mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
feat: Bun workspace monorepo — packages/cli + packages/shared (#1853)
Restructure the repo as a Bun workspace monorepo: - Move cli/ → packages/cli/ - Create packages/shared/ (@openrouter/spawn-shared) with type-guards and parse utilities - Add root package.json with workspace configuration - Update all CLI imports to use @openrouter/spawn-shared - Deduplicate toRecord/toObjectArray helpers from 4 cloud modules - Update SPA (slack-bot) to use shared package instead of local toObj() - Update 48 agent shell scripts for new packages/cli/ path - Update install.sh, install.ps1, e2e, and test scripts - Update all GitHub workflows, .gitignore, pre-commit hooks - Update CLAUDE.md, README.md, and skill prompt references - Pin all dependency versions (no ^ ranges) - Bump CLI version 0.9.1 → 0.10.0 All 1908 tests pass. Lint clean. All 8 cloud bundles build. Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8049b8b257
commit
65f6f1be32
180 changed files with 601 additions and 278 deletions
16
.github/workflows/cli-release.yml
vendored
16
.github/workflows/cli-release.yml
vendored
|
|
@ -4,9 +4,9 @@ on:
|
|||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'cli/src/**'
|
||||
- 'cli/package.json'
|
||||
- 'cli/bun.lock'
|
||||
- 'packages/cli/src/**'
|
||||
- 'packages/cli/package.json'
|
||||
- 'packages/cli/bun.lock'
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
|
|
@ -28,17 +28,17 @@ jobs:
|
|||
uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Install dependencies and build
|
||||
working-directory: cli
|
||||
working-directory: packages/cli
|
||||
run: |
|
||||
bun install
|
||||
bun run build
|
||||
|
||||
- name: Build cloud bundles
|
||||
run: bun run cli/build-clouds.ts
|
||||
run: bun run packages/cli/build-clouds.ts
|
||||
|
||||
- name: Get version
|
||||
id: version
|
||||
working-directory: cli
|
||||
working-directory: packages/cli
|
||||
run: echo "version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Update cli-latest release
|
||||
|
|
@ -60,14 +60,14 @@ jobs:
|
|||
**Version:** ${{ steps.version.outputs.version }}
|
||||
**Built:** $(date -u +%Y-%m-%dT%H:%M:%SZ)" \
|
||||
--prerelease \
|
||||
cli/cli.js
|
||||
packages/cli/cli.js
|
||||
|
||||
- name: Upload cloud bundles
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
# Upload each cloud bundle as a separate release (fly-latest/fly.js, etc.)
|
||||
for bundle in cli/*.js; do
|
||||
for bundle in packages/cli/*.js; do
|
||||
name=$(basename "$bundle" .js)
|
||||
[[ "$name" == "cli" ]] && continue # skip cli.js, already uploaded above
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue