openfox 2.0.97 → 2.0.98
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 +6 -0
- package/dist/CHANGELOG.md +6 -0
- package/dist/{chat-handler-XXXMTO7W.js → chat-handler-YPWT4MAQ.js} +8 -8
- package/dist/{chunk-K2O7JTCX.js → chunk-AY37NB76.js} +2 -2
- package/dist/{chunk-URQQOUCS.js → chunk-B56G5OEF.js} +3 -1
- package/dist/{chunk-CCEG3AFM.js → chunk-C6QW2IDH.js} +8 -8
- package/dist/{chunk-C3XL7X4E.js → chunk-CFTT46KH.js} +4 -4
- package/dist/{chunk-T3INQCET.js → chunk-E2CSSHSI.js} +2 -2
- package/dist/{chunk-HJEATCSM.js → chunk-H5HL36MZ.js} +7 -7
- package/dist/{chunk-GPGJBDI6.js → chunk-HGEDHHTU.js} +41 -37
- package/dist/{chunk-LZW5LSVH.js → chunk-IXFEXEUL.js} +3 -3
- package/dist/chunk-JYHWOFPM.js +7 -0
- package/dist/{chunk-O5YWFX7H.js → chunk-MO3GJIT3.js} +8 -8
- package/dist/{chunk-RMXPVQP4.js → chunk-UIK6GA3P.js} +17 -9
- package/dist/{chunk-2VJIQEZE.js → chunk-VJILJ22N.js} +12 -6
- package/dist/{chunk-CSKPPHD3.js → chunk-W77HIJGH.js} +4 -3
- package/dist/{chunk-3W6STALV.js → chunk-XTKLA4AK.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-IK47PLPP.js → client-CFTJH6BY.js} +3 -3
- package/dist/{client-pure-5YE5WFJP.js → client-pure-DCEZBFKW.js} +2 -2
- package/dist/{compactor-U7EUKEUE.js → compactor-B4V75Q3A.js} +4 -4
- package/dist/{config-M7RDIFC5.js → config-3FKJV3KI.js} +2 -2
- package/dist/{dynamic-context-TDB4G5CH.js → dynamic-context-MA5BIJ52.js} +2 -2
- package/dist/{orchestrator-MTCF2EPU.js → orchestrator-DHBU7LRB.js} +7 -7
- package/dist/package.json +1 -1
- package/dist/{processor-F3EZWNPO.js → processor-RC3IBY2J.js} +7 -7
- package/dist/{protocol-C5ROb3nH.d.ts → protocol-BXgdUKgZ.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-5KFIZM5T.js → provider-PEJ27FBM.js} +6 -6
- package/dist/{provider-manager-23O5QVDJ.js → provider-manager-EJGPSLOZ.js} +4 -4
- package/dist/{serve-JACH7OQW.js → serve-H7HR7BWI.js} +14 -14
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +13 -13
- package/dist/{server-KIRPYPP6.js → server-ORYMG5HD.js} +10 -10
- package/dist/shared/index.d.ts +3 -3
- package/dist/{tools-I3BAXRVD.js → tools-X5FONL4Q.js} +5 -5
- package/dist/{types-DHxO1nqw.d.ts → types-7idXD8Bq.d.ts} +4 -0
- package/dist/{types-D-dEQIrh.d.ts → types-DBftgbfl.d.ts} +1 -1
- package/dist/{update-NZZWLDK7.js → update-ZOUZYW6Q.js} +2 -2
- package/dist/web/assets/index-D8AjFhiw.js +324 -0
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DRMYR6BF.js +0 -7
- package/dist/web/assets/index-C1sXLxiM.js +0 -324
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
createToolCallEvent,
|
|
66
66
|
createToolResultEvent,
|
|
67
67
|
streamLLMPure
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-AY37NB76.js";
|
|
69
69
|
import {
|
|
70
70
|
COMPACTION_PROMPT,
|
|
71
71
|
buildBasePrompt,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
formatPdfErrorMessage,
|
|
106
106
|
isPdfBuffer,
|
|
107
107
|
processPdfContent
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-UIK6GA3P.js";
|
|
109
109
|
import {
|
|
110
110
|
SETTINGS_KEYS,
|
|
111
111
|
getSetting
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
import {
|
|
117
117
|
loadGlobalConfig,
|
|
118
118
|
saveGlobalConfig
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-B56G5OEF.js";
|
|
120
120
|
import {
|
|
121
121
|
getGlobalConfigDir
|
|
122
122
|
} from "./chunk-CQGTEGKL.js";
|
|
@@ -1913,7 +1913,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
1913
1913
|
sessionManager.setCurrentContextSize(sessionId, result.usage.promptTokens, config.subAgentMetadata?.subAgentId);
|
|
1914
1914
|
if (!compacting) {
|
|
1915
1915
|
const contextState2 = sessionManager.getContextState(sessionId);
|
|
1916
|
-
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-
|
|
1916
|
+
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-B4V75Q3A.js");
|
|
1917
1917
|
if (shouldCompact(
|
|
1918
1918
|
contextState2.currentTokens,
|
|
1919
1919
|
contextState2.maxTokens,
|
|
@@ -2280,7 +2280,7 @@ async function describeImageFromDataUrl(dataUrl, visionModel, options) {
|
|
|
2280
2280
|
// src/server/context/image-processor.ts
|
|
2281
2281
|
async function loadVisionModelFromGlobalConfig() {
|
|
2282
2282
|
try {
|
|
2283
|
-
const { loadGlobalConfig: loadGlobalConfig2, resolveVisionFallback } = await import("./config-
|
|
2283
|
+
const { loadGlobalConfig: loadGlobalConfig2, resolveVisionFallback } = await import("./config-3FKJV3KI.js");
|
|
2284
2284
|
const runtimeConfig = getRuntimeConfig();
|
|
2285
2285
|
const mode = runtimeConfig.mode ?? "production";
|
|
2286
2286
|
const globalConfig = await loadGlobalConfig2(mode);
|
|
@@ -2848,7 +2848,7 @@ var callSubAgentTool = {
|
|
|
2848
2848
|
};
|
|
2849
2849
|
}
|
|
2850
2850
|
try {
|
|
2851
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
2851
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-X5FONL4Q.js");
|
|
2852
2852
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
2853
2853
|
const turnMetrics = new TurnMetrics();
|
|
2854
2854
|
const result = await executeSubAgent({
|
|
@@ -3869,7 +3869,7 @@ var mcpConfigTool = createTool(
|
|
|
3869
3869
|
mcpNotifyChanged?.(sessionId);
|
|
3870
3870
|
}
|
|
3871
3871
|
async function rebuildTools() {
|
|
3872
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
3872
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-X5FONL4Q.js");
|
|
3873
3873
|
const mcpTools = createMcpTools(mcpManagerForTools);
|
|
3874
3874
|
setMcpTools2(mcpTools);
|
|
3875
3875
|
}
|
|
@@ -4515,4 +4515,4 @@ export {
|
|
|
4515
4515
|
getToolRegistryForAgent,
|
|
4516
4516
|
createToolRegistry
|
|
4517
4517
|
};
|
|
4518
|
-
//# sourceMappingURL=chunk-
|
|
4518
|
+
//# sourceMappingURL=chunk-MO3GJIT3.js.map
|
|
@@ -489,7 +489,7 @@ function getThinking(msg, override) {
|
|
|
489
489
|
}
|
|
490
490
|
return msg["reasoning"] ?? msg["reasoning_content"] ?? msg["thinking"];
|
|
491
491
|
}
|
|
492
|
-
function buildAssistantMessage(msg, thinkingField) {
|
|
492
|
+
function buildAssistantMessage(msg, thinkingField, sendReasoningInMessages) {
|
|
493
493
|
const result = {
|
|
494
494
|
role: "assistant",
|
|
495
495
|
content: msg.toolCalls?.length ? msg.content || "" : msg.content || null
|
|
@@ -497,7 +497,7 @@ function buildAssistantMessage(msg, thinkingField) {
|
|
|
497
497
|
if (msg.toolCalls?.length) {
|
|
498
498
|
result["tool_calls"] = convertToolCalls(msg.toolCalls);
|
|
499
499
|
}
|
|
500
|
-
if (msg.thinkingContent) {
|
|
500
|
+
if (msg.thinkingContent && sendReasoningInMessages !== false) {
|
|
501
501
|
result[thinkingField ?? "reasoning"] = msg.thinkingContent;
|
|
502
502
|
}
|
|
503
503
|
return result;
|
|
@@ -528,7 +528,7 @@ ${attachment.data}` }];
|
|
|
528
528
|
}
|
|
529
529
|
return [{ type: "text", text: `[Image: ${attachment.filename || "image"}] (vision not supported, cannot describe)` }];
|
|
530
530
|
}
|
|
531
|
-
async function convertMessages(messages, modelSupportsVision, thinkingField) {
|
|
531
|
+
async function convertMessages(messages, modelSupportsVision, thinkingField, sendReasoningInMessages) {
|
|
532
532
|
const filtered = messages.filter((msg) => {
|
|
533
533
|
return !(msg.role === "assistant" && !msg.content?.trim() && (!msg.toolCalls || msg.toolCalls.length === 0));
|
|
534
534
|
});
|
|
@@ -550,7 +550,9 @@ async function convertMessages(messages, modelSupportsVision, thinkingField) {
|
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
} else if (msg.role === "assistant") {
|
|
553
|
-
result.push(
|
|
553
|
+
result.push(
|
|
554
|
+
buildAssistantMessage(msg, thinkingField, sendReasoningInMessages)
|
|
555
|
+
);
|
|
554
556
|
} else if (msg.role === "user" && msg.attachments && msg.attachments.length > 0) {
|
|
555
557
|
const content = await buildAttachmentContent(msg.content, msg.attachments, modelSupportsVision);
|
|
556
558
|
result.push({
|
|
@@ -576,10 +578,15 @@ function convertTools(tools) {
|
|
|
576
578
|
}
|
|
577
579
|
}));
|
|
578
580
|
}
|
|
579
|
-
async function buildChatCompletionCreateParams(model, request, profile, capabilities, reasoningEffort, isStreaming, thinkingField) {
|
|
581
|
+
async function buildChatCompletionCreateParams(model, request, profile, capabilities, reasoningEffort, isStreaming, thinkingField, sendReasoningInMessages) {
|
|
580
582
|
const userVisionOverride = request.modelSettings?.supportsVision;
|
|
581
583
|
const modelSupportsVision = userVisionOverride ?? profile.supportsVision ?? false;
|
|
582
|
-
const convertedMessages = await convertMessages(
|
|
584
|
+
const convertedMessages = await convertMessages(
|
|
585
|
+
request.messages,
|
|
586
|
+
modelSupportsVision,
|
|
587
|
+
thinkingField,
|
|
588
|
+
sendReasoningInMessages
|
|
589
|
+
);
|
|
583
590
|
const temperature = request.modelSettings?.temperature ?? request.temperature ?? profile.temperature;
|
|
584
591
|
const maxTokens = request.modelSettings?.maxTokens ?? request.maxTokens ?? profile.defaultMaxTokens;
|
|
585
592
|
const topP = request.modelSettings?.topP ?? profile.topP;
|
|
@@ -631,7 +638,7 @@ async function buildChatCompletionCreateParams(model, request, profile, capabili
|
|
|
631
638
|
return { params, modelParams };
|
|
632
639
|
}
|
|
633
640
|
async function buildCreateParamsFromInput(input, isStreaming) {
|
|
634
|
-
const { model, request, profile, capabilities, reasoningEffort, thinkingField } = input;
|
|
641
|
+
const { model, request, profile, capabilities, reasoningEffort, thinkingField, sendReasoningInMessages } = input;
|
|
635
642
|
return buildChatCompletionCreateParams(
|
|
636
643
|
model,
|
|
637
644
|
request,
|
|
@@ -639,7 +646,8 @@ async function buildCreateParamsFromInput(input, isStreaming) {
|
|
|
639
646
|
capabilities,
|
|
640
647
|
reasoningEffort,
|
|
641
648
|
isStreaming,
|
|
642
|
-
thinkingField
|
|
649
|
+
thinkingField,
|
|
650
|
+
sendReasoningInMessages
|
|
643
651
|
);
|
|
644
652
|
}
|
|
645
653
|
var buildNonStreamingCreateParams = (input) => buildCreateParamsFromInput(input, false);
|
|
@@ -679,4 +687,4 @@ export {
|
|
|
679
687
|
buildStreamingCreateParams,
|
|
680
688
|
mapFinishReason
|
|
681
689
|
};
|
|
682
|
-
//# sourceMappingURL=chunk-
|
|
690
|
+
//# sourceMappingURL=chunk-UIK6GA3P.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
getThinking,
|
|
14
14
|
mapFinishReason,
|
|
15
15
|
parseToolArguments
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UIK6GA3P.js";
|
|
17
17
|
import {
|
|
18
18
|
LLMError,
|
|
19
19
|
OpenAIHttpClient
|
|
@@ -51,7 +51,15 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
51
51
|
let capabilities = getBackendCapabilities(backend);
|
|
52
52
|
const reasoningEffort = config.llm.reasoningEffort;
|
|
53
53
|
const thinkingField = config.llm.thinkingField;
|
|
54
|
+
const sendReasoningInMessages = config.llm.sendReasoningInMessages;
|
|
54
55
|
const idleTimeout = config.llm.idleTimeout ?? 12e4;
|
|
56
|
+
function buildExtraParams(resolvedEffort) {
|
|
57
|
+
return {
|
|
58
|
+
...resolvedEffort ? { reasoningEffort: resolvedEffort } : {},
|
|
59
|
+
...thinkingField ? { thinkingField } : {},
|
|
60
|
+
...sendReasoningInMessages !== void 0 ? { sendReasoningInMessages } : {}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
55
63
|
return {
|
|
56
64
|
getModel() {
|
|
57
65
|
return model;
|
|
@@ -92,8 +100,7 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
92
100
|
request,
|
|
93
101
|
profile,
|
|
94
102
|
capabilities,
|
|
95
|
-
...resolvedEffort
|
|
96
|
-
...thinkingField ? { thinkingField } : {}
|
|
103
|
+
...buildExtraParams(resolvedEffort)
|
|
97
104
|
});
|
|
98
105
|
const httpResponse = await httpClient.createChatCompletion(
|
|
99
106
|
createParams,
|
|
@@ -159,8 +166,7 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
159
166
|
request,
|
|
160
167
|
profile,
|
|
161
168
|
capabilities,
|
|
162
|
-
...resolvedEffort
|
|
163
|
-
...thinkingField ? { thinkingField } : {}
|
|
169
|
+
...buildExtraParams(resolvedEffort)
|
|
164
170
|
});
|
|
165
171
|
const { params: streamingParams } = createParams;
|
|
166
172
|
const stream = httpClient.createChatCompletionStream(streamingParams, {
|
|
@@ -304,4 +310,4 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
304
310
|
export {
|
|
305
311
|
createLLMClient
|
|
306
312
|
};
|
|
307
|
-
//# sourceMappingURL=chunk-
|
|
313
|
+
//# sourceMappingURL=chunk-VJILJ22N.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLLMClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VJILJ22N.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelProfile
|
|
6
6
|
} from "./chunk-V4IE7HJY.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-HNCM3D7Y.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveAttachmentsInMessages
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UIK6GA3P.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -405,6 +405,7 @@ function createProviderManager(config, options = {}) {
|
|
|
405
405
|
backend: provider.backend,
|
|
406
406
|
...provider.apiKey && { apiKey: provider.apiKey },
|
|
407
407
|
...provider.thinkingField && { thinkingField: provider.thinkingField },
|
|
408
|
+
...provider.sendReasoningInMessages !== void 0 ? { sendReasoningInMessages: provider.sendReasoningInMessages } : {},
|
|
408
409
|
...modelThinking.reasoningEffort && { reasoningEffort: modelThinking.reasoningEffort }
|
|
409
410
|
}
|
|
410
411
|
};
|
|
@@ -807,4 +808,4 @@ export {
|
|
|
807
808
|
parseDefaultModelSelection,
|
|
808
809
|
createProviderManager
|
|
809
810
|
};
|
|
810
|
-
//# sourceMappingURL=chunk-
|
|
811
|
+
//# sourceMappingURL=chunk-W77HIJGH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMessageStartEvent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AY37NB76.js";
|
|
4
4
|
import {
|
|
5
5
|
COMPACTION_PROMPT
|
|
6
6
|
} from "./chunk-MRWR3SIT.js";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
COMPACTION_MAX_RATIO,
|
|
37
37
|
shouldCompact
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-XTKLA4AK.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLLMClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VJILJ22N.js";
|
|
4
4
|
import "./chunk-V4IE7HJY.js";
|
|
5
5
|
import "./chunk-YHEQTVFV.js";
|
|
6
6
|
import "./chunk-HNCM3D7Y.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-UIK6GA3P.js";
|
|
8
8
|
import "./chunk-TDHDLDGQ.js";
|
|
9
9
|
import "./chunk-UEOEA6BB.js";
|
|
10
10
|
import "./chunk-GLF65XDS.js";
|
|
@@ -13,4 +13,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
13
13
|
export {
|
|
14
14
|
createLLMClient
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=client-
|
|
16
|
+
//# sourceMappingURL=client-CFTJH6BY.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
mapFinishReason,
|
|
9
9
|
parseToolArguments,
|
|
10
10
|
resolveAttachmentsInMessages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UIK6GA3P.js";
|
|
12
12
|
import "./chunk-5WRI5ZAA.js";
|
|
13
13
|
export {
|
|
14
14
|
buildModelParams,
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
parseToolArguments,
|
|
22
22
|
resolveAttachmentsInMessages
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=client-pure-
|
|
24
|
+
//# sourceMappingURL=client-pure-DCEZBFKW.js.map
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
COMPACTION_MAX_RATIO,
|
|
4
4
|
appendCompactionPrompt,
|
|
5
5
|
shouldCompact
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XTKLA4AK.js";
|
|
7
|
+
import "./chunk-AY37NB76.js";
|
|
8
8
|
import "./chunk-MRWR3SIT.js";
|
|
9
9
|
import "./chunk-KNYPBXPW.js";
|
|
10
10
|
import "./chunk-NLN5LPQ4.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-3LRYZ7R3.js";
|
|
|
14
14
|
import "./chunk-J2GP3J3X.js";
|
|
15
15
|
import "./chunk-V4IE7HJY.js";
|
|
16
16
|
import "./chunk-YHEQTVFV.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-UIK6GA3P.js";
|
|
18
18
|
import "./chunk-UEOEA6BB.js";
|
|
19
19
|
import "./chunk-GLF65XDS.js";
|
|
20
20
|
import "./chunk-K44MW7JJ.js";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
appendCompactionPrompt,
|
|
27
27
|
shouldCompact
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=compactor-
|
|
29
|
+
//# sourceMappingURL=compactor-B4V75Q3A.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
saveGlobalConfig,
|
|
13
13
|
setDefaultModelSelection,
|
|
14
14
|
updateProvider
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-B56G5OEF.js";
|
|
16
16
|
import "./chunk-CQGTEGKL.js";
|
|
17
17
|
import "./chunk-5WRI5ZAA.js";
|
|
18
18
|
export {
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
setDefaultModelSelection,
|
|
31
31
|
updateProvider
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=config-
|
|
33
|
+
//# sourceMappingURL=config-3FKJV3KI.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
computeSessionHash,
|
|
6
6
|
computeUnifiedDiff,
|
|
7
7
|
getToolFingerprint
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IXFEXEUL.js";
|
|
9
9
|
import "./chunk-KQPDU65K.js";
|
|
10
10
|
import "./chunk-WWFH5GAR.js";
|
|
11
11
|
import "./chunk-MRWR3SIT.js";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
computeUnifiedDiff,
|
|
25
25
|
getToolFingerprint
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=dynamic-context-
|
|
27
|
+
//# sourceMappingURL=dynamic-context-MA5BIJ52.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentTurn,
|
|
3
3
|
runChatTurn
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-CFTT46KH.js";
|
|
5
|
+
import "./chunk-MO3GJIT3.js";
|
|
6
6
|
import "./chunk-ZASSAZ73.js";
|
|
7
7
|
import "./chunk-HAFRPV7I.js";
|
|
8
8
|
import "./chunk-I72ACQ6R.js";
|
|
@@ -10,7 +10,7 @@ import "./chunk-NWO6GRYE.js";
|
|
|
10
10
|
import "./chunk-VKWVPQJ5.js";
|
|
11
11
|
import "./chunk-D3SXT3BL.js";
|
|
12
12
|
import "./chunk-J7GAZGZT.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-IXFEXEUL.js";
|
|
14
14
|
import "./chunk-KQPDU65K.js";
|
|
15
15
|
import "./chunk-XLI6PDJG.js";
|
|
16
16
|
import "./chunk-G5JFKTSR.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
createMessageStartEvent,
|
|
25
25
|
createToolCallEvent,
|
|
26
26
|
createToolResultEvent
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AY37NB76.js";
|
|
28
28
|
import "./chunk-MRWR3SIT.js";
|
|
29
29
|
import "./chunk-KNYPBXPW.js";
|
|
30
30
|
import "./chunk-NLN5LPQ4.js";
|
|
@@ -34,12 +34,12 @@ import "./chunk-3LRYZ7R3.js";
|
|
|
34
34
|
import "./chunk-J2GP3J3X.js";
|
|
35
35
|
import "./chunk-V4IE7HJY.js";
|
|
36
36
|
import "./chunk-YHEQTVFV.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-UIK6GA3P.js";
|
|
38
38
|
import "./chunk-UEOEA6BB.js";
|
|
39
39
|
import "./chunk-GLF65XDS.js";
|
|
40
40
|
import "./chunk-K44MW7JJ.js";
|
|
41
41
|
import "./chunk-4R7G5JB6.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-B56G5OEF.js";
|
|
43
43
|
import "./chunk-CQGTEGKL.js";
|
|
44
44
|
import "./chunk-5WRI5ZAA.js";
|
|
45
45
|
export {
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
runAgentTurn,
|
|
53
53
|
runChatTurn
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=orchestrator-
|
|
55
|
+
//# sourceMappingURL=orchestrator-DHBU7LRB.js.map
|
package/dist/package.json
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
generateSessionNameForSession
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-E2CSSHSI.js";
|
|
6
|
+
import "./chunk-MO3GJIT3.js";
|
|
7
7
|
import "./chunk-ZASSAZ73.js";
|
|
8
8
|
import "./chunk-HAFRPV7I.js";
|
|
9
9
|
import "./chunk-I72ACQ6R.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-27SDWNKL.js";
|
|
21
21
|
import "./chunk-EU3WWTFH.js";
|
|
22
22
|
import "./chunk-WWFH5GAR.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-AY37NB76.js";
|
|
24
24
|
import "./chunk-MRWR3SIT.js";
|
|
25
25
|
import {
|
|
26
26
|
getEventStore
|
|
@@ -32,14 +32,14 @@ import "./chunk-3LRYZ7R3.js";
|
|
|
32
32
|
import "./chunk-J2GP3J3X.js";
|
|
33
33
|
import "./chunk-V4IE7HJY.js";
|
|
34
34
|
import "./chunk-YHEQTVFV.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-UIK6GA3P.js";
|
|
36
36
|
import "./chunk-UEOEA6BB.js";
|
|
37
37
|
import "./chunk-GLF65XDS.js";
|
|
38
38
|
import {
|
|
39
39
|
logger
|
|
40
40
|
} from "./chunk-K44MW7JJ.js";
|
|
41
41
|
import "./chunk-4R7G5JB6.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-B56G5OEF.js";
|
|
43
43
|
import "./chunk-CQGTEGKL.js";
|
|
44
44
|
import "./chunk-5WRI5ZAA.js";
|
|
45
45
|
|
|
@@ -185,7 +185,7 @@ var QueueProcessor = class {
|
|
|
185
185
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
186
186
|
model: llmClient.getModel()
|
|
187
187
|
};
|
|
188
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
188
|
+
const { runChatTurn } = await import("./orchestrator-DHBU7LRB.js");
|
|
189
189
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
190
190
|
sessionManager,
|
|
191
191
|
sessionId,
|
|
@@ -233,4 +233,4 @@ var QueueProcessor = class {
|
|
|
233
233
|
export {
|
|
234
234
|
QueueProcessor
|
|
235
235
|
};
|
|
236
|
-
//# sourceMappingURL=processor-
|
|
236
|
+
//# sourceMappingURL=processor-RC3IBY2J.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Attachment, K as ToolMode, O as ToolResult, M as Message, T as Todo, b as ContextState, d as Criterion, h as Diagnostic, q as MetadataEntry, y as SessionMode, z as SessionPhase, t as Project, B as SessionSummary, w as Session, W as WorkflowExecution } from './types-
|
|
1
|
+
import { A as Attachment, K as ToolMode, O as ToolResult, M as Message, T as Todo, b as ContextState, d as Criterion, h as Diagnostic, q as MetadataEntry, y as SessionMode, z as SessionPhase, t as Project, B as SessionSummary, w as Session, W as WorkflowExecution } from './types-7idXD8Bq.js';
|
|
2
2
|
|
|
3
3
|
type ClientMessageType = 'session.load' | 'context.compact' | 'context.checkDynamic' | 'context.applyDynamic' | 'context.applyDynamic.preview' | 'runner.launch' | 'workflow.exit' | 'path.confirm' | 'ask.answer';
|
|
4
4
|
interface ClientMessage<T = unknown> {
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as ModelConfig } from '../types-
|
|
2
|
-
export { J as ToolCall } from '../types-
|
|
3
|
-
import { L as LLMCompletionRequest, a as LLMCompletionResponse, b as LLMStreamEvent } from '../types-
|
|
4
|
-
export { c as LLMMessage, d as LLMToolDefinition } from '../types-
|
|
1
|
+
import { r as ModelConfig } from '../types-7idXD8Bq.js';
|
|
2
|
+
export { J as ToolCall } from '../types-7idXD8Bq.js';
|
|
3
|
+
import { L as LLMCompletionRequest, a as LLMCompletionResponse, b as LLMStreamEvent } from '../types-DBftgbfl.js';
|
|
4
|
+
export { c as LLMMessage, d as LLMToolDefinition } from '../types-DBftgbfl.js';
|
|
5
5
|
|
|
6
6
|
type ProviderAuthState = 'disconnected' | 'pending' | 'connected' | 'expired' | 'error';
|
|
7
7
|
interface ProviderAuthStatus {
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
detectModel,
|
|
13
13
|
fetchAvailableModelsFromBackend
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-W77HIJGH.js";
|
|
15
15
|
import "./chunk-J2GP3J3X.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VJILJ22N.js";
|
|
17
17
|
import "./chunk-V4IE7HJY.js";
|
|
18
18
|
import "./chunk-YHEQTVFV.js";
|
|
19
19
|
import "./chunk-HNCM3D7Y.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-UIK6GA3P.js";
|
|
21
21
|
import "./chunk-TDHDLDGQ.js";
|
|
22
22
|
import "./chunk-UEOEA6BB.js";
|
|
23
23
|
import "./chunk-GLF65XDS.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
loadGlobalConfig,
|
|
30
30
|
removeProvider,
|
|
31
31
|
saveGlobalConfig
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-B56G5OEF.js";
|
|
33
33
|
import "./chunk-CQGTEGKL.js";
|
|
34
34
|
import "./chunk-5WRI5ZAA.js";
|
|
35
35
|
|
|
@@ -270,7 +270,7 @@ async function runProviderAdd(mode) {
|
|
|
270
270
|
isActive: makeActive
|
|
271
271
|
});
|
|
272
272
|
if (makeActive) {
|
|
273
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
273
|
+
const { setDefaultModelSelection } = await import("./config-3FKJV3KI.js");
|
|
274
274
|
newConfig = setDefaultModelSelection(
|
|
275
275
|
newConfig,
|
|
276
276
|
newConfig.providers[newConfig.providers.length - 1].id,
|
|
@@ -398,4 +398,4 @@ export {
|
|
|
398
398
|
runProviderRemove,
|
|
399
399
|
runProviderUse
|
|
400
400
|
};
|
|
401
|
-
//# sourceMappingURL=provider-
|
|
401
|
+
//# sourceMappingURL=provider-PEJ27FBM.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
fetchAvailableModelsFromBackend,
|
|
4
4
|
fetchModelsWithContext,
|
|
5
5
|
parseDefaultModelSelection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W77HIJGH.js";
|
|
7
7
|
import "./chunk-J2GP3J3X.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VJILJ22N.js";
|
|
9
9
|
import "./chunk-V4IE7HJY.js";
|
|
10
10
|
import "./chunk-YHEQTVFV.js";
|
|
11
11
|
import "./chunk-HNCM3D7Y.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-UIK6GA3P.js";
|
|
13
13
|
import "./chunk-TDHDLDGQ.js";
|
|
14
14
|
import "./chunk-UEOEA6BB.js";
|
|
15
15
|
import "./chunk-GLF65XDS.js";
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
fetchModelsWithContext,
|
|
22
22
|
parseDefaultModelSelection
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=provider-manager-
|
|
24
|
+
//# sourceMappingURL=provider-manager-EJGPSLOZ.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HGEDHHTU.js";
|
|
4
|
+
import "./chunk-C6QW2IDH.js";
|
|
5
5
|
import "./chunk-62QCBNPE.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-E2CSSHSI.js";
|
|
7
|
+
import "./chunk-CFTT46KH.js";
|
|
8
|
+
import "./chunk-MO3GJIT3.js";
|
|
9
9
|
import "./chunk-ZASSAZ73.js";
|
|
10
10
|
import "./chunk-HAFRPV7I.js";
|
|
11
11
|
import "./chunk-I72ACQ6R.js";
|
|
@@ -13,33 +13,33 @@ import "./chunk-NWO6GRYE.js";
|
|
|
13
13
|
import "./chunk-VKWVPQJ5.js";
|
|
14
14
|
import "./chunk-D3SXT3BL.js";
|
|
15
15
|
import "./chunk-J7GAZGZT.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-IXFEXEUL.js";
|
|
17
17
|
import "./chunk-KQPDU65K.js";
|
|
18
18
|
import "./chunk-XLI6PDJG.js";
|
|
19
19
|
import "./chunk-G5JFKTSR.js";
|
|
20
20
|
import "./chunk-27SDWNKL.js";
|
|
21
21
|
import "./chunk-EU3WWTFH.js";
|
|
22
22
|
import "./chunk-WWFH5GAR.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XTKLA4AK.js";
|
|
24
|
+
import "./chunk-AY37NB76.js";
|
|
25
25
|
import "./chunk-MRWR3SIT.js";
|
|
26
26
|
import "./chunk-KNYPBXPW.js";
|
|
27
27
|
import "./chunk-NLN5LPQ4.js";
|
|
28
28
|
import {
|
|
29
29
|
VERSION
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JYHWOFPM.js";
|
|
31
31
|
import "./chunk-O2PLNJIU.js";
|
|
32
32
|
import "./chunk-ZIMGU5ZH.js";
|
|
33
33
|
import {
|
|
34
34
|
loadConfig
|
|
35
35
|
} from "./chunk-3LRYZ7R3.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-W77HIJGH.js";
|
|
37
37
|
import "./chunk-J2GP3J3X.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-VJILJ22N.js";
|
|
39
39
|
import "./chunk-V4IE7HJY.js";
|
|
40
40
|
import "./chunk-YHEQTVFV.js";
|
|
41
41
|
import "./chunk-HNCM3D7Y.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-UIK6GA3P.js";
|
|
43
43
|
import "./chunk-TDHDLDGQ.js";
|
|
44
44
|
import "./chunk-UEOEA6BB.js";
|
|
45
45
|
import "./chunk-GLF65XDS.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
getActiveProvider,
|
|
53
53
|
getDefaultModel,
|
|
54
54
|
loadGlobalConfig
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-B56G5OEF.js";
|
|
56
56
|
import {
|
|
57
57
|
ensureDataDirExists,
|
|
58
58
|
getDatabasePath,
|
|
@@ -219,4 +219,4 @@ async function runServe(options) {
|
|
|
219
219
|
export {
|
|
220
220
|
runServe
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=serve-
|
|
222
|
+
//# sourceMappingURL=serve-H7HR7BWI.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as Diagnostic, u as Provider, r as ModelConfig, w as Session, B as SessionSummary, t as Project, y as SessionMode, z as SessionPhase, W as WorkflowExecution, M as Message, d as Criterion, f as CriterionStatus, q as MetadataEntry, A as Attachment, b as ContextState, D as DangerLevel$1, H as StatsIdentity, O as ToolResult, a as Config } from '../types-
|
|
1
|
+
import { h as Diagnostic, u as Provider, r as ModelConfig, w as Session, B as SessionSummary, t as Project, y as SessionMode, z as SessionPhase, W as WorkflowExecution, M as Message, d as Criterion, f as CriterionStatus, q as MetadataEntry, A as Attachment, b as ContextState, D as DangerLevel$1, H as StatsIdentity, O as ToolResult, a as Config } from '../types-7idXD8Bq.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
|
-
import { e as LLMClient, d as LLMToolDefinition } from '../types-
|
|
4
|
-
import { a2 as QueuedMessage, a3 as ServerMessage } from '../protocol-
|
|
3
|
+
import { e as LLMClient, d as LLMToolDefinition } from '../types-DBftgbfl.js';
|
|
4
|
+
import { a2 as QueuedMessage, a3 as ServerMessage } from '../protocol-BXgdUKgZ.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Model-specific configuration profiles.
|