refactor: restore @openrouter/spawn-shared workspace package (#2405)

* refactor: restore @openrouter/spawn-shared workspace package

Restore packages/shared/ as canonical location for parse.ts, result.ts,
and type-guards.ts. CLI shared files become thin re-exports, preserving
all existing import paths. SPA imports switch from fragile relative paths
to the workspace package.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: sort exports in shared package barrel to satisfy biome

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: sort SPA imports to satisfy biome organizeImports

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
L 2026-03-09 20:14:26 -04:00 committed by GitHub
parent fa323c8b58
commit 2da9e6cd46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 149 additions and 119 deletions

View file

@ -13,6 +13,7 @@
".claude/skills/setup-spa": {
"name": "spawn-slack-bot",
"dependencies": {
"@openrouter/spawn-shared": "workspace:*",
"@slack/bolt": "4.6.0",
"@slack/types": "^2.14.0",
"@slack/web-api": "^7.14.1",
@ -22,12 +23,13 @@
},
"packages/cli": {
"name": "@openrouter/spawn",
"version": "0.15.27",
"version": "0.15.32",
"bin": {
"spawn": "cli.js",
},
"dependencies": {
"@clack/prompts": "1.0.0",
"@openrouter/spawn-shared": "workspace:*",
"picocolors": "1.1.1",
"valibot": "1.2.0",
},
@ -36,6 +38,13 @@
"@types/bun": "1.3.8",
},
},
"packages/shared": {
"name": "@openrouter/spawn-shared",
"version": "0.2.0",
"dependencies": {
"valibot": "1.2.0",
},
},
},
"packages": {
"@biomejs/biome": ["@biomejs/biome@2.4.3", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.4.3", "@biomejs/cli-darwin-x64": "2.4.3", "@biomejs/cli-linux-arm64": "2.4.3", "@biomejs/cli-linux-arm64-musl": "2.4.3", "@biomejs/cli-linux-x64": "2.4.3", "@biomejs/cli-linux-x64-musl": "2.4.3", "@biomejs/cli-win32-arm64": "2.4.3", "@biomejs/cli-win32-x64": "2.4.3" }, "bin": { "biome": "bin/biome" } }, "sha512-cBrjf6PNF6yfL8+kcNl85AjiK2YHNsbU0EvDOwiZjBPbMbQ5QcgVGFpjD0O52p8nec5O8NYw7PKw3xUR7fPAkQ=="],
@ -62,6 +71,8 @@
"@openrouter/spawn": ["@openrouter/spawn@workspace:packages/cli"],
"@openrouter/spawn-shared": ["@openrouter/spawn-shared@workspace:packages/shared"],
"@slack/bolt": ["@slack/bolt@4.6.0", "", { "dependencies": { "@slack/logger": "^4.0.0", "@slack/oauth": "^3.0.4", "@slack/socket-mode": "^2.0.5", "@slack/types": "^2.18.0", "@slack/web-api": "^7.12.0", "axios": "^1.12.0", "express": "^5.0.0", "path-to-regexp": "^8.1.0", "raw-body": "^3", "tsscmp": "^1.0.6" }, "peerDependencies": { "@types/express": "^5.0.0" } }, "sha512-xPgfUs2+OXSugz54Ky07pA890+Qydk22SYToi8uGpXeHSt1JWwFJkRyd/9Vlg5I1AdfdpGXExDpwnbuN9Q/2dQ=="],
"@slack/logger": ["@slack/logger@4.0.0", "", { "dependencies": { "@types/node": ">=18.0.0" } }, "sha512-Wz7QYfPAlG/DR+DfABddUZeNgoeY7d1J39OCR2jR+v7VBsB8ezulDK5szTnDDPDwLH5IWhLvXIHlCFZV7MSKgA=="],