Commit Graph
16413 Commits
Author SHA1 Message Date
Neil 16ffbaaf37 fix(team): revoke Undo after send re-invites, re-invite cancels a pending revoke; design P1/P2 polish 2026-11-09 07:33:29 -08:00
Neil 4e94e36ef0 fix(billing): sandbox-hours wording, merged reset/renew line, empty send label 2026-11-09 07:33:24 -08:00
Neil f3c04ed042 fix(team): W10 round 5 + glossary: focus hand-offs, aria-disabled controls, plurals, payment-failed naming, sandbox hours, overage controls, revoke undo, switcher radios, SSO in the Enterprise card 2026-11-09 07:33:19 -08:00
Neil f3201c5a9c feat(team): account-menu team switcher, create-team from the menu, Enterprise SSO row, SettingsGroupHeader 2026-11-09 07:33:07 -08:00
Neil 2d01a3d1b2 feat(w3): remote desktop polish — glossary copy, InlineError toasts with one next action, fixtures (#83) 2026-11-09 07:27:19 -08:00
Neil 051a27431e fix(ui): InlineError wraps its action under the text in narrow boxes (#81) 2026-11-09 07:26:22 -08:00
Neil 49007860aa chore(cloud-secrets): resync en.json after rebase; build-sheet fixture passes the new clock 2026-11-09 07:23:39 -08:00
Neil 999978df5c fix(cloud-secrets): Add an agent when Orca Cloud is picked, glossary copy, i18n plurals
The composer offers Add an agent the moment Orca Cloud is chosen for the first time, so a warm
sandbox that starts in seconds cannot outrun the build-sheet step. Copy follows the Orca Cloud
glossary (sandbox, agent sign-ins, Repository, Ask an owner or admin, nothing-lost errors).
Counts use i18next plural forms.
2026-11-09 07:21:06 -08:00
Neil 94b918ff90 fix(cloud-secrets): W10 round-4 fixes and packaged-build control-plane URL
Secrets IPC reads the baked-in control-plane URL like the sandbox client (packaged integration
builds have no shell env). Effective view gives the value hint its own column. The build step keeps
a row for every outcome (saved, signing in, skipped), moves focus to it and announces it; a
multi-line paste keeps focus; failed deletes keep focus; Settings' Subscription tab ends in Got it.
2026-11-09 07:21:05 -08:00
Neil 7b5e8d760d refactor(cloud-secrets): adopt shared Skeleton, InlineError and SettingsGroupHeader 2026-11-09 07:21:05 -08:00
Neil 168b4b81e9 fix(cloud-secrets): paste row ids without reading a ref during render 2026-11-09 07:21:05 -08:00
Neil 6139078245 fix(cloud-secrets): W10 round-2 review (security copy, paste-then-rows, multi-line values)
Exact security copy for the pane, value fields, subscription sign-in, desktop keys and the plans
page. .env paste becomes rows at once (names visible, values masked) and the raw text is dropped.
Values keep pasted newlines. Agent setup keeps a draft per tab with manual activation, the same
four tabs in the build sheet and dialog, a steady dialog height, a team status banner and a
Got it / Sign in when ready primary. Add secret leads the list; Delete is labelled and Keep takes
focus; saves are announced through one status region; precedence reads as sentences.
2026-11-09 07:21:04 -08:00
Neil 8b7d25d4f9 fix(cloud-secrets): the queued sign-in row says Don't sign in, not a second Cancel 2026-11-09 07:21:04 -08:00
Neil 698f7f46d0 fix(cloud-secrets): round-2 review fixes
Effective names no longer truncate; refused subscription tokens offer Sign in instead inline under
the field; editor errors sit under their field; ready row names only the covered agent; queued
sign-in can be cancelled; paste preview lists lines needing a fix first; Escape from portaled menus
no longer closes the form; model-value rule limited to the agent model names.
2026-11-09 07:21:03 -08:00
Neil a85afd7062 fix(cloud-secrets): round-1 review fixes
Build step is one compact row (sign in when ready, use a key, later) that collapses to a single
line once saved, signing in, or already covered; the settings dialog adds a Subscription tab.
Gateway preset takes Claude and Codex models (free-tier hint). Secrets list keeps columns aligned
for every role, sorts names, labels model/base-URL names as agent settings, returns focus after
forms and deletes, and ignores writes that land after a repo switch. .env paste survives a stray
quote; client rules mirror the server's ASCII-only model and base URL values.
2026-11-09 07:21:02 -08:00
Neil 3f5cad4d40 feat(cloud-secrets): Cloud secrets settings and the Add an agent step before the first Orca Cloud workspace
Settings > Orca account gets Cloud secrets (Personal / Shared / Repo / Effective): names, kind,
hints and who changed what; add, replace, delete, .env paste with per-line preview over the batch
route; precedence explainer; read-only Shared for members. The first Orca Cloud build shows
'Add an agent' beside provisioning (subscription sign-in in the VM, API key, AI Gateway, custom
provider, share with team) or a one-line confirmation when desktop keys or the team already cover it.
2026-11-09 07:20:54 -08:00
Neil bb07c4bdd7 feat(cloud-secrets): main-process client, IPC and preload bridge for Orca Cloud secrets
Shares the control-plane call (token, base URL, redirect guard, zod) between the sandbox and
secrets clients. Values go renderer -> control plane only; failures cross IPC as codes.
Adds the .env paste parser and the client-side mirror of the server's name/value rules.
2026-11-09 07:20:18 -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