uni-flow 公开 API(中文注解) / OrchestratorServer
Class: OrchestratorServer
Defined in: orchestrator/server.ts:72
轻量 Orchestrator HTTP 服务(Node 内置 http,无需 Express/Fastify)。
路由:
GET /healthGET /workflowsPOST /workflows/from-yamlPOST /workflows/:id/runsGET /workflows/:id/runs/:runIdPOST /workflows/:id/runs/:runId/resumePOST /workflows/:id/runs/:runId/hitlGET /memory/search?q=...POST /mcp(JSON-RPC MCP tools/call)
Constructors
Constructor
new OrchestratorServer(
options):OrchestratorServer
Defined in: orchestrator/server.ts:82
Parameters
options
registry 与监听地址
Returns
OrchestratorServer
Methods
start()
start():
Promise<{host:string;port:number;url:string; }>
Defined in: orchestrator/server.ts:94
开始监听。
Returns
Promise<{ host: string; port: number; url: string; }>
实际 host / port / url
stop()
stop():
Promise<void>
Defined in: orchestrator/server.ts:119
停止监听并关闭底层 HTTP server。
Returns
Promise<void>