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.80
github-actions[bot]1372b0124688
diff --git a/plugins/omo/.codex-plugin/plugin.json b/plugins/omo/.codex-plugin/plugin.jsonindex 9ae8437b..e5ceb96f 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.79",+ "version": "5.0.0-beta.80","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 38fb7ecb..19d78d30 100755--- a/plugins/omo/components/bootstrap/dist/cli.js+++ b/plugins/omo/components/bootstrap/dist/cli.js@@ -6324,6 +6324,62 @@ var OmoConfigLayerSchema = object({legacy_migrations: record(string2(), unknown()).optional()}).strict();+// ../../omo-config-core/src/schema/legacy-category-names.ts+var LEGACY_CATEGORY_NAME_ALIASES = { deep: "deep-low" };+function canonicalCategoryName(name) {+ return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] : name;+}+function isRecord7(value) {+ return typeof value === "object" && value !== null && !Array.isArray(value);+}+function joinPath(path, segment) {+ return [...path, segment].join(".");+}+function canonicalizeCategoriesRecord(categories, path, renames) {+ const result = {};+ for (const [name, definition] of Object.entries(categories)) {+ const canonical = canonicalCategoryName(name);+ if (canonical === name) {+ result[name] = definition;+ continue;+ }+ const dropped = Object.hasOwn(categories, canonical);+ renames.push({ canonical, dropped, legacy: name, path: joinPath(path, name) });+ if (!dropped)+ result[canonical] = definition;+ }+ return result;+}+function canonicalizeValue(value, path, renames) {+ if (Array.isArray(value)) {+ return value.map((entry, index) => canonicalizeValue(entry, [...path, String(index)], renames));+ }+ if (!isRecord7(value))+ return value;+ const result = {};+ for (const [key, entry] of Object.entries(value)) {+ if (key === "categories" && isRecord7(entry)) {+ result[key] = canonicalizeCategoriesRecord(entry, [...path, key], renames);+ continue;+ }+ if (key === "category" && typeof entry === "string") {+ const canonical = canonicalCategoryName(entry);+ if (canonical !== entry) {+ renames.push({ canonical, dropped: false, legacy: entry, path: joinPath(path, key) });+ }+ result[key] = canonical;+ continue;+ }+ result[key] = canonicalizeValue(entry, [...path, key], renames);+ }+ return result;+}+function canonicalizeLegacyCategoryNames(document) {+ const renames = [];+ const canonicalized = isRecord7(document) ? canonicalizeValue(document, [], renames) : {};+ 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;@@ -7404,21 +7460,21 @@ function hasUnsafeUnrecognizedKey(issues) {function hasTamperedPrototype(value) {if (Array.isArray(value))return value.some((entry) => hasTamperedPrototype(entry));- if (!isRecord7(value))+ if (!isRecord8(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 isRecord7(value) {+function isRecord8(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 (!isRecord7(next))+ if (!isRecord8(next))return null;container = next;}@@ -7520,6 +7576,15 @@ function readConfigSource(path, scope, fileSystem) {value: parsedRecord};}+function legacyCategoryDiagnostic(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 category name 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();@@ -7538,8 +7603,12 @@ function loadOmoConfig(options = {}) {if (loaded.diagnostic !== undefined)diagnostics.push(loaded.diagnostic);if (loaded.value !== undefined) {- layers.push({ config: loaded.value, source: loaded.source });- merged = mergeOmoConfigRecords(merged, loaded.value);+ const canonicalized = canonicalizeLegacyCategoryNames(loaded.value);+ 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 requestedProfile = resolveOmoProfileName({@@ -9943,10 +10012,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {} catch {return null;}- if (!isRecord8(cache) || !Array.isArray(cache.models))+ if (!isRecord9(cache) || !Array.isArray(cache.models))return null;for (const entry of cache.models) {- if (!isRecord8(entry))+ if (!isRecord9(entry))continue;if (entry.slug !== model && entry.id !== model)continue;@@ -9971,7 +10040,7 @@ function readRootModelCatalogPath(config) {const single = config.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);return single?.[1] ?? null;}-function isRecord8(value) {+function isRecord9(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 8dbab0bb..5a161258 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.79) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.0.0-beta.80) Checking Bootstrap Provisioning"}]}diff --git a/plugins/omo/components/bootstrap/package.json b/plugins/omo/components/bootstrap/package.jsonindex feab3004..e883921f 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.79",+ "version": "5.0.0-beta.80","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 61f75501..d618a693 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.79) Checking Comments"+ "statusMessage": "(OmO 5.0.0-beta.80) Checking Comments"}]}diff --git a/plugins/omo/components/comment-checker/package.json b/plugins/omo/components/comment-checker/package.jsonindex 44892bea..ee121584 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.79",+ "version": "5.0.0-beta.80","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 f881bd99..a69aa1d5 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.79) Recommending Git Bash MCP"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Resetting Git Bash MCP Reminder"+ "statusMessage": "(OmO 5.0.0-beta.80) Resetting Git Bash MCP Reminder"}]}diff --git a/plugins/omo/components/git-bash/package.json b/plugins/omo/components/git-bash/package.jsonindex f8a5b83c..dd285e14 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.79",+ "version": "5.0.0-beta.80","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 aa5a7059..f93049e8 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.79) Verifying LazyCodex Executor Evidence"+ "statusMessage": "(OmO 5.0.0-beta.80) Verifying LazyCodex Executor Evidence"}]}diff --git a/plugins/omo/components/lazycodex-executor-verify/package.json b/plugins/omo/components/lazycodex-executor-verify/package.jsonindex c6ccc243..f9bcfd14 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.79",+ "version": "5.0.0-beta.80","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 207355e5..ba3e68e7 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.79",- "inputDigest": "sha256:c10bd7c4d3913d06bae405da9f17c403a05149395ed411cda87414740e5fef38",+ "version": "5.0.0-beta.80",+ "inputDigest": "sha256:4c3ae4939cef82bfbc66b27a58b66f2585d1ca4520dd51f0b3e42540270af7ae","outputs": [{"path": "cli.d.ts",diff --git a/plugins/omo/components/lsp/hooks/hooks.json b/plugins/omo/components/lsp/hooks/hooks.jsonindex 1752a3f3..f8ceb4ef 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.79) Checking LSP Diagnostics"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Resetting LSP Diagnostics Cache"+ "statusMessage": "(OmO 5.0.0-beta.80) Resetting LSP Diagnostics Cache"}]}diff --git a/plugins/omo/components/lsp/package.json b/plugins/omo/components/lsp/package.jsonindex e1f36ce8..33d659ec 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.79",+ "version": "5.0.0-beta.80","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 122553b1..134745b5 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.79) Loading Project Rules"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Loading Project Rules"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Matching Project Rules"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Resetting Project Rule Cache"+ "statusMessage": "(OmO 5.0.0-beta.80) Resetting Project Rule Cache"}]}diff --git a/plugins/omo/components/rules/package.json b/plugins/omo/components/rules/package.jsonindex 1b1aa8ea..70850aef 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.79",+ "version": "5.0.0-beta.80","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 083c4afa..b2dcbbb5 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.79) Checking Thread Title Hygiene"+ "statusMessage": "(OmO 5.0.0-beta.80) Checking Thread Title Hygiene"}]}diff --git a/plugins/omo/components/teammode/package.json b/plugins/omo/components/teammode/package.jsonindex 9f43d6a7..3bb12f01 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.79",+ "version": "5.0.0-beta.80","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/dist/cli.js b/plugins/omo/components/telemetry/dist/cli.jsindex 80f101d6..ae7d4299 100755--- a/plugins/omo/components/telemetry/dist/cli.js+++ b/plugins/omo/components/telemetry/dist/cli.js@@ -4,8 +4,8 @@import { stdin as processStdin, stdout as processStdout } from "node:process";// ../../telemetry-core/src/activity-state.ts-import { existsSync, mkdirSync as mkdirSync2, readFileSync } from "node:fs";-import { basename, join } from "node:path";+import { existsSync, mkdirSync as mkdirSync3, readFileSync } from "node:fs";+import { basename, join as join2 } from "node:path";// ../../utils/src/atomic-write.tsimport {@@ -97,36 +97,82 @@ function resolveWritableDirectory(preferredDir, fallbackSuffix, osProvider) {}}+// ../../telemetry-core/src/day-claim.ts+import { closeSync as closeSync2, mkdirSync as mkdirSync2, openSync as openSync2, readdirSync, rmSync as rmSync2 } from "node:fs";+import { join } from "node:path";+var CLAIM_PREFIX = "daily-active.";+var CLAIM_SUFFIX = ".claim";+function getTelemetryDayClaimFilePath(stateDir, dayUTC) {+ return join(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);+}+function claimUtcDay(stateDir, dayUTC) {+ try {+ mkdirSync2(stateDir, { recursive: true });+ closeSync2(openSync2(getTelemetryDayClaimFilePath(stateDir, dayUTC), "wx"));+ } catch (error) {+ return error.code === "EEXIST" ? "already-claimed" : "unavailable";+ }+ pruneSupersededClaims(stateDir, dayUTC);+ return "claimed";+}+function pruneSupersededClaims(stateDir, dayUTC) {+ const currentClaim = `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`;+ let entries;+ try {+ entries = readdirSync(stateDir);+ } catch {+ return;+ }+ for (const entry of entries) {+ if (entry === currentClaim)+ continue;+ if (!entry.startsWith(CLAIM_PREFIX) || !entry.endsWith(CLAIM_SUFFIX))+ continue;+ try {+ rmSync2(join(stateDir, entry), { force: true });+ } catch {}+ }+}+// ../../telemetry-core/src/activity-state.tsvar POSTHOG_ACTIVITY_STATE_FILE = "posthog-activity.json";+var capturedDaysByStateDir = new Map;function resolveTelemetryStateDir(product, options = {}) {const dataDir = resolveXdgDataDir(product.cacheDirName, {env: options.env,osProvider: options.osProvider});- const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join(options.env.XDG_DATA_HOME, product.cacheDirName);+ const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join2(options.env.XDG_DATA_HOME, product.cacheDirName);if (dataDir === xdgStateDir || xdgStateDir === undefined && basename(dataDir) === product.cacheDirName) {return dataDir;}- return join(dataDir, product.cacheDirName);+ return join2(dataDir, product.cacheDirName);}function getTelemetryActivityStateFilePath(stateDir) {- return join(stateDir, POSTHOG_ACTIVITY_STATE_FILE);+ return join2(stateDir, POSTHOG_ACTIVITY_STATE_FILE);}function getDailyActiveCaptureState(input) {- const state = readPostHogActivityState(input.stateDir, input.diagnostics);const dayUTC = getUtcDayString(input.now ?? new Date);- const captureDaily = state.lastActiveDayUTC !== dayUTC;- if (captureDaily) {+ if (capturedDaysByStateDir.get(input.stateDir) === dayUTC) {+ return { dayUTC, captureDaily: false };+ }+ const state = readPostHogActivityState(input.stateDir, input.diagnostics);+ if (state.lastActiveDayUTC === dayUTC) {+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ return { dayUTC, captureDaily: false };+ }+ const claim = claimUtcDay(input.stateDir, dayUTC);+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ if (claim === "already-claimed") {+ return { dayUTC, captureDaily: false };+ }+ if (claim === "claimed") {writePostHogActivityState(input.stateDir, {...state,lastActiveDayUTC: dayUTC}, input.diagnostics);}- return {- dayUTC,- captureDaily- };+ return { dayUTC, captureDaily: true };}function getUtcDayString(date) {return date.toISOString().slice(0, 10);@@ -159,7 +205,7 @@ function readPostHogActivityState(stateDir, diagnostics) {function writePostHogActivityState(stateDir, nextState, diagnostics) {const stateFilePath = getTelemetryActivityStateFilePath(stateDir);try {- mkdirSync2(stateDir, { recursive: true });+ mkdirSync3(stateDir, { recursive: true });writeFileAtomically(stateFilePath, `${JSON.stringify(nextState, null, 2)}`);} catch (error) {@@ -178,19 +224,19 @@ var DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74"var UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";// ../../telemetry-core/src/diagnostics.ts-import { appendFileSync, existsSync as existsSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";-import { join as join2 } from "node:path";+import { appendFileSync, existsSync as existsSync2, mkdirSync as mkdirSync4, readFileSync as readFileSync2 } from "node:fs";+import { join as join3 } from "node:path";var DIAGNOSTICS_FILE_NAME = "telemetry-diagnostics.jsonl";var DIAGNOSTICS_RETENTION_MS = 7 * 24 * 60 * 60 * 1000;var DIAGNOSTICS_MAX_BYTES = 256 * 1024;function getTelemetryDiagnosticsFilePath(diagnosticsDir) {- return join2(diagnosticsDir, DIAGNOSTICS_FILE_NAME);+ return join3(diagnosticsDir, DIAGNOSTICS_FILE_NAME);}function writeTelemetryDiagnostic(input, options) {const now = options.now ?? new Date;try {cleanupTelemetryDiagnostics({ diagnosticsDir: options.diagnosticsDir, now });- mkdirSync3(options.diagnosticsDir, { recursive: true });+ mkdirSync4(options.diagnosticsDir, { recursive: true });appendFileSync(getTelemetryDiagnosticsFilePath(options.diagnosticsDir), `${JSON.stringify(toDiagnosticRecord(input, now))}`, "utf-8");} catch (error) {diff --git a/plugins/omo/components/telemetry/dist/posthog.js b/plugins/omo/components/telemetry/dist/posthog.jsindex 6d9f681a..903bc031 100644--- a/plugins/omo/components/telemetry/dist/posthog.js+++ b/plugins/omo/components/telemetry/dist/posthog.js@@ -1,6 +1,6 @@// ../../../../telemetry-core/src/activity-state.ts-import { existsSync, mkdirSync as mkdirSync2, readFileSync } from "node:fs";-import { basename, join } from "node:path";+import { existsSync, mkdirSync as mkdirSync3, readFileSync } from "node:fs";+import { basename, join as join2 } from "node:path";// ../../../../utils/src/atomic-write.tsimport {@@ -92,36 +92,82 @@ function resolveWritableDirectory(preferredDir, fallbackSuffix, osProvider) {}}+// ../../../../telemetry-core/src/day-claim.ts+import { closeSync as closeSync2, mkdirSync as mkdirSync2, openSync as openSync2, readdirSync, rmSync as rmSync2 } from "node:fs";+import { join } from "node:path";+var CLAIM_PREFIX = "daily-active.";+var CLAIM_SUFFIX = ".claim";+function getTelemetryDayClaimFilePath(stateDir, dayUTC) {+ return join(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);+}+function claimUtcDay(stateDir, dayUTC) {+ try {+ mkdirSync2(stateDir, { recursive: true });+ closeSync2(openSync2(getTelemetryDayClaimFilePath(stateDir, dayUTC), "wx"));+ } catch (error) {+ return error.code === "EEXIST" ? "already-claimed" : "unavailable";+ }+ pruneSupersededClaims(stateDir, dayUTC);+ return "claimed";+}+function pruneSupersededClaims(stateDir, dayUTC) {+ const currentClaim = `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`;+ let entries;+ try {+ entries = readdirSync(stateDir);+ } catch {+ return;+ }+ for (const entry of entries) {+ if (entry === currentClaim)+ continue;+ if (!entry.startsWith(CLAIM_PREFIX) || !entry.endsWith(CLAIM_SUFFIX))+ continue;+ try {+ rmSync2(join(stateDir, entry), { force: true });+ } catch {}+ }+}+// ../../../../telemetry-core/src/activity-state.tsvar POSTHOG_ACTIVITY_STATE_FILE = "posthog-activity.json";+var capturedDaysByStateDir = new Map;function resolveTelemetryStateDir(product, options = {}) {const dataDir = resolveXdgDataDir(product.cacheDirName, {env: options.env,osProvider: options.osProvider});- const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join(options.env.XDG_DATA_HOME, product.cacheDirName);+ const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join2(options.env.XDG_DATA_HOME, product.cacheDirName);if (dataDir === xdgStateDir || xdgStateDir === undefined && basename(dataDir) === product.cacheDirName) {return dataDir;}- return join(dataDir, product.cacheDirName);+ return join2(dataDir, product.cacheDirName);}function getTelemetryActivityStateFilePath(stateDir) {- return join(stateDir, POSTHOG_ACTIVITY_STATE_FILE);+ return join2(stateDir, POSTHOG_ACTIVITY_STATE_FILE);}function getDailyActiveCaptureState(input) {- const state = readPostHogActivityState(input.stateDir, input.diagnostics);const dayUTC = getUtcDayString(input.now ?? new Date);- const captureDaily = state.lastActiveDayUTC !== dayUTC;- if (captureDaily) {+ if (capturedDaysByStateDir.get(input.stateDir) === dayUTC) {+ return { dayUTC, captureDaily: false };+ }+ const state = readPostHogActivityState(input.stateDir, input.diagnostics);+ if (state.lastActiveDayUTC === dayUTC) {+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ return { dayUTC, captureDaily: false };+ }+ const claim = claimUtcDay(input.stateDir, dayUTC);+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ if (claim === "already-claimed") {+ return { dayUTC, captureDaily: false };+ }+ if (claim === "claimed") {writePostHogActivityState(input.stateDir, {...state,lastActiveDayUTC: dayUTC}, input.diagnostics);}- return {- dayUTC,- captureDaily- };+ return { dayUTC, captureDaily: true };}function getUtcDayString(date) {return date.toISOString().slice(0, 10);@@ -154,7 +200,7 @@ function readPostHogActivityState(stateDir, diagnostics) {function writePostHogActivityState(stateDir, nextState, diagnostics) {const stateFilePath = getTelemetryActivityStateFilePath(stateDir);try {- mkdirSync2(stateDir, { recursive: true });+ mkdirSync3(stateDir, { recursive: true });writeFileAtomically(stateFilePath, `${JSON.stringify(nextState, null, 2)}`);} catch (error) {@@ -173,19 +219,19 @@ var DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74"var UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";// ../../../../telemetry-core/src/diagnostics.ts-import { appendFileSync, existsSync as existsSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";-import { join as join2 } from "node:path";+import { appendFileSync, existsSync as existsSync2, mkdirSync as mkdirSync4, readFileSync as readFileSync2 } from "node:fs";+import { join as join3 } from "node:path";var DIAGNOSTICS_FILE_NAME = "telemetry-diagnostics.jsonl";var DIAGNOSTICS_RETENTION_MS = 7 * 24 * 60 * 60 * 1000;var DIAGNOSTICS_MAX_BYTES = 256 * 1024;function getTelemetryDiagnosticsFilePath(diagnosticsDir) {- return join2(diagnosticsDir, DIAGNOSTICS_FILE_NAME);+ return join3(diagnosticsDir, DIAGNOSTICS_FILE_NAME);}function writeTelemetryDiagnostic(input, options) {const now = options.now ?? new Date;try {cleanupTelemetryDiagnostics({ diagnosticsDir: options.diagnosticsDir, now });- mkdirSync3(options.diagnosticsDir, { recursive: true });+ mkdirSync4(options.diagnosticsDir, { recursive: true });appendFileSync(getTelemetryDiagnosticsFilePath(options.diagnosticsDir), `${JSON.stringify(toDiagnosticRecord(input, now))}`, "utf-8");} catch (error) {diff --git a/plugins/omo/components/telemetry/hooks/hooks.json b/plugins/omo/components/telemetry/hooks/hooks.jsonindex fbeb2746..002a912e 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.79) Recording Session Telemetry"+ "statusMessage": "(OmO 5.0.0-beta.80) Recording Session Telemetry"}]}diff --git a/plugins/omo/components/telemetry/package.json b/plugins/omo/components/telemetry/package.jsonindex 4fe62384..8fc5bfdc 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.79",+ "version": "5.0.0-beta.80","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 5788aa7a..3236366c 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.79) Checking Ultrawork Trigger"+ "statusMessage": "(OmO 5.0.0-beta.80) Checking Ultrawork Trigger"}]}diff --git a/plugins/omo/components/ultrawork/package.json b/plugins/omo/components/ultrawork/package.jsonindex f624caed..45e530af 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.79",+ "version": "5.0.0-beta.80","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/ultrawork/skills/ulw-plan/references/full-workflow.md b/plugins/omo/components/ultrawork/skills/ulw-plan/references/full-workflow.mdindex 8ed36d75..c5718aa4 100644--- a/plugins/omo/components/ultrawork/skills/ulw-plan/references/full-workflow.md+++ b/plugins/omo/components/ultrawork/skills/ulw-plan/references/full-workflow.md@@ -154,7 +154,7 @@ No Metis, no plan file, no execution until the user approves. The UNCLEAR path a## Commit strategy## Success criteria```-> Target 5-8 todos per wave; fewer than 3 (except the final) means under-splitting. Implementation + Test = ONE todo. Each todo carries: exhaustive References (the executor has no interview context), agent-executable Acceptance criteria, happy + failure QA scenarios each with an evidence path, a Commit line, and a `Recommended task executor category:` line - the routing verdict the executor follows, with a one-line reason, in the omo category vocabulary: `quick` (mechanical / single-file - the default for every splittable piece), `unspecified-low` (small misc), `unspecified-high` (standard multi-file feature), `visual-engineering` (frontend/UI), `writing` (docs), `git` (git ops), `deep` (hairy debugging or cross-module reasoning), `ultrabrain` (ONE genuinely hard cohesive problem, delegated whole). Prefer many small `quick`-routable todos spread across parallel waves; when splitting would sever shared reasoning, keep ONE todo routed to `deep`/`ultrabrain` - never force-split work whose parts share one insight. Harnesses without categories map by difficulty: quick/unspecified-low/writing/git = low, unspecified-high/visual-engineering = medium, deep/ultrabrain = high.+> Target 5-8 todos per wave; fewer than 3 (except the final) means under-splitting. Implementation + Test = ONE todo. Each todo carries: exhaustive References (the executor has no interview context), agent-executable Acceptance criteria, happy + failure QA scenarios each with an evidence path, a Commit line, and a `Recommended task executor category:` line - the routing verdict the executor follows, with a one-line reason, in the omo category vocabulary: `quick` (mechanical / single-file - the default for every splittable piece), `unspecified-low` (small misc), `unspecified-high` (standard multi-file feature), `visual-engineering` (frontend/UI), `writing` (docs), `git` (git ops), `deep-low` (hairy debugging or cross-module reasoning the worker can settle from what it reads), `deep-high` (the same, when the central decision cannot be settled from evidence: a trade-off, a cross-package contract, or correctness argued from invariants), `ultrabrain` (ONE genuinely hard cohesive problem, delegated whole). Prefer many small `quick`-routable todos spread across parallel waves; when splitting would sever shared reasoning, keep ONE todo routed to `deep`/`ultrabrain` - never force-split work whose parts share one insight. Harnesses without categories map by difficulty: quick/unspecified-low/writing/git = low, unspecified-high/visual-engineering = medium, deep/ultrabrain = high.## Plan artifact producer contractdiff --git a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.jsonindex 53a05590..6fa4e4dc 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.79) Checking Ulw-Execute Continuation"+ "statusMessage": "(OmO 5.0.0-beta.80) Checking Ulw-Execute Continuation"}]}diff --git a/plugins/omo/components/ulw-execute-continuation/package.json b/plugins/omo/components/ulw-execute-continuation/package.jsonindex 7919238c..ae412a96 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.79",+ "version": "5.0.0-beta.80","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/checkpoint-template.js b/plugins/omo/components/ulw-loop/dist/checkpoint-template.jsindex e5bb7703..a2ee9087 100644--- a/plugins/omo/components/ulw-loop/dist/checkpoint-template.js+++ b/plugins/omo/components/ulw-loop/dist/checkpoint-template.js@@ -58,7 +58,7 @@ function gateTemplate(surface, base) {const common = {manualQa,gateReview: {- by: surface === "omo-senpi" ? "category:deep" : "main-session",+ by: surface === "omo-senpi" ? "category:deep-high" : "main-session",recommendation: "APPROVE",reportPath: artifactPath(base, "gate-review.md"),evidence: "<replace:gate review evidence>",@@ -95,10 +95,10 @@ export async function checkpointTemplate(repoRoot, scope, goalId, dependencies)"codex-goal-json requires goal.objective to equal the plan's codexObjective verbatim; do not paraphrase it.","Fill every <replace:...> value with plausible non-empty evidence and use real, non-empty artifact files.",'Passing codex-goal-json example: {"goal":{"objective":"<plan codexObjective verbatim>","status":"complete"}}.',- 'Passing quality-gate-json example requires gateReview {"by":"category:deep","recommendation":"APPROVE","evidence":"review passed","reportPath":"<attemptDir>/gate-review.md","blockers":[],"notes":[]}, manualQa.artifactRefs objects, iteration, and criteriaCoverage.',+ 'Passing quality-gate-json example requires gateReview {"by":"category:deep-high","recommendation":"APPROVE","evidence":"review passed","reportPath":"<attemptDir>/gate-review.md","blockers":[],"notes":[]}, manualQa.artifactRefs objects, iteration, and criteriaCoverage.',...(surface === "lazycodex"? [- "Self-review defaults: manualQa.by and gateReview.by are main-session. Alternatives: manualQa.by accepts lazycodex-qa-executor; gateReview.by accepts lazycodex-gate-reviewer, category:deep, category:unspecified-high, or category:unspecified-low. Optional codeReview.by accepts lazycodex-code-reviewer or main-session.",+ "Self-review defaults: manualQa.by and gateReview.by are main-session. Alternatives: manualQa.by accepts lazycodex-qa-executor; gateReview.by accepts lazycodex-gate-reviewer, category:deep-high, category:deep-low, category:unspecified-high, or category:unspecified-low. Optional codeReview.by accepts lazycodex-code-reviewer or main-session.",]: []),...(hasAttempt ? [] : ["This plan is evidence-layout v1; artifacts go under .omo/evidence/."]),diff --git a/plugins/omo/components/ulw-loop/dist/cli.js b/plugins/omo/components/ulw-loop/dist/cli.jsindex fdd29f3d..3e9b7181 100644--- a/plugins/omo/components/ulw-loop/dist/cli.js+++ b/plugins/omo/components/ulw-loop/dist/cli.js@@ -1382,6 +1382,8 @@ var GATE_SECTION_BY_ACCEPTOR = {manualQa: [REVIEWER_ROLES_BY_SURFACE.lazycodex.manualQa, "main-session"],gateReview: [REVIEWER_ROLES_BY_SURFACE.lazycodex.gateReview,+ "category:deep-high",+ "category:deep-low","category:deep","category:unspecified-high","category:unspecified-low",@@ -1390,7 +1392,13 @@ var GATE_SECTION_BY_ACCEPTOR = {},"omo-senpi": {manualQa: ["main-session"],- gateReview: ["category:deep", "category:unspecified-high", "category:unspecified-low"]+ gateReview: [+ "category:deep-high",+ "category:deep-low",+ "category:deep",+ "category:unspecified-high",+ "category:unspecified-low"+ ]}};function reviewerRolesFor(surface) {@@ -2058,7 +2066,7 @@ function gateTemplate(surface, base) {const common = {manualQa,gateReview: {- by: surface === "omo-senpi" ? "category:deep" : "main-session",+ by: surface === "omo-senpi" ? "category:deep-high" : "main-session",recommendation: "APPROVE",reportPath: artifactPath(base, "gate-review.md"),evidence: "<replace:gate review evidence>",@@ -2095,9 +2103,9 @@ async function checkpointTemplate(repoRoot, scope, goalId, dependencies) {"codex-goal-json requires goal.objective to equal the plan's codexObjective verbatim; do not paraphrase it.","Fill every <replace:...> value with plausible non-empty evidence and use real, non-empty artifact files.",'Passing codex-goal-json example: {"goal":{"objective":"<plan codexObjective verbatim>","status":"complete"}}.',- 'Passing quality-gate-json example requires gateReview {"by":"category:deep","recommendation":"APPROVE","evidence":"review passed","reportPath":"<attemptDir>/gate-review.md","blockers":[],"notes":[]}, manualQa.artifactRefs objects, iteration, and criteriaCoverage.',+ 'Passing quality-gate-json example requires gateReview {"by":"category:deep-high","recommendation":"APPROVE","evidence":"review passed","reportPath":"<attemptDir>/gate-review.md","blockers":[],"notes":[]}, manualQa.artifactRefs objects, iteration, and criteriaCoverage.',...surface === "lazycodex" ? [- "Self-review defaults: manualQa.by and gateReview.by are main-session. Alternatives: manualQa.by accepts lazycodex-qa-executor; gateReview.by accepts lazycodex-gate-reviewer, category:deep, category:unspecified-high, or category:unspecified-low. Optional codeReview.by accepts lazycodex-code-reviewer or main-session."+ "Self-review defaults: manualQa.by and gateReview.by are main-session. Alternatives: manualQa.by accepts lazycodex-qa-executor; gateReview.by accepts lazycodex-gate-reviewer, category:deep-high, category:deep-low, category:unspecified-high, or category:unspecified-low. Optional codeReview.by accepts lazycodex-code-reviewer or main-session."] : [],...hasAttempt ? [] : ["This plan is evidence-layout v1; artifacts go under .omo/evidence/."]].join(" ");@@ -2311,8 +2319,8 @@ function senpiFinalSection(plan, goal, aggregate) {return joinLines(["Final story — run the single-reviewer quality gate before update_goal:",'- Run manual QA yourself and write the non-empty artifact under currentAttemptDir; set manualQa.by to "main-session".',- '- Spawn exactly one gate reviewer with task(category: "deep").',- "- If that task fails with any model_unavailable failure, retry with category:unspecified-high, then category:unspecified-low.",+ '- Spawn exactly one gate reviewer with task(category: "deep-high").',+ "- If that task fails with any model_unavailable failure, retry with category:deep-low, then category:unspecified-high, then category:unspecified-low.","- Set gateReview.by to the exact category:<name> literal used for the successful task.","- Build the gate JSON with omo-agent-toolkit ulw-loop checkpoint --print-template, then fill manualQa, gateReview, iteration, and criteriaCoverage.",'- Require passed manualQa, approved gateReview, passed iteration, and complete criteriaCoverage before update_goal({status: "complete"}).',diff --git a/plugins/omo/components/ulw-loop/dist/codex-goal-instruction.js b/plugins/omo/components/ulw-loop/dist/codex-goal-instruction.jsindex ba832405..620abbd3 100644--- a/plugins/omo/components/ulw-loop/dist/codex-goal-instruction.js+++ b/plugins/omo/components/ulw-loop/dist/codex-goal-instruction.js@@ -113,8 +113,8 @@ function senpiFinalSection(plan, goal, aggregate) {return joinLines(["Final story — run the single-reviewer quality gate before update_goal:","- Run manual QA yourself and write the non-empty artifact under currentAttemptDir; set manualQa.by to \"main-session\".",- '- Spawn exactly one gate reviewer with task(category: "deep").',- "- If that task fails with any model_unavailable failure, retry with category:unspecified-high, then category:unspecified-low.",+ '- Spawn exactly one gate reviewer with task(category: "deep-high").',+ "- If that task fails with any model_unavailable failure, retry with category:deep-low, then category:unspecified-high, then category:unspecified-low.",'- Set gateReview.by to the exact category:<name> literal used for the successful task.','- Build the gate JSON with omo-agent-toolkit ulw-loop checkpoint --print-template, then fill manualQa, gateReview, iteration, and criteriaCoverage.','- Require passed manualQa, approved gateReview, passed iteration, and complete criteriaCoverage before update_goal({status: "complete"}).',diff --git a/plugins/omo/components/ulw-loop/dist/surface.js b/plugins/omo/components/ulw-loop/dist/surface.jsindex 6b283123..3d686193 100644--- a/plugins/omo/components/ulw-loop/dist/surface.js+++ b/plugins/omo/components/ulw-loop/dist/surface.js@@ -28,6 +28,8 @@ export const GATE_SECTION_BY_ACCEPTOR = {manualQa: [REVIEWER_ROLES_BY_SURFACE.lazycodex.manualQa, "main-session"],gateReview: [REVIEWER_ROLES_BY_SURFACE.lazycodex.gateReview,+ "category:deep-high",+ "category:deep-low","category:deep","category:unspecified-high","category:unspecified-low",@@ -36,7 +38,13 @@ export const GATE_SECTION_BY_ACCEPTOR = {},"omo-senpi": {manualQa: ["main-session"],- gateReview: ["category:deep", "category:unspecified-high", "category:unspecified-low"],+ gateReview: [+ "category:deep-high",+ "category:deep-low",+ "category:deep",+ "category:unspecified-high",+ "category:unspecified-low",+ ],},};export function reviewerRolesFor(surface) {diff --git a/plugins/omo/components/ulw-loop/hooks/hooks.json b/plugins/omo/components/ulw-loop/hooks/hooks.jsonindex 4b93792e..ccd788a1 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.79) Checking Ulw-Loop Steering"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Recording Spawn Admission"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Enforcing Unlimited Ulw-Loop Budget"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Guarding Ulw-Loop Spawns"+ "statusMessage": "(OmO 5.0.0-beta.80) 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.79) Checking Ulw-Loop Resume"+ "statusMessage": "(OmO 5.0.0-beta.80) Checking Ulw-Loop Resume"}]}diff --git a/plugins/omo/components/ulw-loop/package.json b/plugins/omo/components/ulw-loop/package.jsonindex 101ab064..de42e157 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.79",+ "version": "5.0.0-beta.80","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/checkpoint-template.ts b/plugins/omo/components/ulw-loop/src/checkpoint-template.tsindex e795c4b8..e394587a 100644--- a/plugins/omo/components/ulw-loop/src/checkpoint-template.ts+++ b/plugins/omo/components/ulw-loop/src/checkpoint-template.ts@@ -72,7 +72,7 @@ function gateTemplate(surface: UlwLoopToolkitSurface, base: string): Record<striconst common = {manualQa,gateReview: {- by: surface === "omo-senpi" ? "category:deep" : "main-session",+ by: surface === "omo-senpi" ? "category:deep-high" : "main-session",recommendation: "APPROVE",reportPath: artifactPath(base, "gate-review.md"),evidence: "<replace:gate review evidence>",@@ -115,10 +115,10 @@ export async function checkpointTemplate("codex-goal-json requires goal.objective to equal the plan's codexObjective verbatim; do not paraphrase it.","Fill every <replace:...> value with plausible non-empty evidence and use real, non-empty artifact files.",'Passing codex-goal-json example: {"goal":{"objective":"<plan codexObjective verbatim>","status":"complete"}}.',- 'Passing quality-gate-json example requires gateReview {"by":"category:deep","recommendation":"APPROVE","evidence":"review passed","reportPath":"<attemptDir>/gate-review.md","blockers":[],"notes":[]}, manualQa.artifactRefs objects, iteration, and criteriaCoverage.',+ 'Passing quality-gate-json example requires gateReview {"by":"category:deep-high","recommendation":"APPROVE","evidence":"review passed","reportPath":"<attemptDir>/gate-review.md","blockers":[],"notes":[]}, manualQa.artifactRefs objects, iteration, and criteriaCoverage.',...(surface === "lazycodex"? [- "Self-review defaults: manualQa.by and gateReview.by are main-session. Alternatives: manualQa.by accepts lazycodex-qa-executor; gateReview.by accepts lazycodex-gate-reviewer, category:deep, category:unspecified-high, or category:unspecified-low. Optional codeReview.by accepts lazycodex-code-reviewer or main-session.",+ "Self-review defaults: manualQa.by and gateReview.by are main-session. Alternatives: manualQa.by accepts lazycodex-qa-executor; gateReview.by accepts lazycodex-gate-reviewer, category:deep-high, category:deep-low, category:unspecified-high, or category:unspecified-low. Optional codeReview.by accepts lazycodex-code-reviewer or main-session.",]: []),...(hasAttempt ? [] : ["This plan is evidence-layout v1; artifacts go under .omo/evidence/."]),diff --git a/plugins/omo/components/ulw-loop/src/codex-goal-instruction.ts b/plugins/omo/components/ulw-loop/src/codex-goal-instruction.tsindex 75d88c57..d6f961ff 100644--- a/plugins/omo/components/ulw-loop/src/codex-goal-instruction.ts+++ b/plugins/omo/components/ulw-loop/src/codex-goal-instruction.ts@@ -153,8 +153,8 @@ function senpiFinalSection(plan: UlwLoopPlan, goal: UlwLoopItem, aggregate: boolreturn joinLines(["Final story — run the single-reviewer quality gate before update_goal:","- Run manual QA yourself and write the non-empty artifact under currentAttemptDir; set manualQa.by to \"main-session\".",- '- Spawn exactly one gate reviewer with task(category: "deep").',- "- If that task fails with any model_unavailable failure, retry with category:unspecified-high, then category:unspecified-low.",+ '- Spawn exactly one gate reviewer with task(category: "deep-high").',+ "- If that task fails with any model_unavailable failure, retry with category:deep-low, then category:unspecified-high, then category:unspecified-low.",'- Set gateReview.by to the exact category:<name> literal used for the successful task.','- Build the gate JSON with omo-agent-toolkit ulw-loop checkpoint --print-template, then fill manualQa, gateReview, iteration, and criteriaCoverage.','- Require passed manualQa, approved gateReview, passed iteration, and complete criteriaCoverage before update_goal({status: "complete"}).',diff --git a/plugins/omo/components/ulw-loop/src/surface.ts b/plugins/omo/components/ulw-loop/src/surface.tsindex 39350307..3cea1207 100644--- a/plugins/omo/components/ulw-loop/src/surface.ts+++ b/plugins/omo/components/ulw-loop/src/surface.ts@@ -54,6 +54,8 @@ export const GATE_SECTION_BY_ACCEPTOR: Readonly<manualQa: [REVIEWER_ROLES_BY_SURFACE.lazycodex.manualQa, "main-session"],gateReview: [REVIEWER_ROLES_BY_SURFACE.lazycodex.gateReview,+ "category:deep-high",+ "category:deep-low","category:deep","category:unspecified-high","category:unspecified-low",@@ -62,7 +64,13 @@ export const GATE_SECTION_BY_ACCEPTOR: Readonly<},"omo-senpi": {manualQa: ["main-session"],- gateReview: ["category:deep", "category:unspecified-high", "category:unspecified-low"],+ gateReview: [+ "category:deep-high",+ "category:deep-low",+ "category:deep",+ "category:unspecified-high",+ "category:unspecified-low",+ ],},};diff --git a/plugins/omo/components/ulw-loop/test/checkpoint-template.test.ts b/plugins/omo/components/ulw-loop/test/checkpoint-template.test.tsindex bd1a1414..78ab1718 100644--- a/plugins/omo/components/ulw-loop/test/checkpoint-template.test.ts+++ b/plugins/omo/components/ulw-loop/test/checkpoint-template.test.ts@@ -100,7 +100,7 @@ describe("checkpoint --print-template", () => {const gate = result["qualityGateTemplate"] as Record<string, unknown>;expect(Object.keys(gate)).toEqual(["manualQa", "gateReview", "iteration", "criteriaCoverage"]);expect((gate["manualQa"] as Record<string, unknown>)["by"]).toBe("main-session");- expect((gate["gateReview"] as Record<string, unknown>)["by"]).toBe("category:deep");+ expect((gate["gateReview"] as Record<string, unknown>)["by"]).toBe("category:deep-high");expect(result["codexGoalTemplate"]).toEqual({goal: { objective: "Exact objective from goals.json", status: "complete" },});diff --git a/plugins/omo/components/ulw-loop/test/codex-goal-instruction.test.ts b/plugins/omo/components/ulw-loop/test/codex-goal-instruction.test.tsindex c5349ee5..3dd1f200 100644--- a/plugins/omo/components/ulw-loop/test/codex-goal-instruction.test.ts+++ b/plugins/omo/components/ulw-loop/test/codex-goal-instruction.test.ts@@ -105,7 +105,7 @@ describe("buildCodexGoalInstruction aggregate mode", () => {expectTextToContainAll(text, ["main-session",- 'category: "deep"',+ 'category: "deep-high"',"unspecified-high","unspecified-low","gateReview.by",diff --git a/plugins/omo/components/ulw-loop/test/sdk-contract.test.ts b/plugins/omo/components/ulw-loop/test/sdk-contract.test.tsindex 60ab4abb..8a6953cb 100644--- a/plugins/omo/components/ulw-loop/test/sdk-contract.test.ts+++ b/plugins/omo/components/ulw-loop/test/sdk-contract.test.ts@@ -50,7 +50,7 @@ describe("agent toolkit SDK contract", () => {if (!("qualityGateTemplate" in template.result)) return;expect(template.result.qualityGateTemplate["manualQa"]).toMatchObject({ by: "main-session" });expect(template.result.qualityGateTemplate["gateReview"]).toMatchObject({- by: surface === "omo-senpi" ? "category:deep" : "main-session",+ by: surface === "omo-senpi" ? "category:deep-high" : "main-session",});} finally {await rm(cwd, { recursive: true, force: true });diff --git a/plugins/omo/dist/cli-node/index.js b/plugins/omo/dist/cli-node/index.jsindex 39a1b0ac..5f083ed7 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.79",+ version: "5.0.0-beta.80",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.4.3"},devDependencies: {- "@code-yeongyu/senpi": "2026.9.19-2",+ "@code-yeongyu/senpi": "2026.9.20","@oh-my-opencode/agents-md-core": "workspace:*","@oh-my-opencode/ast-grep-mcp": "workspace:*","@oh-my-opencode/boulder-state": "workspace:*",@@ -286,18 +286,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.0.0-beta.79",- "oh-my-opencode-darwin-x64": "5.0.0-beta.79",- "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.79",- "oh-my-opencode-linux-arm64": "5.0.0-beta.79",- "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.79",- "oh-my-opencode-linux-x64": "5.0.0-beta.79",- "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.79",- "oh-my-opencode-linux-x64-musl": "5.0.0-beta.79",- "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.79",- "oh-my-opencode-windows-arm64": "5.0.0-beta.79",- "oh-my-opencode-windows-x64": "5.0.0-beta.79",- "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.79"+ "oh-my-opencode-darwin-arm64": "5.0.0-beta.80",+ "oh-my-opencode-darwin-x64": "5.0.0-beta.80",+ "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.80",+ "oh-my-opencode-linux-arm64": "5.0.0-beta.80",+ "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64-musl": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.80",+ "oh-my-opencode-windows-arm64": "5.0.0-beta.80",+ "oh-my-opencode-windows-x64": "5.0.0-beta.80",+ "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.80"},overrides: {"@earendil-works/pi-agent-core": "0.84.2",@@ -7244,13 +7244,8 @@ var init_category_model_requirements = __esm(() => {{ providers: ["openai", "openai-codex", "opencode"], model: "gpt-5.6-sol", variant: "max" }]},- deep: {+ "deep-low": {fallbackChain: [- {- providers: ["openai", "openai-codex", "github-copilot", "opencode"],- model: "gpt-6-astra",- variant: "high"- },{providers: ["openai", "openai-codex", "github-copilot", "opencode"],model: "gpt-5.6-sol",@@ -7258,6 +7253,15 @@ var init_category_model_requirements = __esm(() => {}]},+ "deep-high": {+ fallbackChain: [+ {+ providers: ["openai", "openai-codex", "github-copilot", "opencode"],+ model: "gpt-6-astra",+ variant: "high"+ }+ ]+ },artistry: {fallbackChain: [{@@ -7344,12 +7348,17 @@ var init_category_model_requirements = __esm(() => {{providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],model: "claude-fable-5-1",- variant: "medium"+ variant: "low"},{providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode"],model: "kimi-k3",- variant: "max"+ variant: "low"+ },+ {+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],+ model: "claude-opus-4-6",+ variant: "low"}]}@@ -8992,7 +9001,7 @@ var init_kimi_categories = __esm(() => {KIMI_CATEGORIES = [{name: "writing",- config: { model: "anthropic/claude-fable-5-1", variant: "medium" },+ config: { model: "anthropic/claude-fable-5-1", variant: "low" },description: "Documentation, prose, technical writing",promptAppend: WRITING_CATEGORY_PROMPT_APPEND}@@ -9018,20 +9027,20 @@ function isGpt6Model(model) {var init_types = () => {};// packages/omo-opencode/src/tools/delegate-task/openai-categories.ts+function isGptDeepLaneModel(model) {+ return model !== undefined && (isGpt6Model(model) || isGpt5_5Model(model) || isGpt5_6Model(model));+}function resolveUltrabrainCategoryPromptAppend(model) {if (model && isGpt6Model(model)) {return ULTRABRAIN_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA;}return ULTRABRAIN_CATEGORY_PROMPT_APPEND;}-function resolveDeepCategoryPromptAppend(model) {- if (model && isGpt6Model(model)) {- return DEEP_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA;- }- if (model && (isGpt5_5Model(model) || isGpt5_6Model(model))) {- return DEEP_CATEGORY_PROMPT_APPEND_GPT_5_5;- }- return DEEP_CATEGORY_PROMPT_APPEND;+function resolveDeepLowCategoryPromptAppend(model) {+ return isGptDeepLaneModel(model) ? DEEP_LOW_CATEGORY_PROMPT_APPEND_GPT : DEEP_LOW_CATEGORY_PROMPT_APPEND;+}+function resolveDeepHighCategoryPromptAppend(model) {+ return isGptDeepLaneModel(model) ? DEEP_HIGH_CATEGORY_PROMPT_APPEND_GPT : DEEP_HIGH_CATEGORY_PROMPT_APPEND;}function resolveUnspecifiedHighCategoryPromptAppend(model) {if (model && isGpt6Model(model)) {@@ -9050,14 +9059,23 @@ Success means:- one decision-complete recommendation, actionable without a follow-up question.Whatever that check leaves unsettled goes in the answer as an open question with what would settle it. When the goal bundles independent problems, solve the one the others depend on and return the rest as separately delegable items.-</Category_Context>`, DEEP_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA = `<Category_Context name="deep">-The orchestrator routed this task here for depth: one goal, one deliverable, and the time to earn it. The exploration budget is generous: read every file involved, trace callers and dependencies in both directions, and fan out explore and librarian subagents in parallel for the questions a single read wave cannot answer, until you can explain the full mechanism you are about to change; an edit made before that point is the failure this category exists to prevent.--**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**+</Category_Context>`, DEEP_HIGH_CATEGORY_PROMPT_APPEND_GPT = `<Category_Context name="deep-high">+The orchestrator routed this task here because a decision in it cannot be settled from evidence alone: a trade-off, a contract other code depends on, a mechanism with no pattern to copy, or correctness that has to be argued. One goal, one deliverable, and the time to earn it. The exploration budget is generous: read every file involved, trace callers and dependencies in both directions, and fan out explore and librarian subagents in parallel for the questions a single read wave cannot answer, until you can explain the full mechanism you are about to change; an edit made before that point is the failure this category exists to prevent.The goal is the authorization. Choose how to reach it yourself, and when it lists numbered steps or phases, deliver all of them in this turn as one task; a proposal, a plan awaiting approval, a simplified version, or a proof of concept is unfinished work. When the steps turn out to be independent problems sharing no reasoning, do the one the goal centers on and return the others as separately delegable items with what you learned. A question ends your turn and hands the task back unfinished, so decide from context, record each assumption in the final message, and stop early only for a blocker you cannot route around: a missing secret, a decision only the user can make, or three materially different attempts that all failed.-Fix the cause: trace at least two levels above the symptom before settling, and prefer the change that makes the failure impossible over the guard that hides it. Depth means understanding the mechanism, so the diff stays as small as the fix allows; on greenfield work choose strong defaults and finish something you would hand to a senior engineer. Close with the delivered change, the evidence that it works, and the assumptions you made.+Fix the cause: trace at least two levels above the symptom before settling, and prefer the change that makes the failure impossible over the guard that hides it. Depth means understanding the mechanism, so the diff stays as small as the fix allows; on greenfield work choose strong defaults and finish something you would hand to a senior engineer. Close with the delivered change, the evidence that it works, the decision you settled with the alternative you rejected, and the assumptions you made.+</Category_Context>`, DEEP_LOW_CATEGORY_PROMPT_APPEND_GPT = `<Category_Context name="deep-low">+The orchestrator routed this task here as the default deep lane: one goal, one deliverable, decisions that the code, tests, and history can settle. Read until you can explain the mechanism you are about to change, including its callers, then act; fan out explore and librarian subagents when one read wave cannot answer a question.++Success means:+- every step or phase the goal lists is delivered in this turn as one task; a plan awaiting approval, a simplified version, or a proof of concept is unfinished work;+- the change removes the cause you traced, at least two levels above the symptom, with the diff as small as that fix allows;+- the final message reports the change, the evidence that it works, and each assumption you decided from context, because a question ends your turn and returns the task unfinished.++Escalation is a complete result. When the correct choice turns out to depend on a trade-off the brief does not settle, on a contract other packages rely on, or on an argument about invariants you cannot verify by running something, stop before editing and return \`ESCALATE: deep-high\` as the first line, followed by what you read, the decision you could not settle, and the options you saw. A confident guess through that decision costs more than the escalation.++Stop the moment the success criteria hold; work past them is a defect. Stop early only for a blocker you cannot route around: a missing secret, a decision only the user can make, or three materially different attempts that all failed.</Category_Context>`, UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA = `<Category_Context name="unspecified-high">The orchestrator routed this task here because it spans systems or modules and fits no specialist category, so breadth of consideration is what this category buys. Before committing to an approach, survey the whole surface the change touches: every caller and consumer of what you will modify, sibling modules that implement the same pattern, the tests, docs, schemas, config, scripts, and CI that encode the current behavior, and the history of the area (git log and blame) for the reasons it is shaped this way. Fan out explore and librarian subagents in parallel when that surface is wider than one read wave covers.@@ -9082,49 +9100,24 @@ Response format:- Bottom line (2-3 sentences)- Action plan (numbered steps)- Risks and mitigations (if relevant)-</Category_Context>`, DEEP_CATEGORY_PROMPT_APPEND = `<Category_Context>-You are working on GOAL-ORIENTED AUTONOMOUS tasks.--You are NOT an interactive assistant. You are an autonomous problem-solver.--**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**--BEFORE making ANY changes:-1. Silently explore the codebase extensively (5-15 minutes of reading is normal)-2. Read related files, trace dependencies, understand the full context-3. Build a complete mental model of the problem space-4. Do not ask clarifying questions - the goal is already defined--You receive a GOAL. When the goal includes numbered steps or phases, treat them as one atomic task broken into sub-steps, not as separate independent tasks. Figure out HOW to achieve it yourself. Thorough research before any action.--Sub-steps of ONE goal = execute all steps as phases of one atomic task.-Genuinely independent tasks = flag and refuse, require separate delegations.--Approach: explore extensively, understand deeply, then act decisively. Prefer comprehensive solutions over quick patches. If the goal is unclear, make reasonable assumptions and proceed.--Minimal status updates. Focus on results, not play-by-play. Report completion with summary of changes.-</Category_Context>`, DEEP_CATEGORY_PROMPT_APPEND_GPT_5_5 = `<Category_Context name="deep">-You are operating in DEEP mode. This is the category reserved for goal-oriented autonomous work on hairy problems that reward thorough exploration and comprehensive solutions.--**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**--The orchestrator chose this category because the task benefits from depth over speed. You should feel empowered to spend the time needed: five to fifteen minutes of silent exploration before the first edit is normal and correct. Rushing to implementation on a deep task is a failure mode, not a feature.+</Category_Context>`, DEEP_LOW_CATEGORY_PROMPT_APPEND = `<Category_Context name="deep-low">+You are working on a GOAL-ORIENTED AUTONOMOUS task: one goal, one deliverable, decisions the codebase can settle.-# How deep mode adjusts the base behavior+Before any change, read the files involved and trace their dependencies until you can explain the mechanism you are about to modify. The goal is already defined: do not ask clarifying questions; make reasonable assumptions, record them in the final message, and proceed.-**Exploration budget: generous.** Read the files you need, trace dependencies both directions, fire 2-5 explore/librarian sub-agents in parallel for broader questions. Build a complete mental model before the first \`apply_patch\`. Exploration here is an investment, not overhead.+When the goal lists numbered steps or phases, execute all of them in this turn as one atomic task. Genuinely independent tasks bundled into one goal: flag them and do only the one the goal centers on.-**Goal, not plan.** You receive a GOAL describing the desired outcome. You figure out HOW to achieve it. The orchestrator deliberately did not hand you a step-by-step plan; producing one and asking for approval is not what was asked. Execute.+Escalation is a complete result. When the correct choice depends on a trade-off the brief does not settle, a contract other packages rely on, or an argument about invariants you cannot verify by running something, stop before editing and return \`ESCALATE: deep-high\` as the first line, followed by what you read, the decision you could not settle, and the options you saw.-**Atomic task treatment.** When the goal contains numbered steps or phases, treat them as sub-steps of ONE task and execute them all in this turn. Splitting them across turns is wrong unless they reveal an architectural blocker that requires the user's input. If the "steps" turn out to be genuinely independent tasks that should have been separate delegations, flag that in your final message and refuse the ones beyond scope.+Prefer the fix that removes the cause over the patch that hides the symptom. Report completion with the changes made and the evidence they work.+</Category_Context>`, DEEP_HIGH_CATEGORY_PROMPT_APPEND = `<Category_Context name="deep-high">+You are working on a GOAL-ORIENTED AUTONOMOUS task that was escalated here because a decision in it cannot be settled from evidence alone: a trade-off, a contract other code depends on, a mechanism with no pattern to copy, or correctness that has to be argued.-**Root cause bias.** Prefer root-cause fixes over symptom fixes. A null check around \`foo()\` is a symptom fix; fixing whatever causes \`foo()\` to return unexpected values is the root fix. Trace at least two levels up before settling on an answer. In deep mode, you have permission (and the expectation) to do the deeper fix.+Before any change, read the files involved and trace their dependencies until you can explain the mechanism you are about to modify. The goal is already defined: do not ask clarifying questions; make reasonable assumptions, record them in the final message, and proceed.-**Ambition scaled to context.** For brand-new greenfield work, be ambitious. Choose strong defaults, avoid AI-slop aesthetics, produce something you would be proud to hand to another senior engineer. For changes in an existing codebase, be surgical and respect the existing patterns; depth does not mean invasiveness.+When the goal lists numbered steps or phases, execute all of them in this turn as one atomic task. Genuinely independent tasks bundled into one goal: flag them and do only the one the goal centers on.-**Completion bar: full delivery.** "Simplified version", "proof of concept", and "you can extend this later" are not acceptable deliveries for a deep task. The orchestrator routed here specifically for a complete solution. If you hit a genuine blocker (missing secret, design decision only the user can make, three materially different attempts all failed), document it and return; otherwise, finish the task.--**Status cadence: sparse.** The user is not on the other side of this conversation; the orchestrator is, and they will synthesize your progress. Send commentary only at meaningful phase transitions (starting exploration, starting implementation, starting verification, hitting a genuine blocker). Do not narrate every tool call; silence during focused work is expected.+Prefer the fix that removes the cause over the patch that hides the symptom. Report completion with the changes made, the evidence they work, and the decision you settled with the alternative you rejected.</Category_Context>`, QUICK_CATEGORY_PROMPT_APPEND = `<Category_Context>You are working on SMALL / QUICK tasks.@@ -9143,10 +9136,9 @@ You are working on tasks that don't fit specific categories but require moderate</Category_Context>`, UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits, effort is moderate, and scope stays within a few files/modules. Prefer any matching specialist category.</Selection_Gate><Caller_Warning>Provide explicit must-do steps, forbidden scope, and concrete success criteria.</Caller_Warning>`, UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND = `<Category_Context>You are working on tasks that don't fit specific categories but require substantial effort.-</Category_Context>`, UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits and substantial effort spans systems/modules with broad impact. Use unspecified-low for contained moderate work.</Selection_Gate>`, GPT_FLAGSHIP_GATE_MODELS, OPENAI_CATEGORIES;+</Category_Context>`, UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits and substantial effort spans systems/modules with broad impact. Use unspecified-low for contained moderate work.</Selection_Gate>`, DEEP_LOW_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Route here when one subsystem plus its callers holds the mechanism and the evidence, once read, leaves one right answer. Wide but mechanical work belongs here or in a quick batch. When unsure, choose deep-low: a misrouted child returns \`ESCALATE: deep-high\` after one cheap attempt; re-spawn the same brief as deep-high with its findings.</Selection_Gate>`, DEEP_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Route here only when you can name the decision evidence cannot settle: a trade-off with no single right answer, a contract change crossing a package or process boundary, a mechanism with no in-repo pattern to copy, or correctness argued from invariants rather than observed in a test. Wide scope with easy decisions is deep-low or unspecified-high; reasoning as the deliverable is ultrabrain.</Selection_Gate>`, DEEP_LOW_GATE_MODEL = "gpt-5.6-sol", DEEP_HIGH_GATE_MODEL = "gpt-6-astra", OPENAI_CATEGORIES;var init_openai_categories = __esm(() => {init_types();- GPT_FLAGSHIP_GATE_MODELS = ["gpt-6-astra", "gpt-5.6-sol"];OPENAI_CATEGORIES = [{name: "ultrabrain",@@ -9156,12 +9148,22 @@ var init_openai_categories = __esm(() => {resolvePromptAppend: resolveUltrabrainCategoryPromptAppend},{- name: "deep",+ name: "deep-low",+ config: { model: "openai/gpt-5.6-sol", variant: "medium" },+ description: "Default deep lane: one goal, one deliverable, decisions the child can settle from what it reads. **3D graphics, computer/browser use, CAPTCHA, multimodal, backend, logic, and algorithm work is routed here.** Multiple goals fan out as parallel calls.",+ callerGuidance: DEEP_LOW_CATEGORY_CALLER_GUIDANCE,+ promptAppend: DEEP_LOW_CATEGORY_PROMPT_APPEND,+ resolvePromptAppend: resolveDeepLowCategoryPromptAppend,+ requiresModel: DEEP_LOW_GATE_MODEL+ },+ {+ name: "deep-high",config: { model: "openai/gpt-6-astra", variant: "high" },- description: "**MANDATORY: USE deep FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.** Deep autonomous problem-solving for complex research. ONE goal + ONE deliverable per call — multiple goals must fan out as parallel `deep` calls, never bundled into one.",- promptAppend: DEEP_CATEGORY_PROMPT_APPEND,- resolvePromptAppend: resolveDeepCategoryPromptAppend,- requiresModel: GPT_FLAGSHIP_GATE_MODELS+ description: "Escalation deep lane: a goal whose central decision cannot be settled from evidence alone. Same one-goal, one-deliverable contract as deep-low.",+ callerGuidance: DEEP_HIGH_CATEGORY_CALLER_GUIDANCE,+ promptAppend: DEEP_HIGH_CATEGORY_PROMPT_APPEND,+ resolvePromptAppend: resolveDeepHighCategoryPromptAppend,+ requiresModel: DEEP_HIGH_GATE_MODEL},{name: "quick",@@ -73248,6 +73250,68 @@ var init_config = __esm(() => {}).strict();});+// packages/omo-config-core/src/schema/legacy-category-names.ts+function canonicalCategoryName(name) {+ return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] : name;+}+function isRecord9(value) {+ return typeof value === "object" && value !== null && !Array.isArray(value);+}+function joinPath(path, segment) {+ return [...path, segment].join(".");+}+function canonicalizeCategoriesRecord(categories, path, renames) {+ const result = {};+ for (const [name, definition] of Object.entries(categories)) {+ const canonical = canonicalCategoryName(name);+ if (canonical === name) {+ result[name] = definition;+ continue;+ }+ const dropped = Object.hasOwn(categories, canonical);+ renames.push({ canonical, dropped, legacy: name, path: joinPath(path, name) });+ if (!dropped)+ result[canonical] = definition;+ }+ return result;+}+function canonicalizeValue(value, path, renames) {+ if (Array.isArray(value)) {+ return value.map((entry, index) => canonicalizeValue(entry, [...path, String(index)], renames));+ }+ if (!isRecord9(value))+ return value;+ const result = {};+ for (const [key, entry] of Object.entries(value)) {+ if (key === "categories" && isRecord9(entry)) {+ result[key] = canonicalizeCategoriesRecord(entry, [...path, key], renames);+ continue;+ }+ if (key === "category" && typeof entry === "string") {+ const canonical = canonicalCategoryName(entry);+ if (canonical !== entry) {+ renames.push({ canonical, dropped: false, legacy: entry, path: joinPath(path, key) });+ }+ result[key] = canonical;+ continue;+ }+ result[key] = canonicalizeValue(entry, [...path, key], renames);+ }+ return result;+}+function canonicalizeLegacyCategoryNames(document) {+ const renames = [];+ const canonicalized = isRecord9(document) ? canonicalizeValue(document, [], renames) : {};+ return { document: canonicalized, renames };+}+function hasLegacyCategoryNames(document) {+ return canonicalizeLegacyCategoryNames(document).renames.length > 0;+}+var LEGACY_CATEGORY_NAME_ALIASES;+var init_legacy_category_names = __esm(() => {+ LEGACY_CATEGORY_NAME_ALIASES = { deep: "deep-low" };+});+// packages/omo-config-core/src/schema/index.tsvar init_schema = __esm(() => {init_agent();@@ -73257,6 +73321,7 @@ var init_schema = __esm(() => {init_format_on_mutation();init_git_master();init_harness();+ init_legacy_category_names();init_memory();init_model_catalog();init_model_profile();@@ -73516,21 +73581,21 @@ function hasUnsafeUnrecognizedKey(issues) {function hasTamperedPrototype(value) {if (Array.isArray(value))return value.some((entry) => hasTamperedPrototype(entry));- if (!isRecord9(value))+ if (!isRecord10(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 isRecord9(value) {+function isRecord10(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 (!isRecord9(next))+ if (!isRecord10(next))return null;container = next;}@@ -73632,6 +73697,15 @@ function readConfigSource(path, scope, fileSystem) {value: parsedRecord};}+function legacyCategoryDiagnostic(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 category name 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();@@ -73650,8 +73724,12 @@ function loadOmoConfig(options = {}) {if (loaded.diagnostic !== undefined)diagnostics.push(loaded.diagnostic);if (loaded.value !== undefined) {- layers.push({ config: loaded.value, source: loaded.source });- merged = mergeOmoConfigRecords(merged, loaded.value);+ const canonicalized = canonicalizeLegacyCategoryNames(loaded.value);+ 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 requestedProfile = resolveOmoProfileName({@@ -74737,6 +74815,9 @@ function executePlan(input) {const existingSources = plan.sources.filter((source) => fileSystem.existsSync(source.path));const target = targetDocument(plan.targetPath, fileSystem);const replaceTarget = plan.mode === "replace-target";+ if (plan.shouldRun !== undefined && !plan.shouldRun(target)) {+ return { diagnostics: [], journalResumed, status: "skipped" };+ }if (!shouldRunMigration({legacySourcesExist: replaceTarget ? fileSystem.existsSync(plan.targetPath) : existingSources.length > 0,migrationId: plan.id,@@ -76325,6 +76406,19 @@ var init_reasoning_unification = __esm(() => {init_record_values();});+// packages/omo-opencode/src/config-migration/category-deep-split.ts+function transformCategoryDeepSplit(document) {+ const { document: canonicalized, renames } = canonicalizeLegacyCategoryNames(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 CATEGORY_DEEP_SPLIT_MIGRATION_ID = "2026-09-category-deep-split";+var init_category_deep_split = __esm(() => {+ init_src4();+});+// packages/omo-opencode/src/config-migration/migration-plans.tsfunction backupTimestamp(value) {return value ?? new Date().toISOString().replace(/[:.]/g, "-");@@ -76391,6 +76485,18 @@ function reasoningPlan(targetPath) {transform: inspect};}+function categoryDeepSplitPlan(targetPath) {+ const inspect = (sources) => transformCategoryDeepSplit(sources[0]?.value);+ return {+ id: CATEGORY_DEEP_SPLIT_MIGRATION_ID,+ inspect,+ mode: "replace-target",+ shouldRun: hasLegacyCategoryNames,+ sources: [],+ targetPath,+ transform: inspect+ };+}function existingOmoConfigPath(directory, options) {const fileSystem = discoveryFileSystem(options);for (const fileName of ["omo.jsonc", "omo.json"]) {@@ -76450,7 +76556,12 @@ function createLegacyConfigMigrationPlans(options) {}for (const plan of legacyPlans)addReasoningTarget(plan.targetPath);- return [...legacyPlans, ...[...reasoningTargets.values()].map(reasoningPlan)];+ const inPlaceTargets = [...reasoningTargets.values()];+ return [+ ...legacyPlans,+ ...inPlaceTargets.map(reasoningPlan),+ ...inPlaceTargets.map(categoryDeepSplitPlan)+ ];}var init_migration_plans = __esm(() => {init_discovery2();@@ -76459,6 +76570,8 @@ var init_migration_plans = __esm(() => {init_transform_config_jsonc();init_transform_opencode();init_reasoning_unification();+ init_category_deep_split();+ init_src4();});// packages/omo-opencode/src/config-migration/migration-executor.ts@@ -77032,37 +77145,82 @@ var init_config_manager = __esm(() => {init_backup_config();});+// packages/telemetry-core/src/day-claim.ts+import { closeSync as closeSync3, mkdirSync as mkdirSync8, openSync as openSync3, readdirSync as readdirSync7, rmSync as rmSync2 } from "node:fs";+import { join as join51 } from "node:path";+function getTelemetryDayClaimFilePath(stateDir, dayUTC) {+ return join51(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);+}+function claimUtcDay(stateDir, dayUTC) {+ try {+ mkdirSync8(stateDir, { recursive: true });+ closeSync3(openSync3(getTelemetryDayClaimFilePath(stateDir, dayUTC), "wx"));+ } catch (error) {+ return error.code === "EEXIST" ? "already-claimed" : "unavailable";+ }+ pruneSupersededClaims(stateDir, dayUTC);+ return "claimed";+}+function pruneSupersededClaims(stateDir, dayUTC) {+ const currentClaim = `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`;+ let entries;+ try {+ entries = readdirSync7(stateDir);+ } catch {+ return;+ }+ for (const entry of entries) {+ if (entry === currentClaim)+ continue;+ if (!entry.startsWith(CLAIM_PREFIX) || !entry.endsWith(CLAIM_SUFFIX))+ continue;+ try {+ rmSync2(join51(stateDir, entry), { force: true });+ } catch {}+ }+}+var CLAIM_PREFIX = "daily-active.", CLAIM_SUFFIX = ".claim";+var init_day_claim = () => {};+// packages/telemetry-core/src/activity-state.ts-import { existsSync as existsSync24, mkdirSync as mkdirSync8, readFileSync as readFileSync11 } from "node:fs";-import { basename as basename8, join as join51 } from "node:path";+import { existsSync as existsSync24, mkdirSync as mkdirSync9, readFileSync as readFileSync11 } from "node:fs";+import { basename as basename8, join as join52 } from "node:path";function resolveTelemetryStateDir(product, options = {}) {const dataDir = resolveXdgDataDir(product.cacheDirName, {env: options.env,osProvider: options.osProvider});- const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join51(options.env.XDG_DATA_HOME, product.cacheDirName);+ const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join52(options.env.XDG_DATA_HOME, product.cacheDirName);if (dataDir === xdgStateDir || xdgStateDir === undefined && basename8(dataDir) === product.cacheDirName) {return dataDir;}- return join51(dataDir, product.cacheDirName);+ return join52(dataDir, product.cacheDirName);}function getTelemetryActivityStateFilePath(stateDir) {- return join51(stateDir, POSTHOG_ACTIVITY_STATE_FILE);+ return join52(stateDir, POSTHOG_ACTIVITY_STATE_FILE);}function getDailyActiveCaptureState(input) {- const state = readPostHogActivityState(input.stateDir, input.diagnostics);const dayUTC = getUtcDayString(input.now ?? new Date);- const captureDaily = state.lastActiveDayUTC !== dayUTC;- if (captureDaily) {+ if (capturedDaysByStateDir.get(input.stateDir) === dayUTC) {+ return { dayUTC, captureDaily: false };+ }+ const state = readPostHogActivityState(input.stateDir, input.diagnostics);+ if (state.lastActiveDayUTC === dayUTC) {+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ return { dayUTC, captureDaily: false };+ }+ const claim = claimUtcDay(input.stateDir, dayUTC);+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ if (claim === "already-claimed") {+ return { dayUTC, captureDaily: false };+ }+ if (claim === "claimed") {writePostHogActivityState(input.stateDir, {...state,lastActiveDayUTC: dayUTC}, input.diagnostics);}- return {- dayUTC,- captureDaily- };+ return { dayUTC, captureDaily: true };}function getUtcDayString(date) {return date.toISOString().slice(0, 10);@@ -77095,7 +77253,7 @@ function readPostHogActivityState(stateDir, diagnostics) {function writePostHogActivityState(stateDir, nextState, diagnostics) {const stateFilePath = getTelemetryActivityStateFilePath(stateDir);try {- mkdirSync8(stateDir, { recursive: true });+ mkdirSync9(stateDir, { recursive: true });writeFileAtomically(stateFilePath, `${JSON.stringify(nextState, null, 2)}`);} catch (error) {@@ -77107,26 +77265,28 @@ function writePostHogActivityState(stateDir, nextState, diagnostics) {});}}-var POSTHOG_ACTIVITY_STATE_FILE = "posthog-activity.json";+var POSTHOG_ACTIVITY_STATE_FILE = "posthog-activity.json", capturedDaysByStateDir;var init_activity_state = __esm(() => {init_atomic_write();init_xdg_data_dir();+ init_day_claim();+ capturedDaysByStateDir = new Map;});// packages/telemetry-core/src/constants.tsvar DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";// packages/telemetry-core/src/diagnostics.ts-import { appendFileSync as appendFileSync2, existsSync as existsSync25, mkdirSync as mkdirSync9, readFileSync as readFileSync12 } from "node:fs";-import { join as join52 } from "node:path";+import { appendFileSync as appendFileSync2, existsSync as existsSync25, mkdirSync as mkdirSync10, readFileSync as readFileSync12 } from "node:fs";+import { join as join53 } from "node:path";function getTelemetryDiagnosticsFilePath(diagnosticsDir) {- return join52(diagnosticsDir, DIAGNOSTICS_FILE_NAME);+ return join53(diagnosticsDir, DIAGNOSTICS_FILE_NAME);}function writeTelemetryDiagnostic(input, options) {const now = options.now ?? new Date;try {cleanupTelemetryDiagnostics({ diagnosticsDir: options.diagnosticsDir, now });- mkdirSync9(options.diagnosticsDir, { recursive: true });+ mkdirSync10(options.diagnosticsDir, { recursive: true });appendFileSync2(getTelemetryDiagnosticsFilePath(options.diagnosticsDir), `${JSON.stringify(toDiagnosticRecord(input, now))}`, "utf-8");} catch (error) {@@ -77195,7 +77355,7 @@ function shouldRetainLine(line, cutoffMs) {function parseDiagnosticLine(line) {try {const parsed = JSON.parse(line);- if (!isRecord11(parsed)) {+ if (!isRecord12(parsed)) {return null;}return parsed;@@ -77206,7 +77366,7 @@ function parseDiagnosticLine(line) {throw error;}}-function isRecord11(value) {+function isRecord12(value) {return value !== null && typeof value === "object" && !Array.isArray(value);}function trimToMaxBytes(lines) {@@ -82580,7 +82740,7 @@ function coerceBool(value) {function coerceString(value) {return typeof value == "string" ? value : undefined;}-function isRecord12(value) {+function isRecord13(value) {return typeof value == "object" && value !== null && !Array.isArray(value);}function toRfc3339(timestamp) {@@ -82602,7 +82762,7 @@ function relocateInto(properties, key, value) {properties[key] = value;}function buildV1Event(message) {- const sourceProperties = isRecord12(message.properties) ? message.properties : {};+ const sourceProperties = isRecord13(message.properties) ? message.properties : {};const properties = {...sourceProperties};@@ -84632,7 +84792,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.0.0-beta.79",+ version: "5.0.0-beta.80",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -85504,7 +85664,7 @@ var init_update_toasts = __esm(() => {// packages/omo-opencode/src/hooks/auto-update-checker/hook/background-update-check.tsimport { existsSync as existsSync46 } from "node:fs";-import { dirname as dirname30, join as join74 } from "node:path";+import { dirname as dirname30, join as join75 } from "node:path";import { fileURLToPath as fileURLToPath5 } from "node:url";function defaultGetModuleHostingWorkspace() {try {@@ -85658,7 +85818,7 @@ var init_background_update_check = __esm(() => {init_update_toasts();defaultDeps4 = {existsSync: existsSync46,- join: join74,+ join: join75,runBunInstallWithDetails,log: log2,getOpenCodeCacheDir,@@ -88080,7 +88240,7 @@ function getUnsupportedOpenCodeVersionMessage(openCodeVersion) {}// packages/omo-codex/src/install/install-codex.ts-import { join as join53, resolve as resolve12 } from "node:path";+import { join as join54, resolve as resolve12 } from "node:path";// packages/omo-codex/src/install/codex-default-role-config.tsinit_src4();@@ -90699,10 +90859,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {} catch {return null;}- if (!isRecord10(cache) || !Array.isArray(cache.models))+ if (!isRecord11(cache) || !Array.isArray(cache.models))return null;for (const entry of cache.models) {- if (!isRecord10(entry))+ if (!isRecord11(entry))continue;if (entry.slug !== model && entry.id !== model)continue;@@ -90727,7 +90887,7 @@ function readRootModelCatalogPath(config) {const single = config.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);return single?.[1] ?? null;}-function isRecord10(value) {+function isRecord11(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function removeFeatureFlagSetting(config, featureName) {@@ -92572,7 +92732,7 @@ async function runCodexInstaller(options = {}) {const env = options.env ?? process.env;const platform = options.platform ?? process.platform;const repoRoot = resolve12(options.repoRoot ?? findRepoRoot({ importerDir: import.meta.dir, env }));- const codexHome = resolve12(options.codexHome ?? env.CODEX_HOME ?? join53(homedir6(), ".codex"));+ const codexHome = resolve12(options.codexHome ?? env.CODEX_HOME ?? join54(homedir6(), ".codex"));const projectDirectory = resolve12(options.projectDirectory ?? env.OMO_CODEX_PROJECT ?? process.cwd());const binDir = resolveCodexInstallerBinDir({ binDir: options.binDir, codexHome, env });const runCommand = options.runCommand ?? defaultRunCommand;@@ -92589,9 +92749,9 @@ async function runCodexInstaller(options = {}) {if (!gitBashResolution.found) {throw new Error(gitBashResolution.installHint);}- const codexPackageRoot = join53(repoRoot, "packages", "omo-codex");+ const codexPackageRoot = join54(repoRoot, "packages", "omo-codex");const marketplace = await readMarketplace(repoRoot, {- marketplacePath: join53(codexPackageRoot, "marketplace.json")+ marketplacePath: join54(codexPackageRoot, "marketplace.json")});const distributionManifest = await readDistributionManifest(repoRoot);const installed = [];@@ -92637,7 +92797,7 @@ async function runCodexInstaller(options = {}) {if (runtimeLink !== null)log(`Linked ${runtimeLink.name} -> ${runtimeLink.target}`);else- log(`Warning: skipped the omo-agent-toolkit runtime wrapper because ${join53(repoRoot, "dist", "cli", "index.js")} is missing; omo-agent-toolkit ulw-loop commands will be unavailable until a package shipping dist/cli is installed`);+ log(`Warning: skipped the omo-agent-toolkit runtime wrapper because ${join54(repoRoot, "dist", "cli", "index.js")} is missing; omo-agent-toolkit ulw-loop commands will be unavailable until a package shipping dist/cli is installed`);}pluginSources.push({ name: entry.name, sourcePath });installed.push(plugin);@@ -92704,13 +92864,13 @@ async function runCodexInstaller(options = {}) {continue;log(`Warning: deferred legacy Codex LSP daemon cleanup for v${cleanup.version}: ${cleanup.reason}`);}- const marketplaceRoot = join53(codexHome, "plugins", "cache", marketplace.name);+ const marketplaceRoot = join54(codexHome, "plugins", "cache", marketplace.name);await writeCachedMarketplaceManifest({marketplaceName: marketplace.name,marketplaceRoot,plugins: installed});- const configPath = join53(codexHome, "config.toml");+ const configPath = join54(codexHome, "config.toml");await updateCodexConfig({configPath,repoRoot: codexPackageRoot,@@ -92769,7 +92929,7 @@ function findRepoRootFromImporter(importerDir) {for (let depth = 0;depth <= 7; depth += 1) {if (isRepoRootWithCodexPlugin(current))return current;- for (const wrapperPackageRoot of [join53(current, "node_modules", "oh-my-openagent"), join53(current, "oh-my-openagent")]) {+ for (const wrapperPackageRoot of [join54(current, "node_modules", "oh-my-openagent"), join54(current, "oh-my-openagent")]) {if (isRepoRootWithCodexPlugin(wrapperPackageRoot))return wrapperPackageRoot;}@@ -92787,7 +92947,7 @@ function findRepoRoot(input) {return findRepoRootFromImporter(input.importerDir);}function isRepoRootWithCodexPlugin(repoRoot) {- return existsSync26(join53(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));+ return existsSync26(join54(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));}function codexMarketplaceSource(marketplaceRoot) {return { sourceType: "local", source: marketplaceRoot };@@ -92924,11 +93084,11 @@ function defaultRunCommand2(command, args) {// packages/omo-codex/src/install/codex-cleanup.tsimport { lstat as lstat15, readFile as readFile25, readdir as readdir13, rm as rm13, rmdir } from "node:fs/promises";import { homedir as homedir8 } from "node:os";-import { isAbsolute as isAbsolute11, join as join56, relative as relative6, resolve as resolve15 } from "node:path";+import { isAbsolute as isAbsolute11, join as join57, relative as relative6, resolve as resolve15 } from "node:path";// packages/omo-codex/src/install/codex-cleanup-bins.tsimport { lstat as lstat13, readFile as readFile23, readdir as readdir12, readlink as readlink6, rm as rm12 } from "node:fs/promises";-import { dirname as dirname18, isAbsolute as isAbsolute9, join as join54, resolve as resolve13 } from "node:path";+import { dirname as dirname18, isAbsolute as isAbsolute9, join as join55, resolve as resolve13 } from "node:path";var ROOT_RUNTIME_BIN_NAME = "omo";var MANAGED_CODEX_BIN_NAMES = new Set([ROOT_RUNTIME_BIN_NAME,@@ -92958,7 +93118,7 @@ async function removeManagedCodexBins(binDir, platform) {const binName = managedBinNameForEntry2(entry.name, platform);if (binName === null || !MANAGED_CODEX_BIN_NAMES.has(binName))continue;- const linkPath = join54(binDir, entry.name);+ const linkPath = join55(binDir, entry.name);if (await isManagedCodexBin(linkPath, platform, binName)) {await rm12(linkPath, { force: true });removed.push(linkPath);@@ -93111,7 +93271,7 @@ function nodeErrorCode5(error) {}// packages/omo-codex/src/install/codex-cleanup-safety.ts-import { dirname as dirname20, isAbsolute as isAbsolute10, join as join55, relative as relative5, resolve as resolve14 } from "node:path";+import { dirname as dirname20, isAbsolute as isAbsolute10, join as join56, relative as relative5, resolve as resolve14 } from "node:path";function codexHomeResolvesToFilesystemRoot(codexHome) {const resolved = resolve14(codexHome);return dirname20(resolved) === resolved;@@ -93128,11 +93288,11 @@ function validateManagedCleanupTarget(input) {if (target === codexHome)return skipped(input.path, "outside managed Codex cleanup scope");const exactManagedRoots = new Set([- resolve14(join55(codexHome, "plugins", "cache", "sisyphuslabs")),- resolve14(join55(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),- resolve14(join55(codexHome, "runtime", "ast-grep")),- resolve14(join55(codexHome, "runtime", "node")),- resolve14(join55(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))+ resolve14(join56(codexHome, "plugins", "cache", "sisyphuslabs")),+ resolve14(join56(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),+ resolve14(join56(codexHome, "runtime", "ast-grep")),+ resolve14(join56(codexHome, "runtime", "node")),+ resolve14(join56(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))]);if (exactManagedRoots.has(target))return null;@@ -93162,8 +93322,8 @@ function skipped(path, reason) {var INSTALLED_AGENTS_MANIFEST = ".installed-agents.json";async function cleanupCodexLight(input = {}) {const env = input.env ?? process.env;- const codexHome = resolve15(input.codexHome ?? env.CODEX_HOME ?? join56(homedir8(), ".codex"));- const configPath = join56(codexHome, "config.toml");+ const codexHome = resolve15(input.codexHome ?? env.CODEX_HOME ?? join57(homedir8(), ".codex"));+ const configPath = join57(codexHome, "config.toml");const installedBinDir = await readInstalledCodexBinDir(codexHome);const agentPaths = await collectInstalledAgentPaths(codexHome, configPath);const configCleanup = await cleanupCodexConfig(configPath, input.now);@@ -93217,17 +93377,17 @@ function firstConfiguredPath(...values) {}function managedGlobalStatePaths(codexHome) {return [- join56(codexHome, "plugins", "cache", "sisyphuslabs"),- join56(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),- join56(codexHome, "runtime", "ast-grep"),- join56(codexHome, "runtime", "node"),- join56(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")+ join57(codexHome, "plugins", "cache", "sisyphuslabs"),+ join57(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),+ join57(codexHome, "runtime", "ast-grep"),+ join57(codexHome, "runtime", "node"),+ join57(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")];}var BOOTSTRAP_DATA_GLOB_MAX_DEPTH = 5;async function collectBootstrapDataDirsByGlob(codexHome) {const results = [];- await walkForManagedBootstrapDirs(join56(codexHome, "plugins"), 0, results);+ await walkForManagedBootstrapDirs(join57(codexHome, "plugins"), 0, results);return results;}async function walkForManagedBootstrapDirs(directory, depth, results) {@@ -93239,9 +93399,9 @@ async function walkForManagedBootstrapDirs(directory, depth, results) {for (const entry of entries) {if (!entry.isDirectory())continue;- const childPath = join56(directory, entry.name);+ const childPath = join57(directory, entry.name);if (isManagedBootstrapOwnerName(entry.name)) {- const bootstrapDir = join56(childPath, "bootstrap");+ const bootstrapDir = join57(childPath, "bootstrap");if (await exists6(bootstrapDir))results.push(bootstrapDir);continue;@@ -93275,7 +93435,7 @@ async function attemptRemove(path) {}async function pruneEmptyRuntimeDirBestEffort(codexHome) {try {- await rmdir(join56(codexHome, "runtime"));+ await rmdir(join57(codexHome, "runtime"));} catch (error) {if (isExpectedRuntimePruneFailure(error))return;@@ -93287,14 +93447,14 @@ function isExpectedRuntimePruneFailure(error) {}async function collectInstalledAgentPaths(codexHome, configPath) {const manifestPaths = [- join56(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)+ join57(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)];- const versionRoot = join56(codexHome, "plugins", "cache", "sisyphuslabs", "omo");+ const versionRoot = join57(codexHome, "plugins", "cache", "sisyphuslabs", "omo");if (await exists6(versionRoot)) {const entries = await readdir13(versionRoot, { withFileTypes: true });for (const entry of entries) {if (entry.isDirectory())- manifestPaths.push(join56(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));+ manifestPaths.push(join57(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));}}const paths = new Set;@@ -93312,7 +93472,7 @@ async function readManagedAgentPathsFromConfig(codexHome, configPath) {if (!await exists6(configPath))return [];const config = await readFile25(configPath, "utf8");- return MANAGED_CODEX_AGENT_NAMES2.filter((agentName) => config.includes(`config_file = ${JSON.stringify(`./agents/${agentName}.toml`)}`)).map((agentName) => join56(codexHome, "agents", `${agentName}.toml`));+ return MANAGED_CODEX_AGENT_NAMES2.filter((agentName) => config.includes(`config_file = ${JSON.stringify(`./agents/${agentName}.toml`)}`)).map((agentName) => join57(codexHome, "agents", `${agentName}.toml`));}async function readInstalledAgentManifest(manifestPath) {if (!await exists6(manifestPath))@@ -93323,7 +93483,7 @@ async function readInstalledAgentManifest(manifestPath) {return parsed.agents.filter((path) => typeof path === "string");}async function removeManifestListedAgentLinks(codexHome, paths) {- const agentsDir = join56(codexHome, "agents");+ const agentsDir = join57(codexHome, "agents");const removed = [];const skipped = [];for (const path of paths) {@@ -93375,14 +93535,14 @@ function nodeErrorCode6(error) {import { execFile as execFile3 } from "node:child_process";import { existsSync as existsSync30 } from "node:fs";import { homedir as homedir11 } from "node:os";-import { dirname as dirname24, join as join61, resolve as resolve19 } from "node:path";+import { dirname as dirname24, join as join62, resolve as resolve19 } from "node:path";import { fileURLToPath } from "node:url";import { promisify as promisify2 } from "node:util";// packages/omo-senpi/src/components/agent-home/resolve-agent-home.tsimport { existsSync as existsSync28 } from "node:fs";import { homedir as homedir9 } from "node:os";-import { join as join57, resolve as resolve16 } from "node:path";+import { join as join58, resolve as resolve16 } from "node:path";var AGENT_DIR_ENV_NAMES = ["OMO_CODING_AGENT_DIR","SENPI_CODING_AGENT_DIR",@@ -93396,25 +93556,25 @@ function resolveAgentHome(options) {if (configured)return resolve16(configured);}- const brandedHome = join57(homeDir, ".omo");- const canonical = join57(brandedHome, "agent");- if (exists(join57(canonical, AGENT_HOME_SENTINEL)))+ const brandedHome = join58(homeDir, ".omo");+ const canonical = join58(brandedHome, "agent");+ if (exists(join58(canonical, AGENT_HOME_SENTINEL)))return canonical;- if (exists(join57(brandedHome, AGENT_HOME_SENTINEL)))+ if (exists(join58(brandedHome, AGENT_HOME_SENTINEL)))return brandedHome;- return join57(homeDir, ".senpi", "agent");+ return join58(homeDir, ".senpi", "agent");}// packages/omo-senpi/src/install/local-launcher.ts-import { chmodSync as chmodSync3, existsSync as existsSync29, mkdirSync as mkdirSync10, readFileSync as readFileSync13, rmSync as rmSync2, writeFileSync as writeFileSync6 } from "node:fs";+import { chmodSync as chmodSync3, existsSync as existsSync29, mkdirSync as mkdirSync11, readFileSync as readFileSync13, rmSync as rmSync3, writeFileSync as writeFileSync6 } from "node:fs";import { homedir as homedir10 } from "node:os";-import { dirname as dirname21, join as join58, resolve as resolve17 } from "node:path";+import { dirname as dirname21, join as join59, resolve as resolve17 } from "node:path";var MARKER = "omo-local-launcher";function localLauncherPath(homeDir = homedir10()) {- return join58(homeDir, ".local", "bin", "omo");+ return join59(homeDir, ".local", "bin", "omo");}function localLauncherCmdPath(homeDir = homedir10()) {- return join58(homeDir, ".local", "bin", "omo.cmd");+ return join59(homeDir, ".local", "bin", "omo.cmd");}function renderLocalLauncher(options) {const brand = {@@ -93427,7 +93587,7 @@ function renderLocalLauncher(options) {userAgent: "omo",originator: "omo",changelog: {- path: join58(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")+ path: join59(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")},update: {packageName: "omo-ai",@@ -93465,6 +93625,9 @@ if (selfUpdate) {console.log("omo is updated via npm: npm i -g omo-ai@beta")process.exit(0)}+// windowsHide-exempt: this is the interactive foreground CLI, spawned with inherited stdio.+// CREATE_NO_WINDOW would suppress the console a console-less launch needs to render the TUI,+// so the launcher keeps the user's console instead of hiding it (#8501).const child = spawn(process.execPath, [cli, "--extension", plugin, ...process.argv.slice(2)], {env,stdio: "inherit",@@ -93482,7 +93645,7 @@ function installLocalLauncher(options) {const path = localLauncherPath(options.homeDir);if (existsSync29(path) && !readFileSync13(path, "utf8").includes(MARKER))return;- mkdirSync10(dirname21(path), { recursive: true });+ mkdirSync11(dirname21(path), { recursive: true });writeFileSync6(path, renderLocalLauncher(options));chmodSync3(path, 493);if ((options.platform ?? process.platform) === "win32") {@@ -93497,7 +93660,7 @@ node "%~dp0omo" %*\rimport { createHash as createHash6 } from "node:crypto";import { constants as constants9 } from "node:fs";import { access as access2, readFile as readFile27, stat as stat6 } from "node:fs/promises";-import { dirname as dirname23, join as join60 } from "node:path";+import { dirname as dirname23, join as join61 } from "node:path";// packages/memory-core/src/personas/manifest.tsvar PERSONA_ASSET_FILENAMES = {@@ -93516,12 +93679,12 @@ var PERSONA_ASSET_FILES = [// packages/omo-senpi/src/install/senpi-settings.tsimport { constants as constants8 } from "node:fs";import { access, copyFile as copyFile3, mkdir as mkdir9, readFile as readFile26, rename as rename5, writeFile as writeFile14 } from "node:fs/promises";-import { basename as basename9, dirname as dirname22, join as join59, resolve as resolve18 } from "node:path";+import { basename as basename9, dirname as dirname22, join as join60, resolve as resolve18 } from "node:path";var OMO_SENPI_PACKAGE_NAME = "@code-yeongyu/omo-senpi";var GENERATED_PLUGIN_BASENAME = /^omo-senpi-cli-plugin-[A-Za-z0-9]{6}$/;var LEGACY_BUILTIN_SHADOW_PACKAGES = [- join59("packages", "pi-goal"),- join59("packages", "pi-webfetch")+ join60("packages", "pi-goal"),+ join60("packages", "pi-webfetch")];async function readSettings(settingsPath) {let raw;@@ -93533,7 +93696,7 @@ async function readSettings(settingsPath) {throw error;}const parsed = JSON.parse(raw);- if (!isRecord13(parsed))+ if (!isRecord14(parsed))throw new Error(`${settingsPath} must contain a JSON object`);return parsed;}@@ -93594,13 +93757,13 @@ async function nextBackupPath(settingsPath) {function timestampForBackup() {return new Date().toISOString().replace(/[-:.]/g, "");}-function isRecord13(value) {+function isRecord14(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}async function readPackageName(packagePath) {let raw;try {- raw = await readFile26(join59(packagePath, "package.json"), "utf8");+ raw = await readFile26(join60(packagePath, "package.json"), "utf8");} catch (error) {if (isErrno(error, "ENOENT") || isErrno(error, "ENOTDIR"))return;@@ -93614,7 +93777,7 @@ async function readPackageName(packagePath) {return;throw error;}- return isRecord13(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;+ return isRecord14(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;}async function fileExists(path) {try {@@ -93632,51 +93795,51 @@ function isErrno(error, code) {// packages/omo-senpi/src/install/plugin-artifacts.tsvar REQUIRED_PLUGIN_ARTIFACTS = [- join60("extensions", "omo.js"),- join60("extensions", "omo-task.js"),- join60("extensions", "omo-member.js"),- join60("extensions", "memory-run-supervisor.mjs"),- ...PERSONA_ASSET_FILES.map((filename) => join60("extensions", filename)),- join60("skills", "ast-grep", "SKILL.md"),- join60("skills", "coding-agent-sessions", "SKILL.md"),- join60("skills", "debugging", "SKILL.md"),- join60("skills", "frontend", "SKILL.md"),- join60("skills", "git-master", "SKILL.md"),- join60("skills", "init-deep", "SKILL.md"),- join60("skills", "lsp-setup", "SKILL.md"),- join60("skills", "programming", "SKILL.md"),- join60("skills", "refactor", "SKILL.md"),- join60("skills", "remove-ai-slops", "SKILL.md"),- join60("skills", "review-work", "SKILL.md"),- join60("skills", "ultimate-browsing", "SKILL.md"),- join60("skills", "ultrawork", "SKILL.md"),- join60("skills", "ulw-execute", "SKILL.md"),- join60("skills", "ulw-loop", "SKILL.md"),- join60("skills", "ulw-plan", "SKILL.md"),- join60("skills", "ulw-research", "SKILL.md"),- join60("skills", "visual-qa", "SKILL.md"),- join60("skills-conditional", "x-search", "SKILL.md"),- join60("runtime", "agent-toolkit-sdk", "sdk.js"),- join60("runtime", "ast-grep-mcp", "cli.js"),- join60("runtime", "lsp-daemon", "dist", "cli.js"),- join60("runtime", "lsp-daemon", "dist", "index.js"),- join60("runtime", "lsp-daemon", "dist", "index.d.ts"),- join60("runtime", "lsp-daemon", "dist", "daemon-client.js"),- join60("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),- join60("runtime", "lsp-daemon", "dist", "package.json"),- join60("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),- join60("scripts", "install.mjs"),+ join61("extensions", "omo.js"),+ join61("extensions", "omo-task.js"),+ join61("extensions", "omo-member.js"),+ join61("extensions", "memory-run-supervisor.mjs"),+ ...PERSONA_ASSET_FILES.map((filename) => join61("extensions", filename)),+ join61("skills", "ast-grep", "SKILL.md"),+ join61("skills", "coding-agent-sessions", "SKILL.md"),+ join61("skills", "debugging", "SKILL.md"),+ join61("skills", "frontend", "SKILL.md"),+ join61("skills", "git-master", "SKILL.md"),+ join61("skills", "init-deep", "SKILL.md"),+ join61("skills", "lsp-setup", "SKILL.md"),+ join61("skills", "programming", "SKILL.md"),+ join61("skills", "refactor", "SKILL.md"),+ join61("skills", "remove-ai-slops", "SKILL.md"),+ join61("skills", "review-work", "SKILL.md"),+ join61("skills", "ultimate-browsing", "SKILL.md"),+ join61("skills", "ultrawork", "SKILL.md"),+ join61("skills", "ulw-execute", "SKILL.md"),+ join61("skills", "ulw-loop", "SKILL.md"),+ join61("skills", "ulw-plan", "SKILL.md"),+ join61("skills", "ulw-research", "SKILL.md"),+ join61("skills", "visual-qa", "SKILL.md"),+ join61("skills-conditional", "x-search", "SKILL.md"),+ join61("runtime", "agent-toolkit-sdk", "sdk.js"),+ join61("runtime", "ast-grep-mcp", "cli.js"),+ join61("runtime", "lsp-daemon", "dist", "cli.js"),+ join61("runtime", "lsp-daemon", "dist", "index.js"),+ join61("runtime", "lsp-daemon", "dist", "index.d.ts"),+ join61("runtime", "lsp-daemon", "dist", "daemon-client.js"),+ join61("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),+ join61("runtime", "lsp-daemon", "dist", "package.json"),+ join61("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),+ join61("scripts", "install.mjs"),"daemon-launch-spec.json"];async function ensurePluginArtifacts(context) {if (context.allowBuild) {- await context.runCommand("node", [join60(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "stage-x-search-skill.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "stage-x-search-skill.mjs")], { cwd: context.repoRoot });}if (await hasMissingPluginArtifact(context.pluginPath)) {throw new Error(`Packed omo-senpi plugin is missing required runtime artifacts at ${context.pluginPath}`);@@ -93685,14 +93848,14 @@ async function ensurePluginArtifacts(context) {}async function hasMissingPluginArtifact(pluginPath) {for (const artifact of REQUIRED_PLUGIN_ARTIFACTS) {- if (!await fileExists2(join60(pluginPath, artifact)))+ if (!await fileExists2(join61(pluginPath, artifact)))return true;}return false;}async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {- const runtimeEntry = join60(pluginPath, "runtime", "ast-grep-mcp", "cli.js");- const manifestPath = join60(dirname23(runtimeEntry), "manifest.json");+ const runtimeEntry = join61(pluginPath, "runtime", "ast-grep-mcp", "cli.js");+ const manifestPath = join61(dirname23(runtimeEntry), "manifest.json");let runtimeStat;try {runtimeStat = await stat6(runtimeEntry);@@ -93729,7 +93892,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}}function isAstGrepRuntimeManifest(value) {- if (!isRecord13(value))+ if (!isRecord14(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));}@@ -93767,7 +93930,7 @@ async function runSenpiInstaller(options = {}) {const backupPath = await writeSettingsAtomically(context.settingsPath, settings);const launcherPath = installLocalLauncher({pluginPath: context.pluginPath,- senpiCliPath: join61(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),+ senpiCliPath: join62(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),homeDir: context.homeDir});return {@@ -93787,13 +93950,13 @@ function resolveInstallContext(options) {const repoRoot = resolve19(options.repoRoot ?? (allowBuild ? findRepoRoot2(dirname24(fileURLToPath(import.meta.url))) : dirname24(resolve19(options.pluginPath))));const homeDir = options.homeDir ?? env.HOME ?? homedir11();const agentDir = resolve19(options.agentDir ?? resolveAgentHome({ env, homeDir }));- const pluginPath = resolve19(options.pluginPath ?? join61(repoRoot, "packages", "omo-senpi", "plugin"));+ const pluginPath = resolve19(options.pluginPath ?? join62(repoRoot, "packages", "omo-senpi", "plugin"));return {env,repoRoot,agentDir,homeDir,- settingsPath: join61(agentDir, "settings.json"),+ settingsPath: join62(agentDir, "settings.json"),pluginPath,platform: options.platform ?? process.platform,allowBuild,@@ -93810,7 +93973,7 @@ async function defaultRunCommand3(command, args, options) {function findRepoRoot2(importerDir) {let current = importerDir;for (let depth = 0;depth <= 7; depth += 1) {- if (fileExistsSync(join61(current, "packages", "omo-senpi", "plugin", "package.json")))+ if (fileExistsSync(join62(current, "packages", "omo-senpi", "plugin", "package.json")))return current;current = resolve19(current, "..");}@@ -93853,20 +94016,20 @@ async function starGitHubRepositories(platform = "both", runCommand = runGitHubSinit_provider_availability();// packages/omo-opencode/src/cli/config-manager/add-tui-plugin-to-tui-config.ts-import { existsSync as existsSync32, mkdirSync as mkdirSync11, readFileSync as readFileSync15 } from "node:fs";-import { join as join63 } from "node:path";+import { existsSync as existsSync32, mkdirSync as mkdirSync12, readFileSync as readFileSync15 } from "node:fs";+import { join as join64 } from "node:path";// packages/omo-opencode/src/cli/doctor/checks/tui-plugin-config.tsinit_shared();import { existsSync as existsSync31, readFileSync as readFileSync14 } from "node:fs";-import { join as join62 } from "node:path";+import { join as join63 } from "node:path";var TUI_SUBPATH = "tui";var TUI_EXPORT_SUBPATH = `./${TUI_SUBPATH}`;function fileEntryPackageJsonPath(entry) {let path = entry.slice("file:".length);if (path.startsWith("//"))path = path.slice(2);- return join62(path, "package.json");+ return join63(path, "package.json");}function packageJsonExportsTui(pkgJsonPath) {if (!existsSync31(pkgJsonPath))@@ -93904,7 +94067,7 @@ function packageExportsTuiForServerEntry(entry) {const packageName = packageNameFromServerEntry(entry);if (packageName === null)return null;- return packageJsonExportsTui(join62(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));+ return packageJsonExportsTui(join63(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));}function isOurFilePluginEntry(entry) {if (typeof entry !== "string" || !entry.startsWith("file:"))@@ -93969,7 +94132,7 @@ function detectServerPluginRegistration() {}}function detectTuiPluginRegistration() {- const tuiJsonPath = join62(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");+ const tuiJsonPath = join63(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");if (!existsSync31(tuiJsonPath)) {return {registered: false,@@ -94125,10 +94288,10 @@ function readConfig(path) {return null;}function readServerConfig(configDir) {- const jsoncPath = join63(configDir, "opencode.jsonc");+ const jsoncPath = join64(configDir, "opencode.jsonc");if (existsSync32(jsoncPath))return readConfig(jsoncPath);- const jsonPath = join63(configDir, "opencode.json");+ const jsonPath = join64(configDir, "opencode.json");if (existsSync32(jsonPath))return readConfig(jsonPath);return null;@@ -94170,7 +94333,7 @@ function ensureTuiPluginEntry(opts = {}) {if (!desiredEntry) {return { changed: false, reason: "no-server-entry" };}- const tuiJsonPath = join63(configDir, "tui.json");+ const tuiJsonPath = join64(configDir, "tui.json");const { config, malformed } = readTuiConfig(tuiJsonPath);if (malformed) {return { changed: false, reason: "malformed" };@@ -94179,14 +94342,14 @@ function ensureTuiPluginEntry(opts = {}) {if (plugins.includes(desiredEntry)) {return { changed: false, reason: "already-present" };}- mkdirSync11(configDir, { recursive: true });+ mkdirSync12(configDir, { recursive: true });writeFileAtomically2(tuiJsonPath, formatConfig({ ...config, plugin: [...plugins, desiredEntry] }));return { changed: true, reason: "added" };}// packages/omo-opencode/src/cli/install-ast-grep-sg.tsimport { homedir as homedir12 } from "node:os";-import { join as join64 } from "node:path";+import { join as join65 } from "node:path";// packages/shared-skills/index.mjsimport { existsSync as existsSync33 } from "node:fs";@@ -94208,9 +94371,9 @@ function describeResult2(result) {}async function installAstGrepForOpenCode(options = {}) {const platform = options.platform ?? process.platform;- const baseDir = join64(options.homeDir ?? homedir12(), ".omo");+ const baseDir = join65(options.homeDir ?? homedir12(), ".omo");const targetDir = astGrepRuntimeDir(baseDir, platform, options.arch ?? process.arch);- const skillDir = join64(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");+ const skillDir = join65(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");const installer = options.installer ?? runAstGrepSkillInstall;try {const result = await installer({ platform, skillDir, targetDir });@@ -97750,7 +97913,7 @@ function migrateRalphLoopConfig(config) {function validatePluginConfig(directory, environment = process.env) {const chain = loadOmoOpenCodeConfigChain(directory, environment);const views = chain.views.map((view) => parseConfigView(view.path, view.config));- const chainMessages = chain.diagnostics.map((diagnostic) => `${shortPath(diagnostic.path)}: ${diagnostic.message}`);+ const chainMessages = chain.diagnostics.filter((diagnostic) => diagnostic.kind !== "deprecated-keys").map((diagnostic) => `${shortPath(diagnostic.path)}: ${diagnostic.message}`);const messages = [...chainMessages, ...views.flatMap((view) => view.messages)];const firstFailingView = views.find((view) => view.messages.length > 0);const firstView = views[0];@@ -98431,9 +98594,9 @@ function readCurrentTopLevelTask(planPath) {}// packages/boulder-state/src/storage/path.tsimport { existsSync as existsSync35 } from "node:fs";-import { isAbsolute as isAbsolute12, join as join65, relative as relative8, resolve as resolve20 } from "node:path";+import { isAbsolute as isAbsolute12, join as join66, relative as relative8, resolve as resolve20 } from "node:path";function getBoulderFilePath(directory) {- return join65(directory, BOULDER_DIR, BOULDER_FILE);+ return join66(directory, BOULDER_DIR, BOULDER_FILE);}function resolveTrackedPath(baseDirectory, trackedPath) {return isAbsolute12(trackedPath) ? resolve20(trackedPath) : resolve20(baseDirectory, trackedPath);@@ -98457,7 +98620,7 @@ function resolveBoulderPlanPathForWork(directory, work) {return resolveBoulderPlanPath(directory, work);}// packages/boulder-state/src/storage/plan-progress.ts-import { existsSync as existsSync36, readFileSync as readFileSync17, readdirSync as readdirSync7, statSync as statSync4 } from "node:fs";+import { existsSync as existsSync36, readFileSync as readFileSync17, readdirSync as readdirSync8, statSync as statSync4 } from "node:fs";function getPlanProgress(planPath) {if (!existsSync36(planPath)) {return { total: 0, completed: 0, isComplete: false };@@ -98617,10 +98780,10 @@ init_state();// packages/omo-opencode/src/features/run-continuation-state/constants.tsvar CONTINUATION_MARKER_DIR = ".omo/run-continuation";// packages/omo-opencode/src/features/run-continuation-state/storage.ts-import { existsSync as existsSync38, mkdirSync as mkdirSync12, readFileSync as readFileSync19, rmSync as rmSync3, writeFileSync as writeFileSync7 } from "node:fs";-import { join as join66 } from "node:path";+import { existsSync as existsSync38, mkdirSync as mkdirSync13, readFileSync as readFileSync19, rmSync as rmSync4, writeFileSync as writeFileSync7 } from "node:fs";+import { join as join67 } from "node:path";function getMarkerPath(directory, sessionID) {- return join66(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);+ return join67(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);}function readContinuationMarker(directory, sessionID) {const markerPath = getMarkerPath(directory, sessionID);@@ -98692,8 +98855,8 @@ async function isSessionInBoulderLineage(input) {// packages/omo-opencode/src/hooks/atlas/session-last-agent.tsinit_shared();init_compaction_marker();-import { readFileSync as readFileSync20, readdirSync as readdirSync8 } from "node:fs";-import { join as join67 } from "node:path";+import { readFileSync as readFileSync20, readdirSync as readdirSync9 } from "node:fs";+import { join as join68 } from "node:path";var defaultSessionLastAgentDeps = {getMessageDir,isSqliteBackend,@@ -98751,9 +98914,9 @@ async function getLastAgentFromSession(sessionID, client, deps = {}) {if (!messageDir)return null;try {- const messages = readdirSync8(messageDir).filter((fileName) => fileName.endsWith(".json")).map((fileName) => {+ const messages = readdirSync9(messageDir).filter((fileName) => fileName.endsWith(".json")).map((fileName) => {try {- const content = readFileSync20(join67(messageDir, fileName), "utf-8");+ const content = readFileSync20(join68(messageDir, fileName), "utf-8");const parsed = JSON.parse(content);return {fileName,@@ -98796,8 +98959,8 @@ init_agent_display_names();// packages/omo-opencode/src/hooks/ralph-loop/storage.tsinit_frontmatter2();-import { existsSync as existsSync39, readFileSync as readFileSync21, writeFileSync as writeFileSync8, unlinkSync as unlinkSync6, mkdirSync as mkdirSync13 } from "node:fs";-import { dirname as dirname26, join as join68 } from "node:path";+import { existsSync as existsSync39, readFileSync as readFileSync21, writeFileSync as writeFileSync8, unlinkSync as unlinkSync6, mkdirSync as mkdirSync14 } from "node:fs";+import { dirname as dirname26, join as join69 } from "node:path";// packages/omo-opencode/src/hooks/ralph-loop/constants.tsvar DEFAULT_STATE_FILE = ".omo/ralph-loop.local.md";@@ -98806,7 +98969,7 @@ var DEFAULT_COMPLETION_PROMISE = "DONE";// packages/omo-opencode/src/hooks/ralph-loop/storage.tsfunction getStateFilePath(directory, customPath) {- return customPath ? join68(directory, customPath) : join68(directory, DEFAULT_STATE_FILE);+ return customPath ? join69(directory, customPath) : join69(directory, DEFAULT_STATE_FILE);}function readState(directory, customPath) {const filePath = getStateFilePath(directory, customPath);@@ -99913,7 +100076,7 @@ init_extract_semver();init_bun_which_shim();import { existsSync as existsSync47, accessSync as accessSync4, constants as constants12 } from "node:fs";import { homedir as homedir15 } from "node:os";-import { join as join75 } from "node:path";+import { join as join76 } from "node:path";// packages/omo-opencode/src/cli/doctor/framework/spawn-with-timeout.tsinit_spawn_with_windows_hide();@@ -100005,17 +100168,17 @@ function getDesktopAppPaths(platform) {case "darwin":return ["/Applications/OpenCode.app/Contents/MacOS/OpenCode",- join75(home, "Applications", "OpenCode.app", "Contents", "MacOS", "OpenCode")+ join76(home, "Applications", "OpenCode.app", "Contents", "MacOS", "OpenCode")];case "win32": {const programFiles = process.env.ProgramFiles;const localAppData = process.env.LOCALAPPDATA;const paths = [];if (programFiles) {- paths.push(join75(programFiles, "OpenCode", "OpenCode.exe"));+ paths.push(join76(programFiles, "OpenCode", "OpenCode.exe"));}if (localAppData) {- paths.push(join75(localAppData, "OpenCode", "OpenCode.exe"));+ paths.push(join76(localAppData, "OpenCode", "OpenCode.exe"));}return paths;}@@ -100023,8 +100186,8 @@ function getDesktopAppPaths(platform) {return ["/usr/bin/opencode","/usr/lib/opencode/opencode",- join75(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),- join75(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")+ join76(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),+ join76(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")];default:return [];@@ -100056,7 +100219,7 @@ async function findOpenCodeBinary(platform = process.platform, checkExists = exiconst candidates = getCommandCandidates2(platform);for (const entry of pathEnv.split(delimiter).filter(Boolean)) {for (const command of candidates) {- const fullPath = join75(entry, command);+ const fullPath = join76(entry, command);if (checkExists(fullPath) && isExecutable2(fullPath)) {return { binary: command, path: fullPath };}@@ -100197,25 +100360,25 @@ init_file_utils2();init_checker();init_auto_update_checker();init_package_json_locator();-import { existsSync as existsSync49, readFileSync as readFileSync30, readdirSync as readdirSync10 } from "node:fs";+import { existsSync as existsSync49, readFileSync as readFileSync30, readdirSync as readdirSync11 } from "node:fs";import { createRequire as createRequire2 } from "node:module";import { homedir as homedir16 } from "node:os";-import { join as join76 } from "node:path";+import { join as join77 } from "node:path";import { fileURLToPath as fileURLToPath6 } from "node:url";init_shared();function getPlatformDefaultCacheDir(platform = process.platform) {if (platform === "darwin")- return join76(homedir16(), "Library", "Caches");+ return join77(homedir16(), "Library", "Caches");if (platform === "win32")- return process.env.LOCALAPPDATA ?? join76(homedir16(), "AppData", "Local");- return join76(homedir16(), ".cache");+ return process.env.LOCALAPPDATA ?? join77(homedir16(), "AppData", "Local");+ return join77(homedir16(), ".cache");}function resolveOpenCodeCacheDir() {const xdgCacheHome = process.env.XDG_CACHE_HOME;if (xdgCacheHome)- return join76(xdgCacheHome, "opencode");+ return join77(xdgCacheHome, "opencode");const fromShared = getOpenCodeCacheDir();- const platformDefault = join76(getPlatformDefaultCacheDir(), "opencode");+ const platformDefault = join77(getPlatformDefaultCacheDir(), "opencode");if (existsSync49(fromShared) || !existsSync49(platformDefault))return fromShared;return platformDefault;@@ -100247,26 +100410,26 @@ function normalizeVersion(value) {function createPackageCandidates(rootDir) {return ACCEPTED_PACKAGE_NAMES.map((packageName) => ({packageName,- installedPackagePath: join76(rootDir, "node_modules", packageName, "package.json")+ installedPackagePath: join77(rootDir, "node_modules", packageName, "package.json")}));}function createTaggedInstallCandidates(rootDir) {- const packagesDir = join76(rootDir, "packages");+ const packagesDir = join77(rootDir, "packages");if (!existsSync49(packagesDir))return [];const candidates = [];- for (const entryName of readdirSync10(packagesDir).sort()) {+ for (const entryName of readdirSync11(packagesDir).sort()) {const packageName = ACCEPTED_PACKAGE_NAMES.find((name) => entryName.startsWith(`${name}@`));if (packageName === undefined)continue;- const installDir = join76(packagesDir, entryName);+ const installDir = join77(packagesDir, entryName);candidates.push({cacheDir: installDir,- cachePackagePath: join76(installDir, "package.json"),+ cachePackagePath: join77(installDir, "package.json"),packageCandidates: [{packageName,- installedPackagePath: join76(installDir, "node_modules", packageName, "package.json")+ installedPackagePath: join77(installDir, "node_modules", packageName, "package.json")}]});@@ -100311,13 +100474,13 @@ function getLoadedPluginVersion() {const candidates = [{cacheDir: configDir,- cachePackagePath: join76(configDir, "package.json"),+ cachePackagePath: join77(configDir, "package.json"),packageCandidates: createPackageCandidates(configDir)},...createTaggedInstallCandidates(configDir),{cacheDir,- cachePackagePath: join76(cacheDir, "package.json"),+ cachePackagePath: join77(cacheDir, "package.json"),packageCandidates: createPackageCandidates(cacheDir)},...createTaggedInstallCandidates(cacheDir)@@ -100510,18 +100673,18 @@ async function checkSystem(deps = defaultDeps5) {init_shared();import { existsSync as existsSync51, readFileSync as readFileSync32 } from "node:fs";import { homedir as homedir17 } from "node:os";-import { join as join77 } from "node:path";+import { join as join78 } from "node:path";function getUserConfigDir2() {const xdgConfig = process.env.XDG_CONFIG_HOME;if (xdgConfig)- return join77(xdgConfig, "opencode");- return join77(homedir17(), ".config", "opencode");+ return join78(xdgConfig, "opencode");+ return join78(homedir17(), ".config", "opencode");}function loadCustomProviderNames() {const configDir = getUserConfigDir2();const candidatePaths = [- join77(configDir, "opencode.json"),- join77(configDir, "opencode.jsonc")+ join78(configDir, "opencode.json"),+ join78(configDir, "opencode.jsonc")];for (const configPath of candidatePaths) {if (!existsSync51(configPath))@@ -100542,7 +100705,7 @@ function loadCustomProviderNames() {return [];}function loadAvailableModelsFromCache() {- const cacheFile = join77(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join78(getOpenCodeCacheDir(), "models.json");const customProviders = loadCustomProviderNames();if (!existsSync51(cacheFile)) {if (customProviders.length > 0) {@@ -100604,7 +100767,7 @@ function loadOmoConfig2() {// packages/omo-opencode/src/cli/doctor/checks/model-resolution-details.tsinit_shared();-import { join as join78 } from "node:path";+import { join as join79 } from "node:path";// packages/omo-opencode/src/cli/doctor/checks/model-resolution-variant.tsfunction formatModelWithVariant(model, variant) {@@ -100646,7 +100809,7 @@ function formatCapabilityResolutionLabel(mode) {}function buildModelResolutionDetails(options) {const details = [];- const cacheFile = join78(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join79(getOpenCodeCacheDir(), "models.json");details.push("═══ Available Models (from cache) ═══");details.push("");if (options.available.cacheExists) {@@ -100987,7 +101150,7 @@ init_src4();init_main();init_config_migration();import { existsSync as existsSync52, readFileSync as readFileSync33 } from "node:fs";-import { join as join79 } from "node:path";+import { join as join80 } from "node:path";var CANONICAL_REPLACEMENT = new Map([["variant", "reasoning"],["reasoningEffort", "reasoning"],@@ -100998,14 +101161,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 isRecord14(value) {+function isRecord15(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 (!isRecord14(value))+ if (!isRecord15(value))return [];const issues = [];for (const [key, child] of Object.entries(value)) {@@ -101021,7 +101184,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {});continue;}- if (!isRecord14(child))+ if (!isRecord15(child))continue;if (PASSTHROUGH_CONTAINERS.has(key))continue;@@ -101040,7 +101203,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {return issues;}function migrateFixSuffix(parsed) {- if (isRecord14(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))+ if (isRecord15(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))return "";return MIGRATE_SUFFIX;}@@ -101048,7 +101211,7 @@ function userConfigPaths() {const home = process.env.HOME ?? process.env.USERPROFILE;if (home === undefined || home.length === 0)return [];- return [join79(home, ".omo", "omo.jsonc"), join79(home, ".omo", "omo.json")];+ return [join80(home, ".omo", "omo.jsonc"), join80(home, ".omo", "omo.json")];}async function checkDeprecatedReasoningKeys() {const issues = [];@@ -101074,25 +101237,25 @@ init_src();import { existsSync as existsSync53 } from "node:fs";import { createRequire as createRequire3 } from "node:module";import { homedir as homedir19 } from "node:os";-import { dirname as dirname31, join as join81 } from "node:path";+import { dirname as dirname31, join as join82 } from "node:path";// packages/omo-opencode/src/hooks/comment-checker/downloader.tsinit_binary_downloader();init_logger2();init_plugin_identity();-import { join as join80 } from "path";+import { join as join81 } from "path";import { homedir as homedir18, tmpdir as tmpdir4 } from "os";var DEBUG = process.env.COMMENT_CHECKER_DEBUG === "1";-var DEBUG_FILE = join80(tmpdir4(), "comment-checker-debug.log");+var DEBUG_FILE = join81(tmpdir4(), "comment-checker-debug.log");function getCacheDir2() {if (process.platform === "win32") {const localAppData = process.env.LOCALAPPDATA || process.env.APPDATA;- const base = localAppData || join80(homedir18(), "AppData", "Local");- return join80(base, CACHE_DIR_NAME, "bin");+ const base = localAppData || join81(homedir18(), "AppData", "Local");+ return join81(base, CACHE_DIR_NAME, "bin");}const xdgCache = process.env.XDG_CACHE_HOME;- const base = xdgCache || join80(homedir18(), ".cache");- return join80(base, CACHE_DIR_NAME, "bin");+ const base = xdgCache || join81(homedir18(), ".cache");+ return join81(base, CACHE_DIR_NAME, "bin");}function getBinaryName() {return process.platform === "win32" ? "comment-checker.exe" : "comment-checker";@@ -101142,7 +101305,7 @@ async function getBinaryVersion(binary) {}}async function checkAstGrepCli() {- const runtimeDir = astGrepRuntimeDir(join81(homedir19(), ".omo"));+ const runtimeDir = astGrepRuntimeDir(join82(homedir19(), ".omo"));const sgPath = findSgBinarySync({ runtimeDir });if (sgPath === null) {return {@@ -101172,10 +101335,10 @@ function findCommentCheckerPackageBinary(baseDirOverride, resolvePackageJsonPathconst platformKey = `${process.platform}-${process.arch === "x64" ? "x64" : process.arch}`;try {const packageDir = baseDirOverride ?? dirname31(resolvePackageJsonPath());- const vendorPath = join81(packageDir, "vendor", platformKey, binaryName);+ const vendorPath = join82(packageDir, "vendor", platformKey, binaryName);if (existsSync53(vendorPath))return vendorPath;- const binPath = join81(packageDir, "bin", binaryName);+ const binPath = join82(packageDir, "bin", binaryName);if (existsSync53(binPath))return binPath;} catch (error) {@@ -101551,13 +101714,13 @@ function getInstalledLspServers(options = {}) {init_shared();import { existsSync as existsSync55, readFileSync as readFileSync35 } from "node:fs";import { homedir as homedir20 } from "node:os";-import { join as join82 } from "node:path";+import { join as join83 } from "node:path";var BUILTIN_MCP_SERVERS = ["websearch", "context7", "grep_app", "lsp"];function getMcpConfigPaths() {return [- join82(homedir20(), ".claude", ".mcp.json"),- join82(process.cwd(), ".mcp.json"),- join82(process.cwd(), ".claude", ".mcp.json")+ join83(homedir20(), ".claude", ".mcp.json"),+ join83(process.cwd(), ".mcp.json"),+ join83(process.cwd(), ".claude", ".mcp.json")];}function loadUserMcpConfig() {@@ -101839,7 +102002,7 @@ init_src();import { existsSync as existsSync57 } from "node:fs";import { lstat as lstat16, readdir as readdir14, readFile as readFile28 } from "node:fs/promises";import { homedir as homedir22 } from "node:os";-import { basename as basename11, join as join83, resolve as resolve23 } from "node:path";+import { basename as basename11, join as join84, resolve as resolve23 } from "node:path";// packages/omo-opencode/package.jsonvar package_default3 = {name: "@oh-my-opencode/omo-opencode",@@ -101905,13 +102068,13 @@ var CODEX_BIN_NAMES = ["omo-git-bash-hook"];async function gatherCodexSummary(deps = {}) {- const codexHome = resolve23(deps.codexHome ?? process.env.CODEX_HOME ?? join83(homedir22(), ".codex"));+ const codexHome = resolve23(deps.codexHome ?? process.env.CODEX_HOME ?? join84(homedir22(), ".codex"));const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });const detection = await (deps.detectCodexInstallation ?? detectCodexInstallation)();const pluginRoot = await resolveInstalledPluginRoot(codexHome);- const manifest = pluginRoot === null ? null : await readJson(join83(pluginRoot, ".codex-plugin", "plugin.json"));- const installSnapshot = pluginRoot === null ? null : await readJson(join83(pluginRoot, "lazycodex-install.json"));- const configPath = join83(codexHome, "config.toml");+ const manifest = pluginRoot === null ? null : await readJson(join84(pluginRoot, ".codex-plugin", "plugin.json"));+ const installSnapshot = pluginRoot === null ? null : await readJson(join84(pluginRoot, "lazycodex-install.json"));+ const configPath = join84(codexHome, "config.toml");const pluginVersion = stringField(manifest, "version");return {codexPath: detection.found && "path" in detection ? detection.path : null,@@ -101968,7 +102131,7 @@ function buildCodexIssues(summary) {if (summary.pluginRoot === null) {issues.push({title: "OMO Codex plugin is not installed",- description: `Expected cached plugin at ${join83("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,+ description: `Expected cached plugin at ${join84("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,fix: "Run: npx lazycodex-ai install",severity: "error",affects: ["plugin loading"]@@ -102033,12 +102196,12 @@ function buildCodexIssues(summary) {return issues;}async function resolveInstalledPluginRoot(codexHome) {- const pluginRoot = join83(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);+ const pluginRoot = join84(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);if (!existsSync57(pluginRoot))return null;const versions = await readdir14(pluginRoot, { withFileTypes: true });const candidates = versions.filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort(compareVersionsDescending);- return candidates.length === 0 ? null : join83(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);+ return candidates.length === 0 ? null : join84(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);}async function readCodexConfigSummary(configPath) {if (!existsSync57(configPath)) {@@ -102066,13 +102229,13 @@ async function readCodexConfigSummary(configPath) {async function readLinkedBins(binDir) {const linked = [];for (const name of CODEX_BIN_NAMES) {- if (await pathExists2(join83(binDir, process.platform === "win32" ? `${name}.cmd` : name)))+ if (await pathExists2(join84(binDir, process.platform === "win32" ? `${name}.cmd` : name)))linked.push(name);}return linked;}async function readLinkedAgents(codexHome) {- const agentsDir = join83(codexHome, "agents");+ const agentsDir = join84(codexHome, "agents");if (!existsSync57(agentsDir))return [];const entries = await readdir14(agentsDir, { withFileTypes: true });@@ -102206,7 +102369,7 @@ function resolveLatestVersion(input) {init_src();import { readdir as readdir15, readFile as readFile29, stat as stat7 } from "node:fs/promises";import { homedir as homedir23 } from "node:os";-import { dirname as dirname33, isAbsolute as isAbsolute13, join as join84, relative as relative9, resolve as resolve24, sep as sep9 } from "node:path";+import { dirname as dirname33, isAbsolute as isAbsolute13, join as join85, relative as relative9, resolve as resolve24, sep as sep9 } from "node:path";var CODEX_COMPONENTS_CHECK_ID = "codex-components";var CODEX_COMPONENTS_CHECK_NAME = "codex-components";var PLUGIN_DATA_DIR_NAME = "omo-sisyphuslabs";@@ -102216,7 +102379,7 @@ async function checkCodexComponents(deps = {}) {const env = deps.env ?? process.env;const platform = deps.platform ?? process.platform;const arch = deps.arch ?? process.arch;- const codexHome = resolve24(deps.codexHome ?? env["CODEX_HOME"] ?? join84(homedir23(), ".codex"));+ const codexHome = resolve24(deps.codexHome ?? env["CODEX_HOME"] ?? join85(homedir23(), ".codex"));const summary = await gatherCodexSummary({ ...deps, codexHome });if (summary.pluginRoot === null) {return {@@ -102241,7 +102404,7 @@ async function checkCodexComponents(deps = {}) {});}const runtimeSgDir = runtimeSgDirectory(codexHome, platform, arch);- const runtimeSgPath = join84(runtimeSgDir, sgBinaryName(platform));+ const runtimeSgPath = join85(runtimeSgDir, sgBinaryName(platform));const sg = findSgBinarySync({arch,env,@@ -102278,12 +102441,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 || !isRecord15(manifest["mcpServers"]))+ if (manifest === null || !isRecord16(manifest["mcpServers"]))continue;const manifestRoot = dirname33(manifestPath);const isRootManifest = resolve24(manifestRoot) === resolve24(pluginRoot);for (const server of Object.values(manifest["mcpServers"])) {- if (!isRecord15(server) || !Array.isArray(server["args"]))+ if (!isRecord16(server) || !Array.isArray(server["args"]))continue;for (const arg of server["args"]) {if (typeof arg !== "string" || !isPluginRuntimePathArg(arg))@@ -102353,7 +102516,7 @@ async function findManifestPaths(root, manifestName) {for (const entry of entries) {if (entry.name === "node_modules" || entry.name === ".git")continue;- const entryPath = join84(root, entry.name);+ const entryPath = join85(root, entry.name);if (entry.isDirectory()) {paths.push(...await findManifestPaths(entryPath, manifestName));continue;@@ -102369,7 +102532,7 @@ function collectHookCommands(value, commands) {collectHookCommands(item, commands);return;}- if (!isRecord15(value))+ if (!isRecord16(value))return;if (value["type"] === "command") {if (typeof value["command"] === "string")@@ -102397,18 +102560,18 @@ function isPluginRuntimePathArg(arg) {return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute13(arg));}function runtimeSgDirectory(codexHome, platform, arch) {- return join84(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));+ return join85(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));}function describeSgSource(sgPath, env, runtimeSgDir, platform) {const override = env[SG_PATH_ENV_KEY]?.trim();if (override !== undefined && override.length > 0 && sgPath === override)return `env override ${SG_PATH_ENV_KEY}`;- if (sgPath === join84(runtimeSgDir, sgBinaryName(platform)))+ if (sgPath === join85(runtimeSgDir, sgBinaryName(platform)))return "runtime dir";return "PATH";}async function readBootstrapStateSummary(codexHome) {- const statePath = join84(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");+ const statePath = join85(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");const raw = await readJson2(statePath);if (raw === null)return null;@@ -102424,7 +102587,7 @@ function parseDegradedEntries(value) {return [];const entries = [];for (const item of value) {- if (!isRecord15(item))+ if (!isRecord16(item))continue;if (typeof item["component"] !== "string" || typeof item["reason"] !== "string")continue;@@ -102458,7 +102621,7 @@ function degradedDetailLines(entries) {async function readJson2(path) {try {const parsed = JSON.parse(await readFile29(path, "utf8"));- return isRecord15(parsed) ? parsed : null;+ return isRecord16(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)return null;@@ -102479,7 +102642,7 @@ function normalizeRelative(root, target) {function normalizePathSeparators(path) {return path.split("\\").join("/");}-function isRecord15(value) {+function isRecord16(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}@@ -102487,16 +102650,16 @@ function isRecord15(value) {import { existsSync as existsSync58 } from "node:fs";import { readFile as readFile30 } from "node:fs/promises";import { homedir as homedir24 } from "node:os";-import { join as join85, resolve as resolve25 } from "node:path";+import { join as join86, resolve as resolve25 } from "node:path";var RUNTIME_WRAPPER_MARKER2 = "OMO_GENERATED_RUNTIME_WRAPPER";var CHECK_NAME = "codex-runtime-wrapper";var REINSTALL_COMMAND = "npx --yes lazycodex-ai@latest install --no-tui";async function checkCodexRuntimeWrapper(deps = {}) {- const codexHome = resolve25(deps.codexHome ?? process.env.CODEX_HOME ?? join85(homedir24(), ".codex"));+ const codexHome = resolve25(deps.codexHome ?? process.env.CODEX_HOME ?? join86(homedir24(), ".codex"));const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });const platform = deps.platform ?? process.platform;- const wrapperPath = join85(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");- const legacyWrapperPath = join85(binDir, platform === "win32" ? "omo.cmd" : "omo");+ const wrapperPath = join86(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");+ const legacyWrapperPath = join86(binDir, platform === "win32" ? "omo.cmd" : "omo");const [wrapper, legacyWrapper] = await Promise.all([readRuntimeWrapper(wrapperPath), readRuntimeWrapper(legacyWrapperPath)]);const issues = [];if (wrapper?.includes(RUNTIME_WRAPPER_MARKER2) === true) {@@ -103025,19 +103188,19 @@ import { createHash as createHash7 } from "node:crypto";import {chmodSync as chmodSync5,existsSync as existsSync61,- mkdirSync as mkdirSync15,- readdirSync as readdirSync11,+ mkdirSync as mkdirSync16,+ readdirSync as readdirSync12,readFileSync as readFileSync38,renameSync as renameSync7,unlinkSync as unlinkSync9,writeFileSync as writeFileSync12} from "node:fs";-import { basename as basename12, dirname as dirname34, join as join88 } from "node:path";+import { basename as basename12, dirname as dirname34, join as join89 } from "node:path";// packages/mcp-client-core/src/config-dir.tsimport { existsSync as existsSync59, realpathSync as realpathSync8 } from "node:fs";import { homedir as homedir25 } from "node:os";-import { join as join86, resolve as resolve26 } from "node:path";+import { join as join87, resolve as resolve26 } from "node:path";function resolveConfigPath2(pathValue) {const resolvedPath = resolve26(pathValue);if (!existsSync59(resolvedPath))@@ -103055,13 +103218,13 @@ function getOpenCodeCliConfigDir(env = process.env) {if (customConfigDir) {return resolveConfigPath2(customConfigDir);}- const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join86(homedir25(), ".config");- return resolveConfigPath2(join86(xdgConfigDir, "opencode"));+ const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join87(homedir25(), ".config");+ return resolveConfigPath2(join87(xdgConfigDir, "opencode"));}// packages/mcp-client-core/src/mcp-oauth/storage-index.tsimport { chmodSync as chmodSync4, existsSync as existsSync60, readFileSync as readFileSync37, renameSync as renameSync6, writeFileSync as writeFileSync11 } from "node:fs";-import { join as join87 } from "node:path";+import { join as join88 } from "node:path";var INDEX_FILE_NAME = "index.json";function isTokenIndex(value) {if (typeof value !== "object" || value === null || Array.isArray(value))@@ -103069,7 +103232,7 @@ function isTokenIndex(value) {return Object.values(value).every((entry) => typeof entry === "string");}function getIndexPath(storageDir) {- return join87(storageDir, INDEX_FILE_NAME);+ return join88(storageDir, INDEX_FILE_NAME);}function readTokenIndex(storageDir) {const indexPath = getIndexPath(storageDir);@@ -103113,16 +103276,16 @@ function deleteTokenIndexEntry(storageDir, hash) {var STORAGE_DIR_NAME = "mcp-oauth";var LEGACY_STORAGE_FILE_NAME = "mcp-oauth.json";function getMcpOauthStorageDir() {- return join88(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);+ return join89(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);}function getMcpOauthServerHash(serverHost, resource) {return createHash7("sha256").update(buildKey(serverHost, resource)).digest("hex").slice(0, 32);}function getMcpOauthStoragePath(serverHost, resource) {- return join88(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);+ return join89(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);}function getLegacyStoragePath() {- return join88(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);+ return join89(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);}function normalizeHost2(serverHost) {let host = serverHost.trim();@@ -103218,7 +103381,7 @@ function writeTokenFile(filePath, token) {try {const dir = dirname34(filePath);if (!existsSync61(dir)) {- mkdirSync15(dir, { recursive: true });+ mkdirSync16(dir, { recursive: true });}const tempPath = `${filePath}.tmp.${Date.now()}`;writeFileSync12(tempPath, JSON.stringify(token, null, 2), { encoding: "utf-8", mode: 384 });@@ -103301,7 +103464,7 @@ function listTokensByHost(serverHost) {for (const [hash, indexedKey] of Object.entries(index)) {if (!indexedKey.startsWith(prefix))continue;- const indexedToken = readTokenFile(join88(getMcpOauthStorageDir(), `${hash}.json`));+ const indexedToken = readTokenFile(join89(getMcpOauthStorageDir(), `${hash}.json`));if (indexedToken)result[indexedKey] = indexedToken;}@@ -103313,10 +103476,10 @@ function listAllTokens() {if (!existsSync61(dir))return result;const index = readTokenIndex(dir);- for (const entry of readdirSync11(dir, { withFileTypes: true })) {+ for (const entry of readdirSync12(dir, { withFileTypes: true })) {if (!entry.isFile() || !entry.name.endsWith(".json") || entry.name === "index.json")continue;- const token = readTokenFile(join88(dir, entry.name));+ const token = readTokenFile(join89(dir, entry.name));const hash = basename12(entry.name, ".json");if (token)result[index[hash] ?? hash] = token;diff --git a/plugins/omo/dist/cli/index.js b/plugins/omo/dist/cli/index.jsindex 2385793e..db7ebf74 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.79",+ version: "5.0.0-beta.80",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",@@ -246,7 +246,7 @@ var init_package = __esm(() => {zod: "^4.4.3"},devDependencies: {- "@code-yeongyu/senpi": "2026.9.19-2",+ "@code-yeongyu/senpi": "2026.9.20","@oh-my-opencode/agents-md-core": "workspace:*","@oh-my-opencode/ast-grep-mcp": "workspace:*","@oh-my-opencode/boulder-state": "workspace:*",@@ -285,18 +285,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.0.0-beta.79",- "oh-my-opencode-darwin-x64": "5.0.0-beta.79",- "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.79",- "oh-my-opencode-linux-arm64": "5.0.0-beta.79",- "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.79",- "oh-my-opencode-linux-x64": "5.0.0-beta.79",- "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.79",- "oh-my-opencode-linux-x64-musl": "5.0.0-beta.79",- "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.79",- "oh-my-opencode-windows-arm64": "5.0.0-beta.79",- "oh-my-opencode-windows-x64": "5.0.0-beta.79",- "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.79"+ "oh-my-opencode-darwin-arm64": "5.0.0-beta.80",+ "oh-my-opencode-darwin-x64": "5.0.0-beta.80",+ "oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.80",+ "oh-my-opencode-linux-arm64": "5.0.0-beta.80",+ "oh-my-opencode-linux-arm64-musl": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64-baseline": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64-musl": "5.0.0-beta.80",+ "oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.80",+ "oh-my-opencode-windows-arm64": "5.0.0-beta.80",+ "oh-my-opencode-windows-x64": "5.0.0-beta.80",+ "oh-my-opencode-windows-x64-baseline": "5.0.0-beta.80"},overrides: {"@earendil-works/pi-agent-core": "0.84.2",@@ -7243,13 +7243,8 @@ var init_category_model_requirements = __esm(() => {{ providers: ["openai", "openai-codex", "opencode"], model: "gpt-5.6-sol", variant: "max" }]},- deep: {+ "deep-low": {fallbackChain: [- {- providers: ["openai", "openai-codex", "github-copilot", "opencode"],- model: "gpt-6-astra",- variant: "high"- },{providers: ["openai", "openai-codex", "github-copilot", "opencode"],model: "gpt-5.6-sol",@@ -7257,6 +7252,15 @@ var init_category_model_requirements = __esm(() => {}]},+ "deep-high": {+ fallbackChain: [+ {+ providers: ["openai", "openai-codex", "github-copilot", "opencode"],+ model: "gpt-6-astra",+ variant: "high"+ }+ ]+ },artistry: {fallbackChain: [{@@ -7343,12 +7347,17 @@ var init_category_model_requirements = __esm(() => {{providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],model: "claude-fable-5-1",- variant: "medium"+ variant: "low"},{providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode"],model: "kimi-k3",- variant: "max"+ variant: "low"+ },+ {+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],+ model: "claude-opus-4-6",+ variant: "low"}]}@@ -8991,7 +9000,7 @@ var init_kimi_categories = __esm(() => {KIMI_CATEGORIES = [{name: "writing",- config: { model: "anthropic/claude-fable-5-1", variant: "medium" },+ config: { model: "anthropic/claude-fable-5-1", variant: "low" },description: "Documentation, prose, technical writing",promptAppend: WRITING_CATEGORY_PROMPT_APPEND}@@ -9017,20 +9026,20 @@ function isGpt6Model(model) {var init_types = () => {};// packages/omo-opencode/src/tools/delegate-task/openai-categories.ts+function isGptDeepLaneModel(model) {+ return model !== undefined && (isGpt6Model(model) || isGpt5_5Model(model) || isGpt5_6Model(model));+}function resolveUltrabrainCategoryPromptAppend(model) {if (model && isGpt6Model(model)) {return ULTRABRAIN_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA;}return ULTRABRAIN_CATEGORY_PROMPT_APPEND;}-function resolveDeepCategoryPromptAppend(model) {- if (model && isGpt6Model(model)) {- return DEEP_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA;- }- if (model && (isGpt5_5Model(model) || isGpt5_6Model(model))) {- return DEEP_CATEGORY_PROMPT_APPEND_GPT_5_5;- }- return DEEP_CATEGORY_PROMPT_APPEND;+function resolveDeepLowCategoryPromptAppend(model) {+ return isGptDeepLaneModel(model) ? DEEP_LOW_CATEGORY_PROMPT_APPEND_GPT : DEEP_LOW_CATEGORY_PROMPT_APPEND;+}+function resolveDeepHighCategoryPromptAppend(model) {+ return isGptDeepLaneModel(model) ? DEEP_HIGH_CATEGORY_PROMPT_APPEND_GPT : DEEP_HIGH_CATEGORY_PROMPT_APPEND;}function resolveUnspecifiedHighCategoryPromptAppend(model) {if (model && isGpt6Model(model)) {@@ -9049,14 +9058,23 @@ Success means:- one decision-complete recommendation, actionable without a follow-up question.Whatever that check leaves unsettled goes in the answer as an open question with what would settle it. When the goal bundles independent problems, solve the one the others depend on and return the rest as separately delegable items.-</Category_Context>`, DEEP_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA = `<Category_Context name="deep">-The orchestrator routed this task here for depth: one goal, one deliverable, and the time to earn it. The exploration budget is generous: read every file involved, trace callers and dependencies in both directions, and fan out explore and librarian subagents in parallel for the questions a single read wave cannot answer, until you can explain the full mechanism you are about to change; an edit made before that point is the failure this category exists to prevent.--**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**+</Category_Context>`, DEEP_HIGH_CATEGORY_PROMPT_APPEND_GPT = `<Category_Context name="deep-high">+The orchestrator routed this task here because a decision in it cannot be settled from evidence alone: a trade-off, a contract other code depends on, a mechanism with no pattern to copy, or correctness that has to be argued. One goal, one deliverable, and the time to earn it. The exploration budget is generous: read every file involved, trace callers and dependencies in both directions, and fan out explore and librarian subagents in parallel for the questions a single read wave cannot answer, until you can explain the full mechanism you are about to change; an edit made before that point is the failure this category exists to prevent.The goal is the authorization. Choose how to reach it yourself, and when it lists numbered steps or phases, deliver all of them in this turn as one task; a proposal, a plan awaiting approval, a simplified version, or a proof of concept is unfinished work. When the steps turn out to be independent problems sharing no reasoning, do the one the goal centers on and return the others as separately delegable items with what you learned. A question ends your turn and hands the task back unfinished, so decide from context, record each assumption in the final message, and stop early only for a blocker you cannot route around: a missing secret, a decision only the user can make, or three materially different attempts that all failed.-Fix the cause: trace at least two levels above the symptom before settling, and prefer the change that makes the failure impossible over the guard that hides it. Depth means understanding the mechanism, so the diff stays as small as the fix allows; on greenfield work choose strong defaults and finish something you would hand to a senior engineer. Close with the delivered change, the evidence that it works, and the assumptions you made.+Fix the cause: trace at least two levels above the symptom before settling, and prefer the change that makes the failure impossible over the guard that hides it. Depth means understanding the mechanism, so the diff stays as small as the fix allows; on greenfield work choose strong defaults and finish something you would hand to a senior engineer. Close with the delivered change, the evidence that it works, the decision you settled with the alternative you rejected, and the assumptions you made.+</Category_Context>`, DEEP_LOW_CATEGORY_PROMPT_APPEND_GPT = `<Category_Context name="deep-low">+The orchestrator routed this task here as the default deep lane: one goal, one deliverable, decisions that the code, tests, and history can settle. Read until you can explain the mechanism you are about to change, including its callers, then act; fan out explore and librarian subagents when one read wave cannot answer a question.++Success means:+- every step or phase the goal lists is delivered in this turn as one task; a plan awaiting approval, a simplified version, or a proof of concept is unfinished work;+- the change removes the cause you traced, at least two levels above the symptom, with the diff as small as that fix allows;+- the final message reports the change, the evidence that it works, and each assumption you decided from context, because a question ends your turn and returns the task unfinished.++Escalation is a complete result. When the correct choice turns out to depend on a trade-off the brief does not settle, on a contract other packages rely on, or on an argument about invariants you cannot verify by running something, stop before editing and return \`ESCALATE: deep-high\` as the first line, followed by what you read, the decision you could not settle, and the options you saw. A confident guess through that decision costs more than the escalation.++Stop the moment the success criteria hold; work past them is a defect. Stop early only for a blocker you cannot route around: a missing secret, a decision only the user can make, or three materially different attempts that all failed.</Category_Context>`, UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA = `<Category_Context name="unspecified-high">The orchestrator routed this task here because it spans systems or modules and fits no specialist category, so breadth of consideration is what this category buys. Before committing to an approach, survey the whole surface the change touches: every caller and consumer of what you will modify, sibling modules that implement the same pattern, the tests, docs, schemas, config, scripts, and CI that encode the current behavior, and the history of the area (git log and blame) for the reasons it is shaped this way. Fan out explore and librarian subagents in parallel when that surface is wider than one read wave covers.@@ -9081,49 +9099,24 @@ Response format:- Bottom line (2-3 sentences)- Action plan (numbered steps)- Risks and mitigations (if relevant)-</Category_Context>`, DEEP_CATEGORY_PROMPT_APPEND = `<Category_Context>-You are working on GOAL-ORIENTED AUTONOMOUS tasks.--You are NOT an interactive assistant. You are an autonomous problem-solver.--**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**--BEFORE making ANY changes:-1. Silently explore the codebase extensively (5-15 minutes of reading is normal)-2. Read related files, trace dependencies, understand the full context-3. Build a complete mental model of the problem space-4. Do not ask clarifying questions - the goal is already defined--You receive a GOAL. When the goal includes numbered steps or phases, treat them as one atomic task broken into sub-steps, not as separate independent tasks. Figure out HOW to achieve it yourself. Thorough research before any action.--Sub-steps of ONE goal = execute all steps as phases of one atomic task.-Genuinely independent tasks = flag and refuse, require separate delegations.--Approach: explore extensively, understand deeply, then act decisively. Prefer comprehensive solutions over quick patches. If the goal is unclear, make reasonable assumptions and proceed.--Minimal status updates. Focus on results, not play-by-play. Report completion with summary of changes.-</Category_Context>`, DEEP_CATEGORY_PROMPT_APPEND_GPT_5_5 = `<Category_Context name="deep">-You are operating in DEEP mode. This is the category reserved for goal-oriented autonomous work on hairy problems that reward thorough exploration and comprehensive solutions.--**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**--The orchestrator chose this category because the task benefits from depth over speed. You should feel empowered to spend the time needed: five to fifteen minutes of silent exploration before the first edit is normal and correct. Rushing to implementation on a deep task is a failure mode, not a feature.+</Category_Context>`, DEEP_LOW_CATEGORY_PROMPT_APPEND = `<Category_Context name="deep-low">+You are working on a GOAL-ORIENTED AUTONOMOUS task: one goal, one deliverable, decisions the codebase can settle.-# How deep mode adjusts the base behavior+Before any change, read the files involved and trace their dependencies until you can explain the mechanism you are about to modify. The goal is already defined: do not ask clarifying questions; make reasonable assumptions, record them in the final message, and proceed.-**Exploration budget: generous.** Read the files you need, trace dependencies both directions, fire 2-5 explore/librarian sub-agents in parallel for broader questions. Build a complete mental model before the first \`apply_patch\`. Exploration here is an investment, not overhead.+When the goal lists numbered steps or phases, execute all of them in this turn as one atomic task. Genuinely independent tasks bundled into one goal: flag them and do only the one the goal centers on.-**Goal, not plan.** You receive a GOAL describing the desired outcome. You figure out HOW to achieve it. The orchestrator deliberately did not hand you a step-by-step plan; producing one and asking for approval is not what was asked. Execute.+Escalation is a complete result. When the correct choice depends on a trade-off the brief does not settle, a contract other packages rely on, or an argument about invariants you cannot verify by running something, stop before editing and return \`ESCALATE: deep-high\` as the first line, followed by what you read, the decision you could not settle, and the options you saw.-**Atomic task treatment.** When the goal contains numbered steps or phases, treat them as sub-steps of ONE task and execute them all in this turn. Splitting them across turns is wrong unless they reveal an architectural blocker that requires the user's input. If the "steps" turn out to be genuinely independent tasks that should have been separate delegations, flag that in your final message and refuse the ones beyond scope.+Prefer the fix that removes the cause over the patch that hides the symptom. Report completion with the changes made and the evidence they work.+</Category_Context>`, DEEP_HIGH_CATEGORY_PROMPT_APPEND = `<Category_Context name="deep-high">+You are working on a GOAL-ORIENTED AUTONOMOUS task that was escalated here because a decision in it cannot be settled from evidence alone: a trade-off, a contract other code depends on, a mechanism with no pattern to copy, or correctness that has to be argued.-**Root cause bias.** Prefer root-cause fixes over symptom fixes. A null check around \`foo()\` is a symptom fix; fixing whatever causes \`foo()\` to return unexpected values is the root fix. Trace at least two levels up before settling on an answer. In deep mode, you have permission (and the expectation) to do the deeper fix.+Before any change, read the files involved and trace their dependencies until you can explain the mechanism you are about to modify. The goal is already defined: do not ask clarifying questions; make reasonable assumptions, record them in the final message, and proceed.-**Ambition scaled to context.** For brand-new greenfield work, be ambitious. Choose strong defaults, avoid AI-slop aesthetics, produce something you would be proud to hand to another senior engineer. For changes in an existing codebase, be surgical and respect the existing patterns; depth does not mean invasiveness.+When the goal lists numbered steps or phases, execute all of them in this turn as one atomic task. Genuinely independent tasks bundled into one goal: flag them and do only the one the goal centers on.-**Completion bar: full delivery.** "Simplified version", "proof of concept", and "you can extend this later" are not acceptable deliveries for a deep task. The orchestrator routed here specifically for a complete solution. If you hit a genuine blocker (missing secret, design decision only the user can make, three materially different attempts all failed), document it and return; otherwise, finish the task.--**Status cadence: sparse.** The user is not on the other side of this conversation; the orchestrator is, and they will synthesize your progress. Send commentary only at meaningful phase transitions (starting exploration, starting implementation, starting verification, hitting a genuine blocker). Do not narrate every tool call; silence during focused work is expected.+Prefer the fix that removes the cause over the patch that hides the symptom. Report completion with the changes made, the evidence they work, and the decision you settled with the alternative you rejected.</Category_Context>`, QUICK_CATEGORY_PROMPT_APPEND = `<Category_Context>You are working on SMALL / QUICK tasks.@@ -9142,10 +9135,9 @@ You are working on tasks that don't fit specific categories but require moderate</Category_Context>`, UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits, effort is moderate, and scope stays within a few files/modules. Prefer any matching specialist category.</Selection_Gate><Caller_Warning>Provide explicit must-do steps, forbidden scope, and concrete success criteria.</Caller_Warning>`, UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND = `<Category_Context>You are working on tasks that don't fit specific categories but require substantial effort.-</Category_Context>`, UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits and substantial effort spans systems/modules with broad impact. Use unspecified-low for contained moderate work.</Selection_Gate>`, GPT_FLAGSHIP_GATE_MODELS, OPENAI_CATEGORIES;+</Category_Context>`, UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits and substantial effort spans systems/modules with broad impact. Use unspecified-low for contained moderate work.</Selection_Gate>`, DEEP_LOW_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Route here when one subsystem plus its callers holds the mechanism and the evidence, once read, leaves one right answer. Wide but mechanical work belongs here or in a quick batch. When unsure, choose deep-low: a misrouted child returns \`ESCALATE: deep-high\` after one cheap attempt; re-spawn the same brief as deep-high with its findings.</Selection_Gate>`, DEEP_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Route here only when you can name the decision evidence cannot settle: a trade-off with no single right answer, a contract change crossing a package or process boundary, a mechanism with no in-repo pattern to copy, or correctness argued from invariants rather than observed in a test. Wide scope with easy decisions is deep-low or unspecified-high; reasoning as the deliverable is ultrabrain.</Selection_Gate>`, DEEP_LOW_GATE_MODEL = "gpt-5.6-sol", DEEP_HIGH_GATE_MODEL = "gpt-6-astra", OPENAI_CATEGORIES;var init_openai_categories = __esm(() => {init_types();- GPT_FLAGSHIP_GATE_MODELS = ["gpt-6-astra", "gpt-5.6-sol"];OPENAI_CATEGORIES = [{name: "ultrabrain",@@ -9155,12 +9147,22 @@ var init_openai_categories = __esm(() => {resolvePromptAppend: resolveUltrabrainCategoryPromptAppend},{- name: "deep",+ name: "deep-low",+ config: { model: "openai/gpt-5.6-sol", variant: "medium" },+ description: "Default deep lane: one goal, one deliverable, decisions the child can settle from what it reads. **3D graphics, computer/browser use, CAPTCHA, multimodal, backend, logic, and algorithm work is routed here.** Multiple goals fan out as parallel calls.",+ callerGuidance: DEEP_LOW_CATEGORY_CALLER_GUIDANCE,+ promptAppend: DEEP_LOW_CATEGORY_PROMPT_APPEND,+ resolvePromptAppend: resolveDeepLowCategoryPromptAppend,+ requiresModel: DEEP_LOW_GATE_MODEL+ },+ {+ name: "deep-high",config: { model: "openai/gpt-6-astra", variant: "high" },- description: "**MANDATORY: USE deep FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.** Deep autonomous problem-solving for complex research. ONE goal + ONE deliverable per call \u2014 multiple goals must fan out as parallel `deep` calls, never bundled into one.",- promptAppend: DEEP_CATEGORY_PROMPT_APPEND,- resolvePromptAppend: resolveDeepCategoryPromptAppend,- requiresModel: GPT_FLAGSHIP_GATE_MODELS+ description: "Escalation deep lane: a goal whose central decision cannot be settled from evidence alone. Same one-goal, one-deliverable contract as deep-low.",+ callerGuidance: DEEP_HIGH_CATEGORY_CALLER_GUIDANCE,+ promptAppend: DEEP_HIGH_CATEGORY_PROMPT_APPEND,+ resolvePromptAppend: resolveDeepHighCategoryPromptAppend,+ requiresModel: DEEP_HIGH_GATE_MODEL},{name: "quick",@@ -73169,6 +73171,68 @@ var init_config = __esm(() => {}).strict();});+// packages/omo-config-core/src/schema/legacy-category-names.ts+function canonicalCategoryName(name) {+ return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] : name;+}+function isRecord9(value) {+ return typeof value === "object" && value !== null && !Array.isArray(value);+}+function joinPath(path, segment) {+ return [...path, segment].join(".");+}+function canonicalizeCategoriesRecord(categories, path, renames) {+ const result = {};+ for (const [name, definition] of Object.entries(categories)) {+ const canonical = canonicalCategoryName(name);+ if (canonical === name) {+ result[name] = definition;+ continue;+ }+ const dropped = Object.hasOwn(categories, canonical);+ renames.push({ canonical, dropped, legacy: name, path: joinPath(path, name) });+ if (!dropped)+ result[canonical] = definition;+ }+ return result;+}+function canonicalizeValue(value, path, renames) {+ if (Array.isArray(value)) {+ return value.map((entry, index) => canonicalizeValue(entry, [...path, String(index)], renames));+ }+ if (!isRecord9(value))+ return value;+ const result = {};+ for (const [key, entry] of Object.entries(value)) {+ if (key === "categories" && isRecord9(entry)) {+ result[key] = canonicalizeCategoriesRecord(entry, [...path, key], renames);+ continue;+ }+ if (key === "category" && typeof entry === "string") {+ const canonical = canonicalCategoryName(entry);+ if (canonical !== entry) {+ renames.push({ canonical, dropped: false, legacy: entry, path: joinPath(path, key) });+ }+ result[key] = canonical;+ continue;+ }+ result[key] = canonicalizeValue(entry, [...path, key], renames);+ }+ return result;+}+function canonicalizeLegacyCategoryNames(document) {+ const renames = [];+ const canonicalized = isRecord9(document) ? canonicalizeValue(document, [], renames) : {};+ return { document: canonicalized, renames };+}+function hasLegacyCategoryNames(document) {+ return canonicalizeLegacyCategoryNames(document).renames.length > 0;+}+var LEGACY_CATEGORY_NAME_ALIASES;+var init_legacy_category_names = __esm(() => {+ LEGACY_CATEGORY_NAME_ALIASES = { deep: "deep-low" };+});+// packages/omo-config-core/src/schema/index.tsvar init_schema = __esm(() => {init_agent();@@ -73178,6 +73242,7 @@ var init_schema = __esm(() => {init_format_on_mutation();init_git_master();init_harness();+ init_legacy_category_names();init_memory();init_model_catalog();init_model_profile();@@ -73437,21 +73502,21 @@ function hasUnsafeUnrecognizedKey(issues) {function hasTamperedPrototype(value) {if (Array.isArray(value))return value.some((entry) => hasTamperedPrototype(entry));- if (!isRecord9(value))+ if (!isRecord10(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 isRecord9(value) {+function isRecord10(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 (!isRecord9(next))+ if (!isRecord10(next))return null;container = next;}@@ -73553,6 +73618,15 @@ function readConfigSource(path, scope, fileSystem) {value: parsedRecord};}+function legacyCategoryDiagnostic(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 category name 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();@@ -73571,8 +73645,12 @@ function loadOmoConfig(options = {}) {if (loaded.diagnostic !== undefined)diagnostics.push(loaded.diagnostic);if (loaded.value !== undefined) {- layers.push({ config: loaded.value, source: loaded.source });- merged = mergeOmoConfigRecords(merged, loaded.value);+ const canonicalized = canonicalizeLegacyCategoryNames(loaded.value);+ 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 requestedProfile = resolveOmoProfileName({@@ -74658,6 +74736,9 @@ function executePlan(input) {const existingSources = plan.sources.filter((source) => fileSystem.existsSync(source.path));const target = targetDocument(plan.targetPath, fileSystem);const replaceTarget = plan.mode === "replace-target";+ if (plan.shouldRun !== undefined && !plan.shouldRun(target)) {+ return { diagnostics: [], journalResumed, status: "skipped" };+ }if (!shouldRunMigration({legacySourcesExist: replaceTarget ? fileSystem.existsSync(plan.targetPath) : existingSources.length > 0,migrationId: plan.id,@@ -76246,6 +76327,19 @@ var init_reasoning_unification = __esm(() => {init_record_values();});+// packages/omo-opencode/src/config-migration/category-deep-split.ts+function transformCategoryDeepSplit(document) {+ const { document: canonicalized, renames } = canonicalizeLegacyCategoryNames(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 CATEGORY_DEEP_SPLIT_MIGRATION_ID = "2026-09-category-deep-split";+var init_category_deep_split = __esm(() => {+ init_src4();+});+// packages/omo-opencode/src/config-migration/migration-plans.tsfunction backupTimestamp(value) {return value ?? new Date().toISOString().replace(/[:.]/g, "-");@@ -76312,6 +76406,18 @@ function reasoningPlan(targetPath) {transform: inspect};}+function categoryDeepSplitPlan(targetPath) {+ const inspect = (sources) => transformCategoryDeepSplit(sources[0]?.value);+ return {+ id: CATEGORY_DEEP_SPLIT_MIGRATION_ID,+ inspect,+ mode: "replace-target",+ shouldRun: hasLegacyCategoryNames,+ sources: [],+ targetPath,+ transform: inspect+ };+}function existingOmoConfigPath(directory, options) {const fileSystem = discoveryFileSystem(options);for (const fileName of ["omo.jsonc", "omo.json"]) {@@ -76371,7 +76477,12 @@ function createLegacyConfigMigrationPlans(options) {}for (const plan of legacyPlans)addReasoningTarget(plan.targetPath);- return [...legacyPlans, ...[...reasoningTargets.values()].map(reasoningPlan)];+ const inPlaceTargets = [...reasoningTargets.values()];+ return [+ ...legacyPlans,+ ...inPlaceTargets.map(reasoningPlan),+ ...inPlaceTargets.map(categoryDeepSplitPlan)+ ];}var init_migration_plans = __esm(() => {init_discovery2();@@ -76380,6 +76491,8 @@ var init_migration_plans = __esm(() => {init_transform_config_jsonc();init_transform_opencode();init_reasoning_unification();+ init_category_deep_split();+ init_src4();});// packages/omo-opencode/src/config-migration/migration-executor.ts@@ -76953,37 +77066,82 @@ var init_config_manager = __esm(() => {init_backup_config();});+// packages/telemetry-core/src/day-claim.ts+import { closeSync as closeSync3, mkdirSync as mkdirSync8, openSync as openSync3, readdirSync as readdirSync7, rmSync as rmSync2 } from "fs";+import { join as join51 } from "path";+function getTelemetryDayClaimFilePath(stateDir, dayUTC) {+ return join51(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);+}+function claimUtcDay(stateDir, dayUTC) {+ try {+ mkdirSync8(stateDir, { recursive: true });+ closeSync3(openSync3(getTelemetryDayClaimFilePath(stateDir, dayUTC), "wx"));+ } catch (error) {+ return error.code === "EEXIST" ? "already-claimed" : "unavailable";+ }+ pruneSupersededClaims(stateDir, dayUTC);+ return "claimed";+}+function pruneSupersededClaims(stateDir, dayUTC) {+ const currentClaim = `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`;+ let entries;+ try {+ entries = readdirSync7(stateDir);+ } catch {+ return;+ }+ for (const entry of entries) {+ if (entry === currentClaim)+ continue;+ if (!entry.startsWith(CLAIM_PREFIX) || !entry.endsWith(CLAIM_SUFFIX))+ continue;+ try {+ rmSync2(join51(stateDir, entry), { force: true });+ } catch {}+ }+}+var CLAIM_PREFIX = "daily-active.", CLAIM_SUFFIX = ".claim";+var init_day_claim = () => {};+// packages/telemetry-core/src/activity-state.ts-import { existsSync as existsSync24, mkdirSync as mkdirSync8, readFileSync as readFileSync11 } from "fs";-import { basename as basename8, join as join51 } from "path";+import { existsSync as existsSync24, mkdirSync as mkdirSync9, readFileSync as readFileSync11 } from "fs";+import { basename as basename8, join as join52 } from "path";function resolveTelemetryStateDir(product, options = {}) {const dataDir = resolveXdgDataDir(product.cacheDirName, {env: options.env,osProvider: options.osProvider});- const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join51(options.env.XDG_DATA_HOME, product.cacheDirName);+ const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join52(options.env.XDG_DATA_HOME, product.cacheDirName);if (dataDir === xdgStateDir || xdgStateDir === undefined && basename8(dataDir) === product.cacheDirName) {return dataDir;}- return join51(dataDir, product.cacheDirName);+ return join52(dataDir, product.cacheDirName);}function getTelemetryActivityStateFilePath(stateDir) {- return join51(stateDir, POSTHOG_ACTIVITY_STATE_FILE);+ return join52(stateDir, POSTHOG_ACTIVITY_STATE_FILE);}function getDailyActiveCaptureState(input) {- const state = readPostHogActivityState(input.stateDir, input.diagnostics);const dayUTC = getUtcDayString(input.now ?? new Date);- const captureDaily = state.lastActiveDayUTC !== dayUTC;- if (captureDaily) {+ if (capturedDaysByStateDir.get(input.stateDir) === dayUTC) {+ return { dayUTC, captureDaily: false };+ }+ const state = readPostHogActivityState(input.stateDir, input.diagnostics);+ if (state.lastActiveDayUTC === dayUTC) {+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ return { dayUTC, captureDaily: false };+ }+ const claim = claimUtcDay(input.stateDir, dayUTC);+ capturedDaysByStateDir.set(input.stateDir, dayUTC);+ if (claim === "already-claimed") {+ return { dayUTC, captureDaily: false };+ }+ if (claim === "claimed") {writePostHogActivityState(input.stateDir, {...state,lastActiveDayUTC: dayUTC}, input.diagnostics);}- return {- dayUTC,- captureDaily- };+ return { dayUTC, captureDaily: true };}function getUtcDayString(date) {return date.toISOString().slice(0, 10);@@ -77016,7 +77174,7 @@ function readPostHogActivityState(stateDir, diagnostics) {function writePostHogActivityState(stateDir, nextState, diagnostics) {const stateFilePath = getTelemetryActivityStateFilePath(stateDir);try {- mkdirSync8(stateDir, { recursive: true });+ mkdirSync9(stateDir, { recursive: true });writeFileAtomically(stateFilePath, `${JSON.stringify(nextState, null, 2)}`);} catch (error) {@@ -77028,26 +77186,28 @@ function writePostHogActivityState(stateDir, nextState, diagnostics) {});}}-var POSTHOG_ACTIVITY_STATE_FILE = "posthog-activity.json";+var POSTHOG_ACTIVITY_STATE_FILE = "posthog-activity.json", capturedDaysByStateDir;var init_activity_state = __esm(() => {init_atomic_write();init_xdg_data_dir();+ init_day_claim();+ capturedDaysByStateDir = new Map;});// packages/telemetry-core/src/constants.tsvar DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";// packages/telemetry-core/src/diagnostics.ts-import { appendFileSync as appendFileSync2, existsSync as existsSync25, mkdirSync as mkdirSync9, readFileSync as readFileSync12 } from "fs";-import { join as join52 } from "path";+import { appendFileSync as appendFileSync2, existsSync as existsSync25, mkdirSync as mkdirSync10, readFileSync as readFileSync12 } from "fs";+import { join as join53 } from "path";function getTelemetryDiagnosticsFilePath(diagnosticsDir) {- return join52(diagnosticsDir, DIAGNOSTICS_FILE_NAME);+ return join53(diagnosticsDir, DIAGNOSTICS_FILE_NAME);}function writeTelemetryDiagnostic(input, options) {const now = options.now ?? new Date;try {cleanupTelemetryDiagnostics({ diagnosticsDir: options.diagnosticsDir, now });- mkdirSync9(options.diagnosticsDir, { recursive: true });+ mkdirSync10(options.diagnosticsDir, { recursive: true });appendFileSync2(getTelemetryDiagnosticsFilePath(options.diagnosticsDir), `${JSON.stringify(toDiagnosticRecord(input, now))}`, "utf-8");} catch (error) {@@ -77116,7 +77276,7 @@ function shouldRetainLine(line, cutoffMs) {function parseDiagnosticLine(line) {try {const parsed = JSON.parse(line);- if (!isRecord11(parsed)) {+ if (!isRecord12(parsed)) {return null;}return parsed;@@ -77127,7 +77287,7 @@ function parseDiagnosticLine(line) {throw error;}}-function isRecord11(value) {+function isRecord12(value) {return value !== null && typeof value === "object" && !Array.isArray(value);}function trimToMaxBytes(lines) {@@ -82501,7 +82661,7 @@ function coerceBool(value) {function coerceString(value) {return typeof value == "string" ? value : undefined;}-function isRecord12(value) {+function isRecord13(value) {return typeof value == "object" && value !== null && !Array.isArray(value);}function toRfc3339(timestamp) {@@ -82523,7 +82683,7 @@ function relocateInto(properties, key, value) {properties[key] = value;}function buildV1Event(message) {- const sourceProperties = isRecord12(message.properties) ? message.properties : {};+ const sourceProperties = isRecord13(message.properties) ? message.properties : {};const properties = {...sourceProperties};@@ -84553,7 +84713,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.0.0-beta.79",+ version: "5.0.0-beta.80",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -85425,7 +85585,7 @@ var init_update_toasts = __esm(() => {// packages/omo-opencode/src/hooks/auto-update-checker/hook/background-update-check.tsimport { existsSync as existsSync46 } from "fs";-import { dirname as dirname30, join as join74 } from "path";+import { dirname as dirname30, join as join75 } from "path";import { fileURLToPath as fileURLToPath5 } from "url";function defaultGetModuleHostingWorkspace() {try {@@ -85579,7 +85739,7 @@ var init_background_update_check = __esm(() => {init_update_toasts();defaultDeps4 = {existsSync: existsSync46,- join: join74,+ join: join75,runBunInstallWithDetails,log: log2,getOpenCodeCacheDir,@@ -88001,7 +88161,7 @@ function getUnsupportedOpenCodeVersionMessage(openCodeVersion) {}// packages/omo-codex/src/install/install-codex.ts-import { join as join53, resolve as resolve12 } from "path";+import { join as join54, resolve as resolve12 } from "path";// packages/omo-codex/src/install/codex-default-role-config.tsinit_src4();@@ -90620,10 +90780,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {} catch {return null;}- if (!isRecord10(cache) || !Array.isArray(cache.models))+ if (!isRecord11(cache) || !Array.isArray(cache.models))return null;for (const entry of cache.models) {- if (!isRecord10(entry))+ if (!isRecord11(entry))continue;if (entry.slug !== model && entry.id !== model)continue;@@ -90648,7 +90808,7 @@ function readRootModelCatalogPath(config) {const single = config.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);return single?.[1] ?? null;}-function isRecord10(value) {+function isRecord11(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}function removeFeatureFlagSetting(config, featureName) {@@ -92493,7 +92653,7 @@ async function runCodexInstaller(options = {}) {const env = options.env ?? process.env;const platform = options.platform ?? process.platform;const repoRoot = resolve12(options.repoRoot ?? findRepoRoot({ importerDir: import.meta.dir, env }));- const codexHome = resolve12(options.codexHome ?? env.CODEX_HOME ?? join53(homedir6(), ".codex"));+ const codexHome = resolve12(options.codexHome ?? env.CODEX_HOME ?? join54(homedir6(), ".codex"));const projectDirectory = resolve12(options.projectDirectory ?? env.OMO_CODEX_PROJECT ?? process.cwd());const binDir = resolveCodexInstallerBinDir({ binDir: options.binDir, codexHome, env });const runCommand = options.runCommand ?? defaultRunCommand;@@ -92510,9 +92670,9 @@ async function runCodexInstaller(options = {}) {if (!gitBashResolution.found) {throw new Error(gitBashResolution.installHint);}- const codexPackageRoot = join53(repoRoot, "packages", "omo-codex");+ const codexPackageRoot = join54(repoRoot, "packages", "omo-codex");const marketplace = await readMarketplace(repoRoot, {- marketplacePath: join53(codexPackageRoot, "marketplace.json")+ marketplacePath: join54(codexPackageRoot, "marketplace.json")});const distributionManifest = await readDistributionManifest(repoRoot);const installed = [];@@ -92558,7 +92718,7 @@ async function runCodexInstaller(options = {}) {if (runtimeLink !== null)log(`Linked ${runtimeLink.name} -> ${runtimeLink.target}`);else- log(`Warning: skipped the omo-agent-toolkit runtime wrapper because ${join53(repoRoot, "dist", "cli", "index.js")} is missing; omo-agent-toolkit ulw-loop commands will be unavailable until a package shipping dist/cli is installed`);+ log(`Warning: skipped the omo-agent-toolkit runtime wrapper because ${join54(repoRoot, "dist", "cli", "index.js")} is missing; omo-agent-toolkit ulw-loop commands will be unavailable until a package shipping dist/cli is installed`);}pluginSources.push({ name: entry.name, sourcePath });installed.push(plugin);@@ -92625,13 +92785,13 @@ async function runCodexInstaller(options = {}) {continue;log(`Warning: deferred legacy Codex LSP daemon cleanup for v${cleanup.version}: ${cleanup.reason}`);}- const marketplaceRoot = join53(codexHome, "plugins", "cache", marketplace.name);+ const marketplaceRoot = join54(codexHome, "plugins", "cache", marketplace.name);await writeCachedMarketplaceManifest({marketplaceName: marketplace.name,marketplaceRoot,plugins: installed});- const configPath = join53(codexHome, "config.toml");+ const configPath = join54(codexHome, "config.toml");await updateCodexConfig({configPath,repoRoot: codexPackageRoot,@@ -92690,7 +92850,7 @@ function findRepoRootFromImporter(importerDir) {for (let depth = 0;depth <= 7; depth += 1) {if (isRepoRootWithCodexPlugin(current))return current;- for (const wrapperPackageRoot of [join53(current, "node_modules", "oh-my-openagent"), join53(current, "oh-my-openagent")]) {+ for (const wrapperPackageRoot of [join54(current, "node_modules", "oh-my-openagent"), join54(current, "oh-my-openagent")]) {if (isRepoRootWithCodexPlugin(wrapperPackageRoot))return wrapperPackageRoot;}@@ -92708,7 +92868,7 @@ function findRepoRoot(input) {return findRepoRootFromImporter(input.importerDir);}function isRepoRootWithCodexPlugin(repoRoot) {- return existsSync26(join53(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));+ return existsSync26(join54(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));}function codexMarketplaceSource(marketplaceRoot) {return { sourceType: "local", source: marketplaceRoot };@@ -92845,11 +93005,11 @@ function defaultRunCommand2(command, args) {// packages/omo-codex/src/install/codex-cleanup.tsimport { lstat as lstat15, readFile as readFile25, readdir as readdir13, rm as rm13, rmdir } from "fs/promises";import { homedir as homedir8 } from "os";-import { isAbsolute as isAbsolute11, join as join56, relative as relative6, resolve as resolve15 } from "path";+import { isAbsolute as isAbsolute11, join as join57, relative as relative6, resolve as resolve15 } from "path";// packages/omo-codex/src/install/codex-cleanup-bins.tsimport { lstat as lstat13, readFile as readFile23, readdir as readdir12, readlink as readlink6, rm as rm12 } from "fs/promises";-import { dirname as dirname18, isAbsolute as isAbsolute9, join as join54, resolve as resolve13 } from "path";+import { dirname as dirname18, isAbsolute as isAbsolute9, join as join55, resolve as resolve13 } from "path";var ROOT_RUNTIME_BIN_NAME = "omo";var MANAGED_CODEX_BIN_NAMES = new Set([ROOT_RUNTIME_BIN_NAME,@@ -92879,7 +93039,7 @@ async function removeManagedCodexBins(binDir, platform) {const binName = managedBinNameForEntry2(entry.name, platform);if (binName === null || !MANAGED_CODEX_BIN_NAMES.has(binName))continue;- const linkPath = join54(binDir, entry.name);+ const linkPath = join55(binDir, entry.name);if (await isManagedCodexBin(linkPath, platform, binName)) {await rm12(linkPath, { force: true });removed.push(linkPath);@@ -93032,7 +93192,7 @@ function nodeErrorCode5(error) {}// packages/omo-codex/src/install/codex-cleanup-safety.ts-import { dirname as dirname20, isAbsolute as isAbsolute10, join as join55, relative as relative5, resolve as resolve14 } from "path";+import { dirname as dirname20, isAbsolute as isAbsolute10, join as join56, relative as relative5, resolve as resolve14 } from "path";function codexHomeResolvesToFilesystemRoot(codexHome) {const resolved = resolve14(codexHome);return dirname20(resolved) === resolved;@@ -93049,11 +93209,11 @@ function validateManagedCleanupTarget(input) {if (target === codexHome)return skipped(input.path, "outside managed Codex cleanup scope");const exactManagedRoots = new Set([- resolve14(join55(codexHome, "plugins", "cache", "sisyphuslabs")),- resolve14(join55(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),- resolve14(join55(codexHome, "runtime", "ast-grep")),- resolve14(join55(codexHome, "runtime", "node")),- resolve14(join55(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))+ resolve14(join56(codexHome, "plugins", "cache", "sisyphuslabs")),+ resolve14(join56(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),+ resolve14(join56(codexHome, "runtime", "ast-grep")),+ resolve14(join56(codexHome, "runtime", "node")),+ resolve14(join56(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))]);if (exactManagedRoots.has(target))return null;@@ -93083,8 +93243,8 @@ function skipped(path, reason) {var INSTALLED_AGENTS_MANIFEST = ".installed-agents.json";async function cleanupCodexLight(input = {}) {const env = input.env ?? process.env;- const codexHome = resolve15(input.codexHome ?? env.CODEX_HOME ?? join56(homedir8(), ".codex"));- const configPath = join56(codexHome, "config.toml");+ const codexHome = resolve15(input.codexHome ?? env.CODEX_HOME ?? join57(homedir8(), ".codex"));+ const configPath = join57(codexHome, "config.toml");const installedBinDir = await readInstalledCodexBinDir(codexHome);const agentPaths = await collectInstalledAgentPaths(codexHome, configPath);const configCleanup = await cleanupCodexConfig(configPath, input.now);@@ -93138,17 +93298,17 @@ function firstConfiguredPath(...values) {}function managedGlobalStatePaths(codexHome) {return [- join56(codexHome, "plugins", "cache", "sisyphuslabs"),- join56(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),- join56(codexHome, "runtime", "ast-grep"),- join56(codexHome, "runtime", "node"),- join56(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")+ join57(codexHome, "plugins", "cache", "sisyphuslabs"),+ join57(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),+ join57(codexHome, "runtime", "ast-grep"),+ join57(codexHome, "runtime", "node"),+ join57(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")];}var BOOTSTRAP_DATA_GLOB_MAX_DEPTH = 5;async function collectBootstrapDataDirsByGlob(codexHome) {const results = [];- await walkForManagedBootstrapDirs(join56(codexHome, "plugins"), 0, results);+ await walkForManagedBootstrapDirs(join57(codexHome, "plugins"), 0, results);return results;}async function walkForManagedBootstrapDirs(directory, depth, results) {@@ -93160,9 +93320,9 @@ async function walkForManagedBootstrapDirs(directory, depth, results) {for (const entry of entries) {if (!entry.isDirectory())continue;- const childPath = join56(directory, entry.name);+ const childPath = join57(directory, entry.name);if (isManagedBootstrapOwnerName(entry.name)) {- const bootstrapDir = join56(childPath, "bootstrap");+ const bootstrapDir = join57(childPath, "bootstrap");if (await exists6(bootstrapDir))results.push(bootstrapDir);continue;@@ -93196,7 +93356,7 @@ async function attemptRemove(path) {}async function pruneEmptyRuntimeDirBestEffort(codexHome) {try {- await rmdir(join56(codexHome, "runtime"));+ await rmdir(join57(codexHome, "runtime"));} catch (error) {if (isExpectedRuntimePruneFailure(error))return;@@ -93208,14 +93368,14 @@ function isExpectedRuntimePruneFailure(error) {}async function collectInstalledAgentPaths(codexHome, configPath) {const manifestPaths = [- join56(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)+ join57(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)];- const versionRoot = join56(codexHome, "plugins", "cache", "sisyphuslabs", "omo");+ const versionRoot = join57(codexHome, "plugins", "cache", "sisyphuslabs", "omo");if (await exists6(versionRoot)) {const entries = await readdir13(versionRoot, { withFileTypes: true });for (const entry of entries) {if (entry.isDirectory())- manifestPaths.push(join56(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));+ manifestPaths.push(join57(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));}}const paths = new Set;@@ -93233,7 +93393,7 @@ async function readManagedAgentPathsFromConfig(codexHome, configPath) {if (!await exists6(configPath))return [];const config = await readFile25(configPath, "utf8");- return MANAGED_CODEX_AGENT_NAMES2.filter((agentName) => config.includes(`config_file = ${JSON.stringify(`./agents/${agentName}.toml`)}`)).map((agentName) => join56(codexHome, "agents", `${agentName}.toml`));+ return MANAGED_CODEX_AGENT_NAMES2.filter((agentName) => config.includes(`config_file = ${JSON.stringify(`./agents/${agentName}.toml`)}`)).map((agentName) => join57(codexHome, "agents", `${agentName}.toml`));}async function readInstalledAgentManifest(manifestPath) {if (!await exists6(manifestPath))@@ -93244,7 +93404,7 @@ async function readInstalledAgentManifest(manifestPath) {return parsed.agents.filter((path) => typeof path === "string");}async function removeManifestListedAgentLinks(codexHome, paths) {- const agentsDir = join56(codexHome, "agents");+ const agentsDir = join57(codexHome, "agents");const removed = [];const skipped = [];for (const path of paths) {@@ -93296,14 +93456,14 @@ function nodeErrorCode6(error) {import { execFile as execFile3 } from "child_process";import { existsSync as existsSync30 } from "fs";import { homedir as homedir11 } from "os";-import { dirname as dirname24, join as join61, resolve as resolve19 } from "path";+import { dirname as dirname24, join as join62, resolve as resolve19 } from "path";import { fileURLToPath } from "url";import { promisify as promisify2 } from "util";// packages/omo-senpi/src/components/agent-home/resolve-agent-home.tsimport { existsSync as existsSync28 } from "fs";import { homedir as homedir9 } from "os";-import { join as join57, resolve as resolve16 } from "path";+import { join as join58, resolve as resolve16 } from "path";var AGENT_DIR_ENV_NAMES = ["OMO_CODING_AGENT_DIR","SENPI_CODING_AGENT_DIR",@@ -93317,25 +93477,25 @@ function resolveAgentHome(options) {if (configured)return resolve16(configured);}- const brandedHome = join57(homeDir, ".omo");- const canonical = join57(brandedHome, "agent");- if (exists(join57(canonical, AGENT_HOME_SENTINEL)))+ const brandedHome = join58(homeDir, ".omo");+ const canonical = join58(brandedHome, "agent");+ if (exists(join58(canonical, AGENT_HOME_SENTINEL)))return canonical;- if (exists(join57(brandedHome, AGENT_HOME_SENTINEL)))+ if (exists(join58(brandedHome, AGENT_HOME_SENTINEL)))return brandedHome;- return join57(homeDir, ".senpi", "agent");+ return join58(homeDir, ".senpi", "agent");}// packages/omo-senpi/src/install/local-launcher.ts-import { chmodSync as chmodSync3, existsSync as existsSync29, mkdirSync as mkdirSync10, readFileSync as readFileSync13, rmSync as rmSync2, writeFileSync as writeFileSync6 } from "fs";+import { chmodSync as chmodSync3, existsSync as existsSync29, mkdirSync as mkdirSync11, readFileSync as readFileSync13, rmSync as rmSync3, writeFileSync as writeFileSync6 } from "fs";import { homedir as homedir10 } from "os";-import { dirname as dirname21, join as join58, resolve as resolve17 } from "path";+import { dirname as dirname21, join as join59, resolve as resolve17 } from "path";var MARKER = "omo-local-launcher";function localLauncherPath(homeDir = homedir10()) {- return join58(homeDir, ".local", "bin", "omo");+ return join59(homeDir, ".local", "bin", "omo");}function localLauncherCmdPath(homeDir = homedir10()) {- return join58(homeDir, ".local", "bin", "omo.cmd");+ return join59(homeDir, ".local", "bin", "omo.cmd");}function renderLocalLauncher(options) {const brand = {@@ -93348,7 +93508,7 @@ function renderLocalLauncher(options) {userAgent: "omo",originator: "omo",changelog: {- path: join58(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")+ path: join59(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")},update: {packageName: "omo-ai",@@ -93386,6 +93546,9 @@ if (selfUpdate) {console.log("omo is updated via npm: npm i -g omo-ai@beta")process.exit(0)}+// windowsHide-exempt: this is the interactive foreground CLI, spawned with inherited stdio.+// CREATE_NO_WINDOW would suppress the console a console-less launch needs to render the TUI,+// so the launcher keeps the user's console instead of hiding it (#8501).const child = spawn(process.execPath, [cli, "--extension", plugin, ...process.argv.slice(2)], {env,stdio: "inherit",@@ -93403,7 +93566,7 @@ function installLocalLauncher(options) {const path = localLauncherPath(options.homeDir);if (existsSync29(path) && !readFileSync13(path, "utf8").includes(MARKER))return;- mkdirSync10(dirname21(path), { recursive: true });+ mkdirSync11(dirname21(path), { recursive: true });writeFileSync6(path, renderLocalLauncher(options));chmodSync3(path, 493);if ((options.platform ?? process.platform) === "win32") {@@ -93418,7 +93581,7 @@ node "%~dp0omo" %*\rimport { createHash as createHash6 } from "crypto";import { constants as constants9 } from "fs";import { access as access2, readFile as readFile27, stat as stat6 } from "fs/promises";-import { dirname as dirname23, join as join60 } from "path";+import { dirname as dirname23, join as join61 } from "path";// packages/memory-core/src/personas/manifest.tsvar PERSONA_ASSET_FILENAMES = {@@ -93437,12 +93600,12 @@ var PERSONA_ASSET_FILES = [// packages/omo-senpi/src/install/senpi-settings.tsimport { constants as constants8 } from "fs";import { access, copyFile as copyFile3, mkdir as mkdir9, readFile as readFile26, rename as rename5, writeFile as writeFile14 } from "fs/promises";-import { basename as basename9, dirname as dirname22, join as join59, resolve as resolve18 } from "path";+import { basename as basename9, dirname as dirname22, join as join60, resolve as resolve18 } from "path";var OMO_SENPI_PACKAGE_NAME = "@code-yeongyu/omo-senpi";var GENERATED_PLUGIN_BASENAME = /^omo-senpi-cli-plugin-[A-Za-z0-9]{6}$/;var LEGACY_BUILTIN_SHADOW_PACKAGES = [- join59("packages", "pi-goal"),- join59("packages", "pi-webfetch")+ join60("packages", "pi-goal"),+ join60("packages", "pi-webfetch")];async function readSettings(settingsPath) {let raw;@@ -93454,7 +93617,7 @@ async function readSettings(settingsPath) {throw error;}const parsed = JSON.parse(raw);- if (!isRecord13(parsed))+ if (!isRecord14(parsed))throw new Error(`${settingsPath} must contain a JSON object`);return parsed;}@@ -93515,13 +93678,13 @@ async function nextBackupPath(settingsPath) {function timestampForBackup() {return new Date().toISOString().replace(/[-:.]/g, "");}-function isRecord13(value) {+function isRecord14(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}async function readPackageName(packagePath) {let raw;try {- raw = await readFile26(join59(packagePath, "package.json"), "utf8");+ raw = await readFile26(join60(packagePath, "package.json"), "utf8");} catch (error) {if (isErrno(error, "ENOENT") || isErrno(error, "ENOTDIR"))return;@@ -93535,7 +93698,7 @@ async function readPackageName(packagePath) {return;throw error;}- return isRecord13(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;+ return isRecord14(parsed) && typeof parsed.name === "string" ? parsed.name : undefined;}async function fileExists(path) {try {@@ -93553,51 +93716,51 @@ function isErrno(error, code) {// packages/omo-senpi/src/install/plugin-artifacts.tsvar REQUIRED_PLUGIN_ARTIFACTS = [- join60("extensions", "omo.js"),- join60("extensions", "omo-task.js"),- join60("extensions", "omo-member.js"),- join60("extensions", "memory-run-supervisor.mjs"),- ...PERSONA_ASSET_FILES.map((filename) => join60("extensions", filename)),- join60("skills", "ast-grep", "SKILL.md"),- join60("skills", "coding-agent-sessions", "SKILL.md"),- join60("skills", "debugging", "SKILL.md"),- join60("skills", "frontend", "SKILL.md"),- join60("skills", "git-master", "SKILL.md"),- join60("skills", "init-deep", "SKILL.md"),- join60("skills", "lsp-setup", "SKILL.md"),- join60("skills", "programming", "SKILL.md"),- join60("skills", "refactor", "SKILL.md"),- join60("skills", "remove-ai-slops", "SKILL.md"),- join60("skills", "review-work", "SKILL.md"),- join60("skills", "ultimate-browsing", "SKILL.md"),- join60("skills", "ultrawork", "SKILL.md"),- join60("skills", "ulw-execute", "SKILL.md"),- join60("skills", "ulw-loop", "SKILL.md"),- join60("skills", "ulw-plan", "SKILL.md"),- join60("skills", "ulw-research", "SKILL.md"),- join60("skills", "visual-qa", "SKILL.md"),- join60("skills-conditional", "x-search", "SKILL.md"),- join60("runtime", "agent-toolkit-sdk", "sdk.js"),- join60("runtime", "ast-grep-mcp", "cli.js"),- join60("runtime", "lsp-daemon", "dist", "cli.js"),- join60("runtime", "lsp-daemon", "dist", "index.js"),- join60("runtime", "lsp-daemon", "dist", "index.d.ts"),- join60("runtime", "lsp-daemon", "dist", "daemon-client.js"),- join60("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),- join60("runtime", "lsp-daemon", "dist", "package.json"),- join60("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),- join60("scripts", "install.mjs"),+ join61("extensions", "omo.js"),+ join61("extensions", "omo-task.js"),+ join61("extensions", "omo-member.js"),+ join61("extensions", "memory-run-supervisor.mjs"),+ ...PERSONA_ASSET_FILES.map((filename) => join61("extensions", filename)),+ join61("skills", "ast-grep", "SKILL.md"),+ join61("skills", "coding-agent-sessions", "SKILL.md"),+ join61("skills", "debugging", "SKILL.md"),+ join61("skills", "frontend", "SKILL.md"),+ join61("skills", "git-master", "SKILL.md"),+ join61("skills", "init-deep", "SKILL.md"),+ join61("skills", "lsp-setup", "SKILL.md"),+ join61("skills", "programming", "SKILL.md"),+ join61("skills", "refactor", "SKILL.md"),+ join61("skills", "remove-ai-slops", "SKILL.md"),+ join61("skills", "review-work", "SKILL.md"),+ join61("skills", "ultimate-browsing", "SKILL.md"),+ join61("skills", "ultrawork", "SKILL.md"),+ join61("skills", "ulw-execute", "SKILL.md"),+ join61("skills", "ulw-loop", "SKILL.md"),+ join61("skills", "ulw-plan", "SKILL.md"),+ join61("skills", "ulw-research", "SKILL.md"),+ join61("skills", "visual-qa", "SKILL.md"),+ join61("skills-conditional", "x-search", "SKILL.md"),+ join61("runtime", "agent-toolkit-sdk", "sdk.js"),+ join61("runtime", "ast-grep-mcp", "cli.js"),+ join61("runtime", "lsp-daemon", "dist", "cli.js"),+ join61("runtime", "lsp-daemon", "dist", "index.js"),+ join61("runtime", "lsp-daemon", "dist", "index.d.ts"),+ join61("runtime", "lsp-daemon", "dist", "daemon-client.js"),+ join61("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),+ join61("runtime", "lsp-daemon", "dist", "package.json"),+ join61("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),+ join61("scripts", "install.mjs"),"daemon-launch-spec.json"];async function ensurePluginArtifacts(context) {if (context.allowBuild) {- await context.runCommand("node", [join60(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join60(context.pluginPath, "scripts", "stage-x-search-skill.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join61(context.pluginPath, "scripts", "stage-x-search-skill.mjs")], { cwd: context.repoRoot });}if (await hasMissingPluginArtifact(context.pluginPath)) {throw new Error(`Packed omo-senpi plugin is missing required runtime artifacts at ${context.pluginPath}`);@@ -93606,14 +93769,14 @@ async function ensurePluginArtifacts(context) {}async function hasMissingPluginArtifact(pluginPath) {for (const artifact of REQUIRED_PLUGIN_ARTIFACTS) {- if (!await fileExists2(join60(pluginPath, artifact)))+ if (!await fileExists2(join61(pluginPath, artifact)))return true;}return false;}async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {- const runtimeEntry = join60(pluginPath, "runtime", "ast-grep-mcp", "cli.js");- const manifestPath = join60(dirname23(runtimeEntry), "manifest.json");+ const runtimeEntry = join61(pluginPath, "runtime", "ast-grep-mcp", "cli.js");+ const manifestPath = join61(dirname23(runtimeEntry), "manifest.json");let runtimeStat;try {runtimeStat = await stat6(runtimeEntry);@@ -93650,7 +93813,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}}function isAstGrepRuntimeManifest(value) {- if (!isRecord13(value))+ if (!isRecord14(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));}@@ -93688,7 +93851,7 @@ async function runSenpiInstaller(options = {}) {const backupPath = await writeSettingsAtomically(context.settingsPath, settings);const launcherPath = installLocalLauncher({pluginPath: context.pluginPath,- senpiCliPath: join61(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),+ senpiCliPath: join62(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),homeDir: context.homeDir});return {@@ -93708,13 +93871,13 @@ function resolveInstallContext(options) {const repoRoot = resolve19(options.repoRoot ?? (allowBuild ? findRepoRoot2(dirname24(fileURLToPath(import.meta.url))) : dirname24(resolve19(options.pluginPath))));const homeDir = options.homeDir ?? env.HOME ?? homedir11();const agentDir = resolve19(options.agentDir ?? resolveAgentHome({ env, homeDir }));- const pluginPath = resolve19(options.pluginPath ?? join61(repoRoot, "packages", "omo-senpi", "plugin"));+ const pluginPath = resolve19(options.pluginPath ?? join62(repoRoot, "packages", "omo-senpi", "plugin"));return {env,repoRoot,agentDir,homeDir,- settingsPath: join61(agentDir, "settings.json"),+ settingsPath: join62(agentDir, "settings.json"),pluginPath,platform: options.platform ?? process.platform,allowBuild,@@ -93731,7 +93894,7 @@ async function defaultRunCommand3(command, args, options) {function findRepoRoot2(importerDir) {let current = importerDir;for (let depth = 0;depth <= 7; depth += 1) {- if (fileExistsSync(join61(current, "packages", "omo-senpi", "plugin", "package.json")))+ if (fileExistsSync(join62(current, "packages", "omo-senpi", "plugin", "package.json")))return current;current = resolve19(current, "..");}@@ -93774,20 +93937,20 @@ async function starGitHubRepositories(platform = "both", runCommand = runGitHubSinit_provider_availability();// packages/omo-opencode/src/cli/config-manager/add-tui-plugin-to-tui-config.ts-import { existsSync as existsSync32, mkdirSync as mkdirSync11, readFileSync as readFileSync15 } from "fs";-import { join as join63 } from "path";+import { existsSync as existsSync32, mkdirSync as mkdirSync12, readFileSync as readFileSync15 } from "fs";+import { join as join64 } from "path";// packages/omo-opencode/src/cli/doctor/checks/tui-plugin-config.tsinit_shared();import { existsSync as existsSync31, readFileSync as readFileSync14 } from "fs";-import { join as join62 } from "path";+import { join as join63 } from "path";var TUI_SUBPATH = "tui";var TUI_EXPORT_SUBPATH = `./${TUI_SUBPATH}`;function fileEntryPackageJsonPath(entry) {let path = entry.slice("file:".length);if (path.startsWith("//"))path = path.slice(2);- return join62(path, "package.json");+ return join63(path, "package.json");}function packageJsonExportsTui(pkgJsonPath) {if (!existsSync31(pkgJsonPath))@@ -93825,7 +93988,7 @@ function packageExportsTuiForServerEntry(entry) {const packageName = packageNameFromServerEntry(entry);if (packageName === null)return null;- return packageJsonExportsTui(join62(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));+ return packageJsonExportsTui(join63(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));}function isOurFilePluginEntry(entry) {if (typeof entry !== "string" || !entry.startsWith("file:"))@@ -93890,7 +94053,7 @@ function detectServerPluginRegistration() {}}function detectTuiPluginRegistration() {- const tuiJsonPath = join62(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");+ const tuiJsonPath = join63(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");if (!existsSync31(tuiJsonPath)) {return {registered: false,@@ -94046,10 +94209,10 @@ function readConfig(path) {return null;}function readServerConfig(configDir) {- const jsoncPath = join63(configDir, "opencode.jsonc");+ const jsoncPath = join64(configDir, "opencode.jsonc");if (existsSync32(jsoncPath))return readConfig(jsoncPath);- const jsonPath = join63(configDir, "opencode.json");+ const jsonPath = join64(configDir, "opencode.json");if (existsSync32(jsonPath))return readConfig(jsonPath);return null;@@ -94091,7 +94254,7 @@ function ensureTuiPluginEntry(opts = {}) {if (!desiredEntry) {return { changed: false, reason: "no-server-entry" };}- const tuiJsonPath = join63(configDir, "tui.json");+ const tuiJsonPath = join64(configDir, "tui.json");const { config, malformed } = readTuiConfig(tuiJsonPath);if (malformed) {return { changed: false, reason: "malformed" };@@ -94100,14 +94263,14 @@ function ensureTuiPluginEntry(opts = {}) {if (plugins.includes(desiredEntry)) {return { changed: false, reason: "already-present" };}- mkdirSync11(configDir, { recursive: true });+ mkdirSync12(configDir, { recursive: true });writeFileAtomically2(tuiJsonPath, formatConfig({ ...config, plugin: [...plugins, desiredEntry] }));return { changed: true, reason: "added" };}// packages/omo-opencode/src/cli/install-ast-grep-sg.tsimport { homedir as homedir12 } from "os";-import { join as join64 } from "path";+import { join as join65 } from "path";// packages/shared-skills/index.mjsimport { existsSync as existsSync33 } from "fs";@@ -94129,9 +94292,9 @@ function describeResult2(result) {}async function installAstGrepForOpenCode(options = {}) {const platform = options.platform ?? process.platform;- const baseDir = join64(options.homeDir ?? homedir12(), ".omo");+ const baseDir = join65(options.homeDir ?? homedir12(), ".omo");const targetDir = astGrepRuntimeDir(baseDir, platform, options.arch ?? process.arch);- const skillDir = join64(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");+ const skillDir = join65(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");const installer = options.installer ?? runAstGrepSkillInstall;try {const result = await installer({ platform, skillDir, targetDir });@@ -97671,7 +97834,7 @@ function migrateRalphLoopConfig(config) {function validatePluginConfig(directory, environment = process.env) {const chain = loadOmoOpenCodeConfigChain(directory, environment);const views = chain.views.map((view) => parseConfigView(view.path, view.config));- const chainMessages = chain.diagnostics.map((diagnostic) => `${shortPath(diagnostic.path)}: ${diagnostic.message}`);+ const chainMessages = chain.diagnostics.filter((diagnostic) => diagnostic.kind !== "deprecated-keys").map((diagnostic) => `${shortPath(diagnostic.path)}: ${diagnostic.message}`);const messages = [...chainMessages, ...views.flatMap((view) => view.messages)];const firstFailingView = views.find((view) => view.messages.length > 0);const firstView = views[0];@@ -98352,9 +98515,9 @@ function readCurrentTopLevelTask(planPath) {}// packages/boulder-state/src/storage/path.tsimport { existsSync as existsSync35 } from "fs";-import { isAbsolute as isAbsolute12, join as join65, relative as relative8, resolve as resolve20 } from "path";+import { isAbsolute as isAbsolute12, join as join66, relative as relative8, resolve as resolve20 } from "path";function getBoulderFilePath(directory) {- return join65(directory, BOULDER_DIR, BOULDER_FILE);+ return join66(directory, BOULDER_DIR, BOULDER_FILE);}function resolveTrackedPath(baseDirectory, trackedPath) {return isAbsolute12(trackedPath) ? resolve20(trackedPath) : resolve20(baseDirectory, trackedPath);@@ -98378,7 +98541,7 @@ function resolveBoulderPlanPathForWork(directory, work) {return resolveBoulderPlanPath(directory, work);}// packages/boulder-state/src/storage/plan-progress.ts-import { existsSync as existsSync36, readFileSync as readFileSync17, readdirSync as readdirSync7, statSync as statSync4 } from "fs";+import { existsSync as existsSync36, readFileSync as readFileSync17, readdirSync as readdirSync8, statSync as statSync4 } from "fs";function getPlanProgress(planPath) {if (!existsSync36(planPath)) {return { total: 0, completed: 0, isComplete: false };@@ -98538,10 +98701,10 @@ init_state();// packages/omo-opencode/src/features/run-continuation-state/constants.tsvar CONTINUATION_MARKER_DIR = ".omo/run-continuation";// packages/omo-opencode/src/features/run-continuation-state/storage.ts-import { existsSync as existsSync38, mkdirSync as mkdirSync12, readFileSync as readFileSync19, rmSync as rmSync3, writeFileSync as writeFileSync7 } from "fs";-import { join as join66 } from "path";+import { existsSync as existsSync38, mkdirSync as mkdirSync13, readFileSync as readFileSync19, rmSync as rmSync4, writeFileSync as writeFileSync7 } from "fs";+import { join as join67 } from "path";function getMarkerPath(directory, sessionID) {- return join66(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);+ return join67(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);}function readContinuationMarker(directory, sessionID) {const markerPath = getMarkerPath(directory, sessionID);@@ -98613,8 +98776,8 @@ async function isSessionInBoulderLineage(input) {// packages/omo-opencode/src/hooks/atlas/session-last-agent.tsinit_shared();init_compaction_marker();-import { readFileSync as readFileSync20, readdirSync as readdirSync8 } from "fs";-import { join as join67 } from "path";+import { readFileSync as readFileSync20, readdirSync as readdirSync9 } from "fs";+import { join as join68 } from "path";var defaultSessionLastAgentDeps = {getMessageDir,isSqliteBackend,@@ -98672,9 +98835,9 @@ async function getLastAgentFromSession(sessionID, client, deps = {}) {if (!messageDir)return null;try {- const messages = readdirSync8(messageDir).filter((fileName) => fileName.endsWith(".json")).map((fileName) => {+ const messages = readdirSync9(messageDir).filter((fileName) => fileName.endsWith(".json")).map((fileName) => {try {- const content = readFileSync20(join67(messageDir, fileName), "utf-8");+ const content = readFileSync20(join68(messageDir, fileName), "utf-8");const parsed = JSON.parse(content);return {fileName,@@ -98717,8 +98880,8 @@ init_agent_display_names();// packages/omo-opencode/src/hooks/ralph-loop/storage.tsinit_frontmatter2();-import { existsSync as existsSync39, readFileSync as readFileSync21, writeFileSync as writeFileSync8, unlinkSync as unlinkSync6, mkdirSync as mkdirSync13 } from "fs";-import { dirname as dirname26, join as join68 } from "path";+import { existsSync as existsSync39, readFileSync as readFileSync21, writeFileSync as writeFileSync8, unlinkSync as unlinkSync6, mkdirSync as mkdirSync14 } from "fs";+import { dirname as dirname26, join as join69 } from "path";// packages/omo-opencode/src/hooks/ralph-loop/constants.tsvar DEFAULT_STATE_FILE = ".omo/ralph-loop.local.md";@@ -98727,7 +98890,7 @@ var DEFAULT_COMPLETION_PROMISE = "DONE";// packages/omo-opencode/src/hooks/ralph-loop/storage.tsfunction getStateFilePath(directory, customPath) {- return customPath ? join68(directory, customPath) : join68(directory, DEFAULT_STATE_FILE);+ return customPath ? join69(directory, customPath) : join69(directory, DEFAULT_STATE_FILE);}function readState(directory, customPath) {const filePath = getStateFilePath(directory, customPath);@@ -99834,7 +99997,7 @@ init_extract_semver();init_bun_which_shim();import { existsSync as existsSync47, accessSync as accessSync4, constants as constants12 } from "fs";import { homedir as homedir15 } from "os";-import { join as join75 } from "path";+import { join as join76 } from "path";// packages/omo-opencode/src/cli/doctor/framework/spawn-with-timeout.tsinit_spawn_with_windows_hide();@@ -99926,17 +100089,17 @@ function getDesktopAppPaths(platform) {case "darwin":return ["/Applications/OpenCode.app/Contents/MacOS/OpenCode",- join75(home, "Applications", "OpenCode.app", "Contents", "MacOS", "OpenCode")+ join76(home, "Applications", "OpenCode.app", "Contents", "MacOS", "OpenCode")];case "win32": {const programFiles = process.env.ProgramFiles;const localAppData = process.env.LOCALAPPDATA;const paths = [];if (programFiles) {- paths.push(join75(programFiles, "OpenCode", "OpenCode.exe"));+ paths.push(join76(programFiles, "OpenCode", "OpenCode.exe"));}if (localAppData) {- paths.push(join75(localAppData, "OpenCode", "OpenCode.exe"));+ paths.push(join76(localAppData, "OpenCode", "OpenCode.exe"));}return paths;}@@ -99944,8 +100107,8 @@ function getDesktopAppPaths(platform) {return ["/usr/bin/opencode","/usr/lib/opencode/opencode",- join75(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),- join75(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")+ join76(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),+ join76(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")];default:return [];@@ -99977,7 +100140,7 @@ async function findOpenCodeBinary(platform = process.platform, checkExists = exiconst candidates = getCommandCandidates2(platform);for (const entry of pathEnv.split(delimiter).filter(Boolean)) {for (const command of candidates) {- const fullPath = join75(entry, command);+ const fullPath = join76(entry, command);if (checkExists(fullPath) && isExecutable2(fullPath)) {return { binary: command, path: fullPath };}@@ -100118,25 +100281,25 @@ init_file_utils2();init_checker();init_auto_update_checker();init_package_json_locator();-import { existsSync as existsSync49, readFileSync as readFileSync30, readdirSync as readdirSync10 } from "fs";+import { existsSync as existsSync49, readFileSync as readFileSync30, readdirSync as readdirSync11 } from "fs";import { createRequire } from "module";import { homedir as homedir16 } from "os";-import { join as join76 } from "path";+import { join as join77 } from "path";import { fileURLToPath as fileURLToPath6 } from "url";init_shared();function getPlatformDefaultCacheDir(platform = process.platform) {if (platform === "darwin")- return join76(homedir16(), "Library", "Caches");+ return join77(homedir16(), "Library", "Caches");if (platform === "win32")- return process.env.LOCALAPPDATA ?? join76(homedir16(), "AppData", "Local");- return join76(homedir16(), ".cache");+ return process.env.LOCALAPPDATA ?? join77(homedir16(), "AppData", "Local");+ return join77(homedir16(), ".cache");}function resolveOpenCodeCacheDir() {const xdgCacheHome = process.env.XDG_CACHE_HOME;if (xdgCacheHome)- return join76(xdgCacheHome, "opencode");+ return join77(xdgCacheHome, "opencode");const fromShared = getOpenCodeCacheDir();- const platformDefault = join76(getPlatformDefaultCacheDir(), "opencode");+ const platformDefault = join77(getPlatformDefaultCacheDir(), "opencode");if (existsSync49(fromShared) || !existsSync49(platformDefault))return fromShared;return platformDefault;@@ -100168,26 +100331,26 @@ function normalizeVersion(value) {function createPackageCandidates(rootDir) {return ACCEPTED_PACKAGE_NAMES.map((packageName) => ({packageName,- installedPackagePath: join76(rootDir, "node_modules", packageName, "package.json")+ installedPackagePath: join77(rootDir, "node_modules", packageName, "package.json")}));}function createTaggedInstallCandidates(rootDir) {- const packagesDir = join76(rootDir, "packages");+ const packagesDir = join77(rootDir, "packages");if (!existsSync49(packagesDir))return [];const candidates = [];- for (const entryName of readdirSync10(packagesDir).sort()) {+ for (const entryName of readdirSync11(packagesDir).sort()) {const packageName = ACCEPTED_PACKAGE_NAMES.find((name) => entryName.startsWith(`${name}@`));if (packageName === undefined)continue;- const installDir = join76(packagesDir, entryName);+ const installDir = join77(packagesDir, entryName);candidates.push({cacheDir: installDir,- cachePackagePath: join76(installDir, "package.json"),+ cachePackagePath: join77(installDir, "package.json"),packageCandidates: [{packageName,- installedPackagePath: join76(installDir, "node_modules", packageName, "package.json")+ installedPackagePath: join77(installDir, "node_modules", packageName, "package.json")}]});@@ -100232,13 +100395,13 @@ function getLoadedPluginVersion() {const candidates = [{cacheDir: configDir,- cachePackagePath: join76(configDir, "package.json"),+ cachePackagePath: join77(configDir, "package.json"),packageCandidates: createPackageCandidates(configDir)},...createTaggedInstallCandidates(configDir),{cacheDir,- cachePackagePath: join76(cacheDir, "package.json"),+ cachePackagePath: join77(cacheDir, "package.json"),packageCandidates: createPackageCandidates(cacheDir)},...createTaggedInstallCandidates(cacheDir)@@ -100431,18 +100594,18 @@ async function checkSystem(deps = defaultDeps5) {init_shared();import { existsSync as existsSync51, readFileSync as readFileSync32 } from "fs";import { homedir as homedir17 } from "os";-import { join as join77 } from "path";+import { join as join78 } from "path";function getUserConfigDir2() {const xdgConfig = process.env.XDG_CONFIG_HOME;if (xdgConfig)- return join77(xdgConfig, "opencode");- return join77(homedir17(), ".config", "opencode");+ return join78(xdgConfig, "opencode");+ return join78(homedir17(), ".config", "opencode");}function loadCustomProviderNames() {const configDir = getUserConfigDir2();const candidatePaths = [- join77(configDir, "opencode.json"),- join77(configDir, "opencode.jsonc")+ join78(configDir, "opencode.json"),+ join78(configDir, "opencode.jsonc")];for (const configPath of candidatePaths) {if (!existsSync51(configPath))@@ -100463,7 +100626,7 @@ function loadCustomProviderNames() {return [];}function loadAvailableModelsFromCache() {- const cacheFile = join77(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join78(getOpenCodeCacheDir(), "models.json");const customProviders = loadCustomProviderNames();if (!existsSync51(cacheFile)) {if (customProviders.length > 0) {@@ -100525,7 +100688,7 @@ function loadOmoConfig2() {// packages/omo-opencode/src/cli/doctor/checks/model-resolution-details.tsinit_shared();-import { join as join78 } from "path";+import { join as join79 } from "path";// packages/omo-opencode/src/cli/doctor/checks/model-resolution-variant.tsfunction formatModelWithVariant(model, variant) {@@ -100567,7 +100730,7 @@ function formatCapabilityResolutionLabel(mode) {}function buildModelResolutionDetails(options) {const details = [];- const cacheFile = join78(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join79(getOpenCodeCacheDir(), "models.json");details.push("\u2550\u2550\u2550 Available Models (from cache) \u2550\u2550\u2550");details.push("");if (options.available.cacheExists) {@@ -100908,7 +101071,7 @@ init_src4();init_main();init_config_migration();import { existsSync as existsSync52, readFileSync as readFileSync33 } from "fs";-import { join as join79 } from "path";+import { join as join80 } from "path";var CANONICAL_REPLACEMENT = new Map([["variant", "reasoning"],["reasoningEffort", "reasoning"],@@ -100919,14 +101082,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 isRecord14(value) {+function isRecord15(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 (!isRecord14(value))+ if (!isRecord15(value))return [];const issues = [];for (const [key, child] of Object.entries(value)) {@@ -100942,7 +101105,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {});continue;}- if (!isRecord14(child))+ if (!isRecord15(child))continue;if (PASSTHROUGH_CONTAINERS.has(key))continue;@@ -100961,7 +101124,7 @@ function collectIssues(configPath, value, prefix, fixSuffix) {return issues;}function migrateFixSuffix(parsed) {- if (isRecord14(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))+ if (isRecord15(parsed) && hasMigrationMarker(parsed, REASONING_UNIFICATION_MIGRATION_ID))return "";return MIGRATE_SUFFIX;}@@ -100969,7 +101132,7 @@ function userConfigPaths() {const home = process.env.HOME ?? process.env.USERPROFILE;if (home === undefined || home.length === 0)return [];- return [join79(home, ".omo", "omo.jsonc"), join79(home, ".omo", "omo.json")];+ return [join80(home, ".omo", "omo.jsonc"), join80(home, ".omo", "omo.json")];}async function checkDeprecatedReasoningKeys() {const issues = [];@@ -100995,25 +101158,25 @@ init_src();import { existsSync as existsSync53 } from "fs";import { createRequire as createRequire2 } from "module";import { homedir as homedir19 } from "os";-import { dirname as dirname31, join as join81 } from "path";+import { dirname as dirname31, join as join82 } from "path";// packages/omo-opencode/src/hooks/comment-checker/downloader.tsinit_binary_downloader();init_logger2();init_plugin_identity();-import { join as join80 } from "path";+import { join as join81 } from "path";import { homedir as homedir18, tmpdir as tmpdir4 } from "os";var DEBUG = process.env.COMMENT_CHECKER_DEBUG === "1";-var DEBUG_FILE = join80(tmpdir4(), "comment-checker-debug.log");+var DEBUG_FILE = join81(tmpdir4(), "comment-checker-debug.log");function getCacheDir2() {if (process.platform === "win32") {const localAppData = process.env.LOCALAPPDATA || process.env.APPDATA;- const base = localAppData || join80(homedir18(), "AppData", "Local");- return join80(base, CACHE_DIR_NAME, "bin");+ const base = localAppData || join81(homedir18(), "AppData", "Local");+ return join81(base, CACHE_DIR_NAME, "bin");}const xdgCache = process.env.XDG_CACHE_HOME;- const base = xdgCache || join80(homedir18(), ".cache");- return join80(base, CACHE_DIR_NAME, "bin");+ const base = xdgCache || join81(homedir18(), ".cache");+ return join81(base, CACHE_DIR_NAME, "bin");}function getBinaryName() {return process.platform === "win32" ? "comment-checker.exe" : "comment-checker";@@ -101063,7 +101226,7 @@ async function getBinaryVersion(binary) {}}async function checkAstGrepCli() {- const runtimeDir = astGrepRuntimeDir(join81(homedir19(), ".omo"));+ const runtimeDir = astGrepRuntimeDir(join82(homedir19(), ".omo"));const sgPath = findSgBinarySync({ runtimeDir });if (sgPath === null) {return {@@ -101093,10 +101256,10 @@ function findCommentCheckerPackageBinary(baseDirOverride, resolvePackageJsonPathconst platformKey = `${process.platform}-${process.arch === "x64" ? "x64" : process.arch}`;try {const packageDir = baseDirOverride ?? dirname31(resolvePackageJsonPath());- const vendorPath = join81(packageDir, "vendor", platformKey, binaryName);+ const vendorPath = join82(packageDir, "vendor", platformKey, binaryName);if (existsSync53(vendorPath))return vendorPath;- const binPath = join81(packageDir, "bin", binaryName);+ const binPath = join82(packageDir, "bin", binaryName);if (existsSync53(binPath))return binPath;} catch (error) {@@ -101472,13 +101635,13 @@ function getInstalledLspServers(options = {}) {init_shared();import { existsSync as existsSync55, readFileSync as readFileSync35 } from "fs";import { homedir as homedir20 } from "os";-import { join as join82 } from "path";+import { join as join83 } from "path";var BUILTIN_MCP_SERVERS = ["websearch", "context7", "grep_app", "lsp"];function getMcpConfigPaths() {return [- join82(homedir20(), ".claude", ".mcp.json"),- join82(process.cwd(), ".mcp.json"),- join82(process.cwd(), ".claude", ".mcp.json")+ join83(homedir20(), ".claude", ".mcp.json"),+ join83(process.cwd(), ".mcp.json"),+ join83(process.cwd(), ".claude", ".mcp.json")];}function loadUserMcpConfig() {@@ -101760,7 +101923,7 @@ init_src();import { existsSync as existsSync57 } from "fs";import { lstat as lstat16, readdir as readdir14, readFile as readFile28 } from "fs/promises";import { homedir as homedir22 } from "os";-import { basename as basename11, join as join83, resolve as resolve23 } from "path";+import { basename as basename11, join as join84, resolve as resolve23 } from "path";// packages/omo-opencode/package.jsonvar package_default3 = {name: "@oh-my-opencode/omo-opencode",@@ -101826,13 +101989,13 @@ var CODEX_BIN_NAMES = ["omo-git-bash-hook"];async function gatherCodexSummary(deps = {}) {- const codexHome = resolve23(deps.codexHome ?? process.env.CODEX_HOME ?? join83(homedir22(), ".codex"));+ const codexHome = resolve23(deps.codexHome ?? process.env.CODEX_HOME ?? join84(homedir22(), ".codex"));const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });const detection = await (deps.detectCodexInstallation ?? detectCodexInstallation)();const pluginRoot = await resolveInstalledPluginRoot(codexHome);- const manifest = pluginRoot === null ? null : await readJson(join83(pluginRoot, ".codex-plugin", "plugin.json"));- const installSnapshot = pluginRoot === null ? null : await readJson(join83(pluginRoot, "lazycodex-install.json"));- const configPath = join83(codexHome, "config.toml");+ const manifest = pluginRoot === null ? null : await readJson(join84(pluginRoot, ".codex-plugin", "plugin.json"));+ const installSnapshot = pluginRoot === null ? null : await readJson(join84(pluginRoot, "lazycodex-install.json"));+ const configPath = join84(codexHome, "config.toml");const pluginVersion = stringField(manifest, "version");return {codexPath: detection.found && "path" in detection ? detection.path : null,@@ -101889,7 +102052,7 @@ function buildCodexIssues(summary) {if (summary.pluginRoot === null) {issues.push({title: "OMO Codex plugin is not installed",- description: `Expected cached plugin at ${join83("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,+ description: `Expected cached plugin at ${join84("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,fix: "Run: npx lazycodex-ai install",severity: "error",affects: ["plugin loading"]@@ -101954,12 +102117,12 @@ function buildCodexIssues(summary) {return issues;}async function resolveInstalledPluginRoot(codexHome) {- const pluginRoot = join83(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);+ const pluginRoot = join84(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);if (!existsSync57(pluginRoot))return null;const versions = await readdir14(pluginRoot, { withFileTypes: true });const candidates = versions.filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort(compareVersionsDescending);- return candidates.length === 0 ? null : join83(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);+ return candidates.length === 0 ? null : join84(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);}async function readCodexConfigSummary(configPath) {if (!existsSync57(configPath)) {@@ -101987,13 +102150,13 @@ async function readCodexConfigSummary(configPath) {async function readLinkedBins(binDir) {const linked = [];for (const name of CODEX_BIN_NAMES) {- if (await pathExists2(join83(binDir, process.platform === "win32" ? `${name}.cmd` : name)))+ if (await pathExists2(join84(binDir, process.platform === "win32" ? `${name}.cmd` : name)))linked.push(name);}return linked;}async function readLinkedAgents(codexHome) {- const agentsDir = join83(codexHome, "agents");+ const agentsDir = join84(codexHome, "agents");if (!existsSync57(agentsDir))return [];const entries = await readdir14(agentsDir, { withFileTypes: true });@@ -102127,7 +102290,7 @@ function resolveLatestVersion(input) {init_src();import { readdir as readdir15, readFile as readFile29, stat as stat7 } from "fs/promises";import { homedir as homedir23 } from "os";-import { dirname as dirname33, isAbsolute as isAbsolute13, join as join84, relative as relative9, resolve as resolve24, sep as sep9 } from "path";+import { dirname as dirname33, isAbsolute as isAbsolute13, join as join85, relative as relative9, resolve as resolve24, sep as sep9 } from "path";var CODEX_COMPONENTS_CHECK_ID = "codex-components";var CODEX_COMPONENTS_CHECK_NAME = "codex-components";var PLUGIN_DATA_DIR_NAME = "omo-sisyphuslabs";@@ -102137,7 +102300,7 @@ async function checkCodexComponents(deps = {}) {const env = deps.env ?? process.env;const platform = deps.platform ?? process.platform;const arch = deps.arch ?? process.arch;- const codexHome = resolve24(deps.codexHome ?? env["CODEX_HOME"] ?? join84(homedir23(), ".codex"));+ const codexHome = resolve24(deps.codexHome ?? env["CODEX_HOME"] ?? join85(homedir23(), ".codex"));const summary = await gatherCodexSummary({ ...deps, codexHome });if (summary.pluginRoot === null) {return {@@ -102162,7 +102325,7 @@ async function checkCodexComponents(deps = {}) {});}const runtimeSgDir = runtimeSgDirectory(codexHome, platform, arch);- const runtimeSgPath = join84(runtimeSgDir, sgBinaryName(platform));+ const runtimeSgPath = join85(runtimeSgDir, sgBinaryName(platform));const sg = findSgBinarySync({arch,env,@@ -102199,12 +102362,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 || !isRecord15(manifest["mcpServers"]))+ if (manifest === null || !isRecord16(manifest["mcpServers"]))continue;const manifestRoot = dirname33(manifestPath);const isRootManifest = resolve24(manifestRoot) === resolve24(pluginRoot);for (const server of Object.values(manifest["mcpServers"])) {- if (!isRecord15(server) || !Array.isArray(server["args"]))+ if (!isRecord16(server) || !Array.isArray(server["args"]))continue;for (const arg of server["args"]) {if (typeof arg !== "string" || !isPluginRuntimePathArg(arg))@@ -102274,7 +102437,7 @@ async function findManifestPaths(root, manifestName) {for (const entry of entries) {if (entry.name === "node_modules" || entry.name === ".git")continue;- const entryPath = join84(root, entry.name);+ const entryPath = join85(root, entry.name);if (entry.isDirectory()) {paths.push(...await findManifestPaths(entryPath, manifestName));continue;@@ -102290,7 +102453,7 @@ function collectHookCommands(value, commands) {collectHookCommands(item, commands);return;}- if (!isRecord15(value))+ if (!isRecord16(value))return;if (value["type"] === "command") {if (typeof value["command"] === "string")@@ -102318,18 +102481,18 @@ function isPluginRuntimePathArg(arg) {return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute13(arg));}function runtimeSgDirectory(codexHome, platform, arch) {- return join84(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));+ return join85(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));}function describeSgSource(sgPath, env, runtimeSgDir, platform) {const override = env[SG_PATH_ENV_KEY]?.trim();if (override !== undefined && override.length > 0 && sgPath === override)return `env override ${SG_PATH_ENV_KEY}`;- if (sgPath === join84(runtimeSgDir, sgBinaryName(platform)))+ if (sgPath === join85(runtimeSgDir, sgBinaryName(platform)))return "runtime dir";return "PATH";}async function readBootstrapStateSummary(codexHome) {- const statePath = join84(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");+ const statePath = join85(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");const raw = await readJson2(statePath);if (raw === null)return null;@@ -102345,7 +102508,7 @@ function parseDegradedEntries(value) {return [];const entries = [];for (const item of value) {- if (!isRecord15(item))+ if (!isRecord16(item))continue;if (typeof item["component"] !== "string" || typeof item["reason"] !== "string")continue;@@ -102379,7 +102542,7 @@ function degradedDetailLines(entries) {async function readJson2(path) {try {const parsed = JSON.parse(await readFile29(path, "utf8"));- return isRecord15(parsed) ? parsed : null;+ return isRecord16(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)return null;@@ -102400,7 +102563,7 @@ function normalizeRelative(root, target) {function normalizePathSeparators(path) {return path.split("\\").join("/");}-function isRecord15(value) {+function isRecord16(value) {return typeof value === "object" && value !== null && !Array.isArray(value);}@@ -102408,16 +102571,16 @@ function isRecord15(value) {import { existsSync as existsSync58 } from "fs";import { readFile as readFile30 } from "fs/promises";import { homedir as homedir24 } from "os";-import { join as join85, resolve as resolve25 } from "path";+import { join as join86, resolve as resolve25 } from "path";var RUNTIME_WRAPPER_MARKER2 = "OMO_GENERATED_RUNTIME_WRAPPER";var CHECK_NAME = "codex-runtime-wrapper";var REINSTALL_COMMAND = "npx --yes lazycodex-ai@latest install --no-tui";async function checkCodexRuntimeWrapper(deps = {}) {- const codexHome = resolve25(deps.codexHome ?? process.env.CODEX_HOME ?? join85(homedir24(), ".codex"));+ const codexHome = resolve25(deps.codexHome ?? process.env.CODEX_HOME ?? join86(homedir24(), ".codex"));const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });const platform = deps.platform ?? process.platform;- const wrapperPath = join85(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");- const legacyWrapperPath = join85(binDir, platform === "win32" ? "omo.cmd" : "omo");+ const wrapperPath = join86(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");+ const legacyWrapperPath = join86(binDir, platform === "win32" ? "omo.cmd" : "omo");const [wrapper, legacyWrapper] = await Promise.all([readRuntimeWrapper(wrapperPath), readRuntimeWrapper(legacyWrapperPath)]);const issues = [];if (wrapper?.includes(RUNTIME_WRAPPER_MARKER2) === true) {@@ -102946,19 +103109,19 @@ import { createHash as createHash7 } from "crypto";import {chmodSync as chmodSync5,existsSync as existsSync61,- mkdirSync as mkdirSync15,- readdirSync as readdirSync11,+ mkdirSync as mkdirSync16,+ readdirSync as readdirSync12,readFileSync as readFileSync38,renameSync as renameSync7,unlinkSync as unlinkSync9,writeFileSync as writeFileSync12} from "fs";-import { basename as basename12, dirname as dirname34, join as join88 } from "path";+import { basename as basename12, dirname as dirname34, join as join89 } from "path";// packages/mcp-client-core/src/config-dir.tsimport { existsSync as existsSync59, realpathSync as realpathSync8 } from "fs";import { homedir as homedir25 } from "os";-import { join as join86, resolve as resolve26 } from "path";+import { join as join87, resolve as resolve26 } from "path";function resolveConfigPath2(pathValue) {const resolvedPath = resolve26(pathValue);if (!existsSync59(resolvedPath))@@ -102976,13 +103139,13 @@ function getOpenCodeCliConfigDir(env = process.env) {if (customConfigDir) {return resolveConfigPath2(customConfigDir);}- const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join86(homedir25(), ".config");- return resolveConfigPath2(join86(xdgConfigDir, "opencode"));+ const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join87(homedir25(), ".config");+ return resolveConfigPath2(join87(xdgConfigDir, "opencode"));}// packages/mcp-client-core/src/mcp-oauth/storage-index.tsimport { chmodSync as chmodSync4, existsSync as existsSync60, readFileSync as readFileSync37, renameSync as renameSync6, writeFileSync as writeFileSync11 } from "fs";-import { join as join87 } from "path";+import { join as join88 } from "path";var INDEX_FILE_NAME = "index.json";function isTokenIndex(value) {if (typeof value !== "object" || value === null || Array.isArray(value))@@ -102990,7 +103153,7 @@ function isTokenIndex(value) {return Object.values(value).every((entry) => typeof entry === "string");}function getIndexPath(storageDir) {- return join87(storageDir, INDEX_FILE_NAME);+ return join88(storageDir, INDEX_FILE_NAME);}function readTokenIndex(storageDir) {const indexPath = getIndexPath(storageDir);@@ -103034,16 +103197,16 @@ function deleteTokenIndexEntry(storageDir, hash) {var STORAGE_DIR_NAME = "mcp-oauth";var LEGACY_STORAGE_FILE_NAME = "mcp-oauth.json";function getMcpOauthStorageDir() {- return join88(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);+ return join89(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);}function getMcpOauthServerHash(serverHost, resource) {return createHash7("sha256").update(buildKey(serverHost, resource)).digest("hex").slice(0, 32);}function getMcpOauthStoragePath(serverHost, resource) {- return join88(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);+ return join89(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);}function getLegacyStoragePath() {- return join88(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);+ return join89(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);}function normalizeHost2(serverHost) {let host = serverHost.trim();@@ -103139,7 +103302,7 @@ function writeTokenFile(filePath, token) {try {const dir = dirname34(filePath);if (!existsSync61(dir)) {- mkdirSync15(dir, { recursive: true });+ mkdirSync16(dir, { recursive: true });}const tempPath = `${filePath}.tmp.${Date.now()}`;writeFileSync12(tempPath, JSON.stringify(token, null, 2), { encoding: "utf-8", mode: 384 });@@ -103222,7 +103385,7 @@ function listTokensByHost(serverHost) {for (const [hash, indexedKey] of Object.entries(index)) {if (!indexedKey.startsWith(prefix))continue;- const indexedToken = readTokenFile(join88(getMcpOauthStorageDir(), `${hash}.json`));+ const indexedToken = readTokenFile(join89(getMcpOauthStorageDir(), `${hash}.json`));if (indexedToken)result[indexedKey] = indexedToken;}@@ -103234,10 +103397,10 @@ function listAllTokens() {if (!existsSync61(dir))return result;const index = readTokenIndex(dir);- for (const entry of readdirSync11(dir, { withFileTypes: true })) {+ for (const entry of readdirSync12(dir, { withFileTypes: true })) {if (!entry.isFile() || !entry.name.endsWith(".json") || entry.name === "index.json")continue;- const token = readTokenFile(join88(dir, entry.name));+ const token = readTokenFile(join89(dir, entry.name));const hash = basename12(entry.name, ".json");if (token)result[index[hash] ?? hash] = token;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 8a4d5a20..968ba196 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.79) Resetting Git Bash MCP Reminder",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 7eb910b0..9c1bf84b 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.79) Resetting LSP Diagnostics Cache",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 83cfb8f6..05d6d01c 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.79) Resetting Project Rule Cache",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 c41740c5..890d4dff 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.79) Checking Comments",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 84809475..33d470aa 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.79) Checking LSP Diagnostics",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 7f2a6261..485d860b 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.79) Checking Thread Title Hygiene",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 b7701aef..0c89fc10 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.79) Matching Project Rules",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 530d2ecc..d36acc00 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.79) Recording Spawn Admission",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 408f1aaf..669e7d83 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.79) Enforcing Unlimited Goal Budget",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 2f7d8084..8e0a7812 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.79) Guarding Ulw-Loop Spawns",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 385789e4..fa45f5f9 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.79) Recommending Git Bash MCP",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 cc7f52e5..cd2e4ee3 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.79) Checking Auto Update",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 8dbab0bb..5a161258 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.79) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.0.0-beta.80) 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 e2f7c68a..abf09dfb 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.79) Loading Project Rules",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 e83dde7c..6e5479e8 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.79) Recording Session Telemetry",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 b41c0f63..729cc57e 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.79) Checking Ulw-Execute Continuation",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 a59cb42b..f5e5408f 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.79) Checking Ulw-Loop Resume",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 0c6630dc..02779cef 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.79) Verifying LazyCodex Executor Evidence",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 d4ccfcb8..5607cb8f 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.79) Checking Ultrawork Trigger",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 52a5dffb..c84feb78 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.79) Checking Ulw-Loop Steering",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 9ce055dc..e65a2ded 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.79) Loading Project Rules",+ "statusMessage": "(OmO 5.0.0-beta.80) 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 e35cd60a..161c7be5 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.79",+ "version": "5.0.0-beta.80","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","workspaces": ["components/comment-checker","components/git-bash",@@ -90,7 +90,7 @@},"components/comment-checker": {"name": "@code-yeongyu/codex-comment-checker",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","bin": {"omo-comment-checker": "dist/cli.js"@@ -111,7 +111,7 @@},"components/git-bash": {"name": "@sisyphuslabs/codex-git-bash-hook",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","bin": {"omo-git-bash-hook": "dist/cli.js"},@@ -125,7 +125,7 @@},"components/lazycodex-executor-verify": {"name": "@code-yeongyu/codex-lazycodex-executor-verify",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","bin": {"lazycodex-executor-verify": "dist/cli.js"@@ -142,7 +142,7 @@},"components/lsp": {"name": "@code-yeongyu/codex-lsp",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","dependencies": {"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon",@@ -163,7 +163,7 @@},"components/rules": {"name": "@code-yeongyu/codex-rules",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","dependencies": {"picomatch": "^4.0.7"@@ -185,7 +185,7 @@},"components/teammode": {"name": "@sisyphuslabs/codex-teammode",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","devDependencies": {"@types/node": "^26.2.0","bun-types": "^1.4.2",@@ -198,7 +198,7 @@},"components/telemetry": {"name": "@code-yeongyu/codex-telemetry",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","bin": {"omo-telemetry": "dist/cli.js"@@ -216,7 +216,7 @@},"components/ultrawork": {"name": "@code-yeongyu/codex-ultrawork",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","bin": {"omo-ultrawork": "dist/cli.js"@@ -234,7 +234,7 @@},"components/ulw-execute-continuation": {"name": "@code-yeongyu/codex-ulw-execute-continuation",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","bin": {"omo-ulw-execute-continuation": "dist/cli.js"@@ -251,7 +251,7 @@},"components/ulw-loop": {"name": "@code-yeongyu/codex-ulw-loop",- "version": "5.0.0-beta.79",+ "version": "5.0.0-beta.80","license": "MIT","bin": {"omo-ulw-loop": "dist/cli.js",diff --git a/plugins/omo/package.json b/plugins/omo/package.jsonindex 55fae6e8..620832e9 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.79",+ "version": "5.0.0-beta.80","description": "Aggregate Codex plugin root for OMO components.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/skills/debugging/references/methodology/02-investigate.md b/plugins/omo/skills/debugging/references/methodology/02-investigate.mdindex dfd8ee87..fe838572 100644--- a/plugins/omo/skills/debugging/references/methodology/02-investigate.md+++ b/plugins/omo/skills/debugging/references/methodology/02-investigate.md@@ -75,22 +75,22 @@ When the `team_*` tools are present, create a **debug-squad** team and split inv"members": [{"kind": "category",- "category": "deep",+ "category": "deep-low","prompt": "You are the Runtime State Inspector. Your job: attach to the live process, hit breakpoints, read program state (variables, heap, goroutines, stack, registers depending on runtime), and report observed values verbatim. Never guess — if you don't see the value, say so. Report back via team_send_message with file:line / address references and captured values. Never edit source code. Never run git commands. If you need an instrumentation statement added (breakpoint(), debugger;, dbg!, etc.), ask the Lead first."},{"kind": "category",- "category": "deep",+ "category": "deep-low","prompt": "You are the Log Archaeologist. Your job: grep server logs, stderr streams, SDK-internal debug output (DEBUG env, RUST_LOG, GODEBUG, PYTHONASYNCIODEBUG), and correlate timestamps. Produce a timeline of events with latencies. Flag anything that looks like a silent catch, a swallowed rejection, a panic recovered-and-ignored, a success response that contains failure signals (HTTP 200 with empty body, stopReason=error, exit 0 with error-in-stdout). Never edit source code."},{"kind": "category",- "category": "deep",+ "category": "deep-low","prompt": "You are the Reproduction Engineer. Your job: build the smallest reliable repro — a curl command, a vitest/pytest/go test, a tmux script, a Playwright script for browser bugs, a pwntools script for binary targets. It must reproduce on first try and be copy-pasteable by the Lead. Document exact input, expected output, observed output. Save repro artifacts under /tmp/ and tell the Lead to journal them. If the bug is browser-based you MUST use Playwright CLI — do not simulate with curl."},{"kind": "category",- "category": "deep",+ "category": "deep-low","prompt": "You are the Trace Correlator. Your job: take findings from the other members and cross-link them. Build a causal chain from symptom to suspected cause. Identify missing evidence. Propose the next single most-decisive runtime query. Never edit source code; only reason across already-captured evidence. If hypotheses diverge sharply after correlation, tell the Lead immediately — that is the signal for the Oracle Triple."}]@@ -117,7 +117,7 @@ task(subagent_type="explore", load_skills=[], run_in_background=true,Runtime state investigation for hypothesis 1: ...")task(subagent_type="explore", load_skills=[], run_in_background=true,prompt="Log/timing investigation for hypothesis 2: ...")-task(category="deep", load_skills=[], run_in_background=true,+task(category="deep-low", load_skills=[], run_in_background=true,prompt="Reproduction minimizer for hypothesis 3: ...")```diff --git a/plugins/omo/skills/refactor/SKILL.md b/plugins/omo/skills/refactor/SKILL.mdindex 9f876e63..ec364517 100644--- a/plugins/omo/skills/refactor/SKILL.md+++ b/plugins/omo/skills/refactor/SKILL.md@@ -708,7 +708,7 @@ Record the chosen path in the TodoWrite list.Rationale for this composition:- **4 workers = team mode's parallel cap.** 5+ just queues.-- **No verifier team member.** Verification needs \`deep\` reasoning (or \`unspecified-high\` fallback). In-team category routing downcasts to the category worker, which is weaker than required — the verifier runs OUTSIDE the team as a \`task(category="deep")\`.+- **No verifier team member.** Verification needs \`deep-high\` reasoning (or \`unspecified-high\` fallback). In-team category routing downcasts to the category worker, which is weaker than required — the verifier runs OUTSIDE the team as a \`task(category="deep-high")\`.- **quick × 2** for mechanical edits, **unspecified-low × 2** for reasoning edits — mirrors the plan's split.**Team lifecycle** (one team, reused until Phase 6 cleanup):@@ -740,7 +740,7 @@ While any team task is \`pending | claimed | in_progress\`:- On a worker completion report, immediately dispatch an **external verifier** — verification runs OUTSIDE the team because team-member category routing downcasts to the category worker:\`\`\`task(- category="deep",+ category="deep-high",load_skills=[],run_in_background=true,description="verify step <N>",diff --git a/plugins/omo/skills/remove-ai-slops/SKILL.md b/plugins/omo/skills/remove-ai-slops/SKILL.mdindex 659be6ff..d62379c5 100644--- a/plugins/omo/skills/remove-ai-slops/SKILL.md+++ b/plugins/omo/skills/remove-ai-slops/SKILL.md@@ -184,9 +184,9 @@ File: src/bar.pyOrder rule (safest → riskiest): comments → dead code → defensive → duplication → complexity → abstraction/boundary → performance → tests → oversized-modules. This minimizes blast radius of any one change.-### Phase 4: Parallel slop removal via `deep` agents in batches of 5+### Phase 4: Parallel slop removal via `deep-low` agents in batches of 5-Files are processed by `deep` category agents with the `$omo:remove-ai-slops` skill loaded, **batched 5 at a time in parallel**. The executable skill name is `remove-ai-slops`. The `deep` category gives the agent enough thoroughness to correctly evaluate the 9 categories and respect the KEEP rules without slipping into surface fixes; the 5-wide batch is the sweet spot — more than 5 creates result-merging noise and context contention, fewer wastes parallelism.+Files are processed by `deep-low` category agents with the `$omo:remove-ai-slops` skill loaded, **batched 5 at a time in parallel**. The executable skill name is `remove-ai-slops`. The `deep-low` category gives the agent enough thoroughness to correctly evaluate the 9 categories and respect the KEEP rules without slipping into surface fixes; the 5-wide batch is the sweet spot — more than 5 creates result-merging noise and context contention, fewer wastes parallelism.**Batching protocol** (strict):@@ -203,7 +203,7 @@ Files are processed by `deep` category agents with the `$omo:remove-ai-slops` sk```task(- category="deep",+ category="deep-low",load_skills=["remove-ai-slops"],run_in_background=true,description="Slop removal: {filename}",@@ -229,7 +229,7 @@ For each skipped issue, give reason.)```-**Batch failure handling**: a `multi_agent_v1.wait_agent` timeout only means no new mailbox update arrived, not that a `deep` agent failed. For long passes, require each child to send `WORKING: <file> - <current phase>` and `BLOCKED: <reason>` only when it cannot progress. Treat a running child as alive. Mark a file for retry only when the child is completed without the deliverable, ack-only after followup, explicitly `BLOCKED:`, or no longer running. Do NOT block the remaining 4 in that batch; collect successful results and retry the failed file once later. If retry also fails, escalate that file under "Issues Found & Fixed" in the final report.+**Batch failure handling**: a `multi_agent_v1.wait_agent` timeout only means no new mailbox update arrived, not that a `deep-low` agent failed. For long passes, require each child to send `WORKING: <file> - <current phase>` and `BLOCKED: <reason>` only when it cannot progress. Treat a running child as alive. Mark a file for retry only when the child is completed without the deliverable, ack-only after followup, explicitly `BLOCKED:`, or no longer running. Do NOT block the remaining 4 in that batch; collect successful results and retry the failed file once later. If retry also fails, escalate that file under "Issues Found & Fixed" in the final report.### Phase 5: Verify with quality gates + critical reviewdiff --git a/plugins/omo/skills/ulw-execute/SKILL.md b/plugins/omo/skills/ulw-execute/SKILL.mdindex e7f7c2ea..0032854e 100644--- a/plugins/omo/skills/ulw-execute/SKILL.md+++ b/plugins/omo/skills/ulw-execute/SKILL.md@@ -152,13 +152,14 @@ When the plan annotates a todo with `Recommended task executor category:`, follo| `visual-engineering` (medium) | frontend, UI/UX, styling, animation || `writing` (low) | documentation and prose || `git` (low) | git operations |-| `deep` (high) | hairy debugging, research-heavy or subtle cross-module work |+| `deep-low` (medium) | hairy debugging, research-heavy or subtle cross-module work the worker can settle from what it reads |+| `deep-high` (high) | the same, when the central decision cannot be settled from evidence: a trade-off, a cross-package contract, or correctness argued from invariants || `ultrabrain` (high) | ONE genuinely hard, logic-heavy problem — hand it the goal, not step-by-step instructions |Sizing is a two-branch decision made per checkbox, before dispatch:- **Splittable work splits.** When the checkbox decomposes into independent pieces, dispatch them as a swarm of `quick`/`unspecified-low` workers in ONE parallel burst — many small cheap workers in parallel beat one large delegation.-- **Cohesive hard work stays whole.** When splitting would sever shared reasoning (one algorithm, one migration, one subtle bug), send the WHOLE problem to `deep` or `ultrabrain` as ONE delegation. Never force-split work whose parts share one insight.+- **Cohesive hard work stays whole.** When splitting would sever shared reasoning (one algorithm, one migration, one subtle bug), send the WHOLE problem to `deep-low`, `deep-high` or `ultrabrain` as ONE delegation. Never force-split work whose parts share one insight.Each sub-task message must include:diff --git a/plugins/omo/skills/ulw-plan/references/full-workflow.md b/plugins/omo/skills/ulw-plan/references/full-workflow.mdindex 8ed36d75..c5718aa4 100644--- a/plugins/omo/skills/ulw-plan/references/full-workflow.md+++ b/plugins/omo/skills/ulw-plan/references/full-workflow.md@@ -154,7 +154,7 @@ No Metis, no plan file, no execution until the user approves. The UNCLEAR path a## Commit strategy## Success criteria```-> Target 5-8 todos per wave; fewer than 3 (except the final) means under-splitting. Implementation + Test = ONE todo. Each todo carries: exhaustive References (the executor has no interview context), agent-executable Acceptance criteria, happy + failure QA scenarios each with an evidence path, a Commit line, and a `Recommended task executor category:` line - the routing verdict the executor follows, with a one-line reason, in the omo category vocabulary: `quick` (mechanical / single-file - the default for every splittable piece), `unspecified-low` (small misc), `unspecified-high` (standard multi-file feature), `visual-engineering` (frontend/UI), `writing` (docs), `git` (git ops), `deep` (hairy debugging or cross-module reasoning), `ultrabrain` (ONE genuinely hard cohesive problem, delegated whole). Prefer many small `quick`-routable todos spread across parallel waves; when splitting would sever shared reasoning, keep ONE todo routed to `deep`/`ultrabrain` - never force-split work whose parts share one insight. Harnesses without categories map by difficulty: quick/unspecified-low/writing/git = low, unspecified-high/visual-engineering = medium, deep/ultrabrain = high.+> Target 5-8 todos per wave; fewer than 3 (except the final) means under-splitting. Implementation + Test = ONE todo. Each todo carries: exhaustive References (the executor has no interview context), agent-executable Acceptance criteria, happy + failure QA scenarios each with an evidence path, a Commit line, and a `Recommended task executor category:` line - the routing verdict the executor follows, with a one-line reason, in the omo category vocabulary: `quick` (mechanical / single-file - the default for every splittable piece), `unspecified-low` (small misc), `unspecified-high` (standard multi-file feature), `visual-engineering` (frontend/UI), `writing` (docs), `git` (git ops), `deep-low` (hairy debugging or cross-module reasoning the worker can settle from what it reads), `deep-high` (the same, when the central decision cannot be settled from evidence: a trade-off, a cross-package contract, or correctness argued from invariants), `ultrabrain` (ONE genuinely hard cohesive problem, delegated whole). Prefer many small `quick`-routable todos spread across parallel waves; when splitting would sever shared reasoning, keep ONE todo routed to `deep`/`ultrabrain` - never force-split work whose parts share one insight. Harnesses without categories map by difficulty: quick/unspecified-low/writing/git = low, unspecified-high/visual-engineering = medium, deep/ultrabrain = high.## Plan artifact producer contractdiff --git a/plugins/omo/skills/ulw-research/SKILL.md b/plugins/omo/skills/ulw-research/SKILL.mdindex 0863addd..e1506cb8 100644--- a/plugins/omo/skills/ulw-research/SKILL.md+++ b/plugins/omo/skills/ulw-research/SKILL.md@@ -255,7 +255,7 @@ Interest alone is not a trigger. Anything without one stays a queued lead in `exSettle with executed code, not judgment, whenever sources disagree, a behavior is undocumented, a claim is performance- or compatibility-shaped, or the honest answer is "it should work". Spawn one verification worker per claim:```-task(category="deep", run_in_background=true, prompt="TASK: verify by execution: <claim>.+task(category="deep-low", run_in_background=true, prompt="TASK: verify by execution: <claim>.SOURCE: <where it came from>; CONTRADICTION: <opposing source, if any>.Write a minimal self-contained script that tests the claim; run it (uv run --with <deps> python / bun / direct compile); capture full stdout+stderr; pin versions.Reply with: the exact code, the full output, environment (OS, runtime, dependency versions), and a verdict — CONFIRMED / REFUTED / PARTIAL — grounded in the output.")@@ -335,7 +335,7 @@ Asset workers (background, parallel, each fed `design-spec.md`) — visuals are**Verify the asset manifest before rendering.** List every asset the document references, assert each file exists and is non-empty on disk, and re-render whatever is missing. A document that renders with three broken diagrams is a document you will publish twice.-Assembly worker — `task(category="deep", load_skills=["frontend", "visual-qa", "open-design", "data-scientist", "imagegen", "ulw-loop"], run_in_background=true, ...)`: before writing, read every available design and visualization skill and apply it — the report is a designed artifact, not a text dump; the worker's prompt carries `design-spec.md`. Use the template the user approved; absent a stronger house style the default skeleton is executive summary → key findings by theme → detailed analysis (quotes under 20 words with attribution, charts, Mermaid graphs, generated visuals, SHA-pinned permalinks, verification results) → comparative analysis when options compete → numbered sources with access dates → methodology appendix (workers, waves, searches, verifications, debate rounds) → correction log naming what verification overturned. Write it long and specific: every claim cites `[Source N]`, and the sources section lists every source the run actually used rather than a curated few.+Assembly worker — `task(category="deep-low", load_skills=["frontend", "visual-qa", "open-design", "data-scientist", "imagegen", "ulw-loop"], run_in_background=true, ...)`: before writing, read every available design and visualization skill and apply it — the report is a designed artifact, not a text dump; the worker's prompt carries `design-spec.md`. Use the template the user approved; absent a stronger house style the default skeleton is executive summary → key findings by theme → detailed analysis (quotes under 20 words with attribution, charts, Mermaid graphs, generated visuals, SHA-pinned permalinks, verification results) → comparative analysis when options compete → numbered sources with access dates → methodology appendix (workers, waves, searches, verifications, debate rounds) → correction log naming what verification overturned. Write it long and specific: every claim cites `[Source N]`, and the sources section lists every source the run actually used rather than a curated few.### The delivery gate — visual QA must PASS