beth-copilot 1.1.0 → 2.0.0
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/CHANGELOG.md +39 -1
- package/README.md +51 -62
- package/assets/beth-questioning.png +0 -0
- package/assets/yellowstone-beth.png +0 -0
- package/bin/cli.js +19 -410
- package/dist/__tests__/inject-skills.test.d.ts +9 -0
- package/dist/__tests__/inject-skills.test.d.ts.map +1 -0
- package/dist/__tests__/inject-skills.test.js +143 -0
- package/dist/__tests__/inject-skills.test.js.map +1 -0
- package/dist/__tests__/skills/disambiguation.test.d.ts +10 -0
- package/dist/__tests__/skills/disambiguation.test.d.ts.map +1 -0
- package/dist/__tests__/skills/disambiguation.test.js +192 -0
- package/dist/__tests__/skills/disambiguation.test.js.map +1 -0
- package/dist/__tests__/skills/hook-injection.test.d.ts +11 -0
- package/dist/__tests__/skills/hook-injection.test.d.ts.map +1 -0
- package/dist/__tests__/skills/hook-injection.test.js +173 -0
- package/dist/__tests__/skills/hook-injection.test.js.map +1 -0
- package/dist/__tests__/skills/mapping-completeness.test.d.ts +17 -0
- package/dist/__tests__/skills/mapping-completeness.test.d.ts.map +1 -0
- package/dist/__tests__/skills/mapping-completeness.test.js +281 -0
- package/dist/__tests__/skills/mapping-completeness.test.js.map +1 -0
- package/dist/__tests__/skills/pipeline-integration.test.d.ts +18 -0
- package/dist/__tests__/skills/pipeline-integration.test.d.ts.map +1 -0
- package/dist/__tests__/skills/pipeline-integration.test.js +234 -0
- package/dist/__tests__/skills/pipeline-integration.test.js.map +1 -0
- package/dist/__tests__/skills/skill-routing.test.d.ts +15 -0
- package/dist/__tests__/skills/skill-routing.test.d.ts.map +1 -0
- package/dist/__tests__/skills/skill-routing.test.js +723 -0
- package/dist/__tests__/skills/skill-routing.test.js.map +1 -0
- package/dist/__tests__/skills/trigger-coverage.test.d.ts +24 -0
- package/dist/__tests__/skills/trigger-coverage.test.d.ts.map +1 -0
- package/dist/__tests__/skills/trigger-coverage.test.js +746 -0
- package/dist/__tests__/skills/trigger-coverage.test.js.map +1 -0
- package/dist/__tests__/smoke.test.js +13 -0
- package/dist/__tests__/smoke.test.js.map +1 -1
- package/dist/__tests__/verify-skills.test.d.ts +9 -0
- package/dist/__tests__/verify-skills.test.d.ts.map +1 -0
- package/dist/__tests__/verify-skills.test.js +78 -0
- package/dist/__tests__/verify-skills.test.js.map +1 -0
- package/dist/cli/commands/beads.e2e.test.d.ts +4 -2
- package/dist/cli/commands/beads.e2e.test.d.ts.map +1 -1
- package/dist/cli/commands/beads.e2e.test.js +97 -38
- package/dist/cli/commands/beads.e2e.test.js.map +1 -1
- package/dist/cli/commands/cli-edge-cases.e2e.test.js +1 -1
- package/dist/cli/commands/cli-edge-cases.e2e.test.js.map +1 -1
- package/dist/cli/commands/close.d.ts +11 -46
- package/dist/cli/commands/close.d.ts.map +1 -1
- package/dist/cli/commands/close.e2e.test.d.ts +4 -20
- package/dist/cli/commands/close.e2e.test.d.ts.map +1 -1
- package/dist/cli/commands/close.e2e.test.js +23 -204
- package/dist/cli/commands/close.e2e.test.js.map +1 -1
- package/dist/cli/commands/close.js +26 -240
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/close.test.d.ts +7 -9
- package/dist/cli/commands/close.test.d.ts.map +1 -1
- package/dist/cli/commands/close.test.js +44 -424
- package/dist/cli/commands/close.test.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +5 -22
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.e2e.test.js +3 -59
- package/dist/cli/commands/doctor.e2e.test.js.map +1 -1
- package/dist/cli/commands/doctor.js +38 -111
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/doctor.test.js +32 -234
- package/dist/cli/commands/doctor.test.js.map +1 -1
- package/dist/cli/commands/framework-isolation.test.d.ts +1 -1
- package/dist/cli/commands/framework-isolation.test.js +2 -3
- package/dist/cli/commands/framework-isolation.test.js.map +1 -1
- package/dist/cli/commands/help.e2e.test.js +1 -5
- package/dist/cli/commands/help.e2e.test.js.map +1 -1
- package/dist/cli/commands/init-logic.e2e.test.js +12 -2
- package/dist/cli/commands/init-logic.e2e.test.js.map +1 -1
- package/dist/cli/commands/init.test.js +4 -21
- package/dist/cli/commands/init.test.js.map +1 -1
- package/dist/cli/commands/land.d.ts +3 -15
- package/dist/cli/commands/land.d.ts.map +1 -1
- package/dist/cli/commands/land.js +13 -68
- package/dist/cli/commands/land.js.map +1 -1
- package/dist/cli/commands/land.test.d.ts +0 -1
- package/dist/cli/commands/land.test.d.ts.map +1 -1
- package/dist/cli/commands/land.test.js +2 -57
- package/dist/cli/commands/land.test.js.map +1 -1
- package/dist/cli/commands/mcp.e2e.test.js +3 -3
- package/dist/cli/commands/mcp.e2e.test.js.map +1 -1
- package/dist/cli/commands/pipeline.e2e.test.js +23 -26
- package/dist/cli/commands/pipeline.e2e.test.js.map +1 -1
- package/dist/cli/commands/pre-push-guard.d.ts +2 -12
- package/dist/cli/commands/pre-push-guard.d.ts.map +1 -1
- package/dist/cli/commands/pre-push-guard.e2e.test.js +1 -1
- package/dist/cli/commands/pre-push-guard.e2e.test.js.map +1 -1
- package/dist/cli/commands/pre-push-guard.js +2 -47
- package/dist/cli/commands/pre-push-guard.js.map +1 -1
- package/dist/cli/commands/pre-push-guard.test.d.ts +0 -1
- package/dist/cli/commands/pre-push-guard.test.d.ts.map +1 -1
- package/dist/cli/commands/pre-push-guard.test.js +15 -98
- package/dist/cli/commands/pre-push-guard.test.js.map +1 -1
- package/dist/cli/commands/quickstart-expanded.e2e.test.d.ts +1 -1
- package/dist/cli/commands/quickstart-expanded.e2e.test.js +3 -30
- package/dist/cli/commands/quickstart-expanded.e2e.test.js.map +1 -1
- package/dist/cli/commands/quickstart.d.ts +0 -1
- package/dist/cli/commands/quickstart.d.ts.map +1 -1
- package/dist/cli/commands/quickstart.js +2 -60
- package/dist/cli/commands/quickstart.js.map +1 -1
- package/dist/cli/commands/quickstart.test.js +10 -104
- package/dist/cli/commands/quickstart.test.js.map +1 -1
- package/dist/cli/commands/update.d.ts +35 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.e2e.test.d.ts +24 -0
- package/dist/cli/commands/update.e2e.test.d.ts.map +1 -0
- package/dist/cli/commands/update.e2e.test.js +240 -0
- package/dist/cli/commands/update.e2e.test.js.map +1 -0
- package/dist/cli/commands/update.js +255 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/core/agents/frontmatter.test.js +1 -1
- package/dist/core/agents/frontmatter.test.js.map +1 -1
- package/dist/core/agents/handoffs.test.js +1 -1
- package/dist/core/agents/handoffs.test.js.map +1 -1
- package/dist/core/agents/loader.d.ts +4 -2
- package/dist/core/agents/loader.d.ts.map +1 -1
- package/dist/core/agents/loader.js +5 -3
- package/dist/core/agents/loader.js.map +1 -1
- package/dist/core/agents/loader.test.js +42 -4
- package/dist/core/agents/loader.test.js.map +1 -1
- package/dist/core/agents/suite.test.js +8 -7
- package/dist/core/agents/suite.test.js.map +1 -1
- package/dist/core/agents/tools.test.js +10 -8
- package/dist/core/agents/tools.test.js.map +1 -1
- package/dist/core/agents/types.test.js +1 -1
- package/dist/core/agents/types.test.js.map +1 -1
- package/dist/core/skills/loader.test.js +1 -1
- package/dist/core/skills/loader.test.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/pathValidation.d.ts +0 -5
- package/dist/lib/pathValidation.d.ts.map +1 -1
- package/dist/lib/pathValidation.js +0 -11
- package/dist/lib/pathValidation.js.map +1 -1
- package/dist/lib/pathValidation.test.js +2 -14
- package/dist/lib/pathValidation.test.js.map +1 -1
- package/package.json +3 -6
- package/sbom.json +259 -371
- package/templates/.github/agents/beth.agent.md +194 -122
- package/templates/.github/agents/developer.agent.md +30 -22
- package/templates/.github/agents/product-manager.agent.md +15 -6
- package/templates/.github/agents/researcher.agent.md +10 -7
- package/templates/.github/agents/security-reviewer.agent.md +16 -7
- package/templates/.github/agents/tester.agent.md +16 -8
- package/templates/.github/agents/ux-designer.agent.md +12 -9
- package/templates/.github/copilot-instructions.md +33 -4
- package/templates/.github/copilot-mcp-config.json +12 -0
- package/templates/.github/dependabot.yml +68 -0
- package/templates/.github/hooks/scripts/inject-skills.mjs +139 -0
- package/templates/.github/hooks/scripts/verify-skills.mjs +47 -0
- package/templates/.github/hooks/skill-enforcement.json +18 -0
- package/templates/.github/pull_request_template.md +48 -0
- package/templates/.github/skills/framer-components/SKILL.md +0 -0
- package/templates/.github/skills/prd/SKILL.md +0 -0
- package/templates/.github/skills/security-analysis/SKILL.md +798 -798
- package/templates/.github/skills/shadcn-ui/SKILL.md +561 -561
- package/templates/.github/skills/vercel-react-best-practices/AGENTS.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/SKILL.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/advanced-use-latest.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/async-api-routes.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/async-defer-await.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/async-dependencies.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/async-parallel.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/bundle-conditional.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/bundle-preload.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/client-event-listeners.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/client-swr-dedup.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-cache-function-results.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-cache-property-access.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-cache-storage.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-combine-iterations.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-early-exit.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-index-maps.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-length-check-first.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-min-max-loop.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rendering-activity.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-dependencies.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-derived-state.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-memo.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/rerender-transitions.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/server-auth-actions.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/server-cache-lru.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/server-cache-react.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/server-dedup-props.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -0
- package/templates/.github/skills/vercel-react-best-practices/rules/server-serialization.md +0 -0
- package/templates/.github/skills/web-design-guidelines/SKILL.md +0 -0
- package/templates/.vscode/settings.json +16 -16
- package/templates/AGENTS.md +59 -98
- package/templates/Backlog.md +80 -80
- package/assets/beth-portrait-small.txt +0 -13
- package/assets/beth-portrait.txt +0 -60
- package/bin/beth-animation.sh +0 -155
- package/bin/lib/animation.js +0 -189
- package/bin/lib/pathValidation.js +0 -233
- package/bin/lib/pathValidation.test.js +0 -280
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Close Command —
|
|
2
|
+
* Close Command — DEPRECATED
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* - Passes through to `bd close` when all checks pass
|
|
10
|
-
* - --force bypasses enforcement checks
|
|
4
|
+
* Previously wrapped `bd close` with dependency enforcement.
|
|
5
|
+
* Beads has been removed — use Backlog.md for task tracking.
|
|
6
|
+
*
|
|
7
|
+
* This command is retained as a no-op with a helpful message
|
|
8
|
+
* to guide users who have muscle memory from the old workflow.
|
|
11
9
|
*/
|
|
12
10
|
export interface CloseOptions {
|
|
13
11
|
force?: boolean;
|
|
@@ -29,50 +27,18 @@ export interface BeadsIssue {
|
|
|
29
27
|
status: string;
|
|
30
28
|
issue_type: string;
|
|
31
29
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Validate a beads issue ID format.
|
|
34
|
-
* Strict pattern prevents injection via execFileSync args.
|
|
35
|
-
*/
|
|
36
30
|
export declare function validateIssueId(id: string): boolean;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export declare function getIssueInfo(issueId: string): BeadsIssue | null;
|
|
42
|
-
/**
|
|
43
|
-
* Get open children for an issue via `bd children --json`.
|
|
44
|
-
* Returns empty array if issue has no children or bd is unavailable.
|
|
45
|
-
*/
|
|
46
|
-
export declare function getOpenChildren(issueId: string): BeadsChild[];
|
|
47
|
-
/**
|
|
48
|
-
* Get ALL children (including closed) for test subtask validation.
|
|
49
|
-
* Uses bd show --json which includes dependents.
|
|
50
|
-
*/
|
|
51
|
-
export declare function getAllChildren(issueId: string): BeadsChild[];
|
|
52
|
-
/**
|
|
53
|
-
* Get open blockers for an issue via `bd dep list --json`.
|
|
54
|
-
* Returns only non-parent-child dependencies that are still open.
|
|
55
|
-
*/
|
|
56
|
-
export declare function getOpenBlockers(issueId: string): BeadsDep[];
|
|
57
|
-
/**
|
|
58
|
-
* Check if an epic has the mandatory test subtasks.
|
|
59
|
-
* Returns list of missing test categories.
|
|
60
|
-
*/
|
|
31
|
+
export declare function getIssueInfo(_issueId: string): BeadsIssue | null;
|
|
32
|
+
export declare function getOpenChildren(_issueId: string): BeadsChild[];
|
|
33
|
+
export declare function getAllChildren(_issueId: string): BeadsChild[];
|
|
34
|
+
export declare function getOpenBlockers(_issueId: string): BeadsDep[];
|
|
61
35
|
export declare function getMissingTestSubtasks(children: BeadsChild[]): string[];
|
|
62
|
-
/**
|
|
63
|
-
* Parse close command arguments.
|
|
64
|
-
* Returns issue IDs, reason, and flags.
|
|
65
|
-
*/
|
|
66
36
|
export declare function parseCloseArgs(rawArgs: string[]): {
|
|
67
37
|
issueIds: string[];
|
|
68
38
|
reason: string | undefined;
|
|
69
39
|
force: boolean;
|
|
70
40
|
};
|
|
71
|
-
|
|
72
|
-
* Execute enforced close for a single issue.
|
|
73
|
-
* Checks: ID format → open blockers → open children → test subtasks (epics) → bd close
|
|
74
|
-
*/
|
|
75
|
-
export declare function closeIssue(issueId: string, options: {
|
|
41
|
+
export declare function closeIssue(_issueId: string, _options: {
|
|
76
42
|
reason?: string;
|
|
77
43
|
force?: boolean;
|
|
78
44
|
}): {
|
|
@@ -83,7 +49,6 @@ export declare function closeIssue(issueId: string, options: {
|
|
|
83
49
|
};
|
|
84
50
|
/**
|
|
85
51
|
* Main close command entry point.
|
|
86
|
-
* Called from CLI routing with raw args after 'close'.
|
|
87
52
|
*/
|
|
88
53
|
export declare function close(rawArgs: string[]): Promise<void>;
|
|
89
54
|
//# sourceMappingURL=close.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/close.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/close.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MA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1
|
/**
|
|
2
|
-
* E2E tests for close command.
|
|
2
|
+
* E2E tests for close command (DEPRECATED).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* beth-ywg.1: close has 66 unit tests but zero E2E — this fills the gap.
|
|
4
|
+
* The close command was deprecated when beads was removed.
|
|
5
|
+
* It now prints a deprecation message and exits 1 for all inputs.
|
|
8
6
|
*
|
|
9
7
|
* Repro steps:
|
|
10
|
-
* 1.
|
|
11
|
-
* 2. Run: npx vitest run src/cli/commands/close.e2e.test.ts
|
|
12
|
-
* OR with beads E2E: INCLUDE_BEADS_E2E=true npx vitest run --config vitest.e2e.config.ts
|
|
13
|
-
*
|
|
14
|
-
* Test cases:
|
|
15
|
-
* - No issue ID → exit 1 with usage message
|
|
16
|
-
* - Invalid issue ID format → exit 1 with format error
|
|
17
|
-
* - Shell injection attempt → exit 1 (safe rejection)
|
|
18
|
-
* - Valid close of task (requires bd) → exit 0
|
|
19
|
-
* - Close with --reason flag → exit 0, reason passed through
|
|
20
|
-
* - Close with --force flag → exit 0, bypasses enforcement
|
|
21
|
-
* - Close epic with open children (requires bd) → exit 1 with blocker list
|
|
22
|
-
* - Multiple issue IDs → each processed in sequence
|
|
23
|
-
*
|
|
24
|
-
* Expected outcomes documented inline per test case.
|
|
8
|
+
* 1. Run: npx vitest run src/cli/commands/close.e2e.test.ts
|
|
25
9
|
*/
|
|
26
10
|
export {};
|
|
27
11
|
//# sourceMappingURL=close.e2e.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close.e2e.test.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/close.e2e.test.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"close.e2e.test.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/close.e2e.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -1,44 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* E2E tests for close command.
|
|
2
|
+
* E2E tests for close command (DEPRECATED).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* beth-ywg.1: close has 66 unit tests but zero E2E — this fills the gap.
|
|
4
|
+
* The close command was deprecated when beads was removed.
|
|
5
|
+
* It now prints a deprecation message and exits 1 for all inputs.
|
|
8
6
|
*
|
|
9
7
|
* Repro steps:
|
|
10
|
-
* 1.
|
|
11
|
-
* 2. Run: npx vitest run src/cli/commands/close.e2e.test.ts
|
|
12
|
-
* OR with beads E2E: INCLUDE_BEADS_E2E=true npx vitest run --config vitest.e2e.config.ts
|
|
13
|
-
*
|
|
14
|
-
* Test cases:
|
|
15
|
-
* - No issue ID → exit 1 with usage message
|
|
16
|
-
* - Invalid issue ID format → exit 1 with format error
|
|
17
|
-
* - Shell injection attempt → exit 1 (safe rejection)
|
|
18
|
-
* - Valid close of task (requires bd) → exit 0
|
|
19
|
-
* - Close with --reason flag → exit 0, reason passed through
|
|
20
|
-
* - Close with --force flag → exit 0, bypasses enforcement
|
|
21
|
-
* - Close epic with open children (requires bd) → exit 1 with blocker list
|
|
22
|
-
* - Multiple issue IDs → each processed in sequence
|
|
23
|
-
*
|
|
24
|
-
* Expected outcomes documented inline per test case.
|
|
8
|
+
* 1. Run: npx vitest run src/cli/commands/close.e2e.test.ts
|
|
25
9
|
*/
|
|
26
10
|
import { describe, it } from 'node:test';
|
|
27
11
|
import assert from 'node:assert';
|
|
28
|
-
import { execSync
|
|
12
|
+
import { execSync } from 'child_process';
|
|
29
13
|
import { resolve, join } from 'path';
|
|
30
14
|
const CLI_PATH = resolve(join(import.meta.dirname, '..', '..', '..', 'bin', 'cli.js'));
|
|
31
|
-
function isBeadsAvailable() {
|
|
32
|
-
try {
|
|
33
|
-
execSync('bd --version', { stdio: 'ignore' });
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
catch {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
const BEADS_AVAILABLE = isBeadsAvailable();
|
|
41
|
-
const SKIP_NO_BEADS = !BEADS_AVAILABLE ? 'beads CLI not installed' : false;
|
|
42
15
|
/**
|
|
43
16
|
* Run the close command via the CLI binary.
|
|
44
17
|
*/
|
|
@@ -57,196 +30,42 @@ function runClose(args) {
|
|
|
57
30
|
return { stdout: e.stdout || '', stderr: e.stderr || '', code: e.status || 1 };
|
|
58
31
|
}
|
|
59
32
|
}
|
|
60
|
-
describe('close command E2E', () => {
|
|
61
|
-
describe('
|
|
62
|
-
|
|
63
|
-
it('should exit 1 with usage message when no ID given', () => {
|
|
64
|
-
const result = runClose('');
|
|
65
|
-
assert.strictEqual(result.code, 1, 'Should exit with code 1');
|
|
66
|
-
assert.ok(result.stderr.includes('No issue ID provided') || result.stderr.includes('Usage'), 'Should show usage message');
|
|
67
|
-
});
|
|
68
|
-
it('should suggest the correct usage format', () => {
|
|
33
|
+
describe('close command E2E (deprecated)', () => {
|
|
34
|
+
describe('deprecation behavior', () => {
|
|
35
|
+
it('should exit 1 with deprecation message when no ID given', () => {
|
|
69
36
|
const result = runClose('');
|
|
70
|
-
assert.
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
describe('invalid issue ID format', () => {
|
|
74
|
-
// Expected: exit 1, error about invalid format
|
|
75
|
-
it('should reject IDs with invalid characters', () => {
|
|
76
|
-
const result = runClose('not-a-valid-id!!!');
|
|
77
|
-
assert.strictEqual(result.code, 1, 'Should exit with code 1 for bad ID');
|
|
78
|
-
assert.ok(result.stderr.includes('Invalid issue ID') || result.stderr.includes('Expected format'), 'Should indicate invalid ID format');
|
|
79
|
-
});
|
|
80
|
-
it('should reject IDs that are too long', () => {
|
|
81
|
-
const result = runClose('beth-abcdefghijklmnopqrstuvwxyz');
|
|
82
|
-
assert.strictEqual(result.code, 1, 'Should exit with code 1 for oversized ID');
|
|
37
|
+
assert.strictEqual(result.code, 1, 'Deprecated close should exit 1');
|
|
38
|
+
assert.ok(result.stdout.includes('deprecated') || result.stdout.includes('Backlog.md'), 'Should show deprecation message');
|
|
83
39
|
});
|
|
84
|
-
it('should
|
|
85
|
-
const result = runClose('
|
|
86
|
-
assert.strictEqual(result.code, 1, '
|
|
40
|
+
it('should exit 1 with deprecation message when ID given', () => {
|
|
41
|
+
const result = runClose('beth-abc123');
|
|
42
|
+
assert.strictEqual(result.code, 1, 'Deprecated close should exit 1 with ID');
|
|
43
|
+
assert.ok(result.stdout.includes('deprecated') || result.stdout.includes('Backlog.md'), 'Should show deprecation message');
|
|
87
44
|
});
|
|
88
|
-
it('should
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
encoding: 'utf-8',
|
|
92
|
-
env: { ...process.env, NO_COLOR: '1' },
|
|
93
|
-
timeout: 15000,
|
|
94
|
-
});
|
|
95
|
-
assert.notStrictEqual(result.status, 0, 'Should reject IDs containing spaces');
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
describe('shell injection prevention', () => {
|
|
99
|
-
// Expected: all exit 1 with "Invalid issue ID" — no command execution
|
|
100
|
-
it('should safely reject command injection in ID', () => {
|
|
101
|
-
const result = runClose('"$(whoami)"');
|
|
102
|
-
assert.strictEqual(result.code, 1, 'Should exit with code 1');
|
|
103
|
-
});
|
|
104
|
-
it('should safely reject semicolon injection', () => {
|
|
105
|
-
const result = spawnSync('node', [CLI_PATH, 'close', 'beth-abc;rm -rf /'], {
|
|
106
|
-
encoding: 'utf-8',
|
|
107
|
-
env: { ...process.env, NO_COLOR: '1' },
|
|
108
|
-
timeout: 15000,
|
|
109
|
-
});
|
|
110
|
-
assert.notStrictEqual(result.status, 0, 'Should reject semicolon injection');
|
|
111
|
-
});
|
|
112
|
-
it('should safely reject pipe injection', () => {
|
|
113
|
-
const result = spawnSync('node', [CLI_PATH, 'close', 'beth-abc|cat /etc/passwd'], {
|
|
114
|
-
encoding: 'utf-8',
|
|
115
|
-
env: { ...process.env, NO_COLOR: '1' },
|
|
116
|
-
timeout: 15000,
|
|
117
|
-
});
|
|
118
|
-
assert.notStrictEqual(result.status, 0, 'Should reject pipe injection');
|
|
45
|
+
it('should mention Backlog.md as replacement', () => {
|
|
46
|
+
const result = runClose('');
|
|
47
|
+
assert.ok(result.stdout.includes('Backlog.md'), 'Should mention Backlog.md as the replacement');
|
|
119
48
|
});
|
|
120
|
-
|
|
121
|
-
describe('argument parsing', () => {
|
|
122
|
-
// Expected: flags parsed correctly, passed through to bd
|
|
123
|
-
it('should accept --reason flag with value', () => {
|
|
124
|
-
// This will fail to actually close (nonexistent ID), but should parse args
|
|
49
|
+
it('should accept --reason flag without error', () => {
|
|
125
50
|
const result = runClose('beth-zzz999 --reason "Testing close"');
|
|
126
|
-
|
|
127
|
-
// error on the flag parsing itself
|
|
128
|
-
assert.strictEqual(result.code, 1, 'Should exit 1 (issue not found, not arg error)');
|
|
129
|
-
// Should NOT say "Unknown flag"
|
|
51
|
+
assert.strictEqual(result.code, 1, 'Should accept --reason');
|
|
130
52
|
assert.ok(!result.stderr.includes('Unknown flag'), 'Should not reject --reason as unknown flag');
|
|
131
53
|
});
|
|
132
54
|
it('should accept -r shorthand for --reason', () => {
|
|
133
55
|
const result = runClose('beth-zzz999 -r "Short reason"');
|
|
134
|
-
assert.strictEqual(result.code, 1);
|
|
56
|
+
assert.strictEqual(result.code, 1, 'Should accept -r');
|
|
135
57
|
assert.ok(!result.stderr.includes('Unknown flag'), '-r should be accepted as reason shorthand');
|
|
136
58
|
});
|
|
137
|
-
it('should accept --force flag', () => {
|
|
59
|
+
it('should accept --force flag without error', () => {
|
|
138
60
|
const result = runClose('beth-zzz999 --force');
|
|
139
|
-
assert.strictEqual(result.code, 1);
|
|
61
|
+
assert.strictEqual(result.code, 1, 'Should accept --force');
|
|
140
62
|
assert.ok(!result.stderr.includes('Unknown flag'), '--force should be accepted');
|
|
141
63
|
});
|
|
142
64
|
it('should accept -f shorthand for --force', () => {
|
|
143
65
|
const result = runClose('beth-zzz999 -f');
|
|
144
|
-
assert.strictEqual(result.code, 1);
|
|
66
|
+
assert.strictEqual(result.code, 1, 'Should accept -f');
|
|
145
67
|
assert.ok(!result.stderr.includes('Unknown flag'), '-f should be accepted as force shorthand');
|
|
146
68
|
});
|
|
147
69
|
});
|
|
148
|
-
describe('live beads integration', () => {
|
|
149
|
-
let testIssueId = null;
|
|
150
|
-
// Expected: actual bd close succeeds against real database
|
|
151
|
-
it('should close a real task issue', { skip: SKIP_NO_BEADS }, () => {
|
|
152
|
-
// Create a temp issue to close
|
|
153
|
-
try {
|
|
154
|
-
const output = execSync('bd create "E2E close test temp issue" --type task --json', {
|
|
155
|
-
encoding: 'utf-8',
|
|
156
|
-
timeout: 10000,
|
|
157
|
-
});
|
|
158
|
-
const parsed = JSON.parse(output);
|
|
159
|
-
testIssueId = parsed.id;
|
|
160
|
-
assert.ok(testIssueId, 'Should have created a test issue');
|
|
161
|
-
}
|
|
162
|
-
catch {
|
|
163
|
-
// If bd create fails, skip
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
const result = runClose(`${testIssueId} --reason "E2E test cleanup"`);
|
|
167
|
-
assert.strictEqual(result.code, 0, `Should exit 0 when closing valid task ${testIssueId}`);
|
|
168
|
-
});
|
|
169
|
-
it('should close with --force bypassing all checks', { skip: SKIP_NO_BEADS }, () => {
|
|
170
|
-
let id = null;
|
|
171
|
-
try {
|
|
172
|
-
const output = execSync('bd create "E2E force-close test" --type task --json', {
|
|
173
|
-
encoding: 'utf-8',
|
|
174
|
-
timeout: 10000,
|
|
175
|
-
});
|
|
176
|
-
id = JSON.parse(output).id;
|
|
177
|
-
}
|
|
178
|
-
catch {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
const result = runClose(`${id} --force --reason "Force close E2E"`);
|
|
182
|
-
assert.strictEqual(result.code, 0, 'Should exit 0 with --force');
|
|
183
|
-
});
|
|
184
|
-
it('should block closing epic with open children', { skip: SKIP_NO_BEADS }, () => {
|
|
185
|
-
let epicId = null;
|
|
186
|
-
let childId = null;
|
|
187
|
-
try {
|
|
188
|
-
const epicOut = execSync('bd create "E2E epic close test" --type epic --json', {
|
|
189
|
-
encoding: 'utf-8',
|
|
190
|
-
timeout: 10000,
|
|
191
|
-
});
|
|
192
|
-
epicId = JSON.parse(epicOut).id;
|
|
193
|
-
const childOut = execSync(`bd create "E2E child task" --parent ${epicId} --json`, {
|
|
194
|
-
encoding: 'utf-8',
|
|
195
|
-
timeout: 10000,
|
|
196
|
-
});
|
|
197
|
-
childId = JSON.parse(childOut).id;
|
|
198
|
-
}
|
|
199
|
-
catch {
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
// Try to close the epic — should be blocked
|
|
203
|
-
const result = runClose(epicId);
|
|
204
|
-
assert.strictEqual(result.code, 1, 'Should exit 1 when epic has open children');
|
|
205
|
-
assert.ok(result.stderr.includes('open child') || result.stderr.includes('Cannot close'), 'Should mention open children in error');
|
|
206
|
-
// Cleanup
|
|
207
|
-
try {
|
|
208
|
-
if (childId)
|
|
209
|
-
execSync(`bd close ${childId} --force`, { stdio: 'ignore', timeout: 10000 });
|
|
210
|
-
if (epicId)
|
|
211
|
-
execSync(`bd close ${epicId} --force`, { stdio: 'ignore', timeout: 10000 });
|
|
212
|
-
}
|
|
213
|
-
catch { /* best effort */ }
|
|
214
|
-
});
|
|
215
|
-
it('should block epic missing test subtasks', { skip: SKIP_NO_BEADS }, () => {
|
|
216
|
-
let epicId = null;
|
|
217
|
-
let childId = null;
|
|
218
|
-
try {
|
|
219
|
-
const epicOut = execSync('bd create "E2E epic test-subtask check" --type epic --json', {
|
|
220
|
-
encoding: 'utf-8',
|
|
221
|
-
timeout: 10000,
|
|
222
|
-
});
|
|
223
|
-
epicId = JSON.parse(epicOut).id;
|
|
224
|
-
// Create and close a non-test child so the epic has no open children
|
|
225
|
-
// but is still missing test subtasks
|
|
226
|
-
const childOut = execSync(`bd create "Implementation task" --parent ${epicId} --json`, {
|
|
227
|
-
encoding: 'utf-8',
|
|
228
|
-
timeout: 10000,
|
|
229
|
-
});
|
|
230
|
-
childId = JSON.parse(childOut).id;
|
|
231
|
-
execSync(`bd close ${childId} --force`, { stdio: 'ignore', timeout: 10000 });
|
|
232
|
-
}
|
|
233
|
-
catch {
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
const result = runClose(epicId);
|
|
237
|
-
assert.strictEqual(result.code, 1, 'Should exit 1 when epic lacks test subtasks');
|
|
238
|
-
assert.ok(result.stderr.includes('missing mandatory test subtask') || result.stderr.includes('Unit tests'), 'Should mention missing test subtasks');
|
|
239
|
-
// Cleanup
|
|
240
|
-
try {
|
|
241
|
-
if (epicId)
|
|
242
|
-
execSync(`bd close ${epicId} --force`, { stdio: 'ignore', timeout: 10000 });
|
|
243
|
-
}
|
|
244
|
-
catch { /* best effort */ }
|
|
245
|
-
});
|
|
246
|
-
it('should handle nonexistent issue gracefully', { skip: SKIP_NO_BEADS }, () => {
|
|
247
|
-
const result = runClose('beth-zzz999');
|
|
248
|
-
assert.strictEqual(result.code, 1, 'Should exit 1 for nonexistent issue');
|
|
249
|
-
});
|
|
250
|
-
});
|
|
251
70
|
});
|
|
252
71
|
//# sourceMappingURL=close.e2e.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close.e2e.test.js","sourceRoot":"","sources":["../../../src/cli/commands/close.e2e.test.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"close.e2e.test.js","sourceRoot":"","sources":["../../../src/cli/commands/close.e2e.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,M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