@punks/cli 5.1.1 → 5.2.1

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.
Files changed (110) hide show
  1. package/AGENTS.md +28 -10
  2. package/dist/BASELINE_CHANGELOG.md +19 -1
  3. package/dist/CHANGELOG.md +49 -0
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -10
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +1 -1
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +0 -8
  7. package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +408 -309
  8. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.d.ts +1 -0
  9. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +206 -58
  10. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +496 -29
  11. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.d.mts +55 -0
  12. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.mjs +323 -0
  13. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.test.ts +821 -0
  14. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.d.mts +97 -0
  15. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.mjs +658 -0
  16. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.test.ts +614 -0
  17. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents-validator.test.ts +39 -0
  18. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +8 -2
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/SKILL.md +2 -0
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/commands.md +6 -7
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/managed-lint.md +165 -0
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +20 -19
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +1 -1
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
  32. package/dist/baseline/scaffold-baseline/skills/phases/debugging-phase/SKILL.md +3 -4
  33. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +2 -2
  34. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/debug.md +2 -2
  35. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/human-steering.md +25 -0
  36. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +2 -2
  37. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +2 -2
  38. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +3 -2
  39. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/context-continuity.md +1 -1
  40. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
  41. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
  42. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +9 -9
  43. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +1 -1
  44. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
  45. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +1 -1
  46. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/human-steering.md +25 -0
  47. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +1 -1
  48. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +1 -1
  49. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +1 -1
  50. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +1 -1
  51. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +1 -1
  52. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/return-route.md +6 -5
  53. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/router.md +1 -1
  54. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/run-review.md +2 -1
  55. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +3 -3
  56. package/dist/baseline/scaffold-baseline.json +5 -5
  57. package/dist/baseline/scaffold-baseline.tgz +0 -0
  58. package/dist/data/AGENTS.md +22 -5
  59. package/dist/data/hooks/format-edited-file.mjs +237 -325
  60. package/dist/data/scripts/commit-gate-runner.mjs +206 -58
  61. package/dist/data/scripts/managed-lint-runner.d.mts +55 -0
  62. package/dist/data/scripts/managed-lint-runner.mjs +323 -0
  63. package/dist/data/scripts/managed-lint.d.mts +97 -0
  64. package/dist/data/scripts/managed-lint.mjs +658 -0
  65. package/dist/data/scripts/sync-subagents.mjs +8 -2
  66. package/dist/index.js +131 -153
  67. package/dist/skills/agnostic/cli/hi-cli/SKILL.md +2 -0
  68. package/dist/skills/agnostic/cli/hi-cli/references/commands.md +6 -7
  69. package/dist/skills/agnostic/cli/hi-cli/references/managed-lint.md +165 -0
  70. package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +6 -5
  71. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
  72. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
  73. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
  74. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
  75. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
  76. package/dist/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
  77. package/dist/skills/agnostic/quality/autoreview/SKILL.md +1 -1
  78. package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
  79. package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
  80. package/dist/skills/phases/debugging-phase/SKILL.md +3 -4
  81. package/dist/skills/phases/delivery-phase/SKILL.md +2 -2
  82. package/dist/skills/phases/delivery-phase/phases/debug.md +2 -2
  83. package/dist/skills/phases/delivery-phase/phases/human-steering.md +25 -0
  84. package/dist/skills/phases/delivery-phase/phases/implement.md +2 -2
  85. package/dist/skills/phases/delivery-phase/phases/review.md +2 -2
  86. package/dist/skills/phases/delivery-phase/phases/router.md +3 -2
  87. package/dist/skills/phases/delivery-phase/references/context-continuity.md +1 -1
  88. package/dist/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
  89. package/dist/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
  90. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +6 -6
  91. package/dist/skills/phases/finder-phase/SKILL.md +1 -1
  92. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
  93. package/dist/skills/phases/finder-phase/phases/grilling.md +1 -1
  94. package/dist/skills/phases/finder-phase/phases/human-steering.md +25 -0
  95. package/dist/skills/phases/finder-phase/phases/prototype.md +1 -1
  96. package/dist/skills/phases/finder-phase/phases/reconcile.md +1 -1
  97. package/dist/skills/phases/finder-phase/phases/research.md +1 -1
  98. package/dist/skills/phases/finder-phase/phases/router.md +1 -1
  99. package/dist/skills/phases/finder-phase/references/state-graph.md +1 -1
  100. package/dist/skills/phases/review-phase/phases/return-route.md +6 -5
  101. package/dist/skills/phases/review-phase/phases/router.md +1 -1
  102. package/dist/skills/phases/review-phase/phases/run-review.md +2 -1
  103. package/dist/skills/phases/review-phase/references/state-graph.md +3 -3
  104. package/package.json +12 -6
  105. package/dist/baseline/scaffold-baseline/skills/agnostic/generic/handback/SKILL.md +0 -27
  106. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/handback.md +0 -27
  107. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +0 -29
  108. package/dist/skills/agnostic/generic/handback/SKILL.md +0 -27
  109. package/dist/skills/phases/delivery-phase/phases/handback.md +0 -27
  110. package/dist/skills/phases/finder-phase/phases/handback.md +0 -29
package/AGENTS.md CHANGED
@@ -1,20 +1,38 @@
1
1
  ## CLI App Guidance
2
2
 
3
- Recovery keeps changed changelog paths as the sole product selector. `RELEASE_RECOVERY.json` must bind its failure, target commit/tree, note hash, first-parent order, and provider identities. An exact already-published provider-readback recovery creates no artifacts, mutates no product, and advances authority only after complete readback. Publication uses an immutable current commit/tree input and performs no prior pull-request Candidate Evidence lookup.
3
+ This app owns the `hi`/`hint` executable, repository detection, local scaffold and update writes, bundled baseline fallback, diff ergonomics, and release/baseline publishing scripts. Keep remote registry, provenance, auth, telemetry, and artifact access behind the control-plane boundary.
4
4
 
5
- Primary skills here: `autoreview`, `codebase-design`, `effect`, `effect-backend-structure`, `effect-recoverable-actions`, `effect-service-design`, `improve-codebase-architecture`, `parallel-research`, `prototype`, `quality-types`, `review`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
5
+ Work within the accepted goal. Obtain explicit user authorization before changing requirements, weakening a gate, or substantially redesigning implementation.
6
6
 
7
- This app owns the `hi`/`hint` executable, repo detection flow, local scaffold application, bundled baseline fallback, update/diff ergonomics, and release/baseline publishing scripts. Preserve current CLI behavior during monorepo work.
8
- Autonomy ends at accepted goal bounds. If progress requires changed requirements, a weaker gate, or substantial implementation redesign, invoke `$handback` before expanding work.
7
+ Use [Rule Registry](../../.agents/rules/index.md) as the exhaustive codebase-rule index. Activate every rule whose path or task trigger matches the work, read its linked file, and record `pass`, `fail`, or `not-applicable` with evidence in the current handoff work log.
9
8
 
10
- Reusable skill changes in distributed assets are complete only after the root source-first flow: before editing, verify `git -C /Users/stefan/Desktop/repos/wearedevpunks-skills branch --show-current` returns exactly `main`; stop otherwise. Edit and commit the canonical source only on that checked-out `main` branch; alternate branches or worktrees are out of scope for this flow. Then push, run `bun run sync:skills`, verify the exact receipt SHA, and publish the baseline when requested.
9
+ ### Skills
11
10
 
12
- Keep consumer-repo product logic out of the CLI. The future backend owns registry, provenance, auth, telemetry, and artifact access; the CLI remains the local scanner, cache, prompt/skill/hook placer, and filesystem writer.
11
+ Read the installed skill on its exact invocation below; phase routing remains inherited from the root guidance.
13
12
 
14
- Before completing CLI release-bearing changes, run `bun run release:classify -- --base <base-ref> --head <head-ref>`. Changed changelog paths alone select the product: `BASELINE_CHANGELOG.md` selects `baseline`, `CHANGELOG.md` selects `npm`, both select `mixed`, and neither selects `none`; artifact differences remain diagnostics. A selected baseline needs reviewed non-empty `Unreleased` notes or an exact-tag section plus compatibility. Selected npm needs a bumped `apps/cli/package.json` version and matching non-empty `CHANGELOG.md` version notes. Completion requires the classifier to pass. `bun run release:publish` publishes `@punks/cli`, pushes the matching `v<version>` tag, and creates the GitHub release from that changelog entry; baseline-only releases stay on `baseline/stable/*`.
13
+ | Skill | Exact trigger |
14
+ | --- | --- |
15
+ | `autoreview` | When the task explicitly invokes `autoreview`, read `../../.agents/skills/autoreview/SKILL.md`. |
16
+ | `codebase-design` | When the task explicitly invokes `codebase-design`, read `../../.agents/skills/codebase-design/SKILL.md`. |
17
+ | `effect` | When the task explicitly invokes `effect`, read `../../.agents/skills/effect/SKILL.md`. |
18
+ | `effect-backend-structure` | When the task explicitly invokes `effect-backend-structure`, read `../../.agents/skills/effect-backend-structure/SKILL.md`. |
19
+ | `effect-recoverable-actions` | When the task explicitly invokes `effect-recoverable-actions`, read `../../.agents/skills/effect-recoverable-actions/SKILL.md`. |
20
+ | `effect-service-design` | When the task explicitly invokes `effect-service-design`, read `../../.agents/skills/effect-service-design/SKILL.md`. |
21
+ | `improve-codebase-architecture` | When the task explicitly invokes `improve-codebase-architecture`, read `../../.agents/skills/improve-codebase-architecture/SKILL.md`. |
22
+ | `make-tsuite` | When the task explicitly invokes `make-tsuite`, read `../../.agents/skills/make-tsuite/SKILL.md`. |
23
+ | `parallel-research` | When the task explicitly invokes `parallel-research`, read `../../.agents/skills/parallel-research/SKILL.md`. |
24
+ | `prototype` | When the task explicitly invokes `prototype`, read `../../.agents/skills/prototype/SKILL.md`. |
25
+ | `quality-types` | When the task explicitly invokes `quality-types`, read `../../.agents/skills/quality-types/SKILL.md`. |
26
+ | `review` | When the task explicitly invokes `review`, read `../../.agents/skills/review/SKILL.md`. |
27
+ | `simplify` | When the task explicitly invokes `simplify`, read `../../.agents/skills/simplify/SKILL.md`. |
28
+ | `swarm-planner` | When the task explicitly invokes `swarm-planner`, read `../../.agents/skills/swarm-planner/SKILL.md`. |
29
+ | `tdd` | When the task explicitly invokes `tdd`, read `../../.agents/skills/tdd/SKILL.md`. |
30
+ | `turborepo` | When the task explicitly invokes `turborepo`, read `../../.agents/skills/turborepo/SKILL.md`. |
15
31
 
16
- For direct CLI UX, packaging, and release behavior guidance, inspect:
32
+ ### Source and validation seams
17
33
 
18
- - `opensrc path cevr/sentry-cli` (`https://github.com/cevr/sentry-cli`)
34
+ Read the [Source Guide](../../opensrc/README.md) when work depends on third-party library behavior. For CLI UX, packaging, or release behavior patterns, inspect `opensrc path cevr/sentry-cli` (`https://github.com/cevr/sentry-cli`).
19
35
 
20
- If work here changes operator workflow, setup, or AI scaffolding behavior, update `docs/README.md` and `docs/runbooks/hi-cli-scaffolding.md` in the same task.
36
+ Validate the changed CLI behavior with the narrowest applicable tests and checks in `package.json`; use the nested source guidance for source and packaged-data changes. For release-bearing work, run `bun run release:classify -- --base <base-ref> --head <head-ref>` from the repository root and require it to pass.
37
+
38
+ When work changes operator workflow, setup, or AI scaffolding behavior, update [docs index](../../docs/README.md) and [CLI scaffolding runbook](../../docs/runbooks/hi-cli-scaffolding.md) in the same task.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- Compatibility: `>=5.1.0 <5.2.0`
5
+ Compatibility: `>=5.2.1 <5.3.0`
6
6
 
7
7
  ### Added
8
8
 
@@ -12,6 +12,24 @@ Compatibility: `>=5.1.0 <5.2.0`
12
12
 
13
13
  ### Fixed
14
14
 
15
+ - Give generated lint, CI, Commit Gate, and post-edit checks one explicit scope
16
+ and effective-policy authority, excluding wiki paths, user-excluded paths, and
17
+ unselected package boundaries (#224).
18
+ - Preserve inherited project Oxlint policy, compatible custom commands, and
19
+ warning limits during managed lint adoption; retain referenced catalogs and
20
+ retire only unchanged receipt-owned obsolete assets (#224).
21
+ - Ship managed lint selection, drift, and migration guidance aligned with
22
+ read-only checks and recoverable updates (#224).
23
+ - Cover staged deletions, root changes, and cross-owner renames in the bundled
24
+ Commit Gate runner. Honor explicit file, owner, and repository execution modes,
25
+ deduplicate identical checks, and preserve successful command diagnostics;
26
+ accept the matching execution metadata in generated subagent contracts (#222).
27
+ - Retire the standalone `handback` skill from the shipped catalog and interaction
28
+ pack; keep human steering and scope decisions within their owning workflow
29
+ phases (#222).
30
+ - Update bundled brainstorm guidance to trace the system from the operating
31
+ agent's perspective and reconcile affected design documents and plans when
32
+ their edits are authorized (#222).
15
33
  - Restore Effect internal-module topology and repository-boundary guidance; keep
16
34
  service qualification and application policy in `effect-service-design` (#205).
17
35
  - Sync canonical `wearedevpunks/skills@0519d685213a8085928bde8a5d744fcd6737c931`
package/dist/CHANGELOG.md CHANGED
@@ -2,6 +2,55 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.2.1 - 2026-09-23
6
+
7
+ ### Fixed
8
+
9
+ - Make managed lint scope selection explicit and route every eligible file to
10
+ its most-specific selected owner across package scripts, CI, Commit Gate, and
11
+ edited-file checks (#224).
12
+ - Preserve inherited Oxlint policy, supported custom commands, warning
13
+ thresholds, and referenced lint catalogs through adoption and repeated updates
14
+ (#224).
15
+ - Skip managed checks for excluded-only changes while preserving independent
16
+ Python/Ruff behavior; keep wiki paths and unselected package boundaries outside
17
+ managed software lint (#224).
18
+ - Validate dependent policy, config, routes, and tool inputs before activation,
19
+ and report selection, drift, findings, and unresolved migration failures with
20
+ actionable context (#224).
21
+
22
+ ## 5.2.0 - 2026-09-22
23
+
24
+ ### Added
25
+
26
+ - Add explicit file, owner, and repository execution scopes for Commit Gate checks,
27
+ including repository lint and format authority in project settings (#222).
28
+
29
+ ### Fixed
30
+
31
+ - Validate the complete update candidate, including live guidance targets, staged
32
+ replacements, and removals, before publishing managed changes (#222).
33
+ - Limit update installation and lint work to affected consumers, including optional
34
+ dependency consumers; support generated backoffice Vitest overrides and preserve
35
+ actionable installation and configuration errors (#222).
36
+ - Keep unrelated archives and migration payloads out of generation freshness while
37
+ retaining validation of explicitly referenced inputs (#222).
38
+ - Cover root changes, deletions, and cross-owner renames in Commit Gate checks;
39
+ preserve command output, deduplicate identical checks, and enforce zero warnings
40
+ for generated Oxlint commands (#222).
41
+
42
+ ### Changed
43
+
44
+ - Retire the standalone handback skill and its generated prompt pointers in favor
45
+ of handback guidance owned by lifecycle phases (#222).
46
+ - Use Bun 1.4.0 for repository tooling and two-vCPU Linux CI workers, removing
47
+ automated macOS jobs and provisioning browsers only for selected consumers (#223).
48
+ - Reuse verification results across unrelated documentation changes while tracking
49
+ consumed inputs and runtime capabilities; remove duplicate task execution (#223).
50
+ - Reduce routine test setup and repeated assertions, use minimal real release
51
+ recovery histories, and retain full historical recovery replay and updater
52
+ benchmarking as on-demand diagnostics (#223).
53
+
5
54
  ## 5.1.1 - 2026-09-17
6
55
 
7
56
  ### Added
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "channel": "stable",
4
- "version": "2026.09.17-d3e11b44",
5
- "tag": "baseline/stable/2026.09.17-d3e11b44",
6
- "commit": "d3e11b4481eb4e35c4044278914552827c0ee032",
4
+ "version": "2026.09.23-66535546",
5
+ "tag": "baseline/stable/2026.09.23-66535546",
6
+ "commit": "66535546af2cdfab73f8fe1438ee8295ebee45f1",
7
7
  "sha256": null,
8
8
  "compatibility": {
9
- "cliVersionRange": ">=5.1.1 <5.2.0"
9
+ "cliVersionRange": ">=5.2.1 <5.3.0"
10
10
  },
11
- "generatedAt": "2026-09-17T08:01:37.000Z",
11
+ "generatedAt": "2026-09-23T12:18:32.000Z",
12
12
  "capabilities": {
13
13
  "scopedAuthoring": {
14
14
  "revision": "1",
@@ -358,11 +358,6 @@
358
358
  "authoringRevision": "1",
359
359
  "id": "handoff"
360
360
  },
361
- {
362
- "activationRevision": "1",
363
- "authoringRevision": "1",
364
- "id": "handback"
365
- },
366
361
  {
367
362
  "activationRevision": "1",
368
363
  "authoringRevision": "1",
@@ -67,7 +67,7 @@
67
67
  "lintAssets": [],
68
68
  "promptDetails": ["shared agent interaction helpers"],
69
69
  "promptSurfaces": ["shared-agents"],
70
- "skills": ["handback", "show-me", "wait-what"],
70
+ "skills": ["show-me", "wait-what"],
71
71
  "triggerPackages": []
72
72
  },
73
73
  {
@@ -551,14 +551,6 @@
551
551
  "sourceDirectory": "skills/agnostic/generic/handoff",
552
552
  "tier": "agnostic"
553
553
  },
554
- {
555
- "framework": null,
556
- "id": "handback",
557
- "language": null,
558
- "requiresTools": [],
559
- "sourceDirectory": "skills/agnostic/generic/handback",
560
- "tier": "agnostic"
561
- },
562
554
  {
563
555
  "framework": null,
564
556
  "id": "improve-codebase-architecture",