refactor: ts in packages use extensionless import

This commit is contained in:
imccyu
2026-06-17 23:17:38 +08:00
parent 20773e12bd
commit 6f6e0517d4
22 changed files with 62 additions and 62 deletions

View File

@@ -5,9 +5,9 @@
* @module @deepseek-ai/dsh-llm/assembler
*/
import { CallId } from './brand.ts'
import { assertNever } from './never.ts'
import type { ContentBlock, FinishReason, GenerateResult, Message, StreamChunk, TokenUsage } from './types.ts'
import { CallId } from './brand'
import { assertNever } from './never'
import type { ContentBlock, FinishReason, GenerateResult, Message, StreamChunk, TokenUsage } from './types'
interface PartialBlock {
blockType: string

View File

@@ -7,15 +7,15 @@
*/
import { Context, Service } from 'cordis'
import type { ContentBlock, GenerateOptions, GenerateResult, StreamChunk } from './types.ts'
import { BlockAssembler } from './assembler.ts'
import { HarnessError } from './error.ts'
import type { ContentBlock, GenerateOptions, GenerateResult, StreamChunk } from './types'
import { BlockAssembler } from './assembler'
import { HarnessError } from './error'
export * from './brand.ts'
export * from './never.ts'
export * from './error.ts'
export * from './types.ts'
export { BlockAssembler } from './assembler.ts'
export * from './brand'
export * from './never'
export * from './error'
export * from './types'
export { BlockAssembler } from './assembler'
declare module 'cordis' {
interface Context {

View File

@@ -19,7 +19,7 @@
* ```
*/
import type { CallId } from './brand.ts'
import type { CallId } from './brand'
/** Cache hint attached to a content block (provider-interpreted). */
export type CacheHint = 'ephemeral'