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).
37 lines
1.8 KiB
TypeScript
37 lines
1.8 KiB
TypeScript
/**
|
|
* Test suites that hard-require live infra — PostgreSQL on host port 5434 +
|
|
* Redis on 6381 (the docker-compose-provisioned services). Without them they
|
|
* fail deterministically (ECONNREFUSED / `beforeAll(buildServer)` timeouts),
|
|
* NOT flakily — see docs/audits/2026-06-01-full-repo-verification-sweep.md.
|
|
*
|
|
* The default `npm test` gate EXCLUDES these (vitest.config.ts) so it runs
|
|
* green on a box without Docker, including bare CI. `npm run test:infra` runs
|
|
* ONLY these — locally (or a future Docker-provisioned CI lane) after
|
|
* `docker-compose up -d postgres redis` + a schema migration.
|
|
*
|
|
* Canonical list captured from a no-Docker full run on 2026-06-01 (20 files).
|
|
* When adding a new infra-dependent suite, add its path here.
|
|
*/
|
|
export const INFRA_TEST_SUITES = [
|
|
'packages/team-server/tests/audit.test.ts',
|
|
'packages/team-server/tests/auth.test.ts',
|
|
'packages/team-server/tests/cron.test.ts',
|
|
'packages/team-server/tests/proactive.test.ts',
|
|
'packages/team-server/tests/server.test.ts',
|
|
'packages/team-server/tests/daemons/hive-mind.test.ts',
|
|
'packages/team-server/tests/daemons/scout.test.ts',
|
|
'packages/team-server/tests/daemons/subconscious.test.ts',
|
|
'packages/team-server/tests/db/schema.test.ts',
|
|
'packages/team-server/tests/routes/agents.test.ts',
|
|
'packages/team-server/tests/routes/analytics.test.ts',
|
|
'packages/team-server/tests/routes/capability-governance.test.ts',
|
|
'packages/team-server/tests/routes/knowledge.test.ts',
|
|
'packages/team-server/tests/routes/messages.test.ts',
|
|
'packages/team-server/tests/routes/resources.test.ts',
|
|
'packages/team-server/tests/routes/tasks.test.ts',
|
|
'packages/team-server/tests/routes/teams.test.ts',
|
|
'packages/team-server/tests/ws/gateway.test.ts',
|
|
'packages/worker/tests/job-processor.test.ts',
|
|
'packages/team-server/tests/integration/m3-full-stack.test.ts',
|
|
] as const;
|