feat(sdk-ts): TypeScript plugin SDK via Javy + esbuild→wasm build pipeline - #463
Merged
Conversation
tayebmokni
enabled auto-merge (squash)
May 25, 2026 20:18
|
Heads up — this PR touches strings that often signal a security disclosure ( If this PR fixes or describes a real vulnerability that has not yet been publicly disclosed, please stop and use the private path:
See If this is a false positive (test fixture, doc update, release notes, etc.) please ignore this comment — the check is advisory only and does not block the PR. Matched files:
|
tayebmokni
force-pushed
the
feat/plugin-sdk-ts
branch
2 times, most recently
from
May 25, 2026 21:03
57cc0d7 to
3de6500
Compare
Closes #242. packages/ts/sdk-plugin: TypeScript SDK for GoNext plugin authors via Javy (JavaScript → WASM). - pluginInit + registerAction / registerFilter - Typed wrappers over every gn_* host ABI through globalThis - JSON envelope codec - Manifest builder mirroring the Go side - bin/gonext-sdk-build.js wraps esbuild + javy compile - cli/gonext/templates/typescript + 'gonext plugin init --template=typescript' - examples/plugins/sdk-ts-hello working example - 54 Vitest tests (codec + manifest + dispatch) This PR was rebased onto main after #460/#461/#462 landed; the runInit dispatch now switches on template name and embeds both templates/go and templates/typescript via the single templatesFS. Signed-off-by: Tayeb Mokni <tayeb.mokni@gmail.com>
tayebmokni
force-pushed
the
feat/plugin-sdk-ts
branch
from
May 26, 2026 17:31
3de6500 to
3203503
Compare
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.
Closes #242.
packages/ts/sdk-plugin: TypeScript SDK for GoNext plugin authors via Javy (JS→WASM).
gonext plugin init --template=typescriptTest plan
pnpm --filter @gonext/sdk-plugin test— 54 tests passingpnpm --filter @gonext/sdk-plugin typecheckgo test ./cmd/plugin/...in cli/gonext — all init tests passingpnpm typecheckin examples/plugins/sdk-ts-hellogonext-sdk-build --skip-wasmagainst the example produces a valid dist/plugin.js + dist/manifest.json🤖 Generated with Claude Code