Skip to content

Use the Sprites SDKs in the worker snippets - #224

Open
kylemclaren wants to merge 1 commit into
mainfrom
docs/sprites-sdk-snippets
Open

Use the Sprites SDKs in the worker snippets#224
kylemclaren wants to merge 1 commit into
mainfrom
docs/sprites-sdk-snippets

Conversation

@kylemclaren

Copy link
Copy Markdown
Collaborator

No description provided.

sprites-py and @fly/sprites now cover everything the worker was doing by
hand against the REST API, so the page can stop teaching transport details
that are no longer the reader's problem: the 0x03 exit frame, the workingDir
parameter on fs writes, and the 409-on-reuse status check all move into the
SDK. Net 30 fewer lines with the same behaviour.

Where the two SDKs differ, the tabs differ with them. Python returns the
install's exit code on the result and raises NotFoundError for a missing
Sprite; the JS SDK throws ExecError and reports a missing Sprite as an
APIError with statusCode 404. The TypeScript tab uses execFile rather than
exec because exec reports 1 for every failure, which would turn a blocked
PyPI into an unhelpful 'exit 1'.

The keep-alive Task stays a sprite-env call inside the Sprite — there is no
SDK surface for it — so that section and the troubleshooting table are
unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Preview Deployment

Name URL
Preview https://pr-224-superfly-sprites-docs.fly.dev

Commit: 773b6e4

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Lighthouse Results

URL Performance Accessibility Best Practices SEO
/ 🟢 97 🟢 97 🟢 96 🟢 100
/integrations/claude-managed-agents/ 🟢 99 🟢 97 🟢 100 🟢 100

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ Tests success

Ran against: https://pr-224-superfly-sprites-docs.fly.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant