feat: add flow manager, config seeding, and expanded integration tests

Flow Management Service:
- FlowManagerService (AsyncProcessor) handling list/get/start/stop flows
  and list/get blueprints via kebab-case wire format
- Default blueprint with all service topic mappings
- Pushes flow config to config service on start/stop

Config Seeding:
- seed-config.ts script pushes prompt templates (extract-relationships,
  extract-definitions, document-prompt, kg-prompt) and default flow
  definition via gateway REST API

Integration Tests:
- Librarian CRUD: add-document, list-documents, get-content, delete
- Agent query: verifies routing through gateway to agent service
- Skip flags: SKIP_LIBRARIAN=1, SKIP_AGENT=1

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
elpresidank 2026-04-06 00:37:03 -05:00
parent d1f24cf759
commit 7db5a1023e
8 changed files with 714 additions and 7 deletions

View file

@ -0,0 +1,14 @@
/**
* Start the flow manager service.
*
* Usage: pnpm tsx scripts/run-flow-manager.ts
*
* Env:
* NATS_URL (default: nats://localhost:4222)
*/
import { run } from "../packages/flow/src/flow-manager/service.js";
run().catch((err) => {
console.error("Flow manager failed:", err);
process.exit(1);
});