Repository navigation
feat(zag): add Octane bindings - #428
jonkwheeler wants to merge 56 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
# Conflicts: # package.json # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl # pnpm-lock.yaml
# Conflicts: # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit b062e72. Configure here.
|
REVIEW WITHDRAWN Currency update brought a new unresolved Bugbot finding on normalizeProps; fixing before re-signaling ready. |
|
Branch currency restored via update-branch. Bugbot completed on the new head with one finding about normalizeProps callability; declined after verifying upstream createNormalizer also returns a non-callable Proxy over {}, matching Zag's object+methods usage. No unresolved threads remain. READY FOR REVIEW |
Co-authored-by: Cursor <[email protected]>
|
REVIEW WITHDRAWN Restoring merge currency: merged origin/main and resolving conflicts. Prior ready signal voided until Bugbot clears the new head. |
|
Merged origin/main to restore currency; conflicts resolved. Cursor Bugbot SUCCESS on current head; merge state CLEAN; no unresolved review threads. READY FOR REVIEW |
|
REVIEW WITHDRAWN Branch is behind main; restoring merge currency before re-signaling. |
|
READY FOR REVIEW Merge currency restored via update-branch. Bugbot completed on current head with no unresolved findings; merge state CLEAN. |
|
REVIEW WITHDRAWN Restoring merge currency: origin/main moved (Version Packages #682). Merging and resolving conflicts before re-signaling. |
Absorb Version Packages (octanejs#682) and refresh sync artifacts after conflict resolution. Co-authored-by: Cursor <[email protected]>
|
REVIEW WITHDRAWN Branch is behind main; restoring merge currency via update-branch before re-signaling. |
|
Merge currency restored via update-branch. Cursor Bugbot SUCCESS on 925941a; merge state CLEAN; no unresolved review threads. READY FOR REVIEW |
|
Thank you for your contribution! This pull request was incorporated into |

Summary
Octane applications can now consume Zag's framework-neutral state-machine runtime through a React-compatible binding surface without shipping React or React DOM.
This is the first prerequisite in the Chakra UI migration chain:
@octanejs/zag(this PR)@octanejs/ark-ui@octanejs/chakra-uiThe adapter preserves the stable
@zag-js/[email protected]root exports, forwards Octane hook slots through Zag's indirect callbacks, and adapts portals for both compiled children blocks and ordinary child values. The package contract pins the matching framework-neutral Zag dependencies and keeps React dependencies development-only for differential testing.Validation
useMachineassignability checks passed.@octanejs/[email protected]packed with source/docs only and no React imports or published React dependencies.Pull request chain
Keep this PR draft until CI is green and the branch is current with
main. Ark UI work begins after this prerequisite merges; Chakra UI follows Ark UI and will include central playground coverage.Post-deploy monitoring and validation
No additional operational monitoring is required because this is a publishable library adapter, not a deployed service. During the next release cycle, package maintainers should treat green package checks, a React-free published dependency graph, and consumer CI as healthy signals. If those signals regress, withhold the package release or revert this PR.
Provenance
agent-authored)Note
Medium Risk
New public binding surface for state machines and host props used by future UI stacks; controlled-bindable and event-normalization behavior diverges slightly from upstream React.
Overview
Introduces
@octanejs/zag(0.0.1) as the Octane port of@zag-js/[email protected], exposinguseMachine,normalizeProps,Portal, plusmergePropsanduseSyncExternalStorere-exports while reusing framework-neutral@zag-js/*packages unchanged.The adapter wires compiler hook slots through composed hooks and Zag
bindable/trackpaths, and pins controlled context so prop-driven values are not overwritten by internalsetcalls.normalizePropsmaps React-style textonChangeto nativeonInputon text-entry hosts;Portalhandles Octane container refs and portals compiled children as a single block. SSR is covered for initial machine state and in-place disabled portals.Evidence is vendored upstream source/tests under
packages/zag/upstream, with pristine React and adapted Octane Vitest lanes (StrictMode cases pristine-only). Repo metadata moves to 61 bindings, adds@zag-js/react→@octanejs/zagin CLI/MCP data, extendsbindings:typecheck, and ignores pristine suite scratch dirs.Reviewed by Cursor Bugbot for commit 925941a. Bugbot is set up for automated code reviews on this repo. Configure here.