@listen-fire/engine 0.12.3 → 0.12.4

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.
@@ -16,7 +16,7 @@ export interface InboundSubscription {
16
16
  /** Existed before signed inbound became the rule for its provider: while it
17
17
  * holds no usable secret it is verified as its provider's door always did. */
18
18
  grandfatheredUnsigned: boolean;
19
- checkpoint: unknown;
19
+ checkpoint?: unknown;
20
20
  }
21
21
  /** How a subscription's deliveries are checked and read. */
22
22
  export interface InboundSource {
@@ -80,7 +80,7 @@ export interface ParkSink {
80
80
  frameAddress: string;
81
81
  branchAddress: string;
82
82
  branchIndex: number;
83
- exports: unknown;
83
+ exports?: unknown;
84
84
  }): Promise<void>;
85
85
  /** Collect all branches' persisted exports for a frame, ordered by branchIndex (§12.4). */
86
86
  collectBranchExports(input: {
@@ -88,7 +88,7 @@ export interface ParkSink {
88
88
  }): Promise<Array<{
89
89
  branchAddress: string;
90
90
  branchIndex: number;
91
- exports: unknown;
91
+ exports?: unknown;
92
92
  }>>;
93
93
  /**
94
94
  * Cancel every park under the given subtree prefixes (asks-as-adapter chunk C
@@ -62,7 +62,7 @@ export interface DeliveryContractBackend {
62
62
  checkpoint(input: {
63
63
  subscriptionId: string;
64
64
  }): Promise<{
65
- checkpoint: unknown;
65
+ checkpoint?: unknown;
66
66
  } | null>;
67
67
  startRun(input: {
68
68
  id: string;
@@ -106,7 +106,7 @@ export declare class RpcStoreBackend {
106
106
  checkpoint(input: {
107
107
  subscriptionId: string;
108
108
  }): Promise<{
109
- checkpoint: unknown;
109
+ checkpoint?: unknown;
110
110
  } | null>;
111
111
  /** An operator asks to cancel the run (the records contract's `requestCancel`). */
112
112
  requestCancel(input: {
@@ -26,16 +26,16 @@ const Leaf = zod_1.z.object({
26
26
  status: zod_1.z.enum(['parked', 'resuming']),
27
27
  wakeAt: zod_1.z.string().nullable(),
28
28
  });
29
- const Claimed = zod_1.z.object({ reason: zod_1.z.string(), state: zod_1.z.unknown() }).nullable();
29
+ const Claimed = zod_1.z.object({ reason: zod_1.z.string(), state: zod_1.z.unknown().optional() }).nullable();
30
30
  const Correlated = zod_1.z.object({ runId: zod_1.z.string(), teamId: zod_1.z.string(), address: zod_1.z.string() });
31
- const Work = zod_1.z.object({ id: zod_1.z.string(), kind: zod_1.z.string(), key: zod_1.z.string(), payload: zod_1.z.unknown(), claim: zod_1.z.string() });
31
+ const Work = zod_1.z.object({ id: zod_1.z.string(), kind: zod_1.z.string(), key: zod_1.z.string(), payload: zod_1.z.unknown().optional(), claim: zod_1.z.string() });
32
32
  const Callback = zod_1.z.object({
33
33
  id: zod_1.z.string(),
34
34
  teamId: zod_1.z.string(),
35
35
  runId: zod_1.z.string(),
36
36
  address: zod_1.z.string(),
37
37
  params: zod_1.z.array(zod_1.z.object({ name: zod_1.z.string(), type: zod_1.z.enum(engine_contracts_1.CALLBACK_PARAM_TYPES) })),
38
- state: zod_1.z.unknown(),
38
+ state: zod_1.z.unknown().optional(),
39
39
  calls: zod_1.z.array(zod_1.z.object({ at: zod_1.z.string(), values: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), bodyStartedAt: zod_1.z.string().optional() })),
40
40
  singleUse: zod_1.z.boolean(),
41
41
  expiresAt: zod_1.z.string().nullable(),
@@ -145,7 +145,7 @@ class RpcStoreBackend {
145
145
  }
146
146
  /** A subscription's saved pull cursor (`inbound.checkpoint`). */
147
147
  checkpoint(input) {
148
- return this.call('inbound.checkpoint', input, zod_1.z.object({ checkpoint: zod_1.z.unknown() }).nullable());
148
+ return this.call('inbound.checkpoint', input, zod_1.z.object({ checkpoint: zod_1.z.unknown().optional() }).nullable());
149
149
  }
150
150
  /** An operator asks to cancel the run (the records contract's `requestCancel`). */
151
151
  async requestCancel(input) {
@@ -213,7 +213,7 @@ class RpcStoreBackend {
213
213
  persistBranchExport: async (input) => {
214
214
  await call('joins.persistBranchExport', input, Nothing);
215
215
  },
216
- collectBranchExports: (input) => call('joins.collectBranchExports', input, zod_1.z.array(zod_1.z.object({ branchAddress: zod_1.z.string(), branchIndex: zod_1.z.number(), exports: zod_1.z.unknown() }))),
216
+ collectBranchExports: (input) => call('joins.collectBranchExports', input, zod_1.z.array(zod_1.z.object({ branchAddress: zod_1.z.string(), branchIndex: zod_1.z.number(), exports: zod_1.z.unknown().optional() }))),
217
217
  hasPendingJoins: (input) => call('joins.hasPendingJoins', input, zod_1.z.boolean()),
218
218
  frames: (input) => call('joins.frames', input, zod_1.z.array(zod_1.z.string())),
219
219
  deleteFrames: async (input) => {
@@ -23,7 +23,7 @@ export interface ParkStore {
23
23
  address: string;
24
24
  reason: CoreParkReason;
25
25
  wakeAt: string | null;
26
- state: unknown;
26
+ state?: unknown;
27
27
  rewritten?: boolean;
28
28
  fence?: string;
29
29
  }): Promise<void>;
@@ -34,7 +34,7 @@ export interface ParkStore {
34
34
  address: string;
35
35
  reason?: ParkReason;
36
36
  }): Promise<{
37
- state: unknown;
37
+ state?: unknown;
38
38
  reason: ParkReason;
39
39
  } | null>;
40
40
  /** The claimed leaf is done with: delete it unless its step parked it again
@@ -93,7 +93,7 @@ export interface JoinStore {
93
93
  }): Promise<Array<{
94
94
  branchAddress: string;
95
95
  branchIndex: number;
96
- exports: unknown;
96
+ exports?: unknown;
97
97
  }>>;
98
98
  /** Whether any join of the run still waits on a branch (a closed frame does not). */
99
99
  hasPendingJoins(input: {
@@ -200,7 +200,7 @@ export interface ClaimedWork {
200
200
  id: string;
201
201
  kind: string;
202
202
  key: string;
203
- payload: unknown;
203
+ payload?: unknown;
204
204
  claim: string;
205
205
  }
206
206
  export interface WorkQueue {
@@ -283,7 +283,7 @@ export interface CallbackRecord {
283
283
  * call's body resumes. */
284
284
  address: string;
285
285
  params: CallbackParamSpec[];
286
- state: unknown;
286
+ state?: unknown;
287
287
  calls: LedgerCall[];
288
288
  singleUse: boolean;
289
289
  /** When it stops taking calls (ISO 8601); null for never. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@listen-fire/engine",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.3",
4
+ "version": "0.12.4",
5
5
  "description": "The movement engine for this release's language and its host contract: the Rust engine's shim, the EngineHost families, the run host, the embed kit, and the adapter and model types they reach. Every shell (the hosted product, the `lf` command line, an embedder) runs the same engine. A run pinned to a release this one does not read is refused by name. Embedders reach it only through public/* (the exports map); the internals resolve only under the `movement-engine-internals` condition, which only test runners set",
6
6
  "engines": {
7
7
  "node": ">=22.23.4 <23"
@@ -17,9 +17,9 @@
17
17
  "dependencies": {
18
18
  "safe-stable-stringify": "2.5.0",
19
19
  "zod": "4.1.12",
20
- "@listen-fire/module-runtime": "^0.12.3",
21
- "@listen-fire/engine-contracts": "^0.12.3",
22
- "@listen-fire/movement-lang": "^0.12.3"
20
+ "@listen-fire/module-runtime": "^0.12.4",
21
+ "@listen-fire/engine-contracts": "^0.12.4",
22
+ "@listen-fire/movement-lang": "^0.12.4"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "29.5.14",