yaml-flow 8.5.3 → 8.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/browser/asset-integrity.json +3 -3
  2. package/examples/board/demo-shell-with-server.html +2 -2
  3. package/examples/board/doc.html +2 -2
  4. package/examples/board/server/board-server.js +773 -13
  5. package/examples/board/server/board-worker/task-executor.js +166 -51
  6. package/examples/board/server/chat-flow/copilot-chat/assistant.js +25 -12
  7. package/examples/board/server/chat-flow/copilot-chat/probe.js +7 -0
  8. package/examples/board/server/chat-flow/copilot-chat/shared.js +97 -0
  9. package/examples/board/server/chat-flow/flow-steps.json +109 -51
  10. package/examples/board/server-config.json +2 -0
  11. package/examples/board/test/server-http-test.js +878 -67
  12. package/examples/board-local/demo-shell-localstorage.html +3 -3
  13. package/lib/{artifacts-store-lib-CVgtQrNZ.d.cts → artifacts-store-lib-BR-Samty.d.cts} +1 -1
  14. package/lib/{artifacts-store-lib-D-k-E8Vy.d.ts → artifacts-store-lib-DT7XlWUL.d.ts} +1 -1
  15. package/lib/artifacts-store-public.cjs +1 -1
  16. package/lib/artifacts-store-public.d.cts +3 -3
  17. package/lib/artifacts-store-public.d.ts +3 -3
  18. package/lib/artifacts-store-public.js +1 -1
  19. package/lib/batch/index.cjs +1 -1
  20. package/lib/batch/index.js +1 -1
  21. package/lib/board-live-cards-mcp.cjs +1 -1
  22. package/lib/board-live-cards-mcp.d.cts +87 -34
  23. package/lib/board-live-cards-mcp.d.ts +87 -34
  24. package/lib/board-live-cards-mcp.js +1 -1
  25. package/lib/board-live-cards-node.cjs +8 -16
  26. package/lib/board-live-cards-node.d.cts +52 -14
  27. package/lib/board-live-cards-node.d.ts +52 -14
  28. package/lib/board-live-cards-node.js +8 -16
  29. package/lib/{board-live-cards-public-BGS22cMb.d.ts → board-live-cards-public-BMUIPOrc.d.ts} +90 -30
  30. package/lib/board-live-cards-public-async-DKZqbJVU.d.ts +256 -0
  31. package/lib/board-live-cards-public-async-dMWNbWq6.d.cts +256 -0
  32. package/lib/{board-live-cards-public-B13InXhC.d.cts → board-live-cards-public-wkNmBIRC.d.cts} +90 -30
  33. package/lib/board-live-cards-public.cjs +1 -2
  34. package/lib/board-live-cards-public.d.cts +2 -2
  35. package/lib/board-live-cards-public.d.ts +2 -2
  36. package/lib/board-live-cards-public.js +1 -2
  37. package/lib/board-live-cards-server-runtime.cjs +1 -7
  38. package/lib/board-live-cards-server-runtime.d.cts +7 -6
  39. package/lib/board-live-cards-server-runtime.d.ts +7 -6
  40. package/lib/board-live-cards-server-runtime.js +1 -7
  41. package/lib/board-livegraph-runtime/index.cjs +1 -2
  42. package/lib/board-livegraph-runtime/index.js +1 -2
  43. package/lib/board-worker-adapter.cjs +22 -7
  44. package/lib/board-worker-adapter.d.cts +28 -3
  45. package/lib/board-worker-adapter.d.ts +28 -3
  46. package/lib/board-worker-adapter.js +22 -7
  47. package/lib/card-compute/index.cjs +1 -9
  48. package/lib/card-compute/index.js +1 -9
  49. package/lib/card-store-public.cjs +1 -1
  50. package/lib/card-store-public.d.cts +2 -2
  51. package/lib/card-store-public.d.ts +2 -2
  52. package/lib/card-store-public.js +1 -1
  53. package/lib/card-validation.cjs +1 -9
  54. package/lib/card-validation.js +1 -9
  55. package/lib/{chat-storage-lib-0imhRX3l.d.cts → chat-storage-lib-BIUbE-fM.d.cts} +1 -1
  56. package/lib/{chat-storage-lib-CJn7a6OH.d.ts → chat-storage-lib-BlG-sobS.d.ts} +1 -1
  57. package/lib/chat-store-public.cjs +1 -1
  58. package/lib/chat-store-public.d.cts +3 -3
  59. package/lib/chat-store-public.d.ts +3 -3
  60. package/lib/chat-store-public.js +1 -1
  61. package/lib/chunk-2MZUYY65.cjs +2 -0
  62. package/lib/chunk-5EA2ESS4.cjs +16 -0
  63. package/lib/chunk-76ON3V7R.js +2 -0
  64. package/lib/chunk-7BKNHFNH.js +2 -0
  65. package/lib/chunk-BQS3EIEK.js +3 -0
  66. package/lib/chunk-CIAJNUR4.js +2 -0
  67. package/lib/chunk-DAXACY63.js +2 -0
  68. package/lib/chunk-FW4363Y4.js +2 -0
  69. package/lib/chunk-FZ2SBU5M.js +3 -0
  70. package/lib/chunk-G4XXRHL2.cjs +3 -0
  71. package/lib/chunk-GJJMEAVN.cjs +2 -0
  72. package/lib/chunk-GNFE24S7.cjs +2 -0
  73. package/lib/chunk-GYQXDNNI.cjs +2 -0
  74. package/lib/chunk-H5HBXPOI.cjs +3 -0
  75. package/lib/chunk-H5KD3JPY.cjs +2 -0
  76. package/lib/chunk-HEEDJEKM.js +2 -0
  77. package/lib/chunk-HLJH7LGW.js +16 -0
  78. package/lib/chunk-IXZG74EW.cjs +2 -0
  79. package/lib/chunk-JAL25FGA.cjs +2 -0
  80. package/lib/chunk-JM5EKT57.js +2 -0
  81. package/lib/chunk-JMDHDY6M.js +2 -0
  82. package/lib/chunk-KBELAKIY.js +2 -0
  83. package/lib/chunk-KHJABJ45.cjs +3 -0
  84. package/lib/chunk-KLRUISRY.cjs +2 -0
  85. package/lib/chunk-KQX6R4PV.cjs +8 -0
  86. package/lib/chunk-LODXIALE.cjs +2 -0
  87. package/lib/chunk-MLVTJASJ.js +2 -0
  88. package/lib/chunk-MNEOJWPS.js +10 -0
  89. package/lib/chunk-N6P2JW4W.js +3 -0
  90. package/lib/chunk-NMZ6XNLB.cjs +3 -0
  91. package/lib/chunk-OEFTOO47.cjs +3 -0
  92. package/lib/chunk-OPNGCSXJ.js +2 -0
  93. package/lib/chunk-OSWJKJLB.js +8 -0
  94. package/lib/chunk-P7ZCDICS.cjs +2 -0
  95. package/lib/chunk-PBCDDO4V.cjs +2 -0
  96. package/lib/chunk-PMUSJQSR.cjs +2 -0
  97. package/lib/chunk-Q6H7NINN.cjs +5 -0
  98. package/lib/chunk-QWBNDVUA.js +5 -0
  99. package/lib/chunk-S6DRP2HX.cjs +2 -0
  100. package/lib/chunk-SCWHDI3I.js +2 -0
  101. package/lib/chunk-SFVO2LB2.cjs +3 -0
  102. package/lib/chunk-U2N6MCD5.cjs +2 -0
  103. package/lib/chunk-UJ7ZTV4J.cjs +10 -0
  104. package/lib/chunk-VGT3TRQG.js +3 -0
  105. package/lib/chunk-VLBB3D6B.js +3 -0
  106. package/lib/chunk-VMW4Z6EF.js +3 -0
  107. package/lib/chunk-WDPOGXTY.js +2 -0
  108. package/lib/chunk-WOALA3V5.cjs +2 -0
  109. package/lib/chunk-X3LC4LII.js +2 -0
  110. package/lib/chunk-XQRNDX4Q.js +2 -0
  111. package/lib/chunk-YGKDQLYP.js +2 -0
  112. package/lib/chunk-YMEIPKLW.cjs +2 -0
  113. package/lib/cloud-storage.cjs +2 -0
  114. package/lib/cloud-storage.d.cts +177 -0
  115. package/lib/cloud-storage.d.ts +177 -0
  116. package/lib/cloud-storage.js +2 -0
  117. package/lib/config/index.cjs +1 -1
  118. package/lib/config/index.js +1 -1
  119. package/lib/continuous-event-graph/index.cjs +1 -2
  120. package/lib/continuous-event-graph/index.js +1 -2
  121. package/lib/event-graph/index.cjs +1 -22
  122. package/lib/event-graph/index.js +1 -22
  123. package/lib/execution-refs.cjs +1 -2
  124. package/lib/execution-refs.d.cts +3 -2
  125. package/lib/execution-refs.d.ts +3 -2
  126. package/lib/execution-refs.js +1 -2
  127. package/lib/index.cjs +2 -24
  128. package/lib/index.d.cts +1 -1
  129. package/lib/index.d.ts +1 -1
  130. package/lib/index.js +2 -24
  131. package/lib/{types-CIgsh56O.d.cts → queue-lane-registry-BPKWWgd4.d.cts} +66 -14
  132. package/lib/{types-30R357js.d.ts → queue-lane-registry-Be6c0ftj.d.ts} +66 -14
  133. package/lib/server-runtime/index.cjs +1 -7
  134. package/lib/server-runtime/index.d.cts +18 -7
  135. package/lib/server-runtime/index.d.ts +18 -7
  136. package/lib/server-runtime/index.js +1 -7
  137. package/lib/step-machine/index.cjs +1 -11
  138. package/lib/step-machine/index.js +1 -11
  139. package/lib/step-machine-public/index.cjs +1 -4
  140. package/lib/step-machine-public/index.d.cts +1 -1
  141. package/lib/step-machine-public/index.d.ts +1 -1
  142. package/lib/step-machine-public/index.js +1 -4
  143. package/lib/{storage-interface-B2WD9D5n.d.cts → storage-interface-BFiD3kyB.d.cts} +38 -1
  144. package/lib/{storage-interface-B2WD9D5n.d.ts → storage-interface-BFiD3kyB.d.ts} +38 -1
  145. package/lib/stores/index.cjs +1 -2
  146. package/lib/stores/index.d.cts +1 -1
  147. package/lib/stores/index.d.ts +1 -1
  148. package/lib/stores/index.js +1 -2
  149. package/lib/stores/kv.cjs +1 -2
  150. package/lib/stores/kv.d.cts +1 -1
  151. package/lib/stores/kv.d.ts +1 -1
  152. package/lib/stores/kv.js +1 -2
  153. package/lib/stores/memory.cjs +1 -1
  154. package/lib/stores/memory.js +1 -1
  155. package/package.json +7 -16
  156. package/cli/board-live-cards-lib-COi4bSpk.d.ts +0 -322
  157. package/cli/browser-api/board-live-cards-browser-adapter.d.ts +0 -36
  158. package/cli/browser-api/board-live-cards-browser-adapter.js +0 -4
  159. package/cli/browser-api/card-store-browser-api.d.ts +0 -25
  160. package/cli/browser-api/card-store-browser-api.js +0 -2
  161. package/cli/browser-api/jsonata-sync.cjs +0 -7623
  162. package/cli/bundled/artifacts-store-cli.mjs +0 -12
  163. package/cli/bundled/batch-runner-cli.mjs +0 -3
  164. package/cli/bundled/board-live-cards-cli.mjs +0 -29
  165. package/cli/bundled/card-store-cli.mjs +0 -154
  166. package/cli/bundled/chat-store-cli.mjs +0 -16
  167. package/cli/bundled/jsonata-sync.cjs +0 -7623
  168. package/cli/bundled/step-machine-cli.mjs +0 -150
  169. package/cli/execution-interface-BCIhu1gO.d.ts +0 -442
  170. package/cli/types-H3EMBPY2.d.ts +0 -398
  171. package/examples/board/server/README-mcp-api.md +0 -690
  172. package/examples/board/test/server-http-mcp-test.js +0 -1280
  173. package/lib/board-livegraph-runtime/jsonata-sync.cjs +0 -7623
  174. package/lib/card-compute/jsonata-sync.cjs +0 -7623
  175. package/lib/continuous-event-graph/jsonata-sync.cjs +0 -7623
  176. package/lib/server-runtime/jsonata-sync.cjs +0 -7623
@@ -1,18 +1,19 @@
1
- import { a as ArtifactsStore } from './artifacts-store-lib-CVgtQrNZ.cjs';
2
- export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-CVgtQrNZ.cjs';
3
- import { I as InvocationAdapter } from './types-CIgsh56O.cjs';
4
- export { D as DescribeEnvelope } from './types-CIgsh56O.cjs';
5
- import { a as KindValueRef } from './storage-interface-B2WD9D5n.cjs';
6
- export { p as parseRef, s as serializeRef } from './storage-interface-B2WD9D5n.cjs';
7
- import { d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter } from './board-live-cards-public-B13InXhC.cjs';
8
- export { f as BOARD_GRAPH_KEY, g as BoardLiveCardsNonCorePublic, c as BoardLiveCardsPublic, a as CommandInput, C as CommandResult, E as EMPTY_CONFIG, L as LiveCard, S as SNAPSHOT_SCHEMA_VERSION_V1, h as createBoardLiveCardsNonCorePublic, i as createBoardLiveCardsPublic, j as createCardStore } from './board-live-cards-public-B13InXhC.cjs';
9
- import { c as ChatStorage } from './chat-storage-lib-0imhRX3l.cjs';
10
- export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-0imhRX3l.cjs';
1
+ import { a as ArtifactsStore } from './artifacts-store-lib-BR-Samty.cjs';
2
+ export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-BR-Samty.cjs';
3
+ import { h as QueueLaneLease, i as QueueLaneDescriptor, Q as QueueLaneRegistry, I as InvocationAdapter } from './queue-lane-registry-BPKWWgd4.cjs';
4
+ export { D as DescribeEnvelope, j as createQueueLaneRegistry } from './queue-lane-registry-BPKWWgd4.cjs';
5
+ import { a as KindValueRef, g as QueueStorage } from './storage-interface-BFiD3kyB.cjs';
6
+ export { p as parseRef, s as serializeRef } from './storage-interface-BFiD3kyB.cjs';
7
+ import { l as BoardWorkerStore, B as BoardWorkerRequest, g as BoardCallbackTransport, e as BoardNonCorePlatformAdapter, f as BoardPlatformAdapter } from './board-live-cards-public-wkNmBIRC.cjs';
8
+ export { m as BOARD_GRAPH_KEY, n as BoardLiveCardsNonCorePublic, d as BoardLiveCardsPublic, o as BoardWorkerDeadLetterRequest, p as BoardWorkerLeasedRequest, q as BoardWorkerQueuedRequest, a as CommandInput, C as CommandResult, E as EMPTY_CONFIG, L as LiveCard, r as SNAPSHOT_SCHEMA_VERSION_V1, s as createBoardLiveCardsNonCorePublic, t as createBoardLiveCardsPublic, u as createBoardWorkerStore, v as createCardStore, w as createHttpBoardCallbackTransport, x as createInProcessBoardCallbackTransport, y as createLocalNodeBoardCallbackTransport } from './board-live-cards-public-wkNmBIRC.cjs';
9
+ import { c as ChatStorage } from './chat-storage-lib-BIUbE-fM.cjs';
10
+ export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-BIUbE-fM.cjs';
11
11
  export { BoardLiveCardsMcp, BoardLiveCardsMcpBoardStatusResult, BoardLiveCardsMcpDeps, BoardLiveCardsMcpDiscoverSourceKindsResult, BoardLiveCardsMcpFileDownloadDescriptor, BoardLiveCardsMcpInspectCardDefinitionAndRuntimeResult, BoardLiveCardsMcpInspectChatMessagesResult, BoardLiveCardsMcpManageUpsertCardResult, createBoardLiveCardsMcp } from './board-live-cards-mcp.cjs';
12
12
  import { ExecutionRef, ArgsMassaging } from './execution-refs.cjs';
13
13
  export { executionRefFromScriptPath, parseExecutionRef, serializeExecutionRef } from './execution-refs.cjs';
14
14
  export { createCardStorePublic } from './card-store-public.cjs';
15
15
  export { createArtifactsStorePublic } from './artifacts-store-public.cjs';
16
+ import './board-live-cards-public-async-dMWNbWq6.cjs';
16
17
  import './types-BBhqYGhE.cjs';
17
18
  import './chat-store-public.cjs';
18
19
 
@@ -112,6 +113,8 @@ interface InvokeRefResult {
112
113
  data: Record<string, unknown>;
113
114
  /** Optional human-readable error detail. */
114
115
  error?: string;
116
+ /** Optional response headers for HTTP transports. */
117
+ headers?: Record<string, string>;
115
118
  }
116
119
  interface InvokeRefSyncOptions {
117
120
  /** Directory used to resolve `built-in` refs (defaults to ref's cwd / process cwd). */
@@ -130,6 +133,9 @@ interface InvokeExecutionRefOptions extends InvokeRefSyncOptions {
130
133
  syncTransports?: Record<string, SyncTransportInvoker>;
131
134
  }
132
135
  type TransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult>;
136
+ type InProcessExecutionHandler = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult> | InvokeRefResult;
137
+ declare function registerInProcessExecutionHandler(key: string, handler: InProcessExecutionHandler): void;
138
+ declare function unregisterInProcessExecutionHandler(key: string): void;
133
139
  type SyncTransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => InvokeRefResult;
134
140
  interface CreateExecutionRefInvokerOptions extends InvokeExecutionRefOptions {
135
141
  }
@@ -160,14 +166,44 @@ declare function createExecutionRefInvoker(options?: CreateExecutionRefInvokerOp
160
166
  */
161
167
  declare function invokeRefSync(ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeRefSyncOptions): InvokeRefResult;
162
168
 
169
+ declare function createFsQueueStorage(rootDir: string): QueueStorage;
170
+
171
+ interface CreateBoardWorkerQueueLaneOptions {
172
+ id?: string;
173
+ workerStore: BoardWorkerStore;
174
+ handleRequest(args: Record<string, unknown>, request: BoardWorkerRequest): Promise<void>;
175
+ pollIntervalMs?: number;
176
+ visibilityMs?: number;
177
+ concurrency?: number;
178
+ maxAttempts?: number;
179
+ onError?: (error: unknown, lease: QueueLaneLease<BoardWorkerRequest>) => void;
180
+ }
181
+ interface CreateQueueStorageLaneOptions<TMessage> {
182
+ id: string;
183
+ queueStorage: QueueStorage;
184
+ handleMessage(message: TMessage, lease: QueueLaneLease<TMessage>): Promise<void>;
185
+ pollIntervalMs?: number;
186
+ visibilityMs?: number;
187
+ concurrency?: number;
188
+ maxAttempts?: number;
189
+ onError?: (error: unknown, lease: QueueLaneLease<TMessage>) => void;
190
+ }
191
+ declare function createBoardWorkerQueueLane(opts: CreateBoardWorkerQueueLaneOptions): QueueLaneDescriptor<BoardWorkerRequest>;
192
+ declare function createQueueStorageLane<TMessage>(opts: CreateQueueStorageLaneOptions<TMessage>): QueueLaneDescriptor<TMessage>;
193
+ declare function startQueueLaneRunner<TMessage>(lane: QueueLaneDescriptor<TMessage>): () => void;
194
+ declare function drainQueueLaneToIdle<TMessage>(lane: QueueLaneDescriptor<TMessage>, opts?: {
195
+ maxPasses?: number;
196
+ }): Promise<number>;
197
+ declare function startQueueLaneRunners(registryOrLanes: QueueLaneRegistry | QueueLaneDescriptor[]): () => void;
198
+
163
199
  /**
164
- * Creates an InvocationAdapter backed by Node.js `spawn`/`spawnSync`.
200
+ * Creates a Node host InvocationAdapter backed by `spawn`/`spawnSync`.
165
201
  *
166
202
  * Supports howToRun: 'local-node'
167
- * → spawns the script as a detached Node.js child process (fire-and-forget).
203
+ * → the Node host adapter spawns the script as a detached child process.
168
204
  *
169
205
  * Pass to createSingleBoardServerRuntime / createMultiBoardServerRuntime as
170
- * the `invocationAdapter` option. This is the reference Node.js implementation;
206
+ * the `invocationAdapter` option. This is the reference Node host implementation;
171
207
  * replace with your own for Azure Functions, Lambda, etc.
172
208
  */
173
209
  declare function createNodeSpawnInvocationAdapter(): InvocationAdapter;
@@ -175,9 +211,11 @@ type FsBoardAdapterOpts = {
175
211
  onWarn?: (msg: string) => void;
176
212
  suppressSpawn?: boolean;
177
213
  notifyChannel?: string;
214
+ callbackTransport?: BoardCallbackTransport;
178
215
  };
179
216
  type FsBoardNonCoreAdapterOpts = {
180
217
  onWarn?: (msg: string) => void;
218
+ callbackTransport?: BoardCallbackTransport;
181
219
  };
182
220
  declare function createFsBoardPlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardAdapterOpts, maybeOpts?: FsBoardAdapterOpts): BoardPlatformAdapter;
183
221
  declare function createFsBoardNonCorePlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardNonCoreAdapterOpts, maybeOpts?: FsBoardNonCoreAdapterOpts): BoardNonCorePlatformAdapter;
@@ -199,4 +237,4 @@ declare function createFsBoardFileArtifactsStore(baseDir: string, opts?: FsBoard
199
237
  */
200
238
  declare function decodeBoardRefFromToken(token: string): string | null;
201
239
 
202
- export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, resolveWhatToRunValue, resolveYamlFlowCliPath };
240
+ export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, BoardWorkerRequest, BoardWorkerStore, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, type InProcessExecutionHandler, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, QueueLaneDescriptor, QueueLaneLease, QueueLaneRegistry, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createBoardWorkerQueueLane, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createFsQueueStorage, createNodeSpawnInvocationAdapter, createQueueStorageLane, decodeBoardRefFromToken, drainQueueLaneToIdle, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, registerInProcessExecutionHandler, resolveWhatToRunValue, resolveYamlFlowCliPath, startQueueLaneRunner, startQueueLaneRunners, unregisterInProcessExecutionHandler };
@@ -1,18 +1,19 @@
1
- import { a as ArtifactsStore } from './artifacts-store-lib-D-k-E8Vy.js';
2
- export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-D-k-E8Vy.js';
3
- import { I as InvocationAdapter } from './types-30R357js.js';
4
- export { D as DescribeEnvelope } from './types-30R357js.js';
5
- import { a as KindValueRef } from './storage-interface-B2WD9D5n.js';
6
- export { p as parseRef, s as serializeRef } from './storage-interface-B2WD9D5n.js';
7
- import { d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter } from './board-live-cards-public-BGS22cMb.js';
8
- export { f as BOARD_GRAPH_KEY, g as BoardLiveCardsNonCorePublic, c as BoardLiveCardsPublic, a as CommandInput, C as CommandResult, E as EMPTY_CONFIG, L as LiveCard, S as SNAPSHOT_SCHEMA_VERSION_V1, h as createBoardLiveCardsNonCorePublic, i as createBoardLiveCardsPublic, j as createCardStore } from './board-live-cards-public-BGS22cMb.js';
9
- import { c as ChatStorage } from './chat-storage-lib-CJn7a6OH.js';
10
- export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-CJn7a6OH.js';
1
+ import { a as ArtifactsStore } from './artifacts-store-lib-DT7XlWUL.js';
2
+ export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-DT7XlWUL.js';
3
+ import { h as QueueLaneLease, i as QueueLaneDescriptor, Q as QueueLaneRegistry, I as InvocationAdapter } from './queue-lane-registry-Be6c0ftj.js';
4
+ export { D as DescribeEnvelope, j as createQueueLaneRegistry } from './queue-lane-registry-Be6c0ftj.js';
5
+ import { a as KindValueRef, g as QueueStorage } from './storage-interface-BFiD3kyB.js';
6
+ export { p as parseRef, s as serializeRef } from './storage-interface-BFiD3kyB.js';
7
+ import { l as BoardWorkerStore, B as BoardWorkerRequest, g as BoardCallbackTransport, e as BoardNonCorePlatformAdapter, f as BoardPlatformAdapter } from './board-live-cards-public-BMUIPOrc.js';
8
+ export { m as BOARD_GRAPH_KEY, n as BoardLiveCardsNonCorePublic, d as BoardLiveCardsPublic, o as BoardWorkerDeadLetterRequest, p as BoardWorkerLeasedRequest, q as BoardWorkerQueuedRequest, a as CommandInput, C as CommandResult, E as EMPTY_CONFIG, L as LiveCard, r as SNAPSHOT_SCHEMA_VERSION_V1, s as createBoardLiveCardsNonCorePublic, t as createBoardLiveCardsPublic, u as createBoardWorkerStore, v as createCardStore, w as createHttpBoardCallbackTransport, x as createInProcessBoardCallbackTransport, y as createLocalNodeBoardCallbackTransport } from './board-live-cards-public-BMUIPOrc.js';
9
+ import { c as ChatStorage } from './chat-storage-lib-BlG-sobS.js';
10
+ export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-BlG-sobS.js';
11
11
  export { BoardLiveCardsMcp, BoardLiveCardsMcpBoardStatusResult, BoardLiveCardsMcpDeps, BoardLiveCardsMcpDiscoverSourceKindsResult, BoardLiveCardsMcpFileDownloadDescriptor, BoardLiveCardsMcpInspectCardDefinitionAndRuntimeResult, BoardLiveCardsMcpInspectChatMessagesResult, BoardLiveCardsMcpManageUpsertCardResult, createBoardLiveCardsMcp } from './board-live-cards-mcp.js';
12
12
  import { ExecutionRef, ArgsMassaging } from './execution-refs.js';
13
13
  export { executionRefFromScriptPath, parseExecutionRef, serializeExecutionRef } from './execution-refs.js';
14
14
  export { createCardStorePublic } from './card-store-public.js';
15
15
  export { createArtifactsStorePublic } from './artifacts-store-public.js';
16
+ import './board-live-cards-public-async-DKZqbJVU.js';
16
17
  import './types-BBhqYGhE.js';
17
18
  import './chat-store-public.js';
18
19
 
@@ -112,6 +113,8 @@ interface InvokeRefResult {
112
113
  data: Record<string, unknown>;
113
114
  /** Optional human-readable error detail. */
114
115
  error?: string;
116
+ /** Optional response headers for HTTP transports. */
117
+ headers?: Record<string, string>;
115
118
  }
116
119
  interface InvokeRefSyncOptions {
117
120
  /** Directory used to resolve `built-in` refs (defaults to ref's cwd / process cwd). */
@@ -130,6 +133,9 @@ interface InvokeExecutionRefOptions extends InvokeRefSyncOptions {
130
133
  syncTransports?: Record<string, SyncTransportInvoker>;
131
134
  }
132
135
  type TransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult>;
136
+ type InProcessExecutionHandler = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult> | InvokeRefResult;
137
+ declare function registerInProcessExecutionHandler(key: string, handler: InProcessExecutionHandler): void;
138
+ declare function unregisterInProcessExecutionHandler(key: string): void;
133
139
  type SyncTransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => InvokeRefResult;
134
140
  interface CreateExecutionRefInvokerOptions extends InvokeExecutionRefOptions {
135
141
  }
@@ -160,14 +166,44 @@ declare function createExecutionRefInvoker(options?: CreateExecutionRefInvokerOp
160
166
  */
161
167
  declare function invokeRefSync(ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeRefSyncOptions): InvokeRefResult;
162
168
 
169
+ declare function createFsQueueStorage(rootDir: string): QueueStorage;
170
+
171
+ interface CreateBoardWorkerQueueLaneOptions {
172
+ id?: string;
173
+ workerStore: BoardWorkerStore;
174
+ handleRequest(args: Record<string, unknown>, request: BoardWorkerRequest): Promise<void>;
175
+ pollIntervalMs?: number;
176
+ visibilityMs?: number;
177
+ concurrency?: number;
178
+ maxAttempts?: number;
179
+ onError?: (error: unknown, lease: QueueLaneLease<BoardWorkerRequest>) => void;
180
+ }
181
+ interface CreateQueueStorageLaneOptions<TMessage> {
182
+ id: string;
183
+ queueStorage: QueueStorage;
184
+ handleMessage(message: TMessage, lease: QueueLaneLease<TMessage>): Promise<void>;
185
+ pollIntervalMs?: number;
186
+ visibilityMs?: number;
187
+ concurrency?: number;
188
+ maxAttempts?: number;
189
+ onError?: (error: unknown, lease: QueueLaneLease<TMessage>) => void;
190
+ }
191
+ declare function createBoardWorkerQueueLane(opts: CreateBoardWorkerQueueLaneOptions): QueueLaneDescriptor<BoardWorkerRequest>;
192
+ declare function createQueueStorageLane<TMessage>(opts: CreateQueueStorageLaneOptions<TMessage>): QueueLaneDescriptor<TMessage>;
193
+ declare function startQueueLaneRunner<TMessage>(lane: QueueLaneDescriptor<TMessage>): () => void;
194
+ declare function drainQueueLaneToIdle<TMessage>(lane: QueueLaneDescriptor<TMessage>, opts?: {
195
+ maxPasses?: number;
196
+ }): Promise<number>;
197
+ declare function startQueueLaneRunners(registryOrLanes: QueueLaneRegistry | QueueLaneDescriptor[]): () => void;
198
+
163
199
  /**
164
- * Creates an InvocationAdapter backed by Node.js `spawn`/`spawnSync`.
200
+ * Creates a Node host InvocationAdapter backed by `spawn`/`spawnSync`.
165
201
  *
166
202
  * Supports howToRun: 'local-node'
167
- * → spawns the script as a detached Node.js child process (fire-and-forget).
203
+ * → the Node host adapter spawns the script as a detached child process.
168
204
  *
169
205
  * Pass to createSingleBoardServerRuntime / createMultiBoardServerRuntime as
170
- * the `invocationAdapter` option. This is the reference Node.js implementation;
206
+ * the `invocationAdapter` option. This is the reference Node host implementation;
171
207
  * replace with your own for Azure Functions, Lambda, etc.
172
208
  */
173
209
  declare function createNodeSpawnInvocationAdapter(): InvocationAdapter;
@@ -175,9 +211,11 @@ type FsBoardAdapterOpts = {
175
211
  onWarn?: (msg: string) => void;
176
212
  suppressSpawn?: boolean;
177
213
  notifyChannel?: string;
214
+ callbackTransport?: BoardCallbackTransport;
178
215
  };
179
216
  type FsBoardNonCoreAdapterOpts = {
180
217
  onWarn?: (msg: string) => void;
218
+ callbackTransport?: BoardCallbackTransport;
181
219
  };
182
220
  declare function createFsBoardPlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardAdapterOpts, maybeOpts?: FsBoardAdapterOpts): BoardPlatformAdapter;
183
221
  declare function createFsBoardNonCorePlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardNonCoreAdapterOpts, maybeOpts?: FsBoardNonCoreAdapterOpts): BoardNonCorePlatformAdapter;
@@ -199,4 +237,4 @@ declare function createFsBoardFileArtifactsStore(baseDir: string, opts?: FsBoard
199
237
  */
200
238
  declare function decodeBoardRefFromToken(token: string): string | null;
201
239
 
202
- export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, resolveWhatToRunValue, resolveYamlFlowCliPath };
240
+ export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, BoardWorkerRequest, BoardWorkerStore, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, type InProcessExecutionHandler, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, QueueLaneDescriptor, QueueLaneLease, QueueLaneRegistry, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createBoardWorkerQueueLane, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createFsQueueStorage, createNodeSpawnInvocationAdapter, createQueueStorageLane, decodeBoardRefFromToken, drainQueueLaneToIdle, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, registerInProcessExecutionHandler, resolveWhatToRunValue, resolveYamlFlowCliPath, startQueueLaneRunner, startQueueLaneRunners, unregisterInProcessExecutionHandler };