Files
waggle-os/package.json
shumeiko.it 23431550ae build: one tsc -b build and a source export condition (P2.1)
- tsconfig.build.json references the nine in-scope packages; each package
  is composite and references the workspace packages it depends on.
  build:packages is now `tsc -b tsconfig.build.json` instead of a chain
  of cd commands.
- Every in-scope package exports its TypeScript entry under a `source`
  condition next to the dist/ entries. Vitest, tsx (dev:server, the
  Tauri dev launch, the e2e server), the sidecar and launcher bundles and
  the web app resolve it, so none of them needs build:packages first or
  can pick up a stale dist/. The vitest src aliases remain only for the
  excluded packages that have no source export.
- Published packages with a files list (agent, cli, marketplace) pack
  src/ too, so the source condition never points at a missing file.
- tsconfig.tests.json and `npm run typecheck:tests` type-check the test
  suites of the in-scope packages. They report 426 existing errors, so
  the CI step is advisory for now.
- The root test run leaves out the excluded and postponed packages
  (hive-mind-*, memory-mcp, wiki-compiler, team-server, waggle-dance,
  worker, weaver); they are not built either.
- CI runs the test job on Ubuntu, macOS and Windows with Node 22.23.2
  (ADR-0008), and no longer builds the hook runtime and the memory MCP
  server.
2026-10-24 17:14:29 +02:00

121 lines
4.8 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 --conditions=source 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",
"typecheck:tests": "tsc -p tsconfig.tests.json",
"preview": "cd apps/web && npx vite preview",
"build:packages": "tsc -b tsconfig.build.json",
"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"
}
}