Commit Graph
16408 Commits
Author SHA1 Message Date
Neil 5a8ca4fc88 test(cloud): links are dropped, not fatal 2026-11-09 07:20:07 -08:00
Neil 30c5b84e64 fix(cloud): FE review round 2 — PATCH matches server (no nulls, 5–120 min), webhook URL from edits, team-aware token cache, approval busy guard, polls keep loaded pages, inert aria-disabled refresh, CSS.escape, lenient link parsing, Intl list formatting 2026-11-09 07:20:07 -08:00
Neil 9db4199107 fix(cloud): W10 round 5 — sticky footer flush, Open workspace via local sandbox lookup, focus after disconnect/create, aria-disabled pending buttons, rotate blocked while dirty, friendly time zones, quieter failure reasons 2026-11-09 07:20:06 -08:00
Neil fc5caf533f fix(cloud): design review round 2 — Running… state, scope badges on approval, plain-word scopes, curl copy counts, revoke context, one time-zone vocabulary 2026-11-09 07:20:06 -08:00
Neil 5697d998bb fix(cloud): fixed action column so run history columns align 2026-11-09 07:20:06 -08:00
Neil 529f1d2cfc test(cloud): pin run-history clock in fixtures 2026-11-09 07:20:06 -08:00
Neil cdd436959e feat(cloud): show connected apps' redirect hosts; shared ScopeSummary 2026-11-09 07:20:06 -08:00
Neil aa7a2586d7 refactor(cloud): adopt shared Skeleton, InlineError and formatElapsedTime; regenerate en catalog after rebase 2026-11-09 07:20:05 -08:00
Neil 737f1e6d8b fix(cloud): W10 round-2 — Orca API keys naming + team/sandbox copy, scope matrix, scope summary badges, routine row/menu, run history grid + polling + live elapsed, editor sticky footer + discard confirm, guarded rotate, focus after revoke/delete, keep data on refresh 2026-11-09 07:19:58 -08:00
Neil 6c7796ae5f fix(cloud): review round 1 — one-time secrets can't be lost, design tokens, minimal routine PATCH, stale-response guards, a11y 2026-11-09 07:19:58 -08:00
Neil 2cee7bc17e feat(cloud): connected MCP apps on the API keys page; split routine row 2026-11-09 07:19:58 -08:00
Neil 2e76ad5592 feat(cloud): Orca Cloud API keys + routines settings (private builds)
Main-process /v1 client (zod-validated, token never leaves main, errors mapped
to stable codes), IPC + preload bridge, Settings → API Keys (create with scope
presets, one-time secret, revoke, MCP approve-an-app code, docs/MCP links,
vmCliEnabled org toggle, admin activity log) and Settings → Routines (list,
editor for schedule/GitHub/webhook triggers, run now, history, delete), gated
on a configured Orca Cloud control plane. Component fixtures + unit tests.
2026-11-09 07:19:57 -08:00
Neil e141a74ead feat(cloud): one idle-sleep constant (ORCA_CLOUD_IDLE_SLEEP_MINUTES = 15) for control plane, desktop scheduler, billing plans and toasts; GET /v1/config serves it (#80)
Plans said 15 minutes, the desktop slept at 20. The shared wire module now owns the value; the
control plane serves it at GET /v1/config (public product constants), the desktop driver's idleStopMs,
billing's Team plan idleSleepMinutes and the billing fixtures read the constant, and the idle-sleep
toast already prints the scheduler's value from the event.
2026-11-09 07:15:51 -08:00
Neil f337f81eb2 fix(w3): glossary pass for ports (sandbox asleep · Wake, 'in use on this computer') (#79) 2026-11-09 07:15:23 -08:00
Neil 1634c61b8b Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-wakefix
# Conflicts:
#	src/main/hosted-sandbox/hosted-session-registry.ts
2026-11-09 07:10:51 -08:00
Neil b0041f6de5 fix(cloud): held in-flight wake keeps the caller fence (re-pairing wake), interrupted-turn continue spent only on launch, offer snapshot timer cleared 2026-11-09 07:09:53 -08:00
Neil 32d9782649 feat(orca-cloud): session lifecycle feedback (restart now, idle sleep, cancel cleanup, sidebar state, queued first prompt) (#66) 2026-11-09 07:05:25 -08:00
Neil 5ba9166473 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-wakefix
# Conflicts:
#	src/main/hosted-sandbox/hosted-workspace-runtime.ts
#	src/main/runtime/workspaces/sleep/workspace-sleep-runtime.ts
2026-11-09 07:03:54 -08:00
Neil 165d6813fe Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-transfer
# Conflicts:
#	src/main/hosted-sandbox/hosted-sandbox-install.ts
#	src/preload/api-types.ts
#	src/renderer/src/components/sidebar/workspace-actions/context-menu/WorktreeContextMenuView.tsx
2026-11-09 07:02:59 -08:00
Neil 60223bef63 fix(cloud): review fixes for wake readiness, in-flight wake hold outside call slots, drain-scoped agent auto-resume, gated interrupted-turn continue 2026-11-09 07:02:34 -08:00
Neil b0b593ed45 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-transfer
# Conflicts:
#	cloud/apps/sandbox-control/src/index.ts
#	cloud/apps/sandbox-control/src/lifecycle.ts
#	cloud/apps/sandbox-control/src/pool.ts
#	cloud/apps/sandbox-control/src/sandbox-vm-commands.ts
#	cloud/apps/sandbox-control/test/fake-vercel.ts
#	cloud/apps/sandbox-control/test/lifecycle-flow.test.ts
#	src/main/hosted-sandbox/hosted-sandbox-control-plane-client.ts
#	src/preload/api-types.ts
#	src/renderer/src/components/sidebar/workspace-actions/context-menu/WorktreeContextMenuView.tsx
#	src/shared/hosted-sandbox/hosted-sandbox-wire.ts
2026-11-09 07:01:38 -08:00
Neil 6053ec1ac4 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration 2026-11-09 07:01:25 -08:00
Neil 22d9815354 fix(cloud-integration): lint green after #68 (accounts-ux)
Checkout polling uses installWindowVisibilityInterval (recurring-timer ratchet); round skeletons use
Skeleton shape='circle'; SAFETY-annotate the focusVisible FocusOptions cast.
2026-11-09 07:01:22 -08:00
Neil cf7d27ec93 Merge pull request #74 from nwparker/cloud/w2-ui
feat(cloud): workspace lifecycle UI, asleep reading cache and wake-on-message queue
2026-11-09 06:59:40 -08:00
Neil e8337ae209 feat(ui): InlineError action slot, compact detail hierarchy (W10) (#73)
* feat(ui): InlineError action slot; compact detail steps down a size

* docs(ui): InlineError action takes an outline xs button
2026-11-09 06:59:07 -08:00
Neil 94d96d15e5 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration 2026-11-09 06:58:30 -08:00
Neil cfe9916a32 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration
# Conflicts:
#	src/renderer/src/components/right-sidebar/runtime-port-forward-status.tsx
2026-11-09 06:57:08 -08:00
Neil 2cca473b9a Merge cloud/w2-cache (queue fixes) and cloud/integration into cloud/w2-ui; final nits 2026-11-09 06:56:40 -08:00
Neil 8210017cf4 fix(billing): clamp hours at 100% with an over-by note 2026-11-09 06:56:00 -08:00
Neil 301ff4c0c7 chore(i18n): sync billing/team catalog after rebase 2026-11-09 06:55:59 -08:00
Neil 325f60f480 fix(team): shared primitives (Skeleton, InlineError, SegmentedControl), composer wrap, seat sync detail, i18n 2026-11-09 06:55:57 -08:00
Neil 8b070704e8 fix(team): review round 2 polish (design P2s, FE P2s) 2026-11-09 06:55:56 -08:00
Neil 45caa0c93a fix(team): review round 1 (design + FE): copy, focus, live regions, roster/overlay races, summary generations, checkout watch + single live session 2026-11-09 06:55:56 -08:00
Neil fec1b8233c fix(team): lint findings (checkout reset on close, cap input, menu tone, dialog spacing) 2026-11-09 06:55:56 -08:00
Neil 57160280fd wip(team): tests, account menu org line, i18n sync, dev url handoff 2026-11-09 06:55:56 -08:00
Neil dde40cbdeb wip(team): W10 round-1 fixes, return page, docs 2026-11-09 06:55:55 -08:00
Neil 90adbc6601 wip(team): team page, checkout flow, dev billing token 2026-11-09 06:55:54 -08:00
Neil 5a38c64bd7 fix(cloud): transfer extraction skips .git paths, keeps exec bits, steps over dir data, byte-accurate pax; pack drops a stale result 2026-11-09 06:55:39 -08:00
Neil 408f0290df fix(cloud-integration): lint green again after #50, W3 port-forward and #55 merges
Exhaustive switches instead of default arms; merged duplicate type imports; Badge 'tag' and Button
'statusAction' variants replace className restyles; SmartWorkspaceSourceTabs list back to upstream's
classes (TabsList owns spacing); dropped five locale keys no source references; installCloudSsh moves
into registerEphemeralVmRuntimeHandlers so ephemeral-vm.ts stays under 300 lines.
2026-11-09 06:55:27 -08:00
Neil c6f17a7257 fix(cloud): share links polish (W10 round 4) (#70)
* fix(cloud): share links W10 round 4 (public/team notes, named revoke confirm with inline failure, Copied state, URL tail, Public badge, loading skeleton, compact errors with sign-in, expiry tooltip)

* fix(cloud): share links gates (compact InlineError density, timer cleanup)

* fix(cloud): share public note uses the status-warning tokens
2026-11-09 06:54:43 -08:00
Neil e7c1831e60 Merge pull request #58 from nwparker/cloud/w4-multiplayer
feat(cloud): W4 team collaboration on cloud workspaces
2026-11-09 06:53:38 -08:00
Neil 777f078c76 feat(cloud): W4 team collaboration on cloud workspaces
## W4: team collaboration on Orca Cloud workspaces

### Control plane (`cloud/apps/sandbox-control`)
- **Registry** (`0024_workspace_registry.sql`, applied on dev D1): owner (reassignable), `created_by`, branch, `visibility` (private default / team), section, last activity, token spend. Reuses 0020's `name`/`archived_at`.
- **Routes under `/v1/team/*`** (W5 owns `/v1/workspaces`): list with Mine/Team/All, By, In, Archived filters; PATCH (rename, share or make private, section, archive, reassign owner); presence heartbeats; wake and lease for teammates; links resolve; org prompts/PR instructions (compare-and-set).
- **Security fix:** `/v1/sandboxes/:id` used to be account-scoped, so any org member could resume a teammate's sandbox and receive its orcad pairing code. It is now owner-only; admins can still suspend and destroy.
- **Per-member, per-device E2EE grants:**
  - The VM mints a single-device orcad offer and seals it to the requesting device's X25519 key.
  - The control plane stores only the orcad device id.
  - Revocation runs `orca pair --revoke`, which closes the device's live sockets, plus an on-disk registry removal.
  - When the VM is asleep, the revoke is queued and applied at boot before orcad starts.
  - Triggers: explicit revoke, making a workspace private, archive, reassign, member removal (internal route), and phone device-session revoke (W8).
  - VMs from older images get the entry points installed on demand.
- **Git as the sender:** a member's own GitHub user-to-server token (App OAuth, envelope-encrypted) is swapped in at egress only for the workspace repo. The VM gets per-member git configs and `orca-git-as`.
- **Cost:** metered compute × billing rate, plus optional token spend.

### orcad (generic)
- New owner-only RPC `pairing.revokeDevice` and `orca pair --revoke <device-id>`: revokes a device and closes its open connections immediately.

### Desktop
- A "Cloud workspaces" section on Home: Team/Mine, By, In and Archived filters; sections; live presence; cost; last activity. Single-click Open on a teammate workspace pairs this device through an E2EE grant. Also a row menu (share/private, move to section, reassign, archive) and copy link.
- Deep links `orca://cloud/w/<id>[/c/<chat>]` (open-url, argv, second instance, sidecar handoff) and the `cloudWorkspace.copyLink` keybinding.
- Messages to agents in shared workspaces carry a sender envelope.
- Uses the W10 shared primitives.
- Two rounds of adversarial design and frontend review.

### Evidence
Real Vercel VMs; see the W4 report. Numbers:
- grant issued in 0.55 s, paired in 1.35 s
- revoke closes the live desktop socket ~30 ms after the PATCH returns
- two members' pushes land on GitHub with their own author identities (shared dev Worker, preview alias w4); a push to another repo gets 403
2026-11-09 06:53:24 -08:00
Neil 781fa2a54f fix(w3): W10 round-4 ports polish (one header size, quiet actions, nowrap remap note, dependent settings, aria-describedby, plural connections, announcement template) (#69) 2026-11-09 06:52:59 -08:00
Neil ce6a806138 Merge commit '3a4a69cb3a5' into cloud/w2-ui 2026-11-09 06:51:23 -08:00
Neil 8a657067bd fix(cloud): SSH/transfer security review: owner-only SSH setup + DELETE, managed authorized_keys block, stable bridge token via subprotocol, boot-scoped pids + required healthz, owner re-check on ssh-wake, safe tar/gzip extraction, transcript-only chats, VM cleanup in finally, transfer sweep, unique aliases, shell-safe ProxyCommand launcher (Windows/AppImage), login-user fix-up 2026-11-09 06:50:38 -08:00
Neil 3a4a69cb3a fix(cloud): import OfflineCacheLimits after the cache split 2026-11-09 06:50:22 -08:00
Neil eea4d2184e fix(cloud): wake progress reports ready only once the woken server answers terminal requests 2026-11-09 06:49:54 -08:00
Neil 338b05ffe9 fix(cloud): round-3 review: focus return, half-filled waking dot, overlay hint card, sandbox glossary, contrast-safe tokens, a11y announcements 2026-11-09 06:49:31 -08:00
Neil b8754442ed fix(ui): segmented control focus draws one ring (W10) (#65)
* fix(ui): focused segment draws one flush ring, not ring + chip edge

* fix(ui): segment gap clears the flush focus outline
2026-11-09 06:48:58 -08:00
Neil 2aac889a78 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration
# Conflicts:
#	src/renderer/src/components/sidebar/workspace-actions/context-menu/WorktreeContextMenuView.tsx
2026-11-09 06:45:27 -08:00