@supersolutions/super-chat-core 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anthropic.js +2 -2
- package/dist/{chunk-32DPF33V.js → chunk-CJ6WV4KB.js} +82 -20
- package/dist/chunk-CJ6WV4KB.js.map +1 -0
- package/dist/{chunk-MHGENDQX.js → chunk-HKGDZQS6.js} +188 -101
- package/dist/chunk-HKGDZQS6.js.map +1 -0
- package/dist/{chunk-JMM3X3GB.js → chunk-ZMPT7BBM.js} +58 -41
- package/dist/chunk-ZMPT7BBM.js.map +1 -0
- package/dist/index.d.ts +72 -12
- package/dist/index.js +485 -201
- package/dist/index.js.map +1 -1
- package/dist/openai.d.ts +0 -5
- package/dist/openai.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-32DPF33V.js.map +0 -1
- package/dist/chunk-JMM3X3GB.js.map +0 -1
- package/dist/chunk-MHGENDQX.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -771,6 +771,64 @@ declare function withQuotes(text: string, quotes: readonly DocumentQuoteRef[]):
|
|
|
771
771
|
/** Read quotes back off a message, for re-rendering the chips in history. */
|
|
772
772
|
declare function quotesOf(metadata: Record<string, unknown> | undefined): DocumentQuoteRef[];
|
|
773
773
|
|
|
774
|
+
/** Words the user selected in the conversation and added to the next message. */
|
|
775
|
+
type ExcerptClip = {
|
|
776
|
+
kind: "excerpt";
|
|
777
|
+
/** Stable within a composer, so the same selection added twice is one chip. */
|
|
778
|
+
id: string;
|
|
779
|
+
text: string;
|
|
780
|
+
/** Whose message the words were in, and which one when the host knows. */
|
|
781
|
+
from?: {
|
|
782
|
+
role: "user" | "assistant";
|
|
783
|
+
messageId?: string;
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
/** One comment pinned on a document. */
|
|
787
|
+
type AnnotationMark = {
|
|
788
|
+
id: string;
|
|
789
|
+
/** The comment, in the author's own words. */
|
|
790
|
+
note: string;
|
|
791
|
+
/** The words of the document it is pinned to; absent for a comment on a whole block. */
|
|
792
|
+
quote?: string;
|
|
793
|
+
blockId?: string;
|
|
794
|
+
author?: string;
|
|
795
|
+
/** Replies in the thread, oldest first. */
|
|
796
|
+
replies?: {
|
|
797
|
+
author?: string;
|
|
798
|
+
text: string;
|
|
799
|
+
}[];
|
|
800
|
+
};
|
|
801
|
+
/** The comments pinned on one document, ready to ride with the next message. */
|
|
802
|
+
type AnnotationClip = {
|
|
803
|
+
kind: "annotations";
|
|
804
|
+
/** Stable per document, so a second batch for the same document replaces the first. */
|
|
805
|
+
id: string;
|
|
806
|
+
docId: string;
|
|
807
|
+
title: string;
|
|
808
|
+
/** The document's revision when the comments were gathered, when the editor says. */
|
|
809
|
+
revision?: number;
|
|
810
|
+
marks: AnnotationMark[];
|
|
811
|
+
};
|
|
812
|
+
type ContextClip = ExcerptClip | AnnotationClip;
|
|
813
|
+
/** Key under `Message.metadata` where clips are stored for re-rendering. */
|
|
814
|
+
declare const CLIPS_METADATA_KEY = "contextClips";
|
|
815
|
+
/** A clip's text is cut here when it is flattened: one selection is context, not a whole document. */
|
|
816
|
+
declare const MAX_CLIP_CHARS = 8000;
|
|
817
|
+
/** Render clips as the prefix of the user's message. */
|
|
818
|
+
declare function formatClips(clips: readonly ContextClip[]): string;
|
|
819
|
+
/** Prefix `text` with the clips, keeping a blank line between them. */
|
|
820
|
+
declare function withClips(text: string, clips: readonly ContextClip[]): string;
|
|
821
|
+
/**
|
|
822
|
+
* The user's own words, with the clips' prefix taken off: what a message bubble shows beside the
|
|
823
|
+
* chips. A text that does not start with exactly what `withClips` would have written (an edited
|
|
824
|
+
* message, a thread from before clips) comes back unchanged.
|
|
825
|
+
*/
|
|
826
|
+
declare function stripClips(text: string, clips: readonly ContextClip[]): string;
|
|
827
|
+
/** Read clips back off a message, for re-rendering the chips in history. */
|
|
828
|
+
declare function clipsOf(metadata: Record<string, unknown> | undefined): ContextClip[];
|
|
829
|
+
/** The words a chip shows for a clip. Plain text, one line, cut to `limit` characters. */
|
|
830
|
+
declare function clipPreview(clip: ContextClip, limit?: number): string;
|
|
831
|
+
|
|
774
832
|
type AgentErrorKind = "auth" | "rate-limit" | "overloaded" | "timeout" | "network" | "invalid-request" | "content-filter" | "context-length" | "not-supported" | "cancelled" | "tool-error" | "unknown";
|
|
775
833
|
declare class AgentError extends Error {
|
|
776
834
|
readonly kind: AgentErrorKind;
|
|
@@ -797,10 +855,6 @@ declare class AgentError extends Error {
|
|
|
797
855
|
};
|
|
798
856
|
}
|
|
799
857
|
declare function isAgentError(e: unknown): e is AgentError;
|
|
800
|
-
/**
|
|
801
|
-
* Classify anything thrown. Used for errors that never went through an adapter
|
|
802
|
-
* (a DNS failure, an aborted signal) and as the fallback in adapter mapping.
|
|
803
|
-
*/
|
|
804
858
|
declare function toAgentError(e: unknown, provider?: string): AgentError;
|
|
805
859
|
/** HTTP status → kind. Shared by every adapter so classification can't drift. */
|
|
806
860
|
declare function kindFromStatus(status: number): AgentErrorKind;
|
|
@@ -888,11 +942,6 @@ declare function withRetry<T>(run: (attempt: number) => Promise<T>, opts?: {
|
|
|
888
942
|
provider?: string;
|
|
889
943
|
onRetry?: (attempt: number, err: AgentError, delayMs: number) => void;
|
|
890
944
|
}): Promise<T>;
|
|
891
|
-
/**
|
|
892
|
-
* Turn a non-OK `Response` into a typed `AgentError`, pulling the provider's own
|
|
893
|
-
* message out of the body so the user sees "model X does not exist" rather than
|
|
894
|
-
* "HTTP 404".
|
|
895
|
-
*/
|
|
896
945
|
declare function errorFromResponse(res: Response, provider: string): Promise<AgentError>;
|
|
897
946
|
|
|
898
947
|
type SSEMessage = {
|
|
@@ -911,6 +960,9 @@ declare class SSEDecoder {
|
|
|
911
960
|
private data;
|
|
912
961
|
private id;
|
|
913
962
|
private retry;
|
|
963
|
+
private chars;
|
|
964
|
+
/** Characters held for the event being built (its data lines, not yet dispatched). */
|
|
965
|
+
get size(): number;
|
|
914
966
|
/** Feed one line (terminator already removed). Returns an event when dispatched. */
|
|
915
967
|
push(line: string): SSEMessage | null;
|
|
916
968
|
/** Dispatch whatever has accumulated. Called on a blank line and at stream end. */
|
|
@@ -921,7 +973,9 @@ declare class SSEDecoder {
|
|
|
921
973
|
* makes multi-byte characters split across chunks safe — decoding each chunk
|
|
922
974
|
* independently corrupts any emoji or CJK text that straddles a boundary.
|
|
923
975
|
*/
|
|
924
|
-
declare function parseSSE(stream: ReadableStream<Uint8Array
|
|
976
|
+
declare function parseSSE(stream: ReadableStream<Uint8Array>, opts?: {
|
|
977
|
+
maxEventChars?: number;
|
|
978
|
+
}): AsyncGenerator<SSEMessage>;
|
|
925
979
|
/**
|
|
926
980
|
* SSE messages whose `data` is JSON, skipping the `[DONE]` sentinel that
|
|
927
981
|
* OpenAI's Chat Completions stream terminates with.
|
|
@@ -1568,7 +1622,13 @@ declare class SkillRegistry {
|
|
|
1568
1622
|
}
|
|
1569
1623
|
|
|
1570
1624
|
declare function tokenize(input: string): string[];
|
|
1571
|
-
|
|
1625
|
+
type PreparedQuery = {
|
|
1626
|
+
q: string;
|
|
1627
|
+
queryTokens: Set<string>;
|
|
1628
|
+
};
|
|
1629
|
+
declare function scoreSkill(skill: Skill, query: string,
|
|
1630
|
+
/** `matchSkills` tokenizes the query once for all skills and passes it here. */
|
|
1631
|
+
prepared?: PreparedQuery): {
|
|
1572
1632
|
score: number;
|
|
1573
1633
|
reason: string;
|
|
1574
1634
|
sections: SkillSection[];
|
|
@@ -3190,4 +3250,4 @@ declare function createMcpSkill(serverName: string, defs: readonly ToolDefinitio
|
|
|
3190
3250
|
*/
|
|
3191
3251
|
declare function elicitViaCard(requestCard: (spec: CardSpec) => Promise<unknown>): McpElicitHandler;
|
|
3192
3252
|
|
|
3193
|
-
export { A2UI_VERSION, type A2uiMessage, ANTHROPIC_OFFICIAL_PROFILE, AgentError, type AgentErrorKind, type AppAction, type AppStateBinding, type AppStateSourceOptions, type AppliedEdit, BUILTIN_CARDS, type BindingScope, type BudgetShares, type BuiltContext, type BuiltinCard, type BuiltinCardKind, CARD_COMPONENT, CARD_ENTRY_PREFIX, CARD_KEY, CARD_PLACEMENTS, CARD_REF_LIMITS, CARD_REF_SCHEME, CallOptions, type CalloutCard, type Card, type CardAction, type CardCarrier, type CardKindDefinition, type CardPlacement, type CardRef, type CardRefEvent, type CardRefHost, type CardRefParse, type CardRefResult, CardRegistry, type CardSpec, type CardTone, type CardValidation, type CardValueFormat, type ChartAnnotation, type ChartCard, type ChartSeries, type ChecklistCard, type ChoiceCard, type CitationsCard, type CodeCard, type CompactionResult, type ComparisonCard, type ConfirmCard, ContentPart, ContextBuilder, type ContextBuilderOptions, type ContextLayer, type ContextSource, type ContextSourceInput, type ContextSourceResult, type ContextTrace, DEFAULT_PRESETS, DEFAULT_STOP_CONDITIONS, type DiffCard, type DirectTransportConfig, type DocumentCard, type DocumentEdit, type DocumentOutlineEntry, type DocumentQuoteRef, type DocumentSnapshot, type DocumentStore, type DocumentToolsOptions, type EditHunk, type EditRejection, type EditResult, type EditReviewCard, type EmailCard, type ExecuteToolOptions, type FileStore, FinishReason, type FormCard, type FormField, type FunnelCard, type GaugeCard, type GenerateImageToolOptions, GenerateResult, type GeneratedMedia, type GeneratedMediaKind, type ImageGenerationRequest, JSONSchema, JobHandle, JobStatus, type KeyValueCard, type LayerId, MAILTO_SAFE_LENGTH, MESSAGE_OVERHEAD_TOKENS, type MailtoLink, type MarkdownBlock, type MarkdownBlockKind, type MarkdownCard, type McpCallResult, McpClient, type McpClientConfig, type McpContent, type McpElicitHandler, type McpElicitRequest, type McpElicitResult, type McpImportOptions, McpRpcError, type McpServerInfo, type McpTool, type MediaCard, type MediaJobHandle, type MediaJobSnapshot, type MediaProvider, type MediaProviderCapabilities, MediaSource, type MemoryEntry, type MemorySourceOptions, type MemoryStore, Message, MessageRole, type MeterSink, type MeteringError, type MeteringRecord, type MeteringSource, type MeteringStatus, ModelInfo, NormalizedRequest, OPENAI_OFFICIAL_PROFILE, type OpenAIImageProviderConfig, PartialJsonParser, type PartialToolCall, type PresetName, type ProfileDirectTransportConfig, type ProgressCard, type ProgressStep, Provider, ProviderCapabilities, ProviderFileRef, type ProviderProfile, type ProviderProtocol, type ProxyEnvelope, type ProxyTransportConfig, QUOTES_METADATA_KEY, type QuoteDrift, type RepairResult, type ResolvedSkill, type RestThreadStoreConfig, type RetrievalDoc, type RetrievalSourceOptions, type RetrievedChunk, type Retriever, RetryPolicy, type RunConfig, type RunEvent, type RunMeteringRecord, type RunMode, type RunState, SSEDecoder, type SSEMessage, SURFACE_A2UI_CATALOG_ID, SURFACE_ARTIFACT_KIND, SURFACE_CARD_KIND, SURFACE_EVENT_METADATA_KEY, SURFACE_FORMAT_VERSION, SURFACE_GUIDE, SURFACE_LIMITS, SURFACE_PRIMITIVES, SURFACE_SKILL_ID, SURFACE_TOOL_NAMES, type SchemaCheckOptions, type SchemaProblem, type SerializedMultipartBody, type Skill, type SkillContext, type SkillMatch, type SkillMatcher, type SkillMode, SkillRegistry, type SkillRegistryOptions, type SkillSection, type SpeechGenerationRequest, type StatItem, type StatsCard, type StepMeteringRecord, type StopCondition, type StopContext, type StoredFile, type StoredThread, type Summarizer, type SurfaceAction, type SurfaceActivity, type SurfaceActivityState, type SurfaceAggregateOp, type SurfaceBinding, type SurfaceBuildContext, type SurfaceBuildResult, type SurfaceCardAnswer, SurfaceCatalogue, type SurfaceCatalogueOptions, type SurfaceComponent, type SurfaceComponentCategory, type SurfaceComponentDefinition, type SurfaceCondition, type SurfaceConditionOp, type SurfaceEventRecord, type SurfaceIssue, type SurfaceIssueCode, type SurfaceItemBinding, SurfaceLedger, type SurfaceOperation, type SurfacePathBinding, type SurfacePendingPart, type SurfaceQuery, type SurfaceQueryBinding, type SurfaceSpec, type SurfaceTemplateBinding, type SurfaceToolAuthorization, type SurfaceToolRunConfig, type SurfaceToolsOptions, type SurfaceValidationContext, type SurfaceWhere, type SurfaceWhereOp, THREAD_SCHEMA_VERSION, type TableCard, type TableColumn, type ThreadMeta, type ThreadStore, type TimelineCard, type TokenBudget, type TokenCounter, type ToolApproval, type ToolCallOutcome, type ToolCallRequest, ToolCallStatus, type ToolDefinition, type ToolDisplay, type ToolExecutionContext, ToolFailureKind, type ToolLoading, type ToolLoadingHint, ToolRegistry, type ToolResolution, type ToolResult, type ToolResultExtras, type ToolSide, ToolSpec, type TraceEntry, type Transcript, type TranscriptionRequest, Transport, TransportRequest, type TreeCard, type TreeNode, type TurnLayoutOptions, type TurnSegment, USER_DECLINED, type UnsafeFinding, Usage, type VideoGenerationRequest, type VisualizePlacement, type VisualizeToolOptions, afterTool, appendReasoning, appendText, applyEdits, applySurfaceOperations, approvalCard, assistantMessage, authorizeSurfaceTool, backoffDelay, base64ToBytes, bindingProblems, buildEml, buildMailto, buildSummaryPrompt, buildSurface, buildUrl, bytesToBase64, calloutCard, chartCard, check, checkQuoteDrift, checkSchema, checklistCard, childrenOf, choiceCard, citationsCard, codeCard, combineMeteringSources, compactError, compactHistory, comparisonCard, confirmCard, consecutiveFailures, countMessageTokens, countMessagesTokens, createAppActionTools, createAppStateSource, createBudget, createBuiltinTools, createDirectTransport, createDirectTransportForProfile, createDocumentTools, createEmailDraftTool, createGenerateImageTool, createHttpTransport, createKeywordRetriever, createLoadSkillTool, createLocalDocumentStore, createLocalFileStore, createLocalMemoryStore, createLocalThreadStore, createMcpSkill, createMemoryDocumentStore, createMemoryFileStore, createMemoryMemoryStore, createMemorySource, createMemoryThreadStore, createOpenAICompatibleProfile, createOpenAIImageProvider, createProviderFromProfile, createProxyTransport, createRememberTool, createRestThreadStore, createRetrievalSource, createSurfaceContextSource, createSurfaceSkill, createSurfaceTools, createUpdateCardTool, createVisualizeTool, deliverMetering, diffCard, documentCard, editReviewCard, elicitViaCard, emailCard, emlFilename, errorFromResponse, estimateJsonTokens, estimateTokens, evaluateSurfaceCondition, executeToolCall, executeToolCalls, file, findUnsafe, foldSurfaces, formCard, formatQuotes, formatTemplate, funnelCard, gaugeCard, generatedMediaUrl, getAt, hasTurnOrder, humanizeFieldName, hunksOf, image, importMcpTools, initialRunState, isAgentError, isCardCarrier, isCardPlacement, isScriptUrl, isSurfaceBinding, isSurfaceId, isSurfaceSpec, isTextPart, isToolCallPart, isToolResultPart, isUserDecline, keyValueCard, kindFromStatus, lastUserText, latestLeaf, layoutTurn, linkLinear, makeCard, mapMcpResult, markdownCard, matchSkills, mediaCard, message, messageText, nextId, noToolCalls, normalizeProviderProfile, normalizeToolName, outlineOf, packByPriority, parseCardRef, parsePartialJson, parsePointer, parseRetryAfter, parseSSE, parseSSEJson, pathTo, previewSurface, progressCard, quoteDrift, quotesOf, reduceRunEvent, removeAt, renderSkill, repairToolArguments, resolvePartialCard, resolveSurfaceAction, resolveSurfaceValue, resolveToolLoading, runAgent, runSurfaceQuery, runSurfaceToolAction, safeCutIndex, safeSurfaceUrl, sanitizeSurfaceSpec, scoreSkill, searchBlocks, setAt, shouldStop, siblingsOf, spanOf, splitBlocks, statsCard, stepCountIs, stripCardPayload, stripUiOnlyParts, surfaceActionTools, surfaceCardId, tableCard, text, threadSnapshot, timelineCard, toA2uiMessages, toAgentError, tokenBudgetExceeded, tokenize, toolCall, toolCallsIn, toolResult, totalAllocated, treeCard, trimHistory, usageSource, userDeclined, userMessage, usesBinding, validateSurfaceAction, validateSurfaceComponent, validateSurfaceComponents, validateSurfaceGraph, withCard, withQuotes, withRetry };
|
|
3253
|
+
export { A2UI_VERSION, type A2uiMessage, ANTHROPIC_OFFICIAL_PROFILE, AgentError, type AgentErrorKind, type AnnotationClip, type AnnotationMark, type AppAction, type AppStateBinding, type AppStateSourceOptions, type AppliedEdit, BUILTIN_CARDS, type BindingScope, type BudgetShares, type BuiltContext, type BuiltinCard, type BuiltinCardKind, CARD_COMPONENT, CARD_ENTRY_PREFIX, CARD_KEY, CARD_PLACEMENTS, CARD_REF_LIMITS, CARD_REF_SCHEME, CLIPS_METADATA_KEY, CallOptions, type CalloutCard, type Card, type CardAction, type CardCarrier, type CardKindDefinition, type CardPlacement, type CardRef, type CardRefEvent, type CardRefHost, type CardRefParse, type CardRefResult, CardRegistry, type CardSpec, type CardTone, type CardValidation, type CardValueFormat, type ChartAnnotation, type ChartCard, type ChartSeries, type ChecklistCard, type ChoiceCard, type CitationsCard, type CodeCard, type CompactionResult, type ComparisonCard, type ConfirmCard, ContentPart, ContextBuilder, type ContextBuilderOptions, type ContextClip, type ContextLayer, type ContextSource, type ContextSourceInput, type ContextSourceResult, type ContextTrace, DEFAULT_PRESETS, DEFAULT_STOP_CONDITIONS, type DiffCard, type DirectTransportConfig, type DocumentCard, type DocumentEdit, type DocumentOutlineEntry, type DocumentQuoteRef, type DocumentSnapshot, type DocumentStore, type DocumentToolsOptions, type EditHunk, type EditRejection, type EditResult, type EditReviewCard, type EmailCard, type ExcerptClip, type ExecuteToolOptions, type FileStore, FinishReason, type FormCard, type FormField, type FunnelCard, type GaugeCard, type GenerateImageToolOptions, GenerateResult, type GeneratedMedia, type GeneratedMediaKind, type ImageGenerationRequest, JSONSchema, JobHandle, JobStatus, type KeyValueCard, type LayerId, MAILTO_SAFE_LENGTH, MAX_CLIP_CHARS, MESSAGE_OVERHEAD_TOKENS, type MailtoLink, type MarkdownBlock, type MarkdownBlockKind, type MarkdownCard, type McpCallResult, McpClient, type McpClientConfig, type McpContent, type McpElicitHandler, type McpElicitRequest, type McpElicitResult, type McpImportOptions, McpRpcError, type McpServerInfo, type McpTool, type MediaCard, type MediaJobHandle, type MediaJobSnapshot, type MediaProvider, type MediaProviderCapabilities, MediaSource, type MemoryEntry, type MemorySourceOptions, type MemoryStore, Message, MessageRole, type MeterSink, type MeteringError, type MeteringRecord, type MeteringSource, type MeteringStatus, ModelInfo, NormalizedRequest, OPENAI_OFFICIAL_PROFILE, type OpenAIImageProviderConfig, PartialJsonParser, type PartialToolCall, type PresetName, type ProfileDirectTransportConfig, type ProgressCard, type ProgressStep, Provider, ProviderCapabilities, ProviderFileRef, type ProviderProfile, type ProviderProtocol, type ProxyEnvelope, type ProxyTransportConfig, QUOTES_METADATA_KEY, type QuoteDrift, type RepairResult, type ResolvedSkill, type RestThreadStoreConfig, type RetrievalDoc, type RetrievalSourceOptions, type RetrievedChunk, type Retriever, RetryPolicy, type RunConfig, type RunEvent, type RunMeteringRecord, type RunMode, type RunState, SSEDecoder, type SSEMessage, SURFACE_A2UI_CATALOG_ID, SURFACE_ARTIFACT_KIND, SURFACE_CARD_KIND, SURFACE_EVENT_METADATA_KEY, SURFACE_FORMAT_VERSION, SURFACE_GUIDE, SURFACE_LIMITS, SURFACE_PRIMITIVES, SURFACE_SKILL_ID, SURFACE_TOOL_NAMES, type SchemaCheckOptions, type SchemaProblem, type SerializedMultipartBody, type Skill, type SkillContext, type SkillMatch, type SkillMatcher, type SkillMode, SkillRegistry, type SkillRegistryOptions, type SkillSection, type SpeechGenerationRequest, type StatItem, type StatsCard, type StepMeteringRecord, type StopCondition, type StopContext, type StoredFile, type StoredThread, type Summarizer, type SurfaceAction, type SurfaceActivity, type SurfaceActivityState, type SurfaceAggregateOp, type SurfaceBinding, type SurfaceBuildContext, type SurfaceBuildResult, type SurfaceCardAnswer, SurfaceCatalogue, type SurfaceCatalogueOptions, type SurfaceComponent, type SurfaceComponentCategory, type SurfaceComponentDefinition, type SurfaceCondition, type SurfaceConditionOp, type SurfaceEventRecord, type SurfaceIssue, type SurfaceIssueCode, type SurfaceItemBinding, SurfaceLedger, type SurfaceOperation, type SurfacePathBinding, type SurfacePendingPart, type SurfaceQuery, type SurfaceQueryBinding, type SurfaceSpec, type SurfaceTemplateBinding, type SurfaceToolAuthorization, type SurfaceToolRunConfig, type SurfaceToolsOptions, type SurfaceValidationContext, type SurfaceWhere, type SurfaceWhereOp, THREAD_SCHEMA_VERSION, type TableCard, type TableColumn, type ThreadMeta, type ThreadStore, type TimelineCard, type TokenBudget, type TokenCounter, type ToolApproval, type ToolCallOutcome, type ToolCallRequest, ToolCallStatus, type ToolDefinition, type ToolDisplay, type ToolExecutionContext, ToolFailureKind, type ToolLoading, type ToolLoadingHint, ToolRegistry, type ToolResolution, type ToolResult, type ToolResultExtras, type ToolSide, ToolSpec, type TraceEntry, type Transcript, type TranscriptionRequest, Transport, TransportRequest, type TreeCard, type TreeNode, type TurnLayoutOptions, type TurnSegment, USER_DECLINED, type UnsafeFinding, Usage, type VideoGenerationRequest, type VisualizePlacement, type VisualizeToolOptions, afterTool, appendReasoning, appendText, applyEdits, applySurfaceOperations, approvalCard, assistantMessage, authorizeSurfaceTool, backoffDelay, base64ToBytes, bindingProblems, buildEml, buildMailto, buildSummaryPrompt, buildSurface, buildUrl, bytesToBase64, calloutCard, chartCard, check, checkQuoteDrift, checkSchema, checklistCard, childrenOf, choiceCard, citationsCard, clipPreview, clipsOf, codeCard, combineMeteringSources, compactError, compactHistory, comparisonCard, confirmCard, consecutiveFailures, countMessageTokens, countMessagesTokens, createAppActionTools, createAppStateSource, createBudget, createBuiltinTools, createDirectTransport, createDirectTransportForProfile, createDocumentTools, createEmailDraftTool, createGenerateImageTool, createHttpTransport, createKeywordRetriever, createLoadSkillTool, createLocalDocumentStore, createLocalFileStore, createLocalMemoryStore, createLocalThreadStore, createMcpSkill, createMemoryDocumentStore, createMemoryFileStore, createMemoryMemoryStore, createMemorySource, createMemoryThreadStore, createOpenAICompatibleProfile, createOpenAIImageProvider, createProviderFromProfile, createProxyTransport, createRememberTool, createRestThreadStore, createRetrievalSource, createSurfaceContextSource, createSurfaceSkill, createSurfaceTools, createUpdateCardTool, createVisualizeTool, deliverMetering, diffCard, documentCard, editReviewCard, elicitViaCard, emailCard, emlFilename, errorFromResponse, estimateJsonTokens, estimateTokens, evaluateSurfaceCondition, executeToolCall, executeToolCalls, file, findUnsafe, foldSurfaces, formCard, formatClips, formatQuotes, formatTemplate, funnelCard, gaugeCard, generatedMediaUrl, getAt, hasTurnOrder, humanizeFieldName, hunksOf, image, importMcpTools, initialRunState, isAgentError, isCardCarrier, isCardPlacement, isScriptUrl, isSurfaceBinding, isSurfaceId, isSurfaceSpec, isTextPart, isToolCallPart, isToolResultPart, isUserDecline, keyValueCard, kindFromStatus, lastUserText, latestLeaf, layoutTurn, linkLinear, makeCard, mapMcpResult, markdownCard, matchSkills, mediaCard, message, messageText, nextId, noToolCalls, normalizeProviderProfile, normalizeToolName, outlineOf, packByPriority, parseCardRef, parsePartialJson, parsePointer, parseRetryAfter, parseSSE, parseSSEJson, pathTo, previewSurface, progressCard, quoteDrift, quotesOf, reduceRunEvent, removeAt, renderSkill, repairToolArguments, resolvePartialCard, resolveSurfaceAction, resolveSurfaceValue, resolveToolLoading, runAgent, runSurfaceQuery, runSurfaceToolAction, safeCutIndex, safeSurfaceUrl, sanitizeSurfaceSpec, scoreSkill, searchBlocks, setAt, shouldStop, siblingsOf, spanOf, splitBlocks, statsCard, stepCountIs, stripCardPayload, stripClips, stripUiOnlyParts, surfaceActionTools, surfaceCardId, tableCard, text, threadSnapshot, timelineCard, toA2uiMessages, toAgentError, tokenBudgetExceeded, tokenize, toolCall, toolCallsIn, toolResult, totalAllocated, treeCard, trimHistory, usageSource, userDeclined, userMessage, usesBinding, validateSurfaceAction, validateSurfaceComponent, validateSurfaceComponents, validateSurfaceGraph, withCard, withClips, withQuotes, withRetry };
|