caelum0x 5aba6af6e4 feat(mcp-real-servers): back agent-mcp git_nexus/tasks/runs tools with real engines
Make the @recoder/agent-mcp in-process tool servers real (behind injected ports so the package
stays runtime-agnostic; 10 tests, check-types 0, tsup build green):
- git_nexus server: search_code/impact_report/context_pack/get_owners/get_related_tests now call
  the REAL @recoder/recodergit indexer (createRepoIndexer + scanRepo + computeImpact via a
  GitNexusPort). context_pack over a fixture repo returns real dependency edges (a->b->c, >=2);
  impact_report yields real reverse reachability; search_code greps real indexed files.
- tasks server: list/get/create/update/claim over an injected TaskRepositoryPort with legal
  transitions (agent-os TaskService); claim walks created->compiled->routed->claimed + persists.
- runs server: list/get/transition/append_log over an injected RunRepositoryPort; rejects an
  illegal created->completed truthfully, applies legal claimed->running, appends real RunEvents.
- memory + work_locks were ALREADY real (re-proven, unchanged).

Honest follow-up: the concrete agent-os repo adapters + git_nexus repo-root resolver are injected
by the host (docker-backend interop-host registerInProcTool) — that host-side injection is the
last mile to full product-liveness (kept out of the package to preserve runtime-agnosticism).
2026-06-28 18:36:48 +03:00

36 lines
917 B
JSON

{
"name": "@recoder/agent-mcp",
"version": "0.1.0",
"description": "MCP registry and permission contracts for Recoder Agent OS",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"files": ["dist"],
"scripts": {
"build": "tsup",
"check-types": "tsc --noEmit",
"clean": "rm -rf .turbo dist node_modules",
"test": "node --test --import tsx src/**/*.test.ts"
},
"dependencies": {
"@recoder/agent-memory": "workspace:*",
"@recoder/agent-os": "workspace:*",
"@recoder/agent-policy": "workspace:*",
"@recoder/recodergit": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.10.0",
"tsup": "^8.0.0",
"tsx": "^4.7.0",
"typescript": "^5.0.0"
}
}