openfox 1.6.51 → 1.6.52
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-VM4PWNSL.js → auto-compaction-43QXHIOZ.js} +5 -5
- package/dist/{chat-handler-AQNAQSBE.js → chat-handler-UMXEBSMS.js} +9 -9
- package/dist/{chunk-LUEMWIT4.js → chunk-2L4DPLCM.js} +3 -3
- package/dist/{chunk-6ZIAD3UH.js → chunk-BMNBXLFY.js} +20 -20
- package/dist/{chunk-Y6HBEACI.js → chunk-H5ZZGLQU.js} +1 -1
- package/dist/{chunk-G56V75F2.js → chunk-HQSCGJ6V.js} +2 -2
- package/dist/{chunk-LAUS4KUS.js → chunk-NVWJC2YZ.js} +26 -7
- package/dist/{chunk-ADNH6OIQ.js → chunk-OPT4YF7X.js} +3 -3
- package/dist/{chunk-2IIJ6BX6.js → chunk-PLIGDCWB.js} +3 -3
- package/dist/{chunk-QEFIFVTH.js → chunk-UQGY56XJ.js} +1 -1
- package/dist/{chunk-CAWG7OPR.js → chunk-XKI3OYFD.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{events-RXX52D3D.js → events-UCHHTT6X.js} +2 -2
- package/dist/{orchestrator-FPX4NLIZ.js → orchestrator-JSLETK3F.js} +6 -6
- package/dist/package.json +1 -1
- package/dist/{processor-AJ6F6SA6.js → processor-Q4NS4MID.js} +7 -7
- package/dist/{protocol-_A3Upt5b.d.ts → protocol-BWFqvGie.d.ts} +2 -2
- package/dist/{protocol-4RE3E3H3.js → protocol-GG65P3FF.js} +3 -3
- package/dist/{serve-K56IPLYD.js → serve-HPBQJTEZ.js} +8 -8
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +7 -7
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-SBBC6TWC.js → tools-DTNPLRKJ.js} +5 -5
- package/dist/web/assets/{index--Frce5_n.js → index-CugBax2x.js} +61 -61
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
maybeAutoCompactContext,
|
|
3
3
|
performManualContextCompaction,
|
|
4
4
|
resolveCompactionStatsIdentity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NVWJC2YZ.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-UQGY56XJ.js";
|
|
11
11
|
import "./chunk-LIMBYVO4.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HQSCGJ6V.js";
|
|
13
13
|
import "./chunk-22CTURMH.js";
|
|
14
14
|
import "./chunk-GQZGIMJO.js";
|
|
15
15
|
import "./chunk-BLNFJ22S.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-H5ZZGLQU.js";
|
|
17
17
|
import "./chunk-R4HADRYO.js";
|
|
18
18
|
import "./chunk-TVQOONDR.js";
|
|
19
19
|
import "./chunk-VCALN543.js";
|
|
@@ -23,4 +23,4 @@ export {
|
|
|
23
23
|
performManualContextCompaction,
|
|
24
24
|
resolveCompactionStatsIdentity
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=auto-compaction-
|
|
26
|
+
//# sourceMappingURL=auto-compaction-43QXHIOZ.js.map
|
|
@@ -2,33 +2,33 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
getSessionMessageCount
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2L4DPLCM.js";
|
|
6
6
|
import {
|
|
7
7
|
applyGeneratedSessionName,
|
|
8
8
|
generateSessionName,
|
|
9
9
|
needsNameGenerationCheck
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OPT4YF7X.js";
|
|
11
11
|
import {
|
|
12
12
|
runChatTurn
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-PLIGDCWB.js";
|
|
14
|
+
import "./chunk-NVWJC2YZ.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-UQGY56XJ.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-HQSCGJ6V.js";
|
|
28
28
|
import "./chunk-22CTURMH.js";
|
|
29
29
|
import "./chunk-GQZGIMJO.js";
|
|
30
30
|
import "./chunk-BLNFJ22S.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-H5ZZGLQU.js";
|
|
32
32
|
import "./chunk-R4HADRYO.js";
|
|
33
33
|
import "./chunk-TVQOONDR.js";
|
|
34
34
|
import "./chunk-VCALN543.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-43QXHIOZ.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-UMXEBSMS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEventStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UQGY56XJ.js";
|
|
4
4
|
import {
|
|
5
5
|
createContextStateMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HQSCGJ6V.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-2L4DPLCM.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSessionName,
|
|
3
3
|
needsNameGeneration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OPT4YF7X.js";
|
|
5
5
|
import {
|
|
6
6
|
createVerifierNudgeConfig,
|
|
7
7
|
runBuilderTurn,
|
|
8
8
|
runChatTurn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PLIGDCWB.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-NVWJC2YZ.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-UQGY56XJ.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-HQSCGJ6V.js";
|
|
122
122
|
import {
|
|
123
123
|
EventEmitter,
|
|
124
124
|
cancelQuestionsForSession,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
} from "./chunk-B7E3BICY.js";
|
|
133
133
|
import {
|
|
134
134
|
createServerMessage
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-H5ZZGLQU.js";
|
|
136
136
|
import {
|
|
137
137
|
getGlobalConfigDir
|
|
138
138
|
} from "./chunk-R4HADRYO.js";
|
|
@@ -5487,7 +5487,7 @@ function createTerminalRoutes() {
|
|
|
5487
5487
|
}
|
|
5488
5488
|
|
|
5489
5489
|
// src/constants.ts
|
|
5490
|
-
var VERSION = "1.6.
|
|
5490
|
+
var VERSION = "1.6.52";
|
|
5491
5491
|
|
|
5492
5492
|
// src/server/index.ts
|
|
5493
5493
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -5648,7 +5648,7 @@ async function createServerHandle(config) {
|
|
|
5648
5648
|
res.json({ success: true });
|
|
5649
5649
|
});
|
|
5650
5650
|
app.get("/api/sessions", async (req, res) => {
|
|
5651
|
-
const { getRecentUserPromptsForSession } = await import("./events-
|
|
5651
|
+
const { getRecentUserPromptsForSession } = await import("./events-UCHHTT6X.js");
|
|
5652
5652
|
const projectId = req.query["projectId"];
|
|
5653
5653
|
const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
|
|
5654
5654
|
const offset = parseInt(req.query["offset"]) || 0;
|
|
@@ -5681,7 +5681,7 @@ async function createServerHandle(config) {
|
|
|
5681
5681
|
res.status(201).json({ session });
|
|
5682
5682
|
});
|
|
5683
5683
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
5684
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5684
|
+
const { getEventStore: getEventStore2 } = await import("./events-UCHHTT6X.js");
|
|
5685
5685
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5686
5686
|
const session = sessionManager.getSession(req.params.id);
|
|
5687
5687
|
if (!session) {
|
|
@@ -5712,7 +5712,7 @@ async function createServerHandle(config) {
|
|
|
5712
5712
|
res.json({ success: true });
|
|
5713
5713
|
});
|
|
5714
5714
|
app.post("/api/sessions/:id/provider", async (req, res) => {
|
|
5715
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5715
|
+
const { getEventStore: getEventStore2 } = await import("./events-UCHHTT6X.js");
|
|
5716
5716
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5717
5717
|
const sessionId = req.params.id;
|
|
5718
5718
|
const session = sessionManager.getSession(sessionId);
|
|
@@ -5750,7 +5750,7 @@ async function createServerHandle(config) {
|
|
|
5750
5750
|
res.json({ success: true });
|
|
5751
5751
|
});
|
|
5752
5752
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
5753
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5753
|
+
const { getEventStore: getEventStore2 } = await import("./events-UCHHTT6X.js");
|
|
5754
5754
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5755
5755
|
const sessionId = req.params.id;
|
|
5756
5756
|
const session = sessionManager.getSession(sessionId);
|
|
@@ -5789,14 +5789,14 @@ async function createServerHandle(config) {
|
|
|
5789
5789
|
if (!callId || approved === void 0) {
|
|
5790
5790
|
return res.status(400).json({ error: "callId and approved are required" });
|
|
5791
5791
|
}
|
|
5792
|
-
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-
|
|
5792
|
+
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-DTNPLRKJ.js");
|
|
5793
5793
|
const result = providePathConfirmation2(callId, approved, alwaysAllow);
|
|
5794
5794
|
if (!result.found) {
|
|
5795
5795
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
5796
5796
|
}
|
|
5797
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5797
|
+
const { getEventStore: getEventStore2 } = await import("./events-UCHHTT6X.js");
|
|
5798
5798
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-NEZWWL7K.js");
|
|
5799
|
-
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-
|
|
5799
|
+
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-GG65P3FF.js");
|
|
5800
5800
|
const eventStore = getEventStore2();
|
|
5801
5801
|
const events = eventStore.getEvents(sessionId);
|
|
5802
5802
|
const messages = buildMessagesFromStoredEvents2(events);
|
|
@@ -5814,7 +5814,7 @@ async function createServerHandle(config) {
|
|
|
5814
5814
|
if (!callId || !answer) {
|
|
5815
5815
|
return res.status(400).json({ error: "callId and answer are required" });
|
|
5816
5816
|
}
|
|
5817
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
5817
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-DTNPLRKJ.js");
|
|
5818
5818
|
const found = provideAnswer2(callId, answer);
|
|
5819
5819
|
if (!found) {
|
|
5820
5820
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -5850,14 +5850,14 @@ async function createServerHandle(config) {
|
|
|
5850
5850
|
if (!session) {
|
|
5851
5851
|
return res.status(404).json({ error: "Session not found" });
|
|
5852
5852
|
}
|
|
5853
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
5854
|
-
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-
|
|
5853
|
+
const { stopSessionExecution } = await import("./chat-handler-UMXEBSMS.js");
|
|
5854
|
+
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-DTNPLRKJ.js");
|
|
5855
5855
|
stopSessionExecution(sessionId, sessionManager);
|
|
5856
5856
|
abortSession(sessionId);
|
|
5857
5857
|
cancelQuestionsForSession2(sessionId, "Session stopped by user");
|
|
5858
5858
|
cancelPathConfirmationsForSession2(sessionId, "Session stopped by user");
|
|
5859
5859
|
sessionManager.clearMessageQueue(sessionId);
|
|
5860
|
-
const eventStore = (await import("./events-
|
|
5860
|
+
const eventStore = (await import("./events-UCHHTT6X.js")).getEventStore();
|
|
5861
5861
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
|
|
5862
5862
|
res.json({ success: true });
|
|
5863
5863
|
});
|
|
@@ -6310,7 +6310,7 @@ async function createServerHandle(config) {
|
|
|
6310
6310
|
providerManager
|
|
6311
6311
|
);
|
|
6312
6312
|
const wss = wssExports.wss;
|
|
6313
|
-
const { QueueProcessor } = await import("./processor-
|
|
6313
|
+
const { QueueProcessor } = await import("./processor-Q4NS4MID.js");
|
|
6314
6314
|
const queueProcessor = new QueueProcessor({
|
|
6315
6315
|
sessionManager,
|
|
6316
6316
|
providerManager,
|
|
@@ -6383,4 +6383,4 @@ export {
|
|
|
6383
6383
|
createServerHandle,
|
|
6384
6384
|
createServer
|
|
6385
6385
|
};
|
|
6386
|
-
//# sourceMappingURL=chunk-
|
|
6386
|
+
//# sourceMappingURL=chunk-BMNBXLFY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServerMessage,
|
|
3
3
|
isClientMessage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H5ZZGLQU.js";
|
|
5
5
|
|
|
6
6
|
// src/server/ws/protocol.ts
|
|
7
7
|
function enrichMessagesWithToolResults(messages) {
|
|
@@ -333,4 +333,4 @@ export {
|
|
|
333
333
|
isQueueCancelPayload,
|
|
334
334
|
storedEventToServerMessage
|
|
335
335
|
};
|
|
336
|
-
//# sourceMappingURL=chunk-
|
|
336
|
+
//# sourceMappingURL=chunk-HQSCGJ6V.js.map
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
getContextMessages,
|
|
25
25
|
getCurrentContextWindowId,
|
|
26
26
|
getEventStore
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UQGY56XJ.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-HQSCGJ6V.js";
|
|
37
37
|
import {
|
|
38
38
|
AskUserInterrupt,
|
|
39
39
|
askUserTool
|
|
@@ -1381,6 +1381,10 @@ function extractDangerousPatterns(command) {
|
|
|
1381
1381
|
}
|
|
1382
1382
|
return dangerous;
|
|
1383
1383
|
}
|
|
1384
|
+
var GIT_NO_VERIFY_PATTERN = /\bgit\s+\w+\s+.*(?:--no-verify|-n)/;
|
|
1385
|
+
function extractGitNoVerify(command) {
|
|
1386
|
+
return GIT_NO_VERIFY_PATTERN.test(command);
|
|
1387
|
+
}
|
|
1384
1388
|
async function requestPathAccess(paths, workdir, sessionId, callId, tool, onEvent, dangerLevel, command) {
|
|
1385
1389
|
const emitPendingEvent = (confirmationPaths, confirmationReason) => {
|
|
1386
1390
|
try {
|
|
@@ -1392,6 +1396,20 @@ async function requestPathAccess(paths, workdir, sessionId, callId, tool, onEven
|
|
|
1392
1396
|
} catch {
|
|
1393
1397
|
}
|
|
1394
1398
|
};
|
|
1399
|
+
if (command && extractGitNoVerify(command)) {
|
|
1400
|
+
emitPendingEvent([workdir], "git_no_verify");
|
|
1401
|
+
const confirmationPromise2 = registerPathConfirmation(callId, [workdir], sessionId);
|
|
1402
|
+
onEvent(createChatPathConfirmationMessage(callId, tool, ["git --no-verify detected"], workdir, "git_no_verify"));
|
|
1403
|
+
const approved2 = await confirmationPromise2;
|
|
1404
|
+
if (!approved2) {
|
|
1405
|
+
throw new PathAccessDeniedError(
|
|
1406
|
+
["git --no-verify"],
|
|
1407
|
+
tool,
|
|
1408
|
+
"git_no_verify",
|
|
1409
|
+
"User denied git command with --no-verify. The agent must not use --no-verify and must resolve the issue (e.g., fix lint errors, resolve conflicts) that prevents the commit."
|
|
1410
|
+
);
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1395
1413
|
if (dangerLevel !== "dangerous" && command) {
|
|
1396
1414
|
const dangerousPatterns = extractDangerousPatterns(command);
|
|
1397
1415
|
if (dangerousPatterns.length > 0) {
|
|
@@ -1426,12 +1444,13 @@ async function requestPathAccess(paths, workdir, sessionId, callId, tool, onEven
|
|
|
1426
1444
|
}
|
|
1427
1445
|
}
|
|
1428
1446
|
var PathAccessDeniedError = class extends Error {
|
|
1429
|
-
constructor(paths, tool, reason = "outside_workdir") {
|
|
1430
|
-
const reasonText = reason === "sensitive_file" ? "sensitive files (may contain secrets)" : reason === "both" ? "paths outside workdir and sensitive files" : "paths outside workdir";
|
|
1431
|
-
super(`User denied access to ${reasonText}: ${paths.join(", ")}`);
|
|
1447
|
+
constructor(paths, tool, reason = "outside_workdir", customMessage) {
|
|
1448
|
+
const reasonText = reason === "sensitive_file" ? "sensitive files (may contain secrets)" : reason === "both" ? "paths outside workdir and sensitive files" : reason === "git_no_verify" ? "git commands with --no-verify" : "paths outside workdir";
|
|
1449
|
+
super(customMessage ?? `User denied access to ${reasonText}: ${paths.join(", ")}`);
|
|
1432
1450
|
this.paths = paths;
|
|
1433
1451
|
this.tool = tool;
|
|
1434
1452
|
this.reason = reason;
|
|
1453
|
+
this.customMessage = customMessage;
|
|
1435
1454
|
this.name = "PathAccessDeniedError";
|
|
1436
1455
|
}
|
|
1437
1456
|
};
|
|
@@ -3358,7 +3377,7 @@ var callSubAgentTool = {
|
|
|
3358
3377
|
};
|
|
3359
3378
|
}
|
|
3360
3379
|
try {
|
|
3361
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3380
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-DTNPLRKJ.js");
|
|
3362
3381
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3363
3382
|
const turnMetrics = new TurnMetrics();
|
|
3364
3383
|
const result = await executeSubAgent({
|
|
@@ -4487,4 +4506,4 @@ export {
|
|
|
4487
4506
|
getToolRegistryForAgent,
|
|
4488
4507
|
createToolRegistry
|
|
4489
4508
|
};
|
|
4490
|
-
//# sourceMappingURL=chunk-
|
|
4509
|
+
//# sourceMappingURL=chunk-NVWJC2YZ.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateSessionMetadata
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UQGY56XJ.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-HQSCGJ6V.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-OPT4YF7X.js.map
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
getToolRegistryForAgent,
|
|
14
14
|
loadAllAgentsDefault,
|
|
15
15
|
runTopLevelAgentLoop
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NVWJC2YZ.js";
|
|
17
17
|
import {
|
|
18
18
|
getCurrentContextWindowId,
|
|
19
19
|
getEventStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UQGY56XJ.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-PLIGDCWB.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-HPBQJTEZ.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-XKI3OYFD.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-UQGY56XJ.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-UCHHTT6X.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
runBuilderTurn,
|
|
4
4
|
runChatTurn,
|
|
5
5
|
runVerifierTurn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PLIGDCWB.js";
|
|
7
7
|
import {
|
|
8
8
|
TurnMetrics,
|
|
9
9
|
createChatDoneEvent,
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
createMessageStartEvent,
|
|
12
12
|
createToolCallEvent,
|
|
13
13
|
createToolResultEvent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NVWJC2YZ.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-UQGY56XJ.js";
|
|
20
20
|
import "./chunk-LIMBYVO4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-HQSCGJ6V.js";
|
|
22
22
|
import "./chunk-22CTURMH.js";
|
|
23
23
|
import "./chunk-GQZGIMJO.js";
|
|
24
24
|
import "./chunk-BLNFJ22S.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-H5ZZGLQU.js";
|
|
26
26
|
import "./chunk-R4HADRYO.js";
|
|
27
27
|
import "./chunk-TVQOONDR.js";
|
|
28
28
|
import "./chunk-VCALN543.js";
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
runChatTurn,
|
|
40
40
|
runVerifierTurn
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=orchestrator-
|
|
42
|
+
//# sourceMappingURL=orchestrator-JSLETK3F.js.map
|
package/dist/package.json
CHANGED
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
getSessionMessageCount
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2L4DPLCM.js";
|
|
6
6
|
import {
|
|
7
7
|
applyGeneratedSessionName,
|
|
8
8
|
generateSessionName,
|
|
9
9
|
needsNameGenerationCheck
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OPT4YF7X.js";
|
|
11
11
|
import {
|
|
12
12
|
getEventStore
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UQGY56XJ.js";
|
|
14
14
|
import "./chunk-LIMBYVO4.js";
|
|
15
15
|
import {
|
|
16
16
|
createChatMessageMessage,
|
|
17
17
|
createSessionRunningMessage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HQSCGJ6V.js";
|
|
19
19
|
import "./chunk-BLNFJ22S.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-H5ZZGLQU.js";
|
|
21
21
|
import "./chunk-TVQOONDR.js";
|
|
22
22
|
import {
|
|
23
23
|
logger
|
|
@@ -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-JSLETK3F.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-Q4NS4MID.js.map
|
|
@@ -551,7 +551,7 @@ interface PendingPathConfirmationPayload {
|
|
|
551
551
|
tool: string;
|
|
552
552
|
paths: string[];
|
|
553
553
|
workdir: string;
|
|
554
|
-
reason: 'outside_workdir' | 'sensitive_file' | 'both' | 'dangerous_command';
|
|
554
|
+
reason: 'outside_workdir' | 'sensitive_file' | 'both' | 'dangerous_command' | 'git_no_verify';
|
|
555
555
|
}
|
|
556
556
|
interface SessionListPayload {
|
|
557
557
|
sessions: SessionSummary[];
|
|
@@ -640,7 +640,7 @@ interface ChatErrorPayload {
|
|
|
640
640
|
error: string;
|
|
641
641
|
recoverable: boolean;
|
|
642
642
|
}
|
|
643
|
-
type PathConfirmationReason = 'outside_workdir' | 'sensitive_file' | 'both' | 'dangerous_command';
|
|
643
|
+
type PathConfirmationReason = 'outside_workdir' | 'sensitive_file' | 'both' | 'dangerous_command' | 'git_no_verify';
|
|
644
644
|
interface ChatPathConfirmationPayload {
|
|
645
645
|
callId: string;
|
|
646
646
|
tool: string;
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
parseClientMessage,
|
|
41
41
|
serializeServerMessage,
|
|
42
42
|
storedEventToServerMessage
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-HQSCGJ6V.js";
|
|
44
|
+
import "./chunk-H5ZZGLQU.js";
|
|
45
45
|
export {
|
|
46
46
|
createChatAskUserMessage,
|
|
47
47
|
createChatDeltaMessage,
|
|
@@ -85,4 +85,4 @@ export {
|
|
|
85
85
|
serializeServerMessage,
|
|
86
86
|
storedEventToServerMessage
|
|
87
87
|
};
|
|
88
|
-
//# sourceMappingURL=protocol-
|
|
88
|
+
//# sourceMappingURL=protocol-GG65P3FF.js.map
|
|
@@ -6,24 +6,24 @@ 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-BMNBXLFY.js";
|
|
10
|
+
import "./chunk-OPT4YF7X.js";
|
|
11
|
+
import "./chunk-PLIGDCWB.js";
|
|
12
|
+
import "./chunk-NVWJC2YZ.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-UQGY56XJ.js";
|
|
20
20
|
import "./chunk-LIMBYVO4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-HQSCGJ6V.js";
|
|
22
22
|
import "./chunk-22CTURMH.js";
|
|
23
23
|
import "./chunk-GQZGIMJO.js";
|
|
24
24
|
import "./chunk-BLNFJ22S.js";
|
|
25
25
|
import "./chunk-B7E3BICY.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-H5ZZGLQU.js";
|
|
27
27
|
import {
|
|
28
28
|
ensureDataDirExists,
|
|
29
29
|
getDatabasePath,
|
|
@@ -188,4 +188,4 @@ async function runServe(options) {
|
|
|
188
188
|
export {
|
|
189
189
|
runServe
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=serve-
|
|
191
|
+
//# sourceMappingURL=serve-HPBQJTEZ.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aT as ToolCall, c as Attachment, V as Diagnostic, ap as Provider, aa as ModelConfig, aF as Session, aO as SessionSummary, ah as Project, aJ as SessionMode, aL as SessionPhase, M as Message, N as Criterion, P as CriterionStatus, aB as QueuedMessage, H as ContextState, R as DangerLevel$1, aD as ServerMessage, aQ as StatsIdentity, aW as ToolResult, F as Config } from '../protocol-
|
|
1
|
+
import { aT as ToolCall, c as Attachment, V as Diagnostic, ap as Provider, aa as ModelConfig, aF as Session, aO as SessionSummary, ah as Project, aJ as SessionMode, aL as SessionPhase, M as Message, N as Criterion, P as CriterionStatus, aB as QueuedMessage, H as ContextState, R as DangerLevel$1, aD as ServerMessage, aQ as StatsIdentity, aW as ToolResult, F as Config } from '../protocol-BWFqvGie.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
|
|
4
4
|
interface LLMMessage {
|