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.
Files changed (146) hide show
  1. package/browser/adapters/firebase-storage.js +3 -0
  2. package/browser/adapters/firestore-storage.js +3 -0
  3. package/browser/adapters/localstorage-storage.js +4 -0
  4. package/browser/asset-integrity.json +20 -4
  5. package/browser/server-runtime-controlface.js +8 -0
  6. package/examples/ARCHITECTURE.md +5 -32
  7. package/examples/board/demo-shell-with-server.html +2 -2
  8. package/examples/board/doc.html +2 -2
  9. package/examples/board/server/board-server.js +4 -2
  10. package/examples/board-firestore/README.md +81 -0
  11. package/examples/board-firestore/browser/board-runtime.js +263 -0
  12. package/examples/board-firestore/firestore.indexes.json +29 -0
  13. package/examples/board-firestore/package.json +14 -0
  14. package/examples/board-firestore/server/adapters/firestore-archive-factory.js +59 -0
  15. package/examples/board-firestore/server/adapters/firestore-blob-storage.js +82 -0
  16. package/examples/board-firestore/server/adapters/firestore-board-adapter.js +127 -0
  17. package/examples/board-firestore/server/adapters/firestore-journal-storage.js +54 -0
  18. package/examples/board-firestore/server/adapters/firestore-kv-storage.js +47 -0
  19. package/examples/board-firestore/server/adapters/firestore-lock.js +62 -0
  20. package/examples/board-firestore/server/adapters/firestore-queue-storage.js +186 -0
  21. package/examples/board-firestore/server/adapters/firestore-scratch-storage.js +50 -0
  22. package/examples/board-firestore/server/worker.js +146 -0
  23. package/lib/{artifacts-store-lib-BR-Samty.d.cts → artifacts-store-lib-D9nMkVcE.d.cts} +1 -1
  24. package/lib/{artifacts-store-lib-DT7XlWUL.d.ts → artifacts-store-lib-DSSMqVL2.d.ts} +1 -1
  25. package/lib/artifacts-store-public.d.cts +2 -2
  26. package/lib/artifacts-store-public.d.ts +2 -2
  27. package/lib/board-live-cards-mcp.cjs +1 -1
  28. package/lib/board-live-cards-mcp.d.cts +50 -3
  29. package/lib/board-live-cards-mcp.d.ts +50 -3
  30. package/lib/board-live-cards-mcp.js +1 -1
  31. package/lib/board-live-cards-node.cjs +8 -8
  32. package/lib/board-live-cards-node.d.cts +13 -9
  33. package/lib/board-live-cards-node.d.ts +13 -9
  34. package/lib/board-live-cards-node.js +8 -8
  35. package/lib/{board-live-cards-public-BMUIPOrc.d.ts → board-live-cards-public-D-DJek3X.d.ts} +1 -1
  36. package/lib/{board-live-cards-public-wkNmBIRC.d.cts → board-live-cards-public-DQzPe7A9.d.cts} +1 -1
  37. package/lib/board-live-cards-public-async-3hUuHxDx.d.ts +55 -0
  38. package/lib/board-live-cards-public-async-CgMCYYft.d.cts +55 -0
  39. package/lib/board-live-cards-public.d.cts +1 -1
  40. package/lib/board-live-cards-public.d.ts +1 -1
  41. package/lib/board-live-cards-server-runtime.cjs +1 -1
  42. package/lib/board-live-cards-server-runtime.d.cts +10 -6
  43. package/lib/board-live-cards-server-runtime.d.ts +10 -6
  44. package/lib/board-live-cards-server-runtime.js +1 -1
  45. package/lib/board-platform-adapter-async-DOfEq_HC.d.cts +129 -0
  46. package/lib/board-platform-adapter-async-JZPCzZnH.d.ts +129 -0
  47. package/lib/board-worker-adapter.cjs +3 -3
  48. package/lib/board-worker-adapter.js +3 -3
  49. package/lib/card-store-public.d.cts +1 -1
  50. package/lib/card-store-public.d.ts +1 -1
  51. package/lib/{chat-storage-lib-BIUbE-fM.d.cts → chat-storage-lib-B9Q34Dyv.d.cts} +1 -1
  52. package/lib/{chat-storage-lib-BlG-sobS.d.ts → chat-storage-lib-DB9iSai2.d.ts} +1 -1
  53. package/lib/chat-store-public.d.cts +2 -2
  54. package/lib/chat-store-public.d.ts +2 -2
  55. package/lib/chunk-272IYUKT.cjs +2 -0
  56. package/lib/chunk-5XHOHTLZ.cjs +2 -0
  57. package/lib/chunk-6APH25VI.js +2 -0
  58. package/lib/chunk-7FGPOGRV.cjs +2 -0
  59. package/lib/chunk-7ICPAABP.cjs +7 -0
  60. package/lib/chunk-CPAXTVBQ.cjs +2 -0
  61. package/lib/chunk-DDYSXP2A.cjs +3 -0
  62. package/lib/chunk-EGRHWZRV.js +2 -0
  63. package/lib/chunk-GL2OHR2E.cjs +2 -0
  64. package/lib/chunk-IPLSRN6P.cjs +4 -0
  65. package/lib/chunk-J5J6BG7B.js +2 -0
  66. package/lib/chunk-KAWQPLIE.cjs +2 -0
  67. package/lib/chunk-LPXVVMQT.cjs +2 -0
  68. package/lib/chunk-M3OU6IS5.cjs +2 -0
  69. package/lib/chunk-M6STQR5F.cjs +2 -0
  70. package/lib/chunk-NJJ7WEDT.cjs +2 -0
  71. package/lib/chunk-NKIQRCOM.cjs +2 -0
  72. package/lib/chunk-NM6O35RY.cjs +2 -0
  73. package/lib/chunk-NTICU4OK.js +2 -0
  74. package/lib/chunk-O7NOHKVR.js +2 -0
  75. package/lib/chunk-PRHQBGPT.js +2 -0
  76. package/lib/chunk-S44QZUDX.js +2 -0
  77. package/lib/chunk-SGV7PU4H.js +2 -0
  78. package/lib/chunk-TSN3RTXT.js +4 -0
  79. package/lib/chunk-VXJHBWK3.js +2 -0
  80. package/lib/chunk-WHDEBJLT.js +7 -0
  81. package/lib/chunk-XYN5D3GL.js +2 -0
  82. package/lib/chunk-YGALANRO.js +2 -0
  83. package/lib/chunk-ZJ5M5COT.js +2 -0
  84. package/lib/chunk-ZXQR7GHT.js +3 -0
  85. package/lib/cloud-storage.cjs +1 -1
  86. package/lib/cloud-storage.d.cts +5 -3
  87. package/lib/cloud-storage.d.ts +5 -3
  88. package/lib/cloud-storage.js +1 -1
  89. package/lib/firebase-storage/index.cjs +3 -0
  90. package/lib/firebase-storage/index.d.cts +57 -0
  91. package/lib/firebase-storage/index.d.ts +57 -0
  92. package/lib/firebase-storage/index.js +3 -0
  93. package/lib/firestore-storage/index.cjs +3 -0
  94. package/lib/firestore-storage/index.d.cts +98 -0
  95. package/lib/firestore-storage/index.d.ts +98 -0
  96. package/lib/firestore-storage/index.js +3 -0
  97. package/lib/localstorage-storage/index.cjs +2 -0
  98. package/lib/localstorage-storage/index.d.cts +39 -0
  99. package/lib/localstorage-storage/index.d.ts +39 -0
  100. package/lib/localstorage-storage/index.js +2 -0
  101. package/lib/mcp-tool-registries-BBObLYga.d.ts +41 -0
  102. package/lib/mcp-tool-registries-W3TRj6O5.d.cts +41 -0
  103. package/lib/queue-lane-registry-PaZuFpwp.d.cts +30 -0
  104. package/lib/queue-lane-registry-PaZuFpwp.d.ts +30 -0
  105. package/lib/server-jobs-queue-runner/index.cjs +2 -0
  106. package/lib/server-jobs-queue-runner/index.d.cts +22 -0
  107. package/lib/server-jobs-queue-runner/index.d.ts +22 -0
  108. package/lib/server-jobs-queue-runner/index.js +2 -0
  109. package/lib/server-runtime/index.cjs +1 -1
  110. package/lib/server-runtime/index.d.cts +11 -17
  111. package/lib/server-runtime/index.d.ts +11 -17
  112. package/lib/server-runtime/index.js +1 -1
  113. package/lib/server-runtime-agentface/index.cjs +2 -0
  114. package/lib/server-runtime-agentface/index.d.cts +53 -0
  115. package/lib/server-runtime-agentface/index.d.ts +53 -0
  116. package/lib/server-runtime-agentface/index.js +2 -0
  117. package/lib/server-runtime-controlface/index.cjs +2 -0
  118. package/lib/server-runtime-controlface/index.d.cts +80 -0
  119. package/lib/server-runtime-controlface/index.d.ts +80 -0
  120. package/lib/server-runtime-controlface/index.js +2 -0
  121. package/lib/server-runtime-core/index.cjs +2 -0
  122. package/lib/server-runtime-core/index.d.cts +376 -0
  123. package/lib/server-runtime-core/index.d.ts +376 -0
  124. package/lib/server-runtime-core/index.js +2 -0
  125. package/lib/server-runtime-watchers/index.cjs +2 -0
  126. package/lib/server-runtime-watchers/index.d.cts +127 -0
  127. package/lib/server-runtime-watchers/index.d.ts +127 -0
  128. package/lib/server-runtime-watchers/index.js +2 -0
  129. package/lib/server-runtime-webhooks/index.cjs +2 -0
  130. package/lib/server-runtime-webhooks/index.d.cts +34 -0
  131. package/lib/server-runtime-webhooks/index.d.ts +34 -0
  132. package/lib/server-runtime-webhooks/index.js +2 -0
  133. package/lib/storage-async-interface-BRR4eBjx.d.cts +81 -0
  134. package/lib/storage-async-interface-DhlOVPSp.d.ts +81 -0
  135. package/lib/{queue-lane-registry-BPKWWgd4.d.cts → types-BzQY45dH.d.cts} +8 -34
  136. package/lib/{queue-lane-registry-Be6c0ftj.d.ts → types-CF2xUcZW.d.ts} +8 -34
  137. package/package.json +46 -2
  138. package/examples/board-local/demo-shell-localstorage.html +0 -843
  139. package/lib/board-live-cards-public-async-DKZqbJVU.d.ts +0 -256
  140. package/lib/board-live-cards-public-async-dMWNbWq6.d.cts +0 -256
  141. package/lib/chunk-KXWT3CY6.cjs +0 -8
  142. package/lib/chunk-MLVTJASJ.js +0 -2
  143. package/lib/chunk-OJLA6NLU.js +0 -8
  144. package/lib/chunk-R5L5WUKN.js +0 -2
  145. package/lib/chunk-WOALA3V5.cjs +0 -2
  146. package/lib/chunk-YEB5QHGE.cjs +0 -2
@@ -1,256 +0,0 @@
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
- import { g as BoardCallbackTransport, c as BoardChangeNotification, a as CommandInput, C as CommandResult, h as BoardStatusObject } from './board-live-cards-public-BMUIPOrc.js';
3
- import { ExecutionRef } from './execution-refs.js';
4
-
5
- interface AsyncBlobStorage {
6
- read(key: string): Promise<string | null>;
7
- write(key: string, content: string): Promise<void>;
8
- exists(key: string): Promise<boolean>;
9
- remove(key: string): Promise<void>;
10
- readBytes?(key: string): Promise<Uint8Array | null>;
11
- writeBytes?(key: string, content: Uint8Array): Promise<void>;
12
- listKeys(prefix?: string): Promise<string[]>;
13
- stat?(key: string): Promise<BlobStat | null>;
14
- keyRef?(key: string): Promise<KindValueRef> | KindValueRef;
15
- }
16
- interface AsyncJournalStorage {
17
- append(payload: unknown): Promise<JournalEntry>;
18
- readAll(): Promise<JournalEntry[]>;
19
- readAfter(cursor: string | null): Promise<JournalReadResult>;
20
- clear?(): Promise<void>;
21
- }
22
- interface AsyncQueueStorage {
23
- enqueue<T>(body: T): Promise<QueueMessage<T>>;
24
- /** See QueueStorage.enqueueIfAbsent. Optional on adapters that cannot cheaply dedup. */
25
- enqueueIfAbsent?<T>(body: T, dedupKey: string): Promise<QueueMessage<T> | null>;
26
- lease<T>(opts?: {
27
- max?: number;
28
- visibilityMs?: number;
29
- }): Promise<QueueLeasedMessage<T>[]>;
30
- ack(messageId: string, leaseToken: string): Promise<boolean>;
31
- nack(messageId: string, leaseToken: string, opts?: {
32
- dead?: boolean;
33
- reason?: string;
34
- }): Promise<boolean>;
35
- peekActive<T>(prefix?: string): Promise<QueueMessage<T>[]>;
36
- peekDeadLetter<T>(prefix?: string): Promise<QueueDeadLetterMessage<T>[]>;
37
- }
38
- interface AsyncKVStorage {
39
- read(key: string): Promise<unknown | null>;
40
- write(key: string, value: unknown): Promise<void>;
41
- delete(key: string): Promise<void>;
42
- listKeys(prefix?: string): Promise<string[]>;
43
- }
44
- interface AsyncJSONStorage {
45
- read(key: string): Promise<unknown | null>;
46
- get(key: string, jsonPath: string): Promise<unknown | null>;
47
- write(key: string, value: unknown): Promise<void>;
48
- delete(key: string): Promise<void>;
49
- listKeys(prefix?: string): Promise<string[]>;
50
- shallowMerge(key: string, patch: Record<string, unknown>): Promise<void>;
51
- deepMerge(key: string, patch: Record<string, unknown>): Promise<void>;
52
- patch(key: string, jsonPath: string, value: unknown): Promise<void>;
53
- }
54
- interface AsyncScratchStorage extends AsyncBlobStorage {
55
- getUniqueKey(prefix?: string, suffix?: string): Promise<string>;
56
- create(data: string, prefix?: string, suffix?: string): Promise<string>;
57
- keyRef(key: string): Promise<KindValueRef> | KindValueRef;
58
- config: {
59
- get(k: string): Promise<unknown> | unknown;
60
- set(k: string, v: unknown): Promise<void> | void;
61
- };
62
- }
63
- interface AsyncArchiveFactory {
64
- stream(name: string): AsyncJournalStorage;
65
- blob(name: string): AsyncBlobStorage;
66
- listStreams(prefix?: string): Promise<string[]>;
67
- listBlobs(prefix?: string): Promise<string[]>;
68
- config: {
69
- get(k: string): Promise<unknown> | unknown;
70
- set(k: string, v: unknown): Promise<void> | void;
71
- };
72
- }
73
- interface AsyncStorageProvider {
74
- blob: AsyncBlobStorage;
75
- journal: AsyncJournalStorage;
76
- kv: AsyncKVStorage;
77
- }
78
- interface AsyncAtomicRelayLock {
79
- tryAcquire(): Promise<(() => Promise<void> | void) | null>;
80
- }
81
- declare function withAsyncRelayLock(lock: AsyncAtomicRelayLock, work: () => Promise<void>, continuation?: () => Promise<void> | void): Promise<boolean>;
82
-
83
- interface AsyncBoardWorkerRequest {
84
- boardId?: string;
85
- ref: ExecutionRef;
86
- args: Record<string, unknown>;
87
- }
88
- interface AsyncBoardWorkerQueuedRequest {
89
- messageId: string;
90
- enqueuedAt: string;
91
- attempt: number;
92
- request: AsyncBoardWorkerRequest;
93
- }
94
- interface AsyncBoardWorkerLeasedRequest extends AsyncBoardWorkerQueuedRequest {
95
- leaseToken: string;
96
- leaseExpiresAt: string;
97
- }
98
- interface AsyncBoardWorkerDeadLetterRequest extends AsyncBoardWorkerQueuedRequest {
99
- reason?: string;
100
- }
101
- interface AsyncBoardWorkerStore {
102
- enqueueRequest(request: AsyncBoardWorkerRequest): Promise<string>;
103
- leaseRequests(opts?: {
104
- max?: number;
105
- visibilityMs?: number;
106
- }): Promise<AsyncBoardWorkerLeasedRequest[]>;
107
- ackRequest(messageId: string, leaseToken: string): Promise<boolean>;
108
- nackRequest(messageId: string, leaseToken: string, opts?: {
109
- dead?: boolean;
110
- reason?: string;
111
- }): Promise<boolean>;
112
- peekActive(): Promise<AsyncBoardWorkerQueuedRequest[]>;
113
- peekDeadLetter(): Promise<AsyncBoardWorkerDeadLetterRequest[]>;
114
- }
115
- interface AsyncBoardConfigStore {
116
- readTaskExecutorRef(): Promise<ExecutionRef | undefined>;
117
- writeTaskExecutorRef(ref: ExecutionRef): Promise<void>;
118
- readChatHandlerFlow(): Promise<unknown>;
119
- writeChatHandlerFlow(flow: unknown): Promise<void>;
120
- readCardStoreRef(): Promise<string | null>;
121
- writeCardStoreRef(ref: string): Promise<void>;
122
- readOutputsStoreRef(): Promise<string | null>;
123
- writeOutputsStoreRef(ref: string): Promise<void>;
124
- readScratchStoreRef(): Promise<string | null>;
125
- writeScratchStoreRef(ref: string): Promise<void>;
126
- readArchiveStoreRef(): Promise<string | null>;
127
- writeArchiveStoreRef(ref: string): Promise<void>;
128
- readChatStoreRef(): Promise<string | null>;
129
- writeChatStoreRef(ref: string): Promise<void>;
130
- readArtifactsStoreRef(): Promise<string | null>;
131
- writeArtifactsStoreRef(ref: string): Promise<void>;
132
- }
133
- interface AsyncBoardPlatformAdapter {
134
- kvStorage(namespace: string): AsyncKVStorage;
135
- kvStorageForRef(ref: string): AsyncKVStorage;
136
- blobStorage(namespace: string): AsyncBlobStorage;
137
- scratchStorage(): AsyncScratchStorage;
138
- scratchStorageForRef(ref: string): AsyncScratchStorage;
139
- archiveFactory(): AsyncArchiveFactory;
140
- archiveFactoryForRef(ref: string): AsyncArchiveFactory;
141
- journalStorage(): AsyncJournalStorage;
142
- boardWorkerStore(): AsyncBoardWorkerStore;
143
- chatAgentStore(): AsyncBoardWorkerStore;
144
- processAccumulatedStore(): AsyncQueueStorage;
145
- lock: AsyncAtomicRelayLock;
146
- callbackTransport?: BoardCallbackTransport;
147
- dispatchExecution(ref: ExecutionRef, args: Record<string, unknown>): Promise<{
148
- dispatched: boolean;
149
- error?: string;
150
- }>;
151
- supportsDirectSourceOutput?(ref: ExecutionRef): boolean;
152
- resolveBlob(ref: KindValueRef): Promise<string>;
153
- hashFn(value: unknown): string;
154
- genId(): string;
155
- requestProcessAccumulated?(): void | Promise<void>;
156
- publishBoardChangeNotifications?(notifications: BoardChangeNotification[]): void | Promise<void>;
157
- warn?: (msg: string) => void;
158
- }
159
- interface HostedFetchResponseLike {
160
- ok: boolean;
161
- status: number;
162
- text(): Promise<string>;
163
- }
164
- interface HostedFetchLike {
165
- (input: string, init: {
166
- method: string;
167
- headers: Record<string, string>;
168
- body: string;
169
- }): Promise<HostedFetchResponseLike>;
170
- }
171
- interface HostedAsyncBoardPlatformAdapterOptions {
172
- boardId?: string;
173
- kvStorage(namespace: string): AsyncKVStorage;
174
- kvStorageForRef(ref: string): AsyncKVStorage;
175
- blobStorage(namespace: string): AsyncBlobStorage;
176
- scratchStorage(): AsyncScratchStorage;
177
- scratchStorageForRef(ref: string): AsyncScratchStorage;
178
- archiveFactory(): AsyncArchiveFactory;
179
- archiveFactoryForRef(ref: string): AsyncArchiveFactory;
180
- journalStorage(): AsyncJournalStorage;
181
- queueStorage?: AsyncQueueStorage;
182
- boardWorkerStore?: AsyncBoardWorkerStore;
183
- chatAgentQueueStorage?: AsyncQueueStorage;
184
- chatAgentStore?: AsyncBoardWorkerStore;
185
- processAccumulatedQueueStorage?: AsyncQueueStorage;
186
- processAccumulatedStore?: AsyncQueueStorage;
187
- lock: AsyncAtomicRelayLock;
188
- callbackTransport?: BoardCallbackTransport;
189
- fetch?: HostedFetchLike;
190
- dispatchExecution?: (ref: ExecutionRef, args: Record<string, unknown>) => Promise<{
191
- dispatched: boolean;
192
- error?: string;
193
- }>;
194
- supportsDirectSourceOutput?: (ref: ExecutionRef) => boolean;
195
- resolveBlob?: (ref: KindValueRef) => Promise<string>;
196
- hashFn: (value: unknown) => string;
197
- genId: () => string;
198
- requestProcessAccumulated?: () => void | Promise<void>;
199
- publishBoardChangeNotifications?: (notifications: BoardChangeNotification[]) => void | Promise<void>;
200
- onWarn?: (msg: string) => void;
201
- }
202
- declare function createAsyncBoardWorkerStore(queue: AsyncQueueStorage): AsyncBoardWorkerStore;
203
- declare function createAsyncBoardConfigStore(kv: AsyncKVStorage): AsyncBoardConfigStore;
204
- declare function createHostedAsyncBoardPlatformAdapter(options: HostedAsyncBoardPlatformAdapterOptions): AsyncBoardPlatformAdapter;
205
-
206
- interface AsyncBoardLiveCardsPublic {
207
- init(input: CommandInput): Promise<CommandResult>;
208
- status(input: CommandInput): Promise<CommandResult<BoardStatusObject>>;
209
- getCardStoreRef(input: CommandInput): Promise<CommandResult<{
210
- storeRef: string;
211
- }>>;
212
- getOutputsStoreRef(input: CommandInput): Promise<CommandResult<{
213
- storeRef: string;
214
- }>>;
215
- getScratchStoreRef(input: CommandInput): Promise<CommandResult<{
216
- storeRef: string | null;
217
- }>>;
218
- getArchiveStoreRef(input: CommandInput): Promise<CommandResult<{
219
- storeRef: string | null;
220
- }>>;
221
- getChatStoreRef(input: CommandInput): Promise<CommandResult<{
222
- storeRef: string | null;
223
- }>>;
224
- getArtifactsStoreRef(input: CommandInput): Promise<CommandResult<{
225
- storeRef: string | null;
226
- }>>;
227
- getConfig(input: CommandInput): Promise<CommandResult<{
228
- value: unknown;
229
- }>>;
230
- getOutputsDataObject(input: CommandInput): Promise<CommandResult>;
231
- getAllOutputsDataObjects(input: CommandInput): Promise<CommandResult<Record<string, unknown>>>;
232
- getOutputsComputedValues(input: CommandInput): Promise<CommandResult>;
233
- getAllOutputsComputedValues(input: CommandInput): Promise<CommandResult<Record<string, unknown>>>;
234
- getOutputsFetchedSources(input: CommandInput): Promise<CommandResult<Record<string, string>>>;
235
- getAllOutputsFetchedSources(input: CommandInput): Promise<CommandResult<Record<string, Record<string, string>>>>;
236
- addCardFiles(input: CommandInput): Promise<CommandResult<{
237
- cardId: string;
238
- files_added: Array<{
239
- idx: number;
240
- entry: unknown;
241
- }>;
242
- notified: true;
243
- }>>;
244
- cardRefreshedNotify(input: CommandInput): Promise<CommandResult>;
245
- removeCard(input: CommandInput): Promise<CommandResult>;
246
- retrigger(input: CommandInput): Promise<CommandResult>;
247
- upsertCard(input: CommandInput): Promise<CommandResult>;
248
- processAccumulatedEvents(input: CommandInput): Promise<CommandResult>;
249
- taskFailed(input: CommandInput): Promise<CommandResult>;
250
- taskProgress(input: CommandInput): Promise<CommandResult>;
251
- sourceDataFetched(input: CommandInput): Promise<CommandResult>;
252
- sourceDataFetchFailure(input: CommandInput): Promise<CommandResult>;
253
- }
254
- declare function createAsyncBoardLiveCardsPublic(baseRef: KindValueRef, adapter: AsyncBoardPlatformAdapter): AsyncBoardLiveCardsPublic;
255
-
256
- export { type AsyncBoardLiveCardsPublic as A, type HostedAsyncBoardPlatformAdapterOptions as H, type AsyncBoardPlatformAdapter as a, type AsyncJSONStorage as b, type AsyncKVStorage as c, type AsyncBlobStorage as d, type AsyncJournalStorage as e, type AsyncStorageProvider as f, type AsyncAtomicRelayLock as g, type AsyncQueueStorage as h, type AsyncBoardConfigStore as i, type AsyncBoardWorkerDeadLetterRequest as j, type AsyncBoardWorkerLeasedRequest as k, type AsyncBoardWorkerQueuedRequest as l, type AsyncBoardWorkerRequest as m, type AsyncBoardWorkerStore as n, type HostedFetchLike as o, type HostedFetchResponseLike as p, createAsyncBoardConfigStore as q, createAsyncBoardLiveCardsPublic as r, createAsyncBoardWorkerStore as s, createHostedAsyncBoardPlatformAdapter as t, withAsyncRelayLock as w };
@@ -1,256 +0,0 @@
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
- import { g as BoardCallbackTransport, c as BoardChangeNotification, a as CommandInput, C as CommandResult, h as BoardStatusObject } from './board-live-cards-public-wkNmBIRC.cjs';
3
- import { ExecutionRef } from './execution-refs.cjs';
4
-
5
- interface AsyncBlobStorage {
6
- read(key: string): Promise<string | null>;
7
- write(key: string, content: string): Promise<void>;
8
- exists(key: string): Promise<boolean>;
9
- remove(key: string): Promise<void>;
10
- readBytes?(key: string): Promise<Uint8Array | null>;
11
- writeBytes?(key: string, content: Uint8Array): Promise<void>;
12
- listKeys(prefix?: string): Promise<string[]>;
13
- stat?(key: string): Promise<BlobStat | null>;
14
- keyRef?(key: string): Promise<KindValueRef> | KindValueRef;
15
- }
16
- interface AsyncJournalStorage {
17
- append(payload: unknown): Promise<JournalEntry>;
18
- readAll(): Promise<JournalEntry[]>;
19
- readAfter(cursor: string | null): Promise<JournalReadResult>;
20
- clear?(): Promise<void>;
21
- }
22
- interface AsyncQueueStorage {
23
- enqueue<T>(body: T): Promise<QueueMessage<T>>;
24
- /** See QueueStorage.enqueueIfAbsent. Optional on adapters that cannot cheaply dedup. */
25
- enqueueIfAbsent?<T>(body: T, dedupKey: string): Promise<QueueMessage<T> | null>;
26
- lease<T>(opts?: {
27
- max?: number;
28
- visibilityMs?: number;
29
- }): Promise<QueueLeasedMessage<T>[]>;
30
- ack(messageId: string, leaseToken: string): Promise<boolean>;
31
- nack(messageId: string, leaseToken: string, opts?: {
32
- dead?: boolean;
33
- reason?: string;
34
- }): Promise<boolean>;
35
- peekActive<T>(prefix?: string): Promise<QueueMessage<T>[]>;
36
- peekDeadLetter<T>(prefix?: string): Promise<QueueDeadLetterMessage<T>[]>;
37
- }
38
- interface AsyncKVStorage {
39
- read(key: string): Promise<unknown | null>;
40
- write(key: string, value: unknown): Promise<void>;
41
- delete(key: string): Promise<void>;
42
- listKeys(prefix?: string): Promise<string[]>;
43
- }
44
- interface AsyncJSONStorage {
45
- read(key: string): Promise<unknown | null>;
46
- get(key: string, jsonPath: string): Promise<unknown | null>;
47
- write(key: string, value: unknown): Promise<void>;
48
- delete(key: string): Promise<void>;
49
- listKeys(prefix?: string): Promise<string[]>;
50
- shallowMerge(key: string, patch: Record<string, unknown>): Promise<void>;
51
- deepMerge(key: string, patch: Record<string, unknown>): Promise<void>;
52
- patch(key: string, jsonPath: string, value: unknown): Promise<void>;
53
- }
54
- interface AsyncScratchStorage extends AsyncBlobStorage {
55
- getUniqueKey(prefix?: string, suffix?: string): Promise<string>;
56
- create(data: string, prefix?: string, suffix?: string): Promise<string>;
57
- keyRef(key: string): Promise<KindValueRef> | KindValueRef;
58
- config: {
59
- get(k: string): Promise<unknown> | unknown;
60
- set(k: string, v: unknown): Promise<void> | void;
61
- };
62
- }
63
- interface AsyncArchiveFactory {
64
- stream(name: string): AsyncJournalStorage;
65
- blob(name: string): AsyncBlobStorage;
66
- listStreams(prefix?: string): Promise<string[]>;
67
- listBlobs(prefix?: string): Promise<string[]>;
68
- config: {
69
- get(k: string): Promise<unknown> | unknown;
70
- set(k: string, v: unknown): Promise<void> | void;
71
- };
72
- }
73
- interface AsyncStorageProvider {
74
- blob: AsyncBlobStorage;
75
- journal: AsyncJournalStorage;
76
- kv: AsyncKVStorage;
77
- }
78
- interface AsyncAtomicRelayLock {
79
- tryAcquire(): Promise<(() => Promise<void> | void) | null>;
80
- }
81
- declare function withAsyncRelayLock(lock: AsyncAtomicRelayLock, work: () => Promise<void>, continuation?: () => Promise<void> | void): Promise<boolean>;
82
-
83
- interface AsyncBoardWorkerRequest {
84
- boardId?: string;
85
- ref: ExecutionRef;
86
- args: Record<string, unknown>;
87
- }
88
- interface AsyncBoardWorkerQueuedRequest {
89
- messageId: string;
90
- enqueuedAt: string;
91
- attempt: number;
92
- request: AsyncBoardWorkerRequest;
93
- }
94
- interface AsyncBoardWorkerLeasedRequest extends AsyncBoardWorkerQueuedRequest {
95
- leaseToken: string;
96
- leaseExpiresAt: string;
97
- }
98
- interface AsyncBoardWorkerDeadLetterRequest extends AsyncBoardWorkerQueuedRequest {
99
- reason?: string;
100
- }
101
- interface AsyncBoardWorkerStore {
102
- enqueueRequest(request: AsyncBoardWorkerRequest): Promise<string>;
103
- leaseRequests(opts?: {
104
- max?: number;
105
- visibilityMs?: number;
106
- }): Promise<AsyncBoardWorkerLeasedRequest[]>;
107
- ackRequest(messageId: string, leaseToken: string): Promise<boolean>;
108
- nackRequest(messageId: string, leaseToken: string, opts?: {
109
- dead?: boolean;
110
- reason?: string;
111
- }): Promise<boolean>;
112
- peekActive(): Promise<AsyncBoardWorkerQueuedRequest[]>;
113
- peekDeadLetter(): Promise<AsyncBoardWorkerDeadLetterRequest[]>;
114
- }
115
- interface AsyncBoardConfigStore {
116
- readTaskExecutorRef(): Promise<ExecutionRef | undefined>;
117
- writeTaskExecutorRef(ref: ExecutionRef): Promise<void>;
118
- readChatHandlerFlow(): Promise<unknown>;
119
- writeChatHandlerFlow(flow: unknown): Promise<void>;
120
- readCardStoreRef(): Promise<string | null>;
121
- writeCardStoreRef(ref: string): Promise<void>;
122
- readOutputsStoreRef(): Promise<string | null>;
123
- writeOutputsStoreRef(ref: string): Promise<void>;
124
- readScratchStoreRef(): Promise<string | null>;
125
- writeScratchStoreRef(ref: string): Promise<void>;
126
- readArchiveStoreRef(): Promise<string | null>;
127
- writeArchiveStoreRef(ref: string): Promise<void>;
128
- readChatStoreRef(): Promise<string | null>;
129
- writeChatStoreRef(ref: string): Promise<void>;
130
- readArtifactsStoreRef(): Promise<string | null>;
131
- writeArtifactsStoreRef(ref: string): Promise<void>;
132
- }
133
- interface AsyncBoardPlatformAdapter {
134
- kvStorage(namespace: string): AsyncKVStorage;
135
- kvStorageForRef(ref: string): AsyncKVStorage;
136
- blobStorage(namespace: string): AsyncBlobStorage;
137
- scratchStorage(): AsyncScratchStorage;
138
- scratchStorageForRef(ref: string): AsyncScratchStorage;
139
- archiveFactory(): AsyncArchiveFactory;
140
- archiveFactoryForRef(ref: string): AsyncArchiveFactory;
141
- journalStorage(): AsyncJournalStorage;
142
- boardWorkerStore(): AsyncBoardWorkerStore;
143
- chatAgentStore(): AsyncBoardWorkerStore;
144
- processAccumulatedStore(): AsyncQueueStorage;
145
- lock: AsyncAtomicRelayLock;
146
- callbackTransport?: BoardCallbackTransport;
147
- dispatchExecution(ref: ExecutionRef, args: Record<string, unknown>): Promise<{
148
- dispatched: boolean;
149
- error?: string;
150
- }>;
151
- supportsDirectSourceOutput?(ref: ExecutionRef): boolean;
152
- resolveBlob(ref: KindValueRef): Promise<string>;
153
- hashFn(value: unknown): string;
154
- genId(): string;
155
- requestProcessAccumulated?(): void | Promise<void>;
156
- publishBoardChangeNotifications?(notifications: BoardChangeNotification[]): void | Promise<void>;
157
- warn?: (msg: string) => void;
158
- }
159
- interface HostedFetchResponseLike {
160
- ok: boolean;
161
- status: number;
162
- text(): Promise<string>;
163
- }
164
- interface HostedFetchLike {
165
- (input: string, init: {
166
- method: string;
167
- headers: Record<string, string>;
168
- body: string;
169
- }): Promise<HostedFetchResponseLike>;
170
- }
171
- interface HostedAsyncBoardPlatformAdapterOptions {
172
- boardId?: string;
173
- kvStorage(namespace: string): AsyncKVStorage;
174
- kvStorageForRef(ref: string): AsyncKVStorage;
175
- blobStorage(namespace: string): AsyncBlobStorage;
176
- scratchStorage(): AsyncScratchStorage;
177
- scratchStorageForRef(ref: string): AsyncScratchStorage;
178
- archiveFactory(): AsyncArchiveFactory;
179
- archiveFactoryForRef(ref: string): AsyncArchiveFactory;
180
- journalStorage(): AsyncJournalStorage;
181
- queueStorage?: AsyncQueueStorage;
182
- boardWorkerStore?: AsyncBoardWorkerStore;
183
- chatAgentQueueStorage?: AsyncQueueStorage;
184
- chatAgentStore?: AsyncBoardWorkerStore;
185
- processAccumulatedQueueStorage?: AsyncQueueStorage;
186
- processAccumulatedStore?: AsyncQueueStorage;
187
- lock: AsyncAtomicRelayLock;
188
- callbackTransport?: BoardCallbackTransport;
189
- fetch?: HostedFetchLike;
190
- dispatchExecution?: (ref: ExecutionRef, args: Record<string, unknown>) => Promise<{
191
- dispatched: boolean;
192
- error?: string;
193
- }>;
194
- supportsDirectSourceOutput?: (ref: ExecutionRef) => boolean;
195
- resolveBlob?: (ref: KindValueRef) => Promise<string>;
196
- hashFn: (value: unknown) => string;
197
- genId: () => string;
198
- requestProcessAccumulated?: () => void | Promise<void>;
199
- publishBoardChangeNotifications?: (notifications: BoardChangeNotification[]) => void | Promise<void>;
200
- onWarn?: (msg: string) => void;
201
- }
202
- declare function createAsyncBoardWorkerStore(queue: AsyncQueueStorage): AsyncBoardWorkerStore;
203
- declare function createAsyncBoardConfigStore(kv: AsyncKVStorage): AsyncBoardConfigStore;
204
- declare function createHostedAsyncBoardPlatformAdapter(options: HostedAsyncBoardPlatformAdapterOptions): AsyncBoardPlatformAdapter;
205
-
206
- interface AsyncBoardLiveCardsPublic {
207
- init(input: CommandInput): Promise<CommandResult>;
208
- status(input: CommandInput): Promise<CommandResult<BoardStatusObject>>;
209
- getCardStoreRef(input: CommandInput): Promise<CommandResult<{
210
- storeRef: string;
211
- }>>;
212
- getOutputsStoreRef(input: CommandInput): Promise<CommandResult<{
213
- storeRef: string;
214
- }>>;
215
- getScratchStoreRef(input: CommandInput): Promise<CommandResult<{
216
- storeRef: string | null;
217
- }>>;
218
- getArchiveStoreRef(input: CommandInput): Promise<CommandResult<{
219
- storeRef: string | null;
220
- }>>;
221
- getChatStoreRef(input: CommandInput): Promise<CommandResult<{
222
- storeRef: string | null;
223
- }>>;
224
- getArtifactsStoreRef(input: CommandInput): Promise<CommandResult<{
225
- storeRef: string | null;
226
- }>>;
227
- getConfig(input: CommandInput): Promise<CommandResult<{
228
- value: unknown;
229
- }>>;
230
- getOutputsDataObject(input: CommandInput): Promise<CommandResult>;
231
- getAllOutputsDataObjects(input: CommandInput): Promise<CommandResult<Record<string, unknown>>>;
232
- getOutputsComputedValues(input: CommandInput): Promise<CommandResult>;
233
- getAllOutputsComputedValues(input: CommandInput): Promise<CommandResult<Record<string, unknown>>>;
234
- getOutputsFetchedSources(input: CommandInput): Promise<CommandResult<Record<string, string>>>;
235
- getAllOutputsFetchedSources(input: CommandInput): Promise<CommandResult<Record<string, Record<string, string>>>>;
236
- addCardFiles(input: CommandInput): Promise<CommandResult<{
237
- cardId: string;
238
- files_added: Array<{
239
- idx: number;
240
- entry: unknown;
241
- }>;
242
- notified: true;
243
- }>>;
244
- cardRefreshedNotify(input: CommandInput): Promise<CommandResult>;
245
- removeCard(input: CommandInput): Promise<CommandResult>;
246
- retrigger(input: CommandInput): Promise<CommandResult>;
247
- upsertCard(input: CommandInput): Promise<CommandResult>;
248
- processAccumulatedEvents(input: CommandInput): Promise<CommandResult>;
249
- taskFailed(input: CommandInput): Promise<CommandResult>;
250
- taskProgress(input: CommandInput): Promise<CommandResult>;
251
- sourceDataFetched(input: CommandInput): Promise<CommandResult>;
252
- sourceDataFetchFailure(input: CommandInput): Promise<CommandResult>;
253
- }
254
- declare function createAsyncBoardLiveCardsPublic(baseRef: KindValueRef, adapter: AsyncBoardPlatformAdapter): AsyncBoardLiveCardsPublic;
255
-
256
- export { type AsyncBoardLiveCardsPublic as A, type HostedAsyncBoardPlatformAdapterOptions as H, type AsyncBoardPlatformAdapter as a, type AsyncJSONStorage as b, type AsyncKVStorage as c, type AsyncBlobStorage as d, type AsyncJournalStorage as e, type AsyncStorageProvider as f, type AsyncAtomicRelayLock as g, type AsyncQueueStorage as h, type AsyncBoardConfigStore as i, type AsyncBoardWorkerDeadLetterRequest as j, type AsyncBoardWorkerLeasedRequest as k, type AsyncBoardWorkerQueuedRequest as l, type AsyncBoardWorkerRequest as m, type AsyncBoardWorkerStore as n, type HostedFetchLike as o, type HostedFetchResponseLike as p, createAsyncBoardConfigStore as q, createAsyncBoardLiveCardsPublic as r, createAsyncBoardWorkerStore as s, createHostedAsyncBoardPlatformAdapter as t, withAsyncRelayLock as w };