🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@nyosegawa/agent-ui-react

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nyosegawa/agent-ui-react - npm Package Compare versions

Comparing version
2.0.0
to
3.0.0
+329
dist/chat-BF6x-5b4.d.ts
import * as react_jsx_runtime from 'react/jsx-runtime';
import React$1 from 'react';
import { I as AgentTranscriptItem, x as AgentResourceResolution, J as AgentTranscriptBlock, F as TranscriptApprovalAnchors, K as AgentTranscriptDensity, L as AgentTranscriptEntry, M as ApprovalAnchors, E as AgentUserInput, v as AgentResourceKind, s as AgentResolvedResourceBase, k as AgentApprovalRequest, a as AgentI18nKey, N as useAgentBootstrap, O as ThreadStartOptions, T as TurnStartOptions, f as AgentLocale, b as AgentI18nMessages } from './normalize-Bkx3MbOU.js';
import { ThreadTokenUsage, AgentThreadSummaryView, AgentThreadTranscriptView, AgentThreadView as AgentThreadView$1, AgentThreadWaitingReason, AgentThread } from '@nyosegawa/agent-ui-core';
type AgentLocalMediaUrlResolver = (path: string, item: AgentTranscriptItem | undefined) => AgentResourceResolution;
declare function AgentContentBlockView({ block, item, output, patch, resolveLocalMediaUrl, }: {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
output?: string;
patch?: unknown;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCommandItem({ block, item, itemId, output, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
itemId?: string;
output?: string;
}): react_jsx_runtime.JSX.Element;
declare function AgentFileChangeItem({ block, item, patch, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
patch?: unknown;
}): react_jsx_runtime.JSX.Element;
declare function AgentReasoningItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentToolCallItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentMessageItem({ text }: {
text: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentCommandOutputItem: typeof AgentCommandItem;
declare const AgentDiffItem: typeof AgentFileChangeItem;
declare function AgentMessageList({ footer, approvalAnchors, components, renderItem, density, resolveLocalMediaUrl, scrollKey, threadId, }: {
/**
* Trailing transcript content rendered as the final scroll-area item.
* The default thread view uses it to keep the pending-approval surface
* inside the transcript instead of in a separate scroll pane.
*/
footer?: React$1.ReactNode;
approvalAnchors?: TranscriptApprovalAnchors;
components?: AgentComponents;
density?: AgentTranscriptDensity;
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
/** Changing this value scrolls the transcript to its end (e.g. a new approval). */
scrollKey?: string | number;
threadId: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentTranscript: typeof AgentMessageList;
declare function AgentTurn({ approvals, components, entries, renderItem, resolveLocalMediaUrl, }: {
approvals?: ApprovalAnchors;
components?: AgentComponents;
entries?: AgentTranscriptEntry[];
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element;
type AgentLocalAttachmentKind = Extract<AgentResourceKind, "image" | "file">;
interface AgentResolvedLocalAttachment extends AgentResolvedResourceBase {
input: AgentUserInput | AgentUserInput[];
}
type AgentLocalAttachmentResolver = (file: File, kind: AgentLocalAttachmentKind) => AgentResolvedLocalAttachment | null | undefined | Promise<AgentResolvedLocalAttachment | null | undefined>;
interface AgentComposerIntegrationAttachment {
id?: string;
input: AgentUserInput | AgentUserInput[];
label: string;
value?: string;
}
type AgentComposerIntegrationResolver = () => AgentComposerIntegrationAttachment | null | undefined | Promise<AgentComposerIntegrationAttachment | null | undefined>;
interface AgentComposerIntegration {
id: string;
label: string;
resolve: AgentComposerIntegrationResolver;
title?: string;
}
type AgentAttachmentChipKind = Extract<AgentResourceKind, "image" | "file" | "integration">;
interface AgentAttachmentChip {
extension?: string;
id: string;
kind: AgentAttachmentChipKind;
label: string;
previewFailed?: boolean;
previewUrl?: string;
sizeLabel?: string;
}
interface AgentAttachmentChipsProps {
attachments: readonly AgentAttachmentChip[];
onPreviewFailed?: (id: string) => void;
onRemove?: (id: string) => void;
}
declare function AgentAttachmentChips({ attachments, onPreviewFailed, onRemove, }: AgentAttachmentChipsProps): react_jsx_runtime.JSX.Element | null;
interface AgentComposerInputProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
shortcutHintId?: string;
}
declare const AgentComposerInput: React$1.ForwardRefExoticComponent<AgentComposerInputProps & React$1.RefAttributes<HTMLTextAreaElement>>;
interface AgentComposerToolbarProps {
className?: string;
end?: React$1.ReactNode;
start?: React$1.ReactNode;
}
declare function AgentComposerToolbar({ className, end, start, }: AgentComposerToolbarProps): react_jsx_runtime.JSX.Element;
declare function AgentComposer(props: AgentComposerProps): react_jsx_runtime.JSX.Element;
interface AgentComposerProps {
composerIntegrations?: readonly AgentComposerIntegration[];
disabled?: boolean;
disabledReason?: string;
placeholder?: string;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
tokenUsage?: ThreadTokenUsage;
threadId?: string;
}
interface AgentComposerPanelProps {
composerIntegrations?: readonly AgentComposerIntegration[];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
threadId?: string;
}
declare function AgentComposerPanel({ composerIntegrations, resolveLocalAttachment, threadId, }: AgentComposerPanelProps): react_jsx_runtime.JSX.Element | null;
interface AgentThreadViewProps {
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
renderApproval?: (approval: AgentApprovalRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadHeaderEnd?: AgentThreadHeaderEnd;
threadId?: string;
}
declare function AgentThreadView({ composerIntegrations, components, renderApproval, renderItem, resolveLocalAttachment, resolveLocalMediaUrl, threadHeaderEnd, threadId, }: AgentThreadViewProps): react_jsx_runtime.JSX.Element | null;
declare function AgentThreadSurface({ children, className, }: {
children: React$1.ReactNode;
className?: string;
}): react_jsx_runtime.JSX.Element;
type AgentThreadHeaderEnd = React$1.ReactNode | ((context: AgentThreadHeaderEndContext) => React$1.ReactNode);
interface AgentThreadHeaderEndContext {
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
interface AgentThreadHeaderProps {
end?: AgentThreadHeaderEnd;
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
declare function AgentThreadHeader({ end, thread, threadId, transcript, }: AgentThreadHeaderProps): react_jsx_runtime.JSX.Element;
/**
* Renders the thread transcript. When a `threadId` is supplied, pending
* approvals with upstream item or turn metadata are anchored immediately after
* that transcript context. Metadata-free approvals fall back to the transcript
* tail so they stay in the scroll area, not a separate pane above the composer.
*/
declare function AgentThreadTimeline({ components, renderApproval, renderItem, resolveLocalMediaUrl, threadId, }: {
components?: AgentComponents;
renderApproval?: (approval: AgentApprovalRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadId?: string;
}): react_jsx_runtime.JSX.Element | null;
type AgentWorkingDirectoryResolver = () => Promise<string | null | undefined> | string | null | undefined;
/**
* Compact working-directory selector for the start screen. cwd is a
* thread-start setting, so it sits beneath the starter composer as a context
* pill rather than inside the composer toolbar.
*/
declare function AgentStarterCwd({ fixedWorkingDirectory, onRequestWorkingDirectory, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
}): react_jsx_runtime.JSX.Element;
declare function AgentFirstRun({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}): react_jsx_runtime.JSX.Element;
interface AgentStartComposerProps {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}
declare function AgentStartComposer({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: AgentStartComposerProps): react_jsx_runtime.JSX.Element;
declare function ThreadList({ activeThreadId, footer, onSelectThread, threads, }: {
activeThreadId?: string;
footer?: React.ReactNode;
onSelectThread?: (threadId: string) => void;
threads: AgentThreadView$1[];
}): react_jsx_runtime.JSX.Element;
declare function formatThreadStatus(status: string, options?: {
hasTurns?: boolean;
t?: (key: AgentI18nKey) => string;
waitingReasons?: readonly AgentThreadWaitingReason[];
}): string;
declare function threadSubtitle(thread: AgentThread, t?: (key: AgentI18nKey) => string): string;
declare function isUserFacingPath(path: string): boolean;
declare function AgentThreadSidebar({ activeThreadId, collapsed, onCreateThread, onCollapsedChange, onSelectThread, }: {
activeThreadId?: string;
collapsed?: boolean;
onCreateThread?: () => void;
onCollapsedChange?: (collapsed: boolean) => void;
onSelectThread?: (threadId: string) => void;
}): react_jsx_runtime.JSX.Element | null;
type AgentTheme = "light" | "dark" | "system";
interface AgentThemeToggleProps {
"aria-label"?: string;
disabled?: boolean;
onChange: (theme: AgentTheme) => void;
value: AgentTheme;
}
declare function AgentThemeToggle({ "aria-label": ariaLabel, disabled, onChange, value, }: AgentThemeToggleProps): react_jsx_runtime.JSX.Element;
interface AgentShellProps extends React$1.HTMLAttributes<HTMLElement> {
sidebar?: React$1.ReactNode;
theme?: AgentTheme;
}
declare function AgentShell({ children, className, sidebar, theme, ...props }: AgentShellProps): react_jsx_runtime.JSX.Element;
interface AgentThreadUrlRoutingOptions {
basePath?: string;
homePath?: string;
}
interface AgentStatusBarProps {
end?: React$1.ReactNode;
onNavigateHome?: () => void;
onOpenThreads?: () => void;
}
declare function AgentStatusBar({ end, onNavigateHome, onOpenThreads, }?: AgentStatusBarProps): react_jsx_runtime.JSX.Element;
declare function AgentDiagnosticsPanel({ bootstrap, }: {
bootstrap: ReturnType<typeof useAgentBootstrap>;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusSummary(): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusDetails({ includeCritical, }: {
includeCritical?: boolean;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCriticalNoticeList(): react_jsx_runtime.JSX.Element | null;
interface AgentApprovalComponentProps {
approval: AgentApprovalRequest;
Default: React$1.ComponentType<AgentApprovalDefaultProps>;
}
interface AgentApprovalDefaultProps {
approval: AgentApprovalRequest;
}
interface AgentItemDefaultProps {
entry: AgentTranscriptEntry;
}
interface AgentShellComponentProps extends AgentShellProps {
Default: React$1.ComponentType<AgentShellProps>;
}
interface AgentSidebarComponentProps extends React$1.ComponentProps<typeof AgentThreadSidebar> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentThreadSidebar>>;
}
interface AgentEmptyStateComponentProps extends React$1.ComponentProps<typeof AgentFirstRun> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentFirstRun>>;
}
interface AgentComposerPanelComponentProps extends AgentComposerPanelProps {
Default: React$1.ComponentType<AgentComposerPanelProps>;
}
interface AgentStatusBarComponentProps extends AgentStatusBarProps {
Default: React$1.ComponentType<AgentStatusBarProps>;
}
interface AgentThreadHeaderComponentProps extends AgentThreadHeaderProps {
Default: React$1.ComponentType<AgentThreadHeaderProps>;
}
interface AgentChatStartOptions {
threadOptions?: ThreadStartOptions;
turnOptions?: TurnStartOptions;
}
interface AgentChatOverlayControls {
contextSheetOpen?: boolean;
onContextSheetOpenChange?: (open: boolean) => void;
onSidebarCollapsedChange?: (collapsed: boolean) => void;
sidebarCollapsed?: boolean;
}
interface AgentBlockDefaultProps {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
}
interface AgentBlockComponentProps extends AgentBlockDefaultProps {
Default: React$1.ComponentType<AgentBlockDefaultProps>;
}
interface AgentComponents {
Approval?: React$1.ComponentType<AgentApprovalComponentProps>;
ComposerPanel?: React$1.ComponentType<AgentComposerPanelComponentProps>;
EmptyState?: React$1.ComponentType<AgentEmptyStateComponentProps>;
Shell?: React$1.ComponentType<AgentShellComponentProps>;
Sidebar?: React$1.ComponentType<AgentSidebarComponentProps>;
StatusBar?: React$1.ComponentType<AgentStatusBarComponentProps>;
ThreadHeader?: React$1.ComponentType<AgentThreadHeaderComponentProps>;
blocks?: Partial<Record<AgentTranscriptBlock["kind"], React$1.ComponentType<AgentBlockComponentProps>>>;
}
declare const defaultAgentComponents: {
ComposerPanel: typeof AgentComposerPanel;
EmptyState: typeof AgentFirstRun;
Shell: typeof AgentShell;
Sidebar: typeof AgentThreadSidebar;
StatusBar: typeof AgentStatusBar;
ThreadHeader: typeof AgentThreadHeader;
};
interface AgentChatProps {
className?: string;
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
controls?: AgentChatOverlayControls;
diagnostics?: boolean;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
sidebar?: boolean;
startOptions?: AgentChatStartOptions;
statusBarEnd?: React$1.ReactNode;
theme?: AgentTheme;
threadHeaderEnd?: AgentThreadHeaderEnd;
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
threadUrlRouting?: boolean | AgentThreadUrlRoutingOptions;
usage?: boolean;
}
declare function AgentChat({ className, composerIntegrations, components, controls, diagnostics, onRequestWorkingDirectory, resolveLocalAttachment, resolveLocalMediaUrl, sidebar, startOptions, statusBarEnd, theme, threadHeaderEnd, locale, messages, threadUrlRouting, usage, }?: AgentChatProps): react_jsx_runtime.JSX.Element;
export { type AgentStatusBarProps as $, type AgentApprovalComponentProps as A, type AgentComposerInputProps as B, type AgentComposerIntegration as C, type AgentComposerIntegrationAttachment as D, type AgentComposerIntegrationResolver as E, type AgentComposerProps as F, AgentComposerToolbar as G, type AgentComposerToolbarProps as H, AgentContentBlockView as I, AgentCriticalNoticeList as J, AgentDiagnosticsPanel as K, AgentDiffItem as L, AgentFileChangeItem as M, AgentFirstRun as N, type AgentLocalAttachmentKind as O, type AgentLocalAttachmentResolver as P, type AgentLocalMediaUrlResolver as Q, AgentMessageItem as R, AgentMessageList as S, AgentReasoningItem as T, type AgentResolvedLocalAttachment as U, AgentShell as V, type AgentShellProps as W, AgentStartComposer as X, type AgentStartComposerProps as Y, AgentStarterCwd as Z, AgentStatusBar as _, type AgentApprovalDefaultProps as a, AgentStatusDetails as a0, AgentStatusSummary as a1, type AgentTheme as a2, AgentThemeToggle as a3, type AgentThemeToggleProps as a4, AgentThreadHeader as a5, type AgentThreadHeaderProps as a6, AgentThreadSidebar as a7, AgentThreadSurface as a8, AgentThreadTimeline as a9, AgentThreadView as aa, type AgentThreadViewProps as ab, AgentToolCallItem as ac, AgentTranscript as ad, AgentTurn as ae, type AgentWorkingDirectoryResolver as af, ThreadList as ag, formatThreadStatus as ah, isUserFacingPath as ai, threadSubtitle as aj, type AgentBlockComponentProps as b, type AgentBlockDefaultProps as c, AgentChat as d, type AgentChatOverlayControls as e, type AgentChatProps as f, type AgentChatStartOptions as g, type AgentComponents as h, type AgentComposerPanelComponentProps as i, type AgentEmptyStateComponentProps as j, type AgentItemDefaultProps as k, type AgentShellComponentProps as l, type AgentSidebarComponentProps as m, type AgentStatusBarComponentProps as n, type AgentThreadHeaderComponentProps as o, type AgentThreadHeaderEnd as p, type AgentThreadHeaderEndContext as q, defaultAgentComponents as r, type AgentAttachmentChip as s, type AgentAttachmentChipKind as t, AgentAttachmentChips as u, type AgentAttachmentChipsProps as v, AgentCommandItem as w, AgentCommandOutputItem as x, AgentComposer as y, AgentComposerInput as z };
import * as react_jsx_runtime from 'react/jsx-runtime';
import React$1 from 'react';
import { I as AgentTranscriptItem, x as AgentResourceResolution, J as AgentTranscriptBlock, F as TranscriptApprovalAnchors, K as AgentTranscriptDensity, L as AgentTranscriptEntry, M as ApprovalAnchors, E as AgentUserInput, v as AgentResourceKind, s as AgentResolvedResourceBase, k as AgentApprovalRequest, a as AgentI18nKey, N as useAgentBootstrap, O as ThreadStartOptions, T as TurnStartOptions, f as AgentLocale, b as AgentI18nMessages } from './normalize-Bkx3MbOU.cjs';
import { ThreadTokenUsage, AgentThreadSummaryView, AgentThreadTranscriptView, AgentThreadView as AgentThreadView$1, AgentThreadWaitingReason, AgentThread } from '@nyosegawa/agent-ui-core';
type AgentLocalMediaUrlResolver = (path: string, item: AgentTranscriptItem | undefined) => AgentResourceResolution;
declare function AgentContentBlockView({ block, item, output, patch, resolveLocalMediaUrl, }: {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
output?: string;
patch?: unknown;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCommandItem({ block, item, itemId, output, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
itemId?: string;
output?: string;
}): react_jsx_runtime.JSX.Element;
declare function AgentFileChangeItem({ block, item, patch, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
patch?: unknown;
}): react_jsx_runtime.JSX.Element;
declare function AgentReasoningItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentToolCallItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentMessageItem({ text }: {
text: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentCommandOutputItem: typeof AgentCommandItem;
declare const AgentDiffItem: typeof AgentFileChangeItem;
declare function AgentMessageList({ footer, approvalAnchors, components, renderItem, density, resolveLocalMediaUrl, scrollKey, threadId, }: {
/**
* Trailing transcript content rendered as the final scroll-area item.
* The default thread view uses it to keep the pending-approval surface
* inside the transcript instead of in a separate scroll pane.
*/
footer?: React$1.ReactNode;
approvalAnchors?: TranscriptApprovalAnchors;
components?: AgentComponents;
density?: AgentTranscriptDensity;
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
/** Changing this value scrolls the transcript to its end (e.g. a new approval). */
scrollKey?: string | number;
threadId: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentTranscript: typeof AgentMessageList;
declare function AgentTurn({ approvals, components, entries, renderItem, resolveLocalMediaUrl, }: {
approvals?: ApprovalAnchors;
components?: AgentComponents;
entries?: AgentTranscriptEntry[];
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element;
type AgentLocalAttachmentKind = Extract<AgentResourceKind, "image" | "file">;
interface AgentResolvedLocalAttachment extends AgentResolvedResourceBase {
input: AgentUserInput | AgentUserInput[];
}
type AgentLocalAttachmentResolver = (file: File, kind: AgentLocalAttachmentKind) => AgentResolvedLocalAttachment | null | undefined | Promise<AgentResolvedLocalAttachment | null | undefined>;
interface AgentComposerIntegrationAttachment {
id?: string;
input: AgentUserInput | AgentUserInput[];
label: string;
value?: string;
}
type AgentComposerIntegrationResolver = () => AgentComposerIntegrationAttachment | null | undefined | Promise<AgentComposerIntegrationAttachment | null | undefined>;
interface AgentComposerIntegration {
id: string;
label: string;
resolve: AgentComposerIntegrationResolver;
title?: string;
}
type AgentAttachmentChipKind = Extract<AgentResourceKind, "image" | "file" | "integration">;
interface AgentAttachmentChip {
extension?: string;
id: string;
kind: AgentAttachmentChipKind;
label: string;
previewFailed?: boolean;
previewUrl?: string;
sizeLabel?: string;
}
interface AgentAttachmentChipsProps {
attachments: readonly AgentAttachmentChip[];
onPreviewFailed?: (id: string) => void;
onRemove?: (id: string) => void;
}
declare function AgentAttachmentChips({ attachments, onPreviewFailed, onRemove, }: AgentAttachmentChipsProps): react_jsx_runtime.JSX.Element | null;
interface AgentComposerInputProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
shortcutHintId?: string;
}
declare const AgentComposerInput: React$1.ForwardRefExoticComponent<AgentComposerInputProps & React$1.RefAttributes<HTMLTextAreaElement>>;
interface AgentComposerToolbarProps {
className?: string;
end?: React$1.ReactNode;
start?: React$1.ReactNode;
}
declare function AgentComposerToolbar({ className, end, start, }: AgentComposerToolbarProps): react_jsx_runtime.JSX.Element;
declare function AgentComposer(props: AgentComposerProps): react_jsx_runtime.JSX.Element;
interface AgentComposerProps {
composerIntegrations?: readonly AgentComposerIntegration[];
disabled?: boolean;
disabledReason?: string;
placeholder?: string;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
tokenUsage?: ThreadTokenUsage;
threadId?: string;
}
interface AgentComposerPanelProps {
composerIntegrations?: readonly AgentComposerIntegration[];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
threadId?: string;
}
declare function AgentComposerPanel({ composerIntegrations, resolveLocalAttachment, threadId, }: AgentComposerPanelProps): react_jsx_runtime.JSX.Element | null;
interface AgentThreadViewProps {
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
renderApproval?: (approval: AgentApprovalRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadHeaderEnd?: AgentThreadHeaderEnd;
threadId?: string;
}
declare function AgentThreadView({ composerIntegrations, components, renderApproval, renderItem, resolveLocalAttachment, resolveLocalMediaUrl, threadHeaderEnd, threadId, }: AgentThreadViewProps): react_jsx_runtime.JSX.Element | null;
declare function AgentThreadSurface({ children, className, }: {
children: React$1.ReactNode;
className?: string;
}): react_jsx_runtime.JSX.Element;
type AgentThreadHeaderEnd = React$1.ReactNode | ((context: AgentThreadHeaderEndContext) => React$1.ReactNode);
interface AgentThreadHeaderEndContext {
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
interface AgentThreadHeaderProps {
end?: AgentThreadHeaderEnd;
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
declare function AgentThreadHeader({ end, thread, threadId, transcript, }: AgentThreadHeaderProps): react_jsx_runtime.JSX.Element;
/**
* Renders the thread transcript. When a `threadId` is supplied, pending
* approvals with upstream item or turn metadata are anchored immediately after
* that transcript context. Metadata-free approvals fall back to the transcript
* tail so they stay in the scroll area, not a separate pane above the composer.
*/
declare function AgentThreadTimeline({ components, renderApproval, renderItem, resolveLocalMediaUrl, threadId, }: {
components?: AgentComponents;
renderApproval?: (approval: AgentApprovalRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadId?: string;
}): react_jsx_runtime.JSX.Element | null;
type AgentWorkingDirectoryResolver = () => Promise<string | null | undefined> | string | null | undefined;
/**
* Compact working-directory selector for the start screen. cwd is a
* thread-start setting, so it sits beneath the starter composer as a context
* pill rather than inside the composer toolbar.
*/
declare function AgentStarterCwd({ fixedWorkingDirectory, onRequestWorkingDirectory, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
}): react_jsx_runtime.JSX.Element;
declare function AgentFirstRun({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}): react_jsx_runtime.JSX.Element;
interface AgentStartComposerProps {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}
declare function AgentStartComposer({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: AgentStartComposerProps): react_jsx_runtime.JSX.Element;
declare function ThreadList({ activeThreadId, footer, onSelectThread, threads, }: {
activeThreadId?: string;
footer?: React.ReactNode;
onSelectThread?: (threadId: string) => void;
threads: AgentThreadView$1[];
}): react_jsx_runtime.JSX.Element;
declare function formatThreadStatus(status: string, options?: {
hasTurns?: boolean;
t?: (key: AgentI18nKey) => string;
waitingReasons?: readonly AgentThreadWaitingReason[];
}): string;
declare function threadSubtitle(thread: AgentThread, t?: (key: AgentI18nKey) => string): string;
declare function isUserFacingPath(path: string): boolean;
declare function AgentThreadSidebar({ activeThreadId, collapsed, onCreateThread, onCollapsedChange, onSelectThread, }: {
activeThreadId?: string;
collapsed?: boolean;
onCreateThread?: () => void;
onCollapsedChange?: (collapsed: boolean) => void;
onSelectThread?: (threadId: string) => void;
}): react_jsx_runtime.JSX.Element | null;
type AgentTheme = "light" | "dark" | "system";
interface AgentThemeToggleProps {
"aria-label"?: string;
disabled?: boolean;
onChange: (theme: AgentTheme) => void;
value: AgentTheme;
}
declare function AgentThemeToggle({ "aria-label": ariaLabel, disabled, onChange, value, }: AgentThemeToggleProps): react_jsx_runtime.JSX.Element;
interface AgentShellProps extends React$1.HTMLAttributes<HTMLElement> {
sidebar?: React$1.ReactNode;
theme?: AgentTheme;
}
declare function AgentShell({ children, className, sidebar, theme, ...props }: AgentShellProps): react_jsx_runtime.JSX.Element;
interface AgentThreadUrlRoutingOptions {
basePath?: string;
homePath?: string;
}
interface AgentStatusBarProps {
end?: React$1.ReactNode;
onNavigateHome?: () => void;
onOpenThreads?: () => void;
}
declare function AgentStatusBar({ end, onNavigateHome, onOpenThreads, }?: AgentStatusBarProps): react_jsx_runtime.JSX.Element;
declare function AgentDiagnosticsPanel({ bootstrap, }: {
bootstrap: ReturnType<typeof useAgentBootstrap>;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusSummary(): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusDetails({ includeCritical, }: {
includeCritical?: boolean;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCriticalNoticeList(): react_jsx_runtime.JSX.Element | null;
interface AgentApprovalComponentProps {
approval: AgentApprovalRequest;
Default: React$1.ComponentType<AgentApprovalDefaultProps>;
}
interface AgentApprovalDefaultProps {
approval: AgentApprovalRequest;
}
interface AgentItemDefaultProps {
entry: AgentTranscriptEntry;
}
interface AgentShellComponentProps extends AgentShellProps {
Default: React$1.ComponentType<AgentShellProps>;
}
interface AgentSidebarComponentProps extends React$1.ComponentProps<typeof AgentThreadSidebar> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentThreadSidebar>>;
}
interface AgentEmptyStateComponentProps extends React$1.ComponentProps<typeof AgentFirstRun> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentFirstRun>>;
}
interface AgentComposerPanelComponentProps extends AgentComposerPanelProps {
Default: React$1.ComponentType<AgentComposerPanelProps>;
}
interface AgentStatusBarComponentProps extends AgentStatusBarProps {
Default: React$1.ComponentType<AgentStatusBarProps>;
}
interface AgentThreadHeaderComponentProps extends AgentThreadHeaderProps {
Default: React$1.ComponentType<AgentThreadHeaderProps>;
}
interface AgentChatStartOptions {
threadOptions?: ThreadStartOptions;
turnOptions?: TurnStartOptions;
}
interface AgentChatOverlayControls {
contextSheetOpen?: boolean;
onContextSheetOpenChange?: (open: boolean) => void;
onSidebarCollapsedChange?: (collapsed: boolean) => void;
sidebarCollapsed?: boolean;
}
interface AgentBlockDefaultProps {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
}
interface AgentBlockComponentProps extends AgentBlockDefaultProps {
Default: React$1.ComponentType<AgentBlockDefaultProps>;
}
interface AgentComponents {
Approval?: React$1.ComponentType<AgentApprovalComponentProps>;
ComposerPanel?: React$1.ComponentType<AgentComposerPanelComponentProps>;
EmptyState?: React$1.ComponentType<AgentEmptyStateComponentProps>;
Shell?: React$1.ComponentType<AgentShellComponentProps>;
Sidebar?: React$1.ComponentType<AgentSidebarComponentProps>;
StatusBar?: React$1.ComponentType<AgentStatusBarComponentProps>;
ThreadHeader?: React$1.ComponentType<AgentThreadHeaderComponentProps>;
blocks?: Partial<Record<AgentTranscriptBlock["kind"], React$1.ComponentType<AgentBlockComponentProps>>>;
}
declare const defaultAgentComponents: {
ComposerPanel: typeof AgentComposerPanel;
EmptyState: typeof AgentFirstRun;
Shell: typeof AgentShell;
Sidebar: typeof AgentThreadSidebar;
StatusBar: typeof AgentStatusBar;
ThreadHeader: typeof AgentThreadHeader;
};
interface AgentChatProps {
className?: string;
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
controls?: AgentChatOverlayControls;
diagnostics?: boolean;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
sidebar?: boolean;
startOptions?: AgentChatStartOptions;
statusBarEnd?: React$1.ReactNode;
theme?: AgentTheme;
threadHeaderEnd?: AgentThreadHeaderEnd;
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
threadUrlRouting?: boolean | AgentThreadUrlRoutingOptions;
usage?: boolean;
}
declare function AgentChat({ className, composerIntegrations, components, controls, diagnostics, onRequestWorkingDirectory, resolveLocalAttachment, resolveLocalMediaUrl, sidebar, startOptions, statusBarEnd, theme, threadHeaderEnd, locale, messages, threadUrlRouting, usage, }?: AgentChatProps): react_jsx_runtime.JSX.Element;
export { type AgentStatusBarProps as $, type AgentApprovalComponentProps as A, type AgentComposerInputProps as B, type AgentComposerIntegration as C, type AgentComposerIntegrationAttachment as D, type AgentComposerIntegrationResolver as E, type AgentComposerProps as F, AgentComposerToolbar as G, type AgentComposerToolbarProps as H, AgentContentBlockView as I, AgentCriticalNoticeList as J, AgentDiagnosticsPanel as K, AgentDiffItem as L, AgentFileChangeItem as M, AgentFirstRun as N, type AgentLocalAttachmentKind as O, type AgentLocalAttachmentResolver as P, type AgentLocalMediaUrlResolver as Q, AgentMessageItem as R, AgentMessageList as S, AgentReasoningItem as T, type AgentResolvedLocalAttachment as U, AgentShell as V, type AgentShellProps as W, AgentStartComposer as X, type AgentStartComposerProps as Y, AgentStarterCwd as Z, AgentStatusBar as _, type AgentApprovalDefaultProps as a, AgentStatusDetails as a0, AgentStatusSummary as a1, type AgentTheme as a2, AgentThemeToggle as a3, type AgentThemeToggleProps as a4, AgentThreadHeader as a5, type AgentThreadHeaderProps as a6, AgentThreadSidebar as a7, AgentThreadSurface as a8, AgentThreadTimeline as a9, AgentThreadView as aa, type AgentThreadViewProps as ab, AgentToolCallItem as ac, AgentTranscript as ad, AgentTurn as ae, type AgentWorkingDirectoryResolver as af, ThreadList as ag, formatThreadStatus as ah, isUserFacingPath as ai, threadSubtitle as aj, type AgentBlockComponentProps as b, type AgentBlockDefaultProps as c, AgentChat as d, type AgentChatOverlayControls as e, type AgentChatProps as f, type AgentChatStartOptions as g, type AgentComponents as h, type AgentComposerPanelComponentProps as i, type AgentEmptyStateComponentProps as j, type AgentItemDefaultProps as k, type AgentShellComponentProps as l, type AgentSidebarComponentProps as m, type AgentStatusBarComponentProps as n, type AgentThreadHeaderComponentProps as o, type AgentThreadHeaderEnd as p, type AgentThreadHeaderEndContext as q, defaultAgentComponents as r, type AgentAttachmentChip as s, type AgentAttachmentChipKind as t, AgentAttachmentChips as u, type AgentAttachmentChipsProps as v, AgentCommandItem as w, AgentCommandOutputItem as x, AgentComposer as y, AgentComposerInput as z };
import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core';
import { ReasoningEffort, RequestId, ThreadId, TurnId, ItemId, AgentTranscriptBlockView } from '@nyosegawa/agent-ui-core';
import React, { ReactNode } from 'react';
import * as react_jsx_runtime from 'react/jsx-runtime';
type AgentJsonValue = null | boolean | number | string | AgentJsonValue[] | {
[key: string]: AgentJsonValue | undefined;
};
type AgentApprovalPolicy = "untrusted" | "on-failure" | "on-request" | "never" | {
granular: {
mcp_elicitations: boolean;
request_permissions: boolean;
rules: boolean;
sandbox_approval: boolean;
skill_approval: boolean;
};
};
type AgentApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
type AgentReasoningSummary = "auto" | "concise" | "detailed" | "none";
type AgentPersonality = "none" | "friendly" | "pragmatic";
type AgentSandboxMode = "read-only" | "workspace-write" | "danger-full-access";
type AgentThreadSource = "user" | "subagent" | "memory_consolidation";
type AgentThreadStartSource = "startup" | "clear";
type AgentThreadSortKey = "created_at" | "updated_at";
type AgentSortDirection = "asc" | "desc";
type AgentThreadSourceKind = "cli" | "vscode" | "exec" | "appServer" | "subAgent" | "subAgentReview" | "subAgentCompact" | "subAgentThreadSpawn" | "subAgentOther" | "unknown";
type AgentSandboxPolicy = {
type: "dangerFullAccess";
} | {
networkAccess: boolean;
type: "readOnly";
} | {
networkAccess: "restricted" | "enabled";
type: "externalSandbox";
} | {
excludeSlashTmp: boolean;
excludeTmpdirEnvVar: boolean;
networkAccess: boolean;
type: "workspaceWrite";
writableRoots: string[];
};
interface AgentThreadConfigOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
baseInstructions?: string | null;
config?: {
[key: string]: AgentJsonValue | undefined;
} | null;
cwd?: string | null;
developerInstructions?: string | null;
model?: string | null;
modelProvider?: string | null;
personality?: AgentPersonality | null;
serviceTier?: string | null;
}
interface ThreadStartOptions extends AgentThreadConfigOptions {
ephemeral?: boolean | null;
sandbox?: AgentSandboxMode | null;
sessionStartSource?: AgentThreadStartSource | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadResumeOptions extends AgentThreadConfigOptions {
sandbox?: AgentSandboxMode | null;
}
interface ThreadForkOptions extends AgentThreadConfigOptions {
ephemeral?: boolean;
sandbox?: AgentSandboxMode | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadHistoryParams {
archived?: boolean | null;
cursor?: string | null;
cwd?: string | string[] | null;
limit?: number | null;
modelProviders?: string[] | null;
searchTerm?: string | null;
sortDirection?: AgentSortDirection | null;
sortKey?: AgentThreadSortKey | null;
sourceKinds?: AgentThreadSourceKind[] | null;
useStateDbOnly?: boolean;
}
interface TurnStartOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
cwd?: string | null;
effort?: ReasoningEffort | null;
model?: string | null;
outputSchema?: AgentJsonValue | null;
personality?: AgentPersonality | null;
sandboxPolicy?: AgentSandboxPolicy | null;
serviceTier?: string | null;
summary?: AgentReasoningSummary | null;
}
interface AgentAppsRefreshOptions {
cursor?: string | null;
forceRefetch?: boolean;
limit?: number | null;
threadId?: string | null;
}
interface AgentSkillsRefreshOptions {
cwds?: string[];
forceReload?: boolean;
}
interface AgentSkillConfigWriteOptions {
enabled: boolean;
name?: string | null;
path?: string | null;
}
interface AgentHooksRefreshOptions {
cwds?: string[];
}
type AgentUserInput = AgentTextInput | AgentImageInput | AgentLocalImageInput | AgentSkillInput | AgentMentionInput | AgentUnknownUserInput;
interface AgentTextInput {
text: string;
text_elements?: unknown[];
type: "text";
}
interface AgentImageInput {
url: string;
type: "image";
}
interface AgentLocalImageInput {
path: string;
type: "localImage";
}
interface AgentSkillInput {
name: string;
path: string;
type: "skill";
}
interface AgentMentionInput {
name: string;
path: string;
type: "mention";
}
interface AgentUnknownUserInput {
type: string;
[key: string]: unknown;
}
declare function useAgentAccount(): {
account: _nyosegawa_agent_ui_core.AccountState;
cancelLogin: () => Promise<void>;
login: () => Promise<{
loginId: string | undefined;
userCode: string | undefined;
verificationUrl: string | undefined;
}>;
logout: () => Promise<void>;
readAccount: () => Promise<{
authenticated: boolean;
}>;
};
interface AgentBootstrapState {
errors: Error[];
isBootstrapping: boolean;
status: "idle" | "loading" | "ready" | "error";
}
declare function useAgentBootstrap(): AgentBootstrapState;
type AgentApprovalRequestKind = "attestation" | "authRefresh" | "commandApproval" | "dynamicTool" | "fileChangeApproval" | "mcpElicitation" | "permissionsApproval" | "userInput" | "unknown";
type AgentApprovalRisk = "high" | "medium" | "low";
interface AgentApprovalDetail {
label: string;
value: string;
}
interface AgentApprovalPatchChange {
diff: string;
kind: string;
path: string;
}
type AgentApprovalPatch = string | {
changes: AgentApprovalPatchChange[];
};
interface AgentApprovalRequest {
id: RequestId;
kind: AgentApprovalRequestKind;
canDecide: boolean;
risk: AgentApprovalRisk;
threadId?: ThreadId;
turnId?: TurnId;
itemId?: ItemId;
reason?: string;
command?: string;
cwd?: string;
sandbox?: string;
approvalPolicy?: string;
path?: string;
summary?: string;
patch?: AgentApprovalPatch;
prompt?: string;
namespace?: string;
tool?: string;
argumentsText?: string;
details: AgentApprovalDetail[];
}
type AgentApprovalDecision = "accept" | "acceptForSession" | "decline";
interface ApprovalAnchors {
afterTurn: AgentApprovalRequest[];
byItemId: Record<string, AgentApprovalRequest[]>;
renderApprovalAnchor: (approval: AgentApprovalRequest) => React.ReactNode;
}
interface TranscriptApprovalAnchors {
requests: AgentApprovalRequest[];
renderApprovalAnchor: (approval: AgentApprovalRequest) => React.ReactNode;
}
type AgentTranscriptDensityMode = "default" | "compact" | "verbose" | "critical-only";
interface AgentTranscriptDensityConfig {
byBlockKind?: Partial<Record<AgentTranscriptBlockView["kind"], AgentTranscriptDensityMode>>;
default?: AgentTranscriptDensityMode;
}
type AgentTranscriptDensity = AgentTranscriptDensityMode | AgentTranscriptDensityConfig;
interface AgentTranscriptPendingState {
status: "failed" | "inProgress";
}
type AgentTranscriptBlock = AgentTranscriptBlockView;
type AgentTranscriptItemStatus = "cancelled" | "completed" | "failed" | "inProgress" | "pending" | "streaming";
interface AgentTranscriptItem {
id: string;
kind: string;
status?: AgentTranscriptItemStatus;
text?: string;
threadId?: string;
turnId?: string;
}
interface AgentTranscriptEntry {
approvals: AgentApprovalRequest[];
block: AgentTranscriptBlock;
dataKind: string;
density: AgentTranscriptDensityMode;
displayStatus: string;
id: string;
item?: AgentTranscriptItem;
itemId: string;
key: string;
pending?: AgentTranscriptPendingState;
patch?: unknown;
role: "assistant" | "command" | "system" | "tool" | "user";
status: AgentTranscriptItemStatus;
text?: string;
turnId: string;
}
interface AgentTranscriptControllerOptions {
approvalAnchors?: TranscriptApprovalAnchors;
density?: AgentTranscriptDensity;
}
interface AgentTranscriptController {
density: AgentTranscriptDensityMode;
entries: AgentTranscriptEntry[];
entriesByTurnId: Map<string, AgentTranscriptEntry[]>;
hiddenItemCount: number;
showEarlierItems(): void;
threadId?: string;
turnIds: string[];
visibleItemCount: number;
}
declare function useAgentTranscriptController(threadId?: ThreadId, options?: AgentTranscriptControllerOptions): AgentTranscriptController;
type AgentResourceKind = "image" | "file" | "integration" | "url" | "unavailable";
interface AgentResolvedResourceBase {
displayName?: string;
id?: string;
input?: AgentUserInput | AgentUserInput[];
mimeType?: string;
name?: string;
path?: string;
previewUrl?: string;
redactedPath?: string;
reason?: string;
sizeBytes?: number;
url?: string;
}
interface AgentResolvedUrlResource extends AgentResolvedResourceBase {
kind: "url";
}
interface AgentUnavailableResource extends AgentResolvedResourceBase {
kind: "unavailable";
}
type AgentResolvedResource = AgentResolvedUrlResource | AgentUnavailableResource;
interface AgentFileResourceRequest {
file: File;
kind: Extract<AgentResourceKind, "image" | "file">;
source: "file";
}
interface AgentLocalMediaResourceRequest {
item?: AgentTranscriptItem;
path: string;
source: "local-media";
}
type AgentResourceRequest = AgentFileResourceRequest | AgentLocalMediaResourceRequest;
type AgentResourceResolution = AgentResolvedResource | null | undefined;
type AgentResourceResolver = (request: AgentResourceRequest) => AgentResourceResolution | Promise<AgentResourceResolution>;
declare function agentResourceUrl(resource: AgentResolvedResourceBase | null | undefined): string | undefined;
declare function agentResourceDisplayName(resource: AgentResolvedResourceBase | null | undefined, fallback?: string): string | undefined;
type AgentLocale = "en" | "ja" | "ko" | "zh-CN" | "es" | "fr";
declare const agentLocales: AgentLocale[];
interface AgentI18nDictionary {
"account.authenticated": string;
"account.authenticating": string;
"account.checking": string;
"account.connecting": string;
"account.cancelLogin": string;
"account.details": string;
"account.email": string;
"account.login": string;
"account.logout": string;
"account.openDeviceLogin": string;
"account.openMenu": string;
"account.plan": string;
"account.status": string;
"account.unauthenticated": string;
"approval.action.approve": string;
"approval.action.approveAria": string;
"approval.action.approveForSession": string;
"approval.action.approveForSessionAria": string;
"approval.action.decline": string;
"approval.action.declineAria": string;
"approval.action.review": string;
"approval.action.reviewAria": string;
"approval.aria.otherPending": string;
"approval.aria.pending": string;
"approval.aria.pendingOne": string;
"approval.count": string;
"approval.kind.attestation": string;
"approval.kind.authRefresh": string;
"approval.kind.command": string;
"approval.kind.dynamicTool": string;
"approval.kind.fileChange": string;
"approval.kind.generic": string;
"approval.kind.mcpInput": string;
"approval.kind.permissions": string;
"approval.kind.userInput": string;
"approval.meta.approvalPolicy": string;
"approval.meta.item": string;
"approval.meta.namespace": string;
"approval.meta.sandbox": string;
"approval.meta.tool": string;
"approval.meta.workingDirectory": string;
"approval.request.command": string;
"approval.request.fileChange": string;
"approval.request.generic": string;
"approval.risk.high": string;
"approval.risk.low": string;
"approval.risk.medium": string;
"approval.riskSuffix": string;
"approval.summary.command": string;
"approval.summary.default": string;
"approval.summary.dynamicTool": string;
"approval.summary.fileChange": string;
"approval.summary.mcpInput": string;
"approval.summary.permissions": string;
"approval.summary.userInput": string;
"aria.actions": string;
"aria.agentContext": string;
"aria.changedFiles": string;
"aria.codeMirrorPatchViewer": string;
"aria.commandOutput": string;
"aria.completedTask": string;
"aria.composerAttachments": string;
"aria.contextUsage": string;
"aria.contextUsageDetails": string;
"aria.criticalStatus": string;
"aria.diffPreview": string;
"aria.dismissThreadHistory": string;
"aria.message": string;
"aria.messageComposer": string;
"aria.openTask": string;
"aria.patchContent": string;
"aria.pendingAttachments": string;
"aria.runControls": string;
"aria.statusDetails": string;
"aria.statusSummary": string;
"aria.threadStartContext": string;
"aria.threads": string;
"aria.tokenUsage": string;
"aria.usageLimits": string;
"aria.usageSummary": string;
"apps.authNeeded": string;
"apps.disabled": string;
"apps.empty": string;
"apps.label": string;
"apps.loadMore": string;
"apps.notInstalled": string;
"apps.unavailable": string;
"common.cancel": string;
"common.close": string;
"common.closeMenu": string;
"common.collapse": string;
"common.default": string;
"common.details": string;
"common.disable": string;
"common.enable": string;
"common.expand": string;
"common.file": string;
"common.files": string;
"common.loading": string;
"common.message": string;
"common.messages": string;
"common.notice": string;
"common.notices": string;
"common.open": string;
"common.refresh": string;
"common.refreshing": string;
"common.serverDefault": string;
"common.syncPending": string;
"common.unknown": string;
"composer.addFollowUp": string;
"composer.attachFile": string;
"composer.attachFiles": string;
"composer.attachedFollowUp": string;
"composer.attachmentRejected": string;
"composer.attachmentRejectedMany": string;
"composer.attachmentRejectedOne": string;
"composer.cannotAcceptFollowUp": string;
"composer.couldNotSendAdditional": string;
"composer.couldNotStart": string;
"composer.couldNotStop": string;
"composer.enterToSend": string;
"composer.dismissFailedMessage": string;
"composer.failedMessageBody": string;
"composer.failedMessages": string;
"composer.failedMessageTitle": string;
"composer.followUpNoActiveTurn": string;
"composer.followUpTurnChanged": string;
"composer.followUpTurnChangedRefresh": string;
"composer.placeholder": string;
"composer.removeAttachment": string;
"composer.resolveApprovalReason": string;
"composer.retryFailedMessage": string;
"composer.send": string;
"composer.sendMessage": string;
"composer.stopCurrentTurn": string;
"context.cachedInput": string;
"context.compactionNotice": string;
"context.contextWindow": string;
"context.input": string;
"context.lastTurn": string;
"context.output": string;
"context.reasoning": string;
"context.title": string;
"context.used": string;
"diagnostics.label": string;
"diagnostics.messageCount": string;
"diagnostics.pluginManifestWarnings": string;
"diagnostics.syncing": string;
"diagnostics.withPluginWarnings": string;
"firstRun.authenticating.body": string;
"firstRun.authenticating.title": string;
"firstRun.bridgeError.body": string;
"firstRun.bridgeError.title": string;
"firstRun.connect.body": string;
"firstRun.connect.cta": string;
"firstRun.connect.title": string;
"firstRun.error": string;
"firstRun.form": string;
"firstRun.placeholder": string;
"firstRun.preparing.body": string;
"firstRun.preparing.cta": string;
"firstRun.preparing.title": string;
"firstRun.startThread": string;
"followUp.attachments": string;
"followUp.attachmentsMany": string;
"followUp.attachmentsOne": string;
"followUp.earlier": string;
"followUp.earlierMany": string;
"followUp.earlierOne": string;
"followUp.earlierQueued": string;
"followUp.edit": string;
"followUp.queued": string;
"followUp.queuedAttachments": string;
"followUp.remove": string;
"followUp.sendNow": string;
"locale.en": string;
"locale.es": string;
"locale.fr": string;
"locale.ja": string;
"locale.ko": string;
"locale.label": string;
"locale.zh-CN": string;
"markdown.completedTask": string;
"markdown.openTask": string;
"run.clearWorkingDirectory": string;
"run.cwd.noRecent": string;
"run.cwd.openFolder": string;
"run.cwd.openFolderAction": string;
"run.cwd.prompt": string;
"run.cwd.recent": string;
"run.cwd.selectFolder": string;
"run.cwd.serverDefault": string;
"run.defaultEffort": string;
"run.defaultModel": string;
"run.effort": string;
"run.effort.high": string;
"run.effort.low": string;
"run.effort.medium": string;
"run.effort.minimal": string;
"run.effort.veryHigh": string;
"run.policy": string;
"run.policy.auto.description": string;
"run.policy.auto.label": string;
"run.policy.full-access.description": string;
"run.policy.full-access.label": string;
"run.policy.read-only.description": string;
"run.policy.read-only.label": string;
"run.policy.review.description": string;
"run.policy.review.label": string;
"run.model": string;
"run.modelAndEffort": string;
"run.modelDefault": string;
"run.noSelectableEffort": string;
"run.serverDefault": string;
"run.workingDirectory": string;
"skills.empty": string;
"skills.label": string;
"status.account": string;
"status.backgroundNotice": string;
"status.configWarning": string;
"status.critical": string;
"status.deprecationNotice": string;
"status.failed": string;
"status.mcpOAuth": string;
"status.modelReroute": string;
"status.rateLimit": string;
"status.title": string;
"status.total": string;
"status.warning": string;
"theme.dark": string;
"theme.label": string;
"theme.light": string;
"theme.system": string;
"thread.action.archive": string;
"thread.action.compact": string;
"thread.action.fork": string;
"thread.action.rename": string;
"thread.action.rollback": string;
"thread.action.unarchive": string;
"thread.closeHistory": string;
"thread.codexSession": string;
"thread.collapseHistory": string;
"thread.empty": string;
"thread.ephemeralSession": string;
"thread.expandHistory": string;
"thread.history": string;
"thread.namePrompt": string;
"thread.new": string;
"thread.noThreadsFound": string;
"thread.openHistory": string;
"thread.search": string;
"thread.searchHistory": string;
"thread.status.complete": string;
"thread.status.failed": string;
"thread.status.needsAttention": string;
"thread.status.needsApproval": string;
"thread.status.needsAttestation": string;
"thread.status.needsAuthentication": string;
"thread.status.needsInput": string;
"thread.status.needsMcpInput": string;
"thread.status.needsPermission": string;
"thread.status.preview": string;
"thread.status.ready": string;
"thread.status.running": string;
"thread.status.stored": string;
"thread.threadCount": string;
"thread.untitled": string;
"timeline.agentTool": string;
"timeline.arguments": string;
"timeline.argumentsPreview": string;
"timeline.assistant": string;
"timeline.collab": string;
"timeline.collabTool": string;
"timeline.command": string;
"timeline.compaction": string;
"timeline.diff": string;
"timeline.earlierHidden": string;
"timeline.error": string;
"timeline.exitCode": string;
"timeline.file": string;
"timeline.fileChange": string;
"timeline.fileChanges": string;
"timeline.files": string;
"timeline.filesChanged": string;
"timeline.from": string;
"timeline.image": string;
"timeline.imageGenerated": string;
"timeline.localMediaUnavailable": string;
"timeline.item": string;
"timeline.items": string;
"timeline.jumpToPendingApproval": string;
"timeline.jumpToLatest": string;
"timeline.lines": string;
"timeline.mcpTool": string;
"timeline.noPatch": string;
"timeline.noTerminalOutput": string;
"timeline.output": string;
"timeline.plan": string;
"timeline.reasoning": string;
"timeline.result": string;
"timeline.resultCaptured": string;
"timeline.resultItems": string;
"timeline.search": string;
"timeline.showEarlier": string;
"timeline.system": string;
"timeline.terminal": string;
"timeline.thinking": string;
"timeline.thread": string;
"timeline.to": string;
"timeline.tool": string;
"timeline.toolCall": string;
"timeline.unknownTool": string;
"timeline.webSearch": string;
"timeline.you": string;
"usage.empty": string;
"usage.inputOutput": string;
"usage.label": string;
"usage.limits": string;
"usage.meterLabel": string;
"usage.namedWindow": string;
"usage.resetAt": string;
"usage.hourWindow": string;
"usage.tokens": string;
"usage.title": string;
"usage.weeklyWindow": string;
}
type AgentI18nKey = keyof AgentI18nDictionary;
type AgentI18nMessages = Partial<AgentI18nDictionary>;
interface AgentI18nValue {
locale: AgentLocale;
t: (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
}
interface AgentI18nProviderProps {
children?: ReactNode;
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
}
declare function AgentI18nProvider({ children, locale, messages, }: AgentI18nProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentI18n(): AgentI18nValue;
declare function interpolate(template: string, vars: Record<string, string | number> | undefined): string;
declare function interpolationVariables(template: string): string[];
declare const agentI18nDictionaries: Record<AgentLocale, AgentI18nDictionary>;
declare function normalizeAgentLocale(locale?: AgentLocale | string): AgentLocale;
export { type AgentJsonValue as $, type AgentI18nDictionary as A, type AgentTextInput as B, type AgentUnavailableResource as C, type AgentUnknownUserInput as D, type AgentUserInput as E, type TranscriptApprovalAnchors as F, agentResourceDisplayName as G, agentResourceUrl as H, type AgentTranscriptItem as I, type AgentTranscriptBlock as J, type AgentTranscriptDensity as K, type AgentTranscriptEntry as L, type ApprovalAnchors as M, useAgentBootstrap as N, type ThreadStartOptions as O, type AgentAppsRefreshOptions as P, type AgentHooksRefreshOptions as Q, type AgentSkillsRefreshOptions as R, type AgentSkillConfigWriteOptions as S, type TurnStartOptions as T, type AgentApprovalDecision as U, type ThreadForkOptions as V, type ThreadResumeOptions as W, type ThreadHistoryParams as X, type AgentApprovalPolicy as Y, type AgentApprovalsReviewer as Z, type AgentBootstrapState as _, type AgentI18nKey as a, type AgentPersonality as a0, type AgentReasoningSummary as a1, type AgentSandboxMode as a2, type AgentSandboxPolicy as a3, type AgentSortDirection as a4, type AgentThreadConfigOptions as a5, type AgentThreadSortKey as a6, type AgentThreadSource as a7, type AgentThreadSourceKind as a8, type AgentThreadStartSource as a9, type AgentTranscriptController as aa, type AgentTranscriptControllerOptions as ab, type AgentTranscriptDensityConfig as ac, type AgentTranscriptDensityMode as ad, type AgentTranscriptPendingState as ae, useAgentAccount as af, useAgentTranscriptController as ag, type AgentI18nMessages as b, AgentI18nProvider as c, type AgentI18nProviderProps as d, type AgentI18nValue as e, type AgentLocale as f, agentI18nDictionaries as g, agentLocales as h, interpolate as i, interpolationVariables as j, type AgentApprovalRequest as k, type AgentFileResourceRequest as l, type AgentImageInput as m, normalizeAgentLocale as n, type AgentLocalImageInput as o, type AgentLocalMediaResourceRequest as p, type AgentMentionInput as q, type AgentResolvedResource as r, type AgentResolvedResourceBase as s, type AgentResolvedUrlResource as t, useAgentI18n as u, type AgentResourceKind as v, type AgentResourceRequest as w, type AgentResourceResolution as x, type AgentResourceResolver as y, type AgentSkillInput as z };
import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core';
import { ReasoningEffort, RequestId, ThreadId, TurnId, ItemId, AgentTranscriptBlockView } from '@nyosegawa/agent-ui-core';
import React, { ReactNode } from 'react';
import * as react_jsx_runtime from 'react/jsx-runtime';
type AgentJsonValue = null | boolean | number | string | AgentJsonValue[] | {
[key: string]: AgentJsonValue | undefined;
};
type AgentApprovalPolicy = "untrusted" | "on-failure" | "on-request" | "never" | {
granular: {
mcp_elicitations: boolean;
request_permissions: boolean;
rules: boolean;
sandbox_approval: boolean;
skill_approval: boolean;
};
};
type AgentApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
type AgentReasoningSummary = "auto" | "concise" | "detailed" | "none";
type AgentPersonality = "none" | "friendly" | "pragmatic";
type AgentSandboxMode = "read-only" | "workspace-write" | "danger-full-access";
type AgentThreadSource = "user" | "subagent" | "memory_consolidation";
type AgentThreadStartSource = "startup" | "clear";
type AgentThreadSortKey = "created_at" | "updated_at";
type AgentSortDirection = "asc" | "desc";
type AgentThreadSourceKind = "cli" | "vscode" | "exec" | "appServer" | "subAgent" | "subAgentReview" | "subAgentCompact" | "subAgentThreadSpawn" | "subAgentOther" | "unknown";
type AgentSandboxPolicy = {
type: "dangerFullAccess";
} | {
networkAccess: boolean;
type: "readOnly";
} | {
networkAccess: "restricted" | "enabled";
type: "externalSandbox";
} | {
excludeSlashTmp: boolean;
excludeTmpdirEnvVar: boolean;
networkAccess: boolean;
type: "workspaceWrite";
writableRoots: string[];
};
interface AgentThreadConfigOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
baseInstructions?: string | null;
config?: {
[key: string]: AgentJsonValue | undefined;
} | null;
cwd?: string | null;
developerInstructions?: string | null;
model?: string | null;
modelProvider?: string | null;
personality?: AgentPersonality | null;
serviceTier?: string | null;
}
interface ThreadStartOptions extends AgentThreadConfigOptions {
ephemeral?: boolean | null;
sandbox?: AgentSandboxMode | null;
sessionStartSource?: AgentThreadStartSource | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadResumeOptions extends AgentThreadConfigOptions {
sandbox?: AgentSandboxMode | null;
}
interface ThreadForkOptions extends AgentThreadConfigOptions {
ephemeral?: boolean;
sandbox?: AgentSandboxMode | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadHistoryParams {
archived?: boolean | null;
cursor?: string | null;
cwd?: string | string[] | null;
limit?: number | null;
modelProviders?: string[] | null;
searchTerm?: string | null;
sortDirection?: AgentSortDirection | null;
sortKey?: AgentThreadSortKey | null;
sourceKinds?: AgentThreadSourceKind[] | null;
useStateDbOnly?: boolean;
}
interface TurnStartOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
cwd?: string | null;
effort?: ReasoningEffort | null;
model?: string | null;
outputSchema?: AgentJsonValue | null;
personality?: AgentPersonality | null;
sandboxPolicy?: AgentSandboxPolicy | null;
serviceTier?: string | null;
summary?: AgentReasoningSummary | null;
}
interface AgentAppsRefreshOptions {
cursor?: string | null;
forceRefetch?: boolean;
limit?: number | null;
threadId?: string | null;
}
interface AgentSkillsRefreshOptions {
cwds?: string[];
forceReload?: boolean;
}
interface AgentSkillConfigWriteOptions {
enabled: boolean;
name?: string | null;
path?: string | null;
}
interface AgentHooksRefreshOptions {
cwds?: string[];
}
type AgentUserInput = AgentTextInput | AgentImageInput | AgentLocalImageInput | AgentSkillInput | AgentMentionInput | AgentUnknownUserInput;
interface AgentTextInput {
text: string;
text_elements?: unknown[];
type: "text";
}
interface AgentImageInput {
url: string;
type: "image";
}
interface AgentLocalImageInput {
path: string;
type: "localImage";
}
interface AgentSkillInput {
name: string;
path: string;
type: "skill";
}
interface AgentMentionInput {
name: string;
path: string;
type: "mention";
}
interface AgentUnknownUserInput {
type: string;
[key: string]: unknown;
}
declare function useAgentAccount(): {
account: _nyosegawa_agent_ui_core.AccountState;
cancelLogin: () => Promise<void>;
login: () => Promise<{
loginId: string | undefined;
userCode: string | undefined;
verificationUrl: string | undefined;
}>;
logout: () => Promise<void>;
readAccount: () => Promise<{
authenticated: boolean;
}>;
};
interface AgentBootstrapState {
errors: Error[];
isBootstrapping: boolean;
status: "idle" | "loading" | "ready" | "error";
}
declare function useAgentBootstrap(): AgentBootstrapState;
type AgentApprovalRequestKind = "attestation" | "authRefresh" | "commandApproval" | "dynamicTool" | "fileChangeApproval" | "mcpElicitation" | "permissionsApproval" | "userInput" | "unknown";
type AgentApprovalRisk = "high" | "medium" | "low";
interface AgentApprovalDetail {
label: string;
value: string;
}
interface AgentApprovalPatchChange {
diff: string;
kind: string;
path: string;
}
type AgentApprovalPatch = string | {
changes: AgentApprovalPatchChange[];
};
interface AgentApprovalRequest {
id: RequestId;
kind: AgentApprovalRequestKind;
canDecide: boolean;
risk: AgentApprovalRisk;
threadId?: ThreadId;
turnId?: TurnId;
itemId?: ItemId;
reason?: string;
command?: string;
cwd?: string;
sandbox?: string;
approvalPolicy?: string;
path?: string;
summary?: string;
patch?: AgentApprovalPatch;
prompt?: string;
namespace?: string;
tool?: string;
argumentsText?: string;
details: AgentApprovalDetail[];
}
type AgentApprovalDecision = "accept" | "acceptForSession" | "decline";
interface ApprovalAnchors {
afterTurn: AgentApprovalRequest[];
byItemId: Record<string, AgentApprovalRequest[]>;
renderApprovalAnchor: (approval: AgentApprovalRequest) => React.ReactNode;
}
interface TranscriptApprovalAnchors {
requests: AgentApprovalRequest[];
renderApprovalAnchor: (approval: AgentApprovalRequest) => React.ReactNode;
}
type AgentTranscriptDensityMode = "default" | "compact" | "verbose" | "critical-only";
interface AgentTranscriptDensityConfig {
byBlockKind?: Partial<Record<AgentTranscriptBlockView["kind"], AgentTranscriptDensityMode>>;
default?: AgentTranscriptDensityMode;
}
type AgentTranscriptDensity = AgentTranscriptDensityMode | AgentTranscriptDensityConfig;
interface AgentTranscriptPendingState {
status: "failed" | "inProgress";
}
type AgentTranscriptBlock = AgentTranscriptBlockView;
type AgentTranscriptItemStatus = "cancelled" | "completed" | "failed" | "inProgress" | "pending" | "streaming";
interface AgentTranscriptItem {
id: string;
kind: string;
status?: AgentTranscriptItemStatus;
text?: string;
threadId?: string;
turnId?: string;
}
interface AgentTranscriptEntry {
approvals: AgentApprovalRequest[];
block: AgentTranscriptBlock;
dataKind: string;
density: AgentTranscriptDensityMode;
displayStatus: string;
id: string;
item?: AgentTranscriptItem;
itemId: string;
key: string;
pending?: AgentTranscriptPendingState;
patch?: unknown;
role: "assistant" | "command" | "system" | "tool" | "user";
status: AgentTranscriptItemStatus;
text?: string;
turnId: string;
}
interface AgentTranscriptControllerOptions {
approvalAnchors?: TranscriptApprovalAnchors;
density?: AgentTranscriptDensity;
}
interface AgentTranscriptController {
density: AgentTranscriptDensityMode;
entries: AgentTranscriptEntry[];
entriesByTurnId: Map<string, AgentTranscriptEntry[]>;
hiddenItemCount: number;
showEarlierItems(): void;
threadId?: string;
turnIds: string[];
visibleItemCount: number;
}
declare function useAgentTranscriptController(threadId?: ThreadId, options?: AgentTranscriptControllerOptions): AgentTranscriptController;
type AgentResourceKind = "image" | "file" | "integration" | "url" | "unavailable";
interface AgentResolvedResourceBase {
displayName?: string;
id?: string;
input?: AgentUserInput | AgentUserInput[];
mimeType?: string;
name?: string;
path?: string;
previewUrl?: string;
redactedPath?: string;
reason?: string;
sizeBytes?: number;
url?: string;
}
interface AgentResolvedUrlResource extends AgentResolvedResourceBase {
kind: "url";
}
interface AgentUnavailableResource extends AgentResolvedResourceBase {
kind: "unavailable";
}
type AgentResolvedResource = AgentResolvedUrlResource | AgentUnavailableResource;
interface AgentFileResourceRequest {
file: File;
kind: Extract<AgentResourceKind, "image" | "file">;
source: "file";
}
interface AgentLocalMediaResourceRequest {
item?: AgentTranscriptItem;
path: string;
source: "local-media";
}
type AgentResourceRequest = AgentFileResourceRequest | AgentLocalMediaResourceRequest;
type AgentResourceResolution = AgentResolvedResource | null | undefined;
type AgentResourceResolver = (request: AgentResourceRequest) => AgentResourceResolution | Promise<AgentResourceResolution>;
declare function agentResourceUrl(resource: AgentResolvedResourceBase | null | undefined): string | undefined;
declare function agentResourceDisplayName(resource: AgentResolvedResourceBase | null | undefined, fallback?: string): string | undefined;
type AgentLocale = "en" | "ja" | "ko" | "zh-CN" | "es" | "fr";
declare const agentLocales: AgentLocale[];
interface AgentI18nDictionary {
"account.authenticated": string;
"account.authenticating": string;
"account.checking": string;
"account.connecting": string;
"account.cancelLogin": string;
"account.details": string;
"account.email": string;
"account.login": string;
"account.logout": string;
"account.openDeviceLogin": string;
"account.openMenu": string;
"account.plan": string;
"account.status": string;
"account.unauthenticated": string;
"approval.action.approve": string;
"approval.action.approveAria": string;
"approval.action.approveForSession": string;
"approval.action.approveForSessionAria": string;
"approval.action.decline": string;
"approval.action.declineAria": string;
"approval.action.review": string;
"approval.action.reviewAria": string;
"approval.aria.otherPending": string;
"approval.aria.pending": string;
"approval.aria.pendingOne": string;
"approval.count": string;
"approval.kind.attestation": string;
"approval.kind.authRefresh": string;
"approval.kind.command": string;
"approval.kind.dynamicTool": string;
"approval.kind.fileChange": string;
"approval.kind.generic": string;
"approval.kind.mcpInput": string;
"approval.kind.permissions": string;
"approval.kind.userInput": string;
"approval.meta.approvalPolicy": string;
"approval.meta.item": string;
"approval.meta.namespace": string;
"approval.meta.sandbox": string;
"approval.meta.tool": string;
"approval.meta.workingDirectory": string;
"approval.request.command": string;
"approval.request.fileChange": string;
"approval.request.generic": string;
"approval.risk.high": string;
"approval.risk.low": string;
"approval.risk.medium": string;
"approval.riskSuffix": string;
"approval.summary.command": string;
"approval.summary.default": string;
"approval.summary.dynamicTool": string;
"approval.summary.fileChange": string;
"approval.summary.mcpInput": string;
"approval.summary.permissions": string;
"approval.summary.userInput": string;
"aria.actions": string;
"aria.agentContext": string;
"aria.changedFiles": string;
"aria.codeMirrorPatchViewer": string;
"aria.commandOutput": string;
"aria.completedTask": string;
"aria.composerAttachments": string;
"aria.contextUsage": string;
"aria.contextUsageDetails": string;
"aria.criticalStatus": string;
"aria.diffPreview": string;
"aria.dismissThreadHistory": string;
"aria.message": string;
"aria.messageComposer": string;
"aria.openTask": string;
"aria.patchContent": string;
"aria.pendingAttachments": string;
"aria.runControls": string;
"aria.statusDetails": string;
"aria.statusSummary": string;
"aria.threadStartContext": string;
"aria.threads": string;
"aria.tokenUsage": string;
"aria.usageLimits": string;
"aria.usageSummary": string;
"apps.authNeeded": string;
"apps.disabled": string;
"apps.empty": string;
"apps.label": string;
"apps.loadMore": string;
"apps.notInstalled": string;
"apps.unavailable": string;
"common.cancel": string;
"common.close": string;
"common.closeMenu": string;
"common.collapse": string;
"common.default": string;
"common.details": string;
"common.disable": string;
"common.enable": string;
"common.expand": string;
"common.file": string;
"common.files": string;
"common.loading": string;
"common.message": string;
"common.messages": string;
"common.notice": string;
"common.notices": string;
"common.open": string;
"common.refresh": string;
"common.refreshing": string;
"common.serverDefault": string;
"common.syncPending": string;
"common.unknown": string;
"composer.addFollowUp": string;
"composer.attachFile": string;
"composer.attachFiles": string;
"composer.attachedFollowUp": string;
"composer.attachmentRejected": string;
"composer.attachmentRejectedMany": string;
"composer.attachmentRejectedOne": string;
"composer.cannotAcceptFollowUp": string;
"composer.couldNotSendAdditional": string;
"composer.couldNotStart": string;
"composer.couldNotStop": string;
"composer.enterToSend": string;
"composer.dismissFailedMessage": string;
"composer.failedMessageBody": string;
"composer.failedMessages": string;
"composer.failedMessageTitle": string;
"composer.followUpNoActiveTurn": string;
"composer.followUpTurnChanged": string;
"composer.followUpTurnChangedRefresh": string;
"composer.placeholder": string;
"composer.removeAttachment": string;
"composer.resolveApprovalReason": string;
"composer.retryFailedMessage": string;
"composer.send": string;
"composer.sendMessage": string;
"composer.stopCurrentTurn": string;
"context.cachedInput": string;
"context.compactionNotice": string;
"context.contextWindow": string;
"context.input": string;
"context.lastTurn": string;
"context.output": string;
"context.reasoning": string;
"context.title": string;
"context.used": string;
"diagnostics.label": string;
"diagnostics.messageCount": string;
"diagnostics.pluginManifestWarnings": string;
"diagnostics.syncing": string;
"diagnostics.withPluginWarnings": string;
"firstRun.authenticating.body": string;
"firstRun.authenticating.title": string;
"firstRun.bridgeError.body": string;
"firstRun.bridgeError.title": string;
"firstRun.connect.body": string;
"firstRun.connect.cta": string;
"firstRun.connect.title": string;
"firstRun.error": string;
"firstRun.form": string;
"firstRun.placeholder": string;
"firstRun.preparing.body": string;
"firstRun.preparing.cta": string;
"firstRun.preparing.title": string;
"firstRun.startThread": string;
"followUp.attachments": string;
"followUp.attachmentsMany": string;
"followUp.attachmentsOne": string;
"followUp.earlier": string;
"followUp.earlierMany": string;
"followUp.earlierOne": string;
"followUp.earlierQueued": string;
"followUp.edit": string;
"followUp.queued": string;
"followUp.queuedAttachments": string;
"followUp.remove": string;
"followUp.sendNow": string;
"locale.en": string;
"locale.es": string;
"locale.fr": string;
"locale.ja": string;
"locale.ko": string;
"locale.label": string;
"locale.zh-CN": string;
"markdown.completedTask": string;
"markdown.openTask": string;
"run.clearWorkingDirectory": string;
"run.cwd.noRecent": string;
"run.cwd.openFolder": string;
"run.cwd.openFolderAction": string;
"run.cwd.prompt": string;
"run.cwd.recent": string;
"run.cwd.selectFolder": string;
"run.cwd.serverDefault": string;
"run.defaultEffort": string;
"run.defaultModel": string;
"run.effort": string;
"run.effort.high": string;
"run.effort.low": string;
"run.effort.medium": string;
"run.effort.minimal": string;
"run.effort.veryHigh": string;
"run.policy": string;
"run.policy.auto.description": string;
"run.policy.auto.label": string;
"run.policy.full-access.description": string;
"run.policy.full-access.label": string;
"run.policy.read-only.description": string;
"run.policy.read-only.label": string;
"run.policy.review.description": string;
"run.policy.review.label": string;
"run.model": string;
"run.modelAndEffort": string;
"run.modelDefault": string;
"run.noSelectableEffort": string;
"run.serverDefault": string;
"run.workingDirectory": string;
"skills.empty": string;
"skills.label": string;
"status.account": string;
"status.backgroundNotice": string;
"status.configWarning": string;
"status.critical": string;
"status.deprecationNotice": string;
"status.failed": string;
"status.mcpOAuth": string;
"status.modelReroute": string;
"status.rateLimit": string;
"status.title": string;
"status.total": string;
"status.warning": string;
"theme.dark": string;
"theme.label": string;
"theme.light": string;
"theme.system": string;
"thread.action.archive": string;
"thread.action.compact": string;
"thread.action.fork": string;
"thread.action.rename": string;
"thread.action.rollback": string;
"thread.action.unarchive": string;
"thread.closeHistory": string;
"thread.codexSession": string;
"thread.collapseHistory": string;
"thread.empty": string;
"thread.ephemeralSession": string;
"thread.expandHistory": string;
"thread.history": string;
"thread.namePrompt": string;
"thread.new": string;
"thread.noThreadsFound": string;
"thread.openHistory": string;
"thread.search": string;
"thread.searchHistory": string;
"thread.status.complete": string;
"thread.status.failed": string;
"thread.status.needsAttention": string;
"thread.status.needsApproval": string;
"thread.status.needsAttestation": string;
"thread.status.needsAuthentication": string;
"thread.status.needsInput": string;
"thread.status.needsMcpInput": string;
"thread.status.needsPermission": string;
"thread.status.preview": string;
"thread.status.ready": string;
"thread.status.running": string;
"thread.status.stored": string;
"thread.threadCount": string;
"thread.untitled": string;
"timeline.agentTool": string;
"timeline.arguments": string;
"timeline.argumentsPreview": string;
"timeline.assistant": string;
"timeline.collab": string;
"timeline.collabTool": string;
"timeline.command": string;
"timeline.compaction": string;
"timeline.diff": string;
"timeline.earlierHidden": string;
"timeline.error": string;
"timeline.exitCode": string;
"timeline.file": string;
"timeline.fileChange": string;
"timeline.fileChanges": string;
"timeline.files": string;
"timeline.filesChanged": string;
"timeline.from": string;
"timeline.image": string;
"timeline.imageGenerated": string;
"timeline.localMediaUnavailable": string;
"timeline.item": string;
"timeline.items": string;
"timeline.jumpToPendingApproval": string;
"timeline.jumpToLatest": string;
"timeline.lines": string;
"timeline.mcpTool": string;
"timeline.noPatch": string;
"timeline.noTerminalOutput": string;
"timeline.output": string;
"timeline.plan": string;
"timeline.reasoning": string;
"timeline.result": string;
"timeline.resultCaptured": string;
"timeline.resultItems": string;
"timeline.search": string;
"timeline.showEarlier": string;
"timeline.system": string;
"timeline.terminal": string;
"timeline.thinking": string;
"timeline.thread": string;
"timeline.to": string;
"timeline.tool": string;
"timeline.toolCall": string;
"timeline.unknownTool": string;
"timeline.webSearch": string;
"timeline.you": string;
"usage.empty": string;
"usage.inputOutput": string;
"usage.label": string;
"usage.limits": string;
"usage.meterLabel": string;
"usage.namedWindow": string;
"usage.resetAt": string;
"usage.hourWindow": string;
"usage.tokens": string;
"usage.title": string;
"usage.weeklyWindow": string;
}
type AgentI18nKey = keyof AgentI18nDictionary;
type AgentI18nMessages = Partial<AgentI18nDictionary>;
interface AgentI18nValue {
locale: AgentLocale;
t: (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
}
interface AgentI18nProviderProps {
children?: ReactNode;
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
}
declare function AgentI18nProvider({ children, locale, messages, }: AgentI18nProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentI18n(): AgentI18nValue;
declare function interpolate(template: string, vars: Record<string, string | number> | undefined): string;
declare function interpolationVariables(template: string): string[];
declare const agentI18nDictionaries: Record<AgentLocale, AgentI18nDictionary>;
declare function normalizeAgentLocale(locale?: AgentLocale | string): AgentLocale;
export { type AgentJsonValue as $, type AgentI18nDictionary as A, type AgentTextInput as B, type AgentUnavailableResource as C, type AgentUnknownUserInput as D, type AgentUserInput as E, type TranscriptApprovalAnchors as F, agentResourceDisplayName as G, agentResourceUrl as H, type AgentTranscriptItem as I, type AgentTranscriptBlock as J, type AgentTranscriptDensity as K, type AgentTranscriptEntry as L, type ApprovalAnchors as M, useAgentBootstrap as N, type ThreadStartOptions as O, type AgentAppsRefreshOptions as P, type AgentHooksRefreshOptions as Q, type AgentSkillsRefreshOptions as R, type AgentSkillConfigWriteOptions as S, type TurnStartOptions as T, type AgentApprovalDecision as U, type ThreadForkOptions as V, type ThreadResumeOptions as W, type ThreadHistoryParams as X, type AgentApprovalPolicy as Y, type AgentApprovalsReviewer as Z, type AgentBootstrapState as _, type AgentI18nKey as a, type AgentPersonality as a0, type AgentReasoningSummary as a1, type AgentSandboxMode as a2, type AgentSandboxPolicy as a3, type AgentSortDirection as a4, type AgentThreadConfigOptions as a5, type AgentThreadSortKey as a6, type AgentThreadSource as a7, type AgentThreadSourceKind as a8, type AgentThreadStartSource as a9, type AgentTranscriptController as aa, type AgentTranscriptControllerOptions as ab, type AgentTranscriptDensityConfig as ac, type AgentTranscriptDensityMode as ad, type AgentTranscriptPendingState as ae, useAgentAccount as af, useAgentTranscriptController as ag, type AgentI18nMessages as b, AgentI18nProvider as c, type AgentI18nProviderProps as d, type AgentI18nValue as e, type AgentLocale as f, agentI18nDictionaries as g, agentLocales as h, interpolate as i, interpolationVariables as j, type AgentApprovalRequest as k, type AgentFileResourceRequest as l, type AgentImageInput as m, normalizeAgentLocale as n, type AgentLocalImageInput as o, type AgentLocalMediaResourceRequest as p, type AgentMentionInput as q, type AgentResolvedResource as r, type AgentResolvedResourceBase as s, type AgentResolvedUrlResource as t, useAgentI18n as u, type AgentResourceKind as v, type AgentResourceRequest as w, type AgentResourceResolution as x, type AgentResourceResolver as y, type AgentSkillInput as z };
import * as react_jsx_runtime from 'react/jsx-runtime';
import { AgentRunPolicyId, AgentEvent, AgentSessionState, AgentTransport } from '@nyosegawa/agent-ui-core';
import { T as TurnStartOptions } from './normalize-Bkx3MbOU.cjs';
import { ReactNode } from 'react';
interface AgentRunPolicy {
id: AgentRunPolicyId;
label: string;
description: string;
turnOptions: TurnStartOptions;
}
declare const AGENT_FULL_ACCESS_RUN_POLICY: AgentRunPolicy;
declare const DEFAULT_AGENT_RUN_POLICIES: readonly AgentRunPolicy[];
declare function effectiveAgentRunPolicies(policies: readonly AgentRunPolicy[] | undefined): readonly AgentRunPolicy[];
declare function resolvedAgentRunPolicyId(policyId: AgentRunPolicyId | undefined, policies: readonly AgentRunPolicy[]): AgentRunPolicyId | undefined;
declare function agentRunPolicyTurnOptions(policyId: AgentRunPolicyId | undefined, policies?: readonly AgentRunPolicy[]): TurnStartOptions | undefined;
interface AgentContextValue {
dispatch: (event: AgentEvent) => void;
runPolicies: readonly AgentRunPolicy[];
state: AgentSessionState;
transport: AgentTransport;
}
interface AgentProviderProps {
children?: ReactNode;
defaultRunPolicyId?: AgentRunPolicyId;
initialState?: AgentSessionState;
runPolicies?: readonly AgentRunPolicy[];
transport: AgentTransport;
}
declare function AgentProvider({ children, defaultRunPolicyId, initialState, runPolicies, transport, }: AgentProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentContext(): AgentContextValue;
declare function useAgentAction<TArgs extends unknown[], TResult>(action: (...args: TArgs) => Promise<TResult>): (...args: TArgs) => Promise<TResult>;
export { AgentProvider as A, DEFAULT_AGENT_RUN_POLICIES as D, type AgentProviderProps as a, type AgentRunPolicy as b, AGENT_FULL_ACCESS_RUN_POLICY as c, type AgentContextValue as d, agentRunPolicyTurnOptions as e, effectiveAgentRunPolicies as f, useAgentContext as g, resolvedAgentRunPolicyId as r, useAgentAction as u };
import * as react_jsx_runtime from 'react/jsx-runtime';
import { AgentRunPolicyId, AgentEvent, AgentSessionState, AgentTransport } from '@nyosegawa/agent-ui-core';
import { T as TurnStartOptions } from './normalize-Bkx3MbOU.js';
import { ReactNode } from 'react';
interface AgentRunPolicy {
id: AgentRunPolicyId;
label: string;
description: string;
turnOptions: TurnStartOptions;
}
declare const AGENT_FULL_ACCESS_RUN_POLICY: AgentRunPolicy;
declare const DEFAULT_AGENT_RUN_POLICIES: readonly AgentRunPolicy[];
declare function effectiveAgentRunPolicies(policies: readonly AgentRunPolicy[] | undefined): readonly AgentRunPolicy[];
declare function resolvedAgentRunPolicyId(policyId: AgentRunPolicyId | undefined, policies: readonly AgentRunPolicy[]): AgentRunPolicyId | undefined;
declare function agentRunPolicyTurnOptions(policyId: AgentRunPolicyId | undefined, policies?: readonly AgentRunPolicy[]): TurnStartOptions | undefined;
interface AgentContextValue {
dispatch: (event: AgentEvent) => void;
runPolicies: readonly AgentRunPolicy[];
state: AgentSessionState;
transport: AgentTransport;
}
interface AgentProviderProps {
children?: ReactNode;
defaultRunPolicyId?: AgentRunPolicyId;
initialState?: AgentSessionState;
runPolicies?: readonly AgentRunPolicy[];
transport: AgentTransport;
}
declare function AgentProvider({ children, defaultRunPolicyId, initialState, runPolicies, transport, }: AgentProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentContext(): AgentContextValue;
declare function useAgentAction<TArgs extends unknown[], TResult>(action: (...args: TArgs) => Promise<TResult>): (...args: TArgs) => Promise<TResult>;
export { AgentProvider as A, DEFAULT_AGENT_RUN_POLICIES as D, type AgentProviderProps as a, type AgentRunPolicy as b, AGENT_FULL_ACCESS_RUN_POLICY as c, type AgentContextValue as d, agentRunPolicyTurnOptions as e, effectiveAgentRunPolicies as f, useAgentContext as g, resolvedAgentRunPolicyId as r, useAgentAction as u };
import { a as AgentI18nKey } from './normalize-Bkx3MbOU.cjs';
interface UsageWindow {
id: string;
label: string;
percent: number;
resetLabel?: string;
valueLabel: string;
}
type UsageTranslator = (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
declare function normalizeUsageWindows(rateLimits: unknown, t?: UsageTranslator): UsageWindow[];
export { type UsageWindow as U, normalizeUsageWindows as n };
import { a as AgentI18nKey } from './normalize-Bkx3MbOU.js';
interface UsageWindow {
id: string;
label: string;
percent: number;
resetLabel?: string;
valueLabel: string;
}
type UsageTranslator = (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
declare function normalizeUsageWindows(rateLimits: unknown, t?: UsageTranslator): UsageWindow[];
export { type UsageWindow as U, normalizeUsageWindows as n };
+41
-61

@@ -1,10 +0,10 @@

import { b as AgentRunPolicy } from './provider-DoHfE_zQ.cjs';
export { c as AGENT_FULL_ACCESS_RUN_POLICY, d as AgentContextValue, A as AgentProvider, a as AgentProviderProps, D as DEFAULT_AGENT_RUN_POLICIES, e as agentRunPolicyTurnOptions, f as effectiveAgentRunPolicies, r as resolvedAgentRunPolicyId, u as useAgentAction, g as useAgentContext } from './provider-DoHfE_zQ.cjs';
import { O as AgentAppsRefreshOptions, P as AgentHooksRefreshOptions, Q as AgentSkillsRefreshOptions, R as AgentSkillConfigWriteOptions, N as ThreadStartOptions, T as TurnStartOptions, D as AgentUserInput, S as ThreadResumeOptions, U as ThreadForkOptions, V as ThreadHistoryParams } from './normalize-D33s7i8-.cjs';
export { W as AgentApprovalPolicy, X as AgentApprovalsReviewer, Y as AgentBootstrapState, k as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, l as AgentImageInput, Z as AgentJsonValue, m as AgentLocalImageInput, o as AgentLocalMediaResourceRequest, f as AgentLocale, p as AgentMentionInput, _ as AgentPersonality, $ as AgentReasoningSummary, q as AgentResolvedResource, r as AgentResolvedResourceBase, s as AgentResolvedUrlResource, t as AgentResourceKind, v as AgentResourceRequest, w as AgentResourceResolution, x as AgentResourceResolver, a0 as AgentSandboxMode, a1 as AgentSandboxPolicy, y as AgentSkillInput, a2 as AgentSortDirection, z as AgentTextInput, a3 as AgentThreadConfigOptions, a4 as AgentThreadSortKey, a5 as AgentThreadSource, a6 as AgentThreadSourceKind, a7 as AgentThreadStartSource, I as AgentTranscriptBlock, a8 as AgentTranscriptController, a9 as AgentTranscriptControllerOptions, J as AgentTranscriptDensity, aa as AgentTranscriptDensityConfig, ab as AgentTranscriptDensityMode, K as AgentTranscriptEntry, H as AgentTranscriptItem, ac as AgentTranscriptPendingState, B as AgentUnavailableResource, C as AgentUnknownUserInput, g as agentI18nDictionaries, h as agentLocales, F as agentResourceDisplayName, G as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, ad as useAgentAccount, M as useAgentBootstrap, u as useAgentI18n, ae as useAgentTranscriptController } from './normalize-D33s7i8-.cjs';
import { b as AgentRunPolicy } from './provider-DlkLBSuQ.cjs';
export { c as AGENT_FULL_ACCESS_RUN_POLICY, d as AgentContextValue, A as AgentProvider, a as AgentProviderProps, D as DEFAULT_AGENT_RUN_POLICIES, e as agentRunPolicyTurnOptions, f as effectiveAgentRunPolicies, r as resolvedAgentRunPolicyId, u as useAgentAction, g as useAgentContext } from './provider-DlkLBSuQ.cjs';
import { P as AgentAppsRefreshOptions, Q as AgentHooksRefreshOptions, R as AgentSkillsRefreshOptions, S as AgentSkillConfigWriteOptions, O as ThreadStartOptions, T as TurnStartOptions, k as AgentApprovalRequest, U as AgentApprovalDecision, E as AgentUserInput, V as ThreadForkOptions, W as ThreadResumeOptions, X as ThreadHistoryParams } from './normalize-Bkx3MbOU.cjs';
export { Y as AgentApprovalPolicy, Z as AgentApprovalsReviewer, _ as AgentBootstrapState, l as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, m as AgentImageInput, $ as AgentJsonValue, o as AgentLocalImageInput, p as AgentLocalMediaResourceRequest, f as AgentLocale, q as AgentMentionInput, a0 as AgentPersonality, a1 as AgentReasoningSummary, r as AgentResolvedResource, s as AgentResolvedResourceBase, t as AgentResolvedUrlResource, v as AgentResourceKind, w as AgentResourceRequest, x as AgentResourceResolution, y as AgentResourceResolver, a2 as AgentSandboxMode, a3 as AgentSandboxPolicy, z as AgentSkillInput, a4 as AgentSortDirection, B as AgentTextInput, a5 as AgentThreadConfigOptions, a6 as AgentThreadSortKey, a7 as AgentThreadSource, a8 as AgentThreadSourceKind, a9 as AgentThreadStartSource, J as AgentTranscriptBlock, aa as AgentTranscriptController, ab as AgentTranscriptControllerOptions, K as AgentTranscriptDensity, ac as AgentTranscriptDensityConfig, ad as AgentTranscriptDensityMode, L as AgentTranscriptEntry, I as AgentTranscriptItem, ae as AgentTranscriptPendingState, C as AgentUnavailableResource, D as AgentUnknownUserInput, g as agentI18nDictionaries, h as agentLocales, G as agentResourceDisplayName, H as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, af as useAgentAccount, N as useAgentBootstrap, u as useAgentI18n, ag as useAgentTranscriptController } from './normalize-Bkx3MbOU.cjs';
import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core';
import { AgentApp, ThreadId, ThreadState, ThreadStatus, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadScope, AgentThreadCollection, AgentThreadView, TurnState } from '@nyosegawa/agent-ui-core';
export { AgentRunPolicyId, AgentThreadResumeDiagnosticReasonCode } from '@nyosegawa/agent-ui-core';
import { AgentApp, ThreadId, ThreadStatus, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadView, AgentThreadTranscriptView, AgentThreadScope, AgentThreadCollection } from '@nyosegawa/agent-ui-core';
export { AgentRunPolicyId } from '@nyosegawa/agent-ui-core';
import React, { Dispatch, SetStateAction } from 'react';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-COKINqyQ.cjs';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-Bms224_V.cjs';
import 'react/jsx-runtime';

@@ -77,3 +77,3 @@

activeTurnId?: string;
activity?: ThreadState["activity"];
activity?: AgentThreadActivity;
requestedThreadId?: ThreadId;

@@ -84,3 +84,4 @@ runSettings?: AgentThreadResumeRunSettings;

}
type AgentThreadActivity = "failed" | "idle" | "running" | "waitingForInput";
type AgentThreadResumeDiagnosticReasonCode = "canonical_thread_id_mismatch" | "resume_response_missing_thread_id" | "resume_response_normalization_failed";
interface AgentThreadResumeRunSettings {

@@ -119,8 +120,8 @@ cwd?: string;

declare function useAgentApprovals(threadId?: ThreadId): {
approvals: _nyosegawa_agent_ui_core.PendingServerRequest[];
approve: (requestId: RequestId, result?: unknown) => Promise<void>;
approvals: AgentApprovalRequest[];
approve: (requestId: RequestId, decision?: AgentApprovalDecision) => Promise<void>;
reject: (requestId: RequestId, message?: string) => Promise<void>;
};
declare function useAgentServerRequests(threadId?: ThreadId): {
requests: _nyosegawa_agent_ui_core.PendingServerRequest[];
requests: _nyosegawa_agent_ui_core.AgentServerRequestSummary[];
respond: (requestId: RequestId, result: unknown) => Promise<void>;

@@ -188,5 +189,6 @@ reject: (requestId: RequestId, error: AgentError | string) => Promise<void>;

operationId: string;
retryable: boolean;
threadId: string;
}
type AgentComposerSubmitMode = "queue" | "send" | "stop";
type AgentComposerSubmitMode = "send" | "stop";
interface AgentComposerSendMessageOptions extends AgentThreadStartWithInputOptions {

@@ -210,3 +212,2 @@ queuedAttachments?: QueuedFollowUpAttachment[];

declare function useAgentComposer(threadId?: ThreadId): AgentComposerController;
declare function useAgentComposerController(threadId?: ThreadId): AgentComposerController;

@@ -227,19 +228,22 @@ declare function useAgentChatController(threadId?: ThreadId): AgentChatController;

declare function useAgentThread(threadId?: ThreadId): {
resumeThread: (id: ThreadId, params?: ThreadResumeOptions) => Promise<{
threadId: string;
runSettings?: AgentThreadResumeRunSettings | undefined;
requestedThreadId?: string | undefined;
activity?: "idle" | "failed" | "running" | "waitingForInput" | undefined;
status?: ThreadStatus | undefined;
activeTurnId?: string | undefined;
}>;
startThread: (params?: ThreadStartOptions) => Promise<{
threadId: string;
}>;
thread: ThreadState | undefined;
threadId: string | undefined;
turns: (_nyosegawa_agent_ui_core.TurnState | undefined)[];
};
declare const useAgentThreadController: typeof useAgentThread;
interface AgentThreadController {
resumeThread: (id: ThreadId, params?: ThreadResumeOptions) => Promise<AgentThreadResumeResult>;
startThread: (params?: ThreadStartOptions) => Promise<AgentThreadStartResult>;
thread?: AgentThreadView;
threadId?: ThreadId;
transcript?: AgentThreadTranscriptView;
}
interface AgentThreadsController {
activeThreadId?: ThreadId;
setActiveThread: (threadId?: ThreadId) => void;
threads: AgentThreadView[];
}
interface AgentThreadHistoryController {
cursor: string | null | undefined;
error?: Error;
isLoading: boolean;
listThreads: (params?: ThreadHistoryParams) => Promise<AgentThreadHistoryResult>;
threads: AgentThreadView[];
}
declare function useAgentThreadController(threadId?: ThreadId): AgentThreadController;
declare function useAgentThreadActions(threadId?: ThreadId): {

@@ -256,17 +260,4 @@ archiveThread: () => Promise<void>;

};
declare function useAgentThreads(): {
activeThreadId: string | undefined;
setActiveThread: (threadId?: ThreadId) => void;
threads: ThreadState[];
};
declare function useAgentThreadHistory(): {
cursor: string | null | undefined;
error: Error | undefined;
isLoading: boolean;
listThreads: (params?: ThreadHistoryParams) => Promise<{
nextCursor: string | null;
threadIds: string[];
}>;
threads: ThreadState[];
};
declare function useAgentThreads(): AgentThreadsController;
declare function useAgentThreadHistory(): AgentThreadHistoryController;
declare function useAgentThreadReader(): {

@@ -319,8 +310,8 @@ readThread: (threadId: ThreadId, options?: {

declare function useAgentTurn(threadId?: ThreadId): {
interface AgentTurnController {
interruptTurn: (turnId: string) => Promise<void>;
startTurn: (input: string | AgentUserInput[], params?: TurnStartOptions) => Promise<void>;
steerTurn: (expectedTurnId: string, input: string | AgentUserInput[]) => Promise<void>;
};
declare const useAgentTurnController: typeof useAgentTurn;
}
declare function useAgentTurnController(threadId?: ThreadId): AgentTurnController;

@@ -353,13 +344,2 @@ interface AgentTranscriptScrollControllerOptions {

declare const DEFAULT_TRANSCRIPT_ITEM_LIMIT = 48;
declare const TRANSCRIPT_ITEM_INCREMENT = 48;
declare function transcriptItemIds(turn: TurnState): string[];
declare function visibleTranscriptWindow(thread: ThreadState, visibleItemLimit: number, options?: {
pinnedItemIdsByTurnId?: Map<string, string[]>;
}): {
itemIdsByTurnId: Map<string, string[]>;
totalItemCount: number;
visibleItemCount: number;
};
export { AgentAppsRefreshOptions, type AgentChatController, type AgentComposerController, type AgentComposerDisabledReason, type AgentComposerFailedPendingMessage, type AgentComposerSendMessageOptions, type AgentComposerSendMessageResult, type AgentComposerSubmitMode, type AgentDirectThreadController, type AgentDirectThreadOpenResult, AgentHooksRefreshOptions, AgentRunPolicy, AgentSkillConfigWriteOptions, AgentSkillsRefreshOptions, type AgentThreadForkResult, type AgentThreadHistoryResult, type AgentThreadHistorySyncedEvent, type AgentThreadListController, type AgentThreadListControllerOptions, type AgentThreadListRequest, type AgentThreadReadResult, type AgentThreadResumeResult, type AgentThreadResumeRunSettings, type AgentThreadStartResult, type AgentThreadStartWithInputOptions, type AgentThreadStartWithInputResult, type AgentTranscriptScrollController, type AgentTranscriptScrollControllerOptions, AgentUserInput, DEFAULT_TRANSCRIPT_ITEM_LIMIT, type QueuedFollowUp, type QueuedFollowUpAttachment, TRANSCRIPT_ITEM_INCREMENT, ThreadForkOptions, ThreadHistoryParams, ThreadResumeOptions, ThreadStartOptions, TurnStartOptions, transcriptItemIds, useAgentApprovals, useAgentApps, useAgentChatController, useAgentComposer, useAgentComposerController, useAgentDiagnostics, useAgentDirectThreadController, useAgentHooks, useAgentModels, useAgentRunSettings, useAgentServerRequests, useAgentSkills, useAgentThread, useAgentThreadActions, useAgentThreadController, useAgentThreadHistory, useAgentThreadListController, useAgentThreadReader, useAgentThreads, useAgentTranscriptScrollController, useAgentTurn, useAgentTurnController, useAgentUsage, visibleTranscriptWindow };
export { AgentApprovalDecision, AgentApprovalRequest, AgentAppsRefreshOptions, type AgentChatController, type AgentComposerController, type AgentComposerDisabledReason, type AgentComposerFailedPendingMessage, type AgentComposerSendMessageOptions, type AgentComposerSendMessageResult, type AgentComposerSubmitMode, type AgentDirectThreadController, type AgentDirectThreadOpenResult, AgentHooksRefreshOptions, AgentRunPolicy, AgentSkillConfigWriteOptions, AgentSkillsRefreshOptions, type AgentThreadForkResult, type AgentThreadHistoryResult, type AgentThreadHistorySyncedEvent, type AgentThreadListController, type AgentThreadListControllerOptions, type AgentThreadListRequest, type AgentThreadReadResult, type AgentThreadResumeDiagnosticReasonCode, type AgentThreadResumeResult, type AgentThreadResumeRunSettings, type AgentThreadStartResult, type AgentThreadStartWithInputOptions, type AgentThreadStartWithInputResult, type AgentTranscriptScrollController, type AgentTranscriptScrollControllerOptions, AgentUserInput, type QueuedFollowUp, type QueuedFollowUpAttachment, ThreadForkOptions, ThreadHistoryParams, ThreadResumeOptions, ThreadStartOptions, TurnStartOptions, useAgentApprovals, useAgentApps, useAgentChatController, useAgentComposerController, useAgentDiagnostics, useAgentDirectThreadController, useAgentHooks, useAgentModels, useAgentRunSettings, useAgentServerRequests, useAgentSkills, useAgentThreadActions, useAgentThreadController, useAgentThreadHistory, useAgentThreadListController, useAgentThreadReader, useAgentThreads, useAgentTranscriptScrollController, useAgentTurnController, useAgentUsage };

@@ -1,10 +0,10 @@

import { b as AgentRunPolicy } from './provider-Q10Fx3vU.js';
export { c as AGENT_FULL_ACCESS_RUN_POLICY, d as AgentContextValue, A as AgentProvider, a as AgentProviderProps, D as DEFAULT_AGENT_RUN_POLICIES, e as agentRunPolicyTurnOptions, f as effectiveAgentRunPolicies, r as resolvedAgentRunPolicyId, u as useAgentAction, g as useAgentContext } from './provider-Q10Fx3vU.js';
import { O as AgentAppsRefreshOptions, P as AgentHooksRefreshOptions, Q as AgentSkillsRefreshOptions, R as AgentSkillConfigWriteOptions, N as ThreadStartOptions, T as TurnStartOptions, D as AgentUserInput, S as ThreadResumeOptions, U as ThreadForkOptions, V as ThreadHistoryParams } from './normalize-D33s7i8-.js';
export { W as AgentApprovalPolicy, X as AgentApprovalsReviewer, Y as AgentBootstrapState, k as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, l as AgentImageInput, Z as AgentJsonValue, m as AgentLocalImageInput, o as AgentLocalMediaResourceRequest, f as AgentLocale, p as AgentMentionInput, _ as AgentPersonality, $ as AgentReasoningSummary, q as AgentResolvedResource, r as AgentResolvedResourceBase, s as AgentResolvedUrlResource, t as AgentResourceKind, v as AgentResourceRequest, w as AgentResourceResolution, x as AgentResourceResolver, a0 as AgentSandboxMode, a1 as AgentSandboxPolicy, y as AgentSkillInput, a2 as AgentSortDirection, z as AgentTextInput, a3 as AgentThreadConfigOptions, a4 as AgentThreadSortKey, a5 as AgentThreadSource, a6 as AgentThreadSourceKind, a7 as AgentThreadStartSource, I as AgentTranscriptBlock, a8 as AgentTranscriptController, a9 as AgentTranscriptControllerOptions, J as AgentTranscriptDensity, aa as AgentTranscriptDensityConfig, ab as AgentTranscriptDensityMode, K as AgentTranscriptEntry, H as AgentTranscriptItem, ac as AgentTranscriptPendingState, B as AgentUnavailableResource, C as AgentUnknownUserInput, g as agentI18nDictionaries, h as agentLocales, F as agentResourceDisplayName, G as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, ad as useAgentAccount, M as useAgentBootstrap, u as useAgentI18n, ae as useAgentTranscriptController } from './normalize-D33s7i8-.js';
import { b as AgentRunPolicy } from './provider-DVRynjZv.js';
export { c as AGENT_FULL_ACCESS_RUN_POLICY, d as AgentContextValue, A as AgentProvider, a as AgentProviderProps, D as DEFAULT_AGENT_RUN_POLICIES, e as agentRunPolicyTurnOptions, f as effectiveAgentRunPolicies, r as resolvedAgentRunPolicyId, u as useAgentAction, g as useAgentContext } from './provider-DVRynjZv.js';
import { P as AgentAppsRefreshOptions, Q as AgentHooksRefreshOptions, R as AgentSkillsRefreshOptions, S as AgentSkillConfigWriteOptions, O as ThreadStartOptions, T as TurnStartOptions, k as AgentApprovalRequest, U as AgentApprovalDecision, E as AgentUserInput, V as ThreadForkOptions, W as ThreadResumeOptions, X as ThreadHistoryParams } from './normalize-Bkx3MbOU.js';
export { Y as AgentApprovalPolicy, Z as AgentApprovalsReviewer, _ as AgentBootstrapState, l as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, m as AgentImageInput, $ as AgentJsonValue, o as AgentLocalImageInput, p as AgentLocalMediaResourceRequest, f as AgentLocale, q as AgentMentionInput, a0 as AgentPersonality, a1 as AgentReasoningSummary, r as AgentResolvedResource, s as AgentResolvedResourceBase, t as AgentResolvedUrlResource, v as AgentResourceKind, w as AgentResourceRequest, x as AgentResourceResolution, y as AgentResourceResolver, a2 as AgentSandboxMode, a3 as AgentSandboxPolicy, z as AgentSkillInput, a4 as AgentSortDirection, B as AgentTextInput, a5 as AgentThreadConfigOptions, a6 as AgentThreadSortKey, a7 as AgentThreadSource, a8 as AgentThreadSourceKind, a9 as AgentThreadStartSource, J as AgentTranscriptBlock, aa as AgentTranscriptController, ab as AgentTranscriptControllerOptions, K as AgentTranscriptDensity, ac as AgentTranscriptDensityConfig, ad as AgentTranscriptDensityMode, L as AgentTranscriptEntry, I as AgentTranscriptItem, ae as AgentTranscriptPendingState, C as AgentUnavailableResource, D as AgentUnknownUserInput, g as agentI18nDictionaries, h as agentLocales, G as agentResourceDisplayName, H as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, af as useAgentAccount, N as useAgentBootstrap, u as useAgentI18n, ag as useAgentTranscriptController } from './normalize-Bkx3MbOU.js';
import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core';
import { AgentApp, ThreadId, ThreadState, ThreadStatus, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadScope, AgentThreadCollection, AgentThreadView, TurnState } from '@nyosegawa/agent-ui-core';
export { AgentRunPolicyId, AgentThreadResumeDiagnosticReasonCode } from '@nyosegawa/agent-ui-core';
import { AgentApp, ThreadId, ThreadStatus, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadView, AgentThreadTranscriptView, AgentThreadScope, AgentThreadCollection } from '@nyosegawa/agent-ui-core';
export { AgentRunPolicyId } from '@nyosegawa/agent-ui-core';
import React, { Dispatch, SetStateAction } from 'react';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-GId9CU_y.js';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-CUJx8fTT.js';
import 'react/jsx-runtime';

@@ -77,3 +77,3 @@

activeTurnId?: string;
activity?: ThreadState["activity"];
activity?: AgentThreadActivity;
requestedThreadId?: ThreadId;

@@ -84,3 +84,4 @@ runSettings?: AgentThreadResumeRunSettings;

}
type AgentThreadActivity = "failed" | "idle" | "running" | "waitingForInput";
type AgentThreadResumeDiagnosticReasonCode = "canonical_thread_id_mismatch" | "resume_response_missing_thread_id" | "resume_response_normalization_failed";
interface AgentThreadResumeRunSettings {

@@ -119,8 +120,8 @@ cwd?: string;

declare function useAgentApprovals(threadId?: ThreadId): {
approvals: _nyosegawa_agent_ui_core.PendingServerRequest[];
approve: (requestId: RequestId, result?: unknown) => Promise<void>;
approvals: AgentApprovalRequest[];
approve: (requestId: RequestId, decision?: AgentApprovalDecision) => Promise<void>;
reject: (requestId: RequestId, message?: string) => Promise<void>;
};
declare function useAgentServerRequests(threadId?: ThreadId): {
requests: _nyosegawa_agent_ui_core.PendingServerRequest[];
requests: _nyosegawa_agent_ui_core.AgentServerRequestSummary[];
respond: (requestId: RequestId, result: unknown) => Promise<void>;

@@ -188,5 +189,6 @@ reject: (requestId: RequestId, error: AgentError | string) => Promise<void>;

operationId: string;
retryable: boolean;
threadId: string;
}
type AgentComposerSubmitMode = "queue" | "send" | "stop";
type AgentComposerSubmitMode = "send" | "stop";
interface AgentComposerSendMessageOptions extends AgentThreadStartWithInputOptions {

@@ -210,3 +212,2 @@ queuedAttachments?: QueuedFollowUpAttachment[];

declare function useAgentComposer(threadId?: ThreadId): AgentComposerController;
declare function useAgentComposerController(threadId?: ThreadId): AgentComposerController;

@@ -227,19 +228,22 @@ declare function useAgentChatController(threadId?: ThreadId): AgentChatController;

declare function useAgentThread(threadId?: ThreadId): {
resumeThread: (id: ThreadId, params?: ThreadResumeOptions) => Promise<{
threadId: string;
runSettings?: AgentThreadResumeRunSettings | undefined;
requestedThreadId?: string | undefined;
activity?: "idle" | "failed" | "running" | "waitingForInput" | undefined;
status?: ThreadStatus | undefined;
activeTurnId?: string | undefined;
}>;
startThread: (params?: ThreadStartOptions) => Promise<{
threadId: string;
}>;
thread: ThreadState | undefined;
threadId: string | undefined;
turns: (_nyosegawa_agent_ui_core.TurnState | undefined)[];
};
declare const useAgentThreadController: typeof useAgentThread;
interface AgentThreadController {
resumeThread: (id: ThreadId, params?: ThreadResumeOptions) => Promise<AgentThreadResumeResult>;
startThread: (params?: ThreadStartOptions) => Promise<AgentThreadStartResult>;
thread?: AgentThreadView;
threadId?: ThreadId;
transcript?: AgentThreadTranscriptView;
}
interface AgentThreadsController {
activeThreadId?: ThreadId;
setActiveThread: (threadId?: ThreadId) => void;
threads: AgentThreadView[];
}
interface AgentThreadHistoryController {
cursor: string | null | undefined;
error?: Error;
isLoading: boolean;
listThreads: (params?: ThreadHistoryParams) => Promise<AgentThreadHistoryResult>;
threads: AgentThreadView[];
}
declare function useAgentThreadController(threadId?: ThreadId): AgentThreadController;
declare function useAgentThreadActions(threadId?: ThreadId): {

@@ -256,17 +260,4 @@ archiveThread: () => Promise<void>;

};
declare function useAgentThreads(): {
activeThreadId: string | undefined;
setActiveThread: (threadId?: ThreadId) => void;
threads: ThreadState[];
};
declare function useAgentThreadHistory(): {
cursor: string | null | undefined;
error: Error | undefined;
isLoading: boolean;
listThreads: (params?: ThreadHistoryParams) => Promise<{
nextCursor: string | null;
threadIds: string[];
}>;
threads: ThreadState[];
};
declare function useAgentThreads(): AgentThreadsController;
declare function useAgentThreadHistory(): AgentThreadHistoryController;
declare function useAgentThreadReader(): {

@@ -319,8 +310,8 @@ readThread: (threadId: ThreadId, options?: {

declare function useAgentTurn(threadId?: ThreadId): {
interface AgentTurnController {
interruptTurn: (turnId: string) => Promise<void>;
startTurn: (input: string | AgentUserInput[], params?: TurnStartOptions) => Promise<void>;
steerTurn: (expectedTurnId: string, input: string | AgentUserInput[]) => Promise<void>;
};
declare const useAgentTurnController: typeof useAgentTurn;
}
declare function useAgentTurnController(threadId?: ThreadId): AgentTurnController;

@@ -353,13 +344,2 @@ interface AgentTranscriptScrollControllerOptions {

declare const DEFAULT_TRANSCRIPT_ITEM_LIMIT = 48;
declare const TRANSCRIPT_ITEM_INCREMENT = 48;
declare function transcriptItemIds(turn: TurnState): string[];
declare function visibleTranscriptWindow(thread: ThreadState, visibleItemLimit: number, options?: {
pinnedItemIdsByTurnId?: Map<string, string[]>;
}): {
itemIdsByTurnId: Map<string, string[]>;
totalItemCount: number;
visibleItemCount: number;
};
export { AgentAppsRefreshOptions, type AgentChatController, type AgentComposerController, type AgentComposerDisabledReason, type AgentComposerFailedPendingMessage, type AgentComposerSendMessageOptions, type AgentComposerSendMessageResult, type AgentComposerSubmitMode, type AgentDirectThreadController, type AgentDirectThreadOpenResult, AgentHooksRefreshOptions, AgentRunPolicy, AgentSkillConfigWriteOptions, AgentSkillsRefreshOptions, type AgentThreadForkResult, type AgentThreadHistoryResult, type AgentThreadHistorySyncedEvent, type AgentThreadListController, type AgentThreadListControllerOptions, type AgentThreadListRequest, type AgentThreadReadResult, type AgentThreadResumeResult, type AgentThreadResumeRunSettings, type AgentThreadStartResult, type AgentThreadStartWithInputOptions, type AgentThreadStartWithInputResult, type AgentTranscriptScrollController, type AgentTranscriptScrollControllerOptions, AgentUserInput, DEFAULT_TRANSCRIPT_ITEM_LIMIT, type QueuedFollowUp, type QueuedFollowUpAttachment, TRANSCRIPT_ITEM_INCREMENT, ThreadForkOptions, ThreadHistoryParams, ThreadResumeOptions, ThreadStartOptions, TurnStartOptions, transcriptItemIds, useAgentApprovals, useAgentApps, useAgentChatController, useAgentComposer, useAgentComposerController, useAgentDiagnostics, useAgentDirectThreadController, useAgentHooks, useAgentModels, useAgentRunSettings, useAgentServerRequests, useAgentSkills, useAgentThread, useAgentThreadActions, useAgentThreadController, useAgentThreadHistory, useAgentThreadListController, useAgentThreadReader, useAgentThreads, useAgentTranscriptScrollController, useAgentTurn, useAgentTurnController, useAgentUsage, visibleTranscriptWindow };
export { AgentApprovalDecision, AgentApprovalRequest, AgentAppsRefreshOptions, type AgentChatController, type AgentComposerController, type AgentComposerDisabledReason, type AgentComposerFailedPendingMessage, type AgentComposerSendMessageOptions, type AgentComposerSendMessageResult, type AgentComposerSubmitMode, type AgentDirectThreadController, type AgentDirectThreadOpenResult, AgentHooksRefreshOptions, AgentRunPolicy, AgentSkillConfigWriteOptions, AgentSkillsRefreshOptions, type AgentThreadForkResult, type AgentThreadHistoryResult, type AgentThreadHistorySyncedEvent, type AgentThreadListController, type AgentThreadListControllerOptions, type AgentThreadListRequest, type AgentThreadReadResult, type AgentThreadResumeDiagnosticReasonCode, type AgentThreadResumeResult, type AgentThreadResumeRunSettings, type AgentThreadStartResult, type AgentThreadStartWithInputOptions, type AgentThreadStartWithInputResult, type AgentTranscriptScrollController, type AgentTranscriptScrollControllerOptions, AgentUserInput, type QueuedFollowUp, type QueuedFollowUpAttachment, ThreadForkOptions, ThreadHistoryParams, ThreadResumeOptions, ThreadStartOptions, TurnStartOptions, useAgentApprovals, useAgentApps, useAgentChatController, useAgentComposerController, useAgentDiagnostics, useAgentDirectThreadController, useAgentHooks, useAgentModels, useAgentRunSettings, useAgentServerRequests, useAgentSkills, useAgentThreadActions, useAgentThreadController, useAgentThreadHistory, useAgentThreadListController, useAgentThreadReader, useAgentThreads, useAgentTranscriptScrollController, useAgentTurnController, useAgentUsage };

@@ -1,6 +0,6 @@

export { A as AgentProvider, a as AgentProviderProps } from './provider-DoHfE_zQ.cjs';
export { A as AgentApprovalComponentProps, a as AgentApprovalDefaultProps, b as AgentBlockComponentProps, c as AgentBlockDefaultProps, d as AgentChat, e as AgentChatOverlayControls, f as AgentChatProps, g as AgentChatStartOptions, h as AgentComponents, i as AgentComposerPanelComponentProps, j as AgentEmptyStateComponentProps, k as AgentItemDefaultProps, l as AgentShellComponentProps, m as AgentSidebarComponentProps, n as AgentStatusBarComponentProps, o as AgentThreadHeaderComponentProps, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, r as defaultAgentComponents } from './chat-Dy12pqiT.cjs';
export { A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, f as AgentLocale, g as agentI18nDictionaries, h as agentLocales, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-D33s7i8-.cjs';
export { A as AgentProvider, a as AgentProviderProps } from './provider-DlkLBSuQ.cjs';
export { A as AgentApprovalComponentProps, a as AgentApprovalDefaultProps, b as AgentBlockComponentProps, c as AgentBlockDefaultProps, d as AgentChat, e as AgentChatOverlayControls, f as AgentChatProps, g as AgentChatStartOptions, h as AgentComponents, i as AgentComposerPanelComponentProps, j as AgentEmptyStateComponentProps, k as AgentItemDefaultProps, l as AgentShellComponentProps, m as AgentSidebarComponentProps, n as AgentStatusBarComponentProps, o as AgentThreadHeaderComponentProps, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, r as defaultAgentComponents } from './chat-CMcHS2UO.cjs';
export { A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, f as AgentLocale, g as agentI18nDictionaries, h as agentLocales, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-Bkx3MbOU.cjs';
import 'react/jsx-runtime';
import '@nyosegawa/agent-ui-core';
import 'react';

@@ -1,6 +0,6 @@

export { A as AgentProvider, a as AgentProviderProps } from './provider-Q10Fx3vU.js';
export { A as AgentApprovalComponentProps, a as AgentApprovalDefaultProps, b as AgentBlockComponentProps, c as AgentBlockDefaultProps, d as AgentChat, e as AgentChatOverlayControls, f as AgentChatProps, g as AgentChatStartOptions, h as AgentComponents, i as AgentComposerPanelComponentProps, j as AgentEmptyStateComponentProps, k as AgentItemDefaultProps, l as AgentShellComponentProps, m as AgentSidebarComponentProps, n as AgentStatusBarComponentProps, o as AgentThreadHeaderComponentProps, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, r as defaultAgentComponents } from './chat-BjvhscVQ.js';
export { A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, f as AgentLocale, g as agentI18nDictionaries, h as agentLocales, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-D33s7i8-.js';
export { A as AgentProvider, a as AgentProviderProps } from './provider-DVRynjZv.js';
export { A as AgentApprovalComponentProps, a as AgentApprovalDefaultProps, b as AgentBlockComponentProps, c as AgentBlockDefaultProps, d as AgentChat, e as AgentChatOverlayControls, f as AgentChatProps, g as AgentChatStartOptions, h as AgentComponents, i as AgentComposerPanelComponentProps, j as AgentEmptyStateComponentProps, k as AgentItemDefaultProps, l as AgentShellComponentProps, m as AgentSidebarComponentProps, n as AgentStatusBarComponentProps, o as AgentThreadHeaderComponentProps, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, r as defaultAgentComponents } from './chat-BF6x-5b4.js';
export { A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, f as AgentLocale, g as agentI18nDictionaries, h as agentLocales, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-Bkx3MbOU.js';
import 'react/jsx-runtime';
import '@nyosegawa/agent-ui-core';
import 'react';

@@ -1,8 +0,8 @@

import { f as AgentLocale } from './normalize-D33s7i8-.cjs';
export { k as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, l as AgentImageInput, m as AgentLocalImageInput, o as AgentLocalMediaResourceRequest, p as AgentMentionInput, q as AgentResolvedResource, r as AgentResolvedResourceBase, s as AgentResolvedUrlResource, t as AgentResourceKind, v as AgentResourceRequest, w as AgentResourceResolution, x as AgentResourceResolver, y as AgentSkillInput, z as AgentTextInput, B as AgentUnavailableResource, C as AgentUnknownUserInput, D as AgentUserInput, E as TranscriptApprovalAnchors, g as agentI18nDictionaries, h as agentLocales, F as agentResourceDisplayName, G as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-D33s7i8-.cjs';
import { k as AgentApprovalRequest, f as AgentLocale } from './normalize-Bkx3MbOU.cjs';
export { l as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, m as AgentImageInput, o as AgentLocalImageInput, p as AgentLocalMediaResourceRequest, q as AgentMentionInput, r as AgentResolvedResource, s as AgentResolvedResourceBase, t as AgentResolvedUrlResource, v as AgentResourceKind, w as AgentResourceRequest, x as AgentResourceResolution, y as AgentResourceResolver, z as AgentSkillInput, B as AgentTextInput, C as AgentUnavailableResource, D as AgentUnknownUserInput, E as AgentUserInput, F as TranscriptApprovalAnchors, g as agentI18nDictionaries, h as agentLocales, G as agentResourceDisplayName, H as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-Bkx3MbOU.cjs';
import * as react_jsx_runtime from 'react/jsx-runtime';
export { s as AgentAttachmentChip, t as AgentAttachmentChipKind, u as AgentAttachmentChips, v as AgentAttachmentChipsProps, w as AgentCommandItem, x as AgentCommandOutputItem, y as AgentComposer, z as AgentComposerInput, B as AgentComposerInputProps, C as AgentComposerIntegration, D as AgentComposerIntegrationAttachment, E as AgentComposerIntegrationResolver, F as AgentComposerPanel, G as AgentComposerPanelProps, H as AgentComposerProps, I as AgentComposerToolbar, J as AgentComposerToolbarProps, K as AgentContentBlockView, L as AgentCriticalNoticeList, M as AgentDiagnosticsPanel, N as AgentDiffItem, O as AgentFileChangeItem, P as AgentFirstRun, Q as AgentLocalAttachmentKind, R as AgentLocalAttachmentResolver, S as AgentLocalMediaUrlResolver, T as AgentMessageItem, U as AgentMessageList, V as AgentReasoningItem, W as AgentResolvedLocalAttachment, X as AgentShell, Y as AgentShellProps, Z as AgentStartComposer, _ as AgentStartComposerProps, $ as AgentStarterCwd, a0 as AgentStatusBar, a1 as AgentStatusBarProps, a2 as AgentStatusDetails, a3 as AgentStatusSummary, a4 as AgentTheme, a5 as AgentThemeToggle, a6 as AgentThemeToggleProps, a7 as AgentThreadHeader, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, a8 as AgentThreadHeaderProps, a9 as AgentThreadSidebar, aa as AgentThreadSurface, ab as AgentThreadTimeline, ac as AgentThreadView, ad as AgentThreadViewProps, ae as AgentToolCallItem, af as AgentTranscript, ag as AgentTurn, ah as AgentWorkingDirectoryResolver, ai as ThreadList, aj as formatThreadStatus, ak as isUserFacingPath, al as threadSubtitle } from './chat-Dy12pqiT.cjs';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-COKINqyQ.cjs';
import { PendingServerRequest, ThreadTokenUsage } from '@nyosegawa/agent-ui-core';
export { s as AgentAttachmentChip, t as AgentAttachmentChipKind, u as AgentAttachmentChips, v as AgentAttachmentChipsProps, w as AgentCommandItem, x as AgentCommandOutputItem, y as AgentComposer, z as AgentComposerInput, B as AgentComposerInputProps, C as AgentComposerIntegration, D as AgentComposerIntegrationAttachment, E as AgentComposerIntegrationResolver, F as AgentComposerProps, G as AgentComposerToolbar, H as AgentComposerToolbarProps, I as AgentContentBlockView, J as AgentCriticalNoticeList, K as AgentDiagnosticsPanel, L as AgentDiffItem, M as AgentFileChangeItem, N as AgentFirstRun, O as AgentLocalAttachmentKind, P as AgentLocalAttachmentResolver, Q as AgentLocalMediaUrlResolver, R as AgentMessageItem, S as AgentMessageList, T as AgentReasoningItem, U as AgentResolvedLocalAttachment, V as AgentShell, W as AgentShellProps, X as AgentStartComposer, Y as AgentStartComposerProps, Z as AgentStarterCwd, _ as AgentStatusBar, $ as AgentStatusBarProps, a0 as AgentStatusDetails, a1 as AgentStatusSummary, a2 as AgentTheme, a3 as AgentThemeToggle, a4 as AgentThemeToggleProps, a5 as AgentThreadHeader, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, a6 as AgentThreadHeaderProps, a7 as AgentThreadSidebar, a8 as AgentThreadSurface, a9 as AgentThreadTimeline, aa as AgentThreadView, ab as AgentThreadViewProps, ac as AgentToolCallItem, ad as AgentTranscript, ae as AgentTurn, af as AgentWorkingDirectoryResolver, ag as ThreadList, ah as formatThreadStatus, ai as isUserFacingPath, aj as threadSubtitle } from './chat-CMcHS2UO.cjs';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-Bms224_V.cjs';
import React from 'react';
import { ThreadTokenUsage } from '@nyosegawa/agent-ui-core';

@@ -58,4 +58,4 @@ interface AgentComposerSubmitButtonProps {

declare function AgentApprovalQueue({ approvals: approvalsProp, renderApproval, threadId, }: {
approvals?: PendingServerRequest[];
renderApproval?: (approval: PendingServerRequest) => React.ReactNode;
approvals?: AgentApprovalRequest[];
renderApproval?: (approval: AgentApprovalRequest) => React.ReactNode;
threadId?: string;

@@ -62,0 +62,0 @@ }): react_jsx_runtime.JSX.Element | null;

@@ -1,8 +0,8 @@

import { f as AgentLocale } from './normalize-D33s7i8-.js';
export { k as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, l as AgentImageInput, m as AgentLocalImageInput, o as AgentLocalMediaResourceRequest, p as AgentMentionInput, q as AgentResolvedResource, r as AgentResolvedResourceBase, s as AgentResolvedUrlResource, t as AgentResourceKind, v as AgentResourceRequest, w as AgentResourceResolution, x as AgentResourceResolver, y as AgentSkillInput, z as AgentTextInput, B as AgentUnavailableResource, C as AgentUnknownUserInput, D as AgentUserInput, E as TranscriptApprovalAnchors, g as agentI18nDictionaries, h as agentLocales, F as agentResourceDisplayName, G as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-D33s7i8-.js';
import { k as AgentApprovalRequest, f as AgentLocale } from './normalize-Bkx3MbOU.js';
export { l as AgentFileResourceRequest, A as AgentI18nDictionary, a as AgentI18nKey, b as AgentI18nMessages, c as AgentI18nProvider, d as AgentI18nProviderProps, e as AgentI18nValue, m as AgentImageInput, o as AgentLocalImageInput, p as AgentLocalMediaResourceRequest, q as AgentMentionInput, r as AgentResolvedResource, s as AgentResolvedResourceBase, t as AgentResolvedUrlResource, v as AgentResourceKind, w as AgentResourceRequest, x as AgentResourceResolution, y as AgentResourceResolver, z as AgentSkillInput, B as AgentTextInput, C as AgentUnavailableResource, D as AgentUnknownUserInput, E as AgentUserInput, F as TranscriptApprovalAnchors, g as agentI18nDictionaries, h as agentLocales, G as agentResourceDisplayName, H as agentResourceUrl, i as interpolate, j as interpolationVariables, n as normalizeAgentLocale, u as useAgentI18n } from './normalize-Bkx3MbOU.js';
import * as react_jsx_runtime from 'react/jsx-runtime';
export { s as AgentAttachmentChip, t as AgentAttachmentChipKind, u as AgentAttachmentChips, v as AgentAttachmentChipsProps, w as AgentCommandItem, x as AgentCommandOutputItem, y as AgentComposer, z as AgentComposerInput, B as AgentComposerInputProps, C as AgentComposerIntegration, D as AgentComposerIntegrationAttachment, E as AgentComposerIntegrationResolver, F as AgentComposerPanel, G as AgentComposerPanelProps, H as AgentComposerProps, I as AgentComposerToolbar, J as AgentComposerToolbarProps, K as AgentContentBlockView, L as AgentCriticalNoticeList, M as AgentDiagnosticsPanel, N as AgentDiffItem, O as AgentFileChangeItem, P as AgentFirstRun, Q as AgentLocalAttachmentKind, R as AgentLocalAttachmentResolver, S as AgentLocalMediaUrlResolver, T as AgentMessageItem, U as AgentMessageList, V as AgentReasoningItem, W as AgentResolvedLocalAttachment, X as AgentShell, Y as AgentShellProps, Z as AgentStartComposer, _ as AgentStartComposerProps, $ as AgentStarterCwd, a0 as AgentStatusBar, a1 as AgentStatusBarProps, a2 as AgentStatusDetails, a3 as AgentStatusSummary, a4 as AgentTheme, a5 as AgentThemeToggle, a6 as AgentThemeToggleProps, a7 as AgentThreadHeader, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, a8 as AgentThreadHeaderProps, a9 as AgentThreadSidebar, aa as AgentThreadSurface, ab as AgentThreadTimeline, ac as AgentThreadView, ad as AgentThreadViewProps, ae as AgentToolCallItem, af as AgentTranscript, ag as AgentTurn, ah as AgentWorkingDirectoryResolver, ai as ThreadList, aj as formatThreadStatus, ak as isUserFacingPath, al as threadSubtitle } from './chat-BjvhscVQ.js';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-GId9CU_y.js';
import { PendingServerRequest, ThreadTokenUsage } from '@nyosegawa/agent-ui-core';
export { s as AgentAttachmentChip, t as AgentAttachmentChipKind, u as AgentAttachmentChips, v as AgentAttachmentChipsProps, w as AgentCommandItem, x as AgentCommandOutputItem, y as AgentComposer, z as AgentComposerInput, B as AgentComposerInputProps, C as AgentComposerIntegration, D as AgentComposerIntegrationAttachment, E as AgentComposerIntegrationResolver, F as AgentComposerProps, G as AgentComposerToolbar, H as AgentComposerToolbarProps, I as AgentContentBlockView, J as AgentCriticalNoticeList, K as AgentDiagnosticsPanel, L as AgentDiffItem, M as AgentFileChangeItem, N as AgentFirstRun, O as AgentLocalAttachmentKind, P as AgentLocalAttachmentResolver, Q as AgentLocalMediaUrlResolver, R as AgentMessageItem, S as AgentMessageList, T as AgentReasoningItem, U as AgentResolvedLocalAttachment, V as AgentShell, W as AgentShellProps, X as AgentStartComposer, Y as AgentStartComposerProps, Z as AgentStarterCwd, _ as AgentStatusBar, $ as AgentStatusBarProps, a0 as AgentStatusDetails, a1 as AgentStatusSummary, a2 as AgentTheme, a3 as AgentThemeToggle, a4 as AgentThemeToggleProps, a5 as AgentThreadHeader, p as AgentThreadHeaderEnd, q as AgentThreadHeaderEndContext, a6 as AgentThreadHeaderProps, a7 as AgentThreadSidebar, a8 as AgentThreadSurface, a9 as AgentThreadTimeline, aa as AgentThreadView, ab as AgentThreadViewProps, ac as AgentToolCallItem, ad as AgentTranscript, ae as AgentTurn, af as AgentWorkingDirectoryResolver, ag as ThreadList, ah as formatThreadStatus, ai as isUserFacingPath, aj as threadSubtitle } from './chat-BF6x-5b4.js';
export { U as UsageWindow, n as normalizeUsageWindows } from './usage-CUJx8fTT.js';
import React from 'react';
import { ThreadTokenUsage } from '@nyosegawa/agent-ui-core';

@@ -58,4 +58,4 @@ interface AgentComposerSubmitButtonProps {

declare function AgentApprovalQueue({ approvals: approvalsProp, renderApproval, threadId, }: {
approvals?: PendingServerRequest[];
renderApproval?: (approval: PendingServerRequest) => React.ReactNode;
approvals?: AgentApprovalRequest[];
renderApproval?: (approval: AgentApprovalRequest) => React.ReactNode;
threadId?: string;

@@ -62,0 +62,0 @@ }): react_jsx_runtime.JSX.Element | null;

{
"name": "@nyosegawa/agent-ui-react",
"version": "2.0.0",
"version": "3.0.0",
"description": "React hooks and components for Agent UI.",

@@ -76,4 +76,4 @@ "license": "MIT",

"@codemirror/view": "^6.42.1",
"@nyosegawa/agent-ui-codex": "^2.0.0",
"@nyosegawa/agent-ui-core": "^2.0.0"
"@nyosegawa/agent-ui-codex": "^3.0.0",
"@nyosegawa/agent-ui-core": "^3.0.0"
},

@@ -80,0 +80,0 @@ "peerDependencies": {

import * as react_jsx_runtime from 'react/jsx-runtime';
import React$1 from 'react';
import { ThreadState, ThreadTokenUsage, AgentThreadSummaryView, AgentThreadTranscriptView, PendingServerRequest, AgentThreadView as AgentThreadView$1, AgentThreadWaitingReason, AgentThread } from '@nyosegawa/agent-ui-core';
import { H as AgentTranscriptItem, w as AgentResourceResolution, I as AgentTranscriptBlock, E as TranscriptApprovalAnchors, J as AgentTranscriptDensity, K as AgentTranscriptEntry, L as ApprovalAnchors, D as AgentUserInput, t as AgentResourceKind, r as AgentResolvedResourceBase, a as AgentI18nKey, M as useAgentBootstrap, N as ThreadStartOptions, T as TurnStartOptions, f as AgentLocale, b as AgentI18nMessages } from './normalize-D33s7i8-.js';
type AgentLocalMediaUrlResolver = (path: string, item: AgentTranscriptItem | undefined) => AgentResourceResolution;
declare function AgentContentBlockView({ block, item, output, patch, resolveLocalMediaUrl, }: {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
output?: string;
patch?: unknown;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCommandItem({ block, item, itemId, output, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
itemId?: string;
output?: string;
}): react_jsx_runtime.JSX.Element;
declare function AgentFileChangeItem({ block, item, patch, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
patch?: unknown;
}): react_jsx_runtime.JSX.Element;
declare function AgentReasoningItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentToolCallItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentMessageItem({ text }: {
text: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentCommandOutputItem: typeof AgentCommandItem;
declare const AgentDiffItem: typeof AgentFileChangeItem;
declare function AgentMessageList({ footer, approvalAnchors, components, renderItem, density, resolveLocalMediaUrl, scrollKey, threadId, }: {
/**
* Trailing transcript content rendered as the final scroll-area item.
* The default thread view uses it to keep the pending-approval surface
* inside the transcript instead of in a separate scroll pane.
*/
footer?: React$1.ReactNode;
approvalAnchors?: TranscriptApprovalAnchors;
components?: AgentComponents;
density?: AgentTranscriptDensity;
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
/** Changing this value scrolls the transcript to its end (e.g. a new approval). */
scrollKey?: string | number;
threadId: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentTranscript: typeof AgentMessageList;
declare function AgentTurn({ approvals, components, entries, renderItem, resolveLocalMediaUrl, }: {
approvals?: ApprovalAnchors;
components?: AgentComponents;
entries?: AgentTranscriptEntry[];
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element;
type AgentLocalAttachmentKind = Extract<AgentResourceKind, "image" | "file">;
interface AgentResolvedLocalAttachment extends AgentResolvedResourceBase {
input: AgentUserInput | AgentUserInput[];
}
type AgentLocalAttachmentResolver = (file: File, kind: AgentLocalAttachmentKind) => AgentResolvedLocalAttachment | null | undefined | Promise<AgentResolvedLocalAttachment | null | undefined>;
interface AgentComposerIntegrationAttachment {
id?: string;
input: AgentUserInput | AgentUserInput[];
label: string;
value?: string;
}
type AgentComposerIntegrationResolver = () => AgentComposerIntegrationAttachment | null | undefined | Promise<AgentComposerIntegrationAttachment | null | undefined>;
interface AgentComposerIntegration {
id: string;
label: string;
resolve: AgentComposerIntegrationResolver;
title?: string;
}
type AgentAttachmentChipKind = Extract<AgentResourceKind, "image" | "file" | "integration">;
interface AgentAttachmentChip {
extension?: string;
id: string;
kind: AgentAttachmentChipKind;
label: string;
previewFailed?: boolean;
previewUrl?: string;
sizeLabel?: string;
}
interface AgentAttachmentChipsProps {
attachments: readonly AgentAttachmentChip[];
onPreviewFailed?: (id: string) => void;
onRemove?: (id: string) => void;
}
declare function AgentAttachmentChips({ attachments, onPreviewFailed, onRemove, }: AgentAttachmentChipsProps): react_jsx_runtime.JSX.Element | null;
interface AgentComposerInputProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
shortcutHintId?: string;
}
declare const AgentComposerInput: React$1.ForwardRefExoticComponent<AgentComposerInputProps & React$1.RefAttributes<HTMLTextAreaElement>>;
interface AgentComposerToolbarProps {
className?: string;
end?: React$1.ReactNode;
start?: React$1.ReactNode;
}
declare function AgentComposerToolbar({ className, end, start, }: AgentComposerToolbarProps): react_jsx_runtime.JSX.Element;
declare function AgentComposer(props: AgentComposerProps): react_jsx_runtime.JSX.Element;
interface AgentComposerProps {
composerIntegrations?: readonly AgentComposerIntegration[];
disabled?: boolean;
disabledReason?: string;
placeholder?: string;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
tokenUsage?: ThreadTokenUsage;
threadId?: string;
}
interface AgentComposerPanelProps {
composerIntegrations?: readonly AgentComposerIntegration[];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
thread: ThreadState;
threadId?: string;
}
declare function AgentComposerPanel({ composerIntegrations, resolveLocalAttachment, thread, threadId, }: AgentComposerPanelProps): react_jsx_runtime.JSX.Element;
interface AgentThreadViewProps {
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
renderApproval?: (approval: PendingServerRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadHeaderEnd?: AgentThreadHeaderEnd;
threadId?: string;
}
declare function AgentThreadView({ composerIntegrations, components, renderApproval, renderItem, resolveLocalAttachment, resolveLocalMediaUrl, threadHeaderEnd, threadId, }: AgentThreadViewProps): react_jsx_runtime.JSX.Element | null;
declare function AgentThreadSurface({ children, className, }: {
children: React$1.ReactNode;
className?: string;
}): react_jsx_runtime.JSX.Element;
type AgentThreadHeaderEnd = React$1.ReactNode | ((context: AgentThreadHeaderEndContext) => React$1.ReactNode);
interface AgentThreadHeaderEndContext {
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
interface AgentThreadHeaderProps {
end?: AgentThreadHeaderEnd;
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
declare function AgentThreadHeader({ end, thread, threadId, transcript, }: AgentThreadHeaderProps): react_jsx_runtime.JSX.Element;
/**
* Renders the thread transcript. When a `threadId` is supplied, pending
* approvals with upstream item or turn metadata are anchored immediately after
* that transcript context. Metadata-free approvals fall back to the transcript
* tail so they stay in the scroll area, not a separate pane above the composer.
*/
declare function AgentThreadTimeline({ components, renderApproval, renderItem, resolveLocalMediaUrl, threadId, }: {
components?: AgentComponents;
renderApproval?: (approval: PendingServerRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadId?: string;
}): react_jsx_runtime.JSX.Element | null;
type AgentWorkingDirectoryResolver = () => Promise<string | null | undefined> | string | null | undefined;
/**
* Compact working-directory selector for the start screen. cwd is a
* thread-start setting, so it sits beneath the starter composer as a context
* pill rather than inside the composer toolbar.
*/
declare function AgentStarterCwd({ fixedWorkingDirectory, onRequestWorkingDirectory, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
}): react_jsx_runtime.JSX.Element;
declare function AgentFirstRun({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}): react_jsx_runtime.JSX.Element;
interface AgentStartComposerProps {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}
declare function AgentStartComposer({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: AgentStartComposerProps): react_jsx_runtime.JSX.Element;
declare function ThreadList({ activeThreadId, footer, onSelectThread, threads, }: {
activeThreadId?: string;
footer?: React.ReactNode;
onSelectThread?: (threadId: string) => void;
threads: AgentThreadView$1[];
}): react_jsx_runtime.JSX.Element;
declare function formatThreadStatus(status: string, options?: {
hasTurns?: boolean;
t?: (key: AgentI18nKey) => string;
waitingReasons?: readonly AgentThreadWaitingReason[];
}): string;
declare function threadSubtitle(thread: AgentThread, t?: (key: AgentI18nKey) => string): string;
declare function isUserFacingPath(path: string): boolean;
declare function AgentThreadSidebar({ activeThreadId, collapsed, onCreateThread, onCollapsedChange, onSelectThread, }: {
activeThreadId?: string;
collapsed?: boolean;
onCreateThread?: () => void;
onCollapsedChange?: (collapsed: boolean) => void;
onSelectThread?: (threadId: string) => void;
}): react_jsx_runtime.JSX.Element | null;
type AgentTheme = "light" | "dark" | "system";
interface AgentThemeToggleProps {
"aria-label"?: string;
disabled?: boolean;
onChange: (theme: AgentTheme) => void;
value: AgentTheme;
}
declare function AgentThemeToggle({ "aria-label": ariaLabel, disabled, onChange, value, }: AgentThemeToggleProps): react_jsx_runtime.JSX.Element;
interface AgentShellProps extends React$1.HTMLAttributes<HTMLElement> {
sidebar?: React$1.ReactNode;
theme?: AgentTheme;
}
declare function AgentShell({ children, className, sidebar, theme, ...props }: AgentShellProps): react_jsx_runtime.JSX.Element;
interface AgentThreadUrlRoutingOptions {
basePath?: string;
homePath?: string;
}
interface AgentStatusBarProps {
end?: React$1.ReactNode;
onNavigateHome?: () => void;
onOpenThreads?: () => void;
}
declare function AgentStatusBar({ end, onNavigateHome, onOpenThreads, }?: AgentStatusBarProps): react_jsx_runtime.JSX.Element;
declare function AgentDiagnosticsPanel({ bootstrap, }: {
bootstrap: ReturnType<typeof useAgentBootstrap>;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusSummary(): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusDetails({ includeCritical, }: {
includeCritical?: boolean;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCriticalNoticeList(): react_jsx_runtime.JSX.Element | null;
interface AgentApprovalComponentProps {
approval: PendingServerRequest;
Default: React$1.ComponentType<AgentApprovalDefaultProps>;
}
interface AgentApprovalDefaultProps {
approval: PendingServerRequest;
}
interface AgentItemDefaultProps {
entry: AgentTranscriptEntry;
}
interface AgentShellComponentProps extends AgentShellProps {
Default: React$1.ComponentType<AgentShellProps>;
}
interface AgentSidebarComponentProps extends React$1.ComponentProps<typeof AgentThreadSidebar> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentThreadSidebar>>;
}
interface AgentEmptyStateComponentProps extends React$1.ComponentProps<typeof AgentFirstRun> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentFirstRun>>;
}
interface AgentComposerPanelComponentProps extends AgentComposerPanelProps {
Default: React$1.ComponentType<AgentComposerPanelProps>;
}
interface AgentStatusBarComponentProps extends AgentStatusBarProps {
Default: React$1.ComponentType<AgentStatusBarProps>;
}
interface AgentThreadHeaderComponentProps extends AgentThreadHeaderProps {
Default: React$1.ComponentType<AgentThreadHeaderProps>;
}
interface AgentChatStartOptions {
threadOptions?: ThreadStartOptions;
turnOptions?: TurnStartOptions;
}
interface AgentChatOverlayControls {
contextSheetOpen?: boolean;
onContextSheetOpenChange?: (open: boolean) => void;
onSidebarCollapsedChange?: (collapsed: boolean) => void;
sidebarCollapsed?: boolean;
}
interface AgentBlockDefaultProps {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
}
interface AgentBlockComponentProps extends AgentBlockDefaultProps {
Default: React$1.ComponentType<AgentBlockDefaultProps>;
}
interface AgentComponents {
Approval?: React$1.ComponentType<AgentApprovalComponentProps>;
ComposerPanel?: React$1.ComponentType<AgentComposerPanelComponentProps>;
EmptyState?: React$1.ComponentType<AgentEmptyStateComponentProps>;
Shell?: React$1.ComponentType<AgentShellComponentProps>;
Sidebar?: React$1.ComponentType<AgentSidebarComponentProps>;
StatusBar?: React$1.ComponentType<AgentStatusBarComponentProps>;
ThreadHeader?: React$1.ComponentType<AgentThreadHeaderComponentProps>;
blocks?: Partial<Record<AgentTranscriptBlock["kind"], React$1.ComponentType<AgentBlockComponentProps>>>;
}
declare const defaultAgentComponents: {
ComposerPanel: typeof AgentComposerPanel;
EmptyState: typeof AgentFirstRun;
Shell: typeof AgentShell;
Sidebar: typeof AgentThreadSidebar;
StatusBar: typeof AgentStatusBar;
ThreadHeader: typeof AgentThreadHeader;
};
interface AgentChatProps {
className?: string;
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
controls?: AgentChatOverlayControls;
diagnostics?: boolean;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
sidebar?: boolean;
startOptions?: AgentChatStartOptions;
statusBarEnd?: React$1.ReactNode;
theme?: AgentTheme;
threadHeaderEnd?: AgentThreadHeaderEnd;
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
threadUrlRouting?: boolean | AgentThreadUrlRoutingOptions;
usage?: boolean;
}
declare function AgentChat({ className, composerIntegrations, components, controls, diagnostics, onRequestWorkingDirectory, resolveLocalAttachment, resolveLocalMediaUrl, sidebar, startOptions, statusBarEnd, theme, threadHeaderEnd, locale, messages, threadUrlRouting, usage, }?: AgentChatProps): react_jsx_runtime.JSX.Element;
export { AgentStarterCwd as $, type AgentApprovalComponentProps as A, type AgentComposerInputProps as B, type AgentComposerIntegration as C, type AgentComposerIntegrationAttachment as D, type AgentComposerIntegrationResolver as E, AgentComposerPanel as F, type AgentComposerPanelProps as G, type AgentComposerProps as H, AgentComposerToolbar as I, type AgentComposerToolbarProps as J, AgentContentBlockView as K, AgentCriticalNoticeList as L, AgentDiagnosticsPanel as M, AgentDiffItem as N, AgentFileChangeItem as O, AgentFirstRun as P, type AgentLocalAttachmentKind as Q, type AgentLocalAttachmentResolver as R, type AgentLocalMediaUrlResolver as S, AgentMessageItem as T, AgentMessageList as U, AgentReasoningItem as V, type AgentResolvedLocalAttachment as W, AgentShell as X, type AgentShellProps as Y, AgentStartComposer as Z, type AgentStartComposerProps as _, type AgentApprovalDefaultProps as a, AgentStatusBar as a0, type AgentStatusBarProps as a1, AgentStatusDetails as a2, AgentStatusSummary as a3, type AgentTheme as a4, AgentThemeToggle as a5, type AgentThemeToggleProps as a6, AgentThreadHeader as a7, type AgentThreadHeaderProps as a8, AgentThreadSidebar as a9, AgentThreadSurface as aa, AgentThreadTimeline as ab, AgentThreadView as ac, type AgentThreadViewProps as ad, AgentToolCallItem as ae, AgentTranscript as af, AgentTurn as ag, type AgentWorkingDirectoryResolver as ah, ThreadList as ai, formatThreadStatus as aj, isUserFacingPath as ak, threadSubtitle as al, type AgentBlockComponentProps as b, type AgentBlockDefaultProps as c, AgentChat as d, type AgentChatOverlayControls as e, type AgentChatProps as f, type AgentChatStartOptions as g, type AgentComponents as h, type AgentComposerPanelComponentProps as i, type AgentEmptyStateComponentProps as j, type AgentItemDefaultProps as k, type AgentShellComponentProps as l, type AgentSidebarComponentProps as m, type AgentStatusBarComponentProps as n, type AgentThreadHeaderComponentProps as o, type AgentThreadHeaderEnd as p, type AgentThreadHeaderEndContext as q, defaultAgentComponents as r, type AgentAttachmentChip as s, type AgentAttachmentChipKind as t, AgentAttachmentChips as u, type AgentAttachmentChipsProps as v, AgentCommandItem as w, AgentCommandOutputItem as x, AgentComposer as y, AgentComposerInput as z };
import * as react_jsx_runtime from 'react/jsx-runtime';
import React$1 from 'react';
import { ThreadState, ThreadTokenUsage, AgentThreadSummaryView, AgentThreadTranscriptView, PendingServerRequest, AgentThreadView as AgentThreadView$1, AgentThreadWaitingReason, AgentThread } from '@nyosegawa/agent-ui-core';
import { H as AgentTranscriptItem, w as AgentResourceResolution, I as AgentTranscriptBlock, E as TranscriptApprovalAnchors, J as AgentTranscriptDensity, K as AgentTranscriptEntry, L as ApprovalAnchors, D as AgentUserInput, t as AgentResourceKind, r as AgentResolvedResourceBase, a as AgentI18nKey, M as useAgentBootstrap, N as ThreadStartOptions, T as TurnStartOptions, f as AgentLocale, b as AgentI18nMessages } from './normalize-D33s7i8-.cjs';
type AgentLocalMediaUrlResolver = (path: string, item: AgentTranscriptItem | undefined) => AgentResourceResolution;
declare function AgentContentBlockView({ block, item, output, patch, resolveLocalMediaUrl, }: {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
output?: string;
patch?: unknown;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCommandItem({ block, item, itemId, output, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
itemId?: string;
output?: string;
}): react_jsx_runtime.JSX.Element;
declare function AgentFileChangeItem({ block, item, patch, }: {
block?: AgentTranscriptBlock;
item?: AgentTranscriptItem;
patch?: unknown;
}): react_jsx_runtime.JSX.Element;
declare function AgentReasoningItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentToolCallItem({ block }: {
block: AgentTranscriptBlock;
}): react_jsx_runtime.JSX.Element;
declare function AgentMessageItem({ text }: {
text: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentCommandOutputItem: typeof AgentCommandItem;
declare const AgentDiffItem: typeof AgentFileChangeItem;
declare function AgentMessageList({ footer, approvalAnchors, components, renderItem, density, resolveLocalMediaUrl, scrollKey, threadId, }: {
/**
* Trailing transcript content rendered as the final scroll-area item.
* The default thread view uses it to keep the pending-approval surface
* inside the transcript instead of in a separate scroll pane.
*/
footer?: React$1.ReactNode;
approvalAnchors?: TranscriptApprovalAnchors;
components?: AgentComponents;
density?: AgentTranscriptDensity;
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
/** Changing this value scrolls the transcript to its end (e.g. a new approval). */
scrollKey?: string | number;
threadId: string;
}): react_jsx_runtime.JSX.Element;
declare const AgentTranscript: typeof AgentMessageList;
declare function AgentTurn({ approvals, components, entries, renderItem, resolveLocalMediaUrl, }: {
approvals?: ApprovalAnchors;
components?: AgentComponents;
entries?: AgentTranscriptEntry[];
renderItem?: (entry: AgentTranscriptEntry, Default: React$1.ComponentType<AgentItemDefaultProps>) => React$1.ReactNode;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
}): react_jsx_runtime.JSX.Element;
type AgentLocalAttachmentKind = Extract<AgentResourceKind, "image" | "file">;
interface AgentResolvedLocalAttachment extends AgentResolvedResourceBase {
input: AgentUserInput | AgentUserInput[];
}
type AgentLocalAttachmentResolver = (file: File, kind: AgentLocalAttachmentKind) => AgentResolvedLocalAttachment | null | undefined | Promise<AgentResolvedLocalAttachment | null | undefined>;
interface AgentComposerIntegrationAttachment {
id?: string;
input: AgentUserInput | AgentUserInput[];
label: string;
value?: string;
}
type AgentComposerIntegrationResolver = () => AgentComposerIntegrationAttachment | null | undefined | Promise<AgentComposerIntegrationAttachment | null | undefined>;
interface AgentComposerIntegration {
id: string;
label: string;
resolve: AgentComposerIntegrationResolver;
title?: string;
}
type AgentAttachmentChipKind = Extract<AgentResourceKind, "image" | "file" | "integration">;
interface AgentAttachmentChip {
extension?: string;
id: string;
kind: AgentAttachmentChipKind;
label: string;
previewFailed?: boolean;
previewUrl?: string;
sizeLabel?: string;
}
interface AgentAttachmentChipsProps {
attachments: readonly AgentAttachmentChip[];
onPreviewFailed?: (id: string) => void;
onRemove?: (id: string) => void;
}
declare function AgentAttachmentChips({ attachments, onPreviewFailed, onRemove, }: AgentAttachmentChipsProps): react_jsx_runtime.JSX.Element | null;
interface AgentComposerInputProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
shortcutHintId?: string;
}
declare const AgentComposerInput: React$1.ForwardRefExoticComponent<AgentComposerInputProps & React$1.RefAttributes<HTMLTextAreaElement>>;
interface AgentComposerToolbarProps {
className?: string;
end?: React$1.ReactNode;
start?: React$1.ReactNode;
}
declare function AgentComposerToolbar({ className, end, start, }: AgentComposerToolbarProps): react_jsx_runtime.JSX.Element;
declare function AgentComposer(props: AgentComposerProps): react_jsx_runtime.JSX.Element;
interface AgentComposerProps {
composerIntegrations?: readonly AgentComposerIntegration[];
disabled?: boolean;
disabledReason?: string;
placeholder?: string;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
tokenUsage?: ThreadTokenUsage;
threadId?: string;
}
interface AgentComposerPanelProps {
composerIntegrations?: readonly AgentComposerIntegration[];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
thread: ThreadState;
threadId?: string;
}
declare function AgentComposerPanel({ composerIntegrations, resolveLocalAttachment, thread, threadId, }: AgentComposerPanelProps): react_jsx_runtime.JSX.Element;
interface AgentThreadViewProps {
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
renderApproval?: (approval: PendingServerRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadHeaderEnd?: AgentThreadHeaderEnd;
threadId?: string;
}
declare function AgentThreadView({ composerIntegrations, components, renderApproval, renderItem, resolveLocalAttachment, resolveLocalMediaUrl, threadHeaderEnd, threadId, }: AgentThreadViewProps): react_jsx_runtime.JSX.Element | null;
declare function AgentThreadSurface({ children, className, }: {
children: React$1.ReactNode;
className?: string;
}): react_jsx_runtime.JSX.Element;
type AgentThreadHeaderEnd = React$1.ReactNode | ((context: AgentThreadHeaderEndContext) => React$1.ReactNode);
interface AgentThreadHeaderEndContext {
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
interface AgentThreadHeaderProps {
end?: AgentThreadHeaderEnd;
thread: AgentThreadSummaryView;
threadId?: string;
transcript?: AgentThreadTranscriptView;
}
declare function AgentThreadHeader({ end, thread, threadId, transcript, }: AgentThreadHeaderProps): react_jsx_runtime.JSX.Element;
/**
* Renders the thread transcript. When a `threadId` is supplied, pending
* approvals with upstream item or turn metadata are anchored immediately after
* that transcript context. Metadata-free approvals fall back to the transcript
* tail so they stay in the scroll area, not a separate pane above the composer.
*/
declare function AgentThreadTimeline({ components, renderApproval, renderItem, resolveLocalMediaUrl, threadId, }: {
components?: AgentComponents;
renderApproval?: (approval: PendingServerRequest) => React$1.ReactNode;
renderItem?: React$1.ComponentProps<typeof AgentMessageList>["renderItem"];
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
threadId?: string;
}): react_jsx_runtime.JSX.Element | null;
type AgentWorkingDirectoryResolver = () => Promise<string | null | undefined> | string | null | undefined;
/**
* Compact working-directory selector for the start screen. cwd is a
* thread-start setting, so it sits beneath the starter composer as a context
* pill rather than inside the composer toolbar.
*/
declare function AgentStarterCwd({ fixedWorkingDirectory, onRequestWorkingDirectory, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
}): react_jsx_runtime.JSX.Element;
declare function AgentFirstRun({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}): react_jsx_runtime.JSX.Element;
interface AgentStartComposerProps {
fixedWorkingDirectory?: string | null;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
onStartThread: (prompt?: string) => Promise<void> | void;
}
declare function AgentStartComposer({ fixedWorkingDirectory, onRequestWorkingDirectory, onStartThread, }: AgentStartComposerProps): react_jsx_runtime.JSX.Element;
declare function ThreadList({ activeThreadId, footer, onSelectThread, threads, }: {
activeThreadId?: string;
footer?: React.ReactNode;
onSelectThread?: (threadId: string) => void;
threads: AgentThreadView$1[];
}): react_jsx_runtime.JSX.Element;
declare function formatThreadStatus(status: string, options?: {
hasTurns?: boolean;
t?: (key: AgentI18nKey) => string;
waitingReasons?: readonly AgentThreadWaitingReason[];
}): string;
declare function threadSubtitle(thread: AgentThread, t?: (key: AgentI18nKey) => string): string;
declare function isUserFacingPath(path: string): boolean;
declare function AgentThreadSidebar({ activeThreadId, collapsed, onCreateThread, onCollapsedChange, onSelectThread, }: {
activeThreadId?: string;
collapsed?: boolean;
onCreateThread?: () => void;
onCollapsedChange?: (collapsed: boolean) => void;
onSelectThread?: (threadId: string) => void;
}): react_jsx_runtime.JSX.Element | null;
type AgentTheme = "light" | "dark" | "system";
interface AgentThemeToggleProps {
"aria-label"?: string;
disabled?: boolean;
onChange: (theme: AgentTheme) => void;
value: AgentTheme;
}
declare function AgentThemeToggle({ "aria-label": ariaLabel, disabled, onChange, value, }: AgentThemeToggleProps): react_jsx_runtime.JSX.Element;
interface AgentShellProps extends React$1.HTMLAttributes<HTMLElement> {
sidebar?: React$1.ReactNode;
theme?: AgentTheme;
}
declare function AgentShell({ children, className, sidebar, theme, ...props }: AgentShellProps): react_jsx_runtime.JSX.Element;
interface AgentThreadUrlRoutingOptions {
basePath?: string;
homePath?: string;
}
interface AgentStatusBarProps {
end?: React$1.ReactNode;
onNavigateHome?: () => void;
onOpenThreads?: () => void;
}
declare function AgentStatusBar({ end, onNavigateHome, onOpenThreads, }?: AgentStatusBarProps): react_jsx_runtime.JSX.Element;
declare function AgentDiagnosticsPanel({ bootstrap, }: {
bootstrap: ReturnType<typeof useAgentBootstrap>;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusSummary(): react_jsx_runtime.JSX.Element | null;
declare function AgentStatusDetails({ includeCritical, }: {
includeCritical?: boolean;
}): react_jsx_runtime.JSX.Element | null;
declare function AgentCriticalNoticeList(): react_jsx_runtime.JSX.Element | null;
interface AgentApprovalComponentProps {
approval: PendingServerRequest;
Default: React$1.ComponentType<AgentApprovalDefaultProps>;
}
interface AgentApprovalDefaultProps {
approval: PendingServerRequest;
}
interface AgentItemDefaultProps {
entry: AgentTranscriptEntry;
}
interface AgentShellComponentProps extends AgentShellProps {
Default: React$1.ComponentType<AgentShellProps>;
}
interface AgentSidebarComponentProps extends React$1.ComponentProps<typeof AgentThreadSidebar> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentThreadSidebar>>;
}
interface AgentEmptyStateComponentProps extends React$1.ComponentProps<typeof AgentFirstRun> {
Default: React$1.ComponentType<React$1.ComponentProps<typeof AgentFirstRun>>;
}
interface AgentComposerPanelComponentProps extends AgentComposerPanelProps {
Default: React$1.ComponentType<AgentComposerPanelProps>;
}
interface AgentStatusBarComponentProps extends AgentStatusBarProps {
Default: React$1.ComponentType<AgentStatusBarProps>;
}
interface AgentThreadHeaderComponentProps extends AgentThreadHeaderProps {
Default: React$1.ComponentType<AgentThreadHeaderProps>;
}
interface AgentChatStartOptions {
threadOptions?: ThreadStartOptions;
turnOptions?: TurnStartOptions;
}
interface AgentChatOverlayControls {
contextSheetOpen?: boolean;
onContextSheetOpenChange?: (open: boolean) => void;
onSidebarCollapsedChange?: (collapsed: boolean) => void;
sidebarCollapsed?: boolean;
}
interface AgentBlockDefaultProps {
block: AgentTranscriptBlock;
item?: AgentTranscriptItem;
}
interface AgentBlockComponentProps extends AgentBlockDefaultProps {
Default: React$1.ComponentType<AgentBlockDefaultProps>;
}
interface AgentComponents {
Approval?: React$1.ComponentType<AgentApprovalComponentProps>;
ComposerPanel?: React$1.ComponentType<AgentComposerPanelComponentProps>;
EmptyState?: React$1.ComponentType<AgentEmptyStateComponentProps>;
Shell?: React$1.ComponentType<AgentShellComponentProps>;
Sidebar?: React$1.ComponentType<AgentSidebarComponentProps>;
StatusBar?: React$1.ComponentType<AgentStatusBarComponentProps>;
ThreadHeader?: React$1.ComponentType<AgentThreadHeaderComponentProps>;
blocks?: Partial<Record<AgentTranscriptBlock["kind"], React$1.ComponentType<AgentBlockComponentProps>>>;
}
declare const defaultAgentComponents: {
ComposerPanel: typeof AgentComposerPanel;
EmptyState: typeof AgentFirstRun;
Shell: typeof AgentShell;
Sidebar: typeof AgentThreadSidebar;
StatusBar: typeof AgentStatusBar;
ThreadHeader: typeof AgentThreadHeader;
};
interface AgentChatProps {
className?: string;
composerIntegrations?: readonly AgentComposerIntegration[];
components?: AgentComponents;
controls?: AgentChatOverlayControls;
diagnostics?: boolean;
onRequestWorkingDirectory?: AgentWorkingDirectoryResolver;
resolveLocalAttachment?: AgentLocalAttachmentResolver;
resolveLocalMediaUrl?: AgentLocalMediaUrlResolver;
sidebar?: boolean;
startOptions?: AgentChatStartOptions;
statusBarEnd?: React$1.ReactNode;
theme?: AgentTheme;
threadHeaderEnd?: AgentThreadHeaderEnd;
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
threadUrlRouting?: boolean | AgentThreadUrlRoutingOptions;
usage?: boolean;
}
declare function AgentChat({ className, composerIntegrations, components, controls, diagnostics, onRequestWorkingDirectory, resolveLocalAttachment, resolveLocalMediaUrl, sidebar, startOptions, statusBarEnd, theme, threadHeaderEnd, locale, messages, threadUrlRouting, usage, }?: AgentChatProps): react_jsx_runtime.JSX.Element;
export { AgentStarterCwd as $, type AgentApprovalComponentProps as A, type AgentComposerInputProps as B, type AgentComposerIntegration as C, type AgentComposerIntegrationAttachment as D, type AgentComposerIntegrationResolver as E, AgentComposerPanel as F, type AgentComposerPanelProps as G, type AgentComposerProps as H, AgentComposerToolbar as I, type AgentComposerToolbarProps as J, AgentContentBlockView as K, AgentCriticalNoticeList as L, AgentDiagnosticsPanel as M, AgentDiffItem as N, AgentFileChangeItem as O, AgentFirstRun as P, type AgentLocalAttachmentKind as Q, type AgentLocalAttachmentResolver as R, type AgentLocalMediaUrlResolver as S, AgentMessageItem as T, AgentMessageList as U, AgentReasoningItem as V, type AgentResolvedLocalAttachment as W, AgentShell as X, type AgentShellProps as Y, AgentStartComposer as Z, type AgentStartComposerProps as _, type AgentApprovalDefaultProps as a, AgentStatusBar as a0, type AgentStatusBarProps as a1, AgentStatusDetails as a2, AgentStatusSummary as a3, type AgentTheme as a4, AgentThemeToggle as a5, type AgentThemeToggleProps as a6, AgentThreadHeader as a7, type AgentThreadHeaderProps as a8, AgentThreadSidebar as a9, AgentThreadSurface as aa, AgentThreadTimeline as ab, AgentThreadView as ac, type AgentThreadViewProps as ad, AgentToolCallItem as ae, AgentTranscript as af, AgentTurn as ag, type AgentWorkingDirectoryResolver as ah, ThreadList as ai, formatThreadStatus as aj, isUserFacingPath as ak, threadSubtitle as al, type AgentBlockComponentProps as b, type AgentBlockDefaultProps as c, AgentChat as d, type AgentChatOverlayControls as e, type AgentChatProps as f, type AgentChatStartOptions as g, type AgentComponents as h, type AgentComposerPanelComponentProps as i, type AgentEmptyStateComponentProps as j, type AgentItemDefaultProps as k, type AgentShellComponentProps as l, type AgentSidebarComponentProps as m, type AgentStatusBarComponentProps as n, type AgentThreadHeaderComponentProps as o, type AgentThreadHeaderEnd as p, type AgentThreadHeaderEndContext as q, defaultAgentComponents as r, type AgentAttachmentChip as s, type AgentAttachmentChipKind as t, AgentAttachmentChips as u, type AgentAttachmentChipsProps as v, AgentCommandItem as w, AgentCommandOutputItem as x, AgentComposer as y, AgentComposerInput as z };
import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core';
import { ReasoningEffort, PendingServerRequest, AgentTranscriptBlockView, AgentItemBlockKind, ThreadId, AgentItemState } from '@nyosegawa/agent-ui-core';
import React, { PropsWithChildren } from 'react';
import * as react_jsx_runtime from 'react/jsx-runtime';
type AgentJsonValue = null | boolean | number | string | AgentJsonValue[] | {
[key: string]: AgentJsonValue | undefined;
};
type AgentApprovalPolicy = "untrusted" | "on-failure" | "on-request" | "never" | {
granular: {
mcp_elicitations: boolean;
request_permissions: boolean;
rules: boolean;
sandbox_approval: boolean;
skill_approval: boolean;
};
};
type AgentApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
type AgentReasoningSummary = "auto" | "concise" | "detailed" | "none";
type AgentPersonality = "none" | "friendly" | "pragmatic";
type AgentSandboxMode = "read-only" | "workspace-write" | "danger-full-access";
type AgentThreadSource = "user" | "subagent" | "memory_consolidation";
type AgentThreadStartSource = "startup" | "clear";
type AgentThreadSortKey = "created_at" | "updated_at";
type AgentSortDirection = "asc" | "desc";
type AgentThreadSourceKind = "cli" | "vscode" | "exec" | "appServer" | "subAgent" | "subAgentReview" | "subAgentCompact" | "subAgentThreadSpawn" | "subAgentOther" | "unknown";
type AgentSandboxPolicy = {
type: "dangerFullAccess";
} | {
networkAccess: boolean;
type: "readOnly";
} | {
networkAccess: "restricted" | "enabled";
type: "externalSandbox";
} | {
excludeSlashTmp: boolean;
excludeTmpdirEnvVar: boolean;
networkAccess: boolean;
type: "workspaceWrite";
writableRoots: string[];
};
interface AgentThreadConfigOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
baseInstructions?: string | null;
config?: {
[key: string]: AgentJsonValue | undefined;
} | null;
cwd?: string | null;
developerInstructions?: string | null;
model?: string | null;
modelProvider?: string | null;
personality?: AgentPersonality | null;
serviceTier?: string | null;
}
interface ThreadStartOptions extends AgentThreadConfigOptions {
ephemeral?: boolean | null;
sandbox?: AgentSandboxMode | null;
sessionStartSource?: AgentThreadStartSource | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadResumeOptions extends AgentThreadConfigOptions {
sandbox?: AgentSandboxMode | null;
}
interface ThreadForkOptions extends AgentThreadConfigOptions {
ephemeral?: boolean;
sandbox?: AgentSandboxMode | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadHistoryParams {
archived?: boolean | null;
cursor?: string | null;
cwd?: string | string[] | null;
limit?: number | null;
modelProviders?: string[] | null;
searchTerm?: string | null;
sortDirection?: AgentSortDirection | null;
sortKey?: AgentThreadSortKey | null;
sourceKinds?: AgentThreadSourceKind[] | null;
useStateDbOnly?: boolean;
}
interface TurnStartOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
cwd?: string | null;
effort?: ReasoningEffort | null;
model?: string | null;
outputSchema?: AgentJsonValue | null;
personality?: AgentPersonality | null;
sandboxPolicy?: AgentSandboxPolicy | null;
serviceTier?: string | null;
summary?: AgentReasoningSummary | null;
}
interface AgentAppsRefreshOptions {
cursor?: string | null;
forceRefetch?: boolean;
limit?: number | null;
threadId?: string | null;
}
interface AgentSkillsRefreshOptions {
cwds?: string[];
forceReload?: boolean;
}
interface AgentSkillConfigWriteOptions {
enabled: boolean;
name?: string | null;
path?: string | null;
}
interface AgentHooksRefreshOptions {
cwds?: string[];
}
type AgentUserInput = AgentTextInput | AgentImageInput | AgentLocalImageInput | AgentSkillInput | AgentMentionInput | AgentUnknownUserInput;
interface AgentTextInput {
text: string;
text_elements?: unknown[];
type: "text";
}
interface AgentImageInput {
image_url: string;
type: "image";
}
interface AgentLocalImageInput {
path: string;
type: "localImage";
}
interface AgentSkillInput {
name: string;
path: string;
type: "skill";
}
interface AgentMentionInput {
name: string;
path: string;
type: "mention";
}
interface AgentUnknownUserInput {
type: string;
[key: string]: unknown;
}
declare function useAgentAccount(): {
account: _nyosegawa_agent_ui_core.AccountState;
cancelLogin: () => Promise<void>;
login: () => Promise<{
loginId: string | undefined;
userCode: string | undefined;
verificationUrl: string | undefined;
}>;
logout: () => Promise<void>;
readAccount: () => Promise<{
authenticated: boolean;
}>;
};
interface AgentBootstrapState {
errors: Error[];
isBootstrapping: boolean;
status: "idle" | "loading" | "ready" | "error";
}
declare function useAgentBootstrap(): AgentBootstrapState;
interface ApprovalAnchors {
afterTurn: PendingServerRequest[];
byItemId: Record<string, PendingServerRequest[]>;
renderApprovalAnchor: (approval: PendingServerRequest) => React.ReactNode;
}
interface TranscriptApprovalAnchors {
requests: PendingServerRequest[];
renderApprovalAnchor: (approval: PendingServerRequest) => React.ReactNode;
}
type AgentTranscriptDensityMode = "default" | "compact" | "verbose" | "critical-only";
interface AgentTranscriptDensityConfig {
default?: AgentTranscriptDensityMode;
byBlockKind?: Partial<Record<AgentItemBlockKind, AgentTranscriptDensityMode>>;
}
type AgentTranscriptDensity = AgentTranscriptDensityMode | AgentTranscriptDensityConfig;
interface AgentTranscriptPendingState {
status: "failed" | "inProgress";
}
type AgentTranscriptBlock = AgentTranscriptBlockView;
type AgentTranscriptItemStatus = "cancelled" | "completed" | "failed" | "inProgress" | "pending" | "streaming";
interface AgentTranscriptItem {
id: string;
kind: string;
status?: AgentTranscriptItemStatus;
text?: string;
threadId?: string;
turnId?: string;
}
interface AgentTranscriptEntry {
approvals: PendingServerRequest[];
block: AgentTranscriptBlock;
dataKind: string;
density: AgentTranscriptDensityMode;
displayStatus: string;
id: string;
item?: AgentTranscriptItem;
itemId: string;
key: string;
pending?: AgentTranscriptPendingState;
patch?: unknown;
role: "assistant" | "command" | "system" | "tool" | "user";
status: AgentTranscriptItemStatus;
text?: string;
turnId: string;
}
interface AgentTranscriptControllerOptions {
approvalAnchors?: TranscriptApprovalAnchors;
density?: AgentTranscriptDensity;
}
interface AgentTranscriptController {
density: AgentTranscriptDensityMode;
entries: AgentTranscriptEntry[];
entriesByTurnId: Map<string, AgentTranscriptEntry[]>;
hiddenItemCount: number;
showEarlierItems(): void;
threadId?: string;
turnIds: string[];
visibleItemCount: number;
}
declare function useAgentTranscriptController(threadId?: ThreadId, options?: AgentTranscriptControllerOptions): AgentTranscriptController;
type AgentResourceKind = "image" | "file" | "integration" | "url" | "unavailable";
interface AgentResolvedResourceBase {
displayName?: string;
id?: string;
input?: AgentUserInput | AgentUserInput[];
mimeType?: string;
name?: string;
path?: string;
previewUrl?: string;
redactedPath?: string;
reason?: string;
sizeBytes?: number;
url?: string;
}
interface AgentResolvedUrlResource extends AgentResolvedResourceBase {
kind: "url";
}
interface AgentUnavailableResource extends AgentResolvedResourceBase {
kind: "unavailable";
}
type AgentResolvedResource = AgentResolvedUrlResource | AgentUnavailableResource;
interface AgentFileResourceRequest {
file: File;
kind: Extract<AgentResourceKind, "image" | "file">;
source: "file";
}
interface AgentLocalMediaResourceRequest {
item?: AgentItemState;
path: string;
source: "local-media";
}
type AgentResourceRequest = AgentFileResourceRequest | AgentLocalMediaResourceRequest;
type AgentResourceResolution = AgentResolvedResource | null | undefined;
type AgentResourceResolver = (request: AgentResourceRequest) => AgentResourceResolution | Promise<AgentResourceResolution>;
declare function agentResourceUrl(resource: AgentResolvedResourceBase | null | undefined): string | undefined;
declare function agentResourceDisplayName(resource: AgentResolvedResourceBase | null | undefined, fallback?: string): string | undefined;
type AgentLocale = "en" | "ja" | "ko" | "zh-CN" | "es" | "fr";
declare const agentLocales: AgentLocale[];
interface AgentI18nDictionary {
"account.authenticated": string;
"account.authenticating": string;
"account.checking": string;
"account.connecting": string;
"account.cancelLogin": string;
"account.details": string;
"account.email": string;
"account.login": string;
"account.logout": string;
"account.openDeviceLogin": string;
"account.openMenu": string;
"account.plan": string;
"account.status": string;
"account.unauthenticated": string;
"approval.action.approve": string;
"approval.action.approveAria": string;
"approval.action.approveForSession": string;
"approval.action.approveForSessionAria": string;
"approval.action.decline": string;
"approval.action.declineAria": string;
"approval.action.review": string;
"approval.action.reviewAria": string;
"approval.aria.otherPending": string;
"approval.aria.pending": string;
"approval.aria.pendingOne": string;
"approval.count": string;
"approval.kind.attestation": string;
"approval.kind.authRefresh": string;
"approval.kind.command": string;
"approval.kind.dynamicTool": string;
"approval.kind.fileChange": string;
"approval.kind.generic": string;
"approval.kind.mcpInput": string;
"approval.kind.permissions": string;
"approval.kind.userInput": string;
"approval.meta.approvalPolicy": string;
"approval.meta.item": string;
"approval.meta.namespace": string;
"approval.meta.sandbox": string;
"approval.meta.tool": string;
"approval.meta.workingDirectory": string;
"approval.request.command": string;
"approval.request.fileChange": string;
"approval.request.generic": string;
"approval.risk.high": string;
"approval.risk.low": string;
"approval.risk.medium": string;
"approval.riskSuffix": string;
"approval.summary.command": string;
"approval.summary.default": string;
"approval.summary.dynamicTool": string;
"approval.summary.fileChange": string;
"approval.summary.mcpInput": string;
"approval.summary.permissions": string;
"approval.summary.userInput": string;
"aria.actions": string;
"aria.agentContext": string;
"aria.changedFiles": string;
"aria.codeMirrorPatchViewer": string;
"aria.commandOutput": string;
"aria.completedTask": string;
"aria.composerAttachments": string;
"aria.contextUsage": string;
"aria.contextUsageDetails": string;
"aria.criticalStatus": string;
"aria.diffPreview": string;
"aria.dismissThreadHistory": string;
"aria.message": string;
"aria.messageComposer": string;
"aria.openTask": string;
"aria.patchContent": string;
"aria.pendingAttachments": string;
"aria.runControls": string;
"aria.statusDetails": string;
"aria.statusSummary": string;
"aria.threadStartContext": string;
"aria.threads": string;
"aria.tokenUsage": string;
"aria.usageLimits": string;
"aria.usageSummary": string;
"apps.authNeeded": string;
"apps.disabled": string;
"apps.empty": string;
"apps.label": string;
"apps.loadMore": string;
"apps.notInstalled": string;
"apps.unavailable": string;
"common.cancel": string;
"common.close": string;
"common.closeMenu": string;
"common.collapse": string;
"common.default": string;
"common.details": string;
"common.disable": string;
"common.enable": string;
"common.expand": string;
"common.file": string;
"common.files": string;
"common.loading": string;
"common.message": string;
"common.messages": string;
"common.notice": string;
"common.notices": string;
"common.open": string;
"common.refresh": string;
"common.refreshing": string;
"common.serverDefault": string;
"common.syncPending": string;
"common.unknown": string;
"composer.addFollowUp": string;
"composer.attachFile": string;
"composer.attachFiles": string;
"composer.attachedFollowUp": string;
"composer.attachmentRejected": string;
"composer.attachmentRejectedMany": string;
"composer.attachmentRejectedOne": string;
"composer.cannotAcceptFollowUp": string;
"composer.couldNotSendAdditional": string;
"composer.couldNotStart": string;
"composer.couldNotStop": string;
"composer.enterToSend": string;
"composer.dismissFailedMessage": string;
"composer.failedMessageBody": string;
"composer.failedMessages": string;
"composer.failedMessageTitle": string;
"composer.followUpNoActiveTurn": string;
"composer.followUpTurnChanged": string;
"composer.followUpTurnChangedRefresh": string;
"composer.placeholder": string;
"composer.removeAttachment": string;
"composer.resolveApprovalReason": string;
"composer.retryFailedMessage": string;
"composer.send": string;
"composer.sendMessage": string;
"composer.stopCurrentTurn": string;
"context.cachedInput": string;
"context.compactionNotice": string;
"context.contextWindow": string;
"context.input": string;
"context.lastTurn": string;
"context.output": string;
"context.reasoning": string;
"context.title": string;
"context.used": string;
"diagnostics.label": string;
"diagnostics.messageCount": string;
"diagnostics.pluginManifestWarnings": string;
"diagnostics.syncing": string;
"diagnostics.withPluginWarnings": string;
"firstRun.authenticating.body": string;
"firstRun.authenticating.title": string;
"firstRun.bridgeError.body": string;
"firstRun.bridgeError.title": string;
"firstRun.connect.body": string;
"firstRun.connect.cta": string;
"firstRun.connect.title": string;
"firstRun.error": string;
"firstRun.form": string;
"firstRun.placeholder": string;
"firstRun.preparing.body": string;
"firstRun.preparing.cta": string;
"firstRun.preparing.title": string;
"firstRun.startThread": string;
"followUp.attachments": string;
"followUp.attachmentsMany": string;
"followUp.attachmentsOne": string;
"followUp.earlier": string;
"followUp.earlierMany": string;
"followUp.earlierOne": string;
"followUp.earlierQueued": string;
"followUp.edit": string;
"followUp.queued": string;
"followUp.queuedAttachments": string;
"followUp.remove": string;
"followUp.sendNow": string;
"locale.en": string;
"locale.es": string;
"locale.fr": string;
"locale.ja": string;
"locale.ko": string;
"locale.label": string;
"locale.zh-CN": string;
"markdown.completedTask": string;
"markdown.openTask": string;
"run.clearWorkingDirectory": string;
"run.cwd.noRecent": string;
"run.cwd.openFolder": string;
"run.cwd.openFolderAction": string;
"run.cwd.prompt": string;
"run.cwd.recent": string;
"run.cwd.selectFolder": string;
"run.cwd.serverDefault": string;
"run.defaultEffort": string;
"run.defaultModel": string;
"run.effort": string;
"run.effort.high": string;
"run.effort.low": string;
"run.effort.medium": string;
"run.effort.minimal": string;
"run.effort.veryHigh": string;
"run.policy": string;
"run.policy.auto.description": string;
"run.policy.auto.label": string;
"run.policy.full-access.description": string;
"run.policy.full-access.label": string;
"run.policy.read-only.description": string;
"run.policy.read-only.label": string;
"run.policy.review.description": string;
"run.policy.review.label": string;
"run.model": string;
"run.modelAndEffort": string;
"run.modelDefault": string;
"run.noSelectableEffort": string;
"run.serverDefault": string;
"run.workingDirectory": string;
"skills.empty": string;
"skills.label": string;
"status.account": string;
"status.backgroundNotice": string;
"status.configWarning": string;
"status.critical": string;
"status.deprecationNotice": string;
"status.failed": string;
"status.mcpOAuth": string;
"status.modelReroute": string;
"status.rateLimit": string;
"status.title": string;
"status.total": string;
"status.warning": string;
"theme.dark": string;
"theme.label": string;
"theme.light": string;
"theme.system": string;
"thread.action.archive": string;
"thread.action.compact": string;
"thread.action.fork": string;
"thread.action.rename": string;
"thread.action.rollback": string;
"thread.action.unarchive": string;
"thread.closeHistory": string;
"thread.codexSession": string;
"thread.collapseHistory": string;
"thread.empty": string;
"thread.ephemeralSession": string;
"thread.expandHistory": string;
"thread.history": string;
"thread.namePrompt": string;
"thread.new": string;
"thread.noThreadsFound": string;
"thread.openHistory": string;
"thread.search": string;
"thread.searchHistory": string;
"thread.status.complete": string;
"thread.status.failed": string;
"thread.status.needsAttention": string;
"thread.status.needsApproval": string;
"thread.status.needsAttestation": string;
"thread.status.needsAuthentication": string;
"thread.status.needsInput": string;
"thread.status.needsMcpInput": string;
"thread.status.needsPermission": string;
"thread.status.preview": string;
"thread.status.ready": string;
"thread.status.running": string;
"thread.status.stored": string;
"thread.threadCount": string;
"thread.untitled": string;
"timeline.agentTool": string;
"timeline.arguments": string;
"timeline.argumentsPreview": string;
"timeline.assistant": string;
"timeline.collab": string;
"timeline.collabTool": string;
"timeline.command": string;
"timeline.compaction": string;
"timeline.diff": string;
"timeline.earlierHidden": string;
"timeline.error": string;
"timeline.exitCode": string;
"timeline.file": string;
"timeline.fileChange": string;
"timeline.fileChanges": string;
"timeline.files": string;
"timeline.filesChanged": string;
"timeline.from": string;
"timeline.image": string;
"timeline.imageGenerated": string;
"timeline.localMediaUnavailable": string;
"timeline.item": string;
"timeline.items": string;
"timeline.jumpToPendingApproval": string;
"timeline.jumpToLatest": string;
"timeline.lines": string;
"timeline.mcpTool": string;
"timeline.noPatch": string;
"timeline.noTerminalOutput": string;
"timeline.output": string;
"timeline.plan": string;
"timeline.reasoning": string;
"timeline.result": string;
"timeline.resultCaptured": string;
"timeline.resultItems": string;
"timeline.search": string;
"timeline.showEarlier": string;
"timeline.system": string;
"timeline.terminal": string;
"timeline.thinking": string;
"timeline.thread": string;
"timeline.to": string;
"timeline.tool": string;
"timeline.toolCall": string;
"timeline.unknownTool": string;
"timeline.webSearch": string;
"timeline.you": string;
"usage.empty": string;
"usage.inputOutput": string;
"usage.label": string;
"usage.limits": string;
"usage.meterLabel": string;
"usage.namedWindow": string;
"usage.resetAt": string;
"usage.hourWindow": string;
"usage.tokens": string;
"usage.title": string;
"usage.weeklyWindow": string;
}
type AgentI18nKey = keyof AgentI18nDictionary;
type AgentI18nMessages = Partial<AgentI18nDictionary>;
interface AgentI18nValue {
locale: AgentLocale;
t: (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
}
interface AgentI18nProviderProps extends PropsWithChildren {
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
}
declare function AgentI18nProvider({ children, locale, messages, }: AgentI18nProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentI18n(): AgentI18nValue;
declare function interpolate(template: string, vars: Record<string, string | number> | undefined): string;
declare function interpolationVariables(template: string): string[];
declare const agentI18nDictionaries: Record<AgentLocale, AgentI18nDictionary>;
declare function normalizeAgentLocale(locale?: AgentLocale | string): AgentLocale;
export { type AgentReasoningSummary as $, type AgentI18nDictionary as A, type AgentUnavailableResource as B, type AgentUnknownUserInput as C, type AgentUserInput as D, type TranscriptApprovalAnchors as E, agentResourceDisplayName as F, agentResourceUrl as G, type AgentTranscriptItem as H, type AgentTranscriptBlock as I, type AgentTranscriptDensity as J, type AgentTranscriptEntry as K, type ApprovalAnchors as L, useAgentBootstrap as M, type ThreadStartOptions as N, type AgentAppsRefreshOptions as O, type AgentHooksRefreshOptions as P, type AgentSkillsRefreshOptions as Q, type AgentSkillConfigWriteOptions as R, type ThreadResumeOptions as S, type TurnStartOptions as T, type ThreadForkOptions as U, type ThreadHistoryParams as V, type AgentApprovalPolicy as W, type AgentApprovalsReviewer as X, type AgentBootstrapState as Y, type AgentJsonValue as Z, type AgentPersonality as _, type AgentI18nKey as a, type AgentSandboxMode as a0, type AgentSandboxPolicy as a1, type AgentSortDirection as a2, type AgentThreadConfigOptions as a3, type AgentThreadSortKey as a4, type AgentThreadSource as a5, type AgentThreadSourceKind as a6, type AgentThreadStartSource as a7, type AgentTranscriptController as a8, type AgentTranscriptControllerOptions as a9, type AgentTranscriptDensityConfig as aa, type AgentTranscriptDensityMode as ab, type AgentTranscriptPendingState as ac, useAgentAccount as ad, useAgentTranscriptController as ae, type AgentI18nMessages as b, AgentI18nProvider as c, type AgentI18nProviderProps as d, type AgentI18nValue as e, type AgentLocale as f, agentI18nDictionaries as g, agentLocales as h, interpolate as i, interpolationVariables as j, type AgentFileResourceRequest as k, type AgentImageInput as l, type AgentLocalImageInput as m, normalizeAgentLocale as n, type AgentLocalMediaResourceRequest as o, type AgentMentionInput as p, type AgentResolvedResource as q, type AgentResolvedResourceBase as r, type AgentResolvedUrlResource as s, type AgentResourceKind as t, useAgentI18n as u, type AgentResourceRequest as v, type AgentResourceResolution as w, type AgentResourceResolver as x, type AgentSkillInput as y, type AgentTextInput as z };
import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core';
import { ReasoningEffort, PendingServerRequest, AgentTranscriptBlockView, AgentItemBlockKind, ThreadId, AgentItemState } from '@nyosegawa/agent-ui-core';
import React, { PropsWithChildren } from 'react';
import * as react_jsx_runtime from 'react/jsx-runtime';
type AgentJsonValue = null | boolean | number | string | AgentJsonValue[] | {
[key: string]: AgentJsonValue | undefined;
};
type AgentApprovalPolicy = "untrusted" | "on-failure" | "on-request" | "never" | {
granular: {
mcp_elicitations: boolean;
request_permissions: boolean;
rules: boolean;
sandbox_approval: boolean;
skill_approval: boolean;
};
};
type AgentApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
type AgentReasoningSummary = "auto" | "concise" | "detailed" | "none";
type AgentPersonality = "none" | "friendly" | "pragmatic";
type AgentSandboxMode = "read-only" | "workspace-write" | "danger-full-access";
type AgentThreadSource = "user" | "subagent" | "memory_consolidation";
type AgentThreadStartSource = "startup" | "clear";
type AgentThreadSortKey = "created_at" | "updated_at";
type AgentSortDirection = "asc" | "desc";
type AgentThreadSourceKind = "cli" | "vscode" | "exec" | "appServer" | "subAgent" | "subAgentReview" | "subAgentCompact" | "subAgentThreadSpawn" | "subAgentOther" | "unknown";
type AgentSandboxPolicy = {
type: "dangerFullAccess";
} | {
networkAccess: boolean;
type: "readOnly";
} | {
networkAccess: "restricted" | "enabled";
type: "externalSandbox";
} | {
excludeSlashTmp: boolean;
excludeTmpdirEnvVar: boolean;
networkAccess: boolean;
type: "workspaceWrite";
writableRoots: string[];
};
interface AgentThreadConfigOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
baseInstructions?: string | null;
config?: {
[key: string]: AgentJsonValue | undefined;
} | null;
cwd?: string | null;
developerInstructions?: string | null;
model?: string | null;
modelProvider?: string | null;
personality?: AgentPersonality | null;
serviceTier?: string | null;
}
interface ThreadStartOptions extends AgentThreadConfigOptions {
ephemeral?: boolean | null;
sandbox?: AgentSandboxMode | null;
sessionStartSource?: AgentThreadStartSource | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadResumeOptions extends AgentThreadConfigOptions {
sandbox?: AgentSandboxMode | null;
}
interface ThreadForkOptions extends AgentThreadConfigOptions {
ephemeral?: boolean;
sandbox?: AgentSandboxMode | null;
threadSource?: AgentThreadSource | null;
}
interface ThreadHistoryParams {
archived?: boolean | null;
cursor?: string | null;
cwd?: string | string[] | null;
limit?: number | null;
modelProviders?: string[] | null;
searchTerm?: string | null;
sortDirection?: AgentSortDirection | null;
sortKey?: AgentThreadSortKey | null;
sourceKinds?: AgentThreadSourceKind[] | null;
useStateDbOnly?: boolean;
}
interface TurnStartOptions {
approvalPolicy?: AgentApprovalPolicy | null;
approvalsReviewer?: AgentApprovalsReviewer | null;
cwd?: string | null;
effort?: ReasoningEffort | null;
model?: string | null;
outputSchema?: AgentJsonValue | null;
personality?: AgentPersonality | null;
sandboxPolicy?: AgentSandboxPolicy | null;
serviceTier?: string | null;
summary?: AgentReasoningSummary | null;
}
interface AgentAppsRefreshOptions {
cursor?: string | null;
forceRefetch?: boolean;
limit?: number | null;
threadId?: string | null;
}
interface AgentSkillsRefreshOptions {
cwds?: string[];
forceReload?: boolean;
}
interface AgentSkillConfigWriteOptions {
enabled: boolean;
name?: string | null;
path?: string | null;
}
interface AgentHooksRefreshOptions {
cwds?: string[];
}
type AgentUserInput = AgentTextInput | AgentImageInput | AgentLocalImageInput | AgentSkillInput | AgentMentionInput | AgentUnknownUserInput;
interface AgentTextInput {
text: string;
text_elements?: unknown[];
type: "text";
}
interface AgentImageInput {
image_url: string;
type: "image";
}
interface AgentLocalImageInput {
path: string;
type: "localImage";
}
interface AgentSkillInput {
name: string;
path: string;
type: "skill";
}
interface AgentMentionInput {
name: string;
path: string;
type: "mention";
}
interface AgentUnknownUserInput {
type: string;
[key: string]: unknown;
}
declare function useAgentAccount(): {
account: _nyosegawa_agent_ui_core.AccountState;
cancelLogin: () => Promise<void>;
login: () => Promise<{
loginId: string | undefined;
userCode: string | undefined;
verificationUrl: string | undefined;
}>;
logout: () => Promise<void>;
readAccount: () => Promise<{
authenticated: boolean;
}>;
};
interface AgentBootstrapState {
errors: Error[];
isBootstrapping: boolean;
status: "idle" | "loading" | "ready" | "error";
}
declare function useAgentBootstrap(): AgentBootstrapState;
interface ApprovalAnchors {
afterTurn: PendingServerRequest[];
byItemId: Record<string, PendingServerRequest[]>;
renderApprovalAnchor: (approval: PendingServerRequest) => React.ReactNode;
}
interface TranscriptApprovalAnchors {
requests: PendingServerRequest[];
renderApprovalAnchor: (approval: PendingServerRequest) => React.ReactNode;
}
type AgentTranscriptDensityMode = "default" | "compact" | "verbose" | "critical-only";
interface AgentTranscriptDensityConfig {
default?: AgentTranscriptDensityMode;
byBlockKind?: Partial<Record<AgentItemBlockKind, AgentTranscriptDensityMode>>;
}
type AgentTranscriptDensity = AgentTranscriptDensityMode | AgentTranscriptDensityConfig;
interface AgentTranscriptPendingState {
status: "failed" | "inProgress";
}
type AgentTranscriptBlock = AgentTranscriptBlockView;
type AgentTranscriptItemStatus = "cancelled" | "completed" | "failed" | "inProgress" | "pending" | "streaming";
interface AgentTranscriptItem {
id: string;
kind: string;
status?: AgentTranscriptItemStatus;
text?: string;
threadId?: string;
turnId?: string;
}
interface AgentTranscriptEntry {
approvals: PendingServerRequest[];
block: AgentTranscriptBlock;
dataKind: string;
density: AgentTranscriptDensityMode;
displayStatus: string;
id: string;
item?: AgentTranscriptItem;
itemId: string;
key: string;
pending?: AgentTranscriptPendingState;
patch?: unknown;
role: "assistant" | "command" | "system" | "tool" | "user";
status: AgentTranscriptItemStatus;
text?: string;
turnId: string;
}
interface AgentTranscriptControllerOptions {
approvalAnchors?: TranscriptApprovalAnchors;
density?: AgentTranscriptDensity;
}
interface AgentTranscriptController {
density: AgentTranscriptDensityMode;
entries: AgentTranscriptEntry[];
entriesByTurnId: Map<string, AgentTranscriptEntry[]>;
hiddenItemCount: number;
showEarlierItems(): void;
threadId?: string;
turnIds: string[];
visibleItemCount: number;
}
declare function useAgentTranscriptController(threadId?: ThreadId, options?: AgentTranscriptControllerOptions): AgentTranscriptController;
type AgentResourceKind = "image" | "file" | "integration" | "url" | "unavailable";
interface AgentResolvedResourceBase {
displayName?: string;
id?: string;
input?: AgentUserInput | AgentUserInput[];
mimeType?: string;
name?: string;
path?: string;
previewUrl?: string;
redactedPath?: string;
reason?: string;
sizeBytes?: number;
url?: string;
}
interface AgentResolvedUrlResource extends AgentResolvedResourceBase {
kind: "url";
}
interface AgentUnavailableResource extends AgentResolvedResourceBase {
kind: "unavailable";
}
type AgentResolvedResource = AgentResolvedUrlResource | AgentUnavailableResource;
interface AgentFileResourceRequest {
file: File;
kind: Extract<AgentResourceKind, "image" | "file">;
source: "file";
}
interface AgentLocalMediaResourceRequest {
item?: AgentItemState;
path: string;
source: "local-media";
}
type AgentResourceRequest = AgentFileResourceRequest | AgentLocalMediaResourceRequest;
type AgentResourceResolution = AgentResolvedResource | null | undefined;
type AgentResourceResolver = (request: AgentResourceRequest) => AgentResourceResolution | Promise<AgentResourceResolution>;
declare function agentResourceUrl(resource: AgentResolvedResourceBase | null | undefined): string | undefined;
declare function agentResourceDisplayName(resource: AgentResolvedResourceBase | null | undefined, fallback?: string): string | undefined;
type AgentLocale = "en" | "ja" | "ko" | "zh-CN" | "es" | "fr";
declare const agentLocales: AgentLocale[];
interface AgentI18nDictionary {
"account.authenticated": string;
"account.authenticating": string;
"account.checking": string;
"account.connecting": string;
"account.cancelLogin": string;
"account.details": string;
"account.email": string;
"account.login": string;
"account.logout": string;
"account.openDeviceLogin": string;
"account.openMenu": string;
"account.plan": string;
"account.status": string;
"account.unauthenticated": string;
"approval.action.approve": string;
"approval.action.approveAria": string;
"approval.action.approveForSession": string;
"approval.action.approveForSessionAria": string;
"approval.action.decline": string;
"approval.action.declineAria": string;
"approval.action.review": string;
"approval.action.reviewAria": string;
"approval.aria.otherPending": string;
"approval.aria.pending": string;
"approval.aria.pendingOne": string;
"approval.count": string;
"approval.kind.attestation": string;
"approval.kind.authRefresh": string;
"approval.kind.command": string;
"approval.kind.dynamicTool": string;
"approval.kind.fileChange": string;
"approval.kind.generic": string;
"approval.kind.mcpInput": string;
"approval.kind.permissions": string;
"approval.kind.userInput": string;
"approval.meta.approvalPolicy": string;
"approval.meta.item": string;
"approval.meta.namespace": string;
"approval.meta.sandbox": string;
"approval.meta.tool": string;
"approval.meta.workingDirectory": string;
"approval.request.command": string;
"approval.request.fileChange": string;
"approval.request.generic": string;
"approval.risk.high": string;
"approval.risk.low": string;
"approval.risk.medium": string;
"approval.riskSuffix": string;
"approval.summary.command": string;
"approval.summary.default": string;
"approval.summary.dynamicTool": string;
"approval.summary.fileChange": string;
"approval.summary.mcpInput": string;
"approval.summary.permissions": string;
"approval.summary.userInput": string;
"aria.actions": string;
"aria.agentContext": string;
"aria.changedFiles": string;
"aria.codeMirrorPatchViewer": string;
"aria.commandOutput": string;
"aria.completedTask": string;
"aria.composerAttachments": string;
"aria.contextUsage": string;
"aria.contextUsageDetails": string;
"aria.criticalStatus": string;
"aria.diffPreview": string;
"aria.dismissThreadHistory": string;
"aria.message": string;
"aria.messageComposer": string;
"aria.openTask": string;
"aria.patchContent": string;
"aria.pendingAttachments": string;
"aria.runControls": string;
"aria.statusDetails": string;
"aria.statusSummary": string;
"aria.threadStartContext": string;
"aria.threads": string;
"aria.tokenUsage": string;
"aria.usageLimits": string;
"aria.usageSummary": string;
"apps.authNeeded": string;
"apps.disabled": string;
"apps.empty": string;
"apps.label": string;
"apps.loadMore": string;
"apps.notInstalled": string;
"apps.unavailable": string;
"common.cancel": string;
"common.close": string;
"common.closeMenu": string;
"common.collapse": string;
"common.default": string;
"common.details": string;
"common.disable": string;
"common.enable": string;
"common.expand": string;
"common.file": string;
"common.files": string;
"common.loading": string;
"common.message": string;
"common.messages": string;
"common.notice": string;
"common.notices": string;
"common.open": string;
"common.refresh": string;
"common.refreshing": string;
"common.serverDefault": string;
"common.syncPending": string;
"common.unknown": string;
"composer.addFollowUp": string;
"composer.attachFile": string;
"composer.attachFiles": string;
"composer.attachedFollowUp": string;
"composer.attachmentRejected": string;
"composer.attachmentRejectedMany": string;
"composer.attachmentRejectedOne": string;
"composer.cannotAcceptFollowUp": string;
"composer.couldNotSendAdditional": string;
"composer.couldNotStart": string;
"composer.couldNotStop": string;
"composer.enterToSend": string;
"composer.dismissFailedMessage": string;
"composer.failedMessageBody": string;
"composer.failedMessages": string;
"composer.failedMessageTitle": string;
"composer.followUpNoActiveTurn": string;
"composer.followUpTurnChanged": string;
"composer.followUpTurnChangedRefresh": string;
"composer.placeholder": string;
"composer.removeAttachment": string;
"composer.resolveApprovalReason": string;
"composer.retryFailedMessage": string;
"composer.send": string;
"composer.sendMessage": string;
"composer.stopCurrentTurn": string;
"context.cachedInput": string;
"context.compactionNotice": string;
"context.contextWindow": string;
"context.input": string;
"context.lastTurn": string;
"context.output": string;
"context.reasoning": string;
"context.title": string;
"context.used": string;
"diagnostics.label": string;
"diagnostics.messageCount": string;
"diagnostics.pluginManifestWarnings": string;
"diagnostics.syncing": string;
"diagnostics.withPluginWarnings": string;
"firstRun.authenticating.body": string;
"firstRun.authenticating.title": string;
"firstRun.bridgeError.body": string;
"firstRun.bridgeError.title": string;
"firstRun.connect.body": string;
"firstRun.connect.cta": string;
"firstRun.connect.title": string;
"firstRun.error": string;
"firstRun.form": string;
"firstRun.placeholder": string;
"firstRun.preparing.body": string;
"firstRun.preparing.cta": string;
"firstRun.preparing.title": string;
"firstRun.startThread": string;
"followUp.attachments": string;
"followUp.attachmentsMany": string;
"followUp.attachmentsOne": string;
"followUp.earlier": string;
"followUp.earlierMany": string;
"followUp.earlierOne": string;
"followUp.earlierQueued": string;
"followUp.edit": string;
"followUp.queued": string;
"followUp.queuedAttachments": string;
"followUp.remove": string;
"followUp.sendNow": string;
"locale.en": string;
"locale.es": string;
"locale.fr": string;
"locale.ja": string;
"locale.ko": string;
"locale.label": string;
"locale.zh-CN": string;
"markdown.completedTask": string;
"markdown.openTask": string;
"run.clearWorkingDirectory": string;
"run.cwd.noRecent": string;
"run.cwd.openFolder": string;
"run.cwd.openFolderAction": string;
"run.cwd.prompt": string;
"run.cwd.recent": string;
"run.cwd.selectFolder": string;
"run.cwd.serverDefault": string;
"run.defaultEffort": string;
"run.defaultModel": string;
"run.effort": string;
"run.effort.high": string;
"run.effort.low": string;
"run.effort.medium": string;
"run.effort.minimal": string;
"run.effort.veryHigh": string;
"run.policy": string;
"run.policy.auto.description": string;
"run.policy.auto.label": string;
"run.policy.full-access.description": string;
"run.policy.full-access.label": string;
"run.policy.read-only.description": string;
"run.policy.read-only.label": string;
"run.policy.review.description": string;
"run.policy.review.label": string;
"run.model": string;
"run.modelAndEffort": string;
"run.modelDefault": string;
"run.noSelectableEffort": string;
"run.serverDefault": string;
"run.workingDirectory": string;
"skills.empty": string;
"skills.label": string;
"status.account": string;
"status.backgroundNotice": string;
"status.configWarning": string;
"status.critical": string;
"status.deprecationNotice": string;
"status.failed": string;
"status.mcpOAuth": string;
"status.modelReroute": string;
"status.rateLimit": string;
"status.title": string;
"status.total": string;
"status.warning": string;
"theme.dark": string;
"theme.label": string;
"theme.light": string;
"theme.system": string;
"thread.action.archive": string;
"thread.action.compact": string;
"thread.action.fork": string;
"thread.action.rename": string;
"thread.action.rollback": string;
"thread.action.unarchive": string;
"thread.closeHistory": string;
"thread.codexSession": string;
"thread.collapseHistory": string;
"thread.empty": string;
"thread.ephemeralSession": string;
"thread.expandHistory": string;
"thread.history": string;
"thread.namePrompt": string;
"thread.new": string;
"thread.noThreadsFound": string;
"thread.openHistory": string;
"thread.search": string;
"thread.searchHistory": string;
"thread.status.complete": string;
"thread.status.failed": string;
"thread.status.needsAttention": string;
"thread.status.needsApproval": string;
"thread.status.needsAttestation": string;
"thread.status.needsAuthentication": string;
"thread.status.needsInput": string;
"thread.status.needsMcpInput": string;
"thread.status.needsPermission": string;
"thread.status.preview": string;
"thread.status.ready": string;
"thread.status.running": string;
"thread.status.stored": string;
"thread.threadCount": string;
"thread.untitled": string;
"timeline.agentTool": string;
"timeline.arguments": string;
"timeline.argumentsPreview": string;
"timeline.assistant": string;
"timeline.collab": string;
"timeline.collabTool": string;
"timeline.command": string;
"timeline.compaction": string;
"timeline.diff": string;
"timeline.earlierHidden": string;
"timeline.error": string;
"timeline.exitCode": string;
"timeline.file": string;
"timeline.fileChange": string;
"timeline.fileChanges": string;
"timeline.files": string;
"timeline.filesChanged": string;
"timeline.from": string;
"timeline.image": string;
"timeline.imageGenerated": string;
"timeline.localMediaUnavailable": string;
"timeline.item": string;
"timeline.items": string;
"timeline.jumpToPendingApproval": string;
"timeline.jumpToLatest": string;
"timeline.lines": string;
"timeline.mcpTool": string;
"timeline.noPatch": string;
"timeline.noTerminalOutput": string;
"timeline.output": string;
"timeline.plan": string;
"timeline.reasoning": string;
"timeline.result": string;
"timeline.resultCaptured": string;
"timeline.resultItems": string;
"timeline.search": string;
"timeline.showEarlier": string;
"timeline.system": string;
"timeline.terminal": string;
"timeline.thinking": string;
"timeline.thread": string;
"timeline.to": string;
"timeline.tool": string;
"timeline.toolCall": string;
"timeline.unknownTool": string;
"timeline.webSearch": string;
"timeline.you": string;
"usage.empty": string;
"usage.inputOutput": string;
"usage.label": string;
"usage.limits": string;
"usage.meterLabel": string;
"usage.namedWindow": string;
"usage.resetAt": string;
"usage.hourWindow": string;
"usage.tokens": string;
"usage.title": string;
"usage.weeklyWindow": string;
}
type AgentI18nKey = keyof AgentI18nDictionary;
type AgentI18nMessages = Partial<AgentI18nDictionary>;
interface AgentI18nValue {
locale: AgentLocale;
t: (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
}
interface AgentI18nProviderProps extends PropsWithChildren {
locale?: AgentLocale | string;
messages?: AgentI18nMessages;
}
declare function AgentI18nProvider({ children, locale, messages, }: AgentI18nProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentI18n(): AgentI18nValue;
declare function interpolate(template: string, vars: Record<string, string | number> | undefined): string;
declare function interpolationVariables(template: string): string[];
declare const agentI18nDictionaries: Record<AgentLocale, AgentI18nDictionary>;
declare function normalizeAgentLocale(locale?: AgentLocale | string): AgentLocale;
export { type AgentReasoningSummary as $, type AgentI18nDictionary as A, type AgentUnavailableResource as B, type AgentUnknownUserInput as C, type AgentUserInput as D, type TranscriptApprovalAnchors as E, agentResourceDisplayName as F, agentResourceUrl as G, type AgentTranscriptItem as H, type AgentTranscriptBlock as I, type AgentTranscriptDensity as J, type AgentTranscriptEntry as K, type ApprovalAnchors as L, useAgentBootstrap as M, type ThreadStartOptions as N, type AgentAppsRefreshOptions as O, type AgentHooksRefreshOptions as P, type AgentSkillsRefreshOptions as Q, type AgentSkillConfigWriteOptions as R, type ThreadResumeOptions as S, type TurnStartOptions as T, type ThreadForkOptions as U, type ThreadHistoryParams as V, type AgentApprovalPolicy as W, type AgentApprovalsReviewer as X, type AgentBootstrapState as Y, type AgentJsonValue as Z, type AgentPersonality as _, type AgentI18nKey as a, type AgentSandboxMode as a0, type AgentSandboxPolicy as a1, type AgentSortDirection as a2, type AgentThreadConfigOptions as a3, type AgentThreadSortKey as a4, type AgentThreadSource as a5, type AgentThreadSourceKind as a6, type AgentThreadStartSource as a7, type AgentTranscriptController as a8, type AgentTranscriptControllerOptions as a9, type AgentTranscriptDensityConfig as aa, type AgentTranscriptDensityMode as ab, type AgentTranscriptPendingState as ac, useAgentAccount as ad, useAgentTranscriptController as ae, type AgentI18nMessages as b, AgentI18nProvider as c, type AgentI18nProviderProps as d, type AgentI18nValue as e, type AgentLocale as f, agentI18nDictionaries as g, agentLocales as h, interpolate as i, interpolationVariables as j, type AgentFileResourceRequest as k, type AgentImageInput as l, type AgentLocalImageInput as m, normalizeAgentLocale as n, type AgentLocalMediaResourceRequest as o, type AgentMentionInput as p, type AgentResolvedResource as q, type AgentResolvedResourceBase as r, type AgentResolvedUrlResource as s, type AgentResourceKind as t, useAgentI18n as u, type AgentResourceRequest as v, type AgentResourceResolution as w, type AgentResourceResolver as x, type AgentSkillInput as y, type AgentTextInput as z };
import * as react_jsx_runtime from 'react/jsx-runtime';
import { AgentRunPolicyId, AgentEvent, AgentSessionState, AgentTransport } from '@nyosegawa/agent-ui-core';
import { T as TurnStartOptions } from './normalize-D33s7i8-.cjs';
import { PropsWithChildren } from 'react';
interface AgentRunPolicy {
id: AgentRunPolicyId;
label: string;
description: string;
turnOptions: TurnStartOptions;
}
declare const AGENT_FULL_ACCESS_RUN_POLICY: AgentRunPolicy;
declare const DEFAULT_AGENT_RUN_POLICIES: readonly AgentRunPolicy[];
declare function effectiveAgentRunPolicies(policies: readonly AgentRunPolicy[] | undefined): readonly AgentRunPolicy[];
declare function resolvedAgentRunPolicyId(policyId: AgentRunPolicyId | undefined, policies: readonly AgentRunPolicy[]): AgentRunPolicyId | undefined;
declare function agentRunPolicyTurnOptions(policyId: AgentRunPolicyId | undefined, policies?: readonly AgentRunPolicy[]): TurnStartOptions | undefined;
interface AgentContextValue {
dispatch: (event: AgentEvent) => void;
runPolicies: readonly AgentRunPolicy[];
state: AgentSessionState;
transport: AgentTransport;
}
interface AgentProviderProps extends PropsWithChildren {
defaultRunPolicyId?: AgentRunPolicyId;
initialState?: AgentSessionState;
runPolicies?: readonly AgentRunPolicy[];
transport: AgentTransport;
}
declare function AgentProvider({ children, defaultRunPolicyId, initialState, runPolicies, transport, }: AgentProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentContext(): AgentContextValue;
declare function useAgentAction<TArgs extends unknown[], TResult>(action: (...args: TArgs) => Promise<TResult>): (...args: TArgs) => Promise<TResult>;
export { AgentProvider as A, DEFAULT_AGENT_RUN_POLICIES as D, type AgentProviderProps as a, type AgentRunPolicy as b, AGENT_FULL_ACCESS_RUN_POLICY as c, type AgentContextValue as d, agentRunPolicyTurnOptions as e, effectiveAgentRunPolicies as f, useAgentContext as g, resolvedAgentRunPolicyId as r, useAgentAction as u };
import * as react_jsx_runtime from 'react/jsx-runtime';
import { AgentRunPolicyId, AgentEvent, AgentSessionState, AgentTransport } from '@nyosegawa/agent-ui-core';
import { T as TurnStartOptions } from './normalize-D33s7i8-.js';
import { PropsWithChildren } from 'react';
interface AgentRunPolicy {
id: AgentRunPolicyId;
label: string;
description: string;
turnOptions: TurnStartOptions;
}
declare const AGENT_FULL_ACCESS_RUN_POLICY: AgentRunPolicy;
declare const DEFAULT_AGENT_RUN_POLICIES: readonly AgentRunPolicy[];
declare function effectiveAgentRunPolicies(policies: readonly AgentRunPolicy[] | undefined): readonly AgentRunPolicy[];
declare function resolvedAgentRunPolicyId(policyId: AgentRunPolicyId | undefined, policies: readonly AgentRunPolicy[]): AgentRunPolicyId | undefined;
declare function agentRunPolicyTurnOptions(policyId: AgentRunPolicyId | undefined, policies?: readonly AgentRunPolicy[]): TurnStartOptions | undefined;
interface AgentContextValue {
dispatch: (event: AgentEvent) => void;
runPolicies: readonly AgentRunPolicy[];
state: AgentSessionState;
transport: AgentTransport;
}
interface AgentProviderProps extends PropsWithChildren {
defaultRunPolicyId?: AgentRunPolicyId;
initialState?: AgentSessionState;
runPolicies?: readonly AgentRunPolicy[];
transport: AgentTransport;
}
declare function AgentProvider({ children, defaultRunPolicyId, initialState, runPolicies, transport, }: AgentProviderProps): react_jsx_runtime.JSX.Element;
declare function useAgentContext(): AgentContextValue;
declare function useAgentAction<TArgs extends unknown[], TResult>(action: (...args: TArgs) => Promise<TResult>): (...args: TArgs) => Promise<TResult>;
export { AgentProvider as A, DEFAULT_AGENT_RUN_POLICIES as D, type AgentProviderProps as a, type AgentRunPolicy as b, AGENT_FULL_ACCESS_RUN_POLICY as c, type AgentContextValue as d, agentRunPolicyTurnOptions as e, effectiveAgentRunPolicies as f, useAgentContext as g, resolvedAgentRunPolicyId as r, useAgentAction as u };
import { a as AgentI18nKey } from './normalize-D33s7i8-.cjs';
interface UsageWindow {
id: string;
label: string;
percent: number;
resetLabel?: string;
valueLabel: string;
}
type UsageTranslator = (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
declare function normalizeUsageWindows(rateLimits: unknown, t?: UsageTranslator): UsageWindow[];
export { type UsageWindow as U, normalizeUsageWindows as n };
import { a as AgentI18nKey } from './normalize-D33s7i8-.js';
interface UsageWindow {
id: string;
label: string;
percent: number;
resetLabel?: string;
valueLabel: string;
}
type UsageTranslator = (key: AgentI18nKey, vars?: Record<string, string | number>) => string;
declare function normalizeUsageWindows(rateLimits: unknown, t?: UsageTranslator): UsageWindow[];
export { type UsageWindow as U, normalizeUsageWindows as n };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display