feat(cli): publish runfusion.ai npm alias, lead install with npx runfusion.ai

Add a 633-byte shim package at packages/cli-alias/ published to npm as
`runfusion.ai@0.0.1`. Bare `npx runfusion.ai` boots the dashboard;
subcommands forward to the underlying @runfusion/fusion CLI so
`npx runfusion.ai task list` etc. Just Work. Both `runfusion.ai` and
`runfusion` bin names are exposed.

READMEs now lead the install story with `npx runfusion.ai` — the
shortest zero-install entry — and keep the longer `npx @runfusion/fusion
dashboard`, curl installer, Homebrew, and npm-global paths below.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-22 18:24:58 -07:00
parent 015a4e4cfe
commit 0c690dd94e
6 changed files with 106 additions and 2 deletions

16
packages/cli-alias/index.js Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env node
// runfusion.ai — tiny alias for @runfusion/fusion.
// With no args, launches the Fusion dashboard. With args, forwards to the
// underlying `fn` CLI so `npx runfusion.ai task list` etc. Just Work.
const args = process.argv.slice(2);
if (args.length === 0 || args[0] === "--help" || args[0] === "-h") {
// No subcommand → default to dashboard. Keep --help passthrough explicit
// so users can discover the full CLI surface via `npx runfusion.ai --help`.
if (args.length === 0) {
process.argv = [process.argv[0], process.argv[1], "dashboard"];
}
}
await import("@runfusion/fusion/dist/bin.js");