hivemind-context-governance 2.5.0 → 2.6.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +491 -161
  3. package/bin/hivemind-tools.cjs +66 -4
  4. package/commands/hivemind-compact.md +20 -0
  5. package/commands/hivemind-scan.md +42 -0
  6. package/commands/hivemind-status.md +35 -0
  7. package/dist/cli/init.d.ts +1 -0
  8. package/dist/cli/init.d.ts.map +1 -1
  9. package/dist/cli/init.js +13 -3
  10. package/dist/cli/init.js.map +1 -1
  11. package/dist/cli/interactive-init.d.ts +15 -0
  12. package/dist/cli/interactive-init.d.ts.map +1 -0
  13. package/dist/cli/interactive-init.js +207 -0
  14. package/dist/cli/interactive-init.js.map +1 -0
  15. package/dist/cli.d.ts +4 -2
  16. package/dist/cli.d.ts.map +1 -1
  17. package/dist/cli.js +162 -36
  18. package/dist/cli.js.map +1 -1
  19. package/dist/dashboard/server.d.ts +78 -19
  20. package/dist/dashboard/server.d.ts.map +1 -1
  21. package/dist/dashboard/server.js +365 -249
  22. package/dist/dashboard/server.js.map +1 -1
  23. package/dist/hooks/compaction.d.ts.map +1 -1
  24. package/dist/hooks/compaction.js +10 -1
  25. package/dist/hooks/compaction.js.map +1 -1
  26. package/dist/hooks/event-handler.d.ts +6 -0
  27. package/dist/hooks/event-handler.d.ts.map +1 -0
  28. package/dist/hooks/event-handler.js +115 -0
  29. package/dist/hooks/event-handler.js.map +1 -0
  30. package/dist/hooks/index.d.ts +2 -0
  31. package/dist/hooks/index.d.ts.map +1 -1
  32. package/dist/hooks/index.js +2 -0
  33. package/dist/hooks/index.js.map +1 -1
  34. package/dist/hooks/sdk-context.d.ts +58 -0
  35. package/dist/hooks/sdk-context.d.ts.map +1 -0
  36. package/dist/hooks/sdk-context.js +100 -0
  37. package/dist/hooks/sdk-context.js.map +1 -0
  38. package/dist/hooks/session-lifecycle.d.ts.map +1 -1
  39. package/dist/hooks/session-lifecycle.js +319 -26
  40. package/dist/hooks/session-lifecycle.js.map +1 -1
  41. package/dist/hooks/soft-governance.d.ts +9 -0
  42. package/dist/hooks/soft-governance.d.ts.map +1 -1
  43. package/dist/hooks/soft-governance.js +168 -1
  44. package/dist/hooks/soft-governance.js.map +1 -1
  45. package/dist/hooks/tool-gate.d.ts.map +1 -1
  46. package/dist/hooks/tool-gate.js +82 -4
  47. package/dist/hooks/tool-gate.js.map +1 -1
  48. package/dist/index.d.ts +1 -0
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +20 -3
  51. package/dist/index.js.map +1 -1
  52. package/dist/lib/detection.d.ts +67 -0
  53. package/dist/lib/detection.d.ts.map +1 -1
  54. package/dist/lib/detection.js +133 -0
  55. package/dist/lib/detection.js.map +1 -1
  56. package/dist/lib/framework-context.d.ts +25 -0
  57. package/dist/lib/framework-context.d.ts.map +1 -0
  58. package/dist/lib/framework-context.js +133 -0
  59. package/dist/lib/framework-context.js.map +1 -0
  60. package/dist/lib/index.d.ts +1 -0
  61. package/dist/lib/index.d.ts.map +1 -1
  62. package/dist/lib/index.js +1 -0
  63. package/dist/lib/index.js.map +1 -1
  64. package/dist/lib/persistence.d.ts.map +1 -1
  65. package/dist/lib/persistence.js +17 -0
  66. package/dist/lib/persistence.js.map +1 -1
  67. package/dist/lib/planning-fs.d.ts +2 -0
  68. package/dist/lib/planning-fs.d.ts.map +1 -1
  69. package/dist/lib/planning-fs.js +2 -0
  70. package/dist/lib/planning-fs.js.map +1 -1
  71. package/dist/schemas/brain-state.d.ts +13 -0
  72. package/dist/schemas/brain-state.d.ts.map +1 -1
  73. package/dist/schemas/brain-state.js +16 -0
  74. package/dist/schemas/brain-state.js.map +1 -1
  75. package/dist/tools/declare-intent.d.ts.map +1 -1
  76. package/dist/tools/declare-intent.js +18 -8
  77. package/dist/tools/declare-intent.js.map +1 -1
  78. package/dist/tools/export-cycle.d.ts.map +1 -1
  79. package/dist/tools/export-cycle.js +7 -3
  80. package/dist/tools/export-cycle.js.map +1 -1
  81. package/package.json +14 -3
  82. package/skills/context-integrity/SKILL.md +7 -2
  83. package/skills/delegation-intelligence/SKILL.md +7 -2
  84. package/skills/evidence-discipline/SKILL.md +7 -2
  85. package/skills/hivemind-governance/SKILL.md +7 -2
  86. package/skills/session-lifecycle/SKILL.md +7 -2
package/CHANGELOG.md CHANGED
@@ -5,6 +5,46 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ### Fixed
11
+ - `export_cycle` now synchronizes flat `brain.hierarchy` projection after tree mutations, eliminating hierarchy/tree desync after subagent exports
12
+ - `declare_intent` no longer overwrites per-session files with legacy active template content; legacy `active.md` is updated separately for backward compatibility
13
+ - Stale auto-archive path now resets `hierarchy.json`, preventing orphaned tree carryover into newly created sessions
14
+ - `soft-governance` now wires `trackSectionUpdate`, activating section repetition detection that was previously dead code
15
+ - Persistence migration now backfills `metrics.write_without_read_count` (and related governance defaults) for older installs
16
+ - Compaction hook now consumes and clears `next_compaction_report` after injection to avoid stale repeated report injection
17
+ - Tool gate drift warnings now use projected turn state and persist drift score updates, removing one-turn lag and unsaved in-memory drift mutation
18
+
19
+ ### Changed
20
+ - First-run setup guidance now includes project/framework snapshot hints and a deep reconnaissance protocol before implementation
21
+ - `declare_intent` now requires completed CLI initialization (`.hivemind/config.json`) instead of silently bootstrapping default state
22
+ - Runtime log directory is now aligned with `.hivemind/logs` for initialized projects
23
+ - `initializePlanningDirectory` now creates `.hivemind/logs` explicitly
24
+
25
+ ### Documentation
26
+ - `README.md` fully rewritten: coherent install-to-runtime flow, upgrade guidance, troubleshooting, and expanded Vietnamese section focused on practical onboarding
27
+
28
+ ## [2.6.0] - 2026-02-12
29
+
30
+ ### Added
31
+ - **Ink-based TUI dashboard** (`hivemind dashboard`) replacing the old REST dashboard backend
32
+ - **Live governance panels** in TUI: session, hierarchy, metrics, escalation alerts, and traceability
33
+ - **Bilingual dashboard mode (EN/VI)** with runtime toggle (`l`) and manual refresh (`r`)
34
+ - **Traceability in TUI**: current timestamp, active session timeline, and current git hash
35
+ - **Semantic validation in `ecosystem-check`**: hierarchy chain integrity + stamp validation
36
+ - **Trace metadata in `ecosystem-check --json`**: `trace.time` and `trace.git_hash`
37
+ - **New test suites**: dashboard TUI (9 assertions), ecosystem-check CLI (8 assertions)
38
+
39
+ ### Changed
40
+ - `hivemind init` CLI wiring now accepts `--automation <manual|guided|assisted|full|retard>`
41
+ - `hivemind status` now shows automation level
42
+ - `hivemind dashboard` now launches the TUI with `--lang` and `--refresh` options
43
+ - `README.md` coverage and command docs updated to current state
44
+
45
+ ### Removed
46
+ - Obsolete cleanup artifacts: `.npmignore`, `tasks/`, and `docs/archive/historical-plans/`
47
+
8
48
  ## [2.5.0] - 2026-02-12
9
49
 
10
50
  ### Added