@punks/cli 3.0.0-beta.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,7 +13,7 @@ At runtime, stable and exact scaffold requests resolve through the verified cont
13
13
  - `hi scaffold`
14
14
  detect the target repo, confirm or auto-accept pack selection, and write repo-aware scaffold output
15
15
  - `hi tools ensure`
16
- check and repair required external tools; `hint tools ensure` is the same command
16
+ refresh auto-managed required tools and validate manual platform tools; `hint tools ensure` is the same command
17
17
  - `hi report`
18
18
  submit structured Harness friction for maintainer triage
19
19
 
@@ -49,7 +49,7 @@ Before refreshing generated skills, setup/update may take a blind evidence snaps
49
49
 
50
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
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.
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.
53
53
 
54
54
  `hi -v` / `hint -v` is equivalent to `hi --version` / `hint --version`.
55
55
 
@@ -57,7 +57,10 @@ Post-update follow-through starts from the current summary and changed paths, no
57
57
 
58
58
  Interactive commands check the selected npm dist-tag before running. When a newer CLI is available, `hi` asks for confirmation, reinstalls through the detected global package manager, and exits so the command can be rerun on the upgraded binary. `hi upgrade` keeps the same installer path as an explicit manual command. Use `--tag next` for prerelease channels or `--force` to reinstall the selected tag even when the current version is fresh.
59
59
 
60
- Use `--baseline bundled` to force the npm-shipped baseline, or `--refresh-baseline` to refetch the stable remote baseline.
60
+ `hi check` always refetches stable or exact remote baseline metadata and bytes. Its
61
+ `--refresh-baseline` flag remains accepted for backward compatibility. Use
62
+ `--baseline bundled` or `DP_BASELINE=bundled` to force the verified npm-shipped
63
+ baseline for diagnostics or tests.
61
64
 
62
65
  Language packs are detected separately from framework packs. TypeScript is selected when scanned manifests depend on `typescript` or when nested source files include `.ts` / `.tsx`; Python is selected from nested `.py` files. Root-level config files and vendor, virtualenv, generated, scaffold, docs, examples, `scripts`, `opensrc`, agent/cache/worktree, and build output directories are ignored.
63
66
 
@@ -74,6 +77,8 @@ hi operator migrate
74
77
 
75
78
  `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.
76
79
 
80
+ 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.
81
+
77
82
  The lint scaffold is intentionally agent-facing rather than repo-mutating:
78
83
 
79
84
  - selected lint assets are emitted under `.devpunks/specs/lint/`
@@ -1,5 +1,27 @@
1
1
  # Baseline Changelog
2
2
 
3
+ ## 3.0.0 - 2026-07-29
4
+
5
+ ### Added
6
+
7
+ - Publish the CLI 3.0.0 scaffold baseline as `baseline/stable/2026.07.29-cli-3.0.0`; see the detailed entry below.
8
+
9
+ ### Changed
10
+
11
+ - Align bundled baseline identity and compatibility metadata with `baseline/stable/2026.07.29-cli-3.0.0` (`>=3.0.0 <4`).
12
+
13
+ ## baseline/stable/2026.07.29-cli-3.0.0 - 2026-07-29
14
+
15
+ ### Added
16
+
17
+ - Add deterministic harness context projection adapters and contract fixtures for Claude, Codex, Cursor, and OpenCode.
18
+ - Add synchronized subagent projection assets and expanded `write-backlog` provider guidance to the CLI scaffold baseline.
19
+
20
+ ### Changed
21
+
22
+ - Consolidate the scaffold's Effect guidance on the canonical Effect v4 skill and remove the superseded Effect v3-era skill surfaces.
23
+ - Align the bundled `hi-cli`, planning, specification, implementation, requirements, review, and recovery guidance with the 3.0.0 CLI architecture and lifecycle contracts.
24
+
3
25
  ## baseline/stable/2026.07.23-effect-v4-source-authority - 2026-07-23
4
26
 
5
27
  ### Fixed
package/dist/CHANGELOG.md CHANGED
@@ -1,8 +1,24 @@
1
1
  # Changelog
2
2
 
3
- ## 3.0.0-beta.0 - 2026-07-28
3
+ ## 3.0.1 - 2026-07-30
4
4
 
5
- Prerelease of the M7-M9 delivery completed in [#88](https://github.com/wearedevpunks/harness-intelligence/pull/88).
5
+ ### Added
6
+
7
+ - Add installed-tarball regression coverage that proves repeated plain `hi check` runs fetch fresh remote baseline metadata and archives.
8
+
9
+ ### Changed
10
+
11
+ - Resolve every non-bundled `hi check` against fresh remote baseline authority, defaulting an omitted selector to the configured baseline or `stable`.
12
+
13
+ ### Fixed
14
+
15
+ - Report unavailable remote baseline authority without claiming scaffold drift, while preserving fatal integrity failures for bundled baselines.
16
+
17
+ ## 3.0.0 - 2026-07-28
18
+
19
+ Published as `@punks/cli@3.0.0` with tag `v3.0.0` after the stable M7-M9 cutover.
20
+
21
+ Stable M7-M9 release completed in [#88](https://github.com/wearedevpunks/harness-intelligence/pull/88).
6
22
 
7
23
  ### Added
8
24
 
@@ -13,11 +29,14 @@ Prerelease of the M7-M9 delivery completed in [#88](https://github.com/wearedevp
13
29
 
14
30
  - Rebuild CLI orchestration around feature-owned Effect v4 domains, typed failures, explicit configuration boundaries, and a unified command metadata authority.
15
31
  - Converge settings, scaffold state, context projection, and non-destructive reconciliation behind deterministic plans shared by `hi init`, `hi check`, and `hi update`.
32
+ - 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.
33
+ - 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`.
16
34
 
17
35
  ### Fixed
18
36
 
19
37
  - Keep JSON and redirected command output machine-safe and noninteractive while preserving cancellation, rollback ownership, and fail-closed baseline behavior.
20
38
  - Harden Linux validation, generated wiki/scaffold determinism, cleanup ownership, and provider interruption handling across the M7-M9 release gates.
39
+ - 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.
21
40
 
22
41
  ## baseline/stable/2026.07.23-effect-v4-source-authority - 2026-07-23
23
42
 
@@ -55,7 +55,24 @@ function checkCommand(root) {
55
55
  }
56
56
 
57
57
  const command = commandExists("hi", root) ? "hi" : commandExists("hint", root) ? "hint" : null;
58
- return command === null ? null : [command, "check"];
58
+ return command === null ? null : [command, "check", "--json"];
59
+ }
60
+
61
+ function parseCheckResult(output) {
62
+ try {
63
+ const result = JSON.parse(output);
64
+ return typeof result === "object" && result !== null ? result : null;
65
+ } catch {
66
+ return null;
67
+ }
68
+ }
69
+
70
+ function confirmedDrift(result) {
71
+ return (
72
+ result?.operation?.status === "failed" &&
73
+ Array.isArray(result.operation.issues) &&
74
+ result.operation.issues.some((issue) => issue?.code === "drift-detected")
75
+ );
59
76
  }
60
77
 
61
78
  function runUpdateCheck(root) {
@@ -101,6 +118,25 @@ function runUpdateCheck(root) {
101
118
  return { status: "ok", message: okMessage };
102
119
  }
103
120
 
121
+ const checkResult = parseCheckResult(result.stdout.trim());
122
+ if (!confirmedDrift(checkResult)) {
123
+ const source = checkResult?.availability?.source ?? "check-command";
124
+ const detail = checkResult?.availability?.detail ?? output ?? "(no command output)";
125
+ return {
126
+ status: "unavailable",
127
+ message: [
128
+ "Harness scaffold check unavailable.",
129
+ "",
130
+ `Command: ${commandLabel}`,
131
+ `Source: ${source}`,
132
+ "",
133
+ detail,
134
+ "",
135
+ "No scaffold drift was confirmed. Retry the read-only check after the source recovers.",
136
+ ].join("\n"),
137
+ };
138
+ }
139
+
104
140
  return {
105
141
  status: "diverged",
106
142
  message: [
@@ -125,7 +161,12 @@ function formatForHarness(message, harness) {
125
161
  continue: true,
126
162
  additional_context: message,
127
163
  agent_message: message,
128
- user_message: message === okMessage ? okMessage : "Harness scaffold divergence detected.",
164
+ user_message:
165
+ message === okMessage
166
+ ? okMessage
167
+ : message.startsWith("Harness scaffold check unavailable.")
168
+ ? "Harness scaffold check unavailable."
169
+ : "Harness scaffold divergence detected.",
129
170
  });
130
171
  }
131
172