restore public type shims (#109)
Co-authored-by: Seunghyeok Lee <seunghyeok2915@users.noreply.github.com>
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
// Stub — SDK runtime types not included in source snapshot
|
export type EffortLevel = 'low' | 'medium' | 'high' | 'max'
|
||||||
export type {}
|
|
||||||
|
|||||||
@@ -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'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user