openfox 2.0.119 → 2.0.121
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/agent-defaults/code-reviewer.agent.md +3 -8
- package/dist/{chat-handler-M54IWF5Y.js → chat-handler-A5ORR5BB.js} +28 -29
- package/dist/{chunk-LNNBLB6G.js → chunk-2N7KFNMY.js} +3 -3
- package/dist/{chunk-XZGQZ42D.js → chunk-5A4YN6I7.js} +5 -5
- package/dist/{chunk-UNNCD7A3.js → chunk-5QTERLHH.js} +6 -6
- package/dist/{chunk-SE62ZBNX.js → chunk-62GUO2EG.js} +6 -4
- package/dist/{chunk-YHAE2SJI.js → chunk-6A2VIV36.js} +4 -4
- package/dist/{chunk-VUQCQXXJ.js → chunk-7OHXF5GW.js} +6 -3
- package/dist/{chunk-3PG65AXG.js → chunk-DIALH34K.js} +2 -2
- package/dist/{chunk-AESOGRFK.js → chunk-EZ67GBEO.js} +2 -2
- package/dist/{chunk-AIFZNTUJ.js → chunk-F2IM5J4I.js} +4 -4
- package/dist/{chunk-HD6Y77RO.js → chunk-FGVMRFDW.js} +2 -2
- package/dist/{chunk-W7VIYHPQ.js → chunk-GJL3QSMP.js} +3 -2
- package/dist/{chunk-ZTOG6LJD.js → chunk-I22B6KWV.js} +3 -3
- package/dist/{chunk-JOCR4CF4.js → chunk-J3IJJ55E.js} +5 -5
- package/dist/{chunk-J6KFWVZ3.js → chunk-J77SLE3M.js} +3 -3
- package/dist/{chunk-XZ2WAI66.js → chunk-KD7JTG42.js} +237 -199
- package/dist/{chunk-2FCLCUVR.js → chunk-LSEHJ2WI.js} +3 -3
- package/dist/{chunk-3KBRMBTP.js → chunk-LWXLNE6M.js} +2 -2
- package/dist/{chunk-5PT4UMRR.js → chunk-NYQKSKDB.js} +9 -1
- package/dist/{chunk-5FAPM2GM.js → chunk-O63CDVNI.js} +4 -4
- package/dist/chunk-OBB3JYMK.js +7 -0
- package/dist/{chunk-M6X6AIEG.js → chunk-OXANSWVZ.js} +2 -2
- package/dist/{chunk-LTYL6ZGH.js → chunk-POTCPZJF.js} +2 -2
- package/dist/{chunk-O6DU226D.js → chunk-RMOKNQAS.js} +2 -2
- package/dist/{chunk-KLQEL2DZ.js → chunk-SLW3KKPP.js} +26 -8
- package/dist/{chunk-V5XWUVF5.js → chunk-TR4DQZIG.js} +123 -49
- package/dist/{chunk-U6JMRMBW.js → chunk-UJRWYZHM.js} +9 -3
- package/dist/{chunk-6DDB67FN.js → chunk-VUANU5A5.js} +17 -17
- package/dist/{chunk-AVQCOSOF.js → chunk-W3WZ54KP.js} +16 -16
- package/dist/{chunk-27NABDXB.js → chunk-Y7FGHKBW.js} +2 -2
- package/dist/{chunk-EQ5CGNOT.js → chunk-YBOU4ZFD.js} +3 -3
- package/dist/{chunk-VFS7TFA7.js → chunk-YDDBPKVP.js} +21 -16
- package/dist/{chunk-XB7IXMUI.js → chunk-ZELEYSTY.js} +51 -46
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-R4PI64IL.js → client-JKPDMJ7S.js} +6 -6
- package/dist/{compactor-F6XMYVHL.js → compactor-MKD3CAFM.js} +13 -13
- package/dist/{dynamic-context-NXQ2TFAZ.js → dynamic-context-KPZECHZH.js} +9 -9
- package/dist/{events-KDFMBVP5.js → events-6P4TDTSD.js} +8 -8
- package/dist/{folding-RTGU63BW.js → folding-3LA2WX2B.js} +6 -6
- package/dist/http-client-IKOARXI7.js +11 -0
- package/dist/{inspect-proxy-WPEDMCG7.js → inspect-proxy-IDLUAQH5.js} +4 -4
- package/dist/launch-YWXQQWZN.js +52 -0
- package/dist/{manager-EMLSLMMT.js → manager-NFKTUR64.js} +5 -5
- package/dist/{orchestrator-MNON5G7R.js → orchestrator-SM3IHZFP.js} +31 -32
- package/dist/package.json +1 -1
- package/dist/{path-security-L4AJJN2V.js → path-security-JUF56IB6.js} +10 -10
- package/dist/{platform-ECDDYMAR.js → platform-FM57ZJHA.js} +4 -4
- package/dist/{processor-OZSK7RUD.js → processor-EUJRA5GW.js} +40 -41
- package/dist/{profiles-GYHXBWPV.js → profiles-3YLLEJ2B.js} +2 -2
- package/dist/{project-creator-PMQ65NKN.js → project-creator-J4ITWDZI.js} +3 -3
- package/dist/{projects-NDPNOV6D.js → projects-FHRTSV6N.js} +3 -3
- package/dist/{protocol-D5kJLGWy.d.ts → protocol-BLin669D.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-7YF42S7C.js → provider-TAFJCWVP.js} +7 -7
- package/dist/{provider-manager-FJIPQJMX.js → provider-manager-EDJN6ARI.js} +7 -7
- package/dist/{registry-5QL3BOWN.js → registry-37GL3DAP.js} +5 -5
- package/dist/{serve-V34QG72C.js → serve-DEY45HQS.js} +32 -33
- package/dist/server/index.d.ts +40 -8
- package/dist/server/index.js +31 -32
- package/dist/server-EIRLWSBZ.js +55 -0
- package/dist/{service-ZKH465DA.js → service-HX5NFX2D.js} +9 -9
- package/dist/{session-overrides-CWBKPHMF.js → session-overrides-EOKSZO2X.js} +7 -7
- package/dist/{sessions-I7ELDIIP.js → sessions-XFNU4DZ6.js} +8 -6
- package/dist/{settings-FGXQHKUH.js → settings-SYYDPV43.js} +3 -3
- package/dist/shared/index.d.ts +6 -5
- package/dist/shared/index.js +1 -1
- package/dist/{tasks-I766NBPW.js → tasks-A25JQ4TV.js} +9 -9
- package/dist/{tools-ZJXDZLRH.js → tools-YGJXEEBI.js} +23 -24
- package/dist/{types-B5CI_Ql3.d.ts → types-B5_9KtfJ.d.ts} +1 -1
- package/dist/{types-CZlj7ufS.d.ts → types-DeQIEC1U.d.ts} +2 -0
- package/dist/{update-C3YVPKCR.js → update-CE3XSZXE.js} +2 -2
- package/dist/web/assets/{index-BlYcAqzD.js → index-oiZlWLY7.js} +84 -84
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +3 -3
- package/dist/{workspace-IQLLHMYR.js → workspace-ZNZFEONU.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-EW25UQG3.js +0 -7
- package/dist/chunk-JLAR2CMV.js +0 -72
- package/dist/http-client-IPUW2MSW.js +0 -11
- package/dist/launch-I5XBYRSJ.js +0 -53
- package/dist/model-overrides-7F2EOA4U.js +0 -21
- package/dist/server-XZQLWIVD.js +0 -56
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentTurn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VUANU5A5.js";
|
|
4
4
|
import {
|
|
5
5
|
executeSubAgent,
|
|
6
6
|
getToolRegistryForAgent
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
TurnMetrics,
|
|
10
|
-
createMessageStartEvent
|
|
11
|
-
} from "./chunk-SE62ZBNX.js";
|
|
7
|
+
} from "./chunk-TR4DQZIG.js";
|
|
12
8
|
import {
|
|
13
9
|
checkAborted,
|
|
14
10
|
decodeUtf8,
|
|
15
11
|
spawnShellProcess
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-I22B6KWV.js";
|
|
17
13
|
import {
|
|
18
14
|
terminateProcessTree
|
|
19
15
|
} from "./chunk-I72ACQ6R.js";
|
|
@@ -27,30 +23,34 @@ import {
|
|
|
27
23
|
loadProjectWorkflows,
|
|
28
24
|
loadUserWorkflows,
|
|
29
25
|
normalizeWorkflowScope
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
getCurrentContextWindowId,
|
|
33
|
-
getEventStore
|
|
34
|
-
} from "./chunk-JOCR4CF4.js";
|
|
26
|
+
} from "./chunk-O63CDVNI.js";
|
|
35
27
|
import {
|
|
36
28
|
createChatMessageMessage,
|
|
37
29
|
createSessionRunningMessage
|
|
38
30
|
} from "./chunk-XAAEP5XM.js";
|
|
31
|
+
import {
|
|
32
|
+
TurnMetrics,
|
|
33
|
+
createMessageStartEvent
|
|
34
|
+
} from "./chunk-62GUO2EG.js";
|
|
35
|
+
import {
|
|
36
|
+
getCurrentContextWindowId,
|
|
37
|
+
getEventStore
|
|
38
|
+
} from "./chunk-J3IJJ55E.js";
|
|
39
39
|
import {
|
|
40
40
|
findAgentById,
|
|
41
41
|
getRuntimeConfig,
|
|
42
42
|
loadAllAgentsDefault,
|
|
43
43
|
resolveDefaultAgentId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2N7KFNMY.js";
|
|
45
45
|
import {
|
|
46
46
|
LLMError
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-POTCPZJF.js";
|
|
48
48
|
import {
|
|
49
49
|
logger
|
|
50
50
|
} from "./chunk-K44MW7JJ.js";
|
|
51
51
|
import {
|
|
52
52
|
computeSessionStats
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7OHXF5GW.js";
|
|
54
54
|
import {
|
|
55
55
|
createServerMessage
|
|
56
56
|
} from "./chunk-KSDWQ6IZ.js";
|
|
@@ -1002,4 +1002,4 @@ export {
|
|
|
1002
1002
|
abortRunnerRun,
|
|
1003
1003
|
launchWorkflowRun
|
|
1004
1004
|
};
|
|
1005
|
-
//# sourceMappingURL=chunk-
|
|
1005
|
+
//# sourceMappingURL=chunk-W3WZ54KP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPlatformShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EZ67GBEO.js";
|
|
4
4
|
|
|
5
5
|
// src/server/tools/tool-policy.ts
|
|
6
6
|
var ALWAYS_ALLOWED = /* @__PURE__ */ new Set(["step_done"]);
|
|
@@ -246,4 +246,4 @@ export {
|
|
|
246
246
|
buildAgentSmallReminder,
|
|
247
247
|
COMPACTION_PROMPT
|
|
248
248
|
};
|
|
249
|
-
//# sourceMappingURL=chunk-
|
|
249
|
+
//# sourceMappingURL=chunk-Y7FGHKBW.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateSessionMcpDisabledServers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SLW3KKPP.js";
|
|
4
4
|
import {
|
|
5
5
|
getDatabase
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NYQKSKDB.js";
|
|
7
7
|
|
|
8
8
|
// src/server/mcp/session-overrides.ts
|
|
9
9
|
var sessionOverrides = /* @__PURE__ */ new Map();
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
clearSessionOverrides,
|
|
63
63
|
getAllSessionOverrides
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-YBOU4ZFD.js.map
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
combineEventsWithSnapshot,
|
|
3
|
-
getEventStore
|
|
4
|
-
} from "./chunk-JOCR4CF4.js";
|
|
5
|
-
import {
|
|
6
|
-
updateSessionMetadata
|
|
7
|
-
} from "./chunk-KLQEL2DZ.js";
|
|
8
1
|
import {
|
|
9
2
|
createContextStateMessage,
|
|
10
3
|
createSessionStateMessage
|
|
@@ -12,16 +5,23 @@ import {
|
|
|
12
5
|
import {
|
|
13
6
|
getPendingQuestionsForSession
|
|
14
7
|
} from "./chunk-JURM3RPZ.js";
|
|
8
|
+
import {
|
|
9
|
+
combineEventsWithSnapshot,
|
|
10
|
+
getEventStore
|
|
11
|
+
} from "./chunk-J3IJJ55E.js";
|
|
12
|
+
import {
|
|
13
|
+
updateSessionMetadata
|
|
14
|
+
} from "./chunk-SLW3KKPP.js";
|
|
15
15
|
import {
|
|
16
16
|
buildMessagesFromStoredEvents,
|
|
17
17
|
foldPendingConfirmations
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LWXLNE6M.js";
|
|
19
19
|
import {
|
|
20
20
|
getRuntimeConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2N7KFNMY.js";
|
|
22
22
|
import {
|
|
23
23
|
getMaxVisibleItems
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FGVMRFDW.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
27
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -120,11 +120,12 @@ function applyGeneratedSessionName(sessionId, name, deps) {
|
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function resolveSessionProvider(session, providerManager) {
|
|
123
|
+
function resolveSessionProvider(session, providerManager, effective) {
|
|
124
124
|
const providers = providerManager.getProviders();
|
|
125
|
-
const
|
|
125
|
+
const effectiveProviderId = effective?.providerId ?? session.providerId ?? void 0;
|
|
126
|
+
const effectiveModel = effective?.model ?? session.providerModel ?? providerManager.getCurrentModel();
|
|
126
127
|
if (!effectiveModel) return void 0;
|
|
127
|
-
const provider =
|
|
128
|
+
const provider = effectiveProviderId ? providers.find((p) => p.id === effectiveProviderId) : providers.find((p) => p.isActive);
|
|
128
129
|
if (!provider) return void 0;
|
|
129
130
|
return {
|
|
130
131
|
providerId: provider.id,
|
|
@@ -143,7 +144,11 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
143
144
|
}
|
|
144
145
|
const messageCount = getSessionMessageCount(sessionId);
|
|
145
146
|
if (!needsNameGenerationCheck(sessionId, session.metadata.title, messageCount)) return;
|
|
146
|
-
const providerConfig = resolveSessionProvider(
|
|
147
|
+
const providerConfig = resolveSessionProvider(
|
|
148
|
+
session,
|
|
149
|
+
providerManager,
|
|
150
|
+
sessionManager.resolveEffectiveProviderModel(sessionId)
|
|
151
|
+
);
|
|
147
152
|
const modelSettings = providerConfig ? providerManager.getModelSettings(providerConfig.providerId, providerConfig.model, "non-thinking") : void 0;
|
|
148
153
|
const prompt = SESSION_NAME_PROMPT.replace("{message}", userMessage);
|
|
149
154
|
try {
|
|
@@ -156,7 +161,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
156
161
|
client = deps.getLLMClient();
|
|
157
162
|
client.setModel(providerConfig.model);
|
|
158
163
|
} else if (providerConfig) {
|
|
159
|
-
const { createLLMClient } = await import("./client-
|
|
164
|
+
const { createLLMClient } = await import("./client-JKPDMJ7S.js");
|
|
160
165
|
client = createLLMClient({
|
|
161
166
|
llm: {
|
|
162
167
|
baseUrl: providerConfig.baseUrl,
|
|
@@ -207,4 +212,4 @@ export {
|
|
|
207
212
|
needsNameGeneration,
|
|
208
213
|
generateSessionNameForSession
|
|
209
214
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-YDDBPKVP.js.map
|
|
@@ -2,41 +2,30 @@ import {
|
|
|
2
2
|
generateSessionNameForSession,
|
|
3
3
|
getSessionMessageCount,
|
|
4
4
|
needsNameGeneration
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YDDBPKVP.js";
|
|
6
6
|
import {
|
|
7
7
|
launchWorkflowRun
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W3WZ54KP.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
devServerManager
|
|
14
|
-
} from "./chunk-V5XWUVF5.js";
|
|
11
|
+
} from "./chunk-VUANU5A5.js";
|
|
15
12
|
import {
|
|
16
13
|
applyDynamicContext,
|
|
17
14
|
computeSessionHash,
|
|
18
15
|
computeUnifiedDiff
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
appendCompactionPrompt
|
|
22
|
-
} from "./chunk-YHAE2SJI.js";
|
|
16
|
+
} from "./chunk-5QTERLHH.js";
|
|
23
17
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./chunk-SE62ZBNX.js";
|
|
18
|
+
devServerManager
|
|
19
|
+
} from "./chunk-TR4DQZIG.js";
|
|
27
20
|
import {
|
|
28
21
|
onProcessEvent
|
|
29
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I22B6KWV.js";
|
|
30
23
|
import {
|
|
31
24
|
killProcessTree
|
|
32
25
|
} from "./chunk-I72ACQ6R.js";
|
|
33
26
|
import {
|
|
34
27
|
gitSpawnEnv
|
|
35
28
|
} from "./chunk-J7GAZGZT.js";
|
|
36
|
-
import {
|
|
37
|
-
combineEventsWithSnapshot,
|
|
38
|
-
getEventStore
|
|
39
|
-
} from "./chunk-JOCR4CF4.js";
|
|
40
29
|
import {
|
|
41
30
|
createChatErrorMessage,
|
|
42
31
|
createChatMessageMessage,
|
|
@@ -52,23 +41,34 @@ import {
|
|
|
52
41
|
serializeServerMessage,
|
|
53
42
|
storedEventToServerMessage
|
|
54
43
|
} from "./chunk-XAAEP5XM.js";
|
|
55
|
-
import {
|
|
56
|
-
getPlatformShell
|
|
57
|
-
} from "./chunk-AESOGRFK.js";
|
|
58
44
|
import {
|
|
59
45
|
getPendingQuestionsForSession,
|
|
60
46
|
provideAnswer
|
|
61
47
|
} from "./chunk-JURM3RPZ.js";
|
|
48
|
+
import {
|
|
49
|
+
appendCompactionPrompt
|
|
50
|
+
} from "./chunk-6A2VIV36.js";
|
|
51
|
+
import {
|
|
52
|
+
hasRecentLLMFailure,
|
|
53
|
+
interruptLLMRetryWait
|
|
54
|
+
} from "./chunk-62GUO2EG.js";
|
|
55
|
+
import {
|
|
56
|
+
combineEventsWithSnapshot,
|
|
57
|
+
getEventStore
|
|
58
|
+
} from "./chunk-J3IJJ55E.js";
|
|
59
|
+
import {
|
|
60
|
+
getPlatformShell
|
|
61
|
+
} from "./chunk-EZ67GBEO.js";
|
|
62
62
|
import {
|
|
63
63
|
buildMessagesFromStoredEvents,
|
|
64
64
|
foldPendingConfirmations
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-LWXLNE6M.js";
|
|
66
66
|
import {
|
|
67
67
|
getRuntimeConfig
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-2N7KFNMY.js";
|
|
69
69
|
import {
|
|
70
70
|
getMaxVisibleItems
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-FGVMRFDW.js";
|
|
72
72
|
import {
|
|
73
73
|
logger
|
|
74
74
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -669,52 +669,57 @@ function createWebSocketServer(httpServer, _config, getLLMClient, getActiveProvi
|
|
|
669
669
|
moduleClients = clients;
|
|
670
670
|
const sessionLLMClients = /* @__PURE__ */ new Map();
|
|
671
671
|
function getSessionLLMClient(sessionId) {
|
|
672
|
-
const
|
|
673
|
-
if (!
|
|
672
|
+
const effective = sessionManager.resolveEffectiveProviderModel(sessionId);
|
|
673
|
+
if (!effective.providerId || !effective.model || !providerManager) {
|
|
674
674
|
return getLLMClient();
|
|
675
675
|
}
|
|
676
|
-
const resolvedModel = providerManager.resolveModel(
|
|
677
|
-
const effectiveModel = resolvedModel ??
|
|
678
|
-
const cacheKey = `${
|
|
676
|
+
const resolvedModel = providerManager.resolveModel(effective.providerId, effective.model);
|
|
677
|
+
const effectiveModel = resolvedModel ?? effective.model;
|
|
678
|
+
const cacheKey = `${effective.providerId}:${effectiveModel}`;
|
|
679
679
|
const cached = sessionLLMClients.get(sessionId);
|
|
680
680
|
if (cached && cached.key === cacheKey) {
|
|
681
681
|
return cached.client;
|
|
682
682
|
}
|
|
683
|
-
const provider = providerManager.getProviders().find((p) => p.id ===
|
|
683
|
+
const provider = providerManager.getProviders().find((p) => p.id === effective.providerId);
|
|
684
684
|
if (!provider) {
|
|
685
|
-
logger.warn("Session references
|
|
685
|
+
logger.warn("Session references missing provider, falling back to global", {
|
|
686
686
|
sessionId,
|
|
687
|
-
providerId:
|
|
687
|
+
providerId: effective.providerId
|
|
688
688
|
});
|
|
689
|
-
sessionManager.
|
|
689
|
+
const session2 = sessionManager.getSession(sessionId);
|
|
690
|
+
if (session2?.providerId === effective.providerId) {
|
|
691
|
+
sessionManager.setSessionProvider(sessionId, null, null, false);
|
|
692
|
+
sessionManager.setSessionProviderActive(sessionId, true);
|
|
693
|
+
}
|
|
690
694
|
sessionLLMClients.delete(sessionId);
|
|
691
695
|
return getLLMClient();
|
|
692
696
|
}
|
|
693
|
-
const client = providerManager.createClient(
|
|
697
|
+
const client = providerManager.createClient(effective.providerId, effectiveModel);
|
|
694
698
|
if (!client) {
|
|
695
699
|
logger.warn("Could not create session provider client, falling back to global", {
|
|
696
700
|
sessionId,
|
|
697
|
-
providerId:
|
|
698
|
-
model:
|
|
701
|
+
providerId: effective.providerId,
|
|
702
|
+
model: effective.model
|
|
699
703
|
});
|
|
700
704
|
return getLLMClient();
|
|
701
705
|
}
|
|
702
706
|
const concreteModel = client.getModel();
|
|
703
|
-
|
|
704
|
-
|
|
707
|
+
const session = sessionManager.getSession(sessionId);
|
|
708
|
+
if (session?.providerId === effective.providerId && session.providerModel === effective.model && session.providerModel !== concreteModel) {
|
|
709
|
+
sessionManager.setSessionProvider(sessionId, effective.providerId, concreteModel);
|
|
705
710
|
}
|
|
706
|
-
sessionLLMClients.set(sessionId, { key: `${
|
|
711
|
+
sessionLLMClients.set(sessionId, { key: `${effective.providerId}:${concreteModel}`, client });
|
|
707
712
|
return client;
|
|
708
713
|
}
|
|
709
714
|
function getSessionStatsIdentity(sessionId) {
|
|
710
|
-
const
|
|
711
|
-
if (!
|
|
715
|
+
const effective = sessionManager.resolveEffectiveProviderModel(sessionId);
|
|
716
|
+
if (!effective.providerId || !providerManager) {
|
|
712
717
|
return resolveStatsIdentity(getLLMClient(), getActiveProvider);
|
|
713
718
|
}
|
|
714
|
-
const provider = providerManager.getProviders().find((p) => p.id ===
|
|
719
|
+
const provider = providerManager.getProviders().find((p) => p.id === effective.providerId);
|
|
715
720
|
const client = getSessionLLMClient(sessionId);
|
|
716
721
|
return {
|
|
717
|
-
providerId: provider?.id ??
|
|
722
|
+
providerId: provider?.id ?? effective.providerId,
|
|
718
723
|
providerName: provider?.name ?? "Unknown Provider",
|
|
719
724
|
backend: provider?.backend ?? client.getBackend(),
|
|
720
725
|
model: client.getModel()
|
|
@@ -1281,8 +1286,8 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1281
1286
|
}
|
|
1282
1287
|
const session = sessionManager.requireSession(sessionId);
|
|
1283
1288
|
try {
|
|
1284
|
-
const { buildCachedPrompt } = await import("./dynamic-context-
|
|
1285
|
-
const allAgents = await import("./registry-
|
|
1289
|
+
const { buildCachedPrompt } = await import("./dynamic-context-KPZECHZH.js");
|
|
1290
|
+
const allAgents = await import("./registry-37GL3DAP.js");
|
|
1286
1291
|
const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
|
|
1287
1292
|
const modelName = session.providerModel ?? _providerManager?.getCurrentModel();
|
|
1288
1293
|
const { systemPrompt: newPrompt, hash: newHash } = await buildCachedPrompt(
|
|
@@ -1606,4 +1611,4 @@ export {
|
|
|
1606
1611
|
signalMcpReady,
|
|
1607
1612
|
createWebSocketServer
|
|
1608
1613
|
};
|
|
1609
|
-
//# sourceMappingURL=chunk-
|
|
1614
|
+
//# sourceMappingURL=chunk-ZELEYSTY.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLLMClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-J77SLE3M.js";
|
|
4
|
+
import "./chunk-GJL3QSMP.js";
|
|
5
5
|
import "./chunk-AZHWLLPP.js";
|
|
6
6
|
import "./chunk-HNCM3D7Y.js";
|
|
7
7
|
import "./chunk-MIPQOHWS.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-POTCPZJF.js";
|
|
9
|
+
import "./chunk-FGVMRFDW.js";
|
|
10
|
+
import "./chunk-NYQKSKDB.js";
|
|
11
11
|
import "./chunk-K44MW7JJ.js";
|
|
12
12
|
import "./chunk-YLJ4XMA6.js";
|
|
13
13
|
export {
|
|
14
14
|
createLLMClient
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=client-
|
|
16
|
+
//# sourceMappingURL=client-JKPDMJ7S.js.map
|
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
COMPACTION_MAX_RATIO,
|
|
4
4
|
appendCompactionPrompt,
|
|
5
5
|
shouldCompact
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-6A2VIV36.js";
|
|
7
|
+
import "./chunk-62GUO2EG.js";
|
|
8
|
+
import "./chunk-Y7FGHKBW.js";
|
|
9
|
+
import "./chunk-J3IJJ55E.js";
|
|
10
|
+
import "./chunk-SLW3KKPP.js";
|
|
11
|
+
import "./chunk-EZ67GBEO.js";
|
|
12
|
+
import "./chunk-LWXLNE6M.js";
|
|
13
13
|
import "./chunk-LCLH6ZUL.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2N7KFNMY.js";
|
|
15
15
|
import "./chunk-OSXPQSLW.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-DIALH34K.js";
|
|
17
17
|
import "./chunk-J2GP3J3X.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-GJL3QSMP.js";
|
|
19
19
|
import "./chunk-AZHWLLPP.js";
|
|
20
20
|
import "./chunk-MIPQOHWS.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FGVMRFDW.js";
|
|
22
|
+
import "./chunk-NYQKSKDB.js";
|
|
23
23
|
import "./chunk-K44MW7JJ.js";
|
|
24
24
|
import "./chunk-CQGTEGKL.js";
|
|
25
25
|
import "./chunk-YLJ4XMA6.js";
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
appendCompactionPrompt,
|
|
30
30
|
shouldCompact
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=compactor-
|
|
32
|
+
//# sourceMappingURL=compactor-MKD3CAFM.js.map
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
computeSessionHash,
|
|
6
6
|
computeUnifiedDiff,
|
|
7
7
|
getToolFingerprint
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-5QTERLHH.js";
|
|
9
|
+
import "./chunk-LSEHJ2WI.js";
|
|
10
|
+
import "./chunk-Y7FGHKBW.js";
|
|
11
|
+
import "./chunk-EZ67GBEO.js";
|
|
12
|
+
import "./chunk-2N7KFNMY.js";
|
|
13
13
|
import "./chunk-OSXPQSLW.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-DIALH34K.js";
|
|
15
|
+
import "./chunk-FGVMRFDW.js";
|
|
16
|
+
import "./chunk-NYQKSKDB.js";
|
|
17
17
|
import "./chunk-K44MW7JJ.js";
|
|
18
18
|
import "./chunk-CQGTEGKL.js";
|
|
19
19
|
import "./chunk-YLJ4XMA6.js";
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
computeUnifiedDiff,
|
|
26
26
|
getToolFingerprint
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=dynamic-context-
|
|
28
|
+
//# sourceMappingURL=dynamic-context-KPZECHZH.js.map
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
isStoredEvent,
|
|
41
41
|
isTurnEvent,
|
|
42
42
|
truncateSessionMessages
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-J3IJJ55E.js";
|
|
44
|
+
import "./chunk-SLW3KKPP.js";
|
|
45
45
|
import {
|
|
46
46
|
buildContextMessagesFromEventHistory,
|
|
47
47
|
buildContextMessagesFromMessages,
|
|
@@ -58,13 +58,13 @@ import {
|
|
|
58
58
|
foldTodos,
|
|
59
59
|
foldTurnEventsToSnapshotMessages,
|
|
60
60
|
getMessagesForWindow
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LWXLNE6M.js";
|
|
62
62
|
import "./chunk-LCLH6ZUL.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-2N7KFNMY.js";
|
|
64
64
|
import "./chunk-OSXPQSLW.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-DIALH34K.js";
|
|
66
|
+
import "./chunk-FGVMRFDW.js";
|
|
67
|
+
import "./chunk-NYQKSKDB.js";
|
|
68
68
|
import "./chunk-K44MW7JJ.js";
|
|
69
69
|
import "./chunk-CQGTEGKL.js";
|
|
70
70
|
import "./chunk-YLJ4XMA6.js";
|
|
@@ -126,4 +126,4 @@ export {
|
|
|
126
126
|
isTurnEvent,
|
|
127
127
|
truncateSessionMessages
|
|
128
128
|
};
|
|
129
|
-
//# sourceMappingURL=events-
|
|
129
|
+
//# sourceMappingURL=events-6P4TDTSD.js.map
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
spreadOptionalMessageFields,
|
|
27
27
|
stripOrphanedToolCalls,
|
|
28
28
|
trimSnapshotStreamingOutput
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LWXLNE6M.js";
|
|
30
30
|
import "./chunk-LCLH6ZUL.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-2N7KFNMY.js";
|
|
32
32
|
import "./chunk-OSXPQSLW.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-DIALH34K.js";
|
|
34
|
+
import "./chunk-FGVMRFDW.js";
|
|
35
|
+
import "./chunk-NYQKSKDB.js";
|
|
36
36
|
import "./chunk-K44MW7JJ.js";
|
|
37
37
|
import "./chunk-CQGTEGKL.js";
|
|
38
38
|
import "./chunk-YLJ4XMA6.js";
|
|
@@ -65,4 +65,4 @@ export {
|
|
|
65
65
|
stripOrphanedToolCalls,
|
|
66
66
|
trimSnapshotStreamingOutput
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=folding-
|
|
68
|
+
//# sourceMappingURL=folding-3LA2WX2B.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OpenAIHttpClient
|
|
3
|
+
} from "./chunk-POTCPZJF.js";
|
|
4
|
+
import "./chunk-FGVMRFDW.js";
|
|
5
|
+
import "./chunk-NYQKSKDB.js";
|
|
6
|
+
import "./chunk-K44MW7JJ.js";
|
|
7
|
+
import "./chunk-YLJ4XMA6.js";
|
|
8
|
+
export {
|
|
9
|
+
OpenAIHttpClient
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=http-client-IKOARXI7.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startInspectProxy,
|
|
3
3
|
stopAllInspectProxies
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OXANSWVZ.js";
|
|
5
|
+
import "./chunk-DIALH34K.js";
|
|
6
|
+
import "./chunk-NYQKSKDB.js";
|
|
7
7
|
import "./chunk-K44MW7JJ.js";
|
|
8
8
|
import "./chunk-YLJ4XMA6.js";
|
|
9
9
|
export {
|
|
10
10
|
startInspectProxy,
|
|
11
11
|
stopAllInspectProxies
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=inspect-proxy-
|
|
13
|
+
//# sourceMappingURL=inspect-proxy-IDLUAQH5.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
abortRunnerRun,
|
|
3
|
+
launchWorkflowRun
|
|
4
|
+
} from "./chunk-W3WZ54KP.js";
|
|
5
|
+
import "./chunk-VUANU5A5.js";
|
|
6
|
+
import "./chunk-5QTERLHH.js";
|
|
7
|
+
import "./chunk-TR4DQZIG.js";
|
|
8
|
+
import "./chunk-LSEHJ2WI.js";
|
|
9
|
+
import "./chunk-OXANSWVZ.js";
|
|
10
|
+
import "./chunk-I22B6KWV.js";
|
|
11
|
+
import "./chunk-I72ACQ6R.js";
|
|
12
|
+
import "./chunk-JE7LW7Y6.js";
|
|
13
|
+
import "./chunk-OAN4BXEW.js";
|
|
14
|
+
import "./chunk-RMOKNQAS.js";
|
|
15
|
+
import "./chunk-J7GAZGZT.js";
|
|
16
|
+
import "./chunk-O63CDVNI.js";
|
|
17
|
+
import "./chunk-YBOU4ZFD.js";
|
|
18
|
+
import "./chunk-5A4YN6I7.js";
|
|
19
|
+
import "./chunk-XAAEP5XM.js";
|
|
20
|
+
import "./chunk-JURM3RPZ.js";
|
|
21
|
+
import "./chunk-62GUO2EG.js";
|
|
22
|
+
import "./chunk-Y7FGHKBW.js";
|
|
23
|
+
import "./chunk-J3IJJ55E.js";
|
|
24
|
+
import "./chunk-SLW3KKPP.js";
|
|
25
|
+
import "./chunk-EZ67GBEO.js";
|
|
26
|
+
import "./chunk-LWXLNE6M.js";
|
|
27
|
+
import "./chunk-LCLH6ZUL.js";
|
|
28
|
+
import "./chunk-2N7KFNMY.js";
|
|
29
|
+
import "./chunk-OSXPQSLW.js";
|
|
30
|
+
import "./chunk-DIALH34K.js";
|
|
31
|
+
import "./chunk-UJRWYZHM.js";
|
|
32
|
+
import "./chunk-K2QKX4ZJ.js";
|
|
33
|
+
import "./chunk-J2GP3J3X.js";
|
|
34
|
+
import "./chunk-J77SLE3M.js";
|
|
35
|
+
import "./chunk-GJL3QSMP.js";
|
|
36
|
+
import "./chunk-AZHWLLPP.js";
|
|
37
|
+
import "./chunk-HNCM3D7Y.js";
|
|
38
|
+
import "./chunk-MIPQOHWS.js";
|
|
39
|
+
import "./chunk-POTCPZJF.js";
|
|
40
|
+
import "./chunk-FGVMRFDW.js";
|
|
41
|
+
import "./chunk-NYQKSKDB.js";
|
|
42
|
+
import "./chunk-K44MW7JJ.js";
|
|
43
|
+
import "./chunk-7OHXF5GW.js";
|
|
44
|
+
import "./chunk-KSDWQ6IZ.js";
|
|
45
|
+
import "./chunk-KSXCOHHW.js";
|
|
46
|
+
import "./chunk-CQGTEGKL.js";
|
|
47
|
+
import "./chunk-YLJ4XMA6.js";
|
|
48
|
+
export {
|
|
49
|
+
abortRunnerRun,
|
|
50
|
+
launchWorkflowRun
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=launch-YWXQQWZN.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
onProcessEvent,
|
|
7
7
|
startProcessCommand,
|
|
8
8
|
stopProcess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I22B6KWV.js";
|
|
10
10
|
import "./chunk-I72ACQ6R.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-EZ67GBEO.js";
|
|
12
|
+
import "./chunk-FGVMRFDW.js";
|
|
13
|
+
import "./chunk-NYQKSKDB.js";
|
|
14
14
|
import "./chunk-K44MW7JJ.js";
|
|
15
15
|
import "./chunk-YLJ4XMA6.js";
|
|
16
16
|
export {
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
startProcessCommand,
|
|
23
23
|
stopProcess
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=manager-
|
|
25
|
+
//# sourceMappingURL=manager-NFKTUR64.js.map
|