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 {}
export type EffortLevel = 'low' | 'medium' | 'high' | 'max'

View File

@@ -1,18 +1,22 @@
// Stub — original type not included in source snapshot
export interface ConnectorTextBlock {
export type ConnectorTextBlock = {
type: 'connector_text'
text: string
connector_text: string
connector?: string
}
export interface ConnectorTextDelta {
export type ConnectorTextDelta = {
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 (
typeof block === 'object' &&
block !== null &&
(block as Record<string, unknown>).type === 'connector_text'
typeof value === 'object' &&
value !== null &&
'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 = 'tool-results'
export const OUTPUTS_SUBDIR = 'outputs'
export interface PersistedFile {
path: string
content: string
size: number
export type PersistedFile = {
filename: string
file_id?: string
}
export type FailedPersistence = {
filename: string
error: string
}
export type FilesPersistedEventData = {
files: PersistedFile[]
failed: FailedPersistence[]
}
export type TurnStartTime = number