refactor: point agent sdk exports at ts sources
This commit is contained in:
@@ -19,16 +19,16 @@ import type {
|
|||||||
export type {
|
export type {
|
||||||
SDKControlRequest,
|
SDKControlRequest,
|
||||||
SDKControlResponse,
|
SDKControlResponse,
|
||||||
} from './sdk/controlTypes.js'
|
} from './sdk/controlTypes.ts'
|
||||||
// Re-export core types (common serializable types)
|
// Re-export core types (common serializable types)
|
||||||
export * from './sdk/coreTypes.js'
|
export * from './sdk/coreTypes.ts'
|
||||||
// Re-export runtime types (callbacks, interfaces with methods)
|
// Re-export runtime types (callbacks, interfaces with methods)
|
||||||
export * from './sdk/runtimeTypes.js'
|
export * from './sdk/runtimeTypes.ts'
|
||||||
|
|
||||||
// Re-export settings types (generated from settings JSON schema)
|
// Re-export settings types (generated from settings JSON schema)
|
||||||
export type { Settings } from './sdk/settingsTypes.generated.js'
|
export type { Settings } from './sdk/settingsTypes.generated.ts'
|
||||||
// Re-export tool types (all marked @internal until SDK API stabilizes)
|
// Re-export tool types (all marked @internal until SDK API stabilizes)
|
||||||
export * from './sdk/toolTypes.js'
|
export * from './sdk/toolTypes.ts'
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// Functions
|
// Functions
|
||||||
@@ -39,7 +39,7 @@ import type {
|
|||||||
SDKResultMessage,
|
SDKResultMessage,
|
||||||
SDKSessionInfo,
|
SDKSessionInfo,
|
||||||
SDKUserMessage,
|
SDKUserMessage,
|
||||||
} from './sdk/coreTypes.js'
|
} from './sdk/coreTypes.ts'
|
||||||
// Import types needed for function signatures
|
// Import types needed for function signatures
|
||||||
import type {
|
import type {
|
||||||
AnyZodRawShape,
|
AnyZodRawShape,
|
||||||
@@ -59,7 +59,7 @@ import type {
|
|||||||
SdkMcpToolDefinition,
|
SdkMcpToolDefinition,
|
||||||
SessionMessage,
|
SessionMessage,
|
||||||
SessionMutationOptions,
|
SessionMutationOptions,
|
||||||
} from './sdk/runtimeTypes.js'
|
} from './sdk/runtimeTypes.ts'
|
||||||
|
|
||||||
export type {
|
export type {
|
||||||
ListSessionsOptions,
|
ListSessionsOptions,
|
||||||
|
|||||||
Reference in New Issue
Block a user