learning_ai_common_plat/services/platform-service/src/modules/agents
saravanakumardb1 84dc348687 feat(platform): Phase 2 — Agent Runtime Orchestration
- New: agents/executor.ts — full agent execution engine
  - Multi-step pipeline: prompt_assembly → tool_execution → finalize
  - AbortController-based cancellation with in-memory tracking
  - Token usage aggregation across tool calls
  - Review-required tool gating (pauses run, returns review_required)
  - Step event streaming for SSE consumers
- New: agents/tool-registry.ts — global tool registry
  - Register/list/validate tools with risk levels + review flags
- New: agents/executor-routes.ts — 11 endpoints, 14 tests
  - POST /agents/execute, POST /runs/:id/cancel
  - GET /agents/active-runs, GET /runs/:id/children, GET /runs/:id/tree
  - GET /agents/:id/metrics, GET /runs/:id/stream (SSE)
  - GET /tools, POST /tools/validate, POST /agents/:id/schedule
- Enhanced: runs/repository.ts — added listChildRuns() for DAG query
- 1,307 tests passing (14 new)
2026-03-20 03:20:31 -07:00
..
executor-routes.test.ts feat(platform): Phase 2 — Agent Runtime Orchestration 2026-03-20 03:20:31 -07:00
executor-routes.ts feat(platform): Phase 2 — Agent Runtime Orchestration 2026-03-20 03:20:31 -07:00
executor.ts feat(platform): Phase 2 — Agent Runtime Orchestration 2026-03-20 03:20:31 -07:00
repository.test.ts feat(platform-service): add agent registry foundation 2026-03-15 09:05:39 +00:00
repository.ts feat(agents): deepen agent registry — version lifecycle, lookup by key, delete 2026-03-20 00:39:24 -07:00
routes.test.ts fix(agents): use NotFoundError for missing resources, add deprecate+published tests 2026-03-20 01:02:36 -07:00
routes.ts fix(agents): use NotFoundError for missing resources, add deprecate+published tests 2026-03-20 01:02:36 -07:00
tool-registry.ts feat(platform): Phase 2 — Agent Runtime Orchestration 2026-03-20 03:20:31 -07:00
types.ts feat(platform-service): add agent registry foundation 2026-03-15 09:05:39 +00:00