wishforge-ide/apps/api/package.json
eust-w ba5fe56e88 refactor: replace platform meta-evolution with versioned agent configuration
The meta-evolution machinery (failure clustering meta-tasks, signed
offline evaluation, shadow/canary stages, external release receipts,
evaluator identity and its UI) could never take effect: promotions were
written to the system tenant only, the benchmark/runner/observer it
depended on did not exist, and its statistical gates were effectively
unreachable. It is removed as agreed in docs/requirements.md section 3.

What remains is the part every run actually uses, now explicit:

- packages/evolution becomes packages/agent and keeps only the bundle
  schema, content digest and prompt assembly; consumers import it as the
  @wishforge/agent workspace package instead of by relative path.
- apps/api/src/domain/agent-bundles.ts: immutable, content-addressed
  agent configurations per tenant, with create, activate and rollback
  restricted to human owners/admins. A run pins the active version at
  submission; later activations never change it.
- /v1/agent-bundles routes replace /v1/evolution*; all /internal
  evolution routes, the evaluator service token and the rsi:rollout
  script are gone.
- Web: the experiment page becomes an "Agent 配置" page.
- Tests for the deleted modules are removed; control-plane tests cover
  version pinning, rollback and authorization.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:38:53 +08:00

34 lines
897 B
JSON

{
"name": "@wishforge/api",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx watch --env-file=../../.env.local src/main.ts",
"start": "tsx src/main.ts",
"typecheck": "tsc --noEmit",
"build": "tsc --noEmit"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.26.0",
"@nestjs/common": "^12.1.3",
"@nestjs/core": "^12.1.3",
"@nestjs/platform-express": "^12.1.3",
"@opentelemetry/api": "1.9.1",
"@opentelemetry/exporter-trace-otlp-http": "0.223.0",
"@opentelemetry/sdk-node": "0.223.0",
"@prometheus-io/client": "0.16.1",
"@temporalio/client": "^1.13.0",
"@wishforge/agent": "*",
"@wishforge/contracts": "*",
"jose": "^6.0.0",
"pg": "^8.16.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"zod": "^3.25.0"
},
"devDependencies": {
"@types/express": "^5.0.0"
}
}