@byollm/server 0.1.0-alpha.1 → 0.1.0-alpha.100

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.
@@ -0,0 +1,500 @@
1
+ import { JobKind, PayloadFor, Audience, SealedEnvelope, SizeClass, JobState, Lease, JobOutcome, ResultProvenance, Capability, PublicIdentity } from '@byollm/protocol';
2
+
3
+ /**
4
+ * A job as the server stores it.
5
+ *
6
+ * Adapters map this shape onto their own storage; the field meanings are
7
+ * normative because the conformance kit asserts behaviour that depends on
8
+ * them (TTL clock start, dependency gating, refusal tracking).
9
+ */
10
+ interface JobRecord {
11
+ readonly id: string;
12
+ readonly kind: JobKind;
13
+ /**
14
+ * The work, sealed to this site's own encryption key (byollm_009 §10).
15
+ *
16
+ * The store never holds plaintext. The app sees plaintext at enqueue and at
17
+ * result because the app *is* the endpoint; everything in between —
18
+ * database, backups, log aggregators, a support engineer with read access —
19
+ * sees ciphertext.
20
+ *
21
+ * This is not protection from the application the user deliberately sent
22
+ * their work to. It is protection from everything the application's storage
23
+ * touches, which is a longer list than most people picture.
24
+ */
25
+ readonly envelope: SealedEnvelope;
26
+ /** Fixed at enqueue, where the plaintext is. */
27
+ readonly sizeClass: SizeClass;
28
+ readonly audience: Audience;
29
+ /**
30
+ * The service the site named, if it named one — byollm_016 Phase B.
31
+ *
32
+ * Stored rather than derived, because the stub carries it to the router and
33
+ * the router matches on it. `undefined` means the owner's default answers,
34
+ * which is every job written before this field existed.
35
+ */
36
+ readonly purpose: string | undefined;
37
+ /** The app's id for the user who enqueued it. */
38
+ readonly owner: string;
39
+ /** Server-side restriction on which runner owners may take a `named` job. */
40
+ readonly audienceAllow: readonly string[] | undefined;
41
+ /** Job ids that must all be `ok` before this becomes claimable. */
42
+ readonly dependsOn: readonly string[];
43
+ readonly state: JobState;
44
+ readonly lease: Lease | null;
45
+ /**
46
+ * The grant that recorded this job's result — cloud_008 §3.6.
47
+ *
48
+ * Kept after `lease` is nulled, because "who finished this" outlives "who
49
+ * holds this" and the two are asked for different reasons. It is what lets
50
+ * a replay from the device that finished the job be answered *as a
51
+ * duplicate* rather than as a stale lease — and lets a replay from any
52
+ * other device be refused exactly as it would be for a job that is not
53
+ * terminal, so a job id is not a terminality probe.
54
+ */
55
+ readonly completedByLeaseId: string | null;
56
+ readonly createdAt: number;
57
+ /**
58
+ * When the job became claimable — enqueue time for a job with no
59
+ * dependencies, or the moment its last dependency reached `ok`.
60
+ *
61
+ * **The TTL clock starts here, not at `createdAt`.** Starting it at enqueue
62
+ * would expire a dependent job for the crime of waiting on a slow
63
+ * dependency (byollm_001 Rev 1 §D, TTL clock resolved in build review).
64
+ * `null` means still blocked.
65
+ */
66
+ readonly claimableAt: number | null;
67
+ /** How long an unclaimed job may wait once claimable. */
68
+ readonly ttlMs: number;
69
+ /** Optional absolute deadline, independent of the TTL. */
70
+ readonly deadlineAt: number | null;
71
+ /**
72
+ * Runners that released this job with reason `refused` — their local
73
+ * allowlist declined it. Never offered to them again
74
+ * ({@link MUSTS.REFUSAL_NOT_REOFFERED}).
75
+ */
76
+ readonly refusedBy: readonly string[];
77
+ /** How many times this job has been claimed, including lease-expiry retries. */
78
+ readonly attempts: number;
79
+ readonly outcome: JobOutcome | null;
80
+ readonly provenance: ResultProvenance | null;
81
+ readonly updatedAt: number;
82
+ }
83
+ /** A paired daemon as the server stores it. */
84
+ interface RunnerRecord {
85
+ readonly id: string;
86
+ /** The app's id for the user this runner is bound to — exactly one. */
87
+ readonly owner: string;
88
+ readonly label: string;
89
+ readonly platform: "darwin" | "linux" | "win32";
90
+ readonly daemonVersion: string;
91
+ readonly capabilities: readonly Capability[];
92
+ readonly paused: boolean;
93
+ /** Set once; a revoked runner never un-revokes. */
94
+ readonly revokedAt: number | null;
95
+ readonly lastHeartbeatAt: number;
96
+ readonly createdAt: number;
97
+ /**
98
+ * The device's pinned public keys. What later signatures verify against —
99
+ * a runner id names a machine, this proves it.
100
+ */
101
+ readonly device: PublicIdentity;
102
+ }
103
+ /** An in-flight device-code pairing. */
104
+ interface PairingRecord {
105
+ /** SHA-256 of the device code. The code itself is never stored. */
106
+ readonly deviceCodeHash: string;
107
+ /** The short code the user reads. Unique among live pairings. */
108
+ readonly userCode: string;
109
+ readonly state: "pending" | "approved" | "denied";
110
+ /** Set when approved — learned from the approving user's own session. */
111
+ readonly owner: string | null;
112
+ readonly runnerId: string | null;
113
+ /**
114
+ * Whether this approval has already been collected — cloud_008 §2.4.
115
+ *
116
+ * This was `runnerTokenOnce`, a bearer token held until the daemon's next
117
+ * poll and then nulled. The token is gone (finding 37: minted, hashed,
118
+ * written to two disks, never sent or compared), but the *deliver-once*
119
+ * property it carried is real and separate: a replayed device code must get
120
+ * nothing, or a code seen in a shell history is a second pairing.
121
+ *
122
+ * So the flag stays and the secret does not. Nulling a token to mean
123
+ * "collected" was one field doing two jobs, and only one of them was load
124
+ * bearing.
125
+ */
126
+ readonly collected: boolean;
127
+ readonly label: string;
128
+ readonly platform: "darwin" | "linux" | "win32";
129
+ readonly daemonVersion: string;
130
+ readonly capabilities: readonly Capability[];
131
+ /**
132
+ * The device's public keys, presented at pair start (byollm_009 §5).
133
+ *
134
+ * Kept on the pairing so the approving user is approving a *specific
135
+ * machine*, not a code that any machine could later redeem. It is copied
136
+ * onto the runner at approval.
137
+ */
138
+ readonly device: PublicIdentity;
139
+ readonly expiresAt: number;
140
+ readonly createdAt: number;
141
+ }
142
+ /**
143
+ * What the app supplies to enqueue a job.
144
+ *
145
+ * Generic over the kind, so the payload has to be the payload *for* that kind.
146
+ * These were independent — `kind: JobKind` beside `payload: JobPayload`, the
147
+ * union of both shapes — and the pairing was left to the author's memory. A
148
+ * chat job carrying a generate payload typechecked, built, shipped, and was
149
+ * refused at the relay's ingress with a precise sentence nobody sees until
150
+ * somebody clicks.
151
+ *
152
+ * `PayloadFor<K>` was already exported by the protocol when that happened, and
153
+ * `enqueue` did not use it. A wrong pairing is now a compile error at the call
154
+ * site, which is the only place that knows what it meant.
155
+ *
156
+ * A caller whose `kind` is a variable rather than a literal still gets the old
157
+ * permissive union — the conditional distributes — so nothing that was legal
158
+ * and correct stops compiling.
159
+ */
160
+ interface EnqueueInput<K extends JobKind = JobKind> {
161
+ readonly kind: K;
162
+ /** The work, in plaintext. The server seals it before it is stored. */
163
+ readonly payload: PayloadFor<K>;
164
+ readonly owner: string;
165
+ /**
166
+ * Direct lane only. Refused on the cloud lane, where it is derived.
167
+ *
168
+ * On the cloud lane, who may serve a job comes from the person's own
169
+ * mapping — the service they chose, its owner, and that owner's offer scope
170
+ * — none of which a site is told, and all of which the hub holds at claim.
171
+ * A site declaring an audience there was a third vote cast by the one party
172
+ * the disclosure fence forbids from knowing the answer, and its `private`
173
+ * default silently disabled team sharing for every user who had a team.
174
+ *
175
+ * On the direct lane it still selects something real, which is why it stays
176
+ * rather than going in the same release: it is the switch that turns
177
+ * {@link EnqueueInput.audienceAllow} on. `private` is own-devices-only;
178
+ * `team` hands the decision to the allowlist. Without it there is no way to
179
+ * say "these runner owners, and no others", and supplier trust needs one.
180
+ *
181
+ * Defaults to `private` — the safe direction, and on this lane a direction
182
+ * a caller can meaningfully choose.
183
+ */
184
+ readonly audience?: Audience;
185
+ /**
186
+ * Which of *your site's* declared purposes this job serves — Amendment L.
187
+ *
188
+ * **A need, never a name.** You declare purposes at registration —
189
+ * `"revenue"`, `"writing-assistant"` — and each of your users maps them to
190
+ * one of their own services on the consent screen. This field names the
191
+ * purpose; the mapping does the rest.
192
+ *
193
+ * There is no model field, no base URL, no flags, and — since Amendment L —
194
+ * no way to name a service either. Your vocabulary is your purposes; theirs
195
+ * is their services; the two never meet. You learn whether a slot was
196
+ * satisfiable and nothing else.
197
+ *
198
+ * Use the purpose **key**, not its label. Labels are prose for the consent
199
+ * screen and may change; a key travels on every job and is what mappings
200
+ * are stored against.
201
+ *
202
+ * Leave it out only in direct mode, which has no control plane to hold a
203
+ * mapping and answers by kind alone.
204
+ */
205
+ readonly purpose?: string;
206
+ readonly audienceAllow?: readonly string[];
207
+ readonly dependsOn?: readonly string[];
208
+ /** Defaults to the server config's `defaultTtlMs`. */
209
+ readonly ttlMs?: number;
210
+ readonly deadlineAt?: number;
211
+ /** Caller-supplied id, for idempotent enqueue. */
212
+ readonly id?: string;
213
+ }
214
+ /**
215
+ * What the *store* is given — the sealed form.
216
+ *
217
+ * Distinct from {@link EnqueueInput} because the two are genuinely different
218
+ * things: an app hands over work in plaintext, and what gets written down is
219
+ * sealed. Collapsing them into one type would mean a field that is sometimes
220
+ * readable and sometimes not, which is the kind of ambiguity that ends with
221
+ * plaintext in a database.
222
+ */
223
+ interface StoredJobInput extends Omit<EnqueueInput, "payload" | "id"> {
224
+ readonly id: string;
225
+ readonly envelope: SealedEnvelope;
226
+ readonly sizeClass: SizeClass;
227
+ }
228
+
229
+ /**
230
+ * The adapter seam.
231
+ *
232
+ * Everything in `@byollm/server` above this interface is storage-agnostic;
233
+ * everything below it is one adapter. `MemoryJobStore` is the reference
234
+ * implementation and the thing the conformance kit certifies first — an
235
+ * adapter is correct when the same kit passes against it.
236
+ */
237
+ interface JobStore {
238
+ /** Create a job. Idempotent when `input.id` is supplied and already exists. */
239
+ create(input: StoredJobInput, now: number): Promise<JobRecord>;
240
+ get(jobId: string): Promise<JobRecord | null>;
241
+ /**
242
+ * Atomically claim up to `max` jobs for a runner
243
+ * ({@link MUSTS.CLAIM_ATOMIC}).
244
+ *
245
+ * An implementation MUST apply, inside the same atomic step:
246
+ * - state is `queued`;
247
+ * - `claimableAt` is non-null and `<= now` (dependencies satisfied,
248
+ * {@link MUSTS.DEPENDS_ON_GATING});
249
+ * - the job's kind appears in `capabilities`
250
+ * ({@link MUSTS.CLAIM_REQUIRES_CAPABILITY});
251
+ * - the audience rules admit this runner
252
+ * ({@link MUSTS.AUDIENCE_BOTH_SIDES});
253
+ * - `runnerId` is not in the job's `refusedBy`
254
+ * ({@link MUSTS.REFUSAL_NOT_REOFFERED}).
255
+ *
256
+ * SQL-backed adapters SHOULD use `FOR UPDATE SKIP LOCKED`.
257
+ */
258
+ claim(args: ClaimArgs): Promise<JobRecord[]>;
259
+ /**
260
+ * Renew leases for the jobs a runner believes it holds, and report which it
261
+ * has lost. A job whose lease expired un-renewed returns to `queued`
262
+ * ({@link MUSTS.LEASE_RECLAIMABLE}).
263
+ */
264
+ /**
265
+ * Record a lease granted by an upstream this store does not own.
266
+ *
267
+ * The cloud lane's one addition to the store contract, and it exists
268
+ * because of a question the direct plane never has to answer: **who grants
269
+ * the lease?** On the direct plane the site is the upstream, so `claim`
270
+ * both selects the job and grants the lease in one atomic step. Through a
271
+ * relay the relay selects and grants, and the site finds out afterwards.
272
+ *
273
+ * Without this the site's own row stays `queued` while a device is
274
+ * actively running the work, which breaks two things that are not
275
+ * cosmetic: `complete` refuses the result because no lease matches
276
+ * ({@link MUSTS.LEASE_HONORED} enforced against a lease that was never
277
+ * recorded), and `expireDue` expires a job someone is in the middle of.
278
+ *
279
+ * Not a second grant: it records one, and returns `null` if the job is not
280
+ * in a state that can accept it. The authority over who holds what remains
281
+ * the upstream that granted it — a store adopting a lease is bookkeeping,
282
+ * not a decision.
283
+ */
284
+ adopt(args: AdoptArgs): Promise<JobRecord | null>;
285
+ renewLeases(args: RenewArgs): Promise<RenewResult>;
286
+ /**
287
+ * Record a terminal outcome. Idempotent by job id: the first terminal
288
+ * outcome wins ({@link MUSTS.RESULT_IDEMPOTENT}).
289
+ *
290
+ * Recording `ok` MUST also unblock dependents whose remaining dependencies
291
+ * are all `ok`, setting their `claimableAt` — which is when their TTL clock
292
+ * starts ({@link MUSTS.TTL_EXPIRY}).
293
+ */
294
+ complete(args: CompleteArgs): Promise<CompleteResult>;
295
+ /**
296
+ * Return jobs to `queued`. When `reason` is `refused`, the runner MUST be
297
+ * added to each job's `refusedBy`.
298
+ */
299
+ release(args: ReleaseArgs): Promise<string[]>;
300
+ /**
301
+ * Move every claimable-but-unclaimed job past its TTL, and every job past
302
+ * its absolute deadline, to `expired`. Returns what changed.
303
+ *
304
+ * Called opportunistically by the handlers; an adapter MAY also run it on a
305
+ * schedule. It MUST be idempotent — firing twice is always safe.
306
+ */
307
+ expireDue(now: number): Promise<JobRecord[]>;
308
+ /** Cancel a job by app request. Returns the job, or null if unknown. */
309
+ cancel(jobId: string, now: number): Promise<JobRecord | null>;
310
+ /** Jobs a runner currently holds — used to build the heartbeat cancel list. */
311
+ listClaimedBy(runnerId: string): Promise<JobRecord[]>;
312
+ /** Jobs awaiting cancellation that a given runner holds. */
313
+ listCancelRequests(runnerId: string): Promise<LeaseRef[]>;
314
+ }
315
+ interface ClaimArgs {
316
+ readonly runnerId: string;
317
+ /** The runner's owner, for audience matching. */
318
+ readonly runnerOwner: string;
319
+ readonly capabilities: readonly Capability[];
320
+ readonly max: number;
321
+ readonly leaseMs: number;
322
+ readonly now: number;
323
+ }
324
+ /** What an upstream tells a store it has granted. */
325
+ interface AdoptArgs {
326
+ readonly jobId: string;
327
+ /**
328
+ * The lease, by its own id — and deliberately **not** a runner id.
329
+ *
330
+ * A relayed device is not this site's runner. It never paired here, the
331
+ * site holds no token for it and cannot revoke it, and `byollm_runners` is
332
+ * a table of machines this site has a relationship with. Fabricating a row
333
+ * to satisfy a foreign key would manufacture a record the site cannot act
334
+ * on, which is worse than not having one.
335
+ *
336
+ * What the site legitimately knows is that the job is out on a lease
337
+ * granted by an upstream, and when that lease ends. Identity of the machine
338
+ * that ran it arrives with the result, proved by a signature — which is a
339
+ * stronger claim than a row anyway.
340
+ */
341
+ readonly leaseId: string;
342
+ readonly expiresAt: number;
343
+ readonly now: number;
344
+ }
345
+ /** A lease named by its grant, not only by the job it covers. */
346
+ interface LeaseRef {
347
+ readonly jobId: string;
348
+ readonly leaseId: string;
349
+ }
350
+ interface RenewArgs {
351
+ readonly runnerId: string;
352
+ readonly leases: readonly LeaseRef[];
353
+ readonly leaseMs: number;
354
+ readonly now: number;
355
+ }
356
+ interface RenewResult {
357
+ readonly renewed: readonly {
358
+ jobId: string;
359
+ expiresAt: number;
360
+ }[];
361
+ /**
362
+ * Grants the runner claimed to hold but no longer does — V1-3.
363
+ *
364
+ * Both halves, because a job id is chosen per site: a daemon serving two
365
+ * sites that picked the same id cannot act on a bare one without guessing.
366
+ */
367
+ readonly lost: readonly LeaseRef[];
368
+ }
369
+ /**
370
+ * Which grant is being completed — the `LEASE_HONORED` guard, as a shape.
371
+ *
372
+ * A discriminated union rather than two optional fields, because the earlier
373
+ * version was safe only by data: it read "match the runner, unless a lease id
374
+ * was supplied", and a caller supplying neither would have matched
375
+ * `undefined === undefined` and written a result into a job it never held.
376
+ * Nothing did that, and nothing was going to — but the type permitted it, and
377
+ * this codebase has spent a week learning that a permitted mistake is a
378
+ * scheduled one.
379
+ *
380
+ * Two ways to name a holder because there are two planes. A direct runner
381
+ * paired with this site and is known by id. A relayed device never did, and
382
+ * is known only by the grant it holds — which is the more exact check anyway:
383
+ * `LEASE_HONORED` is a statement about a lease instance, the lesson the
384
+ * release endpoint learned when a replayed release yanked a later grant.
385
+ */
386
+ type CompleteHolder = {
387
+ readonly by: "runner";
388
+ readonly runnerId: string;
389
+ } | {
390
+ readonly by: "lease";
391
+ readonly leaseId: string;
392
+ };
393
+ interface CompleteArgs {
394
+ readonly jobId: string;
395
+ /**
396
+ * The authenticated caller — cloud_008 §3.6, and for the duplicate answer
397
+ * only.
398
+ *
399
+ * Never for authorisation: {@link CompleteHolder} decides whether this
400
+ * write may happen, and that has not changed. This decides which of two
401
+ * refusals a caller is owed once the write is refused.
402
+ *
403
+ * It exists because a *grant* is not a device. Scoping the duplicate answer
404
+ * to the lease id alone let a second daemon replay under a lease id it had
405
+ * learned and be told "already recorded" — which is both untrue and a
406
+ * terminality probe. Found by writing C010's third case.
407
+ */
408
+ readonly runnerId: string;
409
+ /** Who claims to hold this job. Both variants are checked, never trusted. */
410
+ readonly holder: CompleteHolder;
411
+ readonly outcome: JobOutcome;
412
+ readonly provenance: ResultProvenance;
413
+ readonly now: number;
414
+ }
415
+ interface CompleteResult {
416
+ /** False when this submission wrote nothing. */
417
+ readonly accepted: boolean;
418
+ /**
419
+ * True when the caller is the device that already recorded this result.
420
+ *
421
+ * cloud_008 §3.6. `RESULT_IDEMPOTENT` used to hold as a *side effect* of
422
+ * `LEASE_HONORED`: `complete` nulls the lease on success, so a replay was
423
+ * refused for not holding the job and the idempotency branch was never
424
+ * reached. Deleting that branch failed no check.
425
+ *
426
+ * byollm_009 §4's case for signing requests rather than issuing nonces
427
+ * rests on every write being idempotent per the instance it names. A MUST
428
+ * that another MUST's security argument leans on cannot be one that holds
429
+ * only because a null happened to trip first.
430
+ */
431
+ readonly duplicate?: boolean;
432
+ readonly job: JobRecord | null;
433
+ }
434
+ interface ReleaseArgs {
435
+ readonly runnerId: string;
436
+ readonly leases: readonly LeaseRef[];
437
+ readonly reason: "shutdown" | "pause" | "revoked" | "backend-down" | "refused";
438
+ readonly now: number;
439
+ }
440
+ /** Runner registry and pairing state. */
441
+ interface RunnerStore {
442
+ /** Begin a device-code pairing. */
443
+ createPairing(record: PairingRecord): Promise<void>;
444
+ getPairingByDeviceCodeHash(hash: string): Promise<PairingRecord | null>;
445
+ getPairingByUserCode(userCode: string): Promise<PairingRecord | null>;
446
+ /**
447
+ * Approve a pairing on behalf of an authenticated user, creating the
448
+ * runner. The `owner` MUST come from the approving user's own session — a
449
+ * daemon can never assert who it is ({@link MUSTS.PAIR_ONE_USER}).
450
+ */
451
+ approvePairing(args: ApproveArgs): Promise<RunnerRecord>;
452
+ denyPairing(userCode: string, now: number): Promise<void>;
453
+ /** Clear the one-shot token after the daemon collects it. */
454
+ consumePairingToken(deviceCodeHash: string): Promise<void>;
455
+ getRunner(runnerId: string): Promise<RunnerRecord | null>;
456
+ /** Record a heartbeat: capabilities, version, pause state, liveness. */
457
+ touchRunner(args: TouchArgs): Promise<RunnerRecord | null>;
458
+ /** Revoke a runner. Once revoked, never un-revoked. */
459
+ revokeRunner(runnerId: string, now: number): Promise<void>;
460
+ /** Live runners for an owner — used by the no-runner signal. */
461
+ listRunners(owner?: string): Promise<RunnerRecord[]>;
462
+ /**
463
+ * Watch one job for state changes — the push seam (byollm_009 §8.3).
464
+ *
465
+ * **Required of every adapter, from day one, even though v1 uses it only
466
+ * for result readiness.** byollm_006 located streaming's real difficulty at
467
+ * the server→app leg: polling cannot carry deltas by construction. If the
468
+ * store contract were request/response only, adding streaming later would
469
+ * force a *second* adapter-breaking reshape — so the channel exists now and
470
+ * gets one more use later, rather than the interface changing twice.
471
+ *
472
+ * The handler is called after a change lands; it is a signal, not a
473
+ * payload, so a missed or duplicated call is survivable and the caller
474
+ * re-reads. That looseness is deliberate: it is the weakest contract every
475
+ * plausible backend can honour, and a stronger one would exclude adapters
476
+ * for no gain.
477
+ *
478
+ * Returns an unsubscribe function. Calling it twice MUST be safe.
479
+ */
480
+ subscribe(jobId: string, onChange: () => void): () => void;
481
+ }
482
+ interface ApproveArgs {
483
+ readonly userCode: string;
484
+ /** From the approving user's session, never from the daemon. */
485
+ readonly owner: string;
486
+ readonly runnerId: string;
487
+ readonly now: number;
488
+ }
489
+ interface TouchArgs {
490
+ readonly runnerId: string;
491
+ readonly capabilities: readonly Capability[];
492
+ readonly daemonVersion: string;
493
+ readonly paused: boolean;
494
+ readonly now: number;
495
+ }
496
+ /** A store providing both halves. Most adapters implement one object. */
497
+ interface ByollmStore extends JobStore, RunnerStore {
498
+ }
499
+
500
+ export type { AdoptArgs as A, ByollmStore as B, ClaimArgs as C, EnqueueInput as E, JobRecord as J, PairingRecord as P, RunnerRecord as R, StoredJobInput as S, TouchArgs as T, RenewArgs as a, RenewResult as b, CompleteArgs as c, CompleteResult as d, ReleaseArgs as e, ApproveArgs as f, CompleteHolder as g, JobStore as h, RunnerStore as i };
@@ -1,6 +1,6 @@
1
1
  import { SupabaseClient } from '@supabase/supabase-js';
2
- import { B as ByollmStore } from '../store-D23N6iiP.js';
3
- import { P as PollingDeliveryDeps, R as ResultDelivery } from '../delivery-36nIe-b3.js';
2
+ import { B as ByollmStore } from '../store-Cx2_bck1.js';
3
+ import { P as PollingDeliveryDeps, R as ResultDelivery } from '../delivery-C5mz_Ykm.js';
4
4
  import '@byollm/protocol';
5
5
 
6
6
  /**