update
This commit is contained in:
@ -153,44 +153,55 @@ This component has the cleanest design, so we'll start migration here:
|
||||
|
||||
### Phase 6: Proxy Implementation Migration (Weeks 3-4)
|
||||
|
||||
- [ ] Migrate SmartProxy components
|
||||
- [x] Migrate SmartProxy components
|
||||
- [x] First, migrate interfaces to `ts/proxies/smart-proxy/models/`
|
||||
- [ ] Move core class: `ts/smartproxy/classes.smartproxy.ts` → `ts/proxies/smart-proxy/smart-proxy.ts`
|
||||
- [ ] Move supporting classes using consistent naming
|
||||
- [x] Move core class: `ts/smartproxy/classes.smartproxy.ts` → `ts/proxies/smart-proxy/smart-proxy.ts`
|
||||
- [x] Move supporting classes using consistent naming
|
||||
- [x] Move ConnectionManager from classes.pp.connectionmanager.ts to connection-manager.ts
|
||||
- [x] Move SecurityManager from classes.pp.securitymanager.ts to security-manager.ts
|
||||
- [x] Move DomainConfigManager from classes.pp.domainconfigmanager.ts to domain-config-manager.ts
|
||||
- [x] Move TimeoutManager from classes.pp.timeoutmanager.ts to timeout-manager.ts
|
||||
- [x] Move TlsManager from classes.pp.tlsmanager.ts to tls-manager.ts
|
||||
- [x] Move NetworkProxyBridge from classes.pp.networkproxybridge.ts to network-proxy-bridge.ts
|
||||
- [x] Move PortRangeManager from classes.pp.portrangemanager.ts to port-range-manager.ts
|
||||
- [x] Move ConnectionHandler from classes.pp.connectionhandler.ts to connection-handler.ts
|
||||
- [x] Normalize interface names (SmartProxyOptions instead of IPortProxySettings)
|
||||
|
||||
- [ ] Migrate NetworkProxy components
|
||||
- [x] Migrate NetworkProxy components
|
||||
- [x] First, migrate interfaces to `ts/proxies/network-proxy/models/`
|
||||
- [ ] Move core class: `ts/networkproxy/classes.np.networkproxy.ts` → `ts/proxies/network-proxy/network-proxy.ts`
|
||||
- [ ] Move supporting classes using consistent naming
|
||||
- [x] Move core class: `ts/networkproxy/classes.np.networkproxy.ts` → `ts/proxies/network-proxy/network-proxy.ts`
|
||||
- [x] Move supporting classes using consistent naming
|
||||
|
||||
- [ ] Migrate NfTablesProxy
|
||||
- [ ] Move `ts/nfttablesproxy/classes.nftablesproxy.ts` → `ts/proxies/nftables-proxy/nftables-proxy.ts`
|
||||
- [x] Migrate NfTablesProxy
|
||||
- [x] Move `ts/nfttablesproxy/classes.nftablesproxy.ts` → `ts/proxies/nftables-proxy/nftables-proxy.ts`
|
||||
- [x] Extract interfaces to `ts/proxies/nftables-proxy/models/interfaces.ts`
|
||||
- [x] Extract error classes to `ts/proxies/nftables-proxy/models/errors.ts`
|
||||
- [x] Create proper barrel files for module exports
|
||||
|
||||
### Phase 7: Integration & Main Module (Week 4-5)
|
||||
|
||||
- [ ] Create main entry points
|
||||
- [ ] Update `ts/index.ts` with all public exports
|
||||
- [ ] Ensure backward compatibility with type aliases
|
||||
- [ ] Implement proper namespace exports
|
||||
- [x] Create main entry points
|
||||
- [x] Update `ts/index.ts` with all public exports
|
||||
- [x] Ensure backward compatibility with type aliases
|
||||
- [x] Implement proper namespace exports
|
||||
|
||||
- [ ] Update module dependencies
|
||||
- [ ] Update relative import paths in all modules
|
||||
- [ ] Resolve circular dependencies if found
|
||||
- [ ] Test cross-module integration
|
||||
- [x] Update module dependencies
|
||||
- [x] Update relative import paths in all modules
|
||||
- [x] Resolve circular dependencies if found
|
||||
- [x] Test cross-module integration
|
||||
|
||||
### Phase 8: Interface Normalization (Week 5)
|
||||
|
||||
- [ ] Standardize interface naming
|
||||
- [ ] Rename `IPortProxySettings` → `SmartProxyOptions`
|
||||
- [ ] Rename `IDomainConfig` → `DomainConfig`
|
||||
- [ ] Rename `IConnectionRecord` → `ConnectionRecord`
|
||||
- [ ] Rename `INetworkProxyOptions` → `NetworkProxyOptions`
|
||||
- [ ] Rename other interfaces for consistency
|
||||
- [x] Standardize interface naming
|
||||
- [x] Rename `IPortProxySettings` → `SmartProxyOptions`
|
||||
- [x] Rename `IDomainConfig` → `DomainConfig`
|
||||
- [x] Rename `IConnectionRecord` → `ConnectionRecord`
|
||||
- [x] Rename `INetworkProxyOptions` → `NetworkProxyOptions`
|
||||
- [x] Rename other interfaces for consistency
|
||||
|
||||
- [ ] Provide backward compatibility
|
||||
- [ ] Add type aliases for renamed interfaces
|
||||
- [ ] Ensure all exports are compatible with existing code
|
||||
- [x] Provide backward compatibility
|
||||
- [x] Add type aliases for renamed interfaces
|
||||
- [x] Ensure all exports are compatible with existing code
|
||||
|
||||
### Phase 9: Testing & Validation (Weeks 5-6)
|
||||
|
||||
@ -265,28 +276,29 @@ This component has the cleanest design, so we'll start migration here:
|
||||
| ts/redirect/classes.redirect.ts | ts/http/redirects/redirect-handler.ts | ✅ |
|
||||
| ts/classes.router.ts | ts/http/router/proxy-router.ts | ✅ |
|
||||
| **SmartProxy Components** | | |
|
||||
| ts/smartproxy/classes.smartproxy.ts | ts/proxies/smart-proxy/smart-proxy.ts | ❌ |
|
||||
| ts/smartproxy/classes.smartproxy.ts | ts/proxies/smart-proxy/smart-proxy.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.interfaces.ts | ts/proxies/smart-proxy/models/interfaces.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.connectionhandler.ts | ts/proxies/smart-proxy/connection-handler.ts | ❌ |
|
||||
| ts/smartproxy/classes.pp.connectionmanager.ts | ts/proxies/smart-proxy/connection-manager.ts | ❌ |
|
||||
| ts/smartproxy/classes.pp.domainconfigmanager.ts | ts/proxies/smart-proxy/domain-config-manager.ts | ❌ |
|
||||
| ts/smartproxy/classes.pp.portrangemanager.ts | ts/proxies/smart-proxy/port-range-manager.ts | ❌ |
|
||||
| ts/smartproxy/classes.pp.securitymanager.ts | ts/proxies/smart-proxy/security-manager.ts | ❌ |
|
||||
| ts/smartproxy/classes.pp.timeoutmanager.ts | ts/proxies/smart-proxy/timeout-manager.ts | ❌ |
|
||||
| ts/smartproxy/classes.pp.networkproxybridge.ts | ts/proxies/smart-proxy/network-proxy-bridge.ts | ❌ |
|
||||
| ts/smartproxy/classes.pp.connectionhandler.ts | ts/proxies/smart-proxy/connection-handler.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.connectionmanager.ts | ts/proxies/smart-proxy/connection-manager.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.domainconfigmanager.ts | ts/proxies/smart-proxy/domain-config-manager.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.portrangemanager.ts | ts/proxies/smart-proxy/port-range-manager.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.securitymanager.ts | ts/proxies/smart-proxy/security-manager.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.timeoutmanager.ts | ts/proxies/smart-proxy/timeout-manager.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.networkproxybridge.ts | ts/proxies/smart-proxy/network-proxy-bridge.ts | ✅ |
|
||||
| ts/smartproxy/classes.pp.tlsmanager.ts | ts/proxies/smart-proxy/tls-manager.ts | ✅ |
|
||||
| (new) | ts/proxies/smart-proxy/models/index.ts | ✅ |
|
||||
| (new) | ts/proxies/smart-proxy/index.ts | ✅ |
|
||||
| **NetworkProxy Components** | | |
|
||||
| ts/networkproxy/classes.np.networkproxy.ts | ts/proxies/network-proxy/network-proxy.ts | ❌ |
|
||||
| ts/networkproxy/classes.np.certificatemanager.ts | ts/proxies/network-proxy/certificate-manager.ts | ❌ |
|
||||
| ts/networkproxy/classes.np.connectionpool.ts | ts/proxies/network-proxy/connection-pool.ts | ❌ |
|
||||
| ts/networkproxy/classes.np.requesthandler.ts | ts/proxies/network-proxy/request-handler.ts | ❌ |
|
||||
| ts/networkproxy/classes.np.websockethandler.ts | ts/proxies/network-proxy/websocket-handler.ts | ❌ |
|
||||
| ts/networkproxy/classes.np.networkproxy.ts | ts/proxies/network-proxy/network-proxy.ts | ✅ |
|
||||
| ts/networkproxy/classes.np.certificatemanager.ts | ts/proxies/network-proxy/certificate-manager.ts | ✅ |
|
||||
| ts/networkproxy/classes.np.connectionpool.ts | ts/proxies/network-proxy/connection-pool.ts | ✅ |
|
||||
| ts/networkproxy/classes.np.requesthandler.ts | ts/proxies/network-proxy/request-handler.ts | ✅ |
|
||||
| ts/networkproxy/classes.np.websockethandler.ts | ts/proxies/network-proxy/websocket-handler.ts | ✅ |
|
||||
| ts/networkproxy/classes.np.types.ts | ts/proxies/network-proxy/models/types.ts | ✅ |
|
||||
| (new) | ts/proxies/network-proxy/models/index.ts | ✅ |
|
||||
| (new) | ts/proxies/network-proxy/index.ts | ✅ |
|
||||
| **NFTablesProxy Components** | | |
|
||||
| ts/nfttablesproxy/classes.nftablesproxy.ts | ts/proxies/nftables-proxy/nftables-proxy.ts | ❌ |
|
||||
| ts/nfttablesproxy/classes.nftablesproxy.ts | ts/proxies/nftables-proxy/nftables-proxy.ts | ✅ |
|
||||
| (new) | ts/proxies/nftables-proxy/index.ts | ✅ |
|
||||
| (new) | ts/proxies/index.ts | ✅ |
|
||||
| **Forwarding System** | | |
|
||||
|
Reference in New Issue
Block a user