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.1.1
github-actions[bot]7d230bac0bac
diff --git a/plugins/omo/.codex-plugin/plugin.json b/plugins/omo/.codex-plugin/plugin.jsonindex 6b3aef67..561a5afe 100644--- a/plugins/omo/.codex-plugin/plugin.json+++ b/plugins/omo/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "omo",- "version": "5.1.0",+ "version": "5.1.1","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 a5c7b1ac..ce873414 100755--- a/plugins/omo/components/bootstrap/dist/cli.js+++ b/plugins/omo/components/bootstrap/dist/cli.js@@ -438,9 +438,9 @@ async function readOptionalFile(path) {}// components/bootstrap/src/worker.ts-import { appendFile as appendFile2, mkdir as mkdir8, readFile as readFile15 } from "node:fs/promises";+import { appendFile as appendFile2, mkdir as mkdir8, readFile as readFile17 } from "node:fs/promises";import { homedir as homedir5 } from "node:os";-import { dirname as dirname10, join as join24, resolve as resolve8 } from "node:path";+import { dirname as dirname10, join as join25, resolve as resolve8 } from "node:path";import { fileURLToPath as fileURLToPath2 } from "node:url";// components/bootstrap/src/provision.ts@@ -1000,8 +1000,8 @@ async function defaultVersionProbe2(binaryPath) {}// components/bootstrap/src/setup.ts-import { copyFile as copyFile2, mkdir as mkdir7, readFile as readFile14, readdir as readdir5, rm as rm11, stat as stat5 } from "node:fs/promises";-import { join as join23 } from "node:path";+import { copyFile as copyFile2, mkdir as mkdir7, readFile as readFile16, readdir as readdir5, rm as rm12, stat as stat5 } from "node:fs/promises";+import { join as join24 } from "node:path";// ../../../node_modules/.bun/[email protected]/node_modules/zod/v4/core/util.jsfunction getEnumValues(entries) {@@ -7379,6 +7379,7 @@ var OmoTaskSettingsSchema = object({process_runner: _enum(["host", "child-process"]).default("host"),host_engine_policy: _enum(["upgrade", "fallback"]).default("upgrade"),host_idle_exit_ms: number2().int().positive().optional(),+ host_shard_prewarm: _enum(["off", "first-turn", "session-start"]).default("first-turn"),default_concurrency: number2().int().nonnegative().default(5),global_concurrency: number2().int().nonnegative().default(8),provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),@@ -7428,6 +7429,7 @@ var OmoTaskSettingsLayerSchema = object({process_runner: _enum(["host", "child-process"]).optional(),host_engine_policy: _enum(["upgrade", "fallback"]).optional(),host_idle_exit_ms: number2().int().positive().optional(),+ host_shard_prewarm: _enum(["off", "first-turn", "session-start"]).optional(),default_concurrency: number2().int().nonnegative().optional(),global_concurrency: number2().int().nonnegative().optional(),provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),@@ -8991,21 +8993,93 @@ function loadOmoConfig(options = {}) {};}-// ../src/install/codex-default-role-config.ts-function readDefaultRoleConfig(options = {}) {+// ../src/install/codex-cache-fs.ts+import { lstat } from "node:fs/promises";+async function fileExistsStrict(path) {+ try {+ await lstat(path);+ return true;+ } catch (error) {+ if (isNodeErrorWithCode(error) && error.code === "ENOENT")+ return false;+ throw error;+ }+}+function isPlainRecord(value) {+ return typeof value === "object" && value !== null && !Array.isArray(value);+}+function isNodeErrorWithCode(error) {+ return typeof error === "object" && error !== null && "code" in error;+}++// ../src/install/codex-agent-config.ts+function readCodexAgentConfig(options = {}) {const result = loadOmoConfig({ ...options, harness: "codex" });+ const overrides = readAgentOverrides(result);+ return {+ defaultRoleEnabled: result.config.agents?.default?.disable !== true,+ agentOverrides: overrides.agentOverrides,+ warnings: [...result.diagnostics.map((diagnostic) => diagnostic.message), ...overrides.warnings]+ };+}+function unmanagedAgentOverrideWarnings(agentOverrides, managedAgentNames) {+ return [...agentOverrides.keys()].filter((name) => !managedAgentNames.has(name)).map((name) => `[codex].agents.${name} does not name a LazyCodex-managed agent role; its model override was not applied`);+}+function readAgentOverrides(result) {+ let merged = {};+ for (const layer of result.layers)+ merged = mergeOmoConfigRecords(merged, layer.config);+ const profile = result.profile === undefined ? undefined : recordAt(recordAt(merged, "profiles"), result.profile);+ let agents = {};+ for (const scope of [merged, profile]) {+ agents = mergeOmoConfigRecords(agents, recordAt(recordAt(scope, "[codex]"), "agents") ?? {});+ }+ const agentOverrides = new Map;+ const warnings = [];+ for (const [name, value] of Object.entries(agents)) {+ if (name === "default")+ continue;+ const parsed = OmoAgentDefSchema.safeParse(value);+ if (!parsed.success) {+ warnings.push(`[codex].agents.${name} is invalid and was ignored: ${parsed.error.issues[0]?.message ?? "unknown error"}`);+ continue;+ }+ const override = toCodexAgentOverride(parsed.data.model, parsed.data.reasoning);+ if (override.model !== undefined || override.reasoningEffort !== undefined)+ agentOverrides.set(name, override);+ }+ return { agentOverrides, warnings };+}+function toCodexAgentOverride(model, reasoning) {+ const split = model === undefined ? undefined : splitReasoningSuffix(model);+ const effort = codexReasoningEffort(reasoning ?? split?.level);return {- enabled: result.config.agents?.default?.disable !== true,- warnings: result.diagnostics.map((diagnostic) => diagnostic.message)+ ...split === undefined || split.base === "" ? {} : { model: split.base },+ ...effort === undefined ? {} : { reasoningEffort: effort }};}+function codexReasoningEffort(reasoning) {+ if (reasoning === undefined || reasoning === "auto")+ return;+ return reasoning === "off" ? "none" : reasoning;+}+function recordAt(value, key) {+ if (!isPlainRecord(value))+ return;+ const child = value[key];+ return isPlainRecord(child) ? child : undefined;+}// ../src/install/link-cached-plugin-agents.ts-import { copyFile, lstat as lstat5, mkdir as mkdir4, readdir as readdir2, rm as rm7, writeFile as writeFile5 } from "node:fs/promises";-import { basename as basename4, join as join13 } from "node:path";+import { copyFile, lstat as lstat6, mkdir as mkdir4, readdir as readdir2, readFile as readFile8, rm as rm8, writeFile as writeFile6 } from "node:fs/promises";+import { basename as basename4, join as join14 } from "node:path";++// ../src/install/agent-model-overrides.ts+import { readFile as readFile5, rm as rm5, writeFile as writeFile4 } from "node:fs/promises";+import { join as join10 } from "node:path";// ../src/install/preserved-agent-settings.ts-import { lstat, readFile as readFile4, readdir, writeFile as writeFile3 } from "node:fs/promises";+import { lstat as lstat2, readFile as readFile4, readdir, writeFile as writeFile3 } from "node:fs/promises";import { join as join9 } from "node:path";// ../src/install/toml-section-editor.ts@@ -9809,6 +9883,17 @@ async function restorePreservedServiceTier(input) {return;await writeFile3(input.linkPath, replacement.content);}+async function restorePreservedModel(input) {+ if (input.value === null)+ return;+ const content = await readFile4(input.linkPath, "utf8");+ if (extractModel(content) === input.value)+ return;+ const replacement = replaceTopLevelStringSetting(content, "model", input.value, { insertIfMissing: true });+ if (!replacement.replaced)+ return;+ await writeFile3(input.linkPath, replacement.content);+}async function readTextIfExists(path) {try {return await readFile4(path, "utf8");@@ -9891,7 +9976,7 @@ function agentNameFromToml(fileName) {}async function exists(path) {try {- await lstat(path);+ await lstat2(path);return true;} catch (error) {if (nodeErrorCode(error) !== "ENOENT")@@ -9905,9 +9990,86 @@ function nodeErrorCode(error) {return typeof error.code === "string" ? error.code : null;}+// ../src/install/agent-model-overrides.ts+var RECEIPT_FILE = ".lazycodex-agent-models.json";+async function readAgentModelReceipts(codexHome) {+ const content = await readTextIfExists(receiptPath(codexHome));+ if (content === null)+ return new Map;+ const parsed = parseJson(content);+ if (!isPlainRecord(parsed))+ return new Map;+ const receipts = new Map;+ for (const [name, value] of Object.entries(parsed)) {+ if (!isPlainRecord(value))+ continue;+ const model = value["model"];+ const reasoningEffort = value["reasoningEffort"];+ receipts.set(name, {+ ...typeof model === "string" ? { model } : {},+ ...typeof reasoningEffort === "string" ? { reasoningEffort } : {}+ });+ }+ return receipts;+}+async function writeAgentModelReceipts(codexHome, receipts) {+ const path = receiptPath(codexHome);+ if (receipts.size === 0) {+ await rm5(path, { force: true });+ return;+ }+ await writeFile4(path, `${JSON.stringify(Object.fromEntries(receipts), null, "\t")}+`);+}+async function applyAgentOverride(input) {+ if (input.override === undefined)+ return;+ let content = await readFile5(input.linkPath, "utf8");+ if (input.override.model !== undefined) {+ content = replaceTopLevelStringSetting(content, "model", input.override.model, { insertIfMissing: true }).content;+ }+ if (input.override.reasoningEffort !== undefined) {+ content = replaceTopLevelStringSetting(content, "model_reasoning_effort", input.override.reasoningEffort, {+ insertIfMissing: true+ }).content;+ }+ await writeFile4(input.linkPath, content);+}+function receiptPath(codexHome) {+ return join10(codexHome, "agents", RECEIPT_FILE);+}+function parseJson(content) {+ try {+ return JSON.parse(content);+ } catch (error) {+ if (error instanceof SyntaxError)+ return null;+ throw error;+ }+}++// ../src/install/managed-agent-model-defaults.ts+var PREVIOUSLY_BUNDLED_AGENT_MODELS = new Set([+ "gpt-5.2",+ "gpt-5.4-mini",+ "gpt-5.5",+ "gpt-5.6-luna",+ "gpt-5.6-luna-fast",+ "gpt-5.6-sol",+ "gpt-5.6-terra",+ "gpt-6-astra"+]);+function handEditedAgentModel(installedModel, receipt) {+ if (installedModel === null)+ return null;+ if (receipt?.model !== undefined)+ return installedModel === receipt.model ? null : installedModel;+ return PREVIOUSLY_BUNDLED_AGENT_MODELS.has(installedModel) ? null : installedModel;+}+// ../src/install/retired-managed-agent-purge.ts-import { lstat as lstat2, readFile as readFile5, rm as rm5 } from "node:fs/promises";-import { join as join10 } from "node:path";+import { lstat as lstat3, readFile as readFile6, rm as rm6 } from "node:fs/promises";+import { join as join11 } from "node:path";var RETIRED_MANAGED_AGENT_FILES = [{fileName: "codex-ultrawork-reviewer.toml",@@ -9919,20 +10081,20 @@ var RETIRED_MANAGED_AGENT_FILES = [}];async function purgeRetiredManagedAgentFiles(input) {- const agentsDir = join10(input.codexHome, "agents");+ const agentsDir = join11(input.codexHome, "agents");if (!await exists2(agentsDir))return;for (const retiredAgent of RETIRED_MANAGED_AGENT_FILES) {- const agentPath = join10(agentsDir, retiredAgent.fileName);+ const agentPath = join11(agentsDir, retiredAgent.fileName);if (!await exists2(agentPath))continue;- const agentStat = await lstat2(agentPath);+ const agentStat = await lstat3(agentPath);if (agentStat.isDirectory() && !agentStat.isSymbolicLink())continue;const content = await readTextIfExists2(agentPath);if (content === null || !hasRequiredMarkers(content, retiredAgent.requiredMarkers))continue;- await rm5(agentPath, { force: true });+ await rm6(agentPath, { force: true });}}function hasRequiredMarkers(content, markers) {@@ -9940,7 +10102,7 @@ function hasRequiredMarkers(content, markers) {}async function readTextIfExists2(path) {try {- return await readFile5(path, "utf8");+ return await readFile6(path, "utf8");} catch (error) {if (nodeErrorCode2(error) === "ENOENT")return null;@@ -9949,7 +10111,7 @@ async function readTextIfExists2(path) {}async function exists2(path) {try {- await lstat2(path);+ await lstat3(path);return true;} catch (error) {if (nodeErrorCode2(error) !== "ENOENT")@@ -9965,18 +10127,18 @@ function nodeErrorCode2(error) {// ../src/install/default-agent-role.tsimport { createHash as createHash3 } from "node:crypto";-import { lstat as lstat4, readFile as readFile6, rm as rm6 } from "node:fs/promises";-import { join as join12 } from "node:path";+import { lstat as lstat5, readFile as readFile7, rm as rm7 } from "node:fs/promises";+import { join as join13 } from "node:path";// ../src/install/codex-config-atomic-write.ts-import { lstat as lstat3, readlink, realpath, rename as rename3, unlink, writeFile as writeFile4 } from "node:fs/promises";-import { basename as basename3, dirname as dirname6, isAbsolute as isAbsolute2, join as join11, resolve as resolve4 } from "node:path";+import { lstat as lstat4, readlink, realpath, rename as rename3, unlink, writeFile as writeFile5 } from "node:fs/promises";+import { basename as basename3, dirname as dirname6, isAbsolute as isAbsolute2, join as join12, resolve as resolve4 } from "node:path";var RENAME_RETRY_DELAYS_MS = [10, 25, 50];var RETRIABLE_RENAME_CODES = new Set(["EPERM", "EBUSY"]);async function writeFileAtomic(targetPath, data) {const writeTarget = await resolveSymlinkTarget(targetPath);- const temporaryPath = join11(dirname6(writeTarget), `.tmp-${basename3(writeTarget)}-${process.pid}-${Date.now()}`);- await writeFile4(temporaryPath, data);+ const temporaryPath = join12(dirname6(writeTarget), `.tmp-${basename3(writeTarget)}-${process.pid}-${Date.now()}`);+ await writeFile5(temporaryPath, data);try {await renameWithRetry(temporaryPath, writeTarget);} catch (error) {@@ -9990,7 +10152,7 @@ async function writeFileAtomic(targetPath, data) {}async function resolveSymlinkTarget(targetPath) {try {- const linkStats = await lstat3(targetPath);+ const linkStats = await lstat4(targetPath);if (!linkStats.isSymbolicLink())return targetPath;} catch (error) {@@ -10081,11 +10243,11 @@ function tomlKeySegment(value) {// ../src/install/default-agent-role.tsvar REGISTRATION = { name: "default", configFile: "./agents/default.toml" };async function installDefaultAgentRole(input) {- const target = join12(input.codexHome, "agents", "default.toml");- const receipt = join12(input.codexHome, "agents", ".lazycodex-default.sha256");- const configPath = join12(input.codexHome, "config.toml");+ const target = join13(input.codexHome, "agents", "default.toml");+ const receipt = join13(input.codexHome, "agents", ".lazycodex-default.sha256");+ const configPath = join13(input.codexHome, "config.toml");const config = await readIfPresent(configPath);- const entry = await lstat4(target).catch((error) => {+ const entry = await lstat5(target).catch((error) => {if (error instanceof Error && "code" in error && error.code === "ENOENT")return null;throw error;@@ -10106,15 +10268,15 @@ async function installDefaultAgentRole(input) {if (next !== config)await writeFileAtomic(configPath, next);}- await rm6(target);- await rm6(receipt);+ await rm7(target);+ await rm7(receipt);}return null;}if (foreign || existing !== null && !owned) {throw new Error("Preserved user-owned agents.default / agents/default.toml. Move it aside to install the LazyCodex fallback, or set [codex].agents.default.disable = true in omo.jsonc. Explicit LazyCodex roles remain required.");}- const worker = await readFile6(input.worker.path, "utf8");+ const worker = await readFile7(input.worker.path, "utf8");const content = worker.replace(/^name\s*=\s*["']lazycodex-worker-medium["']\s*$/m, 'name = "default"');if (content === worker)throw new Error("Cannot derive default: medium worker has no matching internal name");@@ -10124,7 +10286,7 @@ async function installDefaultAgentRole(input) {}async function readIfPresent(path) {try {- return await readFile6(path, "utf8");+ return await readFile7(path, "utf8");} catch (error) {if (error instanceof Error && "code" in error && error.code === "ENOENT")return null;@@ -10144,27 +10306,19 @@ async function linkCachedPluginAgents(input) {await writeManifest(input.pluginRoot, []);return [];}- const agentsDir = join13(input.codexHome, "agents");+ const agentsDir = join14(input.codexHome, "agents");await mkdir4(agentsDir, { recursive: true });+ const previousReceipts = await readAgentModelReceipts(input.codexHome);+ const receipts = new Map;const linked = [];for (const agentPath of bundledAgents) {const agentFileName = basename4(agentPath);const agentName = agentNameFromToml2(agentFileName);- const linkPath = join13(agentsDir, agentFileName);- await replaceWithCopy(linkPath, agentPath);- await restorePreservedReasoning({- agentName,- linkPath,- target: agentPath,- value: input.preservedReasoning?.get(agentName)- });- await restorePreservedServiceTier({- linkPath,- preserved: input.preservedServiceTier?.has(agentName) ?? false,- value: input.preservedServiceTier?.get(agentName) ?? null- });+ const linkPath = join14(agentsDir, agentFileName);+ receipts.set(agentName, await syncAgentFile({ ...input, agentName, agentPath, linkPath, previousReceipt: previousReceipts.get(agentName) }));linked.push({ name: agentFileName, path: linkPath, target: agentPath });}+ await writeAgentModelReceipts(input.codexHome, receipts);const worker = linked.find((entry) => entry.name === "lazycodex-worker-medium.toml");if (worker !== undefined) {const fallback = await installDefaultAgentRole({ codexHome: input.codexHome, worker, enabled: input.defaultRoleEnabled !== false });@@ -10174,8 +10328,33 @@ async function linkCachedPluginAgents(input) {await writeManifest(input.pluginRoot, linked.map((entry) => entry.path));return linked;}+async function syncAgentFile(input) {+ const installed = await readTextIfExists(input.linkPath);+ const installedModel = installed === null ? null : extractModel(installed);+ const preservedReasoning = input.preservedReasoning?.get(input.agentName);+ const override = input.agentOverrides?.get(input.agentName);+ await replaceWithCopy(input.linkPath, input.agentPath);+ await restorePreservedModel({ linkPath: input.linkPath, value: handEditedAgentModel(installedModel, input.previousReceipt) });+ await restorePreservedReasoning({+ agentName: input.agentName,+ linkPath: input.linkPath,+ target: input.agentPath,+ value: preservedReasoning?.effort === input.previousReceipt?.reasoningEffort ? undefined : preservedReasoning+ });+ await restorePreservedServiceTier({+ linkPath: input.linkPath,+ preserved: input.preservedServiceTier?.has(input.agentName) ?? false,+ value: input.preservedServiceTier?.get(input.agentName) ?? null+ });+ await applyAgentOverride({ linkPath: input.linkPath, override });+ const model = override?.model ?? extractModel(await readFile8(input.agentPath, "utf8"));+ return {+ ...model === null ? {} : { model },+ ...override?.reasoningEffort === undefined ? {} : { reasoningEffort: override.reasoningEffort }+ };+}async function discoverBundledAgents(pluginRoot) {- const componentsRoot = join13(pluginRoot, "components");+ const componentsRoot = join14(pluginRoot, "components");if (!await exists3(componentsRoot))return [];const componentEntries = await readdir2(componentsRoot, { withFileTypes: true });@@ -10183,14 +10362,14 @@ async function discoverBundledAgents(pluginRoot) {for (const entry of componentEntries) {if (!entry.isDirectory())continue;- const agentsRoot = join13(componentsRoot, entry.name, "agents");+ const agentsRoot = join14(componentsRoot, entry.name, "agents");if (!await exists3(agentsRoot))continue;const agentEntries = await readdir2(agentsRoot, { withFileTypes: true });for (const file of agentEntries) {if (!file.isFile() || !file.name.endsWith(".toml"))continue;- agents.push(join13(agentsRoot, file.name));+ agents.push(join14(agentsRoot, file.name));}}agents.sort();@@ -10203,16 +10382,16 @@ async function replaceWithCopy(linkPath, target) {async function prepareReplacement(linkPath) {if (!await exists3(linkPath))return;- const entryStat = await lstat5(linkPath);+ const entryStat = await lstat6(linkPath);if (entryStat.isDirectory() && !entryStat.isSymbolicLink()) {throw new Error(`${linkPath} already exists and is a directory; refusing to replace`);}- await rm7(linkPath, { force: true });+ await rm8(linkPath, { force: true });}async function writeManifest(pluginRoot, agentPaths) {- const manifestPath = join13(pluginRoot, MANIFEST_FILE);+ const manifestPath = join14(pluginRoot, MANIFEST_FILE);const payload = { agents: [...agentPaths].sort() };- await writeFile5(manifestPath, `${JSON.stringify(payload, null, "\t")}+ await writeFile6(manifestPath, `${JSON.stringify(payload, null, "\t")}`);}function agentNameFromToml2(fileName) {@@ -10220,7 +10399,7 @@ function agentNameFromToml2(fileName) {}async function exists3(path) {try {- await lstat5(path);+ await lstat6(path);return true;} catch (error) {if (nodeErrorCode3(error) !== "ENOENT")@@ -10235,8 +10414,8 @@ function nodeErrorCode3(error) {}// ../src/install/codex-cache-bins.ts-import { chmod as chmod2, lstat as lstat9, mkdir as mkdir5, readFile as readFile9, readdir as readdir4, readlink as readlink4, rm as rm10, stat as stat4, symlink, writeFile as writeFile6 } from "node:fs/promises";-import { basename as basename5, isAbsolute as isAbsolute4, join as join17, relative as relative2, resolve as resolve6, sep } from "node:path";+import { chmod as chmod2, lstat as lstat9, mkdir as mkdir5, readFile as readFile11, readdir as readdir4, readlink as readlink4, rm as rm11, stat as stat4, symlink, writeFile as writeFile7 } from "node:fs/promises";+import { basename as basename5, isAbsolute as isAbsolute4, join as join18, relative as relative2, resolve as resolve6, sep } from "node:path";// ../src/install/codex-cache-command-shim.tsvar COMMAND_SHIM_MARKER = ":: generated by oh-my-openagent Codex installer";@@ -10280,36 +10459,15 @@ function windowsCommandShim(targetPath) {}// ../src/install/codex-cache-dangling-bins.ts-import { lstat as lstat7, readFile as readFile7, readdir as readdir3, readlink as readlink2, rm as rm8, stat as stat3 } from "node:fs/promises";-import { dirname as dirname7, isAbsolute as isAbsolute3, join as join14, resolve as resolve5 } from "node:path";--// ../src/install/codex-cache-fs.ts-import { lstat as lstat6 } from "node:fs/promises";-async function fileExistsStrict(path) {- try {- await lstat6(path);- return true;- } catch (error) {- if (isNodeErrorWithCode(error) && error.code === "ENOENT")- return false;- throw error;- }-}-function isPlainRecord(value) {- return typeof value === "object" && value !== null && !Array.isArray(value);-}-function isNodeErrorWithCode(error) {- return typeof error === "object" && error !== null && "code" in error;-}--// ../src/install/codex-cache-dangling-bins.ts+import { lstat as lstat7, readFile as readFile9, readdir as readdir3, readlink as readlink2, rm as rm9, stat as stat3 } from "node:fs/promises";+import { dirname as dirname7, isAbsolute as isAbsolute3, join as join15, resolve as resolve5 } from "node:path";async function removeDanglingManagedComponentBins(binDir, platform, managedBinNames) {const entries = await readdir3(binDir, { withFileTypes: true });for (const entry of entries) {const binName = managedBinNameForEntry(entry.name, platform);if (binName === null || !managedBinNames.has(binName))continue;- const linkPath = join14(binDir, entry.name);+ const linkPath = join15(binDir, entry.name);if (platform === "win32") {await removeDanglingGeneratedCommandShim(linkPath);continue;@@ -10330,7 +10488,7 @@ async function removeDanglingManagedSymlink(linkPath) {const linkTarget = await readlink2(linkPath);const target = isAbsolute3(linkTarget) ? linkTarget : resolve5(dirname7(linkPath), linkTarget);if (!await isFileSystemEntry(target) && isManagedComponentBinTarget(target))- await rm8(linkPath, { force: true });+ await rm9(linkPath, { force: true });} catch (error) {if (isNodeErrorWithCode(error) && error.code === "ENOENT")return;@@ -10342,12 +10500,12 @@ async function removeDanglingGeneratedCommandShim(linkPath) {const linkStat = await lstat7(linkPath);if (!linkStat.isFile())return;- const content = await readFile7(linkPath, "utf8");+ const content = await readFile9(linkPath, "utf8");if (!content.includes(COMMAND_SHIM_MARKER))return;const target = extractCommandShimTarget(content);if (target !== null && !await isFileSystemEntry(target) && isManagedComponentBinTarget(target))- await rm8(linkPath, { force: true });+ await rm9(linkPath, { force: true });} catch (error) {if (isNodeErrorWithCode(error) && error.code === "ENOENT")return;@@ -10390,8 +10548,8 @@ function hasOmoCodexPluginPrefix(parts, endExclusive) {}// ../src/install/codex-cache-legacy-bins.ts-import { lstat as lstat8, readFile as readFile8, readlink as readlink3, rm as rm9 } from "node:fs/promises";-import { join as join15 } from "node:path";+import { lstat as lstat8, readFile as readFile10, readlink as readlink3, rm as rm10 } from "node:fs/promises";+import { join as join16 } from "node:path";var LEGACY_CODEX_COMPONENT_BINS = [{ name: "omo", component: "ulw-loop" },{ name: "codex-comment-checker", component: "comment-checker" },@@ -10404,7 +10562,7 @@ var LEGACY_CODEX_COMPONENT_BINS = [var LEGACY_CODEX_COMPONENT_BIN_NAMES = LEGACY_CODEX_COMPONENT_BINS.map((entry) => entry.name);async function removeLegacyCodexComponentBins(binDir, platform) {for (const entry of LEGACY_CODEX_COMPONENT_BINS) {- const linkPath = join15(binDir, platform === "win32" ? `${entry.name}.cmd` : entry.name);+ const linkPath = join16(binDir, platform === "win32" ? `${entry.name}.cmd` : entry.name);await removeLegacyCodexComponentBin(linkPath, entry.component, platform);}}@@ -10416,14 +10574,14 @@ async function removeLegacyCodexComponentBin(linkPath, component, platform) {return;const target = await readlink3(linkPath);if (isManagedLegacyComponentTarget(target, component))- await rm9(linkPath, { force: true });+ await rm10(linkPath, { force: true });return;}if (!stat.isFile())return;- const content = await readFile8(linkPath, "utf8");+ const content = await readFile10(linkPath, "utf8");if (content.includes(COMMAND_SHIM_MARKER))- await rm9(linkPath, { force: true });+ await rm10(linkPath, { force: true });} catch (error) {if (isNodeErrorWithCode2(error) && error.code === "ENOENT")return;@@ -10455,10 +10613,10 @@ function isNodeErrorWithCode2(error) {}// ../src/install/codex-cache-runtime-wrapper.ts-import { join as join16 } from "node:path";+import { join as join17 } from "node:path";var RUNTIME_WRAPPER_MARKER = "OMO_GENERATED_RUNTIME_WRAPPER";function posixRuntimeWrapper(binName, cliPath, codexHome, binDir, nodeCliPath) {- const ulwLoopBin = toPosixPath2(join16(binDir, "omo-ulw-loop"));+ const ulwLoopBin = toPosixPath2(join17(binDir, "omo-ulw-loop"));const nodeCli = escapePosixDoubleQuoted(toPosixPath2(nodeCliPath));const escapedCliPath = escapePosixDoubleQuoted(toPosixPath2(cliPath));const escapedCodexHome = escapePosixDoubleQuoted(toPosixPath2(codexHome));@@ -10505,7 +10663,7 @@ function posixRuntimeWrapper(binName, cliPath, codexHome, binDir, nodeCliPath) {`);}function windowsRuntimeWrapper(binName, cliPath, codexHome, binDir, nodeCliPath) {- const ulwLoopBin = join16(binDir, "omo-ulw-loop.cmd");+ const ulwLoopBin = join17(binDir, "omo-ulw-loop.cmd");return ["@echo off",`rem ${RUNTIME_WRAPPER_MARKER}`,@@ -10571,23 +10729,23 @@ async function linkCachedPluginBins(input) {return linked;}async function linkRootRuntimeBin(input) {- const cliPath = join17(input.repoRoot, "dist", "cli", "index.js");+ const cliPath = join18(input.repoRoot, "dist", "cli", "index.js");const platform = input.platform ?? process.platform;- const legacyPath = join17(input.binDir, platform === "win32" ? "omo.cmd" : "omo");+ const legacyPath = join18(input.binDir, platform === "win32" ? "omo.cmd" : "omo");if (!await isFile2(cliPath)) {await removeGeneratedRuntimeWrapper(legacyPath);return null;}const binName = "omo-agent-toolkit";- const nodeCliPath = join17(input.repoRoot, "dist", "cli-node", "index.js");+ const nodeCliPath = join18(input.repoRoot, "dist", "cli-node", "index.js");await mkdir5(input.binDir, { recursive: true });if (platform === "win32") {- const linkPath = join17(input.binDir, `${binName}.cmd`);+ const linkPath = join18(input.binDir, `${binName}.cmd`);await replaceRuntimeWrapper(linkPath, windowsRuntimeWrapper(binName, cliPath, input.codexHome, input.binDir, nodeCliPath));await removeGeneratedRuntimeWrapper(legacyPath);return { name: binName, path: linkPath, target: cliPath };}- const linkPath = join17(input.binDir, binName);+ const linkPath = join18(input.binDir, binName);await replaceRuntimeWrapper(linkPath, posixRuntimeWrapper(binName, cliPath, input.codexHome, input.binDir, nodeCliPath));await chmod2(linkPath, 493);await removeGeneratedRuntimeWrapper(legacyPath);@@ -10595,11 +10753,11 @@ async function linkRootRuntimeBin(input) {}async function linkCachedPluginBin(binDir, link, platform) {if (platform === "win32") {- const linkPath = join17(binDir, `${link.name}.cmd`);+ const linkPath = join18(binDir, `${link.name}.cmd`);await replaceCommandShim(linkPath, link.target);return linkPath;}- const linkPath = join17(binDir, link.name);+ const linkPath = join18(binDir, link.name);await replaceSymlink(linkPath, link.target);return linkPath;}@@ -10620,21 +10778,21 @@ async function discoverPackageBins(root) {async function collectPackageBins(directory, root, links) {const entries = await readdir4(directory, { withFileTypes: true });if (entries.some((entry) => entry.isFile() && entry.name === "package.json")) {- await appendPackageBinLinks(join17(directory, "package.json"), directory, root, links);+ await appendPackageBinLinks(join18(directory, "package.json"), directory, root, links);}for (const entry of entries) {if (!entry.isDirectory())continue;if (entry.name === "node_modules" || entry.name === ".git" || entry.name === "dist")continue;- const childPath = join17(directory, entry.name);+ const childPath = join18(directory, entry.name);if (!childPath.startsWith(root))continue;await collectPackageBins(childPath, root, links);}}async function appendPackageBinLinks(packageJsonPath, packageRoot, root, links) {- const packageJson = JSON.parse(await readFile9(packageJsonPath, "utf8"));+ const packageJson = JSON.parse(await readFile11(packageJsonPath, "utf8"));if (!isPlainRecord(packageJson))return;const packageName = packageJson.name;@@ -10680,19 +10838,19 @@ function resolvePackageBinTarget(packageRoot, target) {async function replaceSymlink(linkPath, targetPath) {if (await existingNonSymlink(linkPath))throw new Error(`${linkPath} already exists and is not a symlink`);- await rm10(linkPath, { force: true });+ await rm11(linkPath, { force: true });await symlink(targetPath, linkPath);}async function replaceCommandShim(linkPath, targetPath) {if (await existingNonShim(linkPath))throw new Error(`${linkPath} already exists and is not a command shim`);- await writeFile6(linkPath, windowsCommandShim(targetPath));+ await writeFile7(linkPath, windowsCommandShim(targetPath));}async function replaceRuntimeWrapper(linkPath, content) {if (await existingNonRuntimeWrapper(linkPath))throw new Error(`${linkPath} already exists and is not a generated OMO runtime wrapper`);- await rm10(linkPath, { force: true });- await writeFile6(linkPath, content);+ await rm11(linkPath, { force: true });+ await writeFile7(linkPath, content);}async function removeGeneratedRuntimeWrapper(path) {try {@@ -10701,7 +10859,7 @@ async function removeGeneratedRuntimeWrapper(path) {return;const content = await readGeneratedWrapperContent(path);if (content.includes(RUNTIME_WRAPPER_MARKER))- await rm10(path, { force: true });+ await rm11(path, { force: true });} catch (error) {if (isNodeErrorWithCode(error) && error.code === "ENOENT")return;@@ -10710,7 +10868,7 @@ async function removeGeneratedRuntimeWrapper(path) {}async function readGeneratedWrapperContent(path) {try {- return await readFile9(path, "utf8");+ return await readFile11(path, "utf8");} catch (error) {if (isNodeErrorWithCode(error) && (error.code === "ENOENT" || error.code === "EISDIR"))return "";@@ -10724,7 +10882,7 @@ async function existingNonRuntimeWrapper(path) {return false;if (!stat.isFile())return true;- const content = await readFile9(path, "utf8");+ const content = await readFile11(path, "utf8");return !content.includes(RUNTIME_WRAPPER_MARKER);} catch (error) {if (isNodeErrorWithCode(error) && error.code === "ENOENT")@@ -10737,7 +10895,7 @@ async function existingNonShim(path) {const stat = await lstat9(path);if (!stat.isFile())return true;- const content = await readFile9(path, "utf8");+ const content = await readFile11(path, "utf8");if (content.includes(COMMAND_SHIM_MARKER))return false;throw new Error(`${path} already exists and is not a generated command shim`);@@ -10762,7 +10920,7 @@ async function existingNonSymlink(path) {}// ../src/install/codex-config-toml.ts-import { mkdir as mkdir6, readFile as readFile11 } from "node:fs/promises";+import { mkdir as mkdir6, readFile as readFile13 } from "node:fs/promises";import { dirname as dirname9 } from "node:path";// ../src/install/toml-setting-reader.ts@@ -11204,8 +11362,8 @@ function isRootSetting(line, key) {}// ../src/install/codex-model-catalog.ts-import { readFile as readFile10 } from "node:fs/promises";-import { join as join18 } from "node:path";+import { readFile as readFile12 } from "node:fs/promises";+import { join as join19 } from "node:path";var FALLBACK_CODEX_MODEL_CATALOG = {current: {model: "gpt-6-astra",@@ -11236,9 +11394,9 @@ var FALLBACK_CODEX_MODEL_CATALOG = {]};async function readCodexModelCatalog(codexPackageRoot) {- const catalogPath = join18(codexPackageRoot, "plugin", "model-catalog.json");+ const catalogPath = join19(codexPackageRoot, "plugin", "model-catalog.json");try {- const parsed = JSON.parse(await readFile10(catalogPath, "utf8"));+ const parsed = JSON.parse(await readFile12(catalogPath, "utf8"));return parseCodexModelCatalog(parsed) ?? FALLBACK_CODEX_MODEL_CATALOG;} catch (error) {if (error instanceof Error)@@ -11320,7 +11478,7 @@ function isRootSetting2(line, key) {// ../src/install/codex-multi-agent-v2-config.tsimport { readFileSync as readFileSync2 } from "node:fs";-import { dirname as dirname8, isAbsolute as isAbsolute5, join as join19 } from "node:path";+import { dirname as dirname8, isAbsolute as isAbsolute5, join as join20 } from "node:path";var CODEX_AGENTS_HEADER = "agents";var CODEX_MULTI_AGENT_V2_HEADER = "features.multi_agent_v2";function ensureCodexMultiAgentV2Config(config, options = {}) {@@ -11348,8 +11506,8 @@ function resolveCodexMultiAgentVersion(config, configPath) {}function resolveCatalogPath(configuredPath, configPath) {if (configuredPath === null)- return join19(dirname8(configPath), "models_cache.json");- return isAbsolute5(configuredPath) ? configuredPath : join19(dirname8(configPath), configuredPath);+ return join20(dirname8(configPath), "models_cache.json");+ return isAbsolute5(configuredPath) ? configuredPath : join20(dirname8(configPath), configuredPath);}function readCatalogMultiAgentVersion(model, cachePath) {let raw;@@ -11463,7 +11621,7 @@ async function updateCodexConfig(input) {await mkdir6(dirname9(input.configPath), { recursive: true });let config;try {- config = await readFile11(input.configPath, "utf8");+ config = await readFile13(input.configPath, "utf8");} catch (error) {if (!isMissingFileError(error))throw error;@@ -11509,14 +11667,14 @@ function isMissingFileError(error) {}// ../src/install/codex-git-bash-mcp-env.ts-import { readFile as readFile12, writeFile as writeFile7 } from "node:fs/promises";-import { join as join20 } from "node:path";+import { readFile as readFile14, writeFile as writeFile8 } from "node:fs/promises";+import { join as join21 } from "node:path";var GIT_BASH_ENV_KEY = "OMO_CODEX_GIT_BASH_PATH";async function stampGitBashMcpEnv(input) {- const manifestPath = join20(input.pluginRoot, ".mcp.json");+ const manifestPath = join21(input.pluginRoot, ".mcp.json");if (!await fileExistsStrict(manifestPath))return false;- const parsed = JSON.parse(await readFile12(manifestPath, "utf8"));+ const parsed = JSON.parse(await readFile14(manifestPath, "utf8"));if (!isPlainRecord(parsed) || !isPlainRecord(parsed["mcpServers"]))return false;let changed = false;@@ -11534,15 +11692,15 @@ async function stampGitBashMcpEnv(input) {}if (!changed)return false;- await writeFile7(manifestPath, `${JSON.stringify(parsed, null, "\t")}+ await writeFile8(manifestPath, `${JSON.stringify(parsed, null, "\t")}`);return true;}// ../src/install/codex-hook-trust.tsimport { createHash as createHash4 } from "node:crypto";-import { readFile as readFile13 } from "node:fs/promises";-import { join as join21 } from "node:path";+import { readFile as readFile15 } from "node:fs/promises";+import { join as join22 } from "node:path";var EVENT_LABELS = new Map([["PreToolUse", "pre_tool_use"],["PermissionRequest", "permission_request"],@@ -11556,18 +11714,18 @@ var EVENT_LABELS = new Map([["Stop", "stop"]]);async function trustedHookStatesForPlugin(input) {- const manifestPath = join21(input.pluginRoot, ".codex-plugin", "plugin.json");+ const manifestPath = join22(input.pluginRoot, ".codex-plugin", "plugin.json");if (!await exists4(manifestPath))return [];- const manifest = JSON.parse(await readFile13(manifestPath, "utf8"));+ const manifest = JSON.parse(await readFile15(manifestPath, "utf8"));if (!isPlainRecord(manifest))return [];const states = [];for (const hookPath of hookManifestPaths(manifest.hooks)) {- const hooksPath = join21(input.pluginRoot, hookPath);+ const hooksPath = join22(input.pluginRoot, hookPath);if (!await exists4(hooksPath))continue;- const parsed = JSON.parse(await readFile13(hooksPath, "utf8"));+ const parsed = JSON.parse(await readFile15(hooksPath, "utf8"));if (!isPlainRecord(parsed) || !isPlainRecord(parsed.hooks))continue;states.push(...trustedHookStatesForHooksFile({@@ -11650,7 +11808,7 @@ function stripDotSlash(value) {}async function exists4(path) {try {- await readFile13(path, "utf8");+ await readFile15(path, "utf8");return true;} catch (error) {if (error instanceof Error)@@ -11661,7 +11819,7 @@ async function exists4(path) {// ../src/install/codex-installer-bin-dir.tsimport { homedir as homedir4 } from "node:os";-import { join as join22, resolve as resolve7 } from "node:path";+import { join as join23, resolve as resolve7 } from "node:path";function resolveCodexInstallerBinDir(input) {const explicitBinDir = input.binDir ?? input.env?.CODEX_LOCAL_BIN_DIR;if (explicitBinDir !== undefined && explicitBinDir.trim().length > 0)@@ -11670,7 +11828,7 @@ function resolveCodexInstallerBinDir(input) {const defaultCodexHome = resolve7(homeDir, ".codex");const resolvedCodexHome = resolve7(input.codexHome);if (resolvedCodexHome !== defaultCodexHome)- return join22(resolvedCodexHome, "bin");+ return join23(resolvedCodexHome, "bin");return resolve7(homeDir, ".local", "bin");}@@ -11826,24 +11984,27 @@ async function resolveGitBashStep(options, degraded) {return false;}async function linkBundledAgentsStep(options) {- const agentsTarget = join23(options.codexHome, "agents");+ const agentsTarget = join24(options.codexHome, "agents");try {- const stageRoot = join23(options.pluginData, "bootstrap", "agents-stage");+ const stageRoot = join24(options.pluginData, "bootstrap", "agents-stage");await stageBundledAgents(options.pluginRoot, stageRoot);const preservedReasoning = await capturePreservedAgentReasoning({ codexHome: options.codexHome });const preservedServiceTier = await capturePreservedAgentServiceTier({ codexHome: options.codexHome });- const config = readDefaultRoleConfig({ env: options.env });+ const config = readCodexAgentConfig({ env: options.env });const linked = await linkCachedPluginAgents({codexHome: options.codexHome,pluginRoot: stageRoot,preservedReasoning,preservedServiceTier,- defaultRoleEnabled: config.enabled+ defaultRoleEnabled: config.defaultRoleEnabled,+ agentOverrides: config.agentOverrides});+ const managedAgentNames = new Set(linked.map((link) => agentNameFromToml3(link.name)));+ const warnings = [...config.warnings, ...unmanagedAgentOverrideWarnings(config.agentOverrides, managedAgentNames)];const agentConfigs = linked.map((link) => ({ configFile: `./agents/${link.name}`, name: agentNameFromToml3(link.name) })).sort((left, right) => left.name.localeCompare(right.name));return {agentConfigs,- degraded: config.warnings.map((reason) => ({ component: "agents-config", hint: BOOTSTRAP_DOCTOR_HINT, reason }))+ degraded: warnings.map((reason) => ({ component: "agents-config", hint: BOOTSTRAP_DOCTOR_HINT, reason }))};} catch (error) {return {@@ -11859,23 +12020,23 @@ async function linkBundledAgentsStep(options) {}}async function stageBundledAgents(pluginRoot, stageRoot) {- await rm11(stageRoot, { force: true, recursive: true });+ await rm12(stageRoot, { force: true, recursive: true });await mkdir7(stageRoot, { recursive: true });- const componentsRoot = join23(pluginRoot, "components");+ const componentsRoot = join24(pluginRoot, "components");for (const componentName of await directoryNames(componentsRoot)) {- const agentsDir = join23(componentsRoot, componentName, "agents");+ const agentsDir = join24(componentsRoot, componentName, "agents");const agentFiles = (await fileNames(agentsDir)).filter((name) => name.endsWith(".toml"));if (agentFiles.length === 0)continue;- const stagedAgentsDir = join23(stageRoot, "components", componentName, "agents");+ const stagedAgentsDir = join24(stageRoot, "components", componentName, "agents");await mkdir7(stagedAgentsDir, { recursive: true });for (const agentFile of agentFiles) {- await copyFile2(join23(agentsDir, agentFile), join23(stagedAgentsDir, agentFile));+ await copyFile2(join24(agentsDir, agentFile), join24(stagedAgentsDir, agentFile));}}}async function updateConfigStep(options, inputs, degraded) {- const configPath = join23(options.codexHome, "config.toml");+ const configPath = join24(options.codexHome, "config.toml");try {await assertWritableConfigIfPresent(configPath);const existingConfig = await readConfigIfPresent(configPath);@@ -11921,7 +12082,7 @@ function errorCode(error) {}async function readConfigIfPresent(configPath) {try {- return await readFile14(configPath, "utf8");+ return await readFile16(configPath, "utf8");} catch (error) {if (errorCode(error) === "ENOENT")return "";@@ -11942,7 +12103,7 @@ async function linkComponentBinsStep(options, degraded) {await linkRuntimeWrapperStep(options, binDir, degraded);}async function linkRuntimeWrapperStep(options, binDir, degraded) {- const cliPath = join23(options.pluginRoot, "dist", "cli", "index.js");+ const cliPath = join24(options.pluginRoot, "dist", "cli", "index.js");try {const linked = await linkRootRuntimeBin({binDir,@@ -11975,7 +12136,7 @@ async function stampGitBashEnvStep(options, degraded) {degraded.push({component: "git-bash-env",hint: BOOTSTRAP_DOCTOR_HINT,- reason: `failed to stamp ${join23(options.pluginRoot, ".mcp.json")}: ${errorMessage(error)}`+ reason: `failed to stamp ${join24(options.pluginRoot, ".mcp.json")}: ${errorMessage(error)}`});}}@@ -12043,11 +12204,11 @@ function resolvePluginDataRoot(env) {const fromEnv = env["PLUGIN_DATA"]?.trim();if (fromEnv !== undefined && fromEnv.length > 0)return fromEnv;- return join24(homedir5(), ".local", "share", "lazycodex");+ return join25(homedir5(), ".local", "share", "lazycodex");}async function readPluginVersion(pluginRoot) {try {- const parsed = JSON.parse(await readFile15(join24(pluginRoot, ".codex-plugin", "plugin.json"), "utf8"));+ const parsed = JSON.parse(await readFile17(join25(pluginRoot, ".codex-plugin", "plugin.json"), "utf8"));if (typeof parsed !== "object" || parsed === null)return;const version = parsed["version"];@@ -12117,7 +12278,7 @@ async function runBootstrapWorker(options = {}) {degraded.push({component: "bootstrap",hint: BOOTSTRAP_DOCTOR_HINT,- reason: `plugin version unresolved from ${join24(pluginRoot, ".codex-plugin", "plugin.json")}`+ reason: `plugin version unresolved from ${join25(pluginRoot, ".codex-plugin", "plugin.json")}`});}for (const step of steps) {@@ -12160,7 +12321,7 @@ function resolvePluginRoot(env) {}async function appendBootstrapLog(pluginData, now, event, details) {try {- const logPath = join24(pluginData, "bootstrap", "bootstrap.log");+ const logPath = join25(pluginData, "bootstrap", "bootstrap.log");await mkdir8(dirname10(logPath), { recursive: true });await appendFile2(logPath, `${JSON.stringify({ timestamp: new Date(now).toISOString(), event, ...details })}`);diff --git a/plugins/omo/components/bootstrap/hooks/hooks.json b/plugins/omo/components/bootstrap/hooks/hooks.jsonindex cf3790a2..04fd206e 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.1.0) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.1.1) Checking Bootstrap Provisioning"}]}diff --git a/plugins/omo/components/bootstrap/package.json b/plugins/omo/components/bootstrap/package.jsonindex c91b3277..3044e6bf 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.1.0",+ "version": "5.1.1","description": "Codex SessionStart bootstrap component that provisions LazyCodex runtime dependencies from a detached worker.","type": "module","private": true,diff --git a/plugins/omo/components/bootstrap/src/setup.ts b/plugins/omo/components/bootstrap/src/setup.tsindex 78961fe1..166fef8e 100644--- a/plugins/omo/components/bootstrap/src/setup.ts+++ b/plugins/omo/components/bootstrap/src/setup.ts@@ -1,6 +1,6 @@import { copyFile, mkdir, readFile, readdir, rm, stat } from "node:fs/promises";import { join } from "node:path";-import { readDefaultRoleConfig } from "../../../../src/install/codex-default-role-config.ts";+import { readCodexAgentConfig, unmanagedAgentOverrideWarnings } from "../../../../src/install/codex-agent-config.ts";// These relative imports resolve at BUILD time in the monorepo; esbuild// inlines the installer source modules into dist/cli.js so PLUGIN_ROOT ships@@ -95,20 +95,23 @@ async function linkBundledAgentsStep(options: WorkerSetupOptions): Promise<Agentawait stageBundledAgents(options.pluginRoot, stageRoot);const preservedReasoning = await capturePreservedAgentReasoning({ codexHome: options.codexHome });const preservedServiceTier = await capturePreservedAgentServiceTier({ codexHome: options.codexHome });- const config = readDefaultRoleConfig({ env: options.env });+ const config = readCodexAgentConfig({ env: options.env });const linked = await linkCachedPluginAgents({codexHome: options.codexHome,pluginRoot: stageRoot,preservedReasoning,preservedServiceTier,- defaultRoleEnabled: config.enabled,+ defaultRoleEnabled: config.defaultRoleEnabled,+ agentOverrides: config.agentOverrides,});+ const managedAgentNames = new Set(linked.map((link) => agentNameFromToml(link.name)));+ const warnings = [...config.warnings, ...unmanagedAgentOverrideWarnings(config.agentOverrides, managedAgentNames)];const agentConfigs = linked.map((link) => ({ configFile: `./agents/${link.name}`, name: agentNameFromToml(link.name) })).sort((left, right) => left.name.localeCompare(right.name));return {agentConfigs,- degraded: config.warnings.map((reason) => ({ component: "agents-config", hint: BOOTSTRAP_DOCTOR_HINT, reason })),+ degraded: warnings.map((reason) => ({ component: "agents-config", hint: BOOTSTRAP_DOCTOR_HINT, reason })),};} catch (error) {return {diff --git a/plugins/omo/components/comment-checker/hooks/hooks.json b/plugins/omo/components/comment-checker/hooks/hooks.jsonindex 4116807f..832c30f4 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.1.0) Checking Comments"+ "statusMessage": "(OmO 5.1.1) Checking Comments"}]}diff --git a/plugins/omo/components/comment-checker/package.json b/plugins/omo/components/comment-checker/package.jsonindex d9b3913d..3b275517 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.1.0",+ "version": "5.1.1","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 296e2791..f52b0a18 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.1.0) Recommending Git Bash MCP"+ "statusMessage": "(OmO 5.1.1) 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.1.0) Resetting Git Bash MCP Reminder"+ "statusMessage": "(OmO 5.1.1) Resetting Git Bash MCP Reminder"}]}diff --git a/plugins/omo/components/git-bash/package.json b/plugins/omo/components/git-bash/package.jsonindex 2b18d644..6b578e78 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.1.0",+ "version": "5.1.1","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 0d2b6443..c1fc5072 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.1.0) Verifying LazyCodex Executor Evidence"+ "statusMessage": "(OmO 5.1.1) Verifying LazyCodex Executor Evidence"}]}diff --git a/plugins/omo/components/lazycodex-executor-verify/package.json b/plugins/omo/components/lazycodex-executor-verify/package.jsonindex 90ab3998..65336c85 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.1.0",+ "version": "5.1.1","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 ea5dd8a1..7b2144cc 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.1.0",- "inputDigest": "sha256:402aa7e2b95ae6db7704d08ed85f10a6b069ec83aaef7afa7a383c073c29a003",+ "version": "5.1.1",+ "inputDigest": "sha256:74ce38926eea0fd287b9c3d6ad38c42d0715b796e803790ad88daf464d1a0313","outputs": [{"path": "cli.d.ts",diff --git a/plugins/omo/components/lsp/hooks/hooks.json b/plugins/omo/components/lsp/hooks/hooks.jsonindex 957f4c1b..795ab8c0 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.1.0) Checking LSP Diagnostics"+ "statusMessage": "(OmO 5.1.1) Checking LSP Diagnostics"}]}@@ -21,7 +21,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 5,- "statusMessage": "(OmO 5.1.0) Resetting LSP Diagnostics Cache"+ "statusMessage": "(OmO 5.1.1) Resetting LSP Diagnostics Cache"}]}diff --git a/plugins/omo/components/lsp/package.json b/plugins/omo/components/lsp/package.jsonindex 370f42eb..6dfd6701 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.1.0",+ "version": "5.1.1","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 a9374a6b..6194b8ce 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.1.0) Loading Project Rules"+ "statusMessage": "(OmO 5.1.1) 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.1.0) Loading Project Rules"+ "statusMessage": "(OmO 5.1.1) 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.1.0) Matching Project Rules"+ "statusMessage": "(OmO 5.1.1) Matching Project Rules"}]}@@ -45,7 +45,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact","timeout": 10,- "statusMessage": "(OmO 5.1.0) Resetting Project Rule Cache"+ "statusMessage": "(OmO 5.1.1) Resetting Project Rule Cache"}]}diff --git a/plugins/omo/components/rules/package.json b/plugins/omo/components/rules/package.jsonindex 3b1c095d..6c9983a9 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.1.0",+ "version": "5.1.1","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 53859e39..d004fb89 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.1.0) Checking Thread Title Hygiene"+ "statusMessage": "(OmO 5.1.1) Checking Thread Title Hygiene"}]}diff --git a/plugins/omo/components/teammode/package.json b/plugins/omo/components/teammode/package.jsonindex 677bf622..d186225f 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.1.0",+ "version": "5.1.1","description": "Codex team-mode hook component that keeps background thread titles descriptive after create_thread.","type": "module","private": true,diff --git a/plugins/omo/components/telemetry/hooks/hooks.json b/plugins/omo/components/telemetry/hooks/hooks.jsonindex 33d0e694..52050fc5 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.1.0) Recording Session Telemetry"+ "statusMessage": "(OmO 5.1.1) Recording Session Telemetry"}]}diff --git a/plugins/omo/components/telemetry/package.json b/plugins/omo/components/telemetry/package.jsonindex 261aa5a7..55a9f3bc 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.1.0",+ "version": "5.1.1","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 7a1e03a7..3b222e83 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.1.0) Checking Ultrawork Trigger"+ "statusMessage": "(OmO 5.1.1) Checking Ultrawork Trigger"}]}diff --git a/plugins/omo/components/ultrawork/package.json b/plugins/omo/components/ultrawork/package.jsonindex fddfaa77..5e84d919 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.1.0",+ "version": "5.1.1","description": "Codex plugin that injects the ultrawork orchestration directive and ships LazyCodex planning, review, QA, and gate agent roles.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.jsonindex 31d467ca..5a8a1a09 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.1.0) Checking Ulw-Execute Continuation"+ "statusMessage": "(OmO 5.1.1) Checking Ulw-Execute Continuation"}]}diff --git a/plugins/omo/components/ulw-execute-continuation/package.json b/plugins/omo/components/ulw-execute-continuation/package.jsonindex 8844c187..39867991 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.1.0",+ "version": "5.1.1","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/hooks/hooks.json b/plugins/omo/components/ulw-loop/hooks/hooks.jsonindex 927afbed..2a59ab47 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.1.0) Checking Ulw-Loop Steering"+ "statusMessage": "(OmO 5.1.1) 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.1.0) Recording Spawn Admission"+ "statusMessage": "(OmO 5.1.1) 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.1.0) Enforcing Unlimited Ulw-Loop Budget"+ "statusMessage": "(OmO 5.1.1) 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.1.0) Guarding Ulw-Loop Spawns"+ "statusMessage": "(OmO 5.1.1) Guarding Ulw-Loop Spawns"}]}@@ -56,7 +56,7 @@"type": "command","command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook stop","timeout": 10,- "statusMessage": "(OmO 5.1.0) Checking Ulw-Loop Resume"+ "statusMessage": "(OmO 5.1.1) Checking Ulw-Loop Resume"}]}diff --git a/plugins/omo/components/ulw-loop/package.json b/plugins/omo/components/ulw-loop/package.jsonindex 6ee705f1..1be9325d 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.1.0",+ "version": "5.1.1","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/dist/cli-node/index.js b/plugins/omo/dist/cli-node/index.jsindex c059de61..a6b82cc3 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.1.0",+ version: "5.1.1",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",@@ -254,7 +254,7 @@ var init_package = __esm(() => {zod: "^4.6.5"},devDependencies: {- "@code-yeongyu/senpi": "2026.9.28-7",+ "@code-yeongyu/senpi": "2026.9.29","@oh-my-opencode/agents-md-core": "workspace:*","@oh-my-opencode/ast-grep-mcp": "workspace:*","@oh-my-opencode/boulder-state": "workspace:*",@@ -300,18 +300,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.1.0",- "oh-my-opencode-darwin-x64": "5.1.0",- "oh-my-opencode-darwin-x64-baseline": "5.1.0",- "oh-my-opencode-linux-arm64": "5.1.0",- "oh-my-opencode-linux-arm64-musl": "5.1.0",- "oh-my-opencode-linux-x64": "5.1.0",- "oh-my-opencode-linux-x64-baseline": "5.1.0",- "oh-my-opencode-linux-x64-musl": "5.1.0",- "oh-my-opencode-linux-x64-musl-baseline": "5.1.0",- "oh-my-opencode-windows-arm64": "5.1.0",- "oh-my-opencode-windows-x64": "5.1.0",- "oh-my-opencode-windows-x64-baseline": "5.1.0"+ "oh-my-opencode-darwin-arm64": "5.1.1",+ "oh-my-opencode-darwin-x64": "5.1.1",+ "oh-my-opencode-darwin-x64-baseline": "5.1.1",+ "oh-my-opencode-linux-arm64": "5.1.1",+ "oh-my-opencode-linux-arm64-musl": "5.1.1",+ "oh-my-opencode-linux-x64": "5.1.1",+ "oh-my-opencode-linux-x64-baseline": "5.1.1",+ "oh-my-opencode-linux-x64-musl": "5.1.1",+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.1",+ "oh-my-opencode-windows-arm64": "5.1.1",+ "oh-my-opencode-windows-x64": "5.1.1",+ "oh-my-opencode-windows-x64-baseline": "5.1.1"},overrides: {"@earendil-works/pi-agent-core": "0.84.2",@@ -7397,12 +7397,12 @@ var init_category_model_requirements = __esm(() => {},"deep-low": {fallbackChain: [- { providers: ["openai", "chatgpt-subscription"], model: "gpt-5.6-sol-fast", variant: "medium" },{providers: ["openai", "chatgpt-subscription", "github-copilot", "opencode"],model: "gpt-5.6-sol",variant: "medium"- }+ },+ { providers: ["openai", "chatgpt-subscription"], model: "gpt-5.6-sol-fast", variant: "medium" }]},"deep-high": {@@ -7454,6 +7454,11 @@ var init_category_model_requirements = __esm(() => {},"unspecified-low": {fallbackChain: [+ {+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],+ model: "claude-sonnet-5-5",+ variant: "medium"+ },{ providers: ["xiaomi", "opencode-go"], model: "mimo-v2.6-pro", variant: "max" },{ providers: ["xai", "github-copilot", "opencode-go"], model: "grok-4.7", variant: "xhigh" },{@@ -8390,6 +8395,36 @@ var init_supplemental_entries = __esm(() => {output: 32768}},+ "claude-sonnet-5-5": {+ id: "claude-sonnet-5-5",+ family: "claude-sonnet",+ reasoning: true,+ temperature: false,+ toolCall: true,+ modalities: {+ input: ["text", "image", "pdf"],+ output: ["text"]+ },+ limit: {+ context: 1e6,+ output: 128000+ }+ },+ "anthropic/claude-sonnet-5-5": {+ id: "anthropic/claude-sonnet-5-5",+ family: "claude-sonnet",+ reasoning: true,+ temperature: false,+ toolCall: true,+ modalities: {+ input: ["text", "image", "pdf"],+ output: ["text"]+ },+ limit: {+ context: 1e6,+ output: 128000+ }+ },"grok-4.7": {id: "grok-4.7",family: "grok",@@ -9435,7 +9470,7 @@ var init_openai_categories = __esm(() => {},{name: "deep-low",- config: { model: "openai/gpt-5.6-sol-fast", variant: "medium" },+ 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,@@ -9460,7 +9495,7 @@ var init_openai_categories = __esm(() => {},{name: "unspecified-low",- config: { model: "xiaomi/mimo-v2.6-pro", variant: "max" },+ config: { model: "anthropic/claude-sonnet-5-5", variant: "medium" },description: "Tasks that don't fit other categories, low effort required",callerGuidance: UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE,promptAppend: UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND@@ -74781,6 +74816,7 @@ var init_task = __esm(() => {process_runner: _enum(["host", "child-process"]).default("host"),host_engine_policy: _enum(["upgrade", "fallback"]).default("upgrade"),host_idle_exit_ms: number2().int().positive().optional(),+ host_shard_prewarm: _enum(["off", "first-turn", "session-start"]).default("first-turn"),default_concurrency: number2().int().nonnegative().default(5),global_concurrency: number2().int().nonnegative().default(8),provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),@@ -74830,6 +74866,7 @@ var init_task = __esm(() => {process_runner: _enum(["host", "child-process"]).optional(),host_engine_policy: _enum(["upgrade", "fallback"]).optional(),host_idle_exit_ms: number2().int().positive().optional(),+ host_shard_prewarm: _enum(["off", "first-turn", "session-start"]).optional(),default_concurrency: number2().int().nonnegative().optional(),global_concurrency: number2().int().nonnegative().optional(),provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),@@ -79190,9 +79227,9 @@ function extractChannel(version) {// packages/telemetry-core/src/day-claim.tsimport { closeSync as closeSync3, mkdirSync as mkdirSync9, openSync as openSync3, readdirSync as readdirSync8, rmSync as rmSync3 } from "node:fs";-import { join as join52 } from "node:path";+import { join as join53 } from "node:path";function getTelemetryDayClaimFilePath(stateDir, dayUTC) {- return join52(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);+ return join53(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);}function claimUtcDay(stateDir, dayUTC) {try {@@ -79218,7 +79255,7 @@ function pruneSupersededClaims(stateDir, dayUTC) {if (!entry.startsWith(CLAIM_PREFIX) || !entry.endsWith(CLAIM_SUFFIX))continue;try {- rmSync3(join52(stateDir, entry), { force: true });+ rmSync3(join53(stateDir, entry), { force: true });} catch {}}}@@ -79227,20 +79264,20 @@ var init_day_claim = () => {};// packages/telemetry-core/src/activity-state.tsimport { existsSync as existsSync25, mkdirSync as mkdirSync10, readFileSync as readFileSync12 } from "node:fs";-import { basename as basename9, join as join53 } from "node:path";+import { basename as basename9, join as join54 } 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 : join53(options.env.XDG_DATA_HOME, product.cacheDirName);+ const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join54(options.env.XDG_DATA_HOME, product.cacheDirName);if (dataDir === xdgStateDir || xdgStateDir === undefined && basename9(dataDir) === product.cacheDirName) {return dataDir;}- return join53(dataDir, product.cacheDirName);+ return join54(dataDir, product.cacheDirName);}function getTelemetryActivityStateFilePath(stateDir) {- return join53(stateDir, POSTHOG_ACTIVITY_STATE_FILE);+ return join54(stateDir, POSTHOG_ACTIVITY_STATE_FILE);}function getDailyActiveCaptureState(input) {const dayUTC = getUtcDayString(input.now ?? new Date);@@ -79321,9 +79358,9 @@ var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY =// packages/telemetry-core/src/diagnostics.tsimport { appendFileSync as appendFileSync2, existsSync as existsSync26, mkdirSync as mkdirSync11, readFileSync as readFileSync13 } from "node:fs";-import { join as join54 } from "node:path";+import { join as join55 } from "node:path";function getTelemetryDiagnosticsFilePath(diagnosticsDir) {- return join54(diagnosticsDir, DIAGNOSTICS_FILE_NAME);+ return join55(diagnosticsDir, DIAGNOSTICS_FILE_NAME);}function writeTelemetryDiagnostic(input, options) {const now = options.now ?? new Date;@@ -89066,7 +89103,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.1.0",+ version: "5.1.1",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -90038,7 +90075,7 @@ var init_update_toasts = __esm(() => {// packages/omo-opencode/src/hooks/auto-update-checker/hook/background-update-check.tsimport { existsSync as existsSync48 } from "node:fs";-import { dirname as dirname32, join as join78 } from "node:path";+import { dirname as dirname32, join as join79 } from "node:path";import { fileURLToPath as fileURLToPath5 } from "node:url";function defaultGetModuleHostingWorkspace() {try {@@ -90198,7 +90235,7 @@ var init_background_update_check = __esm(() => {init_update_toasts();defaultDeps4 = {existsSync: existsSync48,- join: join78,+ join: join79,runBunInstallWithDetails,log: log2,getOpenCodeCacheDir,@@ -92654,19 +92691,7 @@ function getUnsupportedOpenCodeVersionMessage(openCodeVersion) {}// packages/omo-codex/src/install/install-codex.ts-import { join as join55, resolve as resolve13 } from "node:path";--// packages/omo-codex/src/install/codex-default-role-config.ts-init_src4();-function readDefaultRoleConfig(options = {}) {- const result = loadOmoConfig({ ...options, harness: "codex" });- return {- enabled: result.config.agents?.default?.disable !== true,- warnings: result.diagnostics.map((diagnostic) => diagnostic.message)- };-}--// packages/omo-codex/src/install/install-codex.ts+import { join as join56, resolve as resolve13 } from "node:path";import { existsSync as existsSync27 } from "node:fs";import { homedir as homedir6 } from "node:os";@@ -95567,13 +95592,126 @@ function toCodexResolution(resolution) {};}+// packages/omo-codex/src/install/codex-agent-config.ts+init_src4();+init_reasoning_vocabulary();+function readCodexAgentConfig(options = {}) {+ const result = loadOmoConfig({ ...options, harness: "codex" });+ const overrides = readAgentOverrides(result);+ return {+ defaultRoleEnabled: result.config.agents?.default?.disable !== true,+ agentOverrides: overrides.agentOverrides,+ warnings: [...result.diagnostics.map((diagnostic) => diagnostic.message), ...overrides.warnings]+ };+}+function unmanagedAgentOverrideWarnings(agentOverrides, managedAgentNames) {+ return [...agentOverrides.keys()].filter((name) => !managedAgentNames.has(name)).map((name) => `[codex].agents.${name} does not name a LazyCodex-managed agent role; its model override was not applied`);+}+function readAgentOverrides(result) {+ let merged = {};+ for (const layer of result.layers)+ merged = mergeOmoConfigRecords(merged, layer.config);+ const profile = result.profile === undefined ? undefined : recordAt2(recordAt2(merged, "profiles"), result.profile);+ let agents = {};+ for (const scope of [merged, profile]) {+ agents = mergeOmoConfigRecords(agents, recordAt2(recordAt2(scope, "[codex]"), "agents") ?? {});+ }+ const agentOverrides = new Map;+ const warnings = [];+ for (const [name, value] of Object.entries(agents)) {+ if (name === "default")+ continue;+ const parsed = OmoAgentDefSchema.safeParse(value);+ if (!parsed.success) {+ warnings.push(`[codex].agents.${name} is invalid and was ignored: ${parsed.error.issues[0]?.message ?? "unknown error"}`);+ continue;+ }+ const override = toCodexAgentOverride(parsed.data.model, parsed.data.reasoning);+ if (override.model !== undefined || override.reasoningEffort !== undefined)+ agentOverrides.set(name, override);+ }+ return { agentOverrides, warnings };+}+function toCodexAgentOverride(model, reasoning) {+ const split = model === undefined ? undefined : splitReasoningSuffix2(model);+ const effort = codexReasoningEffort(reasoning ?? split?.level);+ return {+ ...split === undefined || split.base === "" ? {} : { model: split.base },+ ...effort === undefined ? {} : { reasoningEffort: effort }+ };+}+function codexReasoningEffort(reasoning) {+ if (reasoning === undefined || reasoning === "auto")+ return;+ return reasoning === "off" ? "none" : reasoning;+}+function recordAt2(value, key) {+ if (!isPlainRecord4(value))+ return;+ const child = value[key];+ return isPlainRecord4(child) ? child : undefined;+}++// packages/omo-codex/src/install/codex-marketplace-snapshot.ts+import { cp as cp3, mkdir as mkdir6, rename as rename4, rm as rm7, writeFile as writeFile6 } from "node:fs/promises";+import { join as join39, sep as sep6 } from "node:path";+var INSTALLED_MARKETPLACES_DIR = ".tmp/marketplaces";+async function writeInstalledMarketplaceSnapshot(input) {+ const marketplaceRoot = installedMarketplaceRoot(input.codexHome, input.marketplace.name);+ await mkdir6(marketplaceRoot, { recursive: true });+ await writeMarketplaceManifest(marketplaceRoot, input.marketplace);+ const snapshotPlugins = [];+ for (const plugin of input.plugins) {+ snapshotPlugins.push(await writeSnapshotPlugin(marketplaceRoot, plugin));+ }+ return snapshotPlugins;+}+function installedMarketplaceRoot(codexHome, marketplaceName) {+ return join39(codexHome, INSTALLED_MARKETPLACES_DIR, marketplaceName);+}+async function writeMarketplaceManifest(marketplaceRoot, marketplace) {+ const manifestDir = join39(marketplaceRoot, ".agents", "plugins");+ await mkdir6(manifestDir, { recursive: true });+ const tempPath = join39(manifestDir, `.marketplace-${process.pid}-${Date.now()}.json.tmp`);+ await writeFile6(tempPath, `${JSON.stringify(marketplace, null, "\t")}+`);+ await rename4(tempPath, join39(manifestDir, "marketplace.json"));+}+async function writeSnapshotPlugin(marketplaceRoot, plugin) {+ const pluginsDir = join39(marketplaceRoot, "plugins");+ await mkdir6(pluginsDir, { recursive: true });+ const targetPath = join39(pluginsDir, plugin.name);+ const tempPath = join39(pluginsDir, `.tmp-${plugin.name}-${process.pid}-${Date.now()}`);+ await rm7(tempPath, { recursive: true, force: true });+ await cp3(plugin.sourcePath, tempPath, {+ recursive: true,+ filter: (source) => shouldCopyMarketplaceSourcePath(source, plugin.sourcePath)+ });+ await copyBundledMcpRuntimeDists({ pluginRoot: tempPath, sourceRoot: plugin.sourcePath });+ await rm7(targetPath, { recursive: true, force: true });+ await rename4(tempPath, targetPath);+ await rewriteCachedMcpManifest(targetPath, plugin.sourcePath);+ return { name: plugin.name, path: targetPath };+}+function shouldCopyMarketplaceSourcePath(path, root) {+ const relative = path === root ? "" : path.slice(root.length + sep6.length);+ if (relative === "")+ return true;+ const parts = relative.split(sep6);+ return !parts.some((part) => part === ".git" || part === "node_modules");+}+// packages/omo-codex/src/install/link-cached-plugin-agents.ts-import { copyFile, lstat as lstat10, mkdir as mkdir6, readdir as readdir7, rm as rm9, writeFile as writeFile7 } from "node:fs/promises";-import { basename as basename7, join as join42 } from "node:path";+import { copyFile, lstat as lstat10, mkdir as mkdir7, readdir as readdir7, readFile as readFile17, rm as rm11, writeFile as writeFile9 } from "node:fs/promises";+import { basename as basename7, join as join44 } from "node:path";++// packages/omo-codex/src/install/agent-model-overrides.ts+import { readFile as readFile14, rm as rm8, writeFile as writeFile8 } from "node:fs/promises";+import { join as join41 } from "node:path";// packages/omo-codex/src/install/preserved-agent-settings.ts-import { lstat as lstat7, readFile as readFile13, readdir as readdir6, writeFile as writeFile6 } from "node:fs/promises";-import { join as join39 } from "node:path";+import { lstat as lstat7, readFile as readFile13, readdir as readdir6, writeFile as writeFile7 } from "node:fs/promises";+import { join as join40 } from "node:path";// packages/omo-codex/src/install/managed-agent-reasoning-defaults.tsvar MANAGED_REASONING_DEFAULT_UPGRADES = new Map([@@ -95766,7 +95904,7 @@ function resolveManagedAgentReasoning(input) {// packages/omo-codex/src/install/preserved-agent-settings.tsasync function capturePreservedAgentReasoning(input) {- const agentsDir = join39(input.codexHome, "agents");+ const agentsDir = join40(input.codexHome, "agents");if (!await exists2(agentsDir))return new Map;const preserved = new Map;@@ -95774,7 +95912,7 @@ async function capturePreservedAgentReasoning(input) {for (const entry of agentEntries) {if (!entry.name.endsWith(".toml"))continue;- const content = await readTextIfExists(join39(agentsDir, entry.name));+ const content = await readTextIfExists(join40(agentsDir, entry.name));if (content === null)continue;const effort = extractReasoningEffort(content);@@ -95788,7 +95926,7 @@ async function capturePreservedAgentReasoning(input) {return preserved;}async function capturePreservedAgentServiceTier(input) {- const agentsDir = join39(input.codexHome, "agents");+ const agentsDir = join40(input.codexHome, "agents");if (!await exists2(agentsDir))return new Map;const preserved = new Map;@@ -95796,7 +95934,7 @@ async function capturePreservedAgentServiceTier(input) {for (const entry of agentEntries) {if (!entry.name.endsWith(".toml"))continue;- const content = await readTextIfExists(join39(agentsDir, entry.name));+ const content = await readTextIfExists(join40(agentsDir, entry.name));if (content === null)continue;preserved.set(agentNameFromToml(entry.name), extractServiceTier(content));@@ -95819,7 +95957,7 @@ async function restorePreservedReasoning(input) {const replacement = replaceTopLevelStringSetting(content, "model_reasoning_effort", effort, { insertIfMissing: false });if (!replacement.replaced)return;- await writeFile6(input.linkPath, replacement.content);+ await writeFile7(input.linkPath, replacement.content);}async function restorePreservedServiceTier(input) {if (!input.preserved)@@ -95830,7 +95968,18 @@ async function restorePreservedServiceTier(input) {const replacement = replaceTopLevelStringSetting(content, "service_tier", input.value, { insertIfMissing: true });if (!replacement.replaced)return;- await writeFile6(input.linkPath, replacement.content);+ await writeFile7(input.linkPath, replacement.content);+}+async function restorePreservedModel(input) {+ if (input.value === null)+ return;+ const content = await readFile13(input.linkPath, "utf8");+ if (extractModel(content) === input.value)+ return;+ const replacement = replaceTopLevelStringSetting(content, "model", input.value, { insertIfMissing: true });+ if (!replacement.replaced)+ return;+ await writeFile7(input.linkPath, replacement.content);}async function readTextIfExists(path) {try {@@ -95928,9 +96077,86 @@ function nodeErrorCode(error) {return typeof error.code === "string" ? error.code : null;}+// packages/omo-codex/src/install/agent-model-overrides.ts+var RECEIPT_FILE = ".lazycodex-agent-models.json";+async function readAgentModelReceipts(codexHome) {+ const content = await readTextIfExists(receiptPath(codexHome));+ if (content === null)+ return new Map;+ const parsed = parseJson(content);+ if (!isPlainRecord4(parsed))+ return new Map;+ const receipts = new Map;+ for (const [name, value] of Object.entries(parsed)) {+ if (!isPlainRecord4(value))+ continue;+ const model = value["model"];+ const reasoningEffort = value["reasoningEffort"];+ receipts.set(name, {+ ...typeof model === "string" ? { model } : {},+ ...typeof reasoningEffort === "string" ? { reasoningEffort } : {}+ });+ }+ return receipts;+}+async function writeAgentModelReceipts(codexHome, receipts) {+ const path = receiptPath(codexHome);+ if (receipts.size === 0) {+ await rm8(path, { force: true });+ return;+ }+ await writeFile8(path, `${JSON.stringify(Object.fromEntries(receipts), null, "\t")}+`);+}+async function applyAgentOverride(input) {+ if (input.override === undefined)+ return;+ let content = await readFile14(input.linkPath, "utf8");+ if (input.override.model !== undefined) {+ content = replaceTopLevelStringSetting(content, "model", input.override.model, { insertIfMissing: true }).content;+ }+ if (input.override.reasoningEffort !== undefined) {+ content = replaceTopLevelStringSetting(content, "model_reasoning_effort", input.override.reasoningEffort, {+ insertIfMissing: true+ }).content;+ }+ await writeFile8(input.linkPath, content);+}+function receiptPath(codexHome) {+ return join41(codexHome, "agents", RECEIPT_FILE);+}+function parseJson(content) {+ try {+ return JSON.parse(content);+ } catch (error) {+ if (error instanceof SyntaxError)+ return null;+ throw error;+ }+}++// packages/omo-codex/src/install/managed-agent-model-defaults.ts+var PREVIOUSLY_BUNDLED_AGENT_MODELS = new Set([+ "gpt-5.2",+ "gpt-5.4-mini",+ "gpt-5.5",+ "gpt-5.6-luna",+ "gpt-5.6-luna-fast",+ "gpt-5.6-sol",+ "gpt-5.6-terra",+ "gpt-6-astra"+]);+function handEditedAgentModel(installedModel, receipt) {+ if (installedModel === null)+ return null;+ if (receipt?.model !== undefined)+ return installedModel === receipt.model ? null : installedModel;+ return PREVIOUSLY_BUNDLED_AGENT_MODELS.has(installedModel) ? null : installedModel;+}+// packages/omo-codex/src/install/retired-managed-agent-purge.ts-import { lstat as lstat8, readFile as readFile14, rm as rm7 } from "node:fs/promises";-import { join as join40 } from "node:path";+import { lstat as lstat8, readFile as readFile15, rm as rm9 } from "node:fs/promises";+import { join as join42 } from "node:path";var RETIRED_MANAGED_AGENT_FILES = [{fileName: "codex-ultrawork-reviewer.toml",@@ -95942,11 +96168,11 @@ var RETIRED_MANAGED_AGENT_FILES = [}];async function purgeRetiredManagedAgentFiles(input) {- const agentsDir = join40(input.codexHome, "agents");+ const agentsDir = join42(input.codexHome, "agents");if (!await exists3(agentsDir))return;for (const retiredAgent of RETIRED_MANAGED_AGENT_FILES) {- const agentPath = join40(agentsDir, retiredAgent.fileName);+ const agentPath = join42(agentsDir, retiredAgent.fileName);if (!await exists3(agentPath))continue;const agentStat = await lstat8(agentPath);@@ -95955,7 +96181,7 @@ async function purgeRetiredManagedAgentFiles(input) {const content = await readTextIfExists2(agentPath);if (content === null || !hasRequiredMarkers(content, retiredAgent.requiredMarkers))continue;- await rm7(agentPath, { force: true });+ await rm9(agentPath, { force: true });}}function hasRequiredMarkers(content, markers) {@@ -95963,7 +96189,7 @@ function hasRequiredMarkers(content, markers) {}async function readTextIfExists2(path) {try {- return await readFile14(path, "utf8");+ return await readFile15(path, "utf8");} catch (error) {if (nodeErrorCode2(error) === "ENOENT")return null;@@ -95988,13 +96214,13 @@ function nodeErrorCode2(error) {// packages/omo-codex/src/install/default-agent-role.tsimport { createHash as createHash3 } from "node:crypto";-import { lstat as lstat9, readFile as readFile15, rm as rm8 } from "node:fs/promises";-import { join as join41 } from "node:path";+import { lstat as lstat9, readFile as readFile16, rm as rm10 } from "node:fs/promises";+import { join as join43 } from "node:path";var REGISTRATION = { name: "default", configFile: "./agents/default.toml" };async function installDefaultAgentRole(input) {- const target = join41(input.codexHome, "agents", "default.toml");- const receipt = join41(input.codexHome, "agents", ".lazycodex-default.sha256");- const configPath = join41(input.codexHome, "config.toml");+ const target = join43(input.codexHome, "agents", "default.toml");+ const receipt = join43(input.codexHome, "agents", ".lazycodex-default.sha256");+ const configPath = join43(input.codexHome, "config.toml");const config = await readIfPresent(configPath);const entry = await lstat9(target).catch((error) => {if (error instanceof Error && "code" in error && error.code === "ENOENT")@@ -96017,15 +96243,15 @@ async function installDefaultAgentRole(input) {if (next !== config)await writeFileAtomic(configPath, next);}- await rm8(target);- await rm8(receipt);+ await rm10(target);+ await rm10(receipt);}return null;}if (foreign || existing !== null && !owned) {throw new Error("Preserved user-owned agents.default / agents/default.toml. Move it aside to install the LazyCodex fallback, or set [codex].agents.default.disable = true in omo.jsonc. Explicit LazyCodex roles remain required.");}- const worker = await readFile15(input.worker.path, "utf8");+ const worker = await readFile16(input.worker.path, "utf8");const content = worker.replace(/^name\s*=\s*["']lazycodex-worker-medium["']\s*$/m, 'name = "default"');if (content === worker)throw new Error("Cannot derive default: medium worker has no matching internal name");@@ -96035,7 +96261,7 @@ async function installDefaultAgentRole(input) {}async function readIfPresent(path) {try {- return await readFile15(path, "utf8");+ return await readFile16(path, "utf8");} catch (error) {if (error instanceof Error && "code" in error && error.code === "ENOENT")return null;@@ -96055,27 +96281,19 @@ async function linkCachedPluginAgents(input) {await writeManifest(input.pluginRoot, []);return [];}- const agentsDir = join42(input.codexHome, "agents");- await mkdir6(agentsDir, { recursive: true });+ const agentsDir = join44(input.codexHome, "agents");+ await mkdir7(agentsDir, { recursive: true });+ const previousReceipts = await readAgentModelReceipts(input.codexHome);+ const receipts = new Map;const linked = [];for (const agentPath of bundledAgents) {const agentFileName = basename7(agentPath);const agentName = agentNameFromToml2(agentFileName);- const linkPath = join42(agentsDir, agentFileName);- await replaceWithCopy(linkPath, agentPath);- await restorePreservedReasoning({- agentName,- linkPath,- target: agentPath,- value: input.preservedReasoning?.get(agentName)- });- await restorePreservedServiceTier({- linkPath,- preserved: input.preservedServiceTier?.has(agentName) ?? false,- value: input.preservedServiceTier?.get(agentName) ?? null- });+ const linkPath = join44(agentsDir, agentFileName);+ receipts.set(agentName, await syncAgentFile({ ...input, agentName, agentPath, linkPath, previousReceipt: previousReceipts.get(agentName) }));linked.push({ name: agentFileName, path: linkPath, target: agentPath });}+ await writeAgentModelReceipts(input.codexHome, receipts);const worker = linked.find((entry) => entry.name === "lazycodex-worker-medium.toml");if (worker !== undefined) {const fallback = await installDefaultAgentRole({ codexHome: input.codexHome, worker, enabled: input.defaultRoleEnabled !== false });@@ -96085,8 +96303,33 @@ async function linkCachedPluginAgents(input) {await writeManifest(input.pluginRoot, linked.map((entry) => entry.path));return linked;}+async function syncAgentFile(input) {+ const installed = await readTextIfExists(input.linkPath);+ const installedModel = installed === null ? null : extractModel(installed);+ const preservedReasoning = input.preservedReasoning?.get(input.agentName);+ const override = input.agentOverrides?.get(input.agentName);+ await replaceWithCopy(input.linkPath, input.agentPath);+ await restorePreservedModel({ linkPath: input.linkPath, value: handEditedAgentModel(installedModel, input.previousReceipt) });+ await restorePreservedReasoning({+ agentName: input.agentName,+ linkPath: input.linkPath,+ target: input.agentPath,+ value: preservedReasoning?.effort === input.previousReceipt?.reasoningEffort ? undefined : preservedReasoning+ });+ await restorePreservedServiceTier({+ linkPath: input.linkPath,+ preserved: input.preservedServiceTier?.has(input.agentName) ?? false,+ value: input.preservedServiceTier?.get(input.agentName) ?? null+ });+ await applyAgentOverride({ linkPath: input.linkPath, override });+ const model = override?.model ?? extractModel(await readFile17(input.agentPath, "utf8"));+ return {+ ...model === null ? {} : { model },+ ...override?.reasoningEffort === undefined ? {} : { reasoningEffort: override.reasoningEffort }+ };+}async function discoverBundledAgents(pluginRoot) {- const componentsRoot = join42(pluginRoot, "components");+ const componentsRoot = join44(pluginRoot, "components");if (!await exists4(componentsRoot))return [];const componentEntries = await readdir7(componentsRoot, { withFileTypes: true });@@ -96094,14 +96337,14 @@ async function discoverBundledAgents(pluginRoot) {for (const entry of componentEntries) {if (!entry.isDirectory())continue;- const agentsRoot = join42(componentsRoot, entry.name, "agents");+ const agentsRoot = join44(componentsRoot, entry.name, "agents");if (!await exists4(agentsRoot))continue;const agentEntries = await readdir7(agentsRoot, { withFileTypes: true });for (const file of agentEntries) {if (!file.isFile() || !file.name.endsWith(".toml"))continue;- agents.push(join42(agentsRoot, file.name));+ agents.push(join44(agentsRoot, file.name));}}agents.sort();@@ -96118,12 +96361,12 @@ async function prepareReplacement(linkPath) {if (entryStat.isDirectory() && !entryStat.isSymbolicLink()) {throw new Error(`${linkPath} already exists and is a directory; refusing to replace`);}- await rm9(linkPath, { force: true });+ await rm11(linkPath, { force: true });}async function writeManifest(pluginRoot, agentPaths) {- const manifestPath = join42(pluginRoot, MANIFEST_FILE);+ const manifestPath = join44(pluginRoot, MANIFEST_FILE);const payload = { agents: [...agentPaths].sort() };- await writeFile7(manifestPath, `${JSON.stringify(payload, null, "\t")}+ await writeFile9(manifestPath, `${JSON.stringify(payload, null, "\t")}`);}function agentNameFromToml2(fileName) {@@ -96145,13 +96388,59 @@ function nodeErrorCode3(error) {return typeof error.code === "string" ? error.code : null;}+// packages/omo-codex/src/install/install-codex-agents.ts+async function linkInstalledPluginAgents(input) {+ const { codexHome, log } = input;+ const preservedReasoning = await capturePreservedAgentReasoning({ codexHome });+ const preservedServiceTier = await capturePreservedAgentServiceTier({ codexHome });+ const agentSourceRoots = await agentSourceRootsForInstall(input);+ const omoConfig = readCodexAgentConfig({ cwd: input.projectDirectory, env: input.env });+ for (const warning of omoConfig.warnings)+ log(`Warning: ${warning}`);+ const agentConfigs = new Map;+ for (const plugin of input.installed) {+ const agentLinks = await linkCachedPluginAgents({+ codexHome,+ pluginRoot: agentSourceRoots.get(plugin.name) ?? plugin.path,+ platform: input.platform,+ preservedReasoning,+ preservedServiceTier,+ defaultRoleEnabled: omoConfig.defaultRoleEnabled,+ agentOverrides: omoConfig.agentOverrides+ });+ for (const link of agentLinks) {+ log(`Linked agent ${link.name} -> ${link.target}`);+ const agentName = agentNameFromToml3(link.name);+ agentConfigs.set(agentName, { name: agentName, configFile: `./agents/${link.name}` });+ }+ }+ for (const warning of unmanagedAgentOverrideWarnings(omoConfig.agentOverrides, new Set(agentConfigs.keys()))) {+ log(`Warning: ${warning}`);+ }+ return [...agentConfigs.values()].sort((left, right) => left.name.localeCompare(right.name));+}+async function agentSourceRootsForInstall(input) {+ if (input.marketplace.name !== "sisyphuslabs") {+ return new Map(input.installed.map((plugin) => [plugin.name, plugin.path]));+ }+ const snapshotPlugins = await writeInstalledMarketplaceSnapshot({+ codexHome: input.codexHome,+ marketplace: input.marketplace,+ plugins: input.pluginSources+ });+ return new Map(snapshotPlugins.map((plugin) => [plugin.name, plugin.path]));+}+function agentNameFromToml3(fileName) {+ return fileName.endsWith(".toml") ? fileName.slice(0, -".toml".length) : fileName;+}+// packages/omo-codex/src/install/codex-marketplace.ts-import { readFile as readFile16 } from "node:fs/promises";-import { join as join43 } from "node:path";+import { readFile as readFile18 } from "node:fs/promises";+import { join as join45 } from "node:path";var DEFAULT_MARKETPLACE_PATH = "packages/omo-codex/marketplace.json";async function readMarketplace(repoRoot, options) {- const marketplacePath = options?.marketplacePath ?? join43(repoRoot, DEFAULT_MARKETPLACE_PATH);- const raw = await readFile16(marketplacePath, "utf8");+ const marketplacePath = options?.marketplacePath ?? join45(repoRoot, DEFAULT_MARKETPLACE_PATH);+ const raw = await readFile18(marketplacePath, "utf8");const parsed = JSON.parse(raw);if (!isPlainRecord4(parsed))throw new Error("marketplace.json must be an object");@@ -96169,10 +96458,10 @@ async function readMarketplace(repoRoot, options) {function resolvePluginSource(repoRoot, plugin, options) {const sourcePath = localSourcePath(options?.pathOverride ?? plugin.source);const relativePath = sourcePath.slice(2);- return join43(repoRoot, ...relativePath.split(/[\\/]/));+ return join45(repoRoot, ...relativePath.split(/[\\/]/));}async function readPluginManifest(pluginRoot) {- const raw = await readFile16(join43(pluginRoot, ".codex-plugin", "plugin.json"), "utf8");+ const raw = await readFile18(join45(pluginRoot, ".codex-plugin", "plugin.json"), "utf8");const parsed = JSON.parse(raw);if (!isPlainRecord4(parsed))throw new Error(`${pluginRoot} plugin.json must be an object`);@@ -96252,61 +96541,12 @@ function validateLocalSourcePath(path) {return path;}-// packages/omo-codex/src/install/codex-marketplace-snapshot.ts-import { cp as cp3, mkdir as mkdir7, rename as rename4, rm as rm10, writeFile as writeFile8 } from "node:fs/promises";-import { join as join44, sep as sep6 } from "node:path";-var INSTALLED_MARKETPLACES_DIR = ".tmp/marketplaces";-async function writeInstalledMarketplaceSnapshot(input) {- const marketplaceRoot = installedMarketplaceRoot(input.codexHome, input.marketplace.name);- await mkdir7(marketplaceRoot, { recursive: true });- await writeMarketplaceManifest(marketplaceRoot, input.marketplace);- const snapshotPlugins = [];- for (const plugin of input.plugins) {- snapshotPlugins.push(await writeSnapshotPlugin(marketplaceRoot, plugin));- }- return snapshotPlugins;-}-function installedMarketplaceRoot(codexHome, marketplaceName) {- return join44(codexHome, INSTALLED_MARKETPLACES_DIR, marketplaceName);-}-async function writeMarketplaceManifest(marketplaceRoot, marketplace) {- const manifestDir = join44(marketplaceRoot, ".agents", "plugins");- await mkdir7(manifestDir, { recursive: true });- const tempPath = join44(manifestDir, `.marketplace-${process.pid}-${Date.now()}.json.tmp`);- await writeFile8(tempPath, `${JSON.stringify(marketplace, null, "\t")}-`);- await rename4(tempPath, join44(manifestDir, "marketplace.json"));-}-async function writeSnapshotPlugin(marketplaceRoot, plugin) {- const pluginsDir = join44(marketplaceRoot, "plugins");- await mkdir7(pluginsDir, { recursive: true });- const targetPath = join44(pluginsDir, plugin.name);- const tempPath = join44(pluginsDir, `.tmp-${plugin.name}-${process.pid}-${Date.now()}`);- await rm10(tempPath, { recursive: true, force: true });- await cp3(plugin.sourcePath, tempPath, {- recursive: true,- filter: (source) => shouldCopyMarketplaceSourcePath(source, plugin.sourcePath)- });- await copyBundledMcpRuntimeDists({ pluginRoot: tempPath, sourceRoot: plugin.sourcePath });- await rm10(targetPath, { recursive: true, force: true });- await rename4(tempPath, targetPath);- await rewriteCachedMcpManifest(targetPath, plugin.sourcePath);- return { name: plugin.name, path: targetPath };-}-function shouldCopyMarketplaceSourcePath(path, root) {- const relative = path === root ? "" : path.slice(root.length + sep6.length);- if (relative === "")- return true;- const parts = relative.split(sep6);- return !parts.some((part) => part === ".git" || part === "node_modules");-}-// packages/omo-codex/src/install/lazycodex-version-stamp.ts-import { readdir as readdir8, readFile as readFile17, writeFile as writeFile9 } from "node:fs/promises";-import { join as join45 } from "node:path";+import { readdir as readdir8, readFile as readFile19, writeFile as writeFile10 } from "node:fs/promises";+import { join as join46 } from "node:path";async function readDistributionManifest(repoRoot) {try {- const parsed = JSON.parse(await readFile17(join45(repoRoot, "package.json"), "utf8"));+ const parsed = JSON.parse(await readFile19(join46(repoRoot, "package.json"), "utf8"));if (!isPlainRecord4(parsed) || typeof parsed.version !== "string" || parsed.version.trim().length === 0)return;return {@@ -96330,19 +96570,19 @@ function resolveLazyCodexPluginVersion(input) {return input.manifestVersion ?? "local";}async function stampLazyCodexPluginVersion(input) {- const manifestPath = join45(input.pluginRoot, ".codex-plugin", "plugin.json");+ const manifestPath = join46(input.pluginRoot, ".codex-plugin", "plugin.json");const hookPaths = await readPluginHookPaths(manifestPath);await stampJsonVersion(manifestPath, input.version);- await stampJsonVersion(join45(input.pluginRoot, "package.json"), input.version);+ await stampJsonVersion(join46(input.pluginRoot, "package.json"), input.version);for (const hookPath of hookPaths) {- await stampHookStatusMessages(join45(input.pluginRoot, hookPath), input.version);+ await stampHookStatusMessages(join46(input.pluginRoot, hookPath), input.version);}await stampComponentVersions(input);}async function writeLazyCodexInstallSnapshot(input) {if (input.distributionManifest === undefined)return;- await writeFile9(join45(input.pluginRoot, "lazycodex-install.json"), `${JSON.stringify({+ await writeFile10(join46(input.pluginRoot, "lazycodex-install.json"), `${JSON.stringify({packageName: input.distributionManifest.name,version: input.distributionManifest.version}, null, "\t")}@@ -96350,11 +96590,11 @@ async function writeLazyCodexInstallSnapshot(input) {}async function stampJsonVersion(path, version) {try {- const parsed = JSON.parse(await readFile17(path, "utf8"));+ const parsed = JSON.parse(await readFile19(path, "utf8"));if (!isPlainRecord4(parsed))return;parsed.version = version;- await writeFile9(path, `${JSON.stringify(parsed, null, "\t")}+ await writeFile10(path, `${JSON.stringify(parsed, null, "\t")}`);} catch (error) {if (error instanceof Error)@@ -96364,7 +96604,7 @@ async function stampJsonVersion(path, version) {}async function readPluginHookPaths(manifestPath) {try {- const parsed = JSON.parse(await readFile17(manifestPath, "utf8"));+ const parsed = JSON.parse(await readFile19(manifestPath, "utf8"));if (!isPlainRecord4(parsed))return [];if (typeof parsed.hooks === "string" && parsed.hooks.trim().length > 0)@@ -96384,11 +96624,11 @@ function stripDotSlash3(path) {}async function stampHookStatusMessages(path, version) {try {- const parsed = JSON.parse(await readFile17(path, "utf8"));+ const parsed = JSON.parse(await readFile19(path, "utf8"));if (!isPlainRecord4(parsed))return;stampHookGroups(parsed.hooks, version);- await writeFile9(path, `${JSON.stringify(parsed, null, "\t")}+ await writeFile10(path, `${JSON.stringify(parsed, null, "\t")}`);} catch (error) {if (error instanceof Error)@@ -96399,16 +96639,16 @@ async function stampHookStatusMessages(path, version) {async function stampComponentVersions(input) {let entries;try {- entries = await readdir8(join45(input.pluginRoot, "components"));+ entries = await readdir8(join46(input.pluginRoot, "components"));} catch (error) {if (error instanceof Error)return;throw error;}for (const entry of entries) {- const componentRoot = join45(input.pluginRoot, "components", entry);- await stampJsonVersion(join45(componentRoot, "package.json"), input.version);- await stampHookStatusMessages(join45(componentRoot, "hooks", "hooks.json"), input.version);+ const componentRoot = join46(input.pluginRoot, "components", entry);+ await stampJsonVersion(join46(componentRoot, "package.json"), input.version);+ await stampHookStatusMessages(join46(componentRoot, "hooks", "hooks.json"), input.version);}}function stampHookGroups(hooks, version) {@@ -96465,8 +96705,8 @@ var defaultRunCommand = async (command, args, options) => {};// packages/omo-codex/src/install/codex-project-local-cleanup.ts-import { copyFile as copyFile2, lstat as lstat11, readFile as readFile18, writeFile as writeFile10 } from "node:fs/promises";-import { dirname as dirname17, join as join46, resolve as resolve11 } from "node:path";+import { copyFile as copyFile2, lstat as lstat11, readFile as readFile20, writeFile as writeFile11 } from "node:fs/promises";+import { dirname as dirname17, join as join47, resolve as resolve11 } from "node:path";var LEGACY_AGENT_CONFLICT_KEYS = ["max_threads"];var PROJECT_LOCAL_ARTIFACT_PATHS = [".codex/hooks.json",@@ -96485,7 +96725,7 @@ async function repairNearestProjectLocalCodexArtifacts(input) {const artifacts = await collectProjectLocalArtifacts(project.artifactRoots);const configs = [];for (const configPath of project.configPaths) {- const original = await readFile18(configPath, "utf8");+ const original = await readFile20(configPath, "utf8");const repair = repairProjectLocalCodexConfigText(original);if (!repair.changed) {configs.push({@@ -96498,7 +96738,7 @@ async function repairNearestProjectLocalCodexArtifacts(input) {}const backupPath = `${configPath}.backup-${formatBackupTimestamp(input.now?.() ?? new Date)}`;await copyFile2(configPath, backupPath);- await writeFile10(configPath, `${repair.config.trimEnd()}+ await writeFile11(configPath, `${repair.config.trimEnd()}`);configs.push({projectRoot: project.projectRoot,@@ -96569,17 +96809,17 @@ async function findProjectLocalCodexConfigs(startDirectory, codexHome) {if (startDirectoryStat !== null && !startDirectoryStat.isDirectory()) {throw new ProjectLocalCleanupStartDirectoryError(startDirectory);}- const codexHomeConfigPath = codexHome === undefined ? null : join46(resolve11(codexHome), "config.toml");+ const codexHomeConfigPath = codexHome === undefined ? null : join47(resolve11(codexHome), "config.toml");let current = resolve11(startDirectory);const configPathsFromCwd = [];while (true) {- const configPath = join46(current, ".codex", "config.toml");+ const configPath = join47(current, ".codex", "config.toml");if (await isRegularProjectLocalConfig(current, configPath)) {if (codexHomeConfigPath === null || resolve11(configPath) !== codexHomeConfigPath) {configPathsFromCwd.push(configPath);}}- if (await exists5(join46(current, ".git"))) {+ if (await exists5(join47(current, ".git"))) {return configPathsFromCwd.length === 0 ? null : {projectRoot: current,configPaths: [...configPathsFromCwd].reverse(),@@ -96599,7 +96839,7 @@ async function findProjectLocalCodexConfigs(startDirectory, codexHome) {}}async function isRegularProjectLocalConfig(directory, configPath) {- const codexDirStat = await maybeLstat(join46(directory, ".codex"));+ const codexDirStat = await maybeLstat(join47(directory, ".codex"));if (codexDirStat === null || !codexDirStat.isDirectory() || codexDirStat.isSymbolicLink())return false;const configStat = await maybeLstat(configPath);@@ -96619,7 +96859,7 @@ async function collectProjectLocalArtifacts(projectRoots) {const seenPaths = new Set;for (const projectRoot of projectRoots) {for (const relativePath of PROJECT_LOCAL_ARTIFACT_PATHS) {- const artifactPath = join46(projectRoot, relativePath);+ const artifactPath = join47(projectRoot, relativePath);if (seenPaths.has(artifactPath))continue;const entryStat = await maybeLstat(artifactPath);@@ -96695,13 +96935,13 @@ function formatUnknownError(error) {// packages/omo-codex/src/install/lsp-daemon-reaper.tsimport { createHash as createHash4 } from "node:crypto";-import { lstat as lstat12, readFile as readFile20, readdir as readdir10, rm as rm11 } from "node:fs/promises";+import { lstat as lstat12, readFile as readFile22, readdir as readdir10, rm as rm12 } from "node:fs/promises";import { tmpdir as tmpdir3 } from "node:os";-import { join as join47, posix as posix6 } from "node:path";+import { join as join48, posix as posix6 } from "node:path";// packages/omo-codex/src/install/lsp-daemon-reaper-attestation.tsimport { execFile } from "node:child_process";-import { readFile as readFile19, readdir as readdir9, readlink as readlink5 } from "node:fs/promises";+import { readFile as readFile21, readdir as readdir9, readlink as readlink5 } from "node:fs/promises";import { connect } from "node:net";import { basename as basename8 } from "node:path";var PROBE_TIMEOUT_MS = 500;@@ -96743,7 +96983,7 @@ async function attestLegacyDaemonOwnership(input, deps = {}) {return false;}async function attestLinuxOwnership(input, deps) {- const readFileImpl = deps.readFile ?? readFile19;+ const readFileImpl = deps.readFile ?? readFile21;const readDirImpl = deps.readDir ?? readdir9;const readLinkImpl = deps.readLink ?? readlink5;const procNetUnix = await readText(readFileImpl, "/proc/net/unix");@@ -96870,7 +97110,7 @@ async function readBinary(readFileImpl, path) {var LEGACY_EXIT_WAIT_TIMEOUT_MS = 5000;var LEGACY_VERSION_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$/;async function reapLspDaemons(codexHome, deps = {}) {- const daemonRoot = join47(codexHome, "codex-lsp", "daemon");+ const daemonRoot = join48(codexHome, "codex-lsp", "daemon");const platform = deps.platform ?? process.platform;const tmpDir = deps.tmpDir ?? tmpdir3();const probe = deps.probeLegacyJsonRpc ?? probeLegacyJsonRpcEndpoint;@@ -96880,7 +97120,7 @@ async function reapLspDaemons(codexHome, deps = {}) {const entries = await readdir10(daemonRoot, { withFileTypes: true }).catch(() => []);const results = [];for (const entry of [...entries].sort((left, right) => left.name.localeCompare(right.name))) {- const versionPath = join47(daemonRoot, entry.name);+ const versionPath = join48(daemonRoot, entry.name);const parsedVersion = parseVersionEntry(entry.name);if (parsedVersion === null || !entry.isDirectory()) {await removeVersionDir(versionPath);@@ -96928,7 +97168,7 @@ function parseVersionEntry(entryName) {return LEGACY_VERSION_PATTERN.test(version) ? version : null;}async function readLegacyMetadata(input) {- const pidText = await readRegularTrimmedFile(join47(input.versionPath, "daemon.pid"));+ const pidText = await readRegularTrimmedFile(join48(input.versionPath, "daemon.pid"));if (pidText === "non_regular")return { kind: "remove", reason: "removed non-regular legacy daemon metadata" };if (pidText === null)@@ -96936,7 +97176,7 @@ async function readLegacyMetadata(input) {const pid = Number.parseInt(pidText, 10);if (!Number.isInteger(pid) || pid <= 0)return { kind: "remove", reason: "removed malformed legacy daemon metadata" };- const endpointText = await readRegularTrimmedFile(join47(input.versionPath, "daemon.endpoint"));+ const endpointText = await readRegularTrimmedFile(join48(input.versionPath, "daemon.endpoint"));if (endpointText === "non_regular")return { kind: "remove", reason: "removed non-regular legacy daemon metadata" };if (endpointText === null)@@ -96968,14 +97208,14 @@ async function readRegularTrimmedFile(path) {return null;if (!stats.isFile())return "non_regular";- const content = (await readFile20(path, "utf8")).trim();+ const content = (await readFile22(path, "utf8")).trim();return content.length > 0 ? content : null;}function shortDigest(value) {return createHash4("sha256").update(value).digest("hex").slice(0, 16);}async function removeVersionDir(path) {- await rm11(path, { recursive: true, force: true });+ await rm12(path, { recursive: true, force: true });}function removed(version, reason) {return { version, status: "removed", reason };@@ -97015,7 +97255,7 @@ function processIsRunning(pid) {// packages/omo-codex/src/install/codex-installer-bin-dir.tsimport { homedir as homedir5 } from "node:os";-import { join as join48, resolve as resolve12 } from "node:path";+import { join as join49, resolve as resolve12 } from "node:path";function resolveCodexInstallerBinDir(input) {const explicitBinDir = input.binDir ?? input.env?.CODEX_LOCAL_BIN_DIR;if (explicitBinDir !== undefined && explicitBinDir.trim().length > 0)@@ -97024,16 +97264,16 @@ function resolveCodexInstallerBinDir(input) {const defaultCodexHome = resolve12(homeDir, ".codex");const resolvedCodexHome = resolve12(input.codexHome);if (resolvedCodexHome !== defaultCodexHome)- return join48(resolvedCodexHome, "bin");+ return join49(resolvedCodexHome, "bin");return resolve12(homeDir, ".local", "bin");}// packages/omo-codex/src/install/codex-installed-bin-dir.ts-import { readFile as readFile21, readdir as readdir11, writeFile as writeFile11 } from "node:fs/promises";-import { join as join49 } from "node:path";+import { readFile as readFile23, readdir as readdir11, writeFile as writeFile12 } from "node:fs/promises";+import { join as join50 } from "node:path";var INSTALLED_BIN_DIR_MANIFEST = ".installed-bin-dir.json";async function writeInstalledCodexBinDir(input) {- await writeFile11(join49(input.pluginRoot, INSTALLED_BIN_DIR_MANIFEST), `${JSON.stringify({ binDir: input.binDir }, null, 2)}+ await writeFile12(join50(input.pluginRoot, INSTALLED_BIN_DIR_MANIFEST), `${JSON.stringify({ binDir: input.binDir }, null, 2)}`);}async function readInstalledCodexBinDir(codexHome) {@@ -97046,20 +97286,20 @@ async function readInstalledCodexBinDir(codexHome) {}async function installedBinDirManifestPaths(codexHome) {const paths = [- join49(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_BIN_DIR_MANIFEST)+ join50(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_BIN_DIR_MANIFEST)];- const versionRoot = join49(codexHome, "plugins", "cache", "sisyphuslabs", "omo");+ const versionRoot = join50(codexHome, "plugins", "cache", "sisyphuslabs", "omo");const entries = await readdir11(versionRoot, { withFileTypes: true }).catch(() => null);if (entries !== null) {for (const entry of entries) {if (entry.isDirectory())- paths.push(join49(versionRoot, entry.name, INSTALLED_BIN_DIR_MANIFEST));+ paths.push(join50(versionRoot, entry.name, INSTALLED_BIN_DIR_MANIFEST));}}return paths;}async function readBinDirFromManifest(manifestPath) {- const raw = await readFile21(manifestPath, "utf8").catch(() => null);+ const raw = await readFile23(manifestPath, "utf8").catch(() => null);if (raw === null)return null;let parsed;@@ -97077,8 +97317,8 @@ async function readBinDirFromManifest(manifestPath) {}// packages/omo-codex/src/install/codex-git-bash-hooks.ts-import { readFile as readFile22, writeFile as writeFile12 } from "node:fs/promises";-import { join as join50 } from "node:path";+import { readFile as readFile24, writeFile as writeFile13 } from "node:fs/promises";+import { join as join51 } from "node:path";var WINDOWS_ONLY_GIT_BASH_HOOKS = new Set(["./hooks/pre-tool-use-recommending-git-bash-mcp.json","./hooks/post-compact-resetting-git-bash-mcp-reminder.json"@@ -97086,20 +97326,20 @@ var WINDOWS_ONLY_GIT_BASH_HOOKS = new Set([async function removeGitBashHooksOffWindows(input) {if (input.platform === "win32")return;- const manifestPath = join50(input.pluginRoot, ".codex-plugin", "plugin.json");- const parsed = JSON.parse(await readFile22(manifestPath, "utf8"));+ const manifestPath = join51(input.pluginRoot, ".codex-plugin", "plugin.json");+ const parsed = JSON.parse(await readFile24(manifestPath, "utf8"));if (!isPlainRecord4(parsed) || !Array.isArray(parsed.hooks))return;const hooks = parsed.hooks.filter((hook) => typeof hook !== "string" || !WINDOWS_ONLY_GIT_BASH_HOOKS.has(hook));if (hooks.length === parsed.hooks.length)return;- await writeFile12(manifestPath, `${JSON.stringify({ ...parsed, hooks }, null, "\t")}+ await writeFile13(manifestPath, `${JSON.stringify({ ...parsed, hooks }, null, "\t")}`);}// packages/omo-codex/src/install/install-ast-grep-sg.tsinit_src();-import { join as join51 } from "node:path";+import { join as join52 } from "node:path";function describeResult(result) {if (result.kind === "succeeded")return null;@@ -97113,7 +97353,7 @@ async function installAstGrepForCodex(options) {return;const platform = options.platform ?? process.platform;const targetDir = astGrepRuntimeDir(options.codexHome, platform, options.arch ?? process.arch);- const skillDir = join51(plugin.path, "skills", "ast-grep");+ const skillDir = join52(plugin.path, "skills", "ast-grep");const installer = options.installer ?? runAstGrepSkillInstall;try {const result = await installer({ platform, skillDir, targetDir });@@ -97146,7 +97386,7 @@ async function runCodexInstaller(options = {}) {const env = options.env ?? process.env;const platform = options.platform ?? process.platform;const repoRoot = resolve13(options.repoRoot ?? findRepoRoot({ importerDir: import.meta.dir, env }));- const codexHome = resolve13(options.codexHome ?? env.CODEX_HOME ?? join55(homedir6(), ".codex"));+ const codexHome = resolve13(options.codexHome ?? env.CODEX_HOME ?? join56(homedir6(), ".codex"));const projectDirectory = resolve13(options.projectDirectory ?? env.OMO_CODEX_PROJECT ?? process.cwd());const binDir = resolveCodexInstallerBinDir({ binDir: options.binDir, codexHome, env });const runCommand = options.runCommand ?? defaultRunCommand;@@ -97163,14 +97403,13 @@ async function runCodexInstaller(options = {}) {if (!gitBashResolution.found) {throw new Error(gitBashResolution.installHint);}- const codexPackageRoot = join55(repoRoot, "packages", "omo-codex");+ const codexPackageRoot = join56(repoRoot, "packages", "omo-codex");const marketplace = await readMarketplace(repoRoot, {- marketplacePath: join55(codexPackageRoot, "marketplace.json")+ marketplacePath: join56(codexPackageRoot, "marketplace.json")});const distributionManifest = await readDistributionManifest(repoRoot);const installed = [];const pluginSources = [];- const agentConfigs = new Map;for (const entry of marketplace.plugins) {const sourcePath = resolvePluginSource(codexPackageRoot, entry, { pathOverride: "./plugin" });const manifest = await readPluginManifest(sourcePath);@@ -97211,7 +97450,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 ${join55(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 ${join56(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);@@ -97223,33 +97462,16 @@ async function runCodexInstaller(options = {}) {log,platform});- const preservedReasoning = await capturePreservedAgentReasoning({ codexHome });- const preservedServiceTier = await capturePreservedAgentServiceTier({ codexHome });- const agentSourceRoots = await agentSourceRootsForInstall({+ const agentConfigs = await linkInstalledPluginAgents({codexHome,+ projectDirectory,+ env,+ platform,+ log,marketplace,installed,pluginSources});- const omoConfig = readDefaultRoleConfig({ cwd: projectDirectory, env });- for (const warning of omoConfig.warnings)- log(`Warning: ${warning}`);- for (const plugin of installed) {- const pluginRoot = agentSourceRoots.get(plugin.name) ?? plugin.path;- const agentLinks = await linkCachedPluginAgents({- codexHome,- pluginRoot,- platform,- preservedReasoning,- preservedServiceTier,- defaultRoleEnabled: omoConfig.enabled- });- for (const link of agentLinks) {- log(`Linked agent ${link.name} -> ${link.target}`);- const agentName = agentNameFromToml3(link.name);- agentConfigs.set(agentName, { name: agentName, configFile: `./agents/${link.name}` });- }- }const trustedHookStates = (await Promise.all(installed.map((plugin) => trustedHookStatesForPlugin({marketplaceName: marketplace.name,platform,@@ -97278,13 +97500,13 @@ async function runCodexInstaller(options = {}) {continue;log(`Warning: deferred legacy Codex LSP daemon cleanup for v${cleanup.version}: ${cleanup.reason}`);}- const marketplaceRoot = join55(codexHome, "plugins", "cache", marketplace.name);+ const marketplaceRoot = join56(codexHome, "plugins", "cache", marketplace.name);await writeCachedMarketplaceManifest({marketplaceName: marketplace.name,marketplaceRoot,plugins: installed});- const configPath = join55(codexHome, "config.toml");+ const configPath = join56(codexHome, "config.toml");await updateCodexConfig({configPath,repoRoot: codexPackageRoot,@@ -97294,7 +97516,7 @@ async function runCodexInstaller(options = {}) {platform,gitBashEnabled: platform === "win32" && gitBashResolution.found,trustedHookStates,- agentConfigs: [...agentConfigs.values()].sort((left, right) => left.name.localeCompare(right.name)),+ agentConfigs,autonomousPermissions: options.autonomousPermissions !== false,...options.reasoning === undefined ? {} : { reasoning: options.reasoning }});@@ -97321,20 +97543,6 @@ async function runCodexInstaller(options = {}) {projectCleanup};}-function agentNameFromToml3(fileName) {- return fileName.endsWith(".toml") ? fileName.slice(0, -".toml".length) : fileName;-}-async function agentSourceRootsForInstall(input) {- if (input.marketplace.name !== "sisyphuslabs") {- return new Map(input.installed.map((plugin) => [plugin.name, plugin.path]));- }- const snapshotPlugins = await writeInstalledMarketplaceSnapshot({- codexHome: input.codexHome,- marketplace: input.marketplace,- plugins: input.pluginSources- });- return new Map(snapshotPlugins.map((plugin) => [plugin.name, plugin.path]));-}function legacyCacheMarketplaces(marketplaceName) {return marketplaceName === "sisyphuslabs" ? SISYPHUS_LEGACY_CACHE_MARKETPLACES : [];}@@ -97343,7 +97551,7 @@ function findRepoRootFromImporter(importerDir) {for (let depth = 0;depth <= 7; depth += 1) {if (isRepoRootWithCodexPlugin(current))return current;- for (const wrapperPackageRoot of [join55(current, "node_modules", "oh-my-openagent"), join55(current, "oh-my-openagent")]) {+ for (const wrapperPackageRoot of [join56(current, "node_modules", "oh-my-openagent"), join56(current, "oh-my-openagent")]) {if (isRepoRootWithCodexPlugin(wrapperPackageRoot))return wrapperPackageRoot;}@@ -97361,7 +97569,7 @@ function findRepoRoot(input) {return findRepoRootFromImporter(input.importerDir);}function isRepoRootWithCodexPlugin(repoRoot) {- return existsSync27(join55(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));+ return existsSync27(join56(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));}function codexMarketplaceSource(marketplaceRoot) {return { sourceType: "local", source: marketplaceRoot };@@ -97496,13 +97704,13 @@ function defaultRunCommand2(command, args) {});}// packages/omo-codex/src/install/codex-cleanup.ts-import { lstat as lstat15, readFile as readFile25, readdir as readdir13, rm as rm13, rmdir } from "node:fs/promises";+import { lstat as lstat15, readFile as readFile27, readdir as readdir13, rm as rm14, rmdir } from "node:fs/promises";import { homedir as homedir8 } from "node:os";-import { isAbsolute as isAbsolute11, join as join58, relative as relative6, resolve as resolve16 } from "node:path";+import { isAbsolute as isAbsolute11, join as join59, relative as relative6, resolve as resolve16 } from "node:path";// packages/omo-codex/src/install/codex-cleanup-bins.ts-import { lstat as lstat13, readFile as readFile23, readdir as readdir12, readlink as readlink6, rm as rm12 } from "node:fs/promises";-import { dirname as dirname19, isAbsolute as isAbsolute9, join as join56, resolve as resolve14 } from "node:path";+import { lstat as lstat13, readFile as readFile25, readdir as readdir12, readlink as readlink6, rm as rm13 } from "node:fs/promises";+import { dirname as dirname19, isAbsolute as isAbsolute9, join as join57, resolve as resolve14 } from "node:path";var ROOT_RUNTIME_BIN_NAME = "omo";var MANAGED_CODEX_BIN_NAMES = new Set([ROOT_RUNTIME_BIN_NAME,@@ -97532,9 +97740,9 @@ async function removeManagedCodexBins(binDir, platform) {const binName = managedBinNameForEntry2(entry.name, platform);if (binName === null || !MANAGED_CODEX_BIN_NAMES.has(binName))continue;- const linkPath = join56(binDir, entry.name);+ const linkPath = join57(binDir, entry.name);if (await isManagedCodexBin(linkPath, platform, binName)) {- await rm12(linkPath, { force: true });+ await rm13(linkPath, { force: true });removed.push(linkPath);}}@@ -97563,12 +97771,12 @@ async function isManagedCodexBin(linkPath, platform, binName) {}if (!entryStat.isFile())return false;- const content = await readFile23(linkPath, "utf8");+ const content = await readFile25(linkPath, "utf8");return content.includes(RUNTIME_WRAPPER_MARKER) || content.includes(COMMAND_SHIM_MARKER);}// packages/omo-codex/src/install/codex-cleanup-config.ts-import { lstat as lstat14, mkdir as mkdir8, readFile as readFile24, writeFile as writeFile13 } from "node:fs/promises";+import { lstat as lstat14, mkdir as mkdir8, readFile as readFile26, writeFile as writeFile14 } from "node:fs/promises";import { dirname as dirname20 } from "node:path";var MANAGED_MARKETPLACES = ["sisyphuslabs", "lazycodex", "code-yeongyu-codex-plugins"];var LEGACY_MANAGED_CODEX_AGENT_NAMES_TO_PURGE2 = ["codex-ultrawork-reviewer"];@@ -97601,14 +97809,14 @@ function cleanupCodexLightConfigText(config) {async function cleanupCodexConfig(configPath, now) {if (!await configExists(configPath))return { changed: false };- const original = await readFile24(configPath, "utf8");+ const original = await readFile26(configPath, "utf8");const next = cleanupCodexLightConfigText(original);if (next === original)return { changed: false };const backupPath = `${configPath}.backup-${formatBackupTimestamp2(now?.() ?? new Date)}`;await mkdir8(dirname20(configPath), { recursive: true });- await writeFile13(backupPath, original);- await writeFile13(configPath, `${next.trimEnd()}+ await writeFile14(backupPath, original);+ await writeFile14(configPath, `${next.trimEnd()}`);return { changed: true, backupPath };}@@ -97685,7 +97893,7 @@ function nodeErrorCode5(error) {}// packages/omo-codex/src/install/codex-cleanup-safety.ts-import { dirname as dirname21, isAbsolute as isAbsolute10, join as join57, relative as relative5, resolve as resolve15 } from "node:path";+import { dirname as dirname21, isAbsolute as isAbsolute10, join as join58, relative as relative5, resolve as resolve15 } from "node:path";function codexHomeResolvesToFilesystemRoot(codexHome) {const resolved = resolve15(codexHome);return dirname21(resolved) === resolved;@@ -97702,11 +97910,11 @@ function validateManagedCleanupTarget(input) {if (target === codexHome)return skipped(input.path, "outside managed Codex cleanup scope");const exactManagedRoots = new Set([- resolve15(join57(codexHome, "plugins", "cache", "sisyphuslabs")),- resolve15(join57(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),- resolve15(join57(codexHome, "runtime", "ast-grep")),- resolve15(join57(codexHome, "runtime", "node")),- resolve15(join57(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))+ resolve15(join58(codexHome, "plugins", "cache", "sisyphuslabs")),+ resolve15(join58(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),+ resolve15(join58(codexHome, "runtime", "ast-grep")),+ resolve15(join58(codexHome, "runtime", "node")),+ resolve15(join58(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))]);if (exactManagedRoots.has(target))return null;@@ -97736,8 +97944,8 @@ function skipped(path, reason) {var INSTALLED_AGENTS_MANIFEST = ".installed-agents.json";async function cleanupCodexLight(input = {}) {const env = input.env ?? process.env;- const codexHome = resolve16(input.codexHome ?? env.CODEX_HOME ?? join58(homedir8(), ".codex"));- const configPath = join58(codexHome, "config.toml");+ const codexHome = resolve16(input.codexHome ?? env.CODEX_HOME ?? join59(homedir8(), ".codex"));+ const configPath = join59(codexHome, "config.toml");const installedBinDir = await readInstalledCodexBinDir(codexHome);const agentPaths = await collectInstalledAgentPaths(codexHome, configPath);const configCleanup = await cleanupCodexConfig(configPath, input.now);@@ -97791,17 +97999,17 @@ function firstConfiguredPath(...values) {}function managedGlobalStatePaths(codexHome) {return [- join58(codexHome, "plugins", "cache", "sisyphuslabs"),- join58(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),- join58(codexHome, "runtime", "ast-grep"),- join58(codexHome, "runtime", "node"),- join58(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")+ join59(codexHome, "plugins", "cache", "sisyphuslabs"),+ join59(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),+ join59(codexHome, "runtime", "ast-grep"),+ join59(codexHome, "runtime", "node"),+ join59(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")];}var BOOTSTRAP_DATA_GLOB_MAX_DEPTH = 5;async function collectBootstrapDataDirsByGlob(codexHome) {const results = [];- await walkForManagedBootstrapDirs(join58(codexHome, "plugins"), 0, results);+ await walkForManagedBootstrapDirs(join59(codexHome, "plugins"), 0, results);return results;}async function walkForManagedBootstrapDirs(directory, depth, results) {@@ -97813,9 +98021,9 @@ async function walkForManagedBootstrapDirs(directory, depth, results) {for (const entry of entries) {if (!entry.isDirectory())continue;- const childPath = join58(directory, entry.name);+ const childPath = join59(directory, entry.name);if (isManagedBootstrapOwnerName(entry.name)) {- const bootstrapDir = join58(childPath, "bootstrap");+ const bootstrapDir = join59(childPath, "bootstrap");if (await exists6(bootstrapDir))results.push(bootstrapDir);continue;@@ -97841,7 +98049,7 @@ async function attemptRemove(path) {try {if (await lstat15(path).catch(() => null) === null)return false;- await rm13(path, { recursive: true, force: true });+ await rm14(path, { recursive: true, force: true });return true;} catch {return false;@@ -97849,7 +98057,7 @@ async function attemptRemove(path) {}async function pruneEmptyRuntimeDirBestEffort(codexHome) {try {- await rmdir(join58(codexHome, "runtime"));+ await rmdir(join59(codexHome, "runtime"));} catch (error) {if (isExpectedRuntimePruneFailure(error))return;@@ -97861,14 +98069,14 @@ function isExpectedRuntimePruneFailure(error) {}async function collectInstalledAgentPaths(codexHome, configPath) {const manifestPaths = [- join58(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)+ join59(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)];- const versionRoot = join58(codexHome, "plugins", "cache", "sisyphuslabs", "omo");+ const versionRoot = join59(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(join58(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));+ manifestPaths.push(join59(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));}}const paths = new Set;@@ -97885,19 +98093,19 @@ async function collectInstalledAgentPaths(codexHome, configPath) {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) => join58(codexHome, "agents", `${agentName}.toml`));+ const config = await readFile27(configPath, "utf8");+ return MANAGED_CODEX_AGENT_NAMES2.filter((agentName) => config.includes(`config_file = ${JSON.stringify(`./agents/${agentName}.toml`)}`)).map((agentName) => join59(codexHome, "agents", `${agentName}.toml`));}async function readInstalledAgentManifest(manifestPath) {if (!await exists6(manifestPath))return [];- const parsed = JSON.parse(await readFile25(manifestPath, "utf8"));+ const parsed = JSON.parse(await readFile27(manifestPath, "utf8"));if (!isPlainRecord4(parsed) || !Array.isArray(parsed.agents))return [];return parsed.agents.filter((path) => typeof path === "string");}async function removeManifestListedAgentLinks(codexHome, paths) {- const agentsDir = join58(codexHome, "agents");+ const agentsDir = join59(codexHome, "agents");const removed = [];const skipped = [];for (const path of paths) {@@ -97912,7 +98120,7 @@ async function removeManifestListedAgentLinks(codexHome, paths) {skipped.push(path);continue;}- await rm13(path, { force: true });+ await rm14(path, { force: true });removed.push(path);}return { removed, skipped };@@ -97949,14 +98157,14 @@ function nodeErrorCode6(error) {import { execFile as execFile3 } from "node:child_process";import { existsSync as existsSync31 } from "node:fs";import { homedir as homedir11 } from "node:os";-import { dirname as dirname25, join as join63, resolve as resolve20 } from "node:path";+import { dirname as dirname25, join as join64, resolve as resolve20 } 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 existsSync29 } from "node:fs";import { homedir as homedir9 } from "node:os";-import { join as join59, resolve as resolve17 } from "node:path";+import { join as join60, resolve as resolve17 } from "node:path";var AGENT_DIR_ENV_NAMES = ["OMO_CODING_AGENT_DIR","SENPI_CODING_AGENT_DIR",@@ -97970,25 +98178,25 @@ function resolveAgentHome(options) {if (configured)return resolve17(configured);}- const brandedHome = join59(homeDir, ".omo");- const canonical = join59(brandedHome, "agent");- if (exists(join59(canonical, AGENT_HOME_SENTINEL)))+ const brandedHome = join60(homeDir, ".omo");+ const canonical = join60(brandedHome, "agent");+ if (exists(join60(canonical, AGENT_HOME_SENTINEL)))return canonical;- if (exists(join59(brandedHome, AGENT_HOME_SENTINEL)))+ if (exists(join60(brandedHome, AGENT_HOME_SENTINEL)))return brandedHome;- return join59(homeDir, ".senpi", "agent");+ return join60(homeDir, ".senpi", "agent");}// packages/omo-senpi/src/install/local-launcher.tsimport { chmodSync as chmodSync3, existsSync as existsSync30, mkdirSync as mkdirSync12, readFileSync as readFileSync14, rmSync as rmSync4, writeFileSync as writeFileSync7 } from "node:fs";import { homedir as homedir10 } from "node:os";-import { dirname as dirname22, join as join60, resolve as resolve18 } from "node:path";+import { dirname as dirname22, join as join61, resolve as resolve18 } from "node:path";var MARKER = "omo-local-launcher";function localLauncherPath(homeDir = homedir10()) {- return join60(homeDir, ".local", "bin", "omo");+ return join61(homeDir, ".local", "bin", "omo");}function localLauncherCmdPath(homeDir = homedir10()) {- return join60(homeDir, ".local", "bin", "omo.cmd");+ return join61(homeDir, ".local", "bin", "omo.cmd");}function releaseChannel(version) {return version !== undefined && version.includes("-") ? "beta" : "latest";@@ -98006,7 +98214,7 @@ function renderLocalLauncher(options) {userAgent: "omo",originator: "omo",changelog: {- path: join60(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")+ path: join61(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")},update: {packageName: "omo-ai",@@ -98078,8 +98286,8 @@ node "%~dp0omo" %*\r// packages/omo-senpi/src/install/plugin-artifacts.tsimport { 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 dirname24, join as join62 } from "node:path";+import { access as access2, readFile as readFile29, stat as stat6 } from "node:fs/promises";+import { dirname as dirname24, join as join63 } from "node:path";// packages/memory-core/src/personas/manifest.tsvar PERSONA_ASSET_FILENAMES = {@@ -98097,18 +98305,18 @@ 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 basename10, dirname as dirname23, join as join61, resolve as resolve19 } from "node:path";+import { access, copyFile as copyFile3, mkdir as mkdir9, readFile as readFile28, rename as rename5, writeFile as writeFile15 } from "node:fs/promises";+import { basename as basename10, dirname as dirname23, join as join62, resolve as resolve19 } 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 = [- join61("packages", "pi-goal"),- join61("packages", "pi-webfetch")+ join62("packages", "pi-goal"),+ join62("packages", "pi-webfetch")];async function readSettings(settingsPath) {let raw;try {- raw = await readFile26(settingsPath, "utf8");+ raw = await readFile28(settingsPath, "utf8");} catch (error) {if (isErrno(error, "ENOENT"))return {};@@ -98155,11 +98363,11 @@ async function writeSettingsAtomically(settingsPath, settings) {if (await fileExists(settingsPath)) {await copyFile3(settingsPath, backupPath);} else {- await writeFile14(backupPath, `{}+ await writeFile15(backupPath, `{}`, "utf8");}const tempPath = `${settingsPath}.${process.pid}.${Date.now()}.tmp`;- await writeFile14(tempPath, `${JSON.stringify(settings, null, 2)}+ await writeFile15(tempPath, `${JSON.stringify(settings, null, 2)}`, "utf8");await rename5(tempPath, settingsPath);return backupPath;@@ -98182,7 +98390,7 @@ function isRecord15(value) {async function readPackageName(packagePath) {let raw;try {- raw = await readFile26(join61(packagePath, "package.json"), "utf8");+ raw = await readFile28(join62(packagePath, "package.json"), "utf8");} catch (error) {if (isErrno(error, "ENOENT") || isErrno(error, "ENOTDIR"))return;@@ -98214,54 +98422,54 @@ function isErrno(error, code) {// packages/omo-senpi/src/install/plugin-artifacts.tsvar REQUIRED_PLUGIN_ARTIFACTS = [- join62("extensions", "omo.js"),- join62("extensions", "omo-task.js"),- join62("extensions", "omo-computer-use.js"),- join62("extensions", "assets.generated.json"),- join62("extensions", "omo-member.js"),- join62("extensions", "memory-run-supervisor.mjs"),- ...PERSONA_ASSET_FILES.map((filename) => join62("extensions", filename)),- join62("skills", "ast-grep", "SKILL.md"),- join62("skills", "browser", "SKILL.md"),- join62("skills", "coding-agent-sessions", "SKILL.md"),- join62("skills", "debugging", "SKILL.md"),- join62("skills", "frontend", "SKILL.md"),- join62("skills", "git-master", "SKILL.md"),- join62("skills", "init-deep", "SKILL.md"),- join62("skills", "lsp-setup", "SKILL.md"),- join62("skills", "programming", "SKILL.md"),- join62("skills", "refactor", "SKILL.md"),- join62("skills", "remove-ai-slops", "SKILL.md"),- join62("skills", "review-work", "SKILL.md"),- join62("skills", "ultimate-browsing", "SKILL.md"),- join62("skills", "ultrawork", "SKILL.md"),- join62("skills", "ulw-execute", "SKILL.md"),- join62("skills", "ulw-loop", "SKILL.md"),- join62("skills", "ulw-plan", "SKILL.md"),- join62("skills", "ulw-research", "SKILL.md"),- join62("skills", "visual-qa", "SKILL.md"),- join62("skills-conditional", "x-search", "SKILL.md"),- join62("runtime", "agent-toolkit-sdk", "sdk.js"),- join62("runtime", "ast-grep-mcp", "cli.js"),- join62("runtime", "lsp-daemon", "dist", "cli.js"),- join62("runtime", "lsp-daemon", "dist", "index.js"),- join62("runtime", "lsp-daemon", "dist", "index.d.ts"),- join62("runtime", "lsp-daemon", "dist", "daemon-client.js"),- join62("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),- join62("runtime", "lsp-daemon", "dist", "package.json"),- join62("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),- join62("scripts", "install.mjs"),+ join63("extensions", "omo.js"),+ join63("extensions", "omo-task.js"),+ join63("extensions", "omo-computer-use.js"),+ join63("extensions", "assets.generated.json"),+ join63("extensions", "omo-member.js"),+ join63("extensions", "memory-run-supervisor.mjs"),+ ...PERSONA_ASSET_FILES.map((filename) => join63("extensions", filename)),+ join63("skills", "ast-grep", "SKILL.md"),+ join63("skills", "browser", "SKILL.md"),+ join63("skills", "coding-agent-sessions", "SKILL.md"),+ join63("skills", "debugging", "SKILL.md"),+ join63("skills", "frontend", "SKILL.md"),+ join63("skills", "git-master", "SKILL.md"),+ join63("skills", "init-deep", "SKILL.md"),+ join63("skills", "lsp-setup", "SKILL.md"),+ join63("skills", "programming", "SKILL.md"),+ join63("skills", "refactor", "SKILL.md"),+ join63("skills", "remove-ai-slops", "SKILL.md"),+ join63("skills", "review-work", "SKILL.md"),+ join63("skills", "ultimate-browsing", "SKILL.md"),+ join63("skills", "ultrawork", "SKILL.md"),+ join63("skills", "ulw-execute", "SKILL.md"),+ join63("skills", "ulw-loop", "SKILL.md"),+ join63("skills", "ulw-plan", "SKILL.md"),+ join63("skills", "ulw-research", "SKILL.md"),+ join63("skills", "visual-qa", "SKILL.md"),+ join63("skills-conditional", "x-search", "SKILL.md"),+ join63("runtime", "agent-toolkit-sdk", "sdk.js"),+ join63("runtime", "ast-grep-mcp", "cli.js"),+ join63("runtime", "lsp-daemon", "dist", "cli.js"),+ join63("runtime", "lsp-daemon", "dist", "index.js"),+ join63("runtime", "lsp-daemon", "dist", "index.d.ts"),+ join63("runtime", "lsp-daemon", "dist", "daemon-client.js"),+ join63("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),+ join63("runtime", "lsp-daemon", "dist", "package.json"),+ join63("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),+ join63("scripts", "install.mjs"),"daemon-launch-spec.json"];async function ensurePluginArtifacts(context) {if (context.allowBuild) {- await context.runCommand("node", [join62(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "stage-x-search-skill.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(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}`);@@ -98270,14 +98478,14 @@ async function ensurePluginArtifacts(context) {}async function hasMissingPluginArtifact(pluginPath) {for (const artifact of REQUIRED_PLUGIN_ARTIFACTS) {- if (!await fileExists2(join62(pluginPath, artifact)))+ if (!await fileExists2(join63(pluginPath, artifact)))return true;}return false;}async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {- const runtimeEntry = join62(pluginPath, "runtime", "ast-grep-mcp", "cli.js");- const manifestPath = join62(dirname24(runtimeEntry), "manifest.json");+ const runtimeEntry = join63(pluginPath, "runtime", "ast-grep-mcp", "cli.js");+ const manifestPath = join63(dirname24(runtimeEntry), "manifest.json");let runtimeStat;try {runtimeStat = await stat6(runtimeEntry);@@ -98292,7 +98500,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}let manifest;try {- manifest = JSON.parse(await readFile27(manifestPath, "utf8"));+ manifest = JSON.parse(await readFile29(manifestPath, "utf8"));} catch (error) {throw astGrepIntegrityError(runtimeEntry, `manifest is unreadable or invalid JSON: ${messageOf(error)}`);}@@ -98301,7 +98509,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}let actualSha256;try {- actualSha256 = createHash6("sha256").update(await readFile27(runtimeEntry)).digest("hex");+ actualSha256 = createHash6("sha256").update(await readFile29(runtimeEntry)).digest("hex");} catch (error) {throw astGrepIntegrityError(runtimeEntry, `runtime hash could not be computed: ${messageOf(error)}`);}@@ -98352,7 +98560,7 @@ async function runSenpiInstaller(options = {}) {const backupPath = await writeSettingsAtomically(context.settingsPath, settings);const launcherPath = installLocalLauncher({pluginPath: context.pluginPath,- senpiCliPath: join63(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),+ senpiCliPath: join64(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),homeDir: context.homeDir});return {@@ -98372,13 +98580,13 @@ function resolveInstallContext(options) {const repoRoot = resolve20(options.repoRoot ?? (allowBuild ? findRepoRoot2(dirname25(fileURLToPath(import.meta.url))) : dirname25(resolve20(options.pluginPath))));const homeDir = options.homeDir ?? env.HOME ?? homedir11();const agentDir = resolve20(options.agentDir ?? resolveAgentHome({ env, homeDir }));- const pluginPath = resolve20(options.pluginPath ?? join63(repoRoot, "packages", "omo-senpi", "plugin"));+ const pluginPath = resolve20(options.pluginPath ?? join64(repoRoot, "packages", "omo-senpi", "plugin"));return {env,repoRoot,agentDir,homeDir,- settingsPath: join63(agentDir, "settings.json"),+ settingsPath: join64(agentDir, "settings.json"),pluginPath,platform: options.platform ?? process.platform,allowBuild,@@ -98395,7 +98603,7 @@ async function defaultRunCommand3(command, args, options) {function findRepoRoot2(importerDir) {let current = importerDir;for (let depth = 0;depth <= 7; depth += 1) {- if (fileExistsSync(join63(current, "packages", "omo-senpi", "plugin", "package.json")))+ if (fileExistsSync(join64(current, "packages", "omo-senpi", "plugin", "package.json")))return current;current = resolve20(current, "..");}@@ -98410,7 +98618,7 @@ async function runNativeDevInstaller(options) {}// packages/omo-opencode/src/cli/install-native/legacy-omo-bin.tsimport { lstatSync as lstatSync4, readFileSync as readFileSync15, realpathSync as realpathSync8, statSync as statSync4 } from "node:fs";-import { dirname as dirname26, isAbsolute as isAbsolute12, join as join64, posix as posix9, win32 as win325 } from "node:path";+import { dirname as dirname26, isAbsolute as isAbsolute12, join as join65, posix as posix9, win32 as win325 } from "node:path";var NATIVE_OMO_PACKAGE = "omo-ai";var LEGACY_OMO_BIN_PACKAGES = ["oh-my-openagent", "oh-my-opencode", "lazycodex"];var CODEX_LIGHT_WRAPPER_MARKER = "OMO_GENERATED_RUNTIME_WRAPPER";@@ -98475,7 +98683,7 @@ function classify(owner) {}function omoShimPathsIn(directory, isWindows) {const suffixes = isWindows ? WINDOWS_BIN_SUFFIXES : [""];- return suffixes.map((suffix) => join64(directory, `${OMO_BIN_NAME}${suffix}`)).filter(pathExists);+ return suffixes.map((suffix) => join65(directory, `${OMO_BIN_NAME}${suffix}`)).filter(pathExists);}function pathExists(path) {try {@@ -98510,7 +98718,7 @@ function shimEntryPaths(shim, shimDirectory) {const quoted = match[0];const relativeToShim = quoted.match(/^(?:%~?dp0%?|\$\{?basedir\}?)[\\/]?(.*)$/)?.[1];if (relativeToShim !== undefined)- paths.push(join64(shimDirectory, relativeToShim.replace(/\\/g, "/")));+ paths.push(join65(shimDirectory, relativeToShim.replace(/\\/g, "/")));else if (isAbsolute12(quoted))paths.push(quoted);}@@ -98531,7 +98739,7 @@ function bunxEntryPaths(binPath) {const end = contents.indexOf('"\x00');if (end <= 0)return [];- return [join64(dirname26(dirname26(binPath)), contents.slice(0, end).replace(/\\/g, "/"))];+ return [join65(dirname26(dirname26(binPath)), contents.slice(0, end).replace(/\\/g, "/"))];}function codexLightWrapperOwner(shim) {if (!shim.includes(CODEX_LIGHT_WRAPPER_MARKER))@@ -98545,7 +98753,7 @@ function isInsideNodeModules(path) {function ownerOfFile(file) {let directory = dirname26(file);for (let depth = 0;depth < OWNER_WALK_UP_LIMIT; depth += 1) {- const manifest = readWholeFile(join64(directory, "package.json"));+ const manifest = readWholeFile(join65(directory, "package.json"));if (manifest !== null) {const parsed = parseManifest(manifest);if (parsed !== null)@@ -98843,12 +99051,12 @@ init_provider_availability();// packages/omo-opencode/src/cli/config-manager/add-tui-plugin-to-tui-config.tsimport { existsSync as existsSync33, mkdirSync as mkdirSync13, readFileSync as readFileSync17 } from "node:fs";-import { join as join66 } from "node:path";+import { join as join67 } from "node:path";// packages/omo-opencode/src/cli/doctor/checks/tui-plugin-config.tsinit_shared();import { existsSync as existsSync32, readFileSync as readFileSync16 } from "node:fs";-import { join as join65 } from "node:path";+import { join as join66 } from "node:path";var TUI_SUBPATH = "tui";var TUI_EXPORT_SUBPATH = `./${TUI_SUBPATH}`;function tuiPluginSpecName(entry) {@@ -98868,7 +99076,7 @@ function fileEntryPackageJsonPath(entry) {let path = entry.slice("file:".length);if (path.startsWith("//"))path = path.slice(2);- return join65(path, "package.json");+ return join66(path, "package.json");}function packageJsonExportsTui(pkgJsonPath) {if (!existsSync32(pkgJsonPath))@@ -98907,7 +99115,7 @@ function packageExportsTuiForServerEntry(entry) {const packageName = packageNameFromServerEntry(entry);if (packageName === null)return null;- return packageJsonExportsTui(join65(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));+ return packageJsonExportsTui(join66(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));}function isOurFilePluginEntry(entry) {if (typeof entry !== "string" || !entry.startsWith("file:"))@@ -98994,7 +99202,7 @@ function detectServerPluginRegistration() {}}function detectTuiPluginRegistration() {- const tuiJsonPath = join65(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");+ const tuiJsonPath = join66(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");if (!existsSync32(tuiJsonPath)) {return {registered: false,@@ -99170,10 +99378,10 @@ function readConfig(path) {return null;}function readServerConfig(configDir) {- const jsoncPath = join66(configDir, "opencode.jsonc");+ const jsoncPath = join67(configDir, "opencode.jsonc");if (existsSync33(jsoncPath))return readConfig(jsoncPath);- const jsonPath = join66(configDir, "opencode.json");+ const jsonPath = join67(configDir, "opencode.json");if (existsSync33(jsonPath))return readConfig(jsonPath);return null;@@ -99230,7 +99438,7 @@ function ensureTuiPluginEntry(opts = {}) {if (!desiredEntry) {return { changed: false, reason: "no-server-entry" };}- const tuiJsonPath = join66(configDir, "tui.json");+ const tuiJsonPath = join67(configDir, "tui.json");const { config, malformed } = readTuiConfig(tuiJsonPath);if (malformed || pluginFieldInvalid(config)) {return { changed: false, reason: "malformed" };@@ -99251,10 +99459,10 @@ function ensureTuiPluginEntry(opts = {}) {init_shared();init_config_context();import { existsSync as existsSync34, readFileSync as readFileSync18 } from "node:fs";-import { join as join67 } from "node:path";+import { join as join68 } from "node:path";function readPluginEntries(configDir) {for (const name of ["opencode.jsonc", "opencode.json"]) {- const configPath = join67(configDir, name);+ const configPath = join68(configDir, name);if (!existsSync34(configPath))continue;try {@@ -99302,7 +99510,7 @@ function refreshOpenCodePluginSandboxes(options = {}) {// packages/omo-opencode/src/cli/install-ast-grep-sg.tsimport { homedir as homedir13 } from "node:os";-import { join as join68 } from "node:path";+import { join as join69 } from "node:path";// packages/shared-skills/index.mjsimport { existsSync as existsSync35 } from "node:fs";@@ -99324,9 +99532,9 @@ function describeResult2(result) {}async function installAstGrepForOpenCode(options = {}) {const platform = options.platform ?? process.platform;- const baseDir = join68(options.homeDir ?? homedir13(), ".omo");+ const baseDir = join69(options.homeDir ?? homedir13(), ".omo");const targetDir = astGrepRuntimeDir(baseDir, platform, options.arch ?? process.arch);- const skillDir = join68(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");+ const skillDir = join69(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");const installer = options.installer ?? runAstGrepSkillInstall;try {const result = await installer({ platform, skillDir, targetDir });@@ -103689,9 +103897,9 @@ function readCurrentTopLevelTask(planPath) {}// packages/boulder-state/src/storage/path.tsimport { existsSync as existsSync37 } from "node:fs";-import { isAbsolute as isAbsolute13, join as join69, relative as relative8, resolve as resolve21 } from "node:path";+import { isAbsolute as isAbsolute13, join as join70, relative as relative8, resolve as resolve21 } from "node:path";function getBoulderFilePath(directory) {- return join69(directory, BOULDER_DIR, BOULDER_FILE);+ return join70(directory, BOULDER_DIR, BOULDER_FILE);}function resolveTrackedPath(baseDirectory, trackedPath) {return isAbsolute13(trackedPath) ? resolve21(trackedPath) : resolve21(baseDirectory, trackedPath);@@ -103876,9 +104084,9 @@ init_state();var CONTINUATION_MARKER_DIR = ".omo/run-continuation";// packages/omo-opencode/src/features/run-continuation-state/storage.tsimport { existsSync as existsSync40, mkdirSync as mkdirSync14, readFileSync as readFileSync22, rmSync as rmSync6, writeFileSync as writeFileSync8 } from "node:fs";-import { join as join70 } from "node:path";+import { join as join71 } from "node:path";function getMarkerPath(directory, sessionID) {- return join70(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);+ return join71(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);}function readContinuationMarker(directory, sessionID) {const markerPath = getMarkerPath(directory, sessionID);@@ -103951,7 +104159,7 @@ async function isSessionInBoulderLineage(input) {init_shared();init_compaction_marker();import { readFileSync as readFileSync23, readdirSync as readdirSync10 } from "node:fs";-import { join as join71 } from "node:path";+import { join as join72 } from "node:path";var defaultSessionLastAgentDeps = {getMessageDir,isSqliteBackend,@@ -104011,7 +104219,7 @@ async function getLastAgentFromSession(sessionID, client, deps = {}) {try {const messages = readdirSync10(messageDir).filter((fileName) => fileName.endsWith(".json")).map((fileName) => {try {- const content = readFileSync23(join71(messageDir, fileName), "utf-8");+ const content = readFileSync23(join72(messageDir, fileName), "utf-8");const parsed = JSON.parse(content);return {fileName,@@ -104055,7 +104263,7 @@ init_agent_display_names();// packages/omo-opencode/src/hooks/ralph-loop/storage.tsinit_frontmatter2();import { existsSync as existsSync41, readFileSync as readFileSync24, writeFileSync as writeFileSync9, unlinkSync as unlinkSync6, mkdirSync as mkdirSync15 } from "node:fs";-import { dirname as dirname28, join as join72 } from "node:path";+import { dirname as dirname28, join as join73 } from "node:path";// packages/omo-opencode/src/hooks/ralph-loop/constants.tsvar DEFAULT_STATE_FILE = ".omo/ralph-loop.local.md";@@ -104064,7 +104272,7 @@ var DEFAULT_COMPLETION_PROMISE = "DONE";// packages/omo-opencode/src/hooks/ralph-loop/storage.tsfunction getStateFilePath(directory, customPath) {- return customPath ? join72(directory, customPath) : join72(directory, DEFAULT_STATE_FILE);+ return customPath ? join73(directory, customPath) : join73(directory, DEFAULT_STATE_FILE);}function readState(directory, customPath) {const filePath = getStateFilePath(directory, customPath);@@ -105171,7 +105379,7 @@ init_extract_semver();init_bun_which_shim();import { existsSync as existsSync49, accessSync as accessSync4, constants as constants12 } from "node:fs";import { homedir as homedir16 } from "node:os";-import { join as join79 } from "node:path";+import { join as join80 } from "node:path";// packages/omo-opencode/src/cli/doctor/framework/spawn-with-timeout.tsinit_spawn_with_windows_hide();@@ -105263,17 +105471,17 @@ function getDesktopAppPaths(platform) {case "darwin":return ["/Applications/OpenCode.app/Contents/MacOS/OpenCode",- join79(home, "Applications", "OpenCode.app", "Contents", "MacOS", "OpenCode")+ join80(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(join79(programFiles, "OpenCode", "OpenCode.exe"));+ paths.push(join80(programFiles, "OpenCode", "OpenCode.exe"));}if (localAppData) {- paths.push(join79(localAppData, "OpenCode", "OpenCode.exe"));+ paths.push(join80(localAppData, "OpenCode", "OpenCode.exe"));}return paths;}@@ -105281,8 +105489,8 @@ function getDesktopAppPaths(platform) {return ["/usr/bin/opencode","/usr/lib/opencode/opencode",- join79(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),- join79(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")+ join80(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),+ join80(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")];default:return [];@@ -105314,7 +105522,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 = join79(entry, command);+ const fullPath = join80(entry, command);if (checkExists(fullPath) && isExecutable2(fullPath)) {return { binary: command, path: fullPath };}@@ -105458,22 +105666,22 @@ init_package_json_locator();import { existsSync as existsSync51, readFileSync as readFileSync33, readdirSync as readdirSync12 } from "node:fs";import { createRequire as createRequire2 } from "node:module";import { homedir as homedir17 } from "node:os";-import { join as join80 } from "node:path";+import { join as join81 } from "node:path";import { fileURLToPath as fileURLToPath6 } from "node:url";init_shared();function getPlatformDefaultCacheDir(platform = process.platform) {if (platform === "darwin")- return join80(homedir17(), "Library", "Caches");+ return join81(homedir17(), "Library", "Caches");if (platform === "win32")- return process.env.LOCALAPPDATA ?? join80(homedir17(), "AppData", "Local");- return join80(homedir17(), ".cache");+ return process.env.LOCALAPPDATA ?? join81(homedir17(), "AppData", "Local");+ return join81(homedir17(), ".cache");}function resolveOpenCodeCacheDir() {const xdgCacheHome = process.env.XDG_CACHE_HOME;if (xdgCacheHome)- return join80(xdgCacheHome, "opencode");+ return join81(xdgCacheHome, "opencode");const fromShared = getOpenCodeCacheDir();- const platformDefault = join80(getPlatformDefaultCacheDir(), "opencode");+ const platformDefault = join81(getPlatformDefaultCacheDir(), "opencode");if (existsSync51(fromShared) || !existsSync51(platformDefault))return fromShared;return platformDefault;@@ -105505,11 +105713,11 @@ function normalizeVersion(value) {function createPackageCandidates(rootDir) {return ACCEPTED_PACKAGE_NAMES.map((packageName) => ({packageName,- installedPackagePath: join80(rootDir, "node_modules", packageName, "package.json")+ installedPackagePath: join81(rootDir, "node_modules", packageName, "package.json")}));}function createTaggedInstallCandidates(rootDir) {- const packagesDir = join80(rootDir, "packages");+ const packagesDir = join81(rootDir, "packages");if (!existsSync51(packagesDir))return [];const candidates = [];@@ -105517,14 +105725,14 @@ function createTaggedInstallCandidates(rootDir) {const packageName = ACCEPTED_PACKAGE_NAMES.find((name) => entryName.startsWith(`${name}@`));if (packageName === undefined)continue;- const installDir = join80(packagesDir, entryName);+ const installDir = join81(packagesDir, entryName);candidates.push({cacheDir: installDir,- cachePackagePath: join80(installDir, "package.json"),+ cachePackagePath: join81(installDir, "package.json"),packageCandidates: [{packageName,- installedPackagePath: join80(installDir, "node_modules", packageName, "package.json")+ installedPackagePath: join81(installDir, "node_modules", packageName, "package.json")}]});@@ -105569,13 +105777,13 @@ function getLoadedPluginVersion() {const candidates = [{cacheDir: configDir,- cachePackagePath: join80(configDir, "package.json"),+ cachePackagePath: join81(configDir, "package.json"),packageCandidates: createPackageCandidates(configDir)},...createTaggedInstallCandidates(configDir),{cacheDir,- cachePackagePath: join80(cacheDir, "package.json"),+ cachePackagePath: join81(cacheDir, "package.json"),packageCandidates: createPackageCandidates(cacheDir)},...createTaggedInstallCandidates(cacheDir)@@ -105768,18 +105976,18 @@ async function checkSystem(deps = defaultDeps5) {init_shared();import { existsSync as existsSync53, readFileSync as readFileSync35 } from "node:fs";import { homedir as homedir18 } from "node:os";-import { join as join81 } from "node:path";+import { join as join82 } from "node:path";function getUserConfigDir2() {const xdgConfig = process.env.XDG_CONFIG_HOME;if (xdgConfig)- return join81(xdgConfig, "opencode");- return join81(homedir18(), ".config", "opencode");+ return join82(xdgConfig, "opencode");+ return join82(homedir18(), ".config", "opencode");}function loadCustomProviderNames() {const configDir = getUserConfigDir2();const candidatePaths = [- join81(configDir, "opencode.json"),- join81(configDir, "opencode.jsonc")+ join82(configDir, "opencode.json"),+ join82(configDir, "opencode.jsonc")];for (const configPath of candidatePaths) {if (!existsSync53(configPath))@@ -105800,7 +106008,7 @@ function loadCustomProviderNames() {return [];}function loadAvailableModelsFromCache() {- const cacheFile = join81(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join82(getOpenCodeCacheDir(), "models.json");const customProviders = loadCustomProviderNames();if (!existsSync53(cacheFile)) {if (customProviders.length > 0) {@@ -105862,7 +106070,7 @@ function loadOmoConfig2() {// packages/omo-opencode/src/cli/doctor/checks/model-resolution-details.tsinit_shared();-import { join as join82 } from "node:path";+import { join as join83 } from "node:path";// packages/omo-opencode/src/cli/doctor/checks/model-resolution-variant.tsfunction formatModelWithVariant(model, variant) {@@ -105904,7 +106112,7 @@ function formatCapabilityResolutionLabel(mode) {}function buildModelResolutionDetails(options) {const details = [];- const cacheFile = join82(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join83(getOpenCodeCacheDir(), "models.json");details.push("═══ Available Models (from cache) ═══");details.push("");if (options.available.cacheExists) {@@ -106245,7 +106453,7 @@ init_src4();init_main();init_config_migration();import { existsSync as existsSync54, readFileSync as readFileSync36 } from "node:fs";-import { join as join83 } from "node:path";+import { join as join84 } from "node:path";var CANONICAL_REPLACEMENT = new Map([["variant", "reasoning"],["reasoningEffort", "reasoning"],@@ -106306,7 +106514,7 @@ function userConfigPaths() {const home = process.env.HOME ?? process.env.USERPROFILE;if (home === undefined || home.length === 0)return [];- return [join83(home, ".omo", "omo.jsonc"), join83(home, ".omo", "omo.json")];+ return [join84(home, ".omo", "omo.jsonc"), join84(home, ".omo", "omo.json")];}async function checkDeprecatedReasoningKeys() {const issues = [];@@ -106332,13 +106540,13 @@ init_src();import { existsSync as existsSync55 } from "node:fs";import { createRequire as createRequire3 } from "node:module";import { homedir as homedir20 } from "node:os";-import { dirname as dirname33, join as join87 } from "node:path";+import { dirname as dirname33, join as join88 } from "node:path";// packages/omo-opencode/src/hooks/comment-checker/downloader.ts-import { join as join86 } from "path";+import { join as join87 } from "path";import { homedir as homedir19, tmpdir as tmpdir4 } from "os";// packages/comment-checker-core/src/release.ts-import { join as join84 } from "node:path";+import { join as join85 } from "node:path";var COMMENT_CHECKER_RELEASE_VERSION = "0.8.0";function commentCheckerBinaryName(platform) {return platform === "win32" ? "comment-checker.exe" : "comment-checker";@@ -106346,19 +106554,19 @@ function commentCheckerBinaryName(platform) {function commentCheckerCacheDir(input) {if (input.platform === "win32") {const localAppData = input.env.LOCALAPPDATA || input.env.APPDATA;- const base = localAppData || join84(input.homedir, "AppData", "Local");- return join84(base, input.cacheDirName, "bin");+ const base = localAppData || join85(input.homedir, "AppData", "Local");+ return join85(base, input.cacheDirName, "bin");}- const base = input.env.XDG_CACHE_HOME || join84(input.homedir, ".cache");- return join84(base, input.cacheDirName, "bin");+ const base = input.env.XDG_CACHE_HOME || join85(input.homedir, ".cache");+ return join85(base, input.cacheDirName, "bin");}// packages/comment-checker-core/src/cached-release.tsimport { readFileSync as readFileSync37, writeFileSync as writeFileSync12 } from "node:fs";-import { join as join85 } from "node:path";+import { join as join86 } from "node:path";var COMMENT_CHECKER_VERSION_MARKER = "comment-checker.version";function isCachedCommentCheckerCurrent(cacheDir, readFile = (path) => readFileSync37(path, "utf-8")) {try {- return readFile(join85(cacheDir, COMMENT_CHECKER_VERSION_MARKER)).trim() === COMMENT_CHECKER_RELEASE_VERSION;+ return readFile(join86(cacheDir, COMMENT_CHECKER_VERSION_MARKER)).trim() === COMMENT_CHECKER_RELEASE_VERSION;} catch {return false;}@@ -106368,7 +106576,7 @@ init_binary_downloader();init_logger2();init_plugin_identity();var DEBUG = process.env.COMMENT_CHECKER_DEBUG === "1";-var DEBUG_FILE = join86(tmpdir4(), "comment-checker-debug.log");+var DEBUG_FILE = join87(tmpdir4(), "comment-checker-debug.log");function getCacheDir2() {return commentCheckerCacheDir({platform: process.platform,@@ -106427,7 +106635,7 @@ async function getBinaryVersion(binary) {}}async function checkAstGrepCli() {- const runtimeDir = astGrepRuntimeDir(join87(homedir20(), ".omo"));+ const runtimeDir = astGrepRuntimeDir(join88(homedir20(), ".omo"));const sgPath = findSgBinarySync({ runtimeDir });if (sgPath === null) {return {@@ -106457,10 +106665,10 @@ function findCommentCheckerPackageBinary(baseDirOverride, resolvePackageJsonPathconst platformKey = `${process.platform}-${process.arch === "x64" ? "x64" : process.arch}`;try {const packageDir = baseDirOverride ?? dirname33(resolvePackageJsonPath());- const vendorPath = join87(packageDir, "vendor", platformKey, binaryName);+ const vendorPath = join88(packageDir, "vendor", platformKey, binaryName);if (existsSync55(vendorPath))return vendorPath;- const binPath = join87(packageDir, "bin", binaryName);+ const binPath = join88(packageDir, "bin", binaryName);if (existsSync55(binPath))return binPath;} catch (error) {@@ -106836,13 +107044,13 @@ function getInstalledLspServers(options = {}) {init_shared();import { existsSync as existsSync57, readFileSync as readFileSync39 } from "node:fs";import { homedir as homedir21 } from "node:os";-import { join as join88 } from "node:path";+import { join as join89 } from "node:path";var BUILTIN_MCP_SERVERS = ["websearch", "context7", "grep_app", "lsp"];function getMcpConfigPaths() {return [- join88(homedir21(), ".claude", ".mcp.json"),- join88(process.cwd(), ".mcp.json"),- join88(process.cwd(), ".claude", ".mcp.json")+ join89(homedir21(), ".claude", ".mcp.json"),+ join89(process.cwd(), ".mcp.json"),+ join89(process.cwd(), ".claude", ".mcp.json")];}function loadUserMcpConfig() {@@ -107122,9 +107330,9 @@ async function pathExists2(dir) {// packages/omo-opencode/src/cli/doctor/checks/codex.tsinit_src();import { existsSync as existsSync59 } from "node:fs";-import { lstat as lstat16, readdir as readdir14, readFile as readFile28 } from "node:fs/promises";+import { lstat as lstat16, readdir as readdir14, readFile as readFile30 } from "node:fs/promises";import { homedir as homedir23 } from "node:os";-import { basename as basename12, join as join89, resolve as resolve24 } from "node:path";+import { basename as basename12, join as join90, resolve as resolve24 } from "node:path";// packages/omo-opencode/package.jsonvar package_default3 = {name: "@oh-my-opencode/omo-opencode",@@ -107194,13 +107402,13 @@ var CODEX_BIN_NAMES = ["omo-git-bash-hook"];async function gatherCodexSummary(deps = {}) {- const codexHome = resolve24(deps.codexHome ?? process.env.CODEX_HOME ?? join89(homedir23(), ".codex"));+ const codexHome = resolve24(deps.codexHome ?? process.env.CODEX_HOME ?? join90(homedir23(), ".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(join89(pluginRoot, ".codex-plugin", "plugin.json"));- const installSnapshot = pluginRoot === null ? null : await readJson(join89(pluginRoot, "lazycodex-install.json"));- const configPath = join89(codexHome, "config.toml");+ const manifest = pluginRoot === null ? null : await readJson(join90(pluginRoot, ".codex-plugin", "plugin.json"));+ const installSnapshot = pluginRoot === null ? null : await readJson(join90(pluginRoot, "lazycodex-install.json"));+ const configPath = join90(codexHome, "config.toml");const pluginVersion = stringField(manifest, "version");return {codexPath: detection.found && "path" in detection ? detection.path : null,@@ -107257,7 +107465,7 @@ function buildCodexIssues(summary) {if (summary.pluginRoot === null) {issues.push({title: "OMO Codex plugin is not installed",- description: `Expected cached plugin at ${join89("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,+ description: `Expected cached plugin at ${join90("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,fix: "Run: npx lazycodex-ai install",severity: "error",affects: ["plugin loading"]@@ -107322,12 +107530,12 @@ function buildCodexIssues(summary) {return issues;}async function resolveInstalledPluginRoot(codexHome) {- const pluginRoot = join89(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);+ const pluginRoot = join90(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);if (!existsSync59(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 : join89(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);+ return candidates.length === 0 ? null : join90(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);}async function readCodexConfigSummary(configPath) {if (!existsSync59(configPath)) {@@ -107341,7 +107549,7 @@ async function readCodexConfigSummary(configPath) {companionLifecycleHookStateEvents: []};}- const content = await readFile28(configPath, "utf8");+ const content = await readFile30(configPath, "utf8");return {exists: true,marketplaceConfigured: content.includes("[marketplaces.sisyphuslabs]"),@@ -107355,13 +107563,13 @@ async function readCodexConfigSummary(configPath) {async function readLinkedBins(binDir) {const linked = [];for (const name of CODEX_BIN_NAMES) {- if (await pathExists3(join89(binDir, process.platform === "win32" ? `${name}.cmd` : name)))+ if (await pathExists3(join90(binDir, process.platform === "win32" ? `${name}.cmd` : name)))linked.push(name);}return linked;}async function readLinkedAgents(codexHome) {- const agentsDir = join89(codexHome, "agents");+ const agentsDir = join90(codexHome, "agents");if (!existsSync59(agentsDir))return [];const entries = await readdir14(agentsDir, { withFileTypes: true });@@ -107369,7 +107577,7 @@ async function readLinkedAgents(codexHome) {}async function readJson(path) {try {- const parsed = JSON.parse(await readFile28(path, "utf8"));+ const parsed = JSON.parse(await readFile30(path, "utf8"));return isPlainRecord(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)@@ -107493,9 +107701,9 @@ function resolveLatestVersion(input) {// packages/omo-opencode/src/cli/doctor/checks/codex-components.tsinit_src();-import { readdir as readdir15, readFile as readFile29, stat as stat7 } from "node:fs/promises";+import { readdir as readdir15, readFile as readFile31, stat as stat7 } from "node:fs/promises";import { homedir as homedir24 } from "node:os";-import { dirname as dirname35, isAbsolute as isAbsolute14, join as join90, relative as relative9, resolve as resolve25, sep as sep9 } from "node:path";+import { dirname as dirname35, isAbsolute as isAbsolute14, join as join91, relative as relative9, resolve as resolve25, 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";@@ -107505,7 +107713,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 = resolve25(deps.codexHome ?? env["CODEX_HOME"] ?? join90(homedir24(), ".codex"));+ const codexHome = resolve25(deps.codexHome ?? env["CODEX_HOME"] ?? join91(homedir24(), ".codex"));const summary = await gatherCodexSummary({ ...deps, codexHome });if (summary.pluginRoot === null) {return {@@ -107530,7 +107738,7 @@ async function checkCodexComponents(deps = {}) {});}const runtimeSgDir = runtimeSgDirectory(codexHome, platform, arch);- const runtimeSgPath = join90(runtimeSgDir, sgBinaryName(platform));+ const runtimeSgPath = join91(runtimeSgDir, sgBinaryName(platform));const sg = findSgBinarySync({arch,env,@@ -107642,7 +107850,7 @@ async function findManifestPaths(root, manifestName) {for (const entry of entries) {if (entry.name === "node_modules" || entry.name === ".git")continue;- const entryPath = join90(root, entry.name);+ const entryPath = join91(root, entry.name);if (entry.isDirectory()) {paths.push(...await findManifestPaths(entryPath, manifestName));continue;@@ -107686,18 +107894,18 @@ function isPluginRuntimePathArg(arg) {return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute14(arg));}function runtimeSgDirectory(codexHome, platform, arch) {- return join90(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));+ return join91(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 === join90(runtimeSgDir, sgBinaryName(platform)))+ if (sgPath === join91(runtimeSgDir, sgBinaryName(platform)))return "runtime dir";return "PATH";}async function readBootstrapStateSummary(codexHome) {- const statePath = join90(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");+ const statePath = join91(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");const raw = await readJson2(statePath);if (raw === null)return null;@@ -107746,7 +107954,7 @@ function degradedDetailLines(entries) {}async function readJson2(path) {try {- const parsed = JSON.parse(await readFile29(path, "utf8"));+ const parsed = JSON.parse(await readFile31(path, "utf8"));return isRecord18(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)@@ -107774,18 +107982,18 @@ function isRecord18(value) {// packages/omo-opencode/src/cli/doctor/checks/codex-runtime-wrapper.tsimport { existsSync as existsSync60 } from "node:fs";-import { readFile as readFile30 } from "node:fs/promises";+import { readFile as readFile32 } from "node:fs/promises";import { homedir as homedir25 } from "node:os";-import { join as join91, resolve as resolve26 } from "node:path";+import { join as join92, resolve as resolve26 } 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 = resolve26(deps.codexHome ?? process.env.CODEX_HOME ?? join91(homedir25(), ".codex"));+ const codexHome = resolve26(deps.codexHome ?? process.env.CODEX_HOME ?? join92(homedir25(), ".codex"));const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });const platform = deps.platform ?? process.platform;- const wrapperPath = join91(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");- const legacyWrapperPath = join91(binDir, platform === "win32" ? "omo.cmd" : "omo");+ const wrapperPath = join92(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");+ const legacyWrapperPath = join92(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) {@@ -107819,7 +108027,7 @@ async function checkCodexRuntimeWrapper(deps = {}) {}async function readRuntimeWrapper(path) {try {- return await readFile30(path, "utf8");+ return await readFile32(path, "utf8");} catch (error) {if (error instanceof Error)return null;@@ -108321,12 +108529,12 @@ import {unlinkSync as unlinkSync9,writeFileSync as writeFileSync14} from "node:fs";-import { basename as basename13, dirname as dirname36, join as join94 } from "node:path";+import { basename as basename13, dirname as dirname36, join as join95 } from "node:path";// packages/mcp-client-core/src/config-dir.tsimport { existsSync as existsSync61, realpathSync as realpathSync10 } from "node:fs";import { homedir as homedir26 } from "node:os";-import { join as join92, resolve as resolve27 } from "node:path";+import { join as join93, resolve as resolve27 } from "node:path";function resolveConfigPath2(pathValue) {const resolvedPath = resolve27(pathValue);if (!existsSync61(resolvedPath))@@ -108344,13 +108552,13 @@ function getOpenCodeCliConfigDir(env = process.env) {if (customConfigDir) {return resolveConfigPath2(customConfigDir);}- const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join92(homedir26(), ".config");- return resolveConfigPath2(join92(xdgConfigDir, "opencode"));+ const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join93(homedir26(), ".config");+ return resolveConfigPath2(join93(xdgConfigDir, "opencode"));}// packages/mcp-client-core/src/mcp-oauth/storage-index.tsimport { chmodSync as chmodSync4, existsSync as existsSync62, readFileSync as readFileSync41, renameSync as renameSync7, writeFileSync as writeFileSync13 } from "node:fs";-import { join as join93 } from "node:path";+import { join as join94 } from "node:path";var INDEX_FILE_NAME = "index.json";function isTokenIndex(value) {if (typeof value !== "object" || value === null || Array.isArray(value))@@ -108358,7 +108566,7 @@ function isTokenIndex(value) {return Object.values(value).every((entry) => typeof entry === "string");}function getIndexPath(storageDir) {- return join93(storageDir, INDEX_FILE_NAME);+ return join94(storageDir, INDEX_FILE_NAME);}function readTokenIndex(storageDir) {const indexPath = getIndexPath(storageDir);@@ -108402,16 +108610,16 @@ function deleteTokenIndexEntry(storageDir, hash) {var STORAGE_DIR_NAME = "mcp-oauth";var LEGACY_STORAGE_FILE_NAME = "mcp-oauth.json";function getMcpOauthStorageDir() {- return join94(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);+ return join95(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 join94(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);+ return join95(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);}function getLegacyStoragePath() {- return join94(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);+ return join95(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);}function normalizeHost2(serverHost) {let host = serverHost.trim();@@ -108590,7 +108798,7 @@ function listTokensByHost(serverHost) {for (const [hash, indexedKey] of Object.entries(index)) {if (!indexedKey.startsWith(prefix))continue;- const indexedToken = readTokenFile(join94(getMcpOauthStorageDir(), `${hash}.json`));+ const indexedToken = readTokenFile(join95(getMcpOauthStorageDir(), `${hash}.json`));if (indexedToken)result[indexedKey] = indexedToken;}@@ -108605,7 +108813,7 @@ function listAllTokens() {for (const entry of readdirSync13(dir, { withFileTypes: true })) {if (!entry.isFile() || !entry.name.endsWith(".json") || entry.name === "index.json")continue;- const token = readTokenFile(join94(dir, entry.name));+ const token = readTokenFile(join95(dir, entry.name));const hash = basename13(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 580fe518..6b4df5c7 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.1.0",+ version: "5.1.1",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",@@ -253,7 +253,7 @@ var init_package = __esm(() => {zod: "^4.6.5"},devDependencies: {- "@code-yeongyu/senpi": "2026.9.28-7",+ "@code-yeongyu/senpi": "2026.9.29","@oh-my-opencode/agents-md-core": "workspace:*","@oh-my-opencode/ast-grep-mcp": "workspace:*","@oh-my-opencode/boulder-state": "workspace:*",@@ -299,18 +299,18 @@ var init_package = __esm(() => {typescript: "^7.0.2"},optionalDependencies: {- "oh-my-opencode-darwin-arm64": "5.1.0",- "oh-my-opencode-darwin-x64": "5.1.0",- "oh-my-opencode-darwin-x64-baseline": "5.1.0",- "oh-my-opencode-linux-arm64": "5.1.0",- "oh-my-opencode-linux-arm64-musl": "5.1.0",- "oh-my-opencode-linux-x64": "5.1.0",- "oh-my-opencode-linux-x64-baseline": "5.1.0",- "oh-my-opencode-linux-x64-musl": "5.1.0",- "oh-my-opencode-linux-x64-musl-baseline": "5.1.0",- "oh-my-opencode-windows-arm64": "5.1.0",- "oh-my-opencode-windows-x64": "5.1.0",- "oh-my-opencode-windows-x64-baseline": "5.1.0"+ "oh-my-opencode-darwin-arm64": "5.1.1",+ "oh-my-opencode-darwin-x64": "5.1.1",+ "oh-my-opencode-darwin-x64-baseline": "5.1.1",+ "oh-my-opencode-linux-arm64": "5.1.1",+ "oh-my-opencode-linux-arm64-musl": "5.1.1",+ "oh-my-opencode-linux-x64": "5.1.1",+ "oh-my-opencode-linux-x64-baseline": "5.1.1",+ "oh-my-opencode-linux-x64-musl": "5.1.1",+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.1",+ "oh-my-opencode-windows-arm64": "5.1.1",+ "oh-my-opencode-windows-x64": "5.1.1",+ "oh-my-opencode-windows-x64-baseline": "5.1.1"},overrides: {"@earendil-works/pi-agent-core": "0.84.2",@@ -7396,12 +7396,12 @@ var init_category_model_requirements = __esm(() => {},"deep-low": {fallbackChain: [- { providers: ["openai", "chatgpt-subscription"], model: "gpt-5.6-sol-fast", variant: "medium" },{providers: ["openai", "chatgpt-subscription", "github-copilot", "opencode"],model: "gpt-5.6-sol",variant: "medium"- }+ },+ { providers: ["openai", "chatgpt-subscription"], model: "gpt-5.6-sol-fast", variant: "medium" }]},"deep-high": {@@ -7453,6 +7453,11 @@ var init_category_model_requirements = __esm(() => {},"unspecified-low": {fallbackChain: [+ {+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],+ model: "claude-sonnet-5-5",+ variant: "medium"+ },{ providers: ["xiaomi", "opencode-go"], model: "mimo-v2.6-pro", variant: "max" },{ providers: ["xai", "github-copilot", "opencode-go"], model: "grok-4.7", variant: "xhigh" },{@@ -8389,6 +8394,36 @@ var init_supplemental_entries = __esm(() => {output: 32768}},+ "claude-sonnet-5-5": {+ id: "claude-sonnet-5-5",+ family: "claude-sonnet",+ reasoning: true,+ temperature: false,+ toolCall: true,+ modalities: {+ input: ["text", "image", "pdf"],+ output: ["text"]+ },+ limit: {+ context: 1e6,+ output: 128000+ }+ },+ "anthropic/claude-sonnet-5-5": {+ id: "anthropic/claude-sonnet-5-5",+ family: "claude-sonnet",+ reasoning: true,+ temperature: false,+ toolCall: true,+ modalities: {+ input: ["text", "image", "pdf"],+ output: ["text"]+ },+ limit: {+ context: 1e6,+ output: 128000+ }+ },"grok-4.7": {id: "grok-4.7",family: "grok",@@ -9434,7 +9469,7 @@ var init_openai_categories = __esm(() => {},{name: "deep-low",- config: { model: "openai/gpt-5.6-sol-fast", variant: "medium" },+ 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,@@ -9459,7 +9494,7 @@ var init_openai_categories = __esm(() => {},{name: "unspecified-low",- config: { model: "xiaomi/mimo-v2.6-pro", variant: "max" },+ config: { model: "anthropic/claude-sonnet-5-5", variant: "medium" },description: "Tasks that don't fit other categories, low effort required",callerGuidance: UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE,promptAppend: UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND@@ -74702,6 +74737,7 @@ var init_task = __esm(() => {process_runner: _enum(["host", "child-process"]).default("host"),host_engine_policy: _enum(["upgrade", "fallback"]).default("upgrade"),host_idle_exit_ms: number2().int().positive().optional(),+ host_shard_prewarm: _enum(["off", "first-turn", "session-start"]).default("first-turn"),default_concurrency: number2().int().nonnegative().default(5),global_concurrency: number2().int().nonnegative().default(8),provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),@@ -74751,6 +74787,7 @@ var init_task = __esm(() => {process_runner: _enum(["host", "child-process"]).optional(),host_engine_policy: _enum(["upgrade", "fallback"]).optional(),host_idle_exit_ms: number2().int().positive().optional(),+ host_shard_prewarm: _enum(["off", "first-turn", "session-start"]).optional(),default_concurrency: number2().int().nonnegative().optional(),global_concurrency: number2().int().nonnegative().optional(),provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),@@ -79111,9 +79148,9 @@ function extractChannel(version) {// packages/telemetry-core/src/day-claim.tsimport { closeSync as closeSync3, mkdirSync as mkdirSync9, openSync as openSync3, readdirSync as readdirSync8, rmSync as rmSync3 } from "fs";-import { join as join52 } from "path";+import { join as join53 } from "path";function getTelemetryDayClaimFilePath(stateDir, dayUTC) {- return join52(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);+ return join53(stateDir, `${CLAIM_PREFIX}${dayUTC}${CLAIM_SUFFIX}`);}function claimUtcDay(stateDir, dayUTC) {try {@@ -79139,7 +79176,7 @@ function pruneSupersededClaims(stateDir, dayUTC) {if (!entry.startsWith(CLAIM_PREFIX) || !entry.endsWith(CLAIM_SUFFIX))continue;try {- rmSync3(join52(stateDir, entry), { force: true });+ rmSync3(join53(stateDir, entry), { force: true });} catch {}}}@@ -79148,20 +79185,20 @@ var init_day_claim = () => {};// packages/telemetry-core/src/activity-state.tsimport { existsSync as existsSync25, mkdirSync as mkdirSync10, readFileSync as readFileSync12 } from "fs";-import { basename as basename9, join as join53 } from "path";+import { basename as basename9, join as join54 } 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 : join53(options.env.XDG_DATA_HOME, product.cacheDirName);+ const xdgStateDir = options.env?.XDG_DATA_HOME === undefined ? undefined : join54(options.env.XDG_DATA_HOME, product.cacheDirName);if (dataDir === xdgStateDir || xdgStateDir === undefined && basename9(dataDir) === product.cacheDirName) {return dataDir;}- return join53(dataDir, product.cacheDirName);+ return join54(dataDir, product.cacheDirName);}function getTelemetryActivityStateFilePath(stateDir) {- return join53(stateDir, POSTHOG_ACTIVITY_STATE_FILE);+ return join54(stateDir, POSTHOG_ACTIVITY_STATE_FILE);}function getDailyActiveCaptureState(input) {const dayUTC = getUtcDayString(input.now ?? new Date);@@ -79242,9 +79279,9 @@ var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY =// packages/telemetry-core/src/diagnostics.tsimport { appendFileSync as appendFileSync2, existsSync as existsSync26, mkdirSync as mkdirSync11, readFileSync as readFileSync13 } from "fs";-import { join as join54 } from "path";+import { join as join55 } from "path";function getTelemetryDiagnosticsFilePath(diagnosticsDir) {- return join54(diagnosticsDir, DIAGNOSTICS_FILE_NAME);+ return join55(diagnosticsDir, DIAGNOSTICS_FILE_NAME);}function writeTelemetryDiagnostic(input, options) {const now = options.now ?? new Date;@@ -88987,7 +89024,7 @@ var package_default2;var init_package2 = __esm(() => {package_default2 = {name: "@oh-my-opencode/omo-codex",- version: "5.1.0",+ version: "5.1.1",type: "module",private: true,description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",@@ -89959,7 +89996,7 @@ var init_update_toasts = __esm(() => {// packages/omo-opencode/src/hooks/auto-update-checker/hook/background-update-check.tsimport { existsSync as existsSync48 } from "fs";-import { dirname as dirname32, join as join78 } from "path";+import { dirname as dirname32, join as join79 } from "path";import { fileURLToPath as fileURLToPath5 } from "url";function defaultGetModuleHostingWorkspace() {try {@@ -90119,7 +90156,7 @@ var init_background_update_check = __esm(() => {init_update_toasts();defaultDeps4 = {existsSync: existsSync48,- join: join78,+ join: join79,runBunInstallWithDetails,log: log2,getOpenCodeCacheDir,@@ -92575,19 +92612,7 @@ function getUnsupportedOpenCodeVersionMessage(openCodeVersion) {}// packages/omo-codex/src/install/install-codex.ts-import { join as join55, resolve as resolve13 } from "path";--// packages/omo-codex/src/install/codex-default-role-config.ts-init_src4();-function readDefaultRoleConfig(options = {}) {- const result = loadOmoConfig({ ...options, harness: "codex" });- return {- enabled: result.config.agents?.default?.disable !== true,- warnings: result.diagnostics.map((diagnostic) => diagnostic.message)- };-}--// packages/omo-codex/src/install/install-codex.ts+import { join as join56, resolve as resolve13 } from "path";import { existsSync as existsSync27 } from "fs";import { homedir as homedir6 } from "os";@@ -95488,13 +95513,126 @@ function toCodexResolution(resolution) {};}+// packages/omo-codex/src/install/codex-agent-config.ts+init_src4();+init_reasoning_vocabulary();+function readCodexAgentConfig(options = {}) {+ const result = loadOmoConfig({ ...options, harness: "codex" });+ const overrides = readAgentOverrides(result);+ return {+ defaultRoleEnabled: result.config.agents?.default?.disable !== true,+ agentOverrides: overrides.agentOverrides,+ warnings: [...result.diagnostics.map((diagnostic) => diagnostic.message), ...overrides.warnings]+ };+}+function unmanagedAgentOverrideWarnings(agentOverrides, managedAgentNames) {+ return [...agentOverrides.keys()].filter((name) => !managedAgentNames.has(name)).map((name) => `[codex].agents.${name} does not name a LazyCodex-managed agent role; its model override was not applied`);+}+function readAgentOverrides(result) {+ let merged = {};+ for (const layer of result.layers)+ merged = mergeOmoConfigRecords(merged, layer.config);+ const profile = result.profile === undefined ? undefined : recordAt2(recordAt2(merged, "profiles"), result.profile);+ let agents = {};+ for (const scope of [merged, profile]) {+ agents = mergeOmoConfigRecords(agents, recordAt2(recordAt2(scope, "[codex]"), "agents") ?? {});+ }+ const agentOverrides = new Map;+ const warnings = [];+ for (const [name, value] of Object.entries(agents)) {+ if (name === "default")+ continue;+ const parsed = OmoAgentDefSchema.safeParse(value);+ if (!parsed.success) {+ warnings.push(`[codex].agents.${name} is invalid and was ignored: ${parsed.error.issues[0]?.message ?? "unknown error"}`);+ continue;+ }+ const override = toCodexAgentOverride(parsed.data.model, parsed.data.reasoning);+ if (override.model !== undefined || override.reasoningEffort !== undefined)+ agentOverrides.set(name, override);+ }+ return { agentOverrides, warnings };+}+function toCodexAgentOverride(model, reasoning) {+ const split = model === undefined ? undefined : splitReasoningSuffix2(model);+ const effort = codexReasoningEffort(reasoning ?? split?.level);+ return {+ ...split === undefined || split.base === "" ? {} : { model: split.base },+ ...effort === undefined ? {} : { reasoningEffort: effort }+ };+}+function codexReasoningEffort(reasoning) {+ if (reasoning === undefined || reasoning === "auto")+ return;+ return reasoning === "off" ? "none" : reasoning;+}+function recordAt2(value, key) {+ if (!isPlainRecord4(value))+ return;+ const child = value[key];+ return isPlainRecord4(child) ? child : undefined;+}++// packages/omo-codex/src/install/codex-marketplace-snapshot.ts+import { cp as cp3, mkdir as mkdir6, rename as rename4, rm as rm7, writeFile as writeFile6 } from "fs/promises";+import { join as join39, sep as sep6 } from "path";+var INSTALLED_MARKETPLACES_DIR = ".tmp/marketplaces";+async function writeInstalledMarketplaceSnapshot(input) {+ const marketplaceRoot = installedMarketplaceRoot(input.codexHome, input.marketplace.name);+ await mkdir6(marketplaceRoot, { recursive: true });+ await writeMarketplaceManifest(marketplaceRoot, input.marketplace);+ const snapshotPlugins = [];+ for (const plugin of input.plugins) {+ snapshotPlugins.push(await writeSnapshotPlugin(marketplaceRoot, plugin));+ }+ return snapshotPlugins;+}+function installedMarketplaceRoot(codexHome, marketplaceName) {+ return join39(codexHome, INSTALLED_MARKETPLACES_DIR, marketplaceName);+}+async function writeMarketplaceManifest(marketplaceRoot, marketplace) {+ const manifestDir = join39(marketplaceRoot, ".agents", "plugins");+ await mkdir6(manifestDir, { recursive: true });+ const tempPath = join39(manifestDir, `.marketplace-${process.pid}-${Date.now()}.json.tmp`);+ await writeFile6(tempPath, `${JSON.stringify(marketplace, null, "\t")}+`);+ await rename4(tempPath, join39(manifestDir, "marketplace.json"));+}+async function writeSnapshotPlugin(marketplaceRoot, plugin) {+ const pluginsDir = join39(marketplaceRoot, "plugins");+ await mkdir6(pluginsDir, { recursive: true });+ const targetPath = join39(pluginsDir, plugin.name);+ const tempPath = join39(pluginsDir, `.tmp-${plugin.name}-${process.pid}-${Date.now()}`);+ await rm7(tempPath, { recursive: true, force: true });+ await cp3(plugin.sourcePath, tempPath, {+ recursive: true,+ filter: (source) => shouldCopyMarketplaceSourcePath(source, plugin.sourcePath)+ });+ await copyBundledMcpRuntimeDists({ pluginRoot: tempPath, sourceRoot: plugin.sourcePath });+ await rm7(targetPath, { recursive: true, force: true });+ await rename4(tempPath, targetPath);+ await rewriteCachedMcpManifest(targetPath, plugin.sourcePath);+ return { name: plugin.name, path: targetPath };+}+function shouldCopyMarketplaceSourcePath(path, root) {+ const relative = path === root ? "" : path.slice(root.length + sep6.length);+ if (relative === "")+ return true;+ const parts = relative.split(sep6);+ return !parts.some((part) => part === ".git" || part === "node_modules");+}+// packages/omo-codex/src/install/link-cached-plugin-agents.ts-import { copyFile, lstat as lstat10, mkdir as mkdir6, readdir as readdir7, rm as rm9, writeFile as writeFile7 } from "fs/promises";-import { basename as basename7, join as join42 } from "path";+import { copyFile, lstat as lstat10, mkdir as mkdir7, readdir as readdir7, readFile as readFile17, rm as rm11, writeFile as writeFile9 } from "fs/promises";+import { basename as basename7, join as join44 } from "path";++// packages/omo-codex/src/install/agent-model-overrides.ts+import { readFile as readFile14, rm as rm8, writeFile as writeFile8 } from "fs/promises";+import { join as join41 } from "path";// packages/omo-codex/src/install/preserved-agent-settings.ts-import { lstat as lstat7, readFile as readFile13, readdir as readdir6, writeFile as writeFile6 } from "fs/promises";-import { join as join39 } from "path";+import { lstat as lstat7, readFile as readFile13, readdir as readdir6, writeFile as writeFile7 } from "fs/promises";+import { join as join40 } from "path";// packages/omo-codex/src/install/managed-agent-reasoning-defaults.tsvar MANAGED_REASONING_DEFAULT_UPGRADES = new Map([@@ -95687,7 +95825,7 @@ function resolveManagedAgentReasoning(input) {// packages/omo-codex/src/install/preserved-agent-settings.tsasync function capturePreservedAgentReasoning(input) {- const agentsDir = join39(input.codexHome, "agents");+ const agentsDir = join40(input.codexHome, "agents");if (!await exists2(agentsDir))return new Map;const preserved = new Map;@@ -95695,7 +95833,7 @@ async function capturePreservedAgentReasoning(input) {for (const entry of agentEntries) {if (!entry.name.endsWith(".toml"))continue;- const content = await readTextIfExists(join39(agentsDir, entry.name));+ const content = await readTextIfExists(join40(agentsDir, entry.name));if (content === null)continue;const effort = extractReasoningEffort(content);@@ -95709,7 +95847,7 @@ async function capturePreservedAgentReasoning(input) {return preserved;}async function capturePreservedAgentServiceTier(input) {- const agentsDir = join39(input.codexHome, "agents");+ const agentsDir = join40(input.codexHome, "agents");if (!await exists2(agentsDir))return new Map;const preserved = new Map;@@ -95717,7 +95855,7 @@ async function capturePreservedAgentServiceTier(input) {for (const entry of agentEntries) {if (!entry.name.endsWith(".toml"))continue;- const content = await readTextIfExists(join39(agentsDir, entry.name));+ const content = await readTextIfExists(join40(agentsDir, entry.name));if (content === null)continue;preserved.set(agentNameFromToml(entry.name), extractServiceTier(content));@@ -95740,7 +95878,7 @@ async function restorePreservedReasoning(input) {const replacement = replaceTopLevelStringSetting(content, "model_reasoning_effort", effort, { insertIfMissing: false });if (!replacement.replaced)return;- await writeFile6(input.linkPath, replacement.content);+ await writeFile7(input.linkPath, replacement.content);}async function restorePreservedServiceTier(input) {if (!input.preserved)@@ -95751,7 +95889,18 @@ async function restorePreservedServiceTier(input) {const replacement = replaceTopLevelStringSetting(content, "service_tier", input.value, { insertIfMissing: true });if (!replacement.replaced)return;- await writeFile6(input.linkPath, replacement.content);+ await writeFile7(input.linkPath, replacement.content);+}+async function restorePreservedModel(input) {+ if (input.value === null)+ return;+ const content = await readFile13(input.linkPath, "utf8");+ if (extractModel(content) === input.value)+ return;+ const replacement = replaceTopLevelStringSetting(content, "model", input.value, { insertIfMissing: true });+ if (!replacement.replaced)+ return;+ await writeFile7(input.linkPath, replacement.content);}async function readTextIfExists(path) {try {@@ -95849,9 +95998,86 @@ function nodeErrorCode(error) {return typeof error.code === "string" ? error.code : null;}+// packages/omo-codex/src/install/agent-model-overrides.ts+var RECEIPT_FILE = ".lazycodex-agent-models.json";+async function readAgentModelReceipts(codexHome) {+ const content = await readTextIfExists(receiptPath(codexHome));+ if (content === null)+ return new Map;+ const parsed = parseJson(content);+ if (!isPlainRecord4(parsed))+ return new Map;+ const receipts = new Map;+ for (const [name, value] of Object.entries(parsed)) {+ if (!isPlainRecord4(value))+ continue;+ const model = value["model"];+ const reasoningEffort = value["reasoningEffort"];+ receipts.set(name, {+ ...typeof model === "string" ? { model } : {},+ ...typeof reasoningEffort === "string" ? { reasoningEffort } : {}+ });+ }+ return receipts;+}+async function writeAgentModelReceipts(codexHome, receipts) {+ const path = receiptPath(codexHome);+ if (receipts.size === 0) {+ await rm8(path, { force: true });+ return;+ }+ await writeFile8(path, `${JSON.stringify(Object.fromEntries(receipts), null, "\t")}+`);+}+async function applyAgentOverride(input) {+ if (input.override === undefined)+ return;+ let content = await readFile14(input.linkPath, "utf8");+ if (input.override.model !== undefined) {+ content = replaceTopLevelStringSetting(content, "model", input.override.model, { insertIfMissing: true }).content;+ }+ if (input.override.reasoningEffort !== undefined) {+ content = replaceTopLevelStringSetting(content, "model_reasoning_effort", input.override.reasoningEffort, {+ insertIfMissing: true+ }).content;+ }+ await writeFile8(input.linkPath, content);+}+function receiptPath(codexHome) {+ return join41(codexHome, "agents", RECEIPT_FILE);+}+function parseJson(content) {+ try {+ return JSON.parse(content);+ } catch (error) {+ if (error instanceof SyntaxError)+ return null;+ throw error;+ }+}++// packages/omo-codex/src/install/managed-agent-model-defaults.ts+var PREVIOUSLY_BUNDLED_AGENT_MODELS = new Set([+ "gpt-5.2",+ "gpt-5.4-mini",+ "gpt-5.5",+ "gpt-5.6-luna",+ "gpt-5.6-luna-fast",+ "gpt-5.6-sol",+ "gpt-5.6-terra",+ "gpt-6-astra"+]);+function handEditedAgentModel(installedModel, receipt) {+ if (installedModel === null)+ return null;+ if (receipt?.model !== undefined)+ return installedModel === receipt.model ? null : installedModel;+ return PREVIOUSLY_BUNDLED_AGENT_MODELS.has(installedModel) ? null : installedModel;+}+// packages/omo-codex/src/install/retired-managed-agent-purge.ts-import { lstat as lstat8, readFile as readFile14, rm as rm7 } from "fs/promises";-import { join as join40 } from "path";+import { lstat as lstat8, readFile as readFile15, rm as rm9 } from "fs/promises";+import { join as join42 } from "path";var RETIRED_MANAGED_AGENT_FILES = [{fileName: "codex-ultrawork-reviewer.toml",@@ -95863,11 +96089,11 @@ var RETIRED_MANAGED_AGENT_FILES = [}];async function purgeRetiredManagedAgentFiles(input) {- const agentsDir = join40(input.codexHome, "agents");+ const agentsDir = join42(input.codexHome, "agents");if (!await exists3(agentsDir))return;for (const retiredAgent of RETIRED_MANAGED_AGENT_FILES) {- const agentPath = join40(agentsDir, retiredAgent.fileName);+ const agentPath = join42(agentsDir, retiredAgent.fileName);if (!await exists3(agentPath))continue;const agentStat = await lstat8(agentPath);@@ -95876,7 +96102,7 @@ async function purgeRetiredManagedAgentFiles(input) {const content = await readTextIfExists2(agentPath);if (content === null || !hasRequiredMarkers(content, retiredAgent.requiredMarkers))continue;- await rm7(agentPath, { force: true });+ await rm9(agentPath, { force: true });}}function hasRequiredMarkers(content, markers) {@@ -95884,7 +96110,7 @@ function hasRequiredMarkers(content, markers) {}async function readTextIfExists2(path) {try {- return await readFile14(path, "utf8");+ return await readFile15(path, "utf8");} catch (error) {if (nodeErrorCode2(error) === "ENOENT")return null;@@ -95909,13 +96135,13 @@ function nodeErrorCode2(error) {// packages/omo-codex/src/install/default-agent-role.tsimport { createHash as createHash3 } from "crypto";-import { lstat as lstat9, readFile as readFile15, rm as rm8 } from "fs/promises";-import { join as join41 } from "path";+import { lstat as lstat9, readFile as readFile16, rm as rm10 } from "fs/promises";+import { join as join43 } from "path";var REGISTRATION = { name: "default", configFile: "./agents/default.toml" };async function installDefaultAgentRole(input) {- const target = join41(input.codexHome, "agents", "default.toml");- const receipt = join41(input.codexHome, "agents", ".lazycodex-default.sha256");- const configPath = join41(input.codexHome, "config.toml");+ const target = join43(input.codexHome, "agents", "default.toml");+ const receipt = join43(input.codexHome, "agents", ".lazycodex-default.sha256");+ const configPath = join43(input.codexHome, "config.toml");const config = await readIfPresent(configPath);const entry = await lstat9(target).catch((error) => {if (error instanceof Error && "code" in error && error.code === "ENOENT")@@ -95938,15 +96164,15 @@ async function installDefaultAgentRole(input) {if (next !== config)await writeFileAtomic(configPath, next);}- await rm8(target);- await rm8(receipt);+ await rm10(target);+ await rm10(receipt);}return null;}if (foreign || existing !== null && !owned) {throw new Error("Preserved user-owned agents.default / agents/default.toml. Move it aside to install the LazyCodex fallback, or set [codex].agents.default.disable = true in omo.jsonc. Explicit LazyCodex roles remain required.");}- const worker = await readFile15(input.worker.path, "utf8");+ const worker = await readFile16(input.worker.path, "utf8");const content = worker.replace(/^name\s*=\s*["']lazycodex-worker-medium["']\s*$/m, 'name = "default"');if (content === worker)throw new Error("Cannot derive default: medium worker has no matching internal name");@@ -95956,7 +96182,7 @@ async function installDefaultAgentRole(input) {}async function readIfPresent(path) {try {- return await readFile15(path, "utf8");+ return await readFile16(path, "utf8");} catch (error) {if (error instanceof Error && "code" in error && error.code === "ENOENT")return null;@@ -95976,27 +96202,19 @@ async function linkCachedPluginAgents(input) {await writeManifest(input.pluginRoot, []);return [];}- const agentsDir = join42(input.codexHome, "agents");- await mkdir6(agentsDir, { recursive: true });+ const agentsDir = join44(input.codexHome, "agents");+ await mkdir7(agentsDir, { recursive: true });+ const previousReceipts = await readAgentModelReceipts(input.codexHome);+ const receipts = new Map;const linked = [];for (const agentPath of bundledAgents) {const agentFileName = basename7(agentPath);const agentName = agentNameFromToml2(agentFileName);- const linkPath = join42(agentsDir, agentFileName);- await replaceWithCopy(linkPath, agentPath);- await restorePreservedReasoning({- agentName,- linkPath,- target: agentPath,- value: input.preservedReasoning?.get(agentName)- });- await restorePreservedServiceTier({- linkPath,- preserved: input.preservedServiceTier?.has(agentName) ?? false,- value: input.preservedServiceTier?.get(agentName) ?? null- });+ const linkPath = join44(agentsDir, agentFileName);+ receipts.set(agentName, await syncAgentFile({ ...input, agentName, agentPath, linkPath, previousReceipt: previousReceipts.get(agentName) }));linked.push({ name: agentFileName, path: linkPath, target: agentPath });}+ await writeAgentModelReceipts(input.codexHome, receipts);const worker = linked.find((entry) => entry.name === "lazycodex-worker-medium.toml");if (worker !== undefined) {const fallback = await installDefaultAgentRole({ codexHome: input.codexHome, worker, enabled: input.defaultRoleEnabled !== false });@@ -96006,8 +96224,33 @@ async function linkCachedPluginAgents(input) {await writeManifest(input.pluginRoot, linked.map((entry) => entry.path));return linked;}+async function syncAgentFile(input) {+ const installed = await readTextIfExists(input.linkPath);+ const installedModel = installed === null ? null : extractModel(installed);+ const preservedReasoning = input.preservedReasoning?.get(input.agentName);+ const override = input.agentOverrides?.get(input.agentName);+ await replaceWithCopy(input.linkPath, input.agentPath);+ await restorePreservedModel({ linkPath: input.linkPath, value: handEditedAgentModel(installedModel, input.previousReceipt) });+ await restorePreservedReasoning({+ agentName: input.agentName,+ linkPath: input.linkPath,+ target: input.agentPath,+ value: preservedReasoning?.effort === input.previousReceipt?.reasoningEffort ? undefined : preservedReasoning+ });+ await restorePreservedServiceTier({+ linkPath: input.linkPath,+ preserved: input.preservedServiceTier?.has(input.agentName) ?? false,+ value: input.preservedServiceTier?.get(input.agentName) ?? null+ });+ await applyAgentOverride({ linkPath: input.linkPath, override });+ const model = override?.model ?? extractModel(await readFile17(input.agentPath, "utf8"));+ return {+ ...model === null ? {} : { model },+ ...override?.reasoningEffort === undefined ? {} : { reasoningEffort: override.reasoningEffort }+ };+}async function discoverBundledAgents(pluginRoot) {- const componentsRoot = join42(pluginRoot, "components");+ const componentsRoot = join44(pluginRoot, "components");if (!await exists4(componentsRoot))return [];const componentEntries = await readdir7(componentsRoot, { withFileTypes: true });@@ -96015,14 +96258,14 @@ async function discoverBundledAgents(pluginRoot) {for (const entry of componentEntries) {if (!entry.isDirectory())continue;- const agentsRoot = join42(componentsRoot, entry.name, "agents");+ const agentsRoot = join44(componentsRoot, entry.name, "agents");if (!await exists4(agentsRoot))continue;const agentEntries = await readdir7(agentsRoot, { withFileTypes: true });for (const file of agentEntries) {if (!file.isFile() || !file.name.endsWith(".toml"))continue;- agents.push(join42(agentsRoot, file.name));+ agents.push(join44(agentsRoot, file.name));}}agents.sort();@@ -96039,12 +96282,12 @@ async function prepareReplacement(linkPath) {if (entryStat.isDirectory() && !entryStat.isSymbolicLink()) {throw new Error(`${linkPath} already exists and is a directory; refusing to replace`);}- await rm9(linkPath, { force: true });+ await rm11(linkPath, { force: true });}async function writeManifest(pluginRoot, agentPaths) {- const manifestPath = join42(pluginRoot, MANIFEST_FILE);+ const manifestPath = join44(pluginRoot, MANIFEST_FILE);const payload = { agents: [...agentPaths].sort() };- await writeFile7(manifestPath, `${JSON.stringify(payload, null, "\t")}+ await writeFile9(manifestPath, `${JSON.stringify(payload, null, "\t")}`);}function agentNameFromToml2(fileName) {@@ -96066,13 +96309,59 @@ function nodeErrorCode3(error) {return typeof error.code === "string" ? error.code : null;}+// packages/omo-codex/src/install/install-codex-agents.ts+async function linkInstalledPluginAgents(input) {+ const { codexHome, log } = input;+ const preservedReasoning = await capturePreservedAgentReasoning({ codexHome });+ const preservedServiceTier = await capturePreservedAgentServiceTier({ codexHome });+ const agentSourceRoots = await agentSourceRootsForInstall(input);+ const omoConfig = readCodexAgentConfig({ cwd: input.projectDirectory, env: input.env });+ for (const warning of omoConfig.warnings)+ log(`Warning: ${warning}`);+ const agentConfigs = new Map;+ for (const plugin of input.installed) {+ const agentLinks = await linkCachedPluginAgents({+ codexHome,+ pluginRoot: agentSourceRoots.get(plugin.name) ?? plugin.path,+ platform: input.platform,+ preservedReasoning,+ preservedServiceTier,+ defaultRoleEnabled: omoConfig.defaultRoleEnabled,+ agentOverrides: omoConfig.agentOverrides+ });+ for (const link of agentLinks) {+ log(`Linked agent ${link.name} -> ${link.target}`);+ const agentName = agentNameFromToml3(link.name);+ agentConfigs.set(agentName, { name: agentName, configFile: `./agents/${link.name}` });+ }+ }+ for (const warning of unmanagedAgentOverrideWarnings(omoConfig.agentOverrides, new Set(agentConfigs.keys()))) {+ log(`Warning: ${warning}`);+ }+ return [...agentConfigs.values()].sort((left, right) => left.name.localeCompare(right.name));+}+async function agentSourceRootsForInstall(input) {+ if (input.marketplace.name !== "sisyphuslabs") {+ return new Map(input.installed.map((plugin) => [plugin.name, plugin.path]));+ }+ const snapshotPlugins = await writeInstalledMarketplaceSnapshot({+ codexHome: input.codexHome,+ marketplace: input.marketplace,+ plugins: input.pluginSources+ });+ return new Map(snapshotPlugins.map((plugin) => [plugin.name, plugin.path]));+}+function agentNameFromToml3(fileName) {+ return fileName.endsWith(".toml") ? fileName.slice(0, -".toml".length) : fileName;+}+// packages/omo-codex/src/install/codex-marketplace.ts-import { readFile as readFile16 } from "fs/promises";-import { join as join43 } from "path";+import { readFile as readFile18 } from "fs/promises";+import { join as join45 } from "path";var DEFAULT_MARKETPLACE_PATH = "packages/omo-codex/marketplace.json";async function readMarketplace(repoRoot, options) {- const marketplacePath = options?.marketplacePath ?? join43(repoRoot, DEFAULT_MARKETPLACE_PATH);- const raw = await readFile16(marketplacePath, "utf8");+ const marketplacePath = options?.marketplacePath ?? join45(repoRoot, DEFAULT_MARKETPLACE_PATH);+ const raw = await readFile18(marketplacePath, "utf8");const parsed = JSON.parse(raw);if (!isPlainRecord4(parsed))throw new Error("marketplace.json must be an object");@@ -96090,10 +96379,10 @@ async function readMarketplace(repoRoot, options) {function resolvePluginSource(repoRoot, plugin, options) {const sourcePath = localSourcePath(options?.pathOverride ?? plugin.source);const relativePath = sourcePath.slice(2);- return join43(repoRoot, ...relativePath.split(/[\\/]/));+ return join45(repoRoot, ...relativePath.split(/[\\/]/));}async function readPluginManifest(pluginRoot) {- const raw = await readFile16(join43(pluginRoot, ".codex-plugin", "plugin.json"), "utf8");+ const raw = await readFile18(join45(pluginRoot, ".codex-plugin", "plugin.json"), "utf8");const parsed = JSON.parse(raw);if (!isPlainRecord4(parsed))throw new Error(`${pluginRoot} plugin.json must be an object`);@@ -96173,61 +96462,12 @@ function validateLocalSourcePath(path) {return path;}-// packages/omo-codex/src/install/codex-marketplace-snapshot.ts-import { cp as cp3, mkdir as mkdir7, rename as rename4, rm as rm10, writeFile as writeFile8 } from "fs/promises";-import { join as join44, sep as sep6 } from "path";-var INSTALLED_MARKETPLACES_DIR = ".tmp/marketplaces";-async function writeInstalledMarketplaceSnapshot(input) {- const marketplaceRoot = installedMarketplaceRoot(input.codexHome, input.marketplace.name);- await mkdir7(marketplaceRoot, { recursive: true });- await writeMarketplaceManifest(marketplaceRoot, input.marketplace);- const snapshotPlugins = [];- for (const plugin of input.plugins) {- snapshotPlugins.push(await writeSnapshotPlugin(marketplaceRoot, plugin));- }- return snapshotPlugins;-}-function installedMarketplaceRoot(codexHome, marketplaceName) {- return join44(codexHome, INSTALLED_MARKETPLACES_DIR, marketplaceName);-}-async function writeMarketplaceManifest(marketplaceRoot, marketplace) {- const manifestDir = join44(marketplaceRoot, ".agents", "plugins");- await mkdir7(manifestDir, { recursive: true });- const tempPath = join44(manifestDir, `.marketplace-${process.pid}-${Date.now()}.json.tmp`);- await writeFile8(tempPath, `${JSON.stringify(marketplace, null, "\t")}-`);- await rename4(tempPath, join44(manifestDir, "marketplace.json"));-}-async function writeSnapshotPlugin(marketplaceRoot, plugin) {- const pluginsDir = join44(marketplaceRoot, "plugins");- await mkdir7(pluginsDir, { recursive: true });- const targetPath = join44(pluginsDir, plugin.name);- const tempPath = join44(pluginsDir, `.tmp-${plugin.name}-${process.pid}-${Date.now()}`);- await rm10(tempPath, { recursive: true, force: true });- await cp3(plugin.sourcePath, tempPath, {- recursive: true,- filter: (source) => shouldCopyMarketplaceSourcePath(source, plugin.sourcePath)- });- await copyBundledMcpRuntimeDists({ pluginRoot: tempPath, sourceRoot: plugin.sourcePath });- await rm10(targetPath, { recursive: true, force: true });- await rename4(tempPath, targetPath);- await rewriteCachedMcpManifest(targetPath, plugin.sourcePath);- return { name: plugin.name, path: targetPath };-}-function shouldCopyMarketplaceSourcePath(path, root) {- const relative = path === root ? "" : path.slice(root.length + sep6.length);- if (relative === "")- return true;- const parts = relative.split(sep6);- return !parts.some((part) => part === ".git" || part === "node_modules");-}-// packages/omo-codex/src/install/lazycodex-version-stamp.ts-import { readdir as readdir8, readFile as readFile17, writeFile as writeFile9 } from "fs/promises";-import { join as join45 } from "path";+import { readdir as readdir8, readFile as readFile19, writeFile as writeFile10 } from "fs/promises";+import { join as join46 } from "path";async function readDistributionManifest(repoRoot) {try {- const parsed = JSON.parse(await readFile17(join45(repoRoot, "package.json"), "utf8"));+ const parsed = JSON.parse(await readFile19(join46(repoRoot, "package.json"), "utf8"));if (!isPlainRecord4(parsed) || typeof parsed.version !== "string" || parsed.version.trim().length === 0)return;return {@@ -96251,19 +96491,19 @@ function resolveLazyCodexPluginVersion(input) {return input.manifestVersion ?? "local";}async function stampLazyCodexPluginVersion(input) {- const manifestPath = join45(input.pluginRoot, ".codex-plugin", "plugin.json");+ const manifestPath = join46(input.pluginRoot, ".codex-plugin", "plugin.json");const hookPaths = await readPluginHookPaths(manifestPath);await stampJsonVersion(manifestPath, input.version);- await stampJsonVersion(join45(input.pluginRoot, "package.json"), input.version);+ await stampJsonVersion(join46(input.pluginRoot, "package.json"), input.version);for (const hookPath of hookPaths) {- await stampHookStatusMessages(join45(input.pluginRoot, hookPath), input.version);+ await stampHookStatusMessages(join46(input.pluginRoot, hookPath), input.version);}await stampComponentVersions(input);}async function writeLazyCodexInstallSnapshot(input) {if (input.distributionManifest === undefined)return;- await writeFile9(join45(input.pluginRoot, "lazycodex-install.json"), `${JSON.stringify({+ await writeFile10(join46(input.pluginRoot, "lazycodex-install.json"), `${JSON.stringify({packageName: input.distributionManifest.name,version: input.distributionManifest.version}, null, "\t")}@@ -96271,11 +96511,11 @@ async function writeLazyCodexInstallSnapshot(input) {}async function stampJsonVersion(path, version) {try {- const parsed = JSON.parse(await readFile17(path, "utf8"));+ const parsed = JSON.parse(await readFile19(path, "utf8"));if (!isPlainRecord4(parsed))return;parsed.version = version;- await writeFile9(path, `${JSON.stringify(parsed, null, "\t")}+ await writeFile10(path, `${JSON.stringify(parsed, null, "\t")}`);} catch (error) {if (error instanceof Error)@@ -96285,7 +96525,7 @@ async function stampJsonVersion(path, version) {}async function readPluginHookPaths(manifestPath) {try {- const parsed = JSON.parse(await readFile17(manifestPath, "utf8"));+ const parsed = JSON.parse(await readFile19(manifestPath, "utf8"));if (!isPlainRecord4(parsed))return [];if (typeof parsed.hooks === "string" && parsed.hooks.trim().length > 0)@@ -96305,11 +96545,11 @@ function stripDotSlash3(path) {}async function stampHookStatusMessages(path, version) {try {- const parsed = JSON.parse(await readFile17(path, "utf8"));+ const parsed = JSON.parse(await readFile19(path, "utf8"));if (!isPlainRecord4(parsed))return;stampHookGroups(parsed.hooks, version);- await writeFile9(path, `${JSON.stringify(parsed, null, "\t")}+ await writeFile10(path, `${JSON.stringify(parsed, null, "\t")}`);} catch (error) {if (error instanceof Error)@@ -96320,16 +96560,16 @@ async function stampHookStatusMessages(path, version) {async function stampComponentVersions(input) {let entries;try {- entries = await readdir8(join45(input.pluginRoot, "components"));+ entries = await readdir8(join46(input.pluginRoot, "components"));} catch (error) {if (error instanceof Error)return;throw error;}for (const entry of entries) {- const componentRoot = join45(input.pluginRoot, "components", entry);- await stampJsonVersion(join45(componentRoot, "package.json"), input.version);- await stampHookStatusMessages(join45(componentRoot, "hooks", "hooks.json"), input.version);+ const componentRoot = join46(input.pluginRoot, "components", entry);+ await stampJsonVersion(join46(componentRoot, "package.json"), input.version);+ await stampHookStatusMessages(join46(componentRoot, "hooks", "hooks.json"), input.version);}}function stampHookGroups(hooks, version) {@@ -96386,8 +96626,8 @@ var defaultRunCommand = async (command, args, options) => {};// packages/omo-codex/src/install/codex-project-local-cleanup.ts-import { copyFile as copyFile2, lstat as lstat11, readFile as readFile18, writeFile as writeFile10 } from "fs/promises";-import { dirname as dirname17, join as join46, resolve as resolve11 } from "path";+import { copyFile as copyFile2, lstat as lstat11, readFile as readFile20, writeFile as writeFile11 } from "fs/promises";+import { dirname as dirname17, join as join47, resolve as resolve11 } from "path";var LEGACY_AGENT_CONFLICT_KEYS = ["max_threads"];var PROJECT_LOCAL_ARTIFACT_PATHS = [".codex/hooks.json",@@ -96406,7 +96646,7 @@ async function repairNearestProjectLocalCodexArtifacts(input) {const artifacts = await collectProjectLocalArtifacts(project.artifactRoots);const configs = [];for (const configPath of project.configPaths) {- const original = await readFile18(configPath, "utf8");+ const original = await readFile20(configPath, "utf8");const repair = repairProjectLocalCodexConfigText(original);if (!repair.changed) {configs.push({@@ -96419,7 +96659,7 @@ async function repairNearestProjectLocalCodexArtifacts(input) {}const backupPath = `${configPath}.backup-${formatBackupTimestamp(input.now?.() ?? new Date)}`;await copyFile2(configPath, backupPath);- await writeFile10(configPath, `${repair.config.trimEnd()}+ await writeFile11(configPath, `${repair.config.trimEnd()}`);configs.push({projectRoot: project.projectRoot,@@ -96490,17 +96730,17 @@ async function findProjectLocalCodexConfigs(startDirectory, codexHome) {if (startDirectoryStat !== null && !startDirectoryStat.isDirectory()) {throw new ProjectLocalCleanupStartDirectoryError(startDirectory);}- const codexHomeConfigPath = codexHome === undefined ? null : join46(resolve11(codexHome), "config.toml");+ const codexHomeConfigPath = codexHome === undefined ? null : join47(resolve11(codexHome), "config.toml");let current = resolve11(startDirectory);const configPathsFromCwd = [];while (true) {- const configPath = join46(current, ".codex", "config.toml");+ const configPath = join47(current, ".codex", "config.toml");if (await isRegularProjectLocalConfig(current, configPath)) {if (codexHomeConfigPath === null || resolve11(configPath) !== codexHomeConfigPath) {configPathsFromCwd.push(configPath);}}- if (await exists5(join46(current, ".git"))) {+ if (await exists5(join47(current, ".git"))) {return configPathsFromCwd.length === 0 ? null : {projectRoot: current,configPaths: [...configPathsFromCwd].reverse(),@@ -96520,7 +96760,7 @@ async function findProjectLocalCodexConfigs(startDirectory, codexHome) {}}async function isRegularProjectLocalConfig(directory, configPath) {- const codexDirStat = await maybeLstat(join46(directory, ".codex"));+ const codexDirStat = await maybeLstat(join47(directory, ".codex"));if (codexDirStat === null || !codexDirStat.isDirectory() || codexDirStat.isSymbolicLink())return false;const configStat = await maybeLstat(configPath);@@ -96540,7 +96780,7 @@ async function collectProjectLocalArtifacts(projectRoots) {const seenPaths = new Set;for (const projectRoot of projectRoots) {for (const relativePath of PROJECT_LOCAL_ARTIFACT_PATHS) {- const artifactPath = join46(projectRoot, relativePath);+ const artifactPath = join47(projectRoot, relativePath);if (seenPaths.has(artifactPath))continue;const entryStat = await maybeLstat(artifactPath);@@ -96616,13 +96856,13 @@ function formatUnknownError(error) {// packages/omo-codex/src/install/lsp-daemon-reaper.tsimport { createHash as createHash4 } from "crypto";-import { lstat as lstat12, readFile as readFile20, readdir as readdir10, rm as rm11 } from "fs/promises";+import { lstat as lstat12, readFile as readFile22, readdir as readdir10, rm as rm12 } from "fs/promises";import { tmpdir as tmpdir3 } from "os";-import { join as join47, posix as posix6 } from "path";+import { join as join48, posix as posix6 } from "path";// packages/omo-codex/src/install/lsp-daemon-reaper-attestation.tsimport { execFile } from "child_process";-import { readFile as readFile19, readdir as readdir9, readlink as readlink5 } from "fs/promises";+import { readFile as readFile21, readdir as readdir9, readlink as readlink5 } from "fs/promises";import { connect } from "net";import { basename as basename8 } from "path";var PROBE_TIMEOUT_MS = 500;@@ -96664,7 +96904,7 @@ async function attestLegacyDaemonOwnership(input, deps = {}) {return false;}async function attestLinuxOwnership(input, deps) {- const readFileImpl = deps.readFile ?? readFile19;+ const readFileImpl = deps.readFile ?? readFile21;const readDirImpl = deps.readDir ?? readdir9;const readLinkImpl = deps.readLink ?? readlink5;const procNetUnix = await readText(readFileImpl, "/proc/net/unix");@@ -96791,7 +97031,7 @@ async function readBinary(readFileImpl, path) {var LEGACY_EXIT_WAIT_TIMEOUT_MS = 5000;var LEGACY_VERSION_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$/;async function reapLspDaemons(codexHome, deps = {}) {- const daemonRoot = join47(codexHome, "codex-lsp", "daemon");+ const daemonRoot = join48(codexHome, "codex-lsp", "daemon");const platform = deps.platform ?? process.platform;const tmpDir = deps.tmpDir ?? tmpdir3();const probe = deps.probeLegacyJsonRpc ?? probeLegacyJsonRpcEndpoint;@@ -96801,7 +97041,7 @@ async function reapLspDaemons(codexHome, deps = {}) {const entries = await readdir10(daemonRoot, { withFileTypes: true }).catch(() => []);const results = [];for (const entry of [...entries].sort((left, right) => left.name.localeCompare(right.name))) {- const versionPath = join47(daemonRoot, entry.name);+ const versionPath = join48(daemonRoot, entry.name);const parsedVersion = parseVersionEntry(entry.name);if (parsedVersion === null || !entry.isDirectory()) {await removeVersionDir(versionPath);@@ -96849,7 +97089,7 @@ function parseVersionEntry(entryName) {return LEGACY_VERSION_PATTERN.test(version) ? version : null;}async function readLegacyMetadata(input) {- const pidText = await readRegularTrimmedFile(join47(input.versionPath, "daemon.pid"));+ const pidText = await readRegularTrimmedFile(join48(input.versionPath, "daemon.pid"));if (pidText === "non_regular")return { kind: "remove", reason: "removed non-regular legacy daemon metadata" };if (pidText === null)@@ -96857,7 +97097,7 @@ async function readLegacyMetadata(input) {const pid = Number.parseInt(pidText, 10);if (!Number.isInteger(pid) || pid <= 0)return { kind: "remove", reason: "removed malformed legacy daemon metadata" };- const endpointText = await readRegularTrimmedFile(join47(input.versionPath, "daemon.endpoint"));+ const endpointText = await readRegularTrimmedFile(join48(input.versionPath, "daemon.endpoint"));if (endpointText === "non_regular")return { kind: "remove", reason: "removed non-regular legacy daemon metadata" };if (endpointText === null)@@ -96889,14 +97129,14 @@ async function readRegularTrimmedFile(path) {return null;if (!stats.isFile())return "non_regular";- const content = (await readFile20(path, "utf8")).trim();+ const content = (await readFile22(path, "utf8")).trim();return content.length > 0 ? content : null;}function shortDigest(value) {return createHash4("sha256").update(value).digest("hex").slice(0, 16);}async function removeVersionDir(path) {- await rm11(path, { recursive: true, force: true });+ await rm12(path, { recursive: true, force: true });}function removed(version, reason) {return { version, status: "removed", reason };@@ -96936,7 +97176,7 @@ function processIsRunning(pid) {// packages/omo-codex/src/install/codex-installer-bin-dir.tsimport { homedir as homedir5 } from "os";-import { join as join48, resolve as resolve12 } from "path";+import { join as join49, resolve as resolve12 } from "path";function resolveCodexInstallerBinDir(input) {const explicitBinDir = input.binDir ?? input.env?.CODEX_LOCAL_BIN_DIR;if (explicitBinDir !== undefined && explicitBinDir.trim().length > 0)@@ -96945,16 +97185,16 @@ function resolveCodexInstallerBinDir(input) {const defaultCodexHome = resolve12(homeDir, ".codex");const resolvedCodexHome = resolve12(input.codexHome);if (resolvedCodexHome !== defaultCodexHome)- return join48(resolvedCodexHome, "bin");+ return join49(resolvedCodexHome, "bin");return resolve12(homeDir, ".local", "bin");}// packages/omo-codex/src/install/codex-installed-bin-dir.ts-import { readFile as readFile21, readdir as readdir11, writeFile as writeFile11 } from "fs/promises";-import { join as join49 } from "path";+import { readFile as readFile23, readdir as readdir11, writeFile as writeFile12 } from "fs/promises";+import { join as join50 } from "path";var INSTALLED_BIN_DIR_MANIFEST = ".installed-bin-dir.json";async function writeInstalledCodexBinDir(input) {- await writeFile11(join49(input.pluginRoot, INSTALLED_BIN_DIR_MANIFEST), `${JSON.stringify({ binDir: input.binDir }, null, 2)}+ await writeFile12(join50(input.pluginRoot, INSTALLED_BIN_DIR_MANIFEST), `${JSON.stringify({ binDir: input.binDir }, null, 2)}`);}async function readInstalledCodexBinDir(codexHome) {@@ -96967,20 +97207,20 @@ async function readInstalledCodexBinDir(codexHome) {}async function installedBinDirManifestPaths(codexHome) {const paths = [- join49(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_BIN_DIR_MANIFEST)+ join50(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_BIN_DIR_MANIFEST)];- const versionRoot = join49(codexHome, "plugins", "cache", "sisyphuslabs", "omo");+ const versionRoot = join50(codexHome, "plugins", "cache", "sisyphuslabs", "omo");const entries = await readdir11(versionRoot, { withFileTypes: true }).catch(() => null);if (entries !== null) {for (const entry of entries) {if (entry.isDirectory())- paths.push(join49(versionRoot, entry.name, INSTALLED_BIN_DIR_MANIFEST));+ paths.push(join50(versionRoot, entry.name, INSTALLED_BIN_DIR_MANIFEST));}}return paths;}async function readBinDirFromManifest(manifestPath) {- const raw = await readFile21(manifestPath, "utf8").catch(() => null);+ const raw = await readFile23(manifestPath, "utf8").catch(() => null);if (raw === null)return null;let parsed;@@ -96998,8 +97238,8 @@ async function readBinDirFromManifest(manifestPath) {}// packages/omo-codex/src/install/codex-git-bash-hooks.ts-import { readFile as readFile22, writeFile as writeFile12 } from "fs/promises";-import { join as join50 } from "path";+import { readFile as readFile24, writeFile as writeFile13 } from "fs/promises";+import { join as join51 } from "path";var WINDOWS_ONLY_GIT_BASH_HOOKS = new Set(["./hooks/pre-tool-use-recommending-git-bash-mcp.json","./hooks/post-compact-resetting-git-bash-mcp-reminder.json"@@ -97007,20 +97247,20 @@ var WINDOWS_ONLY_GIT_BASH_HOOKS = new Set([async function removeGitBashHooksOffWindows(input) {if (input.platform === "win32")return;- const manifestPath = join50(input.pluginRoot, ".codex-plugin", "plugin.json");- const parsed = JSON.parse(await readFile22(manifestPath, "utf8"));+ const manifestPath = join51(input.pluginRoot, ".codex-plugin", "plugin.json");+ const parsed = JSON.parse(await readFile24(manifestPath, "utf8"));if (!isPlainRecord4(parsed) || !Array.isArray(parsed.hooks))return;const hooks = parsed.hooks.filter((hook) => typeof hook !== "string" || !WINDOWS_ONLY_GIT_BASH_HOOKS.has(hook));if (hooks.length === parsed.hooks.length)return;- await writeFile12(manifestPath, `${JSON.stringify({ ...parsed, hooks }, null, "\t")}+ await writeFile13(manifestPath, `${JSON.stringify({ ...parsed, hooks }, null, "\t")}`);}// packages/omo-codex/src/install/install-ast-grep-sg.tsinit_src();-import { join as join51 } from "path";+import { join as join52 } from "path";function describeResult(result) {if (result.kind === "succeeded")return null;@@ -97034,7 +97274,7 @@ async function installAstGrepForCodex(options) {return;const platform = options.platform ?? process.platform;const targetDir = astGrepRuntimeDir(options.codexHome, platform, options.arch ?? process.arch);- const skillDir = join51(plugin.path, "skills", "ast-grep");+ const skillDir = join52(plugin.path, "skills", "ast-grep");const installer = options.installer ?? runAstGrepSkillInstall;try {const result = await installer({ platform, skillDir, targetDir });@@ -97067,7 +97307,7 @@ async function runCodexInstaller(options = {}) {const env = options.env ?? process.env;const platform = options.platform ?? process.platform;const repoRoot = resolve13(options.repoRoot ?? findRepoRoot({ importerDir: import.meta.dir, env }));- const codexHome = resolve13(options.codexHome ?? env.CODEX_HOME ?? join55(homedir6(), ".codex"));+ const codexHome = resolve13(options.codexHome ?? env.CODEX_HOME ?? join56(homedir6(), ".codex"));const projectDirectory = resolve13(options.projectDirectory ?? env.OMO_CODEX_PROJECT ?? process.cwd());const binDir = resolveCodexInstallerBinDir({ binDir: options.binDir, codexHome, env });const runCommand = options.runCommand ?? defaultRunCommand;@@ -97084,14 +97324,13 @@ async function runCodexInstaller(options = {}) {if (!gitBashResolution.found) {throw new Error(gitBashResolution.installHint);}- const codexPackageRoot = join55(repoRoot, "packages", "omo-codex");+ const codexPackageRoot = join56(repoRoot, "packages", "omo-codex");const marketplace = await readMarketplace(repoRoot, {- marketplacePath: join55(codexPackageRoot, "marketplace.json")+ marketplacePath: join56(codexPackageRoot, "marketplace.json")});const distributionManifest = await readDistributionManifest(repoRoot);const installed = [];const pluginSources = [];- const agentConfigs = new Map;for (const entry of marketplace.plugins) {const sourcePath = resolvePluginSource(codexPackageRoot, entry, { pathOverride: "./plugin" });const manifest = await readPluginManifest(sourcePath);@@ -97132,7 +97371,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 ${join55(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 ${join56(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);@@ -97144,33 +97383,16 @@ async function runCodexInstaller(options = {}) {log,platform});- const preservedReasoning = await capturePreservedAgentReasoning({ codexHome });- const preservedServiceTier = await capturePreservedAgentServiceTier({ codexHome });- const agentSourceRoots = await agentSourceRootsForInstall({+ const agentConfigs = await linkInstalledPluginAgents({codexHome,+ projectDirectory,+ env,+ platform,+ log,marketplace,installed,pluginSources});- const omoConfig = readDefaultRoleConfig({ cwd: projectDirectory, env });- for (const warning of omoConfig.warnings)- log(`Warning: ${warning}`);- for (const plugin of installed) {- const pluginRoot = agentSourceRoots.get(plugin.name) ?? plugin.path;- const agentLinks = await linkCachedPluginAgents({- codexHome,- pluginRoot,- platform,- preservedReasoning,- preservedServiceTier,- defaultRoleEnabled: omoConfig.enabled- });- for (const link of agentLinks) {- log(`Linked agent ${link.name} -> ${link.target}`);- const agentName = agentNameFromToml3(link.name);- agentConfigs.set(agentName, { name: agentName, configFile: `./agents/${link.name}` });- }- }const trustedHookStates = (await Promise.all(installed.map((plugin) => trustedHookStatesForPlugin({marketplaceName: marketplace.name,platform,@@ -97199,13 +97421,13 @@ async function runCodexInstaller(options = {}) {continue;log(`Warning: deferred legacy Codex LSP daemon cleanup for v${cleanup.version}: ${cleanup.reason}`);}- const marketplaceRoot = join55(codexHome, "plugins", "cache", marketplace.name);+ const marketplaceRoot = join56(codexHome, "plugins", "cache", marketplace.name);await writeCachedMarketplaceManifest({marketplaceName: marketplace.name,marketplaceRoot,plugins: installed});- const configPath = join55(codexHome, "config.toml");+ const configPath = join56(codexHome, "config.toml");await updateCodexConfig({configPath,repoRoot: codexPackageRoot,@@ -97215,7 +97437,7 @@ async function runCodexInstaller(options = {}) {platform,gitBashEnabled: platform === "win32" && gitBashResolution.found,trustedHookStates,- agentConfigs: [...agentConfigs.values()].sort((left, right) => left.name.localeCompare(right.name)),+ agentConfigs,autonomousPermissions: options.autonomousPermissions !== false,...options.reasoning === undefined ? {} : { reasoning: options.reasoning }});@@ -97242,20 +97464,6 @@ async function runCodexInstaller(options = {}) {projectCleanup};}-function agentNameFromToml3(fileName) {- return fileName.endsWith(".toml") ? fileName.slice(0, -".toml".length) : fileName;-}-async function agentSourceRootsForInstall(input) {- if (input.marketplace.name !== "sisyphuslabs") {- return new Map(input.installed.map((plugin) => [plugin.name, plugin.path]));- }- const snapshotPlugins = await writeInstalledMarketplaceSnapshot({- codexHome: input.codexHome,- marketplace: input.marketplace,- plugins: input.pluginSources- });- return new Map(snapshotPlugins.map((plugin) => [plugin.name, plugin.path]));-}function legacyCacheMarketplaces(marketplaceName) {return marketplaceName === "sisyphuslabs" ? SISYPHUS_LEGACY_CACHE_MARKETPLACES : [];}@@ -97264,7 +97472,7 @@ function findRepoRootFromImporter(importerDir) {for (let depth = 0;depth <= 7; depth += 1) {if (isRepoRootWithCodexPlugin(current))return current;- for (const wrapperPackageRoot of [join55(current, "node_modules", "oh-my-openagent"), join55(current, "oh-my-openagent")]) {+ for (const wrapperPackageRoot of [join56(current, "node_modules", "oh-my-openagent"), join56(current, "oh-my-openagent")]) {if (isRepoRootWithCodexPlugin(wrapperPackageRoot))return wrapperPackageRoot;}@@ -97282,7 +97490,7 @@ function findRepoRoot(input) {return findRepoRootFromImporter(input.importerDir);}function isRepoRootWithCodexPlugin(repoRoot) {- return existsSync27(join55(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));+ return existsSync27(join56(repoRoot, "packages", "omo-codex", "plugin", ".codex-plugin", "plugin.json"));}function codexMarketplaceSource(marketplaceRoot) {return { sourceType: "local", source: marketplaceRoot };@@ -97417,13 +97625,13 @@ function defaultRunCommand2(command, args) {});}// packages/omo-codex/src/install/codex-cleanup.ts-import { lstat as lstat15, readFile as readFile25, readdir as readdir13, rm as rm13, rmdir } from "fs/promises";+import { lstat as lstat15, readFile as readFile27, readdir as readdir13, rm as rm14, rmdir } from "fs/promises";import { homedir as homedir8 } from "os";-import { isAbsolute as isAbsolute11, join as join58, relative as relative6, resolve as resolve16 } from "path";+import { isAbsolute as isAbsolute11, join as join59, relative as relative6, resolve as resolve16 } from "path";// packages/omo-codex/src/install/codex-cleanup-bins.ts-import { lstat as lstat13, readFile as readFile23, readdir as readdir12, readlink as readlink6, rm as rm12 } from "fs/promises";-import { dirname as dirname19, isAbsolute as isAbsolute9, join as join56, resolve as resolve14 } from "path";+import { lstat as lstat13, readFile as readFile25, readdir as readdir12, readlink as readlink6, rm as rm13 } from "fs/promises";+import { dirname as dirname19, isAbsolute as isAbsolute9, join as join57, resolve as resolve14 } from "path";var ROOT_RUNTIME_BIN_NAME = "omo";var MANAGED_CODEX_BIN_NAMES = new Set([ROOT_RUNTIME_BIN_NAME,@@ -97453,9 +97661,9 @@ async function removeManagedCodexBins(binDir, platform) {const binName = managedBinNameForEntry2(entry.name, platform);if (binName === null || !MANAGED_CODEX_BIN_NAMES.has(binName))continue;- const linkPath = join56(binDir, entry.name);+ const linkPath = join57(binDir, entry.name);if (await isManagedCodexBin(linkPath, platform, binName)) {- await rm12(linkPath, { force: true });+ await rm13(linkPath, { force: true });removed.push(linkPath);}}@@ -97484,12 +97692,12 @@ async function isManagedCodexBin(linkPath, platform, binName) {}if (!entryStat.isFile())return false;- const content = await readFile23(linkPath, "utf8");+ const content = await readFile25(linkPath, "utf8");return content.includes(RUNTIME_WRAPPER_MARKER) || content.includes(COMMAND_SHIM_MARKER);}// packages/omo-codex/src/install/codex-cleanup-config.ts-import { lstat as lstat14, mkdir as mkdir8, readFile as readFile24, writeFile as writeFile13 } from "fs/promises";+import { lstat as lstat14, mkdir as mkdir8, readFile as readFile26, writeFile as writeFile14 } from "fs/promises";import { dirname as dirname20 } from "path";var MANAGED_MARKETPLACES = ["sisyphuslabs", "lazycodex", "code-yeongyu-codex-plugins"];var LEGACY_MANAGED_CODEX_AGENT_NAMES_TO_PURGE2 = ["codex-ultrawork-reviewer"];@@ -97522,14 +97730,14 @@ function cleanupCodexLightConfigText(config) {async function cleanupCodexConfig(configPath, now) {if (!await configExists(configPath))return { changed: false };- const original = await readFile24(configPath, "utf8");+ const original = await readFile26(configPath, "utf8");const next = cleanupCodexLightConfigText(original);if (next === original)return { changed: false };const backupPath = `${configPath}.backup-${formatBackupTimestamp2(now?.() ?? new Date)}`;await mkdir8(dirname20(configPath), { recursive: true });- await writeFile13(backupPath, original);- await writeFile13(configPath, `${next.trimEnd()}+ await writeFile14(backupPath, original);+ await writeFile14(configPath, `${next.trimEnd()}`);return { changed: true, backupPath };}@@ -97606,7 +97814,7 @@ function nodeErrorCode5(error) {}// packages/omo-codex/src/install/codex-cleanup-safety.ts-import { dirname as dirname21, isAbsolute as isAbsolute10, join as join57, relative as relative5, resolve as resolve15 } from "path";+import { dirname as dirname21, isAbsolute as isAbsolute10, join as join58, relative as relative5, resolve as resolve15 } from "path";function codexHomeResolvesToFilesystemRoot(codexHome) {const resolved = resolve15(codexHome);return dirname21(resolved) === resolved;@@ -97623,11 +97831,11 @@ function validateManagedCleanupTarget(input) {if (target === codexHome)return skipped(input.path, "outside managed Codex cleanup scope");const exactManagedRoots = new Set([- resolve15(join57(codexHome, "plugins", "cache", "sisyphuslabs")),- resolve15(join57(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),- resolve15(join57(codexHome, "runtime", "ast-grep")),- resolve15(join57(codexHome, "runtime", "node")),- resolve15(join57(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))+ resolve15(join58(codexHome, "plugins", "cache", "sisyphuslabs")),+ resolve15(join58(codexHome, ".tmp", "marketplaces", "sisyphuslabs")),+ resolve15(join58(codexHome, "runtime", "ast-grep")),+ resolve15(join58(codexHome, "runtime", "node")),+ resolve15(join58(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap"))]);if (exactManagedRoots.has(target))return null;@@ -97657,8 +97865,8 @@ function skipped(path, reason) {var INSTALLED_AGENTS_MANIFEST = ".installed-agents.json";async function cleanupCodexLight(input = {}) {const env = input.env ?? process.env;- const codexHome = resolve16(input.codexHome ?? env.CODEX_HOME ?? join58(homedir8(), ".codex"));- const configPath = join58(codexHome, "config.toml");+ const codexHome = resolve16(input.codexHome ?? env.CODEX_HOME ?? join59(homedir8(), ".codex"));+ const configPath = join59(codexHome, "config.toml");const installedBinDir = await readInstalledCodexBinDir(codexHome);const agentPaths = await collectInstalledAgentPaths(codexHome, configPath);const configCleanup = await cleanupCodexConfig(configPath, input.now);@@ -97712,17 +97920,17 @@ function firstConfiguredPath(...values) {}function managedGlobalStatePaths(codexHome) {return [- join58(codexHome, "plugins", "cache", "sisyphuslabs"),- join58(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),- join58(codexHome, "runtime", "ast-grep"),- join58(codexHome, "runtime", "node"),- join58(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")+ join59(codexHome, "plugins", "cache", "sisyphuslabs"),+ join59(codexHome, ".tmp", "marketplaces", "sisyphuslabs"),+ join59(codexHome, "runtime", "ast-grep"),+ join59(codexHome, "runtime", "node"),+ join59(codexHome, "plugins", "data", "omo-sisyphuslabs", "bootstrap")];}var BOOTSTRAP_DATA_GLOB_MAX_DEPTH = 5;async function collectBootstrapDataDirsByGlob(codexHome) {const results = [];- await walkForManagedBootstrapDirs(join58(codexHome, "plugins"), 0, results);+ await walkForManagedBootstrapDirs(join59(codexHome, "plugins"), 0, results);return results;}async function walkForManagedBootstrapDirs(directory, depth, results) {@@ -97734,9 +97942,9 @@ async function walkForManagedBootstrapDirs(directory, depth, results) {for (const entry of entries) {if (!entry.isDirectory())continue;- const childPath = join58(directory, entry.name);+ const childPath = join59(directory, entry.name);if (isManagedBootstrapOwnerName(entry.name)) {- const bootstrapDir = join58(childPath, "bootstrap");+ const bootstrapDir = join59(childPath, "bootstrap");if (await exists6(bootstrapDir))results.push(bootstrapDir);continue;@@ -97762,7 +97970,7 @@ async function attemptRemove(path) {try {if (await lstat15(path).catch(() => null) === null)return false;- await rm13(path, { recursive: true, force: true });+ await rm14(path, { recursive: true, force: true });return true;} catch {return false;@@ -97770,7 +97978,7 @@ async function attemptRemove(path) {}async function pruneEmptyRuntimeDirBestEffort(codexHome) {try {- await rmdir(join58(codexHome, "runtime"));+ await rmdir(join59(codexHome, "runtime"));} catch (error) {if (isExpectedRuntimePruneFailure(error))return;@@ -97782,14 +97990,14 @@ function isExpectedRuntimePruneFailure(error) {}async function collectInstalledAgentPaths(codexHome, configPath) {const manifestPaths = [- join58(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)+ join59(codexHome, ".tmp", "marketplaces", "sisyphuslabs", "plugins", "omo", INSTALLED_AGENTS_MANIFEST)];- const versionRoot = join58(codexHome, "plugins", "cache", "sisyphuslabs", "omo");+ const versionRoot = join59(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(join58(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));+ manifestPaths.push(join59(versionRoot, entry.name, INSTALLED_AGENTS_MANIFEST));}}const paths = new Set;@@ -97806,19 +98014,19 @@ async function collectInstalledAgentPaths(codexHome, configPath) {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) => join58(codexHome, "agents", `${agentName}.toml`));+ const config = await readFile27(configPath, "utf8");+ return MANAGED_CODEX_AGENT_NAMES2.filter((agentName) => config.includes(`config_file = ${JSON.stringify(`./agents/${agentName}.toml`)}`)).map((agentName) => join59(codexHome, "agents", `${agentName}.toml`));}async function readInstalledAgentManifest(manifestPath) {if (!await exists6(manifestPath))return [];- const parsed = JSON.parse(await readFile25(manifestPath, "utf8"));+ const parsed = JSON.parse(await readFile27(manifestPath, "utf8"));if (!isPlainRecord4(parsed) || !Array.isArray(parsed.agents))return [];return parsed.agents.filter((path) => typeof path === "string");}async function removeManifestListedAgentLinks(codexHome, paths) {- const agentsDir = join58(codexHome, "agents");+ const agentsDir = join59(codexHome, "agents");const removed = [];const skipped = [];for (const path of paths) {@@ -97833,7 +98041,7 @@ async function removeManifestListedAgentLinks(codexHome, paths) {skipped.push(path);continue;}- await rm13(path, { force: true });+ await rm14(path, { force: true });removed.push(path);}return { removed, skipped };@@ -97870,14 +98078,14 @@ function nodeErrorCode6(error) {import { execFile as execFile3 } from "child_process";import { existsSync as existsSync31 } from "fs";import { homedir as homedir11 } from "os";-import { dirname as dirname25, join as join63, resolve as resolve20 } from "path";+import { dirname as dirname25, join as join64, resolve as resolve20 } 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 existsSync29 } from "fs";import { homedir as homedir9 } from "os";-import { join as join59, resolve as resolve17 } from "path";+import { join as join60, resolve as resolve17 } from "path";var AGENT_DIR_ENV_NAMES = ["OMO_CODING_AGENT_DIR","SENPI_CODING_AGENT_DIR",@@ -97891,25 +98099,25 @@ function resolveAgentHome(options) {if (configured)return resolve17(configured);}- const brandedHome = join59(homeDir, ".omo");- const canonical = join59(brandedHome, "agent");- if (exists(join59(canonical, AGENT_HOME_SENTINEL)))+ const brandedHome = join60(homeDir, ".omo");+ const canonical = join60(brandedHome, "agent");+ if (exists(join60(canonical, AGENT_HOME_SENTINEL)))return canonical;- if (exists(join59(brandedHome, AGENT_HOME_SENTINEL)))+ if (exists(join60(brandedHome, AGENT_HOME_SENTINEL)))return brandedHome;- return join59(homeDir, ".senpi", "agent");+ return join60(homeDir, ".senpi", "agent");}// packages/omo-senpi/src/install/local-launcher.tsimport { chmodSync as chmodSync3, existsSync as existsSync30, mkdirSync as mkdirSync12, readFileSync as readFileSync14, rmSync as rmSync4, writeFileSync as writeFileSync7 } from "fs";import { homedir as homedir10 } from "os";-import { dirname as dirname22, join as join60, resolve as resolve18 } from "path";+import { dirname as dirname22, join as join61, resolve as resolve18 } from "path";var MARKER = "omo-local-launcher";function localLauncherPath(homeDir = homedir10()) {- return join60(homeDir, ".local", "bin", "omo");+ return join61(homeDir, ".local", "bin", "omo");}function localLauncherCmdPath(homeDir = homedir10()) {- return join60(homeDir, ".local", "bin", "omo.cmd");+ return join61(homeDir, ".local", "bin", "omo.cmd");}function releaseChannel(version) {return version !== undefined && version.includes("-") ? "beta" : "latest";@@ -97927,7 +98135,7 @@ function renderLocalLauncher(options) {userAgent: "omo",originator: "omo",changelog: {- path: join60(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")+ path: join61(options.pluginPath, "CHANGELOG.md").replaceAll("\\", "/")},update: {packageName: "omo-ai",@@ -97999,8 +98207,8 @@ node "%~dp0omo" %*\r// packages/omo-senpi/src/install/plugin-artifacts.tsimport { 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 dirname24, join as join62 } from "path";+import { access as access2, readFile as readFile29, stat as stat6 } from "fs/promises";+import { dirname as dirname24, join as join63 } from "path";// packages/memory-core/src/personas/manifest.tsvar PERSONA_ASSET_FILENAMES = {@@ -98018,18 +98226,18 @@ 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 basename10, dirname as dirname23, join as join61, resolve as resolve19 } from "path";+import { access, copyFile as copyFile3, mkdir as mkdir9, readFile as readFile28, rename as rename5, writeFile as writeFile15 } from "fs/promises";+import { basename as basename10, dirname as dirname23, join as join62, resolve as resolve19 } 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 = [- join61("packages", "pi-goal"),- join61("packages", "pi-webfetch")+ join62("packages", "pi-goal"),+ join62("packages", "pi-webfetch")];async function readSettings(settingsPath) {let raw;try {- raw = await readFile26(settingsPath, "utf8");+ raw = await readFile28(settingsPath, "utf8");} catch (error) {if (isErrno(error, "ENOENT"))return {};@@ -98076,11 +98284,11 @@ async function writeSettingsAtomically(settingsPath, settings) {if (await fileExists(settingsPath)) {await copyFile3(settingsPath, backupPath);} else {- await writeFile14(backupPath, `{}+ await writeFile15(backupPath, `{}`, "utf8");}const tempPath = `${settingsPath}.${process.pid}.${Date.now()}.tmp`;- await writeFile14(tempPath, `${JSON.stringify(settings, null, 2)}+ await writeFile15(tempPath, `${JSON.stringify(settings, null, 2)}`, "utf8");await rename5(tempPath, settingsPath);return backupPath;@@ -98103,7 +98311,7 @@ function isRecord15(value) {async function readPackageName(packagePath) {let raw;try {- raw = await readFile26(join61(packagePath, "package.json"), "utf8");+ raw = await readFile28(join62(packagePath, "package.json"), "utf8");} catch (error) {if (isErrno(error, "ENOENT") || isErrno(error, "ENOTDIR"))return;@@ -98135,54 +98343,54 @@ function isErrno(error, code) {// packages/omo-senpi/src/install/plugin-artifacts.tsvar REQUIRED_PLUGIN_ARTIFACTS = [- join62("extensions", "omo.js"),- join62("extensions", "omo-task.js"),- join62("extensions", "omo-computer-use.js"),- join62("extensions", "assets.generated.json"),- join62("extensions", "omo-member.js"),- join62("extensions", "memory-run-supervisor.mjs"),- ...PERSONA_ASSET_FILES.map((filename) => join62("extensions", filename)),- join62("skills", "ast-grep", "SKILL.md"),- join62("skills", "browser", "SKILL.md"),- join62("skills", "coding-agent-sessions", "SKILL.md"),- join62("skills", "debugging", "SKILL.md"),- join62("skills", "frontend", "SKILL.md"),- join62("skills", "git-master", "SKILL.md"),- join62("skills", "init-deep", "SKILL.md"),- join62("skills", "lsp-setup", "SKILL.md"),- join62("skills", "programming", "SKILL.md"),- join62("skills", "refactor", "SKILL.md"),- join62("skills", "remove-ai-slops", "SKILL.md"),- join62("skills", "review-work", "SKILL.md"),- join62("skills", "ultimate-browsing", "SKILL.md"),- join62("skills", "ultrawork", "SKILL.md"),- join62("skills", "ulw-execute", "SKILL.md"),- join62("skills", "ulw-loop", "SKILL.md"),- join62("skills", "ulw-plan", "SKILL.md"),- join62("skills", "ulw-research", "SKILL.md"),- join62("skills", "visual-qa", "SKILL.md"),- join62("skills-conditional", "x-search", "SKILL.md"),- join62("runtime", "agent-toolkit-sdk", "sdk.js"),- join62("runtime", "ast-grep-mcp", "cli.js"),- join62("runtime", "lsp-daemon", "dist", "cli.js"),- join62("runtime", "lsp-daemon", "dist", "index.js"),- join62("runtime", "lsp-daemon", "dist", "index.d.ts"),- join62("runtime", "lsp-daemon", "dist", "daemon-client.js"),- join62("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),- join62("runtime", "lsp-daemon", "dist", "package.json"),- join62("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),- join62("scripts", "install.mjs"),+ join63("extensions", "omo.js"),+ join63("extensions", "omo-task.js"),+ join63("extensions", "omo-computer-use.js"),+ join63("extensions", "assets.generated.json"),+ join63("extensions", "omo-member.js"),+ join63("extensions", "memory-run-supervisor.mjs"),+ ...PERSONA_ASSET_FILES.map((filename) => join63("extensions", filename)),+ join63("skills", "ast-grep", "SKILL.md"),+ join63("skills", "browser", "SKILL.md"),+ join63("skills", "coding-agent-sessions", "SKILL.md"),+ join63("skills", "debugging", "SKILL.md"),+ join63("skills", "frontend", "SKILL.md"),+ join63("skills", "git-master", "SKILL.md"),+ join63("skills", "init-deep", "SKILL.md"),+ join63("skills", "lsp-setup", "SKILL.md"),+ join63("skills", "programming", "SKILL.md"),+ join63("skills", "refactor", "SKILL.md"),+ join63("skills", "remove-ai-slops", "SKILL.md"),+ join63("skills", "review-work", "SKILL.md"),+ join63("skills", "ultimate-browsing", "SKILL.md"),+ join63("skills", "ultrawork", "SKILL.md"),+ join63("skills", "ulw-execute", "SKILL.md"),+ join63("skills", "ulw-loop", "SKILL.md"),+ join63("skills", "ulw-plan", "SKILL.md"),+ join63("skills", "ulw-research", "SKILL.md"),+ join63("skills", "visual-qa", "SKILL.md"),+ join63("skills-conditional", "x-search", "SKILL.md"),+ join63("runtime", "agent-toolkit-sdk", "sdk.js"),+ join63("runtime", "ast-grep-mcp", "cli.js"),+ join63("runtime", "lsp-daemon", "dist", "cli.js"),+ join63("runtime", "lsp-daemon", "dist", "index.js"),+ join63("runtime", "lsp-daemon", "dist", "index.d.ts"),+ join63("runtime", "lsp-daemon", "dist", "daemon-client.js"),+ join63("runtime", "lsp-daemon", "dist", "daemon-client.d.ts"),+ join63("runtime", "lsp-daemon", "dist", "package.json"),+ join63("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),+ join63("scripts", "install.mjs"),"daemon-launch-spec.json"];async function ensurePluginArtifacts(context) {if (context.allowBuild) {- await context.runCommand("node", [join62(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });- await context.runCommand("node", [join62(context.pluginPath, "scripts", "stage-x-search-skill.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "build-extension.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63("packages", "omo-codex", "plugin", "scripts", "materialize-shared-upstreams.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "sync-skills.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "build-install.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "stage-lsp-daemon-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(context.pluginPath, "scripts", "stage-ast-grep-mcp-runtime.mjs")], { cwd: context.repoRoot });+ await context.runCommand("node", [join63(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}`);@@ -98191,14 +98399,14 @@ async function ensurePluginArtifacts(context) {}async function hasMissingPluginArtifact(pluginPath) {for (const artifact of REQUIRED_PLUGIN_ARTIFACTS) {- if (!await fileExists2(join62(pluginPath, artifact)))+ if (!await fileExists2(join63(pluginPath, artifact)))return true;}return false;}async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {- const runtimeEntry = join62(pluginPath, "runtime", "ast-grep-mcp", "cli.js");- const manifestPath = join62(dirname24(runtimeEntry), "manifest.json");+ const runtimeEntry = join63(pluginPath, "runtime", "ast-grep-mcp", "cli.js");+ const manifestPath = join63(dirname24(runtimeEntry), "manifest.json");let runtimeStat;try {runtimeStat = await stat6(runtimeEntry);@@ -98213,7 +98421,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}let manifest;try {- manifest = JSON.parse(await readFile27(manifestPath, "utf8"));+ manifest = JSON.parse(await readFile29(manifestPath, "utf8"));} catch (error) {throw astGrepIntegrityError(runtimeEntry, `manifest is unreadable or invalid JSON: ${messageOf(error)}`);}@@ -98222,7 +98430,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {}let actualSha256;try {- actualSha256 = createHash6("sha256").update(await readFile27(runtimeEntry)).digest("hex");+ actualSha256 = createHash6("sha256").update(await readFile29(runtimeEntry)).digest("hex");} catch (error) {throw astGrepIntegrityError(runtimeEntry, `runtime hash could not be computed: ${messageOf(error)}`);}@@ -98273,7 +98481,7 @@ async function runSenpiInstaller(options = {}) {const backupPath = await writeSettingsAtomically(context.settingsPath, settings);const launcherPath = installLocalLauncher({pluginPath: context.pluginPath,- senpiCliPath: join63(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),+ senpiCliPath: join64(context.repoRoot, "packages", "coding-agent", "dist", "cli.js"),homeDir: context.homeDir});return {@@ -98293,13 +98501,13 @@ function resolveInstallContext(options) {const repoRoot = resolve20(options.repoRoot ?? (allowBuild ? findRepoRoot2(dirname25(fileURLToPath(import.meta.url))) : dirname25(resolve20(options.pluginPath))));const homeDir = options.homeDir ?? env.HOME ?? homedir11();const agentDir = resolve20(options.agentDir ?? resolveAgentHome({ env, homeDir }));- const pluginPath = resolve20(options.pluginPath ?? join63(repoRoot, "packages", "omo-senpi", "plugin"));+ const pluginPath = resolve20(options.pluginPath ?? join64(repoRoot, "packages", "omo-senpi", "plugin"));return {env,repoRoot,agentDir,homeDir,- settingsPath: join63(agentDir, "settings.json"),+ settingsPath: join64(agentDir, "settings.json"),pluginPath,platform: options.platform ?? process.platform,allowBuild,@@ -98316,7 +98524,7 @@ async function defaultRunCommand3(command, args, options) {function findRepoRoot2(importerDir) {let current = importerDir;for (let depth = 0;depth <= 7; depth += 1) {- if (fileExistsSync(join63(current, "packages", "omo-senpi", "plugin", "package.json")))+ if (fileExistsSync(join64(current, "packages", "omo-senpi", "plugin", "package.json")))return current;current = resolve20(current, "..");}@@ -98331,7 +98539,7 @@ async function runNativeDevInstaller(options) {}// packages/omo-opencode/src/cli/install-native/legacy-omo-bin.tsimport { lstatSync as lstatSync4, readFileSync as readFileSync15, realpathSync as realpathSync8, statSync as statSync4 } from "fs";-import { dirname as dirname26, isAbsolute as isAbsolute12, join as join64, posix as posix9, win32 as win325 } from "path";+import { dirname as dirname26, isAbsolute as isAbsolute12, join as join65, posix as posix9, win32 as win325 } from "path";var NATIVE_OMO_PACKAGE = "omo-ai";var LEGACY_OMO_BIN_PACKAGES = ["oh-my-openagent", "oh-my-opencode", "lazycodex"];var CODEX_LIGHT_WRAPPER_MARKER = "OMO_GENERATED_RUNTIME_WRAPPER";@@ -98396,7 +98604,7 @@ function classify(owner) {}function omoShimPathsIn(directory, isWindows) {const suffixes = isWindows ? WINDOWS_BIN_SUFFIXES : [""];- return suffixes.map((suffix) => join64(directory, `${OMO_BIN_NAME}${suffix}`)).filter(pathExists);+ return suffixes.map((suffix) => join65(directory, `${OMO_BIN_NAME}${suffix}`)).filter(pathExists);}function pathExists(path) {try {@@ -98431,7 +98639,7 @@ function shimEntryPaths(shim, shimDirectory) {const quoted = match[0];const relativeToShim = quoted.match(/^(?:%~?dp0%?|\$\{?basedir\}?)[\\/]?(.*)$/)?.[1];if (relativeToShim !== undefined)- paths.push(join64(shimDirectory, relativeToShim.replace(/\\/g, "/")));+ paths.push(join65(shimDirectory, relativeToShim.replace(/\\/g, "/")));else if (isAbsolute12(quoted))paths.push(quoted);}@@ -98452,7 +98660,7 @@ function bunxEntryPaths(binPath) {const end = contents.indexOf('"\x00');if (end <= 0)return [];- return [join64(dirname26(dirname26(binPath)), contents.slice(0, end).replace(/\\/g, "/"))];+ return [join65(dirname26(dirname26(binPath)), contents.slice(0, end).replace(/\\/g, "/"))];}function codexLightWrapperOwner(shim) {if (!shim.includes(CODEX_LIGHT_WRAPPER_MARKER))@@ -98466,7 +98674,7 @@ function isInsideNodeModules(path) {function ownerOfFile(file) {let directory = dirname26(file);for (let depth = 0;depth < OWNER_WALK_UP_LIMIT; depth += 1) {- const manifest = readWholeFile(join64(directory, "package.json"));+ const manifest = readWholeFile(join65(directory, "package.json"));if (manifest !== null) {const parsed = parseManifest(manifest);if (parsed !== null)@@ -98764,12 +98972,12 @@ init_provider_availability();// packages/omo-opencode/src/cli/config-manager/add-tui-plugin-to-tui-config.tsimport { existsSync as existsSync33, mkdirSync as mkdirSync13, readFileSync as readFileSync17 } from "fs";-import { join as join66 } from "path";+import { join as join67 } from "path";// packages/omo-opencode/src/cli/doctor/checks/tui-plugin-config.tsinit_shared();import { existsSync as existsSync32, readFileSync as readFileSync16 } from "fs";-import { join as join65 } from "path";+import { join as join66 } from "path";var TUI_SUBPATH = "tui";var TUI_EXPORT_SUBPATH = `./${TUI_SUBPATH}`;function tuiPluginSpecName(entry) {@@ -98789,7 +98997,7 @@ function fileEntryPackageJsonPath(entry) {let path = entry.slice("file:".length);if (path.startsWith("//"))path = path.slice(2);- return join65(path, "package.json");+ return join66(path, "package.json");}function packageJsonExportsTui(pkgJsonPath) {if (!existsSync32(pkgJsonPath))@@ -98828,7 +99036,7 @@ function packageExportsTuiForServerEntry(entry) {const packageName = packageNameFromServerEntry(entry);if (packageName === null)return null;- return packageJsonExportsTui(join65(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));+ return packageJsonExportsTui(join66(getOpenCodeConfigDir({ binary: "opencode" }), "node_modules", packageName, "package.json"));}function isOurFilePluginEntry(entry) {if (typeof entry !== "string" || !entry.startsWith("file:"))@@ -98915,7 +99123,7 @@ function detectServerPluginRegistration() {}}function detectTuiPluginRegistration() {- const tuiJsonPath = join65(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");+ const tuiJsonPath = join66(getOpenCodeConfigDir({ binary: "opencode" }), "tui.json");if (!existsSync32(tuiJsonPath)) {return {registered: false,@@ -99091,10 +99299,10 @@ function readConfig(path) {return null;}function readServerConfig(configDir) {- const jsoncPath = join66(configDir, "opencode.jsonc");+ const jsoncPath = join67(configDir, "opencode.jsonc");if (existsSync33(jsoncPath))return readConfig(jsoncPath);- const jsonPath = join66(configDir, "opencode.json");+ const jsonPath = join67(configDir, "opencode.json");if (existsSync33(jsonPath))return readConfig(jsonPath);return null;@@ -99151,7 +99359,7 @@ function ensureTuiPluginEntry(opts = {}) {if (!desiredEntry) {return { changed: false, reason: "no-server-entry" };}- const tuiJsonPath = join66(configDir, "tui.json");+ const tuiJsonPath = join67(configDir, "tui.json");const { config, malformed } = readTuiConfig(tuiJsonPath);if (malformed || pluginFieldInvalid(config)) {return { changed: false, reason: "malformed" };@@ -99172,10 +99380,10 @@ function ensureTuiPluginEntry(opts = {}) {init_shared();init_config_context();import { existsSync as existsSync34, readFileSync as readFileSync18 } from "fs";-import { join as join67 } from "path";+import { join as join68 } from "path";function readPluginEntries(configDir) {for (const name of ["opencode.jsonc", "opencode.json"]) {- const configPath = join67(configDir, name);+ const configPath = join68(configDir, name);if (!existsSync34(configPath))continue;try {@@ -99223,7 +99431,7 @@ function refreshOpenCodePluginSandboxes(options = {}) {// packages/omo-opencode/src/cli/install-ast-grep-sg.tsimport { homedir as homedir13 } from "os";-import { join as join68 } from "path";+import { join as join69 } from "path";// packages/shared-skills/index.mjsimport { existsSync as existsSync35 } from "fs";@@ -99245,9 +99453,9 @@ function describeResult2(result) {}async function installAstGrepForOpenCode(options = {}) {const platform = options.platform ?? process.platform;- const baseDir = join68(options.homeDir ?? homedir13(), ".omo");+ const baseDir = join69(options.homeDir ?? homedir13(), ".omo");const targetDir = astGrepRuntimeDir(baseDir, platform, options.arch ?? process.arch);- const skillDir = join68(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");+ const skillDir = join69(options.sharedSkillsRoot ?? sharedSkillsRootPath(), "ast-grep");const installer = options.installer ?? runAstGrepSkillInstall;try {const result = await installer({ platform, skillDir, targetDir });@@ -103610,9 +103818,9 @@ function readCurrentTopLevelTask(planPath) {}// packages/boulder-state/src/storage/path.tsimport { existsSync as existsSync37 } from "fs";-import { isAbsolute as isAbsolute13, join as join69, relative as relative8, resolve as resolve21 } from "path";+import { isAbsolute as isAbsolute13, join as join70, relative as relative8, resolve as resolve21 } from "path";function getBoulderFilePath(directory) {- return join69(directory, BOULDER_DIR, BOULDER_FILE);+ return join70(directory, BOULDER_DIR, BOULDER_FILE);}function resolveTrackedPath(baseDirectory, trackedPath) {return isAbsolute13(trackedPath) ? resolve21(trackedPath) : resolve21(baseDirectory, trackedPath);@@ -103797,9 +104005,9 @@ init_state();var CONTINUATION_MARKER_DIR = ".omo/run-continuation";// packages/omo-opencode/src/features/run-continuation-state/storage.tsimport { existsSync as existsSync40, mkdirSync as mkdirSync14, readFileSync as readFileSync22, rmSync as rmSync6, writeFileSync as writeFileSync8 } from "fs";-import { join as join70 } from "path";+import { join as join71 } from "path";function getMarkerPath(directory, sessionID) {- return join70(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);+ return join71(directory, CONTINUATION_MARKER_DIR, `${sessionID}.json`);}function readContinuationMarker(directory, sessionID) {const markerPath = getMarkerPath(directory, sessionID);@@ -103872,7 +104080,7 @@ async function isSessionInBoulderLineage(input) {init_shared();init_compaction_marker();import { readFileSync as readFileSync23, readdirSync as readdirSync10 } from "fs";-import { join as join71 } from "path";+import { join as join72 } from "path";var defaultSessionLastAgentDeps = {getMessageDir,isSqliteBackend,@@ -103932,7 +104140,7 @@ async function getLastAgentFromSession(sessionID, client, deps = {}) {try {const messages = readdirSync10(messageDir).filter((fileName) => fileName.endsWith(".json")).map((fileName) => {try {- const content = readFileSync23(join71(messageDir, fileName), "utf-8");+ const content = readFileSync23(join72(messageDir, fileName), "utf-8");const parsed = JSON.parse(content);return {fileName,@@ -103976,7 +104184,7 @@ init_agent_display_names();// packages/omo-opencode/src/hooks/ralph-loop/storage.tsinit_frontmatter2();import { existsSync as existsSync41, readFileSync as readFileSync24, writeFileSync as writeFileSync9, unlinkSync as unlinkSync6, mkdirSync as mkdirSync15 } from "fs";-import { dirname as dirname28, join as join72 } from "path";+import { dirname as dirname28, join as join73 } from "path";// packages/omo-opencode/src/hooks/ralph-loop/constants.tsvar DEFAULT_STATE_FILE = ".omo/ralph-loop.local.md";@@ -103985,7 +104193,7 @@ var DEFAULT_COMPLETION_PROMISE = "DONE";// packages/omo-opencode/src/hooks/ralph-loop/storage.tsfunction getStateFilePath(directory, customPath) {- return customPath ? join72(directory, customPath) : join72(directory, DEFAULT_STATE_FILE);+ return customPath ? join73(directory, customPath) : join73(directory, DEFAULT_STATE_FILE);}function readState(directory, customPath) {const filePath = getStateFilePath(directory, customPath);@@ -105092,7 +105300,7 @@ init_extract_semver();init_bun_which_shim();import { existsSync as existsSync49, accessSync as accessSync4, constants as constants12 } from "fs";import { homedir as homedir16 } from "os";-import { join as join79 } from "path";+import { join as join80 } from "path";// packages/omo-opencode/src/cli/doctor/framework/spawn-with-timeout.tsinit_spawn_with_windows_hide();@@ -105184,17 +105392,17 @@ function getDesktopAppPaths(platform) {case "darwin":return ["/Applications/OpenCode.app/Contents/MacOS/OpenCode",- join79(home, "Applications", "OpenCode.app", "Contents", "MacOS", "OpenCode")+ join80(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(join79(programFiles, "OpenCode", "OpenCode.exe"));+ paths.push(join80(programFiles, "OpenCode", "OpenCode.exe"));}if (localAppData) {- paths.push(join79(localAppData, "OpenCode", "OpenCode.exe"));+ paths.push(join80(localAppData, "OpenCode", "OpenCode.exe"));}return paths;}@@ -105202,8 +105410,8 @@ function getDesktopAppPaths(platform) {return ["/usr/bin/opencode","/usr/lib/opencode/opencode",- join79(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),- join79(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")+ join80(home, "Applications", "opencode-desktop-linux-x86_64.AppImage"),+ join80(home, "Applications", "opencode-desktop-linux-aarch64.AppImage")];default:return [];@@ -105235,7 +105443,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 = join79(entry, command);+ const fullPath = join80(entry, command);if (checkExists(fullPath) && isExecutable2(fullPath)) {return { binary: command, path: fullPath };}@@ -105379,22 +105587,22 @@ init_package_json_locator();import { existsSync as existsSync51, readFileSync as readFileSync33, readdirSync as readdirSync12 } from "fs";import { createRequire } from "module";import { homedir as homedir17 } from "os";-import { join as join80 } from "path";+import { join as join81 } from "path";import { fileURLToPath as fileURLToPath6 } from "url";init_shared();function getPlatformDefaultCacheDir(platform = process.platform) {if (platform === "darwin")- return join80(homedir17(), "Library", "Caches");+ return join81(homedir17(), "Library", "Caches");if (platform === "win32")- return process.env.LOCALAPPDATA ?? join80(homedir17(), "AppData", "Local");- return join80(homedir17(), ".cache");+ return process.env.LOCALAPPDATA ?? join81(homedir17(), "AppData", "Local");+ return join81(homedir17(), ".cache");}function resolveOpenCodeCacheDir() {const xdgCacheHome = process.env.XDG_CACHE_HOME;if (xdgCacheHome)- return join80(xdgCacheHome, "opencode");+ return join81(xdgCacheHome, "opencode");const fromShared = getOpenCodeCacheDir();- const platformDefault = join80(getPlatformDefaultCacheDir(), "opencode");+ const platformDefault = join81(getPlatformDefaultCacheDir(), "opencode");if (existsSync51(fromShared) || !existsSync51(platformDefault))return fromShared;return platformDefault;@@ -105426,11 +105634,11 @@ function normalizeVersion(value) {function createPackageCandidates(rootDir) {return ACCEPTED_PACKAGE_NAMES.map((packageName) => ({packageName,- installedPackagePath: join80(rootDir, "node_modules", packageName, "package.json")+ installedPackagePath: join81(rootDir, "node_modules", packageName, "package.json")}));}function createTaggedInstallCandidates(rootDir) {- const packagesDir = join80(rootDir, "packages");+ const packagesDir = join81(rootDir, "packages");if (!existsSync51(packagesDir))return [];const candidates = [];@@ -105438,14 +105646,14 @@ function createTaggedInstallCandidates(rootDir) {const packageName = ACCEPTED_PACKAGE_NAMES.find((name) => entryName.startsWith(`${name}@`));if (packageName === undefined)continue;- const installDir = join80(packagesDir, entryName);+ const installDir = join81(packagesDir, entryName);candidates.push({cacheDir: installDir,- cachePackagePath: join80(installDir, "package.json"),+ cachePackagePath: join81(installDir, "package.json"),packageCandidates: [{packageName,- installedPackagePath: join80(installDir, "node_modules", packageName, "package.json")+ installedPackagePath: join81(installDir, "node_modules", packageName, "package.json")}]});@@ -105490,13 +105698,13 @@ function getLoadedPluginVersion() {const candidates = [{cacheDir: configDir,- cachePackagePath: join80(configDir, "package.json"),+ cachePackagePath: join81(configDir, "package.json"),packageCandidates: createPackageCandidates(configDir)},...createTaggedInstallCandidates(configDir),{cacheDir,- cachePackagePath: join80(cacheDir, "package.json"),+ cachePackagePath: join81(cacheDir, "package.json"),packageCandidates: createPackageCandidates(cacheDir)},...createTaggedInstallCandidates(cacheDir)@@ -105689,18 +105897,18 @@ async function checkSystem(deps = defaultDeps5) {init_shared();import { existsSync as existsSync53, readFileSync as readFileSync35 } from "fs";import { homedir as homedir18 } from "os";-import { join as join81 } from "path";+import { join as join82 } from "path";function getUserConfigDir2() {const xdgConfig = process.env.XDG_CONFIG_HOME;if (xdgConfig)- return join81(xdgConfig, "opencode");- return join81(homedir18(), ".config", "opencode");+ return join82(xdgConfig, "opencode");+ return join82(homedir18(), ".config", "opencode");}function loadCustomProviderNames() {const configDir = getUserConfigDir2();const candidatePaths = [- join81(configDir, "opencode.json"),- join81(configDir, "opencode.jsonc")+ join82(configDir, "opencode.json"),+ join82(configDir, "opencode.jsonc")];for (const configPath of candidatePaths) {if (!existsSync53(configPath))@@ -105721,7 +105929,7 @@ function loadCustomProviderNames() {return [];}function loadAvailableModelsFromCache() {- const cacheFile = join81(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join82(getOpenCodeCacheDir(), "models.json");const customProviders = loadCustomProviderNames();if (!existsSync53(cacheFile)) {if (customProviders.length > 0) {@@ -105783,7 +105991,7 @@ function loadOmoConfig2() {// packages/omo-opencode/src/cli/doctor/checks/model-resolution-details.tsinit_shared();-import { join as join82 } from "path";+import { join as join83 } from "path";// packages/omo-opencode/src/cli/doctor/checks/model-resolution-variant.tsfunction formatModelWithVariant(model, variant) {@@ -105825,7 +106033,7 @@ function formatCapabilityResolutionLabel(mode) {}function buildModelResolutionDetails(options) {const details = [];- const cacheFile = join82(getOpenCodeCacheDir(), "models.json");+ const cacheFile = join83(getOpenCodeCacheDir(), "models.json");details.push("\u2550\u2550\u2550 Available Models (from cache) \u2550\u2550\u2550");details.push("");if (options.available.cacheExists) {@@ -106166,7 +106374,7 @@ init_src4();init_main();init_config_migration();import { existsSync as existsSync54, readFileSync as readFileSync36 } from "fs";-import { join as join83 } from "path";+import { join as join84 } from "path";var CANONICAL_REPLACEMENT = new Map([["variant", "reasoning"],["reasoningEffort", "reasoning"],@@ -106227,7 +106435,7 @@ function userConfigPaths() {const home = process.env.HOME ?? process.env.USERPROFILE;if (home === undefined || home.length === 0)return [];- return [join83(home, ".omo", "omo.jsonc"), join83(home, ".omo", "omo.json")];+ return [join84(home, ".omo", "omo.jsonc"), join84(home, ".omo", "omo.json")];}async function checkDeprecatedReasoningKeys() {const issues = [];@@ -106253,13 +106461,13 @@ init_src();import { existsSync as existsSync55 } from "fs";import { createRequire as createRequire2 } from "module";import { homedir as homedir20 } from "os";-import { dirname as dirname33, join as join87 } from "path";+import { dirname as dirname33, join as join88 } from "path";// packages/omo-opencode/src/hooks/comment-checker/downloader.ts-import { join as join86 } from "path";+import { join as join87 } from "path";import { homedir as homedir19, tmpdir as tmpdir4 } from "os";// packages/comment-checker-core/src/release.ts-import { join as join84 } from "path";+import { join as join85 } from "path";var COMMENT_CHECKER_RELEASE_VERSION = "0.8.0";function commentCheckerBinaryName(platform) {return platform === "win32" ? "comment-checker.exe" : "comment-checker";@@ -106267,19 +106475,19 @@ function commentCheckerBinaryName(platform) {function commentCheckerCacheDir(input) {if (input.platform === "win32") {const localAppData = input.env.LOCALAPPDATA || input.env.APPDATA;- const base = localAppData || join84(input.homedir, "AppData", "Local");- return join84(base, input.cacheDirName, "bin");+ const base = localAppData || join85(input.homedir, "AppData", "Local");+ return join85(base, input.cacheDirName, "bin");}- const base = input.env.XDG_CACHE_HOME || join84(input.homedir, ".cache");- return join84(base, input.cacheDirName, "bin");+ const base = input.env.XDG_CACHE_HOME || join85(input.homedir, ".cache");+ return join85(base, input.cacheDirName, "bin");}// packages/comment-checker-core/src/cached-release.tsimport { readFileSync as readFileSync37, writeFileSync as writeFileSync12 } from "fs";-import { join as join85 } from "path";+import { join as join86 } from "path";var COMMENT_CHECKER_VERSION_MARKER = "comment-checker.version";function isCachedCommentCheckerCurrent(cacheDir, readFile = (path) => readFileSync37(path, "utf-8")) {try {- return readFile(join85(cacheDir, COMMENT_CHECKER_VERSION_MARKER)).trim() === COMMENT_CHECKER_RELEASE_VERSION;+ return readFile(join86(cacheDir, COMMENT_CHECKER_VERSION_MARKER)).trim() === COMMENT_CHECKER_RELEASE_VERSION;} catch {return false;}@@ -106289,7 +106497,7 @@ init_binary_downloader();init_logger2();init_plugin_identity();var DEBUG = process.env.COMMENT_CHECKER_DEBUG === "1";-var DEBUG_FILE = join86(tmpdir4(), "comment-checker-debug.log");+var DEBUG_FILE = join87(tmpdir4(), "comment-checker-debug.log");function getCacheDir2() {return commentCheckerCacheDir({platform: process.platform,@@ -106348,7 +106556,7 @@ async function getBinaryVersion(binary) {}}async function checkAstGrepCli() {- const runtimeDir = astGrepRuntimeDir(join87(homedir20(), ".omo"));+ const runtimeDir = astGrepRuntimeDir(join88(homedir20(), ".omo"));const sgPath = findSgBinarySync({ runtimeDir });if (sgPath === null) {return {@@ -106378,10 +106586,10 @@ function findCommentCheckerPackageBinary(baseDirOverride, resolvePackageJsonPathconst platformKey = `${process.platform}-${process.arch === "x64" ? "x64" : process.arch}`;try {const packageDir = baseDirOverride ?? dirname33(resolvePackageJsonPath());- const vendorPath = join87(packageDir, "vendor", platformKey, binaryName);+ const vendorPath = join88(packageDir, "vendor", platformKey, binaryName);if (existsSync55(vendorPath))return vendorPath;- const binPath = join87(packageDir, "bin", binaryName);+ const binPath = join88(packageDir, "bin", binaryName);if (existsSync55(binPath))return binPath;} catch (error) {@@ -106757,13 +106965,13 @@ function getInstalledLspServers(options = {}) {init_shared();import { existsSync as existsSync57, readFileSync as readFileSync39 } from "fs";import { homedir as homedir21 } from "os";-import { join as join88 } from "path";+import { join as join89 } from "path";var BUILTIN_MCP_SERVERS = ["websearch", "context7", "grep_app", "lsp"];function getMcpConfigPaths() {return [- join88(homedir21(), ".claude", ".mcp.json"),- join88(process.cwd(), ".mcp.json"),- join88(process.cwd(), ".claude", ".mcp.json")+ join89(homedir21(), ".claude", ".mcp.json"),+ join89(process.cwd(), ".mcp.json"),+ join89(process.cwd(), ".claude", ".mcp.json")];}function loadUserMcpConfig() {@@ -107043,9 +107251,9 @@ async function pathExists2(dir) {// packages/omo-opencode/src/cli/doctor/checks/codex.tsinit_src();import { existsSync as existsSync59 } from "fs";-import { lstat as lstat16, readdir as readdir14, readFile as readFile28 } from "fs/promises";+import { lstat as lstat16, readdir as readdir14, readFile as readFile30 } from "fs/promises";import { homedir as homedir23 } from "os";-import { basename as basename12, join as join89, resolve as resolve24 } from "path";+import { basename as basename12, join as join90, resolve as resolve24 } from "path";// packages/omo-opencode/package.jsonvar package_default3 = {name: "@oh-my-opencode/omo-opencode",@@ -107115,13 +107323,13 @@ var CODEX_BIN_NAMES = ["omo-git-bash-hook"];async function gatherCodexSummary(deps = {}) {- const codexHome = resolve24(deps.codexHome ?? process.env.CODEX_HOME ?? join89(homedir23(), ".codex"));+ const codexHome = resolve24(deps.codexHome ?? process.env.CODEX_HOME ?? join90(homedir23(), ".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(join89(pluginRoot, ".codex-plugin", "plugin.json"));- const installSnapshot = pluginRoot === null ? null : await readJson(join89(pluginRoot, "lazycodex-install.json"));- const configPath = join89(codexHome, "config.toml");+ const manifest = pluginRoot === null ? null : await readJson(join90(pluginRoot, ".codex-plugin", "plugin.json"));+ const installSnapshot = pluginRoot === null ? null : await readJson(join90(pluginRoot, "lazycodex-install.json"));+ const configPath = join90(codexHome, "config.toml");const pluginVersion = stringField(manifest, "version");return {codexPath: detection.found && "path" in detection ? detection.path : null,@@ -107178,7 +107386,7 @@ function buildCodexIssues(summary) {if (summary.pluginRoot === null) {issues.push({title: "OMO Codex plugin is not installed",- description: `Expected cached plugin at ${join89("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,+ description: `Expected cached plugin at ${join90("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,fix: "Run: npx lazycodex-ai install",severity: "error",affects: ["plugin loading"]@@ -107243,12 +107451,12 @@ function buildCodexIssues(summary) {return issues;}async function resolveInstalledPluginRoot(codexHome) {- const pluginRoot = join89(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);+ const pluginRoot = join90(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);if (!existsSync59(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 : join89(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);+ return candidates.length === 0 ? null : join90(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);}async function readCodexConfigSummary(configPath) {if (!existsSync59(configPath)) {@@ -107262,7 +107470,7 @@ async function readCodexConfigSummary(configPath) {companionLifecycleHookStateEvents: []};}- const content = await readFile28(configPath, "utf8");+ const content = await readFile30(configPath, "utf8");return {exists: true,marketplaceConfigured: content.includes("[marketplaces.sisyphuslabs]"),@@ -107276,13 +107484,13 @@ async function readCodexConfigSummary(configPath) {async function readLinkedBins(binDir) {const linked = [];for (const name of CODEX_BIN_NAMES) {- if (await pathExists3(join89(binDir, process.platform === "win32" ? `${name}.cmd` : name)))+ if (await pathExists3(join90(binDir, process.platform === "win32" ? `${name}.cmd` : name)))linked.push(name);}return linked;}async function readLinkedAgents(codexHome) {- const agentsDir = join89(codexHome, "agents");+ const agentsDir = join90(codexHome, "agents");if (!existsSync59(agentsDir))return [];const entries = await readdir14(agentsDir, { withFileTypes: true });@@ -107290,7 +107498,7 @@ async function readLinkedAgents(codexHome) {}async function readJson(path) {try {- const parsed = JSON.parse(await readFile28(path, "utf8"));+ const parsed = JSON.parse(await readFile30(path, "utf8"));return isPlainRecord(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)@@ -107414,9 +107622,9 @@ function resolveLatestVersion(input) {// packages/omo-opencode/src/cli/doctor/checks/codex-components.tsinit_src();-import { readdir as readdir15, readFile as readFile29, stat as stat7 } from "fs/promises";+import { readdir as readdir15, readFile as readFile31, stat as stat7 } from "fs/promises";import { homedir as homedir24 } from "os";-import { dirname as dirname35, isAbsolute as isAbsolute14, join as join90, relative as relative9, resolve as resolve25, sep as sep9 } from "path";+import { dirname as dirname35, isAbsolute as isAbsolute14, join as join91, relative as relative9, resolve as resolve25, 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";@@ -107426,7 +107634,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 = resolve25(deps.codexHome ?? env["CODEX_HOME"] ?? join90(homedir24(), ".codex"));+ const codexHome = resolve25(deps.codexHome ?? env["CODEX_HOME"] ?? join91(homedir24(), ".codex"));const summary = await gatherCodexSummary({ ...deps, codexHome });if (summary.pluginRoot === null) {return {@@ -107451,7 +107659,7 @@ async function checkCodexComponents(deps = {}) {});}const runtimeSgDir = runtimeSgDirectory(codexHome, platform, arch);- const runtimeSgPath = join90(runtimeSgDir, sgBinaryName(platform));+ const runtimeSgPath = join91(runtimeSgDir, sgBinaryName(platform));const sg = findSgBinarySync({arch,env,@@ -107563,7 +107771,7 @@ async function findManifestPaths(root, manifestName) {for (const entry of entries) {if (entry.name === "node_modules" || entry.name === ".git")continue;- const entryPath = join90(root, entry.name);+ const entryPath = join91(root, entry.name);if (entry.isDirectory()) {paths.push(...await findManifestPaths(entryPath, manifestName));continue;@@ -107607,18 +107815,18 @@ function isPluginRuntimePathArg(arg) {return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute14(arg));}function runtimeSgDirectory(codexHome, platform, arch) {- return join90(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));+ return join91(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 === join90(runtimeSgDir, sgBinaryName(platform)))+ if (sgPath === join91(runtimeSgDir, sgBinaryName(platform)))return "runtime dir";return "PATH";}async function readBootstrapStateSummary(codexHome) {- const statePath = join90(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");+ const statePath = join91(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");const raw = await readJson2(statePath);if (raw === null)return null;@@ -107667,7 +107875,7 @@ function degradedDetailLines(entries) {}async function readJson2(path) {try {- const parsed = JSON.parse(await readFile29(path, "utf8"));+ const parsed = JSON.parse(await readFile31(path, "utf8"));return isRecord18(parsed) ? parsed : null;} catch (error) {if (error instanceof Error)@@ -107695,18 +107903,18 @@ function isRecord18(value) {// packages/omo-opencode/src/cli/doctor/checks/codex-runtime-wrapper.tsimport { existsSync as existsSync60 } from "fs";-import { readFile as readFile30 } from "fs/promises";+import { readFile as readFile32 } from "fs/promises";import { homedir as homedir25 } from "os";-import { join as join91, resolve as resolve26 } from "path";+import { join as join92, resolve as resolve26 } 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 = resolve26(deps.codexHome ?? process.env.CODEX_HOME ?? join91(homedir25(), ".codex"));+ const codexHome = resolve26(deps.codexHome ?? process.env.CODEX_HOME ?? join92(homedir25(), ".codex"));const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });const platform = deps.platform ?? process.platform;- const wrapperPath = join91(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");- const legacyWrapperPath = join91(binDir, platform === "win32" ? "omo.cmd" : "omo");+ const wrapperPath = join92(binDir, platform === "win32" ? "omo-agent-toolkit.cmd" : "omo-agent-toolkit");+ const legacyWrapperPath = join92(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) {@@ -107740,7 +107948,7 @@ async function checkCodexRuntimeWrapper(deps = {}) {}async function readRuntimeWrapper(path) {try {- return await readFile30(path, "utf8");+ return await readFile32(path, "utf8");} catch (error) {if (error instanceof Error)return null;@@ -108242,12 +108450,12 @@ import {unlinkSync as unlinkSync9,writeFileSync as writeFileSync14} from "fs";-import { basename as basename13, dirname as dirname36, join as join94 } from "path";+import { basename as basename13, dirname as dirname36, join as join95 } from "path";// packages/mcp-client-core/src/config-dir.tsimport { existsSync as existsSync61, realpathSync as realpathSync10 } from "fs";import { homedir as homedir26 } from "os";-import { join as join92, resolve as resolve27 } from "path";+import { join as join93, resolve as resolve27 } from "path";function resolveConfigPath2(pathValue) {const resolvedPath = resolve27(pathValue);if (!existsSync61(resolvedPath))@@ -108265,13 +108473,13 @@ function getOpenCodeCliConfigDir(env = process.env) {if (customConfigDir) {return resolveConfigPath2(customConfigDir);}- const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join92(homedir26(), ".config");- return resolveConfigPath2(join92(xdgConfigDir, "opencode"));+ const xdgConfigDir = env["XDG_CONFIG_HOME"]?.trim() || join93(homedir26(), ".config");+ return resolveConfigPath2(join93(xdgConfigDir, "opencode"));}// packages/mcp-client-core/src/mcp-oauth/storage-index.tsimport { chmodSync as chmodSync4, existsSync as existsSync62, readFileSync as readFileSync41, renameSync as renameSync7, writeFileSync as writeFileSync13 } from "fs";-import { join as join93 } from "path";+import { join as join94 } from "path";var INDEX_FILE_NAME = "index.json";function isTokenIndex(value) {if (typeof value !== "object" || value === null || Array.isArray(value))@@ -108279,7 +108487,7 @@ function isTokenIndex(value) {return Object.values(value).every((entry) => typeof entry === "string");}function getIndexPath(storageDir) {- return join93(storageDir, INDEX_FILE_NAME);+ return join94(storageDir, INDEX_FILE_NAME);}function readTokenIndex(storageDir) {const indexPath = getIndexPath(storageDir);@@ -108323,16 +108531,16 @@ function deleteTokenIndexEntry(storageDir, hash) {var STORAGE_DIR_NAME = "mcp-oauth";var LEGACY_STORAGE_FILE_NAME = "mcp-oauth.json";function getMcpOauthStorageDir() {- return join94(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);+ return join95(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 join94(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);+ return join95(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);}function getLegacyStoragePath() {- return join94(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);+ return join95(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);}function normalizeHost2(serverHost) {let host = serverHost.trim();@@ -108511,7 +108719,7 @@ function listTokensByHost(serverHost) {for (const [hash, indexedKey] of Object.entries(index)) {if (!indexedKey.startsWith(prefix))continue;- const indexedToken = readTokenFile(join94(getMcpOauthStorageDir(), `${hash}.json`));+ const indexedToken = readTokenFile(join95(getMcpOauthStorageDir(), `${hash}.json`));if (indexedToken)result[indexedKey] = indexedToken;}@@ -108526,7 +108734,7 @@ function listAllTokens() {for (const entry of readdirSync13(dir, { withFileTypes: true })) {if (!entry.isFile() || !entry.name.endsWith(".json") || entry.name === "index.json")continue;- const token = readTokenFile(join94(dir, entry.name));+ const token = readTokenFile(join95(dir, entry.name));const hash = basename13(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 97089242..7e5c81f7 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.1.0) Resetting Git Bash MCP Reminder",+ "statusMessage": "(OmO 5.1.1) 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 8c5abf63..b2782799 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.1.0) Resetting LSP Diagnostics Cache",+ "statusMessage": "(OmO 5.1.1) 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 ab7c762e..24e54024 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.1.0) Resetting Project Rule Cache",+ "statusMessage": "(OmO 5.1.1) 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 bede33a2..63c84071 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.1.0) Checking Comments",+ "statusMessage": "(OmO 5.1.1) 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 917b6fc9..f0974802 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.1.0) Checking LSP Diagnostics",+ "statusMessage": "(OmO 5.1.1) 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 360e0dba..fcf70d06 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.1.0) Checking Thread Title Hygiene",+ "statusMessage": "(OmO 5.1.1) 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 7160983b..06012d09 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.1.0) Matching Project Rules",+ "statusMessage": "(OmO 5.1.1) 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 476aa473..601f1c81 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.1.0) Recording Spawn Admission",+ "statusMessage": "(OmO 5.1.1) 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 70912e7d..45ef0665 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.1.0) Enforcing Unlimited Goal Budget",+ "statusMessage": "(OmO 5.1.1) 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 bc1f273e..ae59edbd 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.1.0) Guarding Ulw-Loop Spawns",+ "statusMessage": "(OmO 5.1.1) 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 c1d908cb..a5e67ad3 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.1.0) Recommending Git Bash MCP",+ "statusMessage": "(OmO 5.1.1) 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 918b7f0b..ec05ec1b 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.1.0) Checking Auto Update",+ "statusMessage": "(OmO 5.1.1) 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 cf3790a2..04fd206e 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.1.0) Checking Bootstrap Provisioning"+ "statusMessage": "(OmO 5.1.1) 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 4d3a0383..7d0e7a93 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.1.0) Loading Project Rules",+ "statusMessage": "(OmO 5.1.1) 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 4b55502d..e28ab7b2 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.1.0) Recording Session Telemetry",+ "statusMessage": "(OmO 5.1.1) 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 286792c4..08226631 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.1.0) Checking Ulw-Execute Continuation",+ "statusMessage": "(OmO 5.1.1) 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 5adeaac0..131ba1f9 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.1.0) Checking Ulw-Loop Resume",+ "statusMessage": "(OmO 5.1.1) 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 cc978755..ae274e4d 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.1.0) Verifying LazyCodex Executor Evidence",+ "statusMessage": "(OmO 5.1.1) 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 6fcc04c1..928e0bff 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.1.0) Checking Ultrawork Trigger",+ "statusMessage": "(OmO 5.1.1) 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 dee32564..2b49213c 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.1.0) Checking Ulw-Loop Steering",+ "statusMessage": "(OmO 5.1.1) 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 aeb7c0b5..c72794f8 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.1.0) Loading Project Rules",+ "statusMessage": "(OmO 5.1.1) 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 2b021e10..cdd40b20 100644--- a/plugins/omo/package-lock.json+++ b/plugins/omo/package-lock.json@@ -1,12 +1,12 @@{"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.1.0",+ "version": "5.1.1","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.1.0",+ "version": "5.1.1","workspaces": ["components/comment-checker","components/git-bash",@@ -95,7 +95,7 @@},"components/comment-checker": {"name": "@code-yeongyu/codex-comment-checker",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","bin": {"omo-comment-checker": "dist/cli.js"@@ -117,7 +117,7 @@},"components/git-bash": {"name": "@sisyphuslabs/codex-git-bash-hook",- "version": "5.1.0",+ "version": "5.1.1","bin": {"omo-git-bash-hook": "dist/cli.js"},@@ -131,7 +131,7 @@},"components/lazycodex-executor-verify": {"name": "@code-yeongyu/codex-lazycodex-executor-verify",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","bin": {"lazycodex-executor-verify": "dist/cli.js"@@ -149,7 +149,7 @@},"components/lsp": {"name": "@code-yeongyu/codex-lsp",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","dependencies": {"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon",@@ -171,7 +171,7 @@},"components/rules": {"name": "@code-yeongyu/codex-rules",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","dependencies": {"picomatch": "^4.0.7"@@ -194,7 +194,7 @@},"components/teammode": {"name": "@sisyphuslabs/codex-teammode",- "version": "5.1.0",+ "version": "5.1.1","devDependencies": {"@types/node": "^26.6.2","@vitest/coverage-v8": "5.0.1",@@ -208,7 +208,7 @@},"components/telemetry": {"name": "@code-yeongyu/codex-telemetry",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","bin": {"omo-telemetry": "dist/cli.js"@@ -227,7 +227,7 @@},"components/ultrawork": {"name": "@code-yeongyu/codex-ultrawork",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","bin": {"omo-ultrawork": "dist/cli.js"@@ -246,7 +246,7 @@},"components/ulw-execute-continuation": {"name": "@code-yeongyu/codex-ulw-execute-continuation",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","bin": {"omo-ulw-execute-continuation": "dist/cli.js"@@ -264,7 +264,7 @@},"components/ulw-loop": {"name": "@code-yeongyu/codex-ulw-loop",- "version": "5.1.0",+ "version": "5.1.1","license": "MIT","bin": {"omo-ulw-loop": "dist/cli.js",diff --git a/plugins/omo/package.json b/plugins/omo/package.jsonindex e5db9479..998410c2 100644--- a/plugins/omo/package.json+++ b/plugins/omo/package.json@@ -1,6 +1,6 @@{"name": "@sisyphuslabs/omo-codex-plugin",- "version": "5.1.0",+ "version": "5.1.1","description": "Aggregate Codex plugin root for OMO components.","type": "module","packageManager": "[email protected]",diff --git a/plugins/omo/skills/browser/runtime/omowright/manifest.json b/plugins/omo/skills/browser/runtime/omowright/manifest.jsonindex d139c5d5..f5fb46c5 100644--- a/plugins/omo/skills/browser/runtime/omowright/manifest.json+++ b/plugins/omo/skills/browser/runtime/omowright/manifest.json@@ -5,5 +5,5 @@"index.js": "b6b064fab277031c6c51f5a58b84b31040f9960bf767bf646adc0540c1d25c1b","page-bundle.js": "bfd51e8383cf47200d57387bbbed258bce5a3a3d00c38fc108034d2888e23f0c"},- "stagedAtUtc": "2026-09-28T19:20:10.720Z"+ "stagedAtUtc": "2026-09-29T06:13:46.749Z"}