@testchimp/cli 0.1.83 → 0.1.84
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 +3 -0
- package/dist/core/schemas.d.ts +1 -0
- package/dist/core/schemas.js +4 -0
- package/dist/core/tools.js +4 -2
- package/package.json +4 -4
package/dist/cli/program.js
CHANGED
|
@@ -815,8 +815,11 @@ export function buildCliProgram() {
|
|
|
815
815
|
.option("--tests-folder-path <path>")
|
|
816
816
|
.option("--plans-folder-path <path>")
|
|
817
817
|
.option("--repository-full-name <name>")
|
|
818
|
+
.option("--plans-branch <branch>", "Branch plans sync against (empty string = repository default)")
|
|
818
819
|
.action(async (opts) => {
|
|
819
820
|
const body = {};
|
|
821
|
+
if (opts.plansBranch !== undefined)
|
|
822
|
+
body.plansBranch = opts.plansBranch;
|
|
820
823
|
if (opts.testsFolderPath)
|
|
821
824
|
body.tests_folder_path = opts.testsFolderPath;
|
|
822
825
|
if (opts.plansFolderPath)
|
package/dist/core/schemas.d.ts
CHANGED
|
@@ -794,6 +794,7 @@ export declare const updateGitFolderMappingInput: z.ZodObject<{
|
|
|
794
794
|
testsFolderPath: z.ZodOptional<z.ZodString>;
|
|
795
795
|
plansFolderPath: z.ZodOptional<z.ZodString>;
|
|
796
796
|
repositoryFullName: z.ZodOptional<z.ZodString>;
|
|
797
|
+
plansBranch: z.ZodOptional<z.ZodString>;
|
|
797
798
|
tests_folder_path: z.ZodOptional<z.ZodString>;
|
|
798
799
|
plans_folder_path: z.ZodOptional<z.ZodString>;
|
|
799
800
|
repository_full_name: z.ZodOptional<z.ZodString>;
|
package/dist/core/schemas.js
CHANGED
|
@@ -323,6 +323,10 @@ export const updateGitFolderMappingInput = z.object({
|
|
|
323
323
|
testsFolderPath: z.string().min(1).optional(),
|
|
324
324
|
plansFolderPath: z.string().min(1).optional(),
|
|
325
325
|
repositoryFullName: z.string().optional(),
|
|
326
|
+
plansBranch: z
|
|
327
|
+
.string()
|
|
328
|
+
.optional()
|
|
329
|
+
.describe("Branch plans sync against. Empty string resets to the repository default branch."),
|
|
326
330
|
tests_folder_path: z.string().min(1).optional(),
|
|
327
331
|
plans_folder_path: z.string().min(1).optional(),
|
|
328
332
|
repository_full_name: z.string().optional(),
|
package/dist/core/tools.js
CHANGED
|
@@ -1519,13 +1519,13 @@ export const TOOL_DEFINITIONS = [
|
|
|
1519
1519
|
},
|
|
1520
1520
|
{
|
|
1521
1521
|
kebab: "get-git-folder-mapping",
|
|
1522
|
-
description: "Return git provider, repository,
|
|
1522
|
+
description: "Return git provider, repository, mapped plans/tests folder paths, and plans branch (empty = repository default) for the project.",
|
|
1523
1523
|
inputSchema: S.emptyInput,
|
|
1524
1524
|
execute: async (_args, { postMcp }) => postMcp("/api/mcp/get_git_folder_mapping", {}),
|
|
1525
1525
|
},
|
|
1526
1526
|
{
|
|
1527
1527
|
kebab: "update-git-folder-mapping",
|
|
1528
|
-
description: "Update mapped plans/tests folder paths (and optional repository) on the platform. Agent scaffolds folders in a PR; this records platform mapping.",
|
|
1528
|
+
description: "Update mapped plans/tests folder paths (and optional repository / plans branch) on the platform. Agent scaffolds folders in a PR; this records platform mapping.",
|
|
1529
1529
|
inputSchema: S.updateGitFolderMappingInput,
|
|
1530
1530
|
execute: async (args, { postMcp }) => {
|
|
1531
1531
|
const a = args;
|
|
@@ -1539,6 +1539,8 @@ export const TOOL_DEFINITIONS = [
|
|
|
1539
1539
|
body.plans_folder_path = plans;
|
|
1540
1540
|
if (repo)
|
|
1541
1541
|
body.repository_full_name = repo;
|
|
1542
|
+
if (a.plansBranch !== undefined)
|
|
1543
|
+
body.plansBranch = a.plansBranch.trim();
|
|
1542
1544
|
return postMcp("/api/mcp/update_git_folder_mapping", body);
|
|
1543
1545
|
},
|
|
1544
1546
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testchimp/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.84",
|
|
4
4
|
"description": "TestChimp CLI and MCP server — coverage, plans, EaaS, TrueCoverage, API operations (calls /api/mcp/*)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/bin/testchimp.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"typescript": "^6.0.2"
|
|
34
34
|
},
|
|
35
35
|
"overrides": {
|
|
36
|
-
"fast-uri": "3.1.
|
|
36
|
+
"fast-uri": "3.1.8",
|
|
37
37
|
"qs": "6.16.0",
|
|
38
|
-
"ip-address": "10.
|
|
39
|
-
"hono": "4.
|
|
38
|
+
"ip-address": "10.7.1",
|
|
39
|
+
"hono": "4.13.7",
|
|
40
40
|
"@hono/node-server": "1.19.17",
|
|
41
41
|
"body-parser": "2.3.0"
|
|
42
42
|
},
|