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

@@ -9,13 +9,13 @@
import { Context, Service } from 'cordis'
import { isAbsolute } from 'node:path'
import type { ContentBlock, Message, MessageSource } from '@deepseek-ai/dsh-llm'
import { SessionId } from './types.ts'
import type { CreateSessionOptions, SessionEvent, SessionEventMap, SessionEventType, SessionHeader } from './types.ts'
import { isJsonValue } from './json.ts'
import { SessionId } from './types'
import type { CreateSessionOptions, SessionEvent, SessionEventMap, SessionEventType, SessionHeader } from './types'
import { isJsonValue } from './json'
export * from './types.ts'
export { isJsonValue } from './json.ts'
export { interruptedTurnClosers } from './repair.ts'
export * from './types'
export { isJsonValue } from './json'
export { interruptedTurnClosers } from './repair'
declare module 'cordis' {
interface Context {

View File

@@ -36,7 +36,7 @@
*/
import type { CallId } from '@deepseek-ai/dsh-llm'
import type { SessionEvent } from './types.ts'
import type { SessionEvent } from './types'
/**
* Scan `events` for an open turn/step at the tail and return the synthetic