@punks/cli 2.6.0 → 3.0.0-beta.0

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 (111) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +45 -23
  3. package/dist/BASELINE_CHANGELOG.md +66 -0
  4. package/dist/CHANGELOG.md +102 -0
  5. package/dist/data/scripts/harness-projection/adapters/claude.d.mts +3 -0
  6. package/dist/data/scripts/harness-projection/adapters/claude.mjs +124 -0
  7. package/dist/data/scripts/harness-projection/adapters/codex.d.mts +3 -0
  8. package/dist/data/scripts/harness-projection/adapters/codex.mjs +137 -0
  9. package/dist/data/scripts/harness-projection/adapters/cursor.d.mts +5 -0
  10. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +106 -0
  11. package/dist/data/scripts/harness-projection/adapters/opencode.d.mts +5 -0
  12. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +100 -0
  13. package/dist/data/scripts/harness-projection/apply.d.mts +12 -0
  14. package/dist/data/scripts/harness-projection/apply.mjs +96 -0
  15. package/dist/data/scripts/harness-projection/core.d.mts +8 -0
  16. package/dist/data/scripts/harness-projection/core.mjs +239 -0
  17. package/dist/data/scripts/harness-projection/test-fixtures/application-context-plan.json +27 -0
  18. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +109 -0
  19. package/dist/data/scripts/harness-projection/test-fixtures/claude/context-plan.json +150 -0
  20. package/dist/data/scripts/harness-projection/test-fixtures/claude/matrix.json +23 -0
  21. package/dist/data/scripts/harness-projection/test-fixtures/claude/traces.json +15 -0
  22. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +124 -0
  23. package/dist/data/scripts/harness-projection/test-fixtures/codex/context-plan.json +150 -0
  24. package/dist/data/scripts/harness-projection/test-fixtures/codex/matrix.json +23 -0
  25. package/dist/data/scripts/harness-projection/test-fixtures/codex/traces.json +15 -0
  26. package/dist/data/scripts/harness-projection/test-fixtures/cursor/compiler-input.json +93 -0
  27. package/dist/data/scripts/harness-projection/test-fixtures/cursor/context-plan.json +108 -0
  28. package/dist/data/scripts/harness-projection/test-fixtures/cursor/matrix.json +19 -0
  29. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +54 -0
  30. package/dist/data/scripts/harness-projection/test-fixtures/mixed-context-plan.json +35 -0
  31. package/dist/data/scripts/harness-projection/test-fixtures/opencode/compiler-input.json +93 -0
  32. package/dist/data/scripts/harness-projection/test-fixtures/opencode/context-plan.json +108 -0
  33. package/dist/data/scripts/harness-projection/test-fixtures/opencode/matrix.json +19 -0
  34. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +51 -0
  35. package/dist/data/scripts/sync-subagents.mjs +1113 -33
  36. package/dist/data/subagents/manifest.mjs +5 -6
  37. package/dist/index.js +1375 -62557
  38. package/dist/skills/agnostic/cli/hi-cli/SKILL.md +22 -15
  39. package/dist/skills/agnostic/cli/hi-cli/references/commands.md +21 -5
  40. package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +87 -55
  41. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +1 -1
  42. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +2 -2
  43. package/dist/skills/agnostic/planning/create-plan/SKILL.md +12 -11
  44. package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +10 -31
  45. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +20 -2
  46. package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -5
  47. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +1 -0
  48. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +2 -2
  49. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +4 -9
  50. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +1 -0
  51. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +3 -1
  52. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +6 -0
  53. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +12 -1
  54. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +5 -0
  55. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +7 -0
  56. package/dist/skills/agnostic/planning/implement-spec/references/runtime-product-validation.md +50 -0
  57. package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +7 -5
  58. package/dist/skills/agnostic/requirements/grilling/LICENSE +21 -0
  59. package/dist/skills/agnostic/requirements/grilling/SKILL.md +6 -30
  60. package/dist/skills/agnostic/requirements/grilling/UPSTREAM.md +16 -0
  61. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -5
  62. package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +40 -16
  63. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +3 -16
  64. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +21 -15
  65. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +14 -14
  66. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +28 -9
  67. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +45 -5
  68. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -28
  69. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +22 -6
  70. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +47 -22
  71. package/dist/skills/frameworks/effect/effect/LICENSE +21 -0
  72. package/dist/skills/frameworks/effect/effect/SKILL.md +100 -0
  73. package/dist/skills/frameworks/effect/effect/UPSTREAM.md +11 -0
  74. package/dist/skills/frameworks/effect/effect/references/CACHING.md +76 -0
  75. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +67 -0
  76. package/dist/skills/frameworks/effect/effect/references/HTTP_CLIENTS.md +101 -0
  77. package/dist/skills/frameworks/effect/{effect-authoring/references/otel-patterns.md → effect/references/OBSERVABILITY.md} +4 -29
  78. package/dist/skills/frameworks/effect/effect/references/SCHEDULING.md +135 -0
  79. package/dist/skills/frameworks/effect/effect/references/SCHEMA.md +130 -0
  80. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +168 -0
  81. package/dist/skills/frameworks/effect/effect/references/STREAMS.md +135 -0
  82. package/dist/skills/frameworks/effect/effect/references/TESTING.md +118 -0
  83. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +7 -8
  84. package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +1 -1
  85. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  86. package/dist/skills/misc/secrets-cli/SKILL.md +54 -0
  87. package/dist/skills/misc/secrets-cli/references/command-reference.md +107 -0
  88. package/dist/skills/misc/secrets-cli/references/safety-and-errors.md +54 -0
  89. package/dist/skills/misc/secrets-cli/references/workflows.md +106 -0
  90. package/dist/skills/phases/design-phase/phases/grill.md +1 -1
  91. package/dist/skills/phases/requirements-phase/SKILL.md +2 -4
  92. package/dist/skills/phases/review-phase/REFERENCE.md +13 -5
  93. package/dist/skills/phases/review-phase/SKILL.md +3 -2
  94. package/package.json +1 -1
  95. package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
  96. package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
  97. package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
  98. package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
  99. package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
  100. package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
  101. package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
  102. package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
  103. package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
  104. package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
  105. package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
  106. package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
  107. package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
  108. package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
  109. package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
  110. package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
  111. /package/dist/skills/frameworks/effect/{effect-authoring/references/effect-atom-patterns.md → effect/references/EFFECT_ATOM.md} +0 -0
package/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## CLI App Guidance
2
2
 
3
- Primary skills here: `autoreview`, `codebase-design`, `effect-authoring`, `effect-backend-structure`, `effect-best-practices`, `effect-recoverable-actions`, `improve-codebase-architecture`, `parallel-research`, `quality-types`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
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`.
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
@@ -2,17 +2,15 @@
2
2
 
3
3
  `hi` scaffolds the AI operating context for each project phase, from requirements and backlog prep to the repo-aware setup pass.
4
4
  This repo carries the executable CLI plus the canonical bundled scaffold baseline under `src/data` and `skills/`.
5
- At runtime, scaffold content resolves from the latest stable GitHub release baseline with bundled fallback; the public [wearedevpunks/skills](https://github.com/wearedevpunks/skills) repo remains only the Vercel skills CLI interface.
5
+ At runtime, stable and exact scaffold requests resolve through the verified control-plane authority. Use `--baseline bundled` explicitly when you intend to use the npm-shipped baseline; stable and exact requests never fall back to it.
6
6
 
7
7
  ## Commands
8
8
 
9
9
  - `hi`
10
10
  show the command guide
11
- - `hi scaffold`
12
- show the scaffold lifecycle index
13
- - `hi scaffold init`
11
+ - `hi init`
14
12
  choose a backlog provider, scaffold requirements/backlog skills, and seed the initial wiki tree
15
- - `hi scaffold setup`
13
+ - `hi scaffold`
16
14
  detect the target repo, confirm or auto-accept pack selection, and write repo-aware scaffold output
17
15
  - `hi tools ensure`
18
16
  check and repair required external tools; `hint tools ensure` is the same command
@@ -22,12 +20,11 @@ At runtime, scaffold content resolves from the latest stable GitHub release base
22
20
  ## Usage
23
21
 
24
22
  ```bash
23
+ hi init
25
24
  hi scaffold
26
- hi scaffold init
27
- hi scaffold setup
28
- hi scaffold setup --yes
29
- hi scaffold setup -i /path/to/repo
30
- hi scaffold setup -i /path/to/repo -o /path/to/output
25
+ hi scaffold --yes
26
+ hi scaffold -i /path/to/repo
27
+ hi scaffold -i /path/to/repo -o /path/to/output
31
28
  hi tools ensure
32
29
  hint tools ensure
33
30
  hi update --yes
@@ -42,15 +39,17 @@ bun run baseline:build
42
39
 
43
40
  `bun run sync:skills` updates a local cache clone of `wearedevpunks/skills` and then replaces only `skills/`, overwriting any local changes there.
44
41
 
45
- `hi scaffold init` asks for the backlog provider, defaults to GitHub Projects/Issues, copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial Mermaid-enabled wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, writes `<wiki-root>/backlog-provider.md`, and then prints a fixed post-command prompt. Agents should activate `$hi-cli`, reconcile generated init output with the real repo layout, keep the pinned backlog provider unless the user changes it, and only start requirements/backlog generation when the user asks for that workflow.
42
+ `hi init` asks for the backlog provider, defaults to GitHub Projects/Issues, copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial Mermaid-enabled wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, writes `<wiki-root>/backlog-provider.md`, and then prints a fixed post-command prompt. Agents should activate `$hi-cli`, reconcile generated init output with the real repo layout, keep the pinned backlog provider unless the user changes it, and only start requirements/backlog generation when the user asks for that workflow.
46
43
 
47
- `hi 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.
44
+ `hi scaffold` 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.
48
45
 
49
- Before refreshing generated skills, setup/update may take a blind evidence snapshot of repo skill homes under `.devpunks/pre-existing-skills`. Commands do not classify skill overlaps or keep `-local` collision copies; follow-up agents reconcile exact name/id overlaps from `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`, archive replaced evidence under `.devpunks/replaced-skills/<skill-id>/...`, preserve non-overlaps through mirrors, and use `hi report` for baseline-worthy local knowledge.
46
+ Before refreshing generated skills, setup/update may take a blind evidence snapshot of repo skill homes under `.devpunks/pre-existing-skills`. Commands do not classify skill overlaps or keep `-local` collision copies. After setup, follow-up agents reconcile the skill homes, archive replaced evidence under `.devpunks/replaced-skills/<skill-id>/...`, preserve non-overlaps through mirrors, and use `hi report` for baseline-worthy local knowledge. After update, `$hi-cli` limits reconciliation to skill IDs added, removed, renamed, or reported as locally edited; same-ID content refreshes inspect only affected skills and active mirrors.
50
47
 
51
48
  `hi update --yes` applies managed scaffold updates without prompting. It is the non-interactive alias for the apply behavior of `--write`.
52
49
 
53
- `hi tools ensure` / `hint tools ensure` checks required external tools and repairs missing installable tools. In a scaffolded repo it reads tool IDs from `.devpunks/settings.json`; outside a scaffolded repo it validates the default Harness toolchain. Install contracts come from the trusted stable baseline, with bundled fallback, not from repo-owned metadata. This command is not read-only. It may install or repair missing tools. When `agent-browser` is present and a supported Chrome, Chromium, or Brave executable already exists, validation, setup, and update should not force a Chrome download.
50
+ Post-update follow-through starts from the current summary and changed paths, not from existing `.devpunks/` artifacts. A clean run stops. Prompt, subagent, lint, hook, tool, source-guide, wiki, and pack work runs only for changed categories. Auto-accepted default/detected packs do not rerun setup. Write modes finish with targeted validation and one `hi check --json`; a bounded execution worker runs the command without delegating it again.
51
+
52
+ `hi tools ensure` / `hint tools ensure` checks required external tools and repairs missing installable tools. In a scaffolded repo it reads tool IDs from `.devpunks/settings.json`; outside a scaffolded repo it validates the default Harness toolchain. Install contracts come from the selected verified baseline, not from repo-owned metadata. Stable and exact authority failures stop the command; pass `--baseline bundled` only when you intentionally want the npm-shipped baseline. This command is not read-only. It may install or repair missing tools. When `agent-browser` is present and a supported Chrome, Chromium, or Brave executable already exists, validation, setup, and update should not force a Chrome download.
54
53
 
55
54
  `hi -v` / `hint -v` is equivalent to `hi --version` / `hint --version`.
56
55
 
@@ -64,17 +63,16 @@ Language packs are detected separately from framework packs. TypeScript is selec
64
63
 
65
64
  The generated subagent manifest is repo-shaped from selected packs and prompt specs. Python specialists are generated only when the Python language pack is selected.
66
65
 
67
- To install the global `hi-cli` operator skill from the public skills repo:
66
+ Use the CLI-owned operator commands for the global `hi-cli` skill:
68
67
 
69
68
  ```bash
70
- skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/hi-cli --skill hi-cli --global --yes
69
+ hi operator status
70
+ hi operator install
71
+ hi operator update
72
+ hi operator migrate
71
73
  ```
72
74
 
73
- If `skills` is not installed as a global command yet:
74
-
75
- ```bash
76
- npx skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/hi-cli --skill hi-cli --global --yes
77
- ```
75
+ `hi skills rename` remains a deprecated alias for `hi operator migrate`. Operator mutations require the agent to reload or reactivate `$hi-cli`; their post-command flow does not inspect `.devpunks` artifacts or run scaffold follow-through. `hi upgrade` updates only the CLI executable.
78
76
 
79
77
  The lint scaffold is intentionally agent-facing rather than repo-mutating:
80
78
 
@@ -98,11 +96,11 @@ On startup, `hi` checks interactive TTY commands for a newer CLI and asks before
98
96
  Use one command per release type:
99
97
 
100
98
  ```bash
101
- bun run baseline:publish
99
+ BASELINE_VERSION=YYYY.MM.DD-short-slug BASELINE_CLI_VERSION_RANGE='>=2.6.0 <3' bun run baseline:publish
102
100
  bun run release:publish
103
101
  ```
104
102
 
105
- `bun run baseline:publish` builds the current scaffold baseline, creates or updates the `baseline/stable/<date>-<sha>` GitHub release, and uploads the baseline manifest plus tarball. Use it when scaffold data changes but the npm executable does not need a new version.
103
+ `bun run baseline:publish` requires an explicit nonblank `BASELINE_CLI_VERSION_RANGE`, builds the current scaffold baseline, creates or updates the `baseline/stable/<version>` GitHub release, and uploads the baseline manifest plus tarball. Use it when scaffold data changes but the npm executable does not need a new version.
106
104
 
107
105
  `bun run release:publish` builds the CLI as a portable Node script with bundled scaffold assets, publishes a sanitized npm package from the built `dist/` output, updates the `latest` dist-tag, also updates `next` for latest releases, pushes the matching `v<version>` git tag, and creates or updates the GitHub release title and notes from the categorized `CHANGELOG.md` content. GitHub notes use compact category labels such as `changed:` and `fixed:` without changelog publish metadata. Commit the version bump and changelog entry before running it; the script refuses dirty worktrees, missing changelog entries, uncategorized release notes, and existing tags that point at another commit. Set `NPM_TAG=beta` for beta prereleases without moving `latest`.
108
106
 
@@ -119,6 +117,30 @@ The logged-in account must have publish access to `@punks/cli`.
119
117
 
120
118
  ## Development
121
119
 
120
+ From the repository root, run the current TypeScript source instead of the globally installed
121
+ package:
122
+
123
+ ```bash
124
+ bun run cli -- --help
125
+ bun run cli -- check --baseline bundled --input .
126
+ bun run cli:entrypoints
127
+ bun run cli:ui
128
+ ```
129
+
130
+ `bun run cli -- <path>` disables the CLI and operator-skill startup update checks for that source
131
+ process. `bun run cli:entrypoints` derives every root and nested command path from the executable
132
+ registry and prints ready-to-copy help commands plus the native global actions. `bun run cli:ui`
133
+ renders the developer-only terminal/HTML catalog, retains it in a fresh temporary preview directory,
134
+ and prints the `file://` URL. Use `bun run --cwd apps/cli ui:catalog -- --check` for a self-cleaning
135
+ catalog validation or pass `--output <run-owned-directory>` to choose the retained destination. The
136
+ catalog script and fixtures are excluded from the npm package.
137
+
138
+ Interactive output uses open terminal rails: `◇` section headings, `│` rows, and a final `└` row.
139
+ The large gradient title appears on the interactive root guide reached through bare `hi`,
140
+ `hi --help`, `hi -h`, or `hi --wizard`. Redirected plain output keeps its stable ANSI-free
141
+ contract. `NO_COLOR` always disables color; `FORCE_COLOR=0` also disables it, while other
142
+ `FORCE_COLOR` values enable the configured `HI_THEME`/`COLORFGBG` palette.
143
+
122
144
  ```bash
123
145
  bun install
124
146
  bun run build
@@ -1,5 +1,71 @@
1
1
  # Baseline Changelog
2
2
 
3
+ ## baseline/stable/2026.07.23-effect-v4-source-authority - 2026-07-23
4
+
5
+ ### Fixed
6
+
7
+ - Sync Effect skills from `wearedevpunks/skills@45d731db6f5f3e715ecbd2db195b7f68d13dcff9`.
8
+ - Declare `effect-backend-structure` compatible with Effect v4 and replace its Effect v3 service guidance with the canonical `$effect` and `Context.Service` contract ([#75](https://github.com/wearedevpunks/harness-intelligence/issues/75)).
9
+ - Make `opensrc path Effect-TS/effect` and the Effect repository main branch the primary Effect v4 source authority; retain project-pinned package lookup for exact installed-version behavior.
10
+
11
+ ## baseline/stable/2026.07.21-create-spec-vocabulary-removal - 2026-07-21
12
+
13
+ ### Changed
14
+
15
+ - Sync shared skills from `wearedevpunks/skills@52866e7`.
16
+ - Keep `create-spec` focused on producing and presenting the completed spec for review.
17
+
18
+ ## baseline/stable/2026.07.17-grilling-primitive-contract - 2026-07-17
19
+
20
+ ### Changed
21
+
22
+ - Sync shared skills from `wearedevpunks/skills@e2039dd`.
23
+ - Centralize one-decision question shape, recommendation rationale, precise interpretation choices, fact lookup, branch settlement, frontier restatement, and shared-understanding completion in `grilling`.
24
+ - Keep wrapper guidance specific to its domain, durable artifacts, stricter formats, output mappings, and downstream transitions.
25
+
26
+ ## baseline/stable/2026.07.17-batched-grilling-frontier - 2026-07-17
27
+
28
+ ### Changed
29
+
30
+ - Sync shared skills from `wearedevpunks/skills@9fb9184`.
31
+ - Replace sequential grilling with Matt Pocock's MIT-licensed `batch-grill-me` frontier primitive pinned at `9603c1cc8118d08bc1b3bf34cf714f62178dea3b`, preserving the stable local `grilling` id and wrapper composition.
32
+ - Persist stable question ids, prerequisites, current-frontier membership, answered and unanswered state, canonical routed grill paths, and explicit empty-frontier shared-understanding confirmation before backlog, plan, spec, or prototype work.
33
+
34
+ ### Fixed
35
+
36
+ - Advertise explicit-only `design-phase` as a global workflow entrypoint while excluding it from scoped primary-skill generation.
37
+
38
+ ## baseline/stable/2026.07.16-effect-v4-consolidation - 2026-07-16
39
+
40
+ ### Changed
41
+
42
+ - Sync shared skills from `wearedevpunks/skills@65b8833`.
43
+ - Move Effect-Atom and observability guidance under the pinned, MIT-licensed `effect` skill as focused branch references.
44
+ - Remove the redundant `effect-authoring` skill from the catalog, Effect pack, prompts, subagents, and active mirrors.
45
+
46
+ ## baseline/stable/2026.07.16-effect-v4-patterns - 2026-07-16
47
+
48
+ ### Changed
49
+
50
+ - Sync shared skills from `wearedevpunks/skills@d18cfc7`.
51
+ - Replace the overlapping `effect-best-practices` skill with the pinned, MIT-licensed Effect v4 `effect` skill and its eight focused references.
52
+ - Keep `effect-authoring`, `effect-backend-structure`, and `effect-recoverable-actions` as distinct Effect pack workflows.
53
+
54
+ ## baseline/stable/2026.07.13-create-spec-title-frontmatter - 2026-07-13
55
+
56
+ ### Fixed
57
+
58
+ - Sync the stable baseline's `create-spec` skill from `wearedevpunks/skills@40b83fb` so routed Fumadocs specs include non-empty `title` frontmatter and enforce it in the quality bar.
59
+
60
+ ## baseline/stable/2026.07.13-runtime-product-validation - 2026-07-13
61
+
62
+ ### Changed
63
+
64
+ - Sync shared skills from `wearedevpunks/skills@d79eb2d`.
65
+ - Add `create-plan` task metadata for required runtime validation, target, evidence, and cleanup across process or infrastructure boundaries.
66
+ - Add the disclosed `implement-spec` runtime-product-validation reference and route its contract through sequential and parallel workers.
67
+ - Require public-entrypoint results plus correlated durable evidence, provenance-scoped cleanup, and exact blockers that leave affected tasks and acceptance criteria blocked.
68
+
3
69
  ## baseline/stable/2026.07.13-hi-ensure-settings - 2026-07-13
4
70
 
5
71
  ### Added
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,107 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0-beta.0 - 2026-07-28
4
+
5
+ Prerelease of the M7-M9 delivery completed in [#88](https://github.com/wearedevpunks/harness-intelligence/pull/88).
6
+
7
+ ### Added
8
+
9
+ - Add repeatable packaged-consumer validation for fresh initialization, drift detection, conflict-preserving updates, and installed `hi`/`hint` command behavior.
10
+ - Add verified operator-skill lifecycle and baseline-authority flows with explicit provenance, compatibility, and fallback contracts.
11
+
12
+ ### Changed
13
+
14
+ - Rebuild CLI orchestration around feature-owned Effect v4 domains, typed failures, explicit configuration boundaries, and a unified command metadata authority.
15
+ - Converge settings, scaffold state, context projection, and non-destructive reconciliation behind deterministic plans shared by `hi init`, `hi check`, and `hi update`.
16
+
17
+ ### Fixed
18
+
19
+ - Keep JSON and redirected command output machine-safe and noninteractive while preserving cancellation, rollback ownership, and fail-closed baseline behavior.
20
+ - Harden Linux validation, generated wiki/scaffold determinism, cleanup ownership, and provider interruption handling across the M7-M9 release gates.
21
+
22
+ ## baseline/stable/2026.07.23-effect-v4-source-authority - 2026-07-23
23
+
24
+ ### Fixed
25
+
26
+ - Sync Effect skills from `wearedevpunks/skills@45d731db6f5f3e715ecbd2db195b7f68d13dcff9`.
27
+ - Declare `effect-backend-structure` compatible with Effect v4 and replace its Effect v3 service guidance with the canonical `$effect` and `Context.Service` contract ([#75](https://github.com/wearedevpunks/harness-intelligence/issues/75)).
28
+ - Make `opensrc path Effect-TS/effect` and the Effect repository main branch the primary Effect v4 source authority; retain project-pinned package lookup for exact installed-version behavior.
29
+
30
+ ## baseline/stable/2026.07.21-create-spec-vocabulary-removal - 2026-07-21
31
+
32
+ ### Changed
33
+
34
+ - Sync `create-spec` from `wearedevpunks/skills@52866e7` and end the skill at completed-spec review.
35
+
36
+ ## baseline/stable/2026.07.17-grilling-primitive-contract - 2026-07-17
37
+
38
+ ### Changed
39
+
40
+ - Sync shared skills from `wearedevpunks/skills@e2039dd`.
41
+ - Make `grilling` the sole generic question and closure contract while wrappers retain domain pressure tests, durable artifact state, stricter local formats, output mappings, and downstream transitions.
42
+
43
+ ## baseline/stable/2026.07.17-batched-grilling-frontier - 2026-07-17
44
+
45
+ ### Changed
46
+
47
+ - Sync shared skills from `wearedevpunks/skills@9fb9184`.
48
+ - Replace sequential grilling with Matt Pocock's MIT-licensed `batch-grill-me` frontier primitive pinned at `9603c1cc8118d08bc1b3bf34cf714f62178dea3b`, preserving the stable local `grilling` id and wrapper composition.
49
+ - Persist stable question ids, prerequisites, current-frontier membership, answered and unanswered state, canonical routed grill paths, and explicit empty-frontier shared-understanding confirmation before backlog, plan, spec, or prototype work.
50
+
51
+ ### Fixed
52
+
53
+ - Advertise explicit-only `design-phase` as a global workflow entrypoint while excluding it from scoped primary-skill generation.
54
+
55
+ ## baseline/stable/2026.07.16-effect-v4-consolidation - 2026-07-16
56
+
57
+ ### Changed
58
+
59
+ - Make `effect` the sole canonical Effect v4 patterns and authoring skill, with Effect-Atom and observability guidance disclosed as focused references.
60
+ - Remove the redundant `effect-authoring` skill after syncing `wearedevpunks/skills@65b8833`; retain the distinct backend-structure and recoverable-action workflows.
61
+
62
+ ## baseline/stable/2026.07.16-effect-v4-patterns - 2026-07-16
63
+
64
+ ### Changed
65
+
66
+ - Replace the overlapping `effect-best-practices` skill with the pinned, MIT-licensed Effect v4 `effect` skill from `wearedevpunks/skills@d18cfc7`.
67
+ - Route the detected Effect pack and bundled subagent guidance through the canonical `effect` skill while retaining distinct authoring, backend-structure, and recoverable-action workflows.
68
+
69
+ ## baseline/stable/2026.07.13-create-spec-title-frontmatter - 2026-07-13
70
+
71
+ ### Fixed
72
+
73
+ - Sync the stable baseline's `create-spec` skill from `wearedevpunks/skills@40b83fb` so routed Fumadocs specs include non-empty `title` frontmatter and enforce it in the quality bar ([#72](https://github.com/wearedevpunks/harness-intelligence/issues/72)).
74
+
75
+ ## 2.6.2 - 2026-07-13
76
+
77
+ Pending npm publish: `@punks/cli@2.6.2`.
78
+
79
+ ### Fixed
80
+
81
+ - Sync the `create-spec` template so scaffolded specs emit the required non-empty `title` frontmatter when written directly into routed Fumadocs trees ([#72](https://github.com/wearedevpunks/harness-intelligence/issues/72)).
82
+
83
+ ## 2.6.1 - 2026-07-13
84
+
85
+ Pending npm publish: `@punks/cli@2.6.1`.
86
+
87
+ ### Added
88
+
89
+ - Add `hi operator status`, `hi operator install`, `hi operator update`, and `hi operator migrate` for explicit operator-skill management.
90
+
91
+ ### Changed
92
+
93
+ - Deprecate `hi skills rename` while retaining it as an alias for `hi operator migrate`.
94
+
95
+ ### Fixed
96
+
97
+ - Route change-sensitive `hi update` post-command handling correctly and refresh only targeted `hi-cli` installations without invoking Skills CLI update-all behavior.
98
+
99
+ ## baseline/stable/2026.07.13-runtime-product-validation - 2026-07-13
100
+
101
+ ### Changed
102
+
103
+ - Release a baseline-only shared-skill update that makes real supported-runtime evidence an explicit planning and implementation completion contract ([#70](https://github.com/wearedevpunks/harness-intelligence/issues/70)).
104
+
3
105
  ## 2.6.0 - 2026-07-13
4
106
 
5
107
  Pending npm publish: `@punks/cli@2.6.0`.
@@ -0,0 +1,3 @@
1
+ import type { HarnessProjectionAdapter } from "../contract";
2
+
3
+ export declare const claudeAdapter: HarnessProjectionAdapter;
@@ -0,0 +1,124 @@
1
+ const promptPaths = (scopeId) =>
2
+ scopeId === ".agents" || scopeId === "shared"
3
+ ? { source: ".agents/AGENTS.md", target: ".claude/CLAUDE.md" }
4
+ : scopeId === "root"
5
+ ? { source: "AGENTS.md", target: "CLAUDE.md" }
6
+ : { source: `${scopeId}/AGENTS.md`, target: `${scopeId}/CLAUDE.md` };
7
+
8
+ const hookConfiguration = (id) => {
9
+ if (id === "format-edited-file") {
10
+ return {
11
+ path: ["hooks", "PostToolUse"],
12
+ value: {
13
+ matcher: "Edit|Write|MultiEdit",
14
+ hooks: [
15
+ {
16
+ type: "command",
17
+ command: 'node "$CLAUDE_PROJECT_DIR"/.claude/hooks/format-edited-file.mjs claude',
18
+ timeout: 30,
19
+ },
20
+ ],
21
+ },
22
+ };
23
+ }
24
+
25
+ if (id === "scaffold-update-check") {
26
+ return {
27
+ path: ["hooks", "SessionStart"],
28
+ value: {
29
+ hooks: [
30
+ {
31
+ type: "command",
32
+ command: 'node "$CLAUDE_PROJECT_DIR"/.claude/hooks/scaffold-update-check.mjs claude',
33
+ timeout: 60,
34
+ },
35
+ ],
36
+ },
37
+ };
38
+ }
39
+ };
40
+
41
+ const projectContribution = ({ scopeId, contribution }) => {
42
+ const id = `claude:${contribution.kind}:${scopeId}:${contribution.identity.id}`;
43
+
44
+ switch (contribution.kind) {
45
+ case "skill":
46
+ return [
47
+ {
48
+ id,
49
+ operation: "use-native-mirror",
50
+ canonicalPath: `.agents/skills/${contribution.identity.id}`,
51
+ nativePath: `.claude/skills/${contribution.identity.id}`,
52
+ },
53
+ ];
54
+ case "scoped-prompt":
55
+ return [{ id, operation: "mirror", ...promptPaths(scopeId) }];
56
+ case "lifecycle-hook": {
57
+ const configuration = hookConfiguration(contribution.identity.id);
58
+ if (configuration === undefined) {
59
+ return {
60
+ _tag: "HarnessProjectionUnsupported",
61
+ reason: `Claude lifecycle hook ${contribution.identity.id} has no native projection`,
62
+ };
63
+ }
64
+ return [
65
+ {
66
+ id: `${id}:mirror`,
67
+ operation: "mirror",
68
+ source: `.agents/hooks/${contribution.identity.id}.mjs`,
69
+ target: `.claude/hooks/${contribution.identity.id}.mjs`,
70
+ },
71
+ {
72
+ id: `${id}:configure`,
73
+ operation: "merge-json",
74
+ target: `.claude/settings.json#${configuration.path.join(".")}:${contribution.identity.id}`,
75
+ file: ".claude/settings.json",
76
+ ...configuration,
77
+ },
78
+ ];
79
+ }
80
+ case "subagent-template":
81
+ return [
82
+ {
83
+ id,
84
+ operation: "render-template",
85
+ templateId: contribution.identity.id,
86
+ source: `.agents/subagents/manifest.mjs#${contribution.identity.id}`,
87
+ filename: `${contribution.identity.id}.md`,
88
+ target: `.claude/agents/${contribution.identity.id}.md`,
89
+ format: "claude-markdown",
90
+ skills: contribution.references,
91
+ },
92
+ ];
93
+ case "tool-configuration":
94
+ return [];
95
+ }
96
+ };
97
+
98
+ export const claudeAdapter = {
99
+ matrix: {
100
+ matrixVersion: "2026.07.17-v1",
101
+ adapter: { id: "claude", version: "1.0.0" },
102
+ capabilities: [
103
+ {
104
+ family: "skill",
105
+ support: "degraded",
106
+ reason:
107
+ "Skills use the shared Claude compatibility mirror rather than per-scope registrations",
108
+ },
109
+ { family: "scoped-prompt", support: "supported" },
110
+ {
111
+ family: "lifecycle-hook",
112
+ support: "degraded",
113
+ reason: "Only SessionStart and file-edit command hooks have native Claude projections",
114
+ },
115
+ {
116
+ family: "tool-configuration",
117
+ support: "unsupported",
118
+ reason: "Harness tool configuration is not projected into Claude settings",
119
+ },
120
+ { family: "subagent-template", support: "supported" },
121
+ ],
122
+ },
123
+ project: projectContribution,
124
+ };
@@ -0,0 +1,3 @@
1
+ import type { HarnessProjectionAdapter } from "../contract";
2
+
3
+ export declare const codexAdapter: HarnessProjectionAdapter;
@@ -0,0 +1,137 @@
1
+ const promptIntent = ({ id, scopeId }) =>
2
+ scopeId === ".agents" || scopeId === "shared"
3
+ ? {
4
+ id,
5
+ operation: "mirror",
6
+ source: ".agents/AGENTS.md",
7
+ target: ".codex/AGENTS.md",
8
+ }
9
+ : {
10
+ id,
11
+ operation: "use-native-prompt",
12
+ canonicalPath: scopeId === "root" ? "AGENTS.md" : `${scopeId}/AGENTS.md`,
13
+ };
14
+
15
+ const hookEntries = (id) => {
16
+ if (id === "format-edited-file") {
17
+ return [
18
+ {
19
+ event: "SessionStart",
20
+ matcher: "startup|resume",
21
+ command:
22
+ 'node "$(git rev-parse --show-toplevel)/.codex/hooks/format-edited-file.mjs" session-start',
23
+ statusMessage: "Capturing edited-file baseline",
24
+ timeout: 30,
25
+ },
26
+ {
27
+ event: "PostToolUse",
28
+ matcher: "Bash|apply_patch|.*apply.?patch.*|edit|write|multiedit",
29
+ command: 'node "$(git rev-parse --show-toplevel)/.codex/hooks/format-edited-file.mjs" post',
30
+ statusMessage: "Auto-formatting edited files",
31
+ timeout: 30,
32
+ },
33
+ ];
34
+ }
35
+
36
+ if (id === "scaffold-update-check") {
37
+ return [
38
+ {
39
+ event: "SessionStart",
40
+ matcher: "startup|resume",
41
+ command:
42
+ 'node "$(git rev-parse --show-toplevel)/.codex/hooks/scaffold-update-check.mjs" codex',
43
+ statusMessage: "Checking Harness scaffold",
44
+ timeout: 60,
45
+ },
46
+ ];
47
+ }
48
+
49
+ return [];
50
+ };
51
+
52
+ const projectContribution = ({ scopeId, contribution }) => {
53
+ const id = `codex:${contribution.kind}:${scopeId}:${contribution.identity.id}`;
54
+
55
+ switch (contribution.kind) {
56
+ case "skill":
57
+ return [
58
+ {
59
+ id,
60
+ operation: "use-native-skill",
61
+ canonicalPath: `.agents/skills/${contribution.identity.id}`,
62
+ },
63
+ ];
64
+ case "scoped-prompt":
65
+ return [promptIntent({ id, scopeId })];
66
+ case "lifecycle-hook": {
67
+ const entries = hookEntries(contribution.identity.id);
68
+ if (entries.length === 0) {
69
+ return {
70
+ _tag: "HarnessProjectionUnsupported",
71
+ reason: `Codex lifecycle hook ${contribution.identity.id} has no native projection`,
72
+ };
73
+ }
74
+ return [
75
+ {
76
+ id: `${id}:mirror`,
77
+ operation: "mirror",
78
+ source: `.agents/hooks/${contribution.identity.id}.mjs`,
79
+ target: `.codex/hooks/${contribution.identity.id}.mjs`,
80
+ },
81
+ {
82
+ id: `${id}:configure`,
83
+ operation: "merge-toml",
84
+ target: `.codex/config.toml#hook:${contribution.identity.id}`,
85
+ file: ".codex/config.toml",
86
+ entries,
87
+ },
88
+ ];
89
+ }
90
+ case "subagent-template":
91
+ return [
92
+ {
93
+ id,
94
+ operation: "render-template",
95
+ templateId: contribution.identity.id,
96
+ source: `.agents/subagents/manifest.mjs#${contribution.identity.id}`,
97
+ filename: `${contribution.identity.id}.toml`,
98
+ target: `.codex/agents/${contribution.identity.id}.toml`,
99
+ format: "codex-toml",
100
+ skills: contribution.references.map((skillId) => ({
101
+ id: skillId,
102
+ path: `../../.agents/skills/${skillId}`,
103
+ enabled: true,
104
+ })),
105
+ },
106
+ ];
107
+ case "tool-configuration":
108
+ return [];
109
+ }
110
+ };
111
+
112
+ export const codexAdapter = {
113
+ matrix: {
114
+ matrixVersion: "2026.07.17-v1",
115
+ adapter: { id: "codex", version: "1.0.0" },
116
+ capabilities: [
117
+ {
118
+ family: "skill",
119
+ support: "degraded",
120
+ reason: "Skills are linked only from the Codex subagent templates that reference them",
121
+ },
122
+ { family: "scoped-prompt", support: "supported" },
123
+ {
124
+ family: "lifecycle-hook",
125
+ support: "degraded",
126
+ reason: "Only SessionStart and PostToolUse command hooks have native Codex projections",
127
+ },
128
+ {
129
+ family: "tool-configuration",
130
+ support: "unsupported",
131
+ reason: "Harness tool configuration is not projected into Codex config",
132
+ },
133
+ { family: "subagent-template", support: "supported" },
134
+ ],
135
+ },
136
+ project: projectContribution,
137
+ };
@@ -0,0 +1,5 @@
1
+ import type { HarnessCapabilityMatrix } from "@punks/scaffold/harness-capability";
2
+ import type { HarnessProjectionAdapter } from "../contract";
3
+
4
+ export declare const cursorAdapter: HarnessProjectionAdapter;
5
+ export declare const cursorCapabilityMatrix: HarnessCapabilityMatrix;