@quolu/lattice 0.12.26 → 0.12.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.12.26",
3
+ "version": "0.12.27",
4
4
  "description": "Lattice — phase-aware TODO graph compiler and conflict-aware orchestration runtime",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1494,7 +1494,9 @@ export async function appendImportedPlan(options = {}) {
1494
1494
 
1495
1495
  const descriptor = { plan_key: plan.plan_key, active_plan_version: plan.plan_version,
1496
1496
  plan_ref: planRef, journal_ref: journalRef, snapshot_ref: snapshotRef,
1497
- topology_digest: plan.topology_digest, journal_head_digest: events.at(-1).event_digest };
1497
+ topology_digest: plan.topology_digest, journal_head_digest: events.at(-1).event_digest,
1498
+ ...(currentManifest.schema === 'lattice.todo_manifest.v2'
1499
+ ? { active_revision_digest: plan.plan_digest } : {}) };
1498
1500
  currentManifest.members.push(descriptor);
1499
1501
  currentManifest.members.sort((left, right) => left.plan_key < right.plan_key ? -1 : left.plan_key > right.plan_key ? 1 : 0);
1500
1502
  currentManifest.manifest_digest = todoSelfDigest(currentManifest, 'manifest_digest');