@truefoundry/trueforge-ui 0.3.0-rc.2 → 0.3.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +17 -9
- package/dist/{AgentCodeSnippets-637HQUXD.js → AgentCodeSnippets-N546FNNS.js} +38 -23
- package/dist/AgentCodeSnippets-N546FNNS.js.map +1 -0
- package/dist/AgentMetricChart-YWJYVYYA.js +15 -0
- package/dist/{AgentOverview-3FJ5EE6N.js → AgentOverview-VF74XC7I.js} +7 -7
- package/dist/{AgentSessionEventTimeline-VELWUYPR.js → AgentSessionEventTimeline-RFR6LQMY.js} +8 -8
- package/dist/{AgentSessionEventTimeline-VELWUYPR.js.map → AgentSessionEventTimeline-RFR6LQMY.js.map} +1 -1
- package/dist/{AgentSessionEventTimelineChart-CUKETHWM.js → AgentSessionEventTimelineChart-27CQF6FX.js} +12 -12
- package/dist/AgentSessionEventTimelineChart-27CQF6FX.js.map +1 -0
- package/dist/{AgentSessions-T7MOGOTZ.js → AgentSessions-4IVX2SGD.js} +36 -12
- package/dist/AgentSessions-4IVX2SGD.js.map +1 -0
- package/dist/{ConnectorSettings-ESZ2RSRG.js → ConnectorSettings-R5VEP7BO.js} +156 -116
- package/dist/ConnectorSettings-R5VEP7BO.js.map +1 -0
- package/dist/{DockLayout-NLFNU6F2.js → DockLayout-F44RWGEY.js} +10 -10
- package/dist/{DrawerLayout-PR3SMKA6.js → DrawerLayout-SQ323AVM.js} +13 -11
- package/dist/DrawerLayout-SQ323AVM.js.map +1 -0
- package/dist/{ModelSettings-LYW64IRR.js → ModelSettings-6QLS63HM.js} +10 -10
- package/dist/{ModelSettings-LYW64IRR.js.map → ModelSettings-6QLS63HM.js.map} +1 -1
- package/dist/OpenUiFenceBlock-4ROX3G4X.js +9 -0
- package/dist/{SandboxSettings-DF64LHYI.js → SandboxSettings-OLKDXIQS.js} +9 -9
- package/dist/SchedulesPage-TMOTK6DR.js +15 -0
- package/dist/{SettingsBuilder-LSXK2VN4.js → SettingsBuilder-GISAH2WU.js} +8 -8
- package/dist/{ShellRouteSync-B22IAV2W.js → ShellRouteSync-EN33DUQ7.js} +157 -22
- package/dist/ShellRouteSync-EN33DUQ7.js.map +1 -0
- package/dist/{SidebarLayout-XW6LXB7R.js → SidebarLayout-35K4AKTC.js} +74 -53
- package/dist/SidebarLayout-35K4AKTC.js.map +1 -0
- package/dist/{SkillSettings-64VXUO6J.js → SkillSettings-JSX2BTII.js} +18 -13
- package/dist/SkillSettings-JSX2BTII.js.map +1 -0
- package/dist/{TrueForgeUIWithRouter-3TSLV22Q.js → TrueForgeUIWithRouter-6VCR7ES3.js} +9 -9
- package/dist/{WidgetLayout-Q5P7PYSJ.js → WidgetLayout-RKBSN2FZ.js} +10 -10
- package/dist/{chunk-YQO2NMJ3.js → chunk-2O5EJ6QS.js} +4096 -2825
- package/dist/chunk-2O5EJ6QS.js.map +1 -0
- package/dist/chunk-6WCIL3H2.js +517 -0
- package/dist/chunk-6WCIL3H2.js.map +1 -0
- package/dist/{chunk-SQGT43Z3.js → chunk-73FQVITT.js} +21 -4
- package/dist/chunk-73FQVITT.js.map +1 -0
- package/dist/{chunk-QC42MLAK.js → chunk-7AAO4UDQ.js} +4 -3
- package/dist/chunk-7AAO4UDQ.js.map +1 -0
- package/dist/{chunk-LGRHHFHN.js → chunk-F5QVQIBH.js} +166 -45
- package/dist/chunk-F5QVQIBH.js.map +1 -0
- package/dist/{chunk-I3AL54MA.js → chunk-GIPFF6FZ.js} +28 -24
- package/dist/chunk-GIPFF6FZ.js.map +1 -0
- package/dist/{chunk-GXYAOAK5.js → chunk-GSJAYYLR.js} +219 -162
- package/dist/chunk-GSJAYYLR.js.map +1 -0
- package/dist/{chunk-VJ7BZGAF.js → chunk-J5BPHEDT.js} +2 -2
- package/dist/chunk-KR7WYHVF.js +195 -0
- package/dist/chunk-KR7WYHVF.js.map +1 -0
- package/dist/{chunk-VUMGMGKZ.js → chunk-LUG7E6BL.js} +52 -8
- package/dist/chunk-LUG7E6BL.js.map +1 -0
- package/dist/chunk-LXJMINS6.js +587 -0
- package/dist/chunk-LXJMINS6.js.map +1 -0
- package/dist/{chunk-FQK2XVVE.js → chunk-PT4EENB3.js} +224 -72
- package/dist/chunk-PT4EENB3.js.map +1 -0
- package/dist/{chunk-H6WTY5PM.js → chunk-Q6TCT7ZJ.js} +17 -227
- package/dist/chunk-Q6TCT7ZJ.js.map +1 -0
- package/dist/{chunk-5I2COQNL.js → chunk-XLFOXQKZ.js} +13 -11
- package/dist/chunk-XLFOXQKZ.js.map +1 -0
- package/dist/{chunk-G2TUAD65.js → chunk-XY6LZQES.js} +235 -108
- package/dist/chunk-XY6LZQES.js.map +1 -0
- package/dist/{createTrueFoundryServer-CmZnBh_l.d.ts → createTrueFoundryServer-B_FYhSdn.d.ts} +8 -5
- package/dist/index.d.ts +291 -89
- package/dist/index.js +63 -488
- package/dist/index.js.map +1 -1
- package/dist/plugins/trueforge-agent-server-adapter/index.d.ts +36 -13
- package/dist/plugins/trueforge-agent-server-adapter/index.js +69 -35
- package/dist/plugins/trueforge-agent-server-adapter/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/dist/AgentCodeSnippets-637HQUXD.js.map +0 -1
- package/dist/AgentMetricChart-4FYECRIN.js +0 -15
- package/dist/AgentSessionEventTimelineChart-CUKETHWM.js.map +0 -1
- package/dist/AgentSessions-T7MOGOTZ.js.map +0 -1
- package/dist/ConnectorSettings-ESZ2RSRG.js.map +0 -1
- package/dist/DrawerLayout-PR3SMKA6.js.map +0 -1
- package/dist/OpenUiFenceBlock-JEPNPJ7U.js +0 -9
- package/dist/SchedulesPage-WQU4H25F.js +0 -15
- package/dist/ShellRouteSync-B22IAV2W.js.map +0 -1
- package/dist/SidebarLayout-XW6LXB7R.js.map +0 -1
- package/dist/SkillSettings-64VXUO6J.js.map +0 -1
- package/dist/chunk-5I2COQNL.js.map +0 -1
- package/dist/chunk-BWHOZFIV.js +0 -587
- package/dist/chunk-BWHOZFIV.js.map +0 -1
- package/dist/chunk-FQK2XVVE.js.map +0 -1
- package/dist/chunk-G2TUAD65.js.map +0 -1
- package/dist/chunk-GXYAOAK5.js.map +0 -1
- package/dist/chunk-H6WTY5PM.js.map +0 -1
- package/dist/chunk-I3AL54MA.js.map +0 -1
- package/dist/chunk-LGRHHFHN.js.map +0 -1
- package/dist/chunk-NHHSZB5N.js +0 -74
- package/dist/chunk-NHHSZB5N.js.map +0 -1
- package/dist/chunk-QC42MLAK.js.map +0 -1
- package/dist/chunk-SFZNIO6U.js +0 -18
- package/dist/chunk-SFZNIO6U.js.map +0 -1
- package/dist/chunk-SQGT43Z3.js.map +0 -1
- package/dist/chunk-VUMGMGKZ.js.map +0 -1
- package/dist/chunk-YQO2NMJ3.js.map +0 -1
- /package/dist/{AgentMetricChart-4FYECRIN.js.map → AgentMetricChart-YWJYVYYA.js.map} +0 -0
- /package/dist/{AgentOverview-3FJ5EE6N.js.map → AgentOverview-VF74XC7I.js.map} +0 -0
- /package/dist/{DockLayout-NLFNU6F2.js.map → DockLayout-F44RWGEY.js.map} +0 -0
- /package/dist/{OpenUiFenceBlock-JEPNPJ7U.js.map → OpenUiFenceBlock-4ROX3G4X.js.map} +0 -0
- /package/dist/{SandboxSettings-DF64LHYI.js.map → SandboxSettings-OLKDXIQS.js.map} +0 -0
- /package/dist/{SchedulesPage-WQU4H25F.js.map → SchedulesPage-TMOTK6DR.js.map} +0 -0
- /package/dist/{SettingsBuilder-LSXK2VN4.js.map → SettingsBuilder-GISAH2WU.js.map} +0 -0
- /package/dist/{TrueForgeUIWithRouter-3TSLV22Q.js.map → TrueForgeUIWithRouter-6VCR7ES3.js.map} +0 -0
- /package/dist/{WidgetLayout-Q5P7PYSJ.js.map → WidgetLayout-RKBSN2FZ.js.map} +0 -0
- /package/dist/{chunk-VJ7BZGAF.js.map → chunk-J5BPHEDT.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { CSSProperties, ReactNode, FC, SVGProps, ComponentType, ComponentPropsWithRef, ComponentProps, HTMLAttributes, ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
2
|
+
import react__default, { CSSProperties, ReactNode, FC, SVGProps, ComponentType, ComponentPropsWithRef, ComponentProps, HTMLAttributes, ReactElement, MouseEventHandler, ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
|
-
import { SessionEventItem, AgentDetail, AgentMetricMeter, AgentMetricChartDefinition, AgentMetricGraph, CodeSnippet, AgentLibraryEntry, AgentSpec, ModelSelection, ConnectorState, AgentSkill, McpToolSelection, AgentRuntimeConfig, Schedule, ScheduleRun, ScheduleStatus, CatalogServer, AgentUIServer, AgentMetricsServer, AgentSessionsServer, ScheduleServer, AgentBuilderCapabilitiesResponse } from '@truefoundry/assistant-ui-runtime/server';
|
|
5
|
-
export { AgentBuilderCapabilitiesResponse, AgentBuilderServer, AgentChatServer, AgentDetail, AgentLibraryEntry, AgentMetricChartData, AgentMetricChartDataRequest, AgentMetricChartDefinition, AgentMetricChartType, AgentMetricGraph, AgentMetricGraphLine, AgentMetricMeter, AgentMetricPoint, AgentMetricRangeRequest, AgentMetricsServer, AgentSessionsServer, AgentSkill, AgentSpec, AgentUIServer, ApprovalDecision, AuthenticateConnectorRequest, CatalogServer, CodeSnippet, CodeSnippetSampleCode, ConnectorAuth, ConnectorAuthApiKey, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthPublic, ConnectorAuthPublicApiKey, ConnectorAuthPublicNone, ConnectorAuthPublicOAuth, ConnectorAuthType, ConnectorAuthenticationResult, ConnectorBase, ConnectorCatalogEntry, ConnectorCatalogServer, ConnectorConfigBase, ConnectorState, CreateConnectorRequest, CreateModelProviderRequest, CreateSandboxProviderRequest, CreateSessionRequest, CreateSkillRequest, CreateSkillRequestBase, DefinedSkill, GithubSkill, ImportGithubSkillRequest, ListResult, ListSessionEventsParams, ListSessionsOrder, ListSessionsParams, McpServerMount, Model, ModelCatalogServer, ModelEntry, ModelParams, ModelProperties, ModelProviderBase, ModelProviderCatalogEntry, ModelProviderConfigBase, ModelSelection, ModelSelectorEntry, PageParams, PreviousTurnIdInput, ProviderEntry, ProviderType, RegistrySkill, SandboxCatalogServer, SandboxProviderBase, SandboxProviderCatalogEntry, SandboxProviderConfig, SandboxProviderListEntry, SandboxSnapshotSyncStatus, SaveAgentRequest, SaveAgentResult, SearchAgentsParams, SelectRegistrySkillRequest, Session, SessionEventItem, SessionListEntry, SessionListMetrics, SkillBase, SkillCatalogEntry, SkillCatalogServer, SkillConfigBase, SkillMount, ToolBase, Turn, TurnDoneMetrics, TurnInputItem, TurnState, TurnStreamData, TurnStreamingEvent, UpdateConnectorRequest, UpdateModelProviderRequest, UpdateSandboxProviderRequest, UpdateSessionRequest, UserMessage, UserMessageContent, UserToolApprovalEvent, UserToolResponseEvent } from '@truefoundry/assistant-ui-runtime/server';
|
|
4
|
+
import { SessionEventItem, AgentDetail, AgentMetricMeter, AgentMetricChartDefinition, AgentMetricGraph, CodeSnippet, AgentLibraryEntry, AgentSpec, ModelSelection, ConnectorState, AgentSkill, McpToolSelection, AgentRuntimeConfig, Schedule, ScheduleRun, ScheduleStatus, CatalogServer, PermissionsServer, AgentUIServer, PermissionResourceType, ResourcePermission, AgentMetricsServer, AgentSessionsServer, ScheduleServer, AgentBuilderCapabilitiesResponse } from '@truefoundry/assistant-ui-runtime/server';
|
|
5
|
+
export { AgentBuilderCapabilitiesResponse, AgentBuilderServer, AgentChatServer, AgentDetail, AgentLibraryEntry, AgentMetricChartData, AgentMetricChartDataRequest, AgentMetricChartDefinition, AgentMetricChartType, AgentMetricGraph, AgentMetricGraphLine, AgentMetricMeter, AgentMetricPoint, AgentMetricRangeRequest, AgentMetricsServer, AgentSessionsServer, AgentSkill, AgentSpec, AgentUIServer, ApprovalDecision, AuthenticateConnectorRequest, CatalogServer, CodeSnippet, CodeSnippetSampleCode, ConnectorAuth, ConnectorAuthApiKey, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthPublic, ConnectorAuthPublicApiKey, ConnectorAuthPublicNone, ConnectorAuthPublicOAuth, ConnectorAuthType, ConnectorAuthenticationResult, ConnectorBase, ConnectorCatalogEntry, ConnectorCatalogServer, ConnectorConfigBase, ConnectorState, CreateConnectorRequest, CreateModelProviderRequest, CreateSandboxProviderRequest, CreateSessionRequest, CreateSkillRequest, CreateSkillRequestBase, DefinedSkill, GithubSkill, ImportGithubSkillRequest, ListPermissionsRequest, ListPermissionsResponse, ListResult, ListSessionEventsParams, ListSessionsOrder, ListSessionsParams, McpServerMount, Model, ModelCatalogServer, ModelEntry, ModelParams, ModelProperties, ModelProviderBase, ModelProviderCatalogEntry, ModelProviderConfigBase, ModelSelection, ModelSelectorEntry, PageParams, PermissionResourceType, PermissionsServer, PreviousTurnIdInput, ProviderEntry, ProviderType, RegistrySkill, ResourcePermission, SandboxCatalogServer, SandboxProviderBase, SandboxProviderCatalogEntry, SandboxProviderConfig, SandboxProviderListEntry, SandboxSnapshotSyncStatus, SaveAgentRequest, SaveAgentResult, SearchAgentsParams, SelectRegistrySkillRequest, Session, SessionEventItem, SessionListEntry, SessionListMetrics, SkillBase, SkillCatalogEntry, SkillCatalogServer, SkillConfigBase, SkillMount, ToolBase, Turn, TurnDoneMetrics, TurnInputItem, TurnState, TurnStreamData, TurnStreamingEvent, UpdateConnectorRequest, UpdateModelProviderRequest, UpdateSandboxProviderRequest, UpdateSessionRequest, UserMessage, UserMessageContent, UserToolApprovalEvent, UserToolResponseEvent } from '@truefoundry/assistant-ui-runtime/server';
|
|
6
6
|
import { TrueForgeApi } from '@truefoundry/trueforge-sdk';
|
|
7
7
|
import { MessagePrimitive, ToolCallMessagePartComponent } from '@assistant-ui/react';
|
|
8
8
|
export { AssistantState, useAui, useAuiState } from '@assistant-ui/react';
|
|
9
9
|
import { UseTrueFoundryAgentRuntimeOptions, TrueFoundryAgentConfig } from '@truefoundry/assistant-ui-runtime';
|
|
10
|
-
export { DraftAgentConfig, NamedAgentConfig, TrueFoundryAgentConfig, UseTrueFoundryAgentRuntimeOptions, mergeAgentSpec, trueFoundryAttachmentAdapter, useTrueFoundryAgentRuntime, useTrueFoundryAgentSpec, useTrueFoundryCancel, useTrueFoundryDownloadSandboxFile, useTrueFoundryHistoryPagination, useTrueFoundryMcpAuth, useTrueFoundryRespondToToolApproval, useTrueFoundryToolResponses, useTrueFoundryTurnId, useTrueFoundryUpdateAgentSpec } from '@truefoundry/assistant-ui-runtime';
|
|
11
|
-
export { C as CreateTrueFoundryServerOptions, T as TrueFoundryServer, c as createTrueFoundryServer } from './createTrueFoundryServer-
|
|
10
|
+
export { DraftAgentConfig, NamedAgentConfig, TrueFoundryAgentConfig, UseTrueFoundryAgentRuntimeOptions, mergeAgentSpec, trueFoundryAttachmentAdapter, useTrueFoundryAgentRuntime, useTrueFoundryAgentSpec, useTrueFoundryApprovals, useTrueFoundryCancel, useTrueFoundryDownloadSandboxFile, useTrueFoundryHistoryPagination, useTrueFoundryMcpAuth, useTrueFoundryRespondToToolApproval, useTrueFoundryToolResponses, useTrueFoundryTurnId, useTrueFoundryUpdateAgentSpec } from '@truefoundry/assistant-ui-runtime';
|
|
11
|
+
export { C as CreateTrueFoundryServerOptions, T as TrueFoundryServer, c as createTrueFoundryServer } from './createTrueFoundryServer-B_FYhSdn.js';
|
|
12
12
|
import { PartState } from '@assistant-ui/core/react';
|
|
13
13
|
|
|
14
14
|
type ThemeMode = 'light' | 'dark' | 'system';
|
|
@@ -460,7 +460,7 @@ type SessionMetrics = {
|
|
|
460
460
|
toolCallFrequency: SessionMetricBarDatum[];
|
|
461
461
|
};
|
|
462
462
|
|
|
463
|
-
type LibraryAgentTab = 'overview' | 'sessions' | 'code' | 'metrics';
|
|
463
|
+
type LibraryAgentTab = 'overview' | 'sessions' | 'schedules' | 'code' | 'metrics';
|
|
464
464
|
type SessionTimeRange = {
|
|
465
465
|
startTs: number;
|
|
466
466
|
endTs: number;
|
|
@@ -478,6 +478,7 @@ type AgentSessionsProps = {
|
|
|
478
478
|
type AgentSessionListRowProps = {
|
|
479
479
|
title: string;
|
|
480
480
|
agentName?: string;
|
|
481
|
+
sourceType?: 'schedule';
|
|
481
482
|
lastActivityAt: string;
|
|
482
483
|
metrics: {
|
|
483
484
|
totalTurns: number;
|
|
@@ -503,6 +504,8 @@ type AgentSessionDetailHeaderProps = {
|
|
|
503
504
|
onResume?: () => void;
|
|
504
505
|
/** Label for the resume action. */
|
|
505
506
|
resumeLabel?: string;
|
|
507
|
+
/** Whether the current user may resume this session. */
|
|
508
|
+
canResume?: boolean;
|
|
506
509
|
};
|
|
507
510
|
type AgentSessionTurnHeaderProps = {
|
|
508
511
|
turnNumber: number;
|
|
@@ -540,6 +543,7 @@ type AgentDetailsTabsProps = {
|
|
|
540
543
|
activeTab: AgentDetailsTab;
|
|
541
544
|
onTabChange: (tab: AgentDetailsTab) => void;
|
|
542
545
|
showMetrics?: boolean;
|
|
546
|
+
showSchedules?: boolean;
|
|
543
547
|
};
|
|
544
548
|
type AgentMetricsProps = {
|
|
545
549
|
agentId: string;
|
|
@@ -569,6 +573,7 @@ type AgentMetricChartProps = {
|
|
|
569
573
|
graph?: AgentMetricGraph;
|
|
570
574
|
definition: AgentMetricChartDefinition;
|
|
571
575
|
error?: string;
|
|
576
|
+
colorIndex?: number;
|
|
572
577
|
};
|
|
573
578
|
type AgentOverviewProps = {
|
|
574
579
|
detail: AgentDetail;
|
|
@@ -612,7 +617,7 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
612
617
|
}
|
|
613
618
|
}
|
|
614
619
|
|
|
615
|
-
declare function AgentDetailsTabs({ activeTab, onTabChange, showMetrics }: AgentDetailsTabsProps): react.JSX.Element;
|
|
620
|
+
declare function AgentDetailsTabs({ activeTab, onTabChange, showMetrics, showSchedules, }: AgentDetailsTabsProps): react.JSX.Element;
|
|
616
621
|
declare module '../../theme/SlotsProvider.js' {
|
|
617
622
|
interface AtomSlots {
|
|
618
623
|
AgentDetailsTabs: typeof AgentDetailsTabs;
|
|
@@ -654,14 +659,14 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
654
659
|
}
|
|
655
660
|
}
|
|
656
661
|
|
|
657
|
-
declare function AgentSessionDetailHeader({ title, sessionId, agentId, createdAt, view, onClose, resumeHref, onResume, resumeLabel, }: AgentSessionDetailHeaderProps): react.JSX.Element;
|
|
662
|
+
declare function AgentSessionDetailHeader({ title, sessionId, agentId, createdAt, view, onClose, resumeHref, onResume, resumeLabel, canResume, }: AgentSessionDetailHeaderProps): react.JSX.Element;
|
|
658
663
|
declare module '../../theme/SlotsProvider.js' {
|
|
659
664
|
interface AtomSlots {
|
|
660
665
|
AgentSessionDetailHeader: typeof AgentSessionDetailHeader;
|
|
661
666
|
}
|
|
662
667
|
}
|
|
663
668
|
|
|
664
|
-
declare function AgentSessionListRow({ title, agentName, lastActivityAt, metrics, active, onSelect, }: AgentSessionListRowProps): react.JSX.Element;
|
|
669
|
+
declare function AgentSessionListRow({ title, agentName, sourceType, lastActivityAt, metrics, active, onSelect, }: AgentSessionListRowProps): react.JSX.Element;
|
|
665
670
|
declare module '../../theme/SlotsProvider.js' {
|
|
666
671
|
interface AtomSlots {
|
|
667
672
|
AgentSessionListRow: typeof AgentSessionListRow;
|
|
@@ -709,11 +714,14 @@ type AgentsLibraryProps = {
|
|
|
709
714
|
};
|
|
710
715
|
type AgentScheduleSummary = {
|
|
711
716
|
count: number;
|
|
712
|
-
|
|
717
|
+
pausedCount: number;
|
|
713
718
|
};
|
|
714
719
|
type AgentLibraryRowProps = {
|
|
715
720
|
agent: AgentLibraryEntry;
|
|
716
721
|
canMutate: boolean;
|
|
722
|
+
canUseAgent?: boolean;
|
|
723
|
+
canManageAgent?: boolean;
|
|
724
|
+
canDeleteAgent?: boolean;
|
|
717
725
|
canManageSchedules: boolean;
|
|
718
726
|
scheduleSummary?: AgentScheduleSummary | null;
|
|
719
727
|
onOpenSchedules?: () => void;
|
|
@@ -723,7 +731,7 @@ type AgentLibraryRowProps = {
|
|
|
723
731
|
onEdit: () => void;
|
|
724
732
|
onManageSchedules?: () => void;
|
|
725
733
|
};
|
|
726
|
-
declare function AgentLibraryRow({ agent, canMutate, canManageSchedules, scheduleSummary, onOpenSchedules, onCreateSchedule, onOpen, onTry, onEdit, onManageSchedules, }: AgentLibraryRowProps): react.JSX.Element;
|
|
734
|
+
declare function AgentLibraryRow({ agent, canMutate, canUseAgent, canManageAgent, canDeleteAgent, canManageSchedules, scheduleSummary, onOpenSchedules, onCreateSchedule, onOpen, onTry, onEdit, onManageSchedules, }: AgentLibraryRowProps): react.JSX.Element;
|
|
727
735
|
declare function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps): react.JSX.Element | null;
|
|
728
736
|
declare module '../theme/SlotsProvider.js' {
|
|
729
737
|
interface AtomSlots {
|
|
@@ -743,6 +751,25 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
743
751
|
}
|
|
744
752
|
}
|
|
745
753
|
|
|
754
|
+
type ApprovalNavBannerProps = {
|
|
755
|
+
total: number;
|
|
756
|
+
/** 1-based index for display, e.g. 1 in "(1/4)". */
|
|
757
|
+
current: number;
|
|
758
|
+
canPrev: boolean;
|
|
759
|
+
canNext: boolean;
|
|
760
|
+
onPrev: () => void;
|
|
761
|
+
onNext: () => void;
|
|
762
|
+
/** Scroll the thread to the currently selected approval. */
|
|
763
|
+
onFocusCurrent: () => void;
|
|
764
|
+
className?: string;
|
|
765
|
+
};
|
|
766
|
+
declare function ApprovalNavBanner({ total, current, canPrev, canNext, onPrev, onNext, onFocusCurrent, className, }: ApprovalNavBannerProps): react.JSX.Element;
|
|
767
|
+
declare module '../theme/SlotsProvider.js' {
|
|
768
|
+
interface AtomSlots {
|
|
769
|
+
ApprovalNavBanner: typeof ApprovalNavBanner;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
746
773
|
type AssistantMessageBubbleProps = {
|
|
747
774
|
children: ReactNode;
|
|
748
775
|
error?: ReactNode;
|
|
@@ -946,12 +973,13 @@ type AgentConfigEditorsProps = {
|
|
|
946
973
|
sandboxAvailable?: boolean;
|
|
947
974
|
instructions?: string;
|
|
948
975
|
onInstructionsSave?: (draft: AgentInstructionsDraft) => void;
|
|
976
|
+
loadMcpConnector?: (connectorId: string) => Promise<ConnectorState | undefined>;
|
|
949
977
|
loadMcpTools?: (connectorId: string) => Promise<McpToolSelection[]>;
|
|
950
978
|
onRefreshConnectors?: () => Promise<void>;
|
|
951
979
|
onChange: (spec: AgentSpec) => void;
|
|
952
980
|
onClose: () => void;
|
|
953
981
|
};
|
|
954
|
-
declare function AgentConfigEditors({ editor, spec, models, connectors, skills, loading, error, skillsDisabled, sandboxAvailable, instructions, onInstructionsSave, loadMcpTools, onRefreshConnectors, onChange, onClose, }: AgentConfigEditorsProps): react.JSX.Element;
|
|
982
|
+
declare function AgentConfigEditors({ editor, spec, models, connectors, skills, loading, error, skillsDisabled, sandboxAvailable, instructions, onInstructionsSave, loadMcpConnector, loadMcpTools, onRefreshConnectors, onChange, onClose, }: AgentConfigEditorsProps): react.JSX.Element;
|
|
955
983
|
declare module '../../theme/SlotsProvider.js' {
|
|
956
984
|
interface AtomSlots {
|
|
957
985
|
AgentConfigEditors: typeof AgentConfigEditors;
|
|
@@ -961,11 +989,16 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
961
989
|
type AgentConfigPanelProps = {
|
|
962
990
|
spec: AgentSpec;
|
|
963
991
|
model?: ModelSelection;
|
|
992
|
+
models: ModelSelection[];
|
|
993
|
+
modelsLoading: boolean;
|
|
994
|
+
modelsError: string | null;
|
|
995
|
+
skills?: AgentSkill[];
|
|
964
996
|
skillsAvailable: boolean;
|
|
965
997
|
instructions: string;
|
|
966
998
|
onOpenEditor: (editor: AgentConfigEditor) => void;
|
|
967
999
|
onChange?: (spec: AgentSpec) => void;
|
|
968
1000
|
onClose?: () => void;
|
|
1001
|
+
disabled?: boolean;
|
|
969
1002
|
};
|
|
970
1003
|
declare function AgentConfigSection({ title, description, icon, actionIcon, actionLabel, onEdit, children, }: {
|
|
971
1004
|
title?: string;
|
|
@@ -976,7 +1009,7 @@ declare function AgentConfigSection({ title, description, icon, actionIcon, acti
|
|
|
976
1009
|
onEdit?: () => void;
|
|
977
1010
|
children?: ReactNode;
|
|
978
1011
|
}): react.JSX.Element;
|
|
979
|
-
declare function AgentConfigPanel({ spec, model, skillsAvailable, instructions, onOpenEditor, onChange, onClose, }: AgentConfigPanelProps): react.JSX.Element;
|
|
1012
|
+
declare function AgentConfigPanel({ spec, model, models, modelsLoading, modelsError, skills: catalogSkills, skillsAvailable, instructions, onOpenEditor, onChange, onClose, disabled, }: AgentConfigPanelProps): react.JSX.Element;
|
|
980
1013
|
declare module '../../theme/SlotsProvider.js' {
|
|
981
1014
|
interface AtomSlots {
|
|
982
1015
|
AgentConfigPanel: typeof AgentConfigPanel;
|
|
@@ -984,21 +1017,35 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
984
1017
|
}
|
|
985
1018
|
}
|
|
986
1019
|
|
|
1020
|
+
type AgentCustomParametersEditorProps = {
|
|
1021
|
+
value: Record<string, unknown>;
|
|
1022
|
+
reservedKeys: ReadonlySet<string>;
|
|
1023
|
+
onChange: (value: Record<string, unknown>) => void;
|
|
1024
|
+
};
|
|
1025
|
+
declare function AgentCustomParametersEditor({ value, reservedKeys, onChange }: AgentCustomParametersEditorProps): react.JSX.Element;
|
|
1026
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1027
|
+
interface AtomSlots {
|
|
1028
|
+
AgentCustomParametersEditor: typeof AgentCustomParametersEditor;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
|
|
987
1032
|
type AgentMcpEditorContentProps = {
|
|
988
1033
|
spec: AgentSpec;
|
|
989
1034
|
connectors: ConnectorState[];
|
|
990
1035
|
query: string;
|
|
991
1036
|
activeConnectorId: string | null;
|
|
992
1037
|
tools: McpToolSelection[];
|
|
1038
|
+
connectorLoading: boolean;
|
|
1039
|
+
connectorError: string | null;
|
|
993
1040
|
toolsLoading: boolean;
|
|
994
1041
|
toolsError: string | null;
|
|
995
1042
|
onQueryChange: (query: string) => void;
|
|
996
1043
|
onSelectConnector: (connectorId: string) => void;
|
|
997
1044
|
onRetryTools: () => void;
|
|
998
|
-
|
|
1045
|
+
onRefreshConnector?: () => void;
|
|
999
1046
|
onChange: (spec: AgentSpec) => void;
|
|
1000
1047
|
};
|
|
1001
|
-
declare function AgentMcpEditorContent({ spec, connectors, query, activeConnectorId, tools, toolsLoading, toolsError, onQueryChange, onSelectConnector, onRetryTools,
|
|
1048
|
+
declare function AgentMcpEditorContent({ spec, connectors, query, activeConnectorId, tools, connectorLoading, connectorError, toolsLoading, toolsError, onQueryChange, onSelectConnector, onRetryTools, onRefreshConnector, onChange, }: AgentMcpEditorContentProps): react.JSX.Element;
|
|
1002
1049
|
declare module '../../theme/SlotsProvider.js' {
|
|
1003
1050
|
interface AtomSlots {
|
|
1004
1051
|
AgentMcpEditorContent: typeof AgentMcpEditorContent;
|
|
@@ -1024,7 +1071,6 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1024
1071
|
}
|
|
1025
1072
|
|
|
1026
1073
|
type AgentModelEditorContentProps = {
|
|
1027
|
-
editor: 'model' | 'model-settings';
|
|
1028
1074
|
spec: AgentSpec;
|
|
1029
1075
|
models: ModelSelection[];
|
|
1030
1076
|
loading: boolean;
|
|
@@ -1033,7 +1079,7 @@ type AgentModelEditorContentProps = {
|
|
|
1033
1079
|
onQueryChange: (query: string) => void;
|
|
1034
1080
|
onChange: (spec: AgentSpec) => void;
|
|
1035
1081
|
};
|
|
1036
|
-
declare function AgentModelEditorContent({
|
|
1082
|
+
declare function AgentModelEditorContent({ spec, models, loading, error, query, onQueryChange, onChange, }: AgentModelEditorContentProps): react.JSX.Element;
|
|
1037
1083
|
declare module '../../theme/SlotsProvider.js' {
|
|
1038
1084
|
interface AtomSlots {
|
|
1039
1085
|
AgentModelEditorContent: typeof AgentModelEditorContent;
|
|
@@ -1061,12 +1107,14 @@ type AgentResourceConfigModalProps = {
|
|
|
1061
1107
|
query: string;
|
|
1062
1108
|
activeConnectorId: string | null;
|
|
1063
1109
|
tools: McpToolSelection[];
|
|
1110
|
+
connectorLoading: boolean;
|
|
1111
|
+
connectorError: string | null;
|
|
1064
1112
|
toolsLoading: boolean;
|
|
1065
1113
|
toolsError: string | null;
|
|
1066
1114
|
onQueryChange: (query: string) => void;
|
|
1067
1115
|
onSelectConnector: (connectorId: string) => void;
|
|
1068
1116
|
onRetryTools: () => void;
|
|
1069
|
-
|
|
1117
|
+
onRefreshConnector?: () => void;
|
|
1070
1118
|
onChange: (spec: AgentSpec) => void;
|
|
1071
1119
|
onClose: () => void;
|
|
1072
1120
|
};
|
|
@@ -1086,12 +1134,14 @@ type AgentResourceEditorContentProps = {
|
|
|
1086
1134
|
query: string;
|
|
1087
1135
|
activeConnectorId: string | null;
|
|
1088
1136
|
tools: McpToolSelection[];
|
|
1137
|
+
connectorLoading: boolean;
|
|
1138
|
+
connectorError: string | null;
|
|
1089
1139
|
toolsLoading: boolean;
|
|
1090
1140
|
toolsError: string | null;
|
|
1091
1141
|
onQueryChange: (query: string) => void;
|
|
1092
1142
|
onSelectConnector: (connectorId: string) => void;
|
|
1093
1143
|
onRetryTools: () => void;
|
|
1094
|
-
|
|
1144
|
+
onRefreshConnector?: () => void;
|
|
1095
1145
|
onChange: (spec: AgentSpec) => void;
|
|
1096
1146
|
};
|
|
1097
1147
|
declare function AgentResourceEditorContent(props: AgentResourceEditorContentProps): react.JSX.Element;
|
|
@@ -1101,6 +1151,20 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1101
1151
|
}
|
|
1102
1152
|
}
|
|
1103
1153
|
|
|
1154
|
+
type AgentRuntimeConfigDrawerProps = {
|
|
1155
|
+
open: boolean;
|
|
1156
|
+
spec: AgentSpec;
|
|
1157
|
+
sandboxAvailable: boolean;
|
|
1158
|
+
onChange: (spec: AgentSpec) => void;
|
|
1159
|
+
onClose: () => void;
|
|
1160
|
+
};
|
|
1161
|
+
declare function AgentRuntimeConfigDrawer({ open, spec, sandboxAvailable, onChange, onClose, }: AgentRuntimeConfigDrawerProps): react.JSX.Element;
|
|
1162
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1163
|
+
interface AtomSlots {
|
|
1164
|
+
AgentRuntimeConfigDrawer: typeof AgentRuntimeConfigDrawer;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1104
1168
|
type AgentRuntimeConfigFieldsProps = {
|
|
1105
1169
|
value: AgentRuntimeConfig;
|
|
1106
1170
|
sandboxAvailable: boolean;
|
|
@@ -1117,20 +1181,6 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1117
1181
|
}
|
|
1118
1182
|
}
|
|
1119
1183
|
|
|
1120
|
-
type AgentRuntimeConfigModalProps = {
|
|
1121
|
-
open: boolean;
|
|
1122
|
-
spec: AgentSpec;
|
|
1123
|
-
sandboxAvailable: boolean;
|
|
1124
|
-
onChange: (spec: AgentSpec) => void;
|
|
1125
|
-
onClose: () => void;
|
|
1126
|
-
};
|
|
1127
|
-
declare function AgentRuntimeConfigModal({ open, spec, sandboxAvailable, onChange, onClose, }: AgentRuntimeConfigModalProps): react.JSX.Element;
|
|
1128
|
-
declare module '../../theme/SlotsProvider.js' {
|
|
1129
|
-
interface AtomSlots {
|
|
1130
|
-
AgentRuntimeConfigModal: typeof AgentRuntimeConfigModal;
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
1184
|
type AgentRuntimeEditorContentProps = {
|
|
1135
1185
|
spec: AgentSpec;
|
|
1136
1186
|
sandboxAvailable: boolean;
|
|
@@ -1188,6 +1238,23 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1188
1238
|
}
|
|
1189
1239
|
}
|
|
1190
1240
|
|
|
1241
|
+
type DraftComposerAction = {
|
|
1242
|
+
id: string;
|
|
1243
|
+
label: string;
|
|
1244
|
+
icon: string;
|
|
1245
|
+
onSelect: () => void;
|
|
1246
|
+
};
|
|
1247
|
+
type DraftComposerActionsMenuProps = {
|
|
1248
|
+
actions: DraftComposerAction[];
|
|
1249
|
+
disabled?: boolean;
|
|
1250
|
+
};
|
|
1251
|
+
declare function DraftComposerActionsMenu({ actions, disabled }: DraftComposerActionsMenuProps): react.JSX.Element | null;
|
|
1252
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1253
|
+
interface AtomSlots {
|
|
1254
|
+
DraftComposerActionsMenu: typeof DraftComposerActionsMenu;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1191
1258
|
declare function DraftComposerLeftSection({ disabled, isRunning, onAttach }: ComposerLeftSectionProps): react.JSX.Element;
|
|
1192
1259
|
declare function DraftComposerRightSection({ disabled, isRunning }: ComposerRightSectionProps): react.JSX.Element;
|
|
1193
1260
|
declare module '../../theme/SlotsProvider.js' {
|
|
@@ -1197,9 +1264,10 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1197
1264
|
}
|
|
1198
1265
|
}
|
|
1199
1266
|
|
|
1200
|
-
declare function CatalogRow({ title, description, logo, fallbackIcon, checked, disabled, onToggle, onActivate, action, }: {
|
|
1267
|
+
declare function CatalogRow({ title, description, badge, logo, fallbackIcon, checked, disabled, onToggle, onActivate, action, }: {
|
|
1201
1268
|
title: string;
|
|
1202
1269
|
description?: string;
|
|
1270
|
+
badge?: ReactNode;
|
|
1203
1271
|
/** Catalog logo URL; when absent, `fallbackIcon` (or the title initial) is shown. */
|
|
1204
1272
|
logo?: string | undefined;
|
|
1205
1273
|
fallbackIcon?: string;
|
|
@@ -1315,6 +1383,20 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1315
1383
|
}
|
|
1316
1384
|
}
|
|
1317
1385
|
|
|
1386
|
+
type PermissionGuardProps = {
|
|
1387
|
+
allowed: boolean;
|
|
1388
|
+
children: ReactElement<{
|
|
1389
|
+
disabled?: boolean;
|
|
1390
|
+
}>;
|
|
1391
|
+
deniedMessage?: string;
|
|
1392
|
+
};
|
|
1393
|
+
declare function PermissionGuard({ allowed, children, deniedMessage, }: PermissionGuardProps): react.JSX.Element;
|
|
1394
|
+
declare module '../theme/SlotsProvider.js' {
|
|
1395
|
+
interface AtomSlots {
|
|
1396
|
+
PermissionGuard: typeof PermissionGuard;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1318
1400
|
type SandboxArtifactDownloadProps = {
|
|
1319
1401
|
code: string;
|
|
1320
1402
|
fileDownloadBaseUrl?: string;
|
|
@@ -1344,6 +1426,8 @@ type ToolCallCardProps = {
|
|
|
1344
1426
|
showResponseLine?: boolean;
|
|
1345
1427
|
responseIcon?: ReactNode;
|
|
1346
1428
|
approvalSlot?: ReactNode;
|
|
1429
|
+
/** When set, this card is the scroll/flash target for approval banner navigation. */
|
|
1430
|
+
approvalId?: string;
|
|
1347
1431
|
requestSlot?: ReactNode;
|
|
1348
1432
|
responseSlot?: ReactNode;
|
|
1349
1433
|
highlightCard?: boolean;
|
|
@@ -1351,7 +1435,7 @@ type ToolCallCardProps = {
|
|
|
1351
1435
|
mcpServerName?: string;
|
|
1352
1436
|
dataTestPrefix?: string;
|
|
1353
1437
|
};
|
|
1354
|
-
declare function ToolCallCard({ icon, iconClassName, iconVariant, toolName, expanded, onToggle, awaiting, awaitingText, status: explicitStatus, exitCode, showExpandChevron, showResponseLine, approvalSlot, requestSlot, responseSlot, highlightCard, className, mcpServerName: _mcpServerName, dataTestPrefix, }: ToolCallCardProps): react.JSX.Element;
|
|
1438
|
+
declare function ToolCallCard({ icon, iconClassName, iconVariant, toolName, expanded, onToggle, awaiting, awaitingText, status: explicitStatus, exitCode, showExpandChevron, showResponseLine, approvalSlot, approvalId, requestSlot, responseSlot, highlightCard, className, mcpServerName: _mcpServerName, dataTestPrefix, }: ToolCallCardProps): react.JSX.Element;
|
|
1355
1439
|
declare module '../theme/SlotsProvider.js' {
|
|
1356
1440
|
interface AtomSlots {
|
|
1357
1441
|
ToolCallCard: typeof ToolCallCard;
|
|
@@ -1373,10 +1457,13 @@ type SandboxToolCallCardProps = {
|
|
|
1373
1457
|
hasContent?: boolean;
|
|
1374
1458
|
onViewModeChange?: (viewMode: 'terminal' | 'code') => void;
|
|
1375
1459
|
durationText?: string;
|
|
1460
|
+
approvalSlot?: ReactNode;
|
|
1461
|
+
/** When set, this card is the scroll/flash target for approval banner navigation. */
|
|
1462
|
+
approvalId?: string;
|
|
1376
1463
|
dataTestPrefix?: string;
|
|
1377
1464
|
className?: string;
|
|
1378
1465
|
};
|
|
1379
|
-
declare function SandboxToolCallCard({ name, intent, status, expanded, onToggle, command, exitCode, argsJson, resultText, resultJson, viewMode, hasContent, onViewModeChange, durationText, dataTestPrefix, className, }: SandboxToolCallCardProps): react.JSX.Element;
|
|
1466
|
+
declare function SandboxToolCallCard({ name, intent, status, expanded, onToggle, command, exitCode, argsJson, resultText, resultJson, viewMode, hasContent, onViewModeChange, durationText, approvalSlot, approvalId, dataTestPrefix, className, }: SandboxToolCallCardProps): react.JSX.Element;
|
|
1380
1467
|
declare module '../theme/SlotsProvider.js' {
|
|
1381
1468
|
interface AtomSlots {
|
|
1382
1469
|
SandboxToolCallCard: typeof SandboxToolCallCard;
|
|
@@ -1397,50 +1484,32 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1397
1484
|
}
|
|
1398
1485
|
}
|
|
1399
1486
|
|
|
1400
|
-
type EditableMount = {
|
|
1401
|
-
id: string;
|
|
1402
|
-
name: string;
|
|
1403
|
-
value: object;
|
|
1404
|
-
};
|
|
1405
|
-
|
|
1406
1487
|
type SaveAgentFormProps = {
|
|
1407
1488
|
intent: 'create' | 'update';
|
|
1408
1489
|
name: string;
|
|
1409
1490
|
spec: AgentSpec;
|
|
1410
|
-
modelEntry?: ModelSelection;
|
|
1411
|
-
mcpMounts: EditableMount[];
|
|
1412
|
-
skillMounts: EditableMount[];
|
|
1413
1491
|
saving: boolean;
|
|
1414
1492
|
error: string | null;
|
|
1415
1493
|
onNameChange: (name: string) => void;
|
|
1416
1494
|
onChange: (spec: AgentSpec) => void;
|
|
1417
|
-
onEdit: (editor: AgentConfigEditor) => void;
|
|
1418
|
-
onToggleMcpPreload: (id: string) => void;
|
|
1419
|
-
onRemoveMcp?: (id: string) => void;
|
|
1420
1495
|
onCancel: () => void;
|
|
1421
1496
|
onSave: () => void;
|
|
1422
1497
|
};
|
|
1423
|
-
declare function SaveAgentForm({ intent, name, spec,
|
|
1498
|
+
declare function SaveAgentForm({ intent, name, spec, saving, error, onNameChange, onCancel, onSave, }: SaveAgentFormProps): react.JSX.Element;
|
|
1424
1499
|
declare module '../theme/SlotsProvider.js' {
|
|
1425
1500
|
interface AtomSlots {
|
|
1426
1501
|
SaveAgentForm: typeof SaveAgentForm;
|
|
1427
1502
|
}
|
|
1428
1503
|
}
|
|
1429
1504
|
|
|
1430
|
-
type
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
mcpMounts: EditableMount[];
|
|
1434
|
-
skillMounts: EditableMount[];
|
|
1435
|
-
disabled: boolean;
|
|
1436
|
-
onEdit: (editor: AgentConfigEditor) => void;
|
|
1437
|
-
onToggleMcpPreload: (id: string) => void;
|
|
1438
|
-
onRemoveMcp?: (id: string) => void;
|
|
1505
|
+
type SchedulesPageProps = {
|
|
1506
|
+
/** Lock the page to one agent when embedded in Agent Details. */
|
|
1507
|
+
agentId?: string;
|
|
1439
1508
|
};
|
|
1440
|
-
declare function
|
|
1441
|
-
declare module '
|
|
1509
|
+
declare function SchedulesPage({ agentId }: SchedulesPageProps): react.JSX.Element;
|
|
1510
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1442
1511
|
interface AtomSlots {
|
|
1443
|
-
|
|
1512
|
+
SchedulesPage: ComponentType<SchedulesPageProps>;
|
|
1444
1513
|
}
|
|
1445
1514
|
}
|
|
1446
1515
|
|
|
@@ -1529,7 +1598,7 @@ type ThreadListEmptyStateProps = {
|
|
|
1529
1598
|
};
|
|
1530
1599
|
declare function ThreadListEmptyState({ message, className }: ThreadListEmptyStateProps): react.JSX.Element;
|
|
1531
1600
|
type ThreadListShellProps = {
|
|
1532
|
-
header
|
|
1601
|
+
header?: ReactNode;
|
|
1533
1602
|
children: ReactNode;
|
|
1534
1603
|
className?: string;
|
|
1535
1604
|
};
|
|
@@ -1660,16 +1729,28 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1660
1729
|
}
|
|
1661
1730
|
}
|
|
1662
1731
|
|
|
1732
|
+
type UserAvatarProps = {
|
|
1733
|
+
labeled?: boolean;
|
|
1734
|
+
className?: string;
|
|
1735
|
+
};
|
|
1736
|
+
declare function UserAvatar({ labeled, className }: UserAvatarProps): react.JSX.Element | null;
|
|
1737
|
+
declare module '../theme/SlotsProvider.js' {
|
|
1738
|
+
interface AtomSlots {
|
|
1739
|
+
UserAvatar: typeof UserAvatar;
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1663
1743
|
type UserMessageActionBarProps = {
|
|
1664
1744
|
isCopied: boolean;
|
|
1665
1745
|
editDisabled?: boolean;
|
|
1746
|
+
retryDisabled?: boolean;
|
|
1666
1747
|
createdAt?: Date | string;
|
|
1667
1748
|
onCopy: () => void;
|
|
1668
1749
|
onEdit: () => void;
|
|
1669
1750
|
onRetry: () => void;
|
|
1670
1751
|
className?: string;
|
|
1671
1752
|
};
|
|
1672
|
-
declare function UserMessageActionBar({ isCopied, editDisabled, createdAt, onCopy, onEdit, onRetry, className, }: UserMessageActionBarProps): react.JSX.Element;
|
|
1753
|
+
declare function UserMessageActionBar({ isCopied, editDisabled, retryDisabled, createdAt, onCopy, onEdit, onRetry, className, }: UserMessageActionBarProps): react.JSX.Element;
|
|
1673
1754
|
declare module '../theme/SlotsProvider.js' {
|
|
1674
1755
|
interface AtomSlots {
|
|
1675
1756
|
UserMessageActionBar: typeof UserMessageActionBar;
|
|
@@ -1734,10 +1815,13 @@ declare const defaultSlots: {
|
|
|
1734
1815
|
ComposerLeftSection: typeof ComposerLeftSection;
|
|
1735
1816
|
ComposerRightSection: typeof ComposerRightSection;
|
|
1736
1817
|
ComposerSendButton: typeof ComposerSendButton;
|
|
1818
|
+
PermissionGuard: typeof PermissionGuard;
|
|
1737
1819
|
DraftComposerLeftSection: typeof DraftComposerLeftSection;
|
|
1738
1820
|
DraftComposerRightSection: typeof DraftComposerRightSection;
|
|
1739
1821
|
DraftAgentConfigTrigger: typeof DraftAgentConfigTrigger;
|
|
1740
1822
|
DraftCapabilitiesPanel: typeof DraftCapabilitiesPanel;
|
|
1823
|
+
DraftComposerActionsMenu: typeof DraftComposerActionsMenu;
|
|
1824
|
+
AgentCustomParametersEditor: typeof AgentCustomParametersEditor;
|
|
1741
1825
|
AgentConfigEditors: typeof AgentConfigEditors;
|
|
1742
1826
|
AgentInstructionsDrawer: typeof AgentInstructionsDrawer;
|
|
1743
1827
|
AgentModelEditorContent: typeof AgentModelEditorContent;
|
|
@@ -1750,7 +1834,7 @@ declare const defaultSlots: {
|
|
|
1750
1834
|
AgentConfigPanel: typeof AgentConfigPanel;
|
|
1751
1835
|
AgentConfigSection: typeof AgentConfigSection;
|
|
1752
1836
|
AgentRuntimeConfigFields: typeof AgentRuntimeConfigFields;
|
|
1753
|
-
|
|
1837
|
+
AgentRuntimeConfigDrawer: typeof AgentRuntimeConfigDrawer;
|
|
1754
1838
|
AgentRuntimeEditorContent: typeof AgentRuntimeEditorContent;
|
|
1755
1839
|
DraftCompositeSelector: typeof DraftCompositeSelector;
|
|
1756
1840
|
CatalogRow: typeof CatalogRow;
|
|
@@ -1792,6 +1876,7 @@ declare const defaultSlots: {
|
|
|
1792
1876
|
AgentsLibrary: typeof AgentsLibrary;
|
|
1793
1877
|
AgentLibraryRow: typeof AgentLibraryRow;
|
|
1794
1878
|
AgentsLibraryButton: typeof AgentsLibraryButton;
|
|
1879
|
+
ApprovalNavBanner: typeof ApprovalNavBanner;
|
|
1795
1880
|
SessionsBrowserButton: typeof SessionsBrowserButton;
|
|
1796
1881
|
AgentDetailsPage: typeof AgentDetailsPage;
|
|
1797
1882
|
AgentDetailsHeader: typeof AgentDetailsHeader;
|
|
@@ -1816,10 +1901,10 @@ declare const defaultSlots: {
|
|
|
1816
1901
|
AgentSessions: react.FunctionComponent<AgentSessionsProps>;
|
|
1817
1902
|
AgentCodeSnippets: react.FunctionComponent<AgentCodeSnippetsProps>;
|
|
1818
1903
|
AgentCodeBlock: typeof AgentCodeBlock;
|
|
1904
|
+
SchedulesPage: react.FunctionComponent<SchedulesPageProps>;
|
|
1819
1905
|
SchedulesButton: typeof SchedulesButton;
|
|
1820
1906
|
SaveAgentButton: typeof SaveAgentButton;
|
|
1821
1907
|
SaveAgentForm: typeof SaveAgentForm;
|
|
1822
|
-
SaveAgentFormFields: typeof SaveAgentFormFields;
|
|
1823
1908
|
SelectAgentEmptyState: typeof SelectAgentEmptyState;
|
|
1824
1909
|
ClearChatButton: typeof ClearChatButton;
|
|
1825
1910
|
ThreadListRowSkeleton: typeof ThreadListRowSkeleton;
|
|
@@ -1834,6 +1919,7 @@ declare const defaultSlots: {
|
|
|
1834
1919
|
Toast: typeof Toast;
|
|
1835
1920
|
ToastStack: typeof ToastStack;
|
|
1836
1921
|
ShellActionsActionSlot: typeof ShellActionsActionSlot;
|
|
1922
|
+
UserAvatar: typeof UserAvatar;
|
|
1837
1923
|
};
|
|
1838
1924
|
|
|
1839
1925
|
type PresetTokens = {
|
|
@@ -1950,10 +2036,13 @@ type CommonPopoverSelectProps<T extends string> = {
|
|
|
1950
2036
|
placeholder?: string;
|
|
1951
2037
|
disabled?: boolean;
|
|
1952
2038
|
className?: string;
|
|
2039
|
+
menuClassName?: string;
|
|
1953
2040
|
/** Which edge of the trigger the menu opens toward. Default `bottom`. */
|
|
1954
2041
|
menuPlacement?: 'top' | 'bottom';
|
|
1955
2042
|
/** When set, renders a labeled chip trigger (label | value chip + chevron). */
|
|
1956
2043
|
prefix?: string;
|
|
2044
|
+
emptyContent?: ReactNode;
|
|
2045
|
+
footer?: ReactNode;
|
|
1957
2046
|
'aria-label': string;
|
|
1958
2047
|
};
|
|
1959
2048
|
type PopoverSelectProps<T extends string> = CommonPopoverSelectProps<T> & ({
|
|
@@ -1967,6 +2056,37 @@ type PopoverSelectProps<T extends string> = CommonPopoverSelectProps<T> & ({
|
|
|
1967
2056
|
});
|
|
1968
2057
|
declare function PopoverSelect<T extends string>(props: PopoverSelectProps<T>): react.JSX.Element;
|
|
1969
2058
|
|
|
2059
|
+
type DropdownMenuProps = {
|
|
2060
|
+
trigger: react__default.ReactNode;
|
|
2061
|
+
children: react__default.ReactNode;
|
|
2062
|
+
align?: 'start' | 'end';
|
|
2063
|
+
side?: 'top' | 'bottom';
|
|
2064
|
+
className?: string;
|
|
2065
|
+
containerClassName?: string;
|
|
2066
|
+
open?: boolean;
|
|
2067
|
+
onOpenChange?: (open: boolean) => void;
|
|
2068
|
+
closeOnClick?: boolean;
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
type ResponsiveDropdownTriggerProps = {
|
|
2072
|
+
'aria-controls'?: string;
|
|
2073
|
+
'aria-expanded'?: boolean;
|
|
2074
|
+
'aria-haspopup'?: 'dialog' | 'menu';
|
|
2075
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
2076
|
+
};
|
|
2077
|
+
type ResponsiveDropdownMenuProps = Omit<DropdownMenuProps, 'children' | 'open' | 'onOpenChange' | 'trigger'> & {
|
|
2078
|
+
trigger: ReactElement<ResponsiveDropdownTriggerProps>;
|
|
2079
|
+
children: ReactNode;
|
|
2080
|
+
open?: boolean;
|
|
2081
|
+
onOpenChange?: (open: boolean) => void;
|
|
2082
|
+
sheetLabel: string;
|
|
2083
|
+
sheetClassName?: string;
|
|
2084
|
+
};
|
|
2085
|
+
/**
|
|
2086
|
+
* Uses dropdown chrome normally and a container-bound bottom sheet in compact layouts.
|
|
2087
|
+
*/
|
|
2088
|
+
declare function ResponsiveDropdownMenu({ trigger, children, open: controlledOpen, onOpenChange, sheetLabel, sheetClassName, containerClassName, closeOnClick, ...dropdownProps }: ResponsiveDropdownMenuProps): react.JSX.Element;
|
|
2089
|
+
|
|
1970
2090
|
type SideDrawerAnchor = 'left' | 'right';
|
|
1971
2091
|
type SideDrawerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
1972
2092
|
type SideDrawerProps = {
|
|
@@ -2071,9 +2191,11 @@ type ScheduleFormFieldsProps = {
|
|
|
2071
2191
|
agentId: string;
|
|
2072
2192
|
name: string;
|
|
2073
2193
|
}>;
|
|
2194
|
+
agentOptionsLoaded?: boolean;
|
|
2074
2195
|
agentPickerDisabled?: boolean;
|
|
2196
|
+
onBuildAgent?: () => void;
|
|
2075
2197
|
};
|
|
2076
|
-
declare function ScheduleFormFields({ values, onChange, agentId, onAgentIdChange, agentOptions, agentPickerDisabled, }: ScheduleFormFieldsProps): react.JSX.Element;
|
|
2198
|
+
declare function ScheduleFormFields({ values, onChange, agentId, onAgentIdChange, agentOptions, agentOptionsLoaded, agentPickerDisabled, onBuildAgent, }: ScheduleFormFieldsProps): react.JSX.Element;
|
|
2077
2199
|
|
|
2078
2200
|
declare function ScheduleLastRunsCell({ runs }: {
|
|
2079
2201
|
runs: readonly ScheduleRun[];
|
|
@@ -2083,8 +2205,6 @@ declare function ScheduleRunChip({ run }: {
|
|
|
2083
2205
|
run: ScheduleRun;
|
|
2084
2206
|
}): react.JSX.Element;
|
|
2085
2207
|
|
|
2086
|
-
declare function SchedulesPage(): react.JSX.Element;
|
|
2087
|
-
|
|
2088
2208
|
declare function ScheduleStatusBadge({ status }: {
|
|
2089
2209
|
status: ScheduleStatus;
|
|
2090
2210
|
}): react.JSX.Element;
|
|
@@ -2125,7 +2245,12 @@ interface AgentStepsContainerProps {
|
|
|
2125
2245
|
*/
|
|
2126
2246
|
declare function AgentStepsContainer({ children, toolCount, thinkingCount, hasFinal, }: PropsWithChildren<AgentStepsContainerProps>): react.JSX.Element;
|
|
2127
2247
|
|
|
2128
|
-
|
|
2248
|
+
/** Composer banner that navigates pending tool approvals. */
|
|
2249
|
+
declare function ApprovalNavContainer(): react.JSX.Element | null;
|
|
2250
|
+
|
|
2251
|
+
declare function AskUserContainer({ disabled }: {
|
|
2252
|
+
disabled?: boolean;
|
|
2253
|
+
}): react.JSX.Element | null;
|
|
2129
2254
|
|
|
2130
2255
|
declare function AssistantMessageContainer(): react.JSX.Element;
|
|
2131
2256
|
|
|
@@ -2141,7 +2266,9 @@ type ComposerContainerProps = {
|
|
|
2141
2266
|
declare function ComposerContainer({ placeholder, }: ComposerContainerProps): react.JSX.Element;
|
|
2142
2267
|
|
|
2143
2268
|
/** Host custom-action UI for a pending client-side tool response. */
|
|
2144
|
-
declare function CustomActionContainer(
|
|
2269
|
+
declare function CustomActionContainer({ disabled }: {
|
|
2270
|
+
disabled?: boolean;
|
|
2271
|
+
}): react.JSX.Element | null;
|
|
2145
2272
|
|
|
2146
2273
|
/**
|
|
2147
2274
|
* Renders `HistoryLoader` at the top of the message list and fetches
|
|
@@ -2153,7 +2280,9 @@ declare function CustomActionContainer(): react.JSX.Element | null;
|
|
|
2153
2280
|
*/
|
|
2154
2281
|
declare function HistoryLoaderContainer(): react.JSX.Element | null;
|
|
2155
2282
|
|
|
2156
|
-
declare function McpAuthContainer(
|
|
2283
|
+
declare function McpAuthContainer({ disabled }: {
|
|
2284
|
+
disabled?: boolean;
|
|
2285
|
+
}): react.JSX.Element | null;
|
|
2157
2286
|
|
|
2158
2287
|
declare const PostMcpOauthScreen: () => react.JSX.Element;
|
|
2159
2288
|
|
|
@@ -2187,8 +2316,10 @@ declare function ThreadContainer({ composer }: ThreadContainerProps): react.JSX.
|
|
|
2187
2316
|
type ThreadListContainerProps = {
|
|
2188
2317
|
/** Called after New chat or selecting a row — used by stack/drawer chrome. */
|
|
2189
2318
|
onThreadOpen?: () => void;
|
|
2319
|
+
/** `recent-history` hides navigation and lists only persisted sessions. */
|
|
2320
|
+
variant?: 'default' | 'recent-history';
|
|
2190
2321
|
};
|
|
2191
|
-
declare function ThreadListContainer({ onThreadOpen }?: ThreadListContainerProps): react.JSX.Element;
|
|
2322
|
+
declare function ThreadListContainer({ onThreadOpen, variant }?: ThreadListContainerProps): react.JSX.Element;
|
|
2192
2323
|
|
|
2193
2324
|
type ToastContent = {
|
|
2194
2325
|
title: string;
|
|
@@ -2227,6 +2358,13 @@ declare const ToolCallContainer: ToolCallMessagePartComponent;
|
|
|
2227
2358
|
|
|
2228
2359
|
declare function ToolCallContentBlockContainer(props: ToolCallContentBlockProps): react.JSX.Element;
|
|
2229
2360
|
|
|
2361
|
+
type CurrentUser = {
|
|
2362
|
+
displayName: string;
|
|
2363
|
+
};
|
|
2364
|
+
declare function useOptionalCurrentUser(): CurrentUser | undefined;
|
|
2365
|
+
|
|
2366
|
+
type HistoryAgentIntent = 'try-agent' | 'history';
|
|
2367
|
+
|
|
2230
2368
|
type DraftPreferenceKind = 'chat' | 'agent';
|
|
2231
2369
|
|
|
2232
2370
|
/** Host-facing shell configuration for agent / library / composer chrome. */
|
|
@@ -2277,6 +2415,11 @@ type SelectLibraryAgentRequest = {
|
|
|
2277
2415
|
agentSpec?: AgentSpec;
|
|
2278
2416
|
};
|
|
2279
2417
|
type SettingsSection = 'models' | 'connectors' | 'skills' | 'sandbox';
|
|
2418
|
+
type HistoryAgentFilter = {
|
|
2419
|
+
agentId?: string;
|
|
2420
|
+
agentName: string;
|
|
2421
|
+
intent: HistoryAgentIntent;
|
|
2422
|
+
};
|
|
2280
2423
|
type ShellModeContextValue = {
|
|
2281
2424
|
mode: ShellMode;
|
|
2282
2425
|
/** Host agentConfig mode (capabilities source). */
|
|
@@ -2327,11 +2470,8 @@ type ShellModeContextValue = {
|
|
|
2327
2470
|
/** Remember plain-draft composer choices as the seed for future New Chat / New Agent. */
|
|
2328
2471
|
rememberDraftSpec: (agentSpec: AgentSpec, kind?: DraftPreferenceKind) => void;
|
|
2329
2472
|
/**
|
|
2330
|
-
* Open a history session
|
|
2331
|
-
* Prefer explicit `isMutable
|
|
2332
|
-
* present → immutable and agentName absent → mutable. Immutable rows may omit
|
|
2333
|
-
* `agentName` when the registry agent was deleted.
|
|
2334
|
-
* `isCreateAgent` is only applied when mutable (default false when omitted).
|
|
2473
|
+
* Open a history session without remounting the runtime.
|
|
2474
|
+
* Prefer explicit `isMutable`; otherwise agentName means immutable.
|
|
2335
2475
|
*/
|
|
2336
2476
|
openHistorySession: (req: {
|
|
2337
2477
|
sessionId: string;
|
|
@@ -2343,18 +2483,20 @@ type ShellModeContextValue = {
|
|
|
2343
2483
|
clearChat: () => void;
|
|
2344
2484
|
/** Return library-only mode to its idle landing; no-op in other modes. */
|
|
2345
2485
|
openLibraryHome: () => void;
|
|
2346
|
-
/**
|
|
2486
|
+
/** Changes only when the chat runtime must reset. */
|
|
2347
2487
|
runtimeKey: string;
|
|
2348
2488
|
/**
|
|
2349
2489
|
* History list filter forwarded as `listSessions({ agentId })`.
|
|
2350
2490
|
* `null` = All chats. Only meaningful when `isLibraryEnabled`.
|
|
2351
2491
|
*/
|
|
2352
|
-
historyAgentFilter:
|
|
2353
|
-
setHistoryAgentFilter: (
|
|
2492
|
+
historyAgentFilter: HistoryAgentFilter | null;
|
|
2493
|
+
setHistoryAgentFilter: (filter: HistoryAgentFilter | null) => void;
|
|
2354
2494
|
/** Effective `listSessionsAgentId` for the runtime (SingleAgent locks to name). */
|
|
2355
2495
|
listSessionsAgentId: string | undefined;
|
|
2356
|
-
/** Session
|
|
2496
|
+
/** Session selected from history. */
|
|
2357
2497
|
pendingSessionId: string | undefined;
|
|
2498
|
+
/** Distinguishes repeated selections of the same session. */
|
|
2499
|
+
pendingSessionEpoch: number;
|
|
2358
2500
|
/**
|
|
2359
2501
|
* Bumped when the Agents catalog may have changed (e.g. after saveAgent).
|
|
2360
2502
|
* Library chrome should re-fetch when this changes.
|
|
@@ -2399,6 +2541,8 @@ type RoutePlace = {
|
|
|
2399
2541
|
type: 'sessionsBrowser';
|
|
2400
2542
|
} | {
|
|
2401
2543
|
type: 'schedules';
|
|
2544
|
+
} | {
|
|
2545
|
+
type: 'buildAgent';
|
|
2402
2546
|
};
|
|
2403
2547
|
/**
|
|
2404
2548
|
* Host-facing route path customization. Only honored when `withRouter`.
|
|
@@ -2419,6 +2563,8 @@ type RoutesConfig = {
|
|
|
2419
2563
|
libraryAgent?: string | false;
|
|
2420
2564
|
/** Schedules page. `false` keeps schedules overlay-only (no URL). Default `'/schedules'`. */
|
|
2421
2565
|
schedules?: string | false;
|
|
2566
|
+
/** Agent builder. `false` disables its dedicated URL. Default `'/build-agent'`. */
|
|
2567
|
+
buildAgent?: string | false;
|
|
2422
2568
|
/** Immutable "Try" agent. `false` disables. Default `'/agents/:agentName'`. */
|
|
2423
2569
|
agent?: string | false;
|
|
2424
2570
|
/** Session deep link. `false` disables. Default `'/sessions/:sessionId'`. */
|
|
@@ -2446,7 +2592,7 @@ declare function useOptionalCustomActionRenderers(): CustomActionRenderers | und
|
|
|
2446
2592
|
|
|
2447
2593
|
/**
|
|
2448
2594
|
* Built-in backends init inside `<TrueForgeUI />`.
|
|
2449
|
-
* Optional
|
|
2595
|
+
* Optional host ports are attached onto the resolved `AgentUIServer`.
|
|
2450
2596
|
*/
|
|
2451
2597
|
type TrueForgeBuiltInServerConfig = {
|
|
2452
2598
|
type: 'truefoundry';
|
|
@@ -2454,6 +2600,7 @@ type TrueForgeBuiltInServerConfig = {
|
|
|
2454
2600
|
controlPlaneURL: string;
|
|
2455
2601
|
gatewayPlaneURL?: string;
|
|
2456
2602
|
catalog?: CatalogServer;
|
|
2603
|
+
permissions?: PermissionsServer;
|
|
2457
2604
|
} | {
|
|
2458
2605
|
type: 'trueforge';
|
|
2459
2606
|
/** Harness API root. Defaults to `'/'` (same-origin / proxied). */
|
|
@@ -2463,6 +2610,7 @@ type TrueForgeBuiltInServerConfig = {
|
|
|
2463
2610
|
/** Custom fetch (cookie sessions, auth interceptors). */
|
|
2464
2611
|
fetch?: typeof fetch;
|
|
2465
2612
|
catalog?: CatalogServer;
|
|
2613
|
+
permissions?: PermissionsServer;
|
|
2466
2614
|
};
|
|
2467
2615
|
/**
|
|
2468
2616
|
* `server` prop for `<TrueForgeUI />`: a built-in config, or a ready
|
|
@@ -2502,6 +2650,8 @@ type TrueForgeUIProps = {
|
|
|
2502
2650
|
withRouter?: boolean;
|
|
2503
2651
|
/** URL path customization; only honored when `withRouter`. */
|
|
2504
2652
|
routes?: RoutesConfig;
|
|
2653
|
+
/** Optional identity rendered by the default `UserAvatar` slot. */
|
|
2654
|
+
currentUser?: CurrentUser;
|
|
2505
2655
|
};
|
|
2506
2656
|
|
|
2507
2657
|
/**
|
|
@@ -2534,6 +2684,24 @@ declare function UserEditComposerContainer(): react.JSX.Element;
|
|
|
2534
2684
|
|
|
2535
2685
|
declare function UserMessageContainer(): react.JSX.Element;
|
|
2536
2686
|
|
|
2687
|
+
type ApprovalNavState = {
|
|
2688
|
+
count: number;
|
|
2689
|
+
/** 0-based index into pending approvals. */
|
|
2690
|
+
index: number;
|
|
2691
|
+
canPrev: boolean;
|
|
2692
|
+
canNext: boolean;
|
|
2693
|
+
goPrev: () => void;
|
|
2694
|
+
goNext: () => void;
|
|
2695
|
+
/** Scroll to the currently selected approval (e.g. after the user scrolled away). */
|
|
2696
|
+
focusCurrent: () => void;
|
|
2697
|
+
};
|
|
2698
|
+
/**
|
|
2699
|
+
* Tracks the focused pending tool approval for the composer banner.
|
|
2700
|
+
* Auto-focuses #1 when approvals appear; after allow/deny, stays on the same
|
|
2701
|
+
* index so the next pending item fills the slot; chevrons do not wrap.
|
|
2702
|
+
*/
|
|
2703
|
+
declare function useApprovalNav(): ApprovalNavState;
|
|
2704
|
+
|
|
2537
2705
|
type ComposerBusyState = {
|
|
2538
2706
|
/** True while submitting or while the turn stream is active. */
|
|
2539
2707
|
isBusy: boolean;
|
|
@@ -2577,6 +2745,8 @@ type ComposerPauseView = {
|
|
|
2577
2745
|
toolName: string;
|
|
2578
2746
|
} | {
|
|
2579
2747
|
kind: 'ask-user';
|
|
2748
|
+
} | {
|
|
2749
|
+
kind: 'approval';
|
|
2580
2750
|
} | {
|
|
2581
2751
|
kind: 'compose';
|
|
2582
2752
|
};
|
|
@@ -2597,6 +2767,17 @@ declare const useMCPAuth: ({ callbackPath }?: UseMCPAuthOptions) => {
|
|
|
2597
2767
|
isOAuthLoading: boolean;
|
|
2598
2768
|
};
|
|
2599
2769
|
|
|
2770
|
+
type UseResourcePermissionsOptions = {
|
|
2771
|
+
resourceType: PermissionResourceType;
|
|
2772
|
+
resourceIds: readonly string[];
|
|
2773
|
+
};
|
|
2774
|
+
type UseResourcePermissionsResult = {
|
|
2775
|
+
loading: boolean;
|
|
2776
|
+
error: unknown | null;
|
|
2777
|
+
allows: (resourceId: string | null | undefined, permission: ResourcePermission) => boolean;
|
|
2778
|
+
};
|
|
2779
|
+
declare function useResourcePermissions({ resourceType, resourceIds, }: UseResourcePermissionsOptions): UseResourcePermissionsResult;
|
|
2780
|
+
|
|
2600
2781
|
/** Session metadata key for New Chat vs New Agent builder intent (wire/jsonb snake_case). */
|
|
2601
2782
|
declare const IS_CREATE_AGENT_METADATA_KEY = "is_create_agent";
|
|
2602
2783
|
/** Wire metadata values are strings (`SessionMetadataSchema`). */
|
|
@@ -2624,8 +2805,9 @@ declare function useAgentMetricsServer(): AgentMetricsServer;
|
|
|
2624
2805
|
declare function useOptionalAgentMetricsServer(): AgentMetricsServer | null;
|
|
2625
2806
|
declare function useScheduleServer(): ScheduleServer;
|
|
2626
2807
|
declare function useOptionalScheduleServer(): ScheduleServer | null;
|
|
2808
|
+
declare function useOptionalPermissionsServer(): PermissionsServer | null;
|
|
2627
2809
|
|
|
2628
|
-
declare function AgentMetricChart({ graph, definition, error }: AgentMetricChartProps): react.JSX.Element;
|
|
2810
|
+
declare function AgentMetricChart({ graph, definition, error, colorIndex }: AgentMetricChartProps): react.JSX.Element;
|
|
2629
2811
|
declare module '../../theme/SlotsProvider.js' {
|
|
2630
2812
|
interface AtomSlots {
|
|
2631
2813
|
AgentMetricChart: ComponentType<AgentMetricChartProps>;
|
|
@@ -2644,6 +2826,31 @@ interface AgentStepsSplitResult {
|
|
|
2644
2826
|
}
|
|
2645
2827
|
declare function computeAgentStepsSplit(parts: readonly AgentStepPart[], isRunning: boolean): AgentStepsSplitResult;
|
|
2646
2828
|
|
|
2829
|
+
type ApprovalRef = {
|
|
2830
|
+
id?: string;
|
|
2831
|
+
approved?: boolean;
|
|
2832
|
+
resolution?: string;
|
|
2833
|
+
};
|
|
2834
|
+
type ToolCallPart = {
|
|
2835
|
+
type: string;
|
|
2836
|
+
toolCallId?: string;
|
|
2837
|
+
toolName?: string;
|
|
2838
|
+
approval?: ApprovalRef;
|
|
2839
|
+
messages?: readonly {
|
|
2840
|
+
role: string;
|
|
2841
|
+
content: readonly ToolCallPart[];
|
|
2842
|
+
}[];
|
|
2843
|
+
};
|
|
2844
|
+
type ThreadMessageLike = {
|
|
2845
|
+
role: string;
|
|
2846
|
+
content: readonly ToolCallPart[];
|
|
2847
|
+
};
|
|
2848
|
+
/**
|
|
2849
|
+
* Returns `create_sub_agent` toolCallIds that must be expanded for `approvalId`
|
|
2850
|
+
* to mount in the DOM. Empty when the approval is on the root thread.
|
|
2851
|
+
*/
|
|
2852
|
+
declare function findSubAgentAncestorsForApproval(messages: readonly ThreadMessageLike[], approvalId: string): string[];
|
|
2853
|
+
|
|
2647
2854
|
/**
|
|
2648
2855
|
* User-facing error text. Prefers HTTP body `{ error: { message } }` when
|
|
2649
2856
|
* present (e.g. TrueForgeError), then `error.message` / `error.error.message`,
|
|
@@ -2660,9 +2867,6 @@ type DraftCatalogValue = {
|
|
|
2660
2867
|
connectors: ConnectorState[];
|
|
2661
2868
|
/** Connector logo URL keyed by connector name, sourced from the discovery catalog. */
|
|
2662
2869
|
connectorLogos: Record<string, string>;
|
|
2663
|
-
connectorsHasMore: boolean;
|
|
2664
|
-
connectorsLoadMoreFailed: boolean;
|
|
2665
|
-
connectorsLoadingMore: boolean;
|
|
2666
2870
|
loaded: boolean;
|
|
2667
2871
|
loading: boolean;
|
|
2668
2872
|
error: string | null;
|
|
@@ -2672,12 +2876,10 @@ type DraftCatalogValue = {
|
|
|
2672
2876
|
refresh: () => void;
|
|
2673
2877
|
/** Refresh connector auth state without reloading unrelated catalogs. */
|
|
2674
2878
|
refreshConnectors: () => Promise<void>;
|
|
2675
|
-
/** Append the next MCP page when `connectorsHasMore`. */
|
|
2676
|
-
loadMoreConnectors: () => void;
|
|
2677
2879
|
};
|
|
2678
2880
|
declare function DraftCatalogProvider({ children }: {
|
|
2679
2881
|
children: ReactNode;
|
|
2680
2882
|
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
|
|
2681
2883
|
declare function useDraftCatalog(): DraftCatalogValue;
|
|
2682
2884
|
|
|
2683
|
-
export { AgentCodeBlock, type AgentCodeBlockProps, type AgentCodeSnippetsProps, type AgentConfig, type AgentConfigEditor, AgentConfigEditors, type AgentConfigEditorsProps, AgentConfigPanel, type AgentConfigPanelProps, AgentConfigSection, AgentDetailsHeader, type AgentDetailsHeaderProps, AgentDetailsPage, type AgentDetailsPageProps, type AgentDetailsTab, AgentDetailsTabs, type AgentDetailsTabsProps, AgentDetailsUnavailable, type AgentDetailsUnavailableProps, AgentInstructionsDrawer, type AgentInstructionsDrawerProps, AgentMcpEditorContent, type AgentMcpEditorContentProps, AgentMetricCard, type AgentMetricCardProps, AgentMetricChart, type AgentMetricChartProps, type AgentMetricChartResult, AgentMetricsContainer, type AgentMetricsProps, AgentMetricsTimeRangeFilter, type AgentMetricsTimeRangeFilterProps, AgentMetricsView, type AgentMetricsViewProps, AgentModelConfigModal, type AgentModelConfigModalProps, AgentModelEditorContent, type AgentModelEditorContentProps, AgentModelSettingsContent, type AgentModelSettingsContentProps, AgentOverviewCard, type AgentOverviewCardProps, type AgentOverviewProps, AgentResourceConfigModal, type AgentResourceConfigModalProps, AgentResourceEditorContent, type AgentResourceEditorContentProps,
|
|
2885
|
+
export { AgentCodeBlock, type AgentCodeBlockProps, type AgentCodeSnippetsProps, type AgentConfig, type AgentConfigEditor, AgentConfigEditors, type AgentConfigEditorsProps, AgentConfigPanel, type AgentConfigPanelProps, AgentConfigSection, AgentCustomParametersEditor, type AgentCustomParametersEditorProps, AgentDetailsHeader, type AgentDetailsHeaderProps, AgentDetailsPage, type AgentDetailsPageProps, type AgentDetailsTab, AgentDetailsTabs, type AgentDetailsTabsProps, AgentDetailsUnavailable, type AgentDetailsUnavailableProps, AgentInstructionsDrawer, type AgentInstructionsDrawerProps, AgentMcpEditorContent, type AgentMcpEditorContentProps, AgentMetricCard, type AgentMetricCardProps, AgentMetricChart, type AgentMetricChartProps, type AgentMetricChartResult, AgentMetricsContainer, type AgentMetricsProps, AgentMetricsTimeRangeFilter, type AgentMetricsTimeRangeFilterProps, AgentMetricsView, type AgentMetricsViewProps, AgentModelConfigModal, type AgentModelConfigModalProps, AgentModelEditorContent, type AgentModelEditorContentProps, AgentModelSettingsContent, type AgentModelSettingsContentProps, AgentOverviewCard, type AgentOverviewCardProps, type AgentOverviewProps, AgentResourceConfigModal, type AgentResourceConfigModalProps, AgentResourceEditorContent, type AgentResourceEditorContentProps, AgentRuntimeConfigDrawer, type AgentRuntimeConfigDrawerProps, AgentRuntimeConfigFields, type AgentRuntimeConfigFieldsProps, AgentRuntimeEditorContent, type AgentRuntimeEditorContentProps, type AgentSessionDetailHeaderProps, type AgentSessionEventTimelineChartProps, type AgentSessionEventTimelineProps, type AgentSessionListRowProps, type AgentSessionMetricsStripProps, type AgentSessionTurnHeaderProps, AgentSessionsFilters, type AgentSessionsFiltersProps, type AgentSessionsProps, AgentSkillsEditorContent, type AgentSkillsEditorContentProps, type AgentStepPart, AgentStepsCard, type AgentStepsCardProps, AgentStepsContainer, type AgentStepsContainerProps, type AgentStepsSplitResult, AgentsLibrary, AgentsLibraryButton, type AgentsLibraryButtonProps, type AgentsLibraryProps, ApprovalNavBanner, type ApprovalNavBannerProps, ApprovalNavContainer, type ApprovalNavState, type AskUserAnswerDraft, type AnsweredQuestion as AskUserAnsweredQuestion, AskUserContainer, type AskUserPromptProps, type Question as AskUserQuestion, type AskUserPromptProps as AskUserQuestionCardProps, AssistantMessageBubble, type AssistantMessageBubbleProps, AssistantMessageContainer, AssistantTextContainer, type PublicAtomSlots as AtomSlots, AttachmentCard, type AttachmentCardProps, type AttachmentCardSize, AttachmentPickerButton, type AttachmentPickerButtonProps, AttachmentPreviewDialog, type AttachmentPreviewDialogProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, BottomSheet, type BottomSheetProps, type BrandChrome, type BrandConfig, type BrandImage, BrandLogo, type BrandLogoConfig, type BrandMode, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CenteredModal, type CenteredModalProps, ChatFileDownload, type ChatFileDownloadFile, type ChatFileDownloadProps, type ChatLayout, ClearChatButton, CodeEditor, type CodeEditorProps, ComposerAttachmentPickerContainer, ComposerAttachmentsContainer, ComposerBusyProvider, type ComposerBusyState, ComposerContainer, type ComposerContainerProps, ComposerLeftSection, type ComposerLeftSectionProps, type ComposerPauseView, ComposerRightSection, type ComposerRightSectionProps, ComposerSendButton, type ComposerSendButtonProps, ComposerShell, type ComposerShellProps, type ContentClassNames, type CurrentUser, CustomActionContainer, type CustomActionRendererProps, type CustomActionRenderers, CustomActionRenderersProvider, DEFAULT_AGENT_CONFIG, DEFAULT_TABLE_PAGE_SIZE, DraftAgentConfigTrigger, type DraftAgentConfigTriggerProps, DraftCapabilitiesPanel, DraftCatalogProvider, type DraftComposerAction, DraftComposerActionsMenu, type DraftComposerActionsMenuProps, DraftComposerLeftSection, DraftComposerRightSection, DraftCompositeSelector, type DraftCompositeSelectorProps, DraftModelSelector, type DraftModelSelectorProps, type FixedVariantButtonProps, HistoryLoader, HistoryLoaderContainer, type HistoryLoaderProps, IS_CREATE_AGENT_METADATA_KEY, Icon, type IconButtonProps, type IconMap, type IconProps, type LayoutProp, MCP_AUTH_POPUP_CHANNEL, Markdown, type MarkdownProps, type McpAuthCallback, type McpAuthPromptProps as McpAuthCardProps, McpAuthContainer, type McpAuthPopupMessage, type McpAuthPromptProps, type McpServer as McpAuthServer, MessageActionBar, type MessageActionBarProps, MessageAttachmentsContainer, MessageErrorBanner, type MessageErrorBannerProps, MessageGroup, type MessageGroupProps, MessageIndicator, type MessageIndicatorProps, MessageListSkeleton, type MessageListSkeletonProps, MessageTimestamp, type MessageTimestampProps, MonacoEditorCore, type MonacoEditorCoreProps, OpenUiFenceBlock, type OpenUiFenceBlockProps, PRESETS, PermissionGuard, type PermissionGuardProps, PopoverSelect, type PopoverSelectOption, type PopoverSelectProps, PostMcpOauthScreen, type ReasoningCardProps, ReasoningContainer, ResponsiveDropdownMenu, type ResponsiveDropdownMenuProps, ResumeUnavailable, ResumeUnavailableContainer, type ResumeUnavailableProps, type RoutePlace, type RoutesConfig, SandboxArtifactDownload, type SandboxArtifactDownloadProps, SandboxToolCallCard, type SandboxToolCallCardProps, SaveAgentButton, type SaveAgentButtonProps, SaveAgentForm, type SaveAgentFormProps, ScheduleFormDrawer, type ScheduleFormDrawerProps, ScheduleFormFields, type ScheduleFormFieldsProps, ScheduleLastRunsCell, type ScheduleMcpMount, ScheduleRunChip, ScheduleStatusBadge, SchedulesButton, type SchedulesButtonProps, SchedulesPage, type SchedulesPageProps, ScrollToBottomButton, type ScrollToBottomButtonProps, SelectAgentEmptyState, type SelectLibraryAgentRequest, type SemanticTokens, ServerProvider, type SessionEventTimelineSegment, type SessionEventType, type SessionTurnView, SessionsBrowserButton, type SessionsBrowserButtonProps, SessionsPage, ShellActionsActionSlot, type ShellMode, ShellModeProvider, SideDrawer, type SideDrawerAnchor, type SideDrawerProps, type SideDrawerSize, type SlotOverrides, SlotsProvider, SubAgentCard, type SubAgentCardProps, Switch, type SwitchProps, type SwitchSize, SyntaxHighlighter, type SyntaxHighlighterProps, TABLE_PAGE_SIZE_OPTIONS, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, type TablePaginationProps, type TableProps, TableRow, type TableRowProps, TableTokenPagination, type TableTokenPaginationProps, TestScheduleScreen, type TestScheduleScreenProps, type ThemeConfig, type IconProps$1 as ThemeIconProps, type ThemeMode, type ThemePreset, ThemeProvider, Thread, ThreadComposerAreaShell, type ThreadComposerAreaShellProps, ThreadContainer, type ThreadContainerProps, type ThreadGroupPart, ThreadListContainer, type ThreadListContainerProps, ThreadListEmptyState, type ThreadListEmptyStateProps, ThreadListNewButton, type ThreadListNewButtonProps, ThreadListRow, type ThreadListRowProps, ThreadListRowSkeleton, type ThreadListRowSkeletonProps, ThreadListShell, type ThreadListShellProps, type ThreadPauseState, ThreadRootShell, type ThreadRootShellProps, ThreadViewportShell, type ThreadViewportShellProps, Toast, type ToastProps, ToastStack, type ToastStackProps, ToasterProvider, ToolApprovalBar, type ToolApprovalBarProps, ToolApprovalContainer, type ToolApprovalOption, ToolCallCard, type ToolCallCardProps, ToolCallContainer, ToolCallContentBlock, ToolCallContentBlockContainer, type ToolCallContentBlockProps, type ToolCallStatus, ToolGroupCard, type ToolGroupCardProps, ToolGroupContainer, type TrueForgeBuiltInServerConfig, type TrueForgeServerConfig, TrueForgeUI, type TrueForgeUIProps, TrueFoundryChatProvider, type TrueFoundryChatProviderProps, USER_MESSAGE_ATTACHMENT_PREVIEW_REM, type UseMCPAuthOptions, type UseResourcePermissionsOptions, type UseResourcePermissionsResult, UserAvatar, type UserAvatarProps, UserEditComposerContainer, UserMessageActionBar, type UserMessageActionBarProps, UserMessageBubble, type UserMessageBubbleProps, UserMessageContainer, UserMessageEdit, type UserMessageEditProps, WelcomeScreen, type WelcomeScreenProps, computeAgentStepsSplit, defaultSlots, findSubAgentAncestorsForApproval, getErrorMessage, isCreateAgentMetadataValue, libraryAgentId, preloadMarkdownOpenUI, readSessionIsCreateAgent, resolveBrandChrome, resolvePresetTokens, sessionIsCreateAgent, shellIsCreateAgent, shellIsMutable, threadHasPendingMcpAuth, useAgentMetricsServer, useAgentSessionsServer, useApprovalNav, useBrand, useBrandName, useCatalogServer, useComposerBusyState, useComposerPauseView, useContentClassNames, useDraftCatalog, useMCPAuth, useOptionalAgentMetricsServer, useOptionalAgentSessionsServer, useOptionalCatalogServer, useOptionalContentClassNames, useOptionalCurrentUser, useOptionalCustomActionRenderers, useOptionalPermissionsServer, useOptionalScheduleServer, useOptionalServer, useOptionalShellMode, useResourcePermissions, useScheduleServer, useServer, useServerCapabilities, useShellMode, useSlot, useTheme, useThemeIcons, useThemeMode, useToaster, useToasterOptional };
|