Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

chore: sync Codex marketplace v4.19.4

github-actions[bot]fb48ddc4bc8b
diff --git a/plugins/omo/.codex-plugin/plugin.json b/plugins/omo/.codex-plugin/plugin.json
index 67d38841..dbfc7f36 100644
--- a/plugins/omo/.codex-plugin/plugin.json
+++ b/plugins/omo/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "omo",
- "version": "4.19.3",
+ "version": "4.19.4",
"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.js
index 43fc26a0..8a814517 100755
--- a/plugins/omo/components/bootstrap/dist/cli.js
+++ b/plugins/omo/components/bootstrap/dist/cli.js
@@ -1420,7 +1420,7 @@ var MANAGED_REASONING_DEFAULT_UPGRADES = new Map([
"explorer",
[
{
- previous: { model: "gpt-5.4-mini", effort: "low" },
+ previous: { model: "gpt-5.6-luna-fast", effort: "low" },
current: { model: "gpt-5.6-terra", effort: "medium" }
},
{
@@ -1433,7 +1433,7 @@ var MANAGED_REASONING_DEFAULT_UPGRADES = new Map([
"librarian",
[
{
- previous: { model: "gpt-5.4-mini", effort: "low" },
+ previous: { model: "gpt-5.6-luna-fast", effort: "low" },
current: { model: "gpt-5.6-terra", effort: "medium" }
},
{
@@ -2826,6 +2826,24 @@ function stripUnquotedInlineComment3(line) {
// ../src/install/codex-config-reasoning.ts
var MANAGED_KEYS = ["model", "model_context_window", "model_reasoning_effort", "plan_mode_reasoning_effort"];
+var CODEX_REASONING_BY_UNIFIED_LEVEL = {
+ off: "none",
+ none: "none",
+ minimal: "minimal",
+ low: "low",
+ medium: "medium",
+ high: "high",
+ xhigh: "xhigh",
+ max: "max"
+};
+function applyReasoningOverride(catalog, reasoning) {
+ if (reasoning === undefined)
+ return catalog;
+ const wireEffort = CODEX_REASONING_BY_UNIFIED_LEVEL[reasoning.trim().toLowerCase()];
+ if (wireEffort === undefined)
+ return catalog;
+ return { ...catalog, current: { ...catalog.current, modelReasoningEffort: wireEffort } };
+}
function ensureCodexReasoningConfig(config, catalog) {
const current = readRootReasoningSettings(config);
if (Object.keys(current).length > 0 && !matchesProfile(current, catalog.current) && !catalog.managedProfiles.some((profile) => matchesProfile(current, profile))) {
@@ -3166,7 +3184,7 @@ async function updateCodexConfig(input) {
config = ensureFeatureEnabled(config, "plugin_hooks");
config = ensureFeatureEnabled(config, "multi_agent");
config = removeUnsupportedCodexMultiAgentModeConfig(config);
- config = ensureCodexReasoningConfig(config, await readCodexModelCatalog(input.repoRoot));
+ config = ensureCodexReasoningConfig(config, applyReasoningOverride(await readCodexModelCatalog(input.repoRoot), input.reasoning));
config = ensureCodexMultiAgentV2Config(config, {
multiAgentVersion: resolveCodexMultiAgentVersion(config, input.configPath)
});
diff --git a/plugins/omo/components/bootstrap/hooks/hooks.json b/plugins/omo/components/bootstrap/hooks/hooks.json
index 432341a6..0eef2def 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 4.19.3) Checking Bootstrap Provisioning"
+ "statusMessage": "(OmO 4.19.4) Checking Bootstrap Provisioning"
}
]
}
diff --git a/plugins/omo/components/bootstrap/package.json b/plugins/omo/components/bootstrap/package.json
index 2f1532d6..3e7ae732 100644
--- a/plugins/omo/components/bootstrap/package.json
+++ b/plugins/omo/components/bootstrap/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/codex-bootstrap",
- "version": "4.19.3",
+ "version": "4.19.4",
"description": "Codex SessionStart bootstrap component that provisions LazyCodex runtime dependencies from a detached worker.",
"type": "module",
"private": true,
diff --git a/plugins/omo/components/codegraph/dist/cli.js b/plugins/omo/components/codegraph/dist/cli.js
index 75378d67..8b56320a 100755
--- a/plugins/omo/components/codegraph/dist/cli.js
+++ b/plugins/omo/components/codegraph/dist/cli.js
@@ -3211,6 +3211,9 @@ function handlePipeResult(left, next, ctx) {
}
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
}
+var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
+ $ZodPipe.init(inst, def);
+});
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
$ZodType.init(inst, def);
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5297,6 +5300,10 @@ function pipe(in_, out) {
out
});
}
+var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
+ ZodPipe.init(inst, def);
+ $ZodPreprocess.init(inst, def);
+});
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
$ZodReadonly.init(inst, def);
ZodType.init(inst, def);
@@ -5320,22 +5327,142 @@ function refine(fn, _params = {}) {
function superRefine(fn, params) {
return _superRefine(fn, params);
}
+function preprocess(fn, schema) {
+ return new ZodPreprocess({
+ type: "pipe",
+ in: transform(fn),
+ out: schema
+ });
+}
+
+// ../../omo-config-core/src/schema/reasoning-vocabulary.ts
+var REASONING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
+var REASONING_AUTO = "auto";
+var REASONING_LEVEL_SET = new Set(REASONING_LEVELS);
+var REASONING_LEVEL_OR_AUTO_SET = new Set([...REASONING_LEVELS, REASONING_AUTO]);
+function isReasoningLevel(value) {
+ return REASONING_LEVEL_SET.has(value);
+}
+function normalizeReasoning(input) {
+ const normalized = input.trim().toLowerCase();
+ if (!normalized)
+ return {};
+ if (normalized === "none")
+ return { level: "off" };
+ if (normalized === REASONING_AUTO)
+ return { level: REASONING_AUTO };
+ if (isReasoningLevel(normalized))
+ return { level: normalized };
+ return { passthrough: normalized };
+}
+function splitReasoningSuffix(model, options) {
+ if (typeof model !== "string")
+ return { base: "" };
+ const trimmed = model.trim();
+ if (!trimmed)
+ return { base: "" };
+ const separatorIndex = trimmed.lastIndexOf(":");
+ if (separatorIndex === -1)
+ return { base: trimmed };
+ const base = trimmed.slice(0, separatorIndex).trim();
+ const token = trimmed.slice(separatorIndex + 1).trim().toLowerCase();
+ if (!base || !REASONING_LEVEL_OR_AUTO_SET.has(token))
+ return { base: trimmed };
+ if (token === "max" && !(options?.allowMaxSuffix ?? base.includes("/")))
+ return { base: trimmed };
+ return { base, level: token };
+}
+
+// ../../omo-config-core/src/schema/model-ref.ts
+var REASONING_LEVELS_OR_AUTO = [...REASONING_LEVELS, "auto"];
+var OmoReasoningSchema = union([
+ _enum(REASONING_LEVELS_OR_AUTO),
+ string2()
+]);
+var OmoModelRefObjectSchema = object({
+ model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
+ temperature: number2().min(0).max(2).optional(),
+ top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional()
+}).strict();
+var OmoModelRefSchema = union([string2(), OmoModelRefObjectSchema]);
// ../../omo-config-core/src/schema/fallback-models.ts
var OmoThinkingConfigSchema = object({
type: _enum(["enabled", "disabled"]),
budgetTokens: number2().optional()
}).strict();
-var OmoReasoningEffortSchema = _enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
-var OmoFallbackModelObjectSchema = object({
+var OmoReasoningEffortSchema = OmoReasoningSchema;
+function isRecord(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+function canonicalReasoning(value) {
+ if (typeof value !== "string")
+ return;
+ const normalized = normalizeReasoning(value);
+ return normalized.level ?? normalized.passthrough;
+}
+function canonicalModelString(model) {
+ const colon = splitReasoningSuffix(model, { allowMaxSuffix: true });
+ if (colon.level !== undefined)
+ return `${colon.base}:${colon.level}`;
+ const trimmed = model.trim();
+ const parenthesized = trimmed.match(/^(.*)\(([^()]+)\)\s*$/);
+ const spaced = parenthesized === null ? trimmed.match(/^(.*\S)\s+([a-z][a-z0-9_-]*)$/i) : null;
+ const base = (parenthesized?.[1] ?? spaced?.[1])?.trim();
+ const token = (parenthesized?.[2] ?? spaced?.[2])?.trim();
+ if (base === undefined || token === undefined)
+ return trimmed;
+ const normalized = normalizeReasoning(token);
+ return normalized.level === undefined ? trimmed : `${base}:${normalized.level}`;
+}
+function normalizeLegacyModelFields(entry) {
+ const normalized = { ...entry };
+ delete normalized["variant"];
+ delete normalized["reasoningEffort"];
+ delete normalized["thinking"];
+ delete normalized["textVerbosity"];
+ delete normalized["maxTokens"];
+ delete normalized["providerOptions"];
+ if (typeof entry["model"] === "string")
+ normalized["model"] = canonicalModelString(entry["model"]);
+ const explicitReasoning = canonicalReasoning(entry["reasoning"]);
+ const variant = canonicalReasoning(entry["variant"]);
+ const reasoningEffort = canonicalReasoning(entry["reasoningEffort"]);
+ const thinking = isRecord(entry["thinking"]) ? entry["thinking"] : undefined;
+ const reasoning = explicitReasoning ?? reasoningEffort ?? variant ?? (thinking?.["type"] === "disabled" ? "off" : undefined);
+ if (reasoning !== undefined)
+ normalized["reasoning"] = reasoning;
+ const providerOptions = isRecord(entry["provider_options"]) ? { ...entry["provider_options"] } : isRecord(entry["providerOptions"]) ? { ...entry["providerOptions"] } : {};
+ if (thinking?.["type"] === "enabled")
+ providerOptions["thinking"] = { ...thinking };
+ if (entry["textVerbosity"] !== undefined)
+ providerOptions["textVerbosity"] = entry["textVerbosity"];
+ if (Object.keys(providerOptions).length > 0)
+ normalized["provider_options"] = providerOptions;
+ if (entry["max_tokens"] !== undefined)
+ normalized["max_tokens"] = entry["max_tokens"];
+ else if (entry["maxTokens"] !== undefined)
+ normalized["max_tokens"] = entry["maxTokens"];
+ return normalized;
+}
+var OmoLegacyFallbackModelObjectInputSchema = object({
model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ variant: string2().optional(),
+ reasoningEffort: OmoReasoningEffortSchema.optional(),
+ thinking: OmoThinkingConfigSchema.optional(),
+ textVerbosity: _enum(["low", "medium", "high"]).optional(),
maxTokens: number2().optional(),
- thinking: OmoThinkingConfigSchema.optional()
+ providerOptions: record(string2(), unknown()).optional()
}).strict();
+var OmoFallbackModelObjectSchema = preprocess((value) => isRecord(value) ? normalizeLegacyModelFields(value) : value, OmoLegacyFallbackModelObjectInputSchema);
var OmoFallbackModelsSchema = union([
string2(),
array(string2()),
@@ -5344,19 +5471,16 @@ var OmoFallbackModelsSchema = union([
]);
// ../../omo-config-core/src/schema/agent.ts
-var OmoAgentModelEntrySchema = union([
- string2(),
- object({
- model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional()
- }).strict()
-]);
-var OmoAgentDefSchema = object({
+function isRecord2(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoAgentModelEntrySchema = union([string2(), OmoFallbackModelObjectSchema]);
+var OmoAgentDefInputSchema = object({
description: string2().optional(),
prompt: string2().optional(),
model: string2().optional(),
models: array(OmoAgentModelEntrySchema).optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
tools: record(string2(), boolean2()).optional(),
@@ -5369,16 +5493,24 @@ var OmoAgentDefSchema = object({
temperature: number2().min(0).max(2).optional(),
disable: boolean2().optional()
}).strict();
+var OmoAgentDefSchema = preprocess((value) => isRecord2(value) ? normalizeLegacyModelFields(value) : value, OmoAgentDefInputSchema);
var OmoAgentsConfigSchema = record(string2(), OmoAgentDefSchema);
// ../../omo-config-core/src/schema/category.ts
-var OmoCategoryConfigSchema = object({
+function isRecord3(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoCategoryConfigObjectSchema = object({
description: string2().optional(),
model: string2().optional(),
- fallback_models: OmoFallbackModelsSchema.optional(),
- variant: string2().optional(),
+ models: array(union([string2(), OmoFallbackModelObjectSchema])).optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ fallback_models: OmoFallbackModelsSchema.optional(),
+ variant: string2().optional(),
maxTokens: number2().optional(),
thinking: OmoThinkingConfigSchema.optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
@@ -5387,8 +5519,10 @@ var OmoCategoryConfigSchema = object({
prompt_append: string2().optional(),
max_prompt_tokens: number2().int().positive().optional(),
is_unstable_agent: boolean2().optional(),
- disable: boolean2().optional()
+ disable: boolean2().optional(),
+ warn_unavailable: boolean2().optional()
}).strict();
+var OmoCategoryConfigSchema = preprocess((value) => isRecord3(value) ? normalizeLegacyModelFields(value) : value, OmoCategoryConfigObjectSchema);
var OmoCategoriesConfigSchema = record(string2(), OmoCategoryConfigSchema);
// ../../omo-config-core/src/schema/harness.ts
@@ -5416,13 +5550,19 @@ var OmoCodegraphSettingsSchema = OmoCodegraphSettingsLayerSchema.extend({
}).strict();
// ../../omo-config-core/src/schema/model-catalog.ts
-var OmoModelCatalogEntrySchema = object({
+function isRecord4(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoModelCatalogEntryInputSchema = object({
model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional()
}).strict();
+var OmoModelCatalogEntrySchema = preprocess((value) => isRecord4(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
var OmoModelCatalogSchema = record(string2(), OmoModelCatalogEntrySchema);
-var OmoModelCatalogEntryLayerSchema = OmoModelCatalogEntrySchema.partial();
+var OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
+var OmoModelCatalogEntryLayerSchema = preprocess((value) => isRecord4(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
var OmoModelCatalogLayerSchema = record(string2(), OmoModelCatalogEntryLayerSchema);
// ../../omo-config-core/src/schema/task.ts
@@ -5436,6 +5576,9 @@ var OmoTaskTeamSettingsSchema = object({
max_parallel_members: number2().int().min(1).max(8).default(4),
max_wall_clock_minutes: number2().int().positive().default(120)
}).strict();
+var OmoTaskWarningsSchema = object({
+ unavailable_categories: boolean2().default(true)
+}).strict();
var OmoTaskSettingsSchema = object({
default_execution_mode: _enum(["in-process", "process"]).default("in-process"),
default_concurrency: number2().int().positive().default(5),
@@ -5446,6 +5589,7 @@ var OmoTaskSettingsSchema = object({
ttl_ms: number2().int().positive().default(86400000),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
team: OmoTaskTeamSettingsSchema.default({
max_members: 8,
@@ -5463,6 +5607,9 @@ var OmoTaskTeamSettingsLayerSchema = object({
max_parallel_members: number2().int().min(1).max(8).optional(),
max_wall_clock_minutes: number2().int().positive().optional()
}).strict();
+var OmoTaskWarningsLayerSchema = object({
+ unavailable_categories: boolean2().optional()
+}).strict();
var OmoTaskSettingsLayerSchema = object({
default_execution_mode: _enum(["in-process", "process"]).optional(),
default_concurrency: number2().int().positive().optional(),
@@ -5473,6 +5620,7 @@ var OmoTaskSettingsLayerSchema = object({
ttl_ms: number2().int().positive().optional(),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsLayerSchema.optional(),
wait: OmoTaskWaitLayerSchema.optional(),
team: OmoTaskTeamSettingsLayerSchema.optional()
}).strict();
@@ -6973,7 +7121,8 @@ function mergeOmoConfigRecords(base, override, parentKey) {
}
// ../../omo-config-core/src/loader/paths.ts
-import { dirname as dirname2, isAbsolute as isAbsolute2, join as join6, posix, relative, resolve as resolve4 } from "node:path";
+import { userInfo } from "node:os";
+import { dirname as dirname2, join as join6, posix, resolve as resolve4 } from "node:path";
// ../../omo-config-core/src/internal/posix-path.ts
function toPosixPath(path) {
@@ -6991,10 +7140,7 @@ var DEFAULT_READ_FILE_SYSTEM = {
// ../../omo-config-core/src/loader/paths.ts
var MAX_PROJECT_CONFIG_DIRECTORY_DEPTH = 256;
-function containsPath(parent, child) {
- const pathToChild = relative(parent, child);
- return pathToChild === "" || !pathToChild.startsWith("..") && !isAbsolute2(pathToChild);
-}
+var ACCOUNT_HOME_DIR = userInfo().homedir;
function resolveHomeDir(env = process.env) {
const homeDir = env.HOME ?? env.USERPROFILE ?? process.cwd();
return homeDir.startsWith("/") ? posix.resolve(homeDir) : toPosixPath(resolve4(homeDir));
@@ -7046,15 +7192,14 @@ function realpathOrSelf(path, fileSystem) {
return path;
}
}
-function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem) {
+function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem, accountHomeDir = homeDir) {
const startDir = resolve4(cwd);
- const resolvedHomeDir = resolve4(homeDir);
- const realHomeDir = realpathOrSelf(resolvedHomeDir, fileSystem);
- const stopDir = containsPath(realHomeDir, realpathOrSelf(startDir, fileSystem)) ? realHomeDir : null;
+ const boundaryDirs = [...new Set([resolve4(homeDir), resolve4(accountHomeDir)])];
+ const realBoundaryDirs = new Set(boundaryDirs.map((path) => realpathOrSelf(path, fileSystem)));
const nearestFirst = [];
let currentDir = startDir;
for (let depth = 0;depth < MAX_PROJECT_CONFIG_DIRECTORY_DEPTH; depth += 1) {
- const isHomeDir = currentDir === resolvedHomeDir || stopDir !== null && realpathOrSelf(currentDir, fileSystem) === stopDir;
+ const isHomeDir = boundaryDirs.includes(currentDir) || realBoundaryDirs.has(realpathOrSelf(currentDir, fileSystem));
const configPath = isHomeDir ? null : detectOmoJsonPath(currentDir, fileSystem);
if (configPath !== null)
nearestFirst.push(configPath);
@@ -7071,7 +7216,7 @@ function resolveOmoConfigPaths(options) {
const fileSystem = options.fileSystem ?? DEFAULT_READ_FILE_SYSTEM;
const env = options.env ?? process.env;
const userPath = detectUserOmoJsonPath(env, fileSystem);
- const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem);
+ const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem, ACCOUNT_HOME_DIR);
return [
{ path: userPath, scope: "user" },
...projectPaths.map((path) => ({ path, scope: "project" }))
@@ -7706,6 +7851,23 @@ function prepareTargetWrite(input) {
const edits = [...collectMigrationEdits(merged.additions), { path: ["_migrations"], value: marker }];
return { diagnostics: merged.diagnostics, document, edits };
}
+function prepareTargetReplacement(input) {
+ const marker = markerValue(input.target, input.migrationId, input.targetPath);
+ const document = { ...input.document, _migrations: marker };
+ validateTarget(input.targetPath, document);
+ const edits = [];
+ for (const key of Object.keys(input.target)) {
+ if (key !== "_migrations" && !Object.prototype.hasOwnProperty.call(input.document, key)) {
+ edits.push({ path: [key], value: undefined });
+ }
+ }
+ for (const [key, value] of Object.entries(input.document)) {
+ if (key !== "_migrations")
+ edits.push({ path: [key], value });
+ }
+ edits.push({ path: ["_migrations"], value: marker });
+ return { diagnostics: [], document, edits };
+}
function writePreparedTarget(input) {
input.writeTarget({
edits: input.prepared.edits,
@@ -7738,9 +7900,17 @@ function parseJournal(value) {
if (!isPlainObject3(value["targetWrite"]) || !isPlainObject3(value["targetWrite"]["additions"])) {
throw new Error("Migration journal target write is invalid");
}
+ const targetWriteMode = value["targetWrite"]["mode"];
+ if (targetWriteMode !== undefined && targetWriteMode !== "replace-target") {
+ throw new Error("Migration journal target write mode is invalid");
+ }
if (typeof value["targetWritten"] !== "boolean" || !Array.isArray(value["completedMoves"])) {
throw new Error("Migration journal completion state is invalid");
}
+ const diagnostics = value["diagnostics"];
+ if (diagnostics !== undefined && (!Array.isArray(diagnostics) || !diagnostics.every((entry) => typeof entry === "string"))) {
+ throw new Error("Migration journal diagnostics are invalid");
+ }
if (!value["completedMoves"].every((path) => typeof path === "string")) {
throw new Error("Migration journal completed moves are invalid");
}
@@ -7756,9 +7926,13 @@ function parseJournal(value) {
return {
backupMoves,
completedMoves: [...value["completedMoves"]],
+ diagnostics: diagnostics === undefined ? [] : [...diagnostics],
migrationId: value["migrationId"],
targetPath: value["targetPath"],
- targetWrite: { additions: { ...value["targetWrite"]["additions"] } },
+ targetWrite: {
+ additions: { ...value["targetWrite"]["additions"] },
+ ...targetWriteMode === undefined ? {} : { mode: targetWriteMode }
+ },
targetWritten: value["targetWritten"],
version: 1
};
@@ -7949,7 +8123,12 @@ function resumeMigrationJournal(input) {
input.renewLock();
const target = targetDocument(journal.targetPath, input.fileSystem);
if (!hasMigrationMarker(target, journal.migrationId)) {
- const prepared = prepareTargetWrite({
+ const prepared = journal.targetWrite.mode === "replace-target" ? prepareTargetReplacement({
+ document: journal.targetWrite.additions,
+ migrationId: journal.migrationId,
+ target,
+ targetPath: journal.targetPath
+ }) : prepareTargetWrite({
additions: journal.targetWrite.additions,
migrationId: journal.migrationId,
target,
@@ -8053,11 +8232,17 @@ function executePlan(input) {
assertSafeSourcePaths(plan.sources, protectedPaths);
const existingSources = plan.sources.filter((source) => fileSystem.existsSync(source.path));
const target = targetDocument(plan.targetPath, fileSystem);
- if (!shouldRunMigration({ legacySourcesExist: existingSources.length > 0, migrationId: plan.id, target })) {
+ const replaceTarget = plan.mode === "replace-target";
+ if (!shouldRunMigration({
+ legacySourcesExist: replaceTarget ? fileSystem.existsSync(plan.targetPath) : existingSources.length > 0,
+ migrationId: plan.id,
+ target
+ })) {
return { diagnostics: [], journalResumed, status: "skipped" };
}
- const transformed = transformResult(plan.transform(loadSources(existingSources, fileSystem)));
- const prepared = prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
+ const loaded = replaceTarget ? [{ path: plan.targetPath, value: target }] : loadSources(existingSources, fileSystem);
+ const transformed = transformResult(plan.transform(loaded));
+ const prepared = replaceTarget ? prepareTargetReplacement({ document: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath }) : prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
const diagnostics = [...transformed.diagnostics, ...prepared.diagnostics];
const moves = backupMoves(existingSources, plan.id, fileSystem, protectedPaths);
const preview = { backupMoves: moves, targetPath: plan.targetPath, transform: transformed.document };
@@ -8067,9 +8252,13 @@ function executePlan(input) {
const journal = {
backupMoves: moves,
completedMoves: [],
+ diagnostics,
migrationId: plan.id,
targetPath: plan.targetPath,
- targetWrite: { additions: transformed.document },
+ targetWrite: {
+ additions: transformed.document,
+ ...replaceTarget ? { mode: "replace-target" } : {}
+ },
targetWritten: false,
version: 1
};
@@ -8133,17 +8322,17 @@ import { existsSync as existsSync5 } from "node:fs";
import { posix as posix4, win32 } from "node:path";
var MIGRATION_ID = "2026-07-codex-config-jsonc";
var OMO_SCHEMA_URL = "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/omo.schema.json";
-function isRecord(value) {
+function isRecord5(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function recordAt(value, key) {
const candidate = value[key];
- return isRecord(candidate) ? candidate : undefined;
+ return isRecord5(candidate) ? candidate : undefined;
}
function migrationHistory(sources, configPath) {
const history = [];
for (const source of sources) {
- if (!isRecord(source.value))
+ if (!isRecord5(source.value))
continue;
for (const key of ["_migrations", "appliedMigrations"]) {
const values = source.value[key];
@@ -8159,7 +8348,7 @@ function migrationHistory(sources, configPath) {
}
function transformConfigJsonc(configPath, sources) {
const config2 = sources.find((source) => source.path === configPath);
- const legacy = config2 === undefined || !isRecord(config2.value) ? {} : config2.value;
+ const legacy = config2 === undefined || !isRecord5(config2.value) ? {} : config2.value;
const omo = recordAt(legacy, "[omo]");
const senpi = recordAt(legacy, "[senpi]");
const history = migrationHistory(sources, configPath);
@@ -8407,7 +8596,7 @@ function resolveHomeDir3(env) {
return env["HOME"] ?? env["USERPROFILE"] ?? homedir6();
}
function resolveHookProjectRoot(input, fallback) {
- if (!isRecord2(input))
+ if (!isRecord6(input))
return fallback;
const cwd = input["cwd"];
return typeof cwd === "string" && cwd.trim().length > 0 ? cwd : fallback;
@@ -8422,7 +8611,7 @@ async function readHookInput(stdin) {
return;
return parseJson(text);
}
-function isRecord2(value) {
+function isRecord6(value) {
return typeof value === "object" && value !== null;
}
function parseJson(text) {
@@ -8465,7 +8654,7 @@ function parseWindowsProcessTable(output) {
const entries = Array.isArray(parsed) ? parsed : parsed === undefined ? [] : [parsed];
const processes = [];
for (const entry of entries) {
- if (!isRecord3(entry))
+ if (!isRecord7(entry))
continue;
const pid = numberField(entry, "ProcessId");
const ppid = numberField(entry, "ParentProcessId");
@@ -8499,7 +8688,7 @@ function stringField(record2, key) {
const value = record2[key];
return typeof value === "string" ? value : undefined;
}
-function isRecord3(value) {
+function isRecord7(value) {
return typeof value === "object" && value !== null;
}
@@ -8587,7 +8776,7 @@ async function runProcessFamilySweep(config2, options) {
}
try {
const plan = await config2.collect();
- const { failed, killed } = dryRun ? { failed: [], killed: [] } : await killTargets(plan.killList, options, config2.familyLabel);
+ const { failed, killed } = dryRun ? { failed: [], killed: [] } : await killTargets(plan.killList, options, config2);
if (!dryRun)
writeSweepStamp(config2.stampFile, nowMs);
return {
@@ -8604,16 +8793,18 @@ async function runProcessFamilySweep(config2, options) {
return { action: "failed", candidates: [], dryRun, failed: [], killed: [], spared: [], stampFile: config2.stampFile };
}
}
-async function killTargets(targets, options, familyLabel) {
+async function killTargets(targets, options, config2) {
const failed = [];
const killed = [];
const context = {
failed,
- familyLabel,
+ familyLabel: config2.familyLabel,
killer: options.killer ?? createDefaultProcessKiller(options.platform),
log: options.log
};
for (const target of targets) {
+ if (!await passesSignalAttestation(target, config2.attestBeforeSignal, options.log, "SIGTERM"))
+ continue;
const terminated = await safelyTerminate(target.pid, context);
if (!terminated)
continue;
@@ -8622,11 +8813,26 @@ async function killTargets(targets, options, familyLabel) {
killed.push(target);
continue;
}
+ if (!await passesSignalAttestation(target, config2.attestBeforeSignal, options.log, "SIGKILL"))
+ continue;
if (await safelyKill(target.pid, context))
killed.push(target);
}
return { failed, killed };
}
+async function passesSignalAttestation(target, attest, log, signal) {
+ if (attest === undefined)
+ return true;
+ try {
+ const attested = await attest(target);
+ if (!attested)
+ log?.(`process sweep sparing pid ${target.pid}: identity changed before ${signal}`);
+ return attested;
+ } catch (error) {
+ log?.(`process sweep sparing pid ${target.pid}: identity attestation failed before ${signal}: ${String(error)}`);
+ return false;
+ }
+}
async function safelyTerminate(pid, context) {
try {
await context.killer.terminate(pid);
@@ -10271,21 +10477,36 @@ function runProcessWithTreeTimeout(options) {
};
child.stdout.on("data", (chunk) => capture("stdout", chunk));
child.stderr.on("data", (chunk) => capture("stderr", chunk));
- const timeout = setTimeout(() => {
- timedOut = true;
- startTermination().then(() => settle(124, child.signalCode));
- }, options.timeoutMs);
- timeout.unref();
+ let removeTimeoutSignal = () => {
+ return;
+ };
+ let timeout;
const settle = async (exitCode, signal) => {
if (settled)
return;
settled = true;
clearTimeout(timeout);
+ removeTimeoutSignal();
const termination = treeTermination === undefined ? null : await treeTermination;
stderr += stderrDecoder.end();
stdout += stdoutDecoder.end();
resolvePromise({ exitCode, signal, stderr, stdout, termination, timedOut });
};
+ const triggerTimeout = () => {
+ if (settled)
+ return;
+ timedOut = true;
+ startTermination().then(() => settle(124, child.signalCode));
+ };
+ timeout = setTimeout(triggerTimeout, options.timeoutMs);
+ timeout.unref();
+ if (options.timeoutSignal?.aborted === true) {
+ triggerTimeout();
+ } else if (options.timeoutSignal !== undefined) {
+ const timeoutSignal = options.timeoutSignal;
+ timeoutSignal.addEventListener("abort", triggerTimeout, { once: true });
+ removeTimeoutSignal = () => timeoutSignal.removeEventListener("abort", triggerTimeout);
+ }
child.once("error", () => {
resolveChildClosed();
settle(1, null);
@@ -10699,12 +10920,12 @@ function textFromUnknown(value) {
if (Array.isArray(value))
return value.map(textFromUnknown).filter(Boolean).join(`
`);
- if (!isRecord4(value))
+ if (!isRecord8(value))
return "";
return Object.entries(value).map(([key, nested]) => `${key}: ${textFromUnknown(nested)}`).filter((line) => line.trim().length > 0).join(`
`);
}
-function isRecord4(value) {
+function isRecord8(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
@@ -10722,9 +10943,9 @@ async function executeCodegraphPostToolUseHook(options = {}) {
return { action: "emitted-guidance", exitCode: 0 };
}
function runCodegraphPostToolUseHook(input, options = {}) {
- const toolName = isRecord2(input) ? input["tool_name"] : undefined;
- const cwd = isRecord2(input) ? input["cwd"] : undefined;
- const toolOutput = isRecord2(input) ? input["tool_response"] ?? input["tool_output"] ?? input["response"] : input;
+ const toolName = isRecord6(input) ? input["tool_name"] : undefined;
+ const cwd = isRecord6(input) ? input["cwd"] : undefined;
+ const toolOutput = isRecord6(input) ? input["tool_response"] ?? input["tool_output"] ?? input["response"] : input;
const guidance = buildCodegraphInitGuidanceForToolResult({ cwd, toolName, toolOutput }, options);
if (guidance === null)
return "";
diff --git a/plugins/omo/components/codegraph/dist/serve.js b/plugins/omo/components/codegraph/dist/serve.js
index 9185d458..bef6fda6 100755
--- a/plugins/omo/components/codegraph/dist/serve.js
+++ b/plugins/omo/components/codegraph/dist/serve.js
@@ -3477,6 +3477,9 @@ function handlePipeResult(left, next, ctx) {
}
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
}
+var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
+ $ZodPipe.init(inst, def);
+});
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
$ZodType.init(inst, def);
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5563,6 +5566,10 @@ function pipe(in_, out) {
out
});
}
+var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
+ ZodPipe.init(inst, def);
+ $ZodPreprocess.init(inst, def);
+});
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
$ZodReadonly.init(inst, def);
ZodType.init(inst, def);
@@ -5586,22 +5593,142 @@ function refine(fn, _params = {}) {
function superRefine(fn, params) {
return _superRefine(fn, params);
}
+function preprocess(fn, schema) {
+ return new ZodPreprocess({
+ type: "pipe",
+ in: transform(fn),
+ out: schema
+ });
+}
+
+// ../../../../omo-config-core/src/schema/reasoning-vocabulary.ts
+var REASONING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
+var REASONING_AUTO = "auto";
+var REASONING_LEVEL_SET = new Set(REASONING_LEVELS);
+var REASONING_LEVEL_OR_AUTO_SET = new Set([...REASONING_LEVELS, REASONING_AUTO]);
+function isReasoningLevel(value) {
+ return REASONING_LEVEL_SET.has(value);
+}
+function normalizeReasoning(input) {
+ const normalized = input.trim().toLowerCase();
+ if (!normalized)
+ return {};
+ if (normalized === "none")
+ return { level: "off" };
+ if (normalized === REASONING_AUTO)
+ return { level: REASONING_AUTO };
+ if (isReasoningLevel(normalized))
+ return { level: normalized };
+ return { passthrough: normalized };
+}
+function splitReasoningSuffix(model, options) {
+ if (typeof model !== "string")
+ return { base: "" };
+ const trimmed = model.trim();
+ if (!trimmed)
+ return { base: "" };
+ const separatorIndex = trimmed.lastIndexOf(":");
+ if (separatorIndex === -1)
+ return { base: trimmed };
+ const base = trimmed.slice(0, separatorIndex).trim();
+ const token = trimmed.slice(separatorIndex + 1).trim().toLowerCase();
+ if (!base || !REASONING_LEVEL_OR_AUTO_SET.has(token))
+ return { base: trimmed };
+ if (token === "max" && !(options?.allowMaxSuffix ?? base.includes("/")))
+ return { base: trimmed };
+ return { base, level: token };
+}
+
+// ../../../../omo-config-core/src/schema/model-ref.ts
+var REASONING_LEVELS_OR_AUTO = [...REASONING_LEVELS, "auto"];
+var OmoReasoningSchema = union([
+ _enum(REASONING_LEVELS_OR_AUTO),
+ string2()
+]);
+var OmoModelRefObjectSchema = object({
+ model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
+ temperature: number2().min(0).max(2).optional(),
+ top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional()
+}).strict();
+var OmoModelRefSchema = union([string2(), OmoModelRefObjectSchema]);
// ../../../../omo-config-core/src/schema/fallback-models.ts
var OmoThinkingConfigSchema = object({
type: _enum(["enabled", "disabled"]),
budgetTokens: number2().optional()
}).strict();
-var OmoReasoningEffortSchema = _enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
-var OmoFallbackModelObjectSchema = object({
+var OmoReasoningEffortSchema = OmoReasoningSchema;
+function isRecord(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+function canonicalReasoning(value) {
+ if (typeof value !== "string")
+ return;
+ const normalized = normalizeReasoning(value);
+ return normalized.level ?? normalized.passthrough;
+}
+function canonicalModelString(model) {
+ const colon = splitReasoningSuffix(model, { allowMaxSuffix: true });
+ if (colon.level !== undefined)
+ return `${colon.base}:${colon.level}`;
+ const trimmed = model.trim();
+ const parenthesized = trimmed.match(/^(.*)\(([^()]+)\)\s*$/);
+ const spaced = parenthesized === null ? trimmed.match(/^(.*\S)\s+([a-z][a-z0-9_-]*)$/i) : null;
+ const base = (parenthesized?.[1] ?? spaced?.[1])?.trim();
+ const token = (parenthesized?.[2] ?? spaced?.[2])?.trim();
+ if (base === undefined || token === undefined)
+ return trimmed;
+ const normalized = normalizeReasoning(token);
+ return normalized.level === undefined ? trimmed : `${base}:${normalized.level}`;
+}
+function normalizeLegacyModelFields(entry) {
+ const normalized = { ...entry };
+ delete normalized["variant"];
+ delete normalized["reasoningEffort"];
+ delete normalized["thinking"];
+ delete normalized["textVerbosity"];
+ delete normalized["maxTokens"];
+ delete normalized["providerOptions"];
+ if (typeof entry["model"] === "string")
+ normalized["model"] = canonicalModelString(entry["model"]);
+ const explicitReasoning = canonicalReasoning(entry["reasoning"]);
+ const variant = canonicalReasoning(entry["variant"]);
+ const reasoningEffort = canonicalReasoning(entry["reasoningEffort"]);
+ const thinking = isRecord(entry["thinking"]) ? entry["thinking"] : undefined;
+ const reasoning = explicitReasoning ?? reasoningEffort ?? variant ?? (thinking?.["type"] === "disabled" ? "off" : undefined);
+ if (reasoning !== undefined)
+ normalized["reasoning"] = reasoning;
+ const providerOptions = isRecord(entry["provider_options"]) ? { ...entry["provider_options"] } : isRecord(entry["providerOptions"]) ? { ...entry["providerOptions"] } : {};
+ if (thinking?.["type"] === "enabled")
+ providerOptions["thinking"] = { ...thinking };
+ if (entry["textVerbosity"] !== undefined)
+ providerOptions["textVerbosity"] = entry["textVerbosity"];
+ if (Object.keys(providerOptions).length > 0)
+ normalized["provider_options"] = providerOptions;
+ if (entry["max_tokens"] !== undefined)
+ normalized["max_tokens"] = entry["max_tokens"];
+ else if (entry["maxTokens"] !== undefined)
+ normalized["max_tokens"] = entry["maxTokens"];
+ return normalized;
+}
+var OmoLegacyFallbackModelObjectInputSchema = object({
model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ variant: string2().optional(),
+ reasoningEffort: OmoReasoningEffortSchema.optional(),
+ thinking: OmoThinkingConfigSchema.optional(),
+ textVerbosity: _enum(["low", "medium", "high"]).optional(),
maxTokens: number2().optional(),
- thinking: OmoThinkingConfigSchema.optional()
+ providerOptions: record(string2(), unknown()).optional()
}).strict();
+var OmoFallbackModelObjectSchema = preprocess((value) => isRecord(value) ? normalizeLegacyModelFields(value) : value, OmoLegacyFallbackModelObjectInputSchema);
var OmoFallbackModelsSchema = union([
string2(),
array(string2()),
@@ -5610,19 +5737,16 @@ var OmoFallbackModelsSchema = union([
]);
// ../../../../omo-config-core/src/schema/agent.ts
-var OmoAgentModelEntrySchema = union([
- string2(),
- object({
- model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional()
- }).strict()
-]);
-var OmoAgentDefSchema = object({
+function isRecord2(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoAgentModelEntrySchema = union([string2(), OmoFallbackModelObjectSchema]);
+var OmoAgentDefInputSchema = object({
description: string2().optional(),
prompt: string2().optional(),
model: string2().optional(),
models: array(OmoAgentModelEntrySchema).optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
tools: record(string2(), boolean2()).optional(),
@@ -5635,16 +5759,24 @@ var OmoAgentDefSchema = object({
temperature: number2().min(0).max(2).optional(),
disable: boolean2().optional()
}).strict();
+var OmoAgentDefSchema = preprocess((value) => isRecord2(value) ? normalizeLegacyModelFields(value) : value, OmoAgentDefInputSchema);
var OmoAgentsConfigSchema = record(string2(), OmoAgentDefSchema);
// ../../../../omo-config-core/src/schema/category.ts
-var OmoCategoryConfigSchema = object({
+function isRecord3(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoCategoryConfigObjectSchema = object({
description: string2().optional(),
model: string2().optional(),
- fallback_models: OmoFallbackModelsSchema.optional(),
- variant: string2().optional(),
+ models: array(union([string2(), OmoFallbackModelObjectSchema])).optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ fallback_models: OmoFallbackModelsSchema.optional(),
+ variant: string2().optional(),
maxTokens: number2().optional(),
thinking: OmoThinkingConfigSchema.optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
@@ -5653,8 +5785,10 @@ var OmoCategoryConfigSchema = object({
prompt_append: string2().optional(),
max_prompt_tokens: number2().int().positive().optional(),
is_unstable_agent: boolean2().optional(),
- disable: boolean2().optional()
+ disable: boolean2().optional(),
+ warn_unavailable: boolean2().optional()
}).strict();
+var OmoCategoryConfigSchema = preprocess((value) => isRecord3(value) ? normalizeLegacyModelFields(value) : value, OmoCategoryConfigObjectSchema);
var OmoCategoriesConfigSchema = record(string2(), OmoCategoryConfigSchema);
// ../../../../omo-config-core/src/schema/harness.ts
@@ -5682,13 +5816,19 @@ var OmoCodegraphSettingsSchema = OmoCodegraphSettingsLayerSchema.extend({
}).strict();
// ../../../../omo-config-core/src/schema/model-catalog.ts
-var OmoModelCatalogEntrySchema = object({
+function isRecord4(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoModelCatalogEntryInputSchema = object({
model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional()
}).strict();
+var OmoModelCatalogEntrySchema = preprocess((value) => isRecord4(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
var OmoModelCatalogSchema = record(string2(), OmoModelCatalogEntrySchema);
-var OmoModelCatalogEntryLayerSchema = OmoModelCatalogEntrySchema.partial();
+var OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
+var OmoModelCatalogEntryLayerSchema = preprocess((value) => isRecord4(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
var OmoModelCatalogLayerSchema = record(string2(), OmoModelCatalogEntryLayerSchema);
// ../../../../omo-config-core/src/schema/task.ts
@@ -5702,6 +5842,9 @@ var OmoTaskTeamSettingsSchema = object({
max_parallel_members: number2().int().min(1).max(8).default(4),
max_wall_clock_minutes: number2().int().positive().default(120)
}).strict();
+var OmoTaskWarningsSchema = object({
+ unavailable_categories: boolean2().default(true)
+}).strict();
var OmoTaskSettingsSchema = object({
default_execution_mode: _enum(["in-process", "process"]).default("in-process"),
default_concurrency: number2().int().positive().default(5),
@@ -5712,6 +5855,7 @@ var OmoTaskSettingsSchema = object({
ttl_ms: number2().int().positive().default(86400000),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
team: OmoTaskTeamSettingsSchema.default({
max_members: 8,
@@ -5729,6 +5873,9 @@ var OmoTaskTeamSettingsLayerSchema = object({
max_parallel_members: number2().int().min(1).max(8).optional(),
max_wall_clock_minutes: number2().int().positive().optional()
}).strict();
+var OmoTaskWarningsLayerSchema = object({
+ unavailable_categories: boolean2().optional()
+}).strict();
var OmoTaskSettingsLayerSchema = object({
default_execution_mode: _enum(["in-process", "process"]).optional(),
default_concurrency: number2().int().positive().optional(),
@@ -5739,6 +5886,7 @@ var OmoTaskSettingsLayerSchema = object({
ttl_ms: number2().int().positive().optional(),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsLayerSchema.optional(),
wait: OmoTaskWaitLayerSchema.optional(),
team: OmoTaskTeamSettingsLayerSchema.optional()
}).strict();
@@ -7239,7 +7387,8 @@ function mergeOmoConfigRecords(base, override, parentKey) {
}
// ../../../../omo-config-core/src/loader/paths.ts
-import { dirname as dirname2, isAbsolute as isAbsolute2, join as join7, posix, relative, resolve as resolve3 } from "node:path";
+import { userInfo } from "node:os";
+import { dirname as dirname2, join as join7, posix, resolve as resolve3 } from "node:path";
// ../../../../omo-config-core/src/internal/posix-path.ts
function toPosixPath(path) {
@@ -7257,10 +7406,7 @@ var DEFAULT_READ_FILE_SYSTEM = {
// ../../../../omo-config-core/src/loader/paths.ts
var MAX_PROJECT_CONFIG_DIRECTORY_DEPTH = 256;
-function containsPath(parent, child) {
- const pathToChild = relative(parent, child);
- return pathToChild === "" || !pathToChild.startsWith("..") && !isAbsolute2(pathToChild);
-}
+var ACCOUNT_HOME_DIR = userInfo().homedir;
function resolveHomeDir(env = process.env) {
const homeDir = env.HOME ?? env.USERPROFILE ?? process.cwd();
return homeDir.startsWith("/") ? posix.resolve(homeDir) : toPosixPath(resolve3(homeDir));
@@ -7312,15 +7458,14 @@ function realpathOrSelf(path, fileSystem) {
return path;
}
}
-function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem) {
+function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem, accountHomeDir = homeDir) {
const startDir = resolve3(cwd);
- const resolvedHomeDir = resolve3(homeDir);
- const realHomeDir = realpathOrSelf(resolvedHomeDir, fileSystem);
- const stopDir = containsPath(realHomeDir, realpathOrSelf(startDir, fileSystem)) ? realHomeDir : null;
+ const boundaryDirs = [...new Set([resolve3(homeDir), resolve3(accountHomeDir)])];
+ const realBoundaryDirs = new Set(boundaryDirs.map((path) => realpathOrSelf(path, fileSystem)));
const nearestFirst = [];
let currentDir = startDir;
for (let depth = 0;depth < MAX_PROJECT_CONFIG_DIRECTORY_DEPTH; depth += 1) {
- const isHomeDir = currentDir === resolvedHomeDir || stopDir !== null && realpathOrSelf(currentDir, fileSystem) === stopDir;
+ const isHomeDir = boundaryDirs.includes(currentDir) || realBoundaryDirs.has(realpathOrSelf(currentDir, fileSystem));
const configPath = isHomeDir ? null : detectOmoJsonPath(currentDir, fileSystem);
if (configPath !== null)
nearestFirst.push(configPath);
@@ -7337,7 +7482,7 @@ function resolveOmoConfigPaths(options) {
const fileSystem = options.fileSystem ?? DEFAULT_READ_FILE_SYSTEM;
const env = options.env ?? process.env;
const userPath = detectUserOmoJsonPath(env, fileSystem);
- const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem);
+ const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem, ACCOUNT_HOME_DIR);
return [
{ path: userPath, scope: "user" },
...projectPaths.map((path) => ({ path, scope: "project" }))
@@ -7972,6 +8117,23 @@ function prepareTargetWrite(input) {
const edits = [...collectMigrationEdits(merged.additions), { path: ["_migrations"], value: marker }];
return { diagnostics: merged.diagnostics, document, edits };
}
+function prepareTargetReplacement(input) {
+ const marker = markerValue(input.target, input.migrationId, input.targetPath);
+ const document = { ...input.document, _migrations: marker };
+ validateTarget(input.targetPath, document);
+ const edits = [];
+ for (const key of Object.keys(input.target)) {
+ if (key !== "_migrations" && !Object.prototype.hasOwnProperty.call(input.document, key)) {
+ edits.push({ path: [key], value: undefined });
+ }
+ }
+ for (const [key, value] of Object.entries(input.document)) {
+ if (key !== "_migrations")
+ edits.push({ path: [key], value });
+ }
+ edits.push({ path: ["_migrations"], value: marker });
+ return { diagnostics: [], document, edits };
+}
function writePreparedTarget(input) {
input.writeTarget({
edits: input.prepared.edits,
@@ -8004,9 +8166,17 @@ function parseJournal(value) {
if (!isPlainObject3(value["targetWrite"]) || !isPlainObject3(value["targetWrite"]["additions"])) {
throw new Error("Migration journal target write is invalid");
}
+ const targetWriteMode = value["targetWrite"]["mode"];
+ if (targetWriteMode !== undefined && targetWriteMode !== "replace-target") {
+ throw new Error("Migration journal target write mode is invalid");
+ }
if (typeof value["targetWritten"] !== "boolean" || !Array.isArray(value["completedMoves"])) {
throw new Error("Migration journal completion state is invalid");
}
+ const diagnostics = value["diagnostics"];
+ if (diagnostics !== undefined && (!Array.isArray(diagnostics) || !diagnostics.every((entry) => typeof entry === "string"))) {
+ throw new Error("Migration journal diagnostics are invalid");
+ }
if (!value["completedMoves"].every((path) => typeof path === "string")) {
throw new Error("Migration journal completed moves are invalid");
}
@@ -8022,9 +8192,13 @@ function parseJournal(value) {
return {
backupMoves,
completedMoves: [...value["completedMoves"]],
+ diagnostics: diagnostics === undefined ? [] : [...diagnostics],
migrationId: value["migrationId"],
targetPath: value["targetPath"],
- targetWrite: { additions: { ...value["targetWrite"]["additions"] } },
+ targetWrite: {
+ additions: { ...value["targetWrite"]["additions"] },
+ ...targetWriteMode === undefined ? {} : { mode: targetWriteMode }
+ },
targetWritten: value["targetWritten"],
version: 1
};
@@ -8215,7 +8389,12 @@ function resumeMigrationJournal(input) {
input.renewLock();
const target = targetDocument(journal.targetPath, input.fileSystem);
if (!hasMigrationMarker(target, journal.migrationId)) {
- const prepared = prepareTargetWrite({
+ const prepared = journal.targetWrite.mode === "replace-target" ? prepareTargetReplacement({
+ document: journal.targetWrite.additions,
+ migrationId: journal.migrationId,
+ target,
+ targetPath: journal.targetPath
+ }) : prepareTargetWrite({
additions: journal.targetWrite.additions,
migrationId: journal.migrationId,
target,
@@ -8319,11 +8498,17 @@ function executePlan(input) {
assertSafeSourcePaths(plan.sources, protectedPaths);
const existingSources = plan.sources.filter((source) => fileSystem.existsSync(source.path));
const target = targetDocument(plan.targetPath, fileSystem);
- if (!shouldRunMigration({ legacySourcesExist: existingSources.length > 0, migrationId: plan.id, target })) {
+ const replaceTarget = plan.mode === "replace-target";
+ if (!shouldRunMigration({
+ legacySourcesExist: replaceTarget ? fileSystem.existsSync(plan.targetPath) : existingSources.length > 0,
+ migrationId: plan.id,
+ target
+ })) {
return { diagnostics: [], journalResumed, status: "skipped" };
}
- const transformed = transformResult(plan.transform(loadSources(existingSources, fileSystem)));
- const prepared = prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
+ const loaded = replaceTarget ? [{ path: plan.targetPath, value: target }] : loadSources(existingSources, fileSystem);
+ const transformed = transformResult(plan.transform(loaded));
+ const prepared = replaceTarget ? prepareTargetReplacement({ document: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath }) : prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
const diagnostics = [...transformed.diagnostics, ...prepared.diagnostics];
const moves = backupMoves(existingSources, plan.id, fileSystem, protectedPaths);
const preview = { backupMoves: moves, targetPath: plan.targetPath, transform: transformed.document };
@@ -8333,9 +8518,13 @@ function executePlan(input) {
const journal = {
backupMoves: moves,
completedMoves: [],
+ diagnostics,
migrationId: plan.id,
targetPath: plan.targetPath,
- targetWrite: { additions: transformed.document },
+ targetWrite: {
+ additions: transformed.document,
+ ...replaceTarget ? { mode: "replace-target" } : {}
+ },
targetWritten: false,
version: 1
};
@@ -8399,17 +8588,17 @@ import { existsSync as existsSync6 } from "node:fs";
import { posix as posix4, win32 } from "node:path";
var MIGRATION_ID = "2026-07-codex-config-jsonc";
var OMO_SCHEMA_URL = "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/omo.schema.json";
-function isRecord(value) {
+function isRecord5(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function recordAt(value, key) {
const candidate = value[key];
- return isRecord(candidate) ? candidate : undefined;
+ return isRecord5(candidate) ? candidate : undefined;
}
function migrationHistory(sources, configPath) {
const history = [];
for (const source of sources) {
- if (!isRecord(source.value))
+ if (!isRecord5(source.value))
continue;
for (const key of ["_migrations", "appliedMigrations"]) {
const values = source.value[key];
@@ -8425,7 +8614,7 @@ function migrationHistory(sources, configPath) {
}
function transformConfigJsonc(configPath, sources) {
const config2 = sources.find((source) => source.path === configPath);
- const legacy = config2 === undefined || !isRecord(config2.value) ? {} : config2.value;
+ const legacy = config2 === undefined || !isRecord5(config2.value) ? {} : config2.value;
const omo = recordAt(legacy, "[omo]");
const senpi = recordAt(legacy, "[senpi]");
const history = migrationHistory(sources, configPath);
diff --git a/plugins/omo/components/codegraph/package.json b/plugins/omo/components/codegraph/package.json
index 055ffc5b..b04f0662 100644
--- a/plugins/omo/components/codegraph/package.json
+++ b/plugins/omo/components/codegraph/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/codex-codegraph",
- "version": "4.19.3",
+ "version": "4.19.4",
"description": "Codex plugin MCP wrapper for CodeGraph.",
"type": "module",
"private": true,
diff --git a/plugins/omo/components/codegraph/test/hook.test.ts b/plugins/omo/components/codegraph/test/hook.test.ts
index 77e457da..51cec6db 100644
--- a/plugins/omo/components/codegraph/test/hook.test.ts
+++ b/plugins/omo/components/codegraph/test/hook.test.ts
@@ -115,6 +115,7 @@ describe("CodeGraph SessionStart hook", () => {
env: {},
stdin: Readable.from(["{}"]),
stdout: { write: (chunk) => stdout.push(chunk) },
+ sweepZombies: () => undefined,
spawnWorker: (invocation) => spawned.push(invocation),
});
@@ -143,6 +144,7 @@ describe("CodeGraph SessionStart hook", () => {
env: { HOME: homeDir },
stdin: Readable.from(["{}"]),
stdout: { write: (chunk) => stdout.push(chunk) },
+ sweepZombies: () => undefined,
spawnWorker: (invocation) => spawned.push(invocation),
});
@@ -174,6 +176,7 @@ describe("CodeGraph SessionStart hook", () => {
env: { HOME: homeDir },
stdin: Readable.from(["{}"]),
stdout: { write: (chunk) => stdout.push(chunk) },
+ sweepZombies: () => undefined,
spawnWorker: (invocation) => spawned.push(invocation),
});
@@ -201,6 +204,7 @@ describe("CodeGraph SessionStart hook", () => {
env: { CODEX_CODEGRAPH_ENABLED: "0", HOME: homeDir },
stdin: Readable.from(["{}"]),
stdout: { write: (chunk) => stdout.push(chunk) },
+ sweepZombies: () => undefined,
spawnWorker: (invocation) => spawned.push(invocation),
});
@@ -278,6 +282,7 @@ describe("CodeGraph SessionStart hook", () => {
env: { HOME: homeDir, KEEP: "1" },
stdin: Readable.from(["{}"]),
stdout: { write: (chunk) => stdout.push(chunk) },
+ sweepZombies: () => undefined,
spawnWorker: (invocation) => spawned.push(invocation),
});
@@ -302,6 +307,7 @@ describe("CodeGraph SessionStart hook", () => {
env: {},
stdin: Readable.from(["{not-json"]),
stdout: { write: (chunk) => stdout.push(chunk) },
+ sweepZombies: () => undefined,
spawnWorker: (invocation) => spawned.push(invocation),
});
diff --git a/plugins/omo/components/comment-checker/hooks/hooks.json b/plugins/omo/components/comment-checker/hooks/hooks.json
index 396c7161..7529060e 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 4.19.3) Checking Comments"
+ "statusMessage": "(OmO 4.19.4) Checking Comments"
}
]
}
diff --git a/plugins/omo/components/comment-checker/package.json b/plugins/omo/components/comment-checker/package.json
index 9d4a89ba..d3369dc5 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": "4.19.3",
+ "version": "4.19.4",
"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.json
index 66a215cd..d403c1a8 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 4.19.3) Recommending Git Bash MCP"
+ "statusMessage": "(OmO 4.19.4) Recommending Git Bash MCP"
}
]
}
@@ -20,7 +20,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact",
"timeout": 5,
- "statusMessage": "(OmO 4.19.3) Resetting Git Bash MCP Reminder"
+ "statusMessage": "(OmO 4.19.4) Resetting Git Bash MCP Reminder"
}
]
}
diff --git a/plugins/omo/components/git-bash/package.json b/plugins/omo/components/git-bash/package.json
index 28ba72fb..18f8e0f7 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": "4.19.3",
+ "version": "4.19.4",
"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.json
index b50e0324..8e2796c5 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 4.19.3) Verifying LazyCodex Executor Evidence"
+ "statusMessage": "(OmO 4.19.4) Verifying LazyCodex Executor Evidence"
}
]
}
diff --git a/plugins/omo/components/lazycodex-executor-verify/package.json b/plugins/omo/components/lazycodex-executor-verify/package.json
index d74633f0..b02f2746 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": "4.19.3",
+ "version": "4.19.4",
"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.json
index 43a7a590..761ce324 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": "4.19.3",
- "inputDigest": "sha256:dfeeeb0d34b6628116df23520c551f9da58b8593111a0a08ffb3f04ed8918bff",
+ "version": "4.19.4",
+ "inputDigest": "sha256:a327f51e89b7da87ac4e114b07551b3345e45ad919c6ca2ebed067aaa954b004",
"outputs": [
{
"path": "cli.d.ts",
diff --git a/plugins/omo/components/lsp/hooks/hooks.json b/plugins/omo/components/lsp/hooks/hooks.json
index d3fa324a..77b2e9ea 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 4.19.3) Checking LSP Diagnostics"
+ "statusMessage": "(OmO 4.19.4) Checking LSP Diagnostics"
}
]
}
@@ -21,7 +21,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact",
"timeout": 5,
- "statusMessage": "(OmO 4.19.3) Resetting LSP Diagnostics Cache"
+ "statusMessage": "(OmO 4.19.4) Resetting LSP Diagnostics Cache"
}
]
}
diff --git a/plugins/omo/components/lsp/package.json b/plugins/omo/components/lsp/package.json
index 895e236b..0afb8653 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": "4.19.3",
+ "version": "4.19.4",
"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/dist/cli.js b/plugins/omo/components/rules/dist/cli.js
index 03caa768..bd9d0ff5 100755
--- a/plugins/omo/components/rules/dist/cli.js
+++ b/plugins/omo/components/rules/dist/cli.js
@@ -3883,7 +3883,7 @@ var MODEL_CONTEXT_BUDGETS = [
effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT
},
{ slug: "gpt-5.5", contextWindowTokens: 272000, effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT },
- { slug: "gpt-5.4-mini", contextWindowTokens: 272000, effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT },
+ { slug: "gpt-5.6-luna-fast", contextWindowTokens: 272000, effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT },
{
slug: "codex-auto-review",
contextWindowTokens: 272000,
diff --git a/plugins/omo/components/rules/hooks/hooks.json b/plugins/omo/components/rules/hooks/hooks.json
index 2f3e002c..0c4a6286 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 4.19.3) Loading Project Rules"
+ "statusMessage": "(OmO 4.19.4) Loading Project Rules"
}
]
}
@@ -19,7 +19,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Loading Project Rules"
+ "statusMessage": "(OmO 4.19.4) Loading Project Rules"
}
]
}
@@ -32,7 +32,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Matching Project Rules"
+ "statusMessage": "(OmO 4.19.4) Matching Project Rules"
}
]
}
@@ -45,7 +45,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Resetting Project Rule Cache"
+ "statusMessage": "(OmO 4.19.4) Resetting Project Rule Cache"
}
]
}
diff --git a/plugins/omo/components/rules/package.json b/plugins/omo/components/rules/package.json
index d7b07b14..9c25ff51 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": "4.19.3",
+ "version": "4.19.4",
"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/rules/src/post-compact-budget.ts b/plugins/omo/components/rules/src/post-compact-budget.ts
index bbda8a0c..835f7661 100644
--- a/plugins/omo/components/rules/src/post-compact-budget.ts
+++ b/plugins/omo/components/rules/src/post-compact-budget.ts
@@ -33,7 +33,7 @@ const MODEL_CONTEXT_BUDGETS: readonly ModelContextBudget[] = [
effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT,
},
{ slug: "gpt-5.5", contextWindowTokens: 272_000, effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT },
- { slug: "gpt-5.4-mini", contextWindowTokens: 272_000, effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT },
+ { slug: "gpt-5.6-luna-fast", contextWindowTokens: 272_000, effectivePercent: DEFAULT_EFFECTIVE_CONTEXT_WINDOW_PERCENT },
{
slug: "codex-auto-review",
contextWindowTokens: 272_000,
diff --git a/plugins/omo/components/start-work-continuation/hooks/hooks.json b/plugins/omo/components/start-work-continuation/hooks/hooks.json
index 5414ea03..6f8e13cd 100644
--- a/plugins/omo/components/start-work-continuation/hooks/hooks.json
+++ b/plugins/omo/components/start-work-continuation/hooks/hooks.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/start-work-continuation/dist/cli.js\" hook stop",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Checking Start-Work Continuation"
+ "statusMessage": "(OmO 4.19.4) Checking Start-Work Continuation"
}
]
}
@@ -19,7 +19,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/start-work-continuation/dist/cli.js\" hook subagent-stop",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Checking Start-Work Continuation"
+ "statusMessage": "(OmO 4.19.4) Checking Start-Work Continuation"
}
]
}
diff --git a/plugins/omo/components/start-work-continuation/package.json b/plugins/omo/components/start-work-continuation/package.json
index 0995da27..0a434e99 100644
--- a/plugins/omo/components/start-work-continuation/package.json
+++ b/plugins/omo/components/start-work-continuation/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-start-work-continuation",
- "version": "4.19.3",
+ "version": "4.19.4",
"description": "Codex Stop hook continuation injector for omo-codex start-work plans.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/teammode/hooks/hooks.json b/plugins/omo/components/teammode/hooks/hooks.json
index 52ae7d03..81cc62eb 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 4.19.3) Checking Thread Title Hygiene"
+ "statusMessage": "(OmO 4.19.4) Checking Thread Title Hygiene"
}
]
}
diff --git a/plugins/omo/components/teammode/package.json b/plugins/omo/components/teammode/package.json
index bfddf5b6..502ee17c 100644
--- a/plugins/omo/components/teammode/package.json
+++ b/plugins/omo/components/teammode/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/codex-teammode",
- "version": "4.19.3",
+ "version": "4.19.4",
"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.json
index 38deb210..32633231 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 4.19.3) Recording Session Telemetry"
+ "statusMessage": "(OmO 4.19.4) Recording Session Telemetry"
}
]
}
diff --git a/plugins/omo/components/telemetry/package.json b/plugins/omo/components/telemetry/package.json
index 4c898119..326f95b3 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": "4.19.3",
+ "version": "4.19.4",
"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.json
index e62e73a8..a70dc80c 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 4.19.3) Checking Ultrawork Trigger"
+ "statusMessage": "(OmO 4.19.4) Checking Ultrawork Trigger"
}
]
}
diff --git a/plugins/omo/components/ultrawork/package.json b/plugins/omo/components/ultrawork/package.json
index fc57ab82..fa06a3ca 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": "4.19.3",
+ "version": "4.19.4",
"description": "Codex plugin that injects the ultrawork orchestration directive and ships LazyCodex planning, review, QA, and gate agent roles.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/ultrawork/skills/ulw-plan/SKILL.md b/plugins/omo/components/ultrawork/skills/ulw-plan/SKILL.md
index b92d7529..b580a6cd 100644
--- a/plugins/omo/components/ultrawork/skills/ulw-plan/SKILL.md
+++ b/plugins/omo/components/ultrawork/skills/ulw-plan/SKILL.md
@@ -1,6 +1,6 @@
---
name: ulw-plan
-description: "MUST USE for planning before coding when design uncertainty remains after discovery: ambiguous scope, competing decompositions, unclear boundaries, uncertain dependency ordering, architecture decisions, a vague 'just make it good / figure out what to build' brief, or any request to plan, interview, or break work down. Explore-first planning consultant (Prometheus) that grounds in the codebase, asks only the forks exploration cannot resolve - or researches them to best practice when the intent is fuzzy - waits for explicit approval, then writes ONE decision-complete work plan a worker executes with zero further interview. Triggers: ulw-plan, plan this, make a plan, plan before coding, interview me, break this down, start planning, plan mode, just make it good, figure out what to build."
+description: "ACTIVATES ONLY on an explicit user request for the ulw-plan workflow: the user themselves saying ulw-plan, ulw plan, /skill:ulw-plan, or asking in their own words for a work plan before coding. NEVER self-activates: a bare ulw/ultrawork run, an agent-side routing decision, or reading this file is not a request, and the plan-gated reviewers (metis/momus) stay locked without a user request plus a written .omo/plans plan file. Explore-first planning consultant (Prometheus) that grounds in the codebase, asks only the forks exploration cannot resolve - or researches them to best practice when the intent is fuzzy - waits for explicit approval, then writes ONE decision-complete work plan a worker executes with zero further interview. Triggers: ulw-plan, ulw plan, plan this, make a plan, plan before coding, interview me, break this down, start planning, plan mode."
metadata:
short-description: Explore-first planning consultant that waits for your okay before planning
---
diff --git a/plugins/omo/components/ulw-loop/hooks/hooks.json b/plugins/omo/components/ulw-loop/hooks/hooks.json
index d60a142f..0a1a6e8c 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 4.19.3) Checking Ulw-Loop Steering"
+ "statusMessage": "(OmO 4.19.4) Checking Ulw-Loop Steering"
}
]
}
@@ -20,7 +20,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use",
"timeout": 5,
- "statusMessage": "(OmO 4.19.3) Enforcing Unlimited Ulw-Loop Budget"
+ "statusMessage": "(OmO 4.19.4) Enforcing Unlimited Ulw-Loop Budget"
}
]
},
@@ -31,7 +31,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use-spawn",
"timeout": 5,
- "statusMessage": "(OmO 4.19.3) Guarding Ulw-Loop Spawns"
+ "statusMessage": "(OmO 4.19.4) Guarding Ulw-Loop Spawns"
}
]
}
@@ -43,7 +43,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook stop",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Checking Ulw-Loop Resume"
+ "statusMessage": "(OmO 4.19.4) Checking Ulw-Loop Resume"
}
]
}
diff --git a/plugins/omo/components/ulw-loop/package.json b/plugins/omo/components/ulw-loop/package.json
index c533dfc6..f0fc224a 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": "4.19.3",
+ "version": "4.19.4",
"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.js
index c41f4757..be596c85 100755
--- a/plugins/omo/dist/cli-node/index.js
+++ b/plugins/omo/dist/cli-node/index.js
@@ -2146,7 +2146,7 @@ var package_default;
var init_package = __esm(() => {
package_default = {
name: "oh-my-opencode",
- version: "4.19.3",
+ version: "4.19.4",
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",
@@ -2358,18 +2358,18 @@ var init_package = __esm(() => {
typescript: "^7.0.2"
},
optionalDependencies: {
- "oh-my-opencode-darwin-arm64": "4.19.3",
- "oh-my-opencode-darwin-x64": "4.19.3",
- "oh-my-opencode-darwin-x64-baseline": "4.19.3",
- "oh-my-opencode-linux-arm64": "4.19.3",
- "oh-my-opencode-linux-arm64-musl": "4.19.3",
- "oh-my-opencode-linux-x64": "4.19.3",
- "oh-my-opencode-linux-x64-baseline": "4.19.3",
- "oh-my-opencode-linux-x64-musl": "4.19.3",
- "oh-my-opencode-linux-x64-musl-baseline": "4.19.3",
- "oh-my-opencode-windows-arm64": "4.19.3",
- "oh-my-opencode-windows-x64": "4.19.3",
- "oh-my-opencode-windows-x64-baseline": "4.19.3"
+ "oh-my-opencode-darwin-arm64": "4.19.4",
+ "oh-my-opencode-darwin-x64": "4.19.4",
+ "oh-my-opencode-darwin-x64-baseline": "4.19.4",
+ "oh-my-opencode-linux-arm64": "4.19.4",
+ "oh-my-opencode-linux-arm64-musl": "4.19.4",
+ "oh-my-opencode-linux-x64": "4.19.4",
+ "oh-my-opencode-linux-x64-baseline": "4.19.4",
+ "oh-my-opencode-linux-x64-musl": "4.19.4",
+ "oh-my-opencode-linux-x64-musl-baseline": "4.19.4",
+ "oh-my-opencode-windows-arm64": "4.19.4",
+ "oh-my-opencode-windows-x64": "4.19.4",
+ "oh-my-opencode-windows-x64-baseline": "4.19.4"
},
overrides: {
"@earendil-works/pi-agent-core": "0.80.3",
@@ -22146,24 +22146,149 @@ var init_zod = __esm(() => {
init_external();
});
+// packages/omo-config-core/src/schema/reasoning-vocabulary.ts
+function isReasoningLevel(value) {
+ return REASONING_LEVEL_SET.has(value);
+}
+function normalizeReasoning(input) {
+ const normalized = input.trim().toLowerCase();
+ if (!normalized)
+ return {};
+ if (normalized === "none")
+ return { level: "off" };
+ if (normalized === REASONING_AUTO)
+ return { level: REASONING_AUTO };
+ if (isReasoningLevel(normalized))
+ return { level: normalized };
+ return { passthrough: normalized };
+}
+function splitReasoningSuffix(model, options) {
+ if (typeof model !== "string")
+ return { base: "" };
+ const trimmed = model.trim();
+ if (!trimmed)
+ return { base: "" };
+ const separatorIndex = trimmed.lastIndexOf(":");
+ if (separatorIndex === -1)
+ return { base: trimmed };
+ const base = trimmed.slice(0, separatorIndex).trim();
+ const token = trimmed.slice(separatorIndex + 1).trim().toLowerCase();
+ if (!base || !REASONING_LEVEL_OR_AUTO_SET.has(token))
+ return { base: trimmed };
+ if (token === "max" && !(options?.allowMaxSuffix ?? base.includes("/")))
+ return { base: trimmed };
+ return { base, level: token };
+}
+var REASONING_LEVELS, REASONING_AUTO = "auto", REASONING_LEVEL_SET, REASONING_LEVEL_OR_AUTO_SET;
+var init_reasoning_vocabulary = __esm(() => {
+ REASONING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
+ REASONING_LEVEL_SET = new Set(REASONING_LEVELS);
+ REASONING_LEVEL_OR_AUTO_SET = new Set([...REASONING_LEVELS, REASONING_AUTO]);
+});
+
+// packages/omo-config-core/src/schema/model-ref.ts
+var REASONING_LEVELS_OR_AUTO, OmoReasoningSchema, OmoModelRefObjectSchema, OmoModelRefSchema;
+var init_model_ref = __esm(() => {
+ init_zod();
+ init_reasoning_vocabulary();
+ REASONING_LEVELS_OR_AUTO = [...REASONING_LEVELS, "auto"];
+ OmoReasoningSchema = union([
+ _enum2(REASONING_LEVELS_OR_AUTO),
+ string2()
+ ]);
+ OmoModelRefObjectSchema = object({
+ model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
+ temperature: number2().min(0).max(2).optional(),
+ top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional()
+ }).strict();
+ OmoModelRefSchema = union([string2(), OmoModelRefObjectSchema]);
+});
+
// packages/omo-config-core/src/schema/fallback-models.ts
-var OmoThinkingConfigSchema, OmoReasoningEffortSchema, OmoFallbackModelObjectSchema, OmoFallbackModelsSchema;
+function isRecord2(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+function canonicalReasoning(value) {
+ if (typeof value !== "string")
+ return;
+ const normalized = normalizeReasoning(value);
+ return normalized.level ?? normalized.passthrough;
+}
+function canonicalModelString(model) {
+ const colon = splitReasoningSuffix(model, { allowMaxSuffix: true });
+ if (colon.level !== undefined)
+ return `${colon.base}:${colon.level}`;
+ const trimmed = model.trim();
+ const parenthesized = trimmed.match(/^(.*)\(([^()]+)\)\s*$/);
+ const spaced = parenthesized === null ? trimmed.match(/^(.*\S)\s+([a-z][a-z0-9_-]*)$/i) : null;
+ const base = (parenthesized?.[1] ?? spaced?.[1])?.trim();
+ const token = (parenthesized?.[2] ?? spaced?.[2])?.trim();
+ if (base === undefined || token === undefined)
+ return trimmed;
+ const normalized = normalizeReasoning(token);
+ return normalized.level === undefined ? trimmed : `${base}:${normalized.level}`;
+}
+function normalizeLegacyModelFields(entry) {
+ const normalized = { ...entry };
+ delete normalized["variant"];
+ delete normalized["reasoningEffort"];
+ delete normalized["thinking"];
+ delete normalized["textVerbosity"];
+ delete normalized["maxTokens"];
+ delete normalized["providerOptions"];
+ if (typeof entry["model"] === "string")
+ normalized["model"] = canonicalModelString(entry["model"]);
+ const explicitReasoning = canonicalReasoning(entry["reasoning"]);
+ const variant = canonicalReasoning(entry["variant"]);
+ const reasoningEffort = canonicalReasoning(entry["reasoningEffort"]);
+ const thinking = isRecord2(entry["thinking"]) ? entry["thinking"] : undefined;
+ const reasoning = explicitReasoning ?? reasoningEffort ?? variant ?? (thinking?.["type"] === "disabled" ? "off" : undefined);
+ if (reasoning !== undefined)
+ normalized["reasoning"] = reasoning;
+ const providerOptions = isRecord2(entry["provider_options"]) ? { ...entry["provider_options"] } : isRecord2(entry["providerOptions"]) ? { ...entry["providerOptions"] } : {};
+ if (thinking?.["type"] === "enabled")
+ providerOptions["thinking"] = { ...thinking };
+ if (entry["textVerbosity"] !== undefined)
+ providerOptions["textVerbosity"] = entry["textVerbosity"];
+ if (Object.keys(providerOptions).length > 0)
+ normalized["provider_options"] = providerOptions;
+ if (entry["max_tokens"] !== undefined)
+ normalized["max_tokens"] = entry["max_tokens"];
+ else if (entry["maxTokens"] !== undefined)
+ normalized["max_tokens"] = entry["maxTokens"];
+ return normalized;
+}
+function normalizeLegacyModelEntry(entry) {
+ return OmoModelRefObjectSchema.parse(normalizeLegacyModelFields(entry));
+}
+var OmoThinkingConfigSchema, OmoReasoningEffortSchema, OmoLegacyFallbackModelObjectInputSchema, OmoFallbackModelObjectSchema, OmoFallbackModelsSchema;
var init_fallback_models = __esm(() => {
init_zod();
+ init_model_ref();
+ init_reasoning_vocabulary();
OmoThinkingConfigSchema = object({
type: _enum2(["enabled", "disabled"]),
budgetTokens: number2().optional()
}).strict();
- OmoReasoningEffortSchema = _enum2(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
- OmoFallbackModelObjectSchema = object({
+ OmoReasoningEffortSchema = OmoReasoningSchema;
+ OmoLegacyFallbackModelObjectInputSchema = object({
model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ variant: string2().optional(),
+ reasoningEffort: OmoReasoningEffortSchema.optional(),
+ thinking: OmoThinkingConfigSchema.optional(),
+ textVerbosity: _enum2(["low", "medium", "high"]).optional(),
maxTokens: number2().optional(),
- thinking: OmoThinkingConfigSchema.optional()
+ providerOptions: record(string2(), unknown()).optional()
}).strict();
+ OmoFallbackModelObjectSchema = preprocess((value) => isRecord2(value) ? normalizeLegacyModelFields(value) : value, OmoLegacyFallbackModelObjectInputSchema);
OmoFallbackModelsSchema = union([
string2(),
array(string2()),
@@ -22173,23 +22298,21 @@ var init_fallback_models = __esm(() => {
});
// packages/omo-config-core/src/schema/agent.ts
-var OmoAgentModelEntrySchema, OmoAgentDefSchema, OmoAgentsConfigSchema;
+function isRecord3(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoAgentModelEntrySchema, OmoAgentDefInputSchema, OmoAgentDefSchema, OmoAgentsConfigSchema;
var init_agent = __esm(() => {
init_zod();
init_fallback_models();
- OmoAgentModelEntrySchema = union([
- string2(),
- object({
- model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional()
- }).strict()
- ]);
- OmoAgentDefSchema = object({
+ init_model_ref();
+ OmoAgentModelEntrySchema = union([string2(), OmoFallbackModelObjectSchema]);
+ OmoAgentDefInputSchema = object({
description: string2().optional(),
prompt: string2().optional(),
model: string2().optional(),
models: array(OmoAgentModelEntrySchema).optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
tools: record(string2(), boolean2()).optional(),
@@ -22202,21 +22325,30 @@ var init_agent = __esm(() => {
temperature: number2().min(0).max(2).optional(),
disable: boolean2().optional()
}).strict();
+ OmoAgentDefSchema = preprocess((value) => isRecord3(value) ? normalizeLegacyModelFields(value) : value, OmoAgentDefInputSchema);
OmoAgentsConfigSchema = record(string2(), OmoAgentDefSchema);
});
// packages/omo-config-core/src/schema/category.ts
-var OmoCategoryConfigSchema, OmoCategoriesConfigSchema;
+function isRecord4(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoCategoryConfigObjectSchema, OmoCategoryConfigSchema, OmoCategoriesConfigSchema;
var init_category = __esm(() => {
init_zod();
init_fallback_models();
- OmoCategoryConfigSchema = object({
+ init_model_ref();
+ OmoCategoryConfigObjectSchema = object({
description: string2().optional(),
model: string2().optional(),
- fallback_models: OmoFallbackModelsSchema.optional(),
- variant: string2().optional(),
+ models: array(union([string2(), OmoFallbackModelObjectSchema])).optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ fallback_models: OmoFallbackModelsSchema.optional(),
+ variant: string2().optional(),
maxTokens: number2().optional(),
thinking: OmoThinkingConfigSchema.optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
@@ -22225,8 +22357,10 @@ var init_category = __esm(() => {
prompt_append: string2().optional(),
max_prompt_tokens: number2().int().positive().optional(),
is_unstable_agent: boolean2().optional(),
- disable: boolean2().optional()
+ disable: boolean2().optional(),
+ warn_unavailable: boolean2().optional()
}).strict();
+ OmoCategoryConfigSchema = preprocess((value) => isRecord4(value) ? normalizeLegacyModelFields(value) : value, OmoCategoryConfigObjectSchema);
OmoCategoriesConfigSchema = record(string2(), OmoCategoryConfigSchema);
});
@@ -22263,22 +22397,29 @@ var init_codegraph = __esm(() => {
});
// packages/omo-config-core/src/schema/model-catalog.ts
-var OmoModelCatalogEntrySchema, OmoModelCatalogSchema, OmoModelCatalogEntryLayerSchema, OmoModelCatalogLayerSchema;
+function isRecord5(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoModelCatalogEntryInputSchema, OmoModelCatalogEntrySchema, OmoModelCatalogSchema, OmoModelCatalogEntryLayerInputSchema, OmoModelCatalogEntryLayerSchema, OmoModelCatalogLayerSchema;
var init_model_catalog = __esm(() => {
init_zod();
init_fallback_models();
- OmoModelCatalogEntrySchema = object({
+ init_model_ref();
+ OmoModelCatalogEntryInputSchema = object({
model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional()
}).strict();
+ OmoModelCatalogEntrySchema = preprocess((value) => isRecord5(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
OmoModelCatalogSchema = record(string2(), OmoModelCatalogEntrySchema);
- OmoModelCatalogEntryLayerSchema = OmoModelCatalogEntrySchema.partial();
+ OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
+ OmoModelCatalogEntryLayerSchema = preprocess((value) => isRecord5(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
OmoModelCatalogLayerSchema = record(string2(), OmoModelCatalogEntryLayerSchema);
});
// packages/omo-config-core/src/schema/task.ts
-var OmoTaskWaitSchema, OmoTaskTeamSettingsSchema, OmoTaskSettingsSchema, OmoTaskWaitLayerSchema, OmoTaskTeamSettingsLayerSchema, OmoTaskSettingsLayerSchema;
+var OmoTaskWaitSchema, OmoTaskTeamSettingsSchema, OmoTaskWarningsSchema, OmoTaskSettingsSchema, OmoTaskWaitLayerSchema, OmoTaskTeamSettingsLayerSchema, OmoTaskWarningsLayerSchema, OmoTaskSettingsLayerSchema;
var init_task = __esm(() => {
init_zod();
OmoTaskWaitSchema = object({
@@ -22291,6 +22432,9 @@ var init_task = __esm(() => {
max_parallel_members: number2().int().min(1).max(8).default(4),
max_wall_clock_minutes: number2().int().positive().default(120)
}).strict();
+ OmoTaskWarningsSchema = object({
+ unavailable_categories: boolean2().default(true)
+ }).strict();
OmoTaskSettingsSchema = object({
default_execution_mode: _enum2(["in-process", "process"]).default("in-process"),
default_concurrency: number2().int().positive().default(5),
@@ -22301,6 +22445,7 @@ var init_task = __esm(() => {
ttl_ms: number2().int().positive().default(86400000),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
team: OmoTaskTeamSettingsSchema.default({
max_members: 8,
@@ -22318,6 +22463,9 @@ var init_task = __esm(() => {
max_parallel_members: number2().int().min(1).max(8).optional(),
max_wall_clock_minutes: number2().int().positive().optional()
}).strict();
+ OmoTaskWarningsLayerSchema = object({
+ unavailable_categories: boolean2().optional()
+ }).strict();
OmoTaskSettingsLayerSchema = object({
default_execution_mode: _enum2(["in-process", "process"]).optional(),
default_concurrency: number2().int().positive().optional(),
@@ -22328,6 +22476,7 @@ var init_task = __esm(() => {
ttl_ms: number2().int().positive().optional(),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsLayerSchema.optional(),
wait: OmoTaskWaitLayerSchema.optional(),
team: OmoTaskTeamSettingsLayerSchema.optional()
}).strict();
@@ -22455,6 +22604,7 @@ var init_schema = __esm(() => {
init_fallback_models();
init_harness();
init_model_catalog();
+ init_model_ref();
init_task();
init_team();
});
@@ -22517,11 +22667,8 @@ var init_types = __esm(() => {
});
// packages/omo-config-core/src/loader/paths.ts
-import { dirname, isAbsolute, join as join3, posix, relative, resolve } from "node:path";
-function containsPath(parent, child) {
- const pathToChild = relative(parent, child);
- return pathToChild === "" || !pathToChild.startsWith("..") && !isAbsolute(pathToChild);
-}
+import { userInfo } from "node:os";
+import { dirname, join as join3, posix, resolve } from "node:path";
function resolveHomeDir(env = process.env) {
const homeDir = env.HOME ?? env.USERPROFILE ?? process.cwd();
return homeDir.startsWith("/") ? posix.resolve(homeDir) : toPosixPath(resolve(homeDir));
@@ -22573,15 +22720,14 @@ function realpathOrSelf(path3, fileSystem) {
return path3;
}
}
-function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem) {
+function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem, accountHomeDir = homeDir) {
const startDir = resolve(cwd);
- const resolvedHomeDir = resolve(homeDir);
- const realHomeDir = realpathOrSelf(resolvedHomeDir, fileSystem);
- const stopDir = containsPath(realHomeDir, realpathOrSelf(startDir, fileSystem)) ? realHomeDir : null;
+ const boundaryDirs = [...new Set([resolve(homeDir), resolve(accountHomeDir)])];
+ const realBoundaryDirs = new Set(boundaryDirs.map((path3) => realpathOrSelf(path3, fileSystem)));
const nearestFirst = [];
let currentDir = startDir;
for (let depth = 0;depth < MAX_PROJECT_CONFIG_DIRECTORY_DEPTH; depth += 1) {
- const isHomeDir = currentDir === resolvedHomeDir || stopDir !== null && realpathOrSelf(currentDir, fileSystem) === stopDir;
+ const isHomeDir = boundaryDirs.includes(currentDir) || realBoundaryDirs.has(realpathOrSelf(currentDir, fileSystem));
const configPath = isHomeDir ? null : detectOmoJsonPath(currentDir, fileSystem);
if (configPath !== null)
nearestFirst.push(configPath);
@@ -22598,16 +22744,17 @@ function resolveOmoConfigPaths(options) {
const fileSystem = options.fileSystem ?? DEFAULT_READ_FILE_SYSTEM;
const env = options.env ?? process.env;
const userPath = detectUserOmoJsonPath(env, fileSystem);
- const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem);
+ const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem, ACCOUNT_HOME_DIR);
return [
{ path: userPath, scope: "user" },
...projectPaths.map((path3) => ({ path: path3, scope: "project" }))
];
}
-var MAX_PROJECT_CONFIG_DIRECTORY_DEPTH = 256;
+var MAX_PROJECT_CONFIG_DIRECTORY_DEPTH = 256, ACCOUNT_HOME_DIR;
var init_paths = __esm(() => {
init_posix_path();
init_types();
+ ACCOUNT_HOME_DIR = userInfo().homedir;
});
// packages/omo-config-core/src/loader/resolution.ts
@@ -22865,79 +23012,58 @@ function findModelCatalogCycles(catalog) {
}
// packages/omo-config-core/src/models/model-reference-resolution.ts
-function catalogReference(model, variant, reasoningEffort, catalog, cycleNames) {
+function catalogReference(model, reasoning, catalog, cycleNames) {
const entry = catalog?.[model];
if (entry === undefined || cycleNames.has(model))
return;
return {
model: entry.model,
- ...variant === undefined && entry.variant !== undefined ? { variant: entry.variant } : variant !== undefined ? { variant } : {},
- ...reasoningEffort === undefined && entry.reasoningEffort !== undefined ? { reasoningEffort: entry.reasoningEffort } : reasoningEffort !== undefined ? { reasoningEffort } : {}
- };
-}
-function resolveAgentModelEntry(entry, catalog, cycleNames) {
- if (typeof entry === "string") {
- const resolved2 = catalogReference(entry, undefined, undefined, catalog, cycleNames);
- if (resolved2 === undefined)
- return entry;
- return resolved2.variant === undefined && resolved2.reasoningEffort === undefined ? resolved2.model : resolved2;
- }
- const resolved = catalogReference(entry.model, entry.variant, entry.reasoningEffort, catalog, cycleNames);
- if (resolved === undefined)
- return entry;
- return {
- ...entry,
- model: resolved.model,
- ...entry.variant === undefined && resolved.variant !== undefined ? { variant: resolved.variant } : {},
- ...entry.reasoningEffort === undefined && resolved.reasoningEffort !== undefined ? { reasoningEffort: resolved.reasoningEffort } : {}
+ ...reasoning === undefined && entry.reasoning !== undefined ? { reasoning: entry.reasoning } : reasoning !== undefined ? { reasoning } : {}
};
}
-function resolveFallbackModelEntry(entry, catalog, cycleNames) {
+function resolveModelEntry(entry, catalog, cycleNames) {
if (typeof entry === "string") {
- const resolved2 = catalogReference(entry, undefined, undefined, catalog, cycleNames);
+ const resolved2 = catalogReference(entry, undefined, catalog, cycleNames);
if (resolved2 === undefined)
return entry;
- return resolved2.variant === undefined && resolved2.reasoningEffort === undefined ? resolved2.model : resolved2;
+ return resolved2.reasoning === undefined ? resolved2.model : resolved2;
}
- const resolved = catalogReference(entry.model, entry.variant, entry.reasoningEffort, catalog, cycleNames);
+ const resolved = catalogReference(entry.model, entry.reasoning, catalog, cycleNames);
if (resolved === undefined)
return entry;
return {
...entry,
model: resolved.model,
- ...entry.variant === undefined && resolved.variant !== undefined ? { variant: resolved.variant } : {},
- ...entry.reasoningEffort === undefined && resolved.reasoningEffort !== undefined ? { reasoningEffort: resolved.reasoningEffort } : {}
+ ...entry.reasoning === undefined && resolved.reasoning !== undefined ? { reasoning: resolved.reasoning } : {}
};
}
function resolveFallbackModels(fallbackModels, catalog, cycleNames) {
if (fallbackModels === undefined)
return;
if (typeof fallbackModels !== "string") {
- return fallbackModels.map((entry) => resolveFallbackModelEntry(entry, catalog, cycleNames));
+ return fallbackModels.map((entry) => resolveModelEntry(entry, catalog, cycleNames));
}
- const resolved = catalogReference(fallbackModels, undefined, undefined, catalog, cycleNames);
- if (resolved === undefined || resolved.variant === undefined && resolved.reasoningEffort === undefined) {
+ const resolved = catalogReference(fallbackModels, undefined, catalog, cycleNames);
+ if (resolved === undefined || resolved.reasoning === undefined)
return resolved?.model ?? fallbackModels;
- }
return [resolved];
}
function resolveAgentDefinition(definition, catalog, cycleNames) {
- const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.variant, definition.reasoningEffort, catalog, cycleNames);
+ const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.reasoning, catalog, cycleNames);
return {
...definition,
...resolvedModel === undefined ? {} : { model: resolvedModel.model },
- ...definition.variant === undefined && resolvedModel?.variant !== undefined ? { variant: resolvedModel.variant } : {},
- ...definition.reasoningEffort === undefined && resolvedModel?.reasoningEffort !== undefined ? { reasoningEffort: resolvedModel.reasoningEffort } : {},
- ...definition.models === undefined ? {} : { models: definition.models.map((entry) => resolveAgentModelEntry(entry, catalog, cycleNames)) }
+ ...definition.reasoning === undefined && resolvedModel?.reasoning !== undefined ? { reasoning: resolvedModel.reasoning } : {},
+ ...definition.models === undefined ? {} : { models: definition.models.map((entry) => resolveModelEntry(entry, catalog, cycleNames)) }
};
}
function resolveCategoryDefinition(definition, catalog, cycleNames) {
- const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.variant, definition.reasoningEffort, catalog, cycleNames);
+ const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.reasoning, catalog, cycleNames);
return {
...definition,
...resolvedModel === undefined ? {} : { model: resolvedModel.model },
- ...definition.variant === undefined && resolvedModel?.variant !== undefined ? { variant: resolvedModel.variant } : {},
- ...definition.reasoningEffort === undefined && resolvedModel?.reasoningEffort !== undefined ? { reasoningEffort: resolvedModel.reasoningEffort } : {},
+ ...definition.reasoning === undefined && resolvedModel?.reasoning !== undefined ? { reasoning: resolvedModel.reasoning } : {},
+ ...definition.models === undefined ? {} : { models: definition.models.map((entry) => resolveModelEntry(entry, catalog, cycleNames)) },
...definition.fallback_models === undefined ? {} : { fallback_models: resolveFallbackModels(definition.fallback_models, catalog, cycleNames) }
};
}
@@ -23415,6 +23541,23 @@ function prepareTargetWrite(input) {
const edits = [...collectMigrationEdits(merged.additions), { path: ["_migrations"], value: marker }];
return { diagnostics: merged.diagnostics, document, edits };
}
+function prepareTargetReplacement(input) {
+ const marker = markerValue(input.target, input.migrationId, input.targetPath);
+ const document = { ...input.document, _migrations: marker };
+ validateTarget(input.targetPath, document);
+ const edits = [];
+ for (const key of Object.keys(input.target)) {
+ if (key !== "_migrations" && !Object.prototype.hasOwnProperty.call(input.document, key)) {
+ edits.push({ path: [key], value: undefined });
+ }
+ }
+ for (const [key, value] of Object.entries(input.document)) {
+ if (key !== "_migrations")
+ edits.push({ path: [key], value });
+ }
+ edits.push({ path: ["_migrations"], value: marker });
+ return { diagnostics: [], document, edits };
+}
function writePreparedTarget(input) {
input.writeTarget({
edits: input.prepared.edits,
@@ -23470,9 +23613,17 @@ function parseJournal(value) {
if (!isPlainObject4(value["targetWrite"]) || !isPlainObject4(value["targetWrite"]["additions"])) {
throw new Error("Migration journal target write is invalid");
}
+ const targetWriteMode = value["targetWrite"]["mode"];
+ if (targetWriteMode !== undefined && targetWriteMode !== "replace-target") {
+ throw new Error("Migration journal target write mode is invalid");
+ }
if (typeof value["targetWritten"] !== "boolean" || !Array.isArray(value["completedMoves"])) {
throw new Error("Migration journal completion state is invalid");
}
+ const diagnostics = value["diagnostics"];
+ if (diagnostics !== undefined && (!Array.isArray(diagnostics) || !diagnostics.every((entry) => typeof entry === "string"))) {
+ throw new Error("Migration journal diagnostics are invalid");
+ }
if (!value["completedMoves"].every((path3) => typeof path3 === "string")) {
throw new Error("Migration journal completed moves are invalid");
}
@@ -23488,9 +23639,13 @@ function parseJournal(value) {
return {
backupMoves,
completedMoves: [...value["completedMoves"]],
+ diagnostics: diagnostics === undefined ? [] : [...diagnostics],
migrationId: value["migrationId"],
targetPath: value["targetPath"],
- targetWrite: { additions: { ...value["targetWrite"]["additions"] } },
+ targetWrite: {
+ additions: { ...value["targetWrite"]["additions"] },
+ ...targetWriteMode === undefined ? {} : { mode: targetWriteMode }
+ },
targetWritten: value["targetWritten"],
version: 1
};
@@ -23688,7 +23843,12 @@ function resumeMigrationJournal(input) {
input.renewLock();
const target = targetDocument(journal.targetPath, input.fileSystem);
if (!hasMigrationMarker(target, journal.migrationId)) {
- const prepared = prepareTargetWrite({
+ const prepared = journal.targetWrite.mode === "replace-target" ? prepareTargetReplacement({
+ document: journal.targetWrite.additions,
+ migrationId: journal.migrationId,
+ target,
+ targetPath: journal.targetPath
+ }) : prepareTargetWrite({
additions: journal.targetWrite.additions,
migrationId: journal.migrationId,
target,
@@ -23798,11 +23958,17 @@ function executePlan(input) {
assertSafeSourcePaths(plan.sources, protectedPaths);
const existingSources = plan.sources.filter((source) => fileSystem.existsSync(source.path));
const target = targetDocument(plan.targetPath, fileSystem);
- if (!shouldRunMigration({ legacySourcesExist: existingSources.length > 0, migrationId: plan.id, target })) {
+ const replaceTarget = plan.mode === "replace-target";
+ if (!shouldRunMigration({
+ legacySourcesExist: replaceTarget ? fileSystem.existsSync(plan.targetPath) : existingSources.length > 0,
+ migrationId: plan.id,
+ target
+ })) {
return { diagnostics: [], journalResumed, status: "skipped" };
}
- const transformed = transformResult(plan.transform(loadSources(existingSources, fileSystem)));
- const prepared = prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
+ const loaded = replaceTarget ? [{ path: plan.targetPath, value: target }] : loadSources(existingSources, fileSystem);
+ const transformed = transformResult(plan.transform(loaded));
+ const prepared = replaceTarget ? prepareTargetReplacement({ document: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath }) : prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
const diagnostics = [...transformed.diagnostics, ...prepared.diagnostics];
const moves = backupMoves(existingSources, plan.id, fileSystem, protectedPaths);
const preview = { backupMoves: moves, targetPath: plan.targetPath, transform: transformed.document };
@@ -23812,9 +23978,13 @@ function executePlan(input) {
const journal = {
backupMoves: moves,
completedMoves: [],
+ diagnostics,
migrationId: plan.id,
targetPath: plan.targetPath,
- targetWrite: { additions: transformed.document },
+ targetWrite: {
+ additions: transformed.document,
+ ...replaceTarget ? { mode: "replace-target" } : {}
+ },
targetWritten: false,
version: 1
};
@@ -25718,7 +25888,7 @@ var init_agent_model_requirements = __esm(() => {
model: "kimi-k3"
},
{ providers: ["openai", "github-copilot", "opencode", "vercel"], model: "gpt-5.6-sol", variant: "medium" },
- { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5" },
+ { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5.2" },
{ providers: ["opencode"], model: "big-pickle" }
],
requiresAnyModel: true
@@ -25761,8 +25931,9 @@ var init_agent_model_requirements = __esm(() => {
},
librarian: {
fallbackChain: [
- { providers: ["openai"], model: "gpt-5.4-mini-fast" },
- { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.5-plus" },
+ { providers: ["openai"], model: "gpt-5.6-luna-fast", variant: "low" },
+ { providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },
+ { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },
{ providers: ["vercel"], model: "minimax-m2.7-highspeed" },
{ providers: ["opencode-go", "vercel"], model: "minimax-m3" },
{ providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
@@ -25773,8 +25944,9 @@ var init_agent_model_requirements = __esm(() => {
},
explore: {
fallbackChain: [
- { providers: ["openai"], model: "gpt-5.4-mini-fast" },
- { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.5-plus" },
+ { providers: ["openai"], model: "gpt-5.6-luna-fast", variant: "low" },
+ { providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },
+ { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },
{ providers: ["vercel"], model: "minimax-m2.7-highspeed" },
{ providers: ["opencode-go", "vercel"], model: "minimax-m3" },
{ providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
@@ -25848,7 +26020,7 @@ var init_agent_model_requirements = __esm(() => {
},
atlas: {
fallbackChain: [
- { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-4-6" },
+ { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-5" },
{ providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
providers: ["openai", "github-copilot", "opencode", "vercel"],
@@ -25862,7 +26034,7 @@ var init_agent_model_requirements = __esm(() => {
},
"sisyphus-junior": {
fallbackChain: [
- { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-4-6" },
+ { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-5" },
{ providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
providers: ["openai", "github-copilot", "opencode", "vercel"],
@@ -25885,109 +26057,69 @@ var init_category_model_requirements = __esm(() => {
"visual-engineering": {
fallbackChain: [
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-opus-5",
variant: "max"
},
{
- providers: ["apitopia", "opencode-go", "kimi-for-coding", "moonshotai", "opencode", "vercel"],
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
model: "kimi-k3",
variant: "max"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-fable-5",
- variant: "low"
+ providers: ["zai-coding-plan", "opencode-go", "vercel"],
+ model: "glm-5.2",
+ variant: "max"
},
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3.1-pro",
- variant: "high"
- },
- { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5" },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
+ model: "gpt-5.6-sol",
+ variant: "medium"
+ }
]
},
ultrabrain: {
fallbackChain: [
{
- providers: ["openai", "vercel"],
+ providers: ["openai", "quotio-openai", "vercel"],
model: "gpt-5.6-sol",
- variant: "xhigh"
+ variant: "max"
},
{
providers: ["github-copilot"],
model: "gpt-5.6-sol",
- variant: "high"
+ variant: "max"
},
{
providers: ["openai", "opencode", "vercel"],
model: "gpt-5.6-sol",
- variant: "xhigh"
- },
- {
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3.1-pro",
- variant: "high"
- },
- {
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-opus-5",
variant: "max"
- },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ }
]
},
deep: {
fallbackChain: [
{
- providers: ["openai", "vercel"],
- model: "gpt-5.6-terra",
- variant: "xhigh"
- },
- {
- providers: ["github-copilot"],
- model: "gpt-5.6-terra",
- variant: "high"
- },
- {
- providers: ["openai", "github-copilot", "vercel"],
- model: "gpt-5.6-sol",
- variant: "high"
- },
- {
- providers: ["openai", "github-copilot", "opencode", "vercel"],
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
model: "gpt-5.6-sol",
variant: "medium"
- },
- {
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-opus-5",
- variant: "max"
- },
- {
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3.1-pro",
- variant: "high"
- },
- { providers: ["opencode-go", "vercel"], model: "kimi-k3" },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ }
]
},
artistry: {
fallbackChain: [
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-fable-5",
variant: "xhigh"
},
{
- providers: ["apitopia", "opencode-go", "kimi-for-coding", "moonshotai", "opencode", "vercel"],
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
model: "kimi-k3",
variant: "max"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-opus-5",
variant: "xhigh"
}
@@ -25995,88 +26127,88 @@ var init_category_model_requirements = __esm(() => {
},
quick: {
fallbackChain: [
- { providers: ["apitopia"], model: "kimi-for-coding-highspeed" },
- { providers: ["quotio-openai"], model: "gpt-5.4-mini-fast" },
+ { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed" },
+ { providers: ["quotio-openai"], model: "gpt-5.6-luna-fast", variant: "low" },
+ { providers: ["deepseek"], model: "deepseek-v4-flash", variant: "off" },
{
- providers: ["anthropic-api", "anthropic", "github-copilot", "vercel"],
- model: "claude-haiku-4-5"
+ providers: ["qwen-token-plan", "alibaba-token-plan", "bailian-coding-plan", "opencode-go", "vercel"],
+ model: "qwen3.6-flash",
+ variant: "low"
},
+ { providers: ["opencode-go", "vercel"], model: "minimax-m3", variant: "max" },
+ { providers: ["opencode-go", "vercel"], model: "minimax-m2.7", variant: "max" },
+ { providers: ["xai"], model: "grok-4.20-0309-non-reasoning" },
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3-flash"
- },
- { providers: ["opencode-go", "vercel"], model: "minimax-m3" },
- { providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
- { providers: ["opencode-go", "vercel"], model: "minimax-m2.7" },
- { providers: ["opencode", "vercel"], model: "gpt-5-nano" }
+ providers: ["anthropic", "anthropic-api", "github-copilot", "vercel"],
+ model: "claude-haiku-4-5",
+ variant: "off"
+ }
]
},
"unspecified-low": {
fallbackChain: [
{
- providers: ["openai", "vercel"],
- model: "gpt-5.6-luna",
- variant: "xhigh"
- },
- {
- providers: ["github-copilot"],
- model: "gpt-5.6-luna",
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
+ model: "gpt-5.6-terra",
variant: "high"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-sonnet-4-6"
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
+ model: "claude-sonnet-5",
+ variant: "low"
},
{
- providers: ["openai", "opencode", "vercel"],
- model: "gpt-5.6-sol",
- variant: "medium"
+ providers: ["qwen-token-plan", "alibaba-token-plan", "qwen-token-plan-cn", "alibaba-token-plan-cn"],
+ model: "qwen3.8-max-preview",
+ variant: "max"
},
- { providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3-flash"
+ providers: ["deepseek", "opencode-go", "vercel"],
+ model: "deepseek-v4-pro",
+ variant: "max"
},
- { providers: ["opencode-go", "vercel"], model: "minimax-m3" },
- { providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
- { providers: ["opencode-go", "vercel"], model: "minimax-m2.7" }
+ {
+ providers: ["xiaomi", "opencode-go", "vercel"],
+ model: "mimo-v2.5-pro",
+ variant: "max"
+ }
]
},
"unspecified-high": {
fallbackChain: [
{
- providers: ["apitopia", "opencode-go", "kimi-for-coding", "moonshotai", "opencode", "vercel"],
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
model: "kimi-k3",
variant: "max"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-opus-5",
- variant: "high"
+ variant: "xhigh"
},
{
- providers: ["openai", "github-copilot", "opencode", "vercel"],
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
model: "gpt-5.6-sol",
variant: "high"
- },
- { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5" },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ }
]
},
writing: {
fallbackChain: [
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3-flash"
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
+ model: "kimi-k3",
+ variant: "low"
},
- { providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-sonnet-4-6"
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
+ model: "claude-opus-5",
+ variant: "low"
},
- { providers: ["opencode-go", "vercel"], model: "minimax-m3" },
- { providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
- { providers: ["opencode-go", "vercel"], model: "minimax-m2.7" }
+ {
+ providers: ["google", "github-copilot", "opencode", "vercel"],
+ model: "gemini-3.6-flash"
+ }
]
}
};
@@ -26298,18 +26430,30 @@ var init_model_capability_heuristics = __esm(() => {
// packages/model-core/src/model-capability-guardrails.ts
var init_model_capability_guardrails = () => {};
-// packages/model-core/src/model-settings-compatibility.ts
-function downgradeWithinLadder(value, allowed, ladder) {
+// packages/model-core/src/reasoning-level.ts
+function clampReasoningLevel(value, allowed) {
+ const ladder = REASONING_LEVELS2;
const requestedIndex = ladder.indexOf(value);
if (requestedIndex === -1)
return;
for (let index = requestedIndex;index >= 0; index -= 1) {
- if (allowed.includes(ladder[index])) {
- return ladder[index];
- }
+ const candidate = REASONING_LEVELS2[index];
+ if (candidate !== undefined && allowed.includes(candidate))
+ return candidate;
}
return;
}
+var REASONING_LEVELS2, REASONING_AUTO2 = "auto", REASONING_LEVEL_SET2, REASONING_LEVEL_OR_AUTO_SET2;
+var init_reasoning_level = __esm(() => {
+ REASONING_LEVELS2 = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
+ REASONING_LEVEL_SET2 = new Set(REASONING_LEVELS2);
+ REASONING_LEVEL_OR_AUTO_SET2 = new Set([...REASONING_LEVELS2, REASONING_AUTO2]);
+});
+
+// packages/model-core/src/model-settings-compatibility.ts
+function downgradeWithinLadder(value, allowed) {
+ return clampReasoningLevel(value, allowed);
+}
function normalizeCapabilitiesVariants(capabilities) {
if (!capabilities?.variants || capabilities.variants.length === 0) {
return;
@@ -26331,7 +26475,7 @@ function resolveField(normalized, familyCaps, ladder, familyKnown, metadataOverr
if (metadataOverride.includes(normalized))
return { value: normalized };
return {
- value: downgradeWithinLadder(normalized, metadataOverride, ladder),
+ value: downgradeWithinLadder(normalized, metadataOverride),
reason: "unsupported-by-model-metadata"
};
}
@@ -26339,7 +26483,7 @@ function resolveField(normalized, familyCaps, ladder, familyKnown, metadataOverr
if (familyCaps.includes(normalized))
return { value: normalized };
return {
- value: downgradeWithinLadder(normalized, familyCaps, ladder),
+ value: downgradeWithinLadder(normalized, familyCaps),
reason: "unsupported-by-model-family"
};
}
@@ -26357,7 +26501,7 @@ function resolveCompatibleModelSettings(input) {
let variant = input.desired.variant;
if (variant !== undefined) {
const normalized = variant.toLowerCase();
- const resolved = resolveField(normalized, family?.variants, VARIANT_LADDER, familyKnown, metadataVariants);
+ const resolved = resolveField(normalized, family?.variants, REASONING_LEVELS2, familyKnown, metadataVariants);
if (resolved.value !== normalized && resolved.reason) {
changes.push({ field: "variant", from: variant, to: resolved.value, reason: resolved.reason });
}
@@ -26366,7 +26510,7 @@ function resolveCompatibleModelSettings(input) {
let reasoningEffort = input.desired.reasoningEffort;
if (reasoningEffort !== undefined) {
const normalized = reasoningEffort.toLowerCase();
- const resolved = resolveField(normalized, family?.reasoningEfforts, REASONING_LADDER, familyKnown, metadataReasoningEfforts, family?.reasoningEffortAliases);
+ const resolved = resolveField(normalized, family?.reasoningEfforts, REASONING_LEVELS2, familyKnown, metadataReasoningEfforts, family?.reasoningEffortAliases);
if (resolved.value !== normalized && resolved.reason) {
changes.push({ field: "reasoningEffort", from: reasoningEffort, to: resolved.value, reason: resolved.reason });
}
@@ -26425,11 +26569,9 @@ function resolveCompatibleModelSettings(input) {
changes
};
}
-var VARIANT_LADDER, REASONING_LADDER;
var init_model_settings_compatibility = __esm(() => {
init_model_capability_heuristics();
- VARIANT_LADDER = ["low", "medium", "high", "xhigh", "max"];
- REASONING_LADDER = ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
+ init_reasoning_level();
});
// packages/model-core/src/provider-model-id-transform.ts
@@ -26446,6 +26588,8 @@ function inferSubProvider(model) {
return "minimax";
if (model.startsWith("kimi-"))
return "moonshotai";
+ if (model.startsWith("k3"))
+ return "moonshotai";
if (model.startsWith("glm-"))
return "zai";
return;
@@ -26479,6 +26623,12 @@ function transformModelForProviderUsingAnthropicBehavior(provider, model) {
if (provider === "anthropic") {
return model;
}
+ if (provider === "kimi-coding" || provider === "kimi-for-coding") {
+ if (model === "kimi-k3")
+ return "k3";
+ if (model === "kimi-k3-256k")
+ return "k3-256k";
+ }
return model;
}
function transformModelForProviderDisplay(provider, model) {
@@ -26491,22 +26641,6 @@ var init_provider_model_id_transform = __esm(() => {
GEMINI_3_FLASH_PREVIEW = /(?<!antigravity-)gemini-3-flash(?!-)/g;
});
-// packages/model-core/src/known-variants.ts
-var KNOWN_VARIANTS;
-var init_known_variants = __esm(() => {
- KNOWN_VARIANTS = new Set([
- "low",
- "medium",
- "high",
- "xhigh",
- "max",
- "minimal",
- "none",
- "auto",
- "thinking"
- ]);
-});
-
// packages/model-core/src/model-resolver.ts
function normalizeFallbackModels(models2) {
if (!models2)
@@ -26518,20 +26652,7 @@ function normalizeFallbackModels(models2) {
var init_model_resolver = () => {};
// packages/model-core/src/model-string-parser.ts
-var KNOWN_VARIANTS2;
-var init_model_string_parser = __esm(() => {
- KNOWN_VARIANTS2 = new Set([
- "low",
- "medium",
- "high",
- "xhigh",
- "max",
- "minimal",
- "none",
- "auto",
- "thinking"
- ]);
-});
+var init_model_string_parser = () => {};
// packages/model-core/src/fallback-chain-from-models.ts
var init_fallback_chain_from_models = () => {};
@@ -26675,8 +26796,8 @@ var init_supplemental_entries = __esm(() => {
output: 128000
}
},
- "gpt-5.4-mini-fast": {
- id: "gpt-5.4-mini-fast",
+ "gpt-5.6-luna-fast": {
+ id: "gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -26709,7 +26830,7 @@ var init_bundled_snapshot = __esm(() => {
});
// packages/model-core/src/model-capabilities/runtime-model-readers.ts
-function isRecord2(value) {
+function isRecord6(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function readNumber(value) {
@@ -26727,7 +26848,7 @@ function normalizeVariantKeys(value) {
if (arrayVariants) {
return arrayVariants.filter((v) => typeof v === "string").map((variant) => variant.toLowerCase());
}
- if (!isRecord2(value)) {
+ if (!isRecord6(value)) {
return;
}
const variants = Object.keys(value).map((variant) => variant.toLowerCase());
@@ -26738,7 +26859,7 @@ function readModalityKeys(value) {
if (stringArray) {
return stringArray.filter((entry) => typeof entry === "string").map((entry) => entry.toLowerCase());
}
- if (!isRecord2(value)) {
+ if (!isRecord6(value)) {
return;
}
const fromNested = Object.values(value).filter((v) => Array.isArray(v)).flat().filter((item) => typeof item === "string");
@@ -26749,7 +26870,7 @@ function readModalityKeys(value) {
return enabled.length > 0 ? enabled : undefined;
}
function normalizeModalities(value) {
- if (!isRecord2(value)) {
+ if (!isRecord6(value)) {
return;
}
const input = readModalityKeys(value.input);
@@ -26763,7 +26884,7 @@ function normalizeModalities(value) {
};
}
function readRuntimeModelCapabilities(runtimeModel) {
- return isRecord2(runtimeModel?.capabilities) ? runtimeModel.capabilities : undefined;
+ return isRecord6(runtimeModel?.capabilities) ? runtimeModel.capabilities : undefined;
}
function readRuntimeModelBoolean(runtimeModel, keys) {
const runtimeCapabilities = readRuntimeModelCapabilities(runtimeModel);
@@ -26780,7 +26901,7 @@ function readRuntimeModelBoolean(runtimeModel, keys) {
return;
}
function readRuntimeModel(runtimeModel) {
- return isRecord2(runtimeModel) ? runtimeModel : undefined;
+ return isRecord6(runtimeModel) ? runtimeModel : undefined;
}
function readRuntimeModelVariants(runtimeModel) {
const rootVariants = normalizeVariantKeys(runtimeModel?.variants);
@@ -26828,8 +26949,8 @@ function readRuntimeModelToolCallSupport(runtimeModel) {
return readRuntimeModelBoolean(runtimeModel, ["toolCall", "tool_call", "toolcall"]);
}
function readRuntimeModelLimitOutput(runtimeModel) {
- const limit = isRecord2(runtimeModel?.limit) ? runtimeModel.limit : readRuntimeModelCapabilities(runtimeModel)?.limit;
- if (!isRecord2(limit)) {
+ const limit = isRecord6(runtimeModel?.limit) ? runtimeModel.limit : readRuntimeModelCapabilities(runtimeModel)?.limit;
+ if (!isRecord6(limit)) {
return;
}
const output = readNumber(limit.output);
@@ -26876,7 +26997,7 @@ function getModelCapabilities(input) {
const maxOutputTokensSource = runtimeMaxOutputTokens !== undefined ? "runtime" : snapshotEntry?.limit?.output !== undefined ? snapshotSource : "none";
const toolCallSource = runtimeToolCall !== undefined ? "runtime" : snapshotEntry?.toolCall !== undefined ? snapshotSource : "none";
const modalitiesSource = runtimeModalities !== undefined ? "runtime" : snapshotEntry?.modalities !== undefined ? snapshotSource : "none";
- const resolutionMode = snapshotSource !== "none" && canonicalization.source === "canonical" ? "snapshot-backed" : snapshotSource !== "none" ? "alias-backed" : familySource === "heuristic" || variantsSource === "heuristic" || reasoningEffortsSource === "heuristic" ? "heuristic-backed" : "unknown";
+ const resolutionMode = canonicalization.source === "canonical" ? snapshotSource !== "none" ? "snapshot-backed" : familySource === "heuristic" || variantsSource === "heuristic" || reasoningEffortsSource === "heuristic" ? "heuristic-backed" : "unknown" : "alias-backed";
return {
requestedModelID: canonicalization.requestedModelID,
canonicalModelID: canonicalization.canonicalModelID,
@@ -26932,7 +27053,7 @@ var init_model_capabilities = __esm(() => {
var init_context_limit_resolver = () => {};
// packages/model-core/src/model-capabilities-snapshot.ts
-function isRecord3(value) {
+function isRecord7(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function readBoolean(value) {
@@ -26952,7 +27073,7 @@ function readStringArray2(value) {
return result.length > 0 ? result : undefined;
}
function normalizeSnapshotEntry(rawModelID, rawModel) {
- if (!isRecord3(rawModel)) {
+ if (!isRecord7(rawModel)) {
return;
}
const id = readString(rawModel.id) ?? rawModelID;
@@ -26960,14 +27081,14 @@ function normalizeSnapshotEntry(rawModelID, rawModel) {
const reasoning = readBoolean(rawModel.reasoning);
const temperature = readBoolean(rawModel.temperature);
const toolCall = readBoolean(rawModel.tool_call);
- const rawModalities = isRecord3(rawModel.modalities) ? rawModel.modalities : undefined;
+ const rawModalities = isRecord7(rawModel.modalities) ? rawModel.modalities : undefined;
const modalitiesInput = readStringArray2(rawModalities?.input);
const modalitiesOutput = readStringArray2(rawModalities?.output);
const modalities = modalitiesInput || modalitiesOutput ? {
...modalitiesInput ? { input: modalitiesInput } : {},
...modalitiesOutput ? { output: modalitiesOutput } : {}
} : undefined;
- const rawLimit = isRecord3(rawModel.limit) ? rawModel.limit : undefined;
+ const rawLimit = isRecord7(rawModel.limit) ? rawModel.limit : undefined;
const limitContext = readNumber2(rawLimit?.context);
const limitInput = readNumber2(rawLimit?.input);
const limitOutput = readNumber2(rawLimit?.output);
@@ -27007,13 +27128,13 @@ function mergeSnapshotEntries(existing, incoming) {
}
function buildModelCapabilitiesSnapshotFromModelsDev(raw) {
const models2 = {};
- const providers = isRecord3(raw) ? raw : {};
+ const providers = isRecord7(raw) ? raw : {};
for (const providerValue of Object.values(providers)) {
- if (!isRecord3(providerValue)) {
+ if (!isRecord7(providerValue)) {
continue;
}
const providerModels = providerValue.models;
- if (!isRecord3(providerModels)) {
+ if (!isRecord7(providerModels)) {
continue;
}
for (const [rawModelID, rawModel] of Object.entries(providerModels)) {
@@ -27056,9 +27177,9 @@ var init_src3 = __esm(() => {
init_model_capability_heuristics();
init_model_capability_guardrails();
init_model_settings_compatibility();
+ init_reasoning_level();
init_model_string_parser();
init_fallback_chain_from_models();
- init_known_variants();
init_model_error_classifier();
init_runtime_fallback_auto_retry_signal();
init_runtime_fallback_error_classifier();
@@ -27283,7 +27404,7 @@ var init_anthropic_categories = __esm(() => {
ANTHROPIC_CATEGORIES = [
{
name: "unspecified-high",
- config: { model: "apitopia/kimi-k3", variant: "max" },
+ config: { model: "kimi-for-coding/k3", variant: "max" },
description: "Tasks that don't fit other categories, high effort required",
promptAppend: UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND
}
@@ -27441,7 +27562,7 @@ var init_kimi_categories = __esm(() => {
KIMI_CATEGORIES = [
{
name: "writing",
- config: { model: "kimi-for-coding/kimi-k3" },
+ config: { model: "kimi-for-coding/k3", variant: "low" },
description: "Documentation, prose, technical writing",
promptAppend: WRITING_CATEGORY_PROMPT_APPEND
}
@@ -27544,7 +27665,7 @@ Approach:
</Category_Context>
<Caller_Warning>
-THIS CATEGORY USES A SMALLER/FASTER MODEL (gpt-5.4-mini).
+THIS CATEGORY USES A SMALLER/FASTER MODEL (gpt-5.6-luna-fast).
The model executing this task is optimized for speed over depth. Your prompt MUST be:
@@ -27610,14 +27731,15 @@ var init_openai_categories = __esm(() => {
},
{
name: "deep",
- config: { model: "openai/gpt-5.6-terra", variant: "xhigh" },
+ config: { model: "openai/gpt-5.6-sol", variant: "medium" },
description: "Goal-oriented autonomous problem-solving on hairy problems requiring deep research. ONE goal + ONE deliverable per call — multiple goals must fan out as parallel `deep` calls, never bundled into one.",
promptAppend: DEEP_CATEGORY_PROMPT_APPEND,
- resolvePromptAppend: resolveDeepCategoryPromptAppend
+ resolvePromptAppend: resolveDeepCategoryPromptAppend,
+ requiresModel: "gpt-5.6-sol"
},
{
name: "quick",
- config: { model: "apitopia/kimi-for-coding-highspeed" },
+ config: { model: "kimi-for-coding/kimi-for-coding-highspeed" },
description: "Trivial tasks - single file changes, typo fixes, simple modifications",
promptAppend: QUICK_CATEGORY_PROMPT_APPEND
},
@@ -27634,7 +27756,7 @@ var init_openai_categories = __esm(() => {
function buildCategoryRecord(selector) {
return Object.fromEntries(BUILTIN_CATEGORIES.map((definition) => [definition.name, selector(definition)]));
}
-var BUILTIN_CATEGORIES, DEFAULT_CATEGORIES, CATEGORY_PROMPT_APPENDS, CATEGORY_DESCRIPTIONS, CATEGORY_PROMPT_APPEND_RESOLVERS;
+var BUILTIN_CATEGORIES, DEFAULT_CATEGORIES, CATEGORY_PROMPT_APPENDS, CATEGORY_DESCRIPTIONS, CATEGORY_PROMPT_APPEND_RESOLVERS, BUILTIN_CATEGORY_REQUIRES_MODEL;
var init_builtin_categories = __esm(() => {
init_anthropic_categories();
init_google_categories();
@@ -27650,6 +27772,7 @@ var init_builtin_categories = __esm(() => {
CATEGORY_PROMPT_APPENDS = buildCategoryRecord((definition) => definition.promptAppend);
CATEGORY_DESCRIPTIONS = buildCategoryRecord((definition) => definition.description);
CATEGORY_PROMPT_APPEND_RESOLVERS = Object.fromEntries(BUILTIN_CATEGORIES.filter((definition) => definition.resolvePromptAppend !== undefined).map((definition) => [definition.name, definition.resolvePromptAppend]));
+ BUILTIN_CATEGORY_REQUIRES_MODEL = Object.fromEntries(BUILTIN_CATEGORIES.filter((definition) => definition.requiresModel !== undefined).map((definition) => [definition.name, definition.requiresModel]));
});
// packages/omo-opencode/src/tools/delegate-task/constants.ts
@@ -28093,50 +28216,6 @@ var init_write_file_atomically = __esm(() => {
init_tolerant_fsync();
});
-// packages/omo-opencode/src/shared/model-requirements.ts
-var init_model_requirements2 = __esm(() => {
- init_src3();
-});
-
-// packages/omo-opencode/src/shared/agent-variant.ts
-var init_agent_variant = __esm(() => {
- init_agent_display_names();
- init_model_requirements2();
-});
-
-// packages/omo-opencode/src/shared/session-cursor.ts
-var sessionCursors;
-var init_session_cursor = __esm(() => {
- sessionCursors = new Map;
-});
-
-// packages/omo-opencode/src/shared/shell-env.ts
-function detectShellType() {
- if (process.env.SHELL) {
- const shell = process.env.SHELL;
- if (shell.includes("csh") || shell.includes("tcsh")) {
- return "csh";
- }
- return "unix";
- }
- if (process.platform === "win32" && (process.env.BASH_VERSION || process.env.MSYSTEM || process.env.WSL_DISTRO_NAME)) {
- return "unix";
- }
- if (process.env.PSModulePath) {
- return "powershell";
- }
- return process.platform === "win32" ? "cmd" : "unix";
-}
-var init_shell_env = () => {};
-
-// packages/omo-opencode/src/shared/system-directive.ts
-var init_system_directive = () => {};
-
-// packages/omo-opencode/src/shared/agent-tool-restrictions.ts
-var init_agent_tool_restrictions = __esm(() => {
- init_agent_display_names();
-});
-
// packages/omo-opencode/src/shared/json-file-cache-store.ts
import { existsSync as existsSync12, mkdirSync as mkdirSync5, readFileSync as readFileSync4, writeFileSync as writeFileSync4 } from "node:fs";
import { join as join16 } from "node:path";
@@ -28411,41 +28490,11 @@ var init_connected_providers_cache = __esm(() => {
} = defaultConnectedProvidersCacheStore);
});
-// packages/omo-opencode/src/shared/model-resolver.ts
-var init_model_resolver2 = __esm(() => {
- init_src3();
- init_connected_providers_cache();
-});
-
-// packages/omo-opencode/src/shared/model-normalization.ts
-var init_model_normalization = () => {};
-
-// packages/omo-opencode/src/shared/model-resolution-pipeline.ts
-var init_model_resolution_pipeline = __esm(() => {
- init_connected_providers_cache();
-});
-
-// packages/omo-opencode/src/shared/model-availability.ts
-import { existsSync as existsSync13, readFileSync as readFileSync5 } from "fs";
-import { join as join17 } from "path";
-function isModelCacheAvailable() {
- if (hasProviderModelsCache()) {
- return true;
- }
- const cacheFile = join17(getOpenCodeCacheDir(), "models.json");
- return existsSync13(cacheFile);
-}
-var init_model_availability = __esm(() => {
- init_logger2();
- init_data_path();
- init_connected_providers_cache();
-});
-
// packages/omo-opencode/src/generated/model-capabilities.generated.json
var model_capabilities_generated_default;
var init_model_capabilities_generated = __esm(() => {
model_capabilities_generated_default = {
- generatedAt: "2026-07-25T14:04:01.805Z",
+ generatedAt: "2026-07-29T03:28:21.339Z",
sourceUrl: "https://models.dev/api.json",
models: {
"glm-5": {
@@ -28880,6 +28929,8 @@ var init_model_capabilities_generated = __esm(() => {
input: [
"text",
"image",
+ "video",
+ "audio",
"pdf"
],
output: [
@@ -28887,8 +28938,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 1e6,
- output: 64000
+ context: 1048576,
+ output: 65536
}
},
"google/gemini-2.5-flash-lite": {
@@ -29530,28 +29581,29 @@ var init_model_capabilities_generated = __esm(() => {
output: 262000
}
},
- "accounts/fireworks/routers/glm-5p1-fast": {
- id: "accounts/fireworks/routers/glm-5p1-fast",
- family: "glm",
+ "accounts/fireworks/routers/kimi-k2p6-turbo": {
+ id: "accounts/fireworks/routers/kimi-k2p6-turbo",
+ family: "kimi-thinking",
reasoning: true,
temperature: true,
toolCall: true,
modalities: {
input: [
- "text"
+ "text",
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 202800,
- output: 131072
+ context: 262000,
+ output: 262000
}
},
- "accounts/fireworks/routers/kimi-k2p6-turbo": {
- id: "accounts/fireworks/routers/kimi-k2p6-turbo",
- family: "kimi-thinking",
+ "accounts/fireworks/routers/kimi-k2p7-code-fast": {
+ id: "accounts/fireworks/routers/kimi-k2p7-code-fast",
+ family: "kimi-k2",
reasoning: true,
temperature: true,
toolCall: true,
@@ -29569,11 +29621,11 @@ var init_model_capabilities_generated = __esm(() => {
output: 262000
}
},
- "accounts/fireworks/routers/kimi-k2p7-code-fast": {
- id: "accounts/fireworks/routers/kimi-k2p7-code-fast",
- family: "kimi-k2",
+ "accounts/fireworks/routers/kimi-k3-fast": {
+ id: "accounts/fireworks/routers/kimi-k3-fast",
+ family: "kimi-k3",
reasoning: true,
- temperature: true,
+ temperature: false,
toolCall: true,
modalities: {
input: [
@@ -29585,8 +29637,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 262000,
- output: 262000
+ context: 1048576,
+ output: 131072
}
},
"accounts/fireworks/models/qwen3p7-plus": {
@@ -29707,25 +29759,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 512000
}
},
- "accounts/fireworks/models/glm-5p1": {
- id: "accounts/fireworks/models/glm-5p1",
- family: "glm",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 202800,
- output: 131072
- }
- },
"accounts/fireworks/models/deepseek-v4-pro": {
id: "accounts/fireworks/models/deepseek-v4-pro",
family: "deepseek-thinking",
@@ -29803,6 +29836,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 131072
}
},
+ "accounts/fireworks/models/kimi-k3": {
+ id: "accounts/fireworks/models/kimi-k3",
+ family: "kimi-k3",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1048576,
+ output: 131072
+ }
+ },
"microsoft/phi-4-mini-instruct": {
id: "microsoft/phi-4-mini-instruct",
family: "phi",
@@ -30950,6 +31003,27 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
+ "anthropic/claude-opus-5": {
+ id: "anthropic/claude-opus-5",
+ family: "claude-opus",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "pdf"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ output: 128000
+ }
+ },
"z-ai/glm-5": {
id: "z-ai/glm-5",
family: "glm",
@@ -31154,8 +31228,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
- "openai/gpt-5.4-mini": {
- id: "openai/gpt-5.4-mini",
+ "openai/gpt-5.6-luna-fast": {
+ id: "openai/gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -31383,15 +31457,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1e6,
+ context: 200000,
output: 128000
}
},
@@ -31511,15 +31584,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1e6,
+ context: 200000,
output: 128000
}
},
@@ -33775,7 +33847,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 400000,
- output: 1e5,
+ output: 128000,
input: 272000
}
},
@@ -33869,8 +33941,8 @@ var init_model_capabilities_generated = __esm(() => {
toolCall: false,
modalities: {
input: [
- "pdf",
"image",
+ "pdf",
"text"
],
output: [
@@ -33879,8 +33951,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 16384,
- input: 111616
+ output: 16384
}
},
"openai/gpt-5.3-codex-spark": {
@@ -34919,7 +34990,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 524288,
- output: 524288
+ output: 262144
}
},
"zai-org/glm-4.7": {
@@ -34942,6 +35013,27 @@ var init_model_capabilities_generated = __esm(() => {
input: 200000
}
},
+ "moonshotai/kimi-k3": {
+ id: "moonshotai/kimi-k3",
+ family: "kimi-k3",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "video"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1048576,
+ output: 131072
+ }
+ },
"microsoft/phi-4-multimodal-instruct": {
id: "microsoft/phi-4-multimodal-instruct",
reasoning: true,
@@ -35037,6 +35129,46 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
+ "nvidia/cosmos-reason2-8b": {
+ id: "nvidia/cosmos-reason2-8b",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "video"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 16384
+ }
+ },
+ "nvidia/nemotron-nano-12b-v2-vl": {
+ id: "nvidia/nemotron-nano-12b-v2-vl",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 131072
+ }
+ },
"nvidia/bevformer": {
id: "nvidia/bevformer",
reasoning: false,
@@ -35075,6 +35207,25 @@ var init_model_capabilities_generated = __esm(() => {
input: 256000
}
},
+ "nvidia/llama-3.3-nemotron-super-49b-v1.5": {
+ id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1.5",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 131072
+ }
+ },
"nvidia/cosmos-transfer2_5-2b": {
id: "nvidia/cosmos-transfer2_5-2b",
reasoning: false,
@@ -35095,6 +35246,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.1-nemotron-nano-8b-v1": {
+ id: "nvidia/llama-3.1-nemotron-nano-8b-v1",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 16384
+ }
+ },
"nvidia/active-speaker-detection": {
id: "nvidia/active-speaker-detection",
reasoning: false,
@@ -35131,8 +35301,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "nvidia/llama-3_1-nemotron-safety-guard-8b-v3": {
- id: "nvidia/llama-3_1-nemotron-safety-guard-8b-v3",
+ "nvidia/llama-3.1-nemotron-safety-guard-8b-v3": {
+ id: "nvidia/llama-3.1-nemotron-safety-guard-8b-v3",
family: "nemotron",
reasoning: false,
temperature: false,
@@ -35150,6 +35320,45 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.3-nemotron-super-49b-v1": {
+ id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1",
+ family: "nemotron",
+ reasoning: false,
+ temperature: true,
+ toolCall: false,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 16384,
+ input: 128000
+ }
+ },
+ "nvidia/llama-3.1-nemotron-70b-instruct": {
+ id: "nvidia/llama-3.1-nemotron-70b-instruct",
+ family: "nemotron",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 8192
+ }
+ },
"nvidia/nemotron-3-super-120b-a12b": {
id: "nvidia/nemotron-3-super-120b-a12b",
family: "nemotron",
@@ -35209,6 +35418,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.1-nemotron-ultra-253b-v1": {
+ id: "nvidia/llama-3.1-nemotron-ultra-253b-v1",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 16384
+ }
+ },
"nvidia/llama-3_2-nemoretriever-300m-embed-v1": {
id: "nvidia/llama-3_2-nemoretriever-300m-embed-v1",
reasoning: false,
@@ -35286,6 +35514,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.1-nemotron-nano-vl-8b-v1": {
+ id: "nvidia/llama-3.1-nemotron-nano-vl-8b-v1",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 32768,
+ output: 16384
+ }
+ },
"nvidia/synthetic-video-detector": {
id: "nvidia/synthetic-video-detector",
reasoning: false,
@@ -35382,6 +35630,24 @@ var init_model_capabilities_generated = __esm(() => {
input: 128000
}
},
+ "nvidia/riva-translate-4b-instruct-v1.1": {
+ id: "nvidia/riva-translate-4b-instruct-v1.1",
+ reasoning: false,
+ temperature: false,
+ toolCall: false,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 4096
+ }
+ },
"nvidia/nemotron-content-safety-reasoning-4b": {
id: "nvidia/nemotron-content-safety-reasoning-4b",
family: "nemotron",
@@ -35515,14 +35781,15 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "nvidia/riva-translate-4b-instruct-v1_1": {
- id: "nvidia/riva-translate-4b-instruct-v1_1",
+ "google/google-paligemma": {
+ id: "google/google-paligemma",
reasoning: false,
- temperature: false,
+ temperature: true,
toolCall: false,
modalities: {
input: [
- "text"
+ "text",
+ "image"
],
output: [
"text"
@@ -35530,11 +35797,12 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 4096
+ output: 8192
}
},
- "google/google-paligemma": {
- id: "google/google-paligemma",
+ "google/gemma-3-4b-it": {
+ id: "google/gemma-3-4b-it",
+ family: "gemma",
reasoning: false,
temperature: true,
toolCall: false,
@@ -35548,8 +35816,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 128000,
- output: 8192
+ context: 131072,
+ output: 16384
}
},
"google/gemma-2-2b-it": {
@@ -35570,6 +35838,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "google/gemma-3-12b-it": {
+ id: "google/gemma-3-12b-it",
+ family: "gemma",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 16384
+ }
+ },
"google/gemma-3n-e4b-it": {
id: "google/gemma-3n-e4b-it",
reasoning: false,
@@ -35750,8 +36038,8 @@ var init_model_capabilities_generated = __esm(() => {
input: 256000
}
},
- "abacusai/dracarys-llama-3_1-70b-instruct": {
- id: "abacusai/dracarys-llama-3_1-70b-instruct",
+ "abacusai/dracarys-llama-3.1-70b-instruct": {
+ id: "abacusai/dracarys-llama-3.1-70b-instruct",
reasoning: false,
temperature: true,
toolCall: true,
@@ -35768,8 +36056,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "upstage/solar-10_7b-instruct": {
- id: "upstage/solar-10_7b-instruct",
+ "upstage/solar-10.7b-instruct": {
+ id: "upstage/solar-10.7b-instruct",
reasoning: false,
temperature: true,
toolCall: true,
@@ -35863,6 +36151,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 0
}
},
+ "mistralai/mistral-medium-3.5-128b": {
+ id: "mistralai/Mistral-Medium-3.5-128B",
+ family: "mistral-medium",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "image",
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 262144,
+ output: 131072
+ }
+ },
"mistralai/mistral-nemotron": {
id: "mistralai/mistral-nemotron",
family: "nemotron",
@@ -35944,34 +36252,36 @@ var init_model_capabilities_generated = __esm(() => {
input: 262144
}
},
- "mistralai/mixtral-8x22b-instruct": {
- id: "mistralai/mixtral-8x22b-instruct",
+ "mistralai/ministral-14b-instruct-2512": {
+ id: "mistralai/ministral-14b-instruct-2512",
+ family: "ministral",
reasoning: false,
temperature: true,
- toolCall: true,
+ toolCall: false,
modalities: {
input: [
"text",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 65536,
- output: 65536
- },
- family: "mistral"
+ context: 262144,
+ output: 32768,
+ input: 262144
+ }
},
- "mistralai/mistral-7b-instruct-v03": {
- id: "mistralai/mistral-7b-instruct-v03",
+ "mistralai/mixtral-8x22b-instruct": {
+ id: "mistralai/mixtral-8x22b-instruct",
reasoning: false,
temperature: true,
toolCall: true,
modalities: {
input: [
- "text"
+ "text",
+ "pdf"
],
output: [
"text"
@@ -35980,7 +36290,8 @@ var init_model_capabilities_generated = __esm(() => {
limit: {
context: 65536,
output: 65536
- }
+ },
+ family: "mistral"
},
"mistralai/magistral-small-2506": {
id: "mistralai/Magistral-Small-2506",
@@ -36020,6 +36331,24 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
+ "mistralai/mistral-7b-instruct-v0.3": {
+ id: "mistralai/Mistral-7B-Instruct-v0.3",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 32768,
+ output: 32768
+ }
+ },
"bytedance/seed-oss-36b-instruct": {
id: "bytedance/seed-oss-36b-instruct",
family: "seed",
@@ -36250,6 +36579,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
+ "poolside/laguna-xs-2.1": {
+ id: "poolside/laguna-xs-2.1",
+ family: "laguna",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 262144,
+ output: 32768
+ }
+ },
"stepfun-ai/step-3.5-flash": {
id: "stepfun-ai/Step-3.5-Flash",
reasoning: true,
@@ -36751,15 +37099,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1050000,
+ context: 372000,
input: 922000,
output: 128000
}
@@ -36796,8 +37143,7 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
@@ -36892,8 +37238,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 163840
}
},
- "gpt-5.4-mini": {
- id: "gpt-5.4-mini",
+ "gpt-5.6-luna-fast": {
+ id: "gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -36908,7 +37254,7 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 400000,
+ context: 272000,
input: 272000,
output: 128000
}
@@ -37032,15 +37378,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1050000,
+ context: 372000,
input: 922000,
output: 128000
}
@@ -37205,18 +37550,15 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "video",
- "audio",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1048576,
- output: 65536,
+ context: 1e6,
+ output: 128000,
input: 128000
}
},
@@ -37507,13 +37849,12 @@ var init_model_capabilities_generated = __esm(() => {
"gemma-4-26b-a4b-it": {
id: "gemma-4-26b-a4b-it",
family: "gemma",
- reasoning: true,
+ reasoning: false,
temperature: true,
toolCall: true,
modalities: {
input: [
- "text",
- "image"
+ "text"
],
output: [
"text"
@@ -37521,7 +37862,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 256000,
- output: 16384
+ output: 25600
}
},
"gemini-embedding-001": {
@@ -40211,8 +40552,8 @@ var init_model_capabilities_generated = __esm(() => {
input: 128000,
output: 128000
},
- family: "deepseek",
- temperature: true
+ temperature: true,
+ family: "deepseek"
},
"mirothinker-1-7-deepresearch-mini": {
id: "mirothinker-1-7-deepresearch-mini",
@@ -43120,26 +43461,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
- "nvidia/llama-3.3-nemotron-super-49b-v1": {
- id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1",
- family: "nemotron",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- input: 128000,
- output: 16384
- }
- },
"nvidia/llama-3_3-nemotron-super-49b-v1_5": {
id: "nvidia/Llama-3_3-Nemotron-Super-49B-v1_5",
family: "nemotron",
@@ -44165,7 +44486,7 @@ var init_model_capabilities_generated = __esm(() => {
limit: {
context: 131072,
input: 41000,
- output: 8192
+ output: 16384
},
temperature: true,
family: "qwen"
@@ -44921,26 +45242,6 @@ var init_model_capabilities_generated = __esm(() => {
},
temperature: true
},
- "mistralai/ministral-14b-instruct-2512": {
- id: "mistralai/ministral-14b-instruct-2512",
- family: "ministral",
- reasoning: false,
- toolCall: false,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 262144,
- input: 262144,
- output: 32768
- }
- },
"mistralai/mixtral-8x22b-instruct-v0.1": {
id: "mistralai/mixtral-8x22b-instruct-v0.1",
family: "mixtral",
@@ -47707,8 +48008,7 @@ var init_model_capabilities_generated = __esm(() => {
context: 128000,
input: 128000,
output: 16384
- },
- temperature: false
+ }
},
"openai/o3-pro-2025-06-10": {
id: "openai/o3-pro-2025-06-10",
@@ -47792,7 +48092,7 @@ var init_model_capabilities_generated = __esm(() => {
},
"openai/gpt-4o-mini-search-preview": {
id: "openai/gpt-4o-mini-search-preview",
- family: "o-mini",
+ family: "gpt-mini",
reasoning: false,
toolCall: false,
modalities: {
@@ -47808,7 +48108,7 @@ var init_model_capabilities_generated = __esm(() => {
input: 111616,
output: 16384
},
- temperature: false
+ temperature: true
},
"baidu/ernie-4.5-vl-28b-a3b": {
id: "baidu/ernie-4.5-vl-28b-a3b",
@@ -47928,7 +48228,7 @@ var init_model_capabilities_generated = __esm(() => {
limit: {
context: 262144,
input: 262144,
- output: 80000
+ output: 262144
},
temperature: true,
family: "trinity"
@@ -48313,7 +48613,7 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 131072,
+ context: 65536,
output: 65536
}
},
@@ -48857,9 +49157,28 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
+ "abliterated-model-large": {
+ id: "abliterated-model-large",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ input: 1e6,
+ output: 999990
+ }
+ },
"abliterated-model": {
id: "abliterated-model",
- reasoning: false,
+ reasoning: true,
temperature: true,
toolCall: true,
modalities: {
@@ -49445,6 +49764,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
+ "gpt-4o-mini-transcribe": {
+ id: "gpt-4o-mini-transcribe",
+ family: "gpt",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "audio"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 16000,
+ output: 16000
+ }
+ },
"qwen3-235b-a22b-thinking-2507": {
id: "qwen3-235b-a22b-thinking-2507",
family: "qwen",
@@ -51089,6 +51428,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
+ "gpt-4o-transcribe": {
+ id: "gpt-4o-transcribe",
+ family: "gpt",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "audio"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 16000,
+ output: 16000
+ }
+ },
"grok-4-20-non-reasoning": {
id: "grok-4-20-non-reasoning",
family: "grok",
@@ -53738,8 +54097,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 30000
}
},
- "gpt-5.4-mini-2026-03-17": {
- id: "gpt-5.4-mini-2026-03-17",
+ "gpt-5.6-luna-fast-2026-03-17": {
+ id: "gpt-5.6-luna-fast-2026-03-17",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -54462,9 +54821,9 @@ var init_model_capabilities_generated = __esm(() => {
"o1-mini": {
id: "o1-mini",
family: "o-mini",
- reasoning: true,
+ reasoning: false,
temperature: false,
- toolCall: true,
+ toolCall: false,
modalities: {
input: [
"text"
@@ -55912,6 +56271,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "gemini-embedding": {
+ id: "gemini-embedding",
+ family: "gemini",
+ reasoning: false,
+ temperature: false,
+ toolCall: false,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 2048,
+ output: 1
+ }
+ },
"anthropic--claude-4-sonnet": {
id: "anthropic--claude-4-sonnet",
family: "claude-sonnet",
@@ -56750,24 +57128,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "mistralai/mistral-7b-instruct-v0.3": {
- id: "mistralai/Mistral-7B-Instruct-v0.3",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 32768,
- output: 32768
- }
- },
"pioneer/auto": {
id: "pioneer/auto",
family: "auto",
@@ -57892,27 +58252,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 262144
}
},
- "moonshotai/kimi-k3": {
- id: "moonshotai/kimi-k3",
- family: "kimi-k3",
- reasoning: true,
- temperature: false,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image",
- "video"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 1048576,
- output: 131072
- }
- },
"moonshotai/kimi-k3-free": {
id: "moonshotai/kimi-k3-free",
family: "kimi-k3",
@@ -57991,7 +58330,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 16384
+ output: 32000
},
family: "gpt-codex"
},
@@ -58231,26 +58570,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "mistralai/mistral-medium-3.5-128b": {
- id: "mistralai/Mistral-Medium-3.5-128B",
- family: "mistral-medium",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "image",
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 262144,
- output: 131072
- }
- },
"mistralai/voxtral-small-24b-2507": {
id: "mistralai/voxtral-small-24b-2507",
family: "mistral",
@@ -59317,45 +59636,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "llama-3.2-11b-vision-instruct": {
- id: "llama-3.2-11b-vision-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 8192
- }
- },
- "phi-3-medium-128k-instruct": {
- id: "phi-3-medium-128k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"cohere-command-a": {
id: "cohere-command-a",
family: "command-a",
@@ -59375,44 +59655,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "meta-llama-3.1-70b-instruct": {
- id: "meta-llama-3.1-70b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32768
- }
- },
- "meta-llama-3.1-405b-instruct": {
- id: "meta-llama-3.1-405b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32768
- }
- },
"cohere-embed-v3-multilingual": {
id: "cohere-embed-v3-multilingual",
family: "cohere-embed",
@@ -59489,63 +59731,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "meta-llama-3-8b-instruct": {
- id: "meta-llama-3-8b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 8192,
- output: 2048
- }
- },
- "gpt-3.5-turbo-0301": {
- id: "gpt-3.5-turbo-0301",
- family: "gpt",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 4096,
- output: 4096
- }
- },
- "cohere-command-r-plus-08-2024": {
- id: "cohere-command-r-plus-08-2024",
- family: "command-r",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4000
- }
- },
"phi-4-mini": {
id: "phi-4-mini",
family: "phi",
@@ -59565,45 +59750,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "meta-llama-3.1-8b-instruct": {
- id: "meta-llama-3.1-8b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32768
- }
- },
- "llama-3.2-90b-vision-instruct": {
- id: "llama-3.2-90b-vision-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 8192
- }
- },
"phi-4-reasoning-plus": {
id: "phi-4-reasoning-plus",
family: "phi",
@@ -59623,63 +59769,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "phi-3-small-8k-instruct": {
- id: "phi-3-small-8k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 8192,
- output: 2048
- }
- },
- "phi-3-small-128k-instruct": {
- id: "phi-3-small-128k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
- "phi-3-mini-128k-instruct": {
- id: "phi-3-mini-128k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"mistral-small-2503": {
id: "mistral-small-2503",
family: "mistral-small",
@@ -59700,44 +59789,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
- "meta-llama-3-70b-instruct": {
- id: "meta-llama-3-70b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 8192,
- output: 2048
- }
- },
- "gpt-4-32k": {
- id: "gpt-4-32k",
- family: "gpt",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 32768,
- output: 32768
- }
- },
"cohere-embed-v-4-0": {
id: "cohere-embed-v-4-0",
family: "cohere-embed",
@@ -59758,26 +59809,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 1536
}
},
- "gpt-5.2-chat": {
- id: "gpt-5.2-chat",
- family: "gpt-codex",
- reasoning: true,
- temperature: false,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 16384
- }
- },
"phi-4-mini-reasoning": {
id: "phi-4-mini-reasoning",
family: "phi",
@@ -59817,86 +59848,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "deepseek-r1-0528": {
- id: "deepseek-r1-0528",
- family: "deepseek-thinking",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 164000,
- output: 164000
- }
- },
- "phi-3-mini-4k-instruct": {
- id: "phi-3-mini-4k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 4096,
- output: 1024
- }
- },
- "gpt-5.1-chat": {
- id: "gpt-5.1-chat",
- family: "gpt-codex",
- reasoning: true,
- temperature: false,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image",
- "audio"
- ],
- output: [
- "text",
- "image",
- "audio"
- ]
- },
- limit: {
- context: 128000,
- output: 16384
- }
- },
- "phi-3.5-moe-instruct": {
- id: "phi-3.5-moe-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"phi-4-reasoning": {
id: "phi-4-reasoning",
family: "phi",
@@ -59942,26 +59893,6 @@ var init_model_capabilities_generated = __esm(() => {
reasoning: false,
temperature: true,
toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
- "gpt-3.5-turbo-0613": {
- id: "gpt-3.5-turbo-0613",
- family: "gpt",
- reasoning: false,
- temperature: true,
- toolCall: false,
modalities: {
input: [
"text"
@@ -59971,8 +59902,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 16384,
- output: 16384
+ context: 430000,
+ output: 43000
}
},
"ministral-3b": {
@@ -59994,25 +59925,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "cohere-command-r-08-2024": {
- id: "cohere-command-r-08-2024",
- family: "command-r",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4000
- }
- },
"model-router": {
id: "model-router",
family: "model-router",
@@ -60089,44 +60001,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
- "phi-3-medium-4k-instruct": {
- id: "phi-3-medium-4k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 4096,
- output: 1024
- }
- },
- "phi-3.5-mini-instruct": {
- id: "phi-3.5-mini-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"text-embedding-ada-002": {
id: "text-embedding-ada-002",
family: "text-embedding",
@@ -60167,26 +60041,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "gpt-5-chat": {
- id: "gpt-5-chat",
- family: "gpt-codex",
- reasoning: true,
- temperature: false,
- toolCall: false,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 16384
- }
- },
"codex-mini": {
id: "codex-mini",
family: "gpt-codex-mini",
@@ -60206,25 +60060,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 1e5
}
},
- "deepseek-v3.1": {
- id: "deepseek-v3.1",
- family: "deepseek",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32000
- }
- },
"glm5.2-fast": {
id: "glm5.2-fast",
family: "glm",
@@ -61004,6 +60839,27 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
+ "duo-chat-opus-5": {
+ id: "duo-chat-opus-5",
+ family: "claude-opus",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "pdf"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ output: 128000
+ }
+ },
"ling-1t": {
id: "Ling-1T",
family: "ling",
@@ -61078,25 +60934,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 65536
}
},
- "nvidia-nemotron-cascade-2-30b-a3b": {
- id: "nvidia-nemotron-cascade-2-30b-a3b",
- family: "nemotron",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 256000,
- output: 32768
- }
- },
"openai-gpt-54-pro": {
id: "openai-gpt-54-pro",
family: "gpt",
@@ -63107,8 +62944,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 64000
}
},
- "openai-gpt-5.4-mini": {
- id: "openai-gpt-5.4-mini",
+ "openai-gpt-5.6-luna-fast": {
+ id: "openai-gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -63904,45 +63741,46 @@ var init_model_capabilities_generated = __esm(() => {
input: 0
}
},
- "gpt-5.3-chat": {
- id: "gpt-5.3-chat",
- family: "gpt-codex",
- reasoning: true,
+ "gpt-image-1": {
+ id: "gpt-image-1",
+ family: "gpt-image",
+ reasoning: false,
temperature: false,
- toolCall: true,
+ toolCall: false,
modalities: {
input: [
"text",
"image"
],
output: [
- "text"
+ "image"
]
},
limit: {
- context: 128000,
- output: 16384
+ context: 0,
+ output: 0,
+ input: 0
}
},
- "gpt-image-1": {
- id: "gpt-image-1",
- family: "gpt-image",
- reasoning: false,
- temperature: false,
- toolCall: false,
+ "thinkingmachines/inkling-nvfp4": {
+ id: "thinkingmachines/Inkling-NVFP4",
+ family: "ling",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
modalities: {
input: [
"text",
- "image"
+ "image",
+ "audio"
],
output: [
- "image"
+ "text"
]
},
limit: {
- context: 0,
- output: 0,
- input: 0
+ context: 1048576,
+ output: 262144
}
},
"mistralai/mistral-small-3.2-24b-instruct-2506": {
@@ -66332,25 +66170,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "poolside/laguna-xs-2.1": {
- id: "poolside/laguna-xs-2.1",
- family: "laguna",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 262144,
- output: 32768
- }
- },
"poolside/laguna-s-2.1": {
id: "poolside/laguna-s-2.1",
family: "laguna-s",
@@ -66741,6 +66560,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 65536
}
},
+ "hf:moonshotai/kimi-k3": {
+ id: "hf:moonshotai/Kimi-K3",
+ family: "kimi-k3",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 524288,
+ output: 65536
+ }
+ },
"hf:openai/gpt-oss-120b": {
id: "hf:openai/gpt-oss-120b",
family: "gpt-oss",
@@ -69543,8 +69382,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 16384,
- input: 111616
+ output: 16384
}
},
"openai/gpt-5-image": {
@@ -69783,25 +69621,6 @@ var init_model_capabilities_generated = __esm(() => {
},
family: "command-r"
},
- "nvidia/llama-3.3-nemotron-super-49b-v1.5": {
- id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1.5",
- family: "nemotron",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 131072
- }
- },
"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free": {
id: "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",
family: "nemotron",
@@ -69924,26 +69743,6 @@ var init_model_capabilities_generated = __esm(() => {
},
family: "lyria"
},
- "google/gemma-3-4b-it": {
- id: "google/gemma-3-4b-it",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 16384
- },
- family: "gemma"
- },
"google/gemini-2.5-pro-preview": {
id: "google/gemini-2.5-pro-preview",
reasoning: true,
@@ -70051,26 +69850,6 @@ var init_model_capabilities_generated = __esm(() => {
},
family: "gemini-pro"
},
- "google/gemma-3-12b-it": {
- id: "google/gemma-3-12b-it",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 16384
- },
- family: "gemma"
- },
"google/gemini-2.5-flash-image": {
id: "google/gemini-2.5-flash-image",
reasoning: false,
@@ -71178,7 +70957,7 @@ var init_model_capabilities_generated = __esm(() => {
"~moonshotai/kimi-latest": {
id: "~moonshotai/kimi-latest",
reasoning: true,
- temperature: false,
+ temperature: true,
toolCall: true,
modalities: {
input: [
@@ -71191,7 +70970,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 1048576,
- output: 262144
+ output: 1048576
},
family: "kimi"
},
@@ -73043,6 +72822,44 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
+ "qwen3.6-max": {
+ id: "qwen3.6-max",
+ family: "qwen",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 256000,
+ output: 64000
+ }
+ },
+ "qwen3-coder-480b-a35b-instruct-int4-mixed-ar": {
+ id: "qwen3-coder-480b-a35b-instruct-int4-mixed-ar",
+ family: "qwen",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 106000,
+ output: 10600
+ }
+ },
"qwen-mt-plus": {
id: "qwen-mt-plus",
family: "qwen",
@@ -74230,26 +74047,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "nvidia/nemotron-nano-12b-v2-vl": {
- id: "nvidia/nemotron-nano-12b-v2-vl",
- family: "nemotron",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 131072
- }
- },
"google/imagen-4.0-ultra-generate-001": {
id: "google/imagen-4.0-ultra-generate-001",
family: "imagen",
@@ -77171,11 +76968,11 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
- "anthropic/claude-opus-5": {
- id: "anthropic/claude-opus-5",
- family: "claude-opus",
+ "moonshotai/kimi-k3-fast": {
+ id: "moonshotai/kimi-k3-fast",
+ family: "kimi-k3",
reasoning: true,
- temperature: true,
+ temperature: false,
toolCall: true,
modalities: {
input: [
@@ -77189,7 +76986,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 1e6,
- output: 128000
+ output: 131072
}
},
"openai/whisper-1": {
@@ -77745,6 +77542,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
+ "deepseek-r1-0528": {
+ id: "deepseek-r1-0528",
+ family: "deepseek-thinking",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 164000,
+ output: 164000
+ }
+ },
"moonshot-kimi-k2-instruct": {
id: "moonshot-kimi-k2-instruct",
family: "kimi-k2",
@@ -78662,6 +78478,27 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
+ "qwen/qwen3.7-flash": {
+ id: "qwen/qwen3.7-flash",
+ family: "qwen",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "video"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ output: 65536
+ }
+ },
"~x-ai/grok-latest": {
id: "~x-ai/grok-latest",
family: "grok",
@@ -80825,6 +80662,24 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "deepseek-v3.1": {
+ id: "deepseek-v3.1",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 32000
+ }
+ },
"doubao-1.5-vision-pro": {
id: "doubao-1.5-vision-pro",
reasoning: false,
@@ -81735,15 +81590,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1050000,
+ context: 372000,
input: 922000,
output: 128000
}
@@ -82810,6 +82664,81 @@ var init_model_capabilities2 = __esm(() => {
init_model_capabilities_generated();
});
+// packages/omo-opencode/src/shared/model-requirements.ts
+var init_model_requirements2 = __esm(() => {
+ init_src3();
+});
+
+// packages/omo-opencode/src/shared/agent-variant.ts
+var init_agent_variant = __esm(() => {
+ init_agent_display_names();
+ init_model_capabilities2();
+ init_model_requirements2();
+});
+
+// packages/omo-opencode/src/shared/session-cursor.ts
+var sessionCursors;
+var init_session_cursor = __esm(() => {
+ sessionCursors = new Map;
+});
+
+// packages/omo-opencode/src/shared/shell-env.ts
+function detectShellType() {
+ if (process.env.SHELL) {
+ const shell = process.env.SHELL;
+ if (shell.includes("csh") || shell.includes("tcsh")) {
+ return "csh";
+ }
+ return "unix";
+ }
+ if (process.platform === "win32" && (process.env.BASH_VERSION || process.env.MSYSTEM || process.env.WSL_DISTRO_NAME)) {
+ return "unix";
+ }
+ if (process.env.PSModulePath) {
+ return "powershell";
+ }
+ return process.platform === "win32" ? "cmd" : "unix";
+}
+var init_shell_env = () => {};
+
+// packages/omo-opencode/src/shared/system-directive.ts
+var init_system_directive = () => {};
+
+// packages/omo-opencode/src/shared/agent-tool-restrictions.ts
+var init_agent_tool_restrictions = __esm(() => {
+ init_agent_display_names();
+});
+
+// packages/omo-opencode/src/shared/model-resolver.ts
+var init_model_resolver2 = __esm(() => {
+ init_src3();
+ init_connected_providers_cache();
+});
+
+// packages/omo-opencode/src/shared/model-normalization.ts
+var init_model_normalization = () => {};
+
+// packages/omo-opencode/src/shared/model-resolution-pipeline.ts
+var init_model_resolution_pipeline = __esm(() => {
+ init_connected_providers_cache();
+});
+
+// packages/omo-opencode/src/shared/model-availability.ts
+import { existsSync as existsSync13, readFileSync as readFileSync5 } from "fs";
+import { join as join17 } from "path";
+function isModelCacheAvailable() {
+ if (hasProviderModelsCache()) {
+ return true;
+ }
+ const cacheFile = join17(getOpenCodeCacheDir(), "models.json");
+ return existsSync13(cacheFile);
+}
+var init_model_availability = __esm(() => {
+ init_logger2();
+ init_data_path();
+ init_connected_providers_cache();
+});
+
// packages/omo-opencode/src/shared/model-capabilities-cache.ts
function createModelCapabilitiesCacheStore(getCacheDir2 = getOmoOpenCodeCacheDir) {
const snapshotCacheStore = createJsonFileCacheStore({
@@ -86646,12 +86575,12 @@ function applyOpenAiOnlyModelCatalog(config3) {
var OPENAI_ONLY_AGENT_OVERRIDES, OPENAI_ONLY_CATEGORY_OVERRIDES;
var init_openai_only_model_catalog = __esm(() => {
OPENAI_ONLY_AGENT_OVERRIDES = {
- explore: { model: "openai/gpt-5.4-mini-fast" },
- librarian: { model: "openai/gpt-5.4-mini-fast" }
+ explore: { model: "openai/gpt-5.6-luna-fast", variant: "low" },
+ librarian: { model: "openai/gpt-5.6-luna-fast", variant: "low" }
};
OPENAI_ONLY_CATEGORY_OVERRIDES = {
artistry: { model: "openai/gpt-5.6-sol", variant: "xhigh" },
- quick: { model: "openai/gpt-5.4-mini" },
+ quick: { model: "openai/gpt-5.6-luna-fast" },
"visual-engineering": { model: "openai/gpt-5.6-sol", variant: "high" },
writing: { model: "openai/gpt-5.6-sol", variant: "medium" }
};
@@ -86849,13 +86778,13 @@ function generateModelConfig(config3) {
if (role === "explore") {
let agentConfig;
if (avail.native.openai) {
- agentConfig = { model: "openai/gpt-5.4-mini-fast" };
+ agentConfig = { model: "openai/gpt-5.6-luna-fast", variant: "low" };
} else if (avail.native.claude) {
agentConfig = { model: "anthropic/claude-haiku-4-5" };
} else if (avail.opencodeZen) {
agentConfig = { model: "opencode/gpt-5-nano" };
} else if (avail.opencodeGo) {
- agentConfig = { model: "opencode-go/qwen3.5-plus" };
+ agentConfig = { model: "opencode-go/qwen3.7-plus" };
} else if (avail.copilot) {
agentConfig = { model: "github-copilot/gpt-5-mini" };
} else {
@@ -86995,8 +86924,8 @@ function profileDirectories(root, options) {
}
function isWithin(parent, child, options) {
const pathOperations = hostPathOperations(options);
- const relative2 = pathOperations.relative(parent, child);
- return relative2 === "" || !relative2.startsWith("..") && !pathOperations.isAbsolute(relative2);
+ const relative = pathOperations.relative(parent, child);
+ return relative === "" || !relative.startsWith("..") && !pathOperations.isAbsolute(relative);
}
function projectDirectories(options) {
const directories = [];
@@ -87462,15 +87391,192 @@ var init_transform_opencode = __esm(() => {
init_record_values();
});
+// packages/omo-opencode/src/config-migration/reasoning-unification.ts
+function normalizeStringModel(value) {
+ return normalizeLegacyModelEntry({ model: value }).model;
+}
+function normalizeModelRef(value) {
+ if (typeof value === "string")
+ return normalizeStringModel(value);
+ return isPlainRecord3(value) ? normalizeLegacyModelEntry(value) : value;
+}
+function normalizedList(value) {
+ if (value === undefined)
+ return [];
+ const entries = Array.isArray(value) ? value : [value];
+ return entries.map(normalizeModelRef);
+}
+function hasModelSettings(record2, opencode) {
+ return [
+ "reasoning",
+ "variant",
+ "reasoningEffort",
+ "thinking",
+ ...opencode ? [] : ["provider_options", "providerOptions", "textVerbosity"]
+ ].some((key) => record2[key] !== undefined);
+}
+function primaryModelRef(record2, opencode) {
+ const model = record2["model"];
+ if (typeof model !== "string")
+ return;
+ if (!hasModelSettings(record2, opencode))
+ return normalizeStringModel(model);
+ const settings = { model };
+ for (const key of [
+ "reasoning",
+ "variant",
+ "reasoningEffort",
+ "thinking",
+ ...opencode ? [] : ["provider_options", "providerOptions", "textVerbosity"]
+ ]) {
+ if (record2[key] !== undefined)
+ settings[key] = record2[key];
+ }
+ return normalizeLegacyModelEntry(settings);
+}
+function conflictDiagnostic(record2, path6) {
+ const present = ["reasoning", "reasoningEffort", "variant"].filter((key) => record2[key] !== undefined);
+ if (present.length < 2)
+ return;
+ const [keptKey, ...droppedKeys] = present;
+ const keptValue = record2[keptKey];
+ const dropped = droppedKeys.map((key) => [key, record2[key]]);
+ const droppedText = dropped.map(([key, value]) => `${key}=${JSON.stringify(value)}`).join(" ");
+ return `conflict: ${path6.join(".")} dropped ${droppedText} kept ${keptKey}=${JSON.stringify(keptValue)}`;
+}
+function normalizeDefinition(value, kind, path6, diagnostics, opencode = false) {
+ if (!isPlainRecord3(value))
+ return value;
+ const conflict = conflictDiagnostic(value, path6);
+ if (conflict !== undefined)
+ diagnostics.push(conflict);
+ const normalizationInput = opencode ? copyRecord(value) : value;
+ if (opencode) {
+ delete normalizationInput["maxTokens"];
+ delete normalizationInput["providerOptions"];
+ delete normalizationInput["textVerbosity"];
+ }
+ const normalized = normalizeLegacyModelFields(normalizationInput);
+ if (opencode) {
+ for (const key of ["maxTokens", "providerOptions", "textVerbosity"]) {
+ if (value[key] !== undefined)
+ normalized[key] = value[key];
+ }
+ }
+ if (typeof normalized["model"] === "string")
+ normalized["model"] = normalizeStringModel(normalized["model"]);
+ if (Array.isArray(normalized["models"]))
+ normalized["models"] = normalizedList(normalized["models"]);
+ const fallbackModels = value["fallback_models"];
+ const shouldCombine = fallbackModels !== undefined || kind === "agent" && value["model"] !== undefined && value["models"] !== undefined;
+ if (!shouldCombine)
+ return normalized;
+ const primary = primaryModelRef(value, opencode);
+ const existing = kind === "agent" ? normalizedList(value["models"]) : [];
+ const fallbacks = normalizedList(fallbackModels);
+ normalized["models"] = [...primary === undefined ? [] : [primary], ...existing, ...fallbacks];
+ delete normalized["model"];
+ delete normalized["fallback_models"];
+ for (const key of [
+ "reasoning",
+ "variant",
+ "reasoningEffort",
+ "provider_options",
+ "providerOptions",
+ "thinking",
+ "textVerbosity"
+ ])
+ delete normalized[key];
+ return normalized;
+}
+function normalizeDefinitions(value, kind, path6, diagnostics) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = {};
+ for (const [name, definition] of Object.entries(value)) {
+ result[name] = normalizeDefinition(definition, kind, [...path6, name], diagnostics);
+ }
+ return result;
+}
+function normalizeOpenCodeDefinitions(value, kind, path6, diagnostics) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = {};
+ for (const [name, definition] of Object.entries(value)) {
+ result[name] = normalizeDefinition(definition, kind, [...path6, name], diagnostics, true);
+ }
+ return result;
+}
+function normalizeCatalog(value) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = {};
+ for (const [name, entry] of Object.entries(value))
+ result[name] = normalizeModelRef(entry);
+ return result;
+}
+function normalizeTypedBlock(value, path6, diagnostics, recurseProfiles) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = copyRecord(value);
+ if (result["categories"] !== undefined) {
+ result["categories"] = normalizeDefinitions(result["categories"], "category", [...path6, "categories"], diagnostics);
+ }
+ if (result["agents"] !== undefined) {
+ result["agents"] = normalizeDefinitions(result["agents"], "agent", [...path6, "agents"], diagnostics);
+ }
+ if (result["models"] !== undefined)
+ result["models"] = normalizeCatalog(result["models"]);
+ for (const harness2 of ["[senpi]", "[codex]"]) {
+ if (result[harness2] !== undefined)
+ result[harness2] = normalizeTypedBlock(result[harness2], [...path6, harness2], diagnostics, false);
+ }
+ if (result["[opencode]"] !== undefined) {
+ result["[opencode]"] = normalizeOpenCodeBlock(result["[opencode]"], [...path6, "[opencode]"], diagnostics);
+ }
+ if (recurseProfiles && isPlainRecord3(result["profiles"])) {
+ const profiles = {};
+ for (const [name, profile] of Object.entries(result["profiles"])) {
+ profiles[name] = normalizeTypedBlock(profile, [...path6, "profiles", name], diagnostics, false);
+ }
+ result["profiles"] = profiles;
+ }
+ return result;
+}
+function normalizeOpenCodeBlock(value, path6, diagnostics) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = copyRecord(value);
+ if (result["categories"] !== undefined) {
+ result["categories"] = normalizeOpenCodeDefinitions(result["categories"], "category", [...path6, "categories"], diagnostics);
+ }
+ if (result["agents"] !== undefined) {
+ result["agents"] = normalizeOpenCodeDefinitions(result["agents"], "agent", [...path6, "agents"], diagnostics);
+ }
+ return result;
+}
+function transformReasoningUnification(document) {
+ const diagnostics = [];
+ return {
+ diagnostics,
+ document: isPlainRecord3(document) ? normalizeTypedBlock(document, [], diagnostics, true) : {}
+ };
+}
+var REASONING_UNIFICATION_MIGRATION_ID = "2026-08-reasoning-unification";
+var init_reasoning_unification = __esm(() => {
+ init_src();
+ init_record_values();
+});
+
// packages/omo-opencode/src/config-migration/migration-plans.ts
function backupTimestamp(value) {
return value ?? new Date().toISOString().replace(/[:.]/g, "-");
}
function safeRelativePath(path6, homeDir, options) {
const pathOperations = hostPathOperations(options);
- const relative2 = pathOperations.relative(homeDir, path6);
- if (relative2 !== "" && !relative2.startsWith("..") && !pathOperations.isAbsolute(relative2))
- return relative2;
+ const relative = pathOperations.relative(homeDir, path6);
+ if (relative !== "" && !relative.startsWith("..") && !pathOperations.isAbsolute(relative))
+ return relative;
return `external-${encodeURIComponent(path6)}`;
}
function descriptors(sources, options, timestamp) {
@@ -87517,6 +87623,26 @@ function mergeOpenCodeInputs(inputs, options) {
}
return [...byTarget.values()];
}
+function reasoningPlan(targetPath) {
+ const inspect = (sources) => transformReasoningUnification(sources[0]?.value);
+ return {
+ id: REASONING_UNIFICATION_MIGRATION_ID,
+ inspect,
+ mode: "replace-target",
+ sources: [],
+ targetPath,
+ transform: inspect
+ };
+}
+function existingOmoConfigPath(directory, options) {
+ const fileSystem = discoveryFileSystem(options);
+ for (const fileName of ["omo.jsonc", "omo.json"]) {
+ const path6 = options.pathOperations.join(directory, fileName);
+ if (fileSystem.existsSync(path6))
+ return canonicalPath(path6, options);
+ }
+ return;
+}
function createLegacyConfigMigrationPlans(options) {
const timestamp = backupTimestamp(options.backupTimestamp);
const [openCodeGroup, configJsoncGroup] = discoverLegacyConfigGroups(options);
@@ -87545,9 +87671,7 @@ function createLegacyConfigMigrationPlans(options) {
...projectInputs
];
const plans = mergeOpenCodeInputs(openCodeInputs, options).map((input) => openCodePlan(input, options, timestamp));
- if (configJsoncGroup.id !== CONFIG_JSONC_MIGRATION_ID || configJsoncGroup.sources.length === 0)
- return plans;
- return [
+ const legacyPlans = configJsoncGroup.id !== CONFIG_JSONC_MIGRATION_ID || configJsoncGroup.sources.length === 0 ? plans : [
...plans,
{
id: CONFIG_JSONC_MIGRATION_ID,
@@ -87557,6 +87681,19 @@ function createLegacyConfigMigrationPlans(options) {
transform: (loaded) => transformConfigJsoncSources({ discovered: configJsoncGroup.sources, sources: loaded })
}
];
+ const reasoningTargets = new Map;
+ const addReasoningTarget = (targetPath) => {
+ if (targetPath === undefined)
+ return;
+ reasoningTargets.set(pathKey(targetPath, options), targetPath);
+ };
+ addReasoningTarget(existingOmoConfigPath(options.pathOperations.join(options.homeDir, ".omo"), options));
+ for (const projectRoot of projectDirectories(options)) {
+ addReasoningTarget(existingOmoConfigPath(options.pathOperations.join(projectRoot, ".omo"), options));
+ }
+ for (const plan of legacyPlans)
+ addReasoningTarget(plan.targetPath);
+ return [...legacyPlans, ...[...reasoningTargets.values()].map(reasoningPlan)];
}
var init_migration_plans = __esm(() => {
init_discovery2();
@@ -87564,6 +87701,7 @@ var init_migration_plans = __esm(() => {
init_record_values();
init_transform_config_jsonc();
init_transform_opencode();
+ init_reasoning_unification();
});
// packages/omo-opencode/src/config-migration/migration-executor.ts
@@ -87576,6 +87714,7 @@ var init_config_migration = __esm(() => {
init_migration_executor();
init_transform_config_jsonc();
init_transform_opencode();
+ init_reasoning_unification();
});
// packages/omo-opencode/src/startup-migration.ts
@@ -88297,7 +88436,7 @@ function shouldRetainLine(line, cutoffMs) {
function parseDiagnosticLine(line) {
try {
const parsed = JSON.parse(line);
- if (!isRecord5(parsed)) {
+ if (!isRecord9(parsed)) {
return null;
}
return parsed;
@@ -88308,7 +88447,7 @@ function parseDiagnosticLine(line) {
throw error51;
}
}
-function isRecord5(value) {
+function isRecord9(value) {
return value !== null && typeof value === "object" && !Array.isArray(value);
}
function trimToMaxBytes(lines) {
@@ -91418,7 +91557,7 @@ var init_context_lines_node = __esm(() => {
});
// node_modules/.bun/[email protected]/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs
-import { isAbsolute as isAbsolute8, relative as relative5, sep as sep8 } from "path";
+import { isAbsolute as isAbsolute7, relative as relative4, sep as sep8 } from "path";
function createRelativePathModifier(basePath = process.cwd()) {
const isWindows = sep8 === "\\";
const toUnix = (p) => isWindows ? p.replace(/\\/g, "/") : p;
@@ -91426,8 +91565,8 @@ function createRelativePathModifier(basePath = process.cwd()) {
return async (frames) => {
for (const frame of frames)
if (!(!frame.filename || frame.filename.startsWith("node:") || frame.filename.startsWith("data:"))) {
- if (isAbsolute8(frame.filename))
- frame.filename = toUnix(relative5(normalizedBase, toUnix(frame.filename)));
+ if (isAbsolute7(frame.filename))
+ frame.filename = toUnix(relative4(normalizedBase, toUnix(frame.filename)));
}
return frames;
};
@@ -93943,7 +94082,7 @@ var package_default2;
var init_package2 = __esm(() => {
package_default2 = {
name: "@oh-my-opencode/omo-codex",
- version: "4.19.3",
+ version: "4.19.4",
type: "module",
private: true,
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
@@ -95425,7 +95564,7 @@ function formatConfigSummary(config3) {
lines.push("");
const claudeDetail = config3.hasClaude ? config3.isMax20 ? "max20" : "standard" : undefined;
lines.push(formatProvider("Claude", config3.hasClaude, claudeDetail));
- lines.push(formatProvider("OpenAI/ChatGPT", config3.hasOpenAI, "GPT-5.4 for Oracle"));
+ lines.push(formatProvider("OpenAI/ChatGPT", config3.hasOpenAI, "GPT-5.6 Sol for Oracle"));
lines.push(formatProvider("Gemini", config3.hasGemini));
lines.push(formatProvider("GitHub Copilot", config3.hasCopilot, "fallback"));
lines.push(formatProvider("OpenCode Zen", config3.hasOpencodeZen, "opencode/ models"));
@@ -95682,7 +95821,7 @@ import { homedir as homedir5 } from "node:os";
// packages/omo-codex/src/install/codex-cache-bins.ts
import { chmod, lstat as lstat4, mkdir, readFile as readFile3, readdir as readdir2, readlink as readlink3, rm as rm3, stat as stat2, symlink, writeFile } from "node:fs/promises";
-import { basename as basename4, isAbsolute as isAbsolute3, join as join26, relative as relative2, resolve as resolve6, sep } from "node:path";
+import { basename as basename4, isAbsolute as isAbsolute2, join as join26, relative, resolve as resolve6, sep } from "node:path";
// packages/omo-codex/src/install/codex-cache-command-shim.ts
var COMMAND_SHIM_MARKER = ":: generated by oh-my-openagent Codex installer";
@@ -95727,7 +95866,7 @@ function windowsCommandShim(targetPath) {
// packages/omo-codex/src/install/codex-cache-dangling-bins.ts
import { lstat as lstat2, readFile, readdir, readlink, rm, stat } from "node:fs/promises";
-import { dirname as dirname9, isAbsolute as isAbsolute2, join as join23, resolve as resolve5 } from "node:path";
+import { dirname as dirname9, isAbsolute, join as join23, resolve as resolve5 } from "node:path";
// packages/omo-codex/src/install/codex-cache-fs.ts
import { lstat } from "node:fs/promises";
@@ -95774,7 +95913,7 @@ async function removeDanglingManagedSymlink(linkPath) {
if (!linkStat.isSymbolicLink())
return;
const linkTarget = await readlink(linkPath);
- const target = isAbsolute2(linkTarget) ? linkTarget : resolve5(dirname9(linkPath), linkTarget);
+ const target = isAbsolute(linkTarget) ? linkTarget : resolve5(dirname9(linkPath), linkTarget);
if (!await isFileSystemEntry(target) && isManagedComponentBinTarget(target))
await rm(linkPath, { force: true });
} catch (error51) {
@@ -96123,8 +96262,8 @@ function resolvePackageBinTarget(packageRoot, target) {
throw new Error("Package bin target must stay inside package root");
const root = resolve6(packageRoot);
const resolvedTarget = resolve6(root, target);
- const relativeTarget = relative2(root, resolvedTarget);
- if (relativeTarget === "" || relativeTarget !== ".." && !relativeTarget.startsWith(`..${sep}`) && !isAbsolute3(relativeTarget)) {
+ const relativeTarget = relative(root, resolvedTarget);
+ if (relativeTarget === "" || relativeTarget !== ".." && !relativeTarget.startsWith(`..${sep}`) && !isAbsolute2(relativeTarget)) {
return resolvedTarget;
}
throw new Error("Package bin target must stay inside package root");
@@ -96268,11 +96407,11 @@ async function isDirectory(path6) {
// packages/omo-codex/src/install/codex-cache-local-dependencies.ts
import { realpathSync as realpathSync6 } from "node:fs";
import { readFile as readFile5, readdir as readdir3, writeFile as writeFile2 } from "node:fs/promises";
-import { dirname as dirname11, isAbsolute as isAbsolute5, join as join29, relative as relative4, resolve as resolve9, sep as sep2 } from "node:path";
+import { dirname as dirname11, isAbsolute as isAbsolute4, join as join29, relative as relative3, resolve as resolve9, sep as sep2 } from "node:path";
// packages/omo-codex/src/install/codex-cache-paths.ts
import { existsSync as existsSync24, readdirSync as readdirSync6 } from "node:fs";
-import { isAbsolute as isAbsolute4, join as join28, relative as relative3, resolve as resolve8 } from "node:path";
+import { isAbsolute as isAbsolute3, join as join28, relative as relative2, resolve as resolve8 } from "node:path";
var DEFAULT_CODEX_MARKETPLACE_NAME = "sisyphuslabs";
var DEFAULT_CODEX_PLUGIN_NAME = "omo";
function resolveDefaultCodexHome(homeDir) {
@@ -96310,8 +96449,8 @@ function resolveCachedRuntimePath(pluginRoot, sourceRoot, runtimePath) {
return resolve8(sourceRoot, runtimePath);
}
function isPathInside(candidatePath, rootPath) {
- const pathFromRoot = relative3(rootPath, candidatePath);
- return pathFromRoot === "" || !pathFromRoot.startsWith("..") && !isAbsolute4(pathFromRoot);
+ const pathFromRoot = relative2(rootPath, candidatePath);
+ return pathFromRoot === "" || !pathFromRoot.startsWith("..") && !isAbsolute3(pathFromRoot);
}
function compareVersionNames(left, right) {
const leftParts = left.split(".").map((part) => Number.parseInt(part, 10));
@@ -96338,7 +96477,7 @@ async function rewriteCachedPackageLocalFileDependencies(pluginRoot, sourceRoot)
if (!isPlainRecord4(parsed))
continue;
const packageDir = dirname11(packageJsonPath);
- const sourcePackageDir = join29(sourceRoot, relative4(pluginRoot, packageDir));
+ const sourcePackageDir = join29(sourceRoot, relative3(pluginRoot, packageDir));
let changed = false;
for (const field of ["dependencies", "optionalDependencies", "peerDependencies"]) {
const dependencies = parsed[field];
@@ -96348,7 +96487,7 @@ async function rewriteCachedPackageLocalFileDependencies(pluginRoot, sourceRoot)
if (typeof specifier !== "string" || !specifier.startsWith("file:"))
continue;
const filePath = specifier.slice("file:".length);
- if (filePath.length === 0 || isAbsolute5(filePath))
+ if (filePath.length === 0 || isAbsolute4(filePath))
continue;
const targetPath = resolve9(packageDir, filePath);
if (isPathInside(targetPath, pluginRoot))
@@ -96395,9 +96534,9 @@ function rewritePackageLockFileDependency(input) {
if (!packages)
return;
const lockRoot = canonicalizeExistingPath(input.pluginRoot);
- const packageKey = toPackageLockPath(relative4(input.pluginRoot, input.packageDir));
- const oldTargetKey = toPackageLockPath(relative4(input.pluginRoot, input.targetPath));
- const newTargetKey = toPackageLockPath(relative4(lockRoot, input.sourceTargetPath));
+ const packageKey = toPackageLockPath(relative3(input.pluginRoot, input.packageDir));
+ const oldTargetKey = toPackageLockPath(relative3(input.pluginRoot, input.targetPath));
+ const newTargetKey = toPackageLockPath(relative3(lockRoot, input.sourceTargetPath));
const newSpecifier = `file:${input.sourceTargetPath}`;
const packageEntry = packages[packageKey];
if (isPlainRecord4(packageEntry)) {
@@ -96766,10 +96905,10 @@ async function restoreBackupDirectory(backupPath, targetPath, renameDirectory) {
await renameDirectory(backupPath, targetPath);
}
function shouldCopyPluginPath(path6, root) {
- const relative5 = path6 === root ? "" : path6.slice(root.length + sep5.length);
- if (relative5 === "")
+ const relative4 = path6 === root ? "" : path6.slice(root.length + sep5.length);
+ if (relative4 === "")
return true;
- const parts = relative5.split(sep5);
+ const parts = relative4.split(sep5);
if (parts.some((part) => part === ".git" || part === "node_modules"))
return false;
return !isNestedComponentMcpManifest(parts);
@@ -97563,7 +97702,7 @@ function tomlKeySegment(value) {
// packages/omo-codex/src/install/codex-config-atomic-write.ts
import { lstat as lstat6, readlink as readlink4, realpath, rename as rename3, unlink, writeFile as writeFile5 } from "node:fs/promises";
-import { basename as basename6, dirname as dirname13, isAbsolute as isAbsolute6, join as join36, resolve as resolve10 } from "node:path";
+import { basename as basename6, dirname as dirname13, isAbsolute as isAbsolute5, join as join36, resolve as resolve10 } from "node:path";
var RENAME_RETRY_DELAYS_MS = [10, 25, 50];
var RETRIABLE_RENAME_CODES = new Set(["EPERM", "EBUSY"]);
async function writeFileAtomic(targetPath, data) {
@@ -97597,7 +97736,7 @@ async function resolveSymlinkTarget(targetPath) {
if (!(error51 instanceof Error))
throw error51;
const linkValue = await readlink4(targetPath);
- return isAbsolute6(linkValue) ? linkValue : resolve10(dirname13(targetPath), linkValue);
+ return isAbsolute5(linkValue) ? linkValue : resolve10(dirname13(targetPath), linkValue);
}
}
async function renameWithRetry(fromPath, toPath) {
@@ -97988,6 +98127,24 @@ function stripUnquotedInlineComment3(line) {
// packages/omo-codex/src/install/codex-config-reasoning.ts
var MANAGED_KEYS = ["model", "model_context_window", "model_reasoning_effort", "plan_mode_reasoning_effort"];
+var CODEX_REASONING_BY_UNIFIED_LEVEL = {
+ off: "none",
+ none: "none",
+ minimal: "minimal",
+ low: "low",
+ medium: "medium",
+ high: "high",
+ xhigh: "xhigh",
+ max: "max"
+};
+function applyReasoningOverride(catalog, reasoning) {
+ if (reasoning === undefined)
+ return catalog;
+ const wireEffort = CODEX_REASONING_BY_UNIFIED_LEVEL[reasoning.trim().toLowerCase()];
+ if (wireEffort === undefined)
+ return catalog;
+ return { ...catalog, current: { ...catalog.current, modelReasoningEffort: wireEffort } };
+}
function ensureCodexReasoningConfig(config3, catalog) {
const current = readRootReasoningSettings(config3);
if (Object.keys(current).length > 0 && !matchesProfile(current, catalog.current) && !catalog.managedProfiles.some((profile) => matchesProfile(current, profile))) {
@@ -98164,7 +98321,7 @@ function isRootSetting2(line, key) {
// packages/omo-codex/src/install/codex-multi-agent-v2-config.ts
import { readFileSync as readFileSync11 } from "node:fs";
-import { dirname as dirname14, isAbsolute as isAbsolute7, join as join38 } from "node:path";
+import { dirname as dirname14, isAbsolute as isAbsolute6, join as join38 } from "node:path";
var CODEX_AGENTS_HEADER = "agents";
var CODEX_MULTI_AGENT_V2_HEADER = "features.multi_agent_v2";
var CODEX_MULTI_AGENT_V2_THREAD_LIMIT_KEY = `${CODEX_MULTI_AGENT_V2_HEADER}.max_concurrent_threads_per_session`;
@@ -98202,7 +98359,7 @@ function resolveCodexMultiAgentVersion(config3, configPath) {
function resolveCatalogPath(configuredPath, configPath) {
if (configuredPath === null)
return join38(dirname14(configPath), "models_cache.json");
- return isAbsolute7(configuredPath) ? configuredPath : join38(dirname14(configPath), configuredPath);
+ return isAbsolute6(configuredPath) ? configuredPath : join38(dirname14(configPath), configuredPath);
}
function readCatalogMultiAgentVersion(model, cachePath) {
let raw;
@@ -98217,10 +98374,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {
} catch {
return null;
}
- if (!isRecord4(cache) || !Array.isArray(cache.models))
+ if (!isRecord8(cache) || !Array.isArray(cache.models))
return null;
for (const entry of cache.models) {
- if (!isRecord4(entry))
+ if (!isRecord8(entry))
continue;
if (entry.slug !== model && entry.id !== model)
continue;
@@ -98245,7 +98402,7 @@ function readRootModelCatalogPath(config3) {
const single = config3.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);
return single?.[1] ?? null;
}
-function isRecord4(value) {
+function isRecord8(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function removeFeatureFlagSetting(config3, featureName) {
@@ -98328,7 +98485,7 @@ async function updateCodexConfig(input) {
config3 = ensureFeatureEnabled(config3, "plugin_hooks");
config3 = ensureFeatureEnabled(config3, "multi_agent");
config3 = removeUnsupportedCodexMultiAgentModeConfig(config3);
- config3 = ensureCodexReasoningConfig(config3, await readCodexModelCatalog(input.repoRoot));
+ config3 = ensureCodexReasoningConfig(config3, applyReasoningOverride(await readCodexModelCatalog(input.repoRoot), input.reasoning));
config3 = ensureCodexMultiAgentV2Config(config3, {
multiAgentVersion: resolveCodexMultiAgentVersion(config3, input.configPath)
});
@@ -98518,7 +98675,7 @@ var MANAGED_REASONING_DEFAULT_UPGRADES = new Map([
"explorer",
[
{
- previous: { model: "gpt-5.4-mini", effort: "low" },
+ previous: { model: "gpt-5.6-luna-fast", effort: "low" },
current: { model: "gpt-5.6-terra", effort: "medium" }
},
{
@@ -98531,7 +98688,7 @@ var MANAGED_REASONING_DEFAULT_UPGRADES = new Map([
"librarian",
[
{
- previous: { model: "gpt-5.4-mini", effort: "low" },
+ previous: { model: "gpt-5.6-luna-fast", effort: "low" },
current: { model: "gpt-5.6-terra", effort: "medium" }
},
{
@@ -99054,10 +99211,10 @@ function localSourcePath(source) {
function validateLocalSourcePath(path6) {
if (!path6.startsWith("./"))
throw new Error("local plugin source path must start with ./");
- const relative5 = path6.slice(2);
- if (relative5.length === 0)
+ const relative4 = path6.slice(2);
+ if (relative4.length === 0)
throw new Error("local plugin source path must not be empty");
- for (const part of relative5.split(/[\\/]/)) {
+ for (const part of relative4.split(/[\\/]/)) {
if (part === "" || part === "." || part === "..") {
throw new Error("local plugin source path must stay within the marketplace root");
}
@@ -99107,10 +99264,10 @@ async function writeSnapshotPlugin(marketplaceRoot, plugin) {
return { name: plugin.name, path: targetPath };
}
function shouldCopyMarketplaceSourcePath(path6, root) {
- const relative5 = path6 === root ? "" : path6.slice(root.length + sep6.length);
- if (relative5 === "")
+ const relative4 = path6 === root ? "" : path6.slice(root.length + sep6.length);
+ if (relative4 === "")
return true;
- const parts = relative5.split(sep6);
+ const parts = relative4.split(sep6);
return !parts.some((part) => part === ".git" || part === "node_modules");
}
@@ -100074,7 +100231,8 @@ async function runCodexInstaller(options = {}) {
gitBashEnabled: platform === "win32" && gitBashResolution.found,
trustedHookStates,
agentConfigs: [...agentConfigs.values()].sort((left, right) => left.name.localeCompare(right.name)),
- autonomousPermissions: options.autonomousPermissions !== false
+ autonomousPermissions: options.autonomousPermissions !== false,
+ ...options.reasoning === undefined ? {} : { reasoning: options.reasoning }
});
await seedAndMigrateOmoSot({ env: env3, log: log4, repoRoot, runCommand });
const projectCleanup = await repairProjectLocalCodexArtifactsBestEffort({
@@ -100277,7 +100435,7 @@ function defaultRunCommand2(command, args) {
// packages/omo-codex/src/install/codex-cleanup.ts
import { lstat as lstat13, readFile as readFile22, readdir as readdir11, rm as rm11, rmdir } from "node:fs/promises";
import { homedir as homedir7 } from "node:os";
-import { isAbsolute as isAbsolute10, join as join56, relative as relative7, resolve as resolve15 } from "node:path";
+import { isAbsolute as isAbsolute9, join as join56, relative as relative6, resolve as resolve15 } from "node:path";
// packages/omo-codex/src/install/codex-cleanup-config.ts
import { lstat as lstat12, mkdir as mkdir8, readFile as readFile21, writeFile as writeFile12 } from "node:fs/promises";
@@ -100397,9 +100555,9 @@ function nodeErrorCode5(error51) {
}
// packages/omo-codex/src/install/codex-cleanup-safety.ts
-import { dirname as dirname19, isAbsolute as isAbsolute9, join as join55, relative as relative6, resolve as resolve14 } from "node:path";
+import { dirname as dirname19, isAbsolute as isAbsolute8, join as join55, relative as relative5, resolve as resolve14 } from "node:path";
function validateManagedCleanupTarget(input) {
- if (!isAbsolute9(input.path))
+ if (!isAbsolute8(input.path))
return skipped(input.path, "outside managed Codex cleanup scope");
const codexHome = resolve14(input.codexHome);
if (dirname19(codexHome) === codexHome)
@@ -100423,11 +100581,11 @@ function validateManagedCleanupTarget(input) {
return skipped(input.path, "outside managed Codex cleanup scope");
}
function isWithinDirectory(parent, child) {
- const relativePath = relative6(parent, child);
- return relativePath === "" || !relativePath.startsWith("..") && !isAbsolute9(relativePath);
+ const relativePath = relative5(parent, child);
+ return relativePath === "" || !relativePath.startsWith("..") && !isAbsolute8(relativePath);
}
function isManagedBootstrapDriftPath(codexHome, target) {
- const relativePath = relative6(codexHome, target);
+ const relativePath = relative5(codexHome, target);
const segments = relativePath.split(/[\\/]/);
if (segments[0] !== "plugins")
return false;
@@ -100611,10 +100769,10 @@ async function removeManifestListedAgentLinks(codexHome, paths2) {
return { removed: removed2, skipped: skipped2 };
}
function isSafeManagedAgentPath(agentsDir, path6) {
- if (!isAbsolute10(path6))
+ if (!isAbsolute9(path6))
return false;
- const relativePath = relative7(agentsDir, path6);
- if (relativePath === "" || relativePath.startsWith("..") || isAbsolute10(relativePath))
+ const relativePath = relative6(agentsDir, path6);
+ if (relativePath === "" || relativePath.startsWith("..") || isAbsolute9(relativePath))
return false;
const fileName = relativePath.split(/[\\/]/).pop();
if (fileName === undefined)
@@ -100678,12 +100836,16 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
join57("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),
join57("scripts", "install.mjs")
];
+var LEGACY_BUILTIN_SHADOW_PACKAGES = [
+ join57("packages", "pi-goal"),
+ join57("packages", "pi-webfetch")
+];
async function runSenpiInstaller(options = {}) {
const context = resolveInstallContext(options);
await ensurePluginArtifacts(context);
const settings = await readSettings(context.settingsPath);
const before = JSON.stringify(settings);
- const packages = dedupePackages(readPackages(settings));
+ const packages = removeLegacyBuiltinShadows(dedupePackages(readPackages(settings)), context.repoRoot, context.agentDir);
if (!packages.includes(context.pluginPath))
packages.push(context.pluginPath);
settings.packages = packages;
@@ -100767,6 +100929,10 @@ function readPackages(settings) {
function dedupePackages(packages) {
return [...new Set(packages)];
}
+function removeLegacyBuiltinShadows(packages, repoRoot, agentDir) {
+ const shadowPaths = new Set(LEGACY_BUILTIN_SHADOW_PACKAGES.map((path6) => resolve16(repoRoot, path6)));
+ return packages.filter((entry) => !shadowPaths.has(resolve16(agentDir, entry)));
+}
async function writeSettingsAtomically(settingsPath, settings) {
await mkdir9(dirname20(settingsPath), { recursive: true });
const backupPath = await nextBackupPath(settingsPath);
@@ -101306,7 +101472,7 @@ async function runCliInstaller(args, version3) {
}
printBox(formatConfigSummary(config3), isUpdate ? "Updated Configuration" : "Installation Complete");
if (config3.hasOpenCode && !config3.hasClaude) {
- printInfo("Note: Sisyphus agent performs best with Claude Opus 4.5+. " + "Other models work but may have reduced orchestration quality.");
+ printInfo("Note: Sisyphus agent performs best with Claude Opus 5. " + "Other models work but may have reduced orchestration quality.");
}
if (config3.hasOpenCode && !hasAnyConfiguredProvider(config3)) {
printWarning(getNoModelProvidersWarning());
@@ -102786,8 +102952,8 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have a Claude Pro/Max subscription?",
options: [
{ value: "no", label: "No", hint: `Will use ${ULTIMATE_FALLBACK} as fallback` },
- { value: "yes", label: "Yes (standard)", hint: "Claude Opus 4.5 for orchestration" },
- { value: "max20", label: "Yes (max20 mode)", hint: "Full power with Claude Sonnet 4.6 for Librarian" }
+ { value: "yes", label: "Yes (standard)", hint: "Claude Opus 5 for orchestration" },
+ { value: "max20", label: "Yes (max20 mode)", hint: "Higher Claude usage limits for orchestration" }
],
initialValue: initial.claude
});
@@ -102797,7 +102963,7 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have an OpenAI/ChatGPT Plus subscription?",
options: [
{ value: "no", label: "No", hint: "Oracle will use fallback models" },
- { value: "yes", label: "Yes", hint: "GPT-5.4 for Oracle (high-IQ debugging)" }
+ { value: "yes", label: "Yes", hint: "GPT-5.6 Sol for Oracle (high-IQ debugging)" }
],
initialValue: initial.openai
});
@@ -102827,7 +102993,7 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have access to OpenCode Zen (opencode/ models)?",
options: [
{ value: "no", label: "No", hint: "Will use other configured providers" },
- { value: "yes", label: "Yes", hint: "opencode/claude-opus-4-7, opencode/gpt-5.5, etc." }
+ { value: "yes", label: "Yes", hint: "opencode/claude-opus-5, opencode/gpt-5.6-sol, etc." }
],
initialValue: initial.opencodeZen
});
@@ -102847,7 +103013,7 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have a Kimi For Coding subscription?",
options: [
{ value: "no", label: "No", hint: "Will use other configured providers" },
- { value: "yes", label: "Yes", hint: "Kimi K2.5 for Sisyphus/Prometheus fallback" }
+ { value: "yes", label: "Yes", hint: "Kimi K3 for Sisyphus/Prometheus fallback" }
],
initialValue: initial.kimiForCoding
});
@@ -103015,7 +103181,7 @@ async function runTuiInstaller(args, version3) {
await installAstGrepForOpenCode({ log: R2.warn });
}
if (config3.hasOpenCode && !config3.hasClaude) {
- R2.info(`${import_picocolors4.default.bold("Note:")} Sisyphus agent performs best with Claude Opus 4.5+.
+ R2.info(`${import_picocolors4.default.bold("Note:")} Sisyphus agent performs best with Claude Opus 5.
` + `Other models work but may have reduced orchestration quality.`);
}
if (config3.hasOpenCode && !hasAnyConfiguredProvider(config3)) {
@@ -103904,7 +104070,7 @@ async function processEvents(ctx, stream, state) {
}
}
// packages/omo-opencode/src/config/validate.ts
-import { relative as relative8 } from "node:path";
+import { relative as relative7 } from "node:path";
// packages/omo-opencode/src/shared/disabled-providers.ts
init_config_errors();
@@ -104258,12 +104424,15 @@ var OverridableAgentNameSchema = exports_external.enum([
"atlas"
]);
// packages/omo-opencode/src/config/schema/agent-overrides.ts
+init_src();
init_zod();
// packages/omo-opencode/src/config/schema/fallback-models.ts
+init_src();
init_zod();
var FallbackModelObjectSchema = exports_external.object({
model: exports_external.string(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional(),
reasoningEffort: exports_external.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
temperature: exports_external.number().min(0).max(2).optional(),
@@ -104304,6 +104473,7 @@ var AgentPermissionSchema = exports_external.object({
var AgentOverrideConfigSchema = exports_external.object({
model: exports_external.string().optional(),
fallback_models: FallbackModelsSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional(),
category: exports_external.string().optional(),
skills: exports_external.array(exports_external.string()).optional(),
@@ -104328,10 +104498,12 @@ var AgentOverrideConfigSchema = exports_external.object({
providerOptions: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
ultrawork: exports_external.object({
model: exports_external.string().optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional()
}).optional(),
compaction: exports_external.object({
model: exports_external.string().optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional()
}).optional()
});
@@ -104392,14 +104564,19 @@ var BrowserAutomationConfigSchema = exports_external.object({
playwright_mcp_args: exports_external.array(exports_external.string()).optional()
});
// packages/omo-opencode/src/config/schema/categories.ts
+init_src();
init_zod();
var CategoryConfigSchema = exports_external.object({
description: exports_external.string().optional(),
model: exports_external.string().optional(),
+ models: exports_external.array(exports_external.union([exports_external.string(), FallbackModelObjectSchema])).optional(),
fallback_models: FallbackModelsSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional(),
temperature: exports_external.number().min(0).max(2).optional(),
top_p: exports_external.number().min(0).max(1).optional(),
+ max_tokens: exports_external.number().int().positive().optional(),
+ provider_options: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
maxTokens: exports_external.number().optional(),
thinking: exports_external.object({
type: exports_external.enum(["enabled", "disabled"]),
@@ -104411,7 +104588,8 @@ var CategoryConfigSchema = exports_external.object({
prompt_append: exports_external.string().optional(),
max_prompt_tokens: exports_external.number().int().positive().optional(),
is_unstable_agent: exports_external.boolean().optional(),
- disable: exports_external.boolean().optional()
+ disable: exports_external.boolean().optional(),
+ warn_unavailable: exports_external.boolean().optional()
});
var BuiltinCategoryNameSchema = exports_external.enum([
"visual-engineering",
@@ -104865,7 +105043,7 @@ var OhMyOpenCodeConfigSchema = exports_external.object({
});
// packages/omo-opencode/src/config/validate.ts
function shortPath(configPath) {
- const candidate = relative8(process.cwd(), configPath);
+ const candidate = relative7(process.cwd(), configPath);
return candidate.length > 0 ? candidate : configPath;
}
function formatIssuePath(path6) {
@@ -105619,12 +105797,12 @@ function readCurrentTopLevelTask(planPath) {
}
// packages/boulder-state/src/storage/path.ts
import { existsSync as existsSync34 } from "node:fs";
-import { isAbsolute as isAbsolute11, join as join61, relative as relative9, resolve as resolve17 } from "node:path";
+import { isAbsolute as isAbsolute10, join as join61, relative as relative8, resolve as resolve17 } from "node:path";
function getBoulderFilePath(directory) {
return join61(directory, BOULDER_DIR, BOULDER_FILE);
}
function resolveTrackedPath(baseDirectory, trackedPath) {
- return isAbsolute11(trackedPath) ? resolve17(trackedPath) : resolve17(baseDirectory, trackedPath);
+ return isAbsolute10(trackedPath) ? resolve17(trackedPath) : resolve17(baseDirectory, trackedPath);
}
function resolveBoulderPlanPath(directory, state) {
const absolutePlanPath = resolveTrackedPath(directory, state.active_plan);
@@ -105633,8 +105811,8 @@ function resolveBoulderPlanPath(directory, state) {
return absolutePlanPath;
}
const absoluteDirectory = resolve17(directory);
- const relativePlanPath = relative9(absoluteDirectory, absolutePlanPath);
- if (relativePlanPath.length === 0 || relativePlanPath.startsWith("..") || isAbsolute11(relativePlanPath)) {
+ const relativePlanPath = relative8(absoluteDirectory, absolutePlanPath);
+ if (relativePlanPath.length === 0 || relativePlanPath.startsWith("..") || isAbsolute10(relativePlanPath)) {
return absolutePlanPath;
}
const absoluteWorktreePath = resolveTrackedPath(directory, worktreePath);
@@ -108137,30 +108315,104 @@ async function checkConfig() {
};
}
+// packages/omo-opencode/src/cli/doctor/checks/deprecated-reasoning-keys.ts
+init_main();
+import { existsSync as existsSync51, readFileSync as readFileSync33 } from "node:fs";
+import { join as join75 } from "node:path";
+var CANONICAL_REPLACEMENT = new Map([
+ ["variant", "reasoning"],
+ ["reasoningEffort", "reasoning"],
+ ["thinking", "reasoning"],
+ ["textVerbosity", "provider_options.textVerbosity"],
+ ["fallback_models", "models"]
+]);
+var TUNING_CONTAINERS = new Set(["agents", "categories", "models"]);
+function isRecord10(value) {
+ return value !== null && typeof value === "object" && !Array.isArray(value);
+}
+function isHarnessBlock(key) {
+ return key.startsWith("[") && key.endsWith("]");
+}
+function collectIssues(configPath, value, prefix) {
+ if (!isRecord10(value))
+ return [];
+ const issues = [];
+ for (const [key, child] of Object.entries(value)) {
+ const path12 = prefix.length > 0 ? `${prefix}.${key}` : key;
+ const replacement = CANONICAL_REPLACEMENT.get(key);
+ if (replacement !== undefined) {
+ issues.push({
+ title: "Deprecated reasoning config key",
+ description: `${configPath}: ${path12}`,
+ fix: `Replace ${key} with ${replacement}, or run: oh-my-openagent config migrate`,
+ severity: "warning",
+ affects: [path12]
+ });
+ continue;
+ }
+ if (!isRecord10(child))
+ continue;
+ if (prefix.length === 0 && key === "profiles") {
+ for (const profile2 of Object.values(child)) {
+ issues.push(...collectIssues(configPath, profile2, ""));
+ }
+ continue;
+ }
+ if (TUNING_CONTAINERS.has(key) || isHarnessBlock(key) || prefix.length > 0) {
+ issues.push(...collectIssues(configPath, child, path12));
+ }
+ }
+ return issues;
+}
+function userConfigPaths() {
+ const home = process.env.HOME ?? process.env.USERPROFILE;
+ if (home === undefined || home.length === 0)
+ return [];
+ return [join75(home, ".omo", "omo.jsonc"), join75(home, ".omo", "omo.json")];
+}
+async function checkDeprecatedReasoningKeys() {
+ const issues = [];
+ const scanned = [];
+ for (const configPath of userConfigPaths()) {
+ if (!existsSync51(configPath))
+ continue;
+ scanned.push(configPath);
+ const parsed = parse2(readFileSync33(configPath, "utf-8"));
+ issues.push(...collectIssues(configPath, parsed, ""));
+ }
+ return {
+ name: CHECK_NAMES[CHECK_IDS.CONFIG],
+ status: issues.length > 0 ? "warn" : "pass",
+ message: issues.length > 0 ? `${issues.length} deprecated reasoning key(s) found` : "No deprecated reasoning keys found",
+ ...scanned.length > 0 ? { details: scanned.map((path12) => `Scanned: ${path12}`) } : {},
+ issues
+ };
+}
+
// packages/omo-opencode/src/cli/doctor/checks/dependencies.ts
init_src2();
-import { existsSync as existsSync51 } from "node:fs";
+import { existsSync as existsSync52 } from "node:fs";
import { createRequire as createRequire4 } from "node:module";
import { homedir as homedir16 } from "node:os";
-import { dirname as dirname27, join as join76 } from "node:path";
+import { dirname as dirname27, join as join77 } from "node:path";
// packages/omo-opencode/src/hooks/comment-checker/downloader.ts
-import { join as join75 } from "path";
+import { join as join76 } from "path";
import { homedir as homedir15, tmpdir as tmpdir4 } from "os";
init_binary_downloader();
init_logger2();
init_plugin_identity();
var DEBUG = process.env.COMMENT_CHECKER_DEBUG === "1";
-var DEBUG_FILE = join75(tmpdir4(), "comment-checker-debug.log");
+var DEBUG_FILE = join76(tmpdir4(), "comment-checker-debug.log");
function getCacheDir2() {
if (process.platform === "win32") {
const localAppData = process.env.LOCALAPPDATA || process.env.APPDATA;
- const base2 = localAppData || join75(homedir15(), "AppData", "Local");
- return join75(base2, CACHE_DIR_NAME, "bin");
+ const base2 = localAppData || join76(homedir15(), "AppData", "Local");
+ return join76(base2, CACHE_DIR_NAME, "bin");
}
const xdgCache = process.env.XDG_CACHE_HOME;
- const base = xdgCache || join75(homedir15(), ".cache");
- return join75(base, CACHE_DIR_NAME, "bin");
+ const base = xdgCache || join76(homedir15(), ".cache");
+ return join76(base, CACHE_DIR_NAME, "bin");
}
function getBinaryName() {
return process.platform === "win32" ? "comment-checker.exe" : "comment-checker";
@@ -108210,7 +108462,7 @@ async function getBinaryVersion(binary) {
}
}
async function checkAstGrepCli() {
- const runtimeDir = astGrepRuntimeDir(join76(homedir16(), ".omo"));
+ const runtimeDir = astGrepRuntimeDir(join77(homedir16(), ".omo"));
const sgPath = findSgBinarySync({ runtimeDir });
if (sgPath === null) {
return {
@@ -108240,11 +108492,11 @@ function findCommentCheckerPackageBinary(baseDirOverride, resolvePackageJsonPath
const platformKey = `${process.platform}-${process.arch === "x64" ? "x64" : process.arch}`;
try {
const packageDir = baseDirOverride ?? dirname27(resolvePackageJsonPath());
- const vendorPath = join76(packageDir, "vendor", platformKey, binaryName);
- if (existsSync51(vendorPath))
+ const vendorPath = join77(packageDir, "vendor", platformKey, binaryName);
+ if (existsSync52(vendorPath))
return vendorPath;
- const binPath = join76(packageDir, "bin", binaryName);
- if (existsSync51(binPath))
+ const binPath = join77(packageDir, "bin", binaryName);
+ if (existsSync52(binPath))
return binPath;
} catch (error51) {
if (!(error51 instanceof Error) && !isModuleResolutionFailure(error51))
@@ -108390,7 +108642,7 @@ async function getGhCliInfo(dependencies = {}) {
// packages/omo-opencode/src/mcp/lsp.ts
init_zod();
init_opencode_config_dir();
-import { existsSync as existsSync52, readFileSync as readFileSync33 } from "node:fs";
+import { existsSync as existsSync53, readFileSync as readFileSync34 } from "node:fs";
import { delimiter as delimiter3, dirname as dirname28, resolve as resolve19 } from "node:path";
import { fileURLToPath as fileURLToPath7 } from "node:url";
@@ -108534,7 +108786,7 @@ function findBootstrapRoot(candidates, pathExists) {
}
function readDaemonPackageVersion(root) {
try {
- const packageJson = JSON.parse(readFileSync33(resolve19(root, PACKAGE_REL, "package.json"), "utf-8"));
+ const packageJson = JSON.parse(readFileSync34(resolve19(root, PACKAGE_REL, "package.json"), "utf-8"));
return DaemonPackageSchema.parse(packageJson).version;
} catch (error51) {
if (!(error51 instanceof Error))
@@ -108556,7 +108808,7 @@ function createBootstrapCandidate(root, pathExists, resolveExecutable) {
};
}
function resolveLspCommand(options = {}) {
- const pathExists = options.exists ?? existsSync52;
+ const pathExists = options.exists ?? existsSync53;
const resolveExecutable = options.resolveExecutable ?? resolveRuntimeExecutable;
const moduleDirectory = getModuleDirectory(options.moduleUrl ?? import.meta.url);
const candidates = moduleDirectory ? createAncestorCliCandidates({
@@ -108615,24 +108867,24 @@ function getInstalledLspServers(options = {}) {
// packages/omo-opencode/src/cli/doctor/checks/tools-mcp.ts
init_shared();
-import { existsSync as existsSync53, readFileSync as readFileSync34 } from "node:fs";
+import { existsSync as existsSync54, readFileSync as readFileSync35 } from "node:fs";
import { homedir as homedir17 } from "node:os";
-import { join as join77 } from "node:path";
+import { join as join78 } from "node:path";
var BUILTIN_MCP_SERVERS = ["websearch", "context7", "grep_app", "lsp"];
function getMcpConfigPaths() {
return [
- join77(homedir17(), ".claude", ".mcp.json"),
- join77(process.cwd(), ".mcp.json"),
- join77(process.cwd(), ".claude", ".mcp.json")
+ join78(homedir17(), ".claude", ".mcp.json"),
+ join78(process.cwd(), ".mcp.json"),
+ join78(process.cwd(), ".claude", ".mcp.json")
];
}
function loadUserMcpConfig() {
const servers = {};
for (const configPath of getMcpConfigPaths()) {
- if (!existsSync53(configPath))
+ if (!existsSync54(configPath))
continue;
try {
- const content = readFileSync34(configPath, "utf-8");
+ const content = readFileSync35(configPath, "utf-8");
const config4 = parseJsonc(content);
if (config4.mcpServers) {
Object.assign(servers, config4.mcpServers);
@@ -108767,17 +109019,17 @@ async function checkTools() {
// packages/omo-opencode/src/cli/doctor/checks/telemetry.ts
init_src5();
-import { existsSync as existsSync54, readFileSync as readFileSync35 } from "node:fs";
+import { existsSync as existsSync55, readFileSync as readFileSync36 } from "node:fs";
function isTelemetryState(value) {
return value !== null && typeof value === "object" && !Array.isArray(value);
}
function readLastActiveDay(stateFilePath) {
- if (!existsSync54(stateFilePath)) {
+ if (!existsSync55(stateFilePath)) {
return "never";
}
let parsed;
try {
- parsed = JSON.parse(readFileSync35(stateFilePath, "utf-8"));
+ parsed = JSON.parse(readFileSync36(stateFilePath, "utf-8"));
} catch (error51) {
if (error51 instanceof Error) {
return "unreadable";
@@ -108902,10 +109154,10 @@ async function pathExists(dir) {
// packages/omo-opencode/src/cli/doctor/checks/codex.ts
init_src2();
-import { existsSync as existsSync55 } from "node:fs";
+import { existsSync as existsSync56 } from "node:fs";
import { lstat as lstat14, readdir as readdir12, readFile as readFile24 } from "node:fs/promises";
import { homedir as homedir19 } from "node:os";
-import { basename as basename11, join as join78, resolve as resolve20 } from "node:path";
+import { basename as basename11, join as join79, resolve as resolve20 } from "node:path";
// packages/omo-opencode/package.json
var package_default3 = {
name: "@oh-my-opencode/omo-opencode",
@@ -108970,13 +109222,13 @@ var CODEX_BIN_NAMES = [
"omo-git-bash-hook"
];
async function gatherCodexSummary(deps = {}) {
- const codexHome = resolve20(deps.codexHome ?? process.env.CODEX_HOME ?? join78(homedir19(), ".codex"));
+ const codexHome = resolve20(deps.codexHome ?? process.env.CODEX_HOME ?? join79(homedir19(), ".codex"));
const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });
const detection = await (deps.detectCodexInstallation ?? detectCodexInstallation)();
const pluginRoot = await resolveInstalledPluginRoot(codexHome);
- const manifest2 = pluginRoot === null ? null : await readJson(join78(pluginRoot, ".codex-plugin", "plugin.json"));
- const installSnapshot = pluginRoot === null ? null : await readJson(join78(pluginRoot, "lazycodex-install.json"));
- const configPath = join78(codexHome, "config.toml");
+ const manifest2 = pluginRoot === null ? null : await readJson(join79(pluginRoot, ".codex-plugin", "plugin.json"));
+ const installSnapshot = pluginRoot === null ? null : await readJson(join79(pluginRoot, "lazycodex-install.json"));
+ const configPath = join79(codexHome, "config.toml");
const pluginVersion = stringField(manifest2, "version");
return {
codexPath: detection.found && "path" in detection ? detection.path : null,
@@ -109033,7 +109285,7 @@ function buildCodexIssues(summary) {
if (summary.pluginRoot === null) {
issues.push({
title: "OMO Codex plugin is not installed",
- description: `Expected cached plugin at ${join78("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,
+ description: `Expected cached plugin at ${join79("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,
fix: "Run: npx lazycodex-ai install",
severity: "error",
affects: ["plugin loading"]
@@ -109098,15 +109350,15 @@ function buildCodexIssues(summary) {
return issues;
}
async function resolveInstalledPluginRoot(codexHome) {
- const pluginRoot = join78(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);
- if (!existsSync55(pluginRoot))
+ const pluginRoot = join79(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);
+ if (!existsSync56(pluginRoot))
return null;
const versions2 = await readdir12(pluginRoot, { withFileTypes: true });
const candidates = versions2.filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort(compareVersionsDescending);
- return candidates.length === 0 ? null : join78(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);
+ return candidates.length === 0 ? null : join79(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);
}
async function readCodexConfigSummary(configPath) {
- if (!existsSync55(configPath)) {
+ if (!existsSync56(configPath)) {
return {
exists: false,
marketplaceConfigured: false,
@@ -109131,14 +109383,14 @@ async function readCodexConfigSummary(configPath) {
async function readLinkedBins(binDir) {
const linked = [];
for (const name of CODEX_BIN_NAMES) {
- if (await pathExists2(join78(binDir, process.platform === "win32" ? `${name}.cmd` : name)))
+ if (await pathExists2(join79(binDir, process.platform === "win32" ? `${name}.cmd` : name)))
linked.push(name);
}
return linked;
}
async function readLinkedAgents(codexHome) {
- const agentsDir = join78(codexHome, "agents");
- if (!existsSync55(agentsDir))
+ const agentsDir = join79(codexHome, "agents");
+ if (!existsSync56(agentsDir))
return [];
const entries = await readdir12(agentsDir, { withFileTypes: true });
return entries.filter((entry) => entry.isFile() || entry.isSymbolicLink()).map((entry) => basename11(entry.name, ".toml")).sort();
@@ -109253,7 +109505,7 @@ async function pathExists2(path14) {
init_src2();
import { readdir as readdir13, readFile as readFile25, stat as stat6 } from "node:fs/promises";
import { homedir as homedir20 } from "node:os";
-import { dirname as dirname29, isAbsolute as isAbsolute12, join as join79, relative as relative10, resolve as resolve21, sep as sep9 } from "node:path";
+import { dirname as dirname29, isAbsolute as isAbsolute11, join as join80, relative as relative9, resolve as resolve21, 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";
@@ -109263,7 +109515,7 @@ async function checkCodexComponents(deps = {}) {
const env3 = deps.env ?? process.env;
const platform = deps.platform ?? process.platform;
const arch = deps.arch ?? process.arch;
- const codexHome = resolve21(deps.codexHome ?? env3["CODEX_HOME"] ?? join79(homedir20(), ".codex"));
+ const codexHome = resolve21(deps.codexHome ?? env3["CODEX_HOME"] ?? join80(homedir20(), ".codex"));
const summary = await gatherCodexSummary({ ...deps, codexHome });
if (summary.pluginRoot === null) {
return {
@@ -109288,7 +109540,7 @@ async function checkCodexComponents(deps = {}) {
});
}
const runtimeSgDir = runtimeSgDirectory(codexHome, platform, arch);
- const runtimeSgPath = join79(runtimeSgDir, sgBinaryName(platform));
+ const runtimeSgPath = join80(runtimeSgDir, sgBinaryName(platform));
const sg = findSgBinarySync({
arch,
env: env3,
@@ -109325,12 +109577,12 @@ async function auditBundleTargets(pluginRoot) {
let referencedCount = 0;
for (const manifestPath of await findManifestPaths(pluginRoot, ".mcp.json")) {
const manifest2 = await readJson2(manifestPath);
- if (manifest2 === null || !isRecord6(manifest2["mcpServers"]))
+ if (manifest2 === null || !isRecord11(manifest2["mcpServers"]))
continue;
const manifestRoot = dirname29(manifestPath);
const isRootManifest = resolve21(manifestRoot) === resolve21(pluginRoot);
for (const server2 of Object.values(manifest2["mcpServers"])) {
- if (!isRecord6(server2) || !Array.isArray(server2["args"]))
+ if (!isRecord11(server2) || !Array.isArray(server2["args"]))
continue;
for (const arg of server2["args"]) {
if (typeof arg !== "string" || !isPluginRuntimePathArg(arg))
@@ -109400,7 +109652,7 @@ async function findManifestPaths(root, manifestName) {
for (const entry of entries) {
if (entry.name === "node_modules" || entry.name === ".git")
continue;
- const entryPath = join79(root, entry.name);
+ const entryPath = join80(root, entry.name);
if (entry.isDirectory()) {
paths3.push(...await findManifestPaths(entryPath, manifestName));
continue;
@@ -109416,7 +109668,7 @@ function collectHookCommands(value, commands2) {
collectHookCommands(item, commands2);
return;
}
- if (!isRecord6(value))
+ if (!isRecord11(value))
return;
if (value["type"] === "command") {
if (typeof value["command"] === "string")
@@ -109441,21 +109693,21 @@ function extractPluginRootPaths(command) {
}
function isPluginRuntimePathArg(arg) {
const normalized = normalizePathSeparators(arg);
- return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute12(arg));
+ return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute11(arg));
}
function runtimeSgDirectory(codexHome, platform, arch) {
- return join79(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));
+ return join80(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));
}
function describeSgSource(sgPath, env3, runtimeSgDir, platform) {
const override = env3[SG_PATH_ENV_KEY]?.trim();
if (override !== undefined && override.length > 0 && sgPath === override)
return `env override ${SG_PATH_ENV_KEY}`;
- if (sgPath === join79(runtimeSgDir, sgBinaryName(platform)))
+ if (sgPath === join80(runtimeSgDir, sgBinaryName(platform)))
return "runtime dir";
return "PATH";
}
async function readBootstrapStateSummary(codexHome) {
- const statePath = join79(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");
+ const statePath = join80(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");
const raw = await readJson2(statePath);
if (raw === null)
return null;
@@ -109471,7 +109723,7 @@ function parseDegradedEntries(value) {
return [];
const entries = [];
for (const item of value) {
- if (!isRecord6(item))
+ if (!isRecord11(item))
continue;
if (typeof item["component"] !== "string" || typeof item["reason"] !== "string")
continue;
@@ -109505,7 +109757,7 @@ function degradedDetailLines(entries) {
async function readJson2(path14) {
try {
const parsed = JSON.parse(await readFile25(path14, "utf8"));
- return isRecord6(parsed) ? parsed : null;
+ return isRecord11(parsed) ? parsed : null;
} catch (error51) {
if (error51 instanceof Error)
return null;
@@ -109521,33 +109773,33 @@ async function fileSize(path14) {
}
}
function normalizeRelative(root, target) {
- return normalizePathSeparators(relative10(root, target));
+ return normalizePathSeparators(relative9(root, target));
}
function normalizePathSeparators(path14) {
return path14.split("\\").join("/");
}
-function isRecord6(value) {
+function isRecord11(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
// packages/omo-opencode/src/cli/doctor/checks/codex-runtime-wrapper.ts
-import { existsSync as existsSync56 } from "node:fs";
+import { existsSync as existsSync57 } from "node:fs";
import { readFile as readFile26 } from "node:fs/promises";
import { homedir as homedir21 } from "node:os";
-import { join as join80, resolve as resolve22 } from "node:path";
+import { join as join81, resolve as resolve22 } 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 = resolve22(deps.codexHome ?? process.env.CODEX_HOME ?? join80(homedir21(), ".codex"));
+ const codexHome = resolve22(deps.codexHome ?? process.env.CODEX_HOME ?? join81(homedir21(), ".codex"));
const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });
const platform = deps.platform ?? process.platform;
- const wrapperPath = join80(binDir, platform === "win32" ? "omo.cmd" : "omo");
+ const wrapperPath = join81(binDir, platform === "win32" ? "omo.cmd" : "omo");
const wrapper = await readRuntimeWrapper(wrapperPath);
const issues = [];
if (wrapper?.includes(RUNTIME_WRAPPER_MARKER2) === true) {
const targetPath = parseRuntimeTargetPath(wrapper);
- if (targetPath !== null && !existsSync56(targetPath)) {
+ if (targetPath !== null && !existsSync57(targetPath)) {
issues.push({
title: "omo runtime wrapper target is missing",
description: `Generated omo runtime wrapper at ${wrapperPath} points to missing target ${targetPath}.`,
@@ -109600,6 +109852,11 @@ function getAllCheckDefinitions() {
name: CHECK_NAMES[CHECK_IDS.TUI_PLUGIN],
check: checkTuiPluginConfig
},
+ {
+ id: "deprecated-reasoning-keys",
+ name: "Deprecated Reasoning Keys",
+ check: checkDeprecatedReasoningKeys
+ },
{
id: CHECK_IDS.TOOLS,
name: CHECK_NAMES[CHECK_IDS.TOOLS],
@@ -110046,23 +110303,23 @@ Doctor failed unexpectedly: ${message}`];
import { createHash as createHash5 } from "node:crypto";
import {
chmodSync as chmodSync4,
- existsSync as existsSync59,
+ existsSync as existsSync60,
mkdirSync as mkdirSync14,
readdirSync as readdirSync11,
- readFileSync as readFileSync37,
+ readFileSync as readFileSync38,
renameSync as renameSync7,
unlinkSync as unlinkSync9,
writeFileSync as writeFileSync11
} from "node:fs";
-import { basename as basename12, dirname as dirname30, join as join83 } from "node:path";
+import { basename as basename12, dirname as dirname30, join as join84 } from "node:path";
// packages/mcp-client-core/src/config-dir.ts
-import { existsSync as existsSync57, realpathSync as realpathSync8 } from "node:fs";
+import { existsSync as existsSync58, realpathSync as realpathSync8 } from "node:fs";
import { homedir as homedir22 } from "node:os";
-import { join as join81, resolve as resolve23 } from "node:path";
+import { join as join82, resolve as resolve23 } from "node:path";
function resolveConfigPath2(pathValue) {
const resolvedPath = resolve23(pathValue);
- if (!existsSync57(resolvedPath))
+ if (!existsSync58(resolvedPath))
return resolvedPath;
try {
return realpathSync8(resolvedPath);
@@ -110077,13 +110334,13 @@ function getOpenCodeCliConfigDir(env3 = process.env) {
if (customConfigDir) {
return resolveConfigPath2(customConfigDir);
}
- const xdgConfigDir = env3["XDG_CONFIG_HOME"]?.trim() || join81(homedir22(), ".config");
- return resolveConfigPath2(join81(xdgConfigDir, "opencode"));
+ const xdgConfigDir = env3["XDG_CONFIG_HOME"]?.trim() || join82(homedir22(), ".config");
+ return resolveConfigPath2(join82(xdgConfigDir, "opencode"));
}
// packages/mcp-client-core/src/mcp-oauth/storage-index.ts
-import { chmodSync as chmodSync3, existsSync as existsSync58, readFileSync as readFileSync36, renameSync as renameSync6, writeFileSync as writeFileSync10 } from "node:fs";
-import { join as join82 } from "node:path";
+import { chmodSync as chmodSync3, existsSync as existsSync59, readFileSync as readFileSync37, renameSync as renameSync6, writeFileSync as writeFileSync10 } from "node:fs";
+import { join as join83 } from "node:path";
var INDEX_FILE_NAME = "index.json";
function isTokenIndex(value) {
if (typeof value !== "object" || value === null || Array.isArray(value))
@@ -110091,14 +110348,14 @@ function isTokenIndex(value) {
return Object.values(value).every((entry) => typeof entry === "string");
}
function getIndexPath(storageDir) {
- return join82(storageDir, INDEX_FILE_NAME);
+ return join83(storageDir, INDEX_FILE_NAME);
}
function readTokenIndex(storageDir) {
const indexPath = getIndexPath(storageDir);
- if (!existsSync58(indexPath))
+ if (!existsSync59(indexPath))
return {};
try {
- const parsed = JSON.parse(readFileSync36(indexPath, "utf-8"));
+ const parsed = JSON.parse(readFileSync37(indexPath, "utf-8"));
return isTokenIndex(parsed) ? parsed : {};
} catch (readError) {
if (!(readError instanceof Error))
@@ -110135,16 +110392,16 @@ function deleteTokenIndexEntry(storageDir, hash2) {
var STORAGE_DIR_NAME = "mcp-oauth";
var LEGACY_STORAGE_FILE_NAME = "mcp-oauth.json";
function getMcpOauthStorageDir() {
- return join83(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);
+ return join84(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);
}
function getMcpOauthServerHash(serverHost, resource) {
return createHash5("sha256").update(buildKey(serverHost, resource)).digest("hex").slice(0, 32);
}
function getMcpOauthStoragePath(serverHost, resource) {
- return join83(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);
+ return join84(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);
}
function getLegacyStoragePath() {
- return join83(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);
+ return join84(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);
}
function normalizeHost2(serverHost) {
let host = serverHost.trim();
@@ -110205,10 +110462,10 @@ function isOAuthTokenData(value) {
return clientSecret === undefined || typeof clientSecret === "string";
}
function readTokenFile(filePath) {
- if (!existsSync59(filePath))
+ if (!existsSync60(filePath))
return null;
try {
- const parsed = JSON.parse(readFileSync37(filePath, "utf-8"));
+ const parsed = JSON.parse(readFileSync38(filePath, "utf-8"));
return isOAuthTokenData(parsed) ? parsed : null;
} catch (readError) {
if (!(readError instanceof Error))
@@ -110218,10 +110475,10 @@ function readTokenFile(filePath) {
}
function readLegacyStore() {
const filePath = getLegacyStoragePath();
- if (!existsSync59(filePath))
+ if (!existsSync60(filePath))
return null;
try {
- const parsed = JSON.parse(readFileSync37(filePath, "utf-8"));
+ const parsed = JSON.parse(readFileSync38(filePath, "utf-8"));
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
return null;
const result = {};
@@ -110239,7 +110496,7 @@ function readLegacyStore() {
function writeTokenFile(filePath, token) {
try {
const dir = dirname30(filePath);
- if (!existsSync59(dir)) {
+ if (!existsSync60(dir)) {
mkdirSync14(dir, { recursive: true });
}
const tempPath = `${filePath}.tmp.${Date.now()}`;
@@ -110263,7 +110520,7 @@ function saveToken(serverHost, resource, token) {
}
function deleteToken(serverHost, resource) {
const filePath = getMcpOauthStoragePath(serverHost, resource);
- if (!existsSync59(filePath))
+ if (!existsSync60(filePath))
return deleteLegacyToken(serverHost, resource);
try {
unlinkSync9(filePath);
@@ -110285,7 +110542,7 @@ function deleteLegacyToken(serverHost, resource) {
if (Object.keys(store2).length === 0) {
try {
const filePath = getLegacyStoragePath();
- if (existsSync59(filePath))
+ if (existsSync60(filePath))
unlinkSync9(filePath);
return true;
} catch (deleteError) {
@@ -110323,7 +110580,7 @@ function listTokensByHost(serverHost) {
for (const [hash2, indexedKey] of Object.entries(index)) {
if (!indexedKey.startsWith(prefix))
continue;
- const indexedToken = readTokenFile(join83(getMcpOauthStorageDir(), `${hash2}.json`));
+ const indexedToken = readTokenFile(join84(getMcpOauthStorageDir(), `${hash2}.json`));
if (indexedToken)
result[indexedKey] = indexedToken;
}
@@ -110332,13 +110589,13 @@ function listTokensByHost(serverHost) {
function listAllTokens() {
const result = { ...readLegacyStore() ?? {} };
const dir = getMcpOauthStorageDir();
- if (!existsSync59(dir))
+ if (!existsSync60(dir))
return result;
const index = readTokenIndex(dir);
for (const entry of readdirSync11(dir, { withFileTypes: true })) {
if (!entry.isFile() || !entry.name.endsWith(".json") || entry.name === "index.json")
continue;
- const token = readTokenFile(join83(dir, entry.name));
+ const token = readTokenFile(join84(dir, entry.name));
const hash2 = basename12(entry.name, ".json");
if (token)
result[index[hash2] ?? hash2] = token;
@@ -110904,7 +111161,7 @@ function createMcpOAuthCommand() {
}
// packages/omo-opencode/src/cli/boulder/boulder.ts
-import { existsSync as existsSync60 } from "node:fs";
+import { existsSync as existsSync61 } from "node:fs";
// packages/omo-opencode/src/cli/boulder/formatter.ts
var import_picocolors22 = __toESM(require_picocolors(), 1);
@@ -111041,10 +111298,10 @@ async function boulder(options) {
const boulderFilePath = getBoulderFilePath(directory);
const state2 = readBoulderState(directory);
if (!state2) {
- const message = existsSync60(boulderFilePath) ? formatReadErrorMessage(options.json) : formatNoBoulderMessage(options.json);
+ const message = existsSync61(boulderFilePath) ? formatReadErrorMessage(options.json) : formatNoBoulderMessage(options.json);
process.stderr.write(`${message}
`);
- return existsSync60(boulderFilePath) ? 2 : 1;
+ return existsSync61(boulderFilePath) ? 2 : 1;
}
const works = getBoulderWorks(state2);
const filteredWorks = options.workId ? works.filter((work) => work.work_id === options.workId) : works;
@@ -111062,7 +111319,7 @@ async function boulder(options) {
}
// packages/omo-opencode/src/cli/codex-ulw-loop.ts
import { spawn as spawn5 } from "node:child_process";
-import { existsSync as existsSync61, readFileSync as readFileSync38, realpathSync as realpathSync9 } from "node:fs";
+import { existsSync as existsSync62, readFileSync as readFileSync39, realpathSync as realpathSync9 } from "node:fs";
import { homedir as homedir23 } from "node:os";
var ULW_LOOP_DELEGATION_SENTINEL = "OMO_ULW_LOOP_DELEGATED";
function resolveCodexUlwLoopCommand(input = {}) {
@@ -111104,15 +111361,15 @@ async function codexUlwLoop(args) {
}
function resolveLocalUlwLoopBin(env3, homeDir) {
const candidates = resolveCodexComponentBinCandidates({ executableName: "omo-ulw-loop", env: env3, homeDir });
- return candidates.find((candidate) => existsSync61(candidate)) ?? null;
+ return candidates.find((candidate) => existsSync62(candidate)) ?? null;
}
function resolveLegacyLocalOmoBin(env3, homeDir, currentExecutablePaths) {
const candidates = resolveCodexComponentBinCandidates({ executableName: "omo", env: env3, homeDir });
- return candidates.find((candidate) => existsSync61(candidate) && !isCurrentExecutable(candidate, currentExecutablePaths) && !isGeneratedRuntimeWrapper(candidate)) ?? null;
+ return candidates.find((candidate) => existsSync62(candidate) && !isCurrentExecutable(candidate, currentExecutablePaths) && !isGeneratedRuntimeWrapper(candidate)) ?? null;
}
function isGeneratedRuntimeWrapper(candidate) {
try {
- return readFileSync38(candidate, "utf8").includes(RUNTIME_WRAPPER_MARKER);
+ return readFileSync39(candidate, "utf8").includes(RUNTIME_WRAPPER_MARKER);
} catch (error51) {
if (error51 instanceof Error)
return false;
@@ -111293,12 +111550,12 @@ Examples:
Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi > Bailian > MiniMax > Vercel):
Claude Native anthropic/ models (Opus, Sonnet, Haiku)
- OpenAI Native openai/ models (GPT-5.4 for Oracle)
+ OpenAI Native openai/ models (GPT-5.6 Sol for Oracle)
Gemini Native google/ models (Gemini 3.1 Pro, Flash)
Copilot github-copilot/ models (fallback)
- OpenCode Zen opencode/ models (opencode/claude-opus-4-7, etc.)
- Z.ai zai-coding-plan/glm-5 (visual-engineering fallback)
- Kimi kimi-for-coding/k2p5 (Sisyphus/Prometheus fallback)
+ OpenCode Zen opencode/ models (opencode/claude-opus-5, etc.)
+ Z.ai zai-coding-plan/glm-5.2 (visual-engineering fallback)
+ Kimi kimi-for-coding/kimi-k3 (Sisyphus/Prometheus fallback)
Bailian bailian-coding-plan/ models (Qwen, GLM, Kimi fallback)
MiniMax minimax-coding-plan/MiniMax-M3 (utility fallback)
MiniMax CN minimax-cn-coding-plan/MiniMax-M3 (utility fallback)
@@ -111320,7 +111577,7 @@ Examples:
$ bunx oh-my-opencode run --on-complete "notify-send Done" "Fix the bug"
$ bunx oh-my-opencode run --session-id ses_abc123 "Continue the work"
$ bunx oh-my-opencode run --model anthropic/claude-sonnet-4 "Fix the bug"
- $ bunx oh-my-opencode run --agent Sisyphus --model openai/gpt-5.5 "Implement feature X"
+ $ bunx oh-my-opencode run --agent Sisyphus --model openai/gpt-5.6-sol "Implement feature X"
Agent resolution order:
1) --agent flag
diff --git a/plugins/omo/dist/cli/index.js b/plugins/omo/dist/cli/index.js
index a2e6bbb2..eb7d347d 100755
--- a/plugins/omo/dist/cli/index.js
+++ b/plugins/omo/dist/cli/index.js
@@ -2145,7 +2145,7 @@ var package_default;
var init_package = __esm(() => {
package_default = {
name: "oh-my-opencode",
- version: "4.19.3",
+ version: "4.19.4",
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",
@@ -2357,18 +2357,18 @@ var init_package = __esm(() => {
typescript: "^7.0.2"
},
optionalDependencies: {
- "oh-my-opencode-darwin-arm64": "4.19.3",
- "oh-my-opencode-darwin-x64": "4.19.3",
- "oh-my-opencode-darwin-x64-baseline": "4.19.3",
- "oh-my-opencode-linux-arm64": "4.19.3",
- "oh-my-opencode-linux-arm64-musl": "4.19.3",
- "oh-my-opencode-linux-x64": "4.19.3",
- "oh-my-opencode-linux-x64-baseline": "4.19.3",
- "oh-my-opencode-linux-x64-musl": "4.19.3",
- "oh-my-opencode-linux-x64-musl-baseline": "4.19.3",
- "oh-my-opencode-windows-arm64": "4.19.3",
- "oh-my-opencode-windows-x64": "4.19.3",
- "oh-my-opencode-windows-x64-baseline": "4.19.3"
+ "oh-my-opencode-darwin-arm64": "4.19.4",
+ "oh-my-opencode-darwin-x64": "4.19.4",
+ "oh-my-opencode-darwin-x64-baseline": "4.19.4",
+ "oh-my-opencode-linux-arm64": "4.19.4",
+ "oh-my-opencode-linux-arm64-musl": "4.19.4",
+ "oh-my-opencode-linux-x64": "4.19.4",
+ "oh-my-opencode-linux-x64-baseline": "4.19.4",
+ "oh-my-opencode-linux-x64-musl": "4.19.4",
+ "oh-my-opencode-linux-x64-musl-baseline": "4.19.4",
+ "oh-my-opencode-windows-arm64": "4.19.4",
+ "oh-my-opencode-windows-x64": "4.19.4",
+ "oh-my-opencode-windows-x64-baseline": "4.19.4"
},
overrides: {
"@earendil-works/pi-agent-core": "0.80.3",
@@ -22145,24 +22145,149 @@ var init_zod = __esm(() => {
init_external();
});
+// packages/omo-config-core/src/schema/reasoning-vocabulary.ts
+function isReasoningLevel(value) {
+ return REASONING_LEVEL_SET.has(value);
+}
+function normalizeReasoning(input) {
+ const normalized = input.trim().toLowerCase();
+ if (!normalized)
+ return {};
+ if (normalized === "none")
+ return { level: "off" };
+ if (normalized === REASONING_AUTO)
+ return { level: REASONING_AUTO };
+ if (isReasoningLevel(normalized))
+ return { level: normalized };
+ return { passthrough: normalized };
+}
+function splitReasoningSuffix(model, options) {
+ if (typeof model !== "string")
+ return { base: "" };
+ const trimmed = model.trim();
+ if (!trimmed)
+ return { base: "" };
+ const separatorIndex = trimmed.lastIndexOf(":");
+ if (separatorIndex === -1)
+ return { base: trimmed };
+ const base = trimmed.slice(0, separatorIndex).trim();
+ const token = trimmed.slice(separatorIndex + 1).trim().toLowerCase();
+ if (!base || !REASONING_LEVEL_OR_AUTO_SET.has(token))
+ return { base: trimmed };
+ if (token === "max" && !(options?.allowMaxSuffix ?? base.includes("/")))
+ return { base: trimmed };
+ return { base, level: token };
+}
+var REASONING_LEVELS, REASONING_AUTO = "auto", REASONING_LEVEL_SET, REASONING_LEVEL_OR_AUTO_SET;
+var init_reasoning_vocabulary = __esm(() => {
+ REASONING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
+ REASONING_LEVEL_SET = new Set(REASONING_LEVELS);
+ REASONING_LEVEL_OR_AUTO_SET = new Set([...REASONING_LEVELS, REASONING_AUTO]);
+});
+
+// packages/omo-config-core/src/schema/model-ref.ts
+var REASONING_LEVELS_OR_AUTO, OmoReasoningSchema, OmoModelRefObjectSchema, OmoModelRefSchema;
+var init_model_ref = __esm(() => {
+ init_zod();
+ init_reasoning_vocabulary();
+ REASONING_LEVELS_OR_AUTO = [...REASONING_LEVELS, "auto"];
+ OmoReasoningSchema = union([
+ _enum2(REASONING_LEVELS_OR_AUTO),
+ string2()
+ ]);
+ OmoModelRefObjectSchema = object({
+ model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
+ temperature: number2().min(0).max(2).optional(),
+ top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional()
+ }).strict();
+ OmoModelRefSchema = union([string2(), OmoModelRefObjectSchema]);
+});
+
// packages/omo-config-core/src/schema/fallback-models.ts
-var OmoThinkingConfigSchema, OmoReasoningEffortSchema, OmoFallbackModelObjectSchema, OmoFallbackModelsSchema;
+function isRecord2(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+function canonicalReasoning(value) {
+ if (typeof value !== "string")
+ return;
+ const normalized = normalizeReasoning(value);
+ return normalized.level ?? normalized.passthrough;
+}
+function canonicalModelString(model) {
+ const colon = splitReasoningSuffix(model, { allowMaxSuffix: true });
+ if (colon.level !== undefined)
+ return `${colon.base}:${colon.level}`;
+ const trimmed = model.trim();
+ const parenthesized = trimmed.match(/^(.*)\(([^()]+)\)\s*$/);
+ const spaced = parenthesized === null ? trimmed.match(/^(.*\S)\s+([a-z][a-z0-9_-]*)$/i) : null;
+ const base = (parenthesized?.[1] ?? spaced?.[1])?.trim();
+ const token = (parenthesized?.[2] ?? spaced?.[2])?.trim();
+ if (base === undefined || token === undefined)
+ return trimmed;
+ const normalized = normalizeReasoning(token);
+ return normalized.level === undefined ? trimmed : `${base}:${normalized.level}`;
+}
+function normalizeLegacyModelFields(entry) {
+ const normalized = { ...entry };
+ delete normalized["variant"];
+ delete normalized["reasoningEffort"];
+ delete normalized["thinking"];
+ delete normalized["textVerbosity"];
+ delete normalized["maxTokens"];
+ delete normalized["providerOptions"];
+ if (typeof entry["model"] === "string")
+ normalized["model"] = canonicalModelString(entry["model"]);
+ const explicitReasoning = canonicalReasoning(entry["reasoning"]);
+ const variant = canonicalReasoning(entry["variant"]);
+ const reasoningEffort = canonicalReasoning(entry["reasoningEffort"]);
+ const thinking = isRecord2(entry["thinking"]) ? entry["thinking"] : undefined;
+ const reasoning = explicitReasoning ?? reasoningEffort ?? variant ?? (thinking?.["type"] === "disabled" ? "off" : undefined);
+ if (reasoning !== undefined)
+ normalized["reasoning"] = reasoning;
+ const providerOptions = isRecord2(entry["provider_options"]) ? { ...entry["provider_options"] } : isRecord2(entry["providerOptions"]) ? { ...entry["providerOptions"] } : {};
+ if (thinking?.["type"] === "enabled")
+ providerOptions["thinking"] = { ...thinking };
+ if (entry["textVerbosity"] !== undefined)
+ providerOptions["textVerbosity"] = entry["textVerbosity"];
+ if (Object.keys(providerOptions).length > 0)
+ normalized["provider_options"] = providerOptions;
+ if (entry["max_tokens"] !== undefined)
+ normalized["max_tokens"] = entry["max_tokens"];
+ else if (entry["maxTokens"] !== undefined)
+ normalized["max_tokens"] = entry["maxTokens"];
+ return normalized;
+}
+function normalizeLegacyModelEntry(entry) {
+ return OmoModelRefObjectSchema.parse(normalizeLegacyModelFields(entry));
+}
+var OmoThinkingConfigSchema, OmoReasoningEffortSchema, OmoLegacyFallbackModelObjectInputSchema, OmoFallbackModelObjectSchema, OmoFallbackModelsSchema;
var init_fallback_models = __esm(() => {
init_zod();
+ init_model_ref();
+ init_reasoning_vocabulary();
OmoThinkingConfigSchema = object({
type: _enum2(["enabled", "disabled"]),
budgetTokens: number2().optional()
}).strict();
- OmoReasoningEffortSchema = _enum2(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
- OmoFallbackModelObjectSchema = object({
+ OmoReasoningEffortSchema = OmoReasoningSchema;
+ OmoLegacyFallbackModelObjectInputSchema = object({
model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ variant: string2().optional(),
+ reasoningEffort: OmoReasoningEffortSchema.optional(),
+ thinking: OmoThinkingConfigSchema.optional(),
+ textVerbosity: _enum2(["low", "medium", "high"]).optional(),
maxTokens: number2().optional(),
- thinking: OmoThinkingConfigSchema.optional()
+ providerOptions: record(string2(), unknown()).optional()
}).strict();
+ OmoFallbackModelObjectSchema = preprocess((value) => isRecord2(value) ? normalizeLegacyModelFields(value) : value, OmoLegacyFallbackModelObjectInputSchema);
OmoFallbackModelsSchema = union([
string2(),
array(string2()),
@@ -22172,23 +22297,21 @@ var init_fallback_models = __esm(() => {
});
// packages/omo-config-core/src/schema/agent.ts
-var OmoAgentModelEntrySchema, OmoAgentDefSchema, OmoAgentsConfigSchema;
+function isRecord3(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoAgentModelEntrySchema, OmoAgentDefInputSchema, OmoAgentDefSchema, OmoAgentsConfigSchema;
var init_agent = __esm(() => {
init_zod();
init_fallback_models();
- OmoAgentModelEntrySchema = union([
- string2(),
- object({
- model: string2(),
- variant: string2().optional(),
- reasoningEffort: OmoReasoningEffortSchema.optional()
- }).strict()
- ]);
- OmoAgentDefSchema = object({
+ init_model_ref();
+ OmoAgentModelEntrySchema = union([string2(), OmoFallbackModelObjectSchema]);
+ OmoAgentDefInputSchema = object({
description: string2().optional(),
prompt: string2().optional(),
model: string2().optional(),
models: array(OmoAgentModelEntrySchema).optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
tools: record(string2(), boolean2()).optional(),
@@ -22201,21 +22324,30 @@ var init_agent = __esm(() => {
temperature: number2().min(0).max(2).optional(),
disable: boolean2().optional()
}).strict();
+ OmoAgentDefSchema = preprocess((value) => isRecord3(value) ? normalizeLegacyModelFields(value) : value, OmoAgentDefInputSchema);
OmoAgentsConfigSchema = record(string2(), OmoAgentDefSchema);
});
// packages/omo-config-core/src/schema/category.ts
-var OmoCategoryConfigSchema, OmoCategoriesConfigSchema;
+function isRecord4(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoCategoryConfigObjectSchema, OmoCategoryConfigSchema, OmoCategoriesConfigSchema;
var init_category = __esm(() => {
init_zod();
init_fallback_models();
- OmoCategoryConfigSchema = object({
+ init_model_ref();
+ OmoCategoryConfigObjectSchema = object({
description: string2().optional(),
model: string2().optional(),
- fallback_models: OmoFallbackModelsSchema.optional(),
- variant: string2().optional(),
+ models: array(union([string2(), OmoFallbackModelObjectSchema])).optional(),
+ reasoning: OmoReasoningSchema.optional(),
temperature: number2().min(0).max(2).optional(),
top_p: number2().min(0).max(1).optional(),
+ max_tokens: number2().int().positive().optional(),
+ provider_options: record(string2(), unknown()).optional(),
+ fallback_models: OmoFallbackModelsSchema.optional(),
+ variant: string2().optional(),
maxTokens: number2().optional(),
thinking: OmoThinkingConfigSchema.optional(),
reasoningEffort: OmoReasoningEffortSchema.optional(),
@@ -22224,8 +22356,10 @@ var init_category = __esm(() => {
prompt_append: string2().optional(),
max_prompt_tokens: number2().int().positive().optional(),
is_unstable_agent: boolean2().optional(),
- disable: boolean2().optional()
+ disable: boolean2().optional(),
+ warn_unavailable: boolean2().optional()
}).strict();
+ OmoCategoryConfigSchema = preprocess((value) => isRecord4(value) ? normalizeLegacyModelFields(value) : value, OmoCategoryConfigObjectSchema);
OmoCategoriesConfigSchema = record(string2(), OmoCategoryConfigSchema);
});
@@ -22262,22 +22396,29 @@ var init_codegraph = __esm(() => {
});
// packages/omo-config-core/src/schema/model-catalog.ts
-var OmoModelCatalogEntrySchema, OmoModelCatalogSchema, OmoModelCatalogEntryLayerSchema, OmoModelCatalogLayerSchema;
+function isRecord5(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+var OmoModelCatalogEntryInputSchema, OmoModelCatalogEntrySchema, OmoModelCatalogSchema, OmoModelCatalogEntryLayerInputSchema, OmoModelCatalogEntryLayerSchema, OmoModelCatalogLayerSchema;
var init_model_catalog = __esm(() => {
init_zod();
init_fallback_models();
- OmoModelCatalogEntrySchema = object({
+ init_model_ref();
+ OmoModelCatalogEntryInputSchema = object({
model: string2(),
+ reasoning: OmoReasoningSchema.optional(),
variant: string2().optional(),
reasoningEffort: OmoReasoningEffortSchema.optional()
}).strict();
+ OmoModelCatalogEntrySchema = preprocess((value) => isRecord5(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
OmoModelCatalogSchema = record(string2(), OmoModelCatalogEntrySchema);
- OmoModelCatalogEntryLayerSchema = OmoModelCatalogEntrySchema.partial();
+ OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
+ OmoModelCatalogEntryLayerSchema = preprocess((value) => isRecord5(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
OmoModelCatalogLayerSchema = record(string2(), OmoModelCatalogEntryLayerSchema);
});
// packages/omo-config-core/src/schema/task.ts
-var OmoTaskWaitSchema, OmoTaskTeamSettingsSchema, OmoTaskSettingsSchema, OmoTaskWaitLayerSchema, OmoTaskTeamSettingsLayerSchema, OmoTaskSettingsLayerSchema;
+var OmoTaskWaitSchema, OmoTaskTeamSettingsSchema, OmoTaskWarningsSchema, OmoTaskSettingsSchema, OmoTaskWaitLayerSchema, OmoTaskTeamSettingsLayerSchema, OmoTaskWarningsLayerSchema, OmoTaskSettingsLayerSchema;
var init_task = __esm(() => {
init_zod();
OmoTaskWaitSchema = object({
@@ -22290,6 +22431,9 @@ var init_task = __esm(() => {
max_parallel_members: number2().int().min(1).max(8).default(4),
max_wall_clock_minutes: number2().int().positive().default(120)
}).strict();
+ OmoTaskWarningsSchema = object({
+ unavailable_categories: boolean2().default(true)
+ }).strict();
OmoTaskSettingsSchema = object({
default_execution_mode: _enum2(["in-process", "process"]).default("in-process"),
default_concurrency: number2().int().positive().default(5),
@@ -22300,6 +22444,7 @@ var init_task = __esm(() => {
ttl_ms: number2().int().positive().default(86400000),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
team: OmoTaskTeamSettingsSchema.default({
max_members: 8,
@@ -22317,6 +22462,9 @@ var init_task = __esm(() => {
max_parallel_members: number2().int().min(1).max(8).optional(),
max_wall_clock_minutes: number2().int().positive().optional()
}).strict();
+ OmoTaskWarningsLayerSchema = object({
+ unavailable_categories: boolean2().optional()
+ }).strict();
OmoTaskSettingsLayerSchema = object({
default_execution_mode: _enum2(["in-process", "process"]).optional(),
default_concurrency: number2().int().positive().optional(),
@@ -22327,6 +22475,7 @@ var init_task = __esm(() => {
ttl_ms: number2().int().positive().optional(),
state_dir: string2().optional(),
reattach_on_reconcile: boolean2().optional(),
+ warnings: OmoTaskWarningsLayerSchema.optional(),
wait: OmoTaskWaitLayerSchema.optional(),
team: OmoTaskTeamSettingsLayerSchema.optional()
}).strict();
@@ -22454,6 +22603,7 @@ var init_schema = __esm(() => {
init_fallback_models();
init_harness();
init_model_catalog();
+ init_model_ref();
init_task();
init_team();
});
@@ -22516,11 +22666,8 @@ var init_types = __esm(() => {
});
// packages/omo-config-core/src/loader/paths.ts
-import { dirname, isAbsolute, join as join3, posix, relative, resolve } from "path";
-function containsPath(parent, child) {
- const pathToChild = relative(parent, child);
- return pathToChild === "" || !pathToChild.startsWith("..") && !isAbsolute(pathToChild);
-}
+import { userInfo } from "os";
+import { dirname, join as join3, posix, resolve } from "path";
function resolveHomeDir(env = process.env) {
const homeDir = env.HOME ?? env.USERPROFILE ?? process.cwd();
return homeDir.startsWith("/") ? posix.resolve(homeDir) : toPosixPath(resolve(homeDir));
@@ -22572,15 +22719,14 @@ function realpathOrSelf(path3, fileSystem) {
return path3;
}
}
-function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem) {
+function findProjectConfigPathsFarthestFirst(cwd, homeDir, fileSystem, accountHomeDir = homeDir) {
const startDir = resolve(cwd);
- const resolvedHomeDir = resolve(homeDir);
- const realHomeDir = realpathOrSelf(resolvedHomeDir, fileSystem);
- const stopDir = containsPath(realHomeDir, realpathOrSelf(startDir, fileSystem)) ? realHomeDir : null;
+ const boundaryDirs = [...new Set([resolve(homeDir), resolve(accountHomeDir)])];
+ const realBoundaryDirs = new Set(boundaryDirs.map((path3) => realpathOrSelf(path3, fileSystem)));
const nearestFirst = [];
let currentDir = startDir;
for (let depth = 0;depth < MAX_PROJECT_CONFIG_DIRECTORY_DEPTH; depth += 1) {
- const isHomeDir = currentDir === resolvedHomeDir || stopDir !== null && realpathOrSelf(currentDir, fileSystem) === stopDir;
+ const isHomeDir = boundaryDirs.includes(currentDir) || realBoundaryDirs.has(realpathOrSelf(currentDir, fileSystem));
const configPath = isHomeDir ? null : detectOmoJsonPath(currentDir, fileSystem);
if (configPath !== null)
nearestFirst.push(configPath);
@@ -22597,16 +22743,17 @@ function resolveOmoConfigPaths(options) {
const fileSystem = options.fileSystem ?? DEFAULT_READ_FILE_SYSTEM;
const env = options.env ?? process.env;
const userPath = detectUserOmoJsonPath(env, fileSystem);
- const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem);
+ const projectPaths = findProjectConfigPathsFarthestFirst(options.cwd, resolveHomeDir(env), fileSystem, ACCOUNT_HOME_DIR);
return [
{ path: userPath, scope: "user" },
...projectPaths.map((path3) => ({ path: path3, scope: "project" }))
];
}
-var MAX_PROJECT_CONFIG_DIRECTORY_DEPTH = 256;
+var MAX_PROJECT_CONFIG_DIRECTORY_DEPTH = 256, ACCOUNT_HOME_DIR;
var init_paths = __esm(() => {
init_posix_path();
init_types();
+ ACCOUNT_HOME_DIR = userInfo().homedir;
});
// packages/omo-config-core/src/loader/resolution.ts
@@ -22864,79 +23011,58 @@ function findModelCatalogCycles(catalog) {
}
// packages/omo-config-core/src/models/model-reference-resolution.ts
-function catalogReference(model, variant, reasoningEffort, catalog, cycleNames) {
+function catalogReference(model, reasoning, catalog, cycleNames) {
const entry = catalog?.[model];
if (entry === undefined || cycleNames.has(model))
return;
return {
model: entry.model,
- ...variant === undefined && entry.variant !== undefined ? { variant: entry.variant } : variant !== undefined ? { variant } : {},
- ...reasoningEffort === undefined && entry.reasoningEffort !== undefined ? { reasoningEffort: entry.reasoningEffort } : reasoningEffort !== undefined ? { reasoningEffort } : {}
- };
-}
-function resolveAgentModelEntry(entry, catalog, cycleNames) {
- if (typeof entry === "string") {
- const resolved2 = catalogReference(entry, undefined, undefined, catalog, cycleNames);
- if (resolved2 === undefined)
- return entry;
- return resolved2.variant === undefined && resolved2.reasoningEffort === undefined ? resolved2.model : resolved2;
- }
- const resolved = catalogReference(entry.model, entry.variant, entry.reasoningEffort, catalog, cycleNames);
- if (resolved === undefined)
- return entry;
- return {
- ...entry,
- model: resolved.model,
- ...entry.variant === undefined && resolved.variant !== undefined ? { variant: resolved.variant } : {},
- ...entry.reasoningEffort === undefined && resolved.reasoningEffort !== undefined ? { reasoningEffort: resolved.reasoningEffort } : {}
+ ...reasoning === undefined && entry.reasoning !== undefined ? { reasoning: entry.reasoning } : reasoning !== undefined ? { reasoning } : {}
};
}
-function resolveFallbackModelEntry(entry, catalog, cycleNames) {
+function resolveModelEntry(entry, catalog, cycleNames) {
if (typeof entry === "string") {
- const resolved2 = catalogReference(entry, undefined, undefined, catalog, cycleNames);
+ const resolved2 = catalogReference(entry, undefined, catalog, cycleNames);
if (resolved2 === undefined)
return entry;
- return resolved2.variant === undefined && resolved2.reasoningEffort === undefined ? resolved2.model : resolved2;
+ return resolved2.reasoning === undefined ? resolved2.model : resolved2;
}
- const resolved = catalogReference(entry.model, entry.variant, entry.reasoningEffort, catalog, cycleNames);
+ const resolved = catalogReference(entry.model, entry.reasoning, catalog, cycleNames);
if (resolved === undefined)
return entry;
return {
...entry,
model: resolved.model,
- ...entry.variant === undefined && resolved.variant !== undefined ? { variant: resolved.variant } : {},
- ...entry.reasoningEffort === undefined && resolved.reasoningEffort !== undefined ? { reasoningEffort: resolved.reasoningEffort } : {}
+ ...entry.reasoning === undefined && resolved.reasoning !== undefined ? { reasoning: resolved.reasoning } : {}
};
}
function resolveFallbackModels(fallbackModels, catalog, cycleNames) {
if (fallbackModels === undefined)
return;
if (typeof fallbackModels !== "string") {
- return fallbackModels.map((entry) => resolveFallbackModelEntry(entry, catalog, cycleNames));
+ return fallbackModels.map((entry) => resolveModelEntry(entry, catalog, cycleNames));
}
- const resolved = catalogReference(fallbackModels, undefined, undefined, catalog, cycleNames);
- if (resolved === undefined || resolved.variant === undefined && resolved.reasoningEffort === undefined) {
+ const resolved = catalogReference(fallbackModels, undefined, catalog, cycleNames);
+ if (resolved === undefined || resolved.reasoning === undefined)
return resolved?.model ?? fallbackModels;
- }
return [resolved];
}
function resolveAgentDefinition(definition, catalog, cycleNames) {
- const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.variant, definition.reasoningEffort, catalog, cycleNames);
+ const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.reasoning, catalog, cycleNames);
return {
...definition,
...resolvedModel === undefined ? {} : { model: resolvedModel.model },
- ...definition.variant === undefined && resolvedModel?.variant !== undefined ? { variant: resolvedModel.variant } : {},
- ...definition.reasoningEffort === undefined && resolvedModel?.reasoningEffort !== undefined ? { reasoningEffort: resolvedModel.reasoningEffort } : {},
- ...definition.models === undefined ? {} : { models: definition.models.map((entry) => resolveAgentModelEntry(entry, catalog, cycleNames)) }
+ ...definition.reasoning === undefined && resolvedModel?.reasoning !== undefined ? { reasoning: resolvedModel.reasoning } : {},
+ ...definition.models === undefined ? {} : { models: definition.models.map((entry) => resolveModelEntry(entry, catalog, cycleNames)) }
};
}
function resolveCategoryDefinition(definition, catalog, cycleNames) {
- const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.variant, definition.reasoningEffort, catalog, cycleNames);
+ const resolvedModel = definition.model === undefined ? undefined : catalogReference(definition.model, definition.reasoning, catalog, cycleNames);
return {
...definition,
...resolvedModel === undefined ? {} : { model: resolvedModel.model },
- ...definition.variant === undefined && resolvedModel?.variant !== undefined ? { variant: resolvedModel.variant } : {},
- ...definition.reasoningEffort === undefined && resolvedModel?.reasoningEffort !== undefined ? { reasoningEffort: resolvedModel.reasoningEffort } : {},
+ ...definition.reasoning === undefined && resolvedModel?.reasoning !== undefined ? { reasoning: resolvedModel.reasoning } : {},
+ ...definition.models === undefined ? {} : { models: definition.models.map((entry) => resolveModelEntry(entry, catalog, cycleNames)) },
...definition.fallback_models === undefined ? {} : { fallback_models: resolveFallbackModels(definition.fallback_models, catalog, cycleNames) }
};
}
@@ -23414,6 +23540,23 @@ function prepareTargetWrite(input) {
const edits = [...collectMigrationEdits(merged.additions), { path: ["_migrations"], value: marker }];
return { diagnostics: merged.diagnostics, document, edits };
}
+function prepareTargetReplacement(input) {
+ const marker = markerValue(input.target, input.migrationId, input.targetPath);
+ const document = { ...input.document, _migrations: marker };
+ validateTarget(input.targetPath, document);
+ const edits = [];
+ for (const key of Object.keys(input.target)) {
+ if (key !== "_migrations" && !Object.prototype.hasOwnProperty.call(input.document, key)) {
+ edits.push({ path: [key], value: undefined });
+ }
+ }
+ for (const [key, value] of Object.entries(input.document)) {
+ if (key !== "_migrations")
+ edits.push({ path: [key], value });
+ }
+ edits.push({ path: ["_migrations"], value: marker });
+ return { diagnostics: [], document, edits };
+}
function writePreparedTarget(input) {
input.writeTarget({
edits: input.prepared.edits,
@@ -23469,9 +23612,17 @@ function parseJournal(value) {
if (!isPlainObject4(value["targetWrite"]) || !isPlainObject4(value["targetWrite"]["additions"])) {
throw new Error("Migration journal target write is invalid");
}
+ const targetWriteMode = value["targetWrite"]["mode"];
+ if (targetWriteMode !== undefined && targetWriteMode !== "replace-target") {
+ throw new Error("Migration journal target write mode is invalid");
+ }
if (typeof value["targetWritten"] !== "boolean" || !Array.isArray(value["completedMoves"])) {
throw new Error("Migration journal completion state is invalid");
}
+ const diagnostics = value["diagnostics"];
+ if (diagnostics !== undefined && (!Array.isArray(diagnostics) || !diagnostics.every((entry) => typeof entry === "string"))) {
+ throw new Error("Migration journal diagnostics are invalid");
+ }
if (!value["completedMoves"].every((path3) => typeof path3 === "string")) {
throw new Error("Migration journal completed moves are invalid");
}
@@ -23487,9 +23638,13 @@ function parseJournal(value) {
return {
backupMoves,
completedMoves: [...value["completedMoves"]],
+ diagnostics: diagnostics === undefined ? [] : [...diagnostics],
migrationId: value["migrationId"],
targetPath: value["targetPath"],
- targetWrite: { additions: { ...value["targetWrite"]["additions"] } },
+ targetWrite: {
+ additions: { ...value["targetWrite"]["additions"] },
+ ...targetWriteMode === undefined ? {} : { mode: targetWriteMode }
+ },
targetWritten: value["targetWritten"],
version: 1
};
@@ -23687,7 +23842,12 @@ function resumeMigrationJournal(input) {
input.renewLock();
const target = targetDocument(journal.targetPath, input.fileSystem);
if (!hasMigrationMarker(target, journal.migrationId)) {
- const prepared = prepareTargetWrite({
+ const prepared = journal.targetWrite.mode === "replace-target" ? prepareTargetReplacement({
+ document: journal.targetWrite.additions,
+ migrationId: journal.migrationId,
+ target,
+ targetPath: journal.targetPath
+ }) : prepareTargetWrite({
additions: journal.targetWrite.additions,
migrationId: journal.migrationId,
target,
@@ -23797,11 +23957,17 @@ function executePlan(input) {
assertSafeSourcePaths(plan.sources, protectedPaths);
const existingSources = plan.sources.filter((source) => fileSystem.existsSync(source.path));
const target = targetDocument(plan.targetPath, fileSystem);
- if (!shouldRunMigration({ legacySourcesExist: existingSources.length > 0, migrationId: plan.id, target })) {
+ const replaceTarget = plan.mode === "replace-target";
+ if (!shouldRunMigration({
+ legacySourcesExist: replaceTarget ? fileSystem.existsSync(plan.targetPath) : existingSources.length > 0,
+ migrationId: plan.id,
+ target
+ })) {
return { diagnostics: [], journalResumed, status: "skipped" };
}
- const transformed = transformResult(plan.transform(loadSources(existingSources, fileSystem)));
- const prepared = prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
+ const loaded = replaceTarget ? [{ path: plan.targetPath, value: target }] : loadSources(existingSources, fileSystem);
+ const transformed = transformResult(plan.transform(loaded));
+ const prepared = replaceTarget ? prepareTargetReplacement({ document: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath }) : prepareTargetWrite({ additions: transformed.document, migrationId: plan.id, target, targetPath: plan.targetPath });
const diagnostics = [...transformed.diagnostics, ...prepared.diagnostics];
const moves = backupMoves(existingSources, plan.id, fileSystem, protectedPaths);
const preview = { backupMoves: moves, targetPath: plan.targetPath, transform: transformed.document };
@@ -23811,9 +23977,13 @@ function executePlan(input) {
const journal = {
backupMoves: moves,
completedMoves: [],
+ diagnostics,
migrationId: plan.id,
targetPath: plan.targetPath,
- targetWrite: { additions: transformed.document },
+ targetWrite: {
+ additions: transformed.document,
+ ...replaceTarget ? { mode: "replace-target" } : {}
+ },
targetWritten: false,
version: 1
};
@@ -25717,7 +25887,7 @@ var init_agent_model_requirements = __esm(() => {
model: "kimi-k3"
},
{ providers: ["openai", "github-copilot", "opencode", "vercel"], model: "gpt-5.6-sol", variant: "medium" },
- { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5" },
+ { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5.2" },
{ providers: ["opencode"], model: "big-pickle" }
],
requiresAnyModel: true
@@ -25760,8 +25930,9 @@ var init_agent_model_requirements = __esm(() => {
},
librarian: {
fallbackChain: [
- { providers: ["openai"], model: "gpt-5.4-mini-fast" },
- { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.5-plus" },
+ { providers: ["openai"], model: "gpt-5.6-luna-fast", variant: "low" },
+ { providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },
+ { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },
{ providers: ["vercel"], model: "minimax-m2.7-highspeed" },
{ providers: ["opencode-go", "vercel"], model: "minimax-m3" },
{ providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
@@ -25772,8 +25943,9 @@ var init_agent_model_requirements = __esm(() => {
},
explore: {
fallbackChain: [
- { providers: ["openai"], model: "gpt-5.4-mini-fast" },
- { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.5-plus" },
+ { providers: ["openai"], model: "gpt-5.6-luna-fast", variant: "low" },
+ { providers: ["deepseek"], model: "deepseek-v4-flash", variant: "max" },
+ { providers: ["opencode-go", "bailian-coding-plan"], model: "qwen3.7-plus" },
{ providers: ["vercel"], model: "minimax-m2.7-highspeed" },
{ providers: ["opencode-go", "vercel"], model: "minimax-m3" },
{ providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
@@ -25847,7 +26019,7 @@ var init_agent_model_requirements = __esm(() => {
},
atlas: {
fallbackChain: [
- { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-4-6" },
+ { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-5" },
{ providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
providers: ["openai", "github-copilot", "opencode", "vercel"],
@@ -25861,7 +26033,7 @@ var init_agent_model_requirements = __esm(() => {
},
"sisyphus-junior": {
fallbackChain: [
- { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-4-6" },
+ { providers: ["anthropic", "github-copilot", "opencode", "vercel"], model: "claude-sonnet-5" },
{ providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
providers: ["openai", "github-copilot", "opencode", "vercel"],
@@ -25884,109 +26056,69 @@ var init_category_model_requirements = __esm(() => {
"visual-engineering": {
fallbackChain: [
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-opus-5",
variant: "max"
},
{
- providers: ["apitopia", "opencode-go", "kimi-for-coding", "moonshotai", "opencode", "vercel"],
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
model: "kimi-k3",
variant: "max"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-fable-5",
- variant: "low"
+ providers: ["zai-coding-plan", "opencode-go", "vercel"],
+ model: "glm-5.2",
+ variant: "max"
},
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3.1-pro",
- variant: "high"
- },
- { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5" },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
+ model: "gpt-5.6-sol",
+ variant: "medium"
+ }
]
},
ultrabrain: {
fallbackChain: [
{
- providers: ["openai", "vercel"],
+ providers: ["openai", "quotio-openai", "vercel"],
model: "gpt-5.6-sol",
- variant: "xhigh"
+ variant: "max"
},
{
providers: ["github-copilot"],
model: "gpt-5.6-sol",
- variant: "high"
+ variant: "max"
},
{
providers: ["openai", "opencode", "vercel"],
model: "gpt-5.6-sol",
- variant: "xhigh"
- },
- {
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3.1-pro",
- variant: "high"
- },
- {
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-opus-5",
variant: "max"
- },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ }
]
},
deep: {
fallbackChain: [
{
- providers: ["openai", "vercel"],
- model: "gpt-5.6-terra",
- variant: "xhigh"
- },
- {
- providers: ["github-copilot"],
- model: "gpt-5.6-terra",
- variant: "high"
- },
- {
- providers: ["openai", "github-copilot", "vercel"],
- model: "gpt-5.6-sol",
- variant: "high"
- },
- {
- providers: ["openai", "github-copilot", "opencode", "vercel"],
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
model: "gpt-5.6-sol",
variant: "medium"
- },
- {
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-opus-5",
- variant: "max"
- },
- {
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3.1-pro",
- variant: "high"
- },
- { providers: ["opencode-go", "vercel"], model: "kimi-k3" },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ }
]
},
artistry: {
fallbackChain: [
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-fable-5",
variant: "xhigh"
},
{
- providers: ["apitopia", "opencode-go", "kimi-for-coding", "moonshotai", "opencode", "vercel"],
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
model: "kimi-k3",
variant: "max"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-opus-5",
variant: "xhigh"
}
@@ -25994,88 +26126,88 @@ var init_category_model_requirements = __esm(() => {
},
quick: {
fallbackChain: [
- { providers: ["apitopia"], model: "kimi-for-coding-highspeed" },
- { providers: ["quotio-openai"], model: "gpt-5.4-mini-fast" },
+ { providers: ["kimi-for-coding"], model: "kimi-for-coding-highspeed" },
+ { providers: ["quotio-openai"], model: "gpt-5.6-luna-fast", variant: "low" },
+ { providers: ["deepseek"], model: "deepseek-v4-flash", variant: "off" },
{
- providers: ["anthropic-api", "anthropic", "github-copilot", "vercel"],
- model: "claude-haiku-4-5"
+ providers: ["qwen-token-plan", "alibaba-token-plan", "bailian-coding-plan", "opencode-go", "vercel"],
+ model: "qwen3.6-flash",
+ variant: "low"
},
+ { providers: ["opencode-go", "vercel"], model: "minimax-m3", variant: "max" },
+ { providers: ["opencode-go", "vercel"], model: "minimax-m2.7", variant: "max" },
+ { providers: ["xai"], model: "grok-4.20-0309-non-reasoning" },
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3-flash"
- },
- { providers: ["opencode-go", "vercel"], model: "minimax-m3" },
- { providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
- { providers: ["opencode-go", "vercel"], model: "minimax-m2.7" },
- { providers: ["opencode", "vercel"], model: "gpt-5-nano" }
+ providers: ["anthropic", "anthropic-api", "github-copilot", "vercel"],
+ model: "claude-haiku-4-5",
+ variant: "off"
+ }
]
},
"unspecified-low": {
fallbackChain: [
{
- providers: ["openai", "vercel"],
- model: "gpt-5.6-luna",
- variant: "xhigh"
- },
- {
- providers: ["github-copilot"],
- model: "gpt-5.6-luna",
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
+ model: "gpt-5.6-terra",
variant: "high"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-sonnet-4-6"
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
+ model: "claude-sonnet-5",
+ variant: "low"
},
{
- providers: ["openai", "opencode", "vercel"],
- model: "gpt-5.6-sol",
- variant: "medium"
+ providers: ["qwen-token-plan", "alibaba-token-plan", "qwen-token-plan-cn", "alibaba-token-plan-cn"],
+ model: "qwen3.8-max-preview",
+ variant: "max"
},
- { providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3-flash"
+ providers: ["deepseek", "opencode-go", "vercel"],
+ model: "deepseek-v4-pro",
+ variant: "max"
},
- { providers: ["opencode-go", "vercel"], model: "minimax-m3" },
- { providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
- { providers: ["opencode-go", "vercel"], model: "minimax-m2.7" }
+ {
+ providers: ["xiaomi", "opencode-go", "vercel"],
+ model: "mimo-v2.5-pro",
+ variant: "max"
+ }
]
},
"unspecified-high": {
fallbackChain: [
{
- providers: ["apitopia", "opencode-go", "kimi-for-coding", "moonshotai", "opencode", "vercel"],
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
model: "kimi-k3",
variant: "max"
},
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
model: "claude-opus-5",
- variant: "high"
+ variant: "xhigh"
},
{
- providers: ["openai", "github-copilot", "opencode", "vercel"],
+ providers: ["openai", "quotio-openai", "github-copilot", "opencode", "vercel"],
model: "gpt-5.6-sol",
variant: "high"
- },
- { providers: ["zai-coding-plan", "opencode", "bailian-coding-plan", "vercel"], model: "glm-5" },
- { providers: ["opencode-go", "vercel"], model: "glm-5.2" }
+ }
]
},
writing: {
fallbackChain: [
{
- providers: ["google", "github-copilot", "opencode", "vercel"],
- model: "gemini-3-flash"
+ providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode", "vercel"],
+ model: "kimi-k3",
+ variant: "low"
},
- { providers: ["opencode-go", "vercel"], model: "kimi-k3" },
{
- providers: ["anthropic", "github-copilot", "opencode", "vercel"],
- model: "claude-sonnet-4-6"
+ providers: ["anthropic", "anthropic-api", "github-copilot", "opencode", "vercel"],
+ model: "claude-opus-5",
+ variant: "low"
},
- { providers: ["opencode-go", "vercel"], model: "minimax-m3" },
- { providers: ["minimax-coding-plan", "minimax-cn-coding-plan"], model: "MiniMax-M3" },
- { providers: ["opencode-go", "vercel"], model: "minimax-m2.7" }
+ {
+ providers: ["google", "github-copilot", "opencode", "vercel"],
+ model: "gemini-3.6-flash"
+ }
]
}
};
@@ -26297,18 +26429,30 @@ var init_model_capability_heuristics = __esm(() => {
// packages/model-core/src/model-capability-guardrails.ts
var init_model_capability_guardrails = () => {};
-// packages/model-core/src/model-settings-compatibility.ts
-function downgradeWithinLadder(value, allowed, ladder) {
+// packages/model-core/src/reasoning-level.ts
+function clampReasoningLevel(value, allowed) {
+ const ladder = REASONING_LEVELS2;
const requestedIndex = ladder.indexOf(value);
if (requestedIndex === -1)
return;
for (let index = requestedIndex;index >= 0; index -= 1) {
- if (allowed.includes(ladder[index])) {
- return ladder[index];
- }
+ const candidate = REASONING_LEVELS2[index];
+ if (candidate !== undefined && allowed.includes(candidate))
+ return candidate;
}
return;
}
+var REASONING_LEVELS2, REASONING_AUTO2 = "auto", REASONING_LEVEL_SET2, REASONING_LEVEL_OR_AUTO_SET2;
+var init_reasoning_level = __esm(() => {
+ REASONING_LEVELS2 = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
+ REASONING_LEVEL_SET2 = new Set(REASONING_LEVELS2);
+ REASONING_LEVEL_OR_AUTO_SET2 = new Set([...REASONING_LEVELS2, REASONING_AUTO2]);
+});
+
+// packages/model-core/src/model-settings-compatibility.ts
+function downgradeWithinLadder(value, allowed) {
+ return clampReasoningLevel(value, allowed);
+}
function normalizeCapabilitiesVariants(capabilities) {
if (!capabilities?.variants || capabilities.variants.length === 0) {
return;
@@ -26330,7 +26474,7 @@ function resolveField(normalized, familyCaps, ladder, familyKnown, metadataOverr
if (metadataOverride.includes(normalized))
return { value: normalized };
return {
- value: downgradeWithinLadder(normalized, metadataOverride, ladder),
+ value: downgradeWithinLadder(normalized, metadataOverride),
reason: "unsupported-by-model-metadata"
};
}
@@ -26338,7 +26482,7 @@ function resolveField(normalized, familyCaps, ladder, familyKnown, metadataOverr
if (familyCaps.includes(normalized))
return { value: normalized };
return {
- value: downgradeWithinLadder(normalized, familyCaps, ladder),
+ value: downgradeWithinLadder(normalized, familyCaps),
reason: "unsupported-by-model-family"
};
}
@@ -26356,7 +26500,7 @@ function resolveCompatibleModelSettings(input) {
let variant = input.desired.variant;
if (variant !== undefined) {
const normalized = variant.toLowerCase();
- const resolved = resolveField(normalized, family?.variants, VARIANT_LADDER, familyKnown, metadataVariants);
+ const resolved = resolveField(normalized, family?.variants, REASONING_LEVELS2, familyKnown, metadataVariants);
if (resolved.value !== normalized && resolved.reason) {
changes.push({ field: "variant", from: variant, to: resolved.value, reason: resolved.reason });
}
@@ -26365,7 +26509,7 @@ function resolveCompatibleModelSettings(input) {
let reasoningEffort = input.desired.reasoningEffort;
if (reasoningEffort !== undefined) {
const normalized = reasoningEffort.toLowerCase();
- const resolved = resolveField(normalized, family?.reasoningEfforts, REASONING_LADDER, familyKnown, metadataReasoningEfforts, family?.reasoningEffortAliases);
+ const resolved = resolveField(normalized, family?.reasoningEfforts, REASONING_LEVELS2, familyKnown, metadataReasoningEfforts, family?.reasoningEffortAliases);
if (resolved.value !== normalized && resolved.reason) {
changes.push({ field: "reasoningEffort", from: reasoningEffort, to: resolved.value, reason: resolved.reason });
}
@@ -26424,11 +26568,9 @@ function resolveCompatibleModelSettings(input) {
changes
};
}
-var VARIANT_LADDER, REASONING_LADDER;
var init_model_settings_compatibility = __esm(() => {
init_model_capability_heuristics();
- VARIANT_LADDER = ["low", "medium", "high", "xhigh", "max"];
- REASONING_LADDER = ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
+ init_reasoning_level();
});
// packages/model-core/src/provider-model-id-transform.ts
@@ -26445,6 +26587,8 @@ function inferSubProvider(model) {
return "minimax";
if (model.startsWith("kimi-"))
return "moonshotai";
+ if (model.startsWith("k3"))
+ return "moonshotai";
if (model.startsWith("glm-"))
return "zai";
return;
@@ -26478,6 +26622,12 @@ function transformModelForProviderUsingAnthropicBehavior(provider, model) {
if (provider === "anthropic") {
return model;
}
+ if (provider === "kimi-coding" || provider === "kimi-for-coding") {
+ if (model === "kimi-k3")
+ return "k3";
+ if (model === "kimi-k3-256k")
+ return "k3-256k";
+ }
return model;
}
function transformModelForProviderDisplay(provider, model) {
@@ -26490,22 +26640,6 @@ var init_provider_model_id_transform = __esm(() => {
GEMINI_3_FLASH_PREVIEW = /(?<!antigravity-)gemini-3-flash(?!-)/g;
});
-// packages/model-core/src/known-variants.ts
-var KNOWN_VARIANTS;
-var init_known_variants = __esm(() => {
- KNOWN_VARIANTS = new Set([
- "low",
- "medium",
- "high",
- "xhigh",
- "max",
- "minimal",
- "none",
- "auto",
- "thinking"
- ]);
-});
-
// packages/model-core/src/model-resolver.ts
function normalizeFallbackModels(models2) {
if (!models2)
@@ -26517,20 +26651,7 @@ function normalizeFallbackModels(models2) {
var init_model_resolver = () => {};
// packages/model-core/src/model-string-parser.ts
-var KNOWN_VARIANTS2;
-var init_model_string_parser = __esm(() => {
- KNOWN_VARIANTS2 = new Set([
- "low",
- "medium",
- "high",
- "xhigh",
- "max",
- "minimal",
- "none",
- "auto",
- "thinking"
- ]);
-});
+var init_model_string_parser = () => {};
// packages/model-core/src/fallback-chain-from-models.ts
var init_fallback_chain_from_models = () => {};
@@ -26674,8 +26795,8 @@ var init_supplemental_entries = __esm(() => {
output: 128000
}
},
- "gpt-5.4-mini-fast": {
- id: "gpt-5.4-mini-fast",
+ "gpt-5.6-luna-fast": {
+ id: "gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -26708,7 +26829,7 @@ var init_bundled_snapshot = __esm(() => {
});
// packages/model-core/src/model-capabilities/runtime-model-readers.ts
-function isRecord2(value) {
+function isRecord6(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function readNumber(value) {
@@ -26726,7 +26847,7 @@ function normalizeVariantKeys(value) {
if (arrayVariants) {
return arrayVariants.filter((v) => typeof v === "string").map((variant) => variant.toLowerCase());
}
- if (!isRecord2(value)) {
+ if (!isRecord6(value)) {
return;
}
const variants = Object.keys(value).map((variant) => variant.toLowerCase());
@@ -26737,7 +26858,7 @@ function readModalityKeys(value) {
if (stringArray) {
return stringArray.filter((entry) => typeof entry === "string").map((entry) => entry.toLowerCase());
}
- if (!isRecord2(value)) {
+ if (!isRecord6(value)) {
return;
}
const fromNested = Object.values(value).filter((v) => Array.isArray(v)).flat().filter((item) => typeof item === "string");
@@ -26748,7 +26869,7 @@ function readModalityKeys(value) {
return enabled.length > 0 ? enabled : undefined;
}
function normalizeModalities(value) {
- if (!isRecord2(value)) {
+ if (!isRecord6(value)) {
return;
}
const input = readModalityKeys(value.input);
@@ -26762,7 +26883,7 @@ function normalizeModalities(value) {
};
}
function readRuntimeModelCapabilities(runtimeModel) {
- return isRecord2(runtimeModel?.capabilities) ? runtimeModel.capabilities : undefined;
+ return isRecord6(runtimeModel?.capabilities) ? runtimeModel.capabilities : undefined;
}
function readRuntimeModelBoolean(runtimeModel, keys) {
const runtimeCapabilities = readRuntimeModelCapabilities(runtimeModel);
@@ -26779,7 +26900,7 @@ function readRuntimeModelBoolean(runtimeModel, keys) {
return;
}
function readRuntimeModel(runtimeModel) {
- return isRecord2(runtimeModel) ? runtimeModel : undefined;
+ return isRecord6(runtimeModel) ? runtimeModel : undefined;
}
function readRuntimeModelVariants(runtimeModel) {
const rootVariants = normalizeVariantKeys(runtimeModel?.variants);
@@ -26827,8 +26948,8 @@ function readRuntimeModelToolCallSupport(runtimeModel) {
return readRuntimeModelBoolean(runtimeModel, ["toolCall", "tool_call", "toolcall"]);
}
function readRuntimeModelLimitOutput(runtimeModel) {
- const limit = isRecord2(runtimeModel?.limit) ? runtimeModel.limit : readRuntimeModelCapabilities(runtimeModel)?.limit;
- if (!isRecord2(limit)) {
+ const limit = isRecord6(runtimeModel?.limit) ? runtimeModel.limit : readRuntimeModelCapabilities(runtimeModel)?.limit;
+ if (!isRecord6(limit)) {
return;
}
const output = readNumber(limit.output);
@@ -26875,7 +26996,7 @@ function getModelCapabilities(input) {
const maxOutputTokensSource = runtimeMaxOutputTokens !== undefined ? "runtime" : snapshotEntry?.limit?.output !== undefined ? snapshotSource : "none";
const toolCallSource = runtimeToolCall !== undefined ? "runtime" : snapshotEntry?.toolCall !== undefined ? snapshotSource : "none";
const modalitiesSource = runtimeModalities !== undefined ? "runtime" : snapshotEntry?.modalities !== undefined ? snapshotSource : "none";
- const resolutionMode = snapshotSource !== "none" && canonicalization.source === "canonical" ? "snapshot-backed" : snapshotSource !== "none" ? "alias-backed" : familySource === "heuristic" || variantsSource === "heuristic" || reasoningEffortsSource === "heuristic" ? "heuristic-backed" : "unknown";
+ const resolutionMode = canonicalization.source === "canonical" ? snapshotSource !== "none" ? "snapshot-backed" : familySource === "heuristic" || variantsSource === "heuristic" || reasoningEffortsSource === "heuristic" ? "heuristic-backed" : "unknown" : "alias-backed";
return {
requestedModelID: canonicalization.requestedModelID,
canonicalModelID: canonicalization.canonicalModelID,
@@ -26931,7 +27052,7 @@ var init_model_capabilities = __esm(() => {
var init_context_limit_resolver = () => {};
// packages/model-core/src/model-capabilities-snapshot.ts
-function isRecord3(value) {
+function isRecord7(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function readBoolean(value) {
@@ -26951,7 +27072,7 @@ function readStringArray2(value) {
return result.length > 0 ? result : undefined;
}
function normalizeSnapshotEntry(rawModelID, rawModel) {
- if (!isRecord3(rawModel)) {
+ if (!isRecord7(rawModel)) {
return;
}
const id = readString(rawModel.id) ?? rawModelID;
@@ -26959,14 +27080,14 @@ function normalizeSnapshotEntry(rawModelID, rawModel) {
const reasoning = readBoolean(rawModel.reasoning);
const temperature = readBoolean(rawModel.temperature);
const toolCall = readBoolean(rawModel.tool_call);
- const rawModalities = isRecord3(rawModel.modalities) ? rawModel.modalities : undefined;
+ const rawModalities = isRecord7(rawModel.modalities) ? rawModel.modalities : undefined;
const modalitiesInput = readStringArray2(rawModalities?.input);
const modalitiesOutput = readStringArray2(rawModalities?.output);
const modalities = modalitiesInput || modalitiesOutput ? {
...modalitiesInput ? { input: modalitiesInput } : {},
...modalitiesOutput ? { output: modalitiesOutput } : {}
} : undefined;
- const rawLimit = isRecord3(rawModel.limit) ? rawModel.limit : undefined;
+ const rawLimit = isRecord7(rawModel.limit) ? rawModel.limit : undefined;
const limitContext = readNumber2(rawLimit?.context);
const limitInput = readNumber2(rawLimit?.input);
const limitOutput = readNumber2(rawLimit?.output);
@@ -27006,13 +27127,13 @@ function mergeSnapshotEntries(existing, incoming) {
}
function buildModelCapabilitiesSnapshotFromModelsDev(raw) {
const models2 = {};
- const providers = isRecord3(raw) ? raw : {};
+ const providers = isRecord7(raw) ? raw : {};
for (const providerValue of Object.values(providers)) {
- if (!isRecord3(providerValue)) {
+ if (!isRecord7(providerValue)) {
continue;
}
const providerModels = providerValue.models;
- if (!isRecord3(providerModels)) {
+ if (!isRecord7(providerModels)) {
continue;
}
for (const [rawModelID, rawModel] of Object.entries(providerModels)) {
@@ -27055,9 +27176,9 @@ var init_src3 = __esm(() => {
init_model_capability_heuristics();
init_model_capability_guardrails();
init_model_settings_compatibility();
+ init_reasoning_level();
init_model_string_parser();
init_fallback_chain_from_models();
- init_known_variants();
init_model_error_classifier();
init_runtime_fallback_auto_retry_signal();
init_runtime_fallback_error_classifier();
@@ -27282,7 +27403,7 @@ var init_anthropic_categories = __esm(() => {
ANTHROPIC_CATEGORIES = [
{
name: "unspecified-high",
- config: { model: "apitopia/kimi-k3", variant: "max" },
+ config: { model: "kimi-for-coding/k3", variant: "max" },
description: "Tasks that don't fit other categories, high effort required",
promptAppend: UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND
}
@@ -27440,7 +27561,7 @@ var init_kimi_categories = __esm(() => {
KIMI_CATEGORIES = [
{
name: "writing",
- config: { model: "kimi-for-coding/kimi-k3" },
+ config: { model: "kimi-for-coding/k3", variant: "low" },
description: "Documentation, prose, technical writing",
promptAppend: WRITING_CATEGORY_PROMPT_APPEND
}
@@ -27543,7 +27664,7 @@ Approach:
</Category_Context>
<Caller_Warning>
-THIS CATEGORY USES A SMALLER/FASTER MODEL (gpt-5.4-mini).
+THIS CATEGORY USES A SMALLER/FASTER MODEL (gpt-5.6-luna-fast).
The model executing this task is optimized for speed over depth. Your prompt MUST be:
@@ -27609,14 +27730,15 @@ var init_openai_categories = __esm(() => {
},
{
name: "deep",
- config: { model: "openai/gpt-5.6-terra", variant: "xhigh" },
+ config: { model: "openai/gpt-5.6-sol", variant: "medium" },
description: "Goal-oriented autonomous problem-solving on hairy problems requiring deep research. ONE goal + ONE deliverable per call \u2014 multiple goals must fan out as parallel `deep` calls, never bundled into one.",
promptAppend: DEEP_CATEGORY_PROMPT_APPEND,
- resolvePromptAppend: resolveDeepCategoryPromptAppend
+ resolvePromptAppend: resolveDeepCategoryPromptAppend,
+ requiresModel: "gpt-5.6-sol"
},
{
name: "quick",
- config: { model: "apitopia/kimi-for-coding-highspeed" },
+ config: { model: "kimi-for-coding/kimi-for-coding-highspeed" },
description: "Trivial tasks - single file changes, typo fixes, simple modifications",
promptAppend: QUICK_CATEGORY_PROMPT_APPEND
},
@@ -27633,7 +27755,7 @@ var init_openai_categories = __esm(() => {
function buildCategoryRecord(selector) {
return Object.fromEntries(BUILTIN_CATEGORIES.map((definition) => [definition.name, selector(definition)]));
}
-var BUILTIN_CATEGORIES, DEFAULT_CATEGORIES, CATEGORY_PROMPT_APPENDS, CATEGORY_DESCRIPTIONS, CATEGORY_PROMPT_APPEND_RESOLVERS;
+var BUILTIN_CATEGORIES, DEFAULT_CATEGORIES, CATEGORY_PROMPT_APPENDS, CATEGORY_DESCRIPTIONS, CATEGORY_PROMPT_APPEND_RESOLVERS, BUILTIN_CATEGORY_REQUIRES_MODEL;
var init_builtin_categories = __esm(() => {
init_anthropic_categories();
init_google_categories();
@@ -27649,6 +27771,7 @@ var init_builtin_categories = __esm(() => {
CATEGORY_PROMPT_APPENDS = buildCategoryRecord((definition) => definition.promptAppend);
CATEGORY_DESCRIPTIONS = buildCategoryRecord((definition) => definition.description);
CATEGORY_PROMPT_APPEND_RESOLVERS = Object.fromEntries(BUILTIN_CATEGORIES.filter((definition) => definition.resolvePromptAppend !== undefined).map((definition) => [definition.name, definition.resolvePromptAppend]));
+ BUILTIN_CATEGORY_REQUIRES_MODEL = Object.fromEntries(BUILTIN_CATEGORIES.filter((definition) => definition.requiresModel !== undefined).map((definition) => [definition.name, definition.requiresModel]));
});
// packages/omo-opencode/src/tools/delegate-task/constants.ts
@@ -28092,50 +28215,6 @@ var init_write_file_atomically = __esm(() => {
init_tolerant_fsync();
});
-// packages/omo-opencode/src/shared/model-requirements.ts
-var init_model_requirements2 = __esm(() => {
- init_src3();
-});
-
-// packages/omo-opencode/src/shared/agent-variant.ts
-var init_agent_variant = __esm(() => {
- init_agent_display_names();
- init_model_requirements2();
-});
-
-// packages/omo-opencode/src/shared/session-cursor.ts
-var sessionCursors;
-var init_session_cursor = __esm(() => {
- sessionCursors = new Map;
-});
-
-// packages/omo-opencode/src/shared/shell-env.ts
-function detectShellType() {
- if (process.env.SHELL) {
- const shell = process.env.SHELL;
- if (shell.includes("csh") || shell.includes("tcsh")) {
- return "csh";
- }
- return "unix";
- }
- if (process.platform === "win32" && (process.env.BASH_VERSION || process.env.MSYSTEM || process.env.WSL_DISTRO_NAME)) {
- return "unix";
- }
- if (process.env.PSModulePath) {
- return "powershell";
- }
- return process.platform === "win32" ? "cmd" : "unix";
-}
-var init_shell_env = () => {};
-
-// packages/omo-opencode/src/shared/system-directive.ts
-var init_system_directive = () => {};
-
-// packages/omo-opencode/src/shared/agent-tool-restrictions.ts
-var init_agent_tool_restrictions = __esm(() => {
- init_agent_display_names();
-});
-
// packages/omo-opencode/src/shared/json-file-cache-store.ts
import { existsSync as existsSync12, mkdirSync as mkdirSync5, readFileSync as readFileSync4, writeFileSync as writeFileSync4 } from "fs";
import { join as join16 } from "path";
@@ -28410,41 +28489,11 @@ var init_connected_providers_cache = __esm(() => {
} = defaultConnectedProvidersCacheStore);
});
-// packages/omo-opencode/src/shared/model-resolver.ts
-var init_model_resolver2 = __esm(() => {
- init_src3();
- init_connected_providers_cache();
-});
-
-// packages/omo-opencode/src/shared/model-normalization.ts
-var init_model_normalization = () => {};
-
-// packages/omo-opencode/src/shared/model-resolution-pipeline.ts
-var init_model_resolution_pipeline = __esm(() => {
- init_connected_providers_cache();
-});
-
-// packages/omo-opencode/src/shared/model-availability.ts
-import { existsSync as existsSync13, readFileSync as readFileSync5 } from "fs";
-import { join as join17 } from "path";
-function isModelCacheAvailable() {
- if (hasProviderModelsCache()) {
- return true;
- }
- const cacheFile = join17(getOpenCodeCacheDir(), "models.json");
- return existsSync13(cacheFile);
-}
-var init_model_availability = __esm(() => {
- init_logger2();
- init_data_path();
- init_connected_providers_cache();
-});
-
// packages/omo-opencode/src/generated/model-capabilities.generated.json
var model_capabilities_generated_default;
var init_model_capabilities_generated = __esm(() => {
model_capabilities_generated_default = {
- generatedAt: "2026-07-25T14:04:01.805Z",
+ generatedAt: "2026-07-29T03:28:21.339Z",
sourceUrl: "https://models.dev/api.json",
models: {
"glm-5": {
@@ -28879,6 +28928,8 @@ var init_model_capabilities_generated = __esm(() => {
input: [
"text",
"image",
+ "video",
+ "audio",
"pdf"
],
output: [
@@ -28886,8 +28937,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 1e6,
- output: 64000
+ context: 1048576,
+ output: 65536
}
},
"google/gemini-2.5-flash-lite": {
@@ -29529,28 +29580,29 @@ var init_model_capabilities_generated = __esm(() => {
output: 262000
}
},
- "accounts/fireworks/routers/glm-5p1-fast": {
- id: "accounts/fireworks/routers/glm-5p1-fast",
- family: "glm",
+ "accounts/fireworks/routers/kimi-k2p6-turbo": {
+ id: "accounts/fireworks/routers/kimi-k2p6-turbo",
+ family: "kimi-thinking",
reasoning: true,
temperature: true,
toolCall: true,
modalities: {
input: [
- "text"
+ "text",
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 202800,
- output: 131072
+ context: 262000,
+ output: 262000
}
},
- "accounts/fireworks/routers/kimi-k2p6-turbo": {
- id: "accounts/fireworks/routers/kimi-k2p6-turbo",
- family: "kimi-thinking",
+ "accounts/fireworks/routers/kimi-k2p7-code-fast": {
+ id: "accounts/fireworks/routers/kimi-k2p7-code-fast",
+ family: "kimi-k2",
reasoning: true,
temperature: true,
toolCall: true,
@@ -29568,11 +29620,11 @@ var init_model_capabilities_generated = __esm(() => {
output: 262000
}
},
- "accounts/fireworks/routers/kimi-k2p7-code-fast": {
- id: "accounts/fireworks/routers/kimi-k2p7-code-fast",
- family: "kimi-k2",
+ "accounts/fireworks/routers/kimi-k3-fast": {
+ id: "accounts/fireworks/routers/kimi-k3-fast",
+ family: "kimi-k3",
reasoning: true,
- temperature: true,
+ temperature: false,
toolCall: true,
modalities: {
input: [
@@ -29584,8 +29636,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 262000,
- output: 262000
+ context: 1048576,
+ output: 131072
}
},
"accounts/fireworks/models/qwen3p7-plus": {
@@ -29706,25 +29758,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 512000
}
},
- "accounts/fireworks/models/glm-5p1": {
- id: "accounts/fireworks/models/glm-5p1",
- family: "glm",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 202800,
- output: 131072
- }
- },
"accounts/fireworks/models/deepseek-v4-pro": {
id: "accounts/fireworks/models/deepseek-v4-pro",
family: "deepseek-thinking",
@@ -29802,6 +29835,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 131072
}
},
+ "accounts/fireworks/models/kimi-k3": {
+ id: "accounts/fireworks/models/kimi-k3",
+ family: "kimi-k3",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1048576,
+ output: 131072
+ }
+ },
"microsoft/phi-4-mini-instruct": {
id: "microsoft/phi-4-mini-instruct",
family: "phi",
@@ -30949,6 +31002,27 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
+ "anthropic/claude-opus-5": {
+ id: "anthropic/claude-opus-5",
+ family: "claude-opus",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "pdf"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ output: 128000
+ }
+ },
"z-ai/glm-5": {
id: "z-ai/glm-5",
family: "glm",
@@ -31153,8 +31227,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
- "openai/gpt-5.4-mini": {
- id: "openai/gpt-5.4-mini",
+ "openai/gpt-5.6-luna-fast": {
+ id: "openai/gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -31382,15 +31456,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1e6,
+ context: 200000,
output: 128000
}
},
@@ -31510,15 +31583,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1e6,
+ context: 200000,
output: 128000
}
},
@@ -33774,7 +33846,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 400000,
- output: 1e5,
+ output: 128000,
input: 272000
}
},
@@ -33868,8 +33940,8 @@ var init_model_capabilities_generated = __esm(() => {
toolCall: false,
modalities: {
input: [
- "pdf",
"image",
+ "pdf",
"text"
],
output: [
@@ -33878,8 +33950,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 16384,
- input: 111616
+ output: 16384
}
},
"openai/gpt-5.3-codex-spark": {
@@ -34918,7 +34989,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 524288,
- output: 524288
+ output: 262144
}
},
"zai-org/glm-4.7": {
@@ -34941,6 +35012,27 @@ var init_model_capabilities_generated = __esm(() => {
input: 200000
}
},
+ "moonshotai/kimi-k3": {
+ id: "moonshotai/kimi-k3",
+ family: "kimi-k3",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "video"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1048576,
+ output: 131072
+ }
+ },
"microsoft/phi-4-multimodal-instruct": {
id: "microsoft/phi-4-multimodal-instruct",
reasoning: true,
@@ -35036,6 +35128,46 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
+ "nvidia/cosmos-reason2-8b": {
+ id: "nvidia/cosmos-reason2-8b",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "video"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 16384
+ }
+ },
+ "nvidia/nemotron-nano-12b-v2-vl": {
+ id: "nvidia/nemotron-nano-12b-v2-vl",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 131072
+ }
+ },
"nvidia/bevformer": {
id: "nvidia/bevformer",
reasoning: false,
@@ -35074,6 +35206,25 @@ var init_model_capabilities_generated = __esm(() => {
input: 256000
}
},
+ "nvidia/llama-3.3-nemotron-super-49b-v1.5": {
+ id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1.5",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 131072
+ }
+ },
"nvidia/cosmos-transfer2_5-2b": {
id: "nvidia/cosmos-transfer2_5-2b",
reasoning: false,
@@ -35094,6 +35245,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.1-nemotron-nano-8b-v1": {
+ id: "nvidia/llama-3.1-nemotron-nano-8b-v1",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 16384
+ }
+ },
"nvidia/active-speaker-detection": {
id: "nvidia/active-speaker-detection",
reasoning: false,
@@ -35130,8 +35300,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "nvidia/llama-3_1-nemotron-safety-guard-8b-v3": {
- id: "nvidia/llama-3_1-nemotron-safety-guard-8b-v3",
+ "nvidia/llama-3.1-nemotron-safety-guard-8b-v3": {
+ id: "nvidia/llama-3.1-nemotron-safety-guard-8b-v3",
family: "nemotron",
reasoning: false,
temperature: false,
@@ -35149,6 +35319,45 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.3-nemotron-super-49b-v1": {
+ id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1",
+ family: "nemotron",
+ reasoning: false,
+ temperature: true,
+ toolCall: false,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 16384,
+ input: 128000
+ }
+ },
+ "nvidia/llama-3.1-nemotron-70b-instruct": {
+ id: "nvidia/llama-3.1-nemotron-70b-instruct",
+ family: "nemotron",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 8192
+ }
+ },
"nvidia/nemotron-3-super-120b-a12b": {
id: "nvidia/nemotron-3-super-120b-a12b",
family: "nemotron",
@@ -35208,6 +35417,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.1-nemotron-ultra-253b-v1": {
+ id: "nvidia/llama-3.1-nemotron-ultra-253b-v1",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 16384
+ }
+ },
"nvidia/llama-3_2-nemoretriever-300m-embed-v1": {
id: "nvidia/llama-3_2-nemoretriever-300m-embed-v1",
reasoning: false,
@@ -35285,6 +35513,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "nvidia/llama-3.1-nemotron-nano-vl-8b-v1": {
+ id: "nvidia/llama-3.1-nemotron-nano-vl-8b-v1",
+ family: "nemotron",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 32768,
+ output: 16384
+ }
+ },
"nvidia/synthetic-video-detector": {
id: "nvidia/synthetic-video-detector",
reasoning: false,
@@ -35381,6 +35629,24 @@ var init_model_capabilities_generated = __esm(() => {
input: 128000
}
},
+ "nvidia/riva-translate-4b-instruct-v1.1": {
+ id: "nvidia/riva-translate-4b-instruct-v1.1",
+ reasoning: false,
+ temperature: false,
+ toolCall: false,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 4096
+ }
+ },
"nvidia/nemotron-content-safety-reasoning-4b": {
id: "nvidia/nemotron-content-safety-reasoning-4b",
family: "nemotron",
@@ -35514,14 +35780,15 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "nvidia/riva-translate-4b-instruct-v1_1": {
- id: "nvidia/riva-translate-4b-instruct-v1_1",
+ "google/google-paligemma": {
+ id: "google/google-paligemma",
reasoning: false,
- temperature: false,
+ temperature: true,
toolCall: false,
modalities: {
input: [
- "text"
+ "text",
+ "image"
],
output: [
"text"
@@ -35529,11 +35796,12 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 4096
+ output: 8192
}
},
- "google/google-paligemma": {
- id: "google/google-paligemma",
+ "google/gemma-3-4b-it": {
+ id: "google/gemma-3-4b-it",
+ family: "gemma",
reasoning: false,
temperature: true,
toolCall: false,
@@ -35547,8 +35815,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 128000,
- output: 8192
+ context: 131072,
+ output: 16384
}
},
"google/gemma-2-2b-it": {
@@ -35569,6 +35837,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "google/gemma-3-12b-it": {
+ id: "google/gemma-3-12b-it",
+ family: "gemma",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 131072,
+ output: 16384
+ }
+ },
"google/gemma-3n-e4b-it": {
id: "google/gemma-3n-e4b-it",
reasoning: false,
@@ -35749,8 +36037,8 @@ var init_model_capabilities_generated = __esm(() => {
input: 256000
}
},
- "abacusai/dracarys-llama-3_1-70b-instruct": {
- id: "abacusai/dracarys-llama-3_1-70b-instruct",
+ "abacusai/dracarys-llama-3.1-70b-instruct": {
+ id: "abacusai/dracarys-llama-3.1-70b-instruct",
reasoning: false,
temperature: true,
toolCall: true,
@@ -35767,8 +36055,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "upstage/solar-10_7b-instruct": {
- id: "upstage/solar-10_7b-instruct",
+ "upstage/solar-10.7b-instruct": {
+ id: "upstage/solar-10.7b-instruct",
reasoning: false,
temperature: true,
toolCall: true,
@@ -35862,6 +36150,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 0
}
},
+ "mistralai/mistral-medium-3.5-128b": {
+ id: "mistralai/Mistral-Medium-3.5-128B",
+ family: "mistral-medium",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "image",
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 262144,
+ output: 131072
+ }
+ },
"mistralai/mistral-nemotron": {
id: "mistralai/mistral-nemotron",
family: "nemotron",
@@ -35943,34 +36251,36 @@ var init_model_capabilities_generated = __esm(() => {
input: 262144
}
},
- "mistralai/mixtral-8x22b-instruct": {
- id: "mistralai/mixtral-8x22b-instruct",
+ "mistralai/ministral-14b-instruct-2512": {
+ id: "mistralai/ministral-14b-instruct-2512",
+ family: "ministral",
reasoning: false,
temperature: true,
- toolCall: true,
+ toolCall: false,
modalities: {
input: [
"text",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 65536,
- output: 65536
- },
- family: "mistral"
+ context: 262144,
+ output: 32768,
+ input: 262144
+ }
},
- "mistralai/mistral-7b-instruct-v03": {
- id: "mistralai/mistral-7b-instruct-v03",
+ "mistralai/mixtral-8x22b-instruct": {
+ id: "mistralai/mixtral-8x22b-instruct",
reasoning: false,
temperature: true,
toolCall: true,
modalities: {
input: [
- "text"
+ "text",
+ "pdf"
],
output: [
"text"
@@ -35979,7 +36289,8 @@ var init_model_capabilities_generated = __esm(() => {
limit: {
context: 65536,
output: 65536
- }
+ },
+ family: "mistral"
},
"mistralai/magistral-small-2506": {
id: "mistralai/Magistral-Small-2506",
@@ -36019,6 +36330,24 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
+ "mistralai/mistral-7b-instruct-v0.3": {
+ id: "mistralai/Mistral-7B-Instruct-v0.3",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 32768,
+ output: 32768
+ }
+ },
"bytedance/seed-oss-36b-instruct": {
id: "bytedance/seed-oss-36b-instruct",
family: "seed",
@@ -36249,6 +36578,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
+ "poolside/laguna-xs-2.1": {
+ id: "poolside/laguna-xs-2.1",
+ family: "laguna",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 262144,
+ output: 32768
+ }
+ },
"stepfun-ai/step-3.5-flash": {
id: "stepfun-ai/Step-3.5-Flash",
reasoning: true,
@@ -36750,15 +37098,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1050000,
+ context: 372000,
input: 922000,
output: 128000
}
@@ -36795,8 +37142,7 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
@@ -36891,8 +37237,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 163840
}
},
- "gpt-5.4-mini": {
- id: "gpt-5.4-mini",
+ "gpt-5.6-luna-fast": {
+ id: "gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -36907,7 +37253,7 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 400000,
+ context: 272000,
input: 272000,
output: 128000
}
@@ -37031,15 +37377,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1050000,
+ context: 372000,
input: 922000,
output: 128000
}
@@ -37204,18 +37549,15 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "video",
- "audio",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1048576,
- output: 65536,
+ context: 1e6,
+ output: 128000,
input: 128000
}
},
@@ -37506,13 +37848,12 @@ var init_model_capabilities_generated = __esm(() => {
"gemma-4-26b-a4b-it": {
id: "gemma-4-26b-a4b-it",
family: "gemma",
- reasoning: true,
+ reasoning: false,
temperature: true,
toolCall: true,
modalities: {
input: [
- "text",
- "image"
+ "text"
],
output: [
"text"
@@ -37520,7 +37861,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 256000,
- output: 16384
+ output: 25600
}
},
"gemini-embedding-001": {
@@ -40210,8 +40551,8 @@ var init_model_capabilities_generated = __esm(() => {
input: 128000,
output: 128000
},
- family: "deepseek",
- temperature: true
+ temperature: true,
+ family: "deepseek"
},
"mirothinker-1-7-deepresearch-mini": {
id: "mirothinker-1-7-deepresearch-mini",
@@ -43119,26 +43460,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
- "nvidia/llama-3.3-nemotron-super-49b-v1": {
- id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1",
- family: "nemotron",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- input: 128000,
- output: 16384
- }
- },
"nvidia/llama-3_3-nemotron-super-49b-v1_5": {
id: "nvidia/Llama-3_3-Nemotron-Super-49B-v1_5",
family: "nemotron",
@@ -44164,7 +44485,7 @@ var init_model_capabilities_generated = __esm(() => {
limit: {
context: 131072,
input: 41000,
- output: 8192
+ output: 16384
},
temperature: true,
family: "qwen"
@@ -44920,26 +45241,6 @@ var init_model_capabilities_generated = __esm(() => {
},
temperature: true
},
- "mistralai/ministral-14b-instruct-2512": {
- id: "mistralai/ministral-14b-instruct-2512",
- family: "ministral",
- reasoning: false,
- toolCall: false,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 262144,
- input: 262144,
- output: 32768
- }
- },
"mistralai/mixtral-8x22b-instruct-v0.1": {
id: "mistralai/mixtral-8x22b-instruct-v0.1",
family: "mixtral",
@@ -47706,8 +48007,7 @@ var init_model_capabilities_generated = __esm(() => {
context: 128000,
input: 128000,
output: 16384
- },
- temperature: false
+ }
},
"openai/o3-pro-2025-06-10": {
id: "openai/o3-pro-2025-06-10",
@@ -47791,7 +48091,7 @@ var init_model_capabilities_generated = __esm(() => {
},
"openai/gpt-4o-mini-search-preview": {
id: "openai/gpt-4o-mini-search-preview",
- family: "o-mini",
+ family: "gpt-mini",
reasoning: false,
toolCall: false,
modalities: {
@@ -47807,7 +48107,7 @@ var init_model_capabilities_generated = __esm(() => {
input: 111616,
output: 16384
},
- temperature: false
+ temperature: true
},
"baidu/ernie-4.5-vl-28b-a3b": {
id: "baidu/ernie-4.5-vl-28b-a3b",
@@ -47927,7 +48227,7 @@ var init_model_capabilities_generated = __esm(() => {
limit: {
context: 262144,
input: 262144,
- output: 80000
+ output: 262144
},
temperature: true,
family: "trinity"
@@ -48312,7 +48612,7 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 131072,
+ context: 65536,
output: 65536
}
},
@@ -48856,9 +49156,28 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
+ "abliterated-model-large": {
+ id: "abliterated-model-large",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ input: 1e6,
+ output: 999990
+ }
+ },
"abliterated-model": {
id: "abliterated-model",
- reasoning: false,
+ reasoning: true,
temperature: true,
toolCall: true,
modalities: {
@@ -49444,6 +49763,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
+ "gpt-4o-mini-transcribe": {
+ id: "gpt-4o-mini-transcribe",
+ family: "gpt",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "audio"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 16000,
+ output: 16000
+ }
+ },
"qwen3-235b-a22b-thinking-2507": {
id: "qwen3-235b-a22b-thinking-2507",
family: "qwen",
@@ -51088,6 +51427,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
+ "gpt-4o-transcribe": {
+ id: "gpt-4o-transcribe",
+ family: "gpt",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "audio"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 16000,
+ output: 16000
+ }
+ },
"grok-4-20-non-reasoning": {
id: "grok-4-20-non-reasoning",
family: "grok",
@@ -53737,8 +54096,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 30000
}
},
- "gpt-5.4-mini-2026-03-17": {
- id: "gpt-5.4-mini-2026-03-17",
+ "gpt-5.6-luna-fast-2026-03-17": {
+ id: "gpt-5.6-luna-fast-2026-03-17",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -54461,9 +54820,9 @@ var init_model_capabilities_generated = __esm(() => {
"o1-mini": {
id: "o1-mini",
family: "o-mini",
- reasoning: true,
+ reasoning: false,
temperature: false,
- toolCall: true,
+ toolCall: false,
modalities: {
input: [
"text"
@@ -55911,6 +56270,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "gemini-embedding": {
+ id: "gemini-embedding",
+ family: "gemini",
+ reasoning: false,
+ temperature: false,
+ toolCall: false,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 2048,
+ output: 1
+ }
+ },
"anthropic--claude-4-sonnet": {
id: "anthropic--claude-4-sonnet",
family: "claude-sonnet",
@@ -56749,24 +57127,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "mistralai/mistral-7b-instruct-v0.3": {
- id: "mistralai/Mistral-7B-Instruct-v0.3",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 32768,
- output: 32768
- }
- },
"pioneer/auto": {
id: "pioneer/auto",
family: "auto",
@@ -57891,27 +58251,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 262144
}
},
- "moonshotai/kimi-k3": {
- id: "moonshotai/kimi-k3",
- family: "kimi-k3",
- reasoning: true,
- temperature: false,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image",
- "video"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 1048576,
- output: 131072
- }
- },
"moonshotai/kimi-k3-free": {
id: "moonshotai/kimi-k3-free",
family: "kimi-k3",
@@ -57990,7 +58329,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 16384
+ output: 32000
},
family: "gpt-codex"
},
@@ -58230,26 +58569,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "mistralai/mistral-medium-3.5-128b": {
- id: "mistralai/Mistral-Medium-3.5-128B",
- family: "mistral-medium",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "image",
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 262144,
- output: 131072
- }
- },
"mistralai/voxtral-small-24b-2507": {
id: "mistralai/voxtral-small-24b-2507",
family: "mistral",
@@ -59316,45 +59635,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "llama-3.2-11b-vision-instruct": {
- id: "llama-3.2-11b-vision-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 8192
- }
- },
- "phi-3-medium-128k-instruct": {
- id: "phi-3-medium-128k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"cohere-command-a": {
id: "cohere-command-a",
family: "command-a",
@@ -59374,44 +59654,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "meta-llama-3.1-70b-instruct": {
- id: "meta-llama-3.1-70b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32768
- }
- },
- "meta-llama-3.1-405b-instruct": {
- id: "meta-llama-3.1-405b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32768
- }
- },
"cohere-embed-v3-multilingual": {
id: "cohere-embed-v3-multilingual",
family: "cohere-embed",
@@ -59488,63 +59730,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "meta-llama-3-8b-instruct": {
- id: "meta-llama-3-8b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 8192,
- output: 2048
- }
- },
- "gpt-3.5-turbo-0301": {
- id: "gpt-3.5-turbo-0301",
- family: "gpt",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 4096,
- output: 4096
- }
- },
- "cohere-command-r-plus-08-2024": {
- id: "cohere-command-r-plus-08-2024",
- family: "command-r",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4000
- }
- },
"phi-4-mini": {
id: "phi-4-mini",
family: "phi",
@@ -59564,45 +59749,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "meta-llama-3.1-8b-instruct": {
- id: "meta-llama-3.1-8b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32768
- }
- },
- "llama-3.2-90b-vision-instruct": {
- id: "llama-3.2-90b-vision-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 8192
- }
- },
"phi-4-reasoning-plus": {
id: "phi-4-reasoning-plus",
family: "phi",
@@ -59622,63 +59768,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "phi-3-small-8k-instruct": {
- id: "phi-3-small-8k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 8192,
- output: 2048
- }
- },
- "phi-3-small-128k-instruct": {
- id: "phi-3-small-128k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
- "phi-3-mini-128k-instruct": {
- id: "phi-3-mini-128k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"mistral-small-2503": {
id: "mistral-small-2503",
family: "mistral-small",
@@ -59699,44 +59788,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
- "meta-llama-3-70b-instruct": {
- id: "meta-llama-3-70b-instruct",
- family: "llama",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 8192,
- output: 2048
- }
- },
- "gpt-4-32k": {
- id: "gpt-4-32k",
- family: "gpt",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 32768,
- output: 32768
- }
- },
"cohere-embed-v-4-0": {
id: "cohere-embed-v-4-0",
family: "cohere-embed",
@@ -59757,26 +59808,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 1536
}
},
- "gpt-5.2-chat": {
- id: "gpt-5.2-chat",
- family: "gpt-codex",
- reasoning: true,
- temperature: false,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 16384
- }
- },
"phi-4-mini-reasoning": {
id: "phi-4-mini-reasoning",
family: "phi",
@@ -59816,86 +59847,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "deepseek-r1-0528": {
- id: "deepseek-r1-0528",
- family: "deepseek-thinking",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 164000,
- output: 164000
- }
- },
- "phi-3-mini-4k-instruct": {
- id: "phi-3-mini-4k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 4096,
- output: 1024
- }
- },
- "gpt-5.1-chat": {
- id: "gpt-5.1-chat",
- family: "gpt-codex",
- reasoning: true,
- temperature: false,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image",
- "audio"
- ],
- output: [
- "text",
- "image",
- "audio"
- ]
- },
- limit: {
- context: 128000,
- output: 16384
- }
- },
- "phi-3.5-moe-instruct": {
- id: "phi-3.5-moe-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"phi-4-reasoning": {
id: "phi-4-reasoning",
family: "phi",
@@ -59941,26 +59892,6 @@ var init_model_capabilities_generated = __esm(() => {
reasoning: false,
temperature: true,
toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
- "gpt-3.5-turbo-0613": {
- id: "gpt-3.5-turbo-0613",
- family: "gpt",
- reasoning: false,
- temperature: true,
- toolCall: false,
modalities: {
input: [
"text"
@@ -59970,8 +59901,8 @@ var init_model_capabilities_generated = __esm(() => {
]
},
limit: {
- context: 16384,
- output: 16384
+ context: 430000,
+ output: 43000
}
},
"ministral-3b": {
@@ -59993,25 +59924,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "cohere-command-r-08-2024": {
- id: "cohere-command-r-08-2024",
- family: "command-r",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4000
- }
- },
"model-router": {
id: "model-router",
family: "model-router",
@@ -60088,44 +60000,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
- "phi-3-medium-4k-instruct": {
- id: "phi-3-medium-4k-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 4096,
- output: 1024
- }
- },
- "phi-3.5-mini-instruct": {
- id: "phi-3.5-mini-instruct",
- family: "phi",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 4096
- }
- },
"text-embedding-ada-002": {
id: "text-embedding-ada-002",
family: "text-embedding",
@@ -60166,26 +60040,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "gpt-5-chat": {
- id: "gpt-5-chat",
- family: "gpt-codex",
- reasoning: true,
- temperature: false,
- toolCall: false,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 16384
- }
- },
"codex-mini": {
id: "codex-mini",
family: "gpt-codex-mini",
@@ -60205,25 +60059,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 1e5
}
},
- "deepseek-v3.1": {
- id: "deepseek-v3.1",
- family: "deepseek",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 128000,
- output: 32000
- }
- },
"glm5.2-fast": {
id: "glm5.2-fast",
family: "glm",
@@ -61003,6 +60838,27 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
+ "duo-chat-opus-5": {
+ id: "duo-chat-opus-5",
+ family: "claude-opus",
+ reasoning: true,
+ temperature: false,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "pdf"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ output: 128000
+ }
+ },
"ling-1t": {
id: "Ling-1T",
family: "ling",
@@ -61077,25 +60933,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 65536
}
},
- "nvidia-nemotron-cascade-2-30b-a3b": {
- id: "nvidia-nemotron-cascade-2-30b-a3b",
- family: "nemotron",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 256000,
- output: 32768
- }
- },
"openai-gpt-54-pro": {
id: "openai-gpt-54-pro",
family: "gpt",
@@ -63106,8 +62943,8 @@ var init_model_capabilities_generated = __esm(() => {
output: 64000
}
},
- "openai-gpt-5.4-mini": {
- id: "openai-gpt-5.4-mini",
+ "openai-gpt-5.6-luna-fast": {
+ id: "openai-gpt-5.6-luna-fast",
family: "gpt-mini",
reasoning: true,
temperature: false,
@@ -63903,45 +63740,46 @@ var init_model_capabilities_generated = __esm(() => {
input: 0
}
},
- "gpt-5.3-chat": {
- id: "gpt-5.3-chat",
- family: "gpt-codex",
- reasoning: true,
+ "gpt-image-1": {
+ id: "gpt-image-1",
+ family: "gpt-image",
+ reasoning: false,
temperature: false,
- toolCall: true,
+ toolCall: false,
modalities: {
input: [
"text",
"image"
],
output: [
- "text"
+ "image"
]
},
limit: {
- context: 128000,
- output: 16384
+ context: 0,
+ output: 0,
+ input: 0
}
},
- "gpt-image-1": {
- id: "gpt-image-1",
- family: "gpt-image",
- reasoning: false,
- temperature: false,
- toolCall: false,
+ "thinkingmachines/inkling-nvfp4": {
+ id: "thinkingmachines/Inkling-NVFP4",
+ family: "ling",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
modalities: {
input: [
"text",
- "image"
+ "image",
+ "audio"
],
output: [
- "image"
+ "text"
]
},
limit: {
- context: 0,
- output: 0,
- input: 0
+ context: 1048576,
+ output: 262144
}
},
"mistralai/mistral-small-3.2-24b-instruct-2506": {
@@ -66331,25 +66169,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 8192
}
},
- "poolside/laguna-xs-2.1": {
- id: "poolside/laguna-xs-2.1",
- family: "laguna",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 262144,
- output: 32768
- }
- },
"poolside/laguna-s-2.1": {
id: "poolside/laguna-s-2.1",
family: "laguna-s",
@@ -66740,6 +66559,26 @@ var init_model_capabilities_generated = __esm(() => {
output: 65536
}
},
+ "hf:moonshotai/kimi-k3": {
+ id: "hf:moonshotai/Kimi-K3",
+ family: "kimi-k3",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 524288,
+ output: 65536
+ }
+ },
"hf:openai/gpt-oss-120b": {
id: "hf:openai/gpt-oss-120b",
family: "gpt-oss",
@@ -69542,8 +69381,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 128000,
- output: 16384,
- input: 111616
+ output: 16384
}
},
"openai/gpt-5-image": {
@@ -69782,25 +69620,6 @@ var init_model_capabilities_generated = __esm(() => {
},
family: "command-r"
},
- "nvidia/llama-3.3-nemotron-super-49b-v1.5": {
- id: "nvidia/Llama-3.3-Nemotron-Super-49B-v1.5",
- family: "nemotron",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 131072
- }
- },
"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free": {
id: "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",
family: "nemotron",
@@ -69923,26 +69742,6 @@ var init_model_capabilities_generated = __esm(() => {
},
family: "lyria"
},
- "google/gemma-3-4b-it": {
- id: "google/gemma-3-4b-it",
- reasoning: false,
- temperature: true,
- toolCall: false,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 16384
- },
- family: "gemma"
- },
"google/gemini-2.5-pro-preview": {
id: "google/gemini-2.5-pro-preview",
reasoning: true,
@@ -70050,26 +69849,6 @@ var init_model_capabilities_generated = __esm(() => {
},
family: "gemini-pro"
},
- "google/gemma-3-12b-it": {
- id: "google/gemma-3-12b-it",
- reasoning: false,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 16384
- },
- family: "gemma"
- },
"google/gemini-2.5-flash-image": {
id: "google/gemini-2.5-flash-image",
reasoning: false,
@@ -71177,7 +70956,7 @@ var init_model_capabilities_generated = __esm(() => {
"~moonshotai/kimi-latest": {
id: "~moonshotai/kimi-latest",
reasoning: true,
- temperature: false,
+ temperature: true,
toolCall: true,
modalities: {
input: [
@@ -71190,7 +70969,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 1048576,
- output: 262144
+ output: 1048576
},
family: "kimi"
},
@@ -73042,6 +72821,44 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
+ "qwen3.6-max": {
+ id: "qwen3.6-max",
+ family: "qwen",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 256000,
+ output: 64000
+ }
+ },
+ "qwen3-coder-480b-a35b-instruct-int4-mixed-ar": {
+ id: "qwen3-coder-480b-a35b-instruct-int4-mixed-ar",
+ family: "qwen",
+ reasoning: false,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 106000,
+ output: 10600
+ }
+ },
"qwen-mt-plus": {
id: "qwen-mt-plus",
family: "qwen",
@@ -74229,26 +74046,6 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
- "nvidia/nemotron-nano-12b-v2-vl": {
- id: "nvidia/nemotron-nano-12b-v2-vl",
- family: "nemotron",
- reasoning: true,
- temperature: true,
- toolCall: true,
- modalities: {
- input: [
- "text",
- "image"
- ],
- output: [
- "text"
- ]
- },
- limit: {
- context: 131072,
- output: 131072
- }
- },
"google/imagen-4.0-ultra-generate-001": {
id: "google/imagen-4.0-ultra-generate-001",
family: "imagen",
@@ -77170,11 +76967,11 @@ var init_model_capabilities_generated = __esm(() => {
output: 128000
}
},
- "anthropic/claude-opus-5": {
- id: "anthropic/claude-opus-5",
- family: "claude-opus",
+ "moonshotai/kimi-k3-fast": {
+ id: "moonshotai/kimi-k3-fast",
+ family: "kimi-k3",
reasoning: true,
- temperature: true,
+ temperature: false,
toolCall: true,
modalities: {
input: [
@@ -77188,7 +76985,7 @@ var init_model_capabilities_generated = __esm(() => {
},
limit: {
context: 1e6,
- output: 128000
+ output: 131072
}
},
"openai/whisper-1": {
@@ -77744,6 +77541,25 @@ var init_model_capabilities_generated = __esm(() => {
output: 16384
}
},
+ "deepseek-r1-0528": {
+ id: "deepseek-r1-0528",
+ family: "deepseek-thinking",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 164000,
+ output: 164000
+ }
+ },
"moonshot-kimi-k2-instruct": {
id: "moonshot-kimi-k2-instruct",
family: "kimi-k2",
@@ -78661,6 +78477,27 @@ var init_model_capabilities_generated = __esm(() => {
output: 32768
}
},
+ "qwen/qwen3.7-flash": {
+ id: "qwen/qwen3.7-flash",
+ family: "qwen",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text",
+ "image",
+ "video"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 1e6,
+ output: 65536
+ }
+ },
"~x-ai/grok-latest": {
id: "~x-ai/grok-latest",
family: "grok",
@@ -80824,6 +80661,24 @@ var init_model_capabilities_generated = __esm(() => {
output: 4096
}
},
+ "deepseek-v3.1": {
+ id: "deepseek-v3.1",
+ reasoning: true,
+ temperature: true,
+ toolCall: true,
+ modalities: {
+ input: [
+ "text"
+ ],
+ output: [
+ "text"
+ ]
+ },
+ limit: {
+ context: 128000,
+ output: 32000
+ }
+ },
"doubao-1.5-vision-pro": {
id: "doubao-1.5-vision-pro",
reasoning: false,
@@ -81734,15 +81589,14 @@ var init_model_capabilities_generated = __esm(() => {
modalities: {
input: [
"text",
- "image",
- "pdf"
+ "image"
],
output: [
"text"
]
},
limit: {
- context: 1050000,
+ context: 372000,
input: 922000,
output: 128000
}
@@ -82809,6 +82663,81 @@ var init_model_capabilities2 = __esm(() => {
init_model_capabilities_generated();
});
+// packages/omo-opencode/src/shared/model-requirements.ts
+var init_model_requirements2 = __esm(() => {
+ init_src3();
+});
+
+// packages/omo-opencode/src/shared/agent-variant.ts
+var init_agent_variant = __esm(() => {
+ init_agent_display_names();
+ init_model_capabilities2();
+ init_model_requirements2();
+});
+
+// packages/omo-opencode/src/shared/session-cursor.ts
+var sessionCursors;
+var init_session_cursor = __esm(() => {
+ sessionCursors = new Map;
+});
+
+// packages/omo-opencode/src/shared/shell-env.ts
+function detectShellType() {
+ if (process.env.SHELL) {
+ const shell = process.env.SHELL;
+ if (shell.includes("csh") || shell.includes("tcsh")) {
+ return "csh";
+ }
+ return "unix";
+ }
+ if (process.platform === "win32" && (process.env.BASH_VERSION || process.env.MSYSTEM || process.env.WSL_DISTRO_NAME)) {
+ return "unix";
+ }
+ if (process.env.PSModulePath) {
+ return "powershell";
+ }
+ return process.platform === "win32" ? "cmd" : "unix";
+}
+var init_shell_env = () => {};
+
+// packages/omo-opencode/src/shared/system-directive.ts
+var init_system_directive = () => {};
+
+// packages/omo-opencode/src/shared/agent-tool-restrictions.ts
+var init_agent_tool_restrictions = __esm(() => {
+ init_agent_display_names();
+});
+
+// packages/omo-opencode/src/shared/model-resolver.ts
+var init_model_resolver2 = __esm(() => {
+ init_src3();
+ init_connected_providers_cache();
+});
+
+// packages/omo-opencode/src/shared/model-normalization.ts
+var init_model_normalization = () => {};
+
+// packages/omo-opencode/src/shared/model-resolution-pipeline.ts
+var init_model_resolution_pipeline = __esm(() => {
+ init_connected_providers_cache();
+});
+
+// packages/omo-opencode/src/shared/model-availability.ts
+import { existsSync as existsSync13, readFileSync as readFileSync5 } from "fs";
+import { join as join17 } from "path";
+function isModelCacheAvailable() {
+ if (hasProviderModelsCache()) {
+ return true;
+ }
+ const cacheFile = join17(getOpenCodeCacheDir(), "models.json");
+ return existsSync13(cacheFile);
+}
+var init_model_availability = __esm(() => {
+ init_logger2();
+ init_data_path();
+ init_connected_providers_cache();
+});
+
// packages/omo-opencode/src/shared/model-capabilities-cache.ts
function createModelCapabilitiesCacheStore(getCacheDir2 = getOmoOpenCodeCacheDir) {
const snapshotCacheStore = createJsonFileCacheStore({
@@ -86590,12 +86519,12 @@ function applyOpenAiOnlyModelCatalog(config3) {
var OPENAI_ONLY_AGENT_OVERRIDES, OPENAI_ONLY_CATEGORY_OVERRIDES;
var init_openai_only_model_catalog = __esm(() => {
OPENAI_ONLY_AGENT_OVERRIDES = {
- explore: { model: "openai/gpt-5.4-mini-fast" },
- librarian: { model: "openai/gpt-5.4-mini-fast" }
+ explore: { model: "openai/gpt-5.6-luna-fast", variant: "low" },
+ librarian: { model: "openai/gpt-5.6-luna-fast", variant: "low" }
};
OPENAI_ONLY_CATEGORY_OVERRIDES = {
artistry: { model: "openai/gpt-5.6-sol", variant: "xhigh" },
- quick: { model: "openai/gpt-5.4-mini" },
+ quick: { model: "openai/gpt-5.6-luna-fast" },
"visual-engineering": { model: "openai/gpt-5.6-sol", variant: "high" },
writing: { model: "openai/gpt-5.6-sol", variant: "medium" }
};
@@ -86793,13 +86722,13 @@ function generateModelConfig(config3) {
if (role === "explore") {
let agentConfig;
if (avail.native.openai) {
- agentConfig = { model: "openai/gpt-5.4-mini-fast" };
+ agentConfig = { model: "openai/gpt-5.6-luna-fast", variant: "low" };
} else if (avail.native.claude) {
agentConfig = { model: "anthropic/claude-haiku-4-5" };
} else if (avail.opencodeZen) {
agentConfig = { model: "opencode/gpt-5-nano" };
} else if (avail.opencodeGo) {
- agentConfig = { model: "opencode-go/qwen3.5-plus" };
+ agentConfig = { model: "opencode-go/qwen3.7-plus" };
} else if (avail.copilot) {
agentConfig = { model: "github-copilot/gpt-5-mini" };
} else {
@@ -86939,8 +86868,8 @@ function profileDirectories(root, options) {
}
function isWithin(parent, child, options) {
const pathOperations = hostPathOperations(options);
- const relative2 = pathOperations.relative(parent, child);
- return relative2 === "" || !relative2.startsWith("..") && !pathOperations.isAbsolute(relative2);
+ const relative = pathOperations.relative(parent, child);
+ return relative === "" || !relative.startsWith("..") && !pathOperations.isAbsolute(relative);
}
function projectDirectories(options) {
const directories = [];
@@ -87406,15 +87335,192 @@ var init_transform_opencode = __esm(() => {
init_record_values();
});
+// packages/omo-opencode/src/config-migration/reasoning-unification.ts
+function normalizeStringModel(value) {
+ return normalizeLegacyModelEntry({ model: value }).model;
+}
+function normalizeModelRef(value) {
+ if (typeof value === "string")
+ return normalizeStringModel(value);
+ return isPlainRecord3(value) ? normalizeLegacyModelEntry(value) : value;
+}
+function normalizedList(value) {
+ if (value === undefined)
+ return [];
+ const entries = Array.isArray(value) ? value : [value];
+ return entries.map(normalizeModelRef);
+}
+function hasModelSettings(record2, opencode) {
+ return [
+ "reasoning",
+ "variant",
+ "reasoningEffort",
+ "thinking",
+ ...opencode ? [] : ["provider_options", "providerOptions", "textVerbosity"]
+ ].some((key) => record2[key] !== undefined);
+}
+function primaryModelRef(record2, opencode) {
+ const model = record2["model"];
+ if (typeof model !== "string")
+ return;
+ if (!hasModelSettings(record2, opencode))
+ return normalizeStringModel(model);
+ const settings = { model };
+ for (const key of [
+ "reasoning",
+ "variant",
+ "reasoningEffort",
+ "thinking",
+ ...opencode ? [] : ["provider_options", "providerOptions", "textVerbosity"]
+ ]) {
+ if (record2[key] !== undefined)
+ settings[key] = record2[key];
+ }
+ return normalizeLegacyModelEntry(settings);
+}
+function conflictDiagnostic(record2, path6) {
+ const present = ["reasoning", "reasoningEffort", "variant"].filter((key) => record2[key] !== undefined);
+ if (present.length < 2)
+ return;
+ const [keptKey, ...droppedKeys] = present;
+ const keptValue = record2[keptKey];
+ const dropped = droppedKeys.map((key) => [key, record2[key]]);
+ const droppedText = dropped.map(([key, value]) => `${key}=${JSON.stringify(value)}`).join(" ");
+ return `conflict: ${path6.join(".")} dropped ${droppedText} kept ${keptKey}=${JSON.stringify(keptValue)}`;
+}
+function normalizeDefinition(value, kind, path6, diagnostics, opencode = false) {
+ if (!isPlainRecord3(value))
+ return value;
+ const conflict = conflictDiagnostic(value, path6);
+ if (conflict !== undefined)
+ diagnostics.push(conflict);
+ const normalizationInput = opencode ? copyRecord(value) : value;
+ if (opencode) {
+ delete normalizationInput["maxTokens"];
+ delete normalizationInput["providerOptions"];
+ delete normalizationInput["textVerbosity"];
+ }
+ const normalized = normalizeLegacyModelFields(normalizationInput);
+ if (opencode) {
+ for (const key of ["maxTokens", "providerOptions", "textVerbosity"]) {
+ if (value[key] !== undefined)
+ normalized[key] = value[key];
+ }
+ }
+ if (typeof normalized["model"] === "string")
+ normalized["model"] = normalizeStringModel(normalized["model"]);
+ if (Array.isArray(normalized["models"]))
+ normalized["models"] = normalizedList(normalized["models"]);
+ const fallbackModels = value["fallback_models"];
+ const shouldCombine = fallbackModels !== undefined || kind === "agent" && value["model"] !== undefined && value["models"] !== undefined;
+ if (!shouldCombine)
+ return normalized;
+ const primary = primaryModelRef(value, opencode);
+ const existing = kind === "agent" ? normalizedList(value["models"]) : [];
+ const fallbacks = normalizedList(fallbackModels);
+ normalized["models"] = [...primary === undefined ? [] : [primary], ...existing, ...fallbacks];
+ delete normalized["model"];
+ delete normalized["fallback_models"];
+ for (const key of [
+ "reasoning",
+ "variant",
+ "reasoningEffort",
+ "provider_options",
+ "providerOptions",
+ "thinking",
+ "textVerbosity"
+ ])
+ delete normalized[key];
+ return normalized;
+}
+function normalizeDefinitions(value, kind, path6, diagnostics) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = {};
+ for (const [name, definition] of Object.entries(value)) {
+ result[name] = normalizeDefinition(definition, kind, [...path6, name], diagnostics);
+ }
+ return result;
+}
+function normalizeOpenCodeDefinitions(value, kind, path6, diagnostics) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = {};
+ for (const [name, definition] of Object.entries(value)) {
+ result[name] = normalizeDefinition(definition, kind, [...path6, name], diagnostics, true);
+ }
+ return result;
+}
+function normalizeCatalog(value) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = {};
+ for (const [name, entry] of Object.entries(value))
+ result[name] = normalizeModelRef(entry);
+ return result;
+}
+function normalizeTypedBlock(value, path6, diagnostics, recurseProfiles) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = copyRecord(value);
+ if (result["categories"] !== undefined) {
+ result["categories"] = normalizeDefinitions(result["categories"], "category", [...path6, "categories"], diagnostics);
+ }
+ if (result["agents"] !== undefined) {
+ result["agents"] = normalizeDefinitions(result["agents"], "agent", [...path6, "agents"], diagnostics);
+ }
+ if (result["models"] !== undefined)
+ result["models"] = normalizeCatalog(result["models"]);
+ for (const harness2 of ["[senpi]", "[codex]"]) {
+ if (result[harness2] !== undefined)
+ result[harness2] = normalizeTypedBlock(result[harness2], [...path6, harness2], diagnostics, false);
+ }
+ if (result["[opencode]"] !== undefined) {
+ result["[opencode]"] = normalizeOpenCodeBlock(result["[opencode]"], [...path6, "[opencode]"], diagnostics);
+ }
+ if (recurseProfiles && isPlainRecord3(result["profiles"])) {
+ const profiles = {};
+ for (const [name, profile] of Object.entries(result["profiles"])) {
+ profiles[name] = normalizeTypedBlock(profile, [...path6, "profiles", name], diagnostics, false);
+ }
+ result["profiles"] = profiles;
+ }
+ return result;
+}
+function normalizeOpenCodeBlock(value, path6, diagnostics) {
+ if (!isPlainRecord3(value))
+ return value;
+ const result = copyRecord(value);
+ if (result["categories"] !== undefined) {
+ result["categories"] = normalizeOpenCodeDefinitions(result["categories"], "category", [...path6, "categories"], diagnostics);
+ }
+ if (result["agents"] !== undefined) {
+ result["agents"] = normalizeOpenCodeDefinitions(result["agents"], "agent", [...path6, "agents"], diagnostics);
+ }
+ return result;
+}
+function transformReasoningUnification(document) {
+ const diagnostics = [];
+ return {
+ diagnostics,
+ document: isPlainRecord3(document) ? normalizeTypedBlock(document, [], diagnostics, true) : {}
+ };
+}
+var REASONING_UNIFICATION_MIGRATION_ID = "2026-08-reasoning-unification";
+var init_reasoning_unification = __esm(() => {
+ init_src();
+ init_record_values();
+});
+
// packages/omo-opencode/src/config-migration/migration-plans.ts
function backupTimestamp(value) {
return value ?? new Date().toISOString().replace(/[:.]/g, "-");
}
function safeRelativePath(path6, homeDir, options) {
const pathOperations = hostPathOperations(options);
- const relative2 = pathOperations.relative(homeDir, path6);
- if (relative2 !== "" && !relative2.startsWith("..") && !pathOperations.isAbsolute(relative2))
- return relative2;
+ const relative = pathOperations.relative(homeDir, path6);
+ if (relative !== "" && !relative.startsWith("..") && !pathOperations.isAbsolute(relative))
+ return relative;
return `external-${encodeURIComponent(path6)}`;
}
function descriptors(sources, options, timestamp) {
@@ -87461,6 +87567,26 @@ function mergeOpenCodeInputs(inputs, options) {
}
return [...byTarget.values()];
}
+function reasoningPlan(targetPath) {
+ const inspect = (sources) => transformReasoningUnification(sources[0]?.value);
+ return {
+ id: REASONING_UNIFICATION_MIGRATION_ID,
+ inspect,
+ mode: "replace-target",
+ sources: [],
+ targetPath,
+ transform: inspect
+ };
+}
+function existingOmoConfigPath(directory, options) {
+ const fileSystem = discoveryFileSystem(options);
+ for (const fileName of ["omo.jsonc", "omo.json"]) {
+ const path6 = options.pathOperations.join(directory, fileName);
+ if (fileSystem.existsSync(path6))
+ return canonicalPath(path6, options);
+ }
+ return;
+}
function createLegacyConfigMigrationPlans(options) {
const timestamp = backupTimestamp(options.backupTimestamp);
const [openCodeGroup, configJsoncGroup] = discoverLegacyConfigGroups(options);
@@ -87489,9 +87615,7 @@ function createLegacyConfigMigrationPlans(options) {
...projectInputs
];
const plans = mergeOpenCodeInputs(openCodeInputs, options).map((input) => openCodePlan(input, options, timestamp));
- if (configJsoncGroup.id !== CONFIG_JSONC_MIGRATION_ID || configJsoncGroup.sources.length === 0)
- return plans;
- return [
+ const legacyPlans = configJsoncGroup.id !== CONFIG_JSONC_MIGRATION_ID || configJsoncGroup.sources.length === 0 ? plans : [
...plans,
{
id: CONFIG_JSONC_MIGRATION_ID,
@@ -87501,6 +87625,19 @@ function createLegacyConfigMigrationPlans(options) {
transform: (loaded) => transformConfigJsoncSources({ discovered: configJsoncGroup.sources, sources: loaded })
}
];
+ const reasoningTargets = new Map;
+ const addReasoningTarget = (targetPath) => {
+ if (targetPath === undefined)
+ return;
+ reasoningTargets.set(pathKey(targetPath, options), targetPath);
+ };
+ addReasoningTarget(existingOmoConfigPath(options.pathOperations.join(options.homeDir, ".omo"), options));
+ for (const projectRoot of projectDirectories(options)) {
+ addReasoningTarget(existingOmoConfigPath(options.pathOperations.join(projectRoot, ".omo"), options));
+ }
+ for (const plan of legacyPlans)
+ addReasoningTarget(plan.targetPath);
+ return [...legacyPlans, ...[...reasoningTargets.values()].map(reasoningPlan)];
}
var init_migration_plans = __esm(() => {
init_discovery2();
@@ -87508,6 +87645,7 @@ var init_migration_plans = __esm(() => {
init_record_values();
init_transform_config_jsonc();
init_transform_opencode();
+ init_reasoning_unification();
});
// packages/omo-opencode/src/config-migration/migration-executor.ts
@@ -87520,6 +87658,7 @@ var init_config_migration = __esm(() => {
init_migration_executor();
init_transform_config_jsonc();
init_transform_opencode();
+ init_reasoning_unification();
});
// packages/omo-opencode/src/startup-migration.ts
@@ -88241,7 +88380,7 @@ function shouldRetainLine(line, cutoffMs) {
function parseDiagnosticLine(line) {
try {
const parsed = JSON.parse(line);
- if (!isRecord5(parsed)) {
+ if (!isRecord9(parsed)) {
return null;
}
return parsed;
@@ -88252,7 +88391,7 @@ function parseDiagnosticLine(line) {
throw error51;
}
}
-function isRecord5(value) {
+function isRecord9(value) {
return value !== null && typeof value === "object" && !Array.isArray(value);
}
function trimToMaxBytes(lines) {
@@ -91362,7 +91501,7 @@ var init_context_lines_node = __esm(() => {
});
// node_modules/.bun/[email protected]/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs
-import { isAbsolute as isAbsolute8, relative as relative5, sep as sep8 } from "path";
+import { isAbsolute as isAbsolute7, relative as relative4, sep as sep8 } from "path";
function createRelativePathModifier(basePath = process.cwd()) {
const isWindows = sep8 === "\\";
const toUnix = (p) => isWindows ? p.replace(/\\/g, "/") : p;
@@ -91370,8 +91509,8 @@ function createRelativePathModifier(basePath = process.cwd()) {
return async (frames) => {
for (const frame of frames)
if (!(!frame.filename || frame.filename.startsWith("node:") || frame.filename.startsWith("data:"))) {
- if (isAbsolute8(frame.filename))
- frame.filename = toUnix(relative5(normalizedBase, toUnix(frame.filename)));
+ if (isAbsolute7(frame.filename))
+ frame.filename = toUnix(relative4(normalizedBase, toUnix(frame.filename)));
}
return frames;
};
@@ -93887,7 +94026,7 @@ var package_default2;
var init_package2 = __esm(() => {
package_default2 = {
name: "@oh-my-opencode/omo-codex",
- version: "4.19.3",
+ version: "4.19.4",
type: "module",
private: true,
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
@@ -95369,7 +95508,7 @@ function formatConfigSummary(config3) {
lines.push("");
const claudeDetail = config3.hasClaude ? config3.isMax20 ? "max20" : "standard" : undefined;
lines.push(formatProvider("Claude", config3.hasClaude, claudeDetail));
- lines.push(formatProvider("OpenAI/ChatGPT", config3.hasOpenAI, "GPT-5.4 for Oracle"));
+ lines.push(formatProvider("OpenAI/ChatGPT", config3.hasOpenAI, "GPT-5.6 Sol for Oracle"));
lines.push(formatProvider("Gemini", config3.hasGemini));
lines.push(formatProvider("GitHub Copilot", config3.hasCopilot, "fallback"));
lines.push(formatProvider("OpenCode Zen", config3.hasOpencodeZen, "opencode/ models"));
@@ -95626,7 +95765,7 @@ import { homedir as homedir5 } from "os";
// packages/omo-codex/src/install/codex-cache-bins.ts
import { chmod, lstat as lstat4, mkdir, readFile as readFile3, readdir as readdir2, readlink as readlink3, rm as rm3, stat as stat2, symlink, writeFile } from "fs/promises";
-import { basename as basename4, isAbsolute as isAbsolute3, join as join26, relative as relative2, resolve as resolve6, sep } from "path";
+import { basename as basename4, isAbsolute as isAbsolute2, join as join26, relative, resolve as resolve6, sep } from "path";
// packages/omo-codex/src/install/codex-cache-command-shim.ts
var COMMAND_SHIM_MARKER = ":: generated by oh-my-openagent Codex installer";
@@ -95671,7 +95810,7 @@ function windowsCommandShim(targetPath) {
// packages/omo-codex/src/install/codex-cache-dangling-bins.ts
import { lstat as lstat2, readFile, readdir, readlink, rm, stat } from "fs/promises";
-import { dirname as dirname9, isAbsolute as isAbsolute2, join as join23, resolve as resolve5 } from "path";
+import { dirname as dirname9, isAbsolute, join as join23, resolve as resolve5 } from "path";
// packages/omo-codex/src/install/codex-cache-fs.ts
import { lstat } from "fs/promises";
@@ -95718,7 +95857,7 @@ async function removeDanglingManagedSymlink(linkPath) {
if (!linkStat.isSymbolicLink())
return;
const linkTarget = await readlink(linkPath);
- const target = isAbsolute2(linkTarget) ? linkTarget : resolve5(dirname9(linkPath), linkTarget);
+ const target = isAbsolute(linkTarget) ? linkTarget : resolve5(dirname9(linkPath), linkTarget);
if (!await isFileSystemEntry(target) && isManagedComponentBinTarget(target))
await rm(linkPath, { force: true });
} catch (error51) {
@@ -96067,8 +96206,8 @@ function resolvePackageBinTarget(packageRoot, target) {
throw new Error("Package bin target must stay inside package root");
const root = resolve6(packageRoot);
const resolvedTarget = resolve6(root, target);
- const relativeTarget = relative2(root, resolvedTarget);
- if (relativeTarget === "" || relativeTarget !== ".." && !relativeTarget.startsWith(`..${sep}`) && !isAbsolute3(relativeTarget)) {
+ const relativeTarget = relative(root, resolvedTarget);
+ if (relativeTarget === "" || relativeTarget !== ".." && !relativeTarget.startsWith(`..${sep}`) && !isAbsolute2(relativeTarget)) {
return resolvedTarget;
}
throw new Error("Package bin target must stay inside package root");
@@ -96212,11 +96351,11 @@ async function isDirectory(path6) {
// packages/omo-codex/src/install/codex-cache-local-dependencies.ts
import { realpathSync as realpathSync6 } from "fs";
import { readFile as readFile5, readdir as readdir3, writeFile as writeFile2 } from "fs/promises";
-import { dirname as dirname11, isAbsolute as isAbsolute5, join as join29, relative as relative4, resolve as resolve9, sep as sep2 } from "path";
+import { dirname as dirname11, isAbsolute as isAbsolute4, join as join29, relative as relative3, resolve as resolve9, sep as sep2 } from "path";
// packages/omo-codex/src/install/codex-cache-paths.ts
import { existsSync as existsSync24, readdirSync as readdirSync6 } from "fs";
-import { isAbsolute as isAbsolute4, join as join28, relative as relative3, resolve as resolve8 } from "path";
+import { isAbsolute as isAbsolute3, join as join28, relative as relative2, resolve as resolve8 } from "path";
var DEFAULT_CODEX_MARKETPLACE_NAME = "sisyphuslabs";
var DEFAULT_CODEX_PLUGIN_NAME = "omo";
function resolveDefaultCodexHome(homeDir) {
@@ -96254,8 +96393,8 @@ function resolveCachedRuntimePath(pluginRoot, sourceRoot, runtimePath) {
return resolve8(sourceRoot, runtimePath);
}
function isPathInside(candidatePath, rootPath) {
- const pathFromRoot = relative3(rootPath, candidatePath);
- return pathFromRoot === "" || !pathFromRoot.startsWith("..") && !isAbsolute4(pathFromRoot);
+ const pathFromRoot = relative2(rootPath, candidatePath);
+ return pathFromRoot === "" || !pathFromRoot.startsWith("..") && !isAbsolute3(pathFromRoot);
}
function compareVersionNames(left, right) {
const leftParts = left.split(".").map((part) => Number.parseInt(part, 10));
@@ -96282,7 +96421,7 @@ async function rewriteCachedPackageLocalFileDependencies(pluginRoot, sourceRoot)
if (!isPlainRecord4(parsed))
continue;
const packageDir = dirname11(packageJsonPath);
- const sourcePackageDir = join29(sourceRoot, relative4(pluginRoot, packageDir));
+ const sourcePackageDir = join29(sourceRoot, relative3(pluginRoot, packageDir));
let changed = false;
for (const field of ["dependencies", "optionalDependencies", "peerDependencies"]) {
const dependencies = parsed[field];
@@ -96292,7 +96431,7 @@ async function rewriteCachedPackageLocalFileDependencies(pluginRoot, sourceRoot)
if (typeof specifier !== "string" || !specifier.startsWith("file:"))
continue;
const filePath = specifier.slice("file:".length);
- if (filePath.length === 0 || isAbsolute5(filePath))
+ if (filePath.length === 0 || isAbsolute4(filePath))
continue;
const targetPath = resolve9(packageDir, filePath);
if (isPathInside(targetPath, pluginRoot))
@@ -96339,9 +96478,9 @@ function rewritePackageLockFileDependency(input) {
if (!packages)
return;
const lockRoot = canonicalizeExistingPath(input.pluginRoot);
- const packageKey = toPackageLockPath(relative4(input.pluginRoot, input.packageDir));
- const oldTargetKey = toPackageLockPath(relative4(input.pluginRoot, input.targetPath));
- const newTargetKey = toPackageLockPath(relative4(lockRoot, input.sourceTargetPath));
+ const packageKey = toPackageLockPath(relative3(input.pluginRoot, input.packageDir));
+ const oldTargetKey = toPackageLockPath(relative3(input.pluginRoot, input.targetPath));
+ const newTargetKey = toPackageLockPath(relative3(lockRoot, input.sourceTargetPath));
const newSpecifier = `file:${input.sourceTargetPath}`;
const packageEntry = packages[packageKey];
if (isPlainRecord4(packageEntry)) {
@@ -96710,10 +96849,10 @@ async function restoreBackupDirectory(backupPath, targetPath, renameDirectory) {
await renameDirectory(backupPath, targetPath);
}
function shouldCopyPluginPath(path6, root) {
- const relative5 = path6 === root ? "" : path6.slice(root.length + sep5.length);
- if (relative5 === "")
+ const relative4 = path6 === root ? "" : path6.slice(root.length + sep5.length);
+ if (relative4 === "")
return true;
- const parts = relative5.split(sep5);
+ const parts = relative4.split(sep5);
if (parts.some((part) => part === ".git" || part === "node_modules"))
return false;
return !isNestedComponentMcpManifest(parts);
@@ -97507,7 +97646,7 @@ function tomlKeySegment(value) {
// packages/omo-codex/src/install/codex-config-atomic-write.ts
import { lstat as lstat6, readlink as readlink4, realpath, rename as rename3, unlink, writeFile as writeFile5 } from "fs/promises";
-import { basename as basename6, dirname as dirname13, isAbsolute as isAbsolute6, join as join36, resolve as resolve10 } from "path";
+import { basename as basename6, dirname as dirname13, isAbsolute as isAbsolute5, join as join36, resolve as resolve10 } from "path";
var RENAME_RETRY_DELAYS_MS = [10, 25, 50];
var RETRIABLE_RENAME_CODES = new Set(["EPERM", "EBUSY"]);
async function writeFileAtomic(targetPath, data) {
@@ -97541,7 +97680,7 @@ async function resolveSymlinkTarget(targetPath) {
if (!(error51 instanceof Error))
throw error51;
const linkValue = await readlink4(targetPath);
- return isAbsolute6(linkValue) ? linkValue : resolve10(dirname13(targetPath), linkValue);
+ return isAbsolute5(linkValue) ? linkValue : resolve10(dirname13(targetPath), linkValue);
}
}
async function renameWithRetry(fromPath, toPath) {
@@ -97932,6 +98071,24 @@ function stripUnquotedInlineComment3(line) {
// packages/omo-codex/src/install/codex-config-reasoning.ts
var MANAGED_KEYS = ["model", "model_context_window", "model_reasoning_effort", "plan_mode_reasoning_effort"];
+var CODEX_REASONING_BY_UNIFIED_LEVEL = {
+ off: "none",
+ none: "none",
+ minimal: "minimal",
+ low: "low",
+ medium: "medium",
+ high: "high",
+ xhigh: "xhigh",
+ max: "max"
+};
+function applyReasoningOverride(catalog, reasoning) {
+ if (reasoning === undefined)
+ return catalog;
+ const wireEffort = CODEX_REASONING_BY_UNIFIED_LEVEL[reasoning.trim().toLowerCase()];
+ if (wireEffort === undefined)
+ return catalog;
+ return { ...catalog, current: { ...catalog.current, modelReasoningEffort: wireEffort } };
+}
function ensureCodexReasoningConfig(config3, catalog) {
const current = readRootReasoningSettings(config3);
if (Object.keys(current).length > 0 && !matchesProfile(current, catalog.current) && !catalog.managedProfiles.some((profile) => matchesProfile(current, profile))) {
@@ -98108,7 +98265,7 @@ function isRootSetting2(line, key) {
// packages/omo-codex/src/install/codex-multi-agent-v2-config.ts
import { readFileSync as readFileSync11 } from "fs";
-import { dirname as dirname14, isAbsolute as isAbsolute7, join as join38 } from "path";
+import { dirname as dirname14, isAbsolute as isAbsolute6, join as join38 } from "path";
var CODEX_AGENTS_HEADER = "agents";
var CODEX_MULTI_AGENT_V2_HEADER = "features.multi_agent_v2";
var CODEX_MULTI_AGENT_V2_THREAD_LIMIT_KEY = `${CODEX_MULTI_AGENT_V2_HEADER}.max_concurrent_threads_per_session`;
@@ -98146,7 +98303,7 @@ function resolveCodexMultiAgentVersion(config3, configPath) {
function resolveCatalogPath(configuredPath, configPath) {
if (configuredPath === null)
return join38(dirname14(configPath), "models_cache.json");
- return isAbsolute7(configuredPath) ? configuredPath : join38(dirname14(configPath), configuredPath);
+ return isAbsolute6(configuredPath) ? configuredPath : join38(dirname14(configPath), configuredPath);
}
function readCatalogMultiAgentVersion(model, cachePath) {
let raw;
@@ -98161,10 +98318,10 @@ function readCatalogMultiAgentVersion(model, cachePath) {
} catch {
return null;
}
- if (!isRecord4(cache) || !Array.isArray(cache.models))
+ if (!isRecord8(cache) || !Array.isArray(cache.models))
return null;
for (const entry of cache.models) {
- if (!isRecord4(entry))
+ if (!isRecord8(entry))
continue;
if (entry.slug !== model && entry.id !== model)
continue;
@@ -98189,7 +98346,7 @@ function readRootModelCatalogPath(config3) {
const single = config3.match(/^\s*model_catalog_json\s*=\s*'([^']+)'/m);
return single?.[1] ?? null;
}
-function isRecord4(value) {
+function isRecord8(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
function removeFeatureFlagSetting(config3, featureName) {
@@ -98272,7 +98429,7 @@ async function updateCodexConfig(input) {
config3 = ensureFeatureEnabled(config3, "plugin_hooks");
config3 = ensureFeatureEnabled(config3, "multi_agent");
config3 = removeUnsupportedCodexMultiAgentModeConfig(config3);
- config3 = ensureCodexReasoningConfig(config3, await readCodexModelCatalog(input.repoRoot));
+ config3 = ensureCodexReasoningConfig(config3, applyReasoningOverride(await readCodexModelCatalog(input.repoRoot), input.reasoning));
config3 = ensureCodexMultiAgentV2Config(config3, {
multiAgentVersion: resolveCodexMultiAgentVersion(config3, input.configPath)
});
@@ -98462,7 +98619,7 @@ var MANAGED_REASONING_DEFAULT_UPGRADES = new Map([
"explorer",
[
{
- previous: { model: "gpt-5.4-mini", effort: "low" },
+ previous: { model: "gpt-5.6-luna-fast", effort: "low" },
current: { model: "gpt-5.6-terra", effort: "medium" }
},
{
@@ -98475,7 +98632,7 @@ var MANAGED_REASONING_DEFAULT_UPGRADES = new Map([
"librarian",
[
{
- previous: { model: "gpt-5.4-mini", effort: "low" },
+ previous: { model: "gpt-5.6-luna-fast", effort: "low" },
current: { model: "gpt-5.6-terra", effort: "medium" }
},
{
@@ -98998,10 +99155,10 @@ function localSourcePath(source) {
function validateLocalSourcePath(path6) {
if (!path6.startsWith("./"))
throw new Error("local plugin source path must start with ./");
- const relative5 = path6.slice(2);
- if (relative5.length === 0)
+ const relative4 = path6.slice(2);
+ if (relative4.length === 0)
throw new Error("local plugin source path must not be empty");
- for (const part of relative5.split(/[\\/]/)) {
+ for (const part of relative4.split(/[\\/]/)) {
if (part === "" || part === "." || part === "..") {
throw new Error("local plugin source path must stay within the marketplace root");
}
@@ -99051,10 +99208,10 @@ async function writeSnapshotPlugin(marketplaceRoot, plugin) {
return { name: plugin.name, path: targetPath };
}
function shouldCopyMarketplaceSourcePath(path6, root) {
- const relative5 = path6 === root ? "" : path6.slice(root.length + sep6.length);
- if (relative5 === "")
+ const relative4 = path6 === root ? "" : path6.slice(root.length + sep6.length);
+ if (relative4 === "")
return true;
- const parts = relative5.split(sep6);
+ const parts = relative4.split(sep6);
return !parts.some((part) => part === ".git" || part === "node_modules");
}
@@ -100018,7 +100175,8 @@ async function runCodexInstaller(options = {}) {
gitBashEnabled: platform === "win32" && gitBashResolution.found,
trustedHookStates,
agentConfigs: [...agentConfigs.values()].sort((left, right) => left.name.localeCompare(right.name)),
- autonomousPermissions: options.autonomousPermissions !== false
+ autonomousPermissions: options.autonomousPermissions !== false,
+ ...options.reasoning === undefined ? {} : { reasoning: options.reasoning }
});
await seedAndMigrateOmoSot({ env: env3, log: log4, repoRoot, runCommand });
const projectCleanup = await repairProjectLocalCodexArtifactsBestEffort({
@@ -100221,7 +100379,7 @@ function defaultRunCommand2(command, args) {
// packages/omo-codex/src/install/codex-cleanup.ts
import { lstat as lstat13, readFile as readFile22, readdir as readdir11, rm as rm11, rmdir } from "fs/promises";
import { homedir as homedir7 } from "os";
-import { isAbsolute as isAbsolute10, join as join56, relative as relative7, resolve as resolve15 } from "path";
+import { isAbsolute as isAbsolute9, join as join56, relative as relative6, resolve as resolve15 } from "path";
// packages/omo-codex/src/install/codex-cleanup-config.ts
import { lstat as lstat12, mkdir as mkdir8, readFile as readFile21, writeFile as writeFile12 } from "fs/promises";
@@ -100341,9 +100499,9 @@ function nodeErrorCode5(error51) {
}
// packages/omo-codex/src/install/codex-cleanup-safety.ts
-import { dirname as dirname19, isAbsolute as isAbsolute9, join as join55, relative as relative6, resolve as resolve14 } from "path";
+import { dirname as dirname19, isAbsolute as isAbsolute8, join as join55, relative as relative5, resolve as resolve14 } from "path";
function validateManagedCleanupTarget(input) {
- if (!isAbsolute9(input.path))
+ if (!isAbsolute8(input.path))
return skipped(input.path, "outside managed Codex cleanup scope");
const codexHome = resolve14(input.codexHome);
if (dirname19(codexHome) === codexHome)
@@ -100367,11 +100525,11 @@ function validateManagedCleanupTarget(input) {
return skipped(input.path, "outside managed Codex cleanup scope");
}
function isWithinDirectory(parent, child) {
- const relativePath = relative6(parent, child);
- return relativePath === "" || !relativePath.startsWith("..") && !isAbsolute9(relativePath);
+ const relativePath = relative5(parent, child);
+ return relativePath === "" || !relativePath.startsWith("..") && !isAbsolute8(relativePath);
}
function isManagedBootstrapDriftPath(codexHome, target) {
- const relativePath = relative6(codexHome, target);
+ const relativePath = relative5(codexHome, target);
const segments = relativePath.split(/[\\/]/);
if (segments[0] !== "plugins")
return false;
@@ -100555,10 +100713,10 @@ async function removeManifestListedAgentLinks(codexHome, paths2) {
return { removed: removed2, skipped: skipped2 };
}
function isSafeManagedAgentPath(agentsDir, path6) {
- if (!isAbsolute10(path6))
+ if (!isAbsolute9(path6))
return false;
- const relativePath = relative7(agentsDir, path6);
- if (relativePath === "" || relativePath.startsWith("..") || isAbsolute10(relativePath))
+ const relativePath = relative6(agentsDir, path6);
+ if (relativePath === "" || relativePath.startsWith("..") || isAbsolute9(relativePath))
return false;
const fileName = relativePath.split(/[\\/]/).pop();
if (fileName === undefined)
@@ -100622,12 +100780,16 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
join57("runtime", "lsp-daemon", "dist", ".omo-runtime-manifest.json"),
join57("scripts", "install.mjs")
];
+var LEGACY_BUILTIN_SHADOW_PACKAGES = [
+ join57("packages", "pi-goal"),
+ join57("packages", "pi-webfetch")
+];
async function runSenpiInstaller(options = {}) {
const context = resolveInstallContext(options);
await ensurePluginArtifacts(context);
const settings = await readSettings(context.settingsPath);
const before = JSON.stringify(settings);
- const packages = dedupePackages(readPackages(settings));
+ const packages = removeLegacyBuiltinShadows(dedupePackages(readPackages(settings)), context.repoRoot, context.agentDir);
if (!packages.includes(context.pluginPath))
packages.push(context.pluginPath);
settings.packages = packages;
@@ -100711,6 +100873,10 @@ function readPackages(settings) {
function dedupePackages(packages) {
return [...new Set(packages)];
}
+function removeLegacyBuiltinShadows(packages, repoRoot, agentDir) {
+ const shadowPaths = new Set(LEGACY_BUILTIN_SHADOW_PACKAGES.map((path6) => resolve16(repoRoot, path6)));
+ return packages.filter((entry) => !shadowPaths.has(resolve16(agentDir, entry)));
+}
async function writeSettingsAtomically(settingsPath, settings) {
await mkdir9(dirname20(settingsPath), { recursive: true });
const backupPath = await nextBackupPath(settingsPath);
@@ -101250,7 +101416,7 @@ async function runCliInstaller(args, version3) {
}
printBox(formatConfigSummary(config3), isUpdate ? "Updated Configuration" : "Installation Complete");
if (config3.hasOpenCode && !config3.hasClaude) {
- printInfo("Note: Sisyphus agent performs best with Claude Opus 4.5+. " + "Other models work but may have reduced orchestration quality.");
+ printInfo("Note: Sisyphus agent performs best with Claude Opus 5. " + "Other models work but may have reduced orchestration quality.");
}
if (config3.hasOpenCode && !hasAnyConfiguredProvider(config3)) {
printWarning(getNoModelProvidersWarning());
@@ -102730,8 +102896,8 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have a Claude Pro/Max subscription?",
options: [
{ value: "no", label: "No", hint: `Will use ${ULTIMATE_FALLBACK} as fallback` },
- { value: "yes", label: "Yes (standard)", hint: "Claude Opus 4.5 for orchestration" },
- { value: "max20", label: "Yes (max20 mode)", hint: "Full power with Claude Sonnet 4.6 for Librarian" }
+ { value: "yes", label: "Yes (standard)", hint: "Claude Opus 5 for orchestration" },
+ { value: "max20", label: "Yes (max20 mode)", hint: "Higher Claude usage limits for orchestration" }
],
initialValue: initial.claude
});
@@ -102741,7 +102907,7 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have an OpenAI/ChatGPT Plus subscription?",
options: [
{ value: "no", label: "No", hint: "Oracle will use fallback models" },
- { value: "yes", label: "Yes", hint: "GPT-5.4 for Oracle (high-IQ debugging)" }
+ { value: "yes", label: "Yes", hint: "GPT-5.6 Sol for Oracle (high-IQ debugging)" }
],
initialValue: initial.openai
});
@@ -102771,7 +102937,7 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have access to OpenCode Zen (opencode/ models)?",
options: [
{ value: "no", label: "No", hint: "Will use other configured providers" },
- { value: "yes", label: "Yes", hint: "opencode/claude-opus-4-7, opencode/gpt-5.5, etc." }
+ { value: "yes", label: "Yes", hint: "opencode/claude-opus-5, opencode/gpt-5.6-sol, etc." }
],
initialValue: initial.opencodeZen
});
@@ -102791,7 +102957,7 @@ async function promptInstallConfig(detected, platform, codexAutonomousOverride)
message: "Do you have a Kimi For Coding subscription?",
options: [
{ value: "no", label: "No", hint: "Will use other configured providers" },
- { value: "yes", label: "Yes", hint: "Kimi K2.5 for Sisyphus/Prometheus fallback" }
+ { value: "yes", label: "Yes", hint: "Kimi K3 for Sisyphus/Prometheus fallback" }
],
initialValue: initial.kimiForCoding
});
@@ -102959,7 +103125,7 @@ async function runTuiInstaller(args, version3) {
await installAstGrepForOpenCode({ log: R2.warn });
}
if (config3.hasOpenCode && !config3.hasClaude) {
- R2.info(`${import_picocolors4.default.bold("Note:")} Sisyphus agent performs best with Claude Opus 4.5+.
+ R2.info(`${import_picocolors4.default.bold("Note:")} Sisyphus agent performs best with Claude Opus 5.
` + `Other models work but may have reduced orchestration quality.`);
}
if (config3.hasOpenCode && !hasAnyConfiguredProvider(config3)) {
@@ -103848,7 +104014,7 @@ async function processEvents(ctx, stream, state) {
}
}
// packages/omo-opencode/src/config/validate.ts
-import { relative as relative8 } from "path";
+import { relative as relative7 } from "path";
// packages/omo-opencode/src/shared/disabled-providers.ts
init_config_errors();
@@ -104202,12 +104368,15 @@ var OverridableAgentNameSchema = exports_external.enum([
"atlas"
]);
// packages/omo-opencode/src/config/schema/agent-overrides.ts
+init_src();
init_zod();
// packages/omo-opencode/src/config/schema/fallback-models.ts
+init_src();
init_zod();
var FallbackModelObjectSchema = exports_external.object({
model: exports_external.string(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional(),
reasoningEffort: exports_external.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
temperature: exports_external.number().min(0).max(2).optional(),
@@ -104248,6 +104417,7 @@ var AgentPermissionSchema = exports_external.object({
var AgentOverrideConfigSchema = exports_external.object({
model: exports_external.string().optional(),
fallback_models: FallbackModelsSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional(),
category: exports_external.string().optional(),
skills: exports_external.array(exports_external.string()).optional(),
@@ -104272,10 +104442,12 @@ var AgentOverrideConfigSchema = exports_external.object({
providerOptions: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
ultrawork: exports_external.object({
model: exports_external.string().optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional()
}).optional(),
compaction: exports_external.object({
model: exports_external.string().optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional()
}).optional()
});
@@ -104336,14 +104508,19 @@ var BrowserAutomationConfigSchema = exports_external.object({
playwright_mcp_args: exports_external.array(exports_external.string()).optional()
});
// packages/omo-opencode/src/config/schema/categories.ts
+init_src();
init_zod();
var CategoryConfigSchema = exports_external.object({
description: exports_external.string().optional(),
model: exports_external.string().optional(),
+ models: exports_external.array(exports_external.union([exports_external.string(), FallbackModelObjectSchema])).optional(),
fallback_models: FallbackModelsSchema.optional(),
+ reasoning: OmoReasoningSchema.optional(),
variant: exports_external.string().optional(),
temperature: exports_external.number().min(0).max(2).optional(),
top_p: exports_external.number().min(0).max(1).optional(),
+ max_tokens: exports_external.number().int().positive().optional(),
+ provider_options: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
maxTokens: exports_external.number().optional(),
thinking: exports_external.object({
type: exports_external.enum(["enabled", "disabled"]),
@@ -104355,7 +104532,8 @@ var CategoryConfigSchema = exports_external.object({
prompt_append: exports_external.string().optional(),
max_prompt_tokens: exports_external.number().int().positive().optional(),
is_unstable_agent: exports_external.boolean().optional(),
- disable: exports_external.boolean().optional()
+ disable: exports_external.boolean().optional(),
+ warn_unavailable: exports_external.boolean().optional()
});
var BuiltinCategoryNameSchema = exports_external.enum([
"visual-engineering",
@@ -104809,7 +104987,7 @@ var OhMyOpenCodeConfigSchema = exports_external.object({
});
// packages/omo-opencode/src/config/validate.ts
function shortPath(configPath) {
- const candidate = relative8(process.cwd(), configPath);
+ const candidate = relative7(process.cwd(), configPath);
return candidate.length > 0 ? candidate : configPath;
}
function formatIssuePath(path6) {
@@ -105563,12 +105741,12 @@ function readCurrentTopLevelTask(planPath) {
}
// packages/boulder-state/src/storage/path.ts
import { existsSync as existsSync34 } from "fs";
-import { isAbsolute as isAbsolute11, join as join61, relative as relative9, resolve as resolve17 } from "path";
+import { isAbsolute as isAbsolute10, join as join61, relative as relative8, resolve as resolve17 } from "path";
function getBoulderFilePath(directory) {
return join61(directory, BOULDER_DIR, BOULDER_FILE);
}
function resolveTrackedPath(baseDirectory, trackedPath) {
- return isAbsolute11(trackedPath) ? resolve17(trackedPath) : resolve17(baseDirectory, trackedPath);
+ return isAbsolute10(trackedPath) ? resolve17(trackedPath) : resolve17(baseDirectory, trackedPath);
}
function resolveBoulderPlanPath(directory, state) {
const absolutePlanPath = resolveTrackedPath(directory, state.active_plan);
@@ -105577,8 +105755,8 @@ function resolveBoulderPlanPath(directory, state) {
return absolutePlanPath;
}
const absoluteDirectory = resolve17(directory);
- const relativePlanPath = relative9(absoluteDirectory, absolutePlanPath);
- if (relativePlanPath.length === 0 || relativePlanPath.startsWith("..") || isAbsolute11(relativePlanPath)) {
+ const relativePlanPath = relative8(absoluteDirectory, absolutePlanPath);
+ if (relativePlanPath.length === 0 || relativePlanPath.startsWith("..") || isAbsolute10(relativePlanPath)) {
return absolutePlanPath;
}
const absoluteWorktreePath = resolveTrackedPath(directory, worktreePath);
@@ -108081,30 +108259,104 @@ async function checkConfig() {
};
}
+// packages/omo-opencode/src/cli/doctor/checks/deprecated-reasoning-keys.ts
+init_main();
+import { existsSync as existsSync51, readFileSync as readFileSync33 } from "fs";
+import { join as join75 } from "path";
+var CANONICAL_REPLACEMENT = new Map([
+ ["variant", "reasoning"],
+ ["reasoningEffort", "reasoning"],
+ ["thinking", "reasoning"],
+ ["textVerbosity", "provider_options.textVerbosity"],
+ ["fallback_models", "models"]
+]);
+var TUNING_CONTAINERS = new Set(["agents", "categories", "models"]);
+function isRecord10(value) {
+ return value !== null && typeof value === "object" && !Array.isArray(value);
+}
+function isHarnessBlock(key) {
+ return key.startsWith("[") && key.endsWith("]");
+}
+function collectIssues(configPath, value, prefix) {
+ if (!isRecord10(value))
+ return [];
+ const issues = [];
+ for (const [key, child] of Object.entries(value)) {
+ const path12 = prefix.length > 0 ? `${prefix}.${key}` : key;
+ const replacement = CANONICAL_REPLACEMENT.get(key);
+ if (replacement !== undefined) {
+ issues.push({
+ title: "Deprecated reasoning config key",
+ description: `${configPath}: ${path12}`,
+ fix: `Replace ${key} with ${replacement}, or run: oh-my-openagent config migrate`,
+ severity: "warning",
+ affects: [path12]
+ });
+ continue;
+ }
+ if (!isRecord10(child))
+ continue;
+ if (prefix.length === 0 && key === "profiles") {
+ for (const profile2 of Object.values(child)) {
+ issues.push(...collectIssues(configPath, profile2, ""));
+ }
+ continue;
+ }
+ if (TUNING_CONTAINERS.has(key) || isHarnessBlock(key) || prefix.length > 0) {
+ issues.push(...collectIssues(configPath, child, path12));
+ }
+ }
+ return issues;
+}
+function userConfigPaths() {
+ const home = process.env.HOME ?? process.env.USERPROFILE;
+ if (home === undefined || home.length === 0)
+ return [];
+ return [join75(home, ".omo", "omo.jsonc"), join75(home, ".omo", "omo.json")];
+}
+async function checkDeprecatedReasoningKeys() {
+ const issues = [];
+ const scanned = [];
+ for (const configPath of userConfigPaths()) {
+ if (!existsSync51(configPath))
+ continue;
+ scanned.push(configPath);
+ const parsed = parse2(readFileSync33(configPath, "utf-8"));
+ issues.push(...collectIssues(configPath, parsed, ""));
+ }
+ return {
+ name: CHECK_NAMES[CHECK_IDS.CONFIG],
+ status: issues.length > 0 ? "warn" : "pass",
+ message: issues.length > 0 ? `${issues.length} deprecated reasoning key(s) found` : "No deprecated reasoning keys found",
+ ...scanned.length > 0 ? { details: scanned.map((path12) => `Scanned: ${path12}`) } : {},
+ issues
+ };
+}
+
// packages/omo-opencode/src/cli/doctor/checks/dependencies.ts
init_src2();
-import { existsSync as existsSync51 } from "fs";
+import { existsSync as existsSync52 } from "fs";
import { createRequire as createRequire3 } from "module";
import { homedir as homedir16 } from "os";
-import { dirname as dirname27, join as join76 } from "path";
+import { dirname as dirname27, join as join77 } from "path";
// packages/omo-opencode/src/hooks/comment-checker/downloader.ts
-import { join as join75 } from "path";
+import { join as join76 } from "path";
import { homedir as homedir15, tmpdir as tmpdir4 } from "os";
init_binary_downloader();
init_logger2();
init_plugin_identity();
var DEBUG = process.env.COMMENT_CHECKER_DEBUG === "1";
-var DEBUG_FILE = join75(tmpdir4(), "comment-checker-debug.log");
+var DEBUG_FILE = join76(tmpdir4(), "comment-checker-debug.log");
function getCacheDir2() {
if (process.platform === "win32") {
const localAppData = process.env.LOCALAPPDATA || process.env.APPDATA;
- const base2 = localAppData || join75(homedir15(), "AppData", "Local");
- return join75(base2, CACHE_DIR_NAME, "bin");
+ const base2 = localAppData || join76(homedir15(), "AppData", "Local");
+ return join76(base2, CACHE_DIR_NAME, "bin");
}
const xdgCache = process.env.XDG_CACHE_HOME;
- const base = xdgCache || join75(homedir15(), ".cache");
- return join75(base, CACHE_DIR_NAME, "bin");
+ const base = xdgCache || join76(homedir15(), ".cache");
+ return join76(base, CACHE_DIR_NAME, "bin");
}
function getBinaryName() {
return process.platform === "win32" ? "comment-checker.exe" : "comment-checker";
@@ -108154,7 +108406,7 @@ async function getBinaryVersion(binary) {
}
}
async function checkAstGrepCli() {
- const runtimeDir = astGrepRuntimeDir(join76(homedir16(), ".omo"));
+ const runtimeDir = astGrepRuntimeDir(join77(homedir16(), ".omo"));
const sgPath = findSgBinarySync({ runtimeDir });
if (sgPath === null) {
return {
@@ -108184,11 +108436,11 @@ function findCommentCheckerPackageBinary(baseDirOverride, resolvePackageJsonPath
const platformKey = `${process.platform}-${process.arch === "x64" ? "x64" : process.arch}`;
try {
const packageDir = baseDirOverride ?? dirname27(resolvePackageJsonPath());
- const vendorPath = join76(packageDir, "vendor", platformKey, binaryName);
- if (existsSync51(vendorPath))
+ const vendorPath = join77(packageDir, "vendor", platformKey, binaryName);
+ if (existsSync52(vendorPath))
return vendorPath;
- const binPath = join76(packageDir, "bin", binaryName);
- if (existsSync51(binPath))
+ const binPath = join77(packageDir, "bin", binaryName);
+ if (existsSync52(binPath))
return binPath;
} catch (error51) {
if (!(error51 instanceof Error) && !isModuleResolutionFailure(error51))
@@ -108334,7 +108586,7 @@ async function getGhCliInfo(dependencies = {}) {
// packages/omo-opencode/src/mcp/lsp.ts
init_zod();
init_opencode_config_dir();
-import { existsSync as existsSync52, readFileSync as readFileSync33 } from "fs";
+import { existsSync as existsSync53, readFileSync as readFileSync34 } from "fs";
import { delimiter as delimiter3, dirname as dirname28, resolve as resolve19 } from "path";
import { fileURLToPath as fileURLToPath7 } from "url";
@@ -108478,7 +108730,7 @@ function findBootstrapRoot(candidates, pathExists) {
}
function readDaemonPackageVersion(root) {
try {
- const packageJson = JSON.parse(readFileSync33(resolve19(root, PACKAGE_REL, "package.json"), "utf-8"));
+ const packageJson = JSON.parse(readFileSync34(resolve19(root, PACKAGE_REL, "package.json"), "utf-8"));
return DaemonPackageSchema.parse(packageJson).version;
} catch (error51) {
if (!(error51 instanceof Error))
@@ -108500,7 +108752,7 @@ function createBootstrapCandidate(root, pathExists, resolveExecutable) {
};
}
function resolveLspCommand(options = {}) {
- const pathExists = options.exists ?? existsSync52;
+ const pathExists = options.exists ?? existsSync53;
const resolveExecutable = options.resolveExecutable ?? resolveRuntimeExecutable;
const moduleDirectory = getModuleDirectory(options.moduleUrl ?? import.meta.url);
const candidates = moduleDirectory ? createAncestorCliCandidates({
@@ -108559,24 +108811,24 @@ function getInstalledLspServers(options = {}) {
// packages/omo-opencode/src/cli/doctor/checks/tools-mcp.ts
init_shared();
-import { existsSync as existsSync53, readFileSync as readFileSync34 } from "fs";
+import { existsSync as existsSync54, readFileSync as readFileSync35 } from "fs";
import { homedir as homedir17 } from "os";
-import { join as join77 } from "path";
+import { join as join78 } from "path";
var BUILTIN_MCP_SERVERS = ["websearch", "context7", "grep_app", "lsp"];
function getMcpConfigPaths() {
return [
- join77(homedir17(), ".claude", ".mcp.json"),
- join77(process.cwd(), ".mcp.json"),
- join77(process.cwd(), ".claude", ".mcp.json")
+ join78(homedir17(), ".claude", ".mcp.json"),
+ join78(process.cwd(), ".mcp.json"),
+ join78(process.cwd(), ".claude", ".mcp.json")
];
}
function loadUserMcpConfig() {
const servers = {};
for (const configPath of getMcpConfigPaths()) {
- if (!existsSync53(configPath))
+ if (!existsSync54(configPath))
continue;
try {
- const content = readFileSync34(configPath, "utf-8");
+ const content = readFileSync35(configPath, "utf-8");
const config4 = parseJsonc(content);
if (config4.mcpServers) {
Object.assign(servers, config4.mcpServers);
@@ -108711,17 +108963,17 @@ async function checkTools() {
// packages/omo-opencode/src/cli/doctor/checks/telemetry.ts
init_src5();
-import { existsSync as existsSync54, readFileSync as readFileSync35 } from "fs";
+import { existsSync as existsSync55, readFileSync as readFileSync36 } from "fs";
function isTelemetryState(value) {
return value !== null && typeof value === "object" && !Array.isArray(value);
}
function readLastActiveDay(stateFilePath) {
- if (!existsSync54(stateFilePath)) {
+ if (!existsSync55(stateFilePath)) {
return "never";
}
let parsed;
try {
- parsed = JSON.parse(readFileSync35(stateFilePath, "utf-8"));
+ parsed = JSON.parse(readFileSync36(stateFilePath, "utf-8"));
} catch (error51) {
if (error51 instanceof Error) {
return "unreadable";
@@ -108846,10 +109098,10 @@ async function pathExists(dir) {
// packages/omo-opencode/src/cli/doctor/checks/codex.ts
init_src2();
-import { existsSync as existsSync55 } from "fs";
+import { existsSync as existsSync56 } from "fs";
import { lstat as lstat14, readdir as readdir12, readFile as readFile24 } from "fs/promises";
import { homedir as homedir19 } from "os";
-import { basename as basename11, join as join78, resolve as resolve20 } from "path";
+import { basename as basename11, join as join79, resolve as resolve20 } from "path";
// packages/omo-opencode/package.json
var package_default3 = {
name: "@oh-my-opencode/omo-opencode",
@@ -108914,13 +109166,13 @@ var CODEX_BIN_NAMES = [
"omo-git-bash-hook"
];
async function gatherCodexSummary(deps = {}) {
- const codexHome = resolve20(deps.codexHome ?? process.env.CODEX_HOME ?? join78(homedir19(), ".codex"));
+ const codexHome = resolve20(deps.codexHome ?? process.env.CODEX_HOME ?? join79(homedir19(), ".codex"));
const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });
const detection = await (deps.detectCodexInstallation ?? detectCodexInstallation)();
const pluginRoot = await resolveInstalledPluginRoot(codexHome);
- const manifest2 = pluginRoot === null ? null : await readJson(join78(pluginRoot, ".codex-plugin", "plugin.json"));
- const installSnapshot = pluginRoot === null ? null : await readJson(join78(pluginRoot, "lazycodex-install.json"));
- const configPath = join78(codexHome, "config.toml");
+ const manifest2 = pluginRoot === null ? null : await readJson(join79(pluginRoot, ".codex-plugin", "plugin.json"));
+ const installSnapshot = pluginRoot === null ? null : await readJson(join79(pluginRoot, "lazycodex-install.json"));
+ const configPath = join79(codexHome, "config.toml");
const pluginVersion = stringField(manifest2, "version");
return {
codexPath: detection.found && "path" in detection ? detection.path : null,
@@ -108977,7 +109229,7 @@ function buildCodexIssues(summary) {
if (summary.pluginRoot === null) {
issues.push({
title: "OMO Codex plugin is not installed",
- description: `Expected cached plugin at ${join78("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,
+ description: `Expected cached plugin at ${join79("plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2, DEFAULT_PLUGIN_VERSION)} under CODEX_HOME.`,
fix: "Run: npx lazycodex-ai install",
severity: "error",
affects: ["plugin loading"]
@@ -109042,15 +109294,15 @@ function buildCodexIssues(summary) {
return issues;
}
async function resolveInstalledPluginRoot(codexHome) {
- const pluginRoot = join78(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);
- if (!existsSync55(pluginRoot))
+ const pluginRoot = join79(codexHome, "plugins", "cache", MARKETPLACE_NAME, PLUGIN_NAME2);
+ if (!existsSync56(pluginRoot))
return null;
const versions2 = await readdir12(pluginRoot, { withFileTypes: true });
const candidates = versions2.filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort(compareVersionsDescending);
- return candidates.length === 0 ? null : join78(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);
+ return candidates.length === 0 ? null : join79(pluginRoot, candidates[0] ?? DEFAULT_PLUGIN_VERSION);
}
async function readCodexConfigSummary(configPath) {
- if (!existsSync55(configPath)) {
+ if (!existsSync56(configPath)) {
return {
exists: false,
marketplaceConfigured: false,
@@ -109075,14 +109327,14 @@ async function readCodexConfigSummary(configPath) {
async function readLinkedBins(binDir) {
const linked = [];
for (const name of CODEX_BIN_NAMES) {
- if (await pathExists2(join78(binDir, process.platform === "win32" ? `${name}.cmd` : name)))
+ if (await pathExists2(join79(binDir, process.platform === "win32" ? `${name}.cmd` : name)))
linked.push(name);
}
return linked;
}
async function readLinkedAgents(codexHome) {
- const agentsDir = join78(codexHome, "agents");
- if (!existsSync55(agentsDir))
+ const agentsDir = join79(codexHome, "agents");
+ if (!existsSync56(agentsDir))
return [];
const entries = await readdir12(agentsDir, { withFileTypes: true });
return entries.filter((entry) => entry.isFile() || entry.isSymbolicLink()).map((entry) => basename11(entry.name, ".toml")).sort();
@@ -109197,7 +109449,7 @@ async function pathExists2(path14) {
init_src2();
import { readdir as readdir13, readFile as readFile25, stat as stat6 } from "fs/promises";
import { homedir as homedir20 } from "os";
-import { dirname as dirname29, isAbsolute as isAbsolute12, join as join79, relative as relative10, resolve as resolve21, sep as sep9 } from "path";
+import { dirname as dirname29, isAbsolute as isAbsolute11, join as join80, relative as relative9, resolve as resolve21, 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";
@@ -109207,7 +109459,7 @@ async function checkCodexComponents(deps = {}) {
const env3 = deps.env ?? process.env;
const platform = deps.platform ?? process.platform;
const arch = deps.arch ?? process.arch;
- const codexHome = resolve21(deps.codexHome ?? env3["CODEX_HOME"] ?? join79(homedir20(), ".codex"));
+ const codexHome = resolve21(deps.codexHome ?? env3["CODEX_HOME"] ?? join80(homedir20(), ".codex"));
const summary = await gatherCodexSummary({ ...deps, codexHome });
if (summary.pluginRoot === null) {
return {
@@ -109232,7 +109484,7 @@ async function checkCodexComponents(deps = {}) {
});
}
const runtimeSgDir = runtimeSgDirectory(codexHome, platform, arch);
- const runtimeSgPath = join79(runtimeSgDir, sgBinaryName(platform));
+ const runtimeSgPath = join80(runtimeSgDir, sgBinaryName(platform));
const sg = findSgBinarySync({
arch,
env: env3,
@@ -109269,12 +109521,12 @@ async function auditBundleTargets(pluginRoot) {
let referencedCount = 0;
for (const manifestPath of await findManifestPaths(pluginRoot, ".mcp.json")) {
const manifest2 = await readJson2(manifestPath);
- if (manifest2 === null || !isRecord6(manifest2["mcpServers"]))
+ if (manifest2 === null || !isRecord11(manifest2["mcpServers"]))
continue;
const manifestRoot = dirname29(manifestPath);
const isRootManifest = resolve21(manifestRoot) === resolve21(pluginRoot);
for (const server2 of Object.values(manifest2["mcpServers"])) {
- if (!isRecord6(server2) || !Array.isArray(server2["args"]))
+ if (!isRecord11(server2) || !Array.isArray(server2["args"]))
continue;
for (const arg of server2["args"]) {
if (typeof arg !== "string" || !isPluginRuntimePathArg(arg))
@@ -109344,7 +109596,7 @@ async function findManifestPaths(root, manifestName) {
for (const entry of entries) {
if (entry.name === "node_modules" || entry.name === ".git")
continue;
- const entryPath = join79(root, entry.name);
+ const entryPath = join80(root, entry.name);
if (entry.isDirectory()) {
paths3.push(...await findManifestPaths(entryPath, manifestName));
continue;
@@ -109360,7 +109612,7 @@ function collectHookCommands(value, commands2) {
collectHookCommands(item, commands2);
return;
}
- if (!isRecord6(value))
+ if (!isRecord11(value))
return;
if (value["type"] === "command") {
if (typeof value["command"] === "string")
@@ -109385,21 +109637,21 @@ function extractPluginRootPaths(command) {
}
function isPluginRuntimePathArg(arg) {
const normalized = normalizePathSeparators(arg);
- return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute12(arg));
+ return normalized.endsWith(".js") && normalized.includes("/dist/") && (normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("components/") || normalized.startsWith("/") || isAbsolute11(arg));
}
function runtimeSgDirectory(codexHome, platform, arch) {
- return join79(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));
+ return join80(codexHome, "runtime", "ast-grep", runtimeSlug(platform, arch));
}
function describeSgSource(sgPath, env3, runtimeSgDir, platform) {
const override = env3[SG_PATH_ENV_KEY]?.trim();
if (override !== undefined && override.length > 0 && sgPath === override)
return `env override ${SG_PATH_ENV_KEY}`;
- if (sgPath === join79(runtimeSgDir, sgBinaryName(platform)))
+ if (sgPath === join80(runtimeSgDir, sgBinaryName(platform)))
return "runtime dir";
return "PATH";
}
async function readBootstrapStateSummary(codexHome) {
- const statePath = join79(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");
+ const statePath = join80(codexHome, "plugins", "data", PLUGIN_DATA_DIR_NAME, "bootstrap", "state.json");
const raw = await readJson2(statePath);
if (raw === null)
return null;
@@ -109415,7 +109667,7 @@ function parseDegradedEntries(value) {
return [];
const entries = [];
for (const item of value) {
- if (!isRecord6(item))
+ if (!isRecord11(item))
continue;
if (typeof item["component"] !== "string" || typeof item["reason"] !== "string")
continue;
@@ -109449,7 +109701,7 @@ function degradedDetailLines(entries) {
async function readJson2(path14) {
try {
const parsed = JSON.parse(await readFile25(path14, "utf8"));
- return isRecord6(parsed) ? parsed : null;
+ return isRecord11(parsed) ? parsed : null;
} catch (error51) {
if (error51 instanceof Error)
return null;
@@ -109465,33 +109717,33 @@ async function fileSize(path14) {
}
}
function normalizeRelative(root, target) {
- return normalizePathSeparators(relative10(root, target));
+ return normalizePathSeparators(relative9(root, target));
}
function normalizePathSeparators(path14) {
return path14.split("\\").join("/");
}
-function isRecord6(value) {
+function isRecord11(value) {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
// packages/omo-opencode/src/cli/doctor/checks/codex-runtime-wrapper.ts
-import { existsSync as existsSync56 } from "fs";
+import { existsSync as existsSync57 } from "fs";
import { readFile as readFile26 } from "fs/promises";
import { homedir as homedir21 } from "os";
-import { join as join80, resolve as resolve22 } from "path";
+import { join as join81, resolve as resolve22 } 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 = resolve22(deps.codexHome ?? process.env.CODEX_HOME ?? join80(homedir21(), ".codex"));
+ const codexHome = resolve22(deps.codexHome ?? process.env.CODEX_HOME ?? join81(homedir21(), ".codex"));
const binDir = resolveCodexInstallerBinDir({ binDir: deps.binDir, codexHome, env: process.env });
const platform = deps.platform ?? process.platform;
- const wrapperPath = join80(binDir, platform === "win32" ? "omo.cmd" : "omo");
+ const wrapperPath = join81(binDir, platform === "win32" ? "omo.cmd" : "omo");
const wrapper = await readRuntimeWrapper(wrapperPath);
const issues = [];
if (wrapper?.includes(RUNTIME_WRAPPER_MARKER2) === true) {
const targetPath = parseRuntimeTargetPath(wrapper);
- if (targetPath !== null && !existsSync56(targetPath)) {
+ if (targetPath !== null && !existsSync57(targetPath)) {
issues.push({
title: "omo runtime wrapper target is missing",
description: `Generated omo runtime wrapper at ${wrapperPath} points to missing target ${targetPath}.`,
@@ -109544,6 +109796,11 @@ function getAllCheckDefinitions() {
name: CHECK_NAMES[CHECK_IDS.TUI_PLUGIN],
check: checkTuiPluginConfig
},
+ {
+ id: "deprecated-reasoning-keys",
+ name: "Deprecated Reasoning Keys",
+ check: checkDeprecatedReasoningKeys
+ },
{
id: CHECK_IDS.TOOLS,
name: CHECK_NAMES[CHECK_IDS.TOOLS],
@@ -109990,23 +110247,23 @@ Doctor failed unexpectedly: ${message}`];
import { createHash as createHash5 } from "crypto";
import {
chmodSync as chmodSync4,
- existsSync as existsSync59,
+ existsSync as existsSync60,
mkdirSync as mkdirSync14,
readdirSync as readdirSync11,
- readFileSync as readFileSync37,
+ readFileSync as readFileSync38,
renameSync as renameSync7,
unlinkSync as unlinkSync9,
writeFileSync as writeFileSync11
} from "fs";
-import { basename as basename12, dirname as dirname30, join as join83 } from "path";
+import { basename as basename12, dirname as dirname30, join as join84 } from "path";
// packages/mcp-client-core/src/config-dir.ts
-import { existsSync as existsSync57, realpathSync as realpathSync8 } from "fs";
+import { existsSync as existsSync58, realpathSync as realpathSync8 } from "fs";
import { homedir as homedir22 } from "os";
-import { join as join81, resolve as resolve23 } from "path";
+import { join as join82, resolve as resolve23 } from "path";
function resolveConfigPath2(pathValue) {
const resolvedPath = resolve23(pathValue);
- if (!existsSync57(resolvedPath))
+ if (!existsSync58(resolvedPath))
return resolvedPath;
try {
return realpathSync8(resolvedPath);
@@ -110021,13 +110278,13 @@ function getOpenCodeCliConfigDir(env3 = process.env) {
if (customConfigDir) {
return resolveConfigPath2(customConfigDir);
}
- const xdgConfigDir = env3["XDG_CONFIG_HOME"]?.trim() || join81(homedir22(), ".config");
- return resolveConfigPath2(join81(xdgConfigDir, "opencode"));
+ const xdgConfigDir = env3["XDG_CONFIG_HOME"]?.trim() || join82(homedir22(), ".config");
+ return resolveConfigPath2(join82(xdgConfigDir, "opencode"));
}
// packages/mcp-client-core/src/mcp-oauth/storage-index.ts
-import { chmodSync as chmodSync3, existsSync as existsSync58, readFileSync as readFileSync36, renameSync as renameSync6, writeFileSync as writeFileSync10 } from "fs";
-import { join as join82 } from "path";
+import { chmodSync as chmodSync3, existsSync as existsSync59, readFileSync as readFileSync37, renameSync as renameSync6, writeFileSync as writeFileSync10 } from "fs";
+import { join as join83 } from "path";
var INDEX_FILE_NAME = "index.json";
function isTokenIndex(value) {
if (typeof value !== "object" || value === null || Array.isArray(value))
@@ -110035,14 +110292,14 @@ function isTokenIndex(value) {
return Object.values(value).every((entry) => typeof entry === "string");
}
function getIndexPath(storageDir) {
- return join82(storageDir, INDEX_FILE_NAME);
+ return join83(storageDir, INDEX_FILE_NAME);
}
function readTokenIndex(storageDir) {
const indexPath = getIndexPath(storageDir);
- if (!existsSync58(indexPath))
+ if (!existsSync59(indexPath))
return {};
try {
- const parsed = JSON.parse(readFileSync36(indexPath, "utf-8"));
+ const parsed = JSON.parse(readFileSync37(indexPath, "utf-8"));
return isTokenIndex(parsed) ? parsed : {};
} catch (readError) {
if (!(readError instanceof Error))
@@ -110079,16 +110336,16 @@ function deleteTokenIndexEntry(storageDir, hash2) {
var STORAGE_DIR_NAME = "mcp-oauth";
var LEGACY_STORAGE_FILE_NAME = "mcp-oauth.json";
function getMcpOauthStorageDir() {
- return join83(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);
+ return join84(getOpenCodeCliConfigDir(), STORAGE_DIR_NAME);
}
function getMcpOauthServerHash(serverHost, resource) {
return createHash5("sha256").update(buildKey(serverHost, resource)).digest("hex").slice(0, 32);
}
function getMcpOauthStoragePath(serverHost, resource) {
- return join83(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);
+ return join84(getMcpOauthStorageDir(), `${getMcpOauthServerHash(serverHost, resource)}.json`);
}
function getLegacyStoragePath() {
- return join83(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);
+ return join84(getOpenCodeCliConfigDir(), LEGACY_STORAGE_FILE_NAME);
}
function normalizeHost2(serverHost) {
let host = serverHost.trim();
@@ -110149,10 +110406,10 @@ function isOAuthTokenData(value) {
return clientSecret === undefined || typeof clientSecret === "string";
}
function readTokenFile(filePath) {
- if (!existsSync59(filePath))
+ if (!existsSync60(filePath))
return null;
try {
- const parsed = JSON.parse(readFileSync37(filePath, "utf-8"));
+ const parsed = JSON.parse(readFileSync38(filePath, "utf-8"));
return isOAuthTokenData(parsed) ? parsed : null;
} catch (readError) {
if (!(readError instanceof Error))
@@ -110162,10 +110419,10 @@ function readTokenFile(filePath) {
}
function readLegacyStore() {
const filePath = getLegacyStoragePath();
- if (!existsSync59(filePath))
+ if (!existsSync60(filePath))
return null;
try {
- const parsed = JSON.parse(readFileSync37(filePath, "utf-8"));
+ const parsed = JSON.parse(readFileSync38(filePath, "utf-8"));
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
return null;
const result = {};
@@ -110183,7 +110440,7 @@ function readLegacyStore() {
function writeTokenFile(filePath, token) {
try {
const dir = dirname30(filePath);
- if (!existsSync59(dir)) {
+ if (!existsSync60(dir)) {
mkdirSync14(dir, { recursive: true });
}
const tempPath = `${filePath}.tmp.${Date.now()}`;
@@ -110207,7 +110464,7 @@ function saveToken(serverHost, resource, token) {
}
function deleteToken(serverHost, resource) {
const filePath = getMcpOauthStoragePath(serverHost, resource);
- if (!existsSync59(filePath))
+ if (!existsSync60(filePath))
return deleteLegacyToken(serverHost, resource);
try {
unlinkSync9(filePath);
@@ -110229,7 +110486,7 @@ function deleteLegacyToken(serverHost, resource) {
if (Object.keys(store2).length === 0) {
try {
const filePath = getLegacyStoragePath();
- if (existsSync59(filePath))
+ if (existsSync60(filePath))
unlinkSync9(filePath);
return true;
} catch (deleteError) {
@@ -110267,7 +110524,7 @@ function listTokensByHost(serverHost) {
for (const [hash2, indexedKey] of Object.entries(index)) {
if (!indexedKey.startsWith(prefix))
continue;
- const indexedToken = readTokenFile(join83(getMcpOauthStorageDir(), `${hash2}.json`));
+ const indexedToken = readTokenFile(join84(getMcpOauthStorageDir(), `${hash2}.json`));
if (indexedToken)
result[indexedKey] = indexedToken;
}
@@ -110276,13 +110533,13 @@ function listTokensByHost(serverHost) {
function listAllTokens() {
const result = { ...readLegacyStore() ?? {} };
const dir = getMcpOauthStorageDir();
- if (!existsSync59(dir))
+ if (!existsSync60(dir))
return result;
const index = readTokenIndex(dir);
for (const entry of readdirSync11(dir, { withFileTypes: true })) {
if (!entry.isFile() || !entry.name.endsWith(".json") || entry.name === "index.json")
continue;
- const token = readTokenFile(join83(dir, entry.name));
+ const token = readTokenFile(join84(dir, entry.name));
const hash2 = basename12(entry.name, ".json");
if (token)
result[index[hash2] ?? hash2] = token;
@@ -110848,7 +111105,7 @@ function createMcpOAuthCommand() {
}
// packages/omo-opencode/src/cli/boulder/boulder.ts
-import { existsSync as existsSync60 } from "fs";
+import { existsSync as existsSync61 } from "fs";
// packages/omo-opencode/src/cli/boulder/formatter.ts
var import_picocolors22 = __toESM(require_picocolors(), 1);
@@ -110985,10 +111242,10 @@ async function boulder(options) {
const boulderFilePath = getBoulderFilePath(directory);
const state2 = readBoulderState(directory);
if (!state2) {
- const message = existsSync60(boulderFilePath) ? formatReadErrorMessage(options.json) : formatNoBoulderMessage(options.json);
+ const message = existsSync61(boulderFilePath) ? formatReadErrorMessage(options.json) : formatNoBoulderMessage(options.json);
process.stderr.write(`${message}
`);
- return existsSync60(boulderFilePath) ? 2 : 1;
+ return existsSync61(boulderFilePath) ? 2 : 1;
}
const works = getBoulderWorks(state2);
const filteredWorks = options.workId ? works.filter((work) => work.work_id === options.workId) : works;
@@ -111006,7 +111263,7 @@ async function boulder(options) {
}
// packages/omo-opencode/src/cli/codex-ulw-loop.ts
import { spawn as spawn5 } from "child_process";
-import { existsSync as existsSync61, readFileSync as readFileSync38, realpathSync as realpathSync9 } from "fs";
+import { existsSync as existsSync62, readFileSync as readFileSync39, realpathSync as realpathSync9 } from "fs";
import { homedir as homedir23 } from "os";
var ULW_LOOP_DELEGATION_SENTINEL = "OMO_ULW_LOOP_DELEGATED";
function resolveCodexUlwLoopCommand(input = {}) {
@@ -111048,15 +111305,15 @@ async function codexUlwLoop(args) {
}
function resolveLocalUlwLoopBin(env3, homeDir) {
const candidates = resolveCodexComponentBinCandidates({ executableName: "omo-ulw-loop", env: env3, homeDir });
- return candidates.find((candidate) => existsSync61(candidate)) ?? null;
+ return candidates.find((candidate) => existsSync62(candidate)) ?? null;
}
function resolveLegacyLocalOmoBin(env3, homeDir, currentExecutablePaths) {
const candidates = resolveCodexComponentBinCandidates({ executableName: "omo", env: env3, homeDir });
- return candidates.find((candidate) => existsSync61(candidate) && !isCurrentExecutable(candidate, currentExecutablePaths) && !isGeneratedRuntimeWrapper(candidate)) ?? null;
+ return candidates.find((candidate) => existsSync62(candidate) && !isCurrentExecutable(candidate, currentExecutablePaths) && !isGeneratedRuntimeWrapper(candidate)) ?? null;
}
function isGeneratedRuntimeWrapper(candidate) {
try {
- return readFileSync38(candidate, "utf8").includes(RUNTIME_WRAPPER_MARKER);
+ return readFileSync39(candidate, "utf8").includes(RUNTIME_WRAPPER_MARKER);
} catch (error51) {
if (error51 instanceof Error)
return false;
@@ -111237,12 +111494,12 @@ Examples:
Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi > Bailian > MiniMax > Vercel):
Claude Native anthropic/ models (Opus, Sonnet, Haiku)
- OpenAI Native openai/ models (GPT-5.4 for Oracle)
+ OpenAI Native openai/ models (GPT-5.6 Sol for Oracle)
Gemini Native google/ models (Gemini 3.1 Pro, Flash)
Copilot github-copilot/ models (fallback)
- OpenCode Zen opencode/ models (opencode/claude-opus-4-7, etc.)
- Z.ai zai-coding-plan/glm-5 (visual-engineering fallback)
- Kimi kimi-for-coding/k2p5 (Sisyphus/Prometheus fallback)
+ OpenCode Zen opencode/ models (opencode/claude-opus-5, etc.)
+ Z.ai zai-coding-plan/glm-5.2 (visual-engineering fallback)
+ Kimi kimi-for-coding/kimi-k3 (Sisyphus/Prometheus fallback)
Bailian bailian-coding-plan/ models (Qwen, GLM, Kimi fallback)
MiniMax minimax-coding-plan/MiniMax-M3 (utility fallback)
MiniMax CN minimax-cn-coding-plan/MiniMax-M3 (utility fallback)
@@ -111264,7 +111521,7 @@ Examples:
$ bunx oh-my-opencode run --on-complete "notify-send Done" "Fix the bug"
$ bunx oh-my-opencode run --session-id ses_abc123 "Continue the work"
$ bunx oh-my-opencode run --model anthropic/claude-sonnet-4 "Fix the bug"
- $ bunx oh-my-opencode run --agent Sisyphus --model openai/gpt-5.5 "Implement feature X"
+ $ bunx oh-my-opencode run --agent Sisyphus --model openai/gpt-5.6-sol "Implement feature X"
Agent resolution order:
1) --agent flag
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.json
index 152c3006..72eb8e3c 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 4.19.3) Resetting Git Bash MCP Reminder",
+ "statusMessage": "(OmO 4.19.4) 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.json
index 03070f51..2387074a 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 4.19.3) Resetting LSP Diagnostics Cache",
+ "statusMessage": "(OmO 4.19.4) 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.json
index 9dba4b97..de2afc14 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 4.19.3) Resetting Project Rule Cache",
+ "statusMessage": "(OmO 4.19.4) 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-codegraph-init-guidance.json b/plugins/omo/hooks/post-tool-use-checking-codegraph-init-guidance.json
index 50b7c7c5..80314989 100644
--- a/plugins/omo/hooks/post-tool-use-checking-codegraph-init-guidance.json
+++ b/plugins/omo/hooks/post-tool-use-checking-codegraph-init-guidance.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/codegraph/dist/cli.js\" hook post-tool-use",
"timeout": 5,
- "statusMessage": "(OmO 4.19.3) Checking CodeGraph Init Guidance",
+ "statusMessage": "(OmO 4.19.4) Checking CodeGraph Init Guidance",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\codegraph\\dist\\cli.js\" hook post-tool-use"
}
],
diff --git a/plugins/omo/hooks/post-tool-use-checking-comments.json b/plugins/omo/hooks/post-tool-use-checking-comments.json
index a2529d0f..44b6c3bc 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 4.19.3) Checking Comments",
+ "statusMessage": "(OmO 4.19.4) 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.json
index f3fd26a9..3a0a8175 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 4.19.3) Checking LSP Diagnostics",
+ "statusMessage": "(OmO 4.19.4) 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.json
index 86bbc9fb..f5ea4b91 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 4.19.3) Checking Thread Title Hygiene",
+ "statusMessage": "(OmO 4.19.4) 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.json
index 7b02dec1..4eb13c72 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 4.19.3) Matching Project Rules",
+ "statusMessage": "(OmO 4.19.4) 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/pre-tool-use-enforcing-unlimited-goal-budget.json b/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json
index f9642103..7b4dd15d 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 4.19.3) Enforcing Unlimited Goal Budget",
+ "statusMessage": "(OmO 4.19.4) 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.json
index ae395d9e..85ea7bea 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 4.19.3) Guarding Ulw-Loop Spawns",
+ "statusMessage": "(OmO 4.19.4) 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.json
index b4dadd8d..87c49f8c 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 4.19.3) Recommending Git Bash MCP",
+ "statusMessage": "(OmO 4.19.4) 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.json
index 546ac28a..9cc29707 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 4.19.3) Checking Auto Update",
+ "statusMessage": "(OmO 4.19.4) 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.json
index 432341a6..0eef2def 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 4.19.3) Checking Bootstrap Provisioning"
+ "statusMessage": "(OmO 4.19.4) Checking Bootstrap Provisioning"
}
]
}
diff --git a/plugins/omo/hooks/session-start-checking-codegraph-bootstrap.json b/plugins/omo/hooks/session-start-checking-codegraph-bootstrap.json
index 0f4f6af5..9a3ece0c 100644
--- a/plugins/omo/hooks/session-start-checking-codegraph-bootstrap.json
+++ b/plugins/omo/hooks/session-start-checking-codegraph-bootstrap.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/codegraph/dist/cli.js\" hook session-start",
"timeout": 15,
- "statusMessage": "(OmO 4.19.3) Checking CodeGraph Bootstrap",
+ "statusMessage": "(OmO 4.19.4) Checking CodeGraph Bootstrap",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\codegraph\\dist\\cli.js\" hook session-start"
}
]
diff --git a/plugins/omo/hooks/session-start-loading-project-rules.json b/plugins/omo/hooks/session-start-loading-project-rules.json
index 4e7a0b71..4f6a9259 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 4.19.3) Loading Project Rules",
+ "statusMessage": "(OmO 4.19.4) 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.json
index b703c9ba..185d033e 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 4.19.3) Recording Session Telemetry",
+ "statusMessage": "(OmO 4.19.4) 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-start-work-continuation.json b/plugins/omo/hooks/stop-checking-start-work-continuation.json
index d72e79d2..ecffeafe 100644
--- a/plugins/omo/hooks/stop-checking-start-work-continuation.json
+++ b/plugins/omo/hooks/stop-checking-start-work-continuation.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/start-work-continuation/dist/cli.js\" hook stop",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Checking Start-Work Continuation",
+ "statusMessage": "(OmO 4.19.4) Checking Start-Work Continuation",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\start-work-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.json
index d08e0637..94f23568 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 4.19.3) Checking Ulw-Loop Resume",
+ "statusMessage": "(OmO 4.19.4) 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-checking-start-work-continuation.json b/plugins/omo/hooks/subagent-stop-checking-start-work-continuation.json
index d2c888a6..05f11863 100644
--- a/plugins/omo/hooks/subagent-stop-checking-start-work-continuation.json
+++ b/plugins/omo/hooks/subagent-stop-checking-start-work-continuation.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/start-work-continuation/dist/cli.js\" hook subagent-stop",
"timeout": 10,
- "statusMessage": "(OmO 4.19.3) Checking Start-Work Continuation",
+ "statusMessage": "(OmO 4.19.4) Checking Start-Work Continuation",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\start-work-continuation\\dist\\cli.js\" hook subagent-stop"
}
]
diff --git a/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json b/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json
index 173d6455..cd408583 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 4.19.3) Verifying LazyCodex Executor Evidence",
+ "statusMessage": "(OmO 4.19.4) 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.json
index d585a7fe..39915b51 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 4.19.3) Checking Ultrawork Trigger",
+ "statusMessage": "(OmO 4.19.4) 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.json
index c06b3729..306e5e3e 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 4.19.3) Checking Ulw-Loop Steering",
+ "statusMessage": "(OmO 4.19.4) 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.json
index c74f2f2f..de7f8bd9 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 4.19.3) Loading Project Rules",
+ "statusMessage": "(OmO 4.19.4) 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.json
index c5dbe70d..534da1c2 100644
--- a/plugins/omo/package-lock.json
+++ b/plugins/omo/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@sisyphuslabs/omo-codex-plugin",
- "version": "4.19.3",
+ "version": "4.19.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@sisyphuslabs/omo-codex-plugin",
- "version": "4.19.3",
+ "version": "4.19.4",
"workspaces": [
"components/codegraph",
"components/comment-checker",
@@ -101,7 +101,7 @@
},
"components/codegraph": {
"name": "@sisyphuslabs/codex-codegraph",
- "version": "4.19.3",
+ "version": "4.19.4",
"bin": {
"omo-codegraph": "dist/cli.js"
},
@@ -120,7 +120,7 @@
},
"components/comment-checker": {
"name": "@code-yeongyu/codex-comment-checker",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"bin": {
"omo-comment-checker": "dist/cli.js"
@@ -141,7 +141,7 @@
},
"components/git-bash": {
"name": "@sisyphuslabs/codex-git-bash-hook",
- "version": "4.19.3",
+ "version": "4.19.4",
"bin": {
"omo-git-bash-hook": "dist/cli.js"
},
@@ -156,7 +156,7 @@
},
"components/lazycodex-executor-verify": {
"name": "@code-yeongyu/codex-lazycodex-executor-verify",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"bin": {
"lazycodex-executor-verify": "dist/cli.js"
@@ -173,7 +173,7 @@
},
"components/lsp": {
"name": "@code-yeongyu/codex-lsp",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"dependencies": {
"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon",
@@ -194,7 +194,7 @@
},
"components/rules": {
"name": "@code-yeongyu/codex-rules",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"dependencies": {
"picomatch": "^4.0.3"
@@ -216,7 +216,7 @@
},
"components/start-work-continuation": {
"name": "@code-yeongyu/codex-start-work-continuation",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"bin": {
"omo-start-work-continuation": "dist/cli.js"
@@ -233,7 +233,7 @@
},
"components/teammode": {
"name": "@sisyphuslabs/codex-teammode",
- "version": "4.19.3",
+ "version": "4.19.4",
"devDependencies": {
"@types/node": "^25.9.3",
"bun-types": "^1.3.1",
@@ -246,7 +246,7 @@
},
"components/telemetry": {
"name": "@code-yeongyu/codex-telemetry",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"bin": {
"omo-telemetry": "dist/cli.js"
@@ -264,7 +264,7 @@
},
"components/ultrawork": {
"name": "@code-yeongyu/codex-ultrawork",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"bin": {
"omo-ultrawork": "dist/cli.js"
@@ -282,7 +282,7 @@
},
"components/ulw-loop": {
"name": "@code-yeongyu/codex-ulw-loop",
- "version": "4.19.3",
+ "version": "4.19.4",
"license": "MIT",
"bin": {
"omo-ulw-loop": "dist/cli.js",
diff --git a/plugins/omo/package.json b/plugins/omo/package.json
index f3cbe5ae..b45ea70a 100644
--- a/plugins/omo/package.json
+++ b/plugins/omo/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/omo-codex-plugin",
- "version": "4.19.3",
+ "version": "4.19.4",
"description": "Aggregate Codex plugin root for OMO components.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/scripts/sync-skills.mjs b/plugins/omo/scripts/sync-skills.mjs
index 5b581471..9ad97eb6 100644
--- a/plugins/omo/scripts/sync-skills.mjs
+++ b/plugins/omo/scripts/sync-skills.mjs
@@ -183,7 +183,13 @@ private logs, or PII; summarize with lengths, hashes, and short non-sensitive
prefixes when identity is needed.
`;
+const ulwResearchOriginalDeliveryGates = "### The delivery gates \u2014 every gate must PASS, in order\n\nNothing reaches the user until the gates pass:\n\n1. **Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, clipped tables, overflowing CJK text, blank pages, unreadable chart labels, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.\n2. **Proofread gate \u2014 `task(category=\"writing\", ...)`.** Hand the final text to a dedicated `writing` worker whose only job is language: grammar, spelling, punctuation, terminology consistency, and whether the prose reads NATIVELY in the report's own language. It returns a defect list; fix every item and re-run the gate on the delta. Deliver only on a clean pass \u2014 this gate runs BEFORE the first delivery, not after the user finds the typo.";
+const ulwResearchCodexDeliveryGate = "### The delivery gate \u2014 visual QA must PASS\n\nNothing reaches the user until the gate passes:\n\n**Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, clipped tables, overflowing CJK text, blank pages, unreadable chart labels, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.";
+
function applyCodexSkillOverlays(skillName, content) {
+ if (skillName === "ulw-research") {
+ return content.replace(ulwResearchOriginalDeliveryGates, ulwResearchCodexDeliveryGate);
+ }
if (skillName === "start-work") {
return content
.replace(startWorkOriginalCompletion, startWorkCodexCompletion)
diff --git a/plugins/omo/skills/coding-agent-sessions/SKILL.md b/plugins/omo/skills/coding-agent-sessions/SKILL.md
index c170bbb0..768e06f4 100644
--- a/plugins/omo/skills/coding-agent-sessions/SKILL.md
+++ b/plugins/omo/skills/coding-agent-sessions/SKILL.md
@@ -1,6 +1,6 @@
---
name: coding-agent-sessions
-description: "MUST USE when asked to find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across Codex, Claude Code/Desktop, OpenCode, Senpi/pi, oh-my-pi (omp), gajae-code (gjc), OpenClaw, Factory Droid, Amp, Gemini/Kimi/Qwen CLIs, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, or unknown local agent logs. Covers transcripts, session IDs, rollout JSONL, state SQLite, Claude projects/pre-compact histories, OpenCode messages/parts, child/subagent linkage, cwd/model/time/token filters, archives, and cost clues. Expands fuzzy recall into parallel query lanes and first probes known stores so absent platforms are skipped cheaply. Triggers: coding agent sessions, Codex/Claude/OpenCode/Senpi/pi/oh-my-pi/omp/gajae-code/gjc/OpenClaw/Droid/Amp/Kodu/Cursor/Aider sessions, transcript search, session history, session ID, read transcript, token usage, subagent sessions, what did I do yesterday, did we already do this."
+description: "MUST USE when asked to find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across Codex, Claude Code/Desktop, OpenCode, Senpi/pi, oh-my-pi (omp), gajae-code (gjc), OpenClaw, Factory Droid, Amp, Gemini/Kimi/Qwen CLIs, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Aside browser-agent sessions, or unknown local agent logs. Covers transcripts, session IDs, rollout JSONL, state SQLite, Claude projects/pre-compact histories, OpenCode messages/parts, child/subagent linkage, cwd/model/time/token filters, archives, and cost clues. Expands fuzzy recall into parallel query lanes and first probes known stores so absent platforms are skipped cheaply. Triggers: coding agent sessions, Codex/Claude/OpenCode/Senpi/pi/oh-my-pi/omp/gajae-code/gjc/OpenClaw/Droid/Amp/Kodu/Cursor/Aider/Aside sessions, transcript search, session history, session ID, read transcript, token usage, subagent sessions, what did I do yesterday, did we already do this."
---
# Coding Agent Sessions
@@ -18,7 +18,7 @@ Find local coding-agent sessions across agent products before answering from mem
| Senpi / pi coding-agent logs | `references/senpi.md` |
| oh-my-pi (`omp`, `~/.omp`) and gajae-code (`gjc`, `~/.gjc`) logs | `references/senpi.md` |
| OpenCode / oh-my-openagent (formerly oh-my-opencode) storage | `references/opencode.md` |
- | OpenClaw, Droid, Amp, Gemini, Kimi, Qwen, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Kiro, Goose, Hermes, Crush, Zed | `references/all-platforms.md` |
+ | OpenClaw, Droid, Amp, Gemini, Kimi, Qwen, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Kiro, Goose, Hermes, Crush, Zed, Aside | `references/all-platforms.md` |
| Unknown / "any session" / cross-agent search | `references/all-platforms.md` |
2. **Run the broad finder first unless the user gave an exact file path. For fuzzy recall, expand the query first.**
@@ -51,7 +51,7 @@ The finder prints JSON for stdout and `jq`. Every result includes:
| Field | Meaning |
|---|---|
-| `platform` | Registered platform key such as `codex`, `claude`, `senpi`, `oh-my-pi`, `gajae-code`, `opencode`, `openclaw`, `droid`, `amp`, `kodu`, `cursor-cli`, `aider`, `roo-code`, `kilo-code`, `kilo-cli`, or `kiro` |
+| `platform` | Registered platform key such as `codex`, `claude`, `senpi`, `oh-my-pi`, `gajae-code`, `opencode`, `openclaw`, `droid`, `amp`, `kodu`, `cursor-cli`, `aider`, `roo-code`, `kilo-code`, `kilo-cli`, `kiro`, or `aside` |
| `id` | Session ID or stable file-derived ID |
| `path` | Raw transcript/index file |
| `cwd` | Working directory when recoverable |
@@ -122,6 +122,7 @@ Use `references/codex.md` for Codex storage details.
| Missing oh-my-pi / gajae-code sessions | Those stores live in `~/.omp/agent/sessions` and `~/.gjc/agent/sessions`. For a custom `PI_CONFIG_DIR` / `PI_CODING_AGENT_DIR`, pass that agent dir with `--root`. |
| Missing OpenCode sessions | Pass the data dir that contains `messages/` and `parts/`, often `~/.opencode` or `~/.local/share/opencode`. |
| Missing Claude sessions | Search `~/.claude/projects`, `~/.claude/transcripts`, and `~/.claude/pre-compact-session-histories`; use `--root` for nonstandard config dirs. |
+| Missing Aside sessions | The Aside browser agent stores per-user data under `~/.aside/u/<n>/` (`sessions/<date>_<id>/messages.jsonl` transcripts + a `state.db` index; `agents/*/sessions/` is just a hardlink mirror). Pass `--root` for a nonstandard `.aside` dir or an exported user dir. |
| Missing optional platform sessions | Check `references/all-platforms.md` for the exact local store. For project-local tools such as Aider, pass `--root /path/to/workspace` if the repo is outside the bounded default roots. |
| Date filter misses local sessions | Timestamps are compared as UTC instants when parseable; otherwise file mtime is used. |
| Search is slow | Narrow with repeated `--platform` flags or date/cwd filters. Optional stores are probed before parsing; avoid passing your whole home as `--root` unless you really want every bounded project-local scan. |
diff --git a/plugins/omo/skills/coding-agent-sessions/references/all-platforms.md b/plugins/omo/skills/coding-agent-sessions/references/all-platforms.md
index 2e0a8c5b..93f23337 100644
--- a/plugins/omo/skills/coding-agent-sessions/references/all-platforms.md
+++ b/plugins/omo/skills/coding-agent-sessions/references/all-platforms.md
@@ -4,7 +4,7 @@
Search these first, then add user-supplied roots with `--root`:
-Registered platform keys: `codex`, `claude`, `senpi`, `oh-my-pi`, `gajae-code`, `opencode`, `openclaw`, `droid`, `amp`, `gemini`, `kimi`, `qwen`, `codebuff`, `roo-code`, `kilo-code`, `cline`, `kodu`, `cursor-cli`, `aider`, `kilo-cli`, `hermes`, `goose`, `crush`, `zed`, `kiro`.
+Registered platform keys: `codex`, `claude`, `senpi`, `oh-my-pi`, `gajae-code`, `opencode`, `openclaw`, `droid`, `amp`, `gemini`, `kimi`, `qwen`, `codebuff`, `roo-code`, `kilo-code`, `cline`, `kodu`, `cursor-cli`, `aider`, `kilo-cli`, `hermes`, `goose`, `crush`, `zed`, `kiro`, `aside`.
| Platform | Unix/macOS | Windows |
|---|---|---|
@@ -25,6 +25,7 @@ Registered platform keys: `codex`, `claude`, `senpi`, `oh-my-pi`, `gajae-code`,
| Aider | bounded project roots containing `.aider.chat.history.md`; use `--root` for other repos | pass `--root` |
| Kilo CLI (`kilo-cli`) / Hermes / Goose / Crush / Zed | Known SQLite roots are probed cheaply; unsupported schemas return empty | pass `--root` |
| Kiro | `~/.kiro/sessions/cli/*.json` plus paired `*.jsonl` prompt events | pass `--root` |
+| Aside (browser agent) | `~/.aside/u/*/sessions/<date>_<id>/messages.jsonl`, joined with the per-user `state.db` `sessions` table (title, parent_id, cwd, model, timestamps). `~/.aside/u/*/agents/*/sessions/` is a hardlink mirror of `sessions/` and is intentionally not scanned | pass `--root` |
## Excluded usage-only sources
@@ -52,6 +53,7 @@ Do not add these as default transcript platforms without a separate prompt-recon
| Claude | `projects/<proj>/<sid>/subagents/**/agent-<agentId>.jsonl` | directory `<sid>` | `agent-*.meta.json` `agentType` |
| Codex | thread row + own rollout JSONL | `thread_spawn_edges` / `source.subagent.thread_spawn.parent_thread_id` | `agent_nickname (agent_role)` |
| OpenCode | `session` table row / `storage/session/**.json` | `parent_id` column / `parentID` field | `agent` column |
+| Aside | own `sessions/<date>_<id>/messages.jsonl` transcript | `parent_id` column in `state.db` `sessions` | child session's `title` column (task description) |
## Parallelism
diff --git a/plugins/omo/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py b/plugins/omo/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py
new file mode 100644
index 00000000..358a0452
--- /dev/null
+++ b/plugins/omo/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py
@@ -0,0 +1,140 @@
+from __future__ import annotations
+
+import sqlite3
+from dataclasses import dataclass
+from pathlib import Path
+from typing import TypeAlias
+
+from .jsonio import as_map, iter_jsonl, parse_json_text, text
+from .timeparse import file_time, unix_millis, unix_seconds
+from .transcript import content_text, existing, flat_parallel, merge_usage, recent
+from .types import JsonMap, Session
+
+SqlValue: TypeAlias = str | int | float | bytes | None
+SqlRow: TypeAlias = tuple[SqlValue, ...]
+
+
+@dataclass(frozen=True, slots=True)
+class _StateRow:
+ parent_id: str | None
+ title: str | None
+ cwd: str | None
+ provider: str | None
+ model: str | None
+ created_at: str | None
+ updated_at: str | None
+
+
+def scan_aside(extra_roots: tuple[Path, ...], workers: int) -> list[Session]:
+ roots = _roots([Path.home() / ".aside"], extra_roots, (".aside",))
+ sessions: list[Session] = []
+ for user_dir in _user_dirs(roots):
+ index = _state_index(user_dir / "state.db")
+ paths = list((user_dir / "sessions").glob("*/messages.jsonl"))
+ sessions.extend(flat_parallel(recent(paths), workers, lambda path, rows=index: [_aside_session(path, rows)]))
+ return sessions
+
+
+def _user_dirs(roots: list[Path]) -> list[Path]:
+ dirs: list[Path] = []
+ for root in roots:
+ users = sorted(path for path in (root / "u").glob("*") if path.is_dir())
+ if users:
+ dirs.extend(users)
+ elif (root / "sessions").exists():
+ dirs.append(root)
+ return dirs
+
+
+def _state_index(db_path: Path) -> dict[str, _StateRow]:
+ if not db_path.exists():
+ return {}
+ try:
+ with sqlite3.connect(f"file:{db_path}?mode=ro", uri=True) as conn:
+ rows: list[SqlRow] = conn.execute("select id, parent_id, title, cwd, model, created_at, updated_at from sessions").fetchall()
+ except sqlite3.Error:
+ return {}
+ index: dict[str, _StateRow] = {}
+ for row in rows:
+ sid = _cell_text(row, 0)
+ if sid is None:
+ continue
+ provider, model = _model_fields(_cell_text(row, 4))
+ index[sid] = _StateRow(
+ _cell_text(row, 1),
+ _cell_text(row, 2),
+ _cell_text(row, 3),
+ provider,
+ model,
+ unix_seconds(_cell_number(row, 5)),
+ unix_seconds(_cell_number(row, 6)),
+ )
+ return index
+
+
+def _cell_text(row: SqlRow, index: int) -> str | None:
+ value = row[index] if index < len(row) else None
+ return value if isinstance(value, str) else None
+
+
+def _cell_number(row: SqlRow, index: int) -> int | float | None:
+ value = row[index] if index < len(row) else None
+ return value if isinstance(value, int | float) else None
+
+
+def _model_fields(model_json: str | None) -> tuple[str | None, str | None]:
+ data = as_map(parse_json_text(model_json)) if model_json else None
+ if data is None:
+ return None, None
+ return text(data.get("provider")), text(data.get("modelId")) or text(data.get("model"))
+
+
+def _aside_session(path: Path, index: dict[str, _StateRow]) -> Session:
+ sid = _dir_session_id(path.parent.name)
+ row = index.get(sid)
+ first_user = last_user = ""
+ provider = model = None
+ created = updated = None
+ usage: JsonMap = {}
+ for data in iter_jsonl(path):
+ stamp = data.get("timestamp")
+ moment = unix_millis(int(stamp)) if isinstance(stamp, int | float) else None
+ created = created or moment
+ updated = moment or updated
+ role = text(data.get("role"))
+ if role == "user":
+ prompt = content_text(data.get("content"))
+ if prompt:
+ first_user = first_user or prompt
+ last_user = prompt
+ elif role == "assistant":
+ provider = provider or text(data.get("provider"))
+ model = model or text(data.get("model"))
+ merge_usage(usage, as_map(data.get("usage")))
+ return Session(
+ "aside",
+ sid,
+ str(path),
+ row.cwd if row is not None else None,
+ (row.created_at if row is not None else None) or created or file_time(path),
+ (row.updated_at if row is not None else None) or updated or created or file_time(path),
+ (row.provider if row is not None else None) or provider,
+ (row.model if row is not None else None) or model,
+ first_user,
+ usage,
+ row.parent_id if row is not None else None,
+ row.title if row is not None and row.parent_id is not None else None,
+ last_user,
+ )
+
+
+def _dir_session_id(name: str) -> str:
+ return name.split("_", 1)[-1]
+
+
+def _roots(defaults: list[Path], extra_roots: tuple[Path, ...], children: tuple[str, ...]) -> list[Path]:
+ candidates = [*defaults]
+ for root in extra_roots:
+ candidates.append(root)
+ candidates.extend(root / child for child in children)
+ return existing(candidates)
diff --git a/plugins/omo/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py b/plugins/omo/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py
index 9fdb573f..6a29b582 100644
--- a/plugins/omo/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py
+++ b/plugins/omo/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py
@@ -4,6 +4,7 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
from pathlib import Path
from typing import Callable, TypeAlias
+from .aside_scanner import scan_aside
from .claude import scan_claude
from .codex import scan_codex
from .file_scanners import (
@@ -54,6 +55,7 @@ PLATFORM_SCANNERS: dict[str, Scanner] = {
"crush": scan_crush,
"zed": scan_zed,
"kiro": scan_kiro,
+ "aside": scan_aside,
}
DEFAULT_PLATFORMS = frozenset(PLATFORM_SCANNERS)
PLATFORM_ALIASES = {
@@ -69,6 +71,7 @@ PLATFORM_ALIASES = {
"gjc": "gajae-code",
"gajae": "gajae-code",
"gajaecode": "gajae-code",
+ "aside-browser": "aside",
}
__all__ = ["DEFAULT_PLATFORMS", "PLATFORM_SCANNERS", "scan", "scan_claude", "scan_codex", "scan_gajae_code", "scan_oh_my_pi", "scan_opencode", "scan_senpi"]
diff --git a/plugins/omo/skills/data-scientist/SKILL.md b/plugins/omo/skills/data-scientist/SKILL.md
new file mode 100644
index 00000000..752a6a35
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/SKILL.md
@@ -0,0 +1,243 @@
+---
+name: data-scientist
+description: "Expert data processing specialist with intelligent DuckDB/Polars selection for maximum performance. Always includes numpy, never uses pandas, runs everything through uv. Triggers: 'analyze the data', 'analyze this file', 'what is in this CSV/parquet/json', 'summarize this', 'group by', 'filter rows', 'sort by', 'join these files', 'merge datasets', 'time series trend', 'last 30 days data', 'compare yesterday and today', 'distribution/histogram', 'correlation', 'clean duplicates', 'handle missing values', 'dataset larger than RAM', 'SQL query on files', 'DataFrame operations', 'chart/plot this data', DuckDB vs Polars selection, quick data exploration CLI. NOT for plain text/code inspection, configs, or tiny inline math."
+---
+
+# Data Scientist: High-Performance Data Processing Expert
+
+## Role & Expertise
+
+Performance-obsessed data scientist with expertise in:
+- Intelligent tool selection: DuckDB vs Polars based on operation characteristics
+- Zero-copy data interchange via Apache Arrow
+- Memory-efficient processing for datasets exceeding RAM
+- SQL and DataFrame API mastery for analytical workloads
+
+## Environment Setup
+
+Everything runs through **uv**. If `uv` is not on PATH, set it up first — pick the path that matches the system and run it, no manual guesswork:
+
+```bash
+bash scripts/setup-uv.sh # macOS / Linux / WSL / Git Bash — auto-detects OS + arch, installs or updates uv to latest
+```
+
+```powershell
+powershell -ExecutionPolicy Bypass -File scripts/setup-uv.ps1 # native Windows — installs or updates uv to latest
+```
+
+Both scripts detect the platform, install uv when missing (official installer first, Homebrew/winget as fallback), upgrade it when present (`uv self update`), put it on PATH for the current shell, and verify with `uv --version`. The full per-platform matrix, PATH notes, and CI usage live in [references/uv-setup.md](references/uv-setup.md). Verify: `uv --version`.
+
+## Core Principles
+
+### ABSOLUTE RULES
+
+1. **ALWAYS include numpy** in all data processing operations (`uv run --with numpy ...`)
+2. **NEVER use pandas** - Polars and DuckDB beat it decisively on every operation; the entire skill assumes pandas is absent
+3. **ALWAYS use Python via `uv run`** for calculations and data processing
+4. **Intelligent tool selection**: Choose DuckDB or Polars based on operation types, NOT arbitrarily
+5. **Zero-copy conversions**: hand data across DuckDB and Polars through Arrow — `duckdb.sql(...).pl()`. Never call `.df()` (returns a pandas frame; crashes without pandas). Keep `pyarrow` in the package set or `.pl()` raises `ModuleNotFoundError`
+6. **Lazy evaluation**: Prefer `scan_csv`/`scan_parquet` and `.collect()` only when needed
+7. **Direct file queries**: Let DuckDB query files directly instead of loading to memory when possible
+
+### Standard Package Pattern
+
+```bash
+# Default for data tasks (numpy + pyarrow are mandatory parts of the set)
+uv run --with numpy --with duckdb --with polars --with pyarrow python -c "{code}"
+
+# With visualization (RECOMMENDED for most analysis requests)
+uv run --with numpy --with duckdb --with polars --with pyarrow --with matplotlib python -c "{code}"
+
+# Pure Polars
+uv run --with numpy --with polars python -c "{code}"
+
+# Pure DuckDB (with the Arrow handoff available)
+uv run --with numpy --with duckdb --with pyarrow python -c "{code}"
+```
+
+**When to include matplotlib:**
+- User requests visualization: "graph", "chart", "plot", "show me"
+- Exploratory data analysis (EDA): "analyze", "trends", "patterns"
+- Time-series analysis: "over time", "daily", "trends"
+- Distribution analysis: "distribution", "histogram", "statistics"
+- Comparison tasks: "compare", visual comparison implied
+- **Default to including matplotlib** when in doubt - overhead is minimal
+
+## Tool Selection Logic
+
+### Decision Tree (Apply in Order)
+
+1. **Is it a `.duckdb` file?** → **USE DUCKDB** (native format, optimal performance)
+2. **Simple one-off query without needing full data in memory?** → **USE DUCKDB** (direct file query, zero memory load)
+3. **Very heavy complex SQL query (multi-table joins, window functions)?** → **USE DUCKDB** (superior SQL optimizer)
+4. **Main operation is FILTERING?** → **USE POLARS** (typically the fastest by a wide margin — see benchmarks)
+5. **Main operation is SORTING?** → **USE POLARS** (typically the fastest)
+6. **Complex SQL JOINS needed?** → **USE DUCKDB** (stronger join engine, more join types)
+7. **Heavy GROUP BY AGGREGATIONS?** → **USE DUCKDB** (typically faster on large datasets)
+8. **Window functions with partitioning?** → **POLARS** (typically faster)
+9. **Complex TRANSFORMATIONS (pivot, melt, string ops)?** → **USE POLARS**
+10. **Dataset larger than available RAM?** → **USE POLARS** (streaming support) or **DUCKDB** (out-of-core)
+11. **Mixed operations?** → **USE HYBRID APPROACH** (leverage strengths of both)
+
+### Quick Reference
+
+```
+Simple query → DuckDB
+Heavy complex query → DuckDB
+Filter → Polars
+Sort → Polars
+Join → DuckDB
+Aggregate → DuckDB
+Window → Polars
+Transform → Polars
+Too large for RAM → Polars streaming
+Mixed operations → Hybrid
+```
+
+The exact multipliers these heuristics distill (with sources and caveats — routing heuristics, not guarantees) live in [performance-benchmarks.md](references/performance-benchmarks.md).
+
+## Essential Patterns
+
+### DuckDB Direct File Query
+
+```python
+import duckdb
+# Query file directly - no memory load
+result = duckdb.sql("""
+ SELECT category, SUM(amount) as total
+ FROM 'data.csv'
+ GROUP BY category
+""").pl() # .pl() -> Polars via Arrow. Requires pyarrow. Never .df() (pandas).
+```
+
+### Polars Lazy Evaluation
+
+```python
+import polars as pl
+# Lazy scan - optimizes and executes once
+result = (
+ pl.scan_csv('data.csv')
+ .filter(pl.col('value') > 100)
+ .sort('value', descending=True)
+ .collect()
+)
+```
+
+### Zero-Copy DuckDB → Polars
+
+```python
+import duckdb
+# Direct conversion via Arrow (pyarrow required in the package set)
+df_polars = duckdb.sql("SELECT * FROM 'data.csv'").pl()
+```
+
+### Hybrid Approach
+
+```python
+import duckdb
+import polars as pl
+
+# Phase 1: DuckDB for joins
+joined = duckdb.sql(
+ "SELECT * FROM 'orders.csv' o "
+ "JOIN 'customers.csv' c ON o.customer_id = c.customer_id"
+).pl()
+
+# Phase 2: Polars for filtering
+filtered = joined.filter(pl.col('amount') > 100)
+
+# Phase 3: Back to DuckDB for aggregation
+duckdb.register('filtered_data', filtered)
+final = duckdb.sql('SELECT category, SUM(amount) FROM filtered_data GROUP BY category').pl()
+```
+
+## Quick Query CLI
+
+For ad-hoc data exploration, use the built-in query runner:
+
+```bash
+# SQL query (uses DuckDB)
+uv run scripts/quick-query.py data.csv "SELECT category, COUNT(*) FROM data GROUP BY category"
+
+# Filter expression — Polars SQL syntax, e.g. "amount > 100" (NOT Python: never passes through eval)
+uv run scripts/quick-query.py data.csv --filter "amount > 100"
+
+# Auto-describe (schema + stats)
+uv run scripts/quick-query.py data.parquet --describe
+```
+
+Supports CSV, Parquet, JSON, NDJSON. Cross-platform (macOS, Linux, Windows). Excel files are not read directly — export to CSV or Parquet first.
+
+## Reference Documentation
+
+For detailed guidance, consult these reference files:
+
+- **Environment setup per platform**: See [uv-setup.md](references/uv-setup.md) — install/update uv on macOS, Linux, Windows, WSL, CI; PATH fixes; `scripts/setup-uv.sh` / `scripts/setup-uv.ps1` automate it.
+- **Performance benchmarks and operation detection**: See [performance-benchmarks.md](references/performance-benchmarks.md)
+- **Integration patterns and best practices**: See [integration-patterns.md](references/integration-patterns.md)
+- **Execution templates**: See [execution-templates.md](references/execution-templates.md)
+- **Common scenarios**: See [common-scenarios.md](references/common-scenarios.md)
+
+## Quality Assurance Process
+
+### Before Execution
+1. **Analyze request** → Detect operation types (filter, join, aggregate, etc.)
+2. **Select optimal tool** → Apply decision tree based on detected operations
+3. **Verify approach** → Confirm tool selection matches the benchmark heuristics
+4. **Check package list** → Ensure numpy AND pyarrow are included
+
+### During Execution
+1. **Use lazy evaluation** when possible (Polars `scan_*`, DuckDB direct queries)
+2. **Monitor for errors** and have fallback strategy ready
+3. **Provide progress updates** for long operations
+
+### After Execution
+1. **Report performance** → Show processing time and row counts
+2. **Validate results** → Confirm output matches expectations
+3. **Document tool choice** → Explain why specific tool was selected
+
+## Activation Context
+
+**Automatic activation triggers:**
+
+### Exploratory Questions
+- "Analyze the data" / "What's in the data" / "What's in this file"
+- "Show me the data" / "Take a look at this file" / "Check the file contents"
+
+### Temporal/Historical Analysis
+- "What happened in the past N days?" / "How's last week's data?"
+- "What's the trend for the last 30 days?" / "Compare yesterday and today"
+
+### Aggregation/Summary Requests
+- "Summarize this" / "What's the total?" / "What's the average?"
+- "Show by category" / "Show statistics" / "How many?"
+
+### Filtering/Search Patterns
+- "Show only above 100" / "Find specific conditions" / "Top 10"
+
+### Comparison/Correlation
+- "Compare A and B" / "What's the difference?" / "Is there a correlation?" / "Merge two files"
+
+### Transformation/Cleaning
+- "Clean this up" / "Remove duplicates" / "Handle missing values" / "Convert format"
+
+### Technical Patterns
+- Working with CSV, Parquet, JSON, NDJSON, or `.duckdb` files
+- File paths ending in `.csv`, `.parquet`, `.json`, `.jsonl`, `.ndjson`, `.tsv`, `.duckdb`
+- Requests involving calculations or aggregations
+- Joining, filtering, sorting, or transforming datasets
+- Processing large datasets that may exceed memory
+- Comparing or analyzing data from multiple sources
+- Performance-critical data operations
+- SQL queries or DataFrame operations mentioned
+
+### When NOT to Activate
+- Simple file reading for text/code inspection (use the harness's file-read surface)
+- Non-data files (images, videos, binaries)
+- Configuration files (YAML, TOML, JSON configs) unless specifically for data analysis
+- Small inline calculations (run them directly)
+- Excel files — convert to CSV/Parquet first
+
+---
+
+**Core execution principle:** Always apply intelligent tool selection based on operation characteristics, never use pandas, and always include numpy and pyarrow in the execution environment.
diff --git a/plugins/omo/skills/data-scientist/agents/openai.yaml b/plugins/omo/skills/data-scientist/agents/openai.yaml
new file mode 100644
index 00000000..a94b1914
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/agents/openai.yaml
@@ -0,0 +1,2 @@
+interface:
+ display_name: "(OmO) data-scientist"
\ No newline at end of file
diff --git a/plugins/omo/skills/data-scientist/references/common-scenarios.md b/plugins/omo/skills/data-scientist/references/common-scenarios.md
new file mode 100644
index 00000000..10da5578
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/references/common-scenarios.md
@@ -0,0 +1,176 @@
+# Common Scenarios with Tool Selection
+
+## Scenario 1: Simple Calculation
+
+**Decision: Python (always)**
+
+```python
+uv run --with numpy python -c "
+import numpy as np
+result = np.sum([1, 2, 3, 4, 5])
+print(f'Result: {result}')
+"
+```
+
+## Scenario 2: CSV Quick Analysis
+
+**Decision: DuckDB (direct query, no memory load)**
+
+```python
+uv run --with numpy --with duckdb python -c "
+import duckdb
+result = duckdb.sql('''
+ SELECT * FROM 'data.csv'
+ LIMIT 10
+''').pl()
+print(result)
+"
+```
+
+## Scenario 3: Filter + Sort on Large Dataset
+
+**Decision: Polars (128x faster filtering, 12x faster sorting)**
+
+```python
+uv run --with numpy --with polars python -c "
+import polars as pl
+result = (
+ pl.scan_csv('large.csv')
+ .filter(pl.col('value') > 1000)
+ .sort('value', descending=True)
+ .head(100)
+ .collect()
+)
+print(result)
+"
+```
+
+## Scenario 4: Multi-Table Join + Aggregation
+
+**Decision: DuckDB (best for joins and aggregations)**
+
+```python
+uv run --with numpy --with duckdb python -c "
+import duckdb
+result = duckdb.sql('''
+ SELECT
+ a.category,
+ COUNT(*) as count,
+ SUM(b.amount) as total
+ FROM 'table1.csv' a
+ JOIN 'table2.csv' b ON a.id = b.id
+ GROUP BY a.category
+ ORDER BY total DESC
+''').pl()
+print(result)
+"
+```
+
+## Scenario 5: Data Exploration
+
+**Decision: DuckDB for quick exploration**
+
+```python
+uv run --with numpy --with duckdb python -c "
+import duckdb
+
+# Show first few rows
+print('**Sample Data**')
+print(duckdb.sql('SELECT * FROM \"data.csv\" LIMIT 5').pl())
+
+# Show summary statistics
+print('\\n**Summary Statistics**')
+print(duckdb.sql('DESCRIBE SELECT * FROM \"data.csv\"').pl())
+
+# Show row count
+print('\\n**Row Count**')
+print(duckdb.sql('SELECT COUNT(*) as total_rows FROM \"data.csv\"').pl())
+"
+```
+
+## Scenario 6: Time-Series Analysis
+
+**Decision: DuckDB for aggregation + matplotlib for visualization**
+
+```python
+uv run --with numpy --with duckdb --with pyarrow --with matplotlib python -c "
+import duckdb
+import matplotlib.pyplot as plt
+
+# Aggregate by date
+result = duckdb.sql('''
+ SELECT
+ DATE_TRUNC('day', timestamp) as date,
+ COUNT(*) as count,
+ AVG(value) as avg_value
+ FROM 'timeseries.csv'
+ GROUP BY date
+ ORDER BY date
+''').pl()
+
+# Plot
+plt.figure(figsize=(12, 6))
+plt.subplot(2, 1, 1)
+plt.plot(result['date'], result['count'])
+plt.title('Daily Count')
+
+plt.subplot(2, 1, 2)
+plt.plot(result['date'], result['avg_value'])
+plt.title('Daily Average Value')
+
+plt.tight_layout()
+plt.savefig('timeseries.png')
+print('Saved to timeseries.png')
+"
+```
+
+## Scenario 7: Complex Transformation
+
+**Decision: Polars for efficient transformations**
+
+```python
+uv run --with numpy --with polars python -c "
+import polars as pl
+
+result = (
+ pl.scan_csv('data.csv')
+ .with_columns([
+ # Create new calculated columns
+ (pl.col('price') * pl.col('quantity')).alias('total'),
+ pl.col('date').str.strptime(pl.Date, '%Y-%m-%d').alias('parsed_date'),
+ pl.col('name').str.to_uppercase().alias('upper_name'),
+ ])
+ .filter(pl.col('total') > 100)
+ .select(['parsed_date', 'upper_name', 'total'])
+ .collect()
+)
+
+print(result)
+"
+```
+
+## Scenario 8: Large File Processing
+
+**Decision: Polars streaming mode**
+
+```python
+uv run --with numpy --with polars python -c "
+import polars as pl
+
+# Process file larger than RAM
+result = (
+ pl.scan_csv('huge_file.csv')
+ .filter(pl.col('active') == True)
+ .groupby('category')
+ .agg([
+ pl.count().alias('count'),
+ pl.sum('amount').alias('total'),
+ pl.mean('amount').alias('average'),
+ ])
+ .collect(streaming=True) # Streaming mode
+)
+
+print(result)
+print(f'\\nProcessed {result[\"count\"].sum():,} rows')
+"
+```
diff --git a/plugins/omo/skills/data-scientist/references/execution-templates.md b/plugins/omo/skills/data-scientist/references/execution-templates.md
new file mode 100644
index 00000000..b428c2fc
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/references/execution-templates.md
@@ -0,0 +1,197 @@
+# Execution Templates
+
+## Template 1: DuckDB for Simple/Complex SQL Queries
+
+**Use when:**
+- Simple aggregation on single file
+- Complex multi-table joins
+- Heavy GROUP BY operations
+- Window functions with complex SQL logic
+- Ad-hoc exploration queries
+
+```python
+uv run --with numpy --with duckdb python -c "
+import duckdb
+
+# Simple query - direct file access
+result = duckdb.sql('''
+ SELECT
+ category,
+ COUNT(*) as count,
+ AVG(amount) as avg_amount,
+ SUM(amount) as total
+ FROM 'data.csv'
+ WHERE date >= '2024-01-01'
+ GROUP BY category
+ ORDER BY total DESC
+ LIMIT 10
+''').pl()
+
+print('**Results**')
+print(result)
+print(f'\\nProcessed {len(result)} categories')
+"
+```
+
+## Template 2: Polars for Filtering & Sorting
+
+**Use when:**
+- Primary operation is filtering large dataset
+- Sorting required
+- Chain transformations
+- Memory-efficient processing needed
+
+```python
+uv run --with numpy --with polars python -c "
+import polars as pl
+
+# Lazy evaluation for optimal performance
+result = (
+ pl.scan_csv('data.csv') # Lazy scan
+ .filter(
+ (pl.col('amount') > 1000) &
+ (pl.col('status') == 'active') &
+ (pl.col('date') >= '2024-01-01')
+ )
+ .sort('amount', descending=True)
+ .head(100)
+ .collect() # Execute optimized plan
+)
+
+print('**Filtered and Sorted Results**')
+print(result)
+print(f'\\nFound {len(result)} matching rows')
+"
+```
+
+## Template 3: Hybrid Approach (Best of Both)
+
+**Use when:**
+- Need joins AND heavy filtering
+- Complex SQL followed by transformations
+- Optimize different operation stages
+
+```python
+uv run --with numpy --with duckdb --with polars --with pyarrow python -c "
+import duckdb
+import polars as pl
+
+print('Phase 1: DuckDB for complex join (3x faster)')
+# DuckDB excels at joins
+joined = duckdb.sql('''
+ SELECT
+ o.order_id,
+ o.amount,
+ c.customer_id,
+ c.region,
+ p.category
+ FROM 'orders.csv' o
+ JOIN 'customers.csv' c ON o.customer_id = c.customer_id
+ JOIN 'products.csv' p ON o.product_id = p.product_id
+ WHERE o.date >= '2024-01-01'
+''').pl() # Convert to Polars
+
+print(f'Joined {len(joined):,} rows')
+
+print('\\nPhase 2: Polars for ultra-fast filtering (128x faster)')
+# Polars excels at filtering
+filtered = (
+ joined
+ .filter(
+ (pl.col('amount') > 100) &
+ (pl.col('region').is_in(['North', 'South', 'East']))
+ )
+ .with_columns([
+ (pl.col('amount') * 1.1).alias('amount_with_tax')
+ ])
+)
+
+print(f'Filtered to {len(filtered):,} rows')
+
+print('\\nPhase 3: DuckDB for final aggregation (4x faster)')
+# Back to DuckDB for aggregation
+duckdb.register('filtered_data', filtered)
+final = duckdb.sql('''
+ SELECT
+ region,
+ category,
+ COUNT(DISTINCT customer_id) as customers,
+ SUM(amount_with_tax) as total_revenue,
+ AVG(amount_with_tax) as avg_transaction
+ FROM filtered_data
+ GROUP BY region, category
+ HAVING total_revenue > 10000
+ ORDER BY total_revenue DESC
+''').pl()
+
+print('\\n**Final Results**')
+print(final)
+"
+```
+
+## Template 4: Polars Streaming for Large Files
+
+**Use when:**
+- Dataset larger than available RAM
+- Need to process data in batches
+- Memory constraints
+
+```python
+uv run --with numpy --with polars python -c "
+import polars as pl
+
+# Streaming mode - processes data in chunks
+result = (
+ pl.scan_csv('huge_file.csv')
+ .filter(pl.col('status') == 'active')
+ .with_columns([
+ (pl.col('amount') * 1.1).alias('adjusted_amount')
+ ])
+ .groupby('category')
+ .agg([
+ pl.sum('adjusted_amount').alias('total'),
+ pl.count().alias('count')
+ ])
+ .collect(streaming=True) # Streaming mode for large data
+)
+
+print('**Streaming Results**')
+print(result)
+print(f'\\nProcessed {result[\"count\"].sum():,} total rows')
+"
+```
+
+## Template 5: Visualization with Matplotlib
+
+**Use when:**
+- User requests charts, graphs, or plots
+- Exploratory data analysis (EDA)
+- Time-series or distribution analysis
+
+```python
+uv run --with numpy --with duckdb --with polars --with pyarrow --with matplotlib python -c "
+import duckdb
+import matplotlib.pyplot as plt
+
+# Query data
+result = duckdb.sql('''
+ SELECT
+ date,
+ SUM(amount) as total
+ FROM 'data.csv'
+ GROUP BY date
+ ORDER BY date
+''').pl()
+
+# Create visualization
+plt.figure(figsize=(10, 6))
+plt.plot(result['date'], result['total'])
+plt.xlabel('Date')
+plt.ylabel('Total Amount')
+plt.title('Daily Total Trends')
+plt.xticks(rotation=45)
+plt.tight_layout()
+plt.savefig('output.png')
+print('Chart saved to output.png')
+"
+```
diff --git a/plugins/omo/skills/data-scientist/references/integration-patterns.md b/plugins/omo/skills/data-scientist/references/integration-patterns.md
new file mode 100644
index 00000000..f2447e2d
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/references/integration-patterns.md
@@ -0,0 +1,153 @@
+# Integration Patterns: DuckDB ↔ Polars
+
+## Zero-Copy Conversions (FASTEST)
+
+### DuckDB → Polars (Recommended)
+
+```python
+import duckdb
+import polars as pl
+
+# Direct conversion with .pl() - zero-copy via Arrow
+df_polars = duckdb.sql("""
+ SELECT * FROM 'data.parquet'
+ WHERE amount > 100
+""").pl() # Returns Polars DataFrame directly
+
+# Lazy version for large datasets
+lazy_df = duckdb.sql("SELECT * FROM 'data.parquet'").pl(lazy=True)
+result = lazy_df.filter(pl.col('status') == 'active').collect()
+```
+
+### Polars → DuckDB (Direct Reference)
+
+```python
+import duckdb
+import polars as pl
+
+# DuckDB can query Polars DataFrames directly by name
+df = pl.read_parquet('data.parquet')
+
+result = duckdb.sql("""
+ SELECT category, SUM(amount) as total
+ FROM df
+ GROUP BY category
+ ORDER BY total DESC
+""").pl() # Query df directly, return as Polars
+```
+
+### Via Arrow (When Needed)
+
+```python
+# Polars → Arrow → DuckDB
+df_polars = pl.read_csv('data.csv')
+duckdb.register('my_table', df_polars.to_arrow())
+
+# DuckDB → Arrow → Polars
+arrow_table = duckdb.sql("SELECT * FROM data").arrow()
+df_polars = pl.from_arrow(arrow_table)
+```
+
+## WRONG vs RIGHT Patterns
+
+### ❌ NEVER - Using Pandas
+
+```python
+# FORBIDDEN - decisively slower than Polars/DuckDB on every operation!
+import pandas as pd
+df = pd.read_csv('data.csv')
+result = df.groupby('category')['amount'].sum()
+```
+
+### ✅ CORRECT - DuckDB for simple aggregation query
+
+```python
+import duckdb
+# Direct file query - no memory loading!
+result = duckdb.sql("""
+ SELECT category, SUM(amount) as total
+ FROM 'data.csv'
+ GROUP BY category
+""").pl() # Fast, memory-efficient
+```
+
+### ❌ NEVER - Loading file before DuckDB query
+
+```python
+# WRONG - Unnecessary memory usage
+import polars as pl
+import duckdb
+df = pl.read_csv('data.csv') # Loads entire file
+result = duckdb.sql("SELECT * FROM df WHERE amount > 100").pl()
+```
+
+### ✅ CORRECT - Let DuckDB query directly
+
+```python
+import duckdb
+# DuckDB queries file directly - much faster!
+result = duckdb.sql("""
+ SELECT * FROM 'data.csv'
+ WHERE amount > 100
+""").pl()
+```
+
+### ❌ NEVER - Eager evaluation in Polars
+
+```python
+# WRONG - Loads everything immediately
+import polars as pl
+df = pl.read_csv('large_data.csv') # Eager load
+filtered = df.filter(pl.col('value') > 100)
+```
+
+### ✅ CORRECT - Lazy evaluation
+
+```python
+import polars as pl
+# Lazy - builds query plan, optimizes, executes once
+df = pl.scan_csv('large_data.csv') # Lazy
+result = (
+ df
+ .filter(pl.col('value') > 100)
+ .groupby('category')
+ .agg(pl.sum('value'))
+ .collect() # Execute optimized plan
+)
+```
+
+### ❌ NEVER - Unnecessary Conversions
+
+```python
+# WASTEFUL (DuckDB → Pandas → Polars)
+import duckdb, pandas as pd, polars as pl
+df_pd = duckdb.sql("SELECT * FROM 'data.csv'").df() # requires pandas - the skill never ships it
+df_pl = pl.from_pandas(df_pd)
+```
+
+### ✅ CORRECT - Direct conversion
+
+```python
+# DIRECT (DuckDB → Polars via Arrow)
+import duckdb
+df_pl = duckdb.sql("SELECT * FROM 'data.csv'").pl()
+```
+
+### ❌ NEVER - Wrong tool for heavy filtering
+
+```python
+# SLOW (DuckDB not optimal for filtering)
+import duckdb
+result = duckdb.sql("""
+ SELECT * FROM 'huge.csv'
+ WHERE complex_filter = true
+""").pl()
+```
+
+### ✅ CORRECT - Use Polars for filtering
+
+```python
+# FAST (Polars 128x faster for filtering)
+import polars as pl
+result = pl.scan_csv('huge.csv').filter(pl.col('complex_filter')).collect()
+```
diff --git a/plugins/omo/skills/data-scientist/references/performance-benchmarks.md b/plugins/omo/skills/data-scientist/references/performance-benchmarks.md
new file mode 100644
index 00000000..cdaebca9
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/references/performance-benchmarks.md
@@ -0,0 +1,37 @@
+# Performance Benchmarks
+
+Routing heuristics distilled from public 2024-2025 results in the [db-benchmark suite](https://github.com/h2oai/db-benchmark) (rendered at [h2oai.github.io/db-benchmark](https://h2oai.github.io/db-benchmark/)) and from the vendors' own documentation ([duckdb.org](https://duckdb.org/), [pola.rs](https://pola.rs/)).
+
+**Read these as routing guidance, not guarantees.** Multipliers vary with dataset size, cardinality, data types, and hardware. When the choice materially matters, measure on the actual data.
+
+## Operation Performance Comparison
+
+| Operation Type | Winner | Indicative advantage | When to Use |
+|---------------------|-------------|----------------------|------------------------------------------------|
+| **Filtering** | **Polars** | often the fastest by a wide margin (SIMD, predicate pushdown) | Single-table filters |
+| **Sorting** | **Polars** | typically the fastest | ORDER BY operations, ranking |
+| **Joins** | **DuckDB** | typically faster; richer join types | Multi-table joins, especially complex joins |
+| **Aggregations** | **DuckDB** | typically faster on large datasets | GROUP BY, complex aggregations |
+| **Window Funcs** | **Polars** | typically faster | RANK, LAG/LEAD, running totals |
+| **Transformations** | **Polars** | typically faster | Pivot, melt, string operations |
+| **Direct Query** | **DuckDB** | avoids loading to memory entirely | Ad-hoc exploration without loading to memory |
+| **Streaming** | **Polars** | handles datasets larger than RAM | Datasets larger than RAM |
+
+Both tools are decisively faster than pandas on 1M+ row workloads, which is why pandas is banned outright in this skill.
+
+## Operation Detection Keywords
+
+Automatically detect operation types from user requests:
+
+- **Filter**: "where", "filter", "condition", "select rows", "find"
+- **Sort**: "sort", "order", "top", "bottom", "rank"
+- **Join**: "join", "merge", "combine tables"
+- **Aggregate**: "group", "sum", "avg", "count", "mean", "total", "aggregate"
+- **Transform**: "pivot", "melt", "reshape", "string operations", "clean", "transform"
+- **Window**: "running", "cumulative", "lag", "lead", "rank", "partition"
+
+## Benchmarking Notes
+
+- Public suites exercise typical analytical workloads (1M-100M rows).
+- Performance advantages are approximate and vary by dataset characteristics.
+- Real-world performance depends on data types, cardinality, and hardware.
diff --git a/plugins/omo/skills/data-scientist/references/uv-setup.md b/plugins/omo/skills/data-scientist/references/uv-setup.md
new file mode 100644
index 00000000..be59f532
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/references/uv-setup.md
@@ -0,0 +1,78 @@
+# uv Setup — Per-Platform
+
+This skill runs every data operation through `uv run --with ...`. If `uv --version` fails, set uv up with the automated scripts or the manual commands below, then verify.
+
+## Automated (recommended)
+
+| Platform | Command |
+|---|---|
+| macOS / Linux / WSL / Git Bash | `bash scripts/setup-uv.sh` |
+| Windows (PowerShell) | `powershell -ExecutionPolicy Bypass -File scripts/setup-uv.ps1` |
+
+Both scripts: detect OS + architecture → install uv to the latest release when missing → upgrade it when present (`uv self update`) → make it resolvable for the current shell → verify with `uv --version`. They are idempotent — safe to re-run any time.
+
+## Manual install per platform
+
+### macOS
+
+```bash
+curl -LsSf https://astral.sh/uv/install.sh | sh # official installer → ~/.local/bin/uv
+# or, with Homebrew:
+brew install uv
+```
+
+### Linux (x86_64 / aarch64)
+
+```bash
+curl -LsSf https://astral.sh/uv/install.sh | sh # official installer → ~/.local/bin/uv
+```
+
+The installer detects glibc vs musl and downloads the right static binary. On minimal containers, ensure `curl` (or `wget`) exists; `wget -qO- https://astral.sh/uv/install.sh | sh` is the fallback.
+
+### Windows (native)
+
+```powershell
+powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
+# or, with winget:
+winget install --id=astral-sh.uv -e
+```
+
+### Windows Subsystem for Linux / Git Bash
+
+Use the Linux/macOS installer inside the Unix shell, not the PowerShell installer:
+
+```bash
+curl -LsSf https://astral.sh/uv/install.sh | sh
+```
+
+### CI
+
+```yaml
+# GitHub Actions
+- uses: astral-sh/setup-uv@v5
+# or plain shell anywhere:
+- run: curl -LsSf https://astral.sh/uv/install.sh | sh
+```
+
+## PATH notes
+
+- The official installers put the binary in `~/.local/bin` (Unix) or `%USERPROFILE%\.local\bin` (Windows). New shells get it automatically on most setups; an already-open shell needs `export PATH="$HOME/.local/bin:$PATH"` (Unix) or `$env:Path = "$env:USERPROFILE\.local\bin;$env:Path"` (PowerShell) once.
+- Homebrew and winget install into their own prefixes that are already on PATH.
+
+## Upgrade to latest
+
+```bash
+uv self update
+```
+
+`uv self update` only works for official-installer binaries; Homebrew/winget installs upgrade through their package manager (`brew upgrade uv` / `winget upgrade astral-sh.uv`). The setup scripts handle this automatically.
+
+## Verify
+
+```bash
+uv --version
+```
+
+## Offline / air-gapped
+
+Download the matching archive from the uv GitHub releases page, extract it, and put the `uv` binary anywhere on PATH. `uv run --with <pkg>` still needs network for first-time package resolution unless a mirror is configured via `UV_INDEX_URL`.
diff --git a/plugins/omo/skills/data-scientist/scripts/quick-query.py b/plugins/omo/skills/data-scientist/scripts/quick-query.py
new file mode 100644
index 00000000..41553ac8
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/scripts/quick-query.py
@@ -0,0 +1,111 @@
+#!/usr/bin/env -S uv run --script
+# /// script
+# requires-python = ">=3.11"
+# dependencies = [
+# "duckdb",
+# "polars",
+# "numpy",
+# "pyarrow",
+# "typer",
+# "rich",
+# ]
+# ///
+
+"""Quick data query runner. SQL arg -> DuckDB; --filter (Polars SQL) -> Polars; --describe -> schema + stats."""
+
+from __future__ import annotations
+
+from pathlib import Path
+
+import typer
+from rich import print as rprint
+from rich.table import Table
+
+
+def _run_duckdb(file_path: Path, sql: str) -> None:
+ import duckdb
+
+ table_ref = f"'{file_path}'"
+ stem = file_path.stem
+ query = sql
+ for alias in ("data", "df", stem):
+ query = query.replace(f"FROM {alias} ", f"FROM {table_ref} ")
+ query = query.replace(f"FROM {alias}\n", f"FROM {table_ref}\n")
+ query = query.replace(f"from {alias} ", f"from {table_ref} ")
+ query = query.replace(f"from {alias}\n", f"from {table_ref}\n")
+ if query.endswith(f"FROM {alias}") or query.endswith(f"from {alias}"):
+ query = query[: -len(alias)] + table_ref
+
+ result = duckdb.sql(query)
+ df = result.pl()
+ _print_polars(df)
+
+
+def _run_polars_filter(file_path: Path, expr: str) -> None:
+ import polars as pl
+
+ df = _read_file(file_path)
+ filtered = df.filter(pl.sql_expr(expr))
+ _print_polars(filtered)
+
+
+def _run_describe(file_path: Path) -> None:
+ df = _read_file(file_path)
+
+ rprint(f"\n[bold]Schema:[/bold] {file_path.name} ({len(df)} rows × {len(df.columns)} cols)")
+ for name, dtype in zip(df.columns, df.dtypes):
+ rprint(f" {name}: [cyan]{dtype}[/cyan]")
+
+ rprint("\n[bold]Statistics:[/bold]")
+ _print_polars(df.describe())
+
+
+def _read_file(file_path: Path): # noqa: ANN202
+ import polars as pl
+
+ suffix = file_path.suffix.lower()
+ if suffix == ".csv":
+ return pl.read_csv(file_path)
+ if suffix == ".parquet":
+ return pl.read_parquet(file_path)
+ if suffix == ".json":
+ return pl.read_json(file_path)
+ if suffix in (".jsonl", ".ndjson"):
+ return pl.read_ndjson(file_path)
+ rprint(f"[red]Unsupported format:[/red] {suffix} (Excel: export to CSV or Parquet first)")
+ raise SystemExit(1)
+
+
+def _print_polars(df) -> None: # noqa: ANN001
+ table = Table(show_lines=False)
+ for col_name in df.columns:
+ table.add_column(col_name)
+ for row in df.iter_rows():
+ table.add_row(*(str(v) for v in row))
+ rprint(table)
+ rprint(f"[dim]{df.shape[0]} rows × {df.shape[1]} cols[/dim]")
+
+
+def main(
+ file: Path = typer.Argument(help="Data file (csv, parquet, json, ndjson)"),
+ sql: str = typer.Argument(None, help="SQL query (uses DuckDB). Use 'data' as table name."),
+ filter_expr: str = typer.Option(None, "--filter", "-f", help="Polars SQL filter, e.g. 'amount > 100'"),
+ describe: bool = typer.Option(False, "--describe", "-d", help="Print schema + stats"),
+) -> None:
+ """Query data files with DuckDB (SQL) or Polars (SQL filter expressions)."""
+ if not file.exists():
+ rprint(f"[red]File not found:[/red] {file}")
+ raise SystemExit(1)
+
+ if describe:
+ _run_describe(file)
+ elif filter_expr:
+ _run_polars_filter(file, filter_expr)
+ elif sql:
+ _run_duckdb(file, sql)
+ else:
+ _run_describe(file)
+
+
+if __name__ == "__main__":
+ typer.run(main)
diff --git a/plugins/omo/skills/data-scientist/scripts/setup-uv.ps1 b/plugins/omo/skills/data-scientist/scripts/setup-uv.ps1
new file mode 100644
index 00000000..155109a0
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/scripts/setup-uv.ps1
@@ -0,0 +1,53 @@
+[CmdletBinding()]
+param()
+Set-StrictMode -Version Latest
+$ErrorActionPreference = 'Stop'
+
+function Write-Step([string]$Message) { Write-Host "[setup-uv] $Message" }
+
+Write-Step "detected os=$([System.Runtime.InteropServices.RuntimeInformation]::OSDescription) arch=$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)"
+
+$uv = Get-Command uv -ErrorAction SilentlyContinue
+if ($null -ne $uv) {
+ $current = (& uv --version) | Select-Object -First 1
+ Write-Step "uv already installed ($current) - upgrading"
+ & uv self update 2>$null
+ if ($LASTEXITCODE -ne 0) {
+ Write-Step "uv self update unavailable (package-manager install) - trying winget"
+ if (Get-Command winget -ErrorAction SilentlyContinue) {
+ & winget upgrade --id=astral-sh.uv -e --accept-source-agreements --accept-package-agreements 2>$null
+ if ($LASTEXITCODE -ne 0) { & winget install --id=astral-sh.uv -e --accept-source-agreements --accept-package-agreements }
+ } else {
+ Write-Step "no winget; keeping current uv (already functional)"
+ }
+ }
+} else {
+ Write-Step "uv not found - installing latest via the official installer"
+ $installed = $false
+ try {
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
+ $installed = $true
+ } catch {
+ Write-Step "official installer failed ($($_.Exception.Message)) - trying winget"
+ if (Get-Command winget -ErrorAction SilentlyContinue) {
+ & winget install --id=astral-sh.uv -e --accept-source-agreements --accept-package-agreements
+ $installed = ($LASTEXITCODE -eq 0)
+ }
+ }
+ if (-not $installed -and $null -eq (Get-Command uv -ErrorAction SilentlyContinue)) {
+ Write-Step "FAIL: could not install uv - install it manually per references/uv-setup.md"
+ exit 1
+ }
+}
+
+if ($null -eq (Get-Command uv -ErrorAction SilentlyContinue)) {
+ $localBin = Join-Path $env:USERPROFILE '.local\bin'
+ if (Test-Path (Join-Path $localBin 'uv.exe')) { $env:Path = "$localBin;$env:Path" }
+}
+
+if ($null -eq (Get-Command uv -ErrorAction SilentlyContinue)) {
+ Write-Step "FAIL: uv still not on PATH after install - add %USERPROFILE%\.local\bin to PATH and retry"
+ exit 1
+}
+
+Write-Step "OK: $((& uv --version) | Select-Object -First 1)"
diff --git a/plugins/omo/skills/data-scientist/scripts/setup-uv.sh b/plugins/omo/skills/data-scientist/scripts/setup-uv.sh
new file mode 100644
index 00000000..a2ef66e1
--- /dev/null
+++ b/plugins/omo/skills/data-scientist/scripts/setup-uv.sh
@@ -0,0 +1,60 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+log() { printf '[setup-uv] %s\n' "$*"; }
+
+os="$(uname -s 2>/dev/null || echo unknown)"
+arch="$(uname -m 2>/dev/null || echo unknown)"
+log "detected os=${os} arch=${arch}"
+
+case "$os" in
+ Darwin|Linux) ;;
+ MINGW*|MSYS*|CYGWIN*)
+ log "Git Bash / MSYS environment detected - installing the Windows build is not supported here."
+ log "Use the Linux installer inside WSL, or run scripts/setup-uv.ps1 in PowerShell instead."
+ exit 1
+ ;;
+ *)
+ log "unsupported OS: ${os} - see references/uv-setup.md for manual steps."
+ exit 1
+ ;;
+esac
+
+if command -v uv >/dev/null 2>&1; then
+ current="$(uv --version 2>/dev/null | head -n1)"
+ log "uv already installed (${current}) - upgrading"
+ if uv self update >/dev/null 2>&1; then
+ log "uv self update succeeded"
+ else
+ log "uv self update unavailable (package-manager install) - trying Homebrew"
+ if command -v brew >/dev/null 2>&1; then
+ brew upgrade uv >/dev/null 2>&1 || brew install uv
+ else
+ log "no Homebrew; keeping current uv (already functional)"
+ fi
+ fi
+else
+ log "uv not found - installing latest via the official installer"
+ if command -v curl >/dev/null 2>&1; then
+ curl -LsSf https://astral.sh/uv/install.sh | sh
+ elif command -v wget >/dev/null 2>&1; then
+ wget -qO- https://astral.sh/uv/install.sh | sh
+ elif command -v brew >/dev/null 2>&1; then
+ log "no curl/wget - installing via Homebrew"
+ brew install uv
+ else
+ log "neither curl, wget, nor brew available - install one of them and re-run."
+ exit 1
+ fi
+fi
+
+if ! command -v uv >/dev/null 2>&1; then
+ export PATH="$HOME/.local/bin:$PATH"
+fi
+
+if ! command -v uv >/dev/null 2>&1; then
+ log "FAIL: uv still not on PATH after install - add \$HOME/.local/bin to PATH and retry."
+ exit 1
+fi
+
+log "OK: $(uv --version)"
diff --git a/plugins/omo/skills/debugging/SKILL.md b/plugins/omo/skills/debugging/SKILL.md
index 3baf0b4b..c70efddb 100644
--- a/plugins/omo/skills/debugging/SKILL.md
+++ b/plugins/omo/skills/debugging/SKILL.md
@@ -1,6 +1,6 @@
---
name: debugging
-description: "MUST USE for any real runtime debugging across ANY language or binary — crashes, silent failures, wrong responses, stuck processes, memory leaks, async misbehavior, unexplained timing, reverse engineering. Runs a hypothesis-driven loop: form ≥3 hypotheses, investigate in parallel, after 2 failed rounds spawn Oracles from orthogonal angles, confirm root cause, lock with a failing test, fix minimally, QA by actually USING the system, scrub artifacts. The actual HOW lives in `references/` — READ THEM. Triggers: 'debug this', 'why is X not working', 'hanging', 'attach a debugger', 'reverse engineer', 'pwndbg', 'gdb', 'lldb', 'node inspect', 'tsx debug', 'pdb', 'dlv', 'delve', 'rust-gdb', 'set a breakpoint', 'context window exploded', 'why is the response empty', 'why is this happening', 'trace this bug', 'reproduce and fix', 'silent failure', 'HTTP 200 but empty', 'why did it stop', 'inspect the binary', 'playwright', 'flaky test', 'fails intermittently', 'passes in isolation', 'only fails in CI'."
+description: "MUST USE for any real runtime debugging across ANY language or binary — crashes, silent failures, wrong responses, stuck processes, memory leaks, async misbehavior, unexplained timing, reverse engineering. Runs a hypothesis-driven loop: form ≥3 hypotheses, investigate in parallel, after 2 failed rounds spawn Oracles from orthogonal angles, confirm root cause, lock with a failing test, fix minimally, QA by actually USING the system, scrub artifacts. The actual HOW lives in `references/` — READ THEM. Triggers: 'debug this', 'why is X not working', 'hanging', 'attach a debugger', 'reverse engineer', 'pwndbg', 'gdb', 'lldb', 'node inspect', 'pdb', 'dlv', 'delve', 'rust-gdb', 'set a breakpoint', 'context window exploded', 'why is the response empty', 'why is this happening', 'trace this bug', 'reproduce and fix', 'silent failure', 'HTTP 200 but empty', 'why did it stop', 'inspect the binary', 'playwright', 'flaky test', 'fails intermittently', 'passes in isolation', 'only fails in CI'."
---
# Debugging
diff --git a/plugins/omo/skills/programming/SKILL.md b/plugins/omo/skills/programming/SKILL.md
index 616d23f2..e9500f61 100644
--- a/plugins/omo/skills/programming/SKILL.md
+++ b/plugins/omo/skills/programming/SKILL.md
@@ -238,8 +238,7 @@ Logging is part of the code you ship, and it has iron rules of its own: levels c
## DEPENDENCY UPGRADES — CROSS-CUTTING RULES
- **`0.x` minor = major.** Semver promises nothing below 1.0: treat `0.N → 0.N+1` as a breaking upgrade — read the changelog, build, and run the full suite before trusting it. A required field appearing in a public options type is a routine `0.x` "minor".
-- **Version literals live outside the manifest.** Before committing a bump, grep the repo for the old version string: Dockerfiles pinning a global CLI, CI workflows, docs, and contract tests all carry copies. A bump that updates only the package manifest ships a split-brain deploy.
-- **Pin-parity contract tests are a pattern, not a nuisance.** A small test asserting the lockfile-resolved version equals the deploy artifact's pin (Dockerfile, image tag) turns silent drift into a red test. If the project has one, update it deliberately; if the bump reveals unguarded drift, add the test with the bump.
+- **Version literals live outside the manifest.** Before committing a bump, grep the repo for the old version string: Dockerfiles pinning a global CLI, CI workflows, and docs all carry copies. A bump that updates only the package manifest ships a split-brain deploy.
- **Never hand-merge a lockfile.** On conflict, take either side whole and regenerate with the package manager — the resolver owns that file, not you.
---
diff --git a/plugins/omo/skills/ulw-plan/SKILL.md b/plugins/omo/skills/ulw-plan/SKILL.md
index b92d7529..b580a6cd 100644
--- a/plugins/omo/skills/ulw-plan/SKILL.md
+++ b/plugins/omo/skills/ulw-plan/SKILL.md
@@ -1,6 +1,6 @@
---
name: ulw-plan
-description: "MUST USE for planning before coding when design uncertainty remains after discovery: ambiguous scope, competing decompositions, unclear boundaries, uncertain dependency ordering, architecture decisions, a vague 'just make it good / figure out what to build' brief, or any request to plan, interview, or break work down. Explore-first planning consultant (Prometheus) that grounds in the codebase, asks only the forks exploration cannot resolve - or researches them to best practice when the intent is fuzzy - waits for explicit approval, then writes ONE decision-complete work plan a worker executes with zero further interview. Triggers: ulw-plan, plan this, make a plan, plan before coding, interview me, break this down, start planning, plan mode, just make it good, figure out what to build."
+description: "ACTIVATES ONLY on an explicit user request for the ulw-plan workflow: the user themselves saying ulw-plan, ulw plan, /skill:ulw-plan, or asking in their own words for a work plan before coding. NEVER self-activates: a bare ulw/ultrawork run, an agent-side routing decision, or reading this file is not a request, and the plan-gated reviewers (metis/momus) stay locked without a user request plus a written .omo/plans plan file. Explore-first planning consultant (Prometheus) that grounds in the codebase, asks only the forks exploration cannot resolve - or researches them to best practice when the intent is fuzzy - waits for explicit approval, then writes ONE decision-complete work plan a worker executes with zero further interview. Triggers: ulw-plan, ulw plan, plan this, make a plan, plan before coding, interview me, break this down, start planning, plan mode."
metadata:
short-description: Explore-first planning consultant that waits for your okay before planning
---
diff --git a/plugins/omo/skills/ulw-research/SKILL.md b/plugins/omo/skills/ulw-research/SKILL.md
index 3a500e7c..87c9dbee 100644
--- a/plugins/omo/skills/ulw-research/SKILL.md
+++ b/plugins/omo/skills/ulw-research/SKILL.md
@@ -1,6 +1,6 @@
---
name: ulw-research
-description: "Maximum-saturation research orchestration: parallel explore+librarian swarms across codebase, web, official docs, and OSS repos; a recursive EXPAND loop driven by leads workers return in message text; empirical verification by running code; cited synthesis and optional MD/HTML/PDF/PPTX reports. ACTIVATES ONLY on an explicit user demand for research — the word 'ulw-research' ('/ulw-research', '$ulw-research'), any 'ulw' research wording, or an explicit request for research / deep research / an ultra-precise investigation, in any language. Never self-activates for ordinary questions, debugging, or implementation context-gathering. While active it overrides exploration-bounding defaults: exhaustive coverage is the goal."
+description: "Maximum-saturation research orchestration: ALWAYS proposes the final materials first (PDF+DOCX default), then parallel explore+librarian swarms across codebase, web, official docs, and OSS repos — max-roster teammode when the harness has it — with live journaling, a recursive EXPAND loop driven by leads workers return in message text, empirical verification by running code, and a cited synthesis with charts/Mermaid/assets behind a mandatory visual-QA gate. ACTIVATES ONLY on an explicit user demand for research — the word 'ulw-research' ('/ulw-research', '$ulw-research'), any 'ulw' research wording, 'ultradebate' or 'hyperdebate' research requests, or an explicit request for research / deep research / an ultra-precise investigation, in any language. Never self-activates for ordinary questions, debugging, or implementation context-gathering. While active it overrides exploration-bounding defaults: exhaustive coverage is the goal."
---
## Codex Harness Tool Compatibility
@@ -52,8 +52,11 @@ The research is done when all of these hold:
- Claims that were contested, undocumented, or performance-shaped were proven or refuted by executed code.
- Every claim in the deliverable cites a source or a verification artifact.
- Every asserted claim is represented in the claim graph, tied to an intent-vs-reality diff when an expected truth exists, and backed by observation manifest entries from independent observation groups or a documented single-source exception; convergence or exception status is explicit.
-- Final materials follow the Phase 5 format default or the user's explicit format.
-- The session journal reconstructs what was searched, found, and expanded, wave by wave.
+- The format-proposal gate was asked and answered BEFORE the first wave, and the final materials match that answer.
+- The delivered artifact passed every delivery gate for this harness: visual QA on the rendered pages always, plus the proofread pass where the harness provides one (Phase 5).
+- Every excursion opened during the run was closed by an EXIT rule, folded back into the claim or axis that triggered it, and recorded in both `excursion-log.md` and the ulw-loop ledger.
+- The delivery message carries the closing briefing: how many sources the answer rests on (total + unique domains) and how many minutes the run took.
+- The session journal reconstructs what was searched, found, and expanded, wave by wave, and it was written in real time rather than reconstructed at the end.
## Epistemic instrumentation
@@ -72,7 +75,12 @@ Observation candidates and claim candidates travel back from workers as message
Saturation research defaults to teammode, not isolated fire-and-forget workers: a lead one worker surfaces almost always reshapes what another should search next. When your harness gives you real cooperating members — Codex: the `teammode` skill (MultiAgentV2 agents, or `codex_app` threads as its fallback); OpenCode: `team_mode` — run this swarm as a team. Fall back to the background-worker swarm below only when team mode is unavailable, or the axes are genuinely independent with no cross-pollination expected.
- **One member per axis — by part, ownership, or perspective, never a job title.** Each Phase 0 axis is one member owning one concrete slice: a codebase part, a source territory, or a question lens. No two members share an angle. "Backend researcher" or "the web person" gives no real boundary and invites overlap — name what the member owns.
-- **Many teammates by default.** Prefer a larger roster, usually 5-8 teammates, whenever the axes can be made distinct. Add at least one skeptic or red-team perspective for hyperdebate/ultradebate: cross-critique claims, evidence quality, synthesis structure, and visual-report choices before they reach the final deliverable.
+- **Always the maximum roster.** The team is not sized by taste: fill every member slot your harness allows (OpenCode `team_mode` caps members at 8; Codex teammode has its own ceiling) on every run. If you can only name five axes, split the broadest one — by source territory, by time window, by perspective — until the roster is full. A half-empty team is a half-covered topic.
+- **Compose deliberately across everything you can spawn.** Before writing the roster, enumerate what this session actually has — every delegation tier the harness or config defines and every spawnable role — and give each slot the cheapest tier that can do ITS job: broad recon on fast tiers, contested analysis on deep tiers, attack lanes on the strongest reasoning tier. Mixed tiers by design, never one tier across the whole board.
+- **Routing words from the user are literal.** "quick", "fast", "deep", "all quick", "max parallel" — in any language — are hard instructions, not mood. Route exactly as asked and journal `requested tier -> spawned worker -> fallback reason` for every slot. Silently promoting a "quick" roster to a heavier tier is a defect, and so is dropping to a cheaper one without saying why.
+- **Debate members are mandatory for ultradebate/hyperdebate, default otherwise.** At least one skeptic or red-team perspective attacks claims, evidence quality, source independence, synthesis structure, and report choices before they reach the deliverable. When the user says ultradebate or hyperdebate, run at least two attacking perspectives and give every contested claim a full round.
+
+**One team, or a sequence — decided by scale and precision.** One team is the floor, not the ceiling. When the brief shows 6+ axes, several source territories, or a long final document — or a wrong claim is expensive (legal, medical, financial, procurement, public-facing) — run the research team to convergence, disband it, and stand up a REFINEMENT team from your strongest reasoning tiers whose only job is to attack and sharpen the synthesis before the document is written. A fresh premium team reading a finished journal reasons better than the same researchers grading their own homework. Build each team from a written brief and disband it before the next one starts; never leave two research teams live at once.
- **The raise law — broadcast every lead the instant it surfaces.** Members over-communicate relentlessly: every new lead, finding, contradiction, and dead end is raised to you the moment it surfaces, never hoarded for a final dump. Through long passes they send `WORKING: <axis> - <phase>`, and `BLOCKED: <reason>` the moment progress stops, so you always know a member is alive. Too many small updates is correct here; going quiet is the only failure.
- **You lead; expand on each raised lead.** Members raise via message text, never write session files. Journal each lead and spawn its expansion the instant it lands (Phase 2), not only when a member's final reply arrives.
@@ -81,7 +89,7 @@ Saturation research defaults to teammode, not isolated fire-and-forget workers:
Research workers (explore, librarian, browsing) differ by harness, but assume:
- **Read-only.** Most research workers cannot write files. Never ask a worker to write the journal or any session file — every journal write is yours.
-- **No recursion.** Workers cannot spawn their own subagents. Depth comes from your expansion waves, not from worker-side recursion.
+- **No recursion — workers AND members.** Workers cannot spawn their own subagents, and team members must not re-orchestrate: a member researches its axis and reports; it never stands up its own team, loads this skill, or fans out a research swarm of its own. Depth comes from YOUR expansion waves. Say so in every spawn message — a member that starts its own research protocol burns the run's budget on duplicated orchestration and returns nothing you can cite.
- **Built-in brakes.** Workers often ship with their own retrieval budgets ("stop when answered") and rigid output templates. Your spawn message must explicitly lift the budget and demand the EXPAND tail, or the worker returns a thin single-pass answer with no leads.
- **Capability routing.** When the harness lets you choose, spawn research workers on a capable model at high reasoning effort — saturation research on a minimal or fast tier returns shallow results. When you cannot choose, narrow each worker's scope and spawn more workers instead.
@@ -111,7 +119,8 @@ Before spawning anything, decompose the query. Start from "what must be true if
<analysis>
Core question: <the actual information need>
Axes (3+ orthogonal): <axis — what to search, where, why> ...
-Codebase relevant: <yes/no> · External: <yes/no> · Browsing: <yes/no> · Verification likely: <yes/no> · Final material format: <HTML/PDF default | explicit format | markdown only>
+Codebase relevant: <yes/no> · External: <yes/no> · Browsing: <yes/no> · Verification likely: <yes/no>
+Scale: <axis count, source territories, target document length> · Precision demand: <what a wrong claim costs here> → lifecycle: <single team | research team then refinement team>
</analysis>
```
@@ -125,6 +134,7 @@ This is `$SESSION_DIR`. The orchestrator owns the journal: you write every file
- `wave-<N>-<kind>-<axis>.md` — your digest of each worker return: key findings, sources with URLs, and the worker's EXPAND markers verbatim.
- `expansion-log.md` — per wave: workers spawned, markers gained, leads opened and closed.
+- `excursion-log.md` — one ENTER row and one EXIT row per excursion: `excursion_id`, parent claim or axis, ENTER trigger, depth, workers spent, the EXIT rule that closed it, what it changed in the top-level answer (`none` is a valid, required answer), and the ulw-loop steer/evidence id it was mirrored into.
- `intent-diff.md` — orchestrator-owned expected-truth ledger comparing intent/spec/history to observed reality.
- `claim-graph.md` — orchestrator-owned claim graph linking every final assertion to observations, counterevidence, dependencies, and verdict.
- `observation-manifest.md` — orchestrator-owned observation manifest with `observed_at`, temporal validity, artifact paths, and contamination notes.
@@ -134,6 +144,21 @@ This is `$SESSION_DIR`. The orchestrator owns the journal: you write every file
Append each digest the moment its worker returns, not in a batch at the end — the journal is your recovery point after context loss and the user's audit trail.
+### Run it as a loop, and journal in real time
+
+ulw-loop is ON by default for this mode: when the `ulw-loop` skill is available, register the research axes as loop goals so the run has durable state and survives a compaction. The session directory's timestamp is the run's start clock — the closing briefing is computed from it, so create it once and never rename it. From that point every finding, source, quote, number, and lead is written into `$SESSION_DIR` **the instant it lands** — never held in the conversation for an end-of-run dump. After any context loss, re-read the brief and the journal before doing anything else, then resume from the open wave.
+
+### Format-proposal gate — ALWAYS ask, before the first wave
+
+Never guess the shape of the deliverable. After the decomposition and before spawning wave 1, propose the final materials and WAIT for the user's answer:
+
+- **Default pair: PDF + DOCX.** Offer both as the baseline for any report/document request.
+- Name the alternatives that actually fit THIS domain — slides for a briefing, standalone HTML for a living page, Markdown for a working note, several at once when the audience differs.
+- Propose the TEMPLATE too, chosen from the domain and the user's own context: section skeleton, citation style, length target, language, and any house style they have used before. A prior document the user points at is the strongest template signal — read it and mirror its structure and tagging.
+- Ask once, compactly: proposed format + proposed template + what each option costs. Then stop and wait. Guessing here wastes the entire assembly pass.
+
+Record the answer in the journal; it is the binding contract for Phase 5.
+
## Phase 1 — Saturation wave
Launch the entire first wave in one turn — every axis at once, as team members if you formed a team, else as background workers. Sequential launches and "start with one and see" defeat the mode.
@@ -148,6 +173,8 @@ Scaling floor — more angles always justify more workers:
| Multi-faceted | 4 | 6 | 2 | 2 | 14 |
| Full due diligence | 4 | 6 | 3 | 2 | 15 |
+**Disambiguate before you expand.** When the topic names something that could resolve several ways — a product, a person, a codename, a version — the first wave settles WHICH entity before any worker researches its history, benchmarks, or controversies: canonical name, first-party URL or account, whether it exists in the claimed category, and a confidence line. An unresolved entity never becomes a premise in a later wave's spawn message; that is exactly how a run starts inventing facts about something that does not exist.
+
Role protocols — embed the relevant one in each spawn message; every worker gets a unique angle:
- **Codebase (explore), 2-4 workers.** Grep with 3+ keyword variations; structural/AST search; LSP definitions and references; file-name globs; `git log --all -S '<keyword>'` and `--grep` for history including deleted code. Cross-validate hits across tools. Report absolute file paths, patterns with `file:line`, and how findings connect.
@@ -169,7 +196,7 @@ End your reply with the ## EXPAND tail: '- LEAD: <discovery> — WHY: <why> —
This loop is what makes the mode research rather than search. Collect returns as they land — and in team mode, act on each lead the moment a member raises it, never waiting for the full wave or a member's final reply:
-1. Journal the return: digest plus verbatim EXPAND markers into `wave-<N>-<kind>-<axis>.md`.
+1. Journal the return the moment it lands, never at the end of the wave: digest plus verbatim EXPAND markers into `wave-<N>-<kind>-<axis>.md`, appending each new source, quote, and number to the observation manifest in the same beat — after a compaction the journal, not your memory, is the state.
2. Deduplicate new markers against `expansion-log.md` — every lead ever seen, not just confirmed ones, or rejected leads resurface each wave.
3. Spawn an expansion worker immediately for each new unchecked lead:
@@ -180,7 +207,34 @@ PARENT: <which return surfaced it>. This is an explicit exhaustive-research assi
End your reply with the ## EXPAND tail.")
```
+### Excursions — dive deep on a new find, then surface back out
+
+The Phase 0 core question is the fixed goal of the run and never drifts. An excursion is a BOUNDED detour off the wave plan to chase something a return surfaced — you go deep, settle it, and come back up to the question you were hired to answer.
+
+**ENTER (dive) only on a trigger.** One of these must hold, and you name which one:
+
+1. The find contradicts a claim already locked in `claim-graph.md`.
+2. It would change the final answer or a recommendation if it turned out to be true.
+3. It exposes a source territory no axis owns, so nobody else will ever reach it.
+4. The user's steering points at it — their words are the trigger, quoted verbatim.
+
+Interest alone is not a trigger. Anything without one stays a queued lead in `expansion-log.md`, and the wave plan continues.
+
+**Budget the dive before you take it.** State the worker count and the probe count for this level in the ENTER row. An excursion may spawn at most ONE nested sub-excursion; a third level means the thing has become its own research question — surface immediately and either promote it to a real axis with its own worker or record it as an out-of-scope gap in `SYNTHESIS.md`. When the `ulw-loop` skill is driving the run, a promotion is `omo ulw-loop steer --kind add_subgoal --title "<axis>" --objective "<what it must answer>" --evidence "<what surfaced it>" --rationale "<why the plan changes>"`.
+
+**EXIT (surface) the moment any of these holds** — you do not need all of them:
+
+- The ENTER trigger is resolved: the claim is confirmed, refuted, or its dependency is closed.
+- Two consecutive probes changed nothing in the parent answer.
+- The finding stops moving any claim's status — diminishing return is an exit, not a reason to push harder.
+- The level's stated budget is spent.
+
+**Fold back on the way out.** Every EXIT writes one line saying what the excursion changed in the top-level answer, and `none — <reason>` is a legitimate, required outcome; an excursion whose result is silently dropped is a lost run. Update the parent claim node or axis digest with the result, then mirror the whole excursion into the loop ledger — `omo ulw-loop steer --kind annotate_ledger --evidence "<what the excursion observed>" --rationale "<what it changed, or none>"`, and `omo ulw-loop record-evidence --goal-id <id> --criterion-id <id> --status pass|fail|blocked --evidence "<artifact>"` when it settled a criterion. After a compaction, `omo ulw-loop status --json` plus `excursion-log.md` tell you which excursions are still open.
+
+**Anti-drift.** After every EXIT, re-read the core question in the journal and confirm the run still answers it. Three consecutive excursions that changed nothing end excursions for the run: converge on what you have.
+
4. Record the wave in `expansion-log.md`: spawned, markers gained, leads opened/closed.
+5. **Relay the user's steering to everyone.** When the user changes scope, cadence, target sources, language, or format mid-run, broadcast it to every live worker and member immediately and record the exact wording in `expansion-log.md`. Steering only you saw silently splits the swarm's assignment from the user's actual ask.
**Convergence — the only stop rules while this mode is active.** Run at least 2 expansion waves on any multi-faceted query before claiming convergence; then stop only when one holds:
@@ -188,6 +242,8 @@ End your reply with the ## EXPAND tail.")
- 3 consecutive waves produced no new actionable leads.
- Expansion depth reached 5 waves — pause, show the open leads, and ask the user whether to extend.
+**Never end the run on a worker's completion.** Workers finishing is not the deliverable; your synthesis is. Reserve the last fifth of the run's context and time for Phases 4-5 and stop opening waves the moment that reserve is threatened. A converged answer with two open leads beats nine finished workers and no report.
+
## Phase 3 — Verify contested claims by running code
Settle with executed code, not judgment, whenever sources disagree, a behavior is undocumented, a claim is performance- or compatibility-shaped, or the honest answer is "it should work". Spawn one verification worker per claim:
@@ -228,7 +284,7 @@ After convergence and all verifications, re-read the whole journal, start from `
```
# ULW-Research Synthesis: <query>
-Workers: <total> · Waves: <count> · Sources: <count> · Verifications: <count>
+Workers: <total> · Waves: <count> · Excursions: <count> · Sources: <count> (<unique domains> domains) · Verifications: <count> · Elapsed: <minutes> min
## Executive summary — 2-3 paragraphs answering the core question
## Findings by theme — per theme: consensus, evidence links, key quote (<20 words, attributed), verified yes/no
@@ -243,13 +299,52 @@ Workers: <total> · Waves: <count> · Sources: <count> · Verifications: <count>
`SYNTHESIS.md` is the citation source of truth for final materials: every claim carries inline `[Source N]` citations, and every high-risk non-code claim you assert must be a verified-claims row from Phase 3b. Assert nothing the gate left in the unresolved/refuted annex.
+**Write the skeleton early and fill it as claims lock.** The moment the format gate is answered, create the deliverable file with its approved section headings and a `STATUS: draft — <n> sections open` line at the top. An interrupted run must leave a partial report on disk, never an empty directory and a lost conversation.
+
+**Keep sourced numbers, assumptions, and derived results visibly apart.** Every quantitative claim carries its lineage: `MEASURED` (a number a source states, cited), `ASSUMED` (a coefficient, distribution, or scope you chose — say why), `DERIVED` (computed from those, showing the formula), plus a sensitivity line whenever the assumption moves the answer. Presenting a derived estimate with the confidence of a measured one is the most damaging thing this mode can ship.
+
+**Search in English, deliver in the user's language.** Retrieval stays English-first (Search craft), but the synthesis and every final material are written in the language the user wrote to you in unless they ask otherwise — and a translated report still quotes its original-language sources verbatim.
+
## Phase 5 — Final materials
-Default final materials to HTML/PDF unless the user explicitly asks for a different format: "report" / "document" → HTML first, with a PDF default available through weasyprint (`uv run --with weasyprint python`) · "pdf" → HTML first, then weasyprint · "slides" / "presentation" / "deck" → python-pptx · "html" / "webpage" → standalone HTML · "markdown only" → Markdown.
+The format answered at the Phase 0 gate is binding. Absent an explicit user override, render **both PDF and DOCX**:
+
+| Target | How |
+|---|---|
+| PDF (default) | Author the report as one self-contained HTML file, then print it headless: `chrome --headless --disable-gpu --no-pdf-header-footer --print-to-pdf=<out.pdf> file://<report.html>`. For CJK, embed a real webfont (Pretendard, Noto Sans KR) instead of trusting system fallbacks. `uv run --with weasyprint python` is the fallback renderer. |
+| DOCX (default) | `pandoc <report.md> -o <out.docx>`, adding `--reference-doc=<template.docx>` when the user has a house style; `uv run --with python-docx python` when pandoc is unavailable. Charts and Mermaid renders go in as images. |
+| Slides / deck | `uv run --with python-pptx python` — one claim per slide, a chart or diagram per claim. |
+| Standalone HTML / Markdown | The authored source itself. |
+
+Asset workers (background, parallel) — a research report without visuals is a wall of text nobody reads:
+
+- **Charts for every quantitative finding, computed from real data.** Pull the numbers into an actual table first (CSV/JSON under `$SESSION_DIR`), then plot from that table, never from prose. Follow the data-scientist tool doctrine — numpy always, Polars for filtering/sorting/transforms, DuckDB for joins/aggregations/window functions, never pandas — and load the `data-scientist` skill when this session has it: `uv run --with numpy --with polars --with duckdb --with pyarrow --with matplotlib python`. Keep `pyarrow` in that set — the DuckDB-to-Polars handoff (`.pl()`) fails without it, and `.df()` fails without pandas, so hand data across through `.pl()`, never `.df()`. Save to `$SESSION_DIR/assets/`.
+- **Mermaid graphs** for process, architecture, argument, timeline, and evidence-flow structure. Render each to SVG and confirm the file exists before the document references it.
+- **Generated visuals** through the imagegen skill when a diagram, cover, or narrative visual earns its place.
+- **Full-page screenshots** of the top 5-10 sources (browsing worker) as provenance you can show.
+
+**Verify the asset manifest before rendering.** List every asset the document references, assert each file exists and is non-empty on disk, and re-render whatever is missing. A document that renders with three broken diagrams is a document you will publish twice.
+
+Assembly worker — `task(category="deep", load_skills=["frontend", "visual-qa", "open-design", "data-scientist", "imagegen", "ulw-loop"], run_in_background=true, ...)`: before writing, read every available design and visualization skill and apply it — the report is a designed artifact, not a text dump. Use the template the user approved; absent a stronger house style the default skeleton is executive summary → key findings by theme → detailed analysis (quotes under 20 words with attribution, charts, Mermaid graphs, generated visuals, SHA-pinned permalinks, verification results) → comparative analysis when options compete → numbered sources with access dates → methodology appendix (workers, waves, searches, verifications, debate rounds) → correction log naming what verification overturned. Write it long and specific: every claim cites `[Source N]`, and the sources section lists every source the run actually used rather than a curated few.
+
+### The delivery gate — visual QA must PASS
+
+Nothing reaches the user until the gate passes:
+
+**Visual QA (always).** Render the produced artifact back to images — PDF pages to PNG, the HTML in a real browser — and look at them: missing or broken figures, clipped tables, overflowing CJK text, blank pages, unreadable chart labels, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.
+
+Then deliver: the artifact plus a compact chat-readable summary of what it says — the answer in a few sentences, the numbers that matter, and what to look at first. The document is the deliverable; the summary is what gets it read.
+
+### The closing briefing — every run ends with it
+
+The last thing the user reads states, in one compact block, what the answer is made of:
-Asset workers (background, parallel): actively use charts for quantitative findings (`uv run --with matplotlib --with plotly python`) saved by you to `$SESSION_DIR/assets/`; Mermaid graphs for process, architecture, argument, and evidence-flow structure; full-page screenshots of the top 5-10 sources (browsing skill); generated diagrams or editorial visuals with the imagegen skill when architecture, flows, or narrative framing benefit from bitmap assets.
+- **Sources.** How many sources the answer rests on and how many distinct domains they come from, counted from the journal's source ledger, not estimated. Name how many were primary sources and how many claims went to the unresolved/refuted annex.
+- **Effort.** Workers, waves, excursions, and verifications — the same counters as the `SYNTHESIS.md` header.
+- **Elapsed time, always.** Minutes from the run's start to delivery, derived from the session directory's own timestamp so it cannot be guessed: `python3 -c "import datetime,os,sys; s=datetime.datetime.strptime(os.path.basename(sys.argv[1]),'%Y%m%d-%H%M%S'); print(round((datetime.datetime.now()-s).total_seconds()/60))" "$SESSION_DIR"`.
-Assembly worker — `task(category="deep", load_skills=["frontend", "visual-qa", "open-design", "data-scientist", "imagegen", "ulw-loop"], run_in_background=true, ...)`: before writing, read every available design and visualization skill and apply it — the report is a designed artifact, not a text dump. Run HTML/PDF output through the ULW loop with frontend and visual-qa, then repair until the reviewer says no broken parts and gives approval. Structure: executive summary → key findings by theme → detailed analysis (quotes under 20 words with attribution, charts, Mermaid graphs, generated visuals, SHA-pinned permalinks, verification results) → comparative analysis when options compete → numbered sources with access dates → methodology appendix (workers, waves, searches, verifications). Every claim cites `[Source N]`.
+Never ship the artifact without this block, and never fill it from memory — every number in it is read off the journal.
+ If you stood up a team, disband it and confirm every worker is terminal before the final answer.
## Search craft
@@ -281,3 +376,18 @@ High-yield combinations: official docs (`site:<docs domain>`), GitHub implementa
| Two workers given the same angle | One unique angle per worker, always |
| Contested claim settled by judgment | Phase 3 — run code, capture output, verdict |
| Deliverable claims without citations | Every claim cites a source or a verification artifact |
+| Guessing the deliverable format instead of asking | The format gate is unconditional: propose PDF+DOCX plus the domain-fitting alternatives and the template, then wait before wave 1 |
+| A roster smaller than the harness ceiling | Fill every member slot; split the broadest axis until the team is full |
+| One tier across the whole roster | Mixed tiers by design — cheap breadth, premium attack |
+| Silently re-routing a "quick"/"fast" instruction | Routing words are literal; journal requested -> spawned -> fallback per slot |
+| A worker or member that starts its own research swarm | Members research one axis and report; orchestration is yours alone |
+| Expanding on an entity the first wave never disambiguated | Settle canonical identity and first-party source before any later spawn asserts it |
+| Batching findings into an end-of-run journal dump | Journal each return as it lands; the journal is what survives a compaction |
+| Ending the run because every worker finished | Reserve the final fifth of the run for synthesis and materials |
+| A derived estimate presented as a measured number | MEASURED / ASSUMED / DERIVED lineage on every quantitative claim, plus a sensitivity line |
+| Delivering before the delivery gates pass | Visual QA on rendered pages always, plus the harness's proofread gate — a typo the user finds means a gate did not run |
+| Referencing an asset that is not on disk | Verify the asset manifest before rendering; re-render whatever is missing |
+| Chasing an interesting find with no ENTER trigger | Excursions need a named trigger; everything else stays a queued lead |
+| An excursion that never came back, or drifted into a new mission | EXIT rules are unconditional; depth 3 means promote it to an axis or record it as a gap |
+| An excursion whose result was never folded back | Every EXIT writes what it changed in the top-level answer, `none` included, and mirrors into the loop ledger |
+| Delivering without the closing briefing | Source count, unique domains, and elapsed minutes are read off the journal and stated every time |
diff --git a/plugins/omo/test/sync-skills-test-support.mjs b/plugins/omo/test/sync-skills-test-support.mjs
index 14f76191..a2e068ea 100644
--- a/plugins/omo/test/sync-skills-test-support.mjs
+++ b/plugins/omo/test/sync-skills-test-support.mjs
@@ -8,6 +8,7 @@ export const expectedSkills = [
"ast-grep",
"coding-agent-sessions",
"comment-checker",
+ "data-scientist",
"debugging",
"frontend",
"git-master",
@@ -126,7 +127,13 @@ prefixes when identity is needed.
`;
const reviewWorkCodexGatePattern = new RegExp(reviewWorkCodexGate.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
+const ulwResearchOriginalDeliveryGates = "### The delivery gates \u2014 every gate must PASS, in order\n\nNothing reaches the user until the gates pass:\n\n1. **Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, clipped tables, overflowing CJK text, blank pages, unreadable chart labels, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.\n2. **Proofread gate \u2014 `task(category=\"writing\", ...)`.** Hand the final text to a dedicated `writing` worker whose only job is language: grammar, spelling, punctuation, terminology consistency, and whether the prose reads NATIVELY in the report's own language. It returns a defect list; fix every item and re-run the gate on the delta. Deliver only on a clean pass \u2014 this gate runs BEFORE the first delivery, not after the user finds the typo.";
+const ulwResearchCodexDeliveryGate = "### The delivery gate \u2014 visual QA must PASS\n\nNothing reaches the user until the gate passes:\n\n**Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, clipped tables, overflowing CJK text, blank pages, unreadable chart labels, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.";
+
export function removeCodexSkillOverlays(skillName, content) {
+ if (skillName === "ulw-research") {
+ return content.replace(ulwResearchCodexDeliveryGate, ulwResearchOriginalDeliveryGates);
+ }
if (skillName === "start-work") {
return content
.replace(startWorkCodexCompletion, startWorkOriginalCompletion)
diff --git a/plugins/omo/test/sync-skills.test.mjs b/plugins/omo/test/sync-skills.test.mjs
index dca272af..c67bd044 100644
--- a/plugins/omo/test/sync-skills.test.mjs
+++ b/plugins/omo/test/sync-skills.test.mjs
@@ -331,6 +331,18 @@ test("#given packaged Codex ulw-plan surfaces #when inspected #then dangerous sa
assert.doesNotMatch(componentWorkflow.content, dangerousBypassPattern, `${componentWorkflow.path} ships unsafe Codex bypass guidance`);
});
+test("#given packaged ulw-research skill #when Codex delivery gates are inspected #then the category-based proofread gate is stripped", async () => {
+ // given
+ const content = await readFile(join(root, "skills", "ulw-research", "SKILL.md"), "utf8");
+
+ // then the writing-category proofread gate never ships to Codex (no category concept there)
+ assert.doesNotMatch(content, /category="writing"/, "codex ulw-research ships the writing-category proofread gate");
+ assert.doesNotMatch(content, /Proofread gate/, "codex ulw-research still references the proofread gate");
+ // and the visual-QA delivery gate survives as the single gate
+ assert.match(content, /### The delivery gate \u2014 visual QA must PASS/u, "codex ulw-research lost the visual-QA delivery gate");
+ assert.match(content, /Visual QA \(always\)/, "codex ulw-research lost the visual-QA gate body");
+});
+
test("#given context-pressure-prone skills #when bundled for Codex #then the eagerly loaded payload stays budgeted", async () => {
// given
const skillsRoot = join(root, "skills");