@hueyexe/opencode-ensemble 0.15.0 → 0.15.2

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/dist/index.js CHANGED
@@ -16642,7 +16642,7 @@ var instance;
16642
16642
  class NodeSqliteAdapter {
16643
16643
  db;
16644
16644
  constructor(filename) {
16645
- const sqlite = requireRuntimeModule("node:sqlite");
16645
+ const sqlite = requireRuntimeModule(["node", "sqlite"].join(":"));
16646
16646
  this.db = new sqlite.DatabaseSync(filename);
16647
16647
  }
16648
16648
  exec(sql) {
@@ -17908,7 +17908,7 @@ function conn(ok){
17908
17908
  document.getElementById('ct').textContent=ok?D(Date.now()-pollT)+' ago':'reconnecting to dashboard state';
17909
17909
  }
17910
17910
 
17911
- async function poll(){try{S=await(await fetch('/api/state')).json();fails=0;pollT=Date.now();conn(true);render()}catch{if(++fails>=3)conn(false)}}
17911
+ async function poll(){try{S=await(await fetch('api/state')).json();fails=0;pollT=Date.now();conn(true);render()}catch{if(++fails>=3)conn(false)}}
17912
17912
 
17913
17913
  function setBackgroundInert(locked){
17914
17914
  document.querySelectorAll('header,main,#sum,#tl').forEach(function(el){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hueyexe/opencode-ensemble",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "Agent teams for OpenCode — parallel agents with peer-to-peer communication, shared tasks, and coordinated execution",
5
5
  "module": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -32,7 +32,7 @@ function conn(ok){
32
32
  document.getElementById('ct').textContent=ok?D(Date.now()-pollT)+' ago':'reconnecting to dashboard state';
33
33
  }
34
34
 
35
- async function poll(){try{S=await(await fetch('/api/state')).json();fails=0;pollT=Date.now();conn(true);render()}catch{if(++fails>=3)conn(false)}}
35
+ async function poll(){try{S=await(await fetch('api/state')).json();fails=0;pollT=Date.now();conn(true);render()}catch{if(++fails>=3)conn(false)}}
36
36
 
37
37
  function setBackgroundInert(locked){
38
38
  document.querySelectorAll('header,main,#sum,#tl').forEach(function(el){
package/src/db.ts CHANGED
@@ -43,7 +43,7 @@ class NodeSqliteAdapter implements Database {
43
43
  private readonly db: NodeSqliteDatabase
44
44
 
45
45
  constructor(filename: string) {
46
- const sqlite = requireRuntimeModule("node:sqlite") as NodeSqliteModule
46
+ const sqlite = requireRuntimeModule(["node", "sqlite"].join(":")) as NodeSqliteModule
47
47
  this.db = new sqlite.DatabaseSync(filename)
48
48
  }
49
49