@agent-native/core 0.57.0 → 0.58.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectors.js","sourceRoot":"","sources":["../../../src/client/chat/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,GAU3B,MAAM,cAAc,CAAC;AAsDtB,SAAS,kBAAkB,CAAC,MAAc;IACxC,IACE,OAAO,MAAM,KAAK,WAAW;QAC7B,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,EACvC,CAAC;QACD,OAAO,GAAG,MAAM,IAAI,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC;IAC5C,CAAC;IACD,OAAO,GAAG,MAAM,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,SAAS,OAAO,CAAC,OAA4B;IAC3C,OAAO,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,IAAI,MAAM,EAAE,CAAC;AAC7E,CAAC;AAED,SAAS,SAAS,CAAC,OAA4B;IAC7C,OAAO;QACL,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAChE,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,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CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,OAA4C;IAE5C,OAAO,0BAA0B,CAAC;QAChC,EAAE,EAAE,uBAAuB;QAC3B,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,kBAAkB;QACzB,GAAG,OAAO;QACV,QAAQ,EAAE,uBAAuB,CAAC,mBAAmB,CAAC;KACvD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,OAAyC;IAEzC,OAAO,0BAA0B,CAAC;QAChC,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,eAAe;QACtB,GAAG,OAAO;QACV,QAAQ,EAAE,uBAAuB,CAAC,gBAAgB,CAAC;KACpD,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {\n createHttpAgentChatRuntime,\n type AgentChatRuntime,\n type AgentChatRuntimeKnownEvent,\n type AgentChatRuntimeMessage,\n type AgentChatRuntimeMessageId,\n type AgentChatRuntimeSessionId,\n type AgentChatRuntimeToolCallId,\n type AgentChatRuntimeTurnId,\n type AgentChatRuntimeUsage,\n type CreateHttpAgentChatRuntimeOptions,\n} from \"./runtime.js\";\n\ntype ConnectorRuntimeOptions = Omit<\n CreateHttpAgentChatRuntimeOptions<AgentChatRuntimeKnownEvent>,\n \"mapEvent\"\n>;\n\nexport interface CreateOpenAIAgentsChatRuntimeOptions extends ConnectorRuntimeOptions {}\n\nexport interface CreateOpenAIResponsesChatRuntimeOptions extends ConnectorRuntimeOptions {}\n\nexport interface CreateAgUiChatRuntimeOptions extends ConnectorRuntimeOptions {}\n\nexport interface CreateClaudeAgentChatRuntimeOptions extends ConnectorRuntimeOptions {}\n\nexport interface CreateVercelAiChatRuntimeOptions extends ConnectorRuntimeOptions {}\n\ninterface RuntimeEventContext {\n sessionId: AgentChatRuntimeSessionId;\n turnId?: AgentChatRuntimeTurnId;\n runId?: string;\n}\n\ninterface MessageState {\n id: AgentChatRuntimeMessageId;\n role: \"assistant\" | \"user\" | \"system\" | \"tool\";\n text: string;\n started: boolean;\n done: boolean;\n}\n\ninterface ToolState {\n id: AgentChatRuntimeToolCallId;\n name: string;\n argsText: string;\n started: boolean;\n done: boolean;\n}\n\ninterface ConnectorTurnState {\n fallbackMessageId: string;\n activeMessageId?: string;\n messages: Map<string, MessageState>;\n tools: Map<string, ToolState>;\n contentBlocks: Map<\n string,\n {\n messageId?: string;\n toolId?: string;\n type?: string;\n }\n >;\n}\n\nfunction runtimeConnectorId(prefix: string): string {\n if (\n typeof crypto !== \"undefined\" &&\n typeof crypto.randomUUID === \"function\"\n ) {\n return `${prefix}-${crypto.randomUUID()}`;\n }\n return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;\n}\n\nfunction turnKey(context: RuntimeEventContext): string {\n return `${context.sessionId}:${context.turnId ?? context.runId ?? \"turn\"}`;\n}\n\nfunction baseEvent(context: RuntimeEventContext) {\n return {\n sessionId: context.sessionId,\n turnId: context.turnId,\n };\n}\n\nfunction asRecord(value: unknown): Record<string, unknown> | null {\n return value && typeof value === \"object\" && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : null;\n}\n\nfunction stringValue(value: unknown): string | undefined {\n return typeof value === \"string\" ? value : undefined;\n}\n\nfunction numberValue(value: unknown): number | undefined {\n return typeof value === \"number\" && Number.isFinite(value)\n ? value\n : undefined;\n}\n\nfunction recordString(\n record: Record<string, unknown> | null,\n ...keys: string[]\n): string | undefined {\n if (!record) return undefined;\n for (const key of keys) {\n const value = record[key];\n if (typeof value === \"string\" && value.trim()) return value;\n }\n return undefined;\n}\n\nfunction recordKey(\n record: Record<string, unknown> | null,\n ...keys: string[]\n): string | undefined {\n if (!record) return undefined;\n for (const key of keys) {\n const value = record[key];\n if (typeof value === \"string\" && value.trim()) return value;\n if (typeof value === \"number\" && Number.isFinite(value))\n return String(value);\n }\n return undefined;\n}\n\nfunction nestedRecord(\n record: Record<string, unknown> | null,\n ...keys: string[]\n): Record<string, unknown> | null {\n if (!record) return null;\n for (const key of keys) {\n const value = asRecord(record[key]);\n if (value) return value;\n }\n return null;\n}\n\nfunction normalizeEventType(type: string | undefined): string {\n return (type ?? \"\")\n .replace(/([A-Z]+)([A-Z][a-z])/g, \"$1_$2\")\n .replace(/([a-z0-9])([A-Z])/g, \"$1_$2\")\n .replace(/[.-]/g, \"_\")\n .toUpperCase();\n}\n\nfunction ensureMessage(\n state: ConnectorTurnState,\n id: string | undefined,\n role: MessageState[\"role\"] = \"assistant\",\n): MessageState {\n const messageId = id || state.fallbackMessageId;\n let message = state.messages.get(messageId);\n if (!message) {\n message = {\n id: messageId,\n role,\n text: \"\",\n started: false,\n done: false,\n };\n state.messages.set(messageId, message);\n }\n return message;\n}\n\nfunction messageFromState(message: MessageState): AgentChatRuntimeMessage {\n return {\n id: message.id,\n role: message.role,\n content: message.text ? [{ type: \"text\", text: message.text }] : [],\n };\n}\n\nfunction appendTextEvents(\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n input: {\n messageId?: string;\n role?: MessageState[\"role\"];\n text: string;\n },\n): AgentChatRuntimeKnownEvent[] {\n if (!input.text) return [];\n const message = ensureMessage(state, input.messageId, input.role);\n const events: AgentChatRuntimeKnownEvent[] = [];\n if (!message.started) {\n message.started = true;\n events.push({\n type: \"message-start\",\n ...baseEvent(context),\n message: messageFromState(message),\n });\n }\n message.text += input.text;\n events.push({\n type: \"message-delta\",\n ...baseEvent(context),\n messageId: message.id,\n delta: { type: \"text\", text: input.text },\n });\n return events;\n}\n\nfunction finishMessageEvents(\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n messageId?: string,\n): AgentChatRuntimeKnownEvent[] {\n const messages = messageId\n ? [ensureMessage(state, messageId)]\n : [...state.messages.values()];\n const events: AgentChatRuntimeKnownEvent[] = [];\n for (const message of messages) {\n if (!message.started || message.done) continue;\n message.done = true;\n events.push({\n type: \"message-done\",\n ...baseEvent(context),\n message: messageFromState(message),\n });\n }\n return events;\n}\n\nfunction ensureTool(\n state: ConnectorTurnState,\n id: string | undefined,\n name: string | undefined,\n): ToolState {\n const toolId = id || runtimeConnectorId(\"tool\");\n let tool = state.tools.get(toolId);\n if (!tool) {\n tool = {\n id: toolId,\n name: name || \"tool\",\n argsText: \"\",\n started: false,\n done: false,\n };\n state.tools.set(toolId, tool);\n }\n if (name) tool.name = name;\n return tool;\n}\n\nfunction startToolEvents(\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n input: {\n id?: string;\n name?: string;\n input?: unknown;\n },\n): AgentChatRuntimeKnownEvent[] {\n const tool = ensureTool(state, input.id, input.name);\n if (tool.started) return [];\n tool.started = true;\n return [\n {\n type: \"tool-start\",\n ...baseEvent(context),\n toolCall: {\n id: tool.id,\n name: tool.name,\n input: input.input,\n inputText:\n input.input === undefined\n ? undefined\n : stringifyToolValue(input.input),\n },\n },\n ];\n}\n\nfunction appendToolArgsEvents(\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n input: {\n id?: string;\n name?: string;\n delta?: string;\n },\n): AgentChatRuntimeKnownEvent[] {\n if (!input.delta) return [];\n const tool = ensureTool(state, input.id, input.name);\n tool.argsText += input.delta;\n const events = startToolEvents(context, state, {\n id: tool.id,\n name: tool.name,\n });\n events.push({\n type: \"tool-delta\",\n ...baseEvent(context),\n toolCallId: tool.id,\n inputTextDelta: input.delta,\n });\n return events;\n}\n\nfunction finishToolEvents(\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n input: {\n id?: string;\n name?: string;\n result?: unknown;\n resultText?: string;\n error?: string;\n },\n): AgentChatRuntimeKnownEvent[] {\n const tool = ensureTool(state, input.id, input.name);\n const events = startToolEvents(context, state, {\n id: tool.id,\n name: tool.name,\n });\n if (\n tool.done &&\n input.result === undefined &&\n !input.resultText &&\n !input.error\n ) {\n return events;\n }\n tool.done = true;\n events.push({\n type: \"tool-done\",\n ...baseEvent(context),\n toolCallId: tool.id,\n toolName: tool.name,\n status: input.error ? \"failed\" : \"completed\",\n result: input.result,\n resultText:\n input.resultText ??\n (input.result === undefined\n ? tool.argsText\n : stringifyToolValue(input.result)),\n error: input.error,\n });\n return events;\n}\n\nfunction stringifyToolValue(value: unknown): string {\n if (typeof value === \"string\") return value;\n if (value === undefined) return \"\";\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n}\n\nfunction extractText(value: unknown): string | undefined {\n if (typeof value === \"string\") return value;\n const record = asRecord(value);\n if (!record) return undefined;\n const direct = recordString(record, \"text\", \"content\", \"output\");\n if (direct) return direct;\n const content = record.content;\n if (Array.isArray(content)) {\n return content\n .map((part) => {\n const partRecord = asRecord(part);\n return (\n recordString(partRecord, \"text\", \"content\", \"value\") ??\n recordString(nestedRecord(partRecord, \"text\"), \"value\")\n );\n })\n .filter(Boolean)\n .join(\"\");\n }\n return undefined;\n}\n\nfunction extractToolId(\n record: Record<string, unknown> | null,\n): string | undefined {\n return recordString(\n record,\n \"toolCallId\",\n \"tool_call_id\",\n \"callId\",\n \"call_id\",\n \"toolUseId\",\n \"tool_use_id\",\n \"itemId\",\n \"item_id\",\n \"id\",\n );\n}\n\nfunction extractToolName(\n record: Record<string, unknown> | null,\n): string | undefined {\n return recordString(\n record,\n \"toolCallName\",\n \"tool_call_name\",\n \"toolName\",\n \"tool_name\",\n \"name\",\n );\n}\n\nfunction extractMessageId(\n event: Record<string, unknown> | null,\n state: ConnectorTurnState,\n): string {\n return (\n recordString(event, \"messageId\", \"message_id\", \"itemId\", \"item_id\", \"id\") ??\n recordString(nestedRecord(event, \"message\"), \"id\") ??\n state.activeMessageId ??\n state.fallbackMessageId\n );\n}\n\nfunction extractUsage(\n record: Record<string, unknown> | null,\n): AgentChatRuntimeUsage | null {\n const usage = nestedRecord(record, \"usage\");\n const inputTokens =\n numberValue(usage?.input_tokens) ?? numberValue(usage?.inputTokens);\n const outputTokens =\n numberValue(usage?.output_tokens) ?? numberValue(usage?.outputTokens);\n const totalTokens =\n numberValue(usage?.total_tokens) ??\n numberValue(usage?.totalTokens) ??\n (inputTokens !== undefined || outputTokens !== undefined\n ? (inputTokens ?? 0) + (outputTokens ?? 0)\n : undefined);\n const costUsd =\n numberValue(record?.total_cost_usd) ?? numberValue(record?.cost_usd);\n const costCents = costUsd === undefined ? undefined : costUsd * 100;\n if (\n inputTokens === undefined &&\n outputTokens === undefined &&\n totalTokens === undefined &&\n costCents === undefined\n ) {\n return null;\n }\n return {\n inputTokens,\n outputTokens,\n totalTokens,\n costCents,\n };\n}\n\nfunction normalizeContentBlockType(\n block: Record<string, unknown> | null,\n): string {\n return normalizeEventType(recordString(block, \"type\"));\n}\n\nfunction mapClaudeContentBlocks(\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n message: Record<string, unknown>,\n): AgentChatRuntimeKnownEvent[] {\n const messageId = extractMessageId(message, state);\n state.activeMessageId = messageId;\n const content = message.content;\n const events: AgentChatRuntimeKnownEvent[] = [];\n if (!Array.isArray(content)) return events;\n\n for (const value of content) {\n const block = asRecord(value);\n const blockType = normalizeContentBlockType(block);\n if (blockType === \"TEXT\") {\n const text = recordString(block, \"text\");\n const existing = state.messages.get(messageId);\n if (text && !existing?.text) {\n events.push(...appendTextEvents(context, state, { messageId, text }));\n }\n continue;\n }\n\n if (blockType === \"TOOL_USE\") {\n const toolId = extractToolId(block);\n const toolName = extractToolName(block);\n events.push(\n ...startToolEvents(context, state, {\n id: toolId,\n name: toolName,\n input: block?.input,\n }),\n );\n events.push(\n ...finishToolEvents(context, state, {\n id: toolId,\n name: toolName,\n result: block?.input,\n }),\n );\n continue;\n }\n\n if (blockType === \"TOOL_RESULT\") {\n const isError = block?.is_error === true || block?.isError === true;\n events.push(\n ...finishToolEvents(context, state, {\n id: extractToolId(block),\n name: extractToolName(block),\n result: block?.content ?? block?.result,\n resultText: extractText(block),\n error: isError ? (extractText(block) ?? \"Tool failed.\") : undefined,\n }),\n );\n }\n }\n\n events.push(...finishMessageEvents(context, state, messageId));\n return events;\n}\n\nfunction unwrapClaudeAgentEvent(raw: unknown): unknown {\n const record = asRecord(raw);\n const type = normalizeEventType(recordString(record, \"type\"));\n const event = nestedRecord(record, \"event\");\n if (event && (type === \"STREAM_EVENT\" || recordString(event, \"type\"))) {\n return event;\n }\n return raw;\n}\n\nfunction mapClaudeAgentEvent(\n raw: unknown,\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n): AgentChatRuntimeKnownEvent[] {\n const event = asRecord(unwrapClaudeAgentEvent(raw));\n const type = normalizeEventType(recordString(event, \"type\"));\n const base = baseEvent(context);\n if (!event || !type) return [];\n\n if (type === \"MESSAGE_START\") {\n const message = nestedRecord(event, \"message\");\n const messageId = extractMessageId(message ?? event, state);\n state.activeMessageId = messageId;\n const stateMessage = ensureMessage(state, messageId);\n if (stateMessage.started) return [];\n stateMessage.started = true;\n return [\n {\n type: \"message-start\",\n ...base,\n message: messageFromState(stateMessage),\n },\n ];\n }\n\n if (type === \"CONTENT_BLOCK_START\") {\n const block = nestedRecord(event, \"content_block\", \"contentBlock\");\n const blockKey = recordKey(event, \"index\") ?? extractToolId(block);\n const blockType = normalizeContentBlockType(block);\n const toolId =\n blockType === \"TOOL_USE\"\n ? (extractToolId(block) ?? (blockKey ? `tool-${blockKey}` : undefined))\n : undefined;\n if (blockKey) {\n state.contentBlocks.set(blockKey, {\n messageId: state.activeMessageId,\n toolId,\n type: blockType,\n });\n }\n if (blockType === \"TOOL_USE\") {\n return startToolEvents(context, state, {\n id: toolId,\n name: extractToolName(block),\n input: block?.input,\n });\n }\n return [];\n }\n\n if (type === \"CONTENT_BLOCK_DELTA\") {\n const delta = nestedRecord(event, \"delta\");\n const deltaType = normalizeEventType(recordString(delta, \"type\"));\n const blockRef = state.contentBlocks.get(recordKey(event, \"index\") ?? \"\");\n if (deltaType === \"TEXT_DELTA\") {\n return appendTextEvents(context, state, {\n messageId: blockRef?.messageId ?? state.activeMessageId,\n text: recordString(delta, \"text\") ?? \"\",\n });\n }\n if (deltaType === \"INPUT_JSON_DELTA\") {\n return appendToolArgsEvents(context, state, {\n id: blockRef?.toolId ?? extractToolId(event),\n name: extractToolName(event),\n delta: recordString(delta, \"partial_json\", \"partialJson\", \"text\"),\n });\n }\n return [];\n }\n\n if (type === \"CONTENT_BLOCK_STOP\") {\n const blockKey = recordKey(event, \"index\");\n const blockRef = blockKey ? state.contentBlocks.get(blockKey) : undefined;\n if (blockKey) state.contentBlocks.delete(blockKey);\n if (blockRef?.toolId || blockRef?.type === \"TOOL_USE\") {\n return finishToolEvents(context, state, {\n id: blockRef.toolId,\n });\n }\n return [];\n }\n\n if (type === \"MESSAGE_STOP\") {\n return finishMessageEvents(context, state, state.activeMessageId);\n }\n\n if (type === \"ASSISTANT\" || type === \"ASSISTANT_MESSAGE\") {\n return mapClaudeContentBlocks(context, state, event);\n }\n\n if (type === \"USER\" || type === \"USER_MESSAGE\") {\n return mapClaudeContentBlocks(context, state, event);\n }\n\n if (type === \"SYSTEM\" || type === \"SYSTEM_MESSAGE\") {\n return [\n {\n type: \"status\",\n ...base,\n message:\n recordString(event, \"message\", \"subtype\") ?? \"Claude agent update\",\n metadata: event,\n },\n ];\n }\n\n if (type === \"RESULT\" || type === \"RESULT_MESSAGE\") {\n const usage = extractUsage(event);\n return [\n ...(usage ? [{ type: \"usage\" as const, ...base, usage }] : []),\n ...finishMessageEvents(context, state),\n {\n type: \"done\",\n ...base,\n reason:\n recordString(event, \"subtype\") === \"error\" ? \"error\" : \"complete\",\n },\n ];\n }\n\n if (type === \"ERROR\") {\n return [\n {\n type: \"error\",\n ...base,\n error:\n recordString(event, \"message\", \"error\") ??\n \"Claude agent stream failed.\",\n code: recordString(event, \"code\", \"name\"),\n },\n { type: \"done\", ...base, reason: \"error\" },\n ];\n }\n\n return [];\n}\n\nfunction unwrapOpenAIResponsesEvent(raw: unknown): unknown {\n const record = asRecord(raw);\n const data = asRecord(record?.data);\n return data?.event ?? data ?? raw;\n}\n\nfunction mapOpenAIResponsesEvent(\n raw: unknown,\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n): AgentChatRuntimeKnownEvent[] {\n const event = asRecord(raw);\n const type = normalizeEventType(recordString(event, \"type\"));\n const base = baseEvent(context);\n if (!event || !type) return [];\n\n if (type === \"RESPONSE_OUTPUT_TEXT_DELTA\" || type === \"OUTPUT_TEXT_DELTA\") {\n return appendTextEvents(context, state, {\n messageId: recordString(event, \"item_id\", \"itemId\", \"messageId\"),\n text: stringValue(event.delta) ?? \"\",\n });\n }\n\n if (type === \"RESPONSE_OUTPUT_TEXT_DONE\" || type === \"OUTPUT_TEXT_DONE\") {\n const text = stringValue(event.text);\n return [\n ...(text && ![...state.messages.values()].some((message) => message.text)\n ? appendTextEvents(context, state, {\n messageId: recordString(event, \"item_id\", \"itemId\", \"messageId\"),\n text,\n })\n : []),\n ...finishMessageEvents(\n context,\n state,\n recordString(event, \"item_id\", \"itemId\", \"messageId\"),\n ),\n ];\n }\n\n if (type === \"RESPONSE_OUTPUT_ITEM_ADDED\") {\n const item = nestedRecord(event, \"item\");\n const itemType = normalizeEventType(recordString(item, \"type\"));\n if (itemType.includes(\"FUNCTION_CALL\") || extractToolName(item)) {\n return startToolEvents(context, state, {\n id: extractToolId(item),\n name: extractToolName(item),\n input: item?.arguments,\n });\n }\n }\n\n if (type === \"RESPONSE_FUNCTION_CALL_ARGUMENTS_DELTA\") {\n return appendToolArgsEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n delta: stringValue(event.delta),\n });\n }\n\n if (type === \"RESPONSE_FUNCTION_CALL_ARGUMENTS_DONE\") {\n return finishToolEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n resultText: recordString(event, \"arguments\", \"text\"),\n });\n }\n\n if (type === \"RESPONSE_OUTPUT_ITEM_DONE\") {\n const item = nestedRecord(event, \"item\");\n const itemType = normalizeEventType(recordString(item, \"type\"));\n if (itemType.includes(\"FUNCTION_CALL\") || extractToolName(item)) {\n return finishToolEvents(context, state, {\n id: extractToolId(item),\n name: extractToolName(item),\n resultText: recordString(item, \"arguments\", \"output\"),\n });\n }\n const text = extractText(item);\n if (text && ![...state.messages.values()].some((message) => message.text)) {\n return [\n ...appendTextEvents(context, state, {\n messageId: recordString(item, \"id\"),\n text,\n }),\n ...finishMessageEvents(context, state, recordString(item, \"id\")),\n ];\n }\n }\n\n if (type === \"RESPONSE_COMPLETED\" || type === \"RESPONSE_DONE\") {\n return [\n ...finishMessageEvents(context, state),\n { type: \"done\", ...base, reason: \"complete\" },\n ];\n }\n\n if (type === \"RESPONSE_FAILED\" || type === \"RESPONSE_ERROR\") {\n const error = nestedRecord(event, \"error\");\n return [\n {\n type: \"error\",\n ...base,\n error:\n recordString(error, \"message\", \"error\") ??\n recordString(event, \"message\", \"error\") ??\n \"OpenAI agent stream failed.\",\n code: recordString(error, \"code\", \"type\"),\n },\n { type: \"done\", ...base, reason: \"error\" },\n ];\n }\n\n if (type === \"RESPONSE_INCOMPLETE\") {\n return [\n ...finishMessageEvents(context, state),\n { type: \"done\", ...base, reason: \"interrupted\" },\n ];\n }\n\n return [];\n}\n\nfunction mapOpenAIAgentsEvent(\n raw: unknown,\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n): AgentChatRuntimeKnownEvent[] {\n const event = asRecord(raw);\n const type = normalizeEventType(recordString(event, \"type\"));\n const base = baseEvent(context);\n if (!event || !type) return [];\n\n if (type === \"RAW_MODEL_STREAM_EVENT\" || type === \"RAW_RESPONSE_EVENT\") {\n return mapOpenAIResponsesEvent(\n unwrapOpenAIResponsesEvent(raw),\n context,\n state,\n );\n }\n\n if (type === \"RUN_ITEM_STREAM_EVENT\") {\n const name = normalizeEventType(recordString(event, \"name\"));\n const item = nestedRecord(event, \"item\");\n if (name === \"MESSAGE_OUTPUT_CREATED\") {\n const text = extractText(item);\n if (\n !text ||\n [...state.messages.values()].some((message) => message.text)\n ) {\n return [];\n }\n const messageId = recordString(item, \"id\") ?? state.fallbackMessageId;\n return [\n ...appendTextEvents(context, state, { messageId, text }),\n ...finishMessageEvents(context, state, messageId),\n ];\n }\n if (\n name === \"TOOL_CALLED\" ||\n name === \"TOOL_SEARCH_CALLED\" ||\n name === \"MCP_LIST_TOOLS\"\n ) {\n return startToolEvents(context, state, {\n id: extractToolId(item) ?? extractToolId(event),\n name:\n extractToolName(item) ?? extractToolName(event) ?? name.toLowerCase(),\n input: item?.arguments ?? item?.input,\n });\n }\n if (name === \"TOOL_OUTPUT\" || name === \"TOOL_SEARCH_OUTPUT_CREATED\") {\n return finishToolEvents(context, state, {\n id: extractToolId(item) ?? extractToolId(event),\n name: extractToolName(item) ?? extractToolName(event),\n result: item?.output ?? item?.result ?? item?.content ?? item,\n });\n }\n if (name === \"MCP_APPROVAL_REQUESTED\") {\n const approvalId =\n recordString(item, \"approvalKey\", \"approval_key\", \"id\") ??\n runtimeConnectorId(\"approval\");\n return [\n {\n type: \"approval-request\",\n ...base,\n approvalId,\n toolCallId: extractToolId(item),\n toolName: extractToolName(item),\n message:\n recordString(item, \"message\", \"label\") ?? \"Approve this tool call?\",\n input: item?.input ?? item?.arguments,\n },\n ];\n }\n if (\n name === \"HANDOFF_REQUESTED\" ||\n name === \"HANDOFF_OCCURRED\" ||\n name === \"HANDOFF_OCCURED\"\n ) {\n return [\n {\n type: \"status\",\n ...base,\n message:\n name === \"HANDOFF_REQUESTED\"\n ? \"Agent handoff requested\"\n : \"Agent handoff completed\",\n metadata: item ?? undefined,\n },\n ];\n }\n }\n\n if (type === \"AGENT_UPDATED_STREAM_EVENT\") {\n const agent = nestedRecord(event, \"new_agent\", \"newAgent\");\n return [\n {\n type: \"status\",\n ...base,\n message: `Switched to ${recordString(agent, \"name\") ?? \"another agent\"}`,\n metadata: agent ?? undefined,\n },\n ];\n }\n\n return mapOpenAIResponsesEvent(raw, context, state);\n}\n\nfunction mapVercelAiEvent(\n raw: unknown,\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n): AgentChatRuntimeKnownEvent[] {\n const event = asRecord(raw);\n const type = normalizeEventType(recordString(event, \"type\"));\n const base = baseEvent(context);\n if (!event || !type) return [];\n const vercelMessageId =\n recordString(event, \"messageId\", \"message_id\") ??\n state.activeMessageId ??\n state.fallbackMessageId;\n\n if (type === \"START\") {\n const messageId = vercelMessageId;\n state.activeMessageId = messageId;\n const message = ensureMessage(state, messageId);\n if (message.started) return [];\n message.started = true;\n return [\n {\n type: \"message-start\",\n ...base,\n message: messageFromState(message),\n },\n ];\n }\n\n if (type === \"TEXT_START\") {\n const messageId = vercelMessageId;\n state.activeMessageId = messageId;\n const message = ensureMessage(state, messageId);\n if (message.started) return [];\n message.started = true;\n return [\n {\n type: \"message-start\",\n ...base,\n message: messageFromState(message),\n },\n ];\n }\n\n if (type === \"TEXT_DELTA\") {\n return appendTextEvents(context, state, {\n messageId: vercelMessageId,\n text: recordString(event, \"delta\", \"text\") ?? \"\",\n });\n }\n\n if (type === \"TEXT_END\") {\n return [];\n }\n\n if (type === \"REASONING_DELTA\") {\n return [\n {\n type: \"status\",\n ...base,\n message: recordString(event, \"delta\", \"text\") ?? \"Reasoning\",\n },\n ];\n }\n\n if (type === \"TOOL_INPUT_START\") {\n return startToolEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n });\n }\n\n if (type === \"TOOL_INPUT_DELTA\") {\n return appendToolArgsEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n delta: recordString(event, \"inputTextDelta\", \"delta\", \"text\"),\n });\n }\n\n if (type === \"TOOL_INPUT_AVAILABLE\") {\n return startToolEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n input: event.input,\n });\n }\n\n if (type === \"TOOL_OUTPUT_AVAILABLE\") {\n return finishToolEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n result: event.output,\n resultText:\n recordString(event, \"outputText\", \"resultText\", \"text\") ??\n (event.output === undefined\n ? undefined\n : stringifyToolValue(event.output)),\n });\n }\n\n if (type === \"SOURCE_URL\" || type === \"SOURCE_DOCUMENT\") {\n return [\n {\n type: \"artifact\",\n ...base,\n artifact: {\n id: recordString(event, \"sourceId\", \"source_id\", \"id\"),\n kind: type === \"SOURCE_URL\" ? \"source-url\" : \"source-document\",\n title: recordString(event, \"title\"),\n url: recordString(event, \"url\"),\n data: event,\n },\n },\n ];\n }\n\n if (type === \"FILE\") {\n return [\n {\n type: \"artifact\",\n ...base,\n artifact: {\n id: recordString(event, \"id\", \"fileId\", \"file_id\"),\n kind: \"file\",\n title: recordString(event, \"filename\", \"title\"),\n url: recordString(event, \"url\"),\n data: event,\n },\n },\n ];\n }\n\n if (type.startsWith(\"DATA_\")) {\n return [\n {\n type: \"message-delta\",\n ...base,\n messageId: vercelMessageId,\n delta: {\n type: \"data\",\n data: event.data ?? event,\n partId: recordString(event, \"id\"),\n },\n },\n ];\n }\n\n if (type === \"ERROR\") {\n return [\n {\n type: \"error\",\n ...base,\n error:\n recordString(event, \"errorText\", \"message\", \"error\") ??\n \"AI SDK stream failed.\",\n code: recordString(event, \"code\"),\n },\n { type: \"done\", ...base, reason: \"error\" },\n ];\n }\n\n if (type === \"ABORT\") {\n return [\n ...finishMessageEvents(context, state),\n { type: \"done\", ...base, reason: \"cancelled\" },\n ];\n }\n\n if (type === \"FINISH\") {\n const usage = extractUsage(event);\n return [\n ...(usage ? [{ type: \"usage\" as const, ...base, usage }] : []),\n ...finishMessageEvents(context, state),\n { type: \"done\", ...base, reason: \"complete\" },\n ];\n }\n\n if (type === \"START_STEP\" || type === \"FINISH_STEP\") {\n return [\n {\n type: \"status\",\n ...base,\n message: type === \"START_STEP\" ? \"Step started\" : \"Step finished\",\n },\n ];\n }\n\n return [];\n}\n\nfunction mapAgUiEvent(\n raw: unknown,\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n): AgentChatRuntimeKnownEvent[] {\n const event = asRecord(raw);\n const type = normalizeEventType(recordString(event, \"type\"));\n const base = baseEvent(context);\n if (!event || !type) return [];\n\n if (type === \"RUN_STARTED\") {\n return [\n {\n type: \"status\",\n ...base,\n message: \"Agent run started\",\n },\n ];\n }\n\n if (type === \"RUN_FINISHED\") {\n return [\n ...finishMessageEvents(context, state),\n { type: \"done\", ...base, reason: \"complete\" },\n ];\n }\n\n if (type === \"RUN_ERROR\") {\n return [\n {\n type: \"error\",\n ...base,\n error:\n recordString(event, \"message\", \"error\") ??\n \"AG-UI agent stream failed.\",\n code: recordString(event, \"code\"),\n },\n { type: \"done\", ...base, reason: \"error\" },\n ];\n }\n\n if (type === \"STEP_STARTED\" || type === \"STEP_FINISHED\") {\n return [\n {\n type: \"status\",\n ...base,\n message:\n recordString(event, \"stepName\", \"step_name\") ??\n (type === \"STEP_STARTED\" ? \"Step started\" : \"Step finished\"),\n },\n ];\n }\n\n if (type === \"TEXT_MESSAGE_START\") {\n const message = ensureMessage(\n state,\n recordString(event, \"messageId\", \"message_id\"),\n (recordString(event, \"role\") as MessageState[\"role\"]) ?? \"assistant\",\n );\n if (message.started) return [];\n message.started = true;\n return [\n {\n type: \"message-start\",\n ...base,\n message: messageFromState(message),\n },\n ];\n }\n\n if (type === \"TEXT_MESSAGE_CONTENT\" || type === \"TEXT_MESSAGE_CHUNK\") {\n return appendTextEvents(context, state, {\n messageId: recordString(event, \"messageId\", \"message_id\"),\n role:\n (recordString(event, \"role\") as MessageState[\"role\"]) ?? \"assistant\",\n text: stringValue(event.delta) ?? \"\",\n });\n }\n\n if (type === \"TEXT_MESSAGE_END\") {\n return finishMessageEvents(\n context,\n state,\n recordString(event, \"messageId\", \"message_id\"),\n );\n }\n\n if (type === \"TOOL_CALL_START\") {\n return startToolEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n });\n }\n\n if (type === \"TOOL_CALL_ARGS\") {\n return appendToolArgsEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n delta: stringValue(event.delta),\n });\n }\n\n if (type === \"TOOL_CALL_END\") {\n return finishToolEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n });\n }\n\n if (type === \"TOOL_CALL_RESULT\") {\n return finishToolEvents(context, state, {\n id: extractToolId(event),\n name: extractToolName(event),\n resultText: recordString(event, \"content\", \"result\", \"text\"),\n });\n }\n\n if (type === \"REASONING_MESSAGE_CONTENT\") {\n return [\n {\n type: \"status\",\n ...base,\n message: stringValue(event.delta) ?? \"Reasoning\",\n },\n ];\n }\n\n return [];\n}\n\nfunction createConnectorMapEvent(\n mapper: (\n event: unknown,\n context: RuntimeEventContext,\n state: ConnectorTurnState,\n ) =>\n | AgentChatRuntimeKnownEvent\n | readonly AgentChatRuntimeKnownEvent[]\n | null,\n) {\n const states = new Map<string, ConnectorTurnState>();\n return (event: unknown, context: RuntimeEventContext) => {\n const key = turnKey(context);\n let state = states.get(key);\n if (!state) {\n state = {\n fallbackMessageId: runtimeConnectorId(\"message\"),\n messages: new Map(),\n tools: new Map(),\n contentBlocks: new Map(),\n };\n states.set(key, state);\n }\n const mapped = mapper(event, context, state);\n const mappedEvents = Array.isArray(mapped)\n ? mapped\n : mapped\n ? [mapped]\n : [];\n if (\n mappedEvents.some(\n (runtimeEvent) =>\n runtimeEvent.type === \"done\" || runtimeEvent.type === \"error\",\n )\n ) {\n states.delete(key);\n }\n return mapped;\n };\n}\n\nexport function createOpenAIResponsesChatRuntime(\n options: CreateOpenAIResponsesChatRuntimeOptions,\n): AgentChatRuntime<AgentChatRuntimeKnownEvent> {\n return createHttpAgentChatRuntime({\n id: \"external:openai-responses\",\n kind: \"external-agent\",\n label: \"OpenAI Responses\",\n ...options,\n mapEvent: createConnectorMapEvent(mapOpenAIResponsesEvent),\n });\n}\n\nexport function createOpenAIAgentsChatRuntime(\n options: CreateOpenAIAgentsChatRuntimeOptions,\n): AgentChatRuntime<AgentChatRuntimeKnownEvent> {\n return createHttpAgentChatRuntime({\n id: \"external:openai-agents\",\n kind: \"external-agent\",\n label: \"OpenAI Agents\",\n ...options,\n mapEvent: createConnectorMapEvent(mapOpenAIAgentsEvent),\n });\n}\n\nexport function createAgUiChatRuntime(\n options: CreateAgUiChatRuntimeOptions,\n): AgentChatRuntime<AgentChatRuntimeKnownEvent> {\n return createHttpAgentChatRuntime({\n id: \"external:ag-ui\",\n kind: \"external-agent\",\n label: \"AG-UI\",\n ...options,\n mapEvent: createConnectorMapEvent(mapAgUiEvent),\n });\n}\n\nexport function createClaudeAgentChatRuntime(\n options: CreateClaudeAgentChatRuntimeOptions,\n): AgentChatRuntime<AgentChatRuntimeKnownEvent> {\n return createHttpAgentChatRuntime({\n id: \"external:claude-agent\",\n kind: \"external-agent\",\n label: \"Claude Agent SDK\",\n ...options,\n mapEvent: createConnectorMapEvent(mapClaudeAgentEvent),\n });\n}\n\nexport function createVercelAiChatRuntime(\n options: CreateVercelAiChatRuntimeOptions,\n): AgentChatRuntime<AgentChatRuntimeKnownEvent> {\n return createHttpAgentChatRuntime({\n id: \"external:vercel-ai\",\n kind: \"external-agent\",\n label: \"Vercel AI SDK\",\n ...options,\n mapEvent: createConnectorMapEvent(mapVercelAiEvent),\n });\n}\n"]}
@@ -5,6 +5,7 @@ export { AssistantChat, clearChatStorage, type AssistantChatProps, type Assistan
5
5
  export { MultiTabAssistantChat, type MultiTabAssistantChatProps, type MultiTabAssistantChatHeaderProps, } from "../MultiTabAssistantChat.js";
6
6
  export { createAgentChatAdapter, type AgentChatSurfaceKind, type CreateAgentChatAdapterOptions, } from "../agent-chat-adapter.js";
7
7
  export { codeAgentTranscriptEventsToContent, createCodeAgentChatAdapter, type CodeAgentChatController, type CodeAgentChatControlResult, type CodeAgentChatFollowUpMode, type CodeAgentChatTranscriptEvent, type CreateCodeAgentChatAdapterOptions, } from "../code-agent-chat-adapter.js";
8
+ export * from "./connectors.js";
8
9
  export * from "./runtime.js";
9
10
  export { sendToAgentChat, type AgentChatMessage } from "../agent-chat.js";
10
11
  export { useAgentChatGenerating } from "../use-agent-chat.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,gBAAgB,EA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KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,wBAAwB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
@@ -5,6 +5,7 @@ export { AssistantChat, clearChatStorage, } from "../AssistantChat.js";
5
5
  export { MultiTabAssistantChat, } from "../MultiTabAssistantChat.js";
6
6
  export { createAgentChatAdapter, } from "../agent-chat-adapter.js";
7
7
  export { codeAgentTranscriptEventsToContent, createCodeAgentChatAdapter, } from "../code-agent-chat-adapter.js";
8
+ export * from "./connectors.js";
8
9
  export * from "./runtime.js";
9
10
  export { sendToAgentChat } from "../agent-chat.js";
10
11
  export { useAgentChatGenerating } from "../use-agent-chat.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,cAAc,GAKf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,mCAAmC,EACnC,4BAA4B,EAC5B,+BAA+B,GAGhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,EACb,gBAAgB,GAIjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,GAGtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,sBAAsB,GAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,GAM3B,MAAM,+BAA+B,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAyB,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,6BAA6B,GAI9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,kCAAkC,EAClC,oCAAoC,EACpC,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,GAOpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,kCAAkC,EAClC,mCAAmC,GAEpC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,2BAA2B,EAC3B,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,GAe1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,aAAa,GAGd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,GAMf,MAAM,wBAAwB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC","sourcesContent":["export { AgentChatHome, type AgentChatHomeProps } from \"../AgentChatHome.js\";\nexport {\n AgentChatSurface,\n AgentPanel,\n AgentSidebar,\n AgentToggleButton,\n focusAgentChat,\n type AgentChatSurfaceMode,\n type AgentChatSurfaceProps,\n type AgentPanelProps,\n type AgentSidebarProps,\n} from \"../AgentPanel.js\";\nexport {\n AGENT_CHAT_VIEW_TRANSITION_CLASS,\n AGENT_CHAT_VIEW_TRANSITION_NAME,\n getAgentChatViewTransitionStyle,\n navigateWithAgentChatViewTransition,\n startAgentChatViewTransition,\n supportsAgentChatViewTransition,\n type AgentChatViewTransition,\n type AgentChatViewTransitionOptions,\n} from \"../chat-view-transition.js\";\nexport {\n AssistantChat,\n clearChatStorage,\n type AssistantChatProps,\n type AssistantChatHandle,\n type AssistantChatAdapterContext,\n} from \"../AssistantChat.js\";\nexport {\n MultiTabAssistantChat,\n type MultiTabAssistantChatProps,\n type MultiTabAssistantChatHeaderProps,\n} from \"../MultiTabAssistantChat.js\";\nexport {\n createAgentChatAdapter,\n type AgentChatSurfaceKind,\n type CreateAgentChatAdapterOptions,\n} from \"../agent-chat-adapter.js\";\nexport {\n codeAgentTranscriptEventsToContent,\n createCodeAgentChatAdapter,\n type CodeAgentChatController,\n type CodeAgentChatControlResult,\n type CodeAgentChatFollowUpMode,\n type CodeAgentChatTranscriptEvent,\n type CreateCodeAgentChatAdapterOptions,\n} from \"../code-agent-chat-adapter.js\";\nexport * from \"./runtime.js\";\nexport { sendToAgentChat, type AgentChatMessage } from \"../agent-chat.js\";\nexport { useAgentChatGenerating } from \"../use-agent-chat.js\";\nexport { useSendToAgentChat } from \"../use-send-to-agent-chat.js\";\nexport {\n requestAgentSidebarOpen,\n SIDEBAR_STATE_CHANGE_EVENT,\n setAgentSidebarOpenPreference,\n type AgentSidebarStateChangeDetail,\n type AgentSidebarStateMode,\n type AgentSidebarStateSource,\n} from \"../agent-sidebar-state.js\";\nexport {\n clearReservedToolRenderersForTests,\n clearToolRenderersForTests,\n registerActionChatRenderer,\n registerFallbackToolRenderer,\n registerReservedActionChatRenderer,\n registerReservedFallbackToolRenderer,\n registerReservedToolRenderer,\n registerToolRenderer,\n resolveToolRenderer,\n type ActionChatRendererRegistration,\n type ToolRendererComponent,\n type ToolRendererContext,\n type ToolRendererMatch,\n type ToolRendererProps,\n type ToolRendererRegistration,\n} from \"./tool-render-registry.js\";\nexport {\n ACTION_CHAT_UI_DATA_CHART_RENDERER,\n ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER,\n ACTION_CHAT_UI_DATA_TABLE_RENDERER,\n ACTION_CHAT_UI_DATA_WIDGET_RENDERER,\n type ActionChatUIConfig,\n} from \"../../action-ui.js\";\nexport {\n DATA_CHART_WIDGET,\n DATA_INSIGHTS_WIDGET,\n DATA_TABLE_WIDGET,\n createDataChartWidgetResult,\n createDataInsightsWidgetResult,\n createDataTableWidgetResult,\n dataChartWidgetResultSchema,\n dataChartWidgetSchema,\n dataInsightsWidgetResultSchema,\n dataTableWidgetResultSchema,\n dataTableWidgetSchema,\n dataWidgetResultSchema,\n isDataChartWidget,\n isDataTableWidget,\n isDataWidgetResult,\n normalizeDataWidgetKind,\n normalizeDataWidgetResult,\n type DataChartSeriesDefinition,\n type DataChartWidget,\n type DataChartWidgetResult,\n type DataChartWidgetResultInput,\n type DataInsightsWidgetResult,\n type DataInsightsWidgetResultInput,\n type DataTableColumn,\n type DataTableWidget,\n type DataTableWidgetResult,\n type DataTableWidgetResultInput,\n type DataWidgetDisplay,\n type DataWidgetKind,\n type DataWidgetResult,\n type DataWidgetResultMetadata,\n} from \"./widgets/data-widget-types.js\";\nexport {\n useChatModels,\n type UseChatModelsResult,\n type EngineModelGroup,\n} from \"../use-chat-models.js\";\nexport {\n useChatThreads,\n type ChatThreadScope,\n type ChatThreadSnapshot,\n type ChatThreadSummary,\n type ChatThreadData,\n type UseChatThreadsOptions,\n} from \"../use-chat-threads.js\";\nexport * from \"../composer/index.js\";\nexport * from \"../conversation/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,cAAc,GAKf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,mCAAmC,EACnC,4BAA4B,EAC5B,+BAA+B,GAGhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,EACb,gBAAgB,GAI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gentChatHomeProps } from \"../AgentChatHome.js\";\nexport {\n AgentChatSurface,\n AgentPanel,\n AgentSidebar,\n AgentToggleButton,\n focusAgentChat,\n type AgentChatSurfaceMode,\n type AgentChatSurfaceProps,\n type AgentPanelProps,\n type AgentSidebarProps,\n} from \"../AgentPanel.js\";\nexport {\n AGENT_CHAT_VIEW_TRANSITION_CLASS,\n AGENT_CHAT_VIEW_TRANSITION_NAME,\n getAgentChatViewTransitionStyle,\n navigateWithAgentChatViewTransition,\n startAgentChatViewTransition,\n supportsAgentChatViewTransition,\n type AgentChatViewTransition,\n type AgentChatViewTransitionOptions,\n} from \"../chat-view-transition.js\";\nexport {\n AssistantChat,\n clearChatStorage,\n type AssistantChatProps,\n type AssistantChatHandle,\n type AssistantChatAdapterContext,\n} from \"../AssistantChat.js\";\nexport {\n MultiTabAssistantChat,\n type MultiTabAssistantChatProps,\n type MultiTabAssistantChatHeaderProps,\n} from \"../MultiTabAssistantChat.js\";\nexport {\n createAgentChatAdapter,\n type AgentChatSurfaceKind,\n type CreateAgentChatAdapterOptions,\n} from \"../agent-chat-adapter.js\";\nexport {\n codeAgentTranscriptEventsToContent,\n createCodeAgentChatAdapter,\n type CodeAgentChatController,\n type CodeAgentChatControlResult,\n type CodeAgentChatFollowUpMode,\n type CodeAgentChatTranscriptEvent,\n type CreateCodeAgentChatAdapterOptions,\n} from \"../code-agent-chat-adapter.js\";\nexport * from \"./connectors.js\";\nexport * from \"./runtime.js\";\nexport { sendToAgentChat, type AgentChatMessage } from \"../agent-chat.js\";\nexport { useAgentChatGenerating } from \"../use-agent-chat.js\";\nexport { useSendToAgentChat } from \"../use-send-to-agent-chat.js\";\nexport {\n requestAgentSidebarOpen,\n SIDEBAR_STATE_CHANGE_EVENT,\n setAgentSidebarOpenPreference,\n type AgentSidebarStateChangeDetail,\n type AgentSidebarStateMode,\n type AgentSidebarStateSource,\n} from \"../agent-sidebar-state.js\";\nexport {\n clearReservedToolRenderersForTests,\n clearToolRenderersForTests,\n registerActionChatRenderer,\n registerFallbackToolRenderer,\n registerReservedActionChatRenderer,\n registerReservedFallbackToolRenderer,\n registerReservedToolRenderer,\n registerToolRenderer,\n resolveToolRenderer,\n type ActionChatRendererRegistration,\n type ToolRendererComponent,\n type ToolRendererContext,\n type ToolRendererMatch,\n type ToolRendererProps,\n type ToolRendererRegistration,\n} from \"./tool-render-registry.js\";\nexport {\n ACTION_CHAT_UI_DATA_CHART_RENDERER,\n ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER,\n ACTION_CHAT_UI_DATA_TABLE_RENDERER,\n ACTION_CHAT_UI_DATA_WIDGET_RENDERER,\n type ActionChatUIConfig,\n} from \"../../action-ui.js\";\nexport {\n DATA_CHART_WIDGET,\n DATA_INSIGHTS_WIDGET,\n DATA_TABLE_WIDGET,\n createDataChartWidgetResult,\n createDataInsightsWidgetResult,\n createDataTableWidgetResult,\n dataChartWidgetResultSchema,\n dataChartWidgetSchema,\n dataInsightsWidgetResultSchema,\n dataTableWidgetResultSchema,\n dataTableWidgetSchema,\n dataWidgetResultSchema,\n isDataChartWidget,\n isDataTableWidget,\n isDataWidgetResult,\n normalizeDataWidgetKind,\n normalizeDataWidgetResult,\n type DataChartSeriesDefinition,\n type DataChartWidget,\n type DataChartWidgetResult,\n type DataChartWidgetResultInput,\n type DataInsightsWidgetResult,\n type DataInsightsWidgetResultInput,\n type DataTableColumn,\n type DataTableWidget,\n type DataTableWidgetResult,\n type DataTableWidgetResultInput,\n type DataWidgetDisplay,\n type DataWidgetKind,\n type DataWidgetResult,\n type DataWidgetResultMetadata,\n} from \"./widgets/data-widget-types.js\";\nexport {\n useChatModels,\n type UseChatModelsResult,\n type EngineModelGroup,\n} from \"../use-chat-models.js\";\nexport {\n useChatThreads,\n type ChatThreadScope,\n type ChatThreadSnapshot,\n type ChatThreadSummary,\n type ChatThreadData,\n type UseChatThreadsOptions,\n} from \"../use-chat-threads.js\";\nexport * from \"../composer/index.js\";\nexport * from \"../conversation/index.js\";\n"]}
@@ -54,6 +54,7 @@ export { AgentChatSurface, AgentPanel, AgentSidebar, AgentToggleButton, focusAge
54
54
  export { AGENT_CHAT_VIEW_TRANSITION_CLASS, AGENT_CHAT_VIEW_TRANSITION_NAME, getAgentChatViewTransitionStyle, navigateWithAgentChatViewTransition, startAgentChatViewTransition, supportsAgentChatViewTransition, type AgentChatViewTransition, type AgentChatViewTransitionOptions, } from "./chat-view-transition.js";
55
55
  export { requestAgentSidebarOpen, SIDEBAR_STATE_CHANGE_EVENT, setAgentSidebarOpenPreference, type AgentSidebarStateChangeDetail, type AgentSidebarStateMode, type AgentSidebarStateSource, } from "./agent-sidebar-state.js";
56
56
  export { clearReservedToolRenderersForTests, clearToolRenderersForTests, registerActionChatRenderer, registerFallbackToolRenderer, registerReservedActionChatRenderer, registerReservedFallbackToolRenderer, registerReservedToolRenderer, registerToolRenderer, resolveToolRenderer, type ActionChatRendererRegistration, type ToolRendererComponent, type ToolRendererContext, type ToolRendererMatch, type ToolRendererProps, type ToolRendererRegistration, } from "./chat/tool-render-registry.js";
57
+ export * from "./chat/connectors.js";
57
58
  export * from "./chat/runtime.js";
58
59
  export { ACTION_CHAT_UI_DATA_CHART_RENDERER, ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER, ACTION_CHAT_UI_DATA_TABLE_RENDERER, ACTION_CHAT_UI_DATA_WIDGET_RENDERER, type ActionChatUIConfig, } from "../action-ui.js";
59
60
  export { DATA_CHART_WIDGET, DATA_INSIGHTS_WIDGET, DATA_TABLE_WIDGET, createDataChartWidgetResult, createDataInsightsWidgetResult, createDataTableWidgetResult, dataChartWidgetResultSchema, dataChartWidgetSchema, dataInsightsWidgetResultSchema, dataTableWidgetResultSchema, dataTableWidgetSchema, dataWidgetResultSchema, isDataChartWidget, isDataTableWidget, isDataWidgetResult, normalizeDataWidgetKind, normalizeDataWidgetResult, type DataChartSeriesDefinition, type DataChartWidget, type DataChartWidgetResult, type DataChartWidgetResultInput, type DataInsightsWidgetResult, type DataInsightsWidgetResultInput, type DataTableColumn, type DataTableWidget, type DataTableWidgetResult, type DataTableWidgetResultInput, type DataWidgetDisplay, type DataWidgetKind, type DataWidgetResult, type DataWidgetResultMetadata, } from "./chat/widgets/data-widget-types.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,EACrB,+BAA+B,EAC/B,qBAAqB,EACrB,oCAAoC,EACpC,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EACL,mBAAmB,EACnB,KAAK,yBAAyB,GAC/B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,UAAU,EACV,WAAW,EACX,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,GACtC,MA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ACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,EACrB,+BAA+B,EAC/B,qBAAqB,EACrB,oCAAoC,EACpC,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EACL,mBAAmB,EACnB,KAAK,yBAAyB,GAC/B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,UAAU,EACV,WAAW,EACX,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,K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K,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,mBAAmB,CAAC"}
@@ -73,6 +73,7 @@ export { AgentChatSurface, AgentPanel, AgentSidebar, AgentToggleButton, focusAge
73
73
  export { AGENT_CHAT_VIEW_TRANSITION_CLASS, AGENT_CHAT_VIEW_TRANSITION_NAME, getAgentChatViewTransitionStyle, navigateWithAgentChatViewTransition, startAgentChatViewTransition, supportsAgentChatViewTransition, } from "./chat-view-transition.js";
74
74
  export { requestAgentSidebarOpen, SIDEBAR_STATE_CHANGE_EVENT, setAgentSidebarOpenPreference, } from "./agent-sidebar-state.js";
75
75
  export { clearReservedToolRenderersForTests, clearToolRenderersForTests, registerActionChatRenderer, registerFallbackToolRenderer, registerReservedActionChatRenderer, registerReservedFallbackToolRenderer, registerReservedToolRenderer, registerToolRenderer, resolveToolRenderer, } from "./chat/tool-render-registry.js";
76
+ export * from "./chat/connectors.js";
76
77
  export * from "./chat/runtime.js";
77
78
  export { ACTION_CHAT_UI_DATA_CHART_RENDERER, ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER, ACTION_CHAT_UI_DATA_TABLE_RENDERER, ACTION_CHAT_UI_DATA_WIDGET_RENDERER, } from "../action-ui.js";
78
79
  export { DATA_CHART_WIDGET, DATA_INSIGHTS_WIDGET, DATA_TABLE_WIDGET, createDataChartWidgetResult, createDataInsightsWidgetResult, createDataTableWidgetResult, dataChartWidgetResultSchema, dataChartWidgetSchema, dataInsightsWidgetResultSchema, dataTableWidgetResultSchema, dataTableWidgetSchema, dataWidgetResultSchema, isDataChartWidget, isDataTableWidget, isDataWidgetResult, normalizeDataWidgetKind, normalizeDataWidgetResult, } from "./chat/widgets/data-widget-types.js";
@@ -1 +1 @@
1
- {"version":3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;AAC9E,wEAAwE;AACxE,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,GAgB/B,MAAM,mBAAmB,CAAC","sourcesContent":["import { installRouteChunkRecovery } from \"./route-chunk-recovery.js\";\nimport { stripAuthRedirectParamFromUrl } from \"./auth-redirect-url.js\";\n\ninstallRouteChunkRecovery();\nstripAuthRedirectParamFromUrl();\n\nexport {\n addContextToAgentChat,\n appendAgentChatContextToMessage,\n clearAgentChatContext,\n formatAgentChatContextItemsForPrompt,\n listAgentChatContext,\n refreshAgentChatContext,\n removeAgentChatContextItem,\n sendToAgentChat,\n setAgentChatContextItem,\n setContextToAgentChat,\n generateTabId,\n type AgentChatContextItem,\n type AgentChatContextMessage,\n type AgentChatContextMutationOptions,\n type AgentChatContextRemoveOptions,\n type AgentChatContextSetOptions,\n type AgentChatContextState,\n type AgentChatMessage,\n} from \"./agent-chat.js\";\nexport {\n saveAgentEngineApiKey,\n type AgentEngineProvider,\n type SaveAgentEngineApiKeyOptions,\n} from \"./agent-engine-key.js\";\nexport { useAgentChatGenerating } from \"./use-agent-chat.js\";\nexport {\n useAgentChatContext,\n type UseAgentChatContextResult,\n} from \"./use-agent-chat-context.js\";\nexport { useCodeMode, useDevMode } from \"./use-dev-mode.js\";\nexport {\n agentNativePath,\n appApiPath,\n appBasePath,\n appPath,\n} from \"./api-path.js\";\nexport {\n deleteClientAppState,\n readClientAppState,\n setClientAppState,\n writeClientAppState,\n type ClientAppStateReadOptions,\n type ClientAppStateWriteOptions,\n} from \"./application-state.js\";\nexport {\n useAgentRouteState,\n useSemanticNavigationState,\n type AgentRouteLocation,\n type SemanticNavigationCommandEnvelope,\n type UseAgentRouteStateOptions,\n type UseAgentRouteStateResult,\n type UseSemanticNavigationStateOptions,\n type UseSemanticNavigationStateResult,\n} from \"./route-state.js\";\nexport {\n ensureEmbedAuthFetchInterceptor,\n getEmbedAuthToken,\n isEmbedAuthActive,\n isEmbedMcpChatBridgeActive,\n} from \"./embed-auth.js\";\nexport {\n codeAgentTranscriptEventsToContent,\n createCodeAgentChatAdapter,\n type CodeAgentChatController,\n type CodeAgentChatControlResult,\n type CodeAgentChatFollowUpMode,\n type CodeAgentChatTranscriptEvent,\n type CreateCodeAgentChatAdapterOptions,\n} from \"./code-agent-chat-adapter.js\";\nexport {\n buildRepositoryFromCodeAgentTranscript,\n type BuildRepositoryFromCodeAgentTranscriptOptions,\n type CodeAgentThreadTranscriptEvent,\n} from \"../agent/thread-data-builder.js\";\nexport {\n compareCodeAgentTranscriptEvents,\n getCodeAgentTranscriptSeq,\n isCodeAgentRunActive,\n mergeCodeAgentTranscriptEvents,\n type CodeAgentRunStateLike,\n type CodeAgentTranscriptOrderEvent,\n} from \"../code-agents/transcript-order.js\";\nexport { useSendToAgentChat } from \"./use-send-to-agent-chat.js\";\nexport {\n useChatModels,\n type UseChatModelsResult,\n type EngineModelGroup,\n} from \"./use-chat-models.js\";\nexport {\n CodeRequiredDialog,\n type CodeRequiredDialogProps,\n} from \"./components/CodeRequiredDialog.js\";\nexport {\n AgentConversation,\n AgentConversationMessageView,\n normalizeCodeAgentTranscriptForConversation,\n useNearBottomAutoscroll,\n type CodeAgentConversationTranscriptEvent,\n type CodeAgentConversationTranscriptEventType,\n type NormalizeCodeAgentTranscriptOptions,\n type AgentConversationArtifact,\n type AgentConversationAttachment,\n type AgentConversationMessage,\n type AgentConversationMessagePart,\n type AgentConversationMessageRole,\n type AgentConversationNotice,\n type AgentConversationNoticeTone,\n type AgentConversationToolCall,\n type AgentConversationToolState,\n} from \"./conversation/index.js\";\nexport { McpAppRenderer } from \"./mcp-apps/McpAppRenderer.js\";\nexport {\n AGENT_NATIVE_MCP_APP_HOST_MESSAGE_TYPES,\n getMcpAppHostContext,\n openMcpAppHostLink,\n requestMcpAppDisplayMode,\n sendMcpAppHostMessage,\n updateMcpAppModelContext,\n useMcpAppHostContext,\n type AgentNativeMcpAppHostMessageType,\n type McpAppDisplayMode,\n type McpAppHostChatMessage,\n type McpAppHostCapabilities,\n type McpAppHostContext,\n type McpAppHostContextSnapshot,\n type McpAppModelContextContentPart,\n type McpAppModelContextUpdate,\n} from \"./mcp-app-host.js\";\nexport {\n CodeAgentIndicator,\n type CodeAgentIndicatorProps,\n} from \"./components/CodeAgentIndicator.js\";\nexport {\n useDbSync,\n useFileWatcher,\n useScreenRefreshKey,\n} from \"./use-db-sync.js\";\nexport {\n useChangeVersion,\n useChangeVersions,\n getChangeVersion,\n bumpChangeVersion,\n} from \"./use-change-version.js\";\nexport { useReconciledState } from \"./use-external-value.js\";\nexport {\n buildDynamicAgentSuggestions,\n dedupeSuggestions,\n mergeAgentSuggestions,\n normalizeAgentDynamicSuggestionsConfig,\n useAgentDynamicSuggestions,\n type AgentDynamicSuggestionContext,\n type AgentDynamicSuggestionsConfig,\n type AgentDynamicSuggestionsOption,\n} from \"./dynamic-suggestions.js\";\nexport { cn } from \"./utils.js\";\nexport {\n // Shared editor core (Phase 1): the ONE configurable surface both the plan\n // and content editors build on.\n SharedRichEditor,\n createSharedEditorExtensions,\n MARKDOWN_DIALECT_CONFIG,\n useCollabReconcile,\n RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION,\n getEditorMarkdown,\n SlashCommandMenu,\n DEFAULT_SLASH_COMMANDS,\n createImageSlashCommand,\n // Shared block-level image node + injectable upload contract. Plans opt in\n // via `features.image` + `onImageUpload`; Content keeps its own image block.\n SharedImage,\n createImageExtension,\n pickAndInsertImage,\n uploadEditorImage,\n BubbleToolbar,\n buildDefaultBubbleItems,\n // Back-compat alias + factory kept for existing embedders and specs.\n RichMarkdownEditor,\n createRichMarkdownExtensions,\n // Single-doc plan editor primitives: the GFM↔ProseMirror serializer, the\n // run-id prose attribute, and the shared drag-handle (block grip + reorder).\n RunId,\n RUN_ID_NODE_TYPES,\n gfmToProseJSON,\n proseJSONToGfm,\n DragHandle,\n DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR,\n // Generic registry-block Tiptap NodeView + side-map provider + dedupe plugin.\n // Hosts mount the node from `createRegistryBlockNode` as an extra extension\n // and wrap the editor in `RegistryBlockDataProvider`.\n createRegistryBlockNode,\n RegistryBlockNodeView,\n RegistryBlockDataProvider,\n useRegistryBlockData,\n // Shared registry-derived block slash-command builder (plan + content adapt it).\n buildRegistryBlockSlashItems,\n getRegistryBlockSlashDescription,\n getRegistryBlockSlashSearchText,\n type BuildRegistryBlockSlashItemsOptions,\n type DragHandleDropContext,\n type DragHandleDropPlacement,\n type DragHandleOptions,\n type CreateRegistryBlockNodeOptions,\n type RegistryBlockDataValue,\n type RegistryBlockSideMapBlock,\n type SharedRichEditorProps,\n type SharedEditorCollab,\n type SharedEditorFeatures,\n type CreateSharedEditorExtensionsOptions,\n type UseCollabReconcileOptions,\n type UseCollabReconcileResult,\n type SlashCommandItem,\n type SlashCommandMenuProps,\n type ImageUploadFn,\n type SharedImageOptions,\n type BubbleToolbarItem,\n type BubbleToolbarProps,\n type RichMarkdownDialect,\n type RichMarkdownEditorPreset,\n type RichMarkdownEditorProps,\n type RichMarkdownCollabUser,\n type CreateRichMarkdownExtensionsOptions,\n} from \"./rich-markdown-editor/index.js\";\n// ProseMirror node JSON shape — re-exported so the plan template (which has no\n// direct @tiptap dep) can type its doc↔blocks serializer.\nexport type { JSONContent } from \"@tiptap/core\";\nexport { ApiKeySettings } from \"./components/ApiKeySettings.js\";\nexport { useSession, type AuthSession } from \"./use-session.js\";\nexport {\n RequireSession,\n buildSignInReturnHref,\n type RequireSessionProps,\n} from \"./require-session.js\";\nexport {\n sendToFrame,\n onFrameMessage,\n requestUserInfo,\n getFrameOrigin,\n getFramePostMessageTargetOrigin,\n getCallbackOrigin,\n oauthRedirectUri,\n isInFrame,\n enterStyleEditing,\n enterTextEditing,\n exitSelectionMode,\n type UserInfo,\n} from \"./frame.js\";\nexport {\n getBuilderParentOrigin,\n isInBuilderFrame,\n sendToBuilderChat,\n type BuilderChatMessage,\n} from \"./builder-frame.js\";\nexport {\n AgentNative,\n useAgentNativeScreenContext,\n type AgentNativeCommandCallback,\n type AgentNativeCommandCallbackInfo,\n type AgentNativeProps,\n} from \"./AgentNative.js\";\nexport {\n AgentNativeEmbedded,\n useAgentNativeEmbeddedBrowserSession,\n type AgentNativeEmbeddedBrowserSessionOptions,\n type AgentNativeEmbeddedCommandCallback,\n type AgentNativeEmbeddedCommandCallbackInfo,\n type AgentNativeEmbeddedProps,\n type UseAgentNativeEmbeddedBrowserSessionOptions,\n} from \"./AgentNativeEmbedded.js\";\nexport {\n defineClientAction,\n type AgentNativeClientActionDefinition,\n type AgentNativeClientActionRunner,\n} from \"./client-action.js\";\nexport {\n AgentNativeFrame,\n type AgentNativeFrameProps,\n} from \"./AgentNativeFrame.js\";\nexport {\n AgentNativeRouteWarmup,\n type AgentNativeRouteWarmupProps,\n} from \"./route-warmup.js\";\nexport {\n AgentNativeExtensionFrame,\n AgentNativeExtensionSlot,\n type AgentNativeExtensionFrameProps,\n type AgentNativeExtensionPermissionList,\n type AgentNativeExtensionSlotProps,\n type AgentNativeExtensionStorageScopeList,\n} from \"./extensions/AgentNativeExtensionFrame.js\";\nexport {\n AGENT_NATIVE_EXTENSION_MESSAGE_TYPES,\n buildAgentNativeExtensionHtml,\n createHttpAgentNativeExtensionStorage,\n createLocalStorageAgentNativeExtensionStorage,\n getAgentNativeExtensionManifest,\n isAgentNativeExtensionAllowedInSlot,\n normalizeAgentNativeExtensionSandbox,\n type AgentNativeExtensionDefinition,\n type AgentNativeExtensionManifest,\n type AgentNativeExtensionMessageType,\n type AgentNativeExtensionStorage,\n type AgentNativeExtensionStorageContext,\n type AgentNativeExtensionStorageOptions,\n type AgentNativeExtensionStorageRow,\n type AgentNativeExtensionStorageScope,\n type BuildAgentNativeExtensionHtmlOptions,\n type CreateHttpAgentNativeExtensionStorageOptions,\n} from \"./extensions/portable-extension.js\";\nexport {\n AGENT_NATIVE_HOST_BRIDGE_VERSION,\n AGENT_NATIVE_HOST_MESSAGE_TYPES,\n announceAgentNativeFrameReady,\n createAgentNativeHostBridge,\n defaultAgentNativeHostCommands,\n onAgentNativeHostInit,\n readAgentNativeScreenContext,\n requestAgentNativeHostActions,\n requestAgentNativeHostContext,\n runAgentNativeHostAction,\n sendAgentNativeHostCommand,\n type AgentNativeActionAvailability,\n type AgentNativeActionManifestEntry,\n type AgentNativeClientAction,\n type AgentNativeClientActionApprovalConfig,\n type AgentNativeClientActionGetter,\n type AgentNativeClientActionRuntime,\n type AgentNativeClientActions,\n type AgentNativeHostAuth,\n type AgentNativeHostAuthPayload,\n type AgentNativeHostBridge,\n type AgentNativeHostBridgeEvent,\n type AgentNativeHostBridgeOptions,\n type AgentNativeHostCapabilities,\n type AgentNativeHostCommandHandler,\n type AgentNativeHostCommandHandlers,\n type AgentNativeHostCommandRequest,\n type AgentNativeHostContext,\n type AgentNativeHostContextGetter,\n type AgentNativeHostInit,\n type AgentNativeHostMessageType,\n type AgentNativeHostRequestOptions,\n type AgentNativeHostResourceContext,\n type AgentNativeHostRouteContext,\n type AgentNativeHostSelectionContext,\n type AgentNativeHostSession,\n type AgentNativeJsonSchema,\n type AgentNativeScreenSnapshot,\n type AgentNativeScreenSnapshotOptions,\n type BuiltInAgentNativeHostCommand,\n} from \"./host-bridge.js\";\nexport {\n AGENT_NATIVE_HOST_TOOL_NAMES,\n createAgentNativeHostTools,\n type AgentNativeHostToolDefinition,\n type AgentNativeHostToolName,\n type AgentNativeHostToolParameters,\n type AgentNativeHostToolSet,\n type CreateAgentNativeHostToolsOptions,\n type RunAgentNativeHostActionToolInput,\n type SendAgentNativeHostCommandToolInput,\n} from \"./host-tools.js\";\nexport {\n createAgentNativeBrowserSessionBridge,\n startAgentNativeBrowserSessionBridge,\n type AgentNativeBrowserSessionBridge,\n type AgentNativeBrowserSessionBridgeOptions,\n} from \"./browser-session-bridge.js\";\nexport type {\n AgentNativeBrowserSession,\n AgentNativeBrowserSessionAction,\n AgentNativeBrowserSessionRecord,\n AgentNativeBrowserSessionRequest,\n AgentNativeBrowserSessionRequestStatus,\n AgentNativeBrowserSessionRequestType,\n CreateAgentNativeBrowserSessionRequestInput,\n RegisterAgentNativeBrowserSessionInput,\n} from \"../browser-sessions/types.js\";\nexport {\n NewWorkspaceAppFlow,\n type NewWorkspaceAppFlowProps,\n type VaultSecretOption,\n} from \"./NewWorkspaceAppFlow.js\";\nexport {\n AssistantChat,\n clearChatStorage,\n type AssistantChatProps,\n type AssistantChatHandle,\n type AssistantChatAdapterContext,\n} from \"./AssistantChat.js\";\nexport {\n MultiTabAssistantChat,\n type MultiTabAssistantChatProps,\n type MultiTabAssistantChatHeaderProps,\n} from \"./MultiTabAssistantChat.js\";\nexport { RunStuckBanner, type RunStuckBannerProps } from \"./RunStuckBanner.js\";\nexport {\n useRunStuckDetection,\n useAbortRun,\n type RunStuckState,\n type UseRunStuckDetectionOptions,\n} from \"./use-run-stuck-detection.js\";\nexport {\n createAgentChatAdapter,\n type AgentChatSurfaceKind,\n type CreateAgentChatAdapterOptions,\n} from \"./agent-chat-adapter.js\";\nexport {\n AgentComposerFrame,\n type AgentComposerFrameProps,\n PromptComposer,\n TiptapComposer,\n AGENT_PROMPT_MAX_INLINE_IMAGE_BYTES,\n AGENT_PROMPT_MAX_INLINE_TEXT_CHARS,\n escapePromptAttachmentAttribute,\n formatPromptWithAttachments,\n isInlineableAgentPromptFile,\n readAgentPromptAttachment,\n type PromptComposerProps,\n type PromptComposerFile,\n type PromptComposerSubmitOptions,\n type ComposerSubmitIntent,\n type AgentPromptAttachment,\n type ReadAgentPromptAttachmentOptions,\n type AgentComposerLayoutVariant,\n type SlashCommand,\n type SkillResult,\n type TiptapComposerHandle,\n type TiptapComposerProps,\n type TiptapComposerSubmitOptions,\n} from \"./composer/index.js\";\nexport {\n GuidedQuestionFlow,\n useGuidedQuestionFlow,\n askUserQuestion,\n formatGuidedAnswerValue,\n formatGuidedAnswersForAgent,\n getOtherGuidedAnswerText,\n hasGuidedAnswer,\n isOtherGuidedAnswer,\n makeOtherGuidedAnswer,\n normalizeGuidedAnswers,\n type AskUserQuestionInput,\n type AskUserQuestionOption,\n type AskUserQuestionResult,\n type GuidedQuestion,\n type GuidedQuestionAnswers,\n type GuidedQuestionFlowProps,\n type GuidedQuestionOption,\n type GuidedQuestionPayload,\n type GuidedQuestionType,\n type UseGuidedQuestionFlowOptions,\n} from \"./guided-questions.js\";\nexport {\n useChatThreads,\n type ChatThreadScope,\n type ChatThreadSnapshot,\n type ChatThreadSummary,\n type ChatThreadData,\n type UseChatThreadsOptions,\n} from \"./use-chat-threads.js\";\nexport { AgentChatHome, type AgentChatHomeProps } from \"./AgentChatHome.js\";\nexport {\n AgentChatSurface,\n AgentPanel,\n AgentSidebar,\n AgentToggleButton,\n focusAgentChat,\n type AgentChatSurfaceMode,\n type AgentChatSurfaceProps,\n type AgentPanelProps,\n type AgentSidebarProps,\n} from \"./AgentPanel.js\";\nexport {\n AGENT_CHAT_VIEW_TRANSITION_CLASS,\n AGENT_CHAT_VIEW_TRANSITION_NAME,\n getAgentChatViewTransitionStyle,\n navigateWithAgentChatViewTransition,\n startAgentChatViewTransition,\n supportsAgentChatViewTransition,\n type AgentChatViewTransition,\n type AgentChatViewTransitionOptions,\n} from \"./chat-view-transition.js\";\nexport {\n requestAgentSidebarOpen,\n SIDEBAR_STATE_CHANGE_EVENT,\n setAgentSidebarOpenPreference,\n type AgentSidebarStateChangeDetail,\n type AgentSidebarStateMode,\n type AgentSidebarStateSource,\n} from \"./agent-sidebar-state.js\";\nexport {\n clearReservedToolRenderersForTests,\n clearToolRenderersForTests,\n registerActionChatRenderer,\n registerFallbackToolRenderer,\n registerReservedActionChatRenderer,\n registerReservedFallbackToolRenderer,\n registerReservedToolRenderer,\n registerToolRenderer,\n resolveToolRenderer,\n type ActionChatRendererRegistration,\n type ToolRendererComponent,\n type ToolRendererContext,\n type ToolRendererMatch,\n type ToolRendererProps,\n type ToolRendererRegistration,\n} from \"./chat/tool-render-registry.js\";\nexport * from \"./chat/runtime.js\";\nexport {\n ACTION_CHAT_UI_DATA_CHART_RENDERER,\n ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER,\n ACTION_CHAT_UI_DATA_TABLE_RENDERER,\n ACTION_CHAT_UI_DATA_WIDGET_RENDERER,\n type ActionChatUIConfig,\n} from \"../action-ui.js\";\nexport {\n DATA_CHART_WIDGET,\n DATA_INSIGHTS_WIDGET,\n DATA_TABLE_WIDGET,\n createDataChartWidgetResult,\n createDataInsightsWidgetResult,\n createDataTableWidgetResult,\n dataChartWidgetResultSchema,\n dataChartWidgetSchema,\n dataInsightsWidgetResultSchema,\n dataTableWidgetResultSchema,\n dataTableWidgetSchema,\n dataWidgetResultSchema,\n isDataChartWidget,\n isDataTableWidget,\n isDataWidgetResult,\n normalizeDataWidgetKind,\n normalizeDataWidgetResult,\n type DataChartSeriesDefinition,\n type DataChartWidget,\n type DataChartWidgetResult,\n type DataChartWidgetResultInput,\n type DataInsightsWidgetResult,\n type DataInsightsWidgetResultInput,\n type DataTableColumn,\n type DataTableWidget,\n type DataTableWidgetResult,\n type DataTableWidgetResultInput,\n type DataWidgetDisplay,\n type DataWidgetKind,\n type DataWidgetResult,\n type DataWidgetResultMetadata,\n} from \"./chat/widgets/data-widget-types.js\";\nexport { AgentNativeIcon } from \"./components/icons/AgentNativeIcon.js\";\nexport { SettingsPanel, type SettingsPanelProps } from \"./settings/index.js\";\nexport { useBuilderStatus } from \"./settings/useBuilderStatus.js\";\nexport {\n openBuilderConnectPopup,\n useBuilderConnectFlow,\n type BuilderConnectFlow,\n type BuilderConnectFlowOptions,\n type OpenBuilderConnectPopupOptions,\n} from \"./settings/useBuilderStatus.js\";\n// Deprecated — use AgentSidebar + AgentToggleButton instead\nexport {\n ProductionAgentPanel,\n type ProductionAgentPanelProps,\n} from \"./ProductionAgentPanel.js\";\nexport {\n useProductionAgent,\n type ProductionAgentMessage,\n type UseProductionAgentOptions,\n type UseProductionAgentResult,\n} from \"./useProductionAgent.js\";\nexport { Turnstile, type TurnstileProps } from \"./Turnstile.js\";\nexport {\n OpenSourceBadge,\n PoweredByBadge,\n type OpenSourceBadgeProps,\n type PoweredByBadgeProps,\n} from \"./PoweredByBadge.js\";\nexport {\n StarfieldBackground,\n type StarfieldBackgroundProps,\n} from \"./StarfieldBackground.js\";\nexport { FeedbackButton, type FeedbackButtonProps } from \"./FeedbackButton.js\";\nexport {\n DevDatabaseLink,\n type DevDatabaseLinkProps,\n} from \"./db-admin/DevDatabaseLink.js\";\nexport { ErrorBoundary } from \"./ErrorBoundary.js\";\nexport {\n installRouteChunkRecovery,\n reloadForStaleChunk,\n recoverFromStaleChunkError,\n} from \"./route-chunk-recovery.js\";\nexport { ClientOnly } from \"./ClientOnly.js\";\nexport { DefaultSpinner } from \"./DefaultSpinner.js\";\nexport {\n getThemeInitScript,\n themeInitScript,\n type ThemePreference,\n} from \"./theme.js\";\nexport {\n APPEARANCE_PRESETS,\n applyAppearance,\n getStoredAppearance,\n useAppearance,\n useAppearanceSync,\n type AppearancePresetId,\n} from \"./appearance.js\";\nexport {\n AppearancePicker,\n type AppearancePickerProps,\n} from \"./AppearancePicker.js\";\nexport { AgentTerminal, type AgentTerminalProps } from \"./terminal/index.js\";\nexport {\n trackEvent,\n trackSessionStatus,\n configureTracking,\n setSentryUser,\n captureError,\n captureClientException,\n type ClientCaptureContext,\n} from \"./analytics.js\";\nexport { track } from \"./track.js\";\nexport {\n useCollaborativeDoc,\n isReconcileLeadClient,\n emailToColor,\n emailToName,\n dedupeCollabUsersByEmail,\n type UseCollaborativeDocOptions,\n type UseCollaborativeDocResult,\n type CollabUser,\n} from \"../collab/client.js\";\nexport { AGENT_CLIENT_ID } from \"../collab/agent-identity.js\";\n// Presence kit\nexport {\n usePresence,\n toNormalized,\n fromNormalized,\n type OtherPresence,\n type PresencePayload,\n type UsePresenceResult,\n type NormalizedPoint,\n} from \"../collab/presence.js\";\nexport {\n useFollowUser,\n type UseFollowUserOptions,\n type UseFollowUserResult,\n type ViewportDescriptor,\n} from \"../collab/follow-mode.js\";\nexport {\n ResourcesPanel,\n ResourceTree,\n ResourceEditor,\n useResources,\n useResourceTree,\n useResource,\n useCreateResource,\n useUpdateResource,\n useDeleteResource,\n useUploadResource,\n type Resource,\n type ResourceMeta,\n type TreeNode,\n type ResourceScope,\n type ResourceTreeProps,\n type ResourceEditorProps,\n} from \"./resources/index.js\";\nexport type {\n AppToFrameMessage,\n FrameToAppMessage,\n FrameMessage,\n CodeCompleteMessage,\n ChatRunningMessage,\n} from \"./frame-protocol.js\";\nexport {\n CommandMenu,\n useCommandMenuShortcut,\n openAgentSidebar,\n submitToAgent,\n type CommandMenuProps,\n type CommandGroupProps,\n type CommandItemProps,\n type CommandShortcutProps,\n} from \"./CommandMenu.js\";\nexport {\n DevOverlay,\n useDevOverlayShortcut,\n registerDevPanel,\n unregisterDevPanel,\n listDevPanels,\n subscribeDevPanels,\n useDevOption,\n clearAllDevOverlayStorage,\n devOptionKey,\n DEV_OVERLAY_STORAGE_PREFIX,\n type DevOverlayProps,\n type DevPanel,\n type DevOption,\n type DevBooleanOption,\n type DevSelectOption,\n type DevStringOption,\n type DevActionOption,\n type DevOptionValue,\n} from \"./dev-overlay/index.js\";\nexport {\n callAction,\n useActionQuery,\n useActionMutation,\n type ActionRegistry,\n type ClientActionCallOptions,\n type ClientActionMethod,\n} from \"./use-action.js\";\nexport { createAgentNativeQueryClient } from \"./create-query-client.js\";\nexport { AppProviders, type AppProvidersProps } from \"./app-providers.js\";\nexport { usePinchZoom, type UsePinchZoomOptions } from \"./use-pinch-zoom.js\";\nexport {\n ShareButton,\n ShareDialog,\n VisibilityBadge,\n type ShareButtonProps,\n type ShareDialogProps,\n type VisibilityBadgeProps,\n} from \"./sharing/index.js\";\nexport {\n postNavigate,\n isInAgentEmbed,\n AGENT_NAVIGATE_MESSAGE_TYPE,\n type AgentNavigateMessage,\n} from \"./embed.js\";\nexport { IframeEmbed, parseEmbedBody } from \"./IframeEmbed.js\";\nexport {\n useAvatarUrl,\n uploadAvatar,\n invalidateAvatarCache,\n} from \"./use-avatar.js\";\nexport {\n ObservabilityDashboard,\n ThumbsFeedback,\n} from \"./observability/index.js\";\n// Presence UI components\nexport {\n PresenceBar,\n type PresenceBarProps,\n} from \"./components/PresenceBar.js\";\nexport {\n AgentPresenceChip,\n type AgentPresenceChipProps,\n} from \"./components/AgentPresenceChip.js\";\nexport {\n LiveCursorOverlay,\n type LiveCursorOverlayProps,\n type CursorMapFn,\n} from \"./components/LiveCursorOverlay.js\";\nexport {\n RemoteSelectionRings,\n type RemoteSelectionRingsProps,\n} from \"./components/RemoteSelectionRings.js\";\n// Structured data collaboration hooks\nexport {\n useCollaborativeMap,\n useCollaborativeArray,\n type UseCollaborativeMapOptions,\n type UseCollaborativeMapResult,\n type UseCollaborativeArrayOptions,\n type UseCollaborativeArrayResult,\n} from \"../collab/client-struct.js\";\nexport { NotificationsBell } from \"./notifications/index.js\";\n// Block registry (also available as the dedicated `@agent-native/core/blocks`\n// subpath, which server/agent code should prefer via `/blocks/server`).\nexport {\n defineBlock,\n BlockRegistry,\n registerBlocks,\n BlockRegistryProvider,\n useBlockRegistry,\n useOptionalBlockRegistry,\n BlockView,\n SchemaBlockEditor,\n markdown,\n richtext,\n introspect,\n serializeSpecBlock,\n parseSpecBlock,\n createAttrReader,\n describeBlocksForAgent,\n renderBlockVocabularyReference,\n type BlockSpec,\n type BlockPlacement,\n type BlockMdxConfig,\n type BlockAttrReader,\n type BlockRenderContext,\n type BlockReadProps,\n type BlockEditProps,\n type MdxAttrValue,\n type FieldKind,\n type FieldDescriptor,\n type MdxJsxNode,\n type MdxAttrNode,\n type SerializableBlock,\n type ParsedBlockBase,\n type BlockAgentDoc,\n} from \"./blocks/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/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,wEAAwE;AACxE,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,GAgB/B,MAAM,mBAAmB,CAAC","sourcesContent":["import { installRouteChunkRecovery } from \"./route-chunk-recovery.js\";\nimport { stripAuthRedirectParamFromUrl } from \"./auth-redirect-url.js\";\n\ninstallRouteChunkRecovery();\nstripAuthRedirectParamFromUrl();\n\nexport {\n addContextToAgentChat,\n appendAgentChatContextToMessage,\n clearAgentChatContext,\n formatAgentChatContextItemsForPrompt,\n listAgentChatContext,\n refreshAgentChatContext,\n removeAgentChatContextItem,\n sendToAgentChat,\n setAgentChatContextItem,\n setContextToAgentChat,\n generateTabId,\n type AgentChatContextItem,\n type AgentChatContextMessage,\n type AgentChatContextMutationOptions,\n type AgentChatContextRemoveOptions,\n type AgentChatContextSetOptions,\n type AgentChatContextState,\n type AgentChatMessage,\n} from \"./agent-chat.js\";\nexport {\n saveAgentEngineApiKey,\n type AgentEngineProvider,\n type SaveAgentEngineApiKeyOptions,\n} from \"./agent-engine-key.js\";\nexport { useAgentChatGenerating } from \"./use-agent-chat.js\";\nexport {\n useAgentChatContext,\n type UseAgentChatContextResult,\n} from \"./use-agent-chat-context.js\";\nexport { useCodeMode, useDevMode } from \"./use-dev-mode.js\";\nexport {\n agentNativePath,\n appApiPath,\n appBasePath,\n appPath,\n} from \"./api-path.js\";\nexport {\n deleteClientAppState,\n readClientAppState,\n setClientAppState,\n writeClientAppState,\n type ClientAppStateReadOptions,\n type ClientAppStateWriteOptions,\n} from \"./application-state.js\";\nexport {\n useAgentRouteState,\n useSemanticNavigationState,\n type AgentRouteLocation,\n type SemanticNavigationCommandEnvelope,\n type UseAgentRouteStateOptions,\n type UseAgentRouteStateResult,\n type UseSemanticNavigationStateOptions,\n type UseSemanticNavigationStateResult,\n} from \"./route-state.js\";\nexport {\n ensureEmbedAuthFetchInterceptor,\n getEmbedAuthToken,\n isEmbedAuthActive,\n isEmbedMcpChatBridgeActive,\n} from \"./embed-auth.js\";\nexport {\n codeAgentTranscriptEventsToContent,\n createCodeAgentChatAdapter,\n type CodeAgentChatController,\n type CodeAgentChatControlResult,\n type CodeAgentChatFollowUpMode,\n type CodeAgentChatTranscriptEvent,\n type CreateCodeAgentChatAdapterOptions,\n} from \"./code-agent-chat-adapter.js\";\nexport {\n buildRepositoryFromCodeAgentTranscript,\n type BuildRepositoryFromCodeAgentTranscriptOptions,\n type CodeAgentThreadTranscriptEvent,\n} from \"../agent/thread-data-builder.js\";\nexport {\n compareCodeAgentTranscriptEvents,\n getCodeAgentTranscriptSeq,\n isCodeAgentRunActive,\n mergeCodeAgentTranscriptEvents,\n type CodeAgentRunStateLike,\n type CodeAgentTranscriptOrderEvent,\n} from \"../code-agents/transcript-order.js\";\nexport { useSendToAgentChat } from \"./use-send-to-agent-chat.js\";\nexport {\n useChatModels,\n type UseChatModelsResult,\n type EngineModelGroup,\n} from \"./use-chat-models.js\";\nexport {\n CodeRequiredDialog,\n type CodeRequiredDialogProps,\n} from \"./components/CodeRequiredDialog.js\";\nexport {\n AgentConversation,\n AgentConversationMessageView,\n normalizeCodeAgentTranscriptForConversation,\n useNearBottomAutoscroll,\n type CodeAgentConversationTranscriptEvent,\n type CodeAgentConversationTranscriptEventType,\n type NormalizeCodeAgentTranscriptOptions,\n type AgentConversationArtifact,\n type AgentConversationAttachment,\n type AgentConversationMessage,\n type AgentConversationMessagePart,\n type AgentConversationMessageRole,\n type AgentConversationNotice,\n type AgentConversationNoticeTone,\n type AgentConversationToolCall,\n type AgentConversationToolState,\n} from \"./conversation/index.js\";\nexport { McpAppRenderer } from \"./mcp-apps/McpAppRenderer.js\";\nexport {\n AGENT_NATIVE_MCP_APP_HOST_MESSAGE_TYPES,\n getMcpAppHostContext,\n openMcpAppHostLink,\n requestMcpAppDisplayMode,\n sendMcpAppHostMessage,\n updateMcpAppModelContext,\n useMcpAppHostContext,\n type AgentNativeMcpAppHostMessageType,\n type McpAppDisplayMode,\n type McpAppHostChatMessage,\n type McpAppHostCapabilities,\n type McpAppHostContext,\n type McpAppHostContextSnapshot,\n type McpAppModelContextContentPart,\n type McpAppModelContextUpdate,\n} from \"./mcp-app-host.js\";\nexport {\n CodeAgentIndicator,\n type CodeAgentIndicatorProps,\n} from \"./components/CodeAgentIndicator.js\";\nexport {\n useDbSync,\n useFileWatcher,\n useScreenRefreshKey,\n} from \"./use-db-sync.js\";\nexport {\n useChangeVersion,\n useChangeVersions,\n getChangeVersion,\n bumpChangeVersion,\n} from \"./use-change-version.js\";\nexport { useReconciledState } from \"./use-external-value.js\";\nexport {\n buildDynamicAgentSuggestions,\n dedupeSuggestions,\n mergeAgentSuggestions,\n normalizeAgentDynamicSuggestionsConfig,\n useAgentDynamicSuggestions,\n type AgentDynamicSuggestionContext,\n type AgentDynamicSuggestionsConfig,\n type AgentDynamicSuggestionsOption,\n} from \"./dynamic-suggestions.js\";\nexport { cn } from \"./utils.js\";\nexport {\n // Shared editor core (Phase 1): the ONE configurable surface both the plan\n // and content editors build on.\n SharedRichEditor,\n createSharedEditorExtensions,\n MARKDOWN_DIALECT_CONFIG,\n useCollabReconcile,\n RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION,\n getEditorMarkdown,\n SlashCommandMenu,\n DEFAULT_SLASH_COMMANDS,\n createImageSlashCommand,\n // Shared block-level image node + injectable upload contract. Plans opt in\n // via `features.image` + `onImageUpload`; Content keeps its own image block.\n SharedImage,\n createImageExtension,\n pickAndInsertImage,\n uploadEditorImage,\n BubbleToolbar,\n buildDefaultBubbleItems,\n // Back-compat alias + factory kept for existing embedders and specs.\n RichMarkdownEditor,\n createRichMarkdownExtensions,\n // Single-doc plan editor primitives: the GFM↔ProseMirror serializer, the\n // run-id prose attribute, and the shared drag-handle (block grip + reorder).\n RunId,\n RUN_ID_NODE_TYPES,\n gfmToProseJSON,\n proseJSONToGfm,\n DragHandle,\n DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR,\n // Generic registry-block Tiptap NodeView + side-map provider + dedupe plugin.\n // Hosts mount the node from `createRegistryBlockNode` as an extra extension\n // and wrap the editor in `RegistryBlockDataProvider`.\n createRegistryBlockNode,\n RegistryBlockNodeView,\n RegistryBlockDataProvider,\n useRegistryBlockData,\n // Shared registry-derived block slash-command builder (plan + content adapt it).\n buildRegistryBlockSlashItems,\n getRegistryBlockSlashDescription,\n getRegistryBlockSlashSearchText,\n type BuildRegistryBlockSlashItemsOptions,\n type DragHandleDropContext,\n type DragHandleDropPlacement,\n type DragHandleOptions,\n type CreateRegistryBlockNodeOptions,\n type RegistryBlockDataValue,\n type RegistryBlockSideMapBlock,\n type SharedRichEditorProps,\n type SharedEditorCollab,\n type SharedEditorFeatures,\n type CreateSharedEditorExtensionsOptions,\n type UseCollabReconcileOptions,\n type UseCollabReconcileResult,\n type SlashCommandItem,\n type SlashCommandMenuProps,\n type ImageUploadFn,\n type SharedImageOptions,\n type BubbleToolbarItem,\n type BubbleToolbarProps,\n type RichMarkdownDialect,\n type RichMarkdownEditorPreset,\n type RichMarkdownEditorProps,\n type RichMarkdownCollabUser,\n type CreateRichMarkdownExtensionsOptions,\n} from \"./rich-markdown-editor/index.js\";\n// ProseMirror node JSON shape — re-exported so the plan template (which has no\n// direct @tiptap dep) can type its doc↔blocks serializer.\nexport type { JSONContent } from \"@tiptap/core\";\nexport { ApiKeySettings } from \"./components/ApiKeySettings.js\";\nexport { useSession, type AuthSession } from \"./use-session.js\";\nexport {\n RequireSession,\n buildSignInReturnHref,\n type RequireSessionProps,\n} from \"./require-session.js\";\nexport {\n sendToFrame,\n onFrameMessage,\n requestUserInfo,\n getFrameOrigin,\n getFramePostMessageTargetOrigin,\n getCallbackOrigin,\n oauthRedirectUri,\n isInFrame,\n enterStyleEditing,\n enterTextEditing,\n exitSelectionMode,\n type UserInfo,\n} from \"./frame.js\";\nexport {\n getBuilderParentOrigin,\n isInBuilderFrame,\n sendToBuilderChat,\n type BuilderChatMessage,\n} from \"./builder-frame.js\";\nexport {\n AgentNative,\n useAgentNativeScreenContext,\n type AgentNativeCommandCallback,\n type AgentNativeCommandCallbackInfo,\n type AgentNativeProps,\n} from \"./AgentNative.js\";\nexport {\n AgentNativeEmbedded,\n useAgentNativeEmbeddedBrowserSession,\n type AgentNativeEmbeddedBrowserSessionOptions,\n type AgentNativeEmbeddedCommandCallback,\n type AgentNativeEmbeddedCommandCallbackInfo,\n type AgentNativeEmbeddedProps,\n type UseAgentNativeEmbeddedBrowserSessionOptions,\n} from \"./AgentNativeEmbedded.js\";\nexport {\n defineClientAction,\n type AgentNativeClientActionDefinition,\n type AgentNativeClientActionRunner,\n} from \"./client-action.js\";\nexport {\n AgentNativeFrame,\n type AgentNativeFrameProps,\n} from \"./AgentNativeFrame.js\";\nexport {\n AgentNativeRouteWarmup,\n type AgentNativeRouteWarmupProps,\n} from \"./route-warmup.js\";\nexport {\n AgentNativeExtensionFrame,\n AgentNativeExtensionSlot,\n type AgentNativeExtensionFrameProps,\n type AgentNativeExtensionPermissionList,\n type AgentNativeExtensionSlotProps,\n type AgentNativeExtensionStorageScopeList,\n} from \"./extensions/AgentNativeExtensionFrame.js\";\nexport {\n AGENT_NATIVE_EXTENSION_MESSAGE_TYPES,\n buildAgentNativeExtensionHtml,\n createHttpAgentNativeExtensionStorage,\n createLocalStorageAgentNativeExtensionStorage,\n getAgentNativeExtensionManifest,\n isAgentNativeExtensionAllowedInSlot,\n normalizeAgentNativeExtensionSandbox,\n type AgentNativeExtensionDefinition,\n type AgentNativeExtensionManifest,\n type AgentNativeExtensionMessageType,\n type AgentNativeExtensionStorage,\n type AgentNativeExtensionStorageContext,\n type AgentNativeExtensionStorageOptions,\n type AgentNativeExtensionStorageRow,\n type AgentNativeExtensionStorageScope,\n type BuildAgentNativeExtensionHtmlOptions,\n type CreateHttpAgentNativeExtensionStorageOptions,\n} from \"./extensions/portable-extension.js\";\nexport {\n AGENT_NATIVE_HOST_BRIDGE_VERSION,\n AGENT_NATIVE_HOST_MESSAGE_TYPES,\n announceAgentNativeFrameReady,\n createAgentNativeHostBridge,\n defaultAgentNativeHostCommands,\n onAgentNativeHostInit,\n readAgentNativeScreenContext,\n requestAgentNativeHostActions,\n requestAgentNativeHostContext,\n runAgentNativeHostAction,\n sendAgentNativeHostCommand,\n type AgentNativeActionAvailability,\n type AgentNativeActionManifestEntry,\n type AgentNativeClientAction,\n type AgentNativeClientActionApprovalConfig,\n type AgentNativeClientActionGetter,\n type AgentNativeClientActionRuntime,\n type AgentNativeClientActions,\n type AgentNativeHostAuth,\n type AgentNativeHostAuthPayload,\n type AgentNativeHostBridge,\n type AgentNativeHostBridgeEvent,\n type AgentNativeHostBridgeOptions,\n type AgentNativeHostCapabilities,\n type AgentNativeHostCommandHandler,\n type AgentNativeHostCommandHandlers,\n type AgentNativeHostCommandRequest,\n type AgentNativeHostContext,\n type AgentNativeHostContextGetter,\n type AgentNativeHostInit,\n type AgentNativeHostMessageType,\n type AgentNativeHostRequestOptions,\n type AgentNativeHostResourceContext,\n type AgentNativeHostRouteContext,\n type AgentNativeHostSelectionContext,\n type AgentNativeHostSession,\n type AgentNativeJsonSchema,\n type AgentNativeScreenSnapshot,\n type AgentNativeScreenSnapshotOptions,\n type BuiltInAgentNativeHostCommand,\n} from \"./host-bridge.js\";\nexport {\n AGENT_NATIVE_HOST_TOOL_NAMES,\n createAgentNativeHostTools,\n type AgentNativeHostToolDefinition,\n type AgentNativeHostToolName,\n type AgentNativeHostToolParameters,\n type AgentNativeHostToolSet,\n type CreateAgentNativeHostToolsOptions,\n type RunAgentNativeHostActionToolInput,\n type SendAgentNativeHostCommandToolInput,\n} from \"./host-tools.js\";\nexport {\n createAgentNativeBrowserSessionBridge,\n startAgentNativeBrowserSessionBridge,\n type AgentNativeBrowserSessionBridge,\n type AgentNativeBrowserSessionBridgeOptions,\n} from \"./browser-session-bridge.js\";\nexport type {\n AgentNativeBrowserSession,\n AgentNativeBrowserSessionAction,\n AgentNativeBrowserSessionRecord,\n AgentNativeBrowserSessionRequest,\n AgentNativeBrowserSessionRequestStatus,\n AgentNativeBrowserSessionRequestType,\n CreateAgentNativeBrowserSessionRequestInput,\n RegisterAgentNativeBrowserSessionInput,\n} from \"../browser-sessions/types.js\";\nexport {\n NewWorkspaceAppFlow,\n type NewWorkspaceAppFlowProps,\n type VaultSecretOption,\n} from \"./NewWorkspaceAppFlow.js\";\nexport {\n AssistantChat,\n clearChatStorage,\n type AssistantChatProps,\n type AssistantChatHandle,\n type AssistantChatAdapterContext,\n} from \"./AssistantChat.js\";\nexport {\n MultiTabAssistantChat,\n type MultiTabAssistantChatProps,\n type MultiTabAssistantChatHeaderProps,\n} from \"./MultiTabAssistantChat.js\";\nexport { RunStuckBanner, type RunStuckBannerProps } from \"./RunStuckBanner.js\";\nexport {\n useRunStuckDetection,\n useAbortRun,\n type RunStuckState,\n type UseRunStuckDetectionOptions,\n} from \"./use-run-stuck-detection.js\";\nexport {\n createAgentChatAdapter,\n type AgentChatSurfaceKind,\n type CreateAgentChatAdapterOptions,\n} from \"./agent-chat-adapter.js\";\nexport {\n AgentComposerFrame,\n type AgentComposerFrameProps,\n PromptComposer,\n TiptapComposer,\n AGENT_PROMPT_MAX_INLINE_IMAGE_BYTES,\n AGENT_PROMPT_MAX_INLINE_TEXT_CHARS,\n escapePromptAttachmentAttribute,\n formatPromptWithAttachments,\n isInlineableAgentPromptFile,\n readAgentPromptAttachment,\n type PromptComposerProps,\n type PromptComposerFile,\n type PromptComposerSubmitOptions,\n type ComposerSubmitIntent,\n type AgentPromptAttachment,\n type ReadAgentPromptAttachmentOptions,\n type AgentComposerLayoutVariant,\n type SlashCommand,\n type SkillResult,\n type TiptapComposerHandle,\n type TiptapComposerProps,\n type TiptapComposerSubmitOptions,\n} from \"./composer/index.js\";\nexport {\n GuidedQuestionFlow,\n useGuidedQuestionFlow,\n askUserQuestion,\n formatGuidedAnswerValue,\n formatGuidedAnswersForAgent,\n getOtherGuidedAnswerText,\n hasGuidedAnswer,\n isOtherGuidedAnswer,\n makeOtherGuidedAnswer,\n normalizeGuidedAnswers,\n type AskUserQuestionInput,\n type AskUserQuestionOption,\n type AskUserQuestionResult,\n type GuidedQuestion,\n type GuidedQuestionAnswers,\n type GuidedQuestionFlowProps,\n type GuidedQuestionOption,\n type GuidedQuestionPayload,\n type GuidedQuestionType,\n type UseGuidedQuestionFlowOptions,\n} from \"./guided-questions.js\";\nexport {\n useChatThreads,\n type ChatThreadScope,\n type ChatThreadSnapshot,\n type ChatThreadSummary,\n type ChatThreadData,\n type UseChatThreadsOptions,\n} from \"./use-chat-threads.js\";\nexport { AgentChatHome, type AgentChatHomeProps } from \"./AgentChatHome.js\";\nexport {\n AgentChatSurface,\n AgentPanel,\n AgentSidebar,\n AgentToggleButton,\n focusAgentChat,\n type AgentChatSurfaceMode,\n type AgentChatSurfaceProps,\n type AgentPanelProps,\n type AgentSidebarProps,\n} from \"./AgentPanel.js\";\nexport {\n AGENT_CHAT_VIEW_TRANSITION_CLASS,\n AGENT_CHAT_VIEW_TRANSITION_NAME,\n getAgentChatViewTransitionStyle,\n navigateWithAgentChatViewTransition,\n startAgentChatViewTransition,\n supportsAgentChatViewTransition,\n type AgentChatViewTransition,\n type AgentChatViewTransitionOptions,\n} from \"./chat-view-transition.js\";\nexport {\n requestAgentSidebarOpen,\n SIDEBAR_STATE_CHANGE_EVENT,\n setAgentSidebarOpenPreference,\n type AgentSidebarStateChangeDetail,\n type AgentSidebarStateMode,\n type AgentSidebarStateSource,\n} from \"./agent-sidebar-state.js\";\nexport {\n clearReservedToolRenderersForTests,\n clearToolRenderersForTests,\n registerActionChatRenderer,\n registerFallbackToolRenderer,\n registerReservedActionChatRenderer,\n registerReservedFallbackToolRenderer,\n registerReservedToolRenderer,\n registerToolRenderer,\n resolveToolRenderer,\n type ActionChatRendererRegistration,\n type ToolRendererComponent,\n type ToolRendererContext,\n type ToolRendererMatch,\n type ToolRendererProps,\n type ToolRendererRegistration,\n} from \"./chat/tool-render-registry.js\";\nexport * from \"./chat/connectors.js\";\nexport * from \"./chat/runtime.js\";\nexport {\n ACTION_CHAT_UI_DATA_CHART_RENDERER,\n ACTION_CHAT_UI_DATA_INSIGHTS_RENDERER,\n ACTION_CHAT_UI_DATA_TABLE_RENDERER,\n ACTION_CHAT_UI_DATA_WIDGET_RENDERER,\n type ActionChatUIConfig,\n} from \"../action-ui.js\";\nexport {\n DATA_CHART_WIDGET,\n DATA_INSIGHTS_WIDGET,\n DATA_TABLE_WIDGET,\n createDataChartWidgetResult,\n createDataInsightsWidgetResult,\n createDataTableWidgetResult,\n dataChartWidgetResultSchema,\n dataChartWidgetSchema,\n dataInsightsWidgetResultSchema,\n dataTableWidgetResultSchema,\n dataTableWidgetSchema,\n dataWidgetResultSchema,\n isDataChartWidget,\n isDataTableWidget,\n isDataWidgetResult,\n normalizeDataWidgetKind,\n normalizeDataWidgetResult,\n type DataChartSeriesDefinition,\n type DataChartWidget,\n type DataChartWidgetResult,\n type DataChartWidgetResultInput,\n type DataInsightsWidgetResult,\n type DataInsightsWidgetResultInput,\n type DataTableColumn,\n type DataTableWidget,\n type DataTableWidgetResult,\n type DataTableWidgetResultInput,\n type DataWidgetDisplay,\n type DataWidgetKind,\n type DataWidgetResult,\n type DataWidgetResultMetadata,\n} from \"./chat/widgets/data-widget-types.js\";\nexport { AgentNativeIcon } from \"./components/icons/AgentNativeIcon.js\";\nexport { SettingsPanel, type SettingsPanelProps } from \"./settings/index.js\";\nexport { useBuilderStatus } from \"./settings/useBuilderStatus.js\";\nexport {\n openBuilderConnectPopup,\n useBuilderConnectFlow,\n type BuilderConnectFlow,\n type BuilderConnectFlowOptions,\n type OpenBuilderConnectPopupOptions,\n} from \"./settings/useBuilderStatus.js\";\n// Deprecated — use AgentSidebar + AgentToggleButton instead\nexport {\n ProductionAgentPanel,\n type ProductionAgentPanelProps,\n} from \"./ProductionAgentPanel.js\";\nexport {\n useProductionAgent,\n type ProductionAgentMessage,\n type UseProductionAgentOptions,\n type UseProductionAgentResult,\n} from \"./useProductionAgent.js\";\nexport { Turnstile, type TurnstileProps } from \"./Turnstile.js\";\nexport {\n OpenSourceBadge,\n PoweredByBadge,\n type OpenSourceBadgeProps,\n type PoweredByBadgeProps,\n} from \"./PoweredByBadge.js\";\nexport {\n StarfieldBackground,\n type StarfieldBackgroundProps,\n} from \"./StarfieldBackground.js\";\nexport { FeedbackButton, type FeedbackButtonProps } from \"./FeedbackButton.js\";\nexport {\n DevDatabaseLink,\n type DevDatabaseLinkProps,\n} from \"./db-admin/DevDatabaseLink.js\";\nexport { ErrorBoundary } from \"./ErrorBoundary.js\";\nexport {\n installRouteChunkRecovery,\n reloadForStaleChunk,\n recoverFromStaleChunkError,\n} from \"./route-chunk-recovery.js\";\nexport { ClientOnly } from \"./ClientOnly.js\";\nexport { DefaultSpinner } from \"./DefaultSpinner.js\";\nexport {\n getThemeInitScript,\n themeInitScript,\n type ThemePreference,\n} from \"./theme.js\";\nexport {\n APPEARANCE_PRESETS,\n applyAppearance,\n getStoredAppearance,\n useAppearance,\n useAppearanceSync,\n type AppearancePresetId,\n} from \"./appearance.js\";\nexport {\n AppearancePicker,\n type AppearancePickerProps,\n} from \"./AppearancePicker.js\";\nexport { AgentTerminal, type AgentTerminalProps } from \"./terminal/index.js\";\nexport {\n trackEvent,\n trackSessionStatus,\n configureTracking,\n setSentryUser,\n captureError,\n captureClientException,\n type ClientCaptureContext,\n} from \"./analytics.js\";\nexport { track } from \"./track.js\";\nexport {\n useCollaborativeDoc,\n isReconcileLeadClient,\n emailToColor,\n emailToName,\n dedupeCollabUsersByEmail,\n type UseCollaborativeDocOptions,\n type UseCollaborativeDocResult,\n type CollabUser,\n} from \"../collab/client.js\";\nexport { AGENT_CLIENT_ID } from \"../collab/agent-identity.js\";\n// Presence kit\nexport {\n usePresence,\n toNormalized,\n fromNormalized,\n type OtherPresence,\n type PresencePayload,\n type UsePresenceResult,\n type NormalizedPoint,\n} from \"../collab/presence.js\";\nexport {\n useFollowUser,\n type UseFollowUserOptions,\n type UseFollowUserResult,\n type ViewportDescriptor,\n} from \"../collab/follow-mode.js\";\nexport {\n ResourcesPanel,\n ResourceTree,\n ResourceEditor,\n useResources,\n useResourceTree,\n useResource,\n useCreateResource,\n useUpdateResource,\n useDeleteResource,\n useUploadResource,\n type Resource,\n type ResourceMeta,\n type TreeNode,\n type ResourceScope,\n type ResourceTreeProps,\n type ResourceEditorProps,\n} from \"./resources/index.js\";\nexport type {\n AppToFrameMessage,\n FrameToAppMessage,\n FrameMessage,\n CodeCompleteMessage,\n ChatRunningMessage,\n} from \"./frame-protocol.js\";\nexport {\n CommandMenu,\n useCommandMenuShortcut,\n openAgentSidebar,\n submitToAgent,\n type CommandMenuProps,\n type CommandGroupProps,\n type CommandItemProps,\n type CommandShortcutProps,\n} from \"./CommandMenu.js\";\nexport {\n DevOverlay,\n useDevOverlayShortcut,\n registerDevPanel,\n unregisterDevPanel,\n listDevPanels,\n subscribeDevPanels,\n useDevOption,\n clearAllDevOverlayStorage,\n devOptionKey,\n DEV_OVERLAY_STORAGE_PREFIX,\n type DevOverlayProps,\n type DevPanel,\n type DevOption,\n type DevBooleanOption,\n type DevSelectOption,\n type DevStringOption,\n type DevActionOption,\n type DevOptionValue,\n} from \"./dev-overlay/index.js\";\nexport {\n callAction,\n useActionQuery,\n useActionMutation,\n type ActionRegistry,\n type ClientActionCallOptions,\n type ClientActionMethod,\n} from \"./use-action.js\";\nexport { createAgentNativeQueryClient } from \"./create-query-client.js\";\nexport { AppProviders, type AppProvidersProps } from \"./app-providers.js\";\nexport { usePinchZoom, type UsePinchZoomOptions } from \"./use-pinch-zoom.js\";\nexport {\n ShareButton,\n ShareDialog,\n VisibilityBadge,\n type ShareButtonProps,\n type ShareDialogProps,\n type VisibilityBadgeProps,\n} from \"./sharing/index.js\";\nexport {\n postNavigate,\n isInAgentEmbed,\n AGENT_NAVIGATE_MESSAGE_TYPE,\n type AgentNavigateMessage,\n} from \"./embed.js\";\nexport { IframeEmbed, parseEmbedBody } from \"./IframeEmbed.js\";\nexport {\n useAvatarUrl,\n uploadAvatar,\n invalidateAvatarCache,\n} from \"./use-avatar.js\";\nexport {\n ObservabilityDashboard,\n ThumbsFeedback,\n} from \"./observability/index.js\";\n// Presence UI components\nexport {\n PresenceBar,\n type PresenceBarProps,\n} from \"./components/PresenceBar.js\";\nexport {\n AgentPresenceChip,\n type AgentPresenceChipProps,\n} from \"./components/AgentPresenceChip.js\";\nexport {\n LiveCursorOverlay,\n type LiveCursorOverlayProps,\n type CursorMapFn,\n} from \"./components/LiveCursorOverlay.js\";\nexport {\n RemoteSelectionRings,\n type RemoteSelectionRingsProps,\n} from \"./components/RemoteSelectionRings.js\";\n// Structured data collaboration hooks\nexport {\n useCollaborativeMap,\n useCollaborativeArray,\n type UseCollaborativeMapOptions,\n type UseCollaborativeMapResult,\n type UseCollaborativeArrayOptions,\n type UseCollaborativeArrayResult,\n} from \"../collab/client-struct.js\";\nexport { NotificationsBell } from \"./notifications/index.js\";\n// Block registry (also available as the dedicated `@agent-native/core/blocks`\n// subpath, which server/agent code should prefer via `/blocks/server`).\nexport {\n defineBlock,\n BlockRegistry,\n registerBlocks,\n BlockRegistryProvider,\n useBlockRegistry,\n useOptionalBlockRegistry,\n BlockView,\n SchemaBlockEditor,\n markdown,\n richtext,\n introspect,\n serializeSpecBlock,\n parseSpecBlock,\n createAttrReader,\n describeBlocksForAgent,\n renderBlockVocabularyReference,\n type BlockSpec,\n type BlockPlacement,\n type BlockMdxConfig,\n type BlockAttrReader,\n type BlockRenderContext,\n type BlockReadProps,\n type BlockEditProps,\n type MdxAttrValue,\n type FieldKind,\n type FieldDescriptor,\n type MdxJsxNode,\n type MdxAttrNode,\n type SerializableBlock,\n type ParsedBlockBase,\n type BlockAgentDoc,\n} from \"./blocks/index.js\";\n"]}
@@ -153,6 +153,20 @@ export function SupportAgentChat() {
153
153
  }
154
154
  ```
155
155
 
156
+ Use `createOpenAIAgentsChatRuntime()`,
157
+ `createOpenAIResponsesChatRuntime()`, `createClaudeAgentChatRuntime()`,
158
+ `createVercelAiChatRuntime()`, or `createAgUiChatRuntime()` when your endpoint
159
+ already streams one of those event shapes. Use `createHttpAgentChatRuntime()`
160
+ when your agent streams Agent-Native's normalized event shape directly:
161
+
162
+ ```ts
163
+ import { createOpenAIAgentsChatRuntime } from "@agent-native/core/client/chat";
164
+
165
+ const runtime = createOpenAIAgentsChatRuntime({
166
+ endpoint: "/api/openai-agent/chat",
167
+ });
168
+ ```
169
+
156
170
  The endpoint can stream SSE or NDJSON events:
157
171
 
158
172
  ```txt
@@ -168,10 +182,11 @@ integrations, stream `message-*`, `tool-*`, `approval-request`, `status`,
168
182
  `chatUI` metadata so the same native table/chart/card renderers work with your
169
183
  agent too.
170
184
 
171
- This is the right place to adapt Mastra, Flue, Eve, LangGraph, a custom service,
172
- or an AG-UI-compatible event stream. Do not use ACP as the default end-user app
173
- chat protocol; ACP is better framed as coding-agent/editor interoperability.
174
- Agent-Native does not currently claim A2UI support.
185
+ This is the right place to adapt the OpenAI Agents SDK, Claude Agent SDK, Vercel
186
+ AI SDK, Mastra, Flue, Eve, LangGraph, a custom service, or an AG-UI-compatible
187
+ event stream. Do not use ACP as the default end-user app chat protocol; ACP is
188
+ better framed as coding-agent/editor interoperability. Agent-Native does not
189
+ currently claim A2UI support.
175
190
 
176
191
  ## Embedded sidecar {#embedded-sidecar}
177
192
 
@@ -27,19 +27,24 @@ so bundlers choose the browser-safe entry.
27
27
 
28
28
  ## Agent And Chat UI {#agent-chat-ui}
29
29
 
30
- | API | Import path | Use when |
31
- | --------------------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------ |
32
- | `<AgentSidebar>` | `@agent-native/core/client` or `/client/chat` | You want the complete sidebar around your app. |
33
- | `<AgentToggleButton>` | `@agent-native/core/client` or `/client/chat` | You render your own header button for the sidebar. |
34
- | `<AgentPanel>` | `@agent-native/core/client` or `/client/chat` | You want the full panel in your own layout, route, dialog, or side column. |
35
- | `<AgentChatSurface>` | `@agent-native/core/client` or `/client/chat` | You want chat in panel or page mode without the sidebar wrapper. |
36
- | `<AssistantChat>` | `@agent-native/core/client` or `/client/chat` | You want to own surrounding chrome while keeping the standard conversation and composer runtime. |
37
- | `<MultiTabAssistantChat>` | `@agent-native/core/client` or `/client/chat` | You want the framework's thread tabs without `AgentPanel` chrome. |
38
- | `createHttpAgentChatRuntime()` | `@agent-native/core/client` or `/client/chat` | You have a BYO agent endpoint that streams normalized chat events. |
39
- | `createAgentChatRuntimeAdapter()` | `@agent-native/core/client` or `/client/chat` | You need to adapt an `AgentChatRuntime` into assistant-ui yourself. |
40
- | `createAgentChatAdapter()` | `@agent-native/core/client` or `/client/chat` | You need the built-in Agent-Native SSE transport as a low-level assistant-ui adapter. |
41
- | `useChatThreads()` | `@agent-native/core/client` or `/client/chat` | You need a custom thread list, history picker, or scoped chat UI. |
42
- | `sendToAgentChat()` | `@agent-native/core/client` or `/client/chat` | A product action should hand work to the agent chat. |
30
+ | API | Import path | Use when |
31
+ | ------------------------------------ | --------------------------------------------- | ------------------------------------------------------------------------------------------------ |
32
+ | `<AgentSidebar>` | `@agent-native/core/client` or `/client/chat` | You want the complete sidebar around your app. |
33
+ | `<AgentToggleButton>` | `@agent-native/core/client` or `/client/chat` | You render your own header button for the sidebar. |
34
+ | `<AgentPanel>` | `@agent-native/core/client` or `/client/chat` | You want the full panel in your own layout, route, dialog, or side column. |
35
+ | `<AgentChatSurface>` | `@agent-native/core/client` or `/client/chat` | You want chat in panel or page mode without the sidebar wrapper. |
36
+ | `<AssistantChat>` | `@agent-native/core/client` or `/client/chat` | You want to own surrounding chrome while keeping the standard conversation and composer runtime. |
37
+ | `<MultiTabAssistantChat>` | `@agent-native/core/client` or `/client/chat` | You want the framework's thread tabs without `AgentPanel` chrome. |
38
+ | `createHttpAgentChatRuntime()` | `@agent-native/core/client` or `/client/chat` | You have a BYO agent endpoint that streams normalized chat events. |
39
+ | `createOpenAIAgentsChatRuntime()` | `@agent-native/core/client` or `/client/chat` | You have an OpenAI Agents SDK stream and want the standard chat UI around it. |
40
+ | `createOpenAIResponsesChatRuntime()` | `@agent-native/core/client` or `/client/chat` | You have an OpenAI Responses event stream and want it normalized into the chat UI. |
41
+ | `createAgUiChatRuntime()` | `@agent-native/core/client` or `/client/chat` | You have an AG-UI event stream and want it normalized into the chat UI. |
42
+ | `createClaudeAgentChatRuntime()` | `@agent-native/core/client` or `/client/chat` | You have a Claude Agent SDK stream and want it normalized into the chat UI. |
43
+ | `createVercelAiChatRuntime()` | `@agent-native/core/client` or `/client/chat` | You have a Vercel AI SDK stream and want it normalized into the chat UI. |
44
+ | `createAgentChatRuntimeAdapter()` | `@agent-native/core/client` or `/client/chat` | You need to adapt an `AgentChatRuntime` into assistant-ui yourself. |
45
+ | `createAgentChatAdapter()` | `@agent-native/core/client` or `/client/chat` | You need the built-in Agent-Native SSE transport as a low-level assistant-ui adapter. |
46
+ | `useChatThreads()` | `@agent-native/core/client` or `/client/chat` | You need a custom thread list, history picker, or scoped chat UI. |
47
+ | `sendToAgentChat()` | `@agent-native/core/client` or `/client/chat` | A product action should hand work to the agent chat. |
43
48
 
44
49
  `AgentChatRuntime` is the BYO-agent contract for the standard chat shell. Pass
45
50
  `runtime` to `<AssistantChat>` when an external agent should power the
@@ -85,10 +90,10 @@ For a bring-your-own agent endpoint:
85
90
  ```tsx
86
91
  import {
87
92
  AssistantChat,
88
- createHttpAgentChatRuntime,
93
+ createOpenAIAgentsChatRuntime,
89
94
  } from "@agent-native/core/client/chat";
90
95
 
91
- const runtime = createHttpAgentChatRuntime({
96
+ const runtime = createOpenAIAgentsChatRuntime({
92
97
  endpoint: "/api/my-agent/chat",
93
98
  label: "My agent",
94
99
  });
@@ -98,6 +103,9 @@ export function MyAgentChat() {
98
103
  }
99
104
  ```
100
105
 
106
+ Use `createHttpAgentChatRuntime()` instead when your endpoint already emits
107
+ Agent-Native normalized events.
108
+
101
109
  ## Chat Field And Composer {#composer}
102
110
 
103
111
  Use `@agent-native/core/client/composer` when you need to place the same chat