@pieerry/harness-kit 3.1.1 → 3.1.2

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.
@@ -162,6 +162,16 @@ def render_line():
162
162
  next_cmd = STAGE_TO_COMMAND.get(current, "?")
163
163
 
164
164
  shape = "+".join(pipeline)
165
+
166
+ # No work started yet: show full menu instead of locking to next stage
167
+ no_work_started = (
168
+ not fid
169
+ and not prev
170
+ and all(stages.get(s) == "pending" for s in pipeline)
171
+ )
172
+ if no_work_started:
173
+ return f"{name} [{shape}] · /product-manager:run · /sse:run · /pipeline:continue · /pipeline:reset"
174
+
165
175
  if prev:
166
176
  return f"{name} [{shape}] · {prev} approved · {current} {cur_state} · next {next_cmd}"
167
177
  return f"{name} [{shape}] · {current} {cur_state} · next {next_cmd}"
@@ -71,7 +71,8 @@
71
71
  "Bash(git -C /Users/pierryborges/Development/harness-kit diff --stat)",
72
72
  "Bash(rm -rf /tmp/hk-fresh /tmp/hk-existing)",
73
73
  "Bash(npm whoami *)",
74
- "Bash(npm publish *)"
74
+ "Bash(npm publish *)",
75
+ "Bash(git tag *)"
75
76
  ]
76
77
  }
77
78
  }
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Claude Code harness for product + engineering delivery.
6
6
  From idea to merged PR, one pipeline.
7
7
 
8
- [![Version](https://img.shields.io/badge/version-3.1.1-blue.svg)](VERSION)
8
+ [![Version](https://img.shields.io/badge/version-3.1.2-blue.svg)](VERSION)
9
9
  [![Claude Code](https://img.shields.io/badge/Claude%20Code-plugin-8b5cf6.svg)](https://claude.ai/code)
10
10
  [![Plugins](https://img.shields.io/badge/plugins-2-success.svg)](#layout)
11
11
  [![Pipeline](https://img.shields.io/badge/stages-6-informational.svg)](#usage)
@@ -15,7 +15,7 @@ From idea to merged PR, one pipeline.
15
15
 
16
16
  ![harness-kit demo](demo/preview.gif)
17
17
 
18
- <sub>100s walkthrough · install → 6 commands → PR → resume. Each command scene shows the active **guide · ref · sensor · eval**. Dedicated scenes for the dynamic status bar and `/pipeline:continue` resume flow.</sub>
18
+ <sub>110s walkthrough · install → 6 commands → final summary → resume. Each command scene shows the active **guide · ref · sensor · eval**. Dedicated scenes for the dynamic status bar, the named-everything final summary, and `/pipeline:continue` resume flow.</sub>
19
19
 
20
20
  </div>
21
21
 
@@ -46,7 +46,9 @@ npm i -g @pieerry/harness-kit
46
46
  hk install
47
47
  ```
48
48
 
49
- `hk install` writes plugins into `.claude/plugins/`, drops the status-line hook in `.claude/hooks/`, generates `.claude/settings.json`, and scaffolds `.claude/conventions/` for your project overrides. Run it from the target repo (or pass an explicit `[target]`). Restart Claude Code after.
49
+ `hk install` writes plugins into `.claude/plugins/`, drops the status-line + pipeline-tracking hooks in `.claude/hooks/`, copies the pipeline state manager to `.claude/scripts/`, registers slash commands under `.claude/commands/`, generates `.claude/settings.json`, and scaffolds `.claude/conventions/` for your project overrides. Run it from the target repo (or pass an explicit `[target]`). Restart Claude Code after.
50
+
51
+ Reinstalling on top of an existing setup backs up the previous `settings.json` to `.claude/settings.json.bak.{timestamp}` before overwriting, so manual customizations are recoverable.
50
52
 
51
53
  CLI subcommands:
52
54
 
@@ -67,11 +69,20 @@ bash ~/.harness-kit/setup/install.sh
67
69
 
68
70
  ### Update
69
71
 
72
+ For npm installs:
73
+
70
74
  ```bash
75
+ npm i -g @pieerry/harness-kit@latest
71
76
  hk update
72
77
  ```
73
78
 
74
- Pulls latest source and reinstalls. Idempotent. Version is read from the package `VERSION` and recorded in your target at `.claude/.hk-version`.
79
+ For git-clone installs:
80
+
81
+ ```bash
82
+ hk update
83
+ ```
84
+
85
+ `hk update` pulls latest source (git installs only) and reinstalls. Idempotent. Version is read from the package `VERSION` and recorded in your target at `.claude/.hk-version`. npm users must bump the package first — `hk update` alone won't reach the registry.
75
86
 
76
87
  ### Usage
77
88
 
@@ -107,8 +118,19 @@ $ /product-manager:run
107
118
  > squad? billing
108
119
  > problem? invoice generation fails for multi-currency customers
109
120
  > ...
110
- PRD saved at outputs/prd/2026-05-12-billing-multi-currency.md. Score: 8.6/10.
111
- PRP saved at outputs/prp/2026-05-12-billing-multi-currency.md. Score: 8.4/10.
121
+ PRD saved at outputs/prd/2026-05-12-billing-multi-currency.md.
122
+ sensors: prd-structure ok, prd-acceptance-criteria ok
123
+ eval: prd-quality 8.6/10, prd-readiness 8.9/10
124
+ guides: prd-guidelines.md, writing-style.md, templates/prd.md
125
+ refs: business-info.md, squads/billing/context.md
126
+ next: /product-manager:prp
127
+
128
+ PRP saved at outputs/prp/2026-05-12-billing-multi-currency.md.
129
+ sensors: prp-structure ok, prp-context-quality ok, prp-links ok
130
+ eval: prp-quality 8.4/10, prp-context-readiness 9.0/10
131
+ guides: prp-guidelines.md, templates/prp.md
132
+ refs: prd/2026-05-12-billing-multi-currency.md
133
+ next: /sse:plan (ready for handoff)
112
134
  ```
113
135
 
114
136
  Engineering session in the target service repo:
@@ -117,12 +139,34 @@ Engineering session in the target service repo:
117
139
  $ /sse:run
118
140
  > source PRP? outputs/prp/2026-05-12-billing-multi-currency.md
119
141
  > area? backend
120
- Plan saved at outputs/plan/2026-05-12-billing-multi-currency.md. Score: 8.3/10.
121
- Dev complete. 5 files changed, 3 commits.
122
- Tests: 24 passed, 0 failed.
142
+ Plan saved at outputs/plan/2026-05-12-billing-multi-currency.md.
143
+ sensors: plan-structure ok (problem, files, gates, scope)
144
+ eval: plan-quality 8.3/10
145
+ guides: pipeline.md, coding-style.md, skills/backend/SKILL.md
146
+ refs: prp/2026-05-12-billing-multi-currency.md, conventions/backend.md
147
+ next: /sse:dev
148
+
149
+ Dev complete. branch feat/PROJ-123-multi-currency.
150
+ files changed: 5
151
+ commits: 3 (a1b2c3d, d4e5f6g, h7i8j9k)
152
+ sensors: code-conventions ok, test-coverage ok
153
+ guides: coding-style.md, commit-style.md, skills/backend/SKILL.md
154
+ next: /sse:test
155
+
156
+ Tests passed.
157
+ command: ./mvnw test
158
+ passed: 24, failed: 0
159
+ duration: 12.4s
160
+ next: /sse:pr
161
+
123
162
  PR opened: https://github.com/your-org/billing-service/pull/567
163
+ title: feat(PROJ-123): timezone-aware deadline check
164
+ draft: yes
165
+ guides: pr-template.md, commit-style.md
124
166
  ```
125
167
 
168
+ Every reply names the actual sensors that ran, evals with scores, and guides loaded — no generic "ok" lines. The `/sse:run` and `/product-manager:run` summaries aggregate the same shape across phases.
169
+
126
170
  Token usage is logged per phase to a shared JSON across both plugins. See the [product-manager README](.claude/plugins/product-manager/README.md#token-accounting) for the schema and query examples.
127
171
 
128
172
  ### Samples
@@ -197,7 +241,7 @@ Every stage in the pipeline runs the same loop. Same four ingredients, every tim
197
241
 
198
242
  Sensors are pass/fail (deterministic, fast). Evals are scored (LLM-judged, retried until ≥ threshold or max attempts). Approval markers (`<!-- approved: -->`) gate the next stage.
199
243
 
200
- The 85s demo above shows every command running with these artifacts loading live on the right panel.
244
+ The 110s demo above shows every command running with these artifacts loading live on the right panel — plus the final summary scene that names every sensor, eval, and guide per phase.
201
245
 
202
246
  ---
203
247
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.1
1
+ 3.1.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pieerry/harness-kit",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Claude Code harness for product + engineering delivery. From idea to merged PR, one pipeline.",
5
5
  "author": "Space Metrics AI",
6
6
  "license": "MIT",