openfox 2.0.136 → 2.0.138

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 (51) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/CHANGELOG.md +18 -0
  3. package/dist/{chat-handler-SYU4HJMI.js → chat-handler-AUB5HDQD.js} +12 -11
  4. package/dist/{chunk-GP5BYQMF.js → chunk-2KCREKHC.js} +19 -13
  5. package/dist/{chunk-342BKOTE.js → chunk-2OO46UAW.js} +2 -2
  6. package/dist/{chunk-UL7776XB.js → chunk-2Q4THMD7.js} +7 -7
  7. package/dist/{chunk-CPVEONNS.js → chunk-5CZPHAHN.js} +6 -6
  8. package/dist/{chunk-U6FHHT2B.js → chunk-76C2PVOC.js} +4 -4
  9. package/dist/{chunk-YDPC4FLR.js → chunk-BENMBAU2.js} +4 -4
  10. package/dist/{chunk-PQKLOLGC.js → chunk-DBCWILV3.js} +21 -3
  11. package/dist/{chunk-QQQBNL7A.js → chunk-HI25RCRW.js} +233 -52
  12. package/dist/{chunk-XGG4XCKP.js → chunk-MMGHIPBU.js} +71 -53
  13. package/dist/{chunk-EXLCFEML.js → chunk-N3PANDLT.js} +14 -10
  14. package/dist/chunk-OU7WD35E.js +7 -0
  15. package/dist/{chunk-AATMPL7S.js → chunk-OVAHNEFG.js} +6 -2
  16. package/dist/{chunk-HF3NDXB4.js → chunk-PW5L4WBG.js} +1 -1
  17. package/dist/{chunk-MILEZY2J.js → chunk-RJ2GRUVF.js} +3 -3
  18. package/dist/{chunk-VA2TYWQR.js → chunk-U7XCK7WL.js} +2 -2
  19. package/dist/{chunk-5YPHN5NC.js → chunk-XS2QQERB.js} +4 -4
  20. package/dist/cli/dev.js +1 -1
  21. package/dist/cli/index.js +1 -1
  22. package/dist/{compactor-LBK53WAK.js → compactor-KDTY4ERE.js} +4 -4
  23. package/dist/{describe-image-4XDLSKAB.js → describe-image-AU6KBSWA.js} +7 -7
  24. package/dist/{dynamic-context-RDBNQPPA.js → dynamic-context-SKHOUP4T.js} +4 -4
  25. package/dist/{events-YTYYT3PR.js → events-ADE2KEHI.js} +4 -6
  26. package/dist/{export-import-GHRCOQHF.js → export-import-SC3UW22Z.js} +4 -4
  27. package/dist/{folding-3MMOPS4W.js → folding-CM63AVSB.js} +4 -4
  28. package/dist/{launch-YZ46OEFP.js → launch-PTMPNZEN.js} +11 -11
  29. package/dist/{orchestrator-6QGQ55NT.js → orchestrator-KRHMAVBN.js} +10 -10
  30. package/dist/package.json +1 -1
  31. package/dist/{path-security-EC4Z2ZZG.js → path-security-YP2MRJNS.js} +8 -6
  32. package/dist/{processor-B2RV7MVC.js → processor-QZOGF5ES.js} +11 -10
  33. package/dist/{protocol-Nr_H1_oC.d.ts → protocol-D6DZzkSH.d.ts} +6 -3
  34. package/dist/{protocol-XO4ZROAU.js → protocol-MRMOB3P4.js} +5 -3
  35. package/dist/provider/index.d.ts +4 -4
  36. package/dist/{serve-EWA5HXC7.js → serve-LVDF4XLG.js} +16 -16
  37. package/dist/server/index.d.ts +33 -3
  38. package/dist/server/index.js +15 -15
  39. package/dist/{server-ZAPAB3FS.js → server-AIRQGHHR.js} +14 -14
  40. package/dist/shared/index.d.ts +3 -3
  41. package/dist/shared/index.js +1 -1
  42. package/dist/{tools-EJOABHVO.js → tools-NIPKV4YY.js} +10 -8
  43. package/dist/{types-G10ho8PT.d.ts → types-CLcL33hJ.d.ts} +11 -1
  44. package/dist/{types-BlQjLBui.d.ts → types-CmiWoQ7p.d.ts} +1 -1
  45. package/dist/{update-IPHJMRQZ.js → update-Y5QXN3FK.js} +2 -2
  46. package/dist/web/assets/{index-ChJjYovg.css → index-C1oW6oq0.css} +1 -1
  47. package/dist/web/assets/{index-CfFwerN2.js → index-CTAslWsi.js} +66 -66
  48. package/dist/web/index.html +2 -2
  49. package/dist/web/sw.js +1 -1
  50. package/package.json +1 -1
  51. package/dist/chunk-VWBPQZLO.js +0 -7
@@ -263,45 +263,68 @@ function snapshotMessageToMessage(message) {
263
263
  ...spreadOptionalMessageFields(message)
264
264
  });
265
265
  }
266
- function shouldIncludeContextMessage(message, windowId, options) {
267
- const includeVerifier = options?.includeVerifier ?? true;
268
- return message.role !== "system" && (windowId === void 0 || message.contextWindowId === windowId) && (includeVerifier || message.subAgentType !== "verifier") && !message.subAgentId;
269
- }
270
- function appendSnapshotMessageContext(result, message) {
271
- const contextMsg = {
272
- role: message.role,
273
- content: message.content
274
- };
275
- if (message.thinkingContent) {
276
- contextMsg.thinkingContent = message.thinkingContent;
277
- }
278
- if (message.toolCalls && message.toolCalls.length > 0) {
279
- const fulfilledToolCalls = message.toolCalls.filter((tc) => tc.result);
280
- if (fulfilledToolCalls.length > 0) {
281
- contextMsg.toolCalls = fulfilledToolCalls.map((toolCall) => ({
282
- id: toolCall.id,
283
- name: toolCall.name,
284
- arguments: toolCall.arguments
285
- }));
266
+ function snapshotMessagesToEvents(messages, sessionId = "") {
267
+ const events = [];
268
+ let syntheticSeq = -1;
269
+ const nextSeq = () => syntheticSeq--;
270
+ for (const message of messages) {
271
+ events.push({
272
+ seq: nextSeq(),
273
+ timestamp: message.timestamp,
274
+ sessionId,
275
+ type: "message.start",
276
+ data: {
277
+ messageId: message.id,
278
+ role: message.role,
279
+ // Only the fields the context fold consumes (window/subagent filtering,
280
+ // content, attachments) are carried — the rest are UI-only concerns.
281
+ ...message.content !== void 0 && { content: message.content },
282
+ ...message.contextWindowId !== void 0 && { contextWindowId: message.contextWindowId },
283
+ ...message.subAgentId !== void 0 && { subAgentId: message.subAgentId },
284
+ ...message.subAgentType !== void 0 && { subAgentType: message.subAgentType },
285
+ ...message.attachments !== void 0 && { attachments: message.attachments }
286
+ }
287
+ });
288
+ if (message.thinkingContent) {
289
+ events.push({
290
+ seq: nextSeq(),
291
+ timestamp: message.timestamp,
292
+ sessionId: "",
293
+ type: "message.thinking",
294
+ data: { messageId: message.id, content: message.thinkingContent }
295
+ });
286
296
  }
287
- }
288
- if (message.attachments !== void 0) {
289
- contextMsg.attachments = message.attachments;
290
- }
291
- result.push(contextMsg);
292
- if (!message.toolCalls) return;
293
- for (const toolCall of message.toolCalls) {
294
- if (!toolCall.result) continue;
295
- result.push({
296
- role: "tool",
297
- content: stripAnsi(
298
- toolCall.result.success ? toolCall.result.output ?? "Success" : toolCall.result.output ? `${toolCall.result.output}
299
-
300
- Error: ${toolCall.result.error}` : `Error: ${toolCall.result.error}`
301
- ),
302
- toolCallId: toolCall.id
297
+ for (const toolCall of message.toolCalls ?? []) {
298
+ events.push({
299
+ seq: nextSeq(),
300
+ timestamp: message.timestamp,
301
+ sessionId: "",
302
+ type: "tool.call",
303
+ data: {
304
+ messageId: message.id,
305
+ toolCall: { id: toolCall.id, name: toolCall.name, arguments: toolCall.arguments }
306
+ }
307
+ });
308
+ }
309
+ for (const toolCall of message.toolCalls ?? []) {
310
+ if (!toolCall.result) continue;
311
+ events.push({
312
+ seq: nextSeq(),
313
+ timestamp: message.timestamp,
314
+ sessionId: "",
315
+ type: "tool.result",
316
+ data: { messageId: message.id, toolCallId: toolCall.id, result: toolCall.result }
317
+ });
318
+ }
319
+ events.push({
320
+ seq: nextSeq(),
321
+ timestamp: message.timestamp,
322
+ sessionId: "",
323
+ type: "message.done",
324
+ data: { messageId: message.id }
303
325
  });
304
326
  }
327
+ return events;
305
328
  }
306
329
  function applyStoredMessageEvents(initialMessages, events) {
307
330
  return applyEvents(initialMessages, events, { timestampAsNumber: false });
@@ -497,13 +520,15 @@ function buildContextMessagesFromEventHistory(events, windowId, options) {
497
520
  return buildContextMessagesFromStoredEvents(events, windowId, options);
498
521
  }
499
522
  const snapshot = snapshotEvent.data;
500
- const snapshotMessages = snapshot.messages.reduce((result, message) => {
501
- if (!shouldIncludeContextMessage(message, windowId, options)) return result;
502
- appendSnapshotMessageContext(result, message);
503
- return result;
504
- }, []);
505
- const laterEvents = events.filter((event) => event.seq > snapshotEvent.seq);
506
- return [...snapshotMessages, ...buildContextMessagesFromStoredEvents(laterEvents, windowId, options)];
523
+ const snapshotMessageIds = new Set(snapshot.messages.map((message) => message.id));
524
+ const laterEvents = events.filter(
525
+ (event) => event.seq > snapshotEvent.seq && !("messageId" in event.data && snapshotMessageIds.has(event.data.messageId))
526
+ );
527
+ return buildContextMessagesFromStoredEvents(
528
+ [...snapshotMessagesToEvents(snapshot.messages, snapshotEvent.sessionId), ...laterEvents],
529
+ windowId,
530
+ options
531
+ );
507
532
  }
508
533
  function foldTurnEventsToSnapshotMessages(events) {
509
534
  return applyTurnEventsToSnapshotMessages([], events);
@@ -511,15 +536,8 @@ function foldTurnEventsToSnapshotMessages(events) {
511
536
  function foldTurnEventsToSnapshotMessagesFromInitial(events, initialMessages) {
512
537
  return applyTurnEventsToSnapshotMessages(initialMessages, events);
513
538
  }
514
- function getMessagesForWindow(messages, windowId) {
515
- return messages.filter((m) => m.contextWindowId === windowId);
516
- }
517
539
  function buildContextMessagesFromMessages(messages, windowId) {
518
- return getMessagesForWindow(messages, windowId).reduce((result, message) => {
519
- if (!shouldIncludeContextMessage(message, windowId)) return result;
520
- appendSnapshotMessageContext(result, message);
521
- return result;
522
- }, []);
540
+ return buildContextMessagesFromStoredEvents(snapshotMessagesToEvents(messages), windowId);
523
541
  }
524
542
 
525
543
  // src/server/events/fold-state.ts
@@ -938,6 +956,7 @@ function buildSnapshotFromSessionState(input) {
938
956
 
939
957
  export {
940
958
  spreadOptionalMessageFields,
959
+ snapshotMessagesToEvents,
941
960
  buildMessagesFromStoredEvents,
942
961
  buildContextMessagesFromStoredEvents,
943
962
  handleMessageThinking,
@@ -949,7 +968,6 @@ export {
949
968
  buildContextMessagesFromEventHistory,
950
969
  foldTurnEventsToSnapshotMessages,
951
970
  foldTurnEventsToSnapshotMessagesFromInitial,
952
- getMessagesForWindow,
953
971
  buildContextMessagesFromMessages,
954
972
  foldCriteria,
955
973
  foldTodos,
@@ -965,4 +983,4 @@ export {
965
983
  buildSnapshot,
966
984
  buildSnapshotFromSessionState
967
985
  };
968
- //# sourceMappingURL=chunk-XGG4XCKP.js.map
986
+ //# sourceMappingURL=chunk-MMGHIPBU.js.map
@@ -33,7 +33,7 @@ import {
33
33
  requireSession,
34
34
  validateActionWithPermission,
35
35
  validateFileForWrite
36
- } from "./chunk-U6FHHT2B.js";
36
+ } from "./chunk-76C2PVOC.js";
37
37
  import {
38
38
  serverT
39
39
  } from "./chunk-4SBVW4UH.js";
@@ -93,12 +93,12 @@ import {
93
93
  extractAbsolutePathsFromCommand,
94
94
  extractSensitivePathsFromCommand,
95
95
  resolveRelativeTraversals
96
- } from "./chunk-PQKLOLGC.js";
96
+ } from "./chunk-DBCWILV3.js";
97
97
  import {
98
98
  getCurrentContextWindowId,
99
99
  getCurrentWindowMessageOptions,
100
100
  getEventStore
101
- } from "./chunk-342BKOTE.js";
101
+ } from "./chunk-2OO46UAW.js";
102
102
  import {
103
103
  buildContextMessagesFromEventHistory,
104
104
  foldContextState,
@@ -108,7 +108,7 @@ import {
108
108
  handleToolResult,
109
109
  reorderToolMessages,
110
110
  stripOrphanedToolCalls
111
- } from "./chunk-XGG4XCKP.js";
111
+ } from "./chunk-MMGHIPBU.js";
112
112
  import {
113
113
  findAgentById,
114
114
  getRuntimeConfig,
@@ -123,7 +123,7 @@ import {
123
123
  createChatMessageUpdatedMessage,
124
124
  createChatStatsMessage,
125
125
  createQueueStateMessage
126
- } from "./chunk-AATMPL7S.js";
126
+ } from "./chunk-OVAHNEFG.js";
127
127
  import {
128
128
  getModelProfile,
129
129
  modelSupportsVision
@@ -1506,6 +1506,10 @@ async function runTopLevelAgentLoop(config, turnMetrics) {
1506
1506
  });
1507
1507
  return {};
1508
1508
  }
1509
+ const pauseOutcome = await sessionManager.enterPauseGate(sessionId, signal);
1510
+ if (pauseOutcome === "aborted") {
1511
+ throw new Error("Aborted");
1512
+ }
1509
1513
  const session = sessionManager.requireSession(sessionId);
1510
1514
  if (retryLimiter.count() === 0) {
1511
1515
  await config.injectKickoff?.();
@@ -1725,7 +1729,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
1725
1729
  currentMaxTokensOverride = void 0;
1726
1730
  if (!compacting) {
1727
1731
  const contextState = sessionManager.getContextState(sessionId);
1728
- const { shouldCompact, appendCompactionPrompt } = await import("./compactor-LBK53WAK.js");
1732
+ const { shouldCompact, appendCompactionPrompt } = await import("./compactor-KDTY4ERE.js");
1729
1733
  if (shouldCompact(
1730
1734
  contextState.currentTokens,
1731
1735
  contextState.maxTokens,
@@ -2441,7 +2445,7 @@ var callSubAgentTool = {
2441
2445
  };
2442
2446
  }
2443
2447
  try {
2444
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-EJOABHVO.js");
2448
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-NIPKV4YY.js");
2445
2449
  const toolRegistry = getToolRegistryForAgent2(agentDef);
2446
2450
  const turnMetrics = new TurnMetrics();
2447
2451
  const result = await executeSubAgent({
@@ -3545,11 +3549,11 @@ var mcpConfigTool = createTool(
3545
3549
  async function notifyContextChanged(sessionId) {
3546
3550
  context.sessionManager.setDynamicContextChanged(sessionId, true);
3547
3551
  mcpNotifyChanged?.(sessionId);
3548
- const { injectContextDriftReminders } = await import("./dynamic-context-RDBNQPPA.js");
3552
+ const { injectContextDriftReminders } = await import("./dynamic-context-SKHOUP4T.js");
3549
3553
  await injectContextDriftReminders(context.sessionManager, sessionId);
3550
3554
  }
3551
3555
  async function rebuildTools() {
3552
- const { setMcpTools: setMcpTools2 } = await import("./tools-EJOABHVO.js");
3556
+ const { setMcpTools: setMcpTools2 } = await import("./tools-NIPKV4YY.js");
3553
3557
  const mcpTools = createMcpTools(mcpManagerForTools);
3554
3558
  setMcpTools2(mcpTools);
3555
3559
  }
@@ -4691,4 +4695,4 @@ export {
4691
4695
  getToolRegistryForAgent,
4692
4696
  createToolRegistry
4693
4697
  };
4694
- //# sourceMappingURL=chunk-EXLCFEML.js.map
4698
+ //# sourceMappingURL=chunk-N3PANDLT.js.map
@@ -0,0 +1,7 @@
1
+ // src/constants.ts
2
+ var VERSION = "2.0.138";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-OU7WD35E.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createServerMessage,
6
6
  isClientMessage
7
- } from "./chunk-HF3NDXB4.js";
7
+ } from "./chunk-PW5L4WBG.js";
8
8
 
9
9
  // src/server/session/client-session.ts
10
10
  function toClientSession(session) {
@@ -77,6 +77,9 @@ function createSessionListMessage(sessions, correlationId) {
77
77
  function createSessionRunningMessage(isRunning, sessionId) {
78
78
  return createServerMessage("session.running", { isRunning }, sessionId);
79
79
  }
80
+ function createSessionPauseMessage(pauseState) {
81
+ return createServerMessage("session.pause", { pauseState });
82
+ }
80
83
  function createProjectStateMessage(project, correlationId) {
81
84
  return createServerMessage("project.state", { project }, correlationId);
82
85
  }
@@ -344,6 +347,7 @@ export {
344
347
  createSessionStateMessage,
345
348
  createSessionListMessage,
346
349
  createSessionRunningMessage,
350
+ createSessionPauseMessage,
347
351
  createProjectStateMessage,
348
352
  createProjectListMessage,
349
353
  createGitStatusMessage,
@@ -378,4 +382,4 @@ export {
378
382
  createQueueStateMessage,
379
383
  storedEventToServerMessage
380
384
  };
381
- //# sourceMappingURL=chunk-AATMPL7S.js.map
385
+ //# sourceMappingURL=chunk-OVAHNEFG.js.map
@@ -26,4 +26,4 @@ export {
26
26
  isClientMessage,
27
27
  isServerMessage
28
28
  };
29
- //# sourceMappingURL=chunk-HF3NDXB4.js.map
29
+ //# sourceMappingURL=chunk-PW5L4WBG.js.map
@@ -252,7 +252,7 @@ async function runCli(options) {
252
252
  break;
253
253
  }
254
254
  case "update": {
255
- const { runUpdate } = await import("./update-IPHJMRQZ.js");
255
+ const { runUpdate } = await import("./update-Y5QXN3FK.js");
256
256
  const code = await runUpdate();
257
257
  if (code !== 0) {
258
258
  process.exit(code);
@@ -265,7 +265,7 @@ async function runCli(options) {
265
265
  if (!configExists) {
266
266
  await runNetworkSetup(mode);
267
267
  }
268
- const { runServe } = await import("./serve-EWA5HXC7.js");
268
+ const { runServe } = await import("./serve-LVDF4XLG.js");
269
269
  const serveOptions = { mode };
270
270
  if (values.port) serveOptions.port = parseInt(values.port);
271
271
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -277,4 +277,4 @@ async function runCli(options) {
277
277
  export {
278
278
  runCli
279
279
  };
280
- //# sourceMappingURL=chunk-MILEZY2J.js.map
280
+ //# sourceMappingURL=chunk-RJ2GRUVF.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-4LLGI372.js";
7
7
  import {
8
8
  getCurrentWindowMessageOptions
9
- } from "./chunk-342BKOTE.js";
9
+ } from "./chunk-2OO46UAW.js";
10
10
 
11
11
  // src/server/context/compactor.ts
12
12
  function appendCompactionPrompt(sessionId, append) {
@@ -36,4 +36,4 @@ export {
36
36
  COMPACTION_MAX_RATIO,
37
37
  shouldCompact
38
38
  };
39
- //# sourceMappingURL=chunk-VA2TYWQR.js.map
39
+ //# sourceMappingURL=chunk-U7XCK7WL.js.map
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  combineEventsWithSnapshot,
6
6
  getEventStore
7
- } from "./chunk-342BKOTE.js";
7
+ } from "./chunk-2OO46UAW.js";
8
8
  import {
9
9
  buildMessagesFromStoredEvents,
10
10
  foldPendingConfirmations
11
- } from "./chunk-XGG4XCKP.js";
11
+ } from "./chunk-MMGHIPBU.js";
12
12
  import {
13
13
  updateSessionMetadata
14
14
  } from "./chunk-X4PVR6AW.js";
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  createContextStateMessage,
20
20
  createSessionStateMessage
21
- } from "./chunk-AATMPL7S.js";
21
+ } from "./chunk-OVAHNEFG.js";
22
22
  import {
23
23
  getMaxVisibleItems
24
24
  } from "./chunk-QUAEH3MP.js";
@@ -216,4 +216,4 @@ export {
216
216
  needsNameGeneration,
217
217
  generateSessionNameForSession
218
218
  };
219
- //# sourceMappingURL=chunk-5YPHN5NC.js.map
219
+ //# sourceMappingURL=chunk-XS2QQERB.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-MILEZY2J.js";
4
+ } from "../chunk-RJ2GRUVF.js";
5
5
  import "../chunk-AGXJ5O63.js";
6
6
  import "../chunk-2OMGR7LN.js";
7
7
  import {
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-MILEZY2J.js";
4
+ } from "../chunk-RJ2GRUVF.js";
5
5
  import "../chunk-AGXJ5O63.js";
6
6
  import "../chunk-2OMGR7LN.js";
7
7
  import {
@@ -3,11 +3,11 @@ import {
3
3
  COMPACTION_MAX_RATIO,
4
4
  appendCompactionPrompt,
5
5
  shouldCompact
6
- } from "./chunk-VA2TYWQR.js";
6
+ } from "./chunk-U7XCK7WL.js";
7
7
  import "./chunk-HEYU7FAY.js";
8
8
  import "./chunk-4LLGI372.js";
9
- import "./chunk-342BKOTE.js";
10
- import "./chunk-XGG4XCKP.js";
9
+ import "./chunk-2OO46UAW.js";
10
+ import "./chunk-MMGHIPBU.js";
11
11
  import "./chunk-X4PVR6AW.js";
12
12
  import "./chunk-BHVR2YS5.js";
13
13
  import "./chunk-OSXPQSLW.js";
@@ -31,4 +31,4 @@ export {
31
31
  appendCompactionPrompt,
32
32
  shouldCompact
33
33
  };
34
- //# sourceMappingURL=compactor-LBK53WAK.js.map
34
+ //# sourceMappingURL=compactor-KDTY4ERE.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  describeImageTool,
3
3
  isDescribeImageEligible
4
- } from "./chunk-U6FHHT2B.js";
4
+ } from "./chunk-76C2PVOC.js";
5
5
  import "./chunk-4SBVW4UH.js";
6
6
  import "./chunk-V5AC2TV7.js";
7
- import "./chunk-PQKLOLGC.js";
8
- import "./chunk-342BKOTE.js";
9
- import "./chunk-XGG4XCKP.js";
7
+ import "./chunk-DBCWILV3.js";
8
+ import "./chunk-2OO46UAW.js";
9
+ import "./chunk-MMGHIPBU.js";
10
10
  import "./chunk-X4PVR6AW.js";
11
11
  import "./chunk-BHVR2YS5.js";
12
12
  import "./chunk-OSXPQSLW.js";
13
- import "./chunk-AATMPL7S.js";
13
+ import "./chunk-OVAHNEFG.js";
14
14
  import "./chunk-LCLH6ZUL.js";
15
15
  import "./chunk-MOYWDP73.js";
16
16
  import "./chunk-DPFET73G.js";
@@ -19,7 +19,7 @@ import "./chunk-FSSUPWYO.js";
19
19
  import "./chunk-QUAEH3MP.js";
20
20
  import "./chunk-JU757HVI.js";
21
21
  import "./chunk-K44MW7JJ.js";
22
- import "./chunk-HF3NDXB4.js";
22
+ import "./chunk-PW5L4WBG.js";
23
23
  import "./chunk-24YKXKCG.js";
24
24
  import "./chunk-CQGTEGKL.js";
25
25
  import "./chunk-YLJ4XMA6.js";
@@ -27,4 +27,4 @@ export {
27
27
  describeImageTool,
28
28
  isDescribeImageEligible
29
29
  };
30
- //# sourceMappingURL=describe-image-4XDLSKAB.js.map
30
+ //# sourceMappingURL=describe-image-AU6KBSWA.js.map
@@ -16,11 +16,11 @@ import {
16
16
  injectContextDriftRemindersForSessions,
17
17
  renderSystemPromptDiff,
18
18
  renderToolChangeReminder
19
- } from "./chunk-YDPC4FLR.js";
19
+ } from "./chunk-BENMBAU2.js";
20
20
  import "./chunk-Q33DL67W.js";
21
21
  import "./chunk-4LLGI372.js";
22
- import "./chunk-342BKOTE.js";
23
- import "./chunk-XGG4XCKP.js";
22
+ import "./chunk-2OO46UAW.js";
23
+ import "./chunk-MMGHIPBU.js";
24
24
  import "./chunk-X4PVR6AW.js";
25
25
  import "./chunk-BHVR2YS5.js";
26
26
  import "./chunk-OSXPQSLW.js";
@@ -51,4 +51,4 @@ export {
51
51
  renderSystemPromptDiff,
52
52
  renderToolChangeReminder
53
53
  };
54
- //# sourceMappingURL=dynamic-context-RDBNQPPA.js.map
54
+ //# sourceMappingURL=dynamic-context-SKHOUP4T.js.map
@@ -40,7 +40,7 @@ import {
40
40
  isStoredEvent,
41
41
  isTurnEvent,
42
42
  truncateSessionMessages
43
- } from "./chunk-342BKOTE.js";
43
+ } from "./chunk-2OO46UAW.js";
44
44
  import {
45
45
  buildContextMessagesFromEventHistory,
46
46
  buildContextMessagesFromMessages,
@@ -55,9 +55,8 @@ import {
55
55
  foldPhase,
56
56
  foldSessionState,
57
57
  foldTodos,
58
- foldTurnEventsToSnapshotMessages,
59
- getMessagesForWindow
60
- } from "./chunk-XGG4XCKP.js";
58
+ foldTurnEventsToSnapshotMessages
59
+ } from "./chunk-MMGHIPBU.js";
61
60
  import "./chunk-X4PVR6AW.js";
62
61
  import "./chunk-BHVR2YS5.js";
63
62
  import "./chunk-OSXPQSLW.js";
@@ -116,7 +115,6 @@ export {
116
115
  getCurrentWindowMessageOptions,
117
116
  getCurrentWindowMessages,
118
117
  getEventStore,
119
- getMessagesForWindow,
120
118
  getReadFilesCache,
121
119
  getRecentUserPromptsForSession,
122
120
  getSessionState,
@@ -126,4 +124,4 @@ export {
126
124
  isTurnEvent,
127
125
  truncateSessionMessages
128
126
  };
129
- //# sourceMappingURL=events-YTYYT3PR.js.map
127
+ //# sourceMappingURL=events-ADE2KEHI.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getEventStore,
3
3
  getSessionState
4
- } from "./chunk-342BKOTE.js";
5
- import "./chunk-XGG4XCKP.js";
4
+ } from "./chunk-2OO46UAW.js";
5
+ import "./chunk-MMGHIPBU.js";
6
6
  import "./chunk-X4PVR6AW.js";
7
7
  import "./chunk-BHVR2YS5.js";
8
8
  import "./chunk-OSXPQSLW.js";
9
9
  import "./chunk-LCLH6ZUL.js";
10
10
  import {
11
11
  VERSION
12
- } from "./chunk-VWBPQZLO.js";
12
+ } from "./chunk-OU7WD35E.js";
13
13
  import {
14
14
  getProject
15
15
  } from "./chunk-DPFET73G.js";
@@ -134,4 +134,4 @@ export {
134
134
  buildSessionExport,
135
135
  parseSessionExport
136
136
  };
137
- //# sourceMappingURL=export-import-GHRCOQHF.js.map
137
+ //# sourceMappingURL=export-import-SC3UW22Z.js.map
@@ -17,16 +17,16 @@ import {
17
17
  foldTurnEventsToSnapshotMessages,
18
18
  foldTurnEventsToSnapshotMessagesFromInitial,
19
19
  foldWaitingWorkflow,
20
- getMessagesForWindow,
21
20
  handleMessageDelta,
22
21
  handleMessageThinking,
23
22
  handleToolCall,
24
23
  handleToolResult,
25
24
  reorderToolMessages,
25
+ snapshotMessagesToEvents,
26
26
  spreadOptionalMessageFields,
27
27
  stripOrphanedToolCalls,
28
28
  trimSnapshotStreamingOutput
29
- } from "./chunk-XGG4XCKP.js";
29
+ } from "./chunk-MMGHIPBU.js";
30
30
  import "./chunk-BHVR2YS5.js";
31
31
  import "./chunk-OSXPQSLW.js";
32
32
  import "./chunk-LCLH6ZUL.js";
@@ -55,14 +55,14 @@ export {
55
55
  foldTurnEventsToSnapshotMessages,
56
56
  foldTurnEventsToSnapshotMessagesFromInitial,
57
57
  foldWaitingWorkflow,
58
- getMessagesForWindow,
59
58
  handleMessageDelta,
60
59
  handleMessageThinking,
61
60
  handleToolCall,
62
61
  handleToolResult,
63
62
  reorderToolMessages,
63
+ snapshotMessagesToEvents,
64
64
  spreadOptionalMessageFields,
65
65
  stripOrphanedToolCalls,
66
66
  trimSnapshotStreamingOutput
67
67
  };
68
- //# sourceMappingURL=folding-3MMOPS4W.js.map
68
+ //# sourceMappingURL=folding-CM63AVSB.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  abortRunnerRun,
3
3
  launchWorkflowRun
4
- } from "./chunk-CPVEONNS.js";
5
- import "./chunk-UL7776XB.js";
6
- import "./chunk-YDPC4FLR.js";
7
- import "./chunk-EXLCFEML.js";
4
+ } from "./chunk-5CZPHAHN.js";
5
+ import "./chunk-2Q4THMD7.js";
6
+ import "./chunk-BENMBAU2.js";
7
+ import "./chunk-N3PANDLT.js";
8
8
  import "./chunk-Q33DL67W.js";
9
9
  import "./chunk-XE6UC5Z3.js";
10
10
  import "./chunk-J7GAZGZT.js";
11
11
  import "./chunk-QBWJCO5K.js";
12
12
  import "./chunk-DG2YSWMC.js";
13
- import "./chunk-U6FHHT2B.js";
13
+ import "./chunk-76C2PVOC.js";
14
14
  import "./chunk-4SBVW4UH.js";
15
15
  import "./chunk-HEYU7FAY.js";
16
16
  import "./chunk-4LLGI372.js";
@@ -20,13 +20,13 @@ import "./chunk-I72ACQ6R.js";
20
20
  import "./chunk-VIJVLLPT.js";
21
21
  import "./chunk-OAN4BXEW.js";
22
22
  import "./chunk-V5AC2TV7.js";
23
- import "./chunk-PQKLOLGC.js";
24
- import "./chunk-342BKOTE.js";
25
- import "./chunk-XGG4XCKP.js";
23
+ import "./chunk-DBCWILV3.js";
24
+ import "./chunk-2OO46UAW.js";
25
+ import "./chunk-MMGHIPBU.js";
26
26
  import "./chunk-X4PVR6AW.js";
27
27
  import "./chunk-BHVR2YS5.js";
28
28
  import "./chunk-OSXPQSLW.js";
29
- import "./chunk-AATMPL7S.js";
29
+ import "./chunk-OVAHNEFG.js";
30
30
  import "./chunk-LCLH6ZUL.js";
31
31
  import "./chunk-MOYWDP73.js";
32
32
  import "./chunk-G5GUQKLS.js";
@@ -46,7 +46,7 @@ import "./chunk-JU757HVI.js";
46
46
  import "./chunk-VKMPR25F.js";
47
47
  import "./chunk-K44MW7JJ.js";
48
48
  import "./chunk-7OHXF5GW.js";
49
- import "./chunk-HF3NDXB4.js";
49
+ import "./chunk-PW5L4WBG.js";
50
50
  import "./chunk-24YKXKCG.js";
51
51
  import "./chunk-R5FAEKXQ.js";
52
52
  import "./chunk-CQGTEGKL.js";
@@ -55,4 +55,4 @@ export {
55
55
  abortRunnerRun,
56
56
  launchWorkflowRun
57
57
  };
58
- //# sourceMappingURL=launch-YZ46OEFP.js.map
58
+ //# sourceMappingURL=launch-PTMPNZEN.js.map