build: declare workspace dependencies and check them in CI (P0.2)

Packages relied on npm hoisting for imports they never declared, so a
package installed on its own fails (UF-024).

- server: + @waggle/marketplace, @waggle/sdk, @waggle/weaver, zod (MIT),
  @anthropic-ai/sdk (MIT), @ax-llm/ax (Apache-2.0);
  - @waggle/hive-mind-shim-core and stripe (unused)
- agent: + pdf-parse (Apache-2.0); playwright-core (Apache-2.0) as an
  optional peer, since it is loaded only when available
- worker: + @waggle/waggle-dance; web: + @waggle/shared
- launcher: + @waggle/server as a dev dependency (bundled by tsup);
  - stripe; cli: - @waggle/weaver (unused); root: - stripe

scripts/check-workspace-deps.mjs (npm run check:deps) compares the
imports in each community-edition package's src/ with its manifest and
runs in CI. Two imports wait for P1.4 (optimizer, evolution wiring).
This commit is contained in:
shumeiko.it
2026-10-15 19:31:50 +02:00
parent fe2eb0f648
commit d2b6506f8b
12 changed files with 179 additions and 11 deletions

View File

@@ -17,15 +17,19 @@
"start:local": "tsx src/local/start.ts"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.78.0",
"@ax-llm/ax": "^19.0.12",
"@clerk/fastify": "^3.1.3",
"@fastify/cors": "^10.0.0",
"@fastify/static": "^10.1.2",
"@fastify/websocket": "^11.0.0",
"@waggle/agent": "*",
"@waggle/core": "*",
"@waggle/hive-mind-shim-core": "*",
"@waggle/marketplace": "*",
"@waggle/sdk": "*",
"@waggle/shared": "*",
"@waggle/waggle-dance": "*",
"@waggle/weaver": "*",
"@waggle/wiki-compiler": "*",
"@whiskeysockets/baileys": "^7.0.0-rc13",
"adm-zip": "^0.6.0",
@@ -41,7 +45,7 @@
"mammoth": "^1.11.0",
"pdf-parse": "^2.4.5",
"postgres": "^3.4.0",
"stripe": "^21.0.1"
"zod": "^3.24.0"
},
"devDependencies": {
"@types/archiver": "^7.0.0",