Skip to content

feat(client): vite-task-client JS package#409

Merged
branchseer merged 1 commit into
mainfrom
feat/vite-task-client-js
May 28, 2026
Merged

feat(client): vite-task-client JS package#409
branchseer merged 1 commit into
mainfrom
feat/vite-task-client-js

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented May 28, 2026

Lays the groundwork for publishing @voidzero-dev/vite-task-client to
npm. JS-side only — src/index.js (JSDoc as source of truth),
src/index.d.ts regenerated from it, and the metadata required to
publish. No Rust changes; no runner integration.

The package is a thin wrapper with no dependencies: under a
vp run task it loads the runner-provided napi addon at runtime,
otherwise every method is a graceful no-op.

Next steps

  1. Publish @voidzero-dev/vite-task-client@0.1.0 to npm.
  2. Update the Vite PR to
    depend on the published @voidzero-dev/vite-task-client.
  3. Merge feat(ipc): protocol + Rust transport #410 — the remaining Rust implementation (IPC protocol +
    transport, napi binding, executor refactor, cache integration, e2e
    tests).

Copy link
Copy Markdown
Member Author

branchseer commented May 28, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Adds the JS-side npm package `@voidzero-dev/vite-task-client` with its
type-generation tooling. The package is a thin Node.js wrapper that
attempts to load a runner-provided napi addon at runtime via the
`VP_RUN_NODE_CLIENT_PATH` env var and gracefully no-ops when absent —
so it's installable and importable on its own, independent of the
runner's Rust implementation.

The actual napi binding and the runner-side IPC server land in the
follow-up PR on top of this one.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@branchseer branchseer force-pushed the feat/vite-task-client-js branch from 3061c61 to 2bc64fb Compare May 28, 2026 14:24
@branchseer branchseer marked this pull request as ready for review May 28, 2026 14:29
@branchseer branchseer merged commit 4f4bc2a into main May 28, 2026
18 checks passed
@branchseer branchseer deleted the feat/vite-task-client-js branch May 28, 2026 14:38
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