openfox 2.0.87 → 2.0.89
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/CHANGELOG.md +1062 -0
- package/dist/CHANGELOG.md +1062 -0
- package/dist/{chat-handler-AVGJQSYW.js → chat-handler-NOTXEOLF.js} +17 -17
- package/dist/{chunk-3JYPDZT2.js → chunk-2GQ7X2NP.js} +2 -2
- package/dist/{chunk-5W2FIWDH.js → chunk-3QHXJ3DJ.js} +2 -2
- package/dist/{chunk-WVMOGE7U.js → chunk-4S76VMPH.js} +3 -3
- package/dist/{chunk-VGYV5EH6.js → chunk-5OGOPB3I.js} +236 -98
- package/dist/{chunk-7PZBCATU.js → chunk-67AVIA5G.js} +29 -7
- package/dist/{chunk-SBVKT4GT.js → chunk-7JC5YWST.js} +15 -15
- package/dist/{chunk-FYYPQ27K.js → chunk-7TFKWFY3.js} +2 -2
- package/dist/{chunk-OHKBGMLO.js → chunk-AGYP7AUV.js} +2 -2
- package/dist/{chunk-W23S3TU5.js → chunk-ANYBIATF.js} +2 -2
- package/dist/{chunk-BKH4SIWV.js → chunk-E5D7V7XC.js} +7 -7
- package/dist/{chunk-RGUUZD5B.js → chunk-EZWSS7LG.js} +5 -1
- package/dist/{chunk-EYIWUONA.js → chunk-J2IVK667.js} +2 -2
- package/dist/{chunk-FY6FQTNN.js → chunk-J7R25K6N.js} +4 -4
- package/dist/{chunk-H765CIHN.js → chunk-NGIOAASU.js} +2 -2
- package/dist/{chunk-M6X72DYZ.js → chunk-NTYWC6PD.js} +3 -3
- package/dist/{chunk-CK7G2JLY.js → chunk-OVSB5SFF.js} +11 -11
- package/dist/{chunk-MTZ3PC6K.js → chunk-Q4OPCXV4.js} +2 -2
- package/dist/{chunk-6AE3JPDJ.js → chunk-Q6AKRIM2.js} +7 -2
- package/dist/{chunk-V5LOH363.js → chunk-RNXMN5QY.js} +4 -4
- package/dist/{chunk-ACL4YUJH.js → chunk-SYU5GNPN.js} +2 -2
- package/dist/{chunk-L4S5N3WV.js → chunk-TAHZHEJ4.js} +3 -3
- package/dist/chunk-TH4JF6XP.js +7 -0
- package/dist/{chunk-B6VZS5SC.js → chunk-U2ECZUAX.js} +10 -10
- package/dist/{chunk-STFIEU5F.js → chunk-VFMHWU3E.js} +4 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-C2P67MA4.js → client-2KVPLIV4.js} +5 -5
- package/dist/{compactor-2YT66FDZ.js → compactor-W2CUKE22.js} +10 -10
- package/dist/{events-OEDAFNEI.js → events-OD7MN3FL.js} +7 -7
- package/dist/{folding-FGTCP73N.js → folding-TDDQ5CXT.js} +5 -5
- package/dist/http-client-IPJGJXNJ.js +11 -0
- package/dist/{inspect-proxy-DRYIIH4O.js → inspect-proxy-CN2MUFQ5.js} +4 -4
- package/dist/{manager-TD2UT62O.js → manager-6UIC3QKJ.js} +5 -5
- package/dist/{orchestrator-AGJ7EMFZ.js → orchestrator-NQDWCULY.js} +16 -16
- package/dist/package.json +3 -2
- package/dist/{path-security-DWL3R2SF.js → path-security-M2JDUBKK.js} +8 -8
- package/dist/{platform-OYKGQ7Z3.js → platform-55N6FRRU.js} +4 -4
- package/dist/{processor-VCDVG7RV.js → processor-FE4ZJ7GS.js} +17 -17
- package/dist/{project-creator-NNUITNUI.js → project-creator-W5VW22DC.js} +3 -3
- package/dist/{projects-ZGJGICGT.js → projects-HZ3WVTKG.js} +3 -3
- package/dist/{protocol-BzTZcNEh.d.ts → protocol-DKJPL2Ci.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-YNYYAR6C.js → provider-I2P3NYUI.js} +6 -6
- package/dist/{provider-manager-3DW3A2VC.js → provider-manager-OLDOHCR2.js} +6 -6
- package/dist/{serve-IGWUSQDZ.js → serve-UMPDBCVG.js} +23 -23
- package/dist/server/index.d.ts +16 -3
- package/dist/server/index.js +22 -22
- package/dist/{server-3X46OIYC.js → server-4PB7BNE6.js} +18 -18
- package/dist/{sessions-V3BF2OTU.js → sessions-Q6SYLG6U.js} +5 -5
- package/dist/{settings-AGNYWEIE.js → settings-PFZWX6VY.js} +3 -3
- package/dist/shared/index.d.ts +3 -3
- package/dist/{tools-X65P65KF.js → tools-NLKP65HF.js} +15 -15
- package/dist/{types-CrLD4iRS.d.ts → types-B97Fb4vm.d.ts} +1 -1
- package/dist/{types-B4wa_vGm.d.ts → types-C4NrLRR1.d.ts} +1 -0
- package/dist/{update-6GITMIFG.js → update-BHTE5TMY.js} +2 -2
- package/dist/web/assets/index-BQfVUhSC.css +32 -0
- package/dist/web/assets/index-C5sTYb--.js +306 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/{workspace-MMV6V5P4.js → workspace-N4QHV6J2.js} +4 -2
- package/package.json +3 -2
- package/dist/chunk-3USWJ6MR.js +0 -7
- package/dist/http-client-I52X7GQB.js +0 -11
- package/dist/web/assets/index-CsWZt1m8.css +0 -32
- package/dist/web/assets/index-D-r8G7Tf.js +0 -305
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
gitSpawnEnv
|
|
3
3
|
} from "./chunk-J7GAZGZT.js";
|
|
4
|
+
import {
|
|
5
|
+
getProjectByWorkdir,
|
|
6
|
+
updateProject
|
|
7
|
+
} from "./chunk-Q6AKRIM2.js";
|
|
4
8
|
import {
|
|
5
9
|
logger
|
|
6
10
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -25,7 +29,15 @@ async function loadWorkspaceConfig(workdir) {
|
|
|
25
29
|
const parsed = JSON.parse(raw);
|
|
26
30
|
const config = {};
|
|
27
31
|
if (parsed.setup) config.setup = parsed.setup;
|
|
28
|
-
if (parsed.rootDir)
|
|
32
|
+
if (parsed.rootDir) {
|
|
33
|
+
const project = getProjectByWorkdir(workdir);
|
|
34
|
+
if (project && !project.workspaceRootDir) {
|
|
35
|
+
try {
|
|
36
|
+
updateProject(project.id, { workspaceRootDir: parsed.rootDir });
|
|
37
|
+
} catch {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
29
41
|
return Object.keys(config).length > 0 ? config : null;
|
|
30
42
|
} catch {
|
|
31
43
|
return null;
|
|
@@ -82,9 +94,9 @@ function getGlobalDataDir() {
|
|
|
82
94
|
}
|
|
83
95
|
}
|
|
84
96
|
async function getWorkspacesDir(projectName, projectDir) {
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
87
|
-
return isAbsolute(
|
|
97
|
+
const project = getProjectByWorkdir(projectDir);
|
|
98
|
+
if (project?.workspaceRootDir) {
|
|
99
|
+
return isAbsolute(project.workspaceRootDir) ? project.workspaceRootDir : resolve2(projectDir, project.workspaceRootDir);
|
|
88
100
|
}
|
|
89
101
|
return join2(getGlobalDataDir(), "workspaces", projectName);
|
|
90
102
|
}
|
|
@@ -227,8 +239,18 @@ async function ensureWorkspace(projectDir, name, projectName, branch, sourceBran
|
|
|
227
239
|
if (branch) {
|
|
228
240
|
await validateRef(wsPath, branch);
|
|
229
241
|
await runGit(wsPath, ["checkout", branch]).catch(async () => {
|
|
230
|
-
|
|
231
|
-
|
|
242
|
+
try {
|
|
243
|
+
if (sourceBranch) {
|
|
244
|
+
const sb = await resolveAndValidateSourceBranch(wsPath, sourceBranch, projectDir);
|
|
245
|
+
await runGit(wsPath, ["checkout", "-b", branch, sb]);
|
|
246
|
+
} else {
|
|
247
|
+
await runGit(wsPath, ["checkout", "-b", branch]);
|
|
248
|
+
}
|
|
249
|
+
} catch (innerErr) {
|
|
250
|
+
throw new Error(
|
|
251
|
+
`Failed to create branch "${branch}" in workspace: ${innerErr instanceof Error ? innerErr.message : String(innerErr)}`
|
|
252
|
+
);
|
|
253
|
+
}
|
|
232
254
|
});
|
|
233
255
|
}
|
|
234
256
|
const config = await loadWorkspaceConfig(projectDir);
|
|
@@ -302,4 +324,4 @@ export {
|
|
|
302
324
|
deleteWorkspace,
|
|
303
325
|
isGitRepository
|
|
304
326
|
};
|
|
305
|
-
//# sourceMappingURL=chunk-
|
|
327
|
+
//# sourceMappingURL=chunk-67AVIA5G.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
spawnShellProcess,
|
|
9
9
|
startProcessCommand,
|
|
10
10
|
stopProcess
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2GQ7X2NP.js";
|
|
12
12
|
import {
|
|
13
13
|
createMcpTools
|
|
14
14
|
} from "./chunk-NWO6GRYE.js";
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
getGitBranch,
|
|
20
20
|
isGitRepository,
|
|
21
21
|
listWorkspaces
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-67AVIA5G.js";
|
|
23
23
|
import {
|
|
24
24
|
PathAccessDeniedError,
|
|
25
25
|
extractAbsolutePathsFromCommand,
|
|
26
26
|
extractSensitivePathsFromCommand,
|
|
27
27
|
registerPathConfirmation,
|
|
28
28
|
requestPathAccess
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3QHXJ3DJ.js";
|
|
30
30
|
import {
|
|
31
31
|
createChatDoneMessage,
|
|
32
32
|
createChatMessageMessage,
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
createToolCallEvent,
|
|
51
51
|
createToolResultEvent,
|
|
52
52
|
streamLLMPure
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-NGIOAASU.js";
|
|
54
54
|
import {
|
|
55
55
|
startInspectProxy
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-J2IVK667.js";
|
|
57
57
|
import {
|
|
58
58
|
getProject
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-Q6AKRIM2.js";
|
|
60
60
|
import {
|
|
61
61
|
getMaxPerSession,
|
|
62
62
|
getSessionProcessCount,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
getCurrentContextWindowId,
|
|
67
67
|
getCurrentWindowMessageOptions,
|
|
68
68
|
getEventStore
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-RNXMN5QY.js";
|
|
70
70
|
import {
|
|
71
71
|
buildContextMessagesFromEventHistory,
|
|
72
72
|
foldContextState,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
handleToolResult,
|
|
77
77
|
reorderToolMessages,
|
|
78
78
|
stripOrphanedToolCalls
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-AGYP7AUV.js";
|
|
80
80
|
import {
|
|
81
81
|
deleteItemFromDir,
|
|
82
82
|
findAgentById,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
loadAllAgentsDefault,
|
|
86
86
|
loadItemsFromDir,
|
|
87
87
|
pathExists
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-7TFKWFY3.js";
|
|
89
89
|
import {
|
|
90
90
|
modelSupportsVision
|
|
91
91
|
} from "./chunk-V4IE7HJY.js";
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
deleteSetting,
|
|
106
106
|
getSetting,
|
|
107
107
|
setSetting
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-VFMHWU3E.js";
|
|
109
109
|
import {
|
|
110
110
|
logger
|
|
111
111
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -129,7 +129,7 @@ async function requestUserConfirmation(context, toolLabel, desc) {
|
|
|
129
129
|
if (context.dangerLevel === "dangerous") return Promise.resolve(true);
|
|
130
130
|
if (toolLabel === "workspace" || toolLabel === "command") {
|
|
131
131
|
try {
|
|
132
|
-
const { getSetting: getSetting2, SETTINGS_KEYS: SETTINGS_KEYS2 } = await import("./settings-
|
|
132
|
+
const { getSetting: getSetting2, SETTINGS_KEYS: SETTINGS_KEYS2 } = await import("./settings-PFZWX6VY.js");
|
|
133
133
|
if (getSetting2(SETTINGS_KEYS2.CONFIRM_ON_WORKSPACE_ACTIONS) !== "true") {
|
|
134
134
|
return Promise.resolve(true);
|
|
135
135
|
}
|
|
@@ -2315,7 +2315,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
2315
2315
|
sessionManager.setCurrentContextSize(sessionId, result.usage.promptTokens, config.subAgentMetadata?.subAgentId);
|
|
2316
2316
|
if (!compacting) {
|
|
2317
2317
|
const contextState2 = sessionManager.getContextState(sessionId);
|
|
2318
|
-
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-
|
|
2318
|
+
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-W2CUKE22.js");
|
|
2319
2319
|
if (shouldCompact(
|
|
2320
2320
|
contextState2.currentTokens,
|
|
2321
2321
|
contextState2.maxTokens,
|
|
@@ -3254,7 +3254,7 @@ var callSubAgentTool = {
|
|
|
3254
3254
|
};
|
|
3255
3255
|
}
|
|
3256
3256
|
try {
|
|
3257
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3257
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-NLKP65HF.js");
|
|
3258
3258
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3259
3259
|
const turnMetrics = new TurnMetrics();
|
|
3260
3260
|
const result = await executeSubAgent({
|
|
@@ -4260,7 +4260,7 @@ var mcpConfigTool = createTool(
|
|
|
4260
4260
|
mcpNotifyChanged?.(sessionId);
|
|
4261
4261
|
}
|
|
4262
4262
|
async function rebuildTools() {
|
|
4263
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
4263
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-NLKP65HF.js");
|
|
4264
4264
|
const mcpTools = createMcpTools(mcpManagerForTools);
|
|
4265
4265
|
setMcpTools2(mcpTools);
|
|
4266
4266
|
}
|
|
@@ -4917,4 +4917,4 @@ export {
|
|
|
4917
4917
|
getToolRegistryForAgent,
|
|
4918
4918
|
createToolRegistry
|
|
4919
4919
|
};
|
|
4920
|
-
//# sourceMappingURL=chunk-
|
|
4920
|
+
//# sourceMappingURL=chunk-7JC5YWST.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VFMHWU3E.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
deleteAgent,
|
|
397
397
|
resolveDefaultAgentId
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=chunk-
|
|
399
|
+
//# sourceMappingURL=chunk-7TFKWFY3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7TFKWFY3.js";
|
|
4
4
|
|
|
5
5
|
// src/server/events/apply-events.ts
|
|
6
6
|
function markComplete(msg, reason) {
|
|
@@ -909,4 +909,4 @@ export {
|
|
|
909
909
|
buildSnapshot,
|
|
910
910
|
buildSnapshotFromSessionState
|
|
911
911
|
};
|
|
912
|
-
//# sourceMappingURL=chunk-
|
|
912
|
+
//# sourceMappingURL=chunk-AGYP7AUV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VFMHWU3E.js";
|
|
5
5
|
|
|
6
6
|
// src/server/utils/platform.ts
|
|
7
7
|
import os from "os";
|
|
@@ -63,4 +63,4 @@ export {
|
|
|
63
63
|
isWindowsPath,
|
|
64
64
|
isAbsolutePath
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=chunk-
|
|
66
|
+
//# sourceMappingURL=chunk-ANYBIATF.js.map
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
combineEventsWithSnapshot,
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RNXMN5QY.js";
|
|
12
12
|
import {
|
|
13
13
|
buildMessagesFromStoredEvents,
|
|
14
14
|
foldPendingConfirmations
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AGYP7AUV.js";
|
|
16
16
|
import {
|
|
17
17
|
updateSessionMetadata
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TAHZHEJ4.js";
|
|
19
19
|
import {
|
|
20
20
|
getRuntimeConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7TFKWFY3.js";
|
|
22
22
|
import {
|
|
23
23
|
getMaxVisibleItems
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VFMHWU3E.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
27
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -153,7 +153,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
153
153
|
client = deps.getLLMClient();
|
|
154
154
|
client.setModel(providerConfig.model);
|
|
155
155
|
} else if (providerConfig) {
|
|
156
|
-
const { createLLMClient } = await import("./client-
|
|
156
|
+
const { createLLMClient } = await import("./client-2KVPLIV4.js");
|
|
157
157
|
client = createLLMClient({
|
|
158
158
|
llm: {
|
|
159
159
|
baseUrl: providerConfig.baseUrl,
|
|
@@ -202,4 +202,4 @@ export {
|
|
|
202
202
|
buildRunChatTurnParams,
|
|
203
203
|
generateSessionNameForSession
|
|
204
204
|
};
|
|
205
|
-
//# sourceMappingURL=chunk-
|
|
205
|
+
//# sourceMappingURL=chunk-E5D7V7XC.js.map
|
|
@@ -110,6 +110,10 @@ function runMigrations(db2) {
|
|
|
110
110
|
logger.info("Migrating projects table: adding is_starred column");
|
|
111
111
|
db2.exec(`ALTER TABLE projects ADD COLUMN is_starred INTEGER NOT NULL DEFAULT 0`);
|
|
112
112
|
}
|
|
113
|
+
if (!projectColumnNames.includes("workspace_root_dir")) {
|
|
114
|
+
logger.info("Migrating projects table: adding workspace_root_dir column");
|
|
115
|
+
db2.exec(`ALTER TABLE projects ADD COLUMN workspace_root_dir TEXT`);
|
|
116
|
+
}
|
|
113
117
|
db2.exec(`
|
|
114
118
|
CREATE TABLE IF NOT EXISTS events (
|
|
115
119
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
@@ -192,4 +196,4 @@ export {
|
|
|
192
196
|
initDatabase,
|
|
193
197
|
getDatabase
|
|
194
198
|
};
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
199
|
+
//# sourceMappingURL=chunk-EZWSS7LG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProjectByWorkdir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q6AKRIM2.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
6
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -343,4 +343,4 @@ export {
|
|
|
343
343
|
startInspectProxy,
|
|
344
344
|
stopAllInspectProxies
|
|
345
345
|
};
|
|
346
|
-
//# sourceMappingURL=chunk-
|
|
346
|
+
//# sourceMappingURL=chunk-J2IVK667.js.map
|
|
@@ -163,7 +163,7 @@ async function runCli(options) {
|
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
165
165
|
case "provider": {
|
|
166
|
-
const { runProviderCommand } = await import("./provider-
|
|
166
|
+
const { runProviderCommand } = await import("./provider-I2P3NYUI.js");
|
|
167
167
|
const [, subcommand] = positionals;
|
|
168
168
|
await runProviderCommand(mode, subcommand);
|
|
169
169
|
break;
|
|
@@ -200,7 +200,7 @@ async function runCli(options) {
|
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
202
|
case "update": {
|
|
203
|
-
const { runUpdate } = await import("./update-
|
|
203
|
+
const { runUpdate } = await import("./update-BHTE5TMY.js");
|
|
204
204
|
const code = await runUpdate();
|
|
205
205
|
if (code !== 0) {
|
|
206
206
|
process.exit(code);
|
|
@@ -213,7 +213,7 @@ async function runCli(options) {
|
|
|
213
213
|
if (!configExists) {
|
|
214
214
|
await runNetworkSetup(mode);
|
|
215
215
|
}
|
|
216
|
-
const { runServe } = await import("./serve-
|
|
216
|
+
const { runServe } = await import("./serve-UMPDBCVG.js");
|
|
217
217
|
const serveOptions = { mode };
|
|
218
218
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
219
219
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -225,4 +225,4 @@ async function runCli(options) {
|
|
|
225
225
|
export {
|
|
226
226
|
runCli
|
|
227
227
|
};
|
|
228
|
-
//# sourceMappingURL=chunk-
|
|
228
|
+
//# sourceMappingURL=chunk-J7R25K6N.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPlatformShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ANYBIATF.js";
|
|
4
4
|
import {
|
|
5
5
|
streamWithSegments
|
|
6
6
|
} from "./chunk-J2GP3J3X.js";
|
|
@@ -680,4 +680,4 @@ export {
|
|
|
680
680
|
createChatDoneEvent,
|
|
681
681
|
consumeStreamGenerator
|
|
682
682
|
};
|
|
683
|
-
//# sourceMappingURL=chunk-
|
|
683
|
+
//# sourceMappingURL=chunk-NGIOAASU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLLMClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q4OPCXV4.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelProfile
|
|
6
6
|
} from "./chunk-V4IE7HJY.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-RMXPVQP4.js";
|
|
18
18
|
import {
|
|
19
19
|
proxyFetch
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SYU5GNPN.js";
|
|
21
21
|
import {
|
|
22
22
|
logger
|
|
23
23
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -810,4 +810,4 @@ export {
|
|
|
810
810
|
parseDefaultModelSelection,
|
|
811
811
|
createProviderManager
|
|
812
812
|
};
|
|
813
|
-
//# sourceMappingURL=chunk-
|
|
813
|
+
//# sourceMappingURL=chunk-NTYWC6PD.js.map
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
computeSessionHash,
|
|
4
4
|
runAgentTurn,
|
|
5
5
|
runChatTurn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U2ECZUAX.js";
|
|
7
7
|
import {
|
|
8
8
|
devServerManager,
|
|
9
9
|
executeSubAgent,
|
|
10
10
|
getToolRegistryForAgent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7JC5YWST.js";
|
|
12
12
|
import {
|
|
13
13
|
checkAborted,
|
|
14
14
|
onProcessEvent,
|
|
15
15
|
spawnShellProcess
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2GQ7X2NP.js";
|
|
17
17
|
import {
|
|
18
18
|
gitSpawnEnv
|
|
19
19
|
} from "./chunk-J7GAZGZT.js";
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
} from "./chunk-EU3WWTFH.js";
|
|
39
39
|
import {
|
|
40
40
|
appendCompactionPrompt
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4S76VMPH.js";
|
|
42
42
|
import {
|
|
43
43
|
TurnMetrics,
|
|
44
44
|
createMessageStartEvent
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NGIOAASU.js";
|
|
46
46
|
import {
|
|
47
47
|
getPlatformShell
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ANYBIATF.js";
|
|
49
49
|
import {
|
|
50
50
|
killProcessTree,
|
|
51
51
|
terminateProcessTree
|
|
@@ -54,11 +54,11 @@ import {
|
|
|
54
54
|
combineEventsWithSnapshot,
|
|
55
55
|
getCurrentContextWindowId,
|
|
56
56
|
getEventStore
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-RNXMN5QY.js";
|
|
58
58
|
import {
|
|
59
59
|
buildMessagesFromStoredEvents,
|
|
60
60
|
foldPendingConfirmations
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-AGYP7AUV.js";
|
|
62
62
|
import {
|
|
63
63
|
deleteItemFromDir,
|
|
64
64
|
findAgentById,
|
|
@@ -67,10 +67,10 @@ import {
|
|
|
67
67
|
loadAllAgentsDefault,
|
|
68
68
|
resolveDefaultAgentId,
|
|
69
69
|
saveItemToDir
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-7TFKWFY3.js";
|
|
71
71
|
import {
|
|
72
72
|
getMaxVisibleItems
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-VFMHWU3E.js";
|
|
74
74
|
import {
|
|
75
75
|
logger
|
|
76
76
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -2222,4 +2222,4 @@ export {
|
|
|
2222
2222
|
signalMcpReady,
|
|
2223
2223
|
createWebSocketServer
|
|
2224
2224
|
};
|
|
2225
|
-
//# sourceMappingURL=chunk-
|
|
2225
|
+
//# sourceMappingURL=chunk-OVSB5SFF.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
LLMError,
|
|
19
19
|
OpenAIHttpClient
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SYU5GNPN.js";
|
|
21
21
|
import {
|
|
22
22
|
logger
|
|
23
23
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -268,4 +268,4 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
268
268
|
export {
|
|
269
269
|
createLLMClient
|
|
270
270
|
};
|
|
271
|
-
//# sourceMappingURL=chunk-
|
|
271
|
+
//# sourceMappingURL=chunk-Q4OPCXV4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EZWSS7LG.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/projects.ts
|
|
6
6
|
function createProject(name, workdir) {
|
|
@@ -75,6 +75,10 @@ function updateProject(id, updates) {
|
|
|
75
75
|
sets.push("danger_level = ?");
|
|
76
76
|
values.push(updates.dangerLevel);
|
|
77
77
|
}
|
|
78
|
+
if (updates.workspaceRootDir !== void 0) {
|
|
79
|
+
sets.push("workspace_root_dir = ?");
|
|
80
|
+
values.push(updates.workspaceRootDir);
|
|
81
|
+
}
|
|
78
82
|
values.push(id);
|
|
79
83
|
const result = db.prepare(
|
|
80
84
|
`
|
|
@@ -103,6 +107,7 @@ function rowToProject(row) {
|
|
|
103
107
|
...row.custom_instructions ? { customInstructions: row.custom_instructions } : {},
|
|
104
108
|
...row.danger_level ? { dangerLevel: row.danger_level } : {},
|
|
105
109
|
isStarred: !!row.is_starred,
|
|
110
|
+
...row.workspace_root_dir ? { workspaceRootDir: row.workspace_root_dir } : {},
|
|
106
111
|
createdAt: row.created_at,
|
|
107
112
|
updatedAt: row.updated_at
|
|
108
113
|
};
|
|
@@ -117,4 +122,4 @@ export {
|
|
|
117
122
|
deleteProject,
|
|
118
123
|
toggleStar
|
|
119
124
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
125
|
+
//# sourceMappingURL=chunk-Q6AKRIM2.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
foldContextState,
|
|
6
6
|
foldSessionState,
|
|
7
7
|
spreadOptionalMessageFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AGYP7AUV.js";
|
|
9
9
|
import {
|
|
10
10
|
updateSessionMessageCount
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TAHZHEJ4.js";
|
|
12
12
|
import {
|
|
13
13
|
getRuntimeConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7TFKWFY3.js";
|
|
15
15
|
import {
|
|
16
16
|
logger
|
|
17
17
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1159,4 +1159,4 @@ export {
|
|
|
1159
1159
|
truncateSessionMessages,
|
|
1160
1160
|
getRecentUserPromptsForSession
|
|
1161
1161
|
};
|
|
1162
|
-
//# sourceMappingURL=chunk-
|
|
1162
|
+
//# sourceMappingURL=chunk-RNXMN5QY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VFMHWU3E.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -171,4 +171,4 @@ export {
|
|
|
171
171
|
proxyFetch,
|
|
172
172
|
OpenAIHttpClient
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-SYU5GNPN.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7TFKWFY3.js";
|
|
4
4
|
import {
|
|
5
5
|
getDatabase
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EZWSS7LG.js";
|
|
7
7
|
|
|
8
8
|
// src/server/db/sessions.ts
|
|
9
9
|
function getProjectDangerLevel(projectId) {
|
|
@@ -329,4 +329,4 @@ export {
|
|
|
329
329
|
updateSessionBranch,
|
|
330
330
|
deleteSession
|
|
331
331
|
};
|
|
332
|
-
//# sourceMappingURL=chunk-
|
|
332
|
+
//# sourceMappingURL=chunk-TAHZHEJ4.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
getToolRegistryForAgent,
|
|
7
7
|
processEventsForConversation,
|
|
8
8
|
runTopLevelAgentLoop
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7JC5YWST.js";
|
|
10
10
|
import {
|
|
11
11
|
PathAccessDeniedError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3QHXJ3DJ.js";
|
|
13
13
|
import {
|
|
14
14
|
TurnMetrics,
|
|
15
15
|
buildAgentReminder,
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
buildTopLevelSystemPrompt,
|
|
18
18
|
createChatDoneEvent,
|
|
19
19
|
createMessageStartEvent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NGIOAASU.js";
|
|
21
21
|
import {
|
|
22
22
|
getCurrentContextWindowId,
|
|
23
23
|
getCurrentWindowMessageOptions,
|
|
24
24
|
getEventStore
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RNXMN5QY.js";
|
|
26
26
|
import {
|
|
27
27
|
buildSnapshotFromSessionState
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AGYP7AUV.js";
|
|
29
29
|
import {
|
|
30
30
|
findAgentById,
|
|
31
31
|
getRuntimeConfig,
|
|
32
32
|
getSubAgents,
|
|
33
33
|
loadAllAgentsDefault,
|
|
34
34
|
resolveDefaultAgentId
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7TFKWFY3.js";
|
|
36
36
|
import {
|
|
37
37
|
logger
|
|
38
38
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -69,7 +69,7 @@ function resolveAgentDef(sessionManager, sessionId) {
|
|
|
69
69
|
}
|
|
70
70
|
async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
|
|
71
71
|
const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
|
|
72
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
72
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-NLKP65HF.js");
|
|
73
73
|
const tools = getToolRegistryForAgent2(agentDef).definitions;
|
|
74
74
|
const toolFingerprint = getToolFingerprint(tools);
|
|
75
75
|
const allAgents = await loadAllAgentsDefault();
|
|
@@ -82,7 +82,7 @@ async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
|
|
|
82
82
|
async function computeSessionHash(sessionManager, sessionId) {
|
|
83
83
|
const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
|
|
84
84
|
const agentDef = await resolveAgentDef(sessionManager, sessionId);
|
|
85
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
85
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-NLKP65HF.js");
|
|
86
86
|
const tools = getToolRegistryForAgent2(agentDef).definitions;
|
|
87
87
|
const toolFingerprint = getToolFingerprint(tools);
|
|
88
88
|
return computeDynamicContextHash(instructionContent, skills, toolFingerprint);
|
|
@@ -100,7 +100,7 @@ async function applyDynamicContext(sessionManager, sessionId) {
|
|
|
100
100
|
|
|
101
101
|
// src/server/chat/orchestrator.ts
|
|
102
102
|
async function buildRetryPatterns() {
|
|
103
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
103
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-PFZWX6VY.js");
|
|
104
104
|
const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
|
|
105
105
|
if (!raw) {
|
|
106
106
|
const oldXmlProtection = getSetting("llm.disableXmlProtection");
|
|
@@ -362,4 +362,4 @@ export {
|
|
|
362
362
|
runChatTurn,
|
|
363
363
|
runAgentTurn
|
|
364
364
|
};
|
|
365
|
-
//# sourceMappingURL=chunk-
|
|
365
|
+
//# sourceMappingURL=chunk-U2ECZUAX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EZWSS7LG.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/settings.ts
|
|
6
6
|
var SETTINGS_KEYS = {
|
|
@@ -15,6 +15,7 @@ var SETTINGS_KEYS = {
|
|
|
15
15
|
DISPLAY_USER_PRESETS: "display.userPresets",
|
|
16
16
|
DISPLAY_FOLLOW_SYSTEM_THEME: "display.followSystemTheme",
|
|
17
17
|
DISPLAY_SHOW_OPEN_IN_EDITOR: "display.showOpenInEditorLinks",
|
|
18
|
+
DISPLAY_SHOW_CHANGELOG_ON_UPDATE: "display.showChangelogOnUpdate",
|
|
18
19
|
DISPLAY_MAX_VISIBLE_ITEMS: "display.maxVisibleItems",
|
|
19
20
|
LLM_DYNAMIC_SYSTEM_PROMPT: "llm.dynamicSystemPrompt",
|
|
20
21
|
CACHE_WARMING: "cache.warming",
|
|
@@ -41,6 +42,7 @@ var SETTINGS_DEFAULTS = {
|
|
|
41
42
|
[SETTINGS_KEYS.DISPLAY_THEME]: JSON.stringify({ preset: "dark" }),
|
|
42
43
|
[SETTINGS_KEYS.DISPLAY_FOLLOW_SYSTEM_THEME]: "true",
|
|
43
44
|
[SETTINGS_KEYS.DISPLAY_SHOW_OPEN_IN_EDITOR]: "false",
|
|
45
|
+
[SETTINGS_KEYS.DISPLAY_SHOW_CHANGELOG_ON_UPDATE]: "true",
|
|
44
46
|
[SETTINGS_KEYS.DISPLAY_MAX_VISIBLE_ITEMS]: "300",
|
|
45
47
|
[SETTINGS_KEYS.LLM_DYNAMIC_SYSTEM_PROMPT]: "false",
|
|
46
48
|
[SETTINGS_KEYS.CACHE_WARMING]: "false",
|
|
@@ -110,4 +112,4 @@ export {
|
|
|
110
112
|
getAllSettings,
|
|
111
113
|
getMaxVisibleItems
|
|
112
114
|
};
|
|
113
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-VFMHWU3E.js.map
|