openfox 1.6.20 → 1.6.23
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/README.md +46 -13
- package/dist/{auto-compaction-NFLWKJAO.js → auto-compaction-7LK3QGPI.js} +4 -3
- package/dist/{chat-handler-2RVTVNPF.js → chat-handler-ZU74RXED.js} +6 -5
- package/dist/{chunk-KOBGCNUE.js → chunk-4O3C2JMB.js} +58 -14
- package/dist/{chunk-QY7BMXWT.js → chunk-B7E3BICY.js} +6 -2
- package/dist/{chunk-U3KMU3UE.js → chunk-BOEXJCOD.js} +2 -2
- package/dist/{chunk-IN5EP4ZB.js → chunk-CJNQGEYG.js} +2 -2
- package/dist/{chunk-OVLFEBRR.js → chunk-D4ZLSV6P.js} +133 -468
- package/dist/{chunk-LTPZ4GTW.js → chunk-FTJPNCAV.js} +6 -6
- package/dist/chunk-KSASIV4B.js +486 -0
- package/dist/{chunk-ZDNXCVW4.js → chunk-P6GUT2QQ.js} +11 -5
- package/dist/{chunk-KOUMYBYM.js → chunk-PYBB34ZK.js} +54 -3
- package/dist/{chunk-R7UAGXQW.js → chunk-YCQSAFAQ.js} +42 -24
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-67AX6CNS.js → config-ACVEHBKG.js} +5 -5
- package/dist/{orchestrator-ZICQ5NIZ.js → orchestrator-OE7WFEW6.js} +5 -4
- package/dist/package.json +3 -3
- package/dist/{processor-MPSYT534.js → processor-GAOK7TPI.js} +2 -2
- package/dist/{protocol-I7rn7Msg.d.ts → protocol-BYM6rZvW.d.ts} +12 -0
- package/dist/{provider-DKGBQHUS.js → provider-RLQMVV2Z.js} +9 -8
- package/dist/{serve-B5A52252.js → serve-IBJ3SN3Q.js} +10 -10
- package/dist/server/index.d.ts +24 -1
- package/dist/server/index.js +8 -8
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-ERJ3QRQU.js → tools-CSV7G554.js} +4 -3
- package/dist/{vision-fallback-ADYRFFD4.js → vision-fallback-QJ26DCEF.js} +2 -2
- package/dist/web/assets/index-BrZqZwpA.js +153 -0
- package/dist/web/assets/{index-vBklayFL.css → index-DF26vcqg.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-55N6FAAZ.js +0 -117
- package/dist/web/assets/index-vOba1XKB.js +0 -151
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
createVerifierNudgeConfig,
|
|
7
7
|
runBuilderTurn,
|
|
8
8
|
runChatTurn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BOEXJCOD.js";
|
|
10
10
|
import {
|
|
11
11
|
TurnMetrics,
|
|
12
12
|
agentExists,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
setSkillEnabled,
|
|
48
48
|
skillExists,
|
|
49
49
|
spawnShellProcess
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4O3C2JMB.js";
|
|
51
51
|
import {
|
|
52
52
|
getPathSeparator,
|
|
53
53
|
getPlatformShell,
|
|
@@ -57,16 +57,18 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
createProviderManager,
|
|
59
59
|
parseDefaultModelSelection
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PYBB34ZK.js";
|
|
61
61
|
import {
|
|
62
62
|
SessionNotFoundError,
|
|
63
63
|
createLLMClient,
|
|
64
|
-
detectBackend,
|
|
65
64
|
detectModel,
|
|
65
|
+
getLlmStatus
|
|
66
|
+
} from "./chunk-KSASIV4B.js";
|
|
67
|
+
import {
|
|
68
|
+
detectBackend,
|
|
66
69
|
getBackendDisplayName,
|
|
67
|
-
getLlmStatus,
|
|
68
70
|
getModelProfile
|
|
69
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-D4ZLSV6P.js";
|
|
70
72
|
import {
|
|
71
73
|
createSession,
|
|
72
74
|
deleteSession,
|
|
@@ -127,7 +129,7 @@ import {
|
|
|
127
129
|
} from "./chunk-3EHGGBWE.js";
|
|
128
130
|
import {
|
|
129
131
|
computeSessionStats
|
|
130
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-B7E3BICY.js";
|
|
131
133
|
import {
|
|
132
134
|
createServerMessage
|
|
133
135
|
} from "./chunk-Y6HBEACI.js";
|
|
@@ -4170,6 +4172,11 @@ var SessionManager = class {
|
|
|
4170
4172
|
constructor(providerManager) {
|
|
4171
4173
|
this.providerManager = providerManager;
|
|
4172
4174
|
}
|
|
4175
|
+
getCurrentModelSettings() {
|
|
4176
|
+
const model = this.providerManager.getCurrentModel();
|
|
4177
|
+
if (!model) return void 0;
|
|
4178
|
+
return this.providerManager.getModelSettings(model);
|
|
4179
|
+
}
|
|
4173
4180
|
// ============================================================================
|
|
4174
4181
|
// Session Lifecycle
|
|
4175
4182
|
// ============================================================================
|
|
@@ -5472,7 +5479,7 @@ function createTerminalRoutes() {
|
|
|
5472
5479
|
}
|
|
5473
5480
|
|
|
5474
5481
|
// src/constants.ts
|
|
5475
|
-
var VERSION = "1.6.
|
|
5482
|
+
var VERSION = "1.6.23";
|
|
5476
5483
|
|
|
5477
5484
|
// src/server/index.ts
|
|
5478
5485
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -5709,7 +5716,7 @@ async function createServerHandle(config) {
|
|
|
5709
5716
|
return res.status(400).json({ error: "providerId is required" });
|
|
5710
5717
|
}
|
|
5711
5718
|
sessionManager.setSessionProvider(sessionId, providerId, model ?? "auto");
|
|
5712
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
5719
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-ACVEHBKG.js");
|
|
5713
5720
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5714
5721
|
const updatedConfig = setDefaultModelSelection(globalConfig, providerId, model ?? "auto");
|
|
5715
5722
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -5774,7 +5781,7 @@ async function createServerHandle(config) {
|
|
|
5774
5781
|
if (!callId || approved === void 0) {
|
|
5775
5782
|
return res.status(400).json({ error: "callId and approved are required" });
|
|
5776
5783
|
}
|
|
5777
|
-
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-
|
|
5784
|
+
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-CSV7G554.js");
|
|
5778
5785
|
const result = providePathConfirmation2(callId, approved, alwaysAllow);
|
|
5779
5786
|
if (!result.found) {
|
|
5780
5787
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
@@ -5799,7 +5806,7 @@ async function createServerHandle(config) {
|
|
|
5799
5806
|
if (!callId || !answer) {
|
|
5800
5807
|
return res.status(400).json({ error: "callId and answer are required" });
|
|
5801
5808
|
}
|
|
5802
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
5809
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-CSV7G554.js");
|
|
5803
5810
|
const found = provideAnswer2(callId, answer);
|
|
5804
5811
|
if (!found) {
|
|
5805
5812
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -5835,8 +5842,8 @@ async function createServerHandle(config) {
|
|
|
5835
5842
|
if (!session) {
|
|
5836
5843
|
return res.status(404).json({ error: "Session not found" });
|
|
5837
5844
|
}
|
|
5838
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
5839
|
-
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-
|
|
5845
|
+
const { stopSessionExecution } = await import("./chat-handler-ZU74RXED.js");
|
|
5846
|
+
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-CSV7G554.js");
|
|
5840
5847
|
stopSessionExecution(sessionId, sessionManager);
|
|
5841
5848
|
abortSession(sessionId);
|
|
5842
5849
|
cancelQuestionsForSession2(sessionId, "Session stopped by user");
|
|
@@ -5894,7 +5901,7 @@ async function createServerHandle(config) {
|
|
|
5894
5901
|
let visionFallback;
|
|
5895
5902
|
let globalWorkdir;
|
|
5896
5903
|
try {
|
|
5897
|
-
const { loadGlobalConfig, getVisionFallback } = await import("./config-
|
|
5904
|
+
const { loadGlobalConfig, getVisionFallback } = await import("./config-ACVEHBKG.js");
|
|
5898
5905
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5899
5906
|
const fallback = getVisionFallback(globalConfig);
|
|
5900
5907
|
if (fallback) {
|
|
@@ -5973,7 +5980,7 @@ async function createServerHandle(config) {
|
|
|
5973
5980
|
return res.status(400).json({ error: "name, url, and backend are required" });
|
|
5974
5981
|
}
|
|
5975
5982
|
try {
|
|
5976
|
-
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-
|
|
5983
|
+
const { loadGlobalConfig, saveGlobalConfig, addProvider, setDefaultModelSelection } = await import("./config-ACVEHBKG.js");
|
|
5977
5984
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
5978
5985
|
const providerBackend = backend;
|
|
5979
5986
|
const configWithProvider = addProvider(globalConfig, {
|
|
@@ -6006,7 +6013,7 @@ async function createServerHandle(config) {
|
|
|
6006
6013
|
app.post("/api/init/config", async (req, res) => {
|
|
6007
6014
|
const { workdir, visionFallback } = req.body;
|
|
6008
6015
|
try {
|
|
6009
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
6016
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-ACVEHBKG.js");
|
|
6010
6017
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6011
6018
|
const updatedConfig = {
|
|
6012
6019
|
...globalConfig,
|
|
@@ -6034,7 +6041,7 @@ async function createServerHandle(config) {
|
|
|
6034
6041
|
});
|
|
6035
6042
|
app.delete("/api/providers/:id", async (req, res) => {
|
|
6036
6043
|
const { id } = req.params;
|
|
6037
|
-
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-
|
|
6044
|
+
const { loadGlobalConfig, saveGlobalConfig, removeProvider } = await import("./config-ACVEHBKG.js");
|
|
6038
6045
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6039
6046
|
const updatedConfig = removeProvider(globalConfig, id);
|
|
6040
6047
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -6054,7 +6061,7 @@ async function createServerHandle(config) {
|
|
|
6054
6061
|
return res.status(400).json({ error: result.error });
|
|
6055
6062
|
}
|
|
6056
6063
|
const llmClient = getLLMClient();
|
|
6057
|
-
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-
|
|
6064
|
+
const { loadGlobalConfig, saveGlobalConfig, setDefaultModelSelection } = await import("./config-ACVEHBKG.js");
|
|
6058
6065
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6059
6066
|
const updatedConfig = setDefaultModelSelection(globalConfig, id, llmClient.getModel());
|
|
6060
6067
|
await saveGlobalConfig(config.mode ?? "production", updatedConfig);
|
|
@@ -6068,14 +6075,24 @@ async function createServerHandle(config) {
|
|
|
6068
6075
|
app.post("/api/providers/:id/models/:modelId", async (req, res) => {
|
|
6069
6076
|
const { id, modelId } = req.params;
|
|
6070
6077
|
const body = req.body;
|
|
6071
|
-
|
|
6072
|
-
|
|
6078
|
+
logger.info("API: POST /api/providers/:id/models/:modelId", {
|
|
6079
|
+
providerId: id,
|
|
6080
|
+
modelId,
|
|
6081
|
+
body
|
|
6082
|
+
});
|
|
6083
|
+
const hasFullSettings = body.temperature !== void 0 || body.topP !== void 0 || body.topK !== void 0 || body.maxTokens !== void 0;
|
|
6084
|
+
let result;
|
|
6085
|
+
if (hasFullSettings) {
|
|
6086
|
+
result = await providerManager.updateModelSettings(id, modelId, body);
|
|
6087
|
+
} else if (body.contextWindow) {
|
|
6088
|
+
result = await providerManager.updateModelContext(id, modelId, body.contextWindow);
|
|
6089
|
+
} else {
|
|
6090
|
+
return res.status(400).json({ error: "contextWindow or full settings required" });
|
|
6073
6091
|
}
|
|
6074
|
-
const result = await providerManager.updateModelContext(id, modelId, body.contextWindow);
|
|
6075
6092
|
if (!result.success) {
|
|
6076
6093
|
return res.status(400).json({ error: result.error });
|
|
6077
6094
|
}
|
|
6078
|
-
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-
|
|
6095
|
+
const { loadGlobalConfig, saveGlobalConfig } = await import("./config-ACVEHBKG.js");
|
|
6079
6096
|
const globalConfig = await loadGlobalConfig(config.mode ?? "production");
|
|
6080
6097
|
const updatedProviders = providerManager.getProviders();
|
|
6081
6098
|
const updatedConfig = {
|
|
@@ -6101,6 +6118,7 @@ async function createServerHandle(config) {
|
|
|
6101
6118
|
providerId: id,
|
|
6102
6119
|
modelId,
|
|
6103
6120
|
contextWindow: body.contextWindow,
|
|
6121
|
+
model: result.model,
|
|
6104
6122
|
contextState
|
|
6105
6123
|
});
|
|
6106
6124
|
});
|
|
@@ -6284,7 +6302,7 @@ async function createServerHandle(config) {
|
|
|
6284
6302
|
providerManager
|
|
6285
6303
|
);
|
|
6286
6304
|
const wss = wssExports.wss;
|
|
6287
|
-
const { QueueProcessor } = await import("./processor-
|
|
6305
|
+
const { QueueProcessor } = await import("./processor-GAOK7TPI.js");
|
|
6288
6306
|
const queueProcessor = new QueueProcessor({
|
|
6289
6307
|
sessionManager,
|
|
6290
6308
|
providerManager,
|
|
@@ -6357,4 +6375,4 @@ export {
|
|
|
6357
6375
|
createServerHandle,
|
|
6358
6376
|
createServer
|
|
6359
6377
|
};
|
|
6360
|
-
//# sourceMappingURL=chunk-
|
|
6378
|
+
//# sourceMappingURL=chunk-YCQSAFAQ.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-P6GUT2QQ.js";
|
|
17
|
+
import "./chunk-KSASIV4B.js";
|
|
18
|
+
import "./chunk-D4ZLSV6P.js";
|
|
19
19
|
import "./chunk-R4HADRYO.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-CJNQGEYG.js";
|
|
21
21
|
import "./chunk-PNBH3RAX.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-ACVEHBKG.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
runBuilderTurn,
|
|
4
4
|
runChatTurn,
|
|
5
5
|
runVerifierTurn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BOEXJCOD.js";
|
|
7
7
|
import {
|
|
8
8
|
TurnMetrics,
|
|
9
9
|
createChatDoneEvent,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
createMessageStartEvent,
|
|
12
12
|
createToolCallEvent,
|
|
13
13
|
createToolResultEvent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4O3C2JMB.js";
|
|
15
15
|
import "./chunk-NBU6KIOD.js";
|
|
16
16
|
import "./chunk-574HZVLE.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-D4ZLSV6P.js";
|
|
18
18
|
import "./chunk-PMDJEJYY.js";
|
|
19
19
|
import "./chunk-EEPU4INU.js";
|
|
20
20
|
import "./chunk-DZHZ3UUR.js";
|
|
@@ -25,6 +25,7 @@ import "./chunk-3EHGGBWE.js";
|
|
|
25
25
|
import "./chunk-Y6HBEACI.js";
|
|
26
26
|
import "./chunk-R4HADRYO.js";
|
|
27
27
|
import "./chunk-TVQOONDR.js";
|
|
28
|
+
import "./chunk-CJNQGEYG.js";
|
|
28
29
|
import "./chunk-PNBH3RAX.js";
|
|
29
30
|
export {
|
|
30
31
|
TurnMetrics,
|
|
@@ -38,4 +39,4 @@ export {
|
|
|
38
39
|
runChatTurn,
|
|
39
40
|
runVerifierTurn
|
|
40
41
|
};
|
|
41
|
-
//# sourceMappingURL=orchestrator-
|
|
42
|
+
//# sourceMappingURL=orchestrator-OE7WFEW6.js.map
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openfox",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.23",
|
|
4
4
|
"description": "Local-LLM-first agentic coding assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"lint:fix": "eslint src/ --fix",
|
|
48
48
|
"format": "prettier --check 'src/**/*.ts'",
|
|
49
49
|
"format:fix": "prettier --write 'src/**/*.ts'",
|
|
50
|
-
"duplicate:server": "jscpd src/server/ --ignore '**/*.test.ts'",
|
|
51
|
-
"duplicate:web": "jscpd web/src/ --config .jscpd-web.json",
|
|
50
|
+
"duplicate:server": "jscpd src/server/ --ignore '**/*.test.ts' --threshold 0",
|
|
51
|
+
"duplicate:web": "jscpd web/src/ --config .jscpd-web.json --threshold 0",
|
|
52
52
|
"duplicate": "npm run duplicate:server && npm run duplicate:web",
|
|
53
53
|
"check": "npm run typecheck && npm run duplicate",
|
|
54
54
|
"clean": "rm -rf dist",
|
|
@@ -175,7 +175,7 @@ var QueueProcessor = class {
|
|
|
175
175
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
176
176
|
model: llmClient.getModel()
|
|
177
177
|
};
|
|
178
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
178
|
+
const { runChatTurn } = await import("./orchestrator-OE7WFEW6.js");
|
|
179
179
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
180
180
|
sessionManager,
|
|
181
181
|
sessionId,
|
|
@@ -208,4 +208,4 @@ var QueueProcessor = class {
|
|
|
208
208
|
export {
|
|
209
209
|
QueueProcessor
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=processor-
|
|
211
|
+
//# sourceMappingURL=processor-GAOK7TPI.js.map
|
|
@@ -106,6 +106,10 @@ interface LLMCallStats {
|
|
|
106
106
|
generationSpeed: number;
|
|
107
107
|
totalTime: number;
|
|
108
108
|
timestamp?: string;
|
|
109
|
+
temperature?: number;
|
|
110
|
+
topP?: number;
|
|
111
|
+
topK?: number;
|
|
112
|
+
maxTokens?: number;
|
|
109
113
|
}
|
|
110
114
|
interface StatsDataPoint {
|
|
111
115
|
messageId: string;
|
|
@@ -142,6 +146,10 @@ interface CallStatsDataPoint {
|
|
|
142
146
|
prefillSpeed: number;
|
|
143
147
|
generationSpeed: number;
|
|
144
148
|
totalTime: number;
|
|
149
|
+
temperature?: number;
|
|
150
|
+
topP?: number;
|
|
151
|
+
topK?: number;
|
|
152
|
+
maxTokens?: number;
|
|
145
153
|
}
|
|
146
154
|
interface SessionStats {
|
|
147
155
|
totalTime: number;
|
|
@@ -405,6 +413,10 @@ interface ModelConfig {
|
|
|
405
413
|
id: string;
|
|
406
414
|
contextWindow: number;
|
|
407
415
|
source: 'backend' | 'user' | 'default';
|
|
416
|
+
temperature?: number;
|
|
417
|
+
topP?: number;
|
|
418
|
+
topK?: number;
|
|
419
|
+
maxTokens?: number;
|
|
408
420
|
}
|
|
409
421
|
/** LLM provider configuration */
|
|
410
422
|
interface Provider {
|
|
@@ -5,17 +5,18 @@ import {
|
|
|
5
5
|
loadGlobalConfig,
|
|
6
6
|
removeProvider,
|
|
7
7
|
saveGlobalConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P6GUT2QQ.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAvailableModelsFromBackend
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PYBB34ZK.js";
|
|
12
12
|
import {
|
|
13
|
-
detectBackend,
|
|
14
13
|
detectModel
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import
|
|
14
|
+
} from "./chunk-KSASIV4B.js";
|
|
15
|
+
import {
|
|
16
|
+
detectBackend
|
|
17
|
+
} from "./chunk-D4ZLSV6P.js";
|
|
17
18
|
import "./chunk-R4HADRYO.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-CJNQGEYG.js";
|
|
19
20
|
import "./chunk-PNBH3RAX.js";
|
|
20
21
|
|
|
21
22
|
// src/cli/provider.ts
|
|
@@ -248,7 +249,7 @@ async function runProviderAdd(mode) {
|
|
|
248
249
|
isActive: makeActive
|
|
249
250
|
});
|
|
250
251
|
if (makeActive) {
|
|
251
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
252
|
+
const { setDefaultModelSelection } = await import("./config-ACVEHBKG.js");
|
|
252
253
|
newConfig = setDefaultModelSelection(newConfig, newConfig.providers[newConfig.providers.length - 1].id, selectedModel);
|
|
253
254
|
}
|
|
254
255
|
await saveGlobalConfig(mode, newConfig);
|
|
@@ -372,4 +373,4 @@ export {
|
|
|
372
373
|
runProviderRemove,
|
|
373
374
|
runProviderUse
|
|
374
375
|
};
|
|
375
|
-
//# sourceMappingURL=provider-
|
|
376
|
+
//# sourceMappingURL=provider-RLQMVV2Z.js.map
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
getActiveProvider,
|
|
3
3
|
getDefaultModel,
|
|
4
4
|
loadGlobalConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-P6GUT2QQ.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YCQSAFAQ.js";
|
|
10
10
|
import "./chunk-AV45GQ7B.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BOEXJCOD.js";
|
|
12
|
+
import "./chunk-4O3C2JMB.js";
|
|
13
13
|
import "./chunk-NBU6KIOD.js";
|
|
14
14
|
import "./chunk-574HZVLE.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-PYBB34ZK.js";
|
|
16
|
+
import "./chunk-KSASIV4B.js";
|
|
17
|
+
import "./chunk-D4ZLSV6P.js";
|
|
18
18
|
import "./chunk-PMDJEJYY.js";
|
|
19
19
|
import "./chunk-EEPU4INU.js";
|
|
20
20
|
import "./chunk-DZHZ3UUR.js";
|
|
@@ -22,7 +22,7 @@ import "./chunk-22CTURMH.js";
|
|
|
22
22
|
import "./chunk-RN2O6JK7.js";
|
|
23
23
|
import "./chunk-XKFPU2FA.js";
|
|
24
24
|
import "./chunk-3EHGGBWE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-B7E3BICY.js";
|
|
26
26
|
import "./chunk-Y6HBEACI.js";
|
|
27
27
|
import {
|
|
28
28
|
ensureDataDirExists,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
34
|
} from "./chunk-TVQOONDR.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-CJNQGEYG.js";
|
|
36
36
|
import {
|
|
37
37
|
logger
|
|
38
38
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -188,4 +188,4 @@ async function runServe(options) {
|
|
|
188
188
|
export {
|
|
189
189
|
runServe
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=serve-
|
|
191
|
+
//# sourceMappingURL=serve-IBJ3SN3Q.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aT as ToolCall, c as Attachment, V as Diagnostic, ap as Provider, aa as ModelConfig, aF as Session, aO as SessionSummary, ah as Project, aJ as SessionMode, aL as SessionPhase, M as Message, N as Criterion, P as CriterionStatus, aB as QueuedMessage, H as ContextState, R as DangerLevel$1, aD as ServerMessage, aQ as StatsIdentity, aW as ToolResult, F as Config } from '../protocol-
|
|
1
|
+
import { aT as ToolCall, c as Attachment, V as Diagnostic, ap as Provider, aa as ModelConfig, aF as Session, aO as SessionSummary, ah as Project, aJ as SessionMode, aL as SessionPhase, M as Message, N as Criterion, P as CriterionStatus, aB as QueuedMessage, H as ContextState, R as DangerLevel$1, aD as ServerMessage, aQ as StatsIdentity, aW as ToolResult, F as Config } from '../protocol-BYM6rZvW.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
|
|
4
4
|
interface LLMMessage {
|
|
@@ -154,10 +154,27 @@ interface ProviderManager {
|
|
|
154
154
|
success: boolean;
|
|
155
155
|
error?: string;
|
|
156
156
|
}>;
|
|
157
|
+
updateModelSettings(providerId: string, modelId: string, settings: {
|
|
158
|
+
contextWindow?: number;
|
|
159
|
+
temperature?: number | null;
|
|
160
|
+
topP?: number | null;
|
|
161
|
+
topK?: number | null;
|
|
162
|
+
maxTokens?: number | null;
|
|
163
|
+
}): Promise<{
|
|
164
|
+
success: boolean;
|
|
165
|
+
error?: string;
|
|
166
|
+
model?: ModelConfig;
|
|
167
|
+
}>;
|
|
157
168
|
refreshProviderModels(providerId: string): Promise<{
|
|
158
169
|
success: boolean;
|
|
159
170
|
error?: string;
|
|
160
171
|
}>;
|
|
172
|
+
getModelSettings(modelId: string): {
|
|
173
|
+
temperature?: number;
|
|
174
|
+
topP?: number;
|
|
175
|
+
topK?: number;
|
|
176
|
+
maxTokens?: number;
|
|
177
|
+
} | undefined;
|
|
161
178
|
}
|
|
162
179
|
|
|
163
180
|
/**
|
|
@@ -262,6 +279,12 @@ declare class SessionManager {
|
|
|
262
279
|
private activeSessionId;
|
|
263
280
|
private providerManager;
|
|
264
281
|
constructor(providerManager: ProviderManager);
|
|
282
|
+
getCurrentModelSettings(): {
|
|
283
|
+
temperature?: number;
|
|
284
|
+
topP?: number;
|
|
285
|
+
topK?: number;
|
|
286
|
+
maxTokens?: number;
|
|
287
|
+
} | undefined;
|
|
265
288
|
/**
|
|
266
289
|
* Create a new session. Emits session.initialized event.
|
|
267
290
|
* Note: maxTokens is no longer stored in the session - it comes from the current model config
|
package/dist/server/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YCQSAFAQ.js";
|
|
5
5
|
import "../chunk-AV45GQ7B.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-BOEXJCOD.js";
|
|
7
|
+
import "../chunk-4O3C2JMB.js";
|
|
8
8
|
import "../chunk-NBU6KIOD.js";
|
|
9
9
|
import "../chunk-574HZVLE.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-PYBB34ZK.js";
|
|
11
|
+
import "../chunk-KSASIV4B.js";
|
|
12
|
+
import "../chunk-D4ZLSV6P.js";
|
|
13
13
|
import "../chunk-PMDJEJYY.js";
|
|
14
14
|
import "../chunk-EEPU4INU.js";
|
|
15
15
|
import "../chunk-DZHZ3UUR.js";
|
|
@@ -17,11 +17,11 @@ import "../chunk-22CTURMH.js";
|
|
|
17
17
|
import "../chunk-RN2O6JK7.js";
|
|
18
18
|
import "../chunk-XKFPU2FA.js";
|
|
19
19
|
import "../chunk-3EHGGBWE.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-B7E3BICY.js";
|
|
21
21
|
import "../chunk-Y6HBEACI.js";
|
|
22
22
|
import "../chunk-R4HADRYO.js";
|
|
23
23
|
import "../chunk-TVQOONDR.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-CJNQGEYG.js";
|
|
25
25
|
import "../chunk-PNBH3RAX.js";
|
|
26
26
|
export {
|
|
27
27
|
createServer,
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Message, S as SessionStats } from '../protocol-
|
|
2
|
-
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatSendPayload, s as ChatSummaryPayload, t as ChatThinkingPayload, u as ChatTodoPayload, v as ChatToolCallPayload, w as ChatToolOutputPayload, x as ChatToolPreparingPayload, y as ChatToolResultPayload, z as ChatVisionFallbackPayload, D as ClientMessage, E as ClientMessageType, F as Config, G as ContextCompactionEvent, H as ContextState, I as ContextStatePayload, J as ContextWindow, K as CriteriaEditPayload, L as CriteriaUpdatedPayload, N as Criterion, O as CriterionAttempt, P as CriterionStatus, Q as CriterionValidation, R as DangerLevel, T as DevServerOutputPayload, U as DevServerStatePayload, V as Diagnostic, W as EditContextEdit, X as EditContextLine, Y as EditContextRegion, Z as ErrorPayload, _ as ExecutionState, $ as FileReadEntry, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as ModeChangedPayload, a9 as ModeSwitchPayload, aa as ModelConfig, ab as ModelSessionStats, ac as PathConfirmPayload, ad as PathConfirmationReason, ae as PendingPathConfirmationPayload, af as PhaseChangedPayload, ag as PreparingToolCall, ah as Project, ai as ProjectDeletedPayload, aj as ProjectListPayload, ak as ProjectStatePayload, al as PromptContext, am as PromptContextMessage, an as PromptContextTool, ao as PromptRequestOptions, ap as Provider, aq as ProviderBackend, ar as ProviderChangedPayload, as as QueueAddedEvent, at as QueueAsapPayload, au as QueueCancelPayload, av as QueueCancelledEvent, aw as QueueCompletionPayload, ax as QueueDrainedEvent, ay as QueueEvent, az as QueueEventType, aA as QueueStatePayload, aB as QueuedMessage, aC as RecentUserPrompt, aD as ServerMessage, aE as ServerMessageType, aF as Session, aG as SessionListPayload, aH as SessionLoadPayload, aI as SessionMetadata, aJ as SessionMode, aK as SessionNameGeneratedPayload, aL as SessionPhase, aM as SessionRunningPayload, aN as SessionStatePayload, aO as SessionSummary, aP as StatsDataPoint, aQ as StatsIdentity, aR as TaskCompletedPayload, aS as Todo, aT as ToolCall, aU as ToolMode, aV as ToolName, aW as ToolResult, aX as ValidationResult, aY as createClientMessage, aZ as createServerMessage, a_ as isClientMessage, a$ as isServerMessage } from '../protocol-
|
|
1
|
+
import { M as Message, S as SessionStats } from '../protocol-BYM6rZvW.js';
|
|
2
|
+
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatSendPayload, s as ChatSummaryPayload, t as ChatThinkingPayload, u as ChatTodoPayload, v as ChatToolCallPayload, w as ChatToolOutputPayload, x as ChatToolPreparingPayload, y as ChatToolResultPayload, z as ChatVisionFallbackPayload, D as ClientMessage, E as ClientMessageType, F as Config, G as ContextCompactionEvent, H as ContextState, I as ContextStatePayload, J as ContextWindow, K as CriteriaEditPayload, L as CriteriaUpdatedPayload, N as Criterion, O as CriterionAttempt, P as CriterionStatus, Q as CriterionValidation, R as DangerLevel, T as DevServerOutputPayload, U as DevServerStatePayload, V as Diagnostic, W as EditContextEdit, X as EditContextLine, Y as EditContextRegion, Z as ErrorPayload, _ as ExecutionState, $ as FileReadEntry, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as ModeChangedPayload, a9 as ModeSwitchPayload, aa as ModelConfig, ab as ModelSessionStats, ac as PathConfirmPayload, ad as PathConfirmationReason, ae as PendingPathConfirmationPayload, af as PhaseChangedPayload, ag as PreparingToolCall, ah as Project, ai as ProjectDeletedPayload, aj as ProjectListPayload, ak as ProjectStatePayload, al as PromptContext, am as PromptContextMessage, an as PromptContextTool, ao as PromptRequestOptions, ap as Provider, aq as ProviderBackend, ar as ProviderChangedPayload, as as QueueAddedEvent, at as QueueAsapPayload, au as QueueCancelPayload, av as QueueCancelledEvent, aw as QueueCompletionPayload, ax as QueueDrainedEvent, ay as QueueEvent, az as QueueEventType, aA as QueueStatePayload, aB as QueuedMessage, aC as RecentUserPrompt, aD as ServerMessage, aE as ServerMessageType, aF as Session, aG as SessionListPayload, aH as SessionLoadPayload, aI as SessionMetadata, aJ as SessionMode, aK as SessionNameGeneratedPayload, aL as SessionPhase, aM as SessionRunningPayload, aN as SessionStatePayload, aO as SessionSummary, aP as StatsDataPoint, aQ as StatsIdentity, aR as TaskCompletedPayload, aS as Todo, aT as ToolCall, aU as ToolMode, aV as ToolName, aW as ToolResult, aX as ValidationResult, aY as createClientMessage, aZ as createServerMessage, a_ as isClientMessage, a$ as isServerMessage } from '../protocol-BYM6rZvW.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Session stats computation - aggregates response-level MessageStats from
|
package/dist/shared/index.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
requestPathAccess,
|
|
12
12
|
stepDoneTool,
|
|
13
13
|
validateToolAction
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4O3C2JMB.js";
|
|
15
15
|
import "./chunk-NBU6KIOD.js";
|
|
16
16
|
import "./chunk-574HZVLE.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-D4ZLSV6P.js";
|
|
18
18
|
import "./chunk-PMDJEJYY.js";
|
|
19
19
|
import "./chunk-EEPU4INU.js";
|
|
20
20
|
import "./chunk-DZHZ3UUR.js";
|
|
@@ -29,6 +29,7 @@ import "./chunk-3EHGGBWE.js";
|
|
|
29
29
|
import "./chunk-Y6HBEACI.js";
|
|
30
30
|
import "./chunk-R4HADRYO.js";
|
|
31
31
|
import "./chunk-TVQOONDR.js";
|
|
32
|
+
import "./chunk-CJNQGEYG.js";
|
|
32
33
|
import "./chunk-PNBH3RAX.js";
|
|
33
34
|
export {
|
|
34
35
|
AskUserInterrupt,
|
|
@@ -47,4 +48,4 @@ export {
|
|
|
47
48
|
stepDoneTool,
|
|
48
49
|
validateToolAction
|
|
49
50
|
};
|
|
50
|
-
//# sourceMappingURL=tools-
|
|
51
|
+
//# sourceMappingURL=tools-CSV7G554.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getVisionFallbackConfig,
|
|
8
8
|
isVisionFallbackEnabled,
|
|
9
9
|
setVisionFallbackConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CJNQGEYG.js";
|
|
11
11
|
import "./chunk-PNBH3RAX.js";
|
|
12
12
|
export {
|
|
13
13
|
clearDescriptionCache,
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
isVisionFallbackEnabled,
|
|
20
20
|
setVisionFallbackConfig
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=vision-fallback-
|
|
22
|
+
//# sourceMappingURL=vision-fallback-QJ26DCEF.js.map
|