openfox 2.0.138 → 2.0.140
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 +27 -0
- package/dist/CHANGELOG.md +27 -0
- package/dist/{backend-24FTDSHF.js → backend-EPISSWLB.js} +2 -2
- package/dist/{chat-handler-AUB5HDQD.js → chat-handler-JWRCPG72.js} +24 -24
- package/dist/{chunk-MOYWDP73.js → chunk-46Q2SHGJ.js} +2 -2
- package/dist/{chunk-BHVR2YS5.js → chunk-4F4ARGAM.js} +2 -2
- package/dist/{chunk-BENMBAU2.js → chunk-5EKBZXCU.js} +7 -7
- package/dist/{chunk-U7XCK7WL.js → chunk-5F7LNEEP.js} +4 -4
- package/dist/{chunk-N3PANDLT.js → chunk-5MGCTRKM.js} +21 -19
- package/dist/{chunk-5CZPHAHN.js → chunk-66XJC5TA.js} +10 -10
- package/dist/chunk-6RYTDRUR.js +7 -0
- package/dist/{chunk-X4PVR6AW.js → chunk-7OHSAZLF.js} +2 -2
- package/dist/{chunk-MMGHIPBU.js → chunk-AE2IBEUH.js} +2 -2
- package/dist/{chunk-Q33DL67W.js → chunk-CRJ5J7U5.js} +2 -2
- package/dist/{chunk-N5JKVNLH.js → chunk-EE6VFEE6.js} +3 -3
- package/dist/{chunk-QUAEH3MP.js → chunk-EMXMTCSY.js} +3 -1
- package/dist/{chunk-DG2YSWMC.js → chunk-FIEFBRTQ.js} +2 -2
- package/dist/{chunk-4LLGI372.js → chunk-GKRYQ56N.js} +34 -3
- package/dist/{chunk-2Q4THMD7.js → chunk-GZJRXVVJ.js} +13 -13
- package/dist/{chunk-G5GUQKLS.js → chunk-H7YL7PH3.js} +8 -4
- package/dist/{chunk-2KCREKHC.js → chunk-IFARTQOK.js} +18 -18
- package/dist/{chunk-4SBVW4UH.js → chunk-JLHYB445.js} +2 -2
- package/dist/{chunk-2OO46UAW.js → chunk-JTR3PC5I.js} +5 -5
- package/dist/{chunk-XS2QQERB.js → chunk-K227HOLU.js} +8 -7
- package/dist/{chunk-76C2PVOC.js → chunk-MAUQ6AW4.js} +6 -6
- package/dist/{chunk-HEYU7FAY.js → chunk-OA7KBQ2O.js} +7 -5
- package/dist/{chunk-HI25RCRW.js → chunk-QIGVYXMH.js} +91 -91
- package/dist/{chunk-DBCWILV3.js → chunk-RG326HS4.js} +3 -3
- package/dist/{chunk-64YDOCQR.js → chunk-SSHXYKW3.js} +34 -9
- package/dist/{chunk-QBWJCO5K.js → chunk-TJOKDC34.js} +3 -3
- package/dist/{chunk-SAGDTQXD.js → chunk-UA2ATO3B.js} +3 -3
- package/dist/{chunk-AKWJMMEJ.js → chunk-VLQ6BMU7.js} +7 -2
- package/dist/{chunk-RJ2GRUVF.js → chunk-WD354R3H.js} +4 -4
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-MVI3J7SN.js → client-KJS7QIIV.js} +5 -5
- package/dist/{compactor-KDTY4ERE.js → compactor-UREBHSZQ.js} +11 -11
- package/dist/{describe-image-AU6KBSWA.js → describe-image-TQOD52IC.js} +10 -10
- package/dist/{dynamic-context-SKHOUP4T.js → dynamic-context-KGSZ7TRQ.js} +10 -10
- package/dist/{events-ADE2KEHI.js → events-ZLP5V2YU.js} +6 -6
- package/dist/{export-import-SC3UW22Z.js → export-import-CJT33IO6.js} +7 -7
- package/dist/{folding-CM63AVSB.js → folding-BXMVJIFF.js} +4 -4
- package/dist/{http-client-C6UYWVWZ.js → http-client-JVJ43TBY.js} +3 -3
- package/dist/{launch-PTMPNZEN.js → launch-7NKOCT5A.js} +24 -24
- package/dist/{manager-FSPRJCYT.js → manager-JZNNVDYR.js} +4 -4
- package/dist/{orchestrator-KRHMAVBN.js → orchestrator-VSVDUGBT.js} +23 -23
- package/dist/package.json +1 -1
- package/dist/{path-security-YP2MRJNS.js → path-security-V3XALT5E.js} +8 -8
- package/dist/{platform-KPKYBU54.js → platform-DBPLSLE4.js} +3 -3
- package/dist/{processor-QZOGF5ES.js → processor-ACZM62WO.js} +23 -23
- package/dist/provider/index.d.ts +2 -2
- package/dist/{provider-SOC6Z25R.js → provider-7LNTLWRB.js} +6 -6
- package/dist/{provider-manager-Y53SVVQ3.js → provider-manager-TV5I5YJH.js} +6 -6
- package/dist/{registry-FMDMGIUB.js → registry-PVJAAL2Y.js} +3 -3
- package/dist/{serve-LVDF4XLG.js → serve-36D5HXWE.js} +29 -29
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +28 -28
- package/dist/{server-AIRQGHHR.js → server-R3J26IP2.js} +27 -27
- package/dist/{service-NKLQH647.js → service-7QKWUNU4.js} +8 -8
- package/dist/{session-overrides-ANQBKV74.js → session-overrides-7OPGV7CQ.js} +5 -5
- package/dist/{sessions-GLYACE5R.js → sessions-VHS47DHO.js} +4 -4
- package/dist/{settings-WH6BVQCP.js → settings-HCSHADP5.js} +2 -2
- package/dist/{tasks-GPM3JAE6.js → tasks-E7EG7344.js} +8 -8
- package/dist/{tools-NIPKV4YY.js → tools-AY6XEVJK.js} +21 -21
- package/dist/{types-CmiWoQ7p.d.ts → types-ofYNpiqi.d.ts} +2 -0
- package/dist/{update-Y5QXN3FK.js → update-JHFZMW3T.js} +2 -2
- package/dist/web/assets/index-Bm0_ekvt.js +313 -0
- package/dist/web/assets/{index-C1oW6oq0.css → index-BtkaULxJ.css} +1 -1
- package/dist/web/index.html +6 -3
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OU7WD35E.js +0 -7
- package/dist/web/assets/index-CTAslWsi.js +0 -313
|
@@ -3,49 +3,49 @@ import {
|
|
|
3
3
|
checkToolChangesAndInject,
|
|
4
4
|
computeDynamicContextHash,
|
|
5
5
|
getToolFingerprint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5EKBZXCU.js";
|
|
7
7
|
import {
|
|
8
8
|
createAssemblyResult,
|
|
9
9
|
getConversationMessages,
|
|
10
10
|
getToolRegistryForAgent,
|
|
11
11
|
processEventsForConversation,
|
|
12
12
|
runTopLevelAgentLoop
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5MGCTRKM.js";
|
|
14
14
|
import {
|
|
15
15
|
getAllInstructions,
|
|
16
16
|
getEnabledSkillMetadata
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CRJ5J7U5.js";
|
|
18
18
|
import {
|
|
19
19
|
serverT
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JLHYB445.js";
|
|
21
21
|
import {
|
|
22
22
|
TurnMetrics,
|
|
23
23
|
createChatDoneEvent,
|
|
24
24
|
createMessageStartEvent
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OA7KBQ2O.js";
|
|
26
26
|
import {
|
|
27
27
|
buildAgentReminder,
|
|
28
28
|
buildAgentSmallReminder,
|
|
29
29
|
buildTopLevelSystemPrompt
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GKRYQ56N.js";
|
|
31
31
|
import {
|
|
32
32
|
PathAccessDeniedError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RG326HS4.js";
|
|
34
34
|
import {
|
|
35
35
|
getCurrentContextWindowId,
|
|
36
36
|
getCurrentWindowMessageOptions,
|
|
37
37
|
getEventStore
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-JTR3PC5I.js";
|
|
39
39
|
import {
|
|
40
40
|
buildSnapshotFromSessionState
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AE2IBEUH.js";
|
|
42
42
|
import {
|
|
43
43
|
findAgentById,
|
|
44
44
|
getRuntimeConfig,
|
|
45
45
|
getSubAgents,
|
|
46
46
|
loadAllAgentsDefault,
|
|
47
47
|
resolveDefaultAgentId
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-4F4ARGAM.js";
|
|
49
49
|
import {
|
|
50
50
|
logger
|
|
51
51
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
|
|
56
56
|
// src/server/chat/orchestrator.ts
|
|
57
57
|
async function buildRetryPatterns() {
|
|
58
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
58
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-HCSHADP5.js");
|
|
59
59
|
const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
|
|
60
60
|
if (!raw) {
|
|
61
61
|
const oldXmlProtection = getSetting("llm.disableXmlProtection");
|
|
@@ -355,7 +355,7 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
|
|
|
355
355
|
getConversationMessages: buildGetConversationMessages(options.sessionId, resolveAgentClient, append),
|
|
356
356
|
injectAgentReminder: () => injectAgentReminder(options.sessionId, agentDef),
|
|
357
357
|
rebuildCachedContext: async () => {
|
|
358
|
-
const { applyDynamicContext } = await import("./dynamic-context-
|
|
358
|
+
const { applyDynamicContext } = await import("./dynamic-context-KGSZ7TRQ.js");
|
|
359
359
|
await applyDynamicContext(options.sessionManager, options.sessionId, agentLlmClient.getModel());
|
|
360
360
|
},
|
|
361
361
|
...options.initialCompacting ? { initialCompacting: true } : {},
|
|
@@ -385,4 +385,4 @@ export {
|
|
|
385
385
|
runChatTurn,
|
|
386
386
|
runAgentTurn
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=chunk-
|
|
388
|
+
//# sourceMappingURL=chunk-GZJRXVVJ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-OA2FURC3.js";
|
|
5
5
|
import {
|
|
6
6
|
createLLMClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SSHXYKW3.js";
|
|
8
8
|
import {
|
|
9
9
|
getModelProfile
|
|
10
10
|
} from "./chunk-TS5WKTFB.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
detectBackendFromUrl,
|
|
13
13
|
detectProviderDefaultsFromUrl,
|
|
14
14
|
getBackendCapabilities
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VLQ6BMU7.js";
|
|
16
16
|
import {
|
|
17
17
|
buildModelsUrl,
|
|
18
18
|
ensureVersionPrefix,
|
|
@@ -467,6 +467,9 @@ function createProviderManager(config, options = {}) {
|
|
|
467
467
|
if (provider.thinkingField) return provider.thinkingField;
|
|
468
468
|
return detectProviderDefaultsFromUrl(provider.url)?.thinkingField;
|
|
469
469
|
}
|
|
470
|
+
function resolveSendReasoningInMessages(provider) {
|
|
471
|
+
return detectProviderDefaultsFromUrl(provider.url)?.sendReasoningInMessages ?? provider.sendReasoningInMessages;
|
|
472
|
+
}
|
|
470
473
|
function createConfigForProvider(provider, model, reasoningEffort) {
|
|
471
474
|
const modelThinking = resolveModelThinkingConfig(provider, model, reasoningEffort);
|
|
472
475
|
const configureModel = provider.models.find((m) => m.id === model);
|
|
@@ -477,6 +480,7 @@ function createProviderManager(config, options = {}) {
|
|
|
477
480
|
model
|
|
478
481
|
);
|
|
479
482
|
const thinkingField = resolveThinkingField(provider);
|
|
483
|
+
const sendReasoningInMessages = resolveSendReasoningInMessages(provider);
|
|
480
484
|
return {
|
|
481
485
|
...config,
|
|
482
486
|
llm: {
|
|
@@ -486,7 +490,7 @@ function createProviderManager(config, options = {}) {
|
|
|
486
490
|
backend: resolveBackend(provider),
|
|
487
491
|
...provider.apiKey && { apiKey: provider.apiKey },
|
|
488
492
|
...thinkingField ? { thinkingField } : {},
|
|
489
|
-
...
|
|
493
|
+
...sendReasoningInMessages !== void 0 ? { sendReasoningInMessages } : {},
|
|
490
494
|
...modelThinking.reasoningEffort && !send.suppressEffort && { reasoningEffort: modelThinking.reasoningEffort }
|
|
491
495
|
}
|
|
492
496
|
};
|
|
@@ -916,4 +920,4 @@ export {
|
|
|
916
920
|
parseDefaultModelSelection,
|
|
917
921
|
createProviderManager
|
|
918
922
|
};
|
|
919
|
-
//# sourceMappingURL=chunk-
|
|
923
|
+
//# sourceMappingURL=chunk-H7YL7PH3.js.map
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
generateSessionNameForSession,
|
|
3
3
|
getSessionMessageCount,
|
|
4
4
|
needsNameGeneration
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-K227HOLU.js";
|
|
6
6
|
import {
|
|
7
7
|
launchWorkflowRun
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-66XJC5TA.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GZJRXVVJ.js";
|
|
12
12
|
import {
|
|
13
13
|
applyDynamicContext,
|
|
14
14
|
computeSessionHash,
|
|
15
15
|
computeUnifiedDiff
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5EKBZXCU.js";
|
|
17
17
|
import {
|
|
18
18
|
devServerManager
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5MGCTRKM.js";
|
|
20
20
|
import {
|
|
21
21
|
gitSpawnEnv
|
|
22
22
|
} from "./chunk-J7GAZGZT.js";
|
|
23
23
|
import {
|
|
24
24
|
serverT
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JLHYB445.js";
|
|
26
26
|
import {
|
|
27
27
|
appendCompactionPrompt
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5F7LNEEP.js";
|
|
29
29
|
import {
|
|
30
30
|
hasRecentLLMFailure,
|
|
31
31
|
interruptLLMRetryWait
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OA7KBQ2O.js";
|
|
33
33
|
import {
|
|
34
34
|
onProcessEvent
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UA2ATO3B.js";
|
|
36
36
|
import {
|
|
37
37
|
killProcessTree
|
|
38
38
|
} from "./chunk-I72ACQ6R.js";
|
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
combineEventsWithSnapshot,
|
|
45
45
|
getEventStore
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-JTR3PC5I.js";
|
|
47
47
|
import {
|
|
48
48
|
buildMessagesFromStoredEvents,
|
|
49
49
|
foldPendingConfirmations
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-AE2IBEUH.js";
|
|
51
51
|
import {
|
|
52
52
|
getRuntimeConfig
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4F4ARGAM.js";
|
|
54
54
|
import {
|
|
55
55
|
createChatErrorMessage,
|
|
56
56
|
createChatMessageMessage,
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
} from "./chunk-OVAHNEFG.js";
|
|
70
70
|
import {
|
|
71
71
|
getPlatformShell
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-46Q2SHGJ.js";
|
|
73
73
|
import {
|
|
74
74
|
getMaxVisibleItems
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-EMXMTCSY.js";
|
|
76
76
|
import {
|
|
77
77
|
logger
|
|
78
78
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1350,8 +1350,8 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1350
1350
|
}
|
|
1351
1351
|
const session = sessionManager.requireSession(sessionId);
|
|
1352
1352
|
try {
|
|
1353
|
-
const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-
|
|
1354
|
-
const allAgents = await import("./registry-
|
|
1353
|
+
const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-KGSZ7TRQ.js");
|
|
1354
|
+
const allAgents = await import("./registry-PVJAAL2Y.js");
|
|
1355
1355
|
const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
|
|
1356
1356
|
const modelName = session.providerModel ?? _providerManager?.getCurrentModel();
|
|
1357
1357
|
const {
|
|
@@ -1362,7 +1362,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1362
1362
|
const oldCached = sessionManager.getCachedPrompt(sessionId);
|
|
1363
1363
|
const oldPrompt = oldCached?.systemPrompt;
|
|
1364
1364
|
const diff = oldPrompt ? computeUnifiedDiff(oldPrompt, newPrompt) : [];
|
|
1365
|
-
const { getToolRegistryForAgent } = await import("./tools-
|
|
1365
|
+
const { getToolRegistryForAgent } = await import("./tools-AY6XEVJK.js");
|
|
1366
1366
|
const unfilteredTools = getToolRegistryForAgent(agentDef).definitions;
|
|
1367
1367
|
const toolDiff = computePreviewToolDiff(oldCached?.tools, unfilteredTools, newTools);
|
|
1368
1368
|
send({
|
|
@@ -1735,4 +1735,4 @@ export {
|
|
|
1735
1735
|
signalMcpReady,
|
|
1736
1736
|
createWebSocketServer
|
|
1737
1737
|
};
|
|
1738
|
-
//# sourceMappingURL=chunk-
|
|
1738
|
+
//# sourceMappingURL=chunk-IFARTQOK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EMXMTCSY.js";
|
|
5
5
|
import {
|
|
6
6
|
getLocale,
|
|
7
7
|
setLocale,
|
|
@@ -21,4 +21,4 @@ function serverT(tx, vars) {
|
|
|
21
21
|
export {
|
|
22
22
|
serverT
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-JLHYB445.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
foldSessionState,
|
|
7
7
|
spreadOptionalMessageFields,
|
|
8
8
|
trimSnapshotStreamingOutput
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AE2IBEUH.js";
|
|
10
10
|
import {
|
|
11
11
|
updateSessionMessageCount
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7OHSAZLF.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4F4ARGAM.js";
|
|
16
16
|
import {
|
|
17
17
|
SETTINGS_KEYS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EMXMTCSY.js";
|
|
19
19
|
import {
|
|
20
20
|
logger
|
|
21
21
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1489,4 +1489,4 @@ export {
|
|
|
1489
1489
|
truncateSessionMessages,
|
|
1490
1490
|
getRecentUserPromptsForSession
|
|
1491
1491
|
};
|
|
1492
|
-
//# sourceMappingURL=chunk-
|
|
1492
|
+
//# sourceMappingURL=chunk-JTR3PC5I.js.map
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
combineEventsWithSnapshot,
|
|
6
6
|
getEventStore
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JTR3PC5I.js";
|
|
8
8
|
import {
|
|
9
9
|
buildMessagesFromStoredEvents,
|
|
10
10
|
foldPendingConfirmations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AE2IBEUH.js";
|
|
12
12
|
import {
|
|
13
13
|
updateSessionMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7OHSAZLF.js";
|
|
15
15
|
import {
|
|
16
16
|
getRuntimeConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4F4ARGAM.js";
|
|
18
18
|
import {
|
|
19
19
|
createContextStateMessage,
|
|
20
20
|
createSessionStateMessage
|
|
21
21
|
} from "./chunk-OVAHNEFG.js";
|
|
22
22
|
import {
|
|
23
23
|
getMaxVisibleItems
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EMXMTCSY.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
27
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -162,7 +162,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
162
162
|
client = deps.getLLMClient();
|
|
163
163
|
client.setModel(providerConfig.model);
|
|
164
164
|
} else if (providerConfig) {
|
|
165
|
-
const { createLLMClient } = await import("./client-
|
|
165
|
+
const { createLLMClient } = await import("./client-KJS7QIIV.js");
|
|
166
166
|
client = createLLMClient(
|
|
167
167
|
{
|
|
168
168
|
llm: {
|
|
@@ -182,6 +182,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
182
182
|
const timeoutSignal = AbortSignal.timeout(12e4);
|
|
183
183
|
const composedSignal = signal ? AbortSignal.any([timeoutSignal, signal]) : timeoutSignal;
|
|
184
184
|
const response = await client.complete({
|
|
185
|
+
sessionId,
|
|
185
186
|
messages: [{ role: "user", content: prompt }],
|
|
186
187
|
tools: [],
|
|
187
188
|
...modelSettings ? { modelSettings } : {},
|
|
@@ -216,4 +217,4 @@ export {
|
|
|
216
217
|
needsNameGeneration,
|
|
217
218
|
generateSessionNameForSession
|
|
218
219
|
};
|
|
219
|
-
//# sourceMappingURL=chunk-
|
|
220
|
+
//# sourceMappingURL=chunk-K227HOLU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JLHYB445.js";
|
|
4
4
|
import {
|
|
5
5
|
AskUserInterrupt
|
|
6
6
|
} from "./chunk-V5AC2TV7.js";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
PathAccessDeniedError,
|
|
9
9
|
registerPathConfirmation,
|
|
10
10
|
requestPathAccess
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RG326HS4.js";
|
|
12
12
|
import {
|
|
13
13
|
getEventStore
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JTR3PC5I.js";
|
|
15
15
|
import {
|
|
16
16
|
getRuntimeConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4F4ARGAM.js";
|
|
18
18
|
import {
|
|
19
19
|
createChatPathConfirmationMessage
|
|
20
20
|
} from "./chunk-OVAHNEFG.js";
|
|
@@ -48,7 +48,7 @@ async function requestUserConfirmation(context, toolLabel, desc) {
|
|
|
48
48
|
if (context.dangerLevel === "dangerous") return Promise.resolve(true);
|
|
49
49
|
if (toolLabel === "workspace" || toolLabel === "command") {
|
|
50
50
|
try {
|
|
51
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
51
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-HCSHADP5.js");
|
|
52
52
|
if (getSetting(SETTINGS_KEYS.CONFIRM_ON_WORKSPACE_ACTIONS) !== "true") {
|
|
53
53
|
return Promise.resolve(true);
|
|
54
54
|
}
|
|
@@ -1152,4 +1152,4 @@ export {
|
|
|
1152
1152
|
isDescribeImageEligible,
|
|
1153
1153
|
describeImageTool
|
|
1154
1154
|
};
|
|
1155
|
-
//# sourceMappingURL=chunk-
|
|
1155
|
+
//# sourceMappingURL=chunk-MAUQ6AW4.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-TS5WKTFB.js";
|
|
7
7
|
import {
|
|
8
8
|
getBackendCapabilities
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VLQ6BMU7.js";
|
|
10
10
|
import {
|
|
11
11
|
buildModelParams
|
|
12
12
|
} from "./chunk-QMU3ZY2C.js";
|
|
@@ -39,14 +39,15 @@ function matchRetryPatterns(content, thinking, patterns) {
|
|
|
39
39
|
|
|
40
40
|
// src/server/chat/stream-utils.ts
|
|
41
41
|
function buildStreamRequestObject(params) {
|
|
42
|
-
const { messages, tools, toolChoice, reasoningEffort, signal, modelSettings } = params;
|
|
42
|
+
const { messages, tools, toolChoice, reasoningEffort, signal, modelSettings, sessionId } = params;
|
|
43
43
|
return {
|
|
44
44
|
messages,
|
|
45
45
|
...tools && { tools },
|
|
46
46
|
...toolChoice && { toolChoice },
|
|
47
47
|
...reasoningEffort && { reasoningEffort },
|
|
48
48
|
...signal && { signal },
|
|
49
|
-
...modelSettings && { modelSettings }
|
|
49
|
+
...modelSettings && { modelSettings },
|
|
50
|
+
...sessionId && { sessionId }
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
function buildStreamRequest(client, options) {
|
|
@@ -140,7 +141,8 @@ async function* streamLLMPure(options) {
|
|
|
140
141
|
toolChoice,
|
|
141
142
|
reasoningEffort,
|
|
142
143
|
signal: combinedSignal,
|
|
143
|
-
modelSettings: options.modelSettings
|
|
144
|
+
modelSettings: options.modelSettings,
|
|
145
|
+
sessionId: options.sessionId
|
|
144
146
|
});
|
|
145
147
|
const seenToolIndices = /* @__PURE__ */ new Set();
|
|
146
148
|
const toolNames = /* @__PURE__ */ new Map();
|
|
@@ -518,4 +520,4 @@ export {
|
|
|
518
520
|
createChatDoneEvent,
|
|
519
521
|
consumeStreamGenerator
|
|
520
522
|
};
|
|
521
|
-
//# sourceMappingURL=chunk-
|
|
523
|
+
//# sourceMappingURL=chunk-OA7KBQ2O.js.map
|