oh-my-opencode 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.
- package/dist/cli/index.js +256 -53
- package/dist/cli-node/index.js +256 -53
- package/dist/index.js +180 -180
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/tui.js +14 -14
- package/package.json +14 -14
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
package/dist/cli-node/index.js
CHANGED
|
@@ -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.
|
|
2136
|
+
version: "5.1.72",
|
|
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",
|
|
@@ -2331,7 +2331,7 @@ var init_package = __esm(() => {
|
|
|
2331
2331
|
},
|
|
2332
2332
|
devDependencies: {
|
|
2333
2333
|
"@clack/prompts": "^1.8.1",
|
|
2334
|
-
"@code-yeongyu/senpi": "2026.11.15",
|
|
2334
|
+
"@code-yeongyu/senpi": "2026.11.15-2",
|
|
2335
2335
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
2336
2336
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
2337
2337
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -2404,18 +2404,18 @@ var init_package = __esm(() => {
|
|
|
2404
2404
|
typescript: "^7.0.2"
|
|
2405
2405
|
},
|
|
2406
2406
|
optionalDependencies: {
|
|
2407
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
2408
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
2409
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
2410
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
2411
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
2412
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
2413
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
2414
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
2415
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
2416
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
2417
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
2418
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
2407
|
+
"oh-my-opencode-darwin-arm64": "5.1.72",
|
|
2408
|
+
"oh-my-opencode-darwin-x64": "5.1.72",
|
|
2409
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.72",
|
|
2410
|
+
"oh-my-opencode-linux-arm64": "5.1.72",
|
|
2411
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.72",
|
|
2412
|
+
"oh-my-opencode-linux-x64": "5.1.72",
|
|
2413
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.72",
|
|
2414
|
+
"oh-my-opencode-linux-x64-musl": "5.1.72",
|
|
2415
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.72",
|
|
2416
|
+
"oh-my-opencode-windows-arm64": "5.1.72",
|
|
2417
|
+
"oh-my-opencode-windows-x64": "5.1.72",
|
|
2418
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.72"
|
|
2419
2419
|
},
|
|
2420
2420
|
overrides: {
|
|
2421
2421
|
hono: "^4.13.8",
|
|
@@ -92956,7 +92956,7 @@ var package_default2;
|
|
|
92956
92956
|
var init_package2 = __esm(() => {
|
|
92957
92957
|
package_default2 = {
|
|
92958
92958
|
name: "@oh-my-opencode/omo-codex",
|
|
92959
|
-
version: "5.1.
|
|
92959
|
+
version: "5.1.72",
|
|
92960
92960
|
type: "module",
|
|
92961
92961
|
private: true,
|
|
92962
92962
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
|
@@ -100347,6 +100347,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
|
|
|
100347
100347
|
join66("extensions", "loro_wasm_bg.wasm"),
|
|
100348
100348
|
join66("extensions", "CaseFolding.txt"),
|
|
100349
100349
|
join66("extensions", "omo-thread-client.js"),
|
|
100350
|
+
join66("extensions", "omo-wake.js"),
|
|
100350
100351
|
join66("extensions", "omo-telemetry-recovery.js"),
|
|
100351
100352
|
join66("extensions", "omo-feedback.js"),
|
|
100352
100353
|
join66("extensions", "omo-desktop-toolkit.js"),
|
|
@@ -109743,8 +109744,8 @@ var package_default3 = {
|
|
|
109743
109744
|
},
|
|
109744
109745
|
dependencies: {
|
|
109745
109746
|
"@clack/prompts": "^1.8.1",
|
|
109746
|
-
"@code-yeongyu/senpi": "2026.11.15",
|
|
109747
|
-
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.15",
|
|
109747
|
+
"@code-yeongyu/senpi": "2026.11.15-2",
|
|
109748
|
+
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.15-2",
|
|
109748
109749
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
109749
109750
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
109750
109751
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
@@ -116129,8 +116130,7 @@ function configureServiceAuthCommands(program, open = serviceAccountsOpen(), hoo
|
|
|
116129
116130
|
import { existsSync as existsSync68 } from "node:fs";
|
|
116130
116131
|
|
|
116131
116132
|
// packages/device-service-core/src/device-service.ts
|
|
116132
|
-
import {
|
|
116133
|
-
import { join as join120 } from "node:path";
|
|
116133
|
+
import { join as join121 } from "node:path";
|
|
116134
116134
|
|
|
116135
116135
|
// packages/device-service-core/src/local-api/access.ts
|
|
116136
116136
|
import { createHmac as createHmac2, randomBytes as randomBytes7, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
@@ -116639,7 +116639,8 @@ var ERROR_CODES = [
|
|
|
116639
116639
|
"method_unclassified",
|
|
116640
116640
|
"method_local_only",
|
|
116641
116641
|
"host_not_answering",
|
|
116642
|
-
"unsupported"
|
|
116642
|
+
"unsupported",
|
|
116643
|
+
"unknown_delivery"
|
|
116643
116644
|
];
|
|
116644
116645
|
var PATH_REFUSAL_PROBLEMS = [
|
|
116645
116646
|
"not_absolute",
|
|
@@ -116903,6 +116904,7 @@ var ATTACH_ID_MAX = 4294967295;
|
|
|
116903
116904
|
var MILLIS_MAX = Number.MAX_SAFE_INTEGER;
|
|
116904
116905
|
var deviceId = (v, what = "device") => text(v, SESSION_DEVICE_MAX_CHARS, what);
|
|
116905
116906
|
var sessionId = (v) => text(v, SESSION_ID_MAX_CHARS, "session_id");
|
|
116907
|
+
var durableId = (v, what = "durable_id") => text(v, SESSION_ID_MAX_CHARS, what);
|
|
116906
116908
|
var attachId = (v) => uint(v, 1, ATTACH_ID_MAX, "attach_id");
|
|
116907
116909
|
var millis = (v, what) => uint(v, 0, MILLIS_MAX, what);
|
|
116908
116910
|
var deviceRef = (v, what = "device", fields = exactly) => {
|
|
@@ -117335,6 +117337,94 @@ var DELEGATED_EVENT_VALIDATORS = {
|
|
|
117335
117337
|
}
|
|
117336
117338
|
};
|
|
117337
117339
|
|
|
117340
|
+
// packages/device-service-core/src/local-api/validate-deliveries.ts
|
|
117341
|
+
var PROTOCOL_MAX = 1e6;
|
|
117342
|
+
var PAIRS_MAX = 4096;
|
|
117343
|
+
var pairOf = (m) => ({
|
|
117344
|
+
sender_device: deviceId(m["sender_device"], "sender_device"),
|
|
117345
|
+
session_id: durableId(m["session_id"], "session_id"),
|
|
117346
|
+
last_command_id: commandId(m["last_command_id"])
|
|
117347
|
+
});
|
|
117348
|
+
var PAIR_FIELDS = ["sender_device", "session_id", "last_command_id"];
|
|
117349
|
+
var DELIVERIES_REQUEST_VALIDATORS = {
|
|
117350
|
+
"delivery.pending": (v, id) => {
|
|
117351
|
+
const pairs = requestFields(v, ["pairs"])["pairs"];
|
|
117352
|
+
if (!Array.isArray(pairs) || pairs.length > PAIRS_MAX)
|
|
117353
|
+
return fail("pairs");
|
|
117354
|
+
return { id, type: "delivery.pending", pairs: pairs.map((p) => pairOf(exactly(p, PAIR_FIELDS, [], "pair"))) };
|
|
117355
|
+
},
|
|
117356
|
+
"delivery.drained": (v, id) => ({ id, type: "delivery.drained", ...pairOf(requestFields(v, PAIR_FIELDS)) }),
|
|
117357
|
+
"deliveries.serve": (v, id) => {
|
|
117358
|
+
const m = requestFields(v, ["agent_dir", "v"]);
|
|
117359
|
+
return {
|
|
117360
|
+
id,
|
|
117361
|
+
type: "deliveries.serve",
|
|
117362
|
+
agent_dir: absolutePath(m["agent_dir"], "agent_dir"),
|
|
117363
|
+
v: uint(m["v"], 0, PROTOCOL_MAX, "v")
|
|
117364
|
+
};
|
|
117365
|
+
},
|
|
117366
|
+
"delivery.answer": (v, id) => {
|
|
117367
|
+
const m = requestFields(v, ["sender_device", "command_id", "reply"]);
|
|
117368
|
+
return {
|
|
117369
|
+
id,
|
|
117370
|
+
type: "delivery.answer",
|
|
117371
|
+
sender_device: deviceId(m["sender_device"], "sender_device"),
|
|
117372
|
+
command_id: commandId(m["command_id"]),
|
|
117373
|
+
reply: jsonObject(m["reply"], "reply")
|
|
117374
|
+
};
|
|
117375
|
+
},
|
|
117376
|
+
"delivery.held": (v, id) => {
|
|
117377
|
+
const m = requestFields(v, ["ask_id", "holds"]);
|
|
117378
|
+
return { id, type: "delivery.held", ask_id: localId(m["ask_id"], "ask_id"), holds: bool(m["holds"], "holds") };
|
|
117379
|
+
},
|
|
117380
|
+
"peer.admitted": (v, id) => ({ id, type: "peer.admitted", device: deviceId(requestFields(v, ["device"])["device"]) })
|
|
117381
|
+
};
|
|
117382
|
+
var empty = (v) => {
|
|
117383
|
+
known(v, [], [], "data");
|
|
117384
|
+
return {};
|
|
117385
|
+
};
|
|
117386
|
+
var DELIVERIES_DATA = {
|
|
117387
|
+
"deliveries.serve": (v) => ({ wake: bool(known(v, ["wake"], [], "data")["wake"], "wake") }),
|
|
117388
|
+
"delivery.answer": empty,
|
|
117389
|
+
"delivery.held": empty,
|
|
117390
|
+
"delivery.pending": empty,
|
|
117391
|
+
"delivery.drained": (v) => {
|
|
117392
|
+
const m = known(v, ["kept"], ["expecting"], "data");
|
|
117393
|
+
const kept = bool(m["kept"], "kept");
|
|
117394
|
+
if (!kept)
|
|
117395
|
+
return m["expecting"] === undefined ? { kept } : fail("expecting");
|
|
117396
|
+
return { kept, expecting: commandId(m["expecting"]) };
|
|
117397
|
+
},
|
|
117398
|
+
"peer.admitted": (v) => ({ admitted: bool(known(v, ["admitted"], [], "data")["admitted"], "admitted") })
|
|
117399
|
+
};
|
|
117400
|
+
var DELIVERIES_EVENT_VALIDATORS = {
|
|
117401
|
+
"delivery.wake": (v) => ({
|
|
117402
|
+
type: "event",
|
|
117403
|
+
kind: "delivery.wake",
|
|
117404
|
+
enabled: bool(eventFields(v, ["enabled"])["enabled"], "enabled")
|
|
117405
|
+
}),
|
|
117406
|
+
"delivery.inbound": (v) => {
|
|
117407
|
+
const m = eventFields(v, ["command_id", "sender_device", "durable_id", "record"]);
|
|
117408
|
+
return {
|
|
117409
|
+
type: "event",
|
|
117410
|
+
kind: "delivery.inbound",
|
|
117411
|
+
command_id: commandId(m["command_id"]),
|
|
117412
|
+
sender_device: deviceId(m["sender_device"], "sender_device"),
|
|
117413
|
+
durable_id: durableId(m["durable_id"]),
|
|
117414
|
+
record: jsonObject(m["record"], "record")
|
|
117415
|
+
};
|
|
117416
|
+
},
|
|
117417
|
+
"delivery.holds": (v) => {
|
|
117418
|
+
const m = eventFields(v, ["ask_id", "durable_id"]);
|
|
117419
|
+
return {
|
|
117420
|
+
type: "event",
|
|
117421
|
+
kind: "delivery.holds",
|
|
117422
|
+
ask_id: localId(m["ask_id"], "ask_id"),
|
|
117423
|
+
durable_id: durableId(m["durable_id"])
|
|
117424
|
+
};
|
|
117425
|
+
}
|
|
117426
|
+
};
|
|
117427
|
+
|
|
117338
117428
|
// packages/device-service-core/src/local-api/validate-events.ts
|
|
117339
117429
|
var revisionOf = (m) => uint(m["revision"], 1, Number.MAX_SAFE_INTEGER, "revision");
|
|
117340
117430
|
var devicesOf = (v) => {
|
|
@@ -117386,6 +117476,7 @@ var commandStateOf = (v) => {
|
|
|
117386
117476
|
var VALIDATORS = {
|
|
117387
117477
|
...STREAM_EVENT_VALIDATORS,
|
|
117388
117478
|
...DELEGATED_EVENT_VALIDATORS,
|
|
117479
|
+
...DELIVERIES_EVENT_VALIDATORS,
|
|
117389
117480
|
"status.changed": (v) => ({
|
|
117390
117481
|
type: "event",
|
|
117391
117482
|
kind: "status.changed",
|
|
@@ -117516,6 +117607,7 @@ var agentDir = (v) => absolutePath(requestFields(v, ["agent_dir"])["agent_dir"],
|
|
|
117516
117607
|
var VALIDATORS2 = {
|
|
117517
117608
|
...COMMAND_REQUEST_VALIDATORS,
|
|
117518
117609
|
...DELEGATED_REQUEST_VALIDATORS,
|
|
117610
|
+
...DELIVERIES_REQUEST_VALIDATORS,
|
|
117519
117611
|
authenticate: (v, id) => {
|
|
117520
117612
|
const m = requestFields(v, ["client_proof"]);
|
|
117521
117613
|
return { id, type: "authenticate", client_proof: text(m["client_proof"], 64, "client_proof") };
|
|
@@ -117528,6 +117620,15 @@ var VALIDATORS2 = {
|
|
|
117528
117620
|
bare(v);
|
|
117529
117621
|
return { id, type: "status.subscribe" };
|
|
117530
117622
|
},
|
|
117623
|
+
"control.session_wake.get": (v, id) => {
|
|
117624
|
+
bare(v);
|
|
117625
|
+
return { id, type: "control.session_wake.get" };
|
|
117626
|
+
},
|
|
117627
|
+
"control.session_wake.set": (v, id) => {
|
|
117628
|
+
const value = requestFields(v, ["enabled"])["enabled"];
|
|
117629
|
+
const enabled = value === null || typeof value === "boolean" ? value : fail("enabled");
|
|
117630
|
+
return { id, type: "control.session_wake.set", enabled };
|
|
117631
|
+
},
|
|
117531
117632
|
"control.attach.get": (v, id) => {
|
|
117532
117633
|
bare(v);
|
|
117533
117634
|
return { id, type: "control.attach.get" };
|
|
@@ -117664,7 +117765,7 @@ var validateWelcome = (v) => asViolation(() => {
|
|
|
117664
117765
|
state: statusOf(m["state"])
|
|
117665
117766
|
};
|
|
117666
117767
|
});
|
|
117667
|
-
var
|
|
117768
|
+
var empty2 = (v) => {
|
|
117668
117769
|
known(v, [], [], "data");
|
|
117669
117770
|
return {};
|
|
117670
117771
|
};
|
|
@@ -117677,35 +117778,49 @@ var attachState = (v) => {
|
|
|
117677
117778
|
changedAt: typeof changedAt === "string" ? changedAt : fail("changedAt")
|
|
117678
117779
|
};
|
|
117679
117780
|
};
|
|
117781
|
+
var sessionWakeState = (v) => {
|
|
117782
|
+
const m = known(v, ["enabled", "stored", "changedAt", "overridden"], [], "data");
|
|
117783
|
+
const s = m["stored"];
|
|
117784
|
+
const changedAt = m["changedAt"];
|
|
117785
|
+
return {
|
|
117786
|
+
enabled: bool(m["enabled"], "enabled"),
|
|
117787
|
+
stored: s === null || typeof s === "boolean" ? s : s === "unreadable" ? "unreadable" : fail("stored"),
|
|
117788
|
+
changedAt: typeof changedAt === "string" ? changedAt : fail("changedAt"),
|
|
117789
|
+
overridden: bool(m["overridden"], "overridden")
|
|
117790
|
+
};
|
|
117791
|
+
};
|
|
117680
117792
|
var DATA = {
|
|
117681
|
-
authenticate:
|
|
117793
|
+
authenticate: empty2,
|
|
117682
117794
|
"status.get": statusOf,
|
|
117683
|
-
"status.subscribe":
|
|
117795
|
+
"status.subscribe": empty2,
|
|
117684
117796
|
"service.set_enabled": (v) => ({ enabled: bool(one(v, "enabled"), "enabled") }),
|
|
117685
|
-
"refresher.register":
|
|
117797
|
+
"refresher.register": empty2,
|
|
117686
117798
|
"device.adopt": (v) => ({ device: deviceRef(one(v, "device"), "device", known) }),
|
|
117687
|
-
"device.forget":
|
|
117799
|
+
"device.forget": empty2,
|
|
117688
117800
|
"device.info": (v) => ({
|
|
117689
117801
|
device: nullable2(one(v, "device"), (d) => deviceRef(d, "device", known))
|
|
117690
117802
|
}),
|
|
117691
|
-
"endpoints.register":
|
|
117692
|
-
"endpoints.unregister":
|
|
117803
|
+
"endpoints.register": empty2,
|
|
117804
|
+
"endpoints.unregister": empty2,
|
|
117693
117805
|
"devices.list": (v) => {
|
|
117694
117806
|
const devices = one(v, "devices");
|
|
117695
117807
|
return Array.isArray(devices) ? { devices: devices.map(deviceRowOf) } : fail("devices");
|
|
117696
117808
|
},
|
|
117697
117809
|
"sessions.list": (v) => ({ query_id: localId(one(v, "query_id"), "query_id") }),
|
|
117698
117810
|
"session.attach": (v) => ({ attach: localId(one(v, "attach"), "attach") }),
|
|
117699
|
-
"session.detach":
|
|
117811
|
+
"session.detach": empty2,
|
|
117700
117812
|
"session.command": (v) => ({ command_id: commandId(one(v, "command_id")) }),
|
|
117701
117813
|
"session.command_part": (v) => ({
|
|
117702
117814
|
received: uint(one(v, "received"), 0, LOCAL_UPLOAD_PARTS_MAX - 1, "received")
|
|
117703
117815
|
}),
|
|
117704
117816
|
"session.read": (v) => ({ query_id: localId(one(v, "query_id"), "query_id") }),
|
|
117705
|
-
"enforcement.report":
|
|
117706
|
-
"owner.shutdown_for_upgrade":
|
|
117817
|
+
"enforcement.report": empty2,
|
|
117818
|
+
"owner.shutdown_for_upgrade": empty2,
|
|
117707
117819
|
"session.endpoints": endpointsData,
|
|
117708
117820
|
"session.locate": locateData,
|
|
117821
|
+
...DELIVERIES_DATA,
|
|
117822
|
+
"control.session_wake.get": sessionWakeState,
|
|
117823
|
+
"control.session_wake.set": sessionWakeState,
|
|
117709
117824
|
"control.attach.get": attachState,
|
|
117710
117825
|
"control.attach.set": attachState
|
|
117711
117826
|
};
|
|
@@ -117794,6 +117909,9 @@ class EventAssembler {
|
|
|
117794
117909
|
case "session.command_blob_chunk":
|
|
117795
117910
|
case "session.command_blob_done":
|
|
117796
117911
|
case "session.channel_closed":
|
|
117912
|
+
case "delivery.inbound":
|
|
117913
|
+
case "delivery.holds":
|
|
117914
|
+
case "delivery.wake":
|
|
117797
117915
|
return;
|
|
117798
117916
|
default:
|
|
117799
117917
|
return assertNever(event);
|
|
@@ -118219,7 +118337,8 @@ var handshake = (connection, options) => new Promise((resolve, reject) => {
|
|
|
118219
118337
|
}, HANDSHAKE_TIMEOUT_MS);
|
|
118220
118338
|
proveAndAuthenticate(connection, options).then(resolve, reject).finally(cancel);
|
|
118221
118339
|
});
|
|
118222
|
-
var sendCommand = async (connection, attach, rpc, command_id, route) => {
|
|
118340
|
+
var sendCommand = async (connection, attach, rpc, command_id, route, accepts) => {
|
|
118341
|
+
const marked = accepts === undefined ? {} : { accepts };
|
|
118223
118342
|
const sent = command_id ?? mintId();
|
|
118224
118343
|
const id = { command_id: sent };
|
|
118225
118344
|
const timedOut = (error) => {
|
|
@@ -118246,9 +118365,26 @@ var sendCommand = async (connection, attach, rpc, command_id, route) => {
|
|
|
118246
118365
|
const upload_id = mintId();
|
|
118247
118366
|
const parts = uploadParts(json).map((part) => connection.request("session.command_part", { attach, upload_id, ...part }));
|
|
118248
118367
|
await Promise.all(parts);
|
|
118249
|
-
return (await connection.request("session.command", { attach, ...id, ...route, upload_id }).catch(timedOut)).command_id;
|
|
118368
|
+
return (await connection.request("session.command", { attach, ...id, ...marked, ...route, upload_id }).catch(timedOut)).command_id;
|
|
118369
|
+
}
|
|
118370
|
+
return (await connection.request("session.command", { attach, ...id, ...marked, ...route, rpc }).catch(timedOut)).command_id;
|
|
118371
|
+
};
|
|
118372
|
+
var sendWakeCommand = async (connection, device, durableId, rpc, command_id) => {
|
|
118373
|
+
const sent = command_id ?? mintId();
|
|
118374
|
+
const params = { wake: { device, durable_id: durableId }, command_id: sent, rpc };
|
|
118375
|
+
if (lineBytes({ id: "x".repeat(REQUEST_ID_MAX_CHARS), type: "session.command", ...params }) > LOCAL_INLINE_MAX)
|
|
118376
|
+
throw new LocalApiError("message_too_long", "a wake command travels inline only", {
|
|
118377
|
+
limit_chars: MESSAGE_LIMIT_CHARS
|
|
118378
|
+
});
|
|
118379
|
+
try {
|
|
118380
|
+
return (await connection.request("session.command", params)).command_id;
|
|
118381
|
+
} catch (error) {
|
|
118382
|
+
if (error instanceof LocalApiError && error.code === "request_timeout")
|
|
118383
|
+
throw new LocalApiError("request_timeout", `command ${sent} may have been dispatched; follow its command state`, {
|
|
118384
|
+
command_id: sent
|
|
118385
|
+
});
|
|
118386
|
+
throw error;
|
|
118250
118387
|
}
|
|
118251
|
-
return (await connection.request("session.command", { attach, ...id, ...route, rpc }).catch(timedOut)).command_id;
|
|
118252
118388
|
};
|
|
118253
118389
|
var sendEndpointCommand = async (connection, device, endpoint, rpc, command_id, locate) => {
|
|
118254
118390
|
const sent = command_id ?? mintId();
|
|
@@ -118291,7 +118427,8 @@ var connectLocalApi = async (options) => {
|
|
|
118291
118427
|
listeners.delete(listener);
|
|
118292
118428
|
};
|
|
118293
118429
|
},
|
|
118294
|
-
command: (attach, rpc, command_id, route = {}) => sendCommand(connection, attach, rpc, command_id, route),
|
|
118430
|
+
command: (attach, rpc, command_id, route = {}, options) => sendCommand(connection, attach, rpc, command_id, route, options?.accepts),
|
|
118431
|
+
wakeCommand: (device, durableId, rpc, command_id) => sendWakeCommand(connection, device, durableId, rpc, command_id),
|
|
118295
118432
|
endpointCommand: (device, endpoint, rpc, command_id, options) => sendEndpointCommand(connection, device, endpoint, rpc, command_id, options?.locate === true),
|
|
118296
118433
|
list: (filter, onRevision, rows) => new Promise((resolve, reject) => {
|
|
118297
118434
|
const params = {
|
|
@@ -118560,7 +118697,7 @@ function openAttach(client, device, sessionId) {
|
|
|
118560
118697
|
failure: () => failure,
|
|
118561
118698
|
onFrame: (listener) => delegated.onFrame(listener),
|
|
118562
118699
|
onChannelLoss: (listener) => delegated.onLoss(listener),
|
|
118563
|
-
command: (rpc) => new Promise((resolve, reject) => {
|
|
118700
|
+
command: (rpc, options) => new Promise((resolve, reject) => {
|
|
118564
118701
|
if (ended)
|
|
118565
118702
|
return reject(new Error("the attach has ended"));
|
|
118566
118703
|
const commandId = randomBytes8(16).toString("base64url");
|
|
@@ -118584,7 +118721,7 @@ function openAttach(client, device, sessionId) {
|
|
|
118584
118721
|
resolve(response === undefined ? { outcome: event } : { outcome: event, response });
|
|
118585
118722
|
});
|
|
118586
118723
|
commands.add(end);
|
|
118587
|
-
client.command(attach, rpc, commandId, { delegated: true }).catch((error) => {
|
|
118724
|
+
client.command(attach, rpc, commandId, { delegated: true }, options).catch((error) => {
|
|
118588
118725
|
settle();
|
|
118589
118726
|
reject(error);
|
|
118590
118727
|
});
|
|
@@ -118628,6 +118765,9 @@ function newestRowsListing(client) {
|
|
|
118628
118765
|
// packages/device-service-core/src/device-service.ts
|
|
118629
118766
|
import { randomBytes as randomBytes9 } from "node:crypto";
|
|
118630
118767
|
|
|
118768
|
+
// packages/device-service-core/src/minimum-in-effect.ts
|
|
118769
|
+
var minimumInEffect = (option, key, shipped) => option === undefined ? shipped : option[key];
|
|
118770
|
+
|
|
118631
118771
|
// packages/device-service-core/src/release/version.ts
|
|
118632
118772
|
var SEMVER2 = /^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/;
|
|
118633
118773
|
var compareIdentifier = (a, b) => {
|
|
@@ -118664,9 +118804,49 @@ var compareVersions4 = (a, b) => {
|
|
|
118664
118804
|
}
|
|
118665
118805
|
return 0;
|
|
118666
118806
|
};
|
|
118807
|
+
|
|
118808
|
+
// packages/device-service-core/src/state-dir.ts
|
|
118809
|
+
import { readFileSync as readFileSync48, statSync as statSync10 } from "node:fs";
|
|
118810
|
+
import { homedir as homedir36 } from "node:os";
|
|
118811
|
+
import { dirname as dirname49, join as join120, posix as posix17, win32 as win3212 } from "node:path";
|
|
118812
|
+
var DEVICE_SERVICE_STATE_DIR_ENV = "OMO_DEVICE_SERVICE_STATE_DIR";
|
|
118813
|
+
var LOCATION_FILE = "device-service.location.json";
|
|
118814
|
+
var isAbsoluteOn = (platform, path) => (platform === "win32" ? win3212 : posix17).isAbsolute(path);
|
|
118815
|
+
function defaultStateDir(platform, env, home) {
|
|
118816
|
+
if (platform !== "win32")
|
|
118817
|
+
return join120(home, ".omo", "device-service");
|
|
118818
|
+
const localAppData = env.LOCALAPPDATA ?? join120(home, "AppData", "Local");
|
|
118819
|
+
return join120(localAppData, "OmO", "device-service");
|
|
118820
|
+
}
|
|
118821
|
+
function discoveredStateDir(platform, defaultDir) {
|
|
118822
|
+
try {
|
|
118823
|
+
const parsed = JSON.parse(readFileSync48(join120(dirname49(defaultDir), LOCATION_FILE), "utf8"));
|
|
118824
|
+
if (typeof parsed !== "object" || parsed === null || !("v" in parsed) || !("state_dir" in parsed))
|
|
118825
|
+
return;
|
|
118826
|
+
const { v, state_dir: stateDir } = parsed;
|
|
118827
|
+
if (v !== 1 || typeof stateDir !== "string" || !isAbsoluteOn(platform, stateDir))
|
|
118828
|
+
return;
|
|
118829
|
+
return statSync10(stateDir).isDirectory() ? stateDir : undefined;
|
|
118830
|
+
} catch {
|
|
118831
|
+
return;
|
|
118832
|
+
}
|
|
118833
|
+
}
|
|
118834
|
+
function deviceServiceStateDir(platform = process.platform, env = process.env, home = homedir36()) {
|
|
118835
|
+
const explicit = env[DEVICE_SERVICE_STATE_DIR_ENV];
|
|
118836
|
+
if (explicit !== undefined && explicit !== "" && isAbsoluteOn(platform, explicit))
|
|
118837
|
+
return explicit;
|
|
118838
|
+
const defaultDir = defaultStateDir(platform, env, home);
|
|
118839
|
+
return discoveredStateDir(platform, defaultDir) ?? defaultDir;
|
|
118840
|
+
}
|
|
118667
118841
|
// packages/device-service-core/src/device-service.ts
|
|
118668
118842
|
var ENDPOINT_COMMAND_WAIT_MS = 120000;
|
|
118669
118843
|
function sendToEndpoint(client, device, endpoint, rpc, locate) {
|
|
118844
|
+
return followDelegatedCommand(client, device, (commandId) => {
|
|
118845
|
+
const send = (asked) => client.endpointCommand(device, endpoint, rpc, commandId, { locate: asked });
|
|
118846
|
+
return send(locate).catch((error) => locate && error instanceof LocalApiError && error.code === "invalid_request" ? send(false) : Promise.reject(error));
|
|
118847
|
+
});
|
|
118848
|
+
}
|
|
118849
|
+
function followDelegatedCommand(client, device, send) {
|
|
118670
118850
|
return new Promise((resolve, reject) => {
|
|
118671
118851
|
const commandId = randomBytes9(16).toString("base64url");
|
|
118672
118852
|
const channel = followDelegatedChannel(device);
|
|
@@ -118701,8 +118881,7 @@ function sendToEndpoint(client, device, endpoint, rpc, locate) {
|
|
|
118701
118881
|
const timer = setTimeout(() => fail(new Error(`no final state for endpoint command ${commandId} within ${ENDPOINT_COMMAND_WAIT_MS} ms`)), ENDPOINT_COMMAND_WAIT_MS);
|
|
118702
118882
|
timer.unref?.();
|
|
118703
118883
|
client.closed.then(() => fail(new Error("the connection closed before the endpoint command settled")));
|
|
118704
|
-
|
|
118705
|
-
send(locate).catch((error) => locate && error instanceof LocalApiError && error.code === "invalid_request" ? send(false).catch(fail) : fail(error));
|
|
118884
|
+
send(commandId).catch(fail);
|
|
118706
118885
|
});
|
|
118707
118886
|
}
|
|
118708
118887
|
var markNotSent = (error) => error instanceof LocalApiError ? new LocalApiError(error.code, error.reason, {
|
|
@@ -118711,17 +118890,14 @@ var markNotSent = (error) => error instanceof LocalApiError ? new LocalApiError(
|
|
|
118711
118890
|
...error.path_refusal === undefined ? {} : { path_refusal: error.path_refusal },
|
|
118712
118891
|
not_sent: true
|
|
118713
118892
|
}) : error;
|
|
118714
|
-
function deviceServiceStateDir(platform = process.platform, env = process.env, home = homedir36()) {
|
|
118715
|
-
if (platform !== "win32")
|
|
118716
|
-
return join120(home, ".omo", "device-service");
|
|
118717
|
-
const localAppData = env.LOCALAPPDATA ?? join120(home, "AppData", "Local");
|
|
118718
|
-
return join120(localAppData, "OmO", "device-service");
|
|
118719
|
-
}
|
|
118720
118893
|
function deviceServiceEndpointPath(stateDir, platform = process.platform) {
|
|
118721
|
-
return
|
|
118894
|
+
return join121(stateDir, platform === "win32" ? ENDPOINT_FILE : SOCKET_FILE);
|
|
118722
118895
|
}
|
|
118723
118896
|
var ADOPT_ACCOUNT_MIN_SERVICE_VERSION = "0.1.3";
|
|
118724
118897
|
var acceptsAdoptAccount = (serviceVersion) => compareVersions4(serviceVersion, ADOPT_ACCOUNT_MIN_SERVICE_VERSION) >= 0;
|
|
118898
|
+
var WAKE_MARK_MIN_SERVICE_VERSION = "0.1.31";
|
|
118899
|
+
var LOCATE_SINGLE_MIN_SERVICE_VERSION = "0.1.13";
|
|
118900
|
+
var serviceAtLeast = (serviceVersion, minimum) => minimum !== null && compareVersions4(serviceVersion, minimum) >= 0;
|
|
118725
118901
|
async function connectDeviceService(options) {
|
|
118726
118902
|
const stateDir = options.stateDir ?? deviceServiceStateDir();
|
|
118727
118903
|
const client = await (options.connect ?? connectLocalApi)({
|
|
@@ -118729,8 +118905,14 @@ async function connectDeviceService(options) {
|
|
|
118729
118905
|
client: { name: "omo", version: options.version },
|
|
118730
118906
|
...options.background === true ? { transport: () => connectLocal(stateDir, { background: true }) } : {}
|
|
118731
118907
|
});
|
|
118908
|
+
const wakeMarkMinimum = minimumInEffect(options.minimums, "wakeMark", WAKE_MARK_MIN_SERVICE_VERSION);
|
|
118909
|
+
const carriesWakeMark = serviceAtLeast(client.welcome.service_version, wakeMarkMinimum);
|
|
118910
|
+
const takesSingleLocate = serviceAtLeast(client.welcome.service_version, minimumInEffect(options.minimums, "singleLocate", LOCATE_SINGLE_MIN_SERVICE_VERSION));
|
|
118732
118911
|
return {
|
|
118733
118912
|
serviceVersion: client.welcome.service_version,
|
|
118913
|
+
carriesWakeMark,
|
|
118914
|
+
wakeMarkMinimum,
|
|
118915
|
+
takesSingleLocate,
|
|
118734
118916
|
capabilities: client.welcome.capabilities,
|
|
118735
118917
|
initialStatus: client.welcome.state,
|
|
118736
118918
|
status: () => client.request("status.get", {}),
|
|
@@ -118748,6 +118930,8 @@ async function connectDeviceService(options) {
|
|
|
118748
118930
|
return stop;
|
|
118749
118931
|
},
|
|
118750
118932
|
setEnabled: async (enabled) => (await client.request("service.set_enabled", { enabled })).enabled,
|
|
118933
|
+
sessionWake: () => client.request("control.session_wake.get", {}),
|
|
118934
|
+
setSessionWake: (enabled) => client.request("control.session_wake.set", { enabled }),
|
|
118751
118935
|
attachControl: () => client.request("control.attach.get", {}),
|
|
118752
118936
|
setAttachControl: (attached) => client.request("control.attach.set", { attached }),
|
|
118753
118937
|
registerRefresher: async (binaryPath, version) => {
|
|
@@ -118768,7 +118952,10 @@ async function connectDeviceService(options) {
|
|
|
118768
118952
|
thisDevice: async () => (await client.request("device.info", {})).device,
|
|
118769
118953
|
devices: async () => (await client.request("devices.list", {})).devices,
|
|
118770
118954
|
sessions: newestRowsListing(client),
|
|
118771
|
-
attach: (device, sessionId) =>
|
|
118955
|
+
attach: async (device, sessionId) => {
|
|
118956
|
+
const attached = await openAttach(client, device, sessionId);
|
|
118957
|
+
return carriesWakeMark ? attached : { ...attached, command: (rpc) => attached.command(rpc) };
|
|
118958
|
+
},
|
|
118772
118959
|
endpointCommand: async (device, rpc, options) => {
|
|
118773
118960
|
let endpoint;
|
|
118774
118961
|
try {
|
|
@@ -118782,7 +118969,18 @@ async function connectDeviceService(options) {
|
|
|
118782
118969
|
},
|
|
118783
118970
|
close: () => client.close(),
|
|
118784
118971
|
closed: client.closed,
|
|
118785
|
-
locate: (device, engineId) => client.request("session.locate", {
|
|
118972
|
+
locate: (device, engineId, options) => client.request("session.locate", {
|
|
118973
|
+
device,
|
|
118974
|
+
engine_id: engineId,
|
|
118975
|
+
...options?.single === true && takesSingleLocate ? { single: true } : {}
|
|
118976
|
+
}),
|
|
118977
|
+
wakeCommand: async (device, durableId, rpc) => {
|
|
118978
|
+
if (!carriesWakeMark)
|
|
118979
|
+
throw new LocalApiError("unsupported", "this device service does not carry the wake target", { not_sent: true });
|
|
118980
|
+
return await followDelegatedCommand(client, device, (commandId) => client.wakeCommand(device, durableId, rpc, commandId).catch((error) => {
|
|
118981
|
+
throw error instanceof LocalApiError && error.command_id === undefined ? markNotSent(error) : error;
|
|
118982
|
+
}));
|
|
118983
|
+
}
|
|
118786
118984
|
};
|
|
118787
118985
|
}
|
|
118788
118986
|
// packages/device-service-core/src/bootstrap.ts
|
|
@@ -118845,6 +119043,11 @@ var forgetDeviceService = async (options) => {
|
|
|
118845
119043
|
}
|
|
118846
119044
|
return "forgotten";
|
|
118847
119045
|
};
|
|
119046
|
+
// packages/device-service-core/src/cold-wake/service-table.ts
|
|
119047
|
+
var SERVICE_TABLE_ENV = "OMO_RELAYD_SERVICES";
|
|
119048
|
+
|
|
119049
|
+
// packages/device-service-core/src/cold-wake/darwin.ts
|
|
119050
|
+
var TABLE_KEY = `EnvironmentVariables.${SERVICE_TABLE_ENV}`;
|
|
118848
119051
|
// packages/device-service-core/src/release/release-assets.ts
|
|
118849
119052
|
var MANIFEST = "latest.json";
|
|
118850
119053
|
var CHECKSUMS_MAX_BYTES = 64 * 1024;
|
|
@@ -118916,7 +119119,7 @@ var NONE2 = Symbol("none registered");
|
|
|
118916
119119
|
// packages/omo-native/package.json
|
|
118917
119120
|
var package_default4 = {
|
|
118918
119121
|
name: "omo-ai",
|
|
118919
|
-
version: "5.1.
|
|
119122
|
+
version: "5.1.72",
|
|
118920
119123
|
type: "module",
|
|
118921
119124
|
description: "OmO Native - the standalone omo command with the OMO extension built in: bun add -g omo-ai",
|
|
118922
119125
|
bin: {
|
|
@@ -118933,7 +119136,7 @@ var package_default4 = {
|
|
|
118933
119136
|
postinstall: "node bin/senpi-patch.mjs"
|
|
118934
119137
|
},
|
|
118935
119138
|
dependencies: {
|
|
118936
|
-
"@code-yeongyu/senpi": "2026.11.15"
|
|
119139
|
+
"@code-yeongyu/senpi": "2026.11.15-2"
|
|
118937
119140
|
},
|
|
118938
119141
|
repository: {
|
|
118939
119142
|
type: "git",
|
|
@@ -119228,7 +119431,7 @@ async function boulder(options) {
|
|
|
119228
119431
|
}
|
|
119229
119432
|
// packages/omo-opencode/src/cli/codex-ulw-loop.ts
|
|
119230
119433
|
import { spawn as spawn7 } from "node:child_process";
|
|
119231
|
-
import { existsSync as existsSync70, readFileSync as
|
|
119434
|
+
import { existsSync as existsSync70, readFileSync as readFileSync49, realpathSync as realpathSync14 } from "node:fs";
|
|
119232
119435
|
import { homedir as homedir37 } from "node:os";
|
|
119233
119436
|
var ULW_LOOP_DELEGATION_SENTINEL = "OMO_ULW_LOOP_DELEGATED";
|
|
119234
119437
|
function resolveCodexUlwLoopCommand(input = {}) {
|
|
@@ -119278,7 +119481,7 @@ function resolveLegacyLocalOmoBin(env, homeDir, currentExecutablePaths) {
|
|
|
119278
119481
|
}
|
|
119279
119482
|
function isGeneratedRuntimeWrapper(candidate) {
|
|
119280
119483
|
try {
|
|
119281
|
-
return
|
|
119484
|
+
return readFileSync49(candidate, "utf8").includes(RUNTIME_WRAPPER_MARKER);
|
|
119282
119485
|
} catch (error) {
|
|
119283
119486
|
if (error instanceof Error)
|
|
119284
119487
|
return false;
|
|
@@ -119713,7 +119916,7 @@ prunes.
|
|
|
119713
119916
|
|
|
119714
119917
|
// packages/omo-opencode/src/cli/config-migrate.ts
|
|
119715
119918
|
init_startup_migration();
|
|
119716
|
-
import { posix as
|
|
119919
|
+
import { posix as posix18 } from "node:path";
|
|
119717
119920
|
function reports(result) {
|
|
119718
119921
|
return result.results.map((entry) => ({
|
|
119719
119922
|
diagnostics: entry.diagnostics,
|
|
@@ -119747,7 +119950,7 @@ function runConfigMigrate(options = {}) {
|
|
|
119747
119950
|
dryRun: options.dryRun ?? false,
|
|
119748
119951
|
environment,
|
|
119749
119952
|
...homeDir === undefined ? {} : { env: { HOME: homeDir }, homeDir },
|
|
119750
|
-
pathOperations:
|
|
119953
|
+
pathOperations: posix18
|
|
119751
119954
|
});
|
|
119752
119955
|
const report = reports(result);
|
|
119753
119956
|
const response = {
|