@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.
|
|
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.
|
|
66
|
-
"@f5-sales-demo/pi-ai": "21.21.
|
|
67
|
-
"@f5-sales-demo/pi-natives": "21.21.
|
|
68
|
-
"@f5-sales-demo/pi-resource-management": "21.21.
|
|
69
|
-
"@f5-sales-demo/pi-tui": "21.21.
|
|
70
|
-
"@f5-sales-demo/pi-utils": "21.21.
|
|
71
|
-
"@f5-sales-demo/xcsh-stats": "21.21.
|
|
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
|
|
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
|
|
484
|
-
throw new Error("Herdr did not confirm the
|
|
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
|
|
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 =
|
|
687
|
+
nativeActionsEnabled =
|
|
688
|
+
registered && supportsNativeLifecycle(client?.protocolVersion) && nativeCapability() !== undefined;
|
|
683
689
|
if (nativeActionsEnabled) startActionPolling(ctx);
|
|
684
690
|
};
|
|
685
691
|
|
package/src/herdr/client.ts
CHANGED
|
@@ -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 =
|
|
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.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "21.21.1",
|
|
21
|
+
"commit": "e8a031afe55a0a9b799df70627051db2d42018c8",
|
|
22
|
+
"shortCommit": "e8a031a",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v21.21.
|
|
25
|
-
"commitDate": "2026-09-
|
|
26
|
-
"buildDate": "2026-09-
|
|
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/
|
|
32
|
-
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.21.
|
|
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
|
};
|