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.
- package/browser/asset-integrity.json +3 -3
- package/examples/board/demo-shell-with-server.html +2 -2
- package/examples/board/doc.html +2 -2
- package/examples/board/server/board-server.js +773 -13
- package/examples/board/server/board-worker/task-executor.js +166 -51
- package/examples/board/server/chat-flow/copilot-chat/assistant.js +25 -12
- package/examples/board/server/chat-flow/copilot-chat/probe.js +7 -0
- package/examples/board/server/chat-flow/copilot-chat/shared.js +97 -0
- package/examples/board/server/chat-flow/flow-steps.json +109 -51
- package/examples/board/server-config.json +2 -0
- package/examples/board/test/server-http-test.js +878 -67
- package/examples/board-local/demo-shell-localstorage.html +3 -3
- package/lib/{artifacts-store-lib-CVgtQrNZ.d.cts → artifacts-store-lib-BR-Samty.d.cts} +1 -1
- package/lib/{artifacts-store-lib-D-k-E8Vy.d.ts → artifacts-store-lib-DT7XlWUL.d.ts} +1 -1
- package/lib/artifacts-store-public.cjs +1 -1
- package/lib/artifacts-store-public.d.cts +3 -3
- package/lib/artifacts-store-public.d.ts +3 -3
- package/lib/artifacts-store-public.js +1 -1
- package/lib/batch/index.cjs +1 -1
- package/lib/batch/index.js +1 -1
- package/lib/board-live-cards-mcp.cjs +1 -1
- package/lib/board-live-cards-mcp.d.cts +87 -34
- package/lib/board-live-cards-mcp.d.ts +87 -34
- package/lib/board-live-cards-mcp.js +1 -1
- package/lib/board-live-cards-node.cjs +8 -16
- package/lib/board-live-cards-node.d.cts +52 -14
- package/lib/board-live-cards-node.d.ts +52 -14
- package/lib/board-live-cards-node.js +8 -16
- package/lib/{board-live-cards-public-BGS22cMb.d.ts → board-live-cards-public-BMUIPOrc.d.ts} +90 -30
- package/lib/board-live-cards-public-async-DKZqbJVU.d.ts +256 -0
- package/lib/board-live-cards-public-async-dMWNbWq6.d.cts +256 -0
- package/lib/{board-live-cards-public-B13InXhC.d.cts → board-live-cards-public-wkNmBIRC.d.cts} +90 -30
- package/lib/board-live-cards-public.cjs +1 -2
- package/lib/board-live-cards-public.d.cts +2 -2
- package/lib/board-live-cards-public.d.ts +2 -2
- package/lib/board-live-cards-public.js +1 -2
- package/lib/board-live-cards-server-runtime.cjs +1 -7
- package/lib/board-live-cards-server-runtime.d.cts +7 -6
- package/lib/board-live-cards-server-runtime.d.ts +7 -6
- package/lib/board-live-cards-server-runtime.js +1 -7
- package/lib/board-livegraph-runtime/index.cjs +1 -2
- package/lib/board-livegraph-runtime/index.js +1 -2
- package/lib/board-worker-adapter.cjs +22 -7
- package/lib/board-worker-adapter.d.cts +28 -3
- package/lib/board-worker-adapter.d.ts +28 -3
- package/lib/board-worker-adapter.js +22 -7
- package/lib/card-compute/index.cjs +1 -9
- package/lib/card-compute/index.js +1 -9
- package/lib/card-store-public.cjs +1 -1
- package/lib/card-store-public.d.cts +2 -2
- package/lib/card-store-public.d.ts +2 -2
- package/lib/card-store-public.js +1 -1
- package/lib/card-validation.cjs +1 -9
- package/lib/card-validation.js +1 -9
- package/lib/{chat-storage-lib-0imhRX3l.d.cts → chat-storage-lib-BIUbE-fM.d.cts} +1 -1
- package/lib/{chat-storage-lib-CJn7a6OH.d.ts → chat-storage-lib-BlG-sobS.d.ts} +1 -1
- package/lib/chat-store-public.cjs +1 -1
- package/lib/chat-store-public.d.cts +3 -3
- package/lib/chat-store-public.d.ts +3 -3
- package/lib/chat-store-public.js +1 -1
- package/lib/chunk-2MZUYY65.cjs +2 -0
- package/lib/chunk-5EA2ESS4.cjs +16 -0
- package/lib/chunk-76ON3V7R.js +2 -0
- package/lib/chunk-7BKNHFNH.js +2 -0
- package/lib/chunk-BQS3EIEK.js +3 -0
- package/lib/chunk-CIAJNUR4.js +2 -0
- package/lib/chunk-DAXACY63.js +2 -0
- package/lib/chunk-FW4363Y4.js +2 -0
- package/lib/chunk-FZ2SBU5M.js +3 -0
- package/lib/chunk-G4XXRHL2.cjs +3 -0
- package/lib/chunk-GJJMEAVN.cjs +2 -0
- package/lib/chunk-GNFE24S7.cjs +2 -0
- package/lib/chunk-GYQXDNNI.cjs +2 -0
- package/lib/chunk-H5HBXPOI.cjs +3 -0
- package/lib/chunk-H5KD3JPY.cjs +2 -0
- package/lib/chunk-HEEDJEKM.js +2 -0
- package/lib/chunk-HLJH7LGW.js +16 -0
- package/lib/chunk-IXZG74EW.cjs +2 -0
- package/lib/chunk-JAL25FGA.cjs +2 -0
- package/lib/chunk-JM5EKT57.js +2 -0
- package/lib/chunk-JMDHDY6M.js +2 -0
- package/lib/chunk-KBELAKIY.js +2 -0
- package/lib/chunk-KHJABJ45.cjs +3 -0
- package/lib/chunk-KLRUISRY.cjs +2 -0
- package/lib/chunk-KQX6R4PV.cjs +8 -0
- package/lib/chunk-LODXIALE.cjs +2 -0
- package/lib/chunk-MLVTJASJ.js +2 -0
- package/lib/chunk-MNEOJWPS.js +10 -0
- package/lib/chunk-N6P2JW4W.js +3 -0
- package/lib/chunk-NMZ6XNLB.cjs +3 -0
- package/lib/chunk-OEFTOO47.cjs +3 -0
- package/lib/chunk-OPNGCSXJ.js +2 -0
- package/lib/chunk-OSWJKJLB.js +8 -0
- package/lib/chunk-P7ZCDICS.cjs +2 -0
- package/lib/chunk-PBCDDO4V.cjs +2 -0
- package/lib/chunk-PMUSJQSR.cjs +2 -0
- package/lib/chunk-Q6H7NINN.cjs +5 -0
- package/lib/chunk-QWBNDVUA.js +5 -0
- package/lib/chunk-S6DRP2HX.cjs +2 -0
- package/lib/chunk-SCWHDI3I.js +2 -0
- package/lib/chunk-SFVO2LB2.cjs +3 -0
- package/lib/chunk-U2N6MCD5.cjs +2 -0
- package/lib/chunk-UJ7ZTV4J.cjs +10 -0
- package/lib/chunk-VGT3TRQG.js +3 -0
- package/lib/chunk-VLBB3D6B.js +3 -0
- package/lib/chunk-VMW4Z6EF.js +3 -0
- package/lib/chunk-WDPOGXTY.js +2 -0
- package/lib/chunk-WOALA3V5.cjs +2 -0
- package/lib/chunk-X3LC4LII.js +2 -0
- package/lib/chunk-XQRNDX4Q.js +2 -0
- package/lib/chunk-YGKDQLYP.js +2 -0
- package/lib/chunk-YMEIPKLW.cjs +2 -0
- package/lib/cloud-storage.cjs +2 -0
- package/lib/cloud-storage.d.cts +177 -0
- package/lib/cloud-storage.d.ts +177 -0
- package/lib/cloud-storage.js +2 -0
- package/lib/config/index.cjs +1 -1
- package/lib/config/index.js +1 -1
- package/lib/continuous-event-graph/index.cjs +1 -2
- package/lib/continuous-event-graph/index.js +1 -2
- package/lib/event-graph/index.cjs +1 -22
- package/lib/event-graph/index.js +1 -22
- package/lib/execution-refs.cjs +1 -2
- package/lib/execution-refs.d.cts +3 -2
- package/lib/execution-refs.d.ts +3 -2
- package/lib/execution-refs.js +1 -2
- package/lib/index.cjs +2 -24
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -24
- package/lib/{types-CIgsh56O.d.cts → queue-lane-registry-BPKWWgd4.d.cts} +66 -14
- package/lib/{types-30R357js.d.ts → queue-lane-registry-Be6c0ftj.d.ts} +66 -14
- package/lib/server-runtime/index.cjs +1 -7
- package/lib/server-runtime/index.d.cts +18 -7
- package/lib/server-runtime/index.d.ts +18 -7
- package/lib/server-runtime/index.js +1 -7
- package/lib/step-machine/index.cjs +1 -11
- package/lib/step-machine/index.js +1 -11
- package/lib/step-machine-public/index.cjs +1 -4
- package/lib/step-machine-public/index.d.cts +1 -1
- package/lib/step-machine-public/index.d.ts +1 -1
- package/lib/step-machine-public/index.js +1 -4
- package/lib/{storage-interface-B2WD9D5n.d.cts → storage-interface-BFiD3kyB.d.cts} +38 -1
- package/lib/{storage-interface-B2WD9D5n.d.ts → storage-interface-BFiD3kyB.d.ts} +38 -1
- package/lib/stores/index.cjs +1 -2
- package/lib/stores/index.d.cts +1 -1
- package/lib/stores/index.d.ts +1 -1
- package/lib/stores/index.js +1 -2
- package/lib/stores/kv.cjs +1 -2
- package/lib/stores/kv.d.cts +1 -1
- package/lib/stores/kv.d.ts +1 -1
- package/lib/stores/kv.js +1 -2
- package/lib/stores/memory.cjs +1 -1
- package/lib/stores/memory.js +1 -1
- package/package.json +7 -16
- package/cli/board-live-cards-lib-COi4bSpk.d.ts +0 -322
- package/cli/browser-api/board-live-cards-browser-adapter.d.ts +0 -36
- package/cli/browser-api/board-live-cards-browser-adapter.js +0 -4
- package/cli/browser-api/card-store-browser-api.d.ts +0 -25
- package/cli/browser-api/card-store-browser-api.js +0 -2
- package/cli/browser-api/jsonata-sync.cjs +0 -7623
- package/cli/bundled/artifacts-store-cli.mjs +0 -12
- package/cli/bundled/batch-runner-cli.mjs +0 -3
- package/cli/bundled/board-live-cards-cli.mjs +0 -29
- package/cli/bundled/card-store-cli.mjs +0 -154
- package/cli/bundled/chat-store-cli.mjs +0 -16
- package/cli/bundled/jsonata-sync.cjs +0 -7623
- package/cli/bundled/step-machine-cli.mjs +0 -150
- package/cli/execution-interface-BCIhu1gO.d.ts +0 -442
- package/cli/types-H3EMBPY2.d.ts +0 -398
- package/examples/board/server/README-mcp-api.md +0 -690
- package/examples/board/test/server-http-mcp-test.js +0 -1280
- package/lib/board-livegraph-runtime/jsonata-sync.cjs +0 -7623
- package/lib/card-compute/jsonata-sync.cjs +0 -7623
- package/lib/continuous-event-graph/jsonata-sync.cjs +0 -7623
- package/lib/server-runtime/jsonata-sync.cjs +0 -7623
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { a as ArtifactsStore } from './artifacts-store-lib-
|
|
2
|
-
export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-
|
|
3
|
-
import { I as InvocationAdapter } from './
|
|
4
|
-
export { D as DescribeEnvelope } from './
|
|
5
|
-
import { a as KindValueRef } from './storage-interface-
|
|
6
|
-
export { p as parseRef, s as serializeRef } from './storage-interface-
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
9
|
-
import { c as ChatStorage } from './chat-storage-lib-
|
|
10
|
-
export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
2
|
-
export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-
|
|
3
|
-
import { I as InvocationAdapter } from './
|
|
4
|
-
export { D as DescribeEnvelope } from './
|
|
5
|
-
import { a as KindValueRef } from './storage-interface-
|
|
6
|
-
export { p as parseRef, s as serializeRef } from './storage-interface-
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
9
|
-
import { c as ChatStorage } from './chat-storage-lib-
|
|
10
|
-
export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-
|
|
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
|
|
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
|
|
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
|
|
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 };
|