Function
node
(statementId: string, refreshInterval = 0)
Source from the content-addressed store, hash-verified
| 2 | import { createQueryManager, type QueryNode, type ToolProvider } from "../queryManager"; |
| 3 | |
| 4 | function node(statementId: string, refreshInterval = 0): QueryNode { |
| 5 | return { |
| 6 | statementId, |
| 7 | toolName: "get_data", |
| 8 | args: {}, |
| 9 | defaults: {}, |
| 10 | deps: null, |
| 11 | refreshInterval, |
| 12 | complete: true, |
| 13 | }; |
| 14 | } |
| 15 | |
| 16 | /** Flush pending microtasks so in-flight fetches settle, without advancing fake timers. */ |
| 17 | async function flushMicrotasks() { |
Tested by
no test coverage detected