yaml-flow 8.6.4 → 8.7.0
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/adapters/firebase-storage.js +3 -0
- package/browser/adapters/firestore-storage.js +3 -0
- package/browser/adapters/localstorage-storage.js +4 -0
- package/browser/asset-integrity.json +20 -4
- package/browser/server-runtime-controlface.js +8 -0
- package/examples/ARCHITECTURE.md +5 -32
- package/examples/board/demo-shell-with-server.html +2 -2
- package/examples/board/doc.html +2 -2
- package/examples/board/server/board-server.js +4 -2
- package/examples/board-firestore/README.md +81 -0
- package/examples/board-firestore/browser/board-runtime.js +263 -0
- package/examples/board-firestore/firestore.indexes.json +29 -0
- package/examples/board-firestore/package.json +14 -0
- package/examples/board-firestore/server/adapters/firestore-archive-factory.js +59 -0
- package/examples/board-firestore/server/adapters/firestore-blob-storage.js +82 -0
- package/examples/board-firestore/server/adapters/firestore-board-adapter.js +127 -0
- package/examples/board-firestore/server/adapters/firestore-journal-storage.js +54 -0
- package/examples/board-firestore/server/adapters/firestore-kv-storage.js +47 -0
- package/examples/board-firestore/server/adapters/firestore-lock.js +62 -0
- package/examples/board-firestore/server/adapters/firestore-queue-storage.js +186 -0
- package/examples/board-firestore/server/adapters/firestore-scratch-storage.js +50 -0
- package/examples/board-firestore/server/worker.js +146 -0
- package/lib/{artifacts-store-lib-BR-Samty.d.cts → artifacts-store-lib-D9nMkVcE.d.cts} +1 -1
- package/lib/{artifacts-store-lib-DT7XlWUL.d.ts → artifacts-store-lib-DSSMqVL2.d.ts} +1 -1
- package/lib/artifacts-store-public.d.cts +2 -2
- package/lib/artifacts-store-public.d.ts +2 -2
- package/lib/board-live-cards-mcp.cjs +1 -1
- package/lib/board-live-cards-mcp.d.cts +50 -3
- package/lib/board-live-cards-mcp.d.ts +50 -3
- package/lib/board-live-cards-mcp.js +1 -1
- package/lib/board-live-cards-node.cjs +8 -8
- package/lib/board-live-cards-node.d.cts +13 -9
- package/lib/board-live-cards-node.d.ts +13 -9
- package/lib/board-live-cards-node.js +8 -8
- package/lib/{board-live-cards-public-BMUIPOrc.d.ts → board-live-cards-public-D-DJek3X.d.ts} +1 -1
- package/lib/{board-live-cards-public-wkNmBIRC.d.cts → board-live-cards-public-DQzPe7A9.d.cts} +1 -1
- package/lib/board-live-cards-public-async-3hUuHxDx.d.ts +55 -0
- package/lib/board-live-cards-public-async-CgMCYYft.d.cts +55 -0
- package/lib/board-live-cards-public.d.cts +1 -1
- package/lib/board-live-cards-public.d.ts +1 -1
- package/lib/board-live-cards-server-runtime.cjs +1 -1
- package/lib/board-live-cards-server-runtime.d.cts +10 -6
- package/lib/board-live-cards-server-runtime.d.ts +10 -6
- package/lib/board-live-cards-server-runtime.js +1 -1
- package/lib/board-platform-adapter-async-DOfEq_HC.d.cts +129 -0
- package/lib/board-platform-adapter-async-JZPCzZnH.d.ts +129 -0
- package/lib/board-worker-adapter.cjs +3 -3
- package/lib/board-worker-adapter.js +3 -3
- package/lib/card-store-public.d.cts +1 -1
- package/lib/card-store-public.d.ts +1 -1
- package/lib/{chat-storage-lib-BIUbE-fM.d.cts → chat-storage-lib-B9Q34Dyv.d.cts} +1 -1
- package/lib/{chat-storage-lib-BlG-sobS.d.ts → chat-storage-lib-DB9iSai2.d.ts} +1 -1
- package/lib/chat-store-public.d.cts +2 -2
- package/lib/chat-store-public.d.ts +2 -2
- package/lib/chunk-272IYUKT.cjs +2 -0
- package/lib/chunk-5XHOHTLZ.cjs +2 -0
- package/lib/chunk-6APH25VI.js +2 -0
- package/lib/chunk-7FGPOGRV.cjs +2 -0
- package/lib/chunk-7ICPAABP.cjs +7 -0
- package/lib/chunk-CPAXTVBQ.cjs +2 -0
- package/lib/chunk-DDYSXP2A.cjs +3 -0
- package/lib/chunk-EGRHWZRV.js +2 -0
- package/lib/chunk-GL2OHR2E.cjs +2 -0
- package/lib/chunk-IPLSRN6P.cjs +4 -0
- package/lib/chunk-J5J6BG7B.js +2 -0
- package/lib/chunk-KAWQPLIE.cjs +2 -0
- package/lib/chunk-LPXVVMQT.cjs +2 -0
- package/lib/chunk-M3OU6IS5.cjs +2 -0
- package/lib/chunk-M6STQR5F.cjs +2 -0
- package/lib/chunk-NJJ7WEDT.cjs +2 -0
- package/lib/chunk-NKIQRCOM.cjs +2 -0
- package/lib/chunk-NM6O35RY.cjs +2 -0
- package/lib/chunk-NTICU4OK.js +2 -0
- package/lib/chunk-O7NOHKVR.js +2 -0
- package/lib/chunk-PRHQBGPT.js +2 -0
- package/lib/chunk-S44QZUDX.js +2 -0
- package/lib/chunk-SGV7PU4H.js +2 -0
- package/lib/chunk-TSN3RTXT.js +4 -0
- package/lib/chunk-VXJHBWK3.js +2 -0
- package/lib/chunk-WHDEBJLT.js +7 -0
- package/lib/chunk-XYN5D3GL.js +2 -0
- package/lib/chunk-YGALANRO.js +2 -0
- package/lib/chunk-ZJ5M5COT.js +2 -0
- package/lib/chunk-ZXQR7GHT.js +3 -0
- package/lib/cloud-storage.cjs +1 -1
- package/lib/cloud-storage.d.cts +5 -3
- package/lib/cloud-storage.d.ts +5 -3
- package/lib/cloud-storage.js +1 -1
- package/lib/firebase-storage/index.cjs +3 -0
- package/lib/firebase-storage/index.d.cts +57 -0
- package/lib/firebase-storage/index.d.ts +57 -0
- package/lib/firebase-storage/index.js +3 -0
- package/lib/firestore-storage/index.cjs +3 -0
- package/lib/firestore-storage/index.d.cts +98 -0
- package/lib/firestore-storage/index.d.ts +98 -0
- package/lib/firestore-storage/index.js +3 -0
- package/lib/localstorage-storage/index.cjs +2 -0
- package/lib/localstorage-storage/index.d.cts +39 -0
- package/lib/localstorage-storage/index.d.ts +39 -0
- package/lib/localstorage-storage/index.js +2 -0
- package/lib/mcp-tool-registries-BBObLYga.d.ts +41 -0
- package/lib/mcp-tool-registries-W3TRj6O5.d.cts +41 -0
- package/lib/queue-lane-registry-PaZuFpwp.d.cts +30 -0
- package/lib/queue-lane-registry-PaZuFpwp.d.ts +30 -0
- package/lib/server-jobs-queue-runner/index.cjs +2 -0
- package/lib/server-jobs-queue-runner/index.d.cts +22 -0
- package/lib/server-jobs-queue-runner/index.d.ts +22 -0
- package/lib/server-jobs-queue-runner/index.js +2 -0
- package/lib/server-runtime/index.cjs +1 -1
- package/lib/server-runtime/index.d.cts +11 -17
- package/lib/server-runtime/index.d.ts +11 -17
- package/lib/server-runtime/index.js +1 -1
- package/lib/server-runtime-agentface/index.cjs +2 -0
- package/lib/server-runtime-agentface/index.d.cts +53 -0
- package/lib/server-runtime-agentface/index.d.ts +53 -0
- package/lib/server-runtime-agentface/index.js +2 -0
- package/lib/server-runtime-controlface/index.cjs +2 -0
- package/lib/server-runtime-controlface/index.d.cts +80 -0
- package/lib/server-runtime-controlface/index.d.ts +80 -0
- package/lib/server-runtime-controlface/index.js +2 -0
- package/lib/server-runtime-core/index.cjs +2 -0
- package/lib/server-runtime-core/index.d.cts +376 -0
- package/lib/server-runtime-core/index.d.ts +376 -0
- package/lib/server-runtime-core/index.js +2 -0
- package/lib/server-runtime-watchers/index.cjs +2 -0
- package/lib/server-runtime-watchers/index.d.cts +127 -0
- package/lib/server-runtime-watchers/index.d.ts +127 -0
- package/lib/server-runtime-watchers/index.js +2 -0
- package/lib/server-runtime-webhooks/index.cjs +2 -0
- package/lib/server-runtime-webhooks/index.d.cts +34 -0
- package/lib/server-runtime-webhooks/index.d.ts +34 -0
- package/lib/server-runtime-webhooks/index.js +2 -0
- package/lib/storage-async-interface-BRR4eBjx.d.cts +81 -0
- package/lib/storage-async-interface-DhlOVPSp.d.ts +81 -0
- package/lib/{queue-lane-registry-BPKWWgd4.d.cts → types-BzQY45dH.d.cts} +8 -34
- package/lib/{queue-lane-registry-Be6c0ftj.d.ts → types-CF2xUcZW.d.ts} +8 -34
- package/package.json +46 -2
- package/examples/board-local/demo-shell-localstorage.html +0 -843
- package/lib/board-live-cards-public-async-DKZqbJVU.d.ts +0 -256
- package/lib/board-live-cards-public-async-dMWNbWq6.d.cts +0 -256
- package/lib/chunk-KXWT3CY6.cjs +0 -8
- package/lib/chunk-MLVTJASJ.js +0 -2
- package/lib/chunk-OJLA6NLU.js +0 -8
- package/lib/chunk-R5L5WUKN.js +0 -2
- package/lib/chunk-WOALA3V5.cjs +0 -2
- package/lib/chunk-YEB5QHGE.cjs +0 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { R as RuntimeRequest, a as RuntimeResponse } from '../types-BzQY45dH.cjs';
|
|
2
|
+
import { T as ToolRegistry } from '../mcp-tool-registries-W3TRj6O5.cjs';
|
|
3
|
+
import '../artifacts-store-lib-D9nMkVcE.cjs';
|
|
4
|
+
import '../storage-interface-BFiD3kyB.cjs';
|
|
5
|
+
import '../board-live-cards-public-DQzPe7A9.cjs';
|
|
6
|
+
import '../execution-refs.cjs';
|
|
7
|
+
import '../types-BBhqYGhE.cjs';
|
|
8
|
+
import '../board-platform-adapter-async-DOfEq_HC.cjs';
|
|
9
|
+
import '../storage-async-interface-BRR4eBjx.cjs';
|
|
10
|
+
import '../board-live-cards-public-async-CgMCYYft.cjs';
|
|
11
|
+
import '../chat-storage-lib-B9Q34Dyv.cjs';
|
|
12
|
+
import '../board-live-cards-mcp.cjs';
|
|
13
|
+
import '../chat-store-public.cjs';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* server-runtime/routes-webhooks.ts
|
|
17
|
+
*
|
|
18
|
+
* Worker webhook MCP route extracted from createSingleBoardServerRuntime.
|
|
19
|
+
* POST /mcp-webhooks
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
interface RoutesWebhooksDeps {
|
|
23
|
+
apiBasePath: string;
|
|
24
|
+
json: (res: RuntimeResponse, status: number, payload: unknown) => void;
|
|
25
|
+
readJsonBody: (req: RuntimeRequest) => Promise<Record<string, unknown>>;
|
|
26
|
+
initBoardAndSetup: () => Promise<void>;
|
|
27
|
+
createMcpWebhookToolRegistry: () => ToolRegistry;
|
|
28
|
+
}
|
|
29
|
+
interface RoutesWebhooks {
|
|
30
|
+
handleWebhooksApi: (req: RuntimeRequest, res: RuntimeResponse, parsedUrl: URL) => Promise<boolean>;
|
|
31
|
+
}
|
|
32
|
+
declare function createRoutesWebhooks(deps: RoutesWebhooksDeps): RoutesWebhooks;
|
|
33
|
+
|
|
34
|
+
export { type RoutesWebhooks, type RoutesWebhooksDeps, createRoutesWebhooks };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { R as RuntimeRequest, a as RuntimeResponse } from '../types-CF2xUcZW.js';
|
|
2
|
+
import { T as ToolRegistry } from '../mcp-tool-registries-BBObLYga.js';
|
|
3
|
+
import '../artifacts-store-lib-DSSMqVL2.js';
|
|
4
|
+
import '../storage-interface-BFiD3kyB.js';
|
|
5
|
+
import '../board-live-cards-public-D-DJek3X.js';
|
|
6
|
+
import '../execution-refs.js';
|
|
7
|
+
import '../types-BBhqYGhE.js';
|
|
8
|
+
import '../board-platform-adapter-async-JZPCzZnH.js';
|
|
9
|
+
import '../storage-async-interface-DhlOVPSp.js';
|
|
10
|
+
import '../board-live-cards-public-async-3hUuHxDx.js';
|
|
11
|
+
import '../chat-storage-lib-DB9iSai2.js';
|
|
12
|
+
import '../board-live-cards-mcp.js';
|
|
13
|
+
import '../chat-store-public.js';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* server-runtime/routes-webhooks.ts
|
|
17
|
+
*
|
|
18
|
+
* Worker webhook MCP route extracted from createSingleBoardServerRuntime.
|
|
19
|
+
* POST /mcp-webhooks
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
interface RoutesWebhooksDeps {
|
|
23
|
+
apiBasePath: string;
|
|
24
|
+
json: (res: RuntimeResponse, status: number, payload: unknown) => void;
|
|
25
|
+
readJsonBody: (req: RuntimeRequest) => Promise<Record<string, unknown>>;
|
|
26
|
+
initBoardAndSetup: () => Promise<void>;
|
|
27
|
+
createMcpWebhookToolRegistry: () => ToolRegistry;
|
|
28
|
+
}
|
|
29
|
+
interface RoutesWebhooks {
|
|
30
|
+
handleWebhooksApi: (req: RuntimeRequest, res: RuntimeResponse, parsedUrl: URL) => Promise<boolean>;
|
|
31
|
+
}
|
|
32
|
+
declare function createRoutesWebhooks(deps: RoutesWebhooksDeps): RoutesWebhooks;
|
|
33
|
+
|
|
34
|
+
export { type RoutesWebhooks, type RoutesWebhooksDeps, createRoutesWebhooks };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { b as BlobStat, a as KindValueRef, c as JournalEntry, d as JournalReadResult, Q as QueueMessage, e as QueueLeasedMessage, f as QueueDeadLetterMessage } from './storage-interface-BFiD3kyB.cjs';
|
|
2
|
+
|
|
3
|
+
interface AsyncBlobStorage {
|
|
4
|
+
read(key: string): Promise<string | null>;
|
|
5
|
+
write(key: string, content: string): Promise<void>;
|
|
6
|
+
exists(key: string): Promise<boolean>;
|
|
7
|
+
remove(key: string): Promise<void>;
|
|
8
|
+
readBytes?(key: string): Promise<Uint8Array | null>;
|
|
9
|
+
writeBytes?(key: string, content: Uint8Array): Promise<void>;
|
|
10
|
+
listKeys(prefix?: string): Promise<string[]>;
|
|
11
|
+
stat?(key: string): Promise<BlobStat | null>;
|
|
12
|
+
keyRef?(key: string): Promise<KindValueRef> | KindValueRef;
|
|
13
|
+
}
|
|
14
|
+
interface AsyncJournalStorage {
|
|
15
|
+
append(payload: unknown): Promise<JournalEntry>;
|
|
16
|
+
readAll(): Promise<JournalEntry[]>;
|
|
17
|
+
readAfter(cursor: string | null): Promise<JournalReadResult>;
|
|
18
|
+
clear?(): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
interface AsyncQueueStorage {
|
|
21
|
+
enqueue<T>(body: T): Promise<QueueMessage<T>>;
|
|
22
|
+
/** See QueueStorage.enqueueIfAbsent. Optional on adapters that cannot cheaply dedup. */
|
|
23
|
+
enqueueIfAbsent?<T>(body: T, dedupKey: string): Promise<QueueMessage<T> | null>;
|
|
24
|
+
lease<T>(opts?: {
|
|
25
|
+
max?: number;
|
|
26
|
+
visibilityMs?: number;
|
|
27
|
+
}): Promise<QueueLeasedMessage<T>[]>;
|
|
28
|
+
ack(messageId: string, leaseToken: string): Promise<boolean>;
|
|
29
|
+
nack(messageId: string, leaseToken: string, opts?: {
|
|
30
|
+
dead?: boolean;
|
|
31
|
+
reason?: string;
|
|
32
|
+
}): Promise<boolean>;
|
|
33
|
+
peekActive<T>(prefix?: string): Promise<QueueMessage<T>[]>;
|
|
34
|
+
peekDeadLetter<T>(prefix?: string): Promise<QueueDeadLetterMessage<T>[]>;
|
|
35
|
+
}
|
|
36
|
+
interface AsyncKVStorage {
|
|
37
|
+
read(key: string): Promise<unknown | null>;
|
|
38
|
+
write(key: string, value: unknown): Promise<void>;
|
|
39
|
+
delete(key: string): Promise<void>;
|
|
40
|
+
listKeys(prefix?: string): Promise<string[]>;
|
|
41
|
+
}
|
|
42
|
+
interface AsyncJSONStorage {
|
|
43
|
+
read(key: string): Promise<unknown | null>;
|
|
44
|
+
get(key: string, jsonPath: string): Promise<unknown | null>;
|
|
45
|
+
write(key: string, value: unknown): Promise<void>;
|
|
46
|
+
delete(key: string): Promise<void>;
|
|
47
|
+
listKeys(prefix?: string): Promise<string[]>;
|
|
48
|
+
shallowMerge(key: string, patch: Record<string, unknown>): Promise<void>;
|
|
49
|
+
deepMerge(key: string, patch: Record<string, unknown>): Promise<void>;
|
|
50
|
+
patch(key: string, jsonPath: string, value: unknown): Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
interface AsyncScratchStorage extends AsyncBlobStorage {
|
|
53
|
+
getUniqueKey(prefix?: string, suffix?: string): Promise<string>;
|
|
54
|
+
create(data: string, prefix?: string, suffix?: string): Promise<string>;
|
|
55
|
+
keyRef(key: string): Promise<KindValueRef> | KindValueRef;
|
|
56
|
+
config: {
|
|
57
|
+
get(k: string): Promise<unknown> | unknown;
|
|
58
|
+
set(k: string, v: unknown): Promise<void> | void;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
interface AsyncArchiveFactory {
|
|
62
|
+
stream(name: string): AsyncJournalStorage;
|
|
63
|
+
blob(name: string): AsyncBlobStorage;
|
|
64
|
+
listStreams(prefix?: string): Promise<string[]>;
|
|
65
|
+
listBlobs(prefix?: string): Promise<string[]>;
|
|
66
|
+
config: {
|
|
67
|
+
get(k: string): Promise<unknown> | unknown;
|
|
68
|
+
set(k: string, v: unknown): Promise<void> | void;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
interface AsyncStorageProvider {
|
|
72
|
+
blob: AsyncBlobStorage;
|
|
73
|
+
journal: AsyncJournalStorage;
|
|
74
|
+
kv: AsyncKVStorage;
|
|
75
|
+
}
|
|
76
|
+
interface AsyncAtomicRelayLock {
|
|
77
|
+
tryAcquire(): Promise<(() => Promise<void> | void) | null>;
|
|
78
|
+
}
|
|
79
|
+
declare function withAsyncRelayLock(lock: AsyncAtomicRelayLock, work: () => Promise<void>, continuation?: () => Promise<void> | void): Promise<boolean>;
|
|
80
|
+
|
|
81
|
+
export { type AsyncArchiveFactory as A, type AsyncBlobStorage as a, type AsyncJournalStorage as b, type AsyncKVStorage as c, type AsyncAtomicRelayLock as d, type AsyncQueueStorage as e, type AsyncScratchStorage as f, type AsyncJSONStorage as g, type AsyncStorageProvider as h, withAsyncRelayLock as w };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { b as BlobStat, a as KindValueRef, c as JournalEntry, d as JournalReadResult, Q as QueueMessage, e as QueueLeasedMessage, f as QueueDeadLetterMessage } from './storage-interface-BFiD3kyB.js';
|
|
2
|
+
|
|
3
|
+
interface AsyncBlobStorage {
|
|
4
|
+
read(key: string): Promise<string | null>;
|
|
5
|
+
write(key: string, content: string): Promise<void>;
|
|
6
|
+
exists(key: string): Promise<boolean>;
|
|
7
|
+
remove(key: string): Promise<void>;
|
|
8
|
+
readBytes?(key: string): Promise<Uint8Array | null>;
|
|
9
|
+
writeBytes?(key: string, content: Uint8Array): Promise<void>;
|
|
10
|
+
listKeys(prefix?: string): Promise<string[]>;
|
|
11
|
+
stat?(key: string): Promise<BlobStat | null>;
|
|
12
|
+
keyRef?(key: string): Promise<KindValueRef> | KindValueRef;
|
|
13
|
+
}
|
|
14
|
+
interface AsyncJournalStorage {
|
|
15
|
+
append(payload: unknown): Promise<JournalEntry>;
|
|
16
|
+
readAll(): Promise<JournalEntry[]>;
|
|
17
|
+
readAfter(cursor: string | null): Promise<JournalReadResult>;
|
|
18
|
+
clear?(): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
interface AsyncQueueStorage {
|
|
21
|
+
enqueue<T>(body: T): Promise<QueueMessage<T>>;
|
|
22
|
+
/** See QueueStorage.enqueueIfAbsent. Optional on adapters that cannot cheaply dedup. */
|
|
23
|
+
enqueueIfAbsent?<T>(body: T, dedupKey: string): Promise<QueueMessage<T> | null>;
|
|
24
|
+
lease<T>(opts?: {
|
|
25
|
+
max?: number;
|
|
26
|
+
visibilityMs?: number;
|
|
27
|
+
}): Promise<QueueLeasedMessage<T>[]>;
|
|
28
|
+
ack(messageId: string, leaseToken: string): Promise<boolean>;
|
|
29
|
+
nack(messageId: string, leaseToken: string, opts?: {
|
|
30
|
+
dead?: boolean;
|
|
31
|
+
reason?: string;
|
|
32
|
+
}): Promise<boolean>;
|
|
33
|
+
peekActive<T>(prefix?: string): Promise<QueueMessage<T>[]>;
|
|
34
|
+
peekDeadLetter<T>(prefix?: string): Promise<QueueDeadLetterMessage<T>[]>;
|
|
35
|
+
}
|
|
36
|
+
interface AsyncKVStorage {
|
|
37
|
+
read(key: string): Promise<unknown | null>;
|
|
38
|
+
write(key: string, value: unknown): Promise<void>;
|
|
39
|
+
delete(key: string): Promise<void>;
|
|
40
|
+
listKeys(prefix?: string): Promise<string[]>;
|
|
41
|
+
}
|
|
42
|
+
interface AsyncJSONStorage {
|
|
43
|
+
read(key: string): Promise<unknown | null>;
|
|
44
|
+
get(key: string, jsonPath: string): Promise<unknown | null>;
|
|
45
|
+
write(key: string, value: unknown): Promise<void>;
|
|
46
|
+
delete(key: string): Promise<void>;
|
|
47
|
+
listKeys(prefix?: string): Promise<string[]>;
|
|
48
|
+
shallowMerge(key: string, patch: Record<string, unknown>): Promise<void>;
|
|
49
|
+
deepMerge(key: string, patch: Record<string, unknown>): Promise<void>;
|
|
50
|
+
patch(key: string, jsonPath: string, value: unknown): Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
interface AsyncScratchStorage extends AsyncBlobStorage {
|
|
53
|
+
getUniqueKey(prefix?: string, suffix?: string): Promise<string>;
|
|
54
|
+
create(data: string, prefix?: string, suffix?: string): Promise<string>;
|
|
55
|
+
keyRef(key: string): Promise<KindValueRef> | KindValueRef;
|
|
56
|
+
config: {
|
|
57
|
+
get(k: string): Promise<unknown> | unknown;
|
|
58
|
+
set(k: string, v: unknown): Promise<void> | void;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
interface AsyncArchiveFactory {
|
|
62
|
+
stream(name: string): AsyncJournalStorage;
|
|
63
|
+
blob(name: string): AsyncBlobStorage;
|
|
64
|
+
listStreams(prefix?: string): Promise<string[]>;
|
|
65
|
+
listBlobs(prefix?: string): Promise<string[]>;
|
|
66
|
+
config: {
|
|
67
|
+
get(k: string): Promise<unknown> | unknown;
|
|
68
|
+
set(k: string, v: unknown): Promise<void> | void;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
interface AsyncStorageProvider {
|
|
72
|
+
blob: AsyncBlobStorage;
|
|
73
|
+
journal: AsyncJournalStorage;
|
|
74
|
+
kv: AsyncKVStorage;
|
|
75
|
+
}
|
|
76
|
+
interface AsyncAtomicRelayLock {
|
|
77
|
+
tryAcquire(): Promise<(() => Promise<void> | void) | null>;
|
|
78
|
+
}
|
|
79
|
+
declare function withAsyncRelayLock(lock: AsyncAtomicRelayLock, work: () => Promise<void>, continuation?: () => Promise<void> | void): Promise<boolean>;
|
|
80
|
+
|
|
81
|
+
export { type AsyncArchiveFactory as A, type AsyncBlobStorage as a, type AsyncJournalStorage as b, type AsyncKVStorage as c, type AsyncAtomicRelayLock as d, type AsyncQueueStorage as e, type AsyncScratchStorage as f, type AsyncJSONStorage as g, type AsyncStorageProvider as h, withAsyncRelayLock as w };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as ArtifactsStore } from './artifacts-store-lib-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as ArtifactsStore } from './artifacts-store-lib-D9nMkVcE.cjs';
|
|
2
|
+
import { e as BoardPlatformAdapter, d as BoardNonCorePlatformAdapter, c as BoardLiveCardsPublic, a as CommandResult, f as BoardWorkerRequest } from './board-live-cards-public-DQzPe7A9.cjs';
|
|
3
|
+
import { A as AsyncBoardPlatformAdapter } from './board-platform-adapter-async-DOfEq_HC.cjs';
|
|
4
|
+
import { A as AsyncBoardLiveCardsPublic } from './board-live-cards-public-async-CgMCYYft.cjs';
|
|
4
5
|
import { ExecutionRef } from './execution-refs.cjs';
|
|
5
6
|
import { a as KindValueRef } from './storage-interface-BFiD3kyB.cjs';
|
|
6
|
-
import {
|
|
7
|
+
import { C as ChatStorage } from './chat-storage-lib-B9Q34Dyv.cjs';
|
|
7
8
|
|
|
8
9
|
type Awaitable<T> = T | Promise<T>;
|
|
9
10
|
type BoardRuntimePlatformAdapter = BoardPlatformAdapter | AsyncBoardPlatformAdapter;
|
|
@@ -94,6 +95,8 @@ interface BoardContextConfig {
|
|
|
94
95
|
baseRef: KindValueRef;
|
|
95
96
|
cardStoreRef: string;
|
|
96
97
|
outputsStoreRef: string;
|
|
98
|
+
/** Optional ref pointing persisted card chat storage at a different backend. */
|
|
99
|
+
chatStoreRef?: string;
|
|
97
100
|
/** Optional ref pointing scratch storage at a different backend than the board runtime. */
|
|
98
101
|
scratchStoreRef?: string;
|
|
99
102
|
/** Optional ref pointing archive storage at a different backend than the board runtime. */
|
|
@@ -206,33 +209,4 @@ interface RuntimeResponse {
|
|
|
206
209
|
end(data?: string | Buffer): void;
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
type
|
|
210
|
-
interface QueueLaneLease<TMessage = unknown> {
|
|
211
|
-
id: string;
|
|
212
|
-
attempt: number;
|
|
213
|
-
message: TMessage;
|
|
214
|
-
ack(): QueueLaneAwaitable<boolean>;
|
|
215
|
-
nack(opts?: {
|
|
216
|
-
dead?: boolean;
|
|
217
|
-
reason?: string;
|
|
218
|
-
}): QueueLaneAwaitable<boolean>;
|
|
219
|
-
}
|
|
220
|
-
interface QueueLaneDescriptor<TMessage = unknown> {
|
|
221
|
-
id: string;
|
|
222
|
-
pollIntervalMs?: number;
|
|
223
|
-
visibilityMs?: number;
|
|
224
|
-
concurrency?: number;
|
|
225
|
-
maxAttempts?: number;
|
|
226
|
-
lease(opts?: {
|
|
227
|
-
max?: number;
|
|
228
|
-
visibilityMs?: number;
|
|
229
|
-
}): QueueLaneAwaitable<QueueLaneLease<TMessage>[]>;
|
|
230
|
-
handle(message: TMessage, lease: QueueLaneLease<TMessage>): Promise<void>;
|
|
231
|
-
onError?: (error: unknown, lease: QueueLaneLease<TMessage>) => void;
|
|
232
|
-
}
|
|
233
|
-
interface QueueLaneRegistry {
|
|
234
|
-
lanes: QueueLaneDescriptor[];
|
|
235
|
-
}
|
|
236
|
-
declare function createQueueLaneRegistry(lanes: QueueLaneDescriptor[]): QueueLaneRegistry;
|
|
237
|
-
|
|
238
|
-
export { type Awaitable as A, type BoardRuntimePlatformAdapter as B, type ChatHandlerFlowRunner as C, type DescribeEnvelope as D, type HostedBoardQueueLaneTuning as H, type InvocationAdapter as I, type MultiBoardRuntimeOptions as M, type NotificationTransport as N, type QueueLaneRegistry as Q, type RuntimeLogger as R, type SingleBoardRuntime as S, type MultiBoardRuntime as a, type SingleBoardRuntimeOptions as b, type BoardContextConfig as c, type BoardRuntimePublic as d, type QueueLaneRuntimeTuning as e, type RuntimeRequest as f, type RuntimeResponse as g, type QueueLaneLease as h, type QueueLaneDescriptor as i, createQueueLaneRegistry as j };
|
|
212
|
+
export type { Awaitable as A, BoardContextConfig as B, ChatHandlerFlowRunner as C, DescribeEnvelope as D, HostedBoardQueueLaneTuning as H, InvocationAdapter as I, MultiBoardRuntime as M, NotificationTransport as N, QueueLaneRuntimeTuning as Q, RuntimeRequest as R, SingleBoardRuntime as S, RuntimeResponse as a, MultiBoardRuntimeOptions as b, SingleBoardRuntimeOptions as c, BoardRuntimePlatformAdapter as d, BoardRuntimePublic as e, RuntimeLogger as f };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as ArtifactsStore } from './artifacts-store-lib-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as ArtifactsStore } from './artifacts-store-lib-DSSMqVL2.js';
|
|
2
|
+
import { e as BoardPlatformAdapter, d as BoardNonCorePlatformAdapter, c as BoardLiveCardsPublic, a as CommandResult, f as BoardWorkerRequest } from './board-live-cards-public-D-DJek3X.js';
|
|
3
|
+
import { A as AsyncBoardPlatformAdapter } from './board-platform-adapter-async-JZPCzZnH.js';
|
|
4
|
+
import { A as AsyncBoardLiveCardsPublic } from './board-live-cards-public-async-3hUuHxDx.js';
|
|
4
5
|
import { ExecutionRef } from './execution-refs.js';
|
|
5
6
|
import { a as KindValueRef } from './storage-interface-BFiD3kyB.js';
|
|
6
|
-
import {
|
|
7
|
+
import { C as ChatStorage } from './chat-storage-lib-DB9iSai2.js';
|
|
7
8
|
|
|
8
9
|
type Awaitable<T> = T | Promise<T>;
|
|
9
10
|
type BoardRuntimePlatformAdapter = BoardPlatformAdapter | AsyncBoardPlatformAdapter;
|
|
@@ -94,6 +95,8 @@ interface BoardContextConfig {
|
|
|
94
95
|
baseRef: KindValueRef;
|
|
95
96
|
cardStoreRef: string;
|
|
96
97
|
outputsStoreRef: string;
|
|
98
|
+
/** Optional ref pointing persisted card chat storage at a different backend. */
|
|
99
|
+
chatStoreRef?: string;
|
|
97
100
|
/** Optional ref pointing scratch storage at a different backend than the board runtime. */
|
|
98
101
|
scratchStoreRef?: string;
|
|
99
102
|
/** Optional ref pointing archive storage at a different backend than the board runtime. */
|
|
@@ -206,33 +209,4 @@ interface RuntimeResponse {
|
|
|
206
209
|
end(data?: string | Buffer): void;
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
type
|
|
210
|
-
interface QueueLaneLease<TMessage = unknown> {
|
|
211
|
-
id: string;
|
|
212
|
-
attempt: number;
|
|
213
|
-
message: TMessage;
|
|
214
|
-
ack(): QueueLaneAwaitable<boolean>;
|
|
215
|
-
nack(opts?: {
|
|
216
|
-
dead?: boolean;
|
|
217
|
-
reason?: string;
|
|
218
|
-
}): QueueLaneAwaitable<boolean>;
|
|
219
|
-
}
|
|
220
|
-
interface QueueLaneDescriptor<TMessage = unknown> {
|
|
221
|
-
id: string;
|
|
222
|
-
pollIntervalMs?: number;
|
|
223
|
-
visibilityMs?: number;
|
|
224
|
-
concurrency?: number;
|
|
225
|
-
maxAttempts?: number;
|
|
226
|
-
lease(opts?: {
|
|
227
|
-
max?: number;
|
|
228
|
-
visibilityMs?: number;
|
|
229
|
-
}): QueueLaneAwaitable<QueueLaneLease<TMessage>[]>;
|
|
230
|
-
handle(message: TMessage, lease: QueueLaneLease<TMessage>): Promise<void>;
|
|
231
|
-
onError?: (error: unknown, lease: QueueLaneLease<TMessage>) => void;
|
|
232
|
-
}
|
|
233
|
-
interface QueueLaneRegistry {
|
|
234
|
-
lanes: QueueLaneDescriptor[];
|
|
235
|
-
}
|
|
236
|
-
declare function createQueueLaneRegistry(lanes: QueueLaneDescriptor[]): QueueLaneRegistry;
|
|
237
|
-
|
|
238
|
-
export { type Awaitable as A, type BoardRuntimePlatformAdapter as B, type ChatHandlerFlowRunner as C, type DescribeEnvelope as D, type HostedBoardQueueLaneTuning as H, type InvocationAdapter as I, type MultiBoardRuntimeOptions as M, type NotificationTransport as N, type QueueLaneRegistry as Q, type RuntimeLogger as R, type SingleBoardRuntime as S, type MultiBoardRuntime as a, type SingleBoardRuntimeOptions as b, type BoardContextConfig as c, type BoardRuntimePublic as d, type QueueLaneRuntimeTuning as e, type RuntimeRequest as f, type RuntimeResponse as g, type QueueLaneLease as h, type QueueLaneDescriptor as i, createQueueLaneRegistry as j };
|
|
212
|
+
export type { Awaitable as A, BoardContextConfig as B, ChatHandlerFlowRunner as C, DescribeEnvelope as D, HostedBoardQueueLaneTuning as H, InvocationAdapter as I, MultiBoardRuntime as M, NotificationTransport as N, QueueLaneRuntimeTuning as Q, RuntimeRequest as R, SingleBoardRuntime as S, RuntimeResponse as a, MultiBoardRuntimeOptions as b, SingleBoardRuntimeOptions as c, BoardRuntimePlatformAdapter as d, BoardRuntimePublic as e, RuntimeLogger as f };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yaml-flow",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"description": "Unified workflow engine: step-machine (sequential) + event-graph (stateless DAG) with pluggable storage",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -69,6 +69,51 @@
|
|
|
69
69
|
"import": "./lib/board-live-cards-server-runtime.js",
|
|
70
70
|
"require": "./lib/board-live-cards-server-runtime.cjs"
|
|
71
71
|
},
|
|
72
|
+
"./server-runtime-core": {
|
|
73
|
+
"types": "./lib/server-runtime-core/index.d.ts",
|
|
74
|
+
"import": "./lib/server-runtime-core/index.js",
|
|
75
|
+
"require": "./lib/server-runtime-core/index.cjs"
|
|
76
|
+
},
|
|
77
|
+
"./server-runtime-agentface": {
|
|
78
|
+
"types": "./lib/server-runtime-agentface/index.d.ts",
|
|
79
|
+
"import": "./lib/server-runtime-agentface/index.js",
|
|
80
|
+
"require": "./lib/server-runtime-agentface/index.cjs"
|
|
81
|
+
},
|
|
82
|
+
"./server-runtime-controlface": {
|
|
83
|
+
"types": "./lib/server-runtime-controlface/index.d.ts",
|
|
84
|
+
"import": "./lib/server-runtime-controlface/index.js",
|
|
85
|
+
"require": "./lib/server-runtime-controlface/index.cjs"
|
|
86
|
+
},
|
|
87
|
+
"./server-runtime-watchers": {
|
|
88
|
+
"types": "./lib/server-runtime-watchers/index.d.ts",
|
|
89
|
+
"import": "./lib/server-runtime-watchers/index.js",
|
|
90
|
+
"require": "./lib/server-runtime-watchers/index.cjs"
|
|
91
|
+
},
|
|
92
|
+
"./server-runtime-webhooks": {
|
|
93
|
+
"types": "./lib/server-runtime-webhooks/index.d.ts",
|
|
94
|
+
"import": "./lib/server-runtime-webhooks/index.js",
|
|
95
|
+
"require": "./lib/server-runtime-webhooks/index.cjs"
|
|
96
|
+
},
|
|
97
|
+
"./server-jobs-queue-runner": {
|
|
98
|
+
"types": "./lib/server-jobs-queue-runner/index.d.ts",
|
|
99
|
+
"import": "./lib/server-jobs-queue-runner/index.js",
|
|
100
|
+
"require": "./lib/server-jobs-queue-runner/index.cjs"
|
|
101
|
+
},
|
|
102
|
+
"./firestore-storage": {
|
|
103
|
+
"types": "./lib/firestore-storage/index.d.ts",
|
|
104
|
+
"import": "./lib/firestore-storage/index.js",
|
|
105
|
+
"require": "./lib/firestore-storage/index.cjs"
|
|
106
|
+
},
|
|
107
|
+
"./localstorage-storage": {
|
|
108
|
+
"types": "./lib/localstorage-storage/index.d.ts",
|
|
109
|
+
"import": "./lib/localstorage-storage/index.js",
|
|
110
|
+
"require": "./lib/localstorage-storage/index.cjs"
|
|
111
|
+
},
|
|
112
|
+
"./firebase-storage": {
|
|
113
|
+
"types": "./lib/firebase-storage/index.d.ts",
|
|
114
|
+
"import": "./lib/firebase-storage/index.js",
|
|
115
|
+
"require": "./lib/firebase-storage/index.cjs"
|
|
116
|
+
},
|
|
72
117
|
"./package.json": "./package.json"
|
|
73
118
|
},
|
|
74
119
|
"browser": {
|
|
@@ -81,7 +126,6 @@
|
|
|
81
126
|
"browser",
|
|
82
127
|
"!browser/card-compute.js",
|
|
83
128
|
"!browser/board-livegraph-engine.js",
|
|
84
|
-
"!browser/board-livecards-localstorage.js",
|
|
85
129
|
"!lib/**/*.map",
|
|
86
130
|
"!browser/**/*.map",
|
|
87
131
|
"!examples/**/.demo-setup/**",
|