@f5-sales-demo/xcsh 21.21.0 → 21.21.1

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.21.0",
4
+ "version": "21.21.1",
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",
@@ -62,13 +62,13 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@agentclientprotocol/sdk": "1.3.0",
65
- "@f5-sales-demo/pi-agent-core": "21.21.0",
66
- "@f5-sales-demo/pi-ai": "21.21.0",
67
- "@f5-sales-demo/pi-natives": "21.21.0",
68
- "@f5-sales-demo/pi-resource-management": "21.21.0",
69
- "@f5-sales-demo/pi-tui": "21.21.0",
70
- "@f5-sales-demo/pi-utils": "21.21.0",
71
- "@f5-sales-demo/xcsh-stats": "21.21.0",
65
+ "@f5-sales-demo/pi-agent-core": "21.21.1",
66
+ "@f5-sales-demo/pi-ai": "21.21.1",
67
+ "@f5-sales-demo/pi-natives": "21.21.1",
68
+ "@f5-sales-demo/pi-resource-management": "21.21.1",
69
+ "@f5-sales-demo/pi-tui": "21.21.1",
70
+ "@f5-sales-demo/pi-utils": "21.21.1",
71
+ "@f5-sales-demo/xcsh-stats": "21.21.1",
72
72
  "@mozilla/readability": "^0.6",
73
73
  "@sinclair/typebox": "^0.34",
74
74
  "@xterm/headless": "^6.0",
@@ -171,6 +171,11 @@ function nativeCapability(): string | undefined {
171
171
  return typeof value === "string" && value.length > 0 ? value : undefined;
172
172
  }
173
173
 
174
+ /** Protocol 23 adds a workspace receipt without changing native action semantics. */
175
+ function supportsNativeLifecycle(protocol: number | undefined): boolean {
176
+ return protocol === 22 || protocol === 23;
177
+ }
178
+
174
179
  function persistedTurns(ctx: ExtensionContext): PersistedTurn[] {
175
180
  try {
176
181
  const entries = ctx.sessionManager?.getEntries?.() as unknown[] | undefined;
@@ -476,12 +481,12 @@ export default function herdrReporter(pi: ExtensionAPI): void {
476
481
  }
477
482
  const capability = nativeCapability();
478
483
  const frame =
479
- client.protocolVersion === 22 && capability
484
+ supportsNativeLifecycle(client.protocolVersion) && capability
480
485
  ? { ...baseFrame, native_capability: capability }
481
486
  : baseFrame;
482
487
  const response = await client.request<Record<string, unknown>>(TURN_REPORT_METHOD, frame);
483
- if (client.protocolVersion === 22 && response.type !== "agent_turn") {
484
- throw new Error("Herdr did not confirm the protocol-22 turn journal write");
488
+ if (supportsNativeLifecycle(client.protocolVersion) && response.type !== "agent_turn") {
489
+ throw new Error("Herdr did not confirm the native turn journal write");
485
490
  }
486
491
  pi.appendEntry(TURN_ENTRY_TYPE, { ...event, delivered: true });
487
492
  delivered = true;
@@ -522,7 +527,7 @@ export default function herdrReporter(pi: ExtensionAPI): void {
522
527
  try {
523
528
  const client = getHerdrClient(socketPath);
524
529
  await client.ensureProtocol();
525
- if (client.protocolVersion !== 22) return false;
530
+ if (!supportsNativeLifecycle(client.protocolVersion)) return false;
526
531
  const response = await client.request<Record<string, unknown>>(TURN_ACTION_ACK_METHOD, {
527
532
  ...target,
528
533
  action_id: action.actionId,
@@ -679,7 +684,8 @@ export default function herdrReporter(pi: ExtensionAPI): void {
679
684
  const registered = await reportSemanticTurn("starting");
680
685
  const socketPath = process.env.HERDR_SOCKET_PATH;
681
686
  const client = socketPath ? getHerdrClient(socketPath) : undefined;
682
- nativeActionsEnabled = registered && client?.protocolVersion === 22 && nativeCapability() !== undefined;
687
+ nativeActionsEnabled =
688
+ registered && supportsNativeLifecycle(client?.protocolVersion) && nativeCapability() !== undefined;
683
689
  if (nativeActionsEnabled) startActionPolling(ctx);
684
690
  };
685
691
 
@@ -2,7 +2,7 @@ import { randomUUID } from "node:crypto";
2
2
  import { connect } from "node:net";
3
3
 
4
4
  export const HERDR_PROTOCOL_MIN_VERSION = 19;
5
- export const HERDR_PROTOCOL_MAX_VERSION = 22;
5
+ export const HERDR_PROTOCOL_MAX_VERSION = 23;
6
6
  const DEFAULT_TIMEOUT_MS = 5_000;
7
7
  const MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
8
8
 
@@ -17,17 +17,17 @@ export interface BuildInfo {
17
17
  }
18
18
 
19
19
  export const BUILD_INFO: BuildInfo = {
20
- "version": "21.21.0",
21
- "commit": "1d087d1f95b4fd1cfebe3d6dcb1b156e8212733c",
22
- "shortCommit": "1d087d1",
20
+ "version": "21.21.1",
21
+ "commit": "e8a031afe55a0a9b799df70627051db2d42018c8",
22
+ "shortCommit": "e8a031a",
23
23
  "branch": "main",
24
- "tag": "v21.21.0",
25
- "commitDate": "2026-09-09T11:06:00+00:00",
26
- "buildDate": "2026-09-09T12:00:55.126Z",
24
+ "tag": "v21.21.1",
25
+ "commitDate": "2026-09-09T13:25:47+00:00",
26
+ "buildDate": "2026-09-09T14:27:03.052Z",
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/1d087d1f95b4fd1cfebe3d6dcb1b156e8212733c",
32
- "releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.21.0"
31
+ "commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/e8a031afe55a0a9b799df70627051db2d42018c8",
32
+ "releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.21.1"
33
33
  };