@volter/supercode-orchestrator 0.4.135 → 0.4.136

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/wake.mjs +6 -1
  2. package/package.json +1 -1
package/board/wake.mjs CHANGED
@@ -74,7 +74,12 @@ export function watchBoard({ root, binary, env, log = () => {} }) {
74
74
  const mail = join(config, 'mail');
75
75
  directory(mail, 'mailbox-registry', name => name.startsWith('board-'));
76
76
  if (existsSync(mail)) for (const name of readdirSync(mail)) {
77
- if (name.startsWith('board-')) directory(join(mail, name, 'new'), 'board-mail', name => name.endsWith('.json'));
77
+ if (name.startsWith('board-')) {
78
+ const inbox = join(mail, name, 'new');
79
+ // Reading mail moves it out of new/. That removal is not new work and
80
+ // must not make the dispatcher schedule another tick for its own read.
81
+ directory(inbox, 'board-mail', file => file.endsWith('.json') && existsSync(join(inbox, file)));
82
+ }
78
83
  }
79
84
  };
80
85
  // The retained Teams catalogue includes local and remote session changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-orchestrator",
3
- "version": "0.4.135",
3
+ "version": "0.4.136",
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": {