fix(deps): override @relayfile/sdk to unblock local relayflows provisioning
Closed
KH
1mo ago+335+335+012345678901234567890123456789-51-51-01234567890123456789
Summary
@relayflows/core(currently published, 1.1.4) pins@relayfile/sdkto^0.8.0→ resolves to 0.8.10, a version whosecreateWorkspaceIfNeeded()throws fatally on the 404 that relayfile-cloud's real router returns for the deprecated barePOST /v1/workspacesroute (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 withFailed to create workspace <id>: HTTP 404before doing any real work — this is what blocked local runs ofworkflows/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
overridesentry 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 installresolves@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) observesbug/relayfile_sdk_404_fatal, head (override applied) observesfixed/relayfile_sdk_404_treated_as_noop - Reproduced the original bug and confirmed the fix: local
relayflows runofworkflows/verify-fleet-daytona.ts(attachespermissionsto every agent) with this override gets past the create-workspace step that previously failed with a fatalHTTP 404, advancing to a distinct, later, unrelated failure (a missingRELAYAUTH_JWT_PRIVATE_KEY_PEM/RELAYAUTH_JWT_KIDsigning-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