@volter/supercode-orchestrator 0.4.120 → 0.4.121

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.
Files changed (2) hide show
  1. package/board/ztrack.mjs +3 -3
  2. package/package.json +1 -1
package/board/ztrack.mjs CHANGED
@@ -268,8 +268,8 @@ class ZtrackBoard {
268
268
  load({ observe = false } = {}) {
269
269
  const text = read(this.path), archiveText = read(this.archive);
270
270
  const saved=this.get('snapshot', {});
271
- let cached=saved.documentHashes?.open===hash(text)&&saved.documentHashes?.archived===hash(archiveText);
272
- if(!observe && !cached && saved.documentHashes) {
271
+ let cached=saved.bodyProjection===2&&saved.documentHashes?.open===hash(text)&&saved.documentHashes?.archived===hash(archiveText);
272
+ if(!observe && !cached && saved.bodyProjection===2 && saved.documentHashes) {
273
273
  // The durable intent may have replaced the documents while its runtime commit
274
274
  // is still pending. Readers keep the previous committed projection, never parse
275
275
  // an intermediate pair of files. A real hand edit does not match these hashes.
@@ -495,7 +495,7 @@ class ZtrackBoard {
495
495
  if (this.saved.documentHashes?.open === hash(this.text) && this.saved.documentHashes?.archived === hash(this.archiveText)) {
496
496
  for (const id of Object.keys(fingerprints)) if (this.saved.fingerprints?.[id]) fingerprints[id] = this.saved.fingerprints[id];
497
497
  }
498
- return { documentHashes:{open:hash(documents.open),archived:hash(documents.archived)}, errors:[...this.errors], fingerprints: { ...fingerprints, ...this.publishedFingerprints }, taskIds: Object.fromEntries([...this.taskKeys].map(([id, key]) => [key, id])) };
498
+ return { bodyProjection:2, documentHashes:{open:hash(documents.open),archived:hash(documents.archived)}, errors:[...this.errors], fingerprints: { ...fingerprints, ...this.publishedFingerprints }, taskIds: Object.fromEntries([...this.taskKeys].map(([id, key]) => [key, id])) };
499
499
  }
500
500
 
501
501
  lift() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-orchestrator",
3
- "version": "0.4.120",
3
+ "version": "0.4.121",
4
4
  "type": "module",
5
5
  "description": "The orchestrator runtime over the Volter Harness ontology: one typed operational model whose folder is its serialization, read and written through the harness orchestration doors (docs/ORCHESTRATOR-IR.md)",
6
6
  "exports": {