@truefoundry/trueforge-ui 0.3.0-rc.2 → 0.3.0-rc.4
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 +63 -0
- package/README.md +18 -10
- package/dist/{AgentCodeSnippets-637HQUXD.js → AgentCodeSnippets-U6KQWVBJ.js} +38 -23
- package/dist/AgentCodeSnippets-U6KQWVBJ.js.map +1 -0
- package/dist/AgentMetricChart-3D6FUFO6.js +15 -0
- package/dist/{AgentOverview-3FJ5EE6N.js → AgentOverview-RLJ6HZCN.js} +7 -7
- package/dist/{AgentSessionEventTimeline-VELWUYPR.js → AgentSessionEventTimeline-CDXRRUZQ.js} +8 -8
- package/dist/{AgentSessionEventTimeline-VELWUYPR.js.map → AgentSessionEventTimeline-CDXRRUZQ.js.map} +1 -1
- package/dist/{AgentSessionEventTimelineChart-CUKETHWM.js → AgentSessionEventTimelineChart-S2WX6ZEA.js} +12 -12
- package/dist/AgentSessionEventTimelineChart-S2WX6ZEA.js.map +1 -0
- package/dist/{AgentSessions-T7MOGOTZ.js → AgentSessions-UI3L7XY2.js} +72 -24
- package/dist/AgentSessions-UI3L7XY2.js.map +1 -0
- package/dist/{ConnectorSettings-ESZ2RSRG.js → ConnectorSettings-OIGAC2HU.js} +156 -116
- package/dist/ConnectorSettings-OIGAC2HU.js.map +1 -0
- package/dist/{DockLayout-NLFNU6F2.js → DockLayout-J5BRKMJZ.js} +10 -10
- package/dist/{DrawerLayout-PR3SMKA6.js → DrawerLayout-65YHGHIF.js} +13 -11
- package/dist/DrawerLayout-65YHGHIF.js.map +1 -0
- package/dist/{ModelSettings-LYW64IRR.js → ModelSettings-VP6WCMGT.js} +10 -10
- package/dist/{ModelSettings-LYW64IRR.js.map → ModelSettings-VP6WCMGT.js.map} +1 -1
- package/dist/OpenUiFenceBlock-UTDCTNTM.js +9 -0
- package/dist/{SandboxSettings-DF64LHYI.js → SandboxSettings-GTZT7LD6.js} +9 -9
- package/dist/SchedulesPage-ARWU7BZF.js +15 -0
- package/dist/{SettingsBuilder-LSXK2VN4.js → SettingsBuilder-A4BPYIFZ.js} +8 -8
- package/dist/{ShellRouteSync-B22IAV2W.js → ShellRouteSync-SSLGM35F.js} +157 -22
- package/dist/ShellRouteSync-SSLGM35F.js.map +1 -0
- package/dist/{SidebarLayout-XW6LXB7R.js → SidebarLayout-MFDOGAVJ.js} +74 -53
- package/dist/SidebarLayout-MFDOGAVJ.js.map +1 -0
- package/dist/{SkillSettings-64VXUO6J.js → SkillSettings-WQPUQ5TE.js} +18 -13
- package/dist/SkillSettings-WQPUQ5TE.js.map +1 -0
- package/dist/{TrueForgeUIWithRouter-3TSLV22Q.js → TrueForgeUIWithRouter-5CDICMCE.js} +9 -9
- package/dist/{WidgetLayout-Q5P7PYSJ.js → WidgetLayout-HE7E4UL5.js} +10 -10
- package/dist/{chunk-SQGT43Z3.js → chunk-2BDTG544.js} +21 -4
- package/dist/chunk-2BDTG544.js.map +1 -0
- package/dist/{chunk-YQO2NMJ3.js → chunk-2OKGEU6X.js} +4425 -2982
- package/dist/chunk-2OKGEU6X.js.map +1 -0
- package/dist/{chunk-FQK2XVVE.js → chunk-6CFZHEYH.js} +225 -72
- package/dist/chunk-6CFZHEYH.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-E4GVP6PM.js +195 -0
- package/dist/chunk-E4GVP6PM.js.map +1 -0
- package/dist/{chunk-LGRHHFHN.js → chunk-F7ZAQIRE.js} +166 -45
- package/dist/chunk-F7ZAQIRE.js.map +1 -0
- package/dist/{chunk-VJ7BZGAF.js → chunk-GTTMLDCI.js} +2 -2
- package/dist/{chunk-5I2COQNL.js → chunk-IOPHQEUY.js} +13 -11
- package/dist/chunk-IOPHQEUY.js.map +1 -0
- package/dist/{chunk-G2TUAD65.js → chunk-KCYBMKQL.js} +235 -108
- package/dist/chunk-KCYBMKQL.js.map +1 -0
- package/dist/{chunk-H6WTY5PM.js → chunk-MAA7U4RF.js} +17 -227
- package/dist/chunk-MAA7U4RF.js.map +1 -0
- package/dist/{chunk-GXYAOAK5.js → chunk-MJULWIPI.js} +224 -162
- package/dist/chunk-MJULWIPI.js.map +1 -0
- package/dist/chunk-P7J2ABEP.js +587 -0
- package/dist/chunk-P7J2ABEP.js.map +1 -0
- package/dist/{chunk-VUMGMGKZ.js → chunk-TGKQRK3S.js} +52 -8
- package/dist/chunk-TGKQRK3S.js.map +1 -0
- package/dist/{chunk-I3AL54MA.js → chunk-VXKNS7FH.js} +28 -24
- package/dist/chunk-VXKNS7FH.js.map +1 -0
- package/dist/chunk-XO3FYN2W.js +517 -0
- package/dist/chunk-XO3FYN2W.js.map +1 -0
- package/dist/{createTrueFoundryServer-CmZnBh_l.d.ts → createTrueFoundryServer-B_FYhSdn.d.ts} +8 -5
- package/dist/index.d.ts +300 -89
- package/dist/index.js +65 -488
- package/dist/index.js.map +1 -1
- package/dist/plugins/trueforge-agent-server-adapter/index.d.ts +44 -13
- package/dist/plugins/trueforge-agent-server-adapter/index.js +73 -37
- 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-3D6FUFO6.js.map} +0 -0
- /package/dist/{AgentOverview-3FJ5EE6N.js.map → AgentOverview-RLJ6HZCN.js.map} +0 -0
- /package/dist/{DockLayout-NLFNU6F2.js.map → DockLayout-J5BRKMJZ.js.map} +0 -0
- /package/dist/{OpenUiFenceBlock-JEPNPJ7U.js.map → OpenUiFenceBlock-UTDCTNTM.js.map} +0 -0
- /package/dist/{SandboxSettings-DF64LHYI.js.map → SandboxSettings-GTZT7LD6.js.map} +0 -0
- /package/dist/{SchedulesPage-WQU4H25F.js.map → SchedulesPage-ARWU7BZF.js.map} +0 -0
- /package/dist/{SettingsBuilder-LSXK2VN4.js.map → SettingsBuilder-A4BPYIFZ.js.map} +0 -0
- /package/dist/{TrueForgeUIWithRouter-3TSLV22Q.js.map → TrueForgeUIWithRouter-5CDICMCE.js.map} +0 -0
- /package/dist/{WidgetLayout-Q5P7PYSJ.js.map → WidgetLayout-HE7E4UL5.js.map} +0 -0
- /package/dist/{chunk-VJ7BZGAF.js.map → chunk-GTTMLDCI.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, CreatedBySubject, 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;
|
|
@@ -558,6 +562,9 @@ type AgentMetricsViewProps = {
|
|
|
558
562
|
timeRange: SessionTimeRange;
|
|
559
563
|
onTimeRangeChange: (range: SessionTimeRange) => void;
|
|
560
564
|
};
|
|
565
|
+
type AgentMetricStatisticsProps = {
|
|
566
|
+
meters: AgentMetricMeter[];
|
|
567
|
+
};
|
|
561
568
|
type AgentMetricsTimeRangeFilterProps = {
|
|
562
569
|
timeRange: SessionTimeRange;
|
|
563
570
|
onTimeRangeChange: (range: SessionTimeRange) => void;
|
|
@@ -569,6 +576,7 @@ type AgentMetricChartProps = {
|
|
|
569
576
|
graph?: AgentMetricGraph;
|
|
570
577
|
definition: AgentMetricChartDefinition;
|
|
571
578
|
error?: string;
|
|
579
|
+
colorIndex?: number;
|
|
572
580
|
};
|
|
573
581
|
type AgentOverviewProps = {
|
|
574
582
|
detail: AgentDetail;
|
|
@@ -612,7 +620,7 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
612
620
|
}
|
|
613
621
|
}
|
|
614
622
|
|
|
615
|
-
declare function AgentDetailsTabs({ activeTab, onTabChange, showMetrics }: AgentDetailsTabsProps): react.JSX.Element;
|
|
623
|
+
declare function AgentDetailsTabs({ activeTab, onTabChange, showMetrics, showSchedules, }: AgentDetailsTabsProps): react.JSX.Element;
|
|
616
624
|
declare module '../../theme/SlotsProvider.js' {
|
|
617
625
|
interface AtomSlots {
|
|
618
626
|
AgentDetailsTabs: typeof AgentDetailsTabs;
|
|
@@ -640,9 +648,11 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
640
648
|
}
|
|
641
649
|
}
|
|
642
650
|
|
|
651
|
+
declare function AgentMetricStatistics({ meters }: AgentMetricStatisticsProps): react.JSX.Element;
|
|
643
652
|
declare function AgentMetricsView({ meters, meterError, charts, chartsLoading, chartsError, timeRange, onTimeRangeChange, }: AgentMetricsViewProps): react.JSX.Element;
|
|
644
653
|
declare module '../../theme/SlotsProvider.js' {
|
|
645
654
|
interface AtomSlots {
|
|
655
|
+
AgentMetricStatistics: ComponentType<AgentMetricStatisticsProps>;
|
|
646
656
|
AgentMetricsView: ComponentType<AgentMetricsViewProps>;
|
|
647
657
|
}
|
|
648
658
|
}
|
|
@@ -654,14 +664,14 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
654
664
|
}
|
|
655
665
|
}
|
|
656
666
|
|
|
657
|
-
declare function AgentSessionDetailHeader({ title, sessionId, agentId, createdAt, view, onClose, resumeHref, onResume, resumeLabel, }: AgentSessionDetailHeaderProps): react.JSX.Element;
|
|
667
|
+
declare function AgentSessionDetailHeader({ title, sessionId, agentId, createdAt, view, onClose, resumeHref, onResume, resumeLabel, canResume, }: AgentSessionDetailHeaderProps): react.JSX.Element;
|
|
658
668
|
declare module '../../theme/SlotsProvider.js' {
|
|
659
669
|
interface AtomSlots {
|
|
660
670
|
AgentSessionDetailHeader: typeof AgentSessionDetailHeader;
|
|
661
671
|
}
|
|
662
672
|
}
|
|
663
673
|
|
|
664
|
-
declare function AgentSessionListRow({ title, agentName, lastActivityAt, metrics, active, onSelect, }: AgentSessionListRowProps): react.JSX.Element;
|
|
674
|
+
declare function AgentSessionListRow({ title, agentName, sourceType, lastActivityAt, metrics, active, onSelect, }: AgentSessionListRowProps): react.JSX.Element;
|
|
665
675
|
declare module '../../theme/SlotsProvider.js' {
|
|
666
676
|
interface AtomSlots {
|
|
667
677
|
AgentSessionListRow: typeof AgentSessionListRow;
|
|
@@ -709,12 +719,18 @@ type AgentsLibraryProps = {
|
|
|
709
719
|
};
|
|
710
720
|
type AgentScheduleSummary = {
|
|
711
721
|
count: number;
|
|
712
|
-
|
|
722
|
+
pausedCount: number;
|
|
723
|
+
activeNames: string[];
|
|
724
|
+
pausedNames: string[];
|
|
713
725
|
};
|
|
714
726
|
type AgentLibraryRowProps = {
|
|
715
727
|
agent: AgentLibraryEntry;
|
|
716
728
|
canMutate: boolean;
|
|
729
|
+
canUseAgent?: boolean;
|
|
730
|
+
canManageAgent?: boolean;
|
|
731
|
+
canDeleteAgent?: boolean;
|
|
717
732
|
canManageSchedules: boolean;
|
|
733
|
+
showCreatedBy?: boolean;
|
|
718
734
|
scheduleSummary?: AgentScheduleSummary | null;
|
|
719
735
|
onOpenSchedules?: () => void;
|
|
720
736
|
onCreateSchedule?: () => void;
|
|
@@ -723,7 +739,7 @@ type AgentLibraryRowProps = {
|
|
|
723
739
|
onEdit: () => void;
|
|
724
740
|
onManageSchedules?: () => void;
|
|
725
741
|
};
|
|
726
|
-
declare function AgentLibraryRow({ agent, canMutate, canManageSchedules, scheduleSummary, onOpenSchedules, onCreateSchedule, onOpen, onTry, onEdit, onManageSchedules, }: AgentLibraryRowProps): react.JSX.Element;
|
|
742
|
+
declare function AgentLibraryRow({ agent, canMutate, canUseAgent, canManageAgent, canDeleteAgent, canManageSchedules, showCreatedBy, scheduleSummary, onOpenSchedules, onCreateSchedule, onOpen, onTry, onEdit, onManageSchedules, }: AgentLibraryRowProps): react.JSX.Element;
|
|
727
743
|
declare function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps): react.JSX.Element | null;
|
|
728
744
|
declare module '../theme/SlotsProvider.js' {
|
|
729
745
|
interface AtomSlots {
|
|
@@ -743,6 +759,25 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
743
759
|
}
|
|
744
760
|
}
|
|
745
761
|
|
|
762
|
+
type ApprovalNavBannerProps = {
|
|
763
|
+
total: number;
|
|
764
|
+
/** 1-based index for display, e.g. 1 in "(1/4)". */
|
|
765
|
+
current: number;
|
|
766
|
+
canPrev: boolean;
|
|
767
|
+
canNext: boolean;
|
|
768
|
+
onPrev: () => void;
|
|
769
|
+
onNext: () => void;
|
|
770
|
+
/** Scroll the thread to the currently selected approval. */
|
|
771
|
+
onFocusCurrent: () => void;
|
|
772
|
+
className?: string;
|
|
773
|
+
};
|
|
774
|
+
declare function ApprovalNavBanner({ total, current, canPrev, canNext, onPrev, onNext, onFocusCurrent, className, }: ApprovalNavBannerProps): react.JSX.Element;
|
|
775
|
+
declare module '../theme/SlotsProvider.js' {
|
|
776
|
+
interface AtomSlots {
|
|
777
|
+
ApprovalNavBanner: typeof ApprovalNavBanner;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
746
781
|
type AssistantMessageBubbleProps = {
|
|
747
782
|
children: ReactNode;
|
|
748
783
|
error?: ReactNode;
|
|
@@ -946,12 +981,13 @@ type AgentConfigEditorsProps = {
|
|
|
946
981
|
sandboxAvailable?: boolean;
|
|
947
982
|
instructions?: string;
|
|
948
983
|
onInstructionsSave?: (draft: AgentInstructionsDraft) => void;
|
|
984
|
+
loadMcpConnector?: (connectorId: string) => Promise<ConnectorState | undefined>;
|
|
949
985
|
loadMcpTools?: (connectorId: string) => Promise<McpToolSelection[]>;
|
|
950
986
|
onRefreshConnectors?: () => Promise<void>;
|
|
951
987
|
onChange: (spec: AgentSpec) => void;
|
|
952
988
|
onClose: () => void;
|
|
953
989
|
};
|
|
954
|
-
declare function AgentConfigEditors({ editor, spec, models, connectors, skills, loading, error, skillsDisabled, sandboxAvailable, instructions, onInstructionsSave, loadMcpTools, onRefreshConnectors, onChange, onClose, }: AgentConfigEditorsProps): react.JSX.Element;
|
|
990
|
+
declare function AgentConfigEditors({ editor, spec, models, connectors, skills, loading, error, skillsDisabled, sandboxAvailable, instructions, onInstructionsSave, loadMcpConnector, loadMcpTools, onRefreshConnectors, onChange, onClose, }: AgentConfigEditorsProps): react.JSX.Element;
|
|
955
991
|
declare module '../../theme/SlotsProvider.js' {
|
|
956
992
|
interface AtomSlots {
|
|
957
993
|
AgentConfigEditors: typeof AgentConfigEditors;
|
|
@@ -961,11 +997,16 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
961
997
|
type AgentConfigPanelProps = {
|
|
962
998
|
spec: AgentSpec;
|
|
963
999
|
model?: ModelSelection;
|
|
1000
|
+
models: ModelSelection[];
|
|
1001
|
+
modelsLoading: boolean;
|
|
1002
|
+
modelsError: string | null;
|
|
1003
|
+
skills?: AgentSkill[];
|
|
964
1004
|
skillsAvailable: boolean;
|
|
965
1005
|
instructions: string;
|
|
966
1006
|
onOpenEditor: (editor: AgentConfigEditor) => void;
|
|
967
1007
|
onChange?: (spec: AgentSpec) => void;
|
|
968
1008
|
onClose?: () => void;
|
|
1009
|
+
disabled?: boolean;
|
|
969
1010
|
};
|
|
970
1011
|
declare function AgentConfigSection({ title, description, icon, actionIcon, actionLabel, onEdit, children, }: {
|
|
971
1012
|
title?: string;
|
|
@@ -976,7 +1017,7 @@ declare function AgentConfigSection({ title, description, icon, actionIcon, acti
|
|
|
976
1017
|
onEdit?: () => void;
|
|
977
1018
|
children?: ReactNode;
|
|
978
1019
|
}): react.JSX.Element;
|
|
979
|
-
declare function AgentConfigPanel({ spec, model, skillsAvailable, instructions, onOpenEditor, onChange, onClose, }: AgentConfigPanelProps): react.JSX.Element;
|
|
1020
|
+
declare function AgentConfigPanel({ spec, model, models, modelsLoading, modelsError, skills: catalogSkills, skillsAvailable, instructions, onOpenEditor, onChange, onClose, disabled, }: AgentConfigPanelProps): react.JSX.Element;
|
|
980
1021
|
declare module '../../theme/SlotsProvider.js' {
|
|
981
1022
|
interface AtomSlots {
|
|
982
1023
|
AgentConfigPanel: typeof AgentConfigPanel;
|
|
@@ -984,21 +1025,35 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
984
1025
|
}
|
|
985
1026
|
}
|
|
986
1027
|
|
|
1028
|
+
type AgentCustomParametersEditorProps = {
|
|
1029
|
+
value: Record<string, unknown>;
|
|
1030
|
+
reservedKeys: ReadonlySet<string>;
|
|
1031
|
+
onChange: (value: Record<string, unknown>) => void;
|
|
1032
|
+
};
|
|
1033
|
+
declare function AgentCustomParametersEditor({ value, reservedKeys, onChange }: AgentCustomParametersEditorProps): react.JSX.Element;
|
|
1034
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1035
|
+
interface AtomSlots {
|
|
1036
|
+
AgentCustomParametersEditor: typeof AgentCustomParametersEditor;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
|
|
987
1040
|
type AgentMcpEditorContentProps = {
|
|
988
1041
|
spec: AgentSpec;
|
|
989
1042
|
connectors: ConnectorState[];
|
|
990
1043
|
query: string;
|
|
991
1044
|
activeConnectorId: string | null;
|
|
992
1045
|
tools: McpToolSelection[];
|
|
1046
|
+
connectorLoading: boolean;
|
|
1047
|
+
connectorError: string | null;
|
|
993
1048
|
toolsLoading: boolean;
|
|
994
1049
|
toolsError: string | null;
|
|
995
1050
|
onQueryChange: (query: string) => void;
|
|
996
1051
|
onSelectConnector: (connectorId: string) => void;
|
|
997
1052
|
onRetryTools: () => void;
|
|
998
|
-
|
|
1053
|
+
onRefreshConnector?: () => void;
|
|
999
1054
|
onChange: (spec: AgentSpec) => void;
|
|
1000
1055
|
};
|
|
1001
|
-
declare function AgentMcpEditorContent({ spec, connectors, query, activeConnectorId, tools, toolsLoading, toolsError, onQueryChange, onSelectConnector, onRetryTools,
|
|
1056
|
+
declare function AgentMcpEditorContent({ spec, connectors, query, activeConnectorId, tools, connectorLoading, connectorError, toolsLoading, toolsError, onQueryChange, onSelectConnector, onRetryTools, onRefreshConnector, onChange, }: AgentMcpEditorContentProps): react.JSX.Element;
|
|
1002
1057
|
declare module '../../theme/SlotsProvider.js' {
|
|
1003
1058
|
interface AtomSlots {
|
|
1004
1059
|
AgentMcpEditorContent: typeof AgentMcpEditorContent;
|
|
@@ -1024,7 +1079,6 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1024
1079
|
}
|
|
1025
1080
|
|
|
1026
1081
|
type AgentModelEditorContentProps = {
|
|
1027
|
-
editor: 'model' | 'model-settings';
|
|
1028
1082
|
spec: AgentSpec;
|
|
1029
1083
|
models: ModelSelection[];
|
|
1030
1084
|
loading: boolean;
|
|
@@ -1033,7 +1087,7 @@ type AgentModelEditorContentProps = {
|
|
|
1033
1087
|
onQueryChange: (query: string) => void;
|
|
1034
1088
|
onChange: (spec: AgentSpec) => void;
|
|
1035
1089
|
};
|
|
1036
|
-
declare function AgentModelEditorContent({
|
|
1090
|
+
declare function AgentModelEditorContent({ spec, models, loading, error, query, onQueryChange, onChange, }: AgentModelEditorContentProps): react.JSX.Element;
|
|
1037
1091
|
declare module '../../theme/SlotsProvider.js' {
|
|
1038
1092
|
interface AtomSlots {
|
|
1039
1093
|
AgentModelEditorContent: typeof AgentModelEditorContent;
|
|
@@ -1061,12 +1115,14 @@ type AgentResourceConfigModalProps = {
|
|
|
1061
1115
|
query: string;
|
|
1062
1116
|
activeConnectorId: string | null;
|
|
1063
1117
|
tools: McpToolSelection[];
|
|
1118
|
+
connectorLoading: boolean;
|
|
1119
|
+
connectorError: string | null;
|
|
1064
1120
|
toolsLoading: boolean;
|
|
1065
1121
|
toolsError: string | null;
|
|
1066
1122
|
onQueryChange: (query: string) => void;
|
|
1067
1123
|
onSelectConnector: (connectorId: string) => void;
|
|
1068
1124
|
onRetryTools: () => void;
|
|
1069
|
-
|
|
1125
|
+
onRefreshConnector?: () => void;
|
|
1070
1126
|
onChange: (spec: AgentSpec) => void;
|
|
1071
1127
|
onClose: () => void;
|
|
1072
1128
|
};
|
|
@@ -1086,12 +1142,14 @@ type AgentResourceEditorContentProps = {
|
|
|
1086
1142
|
query: string;
|
|
1087
1143
|
activeConnectorId: string | null;
|
|
1088
1144
|
tools: McpToolSelection[];
|
|
1145
|
+
connectorLoading: boolean;
|
|
1146
|
+
connectorError: string | null;
|
|
1089
1147
|
toolsLoading: boolean;
|
|
1090
1148
|
toolsError: string | null;
|
|
1091
1149
|
onQueryChange: (query: string) => void;
|
|
1092
1150
|
onSelectConnector: (connectorId: string) => void;
|
|
1093
1151
|
onRetryTools: () => void;
|
|
1094
|
-
|
|
1152
|
+
onRefreshConnector?: () => void;
|
|
1095
1153
|
onChange: (spec: AgentSpec) => void;
|
|
1096
1154
|
};
|
|
1097
1155
|
declare function AgentResourceEditorContent(props: AgentResourceEditorContentProps): react.JSX.Element;
|
|
@@ -1101,6 +1159,20 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1101
1159
|
}
|
|
1102
1160
|
}
|
|
1103
1161
|
|
|
1162
|
+
type AgentRuntimeConfigDrawerProps = {
|
|
1163
|
+
open: boolean;
|
|
1164
|
+
spec: AgentSpec;
|
|
1165
|
+
sandboxAvailable: boolean;
|
|
1166
|
+
onChange: (spec: AgentSpec) => void;
|
|
1167
|
+
onClose: () => void;
|
|
1168
|
+
};
|
|
1169
|
+
declare function AgentRuntimeConfigDrawer({ open, spec, sandboxAvailable, onChange, onClose, }: AgentRuntimeConfigDrawerProps): react.JSX.Element;
|
|
1170
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1171
|
+
interface AtomSlots {
|
|
1172
|
+
AgentRuntimeConfigDrawer: typeof AgentRuntimeConfigDrawer;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1104
1176
|
type AgentRuntimeConfigFieldsProps = {
|
|
1105
1177
|
value: AgentRuntimeConfig;
|
|
1106
1178
|
sandboxAvailable: boolean;
|
|
@@ -1117,20 +1189,6 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1117
1189
|
}
|
|
1118
1190
|
}
|
|
1119
1191
|
|
|
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
1192
|
type AgentRuntimeEditorContentProps = {
|
|
1135
1193
|
spec: AgentSpec;
|
|
1136
1194
|
sandboxAvailable: boolean;
|
|
@@ -1188,6 +1246,23 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1188
1246
|
}
|
|
1189
1247
|
}
|
|
1190
1248
|
|
|
1249
|
+
type DraftComposerAction = {
|
|
1250
|
+
id: string;
|
|
1251
|
+
label: string;
|
|
1252
|
+
icon: string;
|
|
1253
|
+
onSelect: () => void;
|
|
1254
|
+
};
|
|
1255
|
+
type DraftComposerActionsMenuProps = {
|
|
1256
|
+
actions: DraftComposerAction[];
|
|
1257
|
+
disabled?: boolean;
|
|
1258
|
+
};
|
|
1259
|
+
declare function DraftComposerActionsMenu({ actions, disabled }: DraftComposerActionsMenuProps): react.JSX.Element | null;
|
|
1260
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1261
|
+
interface AtomSlots {
|
|
1262
|
+
DraftComposerActionsMenu: typeof DraftComposerActionsMenu;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1191
1266
|
declare function DraftComposerLeftSection({ disabled, isRunning, onAttach }: ComposerLeftSectionProps): react.JSX.Element;
|
|
1192
1267
|
declare function DraftComposerRightSection({ disabled, isRunning }: ComposerRightSectionProps): react.JSX.Element;
|
|
1193
1268
|
declare module '../../theme/SlotsProvider.js' {
|
|
@@ -1197,9 +1272,10 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1197
1272
|
}
|
|
1198
1273
|
}
|
|
1199
1274
|
|
|
1200
|
-
declare function CatalogRow({ title, description, logo, fallbackIcon, checked, disabled, onToggle, onActivate, action, }: {
|
|
1275
|
+
declare function CatalogRow({ title, description, badge, logo, fallbackIcon, checked, disabled, onToggle, onActivate, action, }: {
|
|
1201
1276
|
title: string;
|
|
1202
1277
|
description?: string;
|
|
1278
|
+
badge?: ReactNode;
|
|
1203
1279
|
/** Catalog logo URL; when absent, `fallbackIcon` (or the title initial) is shown. */
|
|
1204
1280
|
logo?: string | undefined;
|
|
1205
1281
|
fallbackIcon?: string;
|
|
@@ -1315,6 +1391,20 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1315
1391
|
}
|
|
1316
1392
|
}
|
|
1317
1393
|
|
|
1394
|
+
type PermissionGuardProps = {
|
|
1395
|
+
allowed: boolean;
|
|
1396
|
+
children: ReactElement<{
|
|
1397
|
+
disabled?: boolean;
|
|
1398
|
+
}>;
|
|
1399
|
+
deniedMessage?: string;
|
|
1400
|
+
};
|
|
1401
|
+
declare function PermissionGuard({ allowed, children, deniedMessage, }: PermissionGuardProps): react.JSX.Element;
|
|
1402
|
+
declare module '../theme/SlotsProvider.js' {
|
|
1403
|
+
interface AtomSlots {
|
|
1404
|
+
PermissionGuard: typeof PermissionGuard;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1318
1408
|
type SandboxArtifactDownloadProps = {
|
|
1319
1409
|
code: string;
|
|
1320
1410
|
fileDownloadBaseUrl?: string;
|
|
@@ -1344,6 +1434,8 @@ type ToolCallCardProps = {
|
|
|
1344
1434
|
showResponseLine?: boolean;
|
|
1345
1435
|
responseIcon?: ReactNode;
|
|
1346
1436
|
approvalSlot?: ReactNode;
|
|
1437
|
+
/** When set, this card is the scroll/flash target for approval banner navigation. */
|
|
1438
|
+
approvalId?: string;
|
|
1347
1439
|
requestSlot?: ReactNode;
|
|
1348
1440
|
responseSlot?: ReactNode;
|
|
1349
1441
|
highlightCard?: boolean;
|
|
@@ -1351,7 +1443,7 @@ type ToolCallCardProps = {
|
|
|
1351
1443
|
mcpServerName?: string;
|
|
1352
1444
|
dataTestPrefix?: string;
|
|
1353
1445
|
};
|
|
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;
|
|
1446
|
+
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
1447
|
declare module '../theme/SlotsProvider.js' {
|
|
1356
1448
|
interface AtomSlots {
|
|
1357
1449
|
ToolCallCard: typeof ToolCallCard;
|
|
@@ -1373,10 +1465,13 @@ type SandboxToolCallCardProps = {
|
|
|
1373
1465
|
hasContent?: boolean;
|
|
1374
1466
|
onViewModeChange?: (viewMode: 'terminal' | 'code') => void;
|
|
1375
1467
|
durationText?: string;
|
|
1468
|
+
approvalSlot?: ReactNode;
|
|
1469
|
+
/** When set, this card is the scroll/flash target for approval banner navigation. */
|
|
1470
|
+
approvalId?: string;
|
|
1376
1471
|
dataTestPrefix?: string;
|
|
1377
1472
|
className?: string;
|
|
1378
1473
|
};
|
|
1379
|
-
declare function SandboxToolCallCard({ name, intent, status, expanded, onToggle, command, exitCode, argsJson, resultText, resultJson, viewMode, hasContent, onViewModeChange, durationText, dataTestPrefix, className, }: SandboxToolCallCardProps): react.JSX.Element;
|
|
1474
|
+
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
1475
|
declare module '../theme/SlotsProvider.js' {
|
|
1381
1476
|
interface AtomSlots {
|
|
1382
1477
|
SandboxToolCallCard: typeof SandboxToolCallCard;
|
|
@@ -1397,50 +1492,32 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1397
1492
|
}
|
|
1398
1493
|
}
|
|
1399
1494
|
|
|
1400
|
-
type EditableMount = {
|
|
1401
|
-
id: string;
|
|
1402
|
-
name: string;
|
|
1403
|
-
value: object;
|
|
1404
|
-
};
|
|
1405
|
-
|
|
1406
1495
|
type SaveAgentFormProps = {
|
|
1407
1496
|
intent: 'create' | 'update';
|
|
1408
1497
|
name: string;
|
|
1409
1498
|
spec: AgentSpec;
|
|
1410
|
-
modelEntry?: ModelSelection;
|
|
1411
|
-
mcpMounts: EditableMount[];
|
|
1412
|
-
skillMounts: EditableMount[];
|
|
1413
1499
|
saving: boolean;
|
|
1414
1500
|
error: string | null;
|
|
1415
1501
|
onNameChange: (name: string) => void;
|
|
1416
1502
|
onChange: (spec: AgentSpec) => void;
|
|
1417
|
-
onEdit: (editor: AgentConfigEditor) => void;
|
|
1418
|
-
onToggleMcpPreload: (id: string) => void;
|
|
1419
|
-
onRemoveMcp?: (id: string) => void;
|
|
1420
1503
|
onCancel: () => void;
|
|
1421
1504
|
onSave: () => void;
|
|
1422
1505
|
};
|
|
1423
|
-
declare function SaveAgentForm({ intent, name, spec,
|
|
1506
|
+
declare function SaveAgentForm({ intent, name, spec, saving, error, onNameChange, onCancel, onSave, }: SaveAgentFormProps): react.JSX.Element;
|
|
1424
1507
|
declare module '../theme/SlotsProvider.js' {
|
|
1425
1508
|
interface AtomSlots {
|
|
1426
1509
|
SaveAgentForm: typeof SaveAgentForm;
|
|
1427
1510
|
}
|
|
1428
1511
|
}
|
|
1429
1512
|
|
|
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;
|
|
1513
|
+
type SchedulesPageProps = {
|
|
1514
|
+
/** Lock the page to one agent when embedded in Agent Details. */
|
|
1515
|
+
agentId?: string;
|
|
1439
1516
|
};
|
|
1440
|
-
declare function
|
|
1441
|
-
declare module '
|
|
1517
|
+
declare function SchedulesPage({ agentId }: SchedulesPageProps): react.JSX.Element;
|
|
1518
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1442
1519
|
interface AtomSlots {
|
|
1443
|
-
|
|
1520
|
+
SchedulesPage: ComponentType<SchedulesPageProps>;
|
|
1444
1521
|
}
|
|
1445
1522
|
}
|
|
1446
1523
|
|
|
@@ -1529,7 +1606,7 @@ type ThreadListEmptyStateProps = {
|
|
|
1529
1606
|
};
|
|
1530
1607
|
declare function ThreadListEmptyState({ message, className }: ThreadListEmptyStateProps): react.JSX.Element;
|
|
1531
1608
|
type ThreadListShellProps = {
|
|
1532
|
-
header
|
|
1609
|
+
header?: ReactNode;
|
|
1533
1610
|
children: ReactNode;
|
|
1534
1611
|
className?: string;
|
|
1535
1612
|
};
|
|
@@ -1660,16 +1737,28 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1660
1737
|
}
|
|
1661
1738
|
}
|
|
1662
1739
|
|
|
1740
|
+
type UserAvatarProps = {
|
|
1741
|
+
labeled?: boolean;
|
|
1742
|
+
className?: string;
|
|
1743
|
+
};
|
|
1744
|
+
declare function UserAvatar({ labeled, className }: UserAvatarProps): react.JSX.Element | null;
|
|
1745
|
+
declare module '../theme/SlotsProvider.js' {
|
|
1746
|
+
interface AtomSlots {
|
|
1747
|
+
UserAvatar: typeof UserAvatar;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1663
1751
|
type UserMessageActionBarProps = {
|
|
1664
1752
|
isCopied: boolean;
|
|
1665
1753
|
editDisabled?: boolean;
|
|
1754
|
+
retryDisabled?: boolean;
|
|
1666
1755
|
createdAt?: Date | string;
|
|
1667
1756
|
onCopy: () => void;
|
|
1668
1757
|
onEdit: () => void;
|
|
1669
1758
|
onRetry: () => void;
|
|
1670
1759
|
className?: string;
|
|
1671
1760
|
};
|
|
1672
|
-
declare function UserMessageActionBar({ isCopied, editDisabled, createdAt, onCopy, onEdit, onRetry, className, }: UserMessageActionBarProps): react.JSX.Element;
|
|
1761
|
+
declare function UserMessageActionBar({ isCopied, editDisabled, retryDisabled, createdAt, onCopy, onEdit, onRetry, className, }: UserMessageActionBarProps): react.JSX.Element;
|
|
1673
1762
|
declare module '../theme/SlotsProvider.js' {
|
|
1674
1763
|
interface AtomSlots {
|
|
1675
1764
|
UserMessageActionBar: typeof UserMessageActionBar;
|
|
@@ -1734,10 +1823,13 @@ declare const defaultSlots: {
|
|
|
1734
1823
|
ComposerLeftSection: typeof ComposerLeftSection;
|
|
1735
1824
|
ComposerRightSection: typeof ComposerRightSection;
|
|
1736
1825
|
ComposerSendButton: typeof ComposerSendButton;
|
|
1826
|
+
PermissionGuard: typeof PermissionGuard;
|
|
1737
1827
|
DraftComposerLeftSection: typeof DraftComposerLeftSection;
|
|
1738
1828
|
DraftComposerRightSection: typeof DraftComposerRightSection;
|
|
1739
1829
|
DraftAgentConfigTrigger: typeof DraftAgentConfigTrigger;
|
|
1740
1830
|
DraftCapabilitiesPanel: typeof DraftCapabilitiesPanel;
|
|
1831
|
+
DraftComposerActionsMenu: typeof DraftComposerActionsMenu;
|
|
1832
|
+
AgentCustomParametersEditor: typeof AgentCustomParametersEditor;
|
|
1741
1833
|
AgentConfigEditors: typeof AgentConfigEditors;
|
|
1742
1834
|
AgentInstructionsDrawer: typeof AgentInstructionsDrawer;
|
|
1743
1835
|
AgentModelEditorContent: typeof AgentModelEditorContent;
|
|
@@ -1750,7 +1842,7 @@ declare const defaultSlots: {
|
|
|
1750
1842
|
AgentConfigPanel: typeof AgentConfigPanel;
|
|
1751
1843
|
AgentConfigSection: typeof AgentConfigSection;
|
|
1752
1844
|
AgentRuntimeConfigFields: typeof AgentRuntimeConfigFields;
|
|
1753
|
-
|
|
1845
|
+
AgentRuntimeConfigDrawer: typeof AgentRuntimeConfigDrawer;
|
|
1754
1846
|
AgentRuntimeEditorContent: typeof AgentRuntimeEditorContent;
|
|
1755
1847
|
DraftCompositeSelector: typeof DraftCompositeSelector;
|
|
1756
1848
|
CatalogRow: typeof CatalogRow;
|
|
@@ -1792,6 +1884,7 @@ declare const defaultSlots: {
|
|
|
1792
1884
|
AgentsLibrary: typeof AgentsLibrary;
|
|
1793
1885
|
AgentLibraryRow: typeof AgentLibraryRow;
|
|
1794
1886
|
AgentsLibraryButton: typeof AgentsLibraryButton;
|
|
1887
|
+
ApprovalNavBanner: typeof ApprovalNavBanner;
|
|
1795
1888
|
SessionsBrowserButton: typeof SessionsBrowserButton;
|
|
1796
1889
|
AgentDetailsPage: typeof AgentDetailsPage;
|
|
1797
1890
|
AgentDetailsHeader: typeof AgentDetailsHeader;
|
|
@@ -1803,6 +1896,7 @@ declare const defaultSlots: {
|
|
|
1803
1896
|
AgentMetricsView: typeof AgentMetricsView;
|
|
1804
1897
|
AgentMetricsTimeRangeFilter: typeof AgentMetricsTimeRangeFilter;
|
|
1805
1898
|
AgentMetricCard: typeof AgentMetricCard;
|
|
1899
|
+
AgentMetricStatistics: typeof AgentMetricStatistics;
|
|
1806
1900
|
AgentMetricChart: react.FunctionComponent<AgentMetricChartProps>;
|
|
1807
1901
|
AgentSessionDetailHeader: typeof AgentSessionDetailHeader;
|
|
1808
1902
|
AgentSessionsFilters: typeof AgentSessionsFilters;
|
|
@@ -1816,10 +1910,10 @@ declare const defaultSlots: {
|
|
|
1816
1910
|
AgentSessions: react.FunctionComponent<AgentSessionsProps>;
|
|
1817
1911
|
AgentCodeSnippets: react.FunctionComponent<AgentCodeSnippetsProps>;
|
|
1818
1912
|
AgentCodeBlock: typeof AgentCodeBlock;
|
|
1913
|
+
SchedulesPage: react.FunctionComponent<SchedulesPageProps>;
|
|
1819
1914
|
SchedulesButton: typeof SchedulesButton;
|
|
1820
1915
|
SaveAgentButton: typeof SaveAgentButton;
|
|
1821
1916
|
SaveAgentForm: typeof SaveAgentForm;
|
|
1822
|
-
SaveAgentFormFields: typeof SaveAgentFormFields;
|
|
1823
1917
|
SelectAgentEmptyState: typeof SelectAgentEmptyState;
|
|
1824
1918
|
ClearChatButton: typeof ClearChatButton;
|
|
1825
1919
|
ThreadListRowSkeleton: typeof ThreadListRowSkeleton;
|
|
@@ -1834,6 +1928,7 @@ declare const defaultSlots: {
|
|
|
1834
1928
|
Toast: typeof Toast;
|
|
1835
1929
|
ToastStack: typeof ToastStack;
|
|
1836
1930
|
ShellActionsActionSlot: typeof ShellActionsActionSlot;
|
|
1931
|
+
UserAvatar: typeof UserAvatar;
|
|
1837
1932
|
};
|
|
1838
1933
|
|
|
1839
1934
|
type PresetTokens = {
|
|
@@ -1950,10 +2045,13 @@ type CommonPopoverSelectProps<T extends string> = {
|
|
|
1950
2045
|
placeholder?: string;
|
|
1951
2046
|
disabled?: boolean;
|
|
1952
2047
|
className?: string;
|
|
2048
|
+
menuClassName?: string;
|
|
1953
2049
|
/** Which edge of the trigger the menu opens toward. Default `bottom`. */
|
|
1954
2050
|
menuPlacement?: 'top' | 'bottom';
|
|
1955
2051
|
/** When set, renders a labeled chip trigger (label | value chip + chevron). */
|
|
1956
2052
|
prefix?: string;
|
|
2053
|
+
emptyContent?: ReactNode;
|
|
2054
|
+
footer?: ReactNode;
|
|
1957
2055
|
'aria-label': string;
|
|
1958
2056
|
};
|
|
1959
2057
|
type PopoverSelectProps<T extends string> = CommonPopoverSelectProps<T> & ({
|
|
@@ -1967,6 +2065,37 @@ type PopoverSelectProps<T extends string> = CommonPopoverSelectProps<T> & ({
|
|
|
1967
2065
|
});
|
|
1968
2066
|
declare function PopoverSelect<T extends string>(props: PopoverSelectProps<T>): react.JSX.Element;
|
|
1969
2067
|
|
|
2068
|
+
type DropdownMenuProps = {
|
|
2069
|
+
trigger: react__default.ReactNode;
|
|
2070
|
+
children: react__default.ReactNode;
|
|
2071
|
+
align?: 'start' | 'end';
|
|
2072
|
+
side?: 'top' | 'bottom';
|
|
2073
|
+
className?: string;
|
|
2074
|
+
containerClassName?: string;
|
|
2075
|
+
open?: boolean;
|
|
2076
|
+
onOpenChange?: (open: boolean) => void;
|
|
2077
|
+
closeOnClick?: boolean;
|
|
2078
|
+
};
|
|
2079
|
+
|
|
2080
|
+
type ResponsiveDropdownTriggerProps = {
|
|
2081
|
+
'aria-controls'?: string;
|
|
2082
|
+
'aria-expanded'?: boolean;
|
|
2083
|
+
'aria-haspopup'?: 'dialog' | 'menu';
|
|
2084
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
2085
|
+
};
|
|
2086
|
+
type ResponsiveDropdownMenuProps = Omit<DropdownMenuProps, 'children' | 'open' | 'onOpenChange' | 'trigger'> & {
|
|
2087
|
+
trigger: ReactElement<ResponsiveDropdownTriggerProps>;
|
|
2088
|
+
children: ReactNode;
|
|
2089
|
+
open?: boolean;
|
|
2090
|
+
onOpenChange?: (open: boolean) => void;
|
|
2091
|
+
sheetLabel: string;
|
|
2092
|
+
sheetClassName?: string;
|
|
2093
|
+
};
|
|
2094
|
+
/**
|
|
2095
|
+
* Uses dropdown chrome normally and a container-bound bottom sheet in compact layouts.
|
|
2096
|
+
*/
|
|
2097
|
+
declare function ResponsiveDropdownMenu({ trigger, children, open: controlledOpen, onOpenChange, sheetLabel, sheetClassName, containerClassName, closeOnClick, ...dropdownProps }: ResponsiveDropdownMenuProps): react.JSX.Element;
|
|
2098
|
+
|
|
1970
2099
|
type SideDrawerAnchor = 'left' | 'right';
|
|
1971
2100
|
type SideDrawerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
1972
2101
|
type SideDrawerProps = {
|
|
@@ -2071,9 +2200,11 @@ type ScheduleFormFieldsProps = {
|
|
|
2071
2200
|
agentId: string;
|
|
2072
2201
|
name: string;
|
|
2073
2202
|
}>;
|
|
2203
|
+
agentOptionsLoaded?: boolean;
|
|
2074
2204
|
agentPickerDisabled?: boolean;
|
|
2205
|
+
onBuildAgent?: () => void;
|
|
2075
2206
|
};
|
|
2076
|
-
declare function ScheduleFormFields({ values, onChange, agentId, onAgentIdChange, agentOptions, agentPickerDisabled, }: ScheduleFormFieldsProps): react.JSX.Element;
|
|
2207
|
+
declare function ScheduleFormFields({ values, onChange, agentId, onAgentIdChange, agentOptions, agentOptionsLoaded, agentPickerDisabled, onBuildAgent, }: ScheduleFormFieldsProps): react.JSX.Element;
|
|
2077
2208
|
|
|
2078
2209
|
declare function ScheduleLastRunsCell({ runs }: {
|
|
2079
2210
|
runs: readonly ScheduleRun[];
|
|
@@ -2083,8 +2214,6 @@ declare function ScheduleRunChip({ run }: {
|
|
|
2083
2214
|
run: ScheduleRun;
|
|
2084
2215
|
}): react.JSX.Element;
|
|
2085
2216
|
|
|
2086
|
-
declare function SchedulesPage(): react.JSX.Element;
|
|
2087
|
-
|
|
2088
2217
|
declare function ScheduleStatusBadge({ status }: {
|
|
2089
2218
|
status: ScheduleStatus;
|
|
2090
2219
|
}): react.JSX.Element;
|
|
@@ -2125,7 +2254,12 @@ interface AgentStepsContainerProps {
|
|
|
2125
2254
|
*/
|
|
2126
2255
|
declare function AgentStepsContainer({ children, toolCount, thinkingCount, hasFinal, }: PropsWithChildren<AgentStepsContainerProps>): react.JSX.Element;
|
|
2127
2256
|
|
|
2128
|
-
|
|
2257
|
+
/** Composer banner that navigates pending tool approvals. */
|
|
2258
|
+
declare function ApprovalNavContainer(): react.JSX.Element | null;
|
|
2259
|
+
|
|
2260
|
+
declare function AskUserContainer({ disabled }: {
|
|
2261
|
+
disabled?: boolean;
|
|
2262
|
+
}): react.JSX.Element | null;
|
|
2129
2263
|
|
|
2130
2264
|
declare function AssistantMessageContainer(): react.JSX.Element;
|
|
2131
2265
|
|
|
@@ -2141,7 +2275,9 @@ type ComposerContainerProps = {
|
|
|
2141
2275
|
declare function ComposerContainer({ placeholder, }: ComposerContainerProps): react.JSX.Element;
|
|
2142
2276
|
|
|
2143
2277
|
/** Host custom-action UI for a pending client-side tool response. */
|
|
2144
|
-
declare function CustomActionContainer(
|
|
2278
|
+
declare function CustomActionContainer({ disabled }: {
|
|
2279
|
+
disabled?: boolean;
|
|
2280
|
+
}): react.JSX.Element | null;
|
|
2145
2281
|
|
|
2146
2282
|
/**
|
|
2147
2283
|
* Renders `HistoryLoader` at the top of the message list and fetches
|
|
@@ -2153,7 +2289,9 @@ declare function CustomActionContainer(): react.JSX.Element | null;
|
|
|
2153
2289
|
*/
|
|
2154
2290
|
declare function HistoryLoaderContainer(): react.JSX.Element | null;
|
|
2155
2291
|
|
|
2156
|
-
declare function McpAuthContainer(
|
|
2292
|
+
declare function McpAuthContainer({ disabled }: {
|
|
2293
|
+
disabled?: boolean;
|
|
2294
|
+
}): react.JSX.Element | null;
|
|
2157
2295
|
|
|
2158
2296
|
declare const PostMcpOauthScreen: () => react.JSX.Element;
|
|
2159
2297
|
|
|
@@ -2187,8 +2325,10 @@ declare function ThreadContainer({ composer }: ThreadContainerProps): react.JSX.
|
|
|
2187
2325
|
type ThreadListContainerProps = {
|
|
2188
2326
|
/** Called after New chat or selecting a row — used by stack/drawer chrome. */
|
|
2189
2327
|
onThreadOpen?: () => void;
|
|
2328
|
+
/** `recent-history` hides navigation and lists only persisted sessions. */
|
|
2329
|
+
variant?: 'default' | 'recent-history';
|
|
2190
2330
|
};
|
|
2191
|
-
declare function ThreadListContainer({ onThreadOpen }?: ThreadListContainerProps): react.JSX.Element;
|
|
2331
|
+
declare function ThreadListContainer({ onThreadOpen, variant }?: ThreadListContainerProps): react.JSX.Element;
|
|
2192
2332
|
|
|
2193
2333
|
type ToastContent = {
|
|
2194
2334
|
title: string;
|
|
@@ -2227,6 +2367,13 @@ declare const ToolCallContainer: ToolCallMessagePartComponent;
|
|
|
2227
2367
|
|
|
2228
2368
|
declare function ToolCallContentBlockContainer(props: ToolCallContentBlockProps): react.JSX.Element;
|
|
2229
2369
|
|
|
2370
|
+
type CurrentUser = {
|
|
2371
|
+
displayName: string;
|
|
2372
|
+
};
|
|
2373
|
+
declare function useOptionalCurrentUser(): CurrentUser | undefined;
|
|
2374
|
+
|
|
2375
|
+
type HistoryAgentIntent = 'try-agent' | 'history';
|
|
2376
|
+
|
|
2230
2377
|
type DraftPreferenceKind = 'chat' | 'agent';
|
|
2231
2378
|
|
|
2232
2379
|
/** Host-facing shell configuration for agent / library / composer chrome. */
|
|
@@ -2277,6 +2424,11 @@ type SelectLibraryAgentRequest = {
|
|
|
2277
2424
|
agentSpec?: AgentSpec;
|
|
2278
2425
|
};
|
|
2279
2426
|
type SettingsSection = 'models' | 'connectors' | 'skills' | 'sandbox';
|
|
2427
|
+
type HistoryAgentFilter = {
|
|
2428
|
+
agentId?: string;
|
|
2429
|
+
agentName: string;
|
|
2430
|
+
intent: HistoryAgentIntent;
|
|
2431
|
+
};
|
|
2280
2432
|
type ShellModeContextValue = {
|
|
2281
2433
|
mode: ShellMode;
|
|
2282
2434
|
/** Host agentConfig mode (capabilities source). */
|
|
@@ -2327,11 +2479,8 @@ type ShellModeContextValue = {
|
|
|
2327
2479
|
/** Remember plain-draft composer choices as the seed for future New Chat / New Agent. */
|
|
2328
2480
|
rememberDraftSpec: (agentSpec: AgentSpec, kind?: DraftPreferenceKind) => void;
|
|
2329
2481
|
/**
|
|
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).
|
|
2482
|
+
* Open a history session without remounting the runtime.
|
|
2483
|
+
* Prefer explicit `isMutable`; otherwise agentName means immutable.
|
|
2335
2484
|
*/
|
|
2336
2485
|
openHistorySession: (req: {
|
|
2337
2486
|
sessionId: string;
|
|
@@ -2343,18 +2492,20 @@ type ShellModeContextValue = {
|
|
|
2343
2492
|
clearChat: () => void;
|
|
2344
2493
|
/** Return library-only mode to its idle landing; no-op in other modes. */
|
|
2345
2494
|
openLibraryHome: () => void;
|
|
2346
|
-
/**
|
|
2495
|
+
/** Changes only when the chat runtime must reset. */
|
|
2347
2496
|
runtimeKey: string;
|
|
2348
2497
|
/**
|
|
2349
2498
|
* History list filter forwarded as `listSessions({ agentId })`.
|
|
2350
2499
|
* `null` = All chats. Only meaningful when `isLibraryEnabled`.
|
|
2351
2500
|
*/
|
|
2352
|
-
historyAgentFilter:
|
|
2353
|
-
setHistoryAgentFilter: (
|
|
2501
|
+
historyAgentFilter: HistoryAgentFilter | null;
|
|
2502
|
+
setHistoryAgentFilter: (filter: HistoryAgentFilter | null) => void;
|
|
2354
2503
|
/** Effective `listSessionsAgentId` for the runtime (SingleAgent locks to name). */
|
|
2355
2504
|
listSessionsAgentId: string | undefined;
|
|
2356
|
-
/** Session
|
|
2505
|
+
/** Session selected from history. */
|
|
2357
2506
|
pendingSessionId: string | undefined;
|
|
2507
|
+
/** Distinguishes repeated selections of the same session. */
|
|
2508
|
+
pendingSessionEpoch: number;
|
|
2358
2509
|
/**
|
|
2359
2510
|
* Bumped when the Agents catalog may have changed (e.g. after saveAgent).
|
|
2360
2511
|
* Library chrome should re-fetch when this changes.
|
|
@@ -2399,6 +2550,8 @@ type RoutePlace = {
|
|
|
2399
2550
|
type: 'sessionsBrowser';
|
|
2400
2551
|
} | {
|
|
2401
2552
|
type: 'schedules';
|
|
2553
|
+
} | {
|
|
2554
|
+
type: 'buildAgent';
|
|
2402
2555
|
};
|
|
2403
2556
|
/**
|
|
2404
2557
|
* Host-facing route path customization. Only honored when `withRouter`.
|
|
@@ -2419,6 +2572,8 @@ type RoutesConfig = {
|
|
|
2419
2572
|
libraryAgent?: string | false;
|
|
2420
2573
|
/** Schedules page. `false` keeps schedules overlay-only (no URL). Default `'/schedules'`. */
|
|
2421
2574
|
schedules?: string | false;
|
|
2575
|
+
/** Agent builder. `false` disables its dedicated URL. Default `'/build-agent'`. */
|
|
2576
|
+
buildAgent?: string | false;
|
|
2422
2577
|
/** Immutable "Try" agent. `false` disables. Default `'/agents/:agentName'`. */
|
|
2423
2578
|
agent?: string | false;
|
|
2424
2579
|
/** Session deep link. `false` disables. Default `'/sessions/:sessionId'`. */
|
|
@@ -2446,7 +2601,7 @@ declare function useOptionalCustomActionRenderers(): CustomActionRenderers | und
|
|
|
2446
2601
|
|
|
2447
2602
|
/**
|
|
2448
2603
|
* Built-in backends init inside `<TrueForgeUI />`.
|
|
2449
|
-
* Optional
|
|
2604
|
+
* Optional host ports are attached onto the resolved `AgentUIServer`.
|
|
2450
2605
|
*/
|
|
2451
2606
|
type TrueForgeBuiltInServerConfig = {
|
|
2452
2607
|
type: 'truefoundry';
|
|
@@ -2454,6 +2609,7 @@ type TrueForgeBuiltInServerConfig = {
|
|
|
2454
2609
|
controlPlaneURL: string;
|
|
2455
2610
|
gatewayPlaneURL?: string;
|
|
2456
2611
|
catalog?: CatalogServer;
|
|
2612
|
+
permissions?: PermissionsServer;
|
|
2457
2613
|
} | {
|
|
2458
2614
|
type: 'trueforge';
|
|
2459
2615
|
/** Harness API root. Defaults to `'/'` (same-origin / proxied). */
|
|
@@ -2463,6 +2619,7 @@ type TrueForgeBuiltInServerConfig = {
|
|
|
2463
2619
|
/** Custom fetch (cookie sessions, auth interceptors). */
|
|
2464
2620
|
fetch?: typeof fetch;
|
|
2465
2621
|
catalog?: CatalogServer;
|
|
2622
|
+
permissions?: PermissionsServer;
|
|
2466
2623
|
};
|
|
2467
2624
|
/**
|
|
2468
2625
|
* `server` prop for `<TrueForgeUI />`: a built-in config, or a ready
|
|
@@ -2502,6 +2659,8 @@ type TrueForgeUIProps = {
|
|
|
2502
2659
|
withRouter?: boolean;
|
|
2503
2660
|
/** URL path customization; only honored when `withRouter`. */
|
|
2504
2661
|
routes?: RoutesConfig;
|
|
2662
|
+
/** Optional identity rendered by the default `UserAvatar` slot. */
|
|
2663
|
+
currentUser?: CurrentUser;
|
|
2505
2664
|
};
|
|
2506
2665
|
|
|
2507
2666
|
/**
|
|
@@ -2534,6 +2693,24 @@ declare function UserEditComposerContainer(): react.JSX.Element;
|
|
|
2534
2693
|
|
|
2535
2694
|
declare function UserMessageContainer(): react.JSX.Element;
|
|
2536
2695
|
|
|
2696
|
+
type ApprovalNavState = {
|
|
2697
|
+
count: number;
|
|
2698
|
+
/** 0-based index into pending approvals. */
|
|
2699
|
+
index: number;
|
|
2700
|
+
canPrev: boolean;
|
|
2701
|
+
canNext: boolean;
|
|
2702
|
+
goPrev: () => void;
|
|
2703
|
+
goNext: () => void;
|
|
2704
|
+
/** Scroll to the currently selected approval (e.g. after the user scrolled away). */
|
|
2705
|
+
focusCurrent: () => void;
|
|
2706
|
+
};
|
|
2707
|
+
/**
|
|
2708
|
+
* Tracks the focused pending tool approval for the composer banner.
|
|
2709
|
+
* Auto-focuses #1 when approvals appear; after allow/deny, stays on the same
|
|
2710
|
+
* index so the next pending item fills the slot; chevrons do not wrap.
|
|
2711
|
+
*/
|
|
2712
|
+
declare function useApprovalNav(): ApprovalNavState;
|
|
2713
|
+
|
|
2537
2714
|
type ComposerBusyState = {
|
|
2538
2715
|
/** True while submitting or while the turn stream is active. */
|
|
2539
2716
|
isBusy: boolean;
|
|
@@ -2577,6 +2754,8 @@ type ComposerPauseView = {
|
|
|
2577
2754
|
toolName: string;
|
|
2578
2755
|
} | {
|
|
2579
2756
|
kind: 'ask-user';
|
|
2757
|
+
} | {
|
|
2758
|
+
kind: 'approval';
|
|
2580
2759
|
} | {
|
|
2581
2760
|
kind: 'compose';
|
|
2582
2761
|
};
|
|
@@ -2597,6 +2776,17 @@ declare const useMCPAuth: ({ callbackPath }?: UseMCPAuthOptions) => {
|
|
|
2597
2776
|
isOAuthLoading: boolean;
|
|
2598
2777
|
};
|
|
2599
2778
|
|
|
2779
|
+
type UseResourcePermissionsOptions = {
|
|
2780
|
+
resourceType: PermissionResourceType;
|
|
2781
|
+
resourceIds: readonly string[];
|
|
2782
|
+
};
|
|
2783
|
+
type UseResourcePermissionsResult = {
|
|
2784
|
+
loading: boolean;
|
|
2785
|
+
error: unknown | null;
|
|
2786
|
+
allows: (resourceId: string | null | undefined, permission: ResourcePermission) => boolean;
|
|
2787
|
+
};
|
|
2788
|
+
declare function useResourcePermissions({ resourceType, resourceIds, }: UseResourcePermissionsOptions): UseResourcePermissionsResult;
|
|
2789
|
+
|
|
2600
2790
|
/** Session metadata key for New Chat vs New Agent builder intent (wire/jsonb snake_case). */
|
|
2601
2791
|
declare const IS_CREATE_AGENT_METADATA_KEY = "is_create_agent";
|
|
2602
2792
|
/** Wire metadata values are strings (`SessionMetadataSchema`). */
|
|
@@ -2624,8 +2814,9 @@ declare function useAgentMetricsServer(): AgentMetricsServer;
|
|
|
2624
2814
|
declare function useOptionalAgentMetricsServer(): AgentMetricsServer | null;
|
|
2625
2815
|
declare function useScheduleServer(): ScheduleServer;
|
|
2626
2816
|
declare function useOptionalScheduleServer(): ScheduleServer | null;
|
|
2817
|
+
declare function useOptionalPermissionsServer(): PermissionsServer | null;
|
|
2627
2818
|
|
|
2628
|
-
declare function AgentMetricChart({ graph, definition, error }: AgentMetricChartProps): react.JSX.Element;
|
|
2819
|
+
declare function AgentMetricChart({ graph, definition, error, colorIndex }: AgentMetricChartProps): react.JSX.Element;
|
|
2629
2820
|
declare module '../../theme/SlotsProvider.js' {
|
|
2630
2821
|
interface AtomSlots {
|
|
2631
2822
|
AgentMetricChart: ComponentType<AgentMetricChartProps>;
|
|
@@ -2644,6 +2835,31 @@ interface AgentStepsSplitResult {
|
|
|
2644
2835
|
}
|
|
2645
2836
|
declare function computeAgentStepsSplit(parts: readonly AgentStepPart[], isRunning: boolean): AgentStepsSplitResult;
|
|
2646
2837
|
|
|
2838
|
+
type ApprovalRef = {
|
|
2839
|
+
id?: string;
|
|
2840
|
+
approved?: boolean;
|
|
2841
|
+
resolution?: string;
|
|
2842
|
+
};
|
|
2843
|
+
type ToolCallPart = {
|
|
2844
|
+
type: string;
|
|
2845
|
+
toolCallId?: string;
|
|
2846
|
+
toolName?: string;
|
|
2847
|
+
approval?: ApprovalRef;
|
|
2848
|
+
messages?: readonly {
|
|
2849
|
+
role: string;
|
|
2850
|
+
content: readonly ToolCallPart[];
|
|
2851
|
+
}[];
|
|
2852
|
+
};
|
|
2853
|
+
type ThreadMessageLike = {
|
|
2854
|
+
role: string;
|
|
2855
|
+
content: readonly ToolCallPart[];
|
|
2856
|
+
};
|
|
2857
|
+
/**
|
|
2858
|
+
* Returns `create_sub_agent` toolCallIds that must be expanded for `approvalId`
|
|
2859
|
+
* to mount in the DOM. Empty when the approval is on the root thread.
|
|
2860
|
+
*/
|
|
2861
|
+
declare function findSubAgentAncestorsForApproval(messages: readonly ThreadMessageLike[], approvalId: string): string[];
|
|
2862
|
+
|
|
2647
2863
|
/**
|
|
2648
2864
|
* User-facing error text. Prefers HTTP body `{ error: { message } }` when
|
|
2649
2865
|
* present (e.g. TrueForgeError), then `error.message` / `error.error.message`,
|
|
@@ -2660,9 +2876,6 @@ type DraftCatalogValue = {
|
|
|
2660
2876
|
connectors: ConnectorState[];
|
|
2661
2877
|
/** Connector logo URL keyed by connector name, sourced from the discovery catalog. */
|
|
2662
2878
|
connectorLogos: Record<string, string>;
|
|
2663
|
-
connectorsHasMore: boolean;
|
|
2664
|
-
connectorsLoadMoreFailed: boolean;
|
|
2665
|
-
connectorsLoadingMore: boolean;
|
|
2666
2879
|
loaded: boolean;
|
|
2667
2880
|
loading: boolean;
|
|
2668
2881
|
error: string | null;
|
|
@@ -2672,12 +2885,10 @@ type DraftCatalogValue = {
|
|
|
2672
2885
|
refresh: () => void;
|
|
2673
2886
|
/** Refresh connector auth state without reloading unrelated catalogs. */
|
|
2674
2887
|
refreshConnectors: () => Promise<void>;
|
|
2675
|
-
/** Append the next MCP page when `connectorsHasMore`. */
|
|
2676
|
-
loadMoreConnectors: () => void;
|
|
2677
2888
|
};
|
|
2678
2889
|
declare function DraftCatalogProvider({ children }: {
|
|
2679
2890
|
children: ReactNode;
|
|
2680
2891
|
}): 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
2892
|
declare function useDraftCatalog(): DraftCatalogValue;
|
|
2682
2893
|
|
|
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,
|
|
2894
|
+
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, AgentMetricStatistics, type AgentMetricStatisticsProps, 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 };
|