mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 17:39:39 +02:00
Fix critical bug where all FlowProcessor services shared the same spec
names ("request"/"response"), causing them to steal each other's NATS
topics. Now each service uses unique spec names matching the flow config
topic keys (e.g., "text-completion-request", "prompt-request",
"agent-request").
Fix librarian NATS consumer timeout (500ms → 2000ms, below NATS minimum).
Update seed-config and test-pipeline with correct flow topic mappings.
Add prompt template runner script.
Smoke test results: 11/11 passing (config CRUD, WebSocket, LLM,
librarian CRUD). Agent routing verified via manual curl test.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
306 B
TypeScript
14 lines
306 B
TypeScript
/**
|
|
* Start the prompt template service.
|
|
*
|
|
* Usage: pnpm tsx scripts/run-prompt.ts
|
|
*
|
|
* Env:
|
|
* NATS_URL (default: nats://localhost:4222)
|
|
*/
|
|
import { run } from "../packages/flow/src/prompt/template.js";
|
|
|
|
run().catch((err) => {
|
|
console.error("Prompt service failed:", err);
|
|
process.exit(1);
|
|
});
|