openfox 2.0.130 → 2.0.132
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 +23 -0
- package/dist/CHANGELOG.md +23 -0
- package/dist/{chat-handler-4WCKNCQV.js → chat-handler-T47GATL5.js} +24 -24
- package/dist/chunk-55RHB5JB.js +7 -0
- package/dist/{chunk-CYQUM42E.js → chunk-5JWJEZJ3.js} +2 -2
- package/dist/{chunk-OXMOKQPW.js → chunk-6EZDW4JS.js} +2 -2
- package/dist/{chunk-CGCEAKG5.js → chunk-7JVBDBXE.js} +2 -2
- package/dist/{chunk-64N4CZFT.js → chunk-BKMWZTNO.js} +3 -3
- package/dist/{chunk-DHDIKVRT.js → chunk-CLDCHOEA.js} +3 -3
- package/dist/{chunk-3B232XG4.js → chunk-DPFET73G.js} +2 -2
- package/dist/{chunk-JHA2SPCU.js → chunk-ELYHHEYL.js} +3 -3
- package/dist/{chunk-KHKRHGA6.js → chunk-EOHEDEIH.js} +4 -4
- package/dist/{chunk-JSONBGSY.js → chunk-FEIRWXLX.js} +4 -4
- package/dist/{chunk-AYCB32NI.js → chunk-FGNJMKDV.js} +5 -5
- package/dist/{chunk-EVVWDRM5.js → chunk-GFW2HWJ6.js} +18 -12
- package/dist/{chunk-2OMXXCJJ.js → chunk-GVOOOV7M.js} +8 -8
- package/dist/{chunk-X24XN2M2.js → chunk-HXHPKGJE.js} +19 -19
- package/dist/{chunk-OYBUJIC3.js → chunk-JU757HVI.js} +5 -1
- package/dist/{chunk-X3FHIDLT.js → chunk-KWAHD2JA.js} +13 -8
- package/dist/{chunk-3DZSHRXE.js → chunk-LQKXJPKP.js} +2 -2
- package/dist/{chunk-EHFIUXWZ.js → chunk-LW6MMSTD.js} +2 -2
- package/dist/{chunk-JKRMMNUR.js → chunk-M5T4RDPJ.js} +2 -2
- package/dist/{chunk-6QZVAOSA.js → chunk-MGEYAYGU.js} +2 -2
- package/dist/{chunk-DQTXXHD2.js → chunk-MQMPIXON.js} +3 -3
- package/dist/{chunk-35GQEIH2.js → chunk-RRUSYVQD.js} +7 -7
- package/dist/{chunk-DYIDDGMN.js → chunk-RUFXKUOL.js} +16 -16
- package/dist/{chunk-ZRCRGPGT.js → chunk-TACWRDDC.js} +3 -3
- package/dist/{chunk-25DAVVTP.js → chunk-VXG3AFFY.js} +46 -48
- package/dist/{chunk-Y3BSBKHY.js → chunk-XE6UC5Z3.js} +2 -2
- package/dist/{chunk-VJNA5AOB.js → chunk-Y6ZGHOKM.js} +3 -3
- package/dist/{chunk-VUIXQ6X4.js → chunk-ZL4IAFF3.js} +3 -3
- package/dist/{chunk-DI5GTIAU.js → chunk-ZSBNXJZ5.js} +132 -115
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-26RSMUAX.js → client-2K6PPPJJ.js} +5 -5
- package/dist/{compactor-HYBSSFKP.js → compactor-OEJAA2YP.js} +11 -11
- package/dist/{dynamic-context-2VLACYK4.js → dynamic-context-NJZKAZE3.js} +14 -12
- package/dist/{events-D33QXGSX.js → events-ZJPRGVL2.js} +8 -8
- package/dist/{folding-QOKBKUU6.js → folding-QRZOHY2I.js} +6 -6
- package/dist/http-client-P4XTKAZA.js +11 -0
- package/dist/{inspect-proxy-UKPU3Z64.js → inspect-proxy-A3OROWPG.js} +4 -4
- package/dist/{launch-KFENN5GS.js → launch-6I5ADTVT.js} +24 -24
- package/dist/{manager-VRHX7BVI.js → manager-TMBFBCQL.js} +5 -5
- package/dist/{orchestrator-PLTAEOMR.js → orchestrator-GX22Y5EM.js} +23 -23
- package/dist/package.json +1 -1
- package/dist/{path-security-4WQJGU3Z.js → path-security-CBACXAMS.js} +10 -10
- package/dist/{platform-MWWJ6OKV.js → platform-5LQXOZO3.js} +4 -4
- package/dist/{processor-K4WHZKE6.js → processor-FMEULCNQ.js} +23 -23
- package/dist/{project-creator-JF3YVQAH.js → project-creator-6AGQTNXB.js} +3 -3
- package/dist/{projects-TPSLCJP2.js → projects-5U37RUTL.js} +3 -3
- package/dist/{provider-CVM33XHW.js → provider-NWRGNGS3.js} +6 -6
- package/dist/{provider-manager-7NL5EQLG.js → provider-manager-BO5ZBG3T.js} +6 -6
- package/dist/{registry-KFFZFIZT.js → registry-CMSSZHDC.js} +5 -5
- package/dist/{serve-KQAPXO5X.js → serve-BFGHUM4Y.js} +29 -29
- package/dist/server/index.d.ts +10 -1
- package/dist/server/index.js +28 -28
- package/dist/server-WPWUYB6I.js +56 -0
- package/dist/{service-7TLOSFAO.js → service-O3LCO3TQ.js} +8 -8
- package/dist/{session-overrides-U573CU2V.js → session-overrides-OECQYRDK.js} +7 -7
- package/dist/{sessions-LUVWWRFO.js → sessions-NMPX5ICI.js} +6 -6
- package/dist/{settings-LMAMF2X7.js → settings-MDCRNQBY.js} +3 -3
- package/dist/{tasks-FA6Z52H2.js → tasks-WOC3QUFA.js} +8 -8
- package/dist/{tools-SSPC3UQZ.js → tools-CW6POKUL.js} +21 -21
- package/dist/{update-QRGK67DB.js → update-VPCDKFLD.js} +2 -2
- package/dist/web/assets/{index-0PVQNOfW.js → index-Bx5r3aJx.js} +70 -70
- package/dist/web/assets/{index-Ds94aclE.css → index-Y300llHY.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/{workspace-6CUE26YA.js → workspace-LM646OHC.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-3OBZ55SX.js +0 -7
- package/dist/http-client-MGAJTGPR.js +0 -11
- package/dist/server-RPKVKMDD.js +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.132 - 2026-08-28
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
|
|
7
|
+
- **Deterministic workspace commit-and-push flow** — landing workspace changes is now an unconditional recipe: push a temp branch, merge back into the original repo, then delete the workspace and push to the remote
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **OpenCode Go models work on unset backends** — gpt-5.6-luna, grok-4.6 and muse-spark route to the Responses API even when the provider backend is unknown, instead of being rejected with HTTP 400
|
|
12
|
+
- **Agent now calls newly added tools** — drift reminders explicitly tell the agent that fresh MCP tools are callable like any other tool
|
|
13
|
+
|
|
14
|
+
## 2.0.131 - 2026-08-28
|
|
15
|
+
|
|
16
|
+
### Enhancements
|
|
17
|
+
|
|
18
|
+
- **Tool-change reminders embed full schemas** — added and changed tools carry their exact JSON definition, so no rebase is needed to act on them
|
|
19
|
+
- **Rebase system prompt shows a pending badge** — a "changes" indicator lights up the rebase action whenever drift awaits your approval
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **Tool changes no longer wipe the prefix cache** — deep context caching survives releases and restarts, so 400k-token sessions skip the full re-prefill
|
|
24
|
+
- **No spurious prompt-diff checks after restart** — only a tool change no longer trips the prompt drift detector
|
|
25
|
+
|
|
3
26
|
## 2.0.130 - 2026-08-28
|
|
4
27
|
|
|
5
28
|
### Features
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.132 - 2026-08-28
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
|
|
7
|
+
- **Deterministic workspace commit-and-push flow** — landing workspace changes is now an unconditional recipe: push a temp branch, merge back into the original repo, then delete the workspace and push to the remote
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **OpenCode Go models work on unset backends** — gpt-5.6-luna, grok-4.6 and muse-spark route to the Responses API even when the provider backend is unknown, instead of being rejected with HTTP 400
|
|
12
|
+
- **Agent now calls newly added tools** — drift reminders explicitly tell the agent that fresh MCP tools are callable like any other tool
|
|
13
|
+
|
|
14
|
+
## 2.0.131 - 2026-08-28
|
|
15
|
+
|
|
16
|
+
### Enhancements
|
|
17
|
+
|
|
18
|
+
- **Tool-change reminders embed full schemas** — added and changed tools carry their exact JSON definition, so no rebase is needed to act on them
|
|
19
|
+
- **Rebase system prompt shows a pending badge** — a "changes" indicator lights up the rebase action whenever drift awaits your approval
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **Tool changes no longer wipe the prefix cache** — deep context caching survives releases and restarts, so 400k-token sessions skip the full re-prefill
|
|
24
|
+
- **No spurious prompt-diff checks after restart** — only a tool change no longer trips the prompt drift detector
|
|
25
|
+
|
|
3
26
|
## 2.0.130 - 2026-08-28
|
|
4
27
|
|
|
5
28
|
### Features
|
|
@@ -2,32 +2,32 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
generateSessionNameForSession
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RRUSYVQD.js";
|
|
6
6
|
import {
|
|
7
7
|
runChatTurn
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-GFW2HWJ6.js";
|
|
9
|
+
import "./chunk-HXHPKGJE.js";
|
|
10
|
+
import "./chunk-XE6UC5Z3.js";
|
|
11
11
|
import "./chunk-J7GAZGZT.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FEIRWXLX.js";
|
|
13
|
+
import "./chunk-TACWRDDC.js";
|
|
14
14
|
import "./chunk-7ET46SNE.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-LW6MMSTD.js";
|
|
16
|
+
import "./chunk-MQMPIXON.js";
|
|
17
17
|
import "./chunk-I72ACQ6R.js";
|
|
18
18
|
import "./chunk-JE7LW7Y6.js";
|
|
19
19
|
import "./chunk-OAN4BXEW.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-VXG3AFFY.js";
|
|
21
|
+
import "./chunk-BKMWZTNO.js";
|
|
22
|
+
import "./chunk-7JVBDBXE.js";
|
|
23
23
|
import "./chunk-JURM3RPZ.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-Y6ZGHOKM.js";
|
|
25
25
|
import {
|
|
26
26
|
getEventStore
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-FGNJMKDV.js";
|
|
28
|
+
import "./chunk-M5T4RDPJ.js";
|
|
29
|
+
import "./chunk-KWAHD2JA.js";
|
|
30
|
+
import "./chunk-ELYHHEYL.js";
|
|
31
31
|
import "./chunk-OSXPQSLW.js";
|
|
32
32
|
import {
|
|
33
33
|
createChatMessageMessage,
|
|
@@ -35,19 +35,19 @@ import {
|
|
|
35
35
|
createSessionRunningMessage
|
|
36
36
|
} from "./chunk-P57IBMK4.js";
|
|
37
37
|
import "./chunk-LCLH6ZUL.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-MGEYAYGU.js";
|
|
39
|
+
import "./chunk-5JWJEZJ3.js";
|
|
40
40
|
import "./chunk-OA2FURC3.js";
|
|
41
41
|
import "./chunk-J2GP3J3X.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-DPFET73G.js";
|
|
43
|
+
import "./chunk-CLDCHOEA.js";
|
|
44
44
|
import "./chunk-TS5WKTFB.js";
|
|
45
45
|
import "./chunk-UV6IH6HK.js";
|
|
46
46
|
import "./chunk-HNCM3D7Y.js";
|
|
47
47
|
import "./chunk-EUOWCVU6.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-6EZDW4JS.js";
|
|
49
|
+
import "./chunk-LQKXJPKP.js";
|
|
50
|
+
import "./chunk-JU757HVI.js";
|
|
51
51
|
import "./chunk-2AI7VYPN.js";
|
|
52
52
|
import "./chunk-K44MW7JJ.js";
|
|
53
53
|
import "./chunk-HCYSGLY2.js";
|
|
@@ -174,4 +174,4 @@ export {
|
|
|
174
174
|
startChatSession,
|
|
175
175
|
stopSessionExecution
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=chat-handler-
|
|
177
|
+
//# sourceMappingURL=chat-handler-T47GATL5.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-CLDCHOEA.js";
|
|
8
8
|
import {
|
|
9
9
|
getModelProfile
|
|
10
10
|
} from "./chunk-TS5WKTFB.js";
|
|
@@ -895,4 +895,4 @@ export {
|
|
|
895
895
|
parseDefaultModelSelection,
|
|
896
896
|
createProviderManager
|
|
897
897
|
};
|
|
898
|
-
//# sourceMappingURL=chunk-
|
|
898
|
+
//# sourceMappingURL=chunk-5JWJEZJ3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LQKXJPKP.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-6EZDW4JS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPlatformShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MGEYAYGU.js";
|
|
4
4
|
|
|
5
5
|
// src/server/tools/tool-policy.ts
|
|
6
6
|
var ALWAYS_ALLOWED = /* @__PURE__ */ new Set(["step_done"]);
|
|
@@ -246,4 +246,4 @@ export {
|
|
|
246
246
|
buildAgentSmallReminder,
|
|
247
247
|
COMPACTION_PROMPT
|
|
248
248
|
};
|
|
249
|
-
//# sourceMappingURL=chunk-
|
|
249
|
+
//# sourceMappingURL=chunk-7JVBDBXE.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OSXPQSLW.js";
|
|
6
6
|
import {
|
|
7
7
|
getProject
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DPFET73G.js";
|
|
9
9
|
import {
|
|
10
10
|
SETTINGS_KEYS,
|
|
11
11
|
deleteSetting,
|
|
12
12
|
getSetting,
|
|
13
13
|
setSetting
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LQKXJPKP.js";
|
|
15
15
|
|
|
16
16
|
// src/server/context/instructions.ts
|
|
17
17
|
import { readFile, access } from "fs/promises";
|
|
@@ -440,4 +440,4 @@ export {
|
|
|
440
440
|
deleteSkill,
|
|
441
441
|
deleteProjectSkill
|
|
442
442
|
};
|
|
443
|
-
//# sourceMappingURL=chunk-
|
|
443
|
+
//# sourceMappingURL=chunk-BKMWZTNO.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
DONE,
|
|
21
21
|
LLMError,
|
|
22
22
|
OpenAIHttpClient
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6EZDW4JS.js";
|
|
24
24
|
import {
|
|
25
25
|
logger
|
|
26
26
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -46,7 +46,7 @@ function resolveApiProtocol(input) {
|
|
|
46
46
|
const { model, backend, profileApiProtocol, explicitApiProtocol } = input;
|
|
47
47
|
if (explicitApiProtocol) return explicitApiProtocol;
|
|
48
48
|
if (backend === "openai" && profileApiProtocol) return profileApiProtocol;
|
|
49
|
-
if (backend === "opencode-go") {
|
|
49
|
+
if (backend === "opencode-go" || backend === "unknown") {
|
|
50
50
|
const matched = matchesRules(model, OPENCODE_GO_RESPONSES_RULES);
|
|
51
51
|
if (matched) return matched;
|
|
52
52
|
}
|
|
@@ -768,4 +768,4 @@ function createLLMClient(config, initialBackend = config.llm.backend ?? "unknown
|
|
|
768
768
|
export {
|
|
769
769
|
createLLMClient
|
|
770
770
|
};
|
|
771
|
-
//# sourceMappingURL=chunk-
|
|
771
|
+
//# sourceMappingURL=chunk-CLDCHOEA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JU757HVI.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/projects.ts
|
|
6
6
|
function createProject(name, workdir) {
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
toggleStar,
|
|
145
145
|
getProjectDefaultAgent
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-DPFET73G.js.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-OSXPQSLW.js";
|
|
4
4
|
import {
|
|
5
5
|
getProjectDefaultAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DPFET73G.js";
|
|
7
7
|
import {
|
|
8
8
|
SETTINGS_KEYS,
|
|
9
9
|
getSetting
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LQKXJPKP.js";
|
|
11
11
|
import {
|
|
12
12
|
logger
|
|
13
13
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -352,4 +352,4 @@ export {
|
|
|
352
352
|
getOverrideAgentIds,
|
|
353
353
|
resolveDefaultAgentId
|
|
354
354
|
};
|
|
355
|
-
//# sourceMappingURL=chunk-
|
|
355
|
+
//# sourceMappingURL=chunk-ELYHHEYL.js.map
|
|
@@ -165,7 +165,7 @@ async function runCli(options) {
|
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
167
|
case "provider": {
|
|
168
|
-
const { runProviderCommand } = await import("./provider-
|
|
168
|
+
const { runProviderCommand } = await import("./provider-NWRGNGS3.js");
|
|
169
169
|
const [, subcommand] = positionals;
|
|
170
170
|
await runProviderCommand(mode, subcommand);
|
|
171
171
|
break;
|
|
@@ -210,7 +210,7 @@ async function runCli(options) {
|
|
|
210
210
|
break;
|
|
211
211
|
}
|
|
212
212
|
case "update": {
|
|
213
|
-
const { runUpdate } = await import("./update-
|
|
213
|
+
const { runUpdate } = await import("./update-VPCDKFLD.js");
|
|
214
214
|
const code = await runUpdate();
|
|
215
215
|
if (code !== 0) {
|
|
216
216
|
process.exit(code);
|
|
@@ -223,7 +223,7 @@ async function runCli(options) {
|
|
|
223
223
|
if (!configExists) {
|
|
224
224
|
await runNetworkSetup(mode);
|
|
225
225
|
}
|
|
226
|
-
const { runServe } = await import("./serve-
|
|
226
|
+
const { runServe } = await import("./serve-BFGHUM4Y.js");
|
|
227
227
|
const serveOptions = { mode };
|
|
228
228
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
229
229
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -235,4 +235,4 @@ async function runCli(options) {
|
|
|
235
235
|
export {
|
|
236
236
|
runCli
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
238
|
+
//# sourceMappingURL=chunk-EOHEDEIH.js.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-OSXPQSLW.js";
|
|
9
9
|
import {
|
|
10
10
|
parseDefaultModelSelection
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5JWJEZJ3.js";
|
|
12
12
|
import {
|
|
13
13
|
getProject
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DPFET73G.js";
|
|
15
15
|
import {
|
|
16
16
|
getDatabase
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JU757HVI.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1119,4 +1119,4 @@ export {
|
|
|
1119
1119
|
isTaskGateError,
|
|
1120
1120
|
createTasksService
|
|
1121
1121
|
};
|
|
1122
|
-
//# sourceMappingURL=chunk-
|
|
1122
|
+
//# sourceMappingURL=chunk-FEIRWXLX.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
foldSessionState,
|
|
7
7
|
spreadOptionalMessageFields,
|
|
8
8
|
trimSnapshotStreamingOutput
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M5T4RDPJ.js";
|
|
10
10
|
import {
|
|
11
11
|
updateSessionMessageCount
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KWAHD2JA.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ELYHHEYL.js";
|
|
16
16
|
import {
|
|
17
17
|
SETTINGS_KEYS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LQKXJPKP.js";
|
|
19
19
|
import {
|
|
20
20
|
logger
|
|
21
21
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1465,4 +1465,4 @@ export {
|
|
|
1465
1465
|
truncateSessionMessages,
|
|
1466
1466
|
getRecentUserPromptsForSession
|
|
1467
1467
|
};
|
|
1468
|
-
//# sourceMappingURL=chunk-
|
|
1468
|
+
//# sourceMappingURL=chunk-FGNJMKDV.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getToolRegistryForAgent,
|
|
5
5
|
processEventsForConversation,
|
|
6
6
|
runTopLevelAgentLoop
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HXHPKGJE.js";
|
|
8
8
|
import {
|
|
9
9
|
TurnMetrics,
|
|
10
10
|
createChatDoneEvent,
|
|
@@ -15,34 +15,34 @@ import {
|
|
|
15
15
|
checkToolChangesAndInject,
|
|
16
16
|
computeDynamicContextHash,
|
|
17
17
|
getToolFingerprint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VXG3AFFY.js";
|
|
19
19
|
import {
|
|
20
20
|
getAllInstructions,
|
|
21
21
|
getEnabledSkillMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BKMWZTNO.js";
|
|
23
23
|
import {
|
|
24
24
|
buildAgentReminder,
|
|
25
25
|
buildAgentSmallReminder,
|
|
26
26
|
buildTopLevelSystemPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7JVBDBXE.js";
|
|
28
28
|
import {
|
|
29
29
|
PathAccessDeniedError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Y6ZGHOKM.js";
|
|
31
31
|
import {
|
|
32
32
|
getCurrentContextWindowId,
|
|
33
33
|
getCurrentWindowMessageOptions,
|
|
34
34
|
getEventStore
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FGNJMKDV.js";
|
|
36
36
|
import {
|
|
37
37
|
buildSnapshotFromSessionState
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-M5T4RDPJ.js";
|
|
39
39
|
import {
|
|
40
40
|
findAgentById,
|
|
41
41
|
getRuntimeConfig,
|
|
42
42
|
getSubAgents,
|
|
43
43
|
loadAllAgentsDefault,
|
|
44
44
|
resolveDefaultAgentId
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ELYHHEYL.js";
|
|
46
46
|
import {
|
|
47
47
|
logger
|
|
48
48
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
|
|
53
53
|
// src/server/chat/orchestrator.ts
|
|
54
54
|
async function buildRetryPatterns() {
|
|
55
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
55
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-MDCRNQBY.js");
|
|
56
56
|
const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
|
|
57
57
|
if (!raw) {
|
|
58
58
|
const oldXmlProtection = getSetting("llm.disableXmlProtection");
|
|
@@ -314,7 +314,13 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
|
|
|
314
314
|
agentDef,
|
|
315
315
|
agentLlmClient.getModel()
|
|
316
316
|
);
|
|
317
|
-
options.sessionManager.setCachedPrompt(
|
|
317
|
+
options.sessionManager.setCachedPrompt(
|
|
318
|
+
options.sessionId,
|
|
319
|
+
result.systemPrompt,
|
|
320
|
+
result.tools,
|
|
321
|
+
result.hash,
|
|
322
|
+
result.promptHash
|
|
323
|
+
);
|
|
318
324
|
options.sessionManager.setAnnouncedPromptHash(options.sessionId, result.promptHash);
|
|
319
325
|
return createAssemblyResult({
|
|
320
326
|
systemPrompt: result.systemPrompt,
|
|
@@ -328,7 +334,7 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
|
|
|
328
334
|
getConversationMessages: buildGetConversationMessages(options.sessionId, resolveAgentClient, append),
|
|
329
335
|
injectAgentReminder: () => injectAgentReminder(options.sessionId, agentDef),
|
|
330
336
|
rebuildCachedContext: async () => {
|
|
331
|
-
const { applyDynamicContext } = await import("./dynamic-context-
|
|
337
|
+
const { applyDynamicContext } = await import("./dynamic-context-NJZKAZE3.js");
|
|
332
338
|
await applyDynamicContext(options.sessionManager, options.sessionId, agentLlmClient.getModel());
|
|
333
339
|
},
|
|
334
340
|
...options.initialCompacting ? { initialCompacting: true } : {},
|
|
@@ -358,4 +364,4 @@ export {
|
|
|
358
364
|
runChatTurn,
|
|
359
365
|
runAgentTurn
|
|
360
366
|
};
|
|
361
|
-
//# sourceMappingURL=chunk-
|
|
367
|
+
//# sourceMappingURL=chunk-GFW2HWJ6.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentTurn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GFW2HWJ6.js";
|
|
4
4
|
import {
|
|
5
5
|
executeSubAgent,
|
|
6
6
|
getToolRegistryForAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HXHPKGJE.js";
|
|
8
8
|
import {
|
|
9
9
|
gitSpawnEnv
|
|
10
10
|
} from "./chunk-J7GAZGZT.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
loadProjectWorkflows,
|
|
16
16
|
loadUserWorkflows,
|
|
17
17
|
normalizeWorkflowScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FEIRWXLX.js";
|
|
19
19
|
import {
|
|
20
20
|
TurnMetrics,
|
|
21
21
|
createMessageStartEvent
|
|
@@ -24,27 +24,27 @@ import {
|
|
|
24
24
|
checkAborted,
|
|
25
25
|
decodeUtf8,
|
|
26
26
|
spawnShellProcess
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MQMPIXON.js";
|
|
28
28
|
import {
|
|
29
29
|
terminateProcessTree
|
|
30
30
|
} from "./chunk-I72ACQ6R.js";
|
|
31
31
|
import {
|
|
32
32
|
getCurrentContextWindowId,
|
|
33
33
|
getEventStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FGNJMKDV.js";
|
|
35
35
|
import {
|
|
36
36
|
findAgentById,
|
|
37
37
|
getRuntimeConfig,
|
|
38
38
|
loadAllAgentsDefault,
|
|
39
39
|
resolveDefaultAgentId
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ELYHHEYL.js";
|
|
41
41
|
import {
|
|
42
42
|
createChatMessageMessage,
|
|
43
43
|
createSessionRunningMessage
|
|
44
44
|
} from "./chunk-P57IBMK4.js";
|
|
45
45
|
import {
|
|
46
46
|
LLMError
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-6EZDW4JS.js";
|
|
48
48
|
import {
|
|
49
49
|
logger
|
|
50
50
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1002,4 +1002,4 @@ export {
|
|
|
1002
1002
|
abortRunnerRun,
|
|
1003
1003
|
launchWorkflowRun
|
|
1004
1004
|
};
|
|
1005
|
-
//# sourceMappingURL=chunk-
|
|
1005
|
+
//# sourceMappingURL=chunk-GVOOOV7M.js.map
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
getGitBranch,
|
|
3
3
|
isGitRepository,
|
|
4
4
|
listWorkspaces
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XE6UC5Z3.js";
|
|
6
6
|
import {
|
|
7
7
|
getGateConfig,
|
|
8
8
|
isTaskConflictError,
|
|
9
9
|
isTaskGateError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FEIRWXLX.js";
|
|
11
11
|
import {
|
|
12
12
|
getSessionDisabledServers
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TACWRDDC.js";
|
|
14
14
|
import {
|
|
15
15
|
TurnMetrics,
|
|
16
16
|
clearLLMFailure,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-7ET46SNE.js";
|
|
28
28
|
import {
|
|
29
29
|
startInspectProxy
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LW6MMSTD.js";
|
|
31
31
|
import {
|
|
32
32
|
checkAborted,
|
|
33
33
|
createProcess,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
spawnShellProcess,
|
|
42
42
|
startProcessCommand,
|
|
43
43
|
stopProcess
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MQMPIXON.js";
|
|
45
45
|
import {
|
|
46
46
|
getMaxPerSession,
|
|
47
47
|
getSessionProcessCount,
|
|
@@ -59,12 +59,12 @@ import {
|
|
|
59
59
|
getEnabledSkillMetadata,
|
|
60
60
|
isSkillEnabled,
|
|
61
61
|
loadAllSkills
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BKMWZTNO.js";
|
|
63
63
|
import {
|
|
64
64
|
COMPACTION_PROMPT,
|
|
65
65
|
buildBasePrompt,
|
|
66
66
|
computeEffectiveTools
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-7JVBDBXE.js";
|
|
68
68
|
import {
|
|
69
69
|
AskUserInterrupt,
|
|
70
70
|
askUserTool
|
|
@@ -76,12 +76,12 @@ import {
|
|
|
76
76
|
registerPathConfirmation,
|
|
77
77
|
requestPathAccess,
|
|
78
78
|
resolveRelativeTraversals
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-Y6ZGHOKM.js";
|
|
80
80
|
import {
|
|
81
81
|
getCurrentContextWindowId,
|
|
82
82
|
getCurrentWindowMessageOptions,
|
|
83
83
|
getEventStore
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-FGNJMKDV.js";
|
|
85
85
|
import {
|
|
86
86
|
buildContextMessagesFromEventHistory,
|
|
87
87
|
foldContextState,
|
|
@@ -91,13 +91,13 @@ import {
|
|
|
91
91
|
handleToolResult,
|
|
92
92
|
reorderToolMessages,
|
|
93
93
|
stripOrphanedToolCalls
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-M5T4RDPJ.js";
|
|
95
95
|
import {
|
|
96
96
|
findAgentById,
|
|
97
97
|
getRuntimeConfig,
|
|
98
98
|
getSubAgents,
|
|
99
99
|
loadAllAgentsDefault
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-ELYHHEYL.js";
|
|
101
101
|
import {
|
|
102
102
|
createChatDoneMessage,
|
|
103
103
|
createChatLLMRetryFailedMessage,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
SETTINGS_KEYS,
|
|
128
128
|
getSetting,
|
|
129
129
|
setSetting
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-LQKXJPKP.js";
|
|
131
131
|
import {
|
|
132
132
|
logger
|
|
133
133
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -151,7 +151,7 @@ async function requestUserConfirmation(context, toolLabel, desc) {
|
|
|
151
151
|
if (context.dangerLevel === "dangerous") return Promise.resolve(true);
|
|
152
152
|
if (toolLabel === "workspace" || toolLabel === "command") {
|
|
153
153
|
try {
|
|
154
|
-
const { getSetting: getSetting2, SETTINGS_KEYS: SETTINGS_KEYS2 } = await import("./settings-
|
|
154
|
+
const { getSetting: getSetting2, SETTINGS_KEYS: SETTINGS_KEYS2 } = await import("./settings-MDCRNQBY.js");
|
|
155
155
|
if (getSetting2(SETTINGS_KEYS2.CONFIRM_ON_WORKSPACE_ACTIONS) !== "true") {
|
|
156
156
|
return Promise.resolve(true);
|
|
157
157
|
}
|
|
@@ -2154,7 +2154,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
2154
2154
|
currentMaxTokensOverride = void 0;
|
|
2155
2155
|
if (!compacting) {
|
|
2156
2156
|
const contextState = sessionManager.getContextState(sessionId);
|
|
2157
|
-
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-
|
|
2157
|
+
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-OEJAA2YP.js");
|
|
2158
2158
|
if (shouldCompact(
|
|
2159
2159
|
contextState.currentTokens,
|
|
2160
2160
|
contextState.maxTokens,
|
|
@@ -3187,7 +3187,7 @@ var callSubAgentTool = {
|
|
|
3187
3187
|
};
|
|
3188
3188
|
}
|
|
3189
3189
|
try {
|
|
3190
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3190
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-CW6POKUL.js");
|
|
3191
3191
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3192
3192
|
const turnMetrics = new TurnMetrics();
|
|
3193
3193
|
const result = await executeSubAgent({
|
|
@@ -4218,11 +4218,11 @@ var mcpConfigTool = createTool(
|
|
|
4218
4218
|
async function notifyContextChanged(sessionId) {
|
|
4219
4219
|
context.sessionManager.setDynamicContextChanged(sessionId, true);
|
|
4220
4220
|
mcpNotifyChanged?.(sessionId);
|
|
4221
|
-
const { injectContextDriftReminders } = await import("./dynamic-context-
|
|
4221
|
+
const { injectContextDriftReminders } = await import("./dynamic-context-NJZKAZE3.js");
|
|
4222
4222
|
await injectContextDriftReminders(context.sessionManager, sessionId);
|
|
4223
4223
|
}
|
|
4224
4224
|
async function rebuildTools() {
|
|
4225
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
4225
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-CW6POKUL.js");
|
|
4226
4226
|
const mcpTools = createMcpTools(mcpManagerForTools);
|
|
4227
4227
|
setMcpTools2(mcpTools);
|
|
4228
4228
|
}
|
|
@@ -4231,7 +4231,7 @@ var mcpConfigTool = createTool(
|
|
|
4231
4231
|
if (servers.length === 0) {
|
|
4232
4232
|
return helpers.success("No MCP servers configured.");
|
|
4233
4233
|
}
|
|
4234
|
-
const { getSessionDisabledServers: getSessionDisabledServers2 } = await import("./session-overrides-
|
|
4234
|
+
const { getSessionDisabledServers: getSessionDisabledServers2 } = await import("./session-overrides-OECQYRDK.js");
|
|
4235
4235
|
const disabledForSession = new Set(context.sessionId ? getSessionDisabledServers2(context.sessionId) : []);
|
|
4236
4236
|
const visibleServers = servers.filter((server) => !disabledForSession.has(server.name));
|
|
4237
4237
|
if (visibleServers.length === 0) {
|
|
@@ -5158,4 +5158,4 @@ export {
|
|
|
5158
5158
|
getToolRegistryForAgent,
|
|
5159
5159
|
createToolRegistry
|
|
5160
5160
|
};
|
|
5161
|
-
//# sourceMappingURL=chunk-
|
|
5161
|
+
//# sourceMappingURL=chunk-HXHPKGJE.js.map
|
|
@@ -209,6 +209,10 @@ function runMigrations(db2) {
|
|
|
209
209
|
logger.info("Migrating sessions table: adding cached_hash column");
|
|
210
210
|
db2.exec(`ALTER TABLE sessions ADD COLUMN cached_hash TEXT`);
|
|
211
211
|
}
|
|
212
|
+
if (!columnNames.includes("cached_prompt_hash")) {
|
|
213
|
+
logger.info("Migrating sessions table: adding cached_prompt_hash column");
|
|
214
|
+
db2.exec(`ALTER TABLE sessions ADD COLUMN cached_prompt_hash TEXT`);
|
|
215
|
+
}
|
|
212
216
|
if (!columnNames.includes("workspace") && columnNames.includes("worktree")) {
|
|
213
217
|
logger.info("Migrating sessions table: renaming worktree to workspace");
|
|
214
218
|
db2.exec(`ALTER TABLE sessions RENAME COLUMN worktree TO workspace`);
|
|
@@ -340,4 +344,4 @@ export {
|
|
|
340
344
|
initDatabase,
|
|
341
345
|
getDatabase
|
|
342
346
|
};
|
|
343
|
-
//# sourceMappingURL=chunk-
|
|
347
|
+
//# sourceMappingURL=chunk-JU757HVI.js.map
|