@punks/cli 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dp-cli
3
- description: Operates the Devpunks `dp` CLI and interactively follows scaffold, update, report, and post-command handoff artifacts through to completion. Use when a repo contains `.devpunks/` output, when the user mentions `dp scaffold`, `dp update`, `dp report`, Devpunks CLI setup, or asks what to do after running a `dp` command.
3
+ description: Operates the Devpunks `dp` CLI and interactively follows scaffold, update, report, upgrade, and post-command handoff artifacts through to completion. Use when a repo contains `.devpunks/` output, when the user mentions `dp scaffold`, `dp update`, `dp report`, `dp upgrade`, Devpunks CLI setup, or asks what to do after running a `dp` command.
4
4
  metadata: {"Devpunks":{"entrypoint":true}}
5
5
  ---
6
6
 
@@ -12,10 +12,13 @@ The `dp` CLI scaffolds Devpunks agent assets and writes follow-up instructions f
12
12
 
13
13
  ```bash
14
14
  dp scaffold setup
15
+ dp scaffold setup --yes
15
16
  dp scaffold init
16
17
  dp update --check
17
18
  dp update --write
19
+ dp update --yes
18
20
  dp report --help
21
+ dp upgrade --help
19
22
  ```
20
23
 
21
24
  After any command, read the command output and generated artifacts before acting.
@@ -72,6 +75,8 @@ Then author or reconcile the final repo files requested by the specs, including
72
75
 
73
76
  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.
74
77
 
78
+ 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
+
75
80
  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.
76
81
 
77
82
  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.
@@ -82,13 +87,33 @@ After `dp update`, inspect `.devpunks/scaffold-manifest.json` and the update sum
82
87
 
83
88
  - `--check` reports managed-file drift without writing.
84
89
  - `--write` refreshes scaffold-managed assets.
90
+ - `--yes` refreshes scaffold-managed assets without prompting and is the non-interactive apply flag.
85
91
  - pack drift is a setup decision point, not a silent auto-fix.
86
92
 
87
93
  ## Report
88
94
 
89
95
  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.
90
96
 
91
- Do not use reports as the default destination for project product backlog. `dp report` opens GitHub issues in `wearedevpunks/harness-intelligence`; pass `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, and `--steps` so maintainers can triage the issue from GitHub/backoffice without replaying the whole session.
97
+ Do not use reports as the default destination for project product backlog. `dp report` opens GitHub issues in `wearedevpunks/harness-intelligence`; pass `--type`, `--severity`, `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, `--steps`, and `--labels` so maintainers can triage the issue from GitHub/backoffice without replaying the whole session.
98
+
99
+ Reports are GitHub-backed. Backoffice fetches `harness-report` issues from GitHub and treats GitHub state/labels as the triage source of truth. Legacy API-persisted reports are migration/local-smoke context only.
100
+
101
+ `dp report` emits product telemetry only after the GitHub issue is created. If issue creation fails, do not claim the report was submitted; capture the blocker and suggest the exact GitHub auth/config missing.
102
+
103
+ ## Upgrade
104
+
105
+ Use `dp upgrade` to update the CLI executable itself. It checks the selected npm dist-tag, detects whether the current global install came from Bun, pnpm, npm, or Yarn, and runs the matching global reinstall command.
106
+
107
+ Use `--tag next` for prerelease channels and `--force` to reinstall the selected tag even when no newer version is detected.
108
+
109
+ Upgrade deliberately bypasses package-manager release-age gates for the CLI package so just-published releases can install immediately:
110
+
111
+ - Bun: `bun add -g @punks/cli@<tag> --minimum-release-age=0`
112
+ - npm: `npm install -g @punks/cli@<tag> --min-release-age=0`
113
+ - pnpm: `npm_config_minimum_release_age=0 pnpm add -g @punks/cli@<tag>`
114
+ - Yarn: `YARN_NPM_MINIMAL_AGE_GATE=0 yarn global add @punks/cli@<tag>`
115
+
116
+ Startup update checks are advisory and detached. They should not mutate installs during normal command startup; `dp upgrade` is the explicit update path.
92
117
 
93
118
  ## Completion Checklist
94
119
 
@@ -8,6 +8,8 @@ It detects package manifests, resolves packs, writes `.agents/`, harness files,
8
8
 
9
9
  It 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.
10
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.
12
+
11
13
  ## `dp scaffold init`
12
14
 
13
15
  Use before boilerplate exists.
@@ -28,8 +30,41 @@ Use to refresh scaffold-managed files recorded in `.devpunks/scaffold-manifest.j
28
30
 
29
31
  After writing, verify the refreshed files still fit the repo shape and any pack drift is handled intentionally.
30
32
 
33
+ ## `dp update --yes`
34
+
35
+ Use in non-interactive harnesses to apply managed scaffold updates without answering the terminal confirmation prompt.
36
+
37
+ It has the same managed-file apply behavior as `--write`.
38
+
31
39
  ## `dp report`
32
40
 
33
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.
34
42
 
35
43
  Reports are for shared Harness/docs/tooling/workflow issues, not the default path for project product backlog.
44
+
45
+ Useful classification flags:
46
+
47
+ - `--type bug|docs|workflow|tooling|other`
48
+ - `--severity low|medium|high`
49
+ - `--area cli|wiki|skill|docs|workflow|backoffice|other`
50
+ - `--skill-pack <name>`
51
+ - `--command <command>`
52
+ - `--expected <text>`
53
+ - `--actual <text>`
54
+ - `--steps <text>`
55
+ - `--labels <comma-separated-labels>`
56
+
57
+ The report path is GitHub-backed. The CLI creates an issue with `harness-report` metadata and labels, then emits report-submitted telemetry only after issue creation succeeds. Backoffice reads GitHub issues for report triage.
58
+
59
+ ## `dp upgrade`
60
+
61
+ Use to update the installed CLI executable through its original global package-manager path.
62
+
63
+ The command checks the selected npm dist-tag, detects Bun, pnpm, npm, or Yarn from the current install path, and runs the corresponding global reinstall command. Use `--tag next` for prerelease channels, `--force` to reinstall the selected tag, and `--json` when automation needs structured output.
64
+
65
+ `dp upgrade` bypasses minimum-release-age gates for the CLI package:
66
+
67
+ - Bun uses `--minimum-release-age=0`.
68
+ - npm uses `--min-release-age=0`.
69
+ - pnpm uses `npm_config_minimum_release_age=0`.
70
+ - Yarn uses `YARN_NPM_MINIMAL_AGE_GATE=0`.
@@ -40,15 +40,31 @@ Do not stop after saying the files exist.
40
40
 
41
41
  After `dp scaffold init`:
42
42
 
43
- - Run `requirements-grill` before `write-backlog`.
43
+ - Do not start requirements discovery by default.
44
+ - Inspect the generated skills and seeded wiki root.
44
45
  - Treat the seeded wiki root as provisional until it matches the repo layout.
46
+ - 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 or backlog generation.
45
48
  - Use `dp scaffold setup` only after the repo is ready for repo-aware setup.
46
49
 
50
+ After `dp report`:
51
+
52
+ - Confirm the command created a GitHub issue URL before saying the report was submitted.
53
+ - Include the issue URL, labels, affected command, affected skill pack, and remaining blocker if creation failed.
54
+ - Do not duplicate project product backlog into Harness reports unless maintainers explicitly promote it.
55
+
56
+ After `dp upgrade`:
57
+
58
+ - Report whether the CLI upgraded, was already current, could not detect the install manager, or failed while running the package-manager command.
59
+ - Include the package manager and command used when available.
60
+ - 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
+
47
62
  ## Reporting
48
63
 
49
64
  Final reports should say:
50
65
 
51
66
  - what artifacts were consumed
52
67
  - what final files were authored or reconciled
68
+ - report issue URL or upgrade command/result, when relevant
53
69
  - what validation ran
54
70
  - what remains unresolved, if anything
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Harness Intelligence scaffolding CLI",
5
5
  "bin": {
6
6
  "devpunks": "dist/index.js",