oh-my-openagent 5.1.71 → 5.1.72

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.
Files changed (56) hide show
  1. package/dist/cli/index.js +256 -53
  2. package/dist/cli-node/index.js +256 -53
  3. package/dist/index.js +180 -180
  4. package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
  5. package/dist/tui.js +14 -14
  6. package/package.json +14 -14
  7. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  8. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  9. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  10. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  11. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  12. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  13. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  14. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  15. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  16. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  17. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  18. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  19. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  20. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  21. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  22. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  23. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  24. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  25. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  26. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  27. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  28. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  29. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  30. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  31. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  32. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  33. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  34. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  35. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  36. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  37. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  38. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  39. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  40. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  41. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  42. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  43. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  44. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  45. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  46. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  47. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  48. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  49. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  50. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  51. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  52. package/packages/omo-codex/plugin/package-lock.json +12 -12
  53. package/packages/omo-codex/plugin/package.json +1 -1
  54. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
  55. package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
  56. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
package/dist/cli/index.js CHANGED
@@ -2132,7 +2132,7 @@ var package_default;
2132
2132
  var init_package = __esm(() => {
2133
2133
  package_default = {
2134
2134
  name: "oh-my-opencode",
2135
- version: "5.1.71",
2135
+ version: "5.1.72",
2136
2136
  description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
2137
2137
  main: "./dist/index.js",
2138
2138
  types: "dist/index.d.ts",
@@ -2330,7 +2330,7 @@ var init_package = __esm(() => {
2330
2330
  },
2331
2331
  devDependencies: {
2332
2332
  "@clack/prompts": "^1.8.1",
2333
- "@code-yeongyu/senpi": "2026.11.15",
2333
+ "@code-yeongyu/senpi": "2026.11.15-2",
2334
2334
  "@modelcontextprotocol/sdk": "^1.30.0",
2335
2335
  "@oh-my-opencode/agents-md-core": "workspace:*",
2336
2336
  "@oh-my-opencode/ast-grep-mcp": "workspace:*",
@@ -2403,18 +2403,18 @@ var init_package = __esm(() => {
2403
2403
  typescript: "^7.0.2"
2404
2404
  },
2405
2405
  optionalDependencies: {
2406
- "oh-my-opencode-darwin-arm64": "5.1.71",
2407
- "oh-my-opencode-darwin-x64": "5.1.71",
2408
- "oh-my-opencode-darwin-x64-baseline": "5.1.71",
2409
- "oh-my-opencode-linux-arm64": "5.1.71",
2410
- "oh-my-opencode-linux-arm64-musl": "5.1.71",
2411
- "oh-my-opencode-linux-x64": "5.1.71",
2412
- "oh-my-opencode-linux-x64-baseline": "5.1.71",
2413
- "oh-my-opencode-linux-x64-musl": "5.1.71",
2414
- "oh-my-opencode-linux-x64-musl-baseline": "5.1.71",
2415
- "oh-my-opencode-windows-arm64": "5.1.71",
2416
- "oh-my-opencode-windows-x64": "5.1.71",
2417
- "oh-my-opencode-windows-x64-baseline": "5.1.71"
2406
+ "oh-my-opencode-darwin-arm64": "5.1.72",
2407
+ "oh-my-opencode-darwin-x64": "5.1.72",
2408
+ "oh-my-opencode-darwin-x64-baseline": "5.1.72",
2409
+ "oh-my-opencode-linux-arm64": "5.1.72",
2410
+ "oh-my-opencode-linux-arm64-musl": "5.1.72",
2411
+ "oh-my-opencode-linux-x64": "5.1.72",
2412
+ "oh-my-opencode-linux-x64-baseline": "5.1.72",
2413
+ "oh-my-opencode-linux-x64-musl": "5.1.72",
2414
+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.72",
2415
+ "oh-my-opencode-windows-arm64": "5.1.72",
2416
+ "oh-my-opencode-windows-x64": "5.1.72",
2417
+ "oh-my-opencode-windows-x64-baseline": "5.1.72"
2418
2418
  },
2419
2419
  overrides: {
2420
2420
  hono: "^4.13.8",
@@ -92877,7 +92877,7 @@ var package_default2;
92877
92877
  var init_package2 = __esm(() => {
92878
92878
  package_default2 = {
92879
92879
  name: "@oh-my-opencode/omo-codex",
92880
- version: "5.1.71",
92880
+ version: "5.1.72",
92881
92881
  type: "module",
92882
92882
  private: true,
92883
92883
  description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
@@ -100268,6 +100268,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
100268
100268
  join66("extensions", "loro_wasm_bg.wasm"),
100269
100269
  join66("extensions", "CaseFolding.txt"),
100270
100270
  join66("extensions", "omo-thread-client.js"),
100271
+ join66("extensions", "omo-wake.js"),
100271
100272
  join66("extensions", "omo-telemetry-recovery.js"),
100272
100273
  join66("extensions", "omo-feedback.js"),
100273
100274
  join66("extensions", "omo-desktop-toolkit.js"),
@@ -109664,8 +109665,8 @@ var package_default3 = {
109664
109665
  },
109665
109666
  dependencies: {
109666
109667
  "@clack/prompts": "^1.8.1",
109667
- "@code-yeongyu/senpi": "2026.11.15",
109668
- "@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.15",
109668
+ "@code-yeongyu/senpi": "2026.11.15-2",
109669
+ "@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.15-2",
109669
109670
  "@modelcontextprotocol/sdk": "^1.30.0",
109670
109671
  "@oh-my-opencode/agents-md-core": "workspace:*",
109671
109672
  "@oh-my-opencode/boulder-state": "workspace:*",
@@ -116050,8 +116051,7 @@ function configureServiceAuthCommands(program, open = serviceAccountsOpen(), hoo
116050
116051
  import { existsSync as existsSync68 } from "fs";
116051
116052
 
116052
116053
  // packages/device-service-core/src/device-service.ts
116053
- import { homedir as homedir36 } from "os";
116054
- import { join as join120 } from "path";
116054
+ import { join as join121 } from "path";
116055
116055
 
116056
116056
  // packages/device-service-core/src/local-api/access.ts
116057
116057
  import { createHmac as createHmac2, randomBytes as randomBytes7, timingSafeEqual as timingSafeEqual2 } from "crypto";
@@ -116560,7 +116560,8 @@ var ERROR_CODES = [
116560
116560
  "method_unclassified",
116561
116561
  "method_local_only",
116562
116562
  "host_not_answering",
116563
- "unsupported"
116563
+ "unsupported",
116564
+ "unknown_delivery"
116564
116565
  ];
116565
116566
  var PATH_REFUSAL_PROBLEMS = [
116566
116567
  "not_absolute",
@@ -116824,6 +116825,7 @@ var ATTACH_ID_MAX = 4294967295;
116824
116825
  var MILLIS_MAX = Number.MAX_SAFE_INTEGER;
116825
116826
  var deviceId = (v, what = "device") => text(v, SESSION_DEVICE_MAX_CHARS, what);
116826
116827
  var sessionId = (v) => text(v, SESSION_ID_MAX_CHARS, "session_id");
116828
+ var durableId = (v, what = "durable_id") => text(v, SESSION_ID_MAX_CHARS, what);
116827
116829
  var attachId = (v) => uint(v, 1, ATTACH_ID_MAX, "attach_id");
116828
116830
  var millis = (v, what) => uint(v, 0, MILLIS_MAX, what);
116829
116831
  var deviceRef = (v, what = "device", fields = exactly) => {
@@ -117256,6 +117258,94 @@ var DELEGATED_EVENT_VALIDATORS = {
117256
117258
  }
117257
117259
  };
117258
117260
 
117261
+ // packages/device-service-core/src/local-api/validate-deliveries.ts
117262
+ var PROTOCOL_MAX = 1e6;
117263
+ var PAIRS_MAX = 4096;
117264
+ var pairOf = (m) => ({
117265
+ sender_device: deviceId(m["sender_device"], "sender_device"),
117266
+ session_id: durableId(m["session_id"], "session_id"),
117267
+ last_command_id: commandId(m["last_command_id"])
117268
+ });
117269
+ var PAIR_FIELDS = ["sender_device", "session_id", "last_command_id"];
117270
+ var DELIVERIES_REQUEST_VALIDATORS = {
117271
+ "delivery.pending": (v, id) => {
117272
+ const pairs = requestFields(v, ["pairs"])["pairs"];
117273
+ if (!Array.isArray(pairs) || pairs.length > PAIRS_MAX)
117274
+ return fail("pairs");
117275
+ return { id, type: "delivery.pending", pairs: pairs.map((p) => pairOf(exactly(p, PAIR_FIELDS, [], "pair"))) };
117276
+ },
117277
+ "delivery.drained": (v, id) => ({ id, type: "delivery.drained", ...pairOf(requestFields(v, PAIR_FIELDS)) }),
117278
+ "deliveries.serve": (v, id) => {
117279
+ const m = requestFields(v, ["agent_dir", "v"]);
117280
+ return {
117281
+ id,
117282
+ type: "deliveries.serve",
117283
+ agent_dir: absolutePath(m["agent_dir"], "agent_dir"),
117284
+ v: uint(m["v"], 0, PROTOCOL_MAX, "v")
117285
+ };
117286
+ },
117287
+ "delivery.answer": (v, id) => {
117288
+ const m = requestFields(v, ["sender_device", "command_id", "reply"]);
117289
+ return {
117290
+ id,
117291
+ type: "delivery.answer",
117292
+ sender_device: deviceId(m["sender_device"], "sender_device"),
117293
+ command_id: commandId(m["command_id"]),
117294
+ reply: jsonObject(m["reply"], "reply")
117295
+ };
117296
+ },
117297
+ "delivery.held": (v, id) => {
117298
+ const m = requestFields(v, ["ask_id", "holds"]);
117299
+ return { id, type: "delivery.held", ask_id: localId(m["ask_id"], "ask_id"), holds: bool(m["holds"], "holds") };
117300
+ },
117301
+ "peer.admitted": (v, id) => ({ id, type: "peer.admitted", device: deviceId(requestFields(v, ["device"])["device"]) })
117302
+ };
117303
+ var empty = (v) => {
117304
+ known(v, [], [], "data");
117305
+ return {};
117306
+ };
117307
+ var DELIVERIES_DATA = {
117308
+ "deliveries.serve": (v) => ({ wake: bool(known(v, ["wake"], [], "data")["wake"], "wake") }),
117309
+ "delivery.answer": empty,
117310
+ "delivery.held": empty,
117311
+ "delivery.pending": empty,
117312
+ "delivery.drained": (v) => {
117313
+ const m = known(v, ["kept"], ["expecting"], "data");
117314
+ const kept = bool(m["kept"], "kept");
117315
+ if (!kept)
117316
+ return m["expecting"] === undefined ? { kept } : fail("expecting");
117317
+ return { kept, expecting: commandId(m["expecting"]) };
117318
+ },
117319
+ "peer.admitted": (v) => ({ admitted: bool(known(v, ["admitted"], [], "data")["admitted"], "admitted") })
117320
+ };
117321
+ var DELIVERIES_EVENT_VALIDATORS = {
117322
+ "delivery.wake": (v) => ({
117323
+ type: "event",
117324
+ kind: "delivery.wake",
117325
+ enabled: bool(eventFields(v, ["enabled"])["enabled"], "enabled")
117326
+ }),
117327
+ "delivery.inbound": (v) => {
117328
+ const m = eventFields(v, ["command_id", "sender_device", "durable_id", "record"]);
117329
+ return {
117330
+ type: "event",
117331
+ kind: "delivery.inbound",
117332
+ command_id: commandId(m["command_id"]),
117333
+ sender_device: deviceId(m["sender_device"], "sender_device"),
117334
+ durable_id: durableId(m["durable_id"]),
117335
+ record: jsonObject(m["record"], "record")
117336
+ };
117337
+ },
117338
+ "delivery.holds": (v) => {
117339
+ const m = eventFields(v, ["ask_id", "durable_id"]);
117340
+ return {
117341
+ type: "event",
117342
+ kind: "delivery.holds",
117343
+ ask_id: localId(m["ask_id"], "ask_id"),
117344
+ durable_id: durableId(m["durable_id"])
117345
+ };
117346
+ }
117347
+ };
117348
+
117259
117349
  // packages/device-service-core/src/local-api/validate-events.ts
117260
117350
  var revisionOf = (m) => uint(m["revision"], 1, Number.MAX_SAFE_INTEGER, "revision");
117261
117351
  var devicesOf = (v) => {
@@ -117307,6 +117397,7 @@ var commandStateOf = (v) => {
117307
117397
  var VALIDATORS = {
117308
117398
  ...STREAM_EVENT_VALIDATORS,
117309
117399
  ...DELEGATED_EVENT_VALIDATORS,
117400
+ ...DELIVERIES_EVENT_VALIDATORS,
117310
117401
  "status.changed": (v) => ({
117311
117402
  type: "event",
117312
117403
  kind: "status.changed",
@@ -117437,6 +117528,7 @@ var agentDir = (v) => absolutePath(requestFields(v, ["agent_dir"])["agent_dir"],
117437
117528
  var VALIDATORS2 = {
117438
117529
  ...COMMAND_REQUEST_VALIDATORS,
117439
117530
  ...DELEGATED_REQUEST_VALIDATORS,
117531
+ ...DELIVERIES_REQUEST_VALIDATORS,
117440
117532
  authenticate: (v, id) => {
117441
117533
  const m = requestFields(v, ["client_proof"]);
117442
117534
  return { id, type: "authenticate", client_proof: text(m["client_proof"], 64, "client_proof") };
@@ -117449,6 +117541,15 @@ var VALIDATORS2 = {
117449
117541
  bare(v);
117450
117542
  return { id, type: "status.subscribe" };
117451
117543
  },
117544
+ "control.session_wake.get": (v, id) => {
117545
+ bare(v);
117546
+ return { id, type: "control.session_wake.get" };
117547
+ },
117548
+ "control.session_wake.set": (v, id) => {
117549
+ const value = requestFields(v, ["enabled"])["enabled"];
117550
+ const enabled = value === null || typeof value === "boolean" ? value : fail("enabled");
117551
+ return { id, type: "control.session_wake.set", enabled };
117552
+ },
117452
117553
  "control.attach.get": (v, id) => {
117453
117554
  bare(v);
117454
117555
  return { id, type: "control.attach.get" };
@@ -117585,7 +117686,7 @@ var validateWelcome = (v) => asViolation(() => {
117585
117686
  state: statusOf(m["state"])
117586
117687
  };
117587
117688
  });
117588
- var empty = (v) => {
117689
+ var empty2 = (v) => {
117589
117690
  known(v, [], [], "data");
117590
117691
  return {};
117591
117692
  };
@@ -117598,35 +117699,49 @@ var attachState = (v) => {
117598
117699
  changedAt: typeof changedAt === "string" ? changedAt : fail("changedAt")
117599
117700
  };
117600
117701
  };
117702
+ var sessionWakeState = (v) => {
117703
+ const m = known(v, ["enabled", "stored", "changedAt", "overridden"], [], "data");
117704
+ const s = m["stored"];
117705
+ const changedAt = m["changedAt"];
117706
+ return {
117707
+ enabled: bool(m["enabled"], "enabled"),
117708
+ stored: s === null || typeof s === "boolean" ? s : s === "unreadable" ? "unreadable" : fail("stored"),
117709
+ changedAt: typeof changedAt === "string" ? changedAt : fail("changedAt"),
117710
+ overridden: bool(m["overridden"], "overridden")
117711
+ };
117712
+ };
117601
117713
  var DATA = {
117602
- authenticate: empty,
117714
+ authenticate: empty2,
117603
117715
  "status.get": statusOf,
117604
- "status.subscribe": empty,
117716
+ "status.subscribe": empty2,
117605
117717
  "service.set_enabled": (v) => ({ enabled: bool(one(v, "enabled"), "enabled") }),
117606
- "refresher.register": empty,
117718
+ "refresher.register": empty2,
117607
117719
  "device.adopt": (v) => ({ device: deviceRef(one(v, "device"), "device", known) }),
117608
- "device.forget": empty,
117720
+ "device.forget": empty2,
117609
117721
  "device.info": (v) => ({
117610
117722
  device: nullable2(one(v, "device"), (d) => deviceRef(d, "device", known))
117611
117723
  }),
117612
- "endpoints.register": empty,
117613
- "endpoints.unregister": empty,
117724
+ "endpoints.register": empty2,
117725
+ "endpoints.unregister": empty2,
117614
117726
  "devices.list": (v) => {
117615
117727
  const devices = one(v, "devices");
117616
117728
  return Array.isArray(devices) ? { devices: devices.map(deviceRowOf) } : fail("devices");
117617
117729
  },
117618
117730
  "sessions.list": (v) => ({ query_id: localId(one(v, "query_id"), "query_id") }),
117619
117731
  "session.attach": (v) => ({ attach: localId(one(v, "attach"), "attach") }),
117620
- "session.detach": empty,
117732
+ "session.detach": empty2,
117621
117733
  "session.command": (v) => ({ command_id: commandId(one(v, "command_id")) }),
117622
117734
  "session.command_part": (v) => ({
117623
117735
  received: uint(one(v, "received"), 0, LOCAL_UPLOAD_PARTS_MAX - 1, "received")
117624
117736
  }),
117625
117737
  "session.read": (v) => ({ query_id: localId(one(v, "query_id"), "query_id") }),
117626
- "enforcement.report": empty,
117627
- "owner.shutdown_for_upgrade": empty,
117738
+ "enforcement.report": empty2,
117739
+ "owner.shutdown_for_upgrade": empty2,
117628
117740
  "session.endpoints": endpointsData,
117629
117741
  "session.locate": locateData,
117742
+ ...DELIVERIES_DATA,
117743
+ "control.session_wake.get": sessionWakeState,
117744
+ "control.session_wake.set": sessionWakeState,
117630
117745
  "control.attach.get": attachState,
117631
117746
  "control.attach.set": attachState
117632
117747
  };
@@ -117715,6 +117830,9 @@ class EventAssembler {
117715
117830
  case "session.command_blob_chunk":
117716
117831
  case "session.command_blob_done":
117717
117832
  case "session.channel_closed":
117833
+ case "delivery.inbound":
117834
+ case "delivery.holds":
117835
+ case "delivery.wake":
117718
117836
  return;
117719
117837
  default:
117720
117838
  return assertNever(event);
@@ -118140,7 +118258,8 @@ var handshake = (connection, options) => new Promise((resolve, reject) => {
118140
118258
  }, HANDSHAKE_TIMEOUT_MS);
118141
118259
  proveAndAuthenticate(connection, options).then(resolve, reject).finally(cancel);
118142
118260
  });
118143
- var sendCommand = async (connection, attach, rpc, command_id, route) => {
118261
+ var sendCommand = async (connection, attach, rpc, command_id, route, accepts) => {
118262
+ const marked = accepts === undefined ? {} : { accepts };
118144
118263
  const sent = command_id ?? mintId();
118145
118264
  const id = { command_id: sent };
118146
118265
  const timedOut = (error) => {
@@ -118167,9 +118286,26 @@ var sendCommand = async (connection, attach, rpc, command_id, route) => {
118167
118286
  const upload_id = mintId();
118168
118287
  const parts = uploadParts(json).map((part) => connection.request("session.command_part", { attach, upload_id, ...part }));
118169
118288
  await Promise.all(parts);
118170
- return (await connection.request("session.command", { attach, ...id, ...route, upload_id }).catch(timedOut)).command_id;
118289
+ return (await connection.request("session.command", { attach, ...id, ...marked, ...route, upload_id }).catch(timedOut)).command_id;
118290
+ }
118291
+ return (await connection.request("session.command", { attach, ...id, ...marked, ...route, rpc }).catch(timedOut)).command_id;
118292
+ };
118293
+ var sendWakeCommand = async (connection, device, durableId, rpc, command_id) => {
118294
+ const sent = command_id ?? mintId();
118295
+ const params = { wake: { device, durable_id: durableId }, command_id: sent, rpc };
118296
+ if (lineBytes({ id: "x".repeat(REQUEST_ID_MAX_CHARS), type: "session.command", ...params }) > LOCAL_INLINE_MAX)
118297
+ throw new LocalApiError("message_too_long", "a wake command travels inline only", {
118298
+ limit_chars: MESSAGE_LIMIT_CHARS
118299
+ });
118300
+ try {
118301
+ return (await connection.request("session.command", params)).command_id;
118302
+ } catch (error) {
118303
+ if (error instanceof LocalApiError && error.code === "request_timeout")
118304
+ throw new LocalApiError("request_timeout", `command ${sent} may have been dispatched; follow its command state`, {
118305
+ command_id: sent
118306
+ });
118307
+ throw error;
118171
118308
  }
118172
- return (await connection.request("session.command", { attach, ...id, ...route, rpc }).catch(timedOut)).command_id;
118173
118309
  };
118174
118310
  var sendEndpointCommand = async (connection, device, endpoint, rpc, command_id, locate) => {
118175
118311
  const sent = command_id ?? mintId();
@@ -118212,7 +118348,8 @@ var connectLocalApi = async (options) => {
118212
118348
  listeners.delete(listener);
118213
118349
  };
118214
118350
  },
118215
- command: (attach, rpc, command_id, route = {}) => sendCommand(connection, attach, rpc, command_id, route),
118351
+ command: (attach, rpc, command_id, route = {}, options) => sendCommand(connection, attach, rpc, command_id, route, options?.accepts),
118352
+ wakeCommand: (device, durableId, rpc, command_id) => sendWakeCommand(connection, device, durableId, rpc, command_id),
118216
118353
  endpointCommand: (device, endpoint, rpc, command_id, options) => sendEndpointCommand(connection, device, endpoint, rpc, command_id, options?.locate === true),
118217
118354
  list: (filter, onRevision, rows) => new Promise((resolve, reject) => {
118218
118355
  const params = {
@@ -118481,7 +118618,7 @@ function openAttach(client, device, sessionId) {
118481
118618
  failure: () => failure,
118482
118619
  onFrame: (listener) => delegated.onFrame(listener),
118483
118620
  onChannelLoss: (listener) => delegated.onLoss(listener),
118484
- command: (rpc) => new Promise((resolve, reject) => {
118621
+ command: (rpc, options) => new Promise((resolve, reject) => {
118485
118622
  if (ended)
118486
118623
  return reject(new Error("the attach has ended"));
118487
118624
  const commandId = randomBytes8(16).toString("base64url");
@@ -118505,7 +118642,7 @@ function openAttach(client, device, sessionId) {
118505
118642
  resolve(response === undefined ? { outcome: event } : { outcome: event, response });
118506
118643
  });
118507
118644
  commands.add(end);
118508
- client.command(attach, rpc, commandId, { delegated: true }).catch((error) => {
118645
+ client.command(attach, rpc, commandId, { delegated: true }, options).catch((error) => {
118509
118646
  settle();
118510
118647
  reject(error);
118511
118648
  });
@@ -118549,6 +118686,9 @@ function newestRowsListing(client) {
118549
118686
  // packages/device-service-core/src/device-service.ts
118550
118687
  import { randomBytes as randomBytes9 } from "crypto";
118551
118688
 
118689
+ // packages/device-service-core/src/minimum-in-effect.ts
118690
+ var minimumInEffect = (option, key, shipped) => option === undefined ? shipped : option[key];
118691
+
118552
118692
  // packages/device-service-core/src/release/version.ts
118553
118693
  var SEMVER2 = /^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/;
118554
118694
  var compareIdentifier = (a, b) => {
@@ -118585,9 +118725,49 @@ var compareVersions4 = (a, b) => {
118585
118725
  }
118586
118726
  return 0;
118587
118727
  };
118728
+
118729
+ // packages/device-service-core/src/state-dir.ts
118730
+ import { readFileSync as readFileSync48, statSync as statSync10 } from "fs";
118731
+ import { homedir as homedir36 } from "os";
118732
+ import { dirname as dirname49, join as join120, posix as posix17, win32 as win3212 } from "path";
118733
+ var DEVICE_SERVICE_STATE_DIR_ENV = "OMO_DEVICE_SERVICE_STATE_DIR";
118734
+ var LOCATION_FILE = "device-service.location.json";
118735
+ var isAbsoluteOn = (platform, path) => (platform === "win32" ? win3212 : posix17).isAbsolute(path);
118736
+ function defaultStateDir(platform, env, home) {
118737
+ if (platform !== "win32")
118738
+ return join120(home, ".omo", "device-service");
118739
+ const localAppData = env.LOCALAPPDATA ?? join120(home, "AppData", "Local");
118740
+ return join120(localAppData, "OmO", "device-service");
118741
+ }
118742
+ function discoveredStateDir(platform, defaultDir) {
118743
+ try {
118744
+ const parsed = JSON.parse(readFileSync48(join120(dirname49(defaultDir), LOCATION_FILE), "utf8"));
118745
+ if (typeof parsed !== "object" || parsed === null || !("v" in parsed) || !("state_dir" in parsed))
118746
+ return;
118747
+ const { v, state_dir: stateDir } = parsed;
118748
+ if (v !== 1 || typeof stateDir !== "string" || !isAbsoluteOn(platform, stateDir))
118749
+ return;
118750
+ return statSync10(stateDir).isDirectory() ? stateDir : undefined;
118751
+ } catch {
118752
+ return;
118753
+ }
118754
+ }
118755
+ function deviceServiceStateDir(platform = process.platform, env = process.env, home = homedir36()) {
118756
+ const explicit = env[DEVICE_SERVICE_STATE_DIR_ENV];
118757
+ if (explicit !== undefined && explicit !== "" && isAbsoluteOn(platform, explicit))
118758
+ return explicit;
118759
+ const defaultDir = defaultStateDir(platform, env, home);
118760
+ return discoveredStateDir(platform, defaultDir) ?? defaultDir;
118761
+ }
118588
118762
  // packages/device-service-core/src/device-service.ts
118589
118763
  var ENDPOINT_COMMAND_WAIT_MS = 120000;
118590
118764
  function sendToEndpoint(client, device, endpoint, rpc, locate) {
118765
+ return followDelegatedCommand(client, device, (commandId) => {
118766
+ const send = (asked) => client.endpointCommand(device, endpoint, rpc, commandId, { locate: asked });
118767
+ return send(locate).catch((error) => locate && error instanceof LocalApiError && error.code === "invalid_request" ? send(false) : Promise.reject(error));
118768
+ });
118769
+ }
118770
+ function followDelegatedCommand(client, device, send) {
118591
118771
  return new Promise((resolve, reject) => {
118592
118772
  const commandId = randomBytes9(16).toString("base64url");
118593
118773
  const channel = followDelegatedChannel(device);
@@ -118622,8 +118802,7 @@ function sendToEndpoint(client, device, endpoint, rpc, locate) {
118622
118802
  const timer = setTimeout(() => fail(new Error(`no final state for endpoint command ${commandId} within ${ENDPOINT_COMMAND_WAIT_MS} ms`)), ENDPOINT_COMMAND_WAIT_MS);
118623
118803
  timer.unref?.();
118624
118804
  client.closed.then(() => fail(new Error("the connection closed before the endpoint command settled")));
118625
- const send = (asked) => client.endpointCommand(device, endpoint, rpc, commandId, { locate: asked });
118626
- send(locate).catch((error) => locate && error instanceof LocalApiError && error.code === "invalid_request" ? send(false).catch(fail) : fail(error));
118805
+ send(commandId).catch(fail);
118627
118806
  });
118628
118807
  }
118629
118808
  var markNotSent = (error) => error instanceof LocalApiError ? new LocalApiError(error.code, error.reason, {
@@ -118632,17 +118811,14 @@ var markNotSent = (error) => error instanceof LocalApiError ? new LocalApiError(
118632
118811
  ...error.path_refusal === undefined ? {} : { path_refusal: error.path_refusal },
118633
118812
  not_sent: true
118634
118813
  }) : error;
118635
- function deviceServiceStateDir(platform = process.platform, env = process.env, home = homedir36()) {
118636
- if (platform !== "win32")
118637
- return join120(home, ".omo", "device-service");
118638
- const localAppData = env.LOCALAPPDATA ?? join120(home, "AppData", "Local");
118639
- return join120(localAppData, "OmO", "device-service");
118640
- }
118641
118814
  function deviceServiceEndpointPath(stateDir, platform = process.platform) {
118642
- return join120(stateDir, platform === "win32" ? ENDPOINT_FILE : SOCKET_FILE);
118815
+ return join121(stateDir, platform === "win32" ? ENDPOINT_FILE : SOCKET_FILE);
118643
118816
  }
118644
118817
  var ADOPT_ACCOUNT_MIN_SERVICE_VERSION = "0.1.3";
118645
118818
  var acceptsAdoptAccount = (serviceVersion) => compareVersions4(serviceVersion, ADOPT_ACCOUNT_MIN_SERVICE_VERSION) >= 0;
118819
+ var WAKE_MARK_MIN_SERVICE_VERSION = "0.1.31";
118820
+ var LOCATE_SINGLE_MIN_SERVICE_VERSION = "0.1.13";
118821
+ var serviceAtLeast = (serviceVersion, minimum) => minimum !== null && compareVersions4(serviceVersion, minimum) >= 0;
118646
118822
  async function connectDeviceService(options) {
118647
118823
  const stateDir = options.stateDir ?? deviceServiceStateDir();
118648
118824
  const client = await (options.connect ?? connectLocalApi)({
@@ -118650,8 +118826,14 @@ async function connectDeviceService(options) {
118650
118826
  client: { name: "omo", version: options.version },
118651
118827
  ...options.background === true ? { transport: () => connectLocal(stateDir, { background: true }) } : {}
118652
118828
  });
118829
+ const wakeMarkMinimum = minimumInEffect(options.minimums, "wakeMark", WAKE_MARK_MIN_SERVICE_VERSION);
118830
+ const carriesWakeMark = serviceAtLeast(client.welcome.service_version, wakeMarkMinimum);
118831
+ const takesSingleLocate = serviceAtLeast(client.welcome.service_version, minimumInEffect(options.minimums, "singleLocate", LOCATE_SINGLE_MIN_SERVICE_VERSION));
118653
118832
  return {
118654
118833
  serviceVersion: client.welcome.service_version,
118834
+ carriesWakeMark,
118835
+ wakeMarkMinimum,
118836
+ takesSingleLocate,
118655
118837
  capabilities: client.welcome.capabilities,
118656
118838
  initialStatus: client.welcome.state,
118657
118839
  status: () => client.request("status.get", {}),
@@ -118669,6 +118851,8 @@ async function connectDeviceService(options) {
118669
118851
  return stop;
118670
118852
  },
118671
118853
  setEnabled: async (enabled) => (await client.request("service.set_enabled", { enabled })).enabled,
118854
+ sessionWake: () => client.request("control.session_wake.get", {}),
118855
+ setSessionWake: (enabled) => client.request("control.session_wake.set", { enabled }),
118672
118856
  attachControl: () => client.request("control.attach.get", {}),
118673
118857
  setAttachControl: (attached) => client.request("control.attach.set", { attached }),
118674
118858
  registerRefresher: async (binaryPath, version) => {
@@ -118689,7 +118873,10 @@ async function connectDeviceService(options) {
118689
118873
  thisDevice: async () => (await client.request("device.info", {})).device,
118690
118874
  devices: async () => (await client.request("devices.list", {})).devices,
118691
118875
  sessions: newestRowsListing(client),
118692
- attach: (device, sessionId) => openAttach(client, device, sessionId),
118876
+ attach: async (device, sessionId) => {
118877
+ const attached = await openAttach(client, device, sessionId);
118878
+ return carriesWakeMark ? attached : { ...attached, command: (rpc) => attached.command(rpc) };
118879
+ },
118693
118880
  endpointCommand: async (device, rpc, options) => {
118694
118881
  let endpoint;
118695
118882
  try {
@@ -118703,7 +118890,18 @@ async function connectDeviceService(options) {
118703
118890
  },
118704
118891
  close: () => client.close(),
118705
118892
  closed: client.closed,
118706
- locate: (device, engineId) => client.request("session.locate", { device, engine_id: engineId })
118893
+ locate: (device, engineId, options) => client.request("session.locate", {
118894
+ device,
118895
+ engine_id: engineId,
118896
+ ...options?.single === true && takesSingleLocate ? { single: true } : {}
118897
+ }),
118898
+ wakeCommand: async (device, durableId, rpc) => {
118899
+ if (!carriesWakeMark)
118900
+ throw new LocalApiError("unsupported", "this device service does not carry the wake target", { not_sent: true });
118901
+ return await followDelegatedCommand(client, device, (commandId) => client.wakeCommand(device, durableId, rpc, commandId).catch((error) => {
118902
+ throw error instanceof LocalApiError && error.command_id === undefined ? markNotSent(error) : error;
118903
+ }));
118904
+ }
118707
118905
  };
118708
118906
  }
118709
118907
  // packages/device-service-core/src/bootstrap.ts
@@ -118766,6 +118964,11 @@ var forgetDeviceService = async (options) => {
118766
118964
  }
118767
118965
  return "forgotten";
118768
118966
  };
118967
+ // packages/device-service-core/src/cold-wake/service-table.ts
118968
+ var SERVICE_TABLE_ENV = "OMO_RELAYD_SERVICES";
118969
+
118970
+ // packages/device-service-core/src/cold-wake/darwin.ts
118971
+ var TABLE_KEY = `EnvironmentVariables.${SERVICE_TABLE_ENV}`;
118769
118972
  // packages/device-service-core/src/release/release-assets.ts
118770
118973
  var MANIFEST = "latest.json";
118771
118974
  var CHECKSUMS_MAX_BYTES = 64 * 1024;
@@ -118837,7 +119040,7 @@ var NONE2 = Symbol("none registered");
118837
119040
  // packages/omo-native/package.json
118838
119041
  var package_default4 = {
118839
119042
  name: "omo-ai",
118840
- version: "5.1.71",
119043
+ version: "5.1.72",
118841
119044
  type: "module",
118842
119045
  description: "OmO Native - the standalone omo command with the OMO extension built in: bun add -g omo-ai",
118843
119046
  bin: {
@@ -118854,7 +119057,7 @@ var package_default4 = {
118854
119057
  postinstall: "node bin/senpi-patch.mjs"
118855
119058
  },
118856
119059
  dependencies: {
118857
- "@code-yeongyu/senpi": "2026.11.15"
119060
+ "@code-yeongyu/senpi": "2026.11.15-2"
118858
119061
  },
118859
119062
  repository: {
118860
119063
  type: "git",
@@ -119149,7 +119352,7 @@ async function boulder(options) {
119149
119352
  }
119150
119353
  // packages/omo-opencode/src/cli/codex-ulw-loop.ts
119151
119354
  import { spawn as spawn7 } from "child_process";
119152
- import { existsSync as existsSync70, readFileSync as readFileSync48, realpathSync as realpathSync14 } from "fs";
119355
+ import { existsSync as existsSync70, readFileSync as readFileSync49, realpathSync as realpathSync14 } from "fs";
119153
119356
  import { homedir as homedir37 } from "os";
119154
119357
  var ULW_LOOP_DELEGATION_SENTINEL = "OMO_ULW_LOOP_DELEGATED";
119155
119358
  function resolveCodexUlwLoopCommand(input = {}) {
@@ -119199,7 +119402,7 @@ function resolveLegacyLocalOmoBin(env, homeDir, currentExecutablePaths) {
119199
119402
  }
119200
119403
  function isGeneratedRuntimeWrapper(candidate) {
119201
119404
  try {
119202
- return readFileSync48(candidate, "utf8").includes(RUNTIME_WRAPPER_MARKER);
119405
+ return readFileSync49(candidate, "utf8").includes(RUNTIME_WRAPPER_MARKER);
119203
119406
  } catch (error) {
119204
119407
  if (error instanceof Error)
119205
119408
  return false;
@@ -119634,7 +119837,7 @@ prunes.
119634
119837
 
119635
119838
  // packages/omo-opencode/src/cli/config-migrate.ts
119636
119839
  init_startup_migration();
119637
- import { posix as posix17 } from "path";
119840
+ import { posix as posix18 } from "path";
119638
119841
  function reports(result) {
119639
119842
  return result.results.map((entry) => ({
119640
119843
  diagnostics: entry.diagnostics,
@@ -119668,7 +119871,7 @@ function runConfigMigrate(options = {}) {
119668
119871
  dryRun: options.dryRun ?? false,
119669
119872
  environment,
119670
119873
  ...homeDir === undefined ? {} : { env: { HOME: homeDir }, homeDir },
119671
- pathOperations: posix17
119874
+ pathOperations: posix18
119672
119875
  });
119673
119876
  const report = reports(result);
119674
119877
  const response = {