openfox 1.6.93 → 1.6.94

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 (35) hide show
  1. package/dist/{auto-compaction-WYN4P4R3.js → auto-compaction-UOYOMWLZ.js} +6 -6
  2. package/dist/{chat-handler-ROOMX2UY.js → chat-handler-5HU4QWD4.js} +9 -9
  3. package/dist/{chunk-YTPPQK55.js → chunk-4I3C46WU.js} +2 -2
  4. package/dist/{chunk-RW25DL5R.js → chunk-CGZHLM3K.js} +2 -2
  5. package/dist/{chunk-ZK3EZTHT.js → chunk-CHEVYEM4.js} +3 -3
  6. package/dist/{chunk-XGJ7HDQ7.js → chunk-DTXWOKAG.js} +2 -2
  7. package/dist/{chunk-32WAUDDK.js → chunk-FVVLGR2G.js} +12 -14
  8. package/dist/{chunk-RMQ4WCEK.js → chunk-HGAMIPFO.js} +2 -2
  9. package/dist/{chunk-TWGL3Y6S.js → chunk-HHAJ3QF6.js} +5 -5
  10. package/dist/{chunk-YG2QBUYJ.js → chunk-NNEHZT3V.js} +3 -3
  11. package/dist/{chunk-LABBIL3K.js → chunk-PNIXFZZH.js} +6 -6
  12. package/dist/{chunk-UAV33LRW.js → chunk-QIFXGM2L.js} +28 -28
  13. package/dist/{chunk-ZV2PE3KT.js → chunk-RF2JGDSS.js} +3 -3
  14. package/dist/{chunk-Z774ZQUP.js → chunk-SZKEGZIB.js} +3 -3
  15. package/dist/cli/dev.js +1 -1
  16. package/dist/cli/index.js +1 -1
  17. package/dist/{config-TSGOFNJW.js → config-YU7NYZYG.js} +5 -5
  18. package/dist/{events-K6AYMXFT.js → events-HTVBWGHO.js} +3 -3
  19. package/dist/{orchestrator-5I4LBRSY.js → orchestrator-KGYZO6XH.js} +7 -7
  20. package/dist/package.json +1 -1
  21. package/dist/{processor-47OC5EUI.js → processor-QFBRN6AZ.js} +5 -5
  22. package/dist/{provider-JIFQ47HT.js → provider-HTJEB3ON.js} +7 -7
  23. package/dist/{runtime-config-CYHDAC7W.js → runtime-config-NPSPMRDA.js} +2 -2
  24. package/dist/{serve-JQTSGHFU.js → serve-PSZFEXYU.js} +11 -11
  25. package/dist/server/index.d.ts +1 -0
  26. package/dist/server/index.js +9 -9
  27. package/dist/{tools-U6I43EN4.js → tools-FZS5JNQE.js} +6 -6
  28. package/dist/{vision-fallback-FBOTVWEX.js → vision-fallback-3MIZZ6NQ.js} +2 -2
  29. package/dist/web/assets/{index-CM0cLwa6.css → index-CGEQK8Pf.css} +1 -1
  30. package/dist/web/assets/index-GOp_0IH2.js +158 -0
  31. package/dist/web/index.html +2 -2
  32. package/dist/web/sw.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/web/assets/index-CjiS1Y5o.js +0 -176
  35. /package/dist/web/{workbox-7fc22fbe.js → workbox-8c29f6e4.js} +0 -0
@@ -2,26 +2,26 @@ import {
2
2
  maybeAutoCompactContext,
3
3
  performManualContextCompaction,
4
4
  resolveCompactionStatsIdentity
5
- } from "./chunk-32WAUDDK.js";
5
+ } from "./chunk-FVVLGR2G.js";
6
6
  import "./chunk-PQCFNTFJ.js";
7
7
  import "./chunk-ZHBL5G5X.js";
8
8
  import "./chunk-DL6ZILAF.js";
9
9
  import "./chunk-PBGOZMVY.js";
10
10
  import "./chunk-VRGRAQDG.js";
11
- import "./chunk-RMQ4WCEK.js";
12
- import "./chunk-YTPPQK55.js";
11
+ import "./chunk-HGAMIPFO.js";
12
+ import "./chunk-4I3C46WU.js";
13
13
  import "./chunk-5GVCNVKV.js";
14
14
  import "./chunk-XVWVAWSG.js";
15
15
  import "./chunk-PAAUYFYS.js";
16
16
  import "./chunk-BJYPTN5S.js";
17
17
  import "./chunk-ERFRUQQR.js";
18
18
  import "./chunk-CQGTEGKL.js";
19
- import "./chunk-RW25DL5R.js";
20
- import "./chunk-Z774ZQUP.js";
19
+ import "./chunk-CGZHLM3K.js";
20
+ import "./chunk-SZKEGZIB.js";
21
21
  import "./chunk-K44MW7JJ.js";
22
22
  export {
23
23
  maybeAutoCompactContext,
24
24
  performManualContextCompaction,
25
25
  resolveCompactionStatsIdentity
26
26
  };
27
- //# sourceMappingURL=auto-compaction-WYN4P4R3.js.map
27
+ //# sourceMappingURL=auto-compaction-UOYOMWLZ.js.map
@@ -5,20 +5,20 @@ import {
5
5
  generateSessionName,
6
6
  getSessionMessageCount,
7
7
  needsNameGenerationCheck
8
- } from "./chunk-XGJ7HDQ7.js";
8
+ } from "./chunk-DTXWOKAG.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-ZK3EZTHT.js";
12
- import "./chunk-32WAUDDK.js";
11
+ } from "./chunk-CHEVYEM4.js";
12
+ import "./chunk-FVVLGR2G.js";
13
13
  import "./chunk-PQCFNTFJ.js";
14
14
  import "./chunk-ZHBL5G5X.js";
15
15
  import "./chunk-DL6ZILAF.js";
16
16
  import "./chunk-PBGOZMVY.js";
17
17
  import "./chunk-VRGRAQDG.js";
18
- import "./chunk-RMQ4WCEK.js";
18
+ import "./chunk-HGAMIPFO.js";
19
19
  import {
20
20
  getEventStore
21
- } from "./chunk-YTPPQK55.js";
21
+ } from "./chunk-4I3C46WU.js";
22
22
  import "./chunk-5GVCNVKV.js";
23
23
  import "./chunk-XVWVAWSG.js";
24
24
  import {
@@ -29,8 +29,8 @@ import {
29
29
  import "./chunk-BJYPTN5S.js";
30
30
  import "./chunk-ERFRUQQR.js";
31
31
  import "./chunk-CQGTEGKL.js";
32
- import "./chunk-RW25DL5R.js";
33
- import "./chunk-Z774ZQUP.js";
32
+ import "./chunk-CGZHLM3K.js";
33
+ import "./chunk-SZKEGZIB.js";
34
34
  import {
35
35
  logger
36
36
  } from "./chunk-K44MW7JJ.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-WYN4P4R3.js");
64
+ const { maybeAutoCompactContext } = await import("./auto-compaction-UOYOMWLZ.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-ROOMX2UY.js.map
178
+ //# sourceMappingURL=chat-handler-5HU4QWD4.js.map
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-XVWVAWSG.js";
13
13
  import {
14
14
  getRuntimeConfig
15
- } from "./chunk-RW25DL5R.js";
15
+ } from "./chunk-CGZHLM3K.js";
16
16
  import {
17
17
  logger
18
18
  } from "./chunk-K44MW7JJ.js";
@@ -1283,4 +1283,4 @@ export {
1283
1283
  compactContext,
1284
1284
  getRecentUserPromptsForSession
1285
1285
  };
1286
- //# sourceMappingURL=chunk-YTPPQK55.js.map
1286
+ //# sourceMappingURL=chunk-4I3C46WU.js.map
@@ -39,7 +39,7 @@ function loadConfig() {
39
39
  agent: {
40
40
  maxIterations: 10,
41
41
  maxConsecutiveFailures: 3,
42
- toolTimeout: 12e4
42
+ toolTimeout: 3e5
43
43
  },
44
44
  server: {
45
45
  port: env.OPENFOX_PORT,
@@ -67,4 +67,4 @@ export {
67
67
  setRuntimeConfig,
68
68
  getRuntimeConfig
69
69
  };
70
- //# sourceMappingURL=chunk-RW25DL5R.js.map
70
+ //# sourceMappingURL=chunk-CGZHLM3K.js.map
@@ -13,11 +13,11 @@ import {
13
13
  getToolRegistryForAgent,
14
14
  loadAllAgentsDefault,
15
15
  runTopLevelAgentLoop
16
- } from "./chunk-32WAUDDK.js";
16
+ } from "./chunk-FVVLGR2G.js";
17
17
  import {
18
18
  getCurrentContextWindowId,
19
19
  getEventStore
20
- } from "./chunk-YTPPQK55.js";
20
+ } from "./chunk-4I3C46WU.js";
21
21
  import {
22
22
  buildSnapshotFromSessionState
23
23
  } from "./chunk-XVWVAWSG.js";
@@ -327,4 +327,4 @@ export {
327
327
  runBuilderTurn,
328
328
  runVerifierTurn
329
329
  };
330
- //# sourceMappingURL=chunk-ZK3EZTHT.js.map
330
+ //# sourceMappingURL=chunk-CHEVYEM4.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getEventStore,
3
3
  updateSessionMetadata
4
- } from "./chunk-YTPPQK55.js";
4
+ } from "./chunk-4I3C46WU.js";
5
5
  import {
6
6
  buildMessagesFromStoredEvents,
7
7
  foldPendingConfirmations
@@ -143,4 +143,4 @@ export {
143
143
  needsNameGenerationCheck,
144
144
  applyGeneratedSessionName
145
145
  };
146
- //# sourceMappingURL=chunk-XGJ7HDQ7.js.map
146
+ //# sourceMappingURL=chunk-DTXWOKAG.js.map
@@ -27,11 +27,11 @@ import {
27
27
  getBackendCapabilities,
28
28
  getModelProfile,
29
29
  streamWithSegments
30
- } from "./chunk-RMQ4WCEK.js";
30
+ } from "./chunk-HGAMIPFO.js";
31
31
  import {
32
32
  getCurrentContextWindowId,
33
33
  getEventStore
34
- } from "./chunk-YTPPQK55.js";
34
+ } from "./chunk-4I3C46WU.js";
35
35
  import {
36
36
  buildContextMessagesFromEventHistory,
37
37
  foldContextState,
@@ -58,7 +58,7 @@ import {
58
58
  } from "./chunk-CQGTEGKL.js";
59
59
  import {
60
60
  getRuntimeConfig
61
- } from "./chunk-RW25DL5R.js";
61
+ } from "./chunk-CGZHLM3K.js";
62
62
  import {
63
63
  logger
64
64
  } from "./chunk-K44MW7JJ.js";
@@ -2394,7 +2394,7 @@ var runCommandTool = createTool(
2394
2394
  },
2395
2395
  timeout: {
2396
2396
  type: "number",
2397
- description: "Timeout in milliseconds (default: 120000, max: 300000)"
2397
+ description: "Timeout in milliseconds (default: 120000)"
2398
2398
  }
2399
2399
  },
2400
2400
  required: ["command"]
@@ -2402,7 +2402,7 @@ var runCommandTool = createTool(
2402
2402
  }
2403
2403
  },
2404
2404
  async (args, context, helpers) => {
2405
- const timeout = Math.min(args.timeout ?? 12e4, 3e5);
2405
+ const timeout = args.timeout ?? 12e4;
2406
2406
  const workingDir = args.cwd ? helpers.resolvePath(args.cwd) : context.workdir;
2407
2407
  const pathsToCheck = [workingDir];
2408
2408
  const commandPaths = extractAbsolutePathsFromCommand(args.command);
@@ -2444,9 +2444,7 @@ ${result.stderr}`;
2444
2444
  }
2445
2445
  const wasInterrupted = output.includes("[interrupted by user]");
2446
2446
  return helpers.success(output, truncated, {
2447
- // Mark as not successful if non-zero exit (unless interrupted)
2448
2447
  success: result.exitCode === 0,
2449
- // Don't set error for interrupted commands - the marker is sufficient
2450
2448
  ...result.exitCode !== 0 && !wasInterrupted ? { error: `Command exited with code ${result.exitCode}` } : {}
2451
2449
  });
2452
2450
  }
@@ -2500,7 +2498,6 @@ function executeCommand(command, cwd, timeout, signal, onProgress) {
2500
2498
  stdout: output,
2501
2499
  stderr: stderr.trim(),
2502
2500
  exitCode: 130
2503
- // Standard SIGINT exit code
2504
2501
  });
2505
2502
  return;
2506
2503
  }
@@ -3394,6 +3391,7 @@ async function runTopLevelAgentLoop(config, turnMetrics) {
3394
3391
  if (session.dangerLevel) {
3395
3392
  batchContext.dangerLevel = session.dangerLevel;
3396
3393
  }
3394
+ batchContext.agentTimeout = getRuntimeConfig().agent.toolTimeout;
3397
3395
  const batchResult = await executeToolBatch(assistantMsgId, result.toolCalls, batchContext);
3398
3396
  if (batchResult.returnValueContent) {
3399
3397
  returnValueContent = batchResult.returnValueContent;
@@ -3772,7 +3770,8 @@ async function executeSubAgent(options) {
3772
3770
  workdir: session.workdir,
3773
3771
  turnMetrics,
3774
3772
  signal,
3775
- onMessage
3773
+ onMessage,
3774
+ agentTimeout: getRuntimeConfig().agent.toolTimeout
3776
3775
  });
3777
3776
  if (batchResult.returnValueContent) {
3778
3777
  returnValueContent = batchResult.returnValueContent;
@@ -3881,7 +3880,7 @@ var callSubAgentTool = {
3881
3880
  };
3882
3881
  }
3883
3882
  try {
3884
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-U6I43EN4.js");
3883
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-FZS5JNQE.js");
3885
3884
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3886
3885
  const turnMetrics = new TurnMetrics();
3887
3886
  const result = await executeSubAgent({
@@ -4000,7 +3999,6 @@ var returnValueTool = {
4000
3999
  import TurndownService from "turndown";
4001
4000
  var MAX_RESPONSE_SIZE = 5 * 1024 * 1024;
4002
4001
  var DEFAULT_TIMEOUT_MS = 3e4;
4003
- var MAX_TIMEOUT_MS = 12e4;
4004
4002
  var USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36";
4005
4003
  function buildAcceptHeader(format) {
4006
4004
  switch (format) {
@@ -4057,7 +4055,7 @@ var webFetchTool = createTool(
4057
4055
  },
4058
4056
  timeout: {
4059
4057
  type: "number",
4060
- description: "Optional timeout in seconds (max 120). Defaults to 30."
4058
+ description: "Optional timeout in seconds. Defaults to 30."
4061
4059
  }
4062
4060
  },
4063
4061
  required: ["url"]
@@ -4070,7 +4068,7 @@ var webFetchTool = createTool(
4070
4068
  if (!url.startsWith("http://") && !url.startsWith("https://")) {
4071
4069
  return helpers.error("URL must start with http:// or https://");
4072
4070
  }
4073
- const timeoutMs = Math.min((args.timeout ?? DEFAULT_TIMEOUT_MS / 1e3) * 1e3, MAX_TIMEOUT_MS);
4071
+ const timeoutMs = (args.timeout ?? DEFAULT_TIMEOUT_MS / 1e3) * 1e3;
4074
4072
  const signal = buildSignal(timeoutMs, context.signal);
4075
4073
  const headers = {
4076
4074
  "User-Agent": USER_AGENT,
@@ -5080,4 +5078,4 @@ export {
5080
5078
  getToolRegistryForAgent,
5081
5079
  createToolRegistry
5082
5080
  };
5083
- //# sourceMappingURL=chunk-32WAUDDK.js.map
5081
+ //# sourceMappingURL=chunk-FVVLGR2G.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  describeImageFromDataUrl
3
- } from "./chunk-Z774ZQUP.js";
3
+ } from "./chunk-SZKEGZIB.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-K44MW7JJ.js";
@@ -801,4 +801,4 @@ export {
801
801
  extractThinking,
802
802
  streamWithSegments
803
803
  };
804
- //# sourceMappingURL=chunk-RMQ4WCEK.js.map
804
+ //# sourceMappingURL=chunk-HGAMIPFO.js.map
@@ -5,10 +5,10 @@ import {
5
5
  getBackendCapabilities,
6
6
  getModelProfile,
7
7
  mapFinishReason
8
- } from "./chunk-RMQ4WCEK.js";
8
+ } from "./chunk-HGAMIPFO.js";
9
9
  import {
10
10
  ensureVisionFallbackConfigLoaded
11
- } from "./chunk-Z774ZQUP.js";
11
+ } from "./chunk-SZKEGZIB.js";
12
12
  import {
13
13
  logger
14
14
  } from "./chunk-K44MW7JJ.js";
@@ -188,7 +188,7 @@ function createLLMClient(config, initialBackend = "unknown") {
188
188
  try {
189
189
  const shouldDisableThinking = disableThinking || request.disableThinking === true;
190
190
  await ensureVisionFallbackConfigLoaded();
191
- const { isVisionFallbackEnabled } = await import("./vision-fallback-FBOTVWEX.js");
191
+ const { isVisionFallbackEnabled } = await import("./vision-fallback-3MIZZ6NQ.js");
192
192
  const paramsOptions = {
193
193
  model,
194
194
  request,
@@ -265,7 +265,7 @@ function createLLMClient(config, initialBackend = "unknown") {
265
265
  });
266
266
  try {
267
267
  await ensureVisionFallbackConfigLoaded();
268
- const { isVisionFallbackEnabled } = await import("./vision-fallback-FBOTVWEX.js");
268
+ const { isVisionFallbackEnabled } = await import("./vision-fallback-3MIZZ6NQ.js");
269
269
  const shouldDisableThinking = disableThinking || request.disableThinking === true;
270
270
  const createParams = await buildStreamingCreateParams({
271
271
  model,
@@ -478,4 +478,4 @@ export {
478
478
  getLlmStatus,
479
479
  clearModelCache
480
480
  };
481
- //# sourceMappingURL=chunk-TWGL3Y6S.js.map
481
+ //# sourceMappingURL=chunk-HHAJ3QF6.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  detectModel
3
- } from "./chunk-TWGL3Y6S.js";
3
+ } from "./chunk-HHAJ3QF6.js";
4
4
  import {
5
5
  detectBackend
6
- } from "./chunk-RMQ4WCEK.js";
6
+ } from "./chunk-HGAMIPFO.js";
7
7
  import {
8
8
  getGlobalConfigPath
9
9
  } from "./chunk-CQGTEGKL.js";
@@ -435,4 +435,4 @@ export {
435
435
  activateProvider,
436
436
  mergeConfigs
437
437
  };
438
- //# sourceMappingURL=chunk-YG2QBUYJ.js.map
438
+ //# sourceMappingURL=chunk-NNEHZT3V.js.map
@@ -33,7 +33,7 @@ Options:
33
33
  }
34
34
  async function runNetworkSetup(mode) {
35
35
  const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-56SIRACI.js");
36
- const { saveGlobalConfig } = await import("./config-TSGOFNJW.js");
36
+ const { saveGlobalConfig } = await import("./config-YU7NYZYG.js");
37
37
  const { getAuthKeyPath } = await import("./paths-X46PPOI2.js");
38
38
  const existingAuth = await loadAuthConfig(mode);
39
39
  if (existingAuth) {
@@ -94,7 +94,7 @@ async function runNetworkSetup(mode) {
94
94
  console.log("\u2713 Configuration saved!\n");
95
95
  }
96
96
  async function runConfig(mode) {
97
- const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-TSGOFNJW.js");
97
+ const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-YU7NYZYG.js");
98
98
  const { getGlobalConfigPath } = await import("./paths-X46PPOI2.js");
99
99
  const config = await loadGlobalConfig(mode);
100
100
  const configPath = getGlobalConfigPath(mode);
@@ -150,7 +150,7 @@ async function runCli(options) {
150
150
  break;
151
151
  }
152
152
  case "provider": {
153
- const { runProviderCommand } = await import("./provider-JIFQ47HT.js");
153
+ const { runProviderCommand } = await import("./provider-HTJEB3ON.js");
154
154
  const [, subcommand] = positionals;
155
155
  await runProviderCommand(mode, subcommand);
156
156
  break;
@@ -186,12 +186,12 @@ async function runCli(options) {
186
186
  break;
187
187
  }
188
188
  default: {
189
- const { configFileExists } = await import("./config-TSGOFNJW.js");
189
+ const { configFileExists } = await import("./config-YU7NYZYG.js");
190
190
  const configExists = await configFileExists(mode);
191
191
  if (!configExists) {
192
192
  await runNetworkSetup(mode);
193
193
  }
194
- const { runServe } = await import("./serve-JQTSGHFU.js");
194
+ const { runServe } = await import("./serve-PSZFEXYU.js");
195
195
  const serveOptions = { mode };
196
196
  if (values.port) serveOptions.port = parseInt(values.port);
197
197
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -203,4 +203,4 @@ async function runCli(options) {
203
203
  export {
204
204
  runCli
205
205
  };
206
- //# sourceMappingURL=chunk-LABBIL3K.js.map
206
+ //# sourceMappingURL=chunk-PNIXFZZH.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createVerifierNudgeConfig,
3
3
  runBuilderTurn,
4
4
  runChatTurn
5
- } from "./chunk-ZK3EZTHT.js";
5
+ } from "./chunk-CHEVYEM4.js";
6
6
  import {
7
7
  TurnMetrics,
8
8
  agentExists,
@@ -46,7 +46,7 @@ import {
46
46
  saveSkillToProject,
47
47
  skillExists,
48
48
  spawnShellProcess
49
- } from "./chunk-32WAUDDK.js";
49
+ } from "./chunk-FVVLGR2G.js";
50
50
  import {
51
51
  getProject
52
52
  } from "./chunk-ZHBL5G5X.js";
@@ -59,18 +59,18 @@ import {
59
59
  import {
60
60
  createProviderManager,
61
61
  parseDefaultModelSelection
62
- } from "./chunk-ZV2PE3KT.js";
62
+ } from "./chunk-RF2JGDSS.js";
63
63
  import {
64
64
  SessionNotFoundError,
65
65
  createLLMClient,
66
66
  detectModel,
67
67
  getLlmStatus
68
- } from "./chunk-TWGL3Y6S.js";
68
+ } from "./chunk-HHAJ3QF6.js";
69
69
  import {
70
70
  detectBackend,
71
71
  getBackendDisplayName,
72
72
  getModelProfile
73
- } from "./chunk-RMQ4WCEK.js";
73
+ } from "./chunk-HGAMIPFO.js";
74
74
  import {
75
75
  createSession,
76
76
  deleteSession,
@@ -96,7 +96,7 @@ import {
96
96
  updateSessionProvider,
97
97
  updateSessionRunning,
98
98
  updateSessionSummary
99
- } from "./chunk-YTPPQK55.js";
99
+ } from "./chunk-4I3C46WU.js";
100
100
  import {
101
101
  initDatabase
102
102
  } from "./chunk-5GVCNVKV.js";
@@ -135,7 +135,7 @@ import {
135
135
  import {
136
136
  getRuntimeConfig,
137
137
  setRuntimeConfig
138
- } from "./chunk-RW25DL5R.js";
138
+ } from "./chunk-CGZHLM3K.js";
139
139
  import {
140
140
  logger,
141
141
  setLogLevel
@@ -5359,7 +5359,7 @@ import { Router as Router5 } from "express";
5359
5359
  import { spawn as spawn4 } from "child_process";
5360
5360
 
5361
5361
  // src/constants.ts
5362
- var VERSION = "1.6.93";
5362
+ var VERSION = "1.6.94";
5363
5363
 
5364
5364
  // src/server/routes/auto-update.ts
5365
5365
  var updateInProgress = false;
@@ -5656,7 +5656,7 @@ async function createServerHandle(config4) {
5656
5656
  res.json({ project });
5657
5657
  });
5658
5658
  app.get("/api/sessions", async (req, res) => {
5659
- const { getRecentUserPromptsForSession } = await import("./events-K6AYMXFT.js");
5659
+ const { getRecentUserPromptsForSession } = await import("./events-HTVBWGHO.js");
5660
5660
  const projectId = req.query["projectId"];
5661
5661
  const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
5662
5662
  const offset = parseInt(req.query["offset"]) || 0;
@@ -5689,7 +5689,7 @@ async function createServerHandle(config4) {
5689
5689
  res.status(201).json({ session });
5690
5690
  });
5691
5691
  app.get("/api/sessions/:id", async (req, res) => {
5692
- const { getEventStore: getEventStore2 } = await import("./events-K6AYMXFT.js");
5692
+ const { getEventStore: getEventStore2 } = await import("./events-HTVBWGHO.js");
5693
5693
  const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
5694
5694
  const session = sessionManager.getSession(req.params.id);
5695
5695
  if (!session) {
@@ -5720,7 +5720,7 @@ async function createServerHandle(config4) {
5720
5720
  res.json({ success: true });
5721
5721
  });
5722
5722
  app.post("/api/sessions/:id/provider", async (req, res) => {
5723
- const { getEventStore: getEventStore2 } = await import("./events-K6AYMXFT.js");
5723
+ const { getEventStore: getEventStore2 } = await import("./events-HTVBWGHO.js");
5724
5724
  const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
5725
5725
  const sessionId = req.params.id;
5726
5726
  const session = sessionManager.getSession(sessionId);
@@ -5732,7 +5732,7 @@ async function createServerHandle(config4) {
5732
5732
  return res.status(400).json({ error: "providerId is required" });
5733
5733
  }
5734
5734
  sessionManager.setSessionProvider(sessionId, providerId, model ?? "auto");
5735
- const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-TSGOFNJW.js");
5735
+ const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-YU7NYZYG.js");
5736
5736
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
5737
5737
  const updatedConfig = setDefaultModelSelection(globalConfig, providerId, model ?? "auto");
5738
5738
  await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
@@ -5758,7 +5758,7 @@ async function createServerHandle(config4) {
5758
5758
  res.json({ success: true });
5759
5759
  });
5760
5760
  app.put("/api/sessions/:id/mode", async (req, res) => {
5761
- const { getEventStore: getEventStore2 } = await import("./events-K6AYMXFT.js");
5761
+ const { getEventStore: getEventStore2 } = await import("./events-HTVBWGHO.js");
5762
5762
  const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
5763
5763
  const sessionId = req.params.id;
5764
5764
  const session = sessionManager.getSession(sessionId);
@@ -5815,12 +5815,12 @@ async function createServerHandle(config4) {
5815
5815
  if (!callId || approved === void 0) {
5816
5816
  return res.status(400).json({ error: "callId and approved are required" });
5817
5817
  }
5818
- const { providePathConfirmation } = await import("./tools-U6I43EN4.js");
5818
+ const { providePathConfirmation } = await import("./tools-FZS5JNQE.js");
5819
5819
  const result = providePathConfirmation(callId, approved, alwaysAllow);
5820
5820
  if (!result.found) {
5821
5821
  return res.status(404).json({ error: "No pending path confirmation with that ID" });
5822
5822
  }
5823
- const { getEventStore: getEventStore2 } = await import("./events-K6AYMXFT.js");
5823
+ const { getEventStore: getEventStore2 } = await import("./events-HTVBWGHO.js");
5824
5824
  const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-4VHGQE6Y.js");
5825
5825
  const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-QDSVJTRN.js");
5826
5826
  const eventStore = getEventStore2();
@@ -5839,7 +5839,7 @@ async function createServerHandle(config4) {
5839
5839
  if (!callId || !answer) {
5840
5840
  return res.status(400).json({ error: "callId and answer are required" });
5841
5841
  }
5842
- const { provideAnswer: provideAnswer2 } = await import("./tools-U6I43EN4.js");
5842
+ const { provideAnswer: provideAnswer2 } = await import("./tools-FZS5JNQE.js");
5843
5843
  const found = provideAnswer2(callId, answer);
5844
5844
  if (!found) {
5845
5845
  return res.status(404).json({ error: "No pending question with that ID" });
@@ -5875,14 +5875,14 @@ async function createServerHandle(config4) {
5875
5875
  if (!session) {
5876
5876
  return res.status(404).json({ error: "Session not found" });
5877
5877
  }
5878
- const { stopSessionExecution } = await import("./chat-handler-ROOMX2UY.js");
5879
- const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-U6I43EN4.js");
5878
+ const { stopSessionExecution } = await import("./chat-handler-5HU4QWD4.js");
5879
+ const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-FZS5JNQE.js");
5880
5880
  stopSessionExecution(sessionId, sessionManager);
5881
5881
  abortSession(sessionId);
5882
5882
  cancelQuestionsForSession(sessionId, "Session stopped by user");
5883
5883
  cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
5884
5884
  sessionManager.clearMessageQueue(sessionId);
5885
- const eventStore = (await import("./events-K6AYMXFT.js")).getEventStore();
5885
+ const eventStore = (await import("./events-HTVBWGHO.js")).getEventStore();
5886
5886
  eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
5887
5887
  res.json({ success: true });
5888
5888
  });
@@ -5896,7 +5896,7 @@ async function createServerHandle(config4) {
5896
5896
  if (typeof messageIndex !== "number" || messageIndex < 0) {
5897
5897
  return res.status(400).json({ error: "messageIndex must be a non-negative number" });
5898
5898
  }
5899
- const { truncateSessionMessages } = await import("./events-K6AYMXFT.js");
5899
+ const { truncateSessionMessages } = await import("./events-HTVBWGHO.js");
5900
5900
  truncateSessionMessages(sessionId, messageIndex);
5901
5901
  res.json({ success: true });
5902
5902
  });
@@ -5948,7 +5948,7 @@ async function createServerHandle(config4) {
5948
5948
  let visionFallback;
5949
5949
  let globalWorkdir;
5950
5950
  try {
5951
- const { loadGlobalConfig, getVisionFallback } = await import("./config-TSGOFNJW.js");
5951
+ const { loadGlobalConfig, getVisionFallback } = await import("./config-YU7NYZYG.js");
5952
5952
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
5953
5953
  const fallback = getVisionFallback(globalConfig);
5954
5954
  if (fallback) {
@@ -6027,7 +6027,7 @@ async function createServerHandle(config4) {
6027
6027
  return res.status(400).json({ error: "name, url, and backend are required" });
6028
6028
  }
6029
6029
  try {
6030
- const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-TSGOFNJW.js");
6030
+ const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-YU7NYZYG.js");
6031
6031
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6032
6032
  const providerBackend = backend;
6033
6033
  const configWithProvider = addProvider(globalConfig, {
@@ -6060,7 +6060,7 @@ async function createServerHandle(config4) {
6060
6060
  app.post("/api/init/config", async (req, res) => {
6061
6061
  const { workdir, visionFallback } = req.body;
6062
6062
  try {
6063
- const { loadGlobalConfig, saveGlobalConfig } = await import("./config-TSGOFNJW.js");
6063
+ const { loadGlobalConfig, saveGlobalConfig } = await import("./config-YU7NYZYG.js");
6064
6064
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6065
6065
  const updatedConfig = {
6066
6066
  ...globalConfig,
@@ -6088,7 +6088,7 @@ async function createServerHandle(config4) {
6088
6088
  });
6089
6089
  app.delete("/api/providers/:id", async (req, res) => {
6090
6090
  const { id } = req.params;
6091
- const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-TSGOFNJW.js");
6091
+ const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-YU7NYZYG.js");
6092
6092
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6093
6093
  const updatedConfig = removeProvider(globalConfig, id);
6094
6094
  await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
@@ -6108,7 +6108,7 @@ async function createServerHandle(config4) {
6108
6108
  return res.status(400).json({ error: result.error });
6109
6109
  }
6110
6110
  const llmClient = getLLMClient();
6111
- const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-TSGOFNJW.js");
6111
+ const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-YU7NYZYG.js");
6112
6112
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6113
6113
  const updatedConfig = setDefaultModelSelection(globalConfig, id, llmClient.getModel());
6114
6114
  await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
@@ -6139,7 +6139,7 @@ async function createServerHandle(config4) {
6139
6139
  if (!result.success) {
6140
6140
  return res.status(400).json({ error: result.error });
6141
6141
  }
6142
- const { loadGlobalConfig, saveGlobalConfig } = await import("./config-TSGOFNJW.js");
6142
+ const { loadGlobalConfig, saveGlobalConfig } = await import("./config-YU7NYZYG.js");
6143
6143
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6144
6144
  const updatedProviders = providerManager.getProviders();
6145
6145
  const updatedConfig = {
@@ -6380,7 +6380,7 @@ async function createServerHandle(config4) {
6380
6380
  providerManager
6381
6381
  );
6382
6382
  const wss = wssExports.wss;
6383
- const { QueueProcessor } = await import("./processor-47OC5EUI.js");
6383
+ const { QueueProcessor } = await import("./processor-QFBRN6AZ.js");
6384
6384
  const queueProcessor = new QueueProcessor({
6385
6385
  sessionManager,
6386
6386
  providerManager,
@@ -6455,4 +6455,4 @@ export {
6455
6455
  createServerHandle,
6456
6456
  createServer
6457
6457
  };
6458
- //# sourceMappingURL=chunk-UAV33LRW.js.map
6458
+ //# sourceMappingURL=chunk-QIFXGM2L.js.map
@@ -2,11 +2,11 @@ import {
2
2
  clearModelCache,
3
3
  createLLMClient,
4
4
  detectModel
5
- } from "./chunk-TWGL3Y6S.js";
5
+ } from "./chunk-HHAJ3QF6.js";
6
6
  import {
7
7
  detectBackend,
8
8
  getModelProfile
9
- } from "./chunk-RMQ4WCEK.js";
9
+ } from "./chunk-HGAMIPFO.js";
10
10
  import {
11
11
  logger
12
12
  } from "./chunk-K44MW7JJ.js";
@@ -511,4 +511,4 @@ export {
511
511
  parseDefaultModelSelection,
512
512
  createProviderManager
513
513
  };
514
- //# sourceMappingURL=chunk-ZV2PE3KT.js.map
514
+ //# sourceMappingURL=chunk-RF2JGDSS.js.map
@@ -29,8 +29,8 @@ function isVisionFallbackEnabled() {
29
29
  async function ensureVisionFallbackConfigLoaded() {
30
30
  if (configLoaded) return;
31
31
  try {
32
- const { loadGlobalConfig, getVisionFallback } = await import("./config-TSGOFNJW.js");
33
- const { getRuntimeConfig } = await import("./runtime-config-CYHDAC7W.js");
32
+ const { loadGlobalConfig, getVisionFallback } = await import("./config-YU7NYZYG.js");
33
+ const { getRuntimeConfig } = await import("./runtime-config-NPSPMRDA.js");
34
34
  const runtimeConfig = getRuntimeConfig();
35
35
  const mode = runtimeConfig.mode ?? "production";
36
36
  const globalConfig = await loadGlobalConfig(mode);
@@ -137,4 +137,4 @@ export {
137
137
  describeImage,
138
138
  describeImageFromDataUrl
139
139
  };
140
- //# sourceMappingURL=chunk-Z774ZQUP.js.map
140
+ //# sourceMappingURL=chunk-SZKEGZIB.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-LABBIL3K.js";
4
+ } from "../chunk-PNIXFZZH.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-K44MW7JJ.js";