openfox 2.0.93 → 2.0.95

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 (77) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/CHANGELOG.md +25 -0
  3. package/dist/{chat-handler-MSQFJH7S.js → chat-handler-5FV3TGQD.js} +22 -22
  4. package/dist/{chunk-IAAHDCJN.js → chunk-27SDWNKL.js} +8 -5
  5. package/dist/{chunk-TQATAKVV.js → chunk-4R7G5JB6.js} +1 -1
  6. package/dist/{chunk-3NGD6IVM.js → chunk-5N5JXT7R.js} +3 -3
  7. package/dist/{chunk-NV63HYNR.js → chunk-5UFTFBNW.js} +8 -8
  8. package/dist/{chunk-BJHPUMRX.js → chunk-62X2MPO6.js} +2 -2
  9. package/dist/{chunk-FK6R2YTQ.js → chunk-6RHMIMID.js} +17 -17
  10. package/dist/{chunk-PYJ2SRVC.js → chunk-7P7OKBYQ.js} +20 -4
  11. package/dist/{chunk-GAIAJDPH.js → chunk-D6T3X22W.js} +149 -52
  12. package/dist/{chunk-6OAJNCRY.js → chunk-GLF65XDS.js} +22 -1
  13. package/dist/{chunk-U7D72C4O.js → chunk-HAFRPV7I.js} +13 -3
  14. package/dist/{chunk-AA4PXMSI.js → chunk-KG2PJVOE.js} +253 -95
  15. package/dist/{chunk-NW2KP7PE.js → chunk-MB7STVMR.js} +6 -6
  16. package/dist/{chunk-SXHGRPCI.js → chunk-MC3MCMAF.js} +4 -4
  17. package/dist/{chunk-U2RSFH6A.js → chunk-MRWR3SIT.js} +2 -2
  18. package/dist/{chunk-WWC3R3YL.js → chunk-NLN5LPQ4.js} +2 -2
  19. package/dist/{chunk-NGN3Q26A.js → chunk-OHBY2673.js} +2 -2
  20. package/dist/{chunk-RJQDC2OO.js → chunk-OZD247P4.js} +10 -10
  21. package/dist/{chunk-3QQKKZMF.js → chunk-P637C6X3.js} +2 -2
  22. package/dist/{chunk-C56Z4OVW.js → chunk-SJJVNSA6.js} +2 -2
  23. package/dist/{chunk-7YBGCZSI.js → chunk-TDHDLDGQ.js} +10 -20
  24. package/dist/{chunk-6J5IZ2NL.js → chunk-TSHJW7OC.js} +37 -6
  25. package/dist/{chunk-54Q4TGG6.js → chunk-UEOEA6BB.js} +2 -2
  26. package/dist/chunk-VKU7YBLH.js +7 -0
  27. package/dist/{chunk-ESJNJ5B6.js → chunk-W7P5P54O.js} +3 -3
  28. package/dist/{chunk-ST4NYXLH.js → chunk-WWFH5GAR.js} +2 -2
  29. package/dist/{chunk-YM267G4F.js → chunk-YCPUV7AR.js} +4 -4
  30. package/dist/{chunk-GH5PL3JW.js → chunk-YPBV47DH.js} +6 -9
  31. package/dist/{chunk-DH32AHTL.js → chunk-ZASSAZ73.js} +2 -2
  32. package/dist/{chunk-AQ4KCGXL.js → chunk-ZMSHE564.js} +3 -3
  33. package/dist/cli/dev.js +1 -1
  34. package/dist/cli/index.js +1 -1
  35. package/dist/{client-RBXMHFX3.js → client-RENSCJPZ.js} +5 -5
  36. package/dist/{compactor-R7GGPBPR.js → compactor-3RXIAIPR.js} +10 -10
  37. package/dist/{dynamic-context-4UPNVL3N.js → dynamic-context-CJFDFUJF.js} +9 -9
  38. package/dist/{events-D5AFN2CW.js → events-QHZDLHEB.js} +9 -7
  39. package/dist/{folding-BO6Z6HMP.js → folding-O4OYOTPS.js} +5 -5
  40. package/dist/http-client-U6DVFL7F.js +11 -0
  41. package/dist/{inspect-proxy-NZ3VSMSC.js → inspect-proxy-GF6OI7MR.js} +4 -4
  42. package/dist/{manager-ZPQ6VSM5.js → manager-53J5P4EZ.js} +5 -5
  43. package/dist/{orchestrator-YQI2D4LW.js → orchestrator-LDVMBC23.js} +21 -21
  44. package/dist/package.json +1 -1
  45. package/dist/{path-security-DP75YZK5.js → path-security-72KGHGSV.js} +10 -10
  46. package/dist/{platform-UKZ2QC34.js → platform-7KXP3VVA.js} +4 -4
  47. package/dist/{processor-LVQWRG6M.js → processor-32QUVPV6.js} +21 -21
  48. package/dist/{project-creator-2WMZYQME.js → project-creator-SMWFMIU5.js} +3 -3
  49. package/dist/{projects-N6KVZGMS.js → projects-M5XKC7O6.js} +3 -3
  50. package/dist/{protocol-8BzyapcK.d.ts → protocol-C5ROb3nH.d.ts} +5 -4
  51. package/dist/{protocol-4ZDERZNC.js → protocol-YDNGGADL.js} +3 -3
  52. package/dist/provider/index.d.ts +4 -4
  53. package/dist/{provider-SYYZI2KX.js → provider-A74GHQUO.js} +6 -6
  54. package/dist/{provider-manager-P3ZSA5QS.js → provider-manager-PBOF77RQ.js} +6 -6
  55. package/dist/{registry-ERUV33AP.js → registry-XBEHPY7C.js} +4 -4
  56. package/dist/{serve-HEHWSYMX.js → serve-GL5WUPRP.js} +29 -29
  57. package/dist/server/index.d.ts +39 -3
  58. package/dist/server/index.js +28 -28
  59. package/dist/server-OYVGQU7O.js +46 -0
  60. package/dist/{session-overrides-NPVYNHTM.js → session-overrides-QWD4V5KW.js} +6 -6
  61. package/dist/{sessions-7KCM5QH4.js → sessions-BT4PION7.js} +15 -7
  62. package/dist/{settings-2OVKFWR5.js → settings-2WVGUPYV.js} +3 -3
  63. package/dist/shared/index.d.ts +3 -3
  64. package/dist/shared/index.js +1 -1
  65. package/dist/{tools-HDD7RHEG.js → tools-UTA3TV7P.js} +19 -19
  66. package/dist/{types-_OEK96iM.d.ts → types-D-dEQIrh.d.ts} +1 -1
  67. package/dist/{types-Ci7Tdpq3.d.ts → types-DHxO1nqw.d.ts} +17 -1
  68. package/dist/{update-JARYMNGH.js → update-VUTN743C.js} +2 -2
  69. package/dist/web/assets/{index-DxTIqntH.js → index-BUiw9fSe.js} +22 -22
  70. package/dist/web/assets/{index-B3lfsL1_.css → index-BlV1FebL.css} +1 -1
  71. package/dist/web/index.html +2 -2
  72. package/dist/web/sw.js +1 -1
  73. package/dist/{workspace-YLTMP3OX.js → workspace-IIRKILYL.js} +4 -4
  74. package/package.json +1 -1
  75. package/dist/chunk-LVZ6VQ3K.js +0 -7
  76. package/dist/http-client-E3CV6E5D.js +0 -11
  77. package/dist/server-AAIYC4BH.js +0 -46
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  getAllInstructions,
3
3
  getEnabledSkillMetadata
4
- } from "./chunk-SXHGRPCI.js";
4
+ } from "./chunk-MC3MCMAF.js";
5
5
  import {
6
6
  buildTopLevelSystemPrompt
7
- } from "./chunk-U2RSFH6A.js";
7
+ } from "./chunk-MRWR3SIT.js";
8
8
  import {
9
9
  findAgentById,
10
10
  getRuntimeConfig,
11
11
  getSubAgents,
12
12
  loadAllAgentsDefault,
13
13
  resolveDefaultAgentId
14
- } from "./chunk-NGN3Q26A.js";
14
+ } from "./chunk-OHBY2673.js";
15
15
  import {
16
16
  logger
17
17
  } from "./chunk-K44MW7JJ.js";
@@ -104,7 +104,7 @@ function resolveAgentDef(sessionManager, sessionId) {
104
104
  }
105
105
  async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
106
106
  const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
107
- const { getToolRegistryForAgent } = await import("./tools-HDD7RHEG.js");
107
+ const { getToolRegistryForAgent } = await import("./tools-UTA3TV7P.js");
108
108
  const tools = getToolRegistryForAgent(agentDef, sessionId).definitions;
109
109
  const toolFingerprint = getToolFingerprint(tools);
110
110
  const allAgents = await loadAllAgentsDefault();
@@ -117,7 +117,7 @@ async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
117
117
  async function computeSessionHash(sessionManager, sessionId) {
118
118
  const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
119
119
  const agentDef = await resolveAgentDef(sessionManager, sessionId);
120
- const { getToolRegistryForAgent } = await import("./tools-HDD7RHEG.js");
120
+ const { getToolRegistryForAgent } = await import("./tools-UTA3TV7P.js");
121
121
  const tools = getToolRegistryForAgent(agentDef, sessionId).definitions;
122
122
  const toolFingerprint = getToolFingerprint(tools);
123
123
  return computeDynamicContextHash(instructionContent, skills, toolFingerprint);
@@ -141,4 +141,4 @@ export {
141
141
  computeSessionHash,
142
142
  applyDynamicContext
143
143
  };
144
- //# sourceMappingURL=chunk-NW2KP7PE.js.map
144
+ //# sourceMappingURL=chunk-MB7STVMR.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  getProject
3
- } from "./chunk-ST4NYXLH.js";
3
+ } from "./chunk-WWFH5GAR.js";
4
4
  import {
5
5
  deleteItemFromDir,
6
6
  loadItemsFromDir,
7
7
  pathExists
8
- } from "./chunk-NGN3Q26A.js";
8
+ } from "./chunk-OHBY2673.js";
9
9
  import {
10
10
  SETTINGS_KEYS,
11
11
  deleteSetting,
12
12
  getSetting,
13
13
  setSetting
14
- } from "./chunk-54Q4TGG6.js";
14
+ } from "./chunk-UEOEA6BB.js";
15
15
 
16
16
  // src/server/context/instructions.ts
17
17
  import { readFile, access } from "fs/promises";
@@ -440,4 +440,4 @@ export {
440
440
  deleteSkill,
441
441
  deleteProjectSkill
442
442
  };
443
- //# sourceMappingURL=chunk-SXHGRPCI.js.map
443
+ //# sourceMappingURL=chunk-MC3MCMAF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPlatformShell
3
- } from "./chunk-WWC3R3YL.js";
3
+ } from "./chunk-NLN5LPQ4.js";
4
4
 
5
5
  // src/server/tools/tool-policy.ts
6
6
  var ALWAYS_ALLOWED = /* @__PURE__ */ new Set(["step_done"]);
@@ -245,4 +245,4 @@ export {
245
245
  buildAgentSmallReminder,
246
246
  COMPACTION_PROMPT
247
247
  };
248
- //# sourceMappingURL=chunk-U2RSFH6A.js.map
248
+ //# sourceMappingURL=chunk-MRWR3SIT.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SETTINGS_KEYS,
3
3
  getSetting
4
- } from "./chunk-54Q4TGG6.js";
4
+ } from "./chunk-UEOEA6BB.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-WWC3R3YL.js.map
66
+ //# sourceMappingURL=chunk-NLN5LPQ4.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SETTINGS_KEYS,
3
3
  getSetting
4
- } from "./chunk-54Q4TGG6.js";
4
+ } from "./chunk-UEOEA6BB.js";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-K44MW7JJ.js";
@@ -412,4 +412,4 @@ export {
412
412
  getOverrideAgentIds,
413
413
  resolveDefaultAgentId
414
414
  };
415
- //# sourceMappingURL=chunk-NGN3Q26A.js.map
415
+ //# sourceMappingURL=chunk-OHBY2673.js.map
@@ -4,19 +4,19 @@ import {
4
4
  getToolRegistryForAgent,
5
5
  processEventsForConversation,
6
6
  runTopLevelAgentLoop
7
- } from "./chunk-FK6R2YTQ.js";
7
+ } from "./chunk-6RHMIMID.js";
8
8
  import {
9
9
  buildCachedPrompt,
10
10
  computeDynamicContextHash,
11
11
  getToolFingerprint
12
- } from "./chunk-NW2KP7PE.js";
12
+ } from "./chunk-MB7STVMR.js";
13
13
  import {
14
14
  getAllInstructions,
15
15
  getEnabledSkillMetadata
16
- } from "./chunk-SXHGRPCI.js";
16
+ } from "./chunk-MC3MCMAF.js";
17
17
  import {
18
18
  PathAccessDeniedError
19
- } from "./chunk-AQ4KCGXL.js";
19
+ } from "./chunk-ZMSHE564.js";
20
20
  import {
21
21
  TurnMetrics,
22
22
  createChatDoneEvent,
@@ -25,21 +25,21 @@ import {
25
25
  import {
26
26
  buildAgentReminder,
27
27
  buildAgentSmallReminder
28
- } from "./chunk-U2RSFH6A.js";
28
+ } from "./chunk-MRWR3SIT.js";
29
29
  import {
30
30
  getCurrentContextWindowId,
31
31
  getCurrentWindowMessageOptions,
32
32
  getEventStore
33
- } from "./chunk-PYJ2SRVC.js";
33
+ } from "./chunk-7P7OKBYQ.js";
34
34
  import {
35
35
  buildSnapshotFromSessionState
36
- } from "./chunk-3QQKKZMF.js";
36
+ } from "./chunk-P637C6X3.js";
37
37
  import {
38
38
  findAgentById,
39
39
  getRuntimeConfig,
40
40
  loadAllAgentsDefault,
41
41
  resolveDefaultAgentId
42
- } from "./chunk-NGN3Q26A.js";
42
+ } from "./chunk-OHBY2673.js";
43
43
  import {
44
44
  logger
45
45
  } from "./chunk-K44MW7JJ.js";
@@ -49,7 +49,7 @@ import {
49
49
 
50
50
  // src/server/chat/orchestrator.ts
51
51
  async function buildRetryPatterns() {
52
- const { getSetting, SETTINGS_KEYS } = await import("./settings-2OVKFWR5.js");
52
+ const { getSetting, SETTINGS_KEYS } = await import("./settings-2WVGUPYV.js");
53
53
  const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
54
54
  if (!raw) {
55
55
  const oldXmlProtection = getSetting("llm.disableXmlProtection");
@@ -309,4 +309,4 @@ export {
309
309
  runChatTurn,
310
310
  runAgentTurn
311
311
  };
312
- //# sourceMappingURL=chunk-RJQDC2OO.js.map
312
+ //# sourceMappingURL=chunk-OZD247P4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveDefaultAgentId
3
- } from "./chunk-NGN3Q26A.js";
3
+ } from "./chunk-OHBY2673.js";
4
4
 
5
5
  // src/server/events/apply-events.ts
6
6
  function markComplete(msg, reason) {
@@ -929,4 +929,4 @@ export {
929
929
  buildSnapshot,
930
930
  buildSnapshotFromSessionState
931
931
  };
932
- //# sourceMappingURL=chunk-3QQKKZMF.js.map
932
+ //# sourceMappingURL=chunk-P637C6X3.js.map
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  LLMError,
19
19
  OpenAIHttpClient
20
- } from "./chunk-7YBGCZSI.js";
20
+ } from "./chunk-TDHDLDGQ.js";
21
21
  import {
22
22
  logger
23
23
  } from "./chunk-K44MW7JJ.js";
@@ -268,4 +268,4 @@ function createLLMClient(config, initialBackend = "unknown") {
268
268
  export {
269
269
  createLLMClient
270
270
  };
271
- //# sourceMappingURL=chunk-C56Z4OVW.js.map
271
+ //# sourceMappingURL=chunk-SJJVNSA6.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SETTINGS_KEYS,
3
3
  getSetting
4
- } from "./chunk-54Q4TGG6.js";
4
+ } from "./chunk-UEOEA6BB.js";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-K44MW7JJ.js";
@@ -58,28 +58,19 @@ function getProxyAgent() {
58
58
  });
59
59
  }
60
60
  _cachedProxyUrl = proxyUrl;
61
- try {
62
- _cachedAgent = new ProxyAgent({
63
- uri: proxyUrl,
64
- requestTls: { rejectUnauthorized: true }
65
- });
66
- logger.info("[proxy] Proxy agent created", { proxyUrl });
67
- } catch (err) {
68
- logger.error("[proxy] Failed to create proxy agent", { proxyUrl, error: err });
69
- _cachedAgent = void 0;
70
- _cachedProxyUrl = void 0;
71
- return void 0;
72
- }
61
+ _cachedAgent = new ProxyAgent({ uri: proxyUrl, requestTls: { rejectUnauthorized: false } });
62
+ logger.info("[proxy] Proxy agent created");
73
63
  }
74
64
  return _cachedAgent;
75
65
  }
76
- async function proxyFetch(url, options) {
66
+ var _originalFetch = globalThis.fetch;
67
+ globalThis.fetch = function(input, init) {
77
68
  const agent = getProxyAgent();
78
69
  if (agent) {
79
- return undiciFetch(url, { ...options, dispatcher: agent });
70
+ return undiciFetch(input, { ...init, dispatcher: agent });
80
71
  }
81
- return fetch(url, options);
82
- }
72
+ return _originalFetch(input, init);
73
+ };
83
74
 
84
75
  // src/server/llm/http-client.ts
85
76
  var OpenAIHttpClient = class {
@@ -97,7 +88,7 @@ var OpenAIHttpClient = class {
97
88
  };
98
89
  const bodyStr = JSON.stringify(params);
99
90
  logger.debug("HTTP request to LLM", { url, bodyKeys: Object.keys(params) });
100
- const response = await proxyFetch(url, {
91
+ const response = await fetch(url, {
101
92
  method: "POST",
102
93
  headers,
103
94
  body: bodyStr,
@@ -168,7 +159,6 @@ export {
168
159
  SessionNotFoundError,
169
160
  LLMError,
170
161
  WorkspaceInUseError,
171
- proxyFetch,
172
162
  OpenAIHttpClient
173
163
  };
174
- //# sourceMappingURL=chunk-7YBGCZSI.js.map
164
+ //# sourceMappingURL=chunk-TDHDLDGQ.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveDefaultAgentId
3
- } from "./chunk-NGN3Q26A.js";
3
+ } from "./chunk-OHBY2673.js";
4
4
  import {
5
5
  getDatabase
6
- } from "./chunk-6OAJNCRY.js";
6
+ } from "./chunk-GLF65XDS.js";
7
7
 
8
8
  // src/server/db/sessions.ts
9
9
  function getProjectDangerLevel(projectId) {
@@ -169,9 +169,8 @@ function updateSessionMetadata(id, metadata) {
169
169
  }
170
170
  function updateSessionMcpDisabledServers(id, disabledServers) {
171
171
  const db = getDatabase();
172
- const now = (/* @__PURE__ */ new Date()).toISOString();
173
172
  const value = disabledServers.length > 0 ? JSON.stringify(disabledServers) : null;
174
- db.prepare(`UPDATE sessions SET mcp_disabled_servers = ?, updated_at = ? WHERE id = ?`).run(value, now, id);
173
+ db.prepare(`UPDATE sessions SET mcp_disabled_servers = ? WHERE id = ?`).run(value, id);
175
174
  }
176
175
  function updateSessionCachedPrompt(id, systemPrompt, tools, hash) {
177
176
  const db = getDatabase();
@@ -315,6 +314,34 @@ function mapSessionSummaryRow(row) {
315
314
  messageCount: row.message_count
316
315
  };
317
316
  }
317
+ function createWorkflowExecution(id, sessionId, workflowId, workflowName, workflowColor, params) {
318
+ const db = getDatabase();
319
+ const now = Date.now();
320
+ db.prepare(
321
+ `INSERT INTO workflow_executions (id, session_id, workflow_id, workflow_name, workflow_color, status, step_output, params, created_at, updated_at)
322
+ VALUES (?, ?, ?, ?, ?, 'running', '{}', ?, ?, ?)`
323
+ ).run(id, sessionId, workflowId, workflowName, workflowColor ?? null, JSON.stringify(params), now, now);
324
+ }
325
+ function updateWorkflowExecutionStatus(executionId, status, stepId, stepName, stepOutput) {
326
+ const db = getDatabase();
327
+ const now = Date.now();
328
+ const stepOutputJson = stepOutput ? JSON.stringify(stepOutput) : void 0;
329
+ db.prepare(
330
+ `UPDATE workflow_executions SET status = ?, current_step_id = COALESCE(?, current_step_id), current_step_name = COALESCE(?, current_step_name), step_output = COALESCE(?, step_output), updated_at = ? WHERE id = ?`
331
+ ).run(status, stepId ?? null, stepName ?? null, stepOutputJson ?? null, now, executionId);
332
+ }
333
+ function getActiveWorkflowExecution(sessionId) {
334
+ const db = getDatabase();
335
+ const row = db.prepare(
336
+ `SELECT * FROM workflow_executions WHERE session_id = ? AND status IN ('running', 'waiting') ORDER BY updated_at DESC LIMIT 1`
337
+ ).get(sessionId);
338
+ return row;
339
+ }
340
+ function clearWorkflowExecution(executionId) {
341
+ const db = getDatabase();
342
+ const now = Date.now();
343
+ db.prepare(`UPDATE workflow_executions SET updated_at = ? WHERE id = ?`).run(now, executionId);
344
+ }
318
345
 
319
346
  export {
320
347
  createSession,
@@ -334,6 +361,10 @@ export {
334
361
  listSessionsByProject,
335
362
  updateSessionWorkdir,
336
363
  updateSessionBranch,
337
- deleteSession
364
+ deleteSession,
365
+ createWorkflowExecution,
366
+ updateWorkflowExecutionStatus,
367
+ getActiveWorkflowExecution,
368
+ clearWorkflowExecution
338
369
  };
339
- //# sourceMappingURL=chunk-6J5IZ2NL.js.map
370
+ //# sourceMappingURL=chunk-TSHJW7OC.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDatabase
3
- } from "./chunk-6OAJNCRY.js";
3
+ } from "./chunk-GLF65XDS.js";
4
4
 
5
5
  // src/server/db/settings.ts
6
6
  var SETTINGS_KEYS = {
@@ -116,4 +116,4 @@ export {
116
116
  getAllSettings,
117
117
  getMaxVisibleItems
118
118
  };
119
- //# sourceMappingURL=chunk-54Q4TGG6.js.map
119
+ //# sourceMappingURL=chunk-UEOEA6BB.js.map
@@ -0,0 +1,7 @@
1
+ // src/constants.ts
2
+ var VERSION = "2.0.95";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-VKU7YBLH.js.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-K2O7JTCX.js";
4
4
  import {
5
5
  COMPACTION_PROMPT
6
- } from "./chunk-U2RSFH6A.js";
6
+ } from "./chunk-MRWR3SIT.js";
7
7
  import {
8
8
  getCurrentWindowMessageOptions
9
- } from "./chunk-PYJ2SRVC.js";
9
+ } from "./chunk-7P7OKBYQ.js";
10
10
 
11
11
  // src/server/context/compactor.ts
12
12
  function appendCompactionPrompt(sessionId, append) {
@@ -36,4 +36,4 @@ export {
36
36
  COMPACTION_MAX_RATIO,
37
37
  shouldCompact
38
38
  };
39
- //# sourceMappingURL=chunk-ESJNJ5B6.js.map
39
+ //# sourceMappingURL=chunk-W7P5P54O.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDatabase
3
- } from "./chunk-6OAJNCRY.js";
3
+ } from "./chunk-GLF65XDS.js";
4
4
 
5
5
  // src/server/db/projects.ts
6
6
  function createProject(name, workdir) {
@@ -129,4 +129,4 @@ export {
129
129
  deleteProject,
130
130
  toggleStar
131
131
  };
132
- //# sourceMappingURL=chunk-ST4NYXLH.js.map
132
+ //# sourceMappingURL=chunk-WWFH5GAR.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-SYYZI2KX.js");
166
+ const { runProviderCommand } = await import("./provider-A74GHQUO.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-JARYMNGH.js");
203
+ const { runUpdate } = await import("./update-VUTN743C.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-HEHWSYMX.js");
216
+ const { runServe } = await import("./serve-GL5WUPRP.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-YM267G4F.js.map
228
+ //# sourceMappingURL=chunk-YCPUV7AR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLLMClient
3
- } from "./chunk-C56Z4OVW.js";
3
+ } from "./chunk-SJJVNSA6.js";
4
4
  import {
5
5
  getModelProfile
6
6
  } from "./chunk-V4IE7HJY.js";
@@ -15,9 +15,6 @@ import {
15
15
  import {
16
16
  resolveAttachmentsInMessages
17
17
  } from "./chunk-RMXPVQP4.js";
18
- import {
19
- proxyFetch
20
- } from "./chunk-7YBGCZSI.js";
21
18
  import {
22
19
  logger
23
20
  } from "./chunk-K44MW7JJ.js";
@@ -184,7 +181,7 @@ async function fetchModelsFromBackend(url, apiKey) {
184
181
  headers["Authorization"] = `Bearer ${apiKey}`;
185
182
  }
186
183
  try {
187
- const response = await proxyFetch(url, { method: "GET", headers, signal: AbortSignal.timeout(1e4) });
184
+ const response = await fetch(url, { method: "GET", headers, signal: AbortSignal.timeout(1e4) });
188
185
  if (!response.ok) {
189
186
  logger.debug("Failed to fetch models", { url, status: response.status });
190
187
  return [];
@@ -263,7 +260,7 @@ async function fetchModelsWithContext(baseUrl, apiKey, backend) {
263
260
  async function fetchOllamaModelsWithContext(baseUrl, _apiKey) {
264
261
  const tagsUrl = `${baseUrl}/api/tags`;
265
262
  try {
266
- const tagsResponse = await proxyFetch(tagsUrl, {
263
+ const tagsResponse = await fetch(tagsUrl, {
267
264
  signal: AbortSignal.timeout(1e4)
268
265
  });
269
266
  if (!tagsResponse.ok) {
@@ -278,7 +275,7 @@ async function fetchOllamaModelsWithContext(baseUrl, _apiKey) {
278
275
  for (const model of tagsData.models) {
279
276
  try {
280
277
  const showUrl = `${baseUrl}/api/show`;
281
- const showResponse = await proxyFetch(showUrl, {
278
+ const showResponse = await fetch(showUrl, {
282
279
  method: "POST",
283
280
  headers: { "Content-Type": "application/json" },
284
281
  body: JSON.stringify({ name: model.name, verbose: true }),
@@ -325,7 +322,7 @@ async function fetchLmStudioModelsWithContext(baseUrl, _apiKey) {
325
322
  const nativeUrl = `${base.replace(/\/v\d+\/?$/, "")}/api/v1/models`;
326
323
  try {
327
324
  logger.info("Fetching LM Studio native models", { url: nativeUrl });
328
- const response = await proxyFetch(nativeUrl, {
325
+ const response = await fetch(nativeUrl, {
329
326
  signal: AbortSignal.timeout(1e4)
330
327
  });
331
328
  if (!response.ok) {
@@ -810,4 +807,4 @@ export {
810
807
  parseDefaultModelSelection,
811
808
  createProviderManager
812
809
  };
813
- //# sourceMappingURL=chunk-GH5PL3JW.js.map
810
+ //# sourceMappingURL=chunk-YPBV47DH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getProjectByWorkdir
3
- } from "./chunk-ST4NYXLH.js";
3
+ } from "./chunk-WWFH5GAR.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-DH32AHTL.js.map
346
+ //# sourceMappingURL=chunk-ZASSAZ73.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createChatPathConfirmationMessage
3
- } from "./chunk-IAAHDCJN.js";
3
+ } from "./chunk-27SDWNKL.js";
4
4
  import {
5
5
  getEventStore
6
- } from "./chunk-PYJ2SRVC.js";
6
+ } from "./chunk-7P7OKBYQ.js";
7
7
 
8
8
  // src/server/tools/path-security.ts
9
9
  import { realpath } from "fs/promises";
@@ -494,4 +494,4 @@ export {
494
494
  getConfirmationSessionId,
495
495
  getPendingConfirmationsBySession
496
496
  };
497
- //# sourceMappingURL=chunk-AQ4KCGXL.js.map
497
+ //# sourceMappingURL=chunk-ZMSHE564.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-YM267G4F.js";
4
+ } from "../chunk-YCPUV7AR.js";
5
5
  import "../chunk-XY3LESVZ.js";
6
6
  import {
7
7
  logger
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-YM267G4F.js";
4
+ } from "../chunk-YCPUV7AR.js";
5
5
  import "../chunk-XY3LESVZ.js";
6
6
  import {
7
7
  logger
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createLLMClient
3
- } from "./chunk-C56Z4OVW.js";
3
+ } from "./chunk-SJJVNSA6.js";
4
4
  import "./chunk-V4IE7HJY.js";
5
5
  import "./chunk-YHEQTVFV.js";
6
6
  import "./chunk-HNCM3D7Y.js";
7
7
  import "./chunk-RMXPVQP4.js";
8
- import "./chunk-7YBGCZSI.js";
9
- import "./chunk-54Q4TGG6.js";
10
- import "./chunk-6OAJNCRY.js";
8
+ import "./chunk-TDHDLDGQ.js";
9
+ import "./chunk-UEOEA6BB.js";
10
+ import "./chunk-GLF65XDS.js";
11
11
  import "./chunk-K44MW7JJ.js";
12
12
  import "./chunk-5WRI5ZAA.js";
13
13
  export {
14
14
  createLLMClient
15
15
  };
16
- //# sourceMappingURL=client-RBXMHFX3.js.map
16
+ //# sourceMappingURL=client-RENSCJPZ.js.map
@@ -3,20 +3,20 @@ import {
3
3
  COMPACTION_MAX_RATIO,
4
4
  appendCompactionPrompt,
5
5
  shouldCompact
6
- } from "./chunk-ESJNJ5B6.js";
6
+ } from "./chunk-W7P5P54O.js";
7
7
  import "./chunk-K2O7JTCX.js";
8
- import "./chunk-U2RSFH6A.js";
9
- import "./chunk-PYJ2SRVC.js";
10
- import "./chunk-WWC3R3YL.js";
11
- import "./chunk-3QQKKZMF.js";
12
- import "./chunk-6J5IZ2NL.js";
13
- import "./chunk-NGN3Q26A.js";
8
+ import "./chunk-MRWR3SIT.js";
9
+ import "./chunk-7P7OKBYQ.js";
10
+ import "./chunk-NLN5LPQ4.js";
11
+ import "./chunk-P637C6X3.js";
12
+ import "./chunk-TSHJW7OC.js";
13
+ import "./chunk-OHBY2673.js";
14
14
  import "./chunk-J2GP3J3X.js";
15
15
  import "./chunk-V4IE7HJY.js";
16
16
  import "./chunk-YHEQTVFV.js";
17
17
  import "./chunk-RMXPVQP4.js";
18
- import "./chunk-54Q4TGG6.js";
19
- import "./chunk-6OAJNCRY.js";
18
+ import "./chunk-UEOEA6BB.js";
19
+ import "./chunk-GLF65XDS.js";
20
20
  import "./chunk-K44MW7JJ.js";
21
21
  import "./chunk-CQGTEGKL.js";
22
22
  import "./chunk-5WRI5ZAA.js";
@@ -26,4 +26,4 @@ export {
26
26
  appendCompactionPrompt,
27
27
  shouldCompact
28
28
  };
29
- //# sourceMappingURL=compactor-R7GGPBPR.js.map
29
+ //# sourceMappingURL=compactor-3RXIAIPR.js.map
@@ -5,14 +5,14 @@ import {
5
5
  computeSessionHash,
6
6
  computeUnifiedDiff,
7
7
  getToolFingerprint
8
- } from "./chunk-NW2KP7PE.js";
9
- import "./chunk-SXHGRPCI.js";
10
- import "./chunk-ST4NYXLH.js";
11
- import "./chunk-U2RSFH6A.js";
12
- import "./chunk-WWC3R3YL.js";
13
- import "./chunk-NGN3Q26A.js";
14
- import "./chunk-54Q4TGG6.js";
15
- import "./chunk-6OAJNCRY.js";
8
+ } from "./chunk-MB7STVMR.js";
9
+ import "./chunk-MC3MCMAF.js";
10
+ import "./chunk-WWFH5GAR.js";
11
+ import "./chunk-MRWR3SIT.js";
12
+ import "./chunk-NLN5LPQ4.js";
13
+ import "./chunk-OHBY2673.js";
14
+ import "./chunk-UEOEA6BB.js";
15
+ import "./chunk-GLF65XDS.js";
16
16
  import "./chunk-K44MW7JJ.js";
17
17
  import "./chunk-CQGTEGKL.js";
18
18
  import "./chunk-5WRI5ZAA.js";
@@ -24,4 +24,4 @@ export {
24
24
  computeUnifiedDiff,
25
25
  getToolFingerprint
26
26
  };
27
- //# sourceMappingURL=dynamic-context-4UPNVL3N.js.map
27
+ //# sourceMappingURL=dynamic-context-CJFDFUJF.js.map