restore public type shims (#109)

Co-authored-by: Seunghyeok Lee <seunghyeok2915@users.noreply.github.com>
This commit is contained in:
Seunghyeok Lee
2026-04-03 22:20:37 +09:00
committed by GitHub
parent 36d1c45954
commit 7668abaed0
3 changed files with 28 additions and 17 deletions

View File

@@ -1,2 +1 @@
// Stub — SDK runtime types not included in source snapshot export type EffortLevel = 'low' | 'medium' | 'high' | 'max'
export type {}

View File

@@ -1,18 +1,22 @@
// Stub — original type not included in source snapshot export type ConnectorTextBlock = {
export interface ConnectorTextBlock {
type: 'connector_text' type: 'connector_text'
text: string connector_text: string
connector?: string
} }
export interface ConnectorTextDelta { export type ConnectorTextDelta = {
type: 'connector_text_delta' type: 'connector_text_delta'
text: string connector_text: string
connector?: string
} }
export function isConnectorTextBlock(block: unknown): block is ConnectorTextBlock { export function isConnectorTextBlock(
value: unknown,
): value is ConnectorTextBlock {
return ( return (
typeof block === 'object' && typeof value === 'object' &&
block !== null && value !== null &&
(block as Record<string, unknown>).type === 'connector_text' 'connector_text' in value &&
typeof (value as { connector_text?: unknown }).connector_text === 'string'
) )
} }

View File

@@ -1,10 +1,18 @@
// Stub — types not included in source snapshot export const OUTPUTS_SUBDIR = 'outputs'
export const OUTPUTS_SUBDIR = 'tool-results'
export interface PersistedFile { export type PersistedFile = {
path: string filename: string
content: string file_id?: string
size: number }
export type FailedPersistence = {
filename: string
error: string
}
export type FilesPersistedEventData = {
files: PersistedFile[]
failed: FailedPersistence[]
} }
export type TurnStartTime = number export type TurnStartTime = number