@nyosegawa/agent-ui-react
Advanced tools
@@ -6,3 +6,3 @@ import { b as AgentRunPolicy } from './provider-DlkLBSuQ.cjs'; | ||
| import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core'; | ||
| import { AgentApp, ThreadId, ThreadStatus, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadView, AgentThreadTranscriptView, AgentThreadScope, AgentThreadCollection } from '@nyosegawa/agent-ui-core'; | ||
| import { AgentApp, ThreadId, ThreadStatus, AgentThreadWaitingReason, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadView, AgentThreadTranscriptView, AgentThreadScope, AgentThreadCollection } from '@nyosegawa/agent-ui-core'; | ||
| export { AgentRunPolicyId } from '@nyosegawa/agent-ui-core'; | ||
@@ -83,2 +83,3 @@ import React, { Dispatch, SetStateAction } from 'react'; | ||
| threadId: ThreadId; | ||
| waitingReasons?: AgentThreadWaitingReason[]; | ||
| } | ||
@@ -185,2 +186,3 @@ type AgentThreadActivity = "failed" | "idle" | "running" | "waitingForInput"; | ||
| type AgentComposerDisabledReason = "approval" | "empty" | "interrupting" | "submitting"; | ||
| type AgentComposerBlockedReason = AgentThreadWaitingReason; | ||
| interface AgentComposerFailedPendingMessage { | ||
@@ -206,3 +208,3 @@ error?: string; | ||
| } | { | ||
| reason: Extract<AgentComposerDisabledReason, "approval">; | ||
| reason: AgentComposerBlockedReason; | ||
| threadId?: string; | ||
@@ -340,2 +342,2 @@ type: "blocked"; | ||
| 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 }; | ||
| export { AgentApprovalDecision, AgentApprovalRequest, AgentAppsRefreshOptions, type AgentChatController, type AgentComposerBlockedReason, 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 }; |
@@ -6,3 +6,3 @@ import { b as AgentRunPolicy } from './provider-DVRynjZv.js'; | ||
| import * as _nyosegawa_agent_ui_core from '@nyosegawa/agent-ui-core'; | ||
| import { AgentApp, ThreadId, ThreadStatus, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadView, AgentThreadTranscriptView, AgentThreadScope, AgentThreadCollection } from '@nyosegawa/agent-ui-core'; | ||
| import { AgentApp, ThreadId, ThreadStatus, AgentThreadWaitingReason, AgentModel, RequestId, AgentError, ReasoningEffort, AgentRunPolicyId, AgentThreadView, AgentThreadTranscriptView, AgentThreadScope, AgentThreadCollection } from '@nyosegawa/agent-ui-core'; | ||
| export { AgentRunPolicyId } from '@nyosegawa/agent-ui-core'; | ||
@@ -83,2 +83,3 @@ import React, { Dispatch, SetStateAction } from 'react'; | ||
| threadId: ThreadId; | ||
| waitingReasons?: AgentThreadWaitingReason[]; | ||
| } | ||
@@ -185,2 +186,3 @@ type AgentThreadActivity = "failed" | "idle" | "running" | "waitingForInput"; | ||
| type AgentComposerDisabledReason = "approval" | "empty" | "interrupting" | "submitting"; | ||
| type AgentComposerBlockedReason = AgentThreadWaitingReason; | ||
| interface AgentComposerFailedPendingMessage { | ||
@@ -206,3 +208,3 @@ error?: string; | ||
| } | { | ||
| reason: Extract<AgentComposerDisabledReason, "approval">; | ||
| reason: AgentComposerBlockedReason; | ||
| threadId?: string; | ||
@@ -340,2 +342,2 @@ type: "blocked"; | ||
| 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 }; | ||
| export { AgentApprovalDecision, AgentApprovalRequest, AgentAppsRefreshOptions, type AgentChatController, type AgentComposerBlockedReason, 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 }; |
+3
-3
| { | ||
| "name": "@nyosegawa/agent-ui-react", | ||
| "version": "3.0.0", | ||
| "version": "3.1.0", | ||
| "description": "React hooks and components for Agent UI.", | ||
@@ -76,4 +76,4 @@ "license": "MIT", | ||
| "@codemirror/view": "^6.42.1", | ||
| "@nyosegawa/agent-ui-codex": "^3.0.0", | ||
| "@nyosegawa/agent-ui-core": "^3.0.0" | ||
| "@nyosegawa/agent-ui-codex": "^3.1.0", | ||
| "@nyosegawa/agent-ui-core": "^3.1.0" | ||
| }, | ||
@@ -80,0 +80,0 @@ "peerDependencies": { |
+11
-1
@@ -20,2 +20,12 @@ # @nyosegawa/agent-ui-react | ||
| ## Common Imports | ||
| | Use case | Import | | ||
| | --- | --- | | ||
| | Default provider and chat preset | `import { AgentProvider, AgentChat } from "@nyosegawa/agent-ui-react";` | | ||
| | Preset replacement map and defaults | `import { defaultAgentComponents, type AgentComponents } from "@nyosegawa/agent-ui-react";` | | ||
| | Visual building blocks | `import { AgentThreadView, AgentComposer } from "@nyosegawa/agent-ui-react/primitives";` | | ||
| | Host-owned controllers | `import { useAgentChatController } from "@nyosegawa/agent-ui-react/headless";` | | ||
| | Bundled stylesheet | `import "@nyosegawa/agent-ui-react/styles.css";` | | ||
| ## Package Boundary | ||
@@ -34,3 +44,3 @@ | ||
| Customize the preset through public props, the `components` map, primitives, | ||
| Customize the preset through public props, the `components` prop, primitives, | ||
| headless controllers, and tokens. Import | ||
@@ -37,0 +47,0 @@ `@nyosegawa/agent-ui-react/styles.css` once; do not depend on private style |
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
5468990
0.82%51936
0.85%51
24.39%