yaml-flow 8.5.3 → 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.
- 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 +266 -5
- 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 +1 -0
- package/examples/board/test/server-http-test.js +870 -67
- package/examples/board-local/demo-shell-localstorage.html +3 -3
- package/lib/{artifacts-store-lib-D-k-E8Vy.d.ts → artifacts-store-lib-C1rtrkxm.d.ts} +1 -1
- package/lib/{artifacts-store-lib-CVgtQrNZ.d.cts → artifacts-store-lib-CLOtsiav.d.cts} +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 +35 -15
- package/lib/board-live-cards-mcp.d.ts +35 -15
- 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 +32 -12
- package/lib/board-live-cards-node.d.ts +32 -12
- package/lib/board-live-cards-node.js +8 -16
- package/lib/{board-live-cards-public-BGS22cMb.d.ts → board-live-cards-public-CBVjm327.d.ts} +59 -24
- package/lib/{board-live-cards-public-B13InXhC.d.cts → board-live-cards-public-CPJy-aGW.d.cts} +59 -24
- 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 +5 -5
- package/lib/board-live-cards-server-runtime.d.ts +5 -5
- 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 +21 -7
- package/lib/board-worker-adapter.d.cts +17 -2
- package/lib/board-worker-adapter.d.ts +17 -2
- package/lib/board-worker-adapter.js +21 -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-CJn7a6OH.d.ts → chat-storage-lib-Bce-xx6l.d.ts} +1 -1
- package/lib/{chat-storage-lib-0imhRX3l.d.cts → chat-storage-lib-CKylihjm.d.cts} +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-5DB54ZX2.cjs +2 -0
- package/lib/chunk-5EA2ESS4.cjs +16 -0
- package/lib/chunk-6APH25VI.js +2 -0
- package/lib/chunk-76ON3V7R.js +2 -0
- package/lib/chunk-7BKNHFNH.js +2 -0
- package/lib/chunk-CWREBRXS.js +3 -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-GNFE24S7.cjs +2 -0
- package/lib/chunk-GYQXDNNI.cjs +2 -0
- package/lib/chunk-H5KD3JPY.cjs +2 -0
- package/lib/chunk-HLJH7LGW.js +16 -0
- package/lib/chunk-I4WH5U5D.cjs +2 -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-KNFFDVLD.cjs +2 -0
- package/lib/chunk-LBMEVV4U.js +2 -0
- package/lib/chunk-LDAP75GN.js +2 -0
- package/lib/chunk-LODXIALE.cjs +2 -0
- package/lib/chunk-LVNQCE5X.cjs +3 -0
- package/lib/chunk-M7EQRS6W.js +3 -0
- package/lib/chunk-MNEOJWPS.js +10 -0
- package/lib/chunk-NJJ7WEDT.cjs +2 -0
- package/lib/chunk-NMZ6XNLB.cjs +3 -0
- package/lib/chunk-OPNGCSXJ.js +2 -0
- package/lib/chunk-P64UKI3L.cjs +8 -0
- package/lib/chunk-P7ZCDICS.cjs +2 -0
- package/lib/chunk-Q6H7NINN.cjs +5 -0
- package/lib/chunk-Q6VSL327.js +8 -0
- package/lib/chunk-QWBNDVUA.js +5 -0
- package/lib/chunk-S6DRP2HX.cjs +2 -0
- package/lib/chunk-UJ7ZTV4J.cjs +10 -0
- package/lib/chunk-UVE65IPR.cjs +3 -0
- package/lib/chunk-VCCTAUIG.js +2 -0
- package/lib/chunk-VGT3TRQG.js +3 -0
- package/lib/chunk-VLBB3D6B.js +3 -0
- package/lib/chunk-WDPOGXTY.js +2 -0
- package/lib/chunk-X3LC4LII.js +2 -0
- package/lib/chunk-YGKDQLYP.js +2 -0
- package/lib/chunk-YMEIPKLW.cjs +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/server-runtime/index.cjs +1 -7
- package/lib/server-runtime/index.d.cts +6 -6
- package/lib/server-runtime/index.d.ts +6 -6
- 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-Ct-C4tlz.d.cts} +28 -1
- package/lib/{storage-interface-B2WD9D5n.d.ts → storage-interface-Ct-C4tlz.d.ts} +28 -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/lib/{types-30R357js.d.ts → types-BuK2UMxk.d.ts} +4 -4
- package/lib/{types-CIgsh56O.d.cts → types-DRl0Hy_p.d.cts} +4 -4
- package/package.json +2 -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,16 +1,16 @@
|
|
|
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 './types-
|
|
4
|
-
export { D as DescribeEnvelope } from './types-
|
|
5
|
-
import { a as KindValueRef } from './storage-interface-
|
|
6
|
-
export { p as parseRef, s as serializeRef } from './storage-interface-
|
|
7
|
-
import { d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter } from './board-live-cards-public-
|
|
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-
|
|
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-
|
|
2
|
-
export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-
|
|
3
|
-
import { I as InvocationAdapter } from './types-
|
|
4
|
-
export { D as DescribeEnvelope } from './types-
|
|
5
|
-
import { a as KindValueRef } from './storage-interface-
|
|
6
|
-
export { p as parseRef, s as serializeRef } from './storage-interface-
|
|
7
|
-
import { d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter } from './board-live-cards-public-
|
|
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-
|
|
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 };
|