@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.
@@ -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 codexProfilesRequest;
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 refreshCodexModels;
153
+ private refreshCodexMetadata;
154
+ private loadAndApplyCodexMetadata;
127
155
  private refreshClaudeModels;
128
156
  private loadClaudeModels;
129
157
  private applyClaudeModels;
130
158
  private applyFallbackClaudeModels;
131
- private loadCodexModels;
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;