@f5-sales-demo/xcsh 21.9.1 → 21.9.2
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/xcsh",
|
|
4
|
-
"version": "21.9.
|
|
4
|
+
"version": "21.9.2",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"homepage": "https://github.com/f5-sales-demo/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@agentclientprotocol/sdk": "1.3.0",
|
|
64
|
-
"@f5-sales-demo/pi-agent-core": "21.9.
|
|
65
|
-
"@f5-sales-demo/pi-ai": "21.9.
|
|
66
|
-
"@f5-sales-demo/pi-natives": "21.9.
|
|
67
|
-
"@f5-sales-demo/pi-resource-management": "21.9.
|
|
68
|
-
"@f5-sales-demo/pi-tui": "21.9.
|
|
69
|
-
"@f5-sales-demo/pi-utils": "21.9.
|
|
70
|
-
"@f5-sales-demo/xcsh-stats": "21.9.
|
|
64
|
+
"@f5-sales-demo/pi-agent-core": "21.9.2",
|
|
65
|
+
"@f5-sales-demo/pi-ai": "21.9.2",
|
|
66
|
+
"@f5-sales-demo/pi-natives": "21.9.2",
|
|
67
|
+
"@f5-sales-demo/pi-resource-management": "21.9.2",
|
|
68
|
+
"@f5-sales-demo/pi-tui": "21.9.2",
|
|
69
|
+
"@f5-sales-demo/pi-utils": "21.9.2",
|
|
70
|
+
"@f5-sales-demo/xcsh-stats": "21.9.2",
|
|
71
71
|
"@mozilla/readability": "^0.6",
|
|
72
72
|
"@sinclair/typebox": "^0.34",
|
|
73
73
|
"@xterm/headless": "^6.0",
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "21.9.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "21.9.2",
|
|
21
|
+
"commit": "56616a2381219096fc67218de2cc8f42b369ca5d",
|
|
22
|
+
"shortCommit": "56616a2",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v21.9.
|
|
25
|
-
"commitDate": "2026-09-
|
|
26
|
-
"buildDate": "2026-09-
|
|
24
|
+
"tag": "v21.9.2",
|
|
25
|
+
"commitDate": "2026-09-03T06:02:32+00:00",
|
|
26
|
+
"buildDate": "2026-09-03T06:34:34.898Z",
|
|
27
27
|
"dirty": true,
|
|
28
28
|
"prNumber": "",
|
|
29
29
|
"repoUrl": "https://github.com/f5-sales-demo/xcsh",
|
|
30
30
|
"repoSlug": "f5-sales-demo/xcsh",
|
|
31
|
-
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/
|
|
32
|
-
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.9.
|
|
31
|
+
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/56616a2381219096fc67218de2cc8f42b369ca5d",
|
|
32
|
+
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.9.2"
|
|
33
33
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThinkingLevel } from "@f5-sales-demo/pi-agent-core";
|
|
2
|
-
import { canonicalizeOAuthProviderId, type Model } from "@f5-sales-demo/pi-ai";
|
|
2
|
+
import { canonicalizeOAuthProviderId, type Model, ReasoningEffort } from "@f5-sales-demo/pi-ai";
|
|
3
3
|
import type { Settings } from "../../config/settings";
|
|
4
4
|
import type { VllmDiscoveredModel } from "../../config/vllm-config";
|
|
5
5
|
import { applySubscriptionProfileRoles, type SubscriptionProfileId } from "../../routing/subscription-profiles";
|
|
@@ -9,7 +9,7 @@ export interface LoginModelChoice {
|
|
|
9
9
|
description: string;
|
|
10
10
|
provider: string;
|
|
11
11
|
modelId: string;
|
|
12
|
-
thinkingLevel
|
|
12
|
+
thinkingLevel?: ThinkingLevel;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface LiteLLMLoginModelChoice extends LoginModelChoice {
|
|
@@ -72,10 +72,22 @@ export function getVllmLoginModelChoices(models: readonly VllmDiscoveredModel[])
|
|
|
72
72
|
: `${model.contextWindow.toLocaleString("en-US")} token context`,
|
|
73
73
|
provider: "vllm",
|
|
74
74
|
modelId: model.id,
|
|
75
|
-
thinkingLevel: ThinkingLevel.Off,
|
|
76
75
|
}));
|
|
77
76
|
}
|
|
78
77
|
|
|
78
|
+
function resolveLoginThinkingLevel(choice: LoginModelChoice, model: Model): ThinkingLevel {
|
|
79
|
+
if (choice.thinkingLevel !== undefined) return choice.thinkingLevel;
|
|
80
|
+
return model.thinking?.supportedLevels.some(level => level.effort === ReasoningEffort.None)
|
|
81
|
+
? ThinkingLevel.Off
|
|
82
|
+
: ThinkingLevel.Inherit;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function formatLoginThinkingState(level: ThinkingLevel | undefined): string {
|
|
86
|
+
if (level === undefined || level === ThinkingLevel.Inherit) return "provider default thinking";
|
|
87
|
+
if (level === ThinkingLevel.Off) return "thinking off";
|
|
88
|
+
return `thinking ${level}`;
|
|
89
|
+
}
|
|
90
|
+
|
|
79
91
|
/**
|
|
80
92
|
* Minimal session surface needed to apply a model after a successful login.
|
|
81
93
|
* Kept structural so the login flow can call it without pulling in the full
|
|
@@ -84,7 +96,6 @@ export function getVllmLoginModelChoices(models: readonly VllmDiscoveredModel[])
|
|
|
84
96
|
interface BaseModelApplicableSession {
|
|
85
97
|
modelRegistry: { getAll(): Model[] };
|
|
86
98
|
setModel(model: Model, role: "default", options: { selector: string; thinkingLevel: ThinkingLevel }): Promise<void>;
|
|
87
|
-
setThinkingLevel(level: ThinkingLevel): void;
|
|
88
99
|
}
|
|
89
100
|
|
|
90
101
|
interface ModelApplicableSession extends BaseModelApplicableSession {
|
|
@@ -96,6 +107,7 @@ interface ModelApplicableSession extends BaseModelApplicableSession {
|
|
|
96
107
|
};
|
|
97
108
|
settings?: Pick<Settings, "getModelRoles" | "get" | "set">;
|
|
98
109
|
setModelTemporary?(model: Model, thinkingLevel?: ThinkingLevel): Promise<void>;
|
|
110
|
+
setThinkingLevel(level: ThinkingLevel): void;
|
|
99
111
|
}
|
|
100
112
|
|
|
101
113
|
/**
|
|
@@ -115,9 +127,8 @@ export async function applyModelAfterLogin(
|
|
|
115
127
|
const selector = `${choice.provider}/${choice.modelId}`;
|
|
116
128
|
await session.setModel(resolved, "default", {
|
|
117
129
|
selector,
|
|
118
|
-
thinkingLevel: choice
|
|
130
|
+
thinkingLevel: resolveLoginThinkingLevel(choice, resolved),
|
|
119
131
|
});
|
|
120
|
-
session.setThinkingLevel(choice.thinkingLevel);
|
|
121
132
|
return true;
|
|
122
133
|
}
|
|
123
134
|
|
|
@@ -79,6 +79,7 @@ import { commitLiteLLMLogin } from "./litellm-login-transaction";
|
|
|
79
79
|
import {
|
|
80
80
|
applyModelAfterLogin,
|
|
81
81
|
applyOAuthLoginModel,
|
|
82
|
+
formatLoginThinkingState,
|
|
82
83
|
GOOGLE_ANTIGRAVITY_LOGIN_MODEL_CHOICE,
|
|
83
84
|
GOOGLE_VERTEX_LOGIN_MODEL_CHOICE,
|
|
84
85
|
LITELLM_LOGIN_MODEL_CHOICES,
|
|
@@ -1207,7 +1208,14 @@ export class SelectorController {
|
|
|
1207
1208
|
new Text(theme.fg("success", `${theme.status.success} vLLM configuration saved to ${modelsPath}`), 1, 0),
|
|
1208
1209
|
);
|
|
1209
1210
|
this.ctx.chatContainer.addChild(
|
|
1210
|
-
new Text(
|
|
1211
|
+
new Text(
|
|
1212
|
+
theme.fg(
|
|
1213
|
+
"success",
|
|
1214
|
+
`Default model: vllm/${flowResult.choice.modelId} (${formatLoginThinkingState(this.ctx.session.thinkingLevel)})`,
|
|
1215
|
+
),
|
|
1216
|
+
1,
|
|
1217
|
+
0,
|
|
1218
|
+
),
|
|
1211
1219
|
);
|
|
1212
1220
|
if (this.ctx.session.modelRegistry.authStorage.get("vllm")) {
|
|
1213
1221
|
this.ctx.chatContainer.addChild(
|