openfox 2.0.0-beta.2 → 2.0.0-beta.4

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 (29) hide show
  1. package/dist/agent-defaults/code-reviewer.agent.md +1 -0
  2. package/dist/{auto-compaction-UIWTO3H5.js → auto-compaction-A3PIMGLF.js} +6 -5
  3. package/dist/{chat-handler-IVIWOR3D.js → chat-handler-IUWEBZG7.js} +9 -8
  4. package/dist/{chunk-NONI4CRP.js → chunk-26DZZZDC.js} +5 -26
  5. package/dist/{chunk-UFY4I643.js → chunk-7IKUIYFZ.js} +4 -4
  6. package/dist/{chunk-5M4W3PKD.js → chunk-EYCCASW3.js} +2 -2
  7. package/dist/{chunk-XKR3HCAL.js → chunk-HLZV4S2I.js} +5 -3
  8. package/dist/{chunk-QFSSKIQ3.js → chunk-HW3U4XSZ.js} +3 -3
  9. package/dist/{chunk-ALH4KM2Y.js → chunk-KEF4O3UM.js} +8 -8
  10. package/dist/chunk-MCPID4EJ.js +28 -0
  11. package/dist/{chunk-SYUVZOXU.js → chunk-WBYS7AQN.js} +30 -27
  12. package/dist/cli/dev.js +1 -1
  13. package/dist/cli/index.js +1 -1
  14. package/dist/{events-OHJWCI3S.js → events-YO52472Q.js} +4 -3
  15. package/dist/{folding-U6UHQAS5.js → folding-K5L6M4WK.js} +3 -2
  16. package/dist/optimize-storage-2N6BY5KZ.js +7 -0
  17. package/dist/{orchestrator-7ZXM4J22.js → orchestrator-F75DNQKQ.js} +7 -6
  18. package/dist/package.json +1 -1
  19. package/dist/{processor-TKBJLQ2N.js → processor-FTEASNGS.js} +6 -5
  20. package/dist/{serve-WB62HFNJ.js → serve-CEQ2QMM5.js} +8 -7
  21. package/dist/server/index.js +7 -6
  22. package/dist/{tools-Z7X4HXZN.js → tools-OPEU2E5M.js} +10 -9
  23. package/dist/web/assets/index-ZTEHxmVW.js +317 -0
  24. package/dist/web/assets/{index-BY8EbT5Z.css → index-bDyDeCAz.css} +1 -1
  25. package/dist/web/index.html +2 -2
  26. package/dist/web/sw.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/web/assets/index-CrYTogyB.js +0 -299
  29. /package/dist/web/{workbox-8c29f6e4.js → workbox-7fc22fbe.js} +0 -0
@@ -6,6 +6,7 @@ subagent: true
6
6
  color: '#ef4444'
7
7
  allowedTools:
8
8
  - read_file
9
+ - run_command
9
10
  - web_fetch
10
11
  - session_metadata:get,add,update,remove
11
12
  ---
@@ -2,18 +2,19 @@ import {
2
2
  maybeAutoCompactContext,
3
3
  performManualContextCompaction,
4
4
  resolveCompactionStatsIdentity
5
- } from "./chunk-ALH4KM2Y.js";
5
+ } from "./chunk-KEF4O3UM.js";
6
+ import "./chunk-BJYPTN5S.js";
6
7
  import "./chunk-PSJIT5LZ.js";
7
8
  import "./chunk-XAMAYRDA.js";
8
9
  import "./chunk-DL6ZILAF.js";
9
10
  import "./chunk-PBGOZMVY.js";
10
11
  import "./chunk-VRGRAQDG.js";
11
12
  import "./chunk-HGAMIPFO.js";
12
- import "./chunk-XKR3HCAL.js";
13
+ import "./chunk-HLZV4S2I.js";
13
14
  import "./chunk-FBGWG4N6.js";
14
- import "./chunk-NONI4CRP.js";
15
+ import "./chunk-26DZZZDC.js";
16
+ import "./chunk-MCPID4EJ.js";
15
17
  import "./chunk-CEZNMLOO.js";
16
- import "./chunk-BJYPTN5S.js";
17
18
  import "./chunk-FQLK5GL5.js";
18
19
  import "./chunk-CQGTEGKL.js";
19
20
  import "./chunk-CGZHLM3K.js";
@@ -24,4 +25,4 @@ export {
24
25
  performManualContextCompaction,
25
26
  resolveCompactionStatsIdentity
26
27
  };
27
- //# sourceMappingURL=auto-compaction-UIWTO3H5.js.map
28
+ //# sourceMappingURL=auto-compaction-A3PIMGLF.js.map
@@ -5,11 +5,12 @@ import {
5
5
  generateSessionName,
6
6
  getSessionMessageCount,
7
7
  needsNameGenerationCheck
8
- } from "./chunk-QFSSKIQ3.js";
8
+ } from "./chunk-HW3U4XSZ.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-UFY4I643.js";
12
- import "./chunk-ALH4KM2Y.js";
11
+ } from "./chunk-7IKUIYFZ.js";
12
+ import "./chunk-KEF4O3UM.js";
13
+ import "./chunk-BJYPTN5S.js";
13
14
  import "./chunk-PSJIT5LZ.js";
14
15
  import "./chunk-XAMAYRDA.js";
15
16
  import "./chunk-DL6ZILAF.js";
@@ -18,15 +19,15 @@ import "./chunk-VRGRAQDG.js";
18
19
  import "./chunk-HGAMIPFO.js";
19
20
  import {
20
21
  getEventStore
21
- } from "./chunk-XKR3HCAL.js";
22
+ } from "./chunk-HLZV4S2I.js";
22
23
  import "./chunk-FBGWG4N6.js";
23
- import "./chunk-NONI4CRP.js";
24
+ import "./chunk-26DZZZDC.js";
25
+ import "./chunk-MCPID4EJ.js";
24
26
  import {
25
27
  createChatMessageMessage,
26
28
  createPhaseChangedMessage,
27
29
  createSessionRunningMessage
28
30
  } from "./chunk-CEZNMLOO.js";
29
- import "./chunk-BJYPTN5S.js";
30
31
  import "./chunk-FQLK5GL5.js";
31
32
  import "./chunk-CQGTEGKL.js";
32
33
  import "./chunk-CGZHLM3K.js";
@@ -60,7 +61,7 @@ async function startChatSession(sessionId, content, deps, options) {
60
61
  sessionManager.setRunning(sessionId, true);
61
62
  broadcastForSession(sessionId, createSessionRunningMessage(true));
62
63
  try {
63
- const { maybeAutoCompactContext } = await import("./auto-compaction-UIWTO3H5.js");
64
+ const { maybeAutoCompactContext } = await import("./auto-compaction-A3PIMGLF.js");
64
65
  await maybeAutoCompactContext({
65
66
  sessionManager,
66
67
  sessionId,
@@ -174,4 +175,4 @@ export {
174
175
  startChatSession,
175
176
  stopSessionExecution
176
177
  };
177
- //# sourceMappingURL=chat-handler-IVIWOR3D.js.map
178
+ //# sourceMappingURL=chat-handler-IUWEBZG7.js.map
@@ -1,3 +1,7 @@
1
+ import {
2
+ stripPromptContextMessages
3
+ } from "./chunk-MCPID4EJ.js";
4
+
1
5
  // src/server/events/apply-events.ts
2
6
  function markComplete(msg, reason) {
3
7
  msg.isComplete = true;
@@ -210,30 +214,6 @@ function deepCloneMessage(msg) {
210
214
  return cloned;
211
215
  }
212
216
 
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
217
  // src/server/events/folding.ts
238
218
  import stripAnsi from "strip-ansi";
239
219
  function cloneMessage(message) {
@@ -886,7 +866,6 @@ function buildContextMessagesFromMessages(messages, windowId) {
886
866
  }
887
867
 
888
868
  export {
889
- stripPromptContextMessages,
890
869
  spreadOptionalMessageFields,
891
870
  buildMessagesFromStoredEvents,
892
871
  buildContextMessagesFromStoredEvents,
@@ -912,4 +891,4 @@ export {
912
891
  getMessagesForWindow,
913
892
  buildContextMessagesFromMessages
914
893
  };
915
- //# sourceMappingURL=chunk-NONI4CRP.js.map
894
+ //# sourceMappingURL=chunk-26DZZZDC.js.map
@@ -13,14 +13,14 @@ import {
13
13
  getToolRegistryForAgent,
14
14
  loadAllAgentsDefault,
15
15
  runTopLevelAgentLoop
16
- } from "./chunk-ALH4KM2Y.js";
16
+ } from "./chunk-KEF4O3UM.js";
17
17
  import {
18
18
  getCurrentContextWindowId,
19
19
  getEventStore
20
- } from "./chunk-XKR3HCAL.js";
20
+ } from "./chunk-HLZV4S2I.js";
21
21
  import {
22
22
  buildSnapshotFromSessionState
23
- } from "./chunk-NONI4CRP.js";
23
+ } from "./chunk-26DZZZDC.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-7IKUIYFZ.js.map
@@ -193,7 +193,7 @@ async function runCli(options) {
193
193
  if (!configExists) {
194
194
  await runNetworkSetup(mode);
195
195
  }
196
- const { runServe } = await import("./serve-WB62HFNJ.js");
196
+ const { runServe } = await import("./serve-CEQ2QMM5.js");
197
197
  const serveOptions = { mode };
198
198
  if (values.port) serveOptions.port = parseInt(values.port);
199
199
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -205,4 +205,4 @@ async function runCli(options) {
205
205
  export {
206
206
  runCli
207
207
  };
208
- //# sourceMappingURL=chunk-5M4W3PKD.js.map
208
+ //# sourceMappingURL=chunk-EYCCASW3.js.map
@@ -7,9 +7,11 @@ import {
7
7
  buildSnapshot,
8
8
  foldContextState,
9
9
  foldSessionState,
10
- spreadOptionalMessageFields,
10
+ spreadOptionalMessageFields
11
+ } from "./chunk-26DZZZDC.js";
12
+ import {
11
13
  stripPromptContextMessages
12
- } from "./chunk-NONI4CRP.js";
14
+ } from "./chunk-MCPID4EJ.js";
13
15
  import {
14
16
  getRuntimeConfig
15
17
  } from "./chunk-CGZHLM3K.js";
@@ -1279,4 +1281,4 @@ export {
1279
1281
  compactContext,
1280
1282
  getRecentUserPromptsForSession
1281
1283
  };
1282
- //# sourceMappingURL=chunk-XKR3HCAL.js.map
1284
+ //# sourceMappingURL=chunk-HLZV4S2I.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getEventStore,
3
3
  updateSessionMetadata
4
- } from "./chunk-XKR3HCAL.js";
4
+ } from "./chunk-HLZV4S2I.js";
5
5
  import {
6
6
  buildMessagesFromStoredEvents,
7
7
  foldPendingConfirmations
8
- } from "./chunk-NONI4CRP.js";
8
+ } from "./chunk-26DZZZDC.js";
9
9
  import {
10
10
  createContextStateMessage,
11
11
  createSessionStateMessage
@@ -143,4 +143,4 @@ export {
143
143
  needsNameGenerationCheck,
144
144
  applyGeneratedSessionName
145
145
  };
146
- //# sourceMappingURL=chunk-QFSSKIQ3.js.map
146
+ //# sourceMappingURL=chunk-HW3U4XSZ.js.map
@@ -1,3 +1,7 @@
1
+ import {
2
+ AskUserInterrupt,
3
+ askUserTool
4
+ } from "./chunk-BJYPTN5S.js";
1
5
  import {
2
6
  SETTINGS_KEYS,
3
7
  deleteSetting,
@@ -31,7 +35,7 @@ import {
31
35
  import {
32
36
  getCurrentContextWindowId,
33
37
  getEventStore
34
- } from "./chunk-XKR3HCAL.js";
38
+ } from "./chunk-HLZV4S2I.js";
35
39
  import {
36
40
  buildContextMessagesFromEventHistory,
37
41
  foldContextState,
@@ -40,7 +44,7 @@ import {
40
44
  handleToolCall,
41
45
  handleToolResult,
42
46
  stripOrphanedToolCalls
43
- } from "./chunk-NONI4CRP.js";
47
+ } from "./chunk-26DZZZDC.js";
44
48
  import {
45
49
  createChatDoneMessage,
46
50
  createChatMessageMessage,
@@ -49,10 +53,6 @@ import {
49
53
  createChatVisionFallbackMessage,
50
54
  createQueueStateMessage
51
55
  } from "./chunk-CEZNMLOO.js";
52
- import {
53
- AskUserInterrupt,
54
- askUserTool
55
- } from "./chunk-BJYPTN5S.js";
56
56
  import {
57
57
  getGlobalConfigDir
58
58
  } from "./chunk-CQGTEGKL.js";
@@ -3867,7 +3867,7 @@ var callSubAgentTool = {
3867
3867
  };
3868
3868
  }
3869
3869
  try {
3870
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-Z7X4HXZN.js");
3870
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-OPEU2E5M.js");
3871
3871
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3872
3872
  const turnMetrics = new TurnMetrics();
3873
3873
  const result = await executeSubAgent({
@@ -5068,4 +5068,4 @@ export {
5068
5068
  getToolRegistryForAgent,
5069
5069
  createToolRegistry
5070
5070
  };
5071
- //# sourceMappingURL=chunk-ALH4KM2Y.js.map
5071
+ //# sourceMappingURL=chunk-KEF4O3UM.js.map
@@ -0,0 +1,28 @@
1
+ // src/server/events/optimize-storage.ts
2
+ function stripPromptContextMessages(messages) {
3
+ let lastAssistantIdx = -1;
4
+ for (let i = messages.length - 1; i >= 0; i--) {
5
+ const msg = messages[i];
6
+ if (!msg) continue;
7
+ if (msg.role === "assistant" && msg.promptContext) {
8
+ lastAssistantIdx = i;
9
+ break;
10
+ }
11
+ }
12
+ let changed = false;
13
+ for (let i = 0; i < messages.length; i++) {
14
+ const msg = messages[i];
15
+ if (!msg) continue;
16
+ const pc = msg.promptContext;
17
+ if (pc && pc.messages && pc.messages.length > 0 && i !== lastAssistantIdx) {
18
+ pc.messages = [];
19
+ changed = true;
20
+ }
21
+ }
22
+ return changed;
23
+ }
24
+
25
+ export {
26
+ stripPromptContextMessages
27
+ };
28
+ //# sourceMappingURL=chunk-MCPID4EJ.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createVerifierNudgeConfig,
3
3
  runBuilderTurn,
4
4
  runChatTurn
5
- } from "./chunk-UFY4I643.js";
5
+ } from "./chunk-7IKUIYFZ.js";
6
6
  import {
7
7
  TurnMetrics,
8
8
  agentExists,
@@ -51,7 +51,11 @@ import {
51
51
  saveSkillToProject,
52
52
  skillExists,
53
53
  spawnShellProcess
54
- } from "./chunk-ALH4KM2Y.js";
54
+ } from "./chunk-KEF4O3UM.js";
55
+ import {
56
+ EventEmitter,
57
+ provideAnswer
58
+ } from "./chunk-BJYPTN5S.js";
55
59
  import {
56
60
  getProject
57
61
  } from "./chunk-XAMAYRDA.js";
@@ -101,14 +105,14 @@ import {
101
105
  updateSessionMetadata,
102
106
  updateSessionProvider,
103
107
  updateSessionRunning
104
- } from "./chunk-XKR3HCAL.js";
108
+ } from "./chunk-HLZV4S2I.js";
105
109
  import {
106
110
  initDatabase
107
111
  } from "./chunk-FBGWG4N6.js";
108
112
  import {
109
113
  buildMessagesFromStoredEvents,
110
114
  foldPendingConfirmations
111
- } from "./chunk-NONI4CRP.js";
115
+ } from "./chunk-26DZZZDC.js";
112
116
  import {
113
117
  createChatErrorMessage,
114
118
  createChatMessageMessage,
@@ -124,10 +128,6 @@ import {
124
128
  serializeServerMessage,
125
129
  storedEventToServerMessage
126
130
  } from "./chunk-CEZNMLOO.js";
127
- import {
128
- EventEmitter,
129
- provideAnswer
130
- } from "./chunk-BJYPTN5S.js";
131
131
  import {
132
132
  computeSessionStats
133
133
  } from "./chunk-VUQCQXXJ.js";
@@ -5748,7 +5748,7 @@ import { Router as Router6 } from "express";
5748
5748
  import { spawn as spawn5 } from "child_process";
5749
5749
 
5750
5750
  // src/constants.ts
5751
- var VERSION = "2.0.0-beta.2";
5751
+ var VERSION = "2.0.0-beta.4";
5752
5752
 
5753
5753
  // src/server/routes/auto-update.ts
5754
5754
  var updateInProgress = false;
@@ -6051,7 +6051,7 @@ async function createServerHandle(config4) {
6051
6051
  res.json({ project });
6052
6052
  });
6053
6053
  app.get("/api/sessions", async (req, res) => {
6054
- const { getRecentUserPromptsForSession } = await import("./events-OHJWCI3S.js");
6054
+ const { getRecentUserPromptsForSession } = await import("./events-YO52472Q.js");
6055
6055
  const projectId = req.query["projectId"];
6056
6056
  const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
6057
6057
  const offset = parseInt(req.query["offset"]) || 0;
@@ -6084,8 +6084,9 @@ async function createServerHandle(config4) {
6084
6084
  res.status(201).json({ session });
6085
6085
  });
6086
6086
  app.get("/api/sessions/:id", async (req, res) => {
6087
- const { getEventStore: getEventStore2 } = await import("./events-OHJWCI3S.js");
6088
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-U6UHQAS5.js");
6087
+ const { getEventStore: getEventStore2 } = await import("./events-YO52472Q.js");
6088
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-K5L6M4WK.js");
6089
+ const { stripPromptContextMessages } = await import("./optimize-storage-2N6BY5KZ.js");
6089
6090
  const session = sessionManager.getSession(req.params.id);
6090
6091
  if (!session) {
6091
6092
  return res.status(404).json({ error: "Session not found" });
@@ -6095,6 +6096,8 @@ async function createServerHandle(config4) {
6095
6096
  const messages = buildMessagesFromStoredEvents2(events);
6096
6097
  const contextState = sessionManager.getContextState(req.params.id);
6097
6098
  const queueState = sessionManager.getQueueState(req.params.id);
6099
+ stripPromptContextMessages(session.messages);
6100
+ stripPromptContextMessages(messages);
6098
6101
  res.json({ session, messages, contextState, queueState });
6099
6102
  });
6100
6103
  app.delete("/api/sessions/:id", (req, res) => {
@@ -6115,8 +6118,8 @@ async function createServerHandle(config4) {
6115
6118
  res.json({ success: true });
6116
6119
  });
6117
6120
  app.post("/api/sessions/:id/provider", async (req, res) => {
6118
- const { getEventStore: getEventStore2 } = await import("./events-OHJWCI3S.js");
6119
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-U6UHQAS5.js");
6121
+ const { getEventStore: getEventStore2 } = await import("./events-YO52472Q.js");
6122
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-K5L6M4WK.js");
6120
6123
  const sessionId = req.params.id;
6121
6124
  const session = sessionManager.getSession(sessionId);
6122
6125
  if (!session) {
@@ -6158,8 +6161,8 @@ async function createServerHandle(config4) {
6158
6161
  res.json({ success: true });
6159
6162
  });
6160
6163
  app.put("/api/sessions/:id/mode", async (req, res) => {
6161
- const { getEventStore: getEventStore2 } = await import("./events-OHJWCI3S.js");
6162
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-U6UHQAS5.js");
6164
+ const { getEventStore: getEventStore2 } = await import("./events-YO52472Q.js");
6165
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-K5L6M4WK.js");
6163
6166
  const sessionId = req.params.id;
6164
6167
  const session = sessionManager.getSession(sessionId);
6165
6168
  if (!session) {
@@ -6215,13 +6218,13 @@ async function createServerHandle(config4) {
6215
6218
  if (!callId || approved === void 0) {
6216
6219
  return res.status(400).json({ error: "callId and approved are required" });
6217
6220
  }
6218
- const { providePathConfirmation } = await import("./tools-Z7X4HXZN.js");
6221
+ const { providePathConfirmation } = await import("./tools-OPEU2E5M.js");
6219
6222
  const result = providePathConfirmation(callId, approved, alwaysAllow);
6220
6223
  if (!result.found) {
6221
6224
  return res.status(404).json({ error: "No pending path confirmation with that ID" });
6222
6225
  }
6223
- const { getEventStore: getEventStore2 } = await import("./events-OHJWCI3S.js");
6224
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-U6UHQAS5.js");
6226
+ const { getEventStore: getEventStore2 } = await import("./events-YO52472Q.js");
6227
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-K5L6M4WK.js");
6225
6228
  const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-K62EPEGS.js");
6226
6229
  const eventStore = getEventStore2();
6227
6230
  const events = eventStore.getEvents(sessionId);
@@ -6239,7 +6242,7 @@ async function createServerHandle(config4) {
6239
6242
  if (!callId || !answer) {
6240
6243
  return res.status(400).json({ error: "callId and answer are required" });
6241
6244
  }
6242
- const { provideAnswer: provideAnswer2 } = await import("./tools-Z7X4HXZN.js");
6245
+ const { provideAnswer: provideAnswer2 } = await import("./tools-OPEU2E5M.js");
6243
6246
  const found = provideAnswer2(callId, answer);
6244
6247
  if (!found) {
6245
6248
  return res.status(404).json({ error: "No pending question with that ID" });
@@ -6275,14 +6278,14 @@ async function createServerHandle(config4) {
6275
6278
  if (!session) {
6276
6279
  return res.status(404).json({ error: "Session not found" });
6277
6280
  }
6278
- const { stopSessionExecution } = await import("./chat-handler-IVIWOR3D.js");
6279
- const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-Z7X4HXZN.js");
6281
+ const { stopSessionExecution } = await import("./chat-handler-IUWEBZG7.js");
6282
+ const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-OPEU2E5M.js");
6280
6283
  stopSessionExecution(sessionId, sessionManager);
6281
6284
  abortSession(sessionId);
6282
6285
  cancelQuestionsForSession(sessionId, "Session stopped by user");
6283
6286
  cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
6284
6287
  sessionManager.clearMessageQueue(sessionId);
6285
- const eventStore = (await import("./events-OHJWCI3S.js")).getEventStore();
6288
+ const eventStore = (await import("./events-YO52472Q.js")).getEventStore();
6286
6289
  eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
6287
6290
  res.json({ success: true });
6288
6291
  });
@@ -6296,7 +6299,7 @@ async function createServerHandle(config4) {
6296
6299
  if (typeof messageIndex !== "number" || messageIndex < 0) {
6297
6300
  return res.status(400).json({ error: "messageIndex must be a non-negative number" });
6298
6301
  }
6299
- const { truncateSessionMessages } = await import("./events-OHJWCI3S.js");
6302
+ const { truncateSessionMessages } = await import("./events-YO52472Q.js");
6300
6303
  truncateSessionMessages(sessionId, messageIndex);
6301
6304
  res.json({ success: true });
6302
6305
  });
@@ -6314,7 +6317,7 @@ async function createServerHandle(config4) {
6314
6317
  if (!msg) {
6315
6318
  return res.status(400).json({ error: "Message not found at this index" });
6316
6319
  }
6317
- const { truncateSessionMessages } = await import("./events-OHJWCI3S.js");
6320
+ const { truncateSessionMessages } = await import("./events-YO52472Q.js");
6318
6321
  truncateSessionMessages(sessionId, messageIndex - 1);
6319
6322
  sessionManager.queueMessage(sessionId, "asap", msg.content, msg.attachments, msg.messageKind);
6320
6323
  res.json({ success: true });
@@ -6791,7 +6794,7 @@ async function createServerHandle(config4) {
6791
6794
  providerManager
6792
6795
  );
6793
6796
  const wss = wssExports.wss;
6794
- const { QueueProcessor } = await import("./processor-TKBJLQ2N.js");
6797
+ const { QueueProcessor } = await import("./processor-FTEASNGS.js");
6795
6798
  const queueProcessor = new QueueProcessor({
6796
6799
  sessionManager,
6797
6800
  providerManager,
@@ -6863,4 +6866,4 @@ export {
6863
6866
  createServerHandle,
6864
6867
  createServer
6865
6868
  };
6866
- //# sourceMappingURL=chunk-SYUVZOXU.js.map
6869
+ //# sourceMappingURL=chunk-WBYS7AQN.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-5M4W3PKD.js";
4
+ } from "../chunk-EYCCASW3.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-5M4W3PKD.js";
4
+ } from "../chunk-EYCCASW3.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-HLZV4S2I.js";
42
42
  import "./chunk-FBGWG4N6.js";
43
43
  import {
44
44
  buildContextMessagesFromEventHistory,
@@ -56,7 +56,8 @@ import {
56
56
  foldTodos,
57
57
  foldTurnEventsToSnapshotMessages,
58
58
  getMessagesForWindow
59
- } from "./chunk-NONI4CRP.js";
59
+ } from "./chunk-26DZZZDC.js";
60
+ import "./chunk-MCPID4EJ.js";
60
61
  import "./chunk-CGZHLM3K.js";
61
62
  import "./chunk-K44MW7JJ.js";
62
63
  export {
@@ -115,4 +116,4 @@ export {
115
116
  isTurnEvent,
116
117
  truncateSessionMessages
117
118
  };
118
- //# sourceMappingURL=events-OHJWCI3S.js.map
119
+ //# sourceMappingURL=events-YO52472Q.js.map
@@ -23,7 +23,8 @@ import {
23
23
  handleToolResult,
24
24
  spreadOptionalMessageFields,
25
25
  stripOrphanedToolCalls
26
- } from "./chunk-NONI4CRP.js";
26
+ } from "./chunk-26DZZZDC.js";
27
+ import "./chunk-MCPID4EJ.js";
27
28
  export {
28
29
  buildContextMessagesFromEventHistory,
29
30
  buildContextMessagesFromMessages,
@@ -50,4 +51,4 @@ export {
50
51
  spreadOptionalMessageFields,
51
52
  stripOrphanedToolCalls
52
53
  };
53
- //# sourceMappingURL=folding-U6UHQAS5.js.map
54
+ //# sourceMappingURL=folding-K5L6M4WK.js.map
@@ -0,0 +1,7 @@
1
+ import {
2
+ stripPromptContextMessages
3
+ } from "./chunk-MCPID4EJ.js";
4
+ export {
5
+ stripPromptContextMessages
6
+ };
7
+ //# sourceMappingURL=optimize-storage-2N6BY5KZ.js.map
@@ -3,7 +3,7 @@ import {
3
3
  runBuilderTurn,
4
4
  runChatTurn,
5
5
  runVerifierTurn
6
- } from "./chunk-UFY4I643.js";
6
+ } from "./chunk-7IKUIYFZ.js";
7
7
  import {
8
8
  TurnMetrics,
9
9
  createChatDoneEvent,
@@ -11,18 +11,19 @@ import {
11
11
  createMessageStartEvent,
12
12
  createToolCallEvent,
13
13
  createToolResultEvent
14
- } from "./chunk-ALH4KM2Y.js";
14
+ } from "./chunk-KEF4O3UM.js";
15
+ import "./chunk-BJYPTN5S.js";
15
16
  import "./chunk-PSJIT5LZ.js";
16
17
  import "./chunk-XAMAYRDA.js";
17
18
  import "./chunk-DL6ZILAF.js";
18
19
  import "./chunk-PBGOZMVY.js";
19
20
  import "./chunk-VRGRAQDG.js";
20
21
  import "./chunk-HGAMIPFO.js";
21
- import "./chunk-XKR3HCAL.js";
22
+ import "./chunk-HLZV4S2I.js";
22
23
  import "./chunk-FBGWG4N6.js";
23
- import "./chunk-NONI4CRP.js";
24
+ import "./chunk-26DZZZDC.js";
25
+ import "./chunk-MCPID4EJ.js";
24
26
  import "./chunk-CEZNMLOO.js";
25
- import "./chunk-BJYPTN5S.js";
26
27
  import "./chunk-FQLK5GL5.js";
27
28
  import "./chunk-CQGTEGKL.js";
28
29
  import "./chunk-CGZHLM3K.js";
@@ -40,4 +41,4 @@ export {
40
41
  runChatTurn,
41
42
  runVerifierTurn
42
43
  };
43
- //# sourceMappingURL=orchestrator-7ZXM4J22.js.map
44
+ //# sourceMappingURL=orchestrator-F75DNQKQ.js.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -5,12 +5,13 @@ import {
5
5
  generateSessionName,
6
6
  getSessionMessageCount,
7
7
  needsNameGenerationCheck
8
- } from "./chunk-QFSSKIQ3.js";
8
+ } from "./chunk-HW3U4XSZ.js";
9
9
  import {
10
10
  getEventStore
11
- } from "./chunk-XKR3HCAL.js";
11
+ } from "./chunk-HLZV4S2I.js";
12
12
  import "./chunk-FBGWG4N6.js";
13
- import "./chunk-NONI4CRP.js";
13
+ import "./chunk-26DZZZDC.js";
14
+ import "./chunk-MCPID4EJ.js";
14
15
  import {
15
16
  createChatMessageMessage,
16
17
  createSessionRunningMessage
@@ -177,7 +178,7 @@ var QueueProcessor = class {
177
178
  backend: provider?.backend ?? llmClient.getBackend(),
178
179
  model: llmClient.getModel()
179
180
  };
180
- const { runChatTurn } = await import("./orchestrator-7ZXM4J22.js");
181
+ const { runChatTurn } = await import("./orchestrator-F75DNQKQ.js");
181
182
  const runChatTurnParams = buildRunChatTurnParams({
182
183
  sessionManager,
183
184
  sessionId,
@@ -221,4 +222,4 @@ var QueueProcessor = class {
221
222
  export {
222
223
  QueueProcessor
223
224
  };
224
- //# sourceMappingURL=processor-TKBJLQ2N.js.map
225
+ //# sourceMappingURL=processor-FTEASNGS.js.map
@@ -6,9 +6,10 @@ import {
6
6
  import {
7
7
  VERSION,
8
8
  createServer
9
- } from "./chunk-SYUVZOXU.js";
10
- import "./chunk-UFY4I643.js";
11
- import "./chunk-ALH4KM2Y.js";
9
+ } from "./chunk-WBYS7AQN.js";
10
+ import "./chunk-7IKUIYFZ.js";
11
+ import "./chunk-KEF4O3UM.js";
12
+ import "./chunk-BJYPTN5S.js";
12
13
  import "./chunk-PSJIT5LZ.js";
13
14
  import "./chunk-XAMAYRDA.js";
14
15
  import "./chunk-DL6ZILAF.js";
@@ -17,11 +18,11 @@ import "./chunk-VRGRAQDG.js";
17
18
  import "./chunk-RF2JGDSS.js";
18
19
  import "./chunk-HHAJ3QF6.js";
19
20
  import "./chunk-HGAMIPFO.js";
20
- import "./chunk-XKR3HCAL.js";
21
+ import "./chunk-HLZV4S2I.js";
21
22
  import "./chunk-FBGWG4N6.js";
22
- import "./chunk-NONI4CRP.js";
23
+ import "./chunk-26DZZZDC.js";
24
+ import "./chunk-MCPID4EJ.js";
23
25
  import "./chunk-CEZNMLOO.js";
24
- import "./chunk-BJYPTN5S.js";
25
26
  import "./chunk-VUQCQXXJ.js";
26
27
  import "./chunk-FQLK5GL5.js";
27
28
  import {
@@ -190,4 +191,4 @@ async function runServe(options) {
190
191
  export {
191
192
  runServe
192
193
  };
193
- //# sourceMappingURL=serve-WB62HFNJ.js.map
194
+ //# sourceMappingURL=serve-CEQ2QMM5.js.map