@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 +2 -0
- package/dist/cli/program.d.ts +1 -1
- package/dist/cli/program.js +23 -1
- package/dist/mcp/server.js +1 -1
- package/package.json +1 -1
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.
|
package/dist/cli/program.d.ts
CHANGED
package/dist/cli/program.js
CHANGED
|
@@ -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.
|
|
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
|
});
|
package/dist/mcp/server.js
CHANGED
|
@@ -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.
|
|
5
|
+
const PACKAGE_VERSION = "0.1.4";
|
|
6
6
|
function textResult(json) {
|
|
7
7
|
return {
|
|
8
8
|
content: [{ type: "text", text: json }],
|