@ccpocket/bridge 1.63.4 → 1.63.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/bridge-port.d.ts +2 -0
- package/dist/bridge-port.js +20 -0
- package/dist/bridge-port.js.map +1 -0
- package/dist/cli-args.js +3 -0
- package/dist/cli-args.js.map +1 -1
- package/dist/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/dist/codex-permissions.d.ts +10 -0
- package/dist/codex-permissions.js +62 -0
- package/dist/codex-permissions.js.map +1 -0
- package/dist/git-operations.d.ts +13 -0
- package/dist/git-operations.js +171 -3
- package/dist/git-operations.js.map +1 -1
- package/dist/index.js +22 -16
- package/dist/index.js.map +1 -1
- package/dist/parser.d.ts +2 -0
- package/dist/parser.js.map +1 -1
- package/dist/path-utils.d.ts +1 -0
- package/dist/path-utils.js +16 -0
- package/dist/path-utils.js.map +1 -1
- package/dist/sdk-process.d.ts +16 -1
- package/dist/sdk-process.js +126 -23
- package/dist/sdk-process.js.map +1 -1
- package/dist/server-listen.d.ts +2 -0
- package/dist/server-listen.js +23 -0
- package/dist/server-listen.js.map +1 -0
- package/dist/session.js +18 -4
- package/dist/session.js.map +1 -1
- package/dist/sessions-index.d.ts +8 -0
- package/dist/sessions-index.js +99 -11
- package/dist/sessions-index.js.map +1 -1
- package/dist/setup-launchd.js +3 -2
- package/dist/setup-launchd.js.map +1 -1
- package/dist/setup-systemd.js +3 -2
- package/dist/setup-systemd.js.map +1 -1
- package/dist/websocket.d.ts +32 -5
- package/dist/websocket.js +412 -147
- package/dist/websocket.js.map +1 -1
- package/package.json +1 -1
package/dist/websocket.d.ts
CHANGED
|
@@ -20,10 +20,19 @@ export interface BridgeServerOptions {
|
|
|
20
20
|
promptHistoryBackup?: PromptHistoryBackupStore;
|
|
21
21
|
promptHistoryStore?: PromptHistoryStore;
|
|
22
22
|
platform?: NodeJS.Platform;
|
|
23
|
+
fileListMaxEntries?: number;
|
|
24
|
+
fileListMaxBytes?: number;
|
|
25
|
+
deltaBatchMs?: number;
|
|
26
|
+
deltaBatchMaxChars?: number;
|
|
23
27
|
}
|
|
24
28
|
export declare class BridgeWebSocketServer {
|
|
25
29
|
private static readonly MAX_DEBUG_EVENTS;
|
|
26
30
|
private static readonly MAX_HISTORY_SUMMARY_ITEMS;
|
|
31
|
+
private static readonly CONNECT_METADATA_REFRESH_COOLDOWN_MS;
|
|
32
|
+
private static readonly DEFAULT_FILE_LIST_MAX_ENTRIES;
|
|
33
|
+
private static readonly DEFAULT_FILE_LIST_MAX_BYTES;
|
|
34
|
+
private static readonly DEFAULT_DELTA_BATCH_MS;
|
|
35
|
+
private static readonly DEFAULT_DELTA_BATCH_MAX_CHARS;
|
|
27
36
|
private wss;
|
|
28
37
|
private sessionManager;
|
|
29
38
|
private apiKey;
|
|
@@ -43,20 +52,26 @@ export declare class BridgeWebSocketServer {
|
|
|
43
52
|
private archiveStore;
|
|
44
53
|
private codexProfiles;
|
|
45
54
|
private defaultCodexProfile;
|
|
46
|
-
private
|
|
55
|
+
private codexMetadataRequest;
|
|
56
|
+
private lastConnectMetadataRefreshAt;
|
|
47
57
|
private claudeModels;
|
|
48
58
|
private claudeModelEfforts;
|
|
49
59
|
private claudeModelsRequest;
|
|
50
60
|
private codexModels;
|
|
51
61
|
private codexModelReasoningEfforts;
|
|
52
|
-
private codexModelsRequest;
|
|
53
62
|
/** FCM token → push notification locale */
|
|
54
63
|
private tokenLocales;
|
|
55
64
|
private tokenPrivacyMode;
|
|
56
65
|
private failSetPermissionMode;
|
|
57
66
|
private failSetSandboxMode;
|
|
67
|
+
private readonly fileListMaxEntries;
|
|
68
|
+
private readonly fileListMaxBytes;
|
|
69
|
+
private readonly deltaBatchMs;
|
|
70
|
+
private readonly deltaBatchMaxChars;
|
|
71
|
+
private deltaBatches;
|
|
58
72
|
private platform;
|
|
59
73
|
private clientSupportedServerMessages;
|
|
74
|
+
private pendingClaudeResumeInputs;
|
|
60
75
|
constructor(options: BridgeServerOptions);
|
|
61
76
|
/**
|
|
62
77
|
* Validate that a project path is within the allowed directories.
|
|
@@ -99,7 +114,9 @@ export declare class BridgeWebSocketServer {
|
|
|
99
114
|
/** Return connected WebSocket client count. */
|
|
100
115
|
get clientCount(): number;
|
|
101
116
|
private handleConnection;
|
|
117
|
+
private refreshConnectionMetadata;
|
|
102
118
|
private handleClientMessage;
|
|
119
|
+
private clearPendingClaudeResumeInputs;
|
|
103
120
|
/**
|
|
104
121
|
* Load the saved session name from CLI storage and set it on the SessionInfo.
|
|
105
122
|
* Called after SessionManager.create() so that session_created carries the name.
|
|
@@ -120,18 +137,28 @@ export declare class BridgeWebSocketServer {
|
|
|
120
137
|
private broadcastSessionList;
|
|
121
138
|
private broadcastPromptHistoryStatus;
|
|
122
139
|
private broadcastSessionMessage;
|
|
140
|
+
private shouldBatchDelta;
|
|
141
|
+
private queueDeltaForClient;
|
|
142
|
+
private splitDeltaText;
|
|
143
|
+
private flushSessionDeltaBatches;
|
|
144
|
+
private flushAllDeltaBatches;
|
|
145
|
+
private flushClientDeltaBatch;
|
|
146
|
+
private discardClientDeltaBatches;
|
|
147
|
+
private destroySession;
|
|
148
|
+
private trackSessionMessage;
|
|
149
|
+
private broadcastSessionMessageNow;
|
|
123
150
|
private listRecentSessions;
|
|
124
151
|
private listRecentAllProviderSessions;
|
|
125
152
|
private listRecentCodexSessions;
|
|
126
|
-
private
|
|
153
|
+
private refreshCodexMetadata;
|
|
154
|
+
private loadAndApplyCodexMetadata;
|
|
127
155
|
private refreshClaudeModels;
|
|
128
156
|
private loadClaudeModels;
|
|
129
157
|
private applyClaudeModels;
|
|
130
158
|
private applyFallbackClaudeModels;
|
|
131
|
-
private
|
|
159
|
+
private readCodexModels;
|
|
132
160
|
private applyCodexModels;
|
|
133
161
|
private applyFallbackCodexModels;
|
|
134
|
-
private refreshCodexProfiles;
|
|
135
162
|
private loadCodexProfiles;
|
|
136
163
|
private validateCodexProfile;
|
|
137
164
|
private resolveCodexResumeProfile;
|