@punks/cli 2.4.2 → 2.5.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/README.md +35 -35
- package/dist/BASELINE_CHANGELOG.md +8 -0
- package/dist/CHANGELOG.md +23 -0
- package/dist/data/hooks/scaffold-update-check.mjs +2 -2
- package/dist/index.js +52 -100
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +28 -26
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +15 -13
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +8 -8
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Harness Intelligence CLI
|
|
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
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.
|
|
6
6
|
|
|
7
7
|
## Commands
|
|
8
8
|
|
|
9
|
-
- `
|
|
9
|
+
- `hi`
|
|
10
10
|
show the command guide
|
|
11
|
-
- `
|
|
11
|
+
- `hi scaffold`
|
|
12
12
|
show the scaffold lifecycle index
|
|
13
|
-
- `
|
|
13
|
+
- `hi scaffold init`
|
|
14
14
|
choose a backlog provider, scaffold requirements/backlog skills, and seed the initial wiki tree
|
|
15
|
-
- `
|
|
15
|
+
- `hi scaffold setup`
|
|
16
16
|
detect the target repo, confirm or auto-accept pack selection, and write repo-aware scaffold output
|
|
17
|
-
- `
|
|
18
|
-
check and repair required external tools; `
|
|
19
|
-
- `
|
|
17
|
+
- `hi tools ensure`
|
|
18
|
+
check and repair required external tools; `hint tools ensure` is the same command
|
|
19
|
+
- `hi report`
|
|
20
20
|
submit structured Harness friction for maintainer triage
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
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
|
|
31
|
+
hi tools ensure
|
|
32
|
+
hint tools ensure
|
|
33
|
+
hi update --yes
|
|
34
|
+
hi report --help
|
|
35
|
+
hi --version
|
|
36
|
+
hi -v
|
|
37
|
+
hint --version
|
|
38
|
+
hint -v
|
|
39
39
|
bun run sync:skills
|
|
40
40
|
bun run baseline:build
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
`bun run sync:skills` updates a local cache clone of `wearedevpunks/skills` and then replaces only `skills/`, overwriting any local changes there.
|
|
44
44
|
|
|
45
|
-
`
|
|
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 `$dp-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
46
|
|
|
47
|
-
`
|
|
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.
|
|
48
48
|
|
|
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 `
|
|
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.
|
|
50
50
|
|
|
51
|
-
`
|
|
51
|
+
`hi update --yes` applies managed scaffold updates without prompting. It is the non-interactive alias for the apply behavior of `--write`.
|
|
52
52
|
|
|
53
|
-
`
|
|
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.
|
|
54
54
|
|
|
55
|
-
`
|
|
55
|
+
`hi -v` / `hint -v` is equivalent to `hi --version` / `hint --version`.
|
|
56
56
|
|
|
57
|
-
`
|
|
57
|
+
`hi report` submits reusable Harness docs, workflow, tooling, CLI, skill-pack, or wiki friction to the Harness API. Public CLI submissions are validated, given deterministic metadata, deduped against open `harness-report` issues, and created as GitHub issues for maintainer triage. Missing server GitHub credentials fail the command instead of silently storing an internal-only report.
|
|
58
58
|
|
|
59
|
-
Interactive commands check the selected npm dist-tag before running. When a newer CLI is available, `
|
|
59
|
+
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.
|
|
60
60
|
|
|
61
61
|
Use `--baseline bundled` to force the npm-shipped baseline, or `--refresh-baseline` to refetch the stable remote baseline.
|
|
62
62
|
|
|
@@ -81,7 +81,7 @@ The lint scaffold is intentionally agent-facing rather than repo-mutating:
|
|
|
81
81
|
- selected lint assets are emitted under `.devpunks/specs/lint/`
|
|
82
82
|
- each asset carries Oxlint rule payload plus placement guidance
|
|
83
83
|
- if the target repo has no root Oxlint config yet, scaffold also emits a starter `.devpunks/specs/lint/oxlint-starter.json`
|
|
84
|
-
- the follow-up agent fits those assets into the repo's real lint topology instead of `
|
|
84
|
+
- the follow-up agent fits those assets into the repo's real lint topology instead of `hi` editing `.oxlintrc.json` directly
|
|
85
85
|
|
|
86
86
|
Current scaffold-managed global tools:
|
|
87
87
|
|
|
@@ -91,7 +91,7 @@ Current scaffold-managed global tools:
|
|
|
91
91
|
- `portless`
|
|
92
92
|
- `skills`
|
|
93
93
|
|
|
94
|
-
On startup, `
|
|
94
|
+
On startup, `hi` checks interactive TTY commands for a newer CLI and asks before installing. `--help`, `--version`, CI, non-interactive commands, and `DP_NO_UPDATE_CHECK=1` skip the prompt. The `dp-cli` operator skill check stays detached and advisory, runs at most once per 12 hours by default, and never updates skills while another CLI command is starting. Set `DP_NO_SKILL_UPDATE_CHECK=1` to skip that check or `DP_STARTUP_CHECK_INTERVAL_MS=0` to force the worker during local testing.
|
|
95
95
|
|
|
96
96
|
## Publishing
|
|
97
97
|
|
|
@@ -106,7 +106,7 @@ bun run release:publish
|
|
|
106
106
|
|
|
107
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`.
|
|
108
108
|
|
|
109
|
-
The published `
|
|
109
|
+
The published `hi` / `hint` commands do not require Bun at runtime. Bun is needed to build and publish from this repo; the npm package contains the compiled Node entrypoint plus bundled scaffold assets.
|
|
110
110
|
|
|
111
111
|
Before npm releases, authenticate against the public npm registry:
|
|
112
112
|
|
|
@@ -129,5 +129,5 @@ bun run check-types
|
|
|
129
129
|
|
|
130
130
|
## Docs
|
|
131
131
|
|
|
132
|
-
- [Scaffolding runbook](./docs/runbooks/
|
|
132
|
+
- [Scaffolding runbook](./docs/runbooks/hi-cli-scaffolding.md)
|
|
133
133
|
- [Example: cicilca-doc-portal](./examples/cicilca-doc-portal/README.md)
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Baseline Changelog
|
|
2
2
|
|
|
3
|
+
## baseline/stable/2026.07.08-hi-command-rebrand - 2026-07-08
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Release the Harness Intelligence CLI command rename in the stable scaffold baseline: generated command guidance now uses `hi`, with `hint` as the alias, while the npm package remains `@punks/cli`.
|
|
8
|
+
- Keep `$dp-cli` as the operator skill id and refresh bundled skill guidance, startup checks, hooks, scaffold handoffs, and generated prompts around `hi` command names.
|
|
9
|
+
- Update the root/scaffold command guide title to `HARNESS INTELLIGENCE`.
|
|
10
|
+
|
|
3
11
|
## baseline/stable/2026.07.06-finder-phase-wayfinder - 2026-07-06
|
|
4
12
|
|
|
5
13
|
### Changed
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.5.0 - 2026-07-08
|
|
4
|
+
|
|
5
|
+
Pending npm publish: `@punks/cli@2.5.0`.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Rebrand the installed executable and user-facing command tree from `dp`/`punks`/`devpunks` to `hi`, with `hint` as an alias, while keeping the npm package identity at `@punks/cli`.
|
|
10
|
+
- Update root/scaffold command guides, startup checks, scaffold handoffs, hooks, and bundled `dp-cli` guidance to use `hi` command names and the `HARNESS INTELLIGENCE` title.
|
|
11
|
+
|
|
12
|
+
## baseline/stable/2026.07.08-hi-command-rebrand - 2026-07-08
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Release the scaffold baseline for the `hi`/`hint` command rename, updated `$dp-cli` guidance, hooks, handoffs, generated prompts, and `HARNESS INTELLIGENCE` title.
|
|
17
|
+
|
|
18
|
+
## 2.4.3 - 2026-07-07
|
|
19
|
+
|
|
20
|
+
Pending npm publish: `@punks/cli@2.4.3`.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Clarify the `dp scaffold init` operator prompt so it describes the generated default-pack managed scaffold surface and separates the four onboarding entrypoint skills from the full scaffolded skill set.
|
|
25
|
+
|
|
3
26
|
## 2.4.2 - 2026-07-07
|
|
4
27
|
|
|
5
28
|
Pending npm publish: `@punks/cli@2.4.2`.
|
|
@@ -54,7 +54,7 @@ function checkCommand(root) {
|
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const command = commandExists("
|
|
57
|
+
const command = commandExists("hi", root) ? "hi" : commandExists("hint", root) ? "hint" : null;
|
|
58
58
|
return command === null ? null : [command, "check"];
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ function runUpdateCheck(root) {
|
|
|
67
67
|
if (command === null) {
|
|
68
68
|
return {
|
|
69
69
|
status: "skipped",
|
|
70
|
-
message: "Harness scaffold check: skipped (
|
|
70
|
+
message: "Harness scaffold check: skipped (hi command not found).",
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
package/dist/index.js
CHANGED
|
@@ -51355,7 +51355,7 @@ var embeddedAssets = [];
|
|
|
51355
51355
|
|
|
51356
51356
|
// package.json
|
|
51357
51357
|
var name = "@punks/cli";
|
|
51358
|
-
var version = "2.
|
|
51358
|
+
var version = "2.5.0";
|
|
51359
51359
|
// src/content/data.ts
|
|
51360
51360
|
var findFirst8 = (candidates) => candidates.find((candidate) => existsSync(candidate));
|
|
51361
51361
|
var executableSignature = () => {
|
|
@@ -55960,7 +55960,7 @@ var formatConfirmationSummary = (result, baseline = bundledBaseline) => [
|
|
|
55960
55960
|
var formatAgentHandoffSummary = (result) => [
|
|
55961
55961
|
"Give this to the next agent",
|
|
55962
55962
|
"",
|
|
55963
|
-
"You are continuing a `
|
|
55963
|
+
"You are continuing a `hi scaffold` run.",
|
|
55964
55964
|
"",
|
|
55965
55965
|
"Read first:",
|
|
55966
55966
|
` • \`${result.scaffoldManifestFile}\``,
|
|
@@ -56164,7 +56164,7 @@ var reset2 = "\x1B[0m";
|
|
|
56164
56164
|
var foreground = (red5, green4, blue3) => `\x1B[38;2;${red5};${green4};${blue3}m`;
|
|
56165
56165
|
var background = (red5, green4, blue3) => `\x1B[48;2;${red5};${green4};${blue3}m`;
|
|
56166
56166
|
var detectTerminalTheme = () => {
|
|
56167
|
-
const forced2 = process.env.
|
|
56167
|
+
const forced2 = process.env.HI_THEME?.toLowerCase();
|
|
56168
56168
|
if (forced2 === "light" || forced2 === "dark") {
|
|
56169
56169
|
return forced2;
|
|
56170
56170
|
}
|
|
@@ -56196,7 +56196,6 @@ var supportsColor = process.env.NO_COLOR === undefined && (process.stdout.isTTY
|
|
|
56196
56196
|
var paint = (color3, value6) => supportsColor ? `${color3}${value6}${reset2}` : value6;
|
|
56197
56197
|
var paintGlyph = (value6) => paint(`${brandPalette.bold}${brandPalette.border}`, value6);
|
|
56198
56198
|
var paintChip = (value6) => supportsColor ? `${brandPalette.panel}${brandPalette.ink}${value6}${reset2}` : value6;
|
|
56199
|
-
var logoPalette = ["#1200ff", "#81ff45"];
|
|
56200
56199
|
var sectionWidth = 95;
|
|
56201
56200
|
var padPanel = (value6) => value6.padEnd(sectionWidth - 4, " ");
|
|
56202
56201
|
var wrapLine = (value6) => {
|
|
@@ -56225,60 +56224,8 @@ var wrapLine = (value6) => {
|
|
|
56225
56224
|
}
|
|
56226
56225
|
return lines3;
|
|
56227
56226
|
};
|
|
56228
|
-
var
|
|
56229
|
-
"██████╗ ███████╗██╗ ██╗",
|
|
56230
|
-
"██╔══██╗██╔════╝██║ ██║",
|
|
56231
|
-
"██║ ██║█████╗ ██║ ██║",
|
|
56232
|
-
"██║ ██║██╔══╝ ╚██╗ ██╔╝",
|
|
56233
|
-
"██████╔╝███████╗ ╚████╔╝",
|
|
56234
|
-
"╚═════╝ ╚══════╝ ╚═══╝",
|
|
56235
|
-
"",
|
|
56236
|
-
"██████╗ ██╗ ██╗███╗ ██╗██╗ ██╗███████╗",
|
|
56237
|
-
"██╔══██╗██║ ██║████╗ ██║██║ ██╔╝██╔════╝",
|
|
56238
|
-
"██████╔╝██║ ██║██╔██╗ ██║█████╔╝ ███████╗",
|
|
56239
|
-
"██╔═══╝ ██║ ██║██║╚██╗██║██╔═██╗ ╚════██║",
|
|
56240
|
-
"██║ ╚██████╔╝██║ ╚████║██║ ██╗███████║",
|
|
56241
|
-
"╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝"
|
|
56242
|
-
];
|
|
56243
|
-
var scaffoldLogoLines = [
|
|
56244
|
-
"███████╗ ██████╗ █████╗ ███████╗███████╗ ██████╗ ██╗ ██████╗",
|
|
56245
|
-
"██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝██╔═══██╗██║ ██╔══██╗",
|
|
56246
|
-
"███████╗██║ ███████║█████╗ █████╗ ██║ ██║██║ ██║ ██║",
|
|
56247
|
-
"╚════██║██║ ██╔══██║██╔══╝ ██╔══╝ ██║ ██║██║ ██║ ██║",
|
|
56248
|
-
"███████║╚██████╗██║ ██║██║ ██║ ╚██████╔╝███████╗██████╔╝",
|
|
56249
|
-
"╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═════╝"
|
|
56250
|
-
];
|
|
56251
|
-
var hexToRgb = (value6) => [
|
|
56252
|
-
Number.parseInt(value6.slice(1, 3), 16),
|
|
56253
|
-
Number.parseInt(value6.slice(3, 5), 16),
|
|
56254
|
-
Number.parseInt(value6.slice(5, 7), 16)
|
|
56255
|
-
];
|
|
56256
|
-
var gradientStart = hexToRgb(logoPalette[0]);
|
|
56257
|
-
var gradientEnd = hexToRgb(logoPalette[1]);
|
|
56258
|
-
var interpolateChannel = (start4, end5, ratio) => Math.round(start4 + (end5 - start4) * ratio);
|
|
56259
|
-
var gradientColor = (ratio) => {
|
|
56260
|
-
const red5 = interpolateChannel(gradientStart[0], gradientEnd[0], ratio);
|
|
56261
|
-
const green4 = interpolateChannel(gradientStart[1], gradientEnd[1], ratio);
|
|
56262
|
-
const blue3 = interpolateChannel(gradientStart[2], gradientEnd[2], ratio);
|
|
56263
|
-
return `\x1B[1m\x1B[38;2;${red5};${green4};${blue3}m`;
|
|
56264
|
-
};
|
|
56265
|
-
var paintLogoGradient = (lines3) => {
|
|
56266
|
-
const visibleLines = lines3.filter((line4) => line4.length > 0);
|
|
56267
|
-
const denominator = Math.max(visibleLines.length - 1, 1);
|
|
56268
|
-
let visibleIndex = 0;
|
|
56269
|
-
return lines3.map((line4) => {
|
|
56270
|
-
if (line4.length === 0) {
|
|
56271
|
-
return "";
|
|
56272
|
-
}
|
|
56273
|
-
const ratio = visibleIndex / denominator;
|
|
56274
|
-
visibleIndex += 1;
|
|
56275
|
-
return paint(gradientColor(ratio), line4);
|
|
56276
|
-
}).join(`
|
|
56277
|
-
`);
|
|
56278
|
-
};
|
|
56279
|
-
var renderLogoTitle = (lines3) => ["", "", paintLogoGradient(lines3)].join(`
|
|
56227
|
+
var renderTitle = () => ["", "", paint(`${brandPalette.bold}${brandPalette.text}`, "HARNESS INTELLIGENCE")].join(`
|
|
56280
56228
|
`);
|
|
56281
|
-
var renderTitle = () => renderLogoTitle(rootLogoLines);
|
|
56282
56229
|
var renderBreadcrumb = (command) => [`${paintGlyph("┌")} ${paintChip(` ${command} `)}`, paintGlyph("│")].join(`
|
|
56283
56230
|
`);
|
|
56284
56231
|
var renderNotes = (lines3) => lines3.map(renderHint).join(`
|
|
@@ -56294,33 +56241,33 @@ var renderCommandGuide = () => [
|
|
|
56294
56241
|
renderTitle(),
|
|
56295
56242
|
"",
|
|
56296
56243
|
renderCommandIntro({
|
|
56297
|
-
command: "
|
|
56244
|
+
command: "hi",
|
|
56298
56245
|
title: "Available commands",
|
|
56299
56246
|
body: [
|
|
56300
56247
|
"commands:",
|
|
56301
|
-
" ›
|
|
56248
|
+
" › hi report",
|
|
56302
56249
|
" └ submit structured Harness friction for maintainer triage",
|
|
56303
|
-
" ›
|
|
56250
|
+
" › hi scaffold",
|
|
56304
56251
|
" └ show the scaffold lifecycle index and available setup commands",
|
|
56305
|
-
" ›
|
|
56252
|
+
" › hi tools",
|
|
56306
56253
|
" └ manage external Harness tool requirements",
|
|
56307
|
-
" ›
|
|
56254
|
+
" › hi check",
|
|
56308
56255
|
" └ check CLI executable and scaffold drift without writing",
|
|
56309
|
-
" ›
|
|
56256
|
+
" › hi update",
|
|
56310
56257
|
" └ refresh managed scaffold assets from `.devpunks/scaffold-manifest.json`",
|
|
56311
|
-
" ›
|
|
56258
|
+
" › hi upgrade",
|
|
56312
56259
|
" └ upgrade this CLI through the detected global package manager",
|
|
56313
56260
|
"",
|
|
56314
56261
|
"usage:",
|
|
56315
56262
|
" • agents should activate `$dp-cli` before acting on `.devpunks` output",
|
|
56316
|
-
" • start with `
|
|
56317
|
-
" • use `
|
|
56263
|
+
" • start with `hi scaffold` to inspect the lifecycle",
|
|
56264
|
+
" • use `hi scaffold init` to choose the backlog provider and start docs onboarding/wiki output",
|
|
56318
56265
|
" • reconcile the seeded wiki into the real repo layout before writing durable docs",
|
|
56319
|
-
" • use `
|
|
56320
|
-
" • use `
|
|
56321
|
-
" • use `
|
|
56322
|
-
" • use `
|
|
56323
|
-
" • use `
|
|
56266
|
+
" • use `hi scaffold setup` for repo-aware pack detection after repo boilerplate is ready",
|
|
56267
|
+
" • use `hi check` before work to catch CLI or scaffold baseline drift",
|
|
56268
|
+
" • use `hi update` after setup to pull newer scaffolded skills/prompts/manifests/hooks",
|
|
56269
|
+
" • use `hi tools ensure` to check and repair required external tools",
|
|
56270
|
+
" • use `hi report` when reusable Harness friction should open GitHub-backed triage",
|
|
56324
56271
|
" • accepted reports return a GitHub issue URL; missing server GitHub credentials fail the command",
|
|
56325
56272
|
"",
|
|
56326
56273
|
"operator notes:",
|
|
@@ -56332,13 +56279,13 @@ var renderCommandGuide = () => [
|
|
|
56332
56279
|
})
|
|
56333
56280
|
].join(`
|
|
56334
56281
|
`);
|
|
56335
|
-
var renderScaffoldTitle = () =>
|
|
56282
|
+
var renderScaffoldTitle = () => renderTitle();
|
|
56336
56283
|
var renderStageIntro = ({
|
|
56337
56284
|
commandId,
|
|
56338
56285
|
title,
|
|
56339
56286
|
body
|
|
56340
56287
|
}) => renderCommandIntro({
|
|
56341
|
-
command: `
|
|
56288
|
+
command: `hi scaffold ${commandId}`,
|
|
56342
56289
|
title,
|
|
56343
56290
|
body: [
|
|
56344
56291
|
body,
|
|
@@ -56353,7 +56300,7 @@ var renderStageIntro = ({
|
|
|
56353
56300
|
`)
|
|
56354
56301
|
});
|
|
56355
56302
|
var renderSetupIntro = () => renderCommandIntro({
|
|
56356
|
-
command: "
|
|
56303
|
+
command: "hi scaffold setup",
|
|
56357
56304
|
title: "Flow",
|
|
56358
56305
|
body: [
|
|
56359
56306
|
"Detect repo stack, resolve scaffold packs, and prepare prompt/manifest output.",
|
|
@@ -56372,15 +56319,15 @@ var renderScaffoldGuide = () => [
|
|
|
56372
56319
|
renderScaffoldTitle(),
|
|
56373
56320
|
"",
|
|
56374
56321
|
renderCommandIntro({
|
|
56375
|
-
command: "
|
|
56322
|
+
command: "hi scaffold",
|
|
56376
56323
|
title: "Lifecycle",
|
|
56377
56324
|
body: [
|
|
56378
56325
|
"Use scaffold subcommands to bootstrap each project phase.",
|
|
56379
56326
|
"",
|
|
56380
56327
|
"commands:",
|
|
56381
|
-
" ›
|
|
56328
|
+
" › hi scaffold init",
|
|
56382
56329
|
" └ onboarding gate: pick backlog provider, scaffold `docs-onboarding`, reconstruct wiki/spec context",
|
|
56383
|
-
" ›
|
|
56330
|
+
" › hi scaffold setup",
|
|
56384
56331
|
" └ repo-aware setup: detect packs, scaffold prompts/manifests/hooks",
|
|
56385
56332
|
"",
|
|
56386
56333
|
"operator notes:",
|
|
@@ -56829,7 +56776,7 @@ var renderAgentHandoffMarkdown = ({
|
|
|
56829
56776
|
}) => [
|
|
56830
56777
|
"# Agent Handoff",
|
|
56831
56778
|
"",
|
|
56832
|
-
"You are continuing a `
|
|
56779
|
+
"You are continuing a `hi scaffold` run.",
|
|
56833
56780
|
"",
|
|
56834
56781
|
"## What was scaffolded",
|
|
56835
56782
|
"",
|
|
@@ -56860,7 +56807,7 @@ var renderAgentHandoffMarkdown = ({
|
|
|
56860
56807
|
"- If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence.",
|
|
56861
56808
|
"- Exact canonical directory id/name overlap keeps the HI baseline skill active. Archive local evidence under `.devpunks/replaced-skills/<skill-id>/...`, then remove active local copies or mirrors.",
|
|
56862
56809
|
"- Preserve non-overlapping local skills and expose them through harness mirrors or symlinks.",
|
|
56863
|
-
"- Use `
|
|
56810
|
+
"- Use `hi report` when archived local knowledge should be proposed for HI baseline integration. Semantic overlap belongs there, not command runtime.",
|
|
56864
56811
|
"",
|
|
56865
56812
|
"## Required next actions",
|
|
56866
56813
|
"",
|
|
@@ -59831,7 +59778,7 @@ var stageScaffoldCatalog = [
|
|
|
59831
59778
|
wikiRoot,
|
|
59832
59779
|
backlogProvider,
|
|
59833
59780
|
wikiFramework
|
|
59834
|
-
}) => `You are the operator agent continuing a \`
|
|
59781
|
+
}) => `You are the operator agent continuing a \`hi scaffold init\` run.
|
|
59835
59782
|
|
|
59836
59783
|
Activate \`$docs-onboarding\` now. Inspect the codebase, existing docs, and the selected backlog provider. Build the Project Map, run the targeted requirements grill, then call \`create-spec\` to reconstruct evidence-backed specs into the scaffolded wiki.
|
|
59837
59784
|
|
|
@@ -59842,7 +59789,12 @@ Scaffolded wiki base:
|
|
|
59842
59789
|
- if the CLI guessed the wrong root, move or refactor the scaffolded wiki before creating specs, plans, or ingesting domain knowledge
|
|
59843
59790
|
- keep using the reconciled wiki root when later steps create specs, plans, or ingest domain knowledge
|
|
59844
59791
|
|
|
59845
|
-
Generated
|
|
59792
|
+
Generated default-pack managed scaffold surface:
|
|
59793
|
+
- \`.devpunks/scaffold-manifest.json\`
|
|
59794
|
+
- handoff and system prompt files
|
|
59795
|
+
- default-pack skills, hooks, scripts, and subagent manifest
|
|
59796
|
+
|
|
59797
|
+
Init entrypoint skills:
|
|
59846
59798
|
- \`.agents/skills/docs-onboarding\`
|
|
59847
59799
|
- \`.agents/skills/requirements-grill\`
|
|
59848
59800
|
- \`.agents/skills/write-backlog\`
|
|
@@ -59854,7 +59806,7 @@ Pre-existing skills:
|
|
|
59854
59806
|
- if \`.devpunks/pre-existing-skills\` exists, inspect it as blind pre-command evidence
|
|
59855
59807
|
- exact canonical directory id/name overlap keeps the HI baseline skill active; archive local evidence under \`.devpunks/replaced-skills/<skill-id>/...\`, then remove active local copies or mirrors
|
|
59856
59808
|
- preserve non-overlapping local skills and expose them through harness mirrors or symlinks
|
|
59857
|
-
- use \`
|
|
59809
|
+
- use \`hi report\` when archived local knowledge should be proposed for HI baseline integration; semantic overlap belongs there, not command runtime
|
|
59858
59810
|
|
|
59859
59811
|
Backlog provider:
|
|
59860
59812
|
- selected provider: ${backlogProviderLabels[backlogProvider]} (\`${backlogProvider}\`)
|
|
@@ -59864,19 +59816,19 @@ Backlog provider:
|
|
|
59864
59816
|
Wiki framework:
|
|
59865
59817
|
- selected framework: ${wikiFrameworkLabels[wikiFramework]} (\`${wikiFramework}\`)
|
|
59866
59818
|
- keep this framework pinned unless the user explicitly changes it
|
|
59867
|
-
- \`
|
|
59819
|
+
- \`hi update\` uses this pinned framework when checking wiki scaffold drift
|
|
59868
59820
|
|
|
59869
59821
|
Post-command guidance:
|
|
59870
59822
|
1. Read the repository guidance and inspect the generated files.
|
|
59871
|
-
2. Move, rename, or refactor the generated wiki and
|
|
59823
|
+
2. Move, rename, or refactor the generated wiki and scaffold output when needed so it matches the actual repo layout.
|
|
59872
59824
|
3. Report what changed and what remains unresolved.
|
|
59873
59825
|
4. Activate \`$docs-onboarding\` immediately and let it inspect code, docs, and backlog context before writing onboarding artifacts.
|
|
59874
59826
|
5. Let \`docs-onboarding\` run the targeted requirements grill and call \`create-spec\` after grill closure.
|
|
59875
59827
|
6. Use \`write-backlog\` only after accepted requirements are ready for backlog mutation.
|
|
59876
|
-
7. Use \`
|
|
59828
|
+
7. Use \`hi scaffold setup\` only after the repo shape is ready for repo-aware AI setup.
|
|
59877
59829
|
|
|
59878
59830
|
When the generated init output matches the repo, the next CLI step is:
|
|
59879
|
-
- \`
|
|
59831
|
+
- \`hi scaffold setup\``
|
|
59880
59832
|
}
|
|
59881
59833
|
];
|
|
59882
59834
|
var stageScaffoldById = Object.fromEntries(stageScaffoldCatalog.map((stage) => [stage.id, stage]));
|
|
@@ -62120,7 +62072,7 @@ var formatEnsureToolsFailureDetails = (statuses) => {
|
|
|
62120
62072
|
"Required tool validation failed.",
|
|
62121
62073
|
"",
|
|
62122
62074
|
"Recovery:",
|
|
62123
|
-
"Install or repair the failed tools, then rerun `
|
|
62075
|
+
"Install or repair the failed tools, then rerun `hi tools ensure`. In scaffolded repos, `.devpunks/settings.json` lists the selected required tool ids. Outside scaffolded repos, `hi tools ensure` checks the default Harness toolchain.",
|
|
62124
62076
|
"",
|
|
62125
62077
|
"Failure stack traces:",
|
|
62126
62078
|
...failures2.flatMap((failure) => [
|
|
@@ -62157,7 +62109,7 @@ var ensureToolsCommand = exports_Command.make("ensure", { input: inputOption3, b
|
|
|
62157
62109
|
})).pipe(exports_Command.withDescription("Ensure required external Harness tools are installed."));
|
|
62158
62110
|
var toolsCommand = exports_Command.make("tools", {}, () => exports_Effect.sync(() => {
|
|
62159
62111
|
console.log(renderCommandSection("Tools", `commands:
|
|
62160
|
-
›
|
|
62112
|
+
› hi tools ensure`));
|
|
62161
62113
|
})).pipe(exports_Command.withDescription("Manage external Harness tool requirements."), exports_Command.withSubcommands([ensureToolsCommand]));
|
|
62162
62114
|
|
|
62163
62115
|
// src/cli/update-command.ts
|
|
@@ -62258,11 +62210,11 @@ var upgradeCommand = exports_Command.make("upgrade", {
|
|
|
62258
62210
|
})).pipe(exports_Command.withDescription("Upgrade this CLI through the package manager used for its global install."));
|
|
62259
62211
|
|
|
62260
62212
|
// src/index.ts
|
|
62261
|
-
var startupCheckWorkerEnv = "
|
|
62262
|
-
var startupCheckCliEnv = "
|
|
62263
|
-
var startupCheckSkillEnv = "
|
|
62264
|
-
var startupCheckIntervalMs = Number.parseInt(process.env.
|
|
62265
|
-
var startupCheckCacheFile = path19.join(homedir3(), ".cache", "
|
|
62213
|
+
var startupCheckWorkerEnv = "HI_STARTUP_CHECK_WORKER";
|
|
62214
|
+
var startupCheckCliEnv = "HI_STARTUP_CHECK_CLI";
|
|
62215
|
+
var startupCheckSkillEnv = "HI_STARTUP_CHECK_SKILL";
|
|
62216
|
+
var startupCheckIntervalMs = Number.parseInt(process.env.HI_STARTUP_CHECK_INTERVAL_MS ?? String(12 * 60 * 60 * 1000), 10);
|
|
62217
|
+
var startupCheckCacheFile = path19.join(homedir3(), ".cache", "hi", "startup-check.json");
|
|
62266
62218
|
var rootCommands = [
|
|
62267
62219
|
checkCommand,
|
|
62268
62220
|
reportCommand,
|
|
@@ -62279,14 +62231,14 @@ var rootCommandNames = [
|
|
|
62279
62231
|
"update",
|
|
62280
62232
|
"upgrade"
|
|
62281
62233
|
];
|
|
62282
|
-
var app = exports_Command.make("
|
|
62234
|
+
var app = exports_Command.make("hi", {}, () => exports_Effect.sync(() => console.log(renderCommandGuide()))).pipe(exports_Command.withDescription("Harness Intelligence CLI. Agents: activate $dp-cli before acting on generated .devpunks output."), exports_Command.withSubcommands(rootCommands));
|
|
62283
62235
|
var cli = exports_Command.run(app, {
|
|
62284
|
-
name: "
|
|
62236
|
+
name: "hi",
|
|
62285
62237
|
version
|
|
62286
62238
|
});
|
|
62287
62239
|
var cliArgv = process.argv.length === 3 && process.argv[2] === "-v" ? [process.argv[0], process.argv[1], "--version"] : process.argv;
|
|
62288
|
-
var shouldCheckSelfUpdate = () => process.env.
|
|
62289
|
-
var shouldCheckDpCliSkillUpdate = () => process.env.
|
|
62240
|
+
var shouldCheckSelfUpdate = () => process.env.HI_NO_UPDATE_CHECK !== "1" && process.env.CI === undefined && process.argv.includes("--help") === false && process.argv.includes("-h") === false && process.argv.includes("--version") === false && process.argv.includes("-v") === false;
|
|
62241
|
+
var shouldCheckDpCliSkillUpdate = () => process.env.HI_NO_SKILL_UPDATE_CHECK !== "1" && process.env.CI === undefined && process.argv.includes("--help") === false && process.argv.includes("-h") === false && process.argv.includes("--version") === false && process.argv.includes("-v") === false;
|
|
62290
62242
|
var shouldAskForSelfUpdate = () => shouldCheckSelfUpdate() && process.argv.slice(2).includes("upgrade") === false && process.stdin.isTTY === true && process.stdout.isTTY === true;
|
|
62291
62243
|
var formatCommand2 = ({
|
|
62292
62244
|
command,
|
|
@@ -62312,7 +62264,7 @@ var runInteractiveCliUpdate = async () => {
|
|
|
62312
62264
|
const result = await autoUpdateCliIfStale({
|
|
62313
62265
|
currentVersion: version,
|
|
62314
62266
|
packageName: name,
|
|
62315
|
-
tag: process.env.
|
|
62267
|
+
tag: process.env.HI_UPDATE_TAG ?? "latest",
|
|
62316
62268
|
timeoutMs: 5000
|
|
62317
62269
|
});
|
|
62318
62270
|
if (result.status === "current" || result.status === "unavailable") {
|
|
@@ -62358,7 +62310,7 @@ var runCliUpdateCheck = async () => {
|
|
|
62358
62310
|
const result = await autoUpdateCliIfStale({
|
|
62359
62311
|
currentVersion: version,
|
|
62360
62312
|
packageName: name,
|
|
62361
|
-
tag: process.env.
|
|
62313
|
+
tag: process.env.HI_UPDATE_TAG ?? "latest"
|
|
62362
62314
|
});
|
|
62363
62315
|
if (result.status === "available" || result.status === "manager-not-detected" || result.status === "failed") {
|
|
62364
62316
|
console.error(renderSelfUpdateNotice({
|
|
@@ -62375,7 +62327,7 @@ var runDpCliSkillCheck = () => {
|
|
|
62375
62327
|
return;
|
|
62376
62328
|
}
|
|
62377
62329
|
if (!skillResult.detected) {
|
|
62378
|
-
console.error(`
|
|
62330
|
+
console.error(`hi startup checks: \`dp-cli\` skill not found. Install it with \`${skillInstallCommand().join(" ")}\`.`);
|
|
62379
62331
|
}
|
|
62380
62332
|
};
|
|
62381
62333
|
var runStartupChecks = async ({
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dp-cli
|
|
3
|
-
description: Operates the
|
|
4
|
-
metadata: {"
|
|
3
|
+
description: Operates the Harness Intelligence CLI (`hi`, alias `hint`) and interactively follows scaffold, update, report, upgrade, and post-command handoff artifacts through to completion. Use when a repo contains `.devpunks/` output, when the user mentions `hi scaffold`, `hi update`, `hi report`, `hi upgrade`, `hint`, or asks what to do after running a Harness CLI command.
|
|
4
|
+
metadata: {"Harness Intelligence":{"entrypoint":true}}
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# dp-cli
|
|
8
8
|
|
|
9
|
-
The `dp` CLI
|
|
9
|
+
The `dp-cli` skill operates the Harness Intelligence CLI. The command is `hi`; `hint` is an alias. The npm package remains `@punks/cli`.
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
hi --help
|
|
15
|
+
hint --help
|
|
16
|
+
hi scaffold setup
|
|
17
|
+
hi scaffold setup --yes
|
|
18
|
+
hi scaffold init
|
|
19
|
+
hi update --check
|
|
20
|
+
hi update --write
|
|
21
|
+
hi update --yes
|
|
22
|
+
hi report --help
|
|
23
|
+
hi upgrade --help
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
After any command, read the command output and generated artifacts before acting.
|
|
@@ -47,21 +49,21 @@ Do not ask for trivial file reads, validation commands, or direct execution of a
|
|
|
47
49
|
|
|
48
50
|
See [references/commands.md](references/commands.md) for command intent and when to use each command.
|
|
49
51
|
|
|
50
|
-
See [references/post-command-flow.md](references/post-command-flow.md) for the required agent flow after `
|
|
52
|
+
See [references/post-command-flow.md](references/post-command-flow.md) for the required agent flow after `hi scaffold` or `hi update`.
|
|
51
53
|
|
|
52
|
-
The former backlog scaffold subcommand is not part of current guidance. `
|
|
54
|
+
The former backlog scaffold subcommand is not part of current guidance. `hi scaffold init` provides the requirements/backlog skills and initial wiki structure; `hi scaffold setup` provides repo-aware managed scaffold output.
|
|
53
55
|
|
|
54
56
|
## Scaffold Init
|
|
55
57
|
|
|
56
|
-
After `
|
|
58
|
+
After `hi scaffold init`, expect `.agents/skills/requirements-grill`, `.agents/skills/write-backlog`, and an initial wiki root.
|
|
57
59
|
|
|
58
60
|
Run the requirements grill before backlog authoring. If the generated wiki root does not match the real repository layout, move or refactor it before creating durable specs, plans, or routed docs. Monorepos usually use `apps/wiki`; single-repo layouts usually use `wiki`.
|
|
59
61
|
|
|
60
|
-
Pre-existing skills are reconciled by the follow-up agent, not by the command. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence. Exact canonical directory id/name overlap keeps the HI baseline skill active: archive local evidence under `.devpunks/replaced-skills/<skill-id>/...`, then remove active local copies or mirrors. Preserve non-overlapping local skills and expose them through harness mirrors or symlinks. Use `
|
|
62
|
+
Pre-existing skills are reconciled by the follow-up agent, not by the command. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence. Exact canonical directory id/name overlap keeps the HI baseline skill active: archive local evidence under `.devpunks/replaced-skills/<skill-id>/...`, then remove active local copies or mirrors. Preserve non-overlapping local skills and expose them through harness mirrors or symlinks. Use `hi report` when archived local knowledge should be proposed for HI baseline integration; semantic overlap belongs there, not command runtime.
|
|
61
63
|
|
|
62
64
|
## Scaffold Setup
|
|
63
65
|
|
|
64
|
-
After `
|
|
66
|
+
After `hi scaffold setup`, expect artifacts such as:
|
|
65
67
|
|
|
66
68
|
- `.devpunks/AGENT-SYSTEM-PROMPT.md`
|
|
67
69
|
- `.devpunks/AGENT-HANDOFF.md`
|
|
@@ -77,9 +79,9 @@ Then author or reconcile the final repo files requested by the specs, including
|
|
|
77
79
|
|
|
78
80
|
Reconcile generated wiki guidance with the real repository layout. Do not assume a newly seeded wiki root is canonical until it matches the project boundary.
|
|
79
81
|
|
|
80
|
-
Reconcile pre-existing repo skills from the same homes as `
|
|
82
|
+
Reconcile pre-existing repo skills from the same homes as `hi scaffold init`: `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. Commands do not detect overlap. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence. Exact name/id overlap keeps the HI baseline skill active; archive local evidence under `.devpunks/replaced-skills/<skill-id>/...` and remove active local copies or mirrors. Non-overlapping local skills remain repo-owned guidance and should stay exposed through harness mirrors or symlinks. Suggest `hi report` for archived local knowledge that should influence the shared baseline.
|
|
81
83
|
|
|
82
|
-
Use `
|
|
84
|
+
Use `hi scaffold setup --yes` only when the harness cannot answer interactive prompts. It accepts the resolved default pack selection; it does not add optional packs or resolve repo-policy decisions.
|
|
83
85
|
|
|
84
86
|
Before authoring prompts or plans, identify the detected core libraries whose source behavior matters. Ask the user which ones to prioritize if the choice is not obvious, then run `opensrc path <package>` or `opensrc path owner/repo` only for that focused set.
|
|
85
87
|
|
|
@@ -87,7 +89,7 @@ When lint specs suggest Oxlint or hooks suggest Oxfmt, treat migration as a repo
|
|
|
87
89
|
|
|
88
90
|
## Update
|
|
89
91
|
|
|
90
|
-
After `
|
|
92
|
+
After `hi update` or `hi update --check`, inspect `.devpunks/scaffold-manifest.json` and the update summary.
|
|
91
93
|
|
|
92
94
|
- `--check` reports managed-file drift without writing.
|
|
93
95
|
- `--write` refreshes scaffold-managed assets.
|
|
@@ -95,21 +97,21 @@ After `dp update` or `dp update --check`, inspect `.devpunks/scaffold-manifest.j
|
|
|
95
97
|
- drift output can include changelog summaries; use them to explain why update/upgrade matters.
|
|
96
98
|
- pack drift is a setup decision point, not a silent auto-fix.
|
|
97
99
|
|
|
98
|
-
Apply the same pre-existing skill policy after update: the command does not detect overlap, the agent checks `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, `.opencode/skills`, and `.devpunks/pre-existing-skills` when present, exact name/id overlap keeps HI baseline active, non-overlaps remain mirrored, and `
|
|
100
|
+
Apply the same pre-existing skill policy after update: the command does not detect overlap, the agent checks `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, `.opencode/skills`, and `.devpunks/pre-existing-skills` when present, exact name/id overlap keeps HI baseline active, non-overlaps remain mirrored, and `hi report` carries semantic overlap or baseline integration proposals.
|
|
99
101
|
|
|
100
102
|
## Report
|
|
101
103
|
|
|
102
|
-
Use `
|
|
104
|
+
Use `hi report` when reusable Harness friction should enter maintainer triage: stale generated guidance, confusing CLI output, missing docs, broken setup, or shared tooling issues.
|
|
103
105
|
|
|
104
|
-
Do not use reports as the default destination for project product backlog. `
|
|
106
|
+
Do not use reports as the default destination for project product backlog. `hi report` submits to the Harness API, which must create or dedupe a GitHub issue in `wearedevpunks/harness-intelligence`; pass `--type`, `--severity`, `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, `--steps`, and `--labels` so maintainers can triage the issue from GitHub/backoffice without replaying the whole session.
|
|
105
107
|
|
|
106
108
|
Reports are GitHub-backed. Backoffice fetches `harness-report` issues from GitHub and treats GitHub state/labels as the triage source of truth. API persistence is audit/local-smoke context, not a substitute for a returned GitHub URL.
|
|
107
109
|
|
|
108
|
-
`
|
|
110
|
+
`hi report` emits product telemetry only after the API returns a GitHub issue URL. If issue creation fails or the API stores the report internally without a URL, do not claim the report was submitted; capture the blocker and suggest the exact GitHub/API config missing.
|
|
109
111
|
|
|
110
112
|
## Upgrade
|
|
111
113
|
|
|
112
|
-
Use `
|
|
114
|
+
Use `hi upgrade` to update the CLI executable itself. It checks the selected npm dist-tag, detects whether the current global install came from Bun, pnpm, npm, or Yarn, and runs the matching global reinstall command.
|
|
113
115
|
|
|
114
116
|
Use `--tag next` for prerelease channels and `--force` to reinstall the selected tag even when no newer version is detected.
|
|
115
117
|
|
|
@@ -120,7 +122,7 @@ Upgrade deliberately bypasses package-manager release-age gates for the CLI pack
|
|
|
120
122
|
- pnpm: `npm_config_minimum_release_age=0 pnpm add -g @punks/cli@<tag>`
|
|
121
123
|
- Yarn: `YARN_NPM_MINIMAL_AGE_GATE=0 yarn global add @punks/cli@<tag>`
|
|
122
124
|
|
|
123
|
-
Startup update checks are advisory and detached. They should not mutate installs during normal command startup; `
|
|
125
|
+
Startup update checks are advisory and detached. They should not mutate installs during normal command startup; `hi upgrade` is the explicit update path.
|
|
124
126
|
|
|
125
127
|
## Completion Checklist
|
|
126
128
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dp-cli Commands
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The command is `hi`; `hint` is an alias. The npm package remains `@punks/cli`.
|
|
4
|
+
|
|
5
|
+
## `hi scaffold setup`
|
|
4
6
|
|
|
5
7
|
Use for repo-aware full scaffold setup.
|
|
6
8
|
|
|
@@ -8,9 +10,9 @@ It detects package manifests, resolves packs, writes `.agents/`, harness files,
|
|
|
8
10
|
|
|
9
11
|
It does not finish all repo-specific authoring. The next agent must use `.devpunks/AGENT-SYSTEM-PROMPT.md` and `.devpunks/specs/**` to generate final scoped guidance and reconcile assets.
|
|
10
12
|
|
|
11
|
-
Use `
|
|
13
|
+
Use `hi scaffold setup --yes` in non-interactive harnesses. It accepts the resolved default pack selection and skips pack-selection prompts. It does not select optional packs.
|
|
12
14
|
|
|
13
|
-
## `
|
|
15
|
+
## `hi scaffold init`
|
|
14
16
|
|
|
15
17
|
Use before boilerplate exists.
|
|
16
18
|
|
|
@@ -18,29 +20,29 @@ It scaffolds `requirements-grill`, `write-backlog`, and the initial wiki tree, t
|
|
|
18
20
|
|
|
19
21
|
If the generated wiki root does not match the repository layout, move or refactor it before writing specs, plans, or routed docs. Monorepos usually use `apps/wiki`; single-repo layouts usually use `wiki`.
|
|
20
22
|
|
|
21
|
-
After init, the agent must reconcile pre-existing skills. The command does not detect overlap. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, `.opencode/skills`, and `.devpunks/pre-existing-skills` when present; exact name/id overlap keeps HI baseline active, non-overlaps stay exposed through mirrors or symlinks, and `
|
|
23
|
+
After init, the agent must reconcile pre-existing skills. The command does not detect overlap. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, `.opencode/skills`, and `.devpunks/pre-existing-skills` when present; exact name/id overlap keeps HI baseline active, non-overlaps stay exposed through mirrors or symlinks, and `hi report` carries semantic overlap or baseline integration proposals.
|
|
22
24
|
|
|
23
|
-
## `
|
|
25
|
+
## `hi update --check`
|
|
24
26
|
|
|
25
27
|
Use at session start when `.devpunks/` exists or to preview managed scaffold drift from `.devpunks/scaffold-manifest.json`.
|
|
26
28
|
|
|
27
|
-
Report CLI, baseline, missing, changed, or pack-drift findings. Do not write files. If remediation is accepted, use a subagent for `
|
|
29
|
+
Report CLI, baseline, missing, changed, or pack-drift findings. Do not write files. If remediation is accepted, use a subagent for `hi upgrade`, `hi update --write`, or `hi update --yes`.
|
|
28
30
|
|
|
29
|
-
## `
|
|
31
|
+
## `hi update --write`
|
|
30
32
|
|
|
31
33
|
Use to refresh scaffold-managed files recorded in `.devpunks/scaffold-manifest.json`.
|
|
32
34
|
|
|
33
35
|
After writing, verify the refreshed files still fit the repo shape and any baseline or pack drift is handled intentionally.
|
|
34
36
|
|
|
35
|
-
Also run the agent-owned pre-existing skill reconciliation check. `
|
|
37
|
+
Also run the agent-owned pre-existing skill reconciliation check. `hi update` does not detect overlaps.
|
|
36
38
|
|
|
37
|
-
## `
|
|
39
|
+
## `hi update --yes`
|
|
38
40
|
|
|
39
41
|
Use in non-interactive harnesses to apply managed scaffold updates without answering the terminal confirmation prompt.
|
|
40
42
|
|
|
41
43
|
It has the same managed-file apply behavior as `--write`.
|
|
42
44
|
|
|
43
|
-
## `
|
|
45
|
+
## `hi report`
|
|
44
46
|
|
|
45
47
|
Use to open reusable Harness friction in the Harness Intelligence GitHub repository. Include `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, and `--steps` whenever they apply so labels and issue body are useful for backoffice triage.
|
|
46
48
|
|
|
@@ -60,13 +62,13 @@ Useful classification flags:
|
|
|
60
62
|
|
|
61
63
|
The report path is GitHub-backed. The CLI submits typed context to the Harness API; the API creates or dedupes an issue with `harness-report` metadata and labels, then the CLI emits report-submitted telemetry only after the API returns a GitHub issue URL. Backoffice reads GitHub issues for report triage.
|
|
62
64
|
|
|
63
|
-
## `
|
|
65
|
+
## `hi upgrade`
|
|
64
66
|
|
|
65
67
|
Use to update the installed CLI executable through its original global package-manager path.
|
|
66
68
|
|
|
67
69
|
The command checks the selected npm dist-tag, detects Bun, pnpm, npm, or Yarn from the current install path, and runs the corresponding global reinstall command. Use `--tag next` for prerelease channels, `--force` to reinstall the selected tag, and `--json` when automation needs structured output.
|
|
68
70
|
|
|
69
|
-
`
|
|
71
|
+
`hi upgrade` bypasses minimum-release-age gates for the CLI package:
|
|
70
72
|
|
|
71
73
|
- Bun uses `--minimum-release-age=0`.
|
|
72
74
|
- npm uses `--min-release-age=0`.
|
|
@@ -27,13 +27,13 @@ If a file is missing, continue with the next available artifact and say what was
|
|
|
27
27
|
|
|
28
28
|
## Required Follow-Through
|
|
29
29
|
|
|
30
|
-
After `
|
|
30
|
+
After `hi scaffold setup`:
|
|
31
31
|
|
|
32
32
|
- Generate final root/docs/workspace `AGENTS.md` files from prompt specs.
|
|
33
33
|
- Reconcile any scaffolded wiki root with the real repo layout before writing durable docs.
|
|
34
34
|
- Reconcile pre-existing skills yourself; commands do not detect overlap. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence.
|
|
35
35
|
- Exact canonical directory id/name overlap keeps the HI baseline skill active. Archive local evidence under `.devpunks/replaced-skills/<skill-id>/...`, then remove active local copies or mirrors.
|
|
36
|
-
- Preserve non-overlapping local skills and expose them through harness mirrors or symlinks. Use `
|
|
36
|
+
- Preserve non-overlapping local skills and expose them through harness mirrors or symlinks. Use `hi report` when archived local knowledge should be proposed for HI baseline integration; semantic overlap belongs there.
|
|
37
37
|
- Create sibling `CLAUDE.md` symlink mirrors for those neutral prompt files.
|
|
38
38
|
- Keep `.agents/AGENTS.md` as the shared global prompt source.
|
|
39
39
|
- Keep `.agents/skills/` as the main skill directory; only `.claude/skills` mirrors it.
|
|
@@ -44,14 +44,14 @@ After `dp scaffold setup`:
|
|
|
44
44
|
|
|
45
45
|
Do not stop after saying the files exist.
|
|
46
46
|
|
|
47
|
-
After `
|
|
47
|
+
After `hi update --check` or `hi update`:
|
|
48
48
|
|
|
49
49
|
- Inspect `.devpunks/scaffold-manifest.json` and `.devpunks/settings.json`.
|
|
50
50
|
- For write modes, confirm `cliVersion` and `baselineVersion` reflect accepted project authority after writes.
|
|
51
51
|
- Verify refreshed files still fit repo shape; handle pack drift intentionally.
|
|
52
|
-
- Apply the same pre-existing skill reconciliation policy as scaffold setup. `
|
|
52
|
+
- Apply the same pre-existing skill reconciliation policy as scaffold setup. `hi update` does not detect overlaps; the agent checks the skill homes and `.devpunks/pre-existing-skills` when present, keeps HI baseline active for exact name/id overlaps, preserves non-overlaps through mirrors, and uses `hi report` for semantic overlap or baseline integration proposals.
|
|
53
53
|
|
|
54
|
-
After `
|
|
54
|
+
After `hi scaffold init`:
|
|
55
55
|
|
|
56
56
|
- Do not start requirements discovery by default.
|
|
57
57
|
- Inspect the generated skills and seeded wiki root.
|
|
@@ -59,15 +59,15 @@ After `dp scaffold init`:
|
|
|
59
59
|
- Treat the seeded wiki root as provisional until it matches the repo layout.
|
|
60
60
|
- Move, rename, or refactor generated init output when needed so it matches the actual repository.
|
|
61
61
|
- Run `requirements-grill` before `write-backlog` only when the user actually asks for requirements or backlog generation.
|
|
62
|
-
- Use `
|
|
62
|
+
- Use `hi scaffold setup` only after the repo is ready for repo-aware setup.
|
|
63
63
|
|
|
64
|
-
After `
|
|
64
|
+
After `hi report`:
|
|
65
65
|
|
|
66
66
|
- Confirm the command created a GitHub issue URL before saying the report was submitted.
|
|
67
67
|
- Include the issue URL, labels, affected command, affected skill pack, and remaining blocker if creation failed.
|
|
68
68
|
- Do not duplicate project product backlog into Harness reports unless maintainers explicitly promote it.
|
|
69
69
|
|
|
70
|
-
After `
|
|
70
|
+
After `hi upgrade`:
|
|
71
71
|
|
|
72
72
|
- Report whether the CLI upgraded, was already current, could not detect the install manager, or failed while running the package-manager command.
|
|
73
73
|
- Include the package manager and command used when available.
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punks/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Harness Intelligence scaffolding CLI",
|
|
5
5
|
"bin": {
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"punks": "dist/index.js"
|
|
6
|
+
"hi": "dist/index.js",
|
|
7
|
+
"hint": "dist/index.js"
|
|
9
8
|
},
|
|
10
9
|
"type": "module",
|
|
11
10
|
"homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
|