feat: add xtap pool setup wizard#2
Merged
Merged
Conversation
Member
Author
|
Final validation report for head
Note: the review sandbox could not run Vitest because it is read-only and Vite needs to write a temp config cache; the same test suite passed in the normal local environment and in GitHub CI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pool owners had to stitch together the xTap pool setup by running scripts and copying manual follow-up steps.
This change adds an interactive TypeScript setup wizard that creates or updates the Hugging Face resources, configures the Space, verifies the dataset-only token, and optionally seeds existing xTap exports.
It also wires the new setup workspace into local checks, CI, coverage, and the README owner flow.
What Changed
The owner setup path is now a first-class npm workspace instead of only a shell-script checklist.
The wizard keeps the existing lower-level scripts available, but guides the normal path through prompts and validation.
setup/, a private TypeScript workspace with a Clack-based CLI entrypoint.whoami-v2.npm run setupwhile keeping the lower-level scripts documented.Testing
I ran the repo-level gates and the workflow mutation gates locally.
The interactive Hugging Face mutation flow itself was not run against production resources, but the non-interactive helpers and compiled root discovery path were tested.
npm run checkpassed.npm run buildpassed.npm run mutatepassed.npm run mutate --workspace sharedpassed.npm run mutate --workspace spacepassed.npm run mutate --workspace explorerpassed.node -e "const m=await import('./setup/dist/src/root.js'); console.log(m.findProjectRoot(new URL('./setup/dist/src/', import.meta.url).pathname))"printed/Users/onur/repos/xtap-pool.Risks
The main risk is API drift in Hugging Face token or Space secret endpoints.
The code keeps those calls isolated in setup helpers and tests the shapes we depend on, but a live setup run is still the final verification for a real owner account.