@ai-sdlc/orchestrator 0.1.2 → 0.2.0
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/state/store.js +3 -2
- package/package.json +2 -2
package/dist/state/store.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Uses better-sqlite3 for synchronous operations. The state store is
|
|
5
5
|
* optional — the orchestrator works without it.
|
|
6
6
|
*/
|
|
7
|
+
import { createRequire } from 'node:module';
|
|
7
8
|
import { CURRENT_SCHEMA_VERSION, MIGRATIONS } from './schema.js';
|
|
8
9
|
export class StateStore {
|
|
9
10
|
db;
|
|
@@ -17,8 +18,8 @@ export class StateStore {
|
|
|
17
18
|
static open(pathOrDb) {
|
|
18
19
|
if (typeof pathOrDb === 'string') {
|
|
19
20
|
// Dynamic require to keep better-sqlite3 optional at import time
|
|
20
|
-
|
|
21
|
-
const SqliteConstructor =
|
|
21
|
+
const esmRequire = createRequire(import.meta.url);
|
|
22
|
+
const SqliteConstructor = esmRequire('better-sqlite3');
|
|
22
23
|
const db = new SqliteConstructor(pathOrDb);
|
|
23
24
|
db.pragma('journal_mode = WAL');
|
|
24
25
|
return new StateStore(db);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdlc/orchestrator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "AI-SDLC Orchestrator — long-running runtime that drives issues through the complete SDLC with AI agents",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"better-sqlite3": "^11.0.0",
|
|
46
46
|
"commander": "^12.0.0",
|
|
47
47
|
"yaml": "^2.7.0",
|
|
48
|
-
"@ai-sdlc/reference": "0.
|
|
48
|
+
"@ai-sdlc/reference": "0.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/better-sqlite3": "^7.6.0",
|