Skip to content

Publish og to npm as @profullstack/outreachgraph, serve /install.sh - #173

Merged
ralyodio merged 2 commits into
mainfrom
feat/publish-cli-curl-install
Oct 13, 2026
Merged

ralyodio merged 2 commits into
mainfrom
feat/publish-cli-curl-install

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

curl -fsSL https://outreachgraph.com/install.sh | sh now installs og, the OutreachGraph CLI.

  • npm: @profullstack/outreachgraph@0.16.2 is published (bin og). The @outreachgraph scope does not exist on npm, so it lives under @profullstack. The package is one Node-targeted bundle (dist/og.js) with the MCP client inlined, so a clean npm i -g needs no workspace package on npm. Files: README, dist/og.js, package.json.
  • Runs under plain Node >= 20: the four Bun-only calls (Bun.spawn, Bun.spawnSync, Bun.file) now use node: APIs, which Bun also supports. Adds og --version.
  • A workspace key is enough: an og_live_ key names its own workspace, so the CLI and MCP no longer require OUTREACHGRAPH_WORKSPACE_ID/ORGANIZATION_ID alongside one (the service token still does). New test in mcp.test.ts.
  • Installer: apps/web/public/install.sh uses bun if present, else npm with Node >= 20, falls back to ~/.local instead of sudo, then checks PATH. Served as text/x-sh via next.config headers and excluded from the crawl-gateway proxy matcher.
  • Docs: install line in README, a "Or run it from a terminal" band on the homepage, and a Command line entry in /api/v1/public/llms.txt.

Tested: sh -n, bundle runs --version/--help under Node 24 and reaches prod (401 on a fake key), npm pack --dry-run, cli+mcp tests (69 pass), typecheck, format.

🤖 Generated with Claude Code

ralyodio and others added 2 commits October 13, 2026 00:06
- apps/cli is now the publishable @profullstack/outreachgraph (bin `og`), a
  single Node-targeted bundle in dist/og.js with the MCP client inlined, so
  `npm i -g` works without any workspace package on npm. The four Bun-only
  calls (spawn, spawnSync, Bun.file) use node: APIs, so it runs under plain
  Node >= 20 as well as Bun. Adds `og --version`.
- A workspace key (og_live_...) names its own workspace, so the CLI and MCP
  no longer demand OUTREACHGRAPH_WORKSPACE_ID/ORGANIZATION_ID with one.
- apps/web/public/install.sh: `curl -fsSL https://outreachgraph.com/install.sh | sh`
  installs og with bun, else npm (Node >= 20), into ~/.local when the global
  prefix is not writable; served as text/x-sh and kept out of the crawl
  gateway's matcher.
- Install line in the README, the homepage and llms.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without it bun add -g writes into the nearest package.json above that dir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit e57fb23 into main Oct 13, 2026
4 checks passed
@ralyodio
ralyodio deleted the feat/publish-cli-curl-install branch October 13, 2026 00:17
@ralyodio ralyodio mentioned this pull request Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant