| 222 | } |
| 223 | |
| 224 | function makeHttp(input?: { mcpInstructions?: MCP.ServerInstructions[]; processor?: "blocking" }) { |
| 225 | const root = LayerNode.group([promptRoot, testLLMServerNode]) |
| 226 | const replacements = [ |
| 227 | [SessionSummary.node, summary], |
| 228 | [LSP.node, lsp], |
| 229 | [MCP.node, makeMcp(input?.mcpInstructions)], |
| 230 | [RuntimeFlags.node, runtimeFlags], |
| 231 | ] as const |
| 232 | if (input?.processor === "blocking") { |
| 233 | return LayerNode.compile(root, [...replacements, [SessionProcessor.node, blockingProcessor]]) |
| 234 | } |
| 235 | return LayerNode.compile(root, replacements) |
| 236 | } |
| 237 | |
| 238 | function makeHttpNoLLMServer(input?: { mcpInstructions?: MCP.ServerInstructions[]; processor?: "blocking" }) { |
| 239 | return makePrompt(input) |