@unbrained/pm-cli 2026.5.11 → 2026.5.14
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/AGENTS.md +3 -116
- package/CHANGELOG.md +18 -0
- package/PRD.md +18 -39
- package/README.md +8 -5
- package/dist/cli/commander-usage.js +27 -0
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/activity.js +19 -4
- package/dist/cli/commands/activity.js.map +1 -1
- package/dist/cli/commands/calendar.js +5 -2
- package/dist/cli/commands/calendar.js.map +1 -1
- package/dist/cli/commands/contracts.js +63 -19
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.js +58 -3
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +14 -3
- package/dist/cli/commands/extension.js +481 -95
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -8
- package/dist/cli/commands/index.js +1 -8
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/reindex.d.ts +8 -0
- package/dist/cli/commands/reindex.js +96 -23
- package/dist/cli/commands/reindex.js.map +1 -1
- package/dist/cli/commands/search.js +51 -25
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/test.js +14 -6
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/upgrade.d.ts +63 -0
- package/dist/cli/commands/upgrade.js +260 -0
- package/dist/cli/commands/upgrade.js.map +1 -0
- package/dist/cli/guide-topics.js +18 -16
- package/dist/cli/guide-topics.js.map +1 -1
- package/dist/cli/help-content.js +57 -18
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/main.js +73 -7
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +24 -142
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +49 -257
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.js +29 -198
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +181 -204
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.d.ts +2 -2
- package/dist/cli/registration-helpers.js +1 -19
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/core/extensions/loader.js +7 -1
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/packages/manifest.d.ts +38 -0
- package/dist/core/packages/manifest.js +221 -0
- package/dist/core/packages/manifest.js.map +1 -0
- package/dist/core/search/embedding-batches.d.ts +13 -1
- package/dist/core/search/embedding-batches.js +19 -1
- package/dist/core/search/embedding-batches.js.map +1 -1
- package/dist/core/store/front-matter-cache.d.ts +8 -1
- package/dist/core/store/front-matter-cache.js +20 -11
- package/dist/core/store/front-matter-cache.js.map +1 -1
- package/dist/mcp/server.d.ts +8 -0
- package/dist/mcp/server.js +100 -43
- package/dist/mcp/server.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +7 -0
- package/dist/sdk/cli-contracts/commander-mutation-options.js +477 -0
- package/dist/sdk/cli-contracts/commander-mutation-options.js.map +1 -0
- package/dist/sdk/cli-contracts/commander-types.d.ts +21 -0
- package/dist/sdk/cli-contracts/commander-types.js +92 -0
- package/dist/sdk/cli-contracts/commander-types.js.map +1 -0
- package/dist/sdk/cli-contracts.d.ts +22 -32
- package/dist/sdk/cli-contracts.js +155 -296
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.js +2 -0
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime.d.ts +29 -0
- package/dist/sdk/runtime.js +28 -0
- package/dist/sdk/runtime.js.map +1 -0
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/COMMANDS.md +17 -1
- package/docs/EXTENSIONS.md +169 -61
- package/docs/QUICKSTART.md +11 -2
- package/docs/README.md +4 -6
- package/docs/RELEASING.md +4 -2
- package/docs/SDK.md +79 -438
- package/package.json +6 -23
- package/packages/pm-beads/README.md +10 -0
- package/packages/pm-beads/extensions/beads/index.js +113 -0
- package/{.agents/pm/extensions/beads/index.js → packages/pm-beads/extensions/beads/index.ts} +42 -20
- package/{.agents/pm → packages/pm-beads}/extensions/beads/runtime.js +2 -17
- package/{.agents/pm → packages/pm-beads}/extensions/beads/runtime.ts +41 -18
- package/packages/pm-beads/package.json +50 -0
- package/packages/pm-calendar/README.md +13 -0
- package/packages/pm-calendar/extensions/calendar/index.js +56 -0
- package/packages/pm-calendar/extensions/calendar/index.ts +62 -0
- package/packages/pm-calendar/extensions/calendar/manifest.json +7 -0
- package/packages/pm-calendar/extensions/calendar/runtime.js +95 -0
- package/packages/pm-calendar/extensions/calendar/runtime.ts +104 -0
- package/packages/pm-calendar/package.json +51 -0
- package/packages/pm-governance-audit/README.md +23 -0
- package/packages/pm-governance-audit/extensions/governance-audit/index.js +117 -0
- package/packages/pm-governance-audit/extensions/governance-audit/index.ts +118 -0
- package/packages/pm-governance-audit/extensions/governance-audit/manifest.json +7 -0
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.js +159 -0
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.ts +176 -0
- package/packages/pm-governance-audit/package.json +52 -0
- package/packages/pm-guide-shell/README.md +23 -0
- package/packages/pm-guide-shell/extensions/guide-shell/index.js +76 -0
- package/packages/pm-guide-shell/extensions/guide-shell/index.ts +81 -0
- package/packages/pm-guide-shell/extensions/guide-shell/manifest.json +7 -0
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.js +263 -0
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +327 -0
- package/packages/pm-guide-shell/package.json +52 -0
- package/packages/pm-linked-test-adapters/README.md +24 -0
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.js +101 -0
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.ts +102 -0
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/manifest.json +7 -0
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.js +142 -0
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.ts +173 -0
- package/packages/pm-linked-test-adapters/package.json +53 -0
- package/packages/pm-search-advanced/README.md +27 -0
- package/packages/pm-search-advanced/extensions/search-advanced/index.js +93 -0
- package/packages/pm-search-advanced/extensions/search-advanced/index.ts +94 -0
- package/packages/pm-search-advanced/extensions/search-advanced/manifest.json +7 -0
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.js +120 -0
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.ts +144 -0
- package/packages/pm-search-advanced/package.json +54 -0
- package/packages/pm-templates/README.md +20 -0
- package/packages/pm-templates/extensions/templates/index.js +101 -0
- package/packages/pm-templates/extensions/templates/index.ts +109 -0
- package/packages/pm-templates/extensions/templates/manifest.json +7 -0
- package/packages/pm-templates/extensions/templates/runtime.js +226 -0
- package/packages/pm-templates/extensions/templates/runtime.ts +283 -0
- package/packages/pm-templates/package.json +50 -0
- package/packages/pm-todos/README.md +11 -0
- package/packages/pm-todos/extensions/todos/index.js +130 -0
- package/{.agents/pm/extensions/todos/index.js → packages/pm-todos/extensions/todos/index.ts} +47 -23
- package/{.agents/pm → packages/pm-todos}/extensions/todos/runtime.js +3 -18
- package/{.agents/pm → packages/pm-todos}/extensions/todos/runtime.ts +42 -20
- package/packages/pm-todos/package.json +51 -0
- package/plugins/pm-cli-claude/README.md +1 -2
- package/plugins/pm-cli-claude/hooks/session-start.mjs +4 -55
- package/plugins/pm-cli-claude/scripts/pm-mcp-server.mjs +4 -2
- package/plugins/pm-cli-codex/scripts/pm-mcp-server.mjs +4 -2
- package/.agents/pm/extensions/.managed-extensions.json +0 -42
- package/.agents/skills/HARNESS_COMPATIBILITY.md +0 -45
- package/.agents/skills/README.md +0 -21
- package/.agents/skills/pm-developer/SKILL.md +0 -73
- package/.agents/skills/pm-developer/references/COMMAND_PLAYBOOK.md +0 -48
- package/.agents/skills/pm-developer/references/PROMPTS.md +0 -17
- package/.agents/skills/pm-extensions/SKILL.md +0 -57
- package/.agents/skills/pm-extensions/references/LIFECYCLE.md +0 -40
- package/.agents/skills/pm-extensions/references/TROUBLESHOOTING.md +0 -25
- package/.agents/skills/pm-sdk/SKILL.md +0 -50
- package/.agents/skills/pm-sdk/references/INTEGRATION_CHECKLIST.md +0 -31
- package/.agents/skills/pm-sdk/references/PROMPTS.md +0 -13
- package/.agents/skills/pm-user/SKILL.md +0 -59
- package/.agents/skills/pm-user/references/PROMPTS.md +0 -17
- package/.agents/skills/pm-user/references/WORKFLOWS.md +0 -35
- package/.pi/README.md +0 -35
- package/.pi/agents/pm-triage-agent.md +0 -19
- package/.pi/agents/pm-verification-agent.md +0 -21
- package/.pi/chains/pm-native-delivery.chain.md +0 -11
- package/.pi/extensions/pm-cli/index.js +0 -387
- package/.pi/prompts/pm-workflow.md +0 -5
- package/.pi/skills/pm-native/SKILL.md +0 -44
- package/.pi/skills/pm-release/SKILL.md +0 -35
- package/dist/pi/native.d.ts +0 -5
- package/dist/pi/native.js +0 -236
- package/dist/pi/native.js.map +0 -1
- package/docs/PI_PACKAGE.md +0 -141
- /package/{.agents/pm → packages/pm-beads}/extensions/beads/manifest.json +0 -0
- /package/{.agents/pm → packages/pm-todos}/extensions/todos/manifest.json +0 -0
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm-developer
|
|
3
|
-
description: Runs the pm-cli developer execution loop (orient, claim, implement, verify, close) with linked files/tests/docs evidence. Use when coding, debugging, refactoring, or shipping repository changes tracked in pm items.
|
|
4
|
-
license: MIT
|
|
5
|
-
compatibility: Works in terminal-based coding agents with bash, Node.js, and pnpm.
|
|
6
|
-
metadata:
|
|
7
|
-
owner: unbrained
|
|
8
|
-
domain: pm-cli
|
|
9
|
-
scope: developer-workflow
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# pm Developer Skill
|
|
13
|
-
|
|
14
|
-
Use this skill for implementation work that changes code, docs, tests, or release gates.
|
|
15
|
-
|
|
16
|
-
## Quick Start
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
pm context --limit 10
|
|
20
|
-
pm search "<task keywords>" --limit 10
|
|
21
|
-
pm list-open --limit 20
|
|
22
|
-
pm claim <ID>
|
|
23
|
-
pm update <ID> --status in_progress
|
|
24
|
-
pm guide workflows
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Canonical Workflow
|
|
28
|
-
|
|
29
|
-
1. **Orient**: pick an existing item when possible.
|
|
30
|
-
2. **Claim**: claim before substantial edits.
|
|
31
|
-
3. **Link context**: attach changed files/tests/docs while implementing.
|
|
32
|
-
4. **Verify**: run linked tests plus local quality gates.
|
|
33
|
-
5. **Close with evidence**: append what changed and what passed.
|
|
34
|
-
6. **Release claim**: release when paused, handed off, or closed.
|
|
35
|
-
|
|
36
|
-
## Workflow Prompts
|
|
37
|
-
|
|
38
|
-
Use one prompt template, then execute only the minimum required commands.
|
|
39
|
-
|
|
40
|
-
### Prompt: Implement Scoped Change
|
|
41
|
-
|
|
42
|
-
`Implement the requested change on <ID>. Keep edits scoped, link files/tests/docs, run targeted verification, and record closure evidence before releasing claim.`
|
|
43
|
-
|
|
44
|
-
### Prompt: Debug Regression
|
|
45
|
-
|
|
46
|
-
`Investigate failing behavior for <ID>. Reproduce first, add or update regression tests, patch root cause, and append evidence with exact command outputs.`
|
|
47
|
-
|
|
48
|
-
### Prompt: Documentation + Code Sync
|
|
49
|
-
|
|
50
|
-
`Update implementation and docs together for <ID>. Ensure docs route through pm guide topics and verify command examples still match pm contracts output.`
|
|
51
|
-
|
|
52
|
-
## Required Evidence Commands
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
pm files <ID> --add path=<path>,scope=project,note="<reason>"
|
|
56
|
-
pm test <ID> --add command="node scripts/run-tests.mjs test -- <target>",scope=project,timeout_seconds=240
|
|
57
|
-
pm docs <ID> --add path=<doc>,scope=project,note="<reason>"
|
|
58
|
-
pm comments <ID> "Evidence: <what changed + tests run>"
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Verification Defaults
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
pnpm build
|
|
65
|
-
node scripts/run-tests.mjs test -- <targets>
|
|
66
|
-
node scripts/run-tests.mjs coverage
|
|
67
|
-
pm validate --check-resolution --check-history-drift
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## Progressive Disclosure References
|
|
71
|
-
|
|
72
|
-
- [Developer command playbook](references/COMMAND_PLAYBOOK.md)
|
|
73
|
-
- [Prompt templates and examples](references/PROMPTS.md)
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Developer Command Playbook
|
|
2
|
-
|
|
3
|
-
## Session Bootstrap (Maintainer Run)
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm install -g .
|
|
7
|
-
pm --version
|
|
8
|
-
node -v
|
|
9
|
-
pnpm -v
|
|
10
|
-
pnpm build
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Item Lifecycle
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pm context --limit 10
|
|
17
|
-
pm search "<keywords>" --limit 10
|
|
18
|
-
pm list-open --limit 20
|
|
19
|
-
pm claim <ID>
|
|
20
|
-
pm update <ID> --status in_progress --description "..."
|
|
21
|
-
pm append <ID> --body "Implementation notes"
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Evidence Linking
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
pm files <ID> --add path=src/<file>.ts,scope=project,note="implementation"
|
|
28
|
-
pm docs <ID> --add path=docs/<doc>.md,scope=project,note="public docs update"
|
|
29
|
-
pm test <ID> --add command="node scripts/run-tests.mjs test -- tests/unit/<file>.spec.ts",scope=project,timeout_seconds=240
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Close Workflow
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
pm test <ID> --run --progress
|
|
36
|
-
node scripts/run-tests.mjs coverage
|
|
37
|
-
pm comments <ID> "Evidence: linked tests passed; coverage remained green."
|
|
38
|
-
pm close <ID> "Acceptance criteria met with verification evidence." --validate-close warn
|
|
39
|
-
pm release <ID>
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Local Docs Routing
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
pm guide workflows
|
|
46
|
-
pm guide commands --depth standard
|
|
47
|
-
pm guide release --json
|
|
48
|
-
```
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Prompt Templates
|
|
2
|
-
|
|
3
|
-
## Implement Feature
|
|
4
|
-
|
|
5
|
-
`Implement <feature> on <ID>. Reuse existing architecture, link all changed files/tests/docs, run targeted + coverage checks, and append evidence before close.`
|
|
6
|
-
|
|
7
|
-
## Fix Bug
|
|
8
|
-
|
|
9
|
-
`Fix <bug> on <ID>. Add a regression test, keep the patch minimal, run focused tests first, then full gate commands if scope expands.`
|
|
10
|
-
|
|
11
|
-
## Refactor
|
|
12
|
-
|
|
13
|
-
`Refactor <area> on <ID> without behavior changes. Preserve API contracts, update docs where command behavior is clarified, and validate with existing regression suite.`
|
|
14
|
-
|
|
15
|
-
## Release Readiness Sweep
|
|
16
|
-
|
|
17
|
-
`Perform release readiness checks for <ID>. Run build, coverage, static quality, secret scan, and release gates. Document all results in a closure comment.`
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm-extensions
|
|
3
|
-
description: Manages pm-cli extension lifecycle operations (explore, install, activate, diagnose, and release-safe validation). Use when building, integrating, or troubleshooting pm extensions and extension-provided commands.
|
|
4
|
-
license: MIT
|
|
5
|
-
compatibility: Requires pm extension commands and local project/global extension directories.
|
|
6
|
-
metadata:
|
|
7
|
-
owner: unbrained
|
|
8
|
-
domain: pm-cli
|
|
9
|
-
scope: extension-workflow
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# pm Extensions Skill
|
|
13
|
-
|
|
14
|
-
Use this skill when the request touches extension install, activation, command registration, diagnostics, or extension governance.
|
|
15
|
-
|
|
16
|
-
## Quick Start
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
pm guide extensions
|
|
20
|
-
pm extension explore --project
|
|
21
|
-
pm extension manage --detail summary
|
|
22
|
-
pm extension doctor --detail deep
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Lifecycle Workflow
|
|
26
|
-
|
|
27
|
-
1. **Inspect state first** (`explore`, `manage`, `doctor`).
|
|
28
|
-
2. **Apply lifecycle mutation** (`install`, `adopt`, `activate`, `deactivate`, `uninstall`).
|
|
29
|
-
3. **Verify command/action exposure** with `pm contracts`.
|
|
30
|
-
4. **Record evidence** in linked `pm` items.
|
|
31
|
-
|
|
32
|
-
## Workflow Prompts
|
|
33
|
-
|
|
34
|
-
### Prompt: Diagnose Extension Failure
|
|
35
|
-
|
|
36
|
-
`Diagnose extension activation issues using pm extension explore/manage/doctor before making lifecycle changes. Report root cause and minimal remediation commands.`
|
|
37
|
-
|
|
38
|
-
### Prompt: Install and Validate Extension
|
|
39
|
-
|
|
40
|
-
`Install <extension> in project scope, validate with doctor diagnostics, and confirm command/action availability using pm contracts runtime output.`
|
|
41
|
-
|
|
42
|
-
### Prompt: Safe Deactivation
|
|
43
|
-
|
|
44
|
-
`Deactivate or uninstall <extension> with rollback-safe sequencing and explicit evidence of which commands/actions are removed.`
|
|
45
|
-
|
|
46
|
-
## Contract Verification
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
pm contracts --command extension --flags-only
|
|
50
|
-
pm contracts --runtime-only --availability-only
|
|
51
|
-
pm contracts --command <extension-command> --flags-only
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Progressive Disclosure References
|
|
55
|
-
|
|
56
|
-
- [Extension lifecycle recipes](references/LIFECYCLE.md)
|
|
57
|
-
- [Troubleshooting playbook](references/TROUBLESHOOTING.md)
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Extension Lifecycle Recipes
|
|
2
|
-
|
|
3
|
-
## Inspect Current State
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
pm extension explore --project
|
|
7
|
-
pm extension manage --detail summary
|
|
8
|
-
pm extension doctor --detail deep
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Install and Activate
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
pm extension install <target> --project
|
|
15
|
-
pm extension activate <target> --project
|
|
16
|
-
pm extension doctor --detail summary
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Adopt Existing Extensions
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pm extension adopt <name> --project
|
|
23
|
-
pm extension adopt-all --project
|
|
24
|
-
pm extension manage --detail summary
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Deactivate / Uninstall
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
pm extension deactivate <target> --project
|
|
31
|
-
pm extension uninstall <target> --project
|
|
32
|
-
pm extension doctor --detail deep
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Contract Checks
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
pm contracts --runtime-only --availability-only
|
|
39
|
-
pm contracts --command extension --flags-only
|
|
40
|
-
```
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Extension Troubleshooting
|
|
2
|
-
|
|
3
|
-
## Common Diagnostic Sequence
|
|
4
|
-
|
|
5
|
-
1. `pm extension explore --project`
|
|
6
|
-
2. `pm extension manage --detail summary`
|
|
7
|
-
3. `pm extension doctor --detail deep --trace`
|
|
8
|
-
4. `pm contracts --runtime-only --availability-only`
|
|
9
|
-
|
|
10
|
-
## Symptoms and Checks
|
|
11
|
-
|
|
12
|
-
- **Command not visible**
|
|
13
|
-
- Confirm extension is managed and active.
|
|
14
|
-
- Confirm capability includes `commands`.
|
|
15
|
-
- Check `pm contracts` action availability.
|
|
16
|
-
|
|
17
|
-
- **Schema mismatch**
|
|
18
|
-
- Confirm capability includes `schema`.
|
|
19
|
-
- Re-run doctor with `--detail deep --trace`.
|
|
20
|
-
- Validate runtime-only contracts output.
|
|
21
|
-
|
|
22
|
-
- **Unexpected behavior after updates**
|
|
23
|
-
- Check registration precedence with manage/doctor.
|
|
24
|
-
- Run with `--no-extensions` to isolate core behavior.
|
|
25
|
-
- Re-activate extension after fixing manifest or entry path.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm-sdk
|
|
3
|
-
description: Implements pm-cli integrations using @unbrained/pm-cli/sdk and runtime contracts. Use when authoring extensions, wrappers, or automation that must stay aligned with command/action schema changes.
|
|
4
|
-
license: MIT
|
|
5
|
-
compatibility: Requires Node.js and access to pm contracts output for runtime parity checks.
|
|
6
|
-
metadata:
|
|
7
|
-
owner: unbrained
|
|
8
|
-
domain: pm-cli
|
|
9
|
-
scope: sdk-integration
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# pm SDK Skill
|
|
13
|
-
|
|
14
|
-
Use this skill when integrating against `@unbrained/pm-cli/sdk` or validating external wrappers.
|
|
15
|
-
|
|
16
|
-
## Quick Start
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
pm guide sdk
|
|
20
|
-
pm contracts --schema-only
|
|
21
|
-
pm contracts --runtime-only --availability-only
|
|
22
|
-
pm contracts --command <command> --flags-only
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Integration Workflow
|
|
26
|
-
|
|
27
|
-
1. Capture current runtime schema and command contracts.
|
|
28
|
-
2. Map integration payload fields to contract keys.
|
|
29
|
-
3. Implement with SDK exports (no internal `src/core/...` imports).
|
|
30
|
-
4. Validate command/action availability in runtime-only mode.
|
|
31
|
-
5. Add regression tests for schema-bound behavior.
|
|
32
|
-
|
|
33
|
-
## Workflow Prompts
|
|
34
|
-
|
|
35
|
-
### Prompt: Build New Integration
|
|
36
|
-
|
|
37
|
-
`Implement <integration> using @unbrained/pm-cli/sdk and pm contracts output as the source of truth. Add tests that fail when required command/action fields drift.`
|
|
38
|
-
|
|
39
|
-
### Prompt: Contract Drift Investigation
|
|
40
|
-
|
|
41
|
-
`Compare integration assumptions with current pm contracts output, identify drift, and patch mapping logic and tests to restore parity.`
|
|
42
|
-
|
|
43
|
-
### Prompt: Extension Authoring
|
|
44
|
-
|
|
45
|
-
`Author extension registration using defineExtension and declared capabilities only, then verify activation and command availability with pm contracts.`
|
|
46
|
-
|
|
47
|
-
## Progressive Disclosure References
|
|
48
|
-
|
|
49
|
-
- [Integration checklist](references/INTEGRATION_CHECKLIST.md)
|
|
50
|
-
- [SDK prompt templates](references/PROMPTS.md)
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# SDK Integration Checklist
|
|
2
|
-
|
|
3
|
-
## Contract Capture
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
pm contracts --schema-only --json
|
|
7
|
-
pm contracts --runtime-only --availability-only --json
|
|
8
|
-
pm contracts --command <command> --flags-only --json
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Implementation Rules
|
|
12
|
-
|
|
13
|
-
- Use `@unbrained/pm-cli/sdk` exports only.
|
|
14
|
-
- Do not import internal runtime modules from `src/core/...`.
|
|
15
|
-
- Keep action/flag mappings derived from `pm contracts` outputs.
|
|
16
|
-
- Handle extension-unavailable states through availability metadata.
|
|
17
|
-
|
|
18
|
-
## Validation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pnpm build
|
|
22
|
-
node scripts/run-tests.mjs test -- <targeted sdk/integration tests>
|
|
23
|
-
node scripts/run-tests.mjs coverage
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Release Readiness
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
node scripts/release/docs-skills-gate.mjs
|
|
30
|
-
node scripts/release/run-gates.mjs --telemetry-mode best-effort
|
|
31
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# SDK Prompt Templates
|
|
2
|
-
|
|
3
|
-
## Runtime Contract Mapping
|
|
4
|
-
|
|
5
|
-
`Map this integration request to pm contracts output first, then generate implementation steps keyed to command flags and action schema fields.`
|
|
6
|
-
|
|
7
|
-
## Extension Capability Design
|
|
8
|
-
|
|
9
|
-
`Design extension capabilities for <feature> using defineExtension. Include only needed capabilities and provide a verification command list for activation and contracts checks.`
|
|
10
|
-
|
|
11
|
-
## Wrapper Parity Check
|
|
12
|
-
|
|
13
|
-
`Audit wrapper action/command mapping parity against current pm contracts output and report any missing or stale fields with patch recommendations.`
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm-user
|
|
3
|
-
description: Guides user- and operator-facing pm-cli workflows for planning, triage, prioritization, and task lifecycle management with minimal token usage. Use when routing requests into pm items without implementing code changes.
|
|
4
|
-
license: MIT
|
|
5
|
-
compatibility: Works in terminal-based agent harnesses that execute pm CLI commands.
|
|
6
|
-
metadata:
|
|
7
|
-
owner: unbrained
|
|
8
|
-
domain: pm-cli
|
|
9
|
-
scope: operator-workflow
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# pm User Skill
|
|
13
|
-
|
|
14
|
-
Use this skill for planning and coordination work where the main output is clean tracker state.
|
|
15
|
-
|
|
16
|
-
## Quick Start
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
pm guide quickstart
|
|
20
|
-
pm context --limit 10
|
|
21
|
-
pm search "<request keywords>" --limit 10
|
|
22
|
-
pm list-open --limit 20
|
|
23
|
-
pm list-in-progress --limit 20
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Primary Use Cases
|
|
27
|
-
|
|
28
|
-
- Intake a new request and decide whether an item already exists.
|
|
29
|
-
- Create parent lineage (`Epic` -> `Feature` -> `Task`) for net-new scope.
|
|
30
|
-
- Prioritize and schedule work with deterministic metadata.
|
|
31
|
-
- Maintain clear ownership and handoff notes.
|
|
32
|
-
|
|
33
|
-
## Workflow Prompts
|
|
34
|
-
|
|
35
|
-
### Prompt: New Request Triage
|
|
36
|
-
|
|
37
|
-
`Triage this request using pm only. Reuse an existing item if relevant; otherwise create canonical parent lineage and a scoped child item with duplicate-check evidence.`
|
|
38
|
-
|
|
39
|
-
### Prompt: Prioritization Sweep
|
|
40
|
-
|
|
41
|
-
`Review open and in-progress items, normalize priority/status metadata, and leave append-only notes explaining why any prioritization changed.`
|
|
42
|
-
|
|
43
|
-
### Prompt: Handoff Preparation
|
|
44
|
-
|
|
45
|
-
`Prepare handoff for <ID>: summarize state in comments, ensure linked files/tests/docs are complete, and release claim when ready.`
|
|
46
|
-
|
|
47
|
-
## Deterministic Metadata Commands
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
pm update <ID> --description "..." --ac "..." --estimate 60
|
|
51
|
-
pm update <ID> --deadline +2d --priority 1 --status open
|
|
52
|
-
pm comments <ID> "Decision log: <why this status/priority>"
|
|
53
|
-
pm notes <ID> --add "Context for next owner."
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Progressive Disclosure References
|
|
57
|
-
|
|
58
|
-
- [Triage and planning workflows](references/WORKFLOWS.md)
|
|
59
|
-
- [Operator prompt templates](references/PROMPTS.md)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Operator Prompt Templates
|
|
2
|
-
|
|
3
|
-
## Triage
|
|
4
|
-
|
|
5
|
-
`Find the canonical pm item for this request. Show duplicate-check commands, then either reuse and update the item or create parent lineage + child item with explicit rationale.`
|
|
6
|
-
|
|
7
|
-
## Schedule
|
|
8
|
-
|
|
9
|
-
`Apply deterministic scheduling metadata (status, priority, estimate, deadline) to <ID> and leave a comment explaining the prioritization decision.`
|
|
10
|
-
|
|
11
|
-
## Handoff
|
|
12
|
-
|
|
13
|
-
`Prepare <ID> for handoff: append current state, blockers, and next actions; release the claim when handoff is complete.`
|
|
14
|
-
|
|
15
|
-
## Closure Readiness
|
|
16
|
-
|
|
17
|
-
`Validate whether <ID> is close-ready by checking acceptance criteria, linked files/tests/docs, and latest verification evidence.`
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# User and Operator Workflows
|
|
2
|
-
|
|
3
|
-
## Intake Workflow
|
|
4
|
-
|
|
5
|
-
1. Query current context:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pm context --limit 10
|
|
9
|
-
pm search "<keywords>" --limit 10
|
|
10
|
-
pm list-open --limit 20
|
|
11
|
-
pm list-in-progress --limit 20
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
2. If existing item matches, reuse and update it.
|
|
15
|
-
3. If no match exists, create parent lineage then child item.
|
|
16
|
-
4. Add duplicate-check evidence in comments at creation time.
|
|
17
|
-
|
|
18
|
-
## Claim and Ownership Workflow
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pm claim <ID>
|
|
22
|
-
pm update <ID> --status in_progress --message "Start work"
|
|
23
|
-
pm comments <ID> "Owner update: <state>"
|
|
24
|
-
pm release <ID>
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Audit-Friendly Collaboration
|
|
28
|
-
|
|
29
|
-
For non-owner append-only collaboration:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
pm comments <ID> --add "audit comment" --allow-audit-comment
|
|
33
|
-
pm notes <ID> --add "audit note" --allow-audit-comment
|
|
34
|
-
pm update <ID> --dep "id=<id>,kind=related,author=<author>,created_at=now" --allow-audit-dep-update
|
|
35
|
-
```
|
package/.pi/README.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# pm CLI Pi Package
|
|
2
|
-
|
|
3
|
-
This directory is the installable Pi package payload for `@unbrained/pm-cli`.
|
|
4
|
-
|
|
5
|
-
Install from npm after publish:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pi install npm:@unbrained/pm-cli
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
For local development from a checkout:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
pnpm build
|
|
15
|
-
pi install -l .
|
|
16
|
-
# or one-shot
|
|
17
|
-
pi -e .
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Resources exposed by `package.json`:
|
|
21
|
-
|
|
22
|
-
- `.pi/extensions/pm-cli/index.js` — native Pi extension registering the `pm` tool, custom TUI renderers, autocomplete, status/widget UI, and slash commands.
|
|
23
|
-
- `.pi/skills/*` — Pi skills for native pm workflows and release validation.
|
|
24
|
-
- `.pi/prompts/*` — prompt templates for pm-tracked work.
|
|
25
|
-
- `.pi/agents/*` and `.pi/chains/*` — optional pi-subagents setup for pm triage and verification workflows in repositories that use subagents.
|
|
26
|
-
|
|
27
|
-
The extension imports the built package from `dist/`, so run `pnpm build` before local install or before publishing.
|
|
28
|
-
|
|
29
|
-
Interactive commands:
|
|
30
|
-
|
|
31
|
-
- `/pm-board [limit]` — dashboard panel for active pm context.
|
|
32
|
-
- `/pm-item <id>` and `/pm-history <id>` — item details/history panels.
|
|
33
|
-
- `/pm-actions` and `/pm-workflows` — native action list and workflow reminders.
|
|
34
|
-
|
|
35
|
-
The `pm` tool should be preferred over shelling out to `pm`; it calls pm command modules directly in-process.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm-triage-agent
|
|
3
|
-
description: Native pm triage agent for Pi. Use to inspect context, search for duplicates, select or create tracker lineage, and hand off an implementation-ready pm item without shelling out to the pm CLI.
|
|
4
|
-
tools: pm,read,grep,find,ls
|
|
5
|
-
skills: pm-native,pm-user
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# pm Triage Agent
|
|
9
|
-
|
|
10
|
-
Use the native `pm` tool only for pm operations.
|
|
11
|
-
|
|
12
|
-
Workflow:
|
|
13
|
-
1. Run `pm` action `context` with `limit: 10`.
|
|
14
|
-
2. Run `pm` action `search` with the user's key terms.
|
|
15
|
-
3. Run `pm` actions `list-open` and `list-in-progress`.
|
|
16
|
-
4. If an item exists, recommend reusing it and claim/start only when asked.
|
|
17
|
-
5. If no item exists, identify parent lineage and propose a create payload with duplicate-check evidence.
|
|
18
|
-
|
|
19
|
-
Output a concise handoff with item id, rationale, recommended next action, and exact native `pm` tool calls.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm-verification-agent
|
|
3
|
-
description: Native pm verification agent for Pi. Use to inspect linked files/tests/docs, run sandbox-safe linked tests through pm, validate close readiness, and produce closure evidence.
|
|
4
|
-
tools: pm,bash,read,grep,find,ls
|
|
5
|
-
skills: pm-native,pm-release
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# pm Verification Agent
|
|
9
|
-
|
|
10
|
-
Use the native `pm` tool for pm mutations and linked-test orchestration.
|
|
11
|
-
Use bash only for non-pm project commands such as `pnpm build` or `gh run list`.
|
|
12
|
-
|
|
13
|
-
Workflow:
|
|
14
|
-
1. Read the target item with `pm` action `get`.
|
|
15
|
-
2. Check linked files/docs/tests and acceptance criteria.
|
|
16
|
-
3. Run `pm` action `test` with `run: true` or equivalent linked-test options when available.
|
|
17
|
-
4. Run targeted project validation requested by the parent.
|
|
18
|
-
5. Add a `pm` comment summarizing evidence.
|
|
19
|
-
6. Recommend close/release only if verification is clean.
|
|
20
|
-
|
|
21
|
-
Output failures with exact commands, item id, and next remediation step.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pm-native-delivery
|
|
3
|
-
description: Triage, implement, and verify a pm-tracked change using native pm operations in Pi.
|
|
4
|
-
steps:
|
|
5
|
-
- agent: pm-triage-agent
|
|
6
|
-
task: "Triage the requested work and identify the canonical pm item for: {task}"
|
|
7
|
-
- agent: worker
|
|
8
|
-
task: "Implement the approved scope from the triage handoff. Use native pm for tracker operations, link changed files/tests/docs, and keep edits scoped. Original request: {task}\n\nTriage handoff:\n{previous}"
|
|
9
|
-
- agent: pm-verification-agent
|
|
10
|
-
task: "Verify the implementation and produce pm closure evidence. Original request: {task}\n\nImplementation handoff:\n{previous}"
|
|
11
|
-
---
|