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 {}
|
||||
export type EffortLevel = 'low' | 'medium' | 'high' | 'max'
|
||||
|
||||
@@ -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'
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user