The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
chore: sync Codex marketplace v5.0.0-beta.83
github-actions[bot]9586204b4cad
diff --git a/plugins/omo/.codex-plugin/plugin.json b/plugins/omo/.codex-plugin/plugin.jsonindex 915370d8..8df3acd7 100644--- a/plugins/omo/.codex-plugin/plugin.json+++ b/plugins/omo/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "omo",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "One Codex plugin namespace for Yeongyu's local Codex components.","author": {"name": "Yeongyu Kim",diff --git a/plugins/omo/components/bootstrap/dist/cli.js b/plugins/omo/components/bootstrap/dist/cli.jsindex 750a03ba..fa8cea47 100755--- a/plugins/omo/components/bootstrap/dist/cli.js+++ b/plugins/omo/components/bootstrap/dist/cli.js@@ -7072,8 +7072,10 @@ var OmoGitMasterSettingsSchema = OmoGitMasterSettingsLayerSchema.extend({// ../../omo-config-core/src/schema/harness.tsvar HARNESS_IDS = ["codex", "opencode", "omo"];-var OMO_CONFIG_HARNESS_IDS = ["opencode", "senpi", "codex"];+var OMO_CONFIG_HARNESS_IDS = ["opencode", "native", "codex"];var OmoHarnessIdSchema = _enum(OMO_CONFIG_HARNESS_IDS);+var OMO_CONFIG_LEGACY_HARNESS_ALIASES = { senpi: "native" };+var OMO_CONFIG_LEGACY_HARNESS_IDS = Object.keys(OMO_CONFIG_LEGACY_HARNESS_ALIASES);// ../../omo-config-core/src/schema/memory.tsvar OmoMemoryReflectionTriggerSchema = object({@@ -7532,6 +7534,7 @@ var OmoConfigProfileSchema = object({telemetry: OmoTelemetrySettingsLayerSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional()}).strict();@@ -7550,6 +7553,7 @@ var OmoConfigSchema = object({telemetry: OmoTelemetrySettingsSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional(),profiles: record(string2(), OmoConfigProfileSchema).default({}),@@ -7571,6 +7575,7 @@ var OmoConfigLayerSchema = object({telemetry: OmoTelemetrySettingsLayerSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional(),profiles: record(string2(), OmoConfigProfileSchema).optional(),@@ -7634,6 +7639,54 @@ function canonicalizeLegacyCategoryNames(document) {return { document: canonicalized, renames };}+// ../../omo-config-core/src/schema/legacy-harness-names.ts+function canonicalHarnessName(name) {+ return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] : name;+}+function harnessBlockKey(harness) {+ return `[${harness}]`;+}+function legacyHarnessOfBlockKey(key) {+ if (!key.startsWith("[") || !key.endsWith("]"))+ return;+ const harness = key.slice(1, -1);+ return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, harness) ? harness : undefined;+}+function isRecord8(value) {+ return typeof value === "object" && value !== null && !Array.isArray(value);+}+function canonicalizeBlocksIn(container, path, renames) {+ const result = {};+ for (const [key, value] of Object.entries(container)) {+ const legacyHarness = legacyHarnessOfBlockKey(key);+ if (legacyHarness === undefined) {+ result[key] = value;+ continue;+ }+ const canonical = harnessBlockKey(canonicalHarnessName(legacyHarness));+ const dropped = Object.hasOwn(container, canonical);+ renames.push({ canonical, dropped, legacy: key, path: [...path, key].join(".") });+ if (!dropped)+ result[canonical] = value;+ }+ return result;+}+function canonicalizeLegacyHarnessBlocks(document) {+ if (!isRecord8(document))+ return { document: {}, renames: [] };+ const renames = [];+ const canonicalized = canonicalizeBlocksIn(document, [], renames);+ const profiles = canonicalized["profiles"];+ if (isRecord8(profiles)) {+ const canonicalProfiles = {};+ for (const [name, profile] of Object.entries(profiles)) {+ canonicalProfiles[name] = isRecord8(profile) ? canonicalizeBlocksIn(profile, ["profiles", name], renames) : profile;+ }+ canonicalized["profiles"] = canonicalProfiles;+ }+ return { document: canonicalized, renames };+}+// ../../../node_modules/.bun/[email protected]/node_modules/jsonc-parser/lib/esm/impl/scanner.jsfunction createScanner(text, ignoreTrivia = false) {const len = text.length;@@ -8609,7 +8662,7 @@ function resolveOmoConfigPaths(options) {}// ../../omo-config-core/src/loader/resolution.ts-var HARNESS_KEYS = [...new Set([...HARNESS_IDS, ...OMO_CONFIG_HARNESS_IDS])].map((harness) => `[${harness}]`);+var HARNESS_KEYS = [...new Set([...HARNESS_IDS, ...OMO_CONFIG_HARNESS_IDS, ...OMO_CONFIG_LEGACY_HARNESS_IDS])].map((harness) => harnessBlockKey(harness));function profileName(value) {return value === "" ? undefined : value;}@@ -8638,7 +8691,13 @@ function withoutControlKeys(config) {function harnessLayer(config, harness) {if (harness === undefined)return {};- return toRecord(config[`[${harness}]`]) ?? {};+ const canonical = canonicalHarnessName(harness);+ const legacyKeys = Object.entries(OMO_CONFIG_LEGACY_HARNESS_ALIASES).filter(([, target]) => target === canonical).map(([legacy]) => harnessBlockKey(legacy));+ let layer = {};+ for (const key of [...legacyKeys, harnessBlockKey(canonical)]) {+ layer = mergeOmoConfigRecords(layer, toRecord(config[key]) ?? {});+ }+ return layer;}function resolveOmoConfigView(options) {const profiles = toRecord(options.config["profiles"]);@@ -8689,6 +8748,7 @@ var DEFAULT_RAW_CONFIG = {function stripResolutionControlKeys(config) {const {"[codex]": _codex,+ "[native]": _native,"[opencode]": _opencode,"[senpi]": _senpi,profiles: _profiles,@@ -8714,21 +8774,21 @@ function hasUnsafeUnrecognizedKey(issues) {function hasTamperedPrototype(value) {if (Array.isArray(value))return value.some((entry) => hasTamperedPrototype(entry));- if (!isRecord8(value))+ if (!isRecord9(value))return false;const prototype = Object.getPrototypeOf(value);if (prototype !== Object.prototype && prototype !== null)return true;return Object.values(value).some((entry) => hasTamperedPrototype(entry));}-function isRecord8(value) {+function isRecord9(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function containerAt(record, path) {let container = record;for (const segment of path) {const next = container[segment];- if (!isRecord8(next))+ if (!isRecord9(next))return null;container = next;}@@ -8839,6 +8899,15 @@ function legacyCategoryDiagnostic(path, renames) {issuePaths: renames.map((rename) => rename.path)};}+function legacyHarnessDiagnostic(path, renames) {+ const detail = renames.map((rename) => rename.dropped ? `${rename.path} ignored because ${rename.canonical} is also configured` : `${rename.path} renamed to ${rename.canonical}`).join(", ");+ return {+ kind: "deprecated-keys",+ message: `Deprecated harness block in ${path}: ${detail}. Rename it; the alias is removed in a future release.`,+ path,+ issuePaths: renames.map((rename) => rename.path)+ };+}function loadOmoConfig(options = {}) {const fileSystem = options.fileSystem ?? DEFAULT_READ_FILE_SYSTEM;const cwd = options.cwd ?? process.cwd();@@ -8861,8 +8930,12 @@ function loadOmoConfig(options = {}) {if (canonicalized.renames.length > 0) {diagnostics.push(legacyCategoryDiagnostic(candidate.path, canonicalized.renames));}- layers.push({ config: canonicalized.document, source: loaded.source });- merged = mergeOmoConfigRecords(merged, canonicalized.document);+ const harnessCanonicalized = canonicalizeLegacyHarnessBlocks(canonicalized.document);+ if (harnessCanonicalized.renames.length > 0) {+ diagnostics.push(legacyHarnessDiagnostic(candidate.path, harnessCanonicalized.renames));+ }+ layers.push({ config: harnessCanonicalized.document, source: loaded.source });+ merged = mergeOmoConfigRecords(merged, harnessCanonicalized.document);}}const requestedProfile = resolveOmoProfileName({@@ -11266,10 +11339,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {} catch {return null;}- if (!isRecord9(cache) || !Array.isArray(cache.models))+ if (!isRecord10(cache) || !Array.isArray(cache.models))return null;for (const entry of cache.models) {- if (!isRecord9(entry))+ if (!isRecord10(entry))continue;if (entry.slug !== model && entry.id !== model)continue;@@ -11294,7 +11367,7 @@ function readRootModelCatalogPath(config) {const single = config.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);return single?.[1] ?? null;}-function isRecord9(value) {+function isRecord10(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function removeFeatureFlagSetting(config, featureName) {diff --git a/plugins/omo/components/bootstrap/hooks/hooks.json b/plugins/omo/components/bootstrap/hooks/hooks.jsonindex 9d3a72d2..c5f62fbc 100644--- a/plugins/omo/components/bootstrap/hooks/hooks.json+++ b/plugins/omo/components/bootstrap/hooks/hooks.json@@ -8,7 +8,7 @@"command": "node \"${PLUGIN_ROOT}/components/bootstrap/dist/cli.js\" hook session-start","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\bootstrap.ps1\"","timeout": 30,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Bootstrap Provisioning"}]}diff --git a/plugins/omo/components/bootstrap/package.json b/plugins/omo/components/bootstrap/package.jsonindex 69a6802b..1e4a7d51 100644--- a/plugins/omo/components/bootstrap/package.json+++ b/plugins/omo/components/bootstrap/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/codex-bootstrap",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex SessionStart bootstrap component that provisions LazyCodex runtime dependencies from a detached worker.","type": "module","private": true,diff --git a/plugins/omo/components/comment-checker/hooks/hooks.json b/plugins/omo/components/comment-checker/hooks/hooks.jsonindex 501104ea..507c90be 100644--- a/plugins/omo/components/comment-checker/hooks/hooks.json+++ b/plugins/omo/components/comment-checker/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 30,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Comments"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Comments"}]}diff --git a/plugins/omo/components/comment-checker/package.json b/plugins/omo/components/comment-checker/package.jsonindex 4e15e861..804c5cd2 100644--- a/plugins/omo/components/comment-checker/package.json+++ b/plugins/omo/components/comment-checker/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-comment-checker",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex plugin that runs comment-checker after edit-like PostToolUse hooks.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/git-bash/hooks/hooks.json b/plugins/omo/components/git-bash/hooks/hooks.jsonindex 04b2724b..9d65706e 100644--- a/plugins/omo/components/git-bash/hooks/hooks.json+++ b/plugins/omo/components/git-bash/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Recommending Git Bash MCP"+ "statusMessage": "(OmO 5.0.0-beta.83) Recommending Git Bash MCP"}]}@@ -20,7 +20,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Resetting Git Bash MCP Reminder"+ "statusMessage": "(OmO 5.0.0-beta.83) Resetting Git Bash MCP Reminder"}]}diff --git a/plugins/omo/components/git-bash/package.json b/plugins/omo/components/git-bash/package.jsonindex 11afd63d..08edbde9 100644--- a/plugins/omo/components/git-bash/package.json+++ b/plugins/omo/components/git-bash/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/codex-git-bash-hook",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex hook component that reminds Windows sessions to prefer the OMO git_bash MCP.","type": "module","private": true,diff --git a/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json b/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.jsonindex 3b482421..23789eb0 100644--- a/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json+++ b/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lazycodex-executor-verify/dist/cli.js\" hook subagent-stop","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Verifying LazyCodex Executor Evidence"+ "statusMessage": "(OmO 5.0.0-beta.83) Verifying LazyCodex Executor Evidence"}]}diff --git a/plugins/omo/components/lazycodex-executor-verify/package.json b/plugins/omo/components/lazycodex-executor-verify/package.jsonindex d6faa154..6ae62ba5 100644--- a/plugins/omo/components/lazycodex-executor-verify/package.json+++ b/plugins/omo/components/lazycodex-executor-verify/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-lazycodex-executor-verify",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex SubagentStop evidence verifier for LazyCodex executor completions.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json b/plugins/omo/components/lsp/dist/.omo-runtime-manifest.jsonindex a8b4cc90..f0eff2af 100644--- a/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json+++ b/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json@@ -1,7 +1,7 @@{"schemaVersion": 1,- "version": "5.0.0-beta.82",- "inputDigest": "sha256:f84253a3ef9adbbb38854e910085ce47367ce00417a9e7b404c6c08c4b07ec63",+ "version": "5.0.0-beta.83",+ "inputDigest": "sha256:c2a4d0a5733ce0a84a7b045a3c294a3b1b17f06e421e60a6f19ce486a03aaa2f","outputs": [{"path": "cli.d.ts",diff --git a/plugins/omo/components/lsp/hooks/hooks.json b/plugins/omo/components/lsp/hooks/hooks.jsonindex 2eb930bd..f9feaed5 100644--- a/plugins/omo/components/lsp/hooks/hooks.json+++ b/plugins/omo/components/lsp/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 60,- "statusMessage": "(OmO 5.0.0-beta.82) Checking LSP Diagnostics"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking LSP Diagnostics"}]}@@ -21,7 +21,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Resetting LSP Diagnostics Cache"+ "statusMessage": "(OmO 5.0.0-beta.83) Resetting LSP Diagnostics Cache"}]}diff --git a/plugins/omo/components/lsp/package.json b/plugins/omo/components/lsp/package.jsonindex dab21acc..6ede3dbb 100644--- a/plugins/omo/components/lsp/package.json+++ b/plugins/omo/components/lsp/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-lsp",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex plugin that exposes Language Server Protocol tools and post-edit diagnostics.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/rules/hooks/hooks.json b/plugins/omo/components/rules/hooks/hooks.jsonindex dac5fbd4..59876b92 100644--- a/plugins/omo/components/rules/hooks/hooks.json+++ b/plugins/omo/components/rules/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook session-start","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Loading Project Rules"+ "statusMessage": "(OmO 5.0.0-beta.83) Loading Project Rules"}]}@@ -19,7 +19,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Loading Project Rules"+ "statusMessage": "(OmO 5.0.0-beta.83) Loading Project Rules"}]}@@ -32,7 +32,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Matching Project Rules"+ "statusMessage": "(OmO 5.0.0-beta.83) Matching Project Rules"}]}@@ -45,7 +45,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Resetting Project Rule Cache"+ "statusMessage": "(OmO 5.0.0-beta.83) Resetting Project Rule Cache"}]}diff --git a/plugins/omo/components/rules/package.json b/plugins/omo/components/rules/package.jsonindex 9a7c967f..be3813c5 100644--- a/plugins/omo/components/rules/package.json+++ b/plugins/omo/components/rules/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-rules",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex plugin that injects project rule files into model context through lifecycle hooks.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/teammode/hooks/hooks.json b/plugins/omo/components/teammode/hooks/hooks.jsonindex b81db5bf..6526bbd4 100644--- a/plugins/omo/components/teammode/hooks/hooks.json+++ b/plugins/omo/components/teammode/hooks/hooks.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Thread Title Hygiene"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Thread Title Hygiene"}]}diff --git a/plugins/omo/components/teammode/package.json b/plugins/omo/components/teammode/package.jsonindex eb3d8b15..bd750b54 100644--- a/plugins/omo/components/teammode/package.json+++ b/plugins/omo/components/teammode/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/codex-teammode",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex team-mode hook component that keeps background thread titles descriptive after create_thread.","type": "module","private": true,diff --git a/plugins/omo/components/telemetry/hooks/hooks.json b/plugins/omo/components/telemetry/hooks/hooks.jsonindex b7f7ab17..67d04a97 100644--- a/plugins/omo/components/telemetry/hooks/hooks.json+++ b/plugins/omo/components/telemetry/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook session-start","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Recording Session Telemetry"+ "statusMessage": "(OmO 5.0.0-beta.83) Recording Session Telemetry"}]}diff --git a/plugins/omo/components/telemetry/package.json b/plugins/omo/components/telemetry/package.jsonindex 4c3abbe6..2b61e0a8 100644--- a/plugins/omo/components/telemetry/package.json+++ b/plugins/omo/components/telemetry/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-telemetry",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex plugin component that emits omo-codex anonymous daily-active telemetry on SessionStart.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ultrawork/hooks/hooks.json b/plugins/omo/components/ultrawork/hooks/hooks.jsonindex 3d67f781..fd2732c3 100644--- a/plugins/omo/components/ultrawork/hooks/hooks.json+++ b/plugins/omo/components/ultrawork/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ultrawork Trigger"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ultrawork Trigger"}]}diff --git a/plugins/omo/components/ultrawork/package.json b/plugins/omo/components/ultrawork/package.jsonindex 37467a78..f668bdbf 100644--- a/plugins/omo/components/ultrawork/package.json+++ b/plugins/omo/components/ultrawork/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-ultrawork",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex plugin that injects the ultrawork orchestration directive and ships LazyCodex planning, review, QA, and gate agent roles.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.jsonindex bfc09710..30b2c899 100644--- a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json+++ b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-execute-continuation/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ulw-Execute Continuation"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ulw-Execute Continuation"}]}diff --git a/plugins/omo/components/ulw-execute-continuation/package.json b/plugins/omo/components/ulw-execute-continuation/package.jsonindex 6529b242..c67fff70 100644--- a/plugins/omo/components/ulw-execute-continuation/package.json+++ b/plugins/omo/components/ulw-execute-continuation/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-ulw-execute-continuation",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex Stop hook continuation injector for omo-codex ulw-execute plans.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ulw-loop/dist/cli.js b/plugins/omo/components/ulw-loop/dist/cli.jsindex 3e9b7181..65021e4b 100644--- a/plugins/omo/components/ulw-loop/dist/cli.js+++ b/plugins/omo/components/ulw-loop/dist/cli.js@@ -1362,12 +1362,24 @@ var REVIEWER_ROLES_BY_SURFACE = {gateReview: "lazycodex-gate-reviewer"},"omo-senpi": {- codeReview: "omo-senpi-code-reviewer",- manualQa: "omo-senpi-qa-executor",- gateReview: "omo-senpi-gate-reviewer"+ codeReview: "omo-native-code-reviewer",+ manualQa: "omo-native-qa-executor",+ gateReview: "omo-native-gate-reviewer"}};-var GATE_REVIEWER_AGENT_NAMES = new Set(Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview));+var LEGACY_REVIEWER_AGENT_ALIASES = {+ "omo-senpi-code-reviewer": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].codeReview,+ "omo-senpi-qa-executor": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].manualQa,+ "omo-senpi-gate-reviewer": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].gateReview+};+function canonicalReviewerAgentName(reviewer) {+ return LEGACY_REVIEWER_AGENT_ALIASES[reviewer] ?? reviewer;+}+var CANONICAL_GATE_REVIEW_NAMES = Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview);+var GATE_REVIEWER_AGENT_NAMES = new Set([+ ...CANONICAL_GATE_REVIEW_NAMES,+ ...Object.entries(LEGACY_REVIEWER_AGENT_ALIASES).filter(([, canonical]) => CANONICAL_GATE_REVIEW_NAMES.includes(canonical)).map(([legacy]) => legacy)+]);var REQUIRED_GATE_SECTIONS_BY_SURFACE = {lazycodex: ["manualQa", "gateReview", "iteration", "criteriaCoverage"],"omo-senpi": ["manualQa", "gateReview", "iteration", "criteriaCoverage"]@@ -4437,11 +4449,12 @@ var SPAWN_TOOL_TOKENS = new Set([]);var DEFAULT_FANOUT_LIMIT = 24;var DEFAULT_REVIEW_SPAWN_LIMIT = 3;-var GATE_MESSAGE_PATTERN = /lazycodex-gate-reviewer|omo-senpi-gate-reviewer|final gate review/i;+var GATE_MESSAGE_PATTERN = /lazycodex-gate-reviewer|omo-native-gate-reviewer|omo-senpi-gate-reviewer|final gate review/i;var REVIEW_AGENT_TYPES = [...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview),...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.codeReview),- ...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.manualQa)+ ...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.manualQa),+ ...Object.keys(LEGACY_REVIEWER_AGENT_ALIASES)];var REVIEW_AGENT_TYPE_SET = new Set(REVIEW_AGENT_TYPES);function applySpawnGuards(payload, options = {}) {@@ -4623,16 +4636,17 @@ function reviewAgentType(toolInput) {return GATE_MESSAGE_PATTERN.test(message) ? reviewerRolesFor(resolveToolkitSurface()).gateReview : null;}function activeSurfaceReviewerAlias(reviewer) {+ const canonical = canonicalReviewerAgentName(reviewer);const activeRoles = reviewerRolesFor(resolveToolkitSurface());for (const roles of Object.values(REVIEWER_ROLES_BY_SURFACE)) {- if (reviewer === roles.codeReview)+ if (canonical === roles.codeReview)return activeRoles.codeReview;- if (reviewer === roles.manualQa)+ if (canonical === roles.manualQa)return activeRoles.manualQa;- if (reviewer === roles.gateReview)+ if (canonical === roles.gateReview)return activeRoles.gateReview;}- return reviewer;+ return canonical;}function deny(reason) {return `${JSON.stringify({diff --git a/plugins/omo/components/ulw-loop/dist/spawn-guard.js b/plugins/omo/components/ulw-loop/dist/spawn-guard.jsindex d2eb9e53..54ef8303 100644--- a/plugins/omo/components/ulw-loop/dist/spawn-guard.js+++ b/plugins/omo/components/ulw-loop/dist/spawn-guard.js@@ -7,7 +7,7 @@ import { readUlwLoopPlanSync } from "./plan-io.js";import { atomicWriteJson, isNonEmptyFile, readAdmissionBreaker, readCount, readCounts } from "./spawn-budget-io.js";import { spawnRoleDenial } from "./spawn-role-guard.js";import { isStateLockTimeout, withStateLockSync } from "./state-lock.js";-import { GATE_REVIEWER_AGENT_NAMES, REVIEWER_ROLES_BY_SURFACE, resolveToolkitSurface, reviewerRolesFor, } from "./surface.js";+import { canonicalReviewerAgentName, GATE_REVIEWER_AGENT_NAMES, LEGACY_REVIEWER_AGENT_ALIASES, REVIEWER_ROLES_BY_SURFACE, resolveToolkitSurface, reviewerRolesFor, } from "./surface.js";// spawn_agent = v1; collaborationspawn_agent = the delimiter-free flattened v2// hook token from codex-rs hook_names.rs; collaboration.spawn_agent = the// dotted token observed live in the task-1 probe (hook-tool-tokens.txt).@@ -19,11 +19,12 @@ const SPAWN_TOOL_TOKENS = new Set([]);export const DEFAULT_FANOUT_LIMIT = 24;const DEFAULT_REVIEW_SPAWN_LIMIT = 3;-const GATE_MESSAGE_PATTERN = /lazycodex-gate-reviewer|omo-senpi-gate-reviewer|final gate review/i;+const GATE_MESSAGE_PATTERN = /lazycodex-gate-reviewer|omo-native-gate-reviewer|omo-senpi-gate-reviewer|final gate review/i;const REVIEW_AGENT_TYPES = [...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview),...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.codeReview),...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.manualQa),+ ...Object.keys(LEGACY_REVIEWER_AGENT_ALIASES),];const REVIEW_AGENT_TYPE_SET = new Set(REVIEW_AGENT_TYPES);export function applySpawnGuards(payload, options = {}) {@@ -230,16 +231,17 @@ function reviewAgentType(toolInput) {return GATE_MESSAGE_PATTERN.test(message) ? reviewerRolesFor(resolveToolkitSurface()).gateReview : null;}function activeSurfaceReviewerAlias(reviewer) {+ const canonical = canonicalReviewerAgentName(reviewer);const activeRoles = reviewerRolesFor(resolveToolkitSurface());for (const roles of Object.values(REVIEWER_ROLES_BY_SURFACE)) {- if (reviewer === roles.codeReview)+ if (canonical === roles.codeReview)return activeRoles.codeReview;- if (reviewer === roles.manualQa)+ if (canonical === roles.manualQa)return activeRoles.manualQa;- if (reviewer === roles.gateReview)+ if (canonical === roles.gateReview)return activeRoles.gateReview;}- return reviewer;+ return canonical;}function deny(reason) {return `${JSON.stringify({diff --git a/plugins/omo/components/ulw-loop/dist/surface.d.ts b/plugins/omo/components/ulw-loop/dist/surface.d.tsindex 9f453b74..018b8fc8 100644--- a/plugins/omo/components/ulw-loop/dist/surface.d.ts+++ b/plugins/omo/components/ulw-loop/dist/surface.d.ts@@ -5,6 +5,8 @@ export interface UlwLoopReviewerRoles {readonly gateReview: string;}export declare const REVIEWER_ROLES_BY_SURFACE: Readonly<Record<UlwLoopToolkitSurface, UlwLoopReviewerRoles>>;+export declare const LEGACY_REVIEWER_AGENT_ALIASES: Readonly<Record<string, string>>;+export declare function canonicalReviewerAgentName(reviewer: string): string;export declare const GATE_REVIEWER_AGENT_NAMES: ReadonlySet<string>;export type UlwLoopGateSection = "codeReview" | "manualQa" | "gateReview" | "iteration" | "criteriaCoverage";export declare const REQUIRED_GATE_SECTIONS_BY_SURFACE: Readonly<Record<UlwLoopToolkitSurface, readonly UlwLoopGateSection[]>>;diff --git a/plugins/omo/components/ulw-loop/dist/surface.js b/plugins/omo/components/ulw-loop/dist/surface.jsindex 3d686193..30a360e3 100644--- a/plugins/omo/components/ulw-loop/dist/surface.js+++ b/plugins/omo/components/ulw-loop/dist/surface.js@@ -8,12 +8,29 @@ export const REVIEWER_ROLES_BY_SURFACE = {gateReview: "lazycodex-gate-reviewer",},"omo-senpi": {- codeReview: "omo-senpi-code-reviewer",- manualQa: "omo-senpi-qa-executor",- gateReview: "omo-senpi-gate-reviewer",+ codeReview: "omo-native-code-reviewer",+ manualQa: "omo-native-qa-executor",+ gateReview: "omo-native-gate-reviewer",},};-export const GATE_REVIEWER_AGENT_NAMES = new Set(Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview));+// The reviewer agents were renamed omo-senpi-* -> omo-native-*. The retired spellings stay+// resolvable for one release line so a caller that still names one is recognized rather than+// silently treated as a non-review spawn.+export const LEGACY_REVIEWER_AGENT_ALIASES = {+ "omo-senpi-code-reviewer": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].codeReview,+ "omo-senpi-qa-executor": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].manualQa,+ "omo-senpi-gate-reviewer": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].gateReview,+};+export function canonicalReviewerAgentName(reviewer) {+ return LEGACY_REVIEWER_AGENT_ALIASES[reviewer] ?? reviewer;+}+const CANONICAL_GATE_REVIEW_NAMES = Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview);+export const GATE_REVIEWER_AGENT_NAMES = new Set([+ ...CANONICAL_GATE_REVIEW_NAMES,+ ...Object.entries(LEGACY_REVIEWER_AGENT_ALIASES)+ .filter(([, canonical]) => CANONICAL_GATE_REVIEW_NAMES.includes(canonical))+ .map(([legacy]) => legacy),+]);export const REQUIRED_GATE_SECTIONS_BY_SURFACE = {lazycodex: ["manualQa", "gateReview", "iteration", "criteriaCoverage"],"omo-senpi": ["manualQa", "gateReview", "iteration", "criteriaCoverage"],diff --git a/plugins/omo/components/ulw-loop/hooks/hooks.json b/plugins/omo/components/ulw-loop/hooks/hooks.jsonindex 4612c272..d21bd365 100644--- a/plugins/omo/components/ulw-loop/hooks/hooks.json+++ b/plugins/omo/components/ulw-loop/hooks/hooks.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit --with-ultrawork","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ulw-Loop Steering"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ulw-Loop Steering"}]}@@ -20,7 +20,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Recording Spawn Admission"+ "statusMessage": "(OmO 5.0.0-beta.83) Recording Spawn Admission"}]}@@ -33,7 +33,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Enforcing Unlimited Ulw-Loop Budget"+ "statusMessage": "(OmO 5.0.0-beta.83) Enforcing Unlimited Ulw-Loop Budget"}]},@@ -44,7 +44,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Guarding Ulw-Loop Spawns"+ "statusMessage": "(OmO 5.0.0-beta.83) Guarding Ulw-Loop Spawns"}]}@@ -56,7 +56,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ulw-Loop Resume"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ulw-Loop Resume"}]}diff --git a/plugins/omo/components/ulw-loop/package.json b/plugins/omo/components/ulw-loop/package.jsonindex be32d302..0bd0d407 100644--- a/plugins/omo/components/ulw-loop/package.json+++ b/plugins/omo/components/ulw-loop/package.json@@ -1,6 +1,6 @@{"name": "@code-yeongyu/codex-ulw-loop",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Codex plugin: durable repo-native multi-goal orchestration with embedded success criteria and observable evidence audit.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ulw-loop/src/spawn-guard.ts b/plugins/omo/components/ulw-loop/src/spawn-guard.tsindex 57407b90..8b1f2780 100644--- a/plugins/omo/components/ulw-loop/src/spawn-guard.ts+++ b/plugins/omo/components/ulw-loop/src/spawn-guard.ts@@ -10,7 +10,9 @@ import { atomicWriteJson, isNonEmptyFile, readAdmissionBreaker, readCount, readCimport { spawnRoleDenial } from "./spawn-role-guard.js";import { isStateLockTimeout, type StateLockOptions, withStateLockSync } from "./state-lock.js";import {+ canonicalReviewerAgentName,GATE_REVIEWER_AGENT_NAMES,+ LEGACY_REVIEWER_AGENT_ALIASES,REVIEWER_ROLES_BY_SURFACE,resolveToolkitSurface,reviewerRolesFor,@@ -28,11 +30,13 @@ const SPAWN_TOOL_TOKENS = new Set([]);export const DEFAULT_FANOUT_LIMIT = 24;const DEFAULT_REVIEW_SPAWN_LIMIT = 3;-const GATE_MESSAGE_PATTERN = /lazycodex-gate-reviewer|omo-senpi-gate-reviewer|final gate review/i;+const GATE_MESSAGE_PATTERN =+ /lazycodex-gate-reviewer|omo-native-gate-reviewer|omo-senpi-gate-reviewer|final gate review/i;const REVIEW_AGENT_TYPES = [...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview),...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.codeReview),...Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.manualQa),+ ...Object.keys(LEGACY_REVIEWER_AGENT_ALIASES),] as const;const REVIEW_AGENT_TYPE_SET = new Set<string>(REVIEW_AGENT_TYPES);@@ -238,13 +242,14 @@ function reviewAgentType(toolInput: unknown): string | null {}function activeSurfaceReviewerAlias(reviewer: string): string {+ const canonical = canonicalReviewerAgentName(reviewer);const activeRoles = reviewerRolesFor(resolveToolkitSurface());for (const roles of Object.values(REVIEWER_ROLES_BY_SURFACE)) {- if (reviewer === roles.codeReview) return activeRoles.codeReview;- if (reviewer === roles.manualQa) return activeRoles.manualQa;- if (reviewer === roles.gateReview) return activeRoles.gateReview;+ if (canonical === roles.codeReview) return activeRoles.codeReview;+ if (canonical === roles.manualQa) return activeRoles.manualQa;+ if (canonical === roles.gateReview) return activeRoles.gateReview;}- return reviewer;+ return canonical;}function deny(reason: string): string {diff --git a/plugins/omo/components/ulw-loop/src/surface.ts b/plugins/omo/components/ulw-loop/src/surface.tsindex 3cea1207..6a37b153 100644--- a/plugins/omo/components/ulw-loop/src/surface.ts+++ b/plugins/omo/components/ulw-loop/src/surface.ts@@ -22,15 +22,33 @@ export const REVIEWER_ROLES_BY_SURFACE: Readonly<Record<UlwLoopToolkitSurface, UgateReview: "lazycodex-gate-reviewer",},"omo-senpi": {- codeReview: "omo-senpi-code-reviewer",- manualQa: "omo-senpi-qa-executor",- gateReview: "omo-senpi-gate-reviewer",+ codeReview: "omo-native-code-reviewer",+ manualQa: "omo-native-qa-executor",+ gateReview: "omo-native-gate-reviewer",},};-export const GATE_REVIEWER_AGENT_NAMES: ReadonlySet<string> = new Set(- Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview),-);+// The reviewer agents were renamed omo-senpi-* -> omo-native-*. The retired spellings stay+// resolvable for one release line so a caller that still names one is recognized rather than+// silently treated as a non-review spawn.+export const LEGACY_REVIEWER_AGENT_ALIASES: Readonly<Record<string, string>> = {+ "omo-senpi-code-reviewer": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].codeReview,+ "omo-senpi-qa-executor": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].manualQa,+ "omo-senpi-gate-reviewer": REVIEWER_ROLES_BY_SURFACE["omo-senpi"].gateReview,+};++export function canonicalReviewerAgentName(reviewer: string): string {+ return LEGACY_REVIEWER_AGENT_ALIASES[reviewer] ?? reviewer;+}++const CANONICAL_GATE_REVIEW_NAMES = Object.values(REVIEWER_ROLES_BY_SURFACE).map((roles) => roles.gateReview);++export const GATE_REVIEWER_AGENT_NAMES: ReadonlySet<string> = new Set([+ ...CANONICAL_GATE_REVIEW_NAMES,+ ...Object.entries(LEGACY_REVIEWER_AGENT_ALIASES)+ .filter(([, canonical]) => CANONICAL_GATE_REVIEW_NAMES.includes(canonical))+ .map(([legacy]) => legacy),+]);export type UlwLoopGateSection = "codeReview" | "manualQa" | "gateReview" | "iteration" | "criteriaCoverage";diff --git a/plugins/omo/components/ulw-loop/test/spawn-guard-native-reviewer.test.ts b/plugins/omo/components/ulw-loop/test/spawn-guard-native-reviewer.test.tsnew file mode 100644index 00000000..f831f95d--- /dev/null+++ b/plugins/omo/components/ulw-loop/test/spawn-guard-native-reviewer.test.ts@@ -0,0 +1,207 @@+import { mkdirSync, readFileSync, writeFileSync } from "node:fs";+import { mkdtemp, rm } from "node:fs/promises";+import { tmpdir } from "node:os";+import { join } from "node:path";+import { afterEach, beforeEach, describe, expect, it } from "vitest";++import type { PreToolUsePayload } from "../src/codex-hook.ts";+import { applySpawnBudgetGuards as applySpawnGuards } from "../src/spawn-guard.ts";++// The agent resolver canonicalizes omo-senpi-* to omo-native-* BEFORE this guard sees a name, so+// the guard receives the canonical spelling. When it does not recognize that spelling+// `reviewAgentType` returns null, which makes the gate-artifact check and the reviewer quota both+// stop applying without any error.++let workDir: string;+let originalReviewLimit: string | undefined;+let originalToolkitSurface: string | undefined;+let originalPluginData: string | undefined;++beforeEach(async () => {+ workDir = await mkdtemp(join(tmpdir(), "ulw-native-reviewer-"));+ originalPluginData = process.env["PLUGIN_DATA"];+ process.env["PLUGIN_DATA"] = join(workDir, "plugin-data");+ originalReviewLimit = process.env["OMO_ULW_LOOP_REVIEW_SPAWN_LIMIT"];+ originalToolkitSurface = process.env["OMO_AGENT_TOOLKIT_SURFACE"];+ delete process.env["OMO_ULW_LOOP_REVIEW_SPAWN_LIMIT"];+ delete process.env["OMO_AGENT_TOOLKIT_SURFACE"];+});++afterEach(async () => {+ if (originalToolkitSurface === undefined) delete process.env["OMO_AGENT_TOOLKIT_SURFACE"];+ else process.env["OMO_AGENT_TOOLKIT_SURFACE"] = originalToolkitSurface;+ if (originalReviewLimit === undefined) delete process.env["OMO_ULW_LOOP_REVIEW_SPAWN_LIMIT"];+ else process.env["OMO_ULW_LOOP_REVIEW_SPAWN_LIMIT"] = originalReviewLimit;+ if (originalPluginData === undefined) delete process.env["PLUGIN_DATA"];+ else process.env["PLUGIN_DATA"] = originalPluginData;+ await rm(workDir, { recursive: true, force: true });+});++function payload(toolName: string, toolInput: Record<string, unknown>): PreToolUsePayload {+ return {+ hook_event_name: "PreToolUse",+ session_id: "s1",+ turn_id: "t1",+ transcript_path: null,+ cwd: workDir,+ model: "gpt-5.6-sol",+ permission_mode: "default",+ tool_name: toolName,+ tool_use_id: "tu1",+ tool_input: toolInput,+ };+}++function sessionDir(): string {+ return join(workDir, ".omo", "ulw-loop", "s1");+}++function criterion(id: string): Record<string, unknown> {+ return {+ id,+ scenario: `scenario ${id}`,+ userModel: "happy",+ expectedEvidence: "evidence",+ capturedEvidence: "captured",+ status: "pass",+ capturedAt: "2026-07-11T00:00:00.000Z",+ };+}++function writeGoals(): void {+ mkdirSync(sessionDir(), { recursive: true });+ writeFileSync(+ join(sessionDir(), "goals.json"),+ JSON.stringify({+ version: 1,+ createdAt: "2026-07-11T00:00:00.000Z",+ updatedAt: "2026-07-11T00:00:00.000Z",+ briefPath: ".omo/ulw-loop/s1/brief.md",+ goalsPath: ".omo/ulw-loop/s1/goals.json",+ ledgerPath: ".omo/ulw-loop/s1/ledger.jsonl",+ codexGoalMode: "aggregate",+ goals: [+ {+ id: "g1",+ title: "Final goal",+ objective: "Final goal",+ status: "in_progress",+ successCriteria: [criterion("C001"), criterion("C002")],+ attempt: 1,+ createdAt: "2026-07-11T00:00:00.000Z",+ updatedAt: "2026-07-11T00:00:00.000Z",+ },+ ],+ activeGoalId: "g1",+ }),+ );+}++function writeEvidence(name: string, body: string): void {+ mkdirSync(join(workDir, ".omo", "evidence"), { recursive: true });+ writeFileSync(join(workDir, ".omo", "evidence", name), body);+}++function denial(output: string): { permissionDecision: string; permissionDecisionReason: string } {+ return JSON.parse(output).hookSpecificOutput;+}++describe("applySpawnGuards recognizes the canonical omo-native reviewer names", () => {+ // Unmodified code returns "" for BOTH of the next two cases, so only the denial can fail. The+ // allow case is its control: without it, a blanket denial would also pass.+ it("#given senpi manual QA is absent #when the canonical gate reviewer spawns #then it is denied naming manual QA", () => {+ // given+ process.env["OMO_AGENT_TOOLKIT_SURFACE"] = "omo-senpi";+ writeGoals();++ // when+ const output = applySpawnGuards(+ payload("collaborationspawn_agent", {+ agent_type: "omo-native-gate-reviewer",+ message: "audit the artifacts",+ }),+ );++ // then+ expect(output, "an empty guard result means the spawn was allowed").not.toBe("");+ const parsed = denial(output);+ expect(parsed.permissionDecision).toBe("deny");+ expect(parsed.permissionDecisionReason).toContain("g1-manual-qa.md");+ });++ it("#given senpi manual QA is present #when the canonical gate reviewer spawns #then it is allowed", () => {+ // given+ process.env["OMO_AGENT_TOOLKIT_SURFACE"] = "omo-senpi";+ writeGoals();+ writeEvidence("g1-manual-qa.md", "matrix\n");++ // when+ const output = applySpawnGuards(+ payload("collaborationspawn_agent", {+ agent_type: "omo-native-gate-reviewer",+ message: "audit the artifacts",+ }),+ );++ // then+ expect(output).toBe("");+ });++ it("#given a message-only spawn naming the canonical gate reviewer #when guarded #then it is still recognized", () => {+ // given+ process.env["OMO_AGENT_TOOLKIT_SURFACE"] = "omo-senpi";+ writeGoals();++ // when+ const output = applySpawnGuards(+ payload("spawn_agent", { message: "Act as omo-native-gate-reviewer; audit the final evidence" }),+ );++ // then+ expect(output, "an empty guard result means the spawn was allowed").not.toBe("");+ expect(denial(output).permissionDecision).toBe("deny");+ });++ it("#given repeated canonical gate spawns #when the reviewer cap is exceeded #then the fourth is denied", () => {+ // given+ writeGoals();+ process.env["OMO_AGENT_TOOLKIT_SURFACE"] = "omo-senpi";+ writeEvidence("g1-code-review.md", "report\n");+ writeEvidence("g1-manual-qa.md", "matrix\n");+ const canonicalGate = payload("spawn_agent", {+ agent_type: "omo-native-gate-reviewer",+ message: "audit the final evidence",+ });++ // when+ expect(applySpawnGuards(canonicalGate)).toBe("");+ expect(applySpawnGuards(canonicalGate)).toBe("");+ expect(applySpawnGuards(canonicalGate)).toBe("");+ const fourthOutput = applySpawnGuards(canonicalGate);++ // then+ expect(fourthOutput, "an empty fourth result means the reviewer cap never counted").not.toBe("");+ const fourth = denial(fourthOutput);+ expect(fourth.permissionDecision).toBe("deny");+ expect(fourth.permissionDecisionReason).toContain("4/3");+ const counters = JSON.parse(readFileSync(join(sessionDir(), "review-spawn-counts.json"), "utf8"));+ expect(counters["omo-native-gate-reviewer:g1:a1"]).toBe(3);+ });++ it("#given the legacy spelling #when the gate reviewer spawns without manual QA #then it is denied exactly as before", () => {+ // given+ process.env["OMO_AGENT_TOOLKIT_SURFACE"] = "omo-senpi";+ writeGoals();++ // when+ const output = applySpawnGuards(+ payload("collaborationspawn_agent", {+ agent_type: "omo-senpi-gate-reviewer",+ message: "audit the artifacts",+ }),+ );++ // then+ expect(denial(output).permissionDecisionReason).toContain("g1-manual-qa.md");+ });+});diff --git a/plugins/omo/components/ulw-loop/test/spawn-guard.test.ts b/plugins/omo/components/ulw-loop/test/spawn-guard.test.tsindex 45c1ae5f..7c2aaa1e 100644--- a/plugins/omo/components/ulw-loop/test/spawn-guard.test.ts+++ b/plugins/omo/components/ulw-loop/test/spawn-guard.test.ts@@ -430,9 +430,10 @@ describe("applySpawnGuards gate-artifact guard", () => {expect(applySpawnGuards(genericGate)).toBe("");const fourth = deny(applySpawnGuards(explicitGate));- expect(fourth.permissionDecisionReason).toContain("omo-senpi-gate-reviewer 4/3");+ expect(fourth.permissionDecisionReason).toContain("omo-native-gate-reviewer 4/3");const counters = JSON.parse(readFileSync(join(sessionDir(), "review-spawn-counts.json"), "utf8"));- expect(counters["omo-senpi-gate-reviewer:g1:a1"]).toBe(3);+ expect(counters["omo-native-gate-reviewer:g1:a1"]).toBe(3);+ expect(counters["omo-senpi-gate-reviewer:g1:a1"]).toBeUndefined();expect(counters["lazycodex-gate-reviewer:g1:a1"]).toBeUndefined();});@@ -451,9 +452,10 @@ describe("applySpawnGuards gate-artifact guard", () => {expect(applySpawnGuards(senpiReviewer)).toBe("");const fourth = deny(applySpawnGuards(lazycodexReviewer));- expect(fourth.permissionDecisionReason).toContain("omo-senpi-code-reviewer 4/3");+ expect(fourth.permissionDecisionReason).toContain("omo-native-code-reviewer 4/3");const counters = JSON.parse(readFileSync(join(sessionDir(), "review-spawn-counts.json"), "utf8"));- expect(counters["omo-senpi-code-reviewer:g1:a1"]).toBe(3);+ expect(counters["omo-native-code-reviewer:g1:a1"]).toBe(3);+ expect(counters["omo-senpi-code-reviewer:g1:a1"]).toBeUndefined();expect(counters["lazycodex-code-reviewer:g1:a1"]).toBeUndefined();});diff --git a/plugins/omo/components/ulw-loop/test/surface.test.ts b/plugins/omo/components/ulw-loop/test/surface.test.tsindex 7236f5eb..ad4accce 100644--- a/plugins/omo/components/ulw-loop/test/surface.test.ts+++ b/plugins/omo/components/ulw-loop/test/surface.test.ts@@ -3,7 +3,14 @@ import { tmpdir } from "node:os";import { join } from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { REVIEWER_ROLES_BY_SURFACE, resolveToolkitSurface, reviewerRolesFor } from "../src/surface.ts";+import {+ canonicalReviewerAgentName,+ GATE_REVIEWER_AGENT_NAMES,+ LEGACY_REVIEWER_AGENT_ALIASES,+ REVIEWER_ROLES_BY_SURFACE,+ resolveToolkitSurface,+ reviewerRolesFor,+} from "../src/surface.ts";let markerDir: string;@@ -65,10 +72,42 @@ describe("reviewerRolesFor", () => {gateReview: "lazycodex-gate-reviewer",});expect(reviewerRolesFor("omo-senpi")).toEqual({- codeReview: "omo-senpi-code-reviewer",- manualQa: "omo-senpi-qa-executor",- gateReview: "omo-senpi-gate-reviewer",+ codeReview: "omo-native-code-reviewer",+ manualQa: "omo-native-qa-executor",+ gateReview: "omo-native-gate-reviewer",});expect(Object.keys(REVIEWER_ROLES_BY_SURFACE).sort()).toEqual(["lazycodex", "omo-senpi"]);});});++describe("canonicalReviewerAgentName", () => {+ it("#given a retired reviewer spelling #when canonicalized #then it maps to the omo-native name", () => {+ expect(canonicalReviewerAgentName("omo-senpi-gate-reviewer")).toBe("omo-native-gate-reviewer");+ expect(canonicalReviewerAgentName("omo-senpi-code-reviewer")).toBe("omo-native-code-reviewer");+ expect(canonicalReviewerAgentName("omo-senpi-qa-executor")).toBe("omo-native-qa-executor");+ });++ it("#given a canonical or unrelated name #when canonicalized #then it is returned unchanged", () => {+ expect(canonicalReviewerAgentName("omo-native-gate-reviewer")).toBe("omo-native-gate-reviewer");+ expect(canonicalReviewerAgentName("lazycodex-gate-reviewer")).toBe("lazycodex-gate-reviewer");+ expect(canonicalReviewerAgentName("explore")).toBe("explore");+ });++ it("#given every retired alias #when mapped #then each target is a live reviewer role", () => {+ const liveRoles = new Set(+ Object.values(REVIEWER_ROLES_BY_SURFACE).flatMap((roles) => [+ roles.codeReview,+ roles.manualQa,+ roles.gateReview,+ ]),+ );+ for (const canonical of Object.values(LEGACY_REVIEWER_AGENT_ALIASES)) expect(liveRoles.has(canonical)).toBe(true);+ });++ it("#given the gate reviewer name set #when read #then it carries both the canonical and the retired spelling", () => {+ expect(GATE_REVIEWER_AGENT_NAMES.has("omo-native-gate-reviewer")).toBe(true);+ expect(GATE_REVIEWER_AGENT_NAMES.has("omo-senpi-gate-reviewer")).toBe(true);+ expect(GATE_REVIEWER_AGENT_NAMES.has("lazycodex-gate-reviewer")).toBe(true);+ expect(GATE_REVIEWER_AGENT_NAMES.has("omo-native-code-reviewer")).toBe(false);+ });+});diff --git a/plugins/omo/dist/cli-node/index.js b/plugins/omo/dist/cli-node/index.jsindex 0cb0dc0b..0c5bc964 100755--- a/plugins/omo/dist/cli-node/index.js+++ b/plugins/omo/dist/cli-node/index.js@@ -65,7 +65,7 @@ var package_default;var init_package = __esm(() => {package_default = {name: "oh-my-opencode",- version: "5.0.0-beta.82",+ version: "5.0.0-beta.83",description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",main: "./dist/index.js",types: "dist/index.d.ts",@@ -248,7 +248,7 @@ var init_package = __esm(() => {zod: "^4.6.5"},devDependencies: {- "@code-yeongyu/senpi": "2026.9.22",+ "@code-yeongyu/senpi": "2026.9.22-2","@oh-my-opencode/agents-md-core": "workspace:*","@oh-my-opencode/ast-grep-mcp": "workspace:*","@oh-my-opencode/boulder-state": "workspace:*",@@ -288,18 +288,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.0.0-beta.82",- "oh-my-opencode-darwin-x64": "5.0.0-beta.82",- "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.82",- "oh-my-opencode-linux-arm64": "5.0.0-beta.82",- "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.82",- "oh-my-opencode-linux-x64": "5.0.0-beta.82",- "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.82",- "oh-my-opencode-linux-x64-musl": "5.0.0-beta.82",- "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.82",- "oh-my-opencode-windows-arm64": "5.0.0-beta.82",- "oh-my-opencode-windows-x64": "5.0.0-beta.82",- "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.82"+ "oh-my-opencode-darwin-arm64": "5.0.0-beta.83",+ "oh-my-opencode-darwin-x64": "5.0.0-beta.83",+ "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.83",+ "oh-my-opencode-linux-arm64": "5.0.0-beta.83",+ "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64-musl": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.83",+ "oh-my-opencode-windows-arm64": "5.0.0-beta.83",+ "oh-my-opencode-windows-x64": "5.0.0-beta.83",+ "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.83"},overrides: {"@earendil-works/pi-agent-core": "0.84.2",@@ -7228,6 +7228,7 @@ var init_agent_model_requirements = __esm(() => {},librarian: {fallbackChain: [+ { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed", variant: "off" },{ providers: ["openai", "openai-codex"], model: "gpt-5.6-luna-fast", variant: "low" },{ providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },{ providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },@@ -7240,6 +7241,7 @@ var init_agent_model_requirements = __esm(() => {},explore: {fallbackChain: [+ { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed", variant: "off" },{ providers: ["openai", "openai-codex"], model: "gpt-5.6-luna-fast", variant: "low" },{ providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },{ providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },@@ -7413,7 +7415,6 @@ var init_category_model_requirements = __esm(() => {},quick: {fallbackChain: [- { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed" },{ providers: ["openai-codex"], model: "gpt-5.6-luna-fast", variant: "low" },{ providers: ["deepseek"], model: "deepseek-v4-flash", variant: "off" },{@@ -7433,7 +7434,8 @@ var init_category_model_requirements = __esm(() => {},"unspecified-low": {fallbackChain: [- { providers: ["xai", "github-copilot", "opencode"], model: "grok-4.6", variant: "xhigh" },+ { providers: ["xiaomi", "opencode-go"], model: "mimo-v2.6-pro", variant: "max" },+ { providers: ["xai", "github-copilot", "opencode-go"], model: "grok-4.7", variant: "xhigh" },{providers: ["openai", "openai-codex", "github-copilot", "opencode"],model: "gpt-5.6-terra",@@ -7455,11 +7457,6 @@ var init_category_model_requirements = __esm(() => {},"unspecified-high": {fallbackChain: [- {- providers: ["openai", "openai-codex", "github-copilot", "opencode"],- model: "gpt-6-astra",- variant: "high"- },{providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],model: "claude-opus-5",@@ -8295,6 +8292,36 @@ var init_supplemental_entries = __esm(() => {output: 32768}},+ "grok-4.7": {+ id: "grok-4.7",+ family: "grok",+ reasoning: false,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 500000,+ output: 32768+ }+ },+ "xai/grok-4.7": {+ id: "xai/grok-4.7",+ family: "grok",+ reasoning: false,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 500000,+ output: 32768+ }+ },"xai/grok-build-0.1": {id: "xai/grok-build-0.1",family: "grok",@@ -8324,6 +8351,36 @@ var init_supplemental_entries = __esm(() => {context: 256000,output: 32768}+ },+ "mimo-v2.6-pro": {+ id: "mimo-v2.6-pro",+ family: "mimo",+ reasoning: true,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 1048576,+ output: 131072+ }+ },+ "xiaomi/mimo-v2.6-pro": {+ id: "xiaomi/mimo-v2.6-pro",+ family: "mimo",+ reasoning: true,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 1048576,+ output: 131072+ }}};});@@ -9297,21 +9354,21 @@ var init_openai_categories = __esm(() => {},{name: "quick",- config: { model: "kimi-for-coding/kimi-for-coding-highspeed" },+ config: { model: "openai/gpt-5.6-luna-fast", variant: "low" },description: "Trivial tasks - single file changes, typo fixes, simple modifications",callerGuidance: QUICK_CATEGORY_CALLER_GUIDANCE,promptAppend: QUICK_CATEGORY_PROMPT_APPEND},{name: "unspecified-low",- config: { model: "xai/grok-4.6", variant: "xhigh" },+ config: { model: "xiaomi/mimo-v2.6-pro", variant: "max" },description: "Tasks that don't fit other categories, low effort required",callerGuidance: UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE,promptAppend: UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND},{name: "unspecified-high",- config: { model: "openai/gpt-6-astra", variant: "high" },+ config: { model: "anthropic/claude-opus-5", variant: "xhigh" },description: "Tasks that don't fit other categories, high effort required",callerGuidance: UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE,promptAppend: UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND,@@ -73962,12 +74019,14 @@ var init_git_master = __esm(() => {});// packages/omo-config-core/src/schema/harness.ts-var HARNESS_IDS, OMO_CONFIG_HARNESS_IDS, OmoHarnessIdSchema;+var HARNESS_IDS, OMO_CONFIG_HARNESS_IDS, OmoHarnessIdSchema, OMO_CONFIG_LEGACY_HARNESS_ALIASES, OMO_CONFIG_LEGACY_HARNESS_IDS;var init_harness = __esm(() => {init_zod();HARNESS_IDS = ["codex", "opencode", "omo"];- OMO_CONFIG_HARNESS_IDS = ["opencode", "senpi", "codex"];+ OMO_CONFIG_HARNESS_IDS = ["opencode", "native", "codex"];OmoHarnessIdSchema = _enum(OMO_CONFIG_HARNESS_IDS);+ OMO_CONFIG_LEGACY_HARNESS_ALIASES = { senpi: "native" };+ OMO_CONFIG_LEGACY_HARNESS_IDS = Object.keys(OMO_CONFIG_LEGACY_HARNESS_ALIASES);});// packages/omo-config-core/src/schema/memory.ts@@ -74470,6 +74529,7 @@ var init_config = __esm(() => {telemetry: OmoTelemetrySettingsLayerSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional()}).strict();@@ -74488,6 +74548,7 @@ var init_config = __esm(() => {telemetry: OmoTelemetrySettingsSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional(),profiles: record(string2(), OmoConfigProfileSchema).default({}),@@ -74509,6 +74570,7 @@ var init_config = __esm(() => {telemetry: OmoTelemetrySettingsLayerSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional(),profiles: record(string2(), OmoConfigProfileSchema).optional(),@@ -74579,6 +74641,60 @@ var init_legacy_category_names = __esm(() => {LEGACY_CATEGORY_NAME_ALIASES = { deep: "deep-low" };});+// packages/omo-config-core/src/schema/legacy-harness-names.ts+function canonicalHarnessName(name) {+ return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] : name;+}+function harnessBlockKey(harness) {+ return `[${harness}]`;+}+function legacyHarnessOfBlockKey(key) {+ if (!key.startsWith("[") || !key.endsWith("]"))+ return;+ const harness = key.slice(1, -1);+ return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, harness) ? harness : undefined;+}+function isRecord10(value) {+ return typeof value === "object" && value !== null && !Array.isArray(value);+}+function canonicalizeBlocksIn(container, path, renames) {+ const result = {};+ for (const [key, value] of Object.entries(container)) {+ const legacyHarness = legacyHarnessOfBlockKey(key);+ if (legacyHarness === undefined) {+ result[key] = value;+ continue;+ }+ const canonical = harnessBlockKey(canonicalHarnessName(legacyHarness));+ const dropped = Object.hasOwn(container, canonical);+ renames.push({ canonical, dropped, legacy: key, path: [...path, key].join(".") });+ if (!dropped)+ result[canonical] = value;+ }+ return result;+}+function canonicalizeLegacyHarnessBlocks(document) {+ if (!isRecord10(document))+ return { document: {}, renames: [] };+ const renames = [];+ const canonicalized = canonicalizeBlocksIn(document, [], renames);+ const profiles = canonicalized["profiles"];+ if (isRecord10(profiles)) {+ const canonicalProfiles = {};+ for (const [name, profile] of Object.entries(profiles)) {+ canonicalProfiles[name] = isRecord10(profile) ? canonicalizeBlocksIn(profile, ["profiles", name], renames) : profile;+ }+ canonicalized["profiles"] = canonicalProfiles;+ }+ return { document: canonicalized, renames };+}+function hasLegacyHarnessBlocks(document) {+ return canonicalizeLegacyHarnessBlocks(document).renames.length > 0;+}+var init_legacy_harness_names = __esm(() => {+ init_harness();+});+// packages/omo-config-core/src/schema/index.tsvar init_schema = __esm(() => {init_agent();@@ -74589,6 +74705,7 @@ var init_schema = __esm(() => {init_git_master();init_harness();init_legacy_category_names();+ init_legacy_harness_names();init_memory();init_model_catalog();init_model_profile();@@ -74598,6 +74715,9 @@ var init_schema = __esm(() => {init_telemetry();});+// packages/omo-config-core/src/loader/disabled-skills.ts+var init_disabled_skills = () => {};+// packages/omo-config-core/src/loader/merge.tsfunction isUnsafeObjectKey2(key) {return DANGEROUS_KEYS2.has(key);@@ -74772,7 +74892,13 @@ function withoutControlKeys(config) {function harnessLayer(config, harness) {if (harness === undefined)return {};- return toRecord(config[`[${harness}]`]) ?? {};+ const canonical = canonicalHarnessName(harness);+ const legacyKeys = Object.entries(OMO_CONFIG_LEGACY_HARNESS_ALIASES).filter(([, target]) => target === canonical).map(([legacy]) => harnessBlockKey(legacy));+ let layer = {};+ for (const key of [...legacyKeys, harnessBlockKey(canonical)]) {+ layer = mergeOmoConfigRecords(layer, toRecord(config[key]) ?? {});+ }+ return layer;}function resolveOmoConfigView(options) {const profiles = toRecord(options.config["profiles"]);@@ -74802,7 +74928,7 @@ var HARNESS_KEYS;var init_resolution = __esm(() => {init_schema();init_merge();- HARNESS_KEYS = [...new Set([...HARNESS_IDS, ...OMO_CONFIG_HARNESS_IDS])].map((harness) => `[${harness}]`);+ HARNESS_KEYS = [...new Set([...HARNESS_IDS, ...OMO_CONFIG_HARNESS_IDS, ...OMO_CONFIG_LEGACY_HARNESS_IDS])].map((harness) => harnessBlockKey(harness));});// packages/omo-config-core/src/loader/loader.ts@@ -74823,6 +74949,7 @@ function parseJsoncSafe2(content) {function stripResolutionControlKeys(config) {const {"[codex]": _codex,+ "[native]": _native,"[opencode]": _opencode,"[senpi]": _senpi,profiles: _profiles,@@ -74848,21 +74975,21 @@ function hasUnsafeUnrecognizedKey(issues) {function hasTamperedPrototype(value) {if (Array.isArray(value))return value.some((entry) => hasTamperedPrototype(entry));- if (!isRecord10(value))+ if (!isRecord11(value))return false;const prototype = Object.getPrototypeOf(value);if (prototype !== Object.prototype && prototype !== null)return true;return Object.values(value).some((entry) => hasTamperedPrototype(entry));}-function isRecord10(value) {+function isRecord11(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function containerAt(record, path) {let container = record;for (const segment of path) {const next = container[segment];- if (!isRecord10(next))+ if (!isRecord11(next))return null;container = next;}@@ -74973,6 +75100,15 @@ function legacyCategoryDiagnostic(path, renames) {issuePaths: renames.map((rename) => rename.path)};}+function legacyHarnessDiagnostic(path, renames) {+ const detail = renames.map((rename) => rename.dropped ? `${rename.path} ignored because ${rename.canonical} is also configured` : `${rename.path} renamed to ${rename.canonical}`).join(", ");+ return {+ kind: "deprecated-keys",+ message: `Deprecated harness block in ${path}: ${detail}. Rename it; the alias is removed in a future release.`,+ path,+ issuePaths: renames.map((rename) => rename.path)+ };+}function loadOmoConfig(options = {}) {const fileSystem = options.fileSystem ?? DEFAULT_READ_FILE_SYSTEM;const cwd = options.cwd ?? process.cwd();@@ -74995,8 +75131,12 @@ function loadOmoConfig(options = {}) {if (canonicalized.renames.length > 0) {diagnostics.push(legacyCategoryDiagnostic(candidate.path, canonicalized.renames));}- layers.push({ config: canonicalized.document, source: loaded.source });- merged = mergeOmoConfigRecords(merged, canonicalized.document);+ const harnessCanonicalized = canonicalizeLegacyHarnessBlocks(canonicalized.document);+ if (harnessCanonicalized.renames.length > 0) {+ diagnostics.push(legacyHarnessDiagnostic(candidate.path, harnessCanonicalized.renames));+ }+ layers.push({ config: harnessCanonicalized.document, source: loaded.source });+ merged = mergeOmoConfigRecords(merged, harnessCanonicalized.document);}}const requestedProfile = resolveOmoProfileName({@@ -75044,6 +75184,7 @@ var init_loader2 = __esm(() => {// packages/omo-config-core/src/loader/index.tsvar init_loader3 = __esm(() => {+ init_disabled_skills();init_loader2();init_merge();init_paths();@@ -77361,14 +77502,14 @@ function transformConfigJsoncSources(input) {const omo = recordAt(legacy, "[omo]");const senpi = recordAt(legacy, "[senpi]");const history = legacyMigrationHistory(input.discovered, input.sources);- const diagnostics = omo !== undefined && senpi !== undefined ? ["conflict: [senpi] legacy [omo] kept [senpi]"] : [];+ const diagnostics = omo !== undefined && senpi !== undefined ? ["conflict: [native] legacy [omo] kept [native]"] : [];return {diagnostics,document: {$schema: OMO_SCHEMA_URL,...recordAt(legacy, "[opencode]") === undefined ? {} : { "[opencode]": recordAt(legacy, "[opencode]") },...recordAt(legacy, "[codex]") === undefined ? {} : { "[codex]": recordAt(legacy, "[codex]") },- ...senpi === undefined && omo === undefined ? {} : { "[senpi]": senpi ?? omo },+ ...senpi === undefined && omo === undefined ? {} : { "[native]": senpi ?? omo },...Object.keys(history).length === 0 ? {} : { legacy_migrations: history }}};@@ -77632,7 +77773,7 @@ function normalizeTypedBlock(value, path, diagnostics, recurseProfiles) {}if (result["models"] !== undefined)result["models"] = normalizeCatalog(result["models"]);- for (const harness of ["[senpi]", "[codex]"]) {+ for (const harness of ["[senpi]", "[native]", "[codex]"]) {if (result[harness] !== undefined)result[harness] = normalizeTypedBlock(result[harness], [...path, harness], diagnostics, false);}@@ -77686,6 +77827,19 @@ var init_category_deep_split = __esm(() => {init_src4();});+// packages/omo-opencode/src/config-migration/harness-native-rename.ts+function transformHarnessNativeRename(document) {+ const { document: canonicalized, renames } = canonicalizeLegacyHarnessBlocks(document);+ return {+ diagnostics: renames.map((rename) => rename.dropped ? `${rename.path} removed: ${rename.canonical} is already configured` : `${rename.path} renamed to ${rename.canonical}`),+ document: canonicalized+ };+}+var HARNESS_NATIVE_RENAME_MIGRATION_ID = "2026-09-harness-native-rename";+var init_harness_native_rename = __esm(() => {+ init_src4();+});+// packages/omo-opencode/src/config-migration/migration-plans.tsfunction backupTimestamp(value) {return value ?? new Date().toISOString().replace(/[:.]/g, "-");@@ -77764,6 +77918,18 @@ function categoryDeepSplitPlan(targetPath) {transform: inspect};}+function harnessNativeRenamePlan(targetPath) {+ const inspect = (sources) => transformHarnessNativeRename(sources[0]?.value);+ return {+ id: HARNESS_NATIVE_RENAME_MIGRATION_ID,+ inspect,+ mode: "replace-target",+ shouldRun: hasLegacyHarnessBlocks,+ sources: [],+ targetPath,+ transform: inspect+ };+}function existingOmoConfigPath(directory, options) {const fileSystem = discoveryFileSystem(options);for (const fileName of ["omo.jsonc", "omo.json"]) {@@ -77827,7 +77993,8 @@ function createLegacyConfigMigrationPlans(options) {return [...legacyPlans,...inPlaceTargets.map(reasoningPlan),- ...inPlaceTargets.map(categoryDeepSplitPlan)+ ...inPlaceTargets.map(categoryDeepSplitPlan),+ ...inPlaceTargets.map(harnessNativeRenamePlan)];}var init_migration_plans = __esm(() => {@@ -77838,6 +78005,7 @@ var init_migration_plans = __esm(() => {init_transform_opencode();init_reasoning_unification();init_category_deep_split();+ init_harness_native_rename();init_src4();});@@ -78622,7 +78790,7 @@ function shouldRetainLine(line, cutoffMs) {function parseDiagnosticLine(line) {try {const parsed = JSON.parse(line);- if (!isRecord12(parsed)) {+ if (!isRecord13(parsed)) {return null;}return parsed;@@ -78633,7 +78801,7 @@ function parseDiagnosticLine(line) {throw error;}}-function isRecord12(value) {+function isRecord13(value) {return value !== null && typeof value === "object" && !Array.isArray(value);}function trimToMaxBytes(lines) {@@ -86123,7 +86291,7 @@ function coerceBool(value) {function coerceString(value) {return typeof value == "string" ? value : undefined;}-function isRecord13(value) {+function isRecord14(value) {return typeof value == "object" && value !== null && !Array.isArray(value);}function toRfc3339(timestamp) {@@ -86145,7 +86313,7 @@ function relocateInto(properties, key, value) {properties[key] = value;}function buildV1Event(message) {- const sourceProperties = isRecord13(message.properties) ? message.properties : {};+ const sourceProperties = isRecord14(message.properties) ? message.properties : {};const properties = {...sourceProperties};@@ -88290,7 +88458,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.0.0-beta.82",+ version: "5.0.0-beta.83",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -91465,8 +91633,11 @@ function formatConfigSummary(config) {if (config.hasCodex) {lines.push(` ${SYMBOLS.info} Codex autonomous mode: ${config.codexAutonomous ? "enabled" : "disabled"}`);}- if (config.hasSenpi) {- lines.push(` ${SYMBOLS.info} Senpi adapter: enabled`);+ if (config.hasNative) {+ lines.push(` ${SYMBOLS.info} OmO Native: installing from omo-ai@beta`);+ }+ if (config.hasNativeDev) {+ lines.push(` ${SYMBOLS.info} OmO Native development adapter: enabled`);}if (!config.hasOpenCode)return lines.join(`@@ -91623,7 +91794,8 @@ function argsToConfig(args) {const platform = resolvePlatform(args);const hasOpenCode = platform === "opencode" || platform === "both";const hasCodex = platform === "codex" || platform === "both";- const hasSenpi = platform === "senpi";+ const hasNative = platform === "native";+ const hasNativeDev = platform === "native-dev";return {platform,hasOpenCode,@@ -91633,7 +91805,8 @@ function argsToConfig(args) {hasGemini: hasOpenCode && args.gemini === "yes",hasCopilot: hasOpenCode && args.copilot === "yes",hasCodex,- hasSenpi,+ hasNative,+ hasNativeDev,hasOpencodeZen: hasOpenCode && args.opencodeZen === "yes",hasZaiCodingPlan: hasOpenCode && args.zaiCodingPlan === "yes",hasKimiForCoding: hasOpenCode && args.kimiForCoding === "yes",@@ -94357,10 +94530,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {} catch {return null;}- if (!isRecord11(cache) || !Array.isArray(cache.models))+ if (!isRecord12(cache) || !Array.isArray(cache.models))return null;for (const entry of cache.models) {- if (!isRecord11(entry))+ if (!isRecord12(entry))continue;if (entry.slug !== model && entry.id !== model)continue;@@ -94385,7 +94558,7 @@ function readRootModelCatalogPath(config) {const single = config.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);return single?.[1] ?? null;}-function isRecord11(value) {+function isRecord12(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function removeFeatureFlagSetting(config, featureName) {@@ -97194,7 +97367,7 @@ async function readSettings(settingsPath) {throw error;}const parsed = JSON.parse(raw);- if (!isRecord14(parsed))+ if (!isRecord15(parsed))throw new Error(`${settingsPath} must contain a JSON object`);return parsed;}@@ -97255,7 +97428,7 @@ async function nextBackupPath(settingsPath) {function timestampForBackup() {return new Date().toISOString().replace(/[-:.]/g, "");}-function isRecord14(value) {+function isRecord15(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}async function readPackageName(packagePath) {@@ -97275,7 +97448,7 @@ async function readPackageName(packagePath) {return;throw error;}- return isRecord14(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;+ return isRecord15(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;}async function fileExists(path) {try {@@ -97299,6 +97472,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [join61("extensions", "memory-run-supervisor.mjs"),...PERSONA_ASSET_FILES.map((filename) => join61("extensions", filename)),join61("skills", "ast-grep", "SKILL.md"),+ join61("skills", "browser", "SKILL.md"),join61("skills", "coding-agent-sessions", "SKILL.md"),join61("skills", "debugging", "SKILL.md"),join61("skills", "frontend", "SKILL.md"),@@ -97390,7 +97564,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}}function isAstGrepRuntimeManifest(value) {- if (!isRecord14(value))+ if (!isRecord15(value))return false;return typeof value.sha256 === "string" && /^[a-f0-9]{64}$/.test(value.sha256) && typeof value.mode === "number" && Number.isInteger(value.mode) && typeof value.stagedAtUtc === "string" && !Number.isNaN(Date.parse(value.stagedAtUtc));}@@ -97480,23 +97654,88 @@ function findRepoRoot2(importerDir) {function fileExistsSync(path) {return existsSync30(path);}-// packages/omo-opencode/src/cli/senpi-edition-hint.ts-var SENPI_EDITION_INSTALL_COMMAND = "bun add -g omo-ai@beta";-var SENPI_EDITION_GUIDE_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/installation.md#senpi-edition-beta-omo-via-omo-ai";-var SENPI_EDITION_HINT_TITLE = "Standalone Senpi edition (beta)";+// packages/omo-opencode/src/cli/install-native-dev/index.ts+async function runNativeDevInstaller(options) {+ return runSenpiInstaller(options);+}++// packages/omo-opencode/src/cli/install-native/plan.ts+var NATIVE_PACKAGE_SPEC = "omo-ai@beta";+var NATIVE_SETUP_COMMAND = "omo setup";+var NATIVE_RECOMMENDED_RUNTIME_NOTE = "bun is the recommended runtime for OmO Native; npm works, but bun is what the beta channel is tested on.";+var PLANS = {+ bun: { packageManager: "bun", command: "bun", args: ["add", "-g", NATIVE_PACKAGE_SPEC] },+ npm: { packageManager: "npm", command: "npm", args: ["i", "-g", NATIVE_PACKAGE_SPEC] }+};+function resolveNativeInstallPlan(bunAvailable) {+ return bunAvailable ? PLANS.bun : PLANS.npm;+}+function formatNativeInstallCommand(plan) {+ return [plan.command, ...plan.args].join(" ");+}+// packages/omo-opencode/src/cli/install-native/run-native-install.ts+init_bun_which_shim();+init_spawn_with_windows_hide();+function describeExit(plan, result) {+ const stderr = result.stderr?.trim();+ const head = `${plan.packageManager} exited with code ${result.exitCode}`;+ return stderr ? `${head}: ${stderr.split(`+`).slice(-3).join(" ")}` : head;+}+async function runNativeInstall(dependencies = defaultNativeInstallDependencies()) {+ const plan = resolveNativeInstallPlan(await dependencies.isBunAvailable());+ const notes = plan.packageManager === "npm" ? [NATIVE_RECOMMENDED_RUNTIME_NOTE] : [];+ const manualCommand = formatNativeInstallCommand(plan);+ try {+ const result = await dependencies.spawn(plan.command, plan.args);+ if (result.exitCode === 0)+ return { ok: true, plan, notes };+ return { ok: false, plan, notes, failure: { reason: describeExit(plan, result), manualCommand } };+ } catch (error) {+ const reason = error instanceof Error ? error.message : String(error);+ return { ok: false, plan, notes, failure: { reason, manualCommand } };+ }+}+function nativeInstallSuccessLine() {+ return `OmO Native installed. Run ${NATIVE_SETUP_COMMAND} to finish onboarding.`;+}+function nativeInstallFailureLines(failure) {+ return [+ `OmO Native install failed: ${failure.reason}`,+ `Install it yourself with: ${failure.manualCommand}`,+ `Then run ${NATIVE_SETUP_COMMAND}.`+ ];+}+function defaultNativeInstallDependencies() {+ return {+ isBunAvailable: () => bunWhich("bun") !== null,+ spawn: async (command, args) => {+ const proc = spawnWithWindowsHide([command, ...args], {+ env: process.env,+ stdout: "inherit",+ stderr: "inherit"+ });+ return { exitCode: await proc.exited };+ }+ };+}+// packages/omo-opencode/src/cli/native-edition-hint.ts+var NATIVE_EDITION_INSTALL_COMMAND = "bun add -g omo-ai@beta";+var NATIVE_EDITION_GUIDE_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/installation.md#omo-native-beta-omo-via-omo-ai";+var NATIVE_EDITION_HINT_TITLE = "OmO Native (beta)";var PLAIN_PAINT = {command: (text) => text,link: (text) => text};-function shouldShowSenpiEditionHint(config) {- return !config.hasSenpi;+function shouldShowNativeEditionHint(config) {+ return !config.hasNative && !config.hasNativeDev;}-function senpiEditionHintLines(paint = PLAIN_PAINT) {+function nativeEditionHintLines(paint = PLAIN_PAINT) {return [- `omo also ships as a standalone Senpi edition: one ${paint.command("omo")} command, no OpenCode host required.`,- `Try it next to this install: ${paint.command(SENPI_EDITION_INSTALL_COMMAND)}, then run ${paint.command("omo")}.`,+ `omo also ships as OmO Native: the same omo as one ${paint.command("omo")} command, with no OpenCode host required.`,+ `Try it next to this install: ${paint.command(NATIVE_EDITION_INSTALL_COMMAND)}, then run ${paint.command("omo")}.`,"This install keeps working as-is.",- `Guide: ${paint.link(SENPI_EDITION_GUIDE_URL)}`+ `Guide: ${paint.link(NATIVE_EDITION_GUIDE_URL)}`];}@@ -97511,7 +97750,8 @@ var PLATFORM_REPOSITORIES = {opencode: ["code-yeongyu/oh-my-openagent"],codex: STAR_REPOSITORIES,both: STAR_REPOSITORIES,- senpi: STAR_REPOSITORIES+ native: STAR_REPOSITORIES,+ "native-dev": STAR_REPOSITORIES};var execFileAsync2 = promisify3(execFile4);async function runGitHubStarCommand(repository) {@@ -98013,14 +98253,27 @@ async function runCliInstaller(args, version) {}console.log();}- if (config.hasSenpi) {- printInfo("Installing Senpi harness adapter...");+ if (config.hasNative) {+ printInfo("Installing OmO Native...");+ const outcome = await runNativeInstall();+ if (outcome.failure) {+ for (const line of nativeInstallFailureLines(outcome.failure))+ printError(line);+ return 1;+ }+ for (const note of outcome.notes)+ printInfo(note);+ printSuccess(nativeInstallSuccessLine());+ console.log();+ }+ if (config.hasNativeDev) {+ printInfo("Installing the OmO Native development adapter...");try {- const senpiResult = await runSenpiInstaller();- printSuccess(`Senpi adapter installed ${SYMBOLS.arrow} ${import_picocolors3.default.dim(senpiResult.settingsPath)}`);+ const nativeDevResult = await runNativeDevInstaller();+ printSuccess(`OmO Native development adapter installed ${SYMBOLS.arrow} ${import_picocolors3.default.dim(nativeDevResult.settingsPath)}`);} catch (error) {const message = error instanceof Error ? error.message : String(error);- printError(`Senpi install failed: ${message}`);+ printError(`OmO Native development adapter install failed: ${message}`);return 1;}console.log();@@ -98031,9 +98284,9 @@ async function runCliInstaller(args, version) {printBox(`${import_picocolors3.default.bold("Pro Tip:")} Include ${import_picocolors3.default.cyan("ultrawork")} (or ${import_picocolors3.default.cyan("ulw")}) in your prompt.` + `All features work like magic-parallel agents, background tasks,` + `deep exploration, and relentless execution until completion.`, "The Magic Word");- if (shouldShowSenpiEditionHint(config)) {- printInfo(import_picocolors3.default.bold(SENPI_EDITION_HINT_TITLE));- for (const line of senpiEditionHintLines({ command: import_picocolors3.default.cyan, link: import_picocolors3.default.underline })) {+ if (shouldShowNativeEditionHint(config)) {+ printInfo(import_picocolors3.default.bold(NATIVE_EDITION_HINT_TITLE));+ for (const line of nativeEditionHintLines({ command: import_picocolors3.default.cyan, link: import_picocolors3.default.underline })) {console.log(` ${line}`);}console.log();@@ -99173,16 +99426,20 @@ var import_picocolors4 = __toESM(require_picocolors(), 1);// packages/omo-opencode/src/cli/tui-install-prompts.tsinit_model_fallback();-// packages/omo-opencode/src/cli/senpi-platform-flag.ts-var SENPI_PLATFORM_ENV_FLAG = "OMO_ENABLE_SENPI_PLATFORM";-function isSenpiPlatformEnabled(env = process.env) {- const value = env[SENPI_PLATFORM_ENV_FLAG]?.trim().toLowerCase();- return value === "1" || value === "true";+// packages/omo-opencode/src/cli/native-dev-platform-flag.ts+var NATIVE_DEV_PLATFORM_ENV_FLAG = "OMO_ENABLE_NATIVE_DEV_PLATFORM";+var LEGACY_NATIVE_DEV_PLATFORM_ENV_FLAG = "OMO_ENABLE_SENPI_PLATFORM";+function isTruthy(value) {+ const normalized = value?.trim().toLowerCase();+ return normalized === "1" || normalized === "true";+}+function isNativeDevPlatformEnabled(env = process.env) {+ return isTruthy(env[NATIVE_DEV_PLATFORM_ENV_FLAG]) || isTruthy(env[LEGACY_NATIVE_DEV_PLATFORM_ENV_FLAG]);}function availableInstallPlatforms(env = process.env) {- const platforms = ["opencode", "codex", "both"];- if (isSenpiPlatformEnabled(env))- platforms.push("senpi");+ const platforms = ["opencode", "codex", "both", "native"];+ if (isNativeDevPlatformEnabled(env))+ platforms.push("native-dev");return platforms;}@@ -99205,10 +99462,15 @@ async function promptInstallPlatform(initialValue = "opencode") {const options = [{ value: "opencode", label: "OpenCode", hint: "Install OpenCode plugin only" },{ value: "codex", label: "Codex", hint: "Install Codex harness adapter only" },- { value: "both", label: "Both", hint: "Install OpenCode plugin and Codex adapter" }+ { value: "both", label: "Both", hint: "Install OpenCode plugin and Codex adapter" },+ { value: "native", label: "OmO Native", hint: "Install the standalone omo command (no host required)" }];- if (isSenpiPlatformEnabled()) {- options.push({ value: "senpi", label: "Senpi", hint: "Install Senpi harness adapter only" });+ if (isNativeDevPlatformEnabled()) {+ options.push({+ value: "native-dev",+ label: "OmO Native (development adapter)",+ hint: "Register this checkout into a local engine install"+ });}return selectOrCancel({message: "Which platform do you want to install?",@@ -99219,7 +99481,8 @@ async function promptInstallPlatform(initialValue = "opencode") {async function promptInstallConfig(detected, platform, codexAutonomousOverride) {const hasOpenCode = platform === "opencode" || platform === "both";const hasCodex = platform === "codex" || platform === "both";- const hasSenpi = platform === "senpi";+ const hasNative = platform === "native";+ const hasNativeDev = platform === "native-dev";const codexAutonomous = await resolveCodexAutonomous(hasCodex, codexAutonomousOverride);if (codexAutonomous === null)return null;@@ -99233,7 +99496,8 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)hasGemini: false,hasCopilot: false,hasCodex,- hasSenpi,+ hasNative,+ hasNativeDev,hasOpencodeZen: false,hasZaiCodingPlan: false,hasKimiForCoding: false,@@ -99376,7 +99640,8 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)hasGemini: gemini === "yes",hasCopilot: copilot === "yes",hasCodex,- hasSenpi,+ hasNative,+ hasNativeDev,hasOpencodeZen: opencodeZen === "yes",hasZaiCodingPlan: zaiCodingPlan === "yes",hasKimiForCoding: kimiForCoding === "yes",@@ -99507,15 +99772,29 @@ async function runTuiInstaller(args, version) {log4.info("The Codex harness is NOT installed. Fix the error above, then re-run: bunx oh-my-openagent install --platform=codex");}}- if (config.hasSenpi) {- spinner2.start("Installing Senpi harness adapter");+ if (config.hasNative) {+ spinner2.start("Installing OmO Native");+ const outcome = await runNativeInstall();+ if (outcome.failure) {+ spinner2.stop(`OmO Native install failed ${import_picocolors4.default.yellow("[!]")}`);+ for (const line of nativeInstallFailureLines(outcome.failure))+ log4.error(line);+ outro(import_picocolors4.default.red("Installation failed."));+ return 1;+ }+ spinner2.stop(nativeInstallSuccessLine());+ for (const note of outcome.notes)+ log4.info(note);+ }+ if (config.hasNativeDev) {+ spinner2.start("Installing the OmO Native development adapter");try {- const senpiResult = await runSenpiInstaller();- spinner2.stop(`Senpi adapter installed to ${import_picocolors4.default.cyan(senpiResult.settingsPath)}`);+ const nativeDevResult = await runNativeDevInstaller();+ spinner2.stop(`OmO Native development adapter installed to ${import_picocolors4.default.cyan(nativeDevResult.settingsPath)}`);} catch (error) {const message = error instanceof Error ? error.message : String(error);- spinner2.stop(`Senpi install failed ${import_picocolors4.default.yellow("[!]")}`);- log4.error(`Senpi install failed: ${message}`);+ spinner2.stop(`OmO Native development adapter install failed ${import_picocolors4.default.yellow("[!]")}`);+ log4.error(`OmO Native development adapter install failed: ${message}`);outro(import_picocolors4.default.red("Installation failed."));return 1;}@@ -99529,9 +99808,9 @@ async function runTuiInstaller(args, version) {note(`Include ${import_picocolors4.default.cyan("ultrawork")} (or ${import_picocolors4.default.cyan("ulw")}) in your prompt.` + `All features work like magic-parallel agents, background tasks,` + `deep exploration, and relentless execution until completion.`, "The Magic Word");- if (shouldShowSenpiEditionHint(config)) {- log4.info(import_picocolors4.default.bold(SENPI_EDITION_HINT_TITLE));- log4.message(senpiEditionHintLines({ command: import_picocolors4.default.cyan, link: import_picocolors4.default.underline }).join(`+ if (shouldShowNativeEditionHint(config)) {+ log4.info(import_picocolors4.default.bold(NATIVE_EDITION_HINT_TITLE));+ log4.message(nativeEditionHintLines({ command: import_picocolors4.default.cyan, link: import_picocolors4.default.underline }).join(``));}const shouldStar = await confirm({@@ -99572,7 +99851,7 @@ async function runTuiInstaller(args, version) {// packages/omo-opencode/src/cli/install.tsvar VERSION = package_default.version;-async function install3(args) {+async function install2(args) {return args.tui ? runTuiInstaller(args, VERSION) : runCliInstaller(args, VERSION);}// packages/omo-opencode/src/cli/cleanup.ts@@ -101073,7 +101352,8 @@ var HookNameSchema = _enum(["webfetch-redirect-guard","fsync-skip-warning","plan-format-validator",- "legacy-plugin-toast"+ "legacy-plugin-toast",+ "native-edition-nudge"]);// packages/omo-opencode/src/config/schema/i18n.tsinit_zod();@@ -103176,14 +103456,14 @@ var NO_OP_POSTHOG2 = {function isFalsy(value) {return value === "0" || value === "false" || value === "no";}-function isTruthy(value) {+function isTruthy2(value) {return value === "1" || value === "true" || value === "yes";}function shouldDisablePostHog(env, configEnabled) {if (configEnabled === false) {return true;}- if (isTruthy(env.OMO_DISABLE_POSTHOG?.trim().toLowerCase())) {+ if (isTruthy2(env.OMO_DISABLE_POSTHOG?.trim().toLowerCase())) {return true;}return isFalsy(env.OMO_SEND_ANONYMOUS_TELEMETRY?.trim().toLowerCase());@@ -104706,14 +104986,14 @@ var CANONICAL_REPLACEMENT = new Map([var MIGRATE_SUFFIX = ", or run: oh-my-openagent config migrate";var TUNING_CONTAINERS = new Set(["agents", "categories", "models"]);var PASSTHROUGH_CONTAINERS = new Set(["provider_options", "providerOptions"]);-function isRecord15(value) {+function isRecord16(value) {return value !== null && typeof value === "object" && !Array.isArray(value);}function isHarnessBlock(key) {return key.startsWith("[") && key.endsWith("]");}function collectIssues(configPath, value, prefix, fixSuffix) {- if (!isRecord15(value))+ if (!isRecord16(value))return [];const issues = [];for (const [key, child] of Object.entries(value)) {@@ -104729,7 +105009,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {});continue;}- if (!isRecord15(child))+ if (!isRecord16(child))continue;if (PASSTHROUGH_CONTAINERS.has(key))continue;@@ -104748,7 +105028,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {return issues;}function migrateFixSuffix(parsed) {- if (isRecord15(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))+ if (isRecord16(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))return "";return MIGRATE_SUFFIX;}@@ -105986,12 +106266,12 @@ async function auditBundleTargets(pluginRoot) {let referencedCount = 0;for (const manifestPath of await findManifestPaths(pluginRoot, ".mcp.json")) {const manifest = await readJson2(manifestPath);- if (manifest === null || !isRecord16(manifest["mcpServers"]))+ if (manifest === null || !isRecord17(manifest["mcpServers"]))continue;const manifestRoot = dirname33(manifestPath);const isRootManifest = resolve24(manifestRoot) === resolve24(pluginRoot);for (const server of Object.values(manifest["mcpServers"])) {- if (!isRecord16(server) || !Array.isArray(server["args"]))+ if (!isRecord17(server) || !Array.isArray(server["args"]))continue;for (const arg of server["args"]) {if (typeof arg !== "string" || !isPluginRuntimePathArg(arg))@@ -106077,7 +106357,7 @@ function collectHookCommands(value, commands) {collectHookCommands(item, commands);return;}- if (!isRecord16(value))+ if (!isRecord17(value))return;if (value["type"] === "command") {if (typeof value["command"] === "string")@@ -106132,7 +106412,7 @@ function parseDegradedEntries(value) {return [];const entries = [];for (const item of value) {- if (!isRecord16(item))+ if (!isRecord17(item))continue;if (typeof item["component"] !== "string" || typeof item["reason"] !== "string")continue;@@ -106166,7 +106446,7 @@ function degradedDetailLines(entries) {async function readJson2(path) {try {const parsed = JSON.parse(await readFile29(path, "utf8"));- return isRecord16(parsed) ? parsed : null;+ return isRecord17(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)return null;@@ -106187,7 +106467,7 @@ function normalizeRelative(root, target) {function normalizePathSeparators(path) {return path.split("\\").join("/");}-function isRecord16(value) {+function isRecord17(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}@@ -108297,8 +108577,8 @@ var program2 = new Command;function resolveInstallArgs(options, invocationName = process.env.OMO_INVOCATION_NAME) {const defaultPlatform = process.env.OMO_EDITION === "codex" || invocationName === "lazycodex" || invocationName === "lazycodex-ai" ? "codex" : undefined;const platform = options.platform ?? defaultPlatform;- if (platform === "senpi" && !isSenpiPlatformEnabled()) {- throw new Error(`The senpi install platform is not available in this release. Set ${SENPI_PLATFORM_ENV_FLAG}=1 to enable it from a source checkout.`);+ if (platform === "native-dev" && !isNativeDevPlatformEnabled()) {+ throw new Error(`The native-dev install platform is not available in this release. Set ${NATIVE_DEV_PLATFORM_ENV_FLAG}=1 to enable it from a source checkout.`);}return {tui: options.tui !== false,@@ -108343,7 +108623,7 @@ Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi > Baili`).action(async (options) => {const rootOptions = program2.opts();const args = resolveInstallArgs({ ...options, platform: options.platform ?? rootOptions.platform });- const exitCode = await install3(args);+ const exitCode = await install2(args);process.exit(exitCode);});configureCleanupCommand(program2);diff --git a/plugins/omo/dist/cli/index.js b/plugins/omo/dist/cli/index.jsindex cb7d001a..b11699a3 100755--- a/plugins/omo/dist/cli/index.js+++ b/plugins/omo/dist/cli/index.js@@ -64,7 +64,7 @@ var package_default;var init_package = __esm(() => {package_default = {name: "oh-my-opencode",- version: "5.0.0-beta.82",+ version: "5.0.0-beta.83",description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",main: "./dist/index.js",types: "dist/index.d.ts",@@ -247,7 +247,7 @@ var init_package = __esm(() => {zod: "^4.6.5"},devDependencies: {- "@code-yeongyu/senpi": "2026.9.22",+ "@code-yeongyu/senpi": "2026.9.22-2","@oh-my-opencode/agents-md-core": "workspace:*","@oh-my-opencode/ast-grep-mcp": "workspace:*","@oh-my-opencode/boulder-state": "workspace:*",@@ -287,18 +287,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.0.0-beta.82",- "oh-my-opencode-darwin-x64": "5.0.0-beta.82",- "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.82",- "oh-my-opencode-linux-arm64": "5.0.0-beta.82",- "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.82",- "oh-my-opencode-linux-x64": "5.0.0-beta.82",- "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.82",- "oh-my-opencode-linux-x64-musl": "5.0.0-beta.82",- "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.82",- "oh-my-opencode-windows-arm64": "5.0.0-beta.82",- "oh-my-opencode-windows-x64": "5.0.0-beta.82",- "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.82"+ "oh-my-opencode-darwin-arm64": "5.0.0-beta.83",+ "oh-my-opencode-darwin-x64": "5.0.0-beta.83",+ "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.83",+ "oh-my-opencode-linux-arm64": "5.0.0-beta.83",+ "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64-musl": "5.0.0-beta.83",+ "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.83",+ "oh-my-opencode-windows-arm64": "5.0.0-beta.83",+ "oh-my-opencode-windows-x64": "5.0.0-beta.83",+ "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.83"},overrides: {"@earendil-works/pi-agent-core": "0.84.2",@@ -7227,6 +7227,7 @@ var init_agent_model_requirements = __esm(() => {},librarian: {fallbackChain: [+ { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed", variant: "off" },{ providers: ["openai", "openai-codex"], model: "gpt-5.6-luna-fast", variant: "low" },{ providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },{ providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },@@ -7239,6 +7240,7 @@ var init_agent_model_requirements = __esm(() => {},explore: {fallbackChain: [+ { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed", variant: "off" },{ providers: ["openai", "openai-codex"], model: "gpt-5.6-luna-fast", variant: "low" },{ providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },{ providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },@@ -7412,7 +7414,6 @@ var init_category_model_requirements = __esm(() => {},quick: {fallbackChain: [- { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed" },{ providers: ["openai-codex"], model: "gpt-5.6-luna-fast", variant: "low" },{ providers: ["deepseek"], model: "deepseek-v4-flash", variant: "off" },{@@ -7432,7 +7433,8 @@ var init_category_model_requirements = __esm(() => {},"unspecified-low": {fallbackChain: [- { providers: ["xai", "github-copilot", "opencode"], model: "grok-4.6", variant: "xhigh" },+ { providers: ["xiaomi", "opencode-go"], model: "mimo-v2.6-pro", variant: "max" },+ { providers: ["xai", "github-copilot", "opencode-go"], model: "grok-4.7", variant: "xhigh" },{providers: ["openai", "openai-codex", "github-copilot", "opencode"],model: "gpt-5.6-terra",@@ -7454,11 +7456,6 @@ var init_category_model_requirements = __esm(() => {},"unspecified-high": {fallbackChain: [- {- providers: ["openai", "openai-codex", "github-copilot", "opencode"],- model: "gpt-6-astra",- variant: "high"- },{providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],model: "claude-opus-5",@@ -8294,6 +8291,36 @@ var init_supplemental_entries = __esm(() => {output: 32768}},+ "grok-4.7": {+ id: "grok-4.7",+ family: "grok",+ reasoning: false,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 500000,+ output: 32768+ }+ },+ "xai/grok-4.7": {+ id: "xai/grok-4.7",+ family: "grok",+ reasoning: false,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 500000,+ output: 32768+ }+ },"xai/grok-build-0.1": {id: "xai/grok-build-0.1",family: "grok",@@ -8323,6 +8350,36 @@ var init_supplemental_entries = __esm(() => {context: 256000,output: 32768}+ },+ "mimo-v2.6-pro": {+ id: "mimo-v2.6-pro",+ family: "mimo",+ reasoning: true,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 1048576,+ output: 131072+ }+ },+ "xiaomi/mimo-v2.6-pro": {+ id: "xiaomi/mimo-v2.6-pro",+ family: "mimo",+ reasoning: true,+ temperature: true,+ toolCall: true,+ modalities: {+ input: ["text", "image"],+ output: ["text"]+ },+ limit: {+ context: 1048576,+ output: 131072+ }}};});@@ -9296,21 +9353,21 @@ var init_openai_categories = __esm(() => {},{name: "quick",- config: { model: "kimi-for-coding/kimi-for-coding-highspeed" },+ config: { model: "openai/gpt-5.6-luna-fast", variant: "low" },description: "Trivial tasks - single file changes, typo fixes, simple modifications",callerGuidance: QUICK_CATEGORY_CALLER_GUIDANCE,promptAppend: QUICK_CATEGORY_PROMPT_APPEND},{name: "unspecified-low",- config: { model: "xai/grok-4.6", variant: "xhigh" },+ config: { model: "xiaomi/mimo-v2.6-pro", variant: "max" },description: "Tasks that don't fit other categories, low effort required",callerGuidance: UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE,promptAppend: UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND},{name: "unspecified-high",- config: { model: "openai/gpt-6-astra", variant: "high" },+ config: { model: "anthropic/claude-opus-5", variant: "xhigh" },description: "Tasks that don't fit other categories, high effort required",callerGuidance: UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE,promptAppend: UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND,@@ -73883,12 +73940,14 @@ var init_git_master = __esm(() => {});// packages/omo-config-core/src/schema/harness.ts-var HARNESS_IDS, OMO_CONFIG_HARNESS_IDS, OmoHarnessIdSchema;+var HARNESS_IDS, OMO_CONFIG_HARNESS_IDS, OmoHarnessIdSchema, OMO_CONFIG_LEGACY_HARNESS_ALIASES, OMO_CONFIG_LEGACY_HARNESS_IDS;var init_harness = __esm(() => {init_zod();HARNESS_IDS = ["codex", "opencode", "omo"];- OMO_CONFIG_HARNESS_IDS = ["opencode", "senpi", "codex"];+ OMO_CONFIG_HARNESS_IDS = ["opencode", "native", "codex"];OmoHarnessIdSchema = _enum(OMO_CONFIG_HARNESS_IDS);+ OMO_CONFIG_LEGACY_HARNESS_ALIASES = { senpi: "native" };+ OMO_CONFIG_LEGACY_HARNESS_IDS = Object.keys(OMO_CONFIG_LEGACY_HARNESS_ALIASES);});// packages/omo-config-core/src/schema/memory.ts@@ -74391,6 +74450,7 @@ var init_config = __esm(() => {telemetry: OmoTelemetrySettingsLayerSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional()}).strict();@@ -74409,6 +74469,7 @@ var init_config = __esm(() => {telemetry: OmoTelemetrySettingsSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional(),profiles: record(string2(), OmoConfigProfileSchema).default({}),@@ -74430,6 +74491,7 @@ var init_config = __esm(() => {telemetry: OmoTelemetrySettingsLayerSchema.optional(),disabled_skills: OmoDisabledSkillsSchema.optional(),"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),+ "[native]": OmoTypedHarnessConfigSchema.optional(),"[senpi]": OmoTypedHarnessConfigSchema.optional(),"[codex]": OmoTypedHarnessConfigSchema.optional(),profiles: record(string2(), OmoConfigProfileSchema).optional(),@@ -74500,6 +74562,60 @@ var init_legacy_category_names = __esm(() => {LEGACY_CATEGORY_NAME_ALIASES = { deep: "deep-low" };});+// packages/omo-config-core/src/schema/legacy-harness-names.ts+function canonicalHarnessName(name) {+ return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] : name;+}+function harnessBlockKey(harness) {+ return `[${harness}]`;+}+function legacyHarnessOfBlockKey(key) {+ if (!key.startsWith("[") || !key.endsWith("]"))+ return;+ const harness = key.slice(1, -1);+ return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, harness) ? harness : undefined;+}+function isRecord10(value) {+ return typeof value === "object" && value !== null && !Array.isArray(value);+}+function canonicalizeBlocksIn(container, path, renames) {+ const result = {};+ for (const [key, value] of Object.entries(container)) {+ const legacyHarness = legacyHarnessOfBlockKey(key);+ if (legacyHarness === undefined) {+ result[key] = value;+ continue;+ }+ const canonical = harnessBlockKey(canonicalHarnessName(legacyHarness));+ const dropped = Object.hasOwn(container, canonical);+ renames.push({ canonical, dropped, legacy: key, path: [...path, key].join(".") });+ if (!dropped)+ result[canonical] = value;+ }+ return result;+}+function canonicalizeLegacyHarnessBlocks(document) {+ if (!isRecord10(document))+ return { document: {}, renames: [] };+ const renames = [];+ const canonicalized = canonicalizeBlocksIn(document, [], renames);+ const profiles = canonicalized["profiles"];+ if (isRecord10(profiles)) {+ const canonicalProfiles = {};+ for (const [name, profile] of Object.entries(profiles)) {+ canonicalProfiles[name] = isRecord10(profile) ? canonicalizeBlocksIn(profile, ["profiles", name], renames) : profile;+ }+ canonicalized["profiles"] = canonicalProfiles;+ }+ return { document: canonicalized, renames };+}+function hasLegacyHarnessBlocks(document) {+ return canonicalizeLegacyHarnessBlocks(document).renames.length > 0;+}+var init_legacy_harness_names = __esm(() => {+ init_harness();+});+// packages/omo-config-core/src/schema/index.tsvar init_schema = __esm(() => {init_agent();@@ -74510,6 +74626,7 @@ var init_schema = __esm(() => {init_git_master();init_harness();init_legacy_category_names();+ init_legacy_harness_names();init_memory();init_model_catalog();init_model_profile();@@ -74519,6 +74636,9 @@ var init_schema = __esm(() => {init_telemetry();});+// packages/omo-config-core/src/loader/disabled-skills.ts+var init_disabled_skills = () => {};+// packages/omo-config-core/src/loader/merge.tsfunction isUnsafeObjectKey2(key) {return DANGEROUS_KEYS2.has(key);@@ -74693,7 +74813,13 @@ function withoutControlKeys(config) {function harnessLayer(config, harness) {if (harness === undefined)return {};- return toRecord(config[`[${harness}]`]) ?? {};+ const canonical = canonicalHarnessName(harness);+ const legacyKeys = Object.entries(OMO_CONFIG_LEGACY_HARNESS_ALIASES).filter(([, target]) => target === canonical).map(([legacy]) => harnessBlockKey(legacy));+ let layer = {};+ for (const key of [...legacyKeys, harnessBlockKey(canonical)]) {+ layer = mergeOmoConfigRecords(layer, toRecord(config[key]) ?? {});+ }+ return layer;}function resolveOmoConfigView(options) {const profiles = toRecord(options.config["profiles"]);@@ -74723,7 +74849,7 @@ var HARNESS_KEYS;var init_resolution = __esm(() => {init_schema();init_merge();- HARNESS_KEYS = [...new Set([...HARNESS_IDS, ...OMO_CONFIG_HARNESS_IDS])].map((harness) => `[${harness}]`);+ HARNESS_KEYS = [...new Set([...HARNESS_IDS, ...OMO_CONFIG_HARNESS_IDS, ...OMO_CONFIG_LEGACY_HARNESS_IDS])].map((harness) => harnessBlockKey(harness));});// packages/omo-config-core/src/loader/loader.ts@@ -74744,6 +74870,7 @@ function parseJsoncSafe2(content) {function stripResolutionControlKeys(config) {const {"[codex]": _codex,+ "[native]": _native,"[opencode]": _opencode,"[senpi]": _senpi,profiles: _profiles,@@ -74769,21 +74896,21 @@ function hasUnsafeUnrecognizedKey(issues) {function hasTamperedPrototype(value) {if (Array.isArray(value))return value.some((entry) => hasTamperedPrototype(entry));- if (!isRecord10(value))+ if (!isRecord11(value))return false;const prototype = Object.getPrototypeOf(value);if (prototype !== Object.prototype && prototype !== null)return true;return Object.values(value).some((entry) => hasTamperedPrototype(entry));}-function isRecord10(value) {+function isRecord11(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function containerAt(record, path) {let container = record;for (const segment of path) {const next = container[segment];- if (!isRecord10(next))+ if (!isRecord11(next))return null;container = next;}@@ -74894,6 +75021,15 @@ function legacyCategoryDiagnostic(path, renames) {issuePaths: renames.map((rename) => rename.path)};}+function legacyHarnessDiagnostic(path, renames) {+ const detail = renames.map((rename) => rename.dropped ? `${rename.path} ignored because ${rename.canonical} is also configured` : `${rename.path} renamed to ${rename.canonical}`).join(", ");+ return {+ kind: "deprecated-keys",+ message: `Deprecated harness block in ${path}: ${detail}. Rename it; the alias is removed in a future release.`,+ path,+ issuePaths: renames.map((rename) => rename.path)+ };+}function loadOmoConfig(options = {}) {const fileSystem = options.fileSystem ?? DEFAULT_READ_FILE_SYSTEM;const cwd = options.cwd ?? process.cwd();@@ -74916,8 +75052,12 @@ function loadOmoConfig(options = {}) {if (canonicalized.renames.length > 0) {diagnostics.push(legacyCategoryDiagnostic(candidate.path, canonicalized.renames));}- layers.push({ config: canonicalized.document, source: loaded.source });- merged = mergeOmoConfigRecords(merged, canonicalized.document);+ const harnessCanonicalized = canonicalizeLegacyHarnessBlocks(canonicalized.document);+ if (harnessCanonicalized.renames.length > 0) {+ diagnostics.push(legacyHarnessDiagnostic(candidate.path, harnessCanonicalized.renames));+ }+ layers.push({ config: harnessCanonicalized.document, source: loaded.source });+ merged = mergeOmoConfigRecords(merged, harnessCanonicalized.document);}}const requestedProfile = resolveOmoProfileName({@@ -74965,6 +75105,7 @@ var init_loader2 = __esm(() => {// packages/omo-config-core/src/loader/index.tsvar init_loader3 = __esm(() => {+ init_disabled_skills();init_loader2();init_merge();init_paths();@@ -77282,14 +77423,14 @@ function transformConfigJsoncSources(input) {const omo = recordAt(legacy, "[omo]");const senpi = recordAt(legacy, "[senpi]");const history = legacyMigrationHistory(input.discovered, input.sources);- const diagnostics = omo !== undefined && senpi !== undefined ? ["conflict: [senpi] legacy [omo] kept [senpi]"] : [];+ const diagnostics = omo !== undefined && senpi !== undefined ? ["conflict: [native] legacy [omo] kept [native]"] : [];return {diagnostics,document: {$schema: OMO_SCHEMA_URL,...recordAt(legacy, "[opencode]") === undefined ? {} : { "[opencode]": recordAt(legacy, "[opencode]") },...recordAt(legacy, "[codex]") === undefined ? {} : { "[codex]": recordAt(legacy, "[codex]") },- ...senpi === undefined && omo === undefined ? {} : { "[senpi]": senpi ?? omo },+ ...senpi === undefined && omo === undefined ? {} : { "[native]": senpi ?? omo },...Object.keys(history).length === 0 ? {} : { legacy_migrations: history }}};@@ -77553,7 +77694,7 @@ function normalizeTypedBlock(value, path, diagnostics, recurseProfiles) {}if (result["models"] !== undefined)result["models"] = normalizeCatalog(result["models"]);- for (const harness of ["[senpi]", "[codex]"]) {+ for (const harness of ["[senpi]", "[native]", "[codex]"]) {if (result[harness] !== undefined)result[harness] = normalizeTypedBlock(result[harness], [...path, harness], diagnostics, false);}@@ -77607,6 +77748,19 @@ var init_category_deep_split = __esm(() => {init_src4();});+// packages/omo-opencode/src/config-migration/harness-native-rename.ts+function transformHarnessNativeRename(document) {+ const { document: canonicalized, renames } = canonicalizeLegacyHarnessBlocks(document);+ return {+ diagnostics: renames.map((rename) => rename.dropped ? `${rename.path} removed: ${rename.canonical} is already configured` : `${rename.path} renamed to ${rename.canonical}`),+ document: canonicalized+ };+}+var HARNESS_NATIVE_RENAME_MIGRATION_ID = "2026-09-harness-native-rename";+var init_harness_native_rename = __esm(() => {+ init_src4();+});+// packages/omo-opencode/src/config-migration/migration-plans.tsfunction backupTimestamp(value) {return value ?? new Date().toISOString().replace(/[:.]/g, "-");@@ -77685,6 +77839,18 @@ function categoryDeepSplitPlan(targetPath) {transform: inspect};}+function harnessNativeRenamePlan(targetPath) {+ const inspect = (sources) => transformHarnessNativeRename(sources[0]?.value);+ return {+ id: HARNESS_NATIVE_RENAME_MIGRATION_ID,+ inspect,+ mode: "replace-target",+ shouldRun: hasLegacyHarnessBlocks,+ sources: [],+ targetPath,+ transform: inspect+ };+}function existingOmoConfigPath(directory, options) {const fileSystem = discoveryFileSystem(options);for (const fileName of ["omo.jsonc", "omo.json"]) {@@ -77748,7 +77914,8 @@ function createLegacyConfigMigrationPlans(options) {return [...legacyPlans,...inPlaceTargets.map(reasoningPlan),- ...inPlaceTargets.map(categoryDeepSplitPlan)+ ...inPlaceTargets.map(categoryDeepSplitPlan),+ ...inPlaceTargets.map(harnessNativeRenamePlan)];}var init_migration_plans = __esm(() => {@@ -77759,6 +77926,7 @@ var init_migration_plans = __esm(() => {init_transform_opencode();init_reasoning_unification();init_category_deep_split();+ init_harness_native_rename();init_src4();});@@ -78543,7 +78711,7 @@ function shouldRetainLine(line, cutoffMs) {function parseDiagnosticLine(line) {try {const parsed = JSON.parse(line);- if (!isRecord12(parsed)) {+ if (!isRecord13(parsed)) {return null;}return parsed;@@ -78554,7 +78722,7 @@ function parseDiagnosticLine(line) {throw error;}}-function isRecord12(value) {+function isRecord13(value) {return value !== null && typeof value === "object" && !Array.isArray(value);}function trimToMaxBytes(lines) {@@ -86044,7 +86212,7 @@ function coerceBool(value) {function coerceString(value) {return typeof value == "string" ? value : undefined;}-function isRecord13(value) {+function isRecord14(value) {return typeof value == "object" && value !== null && !Array.isArray(value);}function toRfc3339(timestamp) {@@ -86066,7 +86234,7 @@ function relocateInto(properties, key, value) {properties[key] = value;}function buildV1Event(message) {- const sourceProperties = isRecord13(message.properties) ? message.properties : {};+ const sourceProperties = isRecord14(message.properties) ? message.properties : {};const properties = {...sourceProperties};@@ -88211,7 +88379,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.0.0-beta.82",+ version: "5.0.0-beta.83",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -91386,8 +91554,11 @@ function formatConfigSummary(config) {if (config.hasCodex) {lines.push(` ${SYMBOLS.info} Codex autonomous mode: ${config.codexAutonomous ? "enabled" : "disabled"}`);}- if (config.hasSenpi) {- lines.push(` ${SYMBOLS.info} Senpi adapter: enabled`);+ if (config.hasNative) {+ lines.push(` ${SYMBOLS.info} OmO Native: installing from omo-ai@beta`);+ }+ if (config.hasNativeDev) {+ lines.push(` ${SYMBOLS.info} OmO Native development adapter: enabled`);}if (!config.hasOpenCode)return lines.join(`@@ -91544,7 +91715,8 @@ function argsToConfig(args) {const platform = resolvePlatform(args);const hasOpenCode = platform === "opencode" || platform === "both";const hasCodex = platform === "codex" || platform === "both";- const hasSenpi = platform === "senpi";+ const hasNative = platform === "native";+ const hasNativeDev = platform === "native-dev";return {platform,hasOpenCode,@@ -91554,7 +91726,8 @@ function argsToConfig(args) {hasGemini: hasOpenCode && args.gemini === "yes",hasCopilot: hasOpenCode && args.copilot === "yes",hasCodex,- hasSenpi,+ hasNative,+ hasNativeDev,hasOpencodeZen: hasOpenCode && args.opencodeZen === "yes",hasZaiCodingPlan: hasOpenCode && args.zaiCodingPlan === "yes",hasKimiForCoding: hasOpenCode && args.kimiForCoding === "yes",@@ -94278,10 +94451,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {} catch {return null;}- if (!isRecord11(cache) || !Array.isArray(cache.models))+ if (!isRecord12(cache) || !Array.isArray(cache.models))return null;for (const entry of cache.models) {- if (!isRecord11(entry))+ if (!isRecord12(entry))continue;if (entry.slug !== model && entry.id !== model)continue;@@ -94306,7 +94479,7 @@ function readRootModelCatalogPath(config) {const single = config.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);return single?.[1] ?? null;}-function isRecord11(value) {+function isRecord12(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function removeFeatureFlagSetting(config, featureName) {@@ -97115,7 +97288,7 @@ async function readSettings(settingsPath) {throw error;}const parsed = JSON.parse(raw);- if (!isRecord14(parsed))+ if (!isRecord15(parsed))throw new Error(`${settingsPath} must contain a JSON object`);return parsed;}@@ -97176,7 +97349,7 @@ async function nextBackupPath(settingsPath) {function timestampForBackup() {return new Date().toISOString().replace(/[-:.]/g, "");}-function isRecord14(value) {+function isRecord15(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}async function readPackageName(packagePath) {@@ -97196,7 +97369,7 @@ async function readPackageName(packagePath) {return;throw error;}- return isRecord14(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;+ return isRecord15(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;}async function fileExists(path) {try {@@ -97220,6 +97393,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [join61("extensions", "memory-run-supervisor.mjs"),...PERSONA_ASSET_FILES.map((filename) => join61("extensions", filename)),join61("skills", "ast-grep", "SKILL.md"),+ join61("skills", "browser", "SKILL.md"),join61("skills", "coding-agent-sessions", "SKILL.md"),join61("skills", "debugging", "SKILL.md"),join61("skills", "frontend", "SKILL.md"),@@ -97311,7 +97485,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}}function isAstGrepRuntimeManifest(value) {- if (!isRecord14(value))+ if (!isRecord15(value))return false;return typeof value.sha256 === "string" && /^[a-f0-9]{64}$/.test(value.sha256) && typeof value.mode === "number" && Number.isInteger(value.mode) && typeof value.stagedAtUtc === "string" && !Number.isNaN(Date.parse(value.stagedAtUtc));}@@ -97401,23 +97575,88 @@ function findRepoRoot2(importerDir) {function fileExistsSync(path) {return existsSync30(path);}-// packages/omo-opencode/src/cli/senpi-edition-hint.ts-var SENPI_EDITION_INSTALL_COMMAND = "bun add -g omo-ai@beta";-var SENPI_EDITION_GUIDE_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/installation.md#senpi-edition-beta-omo-via-omo-ai";-var SENPI_EDITION_HINT_TITLE = "Standalone Senpi edition (beta)";+// packages/omo-opencode/src/cli/install-native-dev/index.ts+async function runNativeDevInstaller(options) {+ return runSenpiInstaller(options);+}++// packages/omo-opencode/src/cli/install-native/plan.ts+var NATIVE_PACKAGE_SPEC = "omo-ai@beta";+var NATIVE_SETUP_COMMAND = "omo setup";+var NATIVE_RECOMMENDED_RUNTIME_NOTE = "bun is the recommended runtime for OmO Native; npm works, but bun is what the beta channel is tested on.";+var PLANS = {+ bun: { packageManager: "bun", command: "bun", args: ["add", "-g", NATIVE_PACKAGE_SPEC] },+ npm: { packageManager: "npm", command: "npm", args: ["i", "-g", NATIVE_PACKAGE_SPEC] }+};+function resolveNativeInstallPlan(bunAvailable) {+ return bunAvailable ? PLANS.bun : PLANS.npm;+}+function formatNativeInstallCommand(plan) {+ return [plan.command, ...plan.args].join(" ");+}+// packages/omo-opencode/src/cli/install-native/run-native-install.ts+init_bun_which_shim();+init_spawn_with_windows_hide();+function describeExit(plan, result) {+ const stderr = result.stderr?.trim();+ const head = `${plan.packageManager} exited with code ${result.exitCode}`;+ return stderr ? `${head}: ${stderr.split(`+`).slice(-3).join(" ")}` : head;+}+async function runNativeInstall(dependencies = defaultNativeInstallDependencies()) {+ const plan = resolveNativeInstallPlan(await dependencies.isBunAvailable());+ const notes = plan.packageManager === "npm" ? [NATIVE_RECOMMENDED_RUNTIME_NOTE] : [];+ const manualCommand = formatNativeInstallCommand(plan);+ try {+ const result = await dependencies.spawn(plan.command, plan.args);+ if (result.exitCode === 0)+ return { ok: true, plan, notes };+ return { ok: false, plan, notes, failure: { reason: describeExit(plan, result), manualCommand } };+ } catch (error) {+ const reason = error instanceof Error ? error.message : String(error);+ return { ok: false, plan, notes, failure: { reason, manualCommand } };+ }+}+function nativeInstallSuccessLine() {+ return `OmO Native installed. Run ${NATIVE_SETUP_COMMAND} to finish onboarding.`;+}+function nativeInstallFailureLines(failure) {+ return [+ `OmO Native install failed: ${failure.reason}`,+ `Install it yourself with: ${failure.manualCommand}`,+ `Then run ${NATIVE_SETUP_COMMAND}.`+ ];+}+function defaultNativeInstallDependencies() {+ return {+ isBunAvailable: () => bunWhich("bun") !== null,+ spawn: async (command, args) => {+ const proc = spawnWithWindowsHide([command, ...args], {+ env: process.env,+ stdout: "inherit",+ stderr: "inherit"+ });+ return { exitCode: await proc.exited };+ }+ };+}+// packages/omo-opencode/src/cli/native-edition-hint.ts+var NATIVE_EDITION_INSTALL_COMMAND = "bun add -g omo-ai@beta";+var NATIVE_EDITION_GUIDE_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/installation.md#omo-native-beta-omo-via-omo-ai";+var NATIVE_EDITION_HINT_TITLE = "OmO Native (beta)";var PLAIN_PAINT = {command: (text) => text,link: (text) => text};-function shouldShowSenpiEditionHint(config) {- return !config.hasSenpi;+function shouldShowNativeEditionHint(config) {+ return !config.hasNative && !config.hasNativeDev;}-function senpiEditionHintLines(paint = PLAIN_PAINT) {+function nativeEditionHintLines(paint = PLAIN_PAINT) {return [- `omo also ships as a standalone Senpi edition: one ${paint.command("omo")} command, no OpenCode host required.`,- `Try it next to this install: ${paint.command(SENPI_EDITION_INSTALL_COMMAND)}, then run ${paint.command("omo")}.`,+ `omo also ships as OmO Native: the same omo as one ${paint.command("omo")} command, with no OpenCode host required.`,+ `Try it next to this install: ${paint.command(NATIVE_EDITION_INSTALL_COMMAND)}, then run ${paint.command("omo")}.`,"This install keeps working as-is.",- `Guide: ${paint.link(SENPI_EDITION_GUIDE_URL)}`+ `Guide: ${paint.link(NATIVE_EDITION_GUIDE_URL)}`];}@@ -97432,7 +97671,8 @@ var PLATFORM_REPOSITORIES = {opencode: ["code-yeongyu/oh-my-openagent"],codex: STAR_REPOSITORIES,both: STAR_REPOSITORIES,- senpi: STAR_REPOSITORIES+ native: STAR_REPOSITORIES,+ "native-dev": STAR_REPOSITORIES};var execFileAsync2 = promisify3(execFile4);async function runGitHubStarCommand(repository) {@@ -97934,14 +98174,27 @@ async function runCliInstaller(args, version) {}console.log();}- if (config.hasSenpi) {- printInfo("Installing Senpi harness adapter...");+ if (config.hasNative) {+ printInfo("Installing OmO Native...");+ const outcome = await runNativeInstall();+ if (outcome.failure) {+ for (const line of nativeInstallFailureLines(outcome.failure))+ printError(line);+ return 1;+ }+ for (const note of outcome.notes)+ printInfo(note);+ printSuccess(nativeInstallSuccessLine());+ console.log();+ }+ if (config.hasNativeDev) {+ printInfo("Installing the OmO Native development adapter...");try {- const senpiResult = await runSenpiInstaller();- printSuccess(`Senpi adapter installed ${SYMBOLS.arrow} ${import_picocolors3.default.dim(senpiResult.settingsPath)}`);+ const nativeDevResult = await runNativeDevInstaller();+ printSuccess(`OmO Native development adapter installed ${SYMBOLS.arrow} ${import_picocolors3.default.dim(nativeDevResult.settingsPath)}`);} catch (error) {const message = error instanceof Error ? error.message : String(error);- printError(`Senpi install failed: ${message}`);+ printError(`OmO Native development adapter install failed: ${message}`);return 1;}console.log();@@ -97952,9 +98205,9 @@ async function runCliInstaller(args, version) {printBox(`${import_picocolors3.default.bold("Pro Tip:")} Include ${import_picocolors3.default.cyan("ultrawork")} (or ${import_picocolors3.default.cyan("ulw")}) in your prompt.` + `All features work like magic-parallel agents, background tasks,` + `deep exploration, and relentless execution until completion.`, "The Magic Word");- if (shouldShowSenpiEditionHint(config)) {- printInfo(import_picocolors3.default.bold(SENPI_EDITION_HINT_TITLE));- for (const line of senpiEditionHintLines({ command: import_picocolors3.default.cyan, link: import_picocolors3.default.underline })) {+ if (shouldShowNativeEditionHint(config)) {+ printInfo(import_picocolors3.default.bold(NATIVE_EDITION_HINT_TITLE));+ for (const line of nativeEditionHintLines({ command: import_picocolors3.default.cyan, link: import_picocolors3.default.underline })) {console.log(` ${line}`);}console.log();@@ -99094,16 +99347,20 @@ var import_picocolors4 = __toESM(require_picocolors(), 1);// packages/omo-opencode/src/cli/tui-install-prompts.tsinit_model_fallback();-// packages/omo-opencode/src/cli/senpi-platform-flag.ts-var SENPI_PLATFORM_ENV_FLAG = "OMO_ENABLE_SENPI_PLATFORM";-function isSenpiPlatformEnabled(env = process.env) {- const value = env[SENPI_PLATFORM_ENV_FLAG]?.trim().toLowerCase();- return value === "1" || value === "true";+// packages/omo-opencode/src/cli/native-dev-platform-flag.ts+var NATIVE_DEV_PLATFORM_ENV_FLAG = "OMO_ENABLE_NATIVE_DEV_PLATFORM";+var LEGACY_NATIVE_DEV_PLATFORM_ENV_FLAG = "OMO_ENABLE_SENPI_PLATFORM";+function isTruthy(value) {+ const normalized = value?.trim().toLowerCase();+ return normalized === "1" || normalized === "true";+}+function isNativeDevPlatformEnabled(env = process.env) {+ return isTruthy(env[NATIVE_DEV_PLATFORM_ENV_FLAG]) || isTruthy(env[LEGACY_NATIVE_DEV_PLATFORM_ENV_FLAG]);}function availableInstallPlatforms(env = process.env) {- const platforms = ["opencode", "codex", "both"];- if (isSenpiPlatformEnabled(env))- platforms.push("senpi");+ const platforms = ["opencode", "codex", "both", "native"];+ if (isNativeDevPlatformEnabled(env))+ platforms.push("native-dev");return platforms;}@@ -99126,10 +99383,15 @@ async function promptInstallPlatform(initialValue = "opencode") {const options = [{ value: "opencode", label: "OpenCode", hint: "Install OpenCode plugin only" },{ value: "codex", label: "Codex", hint: "Install Codex harness adapter only" },- { value: "both", label: "Both", hint: "Install OpenCode plugin and Codex adapter" }+ { value: "both", label: "Both", hint: "Install OpenCode plugin and Codex adapter" },+ { value: "native", label: "OmO Native", hint: "Install the standalone omo command (no host required)" }];- if (isSenpiPlatformEnabled()) {- options.push({ value: "senpi", label: "Senpi", hint: "Install Senpi harness adapter only" });+ if (isNativeDevPlatformEnabled()) {+ options.push({+ value: "native-dev",+ label: "OmO Native (development adapter)",+ hint: "Register this checkout into a local engine install"+ });}return selectOrCancel({message: "Which platform do you want to install?",@@ -99140,7 +99402,8 @@ async function promptInstallPlatform(initialValue = "opencode") {async function promptInstallConfig(detected, platform, codexAutonomousOverride) {const hasOpenCode = platform === "opencode" || platform === "both";const hasCodex = platform === "codex" || platform === "both";- const hasSenpi = platform === "senpi";+ const hasNative = platform === "native";+ const hasNativeDev = platform === "native-dev";const codexAutonomous = await resolveCodexAutonomous(hasCodex, codexAutonomousOverride);if (codexAutonomous === null)return null;@@ -99154,7 +99417,8 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)hasGemini: false,hasCopilot: false,hasCodex,- hasSenpi,+ hasNative,+ hasNativeDev,hasOpencodeZen: false,hasZaiCodingPlan: false,hasKimiForCoding: false,@@ -99297,7 +99561,8 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)hasGemini: gemini === "yes",hasCopilot: copilot === "yes",hasCodex,- hasSenpi,+ hasNative,+ hasNativeDev,hasOpencodeZen: opencodeZen === "yes",hasZaiCodingPlan: zaiCodingPlan === "yes",hasKimiForCoding: kimiForCoding === "yes",@@ -99428,15 +99693,29 @@ async function runTuiInstaller(args, version) {log4.info("The Codex harness is NOT installed. Fix the error above, then re-run: bunx oh-my-openagent install --platform=codex");}}- if (config.hasSenpi) {- spinner2.start("Installing Senpi harness adapter");+ if (config.hasNative) {+ spinner2.start("Installing OmO Native");+ const outcome = await runNativeInstall();+ if (outcome.failure) {+ spinner2.stop(`OmO Native install failed ${import_picocolors4.default.yellow("[!]")}`);+ for (const line of nativeInstallFailureLines(outcome.failure))+ log4.error(line);+ outro(import_picocolors4.default.red("Installation failed."));+ return 1;+ }+ spinner2.stop(nativeInstallSuccessLine());+ for (const note of outcome.notes)+ log4.info(note);+ }+ if (config.hasNativeDev) {+ spinner2.start("Installing the OmO Native development adapter");try {- const senpiResult = await runSenpiInstaller();- spinner2.stop(`Senpi adapter installed to ${import_picocolors4.default.cyan(senpiResult.settingsPath)}`);+ const nativeDevResult = await runNativeDevInstaller();+ spinner2.stop(`OmO Native development adapter installed to ${import_picocolors4.default.cyan(nativeDevResult.settingsPath)}`);} catch (error) {const message = error instanceof Error ? error.message : String(error);- spinner2.stop(`Senpi install failed ${import_picocolors4.default.yellow("[!]")}`);- log4.error(`Senpi install failed: ${message}`);+ spinner2.stop(`OmO Native development adapter install failed ${import_picocolors4.default.yellow("[!]")}`);+ log4.error(`OmO Native development adapter install failed: ${message}`);outro(import_picocolors4.default.red("Installation failed."));return 1;}@@ -99450,9 +99729,9 @@ async function runTuiInstaller(args, version) {note(`Include ${import_picocolors4.default.cyan("ultrawork")} (or ${import_picocolors4.default.cyan("ulw")}) in your prompt.` + `All features work like magic-parallel agents, background tasks,` + `deep exploration, and relentless execution until completion.`, "The Magic Word");- if (shouldShowSenpiEditionHint(config)) {- log4.info(import_picocolors4.default.bold(SENPI_EDITION_HINT_TITLE));- log4.message(senpiEditionHintLines({ command: import_picocolors4.default.cyan, link: import_picocolors4.default.underline }).join(`+ if (shouldShowNativeEditionHint(config)) {+ log4.info(import_picocolors4.default.bold(NATIVE_EDITION_HINT_TITLE));+ log4.message(nativeEditionHintLines({ command: import_picocolors4.default.cyan, link: import_picocolors4.default.underline }).join(``));}const shouldStar = await confirm({@@ -99493,7 +99772,7 @@ async function runTuiInstaller(args, version) {// packages/omo-opencode/src/cli/install.tsvar VERSION = package_default.version;-async function install3(args) {+async function install2(args) {return args.tui ? runTuiInstaller(args, VERSION) : runCliInstaller(args, VERSION);}// packages/omo-opencode/src/cli/cleanup.ts@@ -100994,7 +101273,8 @@ var HookNameSchema = _enum(["webfetch-redirect-guard","fsync-skip-warning","plan-format-validator",- "legacy-plugin-toast"+ "legacy-plugin-toast",+ "native-edition-nudge"]);// packages/omo-opencode/src/config/schema/i18n.tsinit_zod();@@ -103097,14 +103377,14 @@ var NO_OP_POSTHOG2 = {function isFalsy(value) {return value === "0" || value === "false" || value === "no";}-function isTruthy(value) {+function isTruthy2(value) {return value === "1" || value === "true" || value === "yes";}function shouldDisablePostHog(env, configEnabled) {if (configEnabled === false) {return true;}- if (isTruthy(env.OMO_DISABLE_POSTHOG?.trim().toLowerCase())) {+ if (isTruthy2(env.OMO_DISABLE_POSTHOG?.trim().toLowerCase())) {return true;}return isFalsy(env.OMO_SEND_ANONYMOUS_TELEMETRY?.trim().toLowerCase());@@ -104627,14 +104907,14 @@ var CANONICAL_REPLACEMENT = new Map([var MIGRATE_SUFFIX = ", or run: oh-my-openagent config migrate";var TUNING_CONTAINERS = new Set(["agents", "categories", "models"]);var PASSTHROUGH_CONTAINERS = new Set(["provider_options", "providerOptions"]);-function isRecord15(value) {+function isRecord16(value) {return value !== null && typeof value === "object" && !Array.isArray(value);}function isHarnessBlock(key) {return key.startsWith("[") && key.endsWith("]");}function collectIssues(configPath, value, prefix, fixSuffix) {- if (!isRecord15(value))+ if (!isRecord16(value))return [];const issues = [];for (const [key, child] of Object.entries(value)) {@@ -104650,7 +104930,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {});continue;}- if (!isRecord15(child))+ if (!isRecord16(child))continue;if (PASSTHROUGH_CONTAINERS.has(key))continue;@@ -104669,7 +104949,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {return issues;}function migrateFixSuffix(parsed) {- if (isRecord15(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))+ if (isRecord16(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))return "";return MIGRATE_SUFFIX;}@@ -105907,12 +106187,12 @@ async function auditBundleTargets(pluginRoot) {let referencedCount = 0;for (const manifestPath of await findManifestPaths(pluginRoot, ".mcp.json")) {const manifest = await readJson2(manifestPath);- if (manifest === null || !isRecord16(manifest["mcpServers"]))+ if (manifest === null || !isRecord17(manifest["mcpServers"]))continue;const manifestRoot = dirname33(manifestPath);const isRootManifest = resolve24(manifestRoot) === resolve24(pluginRoot);for (const server of Object.values(manifest["mcpServers"])) {- if (!isRecord16(server) || !Array.isArray(server["args"]))+ if (!isRecord17(server) || !Array.isArray(server["args"]))continue;for (const arg of server["args"]) {if (typeof arg !== "string" || !isPluginRuntimePathArg(arg))@@ -105998,7 +106278,7 @@ function collectHookCommands(value, commands) {collectHookCommands(item, commands);return;}- if (!isRecord16(value))+ if (!isRecord17(value))return;if (value["type"] === "command") {if (typeof value["command"] === "string")@@ -106053,7 +106333,7 @@ function parseDegradedEntries(value) {return [];const entries = [];for (const item of value) {- if (!isRecord16(item))+ if (!isRecord17(item))continue;if (typeof item["component"] !== "string" || typeof item["reason"] !== "string")continue;@@ -106087,7 +106367,7 @@ function degradedDetailLines(entries) {async function readJson2(path) {try {const parsed = JSON.parse(await readFile29(path, "utf8"));- return isRecord16(parsed) ? parsed : null;+ return isRecord17(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)return null;@@ -106108,7 +106388,7 @@ function normalizeRelative(root, target) {function normalizePathSeparators(path) {return path.split("\\").join("/");}-function isRecord16(value) {+function isRecord17(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}@@ -108218,8 +108498,8 @@ var program2 = new Command;function resolveInstallArgs(options, invocationName = process.env.OMO_INVOCATION_NAME) {const defaultPlatform = process.env.OMO_EDITION === "codex" || invocationName === "lazycodex" || invocationName === "lazycodex-ai" ? "codex" : undefined;const platform = options.platform ?? defaultPlatform;- if (platform === "senpi" && !isSenpiPlatformEnabled()) {- throw new Error(`The senpi install platform is not available in this release. Set ${SENPI_PLATFORM_ENV_FLAG}=1 to enable it from a source checkout.`);+ if (platform === "native-dev" && !isNativeDevPlatformEnabled()) {+ throw new Error(`The native-dev install platform is not available in this release. Set ${NATIVE_DEV_PLATFORM_ENV_FLAG}=1 to enable it from a source checkout.`);}return {tui: options.tui !== false,@@ -108264,7 +108544,7 @@ Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi > Baili`).action(async (options) => {const rootOptions = program2.opts();const args = resolveInstallArgs({ ...options, platform: options.platform ?? rootOptions.platform });- const exitCode = await install3(args);+ const exitCode = await install2(args);process.exit(exitCode);});configureCleanupCommand(program2);diff --git a/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json b/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.jsonindex ec793fa6..3aac65be 100644--- a/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json+++ b/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/git-bash/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Resetting Git Bash MCP Reminder",+ "statusMessage": "(OmO 5.0.0-beta.83) Resetting Git Bash MCP Reminder","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\git-bash\\dist\\cli.js\" hook post-compact"}],diff --git a/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json b/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.jsonindex 67f3ca5e..7c7efe5e 100644--- a/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json+++ b/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lsp/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Resetting LSP Diagnostics Cache",+ "statusMessage": "(OmO 5.0.0-beta.83) Resetting LSP Diagnostics Cache","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lsp\\dist\\cli.js\" hook post-compact"}],diff --git a/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json b/plugins/omo/hooks/post-compact-resetting-project-rule-cache.jsonindex 9c13b607..4709a593 100644--- a/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json+++ b/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook post-compact","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Resetting Project Rule Cache",+ "statusMessage": "(OmO 5.0.0-beta.83) Resetting Project Rule Cache","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook post-compact"}],diff --git a/plugins/omo/hooks/post-tool-use-checking-comments.json b/plugins/omo/hooks/post-tool-use-checking-comments.jsonindex 460a3072..42db93dd 100644--- a/plugins/omo/hooks/post-tool-use-checking-comments.json+++ b/plugins/omo/hooks/post-tool-use-checking-comments.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/comment-checker/dist/cli.js\" hook post-tool-use","timeout": 30,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Comments",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Comments","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\comment-checker\\dist\\cli.js\" hook post-tool-use"}],diff --git a/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json b/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.jsonindex acd62d05..24d1b58d 100644--- a/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json+++ b/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lsp/dist/cli.js\" hook post-tool-use","timeout": 60,- "statusMessage": "(OmO 5.0.0-beta.82) Checking LSP Diagnostics",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking LSP Diagnostics","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lsp\\dist\\cli.js\" hook post-tool-use"}],diff --git a/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json b/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.jsonindex 8570f019..d94fc676 100644--- a/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json+++ b/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/teammode/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Thread Title Hygiene",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Thread Title Hygiene","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\teammode\\dist\\cli.js\" hook post-tool-use"}]diff --git a/plugins/omo/hooks/post-tool-use-matching-project-rules.json b/plugins/omo/hooks/post-tool-use-matching-project-rules.jsonindex 29dca82a..ec556217 100644--- a/plugins/omo/hooks/post-tool-use-matching-project-rules.json+++ b/plugins/omo/hooks/post-tool-use-matching-project-rules.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook post-tool-use","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Matching Project Rules",+ "statusMessage": "(OmO 5.0.0-beta.83) Matching Project Rules","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook post-tool-use"}],diff --git a/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json b/plugins/omo/hooks/post-tool-use-recording-spawn-admission.jsonindex c902bf70..f38263b1 100644--- a/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json+++ b/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook post-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Recording Spawn Admission",+ "statusMessage": "(OmO 5.0.0-beta.83) Recording Spawn Admission","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook post-tool-use-spawn"}]diff --git a/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json b/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.jsonindex 759e55cf..8f7af050 100644--- a/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json+++ b/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Enforcing Unlimited Goal Budget",+ "statusMessage": "(OmO 5.0.0-beta.83) Enforcing Unlimited Goal Budget","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook pre-tool-use"}],diff --git a/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json b/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.jsonindex c788bdcd..cb5d91f9 100644--- a/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json+++ b/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json@@ -8,7 +8,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook pre-tool-use-spawn","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Guarding Ulw-Loop Spawns",+ "statusMessage": "(OmO 5.0.0-beta.83) Guarding Ulw-Loop Spawns","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook pre-tool-use-spawn"}]diff --git a/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json b/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.jsonindex 7e792d61..f08decaa 100644--- a/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json+++ b/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/git-bash/dist/cli.js\" hook pre-tool-use","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Recommending Git Bash MCP",+ "statusMessage": "(OmO 5.0.0-beta.83) Recommending Git Bash MCP","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\git-bash\\dist\\cli.js\" hook pre-tool-use"}],diff --git a/plugins/omo/hooks/session-start-checking-auto-update.json b/plugins/omo/hooks/session-start-checking-auto-update.jsonindex 13328654..7b777022 100644--- a/plugins/omo/hooks/session-start-checking-auto-update.json+++ b/plugins/omo/hooks/session-start-checking-auto-update.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/scripts/auto-update.mjs\" hook session-start","timeout": 15,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Auto Update",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Auto Update","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\scripts\\auto-update.mjs\" hook session-start"}],diff --git a/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json b/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.jsonindex 9d3a72d2..c5f62fbc 100644--- a/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json+++ b/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json@@ -8,7 +8,7 @@"command": "node \"${PLUGIN_ROOT}/components/bootstrap/dist/cli.js\" hook session-start","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\bootstrap.ps1\"","timeout": 30,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Bootstrap Provisioning"}]}diff --git a/plugins/omo/hooks/session-start-loading-project-rules.json b/plugins/omo/hooks/session-start-loading-project-rules.jsonindex 7528808b..686822f3 100644--- a/plugins/omo/hooks/session-start-loading-project-rules.json+++ b/plugins/omo/hooks/session-start-loading-project-rules.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook session-start","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Loading Project Rules",+ "statusMessage": "(OmO 5.0.0-beta.83) Loading Project Rules","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook session-start"}]diff --git a/plugins/omo/hooks/session-start-recording-session-telemetry.json b/plugins/omo/hooks/session-start-recording-session-telemetry.jsonindex f29ef97c..be4ee39d 100644--- a/plugins/omo/hooks/session-start-recording-session-telemetry.json+++ b/plugins/omo/hooks/session-start-recording-session-telemetry.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/telemetry/dist/cli.js\" hook session-start","timeout": 15,- "statusMessage": "(OmO 5.0.0-beta.82) Recording Session Telemetry",+ "statusMessage": "(OmO 5.0.0-beta.83) Recording Session Telemetry","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\telemetry\\dist\\cli.js\" hook session-start"}]diff --git a/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json b/plugins/omo/hooks/stop-checking-ulw-execute-continuation.jsonindex 630f803f..fdc5e698 100644--- a/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json+++ b/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-execute-continuation/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ulw-Execute Continuation",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ulw-Execute Continuation","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-execute-continuation\\dist\\cli.js\" hook stop"}]diff --git a/plugins/omo/hooks/stop-checking-ulw-loop-resume.json b/plugins/omo/hooks/stop-checking-ulw-loop-resume.jsonindex 93f7de60..7bf9fdaf 100644--- a/plugins/omo/hooks/stop-checking-ulw-loop-resume.json+++ b/plugins/omo/hooks/stop-checking-ulw-loop-resume.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ulw-Loop Resume",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ulw-Loop Resume","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook stop"}]diff --git a/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json b/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.jsonindex f8df73e8..76b072cc 100644--- a/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json+++ b/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/lazycodex-executor-verify/dist/cli.js\" hook subagent-stop","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Verifying LazyCodex Executor Evidence",+ "statusMessage": "(OmO 5.0.0-beta.83) Verifying LazyCodex Executor Evidence","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lazycodex-executor-verify\\dist\\cli.js\" hook subagent-stop"}],diff --git a/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json b/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.jsonindex 08a07a9a..e557a583 100644--- a/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json+++ b/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ultrawork/dist/cli.js\" hook user-prompt-submit","timeout": 5,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ultrawork Trigger",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ultrawork Trigger","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ultrawork\\dist\\cli.js\" hook user-prompt-submit"}]diff --git a/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json b/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.jsonindex 11855b32..bdd58669 100644--- a/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json+++ b/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook user-prompt-submit","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Checking Ulw-Loop Steering",+ "statusMessage": "(OmO 5.0.0-beta.83) Checking Ulw-Loop Steering","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook user-prompt-submit"}]diff --git a/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json b/plugins/omo/hooks/user-prompt-submit-loading-project-rules.jsonindex 465c1193..edcc7bcc 100644--- a/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json+++ b/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json@@ -7,7 +7,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook user-prompt-submit","timeout": 10,- "statusMessage": "(OmO 5.0.0-beta.82) Loading Project Rules",+ "statusMessage": "(OmO 5.0.0-beta.83) Loading Project Rules","commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook user-prompt-submit"}]diff --git a/plugins/omo/package-lock.json b/plugins/omo/package-lock.jsonindex ee76be81..dab0e18b 100644--- a/plugins/omo/package-lock.json+++ b/plugins/omo/package-lock.json@@ -1,12 +1,12 @@{"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","workspaces": ["components/comment-checker","components/git-bash",@@ -95,7 +95,7 @@},"components/comment-checker": {"name": "@code-yeongyu/codex-comment-checker",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","bin": {"omo-comment-checker": "dist/cli.js"@@ -117,7 +117,7 @@},"components/git-bash": {"name": "@sisyphuslabs/codex-git-bash-hook",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","bin": {"omo-git-bash-hook": "dist/cli.js"},@@ -131,7 +131,7 @@},"components/lazycodex-executor-verify": {"name": "@code-yeongyu/codex-lazycodex-executor-verify",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","bin": {"lazycodex-executor-verify": "dist/cli.js"@@ -149,7 +149,7 @@},"components/lsp": {"name": "@code-yeongyu/codex-lsp",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","dependencies": {"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon",@@ -171,7 +171,7 @@},"components/rules": {"name": "@code-yeongyu/codex-rules",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","dependencies": {"picomatch": "^4.0.7"@@ -194,7 +194,7 @@},"components/teammode": {"name": "@sisyphuslabs/codex-teammode",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","devDependencies": {"@types/node": "^26.6.2","@vitest/coverage-v8": "5.0.1",@@ -208,7 +208,7 @@},"components/telemetry": {"name": "@code-yeongyu/codex-telemetry",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","bin": {"omo-telemetry": "dist/cli.js"@@ -227,7 +227,7 @@},"components/ultrawork": {"name": "@code-yeongyu/codex-ultrawork",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","bin": {"omo-ultrawork": "dist/cli.js"@@ -246,7 +246,7 @@},"components/ulw-execute-continuation": {"name": "@code-yeongyu/codex-ulw-execute-continuation",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","bin": {"omo-ulw-execute-continuation": "dist/cli.js"@@ -264,7 +264,7 @@},"components/ulw-loop": {"name": "@code-yeongyu/codex-ulw-loop",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","license": "MIT","bin": {"omo-ulw-loop": "dist/cli.js",diff --git a/plugins/omo/package.json b/plugins/omo/package.jsonindex 9d6128f5..64ab4153 100644--- a/plugins/omo/package.json+++ b/plugins/omo/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.0.0-beta.82",+ "version": "5.0.0-beta.83","description": "Aggregate Codex plugin root for OMO components.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/skills/browser/ATTRIBUTION.md b/plugins/omo/skills/browser/ATTRIBUTION.mdnew file mode 100644index 00000000..1c3483fd--- /dev/null+++ b/plugins/omo/skills/browser/ATTRIBUTION.md@@ -0,0 +1,25 @@+# ATTRIBUTION / NOTICE++This skill (`browser`, part of `@oh-my-opencode/shared-skills`) is project-original documentation.+It drives a third-party tool that it does **not** redistribute.++## BrowserSkill — driven, not vendored++The attached engine this skill documents is **BrowserSkill** by Tencent.++- Upstream: https://github.com/Tencent/BrowserSkill+- License: MIT+- What ships here: documentation and two local helper scripts, authored by this project.+- What does NOT ship here: the `bsk` CLI, the daemon, the browser extension, or any upstream+ source. The user installs those from upstream's own installer and from the Chrome Web Store /+ Edge Add-ons listings. This package never bundles a browser binary or an extension payload.++MIT permits redistribution; we simply have no reason to, because upstream publishes signed+per-platform releases and store builds that stay current on their own.++## Owned-engine references++`references/owned-engine/` documents a *contract* for a code-driven browser — the escalation+ladder, viewport pinning, reading the network instead of the DOM, overlay and cross-origin+handling — not any particular package. The techniques are generic CDP practice. No third-party+source is reproduced.diff --git a/plugins/omo/skills/browser/SKILL.md b/plugins/omo/skills/browser/SKILL.mdnew file mode 100644index 00000000..2ad31ea0--- /dev/null+++ b/plugins/omo/skills/browser/SKILL.md@@ -0,0 +1,89 @@+---+name: browser+description: "Drives a real browser: sites the user is already signed into, forms and clicks, JS-rendered pages, screenshots, web QA, extension popups, and a human handoff for login, CAPTCHA or OTP. Works through the BrowserSkill extension and its bsk CLI, inside the user's own browser, in a separate Agent Window. Use for any interactive browser task; not for a plain search or an unblocked static fetch."+---++# Browser++Two engines live behind this skill. Choose before you act:++| You need | Engine | Where |+|---|---|---|+| A site the user is signed into, a form, a click-through, a screenshot, web QA, an extension popup | **attached** — the user's own browser | this file |+| A throwaway profile, bot-scoring evasion, a CAPTCHA, network interception, a QA flight trace, coordinate control | **owned** — a browser your code launches | [references/owned-engine/README.md](references/owned-engine/README.md) |+| Text out of a URL, a 403 bypass, a platform that blocks fetchers | neither | the `ultimate-browsing` skill |++**Attached is the default,** because it is the only engine carrying the user's logins and the only+one where a human is a single command away. The owned engine is an opt-in local install, not part+of this package.++## Step 0 — prove the stack before you drive it++```bash+node "<skill-root>/scripts/browser-doctor.mjs"+```++It reports one of four states and what to do next:++| State | Meaning | Next |+|---|---|---|+| `ready` | CLI, daemon and a connected browser | start a session |+| `no-extension` | CLI works, no browser is connected | give the user the store link the doctor printed, wait, re-run |+| `no-cli` | `bsk` is not installed | `node "<skill-root>/scripts/browser-install.mjs"`, then re-run |+| `no-browser-support` | the platform has no supported browser | say so and stop |++**Never substitute another browser for a missing one.** A headless browser you launch yourself has+none of the user's sessions, so every login turns into a ladder you should not be climbing. If the+attached engine is unavailable, say which state you hit and ask the user.++## The loop++```bash+bsk session start --json --no-focus --name "<task>" # keep session_id+bsk navigate https://example.com --session <id> --json+bsk observe --session <id> # @eN refs live here+bsk click @e1 --session <id> --json+bsk screenshot --session <id> --out ./shot.png --json+bsk session stop <id> --json # success AND failure+```++1. **Observe before every action.** `observe` returns a semantic tree whose `@eN` refs are reissued+ on each call. Read a ref and use it in the same cycle; a ref from two calls ago points somewhere+ else now.+2. **Navigation and large DOM changes stale every ref.** Observe again rather than reusing.+3. **Two identical failures mean change approach, not retry.** A third identical attempt is a defect.+4. **Borrow a user tab explicitly** (`tab list --scope user`, `tab borrow <id>`, `tab return <id>`).+ Borrowing prompts the user; never invent tab ids and never repeat a denied borrow.+5. **Always stop the session,** on success and on failure. Stopping also returns borrowed tabs.++Command semantics, the flags that behave differently than they read, and the failure table are in+[references/commands.md](references/commands.md).++## When a human is the only way through++Login, CAPTCHA, OTP, a payment confirmation, a consent dialog:++```bash+bsk request-help --session <id> --prompt "<what you need done>" [--target @eN]+```++Then observe again. Respect a `cancelled` or `timed_out` answer; do not work around it by changing+the extension's automation settings.++## Rules++- **Never read credentials through the page.** No `evaluate` that extracts a password, token, cookie+ or recovery code. The value of this engine is that the browser is already signed in.+- **Never clear cookies, cache or site data.** It is the user's real profile; clearing it logs them+ out everywhere. No flow here needs it.+- **`--no-focus` by default.** The browser belongs to someone who is probably using it.+- **One short, named session per task,** always stopped.+- Do not toggle the extension's automation settings, and do not restart the browser to fix a state.++## More++- [references/install.md](references/install.md) — installing the CLI and the extension, per OS+- [references/commands.md](references/commands.md) — command semantics, refs, failure table+- [references/remote.md](references/remote.md) — agent on one machine, browser on another+- [references/recipes/1password.md](references/recipes/1password.md) — reading a vault the user has unlocked+- [references/owned-engine/README.md](references/owned-engine/README.md) — the code-driven enginediff --git a/plugins/omo/skills/browser/agents/openai.yaml b/plugins/omo/skills/browser/agents/openai.yamlnew file mode 100644index 00000000..10ab2715--- /dev/null+++ b/plugins/omo/skills/browser/agents/openai.yaml@@ -0,0 +1,2 @@+interface:+ display_name: "(OmO) browser"\ No newline at end of filediff --git a/plugins/omo/skills/browser/references/commands.md b/plugins/omo/skills/browser/references/commands.mdnew file mode 100644index 00000000..0bd400f9--- /dev/null+++ b/plugins/omo/skills/browser/references/commands.md@@ -0,0 +1,90 @@+# Command semantics++Everything here cost a failed attempt to learn. Read it before improvising.++## Sessions++```bash+bsk session start --json --no-focus --name "<task>" # keep session_id+bsk session list+bsk session stop <id> --json # positional id, not --session+```++Every session-scoped command needs `--session <id>`. `--no-focus` keeps the Agent Window from+stealing focus; drop it only when the user is watching on purpose.++## Reading++| Command | Returns |+|---|---|+| `observe --session <id>` | semantic tree with `@eN` refs and perception probes — **the default read** |+| `snapshot --session <id>` | static accessibility tree |+| `get-html --session <id>` | exact markup, hidden metadata |+| `screenshot --session <id> --out <path>` | PNG; add `--full-page` for a long capture |+| `evaluate "<js>" --session <id> --json` | `{ok, value}` — **check `.ok`; exit code 0 does not mean the script succeeded** |+| `console` / `network` | buffered log lines and responses |++**Refs are reissued by every `observe` and `snapshot`.** Read a ref and act on it in the same+cycle. A ref captured two calls ago silently addresses a different element — this is how a click+lands on the neighbouring row.++`observe --max-tokens <n>` bounds a large page. There is no default cap.++## Acting++| Need | Command |+|---|---|+| Click | `click @e3 --session <id>` |+| Fill | `fill @e3 --value "text" --session <id>` |+| Select | `select @e3 --value "<option value>" --session <id>` |+| Key | `press Enter --ref @e3 --session <id>` |+| Hover | `hover @e3 --session <id>` |+| Scroll into view | `scroll-to @e3 --session <id>` |+| Wheel | `wheel --delta-y 600 --session <id>` |+| Focus / blur | `focus @e3` / `blur @e3` |+| Upload / download | `upload --file <path>` / `download --out <path>` |++Traps:++- `select` takes the option's **value attribute**, not its visible label.+- `fill` and `click` accept a CSS selector; **`press --ref` does not** — it answers+ `ref_not_found` for a selector. `press` without `--ref` goes to the focused node.+- A menu that a `click` opens can be toggled shut by that same click. `focus` then+ `press Enter` opens it reliably.+- Hover-only controls report `element not visible`: hover the trigger, observe, then act on the+ revealed item's fresh ref. Markers like `[has-submenu]` and `[expanded]` identify triggers;+ `observe --probe-hover` finds one when no marker does, at the cost of touching the live page.+- The clipboard is unavailable in a window started `--no-focus` (no document focus), so read+ values out of the DOM instead.++## Borrowing a user tab++```bash+bsk tab list --scope user+bsk tab borrow <tab-id>+bsk tab return <tab-id>+```++Borrowing asks the user to confirm. Never invent a tab id, never repeat a denied borrow, and+always return what you borrowed (`session stop` also returns them).++## Failures++| Symptom | Meaning | Response |+|---|---|---|+| `browsers: []` | extension not connected | ask the user to open the browser / enable the extension |+| daemon missing | idle exit or reboot | none; the next call restarts it |+| `cdp_failed: Cannot access a chrome-extension:// URL of different extension` | another extension injected a frame, so the debugger cannot attach to that tab | transient and page-specific; collapse the work into one `evaluate` and retry, or navigate away and back |+| `permission_denied: element not visible` | hover-gated or clipped control | drive its menu instead |+| `ref_not_found` | stale ref, or a selector passed to `press` | observe again; use a real ref |+| version skew warning | CLI and extension disagree | `bsk update` after finishing sessions; the extension updates through its store |++**Two identical failures select a different approach. A third identical attempt is a defect.**++## Sandboxed hosts++If the host kills background children after each command, the daemon cannot survive between calls.+Set `BSK_AUTO_START=0`, share one `BSK_HOME` across every call, and start+`bsk daemon start --foreground` in the host's persistent background task. Check readiness with+`bsk status --json` in a separate call before continuing. Do not loop on launches, delete runtime+files, or restart a daemon another task is using.diff --git a/plugins/omo/skills/browser/references/install.md b/plugins/omo/skills/browser/references/install.mdnew file mode 100644index 00000000..b52c8c4e--- /dev/null+++ b/plugins/omo/skills/browser/references/install.md@@ -0,0 +1,71 @@+# Installing the attached engine++Three pieces. The agent can install exactly one of them.++| Piece | Channel | Automatable |+|---|---|---|+| `bsk` CLI + daemon | upstream installer, GitHub Releases | **yes** |+| Browser extension | Chrome Web Store / Edge Add-ons | **no — a human clicks Install** |+| Daemon process | auto-starts on any `bsk` call | nothing to do |++## Supported++| | |+|---|---|+| Operating systems | macOS (Apple Silicon and Intel), Linux (x64, ARM64), Windows x64 |+| Browsers | Chrome, Microsoft Edge. Other Chromium browsers work where they accept store builds. |++## 1. The CLI++```bash+node "<skill-root>/scripts/browser-install.mjs"+```++That wraps upstream's official installer:++```bash+# macOS / Linux+curl -fsSL https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.sh | sh+export PATH="${BSK_INSTALL_DIR:-$HOME/.local/bin}:$PATH"++# Windows (PowerShell)+irm https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.ps1 | iex+```++The Unix installer cannot change its parent shell's `PATH`. A shell opened before the install may+still miss it, so either re-export in each call or use the absolute path (`$HOME/.local/bin/bsk`,+`bsk.exe` on Windows). Verify with `bsk --version`.++## 2. The extension++Give the user the listing for their browser and wait:++- Chrome: https://chromewebstore.google.com/detail/hhcmgoofomhgciiibhipgmgkgnoenaoi+- Edge: https://microsoftedge.microsoft.com/addons/detail/browserskill/emacgiaaaiojkkpkddmmdfhmokgmnikg++Then confirm it landed:++```bash+bsk status --json # a non-empty "browsers" array means connected+```++An empty `browsers` list is not a failure to work around. Either the browser is closed or the+extension is not enabled; say which and ask.++## 3. Do not install upstream's skill++Upstream ships its own agent skill through `bsk install-skill`. **Do not run it here.** This+package already provides the skill, and upstream's copy installs under a different name into the+user skill directory, which takes precedence over a shipped skill — two descriptions of the same+CLI, one of them shadowing the one that knows about this package's recipes and helper scripts.++## Diagnosing++```bash+node "<skill-root>/scripts/browser-doctor.mjs" # this package's view+bsk doctor # upstream's own checks+bsk logs # daemon log+```++The daemon exits about ten minutes after the last browser disconnects and is not a system service,+so a reboot also stops it. Both heal on the next `bsk` call — no repair needed.diff --git a/plugins/omo/skills/browser/references/owned-engine/README.md b/plugins/omo/skills/browser/references/owned-engine/README.mdnew file mode 100644index 00000000..35fedce9--- /dev/null+++ b/plugins/omo/skills/browser/references/owned-engine/README.md@@ -0,0 +1,42 @@+# The owned engine++A browser **your code launches and owns**, driven over CDP, with its own profile. The opposite of+the attached engine: no user logins, full control.++**This package ships no such engine.** These documents describe the contract and the technique, so+that a locally installed CDP library — or a script you write against one — is driven correctly.+If no owned engine is installed, say so and stay on the attached engine.++## When it is the right engine++| Reason | Why the attached engine cannot |+|---|---|+| A throwaway or pinned synthetic profile | the attached engine is the user's real profile |+| Bot-scoring or fingerprint evasion | you do not get to configure the user's browser |+| Solving a challenge widget programmatically | needs coordinate control and OCR |+| Reading the network instead of the DOM | needs request interception on your own target |+| A QA flight trace (steps, HAR, screenshots) | recording someone's real session is not acceptable |++For anything that needs the user's login, the attached engine wins. For extracting text from a+blocked URL, neither: use the `ultimate-browsing` skill.++## What an owned engine must give you++1. A transport that opens no listening port (launch over a pipe), or an explicit local CDP endpoint.+2. An accessibility snapshot with stable in-page refs, and a **compact** form that drops the ref+ map before the tree reaches a model — on a real page that map is roughly half the bytes and the+ client never reads it.+3. Locators that resolve those refs in-page, including refs inside cross-origin frames.+4. Coordinate input, for what locators cannot address.+5. A dialog policy, so `alert` / `confirm` / `beforeunload` can never block a run.++## Reference++- [ladder.md](ladder.md) — the escalation ladder, viewport pinning, coordinate control, challenge widgets+- [network.md](network.md) — read the network instead of the DOM; traces and request interception+- [frames-and-humans.md](frames-and-humans.md) — cross-origin frames, overlays, dialogs, human handoff++## Cleanup is paired++Close the browser and remove the profile directory in the same `finally`. A profile left behind is+a logged-in browser nobody is watching.diff --git a/plugins/omo/skills/browser/references/owned-engine/frames-and-humans.md b/plugins/omo/skills/browser/references/owned-engine/frames-and-humans.mdnew file mode 100644index 00000000..e1231e69--- /dev/null+++ b/plugins/omo/skills/browser/references/owned-engine/frames-and-humans.md@@ -0,0 +1,39 @@+# Frames, overlays, dialogs, and the human++## Cross-origin frames and shadow DOM++A cross-origin iframe is a separate target with its own snapshot. Reconcile the child trees into+the parent so one tree describes the whole page, and address child elements through the page-level+ref — never by fetching a frame handle first. Shadow roots are traversed by the snapshot engine;+they are not a special case for you.++## Overlays that swallow clicks++Two identical misses on an element that is clearly visible usually means something invisible sits+on top: a consent banner, a modal backdrop, a sticky header, a full-viewport tracking layer.+Describe the layers at the click point before you retry. Either the overlay is named — dismiss it+and continue — or nothing is reported, which means the miss has another cause and you climb the+ladder instead.++## Dialogs never block++`alert`, `confirm`, `prompt`, and `beforeunload` must be answered by a policy set when the+browser is created, not by a listener you hope registers in time. Default to accepting+(`confirm` true, `prompt` empty). A run that hangs on an unhandled dialog looks exactly like a+hang with no cause, which is the most expensive kind to diagnose.++## Device emulation++Emulating a device is viewport plus user agent plus touch, applied together. Changing only the+viewport produces a desktop page at a phone size, which is not what you are testing. Re-read the+viewport after emulating, and re-pin coordinates.++## Handing the page to a human++When every rung fails on a login, a one-time code, or a challenge you cannot clear, the human is+the fallback, not the failure. Bring the tab to the front, state plainly what needs doing, and+wait on a **condition** — the URL changed, the element appeared — with a bounded timeout, rather+than on a fixed delay.++Respect the answer. A cancelled or timed-out handoff is a stop, and the correct response is to+report which rung failed with what evidence. Working around the user's refusal is never correct.diff --git a/plugins/omo/skills/browser/references/owned-engine/ladder.md b/plugins/omo/skills/browser/references/owned-engine/ladder.mdnew file mode 100644index 00000000..75f133eb--- /dev/null+++ b/plugins/omo/skills/browser/references/owned-engine/ladder.md@@ -0,0 +1,59 @@+# The escalation ladder++**Two identical failures on the same target mean climb, not retry. A third identical attempt is a+defect.** The failure itself selects the next rung; never pause to ask which.++| Rung | Use | Climb when |+|---|---|---|+| 1. snapshot + locator(ref) | anything with a usable ref | the ref is absent, stale, obscured, or the click lands on the wrong node twice |+| 1b. layer description | a blocking overlay explains two identical misses | no overlay is reported, or it is gone and the click still misses |+| 2. coordinates | canvas, extension popups, custom controls, drag surfaces | the click misses, or the screenshot and the coordinates disagree |+| 3. pin the viewport, redo rung 2 | coordinate drift after a resize, a DPI change, or a foreign tab | coordinates land correctly but the widget still refuses input |+| 4. the challenge widget | a challenge is the blocker | it clears and the flow still stalls |+| 5. read the browser log | a browser-level failure | the log names a cause outside the page |++**Rung 5 ends in a written diagnosis, never a speculative code change.** A missing entitlement, a+dead extension service worker, an unavailable authenticator — none of those is fixed by editing+automation code.++## Pin the viewport before trusting any coordinate++Coordinate input acts in viewport pixels. When the render surface and the coordinate space+disagree, every coordinate is off by the same constant and retrying just repeats the miss. Set the+device metrics explicitly (width, height, `deviceScaleFactor`, and a matching viewport), re-read+the page's viewport size, then take a **fresh** screenshot. Coordinates read off an unpinned+screenshot are stale. Pin every page you act on, including tabs you did not open.++## Refs++- Refs die on every new snapshot. Pass a ref straight from the latest snapshot; never reuse one+ across snapshots and never put one in a CSS selector.+- Refs stay page-level. A child-frame ref still resolves through the page, so you never fetch a+ frame handle to click inside an iframe.+- Always compact a snapshot before sending it to a model.++## Challenge widgets++A challenge is an obstacle on the path, not a stop sign: clear it, confirm it cleared, continue.+Three shapes, three techniques:++- **Checkbox** (the common embedded widgets): the control lives in a nested frame, so address it+ by viewport coordinates.+- **Slider / puzzle**: drag along a path with enough intermediate steps that the motion reads as+ human. Raise the step count before you change the endpoints.+- **Text or number**: OCR the region. On macOS the system vision framework is the cheapest+ accurate option; elsewhere pass your own OCR function or a vision model.+- **Image grid**: annotate a screenshot, then click per cell.++**Bounds measured against an unpinned viewport are wrong by a constant offset.** If clicks have+been landing wrong, drop to rung 3 first, then re-read the bounds.++Verify with a fresh snapshot that the challenge is gone. Verification is part of the action, not a+separate optimistic assumption.++## Delegating the pixel loop++Coordinate work and challenge solving are iterative: screenshot, reason, act, verify. When that+loop would consume your own context, delegate the blocked page to a subagent armed with these+references and have it return the post-solve state. Drive it yourself when the flow is short or+the state is already in your hands.diff --git a/plugins/omo/skills/browser/references/owned-engine/network.md b/plugins/omo/skills/browser/references/owned-engine/network.mdnew file mode 100644index 00000000..314d7564--- /dev/null+++ b/plugins/omo/skills/browser/references/owned-engine/network.md@@ -0,0 +1,42 @@+# Read the network, not the DOM++When a page renders a list, a table, or search results, the data almost always arrived as JSON one+request earlier. That JSON is complete, typed, free of markup, and immune to the layout changing+next week. Watching traffic costs nothing on a target you own, and the page cannot observe it.++**Snoop before you scrape.** Scroll-and-parse is the fallback, not the default.++## Wait for a request, never for a clock++A fixed sleep is a guess that fails on a slower machine and wastes time on a faster one. Subscribe+to the response you expect **before** triggering the action, then await that signal with a bounded+timeout. This is the same rule that governs test code, for the same reason.++## Collecting through infinite scroll++Drive scroll and extraction as a generator: scroll, collect what is new, stop on a target count or+a scroll ceiling. Bound both, so a page that keeps producing cannot run forever.++## Flight traces++For QA evidence, record a trace: one entry per step with before/after screenshots, the network+log, and console output, written as a line-delimited log plus an HAR. That triple is what makes a+failure reconstructable afterwards instead of re-runnable-in-theory.++Cap recorded body sizes. An untrimmed trace of a media-heavy page is mostly bytes nobody reads.++## Request interception++Route matching by glob, regular expression, or predicate lets you stub an endpoint, fail one+request to test an error path, or block third-party noise. Enable interception on the first route+and disable it on dispose — leaving it on slows every later navigation.++## Cookies++Injecting a cookie export into your own profile is legitimate for ordinary sessions and useless+for the ones you most want: accounts whose risk engines bind a session to a device will invalidate+it, and a password manager's session is tab-bound and never portable. Sanitize what you do inject+(drop expired entries, keep host-prefixed cookies secure and root-scoped).++**Never copy a session out of the user's real browser profile.** If you need their login, that is+the attached engine's job.diff --git a/plugins/omo/skills/browser/references/recipes/1password.md b/plugins/omo/skills/browser/references/recipes/1password.mdnew file mode 100644index 00000000..51182f93--- /dev/null+++ b/plugins/omo/skills/browser/references/recipes/1password.md@@ -0,0 +1,59 @@+# Reading a 1Password vault the user has unlocked++Scope: reading an item out of a vault **the user has already unlocked in their browser**. Signing+in is the user's job; see "Not in scope" below.++## The fact that shapes everything++1Password web is zero-knowledge. The unlocked vault key lives in **one tab's `sessionStorage`**,+not in a cookie. So:++- A **new** tab pointed at the vault redirects to the sign-in page even while a signed-in tab sits+ right beside it. Opening your own tab does not work and never will.+- Navigating the authenticated tab away, or closing it, **destroys the session** until a human+ signs in again.++Therefore: borrow the existing tab, read, return it. Do not open, do not navigate away, do not+"refresh to fix" anything.++```bash+bsk tab list --scope user # find the already-signed-in tab+bsk tab borrow <tab-id>+# ... read ...+bsk tab return <tab-id>+```++## Check liveness by URL, never by title++The app mutates its URL hash without updating the document title, so a signed-in vault can still+report a sign-in title. A live session's `location.href` contains the app path and never the+sign-in path. Read the URL.++## The browser may be shared++Other automation may be driving the same window.++- **Clear the search box before typing.** It often holds someone else's query, and typing alone+ appends to it, returning confident results for the wrong search.+- **Read the autocomplete listbox, not the results grid.** The grid holds whatever query was last+ committed, possibly by another actor. Scraping every option on the page silently merges two+ different searches.+- **Leave the tab on the item list** when you are done, so the next actor starts clean.++## If it is locked++```bash+bsk request-help --session <id> --prompt "Please unlock 1Password in this tab, then continue."+```++Then observe again.++## Not in scope++- **Do not type a master password, and do not automate the sign-in form.** Only the account owner+ signs in. If the vault is locked, hand it to them.+- **Do not extract secrets through the page** beyond the single value the user asked for, and+ report it masked (`abcd…9fb0 (len 37)`) unless they asked for the exact string.+- **Do not copy, inject, or reuse session cookies.** The session is device- and tab-bound; cookie+ reuse cannot work and trips account protections.+- Clear the clipboard if you ever populate it.diff --git a/plugins/omo/skills/browser/references/remote.md b/plugins/omo/skills/browser/references/remote.mdnew file mode 100644index 00000000..8033e80f--- /dev/null+++ b/plugins/omo/skills/browser/references/remote.md@@ -0,0 +1,24 @@+# Agent here, browser there++The agent and the browser do not have to be the same machine. Upstream supports this directly;+nothing in this package needs to bridge it.++Shape:++- The **browser machine** needs only the extension.+- The **agent machine** runs the `bsk` CLI and this skill.+- They are joined by a daemon in server mode plus a pairing link.++```bash+bsk daemon start --mode server # on the machine the agent runs on+```++Then follow upstream's pairing guide, which owns the current flag surface and the TLS+prerequisites: https://github.com/Tencent/BrowserSkill/blob/main/docs/remote-extension-connection.md++Once paired, every command in `commands.md` behaves identically; `--out` paths still resolve on+the machine that ran the command.++If pairing is not configured, say so and ask. Do not substitute a browser on the agent machine:+the point of the attached engine is the sessions that live in the user's browser, and a local+browser has none of them.diff --git a/plugins/omo/skills/browser/scripts/browser-doctor.mjs b/plugins/omo/skills/browser/scripts/browser-doctor.mjsnew file mode 100755index 00000000..864b2a68--- /dev/null+++ b/plugins/omo/skills/browser/scripts/browser-doctor.mjs@@ -0,0 +1,41 @@+#!/usr/bin/env node+import { platform } from "node:os"+import { connectedBrowsers, readStatus, resolveCli, STORE_LISTINGS, SUPPORTED_PLATFORMS } from "./browser-env.mjs"++const REMEDIES = {+ ready: "Start a session: bsk session start --json --no-focus --name \"<task>\"",+ "no-extension": `Ask the user to install and enable the extension, then re-run this doctor.\n Chrome: ${STORE_LISTINGS.chrome}\n Edge: ${STORE_LISTINGS.edge}`,+ "no-cli": "Install the CLI: node \"<skill-root>/scripts/browser-install.mjs\", then re-run this doctor.",+ "no-browser-support": "This platform has no supported browser. Say so and stop; do not substitute another engine.",+}++async function diagnose() {+ if (!SUPPORTED_PLATFORMS.has(platform())) {+ return { state: "no-browser-support", platform: platform() }+ }+ const cli = await resolveCli()+ if (cli === undefined) return { state: "no-cli", platform: platform() }++ let status+ try {+ status = await readStatus(cli)+ } catch (error) {+ return { state: "no-extension", platform: platform(), cli, detail: `status failed: ${error.message}` }+ }+ const browsers = connectedBrowsers(status)+ if (browsers.length === 0) return { state: "no-extension", platform: platform(), cli }+ return { state: "ready", platform: platform(), cli, browsers: browsers.length }+}++const report = await diagnose()+const json = process.argv.includes("--json")+if (json) {+ console.log(JSON.stringify({ ...report, remedy: REMEDIES[report.state] }, null, 2))+} else {+ console.log(`state: ${report.state}`)+ if (report.cli) console.log(`cli: ${report.cli}`)+ if (report.browsers) console.log(`browsers connected: ${report.browsers}`)+ if (report.detail) console.log(`detail: ${report.detail}`)+ console.log(`\n${REMEDIES[report.state]}`)+}+process.exit(report.state === "ready" ? 0 : 1)diff --git a/plugins/omo/skills/browser/scripts/browser-env.mjs b/plugins/omo/skills/browser/scripts/browser-env.mjsnew file mode 100644index 00000000..b3598ff1--- /dev/null+++ b/plugins/omo/skills/browser/scripts/browser-env.mjs@@ -0,0 +1,41 @@+import { execFile } from "node:child_process"+import { existsSync } from "node:fs"+import { homedir, platform } from "node:os"+import { join } from "node:path"+import { promisify } from "node:util"++const run = promisify(execFile)++export const STORE_LISTINGS = {+ chrome: "https://chromewebstore.google.com/detail/hhcmgoofomhgciiibhipgmgkgnoenaoi",+ edge: "https://microsoftedge.microsoft.com/addons/detail/browserskill/emacgiaaaiojkkpkddmmdfhmokgmnikg",+}++export const SUPPORTED_PLATFORMS = new Set(["darwin", "linux", "win32"])++export function localBinCandidates() {+ const bin = join(homedir(), ".local", "bin")+ return platform() === "win32" ? [join(bin, "bsk.exe"), join(bin, "bsk")] : [join(bin, "bsk")]+}++export async function resolveCli() {+ for (const candidate of localBinCandidates()) {+ if (existsSync(candidate)) return candidate+ }+ try {+ await run("bsk", ["--version"], { timeout: 15000, windowsHide: true })+ return "bsk"+ } catch {+ return undefined+ }+}++export async function readStatus(cli) {+ const { stdout } = await run(cli, ["status", "--json"], { timeout: 30000, windowsHide: true })+ return JSON.parse(stdout)+}++export function connectedBrowsers(status) {+ const browsers = status?.browsers+ return Array.isArray(browsers) ? browsers : []+}diff --git a/plugins/omo/skills/browser/scripts/browser-install.mjs b/plugins/omo/skills/browser/scripts/browser-install.mjsnew file mode 100755index 00000000..d7e49ef5--- /dev/null+++ b/plugins/omo/skills/browser/scripts/browser-install.mjs@@ -0,0 +1,51 @@+#!/usr/bin/env node+import { spawn } from "node:child_process"+import { platform } from "node:os"+import { resolveCli, STORE_LISTINGS, SUPPORTED_PLATFORMS } from "./browser-env.mjs"++const UNIX_INSTALL = "curl -fsSL https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.sh | sh"+const WINDOWS_INSTALL = "irm https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.ps1 | iex"++function installCommand() {+ return platform() === "win32"+ ? { file: "powershell", args: ["-NoProfile", "-Command", WINDOWS_INSTALL], display: WINDOWS_INSTALL }+ : { file: "sh", args: ["-c", UNIX_INSTALL], display: UNIX_INSTALL }+}++function spawnInstaller({ file, args }) {+ return new Promise((resolve) => {+ const child = spawn(file, args, { stdio: "inherit", windowsHide: true })+ child.on("error", () => resolve(1))+ child.on("close", (code) => resolve(code ?? 1))+ })+}++if (!SUPPORTED_PLATFORMS.has(platform())) {+ console.error(`unsupported platform: ${platform()}. macOS, Linux and Windows x64 only.`)+ process.exit(1)+}++if (await resolveCli()) {+ console.log("bsk is already installed; run browser-doctor.mjs to check the extension.")+ process.exit(0)+}++const command = installCommand()+console.log(`installing the bsk CLI with the upstream installer:\n ${command.display}\n`)+const code = await spawnInstaller(command)+if (code !== 0) {+ console.error(`\ninstaller exited ${code}. Report this instead of retrying blindly.`)+ process.exit(code)+}++console.log([+ "",+ "CLI installed. Two things remain, and only the user can do the first:",+ "",+ "1. Install the browser extension from the store, then enable it:",+ ` Chrome: ${STORE_LISTINGS.chrome}`,+ ` Edge: ${STORE_LISTINGS.edge}`,+ "2. Re-run: node \"<skill-root>/scripts/browser-doctor.mjs\"",+ "",+ "If PATH does not pick up the CLI in this shell, use its absolute path under ~/.local/bin.",+].join("\n"))diff --git a/plugins/omo/test/sync-skills-test-support.mjs b/plugins/omo/test/sync-skills-test-support.mjsindex 5226a2b2..6657c014 100644--- a/plugins/omo/test/sync-skills-test-support.mjs+++ b/plugins/omo/test/sync-skills-test-support.mjs@@ -6,6 +6,7 @@ export const CONTEXT_PRESSURE_SKILL_BUDGET_BYTES = 25_000;export const expectedSkills = ["ast-grep",+ "browser","coding-agent-sessions","comment-checker","data-scientist",