openfox 2.0.32 → 2.0.34
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-NXK4SYGA.js → chat-handler-YCFYRTFG.js} +3 -3
- package/dist/{chunk-7CCRQRQ4.js → chunk-EB2RIVZA.js} +2 -2
- package/dist/{chunk-E4EUSGI7.js → chunk-IBKGV6OJ.js} +7 -3
- package/dist/{chunk-KF75UHK5.js → chunk-L772ZPG3.js} +31 -13
- package/dist/{chunk-U7MFDM6L.js → chunk-U6IPDG7P.js} +2 -2
- package/dist/{chunk-BXUFIMHG.js → chunk-XJU2PBLN.js} +22 -19
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{orchestrator-4FTESO2X.js → orchestrator-YJV4CXKV.js} +3 -3
- package/dist/package.json +1 -1
- package/dist/{processor-EV3WONAR.js → processor-VGVPSVGE.js} +3 -3
- package/dist/{serve-CB44TMNB.js → serve-CJHC25E3.js} +5 -5
- package/dist/server/index.js +4 -4
- package/dist/{server-I5U4MNGB.js → server-RHYGD2Q6.js} +4 -4
- package/dist/{tools-EKK2C42A.js → tools-2QBZBNDL.js} +2 -2
- package/dist/web/assets/{index-CJuwWvXr.css → index-DIvNnXne.css} +1 -1
- package/dist/web/assets/{index-DS0Hsr0z.js → index-DSn90-wB.js} +60 -60
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from "./chunk-BGCDJYNU.js";
|
|
6
6
|
import {
|
|
7
7
|
runChatTurn
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-EB2RIVZA.js";
|
|
9
|
+
import "./chunk-XJU2PBLN.js";
|
|
10
10
|
import "./chunk-DL6ZILAF.js";
|
|
11
11
|
import "./chunk-PBGOZMVY.js";
|
|
12
12
|
import "./chunk-VRGRAQDG.js";
|
|
@@ -145,4 +145,4 @@ export {
|
|
|
145
145
|
startChatSession,
|
|
146
146
|
stopSessionExecution
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=chat-handler-
|
|
148
|
+
//# sourceMappingURL=chat-handler-YCFYRTFG.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
loadAllAgentsDefault,
|
|
13
13
|
processEventsForConversation,
|
|
14
14
|
runTopLevelAgentLoop
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XJU2PBLN.js";
|
|
16
16
|
import {
|
|
17
17
|
TurnMetrics,
|
|
18
18
|
WORKFLOW_KICKOFF_PROMPT,
|
|
@@ -310,4 +310,4 @@ export {
|
|
|
310
310
|
runAgentTurn,
|
|
311
311
|
injectWorkflowKickoffIfNeeded
|
|
312
312
|
};
|
|
313
|
-
//# sourceMappingURL=chunk-
|
|
313
|
+
//# sourceMappingURL=chunk-EB2RIVZA.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
injectWorkflowKickoffIfNeeded,
|
|
3
3
|
runAgentTurn,
|
|
4
4
|
runChatTurn
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EB2RIVZA.js";
|
|
6
6
|
import {
|
|
7
7
|
applyDynamicContext,
|
|
8
8
|
checkAborted,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
loadAllAgentsDefault,
|
|
17
17
|
saveItemToDir,
|
|
18
18
|
spawnShellProcess
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XJU2PBLN.js";
|
|
20
20
|
import {
|
|
21
21
|
getPlatformShell,
|
|
22
22
|
onProcessEvent
|
|
@@ -765,6 +765,10 @@ async function executeWorkflow(workflow, options, subGroup) {
|
|
|
765
765
|
stepOutput: lastStepOutput
|
|
766
766
|
};
|
|
767
767
|
sessionManager.setPhase(sessionId, step.phase);
|
|
768
|
+
if (step.type === "agent") {
|
|
769
|
+
const agentStep = step;
|
|
770
|
+
sessionManager.setMode(sessionId, agentStep.agentId ?? "planner");
|
|
771
|
+
}
|
|
768
772
|
logger.debug("Workflow step executing", { sessionId, iteration: iterations, stepId: step.id, stepType: step.type });
|
|
769
773
|
let stepOutcome = null;
|
|
770
774
|
switch (step.type) {
|
|
@@ -2052,4 +2056,4 @@ export {
|
|
|
2052
2056
|
signalMcpReady,
|
|
2053
2057
|
createWebSocketServer
|
|
2054
2058
|
};
|
|
2055
|
-
//# sourceMappingURL=chunk-
|
|
2059
|
+
//# sourceMappingURL=chunk-IBKGV6OJ.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
tokenFromPassword,
|
|
22
22
|
verifyPassword,
|
|
23
23
|
workflowExists
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IBKGV6OJ.js";
|
|
25
25
|
import {
|
|
26
26
|
agentExists,
|
|
27
27
|
createToolRegistry,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
setMcpTools,
|
|
62
62
|
setNotifyMcpServersChanged,
|
|
63
63
|
skillExists
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-XJU2PBLN.js";
|
|
65
65
|
import {
|
|
66
66
|
getPathSeparator,
|
|
67
67
|
isAbsolutePath
|
|
@@ -3440,7 +3440,7 @@ import { Router as Router6 } from "express";
|
|
|
3440
3440
|
import { spawn as spawn2 } from "child_process";
|
|
3441
3441
|
|
|
3442
3442
|
// src/constants.ts
|
|
3443
|
-
var VERSION = "2.0.
|
|
3443
|
+
var VERSION = "2.0.34";
|
|
3444
3444
|
|
|
3445
3445
|
// src/server/routes/auto-update.ts
|
|
3446
3446
|
var updateInProgress = false;
|
|
@@ -3620,7 +3620,7 @@ async function createServerHandle(config4) {
|
|
|
3620
3620
|
setMcpTools(mcpTools);
|
|
3621
3621
|
logger.info("MCP tools registered", { count: mcpTools.length });
|
|
3622
3622
|
}
|
|
3623
|
-
const { signalMcpReady } = await import("./server-
|
|
3623
|
+
const { signalMcpReady } = await import("./server-RHYGD2Q6.js");
|
|
3624
3624
|
signalMcpReady();
|
|
3625
3625
|
});
|
|
3626
3626
|
const app = express();
|
|
@@ -3813,7 +3813,7 @@ async function createServerHandle(config4) {
|
|
|
3813
3813
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
3814
3814
|
const { getEventStore: getEventStore2 } = await import("./events-YLICLPBY.js");
|
|
3815
3815
|
const { buildMessagesFromStoredEvents } = await import("./folding-PI67HWBR.js");
|
|
3816
|
-
const { getPendingQuestionsForSession } = await import("./tools-
|
|
3816
|
+
const { getPendingQuestionsForSession } = await import("./tools-2QBZBNDL.js");
|
|
3817
3817
|
const session = sessionManager.getSession(req.params.id);
|
|
3818
3818
|
if (!session) {
|
|
3819
3819
|
return res.status(404).json({ error: "Session not found" });
|
|
@@ -3888,6 +3888,24 @@ async function createServerHandle(config4) {
|
|
|
3888
3888
|
sessionManager.setMetadataEntries(sessionId, "criteria", entries);
|
|
3889
3889
|
res.json({ success: true });
|
|
3890
3890
|
});
|
|
3891
|
+
app.put("/api/sessions/:id/review-findings", async (req, res) => {
|
|
3892
|
+
const sessionId = req.params.id;
|
|
3893
|
+
const session = sessionManager.getSession(sessionId);
|
|
3894
|
+
if (!session) {
|
|
3895
|
+
return res.status(404).json({ error: "Session not found" });
|
|
3896
|
+
}
|
|
3897
|
+
const { review_findings } = req.body;
|
|
3898
|
+
if (!Array.isArray(review_findings)) {
|
|
3899
|
+
return res.status(400).json({ error: "review_findings is required and must be an array" });
|
|
3900
|
+
}
|
|
3901
|
+
const entries = review_findings.map((c, i) => ({
|
|
3902
|
+
id: c.id ?? String(i),
|
|
3903
|
+
description: c.description,
|
|
3904
|
+
status: c.status ?? "open"
|
|
3905
|
+
}));
|
|
3906
|
+
sessionManager.setMetadataEntries(sessionId, "review_findings", entries);
|
|
3907
|
+
res.json({ success: true });
|
|
3908
|
+
});
|
|
3891
3909
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
3892
3910
|
const { getEventStore: getEventStore2 } = await import("./events-YLICLPBY.js");
|
|
3893
3911
|
const { buildMessagesFromStoredEvents } = await import("./folding-PI67HWBR.js");
|
|
@@ -3946,7 +3964,7 @@ async function createServerHandle(config4) {
|
|
|
3946
3964
|
if (!callId || approved === void 0) {
|
|
3947
3965
|
return res.status(400).json({ error: "callId and approved are required" });
|
|
3948
3966
|
}
|
|
3949
|
-
const { providePathConfirmation } = await import("./tools-
|
|
3967
|
+
const { providePathConfirmation } = await import("./tools-2QBZBNDL.js");
|
|
3950
3968
|
const result = providePathConfirmation(callId, approved, alwaysAllow);
|
|
3951
3969
|
if (!result.found) {
|
|
3952
3970
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
@@ -3954,7 +3972,7 @@ async function createServerHandle(config4) {
|
|
|
3954
3972
|
const { getEventStore: getEventStore2 } = await import("./events-YLICLPBY.js");
|
|
3955
3973
|
const { buildMessagesFromStoredEvents, foldPendingConfirmations } = await import("./folding-PI67HWBR.js");
|
|
3956
3974
|
const { createSessionStateMessage } = await import("./protocol-BKNLAEPJ.js");
|
|
3957
|
-
const { getPendingQuestionsForSession } = await import("./tools-
|
|
3975
|
+
const { getPendingQuestionsForSession } = await import("./tools-2QBZBNDL.js");
|
|
3958
3976
|
const eventStore = getEventStore2();
|
|
3959
3977
|
const events = eventStore.getEvents(sessionId);
|
|
3960
3978
|
const messages = buildMessagesFromStoredEvents(events);
|
|
@@ -3975,7 +3993,7 @@ async function createServerHandle(config4) {
|
|
|
3975
3993
|
if (!skip && typeof answer !== "string") {
|
|
3976
3994
|
return res.status(400).json({ error: "answer is required when not skipping" });
|
|
3977
3995
|
}
|
|
3978
|
-
const { provideAnswer } = await import("./tools-
|
|
3996
|
+
const { provideAnswer } = await import("./tools-2QBZBNDL.js");
|
|
3979
3997
|
const found = provideAnswer(callId, answer ?? "", skip ?? false);
|
|
3980
3998
|
if (!found) {
|
|
3981
3999
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -4011,8 +4029,8 @@ async function createServerHandle(config4) {
|
|
|
4011
4029
|
if (!session) {
|
|
4012
4030
|
return res.status(404).json({ error: "Session not found" });
|
|
4013
4031
|
}
|
|
4014
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
4015
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
4032
|
+
const { stopSessionExecution } = await import("./chat-handler-YCFYRTFG.js");
|
|
4033
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-2QBZBNDL.js");
|
|
4016
4034
|
const queuedMessages = sessionManager.getQueueState(sessionId);
|
|
4017
4035
|
sessionManager.clearMessageQueue(sessionId);
|
|
4018
4036
|
stopSessionExecution(sessionId, sessionManager);
|
|
@@ -4507,7 +4525,7 @@ async function createServerHandle(config4) {
|
|
|
4507
4525
|
});
|
|
4508
4526
|
async function rebuildMcpTools() {
|
|
4509
4527
|
const { createMcpTools: createMcpTools2 } = await import("./tool-adapter-B7QP6NLA.js");
|
|
4510
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
4528
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-2QBZBNDL.js");
|
|
4511
4529
|
const mcpTools = createMcpTools2(mcpManager);
|
|
4512
4530
|
setMcpTools2(mcpTools);
|
|
4513
4531
|
}
|
|
@@ -4819,7 +4837,7 @@ async function createServerHandle(config4) {
|
|
|
4819
4837
|
const state = sessionManager.getContextState(sessionId);
|
|
4820
4838
|
wssExports.broadcastForSession(sessionId, createContextStateMessage(state));
|
|
4821
4839
|
});
|
|
4822
|
-
const { QueueProcessor } = await import("./processor-
|
|
4840
|
+
const { QueueProcessor } = await import("./processor-VGVPSVGE.js");
|
|
4823
4841
|
const queueProcessor = new QueueProcessor({
|
|
4824
4842
|
sessionManager,
|
|
4825
4843
|
providerManager,
|
|
@@ -4894,4 +4912,4 @@ export {
|
|
|
4894
4912
|
createServerHandle,
|
|
4895
4913
|
createServer
|
|
4896
4914
|
};
|
|
4897
|
-
//# sourceMappingURL=chunk-
|
|
4915
|
+
//# sourceMappingURL=chunk-L772ZPG3.js.map
|
|
@@ -196,7 +196,7 @@ async function runCli(options) {
|
|
|
196
196
|
if (!configExists) {
|
|
197
197
|
await runNetworkSetup(mode);
|
|
198
198
|
}
|
|
199
|
-
const { runServe } = await import("./serve-
|
|
199
|
+
const { runServe } = await import("./serve-CJHC25E3.js");
|
|
200
200
|
const serveOptions = { mode };
|
|
201
201
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
202
202
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -208,4 +208,4 @@ async function runCli(options) {
|
|
|
208
208
|
export {
|
|
209
209
|
runCli
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=chunk-
|
|
211
|
+
//# sourceMappingURL=chunk-U6IPDG7P.js.map
|
|
@@ -2410,7 +2410,7 @@ function drainQueue(sessionManager, sessionId, append, onMessage) {
|
|
|
2410
2410
|
}
|
|
2411
2411
|
|
|
2412
2412
|
// src/server/chat/agent-loop.ts
|
|
2413
|
-
function emitPartialDoneEvents(_sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append) {
|
|
2413
|
+
function emitPartialDoneEvents(_sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append, agentType) {
|
|
2414
2414
|
const stats = turnMetrics.buildStats(statsIdentity, mode);
|
|
2415
2415
|
append(
|
|
2416
2416
|
createMessageDoneEvent(assistantMsgId, {
|
|
@@ -2418,9 +2418,9 @@ function emitPartialDoneEvents(_sessionId, assistantMsgId, statsIdentity, mode,
|
|
|
2418
2418
|
partial: true
|
|
2419
2419
|
})
|
|
2420
2420
|
);
|
|
2421
|
-
append(createChatDoneEvent(assistantMsgId, "stopped", stats));
|
|
2421
|
+
append(createChatDoneEvent(assistantMsgId, "stopped", stats, agentType));
|
|
2422
2422
|
}
|
|
2423
|
-
function emitDoneAndBreak(assistantMsgId, segments, statsIdentity, mode, turnMetrics, append, onMessage, reason) {
|
|
2423
|
+
function emitDoneAndBreak(assistantMsgId, segments, statsIdentity, mode, turnMetrics, append, onMessage, reason, agentType) {
|
|
2424
2424
|
const stats = turnMetrics.buildStats(statsIdentity, mode);
|
|
2425
2425
|
append(
|
|
2426
2426
|
createMessageDoneEvent(assistantMsgId, {
|
|
@@ -2428,7 +2428,7 @@ function emitDoneAndBreak(assistantMsgId, segments, statsIdentity, mode, turnMet
|
|
|
2428
2428
|
stats
|
|
2429
2429
|
})
|
|
2430
2430
|
);
|
|
2431
|
-
append(createChatDoneEvent(assistantMsgId, reason, stats));
|
|
2431
|
+
append(createChatDoneEvent(assistantMsgId, reason, stats, agentType));
|
|
2432
2432
|
if (onMessage) {
|
|
2433
2433
|
onMessage(
|
|
2434
2434
|
createChatMessageUpdatedMessage(assistantMsgId, {
|
|
@@ -2436,7 +2436,7 @@ function emitDoneAndBreak(assistantMsgId, segments, statsIdentity, mode, turnMet
|
|
|
2436
2436
|
stats
|
|
2437
2437
|
})
|
|
2438
2438
|
);
|
|
2439
|
-
onMessage(createChatDoneMessage(assistantMsgId, reason, stats));
|
|
2439
|
+
onMessage(createChatDoneMessage(assistantMsgId, reason, stats, agentType));
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
2442
|
var MAX_TRUNCATION_RETRIES = 3;
|
|
@@ -2444,6 +2444,7 @@ var CONTINUE_PROMPT = "Continue your previous response. Do NOT repeat what you a
|
|
|
2444
2444
|
async function runTopLevelAgentLoop(config, turnMetrics) {
|
|
2445
2445
|
const { mode, sessionManager, sessionId, llmClient, signal, onMessage, statsIdentity } = config;
|
|
2446
2446
|
const append = config.append;
|
|
2447
|
+
const agentType = config.subAgentMetadata ? "sub-agent" : void 0;
|
|
2447
2448
|
const retryLimiter = createRetryLimiter(config.maxRetriesPerTurn ?? 10);
|
|
2448
2449
|
let truncationRetryCount = 0;
|
|
2449
2450
|
let returnValueContent;
|
|
@@ -2534,7 +2535,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
2534
2535
|
type: "chat.error",
|
|
2535
2536
|
data: { error: `Auto-retry limit exceeded after ${retryLimiter.maxRetries()} retries`, recoverable: false }
|
|
2536
2537
|
});
|
|
2537
|
-
append(createChatDoneEvent(assistantMsgId, "error"));
|
|
2538
|
+
append(createChatDoneEvent(assistantMsgId, "error", void 0, agentType));
|
|
2538
2539
|
throw new Error("Auto-retry limit exceeded");
|
|
2539
2540
|
}
|
|
2540
2541
|
retryLimiter.increment();
|
|
@@ -2567,7 +2568,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
2567
2568
|
continue;
|
|
2568
2569
|
}
|
|
2569
2570
|
if (result.aborted) {
|
|
2570
|
-
emitPartialDoneEvents(sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append);
|
|
2571
|
+
emitPartialDoneEvents(sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append, agentType);
|
|
2571
2572
|
throw new Error("Aborted");
|
|
2572
2573
|
}
|
|
2573
2574
|
turnMetrics.addLLMCall(
|
|
@@ -2626,7 +2627,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
2626
2627
|
partial: true
|
|
2627
2628
|
})
|
|
2628
2629
|
);
|
|
2629
|
-
append(createChatDoneEvent(assistantMsgId, "truncated", stats2));
|
|
2630
|
+
append(createChatDoneEvent(assistantMsgId, "truncated", stats2, agentType));
|
|
2630
2631
|
break;
|
|
2631
2632
|
}
|
|
2632
2633
|
}
|
|
@@ -2683,7 +2684,8 @@ ${COMPACTION_PROMPT}`,
|
|
|
2683
2684
|
turnMetrics,
|
|
2684
2685
|
append,
|
|
2685
2686
|
onMessage,
|
|
2686
|
-
"step_done"
|
|
2687
|
+
"step_done",
|
|
2688
|
+
agentType
|
|
2687
2689
|
);
|
|
2688
2690
|
break;
|
|
2689
2691
|
}
|
|
@@ -2699,7 +2701,8 @@ ${COMPACTION_PROMPT}`,
|
|
|
2699
2701
|
turnMetrics,
|
|
2700
2702
|
append,
|
|
2701
2703
|
onMessage,
|
|
2702
|
-
"complete"
|
|
2704
|
+
"complete",
|
|
2705
|
+
agentType
|
|
2703
2706
|
);
|
|
2704
2707
|
break;
|
|
2705
2708
|
}
|
|
@@ -2709,13 +2712,13 @@ ${COMPACTION_PROMPT}`,
|
|
|
2709
2712
|
}
|
|
2710
2713
|
} catch (error) {
|
|
2711
2714
|
if (error instanceof Error && error.message === "Aborted") {
|
|
2712
|
-
emitPartialDoneEvents(sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append);
|
|
2715
|
+
emitPartialDoneEvents(sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append, agentType);
|
|
2713
2716
|
throw error;
|
|
2714
2717
|
}
|
|
2715
2718
|
throw error;
|
|
2716
2719
|
}
|
|
2717
2720
|
if (signal?.aborted) {
|
|
2718
|
-
emitPartialDoneEvents(sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append);
|
|
2721
|
+
emitPartialDoneEvents(sessionId, assistantMsgId, statsIdentity, mode, turnMetrics, append, agentType);
|
|
2719
2722
|
throw new Error("Aborted");
|
|
2720
2723
|
}
|
|
2721
2724
|
void drainQueue(sessionManager, sessionId, append, onMessage);
|
|
@@ -2752,7 +2755,7 @@ ${COMPACTION_PROMPT}`,
|
|
|
2752
2755
|
}
|
|
2753
2756
|
});
|
|
2754
2757
|
append(createMessageDoneEvent(assistantMsgId, { stats: turnMetrics.buildStats(statsIdentity, mode) }));
|
|
2755
|
-
append(createChatDoneEvent(assistantMsgId, "complete"));
|
|
2758
|
+
append(createChatDoneEvent(assistantMsgId, "complete", void 0, agentType));
|
|
2756
2759
|
config.injectAgentReminder?.();
|
|
2757
2760
|
compacting = false;
|
|
2758
2761
|
if (config.initialCompacting) break;
|
|
@@ -2787,7 +2790,7 @@ ${COMPACTION_PROMPT}`,
|
|
|
2787
2790
|
stats
|
|
2788
2791
|
})
|
|
2789
2792
|
);
|
|
2790
|
-
append(createChatDoneEvent(assistantMsgId, "complete", stats));
|
|
2793
|
+
append(createChatDoneEvent(assistantMsgId, "complete", stats, agentType));
|
|
2791
2794
|
break;
|
|
2792
2795
|
}
|
|
2793
2796
|
return {
|
|
@@ -3359,7 +3362,7 @@ var callSubAgentTool = {
|
|
|
3359
3362
|
};
|
|
3360
3363
|
}
|
|
3361
3364
|
try {
|
|
3362
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3365
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-2QBZBNDL.js");
|
|
3363
3366
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3364
3367
|
const turnMetrics = new TurnMetrics();
|
|
3365
3368
|
const result = await executeSubAgent({
|
|
@@ -4175,7 +4178,7 @@ function resolveAgentDef2(sessionManager, sessionId) {
|
|
|
4175
4178
|
}
|
|
4176
4179
|
async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
|
|
4177
4180
|
const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
|
|
4178
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
4181
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-2QBZBNDL.js");
|
|
4179
4182
|
const tools = getToolRegistryForAgent2(agentDef).definitions;
|
|
4180
4183
|
const toolFingerprint = getToolFingerprint(tools);
|
|
4181
4184
|
const allAgents = await loadAllAgentsDefault();
|
|
@@ -4188,7 +4191,7 @@ async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
|
|
|
4188
4191
|
async function computeSessionHash(sessionManager, sessionId) {
|
|
4189
4192
|
const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
|
|
4190
4193
|
const agentDef = await resolveAgentDef2(sessionManager, sessionId);
|
|
4191
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
4194
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-2QBZBNDL.js");
|
|
4192
4195
|
const tools = getToolRegistryForAgent2(agentDef).definitions;
|
|
4193
4196
|
const toolFingerprint = getToolFingerprint(tools);
|
|
4194
4197
|
return computeDynamicContextHash(instructionContent, skills, toolFingerprint);
|
|
@@ -4295,7 +4298,7 @@ var mcpConfigTool = createTool(
|
|
|
4295
4298
|
await saveGlobalConfig(mcpConfigMode, { ...globalConfig, mcpServers: updated });
|
|
4296
4299
|
}
|
|
4297
4300
|
async function rebuildTools() {
|
|
4298
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
4301
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-2QBZBNDL.js");
|
|
4299
4302
|
const mcpTools = createMcpTools(mcpManagerForTools);
|
|
4300
4303
|
setMcpTools2(mcpTools);
|
|
4301
4304
|
}
|
|
@@ -4699,4 +4702,4 @@ export {
|
|
|
4699
4702
|
getToolRegistryForAgent,
|
|
4700
4703
|
createToolRegistry
|
|
4701
4704
|
};
|
|
4702
|
-
//# sourceMappingURL=chunk-
|
|
4705
|
+
//# sourceMappingURL=chunk-XJU2PBLN.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
injectWorkflowKickoffIfNeeded,
|
|
3
3
|
runAgentTurn,
|
|
4
4
|
runChatTurn
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-EB2RIVZA.js";
|
|
6
|
+
import "./chunk-XJU2PBLN.js";
|
|
7
7
|
import "./chunk-DL6ZILAF.js";
|
|
8
8
|
import "./chunk-PBGOZMVY.js";
|
|
9
9
|
import "./chunk-VRGRAQDG.js";
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
runAgentTurn,
|
|
43
43
|
runChatTurn
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=orchestrator-
|
|
45
|
+
//# sourceMappingURL=orchestrator-YJV4CXKV.js.map
|
package/dist/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
generateSessionNameForSession
|
|
5
5
|
} from "./chunk-BGCDJYNU.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-XJU2PBLN.js";
|
|
7
7
|
import "./chunk-DL6ZILAF.js";
|
|
8
8
|
import "./chunk-PBGOZMVY.js";
|
|
9
9
|
import "./chunk-VRGRAQDG.js";
|
|
@@ -171,7 +171,7 @@ var QueueProcessor = class {
|
|
|
171
171
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
172
172
|
model: llmClient.getModel()
|
|
173
173
|
};
|
|
174
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
174
|
+
const { runChatTurn } = await import("./orchestrator-YJV4CXKV.js");
|
|
175
175
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
176
176
|
sessionManager,
|
|
177
177
|
sessionId,
|
|
@@ -216,4 +216,4 @@ var QueueProcessor = class {
|
|
|
216
216
|
export {
|
|
217
217
|
QueueProcessor
|
|
218
218
|
};
|
|
219
|
-
//# sourceMappingURL=processor-
|
|
219
|
+
//# sourceMappingURL=processor-VGVPSVGE.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION,
|
|
3
3
|
createServer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-L772ZPG3.js";
|
|
5
|
+
import "./chunk-IBKGV6OJ.js";
|
|
6
|
+
import "./chunk-EB2RIVZA.js";
|
|
7
|
+
import "./chunk-XJU2PBLN.js";
|
|
8
8
|
import "./chunk-DL6ZILAF.js";
|
|
9
9
|
import "./chunk-PBGOZMVY.js";
|
|
10
10
|
import "./chunk-VRGRAQDG.js";
|
|
@@ -199,4 +199,4 @@ async function runServe(options) {
|
|
|
199
199
|
export {
|
|
200
200
|
runServe
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=serve-
|
|
202
|
+
//# sourceMappingURL=serve-CJHC25E3.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-L772ZPG3.js";
|
|
5
|
+
import "../chunk-IBKGV6OJ.js";
|
|
6
|
+
import "../chunk-EB2RIVZA.js";
|
|
7
|
+
import "../chunk-XJU2PBLN.js";
|
|
8
8
|
import "../chunk-DL6ZILAF.js";
|
|
9
9
|
import "../chunk-PBGOZMVY.js";
|
|
10
10
|
import "../chunk-VRGRAQDG.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWebSocketServer,
|
|
3
3
|
signalMcpReady
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-IBKGV6OJ.js";
|
|
5
|
+
import "./chunk-EB2RIVZA.js";
|
|
6
|
+
import "./chunk-XJU2PBLN.js";
|
|
7
7
|
import "./chunk-DL6ZILAF.js";
|
|
8
8
|
import "./chunk-PBGOZMVY.js";
|
|
9
9
|
import "./chunk-VRGRAQDG.js";
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
createWebSocketServer,
|
|
35
35
|
signalMcpReady
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=server-
|
|
37
|
+
//# sourceMappingURL=server-RHYGD2Q6.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
setMcpTools,
|
|
13
13
|
stepDoneTool,
|
|
14
14
|
validateToolAction
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XJU2PBLN.js";
|
|
16
16
|
import "./chunk-DL6ZILAF.js";
|
|
17
17
|
import "./chunk-PBGOZMVY.js";
|
|
18
18
|
import "./chunk-VRGRAQDG.js";
|
|
@@ -57,4 +57,4 @@ export {
|
|
|
57
57
|
stepDoneTool,
|
|
58
58
|
validateToolAction
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=tools-
|
|
60
|
+
//# sourceMappingURL=tools-2QBZBNDL.js.map
|