@f5xc-salesdemos/xcsh 18.31.1 → 18.32.0

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.31.1",
4
+ "version": "18.32.0",
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",
@@ -48,12 +48,12 @@
48
48
  "dependencies": {
49
49
  "@agentclientprotocol/sdk": "0.16.1",
50
50
  "@mozilla/readability": "^0.6",
51
- "@f5xc-salesdemos/xcsh-stats": "18.31.1",
52
- "@f5xc-salesdemos/pi-agent-core": "18.31.1",
53
- "@f5xc-salesdemos/pi-ai": "18.31.1",
54
- "@f5xc-salesdemos/pi-natives": "18.31.1",
55
- "@f5xc-salesdemos/pi-tui": "18.31.1",
56
- "@f5xc-salesdemos/pi-utils": "18.31.1",
51
+ "@f5xc-salesdemos/xcsh-stats": "18.32.0",
52
+ "@f5xc-salesdemos/pi-agent-core": "18.32.0",
53
+ "@f5xc-salesdemos/pi-ai": "18.32.0",
54
+ "@f5xc-salesdemos/pi-natives": "18.32.0",
55
+ "@f5xc-salesdemos/pi-tui": "18.32.0",
56
+ "@f5xc-salesdemos/pi-utils": "18.32.0",
57
57
  "@sinclair/typebox": "^0.34",
58
58
  "@xterm/headless": "^6.0",
59
59
  "ajv": "^8.18",
@@ -78,14 +78,27 @@ interface RawIndex {
78
78
  }
79
79
 
80
80
  const REPO = "f5xc-salesdemos/api-specs-enriched";
81
- const PINNED_TAG = "v2.1.63";
82
81
  const outputPath = path.resolve(import.meta.dir, "../src/internal-urls/api-spec-index.generated.ts");
83
82
  const catalogOutputPath = path.resolve(import.meta.dir, "../src/internal-urls/api-catalog-index.generated.ts");
84
83
 
84
+ async function resolveLatestTag(): Promise<string> {
85
+ const response = await fetch(`https://api.github.com/repos/${REPO}/releases/latest`, {
86
+ headers: { Accept: "application/vnd.github+json" },
87
+ });
88
+ if (!response.ok) {
89
+ throw new Error(`Failed to fetch latest release from ${REPO}: ${response.status} ${response.statusText}`);
90
+ }
91
+ const data = (await response.json()) as { tag_name?: string };
92
+ if (!data.tag_name) {
93
+ throw new Error(`Latest release from ${REPO} has no tag_name`);
94
+ }
95
+ return data.tag_name;
96
+ }
97
+
85
98
  async function downloadFromRelease(): Promise<string> {
86
99
  const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "api-specs-"));
87
100
  downloadedTmpDir = tmpDir;
88
- const tag = process.env.API_SPECS_TAG ?? PINNED_TAG;
101
+ const tag = process.env.API_SPECS_TAG ?? (await resolveLatestTag());
89
102
  const zipName = `f5xc-api-specs-${tag}.zip`;
90
103
  const downloadUrl = `https://github.com/${REPO}/releases/download/${tag}/${zipName}`;
91
104
 
@@ -139,8 +152,8 @@ async function downloadCatalog(specsDir: string): Promise<Record<string, unknown
139
152
  return JSON.parse(fs.readFileSync(catalogPath, "utf-8"));
140
153
  }
141
154
 
142
- const tag = process.env.API_SPECS_TAG ?? PINNED_TAG;
143
- const catalogUrl = `https://github.com/${REPO}/releases/download/${tag}/api-catalog.json`;
155
+ const catalogTag = process.env.API_SPECS_TAG ?? (await resolveLatestTag());
156
+ const catalogUrl = `https://github.com/${REPO}/releases/download/${catalogTag}/api-catalog.json`;
144
157
  console.log(`Downloading API catalog from ${catalogUrl}...`);
145
158
  try {
146
159
  const response = await fetch(catalogUrl, { redirect: "follow" });
@@ -17,17 +17,17 @@ export interface BuildInfo {
17
17
  }
18
18
 
19
19
  export const BUILD_INFO: BuildInfo = {
20
- "version": "18.31.1",
21
- "commit": "6012006dffdf875be9e9e486b7a91bf99f5c58df",
22
- "shortCommit": "6012006",
20
+ "version": "18.32.0",
21
+ "commit": "c5505c8b32a0441554d88d83cded48c25b110135",
22
+ "shortCommit": "c5505c8",
23
23
  "branch": "main",
24
- "tag": "v18.31.1",
25
- "commitDate": "2026-05-01T22:33:55Z",
26
- "buildDate": "2026-05-01T22:55:16.423Z",
24
+ "tag": "v18.32.0",
25
+ "commitDate": "2026-05-02T02:44:42Z",
26
+ "buildDate": "2026-05-02T03:10:54.675Z",
27
27
  "dirty": false,
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/6012006dffdf875be9e9e486b7a91bf99f5c58df",
32
- "releaseUrl": "https://github.com/f5xc-salesdemos/xcsh/releases/tag/v18.31.1"
31
+ "commitUrl": "https://github.com/f5xc-salesdemos/xcsh/commit/c5505c8b32a0441554d88d83cded48c25b110135",
32
+ "releaseUrl": "https://github.com/f5xc-salesdemos/xcsh/releases/tag/v18.32.0"
33
33
  };