feat: 完成大部分操作

This commit is contained in:
claude-code-best
2026-03-31 21:40:37 +08:00
parent 3d4cb096d1
commit c4d92178b7
22 changed files with 561 additions and 98 deletions

28
src/types/global.d.ts vendored
View File

@@ -58,4 +58,30 @@ declare function launchUltraplan(...args: unknown[]): void
declare type T = any
// Tungsten (internal)
declare function TungstenPill(): JSX.Element | null
declare function TungstenPill(props?: { key?: string; selected?: boolean }): JSX.Element | null
// ============================================================================
// Build-time constants — replaced by Bun bundler, polyfilled at runtime
// Using `string` (not literal types) so comparisons don't produce TS2367
declare const BUILD_TARGET: string
declare const BUILD_ENV: string
declare const INTERFACE_TYPE: string
// ============================================================================
// Bun text/file loaders — allow importing non-TS assets as strings
declare module '*.md' {
const content: string
export default content
}
declare module '*.txt' {
const content: string
export default content
}
declare module '*.html' {
const content: string
export default content
}
declare module '*.css' {
const content: string
export default content
}