@fro.bot/systematic 3.21.0 → 3.21.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 +17 -10
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -11286,23 +11286,27 @@ function createSessionRuntime(options, operationObservers, recoveredOperationCon
|
|
|
11286
11286
|
mode: options.config.mode === "disabled" ? "disabled" : "protected"
|
|
11287
11287
|
});
|
|
11288
11288
|
}
|
|
11289
|
-
function
|
|
11290
|
-
|
|
11289
|
+
function mintLedger() {
|
|
11290
|
+
return createReceiptLedger({
|
|
11291
11291
|
capabilityFlags: ["workflow-guard"],
|
|
11292
11292
|
registrationIdentity: options.registrationIdentity,
|
|
11293
11293
|
sessionSalt: options.sessionSalt ? new Uint8Array(options.sessionSalt) : randomBytes4(32)
|
|
11294
11294
|
});
|
|
11295
|
+
}
|
|
11296
|
+
let emptyHistoryLedger;
|
|
11297
|
+
function emptyHistoryLedgerForRetry() {
|
|
11298
|
+
emptyHistoryLedger ??= mintLedger();
|
|
11299
|
+
return emptyHistoryLedger;
|
|
11300
|
+
}
|
|
11301
|
+
function publishUnavailable(reusableLedger) {
|
|
11302
|
+
ledger = reusableLedger ?? mintLedger();
|
|
11295
11303
|
guard = createGuard(ledger);
|
|
11296
11304
|
if (options.config.mode !== "disabled")
|
|
11297
11305
|
guard.setMode({ mode: "unavailable" });
|
|
11298
11306
|
initialized = true;
|
|
11299
11307
|
}
|
|
11300
|
-
function publishFresh() {
|
|
11301
|
-
ledger =
|
|
11302
|
-
capabilityFlags: ["workflow-guard"],
|
|
11303
|
-
registrationIdentity: options.registrationIdentity,
|
|
11304
|
-
sessionSalt: options.sessionSalt ? new Uint8Array(options.sessionSalt) : randomBytes4(32)
|
|
11305
|
-
});
|
|
11308
|
+
function publishFresh(reusableLedger) {
|
|
11309
|
+
ledger = reusableLedger ?? mintLedger();
|
|
11306
11310
|
guard = createGuard(ledger);
|
|
11307
11311
|
initialized = true;
|
|
11308
11312
|
}
|
|
@@ -11417,11 +11421,12 @@ function createSessionRuntime(options, operationObservers, recoveredOperationCon
|
|
|
11417
11421
|
return { kind: "foreign-empty" };
|
|
11418
11422
|
}
|
|
11419
11423
|
function publishEmptyMarkers(parts2, allowFresh) {
|
|
11424
|
+
const reusableLedger = emptyHistoryLedgerForRetry();
|
|
11420
11425
|
if (allowFresh && !parts2.some((part) => containsGuardHistory(part))) {
|
|
11421
|
-
publishFresh();
|
|
11426
|
+
publishFresh(reusableLedger);
|
|
11422
11427
|
} else {
|
|
11423
11428
|
retryableEmptyHistory = true;
|
|
11424
|
-
publishUnavailable();
|
|
11429
|
+
publishUnavailable(reusableLedger);
|
|
11425
11430
|
}
|
|
11426
11431
|
}
|
|
11427
11432
|
async function initializeSession(sessionID, allowFresh) {
|
|
@@ -12887,6 +12892,8 @@ ${marker}` : marker;
|
|
|
12887
12892
|
return;
|
|
12888
12893
|
await recoverFromHost(input.sessionID, false);
|
|
12889
12894
|
abandonPending();
|
|
12895
|
+
if (options.config.mode === "disabled")
|
|
12896
|
+
return;
|
|
12890
12897
|
if (!isRecord7(output) || !Array.isArray(output.system))
|
|
12891
12898
|
return;
|
|
12892
12899
|
const existingSystem = output.system.filter((entry) => typeof entry === "string");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fro.bot/systematic",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.2",
|
|
4
4
|
"description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://fro.bot/systematic",
|
|
@@ -97,15 +97,15 @@
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@biomejs/biome": "2.5.
|
|
100
|
+
"@biomejs/biome": "2.5.15",
|
|
101
101
|
"@earendil-works/pi-coding-agent": "0.83.0",
|
|
102
|
-
"@opencode-ai/plugin": "1.18.
|
|
103
|
-
"@opencode-ai/sdk": "1.18.
|
|
102
|
+
"@opencode-ai/plugin": "1.18.34",
|
|
103
|
+
"@opencode-ai/sdk": "1.18.34",
|
|
104
104
|
"@semantic-release/exec": "7.1.0",
|
|
105
105
|
"@tintinweb/pi-subagents": "0.14.3",
|
|
106
106
|
"@types/bun": "latest",
|
|
107
107
|
"@types/js-yaml": "4.0.9",
|
|
108
|
-
"@types/node": "26.6.
|
|
108
|
+
"@types/node": "26.6.3",
|
|
109
109
|
"agent-browser": "0.34.0",
|
|
110
110
|
"ajv": "8.20.0",
|
|
111
111
|
"ajv-formats": "3.0.1",
|