openfox 2.0.93 → 2.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/CHANGELOG.md +13 -0
- package/dist/{chat-handler-MSQFJH7S.js → chat-handler-Z7OCNJWO.js} +22 -22
- package/dist/{chunk-IAAHDCJN.js → chunk-27SDWNKL.js} +8 -5
- package/dist/{chunk-GH5PL3JW.js → chunk-2BCQDYNA.js} +3 -3
- package/dist/{chunk-ESJNJ5B6.js → chunk-3WKAKOU4.js} +3 -3
- package/dist/{chunk-TQATAKVV.js → chunk-4R7G5JB6.js} +1 -1
- package/dist/{chunk-3NGD6IVM.js → chunk-5N5JXT7R.js} +3 -3
- package/dist/{chunk-BJHPUMRX.js → chunk-62X2MPO6.js} +2 -2
- package/dist/{chunk-FK6R2YTQ.js → chunk-DLCMSSG3.js} +17 -17
- package/dist/{chunk-PYJ2SRVC.js → chunk-FVV7TZC2.js} +19 -4
- package/dist/{chunk-6OAJNCRY.js → chunk-GLF65XDS.js} +22 -1
- package/dist/{chunk-GAIAJDPH.js → chunk-KNRE3DG4.js} +142 -31
- package/dist/{chunk-C56Z4OVW.js → chunk-KU3YUGAN.js} +2 -2
- package/dist/{chunk-YM267G4F.js → chunk-LSDJCJWA.js} +4 -4
- package/dist/{chunk-SXHGRPCI.js → chunk-MC3MCMAF.js} +4 -4
- package/dist/{chunk-U2RSFH6A.js → chunk-MRWR3SIT.js} +2 -2
- package/dist/{chunk-RJQDC2OO.js → chunk-MUNVSHL5.js} +10 -10
- package/dist/{chunk-WWC3R3YL.js → chunk-NLN5LPQ4.js} +2 -2
- package/dist/chunk-O4NHL6IN.js +7 -0
- package/dist/{chunk-NGN3Q26A.js → chunk-OHBY2673.js} +2 -2
- package/dist/{chunk-AA4PXMSI.js → chunk-OQXG4MS4.js} +210 -92
- package/dist/{chunk-3QQKKZMF.js → chunk-P637C6X3.js} +2 -2
- package/dist/{chunk-6J5IZ2NL.js → chunk-TSHJW7OC.js} +37 -6
- package/dist/{chunk-54Q4TGG6.js → chunk-UEOEA6BB.js} +2 -2
- package/dist/{chunk-NW2KP7PE.js → chunk-V4QTGYXL.js} +6 -6
- package/dist/{chunk-AQ4KCGXL.js → chunk-VYN37NXW.js} +3 -3
- package/dist/{chunk-ST4NYXLH.js → chunk-WWFH5GAR.js} +2 -2
- package/dist/{chunk-7YBGCZSI.js → chunk-XNB3JWAR.js} +2 -2
- package/dist/{chunk-U7D72C4O.js → chunk-YJ5P33SE.js} +2 -2
- package/dist/{chunk-DH32AHTL.js → chunk-ZASSAZ73.js} +2 -2
- package/dist/{chunk-NV63HYNR.js → chunk-ZYDPYFRH.js} +8 -8
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-RBXMHFX3.js → client-OBMJSTFN.js} +5 -5
- package/dist/{compactor-R7GGPBPR.js → compactor-RSEV7VYH.js} +10 -10
- package/dist/{dynamic-context-4UPNVL3N.js → dynamic-context-C3BWQ5GK.js} +9 -9
- package/dist/{events-D5AFN2CW.js → events-SY5B4VED.js} +9 -7
- package/dist/{folding-BO6Z6HMP.js → folding-O4OYOTPS.js} +5 -5
- package/dist/http-client-3MOFAPO6.js +11 -0
- package/dist/{inspect-proxy-NZ3VSMSC.js → inspect-proxy-GF6OI7MR.js} +4 -4
- package/dist/{manager-ZPQ6VSM5.js → manager-UP3XMLKX.js} +5 -5
- package/dist/{orchestrator-YQI2D4LW.js → orchestrator-VSUL2C7G.js} +21 -21
- package/dist/package.json +1 -1
- package/dist/{path-security-DP75YZK5.js → path-security-E55IEQHD.js} +10 -10
- package/dist/{platform-UKZ2QC34.js → platform-7KXP3VVA.js} +4 -4
- package/dist/{processor-LVQWRG6M.js → processor-WP34IB3C.js} +21 -21
- package/dist/{project-creator-2WMZYQME.js → project-creator-SMWFMIU5.js} +3 -3
- package/dist/{projects-N6KVZGMS.js → projects-M5XKC7O6.js} +3 -3
- package/dist/{protocol-8BzyapcK.d.ts → protocol-C5ROb3nH.d.ts} +5 -4
- package/dist/{protocol-4ZDERZNC.js → protocol-YDNGGADL.js} +3 -3
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-SYYZI2KX.js → provider-E5IP7RF7.js} +6 -6
- package/dist/{provider-manager-P3ZSA5QS.js → provider-manager-FVIFMUTO.js} +6 -6
- package/dist/{registry-ERUV33AP.js → registry-XBEHPY7C.js} +4 -4
- package/dist/{serve-HEHWSYMX.js → serve-NZZVFNMA.js} +29 -29
- package/dist/server/index.d.ts +39 -3
- package/dist/server/index.js +28 -28
- package/dist/server-DYJTLAZS.js +46 -0
- package/dist/{session-overrides-NPVYNHTM.js → session-overrides-QWD4V5KW.js} +6 -6
- package/dist/{sessions-7KCM5QH4.js → sessions-BT4PION7.js} +15 -7
- package/dist/{settings-2OVKFWR5.js → settings-2WVGUPYV.js} +3 -3
- package/dist/shared/index.d.ts +3 -3
- package/dist/shared/index.js +1 -1
- package/dist/{tools-HDD7RHEG.js → tools-YXOCUUKE.js} +19 -19
- package/dist/{types-_OEK96iM.d.ts → types-D-dEQIrh.d.ts} +1 -1
- package/dist/{types-Ci7Tdpq3.d.ts → types-DHxO1nqw.d.ts} +17 -1
- package/dist/{update-JARYMNGH.js → update-5HWU675H.js} +2 -2
- package/dist/web/assets/{index-B3lfsL1_.css → index-BlV1FebL.css} +1 -1
- package/dist/web/assets/{index-DxTIqntH.js → index-DxAR7yc9.js} +21 -21
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/{workspace-YLTMP3OX.js → workspace-IIRKILYL.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-LVZ6VQ3K.js +0 -7
- package/dist/http-client-E3CV6E5D.js +0 -11
- package/dist/server-AAIYC4BH.js +0 -46
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentTurn,
|
|
3
3
|
runChatTurn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MUNVSHL5.js";
|
|
5
5
|
import {
|
|
6
6
|
generateSessionNameForSession,
|
|
7
7
|
getSessionMessageCount,
|
|
8
8
|
needsNameGeneration
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZYDPYFRH.js";
|
|
10
10
|
import {
|
|
11
11
|
devServerManager,
|
|
12
12
|
executeSubAgent,
|
|
13
13
|
getToolRegistryForAgent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DLCMSSG3.js";
|
|
15
15
|
import {
|
|
16
16
|
checkAborted,
|
|
17
17
|
onProcessEvent,
|
|
18
18
|
spawnShellProcess
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YJ5P33SE.js";
|
|
20
20
|
import {
|
|
21
21
|
killProcessTree,
|
|
22
22
|
terminateProcessTree
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
applyDynamicContext,
|
|
29
29
|
computeSessionHash,
|
|
30
30
|
computeUnifiedDiff
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-V4QTGYXL.js";
|
|
32
32
|
import {
|
|
33
33
|
createChatErrorMessage,
|
|
34
34
|
createChatMessageMessage,
|
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
parseClientMessage,
|
|
44
44
|
serializeServerMessage,
|
|
45
45
|
storedEventToServerMessage
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-27SDWNKL.js";
|
|
47
47
|
import {
|
|
48
48
|
getPendingQuestionsForSession,
|
|
49
49
|
provideAnswer
|
|
50
50
|
} from "./chunk-EU3WWTFH.js";
|
|
51
51
|
import {
|
|
52
52
|
appendCompactionPrompt
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-3WKAKOU4.js";
|
|
54
54
|
import {
|
|
55
55
|
TurnMetrics,
|
|
56
56
|
createMessageStartEvent
|
|
@@ -59,15 +59,14 @@ import {
|
|
|
59
59
|
combineEventsWithSnapshot,
|
|
60
60
|
getCurrentContextWindowId,
|
|
61
61
|
getEventStore
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-FVV7TZC2.js";
|
|
63
63
|
import {
|
|
64
64
|
getPlatformShell
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-NLN5LPQ4.js";
|
|
66
66
|
import {
|
|
67
67
|
buildMessagesFromStoredEvents,
|
|
68
|
-
foldPendingConfirmations
|
|
69
|
-
|
|
70
|
-
} from "./chunk-3QQKKZMF.js";
|
|
68
|
+
foldPendingConfirmations
|
|
69
|
+
} from "./chunk-P637C6X3.js";
|
|
71
70
|
import {
|
|
72
71
|
deleteItemFromDir,
|
|
73
72
|
findAgentById,
|
|
@@ -76,10 +75,10 @@ import {
|
|
|
76
75
|
loadAllAgentsDefault,
|
|
77
76
|
resolveDefaultAgentId,
|
|
78
77
|
saveItemToDir
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-OHBY2673.js";
|
|
80
79
|
import {
|
|
81
80
|
getMaxVisibleItems
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-UEOEA6BB.js";
|
|
83
82
|
import {
|
|
84
83
|
logger
|
|
85
84
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -88,7 +87,7 @@ import {
|
|
|
88
87
|
} from "./chunk-VUQCQXXJ.js";
|
|
89
88
|
import {
|
|
90
89
|
createServerMessage
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-4R7G5JB6.js";
|
|
92
91
|
import {
|
|
93
92
|
getGlobalConfigDir
|
|
94
93
|
} from "./chunk-CQGTEGKL.js";
|
|
@@ -801,6 +800,7 @@ async function executeWorkflow(workflow, options, subGroup) {
|
|
|
801
800
|
};
|
|
802
801
|
}
|
|
803
802
|
}
|
|
803
|
+
let executionId;
|
|
804
804
|
if (!isResume) {
|
|
805
805
|
const startMsgId = crypto.randomUUID();
|
|
806
806
|
const startWindowOpts = getCurrentWindowMessageOptions(sessionId);
|
|
@@ -818,6 +818,15 @@ async function executeWorkflow(workflow, options, subGroup) {
|
|
|
818
818
|
)
|
|
819
819
|
);
|
|
820
820
|
eventStore.append(sessionId, { type: "message.done", data: { messageId: startMsgId } });
|
|
821
|
+
executionId = crypto.randomUUID();
|
|
822
|
+
sessionManager.startWorkflow(
|
|
823
|
+
sessionId,
|
|
824
|
+
executionId,
|
|
825
|
+
workflow.metadata.id,
|
|
826
|
+
workflow.metadata.name,
|
|
827
|
+
workflow.metadata.color,
|
|
828
|
+
options.params ?? {}
|
|
829
|
+
);
|
|
821
830
|
if (options.userMessage) {
|
|
822
831
|
sessionManager.addMessage(sessionId, {
|
|
823
832
|
role: "user",
|
|
@@ -825,10 +834,24 @@ async function executeWorkflow(workflow, options, subGroup) {
|
|
|
825
834
|
...options.userMessage.attachments ? { attachments: options.userMessage.attachments } : {}
|
|
826
835
|
});
|
|
827
836
|
}
|
|
837
|
+
} else {
|
|
838
|
+
const activeExec = sessionManager.getActiveWorkflowExecution(sessionId);
|
|
839
|
+
if (activeExec) {
|
|
840
|
+
executionId = activeExec.id;
|
|
841
|
+
}
|
|
828
842
|
}
|
|
829
843
|
while (iterations < workflow.settings.maxIterations) {
|
|
830
844
|
if (signal?.aborted) {
|
|
831
845
|
logger.debug("Workflow executor aborted", { sessionId, iterations });
|
|
846
|
+
if (executionId) {
|
|
847
|
+
sessionManager.cancelWorkflow(
|
|
848
|
+
sessionId,
|
|
849
|
+
executionId,
|
|
850
|
+
workflow.metadata.id,
|
|
851
|
+
workflow.metadata.name,
|
|
852
|
+
workflow.metadata.color
|
|
853
|
+
);
|
|
854
|
+
}
|
|
832
855
|
return {
|
|
833
856
|
finalAction: { type: "RUN_BUILDER", reason: "Aborted" },
|
|
834
857
|
iterations,
|
|
@@ -861,6 +884,17 @@ async function executeWorkflow(workflow, options, subGroup) {
|
|
|
861
884
|
params: options.params ?? {}
|
|
862
885
|
};
|
|
863
886
|
sessionManager.setPhase(sessionId, step.phase);
|
|
887
|
+
if (executionId) {
|
|
888
|
+
sessionManager.updateWorkflowStep(
|
|
889
|
+
sessionId,
|
|
890
|
+
executionId,
|
|
891
|
+
step.id,
|
|
892
|
+
step.name,
|
|
893
|
+
workflow.metadata.id,
|
|
894
|
+
workflow.metadata.name,
|
|
895
|
+
workflow.metadata.color
|
|
896
|
+
);
|
|
897
|
+
}
|
|
864
898
|
if (step.type === "agent") {
|
|
865
899
|
const agentStep = step;
|
|
866
900
|
sessionManager.setMode(sessionId, agentStep.agentId ?? resolveDefaultAgentId());
|
|
@@ -1065,17 +1099,18 @@ ${output.slice(0, 1e4)}
|
|
|
1065
1099
|
stepOutcome = { result: "continue", output: lastStepOutput };
|
|
1066
1100
|
break;
|
|
1067
1101
|
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1102
|
+
if (executionId) {
|
|
1103
|
+
sessionManager.waitAtStep(
|
|
1104
|
+
sessionId,
|
|
1105
|
+
executionId,
|
|
1106
|
+
step.id,
|
|
1107
|
+
step.name,
|
|
1108
|
+
lastStepOutput,
|
|
1109
|
+
workflow.metadata.id,
|
|
1110
|
+
workflow.metadata.name,
|
|
1111
|
+
workflow.metadata.color
|
|
1112
|
+
);
|
|
1113
|
+
}
|
|
1079
1114
|
logger.debug("Workflow paused at user step", { sessionId, stepId: step.id, stepName: step.name });
|
|
1080
1115
|
return {
|
|
1081
1116
|
finalAction: {
|
|
@@ -1096,6 +1131,15 @@ ${output.slice(0, 1e4)}
|
|
|
1096
1131
|
const nextStepId = subGroup && rawNextStepId !== TERMINAL_DONE && rawNextStepId !== TERMINAL_BLOCKED && !activeStepIds.has(rawNextStepId) ? TERMINAL_DONE : rawNextStepId;
|
|
1097
1132
|
if (nextStepId === TERMINAL_DONE) {
|
|
1098
1133
|
sessionManager.setPhase(sessionId, "done");
|
|
1134
|
+
if (executionId) {
|
|
1135
|
+
sessionManager.completeWorkflow(
|
|
1136
|
+
sessionId,
|
|
1137
|
+
executionId,
|
|
1138
|
+
workflow.metadata.id,
|
|
1139
|
+
workflow.metadata.name,
|
|
1140
|
+
workflow.metadata.color
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1099
1143
|
const totalTimeSeconds = Math.round((performance.now() - startTime) / 100) / 10;
|
|
1100
1144
|
const completedSession = sessionManager.requireSession(sessionId);
|
|
1101
1145
|
const workflowMessages = completedSession.messages.slice(messagesBeforeWorkflow);
|
|
@@ -1136,6 +1180,15 @@ ${output.slice(0, 1e4)}
|
|
|
1136
1180
|
}
|
|
1137
1181
|
if (nextStepId === TERMINAL_BLOCKED) {
|
|
1138
1182
|
sessionManager.setPhase(sessionId, "blocked");
|
|
1183
|
+
if (executionId) {
|
|
1184
|
+
sessionManager.blockWorkflow(
|
|
1185
|
+
sessionId,
|
|
1186
|
+
executionId,
|
|
1187
|
+
workflow.metadata.id,
|
|
1188
|
+
workflow.metadata.name,
|
|
1189
|
+
workflow.metadata.color
|
|
1190
|
+
);
|
|
1191
|
+
}
|
|
1139
1192
|
const reason = "No matching transition";
|
|
1140
1193
|
emitWorkflowMessage(eventStore, sessionId, `Runner blocked: ${reason}`, currentWindowMessageOptions, onMessage);
|
|
1141
1194
|
logger.warn("Workflow executor blocked", { sessionId, iterations, reason });
|
|
@@ -1742,7 +1795,7 @@ function createWebSocketServer(httpServer, _config, getLLMClient, getActiveProvi
|
|
|
1742
1795
|
const { messages, hiddenCount } = buildMessagesFromStoredEvents(events, maxVisible || void 0);
|
|
1743
1796
|
const pendingConfirmations = foldPendingConfirmations(events);
|
|
1744
1797
|
const pendingQuestions = getPendingQuestionsForSession(updatedSession.id);
|
|
1745
|
-
const
|
|
1798
|
+
const activeWorkflowExecution = sessionManager.getActiveWorkflowExecution(updatedSession.id);
|
|
1746
1799
|
const effectiveWorkdir = updatedSession.workspace ?? updatedSession.workdir;
|
|
1747
1800
|
for (const [, client] of clients) {
|
|
1748
1801
|
if (client.activeSessionId === updatedSession.id && client.activeWorkdir !== effectiveWorkdir) {
|
|
@@ -1767,7 +1820,7 @@ function createWebSocketServer(httpServer, _config, getLLMClient, getActiveProvi
|
|
|
1767
1820
|
void 0,
|
|
1768
1821
|
void 0,
|
|
1769
1822
|
hiddenCount,
|
|
1770
|
-
|
|
1823
|
+
activeWorkflowExecution ?? void 0
|
|
1771
1824
|
)
|
|
1772
1825
|
);
|
|
1773
1826
|
if (effectiveWorkdir) {
|
|
@@ -2127,8 +2180,8 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
2127
2180
|
const sessionId = client.activeSessionId;
|
|
2128
2181
|
const session = sessionManager.requireSession(sessionId);
|
|
2129
2182
|
try {
|
|
2130
|
-
const { buildCachedPrompt } = await import("./dynamic-context-
|
|
2131
|
-
const allAgents = await import("./registry-
|
|
2183
|
+
const { buildCachedPrompt } = await import("./dynamic-context-C3BWQ5GK.js");
|
|
2184
|
+
const allAgents = await import("./registry-XBEHPY7C.js");
|
|
2132
2185
|
const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
|
|
2133
2186
|
const { systemPrompt: newPrompt, hash: newHash } = await buildCachedPrompt(sessionManager, sessionId, agentDef);
|
|
2134
2187
|
const oldCached = sessionManager.getCachedPrompt(sessionId);
|
|
@@ -2281,6 +2334,27 @@ ${content}` : workflowInfo;
|
|
|
2281
2334
|
...isResume && launchPayload?.resumeFrom ? { resumeFromStep: launchPayload.resumeFrom } : {},
|
|
2282
2335
|
...isResume && launchPayload?.stepOutput ? { initialStepOutput: launchPayload.stepOutput } : {},
|
|
2283
2336
|
...launchPayload?.params ? { params: launchPayload.params } : {},
|
|
2337
|
+
// On resume, prefer params/stepOutput from the persisted workflow execution
|
|
2338
|
+
...isResume ? (() => {
|
|
2339
|
+
const exec = sessionManager.getActiveWorkflowExecution(sessionId);
|
|
2340
|
+
if (exec && exec.status === "waiting") {
|
|
2341
|
+
const resumed = sessionManager.resumeWorkflow(
|
|
2342
|
+
sessionId,
|
|
2343
|
+
exec.id,
|
|
2344
|
+
exec.workflowId,
|
|
2345
|
+
exec.workflowName,
|
|
2346
|
+
exec.workflowColor
|
|
2347
|
+
);
|
|
2348
|
+
if (resumed) {
|
|
2349
|
+
return {
|
|
2350
|
+
params: resumed.params,
|
|
2351
|
+
initialStepOutput: resumed.stepOutput,
|
|
2352
|
+
...exec.currentStepId ? { resumeFromStep: exec.currentStepId } : {}
|
|
2353
|
+
};
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
return {};
|
|
2357
|
+
})() : {},
|
|
2284
2358
|
...hasUserMessage ? {
|
|
2285
2359
|
userMessage: {
|
|
2286
2360
|
content: hasUserContent ? launchPayload.content : "",
|
|
@@ -2349,6 +2423,43 @@ ${content}` : workflowInfo;
|
|
|
2349
2423
|
send({ type: "ack", payload: {}, id: message.id });
|
|
2350
2424
|
break;
|
|
2351
2425
|
}
|
|
2426
|
+
// =========================================================================
|
|
2427
|
+
// Workflow
|
|
2428
|
+
// =========================================================================
|
|
2429
|
+
case "workflow.exit": {
|
|
2430
|
+
if (!client.activeSessionId) {
|
|
2431
|
+
send(createErrorMessage("NO_SESSION", "No active session", message.id));
|
|
2432
|
+
return;
|
|
2433
|
+
}
|
|
2434
|
+
const exitSessionId = client.activeSessionId;
|
|
2435
|
+
const exitSession = sessionManager.getSession(exitSessionId);
|
|
2436
|
+
if (!exitSession) {
|
|
2437
|
+
send(createErrorMessage("NOT_FOUND", "Session not found", message.id));
|
|
2438
|
+
return;
|
|
2439
|
+
}
|
|
2440
|
+
const activeExec = sessionManager.getActiveWorkflowExecution(exitSessionId);
|
|
2441
|
+
if (activeExec) {
|
|
2442
|
+
sessionManager.cancelWorkflow(
|
|
2443
|
+
exitSessionId,
|
|
2444
|
+
activeExec.id,
|
|
2445
|
+
activeExec.workflowId,
|
|
2446
|
+
activeExec.workflowName,
|
|
2447
|
+
activeExec.workflowColor
|
|
2448
|
+
);
|
|
2449
|
+
} else {
|
|
2450
|
+
sessionManager.setPhase(exitSessionId, "build");
|
|
2451
|
+
}
|
|
2452
|
+
const controller = activeAgents.get(exitSessionId);
|
|
2453
|
+
if (controller) {
|
|
2454
|
+
activeAgents.delete(exitSessionId);
|
|
2455
|
+
controller.abort();
|
|
2456
|
+
}
|
|
2457
|
+
if (exitSession.isRunning) {
|
|
2458
|
+
sessionManager.setRunning(exitSessionId, false);
|
|
2459
|
+
}
|
|
2460
|
+
send({ type: "ack", payload: {}, id: message.id });
|
|
2461
|
+
break;
|
|
2462
|
+
}
|
|
2352
2463
|
default: {
|
|
2353
2464
|
send(createErrorMessage("UNKNOWN_MESSAGE", `Unknown message type: ${message.type}`, message.id));
|
|
2354
2465
|
}
|
|
@@ -2380,4 +2491,4 @@ export {
|
|
|
2380
2491
|
signalMcpReady,
|
|
2381
2492
|
createWebSocketServer
|
|
2382
2493
|
};
|
|
2383
|
-
//# sourceMappingURL=chunk-
|
|
2494
|
+
//# sourceMappingURL=chunk-KNRE3DG4.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
LLMError,
|
|
19
19
|
OpenAIHttpClient
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XNB3JWAR.js";
|
|
21
21
|
import {
|
|
22
22
|
logger
|
|
23
23
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -268,4 +268,4 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
268
268
|
export {
|
|
269
269
|
createLLMClient
|
|
270
270
|
};
|
|
271
|
-
//# sourceMappingURL=chunk-
|
|
271
|
+
//# sourceMappingURL=chunk-KU3YUGAN.js.map
|
|
@@ -163,7 +163,7 @@ async function runCli(options) {
|
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
165
165
|
case "provider": {
|
|
166
|
-
const { runProviderCommand } = await import("./provider-
|
|
166
|
+
const { runProviderCommand } = await import("./provider-E5IP7RF7.js");
|
|
167
167
|
const [, subcommand] = positionals;
|
|
168
168
|
await runProviderCommand(mode, subcommand);
|
|
169
169
|
break;
|
|
@@ -200,7 +200,7 @@ async function runCli(options) {
|
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
202
|
case "update": {
|
|
203
|
-
const { runUpdate } = await import("./update-
|
|
203
|
+
const { runUpdate } = await import("./update-5HWU675H.js");
|
|
204
204
|
const code = await runUpdate();
|
|
205
205
|
if (code !== 0) {
|
|
206
206
|
process.exit(code);
|
|
@@ -213,7 +213,7 @@ async function runCli(options) {
|
|
|
213
213
|
if (!configExists) {
|
|
214
214
|
await runNetworkSetup(mode);
|
|
215
215
|
}
|
|
216
|
-
const { runServe } = await import("./serve-
|
|
216
|
+
const { runServe } = await import("./serve-NZZVFNMA.js");
|
|
217
217
|
const serveOptions = { mode };
|
|
218
218
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
219
219
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -225,4 +225,4 @@ async function runCli(options) {
|
|
|
225
225
|
export {
|
|
226
226
|
runCli
|
|
227
227
|
};
|
|
228
|
-
//# sourceMappingURL=chunk-
|
|
228
|
+
//# sourceMappingURL=chunk-LSDJCJWA.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProject
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WWFH5GAR.js";
|
|
4
4
|
import {
|
|
5
5
|
deleteItemFromDir,
|
|
6
6
|
loadItemsFromDir,
|
|
7
7
|
pathExists
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OHBY2673.js";
|
|
9
9
|
import {
|
|
10
10
|
SETTINGS_KEYS,
|
|
11
11
|
deleteSetting,
|
|
12
12
|
getSetting,
|
|
13
13
|
setSetting
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UEOEA6BB.js";
|
|
15
15
|
|
|
16
16
|
// src/server/context/instructions.ts
|
|
17
17
|
import { readFile, access } from "fs/promises";
|
|
@@ -440,4 +440,4 @@ export {
|
|
|
440
440
|
deleteSkill,
|
|
441
441
|
deleteProjectSkill
|
|
442
442
|
};
|
|
443
|
-
//# sourceMappingURL=chunk-
|
|
443
|
+
//# sourceMappingURL=chunk-MC3MCMAF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPlatformShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NLN5LPQ4.js";
|
|
4
4
|
|
|
5
5
|
// src/server/tools/tool-policy.ts
|
|
6
6
|
var ALWAYS_ALLOWED = /* @__PURE__ */ new Set(["step_done"]);
|
|
@@ -245,4 +245,4 @@ export {
|
|
|
245
245
|
buildAgentSmallReminder,
|
|
246
246
|
COMPACTION_PROMPT
|
|
247
247
|
};
|
|
248
|
-
//# sourceMappingURL=chunk-
|
|
248
|
+
//# sourceMappingURL=chunk-MRWR3SIT.js.map
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
getToolRegistryForAgent,
|
|
5
5
|
processEventsForConversation,
|
|
6
6
|
runTopLevelAgentLoop
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DLCMSSG3.js";
|
|
8
8
|
import {
|
|
9
9
|
buildCachedPrompt,
|
|
10
10
|
computeDynamicContextHash,
|
|
11
11
|
getToolFingerprint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V4QTGYXL.js";
|
|
13
13
|
import {
|
|
14
14
|
getAllInstructions,
|
|
15
15
|
getEnabledSkillMetadata
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MC3MCMAF.js";
|
|
17
17
|
import {
|
|
18
18
|
PathAccessDeniedError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VYN37NXW.js";
|
|
20
20
|
import {
|
|
21
21
|
TurnMetrics,
|
|
22
22
|
createChatDoneEvent,
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildAgentReminder,
|
|
27
27
|
buildAgentSmallReminder
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MRWR3SIT.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentContextWindowId,
|
|
31
31
|
getCurrentWindowMessageOptions,
|
|
32
32
|
getEventStore
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FVV7TZC2.js";
|
|
34
34
|
import {
|
|
35
35
|
buildSnapshotFromSessionState
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-P637C6X3.js";
|
|
37
37
|
import {
|
|
38
38
|
findAgentById,
|
|
39
39
|
getRuntimeConfig,
|
|
40
40
|
loadAllAgentsDefault,
|
|
41
41
|
resolveDefaultAgentId
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OHBY2673.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
45
45
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
|
|
50
50
|
// src/server/chat/orchestrator.ts
|
|
51
51
|
async function buildRetryPatterns() {
|
|
52
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
52
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-2WVGUPYV.js");
|
|
53
53
|
const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
|
|
54
54
|
if (!raw) {
|
|
55
55
|
const oldXmlProtection = getSetting("llm.disableXmlProtection");
|
|
@@ -309,4 +309,4 @@ export {
|
|
|
309
309
|
runChatTurn,
|
|
310
310
|
runAgentTurn
|
|
311
311
|
};
|
|
312
|
-
//# sourceMappingURL=chunk-
|
|
312
|
+
//# sourceMappingURL=chunk-MUNVSHL5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UEOEA6BB.js";
|
|
5
5
|
|
|
6
6
|
// src/server/utils/platform.ts
|
|
7
7
|
import os from "os";
|
|
@@ -63,4 +63,4 @@ export {
|
|
|
63
63
|
isWindowsPath,
|
|
64
64
|
isAbsolutePath
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=chunk-
|
|
66
|
+
//# sourceMappingURL=chunk-NLN5LPQ4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UEOEA6BB.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -412,4 +412,4 @@ export {
|
|
|
412
412
|
getOverrideAgentIds,
|
|
413
413
|
resolveDefaultAgentId
|
|
414
414
|
};
|
|
415
|
-
//# sourceMappingURL=chunk-
|
|
415
|
+
//# sourceMappingURL=chunk-OHBY2673.js.map
|