@punks/cli 3.1.5 → 3.1.7

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 (30) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/BASELINE_CHANGELOG.md +44 -0
  4. package/dist/CHANGELOG.md +60 -0
  5. package/dist/data/AGENTS.md +4 -110
  6. package/dist/data/hooks/format-edited-file.mjs +392 -21
  7. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +0 -15
  8. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +0 -15
  9. package/dist/data/scripts/sync-subagents.mjs +763 -106
  10. package/dist/index.js +1565 -1081
  11. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  12. package/dist/skills/agnostic/planning/create-plan/SKILL.md +4 -1
  13. package/dist/skills/agnostic/planning/create-spec/SKILL.md +7 -4
  14. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +3 -0
  15. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +2 -1
  16. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +14 -1
  17. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +5 -0
  18. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +4 -0
  19. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +14 -1
  20. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +4 -0
  21. package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +7 -4
  22. package/dist/skills/agnostic/research/parallel-research/SKILL.md +8 -9
  23. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  24. package/dist/skills/misc/wait-what/SKILL.md +7 -3
  25. package/dist/skills/phases/delivery-phase/phases/router.md +2 -2
  26. package/dist/skills/phases/delivery-phase/phases/spec.md +4 -1
  27. package/dist/skills/phases/finder-phase/SKILL.md +3 -0
  28. package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +3 -1
  29. package/package.json +20 -7
  30. package/dist/tsconfig.tsbuildinfo +0 -1
package/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## CLI App Guidance
2
2
 
3
- Primary skills here: `autoreview`, `codebase-design`, `effect-backend-structure`, `effect`, `effect-recoverable-actions`, `improve-codebase-architecture`, `parallel-research`, `quality-types`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
3
+ 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`.
4
4
 
5
5
  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.
6
6
 
package/README.md CHANGED
@@ -98,7 +98,7 @@ Current scaffold-managed global tools:
98
98
  - `portless`
99
99
  - `skills`
100
100
 
101
- On startup, `hi` checks interactive TTY commands for a newer CLI and asks before installing. `--help`, `--version`, CI, non-interactive commands, and `DP_NO_UPDATE_CHECK=1` skip the prompt. The `hi-cli` operator skill check stays detached and advisory, runs at most once per 12 hours by default, and never updates skills while another CLI command is starting. Set `DP_NO_SKILL_UPDATE_CHECK=1` to skip that check or `DP_STARTUP_CHECK_INTERVAL_MS=0` to force the worker during local testing.
101
+ On startup, `hi` checks interactive TTY commands for a newer CLI and asks before installing. `--help`, `--version`, CI, non-interactive commands, and `HI_NO_UPDATE_CHECK=1` skip the prompt. The `hi-cli` operator skill check stays detached and advisory, runs at most once per 12 hours by default, and never updates skills while another CLI command is starting. Set `HI_NO_SKILL_UPDATE_CHECK=1` to skip that check or `HI_STARTUP_CHECK_INTERVAL_MS=0` to force the worker during local testing.
102
102
 
103
103
  ## Publishing
104
104
 
@@ -1,5 +1,49 @@
1
1
  # Baseline Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ### Changed
6
+
7
+ - Pin shared skills to `wearedevpunks/skills@1b222d8b1c159052adf976e0a9b02717a7df1b90`, correct `docs-onboarding` to use root `hi init`, and refresh the bundled baseline digest to `1c6d1157a133461a04bf281372ce824c8e2cc9b58e7c3c44ae7b2a2fbcf65b98`. This provenance is not a baseline publication claim.
8
+
9
+ ## baseline/stable/2026.08.10-projection-receipt-output-integrity-r1 - 2026-08-10
10
+
11
+ Compatibility: `=3.1.7`
12
+
13
+ ### Fixed
14
+
15
+ - Preserve the projection-receipt integrity baseline while pairing it with the correctly packaged CLI 3.1.7 release.
16
+
17
+ ## baseline/stable/2026.08.10-projection-receipt-output-integrity - 2026-08-10
18
+
19
+ Compatibility: `=3.1.6`
20
+
21
+ ### Changed
22
+
23
+ - Add `renderedOutputSha256` to generated projection receipts as the canonical semantic fingerprint of the effective available-hook set and rendered provider-output maps.
24
+ - Preserve exact receipt-only scaffold-manifest publication while making effective project-authored subagent output changes visible and retry-stable.
25
+ - Keep expected provider capability limitations and preserved project-owned prompts as neutral receipt provenance, clear stale legacy degradation bookkeeping through a silent normal-update receipt refresh, and reserve unhealthy status for actionable anomalies or actual faults.
26
+
27
+ ## baseline/stable/2026.08.07-wait-what-edit-hooks - 2026-08-07
28
+
29
+ ### Changed
30
+
31
+ - Sync shared skills from `wearedevpunks/skills@2379a59c84431357321b75ea9dfab12ae8ada0b0`.
32
+ - Preserve Finder-derived fog evidence parents and validate the complete configured intake taxonomy before provider mutation ([#102](https://github.com/wearedevpunks/harness-intelligence/issues/102)).
33
+ - Apply `$wait-what` language to bounded `parallel-research` synthesis, `SPEC.md`, `PLAN.md`, and `IMPLEMENTATION-NOTES.md` production ([#103](https://github.com/wearedevpunks/harness-intelligence/issues/103)).
34
+ - Restore automatic scoped format and lint hooks after file edits across Claude, Codex, Cursor, and OpenCode projections.
35
+
36
+ ## baseline/stable/2026.08.07-scaffold-integrity-convergence - 2026-08-07
37
+
38
+ ### Changed
39
+
40
+ - Align the stable scaffold with default-applying update semantics, read-only `--check`, recoverable replacement for fixed scaffold-managed edits, and silent preservation for project-owned exceptions.
41
+ - Make the generated projection producer advance only its exact receipt evidence through individually atomic, compare-and-swap publication; cross-file crash atomicity remains outside the contract.
42
+
43
+ ### Fixed
44
+
45
+ - Converge baseline-identical stale receipt evidence without an archive and keep unavailable authority separate from managed-content drift.
46
+
3
47
  ## baseline/stable/2026.08.06-managed-format-hook-case-semantics - 2026-08-06
4
48
 
5
49
  ### Fixed
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ### Changed
6
+
7
+ - Pin shared skills to `wearedevpunks/skills@1b222d8b1c159052adf976e0a9b02717a7df1b90`, correct `docs-onboarding` to use root `hi init`, and refresh the bundled baseline digest to `1c6d1157a133461a04bf281372ce824c8e2cc9b58e7c3c44ae7b2a2fbcf65b98`. This provenance is not a baseline or npm publication claim.
8
+
9
+ ## baseline/stable/2026.08.10-projection-receipt-output-integrity-r1 - 2026-08-10
10
+
11
+ ### Fixed
12
+
13
+ - Publish the same projection-receipt integrity baseline for CLI 3.1.7 after the 3.1.6 direct-package release omitted a required nested managed `.gitignore`.
14
+
15
+ ## 3.1.7 - 2026-08-10
16
+
17
+ ### Fixed
18
+
19
+ - Restore the nested NestJS managed `.gitignore` by publishing through the isolated npm pack-control path.
20
+
21
+ ## baseline/stable/2026.08.10-projection-receipt-output-integrity - 2026-08-10
22
+
23
+ ### Changed
24
+
25
+ - Bind generated projection receipts to the canonical semantic fingerprint of the effective available-hook set and rendered Claude, Codex, Cursor, and OpenCode output maps.
26
+ - Retain exact receipt-entry compare-and-swap publication while making effective project-authored subagent output changes observable to downstream integrity checks.
27
+ - Keep expected provider capability limitations and preserved project-owned prompts as neutral receipt provenance with healthy receipt/manifest status and empty scaffold degradations; reserve `partial` for genuine actionable nonfatal anomalies and fail actual projection/application faults.
28
+
29
+ ## baseline/stable/2026.08.07-wait-what-edit-hooks - 2026-08-07
30
+
31
+ ### Changed
32
+
33
+ - Sync shared skills from `wearedevpunks/skills@2379a59c84431357321b75ea9dfab12ae8ada0b0`.
34
+ - Preserve Finder-derived fog evidence parents and validate the complete configured intake taxonomy before provider mutation ([#102](https://github.com/wearedevpunks/harness-intelligence/issues/102)).
35
+ - Apply `$wait-what` language to bounded `parallel-research` synthesis, `SPEC.md`, `PLAN.md`, and `IMPLEMENTATION-NOTES.md` production ([#103](https://github.com/wearedevpunks/harness-intelligence/issues/103)).
36
+ - Restore automatic scoped format and lint hooks after file edits across Claude, Codex, Cursor, and OpenCode projections.
37
+
38
+ ## 3.1.6 - 2026-08-07
39
+
40
+ ### Changed
41
+
42
+ - Make `hi update` apply verified baseline changes by default while retaining `--write` and `--yes` as compatibility aliases; keep `--check` read-only.
43
+ - Preserve project-owned, intentionally customizable, and current `ProjectGenerated` files silently, and let the generated projection producer refresh only its exact scaffold-receipt entry with individually atomic, compare-and-swap publication that is safe to retry.
44
+ - Record `renderedOutputSha256` in projection receipts so effective project-authored renderer changes advance semantic evidence without treating context-plan formatting as drift.
45
+ - Expand installed-consumer validation to six evidence rows covering semantic JSON, managed archive/replacement, silent project-owned exceptions, exact receipt-entry refresh, provider-output restoration, and corruption failure.
46
+
47
+ ### Fixed
48
+
49
+ - Report actual edits to fixed `ScaffoldManaged` files during check, then archive them under `.devpunks/replaced-scaffold/<fingerprint>/<path>` and replace them from the verified baseline during a normal update. Baseline-identical files with stale receipt evidence now refresh without an archive.
50
+ - Reject contradictory update flags before baseline, operation, or filesystem effects, and keep unavailable baseline authority distinct from scaffold drift.
51
+
52
+ ## baseline/stable/2026.08.07-scaffold-integrity-convergence - 2026-08-07
53
+
54
+ ### Changed
55
+
56
+ - Align the stable scaffold with default-applying update semantics, read-only `--check`, recoverable replacement for fixed scaffold-managed edits, and silent preservation for project-owned exceptions.
57
+ - Make the generated projection producer advance only its exact receipt evidence through individually atomic, compare-and-swap publication; cross-file crash atomicity remains outside the contract.
58
+
59
+ ### Fixed
60
+
61
+ - Converge baseline-identical stale receipt evidence without an archive and keep unavailable authority separate from managed-content drift.
62
+
3
63
  ## 3.1.5 - 2026-08-06
4
64
 
5
65
  ### Changed
@@ -1,113 +1,7 @@
1
- # AGENTS.md
1
+ ## CLI Data Guidance
2
2
 
3
- Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.
3
+ Primary skills here: `autoreview`, `codebase-design`, `improve-codebase-architecture`, `parallel-research`, `prototype`, `quality-types`, `review`, `simplify`, `tdd`.
4
4
 
5
- **Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
5
+ This scope owns packaged CLI assets: skill and pack catalogs, hooks, prompt content, subagent manifests, harness-projection scripts, and generated declarations. Keep runtime behavior in `apps/cli/src`; keep shared scaffold model contracts in `packages/scaffold`. Changes to embedded or generated assets must preserve their content hashes and public-output contracts.
6
6
 
7
- ## Philosophy
8
-
9
- This codebase will outlive you. Every shortcut becomes someone else's burden. Every hack compounds into technical debt that slows the team down.
10
-
11
- You are not writing code, you are shaping the future of the project. The patterns established will be copied, the corners cut will be cut again.
12
-
13
- Fight entropy, leave the codebase better than when you found it.
14
-
15
- ## Writing style
16
-
17
- - When generating tokens be extremely concise. Sacrifice grammar for the sake of concision.
18
- - Be detailed about concepts, reasoning, assumptions, tradeoffs, and questions; keep wording terse.
19
-
20
- ## 1. Think Before Coding
21
-
22
- **Don't assume. Don't hide confusion. Surface tradeoffs.**
23
-
24
- Before implementing:
25
-
26
- - State your assumptions explicitly. If uncertain, ask.
27
- - If multiple interpretations exist, present them. Don't pick silently.
28
- - If a simpler approach exists, say so. Push back when warranted.
29
- - If something is unclear, stop. Name what's confusing. Ask.
30
-
31
- ## 2. Simplicity First
32
-
33
- **Minimum code that solves the problem. Nothing speculative.**
34
-
35
- - No features beyond what was asked.
36
- - No abstractions for single-use code.
37
- - No "flexibility" or "configurability" that wasn't requested.
38
- - No error handling for impossible scenarios.
39
- - If you write 200 lines and it could be 50, rewrite it.
40
-
41
- Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
42
-
43
- ## 3. Surgical Changes
44
-
45
- **Touch only what you must. Clean up only your own mess.**
46
-
47
- When editing existing code:
48
-
49
- - Don't "improve" adjacent code, comments, or formatting by default.
50
- - Don't refactor things that aren't broken by default.
51
- - Match existing style, even if you'd do it differently.
52
- - If you notice unrelated dead code, mention it. Don't delete it by default.
53
- - If adjacent code materially affects correctness, clarity, maintainability, or the requested change, changing it is allowed. Fight entropy, do not preserve harmful local minima.
54
-
55
- When your changes create orphans:
56
-
57
- - Remove imports, variables, functions, and code paths that YOUR changes made unused.
58
- - Don't remove pre-existing dead code unless asked.
59
-
60
- The test: Every changed line should trace directly to the user's request or to necessary entropy-reducing support for that request.
61
-
62
- ## 4. Goal-Driven Execution
63
-
64
- **Define success criteria. Loop until verified.**
65
-
66
- Transform tasks into verifiable goals:
67
-
68
- - "Add validation" -> "Write tests for invalid inputs, then make them pass"
69
- - "Fix the bug" -> "Write a test that reproduces it, then make it pass"
70
- - "Refactor X" -> "Ensure tests pass before and after"
71
-
72
- For multi-step tasks, state a brief plan:
73
-
74
- ```text
75
- 1. [Step] -> verify: [check]
76
- 2. [Step] -> verify: [check]
77
- 3. [Step] -> verify: [check]
78
- ```
79
-
80
- Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
81
-
82
- ## Dependency source inspection
83
-
84
- - Prefer web search and official docs first when inspecting external libraries or packages.
85
- - If web results are unsuccessful, stale, or not detailed enough for implementation, fetch source locally.
86
- - For npm packages, use `opensrc path <package>` to get the absolute path to cached source code, fetching on cache miss.
87
- - For non-npm packages, clone the upstream `owner/repo` git source directly with `opensrc path <owner>/<repo>`.
88
-
89
- ## Subagents
90
-
91
- Subagent-based working is mandatory.
92
-
93
- Use one active execution or implementation subagent at a time by default. Spawn multiple execution or implementation subagents in parallel only when the user explicitly asks for parallelism.
94
-
95
- If a spawn is blocked by a full subagent/thread set, close existing completed or finished subagents, then retry.
96
-
97
- Use readonly subagents for research, auditing, investigating hypotheses, or exploring separate paths. When readonly work can be split across independent questions, paths, or hypotheses, parallel readonly subagents are mandatory.
98
-
99
- If the runtime guard fails, repair setup or report the blocker; do not claim inactive worker coverage and do not silently fall back to main-thread execution.
100
-
101
- ## Notes — Cross-session Memory
102
-
103
- Notebook at `.agents/notes/`. Shared memory across sessions. Never ask permission.
104
-
105
- **On session start:** Read `.agents/notes/index.md` (create if missing).
106
- **Write notes for:**
107
-
108
- - Non-obvious behaviors, gotchas, edge cases
109
- - Hard-won insights that took investigation
110
- - Project conventions and architectural decisions
111
- - Setup and config quirks
112
- **Don't note:** File locations, basic structure, session summaries, trivial facts.
113
- **Guidelines:** Store in `.agents/notes/`, keep `index.md` lean with one line per note, update existing notes before creating new ones, include why not just what, prune aggressively.
7
+ If work here changes scaffolding behavior, generated guidance, release assets, or validation procedures, update `docs/README.md` and `docs/runbooks/hi-cli-scaffolding.md` in the same task.