refactor: deduplicate PkgVersionSchema to shared/parse.ts (#2357)

Move the PkgVersionSchema (v.object({ version: v.string() })) from its
duplicate definitions in commands/shared.ts and update-check.ts into the
shared parse module. Both consumers now import from the single source.

Bump CLI version to 0.15.22.

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
A 2026-03-08 18:45:51 -07:00 committed by GitHub
parent 8bc5581e62
commit 62e1df9be5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 13 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.15.21",
"version": "0.15.22",
"type": "module",
"bin": {
"spawn": "cli.js"