@volter/supercode-orchestrator 0.4.121 → 0.4.123
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/board/cli.mjs +15 -0
- package/package.json +3 -3
package/board/cli.mjs
CHANGED
|
@@ -1159,6 +1159,21 @@ async function serve(root, args = {}) {
|
|
|
1159
1159
|
let pausedSaid = false;
|
|
1160
1160
|
try {
|
|
1161
1161
|
while (!stopped) {
|
|
1162
|
+
// An installer owns this operational window, not a card pause. Finish the
|
|
1163
|
+
// current tick, acknowledge the request, then leave every run untouched.
|
|
1164
|
+
// A replacement serve sees the same request before its first tick.
|
|
1165
|
+
const installation = join(root, 'installation-window.json');
|
|
1166
|
+
if (existsSync(installation)) {
|
|
1167
|
+
const request = JSON.parse(readFileSync(installation, 'utf8'));
|
|
1168
|
+
const acknowledgment = join(root, 'installation-window.ack.json');
|
|
1169
|
+
const previous = existsSync(acknowledgment) ? JSON.parse(readFileSync(acknowledgment, 'utf8')) : null;
|
|
1170
|
+
if (previous?.token !== request.token || previous?.pid !== process.pid) {
|
|
1171
|
+
writeFileSync(acknowledgment, JSON.stringify({ token: request.token, pid: process.pid, at: Date.now() }));
|
|
1172
|
+
log(`installation window held by ${request.owner}; dispatch waits`);
|
|
1173
|
+
}
|
|
1174
|
+
await new Promise(resolve => setTimeout(resolve, 250));
|
|
1175
|
+
continue;
|
|
1176
|
+
}
|
|
1162
1177
|
pausedSaid = Boolean(paused(root)) && pausedSaid;
|
|
1163
1178
|
let interval = 60;
|
|
1164
1179
|
const began = Date.now();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-orchestrator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.123",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The orchestrator runtime over the Volter Harness ontology: one typed operational model whose folder is its serialization, read and written through the harness orchestration doors (docs/ORCHESTRATOR-IR.md)",
|
|
6
6
|
"exports": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@volter/supercode-harness-sdk": "^0.3.41",
|
|
28
|
-
"@volter/ztrack": "^2.4.
|
|
28
|
+
"@volter/ztrack": "^2.4.19",
|
|
29
29
|
"yaml": "^2.9.0",
|
|
30
|
-
"@volter/supercode-teams": "^0.2.
|
|
30
|
+
"@volter/supercode-teams": "^0.2.145"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@chat-adapter/state-memory": "4.39.0",
|