@linzumi/cli 1.0.246 → 1.0.247
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/README.md +1 -1
- package/dist/impl-res/cloud-supervisor.mjs +53 -53
- package/dist/impl-res/index.js +236 -236
- package/dist/impl-ts/cloud-supervisor.mjs +53 -53
- package/dist/impl-ts/index.js +404 -404
- package/package.json +1 -1
- package/scripts/build-session-registry-parity-oracle.mjs +10 -3
package/package.json
CHANGED
|
@@ -219,8 +219,14 @@ function handleRegistryScenario(testCase) {
|
|
|
219
219
|
}
|
|
220
220
|
const events = [];
|
|
221
221
|
const log = collectingLog(events, dir);
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
// spec/commander-recovery-rules.md rules 01/05 and projection fence:
|
|
223
|
+
// construction failure is an observable refusal, not an empty store.
|
|
224
|
+
let store;
|
|
225
|
+
const startup = outcome(() => {
|
|
226
|
+
store = createRunnerThreadSessionRegistryStore(path, log);
|
|
227
|
+
return 'ready';
|
|
228
|
+
});
|
|
229
|
+
const results = startup.threw ? [] : (testCase.actions ?? []).map((action) => {
|
|
224
230
|
switch (action.fn) {
|
|
225
231
|
case 'upsert':
|
|
226
232
|
return outcome(() => store.upsert(action.record));
|
|
@@ -246,7 +252,7 @@ function handleRegistryScenario(testCase) {
|
|
|
246
252
|
}
|
|
247
253
|
});
|
|
248
254
|
return substitute(
|
|
249
|
-
{ results, events, files: snapshotFiles(dir) },
|
|
255
|
+
{ startup, results, events, files: snapshotFiles(dir) },
|
|
250
256
|
dir,
|
|
251
257
|
dirPlaceholder
|
|
252
258
|
);
|
|
@@ -288,6 +294,7 @@ async function handleRehydrate(testCase) {
|
|
|
288
294
|
},
|
|
289
295
|
retire: (record) => {
|
|
290
296
|
retired.push(record.kandanThreadId);
|
|
297
|
+
return { outcome: 'removed' };
|
|
291
298
|
},
|
|
292
299
|
log,
|
|
293
300
|
});
|