@listen-fire/engine-contracts 0.15.0 → 0.15.2

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.
@@ -12,7 +12,7 @@ export declare const ADAPTER_TEAM_HEADER = "x-listen-fire-team";
12
12
  export declare const MANIFEST_PROTOCOL_VERSION = 2;
13
13
  /** The highest minor of version 2 this release speaks: a host reads 2.0 to
14
14
  * 2.`PROTOCOL_MINOR` (docs/contracts/adapter-protocol.md "Minors of version 2"). */
15
- export declare const PROTOCOL_MINOR = 7;
15
+ export declare const PROTOCOL_MINOR = 8;
16
16
  /** The method that names a minor's feature, by name or by its ending
17
17
  * (`<slot>.watch`). Data, so the Rust twin (module-wire
18
18
  * `envelope::PROTOCOL_MINORS`) is test-held equal to it. */
@@ -25,7 +25,8 @@ export type ProtocolMinorUse = {
25
25
  * speaking the minor may call it; a module offering it needs nothing of an
26
26
  * older host, which never calls it, so offering one never raises the minor
27
27
  * a module states. A minor that names no method has no row: 2.0, 2.3
28
- * (labelled poll events) and 2.7 (`pollAgainAt`), each a host behaviour. */
28
+ * (labelled poll events), 2.7 (`pollAgainAt`) and 2.8 (`hostRelease` on a
29
+ * slot request), each a host behaviour. */
29
30
  export declare const PROTOCOL_MINORS: readonly {
30
31
  minor: number;
31
32
  feature: string;
package/dist/protocol.js CHANGED
@@ -42,12 +42,13 @@ exports.ADAPTER_TEAM_HEADER = 'x-listen-fire-team';
42
42
  exports.MANIFEST_PROTOCOL_VERSION = 2;
43
43
  /** The highest minor of version 2 this release speaks: a host reads 2.0 to
44
44
  * 2.`PROTOCOL_MINOR` (docs/contracts/adapter-protocol.md "Minors of version 2"). */
45
- exports.PROTOCOL_MINOR = 7;
45
+ exports.PROTOCOL_MINOR = 8;
46
46
  /** Each minor of version 2 whose hosts speak a method, and that method. A host
47
47
  * speaking the minor may call it; a module offering it needs nothing of an
48
48
  * older host, which never calls it, so offering one never raises the minor
49
49
  * a module states. A minor that names no method has no row: 2.0, 2.3
50
- * (labelled poll events) and 2.7 (`pollAgainAt`), each a host behaviour. */
50
+ * (labelled poll events), 2.7 (`pollAgainAt`) and 2.8 (`hostRelease` on a
51
+ * slot request), each a host behaviour. */
51
52
  exports.PROTOCOL_MINORS = [
52
53
  { minor: 1, feature: 'a <slot>.watch method', uses: { methodEndingWith: '.watch' } },
53
54
  { minor: 2, feature: 'work.enqueueIfAbsent', uses: { method: 'work.enqueueIfAbsent' } },
@@ -5,6 +5,7 @@ export declare const SlotRequestEnvelope: z.ZodObject<{
5
5
  cacheScopeId: z.ZodOptional<z.ZodString>;
6
6
  params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
7
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ hostRelease: z.ZodOptional<z.ZodString>;
8
9
  }, z.core.$strip>;
9
10
  export declare const SlotError: z.ZodObject<{
10
11
  code: z.ZodString;
@@ -23,6 +23,11 @@ exports.SlotRequestEnvelope = zod_1.z.object({
23
23
  cacheScopeId: zod_1.z.string().optional(),
24
24
  params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
25
25
  settings: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
26
+ /** Adapter protocol 2.8: the release of the runner that sent the request
27
+ * (`"0.15.2"`), so a module serving runners of several releases answers
28
+ * each by its line. A request without it did not state its sender's
29
+ * release: a runner before 0.15.2, or a host or module that does not set it. */
30
+ hostRelease: zod_1.z.string().optional(),
26
31
  });
27
32
  exports.SlotError = zod_1.z.object({
28
33
  code: zod_1.z.string(),
@@ -47,7 +47,7 @@ export declare const CONTRACTS: {
47
47
  readonly current: 2;
48
48
  readonly supported: readonly [2];
49
49
  readonly deprecated: readonly [];
50
- readonly minor: 7;
50
+ readonly minor: 8;
51
51
  };
52
52
  readonly 'system-caller': {
53
53
  readonly current: 1;
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.15.0",
4
+ "version": "0.15.2",
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.15.0"
33
+ "@listen-fire/movement-lang": "^0.15.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "20.16.5",