@volter/supercode-orchestrator 0.4.92 → 0.4.93
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/board/workflow.mjs +3 -1
- package/board/ztrack.mjs +2 -2
- package/package.json +1 -1
package/board/workflow.mjs
CHANGED
|
@@ -116,7 +116,9 @@ export function refreshCardInputs(board, id, { commits = false } = {}) {
|
|
|
116
116
|
if (commits) {
|
|
117
117
|
const own=task.workspace_kind!=='scratch'?task.workspace_path:null;
|
|
118
118
|
const parent=!own && task.subtask_of?board.db.prepare('SELECT workspace_path FROM tasks WHERE id=?').get(task.subtask_of)?.workspace_path:null;
|
|
119
|
-
|
|
119
|
+
const path=own??parent??null;
|
|
120
|
+
if(path)commitTimes.delete(`${path}:${id}`);
|
|
121
|
+
observeLastCommit(path,id);
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
|
package/board/ztrack.mjs
CHANGED
|
@@ -39,7 +39,7 @@ class ZtrackBoard {
|
|
|
39
39
|
this.codec = require('@volter/ztrack/board-document');
|
|
40
40
|
this.preset = require('@volter/ztrack/kanban-preset');
|
|
41
41
|
this.runtime = new DatabaseSync(`${marker}.runtime.db`);
|
|
42
|
-
if (!this.runtime.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='state'").get()) this.runtime.exec('CREATE TABLE state (key TEXT PRIMARY KEY, value TEXT NOT NULL)');
|
|
42
|
+
this.readOnly(()=>{ if (!this.runtime.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='state'").get()) this.runtime.exec('CREATE TABLE IF NOT EXISTS state (key TEXT PRIMARY KEY, value TEXT NOT NULL)'); });
|
|
43
43
|
this.errors = new Map(); this.preserve = new Map();
|
|
44
44
|
this.mem = null; this.active = false; this.rows = new RuntimeRows(this.runtime);
|
|
45
45
|
mkdirSync(dirname(this.path), { recursive: true });
|
|
@@ -169,7 +169,7 @@ class ZtrackBoard {
|
|
|
169
169
|
try { this.runtime.exec('ROLLBACK'); } catch { /* intent already durable */ }
|
|
170
170
|
this.invalidate();
|
|
171
171
|
if (/busy|locked|Hermes wrote|document changed during recovery/i.test(error.message)) continue;
|
|
172
|
-
if (committed) error.message += ' (the
|
|
172
|
+
if (committed) error.message += ' (the operation reached its durable intent; inspect its recorded outcome before retrying)';
|
|
173
173
|
throw error;
|
|
174
174
|
} finally { this.active = false; this.computing = false; this.pendingValues = null; }
|
|
175
175
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-orchestrator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.93",
|
|
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": {
|