oh-my-opencode 5.1.82 → 5.1.84

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 (150) hide show
  1. package/dist/cli/cli-program.d.ts +3 -0
  2. package/dist/cli/index.js +202 -193
  3. package/dist/cli-node/index.js +202 -193
  4. package/dist/index.js +28 -22
  5. package/dist/skills/browser/SKILL.md +97 -91
  6. package/dist/skills/browser/references/commands.md +88 -26
  7. package/dist/skills/browser/references/desktop.md +21 -0
  8. package/dist/skills/browser/references/install.md +18 -0
  9. package/dist/skills/browser/references/owned-engine/README.md +5 -2
  10. package/dist/skills/browser/references/owned-engine/frames-and-humans.md +7 -2
  11. package/dist/skills/browser/references/owned-engine/network.md +4 -3
  12. package/dist/skills/browser/references/recipes/1password.md +4 -2
  13. package/dist/skills/browser/runtime/omowright/index.js +7 -7
  14. package/dist/skills/browser/runtime/omowright/manifest.json +4 -4
  15. package/dist/skills/debugging/references/tools/browser-qa.md +1 -1
  16. package/dist/skills/programming/SKILL.md +51 -320
  17. package/dist/skills/programming/references/go/README.md +1 -0
  18. package/dist/skills/programming/references/python/README.md +21 -3
  19. package/dist/skills/programming/references/python/error-handling.md +14 -0
  20. package/dist/skills/programming/references/rust/README.md +5 -1
  21. package/dist/skills/programming/references/typescript/README.md +9 -3
  22. package/dist/skills/programming/references/typescript/error-handling.md +18 -0
  23. package/dist/skills/ultimate-browsing/SKILL.md +1 -1
  24. package/dist/skills/visual-qa/references/browser-setup.md +5 -5
  25. package/dist/tui.js +16 -16
  26. package/package.json +14 -14
  27. package/packages/lsp-core/src/lsp/client-key.ts +14 -0
  28. package/packages/lsp-core/src/lsp/client-startup.ts +139 -0
  29. package/packages/lsp-core/src/lsp/client-wrapper.ts +4 -4
  30. package/packages/lsp-core/src/lsp/config-loader.ts +15 -0
  31. package/packages/lsp-core/src/lsp/directory-diagnostics-group-scan.test.ts +388 -0
  32. package/packages/lsp-core/src/lsp/directory-diagnostics-mixed-typescript.test.ts +124 -0
  33. package/packages/lsp-core/src/lsp/directory-diagnostics.test.ts +4 -4
  34. package/packages/lsp-core/src/lsp/directory-diagnostics.ts +38 -41
  35. package/packages/lsp-core/src/lsp/directory-group-scan.ts +124 -0
  36. package/packages/lsp-core/src/lsp/directory-server-groups.ts +84 -0
  37. package/packages/lsp-core/src/lsp/manager-acquisition.test.ts +115 -0
  38. package/packages/lsp-core/src/lsp/manager-lifecycle.test.ts +9 -9
  39. package/packages/lsp-core/src/lsp/manager-max-clients.test.ts +41 -16
  40. package/packages/lsp-core/src/lsp/manager-reaping.test.ts +119 -0
  41. package/packages/lsp-core/src/lsp/manager-test-support.ts +108 -0
  42. package/packages/lsp-core/src/lsp/manager.ts +80 -249
  43. package/packages/lsp-core/src/lsp/native-typescript.ts +88 -0
  44. package/packages/lsp-core/src/lsp/server-installation.ts +15 -7
  45. package/packages/lsp-core/src/lsp/server-resolution-typescript-native.test.ts +327 -0
  46. package/packages/lsp-core/src/lsp/server-resolution.ts +28 -2
  47. package/packages/lsp-core/src/lsp/timer-provider.ts +17 -0
  48. package/packages/lsp-core/src/lsp/typescript-project-test-support.ts +52 -0
  49. package/packages/lsp-daemon/dist/cli.js +486 -310
  50. package/packages/lsp-daemon/dist/client.js +472 -296
  51. package/packages/lsp-daemon/dist/index.js +476 -300
  52. package/packages/lsp-tools-mcp/dist/cli.js +467 -291
  53. package/packages/lsp-tools-mcp/dist/lsp/manager.js +160 -193
  54. package/packages/lsp-tools-mcp/dist/mcp.js +467 -291
  55. package/packages/lsp-tools-mcp/dist/tools.js +467 -291
  56. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  57. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +2 -2
  58. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  59. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  60. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  61. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  62. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  63. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  64. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  65. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  66. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
  67. package/packages/omo-codex/plugin/components/lsp/dist/cli.js +478 -313
  68. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  69. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  70. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  71. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  72. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  73. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  74. package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +8711 -172
  75. package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +8660 -121
  76. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  77. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  78. package/packages/omo-codex/plugin/components/telemetry/src/posthog.ts +5 -0
  79. package/packages/omo-codex/plugin/components/telemetry/tsconfig.json +2 -2
  80. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  81. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  82. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  83. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  84. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  85. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  86. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  87. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  88. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  89. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  90. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  91. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  92. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  93. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  94. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  95. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  96. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  97. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  98. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  99. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  100. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  101. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  102. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  103. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  104. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  105. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  106. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  107. package/packages/omo-codex/plugin/package-lock.json +12 -12
  108. package/packages/omo-codex/plugin/package.json +1 -1
  109. package/packages/omo-codex/plugin/shared/src/config-loader.ts +15 -1
  110. package/packages/omo-codex/plugin/skills/browser/SKILL.md +97 -91
  111. package/packages/omo-codex/plugin/skills/browser/references/commands.md +88 -26
  112. package/packages/omo-codex/plugin/skills/browser/references/desktop.md +21 -0
  113. package/packages/omo-codex/plugin/skills/browser/references/install.md +18 -0
  114. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/README.md +5 -2
  115. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/frames-and-humans.md +7 -2
  116. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/network.md +4 -3
  117. package/packages/omo-codex/plugin/skills/browser/references/recipes/1password.md +4 -2
  118. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +7 -7
  119. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +4 -4
  120. package/packages/omo-codex/plugin/skills/debugging/references/tools/browser-qa.md +1 -1
  121. package/packages/omo-codex/plugin/skills/programming/SKILL.md +51 -320
  122. package/packages/omo-codex/plugin/skills/programming/references/go/README.md +1 -0
  123. package/packages/omo-codex/plugin/skills/programming/references/python/README.md +21 -3
  124. package/packages/omo-codex/plugin/skills/programming/references/python/error-handling.md +14 -0
  125. package/packages/omo-codex/plugin/skills/programming/references/rust/README.md +5 -1
  126. package/packages/omo-codex/plugin/skills/programming/references/typescript/README.md +9 -3
  127. package/packages/omo-codex/plugin/skills/programming/references/typescript/error-handling.md +18 -0
  128. package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +1 -1
  129. package/packages/omo-codex/plugin/skills/visual-qa/references/browser-setup.md +5 -5
  130. package/packages/omo-codex/scripts/install-dist/install-local.mjs +21189 -20653
  131. package/packages/shared-skills/skills/browser/SKILL.md +97 -91
  132. package/packages/shared-skills/skills/browser/references/commands.md +88 -26
  133. package/packages/shared-skills/skills/browser/references/desktop.md +21 -0
  134. package/packages/shared-skills/skills/browser/references/install.md +18 -0
  135. package/packages/shared-skills/skills/browser/references/owned-engine/README.md +5 -2
  136. package/packages/shared-skills/skills/browser/references/owned-engine/frames-and-humans.md +7 -2
  137. package/packages/shared-skills/skills/browser/references/owned-engine/network.md +4 -3
  138. package/packages/shared-skills/skills/browser/references/recipes/1password.md +4 -2
  139. package/packages/shared-skills/skills/browser/runtime/omowright/index.js +7 -7
  140. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +4 -4
  141. package/packages/shared-skills/skills/debugging/references/tools/browser-qa.md +1 -1
  142. package/packages/shared-skills/skills/programming/SKILL.md +51 -320
  143. package/packages/shared-skills/skills/programming/references/go/README.md +1 -0
  144. package/packages/shared-skills/skills/programming/references/python/README.md +21 -3
  145. package/packages/shared-skills/skills/programming/references/python/error-handling.md +14 -0
  146. package/packages/shared-skills/skills/programming/references/rust/README.md +5 -1
  147. package/packages/shared-skills/skills/programming/references/typescript/README.md +9 -3
  148. package/packages/shared-skills/skills/programming/references/typescript/error-handling.md +18 -0
  149. package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +1 -1
  150. package/packages/shared-skills/skills/visual-qa/references/browser-setup.md +5 -5
@@ -2133,7 +2133,7 @@ var package_default;
2133
2133
  var init_package = __esm(() => {
2134
2134
  package_default = {
2135
2135
  name: "oh-my-opencode",
2136
- version: "5.1.82",
2136
+ version: "5.1.84",
2137
2137
  description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
2138
2138
  main: "./dist/index.js",
2139
2139
  types: "dist/index.d.ts",
@@ -2397,7 +2397,7 @@ var init_package = __esm(() => {
2397
2397
  "jsonc-parser": "^3.3.1",
2398
2398
  knip: "6.43.0",
2399
2399
  "node-pty": "^1.1.0",
2400
- omowright: "^0.3.2",
2400
+ omowright: "^0.3.4",
2401
2401
  "oxc-parser": "0.148.0",
2402
2402
  oxlint: "1.89.0",
2403
2403
  picocolors: "^1.1.1",
@@ -2407,18 +2407,18 @@ var init_package = __esm(() => {
2407
2407
  typescript: "^7.0.2"
2408
2408
  },
2409
2409
  optionalDependencies: {
2410
- "oh-my-opencode-darwin-arm64": "5.1.82",
2411
- "oh-my-opencode-darwin-x64": "5.1.82",
2412
- "oh-my-opencode-darwin-x64-baseline": "5.1.82",
2413
- "oh-my-opencode-linux-arm64": "5.1.82",
2414
- "oh-my-opencode-linux-arm64-musl": "5.1.82",
2415
- "oh-my-opencode-linux-x64": "5.1.82",
2416
- "oh-my-opencode-linux-x64-baseline": "5.1.82",
2417
- "oh-my-opencode-linux-x64-musl": "5.1.82",
2418
- "oh-my-opencode-linux-x64-musl-baseline": "5.1.82",
2419
- "oh-my-opencode-windows-arm64": "5.1.82",
2420
- "oh-my-opencode-windows-x64": "5.1.82",
2421
- "oh-my-opencode-windows-x64-baseline": "5.1.82"
2410
+ "oh-my-opencode-darwin-arm64": "5.1.84",
2411
+ "oh-my-opencode-darwin-x64": "5.1.84",
2412
+ "oh-my-opencode-darwin-x64-baseline": "5.1.84",
2413
+ "oh-my-opencode-linux-arm64": "5.1.84",
2414
+ "oh-my-opencode-linux-arm64-musl": "5.1.84",
2415
+ "oh-my-opencode-linux-x64": "5.1.84",
2416
+ "oh-my-opencode-linux-x64-baseline": "5.1.84",
2417
+ "oh-my-opencode-linux-x64-musl": "5.1.84",
2418
+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.84",
2419
+ "oh-my-opencode-windows-arm64": "5.1.84",
2420
+ "oh-my-opencode-windows-x64": "5.1.84",
2421
+ "oh-my-opencode-windows-x64-baseline": "5.1.84"
2422
2422
  },
2423
2423
  overrides: {
2424
2424
  hono: "^4.13.8",
@@ -2434,6 +2434,91 @@ var init_package = __esm(() => {
2434
2434
  };
2435
2435
  });
2436
2436
 
2437
+ // packages/telemetry-core/src/constants.ts
2438
+ var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
2439
+
2440
+ // packages/telemetry-core/src/env.ts
2441
+ function normalizeEnvValue(value) {
2442
+ return value?.trim().toLowerCase();
2443
+ }
2444
+ function includesValue(values, value) {
2445
+ const normalized = normalizeEnvValue(value);
2446
+ return normalized !== undefined && values.includes(normalized);
2447
+ }
2448
+ function isDisableFlag(value) {
2449
+ return includesValue(TRUTHY_DISABLE_VALUES, value);
2450
+ }
2451
+ function isSendOptOutFlag(value) {
2452
+ return includesValue(SEND_OPT_OUT_VALUES, value);
2453
+ }
2454
+ function shouldDisableTelemetry(input) {
2455
+ const env = input.env ?? process.env;
2456
+ const globalPrefix = input.globalEnvPrefix ?? "OMO";
2457
+ const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
2458
+ if (isDisableFlag(env["DO_NOT_TRACK"]) || isDisableFlag(env[`${globalPrefix}_DISABLE_TELEMETRY`])) {
2459
+ return true;
2460
+ }
2461
+ if (env["OTEL_SDK_DISABLED"]?.trim().toLowerCase() === "true") {
2462
+ return true;
2463
+ }
2464
+ for (const prefix of prefixes) {
2465
+ if (isDisableFlag(env[`${prefix}_DISABLE_POSTHOG`])) {
2466
+ return true;
2467
+ }
2468
+ if (isSendOptOutFlag(env[`${prefix}_SEND_ANONYMOUS_TELEMETRY`])) {
2469
+ return true;
2470
+ }
2471
+ }
2472
+ return false;
2473
+ }
2474
+ function getTelemetryApiKey(env = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
2475
+ return env["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
2476
+ }
2477
+ function isConfiguredTelemetryApiKey(apiKey) {
2478
+ const normalized = apiKey.trim();
2479
+ return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
2480
+ }
2481
+ function hasTelemetryApiKey(env, defaultApiKey) {
2482
+ return isConfiguredTelemetryApiKey(getTelemetryApiKey(env, defaultApiKey));
2483
+ }
2484
+ function getTelemetryHost(env = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
2485
+ return env["POSTHOG_HOST"]?.trim() || defaultHost;
2486
+ }
2487
+ var TRUTHY_DISABLE_VALUES, SEND_OPT_OUT_VALUES;
2488
+ var init_env = __esm(() => {
2489
+ TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
2490
+ SEND_OPT_OUT_VALUES = ["0", "false", "no"];
2491
+ });
2492
+
2493
+ // packages/telemetry-core/src/otlp-config.ts
2494
+ var DEFAULT_OTLP_ENDPOINT = "https://t.omo.dev", RESOURCE_OR_RELAY_KEYS;
2495
+ var init_otlp_config = __esm(() => {
2496
+ RESOURCE_OR_RELAY_KEYS = new Set([
2497
+ "$os",
2498
+ "$os_version",
2499
+ "$process_person_profile",
2500
+ "$session_id",
2501
+ "ci",
2502
+ "event_id",
2503
+ "install_hash",
2504
+ "package_version",
2505
+ "platform",
2506
+ "product_name",
2507
+ "schema_version",
2508
+ "surface"
2509
+ ]);
2510
+ });
2511
+
2512
+ // packages/telemetry-core/src/destinations.ts
2513
+ var TELEMETRY_DESTINATIONS;
2514
+ var init_destinations = __esm(() => {
2515
+ init_otlp_config();
2516
+ TELEMETRY_DESTINATIONS = [
2517
+ { kind: "posthog", label: "PostHog in the United States", host: DEFAULT_POSTHOG_HOST },
2518
+ { kind: "otlp", label: "the OmO telemetry collector", host: DEFAULT_OTLP_ENDPOINT }
2519
+ ];
2520
+ });
2521
+
2437
2522
  // node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
2438
2523
  var require_picocolors = __commonJS(function(exports, module) {
2439
2524
  var p = process || {};
@@ -77824,6 +77909,9 @@ var init_team = __esm(() => {
77824
77909
  });
77825
77910
 
77826
77911
  // packages/omo-config-core/src/schema/telemetry.ts
77912
+ function isOmoTelemetryEnabled(config) {
77913
+ return config.telemetry?.enabled ?? true;
77914
+ }
77827
77915
  var OmoTelemetrySettingsShape, OmoTelemetrySettingsLayerSchema, OmoTelemetrySettingsSchema;
77828
77916
  var init_telemetry = __esm(() => {
77829
77917
  init_zod();
@@ -78047,7 +78135,7 @@ var init_config = __esm(() => {
78047
78135
 
78048
78136
  // packages/omo-config-core/src/schema/legacy-category-names.ts
78049
78137
  function canonicalCategoryName(name) {
78050
- return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] : name;
78138
+ return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] ?? name : name;
78051
78139
  }
78052
78140
  function isRecord9(value) {
78053
78141
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -78109,7 +78197,7 @@ var init_legacy_category_names = __esm(() => {
78109
78197
 
78110
78198
  // packages/omo-config-core/src/schema/legacy-harness-names.ts
78111
78199
  function canonicalHarnessName(name) {
78112
- return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] : name;
78200
+ return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] ?? name : name;
78113
78201
  }
78114
78202
  function harnessBlockKey(harness) {
78115
78203
  return `[${harness}]`;
@@ -79798,15 +79886,15 @@ function stripRetiredCodegraph(document) {
79798
79886
  if (!isPlainObject5(value))
79799
79887
  return;
79800
79888
  if (Object.prototype.hasOwnProperty.call(value, "codegraph")) {
79801
- delete value.codegraph;
79889
+ delete value["codegraph"];
79802
79890
  removedPaths.push([...path, "codegraph"]);
79803
79891
  }
79804
79892
  };
79805
79893
  strip(stripped, []);
79806
79894
  for (const harness of OMO_HARNESS_BLOCKS)
79807
79895
  strip(stripped[harness], [harness]);
79808
- if (isPlainObject5(stripped.profiles)) {
79809
- for (const [profileName, profile] of Object.entries(stripped.profiles)) {
79896
+ if (isPlainObject5(stripped["profiles"])) {
79897
+ for (const [profileName, profile] of Object.entries(stripped["profiles"])) {
79810
79898
  strip(profile, ["profiles", profileName]);
79811
79899
  if (!isPlainObject5(profile))
79812
79900
  continue;
@@ -83054,9 +83142,6 @@ var init_activity_state = __esm(() => {
83054
83142
  // packages/telemetry-core/src/consent-gated-fetch.ts
83055
83143
  var init_consent_gated_fetch = () => {};
83056
83144
 
83057
- // packages/telemetry-core/src/constants.ts
83058
- var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
83059
-
83060
83145
  // packages/telemetry-core/src/diagnostics.ts
83061
83146
  import { appendFileSync as appendFileSync2, existsSync as existsSync26, mkdirSync as mkdirSync11, readFileSync as readFileSync13 } from "node:fs";
83062
83147
  import { join as join57 } from "node:path";
@@ -83178,56 +83263,6 @@ var init_diagnostics = __esm(() => {
83178
83263
  DIAGNOSTICS_MAX_BYTES = 256 * 1024;
83179
83264
  });
83180
83265
 
83181
- // packages/telemetry-core/src/env.ts
83182
- function normalizeEnvValue(value) {
83183
- return value?.trim().toLowerCase();
83184
- }
83185
- function includesValue(values, value) {
83186
- const normalized = normalizeEnvValue(value);
83187
- return normalized !== undefined && values.includes(normalized);
83188
- }
83189
- function isDisableFlag(value) {
83190
- return includesValue(TRUTHY_DISABLE_VALUES, value);
83191
- }
83192
- function isSendOptOutFlag(value) {
83193
- return includesValue(SEND_OPT_OUT_VALUES, value);
83194
- }
83195
- function shouldDisableTelemetry(input) {
83196
- const env = input.env ?? process.env;
83197
- const globalPrefix = input.globalEnvPrefix ?? "OMO";
83198
- const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
83199
- if (isDisableFlag(env["DO_NOT_TRACK"]) || isDisableFlag(env[`${globalPrefix}_DISABLE_TELEMETRY`])) {
83200
- return true;
83201
- }
83202
- for (const prefix of prefixes) {
83203
- if (isDisableFlag(env[`${prefix}_DISABLE_POSTHOG`])) {
83204
- return true;
83205
- }
83206
- if (isSendOptOutFlag(env[`${prefix}_SEND_ANONYMOUS_TELEMETRY`])) {
83207
- return true;
83208
- }
83209
- }
83210
- return false;
83211
- }
83212
- function getTelemetryApiKey(env = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
83213
- return env["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
83214
- }
83215
- function isConfiguredTelemetryApiKey(apiKey) {
83216
- const normalized = apiKey.trim();
83217
- return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
83218
- }
83219
- function hasTelemetryApiKey(env, defaultApiKey) {
83220
- return isConfiguredTelemetryApiKey(getTelemetryApiKey(env, defaultApiKey));
83221
- }
83222
- function getTelemetryHost(env = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
83223
- return env["POSTHOG_HOST"]?.trim() || defaultHost;
83224
- }
83225
- var TRUTHY_DISABLE_VALUES, SEND_OPT_OUT_VALUES;
83226
- var init_env = __esm(() => {
83227
- TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
83228
- SEND_OPT_OUT_VALUES = ["0", "false", "no", "yes"];
83229
- });
83230
-
83231
83266
  // packages/telemetry-core/src/event-id.ts
83232
83267
  import { randomBytes as nodeRandomBytes } from "node:crypto";
83233
83268
  function createUuidV7Generator(source = {}) {
@@ -93013,6 +93048,7 @@ var init_turn_trace_bridge = __esm(() => {
93013
93048
  var init_src5 = __esm(() => {
93014
93049
  init_activity_state();
93015
93050
  init_consent_gated_fetch();
93051
+ init_destinations();
93016
93052
  init_diagnostics();
93017
93053
  init_env();
93018
93054
  init_event_id();
@@ -93029,7 +93065,7 @@ var package_default2;
93029
93065
  var init_package2 = __esm(() => {
93030
93066
  package_default2 = {
93031
93067
  name: "@oh-my-opencode/omo-codex",
93032
- version: "5.1.82",
93068
+ version: "5.1.84",
93033
93069
  type: "module",
93034
93070
  private: true,
93035
93071
  description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
@@ -93060,6 +93096,7 @@ var init_package2 = __esm(() => {
93060
93096
  "sync:skills": "node plugin/scripts/sync-skills.mjs"
93061
93097
  },
93062
93098
  dependencies: {
93099
+ "@oh-my-opencode/omo-config-core": "workspace:*",
93063
93100
  "@oh-my-opencode/shared-skills": "workspace:*",
93064
93101
  "@oh-my-opencode/utils": "workspace:*"
93065
93102
  },
@@ -93115,6 +93152,18 @@ var init_data_path2 = __esm(() => {
93115
93152
  init_product_identity();
93116
93153
  });
93117
93154
 
93155
+ // packages/omo-codex/src/telemetry/config-gate.ts
93156
+ function isOmoConfigTelemetryEnabled(env = process.env) {
93157
+ try {
93158
+ return isOmoTelemetryEnabled(loadOmoConfig({ env, harness: "codex" }).config);
93159
+ } catch {
93160
+ return true;
93161
+ }
93162
+ }
93163
+ var init_config_gate = __esm(() => {
93164
+ init_src4();
93165
+ });
93166
+
93118
93167
  // packages/omo-codex/src/telemetry/diagnostics.ts
93119
93168
  function writeTelemetryDiagnostic2(input, now = new Date) {
93120
93169
  writeTelemetryDiagnostic(input, {
@@ -93158,6 +93207,9 @@ function resolveActivityStateProvider(options) {
93158
93207
  return () => getPostHogActivityCaptureState(options.now ?? new Date);
93159
93208
  }
93160
93209
  function createPostHogClient(source, options = {}) {
93210
+ if (!isOmoConfigTelemetryEnabled(options.env ?? process.env)) {
93211
+ return NO_OP_POSTHOG;
93212
+ }
93161
93213
  const client = createTelemetryClient2({
93162
93214
  diagnostics: writeTelemetryDiagnostic2,
93163
93215
  env: options.env ?? process.env,
@@ -93198,6 +93250,7 @@ var osProviderOverride2 = null, activityStateProviderOverride = null, transportF
93198
93250
  var init_posthog = __esm(() => {
93199
93251
  init_src5();
93200
93252
  init_data_path2();
93253
+ init_config_gate();
93201
93254
  init_diagnostics2();
93202
93255
  init_posthog_activity_state();
93203
93256
  init_product_identity();
@@ -97818,6 +97871,7 @@ var init_unsettled_command = __esm(() => {
97818
97871
  import { randomBytes as randomBytes9 } from "node:crypto";
97819
97872
  function openAttach(client, device, sessionId, timers = realTimers) {
97820
97873
  const early = [];
97874
+ const ATTACH_HISTORY_MAX = 512;
97821
97875
  const history = [];
97822
97876
  const listeners = new Set;
97823
97877
  let handle;
@@ -97869,6 +97923,8 @@ function openAttach(client, device, sessionId, timers = realTimers) {
97869
97923
  resolveSnapshot(remote.snapshot);
97870
97924
  }
97871
97925
  history.push(remote);
97926
+ if (history.length > ATTACH_HISTORY_MAX)
97927
+ history.splice(0, history.length - ATTACH_HISTORY_MAX);
97872
97928
  for (const listener of [...listeners]) {
97873
97929
  try {
97874
97930
  listener(remote);
@@ -103852,13 +103908,6 @@ var init_build = __esm(() => {
103852
103908
  init_types10();
103853
103909
  });
103854
103910
 
103855
- // packages/omo-senpi/src/components/thread/gateway/bindings.ts
103856
- var BINDING_MAX_TTL_SECONDS, OUTBOX_RETENTION_MS, RELAY_TEXT_MAX_BYTES = 32768;
103857
- var init_bindings = __esm(() => {
103858
- BINDING_MAX_TTL_SECONDS = 366 * 24 * 60 * 60;
103859
- OUTBOX_RETENTION_MS = 30 * 24 * 60 * 60 * 1000;
103860
- });
103861
-
103862
103911
  // packages/omo-senpi/src/components/thread/contracts/fields.ts
103863
103912
  var THREAD_MESSAGE_MAX_BYTES = 32768, THREAD_SUMMARY_MAX_LENGTH = 200, THREAD_READ_DEFAULT_BYTES = 131072, THREAD_READ_MAX_BYTES = 1048576, ThreadAddress, AllScope, IdempotencyKey, CollapseKey, ExpectedTurnId, Summary, Message2, thinkingLevel = (description) => Union([
103864
103913
  Literal("off"),
@@ -103868,10 +103917,9 @@ var THREAD_MESSAGE_MAX_BYTES = 32768, THREAD_SUMMARY_MAX_LENGTH = 200, THREAD_RE
103868
103917
  Literal("high"),
103869
103918
  Literal("xhigh"),
103870
103919
  Literal("max")
103871
- ], { description }), BindingId, RelayText, DEFAULT_THREAD_DELIVERY = "auto", ThreadDeliveryMode;
103920
+ ], { description }), DEFAULT_THREAD_DELIVERY = "auto", ThreadDeliveryMode;
103872
103921
  var init_fields = __esm(() => {
103873
103922
  init_build();
103874
- init_bindings();
103875
103923
  ThreadAddress = String2({
103876
103924
  description: "Recipient thread: the thread value of a thread_list row (tool.thread_list() in an eval cell) or of any thread tool result, an alias, a unique name, or the first 8+ characters of a thread value when only one thread starts with them. A name or prefix shared by several threads returns ambiguous_target with candidates. self addresses the caller's own session."
103877
103925
  });
@@ -103897,13 +103945,6 @@ var init_fields = __esm(() => {
103897
103945
  maxLength: THREAD_MESSAGE_MAX_BYTES,
103898
103946
  description: `Instruction to deliver to the target thread; longer than ${THREAD_MESSAGE_MAX_BYTES} UTF-8 bytes returns message_too_large.`
103899
103947
  });
103900
- BindingId = String2({
103901
- minLength: 1,
103902
- description: "Id of the chat binding the gateway keeps for the thread."
103903
- });
103904
- RelayText = String2({
103905
- description: `Text relayed to or from the external thread; longer than ${RELAY_TEXT_MAX_BYTES} UTF-8 bytes returns message_too_large.`
103906
- });
103907
103948
  ThreadDeliveryMode = Union([Literal("auto"), Literal("steer"), Literal("follow_up")], {
103908
103949
  default: DEFAULT_THREAD_DELIVERY,
103909
103950
  description: "Omitted: auto. auto steers the running turn when one is active and starts a new turn otherwise; steer requires expected_turn_id and becomes turn_conflict when the active turn changed; follow_up queues the message behind the running turn (pass it only when the message must wait for that turn to end)."
@@ -103969,13 +104010,6 @@ var init_errors5 = __esm(() => {
103969
104010
  "loop_detected",
103970
104011
  "pair_loop_guard",
103971
104012
  "chain_count_limit",
103972
- "binding_conflict",
103973
- "binding_mismatch",
103974
- "binding_inactive",
103975
- "stale_revision",
103976
- "stale_token",
103977
- "already_answered",
103978
- "answer_in_progress",
103979
104013
  "device_offline",
103980
104014
  "relay_requires_paid_plan",
103981
104015
  "alias_taken",
@@ -103993,7 +104027,7 @@ var init_result2 = __esm(() => {
103993
104027
  });
103994
104028
 
103995
104029
  // packages/omo-senpi/src/components/thread/remote/outcome.ts
103996
- var READ_UNCERTAIN, UNANSWERED, NOT_SIGNED_IN;
104030
+ var READ_UNCERTAIN, UNANSWERED, NOT_SIGNED_IN, ENGINE_NOT_READY;
103997
104031
  var init_outcome = __esm(() => {
103998
104032
  init_errors5();
103999
104033
  init_result2();
@@ -104027,6 +104061,7 @@ var init_outcome = __esm(() => {
104027
104061
  ...Object.entries(READ_UNCERTAIN).filter(([, answer]) => answer === "retry").map(([reason]) => reason)
104028
104062
  ]);
104029
104063
  NOT_SIGNED_IN = new Set(["sign_in_required", "signed_out"]);
104064
+ ENGINE_NOT_READY = new Set(["attach_required", "daemon_unavailable"]);
104030
104065
  });
104031
104066
 
104032
104067
  // packages/omo-senpi/src/components/thread/address/refusals.ts
@@ -104140,7 +104175,7 @@ var init_create_params = __esm(() => {
104140
104175
  });
104141
104176
 
104142
104177
  // packages/omo-senpi/src/components/thread/contracts/params.ts
104143
- var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadArchiveParams, ThreadReportParams, ThreadOutboxParams, ThreadOutboxAckParams, ThreadAnswerParams;
104178
+ var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadArchiveParams;
104144
104179
  var init_params = __esm(() => {
104145
104180
  init_build();
104146
104181
  init_fields();
@@ -104149,14 +104184,25 @@ var init_params = __esm(() => {
104149
104184
  all_scope: Optional(Boolean2({
104150
104185
  description: "List this machine's threads from every workspace; the default returns only the caller's workspace here. The account's other devices' threads are always listed."
104151
104186
  })),
104152
- state: Optional(_Array_(Union([Literal("running"), Literal("idle"), Literal("inactive"), Literal("archived")]), {
104187
+ state: Optional(_Array_(Union([
104188
+ Literal("opening"),
104189
+ Literal("running"),
104190
+ Literal("idle"),
104191
+ Literal("inactive"),
104192
+ Literal("archived")
104193
+ ]), {
104153
104194
  minItems: 1,
104154
- description: "Thread states to list: running, idle, inactive (no engine holds it) or archived; the default lists every state but archived."
104195
+ description: "Thread states to list: opening (not yet ready for controls), running, idle, inactive (no engine holds it) or archived; the default lists every state but archived."
104155
104196
  })),
104156
104197
  idempotency_key: IdempotencyKey
104157
104198
  });
104158
104199
  ThreadReadParams = _Object_({
104159
104200
  thread: ThreadAddress,
104201
+ delivery_id: Optional(String2({
104202
+ minLength: 1,
104203
+ maxLength: 128,
104204
+ description: "Query only the outcome of your original delivery to this exact thread ID. Reads no conversation, sends no message and wakes no session; after evidence expires answers outcome_unavailable."
104205
+ })),
104160
104206
  cursor: Optional(String2({
104161
104207
  description: "Opaque cursor from an earlier thread_read (tool.thread_read() in an eval cell) to page the older messages of a truncated read (a read without one returns the newest messages that fit max_bytes); a transcript revision that moved past it returns cursor_stale."
104162
104208
  })),
@@ -104269,61 +104315,6 @@ var init_params = __esm(() => {
104269
104315
  all_scope: AllScope,
104270
104316
  idempotency_key: IdempotencyKey
104271
104317
  });
104272
- ThreadReportParams = _Object_({
104273
- binding_id: Optional(String2({
104274
- minLength: 1,
104275
- description: "Binding to report to; defaults to the originating binding, the one the message this session is answering now arrived through; refused when that is ambiguous."
104276
- })),
104277
- kind: Union([Literal("milestone"), Literal("report"), Literal("question"), Literal("completion")], {
104278
- description: "milestone updates the thread's progress message, report posts a result, question relays a pending question of this session and returns a reply_token, completion is written once when this session's run settles, with the run's real outcome."
104279
- }),
104280
- text: RelayText,
104281
- request_id: Optional(String2({
104282
- minLength: 1,
104283
- description: "For kind question: the id of this session's pending extension UI request the answer resolves."
104284
- })),
104285
- request_kind: Optional(Union([
104286
- Literal("question"),
104287
- Literal("select"),
104288
- Literal("confirm"),
104289
- Literal("input"),
104290
- Literal("editor")
104291
- ], {
104292
- description: "For kind question: which extension UI request request_id is. It decides the answer forms thread_answer (tool.thread_answer() in an eval cell) accepts: confirm takes yes/no (any case, surrounding spaces ignored), input and editor take any text including empty, question and select take non-blank text. Without it the answer goes out in every text form at once, so a question, select, input or editor each reads its own and the text must be non-blank; a yes/no word also goes out as the confirm field, so an undeclared confirm reads yes/no too (any other text reads as no)."
104293
- })),
104294
- idempotency_key: IdempotencyKey
104295
- });
104296
- ThreadOutboxParams = _Object_({
104297
- binding_id: BindingId,
104298
- after_cursor: Optional(Integer({
104299
- minimum: 0,
104300
- description: "Read rows after this cursor; unset continues after the binding's acknowledged cursor."
104301
- })),
104302
- limit: Optional(Integer({ minimum: 1, maximum: 500, description: "Rows per read, default 100 and at most 500." })),
104303
- idempotency_key: IdempotencyKey
104304
- });
104305
- ThreadOutboxAckParams = _Object_({
104306
- binding_id: BindingId,
104307
- cursor: Integer({
104308
- minimum: 1,
104309
- description: "Every outbox row up to this cursor is marked delivered; an older cursor changes nothing."
104310
- }),
104311
- provider_message_id: Optional(String2({
104312
- minLength: 1,
104313
- maxLength: 256,
104314
- description: "Platform id of the message posted for the row at cursor; the first one for a milestone becomes the progress message later milestones edit."
104315
- })),
104316
- idempotency_key: IdempotencyKey
104317
- });
104318
- ThreadAnswerParams = _Object_({
104319
- binding_id: String2({
104320
- minLength: 1,
104321
- description: "Binding the answer arrived through; it must be the binding that asked the question."
104322
- }),
104323
- reply_token: String2({ minLength: 1, description: "reply_token of the question row being answered." }),
104324
- answer: RelayText,
104325
- idempotency_key: IdempotencyKey
104326
- });
104327
104318
  });
104328
104319
 
104329
104320
  // node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/schema/types/_refine.mjs
@@ -108933,7 +108924,7 @@ var init_metadata = __esm(() => {
108933
108924
  {
108934
108925
  name: "thread_send",
108935
108926
  label: "Send message to session",
108936
- description: "Delivers a message into another session that is already running, for when the user wants to talk to that session mid-task; its reply comes back through thread_read, and a bound chat thread's replies through thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())" + ROUTE_TO_TASK,
108927
+ description: "Delivers a message into another session that is already running, for when the user wants to talk to that session mid-task; its reply comes back through thread_read (tool.thread_read() in an eval cell)" + ROUTE_TO_TASK,
108937
108928
  exposure: THREAD_TOOL_EXPOSURE
108938
108929
  },
108939
108930
  {
@@ -108977,30 +108968,6 @@ var init_metadata = __esm(() => {
108977
108968
  label: "Archive session",
108978
108969
  description: "Archives or unarchives a session so the session list hides or shows it again, for when the user is finished with a session but wants to keep it",
108979
108970
  exposure: THREAD_TOOL_EXPOSURE
108980
- },
108981
- {
108982
- name: "thread_report",
108983
- label: "Report to chat thread",
108984
- description: "Posts a milestone, result, question or completion from this session to its bound chat thread, for when the user wants progress relayed to that chat; replies flow back through thread_read, thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())",
108985
- exposure: THREAD_TOOL_EXPOSURE
108986
- },
108987
- {
108988
- name: "thread_outbox",
108989
- label: "Read chat outbox",
108990
- description: "Returns the reports waiting for a bound chat thread with a cursor, for when a connector collects what sessions posted",
108991
- exposure: THREAD_TOOL_EXPOSURE
108992
- },
108993
- {
108994
- name: "thread_outbox_ack",
108995
- label: "Acknowledge chat outbox",
108996
- description: "Marks outbox rows up to a cursor as posted to the chat, for when a connector confirms delivery",
108997
- exposure: THREAD_TOOL_EXPOSURE
108998
- },
108999
- {
109000
- name: "thread_answer",
109001
- label: "Answer relayed question",
109002
- description: "Resolves a question a session relayed to a chat thread with the answer that arrived there, for when a connector hands back a chat user's reply",
109003
- exposure: THREAD_TOOL_EXPOSURE
109004
108971
  }
109005
108972
  ];
109006
108973
  });
@@ -109174,8 +109141,14 @@ var init_session_state = __esm(() => {
109174
109141
  // packages/omo-senpi/src/components/thread/remote/remote-watch.ts
109175
109142
  var init_remote_watch = __esm(() => {
109176
109143
  init_device_service2();
109144
+ init_ports();
109177
109145
  init_session_state();
109178
109146
  });
109147
+ // packages/omo-senpi/src/components/remote/port/lookup-gate.ts
109148
+ var init_lookup_gate = __esm(() => {
109149
+ init_ports();
109150
+ });
109151
+
109179
109152
  // packages/omo-senpi/src/components/remote/port/device-service.ts
109180
109153
  var READ_ONLY_RECORDS, MARKED_RECORDS, LOOKUP_NONE;
109181
109154
  var init_device_service3 = __esm(() => {
@@ -109184,6 +109157,7 @@ var init_device_service3 = __esm(() => {
109184
109157
  init_attach_pool();
109185
109158
  init_remote_watch();
109186
109159
  init_call_deadline();
109160
+ init_lookup_gate();
109187
109161
  READ_ONLY_RECORDS = new Set([
109188
109162
  "get_state",
109189
109163
  "get_messages",
@@ -109286,6 +109260,9 @@ var init_follow = __esm(() => {
109286
109260
  RUN_OVER = new Set(["waiting_children", "waiting_background", "done", "failed", "cancelled"]);
109287
109261
  });
109288
109262
 
109263
+ // packages/omo-senpi/src/components/thread/gateway/hash-args.ts
109264
+ var init_hash_args = () => {};
109265
+
109289
109266
  // packages/omo-senpi/src/components/thread/gateway/provenance-resolver.ts
109290
109267
  var init_provenance_resolver = () => {};
109291
109268
  // packages/omo-senpi/src/components/thread/gateway/constants.ts
@@ -109319,19 +109296,35 @@ var init_find_session = __esm(() => {
109319
109296
  ]);
109320
109297
  });
109321
109298
 
109299
+ // packages/omo-senpi/src/components/thread/remote/reopen-parked.ts
109300
+ var init_reopen_parked = __esm(() => {
109301
+ init_device();
109302
+ init_relay_session_host();
109303
+ init_errors5();
109304
+ init_find_session();
109305
+ });
109306
+
109307
+ // packages/omo-senpi/src/components/thread/remote/receipt.ts
109308
+ var init_receipt = __esm(() => {
109309
+ init_remote_ops();
109310
+ init_outcome();
109311
+ });
109312
+
109322
109313
  // packages/omo-senpi/src/components/thread/remote/relay-transport.ts
109323
109314
  var ADMIT_UNSUPPORTED, WAITS;
109324
109315
  var init_relay_transport = __esm(() => {
109325
109316
  init_ports();
109326
109317
  init_errors5();
109327
- init_bindings();
109318
+ init_hash_args();
109328
109319
  init_provenance2();
109329
109320
  init_result2();
109330
109321
  init_remote_ops();
109331
109322
  init_device();
109332
109323
  init_outcome();
109333
109324
  init_find_session();
109325
+ init_reopen_parked();
109334
109326
  init_call_deadline();
109327
+ init_receipt();
109335
109328
  ADMIT_UNSUPPORTED = new Set([
109336
109329
  "method_unclassified",
109337
109330
  "delegation_unclassified",
@@ -109361,7 +109354,7 @@ var init_sessions = __esm(() => {
109361
109354
  init_port();
109362
109355
  init_relay_control();
109363
109356
  init_relay_session_host();
109364
- init_bindings();
109357
+ init_hash_args();
109365
109358
  init_provenance_resolver();
109366
109359
  init_address_book();
109367
109360
  init_outcome();
@@ -109416,6 +109409,11 @@ var init_ladder = __esm(() => {
109416
109409
  init_errors5();
109417
109410
  });
109418
109411
 
109412
+ // packages/omo-senpi/src/components/thread/address/solo-retry.ts
109413
+ var init_solo_retry = __esm(() => {
109414
+ init_call_deadline();
109415
+ });
109416
+
109419
109417
  // packages/omo-senpi/src/components/thread/address/probe.ts
109420
109418
  var init_probe = __esm(() => {
109421
109419
  init_errors5();
@@ -109424,6 +109422,7 @@ var init_probe = __esm(() => {
109424
109422
  init_remote_ops();
109425
109423
  init_account();
109426
109424
  init_refusals();
109425
+ init_solo_retry();
109427
109426
  });
109428
109427
 
109429
109428
  // packages/omo-senpi/src/components/thread/address/bare.ts
@@ -109479,10 +109478,11 @@ init_package();
109479
109478
  import { createInterface as createInterface2 } from "node:readline/promises";
109480
109479
 
109481
109480
  // packages/telemetry-core/src/install-disclosure.ts
109481
+ init_destinations();
109482
109482
  var TELEMETRY_PRIVACY_POLICY_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/legal/privacy-policy.md";
109483
109483
  var TELEMETRY_INSTALL_DISCLOSURE_LINES = [
109484
109484
  "OmO sends anonymous usage telemetry (no prompts, code, file paths, or account data) to improve the product.",
109485
- "The data goes to PostHog in the United States.",
109485
+ `The data goes to ${TELEMETRY_DESTINATIONS.map((destination) => `${destination.label} (${destination.host})`).join(" and ")}.`,
109486
109486
  "Turn it off with DO_NOT_TRACK=1 (or OMO_DISABLE_TELEMETRY=1).",
109487
109487
  `Details: ${TELEMETRY_PRIVACY_POLICY_URL}`
109488
109488
  ];
@@ -131798,8 +131798,11 @@ function createSession(options) {
131798
131798
  return await locked(async () => {
131799
131799
  let current = null;
131800
131800
  let account;
131801
+ let readSettled = false;
131802
+ let storeUnavailable = false;
131801
131803
  try {
131802
131804
  current = await store.readAuthoritative();
131805
+ readSettled = true;
131803
131806
  if (current !== null) {
131804
131807
  if (current.refreshState === "uncertain")
131805
131808
  return false;
@@ -131814,15 +131817,21 @@ function createSession(options) {
131814
131817
  } catch (error) {
131815
131818
  if (error instanceof SessionEnded)
131816
131819
  return error.deviceRevoked;
131820
+ if (!readSettled && error instanceof CredentialStoreError) {
131821
+ storeUnavailable = true;
131822
+ throw error;
131823
+ }
131817
131824
  if (error instanceof SignInError)
131818
131825
  return false;
131819
131826
  throw error;
131820
131827
  } finally {
131821
- await writeSignedOutMarker(markerPath, current?.device.id ?? null);
131822
- const stored = current === null ? null : await store.read().catch(() => current);
131823
- if (stored !== null)
131824
- await beforeKeysDiscarded(discardedOf(stored.accountId === undefined && account !== undefined ? { ...stored, accountId: account } : stored, "logout"));
131825
- await store.clear();
131828
+ if (!storeUnavailable) {
131829
+ await writeSignedOutMarker(markerPath, current?.device.id ?? null);
131830
+ const stored = current === null ? null : await store.read().catch(() => current);
131831
+ if (stored !== null)
131832
+ await beforeKeysDiscarded(discardedOf(stored.accountId === undefined && account !== undefined ? { ...stored, accountId: account } : stored, "logout"));
131833
+ await store.clear();
131834
+ }
131826
131835
  }
131827
131836
  });
131828
131837
  } finally {
@@ -132364,8 +132373,9 @@ async function run3(action, options, hooks = {}) {
132364
132373
  console.log(`This computer's earlier OmO device (id ${terminalText(replacedDeviceId)}) was signed out.`);
132365
132374
  await signedIn();
132366
132375
  } catch (error) {
132367
- console.error(controller.signal.aborted ? "Sign-in cancelled." : error instanceof SignInError ? error.message : "OmO sign-in stopped on an unexpected error. Run the command again, and report it with /bug if it keeps failing.");
132368
- process.exitCode = 1;
132376
+ const storeUnavailable = action === "logout" && error instanceof CredentialStoreError;
132377
+ console.error(controller.signal.aborted ? "Sign-in cancelled." : storeUnavailable ? "OmO could not read the credential store. Stored credentials and device keys were left untouched; run omo logout again when the keyring answers." : error instanceof SignInError ? error.message : "OmO sign-in stopped on an unexpected error. Run the command again, and report it with /bug if it keeps failing.");
132378
+ process.exitCode = storeUnavailable ? 9 : 1;
132369
132379
  } finally {
132370
132380
  process.removeListener("SIGINT", cancel);
132371
132381
  process.removeListener("SIGTERM", cancel);
@@ -132646,7 +132656,7 @@ init_timers();
132646
132656
  // packages/omo-native/package.json
132647
132657
  var package_default4 = {
132648
132658
  name: "omo-ai",
132649
- version: "5.1.82",
132659
+ version: "5.1.84",
132650
132660
  type: "module",
132651
132661
  description: "OmO Native - the standalone omo command with the OMO extension built in: bun add -g omo-ai",
132652
132662
  bin: {
@@ -132848,7 +132858,6 @@ init_address();
132848
132858
  init_errors5();
132849
132859
  // packages/omo-senpi/src/components/thread/gateway/store.ts
132850
132860
  init_constants6();
132851
- init_provenance_resolver();
132852
132861
 
132853
132862
  // packages/omo-senpi/src/components/thread/gateway/session-args-schema.ts
132854
132863
  var TYPES = new Set(["object", "string", "number", "integer", "boolean", "array", "null"]);
@@ -132959,7 +132968,7 @@ var USAGE_ENTRIES = [
132959
132968
  },
132960
132969
  {
132961
132970
  verbs: ["send"],
132962
- text: ` send <session> <text> [--steer|--follow-up] [--no-wait]
132971
+ text: ` send <session> <text|-> [--steer|--follow-up] [--no-wait]
132963
132972
  send a message and print the answer as it arrives (--steer: into the
132964
132973
  running turn; --no-wait: return once the session took it).
132965
132974
  Use the thread value from open --json, or <device>/<session>.`