chore: remove the packages excluded from the community edition (P2.2)

Delete apps/www, packages/admin-web, every packages/hive-mind-* package,
packages/memory-mcp and packages/wiki-compiler (ADR-0002), with what
existed only for them: their tests kept outside the packages, the hook
runtime build, the hive-mind OSS subtree-split and drift scripts, the
www deploy and hive-mind-cli workflows, the staged hook lifecycle step
in the Windows desktop workflows, and the root dev:www, build:www and
build:hook-runtime scripts.

Drop the matching excludes from the Vitest, ESLint and workspace
dependency checks, the next override, and the extraneous workspace
entries from package-lock.json. The smart-router qualification seed
now writes its spend to waggle.db, where the sidecar has read cost
traces since P1.5.
This commit is contained in:
shumeiko.it
2026-11-01 00:21:10 +01:00
parent a8250cb375
commit 46687a823a
601 changed files with 131 additions and 93709 deletions

View File

@@ -9,11 +9,10 @@ FROM node:20-alpine AS builder
WORKDIR /app
# Copy the full workspace before install. The monorepo has 27 workspaces
# (packages/* + apps/*); a hand-maintained COPY list drifts (it had referenced
# the nonexistent packages/ui and omitted every hive-mind-* package), so copy
# wholesale for correctness. Trades some layer-cache granularity for not
# silently breaking when a workspace is added.
# Copy the full workspace before install. A hand-maintained COPY list of the
# workspaces (packages/* + apps/*) drifts, so copy wholesale for correctness.
# Trades some layer-cache granularity for not silently breaking when a
# workspace is added.
COPY package.json package-lock.json* ./
COPY packages packages
COPY apps apps
@@ -26,9 +25,8 @@ COPY vitest*.ts ./
RUN npm install --ignore-scripts 2>/dev/null || npm install
# Build workspace packages THEN the web UI.
# build:all → build:packages (hive-mind-core → shared → core → agent → server)
# then the apps/web Vite build to root /dist. @waggle/hive-mind-core emits its
# dist/ here; @waggle/core imports it as dist/ at runtime, so this is required.
# build:all → build:packages (shared → core → agent → server)
# then the apps/web Vite build to root /dist.
RUN npm run build:all
# Team mode is left out of build:packages (ADR-0003); build what this image runs.
RUN cd packages/waggle-dance && npx tsc --build --force && cd ../worker && npm run build
@@ -61,8 +59,7 @@ COPY --from=native-builder /app/node_modules node_modules
COPY --from=native-builder /app/package.json package.json
# Built workspace packages from the builder — carries emitted dist/ alongside
# src, so @waggle/hive-mind-core/dist (a runtime dep of @waggle/core) is present.
# (The old Dockerfile copied source packages from the build context here, which
# src. (The old Dockerfile copied source packages from the build context here, which
# dropped every freshly-built dist/ and broke runtime module resolution.)
COPY --from=builder /app/packages packages