openfox 1.6.80 → 1.6.82
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-Q3GRX7T5.js → auto-compaction-I3GTBPTZ.js} +6 -6
- package/dist/{chat-handler-PO5OBBJE.js → chat-handler-IOHM7XMZ.js} +9 -9
- package/dist/{chunk-BSTVRSV6.js → chunk-C3O6MZJV.js} +2 -2
- package/dist/{chunk-A5W6JUYZ.js → chunk-D67V55WE.js} +3 -3
- package/dist/{chunk-UKMRZDWM.js → chunk-DVNZAJT5.js} +3 -3
- package/dist/{chunk-WR6QCJJO.js → chunk-HJOH367L.js} +10 -8
- package/dist/{chunk-YLLWWYDA.js → chunk-MDL6USSE.js} +32 -30
- package/dist/{chunk-TGWEH2BC.js → chunk-NRJOTXHG.js} +5 -9
- package/dist/{chunk-HPTMW2FT.js → chunk-WHPOBTTU.js} +3 -3
- package/dist/{chunk-LHKXWUEK.js → chunk-WNYDTFJO.js} +16 -5
- package/dist/{chunk-7DOKXSMI.js → chunk-XI7JEBNT.js} +50 -41
- package/dist/{chunk-GFLXCEZA.js → chunk-Y2LKLZ2V.js} +6 -6
- package/dist/{chunk-CUDAT6SS.js → chunk-Y325P6Z4.js} +2 -2
- package/dist/{chunk-UF6D2IPO.js → chunk-ZPQDYRQI.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-5CONAOL7.js → config-RIK5T6WK.js} +5 -5
- package/dist/{events-QDUOJQML.js → events-I7NDHSNU.js} +2 -2
- package/dist/{orchestrator-LVD4YU54.js → orchestrator-YFHSFYII.js} +7 -7
- package/dist/package.json +1 -1
- package/dist/{processor-SAS6Z2XZ.js → processor-EM4BINEJ.js} +5 -5
- package/dist/{protocol-4xbfAlGO.d.ts → protocol-OnZRAPeM.d.ts} +1 -0
- package/dist/{protocol-IXFNYZEX.js → protocol-VVUFP4I7.js} +2 -2
- package/dist/{provider-ESEBV3LL.js → provider-AASLIQZJ.js} +7 -7
- package/dist/{serve-U5FU7YWD.js → serve-OJPBEKVE.js} +11 -11
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +9 -9
- package/dist/shared/index.d.ts +2 -2
- package/dist/{tools-B4KSCOWC.js → tools-PPLFGZCK.js} +6 -6
- package/dist/{vision-fallback-ED27LH6C.js → vision-fallback-GMDXLVRN.js} +2 -2
- package/dist/web/assets/{index-DuIE79t4.js → index-CkbORFn4.js} +46 -43
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
getBackendCapabilities,
|
|
29
29
|
getModelProfile,
|
|
30
30
|
streamWithSegments
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Y325P6Z4.js";
|
|
32
32
|
import {
|
|
33
33
|
getCurrentContextWindowId,
|
|
34
34
|
getEventStore
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WNYDTFJO.js";
|
|
36
36
|
import {
|
|
37
37
|
buildContextMessagesFromEventHistory,
|
|
38
38
|
foldContextState,
|
|
@@ -47,10 +47,9 @@ import {
|
|
|
47
47
|
createChatMessageMessage,
|
|
48
48
|
createChatMessageUpdatedMessage,
|
|
49
49
|
createChatPathConfirmationMessage,
|
|
50
|
-
createChatToolOutputMessage,
|
|
51
50
|
createChatVisionFallbackMessage,
|
|
52
51
|
createQueueStateMessage
|
|
53
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ZPQDYRQI.js";
|
|
54
53
|
import {
|
|
55
54
|
AskUserInterrupt,
|
|
56
55
|
askUserTool
|
|
@@ -710,7 +709,7 @@ async function* streamLLMPure(options) {
|
|
|
710
709
|
const unescaped = delta.replace(/\\n/g, "\n").replace(/\\t/g, " ").replace(/\\"/g, '"').replace(/\\\\/g, "\\");
|
|
711
710
|
yield {
|
|
712
711
|
type: "tool.output",
|
|
713
|
-
data: { toolCallId, stream: "stdout", content: unescaped }
|
|
712
|
+
data: { messageId, toolCallId, stream: "stdout", content: unescaped }
|
|
714
713
|
};
|
|
715
714
|
}
|
|
716
715
|
}
|
|
@@ -2651,11 +2650,14 @@ function parseProgressMessage(message) {
|
|
|
2651
2650
|
content: match[2]
|
|
2652
2651
|
};
|
|
2653
2652
|
}
|
|
2654
|
-
function createToolProgressHandler(messageId, callId,
|
|
2653
|
+
function createToolProgressHandler(eventStore, messageId, callId, sessionId) {
|
|
2655
2654
|
return (message) => {
|
|
2656
2655
|
const parsed = parseProgressMessage(message);
|
|
2657
2656
|
if (!parsed) return;
|
|
2658
|
-
|
|
2657
|
+
eventStore.append(sessionId, {
|
|
2658
|
+
type: "tool.output",
|
|
2659
|
+
data: { messageId, toolCallId: callId, stream: parsed.stream, content: parsed.content }
|
|
2660
|
+
});
|
|
2659
2661
|
};
|
|
2660
2662
|
}
|
|
2661
2663
|
|
|
@@ -2953,6 +2955,35 @@ async function executeToolBatch(assistantMsgId, toolCalls, ctx) {
|
|
|
2953
2955
|
for (const toolCall of toolCalls) {
|
|
2954
2956
|
eventStore.append(ctx.sessionId, createToolCallEvent(assistantMsgId, toolCall));
|
|
2955
2957
|
}
|
|
2958
|
+
const handleToolExecutionError = async (error, sessionId, startTime) => {
|
|
2959
|
+
if (error instanceof PathAccessDeniedError) {
|
|
2960
|
+
return {
|
|
2961
|
+
success: false,
|
|
2962
|
+
error: `User denied access to ${error.paths.join(", ")}. If you need this file, explain why and ask for permission.`,
|
|
2963
|
+
durationMs: Date.now() - startTime,
|
|
2964
|
+
truncated: false
|
|
2965
|
+
};
|
|
2966
|
+
} else if (error instanceof AskUserInterrupt) {
|
|
2967
|
+
eventStore.append(sessionId, {
|
|
2968
|
+
type: "chat.ask_user",
|
|
2969
|
+
data: { callId: error.callId, question: error.question }
|
|
2970
|
+
});
|
|
2971
|
+
const { awaitAnswer } = await import("./ask-5SSOA6SZ.js");
|
|
2972
|
+
const answerPromise = awaitAnswer(error.callId);
|
|
2973
|
+
if (!answerPromise) {
|
|
2974
|
+
throw new Error(`No pending question found for callId: ${error.callId}`);
|
|
2975
|
+
}
|
|
2976
|
+
const answer = await answerPromise;
|
|
2977
|
+
return {
|
|
2978
|
+
success: true,
|
|
2979
|
+
output: answer,
|
|
2980
|
+
durationMs: Date.now() - startTime,
|
|
2981
|
+
truncated: false
|
|
2982
|
+
};
|
|
2983
|
+
} else {
|
|
2984
|
+
throw error;
|
|
2985
|
+
}
|
|
2986
|
+
};
|
|
2956
2987
|
const executeTool = async (toolCall, index) => {
|
|
2957
2988
|
if (ctx.signal?.aborted) {
|
|
2958
2989
|
throw new Error("Aborted");
|
|
@@ -2965,15 +2996,16 @@ async function executeToolBatch(assistantMsgId, toolCalls, ctx) {
|
|
|
2965
2996
|
truncated: false
|
|
2966
2997
|
};
|
|
2967
2998
|
ctx.turnMetrics.addToolTime(toolResult2.durationMs);
|
|
2968
|
-
|
|
2999
|
+
const event = createToolResultEvent(assistantMsgId, toolCall.id, toolResult2);
|
|
2969
3000
|
return {
|
|
2970
3001
|
toolCall,
|
|
2971
3002
|
toolResult: toolResult2,
|
|
2972
3003
|
content: `Error: ${toolResult2.error}`,
|
|
2973
|
-
index
|
|
3004
|
+
index,
|
|
3005
|
+
event
|
|
2974
3006
|
};
|
|
2975
3007
|
}
|
|
2976
|
-
const onProgress = ctx.onMessage ? createToolProgressHandler(assistantMsgId, toolCall.id, ctx.
|
|
3008
|
+
const onProgress = ctx.onMessage ? createToolProgressHandler(eventStore, assistantMsgId, toolCall.id, ctx.sessionId) : void 0;
|
|
2977
3009
|
const toolContext = {
|
|
2978
3010
|
sessionManager: ctx.sessionManager,
|
|
2979
3011
|
workdir: ctx.workdir,
|
|
@@ -2989,40 +3021,14 @@ async function executeToolBatch(assistantMsgId, toolCalls, ctx) {
|
|
|
2989
3021
|
if (ctx.dangerLevel) {
|
|
2990
3022
|
toolContext.dangerLevel = ctx.dangerLevel;
|
|
2991
3023
|
}
|
|
3024
|
+
const startTime = Date.now();
|
|
2992
3025
|
let toolResult;
|
|
2993
3026
|
try {
|
|
2994
3027
|
toolResult = await ctx.toolRegistry.execute(toolCall.name, toolCall.arguments, toolContext);
|
|
2995
3028
|
} catch (error) {
|
|
2996
|
-
|
|
2997
|
-
toolResult = {
|
|
2998
|
-
success: false,
|
|
2999
|
-
error: `User denied access to ${error.paths.join(", ")}. If you need this file, explain why and ask for permission.`,
|
|
3000
|
-
durationMs: 0,
|
|
3001
|
-
truncated: false
|
|
3002
|
-
};
|
|
3003
|
-
} else if (error instanceof AskUserInterrupt) {
|
|
3004
|
-
eventStore.append(ctx.sessionId, {
|
|
3005
|
-
type: "chat.ask_user",
|
|
3006
|
-
data: { callId: error.callId, question: error.question }
|
|
3007
|
-
});
|
|
3008
|
-
const { awaitAnswer } = await import("./ask-5SSOA6SZ.js");
|
|
3009
|
-
const answerPromise = awaitAnswer(error.callId);
|
|
3010
|
-
if (!answerPromise) {
|
|
3011
|
-
throw new Error(`No pending question found for callId: ${error.callId}`);
|
|
3012
|
-
}
|
|
3013
|
-
const answer = await answerPromise;
|
|
3014
|
-
toolResult = {
|
|
3015
|
-
success: true,
|
|
3016
|
-
output: answer,
|
|
3017
|
-
durationMs: 0,
|
|
3018
|
-
truncated: false
|
|
3019
|
-
};
|
|
3020
|
-
} else {
|
|
3021
|
-
throw error;
|
|
3022
|
-
}
|
|
3029
|
+
toolResult = await handleToolExecutionError(error, ctx.sessionId, startTime);
|
|
3023
3030
|
}
|
|
3024
3031
|
ctx.turnMetrics.addToolTime(toolResult.durationMs);
|
|
3025
|
-
eventStore.append(ctx.sessionId, createToolResultEvent(assistantMsgId, toolCall.id, toolResult));
|
|
3026
3032
|
ctx.onToolExecuted?.(toolCall, toolResult);
|
|
3027
3033
|
if (toolCall.name === "return_value" && !toolCall.parseError) {
|
|
3028
3034
|
returnValueContent = toolCall.arguments["content"];
|
|
@@ -3037,12 +3043,15 @@ Error: ${toolResult.error}` : `Error: ${toolResult.error}`
|
|
|
3037
3043
|
toolCall,
|
|
3038
3044
|
toolResult,
|
|
3039
3045
|
content,
|
|
3040
|
-
index
|
|
3046
|
+
index,
|
|
3047
|
+
event: createToolResultEvent(assistantMsgId, toolCall.id, toolResult)
|
|
3041
3048
|
};
|
|
3042
3049
|
};
|
|
3043
3050
|
const executionPromises = toolCalls.map((toolCall, index) => executeTool(toolCall, index));
|
|
3044
3051
|
const results = await Promise.all(executionPromises);
|
|
3052
|
+
results.sort((a, b) => a.index - b.index);
|
|
3045
3053
|
for (const result of results) {
|
|
3054
|
+
eventStore.append(ctx.sessionId, result.event);
|
|
3046
3055
|
toolMessages.push({
|
|
3047
3056
|
role: "tool",
|
|
3048
3057
|
content: result.content,
|
|
@@ -3698,7 +3707,7 @@ var callSubAgentTool = {
|
|
|
3698
3707
|
};
|
|
3699
3708
|
}
|
|
3700
3709
|
try {
|
|
3701
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3710
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-PPLFGZCK.js");
|
|
3702
3711
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3703
3712
|
const turnMetrics = new TurnMetrics();
|
|
3704
3713
|
const result = await executeSubAgent({
|
|
@@ -4887,4 +4896,4 @@ export {
|
|
|
4887
4896
|
getToolRegistryForAgent,
|
|
4888
4897
|
createToolRegistry
|
|
4889
4898
|
};
|
|
4890
|
-
//# sourceMappingURL=chunk-
|
|
4899
|
+
//# sourceMappingURL=chunk-XI7JEBNT.js.map
|
|
@@ -33,7 +33,7 @@ Options:
|
|
|
33
33
|
}
|
|
34
34
|
async function runNetworkSetup(mode) {
|
|
35
35
|
const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-56SIRACI.js");
|
|
36
|
-
const { saveGlobalConfig } = await import("./config-
|
|
36
|
+
const { saveGlobalConfig } = await import("./config-RIK5T6WK.js");
|
|
37
37
|
const { getAuthKeyPath } = await import("./paths-X46PPOI2.js");
|
|
38
38
|
const existingAuth = await loadAuthConfig(mode);
|
|
39
39
|
if (existingAuth) {
|
|
@@ -94,7 +94,7 @@ async function runNetworkSetup(mode) {
|
|
|
94
94
|
console.log("\u2713 Configuration saved!\n");
|
|
95
95
|
}
|
|
96
96
|
async function runConfig(mode) {
|
|
97
|
-
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-
|
|
97
|
+
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-RIK5T6WK.js");
|
|
98
98
|
const { getGlobalConfigPath } = await import("./paths-X46PPOI2.js");
|
|
99
99
|
const config = await loadGlobalConfig(mode);
|
|
100
100
|
const configPath = getGlobalConfigPath(mode);
|
|
@@ -149,7 +149,7 @@ async function runCli(options) {
|
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
151
|
case "provider": {
|
|
152
|
-
const { runProviderCommand } = await import("./provider-
|
|
152
|
+
const { runProviderCommand } = await import("./provider-AASLIQZJ.js");
|
|
153
153
|
const [, subcommand] = positionals;
|
|
154
154
|
await runProviderCommand(mode, subcommand);
|
|
155
155
|
break;
|
|
@@ -185,12 +185,12 @@ async function runCli(options) {
|
|
|
185
185
|
break;
|
|
186
186
|
}
|
|
187
187
|
default: {
|
|
188
|
-
const { configFileExists } = await import("./config-
|
|
188
|
+
const { configFileExists } = await import("./config-RIK5T6WK.js");
|
|
189
189
|
const configExists = await configFileExists(mode);
|
|
190
190
|
if (!configExists) {
|
|
191
191
|
await runNetworkSetup(mode);
|
|
192
192
|
}
|
|
193
|
-
const { runServe } = await import("./serve-
|
|
193
|
+
const { runServe } = await import("./serve-OJPBEKVE.js");
|
|
194
194
|
const serveOptions = { mode };
|
|
195
195
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
196
196
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -202,4 +202,4 @@ async function runCli(options) {
|
|
|
202
202
|
export {
|
|
203
203
|
runCli
|
|
204
204
|
};
|
|
205
|
-
//# sourceMappingURL=chunk-
|
|
205
|
+
//# sourceMappingURL=chunk-Y2LKLZ2V.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
describeImageFromDataUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C3O6MZJV.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
6
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -801,4 +801,4 @@ export {
|
|
|
801
801
|
extractThinking,
|
|
802
802
|
streamWithSegments
|
|
803
803
|
};
|
|
804
|
-
//# sourceMappingURL=chunk-
|
|
804
|
+
//# sourceMappingURL=chunk-Y325P6Z4.js.map
|
|
@@ -206,7 +206,7 @@ function storedEventToServerMessage(event) {
|
|
|
206
206
|
}
|
|
207
207
|
case "tool.output": {
|
|
208
208
|
const data = event.data;
|
|
209
|
-
return createChatToolOutputMessage(
|
|
209
|
+
return createChatToolOutputMessage(data.messageId, data.toolCallId, data.content, data.stream);
|
|
210
210
|
}
|
|
211
211
|
case "tool.result": {
|
|
212
212
|
const data = event.data;
|
|
@@ -343,4 +343,4 @@ export {
|
|
|
343
343
|
createQueueStateMessage,
|
|
344
344
|
storedEventToServerMessage
|
|
345
345
|
};
|
|
346
|
-
//# sourceMappingURL=chunk-
|
|
346
|
+
//# sourceMappingURL=chunk-ZPQDYRQI.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
saveGlobalConfig,
|
|
14
14
|
setDefaultModelSelection,
|
|
15
15
|
trySmartDefaults
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-DVNZAJT5.js";
|
|
17
|
+
import "./chunk-NRJOTXHG.js";
|
|
18
|
+
import "./chunk-Y325P6Z4.js";
|
|
19
19
|
import "./chunk-CQGTEGKL.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-C3O6MZJV.js";
|
|
21
21
|
import "./chunk-K44MW7JJ.js";
|
|
22
22
|
export {
|
|
23
23
|
activateProvider,
|
|
@@ -35,4 +35,4 @@ export {
|
|
|
35
35
|
setDefaultModelSelection,
|
|
36
36
|
trySmartDefaults
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=config-
|
|
38
|
+
//# sourceMappingURL=config-RIK5T6WK.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
isStoredEvent,
|
|
38
38
|
isTurnEvent,
|
|
39
39
|
truncateSessionMessages
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-WNYDTFJO.js";
|
|
41
41
|
import "./chunk-KIOUKC3Z.js";
|
|
42
42
|
import {
|
|
43
43
|
buildContextMessagesFromEventHistory,
|
|
@@ -113,4 +113,4 @@ export {
|
|
|
113
113
|
isTurnEvent,
|
|
114
114
|
truncateSessionMessages
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=events-
|
|
116
|
+
//# sourceMappingURL=events-I7NDHSNU.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
runBuilderTurn,
|
|
4
4
|
runChatTurn,
|
|
5
5
|
runVerifierTurn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WHPOBTTU.js";
|
|
7
7
|
import {
|
|
8
8
|
TurnMetrics,
|
|
9
9
|
createChatDoneEvent,
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
createMessageStartEvent,
|
|
12
12
|
createToolCallEvent,
|
|
13
13
|
createToolResultEvent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XI7JEBNT.js";
|
|
15
15
|
import "./chunk-OXI26S7U.js";
|
|
16
16
|
import "./chunk-CMQCO27Y.js";
|
|
17
17
|
import "./chunk-DL6ZILAF.js";
|
|
18
18
|
import "./chunk-PBGOZMVY.js";
|
|
19
19
|
import "./chunk-VRGRAQDG.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-Y325P6Z4.js";
|
|
21
|
+
import "./chunk-WNYDTFJO.js";
|
|
22
22
|
import "./chunk-KIOUKC3Z.js";
|
|
23
23
|
import "./chunk-TS5XFQ2D.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-ZPQDYRQI.js";
|
|
25
25
|
import "./chunk-BJYPTN5S.js";
|
|
26
26
|
import "./chunk-NDJ6FKSP.js";
|
|
27
27
|
import "./chunk-CQGTEGKL.js";
|
|
28
28
|
import "./chunk-B5AP3RSV.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-C3O6MZJV.js";
|
|
30
30
|
import "./chunk-K44MW7JJ.js";
|
|
31
31
|
export {
|
|
32
32
|
TurnMetrics,
|
|
@@ -40,4 +40,4 @@ export {
|
|
|
40
40
|
runChatTurn,
|
|
41
41
|
runVerifierTurn
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=orchestrator-
|
|
43
|
+
//# sourceMappingURL=orchestrator-YFHSFYII.js.map
|
package/dist/package.json
CHANGED
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
generateSessionName,
|
|
6
6
|
getSessionMessageCount,
|
|
7
7
|
needsNameGenerationCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-D67V55WE.js";
|
|
9
9
|
import {
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WNYDTFJO.js";
|
|
12
12
|
import "./chunk-KIOUKC3Z.js";
|
|
13
13
|
import "./chunk-TS5XFQ2D.js";
|
|
14
14
|
import {
|
|
15
15
|
createChatMessageMessage,
|
|
16
16
|
createSessionRunningMessage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZPQDYRQI.js";
|
|
18
18
|
import "./chunk-NDJ6FKSP.js";
|
|
19
19
|
import "./chunk-B5AP3RSV.js";
|
|
20
20
|
import {
|
|
@@ -177,7 +177,7 @@ var QueueProcessor = class {
|
|
|
177
177
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
178
178
|
model: llmClient.getModel()
|
|
179
179
|
};
|
|
180
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
180
|
+
const { runChatTurn } = await import("./orchestrator-YFHSFYII.js");
|
|
181
181
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
182
182
|
sessionManager,
|
|
183
183
|
sessionId,
|
|
@@ -221,4 +221,4 @@ var QueueProcessor = class {
|
|
|
221
221
|
export {
|
|
222
222
|
QueueProcessor
|
|
223
223
|
};
|
|
224
|
-
//# sourceMappingURL=processor-
|
|
224
|
+
//# sourceMappingURL=processor-EM4BINEJ.js.map
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
parseClientMessage,
|
|
36
36
|
serializeServerMessage,
|
|
37
37
|
storedEventToServerMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZPQDYRQI.js";
|
|
39
39
|
import "./chunk-NDJ6FKSP.js";
|
|
40
40
|
export {
|
|
41
41
|
createChatAskUserMessage,
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
serializeServerMessage,
|
|
76
76
|
storedEventToServerMessage
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=protocol-
|
|
78
|
+
//# sourceMappingURL=protocol-VVUFP4I7.js.map
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
loadGlobalConfig,
|
|
6
6
|
removeProvider,
|
|
7
7
|
saveGlobalConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DVNZAJT5.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAvailableModelsFromBackend
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HJOH367L.js";
|
|
12
12
|
import {
|
|
13
13
|
detectModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NRJOTXHG.js";
|
|
15
15
|
import {
|
|
16
16
|
detectBackend
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y325P6Z4.js";
|
|
18
18
|
import "./chunk-CQGTEGKL.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-C3O6MZJV.js";
|
|
20
20
|
import "./chunk-K44MW7JJ.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/provider.ts
|
|
@@ -248,7 +248,7 @@ async function runProviderAdd(mode) {
|
|
|
248
248
|
isActive: makeActive
|
|
249
249
|
});
|
|
250
250
|
if (makeActive) {
|
|
251
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
251
|
+
const { setDefaultModelSelection } = await import("./config-RIK5T6WK.js");
|
|
252
252
|
newConfig = setDefaultModelSelection(
|
|
253
253
|
newConfig,
|
|
254
254
|
newConfig.providers[newConfig.providers.length - 1].id,
|
|
@@ -376,4 +376,4 @@ export {
|
|
|
376
376
|
runProviderRemove,
|
|
377
377
|
runProviderUse
|
|
378
378
|
};
|
|
379
|
-
//# sourceMappingURL=provider-
|
|
379
|
+
//# sourceMappingURL=provider-AASLIQZJ.js.map
|
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
getActiveProvider,
|
|
3
3
|
getDefaultModel,
|
|
4
4
|
loadGlobalConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DVNZAJT5.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-MDL6USSE.js";
|
|
10
|
+
import "./chunk-WHPOBTTU.js";
|
|
11
|
+
import "./chunk-XI7JEBNT.js";
|
|
12
12
|
import "./chunk-OXI26S7U.js";
|
|
13
13
|
import "./chunk-CMQCO27Y.js";
|
|
14
14
|
import "./chunk-DL6ZILAF.js";
|
|
15
15
|
import "./chunk-PBGOZMVY.js";
|
|
16
16
|
import "./chunk-VRGRAQDG.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-HJOH367L.js";
|
|
18
|
+
import "./chunk-NRJOTXHG.js";
|
|
19
|
+
import "./chunk-Y325P6Z4.js";
|
|
20
|
+
import "./chunk-WNYDTFJO.js";
|
|
21
21
|
import "./chunk-KIOUKC3Z.js";
|
|
22
22
|
import "./chunk-TS5XFQ2D.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-ZPQDYRQI.js";
|
|
24
24
|
import "./chunk-BJYPTN5S.js";
|
|
25
25
|
import "./chunk-RGRBWDZP.js";
|
|
26
26
|
import "./chunk-NDJ6FKSP.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
34
|
} from "./chunk-B5AP3RSV.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-C3O6MZJV.js";
|
|
36
36
|
import {
|
|
37
37
|
logger
|
|
38
38
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -190,4 +190,4 @@ async function runServe(options) {
|
|
|
190
190
|
export {
|
|
191
191
|
runServe
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=serve-
|
|
193
|
+
//# sourceMappingURL=serve-OJPBEKVE.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as ToolCall, c as Attachment, T as Diagnostic, an as Provider, a8 as ModelConfig, aA as Session, aJ as SessionSummary, af as Project, aE as SessionMode, aG as SessionPhase, M as Message, K as Criterion, N as CriterionStatus, aw as QueuedMessage, G as ContextState, P as DangerLevel$1, ay as ServerMessage, aL as StatsIdentity, aR as ToolResult, E as Config } from '../protocol-
|
|
1
|
+
import { aO as ToolCall, c as Attachment, T as Diagnostic, an as Provider, a8 as ModelConfig, aA as Session, aJ as SessionSummary, af as Project, aE as SessionMode, aG as SessionPhase, M as Message, K as Criterion, N as CriterionStatus, aw as QueuedMessage, G as ContextState, P as DangerLevel$1, ay as ServerMessage, aL as StatsIdentity, aR as ToolResult, E as Config } from '../protocol-OnZRAPeM.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
|
|
4
4
|
interface LLMMessage {
|
package/dist/server/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-MDL6USSE.js";
|
|
5
|
+
import "../chunk-WHPOBTTU.js";
|
|
6
|
+
import "../chunk-XI7JEBNT.js";
|
|
7
7
|
import "../chunk-OXI26S7U.js";
|
|
8
8
|
import "../chunk-CMQCO27Y.js";
|
|
9
9
|
import "../chunk-DL6ZILAF.js";
|
|
10
10
|
import "../chunk-PBGOZMVY.js";
|
|
11
11
|
import "../chunk-VRGRAQDG.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-HJOH367L.js";
|
|
13
|
+
import "../chunk-NRJOTXHG.js";
|
|
14
|
+
import "../chunk-Y325P6Z4.js";
|
|
15
|
+
import "../chunk-WNYDTFJO.js";
|
|
16
16
|
import "../chunk-KIOUKC3Z.js";
|
|
17
17
|
import "../chunk-TS5XFQ2D.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-ZPQDYRQI.js";
|
|
19
19
|
import "../chunk-BJYPTN5S.js";
|
|
20
20
|
import "../chunk-RGRBWDZP.js";
|
|
21
21
|
import "../chunk-NDJ6FKSP.js";
|
|
22
22
|
import "../chunk-CQGTEGKL.js";
|
|
23
23
|
import "../chunk-B5AP3RSV.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-C3O6MZJV.js";
|
|
25
25
|
import "../chunk-K44MW7JJ.js";
|
|
26
26
|
export {
|
|
27
27
|
createServer,
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Message, S as SessionStats } from '../protocol-
|
|
2
|
-
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatSummaryPayload, s as ChatThinkingPayload, t as ChatTodoPayload, u as ChatToolCallPayload, v as ChatToolOutputPayload, w as ChatToolPreparingPayload, x as ChatToolResultPayload, y as ChatVisionFallbackPayload, z as ClientMessage, D as ClientMessageType, E as Config, F as ContextCompactionEvent, G as ContextState, H as ContextStatePayload, I as ContextWindow, J as CriteriaUpdatedPayload, K as Criterion, L as CriterionAttempt, N as CriterionStatus, O as CriterionValidation, P as DangerLevel, Q as DevServerOutputPayload, R as DevServerStatePayload, T as Diagnostic, U as EditContextEdit, V as EditContextLine, W as EditContextRegion, X as ElementData, Y as ErrorPayload, Z as ExecutionState, _ as FileReadEntry, $ as InjectedFile, a0 as LLMCallStats, a1 as LlmBackend, a2 as LogLine, a3 as LspDiagnosticsPayload, a4 as MessageRole, a5 as MessageSegment, a6 as MessageStats, a7 as ModeChangedPayload, a8 as ModelConfig, a9 as ModelSessionStats, aa as PathConfirmPayload, ab as PathConfirmationReason, ac as PendingPathConfirmationPayload, ad as PhaseChangedPayload, ae as PreparingToolCall, af as Project, ag as ProjectDeletedPayload, ah as ProjectListPayload, ai as ProjectStatePayload, aj as PromptContext, ak as PromptContextMessage, al as PromptContextTool, am as PromptRequestOptions, an as Provider, ao as ProviderBackend, ap as ProviderChangedPayload, aq as QueueAddedEvent, ar as QueueCancelledEvent, as as QueueDrainedEvent, at as QueueEvent, au as QueueEventType, av as QueueStatePayload, aw as QueuedMessage, ax as RecentUserPrompt, ay as ServerMessage, az as ServerMessageType, aA as Session, aB as SessionListPayload, aC as SessionLoadPayload, aD as SessionMetadata, aE as SessionMode, aF as SessionNameGeneratedPayload, aG as SessionPhase, aH as SessionRunningPayload, aI as SessionStatePayload, aJ as SessionSummary, aK as StatsDataPoint, aL as StatsIdentity, aM as TaskCompletedPayload, aN as Todo, aO as ToolCall, aP as ToolMode, aQ as ToolName, aR as ToolResult, aS as ValidationResult, aT as createClientMessage, aU as createServerMessage, aV as isClientMessage, aW as isServerMessage } from '../protocol-
|
|
1
|
+
import { M as Message, S as SessionStats } from '../protocol-OnZRAPeM.js';
|
|
2
|
+
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatSummaryPayload, s as ChatThinkingPayload, t as ChatTodoPayload, u as ChatToolCallPayload, v as ChatToolOutputPayload, w as ChatToolPreparingPayload, x as ChatToolResultPayload, y as ChatVisionFallbackPayload, z as ClientMessage, D as ClientMessageType, E as Config, F as ContextCompactionEvent, G as ContextState, H as ContextStatePayload, I as ContextWindow, J as CriteriaUpdatedPayload, K as Criterion, L as CriterionAttempt, N as CriterionStatus, O as CriterionValidation, P as DangerLevel, Q as DevServerOutputPayload, R as DevServerStatePayload, T as Diagnostic, U as EditContextEdit, V as EditContextLine, W as EditContextRegion, X as ElementData, Y as ErrorPayload, Z as ExecutionState, _ as FileReadEntry, $ as InjectedFile, a0 as LLMCallStats, a1 as LlmBackend, a2 as LogLine, a3 as LspDiagnosticsPayload, a4 as MessageRole, a5 as MessageSegment, a6 as MessageStats, a7 as ModeChangedPayload, a8 as ModelConfig, a9 as ModelSessionStats, aa as PathConfirmPayload, ab as PathConfirmationReason, ac as PendingPathConfirmationPayload, ad as PhaseChangedPayload, ae as PreparingToolCall, af as Project, ag as ProjectDeletedPayload, ah as ProjectListPayload, ai as ProjectStatePayload, aj as PromptContext, ak as PromptContextMessage, al as PromptContextTool, am as PromptRequestOptions, an as Provider, ao as ProviderBackend, ap as ProviderChangedPayload, aq as QueueAddedEvent, ar as QueueCancelledEvent, as as QueueDrainedEvent, at as QueueEvent, au as QueueEventType, av as QueueStatePayload, aw as QueuedMessage, ax as RecentUserPrompt, ay as ServerMessage, az as ServerMessageType, aA as Session, aB as SessionListPayload, aC as SessionLoadPayload, aD as SessionMetadata, aE as SessionMode, aF as SessionNameGeneratedPayload, aG as SessionPhase, aH as SessionRunningPayload, aI as SessionStatePayload, aJ as SessionSummary, aK as StatsDataPoint, aL as StatsIdentity, aM as TaskCompletedPayload, aN as Todo, aO as ToolCall, aP as ToolMode, aQ as ToolName, aR as ToolResult, aS as ValidationResult, aT as createClientMessage, aU as createServerMessage, aV as isClientMessage, aW as isServerMessage } from '../protocol-OnZRAPeM.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Session stats computation - aggregates response-level MessageStats from
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
requestPathAccess,
|
|
12
12
|
stepDoneTool,
|
|
13
13
|
validateToolAction
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XI7JEBNT.js";
|
|
15
15
|
import "./chunk-OXI26S7U.js";
|
|
16
16
|
import "./chunk-CMQCO27Y.js";
|
|
17
17
|
import "./chunk-DL6ZILAF.js";
|
|
18
18
|
import "./chunk-PBGOZMVY.js";
|
|
19
19
|
import "./chunk-VRGRAQDG.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-Y325P6Z4.js";
|
|
21
|
+
import "./chunk-WNYDTFJO.js";
|
|
22
22
|
import "./chunk-KIOUKC3Z.js";
|
|
23
23
|
import "./chunk-TS5XFQ2D.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-ZPQDYRQI.js";
|
|
25
25
|
import {
|
|
26
26
|
AskUserInterrupt,
|
|
27
27
|
cancelQuestionsForSession,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import "./chunk-NDJ6FKSP.js";
|
|
31
31
|
import "./chunk-CQGTEGKL.js";
|
|
32
32
|
import "./chunk-B5AP3RSV.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-C3O6MZJV.js";
|
|
34
34
|
import "./chunk-K44MW7JJ.js";
|
|
35
35
|
export {
|
|
36
36
|
AskUserInterrupt,
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
stepDoneTool,
|
|
50
50
|
validateToolAction
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=tools-
|
|
52
|
+
//# sourceMappingURL=tools-PPLFGZCK.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getVisionFallbackConfig,
|
|
8
8
|
isVisionFallbackEnabled,
|
|
9
9
|
setVisionFallbackConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C3O6MZJV.js";
|
|
11
11
|
import "./chunk-K44MW7JJ.js";
|
|
12
12
|
export {
|
|
13
13
|
clearDescriptionCache,
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
isVisionFallbackEnabled,
|
|
20
20
|
setVisionFallbackConfig
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=vision-fallback-
|
|
22
|
+
//# sourceMappingURL=vision-fallback-GMDXLVRN.js.map
|