openfox 1.6.80 → 1.6.81

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.
@@ -2,7 +2,7 @@ import {
2
2
  maybeAutoCompactContext,
3
3
  performManualContextCompaction,
4
4
  resolveCompactionStatsIdentity
5
- } from "./chunk-7DOKXSMI.js";
5
+ } from "./chunk-42TLGPX4.js";
6
6
  import "./chunk-OXI26S7U.js";
7
7
  import "./chunk-CMQCO27Y.js";
8
8
  import "./chunk-DL6ZILAF.js";
@@ -24,4 +24,4 @@ export {
24
24
  performManualContextCompaction,
25
25
  resolveCompactionStatsIdentity
26
26
  };
27
- //# sourceMappingURL=auto-compaction-Q3GRX7T5.js.map
27
+ //# sourceMappingURL=auto-compaction-JSO3ZWSE.js.map
@@ -8,8 +8,8 @@ import {
8
8
  } from "./chunk-A5W6JUYZ.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-HPTMW2FT.js";
12
- import "./chunk-7DOKXSMI.js";
11
+ } from "./chunk-SJHWJAJA.js";
12
+ import "./chunk-42TLGPX4.js";
13
13
  import "./chunk-OXI26S7U.js";
14
14
  import "./chunk-CMQCO27Y.js";
15
15
  import "./chunk-DL6ZILAF.js";
@@ -61,7 +61,7 @@ async function startChatSession(sessionId, content, deps, options) {
61
61
  sessionManager.setRunning(sessionId, true);
62
62
  broadcastForSession(sessionId, createSessionRunningMessage(true));
63
63
  try {
64
- const { maybeAutoCompactContext } = await import("./auto-compaction-Q3GRX7T5.js");
64
+ const { maybeAutoCompactContext } = await import("./auto-compaction-JSO3ZWSE.js");
65
65
  await maybeAutoCompactContext({
66
66
  sessionManager,
67
67
  sessionId,
@@ -175,4 +175,4 @@ export {
175
175
  startChatSession,
176
176
  stopSessionExecution
177
177
  };
178
- //# sourceMappingURL=chat-handler-PO5OBBJE.js.map
178
+ //# sourceMappingURL=chat-handler-RN662HKM.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createVerifierNudgeConfig,
3
3
  runBuilderTurn,
4
4
  runChatTurn
5
- } from "./chunk-HPTMW2FT.js";
5
+ } from "./chunk-SJHWJAJA.js";
6
6
  import {
7
7
  TurnMetrics,
8
8
  agentExists,
@@ -37,7 +37,7 @@ import {
37
37
  setSkillEnabled,
38
38
  skillExists,
39
39
  spawnShellProcess
40
- } from "./chunk-7DOKXSMI.js";
40
+ } from "./chunk-42TLGPX4.js";
41
41
  import {
42
42
  getProject
43
43
  } from "./chunk-CMQCO27Y.js";
@@ -5257,7 +5257,7 @@ function createTerminalRoutes() {
5257
5257
  }
5258
5258
 
5259
5259
  // src/constants.ts
5260
- var VERSION = "1.6.80";
5260
+ var VERSION = "1.6.81";
5261
5261
 
5262
5262
  // src/server/index.ts
5263
5263
  var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
@@ -5614,7 +5614,7 @@ async function createServerHandle(config) {
5614
5614
  if (!callId || approved === void 0) {
5615
5615
  return res.status(400).json({ error: "callId and approved are required" });
5616
5616
  }
5617
- const { providePathConfirmation } = await import("./tools-B4KSCOWC.js");
5617
+ const { providePathConfirmation } = await import("./tools-Y3S6BHBZ.js");
5618
5618
  const result = providePathConfirmation(callId, approved, alwaysAllow);
5619
5619
  if (!result.found) {
5620
5620
  return res.status(404).json({ error: "No pending path confirmation with that ID" });
@@ -5638,7 +5638,7 @@ async function createServerHandle(config) {
5638
5638
  if (!callId || !answer) {
5639
5639
  return res.status(400).json({ error: "callId and answer are required" });
5640
5640
  }
5641
- const { provideAnswer: provideAnswer2 } = await import("./tools-B4KSCOWC.js");
5641
+ const { provideAnswer: provideAnswer2 } = await import("./tools-Y3S6BHBZ.js");
5642
5642
  const found = provideAnswer2(callId, answer);
5643
5643
  if (!found) {
5644
5644
  return res.status(404).json({ error: "No pending question with that ID" });
@@ -5674,8 +5674,8 @@ async function createServerHandle(config) {
5674
5674
  if (!session) {
5675
5675
  return res.status(404).json({ error: "Session not found" });
5676
5676
  }
5677
- const { stopSessionExecution } = await import("./chat-handler-PO5OBBJE.js");
5678
- const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-B4KSCOWC.js");
5677
+ const { stopSessionExecution } = await import("./chat-handler-RN662HKM.js");
5678
+ const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-Y3S6BHBZ.js");
5679
5679
  stopSessionExecution(sessionId, sessionManager);
5680
5680
  abortSession(sessionId);
5681
5681
  cancelQuestionsForSession(sessionId, "Session stopped by user");
@@ -6163,7 +6163,7 @@ async function createServerHandle(config) {
6163
6163
  providerManager
6164
6164
  );
6165
6165
  const wss = wssExports.wss;
6166
- const { QueueProcessor } = await import("./processor-SAS6Z2XZ.js");
6166
+ const { QueueProcessor } = await import("./processor-3A32D5MI.js");
6167
6167
  const queueProcessor = new QueueProcessor({
6168
6168
  sessionManager,
6169
6169
  providerManager,
@@ -6238,4 +6238,4 @@ export {
6238
6238
  createServerHandle,
6239
6239
  createServer
6240
6240
  };
6241
- //# sourceMappingURL=chunk-YLLWWYDA.js.map
6241
+ //# sourceMappingURL=chunk-2MHHSLNY.js.map
@@ -2965,12 +2965,13 @@ async function executeToolBatch(assistantMsgId, toolCalls, ctx) {
2965
2965
  truncated: false
2966
2966
  };
2967
2967
  ctx.turnMetrics.addToolTime(toolResult2.durationMs);
2968
- eventStore.append(ctx.sessionId, createToolResultEvent(assistantMsgId, toolCall.id, toolResult2));
2968
+ const event = createToolResultEvent(assistantMsgId, toolCall.id, toolResult2);
2969
2969
  return {
2970
2970
  toolCall,
2971
2971
  toolResult: toolResult2,
2972
2972
  content: `Error: ${toolResult2.error}`,
2973
- index
2973
+ index,
2974
+ event
2974
2975
  };
2975
2976
  }
2976
2977
  const onProgress = ctx.onMessage ? createToolProgressHandler(assistantMsgId, toolCall.id, ctx.onMessage) : void 0;
@@ -3022,7 +3023,6 @@ async function executeToolBatch(assistantMsgId, toolCalls, ctx) {
3022
3023
  }
3023
3024
  }
3024
3025
  ctx.turnMetrics.addToolTime(toolResult.durationMs);
3025
- eventStore.append(ctx.sessionId, createToolResultEvent(assistantMsgId, toolCall.id, toolResult));
3026
3026
  ctx.onToolExecuted?.(toolCall, toolResult);
3027
3027
  if (toolCall.name === "return_value" && !toolCall.parseError) {
3028
3028
  returnValueContent = toolCall.arguments["content"];
@@ -3037,12 +3037,15 @@ Error: ${toolResult.error}` : `Error: ${toolResult.error}`
3037
3037
  toolCall,
3038
3038
  toolResult,
3039
3039
  content,
3040
- index
3040
+ index,
3041
+ event: createToolResultEvent(assistantMsgId, toolCall.id, toolResult)
3041
3042
  };
3042
3043
  };
3043
3044
  const executionPromises = toolCalls.map((toolCall, index) => executeTool(toolCall, index));
3044
3045
  const results = await Promise.all(executionPromises);
3046
+ results.sort((a, b) => a.index - b.index);
3045
3047
  for (const result of results) {
3048
+ eventStore.append(ctx.sessionId, result.event);
3046
3049
  toolMessages.push({
3047
3050
  role: "tool",
3048
3051
  content: result.content,
@@ -3698,7 +3701,7 @@ var callSubAgentTool = {
3698
3701
  };
3699
3702
  }
3700
3703
  try {
3701
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-B4KSCOWC.js");
3704
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-Y3S6BHBZ.js");
3702
3705
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3703
3706
  const turnMetrics = new TurnMetrics();
3704
3707
  const result = await executeSubAgent({
@@ -4887,4 +4890,4 @@ export {
4887
4890
  getToolRegistryForAgent,
4888
4891
  createToolRegistry
4889
4892
  };
4890
- //# sourceMappingURL=chunk-7DOKXSMI.js.map
4893
+ //# sourceMappingURL=chunk-42TLGPX4.js.map
@@ -190,7 +190,7 @@ async function runCli(options) {
190
190
  if (!configExists) {
191
191
  await runNetworkSetup(mode);
192
192
  }
193
- const { runServe } = await import("./serve-U5FU7YWD.js");
193
+ const { runServe } = await import("./serve-D4NO4GJF.js");
194
194
  const serveOptions = { mode };
195
195
  if (values.port) serveOptions.port = parseInt(values.port);
196
196
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -202,4 +202,4 @@ async function runCli(options) {
202
202
  export {
203
203
  runCli
204
204
  };
205
- //# sourceMappingURL=chunk-GFLXCEZA.js.map
205
+ //# sourceMappingURL=chunk-6FOC2GAY.js.map
@@ -13,7 +13,7 @@ import {
13
13
  getToolRegistryForAgent,
14
14
  loadAllAgentsDefault,
15
15
  runTopLevelAgentLoop
16
- } from "./chunk-7DOKXSMI.js";
16
+ } from "./chunk-42TLGPX4.js";
17
17
  import {
18
18
  getCurrentContextWindowId,
19
19
  getEventStore
@@ -327,4 +327,4 @@ export {
327
327
  runBuilderTurn,
328
328
  runVerifierTurn
329
329
  };
330
- //# sourceMappingURL=chunk-HPTMW2FT.js.map
330
+ //# sourceMappingURL=chunk-SJHWJAJA.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-GFLXCEZA.js";
4
+ } from "../chunk-6FOC2GAY.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-GFLXCEZA.js";
4
+ } from "../chunk-6FOC2GAY.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-K44MW7JJ.js";
@@ -3,7 +3,7 @@ import {
3
3
  runBuilderTurn,
4
4
  runChatTurn,
5
5
  runVerifierTurn
6
- } from "./chunk-HPTMW2FT.js";
6
+ } from "./chunk-SJHWJAJA.js";
7
7
  import {
8
8
  TurnMetrics,
9
9
  createChatDoneEvent,
@@ -11,7 +11,7 @@ import {
11
11
  createMessageStartEvent,
12
12
  createToolCallEvent,
13
13
  createToolResultEvent
14
- } from "./chunk-7DOKXSMI.js";
14
+ } from "./chunk-42TLGPX4.js";
15
15
  import "./chunk-OXI26S7U.js";
16
16
  import "./chunk-CMQCO27Y.js";
17
17
  import "./chunk-DL6ZILAF.js";
@@ -40,4 +40,4 @@ export {
40
40
  runChatTurn,
41
41
  runVerifierTurn
42
42
  };
43
- //# sourceMappingURL=orchestrator-LVD4YU54.js.map
43
+ //# sourceMappingURL=orchestrator-NJHSRHZI.js.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "1.6.80",
3
+ "version": "1.6.81",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -177,7 +177,7 @@ var QueueProcessor = class {
177
177
  backend: provider?.backend ?? llmClient.getBackend(),
178
178
  model: llmClient.getModel()
179
179
  };
180
- const { runChatTurn } = await import("./orchestrator-LVD4YU54.js");
180
+ const { runChatTurn } = await import("./orchestrator-NJHSRHZI.js");
181
181
  const runChatTurnParams = buildRunChatTurnParams({
182
182
  sessionManager,
183
183
  sessionId,
@@ -221,4 +221,4 @@ var QueueProcessor = class {
221
221
  export {
222
222
  QueueProcessor
223
223
  };
224
- //# sourceMappingURL=processor-SAS6Z2XZ.js.map
224
+ //# sourceMappingURL=processor-3A32D5MI.js.map
@@ -6,9 +6,9 @@ import {
6
6
  import {
7
7
  VERSION,
8
8
  createServer
9
- } from "./chunk-YLLWWYDA.js";
10
- import "./chunk-HPTMW2FT.js";
11
- import "./chunk-7DOKXSMI.js";
9
+ } from "./chunk-2MHHSLNY.js";
10
+ import "./chunk-SJHWJAJA.js";
11
+ import "./chunk-42TLGPX4.js";
12
12
  import "./chunk-OXI26S7U.js";
13
13
  import "./chunk-CMQCO27Y.js";
14
14
  import "./chunk-DL6ZILAF.js";
@@ -190,4 +190,4 @@ async function runServe(options) {
190
190
  export {
191
191
  runServe
192
192
  };
193
- //# sourceMappingURL=serve-U5FU7YWD.js.map
193
+ //# sourceMappingURL=serve-D4NO4GJF.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-YLLWWYDA.js";
5
- import "../chunk-HPTMW2FT.js";
6
- import "../chunk-7DOKXSMI.js";
4
+ } from "../chunk-2MHHSLNY.js";
5
+ import "../chunk-SJHWJAJA.js";
6
+ import "../chunk-42TLGPX4.js";
7
7
  import "../chunk-OXI26S7U.js";
8
8
  import "../chunk-CMQCO27Y.js";
9
9
  import "../chunk-DL6ZILAF.js";
@@ -11,7 +11,7 @@ import {
11
11
  requestPathAccess,
12
12
  stepDoneTool,
13
13
  validateToolAction
14
- } from "./chunk-7DOKXSMI.js";
14
+ } from "./chunk-42TLGPX4.js";
15
15
  import "./chunk-OXI26S7U.js";
16
16
  import "./chunk-CMQCO27Y.js";
17
17
  import "./chunk-DL6ZILAF.js";
@@ -49,4 +49,4 @@ export {
49
49
  stepDoneTool,
50
50
  validateToolAction
51
51
  };
52
- //# sourceMappingURL=tools-B4KSCOWC.js.map
52
+ //# sourceMappingURL=tools-Y3S6BHBZ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "1.6.80",
3
+ "version": "1.6.81",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {