@ricsam/r5d-worker 0.0.128 → 0.0.130
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/cjs/main.cjs
CHANGED
|
@@ -6705,7 +6705,7 @@ async function startWorker(options, projectRuntime = {
|
|
|
6705
6705
|
cliUpdateInProgress = true;
|
|
6706
6706
|
try {
|
|
6707
6707
|
const result = await (0, import_cli_update.installCliUpdate)(message);
|
|
6708
|
-
|
|
6708
|
+
await recoveryJournal.sendAndFlush({
|
|
6709
6709
|
type: "update_clis_result",
|
|
6710
6710
|
requestId: message.requestId,
|
|
6711
6711
|
...result
|
package/dist/cjs/package.json
CHANGED
|
@@ -315,6 +315,13 @@ class WorkerRecoveryJournal {
|
|
|
315
315
|
this.enqueueRecord(entry);
|
|
316
316
|
return true;
|
|
317
317
|
}
|
|
318
|
+
/** Commit and deliver a result before an intentional runtime restart fences unfinished operations. */
|
|
319
|
+
async sendAndFlush(message) {
|
|
320
|
+
this.assertOpen();
|
|
321
|
+
if (!this.send(message)) throw new WorkerRecoveryJournalError(`Recovery journal could not queue ${message.type}`);
|
|
322
|
+
await this.flush();
|
|
323
|
+
this.assertOpen();
|
|
324
|
+
}
|
|
318
325
|
/**
|
|
319
326
|
* Queue an output frame, split into bounded records, waiting for budget so
|
|
320
327
|
* a stalled journal throttles the producer (and through the pipe, the
|
package/dist/mjs/main.mjs
CHANGED
|
@@ -6726,7 +6726,7 @@ async function startWorker(options, projectRuntime = {
|
|
|
6726
6726
|
cliUpdateInProgress = true;
|
|
6727
6727
|
try {
|
|
6728
6728
|
const result = await installCliUpdate(message);
|
|
6729
|
-
|
|
6729
|
+
await recoveryJournal.sendAndFlush({
|
|
6730
6730
|
type: "update_clis_result",
|
|
6731
6731
|
requestId: message.requestId,
|
|
6732
6732
|
...result
|
package/dist/mjs/package.json
CHANGED
|
@@ -268,6 +268,13 @@ class WorkerRecoveryJournal {
|
|
|
268
268
|
this.enqueueRecord(entry);
|
|
269
269
|
return true;
|
|
270
270
|
}
|
|
271
|
+
/** Commit and deliver a result before an intentional runtime restart fences unfinished operations. */
|
|
272
|
+
async sendAndFlush(message) {
|
|
273
|
+
this.assertOpen();
|
|
274
|
+
if (!this.send(message)) throw new WorkerRecoveryJournalError(`Recovery journal could not queue ${message.type}`);
|
|
275
|
+
await this.flush();
|
|
276
|
+
this.assertOpen();
|
|
277
|
+
}
|
|
271
278
|
/**
|
|
272
279
|
* Queue an output frame, split into bounded records, waiting for budget so
|
|
273
280
|
* a stalled journal throttles the producer (and through the pipe, the
|
|
@@ -160,6 +160,8 @@ export declare class WorkerRecoveryJournal {
|
|
|
160
160
|
* acknowledged early nor sent later.
|
|
161
161
|
*/
|
|
162
162
|
send(message: Message): boolean;
|
|
163
|
+
/** Commit and deliver a result before an intentional runtime restart fences unfinished operations. */
|
|
164
|
+
sendAndFlush(message: Message): Promise<void>;
|
|
163
165
|
/**
|
|
164
166
|
* Queue an output frame, split into bounded records, waiting for budget so
|
|
165
167
|
* a stalled journal throttles the producer (and through the pipe, the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ricsam/r5d-worker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.130",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/main.cjs",
|
|
6
6
|
"module": "./dist/mjs/main.mjs",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"r5d-worker": "dist/cjs/main.cjs"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ricsam/r5d-api": "^0.0.
|
|
24
|
+
"@ricsam/r5d-api": "^0.0.130",
|
|
25
25
|
"node-pty": "^1.1.0",
|
|
26
26
|
"picomatch": "^4.0.3"
|
|
27
27
|
},
|