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

@@ -32,6 +32,5 @@ Closes #
- [ ] New behavior has accompanying tests; bug fixes have a regression test.
- [ ] No secrets, API keys, or credentials are committed.
- [ ] Docs updated if behavior, commands, or configuration changed.
- [ ] If this touches the memory substrate (`packages/hive-mind-core`), I read
CLAUDE.md §7.5 (the monorepo is the source of truth; do not author
substrate features directly on the OSS mirror).
- [ ] If this touches memory, it goes through `MemoryStore` from
`@waggle/memory-contract` (AGENTS.md, section 3, rule 2).

View File

@@ -1,99 +0,0 @@
name: Deploy Landing Page
on:
push:
branches: [main]
paths:
- 'apps/www/**'
- 'docs/methodology.md'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/deploy-www.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: www-production
cancel-in-progress: true
jobs:
deployment_config:
runs-on: ubuntu-latest
environment:
name: production
url: https://waggle-os.ai
outputs:
configured: ${{ steps.vercel.outputs.configured }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
steps:
- name: Check Vercel configuration
id: vercel
shell: bash
run: |
if [[ -n "$VERCEL_TOKEN" && -n "$VERCEL_ORG_ID" && -n "$VERCEL_PROJECT_ID" ]]; then
echo "configured=true" >> "$GITHUB_OUTPUT"
else
echo "configured=false" >> "$GITHUB_OUTPUT"
echo "::warning::Landing page verified but not deployed: Vercel secrets are not configured."
fi
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Test public site
run: npm run test -w apps/www -- --reporter=dot
- name: Typecheck public site
run: npx tsc --noEmit --project apps/www/tsconfig.json
- name: Build public site
run: npm run build:www
deploy:
runs-on: ubuntu-latest
needs: [deployment_config, verify]
if: needs.deployment_config.outputs.configured == 'true'
environment:
name: production
url: https://waggle-os.ai
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Pull Vercel production environment
working-directory: apps/www
run: npx --yes vercel pull --yes --environment=production --token="$VERCEL_TOKEN"
- name: Build Vercel prebuilt output
working-directory: apps/www
run: npx --yes vercel build --prod --token="$VERCEL_TOKEN"
- name: Deploy Vercel prebuilt output
working-directory: apps/www
run: npx --yes vercel deploy --prebuilt --prod --token="$VERCEL_TOKEN"

View File

@@ -1,108 +0,0 @@
name: hive-mind-cli cross-platform install + smoke
# Wave 1 cleanup brief 2026-04-29 §3.5 — windows-latest CI regression test.
# Verifies that `npm install -g @waggle/hive-mind-cli` followed by `hive-mind-cli doctor`
# works without ENOENT, quarantine, or manual debug on Windows + macOS + Linux.
#
# Acceptance per feedback_memory_install_dead_simple binding rule:
# - All three OS matrix cells PASS green
# - Zero manual intervention required
# - First MCP-style tool call (the doctor smoke test) succeeds in <60s
on:
push:
branches: [main, 'feature/**']
paths:
- 'packages/hive-mind-cli/**'
- 'packages/hive-mind-shim-core/**'
- 'packages/hive-mind-core/**'
- 'packages/hive-mind-mcp-server/**'
- 'packages/hive-mind-wiki-compiler/**'
- 'packages/hive-mind-hooks-claude-code/**'
- 'vendor/pptxgenjs/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/hive-mind-cli-cross-platform.yml'
pull_request:
branches: [main]
paths:
- 'packages/hive-mind-cli/**'
- 'packages/hive-mind-shim-core/**'
- 'packages/hive-mind-core/**'
- 'vendor/pptxgenjs/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/hive-mind-cli-cross-platform.yml'
jobs:
install-and-smoke:
name: ${{ matrix.os }} install + smoke
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: ['20.x']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install workspace deps
run: npm ci
# hive-mind-core imports @waggle/shared, whose dist/ is gitignored and so
# absent on a clean checkout. hive-mind-core/tsconfig declares no project
# reference to it (the OSS subtree-split mirrors that tsconfig, so a
# ../shared reference would dangle in the export root), so `tsc --build`
# won't bootstrap it. Build shared first — same as ci.yml/tauri-build-pr.yml.
- name: Build @waggle/shared (hive-mind-core dep)
run: cd packages/shared && npx tsc --build
- name: Build hive-mind-core (substrate)
run: cd packages/hive-mind-core && npx tsc --build
- name: Build hive-mind-wiki-compiler
run: cd packages/hive-mind-wiki-compiler && npx tsc --build
- name: Build hive-mind-mcp-server
run: cd packages/hive-mind-mcp-server && npx tsc --build
- name: Build hive-mind-cli
run: cd packages/hive-mind-cli && npx tsc --build
- name: Run postinstall (bundles fix on win32, no-op POSIX)
run: node packages/hive-mind-cli/postinstall.cjs
- name: Init hive-mind data dir (scaffold personal.mind for the smoke)
run: node packages/hive-mind-cli/dist/index.js init
env:
HIVE_MIND_DATA_DIR: ${{ runner.temp }}/waggle-ci-home
- name: Smoke test — hive-mind-cli doctor (independent of upstream hook)
run: node packages/hive-mind-cli/dist/index.js doctor
env:
# doctor + init resolve the mind via HIVE_MIND_DATA_DIR (the CLI never
# reads WAGGLE_HOME — that prior env was a no-op). Isolate to a CI temp
# dir; init above scaffolds personal.mind there so doctor finds it.
HIVE_MIND_DATA_DIR: ${{ runner.temp }}/waggle-ci-home
- name: Doctor smoke result must be green (no quarantine, no ENOENT)
run: |
# If we got here, doctor exited 0 — green. Re-emit a confirmation marker
# so log scrapers see the success line clearly.
echo "::notice title=hive-mind-cli doctor passed::Cross-platform install + smoke verified on ${{ matrix.os }}"
shell: bash
acceptance:
name: Wave 1 acceptance gate
runs-on: ubuntu-latest
needs: install-and-smoke
steps:
- name: All matrix cells passed
run: echo "Wave 1 dead-simple acceptance criteria met across windows-latest + macos-latest + ubuntu-latest."

View File

@@ -104,11 +104,6 @@ jobs:
- name: Stage sidecar dependencies
run: node scripts/stage-sidecar-deps.mjs
- name: Verify packaged hook lifecycles
run: node node_modules/vitest/vitest.mjs run --root . --config vitest.config.ts packages/agent/tests/hook-packages-runtime.test.ts -t "runs staged Tauri hook lifecycles"
env:
WAGGLE_VERIFY_STAGED_HOOK_RUNTIME: '1'
- name: Build frontend
run: cd apps/web && npx vite build

View File

@@ -99,11 +99,6 @@ jobs:
- name: Stage sidecar dependencies
run: node scripts/stage-sidecar-deps.mjs
- name: Verify packaged hook lifecycles
run: node node_modules/vitest/vitest.mjs run --root . --config vitest.config.ts packages/agent/tests/hook-packages-runtime.test.ts -t "runs staged Tauri hook lifecycles"
env:
WAGGLE_VERIFY_STAGED_HOOK_RUNTIME: '1'
- name: Build frontend
run: cd apps/web && npx vite build