(input?: { mcpInstructions?: MCP.ServerInstructions[]; processor?: "blocking" })
| 209 | ]) |
| 210 | |
| 211 | function makePrompt(input?: { mcpInstructions?: MCP.ServerInstructions[]; processor?: "blocking" }) { |
| 212 | const replacements = [ |
| 213 | [SessionSummary.node, summary], |
| 214 | [LSP.node, lsp], |
| 215 | [MCP.node, makeMcp(input?.mcpInstructions)], |
| 216 | [RuntimeFlags.node, runtimeFlags], |
| 217 | ] as const |
| 218 | if (input?.processor === "blocking") { |
| 219 | return LayerNode.compile(promptRoot, [...replacements, [SessionProcessor.node, blockingProcessor]]) |
| 220 | } |
| 221 | return LayerNode.compile(promptRoot, replacements) |
| 222 | } |
| 223 | |
| 224 | function makeHttp(input?: { mcpInstructions?: MCP.ServerInstructions[]; processor?: "blocking" }) { |
| 225 | const root = LayerNode.group([promptRoot, testLLMServerNode]) |
no test coverage detected