openfox 1.6.82 → 1.6.84
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-I3GTBPTZ.js → auto-compaction-JGRRUO2G.js} +8 -8
- package/dist/{chat-handler-IOHM7XMZ.js → chat-handler-OH5GPGLH.js} +11 -11
- package/dist/{chunk-XI7JEBNT.js → chunk-2IIQ7EZV.js} +110 -23
- package/dist/{chunk-NDJ6FKSP.js → chunk-4VT74LCD.js} +1 -1
- package/dist/{chunk-HJOH367L.js → chunk-6GGYIEBM.js} +3 -3
- package/dist/{chunk-D67V55WE.js → chunk-6GH2PJJC.js} +4 -4
- package/dist/{chunk-WNYDTFJO.js → chunk-6THJULLK.js} +2 -2
- package/dist/{chunk-ZPQDYRQI.js → chunk-GN7RB4Y4.js} +2 -2
- package/dist/{chunk-NRJOTXHG.js → chunk-JDDNBK6T.js} +5 -5
- package/dist/{chunk-Y2LKLZ2V.js → chunk-M7INHE2B.js} +6 -6
- package/dist/{chunk-WHPOBTTU.js → chunk-QIMHUO3E.js} +4 -4
- package/dist/{chunk-DVNZAJT5.js → chunk-TLOL4I7K.js} +3 -3
- package/dist/{chunk-MDL6USSE.js → chunk-W7BC4WCC.js} +38 -35
- package/dist/{chunk-C3O6MZJV.js → chunk-WSRF5L3S.js} +2 -2
- package/dist/{chunk-TS5XFQ2D.js → chunk-XVWVAWSG.js} +1 -1
- package/dist/{chunk-Y325P6Z4.js → chunk-YNIAFX24.js} +5 -5
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-RIK5T6WK.js → config-HMMPXQ46.js} +5 -5
- package/dist/{events-I7NDHSNU.js → events-H563T5M5.js} +3 -3
- package/dist/{folding-XIKR6AFM.js → folding-4VHGQE6Y.js} +2 -2
- package/dist/{orchestrator-YFHSFYII.js → orchestrator-NSDEXVSR.js} +9 -9
- package/dist/package.json +1 -1
- package/dist/{processor-EM4BINEJ.js → processor-OHI5QJ6F.js} +7 -7
- package/dist/{protocol-OnZRAPeM.d.ts → protocol-C_BF6KDE.d.ts} +4 -1
- package/dist/{protocol-VVUFP4I7.js → protocol-NEBXAMJ3.js} +3 -3
- package/dist/{provider-AASLIQZJ.js → provider-LDZFYLK6.js} +7 -7
- package/dist/{serve-OJPBEKVE.js → serve-IWRMBDPG.js} +13 -13
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +11 -11
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-PPLFGZCK.js → tools-NBBDVEXF.js} +8 -8
- package/dist/{vision-fallback-GMDXLVRN.js → vision-fallback-WT66NURB.js} +2 -2
- package/dist/web/assets/{index-D4Si0Pmc.css → index-CA0bz_5H.css} +1 -1
- package/dist/web/assets/{index-CkbORFn4.js → index-DmpkTC-2.js} +45 -45
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createVerifierNudgeConfig,
|
|
3
3
|
runBuilderTurn,
|
|
4
4
|
runChatTurn
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QIMHUO3E.js";
|
|
6
6
|
import {
|
|
7
7
|
TurnMetrics,
|
|
8
8
|
agentExists,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setSkillEnabled,
|
|
38
38
|
skillExists,
|
|
39
39
|
spawnShellProcess
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2IIQ7EZV.js";
|
|
41
41
|
import {
|
|
42
42
|
getProject
|
|
43
43
|
} from "./chunk-CMQCO27Y.js";
|
|
@@ -50,18 +50,18 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
createProviderManager,
|
|
52
52
|
parseDefaultModelSelection
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6GGYIEBM.js";
|
|
54
54
|
import {
|
|
55
55
|
SessionNotFoundError,
|
|
56
56
|
createLLMClient,
|
|
57
57
|
detectModel,
|
|
58
58
|
getLlmStatus
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-JDDNBK6T.js";
|
|
60
60
|
import {
|
|
61
61
|
detectBackend,
|
|
62
62
|
getBackendDisplayName,
|
|
63
63
|
getModelProfile
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-YNIAFX24.js";
|
|
65
65
|
import {
|
|
66
66
|
createSession,
|
|
67
67
|
deleteSession,
|
|
@@ -87,14 +87,14 @@ import {
|
|
|
87
87
|
updateSessionProvider,
|
|
88
88
|
updateSessionRunning,
|
|
89
89
|
updateSessionSummary
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-6THJULLK.js";
|
|
91
91
|
import {
|
|
92
92
|
initDatabase
|
|
93
93
|
} from "./chunk-KIOUKC3Z.js";
|
|
94
94
|
import {
|
|
95
95
|
buildMessagesFromStoredEvents,
|
|
96
96
|
foldPendingConfirmations
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-XVWVAWSG.js";
|
|
98
98
|
import {
|
|
99
99
|
createChatErrorMessage,
|
|
100
100
|
createChatMessageMessage,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
parseClientMessage,
|
|
109
109
|
serializeServerMessage,
|
|
110
110
|
storedEventToServerMessage
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-GN7RB4Y4.js";
|
|
112
112
|
import {
|
|
113
113
|
EventEmitter,
|
|
114
114
|
provideAnswer
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
} from "./chunk-RGRBWDZP.js";
|
|
119
119
|
import {
|
|
120
120
|
createServerMessage
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-4VT74LCD.js";
|
|
122
122
|
import {
|
|
123
123
|
getGlobalConfigDir
|
|
124
124
|
} from "./chunk-CQGTEGKL.js";
|
|
@@ -3950,6 +3950,9 @@ var SessionManager = class {
|
|
|
3950
3950
|
if (!model) return void 0;
|
|
3951
3951
|
return this.providerManager.getModelSettings(model);
|
|
3952
3952
|
}
|
|
3953
|
+
getCurrentModelContext() {
|
|
3954
|
+
return this.providerManager.getCurrentModelContext();
|
|
3955
|
+
}
|
|
3953
3956
|
// ============================================================================
|
|
3954
3957
|
// Session Lifecycle
|
|
3955
3958
|
// ============================================================================
|
|
@@ -5258,7 +5261,7 @@ function createTerminalRoutes() {
|
|
|
5258
5261
|
}
|
|
5259
5262
|
|
|
5260
5263
|
// src/constants.ts
|
|
5261
|
-
var VERSION = "1.6.
|
|
5264
|
+
var VERSION = "1.6.84";
|
|
5262
5265
|
|
|
5263
5266
|
// src/server/index.ts
|
|
5264
5267
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -5460,7 +5463,7 @@ async function createServerHandle(config) {
|
|
|
5460
5463
|
res.json({ success: true });
|
|
5461
5464
|
});
|
|
5462
5465
|
app.get("/api/sessions", async (req, res) => {
|
|
5463
|
-
const { getRecentUserPromptsForSession } = await import("./events-
|
|
5466
|
+
const { getRecentUserPromptsForSession } = await import("./events-H563T5M5.js");
|
|
5464
5467
|
const projectId = req.query["projectId"];
|
|
5465
5468
|
const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
|
|
5466
5469
|
const offset = parseInt(req.query["offset"]) || 0;
|
|
@@ -5493,8 +5496,8 @@ async function createServerHandle(config) {
|
|
|
5493
5496
|
res.status(201).json({ session });
|
|
5494
5497
|
});
|
|
5495
5498
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
5496
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5497
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
5499
|
+
const { getEventStore: getEventStore2 } = await import("./events-H563T5M5.js");
|
|
5500
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
|
|
5498
5501
|
const session = sessionManager.getSession(req.params.id);
|
|
5499
5502
|
if (!session) {
|
|
5500
5503
|
return res.status(404).json({ error: "Session not found" });
|
|
@@ -5524,8 +5527,8 @@ async function createServerHandle(config) {
|
|
|
5524
5527
|
res.json({ success: true });
|
|
5525
5528
|
});
|
|
5526
5529
|
app.post("/api/sessions/:id/provider", async (req, res) => {
|
|
5527
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5528
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
5530
|
+
const { getEventStore: getEventStore2 } = await import("./events-H563T5M5.js");
|
|
5531
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
|
|
5529
5532
|
const sessionId = req.params.id;
|
|
5530
5533
|
const session = sessionManager.getSession(sessionId);
|
|
5531
5534
|
if (!session) {
|
|
@@ -5536,7 +5539,7 @@ async function createServerHandle(config) {
|
|
|
5536
5539
|
return res.status(400).json({ error: "providerId is required" });
|
|
5537
5540
|
}
|
|
5538
5541
|
sessionManager.setSessionProvider(sessionId, providerId, model ?? "auto");
|
|
5539
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
5542
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-HMMPXQ46.js");
|
|
5540
5543
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5541
5544
|
const updatedConfig = setDefaultModelSelection(globalConfig, providerId, model ?? "auto");
|
|
5542
5545
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -5562,8 +5565,8 @@ async function createServerHandle(config) {
|
|
|
5562
5565
|
res.json({ success: true });
|
|
5563
5566
|
});
|
|
5564
5567
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
5565
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5566
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
5568
|
+
const { getEventStore: getEventStore2 } = await import("./events-H563T5M5.js");
|
|
5569
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
|
|
5567
5570
|
const sessionId = req.params.id;
|
|
5568
5571
|
const session = sessionManager.getSession(sessionId);
|
|
5569
5572
|
if (!session) {
|
|
@@ -5615,14 +5618,14 @@ async function createServerHandle(config) {
|
|
|
5615
5618
|
if (!callId || approved === void 0) {
|
|
5616
5619
|
return res.status(400).json({ error: "callId and approved are required" });
|
|
5617
5620
|
}
|
|
5618
|
-
const { providePathConfirmation } = await import("./tools-
|
|
5621
|
+
const { providePathConfirmation } = await import("./tools-NBBDVEXF.js");
|
|
5619
5622
|
const result = providePathConfirmation(callId, approved, alwaysAllow);
|
|
5620
5623
|
if (!result.found) {
|
|
5621
5624
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
5622
5625
|
}
|
|
5623
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5624
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-
|
|
5625
|
-
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-
|
|
5626
|
+
const { getEventStore: getEventStore2 } = await import("./events-H563T5M5.js");
|
|
5627
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-4VHGQE6Y.js");
|
|
5628
|
+
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-NEBXAMJ3.js");
|
|
5626
5629
|
const eventStore = getEventStore2();
|
|
5627
5630
|
const events = eventStore.getEvents(sessionId);
|
|
5628
5631
|
const messages = buildMessagesFromStoredEvents2(events);
|
|
@@ -5639,7 +5642,7 @@ async function createServerHandle(config) {
|
|
|
5639
5642
|
if (!callId || !answer) {
|
|
5640
5643
|
return res.status(400).json({ error: "callId and answer are required" });
|
|
5641
5644
|
}
|
|
5642
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
5645
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-NBBDVEXF.js");
|
|
5643
5646
|
const found = provideAnswer2(callId, answer);
|
|
5644
5647
|
if (!found) {
|
|
5645
5648
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -5675,14 +5678,14 @@ async function createServerHandle(config) {
|
|
|
5675
5678
|
if (!session) {
|
|
5676
5679
|
return res.status(404).json({ error: "Session not found" });
|
|
5677
5680
|
}
|
|
5678
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
5679
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
5681
|
+
const { stopSessionExecution } = await import("./chat-handler-OH5GPGLH.js");
|
|
5682
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-NBBDVEXF.js");
|
|
5680
5683
|
stopSessionExecution(sessionId, sessionManager);
|
|
5681
5684
|
abortSession(sessionId);
|
|
5682
5685
|
cancelQuestionsForSession(sessionId, "Session stopped by user");
|
|
5683
5686
|
cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
|
|
5684
5687
|
sessionManager.clearMessageQueue(sessionId);
|
|
5685
|
-
const eventStore = (await import("./events-
|
|
5688
|
+
const eventStore = (await import("./events-H563T5M5.js")).getEventStore();
|
|
5686
5689
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
|
|
5687
5690
|
res.json({ success: true });
|
|
5688
5691
|
});
|
|
@@ -5696,7 +5699,7 @@ async function createServerHandle(config) {
|
|
|
5696
5699
|
if (typeof messageIndex !== "number" || messageIndex < 0) {
|
|
5697
5700
|
return res.status(400).json({ error: "messageIndex must be a non-negative number" });
|
|
5698
5701
|
}
|
|
5699
|
-
const { truncateSessionMessages } = await import("./events-
|
|
5702
|
+
const { truncateSessionMessages } = await import("./events-H563T5M5.js");
|
|
5700
5703
|
truncateSessionMessages(sessionId, messageIndex);
|
|
5701
5704
|
res.json({ success: true });
|
|
5702
5705
|
});
|
|
@@ -5748,7 +5751,7 @@ async function createServerHandle(config) {
|
|
|
5748
5751
|
let visionFallback;
|
|
5749
5752
|
let globalWorkdir;
|
|
5750
5753
|
try {
|
|
5751
|
-
const { loadGlobalConfig, getVisionFallback } = await import("./config-
|
|
5754
|
+
const { loadGlobalConfig, getVisionFallback } = await import("./config-HMMPXQ46.js");
|
|
5752
5755
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5753
5756
|
const fallback = getVisionFallback(globalConfig);
|
|
5754
5757
|
if (fallback) {
|
|
@@ -5827,7 +5830,7 @@ async function createServerHandle(config) {
|
|
|
5827
5830
|
return res.status(400).json({ error: "name, url, and backend are required" });
|
|
5828
5831
|
}
|
|
5829
5832
|
try {
|
|
5830
|
-
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-
|
|
5833
|
+
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-HMMPXQ46.js");
|
|
5831
5834
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5832
5835
|
const providerBackend = backend;
|
|
5833
5836
|
const configWithProvider = addProvider(globalConfig, {
|
|
@@ -5860,7 +5863,7 @@ async function createServerHandle(config) {
|
|
|
5860
5863
|
app.post("/api/init/config", async (req, res) => {
|
|
5861
5864
|
const { workdir, visionFallback } = req.body;
|
|
5862
5865
|
try {
|
|
5863
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
5866
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-HMMPXQ46.js");
|
|
5864
5867
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5865
5868
|
const updatedConfig = {
|
|
5866
5869
|
...globalConfig,
|
|
@@ -5888,7 +5891,7 @@ async function createServerHandle(config) {
|
|
|
5888
5891
|
});
|
|
5889
5892
|
app.delete("/api/providers/:id", async (req, res) => {
|
|
5890
5893
|
const { id } = req.params;
|
|
5891
|
-
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-
|
|
5894
|
+
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-HMMPXQ46.js");
|
|
5892
5895
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5893
5896
|
const updatedConfig = removeProvider(globalConfig, id);
|
|
5894
5897
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -5908,7 +5911,7 @@ async function createServerHandle(config) {
|
|
|
5908
5911
|
return res.status(400).json({ error: result.error });
|
|
5909
5912
|
}
|
|
5910
5913
|
const llmClient = getLLMClient();
|
|
5911
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
5914
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-HMMPXQ46.js");
|
|
5912
5915
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5913
5916
|
const updatedConfig = setDefaultModelSelection(globalConfig, id, llmClient.getModel());
|
|
5914
5917
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -5939,7 +5942,7 @@ async function createServerHandle(config) {
|
|
|
5939
5942
|
if (!result.success) {
|
|
5940
5943
|
return res.status(400).json({ error: result.error });
|
|
5941
5944
|
}
|
|
5942
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
5945
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-HMMPXQ46.js");
|
|
5943
5946
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5944
5947
|
const updatedProviders = providerManager.getProviders();
|
|
5945
5948
|
const updatedConfig = {
|
|
@@ -6165,7 +6168,7 @@ async function createServerHandle(config) {
|
|
|
6165
6168
|
providerManager
|
|
6166
6169
|
);
|
|
6167
6170
|
const wss = wssExports.wss;
|
|
6168
|
-
const { QueueProcessor } = await import("./processor-
|
|
6171
|
+
const { QueueProcessor } = await import("./processor-OHI5QJ6F.js");
|
|
6169
6172
|
const queueProcessor = new QueueProcessor({
|
|
6170
6173
|
sessionManager,
|
|
6171
6174
|
providerManager,
|
|
@@ -6240,4 +6243,4 @@ export {
|
|
|
6240
6243
|
createServerHandle,
|
|
6241
6244
|
createServer
|
|
6242
6245
|
};
|
|
6243
|
-
//# sourceMappingURL=chunk-
|
|
6246
|
+
//# sourceMappingURL=chunk-W7BC4WCC.js.map
|
|
@@ -29,7 +29,7 @@ function isVisionFallbackEnabled() {
|
|
|
29
29
|
async function ensureVisionFallbackConfigLoaded() {
|
|
30
30
|
if (configLoaded) return;
|
|
31
31
|
try {
|
|
32
|
-
const { loadGlobalConfig, getVisionFallback } = await import("./config-
|
|
32
|
+
const { loadGlobalConfig, getVisionFallback } = await import("./config-HMMPXQ46.js");
|
|
33
33
|
const { getRuntimeConfig } = await import("./runtime-config-CBJJJGBD.js");
|
|
34
34
|
const runtimeConfig = getRuntimeConfig();
|
|
35
35
|
const mode = runtimeConfig.mode ?? "production";
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
describeImage,
|
|
138
138
|
describeImageFromDataUrl
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-WSRF5L3S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
describeImageFromDataUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WSRF5L3S.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
6
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -595,9 +595,9 @@ async function buildChatCompletionCreateParams(model, request, profile, capabili
|
|
|
595
595
|
onVisionFallbackStart,
|
|
596
596
|
onVisionFallbackDone
|
|
597
597
|
);
|
|
598
|
-
const temperature = request.temperature ?? profile.temperature;
|
|
599
|
-
const maxTokens = request.maxTokens ?? profile.defaultMaxTokens;
|
|
600
|
-
const topP = profile.topP;
|
|
598
|
+
const temperature = request.modelSettings?.temperature ?? request.temperature ?? profile.temperature;
|
|
599
|
+
const maxTokens = request.modelSettings?.maxTokens ?? request.maxTokens ?? profile.defaultMaxTokens;
|
|
600
|
+
const topP = request.modelSettings?.topP ?? profile.topP;
|
|
601
601
|
const topK = capabilities.supportsTopK ? profile.topK : void 0;
|
|
602
602
|
const params = {
|
|
603
603
|
model,
|
|
@@ -801,4 +801,4 @@ export {
|
|
|
801
801
|
extractThinking,
|
|
802
802
|
streamWithSegments
|
|
803
803
|
};
|
|
804
|
-
//# sourceMappingURL=chunk-
|
|
804
|
+
//# sourceMappingURL=chunk-YNIAFX24.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
saveGlobalConfig,
|
|
14
14
|
setDefaultModelSelection,
|
|
15
15
|
trySmartDefaults
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-TLOL4I7K.js";
|
|
17
|
+
import "./chunk-JDDNBK6T.js";
|
|
18
|
+
import "./chunk-YNIAFX24.js";
|
|
19
19
|
import "./chunk-CQGTEGKL.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WSRF5L3S.js";
|
|
21
21
|
import "./chunk-K44MW7JJ.js";
|
|
22
22
|
export {
|
|
23
23
|
activateProvider,
|
|
@@ -35,4 +35,4 @@ export {
|
|
|
35
35
|
setDefaultModelSelection,
|
|
36
36
|
trySmartDefaults
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=config-
|
|
38
|
+
//# sourceMappingURL=config-HMMPXQ46.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
isStoredEvent,
|
|
38
38
|
isTurnEvent,
|
|
39
39
|
truncateSessionMessages
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6THJULLK.js";
|
|
41
41
|
import "./chunk-KIOUKC3Z.js";
|
|
42
42
|
import {
|
|
43
43
|
buildContextMessagesFromEventHistory,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
foldTodos,
|
|
56
56
|
foldTurnEventsToSnapshotMessages,
|
|
57
57
|
getMessagesForWindow
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-XVWVAWSG.js";
|
|
59
59
|
import "./chunk-B5AP3RSV.js";
|
|
60
60
|
import "./chunk-K44MW7JJ.js";
|
|
61
61
|
export {
|
|
@@ -113,4 +113,4 @@ export {
|
|
|
113
113
|
isTurnEvent,
|
|
114
114
|
truncateSessionMessages
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=events-
|
|
116
|
+
//# sourceMappingURL=events-H563T5M5.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
handleToolResult,
|
|
23
23
|
spreadOptionalMessageFields,
|
|
24
24
|
stripOrphanedToolCalls
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XVWVAWSG.js";
|
|
26
26
|
export {
|
|
27
27
|
buildContextMessagesFromEventHistory,
|
|
28
28
|
buildContextMessagesFromMessages,
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
spreadOptionalMessageFields,
|
|
49
49
|
stripOrphanedToolCalls
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=folding-
|
|
51
|
+
//# sourceMappingURL=folding-4VHGQE6Y.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
runBuilderTurn,
|
|
4
4
|
runChatTurn,
|
|
5
5
|
runVerifierTurn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QIMHUO3E.js";
|
|
7
7
|
import {
|
|
8
8
|
TurnMetrics,
|
|
9
9
|
createChatDoneEvent,
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
createMessageStartEvent,
|
|
12
12
|
createToolCallEvent,
|
|
13
13
|
createToolResultEvent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2IIQ7EZV.js";
|
|
15
15
|
import "./chunk-OXI26S7U.js";
|
|
16
16
|
import "./chunk-CMQCO27Y.js";
|
|
17
17
|
import "./chunk-DL6ZILAF.js";
|
|
18
18
|
import "./chunk-PBGOZMVY.js";
|
|
19
19
|
import "./chunk-VRGRAQDG.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-YNIAFX24.js";
|
|
21
|
+
import "./chunk-6THJULLK.js";
|
|
22
22
|
import "./chunk-KIOUKC3Z.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XVWVAWSG.js";
|
|
24
|
+
import "./chunk-GN7RB4Y4.js";
|
|
25
25
|
import "./chunk-BJYPTN5S.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-4VT74LCD.js";
|
|
27
27
|
import "./chunk-CQGTEGKL.js";
|
|
28
28
|
import "./chunk-B5AP3RSV.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-WSRF5L3S.js";
|
|
30
30
|
import "./chunk-K44MW7JJ.js";
|
|
31
31
|
export {
|
|
32
32
|
TurnMetrics,
|
|
@@ -40,4 +40,4 @@ export {
|
|
|
40
40
|
runChatTurn,
|
|
41
41
|
runVerifierTurn
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=orchestrator-
|
|
43
|
+
//# sourceMappingURL=orchestrator-NSDEXVSR.js.map
|
package/dist/package.json
CHANGED
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
generateSessionName,
|
|
6
6
|
getSessionMessageCount,
|
|
7
7
|
needsNameGenerationCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6GH2PJJC.js";
|
|
9
9
|
import {
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6THJULLK.js";
|
|
12
12
|
import "./chunk-KIOUKC3Z.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-XVWVAWSG.js";
|
|
14
14
|
import {
|
|
15
15
|
createChatMessageMessage,
|
|
16
16
|
createSessionRunningMessage
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-GN7RB4Y4.js";
|
|
18
|
+
import "./chunk-4VT74LCD.js";
|
|
19
19
|
import "./chunk-B5AP3RSV.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
@@ -177,7 +177,7 @@ var QueueProcessor = class {
|
|
|
177
177
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
178
178
|
model: llmClient.getModel()
|
|
179
179
|
};
|
|
180
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
180
|
+
const { runChatTurn } = await import("./orchestrator-NSDEXVSR.js");
|
|
181
181
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
182
182
|
sessionManager,
|
|
183
183
|
sessionId,
|
|
@@ -221,4 +221,4 @@ var QueueProcessor = class {
|
|
|
221
221
|
export {
|
|
222
222
|
QueueProcessor
|
|
223
223
|
};
|
|
224
|
-
//# sourceMappingURL=processor-
|
|
224
|
+
//# sourceMappingURL=processor-OHI5QJ6F.js.map
|
|
@@ -87,6 +87,7 @@ interface MessageStats {
|
|
|
87
87
|
totalTime: number;
|
|
88
88
|
toolTime: number;
|
|
89
89
|
prefillTokens: number;
|
|
90
|
+
prefTokenIncrement?: number;
|
|
90
91
|
prefillSpeed: number;
|
|
91
92
|
generationTokens: number;
|
|
92
93
|
generationSpeed: number;
|
|
@@ -100,6 +101,7 @@ interface LLMCallStats {
|
|
|
100
101
|
callIndex: number;
|
|
101
102
|
promptTokens: number;
|
|
102
103
|
completionTokens: number;
|
|
104
|
+
prefTokenIncrement?: number;
|
|
103
105
|
ttft: number;
|
|
104
106
|
completionTime: number;
|
|
105
107
|
prefillSpeed: number;
|
|
@@ -256,6 +258,7 @@ interface Message {
|
|
|
256
258
|
segments?: MessageSegment[];
|
|
257
259
|
stats?: MessageStats;
|
|
258
260
|
partial?: boolean;
|
|
261
|
+
completeReason?: 'complete' | 'stopped' | 'error' | 'waiting_for_user' | 'truncated';
|
|
259
262
|
isSystemGenerated?: boolean;
|
|
260
263
|
isStreaming?: boolean;
|
|
261
264
|
messageKind?: 'correction' | 'auto-prompt' | 'context-reset' | 'task-completed' | 'workflow-started' | 'command';
|
|
@@ -623,7 +626,7 @@ interface ChatMessageUpdatedPayload {
|
|
|
623
626
|
}
|
|
624
627
|
interface ChatDonePayload {
|
|
625
628
|
messageId: string;
|
|
626
|
-
reason: 'complete' | 'stopped' | 'error' | 'waiting_for_user';
|
|
629
|
+
reason: 'complete' | 'stopped' | 'error' | 'waiting_for_user' | 'truncated';
|
|
627
630
|
agentType?: 'sub-agent';
|
|
628
631
|
stats?: {
|
|
629
632
|
model: string;
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
parseClientMessage,
|
|
36
36
|
serializeServerMessage,
|
|
37
37
|
storedEventToServerMessage
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-GN7RB4Y4.js";
|
|
39
|
+
import "./chunk-4VT74LCD.js";
|
|
40
40
|
export {
|
|
41
41
|
createChatAskUserMessage,
|
|
42
42
|
createChatDeltaMessage,
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
serializeServerMessage,
|
|
76
76
|
storedEventToServerMessage
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=protocol-
|
|
78
|
+
//# sourceMappingURL=protocol-NEBXAMJ3.js.map
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
loadGlobalConfig,
|
|
6
6
|
removeProvider,
|
|
7
7
|
saveGlobalConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TLOL4I7K.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAvailableModelsFromBackend
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6GGYIEBM.js";
|
|
12
12
|
import {
|
|
13
13
|
detectModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JDDNBK6T.js";
|
|
15
15
|
import {
|
|
16
16
|
detectBackend
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YNIAFX24.js";
|
|
18
18
|
import "./chunk-CQGTEGKL.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-WSRF5L3S.js";
|
|
20
20
|
import "./chunk-K44MW7JJ.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/provider.ts
|
|
@@ -248,7 +248,7 @@ async function runProviderAdd(mode) {
|
|
|
248
248
|
isActive: makeActive
|
|
249
249
|
});
|
|
250
250
|
if (makeActive) {
|
|
251
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
251
|
+
const { setDefaultModelSelection } = await import("./config-HMMPXQ46.js");
|
|
252
252
|
newConfig = setDefaultModelSelection(
|
|
253
253
|
newConfig,
|
|
254
254
|
newConfig.providers[newConfig.providers.length - 1].id,
|
|
@@ -376,4 +376,4 @@ export {
|
|
|
376
376
|
runProviderRemove,
|
|
377
377
|
runProviderUse
|
|
378
378
|
};
|
|
379
|
-
//# sourceMappingURL=provider-
|
|
379
|
+
//# sourceMappingURL=provider-LDZFYLK6.js.map
|
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
getActiveProvider,
|
|
3
3
|
getDefaultModel,
|
|
4
4
|
loadGlobalConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TLOL4I7K.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-W7BC4WCC.js";
|
|
10
|
+
import "./chunk-QIMHUO3E.js";
|
|
11
|
+
import "./chunk-2IIQ7EZV.js";
|
|
12
12
|
import "./chunk-OXI26S7U.js";
|
|
13
13
|
import "./chunk-CMQCO27Y.js";
|
|
14
14
|
import "./chunk-DL6ZILAF.js";
|
|
15
15
|
import "./chunk-PBGOZMVY.js";
|
|
16
16
|
import "./chunk-VRGRAQDG.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6GGYIEBM.js";
|
|
18
|
+
import "./chunk-JDDNBK6T.js";
|
|
19
|
+
import "./chunk-YNIAFX24.js";
|
|
20
|
+
import "./chunk-6THJULLK.js";
|
|
21
21
|
import "./chunk-KIOUKC3Z.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-XVWVAWSG.js";
|
|
23
|
+
import "./chunk-GN7RB4Y4.js";
|
|
24
24
|
import "./chunk-BJYPTN5S.js";
|
|
25
25
|
import "./chunk-RGRBWDZP.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-4VT74LCD.js";
|
|
27
27
|
import {
|
|
28
28
|
ensureDataDirExists,
|
|
29
29
|
getDatabasePath,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
34
|
} from "./chunk-B5AP3RSV.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WSRF5L3S.js";
|
|
36
36
|
import {
|
|
37
37
|
logger
|
|
38
38
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -190,4 +190,4 @@ async function runServe(options) {
|
|
|
190
190
|
export {
|
|
191
191
|
runServe
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=serve-
|
|
193
|
+
//# sourceMappingURL=serve-IWRMBDPG.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as ToolCall, c as Attachment, T as Diagnostic, an as Provider, a8 as ModelConfig, aA as Session, aJ as SessionSummary, af as Project, aE as SessionMode, aG as SessionPhase, M as Message, K as Criterion, N as CriterionStatus, aw as QueuedMessage, G as ContextState, P as DangerLevel$1, ay as ServerMessage, aL as StatsIdentity, aR as ToolResult, E as Config } from '../protocol-
|
|
1
|
+
import { aO as ToolCall, c as Attachment, T as Diagnostic, an as Provider, a8 as ModelConfig, aA as Session, aJ as SessionSummary, af as Project, aE as SessionMode, aG as SessionPhase, M as Message, K as Criterion, N as CriterionStatus, aw as QueuedMessage, G as ContextState, P as DangerLevel$1, ay as ServerMessage, aL as StatsIdentity, aR as ToolResult, E as Config } from '../protocol-C_BF6KDE.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
|
|
4
4
|
interface LLMMessage {
|
|
@@ -295,6 +295,7 @@ declare class SessionManager {
|
|
|
295
295
|
maxTokens?: number;
|
|
296
296
|
supportsVision?: boolean;
|
|
297
297
|
} | undefined;
|
|
298
|
+
getCurrentModelContext(): number;
|
|
298
299
|
/**
|
|
299
300
|
* Create a new session. Emits session.initialized event.
|
|
300
301
|
* Note: maxTokens is no longer stored in the session - it comes from the current model config
|