style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -1,9 +1,9 @@
import { getFeatureValue_CACHED_MAY_BE_STALE } from "src/services/analytics/growthbook"
import { getFeatureValue_CACHED_MAY_BE_STALE } from 'src/services/analytics/growthbook'
import simple_plan from './prompts/simple_plan.txt'
import visual_plan from './prompts/visual_plan.txt'
import three_subagents_with_critique from './prompts/three_subagents_with_critique.txt'
export type PromptIdentifier = keyof typeof PROMPTS
export type PromptIdentifier = keyof typeof PROMPTS
const DEFAULT_PROMPT_IDENTIFIER = 'simple_plan'
@@ -18,8 +18,13 @@ export function isValidPromptIdentifier(value: string): boolean {
}
export function getPromptIdentifier(): PromptIdentifier {
const promptIdentifier = getFeatureValue_CACHED_MAY_BE_STALE('tengu_ultraplan_prompt_identifier', DEFAULT_PROMPT_IDENTIFIER)
return isValidPromptIdentifier(promptIdentifier) ? promptIdentifier : DEFAULT_PROMPT_IDENTIFIER
const promptIdentifier = getFeatureValue_CACHED_MAY_BE_STALE(
'tengu_ultraplan_prompt_identifier',
DEFAULT_PROMPT_IDENTIFIER,
)
return isValidPromptIdentifier(promptIdentifier)
? promptIdentifier
: DEFAULT_PROMPT_IDENTIFIER
}
export function getPromptText(id: PromptIdentifier): string {
@@ -28,9 +33,15 @@ export function getPromptText(id: PromptIdentifier): string {
const DEFAULT_DIALOG = {
timeEstimate: 'a few minutes',
dialogBody: 'Interactive planning on the web where you can edit and leave targeted comments on Claude\'s plan.',
dialogBody:
"Interactive planning on the web where you can edit and leave targeted comments on Claude's plan.",
dialogPipeline: 'Plan → Edit → Execute',
usageBlurb: ['Remote plan mode with rich web editing experience.', 'Runs in Claude Code on the web. When the plan is ready,', 'you can execute it in the web session or send it back here.', 'You can continue to work while the plan is generated remotely.'],
usageBlurb: [
'Remote plan mode with rich web editing experience.',
'Runs in Claude Code on the web. When the plan is ready,',
'you can execute it in the web session or send it back here.',
'You can continue to work while the plan is generated remotely.',
],
}
export const DIALOG_CONFIG = {
@@ -38,9 +49,15 @@ export const DIALOG_CONFIG = {
visual_plan: DEFAULT_DIALOG,
three_subagents_with_critique: {
timeEstimate: '~1030 min',
dialogBody: 'Interactive planning on the web where you can edit and leave targeted comments on Claude\'s plan.',
dialogBody:
"Interactive planning on the web where you can edit and leave targeted comments on Claude's plan.",
dialogPipeline: 'Scope → Critique → Edit → Execute',
usageBlurb: ['Advanced multi-agent plan mode.', 'Runs in Claude Code on the web. When the plan is ready,', 'you can execute it in the web session or send it back here.', 'You can continue to work while the plan is generated remotely.'],
usageBlurb: [
'Advanced multi-agent plan mode.',
'Runs in Claude Code on the web. When the plan is ready,',
'you can execute it in the web session or send it back here.',
'You can continue to work while the plan is generated remotely.',
],
},
}