@hiveai/cli 0.3.2 → 0.4.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/README.md CHANGED
@@ -22,28 +22,30 @@ This installs the `haive` command globally.
22
22
  ## Quick start
23
23
 
24
24
  ```bash
25
- # 1. Initialize hAIve in your project
25
+ # 1. Initialize hAIve in your project (autopilot ON by default)
26
26
  cd my-project
27
- haive init
27
+ haive init # autopilot: hooks + CI + code-map auto-configured
28
+ # haive init --manual # if you prefer to approve memories yourself
28
29
 
29
- # 2. Start the MCP server (in Claude Code / Cursor MCP config)
30
- haive mcp --root /absolute/path/to/my-project
30
+ # 2. Point your AI client at the MCP server
31
+ # Add to ~/.claude.json / ~/.cursor/mcp.json:
32
+ # { "mcpServers": { "haive": { "command": "haive-mcp", "args": ["--root", "/absolute/path"] } } }
31
33
 
32
- # 3. Add a team memory
34
+ # 3. Bootstrap the project context (run once in your AI client)
35
+ # → Use the bootstrap_project MCP prompt to analyze the codebase and fill .ai/project-context.md
36
+
37
+ # 4. Your AI client now calls get_briefing at every session start — zero config needed
38
+
39
+ # 5. Add a memory manually (or let the AI agent do it via mem_save)
33
40
  haive memory add \
34
- --type gotcha \
35
- --slug "open-in-view-false" \
36
- --scope team \
41
+ --type gotcha --slug "jpa-open-in-view" --scope team \
37
42
  --paths src/main/resources/application.properties \
38
43
  --body "spring.jpa.open-in-view=false is intentional — do not re-enable."
39
44
 
40
- # 4. Browse memories
41
- haive memory list --scope team
45
+ # 6. Browse and manage memories in the TUI dashboard
46
+ haive tui
42
47
 
43
- # 5. Get a briefing before a task
44
- haive briefing --task "add a payment endpoint" --scope team
45
-
46
- # 6. Sync after a git pull
48
+ # 7. Sync after a git pull (runs automatically via hooks in autopilot mode)
47
49
  haive sync
48
50
  ```
49
51
 
@@ -53,21 +55,35 @@ haive sync
53
55
 
54
56
  ### `haive init`
55
57
 
56
- Initialize the `.ai/` structure in a project and generate bridge files for your AI tools.
58
+ Initialize the `.ai/` structure in a project. **Autopilot mode is ON by default** zero manual steps required.
57
59
 
58
60
  ```bash
59
- haive init # Creates .ai/, CLAUDE.md, .cursorrules, copilot-instructions.md
60
- haive init --no-bridges # Skip bridge file generation
61
- haive init --with-ci # Also write .github/workflows/haive-sync.yml
61
+ haive init # Autopilot: validates memories automatically, installs hooks, builds code-map
62
+ haive init --manual # Manual mode: you approve every memory yourself
63
+ haive init --no-bridges # Skip bridge file generation (CLAUDE.md, .cursorrules, etc.)
62
64
  haive init --dir /other/path # Initialize in a specific directory
63
65
  ```
64
66
 
67
+ **Autopilot mode** (default):
68
+ - Memories are saved directly as `validated` (no approval cycle)
69
+ - Git hooks installed automatically (`haive sync` after every pull)
70
+ - CI workflow generated (`.github/workflows/haive-sync.yml`)
71
+ - Initial code-map built (`.ai/code-map.json`) for symbol lookup
72
+ - Session recaps saved automatically when the MCP server exits
73
+ - Configuration stored in `.ai/haive.config.json`
74
+
75
+ **Manual mode** (`--manual`):
76
+ - Memories start as `proposed` and require explicit approval (`haive memory approve`)
77
+ - No automatic hooks or CI — set up manually with `haive install-hooks` and `haive init --with-ci`
78
+ - Full control over when knowledge is shared with the team
79
+
65
80
  **What it creates:**
66
81
 
67
82
  ```
68
83
  your-project/
69
84
  ├── .ai/
70
85
  │ ├── project-context.md # Shared project overview (fill via bootstrap_project MCP prompt)
86
+ │ ├── haive.config.json # Autopilot settings
71
87
  │ ├── modules/ # Per-component context files
72
88
  │ └── memories/
73
89
  │ ├── personal/ # Private to one developer