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.
- package/CHANGELOG.md +40 -0
- package/README.md +491 -161
- package/bin/hivemind-tools.cjs +66 -4
- package/commands/hivemind-compact.md +20 -0
- package/commands/hivemind-scan.md +42 -0
- package/commands/hivemind-status.md +35 -0
- package/dist/cli/init.d.ts +1 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +13 -3
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/interactive-init.d.ts +15 -0
- package/dist/cli/interactive-init.d.ts.map +1 -0
- package/dist/cli/interactive-init.js +207 -0
- package/dist/cli/interactive-init.js.map +1 -0
- package/dist/cli.d.ts +4 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +162 -36
- package/dist/cli.js.map +1 -1
- package/dist/dashboard/server.d.ts +78 -19
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +365 -249
- package/dist/dashboard/server.js.map +1 -1
- package/dist/hooks/compaction.d.ts.map +1 -1
- package/dist/hooks/compaction.js +10 -1
- package/dist/hooks/compaction.js.map +1 -1
- package/dist/hooks/event-handler.d.ts +6 -0
- package/dist/hooks/event-handler.d.ts.map +1 -0
- package/dist/hooks/event-handler.js +115 -0
- package/dist/hooks/event-handler.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/sdk-context.d.ts +58 -0
- package/dist/hooks/sdk-context.d.ts.map +1 -0
- package/dist/hooks/sdk-context.js +100 -0
- package/dist/hooks/sdk-context.js.map +1 -0
- package/dist/hooks/session-lifecycle.d.ts.map +1 -1
- package/dist/hooks/session-lifecycle.js +319 -26
- package/dist/hooks/session-lifecycle.js.map +1 -1
- package/dist/hooks/soft-governance.d.ts +9 -0
- package/dist/hooks/soft-governance.d.ts.map +1 -1
- package/dist/hooks/soft-governance.js +168 -1
- package/dist/hooks/soft-governance.js.map +1 -1
- package/dist/hooks/tool-gate.d.ts.map +1 -1
- package/dist/hooks/tool-gate.js +82 -4
- package/dist/hooks/tool-gate.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/detection.d.ts +67 -0
- package/dist/lib/detection.d.ts.map +1 -1
- package/dist/lib/detection.js +133 -0
- package/dist/lib/detection.js.map +1 -1
- package/dist/lib/framework-context.d.ts +25 -0
- package/dist/lib/framework-context.d.ts.map +1 -0
- package/dist/lib/framework-context.js +133 -0
- package/dist/lib/framework-context.js.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/persistence.d.ts.map +1 -1
- package/dist/lib/persistence.js +17 -0
- package/dist/lib/persistence.js.map +1 -1
- package/dist/lib/planning-fs.d.ts +2 -0
- package/dist/lib/planning-fs.d.ts.map +1 -1
- package/dist/lib/planning-fs.js +2 -0
- package/dist/lib/planning-fs.js.map +1 -1
- package/dist/schemas/brain-state.d.ts +13 -0
- package/dist/schemas/brain-state.d.ts.map +1 -1
- package/dist/schemas/brain-state.js +16 -0
- package/dist/schemas/brain-state.js.map +1 -1
- package/dist/tools/declare-intent.d.ts.map +1 -1
- package/dist/tools/declare-intent.js +18 -8
- package/dist/tools/declare-intent.js.map +1 -1
- package/dist/tools/export-cycle.d.ts.map +1 -1
- package/dist/tools/export-cycle.js +7 -3
- package/dist/tools/export-cycle.js.map +1 -1
- package/package.json +14 -3
- package/skills/context-integrity/SKILL.md +7 -2
- package/skills/delegation-intelligence/SKILL.md +7 -2
- package/skills/evidence-discipline/SKILL.md +7 -2
- package/skills/hivemind-governance/SKILL.md +7 -2
- 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
|