Commit Graph
21330 Commits
Author SHA1 Message Date
Neil 94aaaf4ccf Merge branch 'cloud/integration' of https://github.com/nwparker/orca-private into cloud/agents-a5 2026-11-10 06:57:23 -08:00
Neil 0474e8f300 Merge pull request #269 from nwparker/cloud/w6-d13-fail-closed
fix(cloud): D13 fails closed when a workspace's sharing is unknown
2026-11-10 06:54:30 -08:00
Neil 8dbebeabb2 fix(i18n): keep integration's removed catalog keys out of the A5 merge 2026-11-10 06:54:25 -08:00
Neil b5ab497b25 fix(cloud): fixture literal carries withoutPersonal 2026-11-10 06:51:00 -08:00
Neil b574953493 Merge remote-tracking branch 'private/cloud/integration' into cloud/agents-a5
# Conflicts:
#	src/renderer/src/i18n/locales/en.json
2026-11-10 06:50:12 -08:00
Neil 576ea3ae4f fix(cloud): D13 fails closed when a workspace's sharing is unknown
Server: only a row known to be private counts as unshared. Desktop panel: a failed sharing read leaves out the caller's Personal values and the Personal save scope, as for a teammate.
2026-11-10 06:49:40 -08:00
Neil adb82617d2 Merge pull request #267 from nwparker/cloud/w2-squad-delete
feat(cloud): cloud delete dialog (DS-07); Sleep/Delete in the team list and a Running filter (DS-12)
2026-11-10 06:48:18 -08:00
Neil 0df70ebdf7 feat(agent-api-keys): save Agent API keys to the Orca account and import from this Mac (A5/D12)
While signed in to Orca with Orca Cloud, saving an Agent API key also writes it to the
personal Cloud secret of the same variable through /v1/secrets. The sealed vault stays the
cache and the source for non-Cloud launches; host scope stays local. Only every-host keys the
egress proxy swaps are written. A main-side ledger (names only, per account) tracks what this
computer wrote, and only those copies can be removed from the account, after confirmation.

Import from this Mac: main scans OpenCode's auth.json, ~/.gemini/.env and the login shell env;
the renderer sees names, sources and last fours only, and main re-reads values on import.
OAuth sign-ins are listed, never read.
2026-11-10 06:46:50 -08:00
Neil 7612dfb071 Merge pull request #268 from nwparker/cloud/w6-ds-settings
feat(settings): Orca Cloud settings group + cloud secrets a11y (DS-20, DS-21, DS-37)
2026-11-10 06:46:43 -08:00
Neil 8089315803 chore(l10n): sync protected copy keys 2026-11-10 06:44:23 -08:00
Neil 3999711fc7 Merge branch 'cloud/integration' of https://github.com/nwparker/orca-private into cloud/w2-squad-delete 2026-11-10 06:40:09 -08:00
Neil 2d7b8cc51e fix(cloud): delete dialog detail card (state, repo · branch, uncommitted when running), focus Cancel first; limit error action shows List icon (DS-07/DS-12 review) 2026-11-10 06:40:04 -08:00
Neil d5ea304eaf Merge pull request #262 from nwparker/cloud/w6-spec-ui
feat(cloud): agent-accounts W6 UI: panel Cloud sections 2–3, S2 build-sheet Secrets, S4-b secret request card
2026-11-10 06:38:12 -08:00
Neil 1776145cf4 fix(cloud-secrets): inset the scope description to line up with the rows 2026-11-10 06:34:58 -08:00
Neil 5ec9ffab02 feat(cloud): Sleep and Delete in the team list row menu (control plane for workspaces this desktop does not run, confirm before delete), Running filter on Home; limit errors open Mine + Running (DS-12) 2026-11-10 06:32:39 -08:00
Neil bccca5434f Merge pull request #266 from nwparker/cloud/np4-trial-e2e
fix(billing): e2e customer lookup after the trial path (#248)
2026-11-10 06:31:53 -08:00
Neil 9ba93a7fc1 Merge remote-tracking branch 'private/cloud/integration' into cloud/w6-ds-settings
# Conflicts:
#	src/renderer/src/i18n/locales/en.json
2026-11-10 06:31:07 -08:00
Neil 48efa11c33 chore(i18n): drop unreferenced secretRequest.help 2026-11-10 06:30:39 -08:00
Neil 264ac40bcb fix(billing): e2e keeps each org's Stripe email (customer lookup), trial check uses it 2026-11-10 06:30:39 -08:00
Neil 4023b34ff3 Merge pull request #265 from nwparker/np4/setup-trial-port
NP-4: setup sessions grant the one-time trial (TrialPort → trial.ts)
2026-11-10 06:30:22 -08:00
Neil 5a877a01d7 feat(billing): setup sessions use the one-time trial (N11) through the TrialPort
A team that setup creates or picks gets the trial when it binds, with the email,
GitHub user and ip abuse keys. Teams that can't get one go through T3 and
Checkout.
2026-11-10 06:27:45 -08:00
Neil 7c5c00331f Merge pull request #263 from nwparker/fix/billing-usage-alert-refresh
fix(billing): timely usage alerts — re-read on cloud create/wake and every 30 min while running
2026-11-10 06:26:22 -08:00
Neil 904f2c6e39 feat(cloud): delete dialog for an Orca Cloud workspace: sandbox + disk copy, Archive instead, no Force step when asleep (DS-07) 2026-11-10 06:25:19 -08:00
Neil e9ea1cf04f Merge pull request #261 from nwparker/np4/github-row-fixture
NP-4: GitHub setup row component + D1–D3 fixtures
2026-11-10 06:24:49 -08:00
Neil 3ce99fa03b fix(cloud): design-squad sign-off fixes: no section numbers, pre-save helper copy 2026-11-10 06:23:27 -08:00
Neil 23d4f566a7 Merge pull request #248 from nwparker/cloud/np4-trial
feat(billing): one-time Orca Cloud trial (N11) + trial surfaces (T1)
2026-11-10 06:22:38 -08:00
Neil 3d111a3908 test(billing): pass the locale to accountMenuUsageLines (usage-alerts signature) 2026-11-10 06:20:22 -08:00
Neil 51ace4d05f feat(billing): one-time Orca Cloud trial (N11) and its desktop surfaces (T1)
Billing Worker:
- trials + trial_claims (migration 0005): 2 sandbox hours per new team, no card, no Stripe.
- POST /v1/billing/trial grants it (idempotent, any member); grantTrial/trialOffer exported for
  the setup session. offers.trial on GET entitlements only when this caller could still claim it.
- Abuse limits: once per team, Orca user, normalized verified email, GitHub user (token claim)
  and GitHub owner (POST /v1/internal/trial/github from the binding; a reused identity revokes),
  disposable-domain blocklist, 3 grants per IP per day. Keys stored as SHA-256 hashes.
- Entitlement trial {includedSeconds, usedSeconds, remainingSeconds, exhausted}; metered from
  usage_events, concurrency 1, never overage; trial_used_up (suspendRunning) / trial_unavailable.
- Any subscription ends the trial; unused trial hours lapse.
- e2e: trial path (grant, no Stripe customer, concurrency, metering to used up, once per user,
  plan ends it) with cleanup of the run's abuse keys.

Desktop: trial_used_up / trial_unavailable classify as 'plan'; copy in billing, phone and CLI;
"Trial" badge, TrialPlanSummary in Plan & billing and the plans page strip, account menu row
"Trial · {{count}} sandbox hours left" (Choose plan for owners/admins); billingClaimTrial IPC
and claimOrcaCloudTrial() for the composer.
2026-11-10 06:20:22 -08:00
Neil 5521a3cf5a fix(cloud): GitHub setup row uses the panel's stacked row layout (design-squad) 2026-11-10 06:20:18 -08:00
Neil a5814d3596 feat(cloud): GitHub setup row component + D1-D3 fixtures (NP-4) 2026-11-10 06:19:21 -08:00
Neil 1512050634 Merge pull request #259 from nwparker/np4/github-idp-bind
NP-4 N5: bind GitHub installs by the Orca sign-in's GitHub identity (skip Authorize)
2026-11-10 06:17:09 -08:00
Neil 1b2cfb9c7d fix(billing): re-read usage on cloud create/wake and every 30 min while one runs
Usage alerts only fired on a billing read, so a team crossing 75/90/100% mid-session
wasn't alerted until a restart, a team switch or opening a billing view. Main now owns one
app-wide schedule: the hosted recipe's onReady (create and resume success) asks the main
window for a forced billing re-read, and the session registry's sync (already run on every
lifecycle change and on the existing 30 s beat) reports whether any cloud workspace is
running, which drives a 30-minute poll with no timer of its own. Requests go only to the
trusted main window so extra windows never stack reads; the per-level ledger still dedupes.
2026-11-10 06:15:39 -08:00
Neil ea1f1a43cf fix(cloud): plain chips instead of restyled Badge (shadcn no-restyle) 2026-11-10 06:14:58 -08:00
Neil 91e82b870d feat(sandbox-control): bind a GitHub install by the Orca sign-in's GitHub identity (N5/O3)
Billing's setup chain now passes the GitHub identity that Orca Cloud auth
verified from a GitHub sign-in (githubUserId, githubLogin). The install URL's
signed state carries it, and the setup URL checks it against the installation
with the App's own credentials: the user's own account, or an active org admin
(members:read installation token). A match binds with method 'idp' and skips
GitHub's separate Authorize page. Anything else falls back to the OAuth step
(A4b) as before.
2026-11-10 06:14:02 -08:00
Neil 9b1754a6d7 Merge remote-tracking branch 'private/cloud/integration' into cloud/w6-spec-ui
# Conflicts:
#	src/renderer/src/i18n/locales/en.json
2026-11-10 06:12:10 -08:00
Neil dcf27604c8 Merge pull request #255 from nwparker/np4/setup-session
NP-4: cloud setup session (N1), team-first Checkout (N4/O1), desktop one-tab setup
2026-11-10 06:10:25 -08:00
Neil d90bb54f7f feat(cloud-setup): poll at once on the orca://cloud/setup/return link (np4-shell N9) 2026-11-10 06:07:36 -08:00
Neil d2c04a28a5 test(cloud-setup): no type assertions in setup tests 2026-11-10 06:07:36 -08:00
Neil 4a20c765b0 fix(cloud-setup): narrow the sign-in failure result 2026-11-10 06:07:36 -08:00
Neil 33950fa436 feat(cloud-setup): desktop side of the one-tab setup session (N1), team-first plans (O1)
- Signed out, Set up and start opens one tab. The authorize page shows the
  setup account step (A2). Once the code is exchanged, the loopback holds the tab,
  creates the billing setup session and 302s the same tab into the setup pages.
- Signed in, the session is created and its start URL is opened.
- IPC: orcaProfiles.cloudSetupStart / cloudSetupGet / cloudSetupLink (Copy setup
  link mints a fresh one-time link).
- Renderer: cloud-setup-session.ts polls the session (2 s for 3 min, then 10 s),
  keeps a snapshot for the composer and tracker, and switches the profile to the
  team setup chose.
- Plans dialog: Checkout joins the open setup session. A personal account
  (409 team_required) goes through setup instead, which makes or picks a team
  first.
- Billing: POST /v1/cloud-setup/sessions/:id/link.
2026-11-10 06:07:35 -08:00
Neil c14d5856f2 feat(billing): cloud setup sessions (N1) and team-first Checkout (N4/O1)
Setup session API on the billing Worker: the desktop creates a session after
sign-in and polls its steps (account, team, plan/trial, github); the setup pages
on Orca Cloud auth redeem a one-time browser ticket, bind the team (granting the
trial through a port np4-trial's module plugs into), open Checkout that returns
to the setup pages, and ask the control plane for the GitHub install URL. The
control plane flips the GitHub step via POST /v1/internal/cloud-setup/github.

Checkout now refuses personal accounts with 409 team_required: a user: plan
could never move to a team later.
2026-11-10 06:07:27 -08:00
Neil a5859bdfdc fix(cloud): W6 UI review round 2: replay pruning on ready, Dismiss focus, F6 scope, split-group visibility, lint 2026-11-10 06:07:25 -08:00
Neil 41d8bbf98d Merge pull request #243 from nwparker/cloud/usage-alerts
feat(billing): usage alerts for owners and admins at 75/90/100%
2026-11-10 06:05:30 -08:00
Neil b83c58dc32 fix(settings): design-squad copy for Agent API keys, tab focus offset, lint
- Agent API keys: sentence-case title and the squad's body copy, keeping the
  Cloud secrets link; stale keys removed.
- TabsContent focus outline sits outside the panel (offset 2, like Button).
- No type assertion in the MCP workspace projection; runtime-row link uses
  the quiet variant and a generic name fallback.
2026-11-10 06:03:47 -08:00
Neil 055428b381 feat(billing): dedicated 100% usage alert copy by overage state (design-squad) 2026-11-10 06:03:44 -08:00
Neil 6273ed88fe fix(billing): async ledger I/O behind a queue; no casts in usage alerts 2026-11-10 06:03:44 -08:00
Neil 6a8f8b2b0f test(billing): type the usage-alert show mock 2026-11-10 06:03:44 -08:00
Neil 7f5e6a9af3 feat(billing): alert owners and admins at 75/90/100% of sandbox hours
- Desktop notification (title "Orca Cloud", body reuses the in-app usage sentence) when a
  billing read crosses 75, 90 or 100%, once per level per account and billing period. Main
  owns the ledger (userData/orca-billing-usage-alerts.json), so reloads, re-renders and
  second windows never repeat it; a new period starts over. Members are never notified.
- Click opens Settings > Orca account (Plan & billing) via ui:openSettings with a target.
- The in-app usage notice (account menu, billing panel, plans page) is now owners/admins only.
- Billing panel: muted note under the Overage description that owners and admins are alerted
  at 75%, 90% and 100%.
- Fixtures: account menu at 90% (admin and member), billing panel member at 90%.
2026-11-10 06:03:44 -08:00
Neil 95bb1dd372 Merge pull request #249 from nwparker/cloud/w6-a9-recipe
A9 sign-out before delete + recipe env-forwarding warning (P-4)
2026-11-10 06:03:08 -08:00
Neil cd9f2b55ee Merge pull request #257 from nwparker/np4-shell-tracker
feat(cloud-start): setup return link, setup telemetry, X1 error model, B2 team-plans lookup (NP-4)
2026-11-10 05:59:37 -08:00