Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(release): publish under zeenie-ai npm scope
trohitgac910e344d5a
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex b03dc35c..4b209f41 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -31,10 +31,8 @@ jobs:- run: pnpm install --frozen-lockfile- run: pnpm run build- run: python -m cli version sync- - name: Verify npm credentials and scope access- run: |- npm whoami- npm access list packages @zeenie --json+ - name: Verify npm credentials+ run: npm whoamienv:NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}- name: Publish public npm packagediff --git a/README.md b/README.mdindex b05ff0ab..3d40f35f 100644--- a/README.md+++ b/README.md@@ -3,7 +3,7 @@# OpenCompany-<a href="https://www.npmjs.com/package/@zeenie/opencompany" target="_blank"><img src="https://img.shields.io/npm/v/%40zeenie%2Fopencompany.svg" alt="npm version"></a>+<a href="https://www.npmjs.com/package/@zeenie-ai/opencompany" target="_blank"><img src="https://img.shields.io/npm/v/%40zeenie-ai%2Fopencompany.svg" alt="npm version"></a><a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a><a href="https://discord.gg/c9pCJ7d8Ce" target="_blank"><img src="https://img.shields.io/discord/1455977012308086895?logo=discord&logoColor=white&label=Discord" alt="Discord"></a><a href="https://deepwiki.com/zeenie-ai/OpenCompany" target="_blank"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>@@ -17,11 +17,11 @@ No code required. No subscription. No usage limits. Bring your own API keys (or**Prerequisites:** Node.js 22+, Python 3.12+```bash-npm install -g @zeenie/opencompany+npm install -g @zeenie-ai/opencompanycompany start```-The canonical npm package is `@zeenie/opencompany`. The unscoped+The canonical npm package is `@zeenie-ai/opencompany`. The unscoped`opencompany` package is unrelated to this project and is neither installed norremoved by OpenCompany's tooling.@@ -176,7 +176,7 @@ Every LLM call and API request is tracked with USD cost. See per-provider spend## Quick Setup Tour-1. **Install** with `npm install -g @zeenie/opencompany` (or run from source)+1. **Install** with `npm install -g @zeenie-ai/opencompany` (or run from source)2. **Start** with `company start` — opens at http://localhost:30003. **Connect a provider** — click the **Credentials** button, paste an API key or click through OAuth4. **Drag a node** from the left palette onto the canvasdiff --git a/cli/README.md b/cli/README.mdindex d0f76a13..ca1b80f3 100644--- a/cli/README.md+++ b/cli/README.md@@ -1,7 +1,7 @@# companyProject supervisor CLI for the OpenCompany stack. The public command is-`company`; the npm package is `@zeenie/opencompany`, and the legacy `machina` bin+`company`; the npm package is `@zeenie-ai/opencompany`, and the legacy `machina` binremains as a deprecated compatibility alias. It is also backwards-compatiblewith `pnpm run start`/`dev`/`stop`/etc.diff --git a/cli/commands/build.py b/cli/commands/build.pyindex 274d31a1..56d0110d 100644--- a/cli/commands/build.py+++ b/cli/commands/build.py@@ -118,7 +118,7 @@ def build_command() -> None:## Safe for global installs: ``.env.dev`` is committed to git for# repo-clone contributors but is NOT in the npm ``files`` list, so- # ``npm install -g @zeenie/opencompany`` doesn't ship it. Without+ # ``npm install -g @zeenie-ai/opencompany`` doesn't ship it. Without# ``.env.dev`` on disk, :func:`load_dev_overrides` is a no-op and# the build falls through to ``.env.template`` defaults# (``DATA_DIR=~/.opencompany``) — identical to today's behaviour anddiff --git a/cli/config.py b/cli/config.pyindex 812c27dd..1f4c930f 100644--- a/cli/config.py+++ b/cli/config.py@@ -6,7 +6,7 @@ Stdlib-only env-var loader. Three env files, lowest precedence first:install. ``DATA_DIR=~/.opencompany`` (user home) is the daemonbehaviour: ``company start`` / ``company daemon`` use these.2. ``.env`` — user overrides (created by ``scripts/postinstall.js`` on- ``npm install -g @zeenie/opencompany``). Gitignored.+ ``npm install -g @zeenie-ai/opencompany``). Gitignored.3. ``.env.dev`` — dev-mode overrides. Loaded ONLY by ``company dev``via :func:`load_dev_overrides`. Pins ``DATA_DIR=.opencompany`` soper-checkout dev state lives at ``<repo>/.opencompany/`` instead of@@ -55,7 +55,7 @@ def _require(env: dict[str, str], key: str) -> str:if raw is None:raise KeyError(f"{key} missing from .env / .env.template -- "- "reinstall (``npm install -g @zeenie/opencompany``) or restore the template."+ "reinstall (``npm install -g @zeenie-ai/opencompany``) or restore the template.")return raw@@ -143,7 +143,7 @@ def load_config(root: Path | None = None) -> Config:if not template.exists():raise FileNotFoundError(f".env.template not found at {template}. "- "Reinstall (``npm install -g @zeenie/opencompany``) or restore the template "+ "Reinstall (``npm install -g @zeenie-ai/opencompany``) or restore the template ""from the source tree.")diff --git a/cli/terraform/gcp/startup.sh.tftpl b/cli/terraform/gcp/startup.sh.tftplindex f4a2b521..458b826a 100644--- a/cli/terraform/gcp/startup.sh.tftpl+++ b/cli/terraform/gcp/startup.sh.tftpl@@ -31,7 +31,7 @@ TOKEN=$(curl -s -H "Metadata-Flavor: Google" "http://metadata.google.internal/cocurl -fsS -H "Authorization: Bearer $TOKEN" -o /tmp/${resource_name}.tgz "https://storage.googleapis.com/storage/v1/b/${bucket}/o/${object}?alt=media"npm install -g /tmp/${resource_name}.tgz%{ else ~}-npm install -g @zeenie/opencompany@${version}+npm install -g @zeenie-ai/opencompany@${version}%{ endif ~}echo "[${resource_name}] writing login-gate env..."diff --git a/cli/tests/test_cli_branding.py b/cli/tests/test_cli_branding.pyindex 52fe2f51..4e7a4900 100644--- a/cli/tests/test_cli_branding.py+++ b/cli/tests/test_cli_branding.py@@ -14,7 +14,7 @@ ROOT = project_root()def test_npm_bins_expose_company_and_deprecated_machina_only():package = json.loads((ROOT / "package.json").read_text(encoding="utf-8"))- assert package["name"] == "@zeenie/opencompany"+ assert package["name"] == "@zeenie-ai/opencompany"assert package["bin"] == {"company": "./bin/cli.js","machina": "./bin/machina.js",@@ -39,7 +39,7 @@ def test_cloud_service_resolves_company_then_legacy_machina():encoding="utf-8")- assert "npm install -g @zeenie/opencompany@${version}" in template+ assert "npm install -g @zeenie-ai/opencompany@${version}" in templateassert "npm uninstall -g machinaos" in templateassert "command -v company || command -v machina" in templateassert "command -v opencompany" not in template@@ -55,9 +55,9 @@ def test_installers_target_scoped_package_without_touching_unscoped_package():).read_text(encoding="utf-8"),}- assert "npm install -g '@zeenie/opencompany'" in installers["install.sh"]- assert 'npm install -g "@zeenie/opencompany"' in installers["install.ps1"]- assert "npm install -g @zeenie/opencompany@${version}" in installers["gcp startup"]+ assert "npm install -g '@zeenie-ai/opencompany'" in installers["install.sh"]+ assert 'npm install -g "@zeenie-ai/opencompany"' in installers["install.ps1"]+ assert "npm install -g @zeenie-ai/opencompany@${version}" in installers["gcp startup"]for source in installers.values():assert "npm install -g opencompany" not in source@@ -68,7 +68,7 @@ def test_installers_target_scoped_package_without_touching_unscoped_package():def test_uninstaller_removes_only_scoped_and_official_legacy_packages():uninstaller = (ROOT / "uninstall.sh").read_text(encoding="utf-8")- assert "remove_global_package '@zeenie/opencompany'" in uninstaller+ assert "remove_global_package '@zeenie-ai/opencompany'" in uninstallerassert "remove_global_package 'machinaos'" in uninstallerassert "npm uninstall -g opencompany" not in uninstallerdiff --git a/cli/tests/test_release_pipeline_config.py b/cli/tests/test_release_pipeline_config.pyindex 400bef68..dfdaff42 100644--- a/cli/tests/test_release_pipeline_config.py+++ b/cli/tests/test_release_pipeline_config.py@@ -375,7 +375,7 @@ def _run_steps(job: dict) -> list[dict]:def test_root_package_uses_public_zeenie_scope(root_pkg: dict):- assert root_pkg["name"] == "@zeenie/opencompany"+ assert root_pkg["name"] == "@zeenie-ai/opencompany"assert root_pkg["publishConfig"] == {"access": "public","registry": "https://registry.npmjs.org",@@ -396,7 +396,7 @@ def test_root_package_uses_canonical_github_urls(root_pkg: dict):assert root_pkg["bugs"] == {"url": f"{canonical}/issues"}-def test_npm_release_authenticates_and_checks_scope_before_publish(+def test_npm_release_authenticates_before_publish(release_yml: dict,):steps = _run_steps(release_yml["jobs"]["publish-npm"])@@ -408,7 +408,7 @@ def test_npm_release_authenticates_and_checks_scope_before_publish()preflight = steps[preflight_index]- assert "npm access list packages @zeenie --json" in preflight["run"]+ assert preflight["run"] == "npm whoami"assert preflight["env"]["NODE_AUTH_TOKEN"] == "${{ secrets.NPM_TOKEN }}"assert preflight_index < publish_indexdiff --git a/docs-internal/SCRIPTS.md b/docs-internal/SCRIPTS.mdindex c3341c86..ab74ba9f 100644--- a/docs-internal/SCRIPTS.md+++ b/docs-internal/SCRIPTS.md@@ -3,7 +3,7 @@## Quick Start```bash-npm install -g @zeenie/opencompany+npm install -g @zeenie-ai/opencompanycompany start```diff --git a/docs-internal/SETUP.md b/docs-internal/SETUP.mdindex e913a6c9..e20acc32 100644--- a/docs-internal/SETUP.md+++ b/docs-internal/SETUP.md@@ -21,7 +21,7 @@ OpenCompany/## Quick Start```bash-npm install -g @zeenie/opencompany+npm install -g @zeenie-ai/opencompanycompany start```diff --git a/docs-internal/ci_cd.md b/docs-internal/ci_cd.mdindex 05f33aae..57ec30bb 100644--- a/docs-internal/ci_cd.md+++ b/docs-internal/ci_cd.md@@ -49,7 +49,7 @@ The repo currently ships **exactly 4 workflows** plus one composite action. A nu| Secret | Used by | Description ||--------|---------|-------------|-| `NPM_TOKEN` | release.yml | npmjs publish access to the public `@zeenie` scope (`publish-npm`) |+| `NPM_TOKEN` | release.yml | npmjs publish access to the public `@zeenie-ai` scope (`publish-npm`) || `GITHUB_TOKEN` | release.yml | GitHub Packages publish (auto-provided) |---@@ -115,19 +115,18 @@ publish-npm publish-github-packages| |+- build +- build+- cli version sync +- cli version sync- +- verify npm auth/scope +- rewrite package name+ +- verify npm auth +- rewrite package name+- publish canonical package +- publish mirror package- @zeenie/opencompany @zeenie-ai/opencompany+ @zeenie-ai/opencompany @zeenie-ai/opencompanynpmjs, public + provenance npm.pkg.github.com```- Both publish jobs `needs: predeploy`, run on `ubuntu-latest`, and share the same prefix: `actions/checkout` → composite setup → `actions/setup-node@v4` (with the target `registry-url`) → `pnpm install --frozen-lockfile` → `pnpm run build` → `python -m cli version sync`.-- `publish-npm` — validates the token with `npm whoami` and `npm access list packages @zeenie --json`, then publishes the canonical public npmjs package `@zeenie/opencompany` via `npm publish --access public --provenance` with `NODE_AUTH_TOKEN=secrets.NPM_TOKEN`. The `--provenance` flag emits an npm provenance attestation (backed by the workflow's `id-token: write`).+- `publish-npm` — validates the token with `npm whoami`, then publishes the canonical public npmjs package `@zeenie-ai/opencompany` via `npm publish --access public --provenance` with `NODE_AUTH_TOKEN=secrets.NPM_TOKEN`. The `--provenance` flag emits an npm provenance attestation (backed by the workflow's `id-token: write`).- `publish-github-packages` — rewrites `package.json` `name` to `@zeenie-ai/opencompany` and sets `publishConfig.registry = https://npm.pkg.github.com`, then `npm publish` with `NODE_AUTH_TOKEN=secrets.GITHUB_TOKEN`.-These names intentionally differ by registry: `@zeenie/opencompany` is the-canonical npmjs package users install, while `@zeenie-ai/opencompany` is the-GitHub Packages mirror whose scope matches the GitHub organization.+Both registries use `@zeenie-ai/opencompany`, matching the npm and GitHub+organization owned by the project.There is currently no audit gate, no PyPI publish, no SLSA `attest-build-provenance` step, and no `create-github-release` / test-install stage — see [Planned](#planned-not-yet-implemented).diff --git a/docs-internal/gcp_vm_deploy_runbook.md b/docs-internal/gcp_vm_deploy_runbook.mdindex aa53ec92..d4526b49 100644--- a/docs-internal/gcp_vm_deploy_runbook.md+++ b/docs-internal/gcp_vm_deploy_runbook.md@@ -1,6 +1,6 @@# GCP VM Deploy Runbook (released npm package, manual gcloud + cf)-Step-by-step runbook for deploying the **released** `@zeenie/opencompany` npm package on a fresh+Step-by-step runbook for deploying the **released** `@zeenie-ai/opencompany` npm package on a freshGCP VM behind a Cloudflare-proxied domain, with the single-owner login gate enabled.Written to be executable by an AI agent (or a human) with no other context.@@ -49,7 +49,7 @@ print('ENC='+secrets.token_hex(24))"## Known pitfalls (read first — these each cost a redeploy or a debugging loop)1. **Debian 12 fails.** The npm package's `postinstall` hard-requires Python 3.12+;- Debian 12 ships 3.11 and `npm install -g @zeenie/opencompany` exits 1+ Debian 12 ships 3.11 and `npm install -g @zeenie-ai/opencompany` exits 1(`ERROR: Python 3.12+ is required.`). Use **Ubuntu 24.04** (`ubuntu-2404-lts-amd64`in `ubuntu-os-cloud`), which ships Python 3.12.2. **The released package has no `company serve`.** Released CLI commands are only@@ -116,7 +116,7 @@ corepack enable || truecurl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/usr/local/bin shecho "[opencompany] installing OpenCompany released package..."-npm install -g @zeenie/opencompany@latest+npm install -g @zeenie-ai/opencompany@latestecho "[opencompany] writing login-gate env..."mkdir -p /etc/opencompany@@ -196,7 +196,7 @@ systemctl reload nginxecho "[opencompany] installing systemd service (README usage: company start)..."OPENCOMPANY_BIN=$(command -v company)-OPENCOMPANY_PACKAGE_DIR="$(npm root -g)/@zeenie/opencompany"+OPENCOMPANY_PACKAGE_DIR="$(npm root -g)/@zeenie-ai/opencompany"test -d "$OPENCOMPANY_PACKAGE_DIR"cat > /etc/systemd/system/opencompany.service <<SERVICE_EOF[Unit]@@ -359,7 +359,7 @@ gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo journalctl -u# restart app:gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo systemctl restart opencompany"# upgrade to a new release:-gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo npm install -g @zeenie/opencompany@latest && sudo systemctl restart opencompany"+gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo npm install -g @zeenie-ai/opencompany@latest && sudo systemctl restart opencompany"# env (secrets live here):# /etc/opencompany/opencompany.env (chmod 600; service reads it via EnvironmentFile)# data:diff --git a/docs-internal/release_build_pipeline.md b/docs-internal/release_build_pipeline.mdindex 76b8fe32..54caee62 100644--- a/docs-internal/release_build_pipeline.md+++ b/docs-internal/release_build_pipeline.md@@ -1,6 +1,6 @@# Release Build Pipeline-Compile-step plan for the npm distribution `@zeenie/opencompany`. Goal: cut cold-start ~20s further on top of the lazy-LangChain fix already in v0.0.76, shrink the Vite main bundle below 200 KB gz, and drop the `tsx` interpreter cost from the Node.js sidecar.+Compile-step plan for the npm distribution `@zeenie-ai/opencompany`. Goal: cut cold-start ~20s further on top of the lazy-LangChain fix already in v0.0.76, shrink the Vite main bundle below 200 KB gz, and drop the `tsx` interpreter cost from the Node.js sidecar.User scope (confirmed before this work): stay on npm distribution; **no** Nuitka/PyOxidizer standalone binary channel; optimize Vite output too; **skip** the plugin-walker (~11s) and service-status-refresh (~20s) hotspots — those are runtime concerns, not compile-time.diff --git a/install.ps1 b/install.ps1index 06c4e5c5..d56c21e8 100644--- a/install.ps1+++ b/install.ps1@@ -195,7 +195,7 @@ function Main {Write-Host ""# Install OpenCompany from npm- npm install -g "@zeenie/opencompany"+ npm install -g "@zeenie-ai/opencompany"if ($LASTEXITCODE -ne 0) {Error-Exit "npm install -g failed. Run PowerShell as Administrator and retry."}diff --git a/install.sh b/install.shindex c3af6f3f..de462072 100755--- a/install.sh+++ b/install.sh@@ -297,13 +297,13 @@ main() {# Install OpenCompany from npm# On Linux/WSL without nvm, global npm install needs sudo unless prefix is user-writable- if npm install -g '@zeenie/opencompany' 2>/dev/null; then+ if npm install -g '@zeenie-ai/opencompany' 2>/dev/null; then: # Installed successfullyelif command -v sudo &> /dev/null; theninfo "Retrying with sudo..."- sudo npm install -g '@zeenie/opencompany'+ sudo npm install -g '@zeenie-ai/opencompany'else- error_exit "npm install -g failed. Try: sudo npm install -g @zeenie/opencompany"+ error_exit "npm install -g failed. Try: sudo npm install -g @zeenie-ai/opencompany"fiecho ""diff --git a/package.json b/package.jsonindex 22a8173f..49368ae3 100644--- a/package.json+++ b/package.json@@ -1,5 +1,5 @@{- "name": "@zeenie/opencompany",+ "name": "@zeenie-ai/opencompany","version": "0.0.94","description": "Open source workflow automation platform with AI agents, React Flow, and n8n-inspired architecture","type": "module",@@ -55,6 +55,7 @@"server/","!server/.venv/","!server/**/__pycache__/",+ "!**/.pytest_cache/","!**/node_modules/","!**/.vite/",".env.template",diff --git a/scripts/install.js b/scripts/install.jsindex 088fcbfa..a0f47902 100755--- a/scripts/install.js+++ b/scripts/install.js@@ -29,7 +29,7 @@ process.env.PYTHONUTF8 = '1';function run(cmd, cwd = ROOT, timeoutMs = 300000) {// Strip VIRTUAL_ENV from the spawned env. When the user runs- // ``npm install -g @zeenie/opencompany`` from a shell that has activated a+ // ``npm install -g @zeenie-ai/opencompany`` from a shell that has activated a// venv (very common during dev), uv emits a noisy ``VIRTUAL_ENV// ... does not match the project environment path`` warning per// invocation. uv only honours VIRTUAL_ENV with ``--active``, whichdiff --git a/uninstall.sh b/uninstall.shindex f1018687..808efc71 100644--- a/uninstall.sh+++ b/uninstall.sh@@ -32,7 +32,7 @@ remove_global_package() {echo "$display_name removed"}-remove_global_package '@zeenie/opencompany' '@zeenie/opencompany'+remove_global_package '@zeenie-ai/opencompany' '@zeenie-ai/opencompany'remove_global_package 'machinaos' 'legacy machinaos package'echo ""