openfox 2.0.0-beta.6 → 2.0.0-beta.7

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.
@@ -8,8 +8,8 @@ import {
8
8
  } from "./chunk-CDDMHSZF.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-RBJ25FIR.js";
12
- import "./chunk-FRCLNAE2.js";
11
+ } from "./chunk-DFITQ75T.js";
12
+ import "./chunk-QN5ST54E.js";
13
13
  import "./chunk-DL6ZILAF.js";
14
14
  import "./chunk-PBGOZMVY.js";
15
15
  import "./chunk-VRGRAQDG.js";
@@ -161,4 +161,4 @@ export {
161
161
  startChatSession,
162
162
  stopSessionExecution
163
163
  };
164
- //# sourceMappingURL=chat-handler-27FY5TEH.js.map
164
+ //# sourceMappingURL=chat-handler-XIAY7O5X.js.map
@@ -71,6 +71,7 @@ var providerSchema = z.object({
71
71
  models: z.array(modelConfigSchema).default([]),
72
72
  isActive: z.boolean(),
73
73
  createdAt: z.string(),
74
+ isLocal: z.boolean().optional(),
74
75
  // Deprecated: model field kept for migration, will be removed after migration
75
76
  model: z.string().optional(),
76
77
  // Deprecated: maxContext kept for migration
@@ -323,6 +324,12 @@ function addProvider(config, provider) {
323
324
  }
324
325
  };
325
326
  }
327
+ function updateProvider(config, providerId, updates) {
328
+ return {
329
+ ...config,
330
+ providers: config.providers.map((p) => p.id === providerId ? { ...p, ...updates } : p)
331
+ };
332
+ }
326
333
  function removeProvider(config, providerId) {
327
334
  const currentProviders = config.providers ?? [];
328
335
  const filtered = currentProviders.filter((p) => p.id !== providerId);
@@ -431,8 +438,9 @@ export {
431
438
  getDefaultModel,
432
439
  setDefaultModelSelection,
433
440
  addProvider,
441
+ updateProvider,
434
442
  removeProvider,
435
443
  activateProvider,
436
444
  mergeConfigs
437
445
  };
438
- //# sourceMappingURL=chunk-QUSUEN5R.js.map
446
+ //# sourceMappingURL=chunk-2ZS2B5HW.js.map
@@ -16,7 +16,7 @@ import {
16
16
  loadAllAgentsDefault,
17
17
  processEventsForConversation,
18
18
  runTopLevelAgentLoop
19
- } from "./chunk-FRCLNAE2.js";
19
+ } from "./chunk-QN5ST54E.js";
20
20
  import {
21
21
  getCurrentContextWindowId,
22
22
  getCurrentWindowMessageOptions,
@@ -317,4 +317,4 @@ export {
317
317
  runAgentTurn,
318
318
  injectWorkflowKickoffIfNeeded
319
319
  };
320
- //# sourceMappingURL=chunk-RBJ25FIR.js.map
320
+ //# sourceMappingURL=chunk-DFITQ75T.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-VBBMTXJZ.js");
36
+ const { saveGlobalConfig } = await import("./config-QUT7YZQ7.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-VBBMTXJZ.js");
97
+ const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-QUT7YZQ7.js");
98
98
  const { getGlobalConfigPath } = await import("./paths-X46PPOI2.js");
99
99
  const config = await loadGlobalConfig(mode);
100
100
  const configPath = getGlobalConfigPath(mode);
@@ -151,7 +151,7 @@ async function runCli(options) {
151
151
  break;
152
152
  }
153
153
  case "provider": {
154
- const { runProviderCommand } = await import("./provider-NRWSSO55.js");
154
+ const { runProviderCommand } = await import("./provider-4T6BVPMD.js");
155
155
  const [, subcommand] = positionals;
156
156
  await runProviderCommand(mode, subcommand);
157
157
  break;
@@ -188,12 +188,12 @@ async function runCli(options) {
188
188
  break;
189
189
  }
190
190
  default: {
191
- const { configFileExists } = await import("./config-VBBMTXJZ.js");
191
+ const { configFileExists } = await import("./config-QUT7YZQ7.js");
192
192
  const configExists = await configFileExists(mode);
193
193
  if (!configExists) {
194
194
  await runNetworkSetup(mode);
195
195
  }
196
- const { runServe } = await import("./serve-J6EM3G6N.js");
196
+ const { runServe } = await import("./serve-W3ETJJP3.js");
197
197
  const serveOptions = { mode };
198
198
  if (values.port) serveOptions.port = parseInt(values.port);
199
199
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -205,4 +205,4 @@ async function runCli(options) {
205
205
  export {
206
206
  runCli
207
207
  };
208
- //# sourceMappingURL=chunk-R3EK3ODJ.js.map
208
+ //# sourceMappingURL=chunk-KAYUPVHQ.js.map
@@ -3,7 +3,7 @@ import {
3
3
  injectWorkflowKickoffIfNeeded,
4
4
  runAgentTurn,
5
5
  runChatTurn
6
- } from "./chunk-RBJ25FIR.js";
6
+ } from "./chunk-DFITQ75T.js";
7
7
  import {
8
8
  COMPACTION_PROMPT,
9
9
  TurnMetrics,
@@ -59,7 +59,7 @@ import {
59
59
  skillExists,
60
60
  spawnShellProcess,
61
61
  streamLLMPure
62
- } from "./chunk-FRCLNAE2.js";
62
+ } from "./chunk-QN5ST54E.js";
63
63
  import {
64
64
  getPathSeparator,
65
65
  getPlatformShell,
@@ -5830,7 +5830,7 @@ import { Router as Router6 } from "express";
5830
5830
  import { spawn as spawn5 } from "child_process";
5831
5831
 
5832
5832
  // src/constants.ts
5833
- var VERSION = "2.0.0-beta.6";
5833
+ var VERSION = "2.0.0-beta.7";
5834
5834
 
5835
5835
  // src/server/routes/auto-update.ts
5836
5836
  var updateInProgress = false;
@@ -6209,7 +6209,7 @@ async function createServerHandle(config4) {
6209
6209
  return res.status(400).json({ error: "providerId is required" });
6210
6210
  }
6211
6211
  sessionManager.setSessionProvider(sessionId, providerId, model ?? "auto");
6212
- const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-VBBMTXJZ.js");
6212
+ const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-QUT7YZQ7.js");
6213
6213
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6214
6214
  const updatedConfig = setDefaultModelSelection(globalConfig, providerId, model ?? "auto");
6215
6215
  await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
@@ -6297,7 +6297,7 @@ async function createServerHandle(config4) {
6297
6297
  if (!callId || approved === void 0) {
6298
6298
  return res.status(400).json({ error: "callId and approved are required" });
6299
6299
  }
6300
- const { providePathConfirmation } = await import("./tools-GCANYSB7.js");
6300
+ const { providePathConfirmation } = await import("./tools-SDXWIYSA.js");
6301
6301
  const result = providePathConfirmation(callId, approved, alwaysAllow);
6302
6302
  if (!result.found) {
6303
6303
  return res.status(404).json({ error: "No pending path confirmation with that ID" });
@@ -6321,7 +6321,7 @@ async function createServerHandle(config4) {
6321
6321
  if (!callId || !answer) {
6322
6322
  return res.status(400).json({ error: "callId and answer are required" });
6323
6323
  }
6324
- const { provideAnswer: provideAnswer2 } = await import("./tools-GCANYSB7.js");
6324
+ const { provideAnswer: provideAnswer2 } = await import("./tools-SDXWIYSA.js");
6325
6325
  const found = provideAnswer2(callId, answer);
6326
6326
  if (!found) {
6327
6327
  return res.status(404).json({ error: "No pending question with that ID" });
@@ -6357,8 +6357,8 @@ async function createServerHandle(config4) {
6357
6357
  if (!session) {
6358
6358
  return res.status(404).json({ error: "Session not found" });
6359
6359
  }
6360
- const { stopSessionExecution } = await import("./chat-handler-27FY5TEH.js");
6361
- const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-GCANYSB7.js");
6360
+ const { stopSessionExecution } = await import("./chat-handler-XIAY7O5X.js");
6361
+ const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-SDXWIYSA.js");
6362
6362
  stopSessionExecution(sessionId, sessionManager);
6363
6363
  abortSession(sessionId);
6364
6364
  cancelQuestionsForSession(sessionId, "Session stopped by user");
@@ -6468,7 +6468,7 @@ async function createServerHandle(config4) {
6468
6468
  let visionFallback;
6469
6469
  let globalWorkdir;
6470
6470
  try {
6471
- const { loadGlobalConfig, getVisionFallback } = await import("./config-VBBMTXJZ.js");
6471
+ const { loadGlobalConfig, getVisionFallback } = await import("./config-QUT7YZQ7.js");
6472
6472
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6473
6473
  const fallback = getVisionFallback(globalConfig);
6474
6474
  if (fallback) {
@@ -6542,12 +6542,12 @@ async function createServerHandle(config4) {
6542
6542
  }
6543
6543
  });
6544
6544
  app.post("/api/providers", async (req, res) => {
6545
- const { name, url, backend, apiKey, model } = req.body;
6545
+ const { name, url, backend, apiKey, model, isLocal } = req.body;
6546
6546
  if (!name || !url || !backend) {
6547
6547
  return res.status(400).json({ error: "name, url, and backend are required" });
6548
6548
  }
6549
6549
  try {
6550
- const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-VBBMTXJZ.js");
6550
+ const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-QUT7YZQ7.js");
6551
6551
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6552
6552
  const providerBackend = backend;
6553
6553
  const configWithProvider = addProvider(globalConfig, {
@@ -6555,6 +6555,7 @@ async function createServerHandle(config4) {
6555
6555
  url,
6556
6556
  backend: providerBackend,
6557
6557
  apiKey,
6558
+ ...isLocal !== void 0 ? { isLocal } : {},
6558
6559
  models: model ? [{ id: model, contextWindow: 2e5, source: "user" }] : [],
6559
6560
  isActive: true
6560
6561
  });
@@ -6580,7 +6581,7 @@ async function createServerHandle(config4) {
6580
6581
  app.post("/api/init/config", async (req, res) => {
6581
6582
  const { workdir, visionFallback } = req.body;
6582
6583
  try {
6583
- const { loadGlobalConfig, saveGlobalConfig } = await import("./config-VBBMTXJZ.js");
6584
+ const { loadGlobalConfig, saveGlobalConfig } = await import("./config-QUT7YZQ7.js");
6584
6585
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6585
6586
  const updatedConfig = {
6586
6587
  ...globalConfig,
@@ -6608,13 +6609,33 @@ async function createServerHandle(config4) {
6608
6609
  });
6609
6610
  app.delete("/api/providers/:id", async (req, res) => {
6610
6611
  const { id } = req.params;
6611
- const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-VBBMTXJZ.js");
6612
+ const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-QUT7YZQ7.js");
6612
6613
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6613
6614
  const updatedConfig = removeProvider(globalConfig, id);
6614
6615
  await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
6615
6616
  providerManager.setProviders(updatedConfig.providers, updatedConfig.defaultModelSelection ?? void 0);
6616
6617
  res.json({ success: true });
6617
6618
  });
6619
+ app.patch("/api/providers/:id", async (req, res) => {
6620
+ const { id } = req.params;
6621
+ const { isLocal } = req.body;
6622
+ try {
6623
+ const { loadGlobalConfig, saveGlobalConfig, updateProvider } = await import("./config-QUT7YZQ7.js");
6624
+ const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6625
+ const provider = globalConfig.providers.find((p) => p.id === id);
6626
+ if (!provider) {
6627
+ return res.status(404).json({ error: "Provider not found" });
6628
+ }
6629
+ const updates = {};
6630
+ if (isLocal !== void 0) updates["isLocal"] = isLocal;
6631
+ const updatedConfig = updateProvider(globalConfig, id, updates);
6632
+ await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
6633
+ providerManager.setProviders(updatedConfig.providers, updatedConfig.defaultModelSelection ?? void 0);
6634
+ res.json({ success: true, provider: updatedConfig.providers.find((p) => p.id === id) });
6635
+ } catch (error) {
6636
+ res.status(500).json({ error: error instanceof Error ? error.message : "Failed to update provider" });
6637
+ }
6638
+ });
6618
6639
  app.get("/api/providers/:id/models", async (req, res) => {
6619
6640
  const { id } = req.params;
6620
6641
  const models = await providerManager.getProviderModels(id);
@@ -6628,7 +6649,7 @@ async function createServerHandle(config4) {
6628
6649
  return res.status(400).json({ error: result.error });
6629
6650
  }
6630
6651
  const llmClient = getLLMClient();
6631
- const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-VBBMTXJZ.js");
6652
+ const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-QUT7YZQ7.js");
6632
6653
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6633
6654
  const updatedConfig = setDefaultModelSelection(globalConfig, id, llmClient.getModel());
6634
6655
  await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
@@ -6659,7 +6680,7 @@ async function createServerHandle(config4) {
6659
6680
  if (!result.success) {
6660
6681
  return res.status(400).json({ error: result.error });
6661
6682
  }
6662
- const { loadGlobalConfig, saveGlobalConfig } = await import("./config-VBBMTXJZ.js");
6683
+ const { loadGlobalConfig, saveGlobalConfig } = await import("./config-QUT7YZQ7.js");
6663
6684
  const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
6664
6685
  const updatedProviders = providerManager.getProviders();
6665
6686
  const updatedConfig = {
@@ -6873,7 +6894,7 @@ async function createServerHandle(config4) {
6873
6894
  providerManager
6874
6895
  );
6875
6896
  const wss = wssExports.wss;
6876
- const { QueueProcessor } = await import("./processor-K4B7QRO2.js");
6897
+ const { QueueProcessor } = await import("./processor-6VIYGURD.js");
6877
6898
  const queueProcessor = new QueueProcessor({
6878
6899
  sessionManager,
6879
6900
  providerManager,
@@ -6945,4 +6966,4 @@ export {
6945
6966
  createServerHandle,
6946
6967
  createServer
6947
6968
  };
6948
- //# sourceMappingURL=chunk-3FFHHYWP.js.map
6969
+ //# sourceMappingURL=chunk-LN22TXNK.js.map
@@ -3259,7 +3259,7 @@ async function describeImageFromDataUrl(dataUrl, visionModel, options) {
3259
3259
  import { createHash as createHash2 } from "crypto";
3260
3260
  async function loadVisionModelFromGlobalConfig() {
3261
3261
  try {
3262
- const { loadGlobalConfig, getVisionFallback } = await import("./config-VBBMTXJZ.js");
3262
+ const { loadGlobalConfig, getVisionFallback } = await import("./config-QUT7YZQ7.js");
3263
3263
  const runtimeConfig = getRuntimeConfig();
3264
3264
  const mode = runtimeConfig.mode ?? "production";
3265
3265
  const globalConfig = await loadGlobalConfig(mode);
@@ -3713,7 +3713,7 @@ var callSubAgentTool = {
3713
3713
  };
3714
3714
  }
3715
3715
  try {
3716
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-GCANYSB7.js");
3716
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-SDXWIYSA.js");
3717
3717
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3718
3718
  const turnMetrics = new TurnMetrics();
3719
3719
  const result = await executeSubAgent({
@@ -4764,4 +4764,4 @@ export {
4764
4764
  getToolRegistryForAgent,
4765
4765
  createToolRegistry
4766
4766
  };
4767
- //# sourceMappingURL=chunk-FRCLNAE2.js.map
4767
+ //# sourceMappingURL=chunk-QN5ST54E.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-R3EK3ODJ.js";
4
+ } from "../chunk-KAYUPVHQ.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-R3EK3ODJ.js";
4
+ } from "../chunk-KAYUPVHQ.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-K44MW7JJ.js";
@@ -12,8 +12,9 @@ import {
12
12
  removeProvider,
13
13
  saveGlobalConfig,
14
14
  setDefaultModelSelection,
15
- trySmartDefaults
16
- } from "./chunk-QUSUEN5R.js";
15
+ trySmartDefaults,
16
+ updateProvider
17
+ } from "./chunk-2ZS2B5HW.js";
17
18
  import "./chunk-EMJGF3A7.js";
18
19
  import "./chunk-7FDY3EOH.js";
19
20
  import "./chunk-K44MW7JJ.js";
@@ -32,6 +33,7 @@ export {
32
33
  removeProvider,
33
34
  saveGlobalConfig,
34
35
  setDefaultModelSelection,
35
- trySmartDefaults
36
+ trySmartDefaults,
37
+ updateProvider
36
38
  };
37
- //# sourceMappingURL=config-VBBMTXJZ.js.map
39
+ //# sourceMappingURL=config-QUT7YZQ7.js.map
@@ -2,7 +2,7 @@ import {
2
2
  injectWorkflowKickoffIfNeeded,
3
3
  runAgentTurn,
4
4
  runChatTurn
5
- } from "./chunk-RBJ25FIR.js";
5
+ } from "./chunk-DFITQ75T.js";
6
6
  import {
7
7
  TurnMetrics,
8
8
  createChatDoneEvent,
@@ -10,7 +10,7 @@ import {
10
10
  createMessageStartEvent,
11
11
  createToolCallEvent,
12
12
  createToolResultEvent
13
- } from "./chunk-FRCLNAE2.js";
13
+ } from "./chunk-QN5ST54E.js";
14
14
  import "./chunk-DL6ZILAF.js";
15
15
  import "./chunk-PBGOZMVY.js";
16
16
  import "./chunk-VRGRAQDG.js";
@@ -36,4 +36,4 @@ export {
36
36
  runAgentTurn,
37
37
  runChatTurn
38
38
  };
39
- //# sourceMappingURL=orchestrator-QDCVUBCL.js.map
39
+ //# sourceMappingURL=orchestrator-GAOENX5Q.js.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "2.0.0-beta.6",
3
+ "version": "2.0.0-beta.7",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -176,7 +176,7 @@ var QueueProcessor = class {
176
176
  backend: provider?.backend ?? llmClient.getBackend(),
177
177
  model: llmClient.getModel()
178
178
  };
179
- const { runChatTurn } = await import("./orchestrator-QDCVUBCL.js");
179
+ const { runChatTurn } = await import("./orchestrator-GAOENX5Q.js");
180
180
  const runChatTurnParams = buildRunChatTurnParams({
181
181
  sessionManager,
182
182
  sessionId,
@@ -220,4 +220,4 @@ var QueueProcessor = class {
220
220
  export {
221
221
  QueueProcessor
222
222
  };
223
- //# sourceMappingURL=processor-K4B7QRO2.js.map
223
+ //# sourceMappingURL=processor-6VIYGURD.js.map
@@ -417,6 +417,7 @@ interface Provider {
417
417
  isActive: boolean;
418
418
  createdAt: string;
419
419
  status?: 'connected' | 'disconnected' | 'unknown';
420
+ isLocal?: boolean | undefined;
420
421
  }
421
422
  interface Config {
422
423
  llm: {
@@ -8,7 +8,7 @@ import {
8
8
  loadGlobalConfig,
9
9
  removeProvider,
10
10
  saveGlobalConfig
11
- } from "./chunk-QUSUEN5R.js";
11
+ } from "./chunk-2ZS2B5HW.js";
12
12
  import {
13
13
  detectModel
14
14
  } from "./chunk-EMJGF3A7.js";
@@ -137,6 +137,21 @@ async function runProviderAdd(mode) {
137
137
  }
138
138
  }
139
139
  }
140
+ const localBackends = /* @__PURE__ */ new Set(["vllm", "sglang", "ollama", "llamacpp", "opencode-go"]);
141
+ const defaultIsLocal = localBackends.has(backend);
142
+ const isLocalChoice = await select({
143
+ message: "Is this a local provider?",
144
+ options: [
145
+ { value: "yes", label: "Yes" },
146
+ { value: "no", label: "No" }
147
+ ],
148
+ initialValue: defaultIsLocal ? "yes" : "no"
149
+ });
150
+ if (isCancel(isLocalChoice)) {
151
+ cancel("Cancelled");
152
+ return;
153
+ }
154
+ const isLocal = isLocalChoice === "yes";
140
155
  let apiKey;
141
156
  if (backend === "openai" || backend === "anthropic") {
142
157
  const key = await password({
@@ -243,11 +258,12 @@ async function runProviderAdd(mode) {
243
258
  url,
244
259
  backend: finalBackend,
245
260
  apiKey,
261
+ isLocal,
246
262
  models,
247
263
  isActive: makeActive
248
264
  });
249
265
  if (makeActive) {
250
- const { setDefaultModelSelection } = await import("./config-VBBMTXJZ.js");
266
+ const { setDefaultModelSelection } = await import("./config-QUT7YZQ7.js");
251
267
  newConfig = setDefaultModelSelection(
252
268
  newConfig,
253
269
  newConfig.providers[newConfig.providers.length - 1].id,
@@ -375,4 +391,4 @@ export {
375
391
  runProviderRemove,
376
392
  runProviderUse
377
393
  };
378
- //# sourceMappingURL=provider-NRWSSO55.js.map
394
+ //# sourceMappingURL=provider-4T6BVPMD.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  VERSION,
3
3
  createServer
4
- } from "./chunk-3FFHHYWP.js";
4
+ } from "./chunk-LN22TXNK.js";
5
5
  import "./chunk-RI6GAMNP.js";
6
- import "./chunk-RBJ25FIR.js";
7
- import "./chunk-FRCLNAE2.js";
6
+ import "./chunk-DFITQ75T.js";
7
+ import "./chunk-QN5ST54E.js";
8
8
  import "./chunk-DL6ZILAF.js";
9
9
  import "./chunk-PBGOZMVY.js";
10
10
  import "./chunk-VRGRAQDG.js";
@@ -24,7 +24,7 @@ import {
24
24
  getActiveProvider,
25
25
  getDefaultModel,
26
26
  loadGlobalConfig
27
- } from "./chunk-QUSUEN5R.js";
27
+ } from "./chunk-2ZS2B5HW.js";
28
28
  import "./chunk-EMJGF3A7.js";
29
29
  import "./chunk-7FDY3EOH.js";
30
30
  import {
@@ -189,4 +189,4 @@ async function runServe(options) {
189
189
  export {
190
190
  runServe
191
191
  };
192
- //# sourceMappingURL=serve-J6EM3G6N.js.map
192
+ //# sourceMappingURL=serve-W3ETJJP3.js.map
@@ -1,4 +1,4 @@
1
- import { aN as ToolCall, c as Attachment, R as Diagnostic, am as Provider, ab as ModelConfig, az as Session, aI as SessionSummary, ai as Project, aD as SessionMode, aF as SessionPhase, M as Message, J as Criterion, L as CriterionStatus, a8 as MetadataEntry, av as QueuedMessage, F as ContextState, O as DangerLevel$1, ax as ServerMessage, aK as StatsIdentity, aQ as ToolResult, D as Config } from '../protocol-De-Pzgry.js';
1
+ import { aN as ToolCall, c as Attachment, R as Diagnostic, am as Provider, ab as ModelConfig, az as Session, aI as SessionSummary, ai as Project, aD as SessionMode, aF as SessionPhase, M as Message, J as Criterion, L as CriterionStatus, a8 as MetadataEntry, av as QueuedMessage, F as ContextState, O as DangerLevel$1, ax as ServerMessage, aK as StatsIdentity, aQ as ToolResult, D as Config } from '../protocol-CDOV1pyc.js';
2
2
  import { Server } from 'node:http';
3
3
 
4
4
  interface LLMMessage {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-3FFHHYWP.js";
4
+ } from "../chunk-LN22TXNK.js";
5
5
  import "../chunk-RI6GAMNP.js";
6
- import "../chunk-RBJ25FIR.js";
7
- import "../chunk-FRCLNAE2.js";
6
+ import "../chunk-DFITQ75T.js";
7
+ import "../chunk-QN5ST54E.js";
8
8
  import "../chunk-DL6ZILAF.js";
9
9
  import "../chunk-PBGOZMVY.js";
10
10
  import "../chunk-VRGRAQDG.js";
@@ -1,5 +1,5 @@
1
- import { M as Message, S as SessionStats } from '../protocol-De-Pzgry.js';
2
- export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatThinkingPayload, s as ChatTodoPayload, t as ChatToolCallPayload, u as ChatToolOutputPayload, v as ChatToolPreparingPayload, w as ChatToolResultPayload, x as ChatVisionFallbackPayload, y as ClientMessage, z as ClientMessageType, D as Config, E as ContextCompactionEvent, F as ContextState, G as ContextStatePayload, H as ContextWindow, I as CriteriaUpdatedPayload, J as Criterion, K as CriterionAttempt, L as CriterionStatus, N as CriterionValidation, O as DangerLevel, P as DevServerOutputPayload, Q as DevServerStatePayload, R as Diagnostic, T as EditContextEdit, U as EditContextLine, V as EditContextRegion, W as ElementData, X as ErrorPayload, Y as ExecutionState, Z as FileReadEntry, _ as GitDiffFile, $ as GitStatusPayload, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as MetadataEntry, a9 as MetadataUpdatedPayload, aa as ModeChangedPayload, ab as ModelConfig, ac as ModelSessionStats, ad as PathConfirmPayload, ae as PathConfirmationReason, af as PendingPathConfirmationPayload, ag as PhaseChangedPayload, ah as PreparingToolCall, ai as Project, aj as ProjectDeletedPayload, ak as ProjectListPayload, al as ProjectStatePayload, am as Provider, an as ProviderBackend, ao as ProviderChangedPayload, ap as QueueAddedEvent, aq as QueueCancelledEvent, ar as QueueDrainedEvent, as as QueueEvent, at as QueueEventType, au as QueueStatePayload, av as QueuedMessage, aw as RecentUserPrompt, ax as ServerMessage, ay as ServerMessageType, az as Session, aA as SessionListPayload, aB as SessionLoadPayload, aC as SessionMetadata, aD as SessionMode, aE as SessionNameGeneratedPayload, aF as SessionPhase, aG as SessionRunningPayload, aH as SessionStatePayload, aI as SessionSummary, aJ as StatsDataPoint, aK as StatsIdentity, aL as TaskCompletedPayload, aM as Todo, aN as ToolCall, aO as ToolMode, aP as ToolName, aQ as ToolResult, aR as ValidationResult, aS as createClientMessage, aT as createServerMessage, aU as isClientMessage, aV as isServerMessage } from '../protocol-De-Pzgry.js';
1
+ import { M as Message, S as SessionStats } from '../protocol-CDOV1pyc.js';
2
+ export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatThinkingPayload, s as ChatTodoPayload, t as ChatToolCallPayload, u as ChatToolOutputPayload, v as ChatToolPreparingPayload, w as ChatToolResultPayload, x as ChatVisionFallbackPayload, y as ClientMessage, z as ClientMessageType, D as Config, E as ContextCompactionEvent, F as ContextState, G as ContextStatePayload, H as ContextWindow, I as CriteriaUpdatedPayload, J as Criterion, K as CriterionAttempt, L as CriterionStatus, N as CriterionValidation, O as DangerLevel, P as DevServerOutputPayload, Q as DevServerStatePayload, R as Diagnostic, T as EditContextEdit, U as EditContextLine, V as EditContextRegion, W as ElementData, X as ErrorPayload, Y as ExecutionState, Z as FileReadEntry, _ as GitDiffFile, $ as GitStatusPayload, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as MetadataEntry, a9 as MetadataUpdatedPayload, aa as ModeChangedPayload, ab as ModelConfig, ac as ModelSessionStats, ad as PathConfirmPayload, ae as PathConfirmationReason, af as PendingPathConfirmationPayload, ag as PhaseChangedPayload, ah as PreparingToolCall, ai as Project, aj as ProjectDeletedPayload, ak as ProjectListPayload, al as ProjectStatePayload, am as Provider, an as ProviderBackend, ao as ProviderChangedPayload, ap as QueueAddedEvent, aq as QueueCancelledEvent, ar as QueueDrainedEvent, as as QueueEvent, at as QueueEventType, au as QueueStatePayload, av as QueuedMessage, aw as RecentUserPrompt, ax as ServerMessage, ay as ServerMessageType, az as Session, aA as SessionListPayload, aB as SessionLoadPayload, aC as SessionMetadata, aD as SessionMode, aE as SessionNameGeneratedPayload, aF as SessionPhase, aG as SessionRunningPayload, aH as SessionStatePayload, aI as SessionSummary, aJ as StatsDataPoint, aK as StatsIdentity, aL as TaskCompletedPayload, aM as Todo, aN as ToolCall, aO as ToolMode, aP as ToolName, aQ as ToolResult, aR as ValidationResult, aS as createClientMessage, aT as createServerMessage, aU as isClientMessage, aV as isServerMessage } from '../protocol-CDOV1pyc.js';
3
3
 
4
4
  /**
5
5
  * Session stats computation - aggregates response-level MessageStats from
@@ -11,7 +11,7 @@ import {
11
11
  requestPathAccess,
12
12
  stepDoneTool,
13
13
  validateToolAction
14
- } from "./chunk-FRCLNAE2.js";
14
+ } from "./chunk-QN5ST54E.js";
15
15
  import "./chunk-DL6ZILAF.js";
16
16
  import "./chunk-PBGOZMVY.js";
17
17
  import "./chunk-VRGRAQDG.js";
@@ -47,4 +47,4 @@ export {
47
47
  stepDoneTool,
48
48
  validateToolAction
49
49
  };
50
- //# sourceMappingURL=tools-GCANYSB7.js.map
50
+ //# sourceMappingURL=tools-SDXWIYSA.js.map