openfox 2.0.0-beta.14 → 2.0.0-beta.16
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/{ask-BRLFZKEW.js → ask-5SSOA6SZ.js} +1 -2
- package/dist/{auth-OGGBJFJQ.js → auth-56SIRACI.js} +1 -2
- package/dist/{branch.api-TCWNJXYA.js → branch.api-PWFW26KC.js} +1 -2
- package/dist/{chat-handler-ZFQIJIJT.js → chat-handler-7QLHIQOM.js} +3 -4
- package/dist/chunk-4F3C6X4M.js +381 -0
- package/dist/{chunk-BZJAO4VY.js → chunk-6CVDQJDV.js} +2 -2
- package/dist/{chunk-EYE2JMLA.js → chunk-BE7YHSTL.js} +51 -51
- package/dist/{chunk-RUWSVV7U.js → chunk-D2QILH47.js} +3 -3
- package/dist/{chunk-YWYYRA2P.js → chunk-LQWVMRMW.js} +11 -11
- package/dist/{chunk-BURBTNDG.js → chunk-N53OLRIU.js} +2 -2
- package/dist/{chunk-IONKVOSF.js → chunk-W52UQCER.js} +6 -6
- package/dist/cli/dev.js +1 -2
- package/dist/cli/index.js +1 -2
- package/dist/{compactor-WL33VHUF.js → compactor-TDNRM3A7.js} +1 -2
- package/dist/{config-MFKBDOOT.js → config-B6HYTLT4.js} +3 -4
- package/dist/{events-6UJR2NH4.js → events-R7FRQEBE.js} +1 -2
- package/dist/{folding-GMO644G3.js → folding-YOCGTZYH.js} +1 -2
- package/dist/{inspect-proxy-JZ54RBUN.js → inspect-proxy-42ZXL2R5.js} +1 -2
- package/dist/{manager-NTL3MLGN.js → manager-W7N3XQ4Q.js} +1 -2
- package/dist/{orchestrator-HHF4UC3K.js → orchestrator-2AK4AYUD.js} +3 -4
- package/dist/package.json +2 -1
- package/dist/{paths-D7BBTOO5.js → paths-X46PPOI2.js} +1 -2
- package/dist/{permissions-YGAJ47F5.js → permissions-Z2IIV2V7.js} +1 -3
- package/dist/{processor-EJJTSLRL.js → processor-IU56GBIW.js} +2 -3
- package/dist/{project-creator-GMS5YKEF.js → project-creator-6DU7E75S.js} +1 -2
- package/dist/{projects-QHGMUKWH.js → projects-2HYIZC4Y.js} +1 -2
- package/dist/{protocol-QQNATDFM.js → protocol-CN24IKQN.js} +1 -2
- package/dist/{provider-APFZV234.js → provider-2JAXE5EA.js} +5 -6
- package/dist/{provider-manager-2NFFVCX5.js → provider-manager-JMLJSPNX.js} +3 -4
- package/dist/{pwa-WYVG3NLS.js → pwa-76XP2DY2.js} +1 -2
- package/dist/{serve-GTH76EDG.js → serve-TFOO6AZH.js} +7 -8
- package/dist/server/index.js +5 -6
- package/dist/{service-W43DAQ5K.js → service-GB7AIOG5.js} +1 -3
- package/dist/{settings-OAISIQVV.js → settings-6XX56F3F.js} +1 -2
- package/dist/shared/index.js +0 -1
- package/dist/{store-JZW6VPEK.js → store-OQ45KONN.js} +1 -2
- package/dist/{tools-2X2FC6W7.js → tools-VJMWGBUO.js} +2 -3
- package/package.json +2 -1
- package/dist/chunk-7D4SUZUM.js +0 -38
- package/dist/chunk-QD6U3BDD.js +0 -25277
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
injectWorkflowKickoffIfNeeded,
|
|
4
4
|
runAgentTurn,
|
|
5
5
|
runChatTurn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D2QILH47.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-
|
|
62
|
+
} from "./chunk-W52UQCER.js";
|
|
63
63
|
import {
|
|
64
64
|
getPathSeparator,
|
|
65
65
|
getPlatformShell,
|
|
@@ -136,13 +136,13 @@ import {
|
|
|
136
136
|
import {
|
|
137
137
|
createProviderManager,
|
|
138
138
|
parseDefaultModelSelection
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-6CVDQJDV.js";
|
|
140
140
|
import {
|
|
141
141
|
SessionNotFoundError,
|
|
142
142
|
createLLMClient,
|
|
143
143
|
detectModel,
|
|
144
144
|
getLlmStatus
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-4F3C6X4M.js";
|
|
146
146
|
import {
|
|
147
147
|
buildModelsUrl,
|
|
148
148
|
detectBackend,
|
|
@@ -5835,7 +5835,7 @@ import { Router as Router6 } from "express";
|
|
|
5835
5835
|
import { spawn as spawn5 } from "child_process";
|
|
5836
5836
|
|
|
5837
5837
|
// src/constants.ts
|
|
5838
|
-
var VERSION = "2.0.0-beta.
|
|
5838
|
+
var VERSION = "2.0.0-beta.16";
|
|
5839
5839
|
|
|
5840
5840
|
// src/server/routes/auto-update.ts
|
|
5841
5841
|
var updateInProgress = false;
|
|
@@ -6042,7 +6042,7 @@ async function createServerHandle(config4) {
|
|
|
6042
6042
|
res.json({ tools });
|
|
6043
6043
|
});
|
|
6044
6044
|
app.get("/api/projects", async (_req, res) => {
|
|
6045
|
-
const { listProjects } = await import("./projects-
|
|
6045
|
+
const { listProjects } = await import("./projects-2HYIZC4Y.js");
|
|
6046
6046
|
const projects = listProjects();
|
|
6047
6047
|
res.json({ projects });
|
|
6048
6048
|
});
|
|
@@ -6051,7 +6051,7 @@ async function createServerHandle(config4) {
|
|
|
6051
6051
|
if (!name || !workdir) {
|
|
6052
6052
|
return res.status(400).json({ error: "name and workdir are required" });
|
|
6053
6053
|
}
|
|
6054
|
-
const { createDirectoryWithGit } = await import("./project-creator-
|
|
6054
|
+
const { createDirectoryWithGit } = await import("./project-creator-6DU7E75S.js");
|
|
6055
6055
|
try {
|
|
6056
6056
|
const project = await createDirectoryWithGit(name, workdir);
|
|
6057
6057
|
res.status(201).json({ project });
|
|
@@ -6069,7 +6069,7 @@ async function createServerHandle(config4) {
|
|
|
6069
6069
|
if (!targetPath) {
|
|
6070
6070
|
return res.status(400).json({ error: "path is required" });
|
|
6071
6071
|
}
|
|
6072
|
-
const { checkPermissions } = await import("./permissions-
|
|
6072
|
+
const { checkPermissions } = await import("./permissions-Z2IIV2V7.js");
|
|
6073
6073
|
const result = await checkPermissions(targetPath);
|
|
6074
6074
|
if (result.success) {
|
|
6075
6075
|
res.json(result);
|
|
@@ -6086,7 +6086,7 @@ async function createServerHandle(config4) {
|
|
|
6086
6086
|
if (!["group", "ownership", "join_group", "join_group_and_group"].includes(action)) {
|
|
6087
6087
|
return res.status(400).json({ error: 'action must be "group", "ownership", "join_group", or "join_group_and_group"' });
|
|
6088
6088
|
}
|
|
6089
|
-
const { fixPermissions } = await import("./permissions-
|
|
6089
|
+
const { fixPermissions } = await import("./permissions-Z2IIV2V7.js");
|
|
6090
6090
|
const result = await fixPermissions(targetPath, action);
|
|
6091
6091
|
if (result.success) {
|
|
6092
6092
|
res.json(result);
|
|
@@ -6096,7 +6096,7 @@ async function createServerHandle(config4) {
|
|
|
6096
6096
|
}
|
|
6097
6097
|
});
|
|
6098
6098
|
app.get("/api/projects/:id", async (req, res) => {
|
|
6099
|
-
const { getProject: getProject2 } = await import("./projects-
|
|
6099
|
+
const { getProject: getProject2 } = await import("./projects-2HYIZC4Y.js");
|
|
6100
6100
|
const project = getProject2(req.params.id);
|
|
6101
6101
|
if (!project) {
|
|
6102
6102
|
return res.status(404).json({ error: "Project not found" });
|
|
@@ -6104,7 +6104,7 @@ async function createServerHandle(config4) {
|
|
|
6104
6104
|
res.json({ project });
|
|
6105
6105
|
});
|
|
6106
6106
|
app.put("/api/projects/:id", async (req, res) => {
|
|
6107
|
-
const { updateProject } = await import("./projects-
|
|
6107
|
+
const { updateProject } = await import("./projects-2HYIZC4Y.js");
|
|
6108
6108
|
const { name, customInstructions, dangerLevel } = req.body;
|
|
6109
6109
|
const updates = {};
|
|
6110
6110
|
if (name !== void 0) updates.name = name;
|
|
@@ -6117,7 +6117,7 @@ async function createServerHandle(config4) {
|
|
|
6117
6117
|
res.json({ project: updated });
|
|
6118
6118
|
});
|
|
6119
6119
|
app.delete("/api/projects/:id", async (req, res) => {
|
|
6120
|
-
const { getProject: getProject2, deleteProject } = await import("./projects-
|
|
6120
|
+
const { getProject: getProject2, deleteProject } = await import("./projects-2HYIZC4Y.js");
|
|
6121
6121
|
const project = getProject2(req.params.id);
|
|
6122
6122
|
if (!project) {
|
|
6123
6123
|
return res.status(404).json({ error: "Project not found" });
|
|
@@ -6126,7 +6126,7 @@ async function createServerHandle(config4) {
|
|
|
6126
6126
|
res.json({ success: true });
|
|
6127
6127
|
});
|
|
6128
6128
|
app.put("/api/projects/:id/star", async (req, res) => {
|
|
6129
|
-
const { toggleStar } = await import("./projects-
|
|
6129
|
+
const { toggleStar } = await import("./projects-2HYIZC4Y.js");
|
|
6130
6130
|
const { isStarred } = req.body;
|
|
6131
6131
|
if (typeof isStarred !== "boolean") {
|
|
6132
6132
|
return res.status(400).json({ error: "isStarred is required and must be a boolean" });
|
|
@@ -6138,7 +6138,7 @@ async function createServerHandle(config4) {
|
|
|
6138
6138
|
res.json({ project });
|
|
6139
6139
|
});
|
|
6140
6140
|
app.get("/api/sessions", async (req, res) => {
|
|
6141
|
-
const { getRecentUserPromptsForSession } = await import("./events-
|
|
6141
|
+
const { getRecentUserPromptsForSession } = await import("./events-R7FRQEBE.js");
|
|
6142
6142
|
const projectId = req.query["projectId"];
|
|
6143
6143
|
const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
|
|
6144
6144
|
const offset = parseInt(req.query["offset"]) || 0;
|
|
@@ -6171,8 +6171,8 @@ async function createServerHandle(config4) {
|
|
|
6171
6171
|
res.status(201).json({ session });
|
|
6172
6172
|
});
|
|
6173
6173
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
6174
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
6175
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
6174
|
+
const { getEventStore: getEventStore2 } = await import("./events-R7FRQEBE.js");
|
|
6175
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-YOCGTZYH.js");
|
|
6176
6176
|
const session = sessionManager.getSession(req.params.id);
|
|
6177
6177
|
if (!session) {
|
|
6178
6178
|
return res.status(404).json({ error: "Session not found" });
|
|
@@ -6202,8 +6202,8 @@ async function createServerHandle(config4) {
|
|
|
6202
6202
|
res.json({ success: true });
|
|
6203
6203
|
});
|
|
6204
6204
|
app.post("/api/sessions/:id/provider", async (req, res) => {
|
|
6205
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
6206
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
6205
|
+
const { getEventStore: getEventStore2 } = await import("./events-R7FRQEBE.js");
|
|
6206
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-YOCGTZYH.js");
|
|
6207
6207
|
const sessionId = req.params.id;
|
|
6208
6208
|
const session = sessionManager.getSession(sessionId);
|
|
6209
6209
|
if (!session) {
|
|
@@ -6214,7 +6214,7 @@ async function createServerHandle(config4) {
|
|
|
6214
6214
|
return res.status(400).json({ error: "providerId is required" });
|
|
6215
6215
|
}
|
|
6216
6216
|
sessionManager.setSessionProvider(sessionId, providerId, model ?? "auto");
|
|
6217
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
6217
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-B6HYTLT4.js");
|
|
6218
6218
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6219
6219
|
const updatedConfig = setDefaultModelSelection(globalConfig, providerId, model ?? "auto");
|
|
6220
6220
|
await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
|
|
@@ -6245,8 +6245,8 @@ async function createServerHandle(config4) {
|
|
|
6245
6245
|
res.json({ success: true });
|
|
6246
6246
|
});
|
|
6247
6247
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
6248
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
6249
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
6248
|
+
const { getEventStore: getEventStore2 } = await import("./events-R7FRQEBE.js");
|
|
6249
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-YOCGTZYH.js");
|
|
6250
6250
|
const sessionId = req.params.id;
|
|
6251
6251
|
const session = sessionManager.getSession(sessionId);
|
|
6252
6252
|
if (!session) {
|
|
@@ -6302,14 +6302,14 @@ async function createServerHandle(config4) {
|
|
|
6302
6302
|
if (!callId || approved === void 0) {
|
|
6303
6303
|
return res.status(400).json({ error: "callId and approved are required" });
|
|
6304
6304
|
}
|
|
6305
|
-
const { providePathConfirmation } = await import("./tools-
|
|
6305
|
+
const { providePathConfirmation } = await import("./tools-VJMWGBUO.js");
|
|
6306
6306
|
const result = providePathConfirmation(callId, approved, alwaysAllow);
|
|
6307
6307
|
if (!result.found) {
|
|
6308
6308
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
6309
6309
|
}
|
|
6310
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
6311
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-
|
|
6312
|
-
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-
|
|
6310
|
+
const { getEventStore: getEventStore2 } = await import("./events-R7FRQEBE.js");
|
|
6311
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-YOCGTZYH.js");
|
|
6312
|
+
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-CN24IKQN.js");
|
|
6313
6313
|
const eventStore = getEventStore2();
|
|
6314
6314
|
const events = eventStore.getEvents(sessionId);
|
|
6315
6315
|
const messages = buildMessagesFromStoredEvents2(events);
|
|
@@ -6326,7 +6326,7 @@ async function createServerHandle(config4) {
|
|
|
6326
6326
|
if (!callId || !answer) {
|
|
6327
6327
|
return res.status(400).json({ error: "callId and answer are required" });
|
|
6328
6328
|
}
|
|
6329
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
6329
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-VJMWGBUO.js");
|
|
6330
6330
|
const found = provideAnswer2(callId, answer);
|
|
6331
6331
|
if (!found) {
|
|
6332
6332
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -6362,14 +6362,14 @@ async function createServerHandle(config4) {
|
|
|
6362
6362
|
if (!session) {
|
|
6363
6363
|
return res.status(404).json({ error: "Session not found" });
|
|
6364
6364
|
}
|
|
6365
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
6366
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
6365
|
+
const { stopSessionExecution } = await import("./chat-handler-7QLHIQOM.js");
|
|
6366
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-VJMWGBUO.js");
|
|
6367
6367
|
stopSessionExecution(sessionId, sessionManager);
|
|
6368
6368
|
abortSession(sessionId);
|
|
6369
6369
|
cancelQuestionsForSession(sessionId, "Session stopped by user");
|
|
6370
6370
|
cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
|
|
6371
6371
|
sessionManager.clearMessageQueue(sessionId);
|
|
6372
|
-
const eventStore = (await import("./events-
|
|
6372
|
+
const eventStore = (await import("./events-R7FRQEBE.js")).getEventStore();
|
|
6373
6373
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
|
|
6374
6374
|
res.json({ success: true });
|
|
6375
6375
|
});
|
|
@@ -6383,7 +6383,7 @@ async function createServerHandle(config4) {
|
|
|
6383
6383
|
if (typeof messageIndex !== "number" || messageIndex < 0) {
|
|
6384
6384
|
return res.status(400).json({ error: "messageIndex must be a non-negative number" });
|
|
6385
6385
|
}
|
|
6386
|
-
const { truncateSessionMessages } = await import("./events-
|
|
6386
|
+
const { truncateSessionMessages } = await import("./events-R7FRQEBE.js");
|
|
6387
6387
|
truncateSessionMessages(sessionId, messageIndex);
|
|
6388
6388
|
res.json({ success: true });
|
|
6389
6389
|
});
|
|
@@ -6401,7 +6401,7 @@ async function createServerHandle(config4) {
|
|
|
6401
6401
|
if (!msg) {
|
|
6402
6402
|
return res.status(400).json({ error: "Message not found at this index" });
|
|
6403
6403
|
}
|
|
6404
|
-
const { truncateSessionMessages } = await import("./events-
|
|
6404
|
+
const { truncateSessionMessages } = await import("./events-R7FRQEBE.js");
|
|
6405
6405
|
truncateSessionMessages(sessionId, messageIndex - 1);
|
|
6406
6406
|
sessionManager.queueMessage(sessionId, "asap", msg.content, msg.attachments, msg.messageKind);
|
|
6407
6407
|
res.json({ success: true });
|
|
@@ -6433,7 +6433,7 @@ async function createServerHandle(config4) {
|
|
|
6433
6433
|
res.json({ accepted: true });
|
|
6434
6434
|
});
|
|
6435
6435
|
app.get("/api/settings", async (req, res) => {
|
|
6436
|
-
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-
|
|
6436
|
+
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-6XX56F3F.js");
|
|
6437
6437
|
const keysParam = req.query["keys"];
|
|
6438
6438
|
if (!keysParam) {
|
|
6439
6439
|
return res.status(400).json({ error: "keys query parameter is required" });
|
|
@@ -6446,19 +6446,19 @@ async function createServerHandle(config4) {
|
|
|
6446
6446
|
res.json(result);
|
|
6447
6447
|
});
|
|
6448
6448
|
app.get("/api/settings/:key", async (req, res) => {
|
|
6449
|
-
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-
|
|
6449
|
+
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-6XX56F3F.js");
|
|
6450
6450
|
const key = req.params.key;
|
|
6451
6451
|
const value = getSetting(key) ?? SETTINGS_DEFAULTS[key] ?? null;
|
|
6452
6452
|
res.json({ key, value });
|
|
6453
6453
|
});
|
|
6454
6454
|
app.get("/api/settings/:key", async (req, res) => {
|
|
6455
|
-
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-
|
|
6455
|
+
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-6XX56F3F.js");
|
|
6456
6456
|
const key = req.params.key;
|
|
6457
6457
|
const value = getSetting(key) ?? SETTINGS_DEFAULTS[key] ?? null;
|
|
6458
6458
|
res.json({ key, value });
|
|
6459
6459
|
});
|
|
6460
6460
|
app.put("/api/settings/:key", async (req, res) => {
|
|
6461
|
-
const { setSetting } = await import("./settings-
|
|
6461
|
+
const { setSetting } = await import("./settings-6XX56F3F.js");
|
|
6462
6462
|
const key = req.params.key;
|
|
6463
6463
|
const { value } = req.body;
|
|
6464
6464
|
if (value === void 0) {
|
|
@@ -6473,7 +6473,7 @@ async function createServerHandle(config4) {
|
|
|
6473
6473
|
let visionFallback;
|
|
6474
6474
|
let globalWorkdir;
|
|
6475
6475
|
try {
|
|
6476
|
-
const { loadGlobalConfig, getVisionFallback } = await import("./config-
|
|
6476
|
+
const { loadGlobalConfig, getVisionFallback } = await import("./config-B6HYTLT4.js");
|
|
6477
6477
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6478
6478
|
const fallback = getVisionFallback(globalConfig);
|
|
6479
6479
|
if (fallback) {
|
|
@@ -6550,7 +6550,7 @@ async function createServerHandle(config4) {
|
|
|
6550
6550
|
const url = req.query["url"];
|
|
6551
6551
|
if (!url) return res.status(400).json({ error: "url is required" });
|
|
6552
6552
|
try {
|
|
6553
|
-
const { fetchModelsWithContext } = await import("./provider-manager-
|
|
6553
|
+
const { fetchModelsWithContext } = await import("./provider-manager-JMLJSPNX.js");
|
|
6554
6554
|
const models = await fetchModelsWithContext(url);
|
|
6555
6555
|
if (models.length === 0) {
|
|
6556
6556
|
return res.status(404).json({ error: `No models found at ${buildModelsUrl(url)}`, url });
|
|
@@ -6618,7 +6618,7 @@ async function createServerHandle(config4) {
|
|
|
6618
6618
|
return res.status(400).json({ error: "name, url, and backend are required" });
|
|
6619
6619
|
}
|
|
6620
6620
|
try {
|
|
6621
|
-
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-
|
|
6621
|
+
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-B6HYTLT4.js");
|
|
6622
6622
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6623
6623
|
const providerBackend = backend;
|
|
6624
6624
|
const configWithProvider = addProvider(globalConfig, {
|
|
@@ -6663,7 +6663,7 @@ async function createServerHandle(config4) {
|
|
|
6663
6663
|
app.post("/api/init/config", async (req, res) => {
|
|
6664
6664
|
const { workdir, visionFallback } = req.body;
|
|
6665
6665
|
try {
|
|
6666
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
6666
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-B6HYTLT4.js");
|
|
6667
6667
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6668
6668
|
const updatedConfig = {
|
|
6669
6669
|
...globalConfig,
|
|
@@ -6691,7 +6691,7 @@ async function createServerHandle(config4) {
|
|
|
6691
6691
|
});
|
|
6692
6692
|
app.delete("/api/providers/:id", async (req, res) => {
|
|
6693
6693
|
const { id } = req.params;
|
|
6694
|
-
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-
|
|
6694
|
+
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-B6HYTLT4.js");
|
|
6695
6695
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6696
6696
|
const updatedConfig = removeProvider(globalConfig, id);
|
|
6697
6697
|
await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
|
|
@@ -6702,7 +6702,7 @@ async function createServerHandle(config4) {
|
|
|
6702
6702
|
const { id } = req.params;
|
|
6703
6703
|
const { isLocal } = req.body;
|
|
6704
6704
|
try {
|
|
6705
|
-
const { loadGlobalConfig, saveGlobalConfig, updateProvider } = await import("./config-
|
|
6705
|
+
const { loadGlobalConfig, saveGlobalConfig, updateProvider } = await import("./config-B6HYTLT4.js");
|
|
6706
6706
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6707
6707
|
const provider = globalConfig.providers.find((p) => p.id === id);
|
|
6708
6708
|
if (!provider) {
|
|
@@ -6730,7 +6730,7 @@ async function createServerHandle(config4) {
|
|
|
6730
6730
|
models: modelConfigs
|
|
6731
6731
|
} = req.body;
|
|
6732
6732
|
try {
|
|
6733
|
-
const { loadGlobalConfig, saveGlobalConfig, updateProvider } = await import("./config-
|
|
6733
|
+
const { loadGlobalConfig, saveGlobalConfig, updateProvider } = await import("./config-B6HYTLT4.js");
|
|
6734
6734
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6735
6735
|
const provider = globalConfig.providers.find((p) => p.id === id);
|
|
6736
6736
|
if (!provider) {
|
|
@@ -6777,7 +6777,7 @@ async function createServerHandle(config4) {
|
|
|
6777
6777
|
return res.status(400).json({ error: result.error });
|
|
6778
6778
|
}
|
|
6779
6779
|
const llmClient = getLLMClient();
|
|
6780
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
6780
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-B6HYTLT4.js");
|
|
6781
6781
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6782
6782
|
const updatedConfig = setDefaultModelSelection(globalConfig, id, llmClient.getModel());
|
|
6783
6783
|
await saveGlobalConfig(config4.mode ?? "production", updatedConfig);
|
|
@@ -6808,7 +6808,7 @@ async function createServerHandle(config4) {
|
|
|
6808
6808
|
if (!result.success) {
|
|
6809
6809
|
return res.status(400).json({ error: result.error });
|
|
6810
6810
|
}
|
|
6811
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
6811
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-B6HYTLT4.js");
|
|
6812
6812
|
const globalConfig = await loadGlobalConfig(config4.mode ?? "production");
|
|
6813
6813
|
const updatedProviders = providerManager.getProviders();
|
|
6814
6814
|
const updatedConfig = {
|
|
@@ -6874,13 +6874,13 @@ async function createServerHandle(config4) {
|
|
|
6874
6874
|
})
|
|
6875
6875
|
);
|
|
6876
6876
|
app.get("/api/sessions/:id/background-processes", async (req, res) => {
|
|
6877
|
-
const { getSessionProcesses } = await import("./manager-
|
|
6877
|
+
const { getSessionProcesses } = await import("./manager-W7N3XQ4Q.js");
|
|
6878
6878
|
const sessionId = req.params.id;
|
|
6879
6879
|
const processes = getSessionProcesses(sessionId);
|
|
6880
6880
|
res.json({ processes });
|
|
6881
6881
|
});
|
|
6882
6882
|
app.post("/api/sessions/:id/background-process/:processId/stop", async (req, res) => {
|
|
6883
|
-
const { stopProcess } = await import("./manager-
|
|
6883
|
+
const { stopProcess } = await import("./manager-W7N3XQ4Q.js");
|
|
6884
6884
|
const sessionId = req.params.id;
|
|
6885
6885
|
const processId = req.params.processId;
|
|
6886
6886
|
const session = sessionManager.getSession(sessionId);
|
|
@@ -6894,7 +6894,7 @@ async function createServerHandle(config4) {
|
|
|
6894
6894
|
res.status(500).json({ error: err instanceof Error ? err.message : "Failed to stop process" });
|
|
6895
6895
|
}
|
|
6896
6896
|
});
|
|
6897
|
-
const { getCurrentBranch } = await import("./branch.api-
|
|
6897
|
+
const { getCurrentBranch } = await import("./branch.api-PWFW26KC.js");
|
|
6898
6898
|
app.get("/api/branch", async (req, res) => {
|
|
6899
6899
|
await getCurrentBranch(req, res);
|
|
6900
6900
|
});
|
|
@@ -7022,7 +7022,7 @@ async function createServerHandle(config4) {
|
|
|
7022
7022
|
providerManager
|
|
7023
7023
|
);
|
|
7024
7024
|
const wss = wssExports.wss;
|
|
7025
|
-
const { QueueProcessor } = await import("./processor-
|
|
7025
|
+
const { QueueProcessor } = await import("./processor-IU56GBIW.js");
|
|
7026
7026
|
const queueProcessor = new QueueProcessor({
|
|
7027
7027
|
sessionManager,
|
|
7028
7028
|
providerManager,
|
|
@@ -7060,9 +7060,9 @@ async function createServerHandle(config4) {
|
|
|
7060
7060
|
logger.info("Shutting down...");
|
|
7061
7061
|
void (async () => {
|
|
7062
7062
|
await devServerManager.stopAll();
|
|
7063
|
-
const { stopAllInspectProxies } = await import("./inspect-proxy-
|
|
7063
|
+
const { stopAllInspectProxies } = await import("./inspect-proxy-42ZXL2R5.js");
|
|
7064
7064
|
stopAllInspectProxies();
|
|
7065
|
-
const { cleanupAllProcesses } = await import("./store-
|
|
7065
|
+
const { cleanupAllProcesses } = await import("./store-OQ45KONN.js");
|
|
7066
7066
|
cleanupAllProcesses();
|
|
7067
7067
|
viteServer?.close();
|
|
7068
7068
|
for (const client of wss.clients) {
|
|
@@ -7094,4 +7094,4 @@ export {
|
|
|
7094
7094
|
createServerHandle,
|
|
7095
7095
|
createServer
|
|
7096
7096
|
};
|
|
7097
|
-
//# sourceMappingURL=chunk-
|
|
7097
|
+
//# sourceMappingURL=chunk-BE7YHSTL.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
loadAllAgentsDefault,
|
|
18
18
|
processEventsForConversation,
|
|
19
19
|
runTopLevelAgentLoop
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W52UQCER.js";
|
|
21
21
|
import {
|
|
22
22
|
getCurrentContextWindowId,
|
|
23
23
|
getCurrentWindowMessageOptions,
|
|
@@ -46,7 +46,7 @@ function computeDynamicContextHash(instructionContent, skills) {
|
|
|
46
46
|
|
|
47
47
|
// src/server/chat/orchestrator.ts
|
|
48
48
|
async function buildRetryPatterns() {
|
|
49
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
49
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-6XX56F3F.js");
|
|
50
50
|
const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
|
|
51
51
|
if (!raw) {
|
|
52
52
|
const oldXmlProtection = getSetting("llm.disableXmlProtection");
|
|
@@ -311,4 +311,4 @@ export {
|
|
|
311
311
|
runAgentTurn,
|
|
312
312
|
injectWorkflowKickoffIfNeeded
|
|
313
313
|
};
|
|
314
|
-
//# sourceMappingURL=chunk-
|
|
314
|
+
//# sourceMappingURL=chunk-D2QILH47.js.map
|
|
@@ -32,9 +32,9 @@ Options:
|
|
|
32
32
|
`);
|
|
33
33
|
}
|
|
34
34
|
async function runNetworkSetup(mode) {
|
|
35
|
-
const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-
|
|
36
|
-
const { saveGlobalConfig } = await import("./config-
|
|
37
|
-
const { getAuthKeyPath } = await import("./paths-
|
|
35
|
+
const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-56SIRACI.js");
|
|
36
|
+
const { saveGlobalConfig } = await import("./config-B6HYTLT4.js");
|
|
37
|
+
const { getAuthKeyPath } = await import("./paths-X46PPOI2.js");
|
|
38
38
|
const existingAuth = await loadAuthConfig(mode);
|
|
39
39
|
if (existingAuth) {
|
|
40
40
|
return;
|
|
@@ -94,8 +94,8 @@ 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-
|
|
98
|
-
const { getGlobalConfigPath } = await import("./paths-
|
|
97
|
+
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-B6HYTLT4.js");
|
|
98
|
+
const { getGlobalConfigPath } = await import("./paths-X46PPOI2.js");
|
|
99
99
|
const config = await loadGlobalConfig(mode);
|
|
100
100
|
const configPath = getGlobalConfigPath(mode);
|
|
101
101
|
const activeProvider = getActiveProvider(config);
|
|
@@ -151,13 +151,13 @@ async function runCli(options) {
|
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
153
153
|
case "provider": {
|
|
154
|
-
const { runProviderCommand } = await import("./provider-
|
|
154
|
+
const { runProviderCommand } = await import("./provider-2JAXE5EA.js");
|
|
155
155
|
const [, subcommand] = positionals;
|
|
156
156
|
await runProviderCommand(mode, subcommand);
|
|
157
157
|
break;
|
|
158
158
|
}
|
|
159
159
|
case "service": {
|
|
160
|
-
const { runServiceCommand } = await import("./service-
|
|
160
|
+
const { runServiceCommand } = await import("./service-GB7AIOG5.js");
|
|
161
161
|
const [, subcommand] = positionals;
|
|
162
162
|
if (subcommand === "--help" || subcommand === "-h" || values.help) {
|
|
163
163
|
runServiceCommand(mode, void 0);
|
|
@@ -167,7 +167,7 @@ async function runCli(options) {
|
|
|
167
167
|
break;
|
|
168
168
|
}
|
|
169
169
|
case "pwa": {
|
|
170
|
-
const { runPwaCommand, printPwaHelp } = await import("./pwa-
|
|
170
|
+
const { runPwaCommand, printPwaHelp } = await import("./pwa-76XP2DY2.js");
|
|
171
171
|
const [, subcommand] = positionals;
|
|
172
172
|
if (subcommand === "--help" || subcommand === "-h" || values.help) {
|
|
173
173
|
printPwaHelp();
|
|
@@ -188,12 +188,12 @@ async function runCli(options) {
|
|
|
188
188
|
break;
|
|
189
189
|
}
|
|
190
190
|
default: {
|
|
191
|
-
const { configFileExists } = await import("./config-
|
|
191
|
+
const { configFileExists } = await import("./config-B6HYTLT4.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-
|
|
196
|
+
const { runServe } = await import("./serve-TFOO6AZH.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-
|
|
208
|
+
//# sourceMappingURL=chunk-LQWVMRMW.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-CQGTEGKL.js";
|
|
4
4
|
import {
|
|
5
5
|
detectModel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4F3C6X4M.js";
|
|
7
7
|
import {
|
|
8
8
|
detectBackend
|
|
9
9
|
} from "./chunk-LXX2CPM5.js";
|
|
@@ -449,4 +449,4 @@ export {
|
|
|
449
449
|
activateProvider,
|
|
450
450
|
mergeConfigs
|
|
451
451
|
};
|
|
452
|
-
//# sourceMappingURL=chunk-
|
|
452
|
+
//# sourceMappingURL=chunk-N53OLRIU.js.map
|
|
@@ -2648,7 +2648,7 @@ async function executeTools(assistantMsgId, toolCalls, ctx, append) {
|
|
|
2648
2648
|
type: "chat.ask_user",
|
|
2649
2649
|
data: { callId: error.callId, question: error.question }
|
|
2650
2650
|
});
|
|
2651
|
-
const { awaitAnswer } = await import("./ask-
|
|
2651
|
+
const { awaitAnswer } = await import("./ask-5SSOA6SZ.js");
|
|
2652
2652
|
const answerPromise = awaitAnswer(error.callId);
|
|
2653
2653
|
if (!answerPromise) {
|
|
2654
2654
|
throw new Error(`No pending question found for callId: ${error.callId}`);
|
|
@@ -2929,7 +2929,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
2929
2929
|
sessionManager.setCurrentContextSize(sessionId, result.usage.promptTokens);
|
|
2930
2930
|
if (!compacting) {
|
|
2931
2931
|
const contextState = sessionManager.getContextState(sessionId);
|
|
2932
|
-
const { shouldCompact } = await import("./compactor-
|
|
2932
|
+
const { shouldCompact } = await import("./compactor-TDNRM3A7.js");
|
|
2933
2933
|
if (shouldCompact(contextState.currentTokens, contextState.maxTokens, runtimeConfig.context.compactionThreshold)) {
|
|
2934
2934
|
const compactPromptMsgId = crypto.randomUUID();
|
|
2935
2935
|
append(
|
|
@@ -3051,7 +3051,7 @@ ${COMPACTION_PROMPT}`,
|
|
|
3051
3051
|
stats: stats2
|
|
3052
3052
|
})
|
|
3053
3053
|
);
|
|
3054
|
-
const { createChatDoneMessage: createChatDoneMessage2 } = await import("./protocol-
|
|
3054
|
+
const { createChatDoneMessage: createChatDoneMessage2 } = await import("./protocol-CN24IKQN.js");
|
|
3055
3055
|
onMessage(createChatDoneMessage2(assistantMsgId, "complete", stats2));
|
|
3056
3056
|
}
|
|
3057
3057
|
break;
|
|
@@ -3280,7 +3280,7 @@ async function describeImageFromDataUrl(dataUrl, visionModel, options) {
|
|
|
3280
3280
|
import { createHash as createHash2 } from "crypto";
|
|
3281
3281
|
async function loadVisionModelFromGlobalConfig() {
|
|
3282
3282
|
try {
|
|
3283
|
-
const { loadGlobalConfig, getVisionFallback } = await import("./config-
|
|
3283
|
+
const { loadGlobalConfig, getVisionFallback } = await import("./config-B6HYTLT4.js");
|
|
3284
3284
|
const runtimeConfig = getRuntimeConfig();
|
|
3285
3285
|
const mode = runtimeConfig.mode ?? "production";
|
|
3286
3286
|
const globalConfig = await loadGlobalConfig(mode);
|
|
@@ -3733,7 +3733,7 @@ var callSubAgentTool = {
|
|
|
3733
3733
|
};
|
|
3734
3734
|
}
|
|
3735
3735
|
try {
|
|
3736
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3736
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-VJMWGBUO.js");
|
|
3737
3737
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3738
3738
|
const turnMetrics = new TurnMetrics();
|
|
3739
3739
|
const result = await executeSubAgent({
|
|
@@ -4785,4 +4785,4 @@ export {
|
|
|
4785
4785
|
getToolRegistryForAgent,
|
|
4786
4786
|
createToolRegistry
|
|
4787
4787
|
};
|
|
4788
|
-
//# sourceMappingURL=chunk-
|
|
4788
|
+
//# sourceMappingURL=chunk-W52UQCER.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -2,9 +2,8 @@ import {
|
|
|
2
2
|
getCompactionTarget,
|
|
3
3
|
shouldCompact
|
|
4
4
|
} from "./chunk-RI6GAMNP.js";
|
|
5
|
-
import "./chunk-7D4SUZUM.js";
|
|
6
5
|
export {
|
|
7
6
|
getCompactionTarget,
|
|
8
7
|
shouldCompact
|
|
9
8
|
};
|
|
10
|
-
//# sourceMappingURL=compactor-
|
|
9
|
+
//# sourceMappingURL=compactor-TDNRM3A7.js.map
|
|
@@ -14,12 +14,11 @@ import {
|
|
|
14
14
|
setDefaultModelSelection,
|
|
15
15
|
trySmartDefaults,
|
|
16
16
|
updateProvider
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-N53OLRIU.js";
|
|
18
18
|
import "./chunk-CQGTEGKL.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-4F3C6X4M.js";
|
|
20
20
|
import "./chunk-LXX2CPM5.js";
|
|
21
21
|
import "./chunk-K44MW7JJ.js";
|
|
22
|
-
import "./chunk-7D4SUZUM.js";
|
|
23
22
|
export {
|
|
24
23
|
activateProvider,
|
|
25
24
|
addProvider,
|
|
@@ -37,4 +36,4 @@ export {
|
|
|
37
36
|
trySmartDefaults,
|
|
38
37
|
updateProvider
|
|
39
38
|
};
|
|
40
|
-
//# sourceMappingURL=config-
|
|
39
|
+
//# sourceMappingURL=config-B6HYTLT4.js.map
|
|
@@ -59,7 +59,6 @@ import {
|
|
|
59
59
|
} from "./chunk-ITWVFGFV.js";
|
|
60
60
|
import "./chunk-FBGWG4N6.js";
|
|
61
61
|
import "./chunk-K44MW7JJ.js";
|
|
62
|
-
import "./chunk-7D4SUZUM.js";
|
|
63
62
|
export {
|
|
64
63
|
EventStore,
|
|
65
64
|
buildContextMessagesFromEventHistory,
|
|
@@ -117,4 +116,4 @@ export {
|
|
|
117
116
|
isTurnEvent,
|
|
118
117
|
truncateSessionMessages
|
|
119
118
|
};
|
|
120
|
-
//# sourceMappingURL=events-
|
|
119
|
+
//# sourceMappingURL=events-R7FRQEBE.js.map
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
spreadOptionalMessageFields,
|
|
25
25
|
stripOrphanedToolCalls
|
|
26
26
|
} from "./chunk-ITWVFGFV.js";
|
|
27
|
-
import "./chunk-7D4SUZUM.js";
|
|
28
27
|
export {
|
|
29
28
|
buildContextMessagesFromEventHistory,
|
|
30
29
|
buildContextMessagesFromMessages,
|
|
@@ -51,4 +50,4 @@ export {
|
|
|
51
50
|
spreadOptionalMessageFields,
|
|
52
51
|
stripOrphanedToolCalls
|
|
53
52
|
};
|
|
54
|
-
//# sourceMappingURL=folding-
|
|
53
|
+
//# sourceMappingURL=folding-YOCGTZYH.js.map
|
|
@@ -3,9 +3,8 @@ import {
|
|
|
3
3
|
stopAllInspectProxies
|
|
4
4
|
} from "./chunk-DL6ZILAF.js";
|
|
5
5
|
import "./chunk-K44MW7JJ.js";
|
|
6
|
-
import "./chunk-7D4SUZUM.js";
|
|
7
6
|
export {
|
|
8
7
|
startInspectProxy,
|
|
9
8
|
stopAllInspectProxies
|
|
10
9
|
};
|
|
11
|
-
//# sourceMappingURL=inspect-proxy-
|
|
10
|
+
//# sourceMappingURL=inspect-proxy-42ZXL2R5.js.map
|