oh-my-codex 0.21.32 → 0.21.33

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/Cargo.lock CHANGED
@@ -32,7 +32,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
32
32
 
33
33
  [[package]]
34
34
  name = "omx-api"
35
- version = "0.21.32"
35
+ version = "0.21.33"
36
36
  dependencies = [
37
37
  "serde",
38
38
  "serde_json",
@@ -40,14 +40,14 @@ dependencies = [
40
40
 
41
41
  [[package]]
42
42
  name = "omx-explore-harness"
43
- version = "0.21.32"
43
+ version = "0.21.33"
44
44
  dependencies = [
45
45
  "libc",
46
46
  ]
47
47
 
48
48
  [[package]]
49
49
  name = "omx-mux"
50
- version = "0.21.32"
50
+ version = "0.21.33"
51
51
  dependencies = [
52
52
  "serde",
53
53
  "serde_json",
@@ -55,7 +55,7 @@ dependencies = [
55
55
 
56
56
  [[package]]
57
57
  name = "omx-runtime"
58
- version = "0.21.32"
58
+ version = "0.21.33"
59
59
  dependencies = [
60
60
  "fs2",
61
61
  "libc",
@@ -67,7 +67,7 @@ dependencies = [
67
67
 
68
68
  [[package]]
69
69
  name = "omx-runtime-core"
70
- version = "0.21.32"
70
+ version = "0.21.33"
71
71
  dependencies = [
72
72
  "fs2",
73
73
  "serde",
@@ -76,7 +76,7 @@ dependencies = [
76
76
 
77
77
  [[package]]
78
78
  name = "omx-sparkshell"
79
- version = "0.21.32"
79
+ version = "0.21.33"
80
80
  dependencies = [
81
81
  "omx-mux",
82
82
  ]
package/Cargo.toml CHANGED
@@ -11,7 +11,7 @@ resolver = "2"
11
11
 
12
12
  [workspace.package]
13
13
 
14
- version = "0.21.32"
14
+ version = "0.21.33"
15
15
 
16
16
  edition = "2021"
17
17
  rust-version = "1.73"
@@ -1098,7 +1098,7 @@ exit 1
1098
1098
  await assert.rejects(() => drainPendingTeamDispatch({ cwd, injector }), /exec-scoped failed/);
1099
1099
  assert.equal((await readDispatchRequest('alpha', queued.request.request_id, cwd))?.status, 'pending');
1100
1100
  const journalPath = join(cwd, '.omx/state/team/alpha/dispatch/runtime-finalizations.jsonl');
1101
- assert.deepEqual((await readFile(journalPath, 'utf8')).trim().split('\n').map((line) => JSON.parse(line).command), ['MarkNotified', 'MarkDelivered']);
1101
+ assert.deepEqual((await readFile(journalPath, 'utf8')).trim().split('\n').filter(Boolean).map((line) => JSON.parse(line).command), ['MarkNotified', 'MarkDelivered']);
1102
1102
  delete process.env.OMX_TEST_REJECT_MARK_NOTIFIED;
1103
1103
  assert.equal((await drainPendingTeamDispatch({ cwd, injector })).processed, 0);
1104
1104
  assert.equal(injections, 1, 'a confirmed injection must never be retried while its receipt is reconciled');
@@ -1155,7 +1155,7 @@ exit 1
1155
1155
  const { drainPendingTeamDispatch } = await import('../../scripts/notify-hook/team-dispatch.js');
1156
1156
  assert.equal((await drainPendingTeamDispatch({ cwd, maxPerTick: 5 })).processed, 1);
1157
1157
  const journal = join(cwd, '.omx/state/team/alpha/dispatch/runtime-finalizations.jsonl');
1158
- assert.deepEqual((await readFile(journal, 'utf8')).trim().split('\n').map(line => JSON.parse(line).command), ['MarkNotified', 'MarkDelivered', 'MarkNotified', 'MarkDelivered']);
1158
+ assert.deepEqual((await readFile(journal, 'utf8')).trim().split('\n').filter(Boolean).map(line => JSON.parse(line).command), ['MarkNotified', 'MarkDelivered', 'MarkNotified', 'MarkDelivered']);
1159
1159
  await writeFile(runtime, supported);
1160
1160
  await chmod(runtime, 0o755);
1161
1161
  await writeFile(projectionPath, pendingProjection);
@@ -1326,7 +1326,7 @@ exit 1
1326
1326
  await writeFile(compatPath, pending);
1327
1327
  const journalPath = join(stateDir, 'team', 'alpha', 'dispatch', 'runtime-finalizations.jsonl');
1328
1328
  const journal = await readFile(journalPath, 'utf8');
1329
- const journalCommands = journal.trim().split('\n').map((line) => JSON.parse(line).command);
1329
+ const journalCommands = journal.trim().split('\n').filter(Boolean).map((line) => JSON.parse(line).command);
1330
1330
  assert.deepEqual(journalCommands, mode === 'default-injector'
1331
1331
  ? ['MarkNotified', 'MarkDelivered', 'MarkNotified', 'MarkDelivered']
1332
1332
  : [mode === 'failed' ? 'MarkFailed' : 'MarkNotified']);