openfox 2.0.71 → 2.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-handler-IKLQ3ZUN.js → chat-handler-LK5RUAGO.js} +15 -15
- package/dist/{chunk-NEL2REUM.js → chunk-2DCJERYX.js} +4 -4
- package/dist/chunk-2M6JM7OR.js +7 -0
- package/dist/{chunk-6V7DU7ID.js → chunk-4LBSC4R3.js} +3 -3
- package/dist/{chunk-TFDK6VSG.js → chunk-6XKM25OT.js} +13 -13
- package/dist/{chunk-TQGGMWS6.js → chunk-CHPRGEY5.js} +3 -3
- package/dist/{chunk-C3VLGVSQ.js → chunk-DJASQ2ZB.js} +11 -2
- package/dist/{chunk-4QBDV6LX.js → chunk-E5LLEO3C.js} +2 -2
- package/dist/{chunk-OLXHRPAD.js → chunk-FILRB5QX.js} +243 -285
- package/dist/{chunk-Y4YESMVA.js → chunk-GMF36EZ3.js} +81 -92
- package/dist/{chunk-GMXKJGJ2.js → chunk-I4RWK2L2.js} +8 -4
- package/dist/{chunk-F4PMNP7S.js → chunk-NOU2QIL5.js} +3 -2
- package/dist/{chunk-X7OCC37J.js → chunk-O2BE7KVQ.js} +8 -8
- package/dist/{chunk-PVUBCGAT.js → chunk-PYB2UEC3.js} +10 -4
- package/dist/{chunk-XUPKS5FL.js → chunk-QNKXZH3Z.js} +2 -2
- package/dist/{chunk-X5DOUA3Z.js → chunk-S7O77CVO.js} +2 -2
- package/dist/{chunk-Z42YTK3O.js → chunk-TK4BZIXA.js} +34 -23
- package/dist/{chunk-KXVFHMSM.js → chunk-UV3EMWL4.js} +2 -2
- package/dist/chunk-X2Y3AJPP.js +216 -0
- package/dist/{chunk-RKD2FML3.js → chunk-XWBNYU2L.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{compactor-MXXF5WQR.js → compactor-4UKYWC5F.js} +8 -8
- package/dist/{events-CDQ4HASP.js → events-AEQ6GQXI.js} +4 -4
- package/dist/{folding-V2K34EGN.js → folding-ONH3D4OK.js} +2 -2
- package/dist/{inspect-proxy-OVEFBJ26.js → inspect-proxy-PHVZBZUO.js} +4 -4
- package/dist/{manager-EHIQCIUP.js → manager-24C2AXVF.js} +5 -5
- package/dist/{orchestrator-YGCZZNNV.js → orchestrator-RTZVMWQV.js} +14 -14
- package/dist/package.json +1 -1
- package/dist/{platform-AB3GIEGO.js → platform-XQ7BS3KQ.js} +4 -4
- package/dist/{processor-K6UPVMIP.js → processor-3O26I7DO.js} +15 -15
- package/dist/{project-creator-EMGRSPYS.js → project-creator-FQRBN3RG.js} +3 -3
- package/dist/{projects-7HSBZY2D.js → projects-LHRNCUGW.js} +3 -3
- package/dist/{protocol-CTNE3ANP.js → protocol-4QFU7WAI.js} +2 -2
- package/dist/{protocol-DIhV-tAc.d.ts → protocol-DGQWVFcP.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{serve-5IOKFKGL.js → serve-6PSAQ2YH.js} +18 -18
- package/dist/server/index.d.ts +12 -22
- package/dist/server/index.js +17 -17
- package/dist/{server-T5QDCUBN.js → server-G2J4RAXL.js} +16 -16
- package/dist/{settings-6ZPWOBWL.js → settings-PFXRYXZU.js} +3 -3
- package/dist/shared/index.d.ts +3 -3
- package/dist/{tools-K3SNGBI2.js → tools-X52DFUS6.js} +13 -13
- package/dist/{types-BsfYpEai.d.ts → types-C4cG9CtC.d.ts} +3 -2
- package/dist/{types-CBC6lLqc.d.ts → types-DSZhFA8O.d.ts} +1 -1
- package/dist/{update-734IDLKT.js → update-I2M2RG4Q.js} +2 -2
- package/dist/web/assets/index-C7SW16F7.js +305 -0
- package/dist/web/assets/{index-BVTG7SRG.css → index-CmechlaK.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/workspace-ET3FHZYN.js +32 -0
- package/package.json +1 -1
- package/dist/chunk-7NMOWPNY.js +0 -7
- package/dist/chunk-VLV3XWZS.js +0 -191
- package/dist/web/assets/index-HTzupfR0.js +0 -305
- package/dist/worktree-6U45P63P.js +0 -30
|
@@ -2,33 +2,33 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
generateSessionNameForSession
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2DCJERYX.js";
|
|
6
6
|
import {
|
|
7
7
|
runChatTurn
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-O2BE7KVQ.js";
|
|
9
|
+
import "./chunk-GMF36EZ3.js";
|
|
10
|
+
import "./chunk-X2Y3AJPP.js";
|
|
11
11
|
import "./chunk-WGMJCFCE.js";
|
|
12
12
|
import "./chunk-EU3WWTFH.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-XWBNYU2L.js";
|
|
14
|
+
import "./chunk-E5LLEO3C.js";
|
|
15
|
+
import "./chunk-UV3EMWL4.js";
|
|
16
|
+
import "./chunk-PYB2UEC3.js";
|
|
17
17
|
import "./chunk-I72ACQ6R.js";
|
|
18
18
|
import "./chunk-NWO6GRYE.js";
|
|
19
19
|
import "./chunk-UN26GIQG.js";
|
|
20
20
|
import {
|
|
21
21
|
getEventStore
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-6XKM25OT.js";
|
|
23
|
+
import "./chunk-DJASQ2ZB.js";
|
|
24
24
|
import {
|
|
25
25
|
createChatMessageMessage,
|
|
26
26
|
createPhaseChangedMessage,
|
|
27
27
|
createSessionRunningMessage
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-NOU2QIL5.js";
|
|
29
|
+
import "./chunk-S7O77CVO.js";
|
|
30
|
+
import "./chunk-QNKXZH3Z.js";
|
|
31
|
+
import "./chunk-I4RWK2L2.js";
|
|
32
32
|
import "./chunk-J2GP3J3X.js";
|
|
33
33
|
import "./chunk-V4IE7HJY.js";
|
|
34
34
|
import "./chunk-YHEQTVFV.js";
|
|
@@ -158,4 +158,4 @@ export {
|
|
|
158
158
|
startChatSession,
|
|
159
159
|
stopSessionExecution
|
|
160
160
|
};
|
|
161
|
-
//# sourceMappingURL=chat-handler-
|
|
161
|
+
//# sourceMappingURL=chat-handler-LK5RUAGO.js.map
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
getEventStore,
|
|
6
6
|
getRuntimeConfig,
|
|
7
7
|
updateSessionMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6XKM25OT.js";
|
|
9
9
|
import {
|
|
10
10
|
buildMessagesFromStoredEvents,
|
|
11
11
|
foldPendingConfirmations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DJASQ2ZB.js";
|
|
13
13
|
import {
|
|
14
14
|
createContextStateMessage,
|
|
15
15
|
createSessionStateMessage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NOU2QIL5.js";
|
|
17
17
|
import {
|
|
18
18
|
logger
|
|
19
19
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -184,4 +184,4 @@ export {
|
|
|
184
184
|
buildRunChatTurnParams,
|
|
185
185
|
generateSessionNameForSession
|
|
186
186
|
};
|
|
187
|
-
//# sourceMappingURL=chunk-
|
|
187
|
+
//# sourceMappingURL=chunk-2DCJERYX.js.map
|
|
@@ -190,7 +190,7 @@ async function runCli(options) {
|
|
|
190
190
|
break;
|
|
191
191
|
}
|
|
192
192
|
case "update": {
|
|
193
|
-
const { runUpdate } = await import("./update-
|
|
193
|
+
const { runUpdate } = await import("./update-I2M2RG4Q.js");
|
|
194
194
|
const code = runUpdate();
|
|
195
195
|
if (code !== 0) {
|
|
196
196
|
process.exit(code);
|
|
@@ -203,7 +203,7 @@ async function runCli(options) {
|
|
|
203
203
|
if (!configExists) {
|
|
204
204
|
await runNetworkSetup(mode);
|
|
205
205
|
}
|
|
206
|
-
const { runServe } = await import("./serve-
|
|
206
|
+
const { runServe } = await import("./serve-6PSAQ2YH.js");
|
|
207
207
|
const serveOptions = { mode };
|
|
208
208
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
209
209
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -215,4 +215,4 @@ async function runCli(options) {
|
|
|
215
215
|
export {
|
|
216
216
|
runCli
|
|
217
217
|
};
|
|
218
|
-
//# sourceMappingURL=chunk-
|
|
218
|
+
//# sourceMappingURL=chunk-4LBSC4R3.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
foldContextState,
|
|
6
6
|
foldSessionState,
|
|
7
7
|
spreadOptionalMessageFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DJASQ2ZB.js";
|
|
9
9
|
import {
|
|
10
10
|
getDatabase
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I4RWK2L2.js";
|
|
12
12
|
import {
|
|
13
13
|
logger
|
|
14
14
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -680,21 +680,21 @@ function getProjectDangerLevel(projectId) {
|
|
|
680
680
|
return "normal";
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
function createSession(projectId, workdir, title, providerId, providerModel,
|
|
683
|
+
function createSession(projectId, workdir, title, providerId, providerModel, workspace) {
|
|
684
684
|
const db = getDatabase();
|
|
685
685
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
686
686
|
const id = crypto.randomUUID();
|
|
687
687
|
const dangerLevel = getProjectDangerLevel(projectId);
|
|
688
688
|
db.prepare(
|
|
689
689
|
`
|
|
690
|
-
INSERT INTO sessions (id, project_id, workdir,
|
|
690
|
+
INSERT INTO sessions (id, project_id, workdir, workspace, phase, mode, workflow_phase, is_running, created_at, updated_at, title, provider_id, provider_model, danger_level)
|
|
691
691
|
VALUES (?, ?, ?, ?, 'idle', 'planner', 'plan', 0, ?, ?, ?, ?, ?, ?)
|
|
692
692
|
`
|
|
693
693
|
).run(
|
|
694
694
|
id,
|
|
695
695
|
projectId,
|
|
696
696
|
workdir,
|
|
697
|
-
|
|
697
|
+
workspace ?? null,
|
|
698
698
|
now,
|
|
699
699
|
now,
|
|
700
700
|
title ?? null,
|
|
@@ -706,7 +706,7 @@ function createSession(projectId, workdir, title, providerId, providerModel, wor
|
|
|
706
706
|
id,
|
|
707
707
|
projectId,
|
|
708
708
|
workdir,
|
|
709
|
-
...
|
|
709
|
+
...workspace ? { workspace } : {},
|
|
710
710
|
mode: "planner",
|
|
711
711
|
phase: "plan",
|
|
712
712
|
isRunning: false,
|
|
@@ -855,7 +855,7 @@ function listSessions() {
|
|
|
855
855
|
s.id,
|
|
856
856
|
s.project_id,
|
|
857
857
|
s.workdir,
|
|
858
|
-
s.
|
|
858
|
+
s.workspace,
|
|
859
859
|
s.mode,
|
|
860
860
|
s.workflow_phase,
|
|
861
861
|
s.is_running,
|
|
@@ -879,7 +879,7 @@ function listSessionsByProject(projectId, limit = 20, offset = 0) {
|
|
|
879
879
|
s.id,
|
|
880
880
|
s.project_id,
|
|
881
881
|
s.workdir,
|
|
882
|
-
s.
|
|
882
|
+
s.workspace,
|
|
883
883
|
s.mode,
|
|
884
884
|
s.workflow_phase,
|
|
885
885
|
s.is_running,
|
|
@@ -899,12 +899,12 @@ function listSessionsByProject(projectId, limit = 20, offset = 0) {
|
|
|
899
899
|
const sessions = rows.slice(0, limit).map(mapSessionSummaryRow);
|
|
900
900
|
return { sessions, hasMore };
|
|
901
901
|
}
|
|
902
|
-
function updateSessionWorkdir(id, workdir,
|
|
902
|
+
function updateSessionWorkdir(id, workdir, workspace) {
|
|
903
903
|
const db = getDatabase();
|
|
904
904
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
905
|
-
db.prepare("UPDATE sessions SET workdir = ?,
|
|
905
|
+
db.prepare("UPDATE sessions SET workdir = ?, workspace = ?, updated_at = ? WHERE id = ?").run(
|
|
906
906
|
workdir,
|
|
907
|
-
|
|
907
|
+
workspace,
|
|
908
908
|
now,
|
|
909
909
|
id
|
|
910
910
|
);
|
|
@@ -918,7 +918,7 @@ function mapSessionBase(row) {
|
|
|
918
918
|
id: row.id,
|
|
919
919
|
projectId: row.project_id,
|
|
920
920
|
workdir: row.workdir,
|
|
921
|
-
...row.
|
|
921
|
+
...row.workspace ? { workspace: row.workspace } : {},
|
|
922
922
|
mode: row.mode ?? "planner",
|
|
923
923
|
phase: row.workflow_phase ?? "plan",
|
|
924
924
|
isRunning: Boolean(row.is_running),
|
|
@@ -1460,4 +1460,4 @@ export {
|
|
|
1460
1460
|
truncateSessionMessages,
|
|
1461
1461
|
getRecentUserPromptsForSession
|
|
1462
1462
|
};
|
|
1463
|
-
//# sourceMappingURL=chunk-
|
|
1463
|
+
//# sourceMappingURL=chunk-6XKM25OT.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMPACTION_PROMPT,
|
|
3
3
|
createMessageStartEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XWBNYU2L.js";
|
|
5
5
|
import {
|
|
6
6
|
getCurrentWindowMessageOptions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6XKM25OT.js";
|
|
8
8
|
|
|
9
9
|
// src/server/context/compactor.ts
|
|
10
10
|
function appendCompactionPrompt(sessionId, append) {
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
shouldCompact,
|
|
32
32
|
getCompactionTarget
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-CHPRGEY5.js.map
|
|
@@ -409,7 +409,16 @@ Error: ${data.result.error}` : `Error: ${data.result.error}`
|
|
|
409
409
|
}
|
|
410
410
|
];
|
|
411
411
|
}
|
|
412
|
-
messages.
|
|
412
|
+
const parentIdx = messages.findIndex((m) => m.id === data.messageId);
|
|
413
|
+
if (parentIdx >= 0) {
|
|
414
|
+
let insertIdx = parentIdx + 1;
|
|
415
|
+
while (insertIdx < messages.length && messages[insertIdx].role === "tool" && messages[insertIdx].toolCallId) {
|
|
416
|
+
insertIdx++;
|
|
417
|
+
}
|
|
418
|
+
messages.splice(insertIdx, 0, toolMsg);
|
|
419
|
+
} else {
|
|
420
|
+
messages.push(toolMsg);
|
|
421
|
+
}
|
|
413
422
|
}
|
|
414
423
|
}
|
|
415
424
|
function stripOrphanedToolCalls(messages, fulfilledToolCallIds) {
|
|
@@ -867,4 +876,4 @@ export {
|
|
|
867
876
|
buildSnapshot,
|
|
868
877
|
buildSnapshotFromSessionState
|
|
869
878
|
};
|
|
870
|
-
//# sourceMappingURL=chunk-
|
|
879
|
+
//# sourceMappingURL=chunk-DJASQ2ZB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProjectByWorkdir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UV3EMWL4.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-E5LLEO3C.js.map
|