@listen-fire/engine 0.12.5 → 0.12.6

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.
@@ -35,6 +35,7 @@ exports.fetchRemoteManifest = fetchRemoteManifest;
35
35
  exports.createRemoteAdapter = createRemoteAdapter;
36
36
  const node_stream_1 = require("node:stream");
37
37
  const engine_contracts_1 = require("@listen-fire/engine-contracts");
38
+ const movement_lang_1 = require("@listen-fire/movement-lang");
38
39
  const client_1 = require("../../protocol/client");
39
40
  const limiter_1 = require("../../../limiter/limiter");
40
41
  const family_1 = require("@listen-fire/module-runtime/secrets/family");
@@ -113,12 +114,12 @@ async function fetchRemoteManifest(config, secret) {
113
114
  cacheScopeId: '<none>',
114
115
  params: {},
115
116
  });
116
- // Checked ahead of the full parse so an older server is refused for what it
117
- // is, not for whichever other field happens to have changed shape.
118
- const version = engine_contracts_1.WireManifestProtocolVersion.safeParse(raw !== null && typeof raw === 'object' ? Reflect.get(raw, 'protocolVersion') : undefined);
119
- if (!version.success) {
120
- throw new Error(`Remote adapter "${config.adapterType}" at ${config.baseUrl} refused: ${version.error.issues[0]?.message ?? 'protocolVersion is not 2'}`);
121
- }
117
+ // Checked ahead of the full parse so a server outside the range this engine
118
+ // speaks is refused for what it is, not for whichever other field happens
119
+ // to have changed shape.
120
+ const standing = (0, engine_contracts_1.protocolStanding)(raw, { host: { name: '@listen-fire/engine', version: movement_lang_1.LANGUAGE_VERSION } });
121
+ if (!standing.ok)
122
+ throw new Error(`Remote adapter "${config.adapterType}" at ${config.baseUrl} refused: ${standing.message}`);
122
123
  const result = (0, client_1.parseWireResult)(engine_contracts_1.METHODS.manifest.result, raw, {
123
124
  method: 'manifest',
124
125
  adapter: config.adapterType,
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.5",
4
+ "version": "0.12.6",
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.5",
21
- "@listen-fire/engine-contracts": "^0.12.5",
22
- "@listen-fire/movement-lang": "^0.12.5"
20
+ "@listen-fire/module-runtime": "^0.12.6",
21
+ "@listen-fire/engine-contracts": "^0.12.6",
22
+ "@listen-fire/movement-lang": "^0.12.6"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "29.5.14",