v2.40.0
v2.40.0 - org control plane (nested), email handoff, step-up errors, loopback login
Public SDK/CLI/MCP cascade for the org-owned control plane (part of #444), built on the v1.77/1.78 gateway.
Org control plane - nested + invites + audit
- SDK:
r.org.members.{list,add,setRole,revoke},r.org.invites.{list,create,revoke},r.org.audit()(plusr.org.whoami/r.org.list). The flatorg.addMember/removeMember/...surface is reshaped into grouped sub-resources that scale as the org surface grows. Pre-launch, no migration. - CLI:
run402 org member list|add|role|rm,run402 org invite list|create|rm,run402 org audit. - MCP: member tools repointed onto the nested SDK.
Project handoff by email
run402 transfer init --to <wallet|email>routes by recipient kind; addsrun402 transfer claimand--handoff/--handoffsoncancel/preview/list.- SDK:
r.admin.transfers.{initiateHandoff,listIncomingHandoffs,previewHandoff,claimHandoff,cancelHandoff}.
Step-up auth error
StepUpRequiredError(403STEP_UP_REQUIRED) with typedrequiredAmr/maxAgeSeconds/challengeUrl/reasonand the canonicalnext_actions[];isStepUpRequired()guard. Coexists withNotAuthorizedError.
Operator write-login (loopback-PKCE)
run402 operator login --loopback/--step-up: an aws-sso-style browser passkey ceremony (RFC 8252 loopback) that mints a write-capable control-plane session, cached 0600. SDK:r.operator.{buildCliAuthorizeUrl,exchangeCliToken}.
Lockstep release of run402-mcp, run402, and @run402/sdk at 2.40.0 (OIDC Trusted Publisher, with provenance).