omo-ai 5.1.62 → 5.1.64

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 (153) hide show
  1. package/bin/darwin/omo-keychain +0 -0
  2. package/bin/lib/doctor.js +2 -0
  3. package/bin/lib/engine-boot.js +27 -0
  4. package/bin/lib/keychain-helper-doctor.js +26 -0
  5. package/bin/lib/launcher.js +23 -0
  6. package/bin/lib/memory-sync-boot.js +19 -0
  7. package/bin/lib/service-auth.generated.js +23 -14
  8. package/package.json +1 -1
  9. package/plugin/CHANGELOG.md +112 -0
  10. package/plugin/NOTICE +24 -0
  11. package/plugin/extensions/assets.generated.json +1 -1
  12. package/plugin/extensions/gateway-store-worker.mjs +2 -2
  13. package/plugin/extensions/memory-run-supervisor.mjs +1 -1
  14. package/plugin/extensions/omo-claim-receipt.js +1 -1
  15. package/plugin/extensions/omo-computer-use.js +2 -2
  16. package/plugin/extensions/omo-desktop-toolkit.js +1 -1
  17. package/plugin/extensions/omo-device-account.js +2 -2
  18. package/plugin/extensions/omo-device-service.js +3 -3
  19. package/plugin/extensions/omo-feedback.js +2 -2
  20. package/plugin/extensions/omo-init-deep-advisor.js +2 -2
  21. package/plugin/extensions/omo-member.js +2 -2
  22. package/plugin/extensions/omo-memory-commands.js +3 -3
  23. package/plugin/extensions/omo-memory-doctor.js +3 -3
  24. package/plugin/extensions/omo-memory-memfs.js +3 -3
  25. package/plugin/extensions/omo-memory-palace.js +3 -3
  26. package/plugin/extensions/omo-memory-sync.js +2 -2
  27. package/plugin/extensions/omo-onboarding-scan.js +3 -3
  28. package/plugin/extensions/omo-recall-store.js +1 -1
  29. package/plugin/extensions/omo-session-history.js +1 -1
  30. package/plugin/extensions/omo-side-panel.js +2 -2
  31. package/plugin/extensions/omo-task.js +2 -2
  32. package/plugin/extensions/omo-telemetry-otlp.js +2 -2
  33. package/plugin/extensions/omo-telemetry-posthog.js +1 -1
  34. package/plugin/extensions/omo-telemetry-recovery.js +1 -1
  35. package/plugin/extensions/omo-thread-client.js +57 -2
  36. package/plugin/extensions/omo.js +3 -3
  37. package/plugin/package.json +3 -2
  38. package/plugin/runtime/agent-toolkit-sdk/sdk.js +2 -2
  39. package/plugin/runtime/ast-grep-mcp/manifest.json +1 -1
  40. package/plugin/runtime/bunshin-ts/sdk.js +98 -0
  41. package/plugin/runtime/category-coverage/assets.generated.json +1 -1
  42. package/plugin/runtime/category-coverage/index.js +1 -1
  43. package/plugin/runtime/rollback-migrate.js +1 -1
  44. package/plugin/runtime/thread-sdk/sdk.js +57 -2
  45. package/plugin/scripts/install.mjs +1 -0
  46. package/plugin/skills/ast-grep/AGENTS.md +2 -2
  47. package/plugin/skills/ast-grep/README.md +4 -4
  48. package/plugin/skills/ast-grep/SKILL.md +10 -8
  49. package/plugin/skills/ast-grep/references/cli.md +4 -3
  50. package/plugin/skills/ast-grep/references/patterns.md +5 -5
  51. package/plugin/skills/ast-grep/references/pitfalls.md +3 -3
  52. package/plugin/skills/ast-grep/references/recipes.md +6 -4
  53. package/plugin/skills/ast-grep/references/yaml-rules.md +3 -3
  54. package/plugin/skills/ast-grep/scripts/ast_grep_helper.py +3 -3
  55. package/plugin/skills/browser/SKILL.md +2 -3
  56. package/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
  57. package/plugin/skills/coding-agent-sessions/AGENTS.md +1 -1
  58. package/plugin/skills/coding-agent-sessions/SKILL.md +2 -1
  59. package/plugin/skills/dag-library/SKILL.md +5 -5
  60. package/plugin/skills/data-scientist/SKILL.md +8 -6
  61. package/plugin/skills/data-scientist/references/placement.md +9 -5
  62. package/plugin/skills/data-scientist/references/uv-setup.md +3 -3
  63. package/plugin/skills/data-scientist/references/visualization.md +19 -4
  64. package/plugin/skills/debugging/SKILL.md +5 -5
  65. package/plugin/skills/debugging/references/methodology/02-investigate.md +2 -2
  66. package/plugin/skills/debugging/references/methodology/06-fix.md +2 -0
  67. package/plugin/skills/debugging/references/methodology/09-cleanup.md +2 -2
  68. package/plugin/skills/debugging/references/methodology/partial-runtime-evidence.md +1 -1
  69. package/plugin/skills/debugging/references/runtimes/bundled-js-binary.md +1 -1
  70. package/plugin/skills/debugging/references/runtimes/native-binary.md +1 -1
  71. package/plugin/skills/debugging/references/tools/browser-qa.md +1 -2
  72. package/plugin/skills/frontend/SKILL.md +2 -2
  73. package/plugin/skills/frontend/references/design/design-system-architecture.md +1 -1
  74. package/plugin/skills/frontend/references/design/print-paged-media.md +1 -1
  75. package/plugin/skills/frontend/references/perfection/README.md +0 -1
  76. package/plugin/skills/frontend/references/perfection/react-perf-tooling.md +27 -8
  77. package/plugin/skills/frontend/scripts/perfection/lighthouse-audit.py +0 -1
  78. package/plugin/skills/git-master/SKILL.md +12 -2
  79. package/plugin/skills/give-me-tips/SKILL.md +22 -19
  80. package/plugin/skills/hyperplan/SKILL.md +19 -17
  81. package/plugin/skills/init-deep/SKILL.md +3 -3
  82. package/plugin/skills/lsp-setup/SKILL.md +24 -15
  83. package/plugin/skills/lsp-setup/references/bash/README.md +3 -3
  84. package/plugin/skills/lsp-setup/references/c-cpp/README.md +2 -2
  85. package/plugin/skills/lsp-setup/references/csharp/README.md +2 -2
  86. package/plugin/skills/lsp-setup/references/dart/README.md +2 -2
  87. package/plugin/skills/lsp-setup/references/elixir/README.md +2 -2
  88. package/plugin/skills/lsp-setup/references/go/README.md +2 -2
  89. package/plugin/skills/lsp-setup/references/haskell/README.md +2 -2
  90. package/plugin/skills/lsp-setup/references/java/README.md +3 -3
  91. package/plugin/skills/lsp-setup/references/julia/README.md +3 -3
  92. package/plugin/skills/lsp-setup/references/kotlin/README.md +4 -4
  93. package/plugin/skills/lsp-setup/references/lua/README.md +2 -2
  94. package/plugin/skills/lsp-setup/references/php/README.md +3 -3
  95. package/plugin/skills/lsp-setup/references/python/README.md +13 -12
  96. package/plugin/skills/lsp-setup/references/ruby/README.md +2 -2
  97. package/plugin/skills/lsp-setup/references/rust/README.md +2 -2
  98. package/plugin/skills/lsp-setup/references/swift/README.md +4 -4
  99. package/plugin/skills/lsp-setup/references/terraform/README.md +2 -2
  100. package/plugin/skills/lsp-setup/references/typescript/README.md +3 -3
  101. package/plugin/skills/lsp-setup/references/yaml/README.md +2 -2
  102. package/plugin/skills/lsp-setup/references/zig/README.md +2 -2
  103. package/plugin/skills/lsp-setup/scripts/detect-lsp.ts +1 -1
  104. package/plugin/skills/lsp-setup/scripts/lsp-server-table.ts +3 -2
  105. package/plugin/skills/mass-ulw/SKILL.md +2 -2
  106. package/plugin/skills/mass-ulw/references/planning.md +11 -8
  107. package/plugin/skills/onboarding/SKILL.md +11 -6
  108. package/plugin/skills/programming/SKILL.md +5 -5
  109. package/plugin/skills/programming/references/code-smells.md +2 -2
  110. package/plugin/skills/programming/references/go/README.md +3 -3
  111. package/plugin/skills/programming/references/python/README.md +8 -8
  112. package/plugin/skills/programming/references/python/data-processing.md +9 -9
  113. package/plugin/skills/programming/references/rust-ub/README.md +3 -3
  114. package/plugin/skills/programming/references/typescript/README.md +5 -5
  115. package/plugin/skills/programming/scripts/typescript/new-project.ts +1 -1
  116. package/plugin/skills/refactor/SKILL.md +35 -35
  117. package/plugin/skills/remove-ai-slops/SKILL.md +6 -6
  118. package/plugin/skills/review-work/SKILL.md +2 -2
  119. package/plugin/skills/ultimate-browsing/SKILL.md +10 -7
  120. package/plugin/skills/ultimate-browsing/engine/AGENTS.md +4 -4
  121. package/plugin/skills/ultimate-browsing/references/agent-reach/README.md +2 -2
  122. package/plugin/skills/ultimate-browsing/references/agent-reach/career.md +1 -1
  123. package/plugin/skills/ultimate-browsing/references/agent-reach/social.md +1 -1
  124. package/plugin/skills/ultimate-browsing/references/agent-reach/web.md +4 -4
  125. package/plugin/skills/ultimate-browsing/references/chrome-stealth.md +2 -1
  126. package/plugin/skills/ultimate-browsing/references/insane-search/README.md +16 -17
  127. package/plugin/skills/ultimate-browsing/references/insane-search/fallback.md +10 -6
  128. package/plugin/skills/ultimate-browsing/references/insane-search/jina.md +12 -12
  129. package/plugin/skills/ultimate-browsing/references/insane-search/naver.md +3 -3
  130. package/plugin/skills/ultimate-browsing/references/insane-search/playwright.md +1 -1
  131. package/plugin/skills/ultimate-browsing/references/insane-search/rss.md +1 -1
  132. package/plugin/skills/ultimate-browsing/references/insane-search/tls-impersonate.md +12 -7
  133. package/plugin/skills/ultrawork/SKILL.md +22 -13
  134. package/plugin/skills/ulw-execute/SKILL.md +9 -6
  135. package/plugin/skills/ulw-loop/SKILL.md +3 -3
  136. package/plugin/skills/ulw-loop/references/define-goal.md +1 -1
  137. package/plugin/skills/ulw-loop/references/full-workflow.md +12 -12
  138. package/plugin/skills/ulw-plan/SKILL.md +2 -2
  139. package/plugin/skills/ulw-plan/references/full-workflow.md +4 -4
  140. package/plugin/skills/ulw-plan/references/intent-unclear.md +2 -2
  141. package/plugin/skills/ulw-research/SKILL.md +1 -1
  142. package/plugin/skills/ulw-research/references/deliverable-phase.md +5 -5
  143. package/plugin/skills/ulw-research/references/latex-report.md +2 -1
  144. package/plugin/skills/ulw-research/references/report-visualization.md +2 -2
  145. package/plugin/skills/ulw-research/references/research-collection.md +4 -4
  146. package/plugin/skills/ulw-research/references/research-delivery.md +2 -2
  147. package/plugin/skills/ulw-research/references/unit-rules.md +2 -2
  148. package/plugin/skills/visual-qa/AGENTS.md +1 -1
  149. package/plugin/skills/visual-qa/SKILL.md +5 -5
  150. package/plugin/skills/visual-qa/references/browser-setup.md +4 -2
  151. package/plugin/skills/visualize/SKILL.md +8 -8
  152. package/plugin/telemetry-schema.json +4 -1
  153. package/plugin/telemetry-schema.omo-cloud.json +4 -1
Binary file
package/bin/lib/doctor.js CHANGED
@@ -10,6 +10,7 @@ import { migrationReport } from "./doctor-migration.js"
10
10
  import { launchSpecDoctorLines } from "./launch-spec-mode.js"
11
11
  import { piConfigReport } from "./doctor-pi-config.js"
12
12
  import { needsSetupSuggestion } from "./setup-detect.js"
13
+ import { keychainHelperDoctorLines } from "./keychain-helper-doctor.js"
13
14
  import { sameVersion } from "./same-version.js"
14
15
 
15
16
  export function installedDistTag(version) {
@@ -428,6 +429,7 @@ export function runDoctor(inventory, args = [], options = {}) {
428
429
  const launchSpec = launchSpecDoctorLines(options.pluginRoot ?? join(packageRoot, "plugin"), options.launchSpecIo)
429
430
  if (launchSpec.some((line) => line.startsWith("FAIL "))) failed = true
430
431
  lines.push(...launchSpec)
432
+ lines.push(...(options.keychainHelper ?? keychainHelperDoctorLines({ packageRoot })))
431
433
  lines.push(...daemonReport(options), ...(options.computerUse ?? []), ...(options.categoryCoverage ?? []))
432
434
  if ((options.computerUse ?? []).some((line) => line.startsWith("FAIL "))) failed = true
433
435
  if (needsSetupSuggestion(inventory)) {
@@ -0,0 +1,27 @@
1
+ // The npm launcher's engine entry for a launch that claims memory sync at boot (#11997, memory-sync-boot.js):
2
+ // argv is `<runtime> engine-boot.js <senpi cli> ...engine args`. It drops its own path so the engine sees the argv
3
+ // it always has, starts the claim, then runs senpi's CLI in this process. It follows the entry contract in omo-senpi
4
+ // desktop-sync/bootClaim.ts with the engine's own modules: cwd guard, filler release, gate, then the capture and claim.
5
+ import { basename, dirname, join } from "node:path"
6
+ import { pathToFileURL } from "node:url"
7
+ import { launchClaimsMemorySyncAtBoot } from "./memory-sync-boot.js"
8
+ import { packageRoot } from "./package-paths.js"
9
+
10
+ const cliPath = process.argv[2]
11
+ process.argv.splice(1, 1)
12
+ // The engine ships its CLI pre-bundled under dist/bundle and every module unbundled under dist.
13
+ const distDir = basename(dirname(cliPath)) === "bundle" ? dirname(dirname(cliPath)) : dirname(cliPath)
14
+ const moduleUrl = (path) => pathToFileURL(path).href
15
+ try {
16
+ await import(moduleUrl(join(distDir, "valid-cwd.js")))
17
+ await import(moduleUrl(join(distDir, "private-fd-startup-release.js")))
18
+ const sidecar = await import(moduleUrl(join(packageRoot, "plugin", "extensions", "omo-device-account.js")))
19
+ if (launchClaimsMemorySyncAtBoot(process.argv.slice(2), process.env, sidecar.claimsMemorySyncAtBoot)) {
20
+ const { takeInheritedPrivateChannel } = await import(moduleUrl(join(distDir, "private-fds.js")))
21
+ sidecar.claimMemorySyncAtBoot(takeInheritedPrivateChannel)
22
+ }
23
+ } catch (error) {
24
+ // The memory component's registration still selects once when the first session opens.
25
+ process.stderr.write(`omo: memory sync could not start at boot: ${error instanceof Error ? error.message : String(error)}\n`)
26
+ }
27
+ await import(moduleUrl(cliPath))
@@ -0,0 +1,26 @@
1
+ import { spawnSync } from "node:child_process"
2
+ import { existsSync } from "node:fs"
3
+ import { join } from "node:path"
4
+
5
+ // The keychain helper's designated requirement; test/keychain-helper-doctor.test.ts pins it equal to the one the
6
+ // helper is built for (packages/omo-native/keychain-helper/build.ts).
7
+ export const KEYCHAIN_HELPER_REQUIREMENT =
8
+ 'identifier "com.mengmota.omo-keychain-helper" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] ' +
9
+ 'and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.OU] = "523JNR86LZ"'
10
+
11
+ const verifyWithCodesign = (path) =>
12
+ spawnSync("/usr/bin/codesign", ["--verify", "--strict", `-R=${KEYCHAIN_HELPER_REQUIREMENT}`, path], { stdio: "ignore" }).status === 0
13
+
14
+ /**
15
+ * The one place a missing or damaged keychain helper is reported (#11262 addendum Q1/row 9): normal output stays silent
16
+ * and sign-in takes the previous path, so this is a warning, never a failure. macOS only.
17
+ */
18
+ export function keychainHelperDoctorLines({ packageRoot, helperRelPath = "bin/darwin/omo-keychain", platform = process.platform, exists = existsSync, verify = verifyWithCodesign }) {
19
+ if (platform !== "darwin") return []
20
+ const helper = join(packageRoot, helperRelPath)
21
+ if (!exists(helper))
22
+ return [`WARN keychain helper: missing ${helperRelPath}; macOS sign-in uses the previous keychain path and may ask for access again. Reinstall omo.`]
23
+ if (!verify(helper))
24
+ return [`WARN keychain helper: ${helperRelPath} failed its signature check and is never run; reinstall omo.`]
25
+ return [`PASS keychain helper: ${helperRelPath} (signed)`]
26
+ }
@@ -1,9 +1,11 @@
1
1
  import { spawnSync } from "node:child_process"
2
2
  import { existsSync } from "node:fs"
3
3
  import { join } from "node:path"
4
+ import { pathToFileURL } from "node:url"
4
5
  import { isEngineCommand } from "./engine-commands.js"
5
6
  import { spawnNode } from "./child-process.js"
6
7
  import { privateFdHandoff } from "./private-fds.js"
8
+ import { launchClaimsMemorySyncAtBoot } from "./memory-sync-boot.js"
7
9
  import { doctorCoverageLines } from "./category-coverage.js"
8
10
  import { runDoctorModels } from "./model-chains.js"
9
11
  import { doctorComputerUseLines } from "./computer-use-doctor.js"
@@ -46,6 +48,23 @@ function preparedSenpi() {
46
48
  return senpi
47
49
  }
48
50
 
51
+ // A memory-sync launch reaches the engine through this entry, which claims before senpi's CLI loads (#11997).
52
+ const ENGINE_BOOT_ENTRY = join(packageRoot, "bin", "lib", "engine-boot.js")
53
+ const DEVICE_ACCOUNT_SIDECAR = join(packageRoot, "plugin", "extensions", "omo-device-account.js")
54
+
55
+ /** Whether a launch that hands down a private-descriptor table claims memory sync at boot (the sidecar's gate). */
56
+ async function bootsWithMemorySyncClaim(args, env) {
57
+ try {
58
+ const { claimsMemorySyncAtBoot } = await import(pathToFileURL(DEVICE_ACCOUNT_SIDECAR).href)
59
+ // spawnNode starts the engine entry on this runtime without exec arguments; engine-boot.js checks again in-process.
60
+ return launchClaimsMemorySyncAtBoot(args, env, claimsMemorySyncAtBoot, { execArgv: [], versions: process.versions })
61
+ } catch (error) {
62
+ // Without the sidecar the memory component's registration still selects once when the first session opens.
63
+ process.stderr.write(`omo: memory sync could not start at boot: ${error instanceof Error ? error.message : String(error)}\n`)
64
+ return false
65
+ }
66
+ }
67
+
49
68
  async function spawnSenpi(args, withExtension) {
50
69
  const senpi = preparedSenpi()
51
70
  const finalArgs = withExtension
@@ -62,6 +81,10 @@ async function spawnSenpi(args, withExtension) {
62
81
  // A failed replacement still uses the signal-aware child path below.
63
82
  }
64
83
  }
84
+ if (handoff !== undefined && await bootsWithMemorySyncClaim(finalArgs, handoff.env)) {
85
+ await spawnNode(ENGINE_BOOT_ENTRY, [senpi.cliPath, ...finalArgs], handoff)
86
+ return
87
+ }
65
88
  await spawnNode(senpi.cliPath, finalArgs, handoff ?? { env })
66
89
  }
67
90
 
@@ -0,0 +1,19 @@
1
+ import { isEngineCommand } from "./engine-commands.js"
2
+
3
+ // #11997: a `--mode rpc` engine whose launch carried a private-descriptor table naming memory-sync starts that claim
4
+ // before senpi's CLI loads, because a multi-session host (what `host ensure` starts) loads extensions only when a
5
+ // session opens, and the desktop opens none before it has answered the claim's bootstrap frame. The launch rules are
6
+ // the device-account sidecar's `claimsMemorySyncAtBoot` (omo-senpi desktop-sync/bootGate.ts), which every entry, the
7
+ // desktop's included, calls; each omo entry passes it in from where it loads omo-senpi. omo adds only its own one-shot
8
+ // engine commands on top.
9
+
10
+ /**
11
+ * Whether this omo launch should claim memory sync at boot: not an omo one-shot engine command, and the shared gate.
12
+ * @param {readonly string[]} args
13
+ * @param {Readonly<Record<string, string | undefined>>} env
14
+ * @param {(args: readonly string[], env?: Readonly<Record<string, string | undefined>>, runtime?: { readonly execArgv: readonly string[], readonly versions: { readonly bun?: string | undefined } }) => boolean} claimsMemorySyncAtBoot
15
+ * @param {{ readonly execArgv: readonly string[], readonly versions: { readonly bun?: string | undefined } }} [runtime]
16
+ */
17
+ export function launchClaimsMemorySyncAtBoot(args, env, claimsMemorySyncAtBoot, runtime = process) {
18
+ return !isEngineCommand(args) && claimsMemorySyncAtBoot(args, env, runtime)
19
+ }