@f5xc-salesdemos/xcsh 18.33.0 → 18.33.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.33.
|
|
4
|
+
"version": "18.33.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",
|
|
@@ -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.33.
|
|
52
|
-
"@f5xc-salesdemos/pi-agent-core": "18.33.
|
|
53
|
-
"@f5xc-salesdemos/pi-ai": "18.33.
|
|
54
|
-
"@f5xc-salesdemos/pi-natives": "18.33.
|
|
55
|
-
"@f5xc-salesdemos/pi-tui": "18.33.
|
|
56
|
-
"@f5xc-salesdemos/pi-utils": "18.33.
|
|
51
|
+
"@f5xc-salesdemos/xcsh-stats": "18.33.2",
|
|
52
|
+
"@f5xc-salesdemos/pi-agent-core": "18.33.2",
|
|
53
|
+
"@f5xc-salesdemos/pi-ai": "18.33.2",
|
|
54
|
+
"@f5xc-salesdemos/pi-natives": "18.33.2",
|
|
55
|
+
"@f5xc-salesdemos/pi-tui": "18.33.2",
|
|
56
|
+
"@f5xc-salesdemos/pi-utils": "18.33.2",
|
|
57
57
|
"@sinclair/typebox": "^0.34",
|
|
58
58
|
"@xterm/headless": "^6.0",
|
|
59
59
|
"ajv": "^8.18",
|
|
@@ -142,6 +142,10 @@ function renderCatalogSearch(
|
|
|
142
142
|
].join("\n");
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
function sanitizeTableCell(text: string): string {
|
|
146
|
+
return text.replace(/\|/g, "\\|").replace(/\n/g, " ").replace(/\r/g, "");
|
|
147
|
+
}
|
|
148
|
+
|
|
145
149
|
function formatConstraints(constraints: Record<string, unknown> | undefined): string {
|
|
146
150
|
if (!constraints) return "--";
|
|
147
151
|
const parts: string[] = [];
|
|
@@ -171,7 +175,10 @@ function formatRequiredFor(
|
|
|
171
175
|
|
|
172
176
|
function formatDefault(defaultVal: unknown, serverDefault: boolean | undefined): string {
|
|
173
177
|
if (defaultVal == null && !serverDefault) return "--";
|
|
174
|
-
|
|
178
|
+
let val = "--";
|
|
179
|
+
if (defaultVal != null) {
|
|
180
|
+
val = typeof defaultVal === "object" ? JSON.stringify(defaultVal) : String(defaultVal);
|
|
181
|
+
}
|
|
175
182
|
return serverDefault ? `${val} (server)` : val;
|
|
176
183
|
}
|
|
177
184
|
|
|
@@ -229,10 +236,10 @@ function renderCatalogDetail(cat: ApiCatalogCategory, index: ApiCatalogIndex): s
|
|
|
229
236
|
sections.push("| Field | Type | Description | Constraint | Required For | Default |");
|
|
230
237
|
sections.push("|-------|------|-------------|-----------|--------------|---------|");
|
|
231
238
|
for (const [field, meta] of Object.entries(op.fieldMetadata)) {
|
|
232
|
-
const desc = meta.description ?? "";
|
|
233
|
-
const constraint = formatConstraints(meta.constraints);
|
|
239
|
+
const desc = sanitizeTableCell(meta.description ?? "");
|
|
240
|
+
const constraint = sanitizeTableCell(formatConstraints(meta.constraints));
|
|
234
241
|
const reqFor = formatRequiredFor(meta.required_for);
|
|
235
|
-
const def = formatDefault(meta.default, meta.serverDefault);
|
|
242
|
+
const def = sanitizeTableCell(formatDefault(meta.default, meta.serverDefault));
|
|
236
243
|
sections.push(`| ${field} | ${meta.type} | ${desc} | ${constraint} | ${reqFor} | ${def} |`);
|
|
237
244
|
}
|
|
238
245
|
}
|
|
@@ -253,7 +260,7 @@ function renderCatalogDetail(cat: ApiCatalogCategory, index: ApiCatalogIndex): s
|
|
|
253
260
|
sections.push("| Field | Type | Description |");
|
|
254
261
|
sections.push("|-------|------|-------------|");
|
|
255
262
|
for (const f of op.responseSummary) {
|
|
256
|
-
sections.push(`| ${f.field} | ${f.type} | ${f.description} |`);
|
|
263
|
+
sections.push(`| ${f.field} | ${f.type} | ${sanitizeTableCell(f.description)} |`);
|
|
257
264
|
}
|
|
258
265
|
}
|
|
259
266
|
}
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "18.33.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "18.33.2",
|
|
21
|
+
"commit": "200cfabfba89adc2b4f81d5bb06d1de4450454fa",
|
|
22
|
+
"shortCommit": "200cfab",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v18.33.
|
|
25
|
-
"commitDate": "2026-05-
|
|
26
|
-
"buildDate": "2026-05-
|
|
24
|
+
"tag": "v18.33.2",
|
|
25
|
+
"commitDate": "2026-05-02T23:44:24Z",
|
|
26
|
+
"buildDate": "2026-05-03T00:06:13.623Z",
|
|
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/
|
|
32
|
-
"releaseUrl": "https://github.com/f5xc-salesdemos/xcsh/releases/tag/v18.33.
|
|
31
|
+
"commitUrl": "https://github.com/f5xc-salesdemos/xcsh/commit/200cfabfba89adc2b4f81d5bb06d1de4450454fa",
|
|
32
|
+
"releaseUrl": "https://github.com/f5xc-salesdemos/xcsh/releases/tag/v18.33.2"
|
|
33
33
|
};
|