@testchimp/cli 0.1.31 → 0.1.32
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/dist/cli/program.js +15 -0
- package/dist/core/schemas.d.ts +3 -0
- package/dist/core/schemas.js +4 -0
- package/dist/core/tools.js +14 -0
- package/package.json +1 -1
package/dist/cli/program.js
CHANGED
|
@@ -1253,6 +1253,21 @@ export function buildCliProgram() {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
console.log(await runTool("upsert-plans-support-file", merged, { postMcp }));
|
|
1255
1255
|
});
|
|
1256
|
+
program
|
|
1257
|
+
.command("get-plans-support-file")
|
|
1258
|
+
.description(TOOL_DEFINITIONS.find((t) => t.kebab === "get-plans-support-file").description)
|
|
1259
|
+
.addOption(jsonInputOption())
|
|
1260
|
+
.option("--file-path <path>", "path relative to mapped plans root (e.g. knowledge/workflow_plans/run-qa/<ulid>.plan.md)")
|
|
1261
|
+
.action(async (opts) => {
|
|
1262
|
+
const body = {};
|
|
1263
|
+
if (opts.filePath)
|
|
1264
|
+
body.filePath = String(opts.filePath);
|
|
1265
|
+
const merged = mergeBodies(body, opts.jsonInput);
|
|
1266
|
+
if (!merged.filePath) {
|
|
1267
|
+
throw new Error("Provide --file-path (or full body via --json-input)");
|
|
1268
|
+
}
|
|
1269
|
+
console.log(await runTool("get-plans-support-file", merged, { postMcp }));
|
|
1270
|
+
});
|
|
1256
1271
|
program
|
|
1257
1272
|
.command("list-api-operation-services")
|
|
1258
1273
|
.description(TOOL_DEFINITIONS.find((t) => t.kebab === "list-api-operation-services").description)
|
package/dist/core/schemas.d.ts
CHANGED
|
@@ -1478,6 +1478,9 @@ export declare const upsertPlansSupportFileInput: z.ZodObject<{
|
|
|
1478
1478
|
filePath: z.ZodString;
|
|
1479
1479
|
content: z.ZodString;
|
|
1480
1480
|
}, z.core.$strip>;
|
|
1481
|
+
export declare const getPlansSupportFileInput: z.ZodObject<{
|
|
1482
|
+
filePath: z.ZodString;
|
|
1483
|
+
}, z.core.$strip>;
|
|
1481
1484
|
export declare const listWorkflowCatalogInput: z.ZodObject<{}, z.core.$strip>;
|
|
1482
1485
|
/** API operation coverage (OpenAPI ops + denorm coverage) — CLI ≥ 0.1.28 */
|
|
1483
1486
|
export declare const listApiOperationServicesInput: z.ZodObject<{}, z.core.$strip>;
|
package/dist/core/schemas.js
CHANGED
|
@@ -811,6 +811,10 @@ export const upsertPlansSupportFileInput = z.object({
|
|
|
811
811
|
filePath: z.string().min(1),
|
|
812
812
|
content: z.string().min(1),
|
|
813
813
|
});
|
|
814
|
+
export const getPlansSupportFileInput = z.object({
|
|
815
|
+
/** Path relative to mapped plans root (e.g. knowledge/workflow_plans/run-qa/<ulid>.plan.md). */
|
|
816
|
+
filePath: z.string().min(1),
|
|
817
|
+
});
|
|
814
818
|
export const listWorkflowCatalogInput = z.object({});
|
|
815
819
|
/** API operation coverage (OpenAPI ops + denorm coverage) — CLI ≥ 0.1.28 */
|
|
816
820
|
export const listApiOperationServicesInput = z.object({});
|
package/dist/core/tools.js
CHANGED
|
@@ -1183,6 +1183,20 @@ export const TOOL_DEFINITIONS = [
|
|
|
1183
1183
|
});
|
|
1184
1184
|
},
|
|
1185
1185
|
},
|
|
1186
|
+
{
|
|
1187
|
+
kebab: "get-plans-support-file",
|
|
1188
|
+
description: "Fetch a file under the mapped plans root from the platform by relative path (no git required). " +
|
|
1189
|
+
"Primary use: load a workflow execution plan named in a Continue Locally / implement prompt before falling back to the repo copy. " +
|
|
1190
|
+
"filePath is relative to the plans mapped root (leading plans/ is stripped). Under workflow_plans/, filenames are coerced to *.plan.md. " +
|
|
1191
|
+
"Response: found (false if missing), supportFileId, filePath (canonical), filetype, content.",
|
|
1192
|
+
inputSchema: S.getPlansSupportFileInput,
|
|
1193
|
+
execute: async (args, { postMcp }) => {
|
|
1194
|
+
const a = args;
|
|
1195
|
+
return postMcp("/api/mcp/get_plans_support_file", {
|
|
1196
|
+
filePath: a.filePath,
|
|
1197
|
+
});
|
|
1198
|
+
},
|
|
1199
|
+
},
|
|
1186
1200
|
{
|
|
1187
1201
|
kebab: "list-workflow-catalog",
|
|
1188
1202
|
description: "List supported TestChimp workflows with Active / Disabled / Missing Config status for the project.",
|
package/package.json
CHANGED