openfox 2.0.75 → 2.0.76

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 (52) hide show
  1. package/README.md +5 -2
  2. package/dist/{chat-handler-QLMBYRDY.js → chat-handler-3BZ4PDL2.js} +14 -14
  3. package/dist/{chunk-KEVRZWL3.js → chunk-46RORSKU.js} +2 -2
  4. package/dist/{chunk-S7O77CVO.js → chunk-4QHDQP2N.js} +2 -2
  5. package/dist/{chunk-XWBNYU2L.js → chunk-7772ENZN.js} +4 -3
  6. package/dist/{chunk-I4RWK2L2.js → chunk-7QXRQ5ZL.js} +3 -3
  7. package/dist/{chunk-6ZMGWDOD.js → chunk-D6CI2B7B.js} +34 -43
  8. package/dist/{chunk-E5LLEO3C.js → chunk-DH3SSBZN.js} +2 -2
  9. package/dist/{chunk-LUG5QTFC.js → chunk-HAQV6AJP.js} +3 -3
  10. package/dist/{chunk-PJQW6TYI.js → chunk-HHUIXHHX.js} +4 -4
  11. package/dist/{chunk-J3VQBVGO.js → chunk-HLHGNHMV.js} +8 -8
  12. package/dist/{chunk-MIJX54CG.js → chunk-J7VCI5EX.js} +91 -65
  13. package/dist/chunk-KQEVAO2Q.js +7 -0
  14. package/dist/{chunk-UN26GIQG.js → chunk-KVRSAC4Z.js} +1 -1
  15. package/dist/{chunk-UV3EMWL4.js → chunk-LXFLRM7M.js} +2 -2
  16. package/dist/{chunk-YFFP4DR4.js → chunk-NGJ5XJ7D.js} +2 -2
  17. package/dist/{chunk-LTFB2WWE.js → chunk-OBQPXUXI.js} +2 -2
  18. package/dist/{chunk-OHGQILRF.js → chunk-OCVRIPQP.js} +2 -2
  19. package/dist/{chunk-LKUAKQZY.js → chunk-OMWVB2XC.js} +8 -8
  20. package/dist/{chunk-6XOA2WPU.js → chunk-W4ZEG3LX.js} +5 -2
  21. package/dist/{chunk-CJ2AJ7HU.js → chunk-XTK6E2QR.js} +3 -3
  22. package/dist/{chunk-QNKXZH3Z.js → chunk-YMFCFMMB.js} +2 -2
  23. package/dist/cli/dev.js +1 -1
  24. package/dist/cli/index.js +1 -1
  25. package/dist/{client-SC6X65GY.js → client-TDPQVBQ7.js} +2 -2
  26. package/dist/{compactor-AERNYEMP.js → compactor-BB3YYVRP.js} +7 -7
  27. package/dist/{events-X353XCPN.js → events-FLWRLM6V.js} +3 -3
  28. package/dist/{inspect-proxy-PHVZBZUO.js → inspect-proxy-JHZV34QR.js} +4 -4
  29. package/dist/{manager-5GILDCVD.js → manager-OPMCSYN2.js} +5 -5
  30. package/dist/{orchestrator-BIFTALBG.js → orchestrator-5IMCWX5P.js} +13 -13
  31. package/dist/package.json +1 -1
  32. package/dist/{path-security-3FAIPJSV.js → path-security-ZROWNL22.js} +4 -4
  33. package/dist/{platform-XQ7BS3KQ.js → platform-QGXO3CNR.js} +4 -4
  34. package/dist/plugins-registry.json +6 -0
  35. package/dist/{processor-MQ47QSDR.js → processor-3R4GS6VB.js} +14 -14
  36. package/dist/{project-creator-FQRBN3RG.js → project-creator-C22J43BC.js} +3 -3
  37. package/dist/{projects-LHRNCUGW.js → projects-WSVINK2C.js} +3 -3
  38. package/dist/{provider-OJUCZ5RN.js → provider-G2YC2IC4.js} +3 -3
  39. package/dist/{provider-manager-MAKXSL6L.js → provider-manager-SQIELYLK.js} +3 -3
  40. package/dist/{serve-UD27KOL2.js → serve-MXKMKZYY.js} +19 -19
  41. package/dist/server/index.js +18 -18
  42. package/dist/{server-TJ3PP5EW.js → server-SPYFMFQE.js} +15 -15
  43. package/dist/{settings-PFXRYXZU.js → settings-7XDMSPIC.js} +3 -3
  44. package/dist/{tools-RZ464GUJ.js → tools-JRCUWPJO.js} +12 -12
  45. package/dist/{update-MWIZH4P2.js → update-OXDQ75M7.js} +2 -2
  46. package/dist/{update-server-MYYQUNZX.js → update-server-4MTM7M5P.js} +2 -2
  47. package/dist/web/assets/{index-Bn4hwZeP.js → index-ghDkIdlf.js} +28 -28
  48. package/dist/web/index.html +1 -1
  49. package/dist/web/sw.js +1 -1
  50. package/package.json +1 -1
  51. package/plugins-registry.json +6 -0
  52. package/dist/chunk-6COWK53A.js +0 -7
package/README.md CHANGED
@@ -85,6 +85,8 @@ openfox provider remove # Remove provider
85
85
 
86
86
  OpenFox supports provider plugins loaded from the `plugins` directory inside its configuration folder. Plugins can add authentication methods, transports, provider presets, and model discovery without adding provider-specific code to the OpenFox core.
87
87
 
88
+ You can install the plugin manually or directly from the UI.
89
+
88
90
  Default plugin directories:
89
91
 
90
92
  - macOS: `~/Library/Application Support/openfox/plugins`
@@ -93,8 +95,9 @@ Default plugin directories:
93
95
 
94
96
  Restart OpenFox after installing or updating a plugin.
95
97
 
96
- To authenticate with a ChatGPT Plus or Pro account, you can install the [`openfox-chatgpt`](https://github.com/arthurlacoste/openfox-chatgpt) plugin.
97
- To authenticate with a Github copilot account, you can install the [`openfox-github-copilot`](https://github.com/JamesDAdams/openfox-github-copilot) plugin.
98
+ - To authenticate with a ChatGPT Plus or Pro account, you can install the [`openfox-chatgpt`](https://github.com/arthurlacoste/openfox-chatgpt) plugin.
99
+ - To authenticate with a Github copilot account, you can install the [`openfox-github-copilot`](https://github.com/JamesDAdams/openfox-github-copilot) plugin.
100
+ - To authenticate with a Google Antigravity account, you can install the [`openfox-google-antigravity`](https://github.com/JamesDAdams/openfox-google-antigravity) plugin.
98
101
 
99
102
  ## Screenshots
100
103
 
@@ -2,28 +2,28 @@ import {
2
2
  buildRunChatTurnParams,
3
3
  finalizeTurnCompletion,
4
4
  generateSessionNameForSession
5
- } from "./chunk-CJ2AJ7HU.js";
5
+ } from "./chunk-XTK6E2QR.js";
6
6
  import {
7
7
  runChatTurn
8
- } from "./chunk-J3VQBVGO.js";
9
- import "./chunk-6ZMGWDOD.js";
8
+ } from "./chunk-HLHGNHMV.js";
9
+ import "./chunk-D6CI2B7B.js";
10
10
  import "./chunk-NWO6GRYE.js";
11
- import "./chunk-UN26GIQG.js";
11
+ import "./chunk-KVRSAC4Z.js";
12
12
  import "./chunk-MF3UW36X.js";
13
13
  import "./chunk-WGMJCFCE.js";
14
14
  import "./chunk-EU3WWTFH.js";
15
- import "./chunk-XWBNYU2L.js";
16
- import "./chunk-E5LLEO3C.js";
17
- import "./chunk-UV3EMWL4.js";
18
- import "./chunk-LTFB2WWE.js";
19
- import "./chunk-S7O77CVO.js";
20
- import "./chunk-QNKXZH3Z.js";
15
+ import "./chunk-7772ENZN.js";
16
+ import "./chunk-DH3SSBZN.js";
17
+ import "./chunk-LXFLRM7M.js";
18
+ import "./chunk-OBQPXUXI.js";
19
+ import "./chunk-4QHDQP2N.js";
20
+ import "./chunk-YMFCFMMB.js";
21
21
  import "./chunk-I72ACQ6R.js";
22
- import "./chunk-KEVRZWL3.js";
22
+ import "./chunk-46RORSKU.js";
23
23
  import {
24
24
  getEventStore
25
- } from "./chunk-YFFP4DR4.js";
26
- import "./chunk-I4RWK2L2.js";
25
+ } from "./chunk-NGJ5XJ7D.js";
26
+ import "./chunk-7QXRQ5ZL.js";
27
27
  import "./chunk-DJASQ2ZB.js";
28
28
  import {
29
29
  createChatMessageMessage,
@@ -159,4 +159,4 @@ export {
159
159
  startChatSession,
160
160
  stopSessionExecution
161
161
  };
162
- //# sourceMappingURL=chat-handler-QLMBYRDY.js.map
162
+ //# sourceMappingURL=chat-handler-3BZ4PDL2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getEventStore
3
- } from "./chunk-YFFP4DR4.js";
3
+ } from "./chunk-NGJ5XJ7D.js";
4
4
  import {
5
5
  createChatPathConfirmationMessage
6
6
  } from "./chunk-O3NUNU4H.js";
@@ -492,4 +492,4 @@ export {
492
492
  hasPendingPathConfirmation,
493
493
  getPendingConfirmationsBySession
494
494
  };
495
- //# sourceMappingURL=chunk-KEVRZWL3.js.map
495
+ //# sourceMappingURL=chunk-46RORSKU.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SETTINGS_KEYS,
3
3
  getSetting
4
- } from "./chunk-QNKXZH3Z.js";
4
+ } from "./chunk-YMFCFMMB.js";
5
5
 
6
6
  // src/server/utils/platform.ts
7
7
  import os from "os";
@@ -63,4 +63,4 @@ export {
63
63
  isWindowsPath,
64
64
  isAbsolutePath
65
65
  };
66
- //# sourceMappingURL=chunk-S7O77CVO.js.map
66
+ //# sourceMappingURL=chunk-4QHDQP2N.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPlatformShell
3
- } from "./chunk-S7O77CVO.js";
3
+ } from "./chunk-4QHDQP2N.js";
4
4
  import {
5
5
  streamWithSegments
6
6
  } from "./chunk-J2GP3J3X.js";
@@ -419,13 +419,14 @@ async function* streamLLMPure(options) {
419
419
  const fullName = toolNames.get(value.index);
420
420
  if (!seenToolIndices.has(value.index) && fullName) {
421
421
  seenToolIndices.add(value.index);
422
+ const displayName = options.subAgentAliases?.has(fullName) ? "call_sub_agent" : fullName;
422
423
  const accumulatedArgs = toolArgs.get(value.index);
423
424
  yield {
424
425
  type: "tool.preparing",
425
426
  data: {
426
427
  messageId,
427
428
  index: value.index,
428
- name: fullName,
429
+ name: displayName,
429
430
  ...accumulatedArgs ? { arguments: accumulatedArgs } : {}
430
431
  }
431
432
  };
@@ -678,4 +679,4 @@ export {
678
679
  createChatDoneEvent,
679
680
  consumeStreamGenerator
680
681
  };
681
- //# sourceMappingURL=chunk-XWBNYU2L.js.map
682
+ //# sourceMappingURL=chunk-7772ENZN.js.map
@@ -176,8 +176,8 @@ function runMigrations(db2) {
176
176
  if (!columnNames.includes("workspace") && columnNames.includes("worktree")) {
177
177
  logger.info("Migrating sessions table: renaming worktree to workspace");
178
178
  db2.exec(`ALTER TABLE sessions RENAME COLUMN worktree TO workspace`);
179
- }
180
- if (!columnNames.includes("workspace")) {
179
+ columnNames[columnNames.indexOf("worktree")] = "workspace";
180
+ } else if (!columnNames.includes("workspace")) {
181
181
  logger.info("Migrating sessions table: adding workspace column");
182
182
  db2.exec(`ALTER TABLE sessions ADD COLUMN workspace TEXT`);
183
183
  }
@@ -188,4 +188,4 @@ export {
188
188
  initDatabase,
189
189
  getDatabase
190
190
  };
191
- //# sourceMappingURL=chunk-I4RWK2L2.js.map
191
+ //# sourceMappingURL=chunk-7QXRQ5ZL.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-NWO6GRYE.js";
4
4
  import {
5
5
  applyMcpServerUpdate
6
- } from "./chunk-UN26GIQG.js";
6
+ } from "./chunk-KVRSAC4Z.js";
7
7
  import {
8
8
  getGitBranch,
9
9
  listWorkspaces
@@ -24,13 +24,13 @@ import {
24
24
  createToolCallEvent,
25
25
  createToolResultEvent,
26
26
  streamLLMPure
27
- } from "./chunk-XWBNYU2L.js";
27
+ } from "./chunk-7772ENZN.js";
28
28
  import {
29
29
  startInspectProxy
30
- } from "./chunk-E5LLEO3C.js";
30
+ } from "./chunk-DH3SSBZN.js";
31
31
  import {
32
32
  getProject
33
- } from "./chunk-UV3EMWL4.js";
33
+ } from "./chunk-LXFLRM7M.js";
34
34
  import {
35
35
  checkAborted,
36
36
  createProcess,
@@ -41,13 +41,13 @@ import {
41
41
  spawnShellProcess,
42
42
  startProcessCommand,
43
43
  stopProcess
44
- } from "./chunk-LTFB2WWE.js";
44
+ } from "./chunk-OBQPXUXI.js";
45
45
  import {
46
46
  SETTINGS_KEYS,
47
47
  deleteSetting,
48
48
  getSetting,
49
49
  setSetting
50
- } from "./chunk-QNKXZH3Z.js";
50
+ } from "./chunk-YMFCFMMB.js";
51
51
  import {
52
52
  getMaxPerSession,
53
53
  getSessionProcessCount,
@@ -58,13 +58,13 @@ import {
58
58
  extractAbsolutePathsFromCommand,
59
59
  extractSensitivePathsFromCommand,
60
60
  requestPathAccess
61
- } from "./chunk-KEVRZWL3.js";
61
+ } from "./chunk-46RORSKU.js";
62
62
  import {
63
63
  getCurrentContextWindowId,
64
64
  getCurrentWindowMessageOptions,
65
65
  getEventStore,
66
66
  getRuntimeConfig
67
- } from "./chunk-YFFP4DR4.js";
67
+ } from "./chunk-NGJ5XJ7D.js";
68
68
  import {
69
69
  buildContextMessagesFromEventHistory,
70
70
  foldContextState,
@@ -2107,6 +2107,21 @@ function createToolProgressHandler(append, messageId, callId, _sessionId) {
2107
2107
  // src/server/chat/execute-tools.ts
2108
2108
  import stripAnsi2 from "strip-ansi";
2109
2109
  var INTERRUPTED_ERROR = "Tool execution was interrupted by user";
2110
+ function extractSubAgentPrompt(args) {
2111
+ return args["prompt"] || args["query"] || args["task"] || "";
2112
+ }
2113
+ async function transformSubAgentAliases(toolCalls, toolRegistry) {
2114
+ const hasCallSubAgent = toolRegistry.tools.some((t) => t.name === "call_sub_agent");
2115
+ if (!hasCallSubAgent) return;
2116
+ const agents = await loadAllAgentsDefault();
2117
+ for (const tc of toolCalls) {
2118
+ const agentDef = findAgentById(tc.name, agents);
2119
+ if (!agentDef?.metadata.subagent) continue;
2120
+ const prompt = extractSubAgentPrompt(tc.arguments);
2121
+ tc.name = "call_sub_agent";
2122
+ tc.arguments = { subAgentType: agentDef.metadata.id, prompt };
2123
+ }
2124
+ }
2110
2125
  function createInterruptedResult(startTime) {
2111
2126
  return {
2112
2127
  success: false,
@@ -2123,6 +2138,7 @@ async function executeTools(assistantMsgId, toolCalls, ctx, append) {
2123
2138
  if (ctx.signal?.aborted) {
2124
2139
  throw new Error("Aborted");
2125
2140
  }
2141
+ await transformSubAgentAliases(toolCalls, ctx.toolRegistry);
2126
2142
  for (const toolCall of toolCalls) {
2127
2143
  append(createToolCallEvent(assistantMsgId, toolCall));
2128
2144
  }
@@ -2428,6 +2444,8 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
2428
2444
  const requestedMaxTokens = modelSettings.maxTokens ?? 16384;
2429
2445
  modelSettings = { ...modelSettings, maxTokens: Math.min(requestedMaxTokens, availableForOutput) };
2430
2446
  }
2447
+ const allAgents = await loadAllAgentsDefault();
2448
+ const subAgentAliases = new Set(getSubAgents(allAgents).map((a) => a.metadata.id));
2431
2449
  const streamGen = streamLLMPure({
2432
2450
  messageId: assistantMsgId,
2433
2451
  systemPrompt: assembledRequest.systemPrompt,
@@ -2436,6 +2454,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
2436
2454
  tools: assembledRequest.tools,
2437
2455
  toolChoice: "auto",
2438
2456
  signal,
2457
+ subAgentAliases,
2439
2458
  ...config.retryPatterns ? { retryPatterns: config.retryPatterns } : {},
2440
2459
  ...modelSettings && { modelSettings }
2441
2460
  });
@@ -2494,7 +2513,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
2494
2513
  sessionManager.setCurrentContextSize(sessionId, result.usage.promptTokens, config.subAgentMetadata?.subAgentId);
2495
2514
  if (!compacting) {
2496
2515
  const contextState2 = sessionManager.getContextState(sessionId);
2497
- const { shouldCompact, appendCompactionPrompt } = await import("./compactor-AERNYEMP.js");
2516
+ const { shouldCompact, appendCompactionPrompt } = await import("./compactor-BB3YYVRP.js");
2498
2517
  if (shouldCompact(contextState2.currentTokens, contextState2.maxTokens, runtimeConfig.context.compactionThreshold)) {
2499
2518
  appendCompactionPrompt(sessionId, append);
2500
2519
  compacting = true;
@@ -3399,7 +3418,7 @@ var callSubAgentTool = {
3399
3418
  };
3400
3419
  }
3401
3420
  try {
3402
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-RZ464GUJ.js");
3421
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-JRCUWPJO.js");
3403
3422
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3404
3423
  const turnMetrics = new TurnMetrics();
3405
3424
  const result = await executeSubAgent({
@@ -4398,7 +4417,7 @@ var mcpConfigTool = createTool(
4398
4417
  mcpNotifyChanged?.(sessionId);
4399
4418
  }
4400
4419
  async function rebuildTools() {
4401
- const { setMcpTools: setMcpTools2 } = await import("./tools-RZ464GUJ.js");
4420
+ const { setMcpTools: setMcpTools2 } = await import("./tools-JRCUWPJO.js");
4402
4421
  const mcpTools = createMcpTools(mcpManagerForTools);
4403
4422
  setMcpTools2(mcpTools);
4404
4423
  }
@@ -4484,7 +4503,9 @@ var mcpConfigTool = createTool(
4484
4503
  notifyContextChanged(context.sessionId);
4485
4504
  const server = mcpManagerForTools.getServer(args.name);
4486
4505
  const toolCount = server?.tools.length ?? 0;
4487
- return helpers.success(`Updated MCP server "${args.name}" (${toolCount} tools discovered). ${APPLY_PROMPT_MESSAGE}`);
4506
+ return helpers.success(
4507
+ `Updated MCP server "${args.name}" (${toolCount} tools discovered). ${APPLY_PROMPT_MESSAGE}`
4508
+ );
4488
4509
  }
4489
4510
  if (args.action === "remove") {
4490
4511
  if (!args.name) return helpers.error("Missing required field: name");
@@ -4828,39 +4849,11 @@ function validateToolAction(toolName, action, permissions) {
4828
4849
  }
4829
4850
  return void 0;
4830
4851
  }
4831
- function extractSubAgentPrompt(args) {
4832
- return args["prompt"] || args["query"] || args["task"] || "";
4833
- }
4834
4852
  function createRegistryFromTools(tools, allowedTools, toolPermissions, agentId, isSubAgent) {
4835
4853
  const toolMap = /* @__PURE__ */ new Map();
4836
4854
  for (const tool of tools) {
4837
4855
  toolMap.set(tool.name, tool);
4838
4856
  }
4839
- async function trySubAgentAlias(name, args, context) {
4840
- if (!toolMap.has("call_sub_agent")) {
4841
- return null;
4842
- }
4843
- try {
4844
- const agents = await loadAllAgentsDefault();
4845
- const agentDef = findAgentById(name, agents);
4846
- if (!agentDef?.metadata.subagent) {
4847
- return null;
4848
- }
4849
- const prompt = extractSubAgentPrompt(args);
4850
- logger.info("Sub-agent alias transformation", {
4851
- from: name,
4852
- to: "call_sub_agent",
4853
- subAgentType: name
4854
- });
4855
- return callSubAgentTool.execute({ subAgentType: name, prompt }, context);
4856
- } catch (err) {
4857
- logger.warn("Sub-agent alias resolution failed", {
4858
- tool: name,
4859
- error: err instanceof Error ? err.message : String(err)
4860
- });
4861
- return null;
4862
- }
4863
- }
4864
4857
  return {
4865
4858
  tools,
4866
4859
  definitions: tools.map((t) => t.definition),
@@ -4936,8 +4929,6 @@ function createRegistryFromTools(tools, allowedTools, toolPermissions, agentId,
4936
4929
  };
4937
4930
  }
4938
4931
  }
4939
- const aliasResult = await trySubAgentAlias(name, args, context);
4940
- if (aliasResult) return aliasResult;
4941
4932
  return {
4942
4933
  success: false,
4943
4934
  error: `Unknown tool: ${name}. Available tools: ${tools.map((t) => t.name).join(", ")}`,
@@ -5074,4 +5065,4 @@ export {
5074
5065
  getToolRegistryForAgent,
5075
5066
  createToolRegistry
5076
5067
  };
5077
- //# sourceMappingURL=chunk-6ZMGWDOD.js.map
5068
+ //# sourceMappingURL=chunk-D6CI2B7B.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getProjectByWorkdir
3
- } from "./chunk-UV3EMWL4.js";
3
+ } from "./chunk-LXFLRM7M.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-K44MW7JJ.js";
@@ -343,4 +343,4 @@ export {
343
343
  startInspectProxy,
344
344
  stopAllInspectProxies
345
345
  };
346
- //# sourceMappingURL=chunk-E5LLEO3C.js.map
346
+ //# sourceMappingURL=chunk-DH3SSBZN.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  COMPACTION_PROMPT,
3
3
  createMessageStartEvent
4
- } from "./chunk-XWBNYU2L.js";
4
+ } from "./chunk-7772ENZN.js";
5
5
  import {
6
6
  getCurrentWindowMessageOptions
7
- } from "./chunk-YFFP4DR4.js";
7
+ } from "./chunk-NGJ5XJ7D.js";
8
8
 
9
9
  // src/server/context/compactor.ts
10
10
  function appendCompactionPrompt(sessionId, append) {
@@ -31,4 +31,4 @@ export {
31
31
  shouldCompact,
32
32
  getCompactionTarget
33
33
  };
34
- //# sourceMappingURL=chunk-LUG5QTFC.js.map
34
+ //# sourceMappingURL=chunk-HAQV6AJP.js.map
@@ -163,7 +163,7 @@ async function runCli(options) {
163
163
  break;
164
164
  }
165
165
  case "provider": {
166
- const { runProviderCommand } = await import("./provider-OJUCZ5RN.js");
166
+ const { runProviderCommand } = await import("./provider-G2YC2IC4.js");
167
167
  const [, subcommand] = positionals;
168
168
  await runProviderCommand(mode, subcommand);
169
169
  break;
@@ -200,7 +200,7 @@ async function runCli(options) {
200
200
  break;
201
201
  }
202
202
  case "update": {
203
- const { runUpdate } = await import("./update-MWIZH4P2.js");
203
+ const { runUpdate } = await import("./update-OXDQ75M7.js");
204
204
  const code = await runUpdate();
205
205
  if (code !== 0) {
206
206
  process.exit(code);
@@ -213,7 +213,7 @@ async function runCli(options) {
213
213
  if (!configExists) {
214
214
  await runNetworkSetup(mode);
215
215
  }
216
- const { runServe } = await import("./serve-UD27KOL2.js");
216
+ const { runServe } = await import("./serve-MXKMKZYY.js");
217
217
  const serveOptions = { mode };
218
218
  if (values.port) serveOptions.port = parseInt(values.port);
219
219
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -225,4 +225,4 @@ async function runCli(options) {
225
225
  export {
226
226
  runCli
227
227
  };
228
- //# sourceMappingURL=chunk-PJQW6TYI.js.map
228
+ //# sourceMappingURL=chunk-HHUIXHHX.js.map
@@ -9,7 +9,7 @@ import {
9
9
  loadAllAgentsDefault,
10
10
  processEventsForConversation,
11
11
  runTopLevelAgentLoop
12
- } from "./chunk-6ZMGWDOD.js";
12
+ } from "./chunk-D6CI2B7B.js";
13
13
  import {
14
14
  TurnMetrics,
15
15
  buildAgentReminder,
@@ -17,16 +17,16 @@ import {
17
17
  buildTopLevelSystemPrompt,
18
18
  createChatDoneEvent,
19
19
  createMessageStartEvent
20
- } from "./chunk-XWBNYU2L.js";
20
+ } from "./chunk-7772ENZN.js";
21
21
  import {
22
22
  PathAccessDeniedError
23
- } from "./chunk-KEVRZWL3.js";
23
+ } from "./chunk-46RORSKU.js";
24
24
  import {
25
25
  getCurrentContextWindowId,
26
26
  getCurrentWindowMessageOptions,
27
27
  getEventStore,
28
28
  getRuntimeConfig
29
- } from "./chunk-YFFP4DR4.js";
29
+ } from "./chunk-NGJ5XJ7D.js";
30
30
  import {
31
31
  buildSnapshotFromSessionState
32
32
  } from "./chunk-DJASQ2ZB.js";
@@ -66,7 +66,7 @@ function resolveAgentDef(sessionManager, sessionId) {
66
66
  }
67
67
  async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
68
68
  const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
69
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-RZ464GUJ.js");
69
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-JRCUWPJO.js");
70
70
  const tools = getToolRegistryForAgent2(agentDef).definitions;
71
71
  const toolFingerprint = getToolFingerprint(tools);
72
72
  const allAgents = await loadAllAgentsDefault();
@@ -79,7 +79,7 @@ async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
79
79
  async function computeSessionHash(sessionManager, sessionId) {
80
80
  const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
81
81
  const agentDef = await resolveAgentDef(sessionManager, sessionId);
82
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-RZ464GUJ.js");
82
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-JRCUWPJO.js");
83
83
  const tools = getToolRegistryForAgent2(agentDef).definitions;
84
84
  const toolFingerprint = getToolFingerprint(tools);
85
85
  return computeDynamicContextHash(instructionContent, skills, toolFingerprint);
@@ -97,7 +97,7 @@ async function applyDynamicContext(sessionManager, sessionId) {
97
97
 
98
98
  // src/server/chat/orchestrator.ts
99
99
  async function buildRetryPatterns() {
100
- const { getSetting, SETTINGS_KEYS } = await import("./settings-PFXRYXZU.js");
100
+ const { getSetting, SETTINGS_KEYS } = await import("./settings-7XDMSPIC.js");
101
101
  const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
102
102
  if (!raw) {
103
103
  const oldXmlProtection = getSetting("llm.disableXmlProtection");
@@ -359,4 +359,4 @@ export {
359
359
  runChatTurn,
360
360
  runAgentTurn
361
361
  };
362
- //# sourceMappingURL=chunk-J3VQBVGO.js.map
362
+ //# sourceMappingURL=chunk-HLHGNHMV.js.map