@f5-sales-demo/xcsh 21.29.1 → 21.29.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.29.1",
4
+ "version": "21.29.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",
@@ -63,13 +63,13 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@agentclientprotocol/sdk": "1.4.0",
66
- "@f5-sales-demo/pi-agent-core": "21.29.1",
67
- "@f5-sales-demo/pi-ai": "21.29.1",
68
- "@f5-sales-demo/pi-natives": "21.29.1",
69
- "@f5-sales-demo/pi-resource-management": "21.29.1",
70
- "@f5-sales-demo/pi-tui": "21.29.1",
71
- "@f5-sales-demo/pi-utils": "21.29.1",
72
- "@f5-sales-demo/xcsh-stats": "21.29.1",
66
+ "@f5-sales-demo/pi-agent-core": "21.29.2",
67
+ "@f5-sales-demo/pi-ai": "21.29.2",
68
+ "@f5-sales-demo/pi-natives": "21.29.2",
69
+ "@f5-sales-demo/pi-resource-management": "21.29.2",
70
+ "@f5-sales-demo/pi-tui": "21.29.2",
71
+ "@f5-sales-demo/pi-utils": "21.29.2",
72
+ "@f5-sales-demo/xcsh-stats": "21.29.2",
73
73
  "@mozilla/readability": "^0.6",
74
74
  "@sinclair/typebox": "0.34.52",
75
75
  "@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.29.1",
21
- "commit": "de194b2a5cd9240c0e732637e02fc7e705c12b55",
22
- "shortCommit": "de194b2",
20
+ "version": "21.29.2",
21
+ "commit": "a18c77dc90f9f3ad7f9c0d5f09754927dcf3fb0c",
22
+ "shortCommit": "a18c77d",
23
23
  "branch": "main",
24
- "tag": "v21.29.1",
25
- "commitDate": "2026-09-16T14:32:51+00:00",
26
- "buildDate": "2026-09-16T15:48:20.165Z",
24
+ "tag": "v21.29.2",
25
+ "commitDate": "2026-09-16T17:02:47+00:00",
26
+ "buildDate": "2026-09-16T18:00:06.522Z",
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/de194b2a5cd9240c0e732637e02fc7e705c12b55",
32
- "releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.29.1"
31
+ "commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/a18c77dc90f9f3ad7f9c0d5f09754927dcf3fb0c",
32
+ "releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.29.2"
33
33
  };
@@ -54,6 +54,32 @@ function workerDescription(runtime: ManagedRuntime, events: QueuedWorkerEvent[])
54
54
  return { endpoint: endpointView(runtime), events: [...events], pid: process.pid };
55
55
  }
56
56
 
57
+ function applyNotification(runtime: ManagedRuntime, event: Notification): void {
58
+ const thread = runtime.endpoint.thread;
59
+ if (event.params.threadId !== thread.id) return;
60
+ if (event.method === "thread/name/updated") {
61
+ const name = event.params.threadName;
62
+ if (name === null || typeof name === "string") thread.name = name;
63
+ return;
64
+ }
65
+ if (event.method === "thread/status/changed") {
66
+ const status = event.params.status;
67
+ if (status && typeof status === "object" && !Array.isArray(status)) thread.status = structuredClone(status);
68
+ return;
69
+ }
70
+ if (event.method !== "thread/settings/updated") return;
71
+ const settings = event.params.threadSettings;
72
+ if (!settings || typeof settings !== "object" || Array.isArray(settings)) return;
73
+ const model = (settings as Record<string, unknown>).model;
74
+ const provider = (settings as Record<string, unknown>).modelProvider;
75
+ const effort = (settings as Record<string, unknown>).effort;
76
+ const mode = ((settings as Record<string, unknown>).collaborationMode as { mode?: unknown } | undefined)?.mode;
77
+ if (typeof model === "string") thread.model = model;
78
+ if (typeof provider === "string") thread.modelProvider = provider;
79
+ if (effort === null || typeof effort === "string") thread.reasoningEffort = effort;
80
+ if (mode === "plan" || mode === "default") runtime.endpoint.collaborationMode = mode;
81
+ }
82
+
57
83
  /**
58
84
  * Owns one phone-created AgentSession independently from the relay host.
59
85
  * A replacement host can reconnect to this owner without restarting work.
@@ -77,6 +103,7 @@ export async function startManagedSessionWorker(
77
103
  while (events[0] && events[0].seq <= through) events.shift();
78
104
  };
79
105
  const publish = (event: Notification): void => {
106
+ if (runtime) applyNotification(runtime, event);
80
107
  const queued = { seq: nextSequence++, event };
81
108
  events.push(queued);
82
109
  if (events.length > 128) events.shift();