refactor(llm-deepseek)!: rename the provider route to deepseek-official

The native adapter's route was named deepseek, colliding with pi-ai's
catalog provider of the same name, so the two DeepSeek paths could never
be mounted side by side. The web settings page needs both configurable at
once. Compositions, fixtures, goldens, scaffolding defaults, and docs all
move together (pre-release, no shim); TUI/session-query-spill/
missing-credential goldens re-recorded through their keyless refresh
modes because provider-name length shifts box padding and spill
truncation points.
This commit is contained in:
Yichen Jiang
2026-07-29 16:36:07 +08:00
parent 7f1496c996
commit fee12f1af0
239 changed files with 823 additions and 820 deletions

View File

@@ -11,7 +11,7 @@ import type { PackageManagerName, RunInterface } from '@deepseek-ai/dsh-helper'
export interface CreateArgs {
directory?: string
description?: string
provider?: 'deepseek' | 'custom'
provider?: 'deepseek-official' | 'custom'
baseURL?: string
apiKey?: string
model?: string
@@ -27,7 +27,7 @@ export interface CreateArgs {
interface CommanderCreateOptions {
description?: string
provider?: 'deepseek' | 'custom'
provider?: 'deepseek-official' | 'custom'
baseUrl?: string
apiKey?: string
model?: string
@@ -57,7 +57,7 @@ function createProgram(): Command {
.argument('[directory]')
.option('-h, --help')
.option('--description <text>')
.addOption(new Option('--provider <name>').choices(['deepseek', 'custom']))
.addOption(new Option('--provider <name>').choices(['deepseek-official', 'custom']))
.option('--base-url <url>')
.option('--api-key <key>')
.option('--model <name>')

View File

@@ -24,7 +24,7 @@ export interface ProjectAnswers {
directory: string
name: string
description: string
provider: 'deepseek' | 'custom'
provider: 'deepseek-official' | 'custom'
baseURL: string
apiKey: string
model: string
@@ -142,14 +142,14 @@ const PROJECT_QUESTION_STEPS: readonly WizardStep<ProjectAnswerState>[] = [
apply: (state, value) => { state.description = value },
}),
questionStep({
question: () => new SelectQuestion<'deepseek' | 'custom'>({
question: () => new SelectQuestion<'deepseek-official' | 'custom'>({
id: 'provider',
message: 'Model provider',
options: [
{ value: 'deepseek', label: 'DeepSeek' },
{ value: 'deepseek-official', label: 'DeepSeek' },
{ value: 'custom', label: 'Custom endpoint (pi-ai)' },
],
initialValue: 'deepseek',
initialValue: 'deepseek-official',
}),
prefilled: state => state.args.provider,
apply: (state, value) => { state.provider = value },

View File

@@ -18,7 +18,7 @@ import type { CreateArgs } from './args.ts'
interface HeadlessCreateSpec {
directory?: string
description?: string
provider?: 'deepseek' | 'custom'
provider?: 'deepseek-official' | 'custom'
baseURL?: string
apiKey?: string
model?: string

View File

@@ -2,7 +2,7 @@ Usage: create-sdk [directory] [options]
Options:
--description <text>
--provider <deepseek|custom>
--provider <deepseek-official|custom>
--base-url <url>
--api-key <key>
--model <name>