openfox 2.0.137 → 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 (45) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/CHANGELOG.md +12 -0
  3. package/dist/{chat-handler-ZCPFNHTE.js → chat-handler-AUB5HDQD.js} +10 -9
  4. package/dist/{chunk-ZJ2IHOVN.js → chunk-2KCREKHC.js} +16 -10
  5. package/dist/{chunk-JIS6C6PA.js → chunk-2Q4THMD7.js} +5 -5
  6. package/dist/{chunk-LQPAM55V.js → chunk-5CZPHAHN.js} +5 -5
  7. package/dist/{chunk-WQUCCHOY.js → chunk-76C2PVOC.js} +3 -3
  8. package/dist/{chunk-6TQNTFJW.js → chunk-BENMBAU2.js} +3 -3
  9. package/dist/{chunk-XWWRZSK7.js → chunk-DBCWILV3.js} +20 -2
  10. package/dist/{chunk-RS7I4W5A.js → chunk-HI25RCRW.js} +213 -32
  11. package/dist/{chunk-ZQENKB7X.js → chunk-N3PANDLT.js} +11 -7
  12. package/dist/chunk-OU7WD35E.js +7 -0
  13. package/dist/{chunk-AATMPL7S.js → chunk-OVAHNEFG.js} +6 -2
  14. package/dist/{chunk-HF3NDXB4.js → chunk-PW5L4WBG.js} +1 -1
  15. package/dist/{chunk-WOIQO7ZC.js → chunk-RJ2GRUVF.js} +3 -3
  16. package/dist/{chunk-FIQPKLDY.js → chunk-XS2QQERB.js} +2 -2
  17. package/dist/cli/dev.js +1 -1
  18. package/dist/cli/index.js +1 -1
  19. package/dist/{describe-image-EFHMWGWI.js → describe-image-AU6KBSWA.js} +5 -5
  20. package/dist/{dynamic-context-HL4RGNHK.js → dynamic-context-SKHOUP4T.js} +2 -2
  21. package/dist/{export-import-6OUEANYH.js → export-import-SC3UW22Z.js} +2 -2
  22. package/dist/{launch-L5NSPAAX.js → launch-PTMPNZEN.js} +9 -9
  23. package/dist/{orchestrator-FMWKMD54.js → orchestrator-KRHMAVBN.js} +8 -8
  24. package/dist/package.json +1 -1
  25. package/dist/{path-security-DND2R3RP.js → path-security-YP2MRJNS.js} +6 -4
  26. package/dist/{processor-SB5X44PX.js → processor-QZOGF5ES.js} +9 -8
  27. package/dist/{protocol-Nr_H1_oC.d.ts → protocol-D6DZzkSH.d.ts} +6 -3
  28. package/dist/{protocol-XO4ZROAU.js → protocol-MRMOB3P4.js} +5 -3
  29. package/dist/provider/index.d.ts +4 -4
  30. package/dist/{serve-VONTGJCK.js → serve-LVDF4XLG.js} +13 -13
  31. package/dist/server/index.d.ts +33 -3
  32. package/dist/server/index.js +12 -12
  33. package/dist/{server-MI2LZK3W.js → server-AIRQGHHR.js} +11 -11
  34. package/dist/shared/index.d.ts +3 -3
  35. package/dist/shared/index.js +1 -1
  36. package/dist/{tools-WLJJ3ILO.js → tools-NIPKV4YY.js} +8 -6
  37. package/dist/{types-G10ho8PT.d.ts → types-CLcL33hJ.d.ts} +11 -1
  38. package/dist/{types-BlQjLBui.d.ts → types-CmiWoQ7p.d.ts} +1 -1
  39. package/dist/{update-6ZSQJQJB.js → update-Y5QXN3FK.js} +2 -2
  40. package/dist/web/assets/{index-ChJjYovg.css → index-C1oW6oq0.css} +1 -1
  41. package/dist/web/assets/{index-CfFwerN2.js → index-CTAslWsi.js} +66 -66
  42. package/dist/web/index.html +2 -2
  43. package/dist/web/sw.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/chunk-FG4G4EWB.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.138 - 2026-09-06
4
+
5
+ ### Features
6
+
7
+ - **Pause button** — pause the next LLM request without aborting the in-flight turn
8
+ - **Resume a paused run from the chat input** — session status shows Pausing…/Paused
9
+
10
+ ### Bug Fixes
11
+
12
+ - **Dangerous mode applies immediately** — switching auto-approves every pending path confirmation
13
+ - **Allow Everything clears the whole batch** — sibling tool calls continue without re-prompting
14
+
3
15
  ## 2.0.137 - 2026-09-03
4
16
 
5
17
  ### Bug Fixes
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.138 - 2026-09-06
4
+
5
+ ### Features
6
+
7
+ - **Pause button** — pause the next LLM request without aborting the in-flight turn
8
+ - **Resume a paused run from the chat input** — session status shows Pausing…/Paused
9
+
10
+ ### Bug Fixes
11
+
12
+ - **Dangerous mode applies immediately** — switching auto-approves every pending path confirmation
13
+ - **Allow Everything clears the whole batch** — sibling tool calls continue without re-prompting
14
+
3
15
  ## 2.0.137 - 2026-09-03
4
16
 
5
17
  ### Bug Fixes
@@ -2,18 +2,18 @@ import {
2
2
  buildRunChatTurnParams,
3
3
  finalizeTurnCompletion,
4
4
  generateSessionNameForSession
5
- } from "./chunk-FIQPKLDY.js";
5
+ } from "./chunk-XS2QQERB.js";
6
6
  import {
7
7
  runChatTurn
8
- } from "./chunk-JIS6C6PA.js";
9
- import "./chunk-6TQNTFJW.js";
10
- import "./chunk-ZQENKB7X.js";
8
+ } from "./chunk-2Q4THMD7.js";
9
+ import "./chunk-BENMBAU2.js";
10
+ import "./chunk-N3PANDLT.js";
11
11
  import "./chunk-Q33DL67W.js";
12
12
  import "./chunk-XE6UC5Z3.js";
13
13
  import "./chunk-J7GAZGZT.js";
14
14
  import "./chunk-QBWJCO5K.js";
15
15
  import "./chunk-DG2YSWMC.js";
16
- import "./chunk-WQUCCHOY.js";
16
+ import "./chunk-76C2PVOC.js";
17
17
  import "./chunk-4SBVW4UH.js";
18
18
  import "./chunk-HEYU7FAY.js";
19
19
  import "./chunk-4LLGI372.js";
@@ -23,7 +23,7 @@ import "./chunk-I72ACQ6R.js";
23
23
  import "./chunk-VIJVLLPT.js";
24
24
  import "./chunk-OAN4BXEW.js";
25
25
  import "./chunk-V5AC2TV7.js";
26
- import "./chunk-XWWRZSK7.js";
26
+ import "./chunk-DBCWILV3.js";
27
27
  import {
28
28
  getEventStore
29
29
  } from "./chunk-2OO46UAW.js";
@@ -35,7 +35,7 @@ import {
35
35
  createChatMessageMessage,
36
36
  createPhaseChangedMessage,
37
37
  createSessionRunningMessage
38
- } from "./chunk-AATMPL7S.js";
38
+ } from "./chunk-OVAHNEFG.js";
39
39
  import "./chunk-LCLH6ZUL.js";
40
40
  import "./chunk-MOYWDP73.js";
41
41
  import "./chunk-G5GUQKLS.js";
@@ -54,7 +54,7 @@ import "./chunk-QUAEH3MP.js";
54
54
  import "./chunk-JU757HVI.js";
55
55
  import "./chunk-VKMPR25F.js";
56
56
  import "./chunk-K44MW7JJ.js";
57
- import "./chunk-HF3NDXB4.js";
57
+ import "./chunk-PW5L4WBG.js";
58
58
  import "./chunk-24YKXKCG.js";
59
59
  import "./chunk-R5FAEKXQ.js";
60
60
  import "./chunk-CQGTEGKL.js";
@@ -173,10 +173,11 @@ function stopSessionExecution(sessionId, sessionManager) {
173
173
  activeAgents.delete(sessionId);
174
174
  controller.abort();
175
175
  }
176
+ sessionManager.clearPauseState(sessionId);
176
177
  sessionManager.setRunning(sessionId, false);
177
178
  }
178
179
  export {
179
180
  startChatSession,
180
181
  stopSessionExecution
181
182
  };
182
- //# sourceMappingURL=chat-handler-ZCPFNHTE.js.map
183
+ //# sourceMappingURL=chat-handler-AUB5HDQD.js.map
@@ -2,21 +2,21 @@ import {
2
2
  generateSessionNameForSession,
3
3
  getSessionMessageCount,
4
4
  needsNameGeneration
5
- } from "./chunk-FIQPKLDY.js";
5
+ } from "./chunk-XS2QQERB.js";
6
6
  import {
7
7
  launchWorkflowRun
8
- } from "./chunk-LQPAM55V.js";
8
+ } from "./chunk-5CZPHAHN.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-JIS6C6PA.js";
11
+ } from "./chunk-2Q4THMD7.js";
12
12
  import {
13
13
  applyDynamicContext,
14
14
  computeSessionHash,
15
15
  computeUnifiedDiff
16
- } from "./chunk-6TQNTFJW.js";
16
+ } from "./chunk-BENMBAU2.js";
17
17
  import {
18
18
  devServerManager
19
- } from "./chunk-ZQENKB7X.js";
19
+ } from "./chunk-N3PANDLT.js";
20
20
  import {
21
21
  gitSpawnEnv
22
22
  } from "./chunk-J7GAZGZT.js";
@@ -58,6 +58,7 @@ import {
58
58
  createErrorMessage,
59
59
  createGitStatusMessage,
60
60
  createQueueStateMessage,
61
+ createSessionPauseMessage,
61
62
  createSessionRunningMessage,
62
63
  createSessionStateMessage,
63
64
  isAskAnswerPayload,
@@ -65,7 +66,7 @@ import {
65
66
  parseClientMessage,
66
67
  serializeServerMessage,
67
68
  storedEventToServerMessage
68
- } from "./chunk-AATMPL7S.js";
69
+ } from "./chunk-OVAHNEFG.js";
69
70
  import {
70
71
  getPlatformShell
71
72
  } from "./chunk-MOYWDP73.js";
@@ -77,7 +78,7 @@ import {
77
78
  } from "./chunk-K44MW7JJ.js";
78
79
  import {
79
80
  createServerMessage
80
- } from "./chunk-HF3NDXB4.js";
81
+ } from "./chunk-PW5L4WBG.js";
81
82
 
82
83
  // src/server/ws/server.ts
83
84
  import { WebSocketServer, WebSocket as WebSocket2 } from "ws";
@@ -924,6 +925,10 @@ function createWebSocketServer(httpServer, _config, getLLMClient, getActiveProvi
924
925
  );
925
926
  });
926
927
  sessionManager.subscribe((event) => {
928
+ if (event.type === "pause_changed") {
929
+ broadcastForSession(event.sessionId, createSessionPauseMessage(event.pauseState));
930
+ return;
931
+ }
927
932
  if (event.type === "session_updated") {
928
933
  const updatedSession = event.session;
929
934
  const eventStore = getEventStore();
@@ -1104,6 +1109,7 @@ function createWebSocketServer(httpServer, _config, getLLMClient, getActiveProvi
1104
1109
  wss,
1105
1110
  abortSession: (sessionId) => {
1106
1111
  abortedSessions.add(sessionId);
1112
+ sessionManager.clearPauseState(sessionId);
1107
1113
  const controller = activeAgents.get(sessionId);
1108
1114
  if (controller) {
1109
1115
  activeAgents.delete(sessionId);
@@ -1344,7 +1350,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
1344
1350
  }
1345
1351
  const session = sessionManager.requireSession(sessionId);
1346
1352
  try {
1347
- const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-HL4RGNHK.js");
1353
+ const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-SKHOUP4T.js");
1348
1354
  const allAgents = await import("./registry-FMDMGIUB.js");
1349
1355
  const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
1350
1356
  const modelName = session.providerModel ?? _providerManager?.getCurrentModel();
@@ -1356,7 +1362,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
1356
1362
  const oldCached = sessionManager.getCachedPrompt(sessionId);
1357
1363
  const oldPrompt = oldCached?.systemPrompt;
1358
1364
  const diff = oldPrompt ? computeUnifiedDiff(oldPrompt, newPrompt) : [];
1359
- const { getToolRegistryForAgent } = await import("./tools-WLJJ3ILO.js");
1365
+ const { getToolRegistryForAgent } = await import("./tools-NIPKV4YY.js");
1360
1366
  const unfilteredTools = getToolRegistryForAgent(agentDef).definitions;
1361
1367
  const toolDiff = computePreviewToolDiff(oldCached?.tools, unfilteredTools, newTools);
1362
1368
  send({
@@ -1729,4 +1735,4 @@ export {
1729
1735
  signalMcpReady,
1730
1736
  createWebSocketServer
1731
1737
  };
1732
- //# sourceMappingURL=chunk-ZJ2IHOVN.js.map
1738
+ //# sourceMappingURL=chunk-2KCREKHC.js.map
@@ -3,14 +3,14 @@ import {
3
3
  checkToolChangesAndInject,
4
4
  computeDynamicContextHash,
5
5
  getToolFingerprint
6
- } from "./chunk-6TQNTFJW.js";
6
+ } from "./chunk-BENMBAU2.js";
7
7
  import {
8
8
  createAssemblyResult,
9
9
  getConversationMessages,
10
10
  getToolRegistryForAgent,
11
11
  processEventsForConversation,
12
12
  runTopLevelAgentLoop
13
- } from "./chunk-ZQENKB7X.js";
13
+ } from "./chunk-N3PANDLT.js";
14
14
  import {
15
15
  getAllInstructions,
16
16
  getEnabledSkillMetadata
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-4LLGI372.js";
31
31
  import {
32
32
  PathAccessDeniedError
33
- } from "./chunk-XWWRZSK7.js";
33
+ } from "./chunk-DBCWILV3.js";
34
34
  import {
35
35
  getCurrentContextWindowId,
36
36
  getCurrentWindowMessageOptions,
@@ -355,7 +355,7 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
355
355
  getConversationMessages: buildGetConversationMessages(options.sessionId, resolveAgentClient, append),
356
356
  injectAgentReminder: () => injectAgentReminder(options.sessionId, agentDef),
357
357
  rebuildCachedContext: async () => {
358
- const { applyDynamicContext } = await import("./dynamic-context-HL4RGNHK.js");
358
+ const { applyDynamicContext } = await import("./dynamic-context-SKHOUP4T.js");
359
359
  await applyDynamicContext(options.sessionManager, options.sessionId, agentLlmClient.getModel());
360
360
  },
361
361
  ...options.initialCompacting ? { initialCompacting: true } : {},
@@ -385,4 +385,4 @@ export {
385
385
  runChatTurn,
386
386
  runAgentTurn
387
387
  };
388
- //# sourceMappingURL=chunk-JIS6C6PA.js.map
388
+ //# sourceMappingURL=chunk-2Q4THMD7.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runAgentTurn
3
- } from "./chunk-JIS6C6PA.js";
3
+ } from "./chunk-2Q4THMD7.js";
4
4
  import {
5
5
  executeSubAgent,
6
6
  getToolRegistryForAgent
7
- } from "./chunk-ZQENKB7X.js";
7
+ } from "./chunk-N3PANDLT.js";
8
8
  import {
9
9
  gitSpawnEnv
10
10
  } from "./chunk-J7GAZGZT.js";
@@ -44,7 +44,7 @@ import {
44
44
  import {
45
45
  createChatMessageMessage,
46
46
  createSessionRunningMessage
47
- } from "./chunk-AATMPL7S.js";
47
+ } from "./chunk-OVAHNEFG.js";
48
48
  import {
49
49
  LLMError
50
50
  } from "./chunk-N5JKVNLH.js";
@@ -56,7 +56,7 @@ import {
56
56
  } from "./chunk-7OHXF5GW.js";
57
57
  import {
58
58
  createServerMessage
59
- } from "./chunk-HF3NDXB4.js";
59
+ } from "./chunk-PW5L4WBG.js";
60
60
  import {
61
61
  getGlobalConfigDir
62
62
  } from "./chunk-CQGTEGKL.js";
@@ -1023,4 +1023,4 @@ export {
1023
1023
  abortRunnerRun,
1024
1024
  launchWorkflowRun
1025
1025
  };
1026
- //# sourceMappingURL=chunk-LQPAM55V.js.map
1026
+ //# sourceMappingURL=chunk-5CZPHAHN.js.map
@@ -8,7 +8,7 @@ import {
8
8
  PathAccessDeniedError,
9
9
  registerPathConfirmation,
10
10
  requestPathAccess
11
- } from "./chunk-XWWRZSK7.js";
11
+ } from "./chunk-DBCWILV3.js";
12
12
  import {
13
13
  getEventStore
14
14
  } from "./chunk-2OO46UAW.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-BHVR2YS5.js";
18
18
  import {
19
19
  createChatPathConfirmationMessage
20
- } from "./chunk-AATMPL7S.js";
20
+ } from "./chunk-OVAHNEFG.js";
21
21
  import {
22
22
  modelSupportsVision
23
23
  } from "./chunk-TS5WKTFB.js";
@@ -1152,4 +1152,4 @@ export {
1152
1152
  isDescribeImageEligible,
1153
1153
  describeImageTool
1154
1154
  };
1155
- //# sourceMappingURL=chunk-WQUCCHOY.js.map
1155
+ //# sourceMappingURL=chunk-76C2PVOC.js.map
@@ -327,8 +327,8 @@ function resolveAgentDef(sessionManager, sessionId) {
327
327
  });
328
328
  }
329
329
  async function getEffectiveToolDefinitions(agentDef, sessionId, modelName) {
330
- const { getToolRegistryForAgent } = await import("./tools-WLJJ3ILO.js");
331
- const { isDescribeImageEligible } = await import("./describe-image-EFHMWGWI.js");
330
+ const { getToolRegistryForAgent } = await import("./tools-NIPKV4YY.js");
331
+ const { isDescribeImageEligible } = await import("./describe-image-AU6KBSWA.js");
332
332
  const all = getToolRegistryForAgent(agentDef, sessionId).definitions;
333
333
  const eligible = await isDescribeImageEligible(modelName);
334
334
  if (eligible) return all;
@@ -396,4 +396,4 @@ export {
396
396
  computeSessionHash,
397
397
  applyDynamicContext
398
398
  };
399
- //# sourceMappingURL=chunk-6TQNTFJW.js.map
399
+ //# sourceMappingURL=chunk-BENMBAU2.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2OO46UAW.js";
4
4
  import {
5
5
  createChatPathConfirmationMessage
6
- } from "./chunk-AATMPL7S.js";
6
+ } from "./chunk-OVAHNEFG.js";
7
7
  import {
8
8
  getPlatformShell
9
9
  } from "./chunk-MOYWDP73.js";
@@ -889,6 +889,23 @@ function cancelPathConfirmationsForSession(sessionId, reason) {
889
889
  }
890
890
  return cancelledCount;
891
891
  }
892
+ function autoApprovePendingConfirmationsForSession(sessionId) {
893
+ const resolvedCallIds = [];
894
+ for (const callId of [...pendingConfirmations.keys()]) {
895
+ const pending = pendingConfirmations.get(callId);
896
+ if (!pending || pending.sessionId !== sessionId) {
897
+ continue;
898
+ }
899
+ if (pending.reason === "git_no_verify") {
900
+ continue;
901
+ }
902
+ const result = providePathConfirmation(callId, true, false);
903
+ if (result.found) {
904
+ resolvedCallIds.push(callId);
905
+ }
906
+ }
907
+ return resolvedCallIds;
908
+ }
892
909
  function hasPendingPathConfirmation(callId) {
893
910
  return pendingConfirmations.has(callId);
894
911
  }
@@ -934,8 +951,9 @@ export {
934
951
  providePathConfirmation,
935
952
  cancelPathConfirmation,
936
953
  cancelPathConfirmationsForSession,
954
+ autoApprovePendingConfirmationsForSession,
937
955
  hasPendingPathConfirmation,
938
956
  getConfirmationSessionId,
939
957
  getPendingConfirmationsBySession
940
958
  };
941
- //# sourceMappingURL=chunk-XWWRZSK7.js.map
959
+ //# sourceMappingURL=chunk-DBCWILV3.js.map