@testchimp/cli 0.1.3 → 0.1.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/README.md CHANGED
@@ -40,6 +40,8 @@ export TESTCHIMP_API_KEY=... # required (often read from project MCP env; neve
40
40
  testchimp --help
41
41
  testchimp get-requirement-coverage --branch-name main --help
42
42
  testchimp create-user-story --platform-file-path plans/stories/foo.md --title "Checkout"
43
+ testchimp list-screen-states --json-input '{}'
44
+ testchimp upsert-screen-states --json-input '{"screenStates":[{"screen":"Checkout","states":["empty","filled"]}]}'
43
45
  ```
44
46
 
45
47
  - **stdout:** API response JSON.
@@ -1,3 +1,3 @@
1
1
  import { Command } from "commander";
2
- export declare const PACKAGE_VERSION = "0.1.1";
2
+ export declare const PACKAGE_VERSION = "0.1.4";
3
3
  export declare function buildCliProgram(): Command;
@@ -5,7 +5,7 @@ import { DEFAULT_BACKEND, postMcp } from "../core/client.js";
5
5
  import { deepMerge } from "../core/merge.js";
6
6
  import { runTool } from "../core/tools.js";
7
7
  import { TOOL_DEFINITIONS } from "../core/tools.js";
8
- export const PACKAGE_VERSION = "0.1.1";
8
+ export const PACKAGE_VERSION = "0.1.4";
9
9
  function parseJsonInput(raw) {
10
10
  if (raw == null || raw.trim() === "")
11
11
  return {};
@@ -374,6 +374,28 @@ export function buildCliProgram() {
374
374
  const out = await runTool("get-truecoverage-event-metadata-keys", merged, { postMcp });
375
375
  console.log(out);
376
376
  });
377
+ program
378
+ .command("list-screen-states")
379
+ .description(TOOL_DEFINITIONS.find((t) => t.kebab === "list-screen-states").description)
380
+ .addOption(jsonInputOption())
381
+ .option("--environment <s>", "optional environment tag (forward compatibility)")
382
+ .action(async (opts) => {
383
+ const body = {};
384
+ if (opts.environment)
385
+ body.environment = String(opts.environment);
386
+ const merged = mergeBodies(body, opts.jsonInput);
387
+ const out = await runTool("list-screen-states", merged, { postMcp });
388
+ console.log(out);
389
+ });
390
+ program
391
+ .command("upsert-screen-states")
392
+ .description(TOOL_DEFINITIONS.find((t) => t.kebab === "upsert-screen-states").description)
393
+ .addOption(jsonInputOption())
394
+ .action(async (opts) => {
395
+ const merged = mergeBodies({}, opts.jsonInput);
396
+ const out = await runTool("upsert-screen-states", merged, { postMcp });
397
+ console.log(out);
398
+ });
377
399
  program.on("--help", () => {
378
400
  /* default */
379
401
  });
@@ -2,7 +2,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
3
  import { postMcp } from "../core/client.js";
4
4
  import { TOOL_DEFINITIONS, runTool } from "../core/tools.js";
5
- const PACKAGE_VERSION = "0.1.0";
5
+ const PACKAGE_VERSION = "0.1.4";
6
6
  function textResult(json) {
7
7
  return {
8
8
  content: [{ type: "text", text: json }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testchimp/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
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",