omo-ai 5.1.70 → 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.
- package/bin/darwin/omo-keychain +0 -0
- package/bin/lib/daemon.js +38 -1
- package/bin/lib/doctor.js +1 -26
- package/bin/lib/process-list.js +26 -0
- package/bin/lib/provider-map.json +1 -1
- package/bin/lib/service-auth.generated.js +68 -37
- package/package.json +2 -2
- package/plugin/CHANGELOG.md +116 -0
- package/plugin/README.md +9 -1
- package/plugin/extensions/gateway-store-worker.mjs +2 -2
- package/plugin/extensions/memory-run-supervisor.mjs +1 -1
- package/plugin/extensions/omo-claim-receipt.js +1 -1
- package/plugin/extensions/omo-computer-run-worker.mjs +1 -1
- package/plugin/extensions/omo-computer-use.js +1 -1
- package/plugin/extensions/omo-desktop-toolkit.js +1 -1
- package/plugin/extensions/omo-device-account.js +6 -6
- package/plugin/extensions/omo-device-service.js +3 -3
- package/plugin/extensions/omo-feedback.js +2 -2
- package/plugin/extensions/omo-init-deep-advisor.js +2 -2
- package/plugin/extensions/omo-member.js +2 -2
- package/plugin/extensions/omo-memory-commands.js +1 -1
- package/plugin/extensions/omo-memory-doctor.js +1 -1
- package/plugin/extensions/omo-memory-memfs.js +1 -1
- package/plugin/extensions/omo-memory-palace.js +3 -3
- package/plugin/extensions/omo-memory-sync.js +1 -1
- package/plugin/extensions/omo-onboarding-scan.js +2 -2
- package/plugin/extensions/omo-recall-store.js +1 -1
- package/plugin/extensions/omo-session-history.js +1 -1
- package/plugin/extensions/omo-side-panel.js +2 -2
- package/plugin/extensions/omo-task.js +2 -2
- package/plugin/extensions/omo-telemetry-otlp.js +2 -2
- package/plugin/extensions/omo-telemetry-posthog.js +1 -1
- package/plugin/extensions/omo-telemetry-recovery.js +1 -1
- package/plugin/extensions/omo-thread-client.js +5 -5
- package/plugin/extensions/omo-wake.js +57 -0
- package/plugin/extensions/omo.js +3 -3
- package/plugin/package.json +2 -1
- package/plugin/runtime/agent-toolkit-sdk/sdk.js +2 -2
- package/plugin/runtime/ast-grep-mcp/manifest.json +1 -1
- package/plugin/runtime/bunshin-ts/sdk.js +2 -2
- package/plugin/runtime/category-coverage/index.js +4 -4
- package/plugin/runtime/rollback-migrate.js +1 -1
- package/plugin/runtime/task-config/index.js +1 -1
- package/plugin/runtime/thread-sdk/sdk.js +5 -5
- package/plugin/scripts/install.mjs +1 -0
- package/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
package/bin/darwin/omo-keychain
CHANGED
|
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
|
|
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
|
+
}
|
package/bin/lib/doctor.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { spawnSync } from "node:child_process"
|
|
2
1
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs"
|
|
3
2
|
import { homedir } from "node:os"
|
|
4
3
|
import { join, resolve } from "node:path"
|
|
@@ -19,6 +18,7 @@ import { launchSpecDoctorLines } from "./launch-spec-mode.js"
|
|
|
19
18
|
import { piConfigReport } from "./doctor-pi-config.js"
|
|
20
19
|
import { needsSetupSuggestion } from "./setup-detect.js"
|
|
21
20
|
import { keychainHelperDoctorLines } from "./keychain-helper-doctor.js"
|
|
21
|
+
import { listProcesses } from "./process-list.js"
|
|
22
22
|
import { sameVersion } from "./same-version.js"
|
|
23
23
|
|
|
24
24
|
export function installedDistTag(version) {
|
|
@@ -96,31 +96,6 @@ function engineVersionOrUnresolved(senpi) {
|
|
|
96
96
|
const ENGINE_MARKERS = ["senpi/dist/cli.js", "senpi/dist/bundle/cli.js"]
|
|
97
97
|
const MANAGED_MODE_FLAG = "--mode"
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* Reads the live process table. `ps` is the portable answer on macOS and Linux alike, and reading
|
|
101
|
-
* it can never be a reason for diagnostics to fail, so an unavailable or unparsable listing is an
|
|
102
|
-
* empty list.
|
|
103
|
-
*/
|
|
104
|
-
export function listProcesses() {
|
|
105
|
-
if (process.platform === "win32") return []
|
|
106
|
-
// -ww: an unlimited width, so `args` is never cut at the terminal width (BSD/macOS `ps` truncates).
|
|
107
|
-
const listed = spawnSync("ps", ["-ww", "-axo", "pid=,ppid=,etime=,tty=,args="], { encoding: "utf8" })
|
|
108
|
-
if (listed.status !== 0 || typeof listed.stdout !== "string") return []
|
|
109
|
-
const entries = []
|
|
110
|
-
for (const line of listed.stdout.split("\n")) {
|
|
111
|
-
const match = /^\s*(\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(.*)$/.exec(line)
|
|
112
|
-
if (!match) continue
|
|
113
|
-
entries.push({
|
|
114
|
-
pid: Number(match[1]),
|
|
115
|
-
ppid: Number(match[2]),
|
|
116
|
-
elapsed: match[3],
|
|
117
|
-
tty: match[4],
|
|
118
|
-
command: match[5],
|
|
119
|
-
})
|
|
120
|
-
}
|
|
121
|
-
return entries
|
|
122
|
-
}
|
|
123
|
-
|
|
124
99
|
// A standalone binary runs its engine as the provisioned runtime executable itself. The same
|
|
125
100
|
// executable also serves omo's own commands, internal hosts and bundled scripts, so only a bare launch
|
|
126
101
|
// or engine flags count; those other roles are never engines.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Reads the live process table. `ps` is the portable answer on macOS and Linux alike, and reading
|
|
5
|
+
* it can never be a reason for diagnostics to fail, so an unavailable or unparsable listing is an
|
|
6
|
+
* empty list.
|
|
7
|
+
*/
|
|
8
|
+
export function listProcesses() {
|
|
9
|
+
if (process.platform === "win32") return []
|
|
10
|
+
// -ww: an unlimited width, so `args` is never cut at the terminal width (BSD/macOS `ps` truncates).
|
|
11
|
+
const listed = spawnSync("ps", ["-ww", "-axo", "pid=,ppid=,etime=,tty=,args="], { encoding: "utf8" })
|
|
12
|
+
if (listed.status !== 0 || typeof listed.stdout !== "string") return []
|
|
13
|
+
const entries = []
|
|
14
|
+
for (const line of listed.stdout.split("\n")) {
|
|
15
|
+
const match = /^\s*(\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(.*)$/.exec(line)
|
|
16
|
+
if (!match) continue
|
|
17
|
+
entries.push({
|
|
18
|
+
pid: Number(match[1]),
|
|
19
|
+
ppid: Number(match[2]),
|
|
20
|
+
elapsed: match[3],
|
|
21
|
+
tty: match[4],
|
|
22
|
+
command: match[5],
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
return entries
|
|
26
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "Derived from @code-yeongyu/senpi 2026.11.
|
|
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",
|