openfox 1.6.1 → 1.6.3
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/{chunk-GX4FO6UV.js → chunk-5P6FOMEG.js} +6 -6
- package/dist/{chunk-PJRARONG.js → chunk-AE5GO5GZ.js} +6 -3
- package/dist/{chunk-ICPQDI4L.js → chunk-DBHXJXY4.js} +2 -2
- package/dist/{chunk-UMRXS66I.js → chunk-RVTM7K76.js} +16 -41
- package/dist/{chunk-LJRH7ICU.js → chunk-T3CIBJDW.js} +2 -2
- package/dist/{chunk-UNCPQRFP.js → chunk-XCJPBJCE.js} +8 -4
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-NITYYKDA.js → config-XKBVKU2N.js} +4 -4
- package/dist/package.json +1 -1
- package/dist/{provider-ES2JTHXK.js → provider-ZTY6IQXX.js} +6 -6
- package/dist/{serve-CO6WHGYG.js → serve-R4MKJGMB.js} +6 -6
- package/dist/server/index.js +4 -4
- package/dist/{vision-fallback-KM6LRAXF.js → vision-fallback-4IAAGQGD.js} +2 -2
- package/dist/web/assets/{index-BgQD0NJB.js → index-D4iB5Uzz.js} +62 -62
- package/dist/web/assets/{index-Dc2TJUUt.css → index-UAOTZy0A.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ Options:
|
|
|
27
27
|
}
|
|
28
28
|
async function runNetworkSetup(mode) {
|
|
29
29
|
const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-JF2HDJ6P.js");
|
|
30
|
-
const { saveGlobalConfig } = await import("./config-
|
|
30
|
+
const { saveGlobalConfig } = await import("./config-XKBVKU2N.js");
|
|
31
31
|
const { getAuthKeyPath } = await import("./paths-ZRI56O63.js");
|
|
32
32
|
const existingAuth = await loadAuthConfig(mode);
|
|
33
33
|
if (existingAuth) {
|
|
@@ -88,7 +88,7 @@ async function runNetworkSetup(mode) {
|
|
|
88
88
|
console.log("\u2713 Configuration saved!\n");
|
|
89
89
|
}
|
|
90
90
|
async function runConfig(mode) {
|
|
91
|
-
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-
|
|
91
|
+
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-XKBVKU2N.js");
|
|
92
92
|
const { getGlobalConfigPath } = await import("./paths-ZRI56O63.js");
|
|
93
93
|
const config = await loadGlobalConfig(mode);
|
|
94
94
|
const configPath = getGlobalConfigPath(mode);
|
|
@@ -143,18 +143,18 @@ async function runCli(options) {
|
|
|
143
143
|
break;
|
|
144
144
|
}
|
|
145
145
|
case "provider": {
|
|
146
|
-
const { runProviderCommand } = await import("./provider-
|
|
146
|
+
const { runProviderCommand } = await import("./provider-ZTY6IQXX.js");
|
|
147
147
|
const [, subcommand] = positionals;
|
|
148
148
|
await runProviderCommand(mode, subcommand);
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
151
|
default: {
|
|
152
|
-
const { configFileExists } = await import("./config-
|
|
152
|
+
const { configFileExists } = await import("./config-XKBVKU2N.js");
|
|
153
153
|
const configExists = await configFileExists(mode);
|
|
154
154
|
if (!configExists) {
|
|
155
155
|
await runNetworkSetup(mode);
|
|
156
156
|
}
|
|
157
|
-
const { runServe } = await import("./serve-
|
|
157
|
+
const { runServe } = await import("./serve-R4MKJGMB.js");
|
|
158
158
|
await runServe({
|
|
159
159
|
mode,
|
|
160
160
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -167,4 +167,4 @@ async function runCli(options) {
|
|
|
167
167
|
export {
|
|
168
168
|
runCli
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-5P6FOMEG.js.map
|
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
clearModelCache,
|
|
3
3
|
createLLMClient,
|
|
4
4
|
detectBackend,
|
|
5
|
-
detectModel
|
|
6
|
-
|
|
5
|
+
detectModel,
|
|
6
|
+
setLlmStatus
|
|
7
|
+
} from "./chunk-XCJPBJCE.js";
|
|
7
8
|
import {
|
|
8
9
|
logger
|
|
9
10
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -407,6 +408,7 @@ function createProviderManager(config) {
|
|
|
407
408
|
const allModelsBefore = provider.models.map((m) => ({ id: m.id, contextWindow: m.contextWindow, source: m.source }));
|
|
408
409
|
logger.info("refreshProviderModels", { providerId, userModelsCount: userModels.length, backendModelsCount: modelsWithContext.length, userModels: userModels.map((m) => ({ id: m.id, contextWindow: m.contextWindow, source: m.source })), allModelsBefore, backendModels: modelsWithContext });
|
|
409
410
|
if (modelsWithContext.length === 0) {
|
|
411
|
+
setLlmStatus("disconnected");
|
|
410
412
|
if (userModels.length > 0) {
|
|
411
413
|
logger.debug("Backend unavailable, preserving user models", { providerId, userModels: userModels.map((m) => ({ id: m.id, contextWindow: m.contextWindow })) });
|
|
412
414
|
providers = providers.map((p) => p.id === providerId ? { ...p, models: userModels } : p);
|
|
@@ -416,6 +418,7 @@ function createProviderManager(config) {
|
|
|
416
418
|
}
|
|
417
419
|
return { success: false, error: "No models returned from backend" };
|
|
418
420
|
}
|
|
421
|
+
setLlmStatus("connected");
|
|
419
422
|
const updatedModels = modelsWithContext.map((m) => {
|
|
420
423
|
let existingModel = provider.models.find((pm) => pm.id === m.id);
|
|
421
424
|
if (!existingModel) {
|
|
@@ -462,4 +465,4 @@ export {
|
|
|
462
465
|
parseDefaultModelSelection,
|
|
463
466
|
createProviderManager
|
|
464
467
|
};
|
|
465
|
-
//# sourceMappingURL=chunk-
|
|
468
|
+
//# sourceMappingURL=chunk-AE5GO5GZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectBackend,
|
|
3
3
|
detectModel
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XCJPBJCE.js";
|
|
5
5
|
import {
|
|
6
6
|
getGlobalConfigPath
|
|
7
7
|
} from "./chunk-R4HADRYO.js";
|
|
@@ -380,4 +380,4 @@ export {
|
|
|
380
380
|
activateProvider,
|
|
381
381
|
mergeConfigs
|
|
382
382
|
};
|
|
383
|
-
//# sourceMappingURL=chunk-
|
|
383
|
+
//# sourceMappingURL=chunk-DBHXJXY4.js.map
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
createProviderManager,
|
|
56
56
|
parseDefaultModelSelection
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-AE5GO5GZ.js";
|
|
58
58
|
import {
|
|
59
59
|
SessionNotFoundError,
|
|
60
60
|
createLLMClient,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
getBackendDisplayName,
|
|
64
64
|
getLlmStatus,
|
|
65
65
|
getModelProfile
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-XCJPBJCE.js";
|
|
67
67
|
import {
|
|
68
68
|
createSession,
|
|
69
69
|
deleteSession,
|
|
@@ -2339,7 +2339,7 @@ function createWebSocketServer(httpServer, config, getLLMClient, getActiveProvid
|
|
|
2339
2339
|
sessionLLMClients.delete(sessionId);
|
|
2340
2340
|
}
|
|
2341
2341
|
const isSubscribedToSession = (client, sessionId) => {
|
|
2342
|
-
return client.activeSessionId === sessionId
|
|
2342
|
+
return client.activeSessionId === sessionId;
|
|
2343
2343
|
};
|
|
2344
2344
|
const broadcastForSession = (sessionId, msg) => {
|
|
2345
2345
|
for (const [clientWs, client] of clients) {
|
|
@@ -2499,7 +2499,7 @@ function createWebSocketServer(httpServer, config, getLLMClient, getActiveProvid
|
|
|
2499
2499
|
const sessionId = msg.sessionId;
|
|
2500
2500
|
if (!sessionId) return;
|
|
2501
2501
|
for (const [clientWs, client] of clients) {
|
|
2502
|
-
if (client.activeSessionId === sessionId
|
|
2502
|
+
if (client.activeSessionId === sessionId) {
|
|
2503
2503
|
if (clientWs.readyState === WebSocket2.OPEN) {
|
|
2504
2504
|
clientWs.send(serializeServerMessage(msg));
|
|
2505
2505
|
}
|
|
@@ -2519,7 +2519,7 @@ function createWebSocketServer(httpServer, config, getLLMClient, getActiveProvid
|
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
logger.debug("WebSocket client connected");
|
|
2522
|
-
clients.set(ws, { ws, activeSessionId: null,
|
|
2522
|
+
clients.set(ws, { ws, activeSessionId: null, globalSubscription: null });
|
|
2523
2523
|
const eventStore = getEventStore();
|
|
2524
2524
|
const { iterator: globalIterator, unsubscribe: globalUnsubscribe } = eventStore.subscribeAll();
|
|
2525
2525
|
clients.get(ws).globalSubscription = globalUnsubscribe;
|
|
@@ -2563,16 +2563,8 @@ function createWebSocketServer(httpServer, config, getLLMClient, getActiveProvid
|
|
|
2563
2563
|
ws.on("close", () => {
|
|
2564
2564
|
logger.debug("WebSocket client disconnected");
|
|
2565
2565
|
const client = clients.get(ws);
|
|
2566
|
-
if (client) {
|
|
2567
|
-
|
|
2568
|
-
unsubscribe();
|
|
2569
|
-
}
|
|
2570
|
-
for (const unsubscribe of client.eventStoreSubscriptions.values()) {
|
|
2571
|
-
unsubscribe();
|
|
2572
|
-
}
|
|
2573
|
-
if (client.globalSubscription) {
|
|
2574
|
-
client.globalSubscription();
|
|
2575
|
-
}
|
|
2566
|
+
if (client?.globalSubscription) {
|
|
2567
|
+
client.globalSubscription();
|
|
2576
2568
|
}
|
|
2577
2569
|
unsubscribeAllFromTerminal(ws);
|
|
2578
2570
|
clients.delete(ws);
|
|
@@ -2832,23 +2824,6 @@ ${content}` : workflowInfo;
|
|
|
2832
2824
|
const sessionId = client.activeSessionId;
|
|
2833
2825
|
const eventStore = getEventStore();
|
|
2834
2826
|
send({ type: "ack", payload: {}, id: message.id });
|
|
2835
|
-
if (!client.eventStoreSubscriptions.has(sessionId)) {
|
|
2836
|
-
const sid = sessionId;
|
|
2837
|
-
const { iterator, unsubscribe } = eventStore.subscribe(sid);
|
|
2838
|
-
client.eventStoreSubscriptions.set(sessionId, unsubscribe);
|
|
2839
|
-
(async () => {
|
|
2840
|
-
try {
|
|
2841
|
-
for await (const storedEvent of iterator) {
|
|
2842
|
-
const serverMsg = storedEventToServerMessage(storedEvent);
|
|
2843
|
-
if (serverMsg && ws.readyState === WebSocket2.OPEN) {
|
|
2844
|
-
ws.send(serializeServerMessage({ ...serverMsg, seq: storedEvent.seq, sessionId: sid }));
|
|
2845
|
-
}
|
|
2846
|
-
}
|
|
2847
|
-
} catch (error) {
|
|
2848
|
-
logger.debug("EventStore subscription ended", { sessionId: sid, error });
|
|
2849
|
-
}
|
|
2850
|
-
})();
|
|
2851
|
-
}
|
|
2852
2827
|
sessionManager.setRunning(sessionId, true);
|
|
2853
2828
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: true } });
|
|
2854
2829
|
sendForSession(sessionId, createSessionRunningMessage(true));
|
|
@@ -5568,7 +5543,7 @@ function createTerminalRoutes() {
|
|
|
5568
5543
|
}
|
|
5569
5544
|
|
|
5570
5545
|
// src/constants.ts
|
|
5571
|
-
var VERSION = "1.6.
|
|
5546
|
+
var VERSION = "1.6.3";
|
|
5572
5547
|
|
|
5573
5548
|
// src/server/index.ts
|
|
5574
5549
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -5809,7 +5784,7 @@ async function createServerHandle(config) {
|
|
|
5809
5784
|
return res.status(400).json({ error: "providerId is required" });
|
|
5810
5785
|
}
|
|
5811
5786
|
sessionManager.setSessionProvider(sessionId, providerId, model ?? "auto");
|
|
5812
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
5787
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-XKBVKU2N.js");
|
|
5813
5788
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5814
5789
|
const updatedConfig = setDefaultModelSelection(globalConfig, providerId, model ?? "auto");
|
|
5815
5790
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -5994,7 +5969,7 @@ async function createServerHandle(config) {
|
|
|
5994
5969
|
let visionFallback;
|
|
5995
5970
|
let globalWorkdir;
|
|
5996
5971
|
try {
|
|
5997
|
-
const { loadGlobalConfig, getVisionFallback } = await import("./config-
|
|
5972
|
+
const { loadGlobalConfig, getVisionFallback } = await import("./config-XKBVKU2N.js");
|
|
5998
5973
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5999
5974
|
const fallback = getVisionFallback(globalConfig);
|
|
6000
5975
|
if (fallback) {
|
|
@@ -6073,7 +6048,7 @@ async function createServerHandle(config) {
|
|
|
6073
6048
|
return res.status(400).json({ error: "name, url, and backend are required" });
|
|
6074
6049
|
}
|
|
6075
6050
|
try {
|
|
6076
|
-
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-
|
|
6051
|
+
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-XKBVKU2N.js");
|
|
6077
6052
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6078
6053
|
const providerBackend = backend;
|
|
6079
6054
|
const configWithProvider = addProvider(globalConfig, {
|
|
@@ -6106,7 +6081,7 @@ async function createServerHandle(config) {
|
|
|
6106
6081
|
app.post("/api/init/config", async (req, res) => {
|
|
6107
6082
|
const { workdir, visionFallback } = req.body;
|
|
6108
6083
|
try {
|
|
6109
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
6084
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-XKBVKU2N.js");
|
|
6110
6085
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6111
6086
|
const updatedConfig = {
|
|
6112
6087
|
...globalConfig,
|
|
@@ -6134,7 +6109,7 @@ async function createServerHandle(config) {
|
|
|
6134
6109
|
});
|
|
6135
6110
|
app.delete("/api/providers/:id", async (req, res) => {
|
|
6136
6111
|
const { id } = req.params;
|
|
6137
|
-
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-
|
|
6112
|
+
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-XKBVKU2N.js");
|
|
6138
6113
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6139
6114
|
const updatedConfig = removeProvider(globalConfig, id);
|
|
6140
6115
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -6154,7 +6129,7 @@ async function createServerHandle(config) {
|
|
|
6154
6129
|
return res.status(400).json({ error: result.error });
|
|
6155
6130
|
}
|
|
6156
6131
|
const llmClient = getLLMClient();
|
|
6157
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
6132
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-XKBVKU2N.js");
|
|
6158
6133
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6159
6134
|
const updatedConfig = setDefaultModelSelection(globalConfig, id, llmClient.getModel());
|
|
6160
6135
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -6175,7 +6150,7 @@ async function createServerHandle(config) {
|
|
|
6175
6150
|
if (!result.success) {
|
|
6176
6151
|
return res.status(400).json({ error: result.error });
|
|
6177
6152
|
}
|
|
6178
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
6153
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-XKBVKU2N.js");
|
|
6179
6154
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6180
6155
|
const updatedProviders = providerManager.getProviders();
|
|
6181
6156
|
const updatedConfig = {
|
|
@@ -6457,4 +6432,4 @@ export {
|
|
|
6457
6432
|
createServerHandle,
|
|
6458
6433
|
createServer
|
|
6459
6434
|
};
|
|
6460
|
-
//# sourceMappingURL=chunk-
|
|
6435
|
+
//# sourceMappingURL=chunk-RVTM7K76.js.map
|
|
@@ -29,7 +29,7 @@ function isVisionFallbackEnabled() {
|
|
|
29
29
|
async function ensureVisionFallbackConfigLoaded() {
|
|
30
30
|
if (configLoaded) return;
|
|
31
31
|
try {
|
|
32
|
-
const { loadGlobalConfig, getVisionFallback } = await import("./config-
|
|
32
|
+
const { loadGlobalConfig, getVisionFallback } = await import("./config-XKBVKU2N.js");
|
|
33
33
|
const { getRuntimeConfig } = await import("./runtime-config-2XJJIMSC.js");
|
|
34
34
|
const runtimeConfig = getRuntimeConfig();
|
|
35
35
|
const mode = runtimeConfig.mode ?? "production";
|
|
@@ -134,4 +134,4 @@ export {
|
|
|
134
134
|
describeImage,
|
|
135
135
|
describeImageFromDataUrl
|
|
136
136
|
};
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-T3CIBJDW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
describeImageFromDataUrl,
|
|
3
3
|
ensureVisionFallbackConfigLoaded
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-T3CIBJDW.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -258,6 +258,9 @@ async function detectModel(llmBaseUrl, retries = 3, silent = false) {
|
|
|
258
258
|
function getLlmStatus() {
|
|
259
259
|
return llmStatus;
|
|
260
260
|
}
|
|
261
|
+
function setLlmStatus(status) {
|
|
262
|
+
llmStatus = status;
|
|
263
|
+
}
|
|
261
264
|
function clearModelCache(url) {
|
|
262
265
|
if (url) {
|
|
263
266
|
modelCache.delete(getCacheKey(url));
|
|
@@ -824,7 +827,7 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
824
827
|
try {
|
|
825
828
|
const shouldDisableThinking = disableThinking || request.disableThinking === true;
|
|
826
829
|
await ensureVisionFallbackConfigLoaded();
|
|
827
|
-
const { isVisionFallbackEnabled } = await import("./vision-fallback-
|
|
830
|
+
const { isVisionFallbackEnabled } = await import("./vision-fallback-4IAAGQGD.js");
|
|
828
831
|
const paramsOptions = {
|
|
829
832
|
model,
|
|
830
833
|
request,
|
|
@@ -902,7 +905,7 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
902
905
|
});
|
|
903
906
|
try {
|
|
904
907
|
await ensureVisionFallbackConfigLoaded();
|
|
905
|
-
const { isVisionFallbackEnabled } = await import("./vision-fallback-
|
|
908
|
+
const { isVisionFallbackEnabled } = await import("./vision-fallback-4IAAGQGD.js");
|
|
906
909
|
const shouldDisableThinking = disableThinking || request.disableThinking === true;
|
|
907
910
|
const createParams = await buildStreamingCreateParams({
|
|
908
911
|
model,
|
|
@@ -1115,6 +1118,7 @@ export {
|
|
|
1115
1118
|
createLLMClient,
|
|
1116
1119
|
detectModel,
|
|
1117
1120
|
getLlmStatus,
|
|
1121
|
+
setLlmStatus,
|
|
1118
1122
|
clearModelCache
|
|
1119
1123
|
};
|
|
1120
|
-
//# sourceMappingURL=chunk-
|
|
1124
|
+
//# sourceMappingURL=chunk-XCJPBJCE.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
saveGlobalConfig,
|
|
14
14
|
setDefaultModelSelection,
|
|
15
15
|
trySmartDefaults
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-DBHXJXY4.js";
|
|
17
|
+
import "./chunk-XCJPBJCE.js";
|
|
18
18
|
import "./chunk-XFXOSPYH.js";
|
|
19
19
|
import "./chunk-R4HADRYO.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-T3CIBJDW.js";
|
|
21
21
|
import "./chunk-PNBH3RAX.js";
|
|
22
22
|
export {
|
|
23
23
|
activateProvider,
|
|
@@ -35,4 +35,4 @@ export {
|
|
|
35
35
|
setDefaultModelSelection,
|
|
36
36
|
trySmartDefaults
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=config-
|
|
38
|
+
//# sourceMappingURL=config-XKBVKU2N.js.map
|
package/dist/package.json
CHANGED
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
loadGlobalConfig,
|
|
6
6
|
removeProvider,
|
|
7
7
|
saveGlobalConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DBHXJXY4.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAvailableModelsFromBackend
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AE5GO5GZ.js";
|
|
12
12
|
import {
|
|
13
13
|
detectBackend,
|
|
14
14
|
detectModel
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XCJPBJCE.js";
|
|
16
16
|
import "./chunk-XFXOSPYH.js";
|
|
17
17
|
import "./chunk-R4HADRYO.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-T3CIBJDW.js";
|
|
19
19
|
import "./chunk-PNBH3RAX.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/provider.ts
|
|
@@ -248,7 +248,7 @@ async function runProviderAdd(mode) {
|
|
|
248
248
|
isActive: makeActive
|
|
249
249
|
});
|
|
250
250
|
if (makeActive) {
|
|
251
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
251
|
+
const { setDefaultModelSelection } = await import("./config-XKBVKU2N.js");
|
|
252
252
|
newConfig = setDefaultModelSelection(newConfig, newConfig.providers[newConfig.providers.length - 1].id, selectedModel);
|
|
253
253
|
}
|
|
254
254
|
await saveGlobalConfig(mode, newConfig);
|
|
@@ -372,4 +372,4 @@ export {
|
|
|
372
372
|
runProviderRemove,
|
|
373
373
|
runProviderUse
|
|
374
374
|
};
|
|
375
|
-
//# sourceMappingURL=provider-
|
|
375
|
+
//# sourceMappingURL=provider-ZTY6IQXX.js.map
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
getActiveProvider,
|
|
3
3
|
getDefaultModel,
|
|
4
4
|
loadGlobalConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DBHXJXY4.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RVTM7K76.js";
|
|
10
10
|
import "./chunk-QDEKU5RL.js";
|
|
11
11
|
import "./chunk-S73ATBSR.js";
|
|
12
12
|
import "./chunk-GBBTJ6ND.js";
|
|
13
13
|
import "./chunk-NBU6KIOD.js";
|
|
14
14
|
import "./chunk-574HZVLE.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-AE5GO5GZ.js";
|
|
16
|
+
import "./chunk-XCJPBJCE.js";
|
|
17
17
|
import "./chunk-XFXOSPYH.js";
|
|
18
18
|
import "./chunk-CIXMZ73F.js";
|
|
19
19
|
import "./chunk-WQ4W5H6A.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
34
|
} from "./chunk-TVQOONDR.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-T3CIBJDW.js";
|
|
36
36
|
import {
|
|
37
37
|
logger
|
|
38
38
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -188,4 +188,4 @@ async function runServe(options) {
|
|
|
188
188
|
export {
|
|
189
189
|
runServe
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=serve-
|
|
191
|
+
//# sourceMappingURL=serve-R4MKJGMB.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RVTM7K76.js";
|
|
5
5
|
import "../chunk-QDEKU5RL.js";
|
|
6
6
|
import "../chunk-S73ATBSR.js";
|
|
7
7
|
import "../chunk-GBBTJ6ND.js";
|
|
8
8
|
import "../chunk-NBU6KIOD.js";
|
|
9
9
|
import "../chunk-574HZVLE.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-AE5GO5GZ.js";
|
|
11
|
+
import "../chunk-XCJPBJCE.js";
|
|
12
12
|
import "../chunk-XFXOSPYH.js";
|
|
13
13
|
import "../chunk-CIXMZ73F.js";
|
|
14
14
|
import "../chunk-WQ4W5H6A.js";
|
|
@@ -21,7 +21,7 @@ import "../chunk-QY7BMXWT.js";
|
|
|
21
21
|
import "../chunk-XQQ2BRJA.js";
|
|
22
22
|
import "../chunk-R4HADRYO.js";
|
|
23
23
|
import "../chunk-TVQOONDR.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-T3CIBJDW.js";
|
|
25
25
|
import "../chunk-PNBH3RAX.js";
|
|
26
26
|
export {
|
|
27
27
|
createServer,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getVisionFallbackConfig,
|
|
8
8
|
isVisionFallbackEnabled,
|
|
9
9
|
setVisionFallbackConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T3CIBJDW.js";
|
|
11
11
|
import "./chunk-PNBH3RAX.js";
|
|
12
12
|
export {
|
|
13
13
|
clearDescriptionCache,
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
isVisionFallbackEnabled,
|
|
20
20
|
setVisionFallbackConfig
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=vision-fallback-
|
|
22
|
+
//# sourceMappingURL=vision-fallback-4IAAGQGD.js.map
|