@punks/cli 2.6.1 → 3.0.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.
- package/AGENTS.md +1 -1
- package/README.md +44 -24
- package/dist/BASELINE_CHANGELOG.md +57 -0
- package/dist/CHANGELOG.md +83 -0
- package/dist/data/scripts/harness-projection/adapters/claude.d.mts +3 -0
- package/dist/data/scripts/harness-projection/adapters/claude.mjs +124 -0
- package/dist/data/scripts/harness-projection/adapters/codex.d.mts +3 -0
- package/dist/data/scripts/harness-projection/adapters/codex.mjs +137 -0
- package/dist/data/scripts/harness-projection/adapters/cursor.d.mts +5 -0
- package/dist/data/scripts/harness-projection/adapters/cursor.mjs +106 -0
- package/dist/data/scripts/harness-projection/adapters/opencode.d.mts +5 -0
- package/dist/data/scripts/harness-projection/adapters/opencode.mjs +100 -0
- package/dist/data/scripts/harness-projection/apply.d.mts +12 -0
- package/dist/data/scripts/harness-projection/apply.mjs +96 -0
- package/dist/data/scripts/harness-projection/core.d.mts +8 -0
- package/dist/data/scripts/harness-projection/core.mjs +239 -0
- package/dist/data/scripts/harness-projection/test-fixtures/application-context-plan.json +27 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +109 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/context-plan.json +150 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/matrix.json +23 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/traces.json +15 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +124 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/context-plan.json +150 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/matrix.json +23 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/traces.json +15 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/compiler-input.json +93 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/context-plan.json +108 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/matrix.json +19 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +54 -0
- package/dist/data/scripts/harness-projection/test-fixtures/mixed-context-plan.json +35 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/compiler-input.json +93 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/context-plan.json +108 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/matrix.json +19 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +51 -0
- package/dist/data/scripts/sync-subagents.mjs +1113 -33
- package/dist/data/subagents/manifest.mjs +5 -6
- package/dist/index.js +1373 -62672
- package/dist/skills/agnostic/cli/hi-cli/SKILL.md +17 -121
- package/dist/skills/agnostic/cli/hi-cli/references/commands.md +32 -47
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +73 -62
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +2 -2
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +11 -10
- package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +10 -31
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +2 -2
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -5
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +1 -0
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +2 -2
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +4 -9
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +1 -0
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +1 -1
- package/dist/skills/agnostic/requirements/grilling/LICENSE +21 -0
- package/dist/skills/agnostic/requirements/grilling/SKILL.md +6 -30
- package/dist/skills/agnostic/requirements/grilling/UPSTREAM.md +16 -0
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -5
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +40 -16
- package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +3 -16
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +21 -15
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +14 -14
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +28 -9
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +45 -5
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -28
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +22 -6
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +47 -22
- package/dist/skills/frameworks/effect/effect/LICENSE +21 -0
- package/dist/skills/frameworks/effect/effect/SKILL.md +100 -0
- package/dist/skills/frameworks/effect/effect/UPSTREAM.md +11 -0
- package/dist/skills/frameworks/effect/effect/references/CACHING.md +76 -0
- package/dist/skills/frameworks/effect/effect/references/CONFIG.md +67 -0
- package/dist/skills/frameworks/effect/effect/references/HTTP_CLIENTS.md +101 -0
- package/dist/skills/frameworks/effect/{effect-authoring/references/otel-patterns.md → effect/references/OBSERVABILITY.md} +4 -29
- package/dist/skills/frameworks/effect/effect/references/SCHEDULING.md +135 -0
- package/dist/skills/frameworks/effect/effect/references/SCHEMA.md +130 -0
- package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +168 -0
- package/dist/skills/frameworks/effect/effect/references/STREAMS.md +135 -0
- package/dist/skills/frameworks/effect/effect/references/TESTING.md +118 -0
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +7 -8
- package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +1 -1
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
- package/dist/skills/misc/secrets-cli/SKILL.md +54 -0
- package/dist/skills/misc/secrets-cli/references/command-reference.md +107 -0
- package/dist/skills/misc/secrets-cli/references/safety-and-errors.md +54 -0
- package/dist/skills/misc/secrets-cli/references/workflows.md +106 -0
- package/dist/skills/phases/design-phase/phases/grill.md +1 -1
- package/dist/skills/phases/requirements-phase/SKILL.md +2 -4
- package/dist/skills/phases/review-phase/REFERENCE.md +13 -5
- package/dist/skills/phases/review-phase/SKILL.md +3 -2
- package/package.json +1 -1
- package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
- package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
- package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
- package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
- package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
- package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
- package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
- package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
- package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
- package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
- package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
- package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
- package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
- package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
- package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
- /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-
|
|
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,32 +2,29 @@
|
|
|
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
|
|
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
|
|
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
|
|
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
|
+
refresh auto-managed required tools and validate manual platform tools; `hint tools ensure` is the same command
|
|
19
17
|
- `hi report`
|
|
20
18
|
submit structured Harness friction for maintainer triage
|
|
21
19
|
|
|
22
20
|
## Usage
|
|
23
21
|
|
|
24
22
|
```bash
|
|
23
|
+
hi init
|
|
25
24
|
hi scaffold
|
|
26
|
-
hi scaffold
|
|
27
|
-
hi scaffold
|
|
28
|
-
hi scaffold
|
|
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,9 +39,9 @@ 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
|
|
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
|
|
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
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
|
|
|
@@ -52,7 +49,7 @@ Before refreshing generated skills, setup/update may take a blind evidence snaps
|
|
|
52
49
|
|
|
53
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.
|
|
54
51
|
|
|
55
|
-
`hi tools ensure` / `hint tools ensure`
|
|
52
|
+
`hi tools ensure` / `hint tools ensure` reads required tool IDs from `.devpunks/settings.json`, or uses the default Harness toolchain outside a scaffolded repo. It refreshes every auto-managed tool through the selected baseline's explicit trusted latest install target even when the binary is already present. Manual platform tools such as `gh`, `az`, and `glab` are validation-only exclusions: the command never upgrades them and fails with installation guidance when one is missing. Scaffold and update retain their narrower repair policy: install missing auto-managed tools and repair declared minimum-version drift only. In particular, their `opensrc` target remains `^0.7.2`, while `hi tools ensure` uses `opensrc@latest`. After refreshing `agent-browser`, the command preserves browser provisioning and skips its browser download when a configured or supported Chrome, Chromium, or Brave executable already exists. Install contracts come from the selected verified baseline, not repo-owned metadata. Stable and exact authority failures stop the command; pass `--baseline bundled` only when you intentionally want the npm-shipped baseline.
|
|
56
53
|
|
|
57
54
|
`hi -v` / `hint -v` is equivalent to `hi --version` / `hint --version`.
|
|
58
55
|
|
|
@@ -66,19 +63,18 @@ Language packs are detected separately from framework packs. TypeScript is selec
|
|
|
66
63
|
|
|
67
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.
|
|
68
65
|
|
|
69
|
-
|
|
66
|
+
Use the CLI-owned operator commands for the global `hi-cli` skill:
|
|
70
67
|
|
|
71
68
|
```bash
|
|
72
|
-
|
|
69
|
+
hi operator status
|
|
70
|
+
hi operator install
|
|
71
|
+
hi operator update
|
|
72
|
+
hi operator migrate
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
npx skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/hi-cli --skill hi-cli --global --yes
|
|
79
|
-
```
|
|
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.
|
|
80
76
|
|
|
81
|
-
|
|
77
|
+
Operator writes require Skills CLI 1.5.20 or newer. The CLI fetches the frozen shared-skills revision into a scoped temporary Git checkout, verifies the fetched commit exactly, and passes the checked-out `hi-cli` directory to `skills add --copy`. It removes the checkout on every exit and reinspects the installed manifest before migration removes any legacy `dp-cli` copy.
|
|
82
78
|
|
|
83
79
|
The lint scaffold is intentionally agent-facing rather than repo-mutating:
|
|
84
80
|
|
|
@@ -102,11 +98,11 @@ On startup, `hi` checks interactive TTY commands for a newer CLI and asks before
|
|
|
102
98
|
Use one command per release type:
|
|
103
99
|
|
|
104
100
|
```bash
|
|
105
|
-
bun run baseline:publish
|
|
101
|
+
BASELINE_VERSION=YYYY.MM.DD-short-slug BASELINE_CLI_VERSION_RANGE='>=2.6.0 <3' bun run baseline:publish
|
|
106
102
|
bun run release:publish
|
|
107
103
|
```
|
|
108
104
|
|
|
109
|
-
`bun run baseline:publish` builds the current scaffold baseline, creates or updates the `baseline/stable/<
|
|
105
|
+
`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.
|
|
110
106
|
|
|
111
107
|
`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`.
|
|
112
108
|
|
|
@@ -123,6 +119,30 @@ The logged-in account must have publish access to `@punks/cli`.
|
|
|
123
119
|
|
|
124
120
|
## Development
|
|
125
121
|
|
|
122
|
+
From the repository root, run the current TypeScript source instead of the globally installed
|
|
123
|
+
package:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
bun run cli -- --help
|
|
127
|
+
bun run cli -- check --baseline bundled --input .
|
|
128
|
+
bun run cli:entrypoints
|
|
129
|
+
bun run cli:ui
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
`bun run cli -- <path>` disables the CLI and operator-skill startup update checks for that source
|
|
133
|
+
process. `bun run cli:entrypoints` derives every root and nested command path from the executable
|
|
134
|
+
registry and prints ready-to-copy help commands plus the native global actions. `bun run cli:ui`
|
|
135
|
+
renders the developer-only terminal/HTML catalog, retains it in a fresh temporary preview directory,
|
|
136
|
+
and prints the `file://` URL. Use `bun run --cwd apps/cli ui:catalog -- --check` for a self-cleaning
|
|
137
|
+
catalog validation or pass `--output <run-owned-directory>` to choose the retained destination. The
|
|
138
|
+
catalog script and fixtures are excluded from the npm package.
|
|
139
|
+
|
|
140
|
+
Interactive output uses open terminal rails: `◇` section headings, `│` rows, and a final `└` row.
|
|
141
|
+
The large gradient title appears on the interactive root guide reached through bare `hi`,
|
|
142
|
+
`hi --help`, `hi -h`, or `hi --wizard`. Redirected plain output keeps its stable ANSI-free
|
|
143
|
+
contract. `NO_COLOR` always disables color; `FORCE_COLOR=0` also disables it, while other
|
|
144
|
+
`FORCE_COLOR` values enable the configured `HI_THEME`/`COLORFGBG` palette.
|
|
145
|
+
|
|
126
146
|
```bash
|
|
127
147
|
bun install
|
|
128
148
|
bun run build
|
|
@@ -1,5 +1,62 @@
|
|
|
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
|
+
|
|
3
60
|
## baseline/stable/2026.07.13-runtime-product-validation - 2026-07-13
|
|
4
61
|
|
|
5
62
|
### Changed
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.0.0 - 2026-07-28
|
|
4
|
+
|
|
5
|
+
Stable M7-M9 release 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
|
+
- Make `hi tools ensure` refresh every auto-managed required tool through a baseline-owned explicit latest target while keeping manual platform tools validation-only and preserving scaffold/update minimum-version repair behavior.
|
|
17
|
+
- Sync and pin the `hi-cli` operator skill 1.1.0 to `wearedevpunks/skills@09a6f3c`, aligned with v3 root `init`, `scaffold`, and `check`, settings-only `ensure`, and latest-refresh `tools ensure`.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Keep JSON and redirected command output machine-safe and noninteractive while preserving cancellation, rollback ownership, and fail-closed baseline behavior.
|
|
22
|
+
- Harden Linux validation, generated wiki/scaffold determinism, cleanup ownership, and provider interruption handling across the M7-M9 release gates.
|
|
23
|
+
- Materialize the frozen `hi-cli` revision in an exact detached temporary Git checkout before invoking Skills CLI 1.5.20 with a copied local source, while retaining post-write manifest verification before legacy removal and cleaning temporary state on every exit.
|
|
24
|
+
|
|
25
|
+
## baseline/stable/2026.07.23-effect-v4-source-authority - 2026-07-23
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- Sync Effect skills from `wearedevpunks/skills@45d731db6f5f3e715ecbd2db195b7f68d13dcff9`.
|
|
30
|
+
- 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)).
|
|
31
|
+
- 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.
|
|
32
|
+
|
|
33
|
+
## baseline/stable/2026.07.21-create-spec-vocabulary-removal - 2026-07-21
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- Sync `create-spec` from `wearedevpunks/skills@52866e7` and end the skill at completed-spec review.
|
|
38
|
+
|
|
39
|
+
## baseline/stable/2026.07.17-grilling-primitive-contract - 2026-07-17
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- Sync shared skills from `wearedevpunks/skills@e2039dd`.
|
|
44
|
+
- 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.
|
|
45
|
+
|
|
46
|
+
## baseline/stable/2026.07.17-batched-grilling-frontier - 2026-07-17
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- Sync shared skills from `wearedevpunks/skills@9fb9184`.
|
|
51
|
+
- 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.
|
|
52
|
+
- 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.
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- Advertise explicit-only `design-phase` as a global workflow entrypoint while excluding it from scoped primary-skill generation.
|
|
57
|
+
|
|
58
|
+
## baseline/stable/2026.07.16-effect-v4-consolidation - 2026-07-16
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
|
|
62
|
+
- Make `effect` the sole canonical Effect v4 patterns and authoring skill, with Effect-Atom and observability guidance disclosed as focused references.
|
|
63
|
+
- Remove the redundant `effect-authoring` skill after syncing `wearedevpunks/skills@65b8833`; retain the distinct backend-structure and recoverable-action workflows.
|
|
64
|
+
|
|
65
|
+
## baseline/stable/2026.07.16-effect-v4-patterns - 2026-07-16
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
|
|
69
|
+
- Replace the overlapping `effect-best-practices` skill with the pinned, MIT-licensed Effect v4 `effect` skill from `wearedevpunks/skills@d18cfc7`.
|
|
70
|
+
- Route the detected Effect pack and bundled subagent guidance through the canonical `effect` skill while retaining distinct authoring, backend-structure, and recoverable-action workflows.
|
|
71
|
+
|
|
72
|
+
## baseline/stable/2026.07.13-create-spec-title-frontmatter - 2026-07-13
|
|
73
|
+
|
|
74
|
+
### Fixed
|
|
75
|
+
|
|
76
|
+
- 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)).
|
|
77
|
+
|
|
78
|
+
## 2.6.2 - 2026-07-13
|
|
79
|
+
|
|
80
|
+
Pending npm publish: `@punks/cli@2.6.2`.
|
|
81
|
+
|
|
82
|
+
### Fixed
|
|
83
|
+
|
|
84
|
+
- 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)).
|
|
85
|
+
|
|
3
86
|
## 2.6.1 - 2026-07-13
|
|
4
87
|
|
|
5
88
|
Pending npm publish: `@punks/cli@2.6.1`.
|
|
@@ -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,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;
|