@f5xc-salesdemos/xcsh 18.85.0 → 18.85.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": "@f5xc-salesdemos/xcsh",
|
|
4
|
-
"version": "18.85.
|
|
4
|
+
"version": "18.85.2",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"homepage": "https://github.com/f5xc-salesdemos/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"xcsh": "src/cli.ts"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "bun run generate-build-info && bun run generate-api-spec-index && bun run generate-branding-index && test -f src/internal-urls/api-spec-index.generated.ts && bun --cwd=../stats scripts/generate-client-bundle.ts --generate && bun --cwd=../natives run embed:native && bun build --compile --define PI_COMPILED=true --external mupdf --root ../.. ./src/cli.ts --outfile dist/xcsh && bun --cwd=../natives run embed:native --reset && bun --cwd=../stats scripts/generate-client-bundle.ts --reset",
|
|
34
|
+
"build": "bun run generate-build-info && bun run generate-api-spec-index && bun run generate-branding-index && bun run generate-terraform-index && test -f src/internal-urls/api-spec-index.generated.ts && bun --cwd=../stats scripts/generate-client-bundle.ts --generate && bun --cwd=../natives run embed:native && bun build --compile --define PI_COMPILED=true --external mupdf --root ../.. ./src/cli.ts --outfile dist/xcsh && bun --cwd=../natives run embed:native --reset && bun --cwd=../stats scripts/generate-client-bundle.ts --reset",
|
|
35
35
|
"check": "biome check . && bun run format-prompts -- --check && bun run check:types",
|
|
36
|
-
"check:types": "bun run generate-build-info && bun run generate-api-spec-index && bun run generate-branding-index && tsgo -p tsconfig.json --noEmit",
|
|
36
|
+
"check:types": "bun run generate-build-info && bun run generate-api-spec-index && bun run generate-branding-index && bun run generate-terraform-index && tsgo -p tsconfig.json --noEmit",
|
|
37
37
|
"lint": "biome lint .",
|
|
38
38
|
"test": "bun run generate-build-info && bun run generate-api-spec-index && bun test --max-concurrency 4",
|
|
39
39
|
"fix": "biome check --write --unsafe . && bun run format-prompts && bun run generate-docs-index && bun run generate-api-spec-index && bun run generate-build-info",
|
|
@@ -43,18 +43,19 @@
|
|
|
43
43
|
"generate-api-spec-index": "bun scripts/generate-api-spec-index.ts",
|
|
44
44
|
"generate-branding-index": "bun scripts/generate-branding-index.ts",
|
|
45
45
|
"generate-build-info": "bun scripts/generate-build-info.ts",
|
|
46
|
-
"
|
|
46
|
+
"generate-terraform-index": "bun scripts/generate-terraform-index.ts",
|
|
47
|
+
"prepack": "bun scripts/generate-docs-index.ts && bun scripts/generate-api-spec-index.ts && bun scripts/generate-build-info.ts && bun scripts/generate-terraform-index.ts",
|
|
47
48
|
"generate-template": "bun scripts/generate-template.ts"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
51
|
"@agentclientprotocol/sdk": "0.16.1",
|
|
51
52
|
"@mozilla/readability": "^0.6",
|
|
52
|
-
"@f5xc-salesdemos/xcsh-stats": "18.85.
|
|
53
|
-
"@f5xc-salesdemos/pi-agent-core": "18.85.
|
|
54
|
-
"@f5xc-salesdemos/pi-ai": "18.85.
|
|
55
|
-
"@f5xc-salesdemos/pi-natives": "18.85.
|
|
56
|
-
"@f5xc-salesdemos/pi-tui": "18.85.
|
|
57
|
-
"@f5xc-salesdemos/pi-utils": "18.85.
|
|
53
|
+
"@f5xc-salesdemos/xcsh-stats": "18.85.2",
|
|
54
|
+
"@f5xc-salesdemos/pi-agent-core": "18.85.2",
|
|
55
|
+
"@f5xc-salesdemos/pi-ai": "18.85.2",
|
|
56
|
+
"@f5xc-salesdemos/pi-natives": "18.85.2",
|
|
57
|
+
"@f5xc-salesdemos/pi-tui": "18.85.2",
|
|
58
|
+
"@f5xc-salesdemos/pi-utils": "18.85.2",
|
|
58
59
|
"@sinclair/typebox": "^0.34",
|
|
59
60
|
"@xterm/headless": "^6.0",
|
|
60
61
|
"ajv": "^8.18",
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as fs from "node:fs/promises";
|
|
2
|
+
import * as path from "node:path";
|
|
3
|
+
|
|
4
|
+
const OUTPUT_FILE = path.join(import.meta.dir, "..", "src", "internal-urls", "terraform-index.generated.ts");
|
|
5
|
+
|
|
6
|
+
const LOCAL_JSON_PATH = path.resolve(
|
|
7
|
+
import.meta.dir,
|
|
8
|
+
"..",
|
|
9
|
+
"..",
|
|
10
|
+
"..",
|
|
11
|
+
"..",
|
|
12
|
+
"terraform-provider-f5xc",
|
|
13
|
+
"docs",
|
|
14
|
+
"terraform-llms-index.json",
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const GITHUB_RAW_URL =
|
|
18
|
+
"https://raw.githubusercontent.com/f5xc-salesdemos/terraform-provider-f5xc/main/docs/terraform-llms-index.json";
|
|
19
|
+
|
|
20
|
+
async function loadTerraformIndex(): Promise<unknown> {
|
|
21
|
+
const localFile = Bun.file(LOCAL_JSON_PATH);
|
|
22
|
+
if (await localFile.exists()) {
|
|
23
|
+
console.log(`Reading from local checkout: ${LOCAL_JSON_PATH}`);
|
|
24
|
+
return localFile.json();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
console.log(`Local not found, fetching from ${GITHUB_RAW_URL}`);
|
|
28
|
+
const headers: Record<string, string> = {};
|
|
29
|
+
const token = process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
|
|
30
|
+
if (token) {
|
|
31
|
+
headers.Authorization = `token ${token}`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const response = await fetch(GITHUB_RAW_URL, { headers });
|
|
35
|
+
if (!response.ok) {
|
|
36
|
+
throw new Error(`Failed to fetch terraform-llms-index.json: ${response.status} ${response.statusText}`);
|
|
37
|
+
}
|
|
38
|
+
return response.json();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function generateTypeScript(data: unknown): string {
|
|
42
|
+
const lines = [
|
|
43
|
+
"// AUTO-GENERATED — do not edit. Run `bun generate-terraform-index` to regenerate.",
|
|
44
|
+
"",
|
|
45
|
+
'import type { TerraformIndex } from "./terraform-types";',
|
|
46
|
+
"",
|
|
47
|
+
`export const TERRAFORM_INDEX: TerraformIndex = ${JSON.stringify(data, null, "\t")} as const;`,
|
|
48
|
+
"",
|
|
49
|
+
];
|
|
50
|
+
return lines.join("\n");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const data = await loadTerraformIndex();
|
|
54
|
+
const output = generateTypeScript(data);
|
|
55
|
+
await fs.writeFile(OUTPUT_FILE, output, "utf-8");
|
|
56
|
+
console.log(`Generated ${OUTPUT_FILE}`);
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "18.85.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "18.85.2",
|
|
21
|
+
"commit": "4060db8ff25afa218349972a359b1390a7deee93",
|
|
22
|
+
"shortCommit": "4060db8",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v18.85.
|
|
25
|
-
"commitDate": "2026-05-
|
|
26
|
-
"buildDate": "2026-05-
|
|
24
|
+
"tag": "v18.85.2",
|
|
25
|
+
"commitDate": "2026-05-28T17:12:34Z",
|
|
26
|
+
"buildDate": "2026-05-28T17:34:47.135Z",
|
|
27
27
|
"dirty": true,
|
|
28
28
|
"prNumber": "",
|
|
29
29
|
"repoUrl": "https://github.com/f5xc-salesdemos/xcsh",
|
|
30
30
|
"repoSlug": "f5xc-salesdemos/xcsh",
|
|
31
|
-
"commitUrl": "https://github.com/f5xc-salesdemos/xcsh/commit/
|
|
32
|
-
"releaseUrl": "https://github.com/f5xc-salesdemos/xcsh/releases/tag/v18.85.
|
|
31
|
+
"commitUrl": "https://github.com/f5xc-salesdemos/xcsh/commit/4060db8ff25afa218349972a359b1390a7deee93",
|
|
32
|
+
"releaseUrl": "https://github.com/f5xc-salesdemos/xcsh/releases/tag/v18.85.2"
|
|
33
33
|
};
|