Carried over Grok's in-progress rebrand of user-visible copy: CONTRIBUTING,
SECURITY, all content/thoughts/* essays, whitepaper, IP assignment memo
(also correcting fleetwave GmbH → fleetcrown GmbH per the earlier user
correction), agent-cli-registry-spec, and three src/ comment/identifier
spots (control route, intent panel doc, refresh-event handler name). No
behavior changes — purely copy + comments. Repository directory remains
"cockpit" for git-history continuity per the legal memo's clarification.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add pending_commands schema + queries: command queue table that the local
daemon polls when the cloud control plane is not co-located with zellij
- Add src/lib/runtime.ts: isRuntimeAvailable() reads RUNTIME_AVAILABLE env var
(set to "true" locally, absent on Vercel) — single source of truth for the
local/remote split
- Add src/lib/executor.ts: executeInject() routes to injectIntoTab() (direct)
or enqueueInjectCommand() (DB queue) based on runtime availability; callers
express intent once, the executor picks the mechanism
- Refactor /api/inject: use executeInject(); all DB side-effects (prompt history,
orchestration events, project state) run in both modes; file-system writes
(stateFile.prompt, sentinel, closing) guarded behind isRuntimeAvailable()
- Guard /api/control/focus-tab, /api/weather, /api/github, /api/calendar,
/api/system with early returns when runtime is unavailable — clean empty
responses instead of timeout errors on Vercel
- Add RUNTIME_AVAILABLE=true to .env.local; push pending_commands table to DB
- Add thoughts articles: portable creation cockpit vision + dispatch intelligence
problem (blind queue drain vs contextual AI triage)
- Control panel: agent switcher popover on runtime chip, cross-session
focus-tab, sticky left panel, Projects↔Control navigation bridge,
ClaudeSession uses runtimeState.tabName instead of entity name
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>