feat: add SDK dev pack script for local development#67
Closed
lewis617 wants to merge 3 commits into
Closed
Conversation
Add scripts/update-sdk-dev.mjs to clone, build, and pack wave-agent-sdk from GitHub as a local .tgz, avoiding frequent npm publishes during dev. - Clone SDK repo, build, pack as wave-agent-sdk-0.0.0-dev.tgz - Update package.json to file: reference and install - Clean stale integrity hash from package-lock.json for re-runs - Add .tgz to .gitignore - Add script permission to project settings
The file: reference to wave-agent-sdk-0.0.0-dev.tgz breaks CI because the tgz is gitignored. Keep npm registry version (^0.17.4) in git; use scripts/update-sdk-dev.mjs locally to switch to file: reference.
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
Add
scripts/update-sdk-dev.mjs— a one-command workflow to use the latestwave-agent-sdkfrom GitHub source without publishing to npm.What it does
wave-agentrepo (shallow) to/tmp/wave-agent-packpnpm install)0.0.0-devpnpm run build)wave-agent-sdk-0.0.0-dev.tgzpackage.jsontofile:referencepackage-lock.jsonnpm install --forceChanges
scripts/update-sdk-dev.mjs— New script.gitignore— Ignorewave-agent-sdk-0.0.0-dev.tgz.wave/settings.json— Allow script in permissionspackage.json/package-lock.json— SDK dependency switched tofile:referenceNotes
.tgzis gitignored; CI will need the npm registry version or a separate build step.package.jsonback to"wave-agent-sdk": "^x.y.z"and runnpm install.