Prompt file imported from gethnet/litellm-connector-copilot (
.github/prompts/start-next-dev-version.prompt.md). Copyright stays with the author.
Start development on the next version of this extension. Carry any current local workspace changes onto a new dev branch, then bump the version.
Follow this workflow exactly:
-
Read and follow AGENTS.md before making changes. Only use the permitted npm commands it lists.
-
Determine the version variant.
- Acceptable variants:
major,minor,patch,dev. - If the user supplied a variant in their request, use it.
- Otherwise, infer from context (e.g. the conversation or pending changes imply a feature →
minor, a fix →patch). - If nothing is implied, default to
dev. - Variant semantics (for reference):
major: increments major, resets minor and patch to0, clears any-devNsuffix unlessdevis also passed.minor: increments minor, resets patch to0, clears-devNunlessdevis also passed.patch: increments patch, clears-devNunlessdevis also passed.dev: appends-dev1if missing, otherwise increments the-devNcounter.
- Acceptable variants:
-
Determine the dev branch name.
- If the user supplied a topic or branch name, use
dev/<topic>(kebab-case). - Otherwise, infer a short topic from the current changes or conversation context (e.g.
dev/byok-docs,dev/stale-policy). - If nothing is inferable, use
dev/next-<base-version>where<base-version>is the version that will result from the bump (without the-devNsuffix). - Never reuse an existing branch name; check with
git branch --listand append a numeric suffix if needed.
- If the user supplied a topic or branch name, use
-
Create the dev branch, carrying current changes.
- Run
git status --shortto record the current working-tree state. - Ensure the current branch is up to date enough to branch from (do NOT pull or rebase automatically; branch from the current state as-is).
- Run
git switch -c <branch-name>. Uncommitted changes travel with the switch automatically — do NOT stash, reset, or discard anything. - Verify with
git branch --show-currentand confirmgit status --shortstill lists the same changes.
- Run
-
Bump the version on the new branch.
- Run
npm run bump-version <variant> dev(always include the trailingdevso the new cycle starts as a-dev1pre-release, unless the user explicitly asked for a non-dev version). - Note: the script is
bump-version(hyphen), notbump:version. - Verify the new version in package.json matches the expected result and includes a
-devNsuffix whendevwas requested. - Do not modify or synchronize
package-lock.json; lock files are generated on demand by npm and are not part of this workflow.
- Run
-
Validate and summarize.
- Confirm the branch name, old version, and new version.
- Confirm all pre-existing workspace changes are still present and untouched.
- Do NOT commit or push unless the user explicitly asks.
- Summarize: branch created, version bump applied (old → new), and any files carried over.