@listen-fire/engine-contracts 0.12.12 → 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.
@@ -64,7 +64,7 @@ export interface ProtocolSpeaker {
64
64
  };
65
65
  }
66
66
  /** Whether a host speaking 2.0 to 2.`PROTOCOL_MINOR` reads a module whose
67
- * manifest is `raw`, and if not, why in words naming both sides. lf's twin
67
+ * manifest is `raw`, and if not, why in words naming both sides. listen-fire's twin
68
68
  * is `protocol::protocol_standing` (crates/lf), in the same words. */
69
69
  export declare function protocolStanding(raw: unknown, speaker: ProtocolSpeaker): {
70
70
  ok: true;
@@ -1621,10 +1621,10 @@ export type WireModuleKindShape = z.infer<typeof WireModuleKind>;
1621
1621
  * and `wake`, which stays empty unless named (nobody is told work is due;
1622
1622
  * a scheduled worker finds it), and `ocr`, which stays empty unless named
1623
1623
  * (a scanned file is refused, saying the slot is empty). `secrets` is
1624
- * where credentials are kept (`lf`'s default: its secrets file); a secrets
1624
+ * where credentials are kept (`listen-fire`'s default: its secrets file); a secrets
1625
1625
  * module's own settings come from the environment or that file, never
1626
1626
  * from itself. `movements` answers the project's movement files by name
1627
- * (`lf`'s default: the movements folder); its module's own settings come
1627
+ * (`listen-fire`'s default: the movements folder); its module's own settings come
1628
1628
  * from the same two places. */
1629
1629
  export declare const CORE_SLOTS: readonly ["models", "judge", "store", "files", "limiter", "loopGuard", "browser", "wake", "ocr", "secrets", "movements"];
1630
1630
  export declare const WireCoreSlot: z.ZodEnum<{
@@ -1642,7 +1642,7 @@ export declare const WireCoreSlot: z.ZodEnum<{
1642
1642
  }>;
1643
1643
  export type WireCoreSlotShape = z.infer<typeof WireCoreSlot>;
1644
1644
  /** One construction argument the install supplies (an Airtable `base`, a
1645
- * Sheets `spreadsheet`): asked for when the module is set up (`lf connect`,
1645
+ * Sheets `spreadsheet`): asked for when the module is set up (`listen-fire connect`,
1646
1646
  * the platform's install screen) and sent on every request (`settings`). */
1647
1647
  export declare const WireModuleSetting: z.ZodObject<{
1648
1648
  name: z.ZodString;
package/dist/protocol.js CHANGED
@@ -78,7 +78,7 @@ exports.WireManifestProtocolVersion = zod_1.z.literal(exports.MANIFEST_PROTOCOL_
78
78
  /** A manifest's `protocolMinor`: absent is unstated, read as 2.0. */
79
79
  exports.WireManifestProtocolMinor = zod_1.z.number().int().min(0).optional();
80
80
  /** Whether a host speaking 2.0 to 2.`PROTOCOL_MINOR` reads a module whose
81
- * manifest is `raw`, and if not, why in words naming both sides. lf's twin
81
+ * manifest is `raw`, and if not, why in words naming both sides. listen-fire's twin
82
82
  * is `protocol::protocol_standing` (crates/lf), in the same words. */
83
83
  function protocolStanding(raw, speaker) {
84
84
  const field = (key) => (raw !== null && typeof raw === 'object' ? Reflect.get(raw, key) : undefined);
@@ -721,7 +721,7 @@ exports.WireInboundIntercept = zod_1.z.enum(exports.INBOUND_INTERCEPTS);
721
721
  const HEADER_NAME = /^[a-z0-9-]+$/;
722
722
  const WireProviderKey = zod_1.z.string().regex(/^[a-z][a-z0-9_-]*$/, 'providerKey must be ASCII lower case');
723
723
  /** Who sets the secret deliveries are signed with. `installer` (the
724
- * default): whoever installs the module sets it (`lf connect` generates or
724
+ * default): whoever installs the module sets it (`listen-fire connect` generates or
725
725
  * asks for it). `provider`: the provider issues it when the webhook is
726
726
  * registered (`ensureEventSubscription` returns it), so nobody is asked,
727
727
  * and a registration that returns none is refused. */
@@ -823,15 +823,15 @@ exports.WireModuleKind = zod_1.z.enum(exports.MODULE_KINDS);
823
823
  * and `wake`, which stays empty unless named (nobody is told work is due;
824
824
  * a scheduled worker finds it), and `ocr`, which stays empty unless named
825
825
  * (a scanned file is refused, saying the slot is empty). `secrets` is
826
- * where credentials are kept (`lf`'s default: its secrets file); a secrets
826
+ * where credentials are kept (`listen-fire`'s default: its secrets file); a secrets
827
827
  * module's own settings come from the environment or that file, never
828
828
  * from itself. `movements` answers the project's movement files by name
829
- * (`lf`'s default: the movements folder); its module's own settings come
829
+ * (`listen-fire`'s default: the movements folder); its module's own settings come
830
830
  * from the same two places. */
831
831
  exports.CORE_SLOTS = ['models', 'judge', 'store', 'files', 'limiter', 'loopGuard', 'browser', 'wake', 'ocr', 'secrets', 'movements'];
832
832
  exports.WireCoreSlot = zod_1.z.enum(exports.CORE_SLOTS);
833
833
  /** One construction argument the install supplies (an Airtable `base`, a
834
- * Sheets `spreadsheet`): asked for when the module is set up (`lf connect`,
834
+ * Sheets `spreadsheet`): asked for when the module is set up (`listen-fire connect`,
835
835
  * the platform's install screen) and sent on every request (`settings`). */
836
836
  exports.WireModuleSetting = zod_1.z.object({
837
837
  name: declaredName('a setting name'),
@@ -1329,7 +1329,7 @@ exports.METHODS = {
1329
1329
  // One solicited pull of a polled source: `config` is the listen's options,
1330
1330
  // `checkpoint` whatever the previous poll returned (absent the first time),
1331
1331
  // `movementId` the automation the listen belongs to where the host knows it
1332
- // (`lf` sends the listen's pipeline, `listen:<file>:<movement>`).
1332
+ // (`listen-fire` sends the listen's pipeline, `listen:<file>:<movement>`).
1333
1333
  poll: {
1334
1334
  params: zod_1.z.object({ config: zod_1.z.unknown(), checkpoint: zod_1.z.unknown().optional(), movementId: zod_1.z.string().optional() }),
1335
1335
  result: zod_1.z.object({
@@ -4,7 +4,7 @@ export declare const MOVEMENTS_METHODS: readonly ["movements.list", "movements.r
4
4
  * no segment empty, `.` or `..`, and no `\` (`orders/sync.mvt`). */
5
5
  export declare const MovementPath: z.ZodString;
6
6
  export declare function isMovementPath(path: string): boolean;
7
- /** One file `movements.list` names; without a version, `lf` reads it on every scan. */
7
+ /** One file `movements.list` names; without a version, `listen-fire` reads it on every scan. */
8
8
  export declare const MovementsListed: z.ZodObject<{
9
9
  path: z.ZodString;
10
10
  version: z.ZodOptional<z.ZodString>;
@@ -21,7 +21,7 @@ function isMovementPath(path) {
21
21
  }
22
22
  /** Opaque; it changes whenever the text changes. */
23
23
  const Version = zod_1.z.string().min(1);
24
- /** One file `movements.list` names; without a version, `lf` reads it on every scan. */
24
+ /** One file `movements.list` names; without a version, `listen-fire` reads it on every scan. */
25
25
  exports.MovementsListed = zod_1.z.object({ path: exports.MovementPath, version: Version.optional() });
26
26
  exports.MovementsListAnswer = zod_1.z.array(exports.MovementsListed);
27
27
  /** What `movements.read` answers (or null: nothing is at the path). */
@@ -34,7 +34,7 @@ exports.MovementsWriteAnswer = zod_1.z.discriminatedUnion('kind', [
34
34
  zod_1.z.object({ kind: zod_1.z.literal('written'), version: Version }),
35
35
  /** `current`: the version there now, or null when there is none. */
36
36
  zod_1.z.object({ kind: zod_1.z.literal('conflict'), current: Version.nullable() }),
37
- /** The module keeps the project's movements where `lf` cannot change them. */
37
+ /** The module keeps the project's movements where `listen-fire` cannot change them. */
38
38
  zod_1.z.object({ kind: zod_1.z.literal('read_only'), reason: zod_1.z.string().min(1) }),
39
39
  ]);
40
40
  /** One change `movements.watch` reports. `version` is the one `read` answers; a module that can change its files gives it on `added` and `changed`. */
@@ -46,7 +46,7 @@ export declare const SecretsLockAnswer: z.ZodNullable<z.ZodObject<{
46
46
  token: z.ZodString;
47
47
  }, z.core.$strip>>;
48
48
  /** What `secrets.assertWritable`, `create`, `replace` and `delete` answer
49
- * besides null: the module keeps its credentials where lf cannot change them. */
49
+ * besides null: the module keeps its credentials where listen-fire cannot change them. */
50
50
  export declare const SecretsReadOnlyAnswer: z.ZodObject<{
51
51
  kind: z.ZodLiteral<"read_only">;
52
52
  reason: z.ZodString;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- // The secrets slot's methods (docs/contracts/secrets-slot.md): where lf's
2
+ // The secrets slot's methods (docs/contracts/secrets-slot.md): where listen-fire's
3
3
  // credentials are kept. A module resolves and lists what it holds, takes a
4
4
  // write-back by version, holds a credential under a lease while a refresh
5
- // spends its token, and changes whole entries for `lf connect` and
6
- // `lf credential`. Token refresh stays in lf; a module only stores.
5
+ // spends its token, and changes whole entries for `listen-fire connect` and
6
+ // `listen-fire credential`. Token refresh stays in listen-fire; a module only stores.
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.SecretsEntryRequest = exports.SecretsEntryAnswer = exports.SecretsReadOnlyAnswer = exports.SecretsLockAnswer = exports.SecretsListed = exports.SecretsBinding = exports.SecretsWriteBackAnswer = exports.SecretsRecord = exports.SECRETS_METHODS = void 0;
9
9
  const zod_1 = require("zod");
@@ -34,7 +34,7 @@ exports.SecretsListed = zod_1.z.object({ ref: zod_1.z.string().min(1), external:
34
34
  /** `secrets.lock` answers a token, or null when another holds the lease. */
35
35
  exports.SecretsLockAnswer = zod_1.z.object({ token: zod_1.z.string().min(1) }).nullable();
36
36
  /** What `secrets.assertWritable`, `create`, `replace` and `delete` answer
37
- * besides null: the module keeps its credentials where lf cannot change them. */
37
+ * besides null: the module keeps its credentials where listen-fire cannot change them. */
38
38
  exports.SecretsReadOnlyAnswer = zod_1.z.object({ kind: zod_1.z.literal('read_only'), reason: zod_1.z.string().min(1) });
39
39
  exports.SecretsEntryAnswer = exports.SecretsReadOnlyAnswer.nullable();
40
40
  exports.SecretsEntryRequest = zod_1.z.object({ ref: zod_1.z.string().min(1), external: zod_1.z.string().min(1), binding: exports.SecretsBinding, fields: Fields });
@@ -48,7 +48,7 @@ export declare const WireSlotManifest: z.ZodObject<{
48
48
  export type WireSlotManifestShape = z.infer<typeof WireSlotManifest>;
49
49
  /** The error code a store answers when a fenced write finds the run's lease gone. */
50
50
  export declare const RUN_LEASE_LOST_CODE = "run_lease_lost";
51
- /** The most a module must hold a `<slot>.watch` request: lf asks for at most
51
+ /** The most a module must hold a `<slot>.watch` request: listen-fire asks for at most
52
52
  * this, and a module honours at most this whatever `waitMs` says. */
53
53
  export declare const WATCH_WAIT_CAP_MS = 30000;
54
54
  /**
@@ -46,7 +46,7 @@ exports.WireSlotManifest = zod_1.z.object({
46
46
  });
47
47
  /** The error code a store answers when a fenced write finds the run's lease gone. */
48
48
  exports.RUN_LEASE_LOST_CODE = 'run_lease_lost';
49
- /** The most a module must hold a `<slot>.watch` request: lf asks for at most
49
+ /** The most a module must hold a `<slot>.watch` request: listen-fire asks for at most
50
50
  * this, and a module honours at most this whatever `waitMs` says. */
51
51
  exports.WATCH_WAIT_CAP_MS = 30_000;
52
52
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@listen-fire/engine-contracts",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.12",
4
+ "version": "0.12.13",
5
5
  "description": "The contracts the movement engine speaks: the tenant id, the host families and entry-point inputs, the parked state, file descriptors, the adapter protocol, the adapter contract and its manifest, the catalog's schema types and positions, the Expression vocabulary, plugins as data and the model names. Runtime-neutral: no Node import, no ambient types.",
6
6
  "engines": {
7
7
  "node": ">=22.23.4 <23"
@@ -30,7 +30,7 @@
30
30
  "type": "commonjs",
31
31
  "dependencies": {
32
32
  "zod": "4.1.12",
33
- "@listen-fire/movement-lang": "^0.12.12"
33
+ "@listen-fire/movement-lang": "^0.12.13"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "20.16.5",