@hiveai/cli 0.9.10 → 0.9.12
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 +44 -0
- package/dist/index.js +1263 -774
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ This installs the `haive` command globally. **The MCP server is bundled** — us
|
|
|
28
28
|
# 1. Initialize hAIve in your project (strict enforcement ON by default)
|
|
29
29
|
cd my-project
|
|
30
30
|
haive init # .ai/, MCP config, hooks, CI, code-map
|
|
31
|
+
haive agent status # confirm MCP/wrapper/fallback mode
|
|
31
32
|
haive enforce install # re-apply strict MCP + Git + CI enforcement gates
|
|
32
33
|
|
|
33
34
|
# 2. Point your AI client at the MCP server
|
|
@@ -51,6 +52,7 @@ haive memory add \
|
|
|
51
52
|
haive enforce status
|
|
52
53
|
haive enforce check --stage pre-commit
|
|
53
54
|
haive enforce ci
|
|
55
|
+
haive benchmark report --dir benchmarks/agent-benchmark
|
|
54
56
|
```
|
|
55
57
|
|
|
56
58
|
---
|
|
@@ -66,6 +68,7 @@ haive init # Autopilot: policy config, hooks, CI, MCP setup,
|
|
|
66
68
|
haive init --manual # Manual mode: you approve every memory yourself
|
|
67
69
|
haive init --no-bridges # Skip bridge file generation (CLAUDE.md, .cursorrules, etc.)
|
|
68
70
|
haive init --dir /other/path # Initialize in a specific directory
|
|
71
|
+
haive init --yes # Also approve user-level AI client MCP configuration
|
|
69
72
|
```
|
|
70
73
|
|
|
71
74
|
**Autopilot mode** (default):
|
|
@@ -101,6 +104,30 @@ your-project/
|
|
|
101
104
|
|
|
102
105
|
Bridge files include mandatory rules, but they are not the enforcement boundary. hAIve's portable enforcement comes from MCP policy, Git hooks, CI checks, and `haive run -- <agent>` for CLI agents.
|
|
103
106
|
|
|
107
|
+
`haive init` also runs agent-aware setup. It always writes project-level MCP configs and records the selected mode in `.ai/.runtime/enforcement/agent-mode.json`. When it needs to change user-level configs such as Cursor, Claude Code, VS Code, Windsurf, or Codex, it asks for confirmation in an interactive shell. In CI/non-interactive shells, re-run:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
haive agent setup --yes
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### `haive agent`
|
|
114
|
+
|
|
115
|
+
Detect and configure the best hAIve mode for the current machine.
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
haive agent detect # inspect project MCP + installed agents
|
|
119
|
+
haive agent status # same report, human-readable or --json
|
|
120
|
+
haive agent setup # project MCP + optional global MCP setup
|
|
121
|
+
haive agent setup --no-global # project-only setup, no user config writes
|
|
122
|
+
haive agent setup --yes # approve user-level MCP config writes
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Modes:
|
|
126
|
+
|
|
127
|
+
- `mcp`: native hAIve tools are available through the AI client.
|
|
128
|
+
- `wrapped`: use `haive run -- <agent>` when native MCP is unavailable.
|
|
129
|
+
- `fallback`: use `haive briefing` and `haive enforce check` manually.
|
|
130
|
+
|
|
104
131
|
---
|
|
105
132
|
|
|
106
133
|
### `haive enforce`
|
|
@@ -113,6 +140,7 @@ haive enforce status # show whether the repo is protected
|
|
|
113
140
|
haive enforce check --stage local # local policy gate
|
|
114
141
|
haive enforce check --stage pre-push # used by Git hooks
|
|
115
142
|
haive enforce ci # used by required CI checks
|
|
143
|
+
haive enforce cleanup # remove generated .ai runtime/cache artifacts
|
|
116
144
|
```
|
|
117
145
|
|
|
118
146
|
Strict mode checks for:
|
|
@@ -120,7 +148,23 @@ Strict mode checks for:
|
|
|
120
148
|
- a recent hAIve briefing marker before local write workflows
|
|
121
149
|
- recent session recap before push/CI gates
|
|
122
150
|
- stale important memories anchored to changed code
|
|
151
|
+
- decision coverage: changed files must have their relevant anchored policies surfaced in the latest briefing
|
|
123
152
|
- known anti-patterns from validated gotchas/decisions
|
|
153
|
+
- visible generated artifacts such as `.ai/.runtime`, `.ai/.cache`, or Python bytecode
|
|
154
|
+
|
|
155
|
+
`haive enforce check` prints an enforcement score and fails strict gates when the score drops below the configured threshold.
|
|
156
|
+
|
|
157
|
+
### `haive benchmark`
|
|
158
|
+
|
|
159
|
+
Turn hAIve-vs-plain agent trials into a repeatable demo/report.
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
haive benchmark demo
|
|
163
|
+
haive benchmark report --dir benchmarks/agent-benchmark
|
|
164
|
+
haive benchmark report --dir benchmarks/agent-benchmark --out RESULTS.md
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
The report summarizes agent effort from `BENCHMARK_AGENT_REPORT.md` files: commands, files read, files modified, test iterations, terminal failures, decision mentions, token proxy, and whether hAIve memory shaped the outcome.
|
|
124
168
|
|
|
125
169
|
### `haive run`
|
|
126
170
|
|