@ewhauser/world-celld 0.4.1 → 0.5.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/CHANGELOG.md +25 -0
- package/NOTICE +1 -1
- package/README.md +106 -106
- package/celld-queue-worker/README.md +26 -0
- package/celld-queue-worker/worker.ts +3 -0
- package/celld-queue-worker/wrangler.jsonc +26 -0
- package/celld-worker/README.md +33 -25
- package/celld-worker/worker.ts +1 -1
- package/celld-worker/wrangler.jsonc +12 -8
- package/dist/index.d.ts +32 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -88
- package/dist/index.js.map +1 -1
- package/dist/queue-consumer.d.ts +33 -0
- package/dist/queue-consumer.d.ts.map +1 -0
- package/dist/queue-consumer.js +75 -0
- package/dist/queue-consumer.js.map +1 -0
- package/dist/queue-delivery-DzNOtCYA.d.ts +49 -0
- package/dist/queue-delivery-DzNOtCYA.d.ts.map +1 -0
- package/dist/{util-Cu09mVzK.js → queue-protocol-CmJNMH_5.js} +60 -12
- package/dist/queue-protocol-CmJNMH_5.js.map +1 -0
- package/dist/queue-protocol-Ds44uuND.js +104 -0
- package/dist/queue-protocol-Ds44uuND.js.map +1 -0
- package/dist/testing.d.ts +3 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +420 -833
- package/dist/testing.js.map +1 -1
- package/dist/worker.d.ts +106 -181
- package/dist/worker.d.ts.map +1 -1
- package/dist/worker.js +602 -955
- package/dist/worker.js.map +1 -1
- package/docs/celld-v0.5-upgrade.md +130 -0
- package/package.json +11 -3
- package/dist/util-Cu09mVzK.js.map +0 -1
package/dist/worker.d.ts
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as QueuePayloadRegistration, r as QueuePayloadOrphan, t as QueueDeliveryResult } from "./queue-delivery-DzNOtCYA.js";
|
|
2
|
+
import { CreateEventParams, CreateEventRequest, Event, Hook, RunCreatedEventRequest, Step, TerminalWorkflowRunStatus, Wait, WorkflowRun, WorkflowRunStatus } from "@workflow/world";
|
|
3
|
+
//#region src/worker/queue-payload-store.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Provider-neutral storage used for run-bearing native Queue payloads.
|
|
6
|
+
*
|
|
7
|
+
* celld v0.4 exposes a namespace in the fleet's existing object store through
|
|
8
|
+
* the Workers R2-compatible binding shape. Keep that platform shape here so
|
|
9
|
+
* queue and retention code depend only on QueuePayloadStore.
|
|
10
|
+
*/
|
|
11
|
+
interface QueuePayloadStore {
|
|
12
|
+
write(key: string, value: string, metadata: {
|
|
13
|
+
runId: string;
|
|
14
|
+
messageId: string;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
read(key: string): Promise<string | null>;
|
|
17
|
+
delete(keys: string | string[]): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
interface QueuePayloadObjectStorageBinding {
|
|
20
|
+
put(key: string, value: string, options?: {
|
|
21
|
+
customMetadata?: Record<string, string>;
|
|
22
|
+
}): Promise<unknown>;
|
|
23
|
+
get(key: string): Promise<{
|
|
24
|
+
text(): Promise<string>;
|
|
25
|
+
} | null>;
|
|
26
|
+
delete(keys: string | string[]): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
2
29
|
//#region src/worker/router.d.ts
|
|
3
30
|
/** Minimal structural DO namespace type (celld provides the real thing). */
|
|
4
31
|
interface DONamespaceLike {
|
|
@@ -9,20 +36,49 @@ interface DONamespaceLike {
|
|
|
9
36
|
toString(): string;
|
|
10
37
|
}): unknown;
|
|
11
38
|
}
|
|
39
|
+
interface NativeQueueBindingLike {
|
|
40
|
+
send(body: string, options?: {
|
|
41
|
+
contentType?: 'text';
|
|
42
|
+
delaySeconds?: number;
|
|
43
|
+
}): Promise<unknown>;
|
|
44
|
+
}
|
|
12
45
|
interface WorkerEnv {
|
|
13
46
|
WORKFLOW_DB: DONamespaceLike;
|
|
14
47
|
WORKFLOW_STREAMS: DONamespaceLike;
|
|
15
48
|
WORKFLOW_RUN_CATALOG: DONamespaceLike;
|
|
16
49
|
WORKFLOW_HOOK_TOKENS: DONamespaceLike;
|
|
17
50
|
WORKFLOW_HOOK_IDS: DONamespaceLike;
|
|
18
|
-
WORKFLOW_QUEUE:
|
|
51
|
+
WORKFLOW_QUEUE: NativeQueueBindingLike;
|
|
52
|
+
WORKFLOW_QUEUE_PAYLOADS?: QueuePayloadStore;
|
|
19
53
|
WORLD_SECRET?: string;
|
|
54
|
+
WORKFLOW_CALLBACK_SECRET?: string;
|
|
20
55
|
WORKFLOW_RETENTION_MS?: string | number;
|
|
21
56
|
WORKFLOW_RETENTION_BATCH_SIZE?: string | number;
|
|
22
|
-
WORKFLOW_RETENTION_QUEUE_SHARDS?: string | number;
|
|
23
57
|
}
|
|
24
58
|
declare function createRouter(env: WorkerEnv): (request: Request) => Promise<Response>;
|
|
25
59
|
//#endregion
|
|
60
|
+
//#region src/worker/do-base.d.ts
|
|
61
|
+
/**
|
|
62
|
+
* Durable Object base class — Node variant.
|
|
63
|
+
*
|
|
64
|
+
* The cell classes extend `DurableObject` so celld's JS RPC works on their
|
|
65
|
+
* stubs. This module is what Node builds (tests, the `./testing` in-process
|
|
66
|
+
* fleet) resolve; the worker build swaps it for do-base-workerd.ts, which
|
|
67
|
+
* re-exports the real `cloudflare:workers` base (see tsdown.config.ts).
|
|
68
|
+
* Behaviorally identical at this layer: the base only assigns ctx/env.
|
|
69
|
+
*/
|
|
70
|
+
declare class DurableObject<TEnv = unknown> {
|
|
71
|
+
readonly ctx: DurableObjectState;
|
|
72
|
+
readonly env: TEnv;
|
|
73
|
+
constructor(ctx: DurableObjectState, env: TEnv);
|
|
74
|
+
}
|
|
75
|
+
/** Node-only base for testing named Worker entrypoints. */
|
|
76
|
+
declare class WorkerEntrypoint<TEnv = unknown> {
|
|
77
|
+
readonly ctx: ExecutionContext;
|
|
78
|
+
readonly env: TEnv;
|
|
79
|
+
constructor(ctx: ExecutionContext, env: TEnv);
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
26
82
|
//#region src/retention.d.ts
|
|
27
83
|
type CleanupPhase = 'retained' | 'index' | 'streams' | 'queues' | 'payload' | 'tombstoned';
|
|
28
84
|
interface CleanupRecord {
|
|
@@ -38,7 +94,6 @@ interface CleanupRecord {
|
|
|
38
94
|
terminalStatus?: TerminalWorkflowRunStatus;
|
|
39
95
|
reason?: 'terminal-retention' | 'maximum-age' | 'manual';
|
|
40
96
|
dueAt: Date;
|
|
41
|
-
queueShards: number;
|
|
42
97
|
phase: CleanupPhase;
|
|
43
98
|
/** Optimistic-concurrency token for alarm/RPC work that awaits another cell. */
|
|
44
99
|
generation: number;
|
|
@@ -48,7 +103,8 @@ interface CleanupRecord {
|
|
|
48
103
|
tombstonedAt?: Date;
|
|
49
104
|
deletedPayloadKeys: number;
|
|
50
105
|
deletedStreams: number;
|
|
51
|
-
|
|
106
|
+
/** Queue payload objects removed from object storage during run cleanup. */
|
|
107
|
+
deletedQueuePayloads: number;
|
|
52
108
|
}
|
|
53
109
|
interface RunTombstone {
|
|
54
110
|
version: 1;
|
|
@@ -92,26 +148,8 @@ interface ExpireStreamResult {
|
|
|
92
148
|
bytes: number;
|
|
93
149
|
done: boolean;
|
|
94
150
|
}
|
|
95
|
-
interface QueueExpiryReceipt {
|
|
96
|
-
expiredAt: number;
|
|
97
|
-
deleted: number;
|
|
98
|
-
}
|
|
99
|
-
type ExpireQueueRunResult = {
|
|
100
|
-
/** Cumulative messages removed for this run in this queue shard. */
|
|
101
|
-
deleted: number;
|
|
102
|
-
} & ({
|
|
103
|
-
done: false;
|
|
104
|
-
} | {
|
|
105
|
-
done: true;
|
|
106
|
-
/** Durable receipt which the cleanup coordinator must acknowledge. */
|
|
107
|
-
receipt: QueueExpiryReceipt;
|
|
108
|
-
});
|
|
109
|
-
interface AcknowledgeQueueExpiryResult {
|
|
110
|
-
acknowledged: boolean;
|
|
111
|
-
}
|
|
112
151
|
interface ScheduleCleanupRequest {
|
|
113
152
|
retentionMs: number;
|
|
114
|
-
queueShards: number;
|
|
115
153
|
}
|
|
116
154
|
interface EnforceRetentionRequest extends ScheduleCleanupRequest {
|
|
117
155
|
/** Cron occurrence being enforced. A run is eligible only at/before this time. */
|
|
@@ -216,44 +254,6 @@ interface StreamReadResult {
|
|
|
216
254
|
error?: StreamErrorData;
|
|
217
255
|
}
|
|
218
256
|
//#endregion
|
|
219
|
-
//#region src/queue.d.ts
|
|
220
|
-
type Pathname = 'flow';
|
|
221
|
-
/**
|
|
222
|
-
* Enqueue request accepted by a QueueDO cell. The message payload travels
|
|
223
|
-
* pre-encoded with the shared tagged-JSON codec (`body`), so the cell can
|
|
224
|
-
* forward it byte-identical to the app's queue handler without re-encoding.
|
|
225
|
-
*/
|
|
226
|
-
interface EnqueueRequest {
|
|
227
|
-
messageId: string;
|
|
228
|
-
queueName: ValidQueueName;
|
|
229
|
-
pathname: Pathname;
|
|
230
|
-
/** `stringify(message)` — the exact bytes POSTed to the app on delivery. */
|
|
231
|
-
body: string;
|
|
232
|
-
/** Owning workflow run; absent only for health-check messages. */
|
|
233
|
-
runId?: string;
|
|
234
|
-
idempotencyKey?: string;
|
|
235
|
-
delaySeconds?: number;
|
|
236
|
-
/**
|
|
237
|
-
* Delivery configuration. The cell pins this from its first enqueue (the
|
|
238
|
-
* eve-ambient pattern); a later mismatch is rejected as CONFIG_MISMATCH.
|
|
239
|
-
*/
|
|
240
|
-
config: QueueCellConfig;
|
|
241
|
-
}
|
|
242
|
-
interface QueueCellConfig {
|
|
243
|
-
/** Base URL of the app; deliveries POST to `${baseUrl}/.well-known/workflow/v1/flow`. */
|
|
244
|
-
targetBaseUrl: string;
|
|
245
|
-
queueShards: number;
|
|
246
|
-
}
|
|
247
|
-
type EnqueueOutcome = {
|
|
248
|
-
ok: true;
|
|
249
|
-
messageId: string;
|
|
250
|
-
deduped: boolean;
|
|
251
|
-
} | {
|
|
252
|
-
ok: false;
|
|
253
|
-
code: 'CONFIG_MISMATCH' | 'RUN_EXPIRED';
|
|
254
|
-
message: string;
|
|
255
|
-
};
|
|
256
|
-
//#endregion
|
|
257
257
|
//#region src/indexes.d.ts
|
|
258
258
|
interface IndexListOptions {
|
|
259
259
|
prefix?: string;
|
|
@@ -287,22 +287,6 @@ interface HookTokenOwner {
|
|
|
287
287
|
hookId: string;
|
|
288
288
|
}
|
|
289
289
|
//#endregion
|
|
290
|
-
//#region src/worker/do-base.d.ts
|
|
291
|
-
/**
|
|
292
|
-
* Durable Object base class — Node variant.
|
|
293
|
-
*
|
|
294
|
-
* The cell classes extend `DurableObject` so celld's JS RPC works on their
|
|
295
|
-
* stubs. This module is what Node builds (tests, the `./testing` in-process
|
|
296
|
-
* fleet) resolve; the worker build swaps it for do-base-workerd.ts, which
|
|
297
|
-
* re-exports the real `cloudflare:workers` base (see tsdown.config.ts).
|
|
298
|
-
* Behaviorally identical at this layer: the base only assigns ctx/env.
|
|
299
|
-
*/
|
|
300
|
-
declare class DurableObject<TEnv = unknown> {
|
|
301
|
-
readonly ctx: DurableObjectState;
|
|
302
|
-
readonly env: TEnv;
|
|
303
|
-
constructor(ctx: DurableObjectState, env: TEnv);
|
|
304
|
-
}
|
|
305
|
-
//#endregion
|
|
306
290
|
//#region src/worker/durable-objects/hook-index-shared.d.ts
|
|
307
291
|
interface RunLifecycleStub {
|
|
308
292
|
getLifecycleStatus(): Promise<RunLifecycleStatus>;
|
|
@@ -367,104 +351,6 @@ declare class HookTokenDO extends DurableObject<HookIndexEnv> {
|
|
|
367
351
|
private compactClaims;
|
|
368
352
|
}
|
|
369
353
|
//#endregion
|
|
370
|
-
//#region src/worker/durable-objects/QueueDO.d.ts
|
|
371
|
-
/**
|
|
372
|
-
* Queue cell: the celld replacement for Cloudflare Queues.
|
|
373
|
-
*
|
|
374
|
-
* One cell (`q:<shard>`) owns the full lifecycle of its messages: durable
|
|
375
|
-
* scheduling via the cell alarm, delivery via outbound fetch (the same x-vqs
|
|
376
|
-
* dialect as the in-process test pump), retries with capped exponential
|
|
377
|
-
* backoff, idempotencyKey dedup, and a dead-letter table.
|
|
378
|
-
*
|
|
379
|
-
* Storage layout (KV-style, ordered scans via zero-padded epoch-ms keys):
|
|
380
|
-
* cfg pinned QueueCellConfig (first-enqueue wins)
|
|
381
|
-
* msg:<messageId> MessageRow
|
|
382
|
-
* due:<paddedMs>:<messageId> schedule index -> messageId
|
|
383
|
-
* inflight-deadline:<paddedMs>:<messageId>
|
|
384
|
-
* ordered crash-recovery index -> messageId
|
|
385
|
-
* key:<idempotencyKey> active dedup claim -> messageId
|
|
386
|
-
* dlq:<paddedMs>:<messageId> DeadLetterRow
|
|
387
|
-
* run:<runId>:<messageId> QueueRunReference for retention cleanup
|
|
388
|
-
* expired-run:<runId> cumulative cleanup receipt; compactable only
|
|
389
|
-
* after RunDO acknowledgement
|
|
390
|
-
* expired-run-gc:<paddedMs>:<runId>
|
|
391
|
-
* ordered compaction deadline -> runId
|
|
392
|
-
*
|
|
393
|
-
* celld gotchas designed around:
|
|
394
|
-
* - celld#144 (alarm handlers can overlap): the storage-only claim phase runs
|
|
395
|
-
* inside blockConcurrencyWhile; slow delivery I/O runs outside the gate via
|
|
396
|
-
* waitUntil.
|
|
397
|
-
* - six-failure alarm abandonment: the alarm handler never throws for data
|
|
398
|
-
* conditions — backoff reschedules the alarm instead. rearmAlarm() is the
|
|
399
|
-
* recovery hatch, and every enqueue also re-arms.
|
|
400
|
-
* - deploys restart the fleet: in-flight deliveries die with the isolate; the
|
|
401
|
-
* inflight-deadline sweep on the next alarm redelivers (at-least-once).
|
|
402
|
-
*/
|
|
403
|
-
interface MessageRow {
|
|
404
|
-
messageId: string;
|
|
405
|
-
queueName: string;
|
|
406
|
-
pathname: 'flow' | 'step';
|
|
407
|
-
/** Pre-encoded tagged-JSON payload — forwarded byte-identical. */
|
|
408
|
-
body: string;
|
|
409
|
-
runId?: string;
|
|
410
|
-
/**
|
|
411
|
-
* Delivery target captured at enqueue time. Carried per message (not
|
|
412
|
-
* pinned on the cell) so an app redeploy at a new URL never bricks the
|
|
413
|
-
* queue: old messages deliver (or dead-letter) against their original
|
|
414
|
-
* target, new messages against the new one.
|
|
415
|
-
*/
|
|
416
|
-
targetBaseUrl: string;
|
|
417
|
-
idempotencyKey?: string;
|
|
418
|
-
/** Completed delivery attempts. */
|
|
419
|
-
attempt: number;
|
|
420
|
-
enqueuedAt: number;
|
|
421
|
-
lastError?: string;
|
|
422
|
-
}
|
|
423
|
-
interface DeadLetterRow extends MessageRow {
|
|
424
|
-
failedAt: number;
|
|
425
|
-
}
|
|
426
|
-
interface QueueStats {
|
|
427
|
-
pending: number;
|
|
428
|
-
inflight: number;
|
|
429
|
-
deadLetters: number;
|
|
430
|
-
alarmAt: number | null;
|
|
431
|
-
}
|
|
432
|
-
declare class QueueDO extends DurableObject {
|
|
433
|
-
#private;
|
|
434
|
-
enqueue(request: EnqueueRequest): Promise<EnqueueOutcome>;
|
|
435
|
-
alarm(): Promise<void>;
|
|
436
|
-
stats(): Promise<QueueStats>;
|
|
437
|
-
listDeadLetters(params?: {
|
|
438
|
-
limit?: number;
|
|
439
|
-
cursor?: string;
|
|
440
|
-
}): Promise<{
|
|
441
|
-
data: DeadLetterRow[];
|
|
442
|
-
cursor: string | null;
|
|
443
|
-
hasMore: boolean;
|
|
444
|
-
}>;
|
|
445
|
-
/** Move a dead letter back to the live queue (attempt count reset). */
|
|
446
|
-
redriveDeadLetter(messageId: string): Promise<{
|
|
447
|
-
ok: boolean;
|
|
448
|
-
}>;
|
|
449
|
-
purgeDeadLetters(): Promise<{
|
|
450
|
-
purged: number;
|
|
451
|
-
hasMore: boolean;
|
|
452
|
-
}>;
|
|
453
|
-
/**
|
|
454
|
-
* Recovery hatch for celld's six-failure alarm abandonment: derive the due
|
|
455
|
-
* time again and arm it.
|
|
456
|
-
*/
|
|
457
|
-
rearmAlarm(): Promise<{
|
|
458
|
-
alarmAt: number | null;
|
|
459
|
-
}>;
|
|
460
|
-
/** Fence a run and purge every live, inflight, and dead-letter message it owns. */
|
|
461
|
-
expireRun(runId: string, expiredAt: number, options?: {
|
|
462
|
-
limit?: number;
|
|
463
|
-
}): Promise<ExpireQueueRunResult>;
|
|
464
|
-
/** Acknowledge a final cleanup receipt before making its marker compactable. */
|
|
465
|
-
acknowledgeExpireRun(runId: string, receipt: QueueExpiryReceipt): Promise<AcknowledgeQueueExpiryResult>;
|
|
466
|
-
}
|
|
467
|
-
//#endregion
|
|
468
354
|
//#region src/worker/durable-objects/RunCatalogDO.d.ts
|
|
469
355
|
/** One of a fixed set of run-catalog shards, routed by the stable run ID hash. */
|
|
470
356
|
declare class RunCatalogDO extends DurableObject {
|
|
@@ -542,8 +428,8 @@ declare class StreamDO extends DurableObject {
|
|
|
542
428
|
* storage transaction: guard checks, the event append, and the entity
|
|
543
429
|
* mutation are atomic even if the DO is evicted mid-operation.
|
|
544
430
|
*
|
|
545
|
-
* Instances named `claim:<queueName>:<idempotencyKey>`
|
|
546
|
-
*
|
|
431
|
+
* Instances named `claim:<queueName>:<idempotencyKey>` reserve one message ID
|
|
432
|
+
* at publication time and serialize its deliveries until completion.
|
|
547
433
|
*/
|
|
548
434
|
declare class WorkflowRunDO extends DurableObject {
|
|
549
435
|
private now;
|
|
@@ -626,13 +512,45 @@ declare class WorkflowRunDO extends DurableObject {
|
|
|
626
512
|
private deletePayloadBatch;
|
|
627
513
|
private recordCleanupFailure;
|
|
628
514
|
private recordTerminalCleanupFailure;
|
|
515
|
+
registerQueuePayload(registration: QueuePayloadRegistration): Promise<{
|
|
516
|
+
ok: true;
|
|
517
|
+
} | {
|
|
518
|
+
ok: false;
|
|
519
|
+
message: string;
|
|
520
|
+
}>;
|
|
521
|
+
finalizeQueuePayload(messageId: string): Promise<{
|
|
522
|
+
ok: true;
|
|
523
|
+
} | {
|
|
524
|
+
ok: false;
|
|
525
|
+
message: string;
|
|
526
|
+
}>;
|
|
527
|
+
unregisterQueuePayload(messageId: string): Promise<void>;
|
|
528
|
+
scheduleQueuePayloadOrphan(orphan: QueuePayloadOrphan): Promise<void>;
|
|
529
|
+
cancelQueuePayloadOrphan(messageId: string): Promise<void>;
|
|
530
|
+
reserveQueueMessage(params: {
|
|
531
|
+
messageId: string;
|
|
532
|
+
expiresAt: number;
|
|
533
|
+
}): Promise<{
|
|
534
|
+
admitted: boolean;
|
|
535
|
+
messageId: string;
|
|
536
|
+
}>;
|
|
537
|
+
completeQueueMessage(messageId: string): Promise<void>;
|
|
629
538
|
claimInflight(params: {
|
|
630
539
|
messageId: string;
|
|
631
540
|
staleMs: number;
|
|
632
541
|
}): Promise<{
|
|
633
542
|
claimed: boolean;
|
|
543
|
+
retryAt?: number;
|
|
544
|
+
}>;
|
|
545
|
+
holdInflight(params: {
|
|
546
|
+
messageId: string;
|
|
547
|
+
retryAt: number;
|
|
548
|
+
expiresAt: number;
|
|
549
|
+
reservationExpiresAt?: number;
|
|
550
|
+
}): Promise<{
|
|
551
|
+
held: boolean;
|
|
634
552
|
}>;
|
|
635
|
-
releaseInflight(): Promise<void>;
|
|
553
|
+
releaseInflight(messageId?: string): Promise<void>;
|
|
636
554
|
}
|
|
637
555
|
//#endregion
|
|
638
556
|
//#region src/worker/worker.d.ts
|
|
@@ -640,11 +558,18 @@ interface ScheduledControllerLike {
|
|
|
640
558
|
scheduledTime: number;
|
|
641
559
|
cron: string;
|
|
642
560
|
}
|
|
643
|
-
|
|
561
|
+
type CelldWorkerEnv = Omit<WorkerEnv, 'WORKFLOW_QUEUE_PAYLOADS'> & {
|
|
562
|
+
WORKFLOW_QUEUE_PAYLOADS?: QueuePayloadObjectStorageBinding;
|
|
563
|
+
};
|
|
564
|
+
declare function scheduled(controller: ScheduledControllerLike, env: CelldWorkerEnv): Promise<void>;
|
|
644
565
|
declare const _default: {
|
|
645
|
-
fetch(request: Request, env:
|
|
566
|
+
fetch(request: Request, env: CelldWorkerEnv): Promise<Response>;
|
|
646
567
|
scheduled: typeof scheduled;
|
|
647
568
|
};
|
|
569
|
+
/** Only the companion consumer binds this internal delivery entrypoint. */
|
|
570
|
+
declare class QueueDeliveryRpc extends WorkerEntrypoint<CelldWorkerEnv> {
|
|
571
|
+
deliver(secret: unknown, envelope: unknown, attempt: unknown): Promise<QueueDeliveryResult>;
|
|
572
|
+
}
|
|
648
573
|
//#endregion
|
|
649
|
-
export { HookIdDO, HookTokenDO,
|
|
574
|
+
export { HookIdDO, HookTokenDO, QueueDeliveryRpc, RunCatalogDO, StreamDO, type WorkerEnv, WorkflowRunDO, createRouter, _default as default };
|
|
650
575
|
//# sourceMappingURL=worker.d.ts.map
|
package/dist/worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","names":[],"sources":["../src/worker/
|
|
1
|
+
{"version":3,"file":"worker.d.ts","names":[],"sources":["../src/worker/queue-payload-store.ts","../src/worker/router.ts","../src/worker/do-base.ts","../src/retention.ts","../src/apply-event.ts","../src/stream-protocol.ts","../src/indexes.ts","../src/config.ts","../src/worker/durable-objects/hook-index-shared.ts","../src/worker/durable-objects/HookIdDO.ts","../src/worker/durable-objects/HookTokenDO.ts","../src/worker/durable-objects/RunCatalogDO.ts","../src/worker/durable-objects/StreamDO.ts","../src/worker/durable-objects/WorkflowRunDO.ts","../src/worker/worker.ts"],"mappings":";;;;;;;;;;UAOiB;EACf,MAAM,aAAa,eAAe;IAAY;IAAe;MAAsB;EACnF,KAAK,cAAc;EACnB,OAAO,0BAA0B;;UAGlB;EACf,IACE,aACA,eACA;IAAY,iBAAiB;MAC5B;EACH,IAAI,cAAc;IAAU,QAAQ;;EACpC,OAAO,0BAA0B;;;;;UCoClB;EACf,WAAW;IAAiB;;EAC5B,IAAI;IAAM;;;UAGF;EACR,KAAK,cAAc;IAAY;IAAsB;MAA0B;;UA6BhE;EACf,aAAa;EACb,kBAAkB;EAClB,sBAAsB;EACtB,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,0BAA0B;EAC1B;EACA;EACA;EACA;;iBAkMc,aAAa,KAAK,aAAS,SAClB,YAAU,QAAQ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