omo-ai 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 (41) hide show
  1. package/bin/darwin/omo-keychain +0 -0
  2. package/bin/lib/daemon.js +38 -1
  3. package/bin/lib/provider-map.json +1 -1
  4. package/bin/lib/service-auth.generated.js +58 -20
  5. package/package.json +2 -2
  6. package/plugin/CHANGELOG.md +49 -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-run-worker.mjs +1 -1
  11. package/plugin/extensions/omo-computer-use.js +1 -1
  12. package/plugin/extensions/omo-desktop-toolkit.js +1 -1
  13. package/plugin/extensions/omo-device-account.js +6 -6
  14. package/plugin/extensions/omo-device-service.js +5 -5
  15. package/plugin/extensions/omo-feedback.js +2 -2
  16. package/plugin/extensions/omo-init-deep-advisor.js +1 -1
  17. package/plugin/extensions/omo-member.js +1 -1
  18. package/plugin/extensions/omo-memory-commands.js +1 -1
  19. package/plugin/extensions/omo-memory-doctor.js +1 -1
  20. package/plugin/extensions/omo-memory-memfs.js +1 -1
  21. package/plugin/extensions/omo-memory-palace.js +1 -1
  22. package/plugin/extensions/omo-memory-sync.js +1 -1
  23. package/plugin/extensions/omo-onboarding-scan.js +2 -2
  24. package/plugin/extensions/omo-recall-store.js +1 -1
  25. package/plugin/extensions/omo-session-history.js +1 -1
  26. package/plugin/extensions/omo-side-panel.js +1 -1
  27. package/plugin/extensions/omo-task.js +2 -2
  28. package/plugin/extensions/omo-telemetry-otlp.js +1 -1
  29. package/plugin/extensions/omo-telemetry-posthog.js +1 -1
  30. package/plugin/extensions/omo-telemetry-recovery.js +1 -1
  31. package/plugin/extensions/omo-thread-client.js +3 -3
  32. package/plugin/extensions/omo-wake.js +57 -0
  33. package/plugin/extensions/omo.js +3 -3
  34. package/plugin/package.json +2 -1
  35. package/plugin/runtime/agent-toolkit-sdk/sdk.js +2 -2
  36. package/plugin/runtime/ast-grep-mcp/manifest.json +1 -1
  37. package/plugin/runtime/bunshin-ts/sdk.js +2 -2
  38. package/plugin/runtime/rollback-migrate.js +1 -1
  39. package/plugin/runtime/thread-sdk/sdk.js +3 -3
  40. package/plugin/scripts/install.mjs +1 -0
  41. package/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
Binary file
package/bin/lib/daemon.js CHANGED
@@ -48,6 +48,7 @@ const USAGE = [
48
48
  "",
49
49
  " --json print the engine's JSON line instead of a summary",
50
50
  " --no-upgrade never hand off, even from an older build",
51
+ " --pinned with run, the host it starts never idle-exits (the always-on session host unit)",
51
52
  " --include-workers include subagent sessions in status",
52
53
  " --all apply stop to every discovered endpoint",
53
54
  " --wait with stop --drain --all, wait for generations and claims to end",
@@ -241,12 +242,48 @@ export function runDaemonCommand(args, options) {
241
242
  if (outcome !== undefined) return outcome
242
243
  }
243
244
  const engineArgs = buildArgs(subcommand, args, { specPath, policy: resolvePolicy(args, config) })
244
- const result = engine.run(engineArgs, { env: hostCommandEnvironment(env, agentDir, config) })
245
+ const commandEnv = hostCommandEnvironment(env, agentDir, config)
246
+ // omo#13594: the session host unit's run. Only the host this ensure starts is pinned; task hosts drop the variable.
247
+ if (subcommand === "run" && args.includes("--pinned")) commandEnv.SENPI_RPC_HOST_COLD_START = "persistent"
248
+ const result = engine.run(engineArgs, { env: commandEnv })
245
249
  const parsed = parseEngineLine(result.stdout ?? "")
246
250
 
247
251
  if (result.stderr) stderr.write(result.stderr)
248
252
 
249
253
  if (args.includes("--json") && result.stdout) stdout.write(result.stdout.trim() + "\n")
250
254
  else stdout.write(`${summarize(subcommand, parsed, result.exitCode)}\n`)
255
+ if (subcommand === "run" && result.exitCode === DAEMON_EXIT.ok) return warmAfterRun(options)
251
256
  return result.exitCode
252
257
  }
258
+
259
+ /**
260
+ * `omo daemon run` ends with senpi's `warm` on the daemon it ensured. A multi-session host loads omo only for an open
261
+ * or a warm, and once it has loaded omo the operator daemon declares the delivery consumer, so a daemon the device
262
+ * service cold-starts can be handed deliveries before any session runs (#13037 cold wake). A warm that fails is
263
+ * reported and changes nothing about the run's answer: the consumer then starts with the daemon's first session.
264
+ */
265
+ async function warmAfterRun(options) {
266
+ const report = (reason) =>
267
+ options.stderr.write(
268
+ `omo daemon: the daemon did not load omo (${reason}); its delivery consumer starts with its first session\n`,
269
+ )
270
+ const loaded = await (options.threadSdk ?? loadThreadSdk)({ ...options, cwd: options.cwd ?? process.cwd() })
271
+ if (loaded.error !== undefined) {
272
+ report(loaded.error)
273
+ return DAEMON_EXIT.ok
274
+ }
275
+ try {
276
+ const answer = await loaded.sdk.warmDaemon()
277
+ if (answer.kind === "refused") report(answer.code)
278
+ else if (answer.kind === "unsupported") report("the engine has no warm")
279
+ } catch (error) {
280
+ report(error instanceof Error ? error.message : String(error))
281
+ } finally {
282
+ await loaded.sdk
283
+ .dispose()
284
+ .catch((error) =>
285
+ report(`closing the gateway store failed: ${error instanceof Error ? error.message : String(error)}`),
286
+ )
287
+ }
288
+ return DAEMON_EXIT.ok
289
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "_comment": "Derived from @code-yeongyu/senpi 2026.11.15 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.15-2 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",