yaml-flow 8.5.2 → 8.6.1

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 (166) 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 +266 -5
  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 +1 -0
  11. package/examples/board/test/server-http-test.js +870 -67
  12. package/examples/board-local/demo-shell-localstorage.html +3 -3
  13. package/lib/{artifacts-store-lib-D-k-E8Vy.d.ts → artifacts-store-lib-C1rtrkxm.d.ts} +1 -1
  14. package/lib/{artifacts-store-lib-CVgtQrNZ.d.cts → artifacts-store-lib-CLOtsiav.d.cts} +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 +36 -16
  23. package/lib/board-live-cards-mcp.d.ts +36 -16
  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 +32 -12
  27. package/lib/board-live-cards-node.d.ts +32 -12
  28. package/lib/board-live-cards-node.js +8 -16
  29. package/lib/{board-live-cards-public-BGS22cMb.d.ts → board-live-cards-public-CBVjm327.d.ts} +59 -24
  30. package/lib/{board-live-cards-public-B13InXhC.d.cts → board-live-cards-public-CPJy-aGW.d.cts} +59 -24
  31. package/lib/board-live-cards-public.cjs +1 -2
  32. package/lib/board-live-cards-public.d.cts +2 -2
  33. package/lib/board-live-cards-public.d.ts +2 -2
  34. package/lib/board-live-cards-public.js +1 -2
  35. package/lib/board-live-cards-server-runtime.cjs +1 -7
  36. package/lib/board-live-cards-server-runtime.d.cts +5 -5
  37. package/lib/board-live-cards-server-runtime.d.ts +5 -5
  38. package/lib/board-live-cards-server-runtime.js +1 -7
  39. package/lib/board-livegraph-runtime/index.cjs +1 -2
  40. package/lib/board-livegraph-runtime/index.js +1 -2
  41. package/lib/board-worker-adapter.cjs +21 -7
  42. package/lib/board-worker-adapter.d.cts +17 -2
  43. package/lib/board-worker-adapter.d.ts +17 -2
  44. package/lib/board-worker-adapter.js +21 -7
  45. package/lib/card-compute/index.cjs +1 -9
  46. package/lib/card-compute/index.js +1 -9
  47. package/lib/card-store-public.cjs +1 -1
  48. package/lib/card-store-public.d.cts +2 -2
  49. package/lib/card-store-public.d.ts +2 -2
  50. package/lib/card-store-public.js +1 -1
  51. package/lib/card-validation.cjs +1 -9
  52. package/lib/card-validation.js +1 -9
  53. package/lib/{chat-storage-lib-CJn7a6OH.d.ts → chat-storage-lib-Bce-xx6l.d.ts} +1 -1
  54. package/lib/{chat-storage-lib-0imhRX3l.d.cts → chat-storage-lib-CKylihjm.d.cts} +1 -1
  55. package/lib/chat-store-public.cjs +1 -1
  56. package/lib/chat-store-public.d.cts +3 -3
  57. package/lib/chat-store-public.d.ts +3 -3
  58. package/lib/chat-store-public.js +1 -1
  59. package/lib/chunk-2MZUYY65.cjs +2 -0
  60. package/lib/chunk-5DB54ZX2.cjs +2 -0
  61. package/lib/chunk-5EA2ESS4.cjs +16 -0
  62. package/lib/chunk-6APH25VI.js +2 -0
  63. package/lib/chunk-76ON3V7R.js +2 -0
  64. package/lib/chunk-7BKNHFNH.js +2 -0
  65. package/lib/chunk-CWREBRXS.js +3 -0
  66. package/lib/chunk-DAXACY63.js +2 -0
  67. package/lib/chunk-FW4363Y4.js +2 -0
  68. package/lib/chunk-FZ2SBU5M.js +3 -0
  69. package/lib/chunk-G4XXRHL2.cjs +3 -0
  70. package/lib/chunk-GNFE24S7.cjs +2 -0
  71. package/lib/chunk-GYQXDNNI.cjs +2 -0
  72. package/lib/chunk-H5KD3JPY.cjs +2 -0
  73. package/lib/chunk-HLJH7LGW.js +16 -0
  74. package/lib/chunk-I4WH5U5D.cjs +2 -0
  75. package/lib/chunk-IXZG74EW.cjs +2 -0
  76. package/lib/chunk-JAL25FGA.cjs +2 -0
  77. package/lib/chunk-JM5EKT57.js +2 -0
  78. package/lib/chunk-JMDHDY6M.js +2 -0
  79. package/lib/chunk-KBELAKIY.js +2 -0
  80. package/lib/chunk-KHJABJ45.cjs +3 -0
  81. package/lib/chunk-KLRUISRY.cjs +2 -0
  82. package/lib/chunk-KNFFDVLD.cjs +2 -0
  83. package/lib/chunk-LBMEVV4U.js +2 -0
  84. package/lib/chunk-LDAP75GN.js +2 -0
  85. package/lib/chunk-LODXIALE.cjs +2 -0
  86. package/lib/chunk-LVNQCE5X.cjs +3 -0
  87. package/lib/chunk-M7EQRS6W.js +3 -0
  88. package/lib/chunk-MNEOJWPS.js +10 -0
  89. package/lib/chunk-NJJ7WEDT.cjs +2 -0
  90. package/lib/chunk-NMZ6XNLB.cjs +3 -0
  91. package/lib/chunk-OPNGCSXJ.js +2 -0
  92. package/lib/chunk-P64UKI3L.cjs +8 -0
  93. package/lib/chunk-P7ZCDICS.cjs +2 -0
  94. package/lib/chunk-Q6H7NINN.cjs +5 -0
  95. package/lib/chunk-Q6VSL327.js +8 -0
  96. package/lib/chunk-QWBNDVUA.js +5 -0
  97. package/lib/chunk-S6DRP2HX.cjs +2 -0
  98. package/lib/chunk-UJ7ZTV4J.cjs +10 -0
  99. package/lib/chunk-UVE65IPR.cjs +3 -0
  100. package/lib/chunk-VCCTAUIG.js +2 -0
  101. package/lib/chunk-VGT3TRQG.js +3 -0
  102. package/lib/chunk-VLBB3D6B.js +3 -0
  103. package/lib/chunk-WDPOGXTY.js +2 -0
  104. package/lib/chunk-X3LC4LII.js +2 -0
  105. package/lib/chunk-YGKDQLYP.js +2 -0
  106. package/lib/chunk-YMEIPKLW.cjs +2 -0
  107. package/lib/config/index.cjs +1 -1
  108. package/lib/config/index.js +1 -1
  109. package/lib/continuous-event-graph/index.cjs +1 -2
  110. package/lib/continuous-event-graph/index.js +1 -2
  111. package/lib/event-graph/index.cjs +1 -22
  112. package/lib/event-graph/index.js +1 -22
  113. package/lib/execution-refs.cjs +1 -2
  114. package/lib/execution-refs.d.cts +3 -2
  115. package/lib/execution-refs.d.ts +3 -2
  116. package/lib/execution-refs.js +1 -2
  117. package/lib/index.cjs +2 -24
  118. package/lib/index.d.cts +1 -1
  119. package/lib/index.d.ts +1 -1
  120. package/lib/index.js +2 -24
  121. package/lib/server-runtime/index.cjs +1 -7
  122. package/lib/server-runtime/index.d.cts +6 -6
  123. package/lib/server-runtime/index.d.ts +6 -6
  124. package/lib/server-runtime/index.js +1 -7
  125. package/lib/step-machine/index.cjs +1 -11
  126. package/lib/step-machine/index.js +1 -11
  127. package/lib/step-machine-public/index.cjs +1 -4
  128. package/lib/step-machine-public/index.d.cts +1 -1
  129. package/lib/step-machine-public/index.d.ts +1 -1
  130. package/lib/step-machine-public/index.js +1 -4
  131. package/lib/{storage-interface-B2WD9D5n.d.cts → storage-interface-Ct-C4tlz.d.cts} +28 -1
  132. package/lib/{storage-interface-B2WD9D5n.d.ts → storage-interface-Ct-C4tlz.d.ts} +28 -1
  133. package/lib/stores/index.cjs +1 -2
  134. package/lib/stores/index.d.cts +1 -1
  135. package/lib/stores/index.d.ts +1 -1
  136. package/lib/stores/index.js +1 -2
  137. package/lib/stores/kv.cjs +1 -2
  138. package/lib/stores/kv.d.cts +1 -1
  139. package/lib/stores/kv.d.ts +1 -1
  140. package/lib/stores/kv.js +1 -2
  141. package/lib/stores/memory.cjs +1 -1
  142. package/lib/stores/memory.js +1 -1
  143. package/lib/{types-30R357js.d.ts → types-BuK2UMxk.d.ts} +4 -4
  144. package/lib/{types-CIgsh56O.d.cts → types-DRl0Hy_p.d.cts} +4 -4
  145. package/package.json +2 -16
  146. package/cli/board-live-cards-lib-COi4bSpk.d.ts +0 -322
  147. package/cli/browser-api/board-live-cards-browser-adapter.d.ts +0 -36
  148. package/cli/browser-api/board-live-cards-browser-adapter.js +0 -4
  149. package/cli/browser-api/card-store-browser-api.d.ts +0 -25
  150. package/cli/browser-api/card-store-browser-api.js +0 -2
  151. package/cli/browser-api/jsonata-sync.cjs +0 -7623
  152. package/cli/bundled/artifacts-store-cli.mjs +0 -12
  153. package/cli/bundled/batch-runner-cli.mjs +0 -3
  154. package/cli/bundled/board-live-cards-cli.mjs +0 -29
  155. package/cli/bundled/card-store-cli.mjs +0 -154
  156. package/cli/bundled/chat-store-cli.mjs +0 -16
  157. package/cli/bundled/jsonata-sync.cjs +0 -7623
  158. package/cli/bundled/step-machine-cli.mjs +0 -150
  159. package/cli/execution-interface-BCIhu1gO.d.ts +0 -442
  160. package/cli/types-H3EMBPY2.d.ts +0 -398
  161. package/examples/board/server/README-mcp-api.md +0 -680
  162. package/examples/board/test/server-http-mcp-test.js +0 -1163
  163. package/lib/board-livegraph-runtime/jsonata-sync.cjs +0 -7623
  164. package/lib/card-compute/jsonata-sync.cjs +0 -7623
  165. package/lib/continuous-event-graph/jsonata-sync.cjs +0 -7623
  166. package/lib/server-runtime/jsonata-sync.cjs +0 -7623
@@ -1,16 +1,16 @@
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';
11
- export { BoardLiveCardsMcp, BoardLiveCardsMcpBoardStatusResult, BoardLiveCardsMcpDeps, BoardLiveCardsMcpDiscoverSourceKindsResult, BoardLiveCardsMcpFileDownloadDescriptor, BoardLiveCardsMcpInspectCardDefinitionAndRuntimeResult, BoardLiveCardsMcpInspectChatMessagesResult, BoardLiveCardsMcpManageUpsertCardResult, createBoardLiveCardsMcp } from './board-live-cards-mcp.cjs';
1
+ import { a as ArtifactsStore } from './artifacts-store-lib-CLOtsiav.cjs';
2
+ export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-CLOtsiav.cjs';
3
+ import { I as InvocationAdapter } from './types-DRl0Hy_p.cjs';
4
+ export { D as DescribeEnvelope } from './types-DRl0Hy_p.cjs';
5
+ import { a as KindValueRef, Q as QueueStorage } from './storage-interface-Ct-C4tlz.cjs';
6
+ export { p as parseRef, s as serializeRef } from './storage-interface-Ct-C4tlz.cjs';
7
+ import { f as BoardWorkerStore, g as BoardWorkerRequest, h as BoardWorkerLeasedRequest, d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter } from './board-live-cards-public-CPJy-aGW.cjs';
8
+ export { i as BOARD_GRAPH_KEY, j as BoardLiveCardsNonCorePublic, c as BoardLiveCardsPublic, k as BoardWorkerDeadLetterRequest, l as BoardWorkerQueuedRequest, a as CommandInput, C as CommandResult, E as EMPTY_CONFIG, L as LiveCard, S as SNAPSHOT_SCHEMA_VERSION_V1, m as createBoardLiveCardsNonCorePublic, n as createBoardLiveCardsPublic, o as createBoardWorkerStore, p as createCardStore } from './board-live-cards-public-CPJy-aGW.cjs';
9
+ import { c as ChatStorage } from './chat-storage-lib-CKylihjm.cjs';
10
+ export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-CKylihjm.cjs';
12
11
  import { ExecutionRef, ArgsMassaging } from './execution-refs.cjs';
13
12
  export { executionRefFromScriptPath, parseExecutionRef, serializeExecutionRef } from './execution-refs.cjs';
13
+ export { BoardLiveCardsMcp, BoardLiveCardsMcpBoardStatusResult, BoardLiveCardsMcpDeps, BoardLiveCardsMcpDiscoverSourceKindsResult, BoardLiveCardsMcpFileDownloadDescriptor, BoardLiveCardsMcpInspectCardDefinitionAndRuntimeResult, BoardLiveCardsMcpInspectChatMessagesResult, BoardLiveCardsMcpManageUpsertCardResult, createBoardLiveCardsMcp } from './board-live-cards-mcp.cjs';
14
14
  export { createCardStorePublic } from './card-store-public.cjs';
15
15
  export { createArtifactsStorePublic } from './artifacts-store-public.cjs';
16
16
  import './types-BBhqYGhE.cjs';
@@ -112,6 +112,8 @@ interface InvokeRefResult {
112
112
  data: Record<string, unknown>;
113
113
  /** Optional human-readable error detail. */
114
114
  error?: string;
115
+ /** Optional response headers for HTTP transports. */
116
+ headers?: Record<string, string>;
115
117
  }
116
118
  interface InvokeRefSyncOptions {
117
119
  /** Directory used to resolve `built-in` refs (defaults to ref's cwd / process cwd). */
@@ -130,6 +132,9 @@ interface InvokeExecutionRefOptions extends InvokeRefSyncOptions {
130
132
  syncTransports?: Record<string, SyncTransportInvoker>;
131
133
  }
132
134
  type TransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult>;
135
+ type InProcessExecutionHandler = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult> | InvokeRefResult;
136
+ declare function registerInProcessExecutionHandler(key: string, handler: InProcessExecutionHandler): void;
137
+ declare function unregisterInProcessExecutionHandler(key: string): void;
133
138
  type SyncTransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => InvokeRefResult;
134
139
  interface CreateExecutionRefInvokerOptions extends InvokeExecutionRefOptions {
135
140
  }
@@ -160,6 +165,19 @@ declare function createExecutionRefInvoker(options?: CreateExecutionRefInvokerOp
160
165
  */
161
166
  declare function invokeRefSync(ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeRefSyncOptions): InvokeRefResult;
162
167
 
168
+ declare function createFsQueueStorage(rootDir: string): QueueStorage;
169
+
170
+ interface StartBoardWorkerQueueRunnerOptions {
171
+ workerStore: BoardWorkerStore;
172
+ executeBoardWorkerRequest(args: Record<string, unknown>, request: BoardWorkerRequest): Promise<void>;
173
+ pollIntervalMs?: number;
174
+ visibilityMs?: number;
175
+ concurrency?: number;
176
+ maxAttempts?: number;
177
+ onError?: (error: unknown, lease: BoardWorkerLeasedRequest) => void;
178
+ }
179
+ declare function startBoardWorkerQueueRunner(opts: StartBoardWorkerQueueRunnerOptions): () => void;
180
+
163
181
  /**
164
182
  * Creates an InvocationAdapter backed by Node.js `spawn`/`spawnSync`.
165
183
  *
@@ -175,9 +193,11 @@ type FsBoardAdapterOpts = {
175
193
  onWarn?: (msg: string) => void;
176
194
  suppressSpawn?: boolean;
177
195
  notifyChannel?: string;
196
+ selfRef?: ExecutionRef;
178
197
  };
179
198
  type FsBoardNonCoreAdapterOpts = {
180
199
  onWarn?: (msg: string) => void;
200
+ selfRef?: ExecutionRef;
181
201
  };
182
202
  declare function createFsBoardPlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardAdapterOpts, maybeOpts?: FsBoardAdapterOpts): BoardPlatformAdapter;
183
203
  declare function createFsBoardNonCorePlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardNonCoreAdapterOpts, maybeOpts?: FsBoardNonCoreAdapterOpts): BoardNonCorePlatformAdapter;
@@ -199,4 +219,4 @@ declare function createFsBoardFileArtifactsStore(baseDir: string, opts?: FsBoard
199
219
  */
200
220
  declare function decodeBoardRefFromToken(token: string): string | null;
201
221
 
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 };
222
+ export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, BoardWorkerLeasedRequest, BoardWorkerRequest, BoardWorkerStore, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, type InProcessExecutionHandler, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createFsQueueStorage, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, registerInProcessExecutionHandler, resolveWhatToRunValue, resolveYamlFlowCliPath, startBoardWorkerQueueRunner, unregisterInProcessExecutionHandler };
@@ -1,16 +1,16 @@
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';
11
- export { BoardLiveCardsMcp, BoardLiveCardsMcpBoardStatusResult, BoardLiveCardsMcpDeps, BoardLiveCardsMcpDiscoverSourceKindsResult, BoardLiveCardsMcpFileDownloadDescriptor, BoardLiveCardsMcpInspectCardDefinitionAndRuntimeResult, BoardLiveCardsMcpInspectChatMessagesResult, BoardLiveCardsMcpManageUpsertCardResult, createBoardLiveCardsMcp } from './board-live-cards-mcp.js';
1
+ import { a as ArtifactsStore } from './artifacts-store-lib-C1rtrkxm.js';
2
+ export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-C1rtrkxm.js';
3
+ import { I as InvocationAdapter } from './types-BuK2UMxk.js';
4
+ export { D as DescribeEnvelope } from './types-BuK2UMxk.js';
5
+ import { a as KindValueRef, Q as QueueStorage } from './storage-interface-Ct-C4tlz.js';
6
+ export { p as parseRef, s as serializeRef } from './storage-interface-Ct-C4tlz.js';
7
+ import { f as BoardWorkerStore, g as BoardWorkerRequest, h as BoardWorkerLeasedRequest, d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter } from './board-live-cards-public-CBVjm327.js';
8
+ export { i as BOARD_GRAPH_KEY, j as BoardLiveCardsNonCorePublic, c as BoardLiveCardsPublic, k as BoardWorkerDeadLetterRequest, l as BoardWorkerQueuedRequest, a as CommandInput, C as CommandResult, E as EMPTY_CONFIG, L as LiveCard, S as SNAPSHOT_SCHEMA_VERSION_V1, m as createBoardLiveCardsNonCorePublic, n as createBoardLiveCardsPublic, o as createBoardWorkerStore, p as createCardStore } from './board-live-cards-public-CBVjm327.js';
9
+ import { c as ChatStorage } from './chat-storage-lib-Bce-xx6l.js';
10
+ export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-Bce-xx6l.js';
12
11
  import { ExecutionRef, ArgsMassaging } from './execution-refs.js';
13
12
  export { executionRefFromScriptPath, parseExecutionRef, serializeExecutionRef } from './execution-refs.js';
13
+ export { BoardLiveCardsMcp, BoardLiveCardsMcpBoardStatusResult, BoardLiveCardsMcpDeps, BoardLiveCardsMcpDiscoverSourceKindsResult, BoardLiveCardsMcpFileDownloadDescriptor, BoardLiveCardsMcpInspectCardDefinitionAndRuntimeResult, BoardLiveCardsMcpInspectChatMessagesResult, BoardLiveCardsMcpManageUpsertCardResult, createBoardLiveCardsMcp } from './board-live-cards-mcp.js';
14
14
  export { createCardStorePublic } from './card-store-public.js';
15
15
  export { createArtifactsStorePublic } from './artifacts-store-public.js';
16
16
  import './types-BBhqYGhE.js';
@@ -112,6 +112,8 @@ interface InvokeRefResult {
112
112
  data: Record<string, unknown>;
113
113
  /** Optional human-readable error detail. */
114
114
  error?: string;
115
+ /** Optional response headers for HTTP transports. */
116
+ headers?: Record<string, string>;
115
117
  }
116
118
  interface InvokeRefSyncOptions {
117
119
  /** Directory used to resolve `built-in` refs (defaults to ref's cwd / process cwd). */
@@ -130,6 +132,9 @@ interface InvokeExecutionRefOptions extends InvokeRefSyncOptions {
130
132
  syncTransports?: Record<string, SyncTransportInvoker>;
131
133
  }
132
134
  type TransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult>;
135
+ type InProcessExecutionHandler = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => Promise<InvokeRefResult> | InvokeRefResult;
136
+ declare function registerInProcessExecutionHandler(key: string, handler: InProcessExecutionHandler): void;
137
+ declare function unregisterInProcessExecutionHandler(key: string): void;
133
138
  type SyncTransportInvoker = (ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeExecutionRefOptions) => InvokeRefResult;
134
139
  interface CreateExecutionRefInvokerOptions extends InvokeExecutionRefOptions {
135
140
  }
@@ -160,6 +165,19 @@ declare function createExecutionRefInvoker(options?: CreateExecutionRefInvokerOp
160
165
  */
161
166
  declare function invokeRefSync(ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeRefSyncOptions): InvokeRefResult;
162
167
 
168
+ declare function createFsQueueStorage(rootDir: string): QueueStorage;
169
+
170
+ interface StartBoardWorkerQueueRunnerOptions {
171
+ workerStore: BoardWorkerStore;
172
+ executeBoardWorkerRequest(args: Record<string, unknown>, request: BoardWorkerRequest): Promise<void>;
173
+ pollIntervalMs?: number;
174
+ visibilityMs?: number;
175
+ concurrency?: number;
176
+ maxAttempts?: number;
177
+ onError?: (error: unknown, lease: BoardWorkerLeasedRequest) => void;
178
+ }
179
+ declare function startBoardWorkerQueueRunner(opts: StartBoardWorkerQueueRunnerOptions): () => void;
180
+
163
181
  /**
164
182
  * Creates an InvocationAdapter backed by Node.js `spawn`/`spawnSync`.
165
183
  *
@@ -175,9 +193,11 @@ type FsBoardAdapterOpts = {
175
193
  onWarn?: (msg: string) => void;
176
194
  suppressSpawn?: boolean;
177
195
  notifyChannel?: string;
196
+ selfRef?: ExecutionRef;
178
197
  };
179
198
  type FsBoardNonCoreAdapterOpts = {
180
199
  onWarn?: (msg: string) => void;
200
+ selfRef?: ExecutionRef;
181
201
  };
182
202
  declare function createFsBoardPlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardAdapterOpts, maybeOpts?: FsBoardAdapterOpts): BoardPlatformAdapter;
183
203
  declare function createFsBoardNonCorePlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardNonCoreAdapterOpts, maybeOpts?: FsBoardNonCoreAdapterOpts): BoardNonCorePlatformAdapter;
@@ -199,4 +219,4 @@ declare function createFsBoardFileArtifactsStore(baseDir: string, opts?: FsBoard
199
219
  */
200
220
  declare function decodeBoardRefFromToken(token: string): string | null;
201
221
 
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 };
222
+ export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, BoardWorkerLeasedRequest, BoardWorkerRequest, BoardWorkerStore, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, type InProcessExecutionHandler, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createFsQueueStorage, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, registerInProcessExecutionHandler, resolveWhatToRunValue, resolveYamlFlowCliPath, startBoardWorkerQueueRunner, unregisterInProcessExecutionHandler };