@testchimp/cli 0.1.17 → 0.1.18

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.
@@ -673,6 +673,22 @@ export function buildCliProgram() {
673
673
  const out = await runTool("get-release", { version: String(merged.version).trim() }, { postMcp });
674
674
  console.log(out);
675
675
  });
676
+ program
677
+ .command("get-release-details")
678
+ .description(TOOL_DEFINITIONS.find((t) => t.kebab === "get-release-details").description)
679
+ .addOption(jsonInputOption())
680
+ .option("--version <version>", "Release version / label (McpGetReleaseDetailsRequest.version)")
681
+ .action(async (opts) => {
682
+ const body = {};
683
+ if (opts.version)
684
+ body.version = String(opts.version);
685
+ const merged = mergeBodies(body, opts.jsonInput);
686
+ if (!merged.version || String(merged.version).trim() === "") {
687
+ throw new Error("version is required (--version or --json-input {\"version\":\"...\"})");
688
+ }
689
+ const out = await runTool("get-release-details", { version: String(merged.version).trim() }, { postMcp });
690
+ console.log(out);
691
+ });
676
692
  program
677
693
  .command("get-security-scan-config")
678
694
  .description(TOOL_DEFINITIONS.find((t) => t.kebab === "get-security-scan-config").description)
@@ -647,6 +647,9 @@ export declare const listScreenStatesInput: z.ZodObject<{
647
647
  export declare const getReleaseInput: z.ZodObject<{
648
648
  version: z.ZodString;
649
649
  }, z.core.$strip>;
650
+ export declare const getReleaseDetailsInput: z.ZodObject<{
651
+ version: z.ZodString;
652
+ }, z.core.$strip>;
650
653
  export declare const getSecurityScanConfigInput: z.ZodObject<{
651
654
  id: z.ZodString;
652
655
  }, z.core.$strip>;
@@ -324,6 +324,10 @@ export const getReleaseInput = z.object({
324
324
  /** Release catalog version / label — maps to McpGetReleaseRequest.version */
325
325
  version: z.string().min(1),
326
326
  });
327
+ export const getReleaseDetailsInput = z.object({
328
+ /** Release catalog version / label — maps to McpGetReleaseDetailsRequest.version */
329
+ version: z.string().min(1),
330
+ });
327
331
  export const getSecurityScanConfigInput = z.object({
328
332
  id: z.string().min(1),
329
333
  });
@@ -552,6 +552,19 @@ export const TOOL_DEFINITIONS = [
552
552
  return postMcp("/api/mcp/get_release", body);
553
553
  },
554
554
  },
555
+ {
556
+ kebab: "get-release-details",
557
+ description: "Fetch gate-oriented release details for a version/label: scope, per-environment " +
558
+ "priority×status test stats, open issue stats, scan summaries, and detailed in-scope " +
559
+ "scenario/issue records (McpGetReleaseDetailsRequest/Response). Pass version (CLI: --version). " +
560
+ "Use for CI/agent release gating. Authenticated via project API key.",
561
+ inputSchema: S.getReleaseDetailsInput,
562
+ execute: async (args, { postMcp }) => {
563
+ const a = args;
564
+ const body = { version: a.version.trim() };
565
+ return postMcp("/api/mcp/get_release_details", body);
566
+ },
567
+ },
555
568
  {
556
569
  kebab: "get-security-scan-config",
557
570
  description: "Fetch security scan config by scan id (detail.dastCheckConfig / detail.sastCheckConfig / " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testchimp/cli",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "TestChimp CLI and MCP server — coverage, plans, EaaS, TrueCoverage (calls /api/mcp/*)",
5
5
  "type": "module",
6
6
  "main": "dist/bin/testchimp.js",