@punks/cli 2.1.2 → 2.1.3

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 CHANGED
@@ -13,7 +13,7 @@ At runtime, scaffold content resolves from the latest stable GitHub release base
13
13
  - `punks scaffold init`
14
14
  scaffold requirements/backlog skills and seed the initial wiki tree
15
15
  - `punks scaffold setup`
16
- detect the target repo, confirm pack selection, and write repo-aware scaffold output
16
+ detect the target repo, confirm or auto-accept pack selection, and write repo-aware scaffold output
17
17
  - `punks report`
18
18
  submit structured Harness friction for maintainer triage
19
19
 
@@ -23,8 +23,10 @@ At runtime, scaffold content resolves from the latest stable GitHub release base
23
23
  punks scaffold
24
24
  punks scaffold init
25
25
  punks scaffold setup
26
+ punks scaffold setup --yes
26
27
  punks scaffold setup -i /path/to/repo
27
28
  punks scaffold setup -i /path/to/repo -o /path/to/output
29
+ punks update --yes
28
30
  punks report --help
29
31
  bun run sync:skills
30
32
  bun run baseline:build
@@ -32,9 +34,11 @@ bun run baseline:build
32
34
 
33
35
  `bun run sync:skills` updates a local cache clone of `wearedevpunks/skills` and then replaces only `skills/`, overwriting any local changes there.
34
36
 
35
- `punks scaffold init` copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, and then prints the fixed operator prompt for the requirements gate. Agents should activate `$dp-cli` and reconcile that wiki root with the real repo layout before writing durable docs.
37
+ `punks scaffold init` copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, and then prints a fixed post-command prompt. Agents should activate `$dp-cli`, reconcile generated init output with the real repo layout, and only start requirements/backlog generation when the user asks for that workflow.
36
38
 
37
- `punks scaffold setup` scans the target repo from `cwd` or `-i`, resolves the active scaffold baseline, writes scaffold output into the scan root or `-o`, copies the selected baseline skills, resolves pack-owned lint assets into `.devpunks/specs/lint/`, and ensures required global tool prerequisites for those skills.
39
+ `punks scaffold setup` scans the target repo from `cwd` or `-i`, resolves the active scaffold baseline, writes scaffold output into the scan root or `-o`, copies the selected baseline skills, resolves pack-owned lint assets into `.devpunks/specs/lint/`, and ensures required global tool prerequisites for those skills. Use `--yes` in non-interactive harnesses to accept the resolved default pack selection without prompts.
40
+
41
+ `punks update --yes` applies managed scaffold updates without prompting. It is the non-interactive alias for the apply behavior of `--write`.
38
42
 
39
43
  `punks report` opens a GitHub issue in `wearedevpunks/harness-intelligence` for reusable Harness docs, workflow, tooling, CLI, skill-pack, or wiki friction. It uses `gh auth token`, `GH_TOKEN`, or `GITHUB_TOKEN` for GitHub auth and applies report labels such as `harness-report`, `area:wiki`, `surface:cli`, `pack:dp-cli`, and `command:dp-report`.
40
44
 
package/dist/index.js CHANGED
@@ -52291,11 +52291,14 @@ class ObservedRepositorySummary extends exports_Schema.Class("ObservedRepository
52291
52291
  class ProjectUsageEventSummary extends exports_Schema.Class("ProjectUsageEventSummary")({
52292
52292
  id: exports_Schema.String,
52293
52293
  eventId: exports_Schema.String,
52294
- name: ProductTelemetryEventName,
52295
- source: TelemetrySource,
52294
+ name: exports_Schema.String,
52295
+ source: exports_Schema.String,
52296
52296
  counted: exports_Schema.Boolean,
52297
52297
  cliVersion: exports_Schema.String,
52298
- baseline: exports_Schema.optional(TelemetryBaselineContext),
52298
+ baseline: exports_Schema.optional(exports_Schema.Struct({
52299
+ channel: exports_Schema.optional(exports_Schema.String),
52300
+ version: exports_Schema.optional(exports_Schema.String)
52301
+ })),
52299
52302
  occurredAt: IsoDateTimeString,
52300
52303
  operator: exports_Schema.optional(BackofficeOperatorSummary)
52301
52304
  }) {
@@ -52307,9 +52310,9 @@ class HarnessReportSummary extends exports_Schema.Class("HarnessReportSummary")(
52307
52310
  observedRepositoryId: exports_Schema.optional(exports_Schema.String),
52308
52311
  title: exports_Schema.String,
52309
52312
  body: exports_Schema.optional(exports_Schema.String),
52310
- type: HarnessReportType,
52311
- severity: HarnessReportSeverity,
52312
- status: HarnessReportStatus,
52313
+ type: exports_Schema.String,
52314
+ severity: exports_Schema.String,
52315
+ status: exports_Schema.String,
52313
52316
  githubUrl: exports_Schema.optional(exports_Schema.String),
52314
52317
  createdAt: IsoDateTimeString,
52315
52318
  updatedAt: IsoDateTimeString,
@@ -52324,7 +52327,7 @@ class ProjectUsageSummary extends exports_Schema.Class("ProjectUsageSummary")({
52324
52327
  countedEventCount: exports_Schema.Number,
52325
52328
  openReportCount: exports_Schema.Number,
52326
52329
  latestCliVersion: exports_Schema.optional(exports_Schema.String),
52327
- latestBaselineChannel: exports_Schema.optional(BaselineChannel),
52330
+ latestBaselineChannel: exports_Schema.optional(exports_Schema.String),
52328
52331
  latestBaselineVersion: exports_Schema.optional(exports_Schema.String),
52329
52332
  lastActivityAt: exports_Schema.optional(IsoDateTimeString),
52330
52333
  initializedBy: exports_Schema.optional(BackofficeOperatorSummary),
@@ -52402,7 +52405,7 @@ var recordProductTelemetryEvent = (options9) => exports_Effect.gen(function* ()
52402
52405
 
52403
52406
  // package.json
52404
52407
  var name = "@punks/cli";
52405
- var version = "2.1.2";
52408
+ var version = "2.1.3";
52406
52409
  // src/telemetry/product.ts
52407
52410
  var git = (cwd, args2) => {
52408
52411
  try {
@@ -56555,7 +56558,8 @@ var runScaffold = ({
56555
56558
  prompt: prompt4,
56556
56559
  outputDirectory,
56557
56560
  ensureTools = true,
56558
- baseline = bundledBaseline
56561
+ baseline = bundledBaseline,
56562
+ assumeYes = false
56559
56563
  }) => exports_Effect.gen(function* () {
56560
56564
  const baseRequiredTools = requiredToolsForSkills([], baseline);
56561
56565
  let toolBootstrapStatuses = [];
@@ -56591,7 +56595,11 @@ var runScaffold = ({
56591
56595
  let additions = [];
56592
56596
  let removals = [];
56593
56597
  let finalPacks = resolved.preselectedPacks;
56594
- while (true) {
56598
+ if (assumeYes) {
56599
+ yield* prompt4.writeLine("");
56600
+ yield* prompt4.writeLine(renderHint("Non-interactive mode: accepting prefilled pack selection."));
56601
+ }
56602
+ while (!assumeYes) {
56595
56603
  const shouldKeepPrefilledSelection = (yield* prompt4.readLine(renderQuestion("Keep the prefilled pack selection as-is? [Y/n]: "))).trim().toLowerCase();
56596
56604
  const shouldEditSelection = !yesValues.has(shouldKeepPrefilledSelection);
56597
56605
  additions = shouldEditSelection ? resolved.optionalPacks.length === 0 ? [] : yield* promptForPackMultiSelect(prompt4, {
@@ -57533,15 +57541,7 @@ var stageScaffoldCatalog = [
57533
57541
  wikiRoot
57534
57542
  }) => `You are the operator agent continuing a \`punks scaffold init\` run.
57535
57543
 
57536
- Use the scaffolded skills now available under \`.agents/skills/\` to run the canonical requirements-to-backlog flow.
57537
-
57538
- Goals:
57539
- - use \`requirements-grill\` to pin down the project idea, requirements, and open branches
57540
- - use \`write-backlog\` only after the grill handoff says the requirements grill is done
57541
-
57542
- Required skills:
57543
- - \`requirements-grill\`
57544
- - \`write-backlog\`
57544
+ Do not start requirements discovery by default. First reconcile the generated output with this repository.
57545
57545
 
57546
57546
  Scaffolded wiki base:
57547
57547
  - treat \`${wikiRoot}\` as the dedicated wiki root for specs, raw inputs, routed project docs, and ingest bookkeeping
@@ -57550,17 +57550,18 @@ Scaffolded wiki base:
57550
57550
  - if the CLI guessed the wrong root, move or refactor the scaffolded wiki before creating specs, plans, or ingesting domain knowledge
57551
57551
  - keep using the reconciled wiki root when later steps create specs, plans, or ingest domain knowledge
57552
57552
 
57553
- Execution order:
57554
- 1. Start with \`requirements-grill\` and run the requirements grill session.
57555
- 2. Follow the skill's artifact and wiki-synthesis guidance.
57556
- 3. Run \`write-backlog\` only after the grill gate is closed.
57557
- 4. Use \`punks scaffold setup\` only after the repo shape is ready for repo-aware AI setup.
57553
+ Generated skills:
57554
+ - \`.agents/skills/requirements-grill\`
57555
+ - \`.agents/skills/write-backlog\`
57558
57556
 
57559
- Gate:
57560
- - do not create backlog items while active requirement branches remain unresolved
57561
- - treat this as the canonical step before backlog creation
57557
+ Post-command guidance:
57558
+ 1. Read the repository guidance and inspect the generated files.
57559
+ 2. Move, rename, or refactor the generated wiki and skill output when needed so it matches the actual repo layout.
57560
+ 3. Report what changed and what remains unresolved.
57561
+ 4. Use \`requirements-grill\` and then \`write-backlog\` only when the user actually asks for requirements or backlog generation.
57562
+ 5. Use \`punks scaffold setup\` only after the repo shape is ready for repo-aware AI setup.
57562
57563
 
57563
- When this gate is complete, the next CLI step is:
57564
+ When the generated init output matches the repo, the next CLI step is:
57564
57565
  - \`punks scaffold setup\``
57565
57566
  }
57566
57567
  ];
@@ -57754,6 +57755,7 @@ var jsonOption2 = exports_Options.boolean("json").pipe(exports_Options.withDescr
57754
57755
  var repoShapeOption = exports_Options.optional(exports_Options.choice("repo-shape", ["auto", "monorepo", "single"]).pipe(exports_Options.withDescription("Override repo shape detection. Use 'monorepo' or 'single' when auto-detection is not the desired scaffold mode.")));
57755
57756
  var baselineOption = exports_Options.optional(exports_Options.choice("baseline", ["stable", "bundled"]).pipe(exports_Options.withDescription("Scaffold baseline to use. Defaults to latest stable remote baseline with bundled fallback.")));
57756
57757
  var refreshBaselineOption = exports_Options.boolean("refresh-baseline").pipe(exports_Options.withDescription("Refetch the stable baseline instead of reusing the local cache."));
57758
+ var yesOption = exports_Options.boolean("yes").pipe(exports_Options.withDescription("Run non-interactively and accept the resolved default scaffold selection."));
57757
57759
  var stageCommand = (id2, description) => exports_Command.make(id2, { output: outputOption, baseline: baselineOption, refreshBaseline: refreshBaselineOption }, ({ output: output2, baseline, refreshBaseline }) => exports_Effect.scoped(exports_Effect.gen(function* () {
57758
57760
  const prompt4 = yield* PromptLive;
57759
57761
  const outputDirectory = path12.resolve(process.cwd(), getOrElse(output2, () => "."));
@@ -57771,8 +57773,9 @@ var setupCommand = exports_Command.make("setup", {
57771
57773
  json: jsonOption2,
57772
57774
  repoShape: repoShapeOption,
57773
57775
  baseline: baselineOption,
57774
- refreshBaseline: refreshBaselineOption
57775
- }, ({ input: input2, output: output2, json: json2, repoShape, baseline, refreshBaseline }) => exports_Effect.scoped(exports_Effect.gen(function* () {
57776
+ refreshBaseline: refreshBaselineOption,
57777
+ yes: yesOption
57778
+ }, ({ input: input2, output: output2, json: json2, repoShape, baseline, refreshBaseline, yes }) => exports_Effect.scoped(exports_Effect.gen(function* () {
57776
57779
  const prompt4 = yield* PromptLive;
57777
57780
  const scanDirectory = path12.resolve(process.cwd(), getOrElse(input2, () => "."));
57778
57781
  const resolvedBaseline = yield* exports_Effect.promise(() => resolveBaseline(baselineResolveOptions(baseline, refreshBaseline, scanDirectory)));
@@ -57784,13 +57787,15 @@ var setupCommand = exports_Command.make("setup", {
57784
57787
  prompt: prompt4,
57785
57788
  outputDirectory: outputDirectory.value,
57786
57789
  repoShapeMode: resolvedRepoShape,
57787
- baseline: resolvedBaseline
57790
+ baseline: resolvedBaseline,
57791
+ assumeYes: yes
57788
57792
  } : {
57789
57793
  scanDirectory,
57790
57794
  emitJson: json2,
57791
57795
  prompt: prompt4,
57792
57796
  repoShapeMode: resolvedRepoShape,
57793
- baseline: resolvedBaseline
57797
+ baseline: resolvedBaseline,
57798
+ assumeYes: yes
57794
57799
  });
57795
57800
  }).pipe(exports_Effect.catchTag("CliValidationError", (error4) => exports_Effect.sync(() => {
57796
57801
  console.log(renderHint(error4.message));
@@ -58895,6 +58900,7 @@ var runUpdate = ({
58895
58900
  prompt: prompt4,
58896
58901
  check: check2 = false,
58897
58902
  write: write4 = false,
58903
+ yes = false,
58898
58904
  emitJson = false,
58899
58905
  ensureTools = true,
58900
58906
  baseline = bundledBaseline
@@ -58990,7 +58996,7 @@ var runUpdate = ({
58990
58996
  ].join(`
58991
58997
  `)));
58992
58998
  }
58993
- const shouldApply = write4 ? true : check2 || !hasManagedUpdates ? false : yesValues2.has((yield* prompt4.readLine(renderQuestion("Apply managed scaffold updates? [Y/n]: "))).trim().toLowerCase());
58999
+ const shouldApply = write4 || yes ? true : check2 || !hasManagedUpdates ? false : yesValues2.has((yield* prompt4.readLine(renderQuestion("Apply managed scaffold updates? [Y/n]: "))).trim().toLowerCase());
58994
59000
  let toolBootstrapStatuses = [];
58995
59001
  if (shouldApply && ensureTools) {
58996
59002
  const requiredTools = requiredToolsForSkills(selectedSkills3(finalPacks, baseline), baseline);
@@ -59066,6 +59072,7 @@ var runUpdate = ({
59066
59072
  var inputOption2 = exports_Options.optional(exports_Options.text("input").pipe(exports_Options.withAlias("i"), exports_Options.withDescription("Scaffolded repository root to update. Defaults to the current working directory.")));
59067
59073
  var checkOption = exports_Options.boolean("check").pipe(exports_Options.withDescription("Preview managed scaffold updates, write nothing, and exit nonzero when updates are available."));
59068
59074
  var writeOption = exports_Options.boolean("write").pipe(exports_Options.withDescription("Apply managed scaffold updates without asking for confirmation."));
59075
+ var yesOption2 = exports_Options.boolean("yes").pipe(exports_Options.withDescription("Apply managed scaffold updates without asking for confirmation."));
59069
59076
  var jsonOption3 = exports_Options.boolean("json").pipe(exports_Options.withDescription("Print the machine-readable update payload to stdout."));
59070
59077
  var baselineOption2 = exports_Options.optional(exports_Options.choice("baseline", ["stable", "bundled"]).pipe(exports_Options.withDescription("Scaffold baseline to use. Defaults to latest stable remote baseline with bundled fallback.")));
59071
59078
  var refreshBaselineOption2 = exports_Options.boolean("refresh-baseline").pipe(exports_Options.withDescription("Refetch the stable baseline instead of reusing the local cache."));
@@ -59073,10 +59080,11 @@ var updateCommand = exports_Command.make("update", {
59073
59080
  input: inputOption2,
59074
59081
  check: checkOption,
59075
59082
  write: writeOption,
59083
+ yes: yesOption2,
59076
59084
  json: jsonOption3,
59077
59085
  baseline: baselineOption2,
59078
59086
  refreshBaseline: refreshBaselineOption2
59079
- }, ({ input: input2, check: check2, write: write4, json: json2, baseline, refreshBaseline }) => exports_Effect.scoped(exports_Effect.gen(function* () {
59087
+ }, ({ input: input2, check: check2, write: write4, yes, json: json2, baseline, refreshBaseline }) => exports_Effect.scoped(exports_Effect.gen(function* () {
59080
59088
  const prompt4 = yield* PromptLive;
59081
59089
  const rootDirectory = path14.resolve(process.cwd(), getOrElse(input2, () => "."));
59082
59090
  const resolvedBaseline = yield* exports_Effect.promise(() => resolveBaseline(baselineResolveOptions(baseline, refreshBaseline, rootDirectory)));
@@ -59085,6 +59093,7 @@ var updateCommand = exports_Command.make("update", {
59085
59093
  prompt: prompt4,
59086
59094
  check: check2,
59087
59095
  write: write4,
59096
+ yes,
59088
59097
  emitJson: json2,
59089
59098
  baseline: resolvedBaseline
59090
59099
  });
@@ -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.3",
4
4
  "description": "Harness Intelligence scaffolding CLI",
5
5
  "bin": {
6
6
  "devpunks": "dist/index.js",