@wrongstack/governance 0.309.1 → 0.310.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/index.js +3 -2
- package/dist/project-daemon.js +3 -2
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -1955,7 +1955,7 @@ function decideOperationAutonomy(envelope, operation) {
|
|
|
1955
1955
|
|
|
1956
1956
|
// src/event-store.ts
|
|
1957
1957
|
import { createHash as createHash12 } from "node:crypto";
|
|
1958
|
-
import {
|
|
1958
|
+
import { loadRuntimeDatabaseSync } from "@wrongstack/persistence";
|
|
1959
1959
|
|
|
1960
1960
|
// src/plan-version.ts
|
|
1961
1961
|
import { createHash as createHash4 } from "node:crypto";
|
|
@@ -4463,7 +4463,8 @@ var SqliteGovernanceEventStore = class _SqliteGovernanceEventStore {
|
|
|
4463
4463
|
constructor(databasePath, options) {
|
|
4464
4464
|
this.databasePath = databasePath;
|
|
4465
4465
|
this.now = options.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
|
|
4466
|
-
|
|
4466
|
+
const Database = loadRuntimeDatabaseSync();
|
|
4467
|
+
this.db = new Database(databasePath);
|
|
4467
4468
|
this.verificationLedger = new SqliteVerificationLedger(this.db, {
|
|
4468
4469
|
now: this.now,
|
|
4469
4470
|
verificationLeaseSecret: options.verificationLeaseSecret
|
package/dist/project-daemon.js
CHANGED
|
@@ -1025,7 +1025,7 @@ function compareAutonomyTiers(left, right) {
|
|
|
1025
1025
|
|
|
1026
1026
|
// src/event-store.ts
|
|
1027
1027
|
import { createHash as createHash10 } from "node:crypto";
|
|
1028
|
-
import {
|
|
1028
|
+
import { loadRuntimeDatabaseSync } from "@wrongstack/persistence";
|
|
1029
1029
|
|
|
1030
1030
|
// src/plan-version.ts
|
|
1031
1031
|
import { createHash as createHash3 } from "node:crypto";
|
|
@@ -2959,7 +2959,8 @@ var SqliteGovernanceEventStore = class _SqliteGovernanceEventStore {
|
|
|
2959
2959
|
constructor(databasePath, options) {
|
|
2960
2960
|
this.databasePath = databasePath;
|
|
2961
2961
|
this.now = options.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
|
|
2962
|
-
|
|
2962
|
+
const Database = loadRuntimeDatabaseSync();
|
|
2963
|
+
this.db = new Database(databasePath);
|
|
2963
2964
|
this.verificationLedger = new SqliteVerificationLedger(this.db, {
|
|
2964
2965
|
now: this.now,
|
|
2965
2966
|
verificationLeaseSecret: options.verificationLeaseSecret
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/governance",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.310.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Deterministic workflow contracts and transition policy for WrongStack orchestration.",
|
|
6
6
|
"repository": {
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
"!dist/**/*.map",
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@wrongstack/persistence": "0.310.0"
|
|
31
|
+
},
|
|
29
32
|
"devDependencies": {
|
|
30
33
|
"@types/node": "^26.2.0",
|
|
31
34
|
"typescript": "^7.0.2",
|