@volter/supercode-orchestrator 0.4.94 → 0.4.95

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 +2 -1
  2. package/package.json +1 -1
package/board/ztrack.mjs CHANGED
@@ -222,7 +222,7 @@ class ZtrackBoard {
222
222
  if (!this.cachedReader) {
223
223
  this.mem?.close(); this.mem=new DatabaseSync(':memory:'); this.init(this.mem,{fresh:true});
224
224
  for(const row of this.runtime.prepare('SELECT name,sql FROM runtime_schema').all())this.mem.exec(row.sql.replace('CREATE TABLE ','CREATE TABLE IF NOT EXISTS '));
225
- this.mem.prepare('ATTACH DATABASE ? AS source').run(`file:${this.runtimePath}?mode=ro`);
225
+ this.mem.prepare('ATTACH DATABASE ? AS source').run(this.runtimePath);
226
226
  const tables=this.mem.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%'").all();
227
227
  for(const {name} of tables) {
228
228
  if(name==='task_links') {
@@ -235,6 +235,7 @@ class ZtrackBoard {
235
235
  const join=name==='tasks'?" LEFT JOIN source.runtime_rows c ON c.name='@card_cache' AND c.key=r.key":'';
236
236
  this.mem.exec(`CREATE TEMP VIEW ${quote(name)} AS SELECT ${fields.join(',')} FROM source.runtime_rows r${join} WHERE r.name='${recordName}' AND r.value IS NOT NULL`);
237
237
  }
238
+ this.mem.exec('PRAGMA query_only=ON');
238
239
  this.cachedReader=true;
239
240
  }
240
241
  this.saved=saved; this.errors.clear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-orchestrator",
3
- "version": "0.4.94",
3
+ "version": "0.4.95",
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": {