yaml-flow 8.6.1 → 8.6.3
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 +544 -45
- package/examples/board/server-config.json +2 -1
- package/examples/board/test/server-http-test.js +12 -4
- package/examples/board-local/demo-shell-localstorage.html +3 -3
- package/lib/{artifacts-store-lib-CLOtsiav.d.cts → artifacts-store-lib-BR-Samty.d.cts} +1 -1
- package/lib/{artifacts-store-lib-C1rtrkxm.d.ts → artifacts-store-lib-DT7XlWUL.d.ts} +1 -1
- package/lib/artifacts-store-public.d.cts +3 -3
- package/lib/artifacts-store-public.d.ts +3 -3
- package/lib/board-live-cards-mcp.cjs +1 -1
- package/lib/board-live-cards-mcp.d.cts +56 -23
- package/lib/board-live-cards-mcp.d.ts +56 -23
- 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 +39 -21
- package/lib/board-live-cards-node.d.ts +39 -21
- package/lib/board-live-cards-node.js +8 -8
- package/lib/{board-live-cards-public-CBVjm327.d.ts → board-live-cards-public-BMUIPOrc.d.ts} +67 -42
- 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-CPJy-aGW.d.cts → board-live-cards-public-wkNmBIRC.d.cts} +67 -42
- package/lib/board-live-cards-public.cjs +1 -1
- 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 -1
- package/lib/board-live-cards-server-runtime.cjs +1 -1
- 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 -1
- package/lib/board-worker-adapter.cjs +4 -3
- package/lib/board-worker-adapter.d.cts +24 -14
- package/lib/board-worker-adapter.d.ts +24 -14
- package/lib/board-worker-adapter.js +4 -3
- package/lib/card-store-public.d.cts +2 -2
- package/lib/card-store-public.d.ts +2 -2
- package/lib/{chat-storage-lib-CKylihjm.d.cts → chat-storage-lib-BIUbE-fM.d.cts} +1 -1
- package/lib/{chat-storage-lib-Bce-xx6l.d.ts → chat-storage-lib-BlG-sobS.d.ts} +1 -1
- package/lib/chat-store-public.d.cts +3 -3
- package/lib/chat-store-public.d.ts +3 -3
- package/lib/{chunk-CWREBRXS.js → chunk-BQS3EIEK.js} +3 -3
- package/lib/{chunk-LDAP75GN.js → chunk-CIAJNUR4.js} +2 -2
- package/lib/chunk-GJJMEAVN.cjs +2 -0
- package/lib/chunk-GLIX37VG.cjs +8 -0
- package/lib/chunk-H5HBXPOI.cjs +3 -0
- package/lib/chunk-HEEDJEKM.js +2 -0
- package/lib/chunk-LRVAVWAG.js +8 -0
- package/lib/chunk-MLVTJASJ.js +2 -0
- package/lib/chunk-N6P2JW4W.js +3 -0
- package/lib/chunk-OEFTOO47.cjs +3 -0
- package/lib/chunk-PBCDDO4V.cjs +2 -0
- package/lib/{chunk-I4WH5U5D.cjs → chunk-PMUSJQSR.cjs} +2 -2
- package/lib/chunk-SCWHDI3I.js +2 -0
- package/lib/{chunk-UVE65IPR.cjs → chunk-SFVO2LB2.cjs} +3 -3
- package/lib/{chunk-5DB54ZX2.cjs → chunk-U2N6MCD5.cjs} +2 -2
- package/lib/chunk-VMW4Z6EF.js +3 -0
- package/lib/chunk-WOALA3V5.cjs +2 -0
- package/lib/{chunk-LBMEVV4U.js → chunk-XQRNDX4Q.js} +2 -2
- 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/execution-refs.cjs +1 -1
- package/lib/execution-refs.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/{types-DRl0Hy_p.d.cts → queue-lane-registry-BPKWWgd4.d.cts} +66 -14
- package/lib/{types-BuK2UMxk.d.ts → queue-lane-registry-Be6c0ftj.d.ts} +66 -14
- package/lib/server-runtime/index.cjs +1 -1
- 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 -1
- package/lib/step-machine-public/index.cjs +1 -1
- 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 -1
- package/lib/{storage-interface-Ct-C4tlz.d.cts → storage-interface-BFiD3kyB.d.cts} +11 -1
- package/lib/{storage-interface-Ct-C4tlz.d.ts → storage-interface-BFiD3kyB.d.ts} +11 -1
- package/lib/stores/index.cjs +1 -1
- package/lib/stores/index.d.cts +1 -1
- package/lib/stores/index.d.ts +1 -1
- package/lib/stores/index.js +1 -1
- package/lib/stores/kv.d.cts +1 -1
- package/lib/stores/kv.d.ts +1 -1
- package/package.json +6 -1
- package/lib/chunk-6APH25VI.js +0 -2
- package/lib/chunk-KNFFDVLD.cjs +0 -2
- package/lib/chunk-LVNQCE5X.cjs +0 -3
- package/lib/chunk-M7EQRS6W.js +0 -3
- package/lib/chunk-NJJ7WEDT.cjs +0 -2
- package/lib/chunk-P64UKI3L.cjs +0 -8
- package/lib/chunk-Q6VSL327.js +0 -8
- package/lib/chunk-VCCTAUIG.js +0 -2
|
@@ -0,0 +1,256 @@
|
|
|
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 };
|
|
@@ -0,0 +1,256 @@
|
|
|
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 };
|
package/lib/{board-live-cards-public-CPJy-aGW.d.cts → board-live-cards-public-wkNmBIRC.d.cts}
RENAMED
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as QueueStorage, K as KVStorage, B as BlobStorage, S as ScratchStorage, A as ArchiveFactory, h as AtomicRelayLock, a as KindValueRef } from './storage-interface-BFiD3kyB.cjs';
|
|
2
2
|
import { ExecutionRef } from './execution-refs.cjs';
|
|
3
3
|
import { f as GraphEvent, G as GraphConfig } from './types-BBhqYGhE.cjs';
|
|
4
4
|
|
|
5
|
-
interface BoardWorkerRequest {
|
|
6
|
-
boardId?: string;
|
|
7
|
-
ref: ExecutionRef;
|
|
8
|
-
args: Record<string, unknown>;
|
|
9
|
-
}
|
|
10
|
-
interface BoardWorkerQueuedRequest {
|
|
11
|
-
messageId: string;
|
|
12
|
-
enqueuedAt: string;
|
|
13
|
-
attempt: number;
|
|
14
|
-
request: BoardWorkerRequest;
|
|
15
|
-
}
|
|
16
|
-
interface BoardWorkerLeasedRequest extends BoardWorkerQueuedRequest {
|
|
17
|
-
leaseToken: string;
|
|
18
|
-
leaseExpiresAt: string;
|
|
19
|
-
}
|
|
20
|
-
interface BoardWorkerDeadLetterRequest extends BoardWorkerQueuedRequest {
|
|
21
|
-
reason?: string;
|
|
22
|
-
}
|
|
23
|
-
interface BoardWorkerStore {
|
|
24
|
-
enqueueRequest(request: BoardWorkerRequest): string;
|
|
25
|
-
leaseRequests(opts?: {
|
|
26
|
-
max?: number;
|
|
27
|
-
visibilityMs?: number;
|
|
28
|
-
}): BoardWorkerLeasedRequest[];
|
|
29
|
-
ackRequest(messageId: string, leaseToken: string): boolean;
|
|
30
|
-
nackRequest(messageId: string, leaseToken: string, opts?: {
|
|
31
|
-
dead?: boolean;
|
|
32
|
-
reason?: string;
|
|
33
|
-
}): boolean;
|
|
34
|
-
peekActive(): BoardWorkerQueuedRequest[];
|
|
35
|
-
peekDeadLetter(): BoardWorkerDeadLetterRequest[];
|
|
36
|
-
}
|
|
37
|
-
declare function createBoardWorkerStore(queue: QueueStorage): BoardWorkerStore;
|
|
38
|
-
|
|
39
5
|
/**
|
|
40
6
|
* board-live-cards-lib — Pure logic library for the board-live-cards CLI.
|
|
41
7
|
*
|
|
@@ -105,6 +71,10 @@ interface JournalStorageAdapter {
|
|
|
105
71
|
}
|
|
106
72
|
declare const SNAPSHOT_SCHEMA_VERSION_V1 = "v1";
|
|
107
73
|
declare const BOARD_GRAPH_KEY = "board/graph";
|
|
74
|
+
interface StateSnapshotReadView {
|
|
75
|
+
version: string | null;
|
|
76
|
+
values: Record<string, unknown>;
|
|
77
|
+
}
|
|
108
78
|
type OutputStoreEvent = {
|
|
109
79
|
kind: 'computed_values';
|
|
110
80
|
cardId: string;
|
|
@@ -170,6 +140,52 @@ interface BoardStatusObject {
|
|
|
170
140
|
}
|
|
171
141
|
declare const EMPTY_CONFIG: GraphConfig;
|
|
172
142
|
|
|
143
|
+
interface BoardTaskCallback {
|
|
144
|
+
token: string;
|
|
145
|
+
via: ExecutionRef;
|
|
146
|
+
}
|
|
147
|
+
interface BoardCallbackTransport {
|
|
148
|
+
createCallback(token: string): BoardTaskCallback;
|
|
149
|
+
}
|
|
150
|
+
declare function createHttpBoardCallbackTransport(baseUrl: string): BoardCallbackTransport;
|
|
151
|
+
declare function createInProcessBoardCallbackTransport(handlerKey: string): BoardCallbackTransport;
|
|
152
|
+
declare function createLocalNodeBoardCallbackTransport(notifyChannel?: string): BoardCallbackTransport;
|
|
153
|
+
|
|
154
|
+
interface BoardWorkerRequest {
|
|
155
|
+
boardId?: string;
|
|
156
|
+
ref: ExecutionRef;
|
|
157
|
+
args: Record<string, unknown>;
|
|
158
|
+
}
|
|
159
|
+
interface BoardWorkerQueuedRequest {
|
|
160
|
+
messageId: string;
|
|
161
|
+
enqueuedAt: string;
|
|
162
|
+
attempt: number;
|
|
163
|
+
request: BoardWorkerRequest;
|
|
164
|
+
}
|
|
165
|
+
interface BoardWorkerLeasedRequest extends BoardWorkerQueuedRequest {
|
|
166
|
+
leaseToken: string;
|
|
167
|
+
leaseExpiresAt: string;
|
|
168
|
+
}
|
|
169
|
+
interface BoardWorkerDeadLetterRequest extends BoardWorkerQueuedRequest {
|
|
170
|
+
reason?: string;
|
|
171
|
+
}
|
|
172
|
+
interface BoardWorkerStore {
|
|
173
|
+
enqueueRequest(request: BoardWorkerRequest): string;
|
|
174
|
+
enqueueRequestIfAbsent?(request: BoardWorkerRequest, dedupKey: string): string | null;
|
|
175
|
+
leaseRequests(opts?: {
|
|
176
|
+
max?: number;
|
|
177
|
+
visibilityMs?: number;
|
|
178
|
+
}): BoardWorkerLeasedRequest[];
|
|
179
|
+
ackRequest(messageId: string, leaseToken: string): boolean;
|
|
180
|
+
nackRequest(messageId: string, leaseToken: string, opts?: {
|
|
181
|
+
dead?: boolean;
|
|
182
|
+
reason?: string;
|
|
183
|
+
}): boolean;
|
|
184
|
+
peekActive(): BoardWorkerQueuedRequest[];
|
|
185
|
+
peekDeadLetter(): BoardWorkerDeadLetterRequest[];
|
|
186
|
+
}
|
|
187
|
+
declare function createBoardWorkerStore(queue: QueueStorage): BoardWorkerStore;
|
|
188
|
+
|
|
173
189
|
/**
|
|
174
190
|
* board-live-cards-public.ts
|
|
175
191
|
*
|
|
@@ -272,6 +288,17 @@ interface BoardPlatformAdapter {
|
|
|
272
288
|
* Implementations may back this with QueueStorage, Service Bus, Pub/Sub, etc.
|
|
273
289
|
*/
|
|
274
290
|
boardWorkerStore(): BoardWorkerStore;
|
|
291
|
+
/**
|
|
292
|
+
* Semantic queue for chat-agent dispatch requests.
|
|
293
|
+
* Kept separate from task execution so chat work can be drained independently.
|
|
294
|
+
*/
|
|
295
|
+
chatAgentStore(): BoardWorkerStore;
|
|
296
|
+
/**
|
|
297
|
+
* Queue of board wake-up requests for processAccumulatedEvents scheduling.
|
|
298
|
+
* Implementations should use enqueueIfAbsent when they want single-pending
|
|
299
|
+
* drain semantics.
|
|
300
|
+
*/
|
|
301
|
+
processAccumulatedStore(): QueueStorage;
|
|
275
302
|
/**
|
|
276
303
|
* AtomicRelayLock — non-blocking try-acquire with relay-on-busy semantics.
|
|
277
304
|
* Guards processAccumulatedEvents drain cycle.
|
|
@@ -281,17 +308,15 @@ interface BoardPlatformAdapter {
|
|
|
281
308
|
*/
|
|
282
309
|
lock: AtomicRelayLock;
|
|
283
310
|
/**
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* Node/FS: { howToRun: 'local-node', whatToRun: 'b64:<base64url({"kind":"yaml-flow-cli","value":"board-live-cards-cli.js"})>' }
|
|
287
|
-
* Azure Fn: { howToRun: 'http:post', whatToRun: 'b64:<base64url({"kind":"http-url","value":"https://…/api/board"})>' }
|
|
311
|
+
* Adapter-owned callback transport used to build worker callback payloads.
|
|
312
|
+
* The board core treats callback delivery as a platform concern.
|
|
288
313
|
*/
|
|
289
|
-
|
|
314
|
+
callbackTransport?: BoardCallbackTransport;
|
|
290
315
|
/**
|
|
291
316
|
* Generic execution dispatch — platform adapts ExecutionRef → actual transport.
|
|
292
317
|
* Public layer constructs fully-formed semantic args (source def, base_ref,
|
|
293
318
|
* callback token with selfRef baked in). Platform handles transport:
|
|
294
|
-
|
|
319
|
+
* Node host adapter: may write args to temp file and may spawn a detached process
|
|
295
320
|
* Azure: HTTP POST args as JSON body
|
|
296
321
|
* Firebase: publishes args as pubsub message
|
|
297
322
|
*/
|
|
@@ -478,4 +503,4 @@ interface BoardLiveCardsNonCorePublic {
|
|
|
478
503
|
}
|
|
479
504
|
declare function createBoardLiveCardsNonCorePublic(baseRef: KindValueRef, adapter: BoardNonCorePlatformAdapter): BoardLiveCardsNonCorePublic;
|
|
480
505
|
|
|
481
|
-
export { type
|
|
506
|
+
export { type BoardWorkerRequest as B, type CommandResult as C, EMPTY_CONFIG as E, type LiveCard as L, type StateSnapshotReadView as S, type CommandInput as a, type CardAdminStore as b, type BoardChangeNotification as c, type BoardLiveCardsPublic as d, type BoardNonCorePlatformAdapter as e, type BoardPlatformAdapter as f, type BoardCallbackTransport as g, type BoardStatusObject as h, type CardChecksumIndex as i, type CardUpsertValidation as j, type CardIndex as k, type BoardWorkerStore as l, BOARD_GRAPH_KEY as m, type BoardLiveCardsNonCorePublic as n, type BoardWorkerDeadLetterRequest as o, type BoardWorkerLeasedRequest as p, type BoardWorkerQueuedRequest as q, SNAPSHOT_SCHEMA_VERSION_V1 as r, createBoardLiveCardsNonCorePublic as s, createBoardLiveCardsPublic as t, createBoardWorkerStore as u, createCardStore as v, createHttpBoardCallbackTransport as w, createInProcessBoardCallbackTransport as x, createLocalNodeBoardCallbackTransport as y };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOEFTOO47_cjs=require('./chunk-OEFTOO47.cjs');require('./chunk-U2N6MCD5.cjs'),require('./chunk-SFVO2LB2.cjs'),require('./chunk-G4XXRHL2.cjs'),require('./chunk-LODXIALE.cjs'),require('./chunk-IXZG74EW.cjs'),require('./chunk-NMZ6XNLB.cjs'),require('./chunk-UJ7ZTV4J.cjs'),require('./chunk-YMEIPKLW.cjs'),require('./chunk-GNFE24S7.cjs');Object.defineProperty(exports,"BOARD_GRAPH_KEY",{enumerable:true,get:function(){return chunkOEFTOO47_cjs.n}});Object.defineProperty(exports,"EMPTY_CONFIG",{enumerable:true,get:function(){return chunkOEFTOO47_cjs.u}});Object.defineProperty(exports,"SNAPSHOT_SCHEMA_VERSION_V1",{enumerable:true,get:function(){return chunkOEFTOO47_cjs.m}});Object.defineProperty(exports,"createBoardLiveCardsNonCorePublic",{enumerable:true,get:function(){return chunkOEFTOO47_cjs.z}});Object.defineProperty(exports,"createBoardLiveCardsPublic",{enumerable:true,get:function(){return chunkOEFTOO47_cjs.y}});//# sourceMappingURL=board-live-cards-public.cjs.map
|
|
2
2
|
//# sourceMappingURL=board-live-cards-public.cjs.map
|