Files
waggle-os/package.json
shumeiko.it c25efe6c44 refactor(server): move the team runtime into a postponed package (P1.1)
Team mode stays in the repository but is not built or shipped (ADR-0003).

- The team server (index.ts, config, db, daemons, plugins, proactive,
  routes, scheduler, services, ws, drizzle migrations) and its tests move
  from @waggle/server to packages/team-server (@waggle/team-server,
  private). It keeps its own copies of the logger and the agent-group
  executor, so it does not import @waggle/server. @clerk/fastify, bullmq,
  ioredis, postgres, drizzle-orm, drizzle-kit, cron-parser and
  @waggle/waggle-dance leave @waggle/server; the launcher drops the same
  team-only dependencies.
- build:packages no longer builds waggle-dance or the worker: nothing in
  the community edition imports them, and the worker's project reference
  would otherwise build the team server. The worker now imports from
  team-server; the team Dockerfile builds both explicitly.
- The sidecar no longer starts the team server when DATABASE_URL is set,
  and loses the team routes (/api/team/*, /api/teams), the WaggleDance
  routes and bridge (/api/waggle-dance/*), the Team server binding and
  egress guard, the WebSocket team client, the TeamSync cache and pushes,
  team audit forwarding, team workspace registration and the team
  capability-policy lookup in chat. The in-process room signal bus stays:
  agent groups, fleet runs and external tool runs use it.
  middleware/audit.ts was dead and is deleted.
- @waggle/core loses TeamSync and the teamServer part of WaggleConfig. A
  teamServer key in config.json is ignored and kept on save, as P0.1 does
  for the tier keys. Workspaces lose teamServerUrl and teamUserId; teamId
  and teamRole stay because workspaces from a shared data directory still
  carry them and the viewer write guards read them. POST /api/workspaces
  ignores team fields.
- The sidecar bundle no longer marks the team packages as external.

The agent still references the TeamSync type in orchestrator.ts and
pattern-write-back.ts; those files are being rewritten in P1.5 and drop
it there.

Logs UF-030 and UF-031 (team sync and team policy defects found while
removing the code).
2026-10-24 12:17:41 +02:00

120 lines
5.0 KiB
JSON

{
"name": "waggle-os",
"version": "0.1.0",
"description": "Waggle OS — workspace-native AI agent platform with persistent memory",
"type": "module",
"private": true,
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"dev": "cd apps/web && npx vite",
"dev:web": "npm run dev",
"dev:server": "cd packages/server && npx tsx src/local/start.ts",
"build": "cd apps/web && npx tsc --noEmit -p tsconfig.app.json && npx vite build --outDir ../../dist --emptyOutDir",
"build:dev": "cd apps/web && npx vite build --mode development --outDir ../../dist --emptyOutDir",
"typecheck:web": "cd apps/web && npx tsc --noEmit -p tsconfig.app.json",
"preview": "cd apps/web && npx vite preview",
"build:packages": "cd packages/shared && npx tsc --build && cd ../memory-contract && npx tsc --build && cd ../memory-mem0 && npx tsc --build && cd ../hive-mind-core && npx tsc --build && cd ../core && npx tsc --build && cd ../wiki-compiler && npx tsc --build && cd ../marketplace && npx tsc --build && cd ../agent && npx tsc --build && cd ../server && npx tsc --build",
"build:hook-runtime": "node scripts/build-hook-runtime.mjs",
"build:all": "npm run build:packages && npm run build",
"dev:www": "npm run dev -w apps/www",
"build:www": "npm run build -w apps/www",
"lint": "eslint .",
"check:deps": "node scripts/check-workspace-deps.mjs",
"lint:no-invalid-snapshots": "node scripts/check-no-invalid-snapshots.mjs",
"ux:contrast": "node scripts/ux-gates/contrast-tokens.mjs",
"ux:color-guard": "node scripts/ux-gates/text-color-guard.mjs",
"ux:contrast-runtime": "node scripts/ux-gates/contrast-runtime.mjs",
"ux:warm-gate": "node scripts/ux-gates/warm-interaction-gate.mjs",
"test": "vitest run",
"test:critical": "vitest run --config vitest.critical.config.ts --coverage",
"test:perf": "vitest run --config vitest.perf.config.ts",
"test:infra": "vitest run --config vitest.infra.config.ts",
"test:watch": "vitest",
"test:e2e": "node node_modules/playwright/cli.js test tests/e2e -c playwright.config.ts --project=chromium --reporter=list --retries=0 --timeout=60000",
"test:e2e:smoke": "node node_modules/playwright/cli.js test tests/e2e/user-journeys.spec.ts --grep=\"J1:|J2:|J6:|J8:|J-mobile: Settings\" --project=chromium --reporter=list",
"test:visual": "node node_modules/playwright/cli.js test tests/visual --project=chromium --reporter=list",
"test:all": "node node_modules/playwright/cli.js test --grep-invert=\"persona:\" --reporter=list",
"test:retry": "node node_modules/playwright/cli.js test --last-failed --reporter=list",
"test:fast": "node node_modules/playwright/cli.js test tests/e2e -c playwright.config.ts --project=chromium --grep-invert=\"4\\.9|B8\\.5\" --reporter=list --retries=0 --timeout=60000",
"persona:seal": "tsx scripts/seal-persona-acceptance.ts"
},
"author": "Marko Markovic",
"license": "MIT",
"overrides": {
"protobufjs": ">=7.6.3 <8",
"tar": ">=7.5.21 <8",
"js-cookie": ">=3.0.6 <4",
"lodash": ">=4.17.24 <5",
"tmp": ">=0.2.6 <0.3",
"fastify": ">5.8.4 <6",
"@fastify/static": ">=10.1.2 <11",
"@clerk/fastify": ">=3.1.16 <4",
"@xmldom/xmldom": "0.8.13",
"@huggingface/transformers": {
"sharp": "0.35.3"
},
"brace-expansion@1": "1.1.18",
"brace-expansion@2": "2.1.4",
"brace-expansion@5": "5.0.9",
"fast-uri": "3.1.5",
"ip-address": "10.4.0",
"find-my-way": "9.7.0",
"js-yaml": "4.3.1",
"better-sqlite3": "12.6.2",
"next": "16.3.0"
},
"repository": {
"type": "git",
"url": "https://github.com/marolinik/waggle-os.git"
},
"keywords": [
"ai",
"agent",
"swarm",
"memory",
"llm",
"waggle"
],
"devDependencies": {
"@swc/core": "^1.15.21",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"axe-core": "^4.12.1",
"esbuild": "^0.27.4",
"js-yaml": "4.3.1",
"jsdom": "^20.0.3",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tsx": "4.21.0",
"typescript": "^5.8.3",
"@vitest/coverage-v8": "^3.2.7"
},
"dependencies": {
"@base-ui/react": "^1.3.0",
"@huggingface/transformers": "3.8.1",
"@tailwindcss/vite": "^4.2.2",
"@tauri-apps/api": "^2.10.1",
"@tauri-apps/plugin-shell": "^2.3.5",
"@vitejs/plugin-react": "5.1.1",
"sharp": "0.35.3",
"tailwind-merge": "^3.5.0"
},
"//optionalDependencies": "Platform-specific native binaries — optional so npm SKIPS them on os/cpu mismatch (Linux/macOS CI) instead of failing install with EBADPLATFORM.",
"optionalDependencies": {
"@rolldown/binding-win32-x64-msvc": "^1.0.0-rc.13",
"@rollup/rollup-darwin-arm64": "4.60.4",
"@rollup/rollup-darwin-x64": "4.60.4",
"@rollup/rollup-linux-x64-gnu": "4.60.4",
"@rollup/rollup-linux-x64-musl": "4.60.4",
"@rollup/rollup-win32-x64-msvc": "4.60.4",
"@swc/core-win32-x64-msvc": "^1.15.21",
"lightningcss-win32-x64-msvc": "^1.32.0"
}
}