Skip to content

feat(sdk): file-backed fs adapter + setTiming GSAP sync; sdk-playground workspace#1458

Merged
vanceingalls merged 4 commits into
mainfrom
fix/sdk-1423-rebase-onto-main
Jun 15, 2026
Merged

feat(sdk): file-backed fs adapter + setTiming GSAP sync; sdk-playground workspace#1458
vanceingalls merged 4 commits into
mainfrom
fix/sdk-1423-rebase-onto-main

Conversation

@vanceingalls

Copy link
Copy Markdown
Collaborator

Summary

Cherry-pick of PR #1423 content onto main (original PR accidentally merged into a Graphite tracking ref instead of main).

  • fs adapter (packages/sdk/src/adapters/fs.ts): file-backed PersistAdapter implementation with per-path write serialization, version history (pruned to N), and flush() tracking in-flight writes
  • PersistVersionEntry.content made optional (supports lazy-loading adapters)
  • setTiming GSAP-script sync (packages/sdk/src/engine/mutate.ts): handleSetTiming now writes tween positions back to the GSAP inline script so timeline rebuilds at play time reflect the edit
  • sdk-playground workspace (packages/sdk-playground/): local dev playground for exercising the SDK end-to-end with fs adapter
  • fix(core): oxfmt gsapSerialize.ts — reformats packages/core/src/parsers/gsapSerialize.ts to unblock Preflight CI across the entire stack

Test plan

  • bun run test passes
  • bun run build clean
  • Preflight CI passes (gsapSerialize.ts format fix is included)

🤖 Generated with Claude Code

vanceingalls and others added 4 commits June 15, 2026 01:50
…ct, race, comments

- bunx oxfmt packages/sdk-playground/index.html (unblocks CI)
- PersistVersionEntry.content is now optional; HTTP adapter omits it for lazy-load
- fs adapter: monotonic key (Date.now-NNNN) + per-path write serialization via promise chain
- mutate.ts: fix wrong comment on GSAP sync reason; add caveat to "pre-parse once" note

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Co-authored-by: Miguel Ángel <miguel07alm@protonmail.com>
Pre-existing format issue on the base; fixing here to unblock CI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Co-authored-by: Miguel Ángel <miguel07alm@protonmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vanceingalls vanceingalls merged commit 577a689 into main Jun 15, 2026
26 checks passed
@vanceingalls vanceingalls deleted the fix/sdk-1423-rebase-onto-main branch June 15, 2026 08:55
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