Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type { TuiAgent } from './types'
|
||||
import { isTuiAgentEnabled } from './tui-agent-selection'
|
||||
import { assertJsonTextStructureWithinLimits } from './json-text-structure-limit'
|
||||
|
||||
/* eslint-disable max-lines -- Why: this is the single registry for non-interactive commit-message agents, their model discovery parsers, and UI capabilities. */
|
||||
|
||||
@@ -58,11 +57,6 @@ export type CommitMessageAgentCapability = {
|
||||
defaultModelId: string
|
||||
}
|
||||
|
||||
export const COMMIT_MESSAGE_MODEL_JSON_STRUCTURE_LIMITS = {
|
||||
structuralTokens: 64 * 1024,
|
||||
nestingDepth: 16
|
||||
} as const
|
||||
|
||||
const BASIC_THINKING_LEVELS: ThinkingLevel[] = [
|
||||
{ id: 'low', label: 'Low' },
|
||||
{ id: 'medium', label: 'Medium' },
|
||||
@@ -141,7 +135,6 @@ function withOpenAiThinking(
|
||||
|
||||
export function parseCodexModels(stdout: string): CommitMessageModel[] {
|
||||
try {
|
||||
assertJsonTextStructureWithinLimits(stdout, COMMIT_MESSAGE_MODEL_JSON_STRUCTURE_LIMITS)
|
||||
const parsed = JSON.parse(stdout) as {
|
||||
models?: {
|
||||
slug?: string
|
||||
|
||||
Reference in New Issue
Block a user