openfox 1.6.43 → 1.6.45
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-U2TKRF6E.js → auto-compaction-2AI46SNC.js} +9 -9
- package/dist/{chat-handler-TJWYGO3G.js → chat-handler-ITVOWLJR.js} +13 -13
- package/dist/{chunk-P6GUT2QQ.js → chunk-4DNPYFL4.js} +3 -3
- package/dist/{chunk-Y6HBEACI.js → chunk-53DUI4MS.js} +1 -1
- package/dist/{chunk-BHSTSA7U.js → chunk-BF7JQWEL.js} +4 -4
- package/dist/{chunk-KSASIV4B.js → chunk-F2VWCCMC.js} +5 -5
- package/dist/{chunk-NBBX64KC.js → chunk-FBUTQPJ6.js} +5 -4
- package/dist/{chunk-LIMBYVO4.js → chunk-G6JKXYFE.js} +1 -58
- package/dist/{chunk-O2BOWZKC.js → chunk-GQZGIMJO.js} +4 -2
- package/dist/{chunk-QFOT3J6I.js → chunk-GY4TRYOG.js} +10 -8
- package/dist/{chunk-DZHZ3UUR.js → chunk-HSSXBW6N.js} +2 -14
- package/dist/{chunk-PYBB34ZK.js → chunk-HYIQFRYJ.js} +9 -6
- package/dist/{chunk-TFG2XU3K.js → chunk-KBEOYUA3.js} +6 -6
- package/dist/{chunk-S3U4EG6C.js → chunk-RB576RLK.js} +72 -111
- package/dist/{chunk-VCVHYZZS.js → chunk-SMK6HIR5.js} +40 -21
- package/dist/{chunk-CJNQGEYG.js → chunk-VCALN543.js} +2 -2
- package/dist/{chunk-D4ZLSV6P.js → chunk-WNZIUQ2L.js} +8 -6
- package/dist/{chunk-YVQ6DP5Y.js → chunk-ZSQFDQPH.js} +5 -23
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-ACVEHBKG.js → config-3TU54V4X.js} +5 -5
- package/dist/{events-FHPSSSE4.js → events-DFDD4BRS.js} +3 -7
- package/dist/{folding-NEZWWL7K.js → folding-JSQFCDZO.js} +2 -4
- package/dist/{orchestrator-M2XGDN3F.js → orchestrator-7ZXXNEEC.js} +14 -10
- package/dist/package.json +1 -1
- package/dist/{processor-ISY5OU5E.js → processor-6CITCUJR.js} +12 -11
- package/dist/{protocol-Ct6VfOIJ.d.ts → protocol-B4lesmg5.d.ts} +8 -15
- package/dist/{protocol-YNVBDNL7.js → protocol-IWXXOGWM.js} +3 -7
- package/dist/{provider-RLQMVV2Z.js → provider-J4G7XBDP.js} +7 -7
- package/dist/{serve-5EPE72XL.js → serve-BCRWEL5U.js} +15 -15
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +13 -13
- package/dist/{settings-TWK27GYE.js → settings-NI4ITGV6.js} +2 -2
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-EVB6JNKF.js → tools-K7TJWICQ.js} +9 -9
- package/dist/{vision-fallback-QJ26DCEF.js → vision-fallback-HXPTLQHN.js} +2 -2
- package/dist/web/assets/{index-BqUNWNpD.js → index-Bl-fM2P0.js} +55 -55
- package/dist/web/assets/{index-CuARFUOg.css → index-DzPKzXc0.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
maybeAutoCompactContext,
|
|
3
3
|
performManualContextCompaction,
|
|
4
4
|
resolveCompactionStatsIdentity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GY4TRYOG.js";
|
|
6
6
|
import "./chunk-NBU6KIOD.js";
|
|
7
7
|
import "./chunk-574HZVLE.js";
|
|
8
8
|
import "./chunk-7JPKRM6M.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WNZIUQ2L.js";
|
|
10
|
+
import "./chunk-ZSQFDQPH.js";
|
|
11
|
+
import "./chunk-G6JKXYFE.js";
|
|
12
|
+
import "./chunk-HSSXBW6N.js";
|
|
13
13
|
import "./chunk-22CTURMH.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-GQZGIMJO.js";
|
|
15
15
|
import "./chunk-BLNFJ22S.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-53DUI4MS.js";
|
|
17
17
|
import "./chunk-R4HADRYO.js";
|
|
18
18
|
import "./chunk-TVQOONDR.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-VCALN543.js";
|
|
20
20
|
import "./chunk-PNBH3RAX.js";
|
|
21
21
|
export {
|
|
22
22
|
maybeAutoCompactContext,
|
|
23
23
|
performManualContextCompaction,
|
|
24
24
|
resolveCompactionStatsIdentity
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=auto-compaction-
|
|
26
|
+
//# sourceMappingURL=auto-compaction-2AI46SNC.js.map
|
|
@@ -2,36 +2,36 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
getSessionMessageCount
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FBUTQPJ6.js";
|
|
6
6
|
import {
|
|
7
7
|
applyGeneratedSessionName,
|
|
8
8
|
generateSessionName,
|
|
9
9
|
needsNameGenerationCheck
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BF7JQWEL.js";
|
|
11
11
|
import {
|
|
12
12
|
runChatTurn
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-SMK6HIR5.js";
|
|
14
|
+
import "./chunk-GY4TRYOG.js";
|
|
15
15
|
import "./chunk-NBU6KIOD.js";
|
|
16
16
|
import "./chunk-574HZVLE.js";
|
|
17
17
|
import "./chunk-7JPKRM6M.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-WNZIUQ2L.js";
|
|
19
19
|
import {
|
|
20
20
|
getEventStore
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-ZSQFDQPH.js";
|
|
22
|
+
import "./chunk-G6JKXYFE.js";
|
|
23
23
|
import {
|
|
24
24
|
createChatMessageMessage,
|
|
25
25
|
createPhaseChangedMessage,
|
|
26
26
|
createSessionRunningMessage
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HSSXBW6N.js";
|
|
28
28
|
import "./chunk-22CTURMH.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-GQZGIMJO.js";
|
|
30
30
|
import "./chunk-BLNFJ22S.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-53DUI4MS.js";
|
|
32
32
|
import "./chunk-R4HADRYO.js";
|
|
33
33
|
import "./chunk-TVQOONDR.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-VCALN543.js";
|
|
35
35
|
import {
|
|
36
36
|
logger
|
|
37
37
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -62,7 +62,7 @@ async function startChatSession(sessionId, content, deps, options) {
|
|
|
62
62
|
sessionManager.setRunning(sessionId, true);
|
|
63
63
|
broadcastForSession(sessionId, createSessionRunningMessage(true));
|
|
64
64
|
try {
|
|
65
|
-
const { maybeAutoCompactContext } = await import("./auto-compaction-
|
|
65
|
+
const { maybeAutoCompactContext } = await import("./auto-compaction-2AI46SNC.js");
|
|
66
66
|
await maybeAutoCompactContext({
|
|
67
67
|
sessionManager,
|
|
68
68
|
sessionId,
|
|
@@ -171,4 +171,4 @@ export {
|
|
|
171
171
|
startChatSession,
|
|
172
172
|
stopSessionExecution
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chat-handler-
|
|
174
|
+
//# sourceMappingURL=chat-handler-ITVOWLJR.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectModel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F2VWCCMC.js";
|
|
4
4
|
import {
|
|
5
5
|
detectBackend
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WNZIUQ2L.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfigPath
|
|
9
9
|
} from "./chunk-R4HADRYO.js";
|
|
@@ -386,4 +386,4 @@ export {
|
|
|
386
386
|
activateProvider,
|
|
387
387
|
mergeConfigs
|
|
388
388
|
};
|
|
389
|
-
//# sourceMappingURL=chunk-
|
|
389
|
+
//# sourceMappingURL=chunk-4DNPYFL4.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateSessionMetadata
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZSQFDQPH.js";
|
|
4
4
|
import {
|
|
5
5
|
buildMessagesFromStoredEvents,
|
|
6
6
|
foldPendingConfirmations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G6JKXYFE.js";
|
|
8
8
|
import {
|
|
9
9
|
createSessionStateMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HSSXBW6N.js";
|
|
11
11
|
import {
|
|
12
12
|
logger
|
|
13
13
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
needsNameGenerationCheck,
|
|
109
109
|
applyGeneratedSessionName
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-BF7JQWEL.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
getBackendCapabilities,
|
|
6
6
|
getModelProfile,
|
|
7
7
|
mapFinishReason
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WNZIUQ2L.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureVisionFallbackConfigLoaded
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VCALN543.js";
|
|
12
12
|
import {
|
|
13
13
|
logger
|
|
14
14
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -191,7 +191,7 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
191
191
|
try {
|
|
192
192
|
const shouldDisableThinking = disableThinking || request.disableThinking === true;
|
|
193
193
|
await ensureVisionFallbackConfigLoaded();
|
|
194
|
-
const { isVisionFallbackEnabled } = await import("./vision-fallback-
|
|
194
|
+
const { isVisionFallbackEnabled } = await import("./vision-fallback-HXPTLQHN.js");
|
|
195
195
|
const paramsOptions = {
|
|
196
196
|
model,
|
|
197
197
|
request,
|
|
@@ -269,7 +269,7 @@ function createLLMClient(config, initialBackend = "unknown") {
|
|
|
269
269
|
});
|
|
270
270
|
try {
|
|
271
271
|
await ensureVisionFallbackConfigLoaded();
|
|
272
|
-
const { isVisionFallbackEnabled } = await import("./vision-fallback-
|
|
272
|
+
const { isVisionFallbackEnabled } = await import("./vision-fallback-HXPTLQHN.js");
|
|
273
273
|
const shouldDisableThinking = disableThinking || request.disableThinking === true;
|
|
274
274
|
const createParams = await buildStreamingCreateParams({
|
|
275
275
|
model,
|
|
@@ -483,4 +483,4 @@ export {
|
|
|
483
483
|
setLlmStatus,
|
|
484
484
|
clearModelCache
|
|
485
485
|
};
|
|
486
|
-
//# sourceMappingURL=chunk-
|
|
486
|
+
//# sourceMappingURL=chunk-F2VWCCMC.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEventStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZSQFDQPH.js";
|
|
4
4
|
import {
|
|
5
5
|
createContextStateMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HSSXBW6N.js";
|
|
7
7
|
|
|
8
8
|
// src/server/utils/session-utils.ts
|
|
9
9
|
function getSessionMessageCount(sessionId) {
|
|
@@ -32,7 +32,8 @@ function buildRunChatTurnParams(params) {
|
|
|
32
32
|
llmClient: params.llmClient,
|
|
33
33
|
signal: params.signal,
|
|
34
34
|
onMessage: params.onMessage,
|
|
35
|
-
...params.statsIdentity ? { statsIdentity: params.statsIdentity } : {}
|
|
35
|
+
...params.statsIdentity ? { statsIdentity: params.statsIdentity } : {},
|
|
36
|
+
...params.agentId ? { agentId: params.agentId } : {}
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -41,4 +42,4 @@ export {
|
|
|
41
42
|
finalizeTurnCompletion,
|
|
42
43
|
buildRunChatTurnParams
|
|
43
44
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-FBUTQPJ6.js.map
|
|
@@ -151,7 +151,6 @@ function applyEvents(initialMessages, events, options) {
|
|
|
151
151
|
case "session.initialized":
|
|
152
152
|
case "turn.snapshot":
|
|
153
153
|
case "phase.changed":
|
|
154
|
-
case "mode.changed":
|
|
155
154
|
case "running.changed":
|
|
156
155
|
case "criteria.set":
|
|
157
156
|
case "criterion.updated":
|
|
@@ -501,16 +500,6 @@ function foldContextState(events, initialWindowId) {
|
|
|
501
500
|
latestContextState
|
|
502
501
|
};
|
|
503
502
|
}
|
|
504
|
-
function foldMode(events) {
|
|
505
|
-
let mode = "planner";
|
|
506
|
-
for (const event of events) {
|
|
507
|
-
if (event.type === "mode.changed") {
|
|
508
|
-
const data = event.data;
|
|
509
|
-
mode = data.mode;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
return mode;
|
|
513
|
-
}
|
|
514
503
|
function foldPhase(events) {
|
|
515
504
|
let phase = "plan";
|
|
516
505
|
for (const event of events) {
|
|
@@ -557,7 +546,6 @@ function foldPendingConfirmations(events) {
|
|
|
557
546
|
return pending;
|
|
558
547
|
}
|
|
559
548
|
function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
560
|
-
const mode = foldMode(events);
|
|
561
549
|
const phase = foldPhase(events);
|
|
562
550
|
const isRunning = foldIsRunning(events);
|
|
563
551
|
const messages = initialMessages && initialMessages.length > 0 ? foldTurnEventsToSnapshotMessagesFromInitial(events, initialMessages) : foldTurnEventsToSnapshotMessages(events);
|
|
@@ -573,45 +561,6 @@ function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
|
573
561
|
canCompact: false
|
|
574
562
|
};
|
|
575
563
|
const contextState = baseContextState.compactionCount !== contextResult.compactionCount || baseContextState.maxTokens !== maxTokens ? { ...baseContextState, compactionCount: contextResult.compactionCount, maxTokens } : { ...baseContextState, maxTokens };
|
|
576
|
-
let lastModeWithReminder;
|
|
577
|
-
for (let i = events.length - 1; i >= 0; i--) {
|
|
578
|
-
const event = events[i];
|
|
579
|
-
if (event.type === "turn.snapshot") {
|
|
580
|
-
const snapshotData = event.data;
|
|
581
|
-
if (snapshotData.lastModeWithReminder) {
|
|
582
|
-
lastModeWithReminder = snapshotData.lastModeWithReminder;
|
|
583
|
-
break;
|
|
584
|
-
}
|
|
585
|
-
for (let j = snapshotData.messages.length - 1; j >= 0; j--) {
|
|
586
|
-
const msg = snapshotData.messages[j];
|
|
587
|
-
if (msg.role === "user" && msg.messageKind === "auto-prompt" && msg.content?.includes("<system-reminder>")) {
|
|
588
|
-
if (msg.content.includes("Plan Mode")) {
|
|
589
|
-
lastModeWithReminder = "planner";
|
|
590
|
-
} else if (msg.content.includes("Build Mode")) {
|
|
591
|
-
lastModeWithReminder = "builder";
|
|
592
|
-
}
|
|
593
|
-
break;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
if (lastModeWithReminder) break;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
if (lastModeWithReminder === void 0) {
|
|
600
|
-
for (let i = events.length - 1; i >= 0; i--) {
|
|
601
|
-
const event = events[i];
|
|
602
|
-
if (event.type === "message.start") {
|
|
603
|
-
const data = event.data;
|
|
604
|
-
if (data.role === "user" && data.messageKind === "auto-prompt" && data.content?.includes("<system-reminder>")) {
|
|
605
|
-
if (data.content.includes("Plan Mode")) {
|
|
606
|
-
lastModeWithReminder = "planner";
|
|
607
|
-
} else if (data.content.includes("Build Mode")) {
|
|
608
|
-
lastModeWithReminder = "builder";
|
|
609
|
-
}
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
564
|
let sessionInit;
|
|
616
565
|
let sessionTitle;
|
|
617
566
|
let visionFallbacks = [];
|
|
@@ -694,7 +643,6 @@ function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
|
694
643
|
}
|
|
695
644
|
}
|
|
696
645
|
return {
|
|
697
|
-
mode,
|
|
698
646
|
phase,
|
|
699
647
|
isRunning,
|
|
700
648
|
messages,
|
|
@@ -703,7 +651,6 @@ function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
|
703
651
|
contextState,
|
|
704
652
|
currentContextWindowId: contextResult.currentContextWindowId,
|
|
705
653
|
readFiles: contextResult.readFiles,
|
|
706
|
-
...lastModeWithReminder !== void 0 && { lastModeWithReminder },
|
|
707
654
|
pendingConfirmations,
|
|
708
655
|
...sessionInit !== void 0 && { sessionInit },
|
|
709
656
|
...sessionTitle !== void 0 && { sessionTitle },
|
|
@@ -717,7 +664,6 @@ function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
|
717
664
|
}
|
|
718
665
|
function buildSnapshot(foldedState, latestSeq, snapshotAt = Date.now()) {
|
|
719
666
|
return {
|
|
720
|
-
mode: foldedState.mode,
|
|
721
667
|
phase: foldedState.phase,
|
|
722
668
|
isRunning: foldedState.isRunning,
|
|
723
669
|
messages: foldedState.messages,
|
|
@@ -726,7 +672,6 @@ function buildSnapshot(foldedState, latestSeq, snapshotAt = Date.now()) {
|
|
|
726
672
|
currentContextWindowId: foldedState.currentContextWindowId,
|
|
727
673
|
todos: foldedState.todos,
|
|
728
674
|
readFiles: foldedState.readFiles,
|
|
729
|
-
...foldedState.lastModeWithReminder !== void 0 && { lastModeWithReminder: foldedState.lastModeWithReminder },
|
|
730
675
|
snapshotSeq: latestSeq,
|
|
731
676
|
snapshotAt,
|
|
732
677
|
...foldedState.sessionInit !== void 0 && { sessionInit: foldedState.sessionInit },
|
|
@@ -762,7 +707,6 @@ function buildSnapshotFromSessionState(input) {
|
|
|
762
707
|
) : foldedState.messages;
|
|
763
708
|
stripPromptContextMessages(messages);
|
|
764
709
|
return {
|
|
765
|
-
mode: session.mode,
|
|
766
710
|
phase: session.phase,
|
|
767
711
|
isRunning: session.isRunning,
|
|
768
712
|
messages,
|
|
@@ -805,7 +749,6 @@ export {
|
|
|
805
749
|
foldCriteria,
|
|
806
750
|
foldTodos,
|
|
807
751
|
foldContextState,
|
|
808
|
-
foldMode,
|
|
809
752
|
foldPhase,
|
|
810
753
|
foldIsRunning,
|
|
811
754
|
foldPendingConfirmations,
|
|
@@ -815,4 +758,4 @@ export {
|
|
|
815
758
|
getMessagesForWindow,
|
|
816
759
|
buildContextMessagesFromMessages
|
|
817
760
|
};
|
|
818
|
-
//# sourceMappingURL=chunk-
|
|
761
|
+
//# sourceMappingURL=chunk-G6JKXYFE.js.map
|
|
@@ -9,7 +9,9 @@ var SETTINGS_KEYS = {
|
|
|
9
9
|
DISPLAY_SHOW_VERBOSE_TOOL_OUTPUT: "display.showVerboseToolOutput",
|
|
10
10
|
DISPLAY_SHOW_STATS: "display.showStats",
|
|
11
11
|
DISPLAY_SHOW_AGENT_DEFINITIONS: "display.showAgentDefinitions",
|
|
12
|
-
DISPLAY_SHOW_WORKFLOW_BARS: "display.showWorkflowBars"
|
|
12
|
+
DISPLAY_SHOW_WORKFLOW_BARS: "display.showWorkflowBars",
|
|
13
|
+
DISPLAY_THEME: "display.theme",
|
|
14
|
+
DISPLAY_USER_PRESETS: "display.userPresets"
|
|
13
15
|
};
|
|
14
16
|
var SETTINGS_DEFAULTS = {
|
|
15
17
|
[SETTINGS_KEYS.DISPLAY_SHOW_THINKING]: "true",
|
|
@@ -56,4 +58,4 @@ export {
|
|
|
56
58
|
deleteSetting,
|
|
57
59
|
getAllSettings
|
|
58
60
|
};
|
|
59
|
-
//# sourceMappingURL=chunk-
|
|
61
|
+
//# sourceMappingURL=chunk-GQZGIMJO.js.map
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
getBackendCapabilities,
|
|
20
20
|
getModelProfile,
|
|
21
21
|
streamWithSegments
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WNZIUQ2L.js";
|
|
23
23
|
import {
|
|
24
24
|
getContextMessages,
|
|
25
25
|
getCurrentContextWindowId,
|
|
26
26
|
getEventStore
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZSQFDQPH.js";
|
|
28
28
|
import {
|
|
29
29
|
createChatDoneMessage,
|
|
30
30
|
createChatMessageMessage,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
createChatToolOutputMessage,
|
|
34
34
|
createChatVisionFallbackMessage,
|
|
35
35
|
createQueueStateMessage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-HSSXBW6N.js";
|
|
37
37
|
import {
|
|
38
38
|
AskUserInterrupt,
|
|
39
39
|
askUserTool
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
deleteSetting,
|
|
44
44
|
getSetting,
|
|
45
45
|
setSetting
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GQZGIMJO.js";
|
|
47
47
|
import {
|
|
48
48
|
getGlobalConfigDir
|
|
49
49
|
} from "./chunk-R4HADRYO.js";
|
|
@@ -488,13 +488,14 @@ function assembleAgentRequest(input) {
|
|
|
488
488
|
|
|
489
489
|
// src/server/chat/stream-utils.ts
|
|
490
490
|
function buildStreamRequestObject(params) {
|
|
491
|
-
const { messages, tools, toolChoice, disableThinking, signal, onVisionFallbackStart, onVisionFallbackDone } = params;
|
|
491
|
+
const { messages, tools, toolChoice, disableThinking, signal, modelSettings, onVisionFallbackStart, onVisionFallbackDone } = params;
|
|
492
492
|
const streamRequest = {
|
|
493
493
|
messages,
|
|
494
494
|
...tools && { tools },
|
|
495
495
|
...toolChoice && { toolChoice },
|
|
496
496
|
disableThinking: disableThinking ?? false,
|
|
497
|
-
...signal && { signal }
|
|
497
|
+
...signal && { signal },
|
|
498
|
+
...modelSettings && { modelSettings }
|
|
498
499
|
};
|
|
499
500
|
if (onVisionFallbackStart) streamRequest.onVisionFallbackStart = onVisionFallbackStart;
|
|
500
501
|
if (onVisionFallbackDone) streamRequest.onVisionFallbackDone = onVisionFallbackDone;
|
|
@@ -568,6 +569,7 @@ async function* streamLLMPure(options) {
|
|
|
568
569
|
toolChoice,
|
|
569
570
|
disableThinking: disableThinking ?? false,
|
|
570
571
|
signal,
|
|
572
|
+
modelSettings: options.modelSettings,
|
|
571
573
|
onVisionFallbackStart,
|
|
572
574
|
onVisionFallbackDone
|
|
573
575
|
});
|
|
@@ -3351,7 +3353,7 @@ var callSubAgentTool = {
|
|
|
3351
3353
|
};
|
|
3352
3354
|
}
|
|
3353
3355
|
try {
|
|
3354
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3356
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-K7TJWICQ.js");
|
|
3355
3357
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3356
3358
|
const turnMetrics = new TurnMetrics();
|
|
3357
3359
|
const result = await executeSubAgent({
|
|
@@ -4480,4 +4482,4 @@ export {
|
|
|
4480
4482
|
getToolRegistryForAgent,
|
|
4481
4483
|
createToolRegistry
|
|
4482
4484
|
};
|
|
4483
|
-
//# sourceMappingURL=chunk-
|
|
4485
|
+
//# sourceMappingURL=chunk-GY4TRYOG.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServerMessage,
|
|
3
3
|
isClientMessage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-53DUI4MS.js";
|
|
5
5
|
|
|
6
6
|
// src/server/ws/protocol.ts
|
|
7
7
|
function enrichMessagesWithToolResults(messages) {
|
|
@@ -110,9 +110,6 @@ function createChatAskUserMessage(callId, question) {
|
|
|
110
110
|
function createChatVisionFallbackMessage(payload) {
|
|
111
111
|
return createServerMessage("chat.vision_fallback", payload);
|
|
112
112
|
}
|
|
113
|
-
function createModeChangedMessage(mode, auto, reason) {
|
|
114
|
-
return createServerMessage("mode.changed", { mode, auto, ...reason ? { reason } : {} });
|
|
115
|
-
}
|
|
116
113
|
function createPhaseChangedMessage(phase) {
|
|
117
114
|
return createServerMessage("phase.changed", { phase });
|
|
118
115
|
}
|
|
@@ -138,9 +135,6 @@ function isSessionLoadPayload(payload) {
|
|
|
138
135
|
function isChatSendPayload(payload) {
|
|
139
136
|
return typeof payload === "object" && payload !== null && "content" in payload;
|
|
140
137
|
}
|
|
141
|
-
function isModeSwitchPayload(payload) {
|
|
142
|
-
return typeof payload === "object" && payload !== null && "mode" in payload;
|
|
143
|
-
}
|
|
144
138
|
function isCriteriaEditPayload(payload) {
|
|
145
139
|
return typeof payload === "object" && payload !== null && "criteria" in payload;
|
|
146
140
|
}
|
|
@@ -235,10 +229,6 @@ function storedEventToServerMessage(event) {
|
|
|
235
229
|
const data = event.data;
|
|
236
230
|
return createServerMessage("task.completed", data);
|
|
237
231
|
}
|
|
238
|
-
case "mode.changed": {
|
|
239
|
-
const data = event.data;
|
|
240
|
-
return createModeChangedMessage(data.mode, data.auto, data.reason);
|
|
241
|
-
}
|
|
242
232
|
case "running.changed": {
|
|
243
233
|
const data = event.data;
|
|
244
234
|
return createSessionRunningMessage(data.isRunning);
|
|
@@ -316,14 +306,12 @@ export {
|
|
|
316
306
|
createChatPathConfirmationMessage,
|
|
317
307
|
createChatAskUserMessage,
|
|
318
308
|
createChatVisionFallbackMessage,
|
|
319
|
-
createModeChangedMessage,
|
|
320
309
|
createPhaseChangedMessage,
|
|
321
310
|
createCriteriaUpdatedMessage,
|
|
322
311
|
createContextStateMessage,
|
|
323
312
|
createSessionNameGeneratedMessage,
|
|
324
313
|
isSessionLoadPayload,
|
|
325
314
|
isChatSendPayload,
|
|
326
|
-
isModeSwitchPayload,
|
|
327
315
|
isCriteriaEditPayload,
|
|
328
316
|
isPathConfirmPayload,
|
|
329
317
|
isAskAnswerPayload,
|
|
@@ -333,4 +321,4 @@ export {
|
|
|
333
321
|
isQueueCancelPayload,
|
|
334
322
|
storedEventToServerMessage
|
|
335
323
|
};
|
|
336
|
-
//# sourceMappingURL=chunk-
|
|
324
|
+
//# sourceMappingURL=chunk-HSSXBW6N.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createLLMClient,
|
|
4
4
|
detectModel,
|
|
5
5
|
setLlmStatus
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F2VWCCMC.js";
|
|
7
7
|
import {
|
|
8
8
|
detectBackend
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WNZIUQ2L.js";
|
|
10
10
|
import {
|
|
11
11
|
logger
|
|
12
12
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -375,12 +375,13 @@ function createProviderManager(config) {
|
|
|
375
375
|
const finalTopP = settings.topP !== void 0 && settings.topP !== null ? settings.topP : existingModel?.topP;
|
|
376
376
|
const finalTopK = settings.topK !== void 0 && settings.topK !== null ? settings.topK : existingModel?.topK;
|
|
377
377
|
const finalMaxTokens = settings.maxTokens !== void 0 && settings.maxTokens !== null ? settings.maxTokens : existingModel?.maxTokens;
|
|
378
|
+
const finalSupportsVision = settings.supportsVision !== void 0 ? settings.supportsVision : existingModel?.supportsVision;
|
|
378
379
|
logger.info("Updating model settings", {
|
|
379
380
|
providerId,
|
|
380
381
|
modelId,
|
|
381
382
|
existing: existingModel,
|
|
382
383
|
incoming: settings,
|
|
383
|
-
final: { temperature: finalTemp, topP: finalTopP, topK: finalTopK, maxTokens: finalMaxTokens }
|
|
384
|
+
final: { temperature: finalTemp, topP: finalTopP, topK: finalTopK, maxTokens: finalMaxTokens, supportsVision: finalSupportsVision }
|
|
384
385
|
});
|
|
385
386
|
const updatedModel = {
|
|
386
387
|
id: modelId,
|
|
@@ -389,7 +390,8 @@ function createProviderManager(config) {
|
|
|
389
390
|
...finalTemp !== void 0 && { temperature: finalTemp },
|
|
390
391
|
...finalTopP !== void 0 && { topP: finalTopP },
|
|
391
392
|
...finalTopK !== void 0 && { topK: finalTopK },
|
|
392
|
-
...finalMaxTokens !== void 0 && { maxTokens: finalMaxTokens }
|
|
393
|
+
...finalMaxTokens !== void 0 && { maxTokens: finalMaxTokens },
|
|
394
|
+
...finalSupportsVision !== void 0 && { supportsVision: finalSupportsVision }
|
|
393
395
|
};
|
|
394
396
|
if (existingModel) {
|
|
395
397
|
providers = providers.map(
|
|
@@ -411,7 +413,8 @@ function createProviderManager(config) {
|
|
|
411
413
|
...model.temperature !== void 0 && { temperature: model.temperature },
|
|
412
414
|
...model.topP !== void 0 && { topP: model.topP },
|
|
413
415
|
...model.topK !== void 0 && { topK: model.topK },
|
|
414
|
-
...model.maxTokens !== void 0 && { maxTokens: model.maxTokens }
|
|
416
|
+
...model.maxTokens !== void 0 && { maxTokens: model.maxTokens },
|
|
417
|
+
...model.supportsVision !== void 0 && { supportsVision: model.supportsVision }
|
|
415
418
|
};
|
|
416
419
|
},
|
|
417
420
|
async refreshProviderModels(providerId) {
|
|
@@ -457,4 +460,4 @@ export {
|
|
|
457
460
|
parseDefaultModelSelection,
|
|
458
461
|
createProviderManager
|
|
459
462
|
};
|
|
460
|
-
//# sourceMappingURL=chunk-
|
|
463
|
+
//# sourceMappingURL=chunk-HYIQFRYJ.js.map
|
|
@@ -32,7 +32,7 @@ Options:
|
|
|
32
32
|
}
|
|
33
33
|
async function runNetworkSetup(mode) {
|
|
34
34
|
const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-JF2HDJ6P.js");
|
|
35
|
-
const { saveGlobalConfig } = await import("./config-
|
|
35
|
+
const { saveGlobalConfig } = await import("./config-3TU54V4X.js");
|
|
36
36
|
const { getAuthKeyPath } = await import("./paths-ZRI56O63.js");
|
|
37
37
|
const existingAuth = await loadAuthConfig(mode);
|
|
38
38
|
if (existingAuth) {
|
|
@@ -93,7 +93,7 @@ async function runNetworkSetup(mode) {
|
|
|
93
93
|
console.log("\u2713 Configuration saved!\n");
|
|
94
94
|
}
|
|
95
95
|
async function runConfig(mode) {
|
|
96
|
-
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-
|
|
96
|
+
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-3TU54V4X.js");
|
|
97
97
|
const { getGlobalConfigPath } = await import("./paths-ZRI56O63.js");
|
|
98
98
|
const config = await loadGlobalConfig(mode);
|
|
99
99
|
const configPath = getGlobalConfigPath(mode);
|
|
@@ -148,7 +148,7 @@ async function runCli(options) {
|
|
|
148
148
|
break;
|
|
149
149
|
}
|
|
150
150
|
case "provider": {
|
|
151
|
-
const { runProviderCommand } = await import("./provider-
|
|
151
|
+
const { runProviderCommand } = await import("./provider-J4G7XBDP.js");
|
|
152
152
|
const [, subcommand] = positionals;
|
|
153
153
|
await runProviderCommand(mode, subcommand);
|
|
154
154
|
break;
|
|
@@ -174,12 +174,12 @@ async function runCli(options) {
|
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
176
|
default: {
|
|
177
|
-
const { configFileExists } = await import("./config-
|
|
177
|
+
const { configFileExists } = await import("./config-3TU54V4X.js");
|
|
178
178
|
const configExists = await configFileExists(mode);
|
|
179
179
|
if (!configExists) {
|
|
180
180
|
await runNetworkSetup(mode);
|
|
181
181
|
}
|
|
182
|
-
const { runServe } = await import("./serve-
|
|
182
|
+
const { runServe } = await import("./serve-BCRWEL5U.js");
|
|
183
183
|
await runServe({
|
|
184
184
|
mode,
|
|
185
185
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -192,4 +192,4 @@ async function runCli(options) {
|
|
|
192
192
|
export {
|
|
193
193
|
runCli
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-KBEOYUA3.js.map
|