openfox 1.6.92 → 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.
- package/dist/{auto-compaction-7AGIGW6F.js → auto-compaction-UOYOMWLZ.js} +6 -6
- package/dist/{chat-handler-UPAEF6HR.js → chat-handler-5HU4QWD4.js} +9 -9
- package/dist/{chunk-YTPPQK55.js → chunk-4I3C46WU.js} +2 -2
- package/dist/{chunk-RW25DL5R.js → chunk-CGZHLM3K.js} +2 -2
- package/dist/{chunk-2TKN2X2A.js → chunk-CHEVYEM4.js} +3 -3
- package/dist/{chunk-XGJ7HDQ7.js → chunk-DTXWOKAG.js} +2 -2
- package/dist/{chunk-ARJIHQ3S.js → chunk-FVVLGR2G.js} +12 -14
- package/dist/{chunk-RJIPM7CO.js → chunk-HGAMIPFO.js} +2 -2
- package/dist/{chunk-WBQNIWAQ.js → chunk-HHAJ3QF6.js} +5 -5
- package/dist/{chunk-BHZL3N2F.js → chunk-NNEHZT3V.js} +12 -12
- package/dist/{chunk-7KO2BQFQ.js → chunk-PNIXFZZH.js} +7 -7
- package/dist/{chunk-2BS6LMIU.js → chunk-QIFXGM2L.js} +29 -29
- package/dist/{chunk-7QG6LY5Q.js → chunk-RF2JGDSS.js} +3 -3
- package/dist/{chunk-CHICEUV6.js → chunk-SZKEGZIB.js} +5 -5
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-7XJQNOKX.js → config-YU7NYZYG.js} +5 -5
- package/dist/{events-K6AYMXFT.js → events-HTVBWGHO.js} +3 -3
- package/dist/{orchestrator-M4WINFF3.js → orchestrator-KGYZO6XH.js} +7 -7
- package/dist/package.json +1 -1
- package/dist/{processor-D4XQ5QMB.js → processor-QFBRN6AZ.js} +5 -5
- package/dist/{provider-UO5PAZQQ.js → provider-HTJEB3ON.js} +7 -7
- package/dist/{runtime-config-CYHDAC7W.js → runtime-config-NPSPMRDA.js} +2 -2
- package/dist/{serve-Z5FNJUDT.js → serve-PSZFEXYU.js} +11 -11
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +9 -9
- package/dist/{tools-NFFQWH6M.js → tools-FZS5JNQE.js} +6 -6
- package/dist/{vision-fallback-GZZWU7CR.js → vision-fallback-3MIZZ6NQ.js} +2 -2
- package/dist/web/assets/{index-CM0cLwa6.css → index-CGEQK8Pf.css} +1 -1
- package/dist/web/assets/index-GOp_0IH2.js +158 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-SkaCnTiV.js +0 -176
- /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-
|
|
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-
|
|
12
|
-
import "./chunk-
|
|
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-
|
|
20
|
-
import "./chunk-
|
|
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-
|
|
27
|
+
//# sourceMappingURL=auto-compaction-UOYOMWLZ.js.map
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
generateSessionName,
|
|
6
6
|
getSessionMessageCount,
|
|
7
7
|
needsNameGenerationCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DTXWOKAG.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
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-
|
|
18
|
+
import "./chunk-HGAMIPFO.js";
|
|
19
19
|
import {
|
|
20
20
|
getEventStore
|
|
21
|
-
} from "./chunk-
|
|
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-
|
|
33
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
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-
|
|
70
|
+
//# sourceMappingURL=chunk-CGZHLM3K.js.map
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
getToolRegistryForAgent,
|
|
14
14
|
loadAllAgentsDefault,
|
|
15
15
|
runTopLevelAgentLoop
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FVVLGR2G.js";
|
|
17
17
|
import {
|
|
18
18
|
getCurrentContextWindowId,
|
|
19
19
|
getEventStore
|
|
20
|
-
} from "./chunk-
|
|
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-
|
|
330
|
+
//# sourceMappingURL=chunk-CHEVYEM4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEventStore,
|
|
3
3
|
updateSessionMetadata
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
146
|
+
//# sourceMappingURL=chunk-DTXWOKAG.js.map
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
getBackendCapabilities,
|
|
28
28
|
getModelProfile,
|
|
29
29
|
streamWithSegments
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HGAMIPFO.js";
|
|
31
31
|
import {
|
|
32
32
|
getCurrentContextWindowId,
|
|
33
33
|
getEventStore
|
|
34
|
-
} from "./chunk-
|
|
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-
|
|
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
|
|
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 =
|
|
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-
|
|
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
|
|
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 =
|
|
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-
|
|
5081
|
+
//# sourceMappingURL=chunk-FVVLGR2G.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
describeImageFromDataUrl
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
804
|
+
//# sourceMappingURL=chunk-HGAMIPFO.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
getBackendCapabilities,
|
|
6
6
|
getModelProfile,
|
|
7
7
|
mapFinishReason
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HGAMIPFO.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureVisionFallbackConfigLoaded
|
|
11
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
481
|
+
//# sourceMappingURL=chunk-HHAJ3QF6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectModel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HHAJ3QF6.js";
|
|
4
4
|
import {
|
|
5
5
|
detectBackend
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HGAMIPFO.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfigPath
|
|
9
9
|
} from "./chunk-CQGTEGKL.js";
|
|
@@ -93,10 +93,10 @@ var workspaceSchema = z.object({
|
|
|
93
93
|
var visionFallbackSchema = z.object({
|
|
94
94
|
enabled: z.boolean().default(false),
|
|
95
95
|
url: z.string().default("http://localhost:11434"),
|
|
96
|
-
model: z.string().default("qwen3
|
|
96
|
+
model: z.string().default("qwen3.5:0.8b"),
|
|
97
97
|
timeout: z.number().default(120)
|
|
98
98
|
});
|
|
99
|
-
var defaultVisionFallback = { enabled: false, url: "http://localhost:11434", model: "qwen3
|
|
99
|
+
var defaultVisionFallback = { enabled: false, url: "http://localhost:11434", model: "qwen3.5:0.8b", timeout: 120 };
|
|
100
100
|
var configSchema = z.object({
|
|
101
101
|
providers: z.array(providerSchema).default([]),
|
|
102
102
|
defaultModelSelection: z.string().optional(),
|
|
@@ -240,7 +240,7 @@ async function loadGlobalConfig(mode) {
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
function getDefaultVisionFallback() {
|
|
243
|
-
return { enabled: false, url: "http://localhost:11434", model: "qwen3
|
|
243
|
+
return { enabled: false, url: "http://localhost:11434", model: "qwen3.5:0.8b", timeout: 120 };
|
|
244
244
|
}
|
|
245
245
|
async function saveGlobalConfig(mode, config) {
|
|
246
246
|
const configPath = getGlobalConfigPath(mode);
|
|
@@ -256,7 +256,7 @@ async function saveGlobalConfig(mode, config) {
|
|
|
256
256
|
visionFallback: config.visionFallback ?? {
|
|
257
257
|
enabled: false,
|
|
258
258
|
url: "http://localhost:11434",
|
|
259
|
-
model: "qwen3
|
|
259
|
+
model: "qwen3.5:0.8b",
|
|
260
260
|
timeout: 120
|
|
261
261
|
}
|
|
262
262
|
};
|
|
@@ -291,7 +291,7 @@ function setDefaultModelSelection(config, providerId, model) {
|
|
|
291
291
|
visionFallback: config.visionFallback ?? {
|
|
292
292
|
enabled: false,
|
|
293
293
|
url: "http://localhost:11434",
|
|
294
|
-
model: "qwen3
|
|
294
|
+
model: "qwen3.5:0.8b",
|
|
295
295
|
timeout: 120
|
|
296
296
|
}
|
|
297
297
|
};
|
|
@@ -318,7 +318,7 @@ function addProvider(config, provider) {
|
|
|
318
318
|
visionFallback: config.visionFallback ?? {
|
|
319
319
|
enabled: false,
|
|
320
320
|
url: "http://localhost:11434",
|
|
321
|
-
model: "qwen3
|
|
321
|
+
model: "qwen3.5:0.8b",
|
|
322
322
|
timeout: 120
|
|
323
323
|
}
|
|
324
324
|
};
|
|
@@ -348,7 +348,7 @@ function removeProvider(config, providerId) {
|
|
|
348
348
|
visionFallback: config.visionFallback ?? {
|
|
349
349
|
enabled: false,
|
|
350
350
|
url: "http://localhost:11434",
|
|
351
|
-
model: "qwen3
|
|
351
|
+
model: "qwen3.5:0.8b",
|
|
352
352
|
timeout: 120
|
|
353
353
|
}
|
|
354
354
|
};
|
|
@@ -368,7 +368,7 @@ function activateProvider(config, providerId) {
|
|
|
368
368
|
visionFallback: config.visionFallback ?? {
|
|
369
369
|
enabled: false,
|
|
370
370
|
url: "http://localhost:11434",
|
|
371
|
-
model: "qwen3
|
|
371
|
+
model: "qwen3.5:0.8b",
|
|
372
372
|
timeout: 120
|
|
373
373
|
}
|
|
374
374
|
};
|
|
@@ -385,7 +385,7 @@ function activateProvider(config, providerId) {
|
|
|
385
385
|
visionFallback: config.visionFallback ?? {
|
|
386
386
|
enabled: false,
|
|
387
387
|
url: "http://localhost:11434",
|
|
388
|
-
model: "qwen3
|
|
388
|
+
model: "qwen3.5:0.8b",
|
|
389
389
|
timeout: 120
|
|
390
390
|
}
|
|
391
391
|
};
|
|
@@ -435,4 +435,4 @@ export {
|
|
|
435
435
|
activateProvider,
|
|
436
436
|
mergeConfigs
|
|
437
437
|
};
|
|
438
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
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) {
|
|
@@ -89,12 +89,12 @@ async function runNetworkSetup(mode) {
|
|
|
89
89
|
logging: { level: "error" },
|
|
90
90
|
database: { path: "" },
|
|
91
91
|
workspace: { workdir: process.cwd() },
|
|
92
|
-
visionFallback: { enabled: false, url: "http://localhost:11434", model: "qwen3
|
|
92
|
+
visionFallback: { enabled: false, url: "http://localhost:11434", model: "qwen3.5:0.8b", timeout: 120 }
|
|
93
93
|
});
|
|
94
94
|
console.log("\u2713 Configuration saved!\n");
|
|
95
95
|
}
|
|
96
96
|
async function runConfig(mode) {
|
|
97
|
-
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
206
|
+
//# sourceMappingURL=chunk-PNIXFZZH.js.map
|