openfox 2.0.100 → 2.0.102
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 +34 -0
- package/dist/CHANGELOG.md +34 -0
- package/dist/{chat-handler-YPWT4MAQ.js → chat-handler-IBFSBSGV.js} +22 -21
- package/dist/{chunk-O2PLNJIU.js → chunk-2EYTYXWN.js} +2 -2
- package/dist/{chunk-MRWR3SIT.js → chunk-4Z2ARCY3.js} +2 -2
- package/dist/{chunk-AY37NB76.js → chunk-5ZJYEINJ.js} +2 -2
- package/dist/{chunk-FXRZFIDX.js → chunk-6ZV3NYEE.js} +201 -103
- package/dist/{chunk-XTKLA4AK.js → chunk-73EV6QYX.js} +4 -4
- package/dist/{chunk-XLI6PDJG.js → chunk-7HIJP4PC.js} +2 -2
- package/dist/{chunk-W77HIJGH.js → chunk-AI27N57J.js} +3 -3
- package/dist/{chunk-VJILJ22N.js → chunk-BJDQPILB.js} +3 -3
- package/dist/{chunk-MO3GJIT3.js → chunk-DPRJYQ5U.js} +132 -43
- package/dist/{chunk-3LRYZ7R3.js → chunk-FQS7A5M4.js} +2 -2
- package/dist/{chunk-NWO6GRYE.js → chunk-JE7LW7Y6.js} +2 -1
- package/dist/{chunk-C6QW2IDH.js → chunk-K6VVTE6C.js} +30 -28
- package/dist/{chunk-UIK6GA3P.js → chunk-KCED2X4H.js} +2 -2
- package/dist/{chunk-NLN5LPQ4.js → chunk-KKEBXFB3.js} +2 -2
- package/dist/{chunk-HAFRPV7I.js → chunk-KLK5N4OX.js} +3 -3
- package/dist/{chunk-KQPDU65K.js → chunk-MGKS2NG2.js} +3 -3
- package/dist/{chunk-TDHDLDGQ.js → chunk-MR7ZEGOF.js} +2 -2
- package/dist/{chunk-NJQJUP6Z.js → chunk-QGWS2EBU.js} +5 -5
- package/dist/{chunk-CFTT46KH.js → chunk-QL2G5UWE.js} +26 -24
- package/dist/{chunk-ZIMGU5ZH.js → chunk-RZC6DAT2.js} +2 -2
- package/dist/chunk-SV3I2YNO.js +7 -0
- package/dist/chunk-W5FTCTGY.js +72 -0
- package/dist/{chunk-E2CSSHSI.js → chunk-W5RC44R6.js} +10 -10
- package/dist/{chunk-KNYPBXPW.js → chunk-WPCYFH6X.js} +4 -4
- package/dist/{chunk-UEOEA6BB.js → chunk-YZSBJUGC.js} +3 -2
- package/dist/{chunk-IXFEXEUL.js → chunk-Z753S3X7.js} +6 -6
- package/dist/{chunk-G5JFKTSR.js → chunk-ZLCPNTRT.js} +4 -4
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-CFTJH6BY.js → client-Q7BHKOCD.js} +5 -5
- package/dist/{client-pure-DCEZBFKW.js → client-pure-ONSVWEG5.js} +2 -2
- package/dist/command-defaults/add-criteria.command.md +0 -1
- package/dist/{compactor-B4V75Q3A.js → compactor-43P3LGDU.js} +11 -11
- package/dist/{dynamic-context-MA5BIJ52.js → dynamic-context-AMPVZXUU.js} +7 -7
- package/dist/{events-4THEZWVL.js → events-RCC32JOA.js} +6 -6
- package/dist/{folding-OYBO2NTH.js → folding-ZNUXPQUD.js} +4 -4
- package/dist/{http-client-U6DVFL7F.js → http-client-WGNBG7PC.js} +3 -3
- package/dist/{manager-53J5P4EZ.js → manager-HFGJLW7Q.js} +4 -4
- package/dist/model-overrides-DQDT5Y7R.js +21 -0
- package/dist/{orchestrator-DHBU7LRB.js → orchestrator-QDXKDLOW.js} +26 -25
- package/dist/package.json +1 -1
- package/dist/{path-security-6GYETPWN.js → path-security-SUFEIBTC.js} +7 -7
- package/dist/{platform-7KXP3VVA.js → platform-2RLL7RAE.js} +3 -3
- package/dist/{processor-RC3IBY2J.js → processor-YWNLWAZW.js} +21 -20
- package/dist/{provider-PEJ27FBM.js → provider-FX3QCGAF.js} +6 -6
- package/dist/{provider-manager-EJGPSLOZ.js → provider-manager-GLG6BA32.js} +6 -6
- package/dist/{registry-QEOTM3IG.js → registry-GBNLVWYQ.js} +3 -3
- package/dist/{serve-BBVBUYMU.js → serve-RKHLNGEV.js} +27 -26
- package/dist/server/index.d.ts +15 -0
- package/dist/server/index.js +26 -25
- package/dist/server-QGQGSHW6.js +47 -0
- package/dist/{service-2PW2V25M.js → service-CXWJQFOZ.js} +62 -20
- package/dist/{session-overrides-BQSE3V3F.js → session-overrides-MBGBX6TM.js} +5 -5
- package/dist/{sessions-AUDWMF55.js → sessions-FEIFYGH7.js} +4 -4
- package/dist/{settings-2WVGUPYV.js → settings-FT7HF7ZB.js} +2 -2
- package/dist/skill-defaults/browser/SKILL.md +8 -1
- package/dist/{tool-adapter-MOGEI6TP.js → tool-adapter-FEAHWU5C.js} +2 -2
- package/dist/{tools-X5FONL4Q.js → tools-M5DKWCJJ.js} +19 -16
- package/dist/{update-ZWVWDYZ2.js → update-N4GD5IUX.js} +2 -2
- package/dist/web/assets/{index-BG5sD2ez.css → index-B0CNNl1k.css} +1 -1
- package/dist/web/assets/index-FWViKQkM.js +324 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-T3PLCTNA.js +0 -7
- package/dist/server-ORYMG5HD.js +0 -46
- package/dist/web/assets/index-ChM1ad7e.js +0 -324
|
@@ -163,13 +163,13 @@ async function runCli(options) {
|
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
165
165
|
case "provider": {
|
|
166
|
-
const { runProviderCommand } = await import("./provider-
|
|
166
|
+
const { runProviderCommand } = await import("./provider-FX3QCGAF.js");
|
|
167
167
|
const [, subcommand] = positionals;
|
|
168
168
|
await runProviderCommand(mode, subcommand);
|
|
169
169
|
break;
|
|
170
170
|
}
|
|
171
171
|
case "service": {
|
|
172
|
-
const { runServiceCommand } = await import("./service-
|
|
172
|
+
const { runServiceCommand } = await import("./service-CXWJQFOZ.js");
|
|
173
173
|
const [, subcommand, ...serviceArgs] = positionals;
|
|
174
174
|
if (values.follow) {
|
|
175
175
|
serviceArgs.push("-f");
|
|
@@ -200,7 +200,7 @@ async function runCli(options) {
|
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
202
|
case "update": {
|
|
203
|
-
const { runUpdate } = await import("./update-
|
|
203
|
+
const { runUpdate } = await import("./update-N4GD5IUX.js");
|
|
204
204
|
const code = await runUpdate();
|
|
205
205
|
if (code !== 0) {
|
|
206
206
|
process.exit(code);
|
|
@@ -213,7 +213,7 @@ async function runCli(options) {
|
|
|
213
213
|
if (!configExists) {
|
|
214
214
|
await runNetworkSetup(mode);
|
|
215
215
|
}
|
|
216
|
-
const { runServe } = await import("./serve-
|
|
216
|
+
const { runServe } = await import("./serve-RKHLNGEV.js");
|
|
217
217
|
const serveOptions = { mode };
|
|
218
218
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
219
219
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -225,4 +225,4 @@ async function runCli(options) {
|
|
|
225
225
|
export {
|
|
226
226
|
runCli
|
|
227
227
|
};
|
|
228
|
-
//# sourceMappingURL=chunk-
|
|
228
|
+
//# sourceMappingURL=chunk-QGWS2EBU.js.map
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildCachedPrompt,
|
|
3
|
+
computeDynamicContextHash,
|
|
4
|
+
getToolFingerprint
|
|
5
|
+
} from "./chunk-Z753S3X7.js";
|
|
1
6
|
import {
|
|
2
7
|
createAssemblyResult,
|
|
3
8
|
getConversationMessages,
|
|
4
9
|
getToolRegistryForAgent,
|
|
5
10
|
processEventsForConversation,
|
|
6
11
|
runTopLevelAgentLoop
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
buildCachedPrompt,
|
|
10
|
-
computeDynamicContextHash,
|
|
11
|
-
getToolFingerprint
|
|
12
|
-
} from "./chunk-IXFEXEUL.js";
|
|
12
|
+
} from "./chunk-DPRJYQ5U.js";
|
|
13
13
|
import {
|
|
14
14
|
getAllInstructions,
|
|
15
15
|
getEnabledSkillMetadata
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
PathAccessDeniedError
|
|
19
|
-
} from "./chunk-G5JFKTSR.js";
|
|
16
|
+
} from "./chunk-MGKS2NG2.js";
|
|
20
17
|
import {
|
|
21
18
|
TurnMetrics,
|
|
22
19
|
createChatDoneEvent,
|
|
23
20
|
createMessageStartEvent
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5ZJYEINJ.js";
|
|
25
22
|
import {
|
|
26
23
|
buildAgentReminder,
|
|
27
24
|
buildAgentSmallReminder
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4Z2ARCY3.js";
|
|
26
|
+
import {
|
|
27
|
+
PathAccessDeniedError
|
|
28
|
+
} from "./chunk-ZLCPNTRT.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentContextWindowId,
|
|
31
31
|
getCurrentWindowMessageOptions,
|
|
32
32
|
getEventStore
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WPCYFH6X.js";
|
|
34
34
|
import {
|
|
35
35
|
buildSnapshotFromSessionState
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2EYTYXWN.js";
|
|
37
37
|
import {
|
|
38
38
|
findAgentById,
|
|
39
39
|
getRuntimeConfig,
|
|
40
40
|
loadAllAgentsDefault,
|
|
41
41
|
resolveDefaultAgentId
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FQS7A5M4.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
45
45
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
|
|
50
50
|
// src/server/chat/orchestrator.ts
|
|
51
51
|
async function buildRetryPatterns() {
|
|
52
|
-
const { getSetting, SETTINGS_KEYS } = await import("./settings-
|
|
52
|
+
const { getSetting, SETTINGS_KEYS } = await import("./settings-FT7HF7ZB.js");
|
|
53
53
|
const raw = getSetting(SETTINGS_KEYS.RETRY_PATTERNS);
|
|
54
54
|
if (!raw) {
|
|
55
55
|
const oldXmlProtection = getSetting("llm.disableXmlProtection");
|
|
@@ -79,18 +79,18 @@ function buildGetConversationMessages(sessionId, llmClient, append) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
function resolveStatsIdentity(options) {
|
|
82
|
-
const
|
|
82
|
+
const clientModel = options.llmClient.getModel();
|
|
83
83
|
if (options.statsIdentity) {
|
|
84
84
|
return {
|
|
85
85
|
...options.statsIdentity,
|
|
86
|
-
model
|
|
86
|
+
model: options.statsIdentity.model ?? clientModel
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
return {
|
|
90
|
-
providerId: `provider:${
|
|
90
|
+
providerId: `provider:${clientModel}`,
|
|
91
91
|
providerName: "Unknown Provider",
|
|
92
92
|
backend: "unknown",
|
|
93
|
-
model
|
|
93
|
+
model: clientModel
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
async function runChatTurn(options) {
|
|
@@ -224,9 +224,10 @@ function injectAgentReminder(sessionId, agentDef) {
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
|
|
227
|
-
const statsIdentity = resolveStatsIdentity(options);
|
|
228
227
|
const allAgents = await loadAllAgentsDefault();
|
|
229
228
|
const agentDef = findAgentById(agentId, allAgents) ?? findAgentById(resolveDefaultAgentId(), allAgents);
|
|
229
|
+
const agentLlmClient = options.sessionManager.createClientForAgent(agentId, options.llmClient);
|
|
230
|
+
const statsIdentity = resolveStatsIdentity({ ...options, llmClient: agentLlmClient });
|
|
230
231
|
if (!options.warmup) {
|
|
231
232
|
injectAgentReminder(options.sessionId, agentDef);
|
|
232
233
|
}
|
|
@@ -244,8 +245,9 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
|
|
|
244
245
|
...await buildRetryPatterns(),
|
|
245
246
|
sessionManager: options.sessionManager,
|
|
246
247
|
sessionId: options.sessionId,
|
|
247
|
-
llmClient:
|
|
248
|
+
llmClient: agentLlmClient,
|
|
248
249
|
statsIdentity,
|
|
250
|
+
providerManager: options.sessionManager.getProviderManager(),
|
|
249
251
|
signal: options.signal,
|
|
250
252
|
onMessage: options.onMessage,
|
|
251
253
|
assembleRequest: async (input) => {
|
|
@@ -281,7 +283,7 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
|
|
|
281
283
|
});
|
|
282
284
|
},
|
|
283
285
|
getToolRegistry: () => getToolRegistryForAgent(agentDef, options.sessionId),
|
|
284
|
-
getConversationMessages: buildGetConversationMessages(options.sessionId,
|
|
286
|
+
getConversationMessages: buildGetConversationMessages(options.sessionId, agentLlmClient, append),
|
|
285
287
|
injectAgentReminder: () => injectAgentReminder(options.sessionId, agentDef),
|
|
286
288
|
...options.initialCompacting ? { initialCompacting: true } : {},
|
|
287
289
|
...callbacks?.injectKickoff ? { injectKickoff: callbacks.injectKickoff } : {},
|
|
@@ -309,4 +311,4 @@ export {
|
|
|
309
311
|
runChatTurn,
|
|
310
312
|
runAgentTurn
|
|
311
313
|
};
|
|
312
|
-
//# sourceMappingURL=chunk-
|
|
314
|
+
//# sourceMappingURL=chunk-QL2G5UWE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQS7A5M4.js";
|
|
4
4
|
import {
|
|
5
5
|
getDatabase
|
|
6
6
|
} from "./chunk-GLF65XDS.js";
|
|
@@ -367,4 +367,4 @@ export {
|
|
|
367
367
|
getActiveWorkflowExecution,
|
|
368
368
|
clearWorkflowExecution
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=chunk-
|
|
370
|
+
//# sourceMappingURL=chunk-RZC6DAT2.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SETTINGS_KEYS,
|
|
3
|
+
getSetting,
|
|
4
|
+
setSetting
|
|
5
|
+
} from "./chunk-YZSBJUGC.js";
|
|
6
|
+
|
|
7
|
+
// src/server/agents/model-overrides.ts
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
var AGENT_MODEL_OVERRIDES_KEY = SETTINGS_KEYS.AGENT_MODEL_OVERRIDES;
|
|
10
|
+
var overrideSchema = z.object({
|
|
11
|
+
providerId: z.string().min(1),
|
|
12
|
+
model: z.string().min(1)
|
|
13
|
+
});
|
|
14
|
+
function parseAgentModelOverrides(raw) {
|
|
15
|
+
if (!raw) return {};
|
|
16
|
+
let parsed;
|
|
17
|
+
try {
|
|
18
|
+
parsed = JSON.parse(raw);
|
|
19
|
+
} catch {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return {};
|
|
23
|
+
const result = {};
|
|
24
|
+
for (const [agentId, value] of Object.entries(parsed)) {
|
|
25
|
+
const validated = overrideSchema.safeParse(value);
|
|
26
|
+
if (validated.success) {
|
|
27
|
+
result[agentId] = validated.data;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
function getAgentModelOverrides() {
|
|
33
|
+
return parseAgentModelOverrides(getSetting(AGENT_MODEL_OVERRIDES_KEY));
|
|
34
|
+
}
|
|
35
|
+
function getAgentModelOverride(agentId) {
|
|
36
|
+
return getAgentModelOverrides()[agentId];
|
|
37
|
+
}
|
|
38
|
+
function setAgentModelOverride(agentId, override) {
|
|
39
|
+
const overrides = getAgentModelOverrides();
|
|
40
|
+
if (override === null) {
|
|
41
|
+
delete overrides[agentId];
|
|
42
|
+
} else {
|
|
43
|
+
overrides[agentId] = override;
|
|
44
|
+
}
|
|
45
|
+
setSetting(AGENT_MODEL_OVERRIDES_KEY, JSON.stringify(overrides));
|
|
46
|
+
}
|
|
47
|
+
function resolveLLMClientForAgent(agentId, fallbackClient, providerManager) {
|
|
48
|
+
const override = getAgentModelOverride(agentId);
|
|
49
|
+
if (!override) {
|
|
50
|
+
return { client: fallbackClient, usedOverride: false };
|
|
51
|
+
}
|
|
52
|
+
const client = providerManager.createClient(override.providerId, override.model);
|
|
53
|
+
if (!client) {
|
|
54
|
+
return {
|
|
55
|
+
client: fallbackClient,
|
|
56
|
+
usedOverride: false,
|
|
57
|
+
override,
|
|
58
|
+
warning: `Agent '${agentId}' is configured to use model '${override.model}' from provider '${override.providerId}', but it is no longer available. Falling back to the session model.`
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return { client, usedOverride: true, override };
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
AGENT_MODEL_OVERRIDES_KEY,
|
|
66
|
+
parseAgentModelOverrides,
|
|
67
|
+
getAgentModelOverrides,
|
|
68
|
+
getAgentModelOverride,
|
|
69
|
+
setAgentModelOverride,
|
|
70
|
+
resolveLLMClientForAgent
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=chunk-W5FTCTGY.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
combineEventsWithSnapshot,
|
|
3
|
+
getEventStore
|
|
4
|
+
} from "./chunk-WPCYFH6X.js";
|
|
1
5
|
import {
|
|
2
6
|
createContextStateMessage,
|
|
3
7
|
createSessionStateMessage
|
|
@@ -5,23 +9,19 @@ import {
|
|
|
5
9
|
import {
|
|
6
10
|
getPendingQuestionsForSession
|
|
7
11
|
} from "./chunk-EU3WWTFH.js";
|
|
8
|
-
import {
|
|
9
|
-
combineEventsWithSnapshot,
|
|
10
|
-
getEventStore
|
|
11
|
-
} from "./chunk-KNYPBXPW.js";
|
|
12
12
|
import {
|
|
13
13
|
buildMessagesFromStoredEvents,
|
|
14
14
|
foldPendingConfirmations
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2EYTYXWN.js";
|
|
16
16
|
import {
|
|
17
17
|
updateSessionMetadata
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RZC6DAT2.js";
|
|
19
19
|
import {
|
|
20
20
|
getRuntimeConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FQS7A5M4.js";
|
|
22
22
|
import {
|
|
23
23
|
getMaxVisibleItems
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YZSBJUGC.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
27
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -153,7 +153,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
153
153
|
client = deps.getLLMClient();
|
|
154
154
|
client.setModel(providerConfig.model);
|
|
155
155
|
} else if (providerConfig) {
|
|
156
|
-
const { createLLMClient } = await import("./client-
|
|
156
|
+
const { createLLMClient } = await import("./client-Q7BHKOCD.js");
|
|
157
157
|
client = createLLMClient({
|
|
158
158
|
llm: {
|
|
159
159
|
baseUrl: providerConfig.baseUrl,
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
needsNameGeneration,
|
|
205
205
|
generateSessionNameForSession
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
207
|
+
//# sourceMappingURL=chunk-W5RC44R6.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
foldContextState,
|
|
6
6
|
foldSessionState,
|
|
7
7
|
spreadOptionalMessageFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2EYTYXWN.js";
|
|
9
9
|
import {
|
|
10
10
|
updateSessionMessageCount
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RZC6DAT2.js";
|
|
12
12
|
import {
|
|
13
13
|
getRuntimeConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FQS7A5M4.js";
|
|
15
15
|
import {
|
|
16
16
|
logger
|
|
17
17
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1175,4 +1175,4 @@ export {
|
|
|
1175
1175
|
truncateSessionMessages,
|
|
1176
1176
|
getRecentUserPromptsForSession
|
|
1177
1177
|
};
|
|
1178
|
-
//# sourceMappingURL=chunk-
|
|
1178
|
+
//# sourceMappingURL=chunk-WPCYFH6X.js.map
|
|
@@ -32,7 +32,8 @@ var SETTINGS_KEYS = {
|
|
|
32
32
|
CONFIRM_ON_WORKSPACE_ACTIONS: "tools.confirmOnWorkspaceActions",
|
|
33
33
|
FEATURES_PER_SESSION_MCP: "features.perSessionMcp",
|
|
34
34
|
PROXY_URL: "network.proxyUrl",
|
|
35
|
-
DEFAULT_AGENT: "agent.defaultAgent"
|
|
35
|
+
DEFAULT_AGENT: "agent.defaultAgent",
|
|
36
|
+
AGENT_MODEL_OVERRIDES: "agent.modelOverrides"
|
|
36
37
|
};
|
|
37
38
|
var SETTINGS_DEFAULTS = {
|
|
38
39
|
[SETTINGS_KEYS.DISPLAY_SHOW_THINKING]: "true",
|
|
@@ -116,4 +117,4 @@ export {
|
|
|
116
117
|
getAllSettings,
|
|
117
118
|
getMaxVisibleItems
|
|
118
119
|
};
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-YZSBJUGC.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAllInstructions,
|
|
3
3
|
getEnabledSkillMetadata
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MGKS2NG2.js";
|
|
5
5
|
import {
|
|
6
6
|
buildTopLevelSystemPrompt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4Z2ARCY3.js";
|
|
8
8
|
import {
|
|
9
9
|
findAgentById,
|
|
10
10
|
getRuntimeConfig,
|
|
11
11
|
getSubAgents,
|
|
12
12
|
loadAllAgentsDefault,
|
|
13
13
|
resolveDefaultAgentId
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FQS7A5M4.js";
|
|
15
15
|
import {
|
|
16
16
|
logger
|
|
17
17
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -104,7 +104,7 @@ function resolveAgentDef(sessionManager, sessionId) {
|
|
|
104
104
|
}
|
|
105
105
|
async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
|
|
106
106
|
const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
|
|
107
|
-
const { getToolRegistryForAgent } = await import("./tools-
|
|
107
|
+
const { getToolRegistryForAgent } = await import("./tools-M5DKWCJJ.js");
|
|
108
108
|
const tools = getToolRegistryForAgent(agentDef, sessionId).definitions;
|
|
109
109
|
const toolFingerprint = getToolFingerprint(tools);
|
|
110
110
|
const allAgents = await loadAllAgentsDefault();
|
|
@@ -117,7 +117,7 @@ async function buildCachedPrompt(sessionManager, sessionId, agentDef) {
|
|
|
117
117
|
async function computeSessionHash(sessionManager, sessionId) {
|
|
118
118
|
const { instructionContent, skills } = await loadSessionContext(sessionManager, sessionId);
|
|
119
119
|
const agentDef = await resolveAgentDef(sessionManager, sessionId);
|
|
120
|
-
const { getToolRegistryForAgent } = await import("./tools-
|
|
120
|
+
const { getToolRegistryForAgent } = await import("./tools-M5DKWCJJ.js");
|
|
121
121
|
const tools = getToolRegistryForAgent(agentDef, sessionId).definitions;
|
|
122
122
|
const toolFingerprint = getToolFingerprint(tools);
|
|
123
123
|
return computeDynamicContextHash(instructionContent, skills, toolFingerprint);
|
|
@@ -141,4 +141,4 @@ export {
|
|
|
141
141
|
computeSessionHash,
|
|
142
142
|
applyDynamicContext
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=chunk-
|
|
144
|
+
//# sourceMappingURL=chunk-Z753S3X7.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getEventStore
|
|
3
|
+
} from "./chunk-WPCYFH6X.js";
|
|
1
4
|
import {
|
|
2
5
|
createChatPathConfirmationMessage
|
|
3
6
|
} from "./chunk-27SDWNKL.js";
|
|
4
|
-
import {
|
|
5
|
-
getEventStore
|
|
6
|
-
} from "./chunk-KNYPBXPW.js";
|
|
7
7
|
|
|
8
8
|
// src/server/tools/path-security.ts
|
|
9
9
|
import { realpath } from "fs/promises";
|
|
@@ -494,4 +494,4 @@ export {
|
|
|
494
494
|
getConfirmationSessionId,
|
|
495
495
|
getPendingConfirmationsBySession
|
|
496
496
|
};
|
|
497
|
-
//# sourceMappingURL=chunk-
|
|
497
|
+
//# sourceMappingURL=chunk-ZLCPNTRT.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-
|
|
3
|
+
} from "./chunk-BJDQPILB.js";
|
|
4
4
|
import "./chunk-V4IE7HJY.js";
|
|
5
5
|
import "./chunk-YHEQTVFV.js";
|
|
6
6
|
import "./chunk-HNCM3D7Y.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-KCED2X4H.js";
|
|
8
|
+
import "./chunk-MR7ZEGOF.js";
|
|
9
|
+
import "./chunk-YZSBJUGC.js";
|
|
10
10
|
import "./chunk-GLF65XDS.js";
|
|
11
11
|
import "./chunk-K44MW7JJ.js";
|
|
12
12
|
import "./chunk-5WRI5ZAA.js";
|
|
13
13
|
export {
|
|
14
14
|
createLLMClient
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=client-
|
|
16
|
+
//# sourceMappingURL=client-Q7BHKOCD.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
mapFinishReason,
|
|
9
9
|
parseToolArguments,
|
|
10
10
|
resolveAttachmentsInMessages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KCED2X4H.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-ONSVWEG5.js.map
|
|
@@ -3,19 +3,19 @@ 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-
|
|
13
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-73EV6QYX.js";
|
|
7
|
+
import "./chunk-5ZJYEINJ.js";
|
|
8
|
+
import "./chunk-4Z2ARCY3.js";
|
|
9
|
+
import "./chunk-WPCYFH6X.js";
|
|
10
|
+
import "./chunk-KKEBXFB3.js";
|
|
11
|
+
import "./chunk-2EYTYXWN.js";
|
|
12
|
+
import "./chunk-RZC6DAT2.js";
|
|
13
|
+
import "./chunk-FQS7A5M4.js";
|
|
14
14
|
import "./chunk-J2GP3J3X.js";
|
|
15
15
|
import "./chunk-V4IE7HJY.js";
|
|
16
16
|
import "./chunk-YHEQTVFV.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-KCED2X4H.js";
|
|
18
|
+
import "./chunk-YZSBJUGC.js";
|
|
19
19
|
import "./chunk-GLF65XDS.js";
|
|
20
20
|
import "./chunk-K44MW7JJ.js";
|
|
21
21
|
import "./chunk-CQGTEGKL.js";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
appendCompactionPrompt,
|
|
27
27
|
shouldCompact
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=compactor-
|
|
29
|
+
//# sourceMappingURL=compactor-43P3LGDU.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
computeSessionHash,
|
|
6
6
|
computeUnifiedDiff,
|
|
7
7
|
getToolFingerprint
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-Z753S3X7.js";
|
|
9
|
+
import "./chunk-MGKS2NG2.js";
|
|
10
|
+
import "./chunk-4Z2ARCY3.js";
|
|
11
|
+
import "./chunk-KKEBXFB3.js";
|
|
10
12
|
import "./chunk-WWFH5GAR.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-3LRYZ7R3.js";
|
|
14
|
-
import "./chunk-UEOEA6BB.js";
|
|
13
|
+
import "./chunk-FQS7A5M4.js";
|
|
14
|
+
import "./chunk-YZSBJUGC.js";
|
|
15
15
|
import "./chunk-GLF65XDS.js";
|
|
16
16
|
import "./chunk-K44MW7JJ.js";
|
|
17
17
|
import "./chunk-CQGTEGKL.js";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
computeUnifiedDiff,
|
|
25
25
|
getToolFingerprint
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=dynamic-context-
|
|
27
|
+
//# sourceMappingURL=dynamic-context-AMPVZXUU.js.map
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
isStoredEvent,
|
|
41
41
|
isTurnEvent,
|
|
42
42
|
truncateSessionMessages
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WPCYFH6X.js";
|
|
44
44
|
import {
|
|
45
45
|
buildContextMessagesFromEventHistory,
|
|
46
46
|
buildContextMessagesFromMessages,
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
foldTodos,
|
|
58
58
|
foldTurnEventsToSnapshotMessages,
|
|
59
59
|
getMessagesForWindow
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-2EYTYXWN.js";
|
|
61
|
+
import "./chunk-RZC6DAT2.js";
|
|
62
|
+
import "./chunk-FQS7A5M4.js";
|
|
63
|
+
import "./chunk-YZSBJUGC.js";
|
|
64
64
|
import "./chunk-GLF65XDS.js";
|
|
65
65
|
import "./chunk-K44MW7JJ.js";
|
|
66
66
|
import "./chunk-CQGTEGKL.js";
|
|
@@ -123,4 +123,4 @@ export {
|
|
|
123
123
|
isTurnEvent,
|
|
124
124
|
truncateSessionMessages
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=events-
|
|
126
|
+
//# sourceMappingURL=events-RCC32JOA.js.map
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
reorderToolMessages,
|
|
26
26
|
spreadOptionalMessageFields,
|
|
27
27
|
stripOrphanedToolCalls
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-2EYTYXWN.js";
|
|
29
|
+
import "./chunk-FQS7A5M4.js";
|
|
30
|
+
import "./chunk-YZSBJUGC.js";
|
|
31
31
|
import "./chunk-GLF65XDS.js";
|
|
32
32
|
import "./chunk-K44MW7JJ.js";
|
|
33
33
|
import "./chunk-CQGTEGKL.js";
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
spreadOptionalMessageFields,
|
|
61
61
|
stripOrphanedToolCalls
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=folding-
|
|
63
|
+
//# sourceMappingURL=folding-ZNUXPQUD.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAIHttpClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MR7ZEGOF.js";
|
|
4
|
+
import "./chunk-YZSBJUGC.js";
|
|
5
5
|
import "./chunk-GLF65XDS.js";
|
|
6
6
|
import "./chunk-K44MW7JJ.js";
|
|
7
7
|
import "./chunk-5WRI5ZAA.js";
|
|
8
8
|
export {
|
|
9
9
|
OpenAIHttpClient
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=http-client-
|
|
11
|
+
//# sourceMappingURL=http-client-WGNBG7PC.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
onProcessEvent,
|
|
7
7
|
startProcessCommand,
|
|
8
8
|
stopProcess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KLK5N4OX.js";
|
|
10
10
|
import "./chunk-I72ACQ6R.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-KKEBXFB3.js";
|
|
12
|
+
import "./chunk-YZSBJUGC.js";
|
|
13
13
|
import "./chunk-GLF65XDS.js";
|
|
14
14
|
import "./chunk-K44MW7JJ.js";
|
|
15
15
|
import "./chunk-5WRI5ZAA.js";
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
startProcessCommand,
|
|
23
23
|
stopProcess
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=manager-
|
|
25
|
+
//# sourceMappingURL=manager-HFGJLW7Q.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AGENT_MODEL_OVERRIDES_KEY,
|
|
3
|
+
getAgentModelOverride,
|
|
4
|
+
getAgentModelOverrides,
|
|
5
|
+
parseAgentModelOverrides,
|
|
6
|
+
resolveLLMClientForAgent,
|
|
7
|
+
setAgentModelOverride
|
|
8
|
+
} from "./chunk-W5FTCTGY.js";
|
|
9
|
+
import "./chunk-YZSBJUGC.js";
|
|
10
|
+
import "./chunk-GLF65XDS.js";
|
|
11
|
+
import "./chunk-K44MW7JJ.js";
|
|
12
|
+
import "./chunk-5WRI5ZAA.js";
|
|
13
|
+
export {
|
|
14
|
+
AGENT_MODEL_OVERRIDES_KEY,
|
|
15
|
+
getAgentModelOverride,
|
|
16
|
+
getAgentModelOverrides,
|
|
17
|
+
parseAgentModelOverrides,
|
|
18
|
+
resolveLLMClientForAgent,
|
|
19
|
+
setAgentModelOverride
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=model-overrides-DQDT5Y7R.js.map
|