openfox 2.0.0-beta.3 → 2.0.0-beta.5

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.
Files changed (33) hide show
  1. package/dist/{auto-compaction-UIWTO3H5.js → auto-compaction-2ZAYDXGF.js} +6 -6
  2. package/dist/{chat-handler-IVIWOR3D.js → chat-handler-BM6EBFKS.js} +9 -9
  3. package/dist/{chunk-YUIMJBSE.js → chunk-CLGRPDZT.js} +26 -28
  4. package/dist/{chunk-ALH4KM2Y.js → chunk-DFWGWULB.js} +23 -135
  5. package/dist/{chunk-UK6XF2OX.js → chunk-I67T2E5K.js} +2 -2
  6. package/dist/{chunk-QFSSKIQ3.js → chunk-OBD6D5ZO.js} +4 -4
  7. package/dist/{chunk-FQLK5GL5.js → chunk-T4HV6GS5.js} +1 -1
  8. package/dist/{chunk-XKR3HCAL.js → chunk-UH27FDT7.js} +6 -24
  9. package/dist/{chunk-CEZNMLOO.js → chunk-V6DYJV5R.js} +2 -5
  10. package/dist/{chunk-UFY4I643.js → chunk-X36JIWSF.js} +4 -4
  11. package/dist/{chunk-NONI4CRP.js → chunk-XL7SW5B4.js} +1 -29
  12. package/dist/cli/dev.js +1 -1
  13. package/dist/cli/index.js +1 -1
  14. package/dist/{events-OHJWCI3S.js → events-T37KTNCX.js} +3 -3
  15. package/dist/{folding-U6UHQAS5.js → folding-IIKWAGG2.js} +2 -2
  16. package/dist/{orchestrator-7ZXM4J22.js → orchestrator-JTUHXF7C.js} +7 -7
  17. package/dist/package.json +1 -1
  18. package/dist/{processor-TKBJLQ2N.js → processor-66YBBQ6B.js} +7 -7
  19. package/dist/{protocol-K62EPEGS.js → protocol-ALBHLBBF.js} +3 -3
  20. package/dist/{protocol-BQ12Aw5J.d.ts → protocol-CiYlonA5.d.ts} +2 -38
  21. package/dist/{serve-7CUQCZC7.js → serve-EUEQ6ERI.js} +8 -8
  22. package/dist/server/index.d.ts +1 -1
  23. package/dist/server/index.js +7 -7
  24. package/dist/shared/index.d.ts +2 -2
  25. package/dist/shared/index.js +1 -1
  26. package/dist/{tools-Z7X4HXZN.js → tools-56LACLKH.js} +6 -6
  27. package/dist/web/assets/{index-BY8EbT5Z.css → index-C5gaXnFj.css} +2 -2
  28. package/dist/web/assets/index-DQ2Vv-Yl.js +317 -0
  29. package/dist/web/index.html +2 -2
  30. package/dist/web/sw.js +1 -1
  31. package/package.json +1 -1
  32. package/dist/web/assets/index-CrYTogyB.js +0 -299
  33. /package/dist/web/{workbox-8c29f6e4.js → workbox-7fc22fbe.js} +0 -0
@@ -7,9 +7,8 @@ import {
7
7
  buildSnapshot,
8
8
  foldContextState,
9
9
  foldSessionState,
10
- spreadOptionalMessageFields,
11
- stripPromptContextMessages
12
- } from "./chunk-NONI4CRP.js";
10
+ spreadOptionalMessageFields
11
+ } from "./chunk-XL7SW5B4.js";
13
12
  import {
14
13
  getRuntimeConfig
15
14
  } from "./chunk-CGZHLM3K.js";
@@ -375,13 +374,10 @@ var EventStore = class {
375
374
  return result.changes;
376
375
  }
377
376
  /**
378
- * One-time storage optimization: delete old snapshots and strip
379
- * promptContext.messages from remaining snapshots across all sessions.
377
+ * One-time storage optimization: delete old snapshots across all sessions.
380
378
  * Safe to run multiple times (idempotent).
381
379
  */
382
380
  optimizeStorage() {
383
- let deletedSnapshots = 0;
384
- let strippedSnapshots = 0;
385
381
  const deleteResult = this.db.prepare(
386
382
  `
387
383
  DELETE FROM events
@@ -397,20 +393,7 @@ var EventStore = class {
397
393
  )
398
394
  `
399
395
  ).run();
400
- deletedSnapshots = deleteResult.changes;
401
- const snapshots = this.db.prepare(`SELECT id, payload FROM events WHERE event_type = 'turn.snapshot'`).all();
402
- const updateStmt = this.db.prepare(`UPDATE events SET payload = ? WHERE id = ?`);
403
- for (const row of snapshots) {
404
- const data = JSON.parse(row.payload);
405
- const messages = data.messages;
406
- if (!messages) continue;
407
- const changed = stripPromptContextMessages(messages);
408
- if (changed) {
409
- updateStmt.run(JSON.stringify(data), row.id);
410
- strippedSnapshots++;
411
- }
412
- }
413
- return { deletedSnapshots, strippedSnapshots };
396
+ return { deletedSnapshots: deleteResult.changes };
414
397
  }
415
398
  /**
416
399
  * Get the latest snapshot sequence number for a session
@@ -521,7 +504,7 @@ function initEventStore(db) {
521
504
  }
522
505
  resetStaleRunningSessions(eventStoreInstance, db);
523
506
  const result = eventStoreInstance.optimizeStorage();
524
- if (result.deletedSnapshots > 0 || result.strippedSnapshots > 0) {
507
+ if (result.deletedSnapshots > 0) {
525
508
  logger.info("Storage optimized", result);
526
509
  }
527
510
  setImmediate(() => {
@@ -976,7 +959,6 @@ function emitMessageDone(sessionId, messageId, options) {
976
959
  ...options?.stats !== void 0 && { stats: options.stats },
977
960
  ...options?.segments !== void 0 && { segments: options.segments },
978
961
  ...options?.partial !== void 0 && { partial: options.partial },
979
- ...options?.promptContext !== void 0 && { promptContext: options.promptContext },
980
962
  ...options?.tokenCount !== void 0 && { tokenCount: options.tokenCount }
981
963
  }
982
964
  });
@@ -1279,4 +1261,4 @@ export {
1279
1261
  compactContext,
1280
1262
  getRecentUserPromptsForSession
1281
1263
  };
1282
- //# sourceMappingURL=chunk-XKR3HCAL.js.map
1264
+ //# sourceMappingURL=chunk-UH27FDT7.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createServerMessage,
3
3
  isClientMessage
4
- } from "./chunk-FQLK5GL5.js";
4
+ } from "./chunk-T4HV6GS5.js";
5
5
 
6
6
  // src/server/ws/protocol.ts
7
7
  function enrichMessagesWithToolResults(messages) {
@@ -198,9 +198,6 @@ function storedEventToServerMessage(event) {
198
198
  if (data.stats) {
199
199
  updates.stats = data.stats;
200
200
  }
201
- if (data.promptContext) {
202
- updates.promptContext = data.promptContext;
203
- }
204
201
  return createChatMessageUpdatedMessage(data.messageId, updates);
205
202
  }
206
203
  case "tool.preparing": {
@@ -334,4 +331,4 @@ export {
334
331
  createQueueStateMessage,
335
332
  storedEventToServerMessage
336
333
  };
337
- //# sourceMappingURL=chunk-CEZNMLOO.js.map
334
+ //# sourceMappingURL=chunk-V6DYJV5R.js.map
@@ -13,14 +13,14 @@ import {
13
13
  getToolRegistryForAgent,
14
14
  loadAllAgentsDefault,
15
15
  runTopLevelAgentLoop
16
- } from "./chunk-ALH4KM2Y.js";
16
+ } from "./chunk-DFWGWULB.js";
17
17
  import {
18
18
  getCurrentContextWindowId,
19
19
  getEventStore
20
- } from "./chunk-XKR3HCAL.js";
20
+ } from "./chunk-UH27FDT7.js";
21
21
  import {
22
22
  buildSnapshotFromSessionState
23
- } from "./chunk-NONI4CRP.js";
23
+ } from "./chunk-XL7SW5B4.js";
24
24
  import {
25
25
  logger
26
26
  } from "./chunk-K44MW7JJ.js";
@@ -329,4 +329,4 @@ export {
329
329
  runBuilderTurn,
330
330
  runVerifierTurn
331
331
  };
332
- //# sourceMappingURL=chunk-UFY4I643.js.map
332
+ //# sourceMappingURL=chunk-X36JIWSF.js.map
@@ -40,7 +40,6 @@ function updateMessageDone(msg, data) {
40
40
  if (data.stats) msg.stats = data.stats;
41
41
  if (data.segments) msg.segments = data.segments;
42
42
  if (data.partial) msg.partial = true;
43
- if (data.promptContext) msg.promptContext = data.promptContext;
44
43
  if (data.tokenCount !== void 0) msg.tokenCount = data.tokenCount;
45
44
  if ("preparingToolCalls" in msg) {
46
45
  msg.preparingToolCalls = [];
@@ -210,30 +209,6 @@ function deepCloneMessage(msg) {
210
209
  return cloned;
211
210
  }
212
211
 
213
- // src/server/events/optimize-storage.ts
214
- function stripPromptContextMessages(messages) {
215
- let lastAssistantIdx = -1;
216
- for (let i = messages.length - 1; i >= 0; i--) {
217
- const msg = messages[i];
218
- if (!msg) continue;
219
- if (msg.role === "assistant" && msg.promptContext) {
220
- lastAssistantIdx = i;
221
- break;
222
- }
223
- }
224
- let changed = false;
225
- for (let i = 0; i < messages.length; i++) {
226
- const msg = messages[i];
227
- if (!msg) continue;
228
- const pc = msg.promptContext;
229
- if (pc && pc.messages && pc.messages.length > 0 && i !== lastAssistantIdx) {
230
- pc.messages = [];
231
- changed = true;
232
- }
233
- }
234
- return changed;
235
- }
236
-
237
212
  // src/server/events/folding.ts
238
213
  import stripAnsi from "strip-ansi";
239
214
  function cloneMessage(message) {
@@ -266,7 +241,6 @@ function spreadOptionalMessageFields(message) {
266
241
  ...message.messageKind !== void 0 && { messageKind: message.messageKind },
267
242
  ...message.contextWindowId !== void 0 && { contextWindowId: message.contextWindowId },
268
243
  ...message.isCompactionSummary !== void 0 && { isCompactionSummary: message.isCompactionSummary },
269
- ...message.promptContext !== void 0 && { promptContext: message.promptContext },
270
244
  ...message.attachments !== void 0 && { attachments: message.attachments },
271
245
  ...message.preparingToolCalls !== void 0 && message.preparingToolCalls.length > 0 && { preparingToolCalls: message.preparingToolCalls },
272
246
  ...message.metadata !== void 0 && { metadata: message.metadata }
@@ -845,7 +819,6 @@ function buildSnapshotFromSessionState(input) {
845
819
  latestSnapshotEvent.data.messages,
846
820
  events.slice(latestSnapshotIndex + 1)
847
821
  ) : foldedState.messages;
848
- stripPromptContextMessages(messages);
849
822
  return {
850
823
  mode: session.mode,
851
824
  phase: session.phase,
@@ -886,7 +859,6 @@ function buildContextMessagesFromMessages(messages, windowId) {
886
859
  }
887
860
 
888
861
  export {
889
- stripPromptContextMessages,
890
862
  spreadOptionalMessageFields,
891
863
  buildMessagesFromStoredEvents,
892
864
  buildContextMessagesFromStoredEvents,
@@ -912,4 +884,4 @@ export {
912
884
  getMessagesForWindow,
913
885
  buildContextMessagesFromMessages
914
886
  };
915
- //# sourceMappingURL=chunk-NONI4CRP.js.map
887
+ //# sourceMappingURL=chunk-XL7SW5B4.js.map
package/dist/cli/dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-UK6XF2OX.js";
4
+ } from "../chunk-I67T2E5K.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-K44MW7JJ.js";
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-UK6XF2OX.js";
4
+ } from "../chunk-I67T2E5K.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-K44MW7JJ.js";
@@ -38,7 +38,7 @@ import {
38
38
  isStoredEvent,
39
39
  isTurnEvent,
40
40
  truncateSessionMessages
41
- } from "./chunk-XKR3HCAL.js";
41
+ } from "./chunk-UH27FDT7.js";
42
42
  import "./chunk-FBGWG4N6.js";
43
43
  import {
44
44
  buildContextMessagesFromEventHistory,
@@ -56,7 +56,7 @@ import {
56
56
  foldTodos,
57
57
  foldTurnEventsToSnapshotMessages,
58
58
  getMessagesForWindow
59
- } from "./chunk-NONI4CRP.js";
59
+ } from "./chunk-XL7SW5B4.js";
60
60
  import "./chunk-CGZHLM3K.js";
61
61
  import "./chunk-K44MW7JJ.js";
62
62
  export {
@@ -115,4 +115,4 @@ export {
115
115
  isTurnEvent,
116
116
  truncateSessionMessages
117
117
  };
118
- //# sourceMappingURL=events-OHJWCI3S.js.map
118
+ //# sourceMappingURL=events-T37KTNCX.js.map
@@ -23,7 +23,7 @@ import {
23
23
  handleToolResult,
24
24
  spreadOptionalMessageFields,
25
25
  stripOrphanedToolCalls
26
- } from "./chunk-NONI4CRP.js";
26
+ } from "./chunk-XL7SW5B4.js";
27
27
  export {
28
28
  buildContextMessagesFromEventHistory,
29
29
  buildContextMessagesFromMessages,
@@ -50,4 +50,4 @@ export {
50
50
  spreadOptionalMessageFields,
51
51
  stripOrphanedToolCalls
52
52
  };
53
- //# sourceMappingURL=folding-U6UHQAS5.js.map
53
+ //# sourceMappingURL=folding-IIKWAGG2.js.map
@@ -3,7 +3,7 @@ import {
3
3
  runBuilderTurn,
4
4
  runChatTurn,
5
5
  runVerifierTurn
6
- } from "./chunk-UFY4I643.js";
6
+ } from "./chunk-X36JIWSF.js";
7
7
  import {
8
8
  TurnMetrics,
9
9
  createChatDoneEvent,
@@ -11,19 +11,19 @@ import {
11
11
  createMessageStartEvent,
12
12
  createToolCallEvent,
13
13
  createToolResultEvent
14
- } from "./chunk-ALH4KM2Y.js";
14
+ } from "./chunk-DFWGWULB.js";
15
15
  import "./chunk-PSJIT5LZ.js";
16
16
  import "./chunk-XAMAYRDA.js";
17
17
  import "./chunk-DL6ZILAF.js";
18
18
  import "./chunk-PBGOZMVY.js";
19
19
  import "./chunk-VRGRAQDG.js";
20
20
  import "./chunk-HGAMIPFO.js";
21
- import "./chunk-XKR3HCAL.js";
21
+ import "./chunk-UH27FDT7.js";
22
22
  import "./chunk-FBGWG4N6.js";
23
- import "./chunk-NONI4CRP.js";
24
- import "./chunk-CEZNMLOO.js";
23
+ import "./chunk-XL7SW5B4.js";
24
+ import "./chunk-V6DYJV5R.js";
25
25
  import "./chunk-BJYPTN5S.js";
26
- import "./chunk-FQLK5GL5.js";
26
+ import "./chunk-T4HV6GS5.js";
27
27
  import "./chunk-CQGTEGKL.js";
28
28
  import "./chunk-CGZHLM3K.js";
29
29
  import "./chunk-SZKEGZIB.js";
@@ -40,4 +40,4 @@ export {
40
40
  runChatTurn,
41
41
  runVerifierTurn
42
42
  };
43
- //# sourceMappingURL=orchestrator-7ZXM4J22.js.map
43
+ //# sourceMappingURL=orchestrator-JTUHXF7C.js.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -5,17 +5,17 @@ import {
5
5
  generateSessionName,
6
6
  getSessionMessageCount,
7
7
  needsNameGenerationCheck
8
- } from "./chunk-QFSSKIQ3.js";
8
+ } from "./chunk-OBD6D5ZO.js";
9
9
  import {
10
10
  getEventStore
11
- } from "./chunk-XKR3HCAL.js";
11
+ } from "./chunk-UH27FDT7.js";
12
12
  import "./chunk-FBGWG4N6.js";
13
- import "./chunk-NONI4CRP.js";
13
+ import "./chunk-XL7SW5B4.js";
14
14
  import {
15
15
  createChatMessageMessage,
16
16
  createSessionRunningMessage
17
- } from "./chunk-CEZNMLOO.js";
18
- import "./chunk-FQLK5GL5.js";
17
+ } from "./chunk-V6DYJV5R.js";
18
+ import "./chunk-T4HV6GS5.js";
19
19
  import "./chunk-CGZHLM3K.js";
20
20
  import {
21
21
  logger
@@ -177,7 +177,7 @@ var QueueProcessor = class {
177
177
  backend: provider?.backend ?? llmClient.getBackend(),
178
178
  model: llmClient.getModel()
179
179
  };
180
- const { runChatTurn } = await import("./orchestrator-7ZXM4J22.js");
180
+ const { runChatTurn } = await import("./orchestrator-JTUHXF7C.js");
181
181
  const runChatTurnParams = buildRunChatTurnParams({
182
182
  sessionManager,
183
183
  sessionId,
@@ -221,4 +221,4 @@ var QueueProcessor = class {
221
221
  export {
222
222
  QueueProcessor
223
223
  };
224
- //# sourceMappingURL=processor-TKBJLQ2N.js.map
224
+ //# sourceMappingURL=processor-66YBBQ6B.js.map
@@ -36,8 +36,8 @@ import {
36
36
  parseClientMessage,
37
37
  serializeServerMessage,
38
38
  storedEventToServerMessage
39
- } from "./chunk-CEZNMLOO.js";
40
- import "./chunk-FQLK5GL5.js";
39
+ } from "./chunk-V6DYJV5R.js";
40
+ import "./chunk-T4HV6GS5.js";
41
41
  export {
42
42
  createChatAskUserMessage,
43
43
  createChatDeltaMessage,
@@ -77,4 +77,4 @@ export {
77
77
  serializeServerMessage,
78
78
  storedEventToServerMessage
79
79
  };
80
- //# sourceMappingURL=protocol-K62EPEGS.js.map
80
+ //# sourceMappingURL=protocol-ALBHLBBF.js.map
@@ -191,41 +191,6 @@ interface ModelSessionStats extends StatsIdentity {
191
191
  dataPoints: StatsDataPoint[];
192
192
  callDataPoints: CallStatsDataPoint[];
193
193
  }
194
- interface PromptContext {
195
- systemPrompt: string;
196
- injectedFiles: InjectedFile[];
197
- userMessage: string;
198
- messages: PromptContextMessage[];
199
- tools: PromptContextTool[];
200
- requestOptions: PromptRequestOptions;
201
- }
202
- interface PromptContextMessage {
203
- role: 'user' | 'assistant' | 'tool';
204
- content: string;
205
- thinkingContent?: string;
206
- source: 'history' | 'runtime';
207
- toolCalls?: Array<{
208
- id: string;
209
- name: string;
210
- arguments: Record<string, unknown>;
211
- }>;
212
- toolCallId?: string;
213
- attachments?: Attachment[];
214
- }
215
- interface PromptContextTool {
216
- name: string;
217
- description: string;
218
- parameters: Record<string, unknown>;
219
- }
220
- interface PromptRequestOptions {
221
- toolChoice: 'auto' | 'none' | 'required' | {
222
- type: 'function';
223
- function: {
224
- name: string;
225
- };
226
- };
227
- disableThinking: boolean;
228
- }
229
194
  interface InjectedFile {
230
195
  path: string;
231
196
  content: string;
@@ -268,7 +233,6 @@ interface Message {
268
233
  isCompactionSummary?: boolean;
269
234
  subAgentId?: string;
270
235
  subAgentType?: string;
271
- promptContext?: PromptContext;
272
236
  attachments?: Attachment[];
273
237
  metadata?: {
274
238
  type: string;
@@ -634,7 +598,7 @@ interface ChatMessagePayload {
634
598
  }
635
599
  interface ChatMessageUpdatedPayload {
636
600
  messageId: string;
637
- updates: Partial<Pick<Message, 'content' | 'thinkingContent' | 'toolCalls' | 'isStreaming' | 'stats' | 'promptContext' | 'partial'>>;
601
+ updates: Partial<Pick<Message, 'content' | 'thinkingContent' | 'toolCalls' | 'isStreaming' | 'stats' | 'partial'>>;
638
602
  }
639
603
  interface ChatDonePayload {
640
604
  messageId: string;
@@ -876,4 +840,4 @@ interface QueueCancelledEvent {
876
840
  }
877
841
  type QueueEvent = QueueAddedEvent | QueueDrainedEvent | QueueCancelledEvent;
878
842
 
879
- export { type GitStatusPayload as $, type AgentEvent as A, type BackgroundProcess as B, type CallStatsDataPoint as C, type Config as D, type ContextCompactionEvent as E, type ContextState as F, type ContextStatePayload as G, type ContextWindow as H, type CriteriaUpdatedPayload as I, type Criterion as J, type CriterionAttempt as K, type CriterionStatus as L, type Message as M, type CriterionValidation as N, type DangerLevel as O, type DevServerOutputPayload as P, type DevServerStatePayload as Q, type Diagnostic as R, type SessionStats as S, type EditContextEdit as T, type EditContextLine as U, type EditContextRegion as V, type ElementData as W, type ErrorPayload as X, type ExecutionState as Y, type FileReadEntry as Z, type GitDiffFile as _, type AskAnswerPayload as a, type InjectedFile as a0, type LLMCallStats as a1, type LlmBackend as a2, type LogLine as a3, type LspDiagnosticsPayload as a4, type MessageRole as a5, type MessageSegment as a6, type MessageStats as a7, type MetadataEntry as a8, type MetadataUpdatedPayload as a9, type RecentUserPrompt as aA, type ServerMessage as aB, type ServerMessageType as aC, type Session as aD, type SessionListPayload as aE, type SessionLoadPayload as aF, type SessionMetadata as aG, type SessionMode as aH, type SessionNameGeneratedPayload as aI, type SessionPhase as aJ, type SessionRunningPayload as aK, type SessionStatePayload as aL, type SessionSummary as aM, type StatsDataPoint as aN, type StatsIdentity as aO, type TaskCompletedPayload as aP, type Todo as aQ, type ToolCall as aR, type ToolMode as aS, type ToolName as aT, type ToolResult as aU, type ValidationResult as aV, createClientMessage as aW, createServerMessage as aX, isClientMessage as aY, isServerMessage as aZ, type ModeChangedPayload as aa, type ModelConfig as ab, type ModelSessionStats as ac, type PathConfirmPayload as ad, type PathConfirmationReason as ae, type PendingPathConfirmationPayload as af, type PhaseChangedPayload as ag, type PreparingToolCall as ah, type Project as ai, type ProjectDeletedPayload as aj, type ProjectListPayload as ak, type ProjectStatePayload as al, type PromptContext as am, type PromptContextMessage as an, type PromptContextTool as ao, type PromptRequestOptions as ap, type Provider as aq, type ProviderBackend as ar, type ProviderChangedPayload as as, type QueueAddedEvent as at, type QueueCancelledEvent as au, type QueueDrainedEvent as av, type QueueEvent as aw, type QueueEventType as ax, type QueueStatePayload as ay, type QueuedMessage as az, type AskUserEvent as b, type Attachment as c, type BackgroundProcessExitedPayload as d, type BackgroundProcessOutputPayload as e, type BackgroundProcessRemovedPayload as f, type BackgroundProcessStartedPayload as g, type BackgroundProcessStatus as h, type ChatAskUserPayload as i, type ChatDeltaPayload as j, type ChatDonePayload as k, type ChatErrorPayload as l, type ChatFormatRetryPayload as m, type ChatMessagePayload as n, type ChatMessageUpdatedPayload as o, type ChatPathConfirmationPayload as p, type ChatProgressPayload as q, type ChatThinkingPayload as r, type ChatTodoPayload as s, type ChatToolCallPayload as t, type ChatToolOutputPayload as u, type ChatToolPreparingPayload as v, type ChatToolResultPayload as w, type ChatVisionFallbackPayload as x, type ClientMessage as y, type ClientMessageType as z };
843
+ export { type GitStatusPayload as $, type AgentEvent as A, type BackgroundProcess as B, type CallStatsDataPoint as C, type Config as D, type ContextCompactionEvent as E, type ContextState as F, type ContextStatePayload as G, type ContextWindow as H, type CriteriaUpdatedPayload as I, type Criterion as J, type CriterionAttempt as K, type CriterionStatus as L, type Message as M, type CriterionValidation as N, type DangerLevel as O, type DevServerOutputPayload as P, type DevServerStatePayload as Q, type Diagnostic as R, type SessionStats as S, type EditContextEdit as T, type EditContextLine as U, type EditContextRegion as V, type ElementData as W, type ErrorPayload as X, type ExecutionState as Y, type FileReadEntry as Z, type GitDiffFile as _, type AskAnswerPayload as a, type InjectedFile as a0, type LLMCallStats as a1, type LlmBackend as a2, type LogLine as a3, type LspDiagnosticsPayload as a4, type MessageRole as a5, type MessageSegment as a6, type MessageStats as a7, type MetadataEntry as a8, type MetadataUpdatedPayload as a9, type SessionListPayload as aA, type SessionLoadPayload as aB, type SessionMetadata as aC, type SessionMode as aD, type SessionNameGeneratedPayload as aE, type SessionPhase as aF, type SessionRunningPayload as aG, type SessionStatePayload as aH, type SessionSummary as aI, type StatsDataPoint as aJ, type StatsIdentity as aK, type TaskCompletedPayload as aL, type Todo as aM, type ToolCall as aN, type ToolMode as aO, type ToolName as aP, type ToolResult as aQ, type ValidationResult as aR, createClientMessage as aS, createServerMessage as aT, isClientMessage as aU, isServerMessage as aV, type ModeChangedPayload as aa, type ModelConfig as ab, type ModelSessionStats as ac, type PathConfirmPayload as ad, type PathConfirmationReason as ae, type PendingPathConfirmationPayload as af, type PhaseChangedPayload as ag, type PreparingToolCall as ah, type Project as ai, type ProjectDeletedPayload as aj, type ProjectListPayload as ak, type ProjectStatePayload as al, type Provider as am, type ProviderBackend as an, type ProviderChangedPayload as ao, type QueueAddedEvent as ap, type QueueCancelledEvent as aq, type QueueDrainedEvent as ar, type QueueEvent as as, type QueueEventType as at, type QueueStatePayload as au, type QueuedMessage as av, type RecentUserPrompt as aw, type ServerMessage as ax, type ServerMessageType as ay, type Session as az, type AskUserEvent as b, type Attachment as c, type BackgroundProcessExitedPayload as d, type BackgroundProcessOutputPayload as e, type BackgroundProcessRemovedPayload as f, type BackgroundProcessStartedPayload as g, type BackgroundProcessStatus as h, type ChatAskUserPayload as i, type ChatDeltaPayload as j, type ChatDonePayload as k, type ChatErrorPayload as l, type ChatFormatRetryPayload as m, type ChatMessagePayload as n, type ChatMessageUpdatedPayload as o, type ChatPathConfirmationPayload as p, type ChatProgressPayload as q, type ChatThinkingPayload as r, type ChatTodoPayload as s, type ChatToolCallPayload as t, type ChatToolOutputPayload as u, type ChatToolPreparingPayload as v, type ChatToolResultPayload as w, type ChatVisionFallbackPayload as x, type ClientMessage as y, type ClientMessageType as z };
@@ -6,9 +6,9 @@ import {
6
6
  import {
7
7
  VERSION,
8
8
  createServer
9
- } from "./chunk-YUIMJBSE.js";
10
- import "./chunk-UFY4I643.js";
11
- import "./chunk-ALH4KM2Y.js";
9
+ } from "./chunk-CLGRPDZT.js";
10
+ import "./chunk-X36JIWSF.js";
11
+ import "./chunk-DFWGWULB.js";
12
12
  import "./chunk-PSJIT5LZ.js";
13
13
  import "./chunk-XAMAYRDA.js";
14
14
  import "./chunk-DL6ZILAF.js";
@@ -17,13 +17,13 @@ import "./chunk-VRGRAQDG.js";
17
17
  import "./chunk-RF2JGDSS.js";
18
18
  import "./chunk-HHAJ3QF6.js";
19
19
  import "./chunk-HGAMIPFO.js";
20
- import "./chunk-XKR3HCAL.js";
20
+ import "./chunk-UH27FDT7.js";
21
21
  import "./chunk-FBGWG4N6.js";
22
- import "./chunk-NONI4CRP.js";
23
- import "./chunk-CEZNMLOO.js";
22
+ import "./chunk-XL7SW5B4.js";
23
+ import "./chunk-V6DYJV5R.js";
24
24
  import "./chunk-BJYPTN5S.js";
25
25
  import "./chunk-VUQCQXXJ.js";
26
- import "./chunk-FQLK5GL5.js";
26
+ import "./chunk-T4HV6GS5.js";
27
27
  import {
28
28
  ensureDataDirExists,
29
29
  getDatabasePath,
@@ -190,4 +190,4 @@ async function runServe(options) {
190
190
  export {
191
191
  runServe
192
192
  };
193
- //# sourceMappingURL=serve-7CUQCZC7.js.map
193
+ //# sourceMappingURL=serve-EUEQ6ERI.js.map
@@ -1,4 +1,4 @@
1
- import { aR as ToolCall, c as Attachment, R as Diagnostic, aq as Provider, ab as ModelConfig, aD as Session, aM as SessionSummary, ai as Project, aH as SessionMode, aJ as SessionPhase, M as Message, J as Criterion, L as CriterionStatus, a8 as MetadataEntry, az as QueuedMessage, F as ContextState, O as DangerLevel$1, aB as ServerMessage, aO as StatsIdentity, aU as ToolResult, D as Config } from '../protocol-BQ12Aw5J.js';
1
+ import { aN as ToolCall, c as Attachment, R as Diagnostic, am as Provider, ab as ModelConfig, az as Session, aI as SessionSummary, ai as Project, aD as SessionMode, aF as SessionPhase, M as Message, J as Criterion, L as CriterionStatus, a8 as MetadataEntry, av as QueuedMessage, F as ContextState, O as DangerLevel$1, ax as ServerMessage, aK as StatsIdentity, aQ as ToolResult, D as Config } from '../protocol-CiYlonA5.js';
2
2
  import { Server } from 'node:http';
3
3
 
4
4
  interface LLMMessage {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-YUIMJBSE.js";
5
- import "../chunk-UFY4I643.js";
6
- import "../chunk-ALH4KM2Y.js";
4
+ } from "../chunk-CLGRPDZT.js";
5
+ import "../chunk-X36JIWSF.js";
6
+ import "../chunk-DFWGWULB.js";
7
7
  import "../chunk-PSJIT5LZ.js";
8
8
  import "../chunk-XAMAYRDA.js";
9
9
  import "../chunk-DL6ZILAF.js";
@@ -12,13 +12,13 @@ import "../chunk-VRGRAQDG.js";
12
12
  import "../chunk-RF2JGDSS.js";
13
13
  import "../chunk-HHAJ3QF6.js";
14
14
  import "../chunk-HGAMIPFO.js";
15
- import "../chunk-XKR3HCAL.js";
15
+ import "../chunk-UH27FDT7.js";
16
16
  import "../chunk-FBGWG4N6.js";
17
- import "../chunk-NONI4CRP.js";
18
- import "../chunk-CEZNMLOO.js";
17
+ import "../chunk-XL7SW5B4.js";
18
+ import "../chunk-V6DYJV5R.js";
19
19
  import "../chunk-BJYPTN5S.js";
20
20
  import "../chunk-VUQCQXXJ.js";
21
- import "../chunk-FQLK5GL5.js";
21
+ import "../chunk-T4HV6GS5.js";
22
22
  import "../chunk-CQGTEGKL.js";
23
23
  import "../chunk-CGZHLM3K.js";
24
24
  import "../chunk-SZKEGZIB.js";
@@ -1,5 +1,5 @@
1
- import { M as Message, S as SessionStats } from '../protocol-BQ12Aw5J.js';
2
- export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatThinkingPayload, s as ChatTodoPayload, t as ChatToolCallPayload, u as ChatToolOutputPayload, v as ChatToolPreparingPayload, w as ChatToolResultPayload, x as ChatVisionFallbackPayload, y as ClientMessage, z as ClientMessageType, D as Config, E as ContextCompactionEvent, F as ContextState, G as ContextStatePayload, H as ContextWindow, I as CriteriaUpdatedPayload, J as Criterion, K as CriterionAttempt, L as CriterionStatus, N as CriterionValidation, O as DangerLevel, P as DevServerOutputPayload, Q as DevServerStatePayload, R as Diagnostic, T as EditContextEdit, U as EditContextLine, V as EditContextRegion, W as ElementData, X as ErrorPayload, Y as ExecutionState, Z as FileReadEntry, _ as GitDiffFile, $ as GitStatusPayload, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as MetadataEntry, a9 as MetadataUpdatedPayload, aa as ModeChangedPayload, ab as ModelConfig, ac as ModelSessionStats, ad as PathConfirmPayload, ae as PathConfirmationReason, af as PendingPathConfirmationPayload, ag as PhaseChangedPayload, ah as PreparingToolCall, ai as Project, aj as ProjectDeletedPayload, ak as ProjectListPayload, al as ProjectStatePayload, am as PromptContext, an as PromptContextMessage, ao as PromptContextTool, ap as PromptRequestOptions, aq as Provider, ar as ProviderBackend, as as ProviderChangedPayload, at as QueueAddedEvent, au as QueueCancelledEvent, av as QueueDrainedEvent, aw as QueueEvent, ax as QueueEventType, ay as QueueStatePayload, az as QueuedMessage, aA as RecentUserPrompt, aB as ServerMessage, aC as ServerMessageType, aD as Session, aE as SessionListPayload, aF as SessionLoadPayload, aG as SessionMetadata, aH as SessionMode, aI as SessionNameGeneratedPayload, aJ as SessionPhase, aK as SessionRunningPayload, aL as SessionStatePayload, aM as SessionSummary, aN as StatsDataPoint, aO as StatsIdentity, aP as TaskCompletedPayload, aQ as Todo, aR as ToolCall, aS as ToolMode, aT as ToolName, aU as ToolResult, aV as ValidationResult, aW as createClientMessage, aX as createServerMessage, aY as isClientMessage, aZ as isServerMessage } from '../protocol-BQ12Aw5J.js';
1
+ import { M as Message, S as SessionStats } from '../protocol-CiYlonA5.js';
2
+ export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatThinkingPayload, s as ChatTodoPayload, t as ChatToolCallPayload, u as ChatToolOutputPayload, v as ChatToolPreparingPayload, w as ChatToolResultPayload, x as ChatVisionFallbackPayload, y as ClientMessage, z as ClientMessageType, D as Config, E as ContextCompactionEvent, F as ContextState, G as ContextStatePayload, H as ContextWindow, I as CriteriaUpdatedPayload, J as Criterion, K as CriterionAttempt, L as CriterionStatus, N as CriterionValidation, O as DangerLevel, P as DevServerOutputPayload, Q as DevServerStatePayload, R as Diagnostic, T as EditContextEdit, U as EditContextLine, V as EditContextRegion, W as ElementData, X as ErrorPayload, Y as ExecutionState, Z as FileReadEntry, _ as GitDiffFile, $ as GitStatusPayload, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as MetadataEntry, a9 as MetadataUpdatedPayload, aa as ModeChangedPayload, ab as ModelConfig, ac as ModelSessionStats, ad as PathConfirmPayload, ae as PathConfirmationReason, af as PendingPathConfirmationPayload, ag as PhaseChangedPayload, ah as PreparingToolCall, ai as Project, aj as ProjectDeletedPayload, ak as ProjectListPayload, al as ProjectStatePayload, am as Provider, an as ProviderBackend, ao as ProviderChangedPayload, ap as QueueAddedEvent, aq as QueueCancelledEvent, ar as QueueDrainedEvent, as as QueueEvent, at as QueueEventType, au as QueueStatePayload, av as QueuedMessage, aw as RecentUserPrompt, ax as ServerMessage, ay as ServerMessageType, az as Session, aA as SessionListPayload, aB as SessionLoadPayload, aC as SessionMetadata, aD as SessionMode, aE as SessionNameGeneratedPayload, aF as SessionPhase, aG as SessionRunningPayload, aH as SessionStatePayload, aI as SessionSummary, aJ as StatsDataPoint, aK as StatsIdentity, aL as TaskCompletedPayload, aM as Todo, aN as ToolCall, aO as ToolMode, aP as ToolName, aQ as ToolResult, aR as ValidationResult, aS as createClientMessage, aT as createServerMessage, aU as isClientMessage, aV as isServerMessage } from '../protocol-CiYlonA5.js';
3
3
 
4
4
  /**
5
5
  * Session stats computation - aggregates response-level MessageStats from
@@ -6,7 +6,7 @@ import {
6
6
  createServerMessage,
7
7
  isClientMessage,
8
8
  isServerMessage
9
- } from "../chunk-FQLK5GL5.js";
9
+ } from "../chunk-T4HV6GS5.js";
10
10
  export {
11
11
  computeSessionStats,
12
12
  createClientMessage,
@@ -11,23 +11,23 @@ import {
11
11
  requestPathAccess,
12
12
  stepDoneTool,
13
13
  validateToolAction
14
- } from "./chunk-ALH4KM2Y.js";
14
+ } from "./chunk-DFWGWULB.js";
15
15
  import "./chunk-PSJIT5LZ.js";
16
16
  import "./chunk-XAMAYRDA.js";
17
17
  import "./chunk-DL6ZILAF.js";
18
18
  import "./chunk-PBGOZMVY.js";
19
19
  import "./chunk-VRGRAQDG.js";
20
20
  import "./chunk-HGAMIPFO.js";
21
- import "./chunk-XKR3HCAL.js";
21
+ import "./chunk-UH27FDT7.js";
22
22
  import "./chunk-FBGWG4N6.js";
23
- import "./chunk-NONI4CRP.js";
24
- import "./chunk-CEZNMLOO.js";
23
+ import "./chunk-XL7SW5B4.js";
24
+ import "./chunk-V6DYJV5R.js";
25
25
  import {
26
26
  AskUserInterrupt,
27
27
  cancelQuestionsForSession,
28
28
  provideAnswer
29
29
  } from "./chunk-BJYPTN5S.js";
30
- import "./chunk-FQLK5GL5.js";
30
+ import "./chunk-T4HV6GS5.js";
31
31
  import "./chunk-CQGTEGKL.js";
32
32
  import "./chunk-CGZHLM3K.js";
33
33
  import "./chunk-SZKEGZIB.js";
@@ -49,4 +49,4 @@ export {
49
49
  stepDoneTool,
50
50
  validateToolAction
51
51
  };
52
- //# sourceMappingURL=tools-Z7X4HXZN.js.map
52
+ //# sourceMappingURL=tools-56LACLKH.js.map