openfox 2.0.104 → 2.0.106
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 +41 -0
- package/dist/CHANGELOG.md +41 -0
- package/dist/agent-defaults/planner.agent.md +2 -1
- package/dist/{chat-handler-G2ZJNAVB.js → chat-handler-A22X22VZ.js} +24 -24
- package/dist/{chunk-YXIDKMBJ.js → chunk-26DEYDYV.js} +4 -4
- package/dist/{chunk-6SIX7P6O.js → chunk-2GM6SUIQ.js} +2 -2
- package/dist/{chunk-ZASSAZ73.js → chunk-33Q7LCVD.js} +2 -2
- package/dist/{chunk-S5HDT5RQ.js → chunk-3C73IUUL.js} +2 -2
- package/dist/{chunk-F766OIDT.js → chunk-46KNPXY6.js} +3 -3
- package/dist/{chunk-5ZJYEINJ.js → chunk-5M45NHQ2.js} +2 -2
- package/dist/{chunk-WWFH5GAR.js → chunk-6FPGJR7O.js} +2 -2
- package/dist/{chunk-PKLWSTDB.js → chunk-6M44ZHQA.js} +32 -32
- package/dist/{chunk-TFQSCHVU.js → chunk-6VNB4L4V.js} +3 -3
- package/dist/{chunk-3NVISPE7.js → chunk-AYUUGKZU.js} +14 -16
- package/dist/chunk-C5YV3EA4.js +7 -0
- package/dist/{chunk-B56G5OEF.js → chunk-D6ODGTSZ.js} +5 -3
- package/dist/{chunk-XWW7LOU4.js → chunk-G2VLGZ3Y.js} +256 -164
- package/dist/{chunk-DMI2BXHA.js → chunk-GXW4CRR5.js} +7 -6
- package/dist/{chunk-W2KZ7H55.js → chunk-HU22EVEM.js} +7 -7
- package/dist/{chunk-OUMHR7LR.js → chunk-IA4Y3CKA.js} +7 -6
- package/dist/{chunk-SPA7PQPJ.js → chunk-KIAKWUZ3.js} +2 -2
- package/dist/{chunk-GLF65XDS.js → chunk-LCQ5AN6Y.js} +8 -1
- package/dist/{chunk-B76OP3OE.js → chunk-LOHVZGCM.js} +4 -4
- package/dist/{chunk-UADZ2LZJ.js → chunk-OEPRHAIO.js} +3 -3
- package/dist/{chunk-HZXWVD5A.js → chunk-P4APMCTX.js} +85 -25
- package/dist/{chunk-EFIC3TUX.js → chunk-QBKAW5H4.js} +7 -7
- package/dist/{chunk-D3SXT3BL.js → chunk-RRTKVJMF.js} +5 -10
- package/dist/{chunk-J27BLIPY.js → chunk-SGJ3LSVA.js} +3 -2
- package/dist/{chunk-WHJ67MO2.js → chunk-SUTJJWUK.js} +7 -7
- package/dist/{chunk-ERKPMNC7.js → chunk-TB7TTPYQ.js} +2 -2
- package/dist/{chunk-2COWPTSJ.js → chunk-UCIZV76E.js} +4 -8
- package/dist/{chunk-EF7KGWF6.js → chunk-UXQN7FGB.js} +2 -2
- package/dist/{chunk-5VKT34HE.js → chunk-V6Y6OLB4.js} +2 -2
- package/dist/{chunk-KCED2X4H.js → chunk-WDJOSRIB.js} +12 -5
- package/dist/{chunk-62QCBNPE.js → chunk-WLJJRX22.js} +10 -3
- package/dist/{chunk-ERTTKKCE.js → chunk-X3USQHHK.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-2EAJAGPC.js → client-MP3FSNN7.js} +6 -6
- package/dist/{client-pure-ONSVWEG5.js → client-pure-USVHN4WG.js} +2 -2
- package/dist/{compactor-IEYTUHYX.js → compactor-KK2BVJK5.js} +12 -12
- package/dist/{config-3FKJV3KI.js → config-HX7FDKGJ.js} +2 -2
- package/dist/{dynamic-context-Z5BU2RVP.js → dynamic-context-ZUXI5UTW.js} +9 -9
- package/dist/{events-BGVLDGLK.js → events-OJ2R6OEM.js} +7 -7
- package/dist/{folding-AJMZBHNR.js → folding-DUZSKCZF.js} +5 -5
- package/dist/http-client-KJXFSK7A.js +11 -0
- package/dist/{inspect-proxy-GF6OI7MR.js → inspect-proxy-N42Z5TOG.js} +4 -4
- package/dist/{manager-GGIIENDX.js → manager-N27WNW5B.js} +5 -5
- package/dist/{model-overrides-BLEFI7FQ.js → model-overrides-36SQR3JR.js} +4 -4
- package/dist/{openFolder-Z27FEM5M.js → openFolder-HX7X356L.js} +2 -2
- package/dist/{orchestrator-SYAYO6NS.js → orchestrator-VZORJ7KF.js} +23 -23
- package/dist/package.json +4 -2
- package/dist/{path-security-JCDBLFIE.js → path-security-QCIA6YFV.js} +8 -8
- package/dist/{permissions-CGEK3DGZ.js → permissions-K6YEA2ZZ.js} +12 -1
- package/dist/{platform-GZ2WIDS5.js → platform-Q6T3AUHA.js} +4 -4
- package/dist/{processor-CBGV2K4E.js → processor-QYVHKRIV.js} +23 -23
- package/dist/{project-creator-SMWFMIU5.js → project-creator-BVA55HY6.js} +4 -4
- package/dist/{projects-M5XKC7O6.js → projects-PQXME5S4.js} +3 -3
- package/dist/{protocol-rfiBDoXm.d.ts → protocol-zRSsysOe.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-XCVHKXPS.js → provider-RQQ5JN34.js} +9 -9
- package/dist/{provider-manager-AUYP3QAM.js → provider-manager-RUC5QQ75.js} +7 -7
- package/dist/{registry-M2QVGRNK.js → registry-BDSTPV65.js} +4 -4
- package/dist/{serve-NPS4GJWH.js → serve-2O7G2WZF.js} +32 -32
- package/dist/server/index.d.ts +33 -4
- package/dist/server/index.js +31 -31
- package/dist/server-CYE6XY7J.js +47 -0
- package/dist/{session-overrides-HA5IQYLI.js → session-overrides-SFWPS5CT.js} +6 -6
- package/dist/{sessions-ZV2WRC6K.js → sessions-TZNUQJ2I.js} +5 -5
- package/dist/{settings-TGCITCVA.js → settings-5LG7IB3K.js} +3 -3
- package/dist/shared/index.d.ts +3 -3
- package/dist/skill-defaults/browser/SKILL.md +36 -22
- package/dist/{tools-KKALZLKX.js → tools-Y4F4HJPO.js} +21 -21
- package/dist/{types-o0v5xVxu.d.ts → types-CTl70hba.d.ts} +12 -1
- package/dist/{types-o-YQ3Bfq.d.ts → types-_uF_PRaD.d.ts} +1 -1
- package/dist/{update-7BEZMI4R.js → update-QEZIUJHR.js} +2 -2
- package/dist/web/assets/index-BxI3Y9C7.js +323 -0
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +3 -3
- package/dist/{workspace-2NDXTCVR.js → workspace-2OG5VQG6.js} +4 -4
- package/package.json +4 -2
- package/dist/chunk-MLOCSFIW.js +0 -7
- package/dist/http-client-A7A4XWNK.js +0 -11
- package/dist/server-FKM4FQKD.js +0 -47
- package/dist/web/assets/index-BoWCT9PC.js +0 -323
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.106 - 2026-08-02
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- **Workflow choice steps** — user picks a fork and the run diverges down its own independent branch.
|
|
8
|
+
- **Wrong-branch write protection** — Build & Verify won't run when session and actual git branches diverge.
|
|
9
|
+
|
|
10
|
+
### Enhancements
|
|
11
|
+
|
|
12
|
+
- **Vision fallback API key** — hosted OpenAI-compatible vision backends now accept an API key.
|
|
13
|
+
- **RTK pairing warning** — settings warn when RTK auto-rewrite is paired with cmd/PowerShell on Windows.
|
|
14
|
+
- **'What to test' tutorial** — the built-in Build & Verify workflow's last step summarizes it.
|
|
15
|
+
- **Planner stops asking to switch to build** — it waits for the mode reminder instead of a moot yes/no.
|
|
16
|
+
- **Clear-all confirmation stays visible** — no longer hidden below the fold in the criteria editor.
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **run_command output auto-scroll restored** — streaming output follows the tail while the command runs.
|
|
21
|
+
- **Per-project workflows** — follow the active project and show up in the launcher per project.
|
|
22
|
+
- **Workspace switch keeps the prompt cache** — new workspace arrives via system reminder instead.
|
|
23
|
+
- **Project skills load from the session dir** — no longer read from the server's working directory.
|
|
24
|
+
- **Windows reliability fixes** — folder opening, workspace deletion, file search, and permission checks.
|
|
25
|
+
- **Custom command deletion fixed** — overriding commands can be deleted again.
|
|
26
|
+
- **sshpass/nix-wrapped commands detected** — remote execution is recognized and confirmed properly.
|
|
27
|
+
|
|
28
|
+
## 2.0.105 - 2026-08-01
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- **Keyboard scroll control** — arrow and page keys now steer auto-scroll: scrolling up detaches instantly, scrolling down snaps back on near the bottom.
|
|
33
|
+
|
|
34
|
+
### Enhancements
|
|
35
|
+
|
|
36
|
+
- **Magnetic scrollbar handle** — dragging the scrollbar disables auto-scroll instantly and snaps it back on when you release near the end of the track.
|
|
37
|
+
- **Sharper vision-fallback descriptions** — image descriptions now arrive in a clear delimited block, prompted to capture verbatim text and tables.
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
- **Auto-scroll no longer detaches mid-stream** — following now holds steady through slow or bursty output, with no more random let-go.
|
|
42
|
+
- **Provider/model switch now rebinds the LLM client** — switching no longer reuses the previous provider's connection.
|
|
43
|
+
|
|
3
44
|
## 2.0.104 - 2026-07-31
|
|
4
45
|
|
|
5
46
|
### Features
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.106 - 2026-08-02
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- **Workflow choice steps** — user picks a fork and the run diverges down its own independent branch.
|
|
8
|
+
- **Wrong-branch write protection** — Build & Verify won't run when session and actual git branches diverge.
|
|
9
|
+
|
|
10
|
+
### Enhancements
|
|
11
|
+
|
|
12
|
+
- **Vision fallback API key** — hosted OpenAI-compatible vision backends now accept an API key.
|
|
13
|
+
- **RTK pairing warning** — settings warn when RTK auto-rewrite is paired with cmd/PowerShell on Windows.
|
|
14
|
+
- **'What to test' tutorial** — the built-in Build & Verify workflow's last step summarizes it.
|
|
15
|
+
- **Planner stops asking to switch to build** — it waits for the mode reminder instead of a moot yes/no.
|
|
16
|
+
- **Clear-all confirmation stays visible** — no longer hidden below the fold in the criteria editor.
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **run_command output auto-scroll restored** — streaming output follows the tail while the command runs.
|
|
21
|
+
- **Per-project workflows** — follow the active project and show up in the launcher per project.
|
|
22
|
+
- **Workspace switch keeps the prompt cache** — new workspace arrives via system reminder instead.
|
|
23
|
+
- **Project skills load from the session dir** — no longer read from the server's working directory.
|
|
24
|
+
- **Windows reliability fixes** — folder opening, workspace deletion, file search, and permission checks.
|
|
25
|
+
- **Custom command deletion fixed** — overriding commands can be deleted again.
|
|
26
|
+
- **sshpass/nix-wrapped commands detected** — remote execution is recognized and confirmed properly.
|
|
27
|
+
|
|
28
|
+
## 2.0.105 - 2026-08-01
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- **Keyboard scroll control** — arrow and page keys now steer auto-scroll: scrolling up detaches instantly, scrolling down snaps back on near the bottom.
|
|
33
|
+
|
|
34
|
+
### Enhancements
|
|
35
|
+
|
|
36
|
+
- **Magnetic scrollbar handle** — dragging the scrollbar disables auto-scroll instantly and snaps it back on when you release near the end of the track.
|
|
37
|
+
- **Sharper vision-fallback descriptions** — image descriptions now arrive in a clear delimited block, prompted to capture verbatim text and tables.
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
- **Auto-scroll no longer detaches mid-stream** — following now holds steady through slow or bursty output, with no more random let-go.
|
|
42
|
+
- **Provider/model switch now rebinds the LLM client** — switching no longer reuses the previous provider's connection.
|
|
43
|
+
|
|
3
44
|
## 2.0.104 - 2026-07-31
|
|
4
45
|
|
|
5
46
|
### Features
|
|
@@ -30,5 +30,6 @@ You MUST NOT make any edits, implementations, commits, config changes, or other
|
|
|
30
30
|
|
|
31
31
|
- Understand the user's goal before locking in details.
|
|
32
32
|
- Explore the codebase with read-only actions when needed.
|
|
33
|
-
- Present clear, verifiable criteria
|
|
33
|
+
- Present clear, verifiable criteria for the user to approve or refine.
|
|
34
34
|
- Stay in planning mode until the user explicitly switches to build mode.
|
|
35
|
+
- Never ask "Do you approve these criteria and shall I switch to build? (Yes/No)" — answering cannot switch modes; mode changes are driven externally, not by your question. Present the criteria plainly and stop there — do not write until a new <system-reminder> switches you to build mode, which only the user or a launched workflow can trigger.
|
|
@@ -2,48 +2,48 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
generateSessionNameForSession
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SUTJJWUK.js";
|
|
6
6
|
import {
|
|
7
7
|
runChatTurn
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-AYUUGKZU.js";
|
|
9
|
+
import "./chunk-HU22EVEM.js";
|
|
10
|
+
import "./chunk-6M44ZHQA.js";
|
|
11
|
+
import "./chunk-LOHVZGCM.js";
|
|
12
|
+
import "./chunk-5M45NHQ2.js";
|
|
13
|
+
import "./chunk-SGJ3LSVA.js";
|
|
14
|
+
import "./chunk-33Q7LCVD.js";
|
|
15
|
+
import "./chunk-6VNB4L4V.js";
|
|
16
16
|
import "./chunk-I72ACQ6R.js";
|
|
17
17
|
import "./chunk-JE7LW7Y6.js";
|
|
18
18
|
import "./chunk-VKWVPQJ5.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-RRTKVJMF.js";
|
|
20
20
|
import "./chunk-J7GAZGZT.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-OEPRHAIO.js";
|
|
22
|
+
import "./chunk-X3USQHHK.js";
|
|
23
23
|
import {
|
|
24
24
|
getEventStore
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GXW4CRR5.js";
|
|
26
26
|
import {
|
|
27
27
|
createChatMessageMessage,
|
|
28
28
|
createPhaseChangedMessage,
|
|
29
29
|
createSessionRunningMessage
|
|
30
30
|
} from "./chunk-27SDWNKL.js";
|
|
31
31
|
import "./chunk-JAX5OEMM.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-UXQN7FGB.js";
|
|
33
|
+
import "./chunk-V6Y6OLB4.js";
|
|
34
|
+
import "./chunk-6FPGJR7O.js";
|
|
35
|
+
import "./chunk-3C73IUUL.js";
|
|
36
|
+
import "./chunk-IA4Y3CKA.js";
|
|
37
|
+
import "./chunk-2GM6SUIQ.js";
|
|
38
38
|
import "./chunk-J2GP3J3X.js";
|
|
39
39
|
import "./chunk-V4IE7HJY.js";
|
|
40
40
|
import "./chunk-YHEQTVFV.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-WDJOSRIB.js";
|
|
42
|
+
import "./chunk-KIAKWUZ3.js";
|
|
43
|
+
import "./chunk-LCQ5AN6Y.js";
|
|
44
44
|
import "./chunk-K44MW7JJ.js";
|
|
45
45
|
import "./chunk-4R7G5JB6.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-D6ODGTSZ.js";
|
|
47
47
|
import "./chunk-CQGTEGKL.js";
|
|
48
48
|
import "./chunk-5WRI5ZAA.js";
|
|
49
49
|
|
|
@@ -166,4 +166,4 @@ export {
|
|
|
166
166
|
startChatSession,
|
|
167
167
|
stopSessionExecution
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chat-handler-
|
|
169
|
+
//# sourceMappingURL=chat-handler-A22X22VZ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMessageStartEvent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5M45NHQ2.js";
|
|
4
4
|
import {
|
|
5
5
|
COMPACTION_PROMPT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SGJ3LSVA.js";
|
|
7
7
|
import {
|
|
8
8
|
getCurrentWindowMessageOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GXW4CRR5.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-26DEYDYV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KIAKWUZ3.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -455,4 +455,4 @@ export {
|
|
|
455
455
|
getOverrideAgentIds,
|
|
456
456
|
resolveDefaultAgentId
|
|
457
457
|
};
|
|
458
|
-
//# sourceMappingURL=chunk-
|
|
458
|
+
//# sourceMappingURL=chunk-2GM6SUIQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProjectByWorkdir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6FPGJR7O.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-33Q7LCVD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2GM6SUIQ.js";
|
|
4
4
|
|
|
5
5
|
// src/server/events/apply-events.ts
|
|
6
6
|
function markComplete(msg, reason) {
|
|
@@ -929,4 +929,4 @@ export {
|
|
|
929
929
|
buildSnapshot,
|
|
930
930
|
buildSnapshotFromSessionState
|
|
931
931
|
};
|
|
932
|
-
//# sourceMappingURL=chunk-
|
|
932
|
+
//# sourceMappingURL=chunk-3C73IUUL.js.map
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
getThinking,
|
|
14
14
|
mapFinishReason,
|
|
15
15
|
parseToolArguments
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WDJOSRIB.js";
|
|
17
17
|
import {
|
|
18
18
|
LLMError,
|
|
19
19
|
OpenAIHttpClient
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TB7TTPYQ.js";
|
|
21
21
|
import {
|
|
22
22
|
logger
|
|
23
23
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -310,4 +310,4 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
310
310
|
export {
|
|
311
311
|
createLLMClient
|
|
312
312
|
};
|
|
313
|
-
//# sourceMappingURL=chunk-
|
|
313
|
+
//# sourceMappingURL=chunk-46KNPXY6.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-YHEQTVFV.js";
|
|
10
10
|
import {
|
|
11
11
|
buildModelParams
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WDJOSRIB.js";
|
|
13
13
|
import {
|
|
14
14
|
logger
|
|
15
15
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -438,4 +438,4 @@ export {
|
|
|
438
438
|
createChatDoneEvent,
|
|
439
439
|
consumeStreamGenerator
|
|
440
440
|
};
|
|
441
|
-
//# sourceMappingURL=chunk-
|
|
441
|
+
//# sourceMappingURL=chunk-5M45NHQ2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LCQ5AN6Y.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/projects.ts
|
|
6
6
|
function createProject(name, workdir) {
|
|
@@ -129,4 +129,4 @@ export {
|
|
|
129
129
|
deleteProject,
|
|
130
130
|
toggleStar
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=chunk-
|
|
132
|
+
//# sourceMappingURL=chunk-6FPGJR7O.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getEnabledSkillMetadata,
|
|
5
5
|
isSkillEnabled,
|
|
6
6
|
loadAllSkills
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LOHVZGCM.js";
|
|
8
8
|
import {
|
|
9
9
|
TurnMetrics,
|
|
10
10
|
consumeStreamGenerator,
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
createToolCallEvent,
|
|
15
15
|
createToolResultEvent,
|
|
16
16
|
streamLLMPure
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5M45NHQ2.js";
|
|
18
18
|
import {
|
|
19
19
|
COMPACTION_PROMPT,
|
|
20
20
|
buildBasePrompt,
|
|
21
21
|
computeEffectiveTools
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SGJ3LSVA.js";
|
|
23
23
|
import {
|
|
24
24
|
startInspectProxy
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-33Q7LCVD.js";
|
|
26
26
|
import {
|
|
27
27
|
checkAborted,
|
|
28
28
|
createProcess,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
spawnShellProcess,
|
|
34
34
|
startProcessCommand,
|
|
35
35
|
stopProcess
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6VNB4L4V.js";
|
|
37
37
|
import {
|
|
38
38
|
getMaxPerSession,
|
|
39
39
|
getSessionProcessCount,
|
|
@@ -49,22 +49,22 @@ import {
|
|
|
49
49
|
getGitBranch,
|
|
50
50
|
isGitRepository,
|
|
51
51
|
listWorkspaces
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-RRTKVJMF.js";
|
|
53
53
|
import {
|
|
54
54
|
getSessionDisabledServers
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-OEPRHAIO.js";
|
|
56
56
|
import {
|
|
57
57
|
PathAccessDeniedError,
|
|
58
58
|
extractAbsolutePathsFromCommand,
|
|
59
59
|
extractSensitivePathsFromCommand,
|
|
60
60
|
registerPathConfirmation,
|
|
61
61
|
requestPathAccess
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-X3USQHHK.js";
|
|
63
63
|
import {
|
|
64
64
|
getCurrentContextWindowId,
|
|
65
65
|
getCurrentWindowMessageOptions,
|
|
66
66
|
getEventStore
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-GXW4CRR5.js";
|
|
68
68
|
import {
|
|
69
69
|
createChatDoneMessage,
|
|
70
70
|
createChatMessageMessage,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
} from "./chunk-JAX5OEMM.js";
|
|
79
79
|
import {
|
|
80
80
|
resolveLLMClientForAgent
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-V6Y6OLB4.js";
|
|
82
82
|
import {
|
|
83
83
|
buildContextMessagesFromEventHistory,
|
|
84
84
|
foldContextState,
|
|
@@ -88,13 +88,13 @@ import {
|
|
|
88
88
|
handleToolResult,
|
|
89
89
|
reorderToolMessages,
|
|
90
90
|
stripOrphanedToolCalls
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-3C73IUUL.js";
|
|
92
92
|
import {
|
|
93
93
|
findAgentById,
|
|
94
94
|
getRuntimeConfig,
|
|
95
95
|
getSubAgents,
|
|
96
96
|
loadAllAgentsDefault
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-2GM6SUIQ.js";
|
|
98
98
|
import {
|
|
99
99
|
modelSupportsVision
|
|
100
100
|
} from "./chunk-V4IE7HJY.js";
|
|
@@ -108,18 +108,18 @@ import {
|
|
|
108
108
|
formatPdfErrorMessage,
|
|
109
109
|
isPdfBuffer,
|
|
110
110
|
processPdfContent
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-WDJOSRIB.js";
|
|
112
112
|
import {
|
|
113
113
|
SETTINGS_KEYS,
|
|
114
114
|
getSetting
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-KIAKWUZ3.js";
|
|
116
116
|
import {
|
|
117
117
|
logger
|
|
118
118
|
} from "./chunk-K44MW7JJ.js";
|
|
119
119
|
import {
|
|
120
120
|
loadGlobalConfig,
|
|
121
121
|
saveGlobalConfig
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-D6ODGTSZ.js";
|
|
123
123
|
import {
|
|
124
124
|
getGlobalConfigDir
|
|
125
125
|
} from "./chunk-CQGTEGKL.js";
|
|
@@ -136,7 +136,7 @@ async function requestUserConfirmation(context, toolLabel, desc) {
|
|
|
136
136
|
if (context.dangerLevel === "dangerous") return Promise.resolve(true);
|
|
137
137
|
if (toolLabel === "workspace" || toolLabel === "command") {
|
|
138
138
|
try {
|
|
139
|
-
const { getSetting: getSetting2, SETTINGS_KEYS: SETTINGS_KEYS2 } = await import("./settings-
|
|
139
|
+
const { getSetting: getSetting2, SETTINGS_KEYS: SETTINGS_KEYS2 } = await import("./settings-5LG7IB3K.js");
|
|
140
140
|
if (getSetting2(SETTINGS_KEYS2.CONFIRM_ON_WORKSPACE_ACTIONS) !== "true") {
|
|
141
141
|
return Promise.resolve(true);
|
|
142
142
|
}
|
|
@@ -1768,7 +1768,7 @@ async function runTopLevelAgentLoop(config, turnMetrics) {
|
|
|
1768
1768
|
const session2 = sessionManager.requireSession(sessionId);
|
|
1769
1769
|
const runtimeConfig2 = getRuntimeConfig();
|
|
1770
1770
|
const configDir2 = getGlobalConfigDir(runtimeConfig2.mode ?? "production");
|
|
1771
|
-
const skills2 = await getEnabledSkillMetadata(configDir2,
|
|
1771
|
+
const skills2 = await getEnabledSkillMetadata(configDir2, sessionManager.getEffectiveWorkdir(sessionId));
|
|
1772
1772
|
const { content: instructionContent2 } = await getAllInstructions(session2.workdir, session2.projectId);
|
|
1773
1773
|
const toolRegistry2 = config.getToolRegistry();
|
|
1774
1774
|
const assembledRequest2 = await config.assembleRequest({
|
|
@@ -1823,7 +1823,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
1823
1823
|
}
|
|
1824
1824
|
const runtimeConfig = getRuntimeConfig();
|
|
1825
1825
|
const configDir = getGlobalConfigDir(runtimeConfig.mode ?? "production");
|
|
1826
|
-
const skills = await getEnabledSkillMetadata(configDir,
|
|
1826
|
+
const skills = await getEnabledSkillMetadata(configDir, sessionManager.getEffectiveWorkdir(sessionId));
|
|
1827
1827
|
if (signal?.aborted) throw new Error("Aborted");
|
|
1828
1828
|
const assembledRequest = await config.assembleRequest({
|
|
1829
1829
|
workdir: session.workdir,
|
|
@@ -1919,7 +1919,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
1919
1919
|
sessionManager.setCurrentContextSize(sessionId, result.usage.promptTokens, config.subAgentMetadata?.subAgentId);
|
|
1920
1920
|
if (!compacting) {
|
|
1921
1921
|
const contextState2 = sessionManager.getContextState(sessionId);
|
|
1922
|
-
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-
|
|
1922
|
+
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-KK2BVJK5.js");
|
|
1923
1923
|
if (shouldCompact(
|
|
1924
1924
|
contextState2.currentTokens,
|
|
1925
1925
|
contextState2.maxTokens,
|
|
@@ -2185,13 +2185,13 @@ function createAssemblyResult(input) {
|
|
|
2185
2185
|
}
|
|
2186
2186
|
|
|
2187
2187
|
// src/server/llm/vision-fallback.ts
|
|
2188
|
-
var IMAGE_PROMPT = `Describe this image
|
|
2189
|
-
- What the image shows (UI, diagram, photo, etc.)
|
|
2190
|
-
-
|
|
2191
|
-
-
|
|
2192
|
-
-
|
|
2188
|
+
var IMAGE_PROMPT = `Describe this image thoroughly and accurately. Include:
|
|
2189
|
+
- What the image shows (UI, diagram, photo, illustration, etc.)
|
|
2190
|
+
- All visible text, transcribed verbatim \u2014 every label, heading, number, and value
|
|
2191
|
+
- Spatial layout: where elements are positioned and how they relate
|
|
2192
|
+
- Colors, visual hierarchy, and any distinctive visual features
|
|
2193
2193
|
|
|
2194
|
-
|
|
2194
|
+
Be exhaustive rather than concise. Prioritize precision \u2014 if there are numbers, lists, or structured data, capture them completely. If the image contains a table or grid, reproduce it as a markdown table with exact values.`;
|
|
2195
2195
|
function buildPrompt(context) {
|
|
2196
2196
|
return context ? `${IMAGE_PROMPT}
|
|
2197
2197
|
|
|
@@ -2289,7 +2289,7 @@ async function describeImageFromDataUrl(dataUrl, visionModel, options) {
|
|
|
2289
2289
|
// src/server/context/image-processor.ts
|
|
2290
2290
|
async function loadVisionModelFromGlobalConfig() {
|
|
2291
2291
|
try {
|
|
2292
|
-
const { loadGlobalConfig: loadGlobalConfig2, resolveVisionFallback } = await import("./config-
|
|
2292
|
+
const { loadGlobalConfig: loadGlobalConfig2, resolveVisionFallback } = await import("./config-HX7FDKGJ.js");
|
|
2293
2293
|
const runtimeConfig = getRuntimeConfig();
|
|
2294
2294
|
const mode = runtimeConfig.mode ?? "production";
|
|
2295
2295
|
const globalConfig = await loadGlobalConfig2(mode);
|
|
@@ -2793,7 +2793,7 @@ async function executeSubAgent(options) {
|
|
|
2793
2793
|
const { content: instructionContent } = await getAllInstructions(effectiveWorkdir, session.projectId);
|
|
2794
2794
|
const config = getRuntimeConfig();
|
|
2795
2795
|
const configDir = getGlobalConfigDir(config.mode ?? "production");
|
|
2796
|
-
const skills = await getEnabledSkillMetadata(configDir,
|
|
2796
|
+
const skills = await getEnabledSkillMetadata(configDir, effectiveWorkdir);
|
|
2797
2797
|
const hasRunCommand = agentDef.metadata.allowedTools?.includes("run_command") ?? false;
|
|
2798
2798
|
const gitignoreSection = hasRunCommand ? await loadGitIgnoreRules(effectiveWorkdir) : "";
|
|
2799
2799
|
const systemPrompt = buildBasePrompt(effectiveWorkdir, void 0, skills.length > 0 ? skills : void 0, llmClient.getModel()) + "\n\n" + agentDef.prompt + (gitignoreSection ? "\n\n" + gitignoreSection : "") + RETURN_VALUE_INSTRUCTION;
|
|
@@ -2907,7 +2907,7 @@ var callSubAgentTool = {
|
|
|
2907
2907
|
};
|
|
2908
2908
|
}
|
|
2909
2909
|
try {
|
|
2910
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
2910
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-Y4F4HJPO.js");
|
|
2911
2911
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
2912
2912
|
const turnMetrics = new TurnMetrics();
|
|
2913
2913
|
const result = await executeSubAgent({
|
|
@@ -2953,7 +2953,7 @@ Resolve relative paths in these instructions from that directory.
|
|
|
2953
2953
|
|
|
2954
2954
|
${skill.prompt}`;
|
|
2955
2955
|
}
|
|
2956
|
-
var handler = async (args,
|
|
2956
|
+
var handler = async (args, context, helpers) => {
|
|
2957
2957
|
const { skillId } = args;
|
|
2958
2958
|
if (!skillId) {
|
|
2959
2959
|
return helpers.error("Missing required parameter: skillId");
|
|
@@ -2963,7 +2963,7 @@ var handler = async (args, _context, helpers) => {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
const config = getRuntimeConfig();
|
|
2965
2965
|
const configDir = getGlobalConfigDir(config.mode ?? "production");
|
|
2966
|
-
const allSkills = await loadAllSkills(configDir,
|
|
2966
|
+
const allSkills = await loadAllSkills(configDir, context.workdir);
|
|
2967
2967
|
const skill = findSkillById(skillId, allSkills);
|
|
2968
2968
|
if (!skill) {
|
|
2969
2969
|
const available = allSkills.map((s) => s.metadata.id).join(", ");
|
|
@@ -3929,7 +3929,7 @@ var mcpConfigTool = createTool(
|
|
|
3929
3929
|
mcpNotifyChanged?.(sessionId);
|
|
3930
3930
|
}
|
|
3931
3931
|
async function rebuildTools() {
|
|
3932
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
3932
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-Y4F4HJPO.js");
|
|
3933
3933
|
const mcpTools = createMcpTools(mcpManagerForTools);
|
|
3934
3934
|
setMcpTools2(mcpTools);
|
|
3935
3935
|
}
|
|
@@ -4604,4 +4604,4 @@ export {
|
|
|
4604
4604
|
getToolRegistryForAgent,
|
|
4605
4605
|
createToolRegistry
|
|
4606
4606
|
};
|
|
4607
|
-
//# sourceMappingURL=chunk-
|
|
4607
|
+
//# sourceMappingURL=chunk-6M44ZHQA.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-UXQN7FGB.js";
|
|
15
15
|
import {
|
|
16
16
|
SETTINGS_KEYS,
|
|
17
17
|
getSetting
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KIAKWUZ3.js";
|
|
19
19
|
|
|
20
20
|
// src/server/utils/shell.ts
|
|
21
21
|
import { spawn } from "child_process";
|
|
@@ -163,4 +163,4 @@ export {
|
|
|
163
163
|
getSessionProcesses2 as getSessionProcesses,
|
|
164
164
|
getProcessLogs
|
|
165
165
|
};
|
|
166
|
-
//# sourceMappingURL=chunk-
|
|
166
|
+
//# sourceMappingURL=chunk-6VNB4L4V.js.map
|
|
@@ -2,44 +2,44 @@ import {
|
|
|
2
2
|
buildCachedPrompt,
|
|
3
3
|
computeDynamicContextHash,
|
|
4
4
|
getToolFingerprint
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HU22EVEM.js";
|
|
6
6
|
import {
|
|
7
7
|
createAssemblyResult,
|
|
8
8
|
getConversationMessages,
|
|
9
9
|
getToolRegistryForAgent,
|
|
10
10
|
processEventsForConversation,
|
|
11
11
|
runTopLevelAgentLoop
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6M44ZHQA.js";
|
|
13
13
|
import {
|
|
14
14
|
getAllInstructions,
|
|
15
15
|
getEnabledSkillMetadata
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LOHVZGCM.js";
|
|
17
17
|
import {
|
|
18
18
|
TurnMetrics,
|
|
19
19
|
createChatDoneEvent,
|
|
20
20
|
createMessageStartEvent
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5M45NHQ2.js";
|
|
22
22
|
import {
|
|
23
23
|
buildAgentReminder,
|
|
24
24
|
buildAgentSmallReminder
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SGJ3LSVA.js";
|
|
26
26
|
import {
|
|
27
27
|
PathAccessDeniedError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-X3USQHHK.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentContextWindowId,
|
|
31
31
|
getCurrentWindowMessageOptions,
|
|
32
32
|
getEventStore
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GXW4CRR5.js";
|
|
34
34
|
import {
|
|
35
35
|
buildSnapshotFromSessionState
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3C73IUUL.js";
|
|
37
37
|
import {
|
|
38
38
|
findAgentById,
|
|
39
39
|
getRuntimeConfig,
|
|
40
40
|
loadAllAgentsDefault,
|
|
41
41
|
resolveDefaultAgentId
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2GM6SUIQ.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
45
45
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
|
|
50
50
|
// src/server/chat/orchestrator.ts
|
|
51
51
|
async function buildRetryPatterns() {
|
|
52
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
52
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-5LG7IB3K.js");
|
|
53
53
|
const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
|
|
54
54
|
if (!raw) {
|
|
55
55
|
const oldXmlProtection = getSetting("llm.disableXmlProtection");
|
|
@@ -231,13 +231,11 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
|
|
|
231
231
|
if (!options.warmup) {
|
|
232
232
|
injectAgentReminder(options.sessionId, agentDef);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
options.sessionManager.requireSession(options.sessionId).projectId
|
|
237
|
-
);
|
|
234
|
+
const session = options.sessionManager.requireSession(options.sessionId);
|
|
235
|
+
const { content: instructionContent } = await getAllInstructions(session.workdir, session.projectId);
|
|
238
236
|
const runtimeConfig = getRuntimeConfig();
|
|
239
237
|
const configDir = getGlobalConfigDir(runtimeConfig.mode ?? "production");
|
|
240
|
-
const skills = await getEnabledSkillMetadata(configDir,
|
|
238
|
+
const skills = await getEnabledSkillMetadata(configDir, options.sessionManager.getEffectiveWorkdir(options.sessionId));
|
|
241
239
|
return runTopLevelAgentLoop(
|
|
242
240
|
{
|
|
243
241
|
mode: agentId,
|
|
@@ -321,4 +319,4 @@ export {
|
|
|
321
319
|
runChatTurn,
|
|
322
320
|
runAgentTurn
|
|
323
321
|
};
|
|
324
|
-
//# sourceMappingURL=chunk-
|
|
322
|
+
//# sourceMappingURL=chunk-AYUUGKZU.js.map
|
|
@@ -92,7 +92,8 @@ var visionFallbackSchema = z.object({
|
|
|
92
92
|
model: z.string().default("qwen3.5:0.8b"),
|
|
93
93
|
timeout: z.number().default(120),
|
|
94
94
|
backend: z.enum(["ollama", "openai"]).default("ollama"),
|
|
95
|
-
providerModelRef: z.string().optional()
|
|
95
|
+
providerModelRef: z.string().optional(),
|
|
96
|
+
apiKey: z.string().optional()
|
|
96
97
|
});
|
|
97
98
|
var cachedToolSchema = z.object({
|
|
98
99
|
name: z.string(),
|
|
@@ -204,7 +205,8 @@ function resolveVisionFallback(config) {
|
|
|
204
205
|
baseUrl: fallback.url,
|
|
205
206
|
model: fallback.model,
|
|
206
207
|
timeout: (fallback.timeout ?? 120) * 1e3,
|
|
207
|
-
backend: fallback.backend ?? "ollama"
|
|
208
|
+
backend: fallback.backend ?? "ollama",
|
|
209
|
+
...fallback.apiKey ? { apiKey: fallback.apiKey } : {}
|
|
208
210
|
};
|
|
209
211
|
}
|
|
210
212
|
return void 0;
|
|
@@ -368,4 +370,4 @@ export {
|
|
|
368
370
|
removeProvider,
|
|
369
371
|
activateProvider
|
|
370
372
|
};
|
|
371
|
-
//# sourceMappingURL=chunk-
|
|
373
|
+
//# sourceMappingURL=chunk-D6ODGTSZ.js.map
|