openfox 2.0.138 → 2.0.139
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 +10 -0
- package/dist/CHANGELOG.md +10 -0
- package/dist/{chat-handler-AUB5HDQD.js → chat-handler-KGITQAXC.js} +22 -22
- package/dist/{chunk-QBWJCO5K.js → chunk-22DV5XO7.js} +3 -3
- package/dist/{chunk-MOYWDP73.js → chunk-46Q2SHGJ.js} +2 -2
- package/dist/{chunk-BHVR2YS5.js → chunk-4F4ARGAM.js} +2 -2
- package/dist/{chunk-X4PVR6AW.js → chunk-7OHSAZLF.js} +2 -2
- package/dist/{chunk-MMGHIPBU.js → chunk-AE2IBEUH.js} +2 -2
- package/dist/{chunk-2Q4THMD7.js → chunk-AM5FAZJK.js} +12 -12
- package/dist/{chunk-HI25RCRW.js → chunk-C543DUKL.js} +89 -89
- package/dist/{chunk-Q33DL67W.js → chunk-CRJ5J7U5.js} +2 -2
- package/dist/{chunk-BENMBAU2.js → chunk-CXB4HJAM.js} +7 -7
- package/dist/{chunk-5CZPHAHN.js → chunk-EGF3PREY.js} +9 -9
- package/dist/{chunk-G5GUQKLS.js → chunk-EJ5GFSD4.js} +2 -2
- package/dist/{chunk-QUAEH3MP.js → chunk-EMXMTCSY.js} +3 -1
- package/dist/{chunk-RJ2GRUVF.js → chunk-EXQI5TVW.js} +4 -4
- package/dist/{chunk-DG2YSWMC.js → chunk-FIEFBRTQ.js} +2 -2
- package/dist/{chunk-4LLGI372.js → chunk-GKRYQ56N.js} +34 -3
- package/dist/{chunk-4SBVW4UH.js → chunk-JLHYB445.js} +2 -2
- package/dist/{chunk-2OO46UAW.js → chunk-JTR3PC5I.js} +5 -5
- package/dist/{chunk-N5JKVNLH.js → chunk-LSO3IGJ4.js} +2 -2
- package/dist/{chunk-76C2PVOC.js → chunk-MAUQ6AW4.js} +6 -6
- package/dist/{chunk-N3PANDLT.js → chunk-N4RAVCLZ.js} +18 -18
- package/dist/{chunk-DBCWILV3.js → chunk-RG326HS4.js} +3 -3
- package/dist/{chunk-U7XCK7WL.js → chunk-TG65PHHY.js} +3 -3
- package/dist/{chunk-2KCREKHC.js → chunk-TVSIWRKE.js} +17 -17
- package/dist/{chunk-SAGDTQXD.js → chunk-UA2ATO3B.js} +3 -3
- package/dist/{chunk-64YDOCQR.js → chunk-VCLAPTWM.js} +2 -2
- package/dist/{chunk-XS2QQERB.js → chunk-YIEIVHCQ.js} +7 -7
- package/dist/chunk-Z7MGLDLK.js +7 -0
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-MVI3J7SN.js → client-6KC6SP2U.js} +4 -4
- package/dist/{compactor-KDTY4ERE.js → compactor-T7S4DIR3.js} +9 -9
- package/dist/{describe-image-AU6KBSWA.js → describe-image-TQOD52IC.js} +10 -10
- package/dist/{dynamic-context-SKHOUP4T.js → dynamic-context-3MAA4AQR.js} +10 -10
- package/dist/{events-ADE2KEHI.js → events-ZLP5V2YU.js} +6 -6
- package/dist/{export-import-SC3UW22Z.js → export-import-ZJFYZJOP.js} +7 -7
- package/dist/{folding-CM63AVSB.js → folding-BXMVJIFF.js} +4 -4
- package/dist/{http-client-C6UYWVWZ.js → http-client-VMRQHMF7.js} +3 -3
- package/dist/{launch-PTMPNZEN.js → launch-73LDMGCT.js} +22 -22
- package/dist/{manager-FSPRJCYT.js → manager-JZNNVDYR.js} +4 -4
- package/dist/{orchestrator-KRHMAVBN.js → orchestrator-MMHV6SZY.js} +21 -21
- package/dist/package.json +1 -1
- package/dist/{path-security-YP2MRJNS.js → path-security-V3XALT5E.js} +8 -8
- package/dist/{platform-KPKYBU54.js → platform-DBPLSLE4.js} +3 -3
- package/dist/{processor-QZOGF5ES.js → processor-2M7N26QG.js} +21 -21
- package/dist/{provider-SOC6Z25R.js → provider-MEENS4SB.js} +5 -5
- package/dist/{provider-manager-Y53SVVQ3.js → provider-manager-3MV7KDAD.js} +5 -5
- package/dist/{registry-FMDMGIUB.js → registry-PVJAAL2Y.js} +3 -3
- package/dist/{serve-LVDF4XLG.js → serve-FN5XKUTC.js} +27 -27
- package/dist/server/index.js +26 -26
- package/dist/{server-AIRQGHHR.js → server-B4AJ7ETE.js} +25 -25
- package/dist/{service-NKLQH647.js → service-JL55SFPL.js} +7 -7
- package/dist/{session-overrides-ANQBKV74.js → session-overrides-7OPGV7CQ.js} +5 -5
- package/dist/{sessions-GLYACE5R.js → sessions-VHS47DHO.js} +4 -4
- package/dist/{settings-WH6BVQCP.js → settings-HCSHADP5.js} +2 -2
- package/dist/{tasks-GPM3JAE6.js → tasks-ZMJCHW7E.js} +7 -7
- package/dist/{tools-NIPKV4YY.js → tools-LZHSSSK4.js} +19 -19
- package/dist/{update-Y5QXN3FK.js → update-L2XK6UDC.js} +2 -2
- package/dist/web/assets/{index-C1oW6oq0.css → index-D3bx1-1j.css} +1 -1
- package/dist/web/assets/{index-CTAslWsi.js → index-dJREs6rO.js} +58 -58
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OU7WD35E.js +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentTurn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AM5FAZJK.js";
|
|
4
4
|
import {
|
|
5
5
|
executeSubAgent,
|
|
6
6
|
getToolRegistryForAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N4RAVCLZ.js";
|
|
8
8
|
import {
|
|
9
9
|
gitSpawnEnv
|
|
10
10
|
} from "./chunk-J7GAZGZT.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
loadProjectWorkflows,
|
|
16
16
|
loadUserWorkflows,
|
|
17
17
|
normalizeWorkflowScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-22DV5XO7.js";
|
|
19
19
|
import {
|
|
20
20
|
serverT
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JLHYB445.js";
|
|
22
22
|
import {
|
|
23
23
|
TurnMetrics,
|
|
24
24
|
createMessageStartEvent
|
|
@@ -27,27 +27,27 @@ import {
|
|
|
27
27
|
checkAborted,
|
|
28
28
|
decodeUtf8,
|
|
29
29
|
spawnShellProcess
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UA2ATO3B.js";
|
|
31
31
|
import {
|
|
32
32
|
terminateProcessTree
|
|
33
33
|
} from "./chunk-I72ACQ6R.js";
|
|
34
34
|
import {
|
|
35
35
|
getCurrentContextWindowId,
|
|
36
36
|
getEventStore
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JTR3PC5I.js";
|
|
38
38
|
import {
|
|
39
39
|
findAgentById,
|
|
40
40
|
getRuntimeConfig,
|
|
41
41
|
loadAllAgentsDefault,
|
|
42
42
|
resolveDefaultAgentId
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-4F4ARGAM.js";
|
|
44
44
|
import {
|
|
45
45
|
createChatMessageMessage,
|
|
46
46
|
createSessionRunningMessage
|
|
47
47
|
} from "./chunk-OVAHNEFG.js";
|
|
48
48
|
import {
|
|
49
49
|
LLMError
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LSO3IGJ4.js";
|
|
51
51
|
import {
|
|
52
52
|
logger
|
|
53
53
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1023,4 +1023,4 @@ export {
|
|
|
1023
1023
|
abortRunnerRun,
|
|
1024
1024
|
launchWorkflowRun
|
|
1025
1025
|
};
|
|
1026
|
-
//# sourceMappingURL=chunk-
|
|
1026
|
+
//# sourceMappingURL=chunk-EGF3PREY.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-OA2FURC3.js";
|
|
5
5
|
import {
|
|
6
6
|
createLLMClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VCLAPTWM.js";
|
|
8
8
|
import {
|
|
9
9
|
getModelProfile
|
|
10
10
|
} from "./chunk-TS5WKTFB.js";
|
|
@@ -916,4 +916,4 @@ export {
|
|
|
916
916
|
parseDefaultModelSelection,
|
|
917
917
|
createProviderManager
|
|
918
918
|
};
|
|
919
|
-
//# sourceMappingURL=chunk-
|
|
919
|
+
//# sourceMappingURL=chunk-EJ5GFSD4.js.map
|
|
@@ -31,6 +31,7 @@ var SETTINGS_KEYS = {
|
|
|
31
31
|
DISPLAY_COLLAPSE_FAVORITES_BY_DEFAULT: "display.collapseFavoritesByDefault",
|
|
32
32
|
DISPLAY_MODEL_FAVORITES: "display.modelFavorites",
|
|
33
33
|
LLM_DYNAMIC_SYSTEM_PROMPT: "llm.dynamicSystemPrompt",
|
|
34
|
+
LLM_CAVEMAN_THINKING: "llm.cavemanThinking",
|
|
34
35
|
CACHE_WARMING: "cache.warming",
|
|
35
36
|
KEYBINDINGS: "keybindings",
|
|
36
37
|
RETRY_PATTERNS: "agent.retryPatterns",
|
|
@@ -74,6 +75,7 @@ var SETTINGS_DEFAULTS = {
|
|
|
74
75
|
[SETTINGS_KEYS.DISPLAY_COLLAPSE_FAVORITES_BY_DEFAULT]: "false",
|
|
75
76
|
[SETTINGS_KEYS.DISPLAY_MODEL_FAVORITES]: "[]",
|
|
76
77
|
[SETTINGS_KEYS.LLM_DYNAMIC_SYSTEM_PROMPT]: "false",
|
|
78
|
+
[SETTINGS_KEYS.LLM_CAVEMAN_THINKING]: "false",
|
|
77
79
|
[SETTINGS_KEYS.CACHE_WARMING]: "false",
|
|
78
80
|
[SETTINGS_KEYS.RETRY_PATTERNS]: JSON.stringify({ patterns: [], maxRetriesPerTurn: 10 }),
|
|
79
81
|
[SETTINGS_KEYS.KEYBINDINGS]: JSON.stringify({
|
|
@@ -168,4 +170,4 @@ export {
|
|
|
168
170
|
pruneFavoriteModels,
|
|
169
171
|
getMaxVisibleItems
|
|
170
172
|
};
|
|
171
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-EMXMTCSY.js.map
|
|
@@ -207,7 +207,7 @@ async function runCli(options) {
|
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
case "provider": {
|
|
210
|
-
const { runProviderCommand } = await import("./provider-
|
|
210
|
+
const { runProviderCommand } = await import("./provider-MEENS4SB.js");
|
|
211
211
|
const [, subcommand] = positionals;
|
|
212
212
|
await runProviderCommand(mode, subcommand);
|
|
213
213
|
break;
|
|
@@ -252,7 +252,7 @@ async function runCli(options) {
|
|
|
252
252
|
break;
|
|
253
253
|
}
|
|
254
254
|
case "update": {
|
|
255
|
-
const { runUpdate } = await import("./update-
|
|
255
|
+
const { runUpdate } = await import("./update-L2XK6UDC.js");
|
|
256
256
|
const code = await runUpdate();
|
|
257
257
|
if (code !== 0) {
|
|
258
258
|
process.exit(code);
|
|
@@ -265,7 +265,7 @@ async function runCli(options) {
|
|
|
265
265
|
if (!configExists) {
|
|
266
266
|
await runNetworkSetup(mode);
|
|
267
267
|
}
|
|
268
|
-
const { runServe } = await import("./serve-
|
|
268
|
+
const { runServe } = await import("./serve-FN5XKUTC.js");
|
|
269
269
|
const serveOptions = { mode };
|
|
270
270
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
271
271
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -277,4 +277,4 @@ async function runCli(options) {
|
|
|
277
277
|
export {
|
|
278
278
|
runCli
|
|
279
279
|
};
|
|
280
|
-
//# sourceMappingURL=chunk-
|
|
280
|
+
//# sourceMappingURL=chunk-EXQI5TVW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateSessionMcpDisabledServers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7OHSAZLF.js";
|
|
4
4
|
import {
|
|
5
5
|
getProject
|
|
6
6
|
} from "./chunk-DPFET73G.js";
|
|
@@ -96,4 +96,4 @@ export {
|
|
|
96
96
|
computeDisabledServersForProject,
|
|
97
97
|
initSessionMcpOverrides
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
99
|
+
//# sourceMappingURL=chunk-FIEFBRTQ.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPlatformShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-46Q2SHGJ.js";
|
|
4
|
+
import {
|
|
5
|
+
SETTINGS_KEYS,
|
|
6
|
+
getSetting
|
|
7
|
+
} from "./chunk-EMXMTCSY.js";
|
|
4
8
|
|
|
5
9
|
// src/server/tools/tool-policy.ts
|
|
6
10
|
var ALWAYS_ALLOWED = /* @__PURE__ */ new Set(["step_done"]);
|
|
@@ -22,6 +26,30 @@ function computeEffectiveTools(allowedTools, type) {
|
|
|
22
26
|
|
|
23
27
|
// src/server/chat/prompts.ts
|
|
24
28
|
import { basename } from "path";
|
|
29
|
+
var CAVEMAN_THINKING_SECTION = `## THINKING STYLE
|
|
30
|
+
VERY IMPORTANT: think caveman style \u2014 fragments, no full sentences.
|
|
31
|
+
BANNED in thinking: "the", "a", "an", "I should", "Let me", "Need to", "Found it", "User asks", "Now, ".
|
|
32
|
+
NEVER restate the question or recap earlier steps. Each thinking block = one fresh fragment, straight to the point.
|
|
33
|
+
BAD vs GOOD:
|
|
34
|
+
- "Let me look at ChatInput.tsx." \u2192 "Check ChatInput.tsx."
|
|
35
|
+
- "I need to run the tests." \u2192 "Run tests."
|
|
36
|
+
- "I should read the file first." \u2192 "Read file first."
|
|
37
|
+
- "Let me search for the pause button." \u2192 "Search web/src for 'pause'."
|
|
38
|
+
- "User asks where the pause button is in the code." \u2192 "Question: pause button location."
|
|
39
|
+
- "Now, how is this exposed?" \u2192 "How exposed?"
|
|
40
|
+
- "I found the answer." \u2192 "Done."
|
|
41
|
+
Full trace example (one line per thinking block):
|
|
42
|
+
- "Question: pause button location. Plan mode \u2014 answer only, no criteria."
|
|
43
|
+
- "Search web/src for 'pause'."
|
|
44
|
+
- "ChatInput.tsx ~line 700, PauseIcon render."
|
|
45
|
+
- "Answer: ChatInput.tsx, pause/stop row, ~line 700."
|
|
46
|
+
More fragments:
|
|
47
|
+
- "Test red: title mismatch. Fix string in ChatInput."
|
|
48
|
+
- "Run typecheck after edit."
|
|
49
|
+
- "Read file before edit. Check imports."
|
|
50
|
+
- "Blocker: happy-dom, no layout. Assert classes."
|
|
51
|
+
- "Wait for dev server restart before testing."
|
|
52
|
+
Same meaning, far fewer tokens.`;
|
|
25
53
|
function buildBasePrompt(workdir, customInstructions, skills, modelName) {
|
|
26
54
|
const instructionsSection = customInstructions ? `
|
|
27
55
|
|
|
@@ -30,6 +58,9 @@ function buildBasePrompt(workdir, customInstructions, skills, modelName) {
|
|
|
30
58
|
${customInstructions}` : "";
|
|
31
59
|
const modelLine = modelName ? `
|
|
32
60
|
Model: ${modelName}` : "";
|
|
61
|
+
const cavemanSection = getSetting(SETTINGS_KEYS.LLM_CAVEMAN_THINKING) === "true" ? `
|
|
62
|
+
|
|
63
|
+
${CAVEMAN_THINKING_SECTION}` : "";
|
|
33
64
|
return `You are OpenFox, an agentic assistant.
|
|
34
65
|
|
|
35
66
|
Today's date is ${(/* @__PURE__ */ new Date()).toISOString().split("T")[0].replace(/-/g, "/")}
|
|
@@ -87,7 +118,7 @@ assistant: src/foo.c
|
|
|
87
118
|
|
|
88
119
|
user: write tests for new feature
|
|
89
120
|
assistant: [uses run_command tool to find where similar tests are defined, uses concurrent read file tool use blocks in one tool call to read relevant files at the same time, uses edit file tool to write new tests]
|
|
90
|
-
|
|
121
|
+
${cavemanSection}
|
|
91
122
|
## FILE REFERENCES
|
|
92
123
|
@ prefix, e.g. @src/index.ts or @web/components/.
|
|
93
124
|
Relative to the working directory above. Strip leading @ and resolve against working directory, never treat as absolute path.
|
|
@@ -246,4 +277,4 @@ export {
|
|
|
246
277
|
buildAgentSmallReminder,
|
|
247
278
|
COMPACTION_PROMPT
|
|
248
279
|
};
|
|
249
|
-
//# sourceMappingURL=chunk-
|
|
280
|
+
//# sourceMappingURL=chunk-GKRYQ56N.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EMXMTCSY.js";
|
|
5
5
|
import {
|
|
6
6
|
getLocale,
|
|
7
7
|
setLocale,
|
|
@@ -21,4 +21,4 @@ function serverT(tx, vars) {
|
|
|
21
21
|
export {
|
|
22
22
|
serverT
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-JLHYB445.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
foldSessionState,
|
|
7
7
|
spreadOptionalMessageFields,
|
|
8
8
|
trimSnapshotStreamingOutput
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AE2IBEUH.js";
|
|
10
10
|
import {
|
|
11
11
|
updateSessionMessageCount
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7OHSAZLF.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4F4ARGAM.js";
|
|
16
16
|
import {
|
|
17
17
|
SETTINGS_KEYS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EMXMTCSY.js";
|
|
19
19
|
import {
|
|
20
20
|
logger
|
|
21
21
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1489,4 +1489,4 @@ export {
|
|
|
1489
1489
|
truncateSessionMessages,
|
|
1490
1490
|
getRecentUserPromptsForSession
|
|
1491
1491
|
};
|
|
1492
|
-
//# sourceMappingURL=chunk-
|
|
1492
|
+
//# sourceMappingURL=chunk-JTR3PC5I.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EMXMTCSY.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -194,4 +194,4 @@ export {
|
|
|
194
194
|
ChatHttpClient,
|
|
195
195
|
OpenAIHttpClient
|
|
196
196
|
};
|
|
197
|
-
//# sourceMappingURL=chunk-
|
|
197
|
+
//# sourceMappingURL=chunk-LSO3IGJ4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JLHYB445.js";
|
|
4
4
|
import {
|
|
5
5
|
AskUserInterrupt
|
|
6
6
|
} from "./chunk-V5AC2TV7.js";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
PathAccessDeniedError,
|
|
9
9
|
registerPathConfirmation,
|
|
10
10
|
requestPathAccess
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RG326HS4.js";
|
|
12
12
|
import {
|
|
13
13
|
getEventStore
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JTR3PC5I.js";
|
|
15
15
|
import {
|
|
16
16
|
getRuntimeConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4F4ARGAM.js";
|
|
18
18
|
import {
|
|
19
19
|
createChatPathConfirmationMessage
|
|
20
20
|
} from "./chunk-OVAHNEFG.js";
|
|
@@ -48,7 +48,7 @@ async function requestUserConfirmation(context, toolLabel, desc) {
|
|
|
48
48
|
if (context.dangerLevel === "dangerous") return Promise.resolve(true);
|
|
49
49
|
if (toolLabel === "workspace" || toolLabel === "command") {
|
|
50
50
|
try {
|
|
51
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
51
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-HCSHADP5.js");
|
|
52
52
|
if (getSetting(SETTINGS_KEYS.CONFIRM_ON_WORKSPACE_ACTIONS) !== "true") {
|
|
53
53
|
return Promise.resolve(true);
|
|
54
54
|
}
|
|
@@ -1152,4 +1152,4 @@ export {
|
|
|
1152
1152
|
isDescribeImageEligible,
|
|
1153
1153
|
describeImageTool
|
|
1154
1154
|
};
|
|
1155
|
-
//# sourceMappingURL=chunk-
|
|
1155
|
+
//# sourceMappingURL=chunk-MAUQ6AW4.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getEnabledSkillMetadata,
|
|
5
5
|
isSkillEnabled,
|
|
6
6
|
loadAllSkills
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CRJ5J7U5.js";
|
|
8
8
|
import {
|
|
9
9
|
getGitBranch,
|
|
10
10
|
isGitRepository,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
getGateConfig,
|
|
15
15
|
isTaskConflictError,
|
|
16
16
|
isTaskGateError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-22DV5XO7.js";
|
|
18
18
|
import {
|
|
19
19
|
getSessionDisabledServers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FIEFBRTQ.js";
|
|
21
21
|
import {
|
|
22
22
|
buildSignal,
|
|
23
23
|
computeFileHash,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
requireSession,
|
|
34
34
|
validateActionWithPermission,
|
|
35
35
|
validateFileForWrite
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MAUQ6AW4.js";
|
|
37
37
|
import {
|
|
38
38
|
serverT
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JLHYB445.js";
|
|
40
40
|
import {
|
|
41
41
|
TurnMetrics,
|
|
42
42
|
clearLLMFailure,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
COMPACTION_PROMPT,
|
|
56
56
|
buildBasePrompt,
|
|
57
57
|
computeEffectiveTools
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GKRYQ56N.js";
|
|
59
59
|
import {
|
|
60
60
|
startInspectProxy
|
|
61
61
|
} from "./chunk-LW6MMSTD.js";
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
spawnShellProcess,
|
|
73
73
|
startProcessCommand,
|
|
74
74
|
stopProcess
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-UA2ATO3B.js";
|
|
76
76
|
import {
|
|
77
77
|
getMaxPerSession,
|
|
78
78
|
getSessionProcessCount,
|
|
@@ -93,12 +93,12 @@ import {
|
|
|
93
93
|
extractAbsolutePathsFromCommand,
|
|
94
94
|
extractSensitivePathsFromCommand,
|
|
95
95
|
resolveRelativeTraversals
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-RG326HS4.js";
|
|
97
97
|
import {
|
|
98
98
|
getCurrentContextWindowId,
|
|
99
99
|
getCurrentWindowMessageOptions,
|
|
100
100
|
getEventStore
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-JTR3PC5I.js";
|
|
102
102
|
import {
|
|
103
103
|
buildContextMessagesFromEventHistory,
|
|
104
104
|
foldContextState,
|
|
@@ -108,13 +108,13 @@ import {
|
|
|
108
108
|
handleToolResult,
|
|
109
109
|
reorderToolMessages,
|
|
110
110
|
stripOrphanedToolCalls
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-AE2IBEUH.js";
|
|
112
112
|
import {
|
|
113
113
|
findAgentById,
|
|
114
114
|
getRuntimeConfig,
|
|
115
115
|
getSubAgents,
|
|
116
116
|
loadAllAgentsDefault
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-4F4ARGAM.js";
|
|
118
118
|
import {
|
|
119
119
|
createChatDoneMessage,
|
|
120
120
|
createChatLLMRetryFailedMessage,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
SETTINGS_KEYS,
|
|
140
140
|
getSetting,
|
|
141
141
|
setSetting
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-EMXMTCSY.js";
|
|
143
143
|
import {
|
|
144
144
|
logger
|
|
145
145
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1729,7 +1729,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
1729
1729
|
currentMaxTokensOverride = void 0;
|
|
1730
1730
|
if (!compacting) {
|
|
1731
1731
|
const contextState = sessionManager.getContextState(sessionId);
|
|
1732
|
-
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-
|
|
1732
|
+
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-T7S4DIR3.js");
|
|
1733
1733
|
if (shouldCompact(
|
|
1734
1734
|
contextState.currentTokens,
|
|
1735
1735
|
contextState.maxTokens,
|
|
@@ -2445,7 +2445,7 @@ var callSubAgentTool = {
|
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
2447
|
try {
|
|
2448
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
2448
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-LZHSSSK4.js");
|
|
2449
2449
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
2450
2450
|
const turnMetrics = new TurnMetrics();
|
|
2451
2451
|
const result = await executeSubAgent({
|
|
@@ -3549,11 +3549,11 @@ var mcpConfigTool = createTool(
|
|
|
3549
3549
|
async function notifyContextChanged(sessionId) {
|
|
3550
3550
|
context.sessionManager.setDynamicContextChanged(sessionId, true);
|
|
3551
3551
|
mcpNotifyChanged?.(sessionId);
|
|
3552
|
-
const { injectContextDriftReminders } = await import("./dynamic-context-
|
|
3552
|
+
const { injectContextDriftReminders } = await import("./dynamic-context-3MAA4AQR.js");
|
|
3553
3553
|
await injectContextDriftReminders(context.sessionManager, sessionId);
|
|
3554
3554
|
}
|
|
3555
3555
|
async function rebuildTools() {
|
|
3556
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
3556
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-LZHSSSK4.js");
|
|
3557
3557
|
const mcpTools = createMcpTools(mcpManagerForTools);
|
|
3558
3558
|
setMcpTools2(mcpTools);
|
|
3559
3559
|
}
|
|
@@ -3562,7 +3562,7 @@ var mcpConfigTool = createTool(
|
|
|
3562
3562
|
if (servers.length === 0) {
|
|
3563
3563
|
return helpers.success(serverT({ en: "No MCP servers configured.", fr: "Aucun serveur MCP configur\xE9." }));
|
|
3564
3564
|
}
|
|
3565
|
-
const { getSessionDisabledServers: getSessionDisabledServers2 } = await import("./session-overrides-
|
|
3565
|
+
const { getSessionDisabledServers: getSessionDisabledServers2 } = await import("./session-overrides-7OPGV7CQ.js");
|
|
3566
3566
|
const disabledForSession = new Set(context.sessionId ? getSessionDisabledServers2(context.sessionId) : []);
|
|
3567
3567
|
const visibleServers = servers.filter((server) => !disabledForSession.has(server.name));
|
|
3568
3568
|
if (visibleServers.length === 0) {
|
|
@@ -4695,4 +4695,4 @@ export {
|
|
|
4695
4695
|
getToolRegistryForAgent,
|
|
4696
4696
|
createToolRegistry
|
|
4697
4697
|
};
|
|
4698
|
-
//# sourceMappingURL=chunk-
|
|
4698
|
+
//# sourceMappingURL=chunk-N4RAVCLZ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEventStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JTR3PC5I.js";
|
|
4
4
|
import {
|
|
5
5
|
createChatPathConfirmationMessage
|
|
6
6
|
} from "./chunk-OVAHNEFG.js";
|
|
7
7
|
import {
|
|
8
8
|
getPlatformShell
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-46Q2SHGJ.js";
|
|
10
10
|
|
|
11
11
|
// src/server/tools/path-security.ts
|
|
12
12
|
import { realpath } from "fs/promises";
|
|
@@ -956,4 +956,4 @@ export {
|
|
|
956
956
|
getConfirmationSessionId,
|
|
957
957
|
getPendingConfirmationsBySession
|
|
958
958
|
};
|
|
959
|
-
//# sourceMappingURL=chunk-
|
|
959
|
+
//# sourceMappingURL=chunk-RG326HS4.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HEYU7FAY.js";
|
|
4
4
|
import {
|
|
5
5
|
COMPACTION_PROMPT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GKRYQ56N.js";
|
|
7
7
|
import {
|
|
8
8
|
getCurrentWindowMessageOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JTR3PC5I.js";
|
|
10
10
|
|
|
11
11
|
// src/server/context/compactor.ts
|
|
12
12
|
function appendCompactionPrompt(sessionId, append) {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
COMPACTION_MAX_RATIO,
|
|
37
37
|
shouldCompact
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-TG65PHHY.js.map
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
generateSessionNameForSession,
|
|
3
3
|
getSessionMessageCount,
|
|
4
4
|
needsNameGeneration
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YIEIVHCQ.js";
|
|
6
6
|
import {
|
|
7
7
|
launchWorkflowRun
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EGF3PREY.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AM5FAZJK.js";
|
|
12
12
|
import {
|
|
13
13
|
applyDynamicContext,
|
|
14
14
|
computeSessionHash,
|
|
15
15
|
computeUnifiedDiff
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CXB4HJAM.js";
|
|
17
17
|
import {
|
|
18
18
|
devServerManager
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N4RAVCLZ.js";
|
|
20
20
|
import {
|
|
21
21
|
gitSpawnEnv
|
|
22
22
|
} from "./chunk-J7GAZGZT.js";
|
|
23
23
|
import {
|
|
24
24
|
serverT
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JLHYB445.js";
|
|
26
26
|
import {
|
|
27
27
|
appendCompactionPrompt
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TG65PHHY.js";
|
|
29
29
|
import {
|
|
30
30
|
hasRecentLLMFailure,
|
|
31
31
|
interruptLLMRetryWait
|
|
32
32
|
} from "./chunk-HEYU7FAY.js";
|
|
33
33
|
import {
|
|
34
34
|
onProcessEvent
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UA2ATO3B.js";
|
|
36
36
|
import {
|
|
37
37
|
killProcessTree
|
|
38
38
|
} from "./chunk-I72ACQ6R.js";
|
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
combineEventsWithSnapshot,
|
|
45
45
|
getEventStore
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-JTR3PC5I.js";
|
|
47
47
|
import {
|
|
48
48
|
buildMessagesFromStoredEvents,
|
|
49
49
|
foldPendingConfirmations
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-AE2IBEUH.js";
|
|
51
51
|
import {
|
|
52
52
|
getRuntimeConfig
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4F4ARGAM.js";
|
|
54
54
|
import {
|
|
55
55
|
createChatErrorMessage,
|
|
56
56
|
createChatMessageMessage,
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
} from "./chunk-OVAHNEFG.js";
|
|
70
70
|
import {
|
|
71
71
|
getPlatformShell
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-46Q2SHGJ.js";
|
|
73
73
|
import {
|
|
74
74
|
getMaxVisibleItems
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-EMXMTCSY.js";
|
|
76
76
|
import {
|
|
77
77
|
logger
|
|
78
78
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1350,8 +1350,8 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1350
1350
|
}
|
|
1351
1351
|
const session = sessionManager.requireSession(sessionId);
|
|
1352
1352
|
try {
|
|
1353
|
-
const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-
|
|
1354
|
-
const allAgents = await import("./registry-
|
|
1353
|
+
const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-3MAA4AQR.js");
|
|
1354
|
+
const allAgents = await import("./registry-PVJAAL2Y.js");
|
|
1355
1355
|
const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
|
|
1356
1356
|
const modelName = session.providerModel ?? _providerManager?.getCurrentModel();
|
|
1357
1357
|
const {
|
|
@@ -1362,7 +1362,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1362
1362
|
const oldCached = sessionManager.getCachedPrompt(sessionId);
|
|
1363
1363
|
const oldPrompt = oldCached?.systemPrompt;
|
|
1364
1364
|
const diff = oldPrompt ? computeUnifiedDiff(oldPrompt, newPrompt) : [];
|
|
1365
|
-
const { getToolRegistryForAgent } = await import("./tools-
|
|
1365
|
+
const { getToolRegistryForAgent } = await import("./tools-LZHSSSK4.js");
|
|
1366
1366
|
const unfilteredTools = getToolRegistryForAgent(agentDef).definitions;
|
|
1367
1367
|
const toolDiff = computePreviewToolDiff(oldCached?.tools, unfilteredTools, newTools);
|
|
1368
1368
|
send({
|
|
@@ -1735,4 +1735,4 @@ export {
|
|
|
1735
1735
|
signalMcpReady,
|
|
1736
1736
|
createWebSocketServer
|
|
1737
1737
|
};
|
|
1738
|
-
//# sourceMappingURL=chunk-
|
|
1738
|
+
//# sourceMappingURL=chunk-TVSIWRKE.js.map
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from "./chunk-I72ACQ6R.js";
|
|
12
12
|
import {
|
|
13
13
|
getPlatformShell
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-46Q2SHGJ.js";
|
|
15
15
|
import {
|
|
16
16
|
SETTINGS_KEYS,
|
|
17
17
|
getSetting
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EMXMTCSY.js";
|
|
19
19
|
|
|
20
20
|
// src/server/utils/shell.ts
|
|
21
21
|
import { spawn } from "child_process";
|
|
@@ -214,4 +214,4 @@ export {
|
|
|
214
214
|
getSessionProcesses2 as getSessionProcesses,
|
|
215
215
|
getProcessLogs
|
|
216
216
|
};
|
|
217
|
-
//# sourceMappingURL=chunk-
|
|
217
|
+
//# sourceMappingURL=chunk-UA2ATO3B.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
DONE,
|
|
21
21
|
LLMError,
|
|
22
22
|
OpenAIHttpClient
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LSO3IGJ4.js";
|
|
24
24
|
import {
|
|
25
25
|
logger
|
|
26
26
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -800,4 +800,4 @@ function createLLMClient(config, initialBackend = config.llm.backend ?? "unknown
|
|
|
800
800
|
export {
|
|
801
801
|
createLLMClient
|
|
802
802
|
};
|
|
803
|
-
//# sourceMappingURL=chunk-
|
|
803
|
+
//# sourceMappingURL=chunk-VCLAPTWM.js.map
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
combineEventsWithSnapshot,
|
|
6
6
|
getEventStore
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JTR3PC5I.js";
|
|
8
8
|
import {
|
|
9
9
|
buildMessagesFromStoredEvents,
|
|
10
10
|
foldPendingConfirmations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AE2IBEUH.js";
|
|
12
12
|
import {
|
|
13
13
|
updateSessionMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7OHSAZLF.js";
|
|
15
15
|
import {
|
|
16
16
|
getRuntimeConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4F4ARGAM.js";
|
|
18
18
|
import {
|
|
19
19
|
createContextStateMessage,
|
|
20
20
|
createSessionStateMessage
|
|
21
21
|
} from "./chunk-OVAHNEFG.js";
|
|
22
22
|
import {
|
|
23
23
|
getMaxVisibleItems
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EMXMTCSY.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
27
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -162,7 +162,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
162
162
|
client = deps.getLLMClient();
|
|
163
163
|
client.setModel(providerConfig.model);
|
|
164
164
|
} else if (providerConfig) {
|
|
165
|
-
const { createLLMClient } = await import("./client-
|
|
165
|
+
const { createLLMClient } = await import("./client-6KC6SP2U.js");
|
|
166
166
|
client = createLLMClient(
|
|
167
167
|
{
|
|
168
168
|
llm: {
|
|
@@ -216,4 +216,4 @@ export {
|
|
|
216
216
|
needsNameGeneration,
|
|
217
217
|
generateSessionNameForSession
|
|
218
218
|
};
|
|
219
|
-
//# sourceMappingURL=chunk-
|
|
219
|
+
//# sourceMappingURL=chunk-YIEIVHCQ.js.map
|