@hivey/cli 0.0.0-stage → 0.9.36
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 +235 -2
- package/bin/hivey.js +98 -0
- package/native/darwin-arm64/hivey +0 -0
- package/package.json +36 -4
- package/platforms.json +3 -0
- package/repo/LICENSE +201 -0
- package/repo/NOTICE +18 -0
- package/repo/README.md +148 -0
- package/repo/install.sh +365 -0
- package/repo/pets/README.md +25 -0
- package/repo/pets/hivey-dot/CLAUDE.md +55 -0
- package/repo/pets/hivey-dot/build.sh +34 -0
- package/repo/pets/hivey-dot/main.swift +750 -0
- package/repo/pets/hivey-h/CLAUDE.md +75 -0
- package/repo/pets/hivey-h/build.sh +34 -0
- package/repo/pets/hivey-h/main.swift +739 -0
- package/repo/pets/hivey-prompt/CLAUDE.md +59 -0
- package/repo/pets/hivey-prompt/build.sh +34 -0
- package/repo/pets/hivey-prompt/main.swift +691 -0
- package/repo/pets/pet.py +288 -0
- package/repo/pets/shared/HiveyWatch.swift +437 -0
- package/repo/pets/test_pet.py +122 -0
- package/repo/plugins/README.md +108 -0
- package/repo/plugins/agent-creator/herdr-plugin.toml +17 -0
- package/repo/plugins/dashboard/dashboard.py +507 -0
- package/repo/plugins/dashboard/herdr-plugin.toml +14 -0
- package/repo/plugins/dashboard/test_dashboard.py +134 -0
- package/repo/plugins/github/github.py +261 -0
- package/repo/plugins/github/herdr-plugin.toml +14 -0
- package/repo/plugins/github/test_github.py +49 -0
- package/repo/plugins/skills/herdr-plugin.toml +11 -0
- package/repo/plugins/skills/skills.md +41 -0
- package/repo/plugins/slack-relay/connect.py +198 -0
- package/repo/plugins/slack-relay/create_channel.py +134 -0
- package/repo/plugins/slack-relay/herdr-plugin.toml +15 -0
- package/repo/plugins/slack-relay/relay.py +401 -0
- package/repo/plugins/slack-relay/slack-app-manifest.json +30 -0
- package/repo/plugins/slack-relay/test_connect.py +66 -0
- package/repo/plugins/slack-relay/test_create_channel.py +61 -0
- package/repo/plugins/slack-relay/test_relay.py +254 -0
- package/repo/plugins/swarm-creator/herdr-plugin.toml +17 -0
- package/repo/plugins/swarm-watcher/dashboard.py +333 -0
- package/repo/plugins/swarm-watcher/herdr-plugin.toml +16 -0
- package/repo/plugins/swarm-watcher/usage.py +129 -0
- package/repo/plugins/swarm-watcher/watcher.py +191 -0
- package/repo/plugins/team-template/herdr-plugin.toml +15 -0
- package/repo/plugins/team-template/setup.py +211 -0
- package/repo/plugins/team-template/test_setup.py +73 -0
- package/repo/plugins/tts/herdr-plugin.toml +15 -0
- package/repo/skills/herdr/SKILL.md +214 -0
- package/repo/skills/hivey/SKILL.md +322 -0
- package/repo/skills/hivey/scripts/handoff.py +27 -0
- package/repo/skills/hivey/scripts/new_wiki.py +143 -0
- package/repo/skills/hivey-agent-creator/SKILL.md +303 -0
- package/repo/skills/hivey-agent-creator/references/agent-claude-md.md +256 -0
- package/repo/skills/hivey-agent-creator/references/global-guidelines.md +67 -0
- package/repo/skills/hivey-agent-creator/references/reviewer-agent.md +35 -0
- package/repo/skills/hivey-agent-creator/scripts/agent_context.py +76 -0
- package/repo/skills/hivey-agent-creator/scripts/agent_gate.py +78 -0
- package/repo/skills/hivey-agent-creator/scripts/setup_agent.py +288 -0
- package/repo/skills/hivey-agy/SKILL.md +123 -0
- package/repo/skills/hivey-agy/references/gemini-prompting.md +134 -0
- package/repo/skills/hivey-agy/scripts/agy_run.py +146 -0
- package/repo/skills/hivey-codex/SKILL.md +66 -0
- package/repo/skills/hivey-context7/SKILL.md +56 -0
- package/repo/skills/hivey-create-wiki/SKILL.md +329 -0
- package/repo/skills/hivey-grok/SKILL.md +101 -0
- package/repo/skills/hivey-grok/scripts/grok_run.py +139 -0
- package/repo/skills/hivey-swarm-creator/SKILL.md +384 -0
- package/repo/skills/hivey-swarm-creator/references/agent-claude-md.md +313 -0
- package/repo/skills/hivey-swarm-creator/references/archify-report.md +24 -0
- package/repo/skills/hivey-swarm-creator/references/dashboard.md +46 -0
- package/repo/skills/hivey-swarm-creator/references/retrospective.md +23 -0
- package/repo/skills/hivey-swarm-creator/references/shared-rules.md +39 -0
- package/repo/skills/hivey-swarm-creator/references/wiki-memory.md +30 -0
- package/repo/skills/hivey-swarm-creator/scripts/setup_agent.py +76 -0
- package/repo/skills/hivey-swarm-creator/scripts/shared_rules.py +50 -0
- package/repo/skills/hivey-swarm-creator/scripts/swarm_tasks.py +171 -0
- package/repo/skills/hivey-wiki-ingest/SKILL.md +45 -0
- package/repo/skills/hivey-wiki-lint/SKILL.md +38 -0
- package/repo/skills/hivey-wiki-list/SKILL.md +46 -0
- package/repo/skills/hivey-wiki-log/SKILL.md +45 -0
- package/repo/skills/hivey-wiki-query/SKILL.md +44 -0
package/README.md
CHANGED
|
@@ -1,3 +1,236 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Hivey
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**All your AI swarms. One terminal.**
|
|
4
|
+
|
|
5
|
+
Hivey is a terminal workspace and lead agent for teams of AI coding agents (Claude Code and
|
|
6
|
+
Codex). Give Hivey one goal: it designs a team, gives it a coordinator, opens every agent in its
|
|
7
|
+
own pane, and keeps their messages, status and memory in one place. You can talk to the team in
|
|
8
|
+
the terminal or from Slack, and come back later to see what it did.
|
|
9
|
+
|
|
10
|
+
Website and docs: **[hivey.dev](https://hivey.dev)** · Source: [github.com/alyssaaa11/hivey](https://github.com/alyssaaa11/hivey) · Apache-2.0
|
|
11
|
+
|
|
12
|
+
> This npm package ships a prebuilt binary for **Apple Silicon Macs** (M1 and later). On Linux
|
|
13
|
+
> or an Intel Mac, [build from source](#build-from-source-linux-intel-mac).
|
|
14
|
+
|
|
15
|
+
## Contents
|
|
16
|
+
|
|
17
|
+
- [Requirements](#requirements)
|
|
18
|
+
- [Install](#install)
|
|
19
|
+
- [Set up (once)](#set-up-once)
|
|
20
|
+
- [Start Hivey](#start-hivey)
|
|
21
|
+
- [Your first swarm](#your-first-swarm)
|
|
22
|
+
- [Talk to your agents](#talk-to-your-agents)
|
|
23
|
+
- [Find your way around](#find-your-way-around)
|
|
24
|
+
- [Manage swarms](#manage-swarms)
|
|
25
|
+
- [Scheduled checks and quiet mode](#scheduled-checks-and-quiet-mode)
|
|
26
|
+
- [Slack](#slack)
|
|
27
|
+
- [Update](#update)
|
|
28
|
+
- [Uninstall](#uninstall)
|
|
29
|
+
- [Troubleshooting](#troubleshooting)
|
|
30
|
+
|
|
31
|
+
## Requirements
|
|
32
|
+
|
|
33
|
+
- An Apple Silicon Mac
|
|
34
|
+
- **Node.js** 18 or later (for npm)
|
|
35
|
+
- **Python 3** (the setup and the bundled plugins use it)
|
|
36
|
+
- **Claude Code** for the Hivey lead agent and the team designer. Codex is optional: agents can
|
|
37
|
+
run on either. You sign in to those tools yourself; Hivey uses your existing logins.
|
|
38
|
+
|
|
39
|
+
## Install
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install -g @hivey/cli
|
|
43
|
+
hivey --version
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This installs the `hivey` command: a small Node launcher plus the prebuilt binary, the bundled
|
|
47
|
+
plugins and the agent skills. Nothing is compiled on your machine.
|
|
48
|
+
|
|
49
|
+
## Set up (once)
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
hivey setup
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`hivey setup` prepares your machine and lists everything it changed at the end:
|
|
56
|
+
|
|
57
|
+
1. **Coding agents.** It looks for Claude Code, Codex, Antigravity (Gemini) and Grok, offers
|
|
58
|
+
to install the ones you don't have (Claude Code by default), and links each one found to
|
|
59
|
+
Hivey so their panes show *working*, *idle* or *blocked*.
|
|
60
|
+
2. **Skills, hooks and commands.** It installs the Hivey skills into Claude Code
|
|
61
|
+
(`~/.claude/skills`) and Codex (`~/.agents/skills`). They teach your agents to run Hivey for
|
|
62
|
+
you (sessions, swarms, plugins).
|
|
63
|
+
3. **Bundled plugins.** It links the dashboard, Slack relay, GitHub publisher, team template,
|
|
64
|
+
swarm creator, agent creator, skills library, swarm watcher and voice plugins.
|
|
65
|
+
4. **Optional extras.** It asks about Slack (to talk to your agents from any device), online
|
|
66
|
+
skill search, a desktop pet (a small character that reacts to your agents and can speak
|
|
67
|
+
updates), and the Hivey lead agent in `~/.hivey/agent`.
|
|
68
|
+
|
|
69
|
+
`hivey setup --no-setup` skips the questions and does only the non-interactive part. Run
|
|
70
|
+
`hivey setup` again any time; it only changes what's missing or out of date.
|
|
71
|
+
|
|
72
|
+
## Start Hivey
|
|
73
|
+
|
|
74
|
+
Open a terminal in the folder where the work lives and run:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
cd ~/projects/my-project
|
|
78
|
+
hivey # the default session
|
|
79
|
+
hivey --session my-project # or one Hivey per project
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Hivey is a full-screen terminal workspace: a sidebar of swarms on the left, agent panes on the
|
|
83
|
+
right. Detach with `⌥Q` (or `ctrl+b` then `q`). Everything keeps running, and `hivey` reattaches.
|
|
84
|
+
Your agents keep working while the Mac stays awake and connected. Hivey is not a hosted
|
|
85
|
+
service, so a sleeping Mac pauses them.
|
|
86
|
+
|
|
87
|
+
## Your first swarm
|
|
88
|
+
|
|
89
|
+
Ask the Hivey lead agent in plain words ("build a team to research and prototype my idea"), or
|
|
90
|
+
launch one from the project folder:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
hivey swarm new "Research and build my next idea"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
A **setup provider** designs the team. The bundled one opens a coordinator that plans the swarm
|
|
97
|
+
with you: which agents, which models, what each one delivers, and whether it gets a Slack
|
|
98
|
+
channel or a memory wiki. Then it launches the swarm in its own space:
|
|
99
|
+
|
|
100
|
+
- the **coordinator** (master) in the first pane, the **agents** beside it, each in its own
|
|
101
|
+
folder
|
|
102
|
+
- a **dashboard** with each agent's state, token use, budget, tasks and recent messages
|
|
103
|
+
- a **message bus** so agents can hand work to each other
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
hivey swarm providers # the installed team designers
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Talk to your agents
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
hivey msg send my-swarm/coordinator "How is it going?" # the coordinator
|
|
113
|
+
hivey msg send my-swarm/scout "Share your sources" # one agent
|
|
114
|
+
hivey msg send @all --swarm my-swarm "Wrap up by 6pm" # everyone
|
|
115
|
+
hivey msg send my-swarm/scout --fyi "FYI: API key rotated" # never wakes it
|
|
116
|
+
hivey msg send my-swarm/scout --urgent "Stop, wrong repo" # now, even mid-task
|
|
117
|
+
hivey msg log --swarm my-swarm # history
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Normal messages are delivered when the agent is idle, never in the middle of a task. Several
|
|
121
|
+
waiting messages arrive together as one prompt. If an agent is stuck on a question, its
|
|
122
|
+
messages wait and the coordinator is told once.
|
|
123
|
+
|
|
124
|
+
## Find your way around
|
|
125
|
+
|
|
126
|
+
| Keys | What |
|
|
127
|
+
| --- | --- |
|
|
128
|
+
| `⌥S` | Pick a swarm and jump to its coordinator |
|
|
129
|
+
| `⌥M` | Jump to this swarm's coordinator |
|
|
130
|
+
| `⌥A` | Send a message (an agent, `@all`, a role; normal, FYI or urgent) |
|
|
131
|
+
| `⌥I` | Swarm info: agents, Slack channel, memory wiki, plugins, budget, tasks |
|
|
132
|
+
| `⌥L` | This swarm's message log |
|
|
133
|
+
| `⌥F` | Zoom the focused pane, and back |
|
|
134
|
+
| `⌥P` | Choose your desktop pet, or none |
|
|
135
|
+
| `⌥Q` | Detach (everything keeps running) |
|
|
136
|
+
|
|
137
|
+
Your terminal must send Option as Alt: iTerm2 → Profiles → Keys → Left Option = Esc+;
|
|
138
|
+
Terminal.app → Profiles → Keyboard → "Use Option as Meta key"; Ghostty:
|
|
139
|
+
`macos-option-as-alt = true`.
|
|
140
|
+
|
|
141
|
+
With the mouse: **click a swarm** in the sidebar to open it and focus its coordinator,
|
|
142
|
+
**hover** it for its agents and status, **double-click a pane's title** to make it full screen,
|
|
143
|
+
and **right-click an agent** to open a second session of it beside the first.
|
|
144
|
+
|
|
145
|
+
## Manage swarms
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
hivey swarm list # swarms, agents, states, waiting messages
|
|
149
|
+
hivey swarm info my-swarm # what it uses: agents, Slack, wiki, plugins, budget
|
|
150
|
+
hivey swarm pause my-swarm # hold deliveries; messages still queue
|
|
151
|
+
hivey swarm resume my-swarm
|
|
152
|
+
hivey swarm relaunch my-swarm # restart stopped agents, continuing their conversations
|
|
153
|
+
hivey swarm relaunch my-swarm scout # one agent (--fresh starts a new conversation)
|
|
154
|
+
hivey swarm addon my-swarm hivey.dashboard # reopen the dashboard
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
After restarting the Mac, run `hivey`, then `hivey swarm relaunch <swarm>` for any agent that
|
|
158
|
+
came back as a plain shell.
|
|
159
|
+
|
|
160
|
+
## Scheduled checks and quiet mode
|
|
161
|
+
|
|
162
|
+
Wake the coordinator (or one agent) on a timer. The check is delivered only when that agent is
|
|
163
|
+
idle, so it never interrupts work, and each one costs one turn of that agent's model.
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
hivey swarm schedule add my-swarm --every 2h "run the test suite and file failures"
|
|
167
|
+
hivey swarm schedule add my-swarm --at 09:00 "summarize yesterday's progress"
|
|
168
|
+
hivey swarm schedule list
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Let swarms work through the night without waking you:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
hivey quiet on # no sounds or speech; Slack posts held for a catch-up
|
|
175
|
+
hivey quiet schedule 22:30-6:45 # every day
|
|
176
|
+
hivey quiet off
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Slack
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
hivey slack connect # once: walks you through creating the Slack app
|
|
183
|
+
hivey home setup --slack # #hivey: talk to the Hivey lead agent from anywhere
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Each swarm can get its own channel. In it, `@scout …` reaches that agent, `@all …` everyone,
|
|
187
|
+
and a message without a mention goes to the coordinator.
|
|
188
|
+
|
|
189
|
+
## Update
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
hivey update # runs npm install -g @hivey/cli@latest
|
|
193
|
+
hivey update --check # only compare your version with the latest on npm
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Running sessions keep the old version until they restart (`hivey server stop`, then `hivey`).
|
|
197
|
+
|
|
198
|
+
## Uninstall
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
hivey server stop
|
|
202
|
+
npm uninstall -g @hivey/cli
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Your settings stay in `~/.config/hivey` and `~/.hivey`, and the skills in `~/.claude/skills`
|
|
206
|
+
and `~/.agents/skills`. Delete those folders too for a clean removal.
|
|
207
|
+
|
|
208
|
+
## Build from source (Linux, Intel Mac)
|
|
209
|
+
|
|
210
|
+
To use Hivey on Linux or an Intel Mac, or to change Hivey itself, install from a checkout. You
|
|
211
|
+
need Git, Rust, Zig 0.16.0, Python 3 and Node.js:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
git clone https://github.com/alyssaaa11/hivey.git ~/hivey
|
|
215
|
+
cd ~/hivey && ./install.sh
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
`hivey update` then pulls and rebuilds that checkout.
|
|
219
|
+
|
|
220
|
+
## Troubleshooting
|
|
221
|
+
|
|
222
|
+
| Symptom | Fix |
|
|
223
|
+
| --- | --- |
|
|
224
|
+
| `EBADPLATFORM` when installing | This package is for Apple Silicon Macs only. Build from source instead. |
|
|
225
|
+
| `hivey setup` says python3 not found | Install Python 3 (`xcode-select --install` or python.org), then run it again. |
|
|
226
|
+
| `⌥` keys type symbols (œ, ƒ) | Set your terminal to send Option as Alt (see [Find your way around](#find-your-way-around)). Meanwhile, `ctrl+b` then `q` detaches. |
|
|
227
|
+
| A message never arrives | `hivey swarm list`: the agent may be *working* (it gets the message when idle), *blocked* (the coordinator was told), or the swarm is paused. |
|
|
228
|
+
| An agent shows *gone* | `hivey swarm relaunch <swarm>` |
|
|
229
|
+
| The dashboard closed | `hivey swarm addon <swarm> hivey.dashboard` |
|
|
230
|
+
|
|
231
|
+
More: the [docs on hivey.dev](https://hivey.dev/docs/) and the
|
|
232
|
+
[full guide](https://github.com/alyssaaa11/hivey/blob/main/docs/hivey-guide.md).
|
|
233
|
+
|
|
234
|
+
## License
|
|
235
|
+
|
|
236
|
+
Apache-2.0. Hivey is built on the [herdr](https://github.com/herdrdev/herdr) terminal runtime.
|
package/bin/hivey.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Runs the hivey binary shipped in this package (native/<os>-<cpu>/). Two commands are
|
|
3
|
+
// handled here because an npm install has no checkout to build from: `hivey setup` (the
|
|
4
|
+
// install.sh setup, without the build) and `hivey update` (npm install -g @hivey/cli@latest).
|
|
5
|
+
"use strict";
|
|
6
|
+
|
|
7
|
+
const { spawn, spawnSync } = require("node:child_process");
|
|
8
|
+
const fs = require("node:fs");
|
|
9
|
+
const path = require("node:path");
|
|
10
|
+
|
|
11
|
+
const PACKAGE = "@hivey/cli";
|
|
12
|
+
const root = path.join(__dirname, "..");
|
|
13
|
+
const repo = path.join(root, "repo");
|
|
14
|
+
const platforms = require(path.join(root, "platforms.json"));
|
|
15
|
+
|
|
16
|
+
function fail(message) {
|
|
17
|
+
console.error(`hivey: ${message}`);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function binary() {
|
|
22
|
+
if (process.env.HIVEY_BINARY_PATH) return process.env.HIVEY_BINARY_PATH;
|
|
23
|
+
const key = `${process.platform}-${process.arch}`;
|
|
24
|
+
const platform = platforms[key];
|
|
25
|
+
if (!platform) {
|
|
26
|
+
fail(`no prebuilt hivey for ${key} (built for: ${Object.keys(platforms).join(", ")})`);
|
|
27
|
+
}
|
|
28
|
+
const exe = path.join(root, "native", key, platform.exe);
|
|
29
|
+
if (!fs.existsSync(exe)) fail(`${exe} is missing: reinstall with npm install -g ${PACKAGE}`);
|
|
30
|
+
if (process.platform !== "win32") {
|
|
31
|
+
try {
|
|
32
|
+
fs.accessSync(exe, fs.constants.X_OK);
|
|
33
|
+
} catch {
|
|
34
|
+
fs.chmodSync(exe, 0o755);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return exe;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const windows = process.platform === "win32";
|
|
41
|
+
|
|
42
|
+
// Runs a command attached to this terminal; exits with its status. Ctrl-C already reaches the
|
|
43
|
+
// command (same terminal), so this launcher only waits for it; kill or a closing terminal is
|
|
44
|
+
// passed on instead of orphaning it.
|
|
45
|
+
function run(command, args, env, then) {
|
|
46
|
+
const child = spawn(command, args, { stdio: "inherit", env, shell: windows && command.endsWith(".cmd") });
|
|
47
|
+
const forward = (signal) => child.kill(signal);
|
|
48
|
+
const ignore = () => {};
|
|
49
|
+
const signals = windows ? [] : ["SIGTERM", "SIGHUP"];
|
|
50
|
+
process.on("SIGINT", ignore);
|
|
51
|
+
for (const signal of signals) process.on(signal, forward);
|
|
52
|
+
child.on("error", (error) => fail(`cannot run ${command}: ${error.message}`));
|
|
53
|
+
child.on("exit", (code, signal) => {
|
|
54
|
+
process.off("SIGINT", ignore);
|
|
55
|
+
for (const s of signals) process.off(s, forward);
|
|
56
|
+
if (then) then(code ?? 1);
|
|
57
|
+
if (signal) process.kill(process.pid, signal);
|
|
58
|
+
process.exit(code ?? 1);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const args = process.argv.slice(2);
|
|
63
|
+
const exe = binary();
|
|
64
|
+
const env = { ...process.env };
|
|
65
|
+
// The binary looks for its plugins, pets and scripts here (a checkout's own HIVEY_REPO wins).
|
|
66
|
+
if (!env.HIVEY_REPO) env.HIVEY_REPO = repo;
|
|
67
|
+
const fromNpm = env.HIVEY_REPO === repo;
|
|
68
|
+
|
|
69
|
+
if (args[0] === "setup" && fromNpm) {
|
|
70
|
+
run("bash", [path.join(repo, "install.sh"), "--prebuilt", exe, ...args.slice(1)], env);
|
|
71
|
+
} else if (args[0] === "update" && fromNpm) {
|
|
72
|
+
update();
|
|
73
|
+
} else {
|
|
74
|
+
run(exe, args, env);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// `hivey update` for an npm install; `--check` only compares versions.
|
|
78
|
+
function update() {
|
|
79
|
+
const npm = windows ? "npm.cmd" : "npm";
|
|
80
|
+
if (args.includes("--check")) {
|
|
81
|
+
const latest = spawnSync(npm, ["view", PACKAGE, "version"], { encoding: "utf8", shell: windows });
|
|
82
|
+
const installed = require(path.join(root, "package.json")).version;
|
|
83
|
+
const newest = (latest.stdout || "").trim();
|
|
84
|
+
if (!newest) fail(`could not ask npm for the latest ${PACKAGE}`);
|
|
85
|
+
console.log(
|
|
86
|
+
newest === installed
|
|
87
|
+
? `hivey ${installed} is up to date`
|
|
88
|
+
: `hivey ${newest} is the latest on npm (installed: ${installed}); hivey update installs it`,
|
|
89
|
+
);
|
|
90
|
+
process.exit(0);
|
|
91
|
+
}
|
|
92
|
+
console.log(`hivey was installed with npm: npm install -g ${PACKAGE}@latest`);
|
|
93
|
+
run(npm, ["install", "-g", `${PACKAGE}@latest`], env, (status) => {
|
|
94
|
+
if (status === 0) {
|
|
95
|
+
console.log("updated: running hivey sessions keep the old version until restarted (hivey server stop)");
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivey/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.9.36",
|
|
4
|
+
"description": "All your AI swarms, one terminal: a workspace and lead agent for teams of Claude Code and Codex agents",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"hivey",
|
|
7
|
+
"agents",
|
|
8
|
+
"swarm",
|
|
9
|
+
"terminal",
|
|
10
|
+
"claude-code",
|
|
11
|
+
"codex"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://hivey.dev",
|
|
14
|
+
"bugs": "https://github.com/alyssaaa11/hivey/issues",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/alyssaaa11/hivey.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"bin": {
|
|
21
|
+
"hivey": "bin/hivey.js"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"bin",
|
|
25
|
+
"native",
|
|
26
|
+
"platforms.json",
|
|
27
|
+
"repo"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
},
|
|
32
|
+
"os": [
|
|
33
|
+
"darwin"
|
|
34
|
+
],
|
|
35
|
+
"cpu": [
|
|
36
|
+
"arm64"
|
|
37
|
+
]
|
|
38
|
+
}
|
package/platforms.json
ADDED
package/repo/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/repo/NOTICE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
hivey
|
|
2
|
+
Copyright 2026 the hivey authors
|
|
3
|
+
|
|
4
|
+
hivey is a fork of herdr (https://github.com/herdrdev/herdr),
|
|
5
|
+
Copyright the herdr authors, licensed under the Apache License 2.0.
|
|
6
|
+
|
|
7
|
+
Files modified from herdr carry "hivey:" comments at each change (text and Rust files);
|
|
8
|
+
docs/next/api/herdr-api.schema.json is generated from the code and also contains hivey's
|
|
9
|
+
additions (the swarm methods). hivey-only code lives in src/hivey.rs, src/swarm/ and
|
|
10
|
+
src/cli/swarm/. hivey shows its own name in user-facing text; internal names inherited from
|
|
11
|
+
herdr (HERDR_* environment variables, herdr-plugin.toml, socket file names) are kept for
|
|
12
|
+
compatibility with herdr plugins and agent integrations.
|
|
13
|
+
|
|
14
|
+
"herdr" is the name of the upstream project; hivey is not affiliated with or endorsed by it.
|
|
15
|
+
|
|
16
|
+
Third-party components built into hivey and their licenses are listed in
|
|
17
|
+
THIRD_PARTY_LICENSES.md, which must accompany every binary distribution together with
|
|
18
|
+
LICENSE and this NOTICE.
|