@f5-sales-demo/xcsh 21.37.5 → 21.37.6
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.37.
|
|
4
|
+
"version": "21.37.6",
|
|
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",
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
67
|
-
"@f5-sales-demo/pi-agent-core": "21.37.
|
|
68
|
-
"@f5-sales-demo/pi-ai": "21.37.
|
|
69
|
-
"@f5-sales-demo/pi-natives": "21.37.
|
|
70
|
-
"@f5-sales-demo/pi-resource-management": "21.37.
|
|
71
|
-
"@f5-sales-demo/pi-tui": "21.37.
|
|
72
|
-
"@f5-sales-demo/pi-utils": "21.37.
|
|
73
|
-
"@f5-sales-demo/xcsh-stats": "21.37.
|
|
67
|
+
"@f5-sales-demo/pi-agent-core": "21.37.6",
|
|
68
|
+
"@f5-sales-demo/pi-ai": "21.37.6",
|
|
69
|
+
"@f5-sales-demo/pi-natives": "21.37.6",
|
|
70
|
+
"@f5-sales-demo/pi-resource-management": "21.37.6",
|
|
71
|
+
"@f5-sales-demo/pi-tui": "21.37.6",
|
|
72
|
+
"@f5-sales-demo/pi-utils": "21.37.6",
|
|
73
|
+
"@f5-sales-demo/xcsh-stats": "21.37.6",
|
|
74
74
|
"@mozilla/readability": "^0.6",
|
|
75
75
|
"@sinclair/typebox": "0.34.52",
|
|
76
76
|
"@tobilu/qmd": "2.8.3",
|
package/src/cli.ts
CHANGED
|
@@ -202,4 +202,15 @@ if (process.env.XCSH_SMOKE_TEST_VERTEX_AUTH === "1") {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
if (process.env.XCSH_SMOKE_TEST_QMD === "1") {
|
|
206
|
+
try {
|
|
207
|
+
const { runQmdSmoke } = await import("./qmd-smoke");
|
|
208
|
+
process.stdout.write(`${await runQmdSmoke()}\n`);
|
|
209
|
+
process.exit(0);
|
|
210
|
+
} catch (error) {
|
|
211
|
+
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
212
|
+
process.exit(1);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
205
216
|
await runCli(process.argv.slice(2));
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "21.37.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "21.37.6",
|
|
21
|
+
"commit": "bbad6e2b954b8331ad7ed320d6fd6ec394bbfc71",
|
|
22
|
+
"shortCommit": "bbad6e2",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v21.37.
|
|
25
|
-
"commitDate": "2026-09-
|
|
26
|
-
"buildDate": "2026-09-22T02:
|
|
24
|
+
"tag": "v21.37.6",
|
|
25
|
+
"commitDate": "2026-09-22T02:01:05+00:00",
|
|
26
|
+
"buildDate": "2026-09-22T02:59:56.787Z",
|
|
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.37.
|
|
31
|
+
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/bbad6e2b954b8331ad7ed320d6fd6ec394bbfc71",
|
|
32
|
+
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.37.6"
|
|
33
33
|
};
|
|
@@ -56,6 +56,7 @@ export function getDefaultReleaseCacheRoot(platform: NodeJS.Platform = process.p
|
|
|
56
56
|
|
|
57
57
|
export function releaseValidationEnvironment(environment: NodeJS.ProcessEnv): NodeJS.ProcessEnv {
|
|
58
58
|
const validationEnvironment = { ...environment };
|
|
59
|
+
delete validationEnvironment.XCSH_SMOKE_TEST_QMD;
|
|
59
60
|
delete validationEnvironment.XCSH_SMOKE_TEST_SPECS;
|
|
60
61
|
delete validationEnvironment.XCSH_SMOKE_TEST_VERTEX_AUTH;
|
|
61
62
|
return validationEnvironment;
|
package/src/qmd-smoke.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import os from "node:os";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { getAgentDbPath } from "@f5-sales-demo/pi-utils";
|
|
4
|
+
|
|
5
|
+
export const QMD_SMOKE_SUCCESS = "XCSH_QMD_SMOKE_OK";
|
|
6
|
+
const EXPECTED_CATEGORY = "dns-dns-zone-clone-from-dns-domain";
|
|
7
|
+
|
|
8
|
+
export interface QmdSmokeOptions {
|
|
9
|
+
cacheRoot?: string;
|
|
10
|
+
agentDatabasePath?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Release-only probe for the exact BM25 and process-global SQLite boundary. */
|
|
14
|
+
export async function runQmdSmoke(options: QmdSmokeOptions = {}): Promise<string> {
|
|
15
|
+
const { rankQmdBm25CatalogDiscovery } = await import("./internal-urls/api-catalog-discovery");
|
|
16
|
+
const { QMD_API_CATALOG_PREBUILT_INDEX } = await import("./internal-urls/api-catalog-qmd-index.generated");
|
|
17
|
+
const candidates = await rankQmdBm25CatalogDiscovery("clone a DNS zone", {
|
|
18
|
+
cacheRoot: options.cacheRoot ?? path.join(os.homedir(), ".xcsh", "cache", "qmd-api-catalog"),
|
|
19
|
+
prebuiltIndex: QMD_API_CATALOG_PREBUILT_INDEX,
|
|
20
|
+
limit: 1,
|
|
21
|
+
});
|
|
22
|
+
if (candidates[0]?.categoryName !== EXPECTED_CATEGORY) {
|
|
23
|
+
throw new Error(`QMD BM25 smoke expected ${EXPECTED_CATEGORY} at rank 1`);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// QMD initializes first so this catches dependency code that changes Bun's
|
|
27
|
+
// process-global SQLite implementation before xcsh opens its own database.
|
|
28
|
+
const { AgentStorage } = await import("./session/agent-storage");
|
|
29
|
+
await AgentStorage.open(options.agentDatabasePath ?? getAgentDbPath());
|
|
30
|
+
return QMD_SMOKE_SUCCESS;
|
|
31
|
+
}
|