feat(opencode): publish ponytail as an installable npm package (opencode-ponytail)#143
Open
dangtrungan wants to merge 17 commits into
Open
feat(opencode): publish ponytail as an installable npm package (opencode-ponytail)#143dangtrungan wants to merge 17 commits into
dangtrungan wants to merge 17 commits into
Conversation
OpenCode's command schema expects `template`, not `prompt` Was causing startup failure: "Missing key at command.ponytail-debt.template".
OpenCode auto-installs the package now; npm install is no longer needed. Checkout-based install points directly at .opencode/plugins/ponytail.mjs.
The npm package entry point is now .opencode/plugins/ponytail.mjs directly. Remove the root index.mjs re-export and update README instructions. OpenCode auto-installs the package, so npm install is no longer needed.
Author
|
@DietrichGebert Alongside with the new node package, I've also set up OIDC for the release workflow |
|
This would be very helpful, thanks! |
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
Turns the OpenCode plugin into a standalone, npm-installable package (
opencode-ponytail)rather than something that only works from a checkout of this repo, and switches slash
command registration from a static config to one generated dynamically from the command
files shipped inside the package.
Changes
opencode-ponytailand added the metadata npm expects forpublishing (license, author, repository, homepage, bugs, keywords, version bump).
package.jsonfiles/exportsso command definitions, hooks, and skills areactually included when the package is published.
opencode.jsonat a local checkout instead.Testing
tests/opencode-package.test.js: a smoke test that imports the package entrypoint the way npm consumers would and verifies it exports a function, injects the
ruleset at the default mode, and persists
/ponytail off.tests/opencode-plugin.test.jsto verify the config hook registers all fourslash commands (
ponytail,ponytail-review,ponytail-audit,ponytail-help) withstring
description/templatefields.