@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linzumi/cli",
3
- "version": "1.0.246",
3
+ "version": "1.0.247",
4
4
  "description": "Linzumi CLI \u2014 point a Codex agent at the real code on your laptop, with your team watching and steering from shared threads.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -219,8 +219,14 @@ function handleRegistryScenario(testCase) {
219
219
  }
220
220
  const events = [];
221
221
  const log = collectingLog(events, dir);
222
- let store = createRunnerThreadSessionRegistryStore(path, log);
223
- const results = (testCase.actions ?? []).map((action) => {
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
  });