@listen-fire/engine 0.12.11 → 0.12.13

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // What an embedder's catalog reads of a live adapter: its entry points and
3
3
  // each one's descriptor, projected into the checker's instance schema. The
4
- // hosted product caches this per install (instance_cache.ts) and lf asks each
4
+ // hosted product caches this per install (instance_cache.ts) and listen-fire asks each
5
5
  // external the same two questions (crates/lf check.rs); an embedder asks
6
6
  // them of the adapter it loaded in process.
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // The inbound doors' contract suite: one set of HTTP-level cases every host's
3
- // doors must pass — the hosted express app, `lf serve` (TypeScript and Rust).
3
+ // doors must pass — the hosted express app, `listen-fire serve` (TypeScript and Rust).
4
4
  // A case arranges a small world (one provider, one subscription, an adapter
5
5
  // whose behaviour is read off the delivery itself, injected faults), sends real
6
6
  // requests, and checks the answer and what the host queued.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // The limiter slot's contract suite: one set of cases every limiter is held
3
- // to — the built-in in this process (MemoryLimiter), lf's Rust one over the
4
- // limiter wire (`lf --contract-limiter`), and a limiter module lf drives as
5
- // a process (`lf --contract-limiter-slot`), all in apps/cli's tests. A
3
+ // to — the built-in in this process (MemoryLimiter), listen-fire's Rust one over the
4
+ // limiter wire (`listen-fire --contract-limiter`), and a limiter module listen-fire drives as
5
+ // a process (`listen-fire --contract-limiter-slot`), all in apps/cli's tests. A
6
6
  // limiter shared by many hosts passes these cases to fill the slot.
7
7
  //
8
8
  // Runner-agnostic, as the run host's suite is: each case is a name and an
@@ -10,7 +10,7 @@
10
10
  // again), so a limiter shared by many hosts is just another module filling
11
11
  // the slot. Every request carries the limits it is under, so no limiter reads
12
12
  // a manifest. The built-in, `@lf/memory-limiter`, keeps them in this process
13
- // (`MemoryLimiter`); lf's Rust one is the same (crates/lf/src/limiter.rs).
13
+ // (`MemoryLimiter`); listen-fire's Rust one is the same (crates/lf/src/limiter.rs).
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.MemoryLimiter = exports.HOLD_MS = exports.vendorWaitMs = exports.vendorBudget = void 0;
16
16
  exports.throttleKey = throttleKey;
@@ -2,7 +2,7 @@
2
2
  // A limiter a limiter module serves: the limiter slot's methods
3
3
  // (docs/contracts/limiter-slot.md) carried as adapter protocol 2 calls over
4
4
  // HTTP (a Unix socket on this box). How the contract suite (contract.ts)
5
- // holds lf's limiter (`lf --contract-limiter`), and a limiter module lf
5
+ // holds listen-fire's limiter (`listen-fire --contract-limiter`), and a limiter module listen-fire
6
6
  // drives, to the meaning every limiter has.
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.RpcLimiter = void 0;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // The loop guard slot's contract suite: one set of cases every guard is held
3
- // to — the built-in in this process (FingerprintGuard), lf's Rust one over
4
- // the guard wire (`lf --contract-guard`, a file and a Postgres database), and
5
- // a guard module lf drives as a process (`lf --contract-guard-slot`), all in
3
+ // to — the built-in in this process (FingerprintGuard), listen-fire's Rust one over
4
+ // the guard wire (`listen-fire --contract-guard`, a file and a Postgres database), and
5
+ // a guard module listen-fire drives as a process (`listen-fire --contract-guard-slot`), all in
6
6
  // apps/cli's tests. How long a guard remembers is its own business, so no
7
7
  // case waits on it.
8
8
  //
@@ -11,7 +11,7 @@
11
11
  // of that listen's own write (`isEcho`). Everything else is the guard's: how
12
12
  // long it remembers, what "unchanged" means, where its memory lives. The
13
13
  // contract is docs/contracts/loop-guard-slot.md; the built-in,
14
- // `@lf/fingerprint-guard`, is `FingerprintGuard` here and in lf
14
+ // `@lf/fingerprint-guard`, is `FingerprintGuard` here and in listen-fire
15
15
  // (crates/lf/src/loop_guard.rs).
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.FingerprintGuard = exports.REMEMBERED_MS = void 0;
@@ -2,8 +2,8 @@
2
2
  // A loop guard a loop guard module serves: the slot's methods
3
3
  // (docs/contracts/loop-guard-slot.md) carried as adapter protocol 2 calls
4
4
  // over HTTP (a Unix socket on this box). How the contract suite
5
- // (contract.ts) holds lf's guard (`lf --contract-guard`), and a guard module
6
- // lf drives, to the meaning every guard has.
5
+ // (contract.ts) holds listen-fire's guard (`listen-fire --contract-guard`), and a guard module
6
+ // listen-fire drives, to the meaning every guard has.
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.RpcLoopGuard = void 0;
9
9
  const zod_1 = require("zod");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // What one segment may consume, as a deployment sets it
3
- // (docs/contracts/run-limits.md). The same settings lf reads: the engine's
3
+ // (docs/contracts/run-limits.md). The same settings listen-fire reads: the engine's
4
4
  // limits ride the segment's input; the wall clock is this host's, kept by the
5
5
  // shim that drives the segment (rust_engine.ts `driveEngine`).
6
6
  //
@@ -3,8 +3,8 @@
3
3
  // (store.ts): how a callback is minted for the engine, how a call is
4
4
  // validated and recorded, how its body runs (once, under the run's lease),
5
5
  // and how an `await cb-[:Called]->` learns that a call landed. The hosted
6
- // product's Postgres backend and `lf`'s SQLite one serve the family; a door
7
- // (`/api/cb/<id>`, `lf call`) and the work drain call these rules.
6
+ // product's Postgres backend and `listen-fire`'s SQLite one serve the family; a door
7
+ // (`/api/cb/<id>`, `listen-fire call`) and the work drain call these rules.
8
8
  //
9
9
  // A call's life: the door records it (validated first, so a bad payload never
10
10
  // consumes a single-use callback), which queues its body as work in the same
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  // The run host's contract suite: one set of cases, written against the backend
3
3
  // families (store.ts) and the core's rules over them, run against every
4
- // backend (the hosted Postgres one in lf-platform's apps/api integration set, `lf`'s
4
+ // backend (the hosted Postgres one in lf-platform's apps/api integration set, `listen-fire`'s
5
5
  // SQLite one in apps/cli's tests). Ported from the hosted integration tests
6
6
  // (work store, join_pending, park sink, run lease, await correlation, the
7
- // resume drivers) and lf's state tests, keeping the cases about what the
7
+ // resume drivers) and listen-fire's state tests, keeping the cases about what the
8
8
  // state MEANS rather than how one database stores it.
9
9
  //
10
10
  // Runner-agnostic: each case is a name and an async body that throws on
@@ -974,7 +974,7 @@ function newDelivery(extra = {}) {
974
974
  ...extra,
975
975
  };
976
976
  }
977
- /** One of the delivery's events queued for the drain, as lf's doors queue it. */
977
+ /** One of the delivery's events queued for the drain, as listen-fire's doors queue it. */
978
978
  function fireRow(deliveryId, n) {
979
979
  return { kind: 'fire_event', key: uniqueKey('fire_event'), payload: { external: 'crm', event: { n }, deliveryId }, dueAt: PAST(1), teamId: null };
980
980
  }
@@ -4,7 +4,7 @@
4
4
  // carried as adapter protocol 2 calls over HTTP (a Unix socket on this box).
5
5
  // It is how the contract suite (contract.ts), written once in TypeScript,
6
6
  // holds a backend in another language to the same meaning —
7
- // `lf --contract-store <state.db>` (crates/lf) first.
7
+ // `listen-fire --contract-store <state.db>` (crates/lf) first.
8
8
  //
9
9
  // A method is `<family>.<method>` as `RunHostStore` names it, its params the
10
10
  // method's one input object, its result the method's answer; the callback
@@ -49,7 +49,7 @@ const Claim = zod_1.z.discriminatedUnion('kind', [
49
49
  ]);
50
50
  // ── Delivery receipts (`inbound.*`) ─────────────────────────────────────────
51
51
  // What a door keeps of one delivery: the events it produced, in the door's one
52
- // write. Only lf's doors call these, so they live on this client rather than
52
+ // write. Only listen-fire's doors call these, so they live on this client rather than
53
53
  // on `RunHostStore`.
54
54
  exports.DELIVERY_SOURCES = ['webhook', 'hook', 'emit', 'cli'];
55
55
  const Delivery = zod_1.z.object({
@@ -2,7 +2,7 @@
2
2
  // The run host's rules, written once over the backend families (store.ts):
3
3
  // what a park writes and in which order, when a run counts as complete, how a
4
4
  // run that failed or was cancelled is torn down, and how a race's losing
5
- // subtrees are withdrawn. The hosted product and `lf` both run these; neither
5
+ // subtrees are withdrawn. The hosted product and `listen-fire` both run these; neither
6
6
  // keeps a copy.
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CANCELLED_BY_OPERATOR = void 0;
@@ -2,7 +2,7 @@
2
2
  // The run host's backend: the durable state a run leaves between its segments
3
3
  // (parked leaves, the joins they hold, await correlations, the run lease, the
4
4
  // work queue), as the families every backend serves. The hosted product serves
5
- // them from Postgres and `lf` from SQLite; the rules that read and write them
5
+ // them from Postgres and `listen-fire` from SQLite; the rules that read and write them
6
6
  // (when a run is complete, how a wake finds its parks, how a race settles,
7
7
  // how a cancel or a failure tears a run down) are the core's (rules.ts,
8
8
  // drain.ts), written once over these families.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // The secrets family's contract suite: one set of cases every store passes
3
- // (the in-memory vault, the platform's encrypted credentials table, lf's
3
+ // (the in-memory vault, the platform's encrypted credentials table, listen-fire's
4
4
  // plain and SOPS files and the environment). Each case drives the store only
5
5
  // through `createSecretsFamily`, as every shell does.
6
6
  //
@@ -6,7 +6,7 @@
6
6
  // the host redeems it by `objectUri` (`redeemFileRef`).
7
7
  //
8
8
  // The store is a host family: every shell has a backend. The hosted product's
9
- // is object storage behind its API's blob route; `lf`'s is the project's
9
+ // is object storage behind its API's blob route; `listen-fire`'s is the project's
10
10
  // `.lf/files/` folder.
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DOCUMENT_STORE_OWNER = void 0;
@@ -37,7 +37,7 @@ export interface CatalogAdapterInput {
37
37
  /**
38
38
  * The construction signature when it is not the manifest's own. A remote
39
39
  * install the hosted product holds the credential for constructs
40
- * credential-free; the same external run by `lf` takes the credential its
40
+ * credential-free; the same external run by `listen-fire` takes the credential its
41
41
  * secrets name — a fact about the shell holding the secret, not the adapter.
42
42
  */
43
43
  constructionArgs?: ConstructionArg[];
@@ -3,7 +3,7 @@
3
3
  // manifest (and whatever instance schemas it introspected), the credentials,
4
4
  // the plugins, the movement files and the models. Pure — no database, no
5
5
  // registry, no network — so the hosted product (which gathers these from its
6
- // tables and live introspection) and `lf` (which gathers them from a project
6
+ // tables and live introspection) and `listen-fire` (which gathers them from a project
7
7
  // folder and its externals) hand the checker and the engine the same catalog.
8
8
  //
9
9
  // It lives here rather than in movement-lang because its input is the
@@ -32,7 +32,7 @@ export declare function eventMatchesTriggerScope(event: DiscriminableEvent, conf
32
32
  /**
33
33
  * Whether a delivery for `delivered` reaches a listen whose construction names
34
34
  * `listened` (the credential each names, by its imported name): the
35
- * platform's per-trigger credential narrowing, which lf keeps too
35
+ * platform's per-trigger credential narrowing, which listen-fire keeps too
36
36
  * (crates/lf/src/routing.rs, `Listen::hears`). A listen that names a
37
37
  * credential hears only that credential's deliveries; a listen that names
38
38
  * none hears every delivery, and a delivery that names none (addressed to the
@@ -81,7 +81,7 @@ function eventMatchesTriggerScope(event, config) {
81
81
  /**
82
82
  * Whether a delivery for `delivered` reaches a listen whose construction names
83
83
  * `listened` (the credential each names, by its imported name): the
84
- * platform's per-trigger credential narrowing, which lf keeps too
84
+ * platform's per-trigger credential narrowing, which listen-fire keeps too
85
85
  * (crates/lf/src/routing.rs, `Listen::hears`). A listen that names a
86
86
  * credential hears only that credential's deliveries; a listen that names
87
87
  * none hears every delivery, and a delivery that names none (addressed to the
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@listen-fire/engine",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.11",
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",
4
+ "version": "0.12.13",
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 `listen-fire` 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"
8
8
  },
@@ -17,9 +17,9 @@
17
17
  "dependencies": {
18
18
  "safe-stable-stringify": "2.5.0",
19
19
  "zod": "4.1.12",
20
- "@listen-fire/engine-contracts": "^0.12.11",
21
20
  "@listen-fire/module-runtime": "^0.12.8",
22
- "@listen-fire/movement-lang": "^0.12.11"
21
+ "@listen-fire/movement-lang": "^0.12.13",
22
+ "@listen-fire/engine-contracts": "^0.12.13"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "29.5.14",