@linzumi/cli 1.0.115 → 1.0.116

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.115",
3
+ "version": "1.0.116",
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": {
@@ -86,8 +86,14 @@ for await (const line of rl) {
86
86
  state = { pending: null };
87
87
  threads.set(threadId, state);
88
88
  }
89
- const event = entry.event;
90
- if (event === 'kandan.message_queued') {
89
+ // N2.4-prep (naming-consistency program wave N2): match the CANONICAL
90
+ // event names first with the legacy spellings as the permanent fallback -
91
+ // dual-emit window logs carry the legacy name (plus an event_canonical
92
+ // twin field), post-flip logs carry the canonical name only, and archived
93
+ // logs stay legacy forever (D45). codex.turn_starting is a retained D42
94
+ // true-harness name (not renamed).
95
+ const event = entry.event_canonical ?? entry.event;
96
+ if (event === 'linzumi.message_queued' || event === 'kandan.message_queued') {
91
97
  state.pending = { atMs, seq: entry.seq, blocked: [], spawn: false };
92
98
  } else if (state.pending !== null) {
93
99
  if (event === 'codex.turn_starting') {
@@ -99,7 +105,10 @@ for await (const line of rl) {
99
105
  spawn: state.pending.spawn,
100
106
  });
101
107
  state.pending = null;
102
- } else if (event === 'kandan.queue_drain_blocked') {
108
+ } else if (
109
+ event === 'linzumi.queue_drain_blocked' ||
110
+ event === 'kandan.queue_drain_blocked'
111
+ ) {
103
112
  state.pending.blocked.push(entry.reason);
104
113
  } else if (event === 'runner.thread_process_starting') {
105
114
  state.pending.spawn = true;