openfox 1.6.47 → 1.6.50
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/{auto-compaction-7RDQVOYK.js → auto-compaction-VM4PWNSL.js} +4 -4
- package/dist/{chat-handler-TTCW7DIB.js → chat-handler-AQNAQSBE.js} +8 -8
- package/dist/{chunk-22JBSK6P.js → chunk-2IIJ6BX6.js} +3 -3
- package/dist/{chunk-BHSTSA7U.js → chunk-ADNH6OIQ.js} +3 -3
- package/dist/{chunk-DZHZ3UUR.js → chunk-G56V75F2.js} +3 -3
- package/dist/{chunk-SNIBI4L4.js → chunk-GFIBLQWL.js} +2 -2
- package/dist/{chunk-SGOTQ7R3.js → chunk-LAUS4KUS.js} +4 -4
- package/dist/{chunk-NBBX64KC.js → chunk-LUEMWIT4.js} +3 -3
- package/dist/{chunk-YVQ6DP5Y.js → chunk-QEFIFVTH.js} +5 -1
- package/dist/{chunk-4DR3WUVA.js → chunk-VHYVIAYJ.js} +35 -27
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{events-FHPSSSE4.js → events-RXX52D3D.js} +2 -2
- package/dist/{orchestrator-DIJO4BJ7.js → orchestrator-FPX4NLIZ.js} +5 -5
- package/dist/package.json +1 -1
- package/dist/{processor-YLKEJ7QC.js → processor-AJ6F6SA6.js} +6 -6
- package/dist/{protocol-YNVBDNL7.js → protocol-4RE3E3H3.js} +2 -2
- package/dist/{serve-4I7FE32H.js → serve-TS4EE3JV.js} +7 -7
- package/dist/server/index.js +6 -6
- package/dist/{tools-E3UECGKO.js → tools-SBBC6TWC.js} +4 -4
- package/dist/web/assets/{index-DFE4PMXP.css → index-BKpOPPkC.css} +1 -1
- package/dist/web/assets/{index-CK4F8AG6.js → index-UJ4zYM28.js} +2 -2
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
maybeAutoCompactContext,
|
|
3
3
|
performManualContextCompaction,
|
|
4
4
|
resolveCompactionStatsIdentity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LAUS4KUS.js";
|
|
6
6
|
import "./chunk-NBU6KIOD.js";
|
|
7
7
|
import "./chunk-574HZVLE.js";
|
|
8
8
|
import "./chunk-7JPKRM6M.js";
|
|
9
9
|
import "./chunk-WNZIUQ2L.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QEFIFVTH.js";
|
|
11
11
|
import "./chunk-LIMBYVO4.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-G56V75F2.js";
|
|
13
13
|
import "./chunk-22CTURMH.js";
|
|
14
14
|
import "./chunk-GQZGIMJO.js";
|
|
15
15
|
import "./chunk-BLNFJ22S.js";
|
|
@@ -23,4 +23,4 @@ export {
|
|
|
23
23
|
performManualContextCompaction,
|
|
24
24
|
resolveCompactionStatsIdentity
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=auto-compaction-
|
|
26
|
+
//# sourceMappingURL=auto-compaction-VM4PWNSL.js.map
|
|
@@ -2,29 +2,29 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
getSessionMessageCount
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LUEMWIT4.js";
|
|
6
6
|
import {
|
|
7
7
|
applyGeneratedSessionName,
|
|
8
8
|
generateSessionName,
|
|
9
9
|
needsNameGenerationCheck
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ADNH6OIQ.js";
|
|
11
11
|
import {
|
|
12
12
|
runChatTurn
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-2IIJ6BX6.js";
|
|
14
|
+
import "./chunk-LAUS4KUS.js";
|
|
15
15
|
import "./chunk-NBU6KIOD.js";
|
|
16
16
|
import "./chunk-574HZVLE.js";
|
|
17
17
|
import "./chunk-7JPKRM6M.js";
|
|
18
18
|
import "./chunk-WNZIUQ2L.js";
|
|
19
19
|
import {
|
|
20
20
|
getEventStore
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QEFIFVTH.js";
|
|
22
22
|
import "./chunk-LIMBYVO4.js";
|
|
23
23
|
import {
|
|
24
24
|
createChatMessageMessage,
|
|
25
25
|
createPhaseChangedMessage,
|
|
26
26
|
createSessionRunningMessage
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-G56V75F2.js";
|
|
28
28
|
import "./chunk-22CTURMH.js";
|
|
29
29
|
import "./chunk-GQZGIMJO.js";
|
|
30
30
|
import "./chunk-BLNFJ22S.js";
|
|
@@ -62,7 +62,7 @@ async function startChatSession(sessionId, content, deps, options) {
|
|
|
62
62
|
sessionManager.setRunning(sessionId, true);
|
|
63
63
|
broadcastForSession(sessionId, createSessionRunningMessage(true));
|
|
64
64
|
try {
|
|
65
|
-
const { maybeAutoCompactContext } = await import("./auto-compaction-
|
|
65
|
+
const { maybeAutoCompactContext } = await import("./auto-compaction-VM4PWNSL.js");
|
|
66
66
|
await maybeAutoCompactContext({
|
|
67
67
|
sessionManager,
|
|
68
68
|
sessionId,
|
|
@@ -171,4 +171,4 @@ export {
|
|
|
171
171
|
startChatSession,
|
|
172
172
|
stopSessionExecution
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chat-handler-
|
|
174
|
+
//# sourceMappingURL=chat-handler-AQNAQSBE.js.map
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
getToolRegistryForAgent,
|
|
14
14
|
loadAllAgentsDefault,
|
|
15
15
|
runTopLevelAgentLoop
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LAUS4KUS.js";
|
|
17
17
|
import {
|
|
18
18
|
getCurrentContextWindowId,
|
|
19
19
|
getEventStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QEFIFVTH.js";
|
|
21
21
|
import {
|
|
22
22
|
buildSnapshotFromSessionState
|
|
23
23
|
} from "./chunk-LIMBYVO4.js";
|
|
@@ -293,4 +293,4 @@ export {
|
|
|
293
293
|
runBuilderTurn,
|
|
294
294
|
runVerifierTurn
|
|
295
295
|
};
|
|
296
|
-
//# sourceMappingURL=chunk-
|
|
296
|
+
//# sourceMappingURL=chunk-2IIJ6BX6.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateSessionMetadata
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QEFIFVTH.js";
|
|
4
4
|
import {
|
|
5
5
|
buildMessagesFromStoredEvents,
|
|
6
6
|
foldPendingConfirmations
|
|
7
7
|
} from "./chunk-LIMBYVO4.js";
|
|
8
8
|
import {
|
|
9
9
|
createSessionStateMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G56V75F2.js";
|
|
11
11
|
import {
|
|
12
12
|
logger
|
|
13
13
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
needsNameGenerationCheck,
|
|
109
109
|
applyGeneratedSessionName
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-ADNH6OIQ.js.map
|
|
@@ -50,8 +50,8 @@ function createSessionStateMessage(session, messages, pendingConfirmations = [],
|
|
|
50
50
|
function createSessionListMessage(sessions, correlationId) {
|
|
51
51
|
return createServerMessage("session.list", { sessions }, correlationId);
|
|
52
52
|
}
|
|
53
|
-
function createSessionRunningMessage(isRunning) {
|
|
54
|
-
return createServerMessage("session.running", { isRunning });
|
|
53
|
+
function createSessionRunningMessage(isRunning, sessionId) {
|
|
54
|
+
return createServerMessage("session.running", { isRunning }, sessionId);
|
|
55
55
|
}
|
|
56
56
|
function createProjectStateMessage(project, correlationId) {
|
|
57
57
|
return createServerMessage("project.state", { project }, correlationId);
|
|
@@ -333,4 +333,4 @@ export {
|
|
|
333
333
|
isQueueCancelPayload,
|
|
334
334
|
storedEventToServerMessage
|
|
335
335
|
};
|
|
336
|
-
//# sourceMappingURL=chunk-
|
|
336
|
+
//# sourceMappingURL=chunk-G56V75F2.js.map
|
|
@@ -179,7 +179,7 @@ async function runCli(options) {
|
|
|
179
179
|
if (!configExists) {
|
|
180
180
|
await runNetworkSetup(mode);
|
|
181
181
|
}
|
|
182
|
-
const { runServe } = await import("./serve-
|
|
182
|
+
const { runServe } = await import("./serve-TS4EE3JV.js");
|
|
183
183
|
await runServe({
|
|
184
184
|
mode,
|
|
185
185
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -192,4 +192,4 @@ async function runCli(options) {
|
|
|
192
192
|
export {
|
|
193
193
|
runCli
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-GFIBLQWL.js.map
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
getContextMessages,
|
|
25
25
|
getCurrentContextWindowId,
|
|
26
26
|
getEventStore
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QEFIFVTH.js";
|
|
28
28
|
import {
|
|
29
29
|
createChatDoneMessage,
|
|
30
30
|
createChatMessageMessage,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
createChatToolOutputMessage,
|
|
34
34
|
createChatVisionFallbackMessage,
|
|
35
35
|
createQueueStateMessage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-G56V75F2.js";
|
|
37
37
|
import {
|
|
38
38
|
AskUserInterrupt,
|
|
39
39
|
askUserTool
|
|
@@ -3358,7 +3358,7 @@ var callSubAgentTool = {
|
|
|
3358
3358
|
};
|
|
3359
3359
|
}
|
|
3360
3360
|
try {
|
|
3361
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3361
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-SBBC6TWC.js");
|
|
3362
3362
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3363
3363
|
const turnMetrics = new TurnMetrics();
|
|
3364
3364
|
const result = await executeSubAgent({
|
|
@@ -4487,4 +4487,4 @@ export {
|
|
|
4487
4487
|
getToolRegistryForAgent,
|
|
4488
4488
|
createToolRegistry
|
|
4489
4489
|
};
|
|
4490
|
-
//# sourceMappingURL=chunk-
|
|
4490
|
+
//# sourceMappingURL=chunk-LAUS4KUS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEventStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QEFIFVTH.js";
|
|
4
4
|
import {
|
|
5
5
|
createContextStateMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G56V75F2.js";
|
|
7
7
|
|
|
8
8
|
// src/server/utils/session-utils.ts
|
|
9
9
|
function getSessionMessageCount(sessionId) {
|
|
@@ -41,4 +41,4 @@ export {
|
|
|
41
41
|
finalizeTurnCompletion,
|
|
42
42
|
buildRunChatTurnParams
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-LUEMWIT4.js.map
|
|
@@ -764,6 +764,10 @@ function getSessionState(sessionId, maxTokens) {
|
|
|
764
764
|
break;
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
+
if (!initialWindowId && latestSnapshotEvent) {
|
|
768
|
+
const snapshotData = latestSnapshotEvent.data;
|
|
769
|
+
initialWindowId = snapshotData.sessionInit?.contextWindowId;
|
|
770
|
+
}
|
|
767
771
|
if (!initialWindowId) {
|
|
768
772
|
return void 0;
|
|
769
773
|
}
|
|
@@ -1158,4 +1162,4 @@ export {
|
|
|
1158
1162
|
compactContext,
|
|
1159
1163
|
getRecentUserPromptsForSession
|
|
1160
1164
|
};
|
|
1161
|
-
//# sourceMappingURL=chunk-
|
|
1165
|
+
//# sourceMappingURL=chunk-QEFIFVTH.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSessionName,
|
|
3
3
|
needsNameGeneration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ADNH6OIQ.js";
|
|
5
5
|
import {
|
|
6
6
|
createVerifierNudgeConfig,
|
|
7
7
|
runBuilderTurn,
|
|
8
8
|
runChatTurn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2IIJ6BX6.js";
|
|
10
10
|
import {
|
|
11
11
|
TurnMetrics,
|
|
12
12
|
agentExists,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
setSkillEnabled,
|
|
48
48
|
skillExists,
|
|
49
49
|
spawnShellProcess
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LAUS4KUS.js";
|
|
51
51
|
import {
|
|
52
52
|
getPathSeparator,
|
|
53
53
|
getPlatformShell,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
updateSessionProvider,
|
|
98
98
|
updateSessionRunning,
|
|
99
99
|
updateSessionSummary
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-QEFIFVTH.js";
|
|
101
101
|
import {
|
|
102
102
|
buildContextMessagesFromEventHistory,
|
|
103
103
|
buildMessagesFromStoredEvents,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
parseClientMessage,
|
|
119
119
|
serializeServerMessage,
|
|
120
120
|
storedEventToServerMessage
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-G56V75F2.js";
|
|
122
122
|
import {
|
|
123
123
|
EventEmitter,
|
|
124
124
|
cancelQuestionsForSession,
|
|
@@ -1214,7 +1214,7 @@ var TerminalManager = class {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
return os.homedir();
|
|
1216
1216
|
}
|
|
1217
|
-
create(workdir) {
|
|
1217
|
+
create(workdir, projectId) {
|
|
1218
1218
|
const id = this.generateId();
|
|
1219
1219
|
const shell = this.getShell();
|
|
1220
1220
|
const cwd = this.resolveWorkdir(workdir);
|
|
@@ -1228,7 +1228,8 @@ var TerminalManager = class {
|
|
|
1228
1228
|
const session = {
|
|
1229
1229
|
id,
|
|
1230
1230
|
pty: ptyProcess,
|
|
1231
|
-
workdir: cwd
|
|
1231
|
+
workdir: cwd,
|
|
1232
|
+
projectId: projectId ?? ""
|
|
1232
1233
|
};
|
|
1233
1234
|
ptyProcess.onData((data) => {
|
|
1234
1235
|
const output = { sessionId: id, data };
|
|
@@ -1292,6 +1293,10 @@ var TerminalManager = class {
|
|
|
1292
1293
|
getAll() {
|
|
1293
1294
|
return Array.from(this.sessions.values());
|
|
1294
1295
|
}
|
|
1296
|
+
getByProject(projectId) {
|
|
1297
|
+
if (!projectId) return [];
|
|
1298
|
+
return Array.from(this.sessions.values()).filter((s) => s.projectId === projectId);
|
|
1299
|
+
}
|
|
1295
1300
|
getOutputHistory(sessionId) {
|
|
1296
1301
|
return (this.outputHistory.get(sessionId) || []).join("");
|
|
1297
1302
|
}
|
|
@@ -2372,7 +2377,7 @@ function createWebSocketServer(httpServer, config, getLLMClient, getActiveProvid
|
|
|
2372
2377
|
sessionManager.setRunning(sessionId, true);
|
|
2373
2378
|
const eventStore = getEventStore();
|
|
2374
2379
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: true } });
|
|
2375
|
-
broadcastForSession(sessionId, createSessionRunningMessage(true));
|
|
2380
|
+
broadcastForSession(sessionId, createSessionRunningMessage(true, sessionId));
|
|
2376
2381
|
const nextAsap = queue.find((m) => m.mode === "asap") ?? queue[0];
|
|
2377
2382
|
if (nextAsap) {
|
|
2378
2383
|
sessionManager.cancelQueuedMessage(sessionId, nextAsap.queueId);
|
|
@@ -5444,18 +5449,21 @@ function createDevServerRoutes() {
|
|
|
5444
5449
|
import { Router as Router6 } from "express";
|
|
5445
5450
|
function createTerminalRoutes() {
|
|
5446
5451
|
const router = Router6();
|
|
5447
|
-
router.get("/", (
|
|
5448
|
-
const
|
|
5452
|
+
router.get("/", (req, res) => {
|
|
5453
|
+
const projectId = req.query["projectId"];
|
|
5454
|
+
const sessions = projectId ? terminalManager.getByProject(projectId) : [];
|
|
5449
5455
|
const response = sessions.map((s) => ({
|
|
5450
5456
|
id: s.id,
|
|
5451
|
-
workdir: s.workdir
|
|
5457
|
+
workdir: s.workdir,
|
|
5458
|
+
projectId: s.projectId
|
|
5452
5459
|
}));
|
|
5453
5460
|
res.json(response);
|
|
5454
5461
|
});
|
|
5455
5462
|
router.post("/", (req, res) => {
|
|
5456
5463
|
const workdir = req.body?.workdir;
|
|
5457
|
-
const
|
|
5458
|
-
|
|
5464
|
+
const projectId = req.body?.projectId;
|
|
5465
|
+
const session = terminalManager.create(workdir, projectId);
|
|
5466
|
+
res.status(201).json({ id: session.id, workdir: session.workdir, projectId: session.projectId });
|
|
5459
5467
|
});
|
|
5460
5468
|
router.delete("/:id", (req, res) => {
|
|
5461
5469
|
const { id } = req.params;
|
|
@@ -5479,7 +5487,7 @@ function createTerminalRoutes() {
|
|
|
5479
5487
|
}
|
|
5480
5488
|
|
|
5481
5489
|
// src/constants.ts
|
|
5482
|
-
var VERSION = "1.6.
|
|
5490
|
+
var VERSION = "1.6.50";
|
|
5483
5491
|
|
|
5484
5492
|
// src/server/index.ts
|
|
5485
5493
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -5640,7 +5648,7 @@ async function createServerHandle(config) {
|
|
|
5640
5648
|
res.json({ success: true });
|
|
5641
5649
|
});
|
|
5642
5650
|
app.get("/api/sessions", async (req, res) => {
|
|
5643
|
-
const { getRecentUserPromptsForSession } = await import("./events-
|
|
5651
|
+
const { getRecentUserPromptsForSession } = await import("./events-RXX52D3D.js");
|
|
5644
5652
|
const projectId = req.query["projectId"];
|
|
5645
5653
|
const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
|
|
5646
5654
|
const offset = parseInt(req.query["offset"]) || 0;
|
|
@@ -5673,7 +5681,7 @@ async function createServerHandle(config) {
|
|
|
5673
5681
|
res.status(201).json({ session });
|
|
5674
5682
|
});
|
|
5675
5683
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
5676
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5684
|
+
const { getEventStore: getEventStore2 } = await import("./events-RXX52D3D.js");
|
|
5677
5685
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5678
5686
|
const session = sessionManager.getSession(req.params.id);
|
|
5679
5687
|
if (!session) {
|
|
@@ -5704,7 +5712,7 @@ async function createServerHandle(config) {
|
|
|
5704
5712
|
res.json({ success: true });
|
|
5705
5713
|
});
|
|
5706
5714
|
app.post("/api/sessions/:id/provider", async (req, res) => {
|
|
5707
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5715
|
+
const { getEventStore: getEventStore2 } = await import("./events-RXX52D3D.js");
|
|
5708
5716
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5709
5717
|
const sessionId = req.params.id;
|
|
5710
5718
|
const session = sessionManager.getSession(sessionId);
|
|
@@ -5742,7 +5750,7 @@ async function createServerHandle(config) {
|
|
|
5742
5750
|
res.json({ success: true });
|
|
5743
5751
|
});
|
|
5744
5752
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
5745
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5753
|
+
const { getEventStore: getEventStore2 } = await import("./events-RXX52D3D.js");
|
|
5746
5754
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5747
5755
|
const sessionId = req.params.id;
|
|
5748
5756
|
const session = sessionManager.getSession(sessionId);
|
|
@@ -5781,14 +5789,14 @@ async function createServerHandle(config) {
|
|
|
5781
5789
|
if (!callId || approved === void 0) {
|
|
5782
5790
|
return res.status(400).json({ error: "callId and approved are required" });
|
|
5783
5791
|
}
|
|
5784
|
-
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-
|
|
5792
|
+
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-SBBC6TWC.js");
|
|
5785
5793
|
const result = providePathConfirmation2(callId, approved, alwaysAllow);
|
|
5786
5794
|
if (!result.found) {
|
|
5787
5795
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
5788
5796
|
}
|
|
5789
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5797
|
+
const { getEventStore: getEventStore2 } = await import("./events-RXX52D3D.js");
|
|
5790
5798
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-NEZWWL7K.js");
|
|
5791
|
-
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-
|
|
5799
|
+
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-4RE3E3H3.js");
|
|
5792
5800
|
const eventStore = getEventStore2();
|
|
5793
5801
|
const events = eventStore.getEvents(sessionId);
|
|
5794
5802
|
const messages = buildMessagesFromStoredEvents2(events);
|
|
@@ -5806,7 +5814,7 @@ async function createServerHandle(config) {
|
|
|
5806
5814
|
if (!callId || !answer) {
|
|
5807
5815
|
return res.status(400).json({ error: "callId and answer are required" });
|
|
5808
5816
|
}
|
|
5809
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
5817
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-SBBC6TWC.js");
|
|
5810
5818
|
const found = provideAnswer2(callId, answer);
|
|
5811
5819
|
if (!found) {
|
|
5812
5820
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -5842,14 +5850,14 @@ async function createServerHandle(config) {
|
|
|
5842
5850
|
if (!session) {
|
|
5843
5851
|
return res.status(404).json({ error: "Session not found" });
|
|
5844
5852
|
}
|
|
5845
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
5846
|
-
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-
|
|
5853
|
+
const { stopSessionExecution } = await import("./chat-handler-AQNAQSBE.js");
|
|
5854
|
+
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-SBBC6TWC.js");
|
|
5847
5855
|
stopSessionExecution(sessionId, sessionManager);
|
|
5848
5856
|
abortSession(sessionId);
|
|
5849
5857
|
cancelQuestionsForSession2(sessionId, "Session stopped by user");
|
|
5850
5858
|
cancelPathConfirmationsForSession2(sessionId, "Session stopped by user");
|
|
5851
5859
|
sessionManager.clearMessageQueue(sessionId);
|
|
5852
|
-
const eventStore = (await import("./events-
|
|
5860
|
+
const eventStore = (await import("./events-RXX52D3D.js")).getEventStore();
|
|
5853
5861
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
|
|
5854
5862
|
res.json({ success: true });
|
|
5855
5863
|
});
|
|
@@ -6302,7 +6310,7 @@ async function createServerHandle(config) {
|
|
|
6302
6310
|
providerManager
|
|
6303
6311
|
);
|
|
6304
6312
|
const wss = wssExports.wss;
|
|
6305
|
-
const { QueueProcessor } = await import("./processor-
|
|
6313
|
+
const { QueueProcessor } = await import("./processor-AJ6F6SA6.js");
|
|
6306
6314
|
const queueProcessor = new QueueProcessor({
|
|
6307
6315
|
sessionManager,
|
|
6308
6316
|
providerManager,
|
|
@@ -6375,4 +6383,4 @@ export {
|
|
|
6375
6383
|
createServerHandle,
|
|
6376
6384
|
createServer
|
|
6377
6385
|
};
|
|
6378
|
-
//# sourceMappingURL=chunk-
|
|
6386
|
+
//# sourceMappingURL=chunk-VHYVIAYJ.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
isFileInCache,
|
|
37
37
|
isStoredEvent,
|
|
38
38
|
isTurnEvent
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QEFIFVTH.js";
|
|
40
40
|
import {
|
|
41
41
|
buildContextMessagesFromEventHistory,
|
|
42
42
|
buildContextMessagesFromMessages,
|
|
@@ -111,4 +111,4 @@ export {
|
|
|
111
111
|
isStoredEvent,
|
|
112
112
|
isTurnEvent
|
|
113
113
|
};
|
|
114
|
-
//# sourceMappingURL=events-
|
|
114
|
+
//# sourceMappingURL=events-RXX52D3D.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
runBuilderTurn,
|
|
4
4
|
runChatTurn,
|
|
5
5
|
runVerifierTurn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2IIJ6BX6.js";
|
|
7
7
|
import {
|
|
8
8
|
TurnMetrics,
|
|
9
9
|
createChatDoneEvent,
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
createMessageStartEvent,
|
|
12
12
|
createToolCallEvent,
|
|
13
13
|
createToolResultEvent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LAUS4KUS.js";
|
|
15
15
|
import "./chunk-NBU6KIOD.js";
|
|
16
16
|
import "./chunk-574HZVLE.js";
|
|
17
17
|
import "./chunk-7JPKRM6M.js";
|
|
18
18
|
import "./chunk-WNZIUQ2L.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-QEFIFVTH.js";
|
|
20
20
|
import "./chunk-LIMBYVO4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-G56V75F2.js";
|
|
22
22
|
import "./chunk-22CTURMH.js";
|
|
23
23
|
import "./chunk-GQZGIMJO.js";
|
|
24
24
|
import "./chunk-BLNFJ22S.js";
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
runChatTurn,
|
|
40
40
|
runVerifierTurn
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=orchestrator-
|
|
42
|
+
//# sourceMappingURL=orchestrator-FPX4NLIZ.js.map
|
package/dist/package.json
CHANGED
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
getSessionMessageCount
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LUEMWIT4.js";
|
|
6
6
|
import {
|
|
7
7
|
applyGeneratedSessionName,
|
|
8
8
|
generateSessionName,
|
|
9
9
|
needsNameGenerationCheck
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ADNH6OIQ.js";
|
|
11
11
|
import {
|
|
12
12
|
getEventStore
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QEFIFVTH.js";
|
|
14
14
|
import "./chunk-LIMBYVO4.js";
|
|
15
15
|
import {
|
|
16
16
|
createChatMessageMessage,
|
|
17
17
|
createSessionRunningMessage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-G56V75F2.js";
|
|
19
19
|
import "./chunk-BLNFJ22S.js";
|
|
20
20
|
import "./chunk-Y6HBEACI.js";
|
|
21
21
|
import "./chunk-TVQOONDR.js";
|
|
@@ -175,7 +175,7 @@ var QueueProcessor = class {
|
|
|
175
175
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
176
176
|
model: llmClient.getModel()
|
|
177
177
|
};
|
|
178
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
178
|
+
const { runChatTurn } = await import("./orchestrator-FPX4NLIZ.js");
|
|
179
179
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
180
180
|
sessionManager,
|
|
181
181
|
sessionId,
|
|
@@ -208,4 +208,4 @@ var QueueProcessor = class {
|
|
|
208
208
|
export {
|
|
209
209
|
QueueProcessor
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=processor-
|
|
211
|
+
//# sourceMappingURL=processor-AJ6F6SA6.js.map
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
parseClientMessage,
|
|
41
41
|
serializeServerMessage,
|
|
42
42
|
storedEventToServerMessage
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-G56V75F2.js";
|
|
44
44
|
import "./chunk-Y6HBEACI.js";
|
|
45
45
|
export {
|
|
46
46
|
createChatAskUserMessage,
|
|
@@ -85,4 +85,4 @@ export {
|
|
|
85
85
|
serializeServerMessage,
|
|
86
86
|
storedEventToServerMessage
|
|
87
87
|
};
|
|
88
|
-
//# sourceMappingURL=protocol-
|
|
88
|
+
//# sourceMappingURL=protocol-4RE3E3H3.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-VHYVIAYJ.js";
|
|
10
|
+
import "./chunk-ADNH6OIQ.js";
|
|
11
|
+
import "./chunk-2IIJ6BX6.js";
|
|
12
|
+
import "./chunk-LAUS4KUS.js";
|
|
13
13
|
import "./chunk-NBU6KIOD.js";
|
|
14
14
|
import "./chunk-574HZVLE.js";
|
|
15
15
|
import "./chunk-7JPKRM6M.js";
|
|
16
16
|
import "./chunk-HYIQFRYJ.js";
|
|
17
17
|
import "./chunk-F2VWCCMC.js";
|
|
18
18
|
import "./chunk-WNZIUQ2L.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-QEFIFVTH.js";
|
|
20
20
|
import "./chunk-LIMBYVO4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-G56V75F2.js";
|
|
22
22
|
import "./chunk-22CTURMH.js";
|
|
23
23
|
import "./chunk-GQZGIMJO.js";
|
|
24
24
|
import "./chunk-BLNFJ22S.js";
|
|
@@ -188,4 +188,4 @@ async function runServe(options) {
|
|
|
188
188
|
export {
|
|
189
189
|
runServe
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=serve-
|
|
191
|
+
//# sourceMappingURL=serve-TS4EE3JV.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-VHYVIAYJ.js";
|
|
5
|
+
import "../chunk-ADNH6OIQ.js";
|
|
6
|
+
import "../chunk-2IIJ6BX6.js";
|
|
7
|
+
import "../chunk-LAUS4KUS.js";
|
|
8
8
|
import "../chunk-NBU6KIOD.js";
|
|
9
9
|
import "../chunk-574HZVLE.js";
|
|
10
10
|
import "../chunk-7JPKRM6M.js";
|
|
11
11
|
import "../chunk-HYIQFRYJ.js";
|
|
12
12
|
import "../chunk-F2VWCCMC.js";
|
|
13
13
|
import "../chunk-WNZIUQ2L.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-QEFIFVTH.js";
|
|
15
15
|
import "../chunk-LIMBYVO4.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-G56V75F2.js";
|
|
17
17
|
import "../chunk-22CTURMH.js";
|
|
18
18
|
import "../chunk-GQZGIMJO.js";
|
|
19
19
|
import "../chunk-BLNFJ22S.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
requestPathAccess,
|
|
12
12
|
stepDoneTool,
|
|
13
13
|
validateToolAction
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LAUS4KUS.js";
|
|
15
15
|
import "./chunk-NBU6KIOD.js";
|
|
16
16
|
import "./chunk-574HZVLE.js";
|
|
17
17
|
import "./chunk-7JPKRM6M.js";
|
|
18
18
|
import "./chunk-WNZIUQ2L.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-QEFIFVTH.js";
|
|
20
20
|
import "./chunk-LIMBYVO4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-G56V75F2.js";
|
|
22
22
|
import {
|
|
23
23
|
AskUserInterrupt,
|
|
24
24
|
cancelQuestionsForSession,
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
stepDoneTool,
|
|
49
49
|
validateToolAction
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=tools-
|
|
51
|
+
//# sourceMappingURL=tools-SBBC6TWC.js.map
|