omo-ai 5.1.61 → 5.1.62

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 (64) hide show
  1. package/bin/darwin/omo-keychain +0 -0
  2. package/bin/lib/doctor-migration.js +73 -5
  3. package/bin/lib/provider-map.json +1 -1
  4. package/bin/lib/service-auth.generated.js +12 -10
  5. package/package.json +2 -2
  6. package/plugin/CHANGELOG.md +29 -0
  7. package/plugin/extensions/gateway-store-worker.mjs +1 -1
  8. package/plugin/extensions/memory-run-supervisor.mjs +1 -1
  9. package/plugin/extensions/omo-claim-receipt.js +1 -1
  10. package/plugin/extensions/omo-computer-use.js +1 -1
  11. package/plugin/extensions/omo-desktop-toolkit.js +1 -1
  12. package/plugin/extensions/omo-device-account.js +2 -2
  13. package/plugin/extensions/omo-device-service.js +2 -2
  14. package/plugin/extensions/omo-feedback.js +2 -2
  15. package/plugin/extensions/omo-init-deep-advisor.js +1 -1
  16. package/plugin/extensions/omo-member.js +1 -1
  17. package/plugin/extensions/omo-memory-commands.js +1 -1
  18. package/plugin/extensions/omo-memory-doctor.js +1 -1
  19. package/plugin/extensions/omo-memory-memfs.js +1 -1
  20. package/plugin/extensions/omo-memory-palace.js +1 -1
  21. package/plugin/extensions/omo-memory-sync.js +2 -2
  22. package/plugin/extensions/omo-onboarding-scan.js +2 -2
  23. package/plugin/extensions/omo-recall-store.js +1 -1
  24. package/plugin/extensions/omo-session-history.js +1 -1
  25. package/plugin/extensions/omo-side-panel.js +1 -1
  26. package/plugin/extensions/omo-task.js +2 -2
  27. package/plugin/extensions/omo-telemetry-otlp.js +1 -1
  28. package/plugin/extensions/omo-telemetry-posthog.js +1 -1
  29. package/plugin/extensions/omo-telemetry-recovery.js +1 -1
  30. package/plugin/extensions/omo-thread-client.js +1 -1
  31. package/plugin/extensions/omo.js +3 -3
  32. package/plugin/package.json +1 -1
  33. package/plugin/runtime/agent-toolkit-sdk/sdk.js +2 -2
  34. package/plugin/runtime/ast-grep-mcp/manifest.json +1 -1
  35. package/plugin/runtime/rollback-migrate.js +1 -1
  36. package/plugin/runtime/thread-sdk/sdk.js +2 -2
  37. package/plugin/skills/browser/references/owned-engine/README.md +1 -1
  38. package/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
  39. package/plugin/skills/debugging/references/methodology/02-investigate.md +2 -0
  40. package/plugin/skills/debugging/references/methodology/04-oracle-triple.md +2 -0
  41. package/plugin/skills/debugging/references/methodology/partial-runtime-evidence.md +2 -0
  42. package/plugin/skills/frontend/SKILL.md +2 -2
  43. package/plugin/skills/frontend/references/design/README.md +2 -2
  44. package/plugin/skills/frontend/references/design/component-catalogs.md +1 -1
  45. package/plugin/skills/frontend/references/design/design-system-architecture.md +1 -1
  46. package/plugin/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
  47. package/plugin/skills/frontend/references/designpowers/lane-a-direction.md +5 -5
  48. package/plugin/skills/frontend/references/designpowers/routing.md +2 -2
  49. package/plugin/skills/frontend/references/perfection/README.md +1 -1
  50. package/plugin/skills/programming/references/python/libraries.md +3 -3
  51. package/plugin/skills/programming/references/python/one-liners.md +1 -1
  52. package/plugin/skills/programming/references/python/pyproject-strict.md +1 -1
  53. package/plugin/skills/programming/references/rust/libraries.md +2 -2
  54. package/plugin/skills/programming/references/rust-ub/README.md +2 -0
  55. package/plugin/skills/refactor/SKILL.md +6 -4
  56. package/plugin/skills/remove-ai-slops/SKILL.md +2 -0
  57. package/plugin/skills/review-work/SKILL.md +2 -0
  58. package/plugin/skills/ultimate-browsing/SKILL.md +1 -1
  59. package/plugin/skills/ultimate-browsing/references/insane-search/README.md +1 -1
  60. package/plugin/skills/ultrawork/SKILL.md +1 -1
  61. package/plugin/skills/ulw-execute/SKILL.md +3 -1
  62. package/plugin/skills/ulw-loop/references/full-workflow.md +3 -3
  63. package/plugin/skills/ulw-plan/references/full-workflow.md +1 -1
  64. package/plugin/skills/visual-qa/SKILL.md +2 -0
Binary file
@@ -1,6 +1,6 @@
1
1
  import { closeSync, lstatSync, openSync, readFileSync, readSync, realpathSync, statSync } from "node:fs"
2
2
  import { homedir } from "node:os"
3
- import { delimiter, dirname, isAbsolute, join, win32 } from "node:path"
3
+ import { delimiter, dirname, isAbsolute, join, normalize, win32 } from "node:path"
4
4
  import { parseJsonc } from "./jsonc.js"
5
5
  import { releaseChannel } from "./package-paths.js"
6
6
  import { opencodeConfigSources } from "./setup-opencode-assets.js"
@@ -24,6 +24,8 @@ function repairCommand() {
24
24
  }
25
25
 
26
26
  const CODEX_LIGHT_WRAPPER_MARKER = "# OMO_GENERATED_RUNTIME_WRAPPER"
27
+ // The Windows `.cmd` wrapper writes `rem OMO_GENERATED_RUNTIME_WRAPPER` instead, so it never
28
+ // matches this marker and broken detection does not run for `.cmd` files (pre-existing limit).
27
29
  const CODEX_LIGHT_CACHE_VERSION = /[\\/]plugins[\\/]cache[\\/]sisyphuslabs[\\/]omo[\\/]([^\\/"'\s]+)[\\/]/
28
30
  const WINDOWS_BIN_SUFFIXES = ["", ".cmd", ".ps1", ".exe"]
29
31
  const OWNER_WALK_UP_LIMIT = 6
@@ -76,8 +78,9 @@ export function scanOmoBins(environment) {
76
78
  const owner = resolveOwner(binPath)
77
79
  const kind = classify(owner)
78
80
  const standalone = kind === "foreign" ? standaloneBinaryVersion(binPath, environment.homeDir, environment.isWindows) : null
81
+ const broken = standalone === null ? brokenLaunchTarget(binPath, owner, environment.homeDir) : undefined
79
82
  entries.push(standalone === null
80
- ? { binPath, directory, owner, kind }
83
+ ? { binPath, directory, owner, kind, ...(broken === undefined ? {} : { broken }) }
81
84
  : { binPath, directory, owner: { name: STANDALONE_LABEL, version: standalone }, kind: "standalone" })
82
85
  }
83
86
  return entries
@@ -114,6 +117,41 @@ function pathExists(path) {
114
117
  }
115
118
  }
116
119
 
120
+ // A Codex Light wrapper launches a cached CLI through bun, with a node fallback when no bun
121
+ // is found; the cache path it names must exist, or the wrapper can never run. Returns the
122
+ // missing target, or undefined when the wrapper launches something that exists (or names no
123
+ // resolvable target).
124
+ function brokenLaunchTarget(binPath, owner, homeDir) {
125
+ if (owner === null || owner.name !== "lazycodex") return undefined
126
+ const shim = readFileHead(binPath, SHIM_READ_LIMIT)
127
+ const target = shim === undefined ? null : codexLightCacheTarget(shim, homeDir)
128
+ if (target === null) return undefined
129
+ // The POSIX wrapper writes its target with forward slashes (toPosixPath), so
130
+ // normalize the separators before reporting it: on Windows the broken line must
131
+ // use backslashes like every other path in the report, or it never matches the
132
+ // platform form the caller compares against (CI run 42027565394).
133
+ const normalized = normalize(target)
134
+ return pathExists(normalized) ? undefined : normalized
135
+ }
136
+
137
+ // The runtime target the Light generator writes into the wrapper: the `exec "$BUN_BINARY" ...`
138
+ // line (POSIX) or `"%BUN_BINARY%" ... %*` (Windows), the file the wrapper actually runs — the
139
+ // same lines packages/omo-opencode/src/cli/doctor/checks/codex-runtime-wrapper.ts already
140
+ // parses. The first quoted cache path in the file is the optional node fallback
141
+ // (dist/cli-node/index.js), not the runtime target, so reading it would flag a working wrapper
142
+ // broken and miss a wrapper that really fails. `~` and `$HOME` resolve against the home dir;
143
+ // anything else must already be absolute to be resolvable.
144
+ function codexLightCacheTarget(shim, homeDir) {
145
+ const posix = shim.match(/exec "\$BUN_BINARY" "([^"]+)" "\$@"/)
146
+ const windows = posix === null ? shim.match(/"%+BUN_BINARY%+"\s+"([^"]+)"\s+%+\*/) : null
147
+ const raw = posix?.[1] ?? windows?.[1]
148
+ if (raw === undefined) return null
149
+ if (!/[\\/]plugins[\\/]cache[\\/]sisyphuslabs[\\/]omo[\\/]/.test(raw)) return null
150
+ if (raw.startsWith("~/") || raw.startsWith("~\\")) return join(homeDir, raw.slice(2))
151
+ if (raw.startsWith("$HOME/") || raw.startsWith("$HOME\\")) return join(homeDir, raw.slice(6))
152
+ return isAbsolute(raw) || win32.isAbsolute(raw) ? raw : null
153
+ }
154
+
117
155
  function resolveOwner(binPath) {
118
156
  const real = realPathOf(binPath)
119
157
  const fromLink = isInsideNodeModules(real) ? ownerOfFile(real) : null
@@ -203,6 +241,18 @@ function realPathOf(path) {
203
241
  }
204
242
  }
205
243
 
244
+ // Two paths name the same install when they resolve to the same file. A hardlink shares the
245
+ // inode, and one npm prefix listed twice with different letter case on Windows is the same
246
+ // directory; realpath collapses neither, so compare dev/ino and fall back to realpath.
247
+ function fileIdentity(path) {
248
+ try {
249
+ const stats = statSync(path)
250
+ return `${stats.dev}:${stats.ino}`
251
+ } catch {
252
+ return realPathOf(path)
253
+ }
254
+ }
255
+
206
256
  // Only regular files: readFileSync on a FIFO blocks until a writer opens it, hanging the doctor.
207
257
  function readWholeFile(path) {
208
258
  try {
@@ -241,7 +291,7 @@ export function findLegacyPackages(environment) {
241
291
  const packageDir = join(modules, name)
242
292
  const owner = readManifest(join(packageDir, "package.json"))
243
293
  if (owner?.name !== name) continue
244
- const key = realPathOf(packageDir)
294
+ const key = fileIdentity(packageDir)
245
295
  if (seen.has(key)) continue
246
296
  seen.add(key)
247
297
  found.push({ manager, name, version: owner.version, packageDir })
@@ -295,11 +345,18 @@ function omoInstallRemoval(entry, bunRoot) {
295
345
  return `npm uninstall -g omo-ai --prefix ${shellQuote(prefix)}`
296
346
  }
297
347
 
298
- export function formatMigrationLines({ shadowing, nativeDirectory, legacyPackages, registrations, restoreCommand, omoInstalls = [], bunRoot = "", standalone = false }) {
348
+ export function formatMigrationLines({ shadowing, nativeDirectory, legacyPackages, registrations, restoreCommand, omoInstalls = [], bunRoot = "", standalone = false, broken = [] }) {
299
349
  const lines = []
300
350
  const first = omoInstalls[0]
301
351
  const target = first?.kind === "standalone" || (first === undefined && standalone) ? "the standalone omo binary" : "omo-ai"
352
+ // A wrapper whose launch target is gone is broken wherever it sits on PATH, even
353
+ // behind the install that runs; it gets its own line and never the repair offer
354
+ // meant for a working older edition.
355
+ for (const entry of broken) {
356
+ lines.push(`WARN broken omo on PATH: ${entry.binPath} launches ${entry.broken}; remove it`)
357
+ }
302
358
  for (const entry of shadowing) {
359
+ if (entry.broken !== undefined) continue
303
360
  const fix = entry.kind === "legacy" && target === "omo-ai"
304
361
  ? `${repairCommand()} (repairs it), or remove that file.`
305
362
  : nativeDirectory === null
@@ -307,7 +364,17 @@ export function formatMigrationLines({ shadowing, nativeDirectory, legacyPackage
307
364
  : `remove that file, or move ${nativeDirectory} ahead of ${entry.directory} on PATH.`
308
365
  lines.push(`WARN another omo precedes ${target} on PATH: ${entry.binPath} (${ownerLabel(entry.owner)}). Fix: ${fix}`)
309
366
  }
310
- const shadowedOmo = omoInstalls.slice(1).filter((entry) => entry.kind !== first.kind || entry.kind === "standalone")
367
+ // Every further install is a second copy, whatever its kind: two omo-ai installs
368
+ // of different versions, or from different managers, are the same warning. The
369
+ // only exception is the same file reached through two PATH spellings.
370
+ const seenInstalls = new Set()
371
+ if (first !== undefined) seenInstalls.add(fileIdentity(first.binPath))
372
+ const shadowedOmo = omoInstalls.slice(1).filter((entry) => {
373
+ const key = fileIdentity(entry.binPath)
374
+ if (seenInstalls.has(key)) return false
375
+ seenInstalls.add(key)
376
+ return true
377
+ })
311
378
  if (shadowedOmo.length > 0) {
312
379
  const others = shadowedOmo.map((entry) => `${entry.binPath} (${ownerLabel(entry.owner)})`).join(", ")
313
380
  const removals = shadowedOmo.map((entry) => omoInstallRemoval(entry, bunRoot)).join(" and ")
@@ -362,5 +429,6 @@ export function migrationReport(options, restoreCommand) {
362
429
  omoInstalls,
363
430
  bunRoot: environment.bunRoot,
364
431
  standalone: options.standalone === true,
432
+ broken: bins.filter((entry) => entry.broken !== undefined),
365
433
  }), ...openCodeRoutingReport({ env, homeDir })]
366
434
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "_comment": "Derived from @code-yeongyu/senpi 2026.11.3-3 builtinProviders(). builtinProviderIds and oauthProviderIds are the engine registry verbatim; providers maps a source harness id onto the omo provider that serves the same endpoint; oauthLogins maps a source OAuth id onto the omo provider to run /login for. Re-derive all four whenever the senpi pin changes.",
2
+ "_comment": "Derived from @code-yeongyu/senpi 2026.11.5-1 builtinProviders(). builtinProviderIds and oauthProviderIds are the engine registry verbatim; providers maps a source harness id onto the omo provider that serves the same endpoint; oauthLogins maps a source OAuth id onto the omo provider to run /login for. Re-derive all four whenever the senpi pin changes.",
3
3
  "builtinProviderIds": [
4
4
  "alibaba-token-plan",
5
5
  "amazon-bedrock",