@wrongstack/webui-server 0.308.7 → 0.309.0
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/index.js +6 -0
- package/dist/server/entry.js +6 -0
- package/dist/server/server-runtime.d.ts +1 -0
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -27983,6 +27983,7 @@ function createSessionStartPayload(g) {
|
|
|
27983
27983
|
let inputCost = 0;
|
|
27984
27984
|
let outputCost = 0;
|
|
27985
27985
|
let cacheReadCost = 0;
|
|
27986
|
+
let reasoningEffortLevels;
|
|
27986
27987
|
try {
|
|
27987
27988
|
const m = await resolveProviderModelMetadata(
|
|
27988
27989
|
g.modelsRegistry,
|
|
@@ -27991,6 +27992,10 @@ function createSessionStartPayload(g) {
|
|
|
27991
27992
|
config.providers?.[config.provider]
|
|
27992
27993
|
);
|
|
27993
27994
|
maxContext = m?.capabilities?.maxContext ?? 0;
|
|
27995
|
+
const rc = m?.capabilities.reasoningConfig;
|
|
27996
|
+
if (rc?.effortSupported && rc.effortLevels?.length) {
|
|
27997
|
+
reasoningEffortLevels = rc.effortLevels;
|
|
27998
|
+
}
|
|
27994
27999
|
if (!maxContext) {
|
|
27995
28000
|
try {
|
|
27996
28001
|
const provider = await g.modelsRegistry.getProvider(config.provider);
|
|
@@ -28021,6 +28026,7 @@ function createSessionStartPayload(g) {
|
|
|
28021
28026
|
contextMode: g.getContextMode(),
|
|
28022
28027
|
...protocolAdvertisement()
|
|
28023
28028
|
};
|
|
28029
|
+
if (reasoningEffortLevels) result.reasoningEffortLevels = reasoningEffortLevels;
|
|
28024
28030
|
if (g.getNeedsSetup()) result.needsSetup = true;
|
|
28025
28031
|
return result;
|
|
28026
28032
|
};
|
package/dist/server/entry.js
CHANGED
|
@@ -25835,6 +25835,7 @@ function createSessionStartPayload(g) {
|
|
|
25835
25835
|
let inputCost = 0;
|
|
25836
25836
|
let outputCost = 0;
|
|
25837
25837
|
let cacheReadCost = 0;
|
|
25838
|
+
let reasoningEffortLevels;
|
|
25838
25839
|
try {
|
|
25839
25840
|
const m = await resolveProviderModelMetadata(
|
|
25840
25841
|
g.modelsRegistry,
|
|
@@ -25843,6 +25844,10 @@ function createSessionStartPayload(g) {
|
|
|
25843
25844
|
config.providers?.[config.provider]
|
|
25844
25845
|
);
|
|
25845
25846
|
maxContext = m?.capabilities?.maxContext ?? 0;
|
|
25847
|
+
const rc = m?.capabilities.reasoningConfig;
|
|
25848
|
+
if (rc?.effortSupported && rc.effortLevels?.length) {
|
|
25849
|
+
reasoningEffortLevels = rc.effortLevels;
|
|
25850
|
+
}
|
|
25846
25851
|
if (!maxContext) {
|
|
25847
25852
|
try {
|
|
25848
25853
|
const provider = await g.modelsRegistry.getProvider(config.provider);
|
|
@@ -25873,6 +25878,7 @@ function createSessionStartPayload(g) {
|
|
|
25873
25878
|
contextMode: g.getContextMode(),
|
|
25874
25879
|
...protocolAdvertisement()
|
|
25875
25880
|
};
|
|
25881
|
+
if (reasoningEffortLevels) result.reasoningEffortLevels = reasoningEffortLevels;
|
|
25876
25882
|
if (g.getNeedsSetup()) result.needsSetup = true;
|
|
25877
25883
|
return result;
|
|
25878
25884
|
};
|
|
@@ -68,6 +68,7 @@ export declare function createSessionStartPayload(g: SessionStartPayloadGetters)
|
|
|
68
68
|
protocolVersion: number;
|
|
69
69
|
protocolCapabilities: string[];
|
|
70
70
|
needsSetup?: boolean | undefined;
|
|
71
|
+
reasoningEffortLevels?: string[] | undefined;
|
|
71
72
|
}>;
|
|
72
73
|
interface WsServerResult {
|
|
73
74
|
wssPrimary: WebSocketServer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/webui-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.309.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack WebUI HTTP/WebSocket server module — extracted from @wrongstack/webui in PR #243/244 to remove the CLI -> @wrongstack/webui/server cross-package edge (audit §3.1.1). Pure backend: HTTP routes, WebSocket handlers, MCP tool wrappers, HTML serving. The web frontend lives in @wrongstack/webui; this package is the standalone server it can run on.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"ws": "^8.21.3",
|
|
43
|
-
"@wrongstack/
|
|
44
|
-
"@wrongstack/
|
|
45
|
-
"@wrongstack/
|
|
46
|
-
"@wrongstack/
|
|
47
|
-
"@wrongstack/
|
|
48
|
-
"@wrongstack/
|
|
49
|
-
"@wrongstack/
|
|
50
|
-
"@wrongstack/runtime": "0.
|
|
51
|
-
"@wrongstack/
|
|
52
|
-
"@wrongstack/
|
|
53
|
-
"@wrongstack/vector-memory": "0.
|
|
43
|
+
"@wrongstack/core": "0.309.0",
|
|
44
|
+
"@wrongstack/requirement-intake": "0.309.0",
|
|
45
|
+
"@wrongstack/providers": "0.309.0",
|
|
46
|
+
"@wrongstack/sdd": "0.309.0",
|
|
47
|
+
"@wrongstack/sage": "0.309.0",
|
|
48
|
+
"@wrongstack/kanban": "0.309.0",
|
|
49
|
+
"@wrongstack/mcp": "0.309.0",
|
|
50
|
+
"@wrongstack/runtime": "0.309.0",
|
|
51
|
+
"@wrongstack/techstack": "0.309.0",
|
|
52
|
+
"@wrongstack/tools": "0.309.0",
|
|
53
|
+
"@wrongstack/vector-memory": "0.309.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^26.2.0",
|