Merge branch 'v0.11.0rc' into claude/issue-469-20260113-1744

This commit is contained in:
webdevcody
2026-01-13 14:59:14 -05:00
78 changed files with 2645 additions and 1369 deletions

View File

@@ -79,6 +79,7 @@ export {
type ModelAlias,
type CodexModelId,
type AgentModel,
type ModelId,
} from './model.js';
// Event types

View File

@@ -4,7 +4,7 @@
* Types for validating GitHub issues against the codebase using Claude SDK.
*/
import type { ModelAlias } from './model.js';
import type { ModelId } from './model.js';
/**
* Verdict from issue validation
@@ -137,8 +137,8 @@ export type IssueValidationEvent =
issueTitle: string;
result: IssueValidationResult;
projectPath: string;
/** Model used for validation (opus, sonnet, haiku) */
model: ModelAlias;
/** Model used for validation */
model: ModelId;
}
| {
type: 'issue_validation_error';
@@ -162,8 +162,8 @@ export interface StoredValidation {
issueTitle: string;
/** ISO timestamp when validation was performed */
validatedAt: string;
/** Model used for validation (opus, sonnet, haiku) */
model: ModelAlias;
/** Model used for validation */
model: ModelId;
/** The validation result */
result: IssueValidationResult;
/** ISO timestamp when user viewed this validation (undefined = not yet viewed) */

View File

@@ -1,6 +1,9 @@
/**
* Model alias mapping for Claude models
*/
import type { CursorModelId } from './cursor-models.js';
import type { OpencodeModelId } from './opencode-models.js';
export const CLAUDE_MODEL_MAP: Record<string, string> = {
haiku: 'claude-haiku-4-5-20251001',
sonnet: 'claude-sonnet-4-5-20250929',
@@ -74,3 +77,26 @@ export type CodexModelId = (typeof CODEX_MODEL_MAP)[keyof typeof CODEX_MODEL_MAP
* Represents available models across providers
*/
export type AgentModel = ModelAlias | CodexModelId;
/**
* Dynamic provider model IDs discovered at runtime (provider/model format)
*/
export type DynamicModelId = `${string}/${string}`;
/**
* Provider-prefixed model IDs used for routing
*/
export type PrefixedCursorModelId = `cursor-${string}`;
export type PrefixedOpencodeModelId = `opencode-${string}`;
/**
* ModelId - Unified model identifier across providers
*/
export type ModelId =
| ModelAlias
| CodexModelId
| CursorModelId
| OpencodeModelId
| DynamicModelId
| PrefixedCursorModelId
| PrefixedOpencodeModelId;

View File

@@ -174,7 +174,7 @@ export interface ContentBlock {
*/
export interface ProviderMessage {
type: 'assistant' | 'user' | 'error' | 'result';
subtype?: 'success' | 'error';
subtype?: 'success' | 'error' | 'error_max_turns' | 'error_max_structured_output_retries';
session_id?: string;
message?: {
role: 'user' | 'assistant';
@@ -183,6 +183,8 @@ export interface ProviderMessage {
result?: string;
error?: string;
parent_tool_use_id?: string | null;
/** Structured output from SDK when using outputFormat */
structured_output?: Record<string, unknown>;
}
/**

View File

@@ -6,7 +6,7 @@
* (for file I/O via SettingsService) and the UI (for state management and sync).
*/
import type { ModelAlias, AgentModel, CodexModelId } from './model.js';
import type { ModelAlias, ModelId } from './model.js';
import type { CursorModelId } from './cursor-models.js';
import { CURSOR_MODEL_MAP, getAllCursorModelIds } from './cursor-models.js';
import type { OpencodeModelId } from './opencode-models.js';
@@ -114,8 +114,8 @@ const DEFAULT_CODEX_ADDITIONAL_DIRS: string[] = [];
* - Cursor models: Handle thinking internally
*/
export interface PhaseModelEntry {
/** The model to use (Claude alias, Cursor model ID, or Codex model ID) */
model: ModelAlias | CursorModelId | CodexModelId;
/** The model to use (supports Claude, Cursor, Codex, OpenCode, and dynamic provider IDs) */
model: ModelId;
/** Extended thinking level (only applies to Claude models, defaults to 'none') */
thinkingLevel?: ThinkingLevel;
/** Reasoning effort level (only applies to Codex models, defaults to 'none') */
@@ -379,6 +379,8 @@ export interface GlobalSettings {
defaultPlanningMode: PlanningMode;
/** Default: require manual approval before generating */
defaultRequirePlanApproval: boolean;
/** Default model and thinking level for new feature cards */
defaultFeatureModel: PhaseModelEntry;
// Audio Preferences
/** Mute completion notification sound */
@@ -706,6 +708,7 @@ export const DEFAULT_GLOBAL_SETTINGS: GlobalSettings = {
useWorktrees: true,
defaultPlanningMode: 'skip',
defaultRequirePlanApproval: false,
defaultFeatureModel: { model: 'opus' },
muteDoneSound: false,
phaseModels: DEFAULT_PHASE_MODELS,
enhancementModel: 'sonnet',