File size: 4,899 Bytes
5871090
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
  "name": "@workspace/api-server",
  "version": "0.0.0",
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "export NODE_ENV=development && export TOOL_GRAPH_ENABLED=\"${TOOL_GRAPH_ENABLED:-1}\" && pnpm run build && bash ../../scripts/start-api-server.sh",
    "build": "node ./build.mjs",
    "start": "node --enable-source-maps ./dist/index.mjs",
    "typecheck": "tsc -p tsconfig.json --noEmit",
    "backfill:causal-store": "node ./scripts/backfill-causal-store.mjs",
    "ingest:drugs": "node ./scripts/ingest-drugs.mjs",
    "seed:prod": "node ./scripts/seed-prod.mjs",
    "smoke:evolution": "tsx src/lib/evolution/__smoke__/run-smoke.ts",
    "smoke:evolution-scheduler": "tsx src/lib/evolution/__smoke__/run-scheduler-smoke.ts",
    "test:unit": "node --test src/lib/__tests__/memory.unit.test.mjs",
    "test:integration": "node --test src/lib/__tests__/memory.test.mjs",
    "test:agent": "node --import tsx --test src/lib/agent-supervisor.test.ts",
    "test:drug-store": "node --import tsx --test src/lib/__tests__/drug-store.test.ts",
    "test:codex-cli": "node --import tsx --test src/llm/__tests__/codex-cli.test.ts",
    "test:latency-alert": "node --import tsx --test src/llm/__tests__/latency-alert.test.ts",
    "test:sample-persistence": "node --import tsx --test src/llm/__tests__/sample-persistence.test.ts",
    "test:gateway": "node --import tsx --test src/llm/__tests__/gateway.test.ts",
    "test:admin-providers-health": "node --import tsx --test src/routes/__tests__/admin-providers-health.test.ts",
    "test:evolution-shadow-overview": "node --import tsx --test src/routes/__tests__/evolution-shadow-overview.test.ts",
    "test:evolution-promote": "node --import tsx --test src/routes/__tests__/evolution-promote.test.ts",
    "test": "node --import tsx --test src/lib/agent-supervisor.test.ts src/lib/__tests__/drug-store.test.ts src/lib/__tests__/research-bridge.test.ts src/lib/__tests__/tool-graph.test.ts src/lib/__tests__/shadow-budget.integration.test.ts src/lib/__tests__/shadow-sampling-load.test.ts src/lib/__tests__/dispatch-validation.test.ts src/lib/__tests__/promote-variant-tx.test.ts src/lib/__tests__/private-namespace.test.ts src/lib/tool-network/__tests__/graph-executor.test.ts src/lib/capability/__tests__/lifecycle-transitions.test.ts src/lib/capability/__tests__/inner-loop-record.test.ts src/lib/capability/__tests__/data-foundation-interface.test.ts src/lib/capability/__tests__/loader-boot.test.ts src/lib/evolution/__tests__/hyperparameter-grid.test.ts src/llm/__tests__/codex-cli.test.ts src/llm/__tests__/latency-alert.test.ts src/llm/__tests__/sample-persistence.test.ts src/llm/__tests__/gateway.test.ts src/routes/__tests__/auth-flow.test.ts src/routes/__tests__/admin-providers-health.test.ts src/routes/__tests__/evolution-budget-trend.test.ts src/routes/__tests__/evolution-shadow-overview.test.ts src/routes/__tests__/evolution-network-detail.test.ts src/routes/__tests__/evolution-promote.test.ts src/routes/__tests__/networks.test.ts src/routes/__tests__/competition-feedback-import.test.ts src/lib/evolution/__tests__/external-truth-fitness.test.ts src/lib/capability/external-knowledge/__tests__/literature.adapter.test.ts src/lib/capability/external-knowledge/__tests__/budget-guard.test.ts src/lib/capability/external-knowledge/__tests__/router.test.ts src/lib/capability/external-knowledge/__tests__/stub-adapters.test.ts src/lib/capability/external-knowledge/__tests__/coverage-extras.test.ts src/lib/capability/external-knowledge/__tests__/adapter-coverage.test.ts && node --test src/lib/__tests__/memory.unit.test.mjs src/lib/__tests__/memory.test.mjs src/lib/__tests__/shadow-budget.unit.test.mjs",
    "test:coverage": "c8 --reporter=text --reporter=html --reporter=lcov --report-dir=../../coverage/html/api-server pnpm run test"
  },
  "dependencies": {
    "@anthropic-ai/sdk": "^0.90.0",
    "@workspace/api-zod": "workspace:*",
    "@workspace/db": "workspace:*",
    "@workspace/networks": "workspace:*",
    "adm-zip": "^0.5.17",
    "archiver": "^7.0.1",
    "bcrypt": "^6.0.0",
    "cookie-parser": "^1.4.7",
    "cors": "^2",
    "drizzle-orm": "catalog:",
    "zod": "catalog:",
    "express": "^5",
    "express-rate-limit": "^8.3.2",
    "jsonwebtoken": "^9.0.3",
    "multer": "^2.1.1",
    "openai": "^6.34.0",
    "pg": "^8.20.0",
    "pino": "^9",
    "pino-http": "^10",
    "ulid": "^3.0.2"
  },
  "devDependencies": {
    "@types/adm-zip": "^0.5.8",
    "@types/archiver": "^7.0.0",
    "@types/bcrypt": "^6.0.0",
    "@types/cookie-parser": "^1.4.10",
    "@types/cors": "^2.8.19",
    "@types/express": "^5.0.6",
    "@types/jsonwebtoken": "^9.0.10",
    "@types/multer": "^2.1.0",
    "@types/node": "catalog:",
    "c8": "^11.0.0",
    "esbuild": "^0.27.3",
    "esbuild-plugin-pino": "^2.3.3",
    "pino-pretty": "^13",
    "thread-stream": "3.1.0",
    "tsx": "catalog:"
  }
}