Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat!: rebrand MachinaOS as OpenCompany
trohitg0bed1d361e28
diff --git a/.env b/.envindex ebfd5047..618328f2 100644--- a/.env+++ b/.env@@ -22,7 +22,7 @@ VITE_AUTH_ENABLED=falseAUTH_MODE=singleJWT_SECRET_KEY=dev-jwt-secret-key-12345678901234567890JWT_EXPIRE_MINUTES=10080-JWT_COOKIE_NAME=machina_token+JWT_COOKIE_NAME=opencompany_tokenJWT_COOKIE_SECURE=falseJWT_COOKIE_SAMESITE=lax@@ -32,7 +32,7 @@ CORS_ORIGINS=["http://localhost:3000","http://localhost:3001","http://localhost:# Database Configuration# SQLite DB filename. Resolved under DATA_DIR by# ``Settings._resolve_under_data`` — same pattern as ``temporal.db``-# and ``credentials.db`` so dev mode's DATA_DIR=.machina moves all+# and ``credentials.db`` so dev mode's DATA_DIR=.opencompany moves all# three together. The SQLAlchemy URL is composed at runtime by# ``Settings.database_url`` (sqlite+aiosqlite:///<abspath>).WORKFLOW_DB_FILENAME=workflow.db@@ -49,10 +49,12 @@ CACHE_TTL=300# Backed by ``temporal server start-dev`` against a SQLite db at# ``TEMPORAL_SQLITE_PATH``. The official ``temporal`` CLI is downloaded# by pooch from https://temporal.download/cli/archive/latest on-# ``machina build`` (or first ``machina start`` if build was skipped).+# ``company build`` (or first ``company start`` if build was skipped).TEMPORAL_ENABLED=trueTEMPORAL_SERVER_ADDRESS=localhost:7233TEMPORAL_NAMESPACE=default+# Durable Temporal wire identifier retained so upgrades can resume in-flight+# workflows. New display/package identifiers use OpenCompany.TEMPORAL_TASK_QUEUE=machina-tasksTEMPORAL_PER_TYPE_DISPATCH=trueTEMPORAL_AGENT_WORKFLOW_ENABLED=true@@ -61,11 +63,11 @@ TEMPORAL_AGENT_WORKFLOW_ENABLED=trueTEMPORAL_FRONTEND_GRPC_PORT=7233# Web UI port (``--ui-port``). ``temporal server start-dev`` defaults# this to ``--port + 1000``; we override to 8080 to match the-# historical MachinaOS port (kept for muscle memory + bookmarks).+# historical OpenCompany port (kept for muscle memory + bookmarks).# Browse to http://<host>:<TEMPORAL_UI_PORT>/.TEMPORAL_UI_PORT=8080# SQLite db file ``temporal server start-dev --db-filename`` opens.-# Relative to DATA_DIR (= ~/.machina/) unless absolute. Flat under+# Relative to DATA_DIR (= ~/.opencompany/) unless absolute. Flat under# DATA_DIR like ``credentials.db`` / ``workflow.db``. History is# always preserved across restarts (Temporal UI keeps showing every# workflow that ever ran); see ``TEMPORAL_TERMINATE_RUNNING_ON_STARTUP``@@ -73,16 +75,16 @@ TEMPORAL_UI_PORT=8080TEMPORAL_SQLITE_PATH=temporal.db# On server boot, terminate every workflow still in ``Running`` state.# History is preserved (workflows show as ``Terminated`` in the UI,-# NOT deleted) but resumption is disabled, because MachinaOS's+# NOT deleted) but resumption is disabled, because OpenCompany's# ``DeploymentManager`` has no boot-time reconcile against Temporal# Visibility yet — resumed workflows would otherwise keep executing-# but be invisible to the MachinaOS UI. Flip to ``false`` once the+# but be invisible to the OpenCompany UI. Flip to ``false`` once the# reconcile lands to re-enable durable resumption.TEMPORAL_TERMINATE_RUNNING_ON_STARTUP=true# Graceful shutdown window for the Temporal child process.TEMPORAL_GRACEFUL_SHUTDOWN_SECONDS=30# Supervisor readiness-probe window. The CLI binary may need to-# download (~114 MB zip) on first ``machina start`` if ``machina build``+# download (~114 MB zip) on first ``company start`` if ``company build``# didn't pre-cache it.TEMPORAL_SERVER_READY_TIMEOUT_SECONDS=120@@ -107,16 +109,16 @@ DLQ_ENABLED=false# (`~/.config/stripe/`), ngrok (`~/.ngrok2/`). Survives `rm -rf` of# the repo and lets multiple checkouts share state.#-# Resolution rules (`server/core/paths.py::machina_root`):+# Resolution rules (`server/core/paths.py::opencompany_root`):# - `~/...` → user home (cross-platform via Path.expanduser)# - absolute → used verbatim# - relative → resolved under repo root (back-compat)#-# Set to `.machina` (or `data`) if you want repo-local behaviour+# Set to `.opencompany` (or `data`) if you want repo-local behaviour# instead. Pre-cutover layouts (`<repo>/data/`, `<repo>/workflows/`)# do NOT auto-migrate — see `server/core/paths.py` for the manual# `mv` checklist if you're upgrading from an older release.-DATA_DIR=~/.machina+DATA_DIR=~/.opencompany# Per-workflow workspace (nodes save files here, resolved under DATA_DIR)WORKSPACE_BASE_DIR=workspacesdiff --git a/.env.dev b/.env.devindex 5c63eabb..41921f03 100644--- a/.env.dev+++ b/.env.dev@@ -1,16 +1,16 @@# Dev-mode env overrides — layered on top of ``.env.template`` and-# ``.env`` by ``machina dev`` (only). The ``machina start`` /-# ``machina daemon`` paths never load this file, so production-style-# runs keep the ``.env.template`` defaults (DATA_DIR=~/.machina).+# ``.env`` by ``company dev`` (only). The ``company start`` /+# ``company daemon`` paths never load this file, so production-style+# runs keep the ``.env.template`` defaults (DATA_DIR=~/.opencompany).## Loaded by ``cli.config.load_dev_overrides`` via ``os.environ.setdefault``-# so an explicit shell override (``DATA_DIR=/foo machina dev``) still+# so an explicit shell override (``DATA_DIR=/foo company dev``) still# wins. Committed to git as the canonical dev convention — every-# checkout's ``machina dev`` lands state in the same place.+# checkout's ``company dev`` lands state in the same place.-# Per-checkout state under <repo>/.machina/ (resolved as a relative-# path under ``project_root()`` by ``core.paths.machina_root``).+# Per-checkout state under <repo>/.opencompany/ (resolved as a relative+# path under ``project_root()`` by ``core.paths.opencompany_root``).# Multiple worktrees on the same machine each get their own clean# DB / workspaces / temporal history; ``rm -rf`` of the worktree# wipes the runtime state alongside the source.-DATA_DIR=.machina+DATA_DIR=.opencompanydiff --git a/.env.template b/.env.templateindex 64c0baff..5f23cae5 100644--- a/.env.template+++ b/.env.template@@ -22,7 +22,7 @@ VITE_AUTH_ENABLED=falseAUTH_MODE=singleJWT_SECRET_KEY=dev-jwt-secret-key-12345678901234567890JWT_EXPIRE_MINUTES=10080-JWT_COOKIE_NAME=machina_token+JWT_COOKIE_NAME=opencompany_tokenJWT_COOKIE_SECURE=falseJWT_COOKIE_SAMESITE=lax@@ -32,7 +32,7 @@ CORS_ORIGINS=["http://localhost:3000","http://localhost:3001","http://localhost:# Database Configuration# SQLite DB filename. Resolved under DATA_DIR by# ``Settings._resolve_under_data`` — same pattern as ``temporal.db``-# and ``credentials.db`` so dev mode's DATA_DIR=.machina moves all+# and ``credentials.db`` so dev mode's DATA_DIR=.opencompany moves all# three together. The SQLAlchemy URL is composed at runtime by# ``Settings.database_url`` (sqlite+aiosqlite:///<abspath>).WORKFLOW_DB_FILENAME=workflow.db@@ -49,10 +49,12 @@ CACHE_TTL=300# Backed by ``temporal server start-dev`` against a SQLite db at# ``TEMPORAL_SQLITE_PATH``. The official ``temporal`` CLI is downloaded# by pooch from https://temporal.download/cli/archive/latest on-# ``machina build`` (or first ``machina start`` if build was skipped).+# ``company build`` (or first ``company start`` if build was skipped).TEMPORAL_ENABLED=trueTEMPORAL_SERVER_ADDRESS=localhost:7233TEMPORAL_NAMESPACE=default+# Durable Temporal wire identifier retained so upgrades can resume in-flight+# workflows. New display/package identifiers use OpenCompany.TEMPORAL_TASK_QUEUE=machina-tasksTEMPORAL_PER_TYPE_DISPATCH=trueTEMPORAL_AGENT_WORKFLOW_ENABLED=true@@ -65,7 +67,7 @@ TEMPORAL_AGENT_WORKFLOW_ENABLED=true# unchanged.TEMPORAL_WORKER_POOL_ENABLED=true# Deployment topology hint: local (dev laptop; sleeps; halved per-queue-# concurrency) | cloud (machina deploy VM) | self_hosted. Drives worker+# concurrency) | cloud (company deploy VM) | self_hosted. Drives worker# identity strings in the Temporal Web UI and per-mode concurrency# defaults. Explicit TEMPORAL_<QUEUE>_CONCURRENCY overrides always win.DEPLOYMENT_MODE=local@@ -81,11 +83,11 @@ DEPLOYMENT_MODE=localTEMPORAL_FRONTEND_GRPC_PORT=7233# Web UI port (``--ui-port``). ``temporal server start-dev`` defaults# this to ``--port + 1000``; we override to 8080 to match the-# historical MachinaOS port (kept for muscle memory + bookmarks).+# historical OpenCompany port (kept for muscle memory + bookmarks).# Browse to http://<host>:<TEMPORAL_UI_PORT>/.TEMPORAL_UI_PORT=8080# SQLite db file ``temporal server start-dev --db-filename`` opens.-# Relative to DATA_DIR (= ~/.machina/) unless absolute. Flat under+# Relative to DATA_DIR (= ~/.opencompany/) unless absolute. Flat under# DATA_DIR like ``credentials.db`` / ``workflow.db``. History is# always preserved across restarts (Temporal UI keeps showing every# workflow that ever ran); see ``TEMPORAL_TERMINATE_RUNNING_ON_STARTUP``@@ -93,16 +95,16 @@ TEMPORAL_UI_PORT=8080TEMPORAL_SQLITE_PATH=temporal.db# On server boot, terminate every workflow still in ``Running`` state.# History is preserved (workflows show as ``Terminated`` in the UI,-# NOT deleted) but resumption is disabled, because MachinaOS's+# NOT deleted) but resumption is disabled, because OpenCompany's# ``DeploymentManager`` has no boot-time reconcile against Temporal# Visibility yet — resumed workflows would otherwise keep executing-# but be invisible to the MachinaOS UI. Flip to ``false`` once the+# but be invisible to the OpenCompany UI. Flip to ``false`` once the# reconcile lands to re-enable durable resumption.TEMPORAL_TERMINATE_RUNNING_ON_STARTUP=true# Graceful shutdown window for the Temporal child process.TEMPORAL_GRACEFUL_SHUTDOWN_SECONDS=30# Supervisor readiness-probe window. The CLI binary may need to-# download (~114 MB zip) on first ``machina start`` if ``machina build``+# download (~114 MB zip) on first ``company start`` if ``company build``# didn't pre-cache it.TEMPORAL_SERVER_READY_TIMEOUT_SECONDS=120@@ -166,16 +168,16 @@ DLQ_ENABLED=false# (`~/.config/stripe/`), ngrok (`~/.ngrok2/`). Survives `rm -rf` of# the repo and lets multiple checkouts share state.#-# Resolution rules (`server/core/paths.py::machina_root`):+# Resolution rules (`server/core/paths.py::opencompany_root`):# - `~/...` → user home (cross-platform via Path.expanduser)# - absolute → used verbatim# - relative → resolved under repo root (back-compat)#-# Set to `.machina` (or `data`) if you want repo-local behaviour+# Set to `.opencompany` (or `data`) if you want repo-local behaviour# instead. Pre-cutover layouts (`<repo>/data/`, `<repo>/workflows/`)# do NOT auto-migrate — see `server/core/paths.py` for the manual# `mv` checklist if you're upgrading from an older release.-DATA_DIR=~/.machina+DATA_DIR=~/.opencompany# Per-workflow workspace (nodes save files here, resolved under DATA_DIR)WORKSPACE_BASE_DIR=workspacesdiff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex 27cc263c..8e6a0369 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -1,5 +1,5 @@# Shared environment setup: Node, Python, uv, CLI deps.-name: 'Setup MachinaOS Environment'+name: 'Setup OpenCompany Environment'description: 'Setup Node.js, Python, uv, and the supervisor CLI.'inputs:diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex b8c489a9..e9ac150c 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -1,11 +1,11 @@-# Deploy Mintlify docs on push to docs-MachinaOs/.+# Deploy Mintlify docs on push to docs-OpenCompany/.name: Deploy Docson:push:branches: [main]paths:- - 'docs-MachinaOs/**'+ - 'docs-OpenCompany/**'workflow_dispatch:permissions:@@ -20,7 +20,7 @@ jobs:with:node-version: '22'- run: npm install -g mintlify- - working-directory: docs-MachinaOs+ - working-directory: docs-OpenCompanyenv:MINTLIFY_TOKEN: ${{ secrets.MINTLIFY_TOKEN }}run: mintlify deploydiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a2608afd..d81da940 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -53,7 +53,7 @@ jobs:run: |node -e "const pkg = require('./package.json');- pkg.name = '@zeenie-ai/machinaos';+ pkg.name = '@zeenie-ai/opencompany';pkg.publishConfig = { registry: 'https://npm.pkg.github.com' };require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2));"diff --git a/.gitignore b/.gitignoreindex 13c2b93c..49be0dd6 100644--- a/.gitignore+++ b/.gitignore@@ -134,32 +134,38 @@ pnpm-store/# =============================================================================# Claude Code's local config / session state / scheduled tasks..claude/-# MachinaOs runtime root (`server/core/paths.py::machina_root`). Holds+# OpenCompany runtime root (`server/core/paths.py::opencompany_root`). Holds# claude/, workspaces/, whatsapp/, credentials.db, workflow.db — every# machine-local artefact. Override path via `DATA_DIR` env var in-# `.env` (default is `~/.machina`, the user home dir; not normally+# `.env` (default is `~/.opencompany`, the user home dir; not normally# present at the repo root). The `workflows/` subtree is the lone-# exception — it ships shipped example seeds (auto-imported on first+# exception — it ships example seeds (auto-imported on first# launch by ``services.example_loader``), so it stays tracked.+/.opencompany/*+!/.opencompany/workflows/+# Pre-rebrand repo-local state remains readable for upgrades but is never+# tracked. Do not remove this rule: local databases and deploy state may live+# here in existing checkouts./.machina/*-!/.machina/workflows/# Legacy data dir from the pre-cutover layout. Operators upgrading# from older releases either set `DATA_DIR=data` to keep the old-# layout or `mv` the contents to `~/.machina/` manually.+# layout or migrate the contents to `~/.opencompany/` manually./data/# Patch archive left behind by `git format-patch` during one-off# merges (see ../.merge-archive cleanup commits). Never committed..merge-archive/# Test side-effect dir from conftest's core.paths stub-# (server/core/paths.py). conftest points the stub's machina_root+# (server/core/paths.py). Keep both pre- and post-rebrand fixture spellings# at this dir so plugin module imports don't touch the real user# home during tests. Re-created on each test run.server/tests/_test_machina_root/+server/tests/_test_opencompany_root/# =============================================================================-# Documentation (docs-MachinaOs is a separate GitHub project)+# Documentation (the hosted docs tree is a separate project)# =============================================================================+docs-OpenCompany/docs-MachinaOs/# =============================================================================diff --git a/.npmignore b/.npmignoreindex 331b62c4..9038ffbd 100644--- a/.npmignore+++ b/.npmignore@@ -33,10 +33,12 @@ venv/*.egg-info/# Runtime data dirs — transient, never ship. The lone exception is-# ``.machina/workflows/`` (git-tracked shipped example seeds — see+# ``.opencompany/workflows/`` (git-tracked shipped example seeds — see# ``server/services/example_loader.py``), explicitly un-ignored below.+.opencompany/*+!.opencompany/workflows/+# Ignore pre-rebrand local state if it is present in a source checkout..machina/*-!.machina/workflows/# Legacy data dir from the pre-cutover layout. Kept as a sentinel so# stale checkouts from older releases don't accidentally ship.@@ -86,7 +88,8 @@ CLAUDE.md# Experiments (work in progress)server/experiments/-# Duplicate folder+# Duplicate folders+OpenCompany/MachinaOS/# WhatsApp RPC is now an npm dependency (@anthropic/whatsapp-rpc)diff --git a/.machina/workflows/AI Assistant_example_workflow-1779017037684-e2e5da7a.json b/.opencompany/workflows/AI Assistant_example_workflow-1779017037684-e2e5da7a.jsonsimilarity index 100%rename from .machina/workflows/AI Assistant_example_workflow-1779017037684-e2e5da7a.jsonrename to .opencompany/workflows/AI Assistant_example_workflow-1779017037684-e2e5da7a.jsondiff --git a/.machina/workflows/AI Employee_example_workflow-1779102911870-cbc76c82.json b/.opencompany/workflows/AI Employee_example_workflow-1779102911870-cbc76c82.jsonsimilarity index 98%rename from .machina/workflows/AI Employee_example_workflow-1779102911870-cbc76c82.jsonrename to .opencompany/workflows/AI Employee_example_workflow-1779102911870-cbc76c82.jsonindex 0e2a3b17..8aece9fe 100644--- a/.machina/workflows/AI Employee_example_workflow-1779102911870-cbc76c82.json+++ b/.opencompany/workflows/AI Employee_example_workflow-1779102911870-cbc76c82.json@@ -2362,7 +2362,7 @@},"browser-skill": {"enabled": true,- "instructions": "# Browser Automation Skill\n\n## Core Workflow\n\nUse the **snapshot -> act -> snapshot** loop:\n\n1. `navigate` to a URL\n2. `snapshot` to see interactive elements (returns `@eN` refs)\n3. `click` / `type` / `fill` / `select` using `@eN` refs as selectors\n4. `snapshot` again to see the result\n5. Repeat until task is complete\n\n## browser Tool\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| operation | string | Yes | One of: navigate, click, type, fill, screenshot, snapshot, get_text, get_html, eval, wait, scroll, select, console, errors |\n| url | string | navigate | URL to open |\n| selector | string | click/type/fill/get_text/get_html/wait/select | CSS selector or `@eN` ref from snapshot |\n| text | string | type | Text to type keystroke by keystroke |\n| value | string | fill/select | Value to fill or dropdown option to select |\n| expression | string | eval | JavaScript to execute in page context |\n| direction | string | scroll | up, down, left, right (default: down) |\n| amount | int | scroll | Pixels to scroll (default: 500) |\n| fullPage | bool | screenshot | Capture full scrollable page (default: false) |\n| annotate | bool | screenshot | Add numbered labels to elements (default: false) |\n| screenshotFormat | string | screenshot | Image format: png (default) or jpeg |\n| screenshotQuality | int | screenshot | JPEG quality 1-100 (default: 80, only for jpeg) |\n\n## Operations\n\n### navigate\nOpen a URL in the browser.\n```json\n{\"operation\": \"navigate\", \"url\": \"https://example.com\"}\n```\n\n### snapshot\nGet the accessibility tree with `@eN` element refs. This is the primary way to see what is on the page.\n```json\n{\"operation\": \"snapshot\"}\n```\nReturns interactive elements like:\n```\n- heading \"Example Domain\" [ref=@e1]\n- link \"More information...\" [ref=@e2]\n- textbox \"Search\" [ref=@e3]\n```\n\n### click\nClick an element using its `@eN` ref or CSS selector.\n```json\n{\"operation\": \"click\", \"selector\": \"@e2\"}\n```\n\n### type\nType text into an element keystroke by keystroke.\n```json\n{\"operation\": \"type\", \"selector\": \"@e3\", \"text\": \"search query\"}\n```\n\n### fill\nClear an input field and fill it with a value.\n```json\n{\"operation\": \"fill\", \"selector\": \"@e3\", \"value\": \"new value\"}\n```\n\n### screenshot\nTake a screenshot of the current page.\n```json\n{\"operation\": \"screenshot\", \"fullPage\": true}\n```\n\n**Annotated screenshot** (numbered labels on interactive elements -- best for AI vision):\n```json\n{\"operation\": \"screenshot\", \"annotate\": true}\n```\n\n**JPEG format** (smaller file size):\n```json\n{\"operation\": \"screenshot\", \"screenshotFormat\": \"jpeg\", \"screenshotQuality\": 80}\n```\n\n### get_text\nExtract text content from an element.\n```json\n{\"operation\": \"get_text\", \"selector\": \"@e1\"}\n```\n\n### eval\nExecute JavaScript in the page context.\n```json\n{\"operation\": \"eval\", \"expression\": \"document.title\"}\n```\n\n### wait\nWait for an element to appear on the page.\n```json\n{\"operation\": \"wait\", \"selector\": \"#results\"}\n```\n\n### scroll\nScroll the page.\n```json\n{\"operation\": \"scroll\", \"direction\": \"down\", \"amount\": 500}\n```\n\n### select\nSelect a dropdown option.\n```json\n{\"operation\": \"select\", \"selector\": \"@e5\", \"value\": \"option-value\"}\n```\n\n### console\nGet browser console output (log, warn, error messages).\n```json\n{\"operation\": \"console\"}\n```\nReturns `{\"messages\": [{\"text\": \"hello\", \"type\": \"log\"}, ...]}`.\n\n### errors\nGet JavaScript errors from the page.\n```json\n{\"operation\": \"errors\"}\n```\nReturns `{\"errors\": [...]}`.\n\n## Using Your Real Browser\n\nBy default the browser node uses a bundled Chromium. To use your system browser (with existing logins, extensions, etc.), select it in the **Browser** dropdown under Advanced:\n\n| Option | Description |\n|--------|-------------|\n| **Bundled Chrome** | Default. Downloads and uses its own Chromium. |\n| **Google Chrome** | Auto-detected from system PATH or Windows registry. |\n| **Microsoft Edge** | Auto-detected from system PATH or Windows registry. |\n| **Chromium** | Auto-detected from system PATH or Windows registry. |\n| **Custom Path** | Manually specify an executable path. |\n\nBrowser detection uses `shutil.which()` on Linux/macOS (PATH lookup) and the Windows App Paths registry (`HKLM\\...\\App Paths\\chrome.exe`) -- the same method Selenium and Playwright use. No hardcoded paths.\n\n### Additional options\n\n- **New Window**: Opens a new browser window instead of a tab in an existing instance. On by default when using a system browser. Only visible for non-bundled browsers.\n- **Chrome Profile**: Reuse login state from a named Chrome profile (e.g. `Default`, `Profile 1`).\n- **Auto Connect**: Attach to an already-running Chrome with remote debugging:\n ```\n chrome --remote-debugging-port=9222\n ```\n\n### Lifecycle\n\nThe browser daemon auto-starts on first use and persists between commands (for session reuse). It is automatically shut down when MachinaOs stops -- no manual cleanup needed.\n\n## Stealth / Anti-Detection\n\nThese settings reduce bot detection. Configure them in the node's Advanced section, not as tool arguments.\n\n- **Action Delay**: Native wait (ms) before each action. Set 500-2000ms for bot-protected sites.\n- **User Agent**: Custom user-agent string to override Chrome default.\n- **Proxy**: Route all browser traffic through a proxy (e.g. `http://user:pass@host:port`).\n\n## Tips\n\n- Always `snapshot` first to discover `@eN` element refs before interacting.\n- Prefer `@eN` refs over CSS selectors -- they are stable across the session.\n- Use `fill` for form inputs (clears first), `type` for search boxes (keystroke events).\n- Use `screenshot` to visually verify page state when uncertain.\n- Use `wait` before interacting with dynamically loaded elements.\n- Use `eval` sparingly -- prefer snapshot + click/fill for most tasks.\n- Select **Google Chrome** or **Microsoft Edge** in the Browser dropdown to use your real browser with existing logins.\n",+ "instructions": "# Browser Automation Skill\n\n## Core Workflow\n\nUse the **snapshot -> act -> snapshot** loop:\n\n1. `navigate` to a URL\n2. `snapshot` to see interactive elements (returns `@eN` refs)\n3. `click` / `type` / `fill` / `select` using `@eN` refs as selectors\n4. `snapshot` again to see the result\n5. Repeat until task is complete\n\n## browser Tool\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| operation | string | Yes | One of: navigate, click, type, fill, screenshot, snapshot, get_text, get_html, eval, wait, scroll, select, console, errors |\n| url | string | navigate | URL to open |\n| selector | string | click/type/fill/get_text/get_html/wait/select | CSS selector or `@eN` ref from snapshot |\n| text | string | type | Text to type keystroke by keystroke |\n| value | string | fill/select | Value to fill or dropdown option to select |\n| expression | string | eval | JavaScript to execute in page context |\n| direction | string | scroll | up, down, left, right (default: down) |\n| amount | int | scroll | Pixels to scroll (default: 500) |\n| fullPage | bool | screenshot | Capture full scrollable page (default: false) |\n| annotate | bool | screenshot | Add numbered labels to elements (default: false) |\n| screenshotFormat | string | screenshot | Image format: png (default) or jpeg |\n| screenshotQuality | int | screenshot | JPEG quality 1-100 (default: 80, only for jpeg) |\n\n## Operations\n\n### navigate\nOpen a URL in the browser.\n```json\n{\"operation\": \"navigate\", \"url\": \"https://example.com\"}\n```\n\n### snapshot\nGet the accessibility tree with `@eN` element refs. This is the primary way to see what is on the page.\n```json\n{\"operation\": \"snapshot\"}\n```\nReturns interactive elements like:\n```\n- heading \"Example Domain\" [ref=@e1]\n- link \"More information...\" [ref=@e2]\n- textbox \"Search\" [ref=@e3]\n```\n\n### click\nClick an element using its `@eN` ref or CSS selector.\n```json\n{\"operation\": \"click\", \"selector\": \"@e2\"}\n```\n\n### type\nType text into an element keystroke by keystroke.\n```json\n{\"operation\": \"type\", \"selector\": \"@e3\", \"text\": \"search query\"}\n```\n\n### fill\nClear an input field and fill it with a value.\n```json\n{\"operation\": \"fill\", \"selector\": \"@e3\", \"value\": \"new value\"}\n```\n\n### screenshot\nTake a screenshot of the current page.\n```json\n{\"operation\": \"screenshot\", \"fullPage\": true}\n```\n\n**Annotated screenshot** (numbered labels on interactive elements -- best for AI vision):\n```json\n{\"operation\": \"screenshot\", \"annotate\": true}\n```\n\n**JPEG format** (smaller file size):\n```json\n{\"operation\": \"screenshot\", \"screenshotFormat\": \"jpeg\", \"screenshotQuality\": 80}\n```\n\n### get_text\nExtract text content from an element.\n```json\n{\"operation\": \"get_text\", \"selector\": \"@e1\"}\n```\n\n### eval\nExecute JavaScript in the page context.\n```json\n{\"operation\": \"eval\", \"expression\": \"document.title\"}\n```\n\n### wait\nWait for an element to appear on the page.\n```json\n{\"operation\": \"wait\", \"selector\": \"#results\"}\n```\n\n### scroll\nScroll the page.\n```json\n{\"operation\": \"scroll\", \"direction\": \"down\", \"amount\": 500}\n```\n\n### select\nSelect a dropdown option.\n```json\n{\"operation\": \"select\", \"selector\": \"@e5\", \"value\": \"option-value\"}\n```\n\n### console\nGet browser console output (log, warn, error messages).\n```json\n{\"operation\": \"console\"}\n```\nReturns `{\"messages\": [{\"text\": \"hello\", \"type\": \"log\"}, ...]}`.\n\n### errors\nGet JavaScript errors from the page.\n```json\n{\"operation\": \"errors\"}\n```\nReturns `{\"errors\": [...]}`.\n\n## Using Your Real Browser\n\nBy default the browser node uses a bundled Chromium. To use your system browser (with existing logins, extensions, etc.), select it in the **Browser** dropdown under Advanced:\n\n| Option | Description |\n|--------|-------------|\n| **Bundled Chrome** | Default. Downloads and uses its own Chromium. |\n| **Google Chrome** | Auto-detected from system PATH or Windows registry. |\n| **Microsoft Edge** | Auto-detected from system PATH or Windows registry. |\n| **Chromium** | Auto-detected from system PATH or Windows registry. |\n| **Custom Path** | Manually specify an executable path. |\n\nBrowser detection uses `shutil.which()` on Linux/macOS (PATH lookup) and the Windows App Paths registry (`HKLM\\...\\App Paths\\chrome.exe`) -- the same method Selenium and Playwright use. No hardcoded paths.\n\n### Additional options\n\n- **New Window**: Opens a new browser window instead of a tab in an existing instance. On by default when using a system browser. Only visible for non-bundled browsers.\n- **Chrome Profile**: Reuse login state from a named Chrome profile (e.g. `Default`, `Profile 1`).\n- **Auto Connect**: Attach to an already-running Chrome with remote debugging:\n ```\n chrome --remote-debugging-port=9222\n ```\n\n### Lifecycle\n\nThe browser daemon auto-starts on first use and persists between commands (for session reuse). It is automatically shut down when OpenCompany stops -- no manual cleanup needed.\n\n## Stealth / Anti-Detection\n\nThese settings reduce bot detection. Configure them in the node's Advanced section, not as tool arguments.\n\n- **Action Delay**: Native wait (ms) before each action. Set 500-2000ms for bot-protected sites.\n- **User Agent**: Custom user-agent string to override Chrome default.\n- **Proxy**: Route all browser traffic through a proxy (e.g. `http://user:pass@host:port`).\n\n## Tips\n\n- Always `snapshot` first to discover `@eN` element refs before interacting.\n- Prefer `@eN` refs over CSS selectors -- they are stable across the session.\n- Use `fill` for form inputs (clears first), `type` for search boxes (keystroke events).\n- Use `screenshot` to visually verify page state when uncertain.\n- Use `wait` before interacting with dynamically loaded elements.\n- Use `eval` sparingly -- prefer snapshot + click/fill for most tasks.\n- Select **Google Chrome** or **Microsoft Edge** in the Browser dropdown to use your real browser with existing logins.\n","isCustomized": false},"duckduckgo-search-skill": {@@ -2372,7 +2372,7 @@},"http-request-skill": {"enabled": true,- "instructions": "# HTTP Request Tool\n\nMake HTTP requests to external APIs and web services.\n\n## How It Works\n\nThis skill provides instructions for the **HTTP Request** tool node. Connect the **HTTP Request** node to Zeenie's `input-tools` handle to enable API calls.\n\n## http_request Tool\n\nMake an HTTP request to any URL.\n\n### Schema Fields\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| url | string | Yes | Full URL to request (e.g., `https://api.example.com/data`) |\n| method | string | No | HTTP method: `GET`, `POST`, `PUT`, `DELETE`, `PATCH` (default: `GET`) |\n| body | object | No | Request body as JSON object (for POST/PUT/PATCH) |\n| useProxy | boolean | No | Route through proxy (default: `false`). The proxy service handles provider selection, geo-targeting, and session type automatically. |\n\n### Node Parameters\n\nAdditional options can be configured on the node:\n\n| Parameter | Description |\n|-----------|-------------|\n| headers | Custom headers as JSON (e.g., `{\"Authorization\": \"Bearer token\"}`) |\n| base_url | Base URL prepended to the url parameter |\n\n### Response Format\n\n```json\n{\n \"status\": 200,\n \"data\": { \"key\": \"value\" },\n \"url\": \"https://api.example.com/data\",\n \"method\": \"GET\",\n \"proxied\": false\n}\n```\n\n### Examples\n\n**GET request (fetch data):**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"GET\"\n}\n```\n\n**POST request (create resource):**\n```json\n{\n \"url\": \"https://api.example.com/users\",\n \"method\": \"POST\",\n \"body\": {\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\"\n }\n}\n```\n\n**PUT request (update resource):**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"PUT\",\n \"body\": {\n \"name\": \"John Updated\"\n }\n}\n```\n\n**DELETE request:**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"DELETE\"\n}\n```\n\n**PATCH request (partial update):**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"PATCH\",\n \"body\": {\n \"status\": \"active\"\n }\n}\n```\n\n### Real-World Examples\n\n**Get Bitcoin price:**\n```json\n{\n \"url\": \"https://api.coindesk.com/v1/bpi/currentprice.json\",\n \"method\": \"GET\"\n}\n```\n\n**Get weather:**\n```json\n{\n \"url\": \"https://api.openweathermap.org/data/2.5/weather?q=London&appid=YOUR_KEY\",\n \"method\": \"GET\"\n}\n```\n\n**Post to webhook:**\n```json\n{\n \"url\": \"https://hooks.slack.com/services/xxx\",\n \"method\": \"POST\",\n \"body\": {\n \"text\": \"Hello from MachinaOS!\"\n }\n}\n```\n\n**Check website status:**\n```json\n{\n \"url\": \"https://example.com\",\n \"method\": \"GET\"\n}\n```\n\n### Error Responses\n\n**Timeout:**\n```json\n{\n \"error\": \"Request timed out\"\n}\n```\n\n**Connection failed:**\n```json\n{\n \"error\": \"Connection failed: Unable to reach host\"\n}\n```\n\n**HTTP error:**\n```json\n{\n \"status\": 404,\n \"data\": \"Not Found\",\n \"url\": \"https://api.example.com/missing\",\n \"method\": \"GET\"\n}\n```\n\n## HTTP Status Codes\n\n| Status | Meaning | Action |\n|--------|---------|--------|\n| 200-299 | Success | Process the response data |\n| 400 | Bad Request | Check request parameters |\n| 401 | Unauthorized | Check API key/authentication |\n| 403 | Forbidden | Insufficient permissions |\n| 404 | Not Found | Check URL path |\n| 429 | Too Many Requests | Rate limited, wait and retry |\n| 500-599 | Server Error | External service issue |\n\n## Use Cases\n\n| Use Case | Method | Description |\n|----------|--------|-------------|\n| Fetch data | GET | Retrieve resources |\n| Create resource | POST | Add new data |\n| Update resource | PUT/PATCH | Modify existing data |\n| Delete resource | DELETE | Remove data |\n| Health check | GET | Verify service availability |\n| Webhook trigger | POST | Send events to services |\n\n## Proxy Usage\n\nTo route a request through a residential proxy, just set `useProxy: true`. The proxy service automatically selects the best provider, geo-target, and session type from its configuration. A proxy provider must be configured first via the `proxy_config` tool (see proxy-config-skill).\n\n**Proxied request:**\n```json\n{\n \"url\": \"https://example.com/data\",\n \"method\": \"GET\",\n \"useProxy\": true\n}\n```\n\nIf no proxy providers are configured or the proxy lookup fails, the request proceeds directly without a proxy and `\"proxied\": false` appears in the response.\n\n## Guidelines\n\n1. **URLs**: Must be fully qualified with protocol (https://)\n2. **Authentication**: Use node headers for API keys/tokens\n3. **Timeout**: Default 30 seconds\n4. **JSON body**: Automatically serialized for POST/PUT/PATCH\n5. **Response**: JSON responses are automatically parsed\n6. **Proxy**: Set `useProxy: true` to route through proxy -- the proxy service handles all routing details\n\n## Security Notes\n\n1. Never expose API keys in responses to users\n2. Validate URLs before making requests\n3. Avoid internal/private network addresses (localhost, 192.168.x.x)\n4. Respect rate limits of external services\n5. Don't store sensitive data from API responses\n\n## Setup Requirements\n\n1. Connect the **HTTP Request** node to Zeenie's `input-tools` handle\n2. Configure authentication headers on the node if needed\n3. Ensure network access to target APIs\n4. For proxy usage: configure a proxy provider via the proxy-config-skill first\n",+ "instructions": "# HTTP Request Tool\n\nMake HTTP requests to external APIs and web services.\n\n## How It Works\n\nThis skill provides instructions for the **HTTP Request** tool node. Connect the **HTTP Request** node to Zeenie's `input-tools` handle to enable API calls.\n\n## http_request Tool\n\nMake an HTTP request to any URL.\n\n### Schema Fields\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| url | string | Yes | Full URL to request (e.g., `https://api.example.com/data`) |\n| method | string | No | HTTP method: `GET`, `POST`, `PUT`, `DELETE`, `PATCH` (default: `GET`) |\n| body | object | No | Request body as JSON object (for POST/PUT/PATCH) |\n| useProxy | boolean | No | Route through proxy (default: `false`). The proxy service handles provider selection, geo-targeting, and session type automatically. |\n\n### Node Parameters\n\nAdditional options can be configured on the node:\n\n| Parameter | Description |\n|-----------|-------------|\n| headers | Custom headers as JSON (e.g., `{\"Authorization\": \"Bearer token\"}`) |\n| base_url | Base URL prepended to the url parameter |\n\n### Response Format\n\n```json\n{\n \"status\": 200,\n \"data\": { \"key\": \"value\" },\n \"url\": \"https://api.example.com/data\",\n \"method\": \"GET\",\n \"proxied\": false\n}\n```\n\n### Examples\n\n**GET request (fetch data):**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"GET\"\n}\n```\n\n**POST request (create resource):**\n```json\n{\n \"url\": \"https://api.example.com/users\",\n \"method\": \"POST\",\n \"body\": {\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\"\n }\n}\n```\n\n**PUT request (update resource):**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"PUT\",\n \"body\": {\n \"name\": \"John Updated\"\n }\n}\n```\n\n**DELETE request:**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"DELETE\"\n}\n```\n\n**PATCH request (partial update):**\n```json\n{\n \"url\": \"https://api.example.com/users/123\",\n \"method\": \"PATCH\",\n \"body\": {\n \"status\": \"active\"\n }\n}\n```\n\n### Real-World Examples\n\n**Get Bitcoin price:**\n```json\n{\n \"url\": \"https://api.coindesk.com/v1/bpi/currentprice.json\",\n \"method\": \"GET\"\n}\n```\n\n**Get weather:**\n```json\n{\n \"url\": \"https://api.openweathermap.org/data/2.5/weather?q=London&appid=YOUR_KEY\",\n \"method\": \"GET\"\n}\n```\n\n**Post to webhook:**\n```json\n{\n \"url\": \"https://hooks.slack.com/services/xxx\",\n \"method\": \"POST\",\n \"body\": {\n \"text\": \"Hello from OpenCompany!\"\n }\n}\n```\n\n**Check website status:**\n```json\n{\n \"url\": \"https://example.com\",\n \"method\": \"GET\"\n}\n```\n\n### Error Responses\n\n**Timeout:**\n```json\n{\n \"error\": \"Request timed out\"\n}\n```\n\n**Connection failed:**\n```json\n{\n \"error\": \"Connection failed: Unable to reach host\"\n}\n```\n\n**HTTP error:**\n```json\n{\n \"status\": 404,\n \"data\": \"Not Found\",\n \"url\": \"https://api.example.com/missing\",\n \"method\": \"GET\"\n}\n```\n\n## HTTP Status Codes\n\n| Status | Meaning | Action |\n|--------|---------|--------|\n| 200-299 | Success | Process the response data |\n| 400 | Bad Request | Check request parameters |\n| 401 | Unauthorized | Check API key/authentication |\n| 403 | Forbidden | Insufficient permissions |\n| 404 | Not Found | Check URL path |\n| 429 | Too Many Requests | Rate limited, wait and retry |\n| 500-599 | Server Error | External service issue |\n\n## Use Cases\n\n| Use Case | Method | Description |\n|----------|--------|-------------|\n| Fetch data | GET | Retrieve resources |\n| Create resource | POST | Add new data |\n| Update resource | PUT/PATCH | Modify existing data |\n| Delete resource | DELETE | Remove data |\n| Health check | GET | Verify service availability |\n| Webhook trigger | POST | Send events to services |\n\n## Proxy Usage\n\nTo route a request through a residential proxy, just set `useProxy: true`. The proxy service automatically selects the best provider, geo-target, and session type from its configuration. A proxy provider must be configured first via the `proxy_config` tool (see proxy-config-skill).\n\n**Proxied request:**\n```json\n{\n \"url\": \"https://example.com/data\",\n \"method\": \"GET\",\n \"useProxy\": true\n}\n```\n\nIf no proxy providers are configured or the proxy lookup fails, the request proceeds directly without a proxy and `\"proxied\": false` appears in the response.\n\n## Guidelines\n\n1. **URLs**: Must be fully qualified with protocol (https://)\n2. **Authentication**: Use node headers for API keys/tokens\n3. **Timeout**: Default 30 seconds\n4. **JSON body**: Automatically serialized for POST/PUT/PATCH\n5. **Response**: JSON responses are automatically parsed\n6. **Proxy**: Set `useProxy: true` to route through proxy -- the proxy service handles all routing details\n\n## Security Notes\n\n1. Never expose API keys in responses to users\n2. Validate URLs before making requests\n3. Avoid internal/private network addresses (localhost, 192.168.x.x)\n4. Respect rate limits of external services\n5. Don't store sensitive data from API responses\n\n## Setup Requirements\n\n1. Connect the **HTTP Request** node to Zeenie's `input-tools` handle\n2. Configure authentication headers on the node if needed\n3. Ensure network access to target APIs\n4. For proxy usage: configure a proxy provider via the proxy-config-skill first\n","isCustomized": false},"perplexity-search-skill": {diff --git a/.machina/workflows/Claude Assistant_example_workflow-1779095939967-2369cff4.json b/.opencompany/workflows/Claude Assistant_example_workflow-1779095939967-2369cff4.jsonsimilarity index 100%rename from .machina/workflows/Claude Assistant_example_workflow-1779095939967-2369cff4.jsonrename to .opencompany/workflows/Claude Assistant_example_workflow-1779095939967-2369cff4.jsondiff --git a/CLAUDE.md b/CLAUDE.mdindex 05a306c1..4858b0be 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1,4 +1,4 @@-# MachinaOs - Claude Documentation+# OpenCompany - Claude Documentation## Project OverviewThis is a React Flow-based workflow automation platform implementing n8n-inspired architectural patterns. The project has undergone a comprehensive refactoring to implement modern INodeProperties interface system with full TypeScript compliance and code cleanup.@@ -13,8 +13,8 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire| **[UI Migration Plan](./docs-internal/ui_migration_plan.md)** | antd → shadcn/ui migration plan + completion log. Waves 1–10 done. Full frontend is schema-driven (backend SSOT); remaining DIY widget registry (ex-Phase 6) is the one deferred item. || **[Temporal Cleanup & Resilience Plan (Waves 15-18)](./docs-internal/TEMPORAL_CLEANUP_AND_RESILIENCE_PLAN.md)** | RFC for the four forward waves: 15 dead-code retirement (Redis-Streams branch in event_waiter, APScheduler cron stack, orphaned `connection_status` factory — ~556 LOC), 16 per-queue task routing activation (`TemporalWorkerPool` + `TEMPORAL_WORKER_POOL_ENABLED` gate), 17 resilience hardening (cron `catchup_window`, one-shot LLM-step retry, SDK interceptors, `DEPLOYMENT_MODE`, periodic heartbeats), 18 worker performance tuning (per-queue rate limits, sticky cache, poller autoscaling, resource-based slot supplier). Ship order, rollback channels, verified line citations. || **[Node Allowlist](./docs-internal/node_allowlist.md)** | Single-config UI visibility — `server/config/node_allowlist.json` controls which nodes / credential categories / skill folders show in the UI. Five lists with two enforcement tiers (mode-gated allowlist + absolute blocklist). `useNodeAllowlist` hook exposes `isVisible` / `isBlocked` / `isAllowed` / `isCredentialCategoryDisabled` / `isSkillFolderDisabled`. Adding a new disabled domain = single JSON edit, no code change. |-| **[Theme System](./docs-internal/theme_system.md)** | 12-way visual theme system — 2 base (light, dark) + 5 utopian (renaissance, greek, edo, steampunk, atomic) + 5 dystopian (cyber, wasteland, rot, plague, surveillance) — driven by `<html data-theme>` + per-theme CSS files in `client/src/themes/`. Token taxonomy (surface / fg / border / accent / typography / motion) in **hex + `color-mix()`**; `@theme inline` bridge maps `--color-X: var(--X)` (no `hsl()` wrapper); per-theme files own the colour hex, base.css owns the shared `--tint-*` alpha scale; action role tokens (incl. `-ink` readable text), **per-theme `--code-*` syntax tokens** (tier 6 — the code editor, console/output JSON viewers, and chat code blocks paint in each theme's own palette: keyword→trigger, string→success, number→agent, function→model, on an adaptive dark/light code surface; replaced the global dracula `--prism-*` block + dead `getPrismTokenCSS`; the `OutputPanel` JSON viewer reads the same vars), per-theme `--pulse-keyframe` animation system + `.machina-*` helpers in `animations.css`, decorative-layer wrappers (`.app-frame` / `.canvas-host` / `.modal-frame`), per-component decorative ornaments (panel textures + canvas decorations + node pseudo-element overlays + theme-specific keyframes), **canvas-node visual contract via `--node-color` CSS custom property** (no inline `background` / `border` on node components — base.css + per-theme CSS owns visuals; `NodeStyle` helper type at [types/NodeTypes.ts](./client/src/types/NodeTypes.ts) makes the inline custom-prop typecheck-clean), **`--node-pulse-color` separate from `--node-color`** so executing-node glow uses each theme's highest-contrast accent regardless of plugin accent (Cyber neon cyan, Surveillance REC red, Renaissance ultramarine, etc.), **`data-page-hidden` animation pause** (toggled by Dashboard's `visibilitychange` listener; base.css declares `html[data-page-hidden] *, *::before, *::after { animation-play-state: paused !important }` to prevent compositor stall on tab return), **per-theme icon glyph system** (290 SVGs across 29 keys × 10 themes via [themedGlyphs.ts](./client/src/assets/icons/themedGlyphs.ts) + theme-aware [NodeIcon.tsx](./client/src/assets/icons/NodeIcon.tsx)), **per-theme canvas-grid + custom cursors** via `--canvas-grid` / `--cursor-default` slots, **decorative HTML primitives** (`<SvgFilterDefs>` mounting `#ink-blot` / `#noise` / `#crt` filter IDs at app root, `<DropCap>` wrapper for Renaissance ornament rule), **parameter panel migrated to Tailwind tokens** (no `useAppTheme()` reads; section headers carry the display-typography triplet; raw `<Button>` swapped to `<ActionButton intent>`), **per-theme scrollbar webkit rules** in all 12 themes, 9-event WebAudio sound system (10 packs via `--sound-pack` token + `useSound()` hook + global hover delegate + sonner toast monkey-patch + `withSound()` HOC + `Sounds.unlock()` gesture-unlock for AudioContext autoplay-policy compliance), `@media (prefers-reduced-motion: reduce)` accessibility, 30 ms throttle on `type` / `hover`, migration recipe, anti-patterns. Read this before adding a new theme, migrating a component to the new contract, or adding a canvas-node component. |-| **[Design System Bundle](./docs-internal/design-system/IMPLEMENTATION.md)** | Canonical, vendored design-system reference (extracted from this repo; see its `IMPLEMENTATION.md` for the contract). Tokens are **hex + `color-mix()`** (`tokens/{colors,typography,spacing,motion,fonts,base}.css`) — the format the live codebase standardizes on. Includes 34 reference components (`components/`, inline-style reference only — recreate in Tailwind/shadcn idioms), full-app UI kit (`ui_kits/machinaos/index.html`), and 12-theme docs (`guidelines/THEMES.md`, `reference/themes/`). Copy token values verbatim; do not re-derive by eye. Pairs with [Theme System](./docs-internal/theme_system.md). |+| **[Theme System](./docs-internal/theme_system.md)** | 12-way visual theme system — 2 base (light, dark) + 5 utopian (renaissance, greek, edo, steampunk, atomic) + 5 dystopian (cyber, wasteland, rot, plague, surveillance) — driven by `<html data-theme>` + per-theme CSS files in `client/src/themes/`. Token taxonomy (surface / fg / border / accent / typography / motion) in **hex + `color-mix()`**; `@theme inline` bridge maps `--color-X: var(--X)` (no `hsl()` wrapper); per-theme files own the colour hex, base.css owns the shared `--tint-*` alpha scale; action role tokens (incl. `-ink` readable text), **per-theme `--code-*` syntax tokens** (tier 6 — the code editor, console/output JSON viewers, and chat code blocks paint in each theme's own palette: keyword→trigger, string→success, number→agent, function→model, on an adaptive dark/light code surface; replaced the global dracula `--prism-*` block + dead `getPrismTokenCSS`; the `OutputPanel` JSON viewer reads the same vars), per-theme `--pulse-keyframe` animation system + `.opencompany-*` helpers in `animations.css`, decorative-layer wrappers (`.app-frame` / `.canvas-host` / `.modal-frame`), per-component decorative ornaments (panel textures + canvas decorations + node pseudo-element overlays + theme-specific keyframes), **canvas-node visual contract via `--node-color` CSS custom property** (no inline `background` / `border` on node components — base.css + per-theme CSS owns visuals; `NodeStyle` helper type at [types/NodeTypes.ts](./client/src/types/NodeTypes.ts) makes the inline custom-prop typecheck-clean), **`--node-pulse-color` separate from `--node-color`** so executing-node glow uses each theme's highest-contrast accent regardless of plugin accent (Cyber neon cyan, Surveillance REC red, Renaissance ultramarine, etc.), **`data-page-hidden` animation pause** (toggled by Dashboard's `visibilitychange` listener; base.css declares `html[data-page-hidden] *, *::before, *::after { animation-play-state: paused !important }` to prevent compositor stall on tab return), **per-theme icon glyph system** (290 SVGs across 29 keys × 10 themes via [themedGlyphs.ts](./client/src/assets/icons/themedGlyphs.ts) + theme-aware [NodeIcon.tsx](./client/src/assets/icons/NodeIcon.tsx)), **per-theme canvas-grid + custom cursors** via `--canvas-grid` / `--cursor-default` slots, **decorative HTML primitives** (`<SvgFilterDefs>` mounting `#ink-blot` / `#noise` / `#crt` filter IDs at app root, `<DropCap>` wrapper for Renaissance ornament rule), **parameter panel migrated to Tailwind tokens** (no `useAppTheme()` reads; section headers carry the display-typography triplet; raw `<Button>` swapped to `<ActionButton intent>`), **per-theme scrollbar webkit rules** in all 12 themes, 9-event WebAudio sound system (10 packs via `--sound-pack` token + `useSound()` hook + global hover delegate + sonner toast monkey-patch + `withSound()` HOC + `Sounds.unlock()` gesture-unlock for AudioContext autoplay-policy compliance), `@media (prefers-reduced-motion: reduce)` accessibility, 30 ms throttle on `type` / `hover`, migration recipe, anti-patterns. Read this before adding a new theme, migrating a component to the new contract, or adding a canvas-node component. |+| **[Design System Bundle](./docs-internal/design-system/IMPLEMENTATION.md)** | Canonical, vendored design-system reference (extracted from this repo; see its `IMPLEMENTATION.md` for the contract). Tokens are **hex + `color-mix()`** (`tokens/{colors,typography,spacing,motion,fonts,base}.css`) — the format the live codebase standardizes on. Includes 34 reference components (`components/`, inline-style reference only — recreate in Tailwind/shadcn idioms), full-app UI kit (`ui_kits/opencompany/index.html`), and 12-theme docs (`guidelines/THEMES.md`, `reference/themes/`). Copy token values verbatim; do not re-derive by eye. Pairs with [Theme System](./docs-internal/theme_system.md). || **[Schema Source of Truth RFC](./docs-internal/schema_source_of_truth_rfc.md)** | Backend is SSOT for node schemas, visual metadata, handlers, palette metadata, icons. Plugin pattern: one `BaseNode` subclass in `server/nodes/<group>/<plugin>/__init__.py`. Wire format: `asset:<key>` / `<lib>:<brand>` / URL / emoji. Endpoint: `/api/schemas/nodes/{type}/spec.json`. Live invariant total via `pytest --collect-only`. || **[Plugin System (Wave 11)](./docs-internal/plugin_system.md)** | Class-based plugin-first architecture. `BaseNode` / `ActionNode` / `TriggerNode` / `ToolNode` + `@Operation` decorator. Pydantic `Params`/`Output`. Declarative `Routing` DSL + `Connection` facade (Nango pattern). 18 `Credential` subclasses live in each node folder's `_credentials.py` (or inline for single-use). `TaskQueue` constants route to Temporal worker pools. Plugins live across 9 queues (live count via `glob server/nodes/**/__init__.py`); handler bodies fully inlined (`services/handlers/` shrank 12.8K → 1.1K LOC across 16 → 4 files; only cross-cutting orchestration remains: `tools.py` AI-tool dispatch + agent delegation, `triggers.py` generic trigger-node handler, `todo.py` writeTodos shim — `google_auth.py` was retired into `nodes/google/_auth_helper.py`). **Wave 11.H added "self-contained plugin folders"** — up to six generic registries (`ws_handler_registry`, `register_router`, `event_waiter.{register_filter_builder,register_trigger_precheck}`, `status_broadcaster.register_service_refresh`, `node_output_schemas.register_output_schema`) so rich plugins like telegram own their entire surface area without core-services edits. || **[Nodes Cookbook](./server/nodes/README.md)** | 5-minute recipe + folder map + shared helpers (`_base.py` / `_inline.py` per domain) + shared credentials + **canonical folder-per-plugin shape (telegram is the reference implementation)** + contract invariants + common pitfalls. Lives next to the plugin files. |@@ -29,10 +29,10 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire| **[Browser Harness](./docs-internal/browser_harness.md)** | Wave 19 — `browserHarness` node integrating browser-use/browser-harness (alpha, raw CDP against the user's REAL Chrome; no Playwright). Primary op `run_python` pipes agent-authored Python to the CLI stdin against ~25 pre-imported helpers (see→act→verify loop: `capture_screenshot` → `click_at_xy` → `wait_for_load` → `js`). uv-tool install under `packages/browser-harness/`; daemon state pinned to `daemons/browser-harness/` via `BH_RUNTIME_DIR`/`BH_TMP_DIR`; Windows OK (token-auth TCP loopback IPC). Sibling of the stable `browser` node (agent-browser `@eN` refs) — NOT a replacement. Chrome must be CDP-reachable (`BU_CDP_URL` / chrome://inspect / `--remote-debugging-port`); `doctor` op diagnoses. Skill: `skills/web_agent/browser-harness-skill/`. || **[Stripe Service](./docs-internal/stripe_service.md)** | Stripe CLI integration — `stripeAction` (CLI pass-through) + `stripeReceive` (signed-webhook trigger). Reference plugin for the Wave 12 event framework AND the **CLI-managed-auth pattern**: browser OAuth via `stripe login --non-interactive` + `--complete <url>` (URL extracted from `next_step` shell command via `shlex.split`) + auto-installed binary (`ensure_stripe_cli` from GitHub releases) + marker-token reuse of `auth_service.store_oauth_tokens` + CloudEvents-shaped `broadcast_credential_event("credential.oauth.connected" \| ".disconnected", provider=...)` — zero per-provider hardcoding in the frontend. Daemon stdout/stderr ingested via `ProcessService`'s `line_handler` callback (no log-file tailing); credential gate routed through `await self.has_credential()` so non-api-key auth (`is_logged_in()`) plugs in via subclass override. || **[Vercel Service](./docs-internal/vercel_service.md)** | Vercel CLI integration — `vercelAction` (deploy / inspect / list + `custom` CLI passthrough; AI tool `vercel`). Second reference for the CLI-managed-auth pattern: the **device-flow variant** (`vercel login` is one blocking process — no two-step `--complete`; direct `create_subprocess_exec` + chunk-based banner read for the code-embedding URL, pumps drain pipes for the process lifetime, success gate = auth.json mtime advance + sniff). Dual auth: optional `vercel_token` field (injected as `VERCEL_TOKEN` env, never argv) OR CLI login with marker tokens. All invocations pin `--global-config <DATA_DIR>/vercel/` (the `CLAUDE_CONFIG_DIR` isolation idiom). npm install into the shared packages tree (pinned version). First-deploy project guard raises `NodeUserError` instead of letting Vercel derive an invalid name from the workspace dir. Shipped with the generic OAuthConnect change: Login gates on **required** fields only, so optional fields never block CLI login. |-| **[GitHub Service](./docs-internal/github_service.md)** | GitHub CLI integration — `githubAction` (repo_clone / pr_create / pr_list / pr_merge / issue_create / issue_list + `custom` passthrough; AI tool `github`). **Strict Stripe pattern: the gh CLI owns its own auth** — no token stored/injected by MachinaOs, no auth pre-flight (gh's own error surfaces), marker OAuth row for the modal badge, fieldless catalogue entry. Login = spawned `gh auth login --hostname github.com --git-protocol https --web` — source-verified: headless takes the `isInteractive=false` branch (no Press-Enter), prints one-time code + `github.com/login/device` URL on stderr; the modal shows the code via the generic `verificationCode` plumbing (`useCredentialPanel` → `OAuthConnect`). `login_env()` strips `GH_TOKEN`/`GITHUB_TOKEN` (login aborts otherwise). Success gate = `gh auth status` exit 0, then best-effort **`gh auth setup-git`** (official bridge — the future git node needs zero auth code). gh binary: **project-local, pooch-driven** (temporal `_install.py` idiom) — pinned release under `package_dir("gh")`, system gh never consulted (auth state still shared: gh config paths are user-level). Palette group `vcs`. |+| **[GitHub Service](./docs-internal/github_service.md)** | GitHub CLI integration — `githubAction` (repo_clone / pr_create / pr_list / pr_merge / issue_create / issue_list + `custom` passthrough; AI tool `github`). **Strict Stripe pattern: the gh CLI owns its own auth** — no token stored/injected by OpenCompany, no auth pre-flight (gh's own error surfaces), marker OAuth row for the modal badge, fieldless catalogue entry. Login = spawned `gh auth login --hostname github.com --git-protocol https --web` — source-verified: headless takes the `isInteractive=false` branch (no Press-Enter), prints one-time code + `github.com/login/device` URL on stderr; the modal shows the code via the generic `verificationCode` plumbing (`useCredentialPanel` → `OAuthConnect`). `login_env()` strips `GH_TOKEN`/`GITHUB_TOKEN` (login aborts otherwise). Success gate = `gh auth status` exit 0, then best-effort **`gh auth setup-git`** (official bridge — the future git node needs zero auth code). gh binary: **project-local, pooch-driven** (temporal `_install.py` idiom) — pinned release under `package_dir("gh")`, system gh never consulted (auth state still shared: gh config paths are user-level). Palette group `vcs`. || **[CI/CD Pipeline](./docs-internal/ci_cd.md)** | GitHub Actions workflows, predeploy validation, release publishing, and composite setup action || **[Performance](./docs-internal/performance.md)** | Cold-start measurements (Application startup complete 2.90 s warm, first WS connect 8.29 s) + per-phase timeline + optimisation history (lazy LangChain imports, esbuild sidecar bundle, scoped `compileall`, PartySocket reconnect, TanStack Query auth bootstrap, `manualChunks`) + bottleneck inventory + reproduction commands + anti-patterns to never reintroduce. Pairs with the build-time pipeline doc below. |-| **[Release Build Pipeline](./docs-internal/release_build_pipeline.md)** | npm-distribution build pipeline: `tsgo` for type-check (5× faster than tsc), Vite `manualChunks` + `target: 'es2022'`, esbuild Node.js sidecar bundle (drops `tsx` interpreter cost), `python -O -m compileall` for project-source bytecode (excludes `.venv/`, `tests/`). Single source of truth for the bytecode-compile path list: `machina.commands.build.COMPILEALL_SOURCE_DIRS`. |+| **[Release Build Pipeline](./docs-internal/release_build_pipeline.md)** | npm-distribution build pipeline: `tsgo` for type-check (5× faster than tsc), Vite `manualChunks` + `target: 'es2022'`, esbuild Node.js sidecar bundle (drops `tsx` interpreter cost), `python -O -m compileall` for project-source bytecode (excludes `.venv/`, `tests/`). Single source of truth for the bytecode-compile path list: `cli.commands.build.COMPILEALL_SOURCE_DIRS`. || **[Workflow Schema](./docs-internal/workflow-schema.md)** | JSON schema for workflows, edge handle conventions, config node architecture || **[Execution Engine Design](./docs-internal/DESIGN.md)** | Architecture patterns, design standards, and implementation details for the workflow execution engine || **[Execution Roadmap](./docs-internal/ROADMAP.md)** | Implementation status, completed phases, and pending features |@@ -52,20 +52,20 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire| **[RLM Service](./docs-internal/rlm_service.md)** | Recursive Language Model agent with REPL-based execution (llm_query, rlm_query, FINAL) || **[Claude Code Agent](./docs-internal/claude_code_agent.md)** | Hub for the Claude Code agent — routes to architecture, interactive mode, CLI framework, canonical-patterns RFC, and the 5 CLI snapshot references. || **[CLI Agent Framework](./docs-internal/cli_agent_framework.md)** | Multi-provider CLI runtime (Claude Code / Codex / Gemini): `AICliService.run_batch`, per-task worktree isolation, FastMCP bridge, **memory bridge** (`--continue` for first run + intra-process stream-json multi-turn + `--resume <UUID>` for crash recovery, all on a stable `cwd=repo_root`; `node_parameters_updated` broadcast on every successful turn). **Plugin-folder layout** (post-cutover): all claude-specific code lives in [`server/nodes/agent/claude_code_agent/`](./server/nodes/agent/claude_code_agent/) — `_provider.py`, `_pool.py`, `_skills.py`, `_oauth.py`, `_handlers.py` — and self-registers via three `factory.py` registries (`register_provider` / `register_session_pool` / `register_skill_materialiser`) plus `register_ws_handlers`. The generic framework at `services/cli_agent/` imports nothing from `nodes/`. |-| **[Claude Code Interactive Mode](./docs-internal/claude_code_interactive_mode.md)** | The interactive-mode cutover: MachinaOs no longer uses `claude -p` headless. `ClaudeSessionPool` (keyed by `simpleMemory.node_id`) spawns `claude` as a plain subprocess with stdio pipes — **no PTY** — and drives it over the VSCode-extension protocol: `--output-format stream-json --input-format stream-json --verbose --ide`. User prompts written as JSON to `proc.stdin` (`{"type":"user","message":{"role":"user","content":"..."}}\n`); `system/init` / `assistant` / `result` / `system/compact_boundary` events stream back on `proc.stdout` (parsed by a background `stdout_reader_task` — the on-disk JSONL is persistence-only, not the runtime contract, because `result` events are stdout-only in stream-json mode). Cross-platform via plain pipes (the earlier PTY pattern was broken on Windows because pywinpty/ConPTY's emulated stdin never reached claude's Ink TUI keystroke handler). Stays in interactive billing — entrypoint `claude-vscode`, NOT `sdk-cli`. Multi-turn within one warm subprocess preserves the session UUID (verified end-to-end); cross-batch continuity via `--continue` (first run) or `--resume <UUID>` (crash recovery). Four typed CloudEvents (`claude.session.{spawned,cleared,terminated,usage}`) fire from the pool. `/compact` events forward to `CompactionService`. The non-pooled `AICliSession` path (one-shot prompt-in-argv runs) still uses PTY (out of scope for this refactor; works on POSIX). |-| **[CLI Agent Canonical Patterns RFC](./docs-internal/cli_agent_canonical_patterns_rfc.md)** | Audit of MachinaOs's `services/cli_agent` against the official Claude Code spec — six invariants (skills-as-files, MCP-only transport, `list_changed`, deferral, visible-tool filtering, native-session-continuity-via-stable-cwd) with current implementation status. |+| **[Claude Code Interactive Mode](./docs-internal/claude_code_interactive_mode.md)** | The interactive-mode cutover: OpenCompany no longer uses `claude -p` headless. `ClaudeSessionPool` (keyed by `simpleMemory.node_id`) spawns `claude` as a plain subprocess with stdio pipes — **no PTY** — and drives it over the VSCode-extension protocol: `--output-format stream-json --input-format stream-json --verbose --ide`. User prompts written as JSON to `proc.stdin` (`{"type":"user","message":{"role":"user","content":"..."}}\n`); `system/init` / `assistant` / `result` / `system/compact_boundary` events stream back on `proc.stdout` (parsed by a background `stdout_reader_task` — the on-disk JSONL is persistence-only, not the runtime contract, because `result` events are stdout-only in stream-json mode). Cross-platform via plain pipes (the earlier PTY pattern was broken on Windows because pywinpty/ConPTY's emulated stdin never reached claude's Ink TUI keystroke handler). Stays in interactive billing — entrypoint `claude-vscode`, NOT `sdk-cli`. Multi-turn within one warm subprocess preserves the session UUID (verified end-to-end); cross-batch continuity via `--continue` (first run) or `--resume <UUID>` (crash recovery). Four typed CloudEvents (`claude.session.{spawned,cleared,terminated,usage}`) fire from the pool. `/compact` events forward to `CompactionService`. The non-pooled `AICliSession` path (one-shot prompt-in-argv runs) still uses PTY (out of scope for this refactor; works on POSIX). |+| **[CLI Agent Canonical Patterns RFC](./docs-internal/cli_agent_canonical_patterns_rfc.md)** | Audit of OpenCompany's `services/cli_agent` against the official Claude Code spec — six invariants (skills-as-files, MCP-only transport, `list_changed`, deferral, visible-tool filtering, native-session-continuity-via-stable-cwd) with current implementation status. || **[Claude Code CLI Reference (snapshot)](./docs-internal/claude_code_cli_reference.md)** | Verbatim snapshot of [code.claude.com/docs/en/cli-reference](https://code.claude.com/docs/en/cli-reference) — every CLI subcommand + flag + system-prompt-flag matrix + the subset we emit from `nodes/agent/claude_code_agent/_provider.py`. Fetched 2026-05-11. || **[Claude Code Env Vars (snapshot)](./docs-internal/claude_code_env_vars_reference.md)** | Categorised [code.claude.com/docs/en/env-vars](https://code.claude.com/docs/en/env-vars) snapshot — auth, Bedrock/Vertex, model, bash, MCP, telemetry, session/debug, paths. Documents `CLAUDE_CONFIG_DIR`, `MAX_MCP_OUTPUT_TOKENS`, `ENABLE_TOOL_SEARCH` which we touch directly. |-| **[Claude Code Permission Modes (snapshot)](./docs-internal/claude_code_permission_modes_reference.md)** | Verbatim [code.claude.com/docs/en/permission-modes](https://code.claude.com/docs/en/permission-modes) — `default` / `acceptEdits` / `plan` / `auto` / `dontAsk` / `bypassPermissions` semantics, Shift+Tab cycle, protected paths. MachinaOs default is `acceptEdits`. |-| **[Claude Code Headless / Print Mode (snapshot)](./docs-internal/claude_code_headless_reference.md)** | Verbatim [code.claude.com/docs/en/headless](https://code.claude.com/docs/en/headless) — `claude -p`, `--output-format` (`text` / `json` / `stream-json`), `--input-format`, `--bare`, stream-json event schema (`system/init`, `system/api_retry`, `system/plugin_install`). MachinaOs no longer uses `-p`; the pool path emits `--output-format stream-json --input-format stream-json --verbose --ide` over stdio pipes (interactive billing). The event schema is the contract `nodes/agent/claude_code_agent/_pool.py` parses off `proc.stdout`. |-| **[Claude Code Skills (snapshot)](./docs-internal/claude_code_skills_reference.md)** | Verbatim [code.claude.com/docs/en/skills](https://code.claude.com/docs/en/skills) — `SKILL.md` frontmatter spec, discovery paths, content lifecycle, `context: fork`, dynamic context injection via `` !`<command>` ``. The spec MachinaOs materialises connected skills against in `_pre_spawn`. |+| **[Claude Code Permission Modes (snapshot)](./docs-internal/claude_code_permission_modes_reference.md)** | Verbatim [code.claude.com/docs/en/permission-modes](https://code.claude.com/docs/en/permission-modes) — `default` / `acceptEdits` / `plan` / `auto` / `dontAsk` / `bypassPermissions` semantics, Shift+Tab cycle, protected paths. OpenCompany default is `acceptEdits`. |+| **[Claude Code Headless / Print Mode (snapshot)](./docs-internal/claude_code_headless_reference.md)** | Verbatim [code.claude.com/docs/en/headless](https://code.claude.com/docs/en/headless) — `claude -p`, `--output-format` (`text` / `json` / `stream-json`), `--input-format`, `--bare`, stream-json event schema (`system/init`, `system/api_retry`, `system/plugin_install`). OpenCompany no longer uses `-p`; the pool path emits `--output-format stream-json --input-format stream-json --verbose --ide` over stdio pipes (interactive billing). The event schema is the contract `nodes/agent/claude_code_agent/_pool.py` parses off `proc.stdout`. |+| **[Claude Code Skills (snapshot)](./docs-internal/claude_code_skills_reference.md)** | Verbatim [code.claude.com/docs/en/skills](https://code.claude.com/docs/en/skills) — `SKILL.md` frontmatter spec, discovery paths, content lifecycle, `context: fork`, dynamic context injection via `` !`<command>` ``. The spec OpenCompany materialises connected skills against in `_pre_spawn`. || **[Autonomous Agent Creation](./docs-internal/autonomous_agent_creation.md)** | Creating autonomous agents with Code Mode patterns and agentic loops || **[Polyglot Server](../polyglot-server/ARCHITECTURE.md)** | Plugin registry microservice with MCP gateway (optional integration) || **[Authentication](./docs-internal/authentication.md)** | JWT/cookie auth: toggle, single/multi mode, backend + frontend, middleware, startup retry. || **[Credentials Panel](./docs-internal/credentials_panel.md)** | CredentialsModal.tsx logic-flow reference (state taxonomy, per-provider panels, invariants). || **[Memory Lifecycle](./docs-internal/memory_lifecycle.md)** | Canonical conversation-memory lifecycle: load/append/trim/archive/clear/resume across all agents. || **[Node Parameter Panel](./docs-internal/node_panels.md)** | Three-section node config UI (Input / Parameters / Output) logic-flow reference. |-| **[Deployment (legacy reference)](./docs-internal/deployment_legacy.md)** | machina deploy CLI summary + the historical Docker Compose topology. |+| **[Deployment (legacy reference)](./docs-internal/deployment_legacy.md)** | `company deploy` CLI summary + the historical Docker Compose topology. || **[GCP VM Deploy Runbook](./docs-internal/gcp_vm_deploy_runbook.md)** | Manual gcloud + Cloudflare runbook for deploying the released npm package (non-Terraform path). |## Design Principles & Standards@@ -179,7 +179,7 @@ server/core/├── cache.py # CacheService with Redis/SQLite/Memory fallback├── config.py # Application configuration├── logging.py # Logging configuration-├── paths.py # SSOT for on-disk locations (generic helpers only): machina_root()/data_path()/workspaces_dir()/workspace_dir()/daemons_dir() + packages_dir()/package_dir(name) all under ~/.machina/ (= DATA_DIR); packages/ holds the single shared npm tree + stripe/ + temporal/ binary subdirs; example_workflows_dir() = <repo>/.machina/workflows/ (shipped seeds, NOT under DATA_DIR). Plugin-specific subpaths composed inline at the call site, never added here.+├── paths.py # SSOT for on-disk locations (generic helpers only): opencompany_root()/data_path()/workspaces_dir()/workspace_dir()/daemons_dir() + packages_dir()/package_dir(name) all under ~/.opencompany/ (= DATA_DIR); packages/ holds the single shared npm tree + stripe/ + temporal/ binary subdirs; example_workflows_dir() = <repo>/.opencompany/workflows/ (shipped seeds, NOT under DATA_DIR). Plugin-specific subpaths composed inline at the call site, never added here.├── encryption.py # Fernet encryption with PBKDF2 key derivation├── credentials_database.py # Async SQLite for encrypted API keys and OAuth tokens└── credential_backends.py # Multi-backend abstraction (Fernet, Keyring, AWS)@@ -205,7 +205,7 @@ server/nodejs/ # Persistent Node.js server for JS/TS execution```### Polyglot Server Integration (Optional)-MachinaOs can optionally integrate with the sibling **polyglot-server** repo (a plugin-registry microservice exposing REST + MCP + WebSocket). NOTE: the MachinaOs-side client/handler (`polyglot_client.py`, `handlers/polyglot.py`) are not currently present in the tree — this is a possible future integration, not wired. See [Polyglot Server](../polyglot-server/ARCHITECTURE.md).+OpenCompany can optionally integrate with the sibling **polyglot-server** repo (a plugin-registry microservice exposing REST + MCP + WebSocket). NOTE: the OpenCompany-side client/handler (`polyglot_client.py`, `handlers/polyglot.py`) are not currently present in the tree — this is a possible future integration, not wired. See [Polyglot Server](../polyglot-server/ARCHITECTURE.md).### Node.js Code ExecutorPersistent Node.js server for JavaScript/TypeScript code execution, replacing subprocess spawning per execution.@@ -684,18 +684,18 @@ Node groups (palette categories): agent, model, skill, tool, trigger, workflow,### Temporal Distributed Execution-Workflows execute via Temporal for durability and horizontal scaling, gated by `TEMPORAL_ENABLED`. Three dispatch paths exist — legacy single `execute_node_activity` (fallback), per-type `node.{type}.v{version}` activities (F4.A, `TEMPORAL_PER_TYPE_DISPATCH=true`), and Agent-as-child-workflow (F4.B, `TEMPORAL_AGENT_WORKFLOW_ENABLED=true`) — with `rlm_agent`/`claude_code_agent` always bypassing AgentWorkflow. **Per-queue activity routing is production-default (Wave 16)**: a `TemporalWorkerPool` runs one activity-only worker per plugin-declared `cls.task_queue` (ai-heavy / browser / code-exec / rest-api / messaging / ...) with per-queue concurrency + rate limits + resource-based tuning for ai-heavy/browser; rollback via `TEMPORAL_WORKER_POOL_ENABLED=false`. Resilience knobs (Waves 17-18): `DEPLOYMENT_MODE` (local halves concurrency; sizes the sticky cache), one-shot retry on `agent.execute_llm_step.v1` (LLM calls are not idempotent), observability interceptors (`activity_retry` WARN on re-dispatch), 30s periodic heartbeat during long activity bodies, cron `catchup_window=24h`, poller autoscaling. Execution routing falls back Temporal → Redis-parallel → sequential; the Temporal dev server + embedded worker are managed in-process under `server/services/temporal/` (pooch-downloaded CLI, single `temporal server start-dev` process, gRPC 7233 + Web UI 8080, SQLite at `~/.machina/temporal.db`). Full architecture, dispatch matrix, per-node + agent-loop lifecycle, the 7 F4.B `agent.*.v1` activities, heartbeat semantics, delegation input contract, resumption toggle (`TEMPORAL_TERMINATE_RUNNING_ON_STARTUP`), the worker tuning recipe, and all `.env` tunables live in [docs-internal/TEMPORAL_ARCHITECTURE.md](./docs-internal/TEMPORAL_ARCHITECTURE.md).+Workflows execute via Temporal for durability and horizontal scaling, gated by `TEMPORAL_ENABLED`. Three dispatch paths exist — legacy single `execute_node_activity` (fallback), per-type `node.{type}.v{version}` activities (F4.A, `TEMPORAL_PER_TYPE_DISPATCH=true`), and Agent-as-child-workflow (F4.B, `TEMPORAL_AGENT_WORKFLOW_ENABLED=true`) — with `rlm_agent`/`claude_code_agent` always bypassing AgentWorkflow. **Per-queue activity routing is production-default (Wave 16)**: a `TemporalWorkerPool` runs one activity-only worker per plugin-declared `cls.task_queue` (ai-heavy / browser / code-exec / rest-api / messaging / ...) with per-queue concurrency + rate limits + resource-based tuning for ai-heavy/browser; rollback via `TEMPORAL_WORKER_POOL_ENABLED=false`. Resilience knobs (Waves 17-18): `DEPLOYMENT_MODE` (local halves concurrency; sizes the sticky cache), one-shot retry on `agent.execute_llm_step.v1` (LLM calls are not idempotent), observability interceptors (`activity_retry` WARN on re-dispatch), 30s periodic heartbeat during long activity bodies, cron `catchup_window=24h`, poller autoscaling. Execution routing falls back Temporal → Redis-parallel → sequential; the Temporal dev server + embedded worker are managed in-process under `server/services/temporal/` (pooch-downloaded CLI, single `temporal server start-dev` process, gRPC 7233 + Web UI 8080, SQLite at `~/.opencompany/temporal.db`). Full architecture, dispatch matrix, per-node + agent-loop lifecycle, the 7 F4.B `agent.*.v1` activities, heartbeat semantics, delegation input contract, resumption toggle (`TEMPORAL_TERMINATE_RUNNING_ON_STARTUP`), the worker tuning recipe, and all `.env` tunables live in [docs-internal/TEMPORAL_ARCHITECTURE.md](./docs-internal/TEMPORAL_ARCHITECTURE.md).## Development Commands-### CLI Commands (npx or global install)+### CLI Commands (after the global install)```bash-npx machina start # Start all services-npx machina stop # Stop all services-npx machina build # Build for production-npx machina clean # Clean build artifacts-npx machina docker:up # Start with Docker-npx machina help # Show all commands+company start # Start all services+company stop # Stop all services+company build # Build for production+company clean # Clean build artifacts+company docker:up # Start with Docker+company help # Show all commands```### npm Scripts@@ -998,11 +998,11 @@ Console logs are persisted to SQLite database and loaded on page refresh.### Per-Workflow Workspace DirectoryEach workflow execution gets a persistent workspace directory where nodes save output files and AI agents (especially Deep Agent) access them via filesystem tools.-**Directory**: `~/.machina/workspaces/<workflow_slug>/` (Wave 14 — keyed by the human-readable slug, not the UUID; see "Workflow naming" below).+**Directory**: `~/.opencompany/workspaces/<workflow_slug>/` (Wave 14 — keyed by the human-readable slug, not the UUID; see "Workflow naming" below).**Configuration** (`server/core/config.py`):```python-workspace_base_dir: str = Field(default="workspaces", env="WORKSPACE_BASE_DIR") # resolved under DATA_DIR -> ~/.machina/workspaces/+workspace_base_dir: str = Field(default="workspaces", env="WORKSPACE_BASE_DIR") # resolved under DATA_DIR -> ~/.opencompany/workspaces/```**How it works:**@@ -1029,7 +1029,7 @@ The workflow record carries three identity fields with strict separation:|---|---|---|---|| `Workflow.id` | opaque 32-hex UUID (`uuid.uuid4().hex`) | yes — never changes on rename | FK target (`Execution.workflow_id`), `EventWorkflowId` Search Attribute in Temporal Visibility, `WorkflowEvent.workflow_id` CloudEvents extension, `log_context(workflow_id=...)`, Redis cache keys, `DeploymentManager._deployments` dict key, frontend `useAppStore.currentWorkflow.id` || `Workflow.name` | free-form display ("AI Assistant") | mutable | sidebar, parameter panel, exported JSON |-| `Workflow.slug` | `<Sanitized_Name>_<N>` (`AI_Assistant_1`) | mutable, recomputed on rename | `~/.machina/workspaces/<slug>/`, Temporal workflow IDs (visible in Temporal Web UI), cron Schedule IDs, export filenames |+| `Workflow.slug` | `<Sanitized_Name>_<N>` (`AI_Assistant_1`) | mutable, recomputed on rename | `~/.opencompany/workspaces/<slug>/`, Temporal workflow IDs (visible in Temporal Web UI), cron Schedule IDs, export filenames |Single source of truth: [`server/services/workflow_naming.py`](./server/services/workflow_naming.py) — `slugify_name` (via `python-slugify` for Unicode transliteration, emoji strip, case preservation, length cap), `next_available_slug(name, database, *, exclude_id=None)` (fill-gap counter; pass `exclude_id=workflow_id` on rename so the row doesn't bump itself), `new_workflow_id()` (bare hex UUID), `node_label_slug(node)` (sandbox-safe stdlib slug from `node.data.label` or `node.type`, used inside Temporal `@workflow.defn` modules where `python-slugify` can't import safely).@@ -1154,27 +1154,33 @@ python test_websocket.py## Production Deployment-### Self-Deploy CLI (`machina deploy`) — current path-One command provisions a login-gated MachinaOs VM on a cloud provider. Two stages: the+### Self-Deploy CLI (`company deploy`) — current path+One command provisions a login-gated OpenCompany VM on a cloud provider. Two stages: theoperator's **cloud CLI** (gcloud; aws planned) handles auth + project/region/zone resolution +ADC verification + API enablement, then **Terraform** (`cli/terraform/gcp/`) owns all resources —-VM (always named `machinaos`), firewall, artifact bucket (local `npm pack` source), service+VM (new deployments use the `opencompany` resource id), firewall, artifact bucket (local `npm pack` source), serviceaccount, and a cloud-init startup script that installs Node 22 + uv + the package and runs-`machina serve` under systemd. Login gate = built-in auth (`VITE_AUTH_ENABLED=true`,+`company serve` under systemd. Login gate = built-in auth (`VITE_AUTH_ENABLED=true`,`AUTH_MODE=single`) with the owner credential generated at deploy time and seeded on first boot.```bash-machina deploy up --provider gcp --owner-email [email protected] # provision + install + print URL/creds-machina deploy status # URL + /health-machina deploy destroy # terraform destroy + clear state+company deploy up --provider gcp --owner-email [email protected] # provision + install + print URL/creds+company deploy status # URL + /health+company deploy destroy # terraform destroy + clear state```Key files: `cli/commands/serve.py` (single-port runtime: uvicorn fronts API + WS + built SPA, plusthe node sidecar), `cli/commands/deploy/` (verbs, secrets, Terraform driver, provider CLI adapters),`cli/terraform/gcp/` (HCL module + `startup.sh.tftpl`). Deployment state lives at-`<user-data>/deploy/machinaos/` (preserved by `machina clean` — see `_MACHINA_KEEP`); only-`machina deploy destroy` removes it. The deploy code is fully delinked from `machina build` /-`machina clean` (lazy verb stubs in `cli/cli.py`; nothing in the build pipeline imports it).+`<user-data>/deploy/opencompany/` (preserved by `company clean` — see `_OPENCOMPANY_KEEP`); only+`company deploy destroy` removes it. The deploy code is fully delinked from `company build` /+`company clean` (lazy verb stubs in `cli/cli.py`; nothing in the build pipeline imports it).+For upgrades, `_state.py` also discovers pre-rebrand `deploy/machinaos/` state+under the configured root, `~/.machina`, or `<repo>/.machina`. Such deployments+retain their durable `machinaos` cloud/systemd id; changing it would cause+Terraform replacement or strand live state. Fresh deployments use `opencompany`.+The `machina` executable remains only as a deprecated legacy alias; use `company`+for all new commands and automation.The legacy `deploy.sh` (docker-compose images over SCP to a GCE box) was removed. The DockerCompose notes below are retained for reference for the historical container topology.@@ -1198,11 +1204,11 @@ API keys and OAuth tokens live in a separate encrypted database (`credentials.db## Example Workflows### Overview-Example workflows are pre-built workflow templates that auto-load on first use. They provide users with starting points to explore the platform's capabilities. Seeds live as JSON files at **`<repo>/.machina/workflows/`** — the only git-tracked content under `<repo>/.machina/` (everything else there is `.gitignore`d as runtime state). The path is also preserved by `machina clean` (see `_MACHINA_KEEP` in `cli/commands/clean.py`).+Example workflows are pre-built workflow templates that auto-load on first use. They provide users with starting points to explore the platform's capabilities. Seeds live as JSON files at **`<repo>/.opencompany/workflows/`** — the only git-tracked content under `<repo>/.opencompany/` (everything else there is `.gitignore`d as runtime state). The path is also preserved by `company clean` (see `_OPENCOMPANY_KEEP` in `cli/commands/clean.py`).### Architecture```-<repo>/.machina/workflows/ # Shipped seed JSONs (git-tracked)+<repo>/.opencompany/workflows/ # Shipped seed JSONs (git-tracked)├── AI Assistant_example_workflow-*.json├── AI Employee_example_workflow-*.json└── Claude Assistant_example_workflow-*.json@@ -1217,7 +1223,7 @@ server/routers/database.py # Auto-load logic in get_all_workflows### How It Works1. **First Fetch Detection**: When `get_all_workflows` API is called, it checks `UserSettings.examples_loaded`-2. **Auto-Import**: If `examples_loaded=false`, calls `example_loader.get_example_workflows()` which reads from `core.paths.example_workflows_dir()` = `<repo>/.machina/workflows/`+2. **Auto-Import**: If `examples_loaded=false`, calls `example_loader.get_example_workflows()` which reads from `core.paths.example_workflows_dir()` = `<repo>/.opencompany/workflows/`3. **Mark Complete**: Sets `examples_loaded=true` to prevent re-import on subsequent fetches4. **Anonymous Support**: Uses `user_id="default"` when `VITE_AUTH_ENABLED=false`@@ -1258,8 +1264,8 @@ Example workflows use the same format as UI exports:### Key Files| File | Description ||------|-------------|-| `.machina/workflows/*.json` | Shipped seed workflow JSONs (git-tracked) |-| `server/core/paths.py` | `example_workflows_dir()` → `<repo>/.machina/workflows/` (fixed path, NOT under `DATA_DIR`) |+| `.opencompany/workflows/*.json` | Shipped seed workflow JSONs (git-tracked) |+| `server/core/paths.py` | `example_workflows_dir()` → `<repo>/.opencompany/workflows/` (fixed path, NOT under `DATA_DIR`) || `server/services/example_loader.py` | `get_example_workflows()`, `import_examples_for_user()` || `server/models/database.py` | `UserSettings.examples_loaded` field || `server/core/database.py` | Migration adds `examples_loaded` column |@@ -1297,9 +1303,9 @@ if not settings or not settings.get("examples_loaded", False):### Adding Custom Examples1. Export a workflow from the UI (File > Export)-2. Copy the JSON file to `<repo>/.machina/workflows/` (git-tracked seed location)+2. Copy the JSON file to `<repo>/.opencompany/workflows/` (git-tracked seed location)3. Edit the `id` and `name` fields as needed-4. Delete `~/.machina/workflow.db` (or set `examples_loaded=false` in DB)+4. Delete `~/.opencompany/workflow.db` (or set `examples_loaded=false` in DB)5. Restart server - examples auto-load on first workflow list fetch### Database Migration@@ -2731,7 +2737,7 @@ This function:- **Node Data Architecture**: `node.data` only stores `label` (display name). All parameters are stored in the database via `save_node_parameters` WebSocket handler. This prevents parameter bloat in workflow JSON exports and keeps React Flow state lightweight. `useDragAndDrop.ts` saves default parameters to DB on drop, not to `node.data`.- **Workflow Export/Import with Parameters**: Exported workflow JSON includes a `nodeParameters` field containing all node configuration (provider, model, prompt, skillsConfig, etc.) fetched from the database at export time. On import, embedded `nodeParameters` are saved back to the database. `sanitizeNodes()` in `workflowExport.ts` still strips `node.data` to UI-only fields (`label`, `disabled`, `condition`). A `parameterSanitizer.ts` utility exists for credential stripping but is currently disabled (pass-through). Old exports without `nodeParameters` import cleanly (backward compatible). Key files: `client/src/utils/workflowExport.ts`, `client/src/utils/parameterSanitizer.ts`, `client/src/Dashboard.tsx` (export/import handlers), `server/services/example_loader.py`.- **Skill System Architecture**: Skills organized in `server/skills/<folder>/` subfolders. Each folder appears in Master Skill dropdown. DB is source of truth for skill instructions (seeded from SKILL.md on first load). Icon resolution mirrors `BaseNode._metadata_dict`: per-plugin `<plugin>/icon.svg` (served as `/api/schemas/nodes/<type>/icon`) → `visuals.json` (emoji / `lobehub:<brand>`); color: per-plugin `<plugin>/meta.json` → `visuals.json`. Lives in [`skill_loader.py::_parse_skill_metadata`](./server/services/skill_loader.py). Native DOM keydown handler prevents React Flow from intercepting Ctrl shortcuts in skill editor. **Mutation broadcasts use the CloudEvents-typed `skill_lifecycle` wire key** with stages `created` / `updated` / `deleted` / `content_saved` — see "Plugin-folder location for plugin-specific CloudEvents factories" below.-- **Example Workflows**: Auto-load example workflow seeds from `<repo>/.machina/workflows/` on first use (git-tracked; the only non-ignored content under `<repo>/.machina/`). Path resolved by `core.paths.example_workflows_dir()` — fixed, NOT under `DATA_DIR`, preserved by `machina clean` via `_MACHINA_KEEP`. Uses `UserSettings.examples_loaded` flag; supports anonymous users (`user_id="default"`); embedded `nodeParameters` saved to DB on import.+- **Example Workflows**: Auto-load example workflow seeds from `<repo>/.opencompany/workflows/` on first use (git-tracked; the only non-ignored content under `<repo>/.opencompany/`). Path resolved by `core.paths.example_workflows_dir()` — fixed, NOT under `DATA_DIR`, preserved by `company clean` via `_OPENCOMPANY_KEEP`. Uses `UserSettings.examples_loaded` flag; supports anonymous users (`user_id="default"`); embedded `nodeParameters` saved to DB on import.- **Onboarding Service**: 5-step welcome wizard (Welcome, Concepts, API Keys, Canvas Tour, Get Started) using shadcn primitives + lucide icons. Database-backed via `UserSettings.onboarding_completed` + `onboarding_step`. Existing users auto-skip (migration marks `examples_loaded=1` as completed). Replayable from Settings "Help" section. No new WebSocket handlers needed. See [Onboarding Service](./docs-internal/onboarding.md) for details.- **Node.js Code Executor**: Persistent Node.js server (Express + tsx) at port 3020 for JavaScript/TypeScript execution, replacing subprocess spawning per execution. The code executor plugins under `server/nodes/code/` call `NodeJSClient` which makes HTTP requests to the Node.js server. All config via environment variables (`NODEJS_EXECUTOR_URL`, `NODEJS_EXECUTOR_PORT`, etc.).- **writeTodos Tool Node**: Dedicated AI tool for task planning connecting to any agent's `input-tools` handle. `TodoService` singleton (`server/services/todo_service.py`) stores JSON-based per-session todo state keyed by workflow_id. Handler broadcasts `phase: "todo_update"` via WebSocket on each update for real-time UI; `formatTodoOutput()` in `OutputDisplayPanel.tsx` renders the result as a checklist with `[ ]` / `[~]` / `[x]` icons. Schema uses `TodoItem`/`TodoStatus` Pydantic enum. Skill at `server/skills/assistant/write-todos-skill/SKILL.md` teaches the plan-work-update loop.@@ -2758,20 +2764,20 @@ This function:- **Local-LLM provider routing + per-model context**: Ollama and LM Studio are first-class providers (9 in total for agents now: cloud 7 + 2 local). Provider detection is driven by `detect_ai_provider` in `server/constants.py` plus the `provider` Literal in `nodes/agent/{ai_agent,chat_agent,_specialized}.py` — both MUST list `ollama` / `lmstudio` or chat-model nodes / agent dropdowns silently fall through to `'openai'` and `execute_chat` calls api.openai.com with the placeholder key. The validator at `nodes/model/_local_validator.py` probes via the official SDKs (`ollama.AsyncClient.ps()` for typed `ProcessResponse.Model`, `lmstudio.AsyncClient.llm.list_loaded()` for typed `LlmInstanceInfo`) — reads only typed fields (`context_length`, `max_context_length`, `vision`, `trained_for_tool_use`, `architecture`, `params_string`, `format`, plus Ollama's `details.{family,parameter_size,quantization_level}`). No regex, no Modelfile-parameters parsing, no `/api/show` modelinfo dict-key hunting. Per-model params persist in `EncryptedAPIKey.models["model_params"]` (via `save_api_key(model_params=...)`) AND in `model_registry.json` via `register_local_model()` — sync `get_context_length()` / `get_max_output_tokens()` find real values without async DB lookups, and entries survive process restart. `is_model_valid_for_provider` returns `True` for open-world providers (`openrouter` / `ollama` / `lmstudio`) so local model names like `qwen/qwen3.6-27b` aren't rejected by the cloud-style pattern check. Runtime path uses `OpenAIProvider(base_url={user_proxy_url}, api_key="ollama")` — traffic stays on `localhost`.- **Typed openai exception → NodeUserError**: `execute_chat` / `execute_agent` / `execute_chat_agent` in `services/ai.py` each have **one** `except openai.OpenAIError as e` block that re-raises `NodeUserError(str(e)) from e`. The openai SDK's typed exception hierarchy — `BadRequestError` (400, e.g. `n_keep > n_ctx` overflow), `AuthenticationError` (401), `PermissionDeniedError` (403), `NotFoundError` (404), `RateLimitError` (429), `APIConnectionError` (server unreachable), `APITimeoutError` — IS the user-correctable contract. `BaseNode.execute()` catches `NodeUserError` and logs at WARN with one line, no stacktrace. The plain `except Exception` block keeps the full-traceback path for real bugs. Zero string matching, zero flag plumbing, zero classification helpers. The `frontend toast` reads `response.message ?? response.error` so both clean envelopes (validator-style) and uncaught-error envelopes (handler-wrapper-style) surface a useful message.- **Plugin extraction (Wave 11.I)**: every plugin's WS handlers, OAuth client, FastAPI router, and lifecycle service live entirely under `nodes/<plugin>/`. Eight plugin domains migrated this round (whatsapp / twitter / google-workspace / android / browser / email / code / credential-validation-scaffold for maps+apify+ollama+lmstudio) follow the telegram pattern. `routers/websocket.py` shrunk from ~3,785 to ~2,977 LOC (-808). Three plugin routers (`routers/twitter.py`, `routers/google.py`, `routers/android.py`) moved into `nodes/<plugin>/_router.py` and mount via the plugin-router loop in `main.py`; the explicit `app.include_router(<plugin>.router)` calls and `from routers import <plugin>` imports in `main.py` are gone. **`register_router(router, name=...)` is the new sibling helper to `register_ws_handlers` (same file: `services/ws_handler_registry.py`)** — six generic registries total now (ws_handlers, router, filter_builder, trigger_precheck, service_refresh, output_schema). **`Credential.validate(data) -> dict` + `Credential._probe(api_key) -> ProbeResult` is the new shared validator scaffold** in `services/plugin/credential.py` — replaces the per-router `_SPECIAL_PROVIDER_VALIDATORS` dict; one `_LLMApiKey._probe` method serves all 9 cloud LLM providers, dedicated `_probe` overrides handle Maps + Apify, `_LocalLLM.validate` overrides for Ollama / LM Studio's 2-storage edge case. **`tests/test_plugin_self_containment.py` locks the contract** with 7 invariant classes (forbidden-imports / no-router-outside-nodes / per-plugin self-registration / registry-API sanity / stale-paths-absent / main.py-does-not-mount / WS_HANDLERS-non-empty); same `inspect.getsource` introspection style as `test_credential_broadcasts.py`. Wire format unchanged — frontend WS message-type strings (`whatsapp_status`, `twitter_oauth_login`, `google_oauth_status`, `android_relay_connect`, etc.) and HTTP route paths (`/api/twitter/callback`, `/api/google/callback`, `/api/android/*`) are byte-identical post-migration.-- **Typed CloudEvents factory pattern for new broadcasts** (b6aecd3): every new server→FE broadcast follows the recipe locked by `broadcast_credential_event` and `broadcast_agent_progress`. (1) Add a typed classmethod on `WorkflowEvent` (`services/events/envelope.py`) — convention: `source = "machinaos://services/<area>"`, `type = "<area>.<event>"`, `subject = <primary entity id>`, `workflow_id` extension if scoped. (2) Add a `broadcaster.broadcast_<area>_<event>(...)` method on `StatusBroadcaster` that builds the envelope and emits via `broadcast({type: "<wire_key>", data: event.model_dump(mode="json")})`. Wire key is typically the event topic with dots → underscores (`agent.progress` → `agent_progress`). (3) FE handler in `WebSocketContext.tsx` switch routes the wire key, parses `data` as `WorkflowEvent<TInner>`, writes the inner payload to whichever store consumes it (`nodeStatusStore` for per-node state, etc.). (4) Add a parity test in `tests/test_status_broadcasts.py` via `inspect.getsource` introspection. **Forbidden**: emitting raw-dict payloads through `update_node_status` for any new event type — that channel is allowlisted via `_LEGACY_RAW_DICT_CALLSITES` and the allowlist is closed.+- **Typed CloudEvents factory pattern for new broadcasts** (b6aecd3): every new server→FE broadcast follows the recipe locked by `broadcast_credential_event` and `broadcast_agent_progress`. (1) Add a typed classmethod on `WorkflowEvent` (`services/events/envelope.py`) — convention: `source = "opencompany://services/<area>"`, `type = "<area>.<event>"`, `subject = <primary entity id>`, `workflow_id` extension if scoped. (2) Add a `broadcaster.broadcast_<area>_<event>(...)` method on `StatusBroadcaster` that builds the envelope and emits via `broadcast({type: "<wire_key>", data: event.model_dump(mode="json")})`. Wire key is typically the event topic with dots → underscores (`agent.progress` → `agent_progress`). (3) FE handler in `WebSocketContext.tsx` switch routes the wire key, parses `data` as `WorkflowEvent<TInner>`, writes the inner payload to whichever store consumes it (`nodeStatusStore` for per-node state, etc.). (4) Add a parity test in `tests/test_status_broadcasts.py` via `inspect.getsource` introspection. **Forbidden**: emitting raw-dict payloads through `update_node_status` for any new event type — that channel is allowlisted via `_LEGACY_RAW_DICT_CALLSITES` and the allowlist is closed.- **Plugin-folder location for plugin-specific CloudEvents factories** (RFC §6.4): when a typed event is owned by one plugin (telegram, whatsapp, android, email, google, master_skill, agent_builder, webhook_trigger, chat_trigger, agent), the factory + `broadcast_<event>` wrapper live in [`server/nodes/<plugin>/_events.py`](./server/nodes), NOT on `WorkflowEvent` / `StatusBroadcaster` directly. Telegram's [`_events.py`](./server/nodes/telegram/_events.py) is the canonical template — `broadcast_telegram_status` constructs the envelope via a plain factory function and calls `get_status_broadcaster().broadcast(...)` itself. Latest example: [`server/nodes/skill/master_skill/_events.py`](./server/nodes/skill/master_skill/_events.py) (`broadcast_skill_lifecycle("created" \| "updated" \| "deleted" \| "content_saved", name=..., **data_extra)`) — replaces four raw-dict broadcasts in `handle_create_user_skill` / `handle_update_user_skill` / `handle_delete_user_skill` / `handle_save_skill_content` (the last one was previously silent). FE routes wire key `skill_lifecycle` to invalidate `userSkills` + `folderSkills` queries and drop the `skillContent` cache on delete + content_saved so the Master Skill panel refreshes live across every connected client. Cross-cutting events (credential, workflow_lifecycle, agent_progress, node_parameters_updated) keep their `WorkflowEvent` classmethods + `StatusBroadcaster` wrappers — only plugin-scoped events move to the plugin folder.- **Operator-metadata fields in credential panels** (f746ddf): when a credential panel needs a non-credential follow-up field (e.g. Telegram bot token + owner chat id), declare it as a second entry in the provider's `fields` array in `server/config/credential_providers.json`. The first field stays the validate/connect target; subsequent fields render below as plain text inputs via `SecondaryFieldRow` in `ApiKeyPanel.tsx` (shadcn `Input` + `Label` + `<ActionButton intent="save">`). Each field carries an optional `help` slot (`FieldDef.help` / `ServerFieldDef.help`) for always-visible explanatory text under the input. Save writes via `panel.actions.save(field.key, value)` → `auth_service.store_api_key` (which is permissive about provider string). The credential class must declare the new key in `extra_fields` (`Credential` subclass attribute) so the storage layer accepts it. Reference: `telegram_owner_chat_id` field.- **Telegram owner detection — three layers** (f746ddf): the bot owner is captured by THREE independent paths so the realistic setup flows all converge to a working state. (1) **Explicit field**: secondary `FieldDef` in the credentials modal lets the user paste their Telegram user ID directly (recommended; works without DM'ing the bot). (2) **Pre-poll peek** in `connect()` via `_capture_owner_from_pending_updates()` — calls `bot.get_updates(timeout=0)` BEFORE `start_polling(drop_pending_updates=True)` discards the queue, scans for any historical private DM, captures + persists atomically. (3) **Atomic write-through in `_on_message_received`** — persists FIRST, sets in-memory ONLY on success. Invariant: "in-memory has owner ⇒ DB has owner" so a process restart can re-capture cleanly. Failure logged at `ERROR` with `exc_info=True` (was `WARNING` previously, masking persist failures). The lazy fallback in `telegram_send.py` (read DB → `service.set_owner`) sits on top of all three.-- **Supervisor Job Object loud-failure (cli/tree.py + cli/supervisor.py)** (8a64eb9): the Windows process-tree mechanism depends entirely on a Job Object with `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE` (no fallback — `start_new_session` is POSIX-only). `pywin32>=308` is a hard supervisor dependency on Windows; the declaration in the root `pyproject.toml` (where `machinaos-cli` lives — `cli/pyproject.toml` was removed as a stale duplicate) carries an inline comment so future maintainers don't drop it. `_JobObject.__init__` splits failures into explicit `ImportError` (with reinstall command) and `Exception` (with `repr`) branches — both write to `stderr` instead of swallowing. `_JobObject.add()` verifies enrollment via `win32job.IsProcessInJob(handle, self._handle)` after assignment; on mismatch it queries `IsProcessInJob(handle, None)` so the warning explicitly names the wrapper-job hypothesis (npm / pnpm / conhost wrappers occasionally place us in their own non-nesting Job). `supervisor._spawn_once` checks `add_to_job` return value and emits a yellow `WARN: pid=N not enrolled in Job Object` per child if False. Without these guards, a stale pywin32 install or a wrapping Job Object silently leaks orphan Python processes on every Ctrl-C and they accumulate to the point of holding SQLite locks that block subsequent backend startup.+- **Supervisor Job Object loud-failure (cli/tree.py + cli/supervisor.py)** (8a64eb9): the Windows process-tree mechanism depends entirely on a Job Object with `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE` (no fallback — `start_new_session` is POSIX-only). `pywin32>=308` is a hard supervisor dependency on Windows; the declaration in the root `pyproject.toml` (where `opencompany-cli` lives — `cli/pyproject.toml` was removed as a stale duplicate) carries an inline comment so future maintainers don't drop it. `_JobObject.__init__` splits failures into explicit `ImportError` (with reinstall command) and `Exception` (with `repr`) branches — both write to `stderr` instead of swallowing. `_JobObject.add()` verifies enrollment via `win32job.IsProcessInJob(handle, self._handle)` after assignment; on mismatch it queries `IsProcessInJob(handle, None)` so the warning explicitly names the wrapper-job hypothesis (npm / pnpm / conhost wrappers occasionally place us in their own non-nesting Job). `supervisor._spawn_once` checks `add_to_job` return value and emits a yellow `WARN: pid=N not enrolled in Job Object` per child if False. Without these guards, a stale pywin32 install or a wrapping Job Object silently leaks orphan Python processes on every Ctrl-C and they accumulate to the point of holding SQLite locks that block subsequent backend startup.- **Credentials envelope-shape invariant** (dc94cde): the `useCredentialPanel` query stores `{values: CredentialFormValues, hadStored: boolean}` (an envelope, NOT a flat dict). The earlier `writeValues` called `setQueryData<CredentialFormValues>` with a spread `(prev) => ({...prev, [key]: value})`, which at runtime merged the typed character at the envelope level next to `values` and `hadStored` instead of inside `.values` — the input selector `panel.values[field.key]` re-rendered with the original (server) value on every keystroke and the input felt frozen. Fix: `writeValues` now preserves the envelope shape and updates only the inner `values` dict; `hadStored` is preserved verbatim (it reflects real server state, not local edits). When introducing other queries shaped as `{data, meta}` envelopes, follow the same pattern — never spread `prev` as if it were the inner payload.-- **`core.paths` is the SSOT for on-disk locations**: only generic helpers (`data_path` / `packages_dir` / `package_dir(name)` / `daemons_dir` / `workspaces_dir` / `workspace_dir(workflow_id)` / `example_workflows_dir`). Plugin-specific subpaths are composed inline at the plugin's call site — adding a new package never requires touching `core.paths`. Reference subtree under `machina_root()` (= `~/.machina/` per default `DATA_DIR`): `workspaces/<slug>/` (per-workflow scratch), `daemons/` (supervised event-source daemon cwds — `stripe listen` etc.; shared root by default, no per-namespace subdir), `claude/` (Claude Code's `CLAUDE_CONFIG_DIR` state — composed as `data_path("claude")` in `nodes/agent/claude_code_agent/_oauth.py`), `packages/` (MachinaOs-managed install root). `packages/` holds a **single shared npm tree** — one `package.json` + `package-lock.json` + `node_modules/` covering every MachinaOs-managed npm package (`@anthropic-ai/claude-code`, `edgymeow`, `agent-browser`). Each plugin's `_install.py` runs `npm install <pkg> --prefix <packages_dir>` which extends the shared tree idempotently; npm manages everything else. Non-npm binaries (Stripe CLI, Temporal CLI) sit under sibling subdirs `packages/stripe/`, `packages/temporal/` via `package_dir(name)`. Also under `<DATA_DIR>/`: `whatsapp/` (WhatsApp session DB), `credentials.db` / `workflow.db` / `temporal.db`. Pre-fix `packages_dir()` routed through `platformdirs.user_cache_path("MachinaOs")` (`~/.cache/MachinaOs/` etc.) and the Temporal CLI sat in its own `pooch.os_cache("machinaos-temporal")` namespace — operators reported both as "not local". The WhatsApp Go bridge (`edgymeow`) used to be a top-level pnpm dep at `<repo>/node_modules/edgymeow/`; now MachinaOs-managed via `nodes/whatsapp/_install.py` like the other CLIs. Daemon cwds used to live under `workspaces/_<namespace>/` and polluted per-workflow scratch with framework state. Out of scope: globally-installed binaries (Himalaya — system package manager). Shipped seed workflows are the lone exception — `example_workflows_dir()` is hardcoded to `<repo>/.machina/workflows/` (git-tracked seeds, NOT under `DATA_DIR`) so they survive `machina clean` and stay at the same path across `DATA_DIR=~/.machina` vs `DATA_DIR=.machina` configs.-- **`machina clean` preserves `.machina/{workflows,deploy,packages}/`**: `cli/commands/clean.py` iterates `<repo>/.machina/` children and skips anything in `_MACHINA_KEEP = frozenset({"workflows", "deploy", "packages"})`. Wipes `claude/`, `workspaces/`, `*.db` as before. `workflows/` holds the shipped seed JSONs (git-tracked); `deploy/` holds Terraform state for LIVE cloud resources (only `machina deploy destroy` removes it); `packages/` holds the MachinaOs-managed binaries (Temporal CLI ~114 MB, Stripe CLI, shared npm tree) — re-fetchable but expensive, so clean+build cycles stay offline-safe cache hits. Test `cli/tests/test_clean.py::test_machina_keep_preserves_workflows_deploy_and_packages` locks the keep-list.+- **`core.paths` is the SSOT for on-disk locations**: only generic helpers (`data_path` / `packages_dir` / `package_dir(name)` / `daemons_dir` / `workspaces_dir` / `workspace_dir(workflow_id)` / `example_workflows_dir`). Plugin-specific subpaths are composed inline at the plugin's call site — adding a new package never requires touching `core.paths`. Reference subtree under `opencompany_root()` (= `~/.opencompany/` per default `DATA_DIR`): `workspaces/<slug>/` (per-workflow scratch), `daemons/` (supervised event-source daemon cwds — `stripe listen` etc.; shared root by default, no per-namespace subdir), `claude/` (Claude Code's `CLAUDE_CONFIG_DIR` state — composed as `data_path("claude")` in `nodes/agent/claude_code_agent/_oauth.py`), `packages/` (OpenCompany-managed install root). `packages/` holds a **single shared npm tree** — one `package.json` + `package-lock.json` + `node_modules/` covering every OpenCompany-managed npm package (`@anthropic-ai/claude-code`, `edgymeow`, `agent-browser`). Each plugin's `_install.py` runs `npm install <pkg> --prefix <packages_dir>` which extends the shared tree idempotently; npm manages everything else. Non-npm binaries (Stripe CLI, Temporal CLI) sit under sibling subdirs `packages/stripe/`, `packages/temporal/` via `package_dir(name)`. Also under `<DATA_DIR>/`: `whatsapp/` (WhatsApp session DB), `credentials.db` / `workflow.db` / `temporal.db`. Pre-fix `packages_dir()` routed through `platformdirs.user_cache_path("OpenCompany")` (`~/.cache/OpenCompany/` etc.) and the Temporal CLI sat in its own `pooch.os_cache("opencompany-temporal")` namespace — operators reported both as "not local". The WhatsApp Go bridge (`edgymeow`) used to be a top-level pnpm dep at `<repo>/node_modules/edgymeow/`; now OpenCompany-managed via `nodes/whatsapp/_install.py` like the other CLIs. Daemon cwds used to live under `workspaces/_<namespace>/` and polluted per-workflow scratch with framework state. Out of scope: globally-installed binaries (Himalaya — system package manager). Shipped seed workflows are the lone exception — `example_workflows_dir()` is hardcoded to `<repo>/.opencompany/workflows/` (git-tracked seeds, NOT under `DATA_DIR`) so they survive `company clean` and stay at the same path across `DATA_DIR=~/.opencompany` vs `DATA_DIR=.opencompany` configs.+- **`company clean` preserves `.opencompany/{workflows,deploy,packages}/`**: `cli/commands/clean.py` iterates the canonical `<repo>/.opencompany/` and pre-rebrand `<repo>/.machina/` roots and skips anything in `_OPENCOMPANY_KEEP = frozenset({"workflows", "deploy", "packages"})`. Wipes `claude/`, `workspaces/`, `*.db` as before. `workflows/` holds the shipped seed JSONs (git-tracked); `deploy/` holds Terraform state for LIVE cloud resources (only `company deploy destroy` removes it); `packages/` holds the OpenCompany-managed binaries (Temporal CLI ~114 MB, Stripe CLI, shared npm tree) — re-fetchable but expensive, so clean+build cycles stay offline-safe cache hits. Test `cli/tests/test_clean.py::test_opencompany_keep_preserves_workflows_deploy_and_packages` locks the keep-list.- **No raw `print()` outside three sanctioned helpers**: `main._startup_log` (pre-logger boot markers), `core.container._clog` (DI-bootstrap markers), and `nodes.code.python_executor.captured_print` (the sandbox builtin handed to user code). Everything else goes through `logger = get_logger(__name__)`. The supervisor prefixes every aggregated line with `[HH:MM:SS.fff]` so no inner `TimeStamper` is needed; structlog console mode is deliberately timestamp-less. Test `server/tests/test_no_raw_prints.py` AST-walks the tree and flags any unsanctioned `print(...)` call.- **`configure_logging(settings)` must run BEFORE plugin self-registration imports**: in `main.py`, `Settings()` + `configure_logging(settings)` + `init_tracing()` + `get_logger(__name__)` happen ahead of `from core.container import container` and `from routers import …`. Otherwise plugin folders that register on import call `logger.debug(...)` while structlog is still on its default processor chain (which includes `TimeStamper` + no `filter_by_level`) — symptom is double timestamps + debug records leaking despite `LOG_LEVEL=INFO`.- **Plugin-identifier shape validator (`services/plugin/identifiers.py`)** (`7700f87`): `NODE_TYPE_PATTERN = r"^[A-Za-z_][A-Za-z0-9_]*$"` + `is_valid_node_type(value)`. Single source of truth used by FastAPI URL routes (`Path(pattern=NODE_TYPE_PATTERN)` in `routers/schemas.py`) AND internal helpers (`nodes/_visuals.py::get_plugin_meta` / `get_plugin_icon_path`). Closes CodeQL `py/path-injection` alerts on the icon-resolution endpoints: the registry lookup `get_node_class(node_type)` already gates the taint in practice, but CodeQL can't follow registry-mediated sanitization — adding `fullmatch` at the function boundary is the canonical pattern its rule docs prescribe. Contract test (`tests/services/test_identifiers.py`, 47 cases) locks the regex against `../etc/passwd`, `..\windows\system32`, `foo\x00bar`, `%2e%2e%2fetc`, `foo;bar`, `${HOME}`, `` foo`bar ``, CRLF, and non-string input.- **CLI recovery-resilience invariants** (May 2026): `python -m cli clean` must run end-to-end on a system Python with no third-party deps. Achieved by: (a) every verb in [`cli/cli.py`](./cli/cli.py) is a lazy stub that imports its impl inside the function body — `import cli.cli` does NOT pull in `anyio` / `psutil` / `cli.supervisor` / sibling verb modules (300 → 131 modules at boot). (b) [`cli/_common.py`](./cli/_common.py) defers `cli.run` + `cli.supervisor` imports inside `build_backend_spec` so importing `cli._common` (and therefore `clean.py`) doesn't drag in rich. (c) [`cli/platform_.py`](./cli/platform_.py) lazy-imports `platformdirs` inside the four `user_*_dir` helpers — module loads without the wheel. (d) [`cli/commands/clean.py`](./cli/commands/clean.py) uses stdlib `print()` (no rich) + lazy `cli.ports` import inside `_kill_running_processes` wrapped in `try/except ImportError` (skip-with-warning if psutil is missing). (e) [`cli/commands/_temporal_specs.py`](./cli/commands/_temporal_specs.py) reads `os.environ["TEMPORAL_*"]` inside `temporal_specs()`, not at module load — so importing the module is safe before `load_config()` has run. (f) The supervised-runtime shim moved from `cli/commands/_supervised_runtime.py` to [`server/services/temporal/_supervised_runtime.py`](./server/services/temporal/_supervised_runtime.py) (colocated with the factories it imports). (g) `daemon` is now a verb-per-file package ([`cli/commands/daemon/`](./cli/commands/daemon/) — `_state.py` + `start.py` + `stop.py` + `status.py` + `restart.py`) following pdm's `commands/venv/` shape; PID-file resolution is a function (`pid_dir()`) not a module-level attribute so platformdirs only loads at call time.- **Wave 13 canary fixes** — six load-bearing corrections to the Wave 12 event framework. See [docs-internal/event_framework.md → Wave 13 fixes](./docs-internal/event_framework.md#wave-13-fixes) for the full breakdown. Key invariants to remember when working on canary triggers: (1) `register_canary_trigger_type(node_type, cloudevent_type)` requires the CloudEvents reverse-DNS string as second arg — must match the producer's `WorkflowEvent.type` exactly or the deployment manager's `EventType` SA won't match `dispatch.emit`'s Visibility query (silent firing failure). Diverging re-registration raises `ValueError` so plugin upgrades surface loudly. (2) Plugin `_events.py` for canary-registered triggers is canary-only — no `event_waiter.dispatch` / `send_custom_event` calls (those have zero consumers in canary-on mode). `dispatch.emit(envelope, wire_routing_key=...)` handles BOTH Temporal Signal fan-out AND in-process WS broadcast. (3) `TriggerListenerWorkflow` + `PollingTriggerWorkflow` call `broadcast_trigger_status_activity` before/after each child spawn for firing-pulse UX (matches legacy `triggers.py` collector/processor). (4) `PollingTriggerNode.as_poll_activity` returns `seen_ids: list(current)` — NOT `list(prior_seen | current)` (the latter grows unboundedly; Gmail at ~100/day hit ~36K entries in a year). The legacy `_build_poll_coroutine` does `seen = set(current)` at end of cycle for the same reason. Visibility-filtered providers (Gmail-unread) re-emit on re-surface, which is correct. (5) Canary trigger output persistence: `MachinaWorkflow.run`'s pre-executed loop schedules `store_node_output_activity` for every firing trigger so `ParameterResolver` can resolve `{{triggerNode.field}}` in downstream nodes (the legacy `_execute_from_trigger` did this via `_store_output(trigger_node_id, "output_0", ...)`; canary skipped it pre-fix). Skips non-firing siblings (`_trigger_output={"not_triggered": True}`). (6) `DeploymentManager.cancel` sweeps stuck node statuses via `_clear_stuck_node_statuses(workflow_id, include_waiting=True)` + emits terminal `update_workflow_status(executing=False, workflow_id=...)`. Without these the FE leaves downstream nodes glowing forever after deployment cancel and the toolbar Start/Stop indicator stays at `executing=True`. The delegation guard inside `_clear_stuck_node_statuses` still protects in-flight fire-and-forget child agents.-- **Deployment reconcile snapshot on WS connect** (de8df87): a stale FE `deploymentStatus.isRunning=true` used to survive a backend restart because the in-memory `DeploymentManager._deployments` dict was wiped (no recovery wiring — the `RecoverySweeper.set_recovery_callback` extension point exists but is intentionally unwired; see the "workflow status not properly recognized" investigation). The Start button therefore stayed showing "Stop" forever. Fix: new `WorkflowEvent.deployment_snapshot(running_workflow_ids)` typed factory (`source = machinaos://services/workflow`, `type = workflow.deployment.snapshot`) + `broadcaster._send_deployment_snapshot(websocket)` that runs at the tail of `broadcaster.connect()` (single-target, NOT fan-out — only the just-connecting client needs to reconcile). FE `case 'deployment_snapshot'` in `WebSocketContext.tsx` iterates `useAppStore.workflowUIStates` and clears `isExecuting=true` on any workflow NOT in the snapshot's running set (empty list is meaningful — this is the load-bearing reset). Also reconciles `deploymentStatus.isRunning` for the active workflow. Distinct from `workflow_lifecycle("deployment.started")` (state-transition edge event) — the snapshot is an idempotent state dump tied to client connect, not a transition.+- **Deployment reconcile snapshot on WS connect** (de8df87): a stale FE `deploymentStatus.isRunning=true` used to survive a backend restart because the in-memory `DeploymentManager._deployments` dict was wiped (no recovery wiring — the `RecoverySweeper.set_recovery_callback` extension point exists but is intentionally unwired; see the "workflow status not properly recognized" investigation). The Start button therefore stayed showing "Stop" forever. Fix: new `WorkflowEvent.deployment_snapshot(running_workflow_ids)` typed factory (`source = opencompany://services/workflow`, `type = workflow.deployment.snapshot`) + `broadcaster._send_deployment_snapshot(websocket)` that runs at the tail of `broadcaster.connect()` (single-target, NOT fan-out — only the just-connecting client needs to reconcile). FE `case 'deployment_snapshot'` in `WebSocketContext.tsx` iterates `useAppStore.workflowUIStates` and clears `isExecuting=true` on any workflow NOT in the snapshot's running set (empty list is meaningful — this is the load-bearing reset). Also reconciles `deploymentStatus.isRunning` for the active workflow. Distinct from `workflow_lifecycle("deployment.started")` (state-transition edge event) — the snapshot is an idempotent state dump tied to client connect, not a transition.- **Agent progress badge — defensive status invariant** (15b8d9d): `AIAgentNode`'s "N / max" iteration badge is gated on `isExecuting && typeof iteration === 'number' && typeof maxIterations === 'number'` where `isExecuting = nodeStatus?.status === 'executing'`. The `agent_progress` handler USED to only set `data.iteration` / `data.max_iterations`, relying on a prior `node_status='executing'` broadcast to have already stamped the status. If agent_progress arrived first (race, single-step agent completion, out-of-order Temporal activity delivery), `status` stayed undefined and the badge was hidden even though the iteration data was populated. Fix: the agent_progress handler now defensively sets `status='executing'` on the slot — but preserves `'success'` / `'error'` if a later terminal broadcast already flipped the slot (terminal states win over the resurrection).- **Temporal Worker tuner exclusivity** (Wave 16.4, 190c896): `Worker.__init__` rejects `tuner` alongside ANY of `max_concurrent_workflow_tasks` / `max_concurrent_activities` / `max_concurrent_local_activities` / `max_concurrent_nexus_tasks` — the tuner OWNS every slot supplier via its `WorkerTuner.create_composite(workflow_supplier, activity_supplier, local_activity_supplier, nexus_supplier)` and cannot coexist with the individual max-count kwargs. In `TemporalWorkerPool.start`, ALL FOUR max-count kwargs must be pulled from the base `worker_kwargs` when `tuner=` is added; the ai-heavy / browser queues use the tuner and preserve their 10-workflow-slot ceiling via `_tuner_for -> FixedSizeSlotSupplier(10)` on the workflow_supplier slot. The framework worker at `worker.py:188` does NOT use a tuner, so it keeps the plain `max_concurrent_workflow_tasks=10` + `max_concurrent_activities=self.pool_size` kwargs directly. `TEMPORAL_WORKER_POOL_ENABLED` defaulted to True in the same commit (`test_task_queue_coverage.py::TestWorkerPoolDefaultOn` locks the default via source-introspection so the flip survives a hasty revert).-- never use emojis in prints\ No newline at end of file+- never use emojis in printsdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex d74127db..0f04d8ba 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,4 +1,4 @@-# Contributing to MachinaOS+# Contributing to OpenCompanyWelcome! This guide is a contributor's map to the codebase. It tells you *where things live* and *where to start reading* when you want to add a feature. For the full architecture tour, use the [DeepWiki badge](https://deepwiki.com/zeenie-ai/MachinaOS) on the README or browse [docs-internal/](docs-internal/).diff --git a/LICENSE b/LICENSEindex 61d58c50..24915e0a 100644--- a/LICENSE+++ b/LICENSE@@ -1,6 +1,7 @@MIT LicenseCopyright (c) 2025 MachinaOs+Copyright (c) 2026 OpenCompany contributorsPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealdiff --git a/README.md b/README.mdindex 590eec5d..2965b727 100644--- a/README.md+++ b/README.md@@ -1,9 +1,9 @@<img width="1584" height="672" alt="image" src="https://github.com/user-attachments/assets/cebd0198-4c09-4757-9407-a7ad79a7d71e" />-# MachinaOS+# OpenCompany-<a href="https://www.npmjs.com/package/machinaos" target="_blank"><img src="https://img.shields.io/npm/v/machinaos.svg" alt="npm version"></a>+<a href="https://www.npmjs.com/package/opencompany" target="_blank"><img src="https://img.shields.io/npm/v/opencompany.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/MachinaOS" target="_blank"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>@@ -17,19 +17,24 @@ 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 machinaos-machina start+npm install -g opencompany+company start```Open http://localhost:3000 and click **Credentials** to connect your first AI provider.+Upgrading from MachinaOS? Existing `~/.machina` and checkout-local `.machina`+state is detected when the new `.opencompany` location does not yet exist, so+databases and deployment state are not stranded. The `machina` command remains+available as a deprecated legacy alias; new scripts should use `company`.+<details><summary><b>Run from source (for contributors)</b></summary>```bashnpm install -g pnpm-git clone https://github.com/zeenie-ai/MachinaOS.git-cd MachinaOS+git clone https://github.com/zeenie-ai/MachinaOS.git OpenCompany+cd OpenCompanypnpm run buildpnpm run dev```@@ -38,7 +43,7 @@ The `dev` task starts the Python backend, Vite client, WhatsApp service, and Tem</details>-## Quick Hello World Setup for MachinaOS ↓+## Quick Hello World Setup for OpenCompany ↓https://github.com/user-attachments/assets/a5a5583f-bb5f-4d27-a387-8522c556e89e@@ -52,15 +57,15 @@ https://github.com/user-attachments/assets/5798fe61-8d26-4d3a-90aa-189bf4eec79f## How It Works-[](https://raw.githubusercontent.com/zeenie-ai/MachinaOS/main/docs/diagrams/how-it-works.svg)+[](https://raw.githubusercontent.com/zeenie-ai/MachinaOS/main/docs/diagrams/how-it-works.svg)Pick nodes from the palette, drag them onto a canvas, connect them with lines, give your AI agent some memory and skills, and hit Play. Or **deploy** the workflow so it runs forever in the background — waiting for emails, responding to messages, checking in on a schedule, doing the work you'd rather not.## Three Example Workflows For Reference.-[](https://raw.githubusercontent.com/zeenie-ai/MachinaOS/main/docs/diagrams/default-workflows.svg)+[](https://raw.githubusercontent.com/zeenie-ai/MachinaOS/main/docs/diagrams/default-workflows.svg)-The first time you open MachinaOS, three example workflows load automatically. Open them on the canvas to see exactly how the pieces fit together, then edit any node and save your own version.+The first time you open OpenCompany, three example workflows load automatically. Open them on the canvas to see exactly how the pieces fit together, then edit any node and save your own version.## What You Can Build@@ -167,8 +172,8 @@ Every LLM call and API request is tracked with USD cost. See per-provider spend## Quick Setup Tour-1. **Install** with `npm install -g machinaos` (or run from source)-2. **Start** with `machina start` — opens at http://localhost:3000+1. **Install** with `npm install -g 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 canvas5. **Connect** outputs to inputs by dragging between handlesdiff --git a/RFC-0001-UASTL-Universal-API-Schema-Translation-Layer.md b/RFC-0001-UASTL-Universal-API-Schema-Translation-Layer.mdindex 76eca51c..524074cc 100644--- a/RFC-0001-UASTL-Universal-API-Schema-Translation-Layer.md+++ b/RFC-0001-UASTL-Universal-API-Schema-Translation-Layer.md@@ -4,7 +4,7 @@**Status:** Draft**Author:** Rohith Thakurwar (Genie.ai / MachinaOS)**Created:** 2026-04-26-**Target System:** MachinaOS Agentic OS Platform+**Target System:** OpenCompany Agentic OS Platform---@@ -369,7 +369,7 @@ class TwitterX:Example:tweet = await twitter.create_tweet(- CreateTweetRequest(text="Hello from MachinaOS!")+ CreateTweetRequest(text="Hello from OpenCompany!"))print(tweet.id) # "1849573028375...""""diff --git a/bin/cli.js b/bin/cli.jsindex 841b1942..d14aac7d 100755--- a/bin/cli.js+++ b/bin/cli.js@@ -1,18 +1,21 @@#!/usr/bin/env nodeimport { spawn, execSync } from 'child_process';-import { dirname, resolve } from 'path';+import { basename, dirname, resolve } from 'path';import { fileURLToPath } from 'url';import { readFileSync, existsSync } from 'fs';const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..');const PKG = JSON.parse(readFileSync(resolve(ROOT, 'package.json'), 'utf-8'));+const invokedName = basename(process.argv[1] || '').replace(/\.(?:cmd|exe|ps1|js)$/i, '');+const USING_LEGACY_ALIAS = invokedName === 'machina'+ || process.env.OPENCOMPANY_LEGACY_ALIAS === 'machina';const COMMANDS = {start: 'Start in production mode',dev: 'Start development server (hot-reload)',serve: 'Serve on a single public port (API + WS + SPA; used by deploy)',- deploy: 'Provision a cloud VM running MachinaOs (Terraform)',+ deploy: 'Provision a cloud VM running OpenCompany (Terraform)',stop: 'Stop all running services',build: 'Build the project for production',clean: 'Clean build artifacts',@@ -23,9 +26,9 @@ const COMMANDS = {function printHelp() {console.log(`-MachinaOS - Workflow Automation Platform+OpenCompany - Workflow Automation Platform-Usage: machina <command> [flags]+Usage: company <command> [flags]Commands:${Object.entries(COMMANDS).map(([cmd, desc]) => ` ${cmd.padEnd(14)} ${desc}`).join('\n')}@@ -36,10 +39,12 @@ Flags:--daemon Use uvicorn daemon backendExamples:- machina start # Production server (clean output)- machina start -v # Production with full logs- machina dev # Development with hot-reload- machina build # Build for production+ company start # Production server (clean output)+ company start -v # Production with full logs+ company dev # Development with hot-reload+ company build # Build for production++Compatibility: the legacy \`machina\` command remains available but is deprecated.Documentation: https://docs.zeenie.xyz/`);}@@ -106,7 +111,7 @@ function checkDeps() {}function doctor() {- console.log('\nMachinaOS Doctor\n');+ console.log('\nOpenCompany Doctor\n');try {execSync('npx envinfo --system --binaries --npmPackages edgymeow,agent-browser,cross-env', {cwd: ROOT, stdio: 'inherit', shell: true,@@ -124,7 +129,7 @@ function doctor() {const has = (f) => { try { readFileSync(resolve(ROOT, f)); return true; } catch { return false; } };console.log(has('pnpm-lock.yaml') ? ' Lockfile: pnpm-lock.yaml' : has('package-lock.json') ? ' Lockfile: package-lock.json' : ' Lockfile: Not Found');- console.log(has('server/.venv/pyvenv.cfg') ? ' Python venv: OK' : ' Python venv: Missing (run machina build)');+ console.log(has('server/.venv/pyvenv.cfg') ? ' Python venv: OK' : ' Python venv: Missing (run company build)');console.log('');}@@ -169,12 +174,16 @@ function run(script, extraArgs = []) {// Expand PATH to find tools like uv installed in user directoriesexpandPath();+if (USING_LEGACY_ALIAS) {+ console.warn('Warning: `machina` is deprecated; use `company` instead.');+}+const cmd = process.argv[2] || 'help';if (cmd === 'help' || cmd === '--help' || cmd === '-h') {printHelp();} else if (cmd === 'version' || cmd === '--version' || cmd === '-v') {- console.log(`machina v${PKG.version}`);+ console.log(`company v${PKG.version}`);} else if (cmd === 'doctor') {doctor();} else if (cmd === 'start' || cmd === 'dev' || cmd === 'build' || cmd === 'serve') {diff --git a/bin/machina.js b/bin/machina.jsnew file mode 100644index 00000000..00ddf2a0--- /dev/null+++ b/bin/machina.js@@ -0,0 +1,7 @@+#!/usr/bin/env node++// Deprecated compatibility entry point. Keeping this wrapper separate from+// cli.js makes alias detection reliable through npm's Windows .cmd/.ps1 shims,+// which invoke the target JavaScript file rather than preserving the bin name.+process.env.OPENCOMPANY_LEGACY_ALIAS = 'machina';+await import('./cli.js');diff --git a/cli/README.md b/cli/README.mdindex c6315184..95b94483 100644--- a/cli/README.md+++ b/cli/README.md@@ -1,7 +1,9 @@-# machina+# company-Project supervisor CLI for the MachinaOS stack. Replaces `scripts/*.js`-gradually; backwards-compatible with `pnpm run start`/`dev`/`stop`/etc.+Project supervisor CLI for the OpenCompany stack. The public command is+`company`; the npm package is `opencompany`, and the legacy `machina` bin+remains as a deprecated compatibility alias. It is also backwards-compatible+with `pnpm run start`/`dev`/`stop`/etc.## Install@@ -9,14 +11,14 @@ Done automatically in `scripts/postinstall.js` after `pnpm install`. Toinstall manually:```sh-python -m pip install -e ./machina+python -m pip install -e .```## Use```sh-python -m machina --help # list commands-python -m machina stop # kill ports + orphans + temporal+company --help # list commands+company stop # kill ports + orphans + temporal```Or via the npm scripts (which now invoke the same Python CLI):@@ -28,9 +30,9 @@ pnpm run stop## Cross-platform notes- **Windows**: `python` resolves correctly out of the box.-- **macOS / Linux**: requires `python` to point to Python 3.11+. Most+- **macOS / Linux**: requires `python` to point to Python 3.12+. Mostmodern distros provide this via `python-is-python3` or a symlink. If- your distro only ships `python3`, run `python3 -m machina <cmd>` or+ your distro only ships `python3`, run `python3 -m cli <cmd>` oradd an alias.## Architecture@@ -44,4 +46,4 @@ Built on battle-tested primitives — minimal custom code:| Tree-kill | `psutil` + `pywin32` (Job Objects on Windows) || Restart backoff | stdlib (deque + monotonic time + jittered exponential, ~20 LOC) || Output | `rich.Console` |-| Env | `python-dotenv` |+| Env | stdlib parser over `.env.template`, `.env`, and `.env.dev` |diff --git a/cli/__init__.py b/cli/__init__.pyindex 27539a19..4e9fa9f5 100644--- a/cli/__init__.py+++ b/cli/__init__.py@@ -1,3 +1,3 @@-"""MachinaOS project supervisor CLI."""+"""OpenCompany project supervisor CLI."""__version__ = "0.1.0"diff --git a/cli/__main__.py b/cli/__main__.pyindex 5945f2a8..4be84eea 100644--- a/cli/__main__.py+++ b/cli/__main__.py@@ -64,7 +64,7 @@ def _provision_venv() -> Path | None:try:if not _venv_python().exists():print(- "machina: provisioning CLI runtime venv (first run)...",+ "company: provisioning CLI runtime venv (first run)...",file=sys.stderr,)subprocess.check_call([uv, "venv", "--quiet", str(_VENV_DIR)])@@ -90,10 +90,10 @@ def _reexec_in_venv() -> None:venv_py = _venv_python() if _venv_python().exists() else _provision_venv()if not venv_py:sys.stderr.write(- "machina: runtime dependencies are missing and the CLI venv\n"+ "company: runtime dependencies are missing and the CLI venv\n"" could not be provisioned. Install uv\n"" (https://docs.astral.sh/uv/getting-started/installation/)\n"- " and re-run, or run `machina build` to regenerate the venv.\n"+ " and re-run, or run `company build` to regenerate the venv.\n")sys.exit(1)os.execv(str(venv_py), [str(venv_py), "-m", "cli", *sys.argv[1:]])diff --git a/cli/_common.py b/cli/_common.pyindex f97361be..d98c92c5 100644--- a/cli/_common.py+++ b/cli/_common.py@@ -1,4 +1,4 @@-"""Cross-verb helpers shared by ``machina`` commands.+"""Cross-verb helpers shared by ``company`` commands.Centralises the four patterns that previously appeared inlined in``start.py`` / ``dev.py`` / ``stop.py`` / ``clean.py`` / ``build.py``:@@ -36,7 +36,7 @@ if TYPE_CHECKING:# ``cli.run`` (and ``cli.supervisor`` via ``cli.colors``) transitively# pull in ``rich``. They're only needed by ``build_backend_spec`` /# ``error_block`` which themselves lazy-import. Keeping them out of the-# top-level import list means ``machina clean`` (which calls only+# top-level import list means ``company clean`` (which calls only# ``preflight`` and ``free_all_ports``) loads even when ``rich`` /# ``psutil`` / ``platformdirs`` are unavailable.@@ -56,13 +56,13 @@ def free_all_ports(cfg: Config) -> list[KillResult]:results.Returns a list (not a count) so callers can render per-port status- -- ``machina stop`` shows ``[OK]`` / ``[!!]`` markers and the killed- PIDs, ``machina start`` and ``clean`` just want them gone. The+ -- ``company stop`` shows ``[OK]`` / ``[!!]`` markers and the killed+ PIDs, ``company start`` and ``clean`` just want them gone. Thehelper centralises the iteration, callers pick the rendering.``cli.ports`` is imported lazily so this module loads even when``psutil`` (a transitive dep) is missing -- important for the- recovery verb ``machina clean``.+ recovery verb ``company clean``."""from cli.ports import kill_port@@ -84,7 +84,7 @@ def build_backend_spec(``cli.run`` and ``cli.supervisor`` are lazy-imported so this modulestays importable when their transitive ``rich`` dep is missing --- ``machina clean`` doesn't call this and shouldn't pay for it.+ ``company clean`` doesn't call this and shouldn't pay for it."""from cli.run import uv_runfrom cli.supervisor import ServiceSpecdiff --git a/cli/buildenv.py b/cli/buildenv.pyindex 900182ac..7bdbd68a 100644--- a/cli/buildenv.py+++ b/cli/buildenv.py@@ -1,6 +1,6 @@"""Build-environment helpers shared by ``start`` / ``dev`` / ``daemon``.-``validate_build`` refuses to launch when ``machina build`` hasn't been+``validate_build`` refuses to launch when ``company build`` hasn't beenrun. Layout knowledge lives in :mod:`cli.platform_` -- this file onlycomposes the documented prefixes (workspace venv, node_modules, clientdist) into a boolean check.@@ -26,15 +26,15 @@ from cli.platform_ import (def validate_build(root: Path, *, require_client_dist: bool = False) -> None:- """Refuse to launch if ``machina build`` hasn't been run.+ """Refuse to launch if ``company build`` hasn't been run.Raises ``typer.Exit(1)`` with a remediation hint. ``dev`` allows amissing ``client/dist`` (Vite serves the source); ``start`` opts invia ``require_client_dist=True``."""if not node_modules_dir(root).exists() or not server_venv(root).exists():- console.print('[red]Error: Project not built. Run "machina build" first.[/]')+ console.print('[red]Error: Project not built. Run "company build" first.[/]')raise typer.Exit(code=1)if require_client_dist and not client_dist_entry(root).exists():- console.print('[red]Error: Client not built. Run "machina build" first.[/]')+ console.print('[red]Error: Client not built. Run "company build" first.[/]')raise typer.Exit(code=1)diff --git a/cli/cli.py b/cli/cli.pyindex b1faf34a..d0075447 100644--- a/cli/cli.py+++ b/cli/cli.py@@ -1,7 +1,7 @@-"""Typer CLI for ``machina``.+"""Typer CLI for ``company``.Every verb is registered here as a thin stub that lazy-imports its-implementation on dispatch. Running ``machina clean`` (the recovery+implementation on dispatch. Running ``company clean`` (the recoveryverb) only triggers the import of ``cli.commands.clean`` -- not``dev`` / ``start`` / temporal specs / daemon verbs / docs / version.@@ -16,11 +16,14 @@ importing ``cli.commands.daemon`` etc. at boot.from __future__ import annotations+import sys+from pathlib import Path+import typerapp = typer.Typer(- name="machina",- help="MachinaOS project supervisor CLI.",+ name="company",+ help="OpenCompany project supervisor CLI.",no_args_is_help=True,add_completion=False,)@@ -29,6 +32,11 @@ app = typer.Typer(@app.callback()def _root() -> None:"""Marks the Typer app as a multi-command group."""+ if Path(sys.argv[0]).stem.casefold() == "machina":+ typer.echo(+ "Warning: `machina` is deprecated; use `company` instead.",+ err=True,+ )# ----------------------------------------------------------- top-level verbs@@ -62,7 +70,7 @@ def _dev(@app.command("stop",- help="Stop all MachinaOS services and free configured ports.",+ help="Stop all OpenCompany services and free configured ports.",)def _stop() -> None:from cli.commands.stop import stop_command@@ -92,7 +100,7 @@ def _build() -> None:@app.command("serve",- help="Run on a single public port (API + WebSocket + built SPA + sidecar). Used by `machina deploy`.",+ help="Run on a single public port (API + WebSocket + built SPA + sidecar). Used by `company deploy`.",)def _serve(port: int | None = typer.Option(@@ -110,7 +118,7 @@ def _serve(daemon_app = typer.Typer(name="daemon",- help="Run the MachinaOs backend as a detached process.",+ help="Run the OpenCompany backend as a detached process.",no_args_is_help=True,add_completion=False,)@@ -163,7 +171,7 @@ app.add_typer(daemon_app, name="daemon")deploy_app = typer.Typer(name="deploy",- help="Provision a fresh cloud VM running MachinaOs (via Terraform).",+ help="Provision a fresh cloud VM running OpenCompany (via Terraform).",no_args_is_help=True,add_completion=False,)@@ -171,7 +179,7 @@ deploy_app = typer.Typer(@deploy_app.command("up",- help="Create the 'machinaos' VM, install MachinaOs behind the login gate, and run it.",+ help="Create an OpenCompany VM, install OpenCompany behind the login gate, and run it.",)def _deploy_up(provider: str = typer.Option("gcp", "--provider", help="Cloud provider: gcp (aws is a follow-on)."),@@ -180,7 +188,7 @@ def _deploy_up(None, "--owner-password", help="Login password (>=8 chars). Generated + printed once if omitted."),source: str = typer.Option("local", "--source", help="Install source: local (npm pack) or release (npm registry)."),- version: str = typer.Option("latest", "--version", help="machinaos version when --source release."),+ version: str = typer.Option("latest", "--version", help="opencompany version when --source release."),machine_type: str = typer.Option("e2-standard-2", "--machine-type", help="VM size."),port: int = typer.Option(8080, "--port", help="Public port the app binds + the firewall opens."),allow_cidr: str = typer.Option("0.0.0.0/0", "--allow-cidr", help="Firewall source range (restrict to your IP/32)."),@@ -207,7 +215,7 @@ def _deploy_up(@deploy_app.command("status",- help="Show the 'machinaos' deployment's URL + health.",+ help="Show the OpenCompany deployment's URL + health.",)def _deploy_status() -> None:from cli.commands.deploy.status import status_command@@ -217,7 +225,7 @@ def _deploy_status() -> None:@deploy_app.command("destroy",- help="Terraform-destroy the 'machinaos' deployment and remove its local state.",+ help="Terraform-destroy the OpenCompany deployment and remove its local state.",)def _deploy_destroy(keep_state: bool = typer.Option(False, "--keep-state", help="Keep the local Terraform state dir."),diff --git a/cli/commands/__init__.py b/cli/commands/__init__.pyindex a0e282c6..1d714d86 100644--- a/cli/commands/__init__.py+++ b/cli/commands/__init__.py@@ -1 +1 @@-"""``machina`` subcommand modules. Imported by ``cli.cli``."""+"""``company`` subcommand modules. Imported by ``cli.cli``."""diff --git a/cli/commands/build.py b/cli/commands/build.pyindex 6aca1cd0..a6550020 100644--- a/cli/commands/build.py+++ b/cli/commands/build.py@@ -1,4 +1,4 @@-"""``machina build`` -- replaces ``scripts/build.js``.+"""``company build`` -- replaces ``scripts/build.js``.Checks toolchain (node, npm, python, uv), then runs the 6-stepbuild: ``.env`` bootstrap -> ``pnpm install`` -> client build ->@@ -7,13 +7,13 @@ Node.js sidecar bundle -> ``uv sync`` -> compile Python bytecodeLayers ``.env.dev`` (when present in the checkout) BEFORE runningthose steps so the build's ``DATA_DIR`` matches the runtime's-expected location. Without that, ``machina build`` would pooch-Temporal under ``~/.machina/`` and ``machina dev`` would re-fetch-it into ``<repo>/.machina/`` — a redundant download on every fresh+expected location. Without that, ``company build`` would pooch+Temporal under ``~/.opencompany/`` and ``company dev`` would re-fetch+it into ``<repo>/.opencompany/`` — a redundant download on every freshclone. Production (global-install) operators never have``.env.dev`` in their checkout, so the layering is a no-op there.-The ``MACHINAOS_BUILDING`` env var is set so ``scripts/postinstall.js``+The ``OPENCOMPANY_BUILDING`` env var is set so ``scripts/postinstall.js``skips its own ``install.js`` invocation when build is the orchestrator."""@@ -32,7 +32,7 @@ from cli.colors import consolefrom cli.platform_ import node_modules_dir, project_root, server_dir-# Source dirs / entry-point modules under ``server/`` that ``machina build``+# Source dirs / entry-point modules under ``server/`` that ``company build``# pre-compiles to optimised bytecode in step [5/6]. Public so tests and# ``scripts/install.js`` (which mirrors this list) stay in sync — both# the install pipeline and tests should read this constant rather than@@ -107,21 +107,21 @@ def build_command() -> None:root = project_root()# Layer ``.env.dev`` (if present) BEFORE the install steps so the- # build's ``DATA_DIR`` matches what the runtime (``machina dev``)- # will see. Without this, ``machina build`` reads- # ``DATA_DIR=~/.machina`` from ``.env.template`` and lands the- # Temporal CLI under user home, but ``machina dev`` then reads- # ``DATA_DIR=.machina`` from ``.env.dev`` and re-downloads into- # ``<repo>/.machina/`` — a cache-miss the operator pays on every+ # build's ``DATA_DIR`` matches what the runtime (``company dev``)+ # will see. Without this, ``company build`` reads+ # ``DATA_DIR=~/.opencompany`` from ``.env.template`` and lands the+ # Temporal CLI under user home, but ``company dev`` then reads+ # ``DATA_DIR=.opencompany`` from ``.env.dev`` and re-downloads into+ # ``<repo>/.opencompany/`` — a cache-miss the operator pays on every# fresh checkout.## 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 machinaos`` doesn't ship it. Without+ # ``npm install -g 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=~/.machina``) — identical to today's behaviour and- # matching what ``machina start`` / ``machina daemon`` use at+ # (``DATA_DIR=~/.opencompany``) — identical to today's behaviour and+ # matching what ``company start`` / ``company daemon`` use at# runtime.from cli.config import load_dev_overrides@@ -129,6 +129,8 @@ def build_command() -> None:# Prevent the postinstall orchestrator from re-running install.js when# we're orchestrating ourselves (matches the existing JS contract).+ os.environ["OPENCOMPANY_BUILDING"] = "true"+ # Mixed-version installs may still contain the old postinstall hook.os.environ["MACHINAOS_BUILDING"] = "true"os.environ.setdefault("PYTHONUTF8", "1")@@ -188,7 +190,7 @@ def build_command() -> None:# whenever the executor is launched. The bundle keeps Express# external (it stays in node_modules), so the patch flow is intact.console.log("[3/6] Building Node.js sidecar...")- run(["pnpm", "--filter", "machinaos-nodejs-executor", "run", "build"], cwd=root)+ run(["pnpm", "--filter", "opencompany-nodejs-executor", "run", "build"], cwd=root)console.log("[4/6] Installing Python dependencies...")# ``server/`` is its own standalone uv project; ``uv sync`` at that@@ -219,7 +221,7 @@ def build_command() -> None:)# Temporal is a required runtime dep: fetch + verify the binaries- # now so first ``machina start`` is instant instead of paying the+ # now so first ``company start`` is instant instead of paying the# ~90 MB pooch download cost inside ``_pre_spawn``. The ``-m# services.temporal._install`` entry runs ``ensure_temporal_binaries``# then asserts every extracted path exists; non-zero exit abortsdiff --git a/cli/commands/clean.py b/cli/commands/clean.pyindex dd3117f9..ef837c03 100644--- a/cli/commands/clean.py+++ b/cli/commands/clean.py@@ -1,4 +1,4 @@-"""``machina clean`` -- reset the repo to a fresh-checkout state.+"""``company clean`` -- reset the repo to a fresh-checkout state.Recovery verb: must work even when the env is partially broken(missing ``rich`` / ``psutil`` / ``platformdirs`` wheels, half-wiped@@ -23,9 +23,9 @@ from cli._common import free_all_ports, preflight# Removed each run -- order doesn't matter, ``shutil.rmtree`` is recursive.-# Only project-local artefacts. Home-rooted state (``~/.machina/``,-# ``~/.claude/``, etc.) is the user's; we never touch it from-# ``machina clean``.+# Only project-local artefacts. Home-rooted state (``~/.opencompany/``, the+# pre-rebrand ``~/.machina/``, ``~/.claude/``, etc.) is the user's; we never+# touch it from ``company clean``._TARGETS = ["node_modules","client/node_modules",@@ -40,23 +40,25 @@ _TARGETS = []-# Children of ``<repo>/.machina/`` to wipe selectively. The bare-# ``.machina`` entry can't go in ``_TARGETS`` anymore because the-# ``workflows/`` subtree holds shipped example seeds (git-tracked,+# Children of the canonical ``<repo>/.opencompany/`` and legacy+# ``<repo>/.machina/`` roots to wipe selectively. Neither bare directory can+# go in ``_TARGETS`` because the ``workflows/`` subtree holds shipped example+# seeds (git-tracked,# imported on first launch by ``services.example_loader``) -- wiping# it would force the operator to re-clone to recover. ``deploy/``-# holds ``machina deploy``'s Terraform working dirs + state files:+# holds ``company deploy``'s Terraform working dirs + state files:# deleting state for LIVE cloud resources orphans the VM/firewall-# (``machina deploy destroy`` could no longer find them) -- only+# (``company deploy destroy`` could no longer find them) -- only# ``deploy destroy`` removes that tree. ``packages/`` holds the-# MachinaOs-managed binaries (Temporal CLI ~114 MB, Stripe CLI, the+# OpenCompany-managed binaries (Temporal CLI ~114 MB, Stripe CLI, the# shared npm tree with claude/agent-browser/edgymeow): all of it is# re-fetchable but expensive -- wiping it forced a full Temporal-# re-download on every clean+build cycle, which hard-fails ``machina+# re-download on every clean+build cycle, which hard-fails ``company# build`` on slow links. Anything else under ``.machina/`` (claude# state, workspaces, credentials.db, ...) is transient runtime state# and is fair game.-_MACHINA_KEEP = frozenset({"workflows", "deploy", "packages"})+_OPENCOMPANY_KEEP = frozenset({"workflows", "deploy", "packages"})+_STATE_DIRS = (".opencompany", ".machina")def _rmtree_with_retry(path: Path, *, attempts: int = 3, delay: float = 0.1) -> bool:@@ -86,7 +88,7 @@ def _kill_running_processes(cfg, root: Path) -> bool:results = free_all_ports(cfg)# ``free_all_ports`` itself lazy-imports ``cli.ports`` -- the# outer try/except catches the ImportError if psutil is gone.- from cli.ports import kill_orphaned_machina_processes+ from cli.ports import kill_orphaned_opencompany_processesexcept ImportError as exc:print(f" warning: psutil unavailable ({exc.name}); skipping process cleanup")return False@@ -97,7 +99,9 @@ def _kill_running_processes(cfg, root: Path) -> bool:print(f" port {port}: killed {len(result.killed_pids)} process(es)")killed_ports += len(result.killed_pids)- orphaned = kill_orphaned_machina_processes(str(root), exclude_substring="-m cli")+ orphaned = kill_orphaned_opencompany_processes(+ str(root), exclude_substring="-m cli"+ )if orphaned:print(f" orphaned: killed {len(orphaned)} process(es)")@@ -107,7 +111,7 @@ def _kill_running_processes(cfg, root: Path) -> bool:def clean_command() -> None:cfg, root = preflight()- print("Cleaning MachinaOS...")+ print("Cleaning OpenCompany...")# Step 1+2: kill running processes (best-effort, may degrade)print("Stopping running processes...")@@ -127,16 +131,18 @@ def clean_command() -> None:print(f" removing: {target}")_rmtree_with_retry(path)- # Step 4: selectively clean ``<repo>/.machina/`` -- preserve- # ``workflows/`` (shipped example seeds, see ``_MACHINA_KEEP``);+ # Step 4: selectively clean both state roots. Preserve ``workflows/``+ # (shipped example seeds, see ``_OPENCOMPANY_KEEP``);# wipe everything else (claude/, workspaces/, *.db, ...) so the# repo-local DATA_DIR opt-out gets the same fresh-state treatment.- machina_dir = root / ".machina"- if machina_dir.is_dir():- for child in machina_dir.iterdir():- if child.name in _MACHINA_KEEP:+ for state_dir_name in _STATE_DIRS:+ state_dir = root / state_dir_name+ if not state_dir.is_dir():+ continue+ for child in state_dir.iterdir():+ if child.name in _OPENCOMPANY_KEEP:continue- rel = f".machina/{child.name}"+ rel = f"{state_dir_name}/{child.name}"print(f" removing: {rel}")if child.is_dir():_rmtree_with_retry(child)diff --git a/cli/commands/daemon/__init__.py b/cli/commands/daemon/__init__.pyindex ee295c49..000e1f46 100644--- a/cli/commands/daemon/__init__.py+++ b/cli/commands/daemon/__init__.py@@ -1,4 +1,4 @@-"""``machina daemon`` -- run the backend as a detached process.+"""``company daemon`` -- run the backend as a detached process.Pure-Python, all-platforms. No NSSM / systemd / launchd integration.Spawns ``uvicorn main:app`` in a new session (POSIX) or detached@@ -29,10 +29,10 @@ import typer# The ``app`` Typer instance is declared FIRST so the verb modules can# import it via ``from . import app`` and register themselves via# ``@app.command``. The verb-module imports BELOW are what trigger that-# registration -- without them, ``machina daemon`` would be empty.+# registration -- without them, ``company daemon`` would be empty.app = typer.Typer(name="daemon",- help="Run the MachinaOs backend as a detached process.",+ help="Run the OpenCompany backend as a detached process.",no_args_is_help=True,add_completion=False,)diff --git a/cli/commands/daemon/_state.py b/cli/commands/daemon/_state.pyindex 6aaa306a..7a8f37f9 100644--- a/cli/commands/daemon/_state.py+++ b/cli/commands/daemon/_state.py@@ -1,4 +1,4 @@-"""Shared state for the ``machina daemon`` verbs.+"""Shared state for the ``company daemon`` verbs.PID-file location, detached-spawn kwargs, and the ``psutil``-backedtree-kill helper that ``start`` / ``stop`` / ``status`` / ``restart``@@ -19,7 +19,8 @@ import psutilfrom cli.platform_ import IS_WINDOWS, user_data_dir-_PID_FILENAME = "machina-backend.pid"+_PID_FILENAME = "opencompany-backend.pid"+_LEGACY_PID_FILENAME = "machina-backend.pid"_LOG_FILENAME = "backend.log"@@ -33,6 +34,11 @@ def pid_file() -> Path:return pid_dir() / _PID_FILENAME+def legacy_pid_file() -> Path:+ """Pre-rebrand PID path, read and cleared for upgrade compatibility."""+ return pid_dir() / _LEGACY_PID_FILENAME++def log_file() -> Path:"""Path to the daemon's stdout/stderr log file."""return pid_dir() / _LOG_FILENAME@@ -58,14 +64,16 @@ def detached_kwargs() -> dict:def read_pid() -> int | None:"""Return the live PID from the PID file, or ``None`` if absent /corrupt / process no longer exists."""- pf = pid_file()- if not pf.exists():- return None- try:- pid = int(pf.read_text().strip())- except (ValueError, OSError):- return None- return pid if psutil.pid_exists(pid) else None+ for pf in (pid_file(), legacy_pid_file()):+ if not pf.exists():+ continue+ try:+ pid = int(pf.read_text().strip())+ except (ValueError, OSError):+ continue+ if psutil.pid_exists(pid):+ return pid+ return Nonedef kill_tree(pid: int) -> None:diff --git a/cli/commands/daemon/restart.py b/cli/commands/daemon/restart.pyindex 252ecd4e..44003ac8 100644--- a/cli/commands/daemon/restart.py+++ b/cli/commands/daemon/restart.py@@ -1,4 +1,4 @@-"""``machina daemon restart`` -- stop then start."""+"""``company daemon restart`` -- stop then start."""from __future__ import annotationsdiff --git a/cli/commands/daemon/start.py b/cli/commands/daemon/start.pyindex c2a1984a..6f258e10 100644--- a/cli/commands/daemon/start.py+++ b/cli/commands/daemon/start.py@@ -1,4 +1,4 @@-"""``machina daemon start`` -- spawn the backend as a detached process."""+"""``company daemon start`` -- spawn the backend as a detached process."""from __future__ import annotationsdiff --git a/cli/commands/daemon/status.py b/cli/commands/daemon/status.pyindex ccbe17e3..c901f2fc 100644--- a/cli/commands/daemon/status.py+++ b/cli/commands/daemon/status.py@@ -1,4 +1,4 @@-"""``machina daemon status`` -- report whether the backend is running."""+"""``company daemon status`` -- report whether the backend is running."""from __future__ import annotationsdiff --git a/cli/commands/daemon/stop.py b/cli/commands/daemon/stop.pyindex 0eb69ff5..ae6a7503 100644--- a/cli/commands/daemon/stop.py+++ b/cli/commands/daemon/stop.py@@ -1,22 +1,24 @@-"""``machina daemon stop`` -- terminate the detached backend."""+"""``company daemon stop`` -- terminate the detached backend."""from __future__ import annotationsfrom cli.colors import consolefrom . import app-from ._state import kill_tree, pid_file, read_pid+from ._state import kill_tree, legacy_pid_file, pid_file, read_pid@app.command("stop")def stop_command() -> None:"""Stop the backend if running; clear PID file either way."""pid = read_pid()- pf = pid_file()+ pid_paths = (pid_file(), legacy_pid_file())if pid is None:console.print("Not running.")- pf.unlink(missing_ok=True)+ for path in pid_paths:+ path.unlink(missing_ok=True)returnkill_tree(pid)- pf.unlink(missing_ok=True)+ for path in pid_paths:+ path.unlink(missing_ok=True)console.print(f"[green]Stopped pid={pid}[/]")diff --git a/cli/commands/deploy/__init__.py b/cli/commands/deploy/__init__.pyindex bcb6d3b6..01d9589e 100644--- a/cli/commands/deploy/__init__.py+++ b/cli/commands/deploy/__init__.py@@ -1,4 +1,4 @@-"""``machina deploy`` -- provision a fresh cloud VM running MachinaOs.+"""``company deploy`` -- provision a fresh cloud VM running OpenCompany.A thin wrapper over **Terraform**: the command generates secrets + a tfvarsfile and drives ``terraform init/apply/destroy``. Terraform owns every clouddiff --git a/cli/commands/deploy/_secrets.py b/cli/commands/deploy/_secrets.pyindex 7f011af5..e918b44e 100644--- a/cli/commands/deploy/_secrets.py+++ b/cli/commands/deploy/_secrets.py@@ -1,8 +1,8 @@-"""Secret + environment generation for ``machina deploy``.+"""Secret + environment generation for ``company deploy``.Generates the cryptographic keys + owner password the login gate needs, andassembles the full env-var map (``app_env``) that Terraform renders into the-VM's ``/etc/machinaos/machina.env`` (a systemd ``EnvironmentFile``). The map+VM's brand-specific systemd ``EnvironmentFile``. The mapcarries only the deployment overrides + secrets; the VM's ``.env`` (copiedfrom ``.env.template`` by the package build) supplies the rest of the requiredsettings, and OS env (the EnvironmentFile) wins over ``.env`` in@@ -32,7 +32,7 @@ def build_app_env(owner_email: str,owner_password: str,port: int,- data_dir: str = "/var/lib/machinaos",+ data_dir: str = "/var/lib/opencompany",) -> dict[str, str]:"""The systemd EnvironmentFile map: gate overrides + freshly minted secrets.@@ -59,6 +59,11 @@ def build_app_env("JWT_SECRET_KEY": new_key(),"SECRET_KEY": new_key(),"API_KEY_ENCRYPTION_KEY": new_key(),+ "OPENCOMPANY_OWNER_EMAIL": owner_email,+ "OPENCOMPANY_OWNER_NAME": "Owner",+ "OPENCOMPANY_OWNER_PASSWORD": owner_password,+ # Compatibility for servers deployed before the rebrand. Remove only+ # after the legacy settings aliases have completed their deprecation."MACHINA_OWNER_EMAIL": owner_email,"MACHINA_OWNER_NAME": "Owner","MACHINA_OWNER_PASSWORD": owner_password,diff --git a/cli/commands/deploy/_state.py b/cli/commands/deploy/_state.pyindex 6d157201..de0db889 100644--- a/cli/commands/deploy/_state.py+++ b/cli/commands/deploy/_state.py@@ -1,10 +1,14 @@-"""Working dir + metadata for the (single) ``machina deploy`` deployment.+"""Working dir + metadata for the (single) ``company deploy`` deployment.-The VM instance is always named ``machinaos`` (one deployment per project), so-the working dir is fixed at ``<user-data>/deploy/machinaos/``. That directory-is BOTH the Terraform working dir (rendered module + ``terraform.tfvars.json``-+ local state) and the home of a small ``deploy-meta.json`` (provider + port +-owner email) used by ``status`` / ``destroy``.+New deployments use ``opencompany``. Pre-rebrand deployments used+``machinaos`` and may live under either ``~/.machina`` or a checkout-local+``.machina`` root. Those paths are discovered before creating new state so a+rebrand can never orphan a live VM, firewall, bucket, or Terraform state.++The selected directory is BOTH the Terraform working dir (rendered module ++``terraform.tfvars.json`` + local state) and the home of a small+``deploy-meta.json`` (provider + port + owner email) used by ``status`` /+``destroy``.No module-level side effects -- ``user_data_dir`` (platformdirs) is onlyresolved when a function is called.@@ -15,10 +19,11 @@ from __future__ import annotationsimport jsonfrom pathlib import Path-from cli.platform_ import user_data_dir+from cli.platform_ import project_root, user_data_dir-#: The fixed instance / deployment name.-NAME = "machinaos"+#: Current deployment/resource name and the pre-rebrand compatibility name.+NAME = "opencompany"+LEGACY_NAME = "machinaos"_META_FILENAME = "deploy-meta.json"@@ -27,11 +32,46 @@ def deploy_root() -> Path:return user_data_dir() / "deploy"-def workdir() -> Path:- """Terraform working dir + state location for the deployment."""+def _new_workdir() -> Path:return deploy_root() / NAME+def _legacy_workdirs() -> tuple[Path, ...]:+ """All locations used by released versions before the rebrand."""+ candidates = (+ deploy_root() / LEGACY_NAME,+ Path.home() / ".machina" / "deploy" / LEGACY_NAME,+ project_root() / ".machina" / "deploy" / LEGACY_NAME,+ )+ # Preserve ordering while removing duplicates (DATA_DIR can point at one+ # of the explicit legacy roots above).+ return tuple(dict.fromkeys(candidates))+++def _has_state(path: Path) -> bool:+ return (path / _META_FILENAME).exists() or (path / "terraform.tfstate").exists()+++def workdir() -> Path:+ """Terraform state location, preferring current state then legacy state."""+ current = _new_workdir()+ if _has_state(current):+ return current+ for legacy in _legacy_workdirs():+ if _has_state(legacy):+ return legacy+ return current+++def resource_name() -> str:+ """Cloud resource id to render without replacing legacy resources."""+ meta = read_meta() or {}+ configured = meta.get("resource_name")+ if configured in {NAME, LEGACY_NAME}:+ return configured+ return LEGACY_NAME if workdir().name == LEGACY_NAME else NAME++def meta_file() -> Path:return workdir() / _META_FILENAMEdiff --git a/cli/commands/deploy/_terraform.py b/cli/commands/deploy/_terraform.pyindex 51c1b93c..d12a6454 100644--- a/cli/commands/deploy/_terraform.py+++ b/cli/commands/deploy/_terraform.py@@ -1,4 +1,4 @@-"""Terraform driver for ``machina deploy``.+"""Terraform driver for ``company deploy``.Thin helpers over the ``terraform`` CLI (via ``cli.run``): preflight that itexists, copy the chosen provider module into the deployment working dir, write@@ -27,7 +27,7 @@ def ensure_terraform() -> None:"Terraform is required but was not found on PATH.",["Install it: https://developer.hashicorp.com/terraform/install",- "Then re-run `machina deploy up`.",+ "Then re-run `company deploy up`.",],)raise typer.Exit(code=1)diff --git a/cli/commands/deploy/destroy.py b/cli/commands/deploy/destroy.pyindex 707e59ab..3a6f5060 100644--- a/cli/commands/deploy/destroy.py+++ b/cli/commands/deploy/destroy.py@@ -1,4 +1,4 @@-"""``machina deploy destroy`` -- tear down the deployment's cloud resources."""+"""``company deploy destroy`` -- tear down the deployment's cloud resources."""from __future__ import annotations@@ -17,13 +17,13 @@ def destroy_command(*, keep_state: bool = False) -> None:preflight()meta = _state.read_meta()if meta is None:- console.print("[yellow]No 'machinaos' deployment found.[/]")+ console.print("[yellow]No OpenCompany deployment found.[/]")raise typer.Exit(code=1)_terraform.ensure_terraform()wd = _state.workdir()- console.log("terraform destroy (machinaos)...")+ console.log(f"terraform destroy ({_state.resource_name()})...")_terraform.tf(wd, "destroy", "-auto-approve", "-input=false")if keep_state:@@ -31,4 +31,4 @@ def destroy_command(*, keep_state: bool = False) -> None:returnshutil.rmtree(wd, ignore_errors=True)- console.print(" [green]Destroyed[/] and removed local state for 'machinaos'.")+ console.print(" [green]Destroyed[/] and removed local OpenCompany deployment state.")diff --git a/cli/commands/deploy/providers/__init__.py b/cli/commands/deploy/providers/__init__.pyindex 461a6c10..579031a7 100644--- a/cli/commands/deploy/providers/__init__.py+++ b/cli/commands/deploy/providers/__init__.py@@ -1,4 +1,4 @@-"""Provider CLI adapters -- Stage 1 of ``machina deploy``.+"""Provider CLI adapters -- Stage 1 of ``company deploy``.Each adapter wraps the operator's already-installed cloud CLI (gcloud / aws)to verify it is present + authenticated, resolve the project/region/zone,diff --git a/cli/commands/deploy/providers/_base.py b/cli/commands/deploy/providers/_base.pyindex bcd1077b..ebf990b3 100644--- a/cli/commands/deploy/providers/_base.py+++ b/cli/commands/deploy/providers/_base.py@@ -1,4 +1,4 @@-"""The provider-CLI adapter contract (Stage 1 of ``machina deploy``)."""+"""The provider-CLI adapter contract (Stage 1 of ``company deploy``)."""from __future__ import annotationsdiff --git a/cli/commands/deploy/providers/gcp.py b/cli/commands/deploy/providers/gcp.pyindex 8f12f503..20bc391d 100644--- a/cli/commands/deploy/providers/gcp.py+++ b/cli/commands/deploy/providers/gcp.py@@ -1,4 +1,4 @@-"""gcloud adapter -- Stage 1 of ``machina deploy --provider gcp``.+"""gcloud adapter -- Stage 1 of ``company deploy --provider gcp``.Uses the operator's installed + authenticated ``gcloud`` CLI for auth/context/API-enablement; Terraform's ``google`` provider then reuses the samediff --git a/cli/commands/deploy/status.py b/cli/commands/deploy/status.pyindex 021a3794..8f9a8493 100644--- a/cli/commands/deploy/status.py+++ b/cli/commands/deploy/status.py@@ -1,4 +1,4 @@-"""``machina deploy status`` -- show the deployment's URL + health."""+"""``company deploy status`` -- show the deployment's URL + health."""from __future__ import annotations@@ -19,7 +19,7 @@ def status_command() -> None:preflight()meta = _state.read_meta()if meta is None:- console.print("[yellow]No 'machinaos' deployment found.[/]")+ console.print("[yellow]No OpenCompany deployment found.[/]")raise typer.Exit(code=1)wd = _state.workdir()@@ -28,7 +28,8 @@ def status_command() -> None:f"http://{ip}:{meta.get('port', 8080)}" if ip else None)- console.print(" Deployment: machinaos")+ console.print(" Deployment: OpenCompany")+ console.print(f" Resource ID: {_state.resource_name()}")console.print(f" Provider: {meta.get('provider', '?')}")console.print(f" External IP: {ip or '(unknown / destroyed)'}")console.print(f" URL: {url or '(unknown)'}")diff --git a/cli/commands/deploy/up.py b/cli/commands/deploy/up.pyindex 27a06e1f..6f615dc1 100644--- a/cli/commands/deploy/up.py+++ b/cli/commands/deploy/up.py@@ -1,4 +1,4 @@-"""``machina deploy up`` -- provision + run MachinaOs on a fresh cloud VM.+"""``company deploy up`` -- provision + run OpenCompany on a fresh cloud VM.Two stages:STAGE 1 (cloud CLI): the provider adapter verifies the CLI is installed +@@ -8,7 +8,8 @@ Two stages:pack -> write tfvars -> ``terraform init`` + ``apply`` -> read outputs ->poll ``/health`` -> print URL + credentials.-The VM instance is always named ``machinaos`` (one deployment per project).+New VM instances are named ``opencompany``. Existing ``machinaos`` resources+retain that durable id and Terraform state during upgrades."""from __future__ import annotations@@ -35,7 +36,7 @@ def _npm_pack(root: Path) -> str:if not out:error_block("`npm pack` produced no output.",- ["Ensure Node/npm are installed and you are in a MachinaOs checkout."],+ ["Ensure Node/npm are installed and you are in an OpenCompany checkout."],)raise typer.Exit(code=1)tarball = out.strip().splitlines()[-1].strip()@@ -85,16 +86,22 @@ def up_command(cli.ensure_terraform_auth()cli.enable_apis(ctx)+ resource_name = _state.resource_name()if _state.exists() and (_state.workdir() / "terraform.tfstate").exists():console.print(- "[yellow]A 'machinaos' deployment already exists. Re-running will "- "re-apply Terraform (safe), or run `machina deploy destroy` first.[/]"+ "[yellow]An OpenCompany deployment already exists. Re-running will "+ "re-apply Terraform (safe), or run `company deploy destroy` first.[/]")# --- STAGE 2: secrets + source + Terraform -----------------------------pw = owner_password or _secrets.new_password()pw_generated = owner_password is None- app_env = _secrets.build_app_env(owner_email=owner_email, owner_password=pw, port=port)+ app_env = _secrets.build_app_env(+ owner_email=owner_email,+ owner_password=pw,+ port=port,+ data_dir=f"/var/lib/{resource_name}",+ )pack_tarball = _npm_pack(root) if source == "local" else ""@@ -104,7 +111,8 @@ def up_command("allow_cidr": allow_cidr,"app_env": app_env,"source_mode": source,- "machinaos_version": version,+ "opencompany_version": version,+ "resource_name": resource_name,"pack_tarball": pack_tarball,}tfvars.update(cli.tfvars_extra(ctx))@@ -112,7 +120,14 @@ def up_command(wd = _state.workdir()_terraform.prepare_workdir(wd, provider)_terraform.write_tfvars(wd, tfvars)- _state.write_meta({"provider": provider, "port": port, "owner_email": owner_email})+ _state.write_meta(+ {+ "provider": provider,+ "port": port,+ "owner_email": owner_email,+ "resource_name": resource_name,+ }+ )console.log("terraform init...")_terraform.tf(wd, "init", "-input=false")@@ -123,7 +138,9 @@ def up_command(url = _terraform.tf_output(wd, "url") or (f"http://{ip}:{port}" if ip else None)console.print()- console.print(" [bold green]VM 'machinaos' provisioned.[/]")+ console.print(" [bold green]OpenCompany VM provisioned.[/]")+ if resource_name == _state.LEGACY_NAME:+ console.print(" Resource ID: machinaos (retained for upgrade compatibility)")if ip:console.print(f" External IP: {ip}")if url:@@ -136,11 +153,11 @@ def up_command(console.print()if url:- console.log("The VM is installing MachinaOs (Node + npm + build); this takes a few minutes.")+ console.log("The VM is installing OpenCompany (Node + npm + build); this takes a few minutes.")if _poll_health(url):console.print(f" [bold green]Ready.[/] Open {url} and log in.")else:console.print(" [yellow]Still provisioning.[/] Check again with "- "`machina deploy status` in a few minutes."+ "`company deploy status` in a few minutes.")diff --git a/cli/commands/dev.py b/cli/commands/dev.pyindex b55f2071..f55b7c4f 100644--- a/cli/commands/dev.py+++ b/cli/commands/dev.py@@ -1,4 +1,4 @@-"""``machina dev`` -- replaces ``scripts/dev.js``.+"""``company dev`` -- replaces ``scripts/dev.js``.Development launcher: validates the build, frees ports, clears theVite dep cache (fixes "Outdated Optimize Dep" errors), then spawns@@ -79,10 +79,10 @@ def dev_command(),) -> None:# Layer ``.env.dev`` (committed) on top of ``.env.template`` + ``.env``- # so dev state lands at ``<repo>/.machina/`` (per-checkout) instead- # of ``~/.machina/`` (user home). Called BEFORE ``preflight()`` so+ # so dev state lands at ``<repo>/.opencompany/`` (per-checkout) instead+ # of ``~/.opencompany/`` (user home). Called BEFORE ``preflight()`` so# ``load_config``'s ``setdefault`` pass sees the dev values already- # in ``os.environ``. ``machina start`` / ``machina daemon`` skip+ # in ``os.environ``. ``company start`` / ``company daemon`` skip# this hook, falling through to the ``.env.template`` defaults.load_dev_overrides()cfg, root = preflight()@@ -90,7 +90,7 @@ def dev_command(validate_build(root)- console.print("\n[bold]=== MachinaOS Starting ===[/]\n")+ console.print("\n[bold]=== OpenCompany Starting ===[/]\n")console.print(f"Platform: {platform_name()}")console.print(f"Mode: {'Daemon (uvicorn)' if daemon else 'Development (uvicorn)'}"diff --git a/cli/commands/docs.py b/cli/commands/docs.pyindex ceec7bc0..051b6a39 100644--- a/cli/commands/docs.py+++ b/cli/commands/docs.py@@ -1,4 +1,4 @@-"""``machina docs nodes`` -- replaces ``scripts/build-node-docs-index.js``.+"""``company docs nodes`` -- replaces ``scripts/build-node-docs-index.js``.Walks ``docs-internal/node-logic-flows/<category>/<node>.md``, scrapeseach doc's first H1, and rewrites the AUTO-GENERATED-INDEX block indiff --git a/cli/commands/serve.py b/cli/commands/serve.pyindex eec8e429..c94a469e 100644--- a/cli/commands/serve.py+++ b/cli/commands/serve.py@@ -1,12 +1,12 @@-"""``machina serve`` -- single-port production runtime.+"""``company serve`` -- single-port production runtime.Runs the app on ONE public port: uvicorn serves the REST API + WebSocket +the built React SPA (via the ``SERVE_STATIC_CLIENT`` block in``server/main.py``), plus the Node.js code-exec sidecar on its own internalport. Used locally for a production-shaped run AND as the systemd-``ExecStart`` on a VM provisioned by ``machina deploy``.+``ExecStart`` on a VM provisioned by ``company deploy``.-Unlike ``machina start`` (which runs a separate static-client server + the+Unlike ``company start`` (which runs a separate static-client server + thebackend + temporal on multiple ports), ``serve`` is single-port and servesthe client from the backend itself. The Node sidecar is NOT launched by``start``/``dev`` today, so ``serve`` adds it (the JS/TS executor nodes need@@ -56,7 +56,7 @@ def serve_command(port: int | None = None) -> None:kill_port(p)console.print()- console.print(" [bold]MachinaOS[/] serve (single-port)")+ console.print(" [bold]OpenCompany[/] serve (single-port)")console.print(f" App: http://0.0.0.0:{bind_port} (API + WebSocket + SPA)")console.print(f" Sidecar: 127.0.0.1:{cfg.nodejs_port} (JS/TS executor)")console.print()diff --git a/cli/commands/start.py b/cli/commands/start.pyindex 6c7fa4c8..d21a2710 100644--- a/cli/commands/start.py+++ b/cli/commands/start.py@@ -1,4 +1,4 @@-"""``machina start`` -- replaces ``scripts/start.js``.+"""``company start`` -- replaces ``scripts/start.js``.Production launcher: validates the build exists, runs the sqlalchemypreflight probe (Windows Defender workaround), frees configured ports,@@ -84,7 +84,7 @@ def _sqlalchemy_preflight(root: Path) -> None:details.extend([f"Check that {server_venv(root)} exists and is populated.",- "Run `machina build` to recreate the server venv.",+ "Run `company build` to recreate the server venv.",])details.append("See docs-internal/errors.md #1 / #1a for details.")@@ -121,13 +121,18 @@ def _read_version(root: Path) -> str:def _build_specs(root: Path, cfg, *, temporal_running: bool) -> list[ServiceSpec]:- # Bind host: ``MACHINA_BIND_HOST`` overrides the auto-pick (escape+ # Bind host: ``OPENCOMPANY_BIND_HOST`` overrides the auto-pick. The+ # pre-rebrand ``MACHINA_BIND_HOST`` spelling remains a compatibility# hatch when the platform detection is wrong or the operator wants- # a specific interface). Default — native Windows stays private on+ # a specific interface. By default, native Windows stays private on# 127.0.0.1; WSL + POSIX bind 0.0.0.0 so the service is reachable# both via in-VM ``localhost`` AND via the WSL VM IP from the# Windows host, regardless of WSL2's localhostForwarding state.- backend_host = os.environ.get("MACHINA_BIND_HOST") or ("127.0.0.1" if IS_WINDOWS else "0.0.0.0")+ backend_host = (+ os.environ.get("OPENCOMPANY_BIND_HOST")+ or os.environ.get("MACHINA_BIND_HOST")+ or ("127.0.0.1" if IS_WINDOWS else "0.0.0.0")+ )specs: list[ServiceSpec] = [ServiceSpec(@@ -160,7 +165,7 @@ def start_command() -> None:version = _read_version(root)console.print()- console.print(f" [bold]MachinaOS[/] v{version}")+ console.print(f" [bold]OpenCompany[/] v{version}")console.print(f" Frontend: http://localhost:{cfg.client_port}")console.print(f" Backend: http://localhost:{cfg.backend_port}")console.print(f" Platform: {platform_name()}")diff --git a/cli/commands/stop.py b/cli/commands/stop.pyindex c4ce18f0..518a4760 100644--- a/cli/commands/stop.py+++ b/cli/commands/stop.py@@ -1,6 +1,6 @@-"""``machina stop`` -- replaces ``scripts/stop.js``.+"""``company stop`` -- replaces ``scripts/stop.js``.-Kills configured ports + orphaned MachinaOS processes + the Temporal+Kills configured ports + orphaned OpenCompany processes + the Temporalbinary. Same exit-code semantics as the JS version: 0 on full success,1 if any port is still in use afterward."""@@ -16,7 +16,7 @@ from cli.colors import consolefrom cli.platform_ import platform_namefrom cli.ports import (kill_by_pattern,- kill_orphaned_machina_processes,+ kill_orphaned_opencompany_processes,)@@ -24,7 +24,7 @@ def stop_command() -> None:cfg, root = preflight()console.print()- console.print("[bold]Stopping MachinaOS services...[/]")+ console.print("[bold]Stopping OpenCompany services...[/]")console.print(f"Platform: {platform_name()}")console.print(f"Ports: {', '.join(str(p) for p in cfg.all_ports)}")console.print("Temporal: enabled" if cfg.temporal_enabled else "Temporal: disabled")@@ -51,11 +51,11 @@ def stop_command() -> None:f"[green]\\[OK][/] Temporal: Killed {len(temporal_pids)} process(es)")- orphaned_pids = kill_orphaned_machina_processes(str(root))+ orphaned_pids = kill_orphaned_opencompany_processes(str(root))if orphaned_pids:time.sleep(0.2) # let DB locks releaseconsole.print(- f"[green]\\[OK][/] Orphaned: Killed {len(orphaned_pids)} MachinaOS process(es)"+ f"[green]\\[OK][/] Orphaned: Killed {len(orphaned_pids)} OpenCompany process(es)")console.print(f" PIDs: {', '.join(str(p) for p in orphaned_pids)}")diff --git a/cli/commands/version.py b/cli/commands/version.pyindex af5bd48a..a3acd31f 100644--- a/cli/commands/version.py+++ b/cli/commands/version.py@@ -1,4 +1,4 @@-"""``machina version sync`` -- replaces ``scripts/sync-version.js``.+"""``company version sync`` -- replaces ``scripts/sync-version.js``.Reads the latest git tag (or one supplied on the command line), stripsthe ``v`` prefix, and writes the resulting semver into bothdiff --git a/cli/config.py b/cli/config.pyindex a928da4c..b74d242b 100644--- a/cli/config.py+++ b/cli/config.py@@ -3,14 +3,15 @@Stdlib-only env-var loader. Three env files, lowest precedence first:1. ``.env.template`` — canonical production defaults. Ships with every- install. ``DATA_DIR=~/.machina`` (user home) is the daemon- behaviour: ``machina start`` / ``machina daemon`` use these.+ install. ``DATA_DIR=~/.opencompany`` (user home) is the daemon+ behaviour: ``company start`` / ``company daemon`` use these.2. ``.env`` — user overrides (created by ``scripts/postinstall.js`` on- ``npm install -g machinaos``). Gitignored.- 3. ``.env.dev`` — dev-mode overrides. Loaded ONLY by ``machina dev``- via :func:`load_dev_overrides`. Pins ``DATA_DIR=.machina`` so- per-checkout dev state lives at ``<repo>/.machina/`` instead of- ``~/.machina/``. Committed to git.+ ``npm install -g opencompany``). Gitignored.+ 3. ``.env.dev`` — dev-mode overrides. Loaded ONLY by ``company dev``+ via :func:`load_dev_overrides`. Pins ``DATA_DIR=.opencompany`` so+ per-checkout dev state lives at ``<repo>/.opencompany/`` instead of+ ``~/.opencompany/``. Committed to git. Existing explicit ``.machina``+ values remain valid and are intentionally honoured.Process env (``os.environ``) wins over all three. Merged file valuesare pushed into ``os.environ`` via ``setdefault`` so downstream@@ -54,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 machinaos``) or restore the template."+ "reinstall (``npm install -g opencompany``) or restore the template.")return raw@@ -89,7 +90,7 @@ class Config:@propertydef all_ports(self) -> list[int]:# Ports the supervisor frees pre-spawn and verifies are released- # on ``machina stop``. ``temporal_port`` (gRPC) and+ # on ``company stop``. ``temporal_port`` (gRPC) and# ``temporal_ui_port`` are bound by the same ``temporal server# start-dev`` process, so killing one kills both — listing both# only matters when cleaning up stale orphans on either port.@@ -106,18 +107,18 @@ class Config:def load_dev_overrides(root: Path | None = None) -> None:"""Layer ``.env.dev`` on top of ``.env.template`` + ``.env``.- Called by ``machina dev`` BEFORE :func:`load_config` so dev-only env- vars (notably ``DATA_DIR=.machina``, the per-checkout dev state+ Called by ``company dev`` BEFORE :func:`load_config` so dev-only env+ vars (notably ``DATA_DIR=.opencompany``, the per-checkout dev stateroot) land in ``os.environ`` first. ``load_config`` then sees themvia its own ``setdefault`` pass and skips its template fallbacks.Uses ``setdefault`` so an explicit shell override- (``DATA_DIR=/foo machina dev``) still wins. Missing ``.env.dev``+ (``DATA_DIR=/foo company dev``) still wins. Missing ``.env.dev``file is a no-op — production-style invocations never trigger this.- The daemon path (``machina start`` / ``machina daemon``) does not+ The daemon path (``company start`` / ``company daemon``) does notcall this, so daemon installs keep the ``.env.template`` default- of ``DATA_DIR=~/.machina``.+ of ``DATA_DIR=~/.opencompany``."""root = root or project_root()for key, value in _load_env_file(root / ".env.dev").items():@@ -142,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 machinaos``) or restore the template "+ "Reinstall (``npm install -g opencompany``) or restore the template ""from the source tree.")diff --git a/cli/platform_.py b/cli/platform_.pyindex 6ccd7dcc..f0a52ee5 100644--- a/cli/platform_.py+++ b/cli/platform_.py@@ -8,7 +8,7 @@ inline; every consumer imports the named helper. This keeps layoutknowledge centralised so a future repo rename / directory relocationis a single-file edit.-The CLI is **independent of the server's uv environment**: ``machina``+The CLI is **independent of the server's uv environment**: ``company``is installable via pipx / system Python without involving uv, andshells out to ``uv run --no-sync ...`` (via :func:`cli.run.uv_run`)for any server-side command. :func:`server_venv` exists so build /@@ -93,7 +93,7 @@ def server_venv(root: Path | None = None) -> Path:this -- relative overrides resolve against ``server/`` (matchinguv's own behaviour), absolute paths are used verbatim.- The CLI itself does NOT live in this venv; ``machina`` is+ The CLI itself does NOT live in this venv; ``company`` isindependently installable (pipx / system python). This helperexists so build / clean / preflight code can check or report theserver venv's location without anyone composing the path inline.@@ -113,13 +113,13 @@ def node_modules_dir(root: Path | None = None) -> Path:def client_dist_entry(root: Path | None = None) -> Path:"""The Vite-built client entrypoint -- proof that the client side- of ``machina build`` completed."""+ of ``company build`` completed."""return _root(root) / "client" / "dist" / "index.html"def static_client_script(root: Path | None = None) -> Path:"""The Node.js static-server script that serves the built client- (used by ``machina start``)."""+ (used by ``company start``)."""return _root(root) / "scripts" / "serve-client.js"@@ -129,13 +129,42 @@ def static_client_script(root: Path | None = None) -> Path:# inside each helper, NOT at module level, so the rest of# ``cli.platform_`` (path-prefix helpers, project_root, the platform# booleans) keeps loading even when the wheel hasn't been installed-# yet -- the recovery-verb scenario (``machina clean`` against a+# yet -- the recovery-verb scenario (``company clean`` against a# half-broken env). Callers that actually need a user dir trigger the# import on first call; if missing, the natural ``ModuleNotFoundError``# surfaces at that callsite, not at every CLI import.# ----------------------------------------------------------------------------_APP_NAME = "MachinaOs"+_APP_NAME = "OpenCompany"+_LEGACY_APP_NAME = "MachinaOs"+++def _prefer_existing_legacy(new_path: Path, legacy_path: Path) -> Path:+ """Use an existing pre-rebrand directory until the user migrates it.++ New installations resolve to the OpenCompany path. An upgrade must not+ silently strand databases, daemon state, or Terraform state that already+ lives in a legacy directory. The repository ships+ ``.opencompany/workflows`` seed files, so mere directory existence is not+ evidence that runtime state has migrated: a legacy root with real state+ still wins while the canonical root contains only those seeds.+ """++ def has_runtime_state(path: Path) -> bool:+ if not path.exists():+ return False+ if not path.is_dir():+ return True+ try:+ return any(child.name != "workflows" for child in path.iterdir())+ except OSError:+ # If an existing directory cannot be inspected, do not redirect+ # away from it and risk hiding state behind a permissions issue.+ return True++ if has_runtime_state(legacy_path) and not has_runtime_state(new_path):+ return legacy_path+ return new_pathdef user_data_dir() -> Path:@@ -143,14 +172,27 @@ def user_data_dir() -> Path:Honours the project's ``DATA_DIR`` env override (see``.env.template``) -- the convention shared with the server's- ``core.paths.machina_root``. Otherwise delegates to platformdirs.+ ``core.paths.opencompany_root``. Otherwise delegates to platformdirs."""override = os.environ.get("DATA_DIR")if override:- return Path(override).expanduser()+ configured = Path(override).expanduser()+ # Released versions commonly configured ``~/.machina`` or+ # ``<repo>/.machina``. The new defaults use the sibling+ # ``.opencompany`` directory; discover the old sibling until real+ # runtime state is written to the canonical location. Custom DATA_DIR+ # values remain exact operator choices and are never rewritten.+ if configured.name == ".opencompany":+ return _prefer_existing_legacy(+ configured, configured.with_name(".machina")+ )+ return configuredimport platformdirs- return platformdirs.user_data_path(_APP_NAME, appauthor=_APP_NAME)+ return _prefer_existing_legacy(+ platformdirs.user_data_path(_APP_NAME, appauthor=_APP_NAME),+ platformdirs.user_data_path(_LEGACY_APP_NAME, appauthor=_LEGACY_APP_NAME),+ )def user_cache_dir() -> Path:@@ -158,18 +200,27 @@ def user_cache_dir() -> Path:Matches ``server/core/paths.py::packages_dir``."""import platformdirs- return platformdirs.user_cache_path(_APP_NAME, appauthor=_APP_NAME)+ return _prefer_existing_legacy(+ platformdirs.user_cache_path(_APP_NAME, appauthor=_APP_NAME),+ platformdirs.user_cache_path(_LEGACY_APP_NAME, appauthor=_LEGACY_APP_NAME),+ )def user_config_dir() -> Path:"""User config directory."""import platformdirs- return platformdirs.user_config_path(_APP_NAME, appauthor=_APP_NAME)+ return _prefer_existing_legacy(+ platformdirs.user_config_path(_APP_NAME, appauthor=_APP_NAME),+ platformdirs.user_config_path(_LEGACY_APP_NAME, appauthor=_LEGACY_APP_NAME),+ )def user_log_dir() -> Path:"""User log directory."""import platformdirs- return platformdirs.user_log_path(_APP_NAME, appauthor=_APP_NAME)+ return _prefer_existing_legacy(+ platformdirs.user_log_path(_APP_NAME, appauthor=_APP_NAME),+ platformdirs.user_log_path(_LEGACY_APP_NAME, appauthor=_LEGACY_APP_NAME),+ )diff --git a/cli/ports.py b/cli/ports.pyindex 449321c8..ea5da488 100644--- a/cli/ports.py+++ b/cli/ports.py@@ -36,7 +36,7 @@ def _ancestor_pids() -> set[int]:Used by the pattern-matching kill functions below so we neverterminate our own parent / grandparent. When invoked through thenpm bin shim the chain is ``powershell -> node.exe (bin/cli.js)- -> python.exe (-m cli ...)`` -- if ``kill_orphaned_machina_processes``+ -> python.exe (-m cli ...)`` -- if ``kill_orphaned_opencompany_processes``matches ``node.exe`` (its cmdline carries the npm install path),killing it tears down stdio mid-execution and the Python childexits with whatever garbage code Windows assigns to an@@ -124,7 +124,7 @@ def kill_pid(pid: int, *, graceful_timeout: float = 3.0) -> bool:# from a prior session) -- none of them are in# our console group, so this path fires every# time on Windows and used to crash- # ``machina stop``.+ # ``company stop``.proc.terminate()else:proc.terminate()@@ -189,7 +189,7 @@ def kill_by_pattern(pattern: str, *, root_dir: str | None = None) -> list[int]:return killed-def kill_orphaned_machina_processes(+def kill_orphaned_opencompany_processes(root_dir: str, *, exclude_substring: str | None = None) -> list[int]:"""Kill stray python/node processes whose cmdline references the project root."""@@ -215,3 +215,7 @@ def kill_orphaned_machina_processes(except (psutil.NoSuchProcess, psutil.AccessDenied):passreturn killed+++# Deprecated import alias for third-party scripts that imported the old helper.+kill_orphaned_machina_processes = kill_orphaned_opencompany_processesdiff --git a/cli/run.py b/cli/run.pyindex 7ba89feb..7816b3ee 100644--- a/cli/run.py+++ b/cli/run.py@@ -54,7 +54,7 @@ def uv_run(*args: str) -> list[str]:(https://docs.astral.sh/uv/concepts/projects/sync/).``--no-sync`` skips the per-invocation lockfile re-check that ``uv- run`` does by default. ``machina build`` is the single place that+ run`` does by default. ``company build`` is the single place thatactually re-syncs; every other entry point (start, dev, daemon,supervised runtimes, preflight) trusts the lockfile and justactivates the env. This is the documented optimisation for hotdiff --git a/cli/terraform/gcp/main.tf b/cli/terraform/gcp/main.tfindex e99d2685..b7e0b59b 100644--- a/cli/terraform/gcp/main.tf+++ b/cli/terraform/gcp/main.tf@@ -14,11 +14,13 @@ provider "google" {}locals {- # The instance is always named "machinaos" (one deployment per project).+ # ``resource_name`` is persisted by the CLI. Existing deployments retain+ # ``machinaos`` to avoid replacing live resources; new deployments use+ # ``company``.use_local = var.source_mode == "local"- res_name = "machinaos"- bucket_name = "${var.project}-machinaos"- object_name = "machinaos.tgz"+ res_name = var.resource_name+ bucket_name = "${var.project}-${var.resource_name}"+ object_name = "${var.resource_name}.tgz"}# --- Artifact bucket + object (local source only) --------------------------@@ -42,7 +44,7 @@ resource "google_storage_bucket_object" "pkg" {resource "google_service_account" "vm" {account_id = local.res_name- display_name = "MachinaOs VM"+ display_name = "OpenCompany VM"}resource "google_storage_bucket_iam_member" "vm_read" {@@ -100,11 +102,12 @@ resource "google_compute_instance" "vm" {metadata = {startup-script = templatefile("${path.module}/startup.sh.tftpl", {- app_env = var.app_env- source_mode = var.source_mode- version = var.machinaos_version- bucket = local.use_local ? google_storage_bucket.artifact[0].name : ""- object = local.object_name+ app_env = var.app_env+ source_mode = var.source_mode+ version = var.opencompany_version+ resource_name = var.resource_name+ bucket = local.use_local ? google_storage_bucket.artifact[0].name : ""+ object = local.object_name})}diff --git a/cli/terraform/gcp/startup.sh.tftpl b/cli/terraform/gcp/startup.sh.tftplindex d2a5bfc4..8075c1f7 100644--- a/cli/terraform/gcp/startup.sh.tftpl+++ b/cli/terraform/gcp/startup.sh.tftpl@@ -1,57 +1,57 @@#!/bin/bash-# MachinaOs VM startup script (rendered by Terraform `templatefile`).-# Installs the toolchain, installs MachinaOs (npm), writes the login-gate env-# file, and runs it under systemd via `machina serve`.+# OpenCompany VM startup script (rendered by Terraform `templatefile`).+# Installs the toolchain, installs OpenCompany (npm), writes the login-gate env+# file, and runs it under systemd via `company serve`.## NOTE on syntax: Terraform renders this file with templatefile(), so any# dollar-brace sequence is a Terraform interpolation. Bash variables are-# therefore written UNBRACED ($TOKEN, $MACHINA_BIN) so Terraform leaves them+# therefore written UNBRACED ($TOKEN, $OPENCOMPANY_BIN) so Terraform leaves them# alone. `set -x` is intentionally NOT used so secrets in the env file are# never echoed to the serial console.set -euo pipefailexport DEBIAN_FRONTEND=noninteractive-echo "[machinaos] installing toolchain..."+echo "[${resource_name}] installing OpenCompany toolchain..."apt-get updateapt-get install -y curl ca-certificates git build-essential pkg-config libffi-dev libssl-devcurl -fsSL https://deb.nodesource.com/setup_22.x | bash -apt-get install -y nodejscorepack enable || true-# uv on a stable system path (machina build uses it to sync the Python venv).+# uv on a stable system path (company build uses it to sync the Python venv).curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/usr/local/bin sh-echo "[machinaos] installing MachinaOs package..."+echo "[${resource_name}] installing OpenCompany package..."%{ if source_mode == "local" ~}TOKEN=$(curl -s -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token" | python3 -c 'import sys, json; print(json.load(sys.stdin)["access_token"])')-curl -fsS -H "Authorization: Bearer $TOKEN" -o /tmp/machinaos.tgz "https://storage.googleapis.com/storage/v1/b/${bucket}/o/${object}?alt=media"-npm install -g /tmp/machinaos.tgz+curl -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 machinaos@${version}+npm install -g opencompany@${version}%{ endif ~}-echo "[machinaos] writing login-gate env..."-mkdir -p /etc/machinaos-cat > /etc/machinaos/machina.env <<'MACHINA_ENV_EOF'+echo "[${resource_name}] writing login-gate env..."+mkdir -p /etc/${resource_name}+cat > /etc/${resource_name}/opencompany.env <<'OPENCOMPANY_ENV_EOF'%{ for k, v in app_env ~}${k}=${v}%{ endfor ~}-MACHINA_ENV_EOF-chmod 600 /etc/machinaos/machina.env+OPENCOMPANY_ENV_EOF+chmod 600 /etc/${resource_name}/opencompany.env-mkdir -p /var/lib/machinaos+mkdir -p /var/lib/${resource_name}-echo "[machinaos] installing systemd service..."-MACHINA_BIN=$(command -v machina)-cat > /etc/systemd/system/machinaos.service <<SERVICE_EOF+echo "[${resource_name}] installing systemd service..."+OPENCOMPANY_BIN=$(command -v company || command -v machina)+cat > /etc/systemd/system/${resource_name}.service <<SERVICE_EOF[Unit]-Description=MachinaOs (single login-gated instance)+Description=OpenCompany (single login-gated instance)After=network-online.targetWants=network-online.target[Service]Type=simple-EnvironmentFile=/etc/machinaos/machina.env-ExecStart=$MACHINA_BIN serve+EnvironmentFile=/etc/${resource_name}/opencompany.env+ExecStart=$OPENCOMPANY_BIN serveRestart=on-failureRestartSec=5TimeoutStopSec=20@@ -61,5 +61,5 @@ WantedBy=multi-user.targetSERVICE_EOFsystemctl daemon-reload-systemctl enable --now machinaos-echo "[machinaos] done."+systemctl enable --now ${resource_name}+echo "[${resource_name}] OpenCompany is ready."diff --git a/cli/terraform/gcp/variables.tf b/cli/terraform/gcp/variables.tfindex 294f8348..dac7aaa6 100644--- a/cli/terraform/gcp/variables.tf+++ b/cli/terraform/gcp/variables.tf@@ -1,5 +1,5 @@# Shared deployment variable interface (every provider module declares the-# same set, so `machina deploy` writes one tfvars shape regardless of provider).+# same set, so `company deploy` writes one tfvars shape regardless of provider).variable "project" {type = string@@ -36,9 +36,14 @@ variable "source_mode" {description = "Install source: 'local' (npm pack tarball via bucket) or 'release' (npm registry)."}-variable "machinaos_version" {+variable "opencompany_version" {type = string- description = "machinaos version to install when source_mode = 'release'."+ description = "opencompany version to install when source_mode = 'release'."+}++variable "resource_name" {+ type = string+ description = "Durable cloud/systemd id. New deploys use opencompany; upgrades retain machinaos."}variable "pack_tarball" {@@ -50,5 +55,5 @@ variable "pack_tarball" {variable "app_env" {type = map(string)sensitive = true- description = "KEY=VALUE map rendered into the VM's /etc/machinaos/machina.env."+ description = "KEY=VALUE map rendered into the VM's brand-specific systemd EnvironmentFile."}diff --git a/cli/tests/conftest.py b/cli/tests/conftest.pyindex bbfbad4d..1a738b85 100644--- a/cli/tests/conftest.py+++ b/cli/tests/conftest.py@@ -1,4 +1,4 @@-"""Shared fixtures for ``machina`` tests.+"""Shared fixtures for ``company`` tests.The release-pipeline config tests need to read files that live inpnpm workspace members (``client/``, ``server/nodejs/``) withoutdiff --git a/cli/tests/test_build_compile_pipeline.py b/cli/tests/test_build_compile_pipeline.pyindex e7bd5416..0dc6b9e3 100644--- a/cli/tests/test_build_compile_pipeline.py+++ b/cli/tests/test_build_compile_pipeline.py@@ -1,8 +1,8 @@-"""Tests for the compile-pipeline additions to ``machina build``.+"""Tests for the compile-pipeline additions to ``company build``.Covers the two new steps wired into ``cli.commands.build.build_command``:-- ``[3/6] Building Node.js sidecar`` -> ``pnpm --filter machinaos-nodejs-executor run build``+- ``[3/6] Building Node.js sidecar`` -> ``pnpm --filter opencompany-nodejs-executor run build``- ``[5/6] Compiling Python bytecode`` -> ``uv run python -O -m compileall -q -j 0 ...``The orchestrator is exercised once per test with every external surface@@ -125,10 +125,10 @@ def test_build_invokes_sidecar_pnpm_filter(tmp_path: Path):captured,lambda c: c[:1] == ["pnpm"]and "--filter" in c- and "machinaos-nodejs-executor" in c,+ and "opencompany-nodejs-executor" in c,)assert match is not None, (- "expected `pnpm --filter machinaos-nodejs-executor run build` in "+ "expected `pnpm --filter opencompany-nodejs-executor run build` in "f"{[c['argv'] for c in captured]}")argv = match[1]["argv"]@@ -144,7 +144,7 @@ def test_sidecar_build_runs_after_client_build(tmp_path: Path):"""captured = _run_build_capture_invocations(tmp_path)client = _find_call(captured, lambda c: "react-flow-client" in c)- sidecar = _find_call(captured, lambda c: "machinaos-nodejs-executor" in c)+ sidecar = _find_call(captured, lambda c: "opencompany-nodejs-executor" in c)assert client is not None and sidecar is not Noneassert (client[0] < sidecar[0]@@ -154,7 +154,7 @@ def test_sidecar_build_runs_after_client_build(tmp_path: Path):def test_only_one_sidecar_bundle_invocation(tmp_path: Path):"""Sidecar bundle must fire exactly once per build."""captured = _run_build_capture_invocations(tmp_path)- matches = [c for c in captured if "machinaos-nodejs-executor" in c["argv"]]+ matches = [c for c in captured if "opencompany-nodejs-executor" in c["argv"]]assert len(matches) == 1, f"expected exactly 1 sidecar bundle, got {len(matches)}"@@ -303,7 +303,7 @@ def test_temporal_install_is_fatal_on_failure(tmp_path: Path):"""Temporal is a required runtime dep, so the install step must NOTpass ``check=False`` — a pooch failure (network, SHA mismatch,missing asset) has to abort the build cleanly rather than silently- deferring the failure to ``machina start``.+ deferring the failure to ``company start``."""captured = _run_build_capture_invocations(tmp_path)match = _find_temporal_install_call(captured)@@ -347,7 +347,7 @@ def test_pipeline_order_client_then_sidecar_then_uv_then_compileall(tmp_path: Pa"""Full ordering invariant for the new pipeline:1. client build (``pnpm --filter react-flow-client run build``)- 2. sidecar bundle (``pnpm --filter machinaos-nodejs-executor run build``)+ 2. sidecar bundle (``pnpm --filter opencompany-nodejs-executor run build``)3. uv sync (``uv sync``)4. compileall (``uv run python -O -m compileall ...``)@@ -356,7 +356,7 @@ def test_pipeline_order_client_then_sidecar_then_uv_then_compileall(tmp_path: Pa"""captured = _run_build_capture_invocations(tmp_path)client = _find_call(captured, lambda c: "react-flow-client" in c)- sidecar = _find_call(captured, lambda c: "machinaos-nodejs-executor" in c)+ sidecar = _find_call(captured, lambda c: "opencompany-nodejs-executor" in c)uv_sync = _find_call(captured, lambda c: c[:2] == ["uv", "sync"])compileall = _find_call(captured, lambda c: "compileall" in c)for label, match in (diff --git a/cli/tests/test_clean.py b/cli/tests/test_clean.pyindex 471234e0..c3dd7496 100644--- a/cli/tests/test_clean.py+++ b/cli/tests/test_clean.py@@ -20,16 +20,17 @@ def test_targets_list_is_stable():]-def test_machina_keep_preserves_workflows_deploy_and_packages():- """``workflows/`` (shipped example seeds), ``deploy/`` (``machina+def test_opencompany_keep_preserves_workflows_deploy_and_packages():+ """``workflows/`` (shipped example seeds), ``deploy/`` (``companydeploy``'s Terraform working dirs + state for LIVE cloud resources —wiping it orphans the VM/firewall; only ``deploy destroy`` removes it)- and ``packages/`` (MachinaOs-managed binaries: Temporal CLI ~114 MB,+ and ``packages/`` (OpenCompany-managed binaries: Temporal CLI ~114 MB,Stripe CLI, shared npm tree — re-fetchable but expensive; wiping itforced a full Temporal re-download on every clean+build cycle) live- under ``.machina/``; ``clean`` must never wipe any of them. Pin the+ under either supported state root; ``clean`` must never wipe any of them. Pin thekeep list so accidental additions/removals surface in review."""- assert clean._MACHINA_KEEP == frozenset({"workflows", "deploy", "packages"})+ assert clean._OPENCOMPANY_KEEP == frozenset({"workflows", "deploy", "packages"})+ assert clean._STATE_DIRS == (".opencompany", ".machina")def test_rmtree_with_retry_handles_oserror(tmp_path: Path):diff --git a/cli/tests/test_cli.py b/cli/tests/test_cli.pyindex 13a7fd4f..db29507e 100644--- a/cli/tests/test_cli.py+++ b/cli/tests/test_cli.py@@ -13,10 +13,11 @@ runner = CliRunner()def test_help_lists_stop():result = runner.invoke(app, ["--help"])assert result.exit_code == 0+ assert "company" in result.outputassert "stop" in result.outputdef test_stop_help():result = runner.invoke(app, ["stop", "--help"])assert result.exit_code == 0- assert "Stop all MachinaOS services" in result.output+ assert "Stop all OpenCompany services" in result.outputdiff --git a/cli/tests/test_cli_branding.py b/cli/tests/test_cli_branding.pynew file mode 100644index 00000000..2c5a6e1a--- /dev/null+++ b/cli/tests/test_cli_branding.py@@ -0,0 +1,63 @@+"""Executable-name contracts for the OpenCompany CLI distribution."""++from __future__ import annotations++import json+import tomllib++from cli.platform_ import project_root+++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"] == "opencompany"+ assert package["bin"] == {+ "company": "./bin/cli.js",+ "machina": "./bin/machina.js",+ }+ assert "opencompany" not in package["bin"]+++def test_python_scripts_expose_company_and_deprecated_machina_only():+ with (ROOT / "pyproject.toml").open("rb") as source:+ project = tomllib.load(source)["project"]++ assert project["name"] == "opencompany-cli"+ assert project["scripts"] == {+ "company": "cli.cli:app",+ "machina": "cli.cli:app",+ }+ assert "opencompany" not in project["scripts"]+++def test_cloud_service_resolves_company_then_legacy_machina():+ template = (ROOT / "cli" / "terraform" / "gcp" / "startup.sh.tftpl").read_text(+ encoding="utf-8"+ )++ assert "npm install -g opencompany@${version}" in template+ assert "command -v company || command -v machina" in template+ assert "command -v opencompany" not in template+ assert "ExecStart=$OPENCOMPANY_BIN serve" in template+++def test_node_shims_print_canonical_name_and_deprecation_warning():+ canonical = (ROOT / "bin" / "cli.js").read_text(encoding="utf-8")+ legacy = (ROOT / "bin" / "machina.js").read_text(encoding="utf-8")++ assert "Usage: company <command> [flags]" in canonical+ assert "console.log(`company v${PKG.version}`)" in canonical+ assert "`machina` is deprecated; use `company` instead" in canonical+ assert "OPENCOMPANY_LEGACY_ALIAS = 'machina'" in legacy+ assert "await import('./cli.js')" in legacy+++def test_postinstall_makes_both_node_entrypoints_executable():+ postinstall = (ROOT / "scripts" / "postinstall.js").read_text(encoding="utf-8")++ assert "resolve(ROOT, 'bin/cli.js')" in postinstall+ assert "resolve(ROOT, 'bin/machina.js')" in postinstalldiff --git a/cli/tests/test_deploy_state.py b/cli/tests/test_deploy_state.pynew file mode 100644index 00000000..0091afed--- /dev/null+++ b/cli/tests/test_deploy_state.py@@ -0,0 +1,40 @@+"""Rebrand compatibility tests for persisted deployment state."""++from __future__ import annotations++import json+from pathlib import Path++from cli.commands.deploy import _state+++def _isolate_roots(monkeypatch, tmp_path: Path) -> Path:+ data = tmp_path / "data"+ monkeypatch.setattr(_state, "user_data_dir", lambda: data)+ monkeypatch.setattr(_state, "project_root", lambda: tmp_path / "repo")+ return data+++def test_existing_legacy_state_is_reused(monkeypatch, tmp_path: Path) -> None:+ data = _isolate_roots(monkeypatch, tmp_path)+ legacy = data / "deploy" / "machinaos"+ legacy.mkdir(parents=True)+ (legacy / "deploy-meta.json").write_text(+ json.dumps({"provider": "gcp"}), encoding="utf-8"+ )++ assert _state.workdir() == legacy+ assert _state.resource_name() == "machinaos"+++def test_new_deployments_use_opencompany(monkeypatch, tmp_path: Path) -> None:+ data = _isolate_roots(monkeypatch, tmp_path)+ current = data / "deploy" / "opencompany"+ current.mkdir(parents=True)+ (current / "deploy-meta.json").write_text(+ json.dumps({"provider": "gcp", "resource_name": "opencompany"}),+ encoding="utf-8",+ )++ assert _state.workdir() == current+ assert _state.resource_name() == "opencompany"diff --git a/cli/tests/test_platform_paths.py b/cli/tests/test_platform_paths.pynew file mode 100644index 00000000..967c9ce0--- /dev/null+++ b/cli/tests/test_platform_paths.py@@ -0,0 +1,47 @@+"""Compatibility tests for OpenCompany user-state path selection."""++from pathlib import Path++from cli import platform_+++def _state_roots(tmp_path: Path) -> tuple[Path, Path]:+ current = tmp_path / ".opencompany"+ legacy = tmp_path / ".machina"+ current.mkdir()+ legacy.mkdir()+ return current, legacy+++def test_seed_only_current_root_does_not_mask_legacy_state(+ tmp_path: Path, monkeypatch+) -> None:+ current, legacy = _state_roots(tmp_path)+ (current / "workflows").mkdir()+ (current / "workflows" / "example.json").write_text("{}", encoding="utf-8")+ (legacy / "credentials.db").write_text("legacy", encoding="utf-8")+ monkeypatch.setenv("DATA_DIR", str(current))++ assert platform_.user_data_dir() == legacy+++def test_current_runtime_state_wins_over_legacy_state(+ tmp_path: Path, monkeypatch+) -> None:+ current, legacy = _state_roots(tmp_path)+ (current / "workflows").mkdir()+ (current / "workflow.db").write_text("current", encoding="utf-8")+ (legacy / "workflow.db").write_text("legacy", encoding="utf-8")+ monkeypatch.setenv("DATA_DIR", str(current))++ assert platform_.user_data_dir() == current+++def test_custom_data_dir_is_never_rewritten(tmp_path: Path, monkeypatch) -> None:+ configured = tmp_path / "operator-selected"+ configured.mkdir()+ (tmp_path / ".machina").mkdir()+ (tmp_path / ".machina" / "workflow.db").write_text("legacy", encoding="utf-8")+ monkeypatch.setenv("DATA_DIR", str(configured))++ assert platform_.user_data_dir() == configureddiff --git a/cli/tests/test_release_pipeline_config.py b/cli/tests/test_release_pipeline_config.pyindex d5822113..94781f3b 100644--- a/cli/tests/test_release_pipeline_config.py+++ b/cli/tests/test_release_pipeline_config.py@@ -42,7 +42,7 @@ from cli.commands import build# Workspace package names. These are the stable IDs declared in each# `package.json` — paths are resolved via the `workspace_members`# fixture so tests don't care where the workspace lives on disk.-SIDECAR_PKG_NAME = "machinaos-nodejs-executor"+SIDECAR_PKG_NAME = "opencompany-nodejs-executor"CLIENT_PKG_NAME = "react-flow-client"@@ -153,7 +153,7 @@ def test_sidecar_engines_match_esbuild_target(sidecar_pkg: dict):def test_sidecar_main_field_points_at_compiled_output(sidecar_pkg: dict):- """``main`` is what ``import 'machinaos-nodejs-executor'`` resolves+ """``main`` is what ``import 'opencompany-nodejs-executor'`` resolvesto — the compiled bundle, not the TS source."""assert sidecar_pkg.get("main") == "dist/index.js"@@ -362,8 +362,8 @@ _INSTALL_JS_COMPILEALL_RE = re.compile(def test_install_js_compileall_command_shape(install_js_src: str):- """End-user ``npm install machinaos`` runs install.js. The- compileall step must use the same shape as ``machina build`` —+ """End-user ``npm install opencompany`` runs install.js. The+ compileall step must use the same shape as ``company build`` —``uv run python -O -m compileall -q -j 0`` — so cold-start gainsapply to the npm-tarball path too."""@@ -375,7 +375,7 @@ def test_install_js_compileall_command_shape(install_js_src: str):def test_install_js_compileall_paths_match_source_dirs_constant(install_js_src: str):"""install.js's path list and ``build.COMPILEALL_SOURCE_DIRS`` mustmatch exactly. Drift means the npm-tarball install would compile a- different set of files than ``machina build``.+ different set of files than ``company build``."""match = _INSTALL_JS_COMPILEALL_RE.search(install_js_src)assert match is not None, "compileall invocation not found in install.js"diff --git a/client/index.html b/client/index.htmlindex 173b32ff..8f60e7b5 100644--- a/client/index.html+++ b/client/index.html@@ -31,7 +31,7 @@href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400&family=Bevan&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=IM+Fell+English+SC&family=IM+Fell+English:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Major+Mono+Display&family=Pirata+One&family=Sawarabi+Mincho&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=UnifrakturCook:wght@700&family=VT323&display=swap"/></noscript>- <title>MachinaOS</title>+ <title>OpenCompany</title></head><body><div id="root"></div>diff --git a/client/src/components/TriggerNode.tsx b/client/src/components/TriggerNode.tsxindex 895c255a..85e90131 100644--- a/client/src/components/TriggerNode.tsx+++ b/client/src/components/TriggerNode.tsx@@ -35,9 +35,9 @@ const TriggerNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectaconst whatsappStatus = useWhatsAppStatus();// Triggers have two DISTINCT active visuals (design-system animations.css):- // - waiting -> .machina-trigger-armed: a gentle continuous "listening"+ // - waiting -> .opencompany-trigger-armed: a gentle continuous "listening"// heartbeat while deployed and waiting for events, paired- // with the .machina-bolt ⚡ badge pulse.+ // with the .opencompany-bolt ⚡ badge pulse.// - executing -> the one-shot execution pulse (base.css token-driven rule,// bound via data-executing on the wrapper).const isExecuting = executionStatus === 'executing';@@ -141,7 +141,7 @@ const TriggerNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnecta(size, flex), and per-theme decorations like Cyber neon glow,Renaissance wax seal, and Steampunk rivets reach the pixels. */}<div- className={`sq-node-box ${isArmed ? 'machina-trigger-armed' : ''}`}+ className={`sq-node-box ${isArmed ? 'opencompany-trigger-armed' : ''}`}style={{position: 'relative',width: theme.nodeSize.square,@@ -222,10 +222,10 @@ const TriggerNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnecta{/* NO INPUT HANDLE - Trigger nodes don't have inputs */}{/* Trigger Badge - Lightning bolt indicator on bottom-left.- `.machina-bolt` adds the soft armed-pulse (design-system+ `.opencompany-bolt` adds the soft armed-pulse (design-systemanimations.css) while the trigger is listening for events. */}<div- className={isArmed ? 'machina-bolt' : undefined}+ className={isArmed ? 'opencompany-bolt' : undefined}style={{position: 'absolute',bottom: '-4px',diff --git a/client/src/components/auth/LoginPage.tsx b/client/src/components/auth/LoginPage.tsxindex a2d2a15b..c8850bd6 100644--- a/client/src/components/auth/LoginPage.tsx+++ b/client/src/components/auth/LoginPage.tsx@@ -55,7 +55,7 @@ const LoginPage: React.FC = () => {<div className="flex min-h-screen items-center justify-center bg-background p-5"><Card className="w-full max-w-md"><CardHeader className="text-center">- <CardTitle className="text-3xl font-bold text-node-agent">MachinaOs</CardTitle>+ <CardTitle className="text-3xl font-bold text-node-agent">OpenCompany</CardTitle><CardDescription>{isRegistering ? 'Create your account' : 'Sign in to continue'}</CardDescription>diff --git a/client/src/components/credentials/CredentialsPalette.tsx b/client/src/components/credentials/CredentialsPalette.tsxindex 4260c698..498d2cb9 100644--- a/client/src/components/credentials/CredentialsPalette.tsx+++ b/client/src/components/credentials/CredentialsPalette.tsx@@ -223,7 +223,7 @@ const ProviderRow = memo<RowProps>(function ProviderRow({ provider, selected, onvalue={provider.id}onSelect={handleClick}className={cn(- 'machinaos-palette-row flex cursor-pointer items-center gap-3 rounded-sm border px-3 py-2 text-sm text-foreground',+ 'opencompany-palette-row flex cursor-pointer items-center gap-3 rounded-sm border px-3 py-2 text-sm text-foreground',selected? 'border-node-agent-border bg-node-agent-soft': 'border-transparent bg-transparent'diff --git a/client/src/components/credentials/primitives/OAuthConnect.tsx b/client/src/components/credentials/primitives/OAuthConnect.tsxindex b0fdb08c..b5d2fc9c 100644--- a/client/src/components/credentials/primitives/OAuthConnect.tsx+++ b/client/src/components/credentials/primitives/OAuthConnect.tsx@@ -42,7 +42,7 @@ const OAuthConnect: React.FC<Props> = ({onSaveCredentials, onLogin, onLogout, onRefresh, extraSection,}) => {// Some providers (e.g. Stripe) delegate auth entirely to an external- // CLI tool — they have no MachinaOs-side credentials to paste, so+ // CLI tool — they have no OpenCompany-side credentials to paste, so// there's nothing to "store" before Login is meaningful. Only// *required* fields gate the Login button: optional fields are an// alternative auth path, not a prerequisite (e.g. Vercel's accessdiff --git a/client/src/components/onboarding/steps/WelcomeStep.tsx b/client/src/components/onboarding/steps/WelcomeStep.tsxindex f69bb6ef..568b2dd6 100644--- a/client/src/components/onboarding/steps/WelcomeStep.tsx+++ b/client/src/components/onboarding/steps/WelcomeStep.tsx@@ -14,14 +14,14 @@ const WelcomeStep: React.FC = () => {<div className="py-2 text-center"><Rocket className="mx-auto mb-2 h-10 w-10 text-node-agent" />- <h3 className="m-0 mb-1 text-xl font-semibold">Welcome to MachinaOs</h3>+ <h3 className="m-0 mb-1 text-xl font-semibold">Welcome to OpenCompany</h3><p className="text-[15px] font-semibold text-node-agent">Visual workflow automation powered by AI agents</p><p className="mx-auto mt-4 mb-6 max-w-[480px] text-sm text-muted-foreground">- MachinaOs lets you build intelligent automation workflows by connecting+ OpenCompany lets you build intelligent automation workflows by connectingAI models, tools, and services together on an interactive canvas.No coding required for most tasks.</p>diff --git a/client/src/contexts/ThemeContext.tsx b/client/src/contexts/ThemeContext.tsxindex 90e23c55..2b002c3d 100644--- a/client/src/contexts/ThemeContext.tsx+++ b/client/src/contexts/ThemeContext.tsx@@ -15,6 +15,7 @@*/import React, { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';+import { BRAND_STORAGE_KEYS, readAndMigrateStorageValue } from '../lib/brandStorage';export type ThemeName =| 'light' | 'dark'@@ -29,7 +30,7 @@ export const AVAILABLE_THEMES: readonly ThemeName[] = ['cyber', 'wasteland', 'rot', 'plague', 'surveillance',];-const THEME_STORAGE_KEY = 'machinaos-theme';+const THEME_STORAGE_KEYS = BRAND_STORAGE_KEYS.theme;const LEGACY_DARK_MODE_KEY = 'darkMode';/** Themes whose backgrounds are dark — also flip the legacy `.dark`@@ -55,15 +56,15 @@ function isThemeName(value: string | null | undefined): value is ThemeName {}function loadInitialTheme(): ThemeName {- // 1. Honour the new key first.- const stored = localStorage.getItem(THEME_STORAGE_KEY);+ // 1. Honour the OpenCompany key first, migrating the pre-rebrand key once.+ const stored = readAndMigrateStorageValue(localStorage, THEME_STORAGE_KEYS);if (isThemeName(stored)) return stored;// 2. Migrate the legacy `darkMode` boolean key (was 'true' / 'false' / null).const legacy = localStorage.getItem(LEGACY_DARK_MODE_KEY);if (legacy !== null) {const migrated: ThemeName = legacy === 'false' ? 'light' : 'dark';- localStorage.setItem(THEME_STORAGE_KEY, migrated);+ localStorage.setItem(THEME_STORAGE_KEYS.canonical, migrated);localStorage.removeItem(LEGACY_DARK_MODE_KEY);return migrated;}@@ -83,7 +84,7 @@ export const ThemeProvider: React.FC<{ children: React.ReactNode }> = ({ childre} else {html.classList.remove('dark');}- localStorage.setItem(THEME_STORAGE_KEY, theme);+ localStorage.setItem(THEME_STORAGE_KEYS.canonical, theme);}, [theme]);const setTheme = useCallback((next: ThemeName) => {diff --git a/client/src/contexts/WebSocketContext.tsx b/client/src/contexts/WebSocketContext.tsxindex 01cc1e98..fb961681 100644--- a/client/src/contexts/WebSocketContext.tsx+++ b/client/src/contexts/WebSocketContext.tsx@@ -781,7 +781,7 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chi// becomes the only path.//// Routing is by envelope.source substring — each plugin's- // _events.py declares source="machinaos://nodes/<plugin>".+ // _events.py declares source="opencompany://nodes/<plugin>".const event = data as WorkflowEvent<Record<string, unknown>>;const source = event?.source || '';const payload = (event?.data || {}) as Record<string, unknown>;diff --git a/client/src/lib/__tests__/brandStorage.test.ts b/client/src/lib/__tests__/brandStorage.test.tsnew file mode 100644index 00000000..f0d7c169--- /dev/null+++ b/client/src/lib/__tests__/brandStorage.test.ts@@ -0,0 +1,33 @@+import { beforeEach, describe, expect, it } from 'vitest';+import { BRAND_STORAGE_KEYS, readAndMigrateStorageValue } from '../brandStorage';++beforeEach(() => {+ localStorage.clear();+});++describe('OpenCompany browser-storage migration', () => {+ it('moves every pre-rebrand key to its canonical OpenCompany key', () => {+ for (const keys of Object.values(BRAND_STORAGE_KEYS)) {+ const value = `saved:${keys.legacy}`;+ localStorage.setItem(keys.legacy, value);++ expect(readAndMigrateStorageValue(localStorage, keys)).toBe(value);+ expect(localStorage.getItem(keys.canonical)).toBe(value);+ expect(localStorage.getItem(keys.legacy)).toBeNull();+ }+ });++ it('keeps a canonical value when both keys exist and removes the stale alias', () => {+ const keys = BRAND_STORAGE_KEYS.theme;+ localStorage.setItem(keys.canonical, 'renaissance');+ localStorage.setItem(keys.legacy, 'dark');++ expect(readAndMigrateStorageValue(localStorage, keys)).toBe('renaissance');+ expect(localStorage.getItem(keys.canonical)).toBe('renaissance');+ expect(localStorage.getItem(keys.legacy)).toBeNull();+ });++ it('returns null when storage is unavailable', () => {+ expect(readAndMigrateStorageValue(undefined, BRAND_STORAGE_KEYS.sound)).toBeNull();+ });+});diff --git a/client/src/lib/brandStorage.ts b/client/src/lib/brandStorage.tsnew file mode 100644index 00000000..787b0502--- /dev/null+++ b/client/src/lib/brandStorage.ts@@ -0,0 +1,72 @@+/**+ * Canonical OpenCompany browser-storage keys and their pre-rebrand aliases.+ *+ * Keep every brand-key migration in one place so feature modules cannot+ * accidentally diverge on spelling or drop a returning user's preferences.+ */+export const BRAND_STORAGE_KEYS = {+ theme: {+ canonical: 'opencompany-theme',+ legacy: 'machinaos-theme',+ },+ sound: {+ canonical: 'opencompany-sound',+ legacy: 'machinaos-sound',+ },+ queryCache: {+ canonical: 'opencompany-query-cache',+ legacy: 'machina-query-cache',+ },+ nodeSpecRevision: {+ canonical: 'opencompany-nodespec-revision',+ legacy: 'machina-nodespec-revision',+ },+} as const;++export interface BrandedStorageKeyPair {+ canonical: string;+ legacy: string;+}++type StorageReader = Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;++/**+ * Read the canonical value, falling back to a legacy branded key once.+ *+ * When a legacy value exists it is copied before the old key is removed, so+ * an interrupted migration never loses user state. If writes are unavailable+ * (for example, storage is browser-policy blocked), the legacy value still+ * works for the current session and migration can be retried next launch.+ */+export function readAndMigrateStorageValue(+ storage: StorageReader | null | undefined,+ keys: BrandedStorageKeyPair,+): string | null {+ if (!storage) return null;++ try {+ const canonicalValue = storage.getItem(keys.canonical);+ if (canonicalValue !== null) {+ try {+ storage.removeItem(keys.legacy);+ } catch {+ // Canonical data already won; stale-key cleanup is best-effort.+ }+ return canonicalValue;+ }++ const legacyValue = storage.getItem(keys.legacy);+ if (legacyValue === null) return null;++ try {+ storage.setItem(keys.canonical, legacyValue);+ storage.removeItem(keys.legacy);+ } catch {+ // Return the legacy value even when persistent migration is blocked.+ }++ return legacyValue;+ } catch {+ return null;+ }+}diff --git a/client/src/lib/nodeSpec.ts b/client/src/lib/nodeSpec.tsindex f31add48..7daaf3a5 100644--- a/client/src/lib/nodeSpec.ts+++ b/client/src/lib/nodeSpec.ts@@ -17,6 +17,7 @@ import { hashKey, useQuery, type UseQueryResult } from '@tanstack/react-query';import { nodeSpecToDescription, type NodeSpec } from '../adapters/nodeSpecToDescription';import type { INodeTypeDescription } from '../types/INodeProperties';import { featureFlags } from './featureFlags';+import { BRAND_STORAGE_KEYS, readAndMigrateStorageValue } from './brandStorage';import { queryClient } from './queryClient';import { GC_TIME, STALE_TIME } from './queryConfig';import { useWebSocket } from '../contexts/WebSocketContext';@@ -54,7 +55,7 @@ export async function fetchNodeSpec(});}-const NODESPEC_REVISION_STORAGE_KEY = 'machina-nodespec-revision';+const NODESPEC_REVISION_STORAGE_KEYS = BRAND_STORAGE_KEYS.nodeSpecRevision;/*** Prefetch every node type the backend knows about, in a single idle@@ -77,11 +78,14 @@ export async function prefetchAllNodeSpecs(sendRequest: SendRequest): Promise<voconst revision: string | undefined = response?.revision;if (revision && typeof window !== 'undefined') {- const lastSeen = window.localStorage.getItem(NODESPEC_REVISION_STORAGE_KEY);+ const lastSeen = readAndMigrateStorageValue(+ window.localStorage,+ NODESPEC_REVISION_STORAGE_KEYS,+ );if (lastSeen !== revision) {queryClient.removeQueries({ queryKey: ['nodeSpec'] });queryClient.removeQueries({ queryKey: ['nodeGroups'] });- window.localStorage.setItem(NODESPEC_REVISION_STORAGE_KEY, revision);+ window.localStorage.setItem(NODESPEC_REVISION_STORAGE_KEYS.canonical, revision);}}diff --git a/client/src/lib/queryPersist.ts b/client/src/lib/queryPersist.tsindex aad8493a..9c504da4 100644--- a/client/src/lib/queryPersist.ts+++ b/client/src/lib/queryPersist.ts@@ -21,17 +21,23 @@import { createSyncStoragePersister } from '@tanstack/query-sync-storage-persister';import type { Query } from '@tanstack/react-query';+import { BRAND_STORAGE_KEYS, readAndMigrateStorageValue } from './brandStorage';declare const __APP_VERSION__: string;const APP_VERSION =typeof __APP_VERSION__ !== 'undefined' ? __APP_VERSION__ : '0.0.0';-const STORAGE_KEY = 'machina-query-cache';+const STORAGE_KEYS = BRAND_STORAGE_KEYS.queryCache;+const storage = typeof window !== 'undefined' ? window.localStorage : undefined;++// Retain the warm cache across the product rename, then write only the+// canonical OpenCompany key from this point forward.+readAndMigrateStorageValue(storage, STORAGE_KEYS);export const queryPersister = createSyncStoragePersister({- storage: typeof window !== 'undefined' ? window.localStorage : undefined,- key: STORAGE_KEY,+ storage,+ key: STORAGE_KEYS.canonical,// Throttle persistence writes so high-frequency cache mutations do// not thrash localStorage. Default is 1000ms which is fine.});diff --git a/client/src/lib/sound.ts b/client/src/lib/sound.tsindex d5990550..819ce1aa 100644--- a/client/src/lib/sound.ts+++ b/client/src/lib/sound.ts@@ -12,7 +12,7 @@* 1. Reads `--sound-pack` from `:root` whenever the active theme* changes and calls `Sounds.setPack(...)`.* 2. Wires `Sounds.setEnabled(...)` to the `soundEnabled` Zustand- * slice (persisted to localStorage as `machinaos-sound`).+ * slice (persisted to localStorage as `opencompany-sound`).** Ported from design_handoff_machinaos_themes/app/sound.js. The DOM* autocapture (`document.addEventListener('click', ...)`) at thediff --git a/client/src/main.tsx b/client/src/main.tsxindex 08e164d5..30d034b8 100644--- a/client/src/main.tsx+++ b/client/src/main.tsx@@ -23,7 +23,7 @@ import './themes/rot.css'import './themes/plague.css'import './themes/surveillance.css'// Animation system — pulse-keyframe tokens, trigger armed/listening motion,-// .machina-* helpers. Loaded after the themes so its keyframes + per-theme+// .opencompany-* helpers. Loaded after the themes so its keyframes + per-theme// --pulse-* tokens are authoritative.import './themes/animations.css'import './index.css'diff --git a/client/src/store/useAppStore.ts b/client/src/store/useAppStore.tsindex 4646cf5c..a91d6a4a 100644--- a/client/src/store/useAppStore.ts+++ b/client/src/store/useAppStore.ts@@ -11,6 +11,7 @@ import {import type { ImportedWorkflow } from '../utils/workflowExport';import { workflowApi } from '../services/workflowApi';import { queryClient } from '../lib/queryClient';+import { BRAND_STORAGE_KEYS, readAndMigrateStorageValue } from '../lib/brandStorage';import { WORKFLOWS_QUERY_KEY } from '../hooks/useWorkflowsQuery';const invalidateWorkflowsList = (): void => {@@ -57,7 +58,7 @@ interface AppStore {proMode: boolean; // false = noob mode (only AI categories), true = pro mode (all categories)/** WebAudio sound effects toggle (per-theme pack picked from* --sound-pack CSS token by `useSoundSync()`). Persisted to- * localStorage as `machinaos-sound`; default ON (user disables in+ * localStorage as `opencompany-sound`; default ON (user disables in* Settings -> Audio). The AudioContext starts suspended per* browser autoplay policy — `Sounds.unlock()` resumes it on the* user's first interaction (no separate audio permission needed). */@@ -146,16 +147,21 @@ const STORAGE_KEYS = {componentPaletteVisible: 'ui_component_palette_visible',consolePanelVisible: 'ui_console_panel_visible',proMode: 'ui_pro_mode',- /** Sound enabled key — matches the design handoff's- * `localStorage['machinaos-sound']` convention so a returning user's- * prior choice rehydrates regardless of which session set it. */- soundEnabled: 'machinaos-sound',+ /** Canonical OpenCompany sound preference. The pre-rebrand key is read+ * once during initialization so a returning user's choice survives. */+ soundEnabled: BRAND_STORAGE_KEYS.sound.canonical,};// Helper to load boolean from localStorage-const loadBooleanFromStorage = (key: string, defaultValue: boolean): boolean => {+const loadBooleanFromStorage = (+ key: string,+ defaultValue: boolean,+ legacyKey?: string,+): boolean => {try {- const saved = localStorage.getItem(key);+ const saved = legacyKey+ ? readAndMigrateStorageValue(localStorage, { canonical: key, legacy: legacyKey })+ : localStorage.getItem(key);if (saved !== null) {return saved === 'true';}@@ -183,7 +189,11 @@ export const useAppStore = create<AppStore>((set, get) => ({componentPaletteVisible: loadBooleanFromStorage(STORAGE_KEYS.componentPaletteVisible, true),consolePanelVisible: loadBooleanFromStorage(STORAGE_KEYS.consolePanelVisible, false),proMode: loadBooleanFromStorage(STORAGE_KEYS.proMode, false), // Default to noob mode- soundEnabled: loadBooleanFromStorage(STORAGE_KEYS.soundEnabled, true), // On by default; user can disable in Settings -> Audio. Browsers gesture-gate WebAudio (no separate permission), so the AC unlocks on first interaction via Sounds.unlock().+ soundEnabled: loadBooleanFromStorage(+ STORAGE_KEYS.soundEnabled,+ true,+ BRAND_STORAGE_KEYS.sound.legacy,+ ), // On by default; user can disable in Settings -> Audio. Browsers gesture-gate WebAudio (no separate permission), so the AC unlocks on first interaction via Sounds.unlock().renamingNodeId: null,// Workflow management@@ -626,4 +636,4 @@ export const useAppStore = create<AppStore>((set, get) => ({});return imported;},-}));\ No newline at end of file+}));diff --git a/client/src/themes/animations.css b/client/src/themes/animations.cssindex 2a192482..6811e450 100644--- a/client/src/themes/animations.css+++ b/client/src/themes/animations.css@@ -153,34 +153,34 @@@keyframes trigger-bolt { 0%, 100% { opacity: 0.6; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }/* Status pip blink (generic, smooth). */-@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }+@keyframes opencompany-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }/* ============================================================================* Helper classes* ========================================================================== *//* Executing node — reads the active theme's chosen keyframe + timing. */-.machina-pulse {+.opencompany-pulse {animation: var(--pulse-keyframe, node-pulse) var(--pulse-duration, 1.4s) var(--pulse-timing, ease-in-out) infinite;}/* Trigger waiting for events — continuous armed heartbeat (slower than the* execution pulse so the two states read as distinct). */-.machina-trigger-armed {+.opencompany-trigger-armed {animation: trigger-listening 2.4s ease-in-out infinite;}/* One-shot flash the moment a trigger fires (add, then remove on animationend). */-.machina-trigger-fire {+.opencompany-trigger-fire {animation: trigger-fire 0.6s var(--ease-default, ease-out) 1;}/* Lightning badge + listening pip pulses. */-.machina-bolt { animation: trigger-bolt 1.8s ease-in-out infinite; }-.machina-pip-pulse { animation: machina-pip-blink 1.4s ease-in-out infinite; }+.opencompany-bolt { animation: trigger-bolt 1.8s ease-in-out infinite; }+.opencompany-pip-pulse { animation: opencompany-pip-blink 1.4s ease-in-out infinite; }/* Ambient overlays for Cyber / Surveillance frames (cyber-flicker / cyber-roll* keyframes live in their theme files and are globally available). */-.machina-crt { animation: cyber-flicker 5s linear infinite; }-.machina-scanline::after {+.opencompany-crt { animation: cyber-flicker 5s linear infinite; }+.opencompany-scanline::after {content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 50;height: 12%;background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--node-pulse-color, var(--info)) 18%, transparent), transparent);@@ -188,6 +188,6 @@}@media (prefers-reduced-motion: reduce) {- .machina-pulse, .machina-crt, .machina-scanline::after,- .machina-trigger-armed, .machina-trigger-fire, .machina-bolt, .machina-pip-pulse { animation: none !important; }+ .opencompany-pulse, .opencompany-crt, .opencompany-scanline::after,+ .opencompany-trigger-armed, .opencompany-trigger-fire, .opencompany-bolt, .opencompany-pip-pulse { animation: none !important; }}diff --git a/client/src/themes/atomic.css b/client/src/themes/atomic.cssindex 549bbedd..08763292 100644--- a/client/src/themes/atomic.css+++ b/client/src/themes/atomic.css@@ -258,8 +258,8 @@:root[data-theme="atomic"] .modal-head { border-bottom: 3px solid var(--slate); background: var(--accent); color: var(--bg-elevated); }:root[data-theme="atomic"] .modal-title { font-family: var(--font-display); color: var(--bg-elevated); letter-spacing: 0.10em; }/* Parameter panel — follow the design system's PanelModal surface- * hierarchy ("MachinaOS Design System": components/panels/PanelModal.jsx- * + ui_kits/machinaos/PanelsModals.jsx NodeConfigModal): card body on+ * hierarchy ("OpenCompany Design System": components/panels/PanelModal.jsx+ * + ui_kits/opencompany/PanelsModals.jsx NodeConfigModal): card body on* --bg-app, header on --bg-panel one step above it with --fg-default* text, column heads on --bg-panel, splits on --border-default. The* generic atomic modal overrides (white .modal card + solid tealdiff --git a/client/src/themes/dark.css b/client/src/themes/dark.cssindex a5916af9..050b80aa 100644--- a/client/src/themes/dark.css+++ b/client/src/themes/dark.css@@ -7,7 +7,7 @@** Source palette: neutral slate dark — the light grey-blue "paper" family* inverted (NOT Solarized teal) + Dracula vibrant accents kept as the- * personality layer. Matches the MachinaOS Design System+ * personality layer. Matches the OpenCompany Design System* (tokens/colors.css `.dark`) and the `darkColors` base pack in* client/src/styles/theme.ts.*diff --git a/client/src/types/__tests__/cloudEvents.test.ts b/client/src/types/__tests__/cloudEvents.test.tsindex a819f9c0..2a384709 100644--- a/client/src/types/__tests__/cloudEvents.test.ts+++ b/client/src/types/__tests__/cloudEvents.test.ts@@ -67,27 +67,38 @@ describe('WorkflowEvent shape', () => {data: {specversion: '1.0',id: 'a1b2c3d4',- source: 'machinaos://services/credentials',- type: 'com.machinaos.credential.api_key.saved',+ source: 'opencompany://services/credentials',+ type: 'com.opencompany.credential.api_key.saved',time: '2026-05-06T12:34:56.789Z',subject: 'openai',datacontenttype: 'application/json',- dataschema: 'machinaos://schemas/events/credential.api_key.saved.json',+ dataschema: 'opencompany://schemas/events/credential.api_key.saved.json',data: { provider: 'openai' },},};const envelope = payload.data as WorkflowEvent<{ provider: string }>;expect(envelope.specversion).toBe('1.0');- expect(envelope.type).toBe('com.machinaos.credential.api_key.saved');+ expect(envelope.type).toBe('com.opencompany.credential.api_key.saved');expect(envelope.subject).toBe('openai');expect(envelope.data.provider).toBe('openai');- // matchesType strips the com.machinaos. prefix, so callers write+ // matchesType strips the com.opencompany. prefix, so callers write// patterns without it.expect(matchesType(envelope, 'credential.api_key.*')).toBe(true);expect(matchesType(envelope, 'credential.*')).toBe(true);expect(matchesType(envelope, 'stripe.*')).toBe(false);});+ it('matches replayed events that use the pre-rebrand namespace', () => {+ const legacyEnvelope: WorkflowEvent = {+ ...sample,+ source: 'machinaos://services/credentials',+ type: 'com.machinaos.credential.api_key.saved',+ };++ expect(matchesType(legacyEnvelope, 'credential.api_key.*')).toBe(true);+ expect(matchesType(legacyEnvelope, 'credential.*')).toBe(true);+ });+it('preserves CloudEvents extension attributes when present', () => {const event: WorkflowEvent = {...sample,diff --git a/client/src/types/cloudEvents.ts b/client/src/types/cloudEvents.tsindex b80bc23e..8c137adc 100644--- a/client/src/types/cloudEvents.ts+++ b/client/src/types/cloudEvents.ts@@ -13,12 +13,12 @@* "data": {* "specversion": "1.0",* "id": "<uuid>",- * "source": "machinaos://services/credentials",- * "type": "com.machinaos.credential.api_key.saved", // reverse-DNS per Primer+ * "source": "opencompany://services/credentials",+ * "type": "com.opencompany.credential.api_key.saved", // reverse-DNS per Primer* "time": "2026-05-06T12:34:56.789Z",* "subject": "openai",* "datacontenttype": "application/json",- * "dataschema": "machinaos://schemas/events/credential.api_key.saved.json",+ * "dataschema": "opencompany://schemas/events/credential.api_key.saved.json",* "data": { "provider": "openai", ... }* }* }@@ -26,7 +26,7 @@* Future Wave 12 sources (`stripe.*`, `telegram.*`, `task.*`) will use the* same envelope. The `matchesType` helper provides server-parity glob* dispatch (mirrors `WorkflowEvent.matches_type` in envelope.py) — patterns- * match against the type with the `com.machinaos.` prefix stripped.+ * match against the type with the `com.opencompany.` prefix stripped.** Pytest invariant `server/tests/test_credential_broadcasts.py` locks the* backend shape; the FE vitest counterpart locks this interface.@@ -48,7 +48,7 @@ export interface WorkflowEvent<TData = unknown> {dataschema?: string;data: TData;- // CloudEvents extension attributes used by MachinaOs.+ // CloudEvents extension attributes used by OpenCompany.// `model_config = ConfigDict(extra="allow")` on the Pydantic side means// additional fields may appear and should be tolerated; cast through// `WorkflowEvent<T> & {extra?: unknown}` if you need to read them.@@ -57,15 +57,20 @@ export interface WorkflowEvent<TData = unknown> {correlation_id?: string | null;}-const TYPE_PREFIX = 'com.machinaos.';+const TYPE_PREFIXES = [+ 'com.opencompany.',+ // Accept events persisted or replayed from before the product rename.+ 'com.machinaos.',+] as const;/*** Glob-style match on the CloudEvents `type` field.** Mirrors `WorkflowEvent.matches_type` in `server/services/events/envelope.py`.- * Patterns are matched against the type with the `com.machinaos.` reverse-DNS+ * Patterns are matched against the type with the `com.opencompany.` reverse-DNS* prefix stripped, so callers can write `'credential.api_key.*'` and still- * hit `com.machinaos.credential.api_key.saved`. External-producer types+ * hit `com.opencompany.credential.api_key.saved`. The pre-rebrand namespace+ * remains accepted for replay compatibility. External-producer types* (e.g. `stripe.charge.succeeded` from a Stripe webhook) have no prefix* and match directly.*@@ -81,7 +86,8 @@ const TYPE_PREFIX = 'com.machinaos.';export function matchesType(event: WorkflowEvent, pattern: string): boolean {if (!pattern || pattern === 'all') return true;const raw = event.type ?? '';- const normalized = raw.startsWith(TYPE_PREFIX) ? raw.slice(TYPE_PREFIX.length) : raw;+ const matchedPrefix = TYPE_PREFIXES.find((prefix) => raw.startsWith(prefix));+ const normalized = matchedPrefix ? raw.slice(matchedPrefix.length) : raw;if (pattern.endsWith('.*')) {const prefix = pattern.slice(0, -2);return normalized === prefix || normalized.startsWith(prefix + '.');diff --git a/docs-internal/ARCHIVE/credentials_scaling/architecture.md b/docs-internal/ARCHIVE/credentials_scaling/architecture.mdindex dbcac027..81e784c2 100644--- a/docs-internal/ARCHIVE/credentials_scaling/architecture.md+++ b/docs-internal/ARCHIVE/credentials_scaling/architecture.md@@ -2,7 +2,7 @@# Credentials Panel Architecture (Scalable to 5000 Providers)-The architecture for the MachinaOs credentials panel after scaling work.+The architecture for the OpenCompany credentials panel after scaling work.Built on the Phase 1 refactor (21-file modular structure) with five additionallayers: server-owned registry, bulk-fetch cache, command palette, lazy panels,and react-hook-form detail panels.@@ -156,7 +156,7 @@ Response → setStored(true), clear password field## JSON schema with `extends` inheritance-MachinaOs uses JSON for all backend config (`email_providers.json`, `llm_defaults.json`,+OpenCompany uses JSON for all backend config (`email_providers.json`, `llm_defaults.json`,`pricing.json`, `google_apis.json`). Credential registry follows the same convention.```jsondiff --git a/docs-internal/ARCHIVE/credentials_scaling/research_react_stack.md b/docs-internal/ARCHIVE/credentials_scaling/research_react_stack.mdindex dcf7ea7d..12e83db7 100644--- a/docs-internal/ARCHIVE/credentials_scaling/research_react_stack.md+++ b/docs-internal/ARCHIVE/credentials_scaling/research_react_stack.md@@ -296,7 +296,7 @@ From public benchmarks and measurements:| <100 providers | No | Substring filter OK | antd Form OK || 100-500 | No | Add cmdk palette | antd Form OK || 500-2000 | Maybe | cmdk + fuzzysort | RHF for detail panels |-| **2000-5000 (MachinaOs target)** | **Yes, `react-virtuoso`** | **cmdk + fuzzysort** | **RHF** |+| **2000-5000 (OpenCompany target)** | **Yes, `react-virtuoso`** | **cmdk + fuzzysort** | **RHF** || >5000 | Yes + server pagination | Yes | RHF |---diff --git a/docs-internal/ARCHIVE/plugin_authoring_rfc.md b/docs-internal/ARCHIVE/plugin_authoring_rfc.mdindex c04387cc..b3e39f67 100644--- a/docs-internal/ARCHIVE/plugin_authoring_rfc.md+++ b/docs-internal/ARCHIVE/plugin_authoring_rfc.md@@ -19,7 +19,7 @@## 1. Summary-Codify the canonical plugin authoring shape for MachinaOs: every plugin is a self-contained folder under `server/nodes/<group>/<plugin>/`, its code and media co-located, inheriting shared base classes; the backend auto-registers a per-plugin Temporal activity; every server→FE event flows through a CloudEvents v1.0 `WorkflowEvent` envelope. Update the docs to match the code, fix three real CloudEvents spec violations, and migrate the 117 legacy single-file plugins.+Codify the canonical plugin authoring shape for OpenCompany: every plugin is a self-contained folder under `server/nodes/<group>/<plugin>/`, its code and media co-located, inheriting shared base classes; the backend auto-registers a per-plugin Temporal activity; every server→FE event flows through a CloudEvents v1.0 `WorkflowEvent` envelope. Update the docs to match the code, fix three real CloudEvents spec violations, and migrate the 117 legacy single-file plugins.## 2. Motivation@@ -118,13 +118,13 @@ A new plugin in group `X` checks `nodes/X/_base.py` for a domain base first; inh**Envelope.** Every server→FE broadcast wraps `WorkflowEvent` (CloudEvents v1.0; `server/services/events/envelope.py`). Pydantic model stronger than `cloudevents/sdk-python` (which is dict-based). Locked by pytest invariants in `tests/credentials/test_credential_broadcasts.py:120-152` and `tests/test_status_broadcasts.py:87-473`.-**Wire shape** on the WebSocket: `{"type": "<legacy_routing_key>", "data": <WorkflowEvent JSON>}`. Outer wrapper is a MachinaOs transport envelope (not strict CloudEvents WS binding) — defensible because the WS channel multiplexes non-CloudEvent traffic. Inner `data` is the typed envelope and consumers route on `data.type`.+**Wire shape** on the WebSocket: `{"type": "<legacy_routing_key>", "data": <WorkflowEvent JSON>}`. Outer wrapper is a OpenCompany transport envelope (not strict CloudEvents WS binding) — defensible because the WS channel multiplexes non-CloudEvent traffic. Inner `data` is the typed envelope and consumers route on `data.type`.**Three real spec-compliance fixes** (this RFC):1. **Extension attribute naming.** CloudEvents v1.0 mandates lowercase-alphanumeric extension keys (no underscores, dashes, dots). Today's `workflow_id`, `trigger_node_id`, `correlation_id` are non-conformant. Rename to `workflowid`, `triggernodeid`, `correlationid`. Update all 9 typed factories, frontend `cloudEvents.ts` interface, WebSocketContext readers, pytest assertions.-2. **`type` reverse-DNS prefix.** CloudEvents Primer SHOULDs the reverse-DNS convention. Today's `credential.api_key.connected`, `agent.progress` become `com.machinaos.credential.api_key.connected`, `com.machinaos.agent.progress`. Affects all 9 typed factories and frontend glob patterns.-3. **`dataschema` URI per event type.** Add `dataschema = f"machinaos://schemas/events/{type_segment}.json"` to each factory; pair with `GET /api/schemas/events/<type>.json` endpoint returning the Pydantic-derived JSON Schema for the event's `data` field.+2. **`type` reverse-DNS prefix.** CloudEvents Primer SHOULDs the reverse-DNS convention. Today's `credential.api_key.connected`, `agent.progress` become `com.opencompany.credential.api_key.connected`, `com.opencompany.agent.progress`. Affects all 9 typed factories and frontend glob patterns.+3. **`dataschema` URI per event type.** Add `dataschema = f"opencompany://schemas/events/{type_segment}.json"` to each factory; pair with `GET /api/schemas/events/<type>.json` endpoint returning the Pydantic-derived JSON Schema for the event's `data` field.**Two factory tiers — plugin-specific factories live in the plugin folder.**@@ -140,10 +140,10 @@ A new plugin in group `X` checks `nodes/X/_base.py` for a domain base first; inhdef telegram_message_received(*, chat_id: str, text: str, workflowid: str | None = None) -> WorkflowEvent:return WorkflowEvent(- source="machinaos://nodes/telegram",- type="com.machinaos.telegram.message.received",+ source="opencompany://nodes/telegram",+ type="com.opencompany.telegram.message.received",subject=chat_id,- dataschema="machinaos://schemas/events/telegram.message.received.json",+ dataschema="opencompany://schemas/events/telegram.message.received.json",data={"chat_id": chat_id, "text": text},workflowid=workflowid,)@@ -178,14 +178,14 @@ A new plugin in group `X` checks `nodes/X/_base.py` for a domain base first; inh**Definition — plugin-specific vs cross-cutting:**-A factory is **plugin-specific** if its `type` string names a single plugin AND its payload shape differs from peers in the same domain (`com.machinaos.telegram.message.received` carries `chat_id`; `com.machinaos.whatsapp.message.received` carries `phone_number` + `group_jid`). These belong in `_events.py` in the plugin folder.+A factory is **plugin-specific** if its `type` string names a single plugin AND its payload shape differs from peers in the same domain (`com.opencompany.telegram.message.received` carries `chat_id`; `com.opencompany.whatsapp.message.received` carries `phone_number` + `group_jid`). These belong in `_events.py` in the plugin folder.A factory is **cross-cutting** if either (a) its `type` is the same shape across plugins and the payload is identical, OR (b) its construction is invoked from a single centralized helper that fans out per plugin: `credential.<action>` (every plugin with credentials), `oauth.completed` (every OAuth plugin), `agent.progress` (every agent), `task.completed` (every delegated task), `workflow.<stage>` (workflow lifecycle), `deployment.snapshot` (deployment state), `connection_status` (single `_emit_connection_typed` helper in `StatusBroadcaster` fans out to every plugin status method). These stay in central `envelope.py`.**Phase 5b audit outcome:**- `WorkflowEvent.message(plugin, direction, data)` — **removed** in Phase 5b. Zero callers in the codebase; it was speculative. Plugins that later need to emit message envelopes add a typed factory in their own `_events.py`.- `WorkflowEvent.connection_status(plugin, ...)` — **kept** in central `envelope.py`. Single call site (`StatusBroadcaster._emit_connection_typed`); the parametrization is genuinely shared. Moving per-plugin would duplicate the broadcast helper across plugins with no payload divergence.-- `nodes/stripe/_source.py` hand-constructs `WorkflowEvent(...)` directly. Stripe webhook events keep their producer-side type (`stripe.charge.succeeded` — no `com.machinaos.` prefix since MachinaOs isn't the producer). Already in the plugin folder. No move needed.+- `nodes/stripe/_source.py` hand-constructs `WorkflowEvent(...)` directly. Stripe webhook events keep their producer-side type (`stripe.charge.succeeded` — no `com.opencompany.` prefix since OpenCompany isn't the producer). Already in the plugin folder. No move needed.### 6.5 Icon and media handling — backend owns, frontend consumes@@ -296,7 +296,7 @@ Per-batch verification: `pytest tests/test_node_spec.py -x && pytest tests/test_## 9. Backward compatibility- **Legacy `asset:<key>` wire format** stays during transition. Frontend resolver: URL paths (start with `/`) → `<img>`; `asset:<key>` → bundled `ICON_REGISTRY`; emoji/text → inline; `lobehub:<brand>` → React component. Bundled registry removed after Phase 9.-- **CloudEvents wire keys** (the outer `type` value) stay unchanged for existing event types — only the inner `WorkflowEvent.type` gains the `com.machinaos.` prefix. Frontend handlers route on the outer wire key (e.g., `case 'credential_catalogue_updated'`) so they continue to work without coordination.+- **CloudEvents wire keys** (the outer `type` value) stay unchanged for existing event types — only the inner `WorkflowEvent.type` gains the `com.opencompany.` prefix. Frontend handlers route on the outer wire key (e.g., `case 'credential_catalogue_updated'`) so they continue to work without coordination.- **Plugin imports.** Migrating `server/nodes/tool/calculator_tool.py` to `server/nodes/tool/calculator_tool/__init__.py` preserves the import path `from nodes.tool.calculator_tool import CalculatorToolNode`. Sub-module imports like `from nodes.tool.calculator_tool.calculator_tool import X` work for multi-class plugins. Audit `server/tests/` before each batch for deeper imports.## 10. Open questions@@ -313,7 +313,7 @@ None blocking. Status of the three original follow-ups:- `git grep -E "cls\.icon|cls\.color"` in `server/services/plugin/base.py` → 0 hits.- `git grep -E "(icon|color): ClassVar"` in `server/` → 0 hits.- `git grep -E "\bworkflow_id\b|\btrigger_node_id\b|\bcorrelation_id\b" server/services/events/envelope.py` → 0 hits.-- `git grep -E '"type":\s*"(credential|agent|workflow|team|connection)\.[^c]'` in `envelope.py` → 0 hits (every event type starts with `com.machinaos.`).+- `git grep -E '"type":\s*"(credential|agent|workflow|team|connection)\.[^c]'` in `envelope.py` → 0 hits (every event type starts with `com.opencompany.`).- Boot backend; `GET /api/schemas/nodes/aiAgent/spec.json` returns populated `metadata.icon` pointing at `/api/schemas/nodes/aiAgent/icon`.- `GET /api/schemas/nodes/aiAgent/icon` returns SVG with `Content-Type: image/svg+xml`.- `pytest server/tests/ -x` passes, including the three load-bearing suites: `test_node_spec.py`, `test_plugin_self_containment.py`, `test_credential_broadcasts.py`, `test_status_broadcasts.py`.@@ -333,7 +333,7 @@ None blocking. Status of the three original follow-ups:## 12. References-**MachinaOs (internal):**+**OpenCompany (internal):**- `server/services/plugin/base.py:428-454` — `as_activity()`.- `server/services/plugin/scaling.py:17-37` — `TaskQueue` enum, retry defaults.- `server/services/temporal/workflow.py:177-183` — orchestrator scheduling (gap noted).@@ -360,7 +360,7 @@ None blocking. Status of the three original follow-ups:- n8n per-node folder + co-located SVG — https://github.com/n8n-io/n8n/tree/master/packages/nodes-base/nodes/Telegram- Pipedream `components/<app>/` + `common/` folder pattern — https://github.com/PipedreamHQ/pipedream/tree/master/components- Prefect block + capability-mixin pattern — https://github.com/PrefectHQ/prefect/blob/main/src/prefect/blocks/core.py-- Nango YAML provider registry (rejected for MachinaOs) — https://github.com/NangoHQ/nango/tree/master/packages/providers+- Nango YAML provider registry (rejected for OpenCompany) — https://github.com/NangoHQ/nango/tree/master/packages/providers- Composio cloud-registry model (rejected — we're self-hosted) — https://docs.composio.dev## 13. Diff size (rough)diff --git a/docs-internal/DESIGN.md b/docs-internal/DESIGN.mdindex cc91c17a..878393d0 100644--- a/docs-internal/DESIGN.md+++ b/docs-internal/DESIGN.md@@ -2,7 +2,7 @@## Overview-The MachinaOs execution engine implements a robust workflow orchestration system combining industry-standard patterns from **Netflix Conductor**, **Prefect 3.0**, **Temporal**, and **Redis Streams**. This document details the architectural decisions, design patterns, and standards used.+The OpenCompany execution engine implements a robust workflow orchestration system combining industry-standard patterns from **Netflix Conductor**, **Prefect 3.0**, **Temporal**, and **Redis Streams**. This document details the architectural decisions, design patterns, and standards used.Related docs:- [TEMPORAL_ARCHITECTURE.md](TEMPORAL_ARCHITECTURE.md) - distributed execution via Temporal activitiesdiff --git a/docs-internal/SCRIPTS.md b/docs-internal/SCRIPTS.mdindex 3966ac5e..bdf65e06 100644--- a/docs-internal/SCRIPTS.md+++ b/docs-internal/SCRIPTS.md@@ -1,10 +1,10 @@-# MachinaOS Scripts Reference+# OpenCompany Scripts Reference## Quick Start```bash-npm install -g machina-machina start+npm install -g opencompany+company start```Open http://localhost:3000@@ -15,15 +15,15 @@ Open http://localhost:3000| Command | Description ||---------|-------------|-| `machina start` | Start the development server (checks dependencies first) |-| `machina stop` | Stop all running services |-| `machina build` | Build the project for production (checks dependencies first) |-| `machina clean` | Clean build artifacts and node_modules |-| `machina docker:up` | Start with Docker Compose (detached) |-| `machina docker:down` | Stop Docker Compose services |-| `machina docker:build` | Build Docker images |-| `machina docker:logs` | View Docker logs (follows) |-| `machina help` | Show help message |+| `company start` | Start the development server (checks dependencies first) |+| `company stop` | Stop all running services |+| `company build` | Build the project for production (checks dependencies first) |+| `company clean` | Clean build artifacts and node_modules |+| `company docker:up` | Start with Docker Compose (detached) |+| `company docker:down` | Stop Docker Compose services |+| `company docker:build` | Build Docker images |+| `company docker:logs` | View Docker logs (follows) |+| `company help` | Show help message |### Dependency Checks@@ -56,7 +56,7 @@ Run with `npm run <script>` from the project root.| `python:start` | `cd server && uv run uvicorn main:app ...` | Start Python backend || `temporal:worker` | `cd server && uv run python -m services.temporal.worker` | Start standalone Temporal worker |-Temporal server lifecycle is managed by `machina start` / `machina dev` / `machina stop` directly (see [Temporal Architecture](./TEMPORAL_ARCHITECTURE.md)). The official `temporal` CLI is downloaded by `pooch` to `<DATA_DIR>/packages/temporal/` (= `~/.machina/packages/temporal/` by default) during `machina build` and spawned as a supervised subprocess.+Temporal server lifecycle is managed by `company start` / `company dev` / `company stop` directly (see [Temporal Architecture](./TEMPORAL_ARCHITECTURE.md)). The official `temporal` CLI is downloaded by `pooch` to `<DATA_DIR>/packages/temporal/` (= `~/.opencompany/packages/temporal/` by default) during `company build` and spawned as a supervised subprocess.### Docker Scripts (Development)@@ -81,9 +81,9 @@ Temporal server lifecycle is managed by `machina start` / `machina dev` / `machi| Script | Command | Description ||--------|---------|-------------|-| `deploy` | `python -m cli deploy` | Self-deploy to a cloud VM (`machina deploy up/status/destroy` — gcloud preflight + Terraform; see `cli/commands/deploy/`) |+| `deploy` | `python -m cli deploy` | Self-deploy to a cloud VM (`company deploy up/status/destroy` — gcloud preflight + Terraform; see `cli/commands/deploy/`) |-The legacy `deploy.sh` (SCP + docker-compose to a GCE box) was removed; `machina deploy`+The legacy `deploy.sh` (SCP + docker-compose to a GCE box) was removed; `company deploy`provisions a login-gated VM natively via the operator's cloud CLI + Terraform.---@@ -96,7 +96,7 @@ provisions a login-gated VM natively via the operator's cloud CLI + Terraform.Cross-platform start script that runs all services concurrently.-**What it does** (mirrored by the canonical `machina start` / `machina dev` CLI commands):+**What it does** (mirrored by the canonical `company start` / `company dev` CLI commands):1. Validates build artifacts exist2. Creates `.env` from `.env.template` if missing3. Frees configured app ports (client, backend, WhatsApp, Node.js executor, Temporal gRPC, Temporal UI)@@ -105,7 +105,7 @@ Cross-platform start script that runs all services concurrently.- Python backend (uvicorn) -- supervises the edgymeow Go binary lazily via [server/nodes/whatsapp/_runtime.py](../server/nodes/whatsapp/_runtime.py)- Temporal dev server -- the supervised-runtime shim ([server/services/temporal/_supervised_runtime.py](../server/services/temporal/_supervised_runtime.py)) spawning `temporal server start-dev`-**Temporal handling:** The supervisor's TCP readiness probe on 7233 short-circuits if Temporal is already running, so launching `machina start` against a pre-existing Temporal works without conflict.+**Temporal handling:** The supervisor's TCP readiness probe on 7233 short-circuits if Temporal is already running, so launching `company start` against a pre-existing Temporal works without conflict.**Ports (configurable in .env):**- `VITE_CLIENT_PORT` - Frontend (default: 3000)@@ -140,7 +140,7 @@ Production build script that compiles all components.**Location:** `scripts/stop.js`-Cross-platform stop script that kills all MachinaOS processes.+Cross-platform stop script that kills all OpenCompany processes.**What it does:**1. Reads port configuration from `.env`@@ -171,7 +171,7 @@ Removes build artifacts and dependencies.- `client/dist/` - Built frontend- `client/.vite/` - Vite cache- `server/.venv/` - Python virtual environment-- `.machina/` - Repo-local DATA_DIR opt-out (only present when `DATA_DIR=.machina`; the default `~/.machina/` lives in your home dir and is never touched)+- `.opencompany/` - Repo-local DATA_DIR opt-out (only present when `DATA_DIR=.opencompany`; the default `~/.opencompany/` lives in your home dir and is never touched)---@@ -252,18 +252,18 @@ Key variables in `.env` (see `.env.template` for full list):```bash# Development-machina start # Start all services-machina stop # Stop all services+company start # Start all services+company stop # Stop all services# Build-machina build # Build for production-machina clean # Clean everything+company build # Build for production+company clean # Clean everything# Docker (development)-machina docker:up # Start containers-machina docker:down # Stop containers-machina docker:logs # View logs-machina docker:build # Rebuild images+company docker:up # Start containers+company docker:down # Stop containers+company docker:logs # View logs+company docker:build # Rebuild images# Docker (production)npm run docker:prod:up # Start productiondiff --git a/docs-internal/SETUP.md b/docs-internal/SETUP.mdindex 0f626b72..1b8c95e8 100644--- a/docs-internal/SETUP.md+++ b/docs-internal/SETUP.md@@ -1,9 +1,9 @@-# MachinaOs - Development Setup+# OpenCompany - Development Setup## Project Structure```-MachinaOs/+OpenCompany/├── client/ # React frontend (port 3000)│ ├── src/│ └── package.json@@ -21,8 +21,8 @@ MachinaOs/## Quick Start```bash-npm install -g machina-machina start+npm install -g opencompany+company start```Open http://localhost:3000@@ -32,8 +32,8 @@ Open http://localhost:3000**Prerequisites:** Node.js 22+, Python 3.12+, uv,```bash-git clone https://github.com/zeenie-ai/MachinaOS.git-cd MachinaOS+git clone https://github.com/zeenie-ai/MachinaOS.git OpenCompany+cd OpenCompanynpm run buildnpm run start```@@ -41,8 +41,8 @@ npm run start### Docker```bash-git clone https://github.com/zeenie-ai/MachinaOS.git-cd MachinaOS+git clone https://github.com/zeenie-ai/MachinaOS.git OpenCompany+cd OpenCompanynpm run docker:up```@@ -80,8 +80,8 @@ Services will be available at:### Temporal Server (Distributed Execution)- Provides durable workflow execution with per-node retry and horizontal scaling-- Official `temporal` CLI downloaded by `pooch` from `https://temporal.download/cli/archive/latest` on `machina build` (or first `machina start`)-- Supervised by MachinaOS as `temporal server start-dev` — single process, SQLite at `~/.machina/temporal.db`+- Official `temporal` CLI downloaded by `pooch` from `https://temporal.download/cli/archive/latest` on `company build` (or first `company start`)+- Supervised by OpenCompany as `temporal server start-dev` — single process, SQLite at `~/.opencompany/temporal.db`- Ports: gRPC 7233, Web UI 8080- Embedded worker runs inside Python backend (`TemporalWorkerManager` in `main.py`)- Workflow auto-resumption disabled at startup (history preserved); see `TEMPORAL_TERMINATE_RUNNING_ON_STARTUP`diff --git a/docs-internal/TEMPORAL_ARCHITECTURE.md b/docs-internal/TEMPORAL_ARCHITECTURE.mdindex b0444d07..cf92011b 100644--- a/docs-internal/TEMPORAL_ARCHITECTURE.md+++ b/docs-internal/TEMPORAL_ARCHITECTURE.md@@ -74,7 +74,7 @@ This invokes `run_standalone_worker()` from `services/temporal/worker.py`.In-process call (F4.A) ORWebSocket round-trip (legacy)+----------------+- | MachinaOs |+ | OpenCompany || workflow_svc |+----------------+```@@ -133,7 +133,7 @@ context = {### 1. Workflow Receives Request```-MachinaOs Server+OpenCompany Server|v execute_workflow()TemporalExecutor@@ -399,7 +399,7 @@ AgentWorkflow.run(context):emit_phase("completed", status="success")```-`emit_phase(phase, status?)` is a thin helper that schedules `agent.broadcast_progress.v1`. The activity emits `WorkflowEvent.agent_progress` (CloudEvents v1.0, `type="com.machinaos.agent.progress"`) for FE consumers; when `status` is supplied it also drives a raw-dict `update_node_status` for the canvas-glow color (executing / success / error). Same dual-channel pattern F4.A's `_node_activity` uses. When this workflow is itself a delegated child (`context["parent_node_id"]` set), every `emit_phase` call ALSO schedules a second broadcast against the parent's `node_id` with `phase="delegating"` — the parent's canvas badge then advances in real time while the child loops, instead of freezing at "executing" glow until the child completes.+`emit_phase(phase, status?)` is a thin helper that schedules `agent.broadcast_progress.v1`. The activity emits `WorkflowEvent.agent_progress` (CloudEvents v1.0, `type="com.opencompany.agent.progress"`) for FE consumers; when `status` is supplied it also drives a raw-dict `update_node_status` for the canvas-glow color (executing / success / error). Same dual-channel pattern F4.A's `_node_activity` uses. When this workflow is itself a delegated child (`context["parent_node_id"]` set), every `emit_phase` call ALSO schedules a second broadcast against the parent's `node_id` with `phase="delegating"` — the parent's canvas badge then advances in real time while the child loops, instead of freezing at "executing" glow until the child completes.Each LLM step is one activity, each tool call is one per-type activity (the same activities F4.A registered). **Delegation tool calls** (`delegate_to_<x>`) where the child type is in `AGENT_WORKFLOW_TYPES` are the exception: they spawn a child `AgentWorkflow` via `workflow.execute_child_workflow` instead of a per-type activity, with `parent_node_id` injected into `child_context` to enable the parent-mirror broadcast above. Deterministic child workflow id is `f"{parent_workflow_id}-delegate-{child_node_id}-{iteration}"` so Temporal retries don't spawn duplicates. Non-agent tools and excluded types (`rlm_agent`, `claude_code_agent`) still go through `execute_activity` as before. Failures of tool activities surface as error messages back to the LLM (matching the in-process agent loop behaviour); the agent loop continues.@@ -419,7 +419,7 @@ Each LLM step is one activity, each tool call is one per-type activity (the same| `agent.store_output.v1` | Writes `output_main` / `output_top` / `output_0` so downstream nodes resolve `{{aiAgent.response}}` via `ParameterResolver`. || `agent.broadcast_progress.v1` | Emits `WorkflowEvent.agent_progress` (CloudEvents v1.0) + optional raw-dict `update_node_status` for canvas-glow color. Single helper drives every phase emit. |-**Broadcasts inside the loop** wrap `WorkflowEvent` (CloudEvents v1.0) per RFC §6.4: `agent_progress` events (`com.machinaos.agent.progress`) and `node_parameters_updated` events (`com.machinaos.node.parameters.updated`) flow through the `StatusBroadcaster.broadcast_agent_progress` and `StatusBroadcaster.broadcast_node_parameters_updated` wrappers respectively. The latter is reused by the legacy `routers/websocket.py:handle_save_node_parameters` (user-source) and `services/cli_agent/service.py:_persist_memory` (cli-source) — all three emission sites share the same envelope, distinguished by `source_hint` (`"user"` / `"cli"` / `"agent"`).+**Broadcasts inside the loop** wrap `WorkflowEvent` (CloudEvents v1.0) per RFC §6.4: `agent_progress` events (`com.opencompany.agent.progress`) and `node_parameters_updated` events (`com.opencompany.node.parameters.updated`) flow through the `StatusBroadcaster.broadcast_agent_progress` and `StatusBroadcaster.broadcast_node_parameters_updated` wrappers respectively. The latter is reused by the legacy `routers/websocket.py:handle_save_node_parameters` (user-source) and `services/cli_agent/service.py:_persist_memory` (cli-source) — all three emission sites share the same envelope, distinguished by `source_hint` (`"user"` / `"cli"` / `"agent"`).`rlm_agent`, `claude_code_agent` are NOT migrated — their internal session state (RLM REPL / Claude CLI `--resume` with stable `cwd`) requires single-process continuity and would break across activity boundaries.@@ -533,21 +533,21 @@ client = await Client.connect(server_address, namespace=namespace, runtime=runtiThe Temporal binary + persistence are managed in-process by the plugin-folder pattern at [`server/services/temporal/`](../server/services/temporal/). Single supervised process — the official `temporal` CLI's `server start-dev` mode, per [docs.temporal.io/develop/python/set-up-your-local-python](https://docs.temporal.io/develop/python/set-up-your-local-python). Five sibling files (`_install.py`, `_runtime.py`, `_handlers.py`, `_refresh.py`, `client.py`, plus `__init__.py` for registry wiring) match the [Wave 11 plugin-folder pattern](./plugin_system.md#self-contained-plugin-folders) that `server/nodes/whatsapp/` uses for its Go binary.-**What runs**: one process — `temporal server start-dev --port 7233 --ui-port 8080 --db-filename ~/.machina/temporal.db --namespace default`. Both gRPC + Web UI bind to the same process (per docs.temporal.io/cli/server — "all running in a single process"). SQLite-backed durability; history persisted across restarts.+**What runs**: one process — `temporal server start-dev --port 7233 --ui-port 8080 --db-filename ~/.opencompany/temporal.db --namespace default`. Both gRPC + Web UI bind to the same process (per docs.temporal.io/cli/server — "all running in a single process"). SQLite-backed durability; history persisted across restarts.**Modern libs doing the heavy lifting** (zero custom infrastructure code):-- **[`pooch`](https://pypi.org/project/pooch/)** — `services/temporal/_install.py` downloads the official `temporal` CLI archive from `https://temporal.download/cli/archive/latest?platform=<os>&arch=<arch>`. Cross-platform (Windows zip / macOS+Linux tar.gz), cached at `<DATA_DIR>/packages/temporal/` via `_cache_dir() = core.paths.package_dir("temporal")` (pooch's `path=` argument). The retrieve call passes an explicit `downloader=pooch.HTTPDownloader(timeout=300, progressbar=True)`: the timeout is per-socket-read (not total transfer), so arbitrarily slow links can finish the ~114 MB fetch — pooch's 30 s default aborted them — and `progressbar` must live on the downloader because `retrieve()` ignores its own kwarg when `downloader=` is explicit. Failed downloads never poison the cache (pooch writes to a temp file and renames atomically on success). Standalone entry: `python -m services.temporal._install` — invoked **fatally** by `machina build` step [6/6] (so first `machina start` doesn't pay the download; contract locked by `test_temporal_install_is_fatal_on_failure`) and **non-fatally** by npm postinstall (`scripts/install.js` try/catch — `TemporalServerRuntime._pre_spawn()` re-downloads lazily on first `machina start`, so a failed eager fetch never fails `npm install -g`). The binary cache survives `machina clean` (`packages` is in `_MACHINA_KEEP`, `cli/commands/clean.py`). Pre-fix this used `pooch.os_cache("machinaos-temporal")` (`~/.cache/MachinaOs/machinaos-temporal/` etc.) — a separate OS-cache namespace operators reported as "not local"; it now sits under DATA_DIR alongside the Stripe binary and the shared npm tree.+- **[`pooch`](https://pypi.org/project/pooch/)** — `services/temporal/_install.py` downloads the official `temporal` CLI archive from `https://temporal.download/cli/archive/latest?platform=<os>&arch=<arch>`. Cross-platform (Windows zip / macOS+Linux tar.gz), cached at `<DATA_DIR>/packages/temporal/` via `_cache_dir() = core.paths.package_dir("temporal")` (pooch's `path=` argument). The retrieve call passes an explicit `downloader=pooch.HTTPDownloader(timeout=300, progressbar=True)`: the timeout is per-socket-read (not total transfer), so arbitrarily slow links can finish the ~114 MB fetch — pooch's 30 s default aborted them — and `progressbar` must live on the downloader because `retrieve()` ignores its own kwarg when `downloader=` is explicit. Failed downloads never poison the cache (pooch writes to a temp file and renames atomically on success). Standalone entry: `python -m services.temporal._install` — invoked **fatally** by `company build` step [6/6] (so first `company start` doesn't pay the download; contract locked by `test_temporal_install_is_fatal_on_failure`) and **non-fatally** by npm postinstall (`scripts/install.js` try/catch — `TemporalServerRuntime._pre_spawn()` re-downloads lazily on first `company start`, so a failed eager fetch never fails `npm install -g`). The binary cache survives `company clean` (`packages` is in `_OPENCOMPANY_KEEP`, `cli/commands/clean.py`). Pre-fix this used `pooch.os_cache("opencompany-temporal")` (`~/.cache/OpenCompany/opencompany-temporal/` etc.) — a separate OS-cache namespace operators reported as "not local"; it now sits under DATA_DIR alongside the Stripe binary and the shared npm tree.- **`BaseProcessSupervisor` + `BaseSupervisor`** (`server/services/_supervisor/`) — the in-house supervisor base classes that `server/nodes/whatsapp/_runtime.py` also uses. Provides cross-platform signal handling (POSIX `setsid` + Windows Job Objects + `CREATE_NEW_PROCESS_GROUP` for graceful `CTRL_BREAK_EVENT` shutdown), restart policy via tenacity, log draining, status snapshots. We subclass both — zero custom supervisor logic.**ServiceSpec wiring**: [`cli/commands/_temporal_specs.py`](../cli/commands/_temporal_specs.py) returns one ServiceSpec for the supervised Temporal dev server (env reads happen inside `temporal_specs()` at call time, safe to import before `cli.config.load_config()` runs). Both `start.py` and `dev.py` call it. The generic supervised-runtime shim lives at [`server/services/temporal/_supervised_runtime.py`](../server/services/temporal/_supervised_runtime.py) so the spawned `uv run python -m services.temporal._supervised_runtime services.temporal._runtime:get_temporal_server_runtime` resolves out of the workspace `.venv` without any cross-tree path plumbing.**WS surface**: `_handlers.py` registers `temporal_status` / `temporal_start` / `temporal_stop` via `services.ws_handler_registry.register_ws_handlers`. `_refresh.py` registers a WS-connect callback via `services.status_broadcaster.register_service_refresh` so the FE health indicator stays current.-**Resumption toggle**: [`TemporalClientWrapper.terminate_running_workflows`](../server/services/temporal/client.py) — runs once at server lifespan startup, between client connect and worker start, gated on `TEMPORAL_TERMINATE_RUNNING_ON_STARTUP` (default `true`). Queries Visibility for every `Running` workflow and calls `handle.terminate(reason="MachinaOS startup: auto-resumption disabled")`. **History is preserved** (UI shows workflows as `Terminated`, not deleted); only active execution stops. Disables resumption while `DeploymentManager` has no boot-time reconcile against Temporal Visibility yet — resumed workflows would otherwise keep executing but be invisible to the MachinaOS UI. Flip to `false` once the reconcile lands.+**Resumption toggle**: [`TemporalClientWrapper.terminate_running_workflows`](../server/services/temporal/client.py) — runs once at server lifespan startup, between client connect and worker start, gated on `TEMPORAL_TERMINATE_RUNNING_ON_STARTUP` (default `true`). Queries Visibility for every `Running` workflow and calls `handle.terminate(reason="OpenCompany startup: auto-resumption disabled")`. **History is preserved** (UI shows workflows as `Terminated`, not deleted); only active execution stops. Disables resumption while `DeploymentManager` has no boot-time reconcile against Temporal Visibility yet — resumed workflows would otherwise keep executing but be invisible to the OpenCompany UI. Flip to `false` once the reconcile lands.-**Port management**: Temporal owns ports 7233 (gRPC) + 8080 (Web UI). Both bound by the same `temporal.exe` process; both listed in `cli.config.Config.all_ports` so `machina stop`'s port-freeing pre-flight covers them.+**Port management**: Temporal owns ports 7233 (gRPC) + 8080 (Web UI). Both bound by the same `temporal.exe` process; both listed in `cli.config.Config.all_ports` so `company stop`'s port-freeing pre-flight covers them.-**Direct CLI access**: the pooch-installed `temporal` binary lives under `<DATA_DIR>/packages/temporal/` (= `~/.machina/packages/temporal/` by default, on every OS). Run `temporal --version`, `temporal workflow list`, etc. directly from there.+**Direct CLI access**: the pooch-installed `temporal` binary lives under `<DATA_DIR>/packages/temporal/` (= `~/.opencompany/packages/temporal/` by default, on every OS). Run `temporal --version`, `temporal workflow list`, etc. directly from there.**Cluster tunables** — all sourced from `.env.template` (canonical defaults; no Python-side fallbacks). Settings fields with `Field(env="...")` require the env var to be present, surfaced via `cli.config.load_config()`'s `.env.template` → `.env` → `os.environ` merge.@@ -561,7 +561,7 @@ The Temporal binary + persistence are managed in-process by the plugin-folder pa| `temporal_agent_workflow_enabled` | `TEMPORAL_AGENT_WORKFLOW_ENABLED` | `true` | F4.B flag — agent-as-child-workflow. || `temporal_frontend_grpc_port` | `TEMPORAL_FRONTEND_GRPC_PORT` | `7233` | gRPC port (`--port`). Drives the readiness probe. || `temporal_ui_port` | `TEMPORAL_UI_PORT` | `8080` | Web UI port (`--ui-port`). CLI default is `--port + 1000 = 8233`; we override to 8080 for muscle memory. |-| `temporal_sqlite_path` | `TEMPORAL_SQLITE_PATH` | `temporal.db` | SQLite file (`--db-filename`). Resolved relative to `DATA_DIR` (= `~/.machina/`) unless absolute — flat under `~/.machina/` like `credentials.db` / `workflow.db`. |+| `temporal_sqlite_path` | `TEMPORAL_SQLITE_PATH` | `temporal.db` | SQLite file (`--db-filename`). Resolved relative to `DATA_DIR` (= `~/.opencompany/`) unless absolute — flat under `~/.opencompany/` like `credentials.db` / `workflow.db`. || `temporal_graceful_shutdown_seconds` | `TEMPORAL_GRACEFUL_SHUTDOWN_SECONDS` | `30` | `CTRL_BREAK_EVENT` (Windows) / `SIGTERM` (POSIX) → tree-kill grace window. Shared with the embedded worker shutdown. || `temporal_terminate_running_on_startup` | `TEMPORAL_TERMINATE_RUNNING_ON_STARTUP` | `true` | Resumption toggle (see above). |@@ -569,7 +569,7 @@ One supervisor-build-time env var (read inside `_temporal_specs.py`, not in `Set| Env var | `.env.template` default | Purpose ||---|---|---|-| `TEMPORAL_SERVER_READY_TIMEOUT_SECONDS` | `120` | How long the supervisor waits for Temporal's gRPC port to come up. Covers the first-run binary download (~114 MB) if `machina build` didn't pre-cache. |+| `TEMPORAL_SERVER_READY_TIMEOUT_SECONDS` | `120` | How long the supervisor waits for Temporal's gRPC port to come up. Covers the first-run binary download (~114 MB) if `company build` didn't pre-cache. |## Debugging@@ -580,7 +580,7 @@ The Web UI is at http://localhost:8080; the UI's HTTP API is served at http://loopen http://localhost:8080# List workflows via the local CLI binary (under <DATA_DIR>/packages/temporal/)-~/.machina/packages/temporal/.../temporal.exe workflow list --address localhost:7233+~/.opencompany/packages/temporal/.../temporal.exe workflow list --address localhost:7233# Re-fetch the binary at any timeuv run python -m services.temporal._installdiff --git a/docs-internal/TEMPORAL_CLEANUP_AND_RESILIENCE_PLAN.md b/docs-internal/TEMPORAL_CLEANUP_AND_RESILIENCE_PLAN.mdindex 4d412883..ac3c17c2 100644--- a/docs-internal/TEMPORAL_CLEANUP_AND_RESILIENCE_PLAN.md+++ b/docs-internal/TEMPORAL_CLEANUP_AND_RESILIENCE_PLAN.md@@ -31,7 +31,7 @@## §1 Motivation-Wave 12 made the Temporal-native CloudEvents canary path the production default (`event_framework_enabled=True`, `core/config.py:95-98`; 8/9 trigger types canary-registered, Twitter deferred). That migration stranded three legacy subsystems that now run as unreachable or fallback-only code, and it exposed four infrastructure gaps that matter for MachinaOS's two deployment topologies (developer laptop that sleeps/hard-kills vs always-on cloud VM):+Wave 12 made the Temporal-native CloudEvents canary path the production default (`event_framework_enabled=True`, `core/config.py:95-98`; 8/9 trigger types canary-registered, Twitter deferred). That migration stranded three legacy subsystems that now run as unreachable or fallback-only code, and it exposed four infrastructure gaps that matter for OpenCompany's two deployment topologies (developer laptop that sleeps/hard-kills vs always-on cloud VM):1. **Dead code** (~556 LOC): the `event_waiter.py` Redis-Streams branch, the APScheduler cron stack, and one orphaned CloudEvents factory.2. **Declared-but-disabled queue routing**: 75 plugin `task_queue` declarations across 9 queues are silently ignored — every activity runs in one 100-slot pool on `"machina-tasks"`.diff --git a/docs-internal/agent_architecture.md b/docs-internal/agent_architecture.mdindex db98c0cc..649a25f8 100644--- a/docs-internal/agent_architecture.md+++ b/docs-internal/agent_architecture.md@@ -234,7 +234,7 @@ Defined in `server/services/skill_loader.py:38+`:```SkillLoader-├── _skill_dirs: [server/skills/, .machina/skills/]+├── _skill_dirs: [server/skills/, .opencompany/skills/]├── _database # DI database singleton (user skills live in the DB)├── _registry: Dict[name -> SkillMetadata] # Metadata only (~100 tokens each)├── _cache: Dict[name -> Skill] # Full content (lazy-loaded)@@ -269,7 +269,7 @@ name: http-skill # Lowercase with hyphens, validated by regexdescription: Make HTTP requests... # Brief description for LLM visibilityallowed-tools: http-request # Space-delimited tool namesmetadata:- author: machina+ author: opencompanyversion: "2.0"---```diff --git a/docs-internal/agent_teams.md b/docs-internal/agent_teams.mdindex 07409bae..7cd02b9a 100644--- a/docs-internal/agent_teams.md+++ b/docs-internal/agent_teams.md@@ -1,6 +1,6 @@# Agent Teams Pattern-This document describes the Claude SDK Agent Teams pattern implementation in MachinaOs, enabling multi-agent coordination through AI Employee and Orchestrator nodes.+This document describes the Claude SDK Agent Teams pattern implementation in OpenCompany, enabling multi-agent coordination through AI Employee and Orchestrator nodes.## Overviewdiff --git a/docs-internal/authentication.md b/docs-internal/authentication.mdindex 8a4ab2e9..8e23d99c 100644--- a/docs-internal/authentication.md+++ b/docs-internal/authentication.md@@ -143,7 +143,7 @@ VITE_AUTH_ENABLED=true # 'true' or 'false' - disable to bypass logiAUTH_MODE=single # 'single' or 'multi'JWT_SECRET_KEY=your-secret-key-32 # Min 32 charsJWT_EXPIRE_MINUTES=10080 # 7 days-JWT_COOKIE_NAME=machina_token+JWT_COOKIE_NAME=opencompany_tokenJWT_COOKIE_SECURE=false # true for HTTPSJWT_COOKIE_SAMESITE=lax```diff --git a/docs-internal/browser_harness.md b/docs-internal/browser_harness.mdindex a1bba8cd..016f99fa 100644--- a/docs-internal/browser_harness.md+++ b/docs-internal/browser_harness.md@@ -25,7 +25,7 @@ browserHarness node ──> BrowserHarnessService.run_code(code)## Chrome prerequisiteThe harness needs a CDP-reachable Chrome, discovered in this order (upstream `daemon.py`):-1. `BU_CDP_URL` / `BU_CDP_WS` env override (dedicated automation Chrome) — passed through from the MachinaOS process env untouched.+1. `BU_CDP_URL` / `BU_CDP_WS` env override (dedicated automation Chrome) — passed through from the OpenCompany process env untouched.2. `DevToolsActivePort` written by Chrome when the user enables **chrome://inspect/#remote-debugging** ("Allow remote debugging for this browser instance").3. Port probe on 9222/9223 (e.g. `chrome --remote-debugging-port=9222`).@@ -51,6 +51,6 @@ Default to `browser`; reach for `browserHarness` when the task needs the user's## Ops notes-- Install is lazy: first use runs `uv tool install --python 3.12 browser-harness` (requires `uv` on PATH — already a MachinaOS toolchain dependency).+- Install is lazy: first use runs `uv tool install --python 3.12 browser-harness` (requires `uv` on PATH — already a OpenCompany toolchain dependency).- Daemon shutdown: FastAPI lifespan runs the `browser_harness` shutdown hook → kills the daemon via `<DATA_DIR>/daemons/browser-harness/bu.pid`.- Upgrades: delete `<DATA_DIR>/packages/browser-harness/` and let the next use reinstall, or run the CLI's `--update`.diff --git a/docs-internal/ci_cd.md b/docs-internal/ci_cd.mdindex f4a803b8..115f4ba0 100644--- a/docs-internal/ci_cd.md+++ b/docs-internal/ci_cd.md@@ -1,6 +1,6 @@# CI/CD Pipeline-Internal reference for MachinaOs's GitHub Actions setup. Workflow inventory, release flow, and the composite setup action.+Internal reference for OpenCompany's GitHub Actions setup. Workflow inventory, release flow, and the composite setup action.The repo currently ships **exactly 4 workflows** plus one composite action. A number of hardening / security workflows described in earlier revisions of this doc (CodeQL, zizmor, rollback, reusable PyPI publish, cross-platform test-install) are **not yet implemented** — see [Planned (not yet implemented)](#planned-not-yet-implemented) at the end.@@ -27,7 +27,7 @@ The repo currently ships **exactly 4 workflows** plus one composite action. A nu+-- publish-github-packagespush to main under +------------------+- docs-MachinaOs/ ------> | docs.yml | Mintlify documentation deploy+ docs-OpenCompany/ ------> | docs.yml | Mintlify documentation deploy+------------------+```@@ -38,7 +38,7 @@ The repo currently ships **exactly 4 workflows** plus one composite action. A nu| CI | `.github/workflows/ci.yml` | push/PR → main | Delegates to predeploy.yml || Predeploy | `.github/workflows/predeploy.yml` | `workflow_call` | build/lint + backend tests + CLI tests + cross-OS build/start smoke || Release | `.github/workflows/release.yml` | `v*.*.*` tag, `workflow_dispatch` | predeploy gate → publish (npm + GitHub Packages) |-| Docs | `.github/workflows/docs.yml` | push to `docs-MachinaOs/**` on main + manual | Mintlify deploy |+| Docs | `.github/workflows/docs.yml` | push to `docs-OpenCompany/**` on main + manual | Mintlify deploy || Setup | `.github/actions/setup/action.yml` | (composite) | pnpm 9 + Node 22 + Python 3.12 + uv v8 + editable CLI install |### Toolchain pin@@ -116,7 +116,7 @@ publish-npm publish-github-packages| |+- build +- build+- cli version sync +- cli version sync- +- npm publish +- rewrite name -> @zeenie-ai/machinaos+ +- npm publish +- rewrite name -> @zeenie-ai/opencompany--access public +- npm publish (registry: npm.pkg.github.com)--provenance NODE_AUTH_TOKEN = GITHUB_TOKENNODE_AUTH_TOKEN =@@ -125,7 +125,7 @@ publish-npm publish-github-packages- 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` — `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/machinaos` and sets `publishConfig.registry = https://npm.pkg.github.com`, then `npm publish` with `NODE_AUTH_TOKEN=secrets.GITHUB_TOKEN`.+- `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`.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).@@ -135,7 +135,7 @@ There is currently no audit gate, no PyPI publish, no SLSA `attest-build-provena**File:** [.github/workflows/docs.yml](../.github/workflows/docs.yml)-Triggers on push to `main` touching `docs-MachinaOs/**` + manual dispatch. Single `deploy` job: `actions/checkout` → `actions/setup-node@v4` (Node 22) → `npm install -g mintlify` → `mintlify deploy` from `docs-MachinaOs/` with `MINTLIFY_TOKEN`. No predeploy gate — docs are static, independent of the application build.+Triggers on push to `main` touching `docs-OpenCompany/**` + manual dispatch. Single `deploy` job: `actions/checkout` → `actions/setup-node@v4` (Node 22) → `npm install -g mintlify` → `mintlify deploy` from `docs-OpenCompany/` with `MINTLIFY_TOKEN`. No predeploy gate — docs are static, independent of the application build.---diff --git a/docs-internal/claude_code_agent.md b/docs-internal/claude_code_agent.mdindex 48229772..bfd10c08 100644--- a/docs-internal/claude_code_agent.md+++ b/docs-internal/claude_code_agent.md@@ -1,6 +1,6 @@# Claude Code Agent — Documentation Hub-`claude_code_agent` is a MachinaOs agent node that drives the real `claude` CLI as a+`claude_code_agent` is a OpenCompany agent node that drives the real `claude` CLI as along-lived **interactive** subprocess (stdio pipes, no PTY) over the VSCode-extensionstream-json protocol — not the `claude -p` headless path. A warm `ClaudeSessionPool`(keyed by the connected `simpleMemory.node_id`) preserves the session across turns;@@ -21,7 +21,7 @@ This page is a **router**. The detail lives in the documents below — start her| Does our implementation match the official Claude Code spec? (six invariants + status) | [cli_agent_canonical_patterns_rfc.md](./cli_agent_canonical_patterns_rfc.md) || Which CLI subcommands/flags exist, and which subset we emit | [claude_code_cli_reference.md](./claude_code_cli_reference.md) (snapshot) || Environment variables (`CLAUDE_CONFIG_DIR`, `MAX_MCP_OUTPUT_TOKENS`, `ENABLE_TOOL_SEARCH`, Bedrock/Vertex, telemetry) | [claude_code_env_vars_reference.md](./claude_code_env_vars_reference.md) (snapshot) |-| Permission-mode semantics (`default` / `acceptEdits` / `plan` / `dontAsk` / `bypassPermissions`); why MachinaOs uses `dontAsk` | [claude_code_permission_modes_reference.md](./claude_code_permission_modes_reference.md) (snapshot) |+| Permission-mode semantics (`default` / `acceptEdits` / `plan` / `dontAsk` / `bypassPermissions`); why OpenCompany uses `dontAsk` | [claude_code_permission_modes_reference.md](./claude_code_permission_modes_reference.md) (snapshot) || Headless / print mode (`claude -p`, `--output-format`, stream-json event schema) — the schema the pool parses off stdout | [claude_code_headless_reference.md](./claude_code_headless_reference.md) (snapshot) || SKILL.md frontmatter spec, discovery paths, `context: fork` — what we materialise skills against | [claude_code_skills_reference.md](./claude_code_skills_reference.md) (snapshot) |diff --git a/docs-internal/claude_code_cli_reference.md b/docs-internal/claude_code_cli_reference.mdindex c6ffab82..20063877 100644--- a/docs-internal/claude_code_cli_reference.md+++ b/docs-internal/claude_code_cli_reference.md@@ -180,7 +180,7 @@ add an analogous `claude_code_*_reference.md` file.## Flags we use in `services/cli_agent/`-Quick cross-reference for the MachinaOs `claude_code_agent` integration:+Quick cross-reference for the OpenCompany `claude_code_agent` integration:| Flag | Used in | Purpose ||---|---|---|@@ -192,8 +192,8 @@ Quick cross-reference for the MachinaOs `claude_code_agent` integration:| `--model <id>` | always | from `ClaudeTaskSpec.model` / config default || `--max-turns <N>` | always | from `ClaudeTaskSpec.max_turns` || `--permission-mode <mode>` | always | default `acceptEdits` |-| `--allowedTools <csv>` | always | `Read,Edit,Bash,Glob,Grep,Write,Skill,WebSearch,WebFetch,mcp__machinaos__*` (see canonical patterns RFC §5 R3) |-| `--mcp-config <json>` | when MCP wired | inline JSON with `{mcpServers: {machinaos: {type: http, url, headers, alwaysLoad: true}}}` |+| `--allowedTools <csv>` | always | `Read,Edit,Bash,Glob,Grep,Write,Skill,WebSearch,WebFetch,mcp__opencompany__*` (see canonical patterns RFC §5 R3) |+| `--mcp-config <json>` | when MCP wired | inline JSON with `{mcpServers: {opencompany: {type: http, url, headers, alwaysLoad: true}}}` || `--strict-mcp-config` | when MCP wired | blocks user-level `~/.claude.json` MCP entries || `--append-system-prompt <text>` | when system_prompt or connected tools wired | per-task system prompt + connected-tools steering directive || `--session-id <UUID>` | memory bridge first run | deterministic `uuid5(memory_node_id, session_id)` |diff --git a/docs-internal/claude_code_env_vars_reference.md b/docs-internal/claude_code_env_vars_reference.mdindex 6ef52a93..c13377f4 100644--- a/docs-internal/claude_code_env_vars_reference.md+++ b/docs-internal/claude_code_env_vars_reference.md@@ -8,7 +8,7 @@> [`claude_code_cli_reference.md`](./claude_code_cli_reference.md).This is the set of environment variables Claude Code reads at startup. Where-relevant we annotate which ones MachinaOs's `services/cli_agent/` framework+relevant we annotate which ones OpenCompany's `services/cli_agent/` frameworksets or relies on.## Authentication & API configuration@@ -63,8 +63,8 @@ sets or relies on.|---|---|| `MCP_TIMEOUT` | MCP server connect timeout. || `MCP_TOOL_TIMEOUT` | Per-tool-call timeout. |-| `MAX_MCP_OUTPUT_TOKENS` | Per-tool output ceiling. Default `25000`; warn at `10000`. **Relevant for MachinaOs** — workflow tools that return large blobs (browser screenshots, file contents) silently hit this. See [`cli_agent_canonical_patterns_rfc.md` §2.9](./cli_agent_canonical_patterns_rfc.md). |-| `ENABLE_TOOL_SEARCH` | Tool deferral control: `true` (default, defer all MCP tools, agent calls `ToolSearch`), `false` (load all upfront), `auto` (load if all fit in 10 % of context), `auto:<N>` (custom %). **MachinaOs sidesteps this** by setting `"alwaysLoad": true` on the `machinaos` mcp-config entry instead — see canonical patterns RFC §2.4 / R2. Requires Sonnet 4 / Opus 4 or later; Haiku has no tool search. |+| `MAX_MCP_OUTPUT_TOKENS` | Per-tool output ceiling. Default `25000`; warn at `10000`. **Relevant for OpenCompany** — workflow tools that return large blobs (browser screenshots, file contents) silently hit this. See [`cli_agent_canonical_patterns_rfc.md` §2.9](./cli_agent_canonical_patterns_rfc.md). |+| `ENABLE_TOOL_SEARCH` | Tool deferral control: `true` (default, defer all MCP tools, agent calls `ToolSearch`), `false` (load all upfront), `auto` (load if all fit in 10 % of context), `auto:<N>` (custom %). **OpenCompany sidesteps this** by setting `"alwaysLoad": true` on the `opencompany` mcp-config entry instead — see canonical patterns RFC §2.4 / R2. Requires Sonnet 4 / Opus 4 or later; Haiku has no tool search. |## Telemetry & disable flags@@ -119,7 +119,7 @@ sets or relies on.| Variable | Purpose ||---|---|-| `CLAUDE_CONFIG_DIR` | Override the root config directory. Defaults to `~/.claude/`. **MachinaOs sets this** to `<DATA_DIR>/claude/` (= `~/.machina/claude/` by default) so credentials are project-local and isolated from the user's own `~/.claude/` session — see `nodes/agent/claude_code_agent/_oauth.py:MACHINA_CLAUDE_DIR` (`= data_path("claude")`). This is the directory under which claude's session JSONL lives at `<CLAUDE_CONFIG_DIR>/projects/<project_key>/<session_id>.jsonl`. The npm-installed CLI binary is separate, in the shared tree at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`. |+| `CLAUDE_CONFIG_DIR` | Override the root config directory. Defaults to `~/.claude/`. **OpenCompany sets this** to `<DATA_DIR>/claude/` (= `~/.opencompany/claude/` by default) so credentials are project-local and isolated from the user's own `~/.claude/` session — see `nodes/agent/claude_code_agent/_oauth.py:OPENCOMPANY_CLAUDE_DIR` (`= data_path("claude")`). This is the directory under which claude's session JSONL lives at `<CLAUDE_CONFIG_DIR>/projects/<project_key>/<session_id>.jsonl`. The npm-installed CLI binary is separate, in the shared tree at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`. || `CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX` | Default prefix for auto-generated Remote Control session names. |## Timeouts@@ -137,13 +137,13 @@ sets or relies on.----## Env vars MachinaOs explicitly sets on the spawn env+## Env vars OpenCompany explicitly sets on the spawn envFrom [`services/cli_agent/session.py:env()`](../server/services/cli_agent/session.py):| Variable | Set to | Reason ||---|---|---|| `PYTHONUNBUFFERED` | `1` | Line-buffered output (we parse stream-json line by line). |-| `CLAUDE_CONFIG_DIR` | `MACHINA_CLAUDE_DIR` (claude provider only) | Project-local credential isolation; also where claude writes its session JSONL — load-bearing for the memory bridge (`<key>/projects/<cwd-encoded>/<session_id>.jsonl`). |+| `CLAUDE_CONFIG_DIR` | `OPENCOMPANY_CLAUDE_DIR` (claude provider only) | Project-local credential isolation; also where claude writes its session JSONL — load-bearing for the memory bridge (`<key>/projects/<cwd-encoded>/<session_id>.jsonl`). || `<provider.ide_lock_env_var>` | path to per-spawn lockfile | VSCode-style IDE auto-discovery. |-| `MACHINA_PARENT_RUN_ID` | `<workflow_id>:<node_id>:<batch_token[:8]>` | Composio-style parent-run-id for MCP correlation. |+| `OPENCOMPANY_PARENT_RUN_ID` | `<workflow_id>:<node_id>:<batch_token[:8]>` | Composio-style parent-run-id for MCP correlation. |diff --git a/docs-internal/claude_code_headless_reference.md b/docs-internal/claude_code_headless_reference.mdindex 1626a752..8925bf11 100644--- a/docs-internal/claude_code_headless_reference.md+++ b/docs-internal/claude_code_headless_reference.md@@ -2,7 +2,7 @@> **Source:** [code.claude.com/docs/en/headless](https://code.claude.com/docs/en/headless)> **Fetched:** 2026-05-11-> **Why this lives in-repo:** MachinaOs spawns `claude -p` via+> **Why this lives in-repo:** OpenCompany spawns `claude -p` via> `services/cli_agent/`. The argv flags this doc describes> (`--output-format stream-json`, `--include-partial-messages`,> `--include-hook-events`, `--max-budget-usd`, `--max-turns`,@@ -263,7 +263,7 @@ claude -p "Continue that review" --resume "$session_id"----## What MachinaOs reads from this stream+## What OpenCompany reads from this stream`services/cli_agent/session.py:_consume_stdout` parses every line of`--output-format stream-json` output. The event types we touch:diff --git a/docs-internal/claude_code_interactive_mode.md b/docs-internal/claude_code_interactive_mode.mdindex 578e3e8e..0f486d45 100644--- a/docs-internal/claude_code_interactive_mode.md+++ b/docs-internal/claude_code_interactive_mode.md@@ -12,7 +12,7 @@## Why we cut over from `-p`-Pre-cutover MachinaOs spawned `claude -p --output-format stream-json`+Pre-cutover OpenCompany spawned `claude -p --output-format stream-json`and parsed NDJSON events on stdout. Two reasons to leave `-p`:1. **Anthropic billing change (2026-06-15).** Per@@ -253,10 +253,10 @@ methods on| Event type | When fired ||---|---|-| `com.machinaos.claude.session.spawned` | Cold spawn (new subprocess) |-| `com.machinaos.claude.session.cleared` | Explicit `pool.clear` → new UUID on next acquire |-| `com.machinaos.claude.session.terminated` | Pool terminate (reason: `idle` / `crashed` / `evicted` / `shutdown` / `explicit`) |-| `com.machinaos.claude.session.usage` | Each `result` event (per-turn cost + tokens + duration + num_turns) |+| `com.opencompany.claude.session.spawned` | Cold spawn (new subprocess) |+| `com.opencompany.claude.session.cleared` | Explicit `pool.clear` → new UUID on next acquire |+| `com.opencompany.claude.session.terminated` | Pool terminate (reason: `idle` / `crashed` / `evicted` / `shutdown` / `explicit`) |+| `com.opencompany.claude.session.usage` | Each `result` event (per-turn cost + tokens + duration + num_turns) |The usage event is the source of truth for the simpleMemory usage panel— `/usage` is TUI-only plain text per Anthropic and not parseable.@@ -268,10 +268,10 @@ store that renders the panel.**Tools (MCP) — strict allowlist, no claude built-ins.** Spawn argvcarries `--mcp-config <json>` (HTTP transport, bearer header) +-`--strict-mcp-config` so the spawned claude only loads MachinaOs's-FastMCP server. The `mcpServers.machinaos` block sets `alwaysLoad:+`--strict-mcp-config` so the spawned claude only loads OpenCompany's+FastMCP server. The `mcpServers.opencompany` block sets `alwaysLoad:true` to opt out of MCP tool-search deferral so all-`mcp__machinaos__*` tools enter context at session start.+`mcp__opencompany__*` tools enter context at session start.`--allowedTools` is the explicit allowlist, and it does NOT includeclaude's built-in escape hatches (`Read`, `Edit`, `Bash`, `Glob`,`Grep`, `Write`, `WebSearch`, `WebFetch`) — every workflow already@@ -281,7 +281,7 @@ built-ins were the leakage path that let the agent invokecapabilities the workflow didn't explicitly grant. The defaultallowlist is:-- `mcp__machinaos__<node_type>` per node connected to the agent's+- `mcp__opencompany__<node_type>` per node connected to the agent's`input-tools` handle (LLM sees their typed Pydantic schemas viaFastMCP's `tools/list` reflection on the plugin `Params`).- The claude built-in `Skill` — **conditional**, present iff at@@ -294,7 +294,7 @@ allowlist is:agent to load every skill through the `getSkill` MCP round-trip)is materially worse UX for the common case where the workflowpre-wired which skills should be on the table.-- The five MachinaOs MCP infrastructure tools — `getWorkspaceFiles`,+- The five OpenCompany MCP infrastructure tools — `getWorkspaceFiles`,`listSkills`, `getSkill`, `getCredential`, `broadcastLog` — whichare how the agent reads its workspace, discovers connected skills(when no wiring is present), fetches scoped credentials, and@@ -311,7 +311,7 @@ was the wrong default).[`nodes/agent/claude_code_agent/_skills.py::materialise_skills`](../server/nodes/agent/claude_code_agent/_skills.py)writes one `SKILL.md` tree per connected-and-enabled skill under`<workspace_dir>/.claude/skills/<name>/`. The workspace dir-(`~/.machina/workspaces/<workflow_slug>/` — Wave 14 keys it by the+(`~/.opencompany/workspaces/<workflow_slug>/` — Wave 14 keys it by thehuman-readable slug, not the UUID id) is already passed via`--add-dir`, and per the skills spec's[Automatic discovery from parent and nested directories](https://code.claude.com/docs/en/skills#automatic-discovery-from-parent-and-nested-directories)@@ -348,7 +348,7 @@ future runs only write into per-workflow workspaces. Run`rm -rf .claude/skills/` once from the repo root to cleanaccumulated trees — we deliberately do NOT auto-prune becausethe repo's `.claude/` may contain user-authored skills outside-the MachinaOs registry.+the OpenCompany registry.**Why filesystem (not MCP).** We surveyed alternatives: MCP`resources`/`prompts` require explicit `@mention`/`/command`@@ -362,7 +362,7 @@ skill-injection channel — workspace-dir + live-watch is canonical.**Workspace dir — routed via `--add-dir`.**[`AICliService.run_batch`](../server/services/cli_agent/service.py)splices the per-workflow workspace-(`~/.machina/workspaces/<workflow_slug>/`, injected into `ctx.raw` by+(`~/.opencompany/workspaces/<workflow_slug>/`, injected into `ctx.raw` by`workflow.py:_get_workspace_dir`) into each task's `add_dir` listright after `task_list` is built — `interactive_argv` already emits`--add-dir <path>` per entry. Runs BEFORE the pool/non-pool branchdiff --git a/docs-internal/claude_code_permission_modes_reference.md b/docs-internal/claude_code_permission_modes_reference.mdindex cd76421e..e4d83ccd 100644--- a/docs-internal/claude_code_permission_modes_reference.md+++ b/docs-internal/claude_code_permission_modes_reference.md@@ -2,7 +2,7 @@> **Source:** [code.claude.com/docs/en/permission-modes](https://code.claude.com/docs/en/permission-modes)> **Fetched:** 2026-05-11-> **Why this lives in-repo:** MachinaOs's claude_code_agent defaults to+> **Why this lives in-repo:** OpenCompany's claude_code_agent defaults to> `--permission-mode acceptEdits` and exposes the full enum> (`default`, `acceptEdits`, `plan`, `auto`, `dontAsk`,> `bypassPermissions`) on `ClaudeTaskSpec.permission_mode`. See@@ -279,7 +279,7 @@ Writes to a small set of paths are never auto-approved, in every mode except `by----## What MachinaOs uses+## What OpenCompany uses| Mode | Where | Notes ||---|---|---|diff --git a/docs-internal/claude_code_skills_reference.md b/docs-internal/claude_code_skills_reference.mdindex d1fcca29..637acff4 100644--- a/docs-internal/claude_code_skills_reference.md+++ b/docs-internal/claude_code_skills_reference.md@@ -2,7 +2,7 @@> **Source:** [code.claude.com/docs/en/skills](https://code.claude.com/docs/en/skills)> **Fetched:** 2026-05-11-> **Why this lives in-repo:** MachinaOs materialises connected skills+> **Why this lives in-repo:** OpenCompany materialises connected skills> into `<cwd>/.claude/skills/<name>/SKILL.md` on `_pre_spawn` so claude> auto-discovers them — see [`cli_agent_framework.md` → Memory bridge](./cli_agent_framework.md#memory-bridge--simplememory--claude_code_agent)> and [`cli_agent_canonical_patterns_rfc.md` §5 R1](./cli_agent_canonical_patterns_rfc.md).@@ -227,7 +227,7 @@ To raise the budget, set the `skillListingBudgetFraction` setting (e.g. `0.02` =----## How MachinaOs materialises skills for `claude_code_agent`+## How OpenCompany materialises skills for `claude_code_agent`[`services/cli_agent/session.py:_materialise_skills`](../server/services/cli_agent/session.py)walks `connected_skill_names` (collected by edge_walker from the@@ -245,7 +245,7 @@ Per *Live change detection* above, claude picks the skills upmid-session without a restart — but our spawn is fresh each taskanyway, so we don't rely on that.-`allowed-tools` in MachinaOs-shipped SKILL.md files uses the same+`allowed-tools` in OpenCompany-shipped SKILL.md files uses the samesyntax as upstream (`Bash(git diff *) Read` etc.) and is honoured byclaude verbatim — see `server/skills/coding_agent/file-modify-skill/SKILL.md`for a reference.diff --git a/docs-internal/cli_agent_canonical_patterns_rfc.md b/docs-internal/cli_agent_canonical_patterns_rfc.mdindex 19a1e72f..1218a65a 100644--- a/docs-internal/cli_agent_canonical_patterns_rfc.md+++ b/docs-internal/cli_agent_canonical_patterns_rfc.md@@ -4,20 +4,20 @@|---|---|| Status | Draft (research, revision 2) || Date | 2026-05-07 |-| Scope | `services/cli_agent` framework — Claude Code, Codex, Gemini-CLI agents spawned by MachinaOs |+| Scope | `services/cli_agent` framework — Claude Code, Codex, Gemini-CLI agents spawned by OpenCompany || Companion code | [`server/services/cli_agent/`](../server/services/cli_agent/), [`server/nodes/agent/claude_code_agent/`](../server/nodes/agent/claude_code_agent/) || Companion docs | [cli_agent_framework.md](./cli_agent_framework.md), [claude_code_agent_architecture.md](./claude_code_agent_architecture.md) |## Abstract-Host platforms that spawn `claude -p` from a backend (MachinaOs, Cline,+Host platforms that spawn `claude -p` from a backend (OpenCompany, Cline,Continue, Cursor as a *client* of MCP) face a small number of well-definedintegration choices. This RFC consolidates the **official Claude Codespecification** ([code.claude.com/docs/en/tools-reference](https://code.claude.com/docs/en/tools-reference),[code.claude.com/docs/en/mcp](https://code.claude.com/docs/en/mcp),[code.claude.com/docs/en/skills](https://code.claude.com/docs/en/skills),[code.claude.com/docs/en/cli-reference](https://code.claude.com/docs/en/cli-reference))-and quotes verbatim. It then audits MachinaOs's current+and quotes verbatim. It then audits OpenCompany's current`services/cli_agent` framework against the spec, with file:line evidence,and proposes the minimum set of changes to align.@@ -32,8 +32,8 @@ registers the connected workflow tools, claude correctly receives the toollist (`Processing request of type ListToolsRequest`), and the bearer-tokenauth is correctly validated. But the agent **reaches for built-in`WebSearch` first, gets denied, gives up** — never invoking the connected-`mcp__machinaos__perplexitySearch` even though it's in the registry. The-question is *why*, and whether MachinaOs's framework follows the documented+`mcp__opencompany__perplexitySearch` even though it's in the registry. The+question is *why*, and whether OpenCompany's framework follows the documentedpatterns. This RFC is the survey that answers that.## 2. The official Claude Code specification@@ -89,7 +89,7 @@ Discovery paths ([skills#where-skills-live](https://code.claude.com/docs/en/skil| Project | `.claude/skills/<skill-name>/SKILL.md` || Plugin | `<plugin>/skills/<skill-name>/SKILL.md` |-The "project" entry is **relative to claude's cwd**. When MachinaOs spawns+The "project" entry is **relative to claude's cwd**. When OpenCompany spawns`claude -p` with `cwd=<worktree>`, the worktree IS the project, so writing`<worktree>/.claude/skills/<name>/SKILL.md` makes the skill auto-load.@@ -243,8 +243,8 @@ Across the official documentation:> `<CLAUDE_CONFIG_DIR>/projects/<project_key>/<session_id>.jsonl` where> `project_key = re.sub(r"[^a-zA-Z0-9.-]", "-", str(cwd))`. Verified> against on-disk dir names: a worktree path of-> `D:\startup\projects\MachinaOs\server\...\wt_t_af48d0a7` produces-> `D--startup-projects-MachinaOs-server-...-wt-t-af48d0a7`.+> `D:\startup\projects\OpenCompany\server\...\wt_t_af48d0a7` produces+> `D--startup-projects-OpenCompany-server-...-wt-t-af48d0a7`.>> Two consequences:>@@ -270,7 +270,7 @@ Across the official documentation:> `last_session_id` so the next run falls through to `--session-id> <UUID5>` and self-heals.-## 4. MachinaOs `cli_agent` alignment audit+## 4. OpenCompany `cli_agent` alignment auditFile:line evidence from a focused read of `services/cli_agent/`:@@ -300,7 +300,7 @@ stream-json`, `--verbose`, `--ide`, `--model`, `--permission-mode`,```json{"mcpServers": {- "machinaos": {+ "opencompany": {"type": "http","url": "<mcp_endpoint_url>","headers": { "Authorization": "Bearer <mcp_bearer_token>" },@@ -312,7 +312,7 @@ stream-json`, `--verbose`, `--ide`, `--model`, `--permission-mode`,**Closed (I-4).** Per §2.4, with `ENABLE_TOOL_SEARCH` unset (the defaultfor spawned subprocesses), the agent would otherwise **defer all-`mcp__machinaos__*` tools** and only load them via `ToolSearch`-driven+`mcp__opencompany__*` tools** and only load them via `ToolSearch`-drivendiscovery — which the spawned agent doesn't always call. The`"alwaysLoad": true` entry (present in `interactive_argv`'s emitted`--mcp-config`) forces the tools into context at session start; startup@@ -323,13 +323,13 @@ blocks ≤5s waiting for connection.[`claude_code_agent/_provider.py::interactive_argv`](../server/nodes/agent/claude_code_agent/_provider.py):```-mcp__machinaos__<each connected node_type>,+mcp__opencompany__<each connected node_type>,Skill # only when >=1 skill is wired-mcp__machinaos__getWorkspaceFiles,-mcp__machinaos__listSkills,-mcp__machinaos__getSkill,-mcp__machinaos__getCredential,-mcp__machinaos__broadcastLog+mcp__opencompany__getWorkspaceFiles,+mcp__opencompany__listSkills,+mcp__opencompany__getSkill,+mcp__opencompany__getCredential,+mcp__opencompany__broadcastLog```**Post-cutover: strict MCP-only allowlist (gated by `--permission-mode@@ -381,7 +381,7 @@ path today.5 built-in: `getWorkspaceFiles`, `listSkills`, `getSkill`,`getCredential`, `broadcastLog`.-Plus dynamic per-batch: one `mcp__machinaos__<node_type>` per connected+Plus dynamic per-batch: one `mcp__opencompany__<node_type>` per connectedworkflow tool (refcount-tracked, schema inferred from plugin's Pydantic`Params` field-for-field).@@ -393,9 +393,9 @@ the agent never calls them.### 4.6 Spawn env[`session.py`](../server/services/cli_agent/session.py):-`PYTHONUNBUFFERED=1`, `CLAUDE_CONFIG_DIR=<MACHINA_CLAUDE_DIR>` (claude only),+`PYTHONUNBUFFERED=1`, `CLAUDE_CONFIG_DIR=<OPENCOMPANY_CLAUDE_DIR>` (claude only),`<provider.ide_lock_env_var>=<lockfile_path>`,-`MACHINA_PARENT_RUN_ID=<workflow_id>:<node_id>:<token[:8]>`.+`OPENCOMPANY_PARENT_RUN_ID=<workflow_id>:<node_id>:<token[:8]>`.**Spec consideration.** Setting `ENABLE_TOOL_SEARCH=false` here woulddisable tool-search deferral globally — alternative to per-server@@ -424,9 +424,9 @@ sample names matched byte-for-byte:| cwd | project_key ||---|---|-| `D:\startup\projects\MachinaOs` | `D--startup-projects-MachinaOs` |-| `D:\startup\projects\MachinaOs\server` | `D--startup-projects-MachinaOs-server` |-| `D:\startup\projects\MachinaOs\server\...\wt_t_af48d0a7` | `D--startup-projects-MachinaOs-server-...-wt-t-af48d0a7` |+| `D:\startup\projects\OpenCompany` | `D--startup-projects-OpenCompany` |+| `D:\startup\projects\OpenCompany\server` | `D--startup-projects-OpenCompany-server` |+| `D:\startup\projects\OpenCompany\server\...\wt_t_af48d0a7` | `D--startup-projects-OpenCompany-server-...-wt-t-af48d0a7` |**Failure-mode evidence captured during dev** (log fragments):@@ -482,17 +482,17 @@ documented project-instruction surface.| Invariant | Status | Action ||---|---|---|-| **I-1** Skills as files | **DONE.** [`claude_code_agent/_skills.py::materialise_skills`](../server/nodes/agent/claude_code_agent/_skills.py) writes connected skills to `<cwd>/.claude/skills/<name>/`, invoked from both the pool spawn ([`_pool.py`](../server/nodes/agent/claude_code_agent/_pool.py)) and the non-pool `session.py::_pre_spawn` (via the `get_skill_materialiser` registry in [`services/cli_agent/factory.py`](../server/services/cli_agent/factory.py)). `mcp__machinaos__listSkills` / `getSkill` retained as a transitional fallback. | Drop `getSkill`/`listSkills` MCP tools after one release. |+| **I-1** Skills as files | **DONE.** [`claude_code_agent/_skills.py::materialise_skills`](../server/nodes/agent/claude_code_agent/_skills.py) writes connected skills to `<cwd>/.claude/skills/<name>/`, invoked from both the pool spawn ([`_pool.py`](../server/nodes/agent/claude_code_agent/_pool.py)) and the non-pool `session.py::_pre_spawn` (via the `get_skill_materialiser` registry in [`services/cli_agent/factory.py`](../server/services/cli_agent/factory.py)). `mcp__opencompany__listSkills` / `getSkill` retained as a transitional fallback. | Drop `getSkill`/`listSkills` MCP tools after one release. || **I-2** MCP transport | **Aligned.** Streamable-HTTP via `--mcp-config`. | None. || **I-3** `list_changed` notification | **DONE (`b40011e`).** [`workflow_tools._schedule_list_changed_notify`](../server/services/cli_agent/workflow_tools.py) fires after each `add_tool` / `remove_tool` since FastMCP doesn't emit it automatically. | Optional: unit test asserting `session.send_tool_list_changed` is called. |-| **I-4** Tool-search deferral | **DONE.** `"alwaysLoad": true` set on the `machinaos` server entry in [`claude_code_agent/_provider.py::interactive_argv`](../server/nodes/agent/claude_code_agent/_provider.py). | None. |-| **I-5** Visible-tool filtering | **Gap.** All 5 built-in MachinaOs MCP tools (including `getCredential`, `broadcastLog`) are visible to the model. | Mark internal-only tools `_meta["anthropic/alwaysLoad"]: false` or filter via FastMCP middleware. **Defer** — not breaking today. |+| **I-4** Tool-search deferral | **DONE.** `"alwaysLoad": true` set on the `opencompany` server entry in [`claude_code_agent/_provider.py::interactive_argv`](../server/nodes/agent/claude_code_agent/_provider.py). | None. |+| **I-5** Visible-tool filtering | **Gap.** All 5 built-in OpenCompany MCP tools (including `getCredential`, `broadcastLog`) are visible to the model. | Mark internal-only tools `_meta["anthropic/alwaysLoad"]: false` or filter via FastMCP middleware. **Defer** — not breaking today. || **I-6** Native session continuity | **DONE.** [`session.py`](../server/services/cli_agent/session.py) keeps a stable cwd for memory-bound spawns; the warm-subprocess pool at [`claude_code_agent/_pool.py`](../server/nodes/agent/claude_code_agent/_pool.py) preserves the session across turns. [`claude_code_agent/__init__.py`](../server/nodes/agent/claude_code_agent/__init__.py) sets `continue_session = bool(memory_data)` → argv emits `--continue` (first cold spawn) with `--resume <UUID>` reserved for crash recovery. [`service.py:_persist_memory`](../server/services/cli_agent/service.py) appends turns to `memory_content`, saves `last_session_id` (display-only), broadcasts `node_parameters_updated`, and auto-clears stale UUIDs via `_clear_stale_session_id`. See §4.8. | Markdown `memory_content` remains the UI mirror, not the resume channel. |-| **System-prompt directive** (Cursor / `CLAUDE.md` pattern) | **DONE (`b40011e`).** Second `--append-system-prompt` listing connected `mcp__machinaos__*` tools. | None. |+| **System-prompt directive** (Cursor / `CLAUDE.md` pattern) | **DONE (`b40011e`).** Second `--append-system-prompt` listing connected `mcp__opencompany__*` tools. | None. || `--allowedTools` strict MCP-only allowlist | **DONE (superseded R3).** Built-in escape hatches (`Read`/`Edit`/`Bash`/`Glob`/`Grep`/`Write`/`WebSearch`/`WebFetch`) are NOT in the default allowlist; `Skill` is added conditionally (only when a skill is wired). `default_allowed_tools: ""` in [`ai_cli_providers.json`](../server/config/ai_cli_providers.json); allowlist assembled in [`_provider.py::interactive_argv`](../server/nodes/agent/claude_code_agent/_provider.py). Gated by `--permission-mode dontAsk`. | None. || Composio-style server-side credentials | **Aligned.** `getCredential` allowlist + `auth_service.get_api_key`. | None. || Hermes-style `provider_data` envelope | **Aligned.** [`protocol.py:SessionResult.provider_data`](../server/services/cli_agent/protocol.py). | None. |-| Composio-style parent-run-id | **Aligned.** `MACHINA_PARENT_RUN_ID` env var. | None. |+| Composio-style parent-run-id | **Aligned.** `OPENCOMPANY_PARENT_RUN_ID` env var. | None. |## 6. Recommendations (mapped to the spec)@@ -503,7 +503,7 @@ For memory-bound runs the cwd is `repo_root` so skills land at`<repo_root>/.claude/skills/`; for non-memory runs they go under theper-task worktree. MCP `listSkills` / `getSkill` retained as a fallback.-**R2 (DONE in `b40011e`). `"alwaysLoad": true` set on the `machinaos`+**R2 (DONE in `b40011e`). `"alwaysLoad": true` set on the `opencompany`entry in `--mcp-config` (Closes I-4).** Per §2.4: *"…also blocks startupuntil that server connects (5s cap)."* The 5s wait is acceptable — theFastMCP server is already up before spawn.@@ -514,7 +514,7 @@ The current design instead ships a strict **MCP-only** allowlist:`default_allowed_tools: ""` in[`ai_cli_providers.json`](../server/config/ai_cli_providers.json), and[`_provider.py::interactive_argv`](../server/nodes/agent/claude_code_agent/_provider.py)-assembles `mcp__machinaos__<node_type>` per wired tool + the 5 infra MCP+assembles `mcp__opencompany__<node_type>` per wired tool + the 5 infra MCPtools + the built-in `Skill` (conditionally, when a skill is wired),gated by `--permission-mode dontAsk`. `WebSearch`/`WebFetch`/`Bash`/etc.are intentionally excluded — equivalent capability is wired explicitly@@ -523,7 +523,7 @@ permission-free.**R4 (DONE in `b40011e`). System-prompt directive when MCP tools arewired (the `CLAUDE.md` / Cursor-rules pattern).** Second-`--append-system-prompt` listing connected `mcp__machinaos__*` tools.+`--append-system-prompt` listing connected `mcp__opencompany__*` tools.**R5 (followup).** Filter `getCredential` and `broadcastLog` from themodel-visible tool list — they're host-internal RPC, the model has no@@ -569,7 +569,7 @@ runs (Closes I-6).** Three coupled mechanisms:Post-commit `7c9e873`, all three emission sites (Claude CLI`_persist_memory`, parameter-panel save, F4.B AgentWorkflowper-turn) wrap [`WorkflowEvent.node_parameters_updated`](../server/services/events/envelope.py)- (CloudEvents v1.0, `type="com.machinaos.node.parameters.updated"`)+ (CloudEvents v1.0, `type="com.opencompany.node.parameters.updated"`)via the shared[`StatusBroadcaster.broadcast_node_parameters_updated`](../server/services/status_broadcaster.py)wrapper. `data.source` (`"user"` / `"cli"` / `"agent"`) marks the@@ -632,7 +632,7 @@ claude's on-disk JSONL.always-load servers per the spec.- **`ENABLE_TOOL_SEARCH` model gating** — Sonnet 4 / Opus 4 and lateronly. Haiku models have no tool search; with Haiku, all MCP tools are- loaded upfront regardless. MachinaOs default model+ loaded upfront regardless. OpenCompany default model(`claude-sonnet-4-6`) is in scope; Haiku users get implicitalways-load behaviour.- **`workspace` server name reserved** — verbatim from the spec. Don'tdiff --git a/docs-internal/cli_agent_framework.md b/docs-internal/cli_agent_framework.mdindex f795ddcd..72c45cb5 100644--- a/docs-internal/cli_agent_framework.md+++ b/docs-internal/cli_agent_framework.md@@ -1,6 +1,6 @@# AI CLI Agent Framework-Multi-instance, multi-provider runtime for AI CLI agents (Claude Code, Codex, Gemini). One workflow node spawns N parallel CLI sessions over a list of tasks, each isolated in its own git worktree, each able to call back into MachinaOs over MCP.+Multi-instance, multi-provider runtime for AI CLI agents (Claude Code, Codex, Gemini). One workflow node spawns N parallel CLI sessions over a list of tasks, each isolated in its own git worktree, each able to call back into OpenCompany over MCP.| Provider | Status | Login flow ||---|---|---|@@ -22,7 +22,7 @@ AICliService.run_batch(provider, tasks, *, node_id, workflow_id, workspace_dir)├──► AICliSession_0 (BaseProcessSupervisor + ClaudeProvider + ClaudeTaskSpec)│ _pre_spawn(): git worktree add + write ~/.claude/ide/<pid>.lock│ _do_start(): anyio.open_process + NDJSON stdout/stderr consumers- │ env: CLAUDE_IDE_LOCK + MACHINA_PARENT_RUN_ID+ │ env: CLAUDE_IDE_LOCK + OPENCOMPANY_PARENT_RUN_ID│ wait_for_completion(timeout)│ cleanup(): stop()=terminate_then_kill(5s) + rm lockfile + worktree remove│@@ -49,7 +49,7 @@ Reuses (do not duplicate):- `services/skill_loader.py` — `scan_skills` / `load_skill` consumed by MCP `listSkills` / `getSkill`- `services/auth.py` — `AuthService.get_api_key` consumed by MCP `getCredential`- `services/credential_registry.py` — deep-merge `extends` for `_cli_base` entry-- `nodes/agent/claude_code_agent/_oauth.py` — Claude `auth login` / `auth status` / `auth logout` wrappers, npm install into the shared MachinaOs tree at `<DATA_DIR>/packages/` (binary resolves to `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`), `CLAUDE_CONFIG_DIR=<DATA_DIR>/claude/`. The `login` spawn passes `stdin=PIPE` (un-written) so the native CLI's stdin reader blocks instead of EOFing — keeps its localhost OAuth callback server alive until the browser flow completes+- `nodes/agent/claude_code_agent/_oauth.py` — Claude `auth login` / `auth status` / `auth logout` wrappers, npm install into the shared OpenCompany tree at `<DATA_DIR>/packages/` (binary resolves to `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`), `CLAUDE_CONFIG_DIR=<DATA_DIR>/claude/`. The `login` spawn passes `stdin=PIPE` (un-written) so the native CLI's stdin reader blocks instead of EOFing — keeps its localhost OAuth callback server alive until the browser flow completes- `nodes/stripe/_handlers.py` — pattern reference for marker-token + catalogue broadcast## Provider abstraction (mirrors `services/llm/`)@@ -98,7 +98,7 @@ the interactive billing bucket (entrypoint `claude-vscode`, NOT`sdk-cli`) since `-p` / `--print` is never emitted.```-~/.machina/packages/node_modules/.bin/claude[.cmd]+~/.opencompany/packages/node_modules/.bin/claude[.cmd]--output-format stream-json # events on stdout--input-format stream-json # user turns to stdin as JSON--verbose # required with stream-json for full event detail@@ -198,7 +198,7 @@ Each plugin's `Params.tasks` is hard-typed to one variant — the LLM tool-schem## Auth model — Stripe-style CLI-managed OAuth-CLI auth is delegated to the CLI's own login flow + a synthetic marker token in MachinaOs's catalogue. Mirrors `nodes/stripe/_handlers.py` (commit `a32f671`).+CLI auth is delegated to the CLI's own login flow + a synthetic marker token in OpenCompany's catalogue. Mirrors `nodes/stripe/_handlers.py` (commit `a32f671`).**Per-provider WS handler names** (Twitter / Google / Stripe convention — frontend dispatches `{}` payload, handler name encodes provider):@@ -219,7 +219,7 @@ Steps:1. Run `claude auth status`. If it exits 0, write the marker + broadcast and return immediately (idempotent re-click).2. Otherwise schedule `_finalize_claude_login()` (in `nodes/agent/claude_code_agent/_handlers.py`), which calls `run_claude_login()` from `_oauth.py`:- - MachinaOs-managed install of `@anthropic-ai/claude-code` into the shared npm tree at `<DATA_DIR>/packages/` via `npm install --prefix <packages_dir>` (same tree as `edgymeow` / `agent-browser`; skipped if already installed). Binary resolves to `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`.+ - OpenCompany-managed install of `@anthropic-ai/claude-code` into the shared npm tree at `<DATA_DIR>/packages/` via `npm install --prefix <packages_dir>` (same tree as `edgymeow` / `agent-browser`; skipped if already installed). Binary resolves to `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`.- `claude auth login` via `run_cli_command(..., env={..., CLAUDE_CONFIG_DIR=<DATA_DIR>/claude/}, stdin=asyncio.subprocess.PIPE)` — same way the VSCode Claude Code extension delegates to the binary. Anthropic doesn't expose `--print-url` or a programmatic OAuth helper (issue [anthropics/claude-code#7100](https://github.com/anthropics/claude-code/issues/7100), closed "not planned"), so we let the CLI open the user's browser via its own OS-level call. `stdin=PIPE` is **load-bearing** for claude-code >= 2.1.162's native binary: it reads stdin while waiting for the browser callback, and an inherited (closed) stdin EOFs it into an early exit that kills the localhost callback server before the redirect arrives — `stdin=PIPE` (never written) makes the read block so the server stays up.3. Schedule a background task that polls `claude auth status` every 2s up to 600s. On exit-0, write the synthetic `"cli-managed"` marker via `auth_service.store_oauth_tokens("claude_code", ...)` and broadcast `credential_catalogue_updated`. The catalogue's `stored` flag flips and the existing `OAuthConnect.tsx` primitive renders the modal as Connected.@@ -231,7 +231,7 @@ Steps:## VSCode-style IDE MCP server-Spawned CLI sessions auto-discover MachinaOs over MCP via the lockfile pattern VSCode's Claude Code extension uses. No custom IPC.+Spawned CLI sessions auto-discover OpenCompany over MCP via the lockfile pattern VSCode's Claude Code extension uses. No custom IPC.Lockfile path: `~/.claude/ide/<pid>.lock` (Claude) or `<tmpdir>/gemini/ide/gemini-ide-server-<pid>-<port>.json` (Gemini, v2). Format mirrors VSCode exactly:@@ -241,7 +241,7 @@ Lockfile path: `~/.claude/ide/<pid>.lock` (Claude) or `<tmpdir>/gemini/ide/gemin"url": "http://127.0.0.1:3010/mcp/ide","authToken": "<32-byte hex>","workspaceFolders": ["<absolute path to per-task git worktree>"],- "ideName": "machinaos",+ "ideName": "opencompany","transport": "http","pid": 12345}@@ -249,15 +249,15 @@ Lockfile path: `~/.claude/ide/<pid>.lock` (Claude) or `<tmpdir>/gemini/ide/geminBearer-token middleware (`mcp_server.py:_BearerAuthMiddleware`) validates each request against an in-memory per-batch `BatchContext` registry. **Non-pool path**: tokens registered at `AICliService.run_batch()` entry, unregistered in `finally` so 401s flip immediately when a batch settles. **Pool path** (`use_pool=True`, see [Claude Code Interactive Mode](./claude_code_interactive_mode.md#mcp-bearer-token-lifecycle) for the full lifecycle): claude bakes the bearer into argv (`--mcp-config`) at spawn time and can't rotate without respawning, so the pool stashes the spawn-time token on `PooledClaudeSession.batch_token` and rebinds the `BatchContext` in place on warm reuse via `rebind_batch(token, connected_tools=..., ...)` — closes the "disconnected tool still works" leak by (a) diffing `connected_tools` and decrementing FastMCP refcounts for tools dropped between batches, and (b) updating the per-handler scope check's data so `workflow_tools._build_handler` returns 403 for stale tools. `_terminate_locked` calls `unregister_batch(session.batch_token)` so refcounts drain on pool eviction / `clear` / `shutdown_all`.-Tools exposed (mirror MachinaOs capabilities; deferred ones marked):+Tools exposed (mirror OpenCompany capabilities; deferred ones marked):| Tool | Maps to | Returns ||---|---|---|-| `mcp__machina__getWorkspaceFiles` | `Path.rglob` over `workspace_dir` | `{files: [{path, size, mtime, content?}]}` |-| `mcp__machina__listSkills` | `SkillLoader.scan_skills()` filtered to `BatchContext.connected_skill_names` | `{skills: [{name, description, allowed_tools, category}]}` (~100 tokens each) |-| `mcp__machina__getSkill` | `SkillLoader.load_skill(name)` | `{name, instructions, allowed_tools, scripts, references}` |-| `mcp__machina__getCredential` | `auth_service.get_api_key(name)`, gated by `BatchContext.allowed_credentials` | `{name, value}` or 403 |-| `mcp__machina__broadcastLog` | `broadcaster.broadcast_terminal_log()` | `{success}` |+| `mcp__opencompany__getWorkspaceFiles` | `Path.rglob` over `workspace_dir` | `{files: [{path, size, mtime, content?}]}` |+| `mcp__opencompany__listSkills` | `SkillLoader.scan_skills()` filtered to `BatchContext.connected_skill_names` | `{skills: [{name, description, allowed_tools, category}]}` (~100 tokens each) |+| `mcp__opencompany__getSkill` | `SkillLoader.load_skill(name)` | `{name, instructions, allowed_tools, scripts, references}` |+| `mcp__opencompany__getCredential` | `auth_service.get_api_key(name)`, gated by `BatchContext.allowed_credentials` | `{name, value}` or 403 |+| `mcp__opencompany__broadcastLog` | `broadcaster.broadcast_terminal_log()` | `{success}` |Lifespan: `main.py` enters `mcp_app.router.lifespan_context()` so `StreamableHTTPSessionManager`'s task group is alive (Starlette doesn't auto-propagate `app.mount()` lifespans). Stale-PID lockfile sweep on startup (mirrors VSCode's behaviour).@@ -276,7 +276,7 @@ Shared by every CLI provider plugin. Imports nothing from `nodes/`.| `factory.py` | Three registries (`register_provider`, `register_session_pool`, `register_skill_materialiser`) + lookups + `create_cli_provider(name)`. || `lockfile.py` | VSCode-style IDE lockfile read/write/sweep. || `mcp_server.py` | FastMCP sub-app at `/mcp/ide` with bearer-token middleware + 5 tools + `rebind_batch` for warm-reuse context updates. |-| `workflow_tools.py` | Per-batch MCP tool exposure (`mcp__machinaos__<node_type>`) + handler scope check + `tools/list_changed` notify. |+| `workflow_tools.py` | Per-batch MCP tool exposure (`mcp__opencompany__<node_type>`) + handler scope check + `tools/list_changed` notify. || `session.py` | `AICliSession(BaseProcessSupervisor)` — generic non-pool path (still PTY on POSIX). || `service.py` | `AICliService.run_batch()` — dispatcher; routes to pool when memory-bound via `factory.get_session_pool(provider_name)`. || `_cli_auth.py` | CLI-agnostic `mark_logged_in` / `mark_logged_out` / `broadcast_credential_event` + `"cli-managed"` marker token. Shared by claude + codex handlers. |@@ -298,7 +298,7 @@ the reference implementation). Four self-registration calls in| `_provider.py` | `AnthropicClaudeProvider` — full claude argv builder + stream-json event parsers + ide_lockfile_dir derivation. || `_pool.py` | `ClaudeSessionPool` — subprocess + stream-json warm-reuse pool, MCP rebind on acquire, skill diff on warm reuse. || `_skills.py` | `materialise_skills(workspace_dir, names, previous_skill_names)` — per-workflow SKILL.md materialisation + diff-based add/remove. |-| `_oauth.py` | `MACHINA_CLAUDE_DIR`, `claude_binary_path`, `claude_auth_*` — project-local install + the documented CLI subcommands. |+| `_oauth.py` | `OPENCOMPANY_CLAUDE_DIR`, `claude_binary_path`, `claude_auth_*` — project-local install + the documented CLI subcommands. || `_handlers.py` | `claude_code_login` / `claude_code_logout` WS handlers (registered from `__init__.py` via `register_ws_handlers`). |### Other touchpoints@@ -323,7 +323,7 @@ the reference implementation). Four self-registration calls in"session_id": "<UUID|null>","provider": "claude|codex|gemini","prompt": "...",- "branch": "machina/t_<8hex>",+ "branch": "opencompany/t_<8hex>","worktree_path": "<abs path, removed after batch>","response": "<truncated to 4000 chars>","cost_usd": 0.42,@@ -352,7 +352,7 @@ the reference implementation). Four self-registration calls in}```-`cost_usd` is the provider's reported value when available (Claude). For Codex (no native USD), `service.py:_derive_cost` falls back to `services.pricing.PricingService.calculate_cost()` from `canonical_usage` — single source of truth for LLM cost across MachinaOs. `summary.total_cost_usd` is `null` if any task didn't surface cost.+`cost_usd` is the provider's reported value when available (Claude). For Codex (no native USD), `service.py:_derive_cost` falls back to `services.pricing.PricingService.calculate_cost()` from `canonical_usage` — single source of truth for LLM cost across OpenCompany. `summary.total_cost_usd` is `null` if any task didn't surface cost.## Memory bridge — `simpleMemory` → `claude_code_agent`@@ -370,7 +370,7 @@ key doesn't drift.Claude derives `project_key` from cwd via `re.sub(r"[^a-zA-Z0-9.-]", "-", str(cwd))`— every `:`, `\`, `/`, `_` becomes `-`. Verified against the on-disk-`~/.machina/claude/projects/` listing — Python reproduces three+`~/.opencompany/claude/projects/` listing — Python reproduces threeencoded directory names byte-for-byte. The pre-bridge per-taskworktree (`<workspace>/<node_id>/wt_t_<random_8hex>`) changed cwd onevery spawn → fresh project_key every run → `--resume <UUID>` looked@@ -443,8 +443,8 @@ ClaudeCodeAgentNode.execute_op# Emits a CloudEvents v1.0 envelope (RFC §6.4):# { type: "node_parameters_updated",# data: { specversion, id, time,- # source: "machinaos://services/parameters",- # type: "com.machinaos.node.parameters.updated",+ # source: "opencompany://services/parameters",+ # type: "com.opencompany.node.parameters.updated",# subject: <memory_node_id>,# workflow_id?,# data: { node_id, parameters, version, source } } }@@ -548,11 +548,11 @@ Plugin contract: `tests/test_plugin_contract.py` + `tests/test_node_spec.py` —Live verification (needs a real Claude install + auth):-1. Empty `~/.machina/claude/` + `~/.machina/packages/`. Open Credentials Modal → click "Login with Claude Code CLI". Confirm the npm install runs (visible in backend logs), `~/.machina/packages/node_modules/.bin/claude[.cmd]` appears, browser opens for Anthropic OAuth. Modal flips Connected within ~2s of CLI exit (background `claude auth status` poll detects success). The browser tab should render the CLI's own "Signed in" success page (this needs the `stdin=PIPE` spawn — without it the native binary exits early and the tab is left on the bare `localhost/callback` URL).+1. Empty `~/.opencompany/claude/` + `~/.opencompany/packages/`. Open Credentials Modal → click "Login with Claude Code CLI". Confirm the npm install runs (visible in backend logs), `~/.opencompany/packages/node_modules/.bin/claude[.cmd]` appears, browser opens for Anthropic OAuth. Modal flips Connected within ~2s of CLI exit (background `claude auth status` poll detects success). The browser tab should render the CLI's own "Signed in" success page (this needs the `stdin=PIPE` spawn — without it the native binary exits early and the tab is left on the bare `localhost/callback` URL).2. Refresh the page. Modal stays Connected (`auth_service.get_oauth_tokens("claude_code")` still returns the marker; idempotent re-click also stays Connected).3. Click Disconnect. Modal flips Disconnected (`claude auth logout` clears CLI creds + marker dropped).4. Add a `claude_code_agent` node, set `tasks=[{prompt:"echo A"},{prompt:"echo B"},{prompt:"echo C"}]`, run. Three distinct `claude:<task_id>` Terminal streams interleaved. Three distinct session_ids. Three worktrees created and removed. `summary.wall_clock_ms < sum(duration_ms)` (proves parallelism).-5. With a Claude task running, `cat ~/.claude/ide/<pid>.lock` and confirm format. Stream-json shows an `mcp__machina__*` tool invocation.+5. With a Claude task running, `cat ~/.claude/ide/<pid>.lock` and confirm format. Stream-json shows an `mcp__opencompany__*` tool invocation.6. `curl -H "Authorization: Bearer <wrong>" http://127.0.0.1:3010/mcp/ide/...` → 401.## Risks / open considerationsdiff --git a/docs-internal/cli_services_integration.md b/docs-internal/cli_services_integration.mdindex ad9e4c17..46267cb0 100644--- a/docs-internal/cli_services_integration.md+++ b/docs-internal/cli_services_integration.md@@ -1,12 +1,12 @@# CLI-Based Services Integration Guide-MachinaOS integrates external services that manage their own lifecycle via CLI tools. These services own their ports, data directories, and processes -- MachinaOS does not manage them directly.+OpenCompany integrates external services that manage their own lifecycle via CLI tools. These services own their ports, data directories, and processes -- OpenCompany does not manage them directly.## Principles1. **Install globally** -- CLI tools must be available system-wide (`npm install -g <package>`)2. **Use the CLI** -- Check status, start, stop via the package's own commands. No port-sniffing, no TCP socket checks, no hardcoded port detection.-3. **Don't manage their ports** -- External service ports are NOT added to `allPorts` in `utils.js`. MachinaOS only kills ports it owns (client, backend, WhatsApp, Node.js executor).+3. **Don't manage their ports** -- External service ports are NOT added to `allPorts` in `utils.js`. OpenCompany only kills ports it owns (client, backend, WhatsApp, Node.js executor).4. **Handle "already running"** -- Before adding a service to `concurrently`, check if it's already up. If it is, skip it. This prevents `--kill-others` cascade kills in `start.js`.5. **Keep dependencies in package.json** -- Even if installed globally, keep the package in `dependencies` so npm scripts (`npm run temporal:start`) work.@@ -16,11 +16,11 @@ MachinaOS integrates external services that manage their own lifecycle via CLI tWraps the official `temporal` CLI's `server start-dev` mode (per [docs.temporal.io/develop/python/set-up-your-local-python](https://docs.temporal.io/develop/python/set-up-your-local-python)) — SQLite-backed dev server, single process, gRPC + Web UI both embedded.-**Install:** Automated. `machina build` step [6/6] runs `python -m services.temporal._install`, which uses `pooch` to download the official CLI archive from `https://temporal.download/cli/archive/latest?platform=<os>&arch=<arch>` into `<DATA_DIR>/packages/temporal/` (= `~/.machina/packages/temporal/` by default, on every OS — via `core.paths.package_dir("temporal")`). No npm package, no system install required.+**Install:** Automated. `company build` step [6/6] runs `python -m services.temporal._install`, which uses `pooch` to download the official CLI archive from `https://temporal.download/cli/archive/latest?platform=<os>&arch=<arch>` into `<DATA_DIR>/packages/temporal/` (= `~/.opencompany/packages/temporal/` by default, on every OS — via `core.paths.package_dir("temporal")`). No npm package, no system install required.-**Lifecycle:** Managed entirely by the CLI commands (`machina start` / `machina dev` / `machina stop`) — there's no separate `temporal:start` npm script. The supervisor at [cli/supervisor.py](../cli/supervisor.py) spawns the official CLI via the supervised-runtime shim at [server/services/temporal/_supervised_runtime.py](../server/services/temporal/_supervised_runtime.py).+**Lifecycle:** Managed entirely by the CLI commands (`company start` / `company dev` / `company stop`) — there's no separate `temporal:start` npm script. The supervisor at [cli/supervisor.py](../cli/supervisor.py) spawns the official CLI via the supervised-runtime shim at [server/services/temporal/_supervised_runtime.py](../server/services/temporal/_supervised_runtime.py).-**Ports (declared in `.env.template`, freed by `machina stop`'s port-kill pre-flight):**+**Ports (declared in `.env.template`, freed by `company stop`'s port-kill pre-flight):**| Service | Port | Env var ||---------|------|---------|| gRPC | 7233 | `TEMPORAL_FRONTEND_GRPC_PORT` |@@ -29,8 +29,8 @@ Wraps the official `temporal` CLI's `server start-dev` mode (per [docs.temporal.Both bound by the same `temporal.exe` process. Killing the process releases both.**Persistence + resumption:**-- SQLite db at `~/.machina/temporal.db` (`TEMPORAL_SQLITE_PATH=temporal.db`, resolved under `DATA_DIR`). History is preserved across restarts; the Temporal UI keeps showing every workflow that ever ran.-- Workflow auto-resumption is disabled at boot: [`TemporalClientWrapper.terminate_running_workflows`](../server/services/temporal/client.py) runs once after client connect and terminates every `Running` workflow with `reason="MachinaOS startup: auto-resumption disabled"`. Workflows show as `Terminated` (not deleted) in the UI. Gated by `TEMPORAL_TERMINATE_RUNNING_ON_STARTUP=true`. Flip to `false` once `DeploymentManager` reconcile-against-Visibility lands.+- SQLite db at `~/.opencompany/temporal.db` (`TEMPORAL_SQLITE_PATH=temporal.db`, resolved under `DATA_DIR`). History is preserved across restarts; the Temporal UI keeps showing every workflow that ever ran.+- Workflow auto-resumption is disabled at boot: [`TemporalClientWrapper.terminate_running_workflows`](../server/services/temporal/client.py) runs once after client connect and terminates every `Running` workflow with `reason="OpenCompany startup: auto-resumption disabled"`. Workflows show as `Terminated` (not deleted) in the UI. Gated by `TEMPORAL_TERMINATE_RUNNING_ON_STARTUP=true`. Flip to `false` once `DeploymentManager` reconcile-against-Visibility lands.**Embedded worker:**The Temporal worker runs inside the Python backend via `TemporalWorkerManager` in `main.py` lifespan. No separate worker process needed for single-server deployments. For horizontal scaling, run standalone workers:diff --git a/docs-internal/credentials_encryption.md b/docs-internal/credentials_encryption.mdindex 64aa98d6..b1af5cb5 100644--- a/docs-internal/credentials_encryption.md+++ b/docs-internal/credentials_encryption.md@@ -1,14 +1,14 @@# Encrypted Credentials System-API keys, OAuth tokens, and other secrets in MachinaOS are stored in a separate encrypted SQLite database (`credentials.db`) using Fernet (AES-128-CBC + HMAC-SHA256). The encryption key is derived from a server-scoped config key using PBKDF2HMAC with 600,000 iterations, following the n8n pattern.+API keys, OAuth tokens, and other secrets in OpenCompany are stored in a separate encrypted SQLite database (`credentials.db`) using Fernet (AES-128-CBC + HMAC-SHA256). The encryption key is derived from a server-scoped config key using PBKDF2HMAC with 600,000 iterations, following the n8n pattern.This document covers the encryption pipeline, the two separate credential systems (OAuth vs API keys), the single-point-of-access rule, and the multi-backend abstraction.## Why a Separate Database-Credentials are isolated from the main `machina.db` for three reasons:+Credentials are isolated from the main `workflow.db` for three reasons:-1. **Blast radius**: a dump of `machina.db` for debugging never contains secrets.+1. **Blast radius**: a dump of `workflow.db` for debugging never contains secrets.2. **Independent backups**: `credentials.db` can be excluded from snapshots and SQLite dumps.3. **Backend pluggability**: the file-backed SQLite can be swapped for OS keyring or AWS Secrets Manager without touching workflow storage.@@ -188,7 +188,7 @@ If `API_KEY_ENCRYPTION_KEY` is missing or changed, existing ciphertext becomes u- **Server-scoped key**: not tied to user login sessions. JWT cookies expire, but the encryption key survives across restarts.- **No plaintext on disk**: credentials are only decrypted in memory.- **No plaintext in Redis**: even in Redis mode, only encrypted envelopes cross the wire (the cache layer never stores decrypted credentials).-- **Salt per install**: different MachinaOS installs have different salts, so ciphertext is not portable across installs even with the same server key.+- **Salt per install**: different OpenCompany installs have different salts, so ciphertext is not portable across installs even with the same server key.- **Wipes on shutdown**: `EncryptionService.clear()` zeroes the Fernet reference, preventing cold-boot recovery of the derived key.## Source of Truth@@ -214,7 +214,7 @@ Every backend handler that mutates credential state MUST emit one or both of:- **`api_key_status`** — per-provider validation state change. Payload: `{valid, models, message, timestamp}`. Used for validation results and to clear `apiKeyStatuses[provider]` on every connected client (e.g. after `delete_api_key`).- **`credential_catalogue_updated`** — refetch signal carrying a CloudEvents v1.0 envelope. Body shape: `WorkflowEvent` from [`server/services/events/envelope.py`](../server/services/events/envelope.py) — same envelope the Wave 12 EventSource framework already uses. CloudEvents `type` follows the convention `credential.<area>.<action>` (e.g. `credential.api_key.saved`, `credential.api_key.deleted`, `credential.oauth.disconnected`). The wire-format outer `type` stays `credential_catalogue_updated` for frontend back-compat; future external interop (EventBridge / Knative) is a JSON-schema swap rather than a rewrite.-Helper: `broadcaster.broadcast_credential_event(event_type, *, provider, customer_id=None)` in `services/status_broadcaster.py` wraps `WorkflowEvent` with `source="machinaos://services/credentials"` and `subject=provider`.+Helper: `broadcaster.broadcast_credential_event(event_type, *, provider, customer_id=None)` in `services/status_broadcaster.py` wraps `WorkflowEvent` with `source="opencompany://services/credentials"` and `subject=provider`.Delete-style mutations emit **both** events. The frontend's `WebSocketContext` handles both and refreshes `apiKeyStatuses` plus the `useCatalogueQuery` cache. The 300 ms debounce in `invalidateCatalogue(queryClient)` (`client/src/hooks/useCatalogueQuery.ts`) coalesces simultaneous events into one refetch.diff --git a/docs-internal/credentials_panel.md b/docs-internal/credentials_panel.mdindex 906ab818..425cd788 100644--- a/docs-internal/credentials_panel.md+++ b/docs-internal/credentials_panel.md@@ -156,7 +156,7 @@ After validation succeeds, the frontend still calls `saveApiKey` (or backend sto### 2.6 Pattern F — OAuth via isolated subprocess (Claude)-**Credentials stored**: not in MachinaOs's encrypted DB. The official `@anthropic-ai/claude-code` CLI manages its own credentials file under `CLAUDE_CONFIG_DIR = <DATA_DIR>/claude/` (= `~/.machina/claude/` by default), isolated from the user's own `~/.claude/` session. MachinaOs never reads or writes that file; it only writes a synthetic `"cli-managed"` marker OAuth token via `auth_service.store_oauth_tokens` so the catalogue's `stored` flag flips. The CLI binary is npm-installed into the shared MachinaOs tree at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`.+**Credentials stored**: not in OpenCompany's encrypted DB. The official `@anthropic-ai/claude-code` CLI manages its own credentials file under `CLAUDE_CONFIG_DIR = <DATA_DIR>/claude/` (= `~/.opencompany/claude/` by default), isolated from the user's own `~/.claude/` session. OpenCompany never reads or writes that file; it only writes a synthetic `"cli-managed"` marker OAuth token via `auth_service.store_oauth_tokens` so the catalogue's `stored` flag flips. The CLI binary is npm-installed into the shared OpenCompany tree at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`.**Happy path** (wire keys `claude_code_login` / `claude_code_logout`; handlers in `nodes/agent/claude_code_agent/_handlers.py`, CLI wrappers in `_oauth.py`):```@@ -181,7 +181,7 @@ No logout WebSocket handler — user can manually delete the credentials file or### 2.7 Pattern G — QR pairing (WhatsApp)-**Credentials stored**: nothing in MachinaOs DB. Session lives inside the bundled `whatsapp-rpc` Go service (default port 9400).+**Credentials stored**: nothing in OpenCompany DB. Session lives inside the bundled `whatsapp-rpc` Go service (default port 9400).**Happy path**:```diff --git a/docs-internal/deployment_legacy.md b/docs-internal/deployment_legacy.mdindex 5f4d47d8..070fb1c0 100644--- a/docs-internal/deployment_legacy.md+++ b/docs-internal/deployment_legacy.md@@ -1,30 +1,31 @@# Deployment — Current Self-Deploy CLI + Legacy Docker Reference-This doc is the single home for MachinaOS deployment topology. The **current** path is the-`machina deploy` self-deploy CLI (top section). The **Docker Compose** path below it is a+This doc is the single home for OpenCompany deployment topology. The **current** path is the+`company deploy` self-deploy CLI (top section). The **Docker Compose** path below it is a**legacy reference only** — the compose files, `docker/` directory, and `scripts/docker.js`wrapper have all been removed from the repo. It is retained solely as documentation of thehistorical container topology.----## Self-Deploy CLI (`machina deploy`) — current path+## Self-Deploy CLI (`company deploy`) — current path-One command provisions a login-gated MachinaOS VM on a cloud provider. Two stages:+One command provisions a login-gated OpenCompany VM on a cloud provider. Two stages:1. **Operator's cloud CLI** (gcloud; aws planned) handles auth + project/region/zone resolution +ADC verification + API enablement.-2. **Terraform** (`cli/terraform/gcp/`) owns all resources — VM (always named `machinaos`),+2. **Terraform** (`cli/terraform/gcp/`) owns all resources — new VMs use the+ `opencompany` resource id,firewall, artifact bucket (local `npm pack` source), service account, and a cloud-init startup- script that installs Node 22 + uv + the package and runs `machina serve` under systemd.+ script that installs Node 22 + uv + the package and runs `company serve` under systemd.Login gate = built-in auth (`VITE_AUTH_ENABLED=true`, `AUTH_MODE=single`) with the ownercredential generated at deploy time and seeded on first boot.```bash-machina deploy up --provider gcp --owner-email [email protected] # provision + install + print URL/creds-machina deploy status # URL + /health-machina deploy destroy # terraform destroy + clear state+company deploy up --provider gcp --owner-email [email protected] # provision + install + print URL/creds+company deploy status # URL + /health+company deploy destroy # terraform destroy + clear state```### Key files@@ -37,9 +38,16 @@ machina deploy destroy # terraform des### State + delinking-- Deployment state lives at `<user-data>/deploy/machinaos/` — preserved by `machina clean`- (see `_MACHINA_KEEP` in `cli/commands/clean.py`); only `machina deploy destroy` removes it.-- The deploy code is fully delinked from `machina build` / `machina clean`: lazy verb stubs in+- New deployment state lives at `<user-data>/deploy/opencompany/` — preserved by `company clean`+ (see `_OPENCOMPANY_KEEP` in `cli/commands/clean.py`); only `company deploy destroy` removes it.+- Upgrade compatibility is deliberate: the CLI discovers pre-rebrand+ `deploy/machinaos/` state under the configured data root, `~/.machina`, or a+ checkout-local `.machina` directory. It retains the `machinaos` cloud and+ systemd resource id for that deployment, preventing Terraform from replacing+ or orphaning live infrastructure. Fresh deployments use `opencompany`.+- The `machina` executable remains only as a deprecated legacy alias; use `company`+ in new commands and automation.+- The deploy code is fully delinked from `company build` / `company clean`: lazy verb stubs in`cli/cli.py` mean nothing in the build pipeline imports it.The legacy `deploy.sh` (docker-compose images over SCP to a GCE box) was removed.@@ -62,9 +70,9 @@ The project previously deployed using Docker Compose with an nginx reverse proxy| Container | Image | Port | Description ||-----------|-------|------|-------------|| redis | redis:7-alpine | 6379 | Cache and pub/sub for workflows |-| backend | machinaos-backend | 3010 | FastAPI Python backend |-| frontend | machinaos-frontend | 3000 | React app via nginx |-| whatsapp | machinaos-whatsapp | 5000 | Go WhatsApp bridge service |+| backend | opencompany-backend | 3010 | FastAPI Python backend |+| frontend | opencompany-frontend | 3000 | React app via nginx |+| whatsapp | opencompany-whatsapp | 5000 | Go WhatsApp bridge service |**Frontend (`client/Dockerfile`):**- Multi-stage build: Node.js builder -> nginx:alpine production@@ -249,17 +257,17 @@ if (!baseUrl) {```bash# View logs (all containers)-ssh $DEPLOY_HOST 'cd /opt/machinaos && docker-compose logs -f'+ssh $DEPLOY_HOST 'cd /opt/opencompany && docker-compose logs -f'# View specific service logs-ssh $DEPLOY_HOST 'cd /opt/machinaos && docker-compose logs -f backend'-ssh $DEPLOY_HOST 'cd /opt/machinaos && docker-compose logs -f whatsapp'+ssh $DEPLOY_HOST 'cd /opt/opencompany && docker-compose logs -f backend'+ssh $DEPLOY_HOST 'cd /opt/opencompany && docker-compose logs -f whatsapp'# Restart all services-ssh $DEPLOY_HOST 'cd /opt/machinaos && docker-compose restart'+ssh $DEPLOY_HOST 'cd /opt/opencompany && docker-compose restart'# Restart specific service-ssh $DEPLOY_HOST 'cd /opt/machinaos && docker-compose restart backend'+ssh $DEPLOY_HOST 'cd /opt/opencompany && docker-compose restart backend'# Check container statusssh $DEPLOY_HOST 'docker ps'@@ -268,7 +276,7 @@ ssh $DEPLOY_HOST 'docker ps'ssh $DEPLOY_HOST 'docker stats --no-stream'# Check Redis connection-ssh $DEPLOY_HOST 'docker exec machinaos-redis-1 redis-cli ping'+ssh $DEPLOY_HOST 'docker exec opencompany-redis-1 redis-cli ping'# Check backend health (shows redis_enabled status)curl -s https://$DEPLOY_DOMAIN/health | jqdiff --git a/docs-internal/design-system/IMPLEMENTATION.md b/docs-internal/design-system/IMPLEMENTATION.mdindex 2b86ec3b..c95b9c62 100644--- a/docs-internal/design-system/IMPLEMENTATION.md+++ b/docs-internal/design-system/IMPLEMENTATION.md@@ -1,6 +1,6 @@-# MachinaOS Design System — Claude Code Implementation Guide+# OpenCompany Design System — Claude Code Implementation Guide-This bundle is the **MachinaOS (zeenie.ai) design system**: real design tokens, reference React components, full-screen UI-kit recreations, and foundation/theme documentation. Hand it to Claude Code to implement MachinaOS-branded UI in a real codebase.+This bundle is the **OpenCompany (zeenie.ai) design system**: real design tokens, reference React components, full-screen UI-kit recreations, and foundation/theme documentation. Hand it to Claude Code to implement OpenCompany-branded UI in a real codebase.> **What these files are.** `styles.css` + everything under `tokens/` is **production-ready CSS** — ship it as-is. Everything under `components/`, `ui_kits/`, and `guidelines/` is a **design reference**: faithful prototypes (React with inline styles that read the CSS variables) showing the intended look, anatomy, and behavior. Recreate them in the target codebase's own environment and patterns (your component library, your styling system) rather than copying verbatim. If there's no environment yet, React + plain CSS variables is the path of least resistance because the components are already written that way.@@ -94,7 +94,7 @@ Fixed chrome: `--h-toolbar 48` `--h-statusbar 24` `--h-control 32` `--w-sidebar`--dur-fast 90ms` `--dur-default 180ms` `--dur-slow 320ms` · `--ease-default cubic-bezier(.2,.7,.3,1)` · `--ease-emphasis cubic-bezier(.6,-.05,.3,1.4)`. Hover lifts -1px; press translates +1px; disabled opacity .5. Honor `prefers-reduced-motion`.### Motion / animation (`tokens/animations.css` — see §6)-Motion is theme-scoped: each `[data-theme]` overrides `--dur-*`, `--ease-default`, a named `--motion-style`, and which executing-pulse keyframe it uses. The glow color is **`--node-pulse-color`** — a theme-chosen contrast accent, never the node's own fill. Signature keyframes: `node-pulse` (default 3-layer glow), `trigger-listening` (armed heartbeat), `cyber-*` (steps strobe + CRT + scanline), `surv-*`, `ren-pulse-exec`. Helper classes: `.machina-pulse`, `.machina-trigger-armed`, `.machina-bolt`, `.machina-crt`, `.machina-scanline`.+Motion is theme-scoped: each `[data-theme]` overrides `--dur-*`, `--ease-default`, a named `--motion-style`, and which executing-pulse keyframe it uses. The glow color is **`--node-pulse-color`** — a theme-chosen contrast accent, never the node's own fill. Signature keyframes: `node-pulse` (default 3-layer glow), `trigger-listening` (armed heartbeat), `cyber-*` (steps strobe + CRT + scanline), `surv-*`, `ren-pulse-exec`. Helper classes: `.opencompany-pulse`, `.opencompany-trigger-armed`, `.opencompany-bolt`, `.opencompany-crt`, `.opencompany-scanline`.---@@ -121,7 +121,7 @@ Implementation notes:## 4. UI kits (full screens to match)-`ui_kits/machinaos/` is an interactive recreation of the product — the source of truth for how components compose into real views. Open `ui_kits/machinaos/index.html`.+`ui_kits/opencompany/` is an interactive recreation of the product — the source of truth for how components compose into real views. Open `ui_kits/opencompany/index.html`.- `Toolbar.jsx` — 48px top toolbar (file menu, workflow name, Normal/Dev toggle, action cluster, save state).- `Panels.jsx` — 280px workflow sidebar + 320px component palette (search, categorized node catalogue, count badges).@@ -144,9 +144,9 @@ Visual verification pages (open in a browser): `guidelines/theme-comparison-fullMotion is part of each theme's identity — the personality lives in the **easing function**, not just duration (smooth · organic · mechanical · bouncy 1.6-overshoot · steps glitch · jittery · 680ms drift · stiff · linear scanline). Per-`[data-theme]` scopes set `--dur-*`, `--ease-*`, `--motion-style`, and `--pulse-keyframe/-duration/-timing`.-- **Executing pulse:** add `.machina-pulse` to a running node; it reads the theme's keyframe + `--node-pulse-color` (the theme's contrast glow color — set it on/above the node).-- **Trigger nodes:** `.machina-trigger-armed` is the continuous "listening" heartbeat while a trigger waits for events (distinct from the one-shot execution pulse); pair with the lightning ⚡ badge (`.machina-bolt`) and no input handle. `trigger-fire` flashes when an event lands.-- **Ambient:** `.machina-crt` (CRT flicker) + `.machina-scanline` (rolling band) for Cyber/Surveillance frames.+- **Executing pulse:** add `.opencompany-pulse` to a running node; it reads the theme's keyframe + `--node-pulse-color` (the theme's contrast glow color — set it on/above the node).+- **Trigger nodes:** `.opencompany-trigger-armed` is the continuous "listening" heartbeat while a trigger waits for events (distinct from the one-shot execution pulse); pair with the lightning ⚡ badge (`.opencompany-bolt`) and no input handle. `trigger-fire` flashes when an event lands.+- **Ambient:** `.opencompany-crt` (CRT flicker) + `.opencompany-scanline` (rolling band) for Cyber/Surveillance frames.- All loops stop under `prefers-reduced-motion`; always ship the static end-state so print/PDF render meaningfully.---@@ -161,7 +161,7 @@ Second person, possessive ("your own AI assistant"). Terse declarative fragments- `styles.css` — global entry (import this). `tokens/` — the seven token files including `animations.css` (ship as-is).- `components/<group>/` — 38 components (`.jsx` + `.d.ts` + `.prompt.md`) + one `*.card.html` specimen per group.-- `ui_kits/machinaos/` — interactive full-app recreation (`index.html` + JSX) incl. Settings / Credentials / Node-Config panels.+- `ui_kits/opencompany/` — interactive full-app recreation (`index.html` + JSX) incl. Settings / Credentials / Node-Config panels.- `guidelines/` — foundation specimen cards, `THEMES.md`, `ANIMATIONS.md`, and the theme/panel/animation comparison pages.- `reference/themes/` — verbatim repo theme CSS (porting reference; not shipped to consumers).- `assets/` — product screenshot + official architecture diagrams (SVG).diff --git a/docs-internal/design-system/SKILL.md b/docs-internal/design-system/SKILL.mdindex 53905222..4679e3a3 100644--- a/docs-internal/design-system/SKILL.md+++ b/docs-internal/design-system/SKILL.md@@ -1,6 +1,6 @@----name: machinaos-design-description: Use this skill to generate well-branded interfaces and assets for MachinaOS (zeenie.ai), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.+name: opencompany-design+description: Use this skill to generate well-branded interfaces and assets for OpenCompany (zeenie.ai), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.user-invocable: true---@@ -9,9 +9,9 @@ If creating visual artifacts (slides, mocks, throwaway prototypes, etc), copy asIf the user invokes this skill without any other guidance, ask them what they want to build or design, ask some questions, and act as an expert designer who outputs HTML artifacts _or_ production code, depending on the need.Key facts:-- MachinaOS is zeenie.ai's local-first AI workflow OS — a visual node canvas where users wire AI agents to email, WhatsApp, Android phones, browsers, and 50+ services.+- OpenCompany is zeenie.ai's local-first AI workflow OS — a visual node canvas where users wire AI agents to email, WhatsApp, Android phones, browsers, and 50+ services.- Link `styles.css` for all tokens; add `class="dark"` on `<html>` for the signature neutral-slate-dark + Dracula-neon look (the default for product UI).- Color is semantic: action intents (run=green, stop=pink, save=cyan, config=orange, secret=yellow, tools=purple) and node roles (agent=purple, model=cyan, tool=green, trigger=pink, workflow=orange) — always as soft tints (8–15% fill, 30–60% border, full-strength text), never solid neon fills.- Type: Geist (Google Fonts), 14px base, sentence case, terse copy; JetBrains Mono for counts/state/timestamps.- Icons: Lucide only (stroke 2, currentColor); product node icons are colorful emoji-style glyphs.-- Reusable React components live in `components/` (with `.prompt.md` usage notes per component); a full interactive recreation of the app is in `ui_kits/machinaos/`.+- Reusable React components live in `components/` (with `.prompt.md` usage notes per component); a full interactive recreation of the app is in `ui_kits/opencompany/`.diff --git a/docs-internal/design-system/_adherence.oxlintrc.json b/docs-internal/design-system/_adherence.oxlintrc.jsonindex d793ac93..32d6aa1f 100644--- a/docs-internal/design-system/_adherence.oxlintrc.json+++ b/docs-internal/design-system/_adherence.oxlintrc.json@@ -23,7 +23,7 @@"components/forms/**","components/icons/**","components/panels/**",- "ui_kits/machinaos/**"+ "ui_kits/opencompany/**"],"message": "Import design-system components from 'index.js', not component internals."}diff --git a/docs-internal/design-system/_ds_bundle.js b/docs-internal/design-system/_ds_bundle.jsindex 132d13f0..ef1e2a25 100644--- a/docs-internal/design-system/_ds_bundle.js+++ b/docs-internal/design-system/_ds_bundle.js@@ -1,8 +1,8 @@-/* @ds-bundle: {"format":3,"namespace":"MachinaOSDesignSystem_2559cf","components":[{"name":"ActionButton","sourcePath":"components/buttons/ActionButton.jsx"},{"name":"Button","sourcePath":"components/buttons/Button.jsx"},{"name":"ComponentItem","sourcePath":"components/canvas/ComponentItem.jsx"},{"name":"ModeToggle","sourcePath":"components/canvas/ModeToggle.jsx"},{"name":"SquareNode","sourcePath":"components/canvas/SquareNode.jsx"},{"name":"StatusBar","sourcePath":"components/canvas/StatusBar.jsx"},{"name":"WorkflowCard","sourcePath":"components/canvas/WorkflowCard.jsx"},{"name":"Avatar","sourcePath":"components/display/Avatar.jsx"},{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"ChatBubble","sourcePath":"components/display/ChatBubble.jsx"},{"name":"Kbd","sourcePath":"components/display/Kbd.jsx"},{"name":"LogLine","sourcePath":"components/display/LogLine.jsx"},{"name":"Tabs","sourcePath":"components/display/Tabs.jsx"},{"name":"EmptyState","sourcePath":"components/feedback/EmptyState.jsx"},{"name":"Modal","sourcePath":"components/feedback/Modal.jsx"},{"name":"Progress","sourcePath":"components/feedback/Progress.jsx"},{"name":"Spinner","sourcePath":"components/feedback/Spinner.jsx"},{"name":"Toast","sourcePath":"components/feedback/Toast.jsx"},{"name":"Tooltip","sourcePath":"components/feedback/Tooltip.jsx"},{"name":"ApiKeyInput","sourcePath":"components/forms/ApiKeyInput.jsx"},{"name":"Checkbox","sourcePath":"components/forms/Checkbox.jsx"},{"name":"Input","sourcePath":"components/forms/Input.jsx"},{"name":"RadioGroup","sourcePath":"components/forms/RadioGroup.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"Textarea","sourcePath":"components/forms/Textarea.jsx"},{"name":"Icon","sourcePath":"components/icons/Icon.jsx"},{"name":"CollapsibleSection","sourcePath":"components/panels/CollapsibleSection.jsx"},{"name":"DataCard","sourcePath":"components/panels/DataCard.jsx"},{"name":"PanelModal","sourcePath":"components/panels/PanelModal.jsx"},{"name":"SettingsSection","sourcePath":"components/panels/SettingsSection.jsx"},{"name":"SettingsRow","sourcePath":"components/panels/SettingsSection.jsx"}],"sourceHashes":{"components/buttons/ActionButton.jsx":"3de567509700","components/buttons/Button.jsx":"c81ef2c80131","components/canvas/ComponentItem.jsx":"fed2f287e532","components/canvas/ModeToggle.jsx":"2386b2142874","components/canvas/SquareNode.jsx":"5604401e105a","components/canvas/StatusBar.jsx":"f3ba959f8bac","components/canvas/WorkflowCard.jsx":"76dc0735c0e1","components/display/Avatar.jsx":"c636baa7014f","components/display/Badge.jsx":"1e9482639eb7","components/display/Card.jsx":"d60b5d2e81cb","components/display/ChatBubble.jsx":"97f3de1f9e95","components/display/Kbd.jsx":"0b1575a8f4ab","components/display/LogLine.jsx":"8b8dcbe178d2","components/display/Tabs.jsx":"29083e164683","components/feedback/EmptyState.jsx":"bcaf3094afb4","components/feedback/Modal.jsx":"b99b3f25e581","components/feedback/Progress.jsx":"1c91d593fe2b","components/feedback/Spinner.jsx":"47e22c9fed7a","components/feedback/Toast.jsx":"da490f96e375","components/feedback/Tooltip.jsx":"1181368448e9","components/forms/ApiKeyInput.jsx":"5ed6f076a952","components/forms/Checkbox.jsx":"a687ca85bef0","components/forms/Input.jsx":"955d8ddccdc7","components/forms/RadioGroup.jsx":"4ff6bd70406c","components/forms/Select.jsx":"79482ec6f9e9","components/forms/Slider.jsx":"4cd8ba4d0c99","components/forms/Switch.jsx":"8de73e29935c","components/forms/Textarea.jsx":"1d0b6f74e112","components/icons/Icon.jsx":"3fbda05c3dcd","components/panels/CollapsibleSection.jsx":"5ab48b069cd1","components/panels/DataCard.jsx":"644079601685","components/panels/PanelModal.jsx":"ca2f9656ca17","components/panels/SettingsSection.jsx":"568e16e1e05e","ui_kits/machinaos/App.jsx":"b5cca1c6f3c0","ui_kits/machinaos/CanvasView.jsx":"59f3b01513f3","ui_kits/machinaos/ConsoleDock.jsx":"0c284423b0b3","ui_kits/machinaos/Panels.jsx":"de31785649fa","ui_kits/machinaos/PanelsModals.jsx":"0d558a4e2995","ui_kits/machinaos/Toolbar.jsx":"6ba622604af7"},"inlinedExternals":[],"unexposedExports":[]} */+/* @ds-bundle: {"format":3,"namespace":"OpenCompanyDesignSystem_2559cf","components":[{"name":"ActionButton","sourcePath":"components/buttons/ActionButton.jsx"},{"name":"Button","sourcePath":"components/buttons/Button.jsx"},{"name":"ComponentItem","sourcePath":"components/canvas/ComponentItem.jsx"},{"name":"ModeToggle","sourcePath":"components/canvas/ModeToggle.jsx"},{"name":"SquareNode","sourcePath":"components/canvas/SquareNode.jsx"},{"name":"StatusBar","sourcePath":"components/canvas/StatusBar.jsx"},{"name":"WorkflowCard","sourcePath":"components/canvas/WorkflowCard.jsx"},{"name":"Avatar","sourcePath":"components/display/Avatar.jsx"},{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"ChatBubble","sourcePath":"components/display/ChatBubble.jsx"},{"name":"Kbd","sourcePath":"components/display/Kbd.jsx"},{"name":"LogLine","sourcePath":"components/display/LogLine.jsx"},{"name":"Tabs","sourcePath":"components/display/Tabs.jsx"},{"name":"EmptyState","sourcePath":"components/feedback/EmptyState.jsx"},{"name":"Modal","sourcePath":"components/feedback/Modal.jsx"},{"name":"Progress","sourcePath":"components/feedback/Progress.jsx"},{"name":"Spinner","sourcePath":"components/feedback/Spinner.jsx"},{"name":"Toast","sourcePath":"components/feedback/Toast.jsx"},{"name":"Tooltip","sourcePath":"components/feedback/Tooltip.jsx"},{"name":"ApiKeyInput","sourcePath":"components/forms/ApiKeyInput.jsx"},{"name":"Checkbox","sourcePath":"components/forms/Checkbox.jsx"},{"name":"Input","sourcePath":"components/forms/Input.jsx"},{"name":"RadioGroup","sourcePath":"components/forms/RadioGroup.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"Textarea","sourcePath":"components/forms/Textarea.jsx"},{"name":"Icon","sourcePath":"components/icons/Icon.jsx"},{"name":"CollapsibleSection","sourcePath":"components/panels/CollapsibleSection.jsx"},{"name":"DataCard","sourcePath":"components/panels/DataCard.jsx"},{"name":"PanelModal","sourcePath":"components/panels/PanelModal.jsx"},{"name":"SettingsSection","sourcePath":"components/panels/SettingsSection.jsx"},{"name":"SettingsRow","sourcePath":"components/panels/SettingsSection.jsx"}],"sourceHashes":{"components/buttons/ActionButton.jsx":"3de567509700","components/buttons/Button.jsx":"c81ef2c80131","components/canvas/ComponentItem.jsx":"fed2f287e532","components/canvas/ModeToggle.jsx":"2386b2142874","components/canvas/SquareNode.jsx":"5604401e105a","components/canvas/StatusBar.jsx":"f3ba959f8bac","components/canvas/WorkflowCard.jsx":"76dc0735c0e1","components/display/Avatar.jsx":"c636baa7014f","components/display/Badge.jsx":"1e9482639eb7","components/display/Card.jsx":"d60b5d2e81cb","components/display/ChatBubble.jsx":"97f3de1f9e95","components/display/Kbd.jsx":"0b1575a8f4ab","components/display/LogLine.jsx":"8b8dcbe178d2","components/display/Tabs.jsx":"29083e164683","components/feedback/EmptyState.jsx":"bcaf3094afb4","components/feedback/Modal.jsx":"b99b3f25e581","components/feedback/Progress.jsx":"1c91d593fe2b","components/feedback/Spinner.jsx":"47e22c9fed7a","components/feedback/Toast.jsx":"da490f96e375","components/feedback/Tooltip.jsx":"1181368448e9","components/forms/ApiKeyInput.jsx":"5ed6f076a952","components/forms/Checkbox.jsx":"a687ca85bef0","components/forms/Input.jsx":"955d8ddccdc7","components/forms/RadioGroup.jsx":"4ff6bd70406c","components/forms/Select.jsx":"79482ec6f9e9","components/forms/Slider.jsx":"4cd8ba4d0c99","components/forms/Switch.jsx":"8de73e29935c","components/forms/Textarea.jsx":"1d0b6f74e112","components/icons/Icon.jsx":"3fbda05c3dcd","components/panels/CollapsibleSection.jsx":"5ab48b069cd1","components/panels/DataCard.jsx":"644079601685","components/panels/PanelModal.jsx":"ca2f9656ca17","components/panels/SettingsSection.jsx":"568e16e1e05e","ui_kits/opencompany/App.jsx":"b5cca1c6f3c0","ui_kits/opencompany/CanvasView.jsx":"59f3b01513f3","ui_kits/opencompany/ConsoleDock.jsx":"0c284423b0b3","ui_kits/opencompany/Panels.jsx":"de31785649fa","ui_kits/opencompany/PanelsModals.jsx":"0d558a4e2995","ui_kits/opencompany/Toolbar.jsx":"6ba622604af7"},"inlinedExternals":[],"unexposedExports":[]} */(() => {-const __ds_ns = (window.MachinaOSDesignSystem_2559cf = window.MachinaOSDesignSystem_2559cf || {});+const __ds_ns = (window.OpenCompanyDesignSystem_2559cf = window.OpenCompanyDesignSystem_2559cf || {});const __ds_scope = {};@@ -12,7 +12,7 @@ const __ds_scope = {};try { (() => {function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }/**- * ActionButton — the signature MachinaOS "soft tinted" toolbar button.+ * ActionButton — the signature OpenCompany "soft tinted" toolbar button.* `intent` is a semantic role, not a color: run / stop / save / config /* secret / tools. Soft tint fill (15%), tinted border (60%), accent text;* hover deepens the fill to 25%; press nudges down 1px.@@ -361,7 +361,7 @@ Object.assign(__ds_scope, { ModeToggle });// components/canvas/SquareNode.jsxtry { (() => {/**- * SquareNode — MachinaOS canvas node. 64px icon square with accent-tinted+ * SquareNode — OpenCompany canvas node. 64px icon square with accent-tinted* 2px border + 135° gradient fill, status pip (top-left), gear button* (top-right), in/out connection handles, label below. Executing nodes* pulse a three-layer glow (requires tokens/animations.css).@@ -431,7 +431,7 @@ function SquareNode({...style}}, /*#__PURE__*/React.createElement("div", {- className: executing ? 'machina-pulse' : armed ? 'machina-trigger-armed' : undefined,+ className: executing ? 'opencompany-pulse' : armed ? 'opencompany-trigger-armed' : undefined,style: {'--node-pulse-color': glow,position: 'relative',@@ -450,7 +450,7 @@ function SquareNode({color: 'var(--fg-default)'}}, icon, /*#__PURE__*/React.createElement("span", {- className: status === 'listening' ? 'machina-pip-pulse' : undefined,+ className: status === 'listening' ? 'opencompany-pip-pulse' : undefined,style: {position: 'absolute',top: -4,@@ -464,7 +464,7 @@ function SquareNode({}}), trigger ? /*#__PURE__*/React.createElement("span", {title: "Trigger \u2014 starts the workflow",- className: armed ? 'machina-bolt' : undefined,+ className: armed ? 'opencompany-bolt' : undefined,style: {position: 'absolute',bottom: -4,@@ -638,7 +638,7 @@ function StatusBar({borderRadius: '50%',background: tone.color,display: 'inline-block',- animation: connection === 'online' ? 'machina-pip-blink 2s ease-in-out infinite' : 'none'+ animation: connection === 'online' ? 'opencompany-pip-blink 2s ease-in-out infinite' : 'none'}}), tone.label), sep, /*#__PURE__*/React.createElement("span", null, "WF: ", /*#__PURE__*/React.createElement("span", {style: {@@ -663,7 +663,7 @@ function StatusBar({style: {fontVariantNumeric: 'tabular-nums'}- }, timeText)), /*#__PURE__*/React.createElement("style", null, '@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }'));+ }, timeText)), /*#__PURE__*/React.createElement("style", null, '@keyframes opencompany-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }'));}Object.assign(__ds_scope, { StatusBar });})(); } catch (e) { __ds_ns.__errors.push({ path: "components/canvas/StatusBar.jsx", error: String((e && e.message) || e) }); }@@ -1336,7 +1336,7 @@ function Spinner({viewBox: "0 0 24 24",fill: "none",style: {- animation: 'machina-spin 0.9s linear infinite'+ animation: 'opencompany-spin 0.9s linear infinite'}}, /*#__PURE__*/React.createElement("circle", {cx: "12",@@ -1349,7 +1349,7 @@ function Spinner({stroke: color,strokeWidth: "3",strokeLinecap: "round"- })), /*#__PURE__*/React.createElement("style", null, '@keyframes machina-spin { to { transform: rotate(360deg); } }'));+ })), /*#__PURE__*/React.createElement("style", null, '@keyframes opencompany-spin { to { transform: rotate(360deg); } }'));}Object.assign(__ds_scope, { Spinner });})(); } catch (e) { __ds_ns.__errors.push({ path: "components/feedback/Spinner.jsx", error: String((e && e.message) || e) }); }@@ -1681,7 +1681,7 @@ function ValidateButton({viewBox: "0 0 24 24",fill: "none",style: {- animation: 'machina-spin 0.9s linear infinite'+ animation: 'opencompany-spin 0.9s linear infinite'}}, /*#__PURE__*/React.createElement("path", {d: "M21 12a9 9 0 0 0-9-9",@@ -1716,7 +1716,7 @@ function ValidateButton({points: "17 21 17 13 7 13 7 21"}), /*#__PURE__*/React.createElement("polyline", {points: "7 3 7 8 15 8"- })), label, /*#__PURE__*/React.createElement("style", null, '@keyframes machina-spin { to { transform: rotate(360deg); } }'));+ })), label, /*#__PURE__*/React.createElement("style", null, '@keyframes opencompany-spin { to { transform: rotate(360deg); } }'));}function DeleteButton({onClick,@@ -2352,7 +2352,7 @@ Object.assign(__ds_scope, { Textarea });try { (() => {function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }/**- * Icon — Lucide bridge. MachinaOS uses lucide-react; in this design system+ * Icon — Lucide bridge. OpenCompany uses lucide-react; in this design system* icons render from the lucide UMD bundle. Load it once per page:* <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>* Then <Icon name="Play" size={14} /> — colored via currentColor.@@ -2931,11 +2931,11 @@ function SettingsRow({Object.assign(__ds_scope, { SettingsSection, SettingsRow });})(); } catch (e) { __ds_ns.__errors.push({ path: "components/panels/SettingsSection.jsx", error: String((e && e.message) || e) }); }-// ui_kits/machinaos/App.jsx+// ui_kits/opencompany/App.jsxtry { (() => {-// MachinaOS UI kit — app shell wiring all panels together.-const DS_APP = window.MachinaOSDesignSystem_2559cf;-const KIT = window.MachinaKit;+// OpenCompany UI kit — app shell wiring all panels together.+const DS_APP = window.OpenCompanyDesignSystem_2559cf;+const KIT = window.OpenCompanyKit;const WORKFLOWS = [{id: 'wa',name: 'WhatsApp Assistant',@@ -3069,13 +3069,13 @@ function App() {}));}ReactDOM.createRoot(document.getElementById('root')).render(/*#__PURE__*/React.createElement(App, null));-})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/App.jsx", error: String((e && e.message) || e) }); }+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/opencompany/App.jsx", error: String((e && e.message) || e) }); }-// ui_kits/machinaos/CanvasView.jsx+// ui_kits/opencompany/CanvasView.jsxtry { (() => {-// MachinaOS UI kit — node canvas: dot grid, dashed edges, square nodes,+// OpenCompany UI kit — node canvas: dot grid, dashed edges, square nodes,// rectangular AI Agent node. Click nodes to select; Start runs the flow.-const DS_CV = window.MachinaOSDesignSystem_2559cf;+const DS_CV = window.OpenCompanyDesignSystem_2559cf;// Rectangular agent node (the larger card-style node from the product).function AgentNode({@@ -3090,7 +3090,7 @@ function AgentNode({const color = 'var(--node-agent)';return /*#__PURE__*/React.createElement("div", {onClick: onClick,- className: executing ? 'machina-pulse' : undefined,+ className: executing ? 'opencompany-pulse' : undefined,style: {'--node-pulse-color': color,position: 'absolute',@@ -3425,15 +3425,15 @@ function CanvasView({})}))));}-window.MachinaKit = Object.assign(window.MachinaKit || {}, {+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, {CanvasView});-})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/CanvasView.jsx", error: String((e && e.message) || e) }); }+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/opencompany/CanvasView.jsx", error: String((e && e.message) || e) }); }-// ui_kits/machinaos/ConsoleDock.jsx+// ui_kits/opencompany/ConsoleDock.jsxtry { (() => {-// MachinaOS UI kit — multi-tab console dock (Chat / Console / Terminal).-const DS_CD = window.MachinaOSDesignSystem_2559cf;+// OpenCompany UI kit — multi-tab console dock (Chat / Console / Terminal).+const DS_CD = window.OpenCompanyDesignSystem_2559cf;const CONSOLE_LINES = [{t: '12:01:31',tone: 'var(--fg-muted)',@@ -3584,26 +3584,26 @@ function ConsoleDock({style: {color: 'var(--success)'}- }, "$"), " machina start"), /*#__PURE__*/React.createElement("div", {+ }, "$"), " company start"), /*#__PURE__*/React.createElement("div", {style: {color: 'var(--fg-muted)',marginTop: 4}- }, "MachinaOS running at http://localhost:3000"), /*#__PURE__*/React.createElement("div", {+ }, "OpenCompany running at http://localhost:3000"), /*#__PURE__*/React.createElement("div", {style: {color: 'var(--fg-muted)'}}, "Temporal \xB7 Python backend \xB7 WhatsApp service \u2014 all up"))) : null);}-window.MachinaKit = Object.assign(window.MachinaKit || {}, {+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, {ConsoleDock});-})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/ConsoleDock.jsx", error: String((e && e.message) || e) }); }+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/opencompany/ConsoleDock.jsx", error: String((e && e.message) || e) }); }-// ui_kits/machinaos/Panels.jsx+// ui_kits/opencompany/Panels.jsxtry { (() => {-// MachinaOS UI kit — workflow sidebar (280px) + component palette (320px).-const DS_PN = window.MachinaOSDesignSystem_2559cf;+// OpenCompany UI kit — workflow sidebar (280px) + component palette (320px).+const DS_PN = window.OpenCompanyDesignSystem_2559cf;function SidebarPanel({workflows,currentId,@@ -3907,18 +3907,18 @@ function PalettePanel({onClick: () => onDropNode && onDropNode(it, section)}))) : null))));}-window.MachinaKit = Object.assign(window.MachinaKit || {}, {+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, {SidebarPanel,PalettePanel});-})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/Panels.jsx", error: String((e && e.message) || e) }); }+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/opencompany/Panels.jsx", error: String((e && e.message) || e) }); }-// ui_kits/machinaos/PanelsModals.jsx+// ui_kits/opencompany/PanelsModals.jsxtry { (() => {-// MachinaOS UI kit — Settings, Node Configuration, and Credentials modals.+// OpenCompany UI kit — Settings, Node Configuration, and Credentials modals.// Faithful recreations of SettingsPanel.tsx / ParameterPanel.tsx, composed// from the DS panel components.-const DS_PM = window.MachinaOSDesignSystem_2559cf;+const DS_PM = window.OpenCompanyDesignSystem_2559cf;function SettingsModal({open,onClose@@ -4496,18 +4496,18 @@ function CredentialsModal({placeholder: "Enter API key..."})))));}-window.MachinaKit = Object.assign(window.MachinaKit || {}, {+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, {SettingsModal,NodeConfigModal,CredentialsModal});-})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/PanelsModals.jsx", error: String((e && e.message) || e) }); }+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/opencompany/PanelsModals.jsx", error: String((e && e.message) || e) }); }-// ui_kits/machinaos/Toolbar.jsx+// ui_kits/opencompany/Toolbar.jsxtry { (() => {-// MachinaOS UI kit — top toolbar (48px, bg-panel).+// OpenCompany UI kit — top toolbar (48px, bg-panel).// Composes ActionButton / Button / ModeToggle / Icon from the DS bundle.-const DS_TB = window.MachinaOSDesignSystem_2559cf;+const DS_TB = window.OpenCompanyDesignSystem_2559cf;function Divider() {return /*#__PURE__*/React.createElement("div", {style: {@@ -4688,10 +4688,10 @@ function Toolbar({size: 14}))));}-window.MachinaKit = Object.assign(window.MachinaKit || {}, {+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, {Toolbar});-})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/Toolbar.jsx", error: String((e && e.message) || e) }); }+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/opencompany/Toolbar.jsx", error: String((e && e.message) || e) }); }__ds_ns.ActionButton = __ds_scope.ActionButton;diff --git a/docs-internal/design-system/_ds_manifest.json b/docs-internal/design-system/_ds_manifest.jsonindex 9caa05e9..5c49494c 100644--- a/docs-internal/design-system/_ds_manifest.json+++ b/docs-internal/design-system/_ds_manifest.json@@ -1 +1 @@-{"namespace":"MachinaOSDesignSystem_2559cf","components":[{"name":"ActionButton","sourcePath":"components/buttons/ActionButton.jsx"},{"name":"Button","sourcePath":"components/buttons/Button.jsx"},{"name":"ComponentItem","sourcePath":"components/canvas/ComponentItem.jsx"},{"name":"ModeToggle","sourcePath":"components/canvas/ModeToggle.jsx"},{"name":"SquareNode","sourcePath":"components/canvas/SquareNode.jsx"},{"name":"StatusBar","sourcePath":"components/canvas/StatusBar.jsx"},{"name":"WorkflowCard","sourcePath":"components/canvas/WorkflowCard.jsx"},{"name":"Avatar","sourcePath":"components/display/Avatar.jsx"},{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"ChatBubble","sourcePath":"components/display/ChatBubble.jsx"},{"name":"Kbd","sourcePath":"components/display/Kbd.jsx"},{"name":"LogLine","sourcePath":"components/display/LogLine.jsx"},{"name":"Tabs","sourcePath":"components/display/Tabs.jsx"},{"name":"EmptyState","sourcePath":"components/feedback/EmptyState.jsx"},{"name":"Modal","sourcePath":"components/feedback/Modal.jsx"},{"name":"Progress","sourcePath":"components/feedback/Progress.jsx"},{"name":"Spinner","sourcePath":"components/feedback/Spinner.jsx"},{"name":"Toast","sourcePath":"components/feedback/Toast.jsx"},{"name":"Tooltip","sourcePath":"components/feedback/Tooltip.jsx"},{"name":"ApiKeyInput","sourcePath":"components/forms/ApiKeyInput.jsx"},{"name":"Checkbox","sourcePath":"components/forms/Checkbox.jsx"},{"name":"Input","sourcePath":"components/forms/Input.jsx"},{"name":"RadioGroup","sourcePath":"components/forms/RadioGroup.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"Textarea","sourcePath":"components/forms/Textarea.jsx"},{"name":"Icon","sourcePath":"components/icons/Icon.jsx"},{"name":"CollapsibleSection","sourcePath":"components/panels/CollapsibleSection.jsx"},{"name":"DataCard","sourcePath":"components/panels/DataCard.jsx"},{"name":"PanelModal","sourcePath":"components/panels/PanelModal.jsx"},{"name":"SettingsSection","sourcePath":"components/panels/SettingsSection.jsx"},{"name":"SettingsRow","sourcePath":"components/panels/SettingsSection.jsx"}],"startingPoints":[{"name":"SquareNode","path":"components/canvas/SquareNode.jsx","previewPath":"components/canvas/canvas.card.html","kind":"component","section":"Canvas","subtitle":"Workflow canvas node with pip, gear and handles","viewport":"700x220"},{"name":"ActionButton","path":"components/buttons/ActionButton.jsx","previewPath":"components/buttons/buttons.card.html","kind":"component","section":"Components","subtitle":"Soft tinted toolbar button with six semantic intents","viewport":"700x180"}],"cards":[{"path":"guidelines/animations-all-themes.html","group":"Brand","viewport":"1280x860","subtitle":"Live motion per theme: executing pulse, easing character, pip blink, hover lift, ambient CRT/scanline","name":"Animations — All Themes"},{"path":"guidelines/canvas-pattern.html","group":"Brand","viewport":"700x190","subtitle":"Canvas texture — dot grid + dashed accent edges between node handles","name":"Canvas Pattern"},{"path":"guidelines/panels-all-themes.html","group":"Brand","viewport":"1320x900","subtitle":"Every panel — toolbar, sidebar, palette, console, status bar, Node Config, Settings, Credentials — in all 12 themes","name":"Panels × Themes"},{"path":"guidelines/product-reference.html","group":"Brand","viewport":"700x300","subtitle":"Real product — dark canvas, neon nodes, WhatsApp automation","name":"Product Reference"},{"path":"guidelines/theme-comparison-full.html","group":"Brand","viewport":"1320x880","subtitle":"Full app screen + component strip in all 12 themes","name":"Theme Comparison — Full"},{"path":"guidelines/theme-comparison.html","group":"Brand","viewport":"1280x900","subtitle":"Same app screen rendered in all 12 themes — single file","name":"Theme Comparison"},{"path":"guidelines/theme-matrix.html","group":"Brand","viewport":"1100x720","subtitle":"All 12 product themes — surfaces, accents, type, radii, motion","name":"Theme Matrix"},{"path":"guidelines/wordmark.html","group":"Brand","viewport":"700x150","subtitle":"Stand-in wordmark — no official logo in repo (see readme caveats)","name":"Wordmark"},{"path":"guidelines/action-intents.html","group":"Colors","viewport":"700x150","subtitle":"Six toolbar intents — soft tint fill, tinted border, accent text","name":"Action Intents"},{"path":"guidelines/dracula-accents.html","group":"Colors","viewport":"700x150","subtitle":"Vibrant accents — identical in light & dark, used as soft tints","name":"Dracula Accents"},{"path":"guidelines/node-roles.html","group":"Colors","viewport":"700x170","subtitle":"Canvas node role colors — 8% soft fill, 30% border, full-strength accents","name":"Node Roles"},{"path":"guidelines/semantic-status.html","group":"Colors","viewport":"700x150","subtitle":"Status colors — Solarized in dark, deeper hues in light","name":"Semantic Status"},{"path":"guidelines/surfaces-dark.html","group":"Colors","viewport":"700x150","subtitle":"Solarized dark surfaces — the signature look","name":"Surfaces — Dark"},{"path":"guidelines/surfaces-light.html","group":"Colors","viewport":"700x150","subtitle":"Light structural surfaces & foreground","name":"Surfaces — Light"},{"path":"components/buttons/buttons.card.html","group":"Components","viewport":"700x240","subtitle":"ActionButton intents + Button variants","name":"Buttons"},{"path":"components/canvas/canvas.card.html","group":"Components","viewport":"700x330","subtitle":"SquareNode states, ComponentItem, WorkflowCard, ModeToggle, StatusBar","name":"Canvas"},{"path":"components/display/display.card.html","group":"Components","viewport":"700x430","subtitle":"Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble","name":"Display"},{"path":"components/feedback/feedback.card.html","group":"Components","viewport":"700x420","subtitle":"Modal, Toast, Tooltip, Spinner, Progress, EmptyState","name":"Feedback"},{"path":"components/forms/forms.card.html","group":"Components","viewport":"700x300","subtitle":"Input, Select, RadioGroup, Textarea, Switch, Checkbox","name":"Forms"},{"path":"components/icons/icons.card.html","group":"Components","viewport":"700x170","subtitle":"Lucide via Icon component — stroke 2, currentColor","name":"Icons"},{"path":"components/panels/panels.card.html","group":"Components","viewport":"700x620","subtitle":"PanelModal, SettingsSection, DataCard, CollapsibleSection, ApiKeyInput, Slider","name":"Panels"},{"path":"ui_kits/machinaos/index.html","group":"MachinaOS App","viewport":"1440x900","subtitle":"Interactive recreation — toolbar, sidebar, canvas, palette, console, status bar","name":"Workflow Canvas"},{"path":"guidelines/motion.html","group":"Spacing","viewport":"700x150","subtitle":"90 / 180 / 320ms · one smooth ease, one springy emphasis","name":"Motion"},{"path":"guidelines/radii.html","group":"Spacing","viewport":"700x150","subtitle":"Controls 8px · chips 4–6px · nodes 10–12px · pills 999px","name":"Radii"},{"path":"guidelines/shadows-glow.html","group":"Spacing","viewport":"700x170","subtitle":"Quiet chrome shadows; glow is reserved for meaning","name":"Shadows & Glow"},{"path":"guidelines/space-scale.html","group":"Spacing","viewport":"700x150","subtitle":"4 / 8 / 12 / 16 / 24 / 32 / 48 / 64","name":"Space Scale"},{"path":"guidelines/mono-usage.html","group":"Type","viewport":"700x150","subtitle":"Mono is the machine voice — counts, state, timestamps","name":"Mono Usage"},{"path":"guidelines/type-scale.html","group":"Type","viewport":"700x280","subtitle":"14px base — dense desktop scale","name":"Type Scale"},{"path":"guidelines/typeface-geist.html","group":"Type","viewport":"700x170","subtitle":"Geist — one family for display & body","name":"Typeface — Geist"}],"templates":[],"globalCssPaths":["tokens/fonts.css","tokens/colors.css","tokens/typography.css","tokens/spacing.css","tokens/base.css","tokens/motion.css","tokens/animations.css","styles.css"],"tokens":[{"name":"--bg-app","value":"#f5f7fa","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-panel","value":"#fafbfc","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-canvas","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-elevated","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-input","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-hover","value":"rgba(0, 0, 0, 0.04)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-active","value":"rgba(0, 0, 0, 0.06)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-overlay","value":"rgba(0, 0, 0, 0.45)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--surface-card","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-default","value":"#1a1d21","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-muted","value":"#4b5563","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-faint","value":"#9ca3af","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-on-accent","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--text-body","value":"var(--fg-default)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-muted","value":"var(--fg-muted)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--border-default","value":"#d1d5db","kind":"color","definedIn":"tokens/colors.css"},{"name":"--border-strong","value":"#9ca3af","kind":"color","definedIn":"tokens/colors.css"},{"name":"--border-focus","value":"#3b82f6","kind":"color","definedIn":"tokens/colors.css"},{"name":"--primary","value":"#2563eb","kind":"color","definedIn":"tokens/colors.css"},{"name":"--primary-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--accent","value":"#7c3aed","kind":"color","definedIn":"tokens/colors.css"},{"name":"--accent-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--destructive","value":"#dc2626","kind":"color","definedIn":"tokens/colors.css"},{"name":"--destructive-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--success","value":"#059669","kind":"color","definedIn":"tokens/colors.css"},{"name":"--warning","value":"#d97706","kind":"color","definedIn":"tokens/colors.css"},{"name":"--info","value":"#0891b2","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-green","value":"#50fa7b","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-purple","value":"#bd93f9","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-pink","value":"#ff79c6","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-cyan","value":"#8be9fd","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-red","value":"#ff5555","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-orange","value":"#ffb86c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-yellow","value":"#f1fa8c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-selection","value":"#44475a","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-current-line","value":"#383a4a","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-comment","value":"#6272a4","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-soft","value":"color-mix(in srgb, var(--dracula-green) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-hover","value":"color-mix(in srgb, var(--dracula-green) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-border","value":"color-mix(in srgb, var(--dracula-green) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-soft","value":"color-mix(in srgb, var(--dracula-pink) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-hover","value":"color-mix(in srgb, var(--dracula-pink) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-border","value":"color-mix(in srgb, var(--dracula-pink) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-soft","value":"color-mix(in srgb, var(--dracula-cyan) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-hover","value":"color-mix(in srgb, var(--dracula-cyan) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-border","value":"color-mix(in srgb, var(--dracula-cyan) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-soft","value":"color-mix(in srgb, var(--dracula-orange) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-hover","value":"color-mix(in srgb, var(--dracula-orange) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-border","value":"color-mix(in srgb, var(--dracula-orange) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret","value":"var(--dracula-yellow)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-soft","value":"color-mix(in srgb, var(--dracula-yellow) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-hover","value":"color-mix(in srgb, var(--dracula-yellow) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-border","value":"color-mix(in srgb, var(--dracula-yellow) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-soft","value":"color-mix(in srgb, var(--dracula-purple) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-hover","value":"color-mix(in srgb, var(--dracula-purple) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-border","value":"color-mix(in srgb, var(--dracula-purple) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-ink","value":"#15803d","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-ink","value":"#be185d","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-ink","value":"#0e7490","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-ink","value":"#c2410c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-ink","value":"#a16207","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-ink","value":"#7c3aed","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent-soft","value":"color-mix(in srgb, var(--dracula-purple) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent-border","value":"color-mix(in srgb, var(--dracula-purple) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model-soft","value":"color-mix(in srgb, var(--dracula-cyan) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model-border","value":"color-mix(in srgb, var(--dracula-cyan) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool-soft","value":"color-mix(in srgb, var(--dracula-green) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool-border","value":"color-mix(in srgb, var(--dracula-green) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger-soft","value":"color-mix(in srgb, var(--dracula-pink) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger-border","value":"color-mix(in srgb, var(--dracula-pink) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow-soft","value":"color-mix(in srgb, var(--dracula-orange) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow-border","value":"color-mix(in srgb, var(--dracula-orange) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-pulse-color","value":"var(--info)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--scrollbar-track","value":"#eef1f5","kind":"color","definedIn":"tokens/colors.css"},{"name":"--scrollbar-thumb","value":"#d1d5db","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-app","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-panel","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-canvas","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-elevated","value":"#0d1f2d","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-input","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-hover","value":"rgba(248, 248, 242, 0.06)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-active","value":"rgba(189, 147, 249, 0.18)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-overlay","value":"rgba(0, 0, 0, 0.7)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--surface-card","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-default","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-muted","value":"#94a8d6","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-faint","value":"#6272a4","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-on-accent","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-default","value":"#586e75","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-strong","value":"#93a1a1","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-focus","value":"#268bd2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--primary","value":"#268bd2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--primary-foreground","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--accent","value":"#8be9fd","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--accent-foreground","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--destructive","value":"#dc322f","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--destructive-foreground","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--success","value":"#859900","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--warning","value":"#b58900","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--info","value":"#2aa198","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-run-ink","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-stop-ink","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-save-ink","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-config-ink","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-secret-ink","value":"var(--dracula-yellow)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-tools-ink","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--scrollbar-track","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--scrollbar-thumb","value":"#586e75","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--font-sans","value":"'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-display","value":"var(--font-sans)","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-body","value":"var(--font-sans)","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-mono","value":"'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-scale-base","value":"14px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-2xs","value":"11px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-xs","value":"12px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-sm","value":"13px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-base","value":"14px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-md","value":"16px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-lg","value":"18px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-xl","value":"24px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-2xl","value":"32px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-3xl","value":"44px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-regular","value":"400","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-medium","value":"500","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-semibold","value":"600","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-bold","value":"700","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-uppercase","value":"none","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-tracking-display","value":"0","kind":"font","definedIn":"tokens/typography.css"},{"name":"--tracking-label","value":"0.04em","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-tight","value":"1.2","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-normal","value":"1.5","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-relaxed","value":"1.65","kind":"font","definedIn":"tokens/typography.css"},{"name":"--space-1","value":"4px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-2","value":"8px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-3","value":"12px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-4","value":"16px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-5","value":"24px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-6","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-7","value":"48px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-8","value":"64px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--radius-sm","value":"4px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-md","value":"6px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-lg","value":"8px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-xl","value":"12px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-node","value":"10px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-pill","value":"999px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--h-toolbar","value":"48px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--h-statusbar","value":"24px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--h-control","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--w-sidebar","value":"280px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--w-palette","value":"320px","kind":"color","definedIn":"tokens/spacing.css"},{"name":"--shadow-card","value":"0 2px 8px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-card-hover","value":"0 4px 14px rgb(0 0 0 / 0.10)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-modal","value":"0 12px 40px rgb(0 0 0 / 0.18)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-card","value":"0 4px 12px rgb(0 0 0 / 0.3)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--shadow-card-hover","value":"0 6px 18px rgb(0 0 0 / 0.4)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--shadow-modal","value":"0 16px 48px rgb(0 0 0 / 0.55)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--dur-fast","value":"90ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--dur-default","value":"180ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--dur-slow","value":"320ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.2, 0.7, 0.3, 1)","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, -0.05, 0.3, 1.4)","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--motion-style","value":"smooth","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-keyframe","value":"node-pulse","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-duration","value":"1.4s","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-timing","value":"ease-in-out","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--dur-fast","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-default","value":"280ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-slow","value":"520ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.2, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--motion-style","value":"organic","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"ren-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-duration","value":"2s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-timing","value":"ease-in-out","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-fast","value":"120ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-default","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-slow","value":"460ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.3, 0.7, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, -0.05, 0.3, 1.4)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--motion-style","value":"smooth","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-fast","value":"90ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-default","value":"220ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-slow","value":"520ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.2, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--motion-style","value":"organic","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-fast","value":"110ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-default","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-slow","value":"480ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.5, 0, 0.4, 1.1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--motion-style","value":"mechanical","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-fast","value":"100ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-default","value":"200ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-slow","value":"380ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.34, 1.6, 0.5, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.34, 1.6, 0.5, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--motion-style","value":"bouncy","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-default","value":"120ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-slow","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--ease-default","value":"steps(4, end)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--ease-emphasis","value":"steps(8, end)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--motion-style","value":"glitch","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"cyber-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-duration","value":"1.6s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-timing","value":"steps(2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-default","value":"180ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-slow","value":"320ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.6, 0, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, 0, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--motion-style","value":"jittery","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-fast","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-default","value":"320ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-slow","value":"680ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--motion-style","value":"drift","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--pulse-duration","value":"2.2s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-fast","value":"100ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-default","value":"220ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-slow","value":"460ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--motion-style","value":"stiff","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--dur-default","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--dur-slow","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--ease-default","value":"linear","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--ease-emphasis","value":"linear","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--motion-style","value":"scanline","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"surv-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-duration","value":"1s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-timing","value":"steps(2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"}],"themes":[{"selector":".dark","label":"Dark"},{"selector":"[data-theme=\"renaissance\"]","label":"Renaissance"},{"selector":"[data-theme=\"greek\"]","label":"Greek"},{"selector":"[data-theme=\"edo\"]","label":"Edo"},{"selector":"[data-theme=\"steampunk\"]","label":"Steampunk"},{"selector":"[data-theme=\"atomic\"]","label":"Atomic"},{"selector":"[data-theme=\"cyber\"]","label":"Cyber"},{"selector":"[data-theme=\"wasteland\"]","label":"Wasteland"},{"selector":"[data-theme=\"rot\"]","label":"Rot"},{"selector":"[data-theme=\"plague\"]","label":"Plague"},{"selector":"[data-theme=\"surveillance\"]","label":"Surveillance"}],"fonts":[],"brandFonts":[{"family":"Geist","status":"ok","tokens":["--font-sans"],"path":"tokens/typography.css"},{"family":"JetBrains Mono","status":"ok","tokens":["--font-mono"],"path":"tokens/typography.css"}],"source":"spa"}\ No newline at end of file+{"namespace":"OpenCompanyDesignSystem_2559cf","components":[{"name":"ActionButton","sourcePath":"components/buttons/ActionButton.jsx"},{"name":"Button","sourcePath":"components/buttons/Button.jsx"},{"name":"ComponentItem","sourcePath":"components/canvas/ComponentItem.jsx"},{"name":"ModeToggle","sourcePath":"components/canvas/ModeToggle.jsx"},{"name":"SquareNode","sourcePath":"components/canvas/SquareNode.jsx"},{"name":"StatusBar","sourcePath":"components/canvas/StatusBar.jsx"},{"name":"WorkflowCard","sourcePath":"components/canvas/WorkflowCard.jsx"},{"name":"Avatar","sourcePath":"components/display/Avatar.jsx"},{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"ChatBubble","sourcePath":"components/display/ChatBubble.jsx"},{"name":"Kbd","sourcePath":"components/display/Kbd.jsx"},{"name":"LogLine","sourcePath":"components/display/LogLine.jsx"},{"name":"Tabs","sourcePath":"components/display/Tabs.jsx"},{"name":"EmptyState","sourcePath":"components/feedback/EmptyState.jsx"},{"name":"Modal","sourcePath":"components/feedback/Modal.jsx"},{"name":"Progress","sourcePath":"components/feedback/Progress.jsx"},{"name":"Spinner","sourcePath":"components/feedback/Spinner.jsx"},{"name":"Toast","sourcePath":"components/feedback/Toast.jsx"},{"name":"Tooltip","sourcePath":"components/feedback/Tooltip.jsx"},{"name":"ApiKeyInput","sourcePath":"components/forms/ApiKeyInput.jsx"},{"name":"Checkbox","sourcePath":"components/forms/Checkbox.jsx"},{"name":"Input","sourcePath":"components/forms/Input.jsx"},{"name":"RadioGroup","sourcePath":"components/forms/RadioGroup.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"Textarea","sourcePath":"components/forms/Textarea.jsx"},{"name":"Icon","sourcePath":"components/icons/Icon.jsx"},{"name":"CollapsibleSection","sourcePath":"components/panels/CollapsibleSection.jsx"},{"name":"DataCard","sourcePath":"components/panels/DataCard.jsx"},{"name":"PanelModal","sourcePath":"components/panels/PanelModal.jsx"},{"name":"SettingsSection","sourcePath":"components/panels/SettingsSection.jsx"},{"name":"SettingsRow","sourcePath":"components/panels/SettingsSection.jsx"}],"startingPoints":[{"name":"SquareNode","path":"components/canvas/SquareNode.jsx","previewPath":"components/canvas/canvas.card.html","kind":"component","section":"Canvas","subtitle":"Workflow canvas node with pip, gear and handles","viewport":"700x220"},{"name":"ActionButton","path":"components/buttons/ActionButton.jsx","previewPath":"components/buttons/buttons.card.html","kind":"component","section":"Components","subtitle":"Soft tinted toolbar button with six semantic intents","viewport":"700x180"}],"cards":[{"path":"guidelines/animations-all-themes.html","group":"Brand","viewport":"1280x860","subtitle":"Live motion per theme: executing pulse, easing character, pip blink, hover lift, ambient CRT/scanline","name":"Animations — All Themes"},{"path":"guidelines/canvas-pattern.html","group":"Brand","viewport":"700x190","subtitle":"Canvas texture — dot grid + dashed accent edges between node handles","name":"Canvas Pattern"},{"path":"guidelines/panels-all-themes.html","group":"Brand","viewport":"1320x900","subtitle":"Every panel — toolbar, sidebar, palette, console, status bar, Node Config, Settings, Credentials — in all 12 themes","name":"Panels × Themes"},{"path":"guidelines/product-reference.html","group":"Brand","viewport":"700x300","subtitle":"Real product — dark canvas, neon nodes, WhatsApp automation","name":"Product Reference"},{"path":"guidelines/theme-comparison-full.html","group":"Brand","viewport":"1320x880","subtitle":"Full app screen + component strip in all 12 themes","name":"Theme Comparison — Full"},{"path":"guidelines/theme-comparison.html","group":"Brand","viewport":"1280x900","subtitle":"Same app screen rendered in all 12 themes — single file","name":"Theme Comparison"},{"path":"guidelines/theme-matrix.html","group":"Brand","viewport":"1100x720","subtitle":"All 12 product themes — surfaces, accents, type, radii, motion","name":"Theme Matrix"},{"path":"guidelines/wordmark.html","group":"Brand","viewport":"700x150","subtitle":"Stand-in wordmark — no official logo in repo (see readme caveats)","name":"Wordmark"},{"path":"guidelines/action-intents.html","group":"Colors","viewport":"700x150","subtitle":"Six toolbar intents — soft tint fill, tinted border, accent text","name":"Action Intents"},{"path":"guidelines/dracula-accents.html","group":"Colors","viewport":"700x150","subtitle":"Vibrant accents — identical in light & dark, used as soft tints","name":"Dracula Accents"},{"path":"guidelines/node-roles.html","group":"Colors","viewport":"700x170","subtitle":"Canvas node role colors — 8% soft fill, 30% border, full-strength accents","name":"Node Roles"},{"path":"guidelines/semantic-status.html","group":"Colors","viewport":"700x150","subtitle":"Status colors — Solarized in dark, deeper hues in light","name":"Semantic Status"},{"path":"guidelines/surfaces-dark.html","group":"Colors","viewport":"700x150","subtitle":"Solarized dark surfaces — the signature look","name":"Surfaces — Dark"},{"path":"guidelines/surfaces-light.html","group":"Colors","viewport":"700x150","subtitle":"Light structural surfaces & foreground","name":"Surfaces — Light"},{"path":"components/buttons/buttons.card.html","group":"Components","viewport":"700x240","subtitle":"ActionButton intents + Button variants","name":"Buttons"},{"path":"components/canvas/canvas.card.html","group":"Components","viewport":"700x330","subtitle":"SquareNode states, ComponentItem, WorkflowCard, ModeToggle, StatusBar","name":"Canvas"},{"path":"components/display/display.card.html","group":"Components","viewport":"700x430","subtitle":"Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble","name":"Display"},{"path":"components/feedback/feedback.card.html","group":"Components","viewport":"700x420","subtitle":"Modal, Toast, Tooltip, Spinner, Progress, EmptyState","name":"Feedback"},{"path":"components/forms/forms.card.html","group":"Components","viewport":"700x300","subtitle":"Input, Select, RadioGroup, Textarea, Switch, Checkbox","name":"Forms"},{"path":"components/icons/icons.card.html","group":"Components","viewport":"700x170","subtitle":"Lucide via Icon component — stroke 2, currentColor","name":"Icons"},{"path":"components/panels/panels.card.html","group":"Components","viewport":"700x620","subtitle":"PanelModal, SettingsSection, DataCard, CollapsibleSection, ApiKeyInput, Slider","name":"Panels"},{"path":"ui_kits/opencompany/index.html","group":"OpenCompany App","viewport":"1440x900","subtitle":"Interactive recreation — toolbar, sidebar, canvas, palette, console, status bar","name":"Workflow Canvas"},{"path":"guidelines/motion.html","group":"Spacing","viewport":"700x150","subtitle":"90 / 180 / 320ms · one smooth ease, one springy emphasis","name":"Motion"},{"path":"guidelines/radii.html","group":"Spacing","viewport":"700x150","subtitle":"Controls 8px · chips 4–6px · nodes 10–12px · pills 999px","name":"Radii"},{"path":"guidelines/shadows-glow.html","group":"Spacing","viewport":"700x170","subtitle":"Quiet chrome shadows; glow is reserved for meaning","name":"Shadows & Glow"},{"path":"guidelines/space-scale.html","group":"Spacing","viewport":"700x150","subtitle":"4 / 8 / 12 / 16 / 24 / 32 / 48 / 64","name":"Space Scale"},{"path":"guidelines/mono-usage.html","group":"Type","viewport":"700x150","subtitle":"Mono is the machine voice — counts, state, timestamps","name":"Mono Usage"},{"path":"guidelines/type-scale.html","group":"Type","viewport":"700x280","subtitle":"14px base — dense desktop scale","name":"Type Scale"},{"path":"guidelines/typeface-geist.html","group":"Type","viewport":"700x170","subtitle":"Geist — one family for display & body","name":"Typeface — Geist"}],"templates":[],"globalCssPaths":["tokens/fonts.css","tokens/colors.css","tokens/typography.css","tokens/spacing.css","tokens/base.css","tokens/motion.css","tokens/animations.css","styles.css"],"tokens":[{"name":"--bg-app","value":"#f5f7fa","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-panel","value":"#fafbfc","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-canvas","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-elevated","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-input","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-hover","value":"rgba(0, 0, 0, 0.04)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-active","value":"rgba(0, 0, 0, 0.06)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-overlay","value":"rgba(0, 0, 0, 0.45)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--surface-card","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-default","value":"#1a1d21","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-muted","value":"#4b5563","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-faint","value":"#9ca3af","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-on-accent","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--text-body","value":"var(--fg-default)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-muted","value":"var(--fg-muted)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--border-default","value":"#d1d5db","kind":"color","definedIn":"tokens/colors.css"},{"name":"--border-strong","value":"#9ca3af","kind":"color","definedIn":"tokens/colors.css"},{"name":"--border-focus","value":"#3b82f6","kind":"color","definedIn":"tokens/colors.css"},{"name":"--primary","value":"#2563eb","kind":"color","definedIn":"tokens/colors.css"},{"name":"--primary-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--accent","value":"#7c3aed","kind":"color","definedIn":"tokens/colors.css"},{"name":"--accent-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--destructive","value":"#dc2626","kind":"color","definedIn":"tokens/colors.css"},{"name":"--destructive-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--success","value":"#059669","kind":"color","definedIn":"tokens/colors.css"},{"name":"--warning","value":"#d97706","kind":"color","definedIn":"tokens/colors.css"},{"name":"--info","value":"#0891b2","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-green","value":"#50fa7b","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-purple","value":"#bd93f9","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-pink","value":"#ff79c6","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-cyan","value":"#8be9fd","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-red","value":"#ff5555","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-orange","value":"#ffb86c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-yellow","value":"#f1fa8c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-selection","value":"#44475a","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-current-line","value":"#383a4a","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-comment","value":"#6272a4","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-soft","value":"color-mix(in srgb, var(--dracula-green) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-hover","value":"color-mix(in srgb, var(--dracula-green) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-border","value":"color-mix(in srgb, var(--dracula-green) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-soft","value":"color-mix(in srgb, var(--dracula-pink) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-hover","value":"color-mix(in srgb, var(--dracula-pink) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-border","value":"color-mix(in srgb, var(--dracula-pink) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-soft","value":"color-mix(in srgb, var(--dracula-cyan) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-hover","value":"color-mix(in srgb, var(--dracula-cyan) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-border","value":"color-mix(in srgb, var(--dracula-cyan) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-soft","value":"color-mix(in srgb, var(--dracula-orange) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-hover","value":"color-mix(in srgb, var(--dracula-orange) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-border","value":"color-mix(in srgb, var(--dracula-orange) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret","value":"var(--dracula-yellow)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-soft","value":"color-mix(in srgb, var(--dracula-yellow) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-hover","value":"color-mix(in srgb, var(--dracula-yellow) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-border","value":"color-mix(in srgb, var(--dracula-yellow) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-soft","value":"color-mix(in srgb, var(--dracula-purple) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-hover","value":"color-mix(in srgb, var(--dracula-purple) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-border","value":"color-mix(in srgb, var(--dracula-purple) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-ink","value":"#15803d","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-ink","value":"#be185d","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-ink","value":"#0e7490","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-ink","value":"#c2410c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-ink","value":"#a16207","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-ink","value":"#7c3aed","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent-soft","value":"color-mix(in srgb, var(--dracula-purple) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent-border","value":"color-mix(in srgb, var(--dracula-purple) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model-soft","value":"color-mix(in srgb, var(--dracula-cyan) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model-border","value":"color-mix(in srgb, var(--dracula-cyan) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool-soft","value":"color-mix(in srgb, var(--dracula-green) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool-border","value":"color-mix(in srgb, var(--dracula-green) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger-soft","value":"color-mix(in srgb, var(--dracula-pink) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger-border","value":"color-mix(in srgb, var(--dracula-pink) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow-soft","value":"color-mix(in srgb, var(--dracula-orange) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow-border","value":"color-mix(in srgb, var(--dracula-orange) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-pulse-color","value":"var(--info)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--scrollbar-track","value":"#eef1f5","kind":"color","definedIn":"tokens/colors.css"},{"name":"--scrollbar-thumb","value":"#d1d5db","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-app","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-panel","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-canvas","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-elevated","value":"#0d1f2d","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-input","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-hover","value":"rgba(248, 248, 242, 0.06)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-active","value":"rgba(189, 147, 249, 0.18)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-overlay","value":"rgba(0, 0, 0, 0.7)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--surface-card","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-default","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-muted","value":"#94a8d6","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-faint","value":"#6272a4","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-on-accent","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-default","value":"#586e75","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-strong","value":"#93a1a1","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-focus","value":"#268bd2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--primary","value":"#268bd2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--primary-foreground","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--accent","value":"#8be9fd","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--accent-foreground","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--destructive","value":"#dc322f","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--destructive-foreground","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--success","value":"#859900","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--warning","value":"#b58900","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--info","value":"#2aa198","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-run-ink","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-stop-ink","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-save-ink","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-config-ink","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-secret-ink","value":"var(--dracula-yellow)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-tools-ink","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--scrollbar-track","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--scrollbar-thumb","value":"#586e75","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--font-sans","value":"'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-display","value":"var(--font-sans)","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-body","value":"var(--font-sans)","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-mono","value":"'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-scale-base","value":"14px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-2xs","value":"11px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-xs","value":"12px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-sm","value":"13px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-base","value":"14px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-md","value":"16px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-lg","value":"18px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-xl","value":"24px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-2xl","value":"32px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-3xl","value":"44px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-regular","value":"400","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-medium","value":"500","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-semibold","value":"600","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-bold","value":"700","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-uppercase","value":"none","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-tracking-display","value":"0","kind":"font","definedIn":"tokens/typography.css"},{"name":"--tracking-label","value":"0.04em","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-tight","value":"1.2","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-normal","value":"1.5","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-relaxed","value":"1.65","kind":"font","definedIn":"tokens/typography.css"},{"name":"--space-1","value":"4px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-2","value":"8px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-3","value":"12px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-4","value":"16px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-5","value":"24px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-6","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-7","value":"48px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-8","value":"64px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--radius-sm","value":"4px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-md","value":"6px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-lg","value":"8px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-xl","value":"12px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-node","value":"10px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-pill","value":"999px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--h-toolbar","value":"48px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--h-statusbar","value":"24px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--h-control","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--w-sidebar","value":"280px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--w-palette","value":"320px","kind":"color","definedIn":"tokens/spacing.css"},{"name":"--shadow-card","value":"0 2px 8px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-card-hover","value":"0 4px 14px rgb(0 0 0 / 0.10)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-modal","value":"0 12px 40px rgb(0 0 0 / 0.18)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-card","value":"0 4px 12px rgb(0 0 0 / 0.3)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--shadow-card-hover","value":"0 6px 18px rgb(0 0 0 / 0.4)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--shadow-modal","value":"0 16px 48px rgb(0 0 0 / 0.55)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--dur-fast","value":"90ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--dur-default","value":"180ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--dur-slow","value":"320ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.2, 0.7, 0.3, 1)","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, -0.05, 0.3, 1.4)","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--motion-style","value":"smooth","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-keyframe","value":"node-pulse","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-duration","value":"1.4s","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-timing","value":"ease-in-out","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--dur-fast","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-default","value":"280ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-slow","value":"520ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.2, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--motion-style","value":"organic","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"ren-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-duration","value":"2s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-timing","value":"ease-in-out","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-fast","value":"120ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-default","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-slow","value":"460ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.3, 0.7, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, -0.05, 0.3, 1.4)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--motion-style","value":"smooth","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-fast","value":"90ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-default","value":"220ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-slow","value":"520ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.2, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--motion-style","value":"organic","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-fast","value":"110ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-default","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-slow","value":"480ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.5, 0, 0.4, 1.1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--motion-style","value":"mechanical","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-fast","value":"100ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-default","value":"200ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-slow","value":"380ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.34, 1.6, 0.5, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.34, 1.6, 0.5, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--motion-style","value":"bouncy","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-default","value":"120ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-slow","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--ease-default","value":"steps(4, end)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--ease-emphasis","value":"steps(8, end)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--motion-style","value":"glitch","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"cyber-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-duration","value":"1.6s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-timing","value":"steps(2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-default","value":"180ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-slow","value":"320ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.6, 0, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, 0, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--motion-style","value":"jittery","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-fast","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-default","value":"320ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-slow","value":"680ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--motion-style","value":"drift","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--pulse-duration","value":"2.2s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-fast","value":"100ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-default","value":"220ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-slow","value":"460ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--motion-style","value":"stiff","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--dur-default","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--dur-slow","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--ease-default","value":"linear","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--ease-emphasis","value":"linear","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--motion-style","value":"scanline","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"surv-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-duration","value":"1s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-timing","value":"steps(2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"}],"themes":[{"selector":".dark","label":"Dark"},{"selector":"[data-theme=\"renaissance\"]","label":"Renaissance"},{"selector":"[data-theme=\"greek\"]","label":"Greek"},{"selector":"[data-theme=\"edo\"]","label":"Edo"},{"selector":"[data-theme=\"steampunk\"]","label":"Steampunk"},{"selector":"[data-theme=\"atomic\"]","label":"Atomic"},{"selector":"[data-theme=\"cyber\"]","label":"Cyber"},{"selector":"[data-theme=\"wasteland\"]","label":"Wasteland"},{"selector":"[data-theme=\"rot\"]","label":"Rot"},{"selector":"[data-theme=\"plague\"]","label":"Plague"},{"selector":"[data-theme=\"surveillance\"]","label":"Surveillance"}],"fonts":[],"brandFonts":[{"family":"Geist","status":"ok","tokens":["--font-sans"],"path":"tokens/typography.css"},{"family":"JetBrains Mono","status":"ok","tokens":["--font-mono"],"path":"tokens/typography.css"}],"source":"spa"}\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/default-workflows.svg b/docs-internal/design-system/assets/diagrams/default-workflows.svgindex 8e78c013..380fce4b 100644--- a/docs-internal/design-system/assets/diagrams/default-workflows.svg+++ b/docs-internal/design-system/assets/diagrams/default-workflows.svg@@ -19,7 +19,7 @@<text x="550" y="40" text-anchor="middle" class="header-text">Three Workflows You Get on Day One</text>- <text x="550" y="62" text-anchor="middle" class="header-sub">Open MachinaOS for the first time and these are already loaded. Each shows a different pattern you can copy.</text>+ <text x="550" y="62" text-anchor="middle" class="header-sub">Open OpenCompany for the first time and these are already loaded. Each shows a different pattern you can copy.</text>diff --git a/docs-internal/design-system/assets/diagrams/how-it-works.svg b/docs-internal/design-system/assets/diagrams/how-it-works.svgindex dd22af70..33c69332 100644--- a/docs-internal/design-system/assets/diagrams/how-it-works.svg+++ b/docs-internal/design-system/assets/diagrams/how-it-works.svg@@ -9,7 +9,7 @@<rect width="1100" height="620" class="bg"></rect>- <text x="550" y="40" text-anchor="middle" class="header">How MachinaOS Works</text>+ <text x="550" y="40" text-anchor="middle" class="header">How OpenCompany Works</text><text x="550" y="62" text-anchor="middle" class="subheader">Build AI workflows visually. Connect them to your apps. Run everything on your own computer.</text>@@ -159,6 +159,6 @@<rect x="40" y="540" width="1020" height="60" class="footer-strip"></rect><text x="550" y="568" text-anchor="middle" class="footer-text">🏠 Everything runs on your computer</text>- <text x="550" y="588" text-anchor="middle" class="footer-sub">Your API keys, your data, your conversations — never sent to MachinaOS servers. Free local AI via Ollama and LM Studio.</text>+ <text x="550" y="588" text-anchor="middle" class="footer-sub">Your API keys, your data, your conversations — never sent to OpenCompany servers. Free local AI via Ollama and LM Studio.</text></svg>\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/system-overview.svg b/docs-internal/design-system/assets/diagrams/system-overview.svgindex b6516655..8db0b086 100644--- a/docs-internal/design-system/assets/diagrams/system-overview.svg+++ b/docs-internal/design-system/assets/diagrams/system-overview.svg@@ -53,7 +53,7 @@<rect class="small-box small-exec" x="370" y="545" width="140" height="50" rx="6"></rect><text x="440" y="568" class="sub" text-anchor="middle">SQLite</text>- <text x="440" y="584" class="sub" text-anchor="middle" font-size="10">machina.db + credentials.db</text>+ <text x="440" y="584" class="sub" text-anchor="middle" font-size="10">workflow.db + credentials.db</text><rect class="small-box small-exec" x="525" y="545" width="140" height="50" rx="6"></rect><text x="595" y="568" class="sub" text-anchor="middle">Node.js server</text>diff --git a/docs-internal/design-system/components/buttons/ActionButton.d.ts b/docs-internal/design-system/components/buttons/ActionButton.d.tsindex 4c3dafd0..445ac0b7 100644--- a/docs-internal/design-system/components/buttons/ActionButton.d.ts+++ b/docs-internal/design-system/components/buttons/ActionButton.d.ts@@ -1,7 +1,7 @@import * as React from 'react';/**- * ActionButton — MachinaOS's signature soft-tinted toolbar button.+ * ActionButton — OpenCompany's signature soft-tinted toolbar button.* Semantic intent picks the Dracula accent: run=green (deploy/run),* stop=pink (destructive), save=cyan (commit/panels), config=orange* (settings), secret=yellow (credentials), tools=purple (palette).diff --git a/docs-internal/design-system/components/buttons/ActionButton.jsx b/docs-internal/design-system/components/buttons/ActionButton.jsxindex 81f6278f..78b719f1 100644--- a/docs-internal/design-system/components/buttons/ActionButton.jsx+++ b/docs-internal/design-system/components/buttons/ActionButton.jsx@@ -1,7 +1,7 @@import * as React from 'react';/**- * ActionButton — the signature MachinaOS "soft tinted" toolbar button.+ * ActionButton — the signature OpenCompany "soft tinted" toolbar button.* `intent` is a semantic role, not a color: run / stop / save / config /* secret / tools. Soft tint fill (15%), tinted border (60%), accent text;* hover deepens the fill to 25%; press nudges down 1px.diff --git a/docs-internal/design-system/components/buttons/ActionButton.prompt.md b/docs-internal/design-system/components/buttons/ActionButton.prompt.mdindex 45060f6a..c63d3865 100644--- a/docs-internal/design-system/components/buttons/ActionButton.prompt.md+++ b/docs-internal/design-system/components/buttons/ActionButton.prompt.md@@ -1,4 +1,4 @@-Soft-tinted toolbar button — the most recognizable MachinaOS pattern. Pick intent by meaning, never by color.+Soft-tinted toolbar button — the most recognizable OpenCompany pattern. Pick intent by meaning, never by color.```jsx<ActionButton intent="run"><Icon name="Play" size={12} /> Start</ActionButton>diff --git a/docs-internal/design-system/components/buttons/buttons.card.html b/docs-internal/design-system/components/buttons/buttons.card.htmlindex 1f51d2ea..f535078c 100644--- a/docs-internal/design-system/components/buttons/buttons.card.html+++ b/docs-internal/design-system/components/buttons/buttons.card.html@@ -13,7 +13,7 @@<body style="background: var(--bg-panel); margin: 0; padding: 16px;"><div id="root"></div><script type="text/babel">-const { ActionButton, Button, Icon } = window.MachinaOSDesignSystem_2559cf;+const { ActionButton, Button, Icon } = window.OpenCompanyDesignSystem_2559cf;function ButtonsCard() {return (diff --git a/docs-internal/design-system/components/canvas/SquareNode.d.ts b/docs-internal/design-system/components/canvas/SquareNode.d.tsindex cb315a6f..50b5c5e5 100644--- a/docs-internal/design-system/components/canvas/SquareNode.d.ts+++ b/docs-internal/design-system/components/canvas/SquareNode.d.ts@@ -1,7 +1,7 @@import * as React from 'react';/**- * SquareNode — MachinaOS canvas node: accent-bordered icon square with+ * SquareNode — OpenCompany canvas node: accent-bordered icon square with* status pip, gear button, connection handles, and label below.** @startingPoint section="Canvas" subtitle="Workflow canvas node with pip, gear and handles" viewport="700x220"diff --git a/docs-internal/design-system/components/canvas/SquareNode.jsx b/docs-internal/design-system/components/canvas/SquareNode.jsxindex 77eeb2d3..8a6dc693 100644--- a/docs-internal/design-system/components/canvas/SquareNode.jsx+++ b/docs-internal/design-system/components/canvas/SquareNode.jsx@@ -1,7 +1,7 @@import * as React from 'react';/**- * SquareNode — MachinaOS canvas node. 64px icon square with accent-tinted+ * SquareNode — OpenCompany canvas node. 64px icon square with accent-tinted* 2px border + 135° gradient fill, status pip (top-left), gear button* (top-right), in/out connection handles, label below. Executing nodes* pulse a three-layer glow (requires tokens/animations.css).@@ -72,7 +72,7 @@ export function SquareNode({}}><div- className={executing ? 'machina-pulse' : armed ? 'machina-trigger-armed' : undefined}+ className={executing ? 'opencompany-pulse' : armed ? 'opencompany-trigger-armed' : undefined}style={{'--node-pulse-color': glow,position: 'relative',@@ -99,7 +99,7 @@ export function SquareNode({{/* status pip */}<span- className={status === 'listening' ? 'machina-pip-pulse' : undefined}+ className={status === 'listening' ? 'opencompany-pip-pulse' : undefined}style={{position: 'absolute',top: -4,@@ -120,7 +120,7 @@ export function SquareNode({{trigger ? (<spantitle="Trigger — starts the workflow"- className={armed ? 'machina-bolt' : undefined}+ className={armed ? 'opencompany-bolt' : undefined}style={{position: 'absolute',bottom: -4,diff --git a/docs-internal/design-system/components/canvas/SquareNode.prompt.md b/docs-internal/design-system/components/canvas/SquareNode.prompt.mdindex 11c58f6e..ef1680ba 100644--- a/docs-internal/design-system/components/canvas/SquareNode.prompt.md+++ b/docs-internal/design-system/components/canvas/SquareNode.prompt.md@@ -1,4 +1,4 @@-Canvas workflow node — the heart of the MachinaOS visual identity. Color comes from the node's role.+Canvas workflow node — the heart of the OpenCompany visual identity. Color comes from the node's role.```jsx<SquareNode icon="🤖" label="AI Agent" color="var(--node-agent)" status="success" showToolOutput />diff --git a/docs-internal/design-system/components/canvas/StatusBar.jsx b/docs-internal/design-system/components/canvas/StatusBar.jsxindex a743a9a9..bd40e5b4 100644--- a/docs-internal/design-system/components/canvas/StatusBar.jsx+++ b/docs-internal/design-system/components/canvas/StatusBar.jsx@@ -59,7 +59,7 @@ export function StatusBar({borderRadius: '50%',background: tone.color,display: 'inline-block',- animation: connection === 'online' ? 'machina-pip-blink 2s ease-in-out infinite' : 'none',+ animation: connection === 'online' ? 'opencompany-pip-blink 2s ease-in-out infinite' : 'none',}}/>{tone.label}@@ -79,7 +79,7 @@ export function StatusBar({{sep}<span style={{ fontVariantNumeric: 'tabular-nums' }}>{timeText}</span></span>- <style>{'@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }'}</style>+ <style>{'@keyframes opencompany-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }'}</style></div>);}diff --git a/docs-internal/design-system/components/canvas/canvas.card.html b/docs-internal/design-system/components/canvas/canvas.card.htmlindex 9d0c87bb..6e8d82f9 100644--- a/docs-internal/design-system/components/canvas/canvas.card.html+++ b/docs-internal/design-system/components/canvas/canvas.card.html@@ -13,7 +13,7 @@<body style="background: var(--bg-canvas); margin: 0;"><div id="root"></div><script type="text/babel">-const { SquareNode, ComponentItem, WorkflowCard, ModeToggle, StatusBar, Icon } = window.MachinaOSDesignSystem_2559cf;+const { SquareNode, ComponentItem, WorkflowCard, ModeToggle, StatusBar, Icon } = window.OpenCompanyDesignSystem_2559cf;function CanvasCard() {const [mode, setMode] = React.useState('normal');diff --git a/docs-internal/design-system/components/display/display.card.html b/docs-internal/design-system/components/display/display.card.htmlindex 5c49eff8..fe972ffa 100644--- a/docs-internal/design-system/components/display/display.card.html+++ b/docs-internal/design-system/components/display/display.card.html@@ -13,7 +13,7 @@<body style="background: var(--bg-panel); margin: 0; padding: 16px;"><div id="root"></div><script type="text/babel">-const { Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble } = window.MachinaOSDesignSystem_2559cf;+const { Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble } = window.OpenCompanyDesignSystem_2559cf;function DisplayCard() {const [tab, setTab] = React.useState('console');@@ -58,7 +58,7 @@ function DisplayCard() {<ChatBubble role="agent">Done — I scheduled a daily digest. Want it on WhatsApp too?</ChatBubble></div>) : (- <LogLine tone="var(--fg-default)"><span style={{ color: 'var(--success)' }}>$</span> machina start</LogLine>+ <LogLine tone="var(--fg-default)"><span style={{ color: 'var(--success)' }}>$</span> company start</LogLine>)}</div></div>diff --git a/docs-internal/design-system/components/feedback/Spinner.jsx b/docs-internal/design-system/components/feedback/Spinner.jsxindex c1b0b428..68116a8d 100644--- a/docs-internal/design-system/components/feedback/Spinner.jsx+++ b/docs-internal/design-system/components/feedback/Spinner.jsx@@ -6,11 +6,11 @@ import * as React from 'react';export function Spinner({ size = 16, color = 'var(--primary)', style }) {return (<span style={{ display: 'inline-flex', ...style }}>- <svg width={size} height={size} viewBox="0 0 24 24" fill="none" style={{ animation: 'machina-spin 0.9s linear infinite' }}>+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none" style={{ animation: 'opencompany-spin 0.9s linear infinite' }}><circle cx="12" cy="12" r="9" stroke={`color-mix(in srgb, ${color} 20%, transparent)`} strokeWidth="3"></circle><path d="M21 12a9 9 0 0 0-9-9" stroke={color} strokeWidth="3" strokeLinecap="round"></path></svg>- <style>{'@keyframes machina-spin { to { transform: rotate(360deg); } }'}</style>+ <style>{'@keyframes opencompany-spin { to { transform: rotate(360deg); } }'}</style></span>);}diff --git a/docs-internal/design-system/components/feedback/feedback.card.html b/docs-internal/design-system/components/feedback/feedback.card.htmlindex 4fe7eb46..aa5b2aa9 100644--- a/docs-internal/design-system/components/feedback/feedback.card.html+++ b/docs-internal/design-system/components/feedback/feedback.card.html@@ -13,7 +13,7 @@<body style="background: var(--bg-panel); margin: 0; padding: 16px;"><div id="root"></div><script type="text/babel">-const { Modal, Toast, Tooltip, Spinner, Progress, EmptyState, Button, ActionButton, Input, Icon } = window.MachinaOSDesignSystem_2559cf;+const { Modal, Toast, Tooltip, Spinner, Progress, EmptyState, Button, ActionButton, Input, Icon } = window.OpenCompanyDesignSystem_2559cf;function FeedbackCard() {return (diff --git a/docs-internal/design-system/components/forms/ApiKeyInput.jsx b/docs-internal/design-system/components/forms/ApiKeyInput.jsxindex 3d93e9b9..e52f3bbc 100644--- a/docs-internal/design-system/components/forms/ApiKeyInput.jsx+++ b/docs-internal/design-system/components/forms/ApiKeyInput.jsx@@ -106,7 +106,7 @@ function ValidateButton({ disabled, loading, isStored, onClick, label }) {}}>{loading ? (- <svg width="13" height="13" viewBox="0 0 24 24" fill="none" style={{ animation: 'machina-spin 0.9s linear infinite' }}>+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" style={{ animation: 'opencompany-spin 0.9s linear infinite' }}><path d="M21 12a9 9 0 0 0-9-9" stroke="currentColor" strokeWidth="3" strokeLinecap="round"></path></svg>) : isStored ? (@@ -115,7 +115,7 @@ function ValidateButton({ disabled, loading, isStored, onClick, label }) {<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline></svg>)}{label}- <style>{'@keyframes machina-spin { to { transform: rotate(360deg); } }'}</style>+ <style>{'@keyframes opencompany-spin { to { transform: rotate(360deg); } }'}</style></button>);}diff --git a/docs-internal/design-system/components/forms/forms.card.html b/docs-internal/design-system/components/forms/forms.card.htmlindex e917d9b2..a0651a5f 100644--- a/docs-internal/design-system/components/forms/forms.card.html+++ b/docs-internal/design-system/components/forms/forms.card.html@@ -13,7 +13,7 @@<body style="background: var(--bg-panel); margin: 0; padding: 16px;"><div id="root"></div><script type="text/babel">-const { Input, Select, RadioGroup, Textarea, Switch, Checkbox, Icon } = window.MachinaOSDesignSystem_2559cf;+const { Input, Select, RadioGroup, Textarea, Switch, Checkbox, Icon } = window.OpenCompanyDesignSystem_2559cf;function FormsCard() {return (diff --git a/docs-internal/design-system/components/icons/Icon.jsx b/docs-internal/design-system/components/icons/Icon.jsxindex 0d11486d..e8c7a357 100644--- a/docs-internal/design-system/components/icons/Icon.jsx+++ b/docs-internal/design-system/components/icons/Icon.jsx@@ -1,7 +1,7 @@import * as React from 'react';/**- * Icon — Lucide bridge. MachinaOS uses lucide-react; in this design system+ * Icon — Lucide bridge. OpenCompany uses lucide-react; in this design system* icons render from the lucide UMD bundle. Load it once per page:* <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>* Then <Icon name="Play" size={14} /> — colored via currentColor.diff --git a/docs-internal/design-system/components/icons/Icon.prompt.md b/docs-internal/design-system/components/icons/Icon.prompt.mdindex 51dcd990..4413d07b 100644--- a/docs-internal/design-system/components/icons/Icon.prompt.md+++ b/docs-internal/design-system/components/icons/Icon.prompt.md@@ -1,4 +1,4 @@-Lucide icon by name, colored via currentColor — the only icon system in MachinaOS.+Lucide icon by name, colored via currentColor — the only icon system in OpenCompany.```jsx<span style={{ color: 'var(--action-run-ink)' }}>diff --git a/docs-internal/design-system/components/icons/icons.card.html b/docs-internal/design-system/components/icons/icons.card.htmlindex 4139e703..0ef7d784 100644--- a/docs-internal/design-system/components/icons/icons.card.html+++ b/docs-internal/design-system/components/icons/icons.card.html@@ -13,7 +13,7 @@<body style="background: var(--bg-panel); margin: 0; padding: 16px;"><div id="root"></div><script type="text/babel">-const { Icon } = window.MachinaOSDesignSystem_2559cf;+const { Icon } = window.OpenCompanyDesignSystem_2559cf;const NAMES = ['Play','Square','Save','Settings','KeyRound','FolderOpen','FilePlus','Search','GripVertical','ChevronDown','Zap','Clock','PanelLeftClose','PanelRightClose','Download','Upload','Clipboard','Pencil','Code2','X','Repeat','LogOut'];function IconsCard() {return (diff --git a/docs-internal/design-system/components/panels/panels.card.html b/docs-internal/design-system/components/panels/panels.card.htmlindex f3328bb5..cbd4cdf5 100644--- a/docs-internal/design-system/components/panels/panels.card.html+++ b/docs-internal/design-system/components/panels/panels.card.html@@ -13,7 +13,7 @@<body style="background: var(--bg-panel); margin: 0; padding: 16px;"><div id="root"></div><script type="text/babel">-const { PanelModal, SettingsSection, SettingsRow, DataCard, CollapsibleSection, ApiKeyInput, Slider, Switch, ActionButton, Icon } = window.MachinaOSDesignSystem_2559cf;+const { PanelModal, SettingsSection, SettingsRow, DataCard, CollapsibleSection, ApiKeyInput, Slider, Switch, ActionButton, Icon } = window.OpenCompanyDesignSystem_2559cf;function PanelsCard() {const [ratio, setRatio] = React.useState(80);diff --git a/docs-internal/design-system/guidelines/ANIMATIONS.md b/docs-internal/design-system/guidelines/ANIMATIONS.mdindex 2b415dcb..58a7130c 100644--- a/docs-internal/design-system/guidelines/ANIMATIONS.md+++ b/docs-internal/design-system/guidelines/ANIMATIONS.md@@ -1,4 +1,4 @@-# MachinaOS animation system+# OpenCompany animation systemMotion is a **first-class part of each theme's identity**, not a global constant. Every theme declares the same six-token motion contract; the personality lives in the **easing function**, not just duration. Live demo: `guidelines/animations-all-themes.html`. Tokens + keyframes: `tokens/animations.css`.@@ -36,7 +36,7 @@ Motion is a **first-class part of each theme's identity**, not a global constant- **`ren-pulse-exec`** — candle-flame: never fully dark, gentle ease-in-out swell (Renaissance).- **`cyber-pulse-exec` / `cyber-flicker` / `cyber-roll` / `cyber-blink` / `cyber-glitch`** — hard digital strobe via `steps(2)`, whole-frame CRT flicker, rolling scanline band, LED blink, hover text-shear (Cyber).- **`surv-pulse-exec` / `surv-blink`** — REC-red glow strobe + status-LED blink (Surveillance).-- **`machina-pip-blink`** — generic status-pip blink. **`machina-spin`** — spinner.+- **`opencompany-pip-blink`** — generic status-pip blink. **`opencompany-spin`** — spinner.## Interaction motion (all themes)@@ -49,18 +49,18 @@ Motion is a **first-class part of each theme's identity**, not a global constant```html<html data-theme="cyber"> <!-- picks the whole motion contract -->-<div class="machina-pulse node">…</div> <!-- executing node: reads --pulse-keyframe + color -->-<div class="machina-crt machina-scanline">…</div> <!-- app frame ambient (cyber/surveillance) -->+<div class="opencompany-pulse node">…</div> <!-- executing node: reads --pulse-keyframe + color -->+<div class="opencompany-crt opencompany-scanline">…</div> <!-- app frame ambient (cyber/surveillance) -->```-Set `--node-pulse-color` on (or above) the pulsing element. `.machina-pulse` automatically uses the active theme's keyframe, duration and timing. All loops stop under `prefers-reduced-motion: reduce`.+Set `--node-pulse-color` on (or above) the pulsing element. `.opencompany-pulse` automatically uses the active theme's keyframe, duration and timing. All loops stop under `prefers-reduced-motion: reduce`.## Trigger nodes — the "listening / armed" stateTriggers (`whatsappReceive`, `cronScheduler`, `webhookTrigger`, `start`) animate differently from regular nodes:- **No input handle**, and a **lightning ⚡ badge** (bottom-left, gold) marking them as workflow entry points.-- A **continuous "listening" pulse** (`trigger-listening`, ~2.4s, gentle ease-in-out) that runs the whole time the trigger is *armed and waiting for events* — not just during execution. This is the key distinction: a normal node is dark until it runs and pulses once; a trigger breathes continuously while listening. The armed pip blinks (`machina-pip-pulse`).+- A **continuous "listening" pulse** (`trigger-listening`, ~2.4s, gentle ease-in-out) that runs the whole time the trigger is *armed and waiting for events* — not just during execution. This is the key distinction: a normal node is dark until it runs and pulses once; a trigger breathes continuously while listening. The armed pip blinks (`opencompany-pip-pulse`).- A **one-shot `trigger-fire` flash** the moment an event arrives, before it hands off downstream.- WhatsApp triggers fold connection state into the pip: connected → success, pairing → waiting (pulses), disconnected → error.diff --git a/docs-internal/design-system/guidelines/THEMES.md b/docs-internal/design-system/guidelines/THEMES.mdindex 294395d5..3bed66e1 100644--- a/docs-internal/design-system/guidelines/THEMES.md+++ b/docs-internal/design-system/guidelines/THEMES.md@@ -1,4 +1,4 @@-# MachinaOS theming architecture — analysis+# OpenCompany theming architecture — analysisSource: `client/src/themes/*.css` + `client/src/index.css` in https://github.com/zeenie-ai/MachinaOS (full copies in `reference/themes/`). The app ships **12 themes**: 2 canonical (light, dark) + 10 "skins" (Renaissance, Greek, Edo, Steampunk, Atomic, Cyber, Wasteland, Rot, Plague, Surveillance).@@ -15,7 +15,7 @@ Every theme is **one CSS file, zero component changes**. The system is layered s## 2. What a theme is allowed to change-Beyond color: **typeface trio, base font size (13–15px), letter case, tracking (0–0.18em), all four radii (0 → 999px), motion speed (60ms → 680ms), easing curve *shape* (smooth bezier / bouncy overshoot / `steps()` strobe / `linear`), a named `--motion-style`, a sound pack, the cursor itself (SVG data-URI), the canvas background pattern (SVG tile), scrollbar chrome, and selection color.** That breadth is the design insight: MachinaOS themes are *material systems*, not palettes.+Beyond color: **typeface trio, base font size (13–15px), letter case, tracking (0–0.18em), all four radii (0 → 999px), motion speed (60ms → 680ms), easing curve *shape* (smooth bezier / bouncy overshoot / `steps()` strobe / `linear`), a named `--motion-style`, a sound pack, the cursor itself (SVG data-URI), the canvas background pattern (SVG tile), scrollbar chrome, and selection color.** That breadth is the design insight: OpenCompany themes are *material systems*, not palettes.## 3. The 12 themes at a glancediff --git a/docs-internal/design-system/guidelines/animations-all-themes.html b/docs-internal/design-system/guidelines/animations-all-themes.htmlindex a413ec52..8f154f20 100644--- a/docs-internal/design-system/guidelines/animations-all-themes.html+++ b/docs-internal/design-system/guidelines/animations-all-themes.html@@ -3,7 +3,7 @@<html><head><meta charset="utf-8">-<title>MachinaOS — Animations, All Themes</title>+<title>OpenCompany — Animations, All Themes</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Bevan&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:wght@400;500;600&family=Courier+Prime&family=EB+Garamond:wght@400;500;600&family=Geist:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IM+Fell+English:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&display=swap">@@ -53,7 +53,7 @@</head><body><header>- <h1>MachinaOS — animation system, all 12 themes</h1>+ <h1>OpenCompany — animation system, all 12 themes</h1><p>Live motion rendered with each theme's real timing tokens (from <code>client/src/themes/*.css</code>): the <strong>trigger "listening" pulse</strong> (armed heartbeat + lightning ⚡ badge, left node), the one-shot <strong>executing-node pulse</strong> (middle), an <strong>easing lane</strong> that shows the curve character (bouncy overshoot, steps strobe, linear scan, slow drift), the <strong>status-pip blink</strong>, button <strong>hover-lift / press</strong> (hover them), and ambient <strong>CRT flicker + rolling scanline</strong> for Cyber / Surveillance. Every glow uses a <strong>theme-contrast color</strong> so it stays visible on that background. Full system: <code>tokens/animations.css</code> · <code>guidelines/ANIMATIONS.md</code>.</p></header><div class="controls">diff --git a/docs-internal/design-system/guidelines/panels-all-themes.html b/docs-internal/design-system/guidelines/panels-all-themes.htmlindex 4126ed15..fb69ff4f 100644--- a/docs-internal/design-system/guidelines/panels-all-themes.html+++ b/docs-internal/design-system/guidelines/panels-all-themes.html@@ -3,7 +3,7 @@<html><head><meta charset="utf-8">-<title>MachinaOS — All Panels × All Themes</title>+<title>OpenCompany — All Panels × All Themes</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Bevan&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&family=EB+Garamond:wght@400;500;600&family=Geist:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IM+Fell+English:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=VT323&display=swap">@@ -69,7 +69,7 @@</head><body><header>- <h1>MachinaOS — every workspace panel, all twelve themes</h1>+ <h1>OpenCompany — every workspace panel, all twelve themes</h1><p>Every surface per theme — the <b>workspace chrome</b> (top toolbar, workflow sidebar, component palette, console dock, status bar), the three-column <b>Node Configuration</b> panel (Input · Parameters with Token Usage + Connected Skills · Output), the split <b>Master Skill Editor</b>, the <b>Settings</b> panel, <b>API Credentials</b>, and the <b>Clear Memory</b> dialog + toasts. UI copy uses each theme's readable body font; decorative display faces appear only in tile headers.</p></header><nav class="jump" id="jump"></nav>diff --git a/docs-internal/design-system/guidelines/product-reference.html b/docs-internal/design-system/guidelines/product-reference.htmlindex 1895569f..58de5619 100644--- a/docs-internal/design-system/guidelines/product-reference.html+++ b/docs-internal/design-system/guidelines/product-reference.html@@ -6,6 +6,6 @@<link rel="stylesheet" href="../styles.css"></head><body style="margin: 0; background: #002b36;">-<img src="../assets/product-canvas-screenshot.png" alt="MachinaOS canvas with a WhatsApp + Android agent workflow" style="display: block; width: 100%; height: auto;">+<img src="../assets/product-canvas-screenshot.png" alt="OpenCompany canvas with a WhatsApp + Android agent workflow" style="display: block; width: 100%; height: auto;"></body></html>diff --git a/docs-internal/design-system/guidelines/shadows-glow.html b/docs-internal/design-system/guidelines/shadows-glow.htmlindex 386172ef..108e86f9 100644--- a/docs-internal/design-system/guidelines/shadows-glow.html+++ b/docs-internal/design-system/guidelines/shadows-glow.html@@ -20,7 +20,7 @@<span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">node accent glow</span></div><div style="display:flex; flex-direction:column; gap:8px; align-items:center;">- <div class="machina-pulse" style="--node-pulse-color: var(--info); width: 100%; height: 70px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-cyan) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-cyan) 16%, var(--surface-card)), var(--surface-card));"></div>+ <div class="opencompany-pulse" style="--node-pulse-color: var(--info); width: 100%; height: 70px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-cyan) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-cyan) 16%, var(--surface-card)), var(--surface-card));"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">executing pulse</span></div></div>diff --git a/docs-internal/design-system/guidelines/theme-comparison-full.html b/docs-internal/design-system/guidelines/theme-comparison-full.htmlindex 959b251c..b0b93e78 100644--- a/docs-internal/design-system/guidelines/theme-comparison-full.html+++ b/docs-internal/design-system/guidelines/theme-comparison-full.html@@ -3,7 +3,7 @@<html><head><meta charset="utf-8">-<title>MachinaOS — Full Theme Comparison</title>+<title>OpenCompany — Full Theme Comparison</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Bevan&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&family=EB+Garamond:wght@400;500;600&family=Geist:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IM+Fell+English+SC&family=IM+Fell+English:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Major+Mono+Display&family=Pirata+One&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=UnifrakturCook:wght@700&family=VT323&display=swap">@@ -78,7 +78,7 @@</head><body><header>- <h1>MachinaOS — full screen, twelve themes</h1>+ <h1>OpenCompany — full screen, twelve themes</h1><p>The complete workspace per theme: toolbar · workflow sidebar · expanded canvas (full 6-node WhatsApp Assistant flow with rectangular AI Agent node) · component palette · console dock · status bar — plus a strip of core components (buttons, input, switch, badges, tabs) in that theme's tokens.</p></header><nav class="jump" id="jump"></nav>diff --git a/docs-internal/design-system/guidelines/theme-comparison.html b/docs-internal/design-system/guidelines/theme-comparison.htmlindex e23f2a84..f416fa15 100644--- a/docs-internal/design-system/guidelines/theme-comparison.html+++ b/docs-internal/design-system/guidelines/theme-comparison.html@@ -3,7 +3,7 @@<html><head><meta charset="utf-8">-<title>MachinaOS — Theme Comparison</title>+<title>OpenCompany — Theme Comparison</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Bevan&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&family=EB+Garamond:wght@400;500;600&family=Geist:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IM+Fell+English+SC&family=IM+Fell+English:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Major+Mono+Display&family=Pirata+One&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=UnifrakturCook:wght@700&family=VT323&display=swap">@@ -41,7 +41,7 @@</head><body><header>- <h1>MachinaOS — one screen, twelve themes</h1>+ <h1>OpenCompany — one screen, twelve themes</h1><p>The same workflow view (toolbar · node canvas · status bar) rendered with each theme's real tokens from <code>client/src/themes/*.css</code>: surfaces, accents, typeface trio, letter case & tracking, radii, canvas grid. Light + Dark are encoded live in this design system's <code>tokens/</code>; the ten skins are sourced in <code>reference/themes/</code>.</p></header><div class="grid" id="grid"></div>diff --git a/docs-internal/design-system/guidelines/theme-matrix.html b/docs-internal/design-system/guidelines/theme-matrix.htmlindex 14cb96a2..64db6581 100644--- a/docs-internal/design-system/guidelines/theme-matrix.html+++ b/docs-internal/design-system/guidelines/theme-matrix.html@@ -3,7 +3,7 @@<html><head><meta charset="utf-8">-<title>MachinaOS — Theme Matrix</title>+<title>OpenCompany — Theme Matrix</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Bevan&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&family=EB+Garamond:wght@400;500;600&family=Geist:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IM+Fell+English+SC&family=IM+Fell+English:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Major+Mono+Display&family=Pirata+One&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=UnifrakturCook:wght@700&family=VT323&display=swap">@@ -40,7 +40,7 @@</head><body><div class="hdr">- <h1>MachinaOS theme matrix — 12 material systems, one token contract</h1>+ <h1>OpenCompany theme matrix — 12 material systems, one token contract</h1><p>Each row is rendered in that theme's own tokens (from client/src/themes/*.css). Same UI, different era. Analysis: guidelines/THEMES.md</p></div><div class="matrix" id="matrix"></div>diff --git a/docs-internal/design-system/guidelines/wordmark.html b/docs-internal/design-system/guidelines/wordmark.htmlindex 75a0dc8d..d15e6f9c 100644--- a/docs-internal/design-system/guidelines/wordmark.html+++ b/docs-internal/design-system/guidelines/wordmark.html@@ -11,7 +11,7 @@<span style="font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--dracula-cyan);">M</span></div><div>- <div style="font-family: var(--font-sans); font-size: 26px; font-weight: 600; color: var(--fg-default); letter-spacing: -0.01em;">MachinaOS</div>+ <div style="font-family: var(--font-sans); font-size: 26px; font-weight: 600; color: var(--fg-default); letter-spacing: -0.01em;">OpenCompany</div><div style="font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-muted);">by zeenie.ai</div></div></div>diff --git a/docs-internal/design-system/readme.md b/docs-internal/design-system/readme.mdindex b001fdec..23ae7432 100644--- a/docs-internal/design-system/readme.md+++ b/docs-internal/design-system/readme.md@@ -1,6 +1,6 @@-# MachinaOS Design System (zeenie.ai)+# OpenCompany Design System (zeenie.ai)-Design system for **MachinaOS** — zeenie.ai's open-source, local-first AI workflow OS. "Your own AI assistant that does real work": users drag, drop, and connect AI agents to email, calendar, messages, phone, and 50+ services on a visual node canvas, then run or deploy workflows that keep running in the background. No code, no subscription; bring your own API keys or run models locally.+Design system for **OpenCompany** — zeenie.ai's open-source, local-first AI workflow OS. "Your own AI assistant that does real work": users drag, drop, and connect AI agents to email, calendar, messages, phone, and 50+ services on a visual node canvas, then run or deploy workflows that keep running in the background. No code, no subscription; bring your own API keys or run models locally.**Sources** (explore these to design even better against this product):- GitHub: https://github.com/zeenie-ai/MachinaOS — primary source. Key design files: `client/src/index.css` (all color/role tokens), `client/src/themes/{base,light,dark}.css` (contract tokens: surfaces, type, motion), `client/tailwind.config.js`, `client/src/components/ui/` (TopToolbar, ComponentPalette, ActionButton, StatusBar, WorkflowSidebar…), `client/src/components/SquareNode.tsx` (canvas node anatomy), `client/src/assets/icons/index.ts` (icon resolver).@@ -8,7 +8,7 @@ Design system for **MachinaOS** — zeenie.ai's open-source, local-first AI work- Reference screenshot: `assets/product-canvas-screenshot.png` (real product — dark canvas, neon nodes, WhatsApp automation demo).## Product surfaces-1. **MachinaOS app** (`localhost:3000`) — the core product. A three-zone desktop workspace: workflow sidebar (left), node canvas (center), component palette (right), top toolbar, bottom status bar, multi-tab console dock. Recreated in `ui_kits/machinaos/`.+1. **OpenCompany app** (`localhost:3000`) — the core product. A three-zone desktop workspace: workflow sidebar (left), node canvas (center), component palette (right), top toolbar, bottom status bar, multi-tab console dock. Recreated in `ui_kits/opencompany/`.2. **Marketing/docs** (zeenie.ai, docs.zeenie.xyz) — not in the repo; no UI kit was fabricated for them. Use the foundations here plus the README voice when designing those.The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk…). This design system encodes the two canonical ones: **light** (default `:root`) and **dark** (`class="dark"` — the signature look used in every screenshot and demo).@@ -58,7 +58,7 @@ The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk1. Link `styles.css`; add `class="dark"` on `<html>` for the signature dark look (default for product UI; light for docs/print).2. Color = role, not decoration. Pick the action intent or node role first, then use its `-soft`/`-border`/ink triplet.3. Geist for words, mono for numbers/state. 14px base, sentence case, terse copy.-4. Compose from `components/` (namespace `window.MachinaOSDS` — see `check_design_system`/cards): ActionButton, Button, Badge, Input, Select, RadioGroup, Textarea, Switch, Checkbox, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble, Modal, Toast, Tooltip, Spinner, Progress, EmptyState, SquareNode, ComponentItem, WorkflowCard, StatusBar, ModeToggle, Icon.+4. Compose from `components/` (namespace `window.OpenCompanyDS` — see `check_design_system`/cards): ActionButton, Button, Badge, Input, Select, RadioGroup, Textarea, Switch, Checkbox, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble, Modal, Toast, Tooltip, Spinner, Progress, EmptyState, SquareNode, ComponentItem, WorkflowCard, StatusBar, ModeToggle, Icon.## Index@@ -74,12 +74,12 @@ The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk- `components/panels/` — PanelModal, SettingsSection (+SettingsRow), CollapsibleSection, DataCard — the workspace panel anatomy (Node Configuration, Settings, Credentials).- `components/canvas/` — SquareNode, ComponentItem, WorkflowCard, StatusBar, ModeToggle.- `components/icons/` — Icon (Lucide bridge).-- `ui_kits/machinaos/` — interactive recreation of the workflow canvas app, including the Settings panel (toolbar ⚙), API Credentials panel (🔑), and the three-column Node Configuration panel (gear on any node).+- `ui_kits/opencompany/` — interactive recreation of the workflow canvas app, including the Settings panel (toolbar ⚙), API Credentials panel (🔑), and the three-column Node Configuration panel (gear on any node).- `SKILL.md` — agent-skill entry point.## Caveats- **Fonts substituted:** Geist served from Google Fonts instead of the app's bundled `@fontsource-variable/geist` (same typeface, different delivery). Drop real `.woff2` files into `tokens/` + add `@font-face` if pixel-exact metrics matter.-- **No official logo found in the repo** (favicon is the Vite placeholder; README hero is a GitHub user-attachment). The wordmark card sets "MachinaOS" in Geist 600 as a stand-in — replace with the real mark when available.+- **No official logo found in the repo** (favicon is the Vite placeholder; README hero is a GitHub user-attachment). The wordmark card sets "OpenCompany" in Geist 600 as a stand-in — replace with the real mark when available.- zeenie.ai marketing site isn't in the repo; no marketing UI kit was invented.- The app's 10 themed skins are analyzed in `guidelines/THEMES.md` (token contract, per-theme matrix, porting recipe) with sources in `reference/themes/` — but only light/dark are encoded as live token scopes here. Ask to port a skin (e.g. Cyber) into `tokens/` if you want it usable.- **Motion** is documented in `guidelines/ANIMATIONS.md` and encoded in `tokens/animations.css` (per-theme `--dur`/`--ease`/`--motion-style` scopes + signature keyframes for all 12 themes). Live demo: `guidelines/animations-all-themes.html`.diff --git a/docs-internal/design-system/tokens/animations.css b/docs-internal/design-system/tokens/animations.cssindex 5793c79a..47a6272d 100644--- a/docs-internal/design-system/tokens/animations.css+++ b/docs-internal/design-system/tokens/animations.css@@ -1,5 +1,5 @@/* ============================================================================- * MachinaOS — animation system (all 12 themes)+ * OpenCompany — animation system (all 12 themes)** Source: client/src/themes/base.css + each theme file's Motion block and* decorative keyframes. This file declares:@@ -172,43 +172,43 @@@keyframes trigger-bolt { 0%, 100% { opacity: 0.6; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }/* Status pip blink (generic, smooth). */-@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }+@keyframes opencompany-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }/* Spinner. */-@keyframes machina-spin { to { transform: rotate(360deg); } }+@keyframes opencompany-spin { to { transform: rotate(360deg); } }/* ============================================================================* Helper classes* ========================================================================== *//* Apply to an executing node; reads the theme's chosen keyframe + timing. */-.machina-pulse {+.opencompany-pulse {animation: var(--pulse-keyframe, node-pulse) var(--pulse-duration, 1.4s) var(--pulse-timing, ease-in-out) infinite;}/* Trigger node waiting for events — continuous armed heartbeat. Slower than* the execution pulse so the two read as distinct states. */-.machina-trigger-armed {+.opencompany-trigger-armed {animation: trigger-listening 2.4s ease-in-out infinite;}/* One-shot flash the moment a trigger fires (add, then remove on animationend). */-.machina-trigger-fire {+.opencompany-trigger-fire {animation: trigger-fire 0.6s var(--ease-default, ease-out) 1;}/* Lightning badge + listening pip pulses. */-.machina-bolt { animation: trigger-bolt 1.8s ease-in-out infinite; }-.machina-pip-pulse { animation: machina-pip-blink 1.4s ease-in-out infinite; }+.opencompany-bolt { animation: trigger-bolt 1.8s ease-in-out infinite; }+.opencompany-pip-pulse { animation: opencompany-pip-blink 1.4s ease-in-out infinite; }/* Ambient overlays — add once at the app frame for cyber / surveillance. */-.machina-scanline::after {+.opencompany-scanline::after {content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 50;height: 12%;background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--node-pulse-color, #1dd9e5) 18%, transparent), transparent);animation: cyber-roll 8s linear infinite;}-.machina-crt { animation: cyber-flicker 5s linear infinite; }+.opencompany-crt { animation: cyber-flicker 5s linear infinite; }@media (prefers-reduced-motion: reduce) {- .machina-pulse, .machina-crt, .machina-scanline::after,- .machina-trigger-armed, .machina-trigger-fire, .machina-bolt, .machina-pip-pulse { animation: none !important; }+ .opencompany-pulse, .opencompany-crt, .opencompany-scanline::after,+ .opencompany-trigger-armed, .opencompany-trigger-fire, .opencompany-bolt, .opencompany-pip-pulse { animation: none !important; }}diff --git a/docs-internal/design-system/tokens/base.css b/docs-internal/design-system/tokens/base.cssindex d11f1297..d23d62f0 100644--- a/docs-internal/design-system/tokens/base.css+++ b/docs-internal/design-system/tokens/base.css@@ -1,5 +1,5 @@/* ============================================================================- * MachinaOS — minimal base styles+ * OpenCompany — minimal base styles* Body defaults + scrollbars. Everything else is component-level.* ========================================================================== */diff --git a/docs-internal/design-system/tokens/colors.css b/docs-internal/design-system/tokens/colors.cssindex bf86c3cf..76410ef5 100644--- a/docs-internal/design-system/tokens/colors.css+++ b/docs-internal/design-system/tokens/colors.css@@ -1,5 +1,5 @@/* ============================================================================- * MachinaOS — color tokens+ * OpenCompany — color tokens* Source: zeenie-ai/MachinaOS client/src/index.css + client/src/themes/{light,dark}.css* Light = grey-blue "paper" workspace. Dark = neutral slate dark (the same* family inverted, NOT Solarized teal) with Dracula vibrant accents.diff --git a/docs-internal/design-system/tokens/fonts.css b/docs-internal/design-system/tokens/fonts.cssindex ef5cd13e..916b7bcd 100644--- a/docs-internal/design-system/tokens/fonts.css+++ b/docs-internal/design-system/tokens/fonts.css@@ -1,5 +1,5 @@/* ============================================================================- * MachinaOS — webfonts+ * OpenCompany — webfonts** SUBSTITUTION NOTE: the app bundles Geist via @fontsource-variable/geist* (npm). The binary isn't in the repo, so we load the same typeface fromdiff --git a/docs-internal/design-system/tokens/motion.css b/docs-internal/design-system/tokens/motion.cssindex b18e0ea8..5484d5cc 100644--- a/docs-internal/design-system/tokens/motion.css+++ b/docs-internal/design-system/tokens/motion.css@@ -1,5 +1,5 @@/* ============================================================================- * MachinaOS — motion tokens+ * OpenCompany — motion tokens* Source: client/src/themes/base.css. Motion is quick and smooth: short* durations, one custom ease. Canvas nodes lift -1px on hover; executing* nodes pulse a three-layer glow.@@ -14,5 +14,5 @@}/* The executing-node pulse, per-theme motion contracts, signature keyframes- * (node-pulse, cyber-*, surv-*, ren-*), and the `.machina-pulse` helper live+ * (node-pulse, cyber-*, surv-*, ren-*), and the `.opencompany-pulse` helper live* in tokens/animations.css. See guidelines/ANIMATIONS.md for the full system. */diff --git a/docs-internal/design-system/tokens/spacing.css b/docs-internal/design-system/tokens/spacing.cssindex 30b603a1..6599a491 100644--- a/docs-internal/design-system/tokens/spacing.css+++ b/docs-internal/design-system/tokens/spacing.css@@ -1,5 +1,5 @@/* ============================================================================- * MachinaOS — spacing, radius, shadow tokens+ * OpenCompany — spacing, radius, shadow tokens* Source: client/src/themes/base.css (space scale) + light.css (radii)* ========================================================================== */diff --git a/docs-internal/design-system/tokens/typography.css b/docs-internal/design-system/tokens/typography.cssindex a4011c38..be85daae 100644--- a/docs-internal/design-system/tokens/typography.css+++ b/docs-internal/design-system/tokens/typography.css@@ -1,9 +1,9 @@/* ============================================================================- * MachinaOS — typography tokens+ * OpenCompany — typography tokens* App font: Geist (loaded via @fontsource-variable/geist in the real app;* here served from Google Fonts — see tokens/fonts.css).* Mono: JetBrains Mono (Cyber theme / code) falling back to system mono.- * Base UI size is 14px — MachinaOS is a dense desktop tool.+ * Base UI size is 14px — OpenCompany is a dense desktop tool.* ========================================================================== */:root {diff --git a/docs-internal/design-system/ui_kits/machinaos/App.jsx b/docs-internal/design-system/ui_kits/opencompany/App.jsxsimilarity index 96%rename from docs-internal/design-system/ui_kits/machinaos/App.jsxrename to docs-internal/design-system/ui_kits/opencompany/App.jsxindex 12dafb88..620d6cd5 100644--- a/docs-internal/design-system/ui_kits/machinaos/App.jsx+++ b/docs-internal/design-system/ui_kits/opencompany/App.jsx@@ -1,6 +1,6 @@-// MachinaOS UI kit — app shell wiring all panels together.-const DS_APP = window.MachinaOSDesignSystem_2559cf;-const KIT = window.MachinaKit;+// OpenCompany UI kit — app shell wiring all panels together.+const DS_APP = window.OpenCompanyDesignSystem_2559cf;+const KIT = window.OpenCompanyKit;const WORKFLOWS = [{ id: 'wa', name: 'WhatsApp Assistant', nodeCount: 6, modified: 'Jun 11, 09:14' },diff --git a/docs-internal/design-system/ui_kits/machinaos/CanvasView.jsx b/docs-internal/design-system/ui_kits/opencompany/CanvasView.jsxsimilarity index 96%rename from docs-internal/design-system/ui_kits/machinaos/CanvasView.jsxrename to docs-internal/design-system/ui_kits/opencompany/CanvasView.jsxindex c05be70a..2e9a3193 100644--- a/docs-internal/design-system/ui_kits/machinaos/CanvasView.jsx+++ b/docs-internal/design-system/ui_kits/opencompany/CanvasView.jsx@@ -1,6 +1,6 @@-// MachinaOS UI kit — node canvas: dot grid, dashed edges, square nodes,+// OpenCompany UI kit — node canvas: dot grid, dashed edges, square nodes,// rectangular AI Agent node. Click nodes to select; Start runs the flow.-const DS_CV = window.MachinaOSDesignSystem_2559cf;+const DS_CV = window.OpenCompanyDesignSystem_2559cf;// Rectangular agent node (the larger card-style node from the product).function AgentNode({ x, y, status, selected, executing, onClick, onGearClick }) {@@ -8,7 +8,7 @@ function AgentNode({ x, y, status, selected, executing, onClick, onGearClick })return (<divonClick={onClick}- className={executing ? 'machina-pulse' : undefined}+ className={executing ? 'opencompany-pulse' : undefined}style={{'--node-pulse-color': color,position: 'absolute', left: x, top: y, width: 190,@@ -150,4 +150,4 @@ function CanvasView({ running, extraNodes, selectedId, onSelect, onConfigure }));}-window.MachinaKit = Object.assign(window.MachinaKit || {}, { CanvasView });+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, { CanvasView });diff --git a/docs-internal/design-system/ui_kits/machinaos/ConsoleDock.jsx b/docs-internal/design-system/ui_kits/opencompany/ConsoleDock.jsxsimilarity index 92%rename from docs-internal/design-system/ui_kits/machinaos/ConsoleDock.jsxrename to docs-internal/design-system/ui_kits/opencompany/ConsoleDock.jsxindex d10faf32..7284c4a7 100644--- a/docs-internal/design-system/ui_kits/machinaos/ConsoleDock.jsx+++ b/docs-internal/design-system/ui_kits/opencompany/ConsoleDock.jsx@@ -1,5 +1,5 @@-// MachinaOS UI kit — multi-tab console dock (Chat / Console / Terminal).-const DS_CD = window.MachinaOSDesignSystem_2559cf;+// OpenCompany UI kit — multi-tab console dock (Chat / Console / Terminal).+const DS_CD = window.OpenCompanyDesignSystem_2559cf;const CONSOLE_LINES = [{ t: '12:01:31', tone: 'var(--fg-muted)', text: 'Workflow "WhatsApp Assistant" loaded · 6 nodes' },@@ -55,8 +55,8 @@ function ConsoleDock({ open, onToggle }) {</div>) : (<div style={{ fontFamily: 'var(--font-mono)', fontSize: 12, color: 'var(--fg-default)' }}>- <div><span style={{ color: 'var(--success)' }}>$</span> machina start</div>- <div style={{ color: 'var(--fg-muted)', marginTop: 4 }}>MachinaOS running at http://localhost:3000</div>+ <div><span style={{ color: 'var(--success)' }}>$</span> company start</div>+ <div style={{ color: 'var(--fg-muted)', marginTop: 4 }}>OpenCompany running at http://localhost:3000</div><div style={{ color: 'var(--fg-muted)' }}>Temporal · Python backend · WhatsApp service — all up</div></div>)}@@ -66,4 +66,4 @@ function ConsoleDock({ open, onToggle }) {);}-window.MachinaKit = Object.assign(window.MachinaKit || {}, { ConsoleDock });+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, { ConsoleDock });diff --git a/docs-internal/design-system/ui_kits/machinaos/Panels.jsx b/docs-internal/design-system/ui_kits/opencompany/Panels.jsxsimilarity index 96%rename from docs-internal/design-system/ui_kits/machinaos/Panels.jsxrename to docs-internal/design-system/ui_kits/opencompany/Panels.jsxindex 882b6912..552e01d5 100644--- a/docs-internal/design-system/ui_kits/machinaos/Panels.jsx+++ b/docs-internal/design-system/ui_kits/opencompany/Panels.jsx@@ -1,5 +1,5 @@-// MachinaOS UI kit — workflow sidebar (280px) + component palette (320px).-const DS_PN = window.MachinaOSDesignSystem_2559cf;+// OpenCompany UI kit — workflow sidebar (280px) + component palette (320px).+const DS_PN = window.OpenCompanyDesignSystem_2559cf;function SidebarPanel({ workflows, currentId, onSelect }) {const { WorkflowCard, Icon } = DS_PN;@@ -148,4 +148,4 @@ function PalettePanel({ mode, onDropNode }) {);}-window.MachinaKit = Object.assign(window.MachinaKit || {}, { SidebarPanel, PalettePanel });+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, { SidebarPanel, PalettePanel });diff --git a/docs-internal/design-system/ui_kits/machinaos/PanelsModals.jsx b/docs-internal/design-system/ui_kits/opencompany/PanelsModals.jsxsimilarity index 97%rename from docs-internal/design-system/ui_kits/machinaos/PanelsModals.jsxrename to docs-internal/design-system/ui_kits/opencompany/PanelsModals.jsxindex 8c3a8c2a..0a62d349 100644--- a/docs-internal/design-system/ui_kits/machinaos/PanelsModals.jsx+++ b/docs-internal/design-system/ui_kits/opencompany/PanelsModals.jsx@@ -1,7 +1,7 @@-// MachinaOS UI kit — Settings, Node Configuration, and Credentials modals.+// OpenCompany UI kit — Settings, Node Configuration, and Credentials modals.// Faithful recreations of SettingsPanel.tsx / ParameterPanel.tsx, composed// from the DS panel components.-const DS_PM = window.MachinaOSDesignSystem_2559cf;+const DS_PM = window.OpenCompanyDesignSystem_2559cf;function SettingsModal({ open, onClose }) {const { PanelModal, SettingsSection, SettingsRow, Switch, Input, Slider, Button, ActionButton, Icon } = DS_PM;@@ -221,4 +221,4 @@ function CredentialsModal({ open, onClose }) {);}-window.MachinaKit = Object.assign(window.MachinaKit || {}, { SettingsModal, NodeConfigModal, CredentialsModal });+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, { SettingsModal, NodeConfigModal, CredentialsModal });diff --git a/docs-internal/design-system/ui_kits/machinaos/README.md b/docs-internal/design-system/ui_kits/opencompany/README.mdsimilarity index 78%rename from docs-internal/design-system/ui_kits/machinaos/README.mdrename to docs-internal/design-system/ui_kits/opencompany/README.mdindex b9432868..1ba212bb 100644--- a/docs-internal/design-system/ui_kits/machinaos/README.md+++ b/docs-internal/design-system/ui_kits/opencompany/README.md@@ -1,6 +1,6 @@-# MachinaOS app UI kit+# OpenCompany app UI kit-Interactive recreation of the MachinaOS workflow canvas (`localhost:3000`), built from the real client code (`client/src/Dashboard.tsx`, `ui/TopToolbar.tsx`, `ui/ComponentPalette.tsx`, `ui/WorkflowSidebar.tsx`, `ui/StatusBar.tsx`, `SquareNode.tsx`).+Interactive recreation of the OpenCompany workflow canvas (`localhost:3000`), built from the real client code (`client/src/Dashboard.tsx`, `ui/TopToolbar.tsx`, `ui/ComponentPalette.tsx`, `ui/WorkflowSidebar.tsx`, `ui/StatusBar.tsx`, `SquareNode.tsx`).**What's interactive:** toggle sidebar/palette panels, Normal↔Dev mode (filters palette sections), search the palette, click palette items to add nodes, select canvas nodes, Start/Stop (runs an executing-pulse sequence through the flow), Save (Modified→Saved), light/dark theme toggle, console dock tabs + collapse.diff --git a/docs-internal/design-system/ui_kits/machinaos/Toolbar.jsx b/docs-internal/design-system/ui_kits/opencompany/Toolbar.jsxsimilarity index 95%rename from docs-internal/design-system/ui_kits/machinaos/Toolbar.jsxrename to docs-internal/design-system/ui_kits/opencompany/Toolbar.jsxindex e4acd129..8059ff1b 100644--- a/docs-internal/design-system/ui_kits/machinaos/Toolbar.jsx+++ b/docs-internal/design-system/ui_kits/opencompany/Toolbar.jsx@@ -1,6 +1,6 @@-// MachinaOS UI kit — top toolbar (48px, bg-panel).+// OpenCompany UI kit — top toolbar (48px, bg-panel).// Composes ActionButton / Button / ModeToggle / Icon from the DS bundle.-const DS_TB = window.MachinaOSDesignSystem_2559cf;+const DS_TB = window.OpenCompanyDesignSystem_2559cf;function Divider() {return <div style={{ width: 1, height: 24, background: 'var(--border-default)', margin: '0 4px', flexShrink: 0 }}></div>;@@ -72,4 +72,4 @@ function Toolbar({);}-window.MachinaKit = Object.assign(window.MachinaKit || {}, { Toolbar });+window.OpenCompanyKit = Object.assign(window.OpenCompanyKit || {}, { Toolbar });diff --git a/docs-internal/design-system/ui_kits/machinaos/index.html b/docs-internal/design-system/ui_kits/opencompany/index.htmlsimilarity index 86%rename from docs-internal/design-system/ui_kits/machinaos/index.htmlrename to docs-internal/design-system/ui_kits/opencompany/index.htmlindex cd20db74..dac04eda 100644--- a/docs-internal/design-system/ui_kits/machinaos/index.html+++ b/docs-internal/design-system/ui_kits/opencompany/index.html@@ -1,10 +1,10 @@-<!-- @dsCard group="MachinaOS App" viewport="1440x900" name="Workflow Canvas" subtitle="Interactive recreation — toolbar, sidebar, canvas, palette, console, status bar" -->+<!-- @dsCard group="OpenCompany App" viewport="1440x900" name="Workflow Canvas" subtitle="Interactive recreation — toolbar, sidebar, canvas, palette, console, status bar" --><!DOCTYPE html><html lang="en" class="dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>MachinaOS</title>+<title>OpenCompany</title><link rel="stylesheet" href="../../styles.css"><script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script><script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>diff --git a/docs-internal/email_service.md b/docs-internal/email_service.mdindex 9f16b5d6..5924c3e1 100644--- a/docs-internal/email_service.md+++ b/docs-internal/email_service.md@@ -81,14 +81,14 @@ Self-contained plugin folder (Wave 11.I) — everything email-specific lives und| File | Description ||------|-------------|-| `server/nodes/email/__init__.py` | Self-registration: `register_filter_builder("emailReceive", build_email_filter)` + `register_canary_trigger_type("emailReceive", "com.machinaos.email.message.received")` + re-export of `dispatch_email_received`. |+| `server/nodes/email/__init__.py` | Self-registration: `register_filter_builder("emailReceive", build_email_filter)` + `register_canary_trigger_type("emailReceive", "com.opencompany.email.message.received")` + re-export of `dispatch_email_received`. || `server/nodes/email/_himalaya.py` | `HimalayaService` (`ServiceSingleton`). Subprocess-based invocation, temp TOML config generation, JSON output parsing. Singleton via `get_himalaya_service()`. || `server/nodes/email/_service.py` | `EmailService` (`ServiceSingleton`). Credential resolution, operation dispatch, polling helpers. Exposes `HimalayaService` via the `himalaya` property. Singleton via `get_email_service()`. || `server/nodes/email/email_send/__init__.py` | `EmailSendNode(ActionNode)` — dual-purpose send plugin (`group = ("email", "tool")`, `usable_as_tool = True`). || `server/nodes/email/email_read/__init__.py` | `EmailReadNode(ActionNode)` — dual-purpose read/search/manage plugin (7 operations). || `server/nodes/email/email_receive/__init__.py` | `EmailReceiveNode(PollingTriggerNode)` — polling trigger; baseline + diff loop with `poll_ids` / `fetch_detail` hooks. || `server/nodes/email/_filters.py` | `build_filter` (registered as `build_email_filter`) — server-side filter closure for the `emailReceive` trigger. |-| `server/nodes/email/_events.py` | `email_message_received` `WorkflowEvent` factory + `dispatch_email_received` (single `dispatch.emit`, CloudEvents type `com.machinaos.email.message.received`). |+| `server/nodes/email/_events.py` | `email_message_received` `WorkflowEvent` factory + `dispatch_email_received` (single `dispatch.emit`, CloudEvents type `com.opencompany.email.message.received`). || `server/nodes/email/email_{send,read,receive}/icon.svg` + `meta.json` | Per-plugin icon (served at `/api/schemas/nodes/<type>/icon`) + color metadata. || `server/config/email_providers.json` | Provider presets (IMAP/SMTP host/port/encryption per provider) + defaults + polling config. Cached on first load. || `server/constants.py` | `EMAIL_TYPES`, `EMAIL_TOOL_TYPES`, plus `emailReceive` in `POLLING_TRIGGER_TYPES` and `WORKFLOW_TRIGGER_TYPES`. |@@ -240,7 +240,7 @@ Group: `['email', 'trigger']`. No inputs. Single output `main` with the new emai**Event dispatch:** When a new message arrives, `EmailReceiveNode.execute_op`:1. Fetches full detail via `fetch_detail`2. Optionally flags it as read-3. Calls `dispatch_email_received(email_data)` (in `_events.py`), which builds a `WorkflowEvent` (`type="com.machinaos.email.message.received"`) and routes it via a single `dispatch.emit` so Temporal-durable `TriggerListenerWorkflow` consumers fire+3. Calls `dispatch_email_received(email_data)` (in `_events.py`), which builds a `WorkflowEvent` (`type="com.opencompany.email.message.received"`) and routes it via a single `dispatch.emit` so Temporal-durable `TriggerListenerWorkflow` consumers fire4. Returns the first new email's result (single-shot in standalone mode; the `PollingTriggerNode` deployment loop keeps polling)## Deployment Mode (Continuous Polling)diff --git a/docs-internal/errors.md b/docs-internal/errors.mdindex 2cdc2b13..6d9a2d2e 100644--- a/docs-internal/errors.md+++ b/docs-internal/errors.md@@ -1,6 +1,6 @@# Known Errors & Troubleshooting-Documented root causes and fixes for errors encountered in MachinaOs development and production.+Documented root causes and fixes for errors encountered in OpenCompany development and production.---@@ -23,14 +23,14 @@ Documented root causes and fixes for errors encountered in MachinaOs developmentgit worktree remove .claude/worktrees/<name># Or move them outside the project root-git worktree move .claude/worktrees/<name> ../machinaos-worktrees/<name>+git worktree move .claude/worktrees/<name> ../opencompany-worktrees/<name>```**Prevention**: Keep git worktrees as siblings of the project, not nested inside it. For example:```d:/startup/projects/- MachinaOs/ # main project- machinaos-worktrees/ # worktrees outside the project root+ OpenCompany/ # main project+ opencompany-worktrees/ # worktrees outside the project rootcredentials-scaling/native-llm-sdk/```@@ -81,10 +81,10 @@ component=matching-engine wf-namespace=temporal-system**If you do hit a stuck DB**: delete the db file and let `temporal server start-dev` recreate it on next boot:```bash-machina stop-rm ~/.machina/temporal.db # macOS / Linux-rm "$env:USERPROFILE/.machina/temporal.db" # Windows PowerShell-machina start+company stop+rm ~/.opencompany/temporal.db # macOS / Linux+rm "$env:USERPROFILE/.opencompany/temporal.db" # Windows PowerShell+company start```---@@ -180,9 +180,9 @@ Failed to check auth status (attempt 4/6): TypeError: Failed to fetch```FileNotFoundError: temporal binary not found at ...```-or pooch fails to download during `machina start`.+or pooch fails to download during `company start`.-**Root cause**: The official `temporal` CLI archive is downloaded by `pooch` to `<DATA_DIR>/packages/temporal/` (= `~/.machina/packages/temporal/` by default, on every OS — via `core.paths.package_dir("temporal")`) during `machina build` step [6/6]. If the build was skipped or interrupted, or if network access to `temporal.download` was blocked, the binary is missing.+**Root cause**: The official `temporal` CLI archive is downloaded by `pooch` to `<DATA_DIR>/packages/temporal/` (= `~/.opencompany/packages/temporal/` by default, on every OS — via `core.paths.package_dir("temporal")`) during `company build` step [6/6]. If the build was skipped or interrupted, or if network access to `temporal.download` was blocked, the binary is missing.**Fix**:```bash@@ -191,7 +191,7 @@ cd serveruv run python -m services.temporal._install# Or re-run the build step-machina build+company build```If pooch keeps failing, check connectivity to `https://temporal.download/cli/archive/latest?platform=<os>&arch=<arch>` (the URL the docs document at https://docs.temporal.io/develop/python/set-up-your-local-python). Behind a corporate proxy, set `HTTPS_PROXY` in your environment before running.@@ -251,7 +251,7 @@ with no "Signed in" page — yet the backend log shows the login succeeded and c**Fix** (landed at tag v0.0.88): `services/events/cli.py::run_cli_command()` gained an optional `stdin` parameter (default `None` = inherit, unchanged for every existing caller). `nodes/agent/claude_code_agent/_oauth.py::_run_auth` passes `stdin=asyncio.subprocess.PIPE` **for the `login` subcommand only** so the CLI's stdin read blocks instead of EOFing, keeping the callback server alive until the flow completes naturally. `status` / `logout` stay on inherit-stdin (one-shot, no stdin read).-Note the binary install path also moved this release: the claude CLI now lives in the shared MachinaOs npm tree at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]` (was `<DATA_DIR>/claude/npm/...`). The fresh `npm install` triggered by that move is what pulled the 2.1.162 native binary that surfaced this bug — the path change was the trigger, the `stdin=PIPE` is the actual fix.+Note the binary install path also moved this release: the claude CLI now lives in the shared OpenCompany npm tree at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]` (was `<DATA_DIR>/claude/npm/...`). The fresh `npm install` triggered by that move is what pulled the 2.1.162 native binary that surfaced this bug — the path change was the trigger, the `stdin=PIPE` is the actual fix.---@@ -266,7 +266,7 @@ The "auth successful" line fires even when you only *initiated* the login and ne**Root cause**: `_complete_login` used two signals that each lie in isolation:1. **CLI exit code** — `stripe login --complete` is known to exit `1` with `stderr='exceeded max attempts'` *even after* successfully writing credentials. Exit code alone can't confirm failure.-2. **`is_logged_in()`** — only checks for `_api_key` presence in `~/.config/stripe/config.toml`, which is `True` for *any* prior login (the Stripe CLI manages that file globally, outside MachinaOs). On-disk presence alone can't confirm *this* attempt wrote anything.+2. **`is_logged_in()`** — only checks for `_api_key` presence in `~/.config/stripe/config.toml`, which is `True` for *any* prior login (the Stripe CLI manages that file globally, outside OpenCompany). On-disk presence alone can't confirm *this* attempt wrote anything.So an incomplete login against a config left over from a previous session was reported as success.diff --git a/docs-internal/event_framework.md b/docs-internal/event_framework.mdindex 4f03eae2..fb3f03f7 100644--- a/docs-internal/event_framework.md+++ b/docs-internal/event_framework.md@@ -1,6 +1,6 @@# Event Framework (Wave 12)-Temporal-native event-routing layer for MachinaOs. Implements RFC sections+Temporal-native event-routing layer for OpenCompany. Implements RFC sections6.3 (Temporal worker contract) + 6.4 (CloudEvents broadcast contract) from[plugin_authoring_rfc.md](./ARCHIVE/plugin_authoring_rfc.md).@@ -98,7 +98,7 @@ connect** (`services/temporal/client.py:TemporalClientWrapper.connect`):|---|---|---|| `EventType` | KEYWORD | Visibility query — find consumers by CloudEvents type || `EventSource` | KEYWORD | Routing when same type arrives from multiple sources |-| `EventWorkflowId` | KEYWORD | Scope events to a MachinaOs workflow_id |+| `EventWorkflowId` | KEYWORD | Scope events to a OpenCompany workflow_id || `TriggerNodeId` | KEYWORD | Per-trigger event-history queries || `EventTriggerKind` | KEYWORD | Coarse classification (webhook / polling / …) || `EventReceivedAt` | DATETIME | Time-range queries |@@ -154,7 +154,7 @@ or hand back to the server for retry instead of being killed mid-call.Every server→FE broadcast wraps `WorkflowEvent` (CloudEvents v1.0;`services/events/envelope.py`). Spec-compliant ID, source, type, time,-plus MachinaOs extension attributes (`workflow_id`, `trigger_node_id`,+plus OpenCompany extension attributes (`workflow_id`, `trigger_node_id`,`correlation_id` — kept in snake_case per the documented internal-namingrationale at `envelope.py:4-12`).@@ -164,7 +164,7 @@ parses for spec-compliant routing + dataschema lookup.### Plugin-owned event factories-Plugin-specific events (e.g. `com.machinaos.telegram.message.received`)+Plugin-specific events (e.g. `com.opencompany.telegram.message.received`)live in `nodes/<plugin>/_events.py`. Cross-cutting factories(`credential`, `oauth_completed`, `agent_progress`, `task_completed`,`workflow_lifecycle`, `deployment_snapshot`, `team_event`,@@ -200,7 +200,7 @@ inspection surface:This is why Wave 12 explicitly does NOT add a custom `event_dlq` SQLModel table. Doing so would reinvent the Temporal primitives the rest of the framework was built AROUND, not against. The pre-Temporal `services/execution/models.py::DLQEntry` for the legacy `WorkflowExecutor` is a separate concern and stays where it is.-Wave 12 D3 (pending) adds thin WS handlers that wrap these Visibility queries for the FE admin surface, so operators can inspect failed runs without leaving the MachinaOs UI.+Wave 12 D3 (pending) adds thin WS handlers that wrap these Visibility queries for the FE admin surface, so operators can inspect failed runs without leaving the OpenCompany UI.## Wave 13 fixes@@ -208,12 +208,12 @@ Six load-bearing corrections to the Wave 12 canary path. All locked by regressio### 1. `EventType` Search Attribute must equal the producer's `event.type`-Pre-fix the deployment manager registered the **legacy snake_case** `event_type` from `TriggerConfig` (e.g. `"chat_message_received"`) as the `EventType` SA on every canary listener. But `dispatch.emit` Visibility-queries by `event.type` from the CloudEvents envelope (reverse-DNS, e.g. `"com.machinaos.chat.message.received"`). The strings never matched — the listener started OK, never reacted to incoming events.+Pre-fix the deployment manager registered the **legacy snake_case** `event_type` from `TriggerConfig` (e.g. `"chat_message_received"`) as the `EventType` SA on every canary listener. But `dispatch.emit` Visibility-queries by `event.type` from the CloudEvents envelope (reverse-DNS, e.g. `"com.opencompany.chat.message.received"`). The strings never matched — the listener started OK, never reacted to incoming events.Fix:- `register_canary_trigger_type(node_type, cloudevent_type)` now requires the CloudEvents type as a second arg ([canary_registry.py](../server/services/deployment/canary_registry.py)). Re-registering with a diverging `cloudevent_type` raises `ValueError` so plugin upgrades that change the envelope shape surface loudly.- `cloudevent_type_for(node_type)` lookup, used by `DeploymentManager._start_canary_listener` for the `EventType` SA value (was `config.event_type`).-- `WorkflowEvent.task_completed` factory unified to single type `com.machinaos.agent.task.completed` (was `.succeeded` / `.failed` split — broke single-SA listener matching).+- `WorkflowEvent.task_completed` factory unified to single type `com.opencompany.agent.task.completed` (was `.succeeded` / `.failed` split — broke single-SA listener matching).Locked by `TestCloudEventTypeMatchesSearchAttribute` in [`test_canary_registry.py`](../server/tests/test_canary_registry.py).diff --git a/docs-internal/event_waiter_system.md b/docs-internal/event_waiter_system.mdindex 8126fe6d..68d34ed3 100644--- a/docs-internal/event_waiter_system.md+++ b/docs-internal/event_waiter_system.md@@ -3,7 +3,7 @@> **⚠️ Pre-Wave-11 — historical reference only.**> Node authoring now happens on the backend: each node is a Python plugin under `server/nodes/<category>/<node>.py` that emits a `NodeSpec`. The frontend reads specs via [client/src/lib/nodeSpec.ts](../client/src/lib/nodeSpec.ts) + [adapters/nodeSpecToDescription.ts](../client/src/adapters/nodeSpecToDescription.ts). See [plugin_system.md](./plugin_system.md) and [server/nodes/README.md](../server/nodes/README.md) for the current model. The snippets below that reference `client/src/nodeDefinitions/*` are kept for historical context.-Trigger nodes in MachinaOS suspend workflow execution until an external event arrives (WhatsApp message, webhook request, Telegram message, chat input, delegated task completion, etc.). The Event Waiter system is the in-memory (`asyncio.Future`) primitive that backs push-based triggers on the canvas-Run path. Deployed triggers ride the Temporal-durable canary path (`services/events/dispatch.py` → `TriggerListenerWorkflow` / `PollingTriggerWorkflow`) instead; the Redis-Streams backend that previously offered cross-restart waiter persistence was retired in Wave 15.3 because Temporal owns durability now.+Trigger nodes in OpenCompany suspend workflow execution until an external event arrives (WhatsApp message, webhook request, Telegram message, chat input, delegated task completion, etc.). The Event Waiter system is the in-memory (`asyncio.Future`) primitive that backs push-based triggers on the canvas-Run path. Deployed triggers ride the Temporal-durable canary path (`services/events/dispatch.py` → `TriggerListenerWorkflow` / `PollingTriggerWorkflow`) instead; the Redis-Streams backend that previously offered cross-restart waiter persistence was retired in Wave 15.3 because Temporal owns durability now.Source file: `server/services/event_waiter.py`diff --git a/docs-internal/frontend_architecture.md b/docs-internal/frontend_architecture.mdindex eb7a5cdf..d5fe75fa 100644--- a/docs-internal/frontend_architecture.md+++ b/docs-internal/frontend_architecture.md@@ -284,7 +284,7 @@ All under [components/ui/](../client/src/components/ui/). Editable — add varia| Toast | `Sonner` `<Toaster />` | Patched for our ThemeContext |**Rules for adding primitives:**-- Always use the CLI: `MACHINAOS_INSTALLING=true npx shadcn@latest add <name>` from `client/` (the env var suppresses the project's recursive postinstall hook).+- Always use the CLI: `OPENCOMPANY_INSTALLING=true npx shadcn@latest add <name>` from `client/` (the env var suppresses the project's recursive postinstall hook).- New variants go inside the generated file (we own it).- Don't wrap primitives in `<Stack>`/`<Inline>`/`<Text>`/`<Heading>`. Use raw Tailwind classes. The Tailwind utility API IS the design system for layout/typography.@@ -502,9 +502,9 @@ pnpm exec tsc --noEmit # Typecheck**Adding shadcn components:**```bashcd client-MACHINAOS_INSTALLING=true npx shadcn@latest add <name>+OPENCOMPANY_INSTALLING=true npx shadcn@latest add <name>```-The `MACHINAOS_INSTALLING=true` env var suppresses the recursive project postinstall hook during shadcn's internal `pnpm install`. Without it the hook's `machina build` run fails and shadcn aborts before writing the component file.+The `OPENCOMPANY_INSTALLING=true` env var suppresses the recursive project postinstall hook during shadcn's internal `pnpm install`. Without it the hook's `company build` run fails and shadcn aborts before writing the component file.## Migration history (for context)diff --git a/docs-internal/gcp_vm_deploy_runbook.md b/docs-internal/gcp_vm_deploy_runbook.mdindex 9cdb83ee..a6582659 100644--- a/docs-internal/gcp_vm_deploy_runbook.md+++ b/docs-internal/gcp_vm_deploy_runbook.md@@ -1,12 +1,12 @@# GCP VM Deploy Runbook (released npm package, manual gcloud + cf)-Step-by-step runbook for deploying the **released** `machinaos` npm package on a fresh+Step-by-step runbook for deploying the **released** `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.-This is the manual path — it does NOT use `machina deploy` / Terraform+This is the manual path — it does NOT use `company deploy` / Terraform(`cli/commands/deploy/`, `cli/terraform/`). It was derived from a real deployment to-`demo.zeenie.xyz` (June 2026, [email protected]) and encodes every pitfall hit on the way.+`demo.zeenie.xyz` (June 2026, [email protected]) and encodes every pitfall hit on the way.## Parameters@@ -17,7 +17,7 @@ Decide these up front; they appear in commands below as `<PLACEHOLDERS>`.| `<PROJECT>` | `zeenie` | GCP project id (`gcloud config get-value project`) || `<VM_NAME>` | `demo` | Instance name || `<REGION>` / `<ZONE>` | `asia-south1` / `asia-south1-a` | Mumbai. Any region works |-| `<IP_NAME>` | `machinaos-india-ip` | Name for the reserved static IP |+| `<IP_NAME>` | `opencompany-india-ip` | Name for the reserved static IP || `<DOMAIN>` | `demo.zeenie.xyz` | Must be a subdomain of a zone in the Cloudflare account || `<SUBDOMAIN>` | `demo` | The record name within the zone || `<OWNER_EMAIL>` | `[email protected]` | Login email for the owner account |@@ -46,13 +46,13 @@ 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 machinaos` exits 1+ Debian 12 ships 3.11 and `npm install -g 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 `machina serve`.** Released CLI commands are only+2. **The released package has no `company serve`.** Released CLI commands are only`start | dev | stop | build | clean | doctor | help | version`. The single-port`serve` command and `SERVE_STATIC_CLIENT` backend support exist only in unreleased- source. Production shape for the release is the README's `machina start`+ source. Production shape for the release is the README's `company start`(static client on **:3000**, backend uvicorn on **:3010**) plus an nginx reverseproxy on :80/:443.3. **`MACHINA_OWNER_*` env seeding is NOT honored by the release.** Setting@@ -93,18 +93,18 @@ Save the returned address as `<STATIC_IP>`.## Step 2 — Author the startup script (locally)-Write `machinaos-startup.sh` with the placeholders filled in. This is the complete,+Write `opencompany-startup.sh` with the placeholders filled in. This is the complete,corrected, idempotent script (toolchain + release install + env + nginx with TLS +systemd):```bash#!/bin/bash-# MachinaOs VM startup script: released npm package via `machina start`,+# OpenCompany VM startup script: released npm package via `company start`,# nginx on :80/:443 (self-signed TLS for Cloudflare Full mode), login gate on.set -euo pipefailexport DEBIAN_FRONTEND=noninteractive-echo "[machinaos] installing toolchain..."+echo "[opencompany] installing toolchain..."apt-get updateapt-get install -y curl ca-certificates git build-essential pkg-config libffi-dev libssl-dev nginxcurl -fsSL https://deb.nodesource.com/setup_22.x | bash -@@ -112,14 +112,14 @@ apt-get install -y nodejscorepack enable || truecurl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/usr/local/bin sh-echo "[machinaos] installing MachinaOs released package..."-npm install -g machinaos@latest+echo "[opencompany] installing OpenCompany released package..."+npm install -g opencompany@latest-echo "[machinaos] writing login-gate env..."-mkdir -p /etc/machinaos-cat > /etc/machinaos/machina.env <<'MACHINA_ENV_EOF'+echo "[opencompany] writing login-gate env..."+mkdir -p /etc/opencompany+cat > /etc/opencompany/opencompany.env <<'OPENCOMPANY_ENV_EOF'HOST=0.0.0.0-DATA_DIR=/var/lib/machinaos+DATA_DIR=/var/lib/opencompanyWORKSPACE_BASE_DIR=workspacesVITE_AUTH_ENABLED=trueAUTH_MODE=single@@ -131,11 +131,11 @@ LOG_FORMAT=textJWT_SECRET_KEY=<JWT_KEY>SECRET_KEY=<SECRET_KEY>API_KEY_ENCRYPTION_KEY=<ENC_KEY>-MACHINA_ENV_EOF-chmod 600 /etc/machinaos/machina.env-mkdir -p /var/lib/machinaos+OPENCOMPANY_ENV_EOF+chmod 600 /etc/opencompany/opencompany.env+mkdir -p /var/lib/opencompany-echo "[machinaos] self-signed TLS cert (Cloudflare Full mode accepts it)..."+echo "[opencompany] self-signed TLS cert (Cloudflare Full mode accepts it)..."mkdir -p /etc/nginx/certsif [ ! -f /etc/nginx/certs/origin.crt ]; thenopenssl req -x509 -nodes -newkey rsa:2048 -days 3650 \@@ -143,8 +143,8 @@ if [ ! -f /etc/nginx/certs/origin.crt ]; then-subj "/CN=<DOMAIN>"fi-echo "[machinaos] nginx reverse proxy (SPA :3000, backend :3010)..."-cat > /etc/nginx/sites-available/machinaos <<'NGINX_EOF'+echo "[opencompany] nginx reverse proxy (SPA :3000, backend :3010)..."+cat > /etc/nginx/sites-available/opencompany <<'NGINX_EOF'server {listen 80 default_server;listen 443 ssl default_server;@@ -186,24 +186,24 @@ server {}NGINX_EOFrm -f /etc/nginx/sites-enabled/default-ln -sf /etc/nginx/sites-available/machinaos /etc/nginx/sites-enabled/machinaos+ln -sf /etc/nginx/sites-available/opencompany /etc/nginx/sites-enabled/opencompanynginx -tsystemctl enable --now nginxsystemctl reload nginx-echo "[machinaos] installing systemd service (README usage: machina start)..."-MACHINA_BIN=$(command -v machina)-cat > /etc/systemd/system/machinaos.service <<SERVICE_EOF+echo "[opencompany] installing systemd service (README usage: company start)..."+OPENCOMPANY_BIN=$(command -v company)+cat > /etc/systemd/system/opencompany.service <<SERVICE_EOF[Unit]-Description=MachinaOs (released, machina start)+Description=OpenCompany (released, company start)After=network-online.targetWants=network-online.target[Service]Type=simple-EnvironmentFile=/etc/machinaos/machina.env-WorkingDirectory=/usr/lib/node_modules/machinaos-ExecStart=$MACHINA_BIN start+EnvironmentFile=/etc/opencompany/opencompany.env+WorkingDirectory=/usr/lib/node_modules/opencompany+ExecStart=$OPENCOMPANY_BIN startRestart=on-failureRestartSec=5TimeoutStopSec=30@@ -213,24 +213,24 @@ WantedBy=multi-user.targetSERVICE_EOFsystemctl daemon-reload-systemctl enable --now machinaos-systemctl restart machinaos-echo "[machinaos] done."+systemctl enable --now opencompany+systemctl restart opencompany+echo "[opencompany] done."```On Windows, force LF endings after writing:```powershell-$p = "$env:TEMP\machinaos-startup.sh"+$p = "$env:TEMP\opencompany-startup.sh"[IO.File]::WriteAllText($p, [IO.File]::ReadAllText($p).Replace("`r`n","`n"))```## Step 3 — Firewall + VM```bash-gcloud compute firewall-rules create machinaos-allow-http \+gcloud compute firewall-rules create opencompany-allow-http \--project=<PROJECT> --direction=INGRESS --action=ALLOW \- --rules=tcp:80,tcp:443 --source-ranges=0.0.0.0/0 --target-tags=machinaos+ --rules=tcp:80,tcp:443 --source-ranges=0.0.0.0/0 --target-tags=opencompany``````bash@@ -239,13 +239,13 @@ gcloud compute instances create <VM_NAME> \--machine-type=e2-standard-2 \--image-family=ubuntu-2404-lts-amd64 --image-project=ubuntu-os-cloud \--boot-disk-size=30GB --boot-disk-type=pd-balanced \- --tags=machinaos --address=<STATIC_IP> \- --metadata-from-file=startup-script=machinaos-startup.sh+ --tags=opencompany --address=<STATIC_IP> \+ --metadata-from-file=startup-script=opencompany-startup.sh```Notes: `e2-standard-2` (2 vCPU / 8 GB) is comfortable; the old `e2-micro` is too small.Updating an existing firewall rule uses `--rules=` (not `--allow=`):-`gcloud compute firewall-rules update machinaos-allow-http --rules="tcp:80,tcp:443"`.+`gcloud compute firewall-rules update opencompany-allow-http --rules="tcp:80,tcp:443"`.## Step 4 — DNS via cf CLI@@ -257,7 +257,7 @@ cf zones list # find the zone; grab account id from thecf context set account-id <ACCOUNT_ID>cf context set zone <ZONE_DOMAIN> # e.g. zeenie.xyzcf dns records list # check the name is free-cf dns records create --body '{"type":"A","name":"<SUBDOMAIN>","content":"<STATIC_IP>","proxied":true,"ttl":1,"comment":"MachinaOs VM <ZONE> (gcloud, machinaos@latest)"}'+cf dns records create --body '{"type":"A","name":"<SUBDOMAIN>","content":"<STATIC_IP>","proxied":true,"ttl":1,"comment":"OpenCompany VM <ZONE> (gcloud, opencompany@latest)"}'```Delete a record by id: `cf dns records delete <RECORD_ID>`.@@ -278,9 +278,9 @@ If it never comes up, debug in this order:```bash# startup script progress / errors:-gcloud compute instances get-serial-port-output <VM_NAME> --zone=<ZONE> | grep -E "machinaos|error"+gcloud compute instances get-serial-port-output <VM_NAME> --zone=<ZONE> | grep -E "opencompany|error"# service state:-gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="systemctl is-active machinaos nginx; sudo journalctl -u machinaos -n 40 --no-pager"+gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="systemctl is-active opencompany nginx; sudo journalctl -u opencompany -n 40 --no-pager"```## Step 6 — Register the owner (this IS the login setup)@@ -308,7 +308,7 @@ All of these must pass before declaring success:# 1. health via domain (Cloudflare -> origin TLS):curl -s https://<DOMAIN>/health # 200, {"status":"healthy",...}# 2. SPA serves:-curl -s https://<DOMAIN>/ | grep -o "<title>[^<]*</title>" # <title>MachinaOS</title>+curl -s https://<DOMAIN>/ | grep -o "<title>[^<]*</title>" # <title>OpenCompany</title># 3. auth gate on, registration closed:curl -s https://<DOMAIN>/api/auth/status# expect: {"auth_enabled":true,"auth_mode":"single","can_register":false,...}@@ -341,7 +341,7 @@ Origin CA cert.```bashgcloud compute instances delete <VM_NAME> --zone=<ZONE> --project=<PROJECT> --quietgcloud compute addresses delete <IP_NAME> --region=<REGION> --project=<PROJECT> --quiet-gcloud compute firewall-rules delete machinaos-allow-http --project=<PROJECT> --quiet+gcloud compute firewall-rules delete opencompany-allow-http --project=<PROJECT> --quietcf dns records list # find the record idcf dns records delete <RECORD_ID>```@@ -350,13 +350,13 @@ cf dns records delete <RECORD_ID>```bash# logs:-gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo journalctl -u machinaos -f"+gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo journalctl -u opencompany -f"# restart app:-gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo systemctl restart machinaos"+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 machinaos@latest && sudo systemctl restart machinaos"+gcloud compute ssh <VM_NAME> --zone=<ZONE> --quiet --command="sudo npm install -g opencompany@latest && sudo systemctl restart opencompany"# env (secrets live here):-# /etc/machinaos/machina.env (chmod 600; service reads it via EnvironmentFile)+# /etc/opencompany/opencompany.env (chmod 600; service reads it via EnvironmentFile)# data:-# /var/lib/machinaos (DATA_DIR: DBs, workspaces, packages)+# /var/lib/opencompany (DATA_DIR: DBs, workspaces, packages)```diff --git a/docs-internal/github_service.md b/docs-internal/github_service.mdindex 79811b56..66bff6e9 100644--- a/docs-internal/github_service.md+++ b/docs-internal/github_service.md@@ -9,7 +9,7 @@ a `custom` passthrough covering the entire gh surface (`gh api`, runs,releases, gists, repo administration).**Auth model: the gh CLI owns its own auth** — the Stripe CLI pattern,-strictly. MachinaOs never stores, reads, or injects a token:+strictly. OpenCompany never stores, reads, or injects a token:- `gh auth login` puts the token in the **system credential store**;ops read it from there (or from an ambient `GH_TOKEN` env var, perdiff --git a/docs-internal/litellm_router_migration_rfc.md b/docs-internal/litellm_router_migration_rfc.mdindex 2f24c421..3dd21bbc 100644--- a/docs-internal/litellm_router_migration_rfc.md+++ b/docs-internal/litellm_router_migration_rfc.md@@ -6,11 +6,11 @@## 1. Abstract-MachinaOs maintains a fully custom multi-provider LLM layer: a `ChatUnifier` facade over+OpenCompany maintains a fully custom multi-provider LLM layer: a `ChatUnifier` facade over12 hand-written provider integrations, plus a parallel LangChain path for the agent loop.This RFC proposes replacing the provider *internals* with [LiteLLM](https://github.com/BerriAI/litellm)(`litellm.acompletion`, in-process, exact-pinned, lazy-imported) while keeping every-architectural seam MachinaOs actually relies on: the `ChatUnifier` facade, the+architectural seam OpenCompany actually relies on: the `ChatUnifier` facade, the`NodeUserError` error contract, `llm_defaults.json` as the quirk SSOT, ourtemperature/max-tokens resolution, `fetch_models`, and the pricing/model-registry/compaction services.@@ -148,7 +148,7 @@ These matter because parity must be defined against reality, not aspiration:LiteLLM removes the implementation row entirely and replaces the hand-curatedtoken-limit/pricing research with its maintained metadata. The node package and-detection rows remain MachinaOs product surface — migration cuts per-provider cost from+detection rows remain OpenCompany product surface — migration cuts per-provider cost from"~250 LOC + research" to "config-only", not to zero.### 3.2 Drift risk@@ -195,7 +195,7 @@ Three usage modes:3. **Proxy server (AI Gateway)** — standalone OpenAI-compatible HTTP service withvirtual keys, budgets, spend tracking, admin UI; database-backed.-Current: **v1.90.0** (2026-06-26), weekly-ish release cadence, Python >=3.9 (MachinaOs+Current: **v1.90.0** (2026-06-26), weekly-ish release cadence, Python >=3.9 (OpenCompanyserver pins >=3.11,<3.13 — compatible). License: MIT core with a separately-licensed`enterprise/` directory (bundled in the wheel; never imported by us — dead weight, notlicense risk).@@ -221,17 +221,17 @@ terminator for auth/rate-limiting/callbacks in proxy mode.As of 2026-07-02 the main branch is ~85.9% Python / 0.4% Rust — **the Rust router is notshipped yet**. The Rust gains land primarily in the *proxy server*; the in-process SDKcall path this RFC adopts is the least-changed, stability-promised surface. Adopting now-positions MachinaOs to inherit the Rust work without a second migration.+positions OpenCompany to inherit the Rust work without a second migration.Rust-native gateway alternatives considered and rejected (all are sidecars, notin-process Python SDKs): TensorZero (pure Rust, <1ms P99), Helicone AI Gateway (Rust),Bifrost (Go, ~11us overhead). See section 5.-### 4.3 Provider coverage for MachinaOs's 12 providers+### 4.3 Provider coverage for OpenCompany's 12 providersAll 12 are supported. The prefix mapping this RFC adds to `llm_defaults.json`:-| MachinaOs provider | `litellm_prefix` | api_base sent |+| OpenCompany provider | `litellm_prefix` | api_base sent ||---|---|---|| openai | `openai` | only if proxy_url set || anthropic | `anthropic` | only if proxy_url set |@@ -285,7 +285,7 @@ untouched.**Adopt LiteLLM now, in-process, as `litellm.acompletion` behind the retained`ChatUnifier` facade — chat path first (Stage A), agent loop second (Stage B).**-Scored against MachinaOs's constraints (local-first, single-user, Windows-primary,+Scored against OpenCompany's constraints (local-first, single-user, Windows-primary,2.90s cold-start budget, one API key per provider):| Option | Effort | Runtime perf | Cold-start | Maintenance saved | Features | Risk | Verdict |@@ -299,9 +299,9 @@ Scored against MachinaOs's constraints (local-first, single-user, Windows-primarWhy not the Router class (c), specifically:-- Router's core value is load balancing across multiple deployments per model — MachinaOs+- Router's core value is load balancing across multiple deployments per model — OpenCompanyhas one key per provider; the machinery is structurally unused.-- Router requires a pre-declared `model_list`; MachinaOs model names are dynamic (users+- Router requires a pre-declared `model_list`; OpenCompany model names are dynamic (userspick anything `fetch_models` returns — OpenRouter alone returns hundreds). Wildcarddeployments would duplicate `llm_defaults.json` as a second config SSOT.- Context-window fallback silently switches models under a result payload that reportsdiff --git a/docs-internal/memory_compaction.md b/docs-internal/memory_compaction.mdindex 391d2f56..3836951f 100644--- a/docs-internal/memory_compaction.md+++ b/docs-internal/memory_compaction.md@@ -4,7 +4,7 @@## Overview-The compaction service enables automatic memory compaction, token tracking, and **cost calculation** for MachinaOs specialized agents. It uses a hybrid approach leveraging native provider APIs (Anthropic, OpenAI) when available, with comprehensive token and cost tracking for all providers.+The compaction service enables automatic memory compaction, token tracking, and **cost calculation** for OpenCompany specialized agents. It uses a hybrid approach leveraging native provider APIs (Anthropic, OpenAI) when available, with comprehensive token and cost tracking for all providers.**Inspired by:** Claude Code's compaction pattern from the Anthropic SDK**Threshold Strategy:** per-session `custom_threshold` > per-user `UserSettings.compaction_ratio` > env `Settings.compaction_ratio` (default **0.8** = 80% of context window) > JSON `llm_defaults.json:agent.compaction.ratio` fallbackdiff --git a/docs-internal/memory_lifecycle.md b/docs-internal/memory_lifecycle.mdindex 66aa5528..f722fb2f 100644--- a/docs-internal/memory_lifecycle.md+++ b/docs-internal/memory_lifecycle.md@@ -1,6 +1,6 @@# Memory Lifecycle-Canonical home for how conversation memory is loaded, appended, trimmed, archived, cleared, and resumed across every MachinaOs agent. Replaces the partial explanations previously scattered across `agent_architecture.md`, `cli_agent_framework.md`, `rlm_service.md`, and `memory_compaction.md`.+Canonical home for how conversation memory is loaded, appended, trimmed, archived, cleared, and resumed across every OpenCompany agent. Replaces the partial explanations previously scattered across `agent_architecture.md`, `cli_agent_framework.md`, `rlm_service.md`, and `memory_compaction.md`.> **Related docs:**> - [memory_compaction.md](./memory_compaction.md) — `CompactionService`, token thresholds, pricingdiff --git a/docs-internal/native_llm_sdk.md b/docs-internal/native_llm_sdk.mdindex 5df3c19c..a4a35087 100644--- a/docs-internal/native_llm_sdk.md+++ b/docs-internal/native_llm_sdk.md@@ -2,7 +2,7 @@> **Authoring model (post-Wave-11):** each chat-model node is a self-contained Python plugin folder under `server/nodes/model/<provider>_chat_model/` that emits a `NodeSpec`. The frontend reads specs via [client/src/lib/nodeSpec.ts](../client/src/lib/nodeSpec.ts) + [adapters/nodeSpecToDescription.ts](../client/src/adapters/nodeSpecToDescription.ts) and renders through `SquareNode` with zero TS edits. See [plugin_system.md](./plugin_system.md) and [server/nodes/README.md](../server/nodes/README.md) for the plugin model, and "Adding a New Provider" below for the chat-model recipe.-MachinaOS uses a hybrid LLM architecture: a native SDK layer in `server/services/llm/` for direct chat completions and model fetching, and a LangChain-backed agent loop in `server/services/ai.py` (the plain `_run_agent_loop` async function) for agent tool-calling. This document describes the native layer, its design, and how both paths coexist.+OpenCompany uses a hybrid LLM architecture: a native SDK layer in `server/services/llm/` for direct chat completions and model fetching, and a LangChain-backed agent loop in `server/services/ai.py` (the plain `_run_agent_loop` async function) for agent tool-calling. This document describes the native layer, its design, and how both paths coexist.## Why a Native Layer@@ -345,7 +345,7 @@ AI providers support optional proxy-based authentication — requests route thro1. User configures a proxy URL in the Credentials Modal (e.g., `http://localhost:11434`).2. Requests route through the proxy instead of directly to the provider API.3. Proxy handles authentication (token set to `"ollama"` automatically).-4. No API key storage needed in MachinaOs — auth delegated to proxy.+4. No API key storage needed in OpenCompany — auth delegated to proxy.**Configuration:** proxy URLs are stored in the credentials DB under the `{provider}_proxy` pattern (e.g., `anthropic_proxy`, `openai_proxy`). Falls back to direct API key if no proxy configured. This is the SAME mechanism the native Ollama / LM Studio path uses (see "Local LLM Providers" above) — the validator persists the user's server URL under `{provider}_proxy`, and at runtime it carries into `OpenAIProvider`'s `base_url`.diff --git a/docs-internal/new_service_integration.md b/docs-internal/new_service_integration.mdindex c28fd9d3..0843c377 100644--- a/docs-internal/new_service_integration.md+++ b/docs-internal/new_service_integration.md@@ -11,7 +11,7 @@> - Handler registration in `server/services/node_executor.py` → automatic via `BaseNode.__init_subclass__`; no manual registry entry.> `server/services/handlers/` now contains only cross-cutting orchestration — `tools.py`, `triggers.py`, `todo.py`.-This guide provides a comprehensive walkthrough for integrating new external services (like Google Workspace, Slack, Notion, etc.) into MachinaOs. It covers OAuth authentication, database models, API handlers, frontend nodes, and AI Agent tool integration.+This guide provides a comprehensive walkthrough for integrating new external services (like Google Workspace, Slack, Notion, etc.) into OpenCompany. It covers OAuth authentication, database models, API handlers, frontend nodes, and AI Agent tool integration.> **Backend-first is canonical (post-Wave-6 / Wave-11).** Parameter schemas, validation, conditional visibility, dynamic-option dispatch, icons, and colors all live on the backend. The legacy frontend `nodeDefinitions/*.ts` files no longer exist. Follow the [canonical plugin recipe](./node_creation.md) — every node is one Python file (or self-contained folder) under `server/nodes/<group>/<plugin>/`. The frontend reads `NodeSpec` via [`client/src/lib/nodeSpec.ts`](../client/src/lib/nodeSpec.ts) and adapts via [`adapters/nodeSpecToDescription.ts`](../client/src/adapters/nodeSpecToDescription.ts). Credential icons are also backend-served via `GET /api/schemas/credentials/{provider}/icon` (F7); plugin icons via `GET /api/schemas/nodes/{type}/icon` (Phase 6 / RFC §6.5).@@ -836,7 +836,7 @@ name: {service}-skilldescription: Brief description of capabilitiesallowed-tools: tool1 tool2 tool3metadata:- author: machina+ author: opencompanyversion: "1.0"category: productivityicon: "icon"diff --git a/docs-internal/node-logic-flows/_AGENT_BRIEF.md b/docs-internal/node-logic-flows/_AGENT_BRIEF.mdindex ff792217..a62a8620 100644--- a/docs-internal/node-logic-flows/_AGENT_BRIEF.md+++ b/docs-internal/node-logic-flows/_AGENT_BRIEF.md@@ -1,6 +1,6 @@# Agent Brief - Per-Category Rollout-You are documenting and writing contract tests for one category of MachinaOs+You are documenting and writing contract tests for one category of OpenCompanyworkflow nodes. Phase 1 (test infrastructure) and Phase 2 (search-node pilot)are already done. Your job is to repeat the pilot pattern for your category.diff --git a/docs-internal/node-logic-flows/ai_tools/agentBuilder.md b/docs-internal/node-logic-flows/ai_tools/agentBuilder.mdindex 65b15e2a..c7006b98 100644--- a/docs-internal/node-logic-flows/ai_tools/agentBuilder.md+++ b/docs-internal/node-logic-flows/ai_tools/agentBuilder.md@@ -105,7 +105,7 @@ flowchart TD## Side Effects- **Database writes**: `_persist_canvas_mutation` applies `add_node` / `add_edge` / `set_node_parameters` ops to `workflow.data` via `database.get_workflow` + `database.save_workflow` (adopts the BE-minted `minted_id` so FE/BE node ids align). `create_workflow` (when enabled) persists a fresh workflow row.-- **Broadcasts**: `broadcast_workflow_ops` (in `_events.py`) emits a flat `workflow_ops_apply` WS frame consumed by the frontend `useWorkflowOpsListener` hook. NOT a `dispatch.emit` event (no Temporal/event_waiter consumer for canvas mutations). A `WorkflowEvent` envelope (`com.machinaos.workflow.ops.applied`) is constructed for parity but not put on the wire today.+- **Broadcasts**: `broadcast_workflow_ops` (in `_events.py`) emits a flat `workflow_ops_apply` WS frame consumed by the frontend `useWorkflowOpsListener` hook. NOT a `dispatch.emit` event (no Temporal/event_waiter consumer for canvas mutations). A `WorkflowEvent` envelope (`com.opencompany.workflow.ops.applied`) is constructed for parity but not put on the wire today.- **External API calls**: none.- **File I/O**: reads `server/skills/**` to validate skill folders (`_skill_folder_exists`) and catalogue skills.- **Subprocess**: none.diff --git a/docs-internal/node-logic-flows/ai_tools/writeTodos.md b/docs-internal/node-logic-flows/ai_tools/writeTodos.mdindex da1ec5a1..0a266754 100644--- a/docs-internal/node-logic-flows/ai_tools/writeTodos.md+++ b/docs-internal/node-logic-flows/ai_tools/writeTodos.md@@ -126,7 +126,7 @@ flowchart TD{"phase": "todo_update", "todos": [...]}, workflow_id=...)` — drives thecanvas glow; only when a broadcaster is present on `ctx.raw`.- `dispatch_todos_updated(...)` — typed `todos_updated` CloudEvent- (`com.machinaos.todos.updated`) via `services.events.dispatch.emit`+ (`com.opencompany.todos.updated`) via `services.events.dispatch.emit`(`server/nodes/tool/write_todos/_events.py`), refreshing the open CurrentTodos panel's `['todos', session_key]` query. Fires unconditionally.- **External API calls**: none.diff --git a/docs-internal/node-logic-flows/chat_utility/chatSend.md b/docs-internal/node-logic-flows/chat_utility/chatSend.mdindex d4447582..deecd748 100644--- a/docs-internal/node-logic-flows/chat_utility/chatSend.md+++ b/docs-internal/node-logic-flows/chat_utility/chatSend.md@@ -82,7 +82,7 @@ flowchart TD- **Database writes**: none.- **Broadcasts**: none from this handler (the chat backend may broadcast on its- side but that is external to MachinaOs).+ side but that is external to OpenCompany).- **External API calls**: JSON-RPC 2.0 WebSocket to `ws://<host>:<port>` via`services.chat_client.send_chat_message`.- **File I/O**: none.@@ -106,7 +106,7 @@ flowchart TDor out-of-range value fails Param validation before the op runs.- Templates in `content` (e.g. `{{aiAgent.response}}`) are resolved upstream by`ParameterResolver`; this handler never sees unresolved `{{...}}`.-- `session_id` here is the chat-backend session, not the MachinaOs workflow+- `session_id` here is the chat-backend session, not the OpenCompany workflow`session_id` from `context`. They are unrelated.## Relateddiff --git a/docs-internal/node-logic-flows/email/emailReceive.md b/docs-internal/node-logic-flows/email/emailReceive.mdindex 95b98ba8..63873bb0 100644--- a/docs-internal/node-logic-flows/email/emailReceive.md+++ b/docs-internal/node-logic-flows/email/emailReceive.md@@ -105,9 +105,9 @@ flowchart TDstarts, with `workflow_id` from context.- **Event bus (canary path)**: `dispatch_email_received(email_data)` ->`services.events.dispatch.emit` with a CloudEvents `WorkflowEvent`- (`type = "com.machinaos.email.message.received"`, `subject = message_id`,+ (`type = "com.opencompany.email.message.received"`, `subject = message_id`,outer wire-routing key `email_received`). `emailReceive` is canary-registered- via `register_canary_trigger_type("emailReceive", "com.machinaos.email.message.received")`+ via `register_canary_trigger_type("emailReceive", "com.opencompany.email.message.received")`in [`nodes/email/__init__.py`](../../../server/nodes/email/__init__.py), so thedeployment manager skips the legacy `setup_event_trigger` and a Temporal-durable`TriggerListenerWorkflow` consumes the event; the same call also broadcasts thediff --git a/docs-internal/node-logic-flows/specialized_agents/claudeCodeAgent.md b/docs-internal/node-logic-flows/specialized_agents/claudeCodeAgent.mdindex 7547e0f5..5bd7d935 100644--- a/docs-internal/node-logic-flows/specialized_agents/claudeCodeAgent.md+++ b/docs-internal/node-logic-flows/specialized_agents/claudeCodeAgent.md@@ -29,7 +29,7 @@ Standard `std_agent_handles()` topology (same as the generic agents).| `input-main` | Auto-prompt fallback (reads `source.message / text / content / str`) || `input-skill` | Connected skill names collected; SKILL.md trees materialised under `<workspace>/.claude/skills/` and exposed to the CLI (not injected into a system prompt) || `input-memory` | When wired, sets `continue_session=True` so claude emits `--continue` and resumes its on-disk session under the stable cwd |-| `input-tools` | Connected tool nodes exposed to the CLI as `mcp__machinaos__<type>` MCP tools |+| `input-tools` | Connected tool nodes exposed to the CLI as `mcp__opencompany__<type>` MCP tools || `input-task` | Collected by the edge-walker; `task_data` is unpacked but the 5th element is ignored (`_`) here |## Parameters@@ -148,13 +148,13 @@ flowchart TD## External Dependencies-- **Binaries**: `@anthropic-ai/claude-code`, MachinaOs-managed — auto-installed on first use into the shared npm tree at `<DATA_DIR>/packages/` (binary at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`); requires `npm` on PATH.+- **Binaries**: `@anthropic-ai/claude-code`, OpenCompany-managed — auto-installed on first use into the shared npm tree at `<DATA_DIR>/packages/` (binary at `<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`); requires `npm` on PATH.- **Python packages**: standard library + the `services/cli_agent/` framework(FastMCP bridge, session pool).- **Credentials**: Claude Code handles its own authentication via- `CLAUDE_CONFIG_DIR=<DATA_DIR>/claude/` (= `~/.machina/claude/` by+ `CLAUDE_CONFIG_DIR=<DATA_DIR>/claude/` (= `~/.opencompany/claude/` bydefault; see [Claude OAuth](../../claude_code_agent_architecture.md));- MachinaOs does not inject an API key.+ OpenCompany does not inject an API key.## Edge cases & known limits@@ -170,7 +170,7 @@ flowchart TD`ValidationError` at the Output boundary instead of emitting anunparseable shape downstream.- **Strict tool allowlist**: `--permission-mode dontAsk` enforces- `--allowedTools` (only wired `mcp__machinaos__*` tools, conditional `Skill`,+ `--allowedTools` (only wired `mcp__opencompany__*` tools, conditional `Skill`,5 infra tools); claude's own built-in Read/Edit/Bash/etc. do NOT fireunless wired.- **Per-workflow skill isolation**: SKILL.md trees materialise under thediff --git a/docs-internal/node-logic-flows/specialized_agents/codexAgent.md b/docs-internal/node-logic-flows/specialized_agents/codexAgent.mdindex d45a6276..2db178ef 100644--- a/docs-internal/node-logic-flows/specialized_agents/codexAgent.md+++ b/docs-internal/node-logic-flows/specialized_agents/codexAgent.md@@ -13,7 +13,7 @@Runs N parallel OpenAI Codex CLI sessions over a list of `CodexTaskSpec`tasks via `AICliService.run_batch("codex", ...)`. Sandbox-first companion to-`claude_code_agent`: the sandbox is enforced by Codex itself (not MachinaOs),+`claude_code_agent`: the sandbox is enforced by Codex itself (not OpenCompany),and each task runs in its own git worktree. Codex exposes nosession/resume/budget/turns surface — only `sandbox` + `ask_for_approval` aretask-level overrides. The common case is a single `prompt` that synthesises a@@ -123,9 +123,9 @@ flowchart TD- **Binaries**: the OpenAI Codex CLI (provider `"codex"` in the cli_agentframework).- **Python packages**: the `services/cli_agent/` framework.-- **Credentials**: Codex handles its own authentication; MachinaOs does not+- **Credentials**: Codex handles its own authentication; OpenCompany does notinject an API key here. `allowed_credentials` gates what the CLI may fetch- via the MachinaOs MCP bridge.+ via the OpenCompany MCP bridge.## Edge cases & known limitsdiff --git a/docs-internal/node-logic-flows/specialized_agents/paymentsAgent.md b/docs-internal/node-logic-flows/specialized_agents/paymentsAgent.mdindex 78c44b0b..709a374a 100644--- a/docs-internal/node-logic-flows/specialized_agents/paymentsAgent.md+++ b/docs-internal/node-logic-flows/specialized_agents/paymentsAgent.md@@ -11,7 +11,7 @@## PurposeAI agent pre-configured for payment processing and financial workflows.-No first-party payment tools ship with MachinaOs yet, so users typically+No first-party payment tools ship with OpenCompany yet, so users typicallywire `httpRequest` against a payment provider (Stripe, Razorpay) as a tool.## What is unique to this nodediff --git a/docs-internal/node-logic-flows/web_automation/apifyActor.md b/docs-internal/node-logic-flows/web_automation/apifyActor.mdindex c938f447..84aaf90c 100644--- a/docs-internal/node-logic-flows/web_automation/apifyActor.md+++ b/docs-internal/node-logic-flows/web_automation/apifyActor.md@@ -12,7 +12,7 @@Run an Apify actor (pre-built scraper / automation) via the official`apify-client` async SDK, wait for it to finish, and return the dataset-items. Used for platforms that have no first-class integration in MachinaOs+items. Used for platforms that have no first-class integration in OpenCompany(Instagram, TikTok, Twitter/X, LinkedIn, Facebook, YouTube, Google Search /Maps, website content crawlers).diff --git a/docs-internal/node-logic-flows/web_automation/browser.md b/docs-internal/node-logic-flows/web_automation/browser.mdindex 1dd9589a..93232e5e 100644--- a/docs-internal/node-logic-flows/web_automation/browser.md+++ b/docs-internal/node-logic-flows/web_automation/browser.md@@ -12,7 +12,7 @@## PurposeInteractive browser automation via the `agent-browser` CLI. The binary is a-MachinaOs-managed local install resolved by+OpenCompany-managed local install resolved by[`nodes/browser/_install.py::agent_browser_binary_path`](../../../server/nodes/browser/_install.py)(installed via `npm install agent-browser --prefix <package_dir>` on first use,same pattern as Claude Code's project-local CLI — NOT a workspace `package.json`@@ -24,7 +24,7 @@ element refs returned by snapshot -> `snapshot` again to verify.Session state (cookies, open tabs, auth) persists across sequential operationsthat share the same `session` value. If no session is provided the handler-derives `machina_<execution_id>` from the current execution context. The+derives `opencompany_<execution_id>` from the current execution context. Theexecution_id is stable for the whole run — threaded through MachinaWorkflownode contexts, AgentWorkflow tool payloads (deterministic`workflow.info().run_id` fallback), the legacy in-process tool dispatch, and@@ -67,7 +67,7 @@ Params model is `BrowserParams` (field names are snake_case). `tool_name` /| `annotate` | boolean | `false` | no | `operation=screenshot` | Passes `--annotate` || `screenshot_format` | options (Literal: png/jpeg) | `png` | no | `operation=screenshot` | Forwarded as `--screenshot-format` when not png || `screenshot_quality` | int (1-100) | `85` | no | `operation=screenshot, screenshot_format=jpeg` | Forwarded as `--screenshot-quality`, only for jpeg |-| `session` | string | `""` | no | - | Session id; if empty, handler uses `machina_<execution_id>` |+| `session` | string | `""` | no | - | Session id; if empty, handler uses `opencompany_<execution_id>` || `browser` | options (Literal) | `chrome` | no | - | `chrome` / `edge` / `chromium` / `bundled_explicit` / `custom`. Legacy/empty `bundled` silently upgraded to `chrome` at dispatch || `executable_path` | string | `""` | no | `browser=custom` | Explicit browser path when `browser=custom` || `headed` | boolean | `true` | no | - | Show browser window (false = headless `--headed` omitted) |@@ -149,7 +149,7 @@ flowchart TD- **Service missing**: `get_browser_service()` returns `None` when theagent-browser binary cannot be resolved (Node toolchain / `npm` unavailable)-> `RuntimeError("agent-browser not installed...")` -> error envelope.-- **Session resolution**: empty `session` -> `machina_<execution_id>` via the+- **Session resolution**: empty `session` -> `opencompany_<execution_id>` via thetyped `ctx.execution_id` accessor (handles present-but-None on the agenttool-dispatch path). Only the stripped value is considered empty; whitespacetriggers the fallback. The resolved session is logged in the `[Browser]`@@ -201,7 +201,7 @@ flowchart TD- **Credentials**: none.- **Services**: `BrowserService` singleton; `npm` on PATH (for first-useinstall); `agent-browser` installed under `<package_dir("browser")>/npm/`- by `nodes/browser/_install.py` (MachinaOs-managed, not a workspace dep).+ by `nodes/browser/_install.py` (OpenCompany-managed, not a workspace dep).- **Python packages**: `psutil` (via `kill_tree` for process-tree kill).- **Environment variables**: `BROWSER_MAX_INSTANCES` (concurrent session cap,default 3), `BROWSER_IDLE_TIMEOUT_MS` (daemon idle auto-shutdown in ms,diff --git a/docs-internal/node-logic-flows/whatsapp/whatsappReceive.md b/docs-internal/node-logic-flows/whatsapp/whatsappReceive.mdindex 480f81f0..ff22565a 100644--- a/docs-internal/node-logic-flows/whatsapp/whatsappReceive.md+++ b/docs-internal/node-logic-flows/whatsapp/whatsappReceive.md@@ -3,7 +3,7 @@| Field | Value ||------|-------|| **Category** | whatsapp / trigger |-| **Backend handler** | [`server/nodes/whatsapp/whatsapp_receive.py`](../../../server/nodes/whatsapp/whatsapp_receive.py) (`WhatsAppReceiveNode`, a `TriggerNode`); the filter closure is built by `build_filter()` -> [`server/nodes/whatsapp/_filters.py::build_filter`](../../../server/nodes/whatsapp/_filters.py) (self-registered into `event_waiter.FILTER_BUILDERS` as `whatsappReceive`). Canary-registered with CloudEvents type `com.machinaos.whatsapp.message.received`; deployment fires via `TriggerListenerWorkflow`. |+| **Backend handler** | [`server/nodes/whatsapp/whatsapp_receive.py`](../../../server/nodes/whatsapp/whatsapp_receive.py) (`WhatsAppReceiveNode`, a `TriggerNode`); the filter closure is built by `build_filter()` -> [`server/nodes/whatsapp/_filters.py::build_filter`](../../../server/nodes/whatsapp/_filters.py) (self-registered into `event_waiter.FILTER_BUILDERS` as `whatsappReceive`). Canary-registered with CloudEvents type `com.opencompany.whatsapp.message.received`; deployment fires via `TriggerListenerWorkflow`. || **Tests** | [`server/tests/nodes/test_whatsapp.py`](../../../server/tests/nodes/test_whatsapp.py) || **Skill (if any)** | n/a || **Dual-purpose tool** | no - pure trigger node |@@ -12,7 +12,7 @@Event-driven trigger that waits for incoming WhatsApp messages and starts aworkflow run when one matches. `whatsappReceive` is canary-registered-(CloudEvents type `com.machinaos.whatsapp.message.received`): on deployment the+(CloudEvents type `com.opencompany.whatsapp.message.received`): on deployment themanager spawns a `TriggerListenerWorkflow` per (deployment, trigger) pair whichreceives the CloudEvents envelope via Temporal Signal and spawns a child`MachinaWorkflow` per matching event. Single-node "Run" (non-deployed test)diff --git a/docs-internal/node-logic-flows/workflow_triggers/chatTrigger.md b/docs-internal/node-logic-flows/workflow_triggers/chatTrigger.mdindex 8954574d..9792500a 100644--- a/docs-internal/node-logic-flows/workflow_triggers/chatTrigger.md+++ b/docs-internal/node-logic-flows/workflow_triggers/chatTrigger.md@@ -12,7 +12,7 @@Fires when the user sends a message from the Console Panel chat tab. Theproducer [`server/nodes/trigger/chat_trigger/_events.py`](../../../server/nodes/trigger/chat_trigger/_events.py)-emits a CloudEvents `WorkflowEvent` (`type: com.machinaos.chat.message.received`)+emits a CloudEvents `WorkflowEvent` (`type: com.opencompany.chat.message.received`)via `dispatch.emit`. `chatTrigger` is canary-registered(`register_canary_trigger_type`), so `DeploymentManager` starts a`TriggerListenerWorkflow` for it; the listener receives the event via Temporal@@ -61,7 +61,7 @@ Wrapped in the standard envelope.```mermaidflowchart TD- P[chat tab sends message] --> Q[_events.py dispatch.emit<br/>WorkflowEvent com.machinaos.chat.message.received]+ P[chat tab sends message] --> Q[_events.py dispatch.emit<br/>WorkflowEvent com.opencompany.chat.message.received]Q --> R[TriggerListenerWorkflow receives via Temporal Signal]R --> S[ChatTriggerNode.build_filter:<br/>if session_id != 'default' require exact match]S -- match --> T[spawn child MachinaWorkflow<br/>trigger pre-executed with event payload]diff --git a/docs-internal/node-logic-flows/workflow_triggers/taskTrigger.md b/docs-internal/node-logic-flows/workflow_triggers/taskTrigger.mdindex c371ebb6..a7ff2dd7 100644--- a/docs-internal/node-logic-flows/workflow_triggers/taskTrigger.md+++ b/docs-internal/node-logic-flows/workflow_triggers/taskTrigger.md@@ -15,7 +15,7 @@ errors. The delegation code path in`server/services/handlers/tools.py::_execute_delegated_agent` calls`nodes.agent._events.broadcast_agent_task_completed` for both the success anderror paths, which emits a CloudEvents `WorkflowEvent`-(`type: com.machinaos.agent.task.completed`, with the success/error+(`type: com.opencompany.agent.task.completed`, with the success/errordiscriminator carried in `data.status`) via `dispatch.emit`. `taskTrigger` iscanary-registered, so `DeploymentManager` starts a `TriggerListenerWorkflow`that receives the event via Temporal Signal and spawns a child workflow per@@ -67,7 +67,7 @@ envelope.```mermaidflowchart TD- P[child agent completes/errors] --> Q[broadcast_agent_task_completed<br/>dispatch.emit com.machinaos.agent.task.completed]+ P[child agent completes/errors] --> Q[broadcast_agent_task_completed<br/>dispatch.emit com.opencompany.agent.task.completed]Q --> R[TriggerListenerWorkflow receives via Temporal Signal]R --> S[TaskTriggerNode.build_filter<br/>task_id / status / agent_name / parent_node_id]S -- match --> T[spawn child MachinaWorkflow<br/>trigger pre-executed with event payload]diff --git a/docs-internal/node-logic-flows/workflow_triggers/webhookTrigger.md b/docs-internal/node-logic-flows/workflow_triggers/webhookTrigger.mdindex 0c8065be..f3269271 100644--- a/docs-internal/node-logic-flows/workflow_triggers/webhookTrigger.md+++ b/docs-internal/node-logic-flows/workflow_triggers/webhookTrigger.md@@ -13,7 +13,7 @@Start a workflow when an HTTP request hits `/webhook/{path}`. The`webhook` router in `server/routers/webhook.py` receives the request and theproducer [`server/nodes/trigger/webhook_trigger/_events.py`](../../../server/nodes/trigger/webhook_trigger/_events.py)-emits a CloudEvents `WorkflowEvent` (`type: com.machinaos.webhook.received`)+emits a CloudEvents `WorkflowEvent` (`type: com.opencompany.webhook.received`)via `dispatch.emit`. `webhookTrigger` is canary-registered, so`DeploymentManager` starts a `TriggerListenerWorkflow` that receives the eventvia Temporal Signal and spawns a child `MachinaWorkflow` per matching event@@ -63,7 +63,7 @@ Wrapped in the standard envelope.```mermaidflowchart TD- P[HTTP request hits /webhook/path] --> Q[routers/webhook.py + _events.py<br/>dispatch.emit com.machinaos.webhook.received]+ P[HTTP request hits /webhook/path] --> Q[routers/webhook.py + _events.py<br/>dispatch.emit com.opencompany.webhook.received]Q --> R[TriggerListenerWorkflow receives via Temporal Signal]R --> S[WebhookTriggerNode.build_filter:<br/>event.path == params.path]S -- match --> T[spawn child MachinaWorkflow<br/>trigger pre-executed with event payload]diff --git a/docs-internal/node_allowlist.md b/docs-internal/node_allowlist.mdindex 0f671dd9..67c59c05 100644--- a/docs-internal/node_allowlist.md+++ b/docs-internal/node_allowlist.md@@ -4,7 +4,7 @@## Why this exists-Removing a feature from MachinaOs at the registry level (delete the plugin file) breaks workflows that already reference it — existing saved canvases can't load, exported JSON breaks on re-import. The allowlist hides the UI affordance (palette + credentials + skills picker) without touching the registry, so existing references still resolve while new ones can't be created.+Removing a feature from OpenCompany at the registry level (delete the plugin file) breaks workflows that already reference it — existing saved canvases can't load, exported JSON breaks on re-import. The allowlist hides the UI affordance (palette + credentials + skills picker) without touching the registry, so existing references still resolve while new ones can't be created.## Config shapediff --git a/docs-internal/node_creation.md b/docs-internal/node_creation.mdindex 3c8e2c43..0a7e6acd 100644--- a/docs-internal/node_creation.md+++ b/docs-internal/node_creation.md@@ -2,7 +2,7 @@> **Companion docs:** [Plugin System](./plugin_system.md) (Wave 11 architecture + Wave 12 event framework) and the inline [Nodes Cookbook](../server/nodes/README.md) next to the plugin files.-This guide is a fast index for adding a new node to MachinaOs. The+This guide is a fast index for adding a new node to OpenCompany. Thedeep technical details live in [`plugin_system.md`](./plugin_system.md);this file picks the right entry point based on what you're adding.diff --git a/docs-internal/onboarding.md b/docs-internal/onboarding.mdindex 2be60e17..4587e454 100644--- a/docs-internal/onboarding.md+++ b/docs-internal/onboarding.md@@ -178,7 +178,7 @@ All steps are shadcn/Tailwind compositions using `lucide-react` icons (`Card` /| Step | Component | Title | Purpose | Primitives used ||------|-----------|-------|---------|-----------------|-| 0 | `WelcomeStep` | Welcome to MachinaOs | Platform intro + 2×2 feature grid | `Card` / `CardContent`, lucide `Rocket` / `Plug` / `Move` / `Zap`, `bg-node-agent-soft` |+| 0 | `WelcomeStep` | Welcome to OpenCompany | Platform intro + 2×2 feature grid | `Card` / `CardContent`, lucide `Rocket` / `Plug` / `Move` / `Zap`, `bg-node-agent-soft` || 1 | `ConceptsStep` | Key Concepts | Nodes, Edges, AI Agents, Skills & Tools, Normal vs Dev Mode | role-token cards via `NODE_ROLE_CLASSES`, lucide `LayoutGrid` / `GitBranch` / `Bot` / `Wrench` / `ArrowLeftRight` || 2 | `ApiKeyStep` | API Key Setup | Provider list + "Open Credentials" button | shadcn `Button`, `Alert variant="info"`, `AIProviderIcons`, lucide `Key` / `ExternalLink` || 3 | `CanvasStep` | Canvas Tour | Visual UI layout diagram + keyboard shortcuts | `Badge`, role-token region tints, lucide `Layout` / `Wrench` / `Terminal` |@@ -270,17 +270,17 @@ No new handlers were needed. The onboarding system reuses existing generic handl| Browser closed mid-wizard | `onboarding_step` saved on each transition, resumes from last step || Multiple tabs | Completing in one tab doesn't update others until query refetch || Replay from Settings | Resets local state and reopens wizard from step 0 |-| Fresh database (no machina.db) | Onboarding appears after first settings query resolves |+| Fresh database (no workflow.db) | Onboarding appears after first settings query resolves |## Verification Checklist-1. **Fresh database**: Delete `server/machina.db` (or the configured DB), start server -- wizard appears+1. **Fresh database**: Delete `server/workflow.db` (or the configured DB), start server -- wizard appears2. **Step navigation**: Click through all 5 steps -- the `<ol>` stepper updates, Back/Next work3. **Skip**: Click "Skip for now" -- wizard closes, doesn't reappear on refresh4. **Resume**: Advance to step 3, close browser, reopen -- wizard resumes at step 35. **Complete**: Finish all steps via "Start Building" -- wizard doesn't reappear6. **API Key step**: Click "Open Credentials" button -- CredentialsModal opens-7. **Existing user migration**: With existing `machina.db` where `examples_loaded=1` -- onboarding does NOT appear+7. **Existing user migration**: With existing `workflow.db` where `examples_loaded=1` -- onboarding does NOT appear8. **Theme support**: Switch themes -- role-token cards and region tints adapt correctly9. **Replay**: Open Settings, click "Replay Welcome Guide" -- wizard reopens from step 010. **TypeScript**: `tsgo --noEmit` (or `npx tsc --noEmit`) passes cleandiff --git a/docs-internal/performance.md b/docs-internal/performance.mdindex 9c0a865f..c67baf3e 100644--- a/docs-internal/performance.md+++ b/docs-internal/performance.md@@ -1,6 +1,6 @@# Performance — Cold-Start, Bundle, Runtime Latency-Living record of MachinaOs's performance posture: where launch time is+Living record of OpenCompany's performance posture: where launch time isspent, what each optimisation cost / saved, and how to reproduce themeasurements. Update this file when you ship a perf-affecting changeor take a new measurement; numbers without timestamps and a commit@@ -8,7 +8,7 @@ reference rot fast.## Headline numbers (current baseline)-Measured on Windows, dev mode (`pnpm run dev` → `python -m machina dev`),+Measured on Windows, dev mode (`pnpm run dev` → `company dev`),warm OS file cache, with bytecode pre-compile applied:| Metric | Value | Source |@@ -23,7 +23,7 @@ warm OS file cache, with bytecode pre-compile applied:The cold-disk first launch on the same code is ~2× slower because thePython interpreter regenerates `.pyc` files on the fly. Run-`machina build` once to pre-compile (see ["Pre-compile Python bytecode"]+`company build` once to pre-compile (see ["Pre-compile Python bytecode"]below) and subsequent launches hit the warm number.## Optimisation history@@ -126,7 +126,7 @@ cd serveruv run python -O -m compileall -q -j 0 services core nodes routers models middleware main.py constants.py```-`machina build` runs this as step `[5/6]`. The path list lives in+`company build` runs this as step `[5/6]`. The path list lives in[cli/commands/build.py](../cli/commands/build.py)'s`COMPILEALL_SOURCE_DIRS` constant; install.js mirrors the same list.Tests at@@ -144,7 +144,7 @@ but the user-visible "first run after `git pull`" is dominated by it.```bash# Warm path (typical dev iteration):-machina start > start.log 2>&1+company start > start.log 2>&1# In another shell, wait for "Status broadcasters settled" then Ctrl-C the first.```diff --git a/docs-internal/plugin_system.md b/docs-internal/plugin_system.mdindex b655c567..5cb784ef 100644--- a/docs-internal/plugin_system.md+++ b/docs-internal/plugin_system.md@@ -1,6 +1,6 @@# Plugin System (Wave 11)-The MachinaOs plugin system is a class-based, declarative node+The OpenCompany plugin system is a class-based, declarative nodeauthoring model inspired by n8n's `INodeType`, Nango's`providers.yaml`, Pipedream's app/component split, and Temporal'sactivity pattern. One folder under `server/nodes/<group>/<plugin>/`@@ -968,7 +968,7 @@ directly.Mirrors CloudEvents v1.0 verbatim([spec](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md))-plus three MachinaOs routing extras (`workflow_id`,+plus three OpenCompany routing extras (`workflow_id`,`trigger_node_id`, `correlation_id`). Field set:`specversion / id / source / type / time / subject / datacontenttype /dataschema / data` plus the extras.@@ -1099,7 +1099,7 @@ class StripeListenSource(DaemonEventSource):async def has_credential(self) -> bool:# Override the default ``secrets["api_key"]`` gate when auth lives- # outside MachinaOs (e.g. the CLI's own ~/.config/stripe/config.toml).+ # outside OpenCompany (e.g. the CLI's own ~/.config/stripe/config.toml).return is_logged_in()def parse_line(self, stream: str, line: str) -> Optional[WorkflowEvent]:diff --git a/docs-internal/release_build_pipeline.md b/docs-internal/release_build_pipeline.mdindex 5e1b8fe9..6bcda454 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 `machinaos`. 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 `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.@@ -58,13 +58,13 @@ Keep `sourcemap: analyze` (already correct), keep React Compiler config.```The list of source dirs is the public `cli.commands.build.COMPILEALL_SOURCE_DIRS` constant — `scripts/install.js` mirrors it.-The npm tarball still excludes `__pycache__/` per `package.json` `files` (cross-Python-minor pyc fragility) — `compileall` runs on the user's machine via `machina build` or `scripts/install.js` post-install.+The npm tarball still excludes `__pycache__/` per `package.json` `files` (cross-Python-minor pyc fragility) — `compileall` runs on the user's machine via `company build` or `scripts/install.js` post-install.### 4b. Temporal binary fetch + DATA_DIR parity-- Step `[6/6]` runs `uv run python -m services.temporal._install`, which pooch-downloads the official `temporal` CLI into `<DATA_DIR>/packages/temporal/` (= `~/.machina/packages/temporal/` by default). Pre-fetching at build time turns the ~114 MB download into a sub-second cache hit on first `machina start`. The download uses an explicit `HTTPDownloader(timeout=300)` (per-socket-read timeout — slow links can finish; pooch's 30 s default aborted them). Fatality differs by entry point: `machina build` keeps the step **fatal** (locked by `test_temporal_install_is_fatal_on_failure`), while npm postinstall (`scripts/install.js`) wraps it in a **non-fatal** try/catch because `TemporalServerRuntime._pre_spawn()` re-downloads lazily on first `machina start`. The cache survives `machina clean` (`packages` ∈ `_MACHINA_KEEP`), so clean+build cycles don't re-download.-- **`machina build` layers `.env.dev` first.** `build_command()` calls `cli.config.load_dev_overrides(root)` before the install steps, so the build's `DATA_DIR` matches what the runtime sees. Without it, a repo checkout's `machina build` read `DATA_DIR=~/.machina` from `.env.template` and installed Temporal under user home, but `machina dev` then read `DATA_DIR=.machina` from `.env.dev` and re-downloaded into `<repo>/.machina/` — a redundant ~114 MB fetch on every fresh clone.-- **Safe for global installs.** `.env.dev` is git-committed for contributors but is NOT in the npm `files` list, so an npm-distributed copy has no `.env.dev` — `load_dev_overrides` is a no-op and everything falls through to the `.env.template` default (`DATA_DIR=~/.machina`), matching `machina start` / `machina daemon`.+- Step `[6/6]` runs `uv run python -m services.temporal._install`, which pooch-downloads the official `temporal` CLI into `<DATA_DIR>/packages/temporal/` (= `~/.opencompany/packages/temporal/` by default). Pre-fetching at build time turns the ~114 MB download into a sub-second cache hit on first `company start`. The download uses an explicit `HTTPDownloader(timeout=300)` (per-socket-read timeout — slow links can finish; pooch's 30 s default aborted them). Fatality differs by entry point: `company build` keeps the step **fatal** (locked by `test_temporal_install_is_fatal_on_failure`), while npm postinstall (`scripts/install.js`) wraps it in a **non-fatal** try/catch because `TemporalServerRuntime._pre_spawn()` re-downloads lazily on first `company start`. The cache survives `company clean` (`packages` ∈ `_OPENCOMPANY_KEEP`), so clean+build cycles don't re-download.+- **`company build` layers `.env.dev` first.** `build_command()` calls `cli.config.load_dev_overrides(root)` before the install steps, so the build's `DATA_DIR` matches what the runtime sees. Without it, a repo checkout's `company build` read `DATA_DIR=~/.opencompany` from `.env.template` and installed Temporal under user home, but `company dev` then read `DATA_DIR=.opencompany` from `.env.dev` and re-downloaded into `<repo>/.opencompany/` — a redundant ~114 MB fetch on every fresh clone.+- **Safe for global installs.** `.env.dev` is git-committed for contributors but is NOT in the npm `files` list, so an npm-distributed copy has no `.env.dev` — `load_dev_overrides` is a no-op and everything falls through to the `.env.template` default (`DATA_DIR=~/.opencompany`), matching `company start` / `company daemon`.### 5. Wire bundle + compileall into install.js@@ -96,9 +96,9 @@ Idempotent on re-runs (compileall only rewrites stale pyc; esbuild is determinis2. `ANALYZE=1 pnpm --filter react-flow-client run build` → open `client/dist/stats.html`. Expect: no chunk above 600 KB gz, main < 200 KB gz, `vendor-flow` split.3. `cd server/nodejs && npm run build && node dist/index.js` → starts on :3020 in <100ms.4. `cd server && uv run python -O -m compileall -q -j 0 .` → `__pycache__/*.opt-1.pyc` present.-5. Cold-start: clean install + `machina start > start.log 2>&1` → `Application startup complete` at ≤+50s (was +66.9s).+5. Cold-start: clean install + `company start > start.log 2>&1` → `Application startup complete` at ≤+50s (was +66.9s).6. `npm pack --dry-run` → `server/nodejs/dist/index.js` included; no `__pycache__/`; tarball size ≤ v0.0.76.-7. Smoke: `machina start` → load http://localhost:3000 → run "AI Assistant" example → agent responds.+7. Smoke: `company start` → load http://localhost:3000 → run "AI Assistant" example → agent responds.## Out of scope (future work)diff --git a/docs-internal/rlm_service.md b/docs-internal/rlm_service.mdindex 094a9806..2c064e1c 100644--- a/docs-internal/rlm_service.md+++ b/docs-internal/rlm_service.md@@ -4,7 +4,7 @@## Overview-The RLM (Recursive Language Models) service integrates the `rlms` library into MachinaOS as a specialized agent node (`rlm_agent`). Unlike other specialized agents that route to `handle_chat_agent` and use the standard agent loop, the RLM agent uses its own REPL-based code execution loop where the LM writes Python code blocks that are `exec()`-ed in a sandboxed environment.+The RLM (Recursive Language Models) service integrates the `rlms` library into OpenCompany as a specialized agent node (`rlm_agent`). Unlike other specialized agents that route to `handle_chat_agent` and use the standard agent loop, the RLM agent uses its own REPL-based code execution loop where the LM writes Python code blocks that are `exec()`-ed in a sandboxed environment.**Library**: [rlms](https://pypi.org/project/rlms/) (pip install rlms)**Paper**: https://arxiv.org/abs/2512.24601@@ -26,7 +26,7 @@ The RLM (Recursive Language Models) service integrates the `rlms` library into M## Architecture```-MachinaOS Node Execution System+OpenCompany Node Execution System================================[chatTrigger] --input-main--+@@ -101,7 +101,7 @@ The `rlm_agent` node's own provider/model configuration drives the outer REPL loConfigured via the standard AI agent parameters:- `provider`: openai, anthropic, gemini, groq, openrouter, cerebras- `model`: The model name (e.g., gpt-4o, claude-sonnet-4-20250514)-- `api_key`: From MachinaOS credential store+- `api_key`: From OpenCompany credential store### Small LMs (depth>=1)Connected `AI_CHAT_MODEL_TYPES` nodes (openaiChatModel, anthropicChatModel, etc.) provide backends for `llm_query()` and `rlm_query()` calls made from within the REPL code.@@ -122,7 +122,7 @@ rlm_agent (gpt-4o) + openaiChatModel (gpt-4o-mini)### BackendAdapter-Maps MachinaOS provider/model/api_key to RLM backend constructor arguments.+Maps OpenCompany provider/model/api_key to RLM backend constructor arguments.```pythonBackendAdapter.adapt("openai", "gpt-4o", "sk-...")@@ -134,7 +134,7 @@ BackendAdapter.adapt("groq", "llama-3.3-70b-versatile", "gsk-...")**Provider mapping** (constants.py):-| MachinaOS Provider | RLM Backend | Base URL Override |+| OpenCompany Provider | RLM Backend | Base URL Override ||--------------------|-------------|-------------------|| openai | openai | -- || anthropic | anthropic | -- |@@ -156,10 +156,10 @@ Bridges non-agent, non-chat-model tool nodes into RLM `custom_tools` dict format**How it works**:1. Filters out `AI_AGENT_TYPES` (handled via delegation) and `AI_CHAT_MODEL_TYPES` (handled by ChatModelExtractor)2. For each remaining tool node, creates a sync callable wrapper-3. The wrapper uses `asyncio.run_coroutine_threadsafe()` to call MachinaOS's `execute_tool()` dispatcher from RLM's synchronous REPL thread+3. The wrapper uses `asyncio.run_coroutine_threadsafe()` to call OpenCompany's `execute_tool()` dispatcher from RLM's synchronous REPL thread4. Returns dict in RLM custom_tools format: `{"tool_name": {"tool": callable, "description": str}}`-**Why sync wrappers**: RLM's LocalREPL uses `exec()` which runs synchronously. MachinaOS tool handlers are async. The bridge uses `asyncio.run_coroutine_threadsafe()` with a 60-second timeout to cross the sync/async boundary.+**Why sync wrappers**: RLM's LocalREPL uses `exec()` which runs synchronously. OpenCompany tool handlers are async. The bridge uses `asyncio.run_coroutine_threadsafe()` with a 60-second timeout to cross the sync/async boundary.**Supported tool nodes** (auto-bridged, no per-tool code needed):@@ -238,7 +238,7 @@ return await ai_service.rlm_service.execute(node_id, parameters, ...)----## Reused MachinaOS Functions+## Reused OpenCompany Functions| Function | Source | Purpose in RLM ||----------|--------|----------------|diff --git a/docs-internal/status_broadcaster.md b/docs-internal/status_broadcaster.mdindex 28cf92eb..24671ba8 100644--- a/docs-internal/status_broadcaster.md+++ b/docs-internal/status_broadcaster.md@@ -1,6 +1,6 @@# WebSocket Status Broadcaster-MachinaOS uses WebSocket as the primary communication channel between the React frontend and the FastAPI backend. A single `StatusBroadcaster` service manages all active WebSocket connections and broadcasts real-time state updates (node status, workflow progress, Android device status, variable changes, etc.). This replaces REST polling with push-based updates and is the reason the UI can animate node execution, show live tool calls, and update Android status without reloading.+OpenCompany uses WebSocket as the primary communication channel between the React frontend and the FastAPI backend. A single `StatusBroadcaster` service manages all active WebSocket connections and broadcasts real-time state updates (node status, workflow progress, Android device status, variable changes, etc.). This replaces REST polling with push-based updates and is the reason the UI can animate node execution, show live tool calls, and update Android status without reloading.This document covers the broadcaster architecture, the WebSocket message handlers, the broadcast message types, and the Android two-state connection model.@@ -11,7 +11,7 @@ Source files:## Why WebSocket-First-Early iterations of MachinaOS used REST endpoints for most frontend-backend operations. That caused three recurring problems:+Early iterations of OpenCompany used REST endpoints for most frontend-backend operations. That caused three recurring problems:1. **Polling noise**: the frontend had to re-fetch parameters, workflows, Android status, and node outputs on an interval to look "live".2. **No push**: node execution status changes (running, completed, errored) could not reach the UI without polling; tool calls during agent execution were invisible until the whole agent finished.@@ -137,9 +137,9 @@ Broadcasts are sent to all connected clients without a request-response correlat| `variables_update` | Batch variable update | `{variables: Dict}` || `workflow_status` | Workflow start / progress / complete | `{executing, current_node, progress}` || `api_key_status` | Credential validation result; also fired by `delete_api_key` to clear `apiKeyStatuses[provider]` | `{provider, data: {valid, hasKey, models, message, timestamp}}` |-| `credential_catalogue_updated` | Credential mutation (save / delete / oauth-disconnect) — wraps `WorkflowEvent` (CloudEvents v1.0) from `services/events/envelope.py`. Outer `type` stays this string for FE back-compat; body's `type` follows `credential.<area>.<action>` (e.g. `credential.api_key.saved`). Frontend `WebSocketContext` invalidates `useCatalogueQuery` via the 300 ms `invalidateCatalogue` debounce. | `{specversion: "1.0", id, source: "machinaos://services/credentials", type, subject: provider, time, data: {provider, customer_id?}}` |-| `node_parameters_updated` | Parameters saved by parameter-panel user, Claude CLI memory bridge, or AgentWorkflow per-turn memory append — wraps `WorkflowEvent` (CloudEvents v1.0) from `services/events/envelope.py`. Body's `type` is `com.machinaos.node.parameters.updated`. `data.source` (`"user"` / `"cli"` / `"agent"`) distinguishes the three emission sites. Replaces the legacy raw-dict broadcast at commit `7c9e873`. Locked by `tests/test_cloudevents_node_parameters.py`. | `{specversion: "1.0", id, source: "machinaos://services/parameters", type: "com.machinaos.node.parameters.updated", subject: node_id, time, data: {node_id, parameters, version, source}}` |-| `agent_progress` | Agent-loop / AgentWorkflow lifecycle phase (canvas badge "N / max" + phase indicator) — wraps `WorkflowEvent.agent_progress` (CloudEvents v1.0). Emitted from `services/ai.py:execute_agent` (legacy) and via the `agent.broadcast_progress.v1` Temporal activity (F4.B). F4.B fires the full phase set: `starting` (entry, drives `node_status="executing"`), `llm_step` (per iteration), `executing_tool` + `tool_completed` (around each per-type tool activity), `completed` (final, drives `node_status="success"`). The activity optionally drives a raw-dict `update_node_status` alongside the CloudEvents envelope so the canvas-glow color follows the lifecycle without a separate handler — same dual-channel pattern F4.A's `_node_activity` uses. | `{specversion: "1.0", id, source: "machinaos://services/agent", type: "com.machinaos.agent.progress", subject: node_id, time, data: {node_id, iteration, max_iterations, phase?, tool_name?}}` |+| `credential_catalogue_updated` | Credential mutation (save / delete / oauth-disconnect) — wraps `WorkflowEvent` (CloudEvents v1.0) from `services/events/envelope.py`. Outer `type` stays this string for FE back-compat; body's `type` follows `credential.<area>.<action>` (e.g. `credential.api_key.saved`). Frontend `WebSocketContext` invalidates `useCatalogueQuery` via the 300 ms `invalidateCatalogue` debounce. | `{specversion: "1.0", id, source: "opencompany://services/credentials", type, subject: provider, time, data: {provider, customer_id?}}` |+| `node_parameters_updated` | Parameters saved by parameter-panel user, Claude CLI memory bridge, or AgentWorkflow per-turn memory append — wraps `WorkflowEvent` (CloudEvents v1.0) from `services/events/envelope.py`. Body's `type` is `com.opencompany.node.parameters.updated`. `data.source` (`"user"` / `"cli"` / `"agent"`) distinguishes the three emission sites. Replaces the legacy raw-dict broadcast at commit `7c9e873`. Locked by `tests/test_cloudevents_node_parameters.py`. | `{specversion: "1.0", id, source: "opencompany://services/parameters", type: "com.opencompany.node.parameters.updated", subject: node_id, time, data: {node_id, parameters, version, source}}` |+| `agent_progress` | Agent-loop / AgentWorkflow lifecycle phase (canvas badge "N / max" + phase indicator) — wraps `WorkflowEvent.agent_progress` (CloudEvents v1.0). Emitted from `services/ai.py:execute_agent` (legacy) and via the `agent.broadcast_progress.v1` Temporal activity (F4.B). F4.B fires the full phase set: `starting` (entry, drives `node_status="executing"`), `llm_step` (per iteration), `executing_tool` + `tool_completed` (around each per-type tool activity), `completed` (final, drives `node_status="success"`). The activity optionally drives a raw-dict `update_node_status` alongside the CloudEvents envelope so the canvas-glow color follows the lifecycle without a separate handler — same dual-channel pattern F4.A's `_node_activity` uses. | `{specversion: "1.0", id, source: "opencompany://services/agent", type: "com.opencompany.agent.progress", subject: node_id, time, data: {node_id, iteration, max_iterations, phase?, tool_name?}}` || `token_usage_update` | AI execution updates token counters | `{session_id, data: {total, threshold, needs_compaction}}` || `compaction_starting` | Memory compaction begins | `{session_id, node_id}` || `compaction_completed` | Memory compaction ends | `{session_id, success, tokens_before, tokens_after}` |diff --git a/docs-internal/stripe_service.md b/docs-internal/stripe_service.mdindex d90169d4..7dca4fac 100644--- a/docs-internal/stripe_service.md+++ b/docs-internal/stripe_service.md@@ -6,7 +6,7 @@ Two workflow nodes:- **`stripeAction`** (dual-purpose ActionNode + AI tool) — runs any`stripe …` command via subprocess and returns parsed JSON.- **`stripeReceive`** (TriggerNode) — fires when `stripe listen`- forwards a webhook event to MachinaOs at `/webhook/stripe`.+ forwards a webhook event to OpenCompany at `/webhook/stripe`.Stripe is the reference implementation of the Wave 12 event frameworkdocumented in [Plugin System → Wave 12](./plugin_system.md#wave-12--generalized-event-framework-servicesevents).@@ -44,7 +44,7 @@ this folder contributes only the Stripe-specific shapes.▲ │ ││ start/stop/status │ POST /webhook/stripe │ subprocess│ │ │- stripe CLI subprocess stripe listen ──forwards─▶ MachinaOs+ stripe CLI subprocess stripe listen ──forwards─▶ OpenCompany(long-lived daemon) (running daemon writes to localhost)```@@ -244,7 +244,7 @@ StripeListenSource.stop()Thin marker class. The Stripe CLI handles its own auth state at`~/.config/stripe/config.toml`; nothing API-key-shaped lives in-MachinaOs's auth_service for Stripe. Only the captured webhook+OpenCompany's auth_service for Stripe. Only the captured webhooksigning secret rides as an extra field.```python@@ -270,7 +270,7 @@ Storage:| Key | Type | Origin | Purpose ||---|---|---|---|| (no `stripe_api_key`) | — | Stripe CLI's `~/.config/stripe/config.toml` (populated by `stripe login`) | Authenticates every CLI invocation transparently. The CLI generates restricted keys with CLI-appropriate scopes — one for live mode, one for sandbox — valid 90 days. |-| `stripe_webhook_secret` | API key (extra field) | Auto-captured by `StripeListenSource.parse_line` from the daemon's stderr banner | Verifies forwarded webhook signatures via `StripeVerifier`. Stable across daemon restarts; the CLI re-uses the same secret for the same MachinaOs install. |+| `stripe_webhook_secret` | API key (extra field) | Auto-captured by `StripeListenSource.parse_line` from the daemon's stderr banner | Verifies forwarded webhook signatures via `StripeVerifier`. Stable across daemon restarts; the CLI re-uses the same secret for the same OpenCompany install. || OAuth marker token | OAuth token (`auth_service.store_oauth_tokens`) | Written by `_mark_logged_in()` after `stripe login --complete` exits 0; cleared by `_mark_logged_out()` on disconnect. **Strings are dummies (`"cli-managed"`)** — the real OAuth lives in the CLI's config file. | Lights up the catalogue's `provider.stored = true` flag via the existing `auth_service.get_oauth_tokens(status_hook)` check. Same path Google's OAuth callback uses; no new abstraction. |### `StripeListenSource(DaemonEventSource)`@@ -550,7 +550,7 @@ zero new frontend code; the difference is that Stripe's `ws.login`returns the URL produced by `stripe login --non-interactive`(rather than a URL we constructed via `oauth_utils.get_redirect_uri`+ a Twitter/Google OAuth helper class), and there is no callback-route in MachinaOs — the CLI completes the OAuth on its own and+route in OpenCompany — the CLI completes the OAuth on its own andexits, at which point a background task in the `stripe_login`handler kicks the daemon and broadcasts updated status.@@ -628,7 +628,7 @@ WebSocket-client connect:1. `has_credential()` (= `is_logged_in()`) is consulted. If true andthe daemon isn't running, `start()` is called — covers the- "MachinaOs restarted while user was logged in" path.+ "OpenCompany restarted while user was logged in" path.2. `source.status()` is mirrored into `broadcaster._status["stripe"]`for any consumers that read it directly. (The modal does not.)@@ -756,7 +756,7 @@ persisted.## Operational notes-### CLI-managed credentials, not MachinaOs-managed+### CLI-managed credentials, not OpenCompany-managedThere is no API key in `auth_service` for Stripe — the CLI persistsits own credentials at `~/.config/stripe/config.toml` (or@@ -787,7 +787,7 @@ connect can hit this path.### Single global daemon-One Stripe account per MachinaOs install. The daemon is+One Stripe account per OpenCompany install. The daemon issingleton-global (`workflow_id="_stripe_global"`). Multi-accountsupport is deferred to a future revision; the design holds — give`StripeListenSource` a `__init__(account_id)` and key the singleton@@ -839,7 +839,7 @@ End-to-end smoke (requires Stripe CLI installed and a Stripe account):`process_service.list_processes("_stripe_global")` is empty AND`~/.config/stripe/config.toml` no longer contains an `_api_key`line.-9. **Auto-reconnect.** Restart MachinaOs. If still logged in+9. **Auto-reconnect.** Restart OpenCompany. If still logged in(`is_logged_in()` returns true), the first WS-client connecttriggers `make_status_refresh` which auto-spawns the daemon.diff --git a/docs-internal/theme_system.md b/docs-internal/theme_system.mdindex 8abdf8e5..a1d7b7d7 100644--- a/docs-internal/theme_system.md+++ b/docs-internal/theme_system.md@@ -1,6 +1,6 @@# Theme System — design-handoff token contract + 12 themes-The MachinaOs frontend supports **ten visual themes**, organised as a utopian / dystopian taxonomy from the design handoff:+The OpenCompany frontend supports **ten visual themes**, organised as a utopian / dystopian taxonomy from the design handoff:**Utopian:** `light` · `dark` · `renaissance` · `greek` · `edo` · `steampunk` · `atomic`**Dystopian:** `cyber` · `wasteland` · `rot` · `plague` · `surveillance`@@ -23,7 +23,7 @@ client/src/themes/ (colour VALUES are hex + color-mix(); never HSL triple├── renaissance.css :root[data-theme="renaissance"] — full palette (hex) + per-theme decorations├── greek / edo / steampunk / atomic / cyber / wasteland / rot / plague / surveillance .css└── animations.css per-theme --pulse-keyframe/-duration/-timing + executing/trigger keyframes- + .machina-* helpers (.machina-pulse / -trigger-armed / -bolt / -crt / -scanline)+ + .opencompany-* helpers (.opencompany-pulse / -trigger-armed / -bolt / -crt / -scanline)client/src/index.css PLUMBING ONLY — holds NO literal colour values:├── @layer base global resets only (*, html/body, #root) — token blocks moved to themes/@@ -36,7 +36,7 @@ client/src/contexts/ThemeContext.tsx├── ThemeName = 'light' | 'dark' | 'renaissance' | 'greek' | 'edo' | 'steampunk'│ | 'atomic' | 'cyber' | 'wasteland' | 'rot' | 'plague' | 'surveillance'├── DARK_FAMILY = {dark, cyber, wasteland, rot, surveillance, steampunk}-├── persists to localStorage['machinaos-theme']+├── persists to localStorage['opencompany-theme']├── migrates legacy 'darkMode' boolean on first load└── sets <html data-theme="..."> + .dark class (only for DARK_FAMILY themes)@@ -207,7 +207,7 @@ Result by theme (display font / tracking / case):6. **(Optional, canvas)** Add a `THEME_OVERRIDES` entry in [client/src/hooks/useAppTheme.ts](../client/src/hooks/useAppTheme.ts) so canvas selection rings, action buttons, and edge strokes pick up the theme's accents. Whichever keys you omit fall through to `lightColors` / `darkColors` (chosen by `DARK_BASE_THEMES`).7. **(Optional, fonts)** If the theme uses Google Fonts not already loaded, append the family to the deferred-load `<link>` in [client/index.html](../client/index.html).8. **(Optional, sound)** Pick one of the 10 existing `SoundPackName` values in `--sound-pack` (or add a new pack to [client/src/lib/sound.ts](../client/src/lib/sound.ts) and the `VALID_PACKS` set in [client/src/hooks/useSound.ts](../client/src/hooks/useSound.ts)).-9. **(Optional, motion)** The theme inherits the default `node-pulse` executing glow and the `.machina-trigger-armed` trigger heartbeat automatically. For a bespoke executing pulse, add a `[data-theme="X"]` block in [client/src/themes/animations.css](../client/src/themes/animations.css) overriding `--pulse-keyframe` / `--pulse-duration` / `--pulse-timing` and define that keyframe there. Set the glow accent via `--node-pulse-color` in the theme's own block.+9. **(Optional, motion)** The theme inherits the default `node-pulse` executing glow and the `.opencompany-trigger-armed` trigger heartbeat automatically. For a bespoke executing pulse, add a `[data-theme="X"]` block in [client/src/themes/animations.css](../client/src/themes/animations.css) overriding `--pulse-keyframe` / `--pulse-duration` / `--pulse-timing` and define that keyframe there. Set the glow accent via `--node-pulse-color` in the theme's own block.**No component code changes.** That is the contract.@@ -225,7 +225,7 @@ Result by theme (display font / tracking / case):## What's done vs deferred### Done-- **`--node-pulse-color` contract** — executing-node glow color is independent of `--node-color` (the plugin accent). Each theme overrides `--node-pulse-color` to its highest-contrast accent (Cyber neon cyan, Surveillance REC red, Renaissance ultramarine `--lapis-bright`, Atomic turquoise, etc.) so the glow stays visible against any canvas background. Defined in [base.css](../client/src/themes/base.css) at `:root`, overridden in each per-theme file. The executing keyframes (`node-pulse` + per-theme `cyber-pulse-exec` / `surv-pulse-exec` / `ren-pulse-exec`) and the per-theme `--pulse-keyframe` / `--pulse-duration` / `--pulse-timing` tokens live in [animations.css](../client/src/themes/animations.css); base.css's `.sq-node[data-executing] .sq-node-box` / `.react-flow__node.executing .{sq-node-box,node}` rule reads `var(--pulse-keyframe, node-pulse)`, so a theme picks its pulse by overriding ONE token (Cyber → `cyber-pulse-exec`, Surveillance → `surv-pulse-exec`, Renaissance → `ren-pulse-exec`) — no high-specificity per-theme animation rule. `node-pulse` is a triple-layer expanding box-shadow (12px ring + 32px mid halo + 56px outer halo) consuming `var(--node-pulse-color)` + the shared `--tint-pulse-*` alphas. Trigger nodes use a separate continuous `.machina-trigger-armed` "listening" heartbeat (`trigger-listening` keyframe) while waiting, plus `.machina-bolt` on the ⚡ badge — distinct from the one-shot execution pulse. **Never animate `opacity` on whole-node selectors** — it fades the node icon + content, not just the glow.+- **`--node-pulse-color` contract** — executing-node glow color is independent of `--node-color` (the plugin accent). Each theme overrides `--node-pulse-color` to its highest-contrast accent (Cyber neon cyan, Surveillance REC red, Renaissance ultramarine `--lapis-bright`, Atomic turquoise, etc.) so the glow stays visible against any canvas background. Defined in [base.css](../client/src/themes/base.css) at `:root`, overridden in each per-theme file. The executing keyframes (`node-pulse` + per-theme `cyber-pulse-exec` / `surv-pulse-exec` / `ren-pulse-exec`) and the per-theme `--pulse-keyframe` / `--pulse-duration` / `--pulse-timing` tokens live in [animations.css](../client/src/themes/animations.css); base.css's `.sq-node[data-executing] .sq-node-box` / `.react-flow__node.executing .{sq-node-box,node}` rule reads `var(--pulse-keyframe, node-pulse)`, so a theme picks its pulse by overriding ONE token (Cyber → `cyber-pulse-exec`, Surveillance → `surv-pulse-exec`, Renaissance → `ren-pulse-exec`) — no high-specificity per-theme animation rule. `node-pulse` is a triple-layer expanding box-shadow (12px ring + 32px mid halo + 56px outer halo) consuming `var(--node-pulse-color)` + the shared `--tint-pulse-*` alphas. Trigger nodes use a separate continuous `.opencompany-trigger-armed` "listening" heartbeat (`trigger-listening` keyframe) while waiting, plus `.opencompany-bolt` on the ⚡ badge — distinct from the one-shot execution pulse. **Never animate `opacity` on whole-node selectors** — it fades the node icon + content, not just the glow.- **`data-page-hidden` animation pause** — [Dashboard.tsx](../client/src/Dashboard.tsx) mounts a `visibilitychange` listener that toggles `data-page-hidden` on `<html>`; [base.css](../client/src/themes/base.css) declares `html[data-page-hidden] *, *::before, *::after { animation-play-state: paused !important; }`. Without this, paused CSS keyframes accumulate frames in the compositor queue while the tab is hidden; on tab return all 50+ executing nodes' triple-layer pulses + Cyber's full-viewport `cyber-flicker` / `cyber-roll` resume simultaneously, stalling the GPU compositor 100-200ms and blocking input dispatch (first-click-feels-frozen pattern). The unpause is deferred via `requestAnimationFrame` so input dispatch wins the frame before composite resumes.- **Parameter panel theme contract** — MasterSkillEditor, OutputPanel, MiddleSection, ToolSchemaEditor, ParameterPanel removed `useAppTheme()`. Every surface renders against Tailwind tokens + new-contract CSS custom props. Section headers carry the display-typography triplet (`font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-fg-default`); action buttons use `<ActionButton intent="run|stop|save|config|tools">`; backgrounds use `bg-bg-elevated` / `bg-bg-panel` / `bg-bg-input` from the surface tier table above. EditableNodeLabel emits both `sq-node-label` and `node-label` classNames so per-theme typography rules fire under either topology. Per-theme scrollbar webkit rules (`::-webkit-scrollbar-thumb` etc.) declared in all 12 themes — gold (Renaissance), square-cornered (Atomic / Edo / Greek / Wasteland / Plague), metallic (Steampunk), phosphor (Rot), neon (Cyber), REC-red (Surveillance), shadcn neutral (Light / Dark).- **Canvas-node class topology alignment** (W26) — TriggerNode, StartNode, ToolkitNode migrated from `.node` (rectangular spec-card) topology to `.sq-node` / `.sq-node-box` (square-icon node) topology so per-theme decorations (Steampunk brass rivets, Edo hanko seal, Surveillance REC LED, Renaissance gold emblem) reach them. Status pips, gear buttons, and React Flow handles on every node component now carry `.sq-node-pip` / `.sq-node-gear` / `.sq-node-handle.in/.out` (square nodes) or `.node-pip` / `.node-gear` / `.node-handle.in/.out` (rectangular nodes — AIAgentNode, GenericNode, TeamMonitorNode). Pip background is data-driven via `data-status="idle | executing | waiting | success | error"` — base.css picks the colour from shadcn semantic tokens; per-theme files override. Inline JS-computed `backgroundColor` / `border` / `animation` on these elements stripped — CSS owns visuals. Cyber's `.node-trigger` rule extended to dual-target both rectangular and square topologies (`.sq-node.node-trigger .sq-node-box`). Orphan `.node-output` rule removed. EditableNodeLabel now emits both `sq-node-label` and `node-label` classNames so per-theme typography rules fire. StartNode reads `nodeColor` from `definition?.defaults?.color` instead of hardcoded `theme.dracula.cyan`.@@ -248,7 +248,7 @@ Result by theme (display font / tracking / case):- **Migrated chrome**: TopToolbar, WorkflowSidebar, ComponentPalette + ComponentItem + CollapsibleSection, ConsolePanel chrome, SettingsPanel, Modal, ParameterPanel modal title, AIResultModal title, OutputDisplayPanel title, InputSection title- **New shell components**: StatusBar (fixed-bottom system line with WS connection / workflow / theme / clock), CommandPalette (`⌘K`), CommandPaletteHost (canonical command list with Workflow / Run / Open / View / Theme groups)- **Google Fonts** — deferred-load `<link>` covers all 12 themes' typefaces (Cinzel, Cormorant Garamond, IM Fell English / SC, JetBrains Mono, Major Mono Display, VT323, Shippori Mincho, Sawarabi Mincho, Special Elite, Bevan, Lato, Pirata One, EB Garamond, UnifrakturCook, Anonymous Pro, IBM Plex Mono, Courier Prime, Space Mono)-- **Sound contract** — [client/src/lib/sound.ts](../client/src/lib/sound.ts) ports the upstream WebAudio engine with all 10 packs (`parchment`, `marble`, `ink`, `clockwork`, `vibraphone`, `terminal`, `scrap`, `crypt`, `bell`, `telex`). [client/src/hooks/useSound.ts](../client/src/hooks/useSound.ts) reads `--sound-pack` from `:root` on theme change and mirrors the `soundEnabled` Zustand slice into `Sounds.setEnabled()`. Settings panel ships the toggle (Audio section). Persists to `localStorage['machinaos-sound']`; **default ON** (browsers gesture-gate WebAudio without a separate permission API — the AudioContext starts suspended and resumes on the user's first pointerdown / keydown / touchstart via `Sounds.unlock()`, registered as a one-shot capture-phase listener in `useSoundSync()`).+- **Sound contract** — [client/src/lib/sound.ts](../client/src/lib/sound.ts) ports the upstream WebAudio engine with all 10 packs (`parchment`, `marble`, `ink`, `clockwork`, `vibraphone`, `terminal`, `scrap`, `crypt`, `bell`, `telex`). [client/src/hooks/useSound.ts](../client/src/hooks/useSound.ts) reads `--sound-pack` from `:root` on theme change and mirrors the `soundEnabled` Zustand slice into `Sounds.setEnabled()`. Settings panel ships the toggle (Audio section). Persists to `localStorage['opencompany-sound']`; **default ON** (browsers gesture-gate WebAudio without a separate permission API — the AudioContext starts suspended and resumes on the user's first pointerdown / keydown / touchstart via `Sounds.unlock()`, registered as a one-shot capture-phase listener in `useSoundSync()`).- **Canvas overlay packs** — [client/src/hooks/useAppTheme.ts](../client/src/hooks/useAppTheme.ts) extended from 2-way (`{light, dark}`) to 10-way: a `THEME_OVERRIDES` map applies a small overlay (primary, focus, focusRing, action colours, edge palette) on top of `lightColors` / `darkColors`. Existing call sites continue to read `theme.colors.X` and `theme.isDarkMode` unchanged; canvas selection rings, action buttons, and edge strokes pick up the active theme's accents under any of the 10 themes.### Deferred (future PRs)@@ -347,7 +347,7 @@ Both families share the same status-pip data contract:`pipStatus` is a string from the bucket `'idle' | 'executing' | 'waiting' | 'success' | 'error'`. base.css colors the pip per-status using `var(--success)` / `var(--destructive)` / `var(--node-color)` etc. Per-theme files override for material-specific identity.-Execution-state animation: `data-executing={isExecuting ? '' : undefined}` on the outer wrapper. base.css binds `.sq-node[data-executing] .sq-node-box` and `.react-flow__node.executing .node` to `var(--pulse-keyframe, node-pulse)` (the theme-selected pulse; keyframes + per-theme `--pulse-keyframe` live in `animations.css`). Trigger nodes apply `.machina-trigger-armed` (continuous listening heartbeat) on the `waiting` state instead — distinct from the execution pulse — plus `.machina-bolt` on the ⚡ badge.+Execution-state animation: `data-executing={isExecuting ? '' : undefined}` on the outer wrapper. base.css binds `.sq-node[data-executing] .sq-node-box` and `.react-flow__node.executing .node` to `var(--pulse-keyframe, node-pulse)` (the theme-selected pulse; keyframes + per-theme `--pulse-keyframe` live in `animations.css`). Trigger nodes apply `.opencompany-trigger-armed` (continuous listening heartbeat) on the `waiting` state instead — distinct from the execution pulse — plus `.opencompany-bolt` on the ⚡ badge.Selection state: `selected` co-class on the outer wrapper, driven by React Flow's `selected` prop.@@ -516,7 +516,7 @@ cd client && npx eslint <files>| [client/src/themes/rot.css](../client/src/themes/rot.css) | Necromantic Rot theme + bridge || [client/src/themes/plague.css](../client/src/themes/plague.css) | Plague City theme + bridge || [client/src/themes/surveillance.css](../client/src/themes/surveillance.css) | Surveillance theme + bridge |-| [client/src/themes/animations.css](../client/src/themes/animations.css) | Per-theme `--pulse-keyframe` tokens + executing / trigger keyframes + `.machina-*` helpers |+| [client/src/themes/animations.css](../client/src/themes/animations.css) | Per-theme `--pulse-keyframe` tokens + executing / trigger keyframes + `.opencompany-*` helpers || [client/tailwind.config.js](../client/tailwind.config.js) | Colour bridge (`theme.extend.colors` → `var(--X)`, no `hsl()`) || [client/src/index.css](../client/src/index.css) | Plumbing: global resets + `@theme inline` `var()` bridge (no literal colours) || [client/src/contexts/ThemeContext.tsx](../client/src/contexts/ThemeContext.tsx) | `<ThemeProvider>` + `useTheme()` (12-way) |diff --git a/docs-internal/ui_migration_plan.md b/docs-internal/ui_migration_plan.mdindex fc8e9bef..c77404f9 100644--- a/docs-internal/ui_migration_plan.md+++ b/docs-internal/ui_migration_plan.md@@ -311,7 +311,7 @@ Driven by the upstream `design_handoff_machinaos_themes/` bundle expanding from| W3 — Header-font migration | Modal title, Parameter Panel header, Input Section header, Output Display Panel header, AI Result Modal heading carry the display-typography triplet (`font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-fg-default`) so headers read as Cinzel / Major Mono / UnifrakturCook / etc. under the appropriate themes. Body copy stays on `--font-body`. | `ParameterPanel.tsx`, `parameterPanel/InputSection.tsx`, `ui/{Modal,OutputDisplayPanel,AIResultModal,SettingsPanel}.tsx`, `TopToolbar.tsx`, `WorkflowSidebar.tsx`, `ComponentPalette.tsx`, `ConsolePanel.tsx` || W4 — Google Fonts | `client/index.html` deferred-loads 18 typefaces (Cinzel, Cormorant Garamond, IM Fell English / SC, JetBrains Mono, Major Mono Display, VT323, Shippori Mincho, Sawarabi Mincho, Special Elite, Bevan, Lato, Pirata One, EB Garamond, UnifrakturCook, Anonymous Pro, IBM Plex Mono, Courier Prime, Space Mono) covering all 10 themes' display + body + mono needs. `media="print" onload=this.media='all'` keeps the fetch off the critical path. | `client/index.html` || W5 — Icon contract | **Deferred.** The upstream `app/icons.js` ships 28-key SVG glyph sets per theme (heraldic shields, wireframe glow, woodcut hatching, etc.). Lucide-react retints correctly via `currentColor` under all 10 themes via the bridge, so the contract is a polish item rather than a correctness fix. Migration recipe documented in `theme_system.md`. | (deferred) |-| W6 — Sound contract | Full WebAudio engine ported from `app/sound.js` to `client/src/lib/sound.ts` — 10 packs (`parchment`, `marble`, `ink`, `clockwork`, `vibraphone`, `terminal`, `scrap`, `crypt`, `bell`, `telex`), 9 events (`click`, `hover`, `type`, `success`, `error`, `run`, `save`, `modalOpen`, `modalClose`), single shared `AudioContext` lazy-instantiated on first play. `client/src/hooks/useSound.ts` exposes `useSoundSync()` (mounts once at Dashboard root: mirrors `soundEnabled` slice into `Sounds.setEnabled`, reads `--sound-pack` from `:root` on every theme change, calls `Sounds.setPack(...)`) and `useSound()` (returns the play handle). `<ActionButton>`'s CVA primitive fires `play('click')` on every onClick — call sites unchanged. `<Modal>` fires `play('modalOpen' \| 'modalClose')` on `isOpen` edges via a previous-value ref. New `useAppStore.soundEnabled` slice (persisted to `localStorage['machinaos-sound']`, default off / opt-in) + Audio section in `SettingsPanel` with a `<Switch>` bound to it. | `lib/sound.ts`, `hooks/useSound.ts`, `store/useAppStore.ts`, `Dashboard.tsx`, `components/ui/{action-button,Modal,SettingsPanel}.tsx` |+| W6 — Sound contract | Full WebAudio engine ported from `app/sound.js` to `client/src/lib/sound.ts` — 10 packs (`parchment`, `marble`, `ink`, `clockwork`, `vibraphone`, `terminal`, `scrap`, `crypt`, `bell`, `telex`), 9 events (`click`, `hover`, `type`, `success`, `error`, `run`, `save`, `modalOpen`, `modalClose`), single shared `AudioContext` lazy-instantiated on first play. `client/src/hooks/useSound.ts` exposes `useSoundSync()` (mounts once at Dashboard root: mirrors `soundEnabled` slice into `Sounds.setEnabled`, reads `--sound-pack` from `:root` on every theme change, calls `Sounds.setPack(...)`) and `useSound()` (returns the play handle). `<ActionButton>`'s CVA primitive fires `play('click')` on every onClick — call sites unchanged. `<Modal>` fires `play('modalOpen' \| 'modalClose')` on `isOpen` edges via a previous-value ref. New `useAppStore.soundEnabled` slice (persisted to `localStorage['opencompany-sound']`, default off / opt-in) + Audio section in `SettingsPanel` with a `<Switch>` bound to it. | `lib/sound.ts`, `hooks/useSound.ts`, `store/useAppStore.ts`, `Dashboard.tsx`, `components/ui/{action-button,Modal,SettingsPanel}.tsx` || W7 — Canvas overlay packs | `client/src/hooks/useAppTheme.ts` extended from 2-way (`{light, dark}`) to 10-way: `THEME_OVERRIDES: Partial<Record<ThemeName, ColorOverride>>` applies a small overlay (primary, focus, focusRing, action colours, edge palette) on top of `lightColors` / `darkColors`. Existing 23 `useAppTheme` call sites read `theme.colors.X` and `theme.isDarkMode` unchanged — the `Colors` shape is preserved. Canvas selection rings, action buttons, and edge strokes now pick up the active theme's accents under all 10 themes. The `ColorOverride = Partial<Record<keyof Colors, string>>` form widens `as const` literal types so themes can substitute arbitrary hex / rgba values. | `hooks/useAppTheme.ts` |**Wave 14 numbers:**@@ -335,9 +335,9 @@ Driven by the upstream `design_handoff_machinaos_themes/` bundle expanding from## Context-The MachinaOs frontend was coupled to Ant Design (40 files, 187-line theme file, `ConfigProvider` at root). Pre-migration audit + research docs (now deleted; see git history under commit `4cb3dd9` if needed) prescribed shadcn/ui (canonical components copied via CLI registry) + Radix primitives + Tailwind 4 + JSON Forms for a schema-driven inspector. Phase 0/1 commits (`2209dba`, `7ac69fe`) included hand-written primitives and a toast facade — those got deleted as part of corrected Phase 0 (`cdeebb4`).+The OpenCompany frontend was coupled to Ant Design (40 files, 187-line theme file, `ConfigProvider` at root). Pre-migration audit + research docs (now deleted; see git history under commit `4cb3dd9` if needed) prescribed shadcn/ui (canonical components copied via CLI registry) + Radix primitives + Tailwind 4 + JSON Forms for a schema-driven inspector. Phase 0/1 commits (`2209dba`, `7ac69fe`) included hand-written primitives and a toast facade — those got deleted as part of corrected Phase 0 (`cdeebb4`).-**Outcome:** every component used in the app comes from `shadcn add` or is a raw HTML element with Tailwind utilities. No owned layout wrappers. No facade layers. Adapters only where the library API genuinely doesn't fit (e.g., custom JSON Forms renderers in Phase 6 — because no library knows about MachinaOs's node-parameter shapes).+**Outcome:** every component used in the app comes from `shadcn add` or is a raw HTML element with Tailwind utilities. No owned layout wrappers. No facade layers. Adapters only where the library API genuinely doesn't fit (e.g., custom JSON Forms renderers in Phase 6 — because no library knows about OpenCompany's node-parameter shapes).## Principlesdiff --git a/docs-internal/vercel_service.md b/docs-internal/vercel_service.mdindex 463aa051..0c331d2e 100644--- a/docs-internal/vercel_service.md+++ b/docs-internal/vercel_service.md@@ -69,7 +69,7 @@ Either path is sufficient; the token wins when both exist.Every invocation appends `--global-config <DATA_DIR>/vercel/` (plus`--no-color`; env gets `NO_COLOR=1`). The CLI's default`com.vercel.cli` location varies wildly by OS — pinning makes the-`auth.json` sniff deterministic and isolates MachinaOs-managed auth+`auth.json` sniff deterministic and isolates OpenCompany-managed authfrom the user's own system `vercel login` (the`CLAUDE_CONFIG_DIR = data_path("claude")` idiom). The path is composedinline in `_service.vercel_config_dir()` per the `core.paths` rule.diff --git a/docs/diagrams/default-workflows.svg b/docs/diagrams/default-workflows.svgindex 45edefc1..53e0188f 100644--- a/docs/diagrams/default-workflows.svg+++ b/docs/diagrams/default-workflows.svg@@ -59,7 +59,7 @@<!-- Header --><text x="550" y="40" text-anchor="middle" class="header-text">Three Workflows You Get on Day One</text>- <text x="550" y="62" text-anchor="middle" class="header-sub">Open MachinaOS for the first time and these are already loaded. Each shows a different pattern you can copy.</text>+ <text x="550" y="62" text-anchor="middle" class="header-sub">Open OpenCompany for the first time and these are already loaded. Each shows a different pattern you can copy.</text><!-- ============================================================ --><!-- WORKFLOW 1: AI ASSISTANT -->diff --git a/docs/diagrams/how-it-works.svg b/docs/diagrams/how-it-works.svgindex cbeeb18d..cd5183ab 100644--- a/docs/diagrams/how-it-works.svg+++ b/docs/diagrams/how-it-works.svg@@ -39,7 +39,7 @@<rect width="1100" height="620" class="bg"/><!-- Header -->- <text x="550" y="40" text-anchor="middle" class="header">How MachinaOS Works</text>+ <text x="550" y="40" text-anchor="middle" class="header">How OpenCompany Works</text><text x="550" y="62" text-anchor="middle" class="subheader">Build AI workflows visually. Connect them to your apps. Run everything on your own computer.</text><!-- ============ STEP 1: YOU PICK NODES ============ -->@@ -189,6 +189,6 @@<!-- ============ FOOTER STRIP ============ --><rect x="40" y="540" width="1020" height="60" class="footer-strip"/><text x="550" y="568" text-anchor="middle" class="footer-text">🏠 Everything runs on your computer</text>- <text x="550" y="588" text-anchor="middle" class="footer-sub">Your API keys, your data, your conversations — never sent to MachinaOS servers. Free local AI via Ollama and LM Studio.</text>+ <text x="550" y="588" text-anchor="middle" class="footer-sub">Your API keys, your data, your conversations — never sent to OpenCompany servers. Free local AI via Ollama and LM Studio.</text></svg>diff --git a/docs/diagrams/system-overview.svg b/docs/diagrams/system-overview.svgindex bfb86cc0..5a8f562d 100644--- a/docs/diagrams/system-overview.svg+++ b/docs/diagrams/system-overview.svg@@ -68,7 +68,7 @@<rect class="small-box small-exec" x="370" y="545" width="140" height="50" rx="6"/><text x="440" y="568" class="sub" text-anchor="middle">SQLite</text>- <text x="440" y="584" class="sub" text-anchor="middle" font-size="10">machina.db + credentials.db</text>+ <text x="440" y="584" class="sub" text-anchor="middle" font-size="10">workflow.db + credentials.db</text><rect class="small-box small-exec" x="525" y="545" width="140" height="50" rx="6"/><text x="595" y="568" class="sub" text-anchor="middle">Node.js server</text>diff --git a/install.ps1 b/install.ps1index 42bdbc7f..3696db88 100644--- a/install.ps1+++ b/install.ps1@@ -1,7 +1,7 @@-# MachinaOS Installer for Windows+# OpenCompany Installer for Windows# Usage: iwr -useb https://raw.githubusercontent.com/zeenie-ai/MachinaOS/main/install.ps1 | iex#-# This script installs MachinaOS and its dependencies:+# This script installs OpenCompany and its dependencies:# - Node.js 22+ (via winget/choco)# - Python 3.12+ (via winget/choco)# - uv (Python package manager)@@ -24,11 +24,7 @@ function Error-Exit { Write-Color "[ERROR] $args" "Red"; exit 1 }# BannerWrite-Host ""-Write-Color " __ __ _ _ ___ ____ " "Cyan"-Write-Color " | \/ | __ _ ___| |__ (_)_ __ __ _/ _ \/ ___| " "Cyan"-Write-Color " | |\/| |/ _`` |/ __| '_ \| | '_ \ / _`` | | | \___ \ " "Cyan"-Write-Color " | | | | (_| | (__| | | | | | | | (_| | |_| |___) |" "Cyan"-Write-Color " |_| |_|\__,_|\___|_| |_|_|_| |_|\__,_|\___/|____/ " "Cyan"+Write-Color " OpenCompany" "Cyan"Write-Host ""Write-Host "Open-source workflow automation with AI agents"Write-Host ""@@ -178,19 +174,19 @@ function Main {if (-not (Check-Uv)) { Install-Uv }Write-Host ""- Info "Installing MachinaOS..."+ Info "Installing OpenCompany..."Write-Host ""- # Install machinaos from npm- npm install -g machinaos+ # Install OpenCompany from npm+ npm install -g opencompanyWrite-Host ""Write-Color "============================================" "Green"- Write-Color " MachinaOS installed successfully!" "Green"+ Write-Color " OpenCompany installed successfully!" "Green"Write-Color "============================================" "Green"Write-Host ""- Write-Host " Start MachinaOS:"- Write-Host " machina start"+ Write-Host " Start OpenCompany:"+ Write-Host " company start"Write-Host ""Write-Host " Open in browser:"Write-Host " http://localhost:3000"@@ -199,7 +195,7 @@ function Main {Write-Host " npm install -g pnpm"Write-Host ""Write-Host " Run diagnostics:"- Write-Host " machina doctor"+ Write-Host " company doctor"Write-Host ""}diff --git a/install.sh b/install.shindex d0853dd2..db77161a 100755--- a/install.sh+++ b/install.sh@@ -1,8 +1,8 @@#!/usr/bin/env bash-# MachinaOS Installer+# OpenCompany Installer# Usage: curl -fsSL https://raw.githubusercontent.com/zeenie-ai/MachinaOS/main/install.sh | bash#-# This script installs MachinaOS and its dependencies:+# This script installs OpenCompany and its dependencies:# - Node.js 22+ (via brew/apt/dnf/pacman)# - Python 3.12+ (via brew/apt/dnf/pacman)# - uv (Python package manager)@@ -26,11 +26,7 @@ error_exit() { echo -e "${RED}[ERROR]${NC} $*"; exit 1; }# Bannerecho ""-echo -e "${CYAN} __ __ _ _ ___ ____ ${NC}"-echo -e "${CYAN} | \\/ | __ _ ___| |__ (_)_ __ __ _/ _ \\/ ___| ${NC}"-echo -e "${CYAN} | |\\/| |/ _\` |/ __| '_ \\| | '_ \\ / _\` | | | \\___ \\ ${NC}"-echo -e "${CYAN} | | | | (_| | (__| | | | | | | | (_| | |_| |___) |${NC}"-echo -e "${CYAN} |_| |_|\\__,_|\\___|_| |_|_|_| |_|\\__,_|\\___/|____/ ${NC}"+echo -e "${CYAN} OpenCompany${NC}"echo ""echo "Open-source workflow automation with AI agents"echo ""@@ -274,27 +270,27 @@ main() {setup_wsl_npmecho ""- info "Installing MachinaOS..."+ info "Installing OpenCompany..."echo ""- # Install machinaos from npm+ # Install OpenCompany from npm# On Linux/WSL without nvm, global npm install needs sudo unless prefix is user-writable- if npm install -g machinaos 2>/dev/null; then+ if npm install -g opencompany 2>/dev/null; then: # Installed successfullyelif command -v sudo &> /dev/null; theninfo "Retrying with sudo..."- sudo npm install -g machinaos+ sudo npm install -g opencompanyelse- error_exit "npm install -g failed. Try: sudo npm install -g machinaos"+ error_exit "npm install -g failed. Try: sudo npm install -g opencompany"fiecho ""echo -e "${GREEN}============================================${NC}"- echo -e "${GREEN} MachinaOS installed successfully!${NC}"+ echo -e "${GREEN} OpenCompany installed successfully!${NC}"echo -e "${GREEN}============================================${NC}"echo ""- echo " Start MachinaOS:"- echo " machina start"+ echo " Start OpenCompany:"+ echo " company start"echo ""echo " Open in browser:"echo " http://localhost:3000"@@ -306,7 +302,7 @@ main() {echo " npm install -g pnpm"echo ""echo " Run diagnostics:"- echo " machina doctor"+ echo " company doctor"echo ""}diff --git a/package.json b/package.jsonindex f1b7b310..4fbe7e92 100644--- a/package.json+++ b/package.json@@ -1,5 +1,5 @@{- "name": "machinaos",+ "name": "opencompany","version": "0.0.93","description": "Open source workflow automation platform with AI agents, React Flow, and n8n-inspired architecture","type": "module",@@ -26,7 +26,8 @@"url": "https://github.com/zeenie-ai/MachinaOS/issues"},"bin": {- "machina": "./bin/cli.js"+ "company": "./bin/cli.js",+ "machina": "./bin/machina.js"},"engines": {"node": ">=22.0.0"@@ -35,7 +36,7 @@"files": ["bin/","scripts/",- ".machina/workflows/",+ ".opencompany/workflows/","cli/","!cli/tests/","!cli/**/__pycache__/",diff --git a/pyproject.toml b/pyproject.tomlindex 3a02ecc4..79044d28 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,7 +1,7 @@[project]-name = "machinaos-cli"+name = "opencompany-cli"version = "0.1.0"-description = "MachinaOS project supervisor CLI (machina)."+description = "OpenCompany project supervisor CLI (company)."requires-python = ">=3.12"dependencies = ["typer>=0.12",@@ -11,7 +11,7 @@ dependencies = [# OS-native user data / cache / config / log dirs. Soft dependency# in the CLI (``cli/platform_.py`` imports it inside a try/except# and falls back to a stdlib implementation if the wheel isn't- # available) so ``machina clean`` / ``machina build`` still work+ # available) so ``company clean`` / ``company build`` still work# immediately after a wipe, before ``pip install`` has had a# chance to materialise it."platformdirs>=4.0",@@ -24,6 +24,9 @@ dependencies = [][project.scripts]+company = "cli.cli:app"+# Deprecated compatibility alias. New documentation and installs use+# ``company``; keep this entry point so existing automation keeps working.machina = "cli.cli:app"[build-system]@@ -45,7 +48,7 @@ managed = false[dependency-groups]dev = []-# ``machinaos-cli`` is a standalone Python CLI package -- installable+# ``opencompany-cli`` is a standalone Python CLI package -- installable# via ``pipx install .`` / ``pip install .`` against any Python >=3.12# without involving uv. It depends on nothing from ``server/``. The# server has its own uv-managed venv at ``server/.venv``; the CLI@@ -53,5 +56,5 @@ dev = []# (which runs ``uv run --no-sync ...`` with ``cwd=server/`` so uv# discovers ``server/pyproject.toml`` and activates ``server/.venv``).# Keeping the CLI independent of the uv workspace means contributors-# can install / run / debug ``machina`` on whatever interpreter is on+# can install / run / debug ``company`` on whatever interpreter is on# PATH -- no per-checkout venv activation required.diff --git a/scripts/install.js b/scripts/install.jsindex f5d34a1a..dd8309e9 100755--- a/scripts/install.js+++ b/scripts/install.js@@ -1,6 +1,6 @@#!/usr/bin/env node/**- * MachinaOS Installation Script+ * OpenCompany Installation Script** Called by postinstall.js after npm install.* Installs all dependencies including Python and uv.@@ -12,9 +12,14 @@ import { resolve, dirname } from 'path';import { fileURLToPath } from 'url';// Prevent recursive execution when npm install runs in subdirectories-if (process.env.MACHINAOS_INSTALLING === 'true') {+if (+ process.env.OPENCOMPANY_INSTALLING === 'true'+ || process.env.MACHINAOS_INSTALLING === 'true'+) {process.exit(0);}+process.env.OPENCOMPANY_INSTALLING = 'true';+// Keep mixed-version nested installs from invoking an older hook recursively.process.env.MACHINAOS_INSTALLING = 'true';const __dirname = dirname(fileURLToPath(import.meta.url));@@ -24,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 machinaos`` from a shell that has activated a+ // ``npm install -g 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``, which@@ -36,7 +41,11 @@ function run(cmd, cwd = ROOT, timeoutMs = 300000) {stdio: 'inherit',shell: true,timeout: timeoutMs,- env: { ...cleanEnv, MACHINAOS_INSTALLING: 'true' }+ env: {+ ...cleanEnv,+ OPENCOMPANY_INSTALLING: 'true',+ MACHINAOS_INSTALLING: 'true',+ }});}@@ -127,14 +136,15 @@ if (uvVersion) {}// Temporal binary: downloaded eagerly during install (step [6/6])-// by ``python -m services.temporal._install``, same call ``machina-// build`` already makes. The pooch cache (~/.cache/MachinaOs/...)+// by ``python -m services.temporal._install``, the same call that+// ``company build`` already makes. The pooch cache+// (~/.cache/OpenCompany/...)// makes re-runs sub-second. Done eagerly because// ``TemporalServerRuntime._pre_spawn`` unconditionally calls// ``ensure_temporal_binaries`` -- the runtime always uses the// pooch-downloaded binary regardless of any system ``temporal`` on// PATH -- so pre-fetching here eliminates a 30-90 s stall on the-// user's first ``machina start``.+// user's first ``company start``.let temporalVersion = getVersion('temporal --version');console.log(temporalVersion@@ -144,7 +154,7 @@ console.log(// agent-browser is managed by the Python backend// (server/nodes/browser/_install.py) — npm-installed into-// platformdirs.user_cache_path("MachinaOs")/browser/npm/ on first+// platformdirs.user_cache_path("OpenCompany")/browser/npm/ on first// use, with the Chromium runtime fetched by ``agent-browser install``// when the browser node first spawns. No npm dep, no postinstall step.@@ -233,23 +243,23 @@ try {run(`uv pip install --python "${cliVenvPython}" --quiet -e .`, ROOT);// Eagerly fetch the official Temporal CLI binary (~90 MB tarball- // from temporal.download/cli/archive/latest). Same call ``machina+ // from temporal.download/cli/archive/latest). Same call ``company// build`` step [6/6] makes. The runtime supervisor unconditionally// uses this pooch-cached copy via// ``TemporalServerRuntime._pre_spawn`` -- it ignores any system// ``temporal`` on PATH -- so pre-fetching at install time turns a- // 30-90 s stall on first ``machina start`` into a sub-second+ // 30-90 s stall on first ``company start`` into a sub-second// cache hit. Idempotent on re-install (pooch cache).step++;console.log(`[${step}/${totalSteps}] Installing Temporal binaries...`);// Non-fatal: TemporalServerRuntime._pre_spawn() re-runs this download- // lazily on first `machina start` — a failed fetch must never fail+ // lazily on first `company start` — a failed fetch must never fail// `npm install`.try {run('uv run python -m services.temporal._install', serverDir, 600000);} catch (err) {console.log(` Warning: Temporal CLI download failed (non-fatal): ${err.message}`);- console.log(' It will be fetched automatically on first `machina start`.');+ console.log(' It will be fetched automatically on first `company start`.');}// WhatsApp RPC is now an npm dependency - binary downloaded via postinstalldiff --git a/scripts/postinstall.js b/scripts/postinstall.jsindex a25df444..889515f8 100755--- a/scripts/postinstall.js+++ b/scripts/postinstall.js@@ -1,6 +1,6 @@#!/usr/bin/env node/**- * Postinstall script for MachinaOS.+ * Postinstall script for OpenCompany.** Runs install.js to check deps, install npm/Python packages, build.* WhatsApp RPC is now an npm dependency - binary downloaded by its own postinstall.@@ -19,6 +19,7 @@ function fixPermissions() {const files = [resolve(ROOT, 'bin/cli.js'),+ resolve(ROOT, 'bin/machina.js'),resolve(ROOT, 'scripts/install.js'),resolve(ROOT, 'install.sh'),];@@ -35,7 +36,8 @@ function fixPermissions() {}const isCI = process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';-const isBuilding = process.env.MACHINAOS_BUILDING === 'true';+const isBuilding = process.env.OPENCOMPANY_BUILDING === 'true'+ || process.env.MACHINAOS_BUILDING === 'true';if (isCI) {console.log('CI detected, skipping postinstall.');@@ -50,7 +52,7 @@ if (isBuilding) {console.log('');console.log('========================================');-console.log(' MachinaOS - Installing...');+console.log(' OpenCompany - Installing...');console.log('========================================');console.log('');@@ -83,11 +85,11 @@ async function main() {await runScript(resolve(__dirname, 'install.js'));// Note: we deliberately do NOT `pip install -e ./cli` here. An- // editable install creates a `Scripts/machina.exe` (or- // `bin/machina`) entry-point that imports `cli.cli` from the+ // editable install creates a Python console-script entry-point that+ // imports `cli.cli` from the// package's npm install directory. When npm later moves, prunes,// or upgrades that directory, the shim survives but its target- // disappears -- the user runs `machina start` and gets+ // disappears -- the user runs `company start` and gets// `ModuleNotFoundError: No module named 'cli'`. The same// shim also wins PATH precedence over the npm bin shim at// bin/cli.js, masking the real entry point.@@ -101,11 +103,9 @@ async function main() {// Detect a stale `Scripts/machina.exe` (or `bin/machina`) left// behind by a prior version's `pip install -e ./machina` (the dir// was renamed from `machina/` to `cli/`; pip's metadata can lag).- // The pip distribution name is still ``machina`` (the public CLI- // name); the source dir is ``cli/``. If pip shows the package- // installed but the current `machina` on PATH is NOT our Node- // shim, surface the cleanup command -- otherwise the user keeps- // hitting the dead Python entry-point even after upgrading.+ // The legacy pip distribution name was ``machina``; the source dir is+ // ``cli/``. If pip shows that old package, surface the cleanup command.+ // The supported public CLI is the npm-provided `company` shim.try {const pipShow = execSync('python -m pip show machina 2>nul || python3 -m pip show machina 2>/dev/null', {encoding: 'utf-8', stdio: ['ignore', 'pipe', 'ignore'], shell: true,@@ -124,10 +124,10 @@ async function main() {console.log('');console.log('========================================');- console.log(' MachinaOS installed successfully!');+ console.log(' OpenCompany installed successfully!');console.log('========================================');console.log('');- console.log('Run: machina start');+ console.log('Run: company start');console.log('Open: http://localhost:3000');console.log('');@@ -139,7 +139,7 @@ async function main() {console.log('');console.log(`Error: ${err.message}`);console.log('');- console.log('Try: machina build');+ console.log('Try: company build');console.log('');process.exit(1);}diff --git a/scripts/preinstall.js b/scripts/preinstall.jsindex 984aecda..d32d447a 100755--- a/scripts/preinstall.js+++ b/scripts/preinstall.js@@ -1,6 +1,6 @@#!/usr/bin/env node/**- * Preinstall cleanup script for MachinaOS.+ * Preinstall cleanup script for OpenCompany.** Fixes npm ENOTEMPTY error by cleaning up leftover temp directories* that npm fails to remove during failed install/uninstall operations.@@ -59,9 +59,9 @@ function cleanup() {try {const entries = readdirSync(nodeModules);- // Clean .machina-* temp directories+ // Clean current and pre-rebrand npm temp directories.for (const name of entries) {- if (name.startsWith('.machina-')) {+ if (name.startsWith('.opencompany-') || name.startsWith('.machina-')) {const fullPath = resolve(nodeModules, name);try {if (statSync(fullPath).isDirectory()) {diff --git a/server/config/credential_providers.json b/server/config/credential_providers.jsonindex 508108ea..363febd0 100644--- a/server/config/credential_providers.json+++ b/server/config/credential_providers.json@@ -167,7 +167,7 @@"category": "ai","category_label": "AI Providers","kind": "oauth",- "_kind_doc": "Stripe-style CLI-managed auth: MachinaOs spawns `<provider> login` from a per-provider WS handler; the CLI manages its own local-isolated credentials (~/.claude-machina/, future ~/.codex-machina/), and we write a synthetic marker OAuth token on success so the catalogue's `stored` flag flips. OAuthConnect.tsx renders empty fields because `fields=[]` (see OAuthConnect.tsx:42 — the documented Stripe-style fieldless-CLI case). Each child sets its own `ws.login`/`ws.logout` so the handler name encodes the provider (Twitter / Google / Stripe convention — frontend dispatches `{}` payload).",+ "_kind_doc": "Stripe-style CLI-managed auth: OpenCompany spawns `<provider> login` from a per-provider WS handler; each CLI manages credentials in its isolated directory under <DATA_DIR>, and we write a synthetic marker OAuth token on success so the catalogue's `stored` flag flips. OAuthConnect.tsx renders empty fields because `fields=[]` (see OAuthConnect.tsx:42 — the documented Stripe-style fieldless-CLI case). Each child sets its own `ws.login`/`ws.logout` so the handler name encodes the provider (Twitter / Google / Stripe convention — frontend dispatches `{}` payload).","fields": []},@@ -530,7 +530,7 @@"help": "Create at vercel.com/account/tokens. Used headless as VERCEL_TOKEN on every CLI call and takes precedence over CLI login. The Login button works without it."}],- "instructions": "Two independent auth paths: click 'Login with Vercel' for the browser device flow (the CLI is auto-installed via npm and stores its auth state under MachinaOs's data directory), or paste an access token above for headless use."+ "instructions": "Two independent auth paths: click 'Login with Vercel' for the browser device flow (the CLI is auto-installed via npm and stores its auth state under OpenCompany's data directory), or paste an access token above for headless use."},"github": {@@ -545,7 +545,7 @@"logout": "github_logout","status": "github_status"},- "instructions": "Click 'Login with GitHub' — the gh CLI (auto-installed) opens github.com/login/device in your browser and the one-time code is shown here. The token is stored by gh in your system credential store; MachinaOs never keeps it. After login, 'gh auth setup-git' runs so git remotes authenticate too. Alternative: run 'gh auth login' (or pipe a Personal Access Token to 'gh auth login --with-token') in a terminal on this machine."+ "instructions": "Click 'Login with GitHub' — the gh CLI (auto-installed) opens github.com/login/device in your browser and the one-time code is shown here. The token is stored by gh in your system credential store; OpenCompany never keeps it. After login, 'gh auth setup-git' runs so git remotes authenticate too. Alternative: run 'gh auth login' (or pipe a Personal Access Token to 'gh auth login --with-token') in a terminal on this machine."}}}diff --git a/server/config/llm_defaults.json b/server/config/llm_defaults.jsonindex 955eddec..aa0c0704 100644--- a/server/config/llm_defaults.json+++ b/server/config/llm_defaults.json@@ -113,7 +113,7 @@"models_endpoint": "https://openrouter.ai/api/v1/models","api_key_param": "api_key","max_tokens_param": "max_tokens",- "extra_headers": {"HTTP-Referer": "http://localhost:3000", "X-Title": "MachinaOS"},+ "extra_headers": {"HTTP-Referer": "http://localhost:3000", "X-Title": "OpenCompany"},"max_output_tokens": {"_default": 4096},diff --git a/server/core/ansi.py b/server/core/ansi.pyindex d2efd7c8..d964f879 100644--- a/server/core/ansi.py+++ b/server/core/ansi.py@@ -1,7 +1,7 @@"""Strip ANSI escape sequences from captured terminal output.Subprocess output (vite / npm / git / etc.) embeds ANSI CSI colour and-cursor-control codes. MachinaOs renders terminal output as plain text — the+cursor-control codes. OpenCompany renders terminal output as plain text — theTerminal tab (``process_service`` broadcasts + log files) and node Output panels(the shell node's ``stdout``) — so the raw codes surface as garbage like``[36mvite v7.3.3[39m``. Strip them at the capture boundary so stored logs,diff --git a/server/core/auth_cookies.py b/server/core/auth_cookies.pynew file mode 100644index 00000000..fe3f18a5--- /dev/null+++ b/server/core/auth_cookies.py@@ -0,0 +1,31 @@+"""Session-cookie naming with a one-way OpenCompany migration bridge."""++from __future__ import annotations++from collections.abc import Mapping+from typing import Optional, Protocol+++LEGACY_SESSION_COOKIE_NAME = "machina_token"+++class _CookieSettings(Protocol):+ jwt_cookie_name: str+++def session_cookie_names(settings: _CookieSettings) -> tuple[str, ...]:+ """Canonical cookie first, followed by the legacy name when distinct."""++ names = [settings.jwt_cookie_name]+ if LEGACY_SESSION_COOKIE_NAME not in names:+ names.append(LEGACY_SESSION_COOKIE_NAME)+ return tuple(names)+++def get_session_token(cookies: Mapping[str, str], settings: _CookieSettings) -> Optional[str]:+ """Read the canonical session cookie, falling back to ``machina_token``."""++ return next((cookies.get(name) for name in session_cookie_names(settings) if cookies.get(name)), None)+++__all__ = ["LEGACY_SESSION_COOKIE_NAME", "get_session_token", "session_cookie_names"]diff --git a/server/core/cache.py b/server/core/cache.pyindex f7649ed5..bfd893be 100644--- a/server/core/cache.py+++ b/server/core/cache.py@@ -86,7 +86,7 @@ class CacheService:self._streams_available = Falsereturn- test_stream = "_machina_streams_test"+ test_stream = "_opencompany_streams_test"try:# Try XADD - this will fail if Streams aren't supportedmsg_id = await self.redis.xadd(test_stream, {"test": "1"}, maxlen=1)diff --git a/server/core/config.py b/server/core/config.pyindex 0ba1f9ff..5228d9c1 100644--- a/server/core/config.py+++ b/server/core/config.py@@ -25,7 +25,7 @@ class Settings(BaseSettings):auth_mode: Literal["single", "multi"] = Field(default="single", env="AUTH_MODE")jwt_secret_key: str = Field(env="JWT_SECRET_KEY", min_length=32)jwt_expire_minutes: int = Field(default=10080, env="JWT_EXPIRE_MINUTES", ge=60) # 7 days- jwt_cookie_name: str = Field(default="machina_token", env="JWT_COOKIE_NAME")+ jwt_cookie_name: str = Field(default="opencompany_token", env="JWT_COOKIE_NAME")jwt_cookie_secure: bool = Field(default=False, env="JWT_COOKIE_SECURE") # True in productionjwt_cookie_samesite: Literal["lax", "strict", "none"] = Field(default="lax", env="JWT_COOKIE_SAMESITE")@@ -119,7 +119,7 @@ class Settings(BaseSettings):# of an always-on cloud VM; explicit TEMPORAL_<QUEUE>_CONCURRENCY# env vars always win).# local — developer machine; sleeps/hibernates; 4-8 cores- # cloud — always-on server (machina deploy)+ # cloud — always-on server (company deploy)# self_hosted — user-managed always-on boxdeployment_mode: Literal["local", "cloud", "self_hosted"] = Field(default="local",@@ -152,7 +152,7 @@ class Settings(BaseSettings):# Terminate every workflow in ``Running`` state on server boot.# Preserves history (workflows show as ``Terminated`` in the# Temporal UI, not deleted) but prevents auto-resumption, since- # MachinaOS's ``DeploymentManager`` has no boot-time reconcile+ # OpenCompany's ``DeploymentManager`` has no boot-time reconcile# against Temporal Visibility yet — resumed workflows would# otherwise be invisible to the UI.temporal_terminate_running_on_startup: bool = Field(@@ -240,15 +240,16 @@ class Settings(BaseSettings):# Data directory (base for all persistent storage: DBs, workspaces,# workflows, claude state). Default is the user's home dir- # (``~/.machina``) — same convention claude code itself uses+ # (``~/.opencompany``) — same convention claude code itself uses# (``~/.claude/``), Stripe (``~/.config/stripe/``), ngrok# (``~/.ngrok2/``). Survives ``rm -rf`` of the repo. Resolution# rules (``~``, absolute, repo-relative) live in- # :func:`core.paths.machina_root`. No auto-migration from the+ # :func:`core.paths.opencompany_root`. The path resolver falls back to+ # an existing sibling ``.machina`` root so upgrades retain state.# pre-cutover ``data/`` + ``workflows/`` layout — operators# either set ``DATA_DIR=data`` to keep the old layout or move# the contents manually (see ``paths.py`` docstring).- data_dir: str = Field(default="~/.machina", env="DATA_DIR")+ data_dir: str = Field(default="~/.opencompany", env="DATA_DIR")# Credentials Database (separate encrypted database for API keys and OAuth tokens)# Resolved relative to data_dir unless absolute@@ -346,7 +347,7 @@ class Settings(BaseSettings):# Filesystem-path fields that may use ``~`` in ``.env``. Expanded# once at load time so every downstream consumer- # (``core.paths.machina_root``, ``Settings._resolve_under_data``,+ # (``core.paths.opencompany_root``, ``Settings._resolve_under_data``,# the Temporal SQLite path, WhatsApp runtime dir, ...) sees# a real path. ``Path.expanduser()`` is a no-op when ``~`` isn't# present, so we can run it unconditionally.@@ -360,10 +361,10 @@ class Settings(BaseSettings):"""Compose the SQLAlchemy URL from ``DATA_DIR`` + ``WORKFLOW_DB_FILENAME``.Always ``sqlite+aiosqlite:///<abspath>`` — the only DB engine- MachinaOS uses. Parent dir is mkdir'd here so the DB file can+ OpenCompany uses. Parent dir is mkdir'd here so the DB file canbe opened on first access without a separate bootstrap step.Reads :meth:`_resolve_under_data` so the same DEV / daemon- toggle (``.env.dev`` swapping ``DATA_DIR=.machina``) that moves+ toggle (``.env.dev`` swapping ``DATA_DIR=.opencompany``) that movesevery other state path moves ``workflow.db`` too."""db_path = Path(self._resolve_under_data(self.workflow_db_filename))diff --git a/server/core/credential_backends.py b/server/core/credential_backends.pyindex 16010177..aa1083e1 100644--- a/server/core/credential_backends.py+++ b/server/core/credential_backends.py@@ -151,7 +151,8 @@ class KeyringBackend(CredentialBackend):Best for: Desktop deployments, single-user installations."""- SERVICE_NAME = "MachinaOS"+ SERVICE_NAME = "OpenCompany"+ LEGACY_SERVICE_NAME = "MachinaOS"def __init__(self):self._keyring = None@@ -185,11 +186,21 @@ class KeyringBackend(CredentialBackend):return Falseasync def retrieve(self, key: str) -> Optional[str]:- """Retrieve credential from OS keyring."""+ """Retrieve a credential, migrating the legacy service namespace."""if not self._available:return Nonetry:- return self._keyring.get_password(self.SERVICE_NAME, key)+ value = self._keyring.get_password(self.SERVICE_NAME, key)+ if value is not None:+ return value++ value = self._keyring.get_password(self.LEGACY_SERVICE_NAME, key)+ if value is not None:+ self._keyring.set_password(self.SERVICE_NAME, key, value)+ metadata = self._keyring.get_password(self.LEGACY_SERVICE_NAME, f"{key}__metadata")+ if metadata is not None:+ self._keyring.set_password(self.SERVICE_NAME, f"{key}__metadata", metadata)+ return valueexcept Exception as e:logger.error(f"KeyringBackend retrieve failed: {e}")return None@@ -198,17 +209,15 @@ class KeyringBackend(CredentialBackend):"""Delete credential from OS keyring."""if not self._available:return False- try:- self._keyring.delete_password(self.SERVICE_NAME, key)- # Also delete metadata if exists- try:- self._keyring.delete_password(self.SERVICE_NAME, f"{key}__metadata")- except Exception:- pass # Metadata may not exist- return True- except Exception as e:- logger.error(f"KeyringBackend delete failed: {e}")- return False+ deleted = False+ for service_name in (self.SERVICE_NAME, self.LEGACY_SERVICE_NAME):+ for item_key in (key, f"{key}__metadata"):+ try:+ self._keyring.delete_password(service_name, item_key)+ deleted = True+ except Exception:+ pass # Namespace/key may not exist.+ return deleteddef is_available(self) -> bool:"""Check if keyring is available."""diff --git a/server/core/credentials_database.py b/server/core/credentials_database.pyindex 1645bec6..0d58297d 100644--- a/server/core/credentials_database.py+++ b/server/core/credentials_database.py@@ -4,7 +4,7 @@ This module provides a dedicated SQLite database for storing sensitive credentiawith field-level Fernet encryption. Credentials are encrypted before storage anddecrypted on retrieval.-The database is separate from the main application database (machina.db) to:+The database is separate from the main application database (workflow.db) to:1. Isolate sensitive data from application data2. Allow different backup/security policies3. Enable easier credential rotation and managementdiff --git a/server/core/paths.py b/server/core/paths.pyindex 5164e0f5..fe57ba57 100644--- a/server/core/paths.py+++ b/server/core/paths.py@@ -1,18 +1,18 @@-"""Central path resolution for MachinaOs's on-disk state.+"""Central path resolution for OpenCompany's on-disk state.Single source of truth for every directory the app reads or writes.-The default root lives at ``~/.machina/`` — the user's home directory,+The default root lives at ``~/.opencompany/`` — the user's home directory,cross-platform via :meth:`pathlib.Path.home` (``$HOME`` on POSIX,``%USERPROFILE%`` on Windows). Override with ``DATA_DIR`` env var.Why home-rooted (not project-local): claude's auth, the WhatsAppsession DB, the credentials store, and per-workflow workspaces all-survive ``rm -rf`` of the repo. Multiple MachinaOs checkouts on the+survive ``rm -rf`` of the repo. Multiple OpenCompany checkouts on thesame machine share state instead of each carrying its own copy. The-``~/.machina/`` convention matches Stripe's ``~/.config/stripe/``,+``~/.opencompany/`` convention matches Stripe's ``~/.config/stripe/``,ngrok's ``~/.ngrok2/``, and claude code's own ``~/.claude/``.-Generic subtree layout under ``<DATA_DIR>/`` (= ``~/.machina/`` by+Generic subtree layout under ``<DATA_DIR>/`` (= ``~/.opencompany/`` bydefault). The module exports only generic helpers — plugin-specificsubpaths (``<DATA_DIR>/claude/``, ``<DATA_DIR>/packages/stripe/bin/``,etc.) are composed at the plugin's call site, NOT hardcoded here.@@ -28,15 +28,15 @@ That keeps this module from growing one helper per package:- :func:`workspaces_dir` ``<DATA_DIR>/workspaces/`` — per-workflow scratch- :func:`workspace_dir` ``<DATA_DIR>/workspaces/<workflow_id>/``- :func:`example_workflows_dir` git-tracked seed JSONs at- ``<repo>/.machina/workflows/`` (NOT under DATA_DIR)+ ``<repo>/.opencompany/workflows/`` (NOT under DATA_DIR)Reference layout once typical plugins compose against the helpersabove (Wave 14):- ``<DATA_DIR>/claude/`` Claude Code auth state (CLAUDE_CONFIG_DIR)- - ``<DATA_DIR>/packages/`` Single shared MachinaOs install+ - ``<DATA_DIR>/packages/`` Single shared OpenCompany installroot. Holds one ``package.json`` + ``package-lock.json`` +- ``node_modules/`` covering every MachinaOs-managed npm package+ ``node_modules/`` covering every OpenCompany-managed npm package(``@anthropic-ai/claude-code``, ``edgymeow``, ``agent-browser``).Each plugin's ``_install.py`` runs``npm install <pkg> --prefix <packages_dir>`` to extend the tree@@ -51,26 +51,24 @@ above (Wave 14):- ``<DATA_DIR>/workflow.db`` SQLite app DB- ``<DATA_DIR>/temporal.db`` Temporal server SQLite-The pre-fix layout split binaries under+Legacy MachinaOS builds split binaries under:func:`platformdirs.user_cache_path` (``~/.cache/MachinaOs/`` etc.)and Temporal under its own ``pooch.os_cache("machinaos-temporal")``namespace — operators reported both as "not local". Daemon cwdsalso used to live under ``workspaces/_<namespace>/`` and pollutedper-workflow scratch with framework state. Consolidating everything-under ``<DATA_DIR>/`` means a single ``mv ~/.machina /backup``-carries the entire MachinaOs footprint.+under ``<DATA_DIR>/`` means a single ``mv ~/.opencompany /backup``+carries the entire OpenCompany footprint.Out of scope: globally-installed binaries (Himalaya — systempackage manager) and npm `package.json` deps managed by pnpm (noneremain after the WhatsApp migration).-Shipped example workflows live at ``<repo>/.machina/workflows/`` —+Shipped example workflows live at ``<repo>/.opencompany/workflows/`` —git-tracked seed JSONs auto-imported on first launch by-``services.example_loader``. The path is namespaced under ``.machina``-to share the runtime convention; the rest of ``<repo>/.machina/`` is-gitignored. ``example_workflows_dir()`` resolves to that fixed seed-location regardless of ``DATA_DIR`` — operators do NOT relocate the-shipped seeds.+``services.example_loader``. During migration, the legacy+``<repo>/.machina/workflows/`` directory is used only when the canonical+directory is absent. The location is independent of ``DATA_DIR``.Importable as ``from core.paths import data_path, package_dir,workspace_dir, …`` so consumers never have to recompute the root@@ -78,7 +76,7 @@ themselves (the old ``Path(__file__).resolve().parents[N] / "data"/ ...`` idiom was duplicated across 4+ files and brittle to filemoves).-DATA_DIR resolution rules (see :func:`machina_root`):+DATA_DIR resolution rules (see :func:`opencompany_root`):- Starts with ``~`` → ``Path.expanduser()`` (user home).- Absolute path → used verbatim.@@ -90,10 +88,10 @@ responsibility — set ``DATA_DIR`` to the legacy path (e.g.``DATA_DIR=data``) to keep using the old layout, or move thecontents manually:- mv server/data/claude-machina ~/.machina/claude- mv server/data/workspaces ~/.machina/workspaces- mv server/data/workflow.db ~/.machina/workflow.db- mv server/data/credentials.db ~/.machina/credentials.db+ mv server/data/claude-machina ~/.opencompany/claude+ mv server/data/workspaces ~/.opencompany/workspaces+ mv server/data/workflow.db ~/.opencompany/workflow.db+ mv server/data/credentials.db ~/.opencompany/credentials.db"""from __future__ import annotations@@ -107,10 +105,31 @@ logger = get_logger(__name__)# Repo root: server/core/paths.py -> parents[2] is the project root._REPO_ROOT = Path(__file__).resolve().parents[2]+_CANONICAL_STATE_DIR = ".opencompany"+_LEGACY_STATE_DIR = ".machina"+++def _has_runtime_state(root: Path) -> bool:+ """Return whether ``root`` contains state beyond shipped workflows.++ ``.opencompany/workflows`` is checked into the repository, so neither an+ empty canonical directory nor a seed-only directory proves that a user+ migrated runtime state. Any other entry makes that root authoritative.+ """+ if not root.exists():+ return False+ if not root.is_dir():+ return True+ try:+ return any(entry.name != "workflows" for entry in root.iterdir())+ except OSError:+ # If the directory cannot be inspected, keep it authoritative rather+ # than redirecting state based on an uncertain observation.+ return Truedef project_root() -> Path:- """Absolute path of the MachinaOs git repo root."""+ """Absolute path of the OpenCompany git repo root."""return _REPO_ROOT@@ -126,7 +145,7 @@ def _resolve_data_path(base: str, subpath: str = "") -> Path:- ``Path.expanduser()`` on ``base`` — no-op when no ``~`` present.- Absolute resolved ``base`` → used verbatim.- Relative ``base`` → resolved under :func:`project_root` (so- dev mode's ``DATA_DIR=.machina`` lands at ``<repo>/.machina/``+ dev mode's ``DATA_DIR=.opencompany`` lands at ``<repo>/.opencompany/``regardless of the subprocess's cwd).- Empty ``subpath`` → returns the resolved base.- Absolute ``subpath`` → returned verbatim.@@ -135,6 +154,13 @@ def _resolve_data_path(base: str, subpath: str = "") -> Path:b = Path(base).expanduser()if not b.is_absolute():b = project_root() / b+ # Rebranded installs use .opencompany. If an upgraded checkout has not+ # moved its state yet, keep using the existing .machina sibling rather+ # than silently starting with empty databases and credentials.+ if b.name == _CANONICAL_STATE_DIR and not _has_runtime_state(b):+ legacy = b.with_name(_LEGACY_STATE_DIR)+ if _has_runtime_state(legacy):+ b = legacyif not subpath:return b.resolve()p = Path(subpath)@@ -144,7 +170,7 @@ def _resolve_data_path(base: str, subpath: str = "") -> Path:def data_path(subpath: str | Path = "") -> Path:"""Absolute path of ``<DATA_DIR>/<subpath>``.- Single entry point for every state location MachinaOS reads or+ Single entry point for every state location OpenCompany reads orwrites. Reads ``Settings.data_dir`` (env var ``DATA_DIR``) — sothe dev / daemon split (``.env.dev`` vs ``.env.template``) movesevery state path together. Pass an empty ``subpath`` to get the@@ -158,18 +184,23 @@ def data_path(subpath: str | Path = "") -> Path:return _resolve_data_path(Settings().data_dir, str(subpath))-def machina_root() -> Path:+def opencompany_root() -> Path:"""Absolute path of the configured DATA_DIR (= ``data_path()``)."""return data_path()+def machina_root() -> Path:+ """Deprecated compatibility alias for :func:`opencompany_root`."""+ return opencompany_root()++def packages_dir() -> Path:- """Root for binaries MachinaOs downloads on first use.+ """Root for binaries OpenCompany downloads on first use.Resolves to ``<DATA_DIR>/packages/`` — under the same operator-visible tree as auth state, workspaces, and daemon cwds. One- ``mv ~/.machina`` carries every MachinaOs-managed file together,- and one glance at ``~/.machina/`` shows the operator everything+ ``mv ~/.opencompany`` carries every OpenCompany-managed file together,+ and one glance at ``~/.opencompany/`` shows the operator everythingthe app owns.Pre-fix this used :func:`platformdirs.user_cache_path` so binaries@@ -177,7 +208,7 @@ def packages_dir() -> Path:MachinaOs/`` (macOS) / ``%LOCALAPPDATA%\\MachinaOs\\Cache\\``(Windows). Operators reported it as "not local" — the splitbetween binaries (OS cache) and state (DATA_DIR) was confusing- and the OS-cache rationale (machina clean keeps auth, cache+ and the OS-cache rationale (company clean keeps auth, cachewipe drops binaries) didn't matter in practice since both wipeoperations are operator-driven anyway.@@ -193,8 +224,8 @@ def package_dir(name: str) -> Path:``ensure_temporal_binaries``, ``agent_browser_binary_path``, …)drops its tree here. Examples::- package_dir("stripe") -> ~/.machina/packages/stripe/- package_dir("browser") -> ~/.machina/packages/browser/+ package_dir("stripe") -> ~/.opencompany/packages/stripe/+ package_dir("browser") -> ~/.opencompany/packages/browser/Caller is responsible for ``mkdir(parents=True, exist_ok=True)``so this helper stays side-effect-free and safe to call during@@ -232,7 +263,7 @@ def workspaces_dir() -> Path:def workspace_dir(workflow_id: str) -> Path:- """Per-workflow workspace at ``<machina_root>/workspaces/<workflow_id>/``.+ """Per-workflow workspace at ``<opencompany_root>/workspaces/<workflow_id>/``.The workflow executor injects this into the execution context as``ctx.raw["workspace_dir"]`` and the cli_agent service splices it@@ -247,18 +278,20 @@ def workspace_dir(workflow_id: str) -> Path:def example_workflows_dir() -> Path:"""Shipped example workflow JSONs, auto-imported on first launch.- Fixed at ``<repo>/.machina/workflows/`` — these are git-tracked- seed JSONs that ship with the repo (see ``services.example_loader``- for the import flow). The path is intentionally NOT under- :func:`machina_root` because the seeds must survive ``machina- clean`` (which wipes the rest of ``.machina/``) and must be the- same location regardless of the operator's ``DATA_DIR`` setting.+ Canonically fixed at ``<repo>/.opencompany/workflows/`` — these are+ git-tracked seed JSONs that ship with the repo. An existing legacy+ ``<repo>/.machina/workflows/`` directory is used when the canonical+ directory has not been created yet. Neither path is under+ :func:`opencompany_root`."""- return project_root() / ".machina" / "workflows"+ canonical = project_root() / _CANONICAL_STATE_DIR / "workflows"+ legacy = project_root() / _LEGACY_STATE_DIR / "workflows"+ return canonical if canonical.exists() or not legacy.exists() else legacy__all__ = ["project_root",+ "opencompany_root","machina_root","data_path","packages_dir",diff --git a/server/core/tracing.py b/server/core/tracing.pyindex 39e9718b..0a030f7a 100644--- a/server/core/tracing.py+++ b/server/core/tracing.py@@ -58,7 +58,7 @@ def _compact_span_formatter(span: ReadableSpan) -> str:return " ".join(parts) + "\n"-def init_tracing(service_name: str = "machinaos-backend") -> None:+def init_tracing(service_name: str = "opencompany-backend") -> None:"""Configure the global TracerProvider.Idempotent — safe to call multiple times. Subsequent calls arediff --git a/server/gunicorn.conf.py b/server/gunicorn.conf.pyindex a0be8ae3..723a09ed 100644--- a/server/gunicorn.conf.py+++ b/server/gunicorn.conf.py@@ -41,7 +41,7 @@ errorlog = "-"loglevel = log_level# Process naming-proc_name = "machina-backend"+proc_name = "opencompany-backend"# Preload app for faster worker startup (disable in debug for reload)preload_app = not debugdiff --git a/server/main.py b/server/main.pyindex 364de950..63da6578 100644--- a/server/main.py+++ b/server/main.py@@ -152,17 +152,24 @@ async def lifespan(app: FastAPI):# login gate). Idempotent: only creates the owner when no user exists,# so restarts and in-app password changes are never clobbered. Reuses# the built-in auth (UserAuthService.register -> bcrypt User row) — no- # new auth code. Set MACHINA_OWNER_EMAIL + MACHINA_OWNER_PASSWORD- # (password >= 8 chars) via Secret Manager to define the secret login.+ # new auth code. Set OPENCOMPANY_OWNER_EMAIL ++ # OPENCOMPANY_OWNER_PASSWORD (password >= 8 chars) via Secret Manager.+ # MACHINA_OWNER_* remains a read-only fallback for existing deployments.import os as _seed_os- _owner_email = _seed_os.environ.get("MACHINA_OWNER_EMAIL", "").strip()- _owner_password = _seed_os.environ.get("MACHINA_OWNER_PASSWORD", "")+ _owner_email = _seed_os.environ.get("OPENCOMPANY_OWNER_EMAIL", _seed_os.environ.get("MACHINA_OWNER_EMAIL", "")).strip()+ _owner_password = _seed_os.environ.get(+ "OPENCOMPANY_OWNER_PASSWORD",+ _seed_os.environ.get("MACHINA_OWNER_PASSWORD", ""),+ )if _owner_email and _owner_password:try:_user_auth = container.user_auth_service()if await _user_auth.get_user_count() == 0:- _owner_name = _seed_os.environ.get("MACHINA_OWNER_NAME", "Owner")+ _owner_name = _seed_os.environ.get(+ "OPENCOMPANY_OWNER_NAME",+ _seed_os.environ.get("MACHINA_OWNER_NAME", "Owner"),+ )_seeded, _seed_err = await _user_auth.register(_owner_email, _owner_password, _owner_name)if _seeded is not None:logger.info("Seeded owner account from environment", email=_owner_email)@@ -324,7 +331,7 @@ async def lifespan(app: FastAPI):# against Temporal Visibility. History stays in# the SQLite db; UI shows workflows as# ``Terminated`` rather than continuing to run- # invisibly to MachinaOS. Toggle off via+ # invisibly to OpenCompany. Toggle off via# TEMPORAL_TERMINATE_RUNNING_ON_STARTUP=false.if settings.temporal_terminate_running_on_startup:try:@@ -511,9 +518,9 @@ async def lifespan(app: FastAPI):# Create FastAPI appapp = FastAPI(- title="React Flow Python Services",+ title="OpenCompany API",version="3.0.0",- description="Modern workflow automation backend with AI and Maps integration",+ description="OpenCompany workflow automation backend",lifespan=lifespan,)@@ -597,7 +604,7 @@ for _plugin_router in _get_plugin_routers():## Spawned Claude Code / Codex CLI sessions auto-discover this server via# a per-batch lockfile (~/.claude/ide/<pid>.lock) and call tools like-# mcp__machina__getSkill / getCredential / broadcastLog over MCP-over-HTTP.+# mcp__opencompany__getSkill / getCredential / broadcastLog over MCP-over-HTTP.# Bearer-token auth scoped per batch (see services/cli_agent/mcp_server.py).try:from services.cli_agent.mcp_server import get_mcp_app as _get_cli_mcp_app@@ -621,7 +628,7 @@ async def _sweep_cli_lockfiles_on_startup() -> None:# Ask the provider class for its lockfile dir rather than the# raw JSON config — the provider is the source of truth (e.g.# the claude provider derives its dir from- # ``MACHINA_CLAUDE_DIR/ide`` so it stays in sync with the+ # ``OPENCOMPANY_CLAUDE_DIR/ide`` so it stays in sync with the# ``CLAUDE_CONFIG_DIR`` env var we set on spawn). Reading from# the config dict would miss provider-class-computed paths.for name in list_provider_names():@@ -694,7 +701,7 @@ async def health_check():# the WebSocket, AND the built React client on a single port ($PORT). The# CLI dev/start path serves the client from a separate node static server# (scripts/serve-client.js), so this block is gated on the dist existing +-# SERVE_STATIC_CLIENT so local ``machina dev`` is unaffected.+# SERVE_STATIC_CLIENT so local ``company dev`` is unaffected.## Registered LAST so every real API / WS / mounted route above wins; this# only catches otherwise-unmatched GET paths and returns the SPA shell fordiff --git a/server/middleware/auth.py b/server/middleware/auth.pyindex 194ec327..be64fd92 100644--- a/server/middleware/auth.py+++ b/server/middleware/auth.py@@ -5,6 +5,7 @@ from fastapi import Requestfrom fastapi.responses import JSONResponsefrom starlette.middleware.base import BaseHTTPMiddleware+from core.auth_cookies import get_session_tokenfrom core.container import containerlogger = logging.getLogger(__name__)@@ -60,7 +61,7 @@ class AuthMiddleware(BaseHTTPMiddleware):return await call_next(request)# Auth enabled - check token- token = request.cookies.get(settings.jwt_cookie_name)+ token = get_session_token(request.cookies, settings)if not token:return JSONResponse(status_code=401, content={"detail": "Not authenticated"})diff --git a/server/nodejs/package.json b/server/nodejs/package.jsonindex 86ec8939..4a3a7281 100644--- a/server/nodejs/package.json+++ b/server/nodejs/package.json@@ -1,5 +1,5 @@{- "name": "machinaos-nodejs-executor",+ "name": "opencompany-nodejs-executor","version": "1.0.0","description": "Persistent Node.js server for JavaScript/TypeScript code execution","type": "module",diff --git a/server/nodes/agent/_events.py b/server/nodes/agent/_events.pyindex a7166436..7663c681 100644--- a/server/nodes/agent/_events.py+++ b/server/nodes/agent/_events.py@@ -26,7 +26,7 @@ from typing import Any, Optional# Outer wire-routing key. FE consumers (if any) and the legacy# back-compat receipt path still switch on this string; the inner-# envelope carries ``com.machinaos.agent.task.completed``.+# envelope carries ``com.opencompany.agent.task.completed``._WIRE_ROUTING_KEY = "task_completed"@@ -88,7 +88,7 @@ async def _broadcast_task_event(``emit`` does two things in one call: (a) Visibility query forrunning :class:`TriggerListenerWorkflow` consumers tagged with- ``EventType='com.machinaos.agent.task.completed'`` and signals each;+ ``EventType='com.opencompany.agent.task.completed'`` and signals each;(b) direct in-process WS broadcast on the ``task_completed`` wirekey so any FE consumers receive the envelope. Payload shape in``data`` is exactly what the taskTrigger filter reads.diff --git a/server/nodes/agent/_vertex.py b/server/nodes/agent/_vertex.pyindex 01dd34d1..ea2ff70c 100644--- a/server/nodes/agent/_vertex.py+++ b/server/nodes/agent/_vertex.py@@ -52,7 +52,7 @@ _POLL_INTERVAL_SECONDS = 3.0# Set on a client instance after the surface rejects a streaming create# (400 "Precondition check failed" on the enterprise agent surface) so# later turns in the same run skip straight to the background+poll path.-_STREAM_UNSUPPORTED_ATTR = "_machina_stream_unsupported"+_STREAM_UNSUPPORTED_ATTR = "_opencompany_stream_unsupported"def is_genai_error(exc: BaseException) -> bool:diff --git a/server/nodes/agent/claude_code_agent/_oauth.py b/server/nodes/agent/claude_code_agent/_oauth.pyindex 1a31a8b5..3b7b6e33 100644--- a/server/nodes/agent/claude_code_agent/_oauth.py+++ b/server/nodes/agent/claude_code_agent/_oauth.py@@ -1,6 +1,6 @@"""Claude OAuth — project-local install + the documented `claude auth` subcommands.-The Claude Code CLI lives in the shared MachinaOs npm tree at+The Claude Code CLI lives in the shared OpenCompany npm tree at``<DATA_DIR>/packages/node_modules/.bin/claude[.cmd]`` (on-demand``npm install`` on first use, alongside ``edgymeow`` /``agent-browser`` — one ``package.json`` + ``package-lock.json``@@ -29,7 +29,7 @@ This module lives alongside the ``claude_code_agent`` plugin so allclaude-specific code stays in one folder per the canonical pluginpattern. Consumers in ``services/cli_agent/`` (the generic framework)and the plugin's other modules (``_provider``, ``_pool``, ``_skills``)-import ``MACHINA_CLAUDE_DIR`` from here.+import ``OPENCOMPANY_CLAUDE_DIR`` from here."""from __future__ import annotations@@ -51,22 +51,27 @@ logger = get_logger(__name__)# Plugin-specific subpaths composed inline against the generic# ``core.paths`` helpers — keeps ``core.paths`` from growing one# wrapper function per plugin. Re-exported as module constants so-# existing consumers (``from ._oauth import MACHINA_CLAUDE_DIR``)+# existing consumers (``from ._oauth import OPENCOMPANY_CLAUDE_DIR``)# keep working without a function-call indirection at every call# site. ``data_path`` / ``packages_dir`` evaluate eagerly here:# Settings is already initialised by the time this module is first# imported (node registry discovery runs after the FastAPI app is# built).#-# ``MACHINA_CLAUDE_DIR`` -> ``<DATA_DIR>/claude/`` auth state+# ``OPENCOMPANY_CLAUDE_DIR`` -> ``<DATA_DIR>/claude/`` auth state# (CLAUDE_CONFIG_DIR)-# ``MACHINA_NPM_ROOT`` -> ``<DATA_DIR>/packages/`` shared npm tree+# ``OPENCOMPANY_NPM_ROOT`` -> ``<DATA_DIR>/packages/`` shared npm tree# (``--prefix`` target;# also holds# ``edgymeow`` /# ``agent-browser``)-MACHINA_CLAUDE_DIR = data_path("claude")-MACHINA_NPM_ROOT = packages_dir()+OPENCOMPANY_CLAUDE_DIR = data_path("claude")+OPENCOMPANY_NPM_ROOT = packages_dir()++# Public compatibility aliases for plugins and scripts written before the+# rebrand. New code should import the OPENCOMPANY_* names above.+MACHINA_CLAUDE_DIR = OPENCOMPANY_CLAUDE_DIR+MACHINA_NPM_ROOT = OPENCOMPANY_NPM_ROOT# Generous timeout for browser-flow login; Stripe uses the same window.LOGIN_TIMEOUT_SECONDS = 600.0@@ -81,26 +86,26 @@ def claude_binary_path() -> str:AND the agent spawn (``_provider.py``) so both surfaces use thesame binary + ``CLAUDE_CONFIG_DIR``-isolated credentials.- Landed under the shared MachinaOs npm tree at- ``MACHINA_NPM_ROOT`` (= ``<DATA_DIR>/packages/``) so a single+ Landed under the shared OpenCompany npm tree at+ ``OPENCOMPANY_NPM_ROOT`` (= ``<DATA_DIR>/packages/``) so a single``package.json`` + ``package-lock.json`` covers claude /edgymeow / agent-browser."""bin_name = "claude.cmd" if sys.platform == "win32" else "claude"- bin_path = MACHINA_NPM_ROOT / "node_modules" / ".bin" / bin_name+ bin_path = OPENCOMPANY_NPM_ROOT / "node_modules" / ".bin" / bin_nameif bin_path.exists():return str(bin_path)- logger.info("Installing Claude Code CLI into shared tree %s", MACHINA_NPM_ROOT)- MACHINA_NPM_ROOT.mkdir(parents=True, exist_ok=True)+ logger.info("Installing Claude Code CLI into shared tree %s", OPENCOMPANY_NPM_ROOT)+ OPENCOMPANY_NPM_ROOT.mkdir(parents=True, exist_ok=True)npm_cmd = shutil.which("npm")if not npm_cmd:raise FileNotFoundError("npm not found on PATH")result = subprocess.run(- [npm_cmd, "install", "@anthropic-ai/claude-code", "--prefix", str(MACHINA_NPM_ROOT)],+ [npm_cmd, "install", "@anthropic-ai/claude-code", "--prefix", str(OPENCOMPANY_NPM_ROOT)],capture_output=True,text=True,)@@ -117,7 +122,7 @@ def claude_binary_path() -> str:def _claude_env() -> Dict[str, str]:env = os.environ.copy()- env["CLAUDE_CONFIG_DIR"] = str(MACHINA_CLAUDE_DIR)+ env["CLAUDE_CONFIG_DIR"] = str(OPENCOMPANY_CLAUDE_DIR)return env@@ -140,7 +145,7 @@ async def _run_auth(subcommand: str, *, timeout: float) -> Dict[str, Any]:except (FileNotFoundError, RuntimeError) as e:return {"success": False, "error": str(e), "stdout": "", "stderr": ""}- MACHINA_CLAUDE_DIR.mkdir(parents=True, exist_ok=True)+ OPENCOMPANY_CLAUDE_DIR.mkdir(parents=True, exist_ok=True)envelope = await run_cli_command(binary=binary,argv=["auth", subcommand],diff --git a/server/nodes/agent/claude_code_agent/_provider.py b/server/nodes/agent/claude_code_agent/_provider.pyindex f1173544..1197b8be 100644--- a/server/nodes/agent/claude_code_agent/_provider.py+++ b/server/nodes/agent/claude_code_agent/_provider.py@@ -1,6 +1,6 @@"""Anthropic Claude Code CLI provider — interactive TUI mode.-Reference implementation for the `AICliProvider` Protocol. MachinaOs+Reference implementation for the `AICliProvider` Protocol. OpenCompanydrives the same interactive `claude` invocation a normal user runs attheir terminal — not `claude -p` headless. The PTY keeps the processalive in TUI mode while we read events from the on-disk session JSONL@@ -14,8 +14,8 @@ Subprocess: ``claude --permission-mode bypassPermissions-- "<prompt>"``**Tools + skills are preserved**:- - ``--mcp-config`` registers MachinaOs's FastMCP server; the spawned- `claude` discovers `mcp__machinaos__*` tools via `tools/list`.+ - ``--mcp-config`` registers OpenCompany's FastMCP server; the spawned+ `claude` discovers `mcp__opencompany__*` tools via `tools/list`.- ``--allowedTools`` carries the explicit allowlist (built-ins +every wired MCP tool) — same shape as the prior headless path.- Skills are materialised under ``<cwd>/.claude/skills/`` by the@@ -40,8 +40,8 @@ on-disk JSONL gives us the same data without `-p`):external monitors (Phase 2).Binary + auth: shared with the auth surface via-``._oauth.claude_binary_path()`` — single project-local-install at ``<repo>/data/claude-machina/npm/`` and ``CLAUDE_CONFIG_DIR``+``._oauth.claude_binary_path()`` — single managed install under+``<DATA_DIR>/packages/`` and ``CLAUDE_CONFIG_DIR``set on the spawn env so the agent picks up the same credentials theLogin button wrote.@@ -61,7 +61,7 @@ from typing import Any, Dict, List, Optionalfrom core.logging import get_loggerfrom services.cli_agent.config import get_provider_config-from ._oauth import claude_binary_path, MACHINA_CLAUDE_DIR+from ._oauth import claude_binary_path, OPENCOMPANY_CLAUDE_DIRfrom services.cli_agent.protocol import CanonicalUsagefrom services.cli_agent.types import ClaudeTaskSpec@@ -84,16 +84,16 @@ class AnthropicClaudeProvider:# IDE lockfile lives at ``<CLAUDE_CONFIG_DIR>/ide/<pid>.lock``# per claude's own resolution rules — there is no separate# "lockfile path" knob. We set- # ``CLAUDE_CONFIG_DIR=MACHINA_CLAUDE_DIR`` on every spawn (see+ # ``CLAUDE_CONFIG_DIR=OPENCOMPANY_CLAUDE_DIR`` on every spawn (see# ``service.py``, ``session.py``, ``claude_oauth.py``), so the# canonical lockfile dir is unambiguously- # ``MACHINA_CLAUDE_DIR/ide``. Deriving it directly from the+ # ``OPENCOMPANY_CLAUDE_DIR/ide``. Deriving it directly from the# single source of truth keeps the lockfile-write side (here)# in sync with the lockfile-read side (spawned claude) without- # a duplicated JSON path that can drift. ``MACHINA_CLAUDE_DIR``+ # a duplicated JSON path that can drift. ``OPENCOMPANY_CLAUDE_DIR``# is imported at module top from ``_oauth`` (the canonical# source of truth for this plugin's filesystem layout).- self.ide_lockfile_dir = MACHINA_CLAUDE_DIR / "ide"+ self.ide_lockfile_dir = OPENCOMPANY_CLAUDE_DIR / "ide"self._defaults = cfg.defaultsself._supports = cfg.supportsself._login_argv = cfg.login_argv@@ -106,7 +106,7 @@ class AnthropicClaudeProvider:Delegates to ``._oauth.claude_binary_path`` — samepath used by the credentials Login button. Lazy-installs into- ``<repo>/data/claude-machina/npm/`` on first miss. Raises+ ``<DATA_DIR>/packages/`` on first miss. Raises``FileNotFoundError`` if ``npm`` isn't on PATH."""return Path(claude_binary_path())@@ -152,8 +152,8 @@ class AnthropicClaudeProvider:``mcp_endpoint_url`` + ``mcp_bearer_token`` (if both set) areemitted as ``--mcp-config <json>`` so the spawned claude- registers MachinaOs's FastMCP server. Tools allowlist- (``--allowedTools``) lists every wired ``mcp__machinaos__*``+ registers OpenCompany's FastMCP server. Tools allowlist+ (``--allowedTools``) lists every wired ``mcp__opencompany__*``plus the 5 built-ins. Skill materialisation under``<cwd>/.claude/skills/`` is unchanged."""@@ -171,7 +171,7 @@ class AnthropicClaudeProvider:# detail (without it, only the final result line is emitted).# ``--ide`` makes claude discover the IDE lockfile we write at# ``<CLAUDE_CONFIG_DIR>/ide/<pid>.lock`` for auto-connection to- # MachinaOs's MCP server.+ # OpenCompany's MCP server.argv += ["--output-format","stream-json",@@ -186,14 +186,14 @@ class AnthropicClaudeProvider:# identically in interactive mode.if mcp_endpoint_url and mcp_bearer_token:# `alwaysLoad: true` opts this server out of MCP tool-search- # deferral so all `mcp__machinaos__*` tools enter context at+ # deferral so all `mcp__opencompany__*` tools enter context at# session start instead of waiting for a `ToolSearch` call# the agent often doesn't make# (https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search).mcp_payload = json.dumps({"mcpServers": {- "machinaos": {+ "opencompany": {"type": "http","url": mcp_endpoint_url,"headers": {@@ -232,7 +232,7 @@ class AnthropicClaudeProvider:argv += ["--continue"]# Allowed tools — STRICTLY scoped to what the operator wired- # through ``input-tools`` plus MachinaOs's own MCP infrastructure+ # through ``input-tools`` plus OpenCompany's own MCP infrastructure# tools. Claude's built-in escape hatches (Read, Edit, Bash,# Glob, Grep, Write, Skill, WebSearch, WebFetch) are intentionally# NOT in the default allowlist: they let the agent invoke@@ -240,7 +240,7 @@ class AnthropicClaudeProvider:# filesystem / shell / search functionality is wired via the# ``fileRead`` / ``fileModify`` / ``fsSearch`` / ``shell`` /# ``browser`` / ``perplexitySearch`` workflow tools, and- # connected skills are surfaced via MachinaOs's own+ # connected skills are surfaced via OpenCompany's own# ``listSkills`` / ``getSkill`` MCP tools (no materialisation# under ``.claude/skills/`` on the pool path, so the built-in# ``Skill`` tool has nothing to load anyway).@@ -255,7 +255,7 @@ class AnthropicClaudeProvider:)allowed_list: List[str] = [t.strip() for t in allowed_extra.split(",") if t.strip()] if allowed_extra else []if connected_tool_names:- allowed_list += [f"mcp__machinaos__{name}" for name in connected_tool_names]+ allowed_list += [f"mcp__opencompany__{name}" for name in connected_tool_names]# Conditionally enable claude's built-in ``Skill`` tool ONLY# when at least one skill is wired through ``input-skill``.# The spawn path (pool + non-pool) materialises connected@@ -268,16 +268,16 @@ class AnthropicClaudeProvider:# ``test_no_claude_builtins_in_default_allowlist``).if connected_skill_names:allowed_list.append("Skill")- # MachinaOs's own MCP infrastructure tools — needed for the+ # OpenCompany's own MCP infrastructure tools — needed for the# agent to discover connected skills, read its workspace, and# surface intermediate progress. These are OUR tools, not# claude's, so they stay regardless.allowed_list += [- "mcp__machinaos__getWorkspaceFiles",- "mcp__machinaos__listSkills",- "mcp__machinaos__getSkill",- "mcp__machinaos__getCredential",- "mcp__machinaos__broadcastLog",+ "mcp__opencompany__getWorkspaceFiles",+ "mcp__opencompany__listSkills",+ "mcp__opencompany__getSkill",+ "mcp__opencompany__getCredential",+ "mcp__opencompany__broadcastLog",]if allowed_list:argv += ["--allowedTools", ",".join(allowed_list)]diff --git a/server/nodes/agent/vertex_managed_agent/__init__.py b/server/nodes/agent/vertex_managed_agent/__init__.pyindex 1c2889ba..0c9a4fe5 100644--- a/server/nodes/agent/vertex_managed_agent/__init__.py+++ b/server/nodes/agent/vertex_managed_agent/__init__.py@@ -1,7 +1,7 @@"""Vertex Managed Agent — Google Gemini Enterprise Agent Platform.Runs a cloud-hosted managed agent (default: Antigravity) through the-Interactions API and bridges the MachinaOS canvas into it:+Interactions API and bridges the OpenCompany canvas into it:- Connected tool nodes are declared as custom ``function`` tools; thecloud agent hands control back with ``status == "requires_action"``diff --git a/server/nodes/android/_events.py b/server/nodes/android/_events.pyindex 39187a19..3db7cef1 100644--- a/server/nodes/android/_events.py+++ b/server/nodes/android/_events.py@@ -73,8 +73,8 @@ def android_connection_status(``_DEFAULT_STATUS`` shape)."""return WorkflowEvent(- source="machinaos://nodes/android",- type=("com.machinaos.android.connection.opened" if connected else "com.machinaos.android.connection.closed"),+ source="opencompany://nodes/android",+ type=("com.opencompany.android.connection.opened" if connected else "com.opencompany.android.connection.closed"),subject=device_id,data={"connected": connected,diff --git a/server/nodes/browser/_install.py b/server/nodes/browser/_install.pyindex abcec406..131c0259 100644--- a/server/nodes/browser/_install.py+++ b/server/nodes/browser/_install.py@@ -1,7 +1,7 @@-"""``agent-browser`` local install — landed in the shared MachinaOs+"""``agent-browser`` local install — landed in the shared OpenCompanynpm tree at :func:`core.paths.packages_dir` (``<DATA_DIR>/packages/``).-All MachinaOs-managed npm packages (``agent-browser``,+All OpenCompany-managed npm packages (``agent-browser``,``@anthropic-ai/claude-code``, ``edgymeow``) live under a single``<packages_dir>/node_modules/`` so npm manages them with one``package.json`` + ``package-lock.json`` rather than us carving outdiff --git a/server/nodes/browser/_service.py b/server/nodes/browser/_service.pyindex 388b128b..092aac6c 100644--- a/server/nodes/browser/_service.py+++ b/server/nodes/browser/_service.py@@ -7,7 +7,7 @@ commands).Invocation strategy--------------------agent-browser is a MachinaOs-managed local install (see+agent-browser is a OpenCompany-managed local install (see``nodes/browser/_install.py``) — same pattern as Claude Code'sproject-local CLI. The binary lives at``<package_dir("browser")>/npm/node_modules/.bin/agent-browser[.cmd]``diff --git a/server/nodes/browser/browser/__init__.py b/server/nodes/browser/browser/__init__.pyindex 54bcd707..40e82468 100644--- a/server/nodes/browser/browser/__init__.py+++ b/server/nodes/browser/browser/__init__.py@@ -362,7 +362,7 @@ class BrowserNode(ActionNode):op = params.operation# Typed accessor (not ctx.raw.get) — the key can be present-but-None# on the agent tool-dispatch path; `or` covers both missing and None.- session = params.session.strip() or f"machina_{ctx.execution_id or 'default'}"+ session = params.session.strip() or f"opencompany_{ctx.execution_id or 'default'}"timeout = params.timeoutbrowser_sel = params.browser or "chrome"if browser_sel == "bundled":diff --git a/server/nodes/email/__init__.py b/server/nodes/email/__init__.pyindex 0fa40dc2..886f6029 100644--- a/server/nodes/email/__init__.py+++ b/server/nodes/email/__init__.py@@ -15,4 +15,4 @@ from ._events import dispatch_email_received # noqa: F401 — re-exportfrom ._filters import build_filter as build_email_filterregister_filter_builder("emailReceive", build_email_filter)-register_canary_trigger_type("emailReceive", "com.machinaos.email.message.received")+register_canary_trigger_type("emailReceive", "com.opencompany.email.message.received")diff --git a/server/nodes/email/_events.py b/server/nodes/email/_events.pyindex 3c0cf612..be160e91 100644--- a/server/nodes/email/_events.py+++ b/server/nodes/email/_events.py@@ -20,7 +20,7 @@ from services.events.envelope import WorkflowEvent# Outer wire-routing key. Matches ``EmailReceiveNode.event_type`` and# the FE WS channel; the inner envelope carries-# ``com.machinaos.email.message.received``.+# ``com.opencompany.email.message.received``._WIRE_ROUTING_KEY = "email_received"@@ -31,8 +31,8 @@ def email_message_received(email_data: Mapping[str, Any]) -> WorkflowEvent:payload = dict(email_data)message_id = payload.get("message_id") or payload.get("id")return WorkflowEvent(- source="machinaos://nodes/email",- type="com.machinaos.email.message.received",+ source="opencompany://nodes/email",+ type="com.opencompany.email.message.received",subject=str(message_id) if message_id else None,data=payload,)diff --git a/server/nodes/github/__init__.py b/server/nodes/github/__init__.pyindex 6ed5883e..c51d5773 100644--- a/server/nodes/github/__init__.py+++ b/server/nodes/github/__init__.py@@ -4,7 +4,7 @@ Self-contained CLI-managed-auth plugin (Stripe pattern): the gh CLIowns its auth end-to-end — ``gh auth login --web`` driven from thecredentials modal (or the user's own terminal), token in the systemcredential store, a synthetic ``cli-managed`` marker OAuth row for the-catalogue badge. MachinaOs never stores or injects a token. On login+catalogue badge. OpenCompany never stores or injects a token. On loginsuccess ``gh auth setup-git`` configures git's credential helper (theofficial bridge), so a future git node needs zero auth code."""diff --git a/server/nodes/github/_credentials.py b/server/nodes/github/_credentials.pyindex 86cd4ffa..5980860b 100644--- a/server/nodes/github/_credentials.py+++ b/server/nodes/github/_credentials.py@@ -2,7 +2,7 @@The gh CLI manages its own auth state (system credential store,populated by ``gh auth login`` and cleared by ``gh auth logout``).-MachinaOs stores no token — the credentials modal's connected badge is+OpenCompany stores no token — the credentials modal's connected badge isdriven by the synthetic ``cli-managed`` marker OAuth row written by``_handlers.py`` after a successful login."""diff --git a/server/nodes/github/_handlers.py b/server/nodes/github/_handlers.pyindex c59148e5..47102697 100644--- a/server/nodes/github/_handlers.py+++ b/server/nodes/github/_handlers.py@@ -26,7 +26,7 @@ catalogue-invalidation event. Marker + broadcast plumbing is theshared :mod:`services.cli_agent._cli_auth` module (claude/codex/githuball use it).-MachinaOs never stores or reads the actual token — it stays in gh's+OpenCompany never stores or reads the actual token — it stays in gh'ssystem credential store."""diff --git a/server/nodes/github/_service.py b/server/nodes/github/_service.pyindex 1c619a3a..9fd5e2fc 100644--- a/server/nodes/github/_service.py+++ b/server/nodes/github/_service.py@@ -4,7 +4,7 @@ probe, workspace path resolution.Auth model — **the gh CLI owns its own auth** (Stripe CLI pattern):``gh auth login`` (driven by the modal's Login button or run by theuser in a terminal) stores the token in the system credential store;-MachinaOs never stores or injects a token — a synthetic ``cli-managed``+OpenCompany never stores or injects a token — a synthetic ``cli-managed``marker OAuth row flips the catalogue's ``stored`` badge, exactly likeStripe. Users who prefer a PAT pipe it to ``gh auth login--with-token`` themselves. Ambient ``GH_TOKEN`` in the server's owndiff --git a/server/nodes/google/__init__.py b/server/nodes/google/__init__.pyindex 11155443..8dc630fa 100644--- a/server/nodes/google/__init__.py+++ b/server/nodes/google/__init__.py@@ -64,4 +64,4 @@ register_option_loader("googleTasklists", load_tasklists)# Temporal activity is emitted by GmailReceiveNode.as_poll_activity()# and registered via collect_polling_activities() in the worker. See# services/deployment/canary_registry.py.-register_canary_trigger_type("googleGmailReceive", "com.machinaos.gmail.message.received")+register_canary_trigger_type("googleGmailReceive", "com.opencompany.gmail.message.received")diff --git a/server/nodes/google/_events.py b/server/nodes/google/_events.pyindex 73a575c1..95833a56 100644--- a/server/nodes/google/_events.py+++ b/server/nodes/google/_events.py@@ -35,8 +35,8 @@ def gmail_message_received(email_data: Mapping[str, Any]) -> WorkflowEvent:payload = dict(email_data)message_id = payload.get("message_id") or payload.get("id")return WorkflowEvent(- source="machinaos://nodes/google",- type="com.machinaos.gmail.message.received",+ source="opencompany://nodes/google",+ type="com.opencompany.gmail.message.received",subject=str(message_id) if message_id else None,data=payload,)diff --git a/server/nodes/scheduler/cron_scheduler/__init__.py b/server/nodes/scheduler/cron_scheduler/__init__.pyindex 38693ac3..b70bf820 100644--- a/server/nodes/scheduler/cron_scheduler/__init__.py+++ b/server/nodes/scheduler/cron_scheduler/__init__.py@@ -40,7 +40,7 @@ from ._workflow import CronTriggerWorkflowlogger = get_logger(__name__)register_temporal_plugin(SimplePlugin(name="cron-scheduler", workflows=[CronTriggerWorkflow]))-register_canary_trigger_type("cronScheduler", "com.machinaos.cron.tick")+register_canary_trigger_type("cronScheduler", "com.opencompany.cron.tick")def _calculate_wait_seconds(p: Dict[str, Any]) -> int:diff --git a/server/nodes/scheduler/cron_scheduler/_workflow.py b/server/nodes/scheduler/cron_scheduler/_workflow.pyindex 3f6c2afe..b018b29e 100644--- a/server/nodes/scheduler/cron_scheduler/_workflow.py+++ b/server/nodes/scheduler/cron_scheduler/_workflow.py@@ -54,7 +54,7 @@ class CronTriggerWorkflow:schedule creation)::{- "workflow_id": str, # MachinaOs deployment workflow_id+ "workflow_id": str, # OpenCompany deployment workflow_id"trigger_node_id": str, # cron node id"node_type": "cronScheduler","cron_expression": str, # raw crontab stringdiff --git a/server/nodes/scraper/crawlee_scraper/__init__.py b/server/nodes/scraper/crawlee_scraper/__init__.pyindex c39a1d56..23874a56 100644--- a/server/nodes/scraper/crawlee_scraper/__init__.py+++ b/server/nodes/scraper/crawlee_scraper/__init__.py@@ -23,7 +23,7 @@ _MAX_CONTENT_LENGTH = 100_000async def _get_proxy_config(parameters: Dict[str, Any], url: str):- """Bridge MachinaOs ProxyService to Crawlee ProxyConfiguration."""+ """Bridge OpenCompany ProxyService to Crawlee ProxyConfiguration."""if not parameters.get("use_proxy", False):return Nonetry:diff --git a/server/nodes/skill/master_skill/_events.py b/server/nodes/skill/master_skill/_events.pyindex 320b5ac1..81b366bc 100644--- a/server/nodes/skill/master_skill/_events.py+++ b/server/nodes/skill/master_skill/_events.py@@ -46,8 +46,8 @@ def skill_lifecycle_event(writes without re-querying."""return WorkflowEvent(- source="machinaos://nodes/master_skill",- type=f"com.machinaos.skill.{stage}",+ source="opencompany://nodes/master_skill",+ type=f"com.opencompany.skill.{stage}",subject=name,data=dict(data) if data else {"name": name},)diff --git a/server/nodes/stripe/_credentials.py b/server/nodes/stripe/_credentials.pyindex e9629902..cebdd224 100644--- a/server/nodes/stripe/_credentials.py+++ b/server/nodes/stripe/_credentials.py@@ -2,7 +2,7 @@The Stripe CLI manages its own auth state at``~/.config/stripe/config.toml`` (populated by ``stripe login`` and-cleared by ``stripe logout``). MachinaOs doesn't store an API key+cleared by ``stripe logout``). OpenCompany doesn't store an API keyitself — only the captured webhook signing secret rides along as anextra field so :class:`StripeWebhookSource` can verify``Stripe-Signature`` on incoming events.diff --git a/server/nodes/telegram/__init__.py b/server/nodes/telegram/__init__.pyindex 50929ce1..70fd9592 100644--- a/server/nodes/telegram/__init__.py+++ b/server/nodes/telegram/__init__.py@@ -65,7 +65,7 @@ register_output_schema("telegramSend", TelegramSendOutput)# unconditionally; emit() is gated by Settings.event_framework_enabled# so the legacy path stays default. See# services/deployment/canary_registry.py.-register_canary_trigger_type(TelegramReceiveNode.type, "com.machinaos.telegram.message.received")+register_canary_trigger_type(TelegramReceiveNode.type, "com.opencompany.telegram.message.received")__all__ = ["TelegramCredential",diff --git a/server/nodes/telegram/_events.py b/server/nodes/telegram/_events.pyindex 0580040c..54cea70f 100644--- a/server/nodes/telegram/_events.py+++ b/server/nodes/telegram/_events.py@@ -70,8 +70,8 @@ def telegram_connection_status(if has_stored_token is not None:data["has_stored_token"] = has_stored_tokenreturn WorkflowEvent(- source="machinaos://nodes/telegram",- type=("com.machinaos.telegram.connection.opened" if connected else "com.machinaos.telegram.connection.closed"),+ source="opencompany://nodes/telegram",+ type=("com.opencompany.telegram.connection.opened" if connected else "com.opencompany.telegram.connection.closed"),subject=bot_username,data=data,)@@ -84,8 +84,8 @@ def telegram_message_received(event_data: Mapping[str, Any]) -> WorkflowEvent:payload = dict(event_data)chat_id = payload.get("chat_id")return WorkflowEvent(- source="machinaos://nodes/telegram",- type="com.machinaos.telegram.message.received",+ source="opencompany://nodes/telegram",+ type="com.opencompany.telegram.message.received",subject=str(chat_id) if chat_id is not None else None,data=payload,)diff --git a/server/nodes/tool/agent_builder/_events.py b/server/nodes/tool/agent_builder/_events.pyindex e3261459..e462603c 100644--- a/server/nodes/tool/agent_builder/_events.py+++ b/server/nodes/tool/agent_builder/_events.py@@ -36,8 +36,8 @@ def workflow_ops_applied("""Canvas-mutation envelope. ``subject`` is the caller node id soconsumers can route per-builder."""return WorkflowEvent(- source="machinaos://nodes/agent_builder",- type="com.machinaos.workflow.ops.applied",+ source="opencompany://nodes/agent_builder",+ type="com.opencompany.workflow.ops.applied",subject=caller_node_id,workflow_id=workflow_id,data={diff --git a/server/nodes/tool/write_todos/_events.py b/server/nodes/tool/write_todos/_events.pyindex f77b9de8..a57b05a1 100644--- a/server/nodes/tool/write_todos/_events.py+++ b/server/nodes/tool/write_todos/_events.py@@ -44,8 +44,8 @@ def todos_updated("workflow_id": workflow_id,}return WorkflowEvent(- source="machinaos://nodes/write_todos",- type="com.machinaos.todos.updated",+ source="opencompany://nodes/write_todos",+ type="com.opencompany.todos.updated",subject=session_key,data=data,)diff --git a/server/nodes/trigger/chat_trigger/__init__.py b/server/nodes/trigger/chat_trigger/__init__.pyindex b860b0a4..7acc2f26 100644--- a/server/nodes/trigger/chat_trigger/__init__.py+++ b/server/nodes/trigger/chat_trigger/__init__.py@@ -72,4 +72,4 @@ class ChatTriggerNode(TriggerNode):# ./_events.py calls dispatch.emit unconditionally; the canary registry# tells DeploymentManager to start a listener for this type. See# services/deployment/canary_registry.py.-register_canary_trigger_type(ChatTriggerNode.type, "com.machinaos.chat.message.received")+register_canary_trigger_type(ChatTriggerNode.type, "com.opencompany.chat.message.received")diff --git a/server/nodes/trigger/chat_trigger/_events.py b/server/nodes/trigger/chat_trigger/_events.pyindex 066dce3a..fa95dba1 100644--- a/server/nodes/trigger/chat_trigger/_events.py+++ b/server/nodes/trigger/chat_trigger/_events.py@@ -20,7 +20,7 @@ from services.events.envelope import WorkflowEvent# Outer wire-routing key. Matches ``ChatTriggerNode.event_type`` and the# FE WS channel; the inner envelope carries-# ``com.machinaos.chat.message.received``.+# ``com.opencompany.chat.message.received``._WIRE_ROUTING_KEY = "chat_message_received"@@ -30,8 +30,8 @@ def chat_message_received(event_data: Mapping[str, Any]) -> WorkflowEvent:payload = dict(event_data)session_id = payload.get("session_id")return WorkflowEvent(- source="machinaos://nodes/chat_trigger",- type="com.machinaos.chat.message.received",+ source="opencompany://nodes/chat_trigger",+ type="com.opencompany.chat.message.received",subject=str(session_id) if session_id else None,data=payload,)diff --git a/server/nodes/trigger/task_trigger/__init__.py b/server/nodes/trigger/task_trigger/__init__.pyindex 35edc058..369f7488 100644--- a/server/nodes/trigger/task_trigger/__init__.py+++ b/server/nodes/trigger/task_trigger/__init__.py@@ -80,4 +80,4 @@ class TaskTriggerNode(TriggerNode):# consumer path. The producer side lives in nodes/agent/_events.py# (broadcast_agent_task_completed / _failed dual-emit via dispatch.emit).# See services/deployment/canary_registry.py for the contract.-register_canary_trigger_type(TaskTriggerNode.type, "com.machinaos.agent.task.completed")+register_canary_trigger_type(TaskTriggerNode.type, "com.opencompany.agent.task.completed")diff --git a/server/nodes/trigger/webhook_trigger/__init__.py b/server/nodes/trigger/webhook_trigger/__init__.pyindex e4cc2d07..3518f61b 100644--- a/server/nodes/trigger/webhook_trigger/__init__.py+++ b/server/nodes/trigger/webhook_trigger/__init__.py@@ -110,4 +110,4 @@ class WebhookTriggerNode(TriggerNode):# Gated runtime by Settings.event_framework_enabled in DeploymentManager;# the producer side (broadcast_webhook_received calling dispatch.emit) is# unconditional. See services/deployment/canary_registry.py.-register_canary_trigger_type(WebhookTriggerNode.type, "com.machinaos.webhook.received")+register_canary_trigger_type(WebhookTriggerNode.type, "com.opencompany.webhook.received")diff --git a/server/nodes/trigger/webhook_trigger/_events.py b/server/nodes/trigger/webhook_trigger/_events.pyindex e60192dd..29cd80e0 100644--- a/server/nodes/trigger/webhook_trigger/_events.py+++ b/server/nodes/trigger/webhook_trigger/_events.py@@ -21,7 +21,7 @@ from services.events.envelope import WorkflowEvent# Outer wire-routing key. Matches ``WebhookTriggerNode.event_type`` and# the FE WS channel; the inner envelope carries-# ``com.machinaos.webhook.received``.+# ``com.opencompany.webhook.received``._WIRE_ROUTING_KEY = "webhook_received"@@ -31,8 +31,8 @@ def webhook_received(webhook_data: Mapping[str, Any]) -> WorkflowEvent:payload = dict(webhook_data)path = payload.get("path")return WorkflowEvent(- source="machinaos://nodes/webhook_trigger",- type="com.machinaos.webhook.received",+ source="opencompany://nodes/webhook_trigger",+ type="com.opencompany.webhook.received",subject=str(path) if path else None,data=payload,)diff --git a/server/nodes/twitter/_events.py b/server/nodes/twitter/_events.pyindex 29b04371..9a2d49fd 100644--- a/server/nodes/twitter/_events.py+++ b/server/nodes/twitter/_events.py@@ -48,15 +48,15 @@ def twitter_event_received(event_data: Mapping[str, Any]) -> WorkflowEvent:dedup; the originating Twitter user id is in``data.author_id`` or ``data.user_id``. The event ``type``distinguishes the kind via the data payload, not the envelope —- every twitter inbound shares ``com.machinaos.twitter.event.received``+ every twitter inbound shares ``com.opencompany.twitter.event.received``since the producer (polling loop) doesn't always know which kind agiven tweet is until the downstream filter runs."""payload = dict(event_data)subject = payload.get("tweet_id") or payload.get("id") or payload.get("dm_id")return WorkflowEvent(- source="machinaos://nodes/twitter",- type="com.machinaos.twitter.event.received",+ source="opencompany://nodes/twitter",+ type="com.opencompany.twitter.event.received",subject=str(subject) if subject else None,data=payload,)diff --git a/server/nodes/vercel/_credentials.py b/server/nodes/vercel/_credentials.pyindex cedfe7cc..6d1d1995 100644--- a/server/nodes/vercel/_credentials.py+++ b/server/nodes/vercel/_credentials.py@@ -4,7 +4,7 @@ Two independent auth paths, either is sufficient:* **CLI login** — ``vercel login`` (browser device flow) driven by the``vercel_login`` WS handler; the CLI stores its own auth state in the- MachinaOs-pinned ``--global-config`` dir (``<DATA_DIR>/vercel/``),+ OpenCompany-pinned ``--global-config`` dir (``<DATA_DIR>/vercel/``),and a synthetic marker OAuth token flips the catalogue's ``stored``flag.* **Access token** — the optional ``vercel_token`` api-key row, pasteddiff --git a/server/nodes/vercel/_install.py b/server/nodes/vercel/_install.pyindex e0fff6c2..0954d9ee 100644--- a/server/nodes/vercel/_install.py+++ b/server/nodes/vercel/_install.py@@ -1,7 +1,7 @@"""Vercel CLI auto-installer.The Vercel CLI ships as the npm package ``vercel`` — it lands in the-shared MachinaOs npm tree at :func:`core.paths.packages_dir`+shared OpenCompany npm tree at :func:`core.paths.packages_dir`(``<DATA_DIR>/packages/``), the same single ``package.json`` +``node_modules/`` that holds ``@anthropic-ai/claude-code`` /``edgymeow`` / ``agent-browser``. ``npm install <pkg> --prefixdiff --git a/server/nodes/vercel/_service.py b/server/nodes/vercel/_service.pyindex 8a009ddb..d8e6500e 100644--- a/server/nodes/vercel/_service.py+++ b/server/nodes/vercel/_service.py@@ -3,10 +3,10 @@ env/argv builders, login-output parsing.Auth-state isolation: every ``vercel`` invocation passes``--global-config <DATA_DIR>/vercel/`` so the CLI's ``auth.json`` /-``config.json`` live in a MachinaOs-owned directory instead of the+``config.json`` live in a OpenCompany-owned directory instead of theplatform-varying ``com.vercel.cli`` default. Same philosophy as``CLAUDE_CONFIG_DIR = data_path("claude")`` in-``nodes/agent/claude_code_agent/_oauth.py`` — MachinaOs-managed auth+``nodes/agent/claude_code_agent/_oauth.py`` — OpenCompany-managed authnever collides with the user's own system-wide ``vercel login``, andthe pinned path makes :func:`is_logged_in` deterministic acrossplatforms. Composed inline per the ``core.paths`` rule (generic@@ -32,7 +32,7 @@ TOKEN_KEY = "vercel_token"def vercel_config_dir() -> Path:- """MachinaOs-pinned ``--global-config`` directory."""+ """OpenCompany-pinned ``--global-config`` directory."""p = data_path("vercel")p.mkdir(parents=True, exist_ok=True)return pdiff --git a/server/nodes/whatsapp/__init__.py b/server/nodes/whatsapp/__init__.pyindex c27ca2ae..68adb0a4 100644--- a/server/nodes/whatsapp/__init__.py+++ b/server/nodes/whatsapp/__init__.py@@ -74,7 +74,7 @@ register_option_loader("whatsappGroupMembers", load_group_members)# fans out via services.events.dispatch.emit; emit() is gated by# Settings.event_framework_enabled so the legacy path stays default.# See services/deployment/canary_registry.py.-register_canary_trigger_type("whatsappReceive", "com.machinaos.whatsapp.message.received")+register_canary_trigger_type("whatsappReceive", "com.opencompany.whatsapp.message.received")# Wave 12 C4 sub-piece A: opt this plugin into the social-provider# registry so the social node dispatches by platform identifierdiff --git a/server/nodes/whatsapp/_events.py b/server/nodes/whatsapp/_events.pyindex 3b8d965d..aef9fe11 100644--- a/server/nodes/whatsapp/_events.py+++ b/server/nodes/whatsapp/_events.py@@ -36,7 +36,7 @@ from services.events.envelope import WorkflowEvent# ---- Wire-routing keys (outer ``type`` field the FE switches on) -----------## Unchanged from the pre-B2 shape per RFC §11 (FE still routes on the-# legacy keys). Only the INNER ``data.type`` gains the ``com.machinaos.``+# legacy keys). Only the INNER ``data.type`` gains the ``com.opencompany.``# reverse-DNS prefix via the typed CloudEvents factories below._STATUS_TYPED_WIRE_KEY = "plugin_connection_status" # shared cross-plugin channel@@ -69,8 +69,8 @@ def whatsapp_connection_status("""Connection-state envelope. ``subject`` is the device_id so theFE can route per-device updates."""return WorkflowEvent(- source="machinaos://nodes/whatsapp",- type=("com.machinaos.whatsapp.connection.opened" if connected else "com.machinaos.whatsapp.connection.closed"),+ source="opencompany://nodes/whatsapp",+ type=("com.opencompany.whatsapp.connection.opened" if connected else "com.opencompany.whatsapp.connection.closed"),subject=device_id,data={"connected": connected,@@ -92,8 +92,8 @@ def whatsapp_message_event(payload = dict(params)subject = payload.get("chat_id") or payload.get("sender") or payload.get("from")return WorkflowEvent(- source="machinaos://nodes/whatsapp",- type=f"com.machinaos.whatsapp.message.{direction}",+ source="opencompany://nodes/whatsapp",+ type=f"com.opencompany.whatsapp.message.{direction}",subject=str(subject) if subject else None,data=payload,)@@ -108,8 +108,8 @@ def whatsapp_newsletter_event(payload = dict(params)subject = payload.get("newsletter_jid") or payload.get("jid")return WorkflowEvent(- source="machinaos://nodes/whatsapp",- type=f"com.machinaos.whatsapp.newsletter.{verb}",+ source="opencompany://nodes/whatsapp",+ type=f"com.opencompany.whatsapp.newsletter.{verb}",subject=str(subject) if subject else None,data=payload,)@@ -121,8 +121,8 @@ def whatsapp_history_synced(params: Mapping[str, Any]) -> WorkflowEvent:payload = dict(params)subject = payload.get("device_id")return WorkflowEvent(- source="machinaos://nodes/whatsapp",- type="com.machinaos.whatsapp.history.synced",+ source="opencompany://nodes/whatsapp",+ type="com.opencompany.whatsapp.history.synced",subject=str(subject) if subject else None,data=payload,)diff --git a/server/nodes/whatsapp/_install.py b/server/nodes/whatsapp/_install.pyindex 541ce78b..bd4fe336 100644--- a/server/nodes/whatsapp/_install.py+++ b/server/nodes/whatsapp/_install.py@@ -1,8 +1,8 @@"""``edgymeow`` (WhatsApp Go bridge) local install — landed in the-shared MachinaOs npm tree at :func:`core.paths.packages_dir`+shared OpenCompany npm tree at :func:`core.paths.packages_dir`(``<DATA_DIR>/packages/``).-All MachinaOs-managed npm packages (``edgymeow``,+All OpenCompany-managed npm packages (``edgymeow``,``@anthropic-ai/claude-code``, ``agent-browser``) share a single``<packages_dir>/node_modules/`` so npm manages them with one``package.json`` + ``package-lock.json``. ``npm install <pkg>@@ -11,9 +11,9 @@ All MachinaOs-managed npm packages (``edgymeow``,Pre-fix this lived as a top-level ``edgymeow`` dep in the root``package.json`` and landed at ``<repo>/node_modules/edgymeow/`` via``pnpm install``. Operators had to re-run ``pnpm install`` after-``machina clean`` to recover. After this move, the WhatsApp binary+``company clean`` to recover. After this move, the WhatsApp binaryfollows the same on-demand install pattern as every other-MachinaOs-managed CLI.+OpenCompany-managed CLI."""from __future__ import annotationsdiff --git a/server/nodes/whatsapp/_runtime.py b/server/nodes/whatsapp/_runtime.pyindex 022ebae3..531c84cd 100644--- a/server/nodes/whatsapp/_runtime.py+++ b/server/nodes/whatsapp/_runtime.py@@ -2,11 +2,11 @@Spawns the binary with cwd inside the project (``<data_dir>/whatsapp``)so the SQLite session DB lives next to ``credentials.db`` and survives-``machina clean``, version bumps, and worktree switches. Lazy-init+``company clean``, version bumps, and worktree switches. Lazy-initfrom ``nodes.whatsapp._service.get_client()``; teardown from FastAPIlifespan.-The binary itself is MachinaOs-managed under the shared MachinaOs+The binary itself is OpenCompany-managed under the shared OpenCompanynpm tree at ``<DATA_DIR>/packages/`` (resolved by:func:`._install.edgymeow_binary_path` on first use). The installruns through ``asyncio.to_thread`` in ``_pre_spawn`` so the long@@ -57,8 +57,9 @@ class WhatsAppRuntime(BaseProcessSupervisor):@propertydef data_root(self) -> Path:# Routes through ``Settings._resolve_under_data`` so dev mode's- # ``DATA_DIR=.machina`` lands the WhatsApp tree at- # ``<repo>/.machina/whatsapp/`` (not ``<repo>/server/.machina/...``,+ # ``DATA_DIR=.opencompany`` lands the WhatsApp tree at+ # ``<repo>/.opencompany/whatsapp/`` (not+ # ``<repo>/server/.opencompany/...``,# which the old ad-hoc ``_PROJECT_ROOT / "server" / data_dir``# logic produced when ``DATA_DIR`` was relative).return Path(self.settings._resolve_under_data(self.settings.whatsapp_data_subdir))@@ -77,7 +78,7 @@ class WhatsAppRuntime(BaseProcessSupervisor):@propertydef _package_dir(self) -> Path:- # ``edgymeow`` is npm-installed into the shared MachinaOs npm+ # ``edgymeow`` is npm-installed into the shared OpenCompany npm# tree at ``<DATA_DIR>/packages/node_modules/edgymeow/`` by# :func:`._install.edgymeow_binary_path` (called from# ``_pre_spawn``). Same tree holds ``claude-code``,diff --git a/server/package-lock.json b/server/package-lock.jsonindex a66b96b8..75e3173d 100644--- a/server/package-lock.json+++ b/server/package-lock.json@@ -1,11 +1,11 @@{- "name": "machina-backend",+ "name": "opencompany-backend","version": "0.0.0","lockfileVersion": 3,"requires": true,"packages": {"": {- "name": "machina-backend",+ "name": "opencompany-backend","version": "0.0.0","dependencies": {"@react-three/drei": "^10.7.7",diff --git a/server/package.json b/server/package.jsonindex 75410480..c8107cc4 100644--- a/server/package.json+++ b/server/package.json@@ -1,5 +1,5 @@{- "name": "machina-backend",+ "name": "opencompany-backend","private": true,"version": "0.0.0","scripts": {diff --git a/server/pyproject.toml b/server/pyproject.tomlindex 966dc016..01663937 100644--- a/server/pyproject.toml+++ b/server/pyproject.toml@@ -1,7 +1,7 @@[project]-name = "machinaos-server"+name = "opencompany-server"version = "0.1.0"-description = "MachinaOS workflow automation backend"+description = "OpenCompany workflow automation backend"requires-python = ">=3.11,<3.13"dependencies = [# Core@@ -145,7 +145,7 @@ dependencies = ["rlms>=0.1.1",# MCP (Model Context Protocol) — host server for spawned CLI sessions- # to discover and call MachinaOs tools (mcp__machina__*) the same way+ # to discover and call OpenCompany tools (mcp__opencompany__*) the same way# VSCode's Claude Code extension does."mcp>=1.0.0",@@ -172,7 +172,7 @@ dependencies = [[project.optional-dependencies]# PEP 621 extras — downstream consumers opt into these via-# ``pip install machinaos-server[<extra>]`` / ``uv pip install -e .[<extra>]``.+# ``pip install opencompany-server[<extra>]`` / ``uv pip install -e .[<extra>]``.# Dev tooling lives in ``[dependency-groups]`` below (PEP 735) instead so# ``uv sync`` keeps it installed by default in contributor checkouts.docs = [@@ -195,7 +195,7 @@ aws = [# meant every ``pnpm install`` (= ``uv sync`` without ``--extra dev``)# uninstalled them — broke contributor test workflows on every install# / dependency bump. Moving them here keeps ``pip install-# machinaos-server`` lean for end-users while making contributor+# opencompany-server`` lean for end-users while making contributor# checkouts test-ready straight out of ``pnpm install``.dev = ["pytest>=8.0.0",diff --git a/server/requirements.txt b/server/requirements.txtindex 6fb6cb01..7f846008 100644--- a/server/requirements.txt+++ b/server/requirements.txt@@ -3,11 +3,11 @@aiohappyeyeballs==2.7.1# via aiohttpaiohttp==3.14.1- # via machinaos-server+ # via opencompany-serveraiosignal==1.4.0# via aiohttpaiosqlite==0.22.1- # via machinaos-server+ # via opencompany-serverannotated-doc==0.0.4# via fastapiannotated-types==0.7.0@@ -15,7 +15,7 @@ annotated-types==0.7.0anthropic==0.94.0# via# langchain-anthropic- # machinaos-server+ # opencompany-server# rlmsanyio==4.14.1# via@@ -33,7 +33,7 @@ anyio==4.14.1# starlette# watchfilesapify-client==3.0.5- # via machinaos-server+ # via opencompany-serverasync-timeout==5.0.1# via crawleeattrs==26.1.0@@ -42,7 +42,7 @@ attrs==26.1.0# jsonschema# referencingbcrypt==5.0.0- # via machinaos-server+ # via opencompany-serverbeautifulsoup4==4.15.0# via crawleebracex==3.0@@ -79,18 +79,18 @@ colorama==0.4.6# qrcode# tqdmcrawlee==1.8.1- # via machinaos-server+ # via opencompany-servercryptography==49.0.0# via# google-auth- # machinaos-server+ # opencompany-server# pyjwtddgs==9.14.4- # via machinaos-server+ # via opencompany-serverdeepagents==0.5.2- # via machinaos-server+ # via opencompany-serverdependency-injector==4.49.1- # via machinaos-server+ # via opencompany-serverdistro==1.9.0# via# anthropic@@ -105,12 +105,12 @@ docstring-parser==0.18.0# via anthropicemail-validator==2.3.0# via- # machinaos-server+ # opencompany-server# pydanticfake-useragent==2.2.0# via ddgsfastapi==0.139.0- # via machinaos-server+ # via opencompany-serverfilelock==3.29.7# via tldextractfiletype==1.2.0@@ -122,7 +122,7 @@ frozenlist==1.8.0google-api-core==2.31.0# via google-api-python-clientgoogle-api-python-client==2.198.0- # via machinaos-server+ # via opencompany-servergoogle-auth==2.55.2# via# google-api-core@@ -130,25 +130,25 @@ google-auth==2.55.2# google-auth-httplib2# google-auth-oauthlib# google-genai- # machinaos-server+ # opencompany-servergoogle-auth-httplib2==0.4.0# via# google-api-python-client- # machinaos-server+ # opencompany-servergoogle-auth-oauthlib==1.4.0- # via machinaos-server+ # via opencompany-servergoogle-genai==2.11.0# via# langchain-google-genai- # machinaos-server+ # opencompany-server# rlmsgoogleapis-common-protos==1.75.0# via google-api-coregooglemaps==4.10.0- # via machinaos-server+ # via opencompany-servergreenlet==3.5.3# via- # machinaos-server+ # opencompany-server# sqlalchemygroq==0.37.1# via langchain-groq@@ -162,7 +162,7 @@ h2==4.3.0hpack==4.2.0# via h2html2text==2025.4.15- # via machinaos-server+ # via opencompany-serverhtml5lib==1.1# via crawleehttpcore==1.0.9@@ -185,7 +185,7 @@ httpx==0.28.1# langgraph-sdk# langsmith# lmstudio- # machinaos-server+ # opencompany-server# mcp# ollama# openai@@ -229,9 +229,9 @@ langchain==1.2.18langchain-anthropic==1.4.0# via# deepagents- # machinaos-server+ # opencompany-serverlangchain-cerebras==0.8.2- # via machinaos-server+ # via opencompany-serverlangchain-core==1.3.3# via# deepagents@@ -245,21 +245,21 @@ langchain-core==1.3.3# langgraph# langgraph-checkpoint# langgraph-prebuilt- # machinaos-server+ # opencompany-serverlangchain-google-genai==4.2.5# via# deepagents- # machinaos-server+ # opencompany-serverlangchain-groq==1.1.2- # via machinaos-server+ # via opencompany-serverlangchain-openai==1.1.14# via# langchain-cerebras- # machinaos-server+ # opencompany-serverlangchain-protocol==0.0.18# via langchain-corelangchain-text-splitters==1.1.2- # via machinaos-server+ # via opencompany-serverlanggraph==1.1.10# via langchainlanggraph-checkpoint==4.1.1@@ -275,17 +275,17 @@ langsmith==0.10.2# deepagents# langchain-corelmstudio==1.5.0- # via machinaos-server+ # via opencompany-serverlxml==6.1.1# via# beautifulsoup4# ddgsmarkdown-it-py==4.2.0# via- # machinaos-server+ # opencompany-server# richmcp==1.28.1- # via machinaos-server+ # via opencompany-servermdurl==0.1.2# via markdown-it-pymore-itertools==11.1.0@@ -303,25 +303,25 @@ nexus-rpc==1.4.0oauthlib==3.3.1# via requests-oauthlibollama==0.6.2- # via machinaos-server+ # via opencompany-serveropenai==2.45.0# via# langchain-openai# rlmsopentelemetry-api==1.43.0# via- # machinaos-server+ # opencompany-server# opentelemetry-sdk# opentelemetry-semantic-conventionsopentelemetry-sdk==1.43.0- # via machinaos-server+ # via opencompany-serveropentelemetry-semantic-conventions==0.64b0# via opentelemetry-sdkorjson==3.11.9# via# langgraph-sdk# langsmith- # machinaos-server+ # opencompany-serverormsgpack==1.12.2# via langgraph-checkpointpackaging==26.2@@ -337,7 +337,7 @@ platformdirs==4.10.0pluggy==1.6.0# via pytestpooch==1.9.0- # via machinaos-server+ # via opencompany-serverportkey-ai==2.3.2# via rlmsprimp==1.3.1@@ -359,9 +359,9 @@ protobuf==7.35.1psutil==7.2.2# via# crawlee- # machinaos-server+ # opencompany-serverptyprocess==0.7.0 ; sys_platform != 'win32'- # via machinaos-server+ # via opencompany-serverpyasn1==0.6.4# via pyasn1-modulespyasn1-modules==0.4.2@@ -382,7 +382,7 @@ pydantic==2.12.5# langchain-google-genai# langgraph# langsmith- # machinaos-server+ # opencompany-server# mcp# ollama# openai@@ -393,11 +393,11 @@ pydantic==2.12.5pydantic-core==2.41.5# via pydanticpydantic-monty==0.0.18- # via machinaos-server+ # via opencompany-serverpydantic-settings==2.14.2# via# crawlee- # machinaos-server+ # opencompany-server# mcppyee==13.0.1# via crawlee@@ -407,7 +407,7 @@ pygments==2.20.0# richpyjwt==2.13.0# via- # machinaos-server+ # opencompany-server# mcppyparsing==3.3.2# via httplib2@@ -415,29 +415,29 @@ pytest==9.1.1# via rlmspython-dotenv==1.2.2# via- # machinaos-server+ # opencompany-server# pydantic-settings# rlms# uvicornpython-multipart==0.0.32# via mcppython-slugify==8.0.4- # via machinaos-server+ # via opencompany-serverpython-telegram-bot==22.8- # via machinaos-server+ # via opencompany-serverpytz==2026.2- # via machinaos-server+ # via opencompany-serverpywin32==312 ; sys_platform == 'win32'# via mcppywinpty==3.0.5 ; sys_platform == 'win32'- # via machinaos-server+ # via opencompany-serverpyyaml==6.0.3# via# langchain-core- # machinaos-server+ # opencompany-server# uvicornqrcode==8.2- # via machinaos-server+ # via opencompany-serverreferencing==0.37.0# via# jsonschema@@ -470,7 +470,7 @@ requests-toolbelt==1.0.0rich==15.0.0# via rlmsrlms==0.1.3- # via machinaos-server+ # via opencompany-serverrpds-py==2026.6.3# via# jsonschema@@ -492,7 +492,7 @@ soupsieve==2.8.4sqlalchemy==2.0.51# via sqlmodelsqlmodel==0.0.39- # via machinaos-server+ # via opencompany-serversse-starlette==3.4.5# via mcpstarlette==1.3.1@@ -501,9 +501,9 @@ starlette==1.3.1# mcp# sse-starlettestructlog==26.1.0- # via machinaos-server+ # via opencompany-servertemporalio==1.30.0- # via machinaos-server+ # via opencompany-servertenacity==9.1.4# via# google-genai@@ -562,7 +562,7 @@ typing-inspection==0.4.2# pydantic# pydantic-settingstzdata==2026.3- # via machinaos-server+ # via opencompany-serveruritemplate==4.2.0# via google-api-python-clienturllib3==2.7.0@@ -575,7 +575,7 @@ uuid-utils==0.17.0# langsmithuvicorn==0.51.0# via- # machinaos-server+ # opencompany-server# mcpuvloop==0.22.1 ; platform_python_implementation != 'PyPy' and sys_platform != 'cygwin' and sys_platform != 'win32'# via uvicorn@@ -589,12 +589,12 @@ websockets==16.1# via# google-genai# langsmith- # machinaos-server+ # opencompany-server# uvicornwsproto==1.3.2# via httpx-wsxdk==0.9.0- # via machinaos-server+ # via opencompany-serverxxhash==3.8.1# via# langgraphdiff --git a/server/routers/auth.py b/server/routers/auth.pyindex 4893e122..6855b40a 100644--- a/server/routers/auth.py+++ b/server/routers/auth.py@@ -3,6 +3,7 @@from fastapi import APIRouter, Depends, HTTPException, Response, Requestfrom pydantic import BaseModel, EmailStr+from core.auth_cookies import get_session_token, session_cookie_namesfrom core.container import containerfrom core.config import Settingsfrom core.logging import get_logger@@ -54,7 +55,7 @@ async def get_auth_status(status = user_auth.get_auth_status()# Check if user has a valid session- token = request.cookies.get(settings.jwt_cookie_name)+ token = get_session_token(request.cookies, settings)current_user = Noneif token:@@ -162,9 +163,13 @@ async def logout(auth_service.clear_cache()# Delete auth cookie- response.delete_cookie(- key=settings.jwt_cookie_name, httponly=True, secure=settings.jwt_cookie_secure, samesite=settings.jwt_cookie_samesite- )+ for cookie_name in session_cookie_names(settings):+ response.delete_cookie(+ key=cookie_name,+ httponly=True,+ secure=settings.jwt_cookie_secure,+ samesite=settings.jwt_cookie_samesite,+ )return {"success": True}@@ -176,7 +181,7 @@ async def get_current_user(Get current authenticated user.Requires valid session cookie."""- token = request.cookies.get(settings.jwt_cookie_name)+ token = get_session_token(request.cookies, settings)if not token:raise HTTPException(status_code=401, detail="Not authenticated")diff --git a/server/routers/websocket.py b/server/routers/websocket.pyindex a5b75ab5..20b73d9b 100644--- a/server/routers/websocket.py+++ b/server/routers/websocket.py@@ -164,7 +164,7 @@ async def handle_save_node_parameters(data: Dict[str, Any], websocket: WebSocket)await database.save_node_parameters(node_id, parameters)# CloudEvents v1.0 envelope (RFC §6.4) — type is- # ``com.machinaos.node.parameters.updated``; ``source_hint="user"``+ # ``com.opencompany.node.parameters.updated``; ``source_hint="user"``# because this handler fires from the parameter-panel save flow.await broadcaster.broadcast_node_parameters_updated(node_id,@@ -1453,7 +1453,9 @@ async def websocket_status_endpoint(websocket: WebSocket):if not auth_disabled:# Auth enabled - verify token- token = websocket.cookies.get(settings.jwt_cookie_name)+ from core.auth_cookies import get_session_token++ token = get_session_token(websocket.cookies, settings)if not token:await websocket.close(code=4001, reason="Not authenticated")@@ -1565,7 +1567,7 @@ async def websocket_internal_endpoint(websocket: WebSocket):"""Internal WebSocket endpoint for Temporal workers.This endpoint bypasses authentication and is intended for internal- service-to-service communication (e.g., Temporal activity -> MachinaOs).+ service-to-service communication (e.g., Temporal activity -> OpenCompany).Security: Should only be exposed on localhost/internal network."""diff --git a/server/scripts/smoke_test_skills.py b/server/scripts/smoke_test_skills.pyindex 494aefef..7c3a6ba1 100644--- a/server/scripts/smoke_test_skills.py+++ b/server/scripts/smoke_test_skills.py@@ -15,9 +15,9 @@ Run from ``server/``:.venv/Scripts/python.exe scripts/smoke_test_skills.pyRequires:- - Claude binary at ``data/claude-machina/npm/...`` (lazy-installed+ - Claude binary under ``<DATA_DIR>/packages/...`` (lazy-installedby ``nodes.agent.claude_code_agent._oauth.claude_binary_path``).- - Claude auth (``data/claude-machina/`` is the project-local+ - Claude auth (``<DATA_DIR>/claude/`` is the isolatedCLAUDE_CONFIG_DIR; user must have logged in once).- No active workflow consuming pool slot ``smoke-test-memory``.@@ -40,7 +40,7 @@ async def main() -> int:sys.path.insert(0, str(server_dir))from services.cli_agent.types import ClaudeTaskSpec- from nodes.agent.claude_code_agent._oauth import MACHINA_CLAUDE_DIR+ from nodes.agent.claude_code_agent._oauth import OPENCOMPANY_CLAUDE_DIRfrom nodes.agent.claude_code_agent._pool import get_session_poolfrom nodes.agent.claude_code_agent._skills import materialise_skills@@ -49,7 +49,7 @@ async def main() -> int:workflow_id = "smoke-test-wf"skill_under_test = "humanify-skill"- with tempfile.TemporaryDirectory(prefix="machina_skills_smoke_") as tmp:+ with tempfile.TemporaryDirectory(prefix="opencompany_skills_smoke_") as tmp:workspace = Path(tmp).resolve()print(f"[smoke] workspace = {workspace}")print(f"[smoke] repo_root = {repo_root}")@@ -94,8 +94,10 @@ async def main() -> int:# `cwd=repo_root` for memory-bound runs.pool = get_session_pool()env = {**os.environ, "PYTHONUNBUFFERED": "1"}- env["CLAUDE_CONFIG_DIR"] = str(MACHINA_CLAUDE_DIR)- env["MACHINA_PARENT_RUN_ID"] = f"{workflow_id}:{memory_node_id}:smoke"+ env["CLAUDE_CONFIG_DIR"] = str(OPENCOMPANY_CLAUDE_DIR)+ parent_run_id = f"{workflow_id}:{memory_node_id}:smoke"+ env["OPENCOMPANY_PARENT_RUN_ID"] = parent_run_id+ env["MACHINA_PARENT_RUN_ID"] = parent_run_id# Make sure no stale pool entry. Idempotent.await pool.terminate(memory_node_id)diff --git a/server/services/ai.py b/server/services/ai.pyindex 26f13e40..4490db2d 100644--- a/server/services/ai.py+++ b/server/services/ai.py@@ -289,7 +289,7 @@ def _gemini_headers(api_key: str) -> dict:def _openrouter_headers(api_key: str) -> dict:- return {"Authorization": f"Bearer {api_key}", "HTTP-Referer": "http://localhost:3000", "X-Title": "MachinaOS"}+ return {"Authorization": f"Bearer {api_key}", "HTTP-Referer": "http://localhost:3000", "X-Title": "OpenCompany"}def _groq_headers(api_key: str) -> dict:diff --git a/server/services/cli_agent/__init__.py b/server/services/cli_agent/__init__.pyindex 5c66e030..4a2ad7f7 100644--- a/server/services/cli_agent/__init__.py+++ b/server/services/cli_agent/__init__.py@@ -2,7 +2,7 @@Spawns N parallel Claude Code / Codex CLI sessions per workflow node,each isolated in its own git worktree, with a shared MCP server hosting-MachinaOs tools (``mcp__machina__*``) discovered via VSCode-style+OpenCompany tools (``mcp__opencompany__*``) discovered via VSCode-stylelockfile.Self-registers per-provider WebSocket handlersdiff --git a/server/services/cli_agent/_handlers.py b/server/services/cli_agent/_handlers.pyindex 8f164d84..18add0ef 100644--- a/server/services/cli_agent/_handlers.py+++ b/server/services/cli_agent/_handlers.py@@ -41,7 +41,7 @@ async def handle_codex_cli_login(return {"success": False,"error": (- "Codex login is not yet wired in MachinaOs. "+ "Codex login is not yet wired in OpenCompany. ""Install with `npm install -g @openai/codex` and run ""`codex login` in your terminal — then click Login again ""to mark connected."diff --git a/server/services/cli_agent/lockfile.py b/server/services/cli_agent/lockfile.pyindex dee6ba08..3dc408c4 100644--- a/server/services/cli_agent/lockfile.py+++ b/server/services/cli_agent/lockfile.py@@ -1,7 +1,7 @@"""VSCode-style IDE lockfile writer + remover + stale-PID sweep.Each spawned CLI session writes a discovery lockfile that the CLI reads-to auto-connect to MachinaOs's MCP server. We mirror the format the+to auto-connect to OpenCompany's MCP server. We mirror the format theofficial VSCode Claude Code extension writes(``~/.claude/ide/<pid>.lock`` containing``{port, url, authToken, workspaceFolders, ideName, transport, pid}``)diff --git a/server/services/cli_agent/mcp_server.py b/server/services/cli_agent/mcp_server.pyindex 10e17620..48e5d6de 100644--- a/server/services/cli_agent/mcp_server.py+++ b/server/services/cli_agent/mcp_server.py@@ -1,4 +1,4 @@-"""MachinaOs MCP server (VSCode pattern, no custom IPC).+"""OpenCompany MCP server (VSCode pattern, no custom IPC).Hosts a `FastMCP` ASGI sub-app at ``/mcp/ide`` that spawned CLI sessionsauto-discover via the lockfile written by ``lockfile.py``. Each session@@ -12,7 +12,7 @@ Tools (5 in v1, mirroring Claude Code's progressive-disclosure pattern):- ``listSkills`` — metadata for skills connected to the parent agent- ``getSkill`` — full skill markdown + scripts + references- ``getCredential`` — gated by per-batch allowlist- - ``broadcastLog`` — write to MachinaOs Terminal tab+ - ``broadcastLog`` — write to OpenCompany Terminal tabThe server module exposes:- :func:`get_mcp_app` — Starlette/ASGI sub-app for ``app.mount(...)``@@ -62,7 +62,7 @@ class BatchContext:# Connected ``input-tools`` nodes (entries from# ``services.plugin.edge_walker.collect_agent_connections``). Each# dict: ``{node_id, node_type, label, parameters, ...}``. Drives the- # ``listMachinaOsTools`` / ``callMachinaOsTool`` MCP tools so the+ # ``listOpenCompanyTools`` / ``callOpenCompanyTool`` MCP tools so the# CLI agent sees the same tool surface the AI Agent does.connected_tools: List[Dict[str, Any]] = field(default_factory=list)# Optional broadcaster for `broadcastLog`. Lazily resolved from the@@ -196,7 +196,7 @@ def active_batch_count() -> int:# ContextVar — thread/task-local handle to the current batch# ----------------------------------------------------------------------------_current_batch: contextvars.ContextVar[Optional[BatchContext]] = contextvars.ContextVar("machina_current_batch", default=None)+_current_batch: contextvars.ContextVar[Optional[BatchContext]] = contextvars.ContextVar("opencompany_current_batch", default=None)def _require_batch() -> BatchContext:@@ -208,7 +208,7 @@ def _require_batch() -> BatchContext:# Per-batch workflow-tool exposure happens in `_expose_workflow_tools`# (above). Each connected node lands as its own-# `mcp__machinaos__<node_type>` entry; FastMCP infers the inputSchema+# `mcp__opencompany__<node_type>` entry; FastMCP infers the inputSchema# from the typed `params` annotation. The legacy generic wrapper has# been removed.@@ -463,13 +463,13 @@ def _build_tools(mcp: Any) -> None: # FastMCP type# Per-batch workflow tools are exposed dynamically on# `register_batch` via `_expose_workflow_tools` — each connected- # node lands as its own `mcp__machinaos__<node_type>` entry. No- # generic `listMachinaOsTools` / `callMachinaOsTool` wrapper.+ # node lands as its own `mcp__opencompany__<node_type>` entry. No+ # generic `listOpenCompanyTools` / `callOpenCompanyTool` wrapper.@mcp.tool(name="broadcastLog",description=(- "Write a log line to the MachinaOs Terminal tab. Use to "+ "Write a log line to the OpenCompany Terminal tab. Use to ""surface intermediate progress that would otherwise be lost ""between CLI sessions."),@@ -522,9 +522,9 @@ def get_mcp_app() -> Any:from mcp.server.fastmcp import FastMCPmcp = FastMCP(- name="machinaos-cli-agent",+ name="opencompany-cli-agent",instructions=(- "MachinaOs IDE MCP server. Exposes workspace files, connected "+ "OpenCompany IDE MCP server. Exposes workspace files, connected ""skills, scoped credentials, and a Terminal-tab log channel ""to the calling CLI session."),diff --git a/server/services/cli_agent/protocol.py b/server/services/cli_agent/protocol.pyindex cdd38e3b..c926c5cb 100644--- a/server/services/cli_agent/protocol.py+++ b/server/services/cli_agent/protocol.py@@ -11,7 +11,8 @@ are isolated to the provider; the session/pool/service layer is generic.Auth: native CLI handles its own tokens. We only trigger the login flow(`login_argv()`) and detect logged-in state (`auth_status_argv()` +-`detect_auth_error()`). No credential wrapping, no `~/.claude-machina/`.+`detect_auth_error()`). No credential wrapping; provider state is isolated+under the configured OpenCompany data directory."""from __future__ import annotations@@ -102,7 +103,7 @@ class AICliProvider(Protocol):package_name: str # npm packagebinary_name: str # "claude" | "codex" | "gemini"ide_lock_env_var: Optional[str] # CLAUDE_IDE_LOCK | GEMINI_IDE_LOCK | None- ide_lockfile_dir: Optional[Path] # <MACHINA_CLAUDE_DIR>/ide | <tmpdir>/gemini/ide+ ide_lockfile_dir: Optional[Path] # <OPENCOMPANY_CLAUDE_DIR>/ide | <tmpdir>/gemini/ide# ---- spawn surface ---------------------------------------------------diff --git a/server/services/cli_agent/service.py b/server/services/cli_agent/service.pyindex b9e0aac6..55c42c2b 100644--- a/server/services/cli_agent/service.py+++ b/server/services/cli_agent/service.py@@ -162,7 +162,12 @@ class AICliService:# Per-batch bearer token + MCP contexttoken = issue_token()- port = mcp_port or int(os.environ.get("MACHINA_BACKEND_PORT", "3010"))+ port = mcp_port or int(+ os.environ.get(+ "OPENCOMPANY_BACKEND_PORT",+ os.environ.get("MACHINA_BACKEND_PORT", "3010"),+ )+ )ctx = BatchContext(workflow_id=workflow_id,node_id=node_id,@@ -328,7 +333,7 @@ class AICliService:# `total_cost_usd` natively); for providers that don't (Codex,# Gemini v2), derive USD from `canonical_usage` via the existing# PricingService — a single source of truth for all LLM cost in- # MachinaOs.+ # OpenCompany.for r in results:if r.cost_usd is None:derived = self._derive_cost(r, task_list)@@ -448,11 +453,13 @@ class AICliService:env = {**os.environ, "PYTHONUNBUFFERED": "1"}# Project-local claude auth dir — same as ``AICliSession.env``.- from nodes.agent.claude_code_agent._oauth import MACHINA_CLAUDE_DIR+ from nodes.agent.claude_code_agent._oauth import OPENCOMPANY_CLAUDE_DIR- env["CLAUDE_CONFIG_DIR"] = str(MACHINA_CLAUDE_DIR)+ env["CLAUDE_CONFIG_DIR"] = str(OPENCOMPANY_CLAUDE_DIR)# Composio-style parent-run-ID for MCP correlation.- env["MACHINA_PARENT_RUN_ID"] = f"{workflow_id}:{memory_node_id}:{mcp_bearer_token[:8]}"+ parent_run_id = f"{workflow_id}:{memory_node_id}:{mcp_bearer_token[:8]}"+ env["OPENCOMPANY_PARENT_RUN_ID"] = parent_run_id+ env["MACHINA_PARENT_RUN_ID"] = parent_run_id # legacy child-process contractpooled = await pool.acquire(memory_node_id,@@ -593,7 +600,7 @@ class AICliService:# Broadcast `node_parameters_updated` so the simpleMemory's# parameter panel + memory editor refetch live without a page# reload. CloudEvents v1.0 envelope (RFC §6.4) — type is- # ``com.machinaos.node.parameters.updated``; ``source_hint="cli"``+ # ``com.opencompany.node.parameters.updated``; ``source_hint="cli"``# distinguishes this Claude-CLI autonomous write from a user# parameter-panel save.if broadcaster is not None:diff --git a/server/services/cli_agent/session.py b/server/services/cli_agent/session.pyindex 2858a1ac..51ed4eff 100644--- a/server/services/cli_agent/session.py+++ b/server/services/cli_agent/session.py@@ -57,7 +57,7 @@ logger = get_logger(__name__)# Claude derives its project_key from cwd by replacing every char that# isn't [a-zA-Z0-9.-] with `-`. Verified byte-for-byte against the-# on-disk `~/.claude-machina/projects/` listing in the memory-bridge+# on-disk `<DATA_DIR>/claude/projects/` listing in the memory-bridge# research._PROJECT_KEY_RE = re.compile(r"[^a-zA-Z0-9.-]")@@ -107,14 +107,14 @@ class AICliSession(BaseProcessSupervisor):# ``repo_root`` which would otherwise be shared across workflows).self._workspace_dir = Path(workspace_dir).resolve()self._worktree_dir = self._workspace_dir / node_id / f"wt_{self._task_id}"- self._branch = task.branch or f"machina/{self._task_id}"+ self._branch = task.branch or f"opencompany/{self._task_id}"self._broadcaster = broadcasterself._defaults = defaultsself._mcp_port = mcp_portself._batch_token = batch_tokenself._node_id = node_idself._workflow_id = workflow_id- # Names of `mcp__machinaos__*` tools to add to `--allowedTools`.+ # Names of `mcp__opencompany__*` tools to add to `--allowedTools`.self._connected_tool_names: List[str] = list(connected_tool_names or [])# Skills to materialise into `<worktree>/.claude/skills/<name>/SKILL.md`# so claude auto-discovers them per the documented project-scope@@ -181,7 +181,7 @@ class AICliSession(BaseProcessSupervisor):)def _mcp_endpoint_url(self) -> str:- """Absolute URL of MachinaOs's FastMCP JSON-RPC endpoint.+ """Absolute URL of OpenCompany's FastMCP JSON-RPC endpoint.Mirrors the ``url`` written into the IDE lockfile. FastMCP servesat ``/mcp`` of the sub-app; ``main.py`` mounts it at ``/mcp/ide``;@@ -197,7 +197,7 @@ class AICliSession(BaseProcessSupervisor):return self._worktree_dirdef env(self) -> Dict[str, str]:- # Inherit parent env, then redirect provider config to MachinaOs's+ # Inherit parent env, then redirect provider config to OpenCompany's# project-local isolation dir for providers that support it (Claude# via CLAUDE_CONFIG_DIR; Codex/Gemini still use their native auth# paths until isolation is wired). Without this, the agent's@@ -205,13 +205,15 @@ class AICliSession(BaseProcessSupervisor):# instead of the ones the credentials modal's Login button wrote.e: Dict[str, str] = {**os.environ, "PYTHONUNBUFFERED": "1"}if self._provider.name == "claude":- from nodes.agent.claude_code_agent._oauth import MACHINA_CLAUDE_DIR+ from nodes.agent.claude_code_agent._oauth import OPENCOMPANY_CLAUDE_DIR- e["CLAUDE_CONFIG_DIR"] = str(MACHINA_CLAUDE_DIR)+ e["CLAUDE_CONFIG_DIR"] = str(OPENCOMPANY_CLAUDE_DIR)if self._lockfile_path and self._provider.ide_lock_env_var:e[self._provider.ide_lock_env_var] = str(self._lockfile_path)# Composio-style parent-run-ID for MCP correlation- e["MACHINA_PARENT_RUN_ID"] = f"{self._workflow_id}:{self._node_id}:{self._batch_token[:8]}"+ parent_run_id = f"{self._workflow_id}:{self._node_id}:{self._batch_token[:8]}"+ e["OPENCOMPANY_PARENT_RUN_ID"] = parent_run_id+ e["MACHINA_PARENT_RUN_ID"] = parent_run_id # legacy child-process contractreturn easync def _pre_spawn(self) -> None:@@ -415,19 +417,19 @@ class AICliSession(BaseProcessSupervisor):def _project_dir(self) -> Path:"""Return the dir where claude writes its session JSONLs for- our cwd. ``<MACHINA_CLAUDE_DIR>/projects/<project_key>/``.+ our cwd. ``<OPENCOMPANY_CLAUDE_DIR>/projects/<project_key>/``.Claude derives ``project_key`` by replacing every non-``[a-zA-Z0-9.-]`` char in ``str(cwd)`` with ``-``. Verifiedbyte-for-byte against the on-disk- ``data/claude-machina/projects/`` listing in the memory-bridge+ ``<DATA_DIR>/claude/projects/`` listing in the memory-bridgeresearch."""- from nodes.agent.claude_code_agent._oauth import MACHINA_CLAUDE_DIR+ from nodes.agent.claude_code_agent._oauth import OPENCOMPANY_CLAUDE_DIRcwd = self.cwd() or self._repo_rootproject_key = _PROJECT_KEY_RE.sub("-", str(cwd))- return Path(MACHINA_CLAUDE_DIR) / "projects" / project_key+ return Path(OPENCOMPANY_CLAUDE_DIR) / "projects" / project_keyasync def _wait_for_session_jsonl(self,diff --git a/server/services/cli_agent/transports/base.py b/server/services/cli_agent/transports/base.pyindex bf1708ae..93a8674c 100644--- a/server/services/cli_agent/transports/base.py+++ b/server/services/cli_agent/transports/base.py@@ -105,7 +105,7 @@ class PtyTransport(Protocol):(e.g. ConPTY not available on a too-old Windows build).The handle is registered with the process tree supervisor- (:mod:`machina.tree` on Windows, ``os.setsid`` on POSIX) so the+ (:mod:`cli.tree` on Windows, ``os.setsid`` on POSIX) so thechild is reaped on host shutdown — see the existing``BaseProcessSupervisor`` patterns."""diff --git a/server/services/cli_agent/types.py b/server/services/cli_agent/types.pyindex 2aedf922..aee7cd06 100644--- a/server/services/cli_agent/types.py+++ b/server/services/cli_agent/types.py@@ -37,7 +37,7 @@ class BaseAICliTaskSpec(BaseModel):)branch: Optional[str] = Field(default=None,- description="Branch name for the per-task git worktree. " "Auto-named `machina/<task_id>` if omitted.",+ description="Branch name for the per-task git worktree. " "Auto-named `opencompany/<task_id>` if omitted.",)model: Optional[str] = Field(default=None)timeout_seconds: int = Field(@@ -46,7 +46,7 @@ class BaseAICliTaskSpec(BaseModel):le=3600,description="Hard timeout per task. On expiry the session is ""terminate_then_kill'd and a diagnostic dump is "- "written to ~/.claude-machina/logs/.",+ "written under the configured OpenCompany data directory.",)system_prompt: Optional[str] = Field(default=None,@@ -104,7 +104,7 @@ class ClaudeTaskSpec(BaseAICliTaskSpec):"claude built-ins (Read/Edit/Bash/Glob/Grep/Write/""Skill/WebSearch/WebFetch) are intentionally NOT in ""the allowlist; the agent only gets connected MCP "- "tools + MachinaOs's own MCP infrastructure tools.",+ "tools + OpenCompany's own MCP infrastructure tools.",)permission_mode: Literal["default", "acceptEdits", "plan", "auto", "dontAsk", "bypassPermissions"] = "dontAsk"diff --git a/server/services/cli_agent/workflow_tools.py b/server/services/cli_agent/workflow_tools.pyindex 00126d3d..3f6e7e3b 100644--- a/server/services/cli_agent/workflow_tools.py+++ b/server/services/cli_agent/workflow_tools.py@@ -2,7 +2,7 @@When an agent batch wires nodes through ``input-tools``, each connectednode is exposed on the FastMCP server as its own-``mcp__machinaos__<node_type>`` entry. The spawned ``claude -p`` sees+``mcp__opencompany__<node_type>`` entry. The spawned ``claude -p`` seesthose tools on the very first ``tools/list`` and can invoke themdirectly — no two-step generic-wrapper indirection.@@ -65,9 +65,9 @@ def expose_workflow_tools(connected_tools: List[Dict[str, Any]]) -> None:mcp.add_tool(handler,name=node_type,- description=(getattr(cls, "description", None) or f"MachinaOs workflow tool: {node_type}"),+ description=(getattr(cls, "description", None) or f"OpenCompany workflow tool: {node_type}"),)- logger.info("[CC-Agent MCP] exposed mcp__machinaos__%s", node_type)+ logger.info("[CC-Agent MCP] exposed mcp__opencompany__%s", node_type)except Exception as exc: # pragma: no coverlogger.warning("[CC-Agent MCP] add_tool(%s) failed: %s", node_type, exc)_schedule_list_changed_notify()@@ -89,7 +89,7 @@ def unexpose_workflow_tools(connected_tools: List[Dict[str, Any]]) -> None:_active_tool_refcounts.pop(node_type, None)try:mcp.remove_tool(node_type)- logger.info("[CC-Agent MCP] removed mcp__machinaos__%s", node_type)+ logger.info("[CC-Agent MCP] removed mcp__opencompany__%s", node_type)except Exception as exc: # pragma: no coverlogger.debug("[CC-Agent MCP] remove_tool(%s): %s", node_type, exc)_schedule_list_changed_notify()diff --git a/server/services/deployment/canary_registry.py b/server/services/deployment/canary_registry.pyindex ee867a8d..143ff5f6 100644--- a/server/services/deployment/canary_registry.py+++ b/server/services/deployment/canary_registry.py@@ -20,11 +20,11 @@ ensures events reach that listener.Membership semantics (set-shaped):- register_canary_trigger_type("webhookTrigger", "com.machinaos.webhook.received")- register_canary_trigger_type("chatTrigger", "com.machinaos.chat.message.received")+ register_canary_trigger_type("webhookTrigger", "com.opencompany.webhook.received")+ register_canary_trigger_type("chatTrigger", "com.opencompany.chat.message.received")is_canary_trigger_type("webhookTrigger") # Trueis_canary_trigger_type("whatsappReceive") # False (not yet opted in)- cloudevent_type_for("webhookTrigger") # "com.machinaos.webhook.received"+ cloudevent_type_for("webhookTrigger") # "com.opencompany.webhook.received"Idempotent on re-import (multiple registrations of the same type withthe same cloudevent_type are a no-op; a conflicting cloudevent_type@@ -36,7 +36,7 @@ Search Attribute. :func:`services.events.dispatch.emit` runs aVisibility query ``EventType='<value>' AND ExecutionStatus='Running'``to find listeners and signal them. The query uses ``event.type`` fromthe CloudEvents envelope (reverse-DNS, e.g.-``com.machinaos.chat.message.received``). The Search Attribute MUST+``com.opencompany.chat.message.received``). The Search Attribute MUSTcarry the same value or the query never matches and no signal isdelivered — symptom was "TriggerListener started ok but never reactsto incoming events". Pre-fix the deployment manager registered the@@ -68,7 +68,7 @@ def register_canary_trigger_type(node_type: str, cloudevent_type: str) -> None:when deciding which trigger goes to the canary listener.cloudevent_type: The CloudEvents ``type`` field the plugin's``_events.py`` factory will populate on outgoing envelopes- (reverse-DNS, e.g. ``"com.machinaos.chat.message.received"``).+ (reverse-DNS, e.g. ``"com.opencompany.chat.message.received"``).Used as the ``EventType`` Search Attribute value when thelistener workflow is started so:func:`services.events.dispatch.emit`'s Visibility querydiff --git a/server/services/deployment/manager.py b/server/services/deployment/manager.pyindex 41ad2a84..3cc6b28c 100644--- a/server/services/deployment/manager.py+++ b/server/services/deployment/manager.py@@ -624,7 +624,7 @@ class DeploymentManager:``None`` if the Temporal client isn't connected (caller fallsthrough to the legacy collector/processor path).- Idempotent: re-deploying the same MachinaOs workflow re-runs+ Idempotent: re-deploying the same OpenCompany workflow re-runsthis with the same deterministic id; Temporal returns theexisting handle via ``WorkflowIDConflictPolicy.USE_EXISTING``instead of erroring. Search Attributes provide the registrydiff --git a/server/services/events/__init__.py b/server/services/events/__init__.pyindex 53dbd76c..242cd94a 100644--- a/server/services/events/__init__.py+++ b/server/services/events/__init__.py@@ -1,6 +1,6 @@"""Generalized event-source framework (Wave 12).-Three concrete EventSource subclasses cover all current MachinaOs+Three concrete EventSource subclasses cover all current OpenCompanytrigger integrations: ``PushEventSource`` (HTTP/RPC pushes),``PollingEventSource`` (interval-based pull), ``DaemonEventSource``(long-lived subprocess driver). Webhook flow is a thin specialisationdiff --git a/server/services/events/admin_handlers.py b/server/services/events/admin_handlers.pyindex 35a3c13a..5b205c79 100644--- a/server/services/events/admin_handlers.py+++ b/server/services/events/admin_handlers.py@@ -1,6 +1,6 @@"""Wave 12 D3: Visibility admin WS handlers.-Thin wrappers around Temporal's Visibility API so the MachinaOs admin+Thin wrappers around Temporal's Visibility API so the OpenCompany adminUI can inspect canary listener / schedule state without leaving theapp. No new DB tables, no custom persistence — Temporal Event History+ Visibility queries ARE the registry (see@@ -69,7 +69,7 @@ async def handle_list_canary_listeners("status": "RUNNING","start_time": "<ISO>","trigger_node_id": "<node>",- "event_type": "<com.machinaos. ... >"},+ "event_type": "<com.opencompany. ... >"},...],"count": <int>,diff --git a/server/services/events/dispatch.py b/server/services/events/dispatch.pyindex ec84cd45..b7c60f51 100644--- a/server/services/events/dispatch.py+++ b/server/services/events/dispatch.py@@ -30,7 +30,7 @@ from typing import Optionalfrom core.config import Settingsfrom core.logging import get_logger-from services.events.envelope import WorkflowEvent+from services.events.envelope import WorkflowEvent, equivalent_event_typeslogger = get_logger(__name__)@@ -46,6 +46,7 @@ _DEFAULT_WIRE_ROUTING_KEY = "cloudevent"# ``ExecutionStatus`` enum value 'Running' matches Temporal's status# encoding; see https://docs.temporal.io/list-filter._RUNNING_CONSUMERS_QUERY = "EventType='{event_type}' AND ExecutionStatus='Running'"+_RUNNING_COMPAT_CONSUMERS_QUERY = "({event_type_clauses}) AND ExecutionStatus='Running'"# Signal handler name on consumer workflows. Plain identifier rather# than CloudEvents type because Temporal Signal names are Python@@ -117,7 +118,12 @@ async def _signal_running_consumers(event: WorkflowEvent) -> None:returnclient = wrapper.client- query = _RUNNING_CONSUMERS_QUERY.format(event_type=event.type)+ event_types = equivalent_event_types(event.type)+ if len(event_types) == 1:+ query = _RUNNING_CONSUMERS_QUERY.format(event_type=event_types[0])+ else:+ clauses = " OR ".join(f"EventType='{event_type}'" for event_type in event_types)+ query = _RUNNING_COMPAT_CONSUMERS_QUERY.format(event_type_clauses=clauses)try:consumers = []diff --git a/server/services/events/envelope.py b/server/services/events/envelope.pyindex 52849b9e..4da0dc53 100644--- a/server/services/events/envelope.py+++ b/server/services/events/envelope.py@@ -2,7 +2,7 @@Field set mirrors https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.mdverbatim so future interop with EventBridge / Knative is a JSON-schema swap.-The MachinaOs extensions (``workflow_id``, ``trigger_node_id``,+The OpenCompany extensions (``workflow_id``, ``trigger_node_id``,``correlation_id``) ride as CloudEvents extension attributes. Spec §3.1SHOULDs lowercase-alphanumeric extension names; we deliberately keepPython snake_case for codebase consistency — the rest of the project@@ -11,7 +11,7 @@ outweighs the spec recommendation. Internal interop only; if we everpublish events to an external CloudEvents broker, an alias layer cantranslate at the producer boundary.-Type strings carry the reverse-DNS prefix ``com.machinaos.`` per+Type strings carry the reverse-DNS prefix ``com.opencompany.`` perPrimer guidance. ``dataschema`` is auto-populated from ``type`` soevery typed factory produces a schema URI the consumer can validateagainst.@@ -26,19 +26,46 @@ from uuid import uuid4from pydantic import BaseModel, ConfigDict, Field, model_validator-_TYPE_PREFIX = "com.machinaos."-_DATASCHEMA_BASE = "machinaos://schemas/events/"+_TYPE_PREFIX = "com.opencompany."+_LEGACY_TYPE_PREFIX = "com.machinaos."+_DATASCHEMA_BASE = "opencompany://schemas/events/"+++def _unprefixed_event_type(event_type: str) -> str:+ """Strip either the canonical or legacy product namespace."""++ for prefix in (_TYPE_PREFIX, _LEGACY_TYPE_PREFIX):+ if event_type.startswith(prefix):+ return event_type.removeprefix(prefix)+ return event_type+++def equivalent_event_types(event_type: str) -> tuple[str, ...]:+ """Return canonical/legacy equivalents for Temporal replay routing.++ Running listener workflows may still have ``com.machinaos.*`` stored in+ their ``EventType`` Search Attribute. New producers emit+ ``com.opencompany.*``; dispatch queries both during the transition.+ """++ if event_type.startswith(_TYPE_PREFIX):+ suffix = event_type.removeprefix(_TYPE_PREFIX)+ return event_type, f"{_LEGACY_TYPE_PREFIX}{suffix}"+ if event_type.startswith(_LEGACY_TYPE_PREFIX):+ suffix = event_type.removeprefix(_LEGACY_TYPE_PREFIX)+ return f"{_TYPE_PREFIX}{suffix}", event_type+ return (event_type,)def _dataschema_for(event_type: str) -> str:"""Compute the ``dataschema`` URI for a given event ``type``.- Strips the ``com.machinaos.`` prefix when present so the URI segment+ Strips the ``com.opencompany.`` prefix when present so the URI segmentmatches the un-prefixed type (e.g. ``credential.api_key.saved``).External-producer events (e.g. ``stripe.charge.succeeded`` from aStripe webhook) keep their type verbatim in the URI segment."""- seg = event_type.removeprefix(_TYPE_PREFIX) if event_type else event_type+ seg = _unprefixed_event_type(event_type) if event_type else event_typereturn f"{_DATASCHEMA_BASE}{seg}.json"@@ -113,7 +140,7 @@ class WorkflowEvent(BaseModel):``broadcast_credential_event`` contract locked by``test_credential_broadcasts.py``)."""return cls(- source="machinaos://services/credentials",+ source="opencompany://services/credentials",type=f"{_TYPE_PREFIX}credential.{action}",subject=provider,data={"provider": provider, **extra} if extra else {"provider": provider},@@ -136,7 +163,7 @@ class WorkflowEvent(BaseModel):"""OAuth callback completion. ``identifier`` is the user-facinghandle (email / username) used as ``subject``."""return cls(- source=f"machinaos://nodes/{provider}",+ source=f"opencompany://nodes/{provider}",type=f"{_TYPE_PREFIX}{provider}.oauth.completed",subject=identifier,data=dict(data) if data else {"identifier": identifier},@@ -159,7 +186,7 @@ class WorkflowEvent(BaseModel):task.added / task.claimed / task.completed / task.failed /message.sent)."""return cls(- source="machinaos://services/agent_team",+ source="opencompany://services/agent_team",type=f"{_TYPE_PREFIX}team.{kind}",subject=team_id,data=dict(data),@@ -200,7 +227,7 @@ class WorkflowEvent(BaseModel):change."""return cls(- source="machinaos://services/workflow",+ source="opencompany://services/workflow",type=f"{_TYPE_PREFIX}workflow.{stage}",subject=workflow_id,workflow_id=workflow_id,@@ -232,7 +259,7 @@ class WorkflowEvent(BaseModel):the same way ``node_status`` broadcasts do."""return cls(- source="machinaos://services/agent",+ source="opencompany://services/agent",type=f"{_TYPE_PREFIX}agent.progress",subject=node_id,workflow_id=workflow_id,@@ -272,7 +299,7 @@ class WorkflowEvent(BaseModel):the user's in-progress local edits."""return cls(- source="machinaos://services/parameters",+ source="opencompany://services/parameters",type=f"{_TYPE_PREFIX}node.parameters.updated",subject=node_id,workflow_id=workflow_id,@@ -306,7 +333,7 @@ class WorkflowEvent(BaseModel):local state.""""return cls(- source="machinaos://services/workflow",+ source="opencompany://services/workflow",type=f"{_TYPE_PREFIX}workflow.deployment.snapshot",data={"running_workflow_ids": list(running_workflow_ids)},)@@ -323,7 +350,7 @@ class WorkflowEvent(BaseModel):"""Delegated child-agent completion.Both success and failure share one ``type``- (``com.machinaos.agent.task.completed``) so the+ (``com.opencompany.agent.task.completed``) so the``TriggerListenerWorkflow`` for ``taskTrigger`` can register asingle ``EventType`` Search Attribute and match everycompletion event via :func:`services.events.dispatch.emit`'s@@ -336,7 +363,7 @@ class WorkflowEvent(BaseModel):one branch and silently lost the other half of events."""return cls(- source="machinaos://services/agent",+ source="opencompany://services/agent",type=f"{_TYPE_PREFIX}agent.task.completed",subject=task_id,data=dict(data) if data else {"task_id": task_id, "agent": agent, "status": status},@@ -359,7 +386,7 @@ class WorkflowEvent(BaseModel):status badge."""return cls(- source="machinaos://services/cli_agent",+ source="opencompany://services/cli_agent",type=f"{_TYPE_PREFIX}claude.session.spawned",subject=memory_node_id,workflow_id=workflow_id,@@ -389,7 +416,7 @@ class WorkflowEvent(BaseModel):bridge + UI can track the rotation."""return cls(- source="machinaos://services/cli_agent",+ source="opencompany://services/cli_agent",type=f"{_TYPE_PREFIX}claude.session.cleared",subject=memory_node_id,workflow_id=workflow_id,@@ -417,7 +444,7 @@ class WorkflowEvent(BaseModel):``explicit`` (caller-driven terminate)."""return cls(- source="machinaos://services/cli_agent",+ source="opencompany://services/cli_agent",type=f"{_TYPE_PREFIX}claude.session.terminated",subject=memory_node_id,workflow_id=workflow_id,@@ -452,7 +479,7 @@ class WorkflowEvent(BaseModel):is plain text per Anthropic's docs and not parseable)."""return cls(- source="machinaos://services/cli_agent",+ source="opencompany://services/cli_agent",type=f"{_TYPE_PREFIX}claude.session.usage",subject=memory_node_id,workflow_id=workflow_id,@@ -475,21 +502,21 @@ class WorkflowEvent(BaseModel):"""Glob-style match on event type. ``"all"``/empty matches any.Patterns are matched against the type with the- ``com.machinaos.`` reverse-DNS prefix stripped, so callers can+ ``com.opencompany.`` reverse-DNS prefix stripped, so callers canwrite ``"credential.api_key.*"`` and still hit- ``com.machinaos.credential.api_key.saved``. External-producer+ ``com.opencompany.credential.api_key.saved``. External-producertypes (e.g. ``stripe.charge.succeeded`` from a Stripe webhook)have no prefix and match directly.Examples:"stripe.charge.succeeded" matches itself- "credential.api_key.*" matches "com.machinaos.credential.api_key.saved"- "agent.*" matches "com.machinaos.agent.progress"+ "credential.api_key.*" matches "com.opencompany.credential.api_key.saved"+ "agent.*" matches "com.opencompany.agent.progress""all" or "" matches everything"""if not pattern or pattern == "all":return True- normalized = (self.type or "").removeprefix(_TYPE_PREFIX)+ normalized = _unprefixed_event_type(self.type or "")if pattern.endswith(".*"):prefix = pattern[:-2]return normalized.startswith(prefix + ".") or normalized == prefixdiff --git a/server/services/llm/providers/openrouter.py b/server/services/llm/providers/openrouter.pyindex ffb82fce..172ff1b6 100644--- a/server/services/llm/providers/openrouter.py+++ b/server/services/llm/providers/openrouter.py@@ -27,7 +27,7 @@ class OpenRouterProvider(OpenAIProvider):"base_url": proxy_url or "https://openrouter.ai/api/v1","default_headers": {"HTTP-Referer": "http://localhost:3000",- "X-Title": "MachinaOS",+ "X-Title": "OpenCompany",},}self._client = openai.AsyncOpenAI(**kwargs)@@ -62,7 +62,7 @@ class OpenRouterProvider(OpenAIProvider):headers={"Authorization": f"Bearer {api_key}","HTTP-Referer": "http://localhost:3000",- "X-Title": "MachinaOS",+ "X-Title": "OpenCompany",},timeout=15.0,)diff --git a/server/services/model_registry.py b/server/services/model_registry.pyindex c6c85f94..6acde729 100644--- a/server/services/model_registry.py+++ b/server/services/model_registry.py@@ -26,7 +26,7 @@ OPENROUTER_MODELS_URL = "https://openrouter.ai/api/v1/models"CACHE_FILE = Path(__file__).parent.parent / "config" / "model_registry.json"CACHE_MAX_AGE = timedelta(hours=24)-# Provider normalization: OpenRouter provider -> MachinaOs provider+# Provider normalization: OpenRouter provider -> OpenCompany providerPROVIDER_MAP = {"google": "gemini","meta-llama": "meta",@@ -73,7 +73,7 @@ class ModelInfo:id: str # "openai/gpt-5.2"name: str # "OpenAI: GPT-5.2"- provider: str # "openai" (MachinaOs-normalized)+ provider: str # "openai" (OpenCompany-normalized)local_id: str # "gpt-5.2"context_length: int = 128000max_output_tokens: int = 4096diff --git a/server/services/process_service.py b/server/services/process_service.pyindex 4254a0a2..4fa0021b 100644--- a/server/services/process_service.py+++ b/server/services/process_service.py@@ -58,8 +58,9 @@ class ManagedProcess:class ProcessService:"""Singleton managing long-running subprocesses per workflow.- Output is written to temp files at {tmp}/machina-proc-{name}/stdout.log- and stderr.log. AI agents read them via get_output() with tail/offset.+ Output is written beneath the workflow workspace in+ ``.processes/<name>/stdout.log`` and ``stderr.log``. AI agents read it+ via get_output() with tail/offset.Files are cleaned up on stop or shutdown."""@@ -157,7 +158,7 @@ class ProcessService:os.makedirs(working_directory, exist_ok=True)cwd = working_directory- # Guardrail: cwd must resolve inside one of the MachinaOs-controlled+ # Guardrail: cwd must resolve inside one of the OpenCompany-controlled# state roots — workspaces (per-workflow scratch for workflow nodes# like processManager / code executors) OR daemons (framework event# sources like `stripe listen`). Both are siblings under DATA_DIR.diff --git a/server/services/proxy/__init__.py b/server/services/proxy/__init__.pyindex 4297c048..e5299cc2 100644--- a/server/services/proxy/__init__.py+++ b/server/services/proxy/__init__.py@@ -1,4 +1,4 @@-"""ProxyForge - Universal proxy management service for MachinaOs.+"""ProxyForge - Universal proxy management service for OpenCompany.Routes HTTP requests through residential proxy providers with smart rotation,scoring, geo-targeting, sticky sessions, failover, and cost tracking.diff --git a/server/services/rlm/__init__.py b/server/services/rlm/__init__.pyindex 559bd758..4e26122c 100644--- a/server/services/rlm/__init__.py+++ b/server/services/rlm/__init__.py@@ -1,6 +1,6 @@"""RLM (Recursive Language Models) service module.-Provides RLMService for executing RLM agent completions within MachinaOS.+Provides RLMService for executing RLM agent completions within OpenCompany."""from .service import RLMServicediff --git a/server/services/rlm/adapters.py b/server/services/rlm/adapters.pyindex b50ce766..51daefc2 100644--- a/server/services/rlm/adapters.py+++ b/server/services/rlm/adapters.py@@ -1,6 +1,6 @@-"""Adapters bridging MachinaOS systems to RLM interfaces.+"""Adapters bridging OpenCompany systems to RLM interfaces.-- BackendAdapter: MachinaOS provider config -> RLM backend + backend_kwargs+- BackendAdapter: OpenCompany provider config -> RLM backend + backend_kwargs- ChatModelExtractor: Connected chat model nodes -> RLM other_backends- ToolBridgeAdapter: Connected tool nodes -> RLM custom_tools dict"""@@ -16,7 +16,7 @@ logger = get_logger(__name__)class BackendAdapter:- """Maps MachinaOS provider/model/api_key to RLM backend constructor args."""+ """Maps OpenCompany provider/model/api_key to RLM backend constructor args."""@staticmethoddef adapt(provider: str, model: str, api_key: str) -> Tuple[str, Dict[str, Any]]:@@ -69,7 +69,7 @@ class ChatModelExtractor:class ToolBridgeAdapter:- """Bridges MachinaOS tool nodes into RLM custom_tools dict.+ """Bridges OpenCompany tool nodes into RLM custom_tools dict.Creates sync callable wrappers that route through execute_tool() dispatcher.Uses asyncio.run_coroutine_threadsafe() to bridge async handlers intodiff --git a/server/services/rlm/constants.py b/server/services/rlm/constants.pyindex 21734291..9957f78a 100644--- a/server/services/rlm/constants.py+++ b/server/services/rlm/constants.py@@ -1,6 +1,6 @@"""RLM service constants."""-# MachinaOS provider -> RLM backend mapping+# OpenCompany provider -> RLM backend mappingPROVIDER_TO_BACKEND = {"openai": "openai","anthropic": "anthropic",diff --git a/server/services/rlm/service.py b/server/services/rlm/service.pyindex 835f96e7..1ab72845 100644--- a/server/services/rlm/service.py+++ b/server/services/rlm/service.py@@ -40,7 +40,7 @@ class RLMService:"""Execute RLM agent completion.Same interface as AIService.execute_agent() / execute_chat_agent().- Reuses existing MachinaOS utilities for shared concerns.+ Reuses existing OpenCompany utilities for shared concerns."""start_time = time.time()@@ -127,14 +127,14 @@ class RLMService:},)- # Build augmented prompt: MachinaOS context prepended to user prompt.+ # Build augmented prompt: OpenCompany context prepended to user prompt.# We do NOT pass custom_system_prompt to RLM because RLM_SYSTEM_PROMPT# uses Python .format() with {custom_tools_section} placeholder and# double-escaped braces {{chunk}} in examples. Appending to the template# and letting build_rlm_system_prompt() .format() it would break on any# curly braces in the appended text (skills, memory, system message).# Instead, let RLM use its default system prompt (with proper tool- # formatting) and inject MachinaOS context into the user prompt.+ # formatting) and inject OpenCompany context into the user prompt.augmented_prompt = promptif system_message:augmented_prompt = f"## Instructions\n{system_message}\n\n## Task\n{augmented_prompt}"diff --git a/server/services/skill_loader.py b/server/services/skill_loader.pyindex a2292d07..2c08a138 100644--- a/server/services/skill_loader.py+++ b/server/services/skill_loader.py@@ -15,6 +15,20 @@ from core.logging import get_loggerlogger = get_logger(__name__)+def _default_skill_dirs() -> List[Path]:+ """Built-ins plus legacy and canonical project skill directories."""++ server_dir = Path(__file__).parent.parent+ cwd = Path.cwd()+ # Later directories win in scan_skills(), so canonical project skills+ # override a same-named legacy skill during the transition.+ return [+ server_dir / "skills",+ cwd / ".machina" / "skills",+ cwd / ".opencompany" / "skills",+ ]++@dataclassclass SkillMetadata:"""Metadata from SKILL.md frontmatter (loaded at startup for all skills)."""@@ -42,7 +56,8 @@ class SkillLoader:Skills are loaded from multiple directories with priority:1. Built-in skills: server/skills/- 2. Project skills: .machina/skills/ (in current directory)+ 2. Project skills: .opencompany/skills/ (legacy .machina/skills is+ scanned at lower priority)3. User skills from database (created via UI)Follows progressive disclosure pattern:@@ -436,13 +451,7 @@ def get_skill_loader() -> SkillLoader:"""global _skill_loaderif _skill_loader is None:- # Default directories- server_dir = Path(__file__).parent.parent- skill_dirs = [- server_dir / "skills", # Built-in skills- Path.cwd() / ".machina" / "skills", # Project skills- ]- _skill_loader = SkillLoader(skill_dirs=skill_dirs, database=_resolve_database())+ _skill_loader = SkillLoader(skill_dirs=_default_skill_dirs(), database=_resolve_database())_skill_loader.scan_skills()elif _skill_loader._database is None:# Created before the container was wired -- bind the DB now so@@ -461,11 +470,6 @@ def init_skill_loader(database=None) -> SkillLoader:Initialized SkillLoader"""global _skill_loader- server_dir = Path(__file__).parent.parent- skill_dirs = [- server_dir / "skills", # Built-in skills- Path.cwd() / ".machina" / "skills", # Project skills- ]- _skill_loader = SkillLoader(skill_dirs=skill_dirs, database=database)+ _skill_loader = SkillLoader(skill_dirs=_default_skill_dirs(), database=database)_skill_loader.scan_skills()return _skill_loaderdiff --git a/server/services/status_broadcaster.py b/server/services/status_broadcaster.pyindex 7446ab5e..99f2a8b4 100644--- a/server/services/status_broadcaster.py+++ b/server/services/status_broadcaster.py@@ -271,7 +271,7 @@ class StatusBroadcaster:from services.events import WorkflowEventevent = WorkflowEvent(- source="machinaos://services/credentials",+ source="opencompany://services/credentials",type=event_type,subject=provider,workflow_id=workflow_id,diff --git a/server/services/temporal/__init__.py b/server/services/temporal/__init__.pyindex 8d2eea96..86c89b35 100644--- a/server/services/temporal/__init__.py+++ b/server/services/temporal/__init__.py@@ -6,7 +6,7 @@ Architecture:- Each workflow node executes as an independent Temporal activity- Activities can run on ANY worker in the cluster for horizontal scaling- Workflow only orchestrates - schedules activities and routes outputs-- WebSocket connection to MachinaOs for low-latency node execution+- WebSocket connection to OpenCompany for low-latency node executionWhen TEMPORAL_ENABLED=true:- Workflows are executed via Temporal for durability and distributiondiff --git a/server/services/temporal/_install.py b/server/services/temporal/_install.pyindex 673963c1..03112fed 100644--- a/server/services/temporal/_install.py+++ b/server/services/temporal/_install.py@@ -6,11 +6,11 @@ https://docs.temporal.io/develop/python/set-up-your-local-pythonThe binary lands at ``<DATA_DIR>/packages/temporal/`` — the same rootthat holds the Stripe and agent-browser binaries (see-:func:`core.paths.package_dir`). Pre-fix this used+:func:`core.paths.package_dir`). Legacy MachinaOS builds used``pooch.os_cache("machinaos-temporal")`` which landed the binaryunder a separate ``%LOCALAPPDATA%\\machinaos-temporal\\Cache\\``(Windows) / ``~/.cache/machinaos-temporal/`` (Linux) tree outside-the operator-visible ``~/.machina/`` root.+the operator-visible state root.Pooch still drives archive extraction (zip on Windows, tar.gzelsewhere); we just point its cache at our DATA_DIR-rooted package@@ -58,11 +58,10 @@ def _cache_dir() -> Path:"""Per-service install dir under :func:`core.paths.package_dir`.Lands at ``<DATA_DIR>/packages/temporal/`` — same root that- holds ``stripe`` and ``browser`` binaries. Pre-fix this used- ``pooch.os_cache("machinaos-temporal")`` which landed the binary+ holds ``stripe`` and ``browser`` binaries. Legacy MachinaOS builds+ used ``pooch.os_cache("machinaos-temporal")`` which landed the binaryat ``%LOCALAPPDATA%\\machinaos-temporal\\Cache\\`` (Windows) /- ``~/.cache/machinaos-temporal/`` (Linux) — outside the- operator-visible ``~/.machina/`` tree.+ ``~/.cache/machinaos-temporal/`` (Linux), outside the data root."""from core.paths import package_dir@@ -154,9 +153,9 @@ __all__ = ["ensure_temporal_binaries"]def _main() -> int:"""Standalone entry: ``python -m services.temporal._install``.- Used by ``machina build`` step [6/6] to materialise the Temporal+ Used by ``company build`` step [6/6] to materialise the TemporalCLI at build time instead of paying the download cost on first- ``machina start``. Fetches, verifies the binary exists on disk,+ ``company start``. Fetches, verifies the binary exists on disk,prints the resolved location. Non-zero exit on any failure."""import sys as _sysdiff --git a/server/services/temporal/_runtime.py b/server/services/temporal/_runtime.pyindex 26d3c70a..1216a5b8 100644--- a/server/services/temporal/_runtime.py+++ b/server/services/temporal/_runtime.py@@ -174,7 +174,7 @@ class TemporalServerRuntime(BaseProcessSupervisor):return False# gRPC frontend port — configured via# ``settings.temporal_frontend_grpc_port``. Same shared probe- # MachinaOS uses for every other supervised TCP service.+ # OpenCompany uses for every other supervised TCP service.return await _probe_tcp_port(self.settings.temporal_frontend_grpc_port)def _extra_status(self) -> dict[str, Any]:diff --git a/server/services/temporal/agent_activities.py b/server/services/temporal/agent_activities.pyindex 1310155e..f5ddf2eb 100644--- a/server/services/temporal/agent_activities.py+++ b/server/services/temporal/agent_activities.py@@ -27,7 +27,7 @@ and may read frozen registry dicts deterministically.References:- Temporal AI Cookbook -- https://docs.temporal.io/ai-cookbook- ``temporalio.contrib.openai_agents.activity_as_tool`` mirrors this- pattern; we re-implement manually because MachinaOs uses LangChain+ pattern; we re-implement manually because OpenCompany uses LangChain(``chat_model.bind_tools`` for schema generation) rather than theOpenAI Agents SDK."""@@ -263,7 +263,7 @@ async def persist_agent_turn(payload: Dict[str, Any]) -> Dict[str, Any]:# Broadcast so the parameter panel auto-refetches mid-run.# CloudEvents v1.0 envelope (RFC §6.4) — type is- # ``com.machinaos.node.parameters.updated``; ``source_hint="agent"``+ # ``com.opencompany.node.parameters.updated``; ``source_hint="agent"``# distinguishes this autonomous write from a user-edited save.# StatusBroadcaster is a module-level singleton (not on the DI# container) — same pattern handlers/tools.py / handlers/triggers.py@@ -342,7 +342,7 @@ async def broadcast_agent_progress(payload: Dict[str, Any]) -> Dict[str, Any]:Wire-format key ``agent_progress`` is the same channel the in-processagent-loop path uses (services/ai.py:execute_agent), and the innerpayload is a CloudEvents v1.0 ``WorkflowEvent`` with- ``type="com.machinaos.agent.progress"``. The FE routes+ ``type="com.opencompany.agent.progress"``. The FE routes``data.iteration`` / ``data.max_iterations`` into``nodeStatusStore`` so the "N / max" badge on the canvas updatesin real time.@@ -382,7 +382,7 @@ async def broadcast_agent_progress(payload: Dict[str, Any]) -> Dict[str, Any]:workflow_id=workflow_id,)- # CloudEvents v1.0 envelope (com.machinaos.agent.progress). Drives+ # CloudEvents v1.0 envelope (com.opencompany.agent.progress). Drives# the iteration badge + phase indicator on the canvas.await broadcaster.broadcast_agent_progress(node_id,diff --git a/server/services/temporal/agent_workflow.py b/server/services/temporal/agent_workflow.pyindex 9d33a4ca..ba670de1 100644--- a/server/services/temporal/agent_workflow.py+++ b/server/services/temporal/agent_workflow.py@@ -244,7 +244,7 @@ class AgentWorkflow:# Emit "executing" + phase="starting" via the existing# broadcast_agent_progress activity (CloudEvents- # com.machinaos.agent.progress + raw-dict node_status for+ # com.opencompany.agent.progress + raw-dict node_status for# canvas glow). Mirrors what F4.A's _node_activity wrapper# does for non-agent plugins.await self._emit_phase(@@ -648,7 +648,7 @@ class AgentWorkflow:)# Final lifecycle broadcast — canvas glow goes green + FE- # consumers of com.machinaos.agent.progress see phase="completed".+ # consumers of com.opencompany.agent.progress see phase="completed".await self._emit_phase(agent_node_id,agent_workflow_id,diff --git a/server/services/temporal/client.py b/server/services/temporal/client.pyindex 6628396c..3aa6c688 100644--- a/server/services/temporal/client.py+++ b/server/services/temporal/client.py@@ -1,4 +1,4 @@-"""Temporal client wrapper for MachinaOs.+"""Temporal client wrapper for OpenCompany.Manages the Temporal client connection lifecycle with retry support."""@@ -150,7 +150,7 @@ class TemporalClientWrapper:async def terminate_running_workflows(self,*,- reason: str = "MachinaOS startup: auto-resumption disabled",+ reason: str = "OpenCompany startup: auto-resumption disabled",) -> int:"""Terminate every workflow in ``Running`` state in our namespace.diff --git a/server/services/temporal/executor.py b/server/services/temporal/executor.pyindex 8d89b068..edef7d92 100644--- a/server/services/temporal/executor.py+++ b/server/services/temporal/executor.py@@ -1,4 +1,4 @@-"""Temporal executor for MachinaOs workflow execution.+"""Temporal executor for OpenCompany workflow execution.Provides the same interface as WorkflowExecutor but delegatesexecution to Temporal for durable workflow orchestration.diff --git a/server/services/temporal/polling_trigger_workflow.py b/server/services/temporal/polling_trigger_workflow.pyindex a000cbac..d29ed4c6 100644--- a/server/services/temporal/polling_trigger_workflow.py+++ b/server/services/temporal/polling_trigger_workflow.py@@ -82,7 +82,7 @@ class PollingTriggerWorkflow:``listener_data`` shape (deployment-supplied)::{- "workflow_id": str, # MachinaOs deployment workflow_id+ "workflow_id": str, # OpenCompany deployment workflow_id"trigger_node_id": str, # node id that fires on each event"node_type": str, # e.g. "googleGmailReceive""version": int, # plugin class version (for activity name)diff --git a/server/services/temporal/schedules.py b/server/services/temporal/schedules.pyindex 7437b258..82cd2f66 100644--- a/server/services/temporal/schedules.py+++ b/server/services/temporal/schedules.py@@ -51,7 +51,7 @@ logger = get_logger(__name__)def cron_schedule_id(workflow_slug: str, trigger_label: str) -> str:"""Deterministic Schedule ID for a (workflow_slug, cron-node label) pair.- Re-deploying the same MachinaOs workflow (slug + label unchanged)+ Re-deploying the same OpenCompany workflow (slug + label unchanged)targets the same Schedule. Pairs with the create call's``"already exists" → no-op`` semantics (per:exc:`temporalio.client.ScheduleAlreadyRunningError`).diff --git a/server/services/temporal/search_attributes.py b/server/services/temporal/search_attributes.pyindex fc2d9e49..e1bcc117 100644--- a/server/services/temporal/search_attributes.py+++ b/server/services/temporal/search_attributes.py@@ -52,7 +52,7 @@ EVENT_SEARCH_ATTRIBUTES: Sequence[SearchAttributeSpec] = (indexed_type=IndexedValueType.INDEXED_VALUE_TYPE_KEYWORD,description=("CloudEvents type the workflow is consuming "- "(e.g. com.machinaos.whatsapp.message.received). Used by "+ "(e.g. com.opencompany.whatsapp.message.received). Used by ""dispatch.emit to find running consumers via Visibility ""queries: ListWorkflows(query=f\"EventType='{event.type}' ""AND ExecutionStatus='Running'\")."@@ -63,7 +63,7 @@ EVENT_SEARCH_ATTRIBUTES: Sequence[SearchAttributeSpec] = (indexed_type=IndexedValueType.INDEXED_VALUE_TYPE_KEYWORD,description=("CloudEvents source URI fragment "- "(e.g. machinaos://nodes/whatsapp). Used for routing when "+ "(e.g. opencompany://nodes/whatsapp). Used for routing when ""the same type can arrive from multiple sources."),),@@ -71,7 +71,7 @@ EVENT_SEARCH_ATTRIBUTES: Sequence[SearchAttributeSpec] = (name="EventWorkflowId",indexed_type=IndexedValueType.INDEXED_VALUE_TYPE_KEYWORD,description=(- "MachinaOs workflow_id the event belongs to (distinct from "+ "OpenCompany workflow_id the event belongs to (distinct from ""the Temporal Workflow ID which addresses the workflow run). ""Used to scope event delivery to a specific deployment."),diff --git a/server/services/temporal/trigger_listener_workflow.py b/server/services/temporal/trigger_listener_workflow.pyindex 55a8393c..fcd977ce 100644--- a/server/services/temporal/trigger_listener_workflow.py+++ b/server/services/temporal/trigger_listener_workflow.py@@ -87,10 +87,10 @@ class TriggerListenerWorkflow:``listener_data`` shape (deployment-supplied):{- "workflow_id": str, # MachinaOs deployment workflow_id+ "workflow_id": str, # OpenCompany deployment workflow_id"trigger_node_id": str, # node id that "fires" on each event"node_type": str, # e.g. "webhookTrigger"- "event_type": str, # e.g. "com.machinaos.webhook.received"+ "event_type": str, # e.g. "com.opencompany.webhook.received""filter_params": Dict, # used by the event-side filter via dispatch.emit"nodes": List[Dict], # full deployment graph snapshot"edges": List[Dict],diff --git a/server/services/temporal/worker.py b/server/services/temporal/worker.pyindex dd6e4c99..ccd148f0 100644--- a/server/services/temporal/worker.py+++ b/server/services/temporal/worker.py@@ -57,12 +57,12 @@ def _worker_identity(queue: str) -> str:Default SDK identity is ``<pid>@<hostname>`` which makes theWorkers tab unreadable once the per-queue pool runs 9 workers on- one host. ``machina-<queue>-<deployment_mode>`` names the role and+ one host. ``opencompany-<queue>-<deployment_mode>`` names the role andthe topology at a glance."""from core.config import Settings- return f"machina-{queue}-{Settings().deployment_mode}"+ return f"opencompany-{queue}-{Settings().deployment_mode}"def _sticky_cache_size() -> int:diff --git a/server/services/temporal/workflow.py b/server/services/temporal/workflow.pyindex e282b9d1..7a3f455f 100644--- a/server/services/temporal/workflow.py+++ b/server/services/temporal/workflow.py@@ -73,7 +73,10 @@ AGENT_WORKFLOW_TYPES = frozenset()[email protected](sandboxed=False)+# Durable protocol identifier: existing Temporal histories and child-workflow+# start calls replay against this exact type string. It intentionally retains+# the pre-rebrand name even though the product is now OpenCompany.[email protected](name="MachinaWorkflow", sandboxed=False)class MachinaWorkflow:"""Distributed workflow orchestrator.diff --git a/server/skills/GUIDE.md b/server/skills/GUIDE.mdindex d79cf974..cf1ae274 100644--- a/server/skills/GUIDE.md+++ b/server/skills/GUIDE.md@@ -1,6 +1,6 @@# Skill Creation Guide-This guide explains how to create new skills for MachinaOs.+This guide explains how to create new skills for OpenCompany.## Folder Structurediff --git a/server/skills/android_agent/app-launcher-skill/SKILL.md b/server/skills/android_agent/app-launcher-skill/SKILL.mdindex ca930a25..e6bebf9f 100644--- a/server/skills/android_agent/app-launcher-skill/SKILL.md+++ b/server/skills/android_agent/app-launcher-skill/SKILL.md@@ -3,7 +3,7 @@ name: app-launcher-skilldescription: Launch Android applications by package name. Open any installed app programmatically.allowed-tools: app_launchermetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/app-list-skill/SKILL.md b/server/skills/android_agent/app-list-skill/SKILL.mdindex b3e2f81b..f64ac2cb 100644--- a/server/skills/android_agent/app-list-skill/SKILL.md+++ b/server/skills/android_agent/app-list-skill/SKILL.md@@ -3,7 +3,7 @@ name: app-list-skilldescription: Get list of installed Android applications with package names, versions, and metadata.allowed-tools: app_listmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/audio-skill/SKILL.md b/server/skills/android_agent/audio-skill/SKILL.mdindex c79d3fae..a7335cb3 100644--- a/server/skills/android_agent/audio-skill/SKILL.md+++ b/server/skills/android_agent/audio-skill/SKILL.md@@ -3,7 +3,7 @@ name: audio-skilldescription: Control Android audio - get/set volume, mute/unmute for media, ringtone, notification, and call volumes.allowed-tools: audio_automationmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/battery-skill/SKILL.md b/server/skills/android_agent/battery-skill/SKILL.mdindex 6e745976..ca54a6ae 100644--- a/server/skills/android_agent/battery-skill/SKILL.md+++ b/server/skills/android_agent/battery-skill/SKILL.md@@ -3,7 +3,7 @@ name: battery-skilldescription: Monitor Android device battery status, level, charging state, temperature, and health.allowed-tools: battery_monitormetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/bluetooth-skill/SKILL.md b/server/skills/android_agent/bluetooth-skill/SKILL.mdindex a42d677c..b5b78e58 100644--- a/server/skills/android_agent/bluetooth-skill/SKILL.md+++ b/server/skills/android_agent/bluetooth-skill/SKILL.md@@ -3,7 +3,7 @@ name: bluetooth-skilldescription: Control Android Bluetooth - enable, disable, get status, and list paired devices.allowed-tools: bluetooth_automationmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/camera-skill/SKILL.md b/server/skills/android_agent/camera-skill/SKILL.mdindex a1d43f22..fbd32d1c 100644--- a/server/skills/android_agent/camera-skill/SKILL.md+++ b/server/skills/android_agent/camera-skill/SKILL.md@@ -3,7 +3,7 @@ name: camera-skilldescription: Control Android camera - get camera info, take photos, and access camera capabilities.allowed-tools: camera_controlmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/environmental-skill/SKILL.md b/server/skills/android_agent/environmental-skill/SKILL.mdindex b0f14fee..ffa7f5df 100644--- a/server/skills/android_agent/environmental-skill/SKILL.md+++ b/server/skills/android_agent/environmental-skill/SKILL.md@@ -3,7 +3,7 @@ name: environmental-skilldescription: Get Android environmental sensor data - temperature, humidity, pressure, and ambient light level.allowed-tools: environmental_sensorsmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/location-skill/SKILL.md b/server/skills/android_agent/location-skill/SKILL.mdindex d139790c..c5ed2aab 100644--- a/server/skills/android_agent/location-skill/SKILL.md+++ b/server/skills/android_agent/location-skill/SKILL.md@@ -3,7 +3,7 @@ name: location-skilldescription: Get Android device GPS location - latitude, longitude, accuracy, speed, and provider information.allowed-tools: locationmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/motion-skill/SKILL.md b/server/skills/android_agent/motion-skill/SKILL.mdindex f2d744bc..1fd21ea8 100644--- a/server/skills/android_agent/motion-skill/SKILL.md+++ b/server/skills/android_agent/motion-skill/SKILL.md@@ -3,7 +3,7 @@ name: motion-skilldescription: Get Android motion sensor data - accelerometer, gyroscope, detect motion, shake gestures, and device orientation.allowed-tools: motion_detectionmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/personality/SKILL.md b/server/skills/android_agent/personality/SKILL.mdindex 8f989bdc..48eda077 100644--- a/server/skills/android_agent/personality/SKILL.md+++ b/server/skills/android_agent/personality/SKILL.md@@ -2,7 +2,7 @@name: android-personalitydescription: Android device assistant personality. Use when the user wants to interact with their Android phone or tablet in a natural, conversational way.metadata:- author: machina+ author: opencompanyversion: "1.0"category: assistanticon: "🤖"diff --git a/server/skills/android_agent/screen-control-skill/SKILL.md b/server/skills/android_agent/screen-control-skill/SKILL.mdindex 84e09241..5c727b16 100644--- a/server/skills/android_agent/screen-control-skill/SKILL.md+++ b/server/skills/android_agent/screen-control-skill/SKILL.md@@ -3,7 +3,7 @@ name: screen-control-skilldescription: Control Android screen - brightness, wake screen, auto-brightness toggle, and screen timeout settings.allowed-tools: screen_control_automationmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/android_agent/wifi-skill/SKILL.md b/server/skills/android_agent/wifi-skill/SKILL.mdindex 7532d5e4..e1d6d602 100644--- a/server/skills/android_agent/wifi-skill/SKILL.md+++ b/server/skills/android_agent/wifi-skill/SKILL.md@@ -3,7 +3,7 @@ name: wifi-skilldescription: Control Android WiFi - enable, disable, get status, scan for networks, and get current connection info.allowed-tools: wifi_automationmetadata:- author: machina+ author: opencompanyversion: "1.0"category: androiddiff --git a/server/skills/assistant/advisor/SKILL.md b/server/skills/assistant/advisor/SKILL.mdindex ee0cafdd..a4cc362a 100644--- a/server/skills/assistant/advisor/SKILL.md+++ b/server/skills/assistant/advisor/SKILL.md@@ -3,7 +3,7 @@ name: advisordescription: ALWAYS call the wired chat-model tool (anthropic_chat_model / openai_chat_model / gemini_chat_model) at the START of any complex task to get a plan from a stronger model. Also call when stuck and before declaring done. Pass only the `prompt` field — the operator configured `model` and `api_key`. Returns brief tactical advice; you do the work.allowed-tools: anthropic_chat_model openai_chat_model gemini_chat_modelmetadata:- author: machina+ author: opencompanyversion: "1.0"category: general---diff --git a/server/skills/assistant/agent-builder-skill/SKILL.md b/server/skills/assistant/agent-builder-skill/SKILL.mdindex b0a8b383..773685d4 100644--- a/server/skills/assistant/agent-builder-skill/SKILL.md+++ b/server/skills/assistant/agent-builder-skill/SKILL.md@@ -3,7 +3,7 @@ name: agent-builder-skilldescription: How to use the Agent Builder tool's five canvas-mutation operations to inspect and grow your own toolset / skills / teammates / workflows mid-executionallowed-tools: "agentBuilder"metadata:- author: machina+ author: opencompanyversion: "3.0"category: autonomous---diff --git a/server/skills/assistant/assistant-personality/SKILL.md b/server/skills/assistant/assistant-personality/SKILL.mdindex ef622f0b..ff306ee3 100644--- a/server/skills/assistant/assistant-personality/SKILL.md+++ b/server/skills/assistant/assistant-personality/SKILL.md@@ -2,7 +2,7 @@name: assistant-personalitydescription: General AI assistant with task planning via write_todos, helpful and honest responses.metadata:- author: machina+ author: opencompanyversion: "2.0"category: assistanticon: "✨"diff --git a/server/skills/assistant/compaction-skill/SKILL.md b/server/skills/assistant/compaction-skill/SKILL.mdindex 76821ab8..3cfc7715 100644--- a/server/skills/assistant/compaction-skill/SKILL.md+++ b/server/skills/assistant/compaction-skill/SKILL.md@@ -3,7 +3,7 @@ name: compaction-skilldescription: Manage memory compaction by summarizing conversation history when approaching token limitsallowed-tools: memory-save memory-getmetadata:- author: machina+ author: opencompanyversion: "1.0"category: memoryicon: "📦"diff --git a/server/skills/assistant/humanify-skill/SKILL.md b/server/skills/assistant/humanify-skill/SKILL.mdindex dd837fa3..d71af608 100644--- a/server/skills/assistant/humanify-skill/SKILL.md+++ b/server/skills/assistant/humanify-skill/SKILL.md@@ -2,7 +2,7 @@name: humanify-skilldescription: Output human-readable text in pretty formats instead of raw markdown or code blocksmetadata:- author: machina+ author: opencompanyversion: "1.0"category: formattingicon: "✨"diff --git a/server/skills/assistant/memory-skill/SKILL.md b/server/skills/assistant/memory-skill/SKILL.mdindex d7a18981..a0863412 100644--- a/server/skills/assistant/memory-skill/SKILL.md+++ b/server/skills/assistant/memory-skill/SKILL.md@@ -3,7 +3,7 @@ name: memory-skilldescription: Manage conversation memory. Use when user asks to remember something, recall information, view/edit conversation history, or manage short/long-term memory.allowed-tools: memory-save memory-get memory-clear memory-view memory-searchmetadata:- author: machina+ author: opencompanyversion: "2.0"category: memoryicon: "🧠"diff --git a/server/skills/assistant/subagent-skill/SKILL.md b/server/skills/assistant/subagent-skill/SKILL.mdindex e1ad207e..01fde192 100644--- a/server/skills/assistant/subagent-skill/SKILL.md+++ b/server/skills/assistant/subagent-skill/SKILL.md@@ -2,7 +2,7 @@name: subagent-skilldescription: Manage sub-agent delegation, handle task completion events, and coordinate multi-agent workflows.metadata:- author: machina+ author: opencompanyversion: "2.0"category: assistanticon: "🤖"diff --git a/server/skills/assistant/write-todos-skill/SKILL.md b/server/skills/assistant/write-todos-skill/SKILL.mdindex ba99431a..05babb2f 100644--- a/server/skills/assistant/write-todos-skill/SKILL.md+++ b/server/skills/assistant/write-todos-skill/SKILL.md@@ -3,7 +3,7 @@ name: write-todos-skilldescription: Create and manage structured task lists for planning and tracking complex multi-step operations.allowed-tools: write_todosmetadata:- author: machina+ author: opencompanyversion: "2.0"category: automationdiff --git a/server/skills/autonomous/agentic-loop-skill/SKILL.md b/server/skills/autonomous/agentic-loop-skill/SKILL.mdindex eaa99914..bf1da881 100644--- a/server/skills/autonomous/agentic-loop-skill/SKILL.md+++ b/server/skills/autonomous/agentic-loop-skill/SKILL.md@@ -3,7 +3,7 @@ name: agentic-loop-skilldescription: Autonomous decision loop with reflection and iterationallowed-tools: "delegate_to_ai_agent python_executor check_delegated_tasks"metadata:- author: machina+ author: opencompanyversion: "1.0"category: autonomousdiff --git a/server/skills/autonomous/code-mode-skill/SKILL.md b/server/skills/autonomous/code-mode-skill/SKILL.mdindex fc021723..2337d019 100644--- a/server/skills/autonomous/code-mode-skill/SKILL.md+++ b/server/skills/autonomous/code-mode-skill/SKILL.md@@ -3,7 +3,7 @@ name: code-mode-skilldescription: Generate Python code instead of sequential tool calls (81-98% token savings)allowed-tools: "python_executor javascript_executor"metadata:- author: machina+ author: opencompanyversion: "1.0"category: autonomousdiff --git a/server/skills/autonomous/error-recovery-skill/SKILL.md b/server/skills/autonomous/error-recovery-skill/SKILL.mdindex 0abeb918..c9c86b08 100644--- a/server/skills/autonomous/error-recovery-skill/SKILL.md+++ b/server/skills/autonomous/error-recovery-skill/SKILL.md@@ -3,7 +3,7 @@ name: error-recovery-skilldescription: Handle errors gracefully with retry strategies and fallback patternsallowed-tools: "delegate_to_ai_agent python_executor check_delegated_tasks"metadata:- author: machina+ author: opencompanyversion: "1.0"category: autonomousdiff --git a/server/skills/autonomous/multi-tool-orchestration-skill/SKILL.md b/server/skills/autonomous/multi-tool-orchestration-skill/SKILL.mdindex 5a669585..6cf5a380 100644--- a/server/skills/autonomous/multi-tool-orchestration-skill/SKILL.md+++ b/server/skills/autonomous/multi-tool-orchestration-skill/SKILL.md@@ -3,7 +3,7 @@ name: multi-tool-orchestration-skilldescription: Coordinate multiple tools together for complex multi-step tasksallowed-tools: "delegate_to_ai_agent python_executor javascript_executor duckduckgo_search http_request calculator_tool current_time_tool"metadata:- author: machina+ author: opencompanyversion: "1.0"category: autonomousdiff --git a/server/skills/autonomous/progressive-discovery-skill/SKILL.md b/server/skills/autonomous/progressive-discovery-skill/SKILL.mdindex 3c1bef9a..97c2587f 100644--- a/server/skills/autonomous/progressive-discovery-skill/SKILL.md+++ b/server/skills/autonomous/progressive-discovery-skill/SKILL.md@@ -3,7 +3,7 @@ name: progressive-discovery-skilldescription: Discover and load tools progressively as needed (reduces token overhead)allowed-tools: delegate_to_ai_agent check_delegated_tasksmetadata:- author: machina+ author: opencompanyversion: "1.0"category: autonomousicon: "🔍"diff --git a/server/skills/coding_agent/file-modify-skill/SKILL.md b/server/skills/coding_agent/file-modify-skill/SKILL.mdindex 2be0a163..cffc07ab 100644--- a/server/skills/coding_agent/file-modify-skill/SKILL.md+++ b/server/skills/coding_agent/file-modify-skill/SKILL.md@@ -3,7 +3,7 @@ name: file-modify-skilldescription: Write new files or edit existing files with string replacement.allowed-tools: file_modifymetadata:- author: machina+ author: opencompanyversion: "1.0"category: filesystemdiff --git a/server/skills/coding_agent/file-read-skill/SKILL.md b/server/skills/coding_agent/file-read-skill/SKILL.mdindex f067c235..f5fc5c09 100644--- a/server/skills/coding_agent/file-read-skill/SKILL.md+++ b/server/skills/coding_agent/file-read-skill/SKILL.md@@ -3,7 +3,7 @@ name: file-read-skilldescription: Read file contents with line numbers and pagination support.allowed-tools: file_readmetadata:- author: machina+ author: opencompanyversion: "1.0"category: filesystemdiff --git a/server/skills/coding_agent/fs-search-skill/SKILL.md b/server/skills/coding_agent/fs-search-skill/SKILL.mdindex 2e5849fb..ede55b4f 100644--- a/server/skills/coding_agent/fs-search-skill/SKILL.md+++ b/server/skills/coding_agent/fs-search-skill/SKILL.md@@ -3,7 +3,7 @@ name: fs-search-skilldescription: Search the filesystem with ls (list directory), glob (pattern match), or grep (search file contents).allowed-tools: fs_searchmetadata:- author: machina+ author: opencompanyversion: "1.0"category: filesystemdiff --git a/server/skills/coding_agent/javascript-skill/SKILL.md b/server/skills/coding_agent/javascript-skill/SKILL.mdindex eff44fdf..54162e3e 100644--- a/server/skills/coding_agent/javascript-skill/SKILL.md+++ b/server/skills/coding_agent/javascript-skill/SKILL.md@@ -3,7 +3,7 @@ name: javascript-skilldescription: Execute JavaScript code for calculations, data processing, and JSON manipulation. Full ES6+ support with Node.js runtime.allowed-tools: "javascript_executor"metadata:- author: machina+ author: opencompanyversion: "1.0"category: codediff --git a/server/skills/coding_agent/monty-skill/SKILL.md b/server/skills/coding_agent/monty-skill/SKILL.mdindex cda061e6..5c77de7c 100644--- a/server/skills/coding_agent/monty-skill/SKILL.md+++ b/server/skills/coding_agent/monty-skill/SKILL.md@@ -3,7 +3,7 @@ name: monty-skilldescription: Run AI-generated Python in a hard sandbox (Pydantic Monty) with enforced time + memory limits and opt-in capabilities. Use for untrusted code; supports a Python subset.allowed-tools: "monty_executor"metadata:- author: machina+ author: opencompanyversion: "1.0"category: codediff --git a/server/skills/coding_agent/python-skill/SKILL.md b/server/skills/coding_agent/python-skill/SKILL.mdindex b4f9bf25..599ae85f 100644--- a/server/skills/coding_agent/python-skill/SKILL.md+++ b/server/skills/coding_agent/python-skill/SKILL.md@@ -3,7 +3,7 @@ name: python-skilldescription: Execute Python code for calculations, data processing, and automation. Access to math, json, datetime, collections, and more.allowed-tools: "python_executor"metadata:- author: machina+ author: opencompanyversion: "1.0"category: codediff --git a/server/skills/github/github-skill/SKILL.md b/server/skills/github/github-skill/SKILL.mdindex e47fef76..1c8489e1 100644--- a/server/skills/github/github-skill/SKILL.md+++ b/server/skills/github/github-skill/SKILL.md@@ -3,7 +3,7 @@ name: github-skilldescription: Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.allowed-tools: "github"metadata:- author: machina+ author: opencompanyversion: "1.0"category: developer@@ -109,7 +109,7 @@ spaces with single quotes: `custom: "release create v1.0.0 --notes 'First releas## Authentication-The gh CLI owns its auth — MachinaOs never stores a token. Three+The gh CLI owns its auth — OpenCompany never stores a token. Threeequivalent ways to connect (any one is enough):1. **Credentials Modal → GitHub → Login with GitHub** — gh (auto-installed)diff --git a/server/skills/payments_agent/stripe-skill/SKILL.md b/server/skills/payments_agent/stripe-skill/SKILL.mdindex 3a93c66f..17e8f92f 100644--- a/server/skills/payments_agent/stripe-skill/SKILL.md+++ b/server/skills/payments_agent/stripe-skill/SKILL.md@@ -3,7 +3,7 @@ name: stripe-skilldescription: Process payments, manage customers, issue refunds, and handle subscriptions via the Stripe CLI. Pass any Stripe command (customers, charges, payment_intents, refunds, invoices, products, prices, subscriptions) and the tool runs it for you and returns parsed JSON.allowed-tools: "stripe_action"metadata:- author: machina+ author: opencompanyversion: "1.0"category: payments@@ -220,7 +220,7 @@ include it when reporting issues.## Webhooks (`stripeReceive` trigger)When the Stripe daemon is connected (Credentials Modal → Stripe →-Connect), every event Stripe sends is forwarded to MachinaOs and+Connect), every event Stripe sends is forwarded to OpenCompany anddelivered to any active `stripeReceive` trigger nodes afterHMAC-SHA256 signature verification (`Stripe-Signature` header).@@ -244,7 +244,7 @@ The trigger output mirrors Stripe's event shape: `event_id`,## Authentication — `stripe login` (browser OAuth)Authentication is delegated entirely to the Stripe CLI. There is no-API key to paste into MachinaOs. The Credentials Modal's **Login+API key to paste into OpenCompany. The Credentials Modal's **Loginwith Stripe** button drives the CLI's two-step machine-friendlylogin:@@ -256,7 +256,7 @@ login:then writes credentials (one restricted key per mode, valid for90 days) to `~/.config/stripe/config.toml` (or`$XDG_CONFIG_HOME/stripe/config.toml`).-3. **MachinaOs-side**: when login completes, the listen daemon+3. **OpenCompany-side**: when login completes, the listen daemonstarts automatically and captures the webhook signing secret.After login, every `stripe …` command run via this tool reads its@@ -291,7 +291,7 @@ and runs `stripe logout --all` to clear the config file.- System install (`brew install stripe/stripe-cli/stripe`,`scoop install stripe`, `apt install stripe`, or a directbinary from <https://stripe.com/docs/stripe-cli#install>).- - MachinaOs package cache at+ - OpenCompany package cache at`<DATA_DIR>/packages/stripe/bin/stripe[.exe]` (populatedautomatically from GitHub releases — pinned to a known-goodCLI version).diff --git a/server/skills/productivity_agent/google-calendar-skill/SKILL.md b/server/skills/productivity_agent/google-calendar-skill/SKILL.mdindex cede793c..5ba385c3 100644--- a/server/skills/productivity_agent/google-calendar-skill/SKILL.md+++ b/server/skills/productivity_agent/google-calendar-skill/SKILL.md@@ -3,7 +3,7 @@ name: google-calendar-skilldescription: Create, list, update, and delete Google Calendar events. Supports attendees, reminders, and recurring events.allowed-tools: "google_calendar"metadata:- author: machina+ author: opencompanyversion: "1.0"category: productivitydiff --git a/server/skills/productivity_agent/google-contacts-skill/SKILL.md b/server/skills/productivity_agent/google-contacts-skill/SKILL.mdindex c5e80075..f18f0e71 100644--- a/server/skills/productivity_agent/google-contacts-skill/SKILL.md+++ b/server/skills/productivity_agent/google-contacts-skill/SKILL.md@@ -3,7 +3,7 @@ name: google-contacts-skilldescription: Create, list, and search Google Contacts. Supports names, emails, phone numbers, and organizations.allowed-tools: "google_contacts"metadata:- author: machina+ author: opencompanyversion: "1.0"category: productivitydiff --git a/server/skills/productivity_agent/google-drive-skill/SKILL.md b/server/skills/productivity_agent/google-drive-skill/SKILL.mdindex a9cbf9b1..d571658b 100644--- a/server/skills/productivity_agent/google-drive-skill/SKILL.md+++ b/server/skills/productivity_agent/google-drive-skill/SKILL.md@@ -3,7 +3,7 @@ name: google-drive-skilldescription: Upload, download, list, and share Google Drive files. Supports folders, file search, and permission management.allowed-tools: "google_drive"metadata:- author: machina+ author: opencompanyversion: "1.0"category: productivitydiff --git a/server/skills/productivity_agent/google-gmail-skill/SKILL.md b/server/skills/productivity_agent/google-gmail-skill/SKILL.mdindex 9d92e904..cfb0cfd0 100644--- a/server/skills/productivity_agent/google-gmail-skill/SKILL.md+++ b/server/skills/productivity_agent/google-gmail-skill/SKILL.md@@ -3,7 +3,7 @@ name: google-gmail-skilldescription: Send, search, and read Gmail emails. Supports composing emails with attachments, searching by query, and reading email content.allowed-tools: "google_gmail"metadata:- author: machina+ author: opencompanyversion: "1.0"category: productivitydiff --git a/server/skills/productivity_agent/google-sheets-skill/SKILL.md b/server/skills/productivity_agent/google-sheets-skill/SKILL.mdindex 79ac9885..c1b61d8d 100644--- a/server/skills/productivity_agent/google-sheets-skill/SKILL.md+++ b/server/skills/productivity_agent/google-sheets-skill/SKILL.md@@ -3,7 +3,7 @@ name: google-sheets-skilldescription: Read, write, and append data to Google Sheets spreadsheets. Supports cell ranges, formulas, and batch operations.allowed-tools: "google_sheets"metadata:- author: machina+ author: opencompanyversion: "1.0"category: productivitydiff --git a/server/skills/productivity_agent/google-tasks-skill/SKILL.md b/server/skills/productivity_agent/google-tasks-skill/SKILL.mdindex 3816ec34..778ef828 100644--- a/server/skills/productivity_agent/google-tasks-skill/SKILL.md+++ b/server/skills/productivity_agent/google-tasks-skill/SKILL.md@@ -3,7 +3,7 @@ name: google-tasks-skilldescription: Create, list, and complete Google Tasks. Supports task lists, due dates, and notes.allowed-tools: "google_tasks"metadata:- author: machina+ author: opencompanyversion: "1.0"category: productivitydiff --git a/server/skills/rlm_agent/rlm-reasoning-skill/SKILL.md b/server/skills/rlm_agent/rlm-reasoning-skill/SKILL.mdindex aae7306b..0f146988 100644--- a/server/skills/rlm_agent/rlm-reasoning-skill/SKILL.md+++ b/server/skills/rlm_agent/rlm-reasoning-skill/SKILL.md@@ -2,7 +2,7 @@name: rlm-reasoning-skilldescription: Guides the RLM agent to use REPL code execution with recursive LM calls for complex reasoning, decomposition, and multi-step problem solving.metadata:- author: machina+ author: opencompanyversion: "1.0"category: reasoningicon: "🧠"diff --git a/server/skills/social_agent/twitter-search-skill/SKILL.md b/server/skills/social_agent/twitter-search-skill/SKILL.mdindex e13e17f4..aabe7bd4 100644--- a/server/skills/social_agent/twitter-search-skill/SKILL.md+++ b/server/skills/social_agent/twitter-search-skill/SKILL.md@@ -3,7 +3,7 @@ name: twitter-search-skilldescription: Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators. Returns rich tweet data with expanded URLs, author info, media, metrics, and referenced tweets.allowed-tools: twitter_searchmetadata:- author: machina+ author: opencompanyversion: "2.1"category: socialdiff --git a/server/skills/social_agent/twitter-send-skill/SKILL.md b/server/skills/social_agent/twitter-send-skill/SKILL.mdindex 7538f712..167ddb8c 100644--- a/server/skills/social_agent/twitter-send-skill/SKILL.md+++ b/server/skills/social_agent/twitter-send-skill/SKILL.md@@ -3,7 +3,7 @@ name: twitter-send-skilldescription: Post tweets, reply to tweets, retweet, like/unlike, and delete tweets on Twitter/X. Supports threading, 280-char tweets, and automatic token refresh.allowed-tools: twitter_sendmetadata:- author: machina+ author: opencompanyversion: "2.0"category: socialdiff --git a/server/skills/social_agent/twitter-user-skill/SKILL.md b/server/skills/social_agent/twitter-user-skill/SKILL.mdindex b3670b7a..332b0f4b 100644--- a/server/skills/social_agent/twitter-user-skill/SKILL.md+++ b/server/skills/social_agent/twitter-user-skill/SKILL.md@@ -3,7 +3,7 @@ name: twitter-user-skilldescription: Look up Twitter/X user profiles with descriptions, get authenticated user info, and retrieve followers/following lists with profile details.allowed-tools: twitter_usermetadata:- author: machina+ author: opencompanyversion: "2.0"category: socialdiff --git a/server/skills/social_agent/whatsapp-db-skill/SKILL.md b/server/skills/social_agent/whatsapp-db-skill/SKILL.mdindex 762b3dc5..211c74a8 100644--- a/server/skills/social_agent/whatsapp-db-skill/SKILL.md+++ b/server/skills/social_agent/whatsapp-db-skill/SKILL.md@@ -3,7 +3,7 @@ name: whatsapp-db-skilldescription: Query WhatsApp database for contacts, groups, channels, and chat history. Look up contact info, search groups, manage channels, retrieve messages.allowed-tools: whatsapp_dbmetadata:- author: machina+ author: opencompanyversion: "1.0"category: messagingdiff --git a/server/skills/social_agent/whatsapp-send-skill/SKILL.md b/server/skills/social_agent/whatsapp-send-skill/SKILL.mdindex fb525f24..7e8d8519 100644--- a/server/skills/social_agent/whatsapp-send-skill/SKILL.md+++ b/server/skills/social_agent/whatsapp-send-skill/SKILL.md@@ -3,7 +3,7 @@ name: whatsapp-send-skilldescription: Send WhatsApp messages to contacts, groups, or channels. Supports text, images, videos, audio, documents, stickers, locations, and contacts.allowed-tools: whatsapp_sendmetadata:- author: machina+ author: opencompanyversion: "1.0"category: messagingdiff --git a/server/skills/task_agent/cron-scheduler-skill/SKILL.md b/server/skills/task_agent/cron-scheduler-skill/SKILL.mdindex 3cff286f..2c861d8e 100644--- a/server/skills/task_agent/cron-scheduler-skill/SKILL.md+++ b/server/skills/task_agent/cron-scheduler-skill/SKILL.md@@ -3,7 +3,7 @@ name: cron-scheduler-skilldescription: Schedule recurring tasks using cron expressions. Run workflows on schedules (daily, weekly, hourly, etc.).allowed-tools: cron_schedulermetadata:- author: machina+ author: opencompanyversion: "1.0"category: automationdiff --git a/server/skills/task_agent/task-manager-skill/SKILL.md b/server/skills/task_agent/task-manager-skill/SKILL.mdindex 8024d6f0..5e22fbad 100644--- a/server/skills/task_agent/task-manager-skill/SKILL.md+++ b/server/skills/task_agent/task-manager-skill/SKILL.md@@ -3,7 +3,7 @@ name: task-manager-skilldescription: Manage delegated tasks. List active tasks, check task status, get results from completed delegations, and mark tasks as done.allowed-tools: task_managermetadata:- author: machina+ author: opencompanyversion: "1.0"category: automationdiff --git a/server/skills/task_agent/timer-skill/SKILL.md b/server/skills/task_agent/timer-skill/SKILL.mdindex 931d6230..90b420b5 100644--- a/server/skills/task_agent/timer-skill/SKILL.md+++ b/server/skills/task_agent/timer-skill/SKILL.md@@ -3,7 +3,7 @@ name: timer-skilldescription: Set one-time delayed timers. Execute actions after a specified duration (seconds, minutes, hours, days).allowed-tools: timermetadata:- author: machina+ author: opencompanyversion: "1.0"category: automationdiff --git a/server/skills/terminal/bash-skill/SKILL.md b/server/skills/terminal/bash-skill/SKILL.mdindex 192662a3..8e6d923e 100644--- a/server/skills/terminal/bash-skill/SKILL.md+++ b/server/skills/terminal/bash-skill/SKILL.md@@ -3,7 +3,7 @@ name: bash-skilldescription: Linux/macOS Bash commands and patterns for process management, file operations, and system administration.allowed-tools: "process_manager shell"metadata:- author: machina+ author: opencompanyversion: "1.0"category: terminaldiff --git a/server/skills/terminal/powershell-skill/SKILL.md b/server/skills/terminal/powershell-skill/SKILL.mdindex f8f76236..2f5fe6b7 100644--- a/server/skills/terminal/powershell-skill/SKILL.md+++ b/server/skills/terminal/powershell-skill/SKILL.md@@ -3,7 +3,7 @@ name: powershell-skilldescription: Windows PowerShell commands and patterns for process management, file operations, and system administration.allowed-tools: "process_manager shell"metadata:- author: machina+ author: opencompanyversion: "1.0"category: terminaldiff --git a/server/skills/terminal/process-manager-skill/SKILL.md b/server/skills/terminal/process-manager-skill/SKILL.mdindex 7406fc23..ee4fdf78 100644--- a/server/skills/terminal/process-manager-skill/SKILL.md+++ b/server/skills/terminal/process-manager-skill/SKILL.md@@ -3,7 +3,7 @@ name: process-manager-skilldescription: Start, stop, and manage long-running processes with full system PATH. Use for npm, python, node, dev servers, watchers, build tools. Destructive file commands blocked.allowed-tools: process_managermetadata:- author: machina+ author: opencompanyversion: "3.0"category: executiondiff --git a/server/skills/terminal/shell-skill/SKILL.md b/server/skills/terminal/shell-skill/SKILL.mdindex 3077c146..f5f4a12d 100644--- a/server/skills/terminal/shell-skill/SKILL.md+++ b/server/skills/terminal/shell-skill/SKILL.md@@ -3,7 +3,7 @@ name: shell-skilldescription: Execute short-lived shell commands inside the per-workflow workspace. The shell is Nushell (cross-platform, same syntax on Windows/macOS/Linux). External tools on PATH (npm, node, python, git, ...) are available.allowed-tools: "shell"metadata:- author: machina+ author: opencompanyversion: "4.1"category: executiondiff --git a/server/skills/terminal/wsl-skill/SKILL.md b/server/skills/terminal/wsl-skill/SKILL.mdindex e14a1a16..50e9887d 100644--- a/server/skills/terminal/wsl-skill/SKILL.md+++ b/server/skills/terminal/wsl-skill/SKILL.md@@ -3,7 +3,7 @@ name: wsl-skilldescription: Windows Subsystem for Linux (WSL) commands for running Linux tools on Windows.allowed-tools: "process_manager shell"metadata:- author: machina+ author: opencompanyversion: "1.0"category: terminaldiff --git a/server/skills/travel_agent/geocoding-skill/SKILL.md b/server/skills/travel_agent/geocoding-skill/SKILL.mdindex 69ee8911..c2c5d4f7 100644--- a/server/skills/travel_agent/geocoding-skill/SKILL.md+++ b/server/skills/travel_agent/geocoding-skill/SKILL.md@@ -3,7 +3,7 @@ name: geocoding-skilldescription: Convert addresses to coordinates (geocoding) or coordinates to addresses (reverse geocoding) using Google Maps API.allowed-tools: "gmaps_locations"metadata:- author: machina+ author: opencompanyversion: "1.0"category: locationdiff --git a/server/skills/travel_agent/nearby-places-skill/SKILL.md b/server/skills/travel_agent/nearby-places-skill/SKILL.mdindex 9aef00d4..965e9ff2 100644--- a/server/skills/travel_agent/nearby-places-skill/SKILL.md+++ b/server/skills/travel_agent/nearby-places-skill/SKILL.md@@ -3,7 +3,7 @@ name: nearby-places-skilldescription: Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.allowed-tools: "gmaps_nearby_places"metadata:- author: machina+ author: opencompanyversion: "1.0"category: locationdiff --git a/server/skills/vercel/vercel-skill/SKILL.md b/server/skills/vercel/vercel-skill/SKILL.mdindex 4d631f94..48e02d56 100644--- a/server/skills/vercel/vercel-skill/SKILL.md+++ b/server/skills/vercel/vercel-skill/SKILL.md@@ -3,7 +3,7 @@ name: vercel-skilldescription: Deploy sites and apps to Vercel, inspect deployments, stream logs, and manage projects/env/domains via the Vercel CLI. Deploy a directory and get back the live deployment URL; everything else the CLI supports is available through the custom command passthrough.allowed-tools: "vercel"metadata:- author: machina+ author: opencompanyversion: "1.0"category: deployment@@ -162,7 +162,7 @@ Credentials Modal → Vercel:1. **Login with Vercel** — browser device flow driven through theCLI. The CLI is auto-installed via npm on first use and keeps its- auth state in a MachinaOs-owned config directory.+ auth state in a OpenCompany-owned config directory.2. **Access token** — paste a token from[vercel.com/account/tokens](https://vercel.com/account/tokens).Injected as `VERCEL_TOKEN` on every call; takes precedence overdiff --git a/server/skills/vertex_agent/vertex-agent-admin-skill/SKILL.md b/server/skills/vertex_agent/vertex-agent-admin-skill/SKILL.mdindex 79ae7bc0..5029f2ba 100644--- a/server/skills/vertex_agent/vertex-agent-admin-skill/SKILL.md+++ b/server/skills/vertex_agent/vertex-agent-admin-skill/SKILL.md@@ -3,7 +3,7 @@ name: vertex-agent-admin-skilldescription: Create, list, inspect, and delete custom managed agents on the Gemini Enterprise Agent Platform. Custom agents build on the Antigravity base agent with their own system instruction and built-in cloud tools; run them with the Vertex Agent node.allowed-tools: "vertex_agent_admin"metadata:- author: machina+ author: opencompanyversion: "1.0"category: agentsdiff --git a/server/skills/vertex_agent/vertex-agent-skill/SKILL.md b/server/skills/vertex_agent/vertex-agent-skill/SKILL.mdindex a3183607..4697e987 100644--- a/server/skills/vertex_agent/vertex-agent-skill/SKILL.md+++ b/server/skills/vertex_agent/vertex-agent-skill/SKILL.md@@ -3,7 +3,7 @@ name: vertex-agent-skilldescription: Delegate heavy tasks to a Google cloud-hosted managed agent (Antigravity) with its own sandboxed Linux environment - code execution, file management, Google Search, and URL fetching all run in Google's cloud. Use for multi-step research or compute jobs that should not run locally.allowed-tools: "vertex_managed_agent"metadata:- author: machina+ author: opencompanyversion: "1.0"category: agentsdiff --git a/server/skills/web_agent/apify-skill/SKILL.md b/server/skills/web_agent/apify-skill/SKILL.mdindex 30b2ad6d..47d04189 100644--- a/server/skills/web_agent/apify-skill/SKILL.md+++ b/server/skills/web_agent/apify-skill/SKILL.md@@ -3,7 +3,7 @@ name: apify-skilldescription: Run web scrapers and extract data from websites and social media platforms using Apify actors. Supports Instagram, TikTok, Twitter/X, LinkedIn, Facebook, YouTube, Google Search, and general web crawling.allowed-tools: "apify_actor"metadata:- author: machina+ author: opencompanyversion: "1.0"category: webdiff --git a/server/skills/web_agent/brave-search-skill/SKILL.md b/server/skills/web_agent/brave-search-skill/SKILL.mdindex 7bcbc1f7..7acc79ce 100644--- a/server/skills/web_agent/brave-search-skill/SKILL.md+++ b/server/skills/web_agent/brave-search-skill/SKILL.md@@ -3,7 +3,7 @@ name: brave-search-skilldescription: Search the web using Brave Search API for privacy-focused, independent search results with no tracking.allowed-tools: brave_searchmetadata:- author: machina+ author: opencompanyversion: "1.0"category: searchdiff --git a/server/skills/web_agent/browser-harness-skill/SKILL.md b/server/skills/web_agent/browser-harness-skill/SKILL.mdindex 498235f6..c56b8c74 100644--- a/server/skills/web_agent/browser-harness-skill/SKILL.md+++ b/server/skills/web_agent/browser-harness-skill/SKILL.md@@ -3,7 +3,7 @@ name: browser-harness-skilldescription: Drive the user's real Chrome over raw CDP by writing Python against browser-harness helpers - screenshot, coordinate clicks, JS evaluation, form fill, tabs. For tasks needing full freedom or the user's own logins.allowed-tools: browserHarnessmetadata:- author: machina+ author: opencompanyversion: "1.0"category: web@@ -92,7 +92,7 @@ print(page_info())**Fill a login/search form**:```python-fill_input("input[name=q]", "machina os")+fill_input("input[name=q]", "opencompany")dispatch_key("input[name=q]", "Enter")wait_for_load()print(page_info())diff --git a/server/skills/web_agent/browser-skill/SKILL.md b/server/skills/web_agent/browser-skill/SKILL.mdindex 8b471223..da1d76c8 100644--- a/server/skills/web_agent/browser-skill/SKILL.md+++ b/server/skills/web_agent/browser-skill/SKILL.md@@ -3,7 +3,7 @@ name: browser-skilldescription: Interactive browser automation - navigate, click, type, fill forms, take screenshots, get accessibility snapshots. Supports system Chrome/Edge via auto-detection.allowed-tools: browsermetadata:- author: machina+ author: opencompanyversion: "2.0"category: web@@ -161,11 +161,11 @@ Browser detection uses `shutil.which()` on Linux/macOS (PATH lookup) and the Win### Lifecycle-The browser daemon auto-starts on first use and persists between commands (for session reuse). It is automatically shut down when MachinaOs stops -- no manual cleanup needed.+The browser daemon auto-starts on first use and persists between commands (for session reuse). It is automatically shut down when OpenCompany stops -- no manual cleanup needed.### Sessions-Each distinct session name maps to ONE browser instance. When the `session` field is left empty (the normal case), it auto-derives as `machina_<execution_id>` -- stable for the whole workflow/agent run, including delegated sub-agents -- so every browser call in a run reuses the same browser window and keeps its cookies, tabs, and login state.+Each distinct session name maps to ONE browser instance. When the `session` field is left empty (the normal case), it auto-derives as `opencompany_<execution_id>` -- stable for the whole workflow/agent run, including delegated sub-agents -- so every browser call in a run reuses the same browser window and keeps its cookies, tabs, and login state.- **Leave `session` empty.** Do not invent a session name per call; the auto-derived session already chains your calls onto one browser.- Set `session` explicitly only to persist state across separate runs (e.g. `my_login_session`) or to isolate parallel flows within one run.diff --git a/server/skills/web_agent/crawlee-scraper-skill/SKILL.md b/server/skills/web_agent/crawlee-scraper-skill/SKILL.mdindex 13c04ac8..bdfa1524 100644--- a/server/skills/web_agent/crawlee-scraper-skill/SKILL.md+++ b/server/skills/web_agent/crawlee-scraper-skill/SKILL.md@@ -3,7 +3,7 @@ name: crawlee-scraper-skilldescription: Read and extract content from any web page URL.allowed-tools: "crawlee_scraper"metadata:- author: machina+ author: opencompanyversion: "1.0"category: webdiff --git a/server/skills/web_agent/duckduckgo-search-skill/SKILL.md b/server/skills/web_agent/duckduckgo-search-skill/SKILL.mdindex bcd2752c..285e6214 100644--- a/server/skills/web_agent/duckduckgo-search-skill/SKILL.md+++ b/server/skills/web_agent/duckduckgo-search-skill/SKILL.md@@ -3,7 +3,7 @@ name: duckduckgo-search-skilldescription: Search the web using DuckDuckGo for free, privacy-focused results with no API key required.allowed-tools: "duckduckgo_search"metadata:- author: machina+ author: opencompanyversion: "2.0"category: searchdiff --git a/server/skills/web_agent/http-request-skill/SKILL.md b/server/skills/web_agent/http-request-skill/SKILL.mdindex f7d27850..1ca37007 100644--- a/server/skills/web_agent/http-request-skill/SKILL.md+++ b/server/skills/web_agent/http-request-skill/SKILL.md@@ -3,7 +3,7 @@ name: http-request-skilldescription: Make HTTP requests to external APIs and web services. Supports GET, POST, PUT, DELETE, PATCH methods with headers and JSON body.allowed-tools: http_requestmetadata:- author: machina+ author: opencompanyversion: "1.0"category: integration@@ -127,7 +127,7 @@ Additional options can be configured on the node:"url": "https://hooks.slack.com/services/xxx","method": "POST","body": {- "text": "Hello from MachinaOS!"+ "text": "Hello from OpenCompany!"}}```diff --git a/server/skills/web_agent/perplexity-search-skill/SKILL.md b/server/skills/web_agent/perplexity-search-skill/SKILL.mdindex f6dd7f39..9289be85 100644--- a/server/skills/web_agent/perplexity-search-skill/SKILL.md+++ b/server/skills/web_agent/perplexity-search-skill/SKILL.md@@ -3,7 +3,7 @@ name: perplexity-search-skilldescription: Search the web using Perplexity Sonar AI for synthesized answers with citations, related questions, and optional images.allowed-tools: perplexity_searchmetadata:- author: machina+ author: opencompanyversion: "1.0"category: searchdiff --git a/server/skills/web_agent/proxy-config-skill/SKILL.md b/server/skills/web_agent/proxy-config-skill/SKILL.mdindex 1976611c..ab68b07f 100644--- a/server/skills/web_agent/proxy-config-skill/SKILL.md+++ b/server/skills/web_agent/proxy-config-skill/SKILL.md@@ -3,7 +3,7 @@ name: proxy-config-skilldescription: Configure residential proxy providers and make proxied HTTP requests with geo-targeting.allowed-tools: "proxy_config proxy_request proxy_status python_executor"metadata:- author: machina+ author: opencompanyversion: "3.0"category: integrationdiff --git a/server/skills/web_agent/serper-search-skill/SKILL.md b/server/skills/web_agent/serper-search-skill/SKILL.mdindex 09a5a4d6..ea35d1cb 100644--- a/server/skills/web_agent/serper-search-skill/SKILL.md+++ b/server/skills/web_agent/serper-search-skill/SKILL.md@@ -3,7 +3,7 @@ name: serper-search-skilldescription: Search the web using Serper API for Google-powered search results including web, news, images, and places.allowed-tools: serper_searchmetadata:- author: machina+ author: opencompanyversion: "1.0"category: searchdiff --git a/server/tests/conftest.py b/server/tests/conftest.pyindex 734f6b41..0bf4d9bd 100644--- a/server/tests/conftest.py+++ b/server/tests/conftest.py@@ -109,26 +109,39 @@ sys.modules["core.ansi"] = _ansi_mod_ansi_spec.loader.exec_module(_ansi_mod)setattr(_core_pkg, "ansi", _ansi_mod)+# core.auth_cookies is dependency-free and its canonical/legacy lookup is+# part of the auth migration contract, so expose the real module under the+# otherwise stubbed core package.+_auth_cookies_spec = _importlib_util.spec_from_file_location(+ "core.auth_cookies",+ SERVER_DIR / "core" / "auth_cookies.py",+)+_auth_cookies_mod = _importlib_util.module_from_spec(_auth_cookies_spec)+sys.modules["core.auth_cookies"] = _auth_cookies_mod+_auth_cookies_spec.loader.exec_module(_auth_cookies_mod)+setattr(_core_pkg, "auth_cookies", _auth_cookies_mod)+# core.paths — central path resolution. Stub the public surface with# tmpdir-rooted Paths so plugin module imports don't trip over the# real ``Path.home()`` lookup during test collection. Tests that# actually exercise on-disk behaviour use ``tempfile.TemporaryDirectory``-# locally; the stub just keeps import-time ``MACHINA_CLAUDE_DIR =+# locally; the stub just keeps import-time ``OPENCOMPANY_CLAUDE_DIR =# data_path("claude")`` calls from blowing up.-_TEST_MACHINA_ROOT = Path(__file__).parent / "_test_machina_root"+_TEST_OPENCOMPANY_ROOT = Path(__file__).parent / "_test_opencompany_root"_make_submodule("core","paths",{- "project_root": lambda: _TEST_MACHINA_ROOT.parent,- "machina_root": lambda: _TEST_MACHINA_ROOT,- "data_path": lambda sub="": _TEST_MACHINA_ROOT / sub if sub else _TEST_MACHINA_ROOT,- "packages_dir": lambda: _TEST_MACHINA_ROOT / "packages",- "package_dir": lambda name: _TEST_MACHINA_ROOT / "packages" / name,- "daemons_dir": lambda: _TEST_MACHINA_ROOT / "daemons",- "workspaces_dir": lambda: _TEST_MACHINA_ROOT / "workspaces",- "workspace_dir": lambda wf: _TEST_MACHINA_ROOT / "workspaces" / wf,- "example_workflows_dir": lambda: _TEST_MACHINA_ROOT / "workflows",+ "project_root": lambda: _TEST_OPENCOMPANY_ROOT.parent,+ "opencompany_root": lambda: _TEST_OPENCOMPANY_ROOT,+ "machina_root": lambda: _TEST_OPENCOMPANY_ROOT,+ "data_path": lambda sub="": _TEST_OPENCOMPANY_ROOT / sub if sub else _TEST_OPENCOMPANY_ROOT,+ "packages_dir": lambda: _TEST_OPENCOMPANY_ROOT / "packages",+ "package_dir": lambda name: _TEST_OPENCOMPANY_ROOT / "packages" / name,+ "daemons_dir": lambda: _TEST_OPENCOMPANY_ROOT / "daemons",+ "workspaces_dir": lambda: _TEST_OPENCOMPANY_ROOT / "workspaces",+ "workspace_dir": lambda wf: _TEST_OPENCOMPANY_ROOT / "workspaces" / wf,+ "example_workflows_dir": lambda: _TEST_OPENCOMPANY_ROOT / "workflows",},)diff --git a/server/tests/credentials/test_credential_broadcasts.py b/server/tests/credentials/test_credential_broadcasts.pyindex 9552c362..0782edb5 100644--- a/server/tests/credentials/test_credential_broadcasts.py+++ b/server/tests/credentials/test_credential_broadcasts.py@@ -123,8 +123,8 @@ class TestCredentialEventCloudEventsShape:from services.events.envelope import WorkflowEventevent = WorkflowEvent(- source="machinaos://services/credentials",- type="com.machinaos.credential.api_key.saved",+ source="opencompany://services/credentials",+ type="com.opencompany.credential.api_key.saved",subject="openai",data={"provider": "openai"},)@@ -142,9 +142,9 @@ class TestCredentialEventCloudEventsShape:assert envelope["subject"] == "openai"def test_event_type_namespaced(self, envelope):- # Convention: com.machinaos.credential.<area>.<action>+ # Convention: com.opencompany.credential.<area>.<action># (reverse-DNS prefix per CloudEvents Primer)- assert envelope["type"].startswith("com.machinaos.credential."), envelope["type"]+ assert envelope["type"].startswith("com.opencompany.credential."), envelope["type"]class TestAuthServiceDbCanonicalInvariant:diff --git a/server/tests/nodes/test_email.py b/server/tests/nodes/test_email.pyindex f69fa31d..1dcad893 100644--- a/server/tests/nodes/test_email.py+++ b/server/tests/nodes/test_email.py@@ -277,7 +277,7 @@ class TestEmailReceive:# is canary-registered and the legacy collector has no consumer).emit_mock.assert_called_once()envelope = emit_mock.call_args.args[0]- assert envelope.type == "com.machinaos.email.message.received"+ assert envelope.type == "com.opencompany.email.message.received"assert emit_mock.call_args.kwargs["wire_routing_key"] == "email_received"async def test_mark_as_read_adds_seen_flag(self, harness):diff --git a/server/tests/nodes/test_web_automation.py b/server/tests/nodes/test_web_automation.pyindex fcfe696a..6980a1d5 100644--- a/server/tests/nodes/test_web_automation.py+++ b/server/tests/nodes/test_web_automation.py@@ -85,7 +85,7 @@ class TestBrowser:assert session == "test_sess"async def test_snapshot_uses_i_flag_and_session_fallback(self, harness):- # Empty session -> handler must derive machina_<execution_id>.+ # Empty session -> handler must derive opencompany_<execution_id>.fake = _FakeBrowserService(canned={"success": True, "nodes": [{"ref": "@e1", "role": "button"}]})with _patch_browser_service(fake):@@ -97,7 +97,7 @@ class TestBrowser:harness.assert_envelope(result, success=True)args, session, _, _ = fake.calls[-1]assert args == ("snapshot", "-i")- assert session.startswith("machina_")+ assert session.startswith("opencompany_")async def test_session_stable_across_calls_in_one_run(self, harness):# Two browser calls sharing one execution context (one agent run)@@ -118,7 +118,7 @@ class TestBrowser:harness.assert_envelope(r1, success=True)harness.assert_envelope(r2, success=True)sessions = [call[1] for call in fake.calls]- assert sessions == ["machina_run1234", "machina_run1234"]+ assert sessions == ["opencompany_run1234", "opencompany_run1234"]async def test_screenshot_with_jpeg_and_quality(self, harness):fake = _FakeBrowserService(canned={"success": True, "base64": "AAAA"})diff --git a/server/tests/services/cli_agent/test_claude_session_events.py b/server/tests/services/cli_agent/test_claude_session_events.pyindex f2178385..7b0a02ba 100644--- a/server/tests/services/cli_agent/test_claude_session_events.py+++ b/server/tests/services/cli_agent/test_claude_session_events.py@@ -19,8 +19,8 @@ class TestClaudeSessionSpawned:pid=12345,workflow_id="wf-99",)- assert event.source == "machinaos://services/cli_agent"- assert event.type == "com.machinaos.claude.session.spawned"+ assert event.source == "opencompany://services/cli_agent"+ assert event.type == "com.opencompany.claude.session.spawned"assert event.subject == "mem-1"assert event.workflow_id == "wf-99"assert event.data == {@@ -56,7 +56,7 @@ class TestClaudeSessionCleared:new_session_uuid="uuid-B",workflow_id="wf-99",)- assert event.type == "com.machinaos.claude.session.cleared"+ assert event.type == "com.opencompany.claude.session.cleared"assert event.subject == "mem-1"assert event.data["old_session_uuid"] == "uuid-A"assert event.data["new_session_uuid"] == "uuid-B"@@ -69,7 +69,7 @@ class TestClaudeSessionTerminated:reason="idle",session_uuid="uuid-A",)- assert event.type == "com.machinaos.claude.session.terminated"+ assert event.type == "com.opencompany.claude.session.terminated"assert event.subject == "mem-1"assert event.data["reason"] == "idle"assert event.data["session_uuid"] == "uuid-A"@@ -98,7 +98,7 @@ class TestClaudeSessionUsage:num_turns=3,workflow_id="wf-99",)- assert event.type == "com.machinaos.claude.session.usage"+ assert event.type == "com.opencompany.claude.session.usage"assert event.subject == "mem-1"assert event.workflow_id == "wf-99"assert event.data["session_uuid"] == "uuid-A"@@ -173,7 +173,7 @@ class TestCloudEventInvariants:def test_all_share_source_uri(self):for name, builder in self.EVENTS:event = builder()- assert event.source == "machinaos://services/cli_agent", name+ assert event.source == "opencompany://services/cli_agent", namedef test_all_share_subject_convention(self):# subject = memory_node_id, drives FE per-memory-node routing.@@ -185,7 +185,7 @@ class TestCloudEventInvariants:for name, builder in self.EVENTS:event = builder()assert event.dataschema is not None- assert event.dataschema.startswith("machinaos://schemas/events/claude.session."), name+ assert event.dataschema.startswith("opencompany://schemas/events/claude.session."), nameassert event.dataschema.endswith(".json"), namedef test_all_carry_specversion_1(self):diff --git a/server/tests/services/cli_agent/test_mcp_server.py b/server/tests/services/cli_agent/test_mcp_server.pyindex 5f0e7a8c..4acb7430 100644--- a/server/tests/services/cli_agent/test_mcp_server.py+++ b/server/tests/services/cli_agent/test_mcp_server.py@@ -254,8 +254,8 @@ class TestLockfile:# ----------------------------------------------------------------------------# MachinaOs workflow-tool bridge — per-batch dynamic FastMCP exposure.-# Each wired node lands as `mcp__machinaos__<node_type>`; FastMCP infers+# OpenCompany workflow-tool bridge — per-batch dynamic FastMCP exposure.+# Each wired node lands as `mcp__opencompany__<node_type>`; FastMCP infers# the schema from the typed `params` annotation (no custom translation).## These tests drive FastMCP's own ``list_tools`` / ``call_tool`` API so@@ -264,7 +264,7 @@ class TestLockfile:# ----------------------------------------------------------------------------class TestMachinaOsToolBridge:+class TestOpenCompanyToolBridge:def setup_method(self):_reset_for_tests()import nodes # noqa: F401 — populate plugin registry@@ -288,7 +288,7 @@ class TestMachinaOsToolBridge:@pytest.mark.asyncioasync def test_register_batch_exposes_tool_on_fastmcp(self):"""The connected workflow node must surface in ``list_tools`` so- claude sees ``mcp__machinaos__<node_type>`` on first+ claude sees ``mcp__opencompany__<node_type>`` on first``tools/list``."""from services.cli_agent.mcp_server import get_mcp_app@@ -429,7 +429,7 @@ class TestMachinaOsToolBridge:try:out = await mcp.call_tool("duckduckgoSearch",- {"query": "MachinaOs Anthropic Claude", "max_results": 3},+ {"query": "OpenCompany Anthropic Claude", "max_results": 3},)except OSError as exc:pytest.skip(f"network unavailable: {exc}")diff --git a/server/tests/services/cli_agent/test_providers.py b/server/tests/services/cli_agent/test_providers.pyindex 9bbfa67b..a3022253 100644--- a/server/tests/services/cli_agent/test_providers.py+++ b/server/tests/services/cli_agent/test_providers.py@@ -120,7 +120,7 @@ class TestClaudeArgv:wired. Combined with ``--permission-mode dontAsk`` (whichgates strictly on the allowlist) this means the agent canONLY invoke MCP tools that were explicitly wired through- ``input-tools`` plus MachinaOs's own MCP infrastructure tools.+ ``input-tools`` plus OpenCompany's own MCP infrastructure tools.Disconnected workflow tools are also blocked by the per-handlerscope check in ``workflow_tools._build_handler`` reading the@@ -144,13 +144,13 @@ class TestClaudeArgv:}for entry in entries:assert entry not in builtins, f"claude built-in {entry!r} leaked into default allowlist"- # MachinaOs MCP infrastructure must still be present so the+ # OpenCompany MCP infrastructure must still be present so the# agent can read the workspace + invoke connected skills.- assert "mcp__machinaos__getWorkspaceFiles" in entries- assert "mcp__machinaos__listSkills" in entries- assert "mcp__machinaos__getSkill" in entries- assert "mcp__machinaos__getCredential" in entries- assert "mcp__machinaos__broadcastLog" in entries+ assert "mcp__opencompany__getWorkspaceFiles" in entries+ assert "mcp__opencompany__listSkills" in entries+ assert "mcp__opencompany__getSkill" in entries+ assert "mcp__opencompany__getCredential" in entries+ assert "mcp__opencompany__broadcastLog" in entriesdef test_skill_builtin_conditional_on_wired_skills(self, claude_provider):"""``Skill`` is the one claude built-in we conditionally allowdiff --git a/server/tests/temporal/test_agent_workflow.py b/server/tests/temporal/test_agent_workflow.pyindex 6e8e2728..07a58d21 100644--- a/server/tests/temporal/test_agent_workflow.py+++ b/server/tests/temporal/test_agent_workflow.py@@ -345,7 +345,7 @@ class TestExecutionIdPropagation:"mints a fresh uuid per tool call.")- def test_machina_workflow_threads_execution_id(self):+ def test_opencompany_workflow_threads_execution_id(self):import inspectfrom services.temporal.workflow import MachinaWorkflowdiff --git a/server/tests/test_admin_handlers.py b/server/tests/test_admin_handlers.pyindex 37df9f43..4df197f9 100644--- a/server/tests/test_admin_handlers.py+++ b/server/tests/test_admin_handlers.py@@ -23,13 +23,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp# ---------------------------------------------------------------------------diff --git a/server/tests/test_canary_registry.py b/server/tests/test_canary_registry.pyindex b6ac61b4..0aefc8cd 100644--- a/server/tests/test_canary_registry.py+++ b/server/tests/test_canary_registry.py@@ -28,13 +28,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixture@@ -48,9 +48,9 @@ def fresh_registry(monkeypatch):# Dummy CloudEvents types used in registry tests — the real values come# from each plugin's ``_events.py`` factory.-_CE_WEBHOOK = "com.machinaos.webhook.received"-_CE_CHAT = "com.machinaos.chat.message.received"-_CE_TASK = "com.machinaos.agent.task.completed"+_CE_WEBHOOK = "com.opencompany.webhook.received"+_CE_CHAT = "com.opencompany.chat.message.received"+_CE_TASK = "com.opencompany.agent.task.completed"class TestRegistryContract:@@ -79,7 +79,7 @@ class TestRegistryContract:producer envelope shape without coordinating with the listener."""fresh_registry.register_canary_trigger_type("chatTrigger", _CE_CHAT)with pytest.raises(ValueError, match="diverging"):- fresh_registry.register_canary_trigger_type("chatTrigger", "com.machinaos.chat.message.changed")+ fresh_registry.register_canary_trigger_type("chatTrigger", "com.opencompany.chat.message.changed")def test_multiple_types_coexist(self, fresh_registry):for t, ce in (@@ -191,9 +191,9 @@ class TestPluginSelfRegistration:@pytest.mark.parametrize("plugin_module,expected_type,expected_cloudevent_type",[- ("nodes.trigger.webhook_trigger", "webhookTrigger", "com.machinaos.webhook.received"),- ("nodes.trigger.chat_trigger", "chatTrigger", "com.machinaos.chat.message.received"),- ("nodes.trigger.task_trigger", "taskTrigger", "com.machinaos.agent.task.completed"),+ ("nodes.trigger.webhook_trigger", "webhookTrigger", "com.opencompany.webhook.received"),+ ("nodes.trigger.chat_trigger", "chatTrigger", "com.opencompany.chat.message.received"),+ ("nodes.trigger.task_trigger", "taskTrigger", "com.opencompany.agent.task.completed"),],)def test_plugin_import_registers_its_type(self, plugin_module, expected_type, expected_cloudevent_type):@@ -238,7 +238,7 @@ class TestCloudEventTypeMatchesSearchAttribute:def test_every_registered_type_has_reverse_dns_cloudevent_type(self):"""All registered cloudevent_types are reverse-DNS strings- (``com.machinaos.*``) — that's the CloudEvents §3.1.2 type+ (``com.opencompany.*``) — that's the CloudEvents §3.1.2 typeconvention this codebase declares (see envelope.py:_TYPE_PREFIX).Anything else means a plugin registered the legacy snake_caseevent_waiter event_type by mistake."""@@ -249,9 +249,9 @@ class TestCloudEventTypeMatchesSearchAttribute:assert ce_type is not None, (f"canary_trigger_types includes {node_type!r} but " f"cloudevent_type_for() returned None — registry corrupted.")- assert ce_type.startswith("com.machinaos."), (+ assert ce_type.startswith("com.opencompany."), (f"{node_type!r} registered with cloudevent_type={ce_type!r}; "- f"expected a reverse-DNS string starting with 'com.machinaos.'. "+ f"expected a reverse-DNS string starting with 'com.opencompany.'. "f"That's the format dispatch.emit's Visibility query "f"substitutes from envelope.type — anything else fails to "f"match the listener's EventType Search Attribute."diff --git a/server/tests/test_chat_trigger_canary_producer.py b/server/tests/test_chat_trigger_canary_producer.pyindex 9deb7415..15ae05c5 100644--- a/server/tests/test_chat_trigger_canary_producer.py+++ b/server/tests/test_chat_trigger_canary_producer.py@@ -24,14 +24,14 @@ from unittest.mock import MagicMockimport pytest-# Stub `machina` namespace.-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+# Stub the root `cli` namespace.+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp_EVENT_WAITER_DISPATCH_PATTERN = re.compile(r"event_waiter\.dispatch\s*\(")@@ -96,6 +96,6 @@ class TestChatTriggerProducerCanaryEmit:assert len(emit_calls) == 1event = emit_calls[0]["event"]- assert event.type == "com.machinaos.chat.message.received"+ assert event.type == "com.opencompany.chat.message.received"assert event.subject == "sess-1"assert emit_calls[0]["wire_routing_key"] == "chat_message_received"diff --git a/server/tests/test_cloudevents_node_parameters.py b/server/tests/test_cloudevents_node_parameters.pyindex 2564666f..930c60c1 100644--- a/server/tests/test_cloudevents_node_parameters.py+++ b/server/tests/test_cloudevents_node_parameters.py@@ -10,7 +10,7 @@ as raw dicts (``routers/websocket.py:handle_save_node_parameters``,This invariant pins:- ``WorkflowEvent.node_parameters_updated(...)`` factory exists with the- canonical reverse-DNS type ``com.machinaos.node.parameters.updated``.+ canonical reverse-DNS type ``com.opencompany.node.parameters.updated``.- ``StatusBroadcaster.broadcast_node_parameters_updated(...)`` wrapperexists and routes through the factory.- The three legacy emission sites all call the broadcaster wrapper, not@@ -36,8 +36,8 @@ class TestFactoryShape:source_hint="agent",)# CloudEvents envelope shape.- assert event.source == "machinaos://services/parameters"- assert event.type == "com.machinaos.node.parameters.updated"+ assert event.source == "opencompany://services/parameters"+ assert event.type == "com.opencompany.node.parameters.updated"assert event.subject == "test_node_id"# workflow_id extension is preserved.assert event.workflow_id == "wf_abc"diff --git a/server/tests/test_cron_canary.py b/server/tests/test_cron_canary.pyindex c8b84b14..51a9e393 100644--- a/server/tests/test_cron_canary.py+++ b/server/tests/test_cron_canary.py@@ -32,13 +32,13 @@ from unittest.mock import AsyncMock, MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixturediff --git a/server/tests/test_deployment_canary_listener.py b/server/tests/test_deployment_canary_listener.pyindex 97c35fdc..242184ab 100644--- a/server/tests/test_deployment_canary_listener.py+++ b/server/tests/test_deployment_canary_listener.py@@ -8,7 +8,7 @@ and ``client.list_workflows`` calls are captured and asserted.The canonical pattern under test:1. **Deterministic listener id** = ``trigger-listener-{workflow_id}-{node_id}``.- Re-deploy of the same MachinaOs workflow targets the same Temporal id.+ Re-deploy of the same OpenCompany workflow targets the same Temporal id.2. **WorkflowIDConflictPolicy.USE_EXISTING** — Temporal returns the existinghandle instead of erroring on a duplicate-id start. Idempotent re-deploy.3. **TypedSearchAttributes set at start** — ``EventType``, ``TriggerNodeId``,@@ -32,14 +32,14 @@ from unittest.mock import AsyncMock, MagicMockimport pytest-# Stub `machina` namespace — same pattern as other event-framework tests.-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+# Stub the root `cli` namespace — same pattern as other event-framework tests.+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixture@@ -139,7 +139,7 @@ class TestCanaryScope:async def test_disabled_when_flag_off(self, monkeypatch, fresh_canary_registry):from services.deployment.manager import DeploymentManager- fresh_canary_registry.register_canary_trigger_type("webhookTrigger", "com.machinaos.webhook.received")+ fresh_canary_registry.register_canary_trigger_type("webhookTrigger", "com.opencompany.webhook.received")class _Off:event_framework_enabled = False@@ -172,8 +172,8 @@ class TestCanaryScope:async def test_enabled_when_registered_and_flag_on(self, monkeypatch, fresh_canary_registry):from services.deployment.manager import DeploymentManager- fresh_canary_registry.register_canary_trigger_type("webhookTrigger", "com.machinaos.webhook.received")- fresh_canary_registry.register_canary_trigger_type("chatTrigger", "com.machinaos.chat.message.received")+ fresh_canary_registry.register_canary_trigger_type("webhookTrigger", "com.opencompany.webhook.received")+ fresh_canary_registry.register_canary_trigger_type("chatTrigger", "com.opencompany.chat.message.received")class _On:event_framework_enabled = True@@ -312,7 +312,7 @@ class TestStartCanaryListener:# event.type into the EventType filter — if the SA carries the# legacy snake_case event_waiter string instead, the query# never matches and no signal reaches the listener.- assert attrs_by_name["EventType"] == "com.machinaos.webhook.received"+ assert attrs_by_name["EventType"] == "com.opencompany.webhook.received"@pytest.mark.asyncioasync def test_chat_trigger_uses_chat_kind_in_search_attrs(self, monkeypatch):@@ -348,7 +348,7 @@ class TestStartCanaryListener:assert attrs_by_name["EventTriggerKind"] == "chat"# CloudEvents reverse-DNS — see test_search_attributes_include_event_workflow_id# for the full rationale.- assert attrs_by_name["EventType"] == "com.machinaos.chat.message.received"+ assert attrs_by_name["EventType"] == "com.opencompany.chat.message.received"@pytest.mark.asyncioasync def test_returns_none_when_temporal_not_connected(self, monkeypatch):diff --git a/server/tests/test_event_framework_phase_a.py b/server/tests/test_event_framework_phase_a.pyindex fd302f8c..fb816087 100644--- a/server/tests/test_event_framework_phase_a.py+++ b/server/tests/test_event_framework_phase_a.py@@ -37,17 +37,17 @@ from unittest.mock import MagicMockimport pytest-# Stub the `machina` package (lives at project root, outside server/) so+# Stub the root `cli` package (lives at project root, outside server/) so# `services.temporal.__init__` → `_runtime.py` → `from cli.tcp import# probe_tcp_port` doesn't crash collection. Conftest stubs core.* but-# not machina.*.-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+# not cli.*.+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcpfrom services.events.envelope import WorkflowEventfrom services.plugin.scaling import RetryPolicy@@ -241,8 +241,8 @@ class TestA6DispatchEmitFeatureFlag:from services.events.dispatch import emitevent = WorkflowEvent(- source="machinaos://services/test",- type="com.machinaos.test.disabled",+ source="opencompany://services/test",+ type="com.opencompany.test.disabled",)returned = await emit(event)assert returned is event@@ -271,8 +271,8 @@ class TestA6DispatchEmitFeatureFlag:monkeypatch.setattr(dispatch, "_broadcast_in_process", fake_broadcast)event = WorkflowEvent(- source="machinaos://services/test",- type="com.machinaos.test.enabled",+ source="opencompany://services/test",+ type="com.opencompany.test.enabled",)await dispatch.emit(event, wire_routing_key="custom_wire_key")@@ -309,7 +309,7 @@ class TestA7MachinaWorkflowSignalHandler:from services.temporal.workflow import MachinaWorkflowwf = MachinaWorkflow()- payload = {"id": "evt-1", "type": "com.machinaos.test.x"}+ payload = {"id": "evt-1", "type": "com.opencompany.test.x"}await wf.on_event(payload)await wf.on_event(payload) # duplicate@@ -322,7 +322,7 @@ class TestA7MachinaWorkflowSignalHandler:from services.temporal.workflow import MachinaWorkflowwf = MachinaWorkflow()- await wf.on_event({"type": "com.machinaos.test.x"}) # no 'id'+ await wf.on_event({"type": "com.opencompany.test.x"}) # no 'id'assert wf._matched_events == []def test_has_event_matching_empty_state(self):@@ -335,7 +335,7 @@ class TestA7MachinaWorkflowSignalHandler:from services.temporal.workflow import MachinaWorkflowwf = MachinaWorkflow()- wf._matched_events.append({"id": "e1", "type": "com.machinaos.whatsapp.message.received"})+ wf._matched_events.append({"id": "e1", "type": "com.opencompany.whatsapp.message.received"})# No-predicate: any queued event matches.assert wf._has_event_matching() is True@@ -357,8 +357,8 @@ class TestA7MachinaWorkflowSignalHandler:from services.temporal.workflow import MachinaWorkflowwf = MachinaWorkflow()- first = {"id": "e1", "type": "com.machinaos.x.received"}- second = {"id": "e2", "type": "com.machinaos.y.received"}+ first = {"id": "e1", "type": "com.opencompany.x.received"}+ second = {"id": "e2", "type": "com.opencompany.y.received"}wf._matched_events.extend([first, second])popped = wf._pop_matching_event()@@ -369,12 +369,12 @@ class TestA7MachinaWorkflowSignalHandler:from services.temporal.workflow import MachinaWorkflowwf = MachinaWorkflow()- first = {"id": "e1", "type": "com.machinaos.x.received"}- second = {"id": "e2", "type": "com.machinaos.y.received"}- third = {"id": "e3", "type": "com.machinaos.x.delivered"}+ first = {"id": "e1", "type": "com.opencompany.x.received"}+ second = {"id": "e2", "type": "com.opencompany.y.received"}+ third = {"id": "e3", "type": "com.opencompany.x.delivered"}wf._matched_events.extend([first, second, third])- popped = wf._pop_matching_event(lambda e: e["type"].startswith("com.machinaos.y"))+ popped = wf._pop_matching_event(lambda e: e["type"].startswith("com.opencompany.y"))assert popped is second# Order preserved for non-matching siblings.assert wf._matched_events == [first, third]@@ -383,7 +383,7 @@ class TestA7MachinaWorkflowSignalHandler:from services.temporal.workflow import MachinaWorkflowwf = MachinaWorkflow()- wf._matched_events.append({"id": "e1", "type": "com.machinaos.x.received"})+ wf._matched_events.append({"id": "e1", "type": "com.opencompany.x.received"})result = wf._pop_matching_event(lambda e: e["type"].endswith(".nope"))assert result is None# Queue untouched on miss.@@ -408,8 +408,8 @@ class TestA8EmitEventActivity:from services.temporal.activities import emit_event_activitypayload = WorkflowEvent(- source="machinaos://services/test",- type="com.machinaos.test.a8",+ source="opencompany://services/test",+ type="com.opencompany.test.a8",).model_dump(mode="json")# Activities decorated with @activity.defn are still callable@@ -417,7 +417,7 @@ class TestA8EmitEventActivity:result = await emit_event_activity(payload)assert result["delivered"] is True- assert result["event_type"] == "com.machinaos.test.a8"+ assert result["event_type"] == "com.opencompany.test.a8"assert len(captured) == 1@pytest.mark.asyncio@@ -456,7 +456,7 @@ class TestTriggerOutputPersistenceForTemplateResolution:"store_node_output_activity must be async — workflow.execute_activity " "awaits it.")- def test_machina_workflow_calls_persist_activity_for_pre_executed(self):+ def test_opencompany_workflow_calls_persist_activity_for_pre_executed(self):"""Source-introspection regression: MachinaWorkflow.run'spre-executed handler must call store_node_output_activity soParameterResolver can read the trigger output back."""diff --git a/server/tests/test_polling_trigger_workflow.py b/server/tests/test_polling_trigger_workflow.pyindex 142fc69f..3f3c79d4 100644--- a/server/tests/test_polling_trigger_workflow.py+++ b/server/tests/test_polling_trigger_workflow.py@@ -40,13 +40,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixture(autouse=True)diff --git a/server/tests/test_rebrand_compat.py b/server/tests/test_rebrand_compat.pynew file mode 100644index 00000000..ec3ba9a0--- /dev/null+++ b/server/tests/test_rebrand_compat.py@@ -0,0 +1,156 @@+"""Compatibility contracts for the MachinaOS -> OpenCompany rebrand."""++from __future__ import annotations++import importlib.util+from pathlib import Path+from types import SimpleNamespace++import pytest+++def _load_real_paths_module():+ path = Path(__file__).parents[1] / "core" / "paths.py"+ spec = importlib.util.spec_from_file_location("_opencompany_paths_test", path)+ module = importlib.util.module_from_spec(spec)+ assert spec.loader is not None+ spec.loader.exec_module(module)+ return module+++class TestStatePathCompatibility:+ def test_canonical_root_falls_back_to_existing_legacy_sibling(self, tmp_path):+ paths = _load_real_paths_module()+ canonical = tmp_path / ".opencompany"+ legacy = tmp_path / ".machina"+ legacy.mkdir()+ (legacy / "workflow.db").touch()++ assert paths._resolve_data_path(str(canonical)) == legacy.resolve()++ def test_empty_canonical_root_does_not_hide_legacy_state(self, tmp_path):+ paths = _load_real_paths_module()+ canonical = tmp_path / ".opencompany"+ legacy = tmp_path / ".machina"+ canonical.mkdir()+ legacy.mkdir()+ (legacy / "credentials.db").touch()++ assert paths._resolve_data_path(str(canonical)) == legacy.resolve()++ def test_existing_canonical_runtime_state_wins(self, tmp_path):+ paths = _load_real_paths_module()+ canonical = tmp_path / ".opencompany"+ legacy = tmp_path / ".machina"+ canonical.mkdir()+ legacy.mkdir()+ (canonical / "workflow.db").touch()+ (legacy / "workflow.db").touch()++ assert paths._resolve_data_path(str(canonical)) == canonical.resolve()++ def test_shipped_workflows_do_not_hide_legacy_runtime_state(self, tmp_path):+ paths = _load_real_paths_module()+ canonical = tmp_path / ".opencompany"+ legacy = tmp_path / ".machina"+ (canonical / "workflows").mkdir(parents=True)+ legacy.mkdir()+ (legacy / "workflow.db").touch()++ assert paths._resolve_data_path(+ str(canonical), "workflow.db"+ ) == (legacy / "workflow.db").resolve()+ monkeypatch_root = paths._REPO_ROOT+ try:+ paths._REPO_ROOT = tmp_path+ assert paths.example_workflows_dir() == canonical / "workflows"+ finally:+ paths._REPO_ROOT = monkeypatch_root++ def test_legacy_root_function_is_an_alias(self, monkeypatch, tmp_path):+ paths = _load_real_paths_module()+ monkeypatch.setattr(paths, "data_path", lambda *_args: tmp_path)++ assert paths.opencompany_root() == tmp_path+ assert paths.machina_root() == tmp_path++ def test_example_workflows_fall_back_to_legacy(self, monkeypatch, tmp_path):+ paths = _load_real_paths_module()+ monkeypatch.setattr(paths, "_REPO_ROOT", tmp_path)+ legacy = tmp_path / ".machina" / "workflows"+ legacy.mkdir(parents=True)++ assert paths.example_workflows_dir() == legacy++ canonical = tmp_path / ".opencompany" / "workflows"+ canonical.mkdir(parents=True)+ assert paths.example_workflows_dir() == canonical+++class TestSessionCookieCompatibility:+ def test_canonical_cookie_wins_and_legacy_is_accepted(self):+ from core.auth_cookies import get_session_token, session_cookie_names++ settings = SimpleNamespace(jwt_cookie_name="opencompany_token")+ assert session_cookie_names(settings) == ("opencompany_token", "machina_token")+ assert get_session_token({"machina_token": "legacy"}, settings) == "legacy"+ assert get_session_token(+ {"opencompany_token": "canonical", "machina_token": "legacy"},+ settings,+ ) == "canonical"+++class TestCloudEventsCompatibility:+ def test_canonical_namespace_and_legacy_matching(self):+ from services.events.envelope import WorkflowEvent, equivalent_event_types++ event = WorkflowEvent(+ source="opencompany://services/test",+ type="com.opencompany.test.updated",+ )+ assert event.dataschema == "opencompany://schemas/events/test.updated.json"+ assert event.matches_type("test.*")+ assert equivalent_event_types(event.type) == (+ "com.opencompany.test.updated",+ "com.machinaos.test.updated",+ )++ legacy = WorkflowEvent(+ source="machinaos://services/test",+ type="com.machinaos.test.updated",+ )+ assert legacy.matches_type("test.updated")+ assert legacy.dataschema == "opencompany://schemas/events/test.updated.json"++ @pytest.mark.asyncio+ async def test_temporal_visibility_query_includes_legacy_alias(self, monkeypatch):+ from core.container import container+ from services.events.dispatch import _signal_running_consumers+ from services.events.envelope import WorkflowEvent++ captured = {}++ class FakeClient:+ def list_workflows(self, *, query):+ captured["query"] = query++ async def _empty():+ if False:+ yield None++ return _empty()++ monkeypatch.setattr(+ container,+ "temporal_client",+ lambda: SimpleNamespace(client=FakeClient()),+ )+ await _signal_running_consumers(+ WorkflowEvent(+ source="opencompany://services/test",+ type="com.opencompany.test.updated",+ )+ )++ assert "EventType='com.opencompany.test.updated'" in captured["query"]+ assert "EventType='com.machinaos.test.updated'" in captured["query"]diff --git a/server/tests/test_retry_policies.py b/server/tests/test_retry_policies.pyindex ad1708ba..df20791e 100644--- a/server/tests/test_retry_policies.py+++ b/server/tests/test_retry_policies.py@@ -32,13 +32,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcpclass TestRetryPolicyConstants:diff --git a/server/tests/test_service_factories.py b/server/tests/test_service_factories.pyindex 887a0475..f399a537 100644--- a/server/tests/test_service_factories.py+++ b/server/tests/test_service_factories.py@@ -26,13 +26,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixturediff --git a/server/tests/test_shutdown_hooks.py b/server/tests/test_shutdown_hooks.pyindex e5d536dc..3be76360 100644--- a/server/tests/test_shutdown_hooks.py+++ b/server/tests/test_shutdown_hooks.py@@ -30,13 +30,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixturediff --git a/server/tests/test_social_provider_registry.py b/server/tests/test_social_provider_registry.pyindex 5c76926a..d4954c39 100644--- a/server/tests/test_social_provider_registry.py+++ b/server/tests/test_social_provider_registry.py@@ -28,13 +28,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixturediff --git a/server/tests/test_status_broadcasts.py b/server/tests/test_status_broadcasts.pyindex 1d839859..2ab5b3f7 100644--- a/server/tests/test_status_broadcasts.py+++ b/server/tests/test_status_broadcasts.py@@ -233,7 +233,7 @@ class TestEventWaiterDispatchAcceptsEnvelope:from services.events.envelope import WorkflowEventevent = WorkflowEvent(- source="machinaos://test",+ source="opencompany://test",type="test.something.happened",subject="test-subject",data={"k": "v"},diff --git a/server/tests/test_task_trigger_canary_producer.py b/server/tests/test_task_trigger_canary_producer.pyindex d655a98f..e6246412 100644--- a/server/tests/test_task_trigger_canary_producer.py+++ b/server/tests/test_task_trigger_canary_producer.py@@ -25,13 +25,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp_SEND_CUSTOM_EVENT_PATTERN = re.compile(r"send_custom_event\s*\(")@@ -92,7 +92,7 @@ class TestTaskTriggerProducerCanaryEmit:# discrimination lives in data.status.assert len(emit_calls) == 1envelope = emit_calls[0]["event"]- assert envelope.type == "com.machinaos.agent.task.completed"+ assert envelope.type == "com.opencompany.agent.task.completed"assert envelope.subject == "task-1"assert envelope.data["status"] == "completed"assert envelope.data["result"] == "done"@@ -125,7 +125,7 @@ class TestTaskTriggerProducerCanaryEmit:assert len(emit_calls) == 1envelope = emit_calls[0]- assert envelope.type == "com.machinaos.agent.task.completed"+ assert envelope.type == "com.opencompany.agent.task.completed"assert envelope.subject == "task-2"assert envelope.data["status"] == "error"assert envelope.data["error"] == "timeout"diff --git a/server/tests/test_telegram_trigger_canary_producer.py b/server/tests/test_telegram_trigger_canary_producer.pyindex 548fee67..4a97fce5 100644--- a/server/tests/test_telegram_trigger_canary_producer.py+++ b/server/tests/test_telegram_trigger_canary_producer.py@@ -23,13 +23,13 @@ from unittest.mock import MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp_EVENT_WAITER_DISPATCH_PATTERN = re.compile(r"event_waiter\.dispatch\s*\(")@@ -89,7 +89,7 @@ class TestTelegramProducerCanaryEmit:assert len(emit_calls) == 1envelope = emit_calls[0]["event"]- assert envelope.type == "com.machinaos.telegram.message.received"+ assert envelope.type == "com.opencompany.telegram.message.received"# subject is the chat_id cast to str — CloudEvents spec requires string.assert envelope.subject == "12345"assert emit_calls[0]["wire_routing_key"] == "telegram_message_received"diff --git a/server/tests/test_trigger_listener_workflow.py b/server/tests/test_trigger_listener_workflow.pyindex b00a4ce6..e88bba7f 100644--- a/server/tests/test_trigger_listener_workflow.py+++ b/server/tests/test_trigger_listener_workflow.py@@ -32,16 +32,16 @@ from unittest.mock import MagicMockimport pytest-# Stub the `machina` package (lives at project root, outside server/) so+# Stub the root `cli` package (lives at project root, outside server/) so# services.temporal.__init__ → _runtime.py → from cli.tcp import# probe_tcp_port doesn't crash collection.-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp@pytest.fixture(autouse=True)@@ -75,7 +75,7 @@ class TestSignalHandlerDedup:from services.temporal.trigger_listener_workflow import TriggerListenerWorkflowwf = TriggerListenerWorkflow()- payload = {"id": "evt-1", "type": "com.machinaos.webhook.received", "data": {}}+ payload = {"id": "evt-1", "type": "com.opencompany.webhook.received", "data": {}}await wf.on_event(payload)await wf.on_event(payload) # duplicate@@ -88,7 +88,7 @@ class TestSignalHandlerDedup:from services.temporal.trigger_listener_workflow import TriggerListenerWorkflowwf = TriggerListenerWorkflow()- await wf.on_event({"type": "com.machinaos.webhook.received"}) # no 'id'+ await wf.on_event({"type": "com.opencompany.webhook.received"}) # no 'id'assert wf._matched_events == []assert wf._seen_event_ids == set()@@ -299,14 +299,14 @@ class TestSpawnChildRun:wf = tlw.TriggerListenerWorkflow()event = {"id": "evt-42",- "type": "com.machinaos.webhook.received",+ "type": "com.opencompany.webhook.received","data": {"path": "/hook", "method": "POST"},}listener_data = {"workflow_id": "wf-abc","trigger_node_id": "wh-1","node_type": "webhookTrigger",- "event_type": "com.machinaos.webhook.received",+ "event_type": "com.opencompany.webhook.received","filter_params": {},"nodes": [_node("wh-1", "webhookTrigger"), _node("agent-1", "aiAgent")],"edges": [_edge("wh-1", "agent-1")],diff --git a/server/tests/test_whatsapp_trigger_canary_producer.py b/server/tests/test_whatsapp_trigger_canary_producer.pyindex e2c3f7c9..f29e3980 100644--- a/server/tests/test_whatsapp_trigger_canary_producer.py+++ b/server/tests/test_whatsapp_trigger_canary_producer.py@@ -25,13 +25,13 @@ from unittest.mock import AsyncMock, MagicMockimport pytest-if "machina" not in sys.modules:- _machina = types.ModuleType("cli")- _machina.__path__ = []- sys.modules["cli"] = _machina- _machina_tcp = types.ModuleType("cli.tcp")- _machina_tcp.probe_tcp_port = MagicMock(return_value=False)- sys.modules["cli.tcp"] = _machina_tcp+if "cli" not in sys.modules:+ _cli_stub = types.ModuleType("cli")+ _cli_stub.__path__ = []+ sys.modules["cli"] = _cli_stub+ _opencompany_tcp = types.ModuleType("cli.tcp")+ _opencompany_tcp.probe_tcp_port = MagicMock(return_value=False)+ sys.modules["cli.tcp"] = _opencompany_tcp_EVENTS_EMIT_PATTERN = re.compile(r"\bemit\s*\(")@@ -103,7 +103,7 @@ class TestWhatsappProducerDualEmit:# And the canary path fires exactly once.assert len(emit_calls) == 1envelope = emit_calls[0]["event"]- assert envelope.type == "com.machinaos.whatsapp.message.received"+ assert envelope.type == "com.opencompany.whatsapp.message.received"assert envelope.subject == "[email protected]"assert emit_calls[0]["wire_routing_key"] == "whatsapp_message_received"diff --git a/uninstall.sh b/uninstall.shindex 812fd5a3..be9bf67c 100644--- a/uninstall.sh+++ b/uninstall.sh@@ -1,19 +1,25 @@#!/usr/bin/env bash-# MachinaOS Uninstaller+# OpenCompany Uninstaller## Usage: curl -fsSL https://raw.githubusercontent.com/zeenie-ai/MachinaOS/main/uninstall.sh | bashset -e-echo "Uninstalling MachinaOS..."+echo "Uninstalling OpenCompany..."echo ""-# Uninstall machinaos npm package+# Uninstall the current package. Also remove the pre-rebrand package when it+# is still installed so upgrades do not leave two global CLI shims behind.+if npm list -g opencompany &> /dev/null; then+ npm uninstall -g opencompany+ echo "opencompany removed"+else+ echo "opencompany not installed"+fi+if npm list -g machinaos &> /dev/null; thennpm uninstall -g machinaos- echo "machinaos removed"-else- echo "machinaos not installed"+ echo "legacy machinaos package removed"fiecho ""