forgedock 1.59.0 → 1.59.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.
|
@@ -182,4 +182,12 @@ describe("#5162: failed roots hold their subtree; only real cycles are cycles",
|
|
|
182
182
|
await done;
|
|
183
183
|
assert.ok(reads >= 2, "a pass after the window reads again");
|
|
184
184
|
});
|
|
185
|
+
|
|
186
|
+
it("#5632: refreshHeld is a hoisted function declaration (finish/recovery callbacks of a resumed batch call it before its line runs)", async () => {
|
|
187
|
+
const { readFileSync } = await import("node:fs");
|
|
188
|
+
const src = readFileSync(new URL("./orchestrate.mjs", import.meta.url), "utf8");
|
|
189
|
+
assert.match(src, /\n function refreshHeld\(\) \{/);
|
|
190
|
+
assert.doesNotMatch(src, /const refreshHeld\s*=/);
|
|
191
|
+
});
|
|
185
192
|
});
|
|
193
|
+
|
package/bin/lean/orchestrate.mjs
CHANGED
|
@@ -1264,7 +1264,8 @@ export async function orchestrate({ issues, parallel = 3, runOne, readBody, pref
|
|
|
1264
1264
|
}
|
|
1265
1265
|
// #4592: re-read the hold set; one decision and one row when it changes.
|
|
1266
1266
|
const holdExpiring = (list) => { let info = null; try { info = getHoldInfo?.() ?? null; } catch { info = null; } return !!expireHolds && list.some((n) => Number.isFinite(Date.parse(info?.[n]?.expiresAt))); }; // #5469
|
|
1267
|
-
|
|
1267
|
+
// #5632: a function declaration (hoisted): finish/recovery callbacks of a resumed batch can call it before this line runs
|
|
1268
|
+
function refreshHeld() {
|
|
1268
1269
|
if (!getHeld) return;
|
|
1269
1270
|
if (expireHolds) { // #5469: a hold past its expiry is released here; the diff below then admits it. A dead owner session is an alert.
|
|
1270
1271
|
let due = []; try { due = expireHolds() ?? []; } catch { due = []; }
|
|
@@ -1289,7 +1290,7 @@ export async function orchestrate({ issues, parallel = 3, runOne, readBody, pref
|
|
|
1289
1290
|
decided({ issue: null, what: `released ${fmt(freed)} (forgedock orchestrate --release)`, why: "operator request", alternative: "resume the batch" });
|
|
1290
1291
|
update({ issue: null, outcome: "release", detail: fmt(freed) });
|
|
1291
1292
|
}
|
|
1292
|
-
|
|
1293
|
+
}
|
|
1293
1294
|
// #4773: re-read the issues carrying the blocked label; one decision and row per change. A failed read keeps the last set.
|
|
1294
1295
|
let blocked = new Set();
|
|
1295
1296
|
const blockedHit = new Set(); // blocked issues that were pending this pass
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forgedock",
|
|
3
|
-
"version": "1.59.
|
|
3
|
+
"version": "1.59.2",
|
|
4
4
|
"description": "An AI engineering team that ships to production",
|
|
5
5
|
"bin": {
|
|
6
6
|
"forgedock": "bin/forgedock.mjs"
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"test:sh": "bash scripts/run-shell-tests.sh",
|
|
56
56
|
"docs:dev": "vitepress dev docs/site",
|
|
57
57
|
"docs:build": "vitepress build docs/site",
|
|
58
|
-
"docs:preview": "vitepress preview docs/site"
|
|
58
|
+
"docs:preview": "vitepress preview docs/site",
|
|
59
|
+
"lint:js": "eslint bin scripts packages"
|
|
59
60
|
},
|
|
60
61
|
"engines": {
|
|
61
62
|
"node": ">=18"
|
|
@@ -64,6 +65,8 @@
|
|
|
64
65
|
"@anthropic-ai/sdk": ">=0.30.0 <1"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
68
|
+
"eslint": "^9.39.1",
|
|
69
|
+
"globals": "^16.5.0",
|
|
67
70
|
"vitepress": "^1.6.3"
|
|
68
71
|
},
|
|
69
72
|
"peerDependencies": {
|