@sesamespace/hivemind 0.4.2 → 0.4.3

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/dist/README.md ADDED
@@ -0,0 +1,116 @@
1
+ # Hivemind
2
+
3
+ Cognitive architecture for AI agents with multi-layered memory, context isolation, and multi-machine fleet distribution.
4
+
5
+ ## Quick Start
6
+
7
+ ### One-Command Install (recommended)
8
+
9
+ ```bash
10
+ curl -sL api.sesame.space/api/v1/hivemind/install | bash -s -- <your-sesame-api-key>
11
+ ```
12
+
13
+ This installs all dependencies, configures the agent from Sesame, and starts it.
14
+
15
+ ### Manual Install
16
+
17
+ ```bash
18
+ # Install the CLI
19
+ npm install -g @sesamespace/hivemind
20
+
21
+ # Initialize from your Sesame API key
22
+ hivemind init <your-sesame-api-key>
23
+
24
+ # Start the agent
25
+ hivemind start --config config/default.toml
26
+
27
+ # (Optional) Install as a service that survives reboots
28
+ hivemind service install
29
+ ```
30
+
31
+ ### Development Install
32
+
33
+ ```bash
34
+ git clone https://github.com/baileydavis2026/hivemind.git
35
+ cd hivemind
36
+ pnpm install
37
+ pnpm build
38
+ cd packages/memory && cargo build --release && cd ../..
39
+ ```
40
+
41
+ ## What You Need
42
+
43
+ - **macOS** (Apple Silicon recommended)
44
+ - **Sesame API key** — get one at [sesame.space](https://sesame.space)
45
+ - **OpenRouter API key** — get one at [openrouter.ai](https://openrouter.ai) (or provision via Sesame vault)
46
+
47
+ ## Architecture
48
+
49
+ ```
50
+ ┌─────────────────────────────────────────┐
51
+ │ Agent Runtime (TypeScript) │
52
+ │ ├── Sesame WebSocket (messaging) │
53
+ │ ├── Context Manager (project isolation) │
54
+ │ ├── LLM Client (OpenRouter) │
55
+ │ └── Memory Client │
56
+ │ └── Memory Daemon (Rust/LanceDB) │
57
+ │ └── Ollama (embeddings) │
58
+ └─────────────────────────────────────────┘
59
+ ```
60
+
61
+ ### Memory Layers
62
+
63
+ | Layer | Name | Purpose |
64
+ |-------|------|---------|
65
+ | L1 | Working Memory | Current conversation (in-memory) |
66
+ | L2 | Episodic Memory | All interactions (LanceDB vectors) |
67
+ | L3 | Semantic Memory | Promoted knowledge (high-access patterns) |
68
+ | L4 | External Memory | Git, files, APIs (on-demand) |
69
+
70
+ ## CLI Commands
71
+
72
+ | Command | Description |
73
+ |---------|-------------|
74
+ | `hivemind init <key>` | Initialize agent from Sesame API key |
75
+ | `hivemind start` | Start the agent |
76
+ | `hivemind service install` | Install as launchd service (auto-start on boot) |
77
+ | `hivemind service status` | Check service status |
78
+ | `hivemind service logs` | View recent logs |
79
+ | `hivemind service uninstall` | Remove launchd services |
80
+ | `hivemind fleet` | Manage worker fleet |
81
+
82
+ ## Configuration
83
+
84
+ Config is layered (later overrides earlier):
85
+
86
+ 1. `config/default.toml` — shipped defaults
87
+ 2. `config/local.toml` — generated by `hivemind init`
88
+ 3. `.env` — secrets (SESAME_API_KEY, LLM_API_KEY, AGENT_NAME)
89
+ 4. Environment variables — override everything
90
+
91
+ ## Team Charter
92
+
93
+ Agent behavior in group chats is governed by `config/TEAM-CHARTER.md`. Edit it to change how agents interact in shared spaces. Changes take effect on agent restart.
94
+
95
+ ## Development
96
+
97
+ ```bash
98
+ pnpm install # Install deps
99
+ pnpm build # Build all packages
100
+
101
+ # Run tests (49 total)
102
+ npx tsx packages/runtime/src/__tests__/fleet.test.ts
103
+ npx tsx packages/runtime/src/__tests__/integration.test.ts
104
+ npx tsx packages/runtime/src/__tests__/fleet-integration.test.ts
105
+ ```
106
+
107
+ ## Publishing
108
+
109
+ ```bash
110
+ ./scripts/build-npm.sh # Build flat npm package
111
+ cd dist/npm && npm publish --access public # Publish to npm
112
+ ```
113
+
114
+ ## License
115
+
116
+ Private — Big Canyon Farms
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FleetManager
3
- } from "./chunk-YEOAEJ62.js";
3
+ } from "./chunk-S3RVZBPZ.js";
4
4
 
5
5
  // packages/cli/src/commands/fleet.ts
6
6
  function formatUptime(seconds) {
@@ -183,4 +183,4 @@ Commands:
183
183
  export {
184
184
  runFleetCommand
185
185
  };
186
- //# sourceMappingURL=chunk-RXCV57H3.js.map
186
+ //# sourceMappingURL=chunk-CGSXJVSS.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startPipeline
3
- } from "./chunk-LRK64BAK.js";
3
+ } from "./chunk-YHRGEWAZ.js";
4
4
 
5
5
  // packages/cli/src/commands/start.ts
6
6
  import { resolve } from "path";
@@ -41,4 +41,4 @@ Options:
41
41
  export {
42
42
  runStartCommand
43
43
  };
44
- //# sourceMappingURL=chunk-OQ272HKA.js.map
44
+ //# sourceMappingURL=chunk-O257FXSX.js.map
@@ -4,7 +4,7 @@ import {
4
4
  HEALTH_TIMEOUT_MS,
5
5
  PRIMARY_ROUTES,
6
6
  WORKER_ROUTES
7
- } from "./chunk-LRK64BAK.js";
7
+ } from "./chunk-YHRGEWAZ.js";
8
8
 
9
9
  // packages/runtime/src/fleet/primary-client.ts
10
10
  var PrimaryClient = class {
@@ -728,4 +728,4 @@ export {
728
728
  WorkerMemorySync,
729
729
  PrimaryMemorySync
730
730
  };
731
- //# sourceMappingURL=chunk-YEOAEJ62.js.map
731
+ //# sourceMappingURL=chunk-S3RVZBPZ.js.map