@hivey/cli 0.9.38 → 0.9.40

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
@@ -64,7 +64,10 @@ hivey setup
64
64
  swarm creator, agent creator, skills library, swarm watcher and voice plugins.
65
65
  4. **Optional extras.** It asks about Slack (to talk to your agents from any device), online
66
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`.
67
+ updates), and the Hivey lead agent in `~/.hivey/agent`. It also offers two companion tools,
68
+ both off unless you say yes: **skylls** (a library to find, save and share skills, agents
69
+ and swarms; needs a GitHub login) and **envsave** (keeps API keys out of your code; needs
70
+ an envsave license).
68
71
 
69
72
  `hivey setup --no-setup` skips the questions and does only the non-interactive part. Run
70
73
  `hivey setup` again any time; it only changes what's missing or out of date.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hivey/cli",
3
- "version": "0.9.38",
3
+ "version": "0.9.40",
4
4
  "description": "All your AI swarms, one terminal: a workspace and lead agent for teams of Claude Code and Codex agents",
5
5
  "keywords": [
6
6
  "hivey",
package/repo/install.sh CHANGED
@@ -36,9 +36,11 @@ while [ $# -gt 0 ]; do
36
36
  esac
37
37
  shift
38
38
  done
39
+ RERUN=./install.sh # what to run again later, in the hints below
39
40
  if [ -n "$PREBUILT" ]; then
40
41
  BIN="$PREBUILT"
41
42
  BIN_DIR="$(dirname "$BIN")"
43
+ RERUN="hivey setup"
42
44
  fi
43
45
 
44
46
  say() { printf '\n== %s\n' "$*"; }
@@ -165,11 +167,11 @@ for agent in "claude:Claude Code:claude:y" "codex:Codex:codex:n" "agy:Antigravit
165
167
  echo " could not install $label"
166
168
  fi
167
169
  else
168
- echo " $label: not installed (later: rerun ./install.sh)"
170
+ echo " $label: not installed (later: rerun $RERUN)"
169
171
  continue
170
172
  fi
171
173
  fi
172
- command -v "$cmd" >/dev/null || { echo " $label: not found after installing (open a new shell, then rerun ./install.sh)"; continue; }
174
+ command -v "$cmd" >/dev/null || { echo " $label: not found after installing (open a new shell, then rerun $RERUN)"; continue; }
173
175
  echo " $label: $("$cmd" --version 2>/dev/null | head -1)"
174
176
  tracked "$BIN" integration install "$target" | sed 's/^/ /' \
175
177
  || echo " could not link $label to hivey (later: hivey integration install $target)"
@@ -204,7 +206,13 @@ fi
204
206
  # is left as it is.
205
207
  SKYLLS_URL=https://raw.githubusercontent.com/jcsancho/skylls/main/install.sh
206
208
  say "skylls and envsave (tools and their skills)"
207
- if ! command -v skylls >/dev/null 2>&1; then
209
+ # Optional extras: offered, not assumed. A source install (the maintainers' machines) says yes
210
+ # by default; an npm install says no, since envsave needs a license and skylls an account.
211
+ EXTRAS_DEFAULT=y; [ -z "$PREBUILT" ] || EXTRAS_DEFAULT=n
212
+ if ! command -v skylls >/dev/null 2>&1 \
213
+ && ! ask_yes "Install skylls (a library to find, save and share skills, agents and swarms; asks for a GitHub login)?" "$EXTRAS_DEFAULT"; then
214
+ : # skipped: the "not installed (later: …)" line below says how
215
+ elif ! command -v skylls >/dev/null 2>&1; then
208
216
  # Its installer asks its own questions on the terminal (uv, gh, gitleaks, your account);
209
217
  # --no-setup leaves its account setup for later.
210
218
  SKYLLS_OPT=""; [ "$SETUP" = 1 ] || SKYLLS_OPT=--no-setup
@@ -227,7 +235,10 @@ if command -v skylls >/dev/null 2>&1; then
227
235
  else
228
236
  echo " skylls: not installed (later: bash -c \"\$(curl -fsSL $SKYLLS_URL)\")"
229
237
  fi
230
- if ! command -v envsave >/dev/null 2>&1; then
238
+ if ! command -v envsave >/dev/null 2>&1 \
239
+ && ! ask_yes "Install envsave (keeps API keys out of your code; needs an envsave license)?" "$EXTRAS_DEFAULT"; then
240
+ : # skipped: the "not installed (later: …)" line below says how
241
+ elif ! command -v envsave >/dev/null 2>&1; then
231
242
  if js_global @envsave/cli; then
232
243
  hash -r
233
244
  command -v envsave >/dev/null 2>&1 && changed installed "envsave: $(command -v envsave)"
@@ -247,6 +258,14 @@ if command -v envsave >/dev/null 2>&1; then
247
258
  else
248
259
  echo " envsave: not installed (later: npm install -g @envsave/cli; needs Node.js)"
249
260
  fi
261
+ # Codex reads ~/.agents/skills: link the skills there too (envsave only installs for Claude).
262
+ for skill in skylls envsave; do
263
+ if [ -f "$HOME/.claude/skills/$skill/SKILL.md" ] && [ ! -e "$HOME/.agents/skills/$skill" ] \
264
+ && [ ! -L "$HOME/.agents/skills/$skill" ]; then
265
+ mkdir -p "$HOME/.agents/skills" && ln -s "$HOME/.claude/skills/$skill" "$HOME/.agents/skills/$skill" \
266
+ && changed linked "$HOME/.agents/skills/$skill (for Codex)"
267
+ fi
268
+ done
250
269
 
251
270
  say "bundled plugins"
252
271
  STARTED_SERVER=0