@listen-fire/engine 0.15.2 → 0.15.3

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.
@@ -387,6 +387,8 @@ function instanceSchemaFromDescriptors(input) {
387
387
  continue;
388
388
  }
389
389
  typeIdByName.set(name, entry.typeId);
390
+ const descriptor = input.descriptors.get(entry.typeId);
391
+ const typeDescription = (descriptor !== undefined ? describedBy(descriptor) : undefined) ?? describedBy(entry);
390
392
  // Every entry point IS a meta edge off the adapter's meta position — the
391
393
  // node the cursor starts at. A READABLE entry's edge is a traversable
392
394
  // collection (`root-[c:Companies]-> …`); a WRITABLE entry's edge is how you
@@ -410,16 +412,18 @@ function instanceSchemaFromDescriptors(input) {
410
412
  // The root descriptor's word on the collection, else the entry's
411
413
  // own: a host that asks no root descriptor (listen-fire) reads it there.
412
414
  const capability = rootCapabilities.get(collectionName) ?? entry.capability;
415
+ const positioned = entry.readable || entry.listenable === true || edgeTargetNames.has(name);
413
416
  collections[collectionName] = {
414
417
  target: name,
415
418
  ...(capability !== undefined ? { capability } : {}),
416
419
  ...(entry.readable ? {} : { readable: false }),
417
420
  ...(entry.listenable === true ? { listenable: true } : {}),
418
421
  ...listeningOf(entry),
422
+ // A type with no position has nowhere else to say what it is.
423
+ ...(!positioned && typeDescription !== undefined ? { description: typeDescription } : {}),
419
424
  };
420
425
  }
421
426
  }
422
- const descriptor = input.descriptors.get(entry.typeId);
423
427
  if (!descriptor) {
424
428
  // No descriptor came back for this entry — describe() answered null, or a
425
429
  // demand-scoped introspection never asked. The position exists; NOBODY HAS
@@ -664,7 +668,6 @@ function instanceSchemaFromDescriptors(input) {
664
668
  //
665
669
  // `listenable` is not gated on `readable`, and that is the point: nobody
666
670
  // can enumerate an inbox, so its entry says `readable: false` honestly.
667
- const typeDescription = describedBy(descriptor) ?? describedBy(entry);
668
671
  positions[name] = {
669
672
  properties,
670
673
  edges,
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.15.2",
4
+ "version": "0.15.3",
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 `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"
@@ -18,8 +18,8 @@
18
18
  "safe-stable-stringify": "2.5.0",
19
19
  "zod": "4.1.12",
20
20
  "@listen-fire/module-runtime": "^0.12.8",
21
- "@listen-fire/engine-contracts": "^0.15.2",
22
- "@listen-fire/movement-lang": "^0.15.2"
21
+ "@listen-fire/engine-contracts": "^0.15.3",
22
+ "@listen-fire/movement-lang": "^0.15.3"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "29.5.14",