@f5-sales-demo/xcsh 22.8.2 → 22.9.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": "@f5-sales-demo/xcsh",
4
- "version": "22.8.2",
4
+ "version": "22.9.0",
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",
@@ -68,13 +68,13 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@agentclientprotocol/sdk": "1.4.0",
71
- "@f5-sales-demo/pi-agent-core": "22.8.2",
72
- "@f5-sales-demo/pi-ai": "22.8.2",
73
- "@f5-sales-demo/pi-natives": "22.8.2",
74
- "@f5-sales-demo/pi-resource-management": "22.8.2",
75
- "@f5-sales-demo/pi-tui": "22.8.2",
76
- "@f5-sales-demo/pi-utils": "22.8.2",
77
- "@f5-sales-demo/xcsh-stats": "22.8.2",
71
+ "@f5-sales-demo/pi-agent-core": "22.9.0",
72
+ "@f5-sales-demo/pi-ai": "22.9.0",
73
+ "@f5-sales-demo/pi-natives": "22.9.0",
74
+ "@f5-sales-demo/pi-resource-management": "22.9.0",
75
+ "@f5-sales-demo/pi-tui": "22.9.0",
76
+ "@f5-sales-demo/pi-utils": "22.9.0",
77
+ "@f5-sales-demo/xcsh-stats": "22.9.0",
78
78
  "@mozilla/readability": "^0.6",
79
79
  "@resvg/resvg-wasm": "2.6.2",
80
80
  "@sinclair/typebox": "0.34.52",
package/src/cli.ts CHANGED
@@ -217,6 +217,17 @@ if (process.env.XCSH_SMOKE_TEST_QMD === "1") {
217
217
  }
218
218
  }
219
219
 
220
+ if (process.env.XCSH_MEASURE_TERRAFORM_REQUESTS) {
221
+ try {
222
+ const { runTerraformMeasurement } = await import("./terraform-measurement");
223
+ process.stdout.write(`${await runTerraformMeasurement(process.env.XCSH_MEASURE_TERRAFORM_REQUESTS)}\n`);
224
+ process.exit(0);
225
+ } catch (error) {
226
+ process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
227
+ process.exit(1);
228
+ }
229
+ }
230
+
220
231
  if (process.env.XCSH_SMOKE_TEST_TERRAFORM_DOCUMENTATION === "1") {
221
232
  try {
222
233
  const { runTerraformDocumentationSmoke } = await import("./terraform-documentation-smoke");
@@ -89,6 +89,12 @@ export function classifyApiCatalogPreflight(
89
89
  prompt: string,
90
90
  options: ApiCatalogPreflightOptions,
91
91
  ): ApiCatalogPreflightIntent | null {
92
+ if (
93
+ /\b(?:terraform|hcl)\b/i.test(prompt) ||
94
+ /\bxcsh[ _].*\b(?:action|resource|data[ -]source|ephemeral)\b/i.test(prompt) ||
95
+ prompt.includes("xcsh://terraform-documentation/")
96
+ )
97
+ return null;
92
98
  const resources = options.resources ?? loadGeneratedMetadata().resources;
93
99
  const previous = options.previousResource
94
100
  ? {