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

@@ -5,8 +5,8 @@ import os from 'node:os';
import path from 'node:path';
import { describe, it } from 'vitest';
import { CostTracker } from '../packages/agent/src/cost-tracker.js';
import { MindDB } from '../packages/hive-mind-core/src/mind/db.js';
import { ExecutionTraceStore } from '../packages/hive-mind-core/src/mind/execution-traces.js';
import { WaggleDB } from '../packages/core/src/waggle-db.js';
import { ExecutionTraceStore } from '../packages/core/src/execution-traces.js';
import {
assertQualifiedChatCase,
assertQualifiedToolContextCase,
@@ -40,7 +40,7 @@ describe('qualify-smart-router helpers', () => {
const day = timestamp.slice(0, 10);
try {
await seedQualificationDailySpend(dataDir, 0.8, timestamp);
const db = new MindDB(path.join(dataDir, 'personal.mind'));
const db = WaggleDB.openInDataDir(dataDir);
try {
const persisted = new ExecutionTraceStore(db).getTotalCostSince(`${day}T00:00:00.000Z`);
assert.equal(persisted, 0.8);