Commit Graph
16927 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 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 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 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 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 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 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 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 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 99c52ba889 Merge remote-tracking branch 'private/cloud/integration' into cloud/w6-a9-recipe
# Conflicts:
#	cloud/apps/sandbox-control/image/vm-scripts.generated.ts
2026-11-10 05:53:41 -08:00
Neil aac87b9446 fix(cloud-start): parse setup errors without type assertions 2026-11-10 05:50:29 -08:00
Neil 21ac87b972 feat(cloud-start): setup return link, setup telemetry, X1 error model, B2 team-plans lookup (NP-4)
- N9: orca://cloud/setup/return?session=cs_… is routed (open-url + second
  instance), validated, focuses Orca and fans out to renderer listeners
  (onCloudSetupReturn) so the setup session re-reads at once.
- N10: cloud_setup_step_{started,done,failed}, cloud_setup_first_sandbox and
  cloud_setup_plan_chosen, enum-only, derived from the setup rows.
- X1: setup error kinds (timed_out, checkout_canceled, bank_step,
  trial_unavailable, team_create_failed, wrong_account) and their actions.
- B2: billing POST /v1/billing/team-plans returns other teams' plan state with
  the caller's own token; auth confirms membership from that token (no new
  credential). Desktop IPC billingTeamPlans + useSwitchToPlannedTeam. The team
  switch logic moves out of SidebarTeamSubmenu so the composer can reuse it.
2026-11-10 05:50:29 -08:00
Neil 5b8bc2d479 Merge pull request #244 from nwparker/cloud/agents-a6-design
fix(cloud): A6/DS-02 design follow-ups (Save to your Orca account rows, catalog names, cloud build-sheet fixture, DS-33 hint)
2026-11-10 05:47:28 -08:00
Neil 732c04ddd7 Merge remote-tracking branch 'private/cloud/integration' into cloud/w6-a9-recipe
# Conflicts:
#	cloud/apps/sandbox-control/image/vm-scripts.generated.ts
2026-11-10 05:43:06 -08:00
Neil 7fa51b6a0b Merge pull request #246 from nwparker/np4/github-repo-access
NP-4: GitHub repo access, preselected install URLs, install requests, webhook auto-start, repository list (N2/N3/N12, D2/D3)
2026-11-10 05:42:57 -08:00
Neil e897152ec4 fix(cloud): W6 UI review round 1: S4-b focus/F6, collapse, Details hook, routing, replay, shared copy 2026-11-10 05:38:20 -08:00
Neil 4620815e04 fix(cloud): DS-02 sign-off fixes: saved row drops 'only on this computer', a failed row's only action is Try again, the variable sits on its own line; Agent API keys scope note
Per design-squad on #244. The Agent API keys editor gets one muted line under the host scope choice,
'Not used in Orca Cloud. Save a key to your Orca account to use it in cloud workspaces.', instead of
changing #40303's own label.
2026-11-10 05:32:00 -08:00
Neil d6e36a9c38 merge integration 2026-11-10 05:31:24 -08:00
Neil 4114eea5d0 fix(cloud): show the delete sign-out line only when the running sandbox holds a CLI login (D14) 2026-11-10 05:28:37 -08:00
Neil fed130d30a feat(cloud): orcad reports its build; desktop flags out-of-range version skew with a cloud workspace (#254)
* feat(cloud): orcad reports its build commit; desktop flags out-of-range version skew with a cloud workspace

* review: shared compat verdict, status role, retries, tests, version-skew runbook section

* fix: lint gates (async commit read, no casts, retry outside effect, surface split)

* test(cloud): status panel error action is Try again (DS-13 copy)
2026-11-10 05:27:55 -08:00