thachvd-kit 1.0.38 → 1.0.39

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 thachvd
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 thachvd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -213,6 +213,67 @@ thachvd-kit spec doctor --strict
213
213
 
214
214
  `--strict` exits non-zero when any WARN/ERROR remains, which is useful for CI or release gates.
215
215
 
216
+ ### HTML system explorer
217
+
218
+ Markdown + JSON remain the source of truth. The HTML explorer is a deterministic read-only view generated from those files; `spec build` does not call an AI model.
219
+
220
+ ```bash
221
+ thachvd-kit spec build
222
+ ```
223
+
224
+ Default output:
225
+
226
+ ```text
227
+ system-specs/_site/
228
+ ├── index.html
229
+ ├── architecture.html
230
+ ├── capabilities.html
231
+ ├── flows.html
232
+ ├── contracts.html
233
+ ├── health.html
234
+ ├── capability/
235
+ │ └── <capability>.html
236
+ ├── assets/
237
+ └── data/system.json
238
+ ```
239
+
240
+ The explorer includes:
241
+
242
+ - repository and capability counts
243
+ - repo → capability matrix
244
+ - capability PRD/design pages
245
+ - source-path/evidence mapping
246
+ - architecture, flow and contract Markdown rendered as HTML
247
+ - verification/drift health
248
+ - independent review output
249
+ - capability filtering
250
+ - Mermaid code blocks remain readable as source by default; remote JavaScript is never loaded implicitly
251
+
252
+ Serve it locally:
253
+
254
+ ```bash
255
+ thachvd-kit spec serve
256
+ # http://127.0.0.1:4173
257
+ ```
258
+
259
+ Custom output/host/port:
260
+
261
+ ```bash
262
+ thachvd-kit spec build --output docs/system
263
+ thachvd-kit spec serve --output docs/system --host 0.0.0.0 --port 8080
264
+ ```
265
+
266
+ `spec serve` rebuilds by default; use `--no-build` to serve an existing output. Generated `<spec_root>/_site` files are ignored by `spec doctor` cleanliness checks, so building the explorer does not make reviewed Markdown specs look dirty.
267
+
268
+ For sensitive/internal system specs, the explorer has **no remote JavaScript by default**. If you explicitly want browser-rendered Mermaid diagrams and accept loading Mermaid from jsDelivr:
269
+
270
+ ```bash
271
+ thachvd-kit spec build --remote-mermaid
272
+ thachvd-kit spec serve --remote-mermaid
273
+ ```
274
+
275
+ Binding `spec serve` to a non-loopback host such as `0.0.0.0` prints a warning because the documentation may become reachable from other machines.
276
+
216
277
  ### Optional Shinpr recipe integration
217
278
 
218
279
  `recipe-reverse-engineer` is no longer part of the required flow. If you use Claude Code and want its extra generate -> verify -> review -> revise loop for individual implementation scopes, install it once:
@@ -235,7 +296,8 @@ The bundled `/system-reverse-engineer` skill may use that helper when available,
235
296
  8. The reviewer writes machine-readable verification/provenance metadata.
236
297
  9. `spec check` detects code/spec drift deterministically from Git.
237
298
  10. `spec doctor` provides a read-only health summary for the spec system.
238
- 11. `spec link` adds an idempotent managed block to each repo's `AGENTS.md` so future agents discover and check the reviewed system specs. By default it refuses to link when any capability is not independently `verified`; `--allow-unverified` is an explicit escape hatch.
299
+ 11. `spec build` / `spec serve` provide a deterministic HTML overview for humans without changing the Markdown/JSON source of truth.
300
+ 12. `spec link` adds an idempotent managed block to each repo's `AGENTS.md` so future agents discover and check the reviewed system specs. By default it refuses to link when any capability is not independently `verified`; `--allow-unverified` is an explicit escape hatch.
239
301
 
240
302
  Observed behavior from code/tests and undocumented business rationale must remain distinct. Existing human-edited spec docs are not overwritten by `spec init --yes`.
241
303
 
@@ -1,49 +1,49 @@
1
- # Third-Party Notices
2
-
3
- ## Superpowers
4
-
5
- Repository: https://github.com/obra/superpowers
6
- Upstream commit: `5bf4e78011075bcfc0dc295f0724994cd123ee71`
7
-
8
- Portions of the worktree and subagent-driven development workflows are derived from:
9
-
10
- - `skills/using-git-worktrees/SKILL.md`
11
- - `skills/subagent-driven-development/`
12
- - `skills/requesting-code-review/code-reviewer.md`
13
- - `skills/finishing-a-development-branch/SKILL.md`
14
-
15
- The vendored source is retained for comparison with the recorded upstream commit. Adapted Windows/runtime entrypoints are documented in the native skill directory and do not replace the upstream source scripts.
16
-
17
- Copyright (c) 2025 Jesse Vincent
18
-
19
- MIT License
20
-
21
- Permission is hereby granted, free of charge, to any person obtaining a copy
22
- of this software and associated documentation files (the "Software"), to deal
23
- in the Software without restriction, including without limitation the rights
24
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
- copies of the Software, and to permit persons to whom the Software is
26
- furnished to do so, subject to the following conditions:
27
-
28
- The above copyright notice and this permission notice shall be included in all
29
- copies or substantial portions of the Software.
30
-
31
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
- SOFTWARE.
38
-
39
- ### Vendoring maintenance
40
-
41
- To refresh these files deliberately:
42
-
43
- 1. Fetch the latest `obra/superpowers` repository.
44
- 2. Inspect changes to the recorded upstream files and compare them with the recorded SHA.
45
- 3. Port relevant upstream changes and reapply only the minimal thachvd-kit adaptations.
46
- 4. Update `skills/upstream.json` and this notice with the new SHA.
47
- 5. Run the native-skill regression tests and the full release verification.
48
-
49
- `thachvd-kit skills update` never fetches Superpowers. Runtime updates use the repository-owned vendored copies.
1
+ # Third-Party Notices
2
+
3
+ ## Superpowers
4
+
5
+ Repository: https://github.com/obra/superpowers
6
+ Upstream commit: `5bf4e78011075bcfc0dc295f0724994cd123ee71`
7
+
8
+ Portions of the worktree and subagent-driven development workflows are derived from:
9
+
10
+ - `skills/using-git-worktrees/SKILL.md`
11
+ - `skills/subagent-driven-development/`
12
+ - `skills/requesting-code-review/code-reviewer.md`
13
+ - `skills/finishing-a-development-branch/SKILL.md`
14
+
15
+ The vendored source is retained for comparison with the recorded upstream commit. Adapted Windows/runtime entrypoints are documented in the native skill directory and do not replace the upstream source scripts.
16
+
17
+ Copyright (c) 2025 Jesse Vincent
18
+
19
+ MIT License
20
+
21
+ Permission is hereby granted, free of charge, to any person obtaining a copy
22
+ of this software and associated documentation files (the "Software"), to deal
23
+ in the Software without restriction, including without limitation the rights
24
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
+ copies of the Software, and to permit persons to whom the Software is
26
+ furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all
29
+ copies or substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
+ SOFTWARE.
38
+
39
+ ### Vendoring maintenance
40
+
41
+ To refresh these files deliberately:
42
+
43
+ 1. Fetch the latest `obra/superpowers` repository.
44
+ 2. Inspect changes to the recorded upstream files and compare them with the recorded SHA.
45
+ 3. Port relevant upstream changes and reapply only the minimal thachvd-kit adaptations.
46
+ 4. Update `skills/upstream.json` and this notice with the new SHA.
47
+ 5. Run the native-skill regression tests and the full release verification.
48
+
49
+ `thachvd-kit skills update` never fetches Superpowers. Runtime updates use the repository-owned vendored copies.
@@ -74,7 +74,8 @@ function inspectSpecStorage(workspaceRoot, manifest) {
74
74
  }
75
75
 
76
76
  const specRelative = path.relative(gitRoot, specRoot).split(path.sep).join('/') || '.';
77
- const status = runGit(gitRoot, ['status', '--porcelain', '--', specRelative]);
77
+ const generatedSiteRelative = specRelative === '.' ? '_site' : specRelative + '/_site';
78
+ const status = runGit(gitRoot, ['status', '--porcelain', '--', specRelative, ':(exclude)' + generatedSiteRelative]);
78
79
  if (!status.ok) return { ok: false, message: status.error };
79
80
 
80
81
  if (untracked.length > 0 || status.stdout) {