refactor: ts in packages use extensionless import
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user