@punks/cli 2.3.1 → 2.3.2
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 +1 -1
- package/dist/BASELINE_CHANGELOG.md +575 -0
- package/dist/CHANGELOG.md +399 -0
- package/dist/data/hooks/scaffold-update-check.mjs +18 -6
- package/dist/index.js +5278 -5012
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +20 -2
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +20 -20
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +32 -14
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ The `dp` CLI scaffolds Devpunks agent assets and writes follow-up instructions f
|
|
|
14
14
|
dp scaffold setup
|
|
15
15
|
dp scaffold setup --yes
|
|
16
16
|
dp scaffold init
|
|
17
|
+
dp check
|
|
17
18
|
dp update --check
|
|
18
19
|
dp update --write
|
|
19
20
|
dp update --yes
|
|
@@ -47,7 +48,7 @@ Do not ask for trivial file reads, validation commands, or direct execution of a
|
|
|
47
48
|
|
|
48
49
|
See [references/commands.md](references/commands.md) for command intent and when to use each command.
|
|
49
50
|
|
|
50
|
-
See [references/post-command-flow.md](references/post-command-flow.md) for the required agent flow after `dp scaffold` or `dp update`.
|
|
51
|
+
See [references/post-command-flow.md](references/post-command-flow.md) for the required agent flow after `dp scaffold`, `dp check`, or `dp update`.
|
|
51
52
|
|
|
52
53
|
The former backlog scaffold subcommand is not part of current guidance. `dp scaffold init` provides the requirements/backlog skills and initial wiki structure; `dp scaffold setup` provides repo-aware managed scaffold output.
|
|
53
54
|
|
|
@@ -57,6 +58,8 @@ After `dp scaffold init`, expect `.agents/skills/requirements-grill`, `.agents/s
|
|
|
57
58
|
|
|
58
59
|
Run the requirements grill before backlog authoring. If the generated wiki root does not match the real repository layout, move or refactor it before creating durable specs, plans, or routed docs. Monorepos usually use `apps/wiki`; single-repo layouts usually use `wiki`.
|
|
59
60
|
|
|
61
|
+
Pre-existing skills are reconciled by the follow-up agent, not by the command. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence. Exact canonical directory id/name overlap keeps the HI baseline skill active: archive local evidence under `.devpunks/replaced-skills/<skill-id>/...`, then remove active local copies or mirrors. Preserve non-overlapping local skills and expose them through harness mirrors or symlinks. Use `dp report` when archived local knowledge should be proposed for HI baseline integration; semantic overlap belongs there, not command runtime.
|
|
62
|
+
|
|
60
63
|
## Scaffold Setup
|
|
61
64
|
|
|
62
65
|
After `dp scaffold setup`, expect artifacts such as:
|
|
@@ -75,21 +78,36 @@ Then author or reconcile the final repo files requested by the specs, including
|
|
|
75
78
|
|
|
76
79
|
Reconcile generated wiki guidance with the real repository layout. Do not assume a newly seeded wiki root is canonical until it matches the project boundary.
|
|
77
80
|
|
|
81
|
+
Reconcile pre-existing repo skills from the same homes as `dp scaffold init`: `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. Commands do not detect overlap. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence. Exact name/id overlap keeps the HI baseline skill active; archive local evidence under `.devpunks/replaced-skills/<skill-id>/...` and remove active local copies or mirrors. Non-overlapping local skills remain repo-owned guidance and should stay exposed through harness mirrors or symlinks. Suggest `dp report` for archived local knowledge that should influence the shared baseline.
|
|
82
|
+
|
|
78
83
|
Use `dp scaffold setup --yes` only when the harness cannot answer interactive prompts. It accepts the resolved default pack selection; it does not add optional packs or resolve repo-policy decisions.
|
|
79
84
|
|
|
80
85
|
Before authoring prompts or plans, identify the detected core libraries whose source behavior matters. Ask the user which ones to prioritize if the choice is not obvious, then run `opensrc path <package>` or `opensrc path owner/repo` only for that focused set.
|
|
81
86
|
|
|
82
87
|
When lint specs suggest Oxlint or hooks suggest Oxfmt, treat migration as a repo-policy change. Ask before replacing existing ESLint/Prettier/Biome scripts or CI, then update package scripts, task pipelines, editor/docs references, and hooks together.
|
|
83
88
|
|
|
89
|
+
## Check
|
|
90
|
+
|
|
91
|
+
Run `dp check` at session start when `.devpunks/` exists or a scaffold/update warning appears. `dp check` is read-only; it reports CLI, baseline, managed-file, and pack drift without mutating project files.
|
|
92
|
+
|
|
93
|
+
Use `.devpunks/settings.json` pins as project authority: `cliVersion` records the CLI version that last wrote accepted project assets; `baselineVersion` records the scaffold baseline version last written.
|
|
94
|
+
|
|
95
|
+
If `dp check` warns about CLI or baseline drift before work starts, summarize relevant changelog lines, ask whether to remediate before proceeding, and do not silently continue on stale guidance.
|
|
96
|
+
|
|
97
|
+
When user accepts remediation, run it in a subagent: `dp upgrade` for CLI drift, `dp update --write` or `dp update --yes` for scaffold/baseline drift. Parent agent reviews the diff and resumes only after worker result is reconciled.
|
|
98
|
+
|
|
84
99
|
## Update
|
|
85
100
|
|
|
86
|
-
After `dp update`, inspect `.devpunks/scaffold-manifest.json` and the update summary.
|
|
101
|
+
After `dp update` or `dp update --check`, inspect `.devpunks/scaffold-manifest.json` and the update summary.
|
|
87
102
|
|
|
88
103
|
- `--check` reports managed-file drift without writing.
|
|
89
104
|
- `--write` refreshes scaffold-managed assets.
|
|
90
105
|
- `--yes` refreshes scaffold-managed assets without prompting and is the non-interactive apply flag.
|
|
106
|
+
- drift output can include changelog summaries; use them to explain why update/upgrade matters.
|
|
91
107
|
- pack drift is a setup decision point, not a silent auto-fix.
|
|
92
108
|
|
|
109
|
+
Apply the same pre-existing skill policy after update: the command does not detect overlap, the agent checks `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, `.opencode/skills`, and `.devpunks/pre-existing-skills` when present, exact name/id overlap keeps HI baseline active, non-overlaps remain mirrored, and `dp report` carries semantic overlap or baseline integration proposals.
|
|
110
|
+
|
|
93
111
|
## Report
|
|
94
112
|
|
|
95
113
|
Use `dp report` when reusable Harness friction should enter maintainer triage: stale generated guidance, confusing CLI output, missing docs, broken setup, or shared tooling issues.
|
|
@@ -2,45 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
## `dp scaffold setup`
|
|
4
4
|
|
|
5
|
-
Use
|
|
5
|
+
Use repo-aware full scaffold setup. It detects package manifests, resolves packs, writes `.agents/`, harness files, selected skills, prompt specs, lint specs, subagent specs, required tools metadata, and `.devpunks/scaffold-manifest.json`.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Setup does not finish all repo-specific authoring. The next agent must use `.devpunks/AGENT-SYSTEM-PROMPT.md` and `.devpunks/specs/**` to generate final scoped guidance and reconcile assets.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Use `dp scaffold setup --yes` in non-interactive harnesses. It accepts the resolved default pack selection and skips pack-selection prompts. It does not select optional packs.
|
|
9
|
+
Use `dp scaffold setup --yes` in non-interactive harnesses. It accepts the resolved default pack selection, skips pack-selection prompts, and does not select optional packs.
|
|
12
10
|
|
|
13
11
|
## `dp scaffold init`
|
|
14
12
|
|
|
15
|
-
Use before boilerplate exists.
|
|
13
|
+
Use before boilerplate exists. It scaffolds `requirements-grill`, `write-backlog`, an initial wiki tree, then prints an operator prompt. Follow that prompt before moving to repo-aware setup. If the generated wiki root does not match the repository layout, move or refactor it before writing specs, plans, or routed docs. Monorepos usually use `apps/wiki`; single-repo layouts usually use `wiki`.
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
After init, the agent must reconcile pre-existing skills. The command does not detect overlap. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, `.opencode/skills`, and `.devpunks/pre-existing-skills` when present. Exact name/id overlap keeps HI baseline active, non-overlaps stay exposed through mirrors or symlinks, and `dp report` carries semantic overlap or baseline integration proposals.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
## `dp check`
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
Use at session start when `.devpunks/` exists. It is a read-only drift gate for CLI version, scaffold baseline, managed files, and pack selection.
|
|
20
|
+
|
|
21
|
+
It reads `.devpunks/settings.json` pins: `cliVersion` is the CLI version that last wrote accepted project assets; `baselineVersion` is the scaffold baseline version last written.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
It reports drift warnings and relevant changelog summaries before work starts. If remediation is accepted, use a subagent: `dp upgrade` for CLI drift, `dp update --write` or `dp update --yes` for scaffold/baseline drift.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
## `dp update --check`
|
|
26
|
+
|
|
27
|
+
Use to preview managed scaffold drift from `.devpunks/scaffold-manifest.json`. Report CLI, baseline, missing, changed, and pack-drift findings. Do not write files.
|
|
26
28
|
|
|
27
29
|
## `dp update --write`
|
|
28
30
|
|
|
29
|
-
Use to refresh scaffold-managed files recorded in `.devpunks/scaffold-manifest.json`.
|
|
31
|
+
Use to refresh scaffold-managed files recorded in `.devpunks/scaffold-manifest.json`. After writing, verify refreshed files still fit repo shape and any baseline pack drift was handled intentionally.
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
Also run the agent-owned pre-existing skill reconciliation check. `dp update` does not detect overlaps.
|
|
32
34
|
|
|
33
35
|
## `dp update --yes`
|
|
34
36
|
|
|
35
|
-
Use in non-interactive harnesses to apply managed scaffold updates without answering
|
|
36
|
-
|
|
37
|
-
It has the same managed-file apply behavior as `--write`.
|
|
37
|
+
Use in non-interactive harnesses to apply managed scaffold updates without answering a terminal confirmation prompt. It has the same managed-file apply behavior as `--write`.
|
|
38
38
|
|
|
39
39
|
## `dp report`
|
|
40
40
|
|
|
41
41
|
Use to open reusable Harness friction in the Harness Intelligence GitHub repository. Include `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, and `--steps` whenever they apply so labels and issue body are useful for backoffice triage.
|
|
42
42
|
|
|
43
|
-
Reports are
|
|
43
|
+
Reports are shared Harness/docs/tooling/workflow issues, not the default path for project product backlog.
|
|
44
44
|
|
|
45
45
|
Useful classification flags:
|
|
46
46
|
|
|
@@ -54,13 +54,13 @@ Useful classification flags:
|
|
|
54
54
|
- `--steps <text>`
|
|
55
55
|
- `--labels <comma-separated-labels>`
|
|
56
56
|
|
|
57
|
-
The report path is GitHub-backed.
|
|
57
|
+
The report path is GitHub-backed. CLI submits typed context to the Harness API; the API creates or dedupes an issue with `harness-report` metadata labels; then CLI emits report-submitted telemetry only after the API returns a GitHub issue URL. Backoffice reads GitHub issues for report triage.
|
|
58
58
|
|
|
59
59
|
## `dp upgrade`
|
|
60
60
|
|
|
61
|
-
Use to update the installed CLI executable through
|
|
61
|
+
Use to update the installed CLI executable through the original global package-manager path. The command checks the selected npm dist-tag, detects the Bun, pnpm, npm, or Yarn current install path, then runs the corresponding global reinstall command.
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
Use `--tag next` for prerelease channels, `--force` to reinstall the selected tag, and `--json` when automation needs structured output.
|
|
64
64
|
|
|
65
65
|
`dp upgrade` bypasses minimum-release-age gates for the CLI package:
|
|
66
66
|
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Read Order
|
|
4
4
|
|
|
5
|
-
When `.devpunks/` exists, read in
|
|
5
|
+
When `.devpunks/` exists, read in order:
|
|
6
6
|
|
|
7
7
|
1. `.devpunks/AGENT-SYSTEM-PROMPT.md`
|
|
8
8
|
2. `.devpunks/AGENT-HANDOFF.md`
|
|
9
9
|
3. `.devpunks/scaffold-manifest.json`
|
|
10
10
|
4. `.devpunks/required-tools.json`
|
|
11
|
-
5. `.devpunks/
|
|
11
|
+
5. `.devpunks/settings.json`
|
|
12
|
+
6. `.devpunks/specs/**`
|
|
12
13
|
|
|
13
14
|
If a file is missing, continue with the next available artifact and say what was missing.
|
|
14
15
|
|
|
@@ -16,11 +17,12 @@ If a file is missing, continue with the next available artifact and say what was
|
|
|
16
17
|
|
|
17
18
|
- `.devpunks/AGENT-SYSTEM-PROMPT.md`: paste-ready instructions for the next agent.
|
|
18
19
|
- `.devpunks/AGENT-HANDOFF.md`: human-readable scaffold summary and required follow-up.
|
|
19
|
-
- `.devpunks/scaffold-manifest.json`: source of truth for managed
|
|
20
|
+
- `.devpunks/scaffold-manifest.json`: source of truth for managed file update behavior.
|
|
20
21
|
- `.devpunks/required-tools.json`: tools implied by selected skills.
|
|
21
22
|
- `.devpunks/specs/prompts/**`: instructions for final prompt files, not final prompt bodies.
|
|
22
23
|
- `.devpunks/specs/lint/**`: lint asset selection and starter config guidance.
|
|
23
24
|
- `.devpunks/specs/subagents/**`: desired subagent manifest shape.
|
|
25
|
+
- `.devpunks/settings.json`: project-local `cliVersion` and `baselineVersion` pins from the last accepted scaffold-writing command.
|
|
24
26
|
|
|
25
27
|
## Required Follow-Through
|
|
26
28
|
|
|
@@ -28,35 +30,51 @@ After `dp scaffold setup`:
|
|
|
28
30
|
|
|
29
31
|
- Generate final root/docs/workspace `AGENTS.md` files from prompt specs.
|
|
30
32
|
- Reconcile any scaffolded wiki root with the real repo layout before writing durable docs.
|
|
31
|
-
-
|
|
33
|
+
- Reconcile pre-existing skills yourself; commands do not detect overlap. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence.
|
|
34
|
+
- Exact canonical directory id/name overlap keeps the HI baseline skill active. Archive local evidence under `.devpunks/replaced-skills/<skill-id>/...`, then remove active local copies or mirrors.
|
|
35
|
+
- Preserve non-overlapping local skills and expose them through harness mirrors or symlinks. Use `dp report` when archived local knowledge should be proposed for HI baseline integration; semantic overlap belongs there.
|
|
36
|
+
- Create sibling `CLAUDE.md` symlink mirrors for neutral prompt files.
|
|
32
37
|
- Keep `.agents/AGENTS.md` as the shared global prompt source.
|
|
33
38
|
- Keep `.agents/skills/` as the main skill directory; only `.claude/skills` mirrors it.
|
|
34
|
-
- Reconcile `.agents/subagents/manifest.mjs` with
|
|
35
|
-
-
|
|
36
|
-
- Ask before replacing existing lint/format tooling with Oxlint/Oxfmt. If approved, update scripts, CI/task pipelines, hooks, and docs together.
|
|
37
|
-
- Ask which detected core libraries to inspect when source context is broad; then use `opensrc path <package>` or `opensrc path owner/repo` for only the chosen set.
|
|
39
|
+
- Reconcile `.agents/subagents/manifest.mjs` with `.agents/subagents/manifest.prompt.md` and `.devpunks/specs/subagents/manifest-spec.json`.
|
|
40
|
+
- Do not stop after saying the files exist.
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
After `dp check`:
|
|
43
|
+
|
|
44
|
+
- Treat output as a read-only session-start gate.
|
|
45
|
+
- If CLI or baseline drift is found, summarize relevant changelog lines before doing project work.
|
|
46
|
+
- Ask whether to remediate now. If accepted, mandatory remediation runs in a subagent.
|
|
47
|
+
- Use `dp upgrade` for CLI drift.
|
|
48
|
+
- Use `dp update --write` or `dp update --yes` for scaffold/baseline drift.
|
|
49
|
+
- Parent reviews refreshed files, settings pins, and changelog summary before continuing.
|
|
50
|
+
|
|
51
|
+
After `dp update --check` or `dp update`:
|
|
52
|
+
|
|
53
|
+
- Inspect `.devpunks/scaffold-manifest.json` and `.devpunks/settings.json`.
|
|
54
|
+
- For write modes, confirm `cliVersion` and `baselineVersion` reflect accepted project authority after writes.
|
|
55
|
+
- Verify refreshed files still fit repo shape; handle pack drift intentionally.
|
|
56
|
+
- Apply the same pre-existing skill reconciliation policy as scaffold setup. `dp update` does not detect overlaps; the agent checks the skill homes and `.devpunks/pre-existing-skills` when present, keeps HI baseline active for exact name/id overlaps, preserves non-overlaps through mirrors, and uses `dp report` for semantic overlap or baseline integration proposals.
|
|
40
57
|
|
|
41
58
|
After `dp scaffold init`:
|
|
42
59
|
|
|
43
60
|
- Do not start requirements discovery by default.
|
|
44
61
|
- Inspect the generated skills and seeded wiki root.
|
|
62
|
+
- Reconcile pre-existing skills yourself using `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`; inspect `.devpunks/pre-existing-skills` when present; the command did not detect overlap.
|
|
45
63
|
- Treat the seeded wiki root as provisional until it matches the repo layout.
|
|
46
64
|
- Move, rename, or refactor generated init output when needed so it matches the actual repository.
|
|
47
|
-
- Run `requirements-grill` before `write-backlog` only when the user actually asks for requirements
|
|
65
|
+
- Run `requirements-grill` before `write-backlog` only when the user actually asks for requirements/backlog generation.
|
|
48
66
|
- Use `dp scaffold setup` only after the repo is ready for repo-aware setup.
|
|
49
67
|
|
|
50
68
|
After `dp report`:
|
|
51
69
|
|
|
52
70
|
- Confirm the command created a GitHub issue URL before saying the report was submitted.
|
|
53
|
-
- Include
|
|
71
|
+
- Include issue URL, labels, affected command, affected skill pack, and any remaining blocker if creation failed.
|
|
54
72
|
- Do not duplicate project product backlog into Harness reports unless maintainers explicitly promote it.
|
|
55
73
|
|
|
56
74
|
After `dp upgrade`:
|
|
57
75
|
|
|
58
|
-
- Report whether
|
|
59
|
-
- Include the package manager
|
|
76
|
+
- Report whether CLI upgraded, was already current, could not detect install manager, or failed while running the package-manager command.
|
|
77
|
+
- Include the package manager command used when available.
|
|
60
78
|
- If upgrade failed because registry lookup or install-manager detection failed, give the manual reinstall command for Bun, pnpm, npm, or Yarn rather than treating the repo as broken.
|
|
61
79
|
|
|
62
80
|
## Reporting
|
|
@@ -64,7 +82,7 @@ After `dp upgrade`:
|
|
|
64
82
|
Final reports should say:
|
|
65
83
|
|
|
66
84
|
- what artifacts were consumed
|
|
67
|
-
-
|
|
85
|
+
- final files authored or reconciled
|
|
68
86
|
- report issue URL or upgrade command/result, when relevant
|
|
69
87
|
- what validation ran
|
|
70
88
|
- what remains unresolved, if anything
|