Commit graph

331 commits

Author SHA1 Message Date
Sprite
dff70afb4b fix: Force CI mode for complete Unicode disabling in CLI
- Set both TERM=linux and CI=true in unicode-detect.ts
- CI env var provides additional Unicode disabling for @clack/prompts
- Fix test imports to use package.json instead of deleted version.ts
- Bump to 0.2.6

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 07:35:20 +00:00
Sprite
875e9adb6b chore: Bump version to 0.2.5 and add version bump policy
- Bumped CLI version from 0.2.4 to 0.2.5
- Added rule to CLAUDE.md: ANY change to cli/ requires a version bump
- Uses semantic versioning (patch for fixes, minor for features, major for breaking)
- Auto-update ensures users get latest version immediately

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 07:24:28 +00:00
Sprite
31c2454d59 fix: Replace Unicode box-drawing characters with ASCII
- Changed update banner to use +, -, | instead of Unicode box characters
- Replaced arrow (→) with ASCII arrow (->)
- Changed p.cancel() to plain console.error to avoid Unicode bullet
- Ensures clean rendering on all terminals regardless of Unicode support

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 07:19:30 +00:00
Sprite
935d1f5fe9 chore: Bump version to 0.2.4
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 07:15:11 +00:00
Sprite
598b621ad1 feat: Check for updates on every run, remove 24-hour cache
- Removed CHECK_INTERVAL and cache-based update checking
- Now fetches latest version on every spawn invocation
- 5-second timeout keeps it fast
- Simplified tests to match new behavior (8 tests instead of 12)
- Users who don't want update checks can set SPAWN_NO_UPDATE_CHECK=1

This ensures users always get the latest version immediately when available.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 07:13:42 +00:00
Sprite
3b5a8c8bcc fix: Default to ASCII mode for safer unicode rendering
- Changed unicode detection to default to ASCII mode (TERM=linux)
- Users can opt-in to unicode with SPAWN_UNICODE=1
- Auto-detects SSH sessions and forces ASCII (common rendering issues)
- Fixes bullet point display issues in interactive selectors

To enable unicode: export SPAWN_UNICODE=1
To force ASCII: export SPAWN_ASCII=1 (or SPAWN_NO_UNICODE=1)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 06:57:29 +00:00
Sprite
5962a00c15 chore: Bump version to 0.2.3
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 06:56:47 +00:00
Sprite
13b601239d chore: Bump version to 0.2.2
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 06:53:20 +00:00
Sprite
84d474c192 refactor: Remove version.ts duplication, import directly from package.json
- Removed src/version.ts file
- Updated src/commands.ts, src/index.ts, and src/update-check.ts to import version from package.json
- Using JSON import assertion: `import pkg from "../package.json" with { type: "json" }`
- Eliminates need to maintain version in two places

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 06:50:54 +00:00
Sprite
01042fab5a chore: Bump version to 0.2.1
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 06:49:49 +00:00
Sprite
c4d99daaab feat: Bump version to 0.2.0 and implement auto-update on run
Changes:
- Bumped version from 0.1.0 to 0.2.0
- Changed update-check mechanism to auto-install updates instead of just notifying
- checkForUpdates() now blocks and runs install.sh automatically when update is available
- Added executor wrapper for testability of execSync calls
- Updated all tests to mock executor.execSync instead of child_process.execSync
- Auto-update runs on every spawn invocation (24-hour cache prevents excessive checks)
- On update failure, shows error message but continues with original command

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 06:48:19 +00:00
Sprite
d223038a5e feat: Add auto-update check mechanism to spawn CLI
Implements a non-intrusive update notification system that:
- Checks for new versions once per day
- Shows a styled notification when updates are available
- Stores check results in cache to minimize network requests
- Can be disabled with SPAWN_NO_UPDATE_CHECK=1

Implementation:
- New update-check.ts module with background version checking
- Comprehensive test suite (16 tests) covering all scenarios
- Integrated into main CLI entry point
- Updated documentation in README.md

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 06:41:27 +00:00
A
30f19b7df6
refactor: Drop spawn.sh bash fallback, auto-install bun instead (#163)
The 663-line bash CLI (spawn.sh) has drifted from the TypeScript CLI,
missing --prompt, security validation, download fallback, and other
features. Rather than maintaining two implementations, the installer
now auto-installs bun (~5 seconds) when it's not present, ensuring
every user gets the full-featured TypeScript CLI.

- Remove cli/spawn.sh (663 lines)
- Simplify install.sh: remove npm method, add bun auto-install
- Extract build_and_install() helper to deduplicate build logic
- Update cli/README.md and CLAUDE.md to reflect bun-only strategy

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:30:48 -08:00
A
8220bf1a0d
feat: Add vastai/interpreter.sh (#162)
Implement Open Interpreter deployment on Vast.ai GPU instances.
Sources vastai/lib/common.sh, installs open-interpreter via pip,
configures OpenRouter via OPENAI_BASE_URL override, and launches
interactive session.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:17:30 -08:00
A
b96e122a11
feat: Add oracle/gptme.sh (#161)
Implement gptme agent script for Oracle Cloud Infrastructure.
Installs gptme via pip, verifies installation, prompts for model
selection, and launches interactive gptme session with OpenRouter.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:17:02 -08:00
A
6102cd3f33
feat: Add oracle/interpreter.sh (#160)
Implement Open Interpreter agent deployment on Oracle Cloud
Infrastructure. Installs via pip, configures OpenRouter API
integration via OPENAI_BASE_URL proxy.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:16:57 -08:00
A
6af42a901b
feat: Add vastai/gptme.sh (#159)
Implement gptme deployment on Vast.ai GPU instances.
Installs gptme via pip, includes model selection prompt,
injects OpenRouter credentials.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:16:42 -08:00
A
70f3ad17d4
feat: Add vastai/goose.sh (#156)
Implement Goose (Block's AI coding agent) deployment on Vast.ai GPU instances.
Sources vastai/lib/common.sh, installs Goose via official installer,
configures OpenRouter as provider, and launches interactive session.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:16:38 -08:00
A
de46a17d00
docs: Add refactoring service architecture guide to CLAUDE.md (#158)
Documents the dual-mode cycle system (issue vs refactor), concurrency
model, worktree isolation, and guidance for modifying the service.
Also adds trigger service files to the file structure convention.

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:16:27 -08:00
B
462cd367e0 chore: Switch from npm lockfile to bun lockfile
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-10 06:16:19 +00:00
A
cffd1f4ef3
feat: Add oracle/codex.sh (#157)
Implement Codex CLI agent deployment on Oracle Cloud Infrastructure.
Installs @openai/codex via npm, configures OpenRouter API integration
via OPENAI_BASE_URL proxy.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:15:59 -08:00
A
9acd24c721
feat: Add vastai/cline.sh (#154)
Implement Cline deployment on Vast.ai GPU instances.
Installs cline via npm, injects OpenRouter credentials
(OPENAI_API_KEY, OPENAI_BASE_URL).

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:15:51 -08:00
A
116683812d
feat: Add vastai/kilocode.sh (#155)
Implement Kilo Code agent deployment on Vast.ai. Installs via npm
and configures OpenRouter provider type with API key.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:15:46 -08:00
A
6ec6e1f699
feat: Add oracle/kilocode.sh (#153)
Implement Kilo Code agent deployment on Oracle Cloud Infrastructure.
Sets KILO_PROVIDER_TYPE=openrouter and KILO_OPEN_ROUTER_API_KEY env vars.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:15:43 -08:00
A
d35574bb07
feat: Add oracle/cline.sh (#152)
Implement Cline agent script for Oracle Cloud Infrastructure.
Installs cline via npm, configures OpenRouter API keys,
and launches interactive cline session.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:15:33 -08:00
A
7ace2695e6
feat: Run issue-fix cycles concurrently with refactor cycles (#145)
Issue triggers now spawn lightweight 2-agent runs (15-min timeout) in
isolated worktrees, while refactor cycles continue independently with
the full 6-agent team (30-min timeout). Duplicate issue runs are
rejected with 409.

- trigger-server.ts: pass SPAWN_ISSUE/SPAWN_REASON env vars to script,
  add issue dedup (409), include issue in health/trigger responses
- refactor.sh: dual-mode (issue vs refactor) with isolated worktrees,
  mode-specific prompts and timeouts, scoped cleanup
- start-refactor.sh: set MAX_CONCURRENT=3 (gitignored, local only)
- refactor.yml: handle 409 alongside existing 429

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:15:19 -08:00
A
0c185085cc
feat: Add oracle/nanoclaw.sh (#151)
Implement NanoClaw agent deployment on Oracle Cloud Infrastructure.
Installs tsx and clones nanoclaw repo, configures .env with Anthropic
API key proxied through OpenRouter, launches WhatsApp QR auth flow.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:15:05 -08:00
A
021352dba5
feat: Add vastai/plandex.sh (#149)
Implement Plandex agent deployment on Vast.ai. Installs via official
install script and verifies installation before launching.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:14:55 -08:00
A
dacc5c2a63
feat: Add vastai/nanoclaw.sh (#150)
Implement NanoClaw (WhatsApp AI agent) deployment on Vast.ai GPU instances.
Sources vastai/lib/common.sh, installs tsx and clones nanoclaw repo,
creates .env with Anthropic API key, and launches with npm run dev.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:14:51 -08:00
A
f79a650b02
feat: Add vastai/amazonq.sh (#146)
Implement Amazon Q CLI deployment on Vast.ai GPU instances.
Installs via amazon-q-cli-install.sh, injects OpenRouter credentials
(OPENAI_API_KEY, OPENAI_BASE_URL).

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:14:46 -08:00
A
31489f13de
feat: Add oracle/plandex.sh (#148)
Implement Plandex agent deployment on Oracle Cloud Infrastructure.
Includes installation verification step.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:14:39 -08:00
A
ae89c06459
feat: Add oracle/amazonq.sh (#147)
Implement Amazon Q CLI agent script for Oracle Cloud Infrastructure.
Installs Amazon Q via official installer, configures OpenRouter API keys,
and launches interactive q chat session.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:14:36 -08:00
A
64b0bb602a
feat: Add oracle/openclaw.sh (#144)
Implement OpenClaw agent deployment on Oracle Cloud Infrastructure.
Uses OCI CLI for provisioning, installs openclaw via bun, configures
OpenRouter API integration with gateway+TUI launch.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:13:57 -08:00
A
503c92e17c
feat: Add vastai/openclaw.sh (#140)
Implement OpenClaw deployment on Vast.ai GPU instances.
Sources vastai/lib/common.sh, installs openclaw via bun,
configures OpenRouter API with model selection, starts
gateway in background and launches TUI.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:13:55 -08:00
A
50f550404a
feat: Add vastai/opencode.sh (#141)
Implement OpenCode agent deployment on Vast.ai. Uses opencode_install_cmd
from shared/common.sh for installation and injects OpenRouter API key.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:13:48 -08:00
A
cef924d189
feat: Add oracle/opencode.sh (#143)
Implement OpenCode agent deployment on Oracle Cloud Infrastructure.
Uses opencode_install_cmd helper from shared/common.sh.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:13:46 -08:00
A
a43034432f
feat: Add oracle/gemini.sh (#142)
Implement Gemini CLI agent script for Oracle Cloud Infrastructure.
Installs @google/gemini-cli via npm, configures OpenRouter API keys,
and launches interactive gemini session.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:13:42 -08:00
A
1c5e79a7d1
feat: Add vastai/gemini.sh (#139)
Implement Gemini CLI deployment on Vast.ai GPU instances.
Installs @google/gemini-cli via npm, injects OpenRouter credentials
(GEMINI_API_KEY, OPENAI_API_KEY, OPENAI_BASE_URL).

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
2026-02-09 22:13:39 -08:00
A
619837687e
fix: Correct OpenClaw description in manifest (#138)
Fixes #137 - The description incorrectly stated OpenClaw was "OpenRouter's
agent framework". OpenClaw is a personal AI assistant, not created by
OpenRouter.

Agent: team-lead

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:11:53 -08:00
A
26b049cb56
refactor: Reduce complexity in shared/common.sh (#136)
- Extract _generate_csrf_state() from try_oauth_flow() (8-line conditional -> 1-line call)
- Deduplicate retry loop: extract _cloud_api_retry_loop() shared by generic_cloud_api() and generic_cloud_api_custom_auth() (removed 26 duplicated lines)
- Extract OAuth HTML into bash variables with shared CSS, reducing inline string complexity in start_oauth_server()

Net reduction: 11 lines, eliminates copy-paste duplication in the API retry logic.

Agent: complexity-hunter

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:04:08 -08:00
A
6f7d684e69
test: Add 17 tests for cmdUpdate and script download/execution paths (#135)
Covers previously untested critical paths in commands.ts:
- cmdUpdate version checking (up-to-date, update available, fetch failures)
- downloadScriptWithFallback (primary/fallback URLs, 404, 500, network errors)
- reportDownloadFailure error messaging (404 vs server error)
- execScript script validation (shebang, dangerous patterns)
- runBash environment variables (SPAWN_PROMPT, SPAWN_MODE)

Agent: test-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-09 22:03:48 -08:00
A
d22719910c
fix: Add ASCII fallback for terminal unicode rendering (#134)
Fixes #132 - Some terminals can't render the unicode characters used by
@clack/prompts for bullets, selectors, and box drawing. This adds a
unicode detection module that runs before @clack/prompts is imported,
forcing ASCII mode when:
- SPAWN_NO_UNICODE=1 or SPAWN_ASCII=1 is set (explicit override)
- TERM is "dumb" or unset (common in basic terminals)

Also adds a troubleshooting hint in the help text.

Agent: ux-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:03:04 -08:00
B
65d28ba5f5 fix: Increase RUN_TIMEOUT_MS default to 4 hours
Discovery cycles run 1-2h+, 2h was too aggressive. 4h gives headroom
while still catching truly hung processes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-10 05:53:35 +00:00
A
dae37fded0
test: Add 31 tests for commands.ts error/validation paths (#133)
Tests the actual exported cmdRun and cmdAgentInfo functions (not inline
replicas) for their process.exit error paths: identifier validation
(injection, path traversal, length), unknown agent/cloud handling,
unimplemented combination suggestions, prompt security validation,
and empty input handling.

Agent: test-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 21:45:39 -08:00
A
5cb837bbe3
feat: Add Vast.ai GPU marketplace as cloud provider with 3 agent scripts (#131)
Adds Vast.ai as a new cloud provider (GPU marketplace with per-hour pricing).
Implements vastai/lib/common.sh with provider primitives using the vastai CLI,
and adds 3 initial agent scripts (claude, aider, codex). Remaining 11 agents
added as "missing" matrix entries.

Agent: cloud-scout

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 20:53:22 -08:00
A
76c824c12d
feat: Add Oracle Cloud Infrastructure provider with 3 agent scripts (#130)
Add OCI as a new cloud provider using the OCI CLI for compute instance
provisioning. Includes lib/common.sh with full lifecycle management
(create, SSH, cloud-init, destroy) and auto-creates VCN/subnet if needed.
Implements claude, aider, and goose agent scripts. Supports Always Free
tier shapes (VM.Standard.E2.1.Micro) and flex shapes.

Agent: cloud-scout

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 20:52:29 -08:00
A
88bc5e458f
docs: Update README matrix to reflect 294/294 complete matrix (#129)
All 14 agents are now implemented on all 21 clouds.
Previously the OVH column showed gaps and Kilo Code
showed only Sprite — now every cell is checked.

Agent: team-lead

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 20:24:38 -08:00
A
c1b1330ec1
test: Add 34 tests for command output functions (cmdList, cmdAgents, cmdClouds, cmdAgentInfo, cmdHelp) (#128)
Tests the actual exported command functions end-to-end using mock.module
for @clack/prompts and loadManifest(true) to force cache refresh with
mocked fetch data. Covers matrix display, agent/cloud listing, agent
info output, and help text content verification.

Agent: test-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-09 20:22:12 -08:00
A
dcf41c63ea
fix: Prevent Python injection in Modal provider via env vars (#127)
MODAL_SANDBOX_ID and sandbox name were interpolated directly into
Python code strings, allowing potential code injection. Now all
user-controlled values are passed via environment variables and
read with os.environ in Python.

Changes:
- create_server: pass name/image via _MODAL_NAME/_MODAL_IMAGE env vars,
  use getattr() for image lookup, add sandbox name validation
- run_server: pass sandbox ID and command via env vars
- interactive_session: pass sandbox ID and command via env vars
- destroy_server: pass sandbox ID via env var
- Add validate_sandbox_id() to enforce sb-<alphanumeric> format
- upload_file: remove printf '%q' escaping (base64 is safe)

Agent: security-auditor

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 20:22:08 -08:00
A
009f3454fc
feat: Add Cline and gptme on OVHcloud (#126)
Implement ovh/cline.sh and ovh/gptme.sh using OVH
primitives. Both scripts provision an OVHcloud instance,
install the agent, inject OpenRouter credentials, and
launch an interactive session.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 20:18:28 -08:00