@f5xc-salesdemos/xcsh 18.43.0 → 18.44.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.
|
|
4
|
+
"version": "18.44.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.
|
|
52
|
-
"@f5xc-salesdemos/pi-agent-core": "18.
|
|
53
|
-
"@f5xc-salesdemos/pi-ai": "18.
|
|
54
|
-
"@f5xc-salesdemos/pi-natives": "18.
|
|
55
|
-
"@f5xc-salesdemos/pi-tui": "18.
|
|
56
|
-
"@f5xc-salesdemos/pi-utils": "18.
|
|
51
|
+
"@f5xc-salesdemos/xcsh-stats": "18.44.0",
|
|
52
|
+
"@f5xc-salesdemos/pi-agent-core": "18.44.0",
|
|
53
|
+
"@f5xc-salesdemos/pi-ai": "18.44.0",
|
|
54
|
+
"@f5xc-salesdemos/pi-natives": "18.44.0",
|
|
55
|
+
"@f5xc-salesdemos/pi-tui": "18.44.0",
|
|
56
|
+
"@f5xc-salesdemos/pi-utils": "18.44.0",
|
|
57
57
|
"@sinclair/typebox": "^0.34",
|
|
58
58
|
"@xterm/headless": "^6.0",
|
|
59
59
|
"ajv": "^8.18",
|
|
@@ -410,6 +410,12 @@ function formatFieldConstraints(prop: Record<string, unknown>): string {
|
|
|
410
410
|
if (c.maximum != null) parts.push(`max: ${c.maximum}`);
|
|
411
411
|
if (c.minItems != null) parts.push(`minItems: ${c.minItems}`);
|
|
412
412
|
if (c.maxItems != null) parts.push(`maxItems: ${c.maxItems}`);
|
|
413
|
+
if (Array.isArray(c.ranges)) {
|
|
414
|
+
const formatted = (c.ranges as Array<{ minimum: number; maximum: number }>)
|
|
415
|
+
.map(r => (r.minimum === r.maximum ? `{${r.minimum}}` : `[${r.minimum},${r.maximum}]`))
|
|
416
|
+
.join(" ∪ ");
|
|
417
|
+
parts.push(`ranges: ${formatted}`);
|
|
418
|
+
}
|
|
413
419
|
if (c.format) parts.push(`format: ${c.format}`);
|
|
414
420
|
if (Array.isArray(c.enum)) parts.push(`enum: ${(c.enum as string[]).join(", ")}`);
|
|
415
421
|
const meta = c.metadata as Record<string, unknown> | undefined;
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "18.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "18.44.0",
|
|
21
|
+
"commit": "f7fdd6b7707603c64fc09e1ad591af368250a1a2",
|
|
22
|
+
"shortCommit": "f7fdd6b",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v18.
|
|
25
|
-
"commitDate": "2026-05-
|
|
26
|
-
"buildDate": "2026-05-
|
|
24
|
+
"tag": "v18.44.0",
|
|
25
|
+
"commitDate": "2026-05-06T02:37:32Z",
|
|
26
|
+
"buildDate": "2026-05-06T02:56:20.883Z",
|
|
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.
|
|
31
|
+
"commitUrl": "https://github.com/f5xc-salesdemos/xcsh/commit/f7fdd6b7707603c64fc09e1ad591af368250a1a2",
|
|
32
|
+
"releaseUrl": "https://github.com/f5xc-salesdemos/xcsh/releases/tag/v18.44.0"
|
|
33
33
|
};
|
|
@@ -330,3 +330,45 @@ export async function checkSalesforceStatus(_cwd: string): Promise<WelcomeSalesf
|
|
|
330
330
|
return { state: "auth_error" };
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
+
|
|
334
|
+
export type ServiceState = "connected" | "unauthenticated" | "unavailable";
|
|
335
|
+
|
|
336
|
+
export interface ServiceStatus {
|
|
337
|
+
name: string;
|
|
338
|
+
state: ServiceState;
|
|
339
|
+
hint?: string;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export function mapContextStatus(status: WelcomeContextStatus): ServiceStatus {
|
|
343
|
+
switch (status.state) {
|
|
344
|
+
case "connected":
|
|
345
|
+
return { name: "F5 XC Context", state: "connected" };
|
|
346
|
+
case "no_context":
|
|
347
|
+
return { name: "F5 XC Context", state: "unauthenticated", hint: "run: /context create" };
|
|
348
|
+
case "auth_error":
|
|
349
|
+
case "offline":
|
|
350
|
+
return { name: "F5 XC Context", state: "unauthenticated", hint: "run: /context" };
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export function mapGitLabStatus(status: WelcomeGitLabStatus | undefined): ServiceStatus {
|
|
355
|
+
if (!status) return { name: "GitLab", state: "unavailable", hint: "not installed" };
|
|
356
|
+
switch (status.state) {
|
|
357
|
+
case "connected":
|
|
358
|
+
return { name: "GitLab", state: "connected" };
|
|
359
|
+
case "not_installed":
|
|
360
|
+
return { name: "GitLab", state: "unavailable", hint: "not installed" };
|
|
361
|
+
default:
|
|
362
|
+
return { name: "GitLab", state: "unauthenticated", hint: "run: glab auth login" };
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export function mapSalesforceStatus(status: WelcomeSalesforceStatus | undefined): ServiceStatus {
|
|
367
|
+
if (!status) return { name: "Salesforce", state: "unavailable", hint: "not installed" };
|
|
368
|
+
switch (status.state) {
|
|
369
|
+
case "connected":
|
|
370
|
+
return { name: "Salesforce", state: "connected" };
|
|
371
|
+
default:
|
|
372
|
+
return { name: "Salesforce", state: "unauthenticated", hint: "run: sf org login web" };
|
|
373
|
+
}
|
|
374
|
+
}
|