openfox 2.0.0-beta.4 → 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 (34) hide show
  1. package/dist/{auto-compaction-A3PIMGLF.js → auto-compaction-2ZAYDXGF.js} +7 -8
  2. package/dist/{chat-handler-IUWEBZG7.js → chat-handler-BM6EBFKS.js} +10 -11
  3. package/dist/{chunk-WBYS7AQN.js → chunk-CLGRPDZT.js} +30 -35
  4. package/dist/{chunk-KEF4O3UM.js → chunk-DFWGWULB.js} +27 -139
  5. package/dist/{chunk-EYCCASW3.js → chunk-I67T2E5K.js} +2 -2
  6. package/dist/{chunk-HW3U4XSZ.js → chunk-OBD6D5ZO.js} +4 -4
  7. package/dist/{chunk-FQLK5GL5.js → chunk-T4HV6GS5.js} +1 -1
  8. package/dist/{chunk-HLZV4S2I.js → chunk-UH27FDT7.js} +5 -25
  9. package/dist/{chunk-CEZNMLOO.js → chunk-V6DYJV5R.js} +2 -5
  10. package/dist/{chunk-7IKUIYFZ.js → chunk-X36JIWSF.js} +4 -4
  11. package/dist/{chunk-26DZZZDC.js → chunk-XL7SW5B4.js} +1 -8
  12. package/dist/cli/dev.js +1 -1
  13. package/dist/cli/index.js +1 -1
  14. package/dist/{events-YO52472Q.js → events-T37KTNCX.js} +3 -4
  15. package/dist/{folding-K5L6M4WK.js → folding-IIKWAGG2.js} +2 -3
  16. package/dist/{orchestrator-F75DNQKQ.js → orchestrator-JTUHXF7C.js} +8 -9
  17. package/dist/package.json +1 -1
  18. package/dist/{processor-FTEASNGS.js → processor-66YBBQ6B.js} +7 -8
  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-CEQ2QMM5.js → serve-EUEQ6ERI.js} +9 -10
  22. package/dist/server/index.d.ts +1 -1
  23. package/dist/server/index.js +8 -9
  24. package/dist/shared/index.d.ts +2 -2
  25. package/dist/shared/index.js +1 -1
  26. package/dist/{tools-OPEU2E5M.js → tools-56LACLKH.js} +11 -12
  27. package/dist/web/assets/{index-bDyDeCAz.css → index-C5gaXnFj.css} +1 -1
  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/chunk-MCPID4EJ.js +0 -28
  33. package/dist/optimize-storage-2N6BY5KZ.js +0 -7
  34. package/dist/web/assets/index-ZTEHxmVW.js +0 -317
@@ -8,10 +8,7 @@ import {
8
8
  foldContextState,
9
9
  foldSessionState,
10
10
  spreadOptionalMessageFields
11
- } from "./chunk-26DZZZDC.js";
12
- import {
13
- stripPromptContextMessages
14
- } from "./chunk-MCPID4EJ.js";
11
+ } from "./chunk-XL7SW5B4.js";
15
12
  import {
16
13
  getRuntimeConfig
17
14
  } from "./chunk-CGZHLM3K.js";
@@ -377,13 +374,10 @@ var EventStore = class {
377
374
  return result.changes;
378
375
  }
379
376
  /**
380
- * One-time storage optimization: delete old snapshots and strip
381
- * promptContext.messages from remaining snapshots across all sessions.
377
+ * One-time storage optimization: delete old snapshots across all sessions.
382
378
  * Safe to run multiple times (idempotent).
383
379
  */
384
380
  optimizeStorage() {
385
- let deletedSnapshots = 0;
386
- let strippedSnapshots = 0;
387
381
  const deleteResult = this.db.prepare(
388
382
  `
389
383
  DELETE FROM events
@@ -399,20 +393,7 @@ var EventStore = class {
399
393
  )
400
394
  `
401
395
  ).run();
402
- deletedSnapshots = deleteResult.changes;
403
- const snapshots = this.db.prepare(`SELECT id, payload FROM events WHERE event_type = 'turn.snapshot'`).all();
404
- const updateStmt = this.db.prepare(`UPDATE events SET payload = ? WHERE id = ?`);
405
- for (const row of snapshots) {
406
- const data = JSON.parse(row.payload);
407
- const messages = data.messages;
408
- if (!messages) continue;
409
- const changed = stripPromptContextMessages(messages);
410
- if (changed) {
411
- updateStmt.run(JSON.stringify(data), row.id);
412
- strippedSnapshots++;
413
- }
414
- }
415
- return { deletedSnapshots, strippedSnapshots };
396
+ return { deletedSnapshots: deleteResult.changes };
416
397
  }
417
398
  /**
418
399
  * Get the latest snapshot sequence number for a session
@@ -523,7 +504,7 @@ function initEventStore(db) {
523
504
  }
524
505
  resetStaleRunningSessions(eventStoreInstance, db);
525
506
  const result = eventStoreInstance.optimizeStorage();
526
- if (result.deletedSnapshots > 0 || result.strippedSnapshots > 0) {
507
+ if (result.deletedSnapshots > 0) {
527
508
  logger.info("Storage optimized", result);
528
509
  }
529
510
  setImmediate(() => {
@@ -978,7 +959,6 @@ function emitMessageDone(sessionId, messageId, options) {
978
959
  ...options?.stats !== void 0 && { stats: options.stats },
979
960
  ...options?.segments !== void 0 && { segments: options.segments },
980
961
  ...options?.partial !== void 0 && { partial: options.partial },
981
- ...options?.promptContext !== void 0 && { promptContext: options.promptContext },
982
962
  ...options?.tokenCount !== void 0 && { tokenCount: options.tokenCount }
983
963
  }
984
964
  });
@@ -1281,4 +1261,4 @@ export {
1281
1261
  compactContext,
1282
1262
  getRecentUserPromptsForSession
1283
1263
  };
1284
- //# sourceMappingURL=chunk-HLZV4S2I.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-KEF4O3UM.js";
16
+ } from "./chunk-DFWGWULB.js";
17
17
  import {
18
18
  getCurrentContextWindowId,
19
19
  getEventStore
20
- } from "./chunk-HLZV4S2I.js";
20
+ } from "./chunk-UH27FDT7.js";
21
21
  import {
22
22
  buildSnapshotFromSessionState
23
- } from "./chunk-26DZZZDC.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-7IKUIYFZ.js.map
332
+ //# sourceMappingURL=chunk-X36JIWSF.js.map
@@ -1,7 +1,3 @@
1
- import {
2
- stripPromptContextMessages
3
- } from "./chunk-MCPID4EJ.js";
4
-
5
1
  // src/server/events/apply-events.ts
6
2
  function markComplete(msg, reason) {
7
3
  msg.isComplete = true;
@@ -44,7 +40,6 @@ function updateMessageDone(msg, data) {
44
40
  if (data.stats) msg.stats = data.stats;
45
41
  if (data.segments) msg.segments = data.segments;
46
42
  if (data.partial) msg.partial = true;
47
- if (data.promptContext) msg.promptContext = data.promptContext;
48
43
  if (data.tokenCount !== void 0) msg.tokenCount = data.tokenCount;
49
44
  if ("preparingToolCalls" in msg) {
50
45
  msg.preparingToolCalls = [];
@@ -246,7 +241,6 @@ function spreadOptionalMessageFields(message) {
246
241
  ...message.messageKind !== void 0 && { messageKind: message.messageKind },
247
242
  ...message.contextWindowId !== void 0 && { contextWindowId: message.contextWindowId },
248
243
  ...message.isCompactionSummary !== void 0 && { isCompactionSummary: message.isCompactionSummary },
249
- ...message.promptContext !== void 0 && { promptContext: message.promptContext },
250
244
  ...message.attachments !== void 0 && { attachments: message.attachments },
251
245
  ...message.preparingToolCalls !== void 0 && message.preparingToolCalls.length > 0 && { preparingToolCalls: message.preparingToolCalls },
252
246
  ...message.metadata !== void 0 && { metadata: message.metadata }
@@ -825,7 +819,6 @@ function buildSnapshotFromSessionState(input) {
825
819
  latestSnapshotEvent.data.messages,
826
820
  events.slice(latestSnapshotIndex + 1)
827
821
  ) : foldedState.messages;
828
- stripPromptContextMessages(messages);
829
822
  return {
830
823
  mode: session.mode,
831
824
  phase: session.phase,
@@ -891,4 +884,4 @@ export {
891
884
  getMessagesForWindow,
892
885
  buildContextMessagesFromMessages
893
886
  };
894
- //# sourceMappingURL=chunk-26DZZZDC.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-EYCCASW3.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-EYCCASW3.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-HLZV4S2I.js";
41
+ } from "./chunk-UH27FDT7.js";
42
42
  import "./chunk-FBGWG4N6.js";
43
43
  import {
44
44
  buildContextMessagesFromEventHistory,
@@ -56,8 +56,7 @@ import {
56
56
  foldTodos,
57
57
  foldTurnEventsToSnapshotMessages,
58
58
  getMessagesForWindow
59
- } from "./chunk-26DZZZDC.js";
60
- import "./chunk-MCPID4EJ.js";
59
+ } from "./chunk-XL7SW5B4.js";
61
60
  import "./chunk-CGZHLM3K.js";
62
61
  import "./chunk-K44MW7JJ.js";
63
62
  export {
@@ -116,4 +115,4 @@ export {
116
115
  isTurnEvent,
117
116
  truncateSessionMessages
118
117
  };
119
- //# sourceMappingURL=events-YO52472Q.js.map
118
+ //# sourceMappingURL=events-T37KTNCX.js.map
@@ -23,8 +23,7 @@ import {
23
23
  handleToolResult,
24
24
  spreadOptionalMessageFields,
25
25
  stripOrphanedToolCalls
26
- } from "./chunk-26DZZZDC.js";
27
- import "./chunk-MCPID4EJ.js";
26
+ } from "./chunk-XL7SW5B4.js";
28
27
  export {
29
28
  buildContextMessagesFromEventHistory,
30
29
  buildContextMessagesFromMessages,
@@ -51,4 +50,4 @@ export {
51
50
  spreadOptionalMessageFields,
52
51
  stripOrphanedToolCalls
53
52
  };
54
- //# sourceMappingURL=folding-K5L6M4WK.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-7IKUIYFZ.js";
6
+ } from "./chunk-X36JIWSF.js";
7
7
  import {
8
8
  TurnMetrics,
9
9
  createChatDoneEvent,
@@ -11,20 +11,19 @@ import {
11
11
  createMessageStartEvent,
12
12
  createToolCallEvent,
13
13
  createToolResultEvent
14
- } from "./chunk-KEF4O3UM.js";
15
- import "./chunk-BJYPTN5S.js";
14
+ } from "./chunk-DFWGWULB.js";
16
15
  import "./chunk-PSJIT5LZ.js";
17
16
  import "./chunk-XAMAYRDA.js";
18
17
  import "./chunk-DL6ZILAF.js";
19
18
  import "./chunk-PBGOZMVY.js";
20
19
  import "./chunk-VRGRAQDG.js";
21
20
  import "./chunk-HGAMIPFO.js";
22
- import "./chunk-HLZV4S2I.js";
21
+ import "./chunk-UH27FDT7.js";
23
22
  import "./chunk-FBGWG4N6.js";
24
- import "./chunk-26DZZZDC.js";
25
- import "./chunk-MCPID4EJ.js";
26
- import "./chunk-CEZNMLOO.js";
27
- import "./chunk-FQLK5GL5.js";
23
+ import "./chunk-XL7SW5B4.js";
24
+ import "./chunk-V6DYJV5R.js";
25
+ import "./chunk-BJYPTN5S.js";
26
+ import "./chunk-T4HV6GS5.js";
28
27
  import "./chunk-CQGTEGKL.js";
29
28
  import "./chunk-CGZHLM3K.js";
30
29
  import "./chunk-SZKEGZIB.js";
@@ -41,4 +40,4 @@ export {
41
40
  runChatTurn,
42
41
  runVerifierTurn
43
42
  };
44
- //# sourceMappingURL=orchestrator-F75DNQKQ.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.4",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -5,18 +5,17 @@ import {
5
5
  generateSessionName,
6
6
  getSessionMessageCount,
7
7
  needsNameGenerationCheck
8
- } from "./chunk-HW3U4XSZ.js";
8
+ } from "./chunk-OBD6D5ZO.js";
9
9
  import {
10
10
  getEventStore
11
- } from "./chunk-HLZV4S2I.js";
11
+ } from "./chunk-UH27FDT7.js";
12
12
  import "./chunk-FBGWG4N6.js";
13
- import "./chunk-26DZZZDC.js";
14
- import "./chunk-MCPID4EJ.js";
13
+ import "./chunk-XL7SW5B4.js";
15
14
  import {
16
15
  createChatMessageMessage,
17
16
  createSessionRunningMessage
18
- } from "./chunk-CEZNMLOO.js";
19
- import "./chunk-FQLK5GL5.js";
17
+ } from "./chunk-V6DYJV5R.js";
18
+ import "./chunk-T4HV6GS5.js";
20
19
  import "./chunk-CGZHLM3K.js";
21
20
  import {
22
21
  logger
@@ -178,7 +177,7 @@ var QueueProcessor = class {
178
177
  backend: provider?.backend ?? llmClient.getBackend(),
179
178
  model: llmClient.getModel()
180
179
  };
181
- const { runChatTurn } = await import("./orchestrator-F75DNQKQ.js");
180
+ const { runChatTurn } = await import("./orchestrator-JTUHXF7C.js");
182
181
  const runChatTurnParams = buildRunChatTurnParams({
183
182
  sessionManager,
184
183
  sessionId,
@@ -222,4 +221,4 @@ var QueueProcessor = class {
222
221
  export {
223
222
  QueueProcessor
224
223
  };
225
- //# sourceMappingURL=processor-FTEASNGS.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,10 +6,9 @@ import {
6
6
  import {
7
7
  VERSION,
8
8
  createServer
9
- } from "./chunk-WBYS7AQN.js";
10
- import "./chunk-7IKUIYFZ.js";
11
- import "./chunk-KEF4O3UM.js";
12
- import "./chunk-BJYPTN5S.js";
9
+ } from "./chunk-CLGRPDZT.js";
10
+ import "./chunk-X36JIWSF.js";
11
+ import "./chunk-DFWGWULB.js";
13
12
  import "./chunk-PSJIT5LZ.js";
14
13
  import "./chunk-XAMAYRDA.js";
15
14
  import "./chunk-DL6ZILAF.js";
@@ -18,13 +17,13 @@ import "./chunk-VRGRAQDG.js";
18
17
  import "./chunk-RF2JGDSS.js";
19
18
  import "./chunk-HHAJ3QF6.js";
20
19
  import "./chunk-HGAMIPFO.js";
21
- import "./chunk-HLZV4S2I.js";
20
+ import "./chunk-UH27FDT7.js";
22
21
  import "./chunk-FBGWG4N6.js";
23
- import "./chunk-26DZZZDC.js";
24
- import "./chunk-MCPID4EJ.js";
25
- import "./chunk-CEZNMLOO.js";
22
+ import "./chunk-XL7SW5B4.js";
23
+ import "./chunk-V6DYJV5R.js";
24
+ import "./chunk-BJYPTN5S.js";
26
25
  import "./chunk-VUQCQXXJ.js";
27
- import "./chunk-FQLK5GL5.js";
26
+ import "./chunk-T4HV6GS5.js";
28
27
  import {
29
28
  ensureDataDirExists,
30
29
  getDatabasePath,
@@ -191,4 +190,4 @@ async function runServe(options) {
191
190
  export {
192
191
  runServe
193
192
  };
194
- //# sourceMappingURL=serve-CEQ2QMM5.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,10 +1,9 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-WBYS7AQN.js";
5
- import "../chunk-7IKUIYFZ.js";
6
- import "../chunk-KEF4O3UM.js";
7
- import "../chunk-BJYPTN5S.js";
4
+ } from "../chunk-CLGRPDZT.js";
5
+ import "../chunk-X36JIWSF.js";
6
+ import "../chunk-DFWGWULB.js";
8
7
  import "../chunk-PSJIT5LZ.js";
9
8
  import "../chunk-XAMAYRDA.js";
10
9
  import "../chunk-DL6ZILAF.js";
@@ -13,13 +12,13 @@ import "../chunk-VRGRAQDG.js";
13
12
  import "../chunk-RF2JGDSS.js";
14
13
  import "../chunk-HHAJ3QF6.js";
15
14
  import "../chunk-HGAMIPFO.js";
16
- import "../chunk-HLZV4S2I.js";
15
+ import "../chunk-UH27FDT7.js";
17
16
  import "../chunk-FBGWG4N6.js";
18
- import "../chunk-26DZZZDC.js";
19
- import "../chunk-MCPID4EJ.js";
20
- import "../chunk-CEZNMLOO.js";
17
+ import "../chunk-XL7SW5B4.js";
18
+ import "../chunk-V6DYJV5R.js";
19
+ import "../chunk-BJYPTN5S.js";
21
20
  import "../chunk-VUQCQXXJ.js";
22
- import "../chunk-FQLK5GL5.js";
21
+ import "../chunk-T4HV6GS5.js";
23
22
  import "../chunk-CQGTEGKL.js";
24
23
  import "../chunk-CGZHLM3K.js";
25
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,24 +11,23 @@ import {
11
11
  requestPathAccess,
12
12
  stepDoneTool,
13
13
  validateToolAction
14
- } from "./chunk-KEF4O3UM.js";
15
- import {
16
- AskUserInterrupt,
17
- cancelQuestionsForSession,
18
- provideAnswer
19
- } from "./chunk-BJYPTN5S.js";
14
+ } from "./chunk-DFWGWULB.js";
20
15
  import "./chunk-PSJIT5LZ.js";
21
16
  import "./chunk-XAMAYRDA.js";
22
17
  import "./chunk-DL6ZILAF.js";
23
18
  import "./chunk-PBGOZMVY.js";
24
19
  import "./chunk-VRGRAQDG.js";
25
20
  import "./chunk-HGAMIPFO.js";
26
- import "./chunk-HLZV4S2I.js";
21
+ import "./chunk-UH27FDT7.js";
27
22
  import "./chunk-FBGWG4N6.js";
28
- import "./chunk-26DZZZDC.js";
29
- import "./chunk-MCPID4EJ.js";
30
- import "./chunk-CEZNMLOO.js";
31
- import "./chunk-FQLK5GL5.js";
23
+ import "./chunk-XL7SW5B4.js";
24
+ import "./chunk-V6DYJV5R.js";
25
+ import {
26
+ AskUserInterrupt,
27
+ cancelQuestionsForSession,
28
+ provideAnswer
29
+ } from "./chunk-BJYPTN5S.js";
30
+ import "./chunk-T4HV6GS5.js";
32
31
  import "./chunk-CQGTEGKL.js";
33
32
  import "./chunk-CGZHLM3K.js";
34
33
  import "./chunk-SZKEGZIB.js";
@@ -50,4 +49,4 @@ export {
50
49
  stepDoneTool,
51
50
  validateToolAction
52
51
  };
53
- //# sourceMappingURL=tools-OPEU2E5M.js.map
52
+ //# sourceMappingURL=tools-56LACLKH.js.map