Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
249 changes: 151 additions & 98 deletions apps/ade-cli/package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion apps/ade-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
"test": "vitest run"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.2.139",
"@anthropic-ai/claude-agent-sdk": "^0.3.170",
"@anthropic-ai/sdk": "^0.103.0",
"@cursor/sdk": "^1.0.13",
"@factory/droid-sdk": "^0.2.0",
"@linear/sdk": "^84.0.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@openai/codex": "0.133.0",
"@opencode-ai/sdk": "^1.15.5",
"@wize-logic/nodejs-rfb": "^4.2.0",
Expand Down
10 changes: 8 additions & 2 deletions apps/ade-cli/src/tuiClient/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ import type {
} from "./types";

const PURPLE = theme.color.accent;
const EFFORTS = ["low", "medium", "high", "xhigh", "max"];
const EFFORTS = ["low", "medium", "high", "xhigh", "max", "ultracode"];
const PROVIDER_OPTIONS: Array<{ value: AdeCodeProvider; label: string }> = [
{ value: "claude", label: "Claude" },
{ value: "codex", label: "Codex" },
Expand Down Expand Up @@ -722,10 +722,14 @@ function modelCatalogClientRefreshTtlMs(provider?: AgentChatModelCatalogRefreshP

function firstReasoningEffortForModel(model: AgentChatModelInfo | null | undefined, provider: AdeCodeProvider): string | null {
const efforts = model?.reasoningEfforts?.map((entry) => entry.effort).filter(Boolean) ?? [];
const modelId = `${model?.modelId ?? ""} ${model?.id ?? ""} ${model?.displayName ?? ""}`.toLowerCase();
if (modelId.includes("fable") && efforts.includes("high")) return "high";
if (efforts.includes(DEFAULT_CODEX_REASONING_EFFORT)) return DEFAULT_CODEX_REASONING_EFFORT;
if (efforts.length) return efforts[0] ?? null;
const descriptor = model?.modelId || model?.id ? getModelById(model.modelId ?? model.id) : undefined;
const descriptorEfforts = descriptor?.reasoningTiers ?? [];
const descriptorId = `${descriptor?.id ?? ""} ${descriptor?.providerModelId ?? ""} ${descriptor?.displayName ?? ""}`.toLowerCase();
if (descriptorId.includes("fable") && descriptorEfforts.includes("high")) return "high";
if (descriptorEfforts.includes(DEFAULT_CODEX_REASONING_EFFORT)) return DEFAULT_CODEX_REASONING_EFFORT;
if (descriptorEfforts.length) return descriptorEfforts[0] ?? null;
return provider === "codex" ? DEFAULT_CODEX_REASONING_EFFORT : null;
Expand Down Expand Up @@ -761,7 +765,9 @@ function fallbackModelStatePatch(provider: AdeCodeProvider): Pick<AdeCodeModelSt
model: descriptor ? getRuntimeModelRefForDescriptor(descriptor, registryProvider) : "gpt-5.5",
modelId: descriptor?.id ?? null,
displayName: descriptor?.displayName ?? providerLabel(provider),
reasoningEffort: descriptor?.reasoningTiers?.[0] ?? (provider === "codex" ? DEFAULT_CODEX_REASONING_EFFORT : null),
reasoningEffort: descriptor?.id.includes("fable") && descriptor.reasoningTiers?.includes("high")
? "high"
: descriptor?.reasoningTiers?.[0] ?? (provider === "codex" ? DEFAULT_CODEX_REASONING_EFFORT : null),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,23 @@ function entriesFromCatalog(
seen.add(model.id);
const family = providerFromCatalogGroup(String(model.groupKey || group.key), model.family);
const authStatus = modelPickerProviderAuthStatus(aiStatus, family);
const catalogSubProvider = family === "cursor" || family === "droid"
? subsection.label || model.providerName || provider.displayName || undefined
: family === "claude" || family === "codex"
? providerLabel(family)
: model.providerName || provider.displayName || subsection.label || undefined;
const catalogSubProviderKey = family === "cursor" || family === "droid"
? subsection.key || model.providerId || provider.key || undefined
: family === "claude" || family === "codex"
? family
: model.providerId || provider.key || subsection.key || undefined;
entries.push({
modelId: model.id,
runtimeModelId: model.runtimeModelId || model.id,
displayName: model.displayName,
family,
subProvider: family === "cursor" || family === "droid"
? subsection.label || model.providerName || provider.displayName || undefined
: model.providerName || provider.displayName || subsection.label || undefined,
subProviderKey: family === "cursor" || family === "droid"
? subsection.key || model.providerId || provider.key || undefined
: model.providerId || provider.key || subsection.key || undefined,
subProvider: catalogSubProvider,
subProviderKey: catalogSubProviderKey,
isFavorite: favoritesSet.has(model.id),
isAvailable: modelAvailability(authStatus, model.isAvailable),
authStatus,
Expand Down Expand Up @@ -275,7 +281,10 @@ function entryFromModelInfo(
subProvider: openCodeProviderLabel(descriptor.openCodeProviderId),
subProviderKey: descriptor.openCodeProviderId,
}
: {}),
: {
subProvider: providerLabel(provider),
subProviderKey: provider,
}),
isFavorite: favoritesSet.has(modelId),
isAvailable: modelAvailability(authStatus),
authStatus,
Expand Down
123 changes: 79 additions & 44 deletions apps/desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"version:release": "node ./scripts/set-release-version.mjs"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.2.139",
"@anthropic-ai/claude-agent-sdk": "^0.3.170",
"@anthropic-ai/sdk": "^0.103.0",
"@cursor/sdk": "^1.0.13",
"@factory/droid-sdk": "^0.2.0",
"@floating-ui/react": "^0.27.19",
Expand All @@ -62,6 +63,7 @@
"@lobehub/icons": "^5.2.0",
"@lobehub/icons-static-svg": "^1.84.0",
"@lobehub/ui": "^5.6.3",
"@modelcontextprotocol/sdk": "^1.29.0",
"@novnc/novnc": "^1.7.0",
"@openai/codex": "0.133.0",
"@opencode-ai/sdk": "^1.15.5",
Expand Down
Loading
Loading