chore: migrate from bun to pnpm + vitest + esbuild

- Replace bun:test with vitest across all packages
- Replace bun build with esbuild
- Replace bun:sqlite with better-sqlite3
- Fix OCAS Store API: store.put/get → store.cas.put/get
- Fix vitest vi.mock hoisting (vi.hoisted)
- Add pnpm-workspace.yaml and pnpm-lock.yaml
- Update all package.json test/build scripts

WIP: 8 failures remain in agent-hermes (bun engines check + sqlite migration)

Refs #26
This commit is contained in:
2026-06-03 14:33:03 +00:00
parent 0d93e56acd
commit e5e6de2fad
93 changed files with 6675 additions and 647 deletions
+8 -10
View File
@@ -12,23 +12,24 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
"prepublishOnly": "echo 'Use bun run release from repo root' && exit 1",
"test": "bun test __tests__/",
"test:ci": "bun test __tests__/"
"prepublishOnly": "echo 'Use pnpm run release from repo root' && exit 1",
"test": "vitest run __tests__/",
"test:ci": "vitest run __tests__/"
},
"dependencies": {
"@ocas/core": "^0.1.1",
"@united-workforce/util-agent": "workspace:^",
"@ocas/core": "^0.2.2",
"@united-workforce/protocol": "workspace:^",
"@united-workforce/util": "workspace:^"
"@united-workforce/util": "workspace:^",
"@united-workforce/util-agent": "workspace:^",
"better-sqlite3": "^12.10.0"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.13",
"typescript": "^5.8.3"
},
"publishConfig": {
@@ -43,8 +44,5 @@
"bugs": {
"url": "https://git.shazhou.work/shazhou/united-workforce/issues"
},
"engines": {
"bun": ">= 1.0.0"
},
"license": "MIT"
}