fix(deps): override @relayfile/sdk to unblock local relayflows provisioning

Closed
KH
1mo ago
+335-51

Summary

  • @relayflows/core (currently published, 1.1.4) pins @relayfile/sdk to ^0.8.0 → resolves to 0.8.10, a version whose createWorkspaceIfNeeded() throws fatally on the 404 that relayfile-cloud's real router returns for the deprecated bare POST /v1/workspaces route (only /v1/workspaces/:id/... is registered — workspaces are Durable Objects created implicitly by ID).
  • Any relayflows workflow that declares agent permissions (turns on in-process provisioning) fails locally with Failed to create workspace <id>: HTTP 404 before doing any real work — this is what blocked local runs of workflows/verify-fleet-daytona.ts.
  • relayfile shipped the actual fix upstream (published since 0.10.47): a 404 on the collection route is now treated as "nothing to pre-create," not fatal.
  • This overrides entry unblocks local runs against the currently published @relayflows/core. A proper version-pin fix is up for review in relayflows itself: AgentWorkforce/relayflows#55 — once that ships a new release, this override can be dropped.

Test plan

  • npm install resolves @relayfile/sdk@0.10.54
  • npm run build:core — passes
  • Added tests/relayflows/cases/1702-relayfile-sdk-workspace-404/ (Cloud red/green proof) and verified both arms locally before pushing: base (no override) observes bug/relayfile_sdk_404_fatal, head (override applied) observes fixed/relayfile_sdk_404_treated_as_noop
  • Reproduced the original bug and confirmed the fix: local relayflows run of workflows/verify-fleet-daytona.ts (attaches permissions to every agent) with this override gets past the create-workspace step that previously failed with a fatal HTTP 404, advancing to a distinct, later, unrelated failure (a missing RELAYAUTH_JWT_PRIVATE_KEY_PEM/RELAYAUTH_JWT_KID signing-key pair needed for real ACL provisioning against production relayfile — a credentials gap, not a code bug)

RelayFlow Proof

  • Change type: bugfix
  • RelayFlow case: 1702-relayfile-sdk-workspace-404

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jne2359AFNa6hnYMzxMm2Y