@f5-sales-demo/xcsh 21.24.0 → 21.24.4
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 +15 -15
- package/src/cli/sandbox-check.ts +24 -1
- package/src/extensibility/extensions/wrapper.ts +1 -2
- package/src/internal-urls/api-catalog-index.generated.ts +166 -166
- package/src/internal-urls/build-info.generated.ts +8 -8
- package/src/modes/components/model-selector.ts +3 -2
- package/src/utils/image-convert.ts +2 -3
- package/src/utils/image-pipeline.ts +7 -0
- package/src/utils/image-resize.ts +11 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/xcsh",
|
|
4
|
-
"version": "21.24.
|
|
4
|
+
"version": "21.24.4",
|
|
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",
|
|
@@ -61,34 +61,34 @@
|
|
|
61
61
|
"check-workflow-field-coverage": "bun scripts/check-workflow-field-coverage.ts"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@agentclientprotocol/sdk": "1.
|
|
65
|
-
"@f5-sales-demo/pi-agent-core": "21.24.
|
|
66
|
-
"@f5-sales-demo/pi-ai": "21.24.
|
|
67
|
-
"@f5-sales-demo/pi-natives": "21.24.
|
|
68
|
-
"@f5-sales-demo/pi-resource-management": "21.24.
|
|
69
|
-
"@f5-sales-demo/pi-tui": "21.24.
|
|
70
|
-
"@f5-sales-demo/pi-utils": "21.24.
|
|
71
|
-
"@f5-sales-demo/xcsh-stats": "21.24.
|
|
64
|
+
"@agentclientprotocol/sdk": "1.4.0",
|
|
65
|
+
"@f5-sales-demo/pi-agent-core": "21.24.4",
|
|
66
|
+
"@f5-sales-demo/pi-ai": "21.24.4",
|
|
67
|
+
"@f5-sales-demo/pi-natives": "21.24.4",
|
|
68
|
+
"@f5-sales-demo/pi-resource-management": "21.24.4",
|
|
69
|
+
"@f5-sales-demo/pi-tui": "21.24.4",
|
|
70
|
+
"@f5-sales-demo/pi-utils": "21.24.4",
|
|
71
|
+
"@f5-sales-demo/xcsh-stats": "21.24.4",
|
|
72
72
|
"@mozilla/readability": "^0.6",
|
|
73
|
-
"@sinclair/typebox": "
|
|
73
|
+
"@sinclair/typebox": "0.34.52",
|
|
74
74
|
"@xterm/headless": "^6.0",
|
|
75
75
|
"ajv": "^8.20",
|
|
76
|
-
"chalk": "
|
|
76
|
+
"chalk": "6.0.0",
|
|
77
77
|
"diff": "^9.0",
|
|
78
78
|
"fflate": "0.8.3",
|
|
79
79
|
"google-auth-library": "10.9.1",
|
|
80
|
-
"linkedom": "
|
|
80
|
+
"linkedom": "0.18.13",
|
|
81
81
|
"lru-cache": "11.5.2",
|
|
82
82
|
"markit-ai": "0.5.3",
|
|
83
|
-
"puppeteer": "
|
|
83
|
+
"puppeteer": "25.10.0",
|
|
84
84
|
"yaml": "2.9.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@types/bun": "
|
|
87
|
+
"@types/bun": "1.4.2",
|
|
88
88
|
"handlebars": "^4.7"
|
|
89
89
|
},
|
|
90
90
|
"engines": {
|
|
91
|
-
"bun": ">=1.
|
|
91
|
+
"bun": ">=1.4.2"
|
|
92
92
|
},
|
|
93
93
|
"files": [
|
|
94
94
|
"bin",
|
package/src/cli/sandbox-check.ts
CHANGED
|
@@ -66,6 +66,18 @@ function quote(value: string): string {
|
|
|
66
66
|
return JSON.stringify(value);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
async function canonicalDirectory(value: string): Promise<string> {
|
|
70
|
+
try {
|
|
71
|
+
return await fs.realpath(value);
|
|
72
|
+
} catch {
|
|
73
|
+
return path.resolve(value);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function sameDirectory(actual: string, expected: string): boolean {
|
|
78
|
+
return path.relative(expected, actual) === "";
|
|
79
|
+
}
|
|
80
|
+
|
|
69
81
|
function errorCode(error: unknown): string | undefined {
|
|
70
82
|
if (typeof error !== "object" || error === null || !("code" in error)) return undefined;
|
|
71
83
|
const code = (error as { code?: unknown }).code;
|
|
@@ -728,7 +740,18 @@ export async function runSandboxCheck(options: SandboxCheckOptions = {}): Promis
|
|
|
728
740
|
.map(part => part.text)
|
|
729
741
|
.join("")
|
|
730
742
|
.trim();
|
|
731
|
-
const
|
|
743
|
+
const [movedDirectory, resetDirectory, explicitDirectory, expectedNested, expectedWorkspace] =
|
|
744
|
+
await Promise.all([
|
|
745
|
+
canonicalDirectory(text(moved)),
|
|
746
|
+
canonicalDirectory(text(reset)),
|
|
747
|
+
canonicalDirectory(text(explicit)),
|
|
748
|
+
canonicalDirectory(nested),
|
|
749
|
+
canonicalDirectory(workspace),
|
|
750
|
+
]);
|
|
751
|
+
const passed =
|
|
752
|
+
sameDirectory(movedDirectory, expectedNested) &&
|
|
753
|
+
sameDirectory(resetDirectory, expectedWorkspace) &&
|
|
754
|
+
sameDirectory(explicitDirectory, expectedNested);
|
|
732
755
|
return passed
|
|
733
756
|
? { passed: true }
|
|
734
757
|
: {
|
|
@@ -27,8 +27,6 @@ export class RegisteredToolAdapter implements AgentTool<any, any, any> {
|
|
|
27
27
|
private registeredTool: RegisteredTool,
|
|
28
28
|
private runner: ExtensionRunner,
|
|
29
29
|
) {
|
|
30
|
-
applyToolProxy(registeredTool.definition, this);
|
|
31
|
-
|
|
32
30
|
// Only define render methods when the underlying definition provides them.
|
|
33
31
|
// If these exist unconditionally on the prototype, ToolExecutionComponent
|
|
34
32
|
// enters the custom-renderer path, gets undefined back, and silently
|
|
@@ -46,6 +44,7 @@ export class RegisteredToolAdapter implements AgentTool<any, any, any> {
|
|
|
46
44
|
args,
|
|
47
45
|
);
|
|
48
46
|
}
|
|
47
|
+
applyToolProxy(registeredTool.definition, this);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
async execute(
|