@truefoundry/trueforge-ui 0.3.0-rc.1 → 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 +70 -0
- package/README.md +22 -7
- package/dist/{AgentCodeSnippets-NZOFJE57.js → AgentCodeSnippets-N546FNNS.js} +38 -23
- package/dist/AgentCodeSnippets-N546FNNS.js.map +1 -0
- package/dist/AgentMetricChart-YWJYVYYA.js +15 -0
- package/dist/{AgentOverview-EEBHJC32.js → AgentOverview-VF74XC7I.js} +7 -7
- package/dist/{AgentSessionEventTimeline-26Z6IB3B.js → AgentSessionEventTimeline-RFR6LQMY.js} +19 -10
- package/dist/AgentSessionEventTimeline-RFR6LQMY.js.map +1 -0
- package/dist/{AgentSessionEventTimelineChart-CGCU7WBK.js → AgentSessionEventTimelineChart-27CQF6FX.js} +144 -57
- package/dist/AgentSessionEventTimelineChart-27CQF6FX.js.map +1 -0
- package/dist/{AgentSessions-3MPDZASK.js → AgentSessions-4IVX2SGD.js} +36 -12
- package/dist/AgentSessions-4IVX2SGD.js.map +1 -0
- package/dist/{ConnectorSettings-MXFRWWR6.js → ConnectorSettings-R5VEP7BO.js} +162 -126
- package/dist/ConnectorSettings-R5VEP7BO.js.map +1 -0
- package/dist/{DockLayout-LM4AFMFY.js → DockLayout-F44RWGEY.js} +10 -10
- package/dist/{DrawerLayout-JR3O6RRB.js → DrawerLayout-SQ323AVM.js} +14 -12
- package/dist/DrawerLayout-SQ323AVM.js.map +1 -0
- package/dist/{ModelSettings-G7IFNC2Y.js → ModelSettings-6QLS63HM.js} +22 -28
- package/dist/ModelSettings-6QLS63HM.js.map +1 -0
- package/dist/OpenUiFenceBlock-4ROX3G4X.js +9 -0
- package/dist/{SandboxSettings-NXAANMAX.js → SandboxSettings-OLKDXIQS.js} +17 -21
- package/dist/SandboxSettings-OLKDXIQS.js.map +1 -0
- package/dist/SchedulesPage-TMOTK6DR.js +15 -0
- package/dist/{SettingsBuilder-L34IQ56S.js → SettingsBuilder-GISAH2WU.js} +8 -8
- package/dist/{ShellRouteSync-CEBETGEJ.js → ShellRouteSync-EN33DUQ7.js} +171 -26
- package/dist/ShellRouteSync-EN33DUQ7.js.map +1 -0
- package/dist/{SidebarLayout-A2HJPPHS.js → SidebarLayout-35K4AKTC.js} +80 -58
- package/dist/SidebarLayout-35K4AKTC.js.map +1 -0
- package/dist/{SkillSettings-FGGMSUNO.js → SkillSettings-JSX2BTII.js} +24 -22
- package/dist/SkillSettings-JSX2BTII.js.map +1 -0
- package/dist/{TrueForgeUIWithRouter-MZVJWJMB.js → TrueForgeUIWithRouter-6VCR7ES3.js} +9 -9
- package/dist/{WidgetLayout-6QM45OQQ.js → WidgetLayout-RKBSN2FZ.js} +10 -10
- package/dist/{chunk-ZTMKFZQ3.js → chunk-2O5EJ6QS.js} +4440 -3042
- 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-WVE3F724.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-CYHJDKFB.js → chunk-F5QVQIBH.js} +172 -46
- package/dist/chunk-F5QVQIBH.js.map +1 -0
- package/dist/{chunk-FJW36PD7.js → chunk-GIPFF6FZ.js} +28 -24
- package/dist/chunk-GIPFF6FZ.js.map +1 -0
- package/dist/{chunk-6O6FWUDW.js → chunk-GSJAYYLR.js} +233 -195
- package/dist/chunk-GSJAYYLR.js.map +1 -0
- package/dist/{chunk-MPNSO7E6.js → chunk-J5BPHEDT.js} +2 -2
- package/dist/chunk-KR7WYHVF.js +195 -0
- package/dist/chunk-KR7WYHVF.js.map +1 -0
- package/dist/{chunk-DMMZSZTN.js → chunk-LUG7E6BL.js} +60 -16
- 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-U7KURWW3.js → chunk-PT4EENB3.js} +244 -52
- package/dist/chunk-PT4EENB3.js.map +1 -0
- package/dist/{chunk-XAU7QFG3.js → chunk-Q6TCT7ZJ.js} +68 -256
- package/dist/chunk-Q6TCT7ZJ.js.map +1 -0
- package/dist/{chunk-ZKNUMH2M.js → chunk-XLFOXQKZ.js} +13 -11
- package/dist/chunk-XLFOXQKZ.js.map +1 -0
- package/dist/{chunk-M62XY4NC.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 +316 -94
- package/dist/index.js +65 -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 -34
- package/dist/plugins/trueforge-agent-server-adapter/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/dist/AgentCodeSnippets-NZOFJE57.js.map +0 -1
- package/dist/AgentMetricChart-JPU3MFQ2.js +0 -15
- package/dist/AgentSessionEventTimeline-26Z6IB3B.js.map +0 -1
- package/dist/AgentSessionEventTimelineChart-CGCU7WBK.js.map +0 -1
- package/dist/AgentSessions-3MPDZASK.js.map +0 -1
- package/dist/ConnectorSettings-MXFRWWR6.js.map +0 -1
- package/dist/DrawerLayout-JR3O6RRB.js.map +0 -1
- package/dist/ModelSettings-G7IFNC2Y.js.map +0 -1
- package/dist/OpenUiFenceBlock-2TV5TQ6P.js +0 -9
- package/dist/SandboxSettings-NXAANMAX.js.map +0 -1
- package/dist/SchedulesPage-KKLUDO6B.js +0 -15
- package/dist/ShellRouteSync-CEBETGEJ.js.map +0 -1
- package/dist/SidebarLayout-A2HJPPHS.js.map +0 -1
- package/dist/SkillSettings-FGGMSUNO.js.map +0 -1
- package/dist/chunk-2XPPBEYF.js +0 -74
- package/dist/chunk-2XPPBEYF.js.map +0 -1
- package/dist/chunk-6O6FWUDW.js.map +0 -1
- package/dist/chunk-7Z2C2K7F.js +0 -578
- package/dist/chunk-7Z2C2K7F.js.map +0 -1
- package/dist/chunk-CYHJDKFB.js.map +0 -1
- package/dist/chunk-DMMZSZTN.js.map +0 -1
- package/dist/chunk-FJW36PD7.js.map +0 -1
- package/dist/chunk-M62XY4NC.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-U7KURWW3.js.map +0 -1
- package/dist/chunk-WVE3F724.js.map +0 -1
- package/dist/chunk-XAU7QFG3.js.map +0 -1
- package/dist/chunk-ZKNUMH2M.js.map +0 -1
- package/dist/chunk-ZTMKFZQ3.js.map +0 -1
- /package/dist/{AgentMetricChart-JPU3MFQ2.js.map → AgentMetricChart-YWJYVYYA.js.map} +0 -0
- /package/dist/{AgentOverview-EEBHJC32.js.map → AgentOverview-VF74XC7I.js.map} +0 -0
- /package/dist/{DockLayout-LM4AFMFY.js.map → DockLayout-F44RWGEY.js.map} +0 -0
- /package/dist/{OpenUiFenceBlock-2TV5TQ6P.js.map → OpenUiFenceBlock-4ROX3G4X.js.map} +0 -0
- /package/dist/{SchedulesPage-KKLUDO6B.js.map → SchedulesPage-TMOTK6DR.js.map} +0 -0
- /package/dist/{SettingsBuilder-L34IQ56S.js.map → SettingsBuilder-GISAH2WU.js.map} +0 -0
- /package/dist/{TrueForgeUIWithRouter-MZVJWJMB.js.map → TrueForgeUIWithRouter-6VCR7ES3.js.map} +0 -0
- /package/dist/{WidgetLayout-6QM45OQQ.js.map → WidgetLayout-RKBSN2FZ.js.map} +0 -0
- /package/dist/{chunk-MPNSO7E6.js.map → chunk-J5BPHEDT.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
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';
|
|
15
15
|
type ThemePreset = 'trueforge' | 'claude' | 'chatgpt' | 'gemini';
|
|
16
16
|
type SemanticTokens = {
|
|
17
17
|
sidebarBg: string;
|
|
18
|
+
sidebarText: string;
|
|
18
19
|
topbarBg: string;
|
|
19
20
|
primaryBg: string;
|
|
20
21
|
secondaryBg: string;
|
|
@@ -459,7 +460,7 @@ type SessionMetrics = {
|
|
|
459
460
|
toolCallFrequency: SessionMetricBarDatum[];
|
|
460
461
|
};
|
|
461
462
|
|
|
462
|
-
type LibraryAgentTab = 'overview' | 'sessions' | 'code' | 'metrics';
|
|
463
|
+
type LibraryAgentTab = 'overview' | 'sessions' | 'schedules' | 'code' | 'metrics';
|
|
463
464
|
type SessionTimeRange = {
|
|
464
465
|
startTs: number;
|
|
465
466
|
endTs: number;
|
|
@@ -477,6 +478,7 @@ type AgentSessionsProps = {
|
|
|
477
478
|
type AgentSessionListRowProps = {
|
|
478
479
|
title: string;
|
|
479
480
|
agentName?: string;
|
|
481
|
+
sourceType?: 'schedule';
|
|
480
482
|
lastActivityAt: string;
|
|
481
483
|
metrics: {
|
|
482
484
|
totalTurns: number;
|
|
@@ -502,6 +504,8 @@ type AgentSessionDetailHeaderProps = {
|
|
|
502
504
|
onResume?: () => void;
|
|
503
505
|
/** Label for the resume action. */
|
|
504
506
|
resumeLabel?: string;
|
|
507
|
+
/** Whether the current user may resume this session. */
|
|
508
|
+
canResume?: boolean;
|
|
505
509
|
};
|
|
506
510
|
type AgentSessionTurnHeaderProps = {
|
|
507
511
|
turnNumber: number;
|
|
@@ -539,6 +543,7 @@ type AgentDetailsTabsProps = {
|
|
|
539
543
|
activeTab: AgentDetailsTab;
|
|
540
544
|
onTabChange: (tab: AgentDetailsTab) => void;
|
|
541
545
|
showMetrics?: boolean;
|
|
546
|
+
showSchedules?: boolean;
|
|
542
547
|
};
|
|
543
548
|
type AgentMetricsProps = {
|
|
544
549
|
agentId: string;
|
|
@@ -568,6 +573,7 @@ type AgentMetricChartProps = {
|
|
|
568
573
|
graph?: AgentMetricGraph;
|
|
569
574
|
definition: AgentMetricChartDefinition;
|
|
570
575
|
error?: string;
|
|
576
|
+
colorIndex?: number;
|
|
571
577
|
};
|
|
572
578
|
type AgentOverviewProps = {
|
|
573
579
|
detail: AgentDetail;
|
|
@@ -611,7 +617,7 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
611
617
|
}
|
|
612
618
|
}
|
|
613
619
|
|
|
614
|
-
declare function AgentDetailsTabs({ activeTab, onTabChange, showMetrics }: AgentDetailsTabsProps): react.JSX.Element;
|
|
620
|
+
declare function AgentDetailsTabs({ activeTab, onTabChange, showMetrics, showSchedules, }: AgentDetailsTabsProps): react.JSX.Element;
|
|
615
621
|
declare module '../../theme/SlotsProvider.js' {
|
|
616
622
|
interface AtomSlots {
|
|
617
623
|
AgentDetailsTabs: typeof AgentDetailsTabs;
|
|
@@ -653,14 +659,14 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
653
659
|
}
|
|
654
660
|
}
|
|
655
661
|
|
|
656
|
-
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;
|
|
657
663
|
declare module '../../theme/SlotsProvider.js' {
|
|
658
664
|
interface AtomSlots {
|
|
659
665
|
AgentSessionDetailHeader: typeof AgentSessionDetailHeader;
|
|
660
666
|
}
|
|
661
667
|
}
|
|
662
668
|
|
|
663
|
-
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;
|
|
664
670
|
declare module '../../theme/SlotsProvider.js' {
|
|
665
671
|
interface AtomSlots {
|
|
666
672
|
AgentSessionListRow: typeof AgentSessionListRow;
|
|
@@ -708,11 +714,14 @@ type AgentsLibraryProps = {
|
|
|
708
714
|
};
|
|
709
715
|
type AgentScheduleSummary = {
|
|
710
716
|
count: number;
|
|
711
|
-
|
|
717
|
+
pausedCount: number;
|
|
712
718
|
};
|
|
713
719
|
type AgentLibraryRowProps = {
|
|
714
720
|
agent: AgentLibraryEntry;
|
|
715
721
|
canMutate: boolean;
|
|
722
|
+
canUseAgent?: boolean;
|
|
723
|
+
canManageAgent?: boolean;
|
|
724
|
+
canDeleteAgent?: boolean;
|
|
716
725
|
canManageSchedules: boolean;
|
|
717
726
|
scheduleSummary?: AgentScheduleSummary | null;
|
|
718
727
|
onOpenSchedules?: () => void;
|
|
@@ -722,7 +731,7 @@ type AgentLibraryRowProps = {
|
|
|
722
731
|
onEdit: () => void;
|
|
723
732
|
onManageSchedules?: () => void;
|
|
724
733
|
};
|
|
725
|
-
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;
|
|
726
735
|
declare function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps): react.JSX.Element | null;
|
|
727
736
|
declare module '../theme/SlotsProvider.js' {
|
|
728
737
|
interface AtomSlots {
|
|
@@ -742,6 +751,25 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
742
751
|
}
|
|
743
752
|
}
|
|
744
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
|
+
|
|
745
773
|
type AssistantMessageBubbleProps = {
|
|
746
774
|
children: ReactNode;
|
|
747
775
|
error?: ReactNode;
|
|
@@ -945,12 +973,13 @@ type AgentConfigEditorsProps = {
|
|
|
945
973
|
sandboxAvailable?: boolean;
|
|
946
974
|
instructions?: string;
|
|
947
975
|
onInstructionsSave?: (draft: AgentInstructionsDraft) => void;
|
|
976
|
+
loadMcpConnector?: (connectorId: string) => Promise<ConnectorState | undefined>;
|
|
948
977
|
loadMcpTools?: (connectorId: string) => Promise<McpToolSelection[]>;
|
|
949
978
|
onRefreshConnectors?: () => Promise<void>;
|
|
950
979
|
onChange: (spec: AgentSpec) => void;
|
|
951
980
|
onClose: () => void;
|
|
952
981
|
};
|
|
953
|
-
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;
|
|
954
983
|
declare module '../../theme/SlotsProvider.js' {
|
|
955
984
|
interface AtomSlots {
|
|
956
985
|
AgentConfigEditors: typeof AgentConfigEditors;
|
|
@@ -960,19 +989,27 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
960
989
|
type AgentConfigPanelProps = {
|
|
961
990
|
spec: AgentSpec;
|
|
962
991
|
model?: ModelSelection;
|
|
992
|
+
models: ModelSelection[];
|
|
993
|
+
modelsLoading: boolean;
|
|
994
|
+
modelsError: string | null;
|
|
995
|
+
skills?: AgentSkill[];
|
|
963
996
|
skillsAvailable: boolean;
|
|
964
997
|
instructions: string;
|
|
965
998
|
onOpenEditor: (editor: AgentConfigEditor) => void;
|
|
966
999
|
onChange?: (spec: AgentSpec) => void;
|
|
967
1000
|
onClose?: () => void;
|
|
1001
|
+
disabled?: boolean;
|
|
968
1002
|
};
|
|
969
|
-
declare function AgentConfigSection({ title, description, onEdit, children, }: {
|
|
970
|
-
title
|
|
1003
|
+
declare function AgentConfigSection({ title, description, icon, actionIcon, actionLabel, onEdit, children, }: {
|
|
1004
|
+
title?: string;
|
|
971
1005
|
description?: string;
|
|
1006
|
+
icon?: string;
|
|
1007
|
+
actionIcon?: string;
|
|
1008
|
+
actionLabel?: string;
|
|
972
1009
|
onEdit?: () => void;
|
|
973
|
-
children
|
|
1010
|
+
children?: ReactNode;
|
|
974
1011
|
}): react.JSX.Element;
|
|
975
|
-
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;
|
|
976
1013
|
declare module '../../theme/SlotsProvider.js' {
|
|
977
1014
|
interface AtomSlots {
|
|
978
1015
|
AgentConfigPanel: typeof AgentConfigPanel;
|
|
@@ -980,21 +1017,35 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
980
1017
|
}
|
|
981
1018
|
}
|
|
982
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
|
+
|
|
983
1032
|
type AgentMcpEditorContentProps = {
|
|
984
1033
|
spec: AgentSpec;
|
|
985
1034
|
connectors: ConnectorState[];
|
|
986
1035
|
query: string;
|
|
987
1036
|
activeConnectorId: string | null;
|
|
988
1037
|
tools: McpToolSelection[];
|
|
1038
|
+
connectorLoading: boolean;
|
|
1039
|
+
connectorError: string | null;
|
|
989
1040
|
toolsLoading: boolean;
|
|
990
1041
|
toolsError: string | null;
|
|
991
1042
|
onQueryChange: (query: string) => void;
|
|
992
1043
|
onSelectConnector: (connectorId: string) => void;
|
|
993
1044
|
onRetryTools: () => void;
|
|
994
|
-
|
|
1045
|
+
onRefreshConnector?: () => void;
|
|
995
1046
|
onChange: (spec: AgentSpec) => void;
|
|
996
1047
|
};
|
|
997
|
-
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;
|
|
998
1049
|
declare module '../../theme/SlotsProvider.js' {
|
|
999
1050
|
interface AtomSlots {
|
|
1000
1051
|
AgentMcpEditorContent: typeof AgentMcpEditorContent;
|
|
@@ -1020,7 +1071,6 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1020
1071
|
}
|
|
1021
1072
|
|
|
1022
1073
|
type AgentModelEditorContentProps = {
|
|
1023
|
-
editor: 'model' | 'model-settings';
|
|
1024
1074
|
spec: AgentSpec;
|
|
1025
1075
|
models: ModelSelection[];
|
|
1026
1076
|
loading: boolean;
|
|
@@ -1029,7 +1079,7 @@ type AgentModelEditorContentProps = {
|
|
|
1029
1079
|
onQueryChange: (query: string) => void;
|
|
1030
1080
|
onChange: (spec: AgentSpec) => void;
|
|
1031
1081
|
};
|
|
1032
|
-
declare function AgentModelEditorContent({
|
|
1082
|
+
declare function AgentModelEditorContent({ spec, models, loading, error, query, onQueryChange, onChange, }: AgentModelEditorContentProps): react.JSX.Element;
|
|
1033
1083
|
declare module '../../theme/SlotsProvider.js' {
|
|
1034
1084
|
interface AtomSlots {
|
|
1035
1085
|
AgentModelEditorContent: typeof AgentModelEditorContent;
|
|
@@ -1057,12 +1107,14 @@ type AgentResourceConfigModalProps = {
|
|
|
1057
1107
|
query: string;
|
|
1058
1108
|
activeConnectorId: string | null;
|
|
1059
1109
|
tools: McpToolSelection[];
|
|
1110
|
+
connectorLoading: boolean;
|
|
1111
|
+
connectorError: string | null;
|
|
1060
1112
|
toolsLoading: boolean;
|
|
1061
1113
|
toolsError: string | null;
|
|
1062
1114
|
onQueryChange: (query: string) => void;
|
|
1063
1115
|
onSelectConnector: (connectorId: string) => void;
|
|
1064
1116
|
onRetryTools: () => void;
|
|
1065
|
-
|
|
1117
|
+
onRefreshConnector?: () => void;
|
|
1066
1118
|
onChange: (spec: AgentSpec) => void;
|
|
1067
1119
|
onClose: () => void;
|
|
1068
1120
|
};
|
|
@@ -1082,12 +1134,14 @@ type AgentResourceEditorContentProps = {
|
|
|
1082
1134
|
query: string;
|
|
1083
1135
|
activeConnectorId: string | null;
|
|
1084
1136
|
tools: McpToolSelection[];
|
|
1137
|
+
connectorLoading: boolean;
|
|
1138
|
+
connectorError: string | null;
|
|
1085
1139
|
toolsLoading: boolean;
|
|
1086
1140
|
toolsError: string | null;
|
|
1087
1141
|
onQueryChange: (query: string) => void;
|
|
1088
1142
|
onSelectConnector: (connectorId: string) => void;
|
|
1089
1143
|
onRetryTools: () => void;
|
|
1090
|
-
|
|
1144
|
+
onRefreshConnector?: () => void;
|
|
1091
1145
|
onChange: (spec: AgentSpec) => void;
|
|
1092
1146
|
};
|
|
1093
1147
|
declare function AgentResourceEditorContent(props: AgentResourceEditorContentProps): react.JSX.Element;
|
|
@@ -1097,6 +1151,20 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1097
1151
|
}
|
|
1098
1152
|
}
|
|
1099
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
|
+
|
|
1100
1168
|
type AgentRuntimeConfigFieldsProps = {
|
|
1101
1169
|
value: AgentRuntimeConfig;
|
|
1102
1170
|
sandboxAvailable: boolean;
|
|
@@ -1113,20 +1181,6 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1113
1181
|
}
|
|
1114
1182
|
}
|
|
1115
1183
|
|
|
1116
|
-
type AgentRuntimeConfigModalProps = {
|
|
1117
|
-
open: boolean;
|
|
1118
|
-
spec: AgentSpec;
|
|
1119
|
-
sandboxAvailable: boolean;
|
|
1120
|
-
onChange: (spec: AgentSpec) => void;
|
|
1121
|
-
onClose: () => void;
|
|
1122
|
-
};
|
|
1123
|
-
declare function AgentRuntimeConfigModal({ open, spec, sandboxAvailable, onChange, onClose, }: AgentRuntimeConfigModalProps): react.JSX.Element;
|
|
1124
|
-
declare module '../../theme/SlotsProvider.js' {
|
|
1125
|
-
interface AtomSlots {
|
|
1126
|
-
AgentRuntimeConfigModal: typeof AgentRuntimeConfigModal;
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
1184
|
type AgentRuntimeEditorContentProps = {
|
|
1131
1185
|
spec: AgentSpec;
|
|
1132
1186
|
sandboxAvailable: boolean;
|
|
@@ -1184,6 +1238,23 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1184
1238
|
}
|
|
1185
1239
|
}
|
|
1186
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
|
+
|
|
1187
1258
|
declare function DraftComposerLeftSection({ disabled, isRunning, onAttach }: ComposerLeftSectionProps): react.JSX.Element;
|
|
1188
1259
|
declare function DraftComposerRightSection({ disabled, isRunning }: ComposerRightSectionProps): react.JSX.Element;
|
|
1189
1260
|
declare module '../../theme/SlotsProvider.js' {
|
|
@@ -1193,9 +1264,13 @@ declare module '../../theme/SlotsProvider.js' {
|
|
|
1193
1264
|
}
|
|
1194
1265
|
}
|
|
1195
1266
|
|
|
1196
|
-
declare function CatalogRow({ title, description, checked, disabled, onToggle, onActivate, action, }: {
|
|
1267
|
+
declare function CatalogRow({ title, description, badge, logo, fallbackIcon, checked, disabled, onToggle, onActivate, action, }: {
|
|
1197
1268
|
title: string;
|
|
1198
1269
|
description?: string;
|
|
1270
|
+
badge?: ReactNode;
|
|
1271
|
+
/** Catalog logo URL; when absent, `fallbackIcon` (or the title initial) is shown. */
|
|
1272
|
+
logo?: string | undefined;
|
|
1273
|
+
fallbackIcon?: string;
|
|
1199
1274
|
checked: boolean;
|
|
1200
1275
|
disabled?: boolean;
|
|
1201
1276
|
onToggle: () => void;
|
|
@@ -1308,6 +1383,20 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1308
1383
|
}
|
|
1309
1384
|
}
|
|
1310
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
|
+
|
|
1311
1400
|
type SandboxArtifactDownloadProps = {
|
|
1312
1401
|
code: string;
|
|
1313
1402
|
fileDownloadBaseUrl?: string;
|
|
@@ -1337,6 +1426,8 @@ type ToolCallCardProps = {
|
|
|
1337
1426
|
showResponseLine?: boolean;
|
|
1338
1427
|
responseIcon?: ReactNode;
|
|
1339
1428
|
approvalSlot?: ReactNode;
|
|
1429
|
+
/** When set, this card is the scroll/flash target for approval banner navigation. */
|
|
1430
|
+
approvalId?: string;
|
|
1340
1431
|
requestSlot?: ReactNode;
|
|
1341
1432
|
responseSlot?: ReactNode;
|
|
1342
1433
|
highlightCard?: boolean;
|
|
@@ -1344,7 +1435,7 @@ type ToolCallCardProps = {
|
|
|
1344
1435
|
mcpServerName?: string;
|
|
1345
1436
|
dataTestPrefix?: string;
|
|
1346
1437
|
};
|
|
1347
|
-
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;
|
|
1348
1439
|
declare module '../theme/SlotsProvider.js' {
|
|
1349
1440
|
interface AtomSlots {
|
|
1350
1441
|
ToolCallCard: typeof ToolCallCard;
|
|
@@ -1366,10 +1457,13 @@ type SandboxToolCallCardProps = {
|
|
|
1366
1457
|
hasContent?: boolean;
|
|
1367
1458
|
onViewModeChange?: (viewMode: 'terminal' | 'code') => void;
|
|
1368
1459
|
durationText?: string;
|
|
1460
|
+
approvalSlot?: ReactNode;
|
|
1461
|
+
/** When set, this card is the scroll/flash target for approval banner navigation. */
|
|
1462
|
+
approvalId?: string;
|
|
1369
1463
|
dataTestPrefix?: string;
|
|
1370
1464
|
className?: string;
|
|
1371
1465
|
};
|
|
1372
|
-
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;
|
|
1373
1467
|
declare module '../theme/SlotsProvider.js' {
|
|
1374
1468
|
interface AtomSlots {
|
|
1375
1469
|
SandboxToolCallCard: typeof SandboxToolCallCard;
|
|
@@ -1390,50 +1484,32 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1390
1484
|
}
|
|
1391
1485
|
}
|
|
1392
1486
|
|
|
1393
|
-
type EditableMount = {
|
|
1394
|
-
id: string;
|
|
1395
|
-
name: string;
|
|
1396
|
-
value: object;
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
1487
|
type SaveAgentFormProps = {
|
|
1400
1488
|
intent: 'create' | 'update';
|
|
1401
1489
|
name: string;
|
|
1402
1490
|
spec: AgentSpec;
|
|
1403
|
-
modelEntry?: ModelSelection;
|
|
1404
|
-
mcpMounts: EditableMount[];
|
|
1405
|
-
skillMounts: EditableMount[];
|
|
1406
1491
|
saving: boolean;
|
|
1407
1492
|
error: string | null;
|
|
1408
1493
|
onNameChange: (name: string) => void;
|
|
1409
1494
|
onChange: (spec: AgentSpec) => void;
|
|
1410
|
-
onEdit: (editor: AgentConfigEditor) => void;
|
|
1411
|
-
onToggleMcpPreload: (id: string) => void;
|
|
1412
|
-
onRemoveMcp?: (id: string) => void;
|
|
1413
1495
|
onCancel: () => void;
|
|
1414
1496
|
onSave: () => void;
|
|
1415
1497
|
};
|
|
1416
|
-
declare function SaveAgentForm({ intent, name, spec,
|
|
1498
|
+
declare function SaveAgentForm({ intent, name, spec, saving, error, onNameChange, onCancel, onSave, }: SaveAgentFormProps): react.JSX.Element;
|
|
1417
1499
|
declare module '../theme/SlotsProvider.js' {
|
|
1418
1500
|
interface AtomSlots {
|
|
1419
1501
|
SaveAgentForm: typeof SaveAgentForm;
|
|
1420
1502
|
}
|
|
1421
1503
|
}
|
|
1422
1504
|
|
|
1423
|
-
type
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
mcpMounts: EditableMount[];
|
|
1427
|
-
skillMounts: EditableMount[];
|
|
1428
|
-
disabled: boolean;
|
|
1429
|
-
onEdit: (editor: AgentConfigEditor) => void;
|
|
1430
|
-
onToggleMcpPreload: (id: string) => void;
|
|
1431
|
-
onRemoveMcp?: (id: string) => void;
|
|
1505
|
+
type SchedulesPageProps = {
|
|
1506
|
+
/** Lock the page to one agent when embedded in Agent Details. */
|
|
1507
|
+
agentId?: string;
|
|
1432
1508
|
};
|
|
1433
|
-
declare function
|
|
1434
|
-
declare module '
|
|
1509
|
+
declare function SchedulesPage({ agentId }: SchedulesPageProps): react.JSX.Element;
|
|
1510
|
+
declare module '../../theme/SlotsProvider.js' {
|
|
1435
1511
|
interface AtomSlots {
|
|
1436
|
-
|
|
1512
|
+
SchedulesPage: ComponentType<SchedulesPageProps>;
|
|
1437
1513
|
}
|
|
1438
1514
|
}
|
|
1439
1515
|
|
|
@@ -1522,7 +1598,7 @@ type ThreadListEmptyStateProps = {
|
|
|
1522
1598
|
};
|
|
1523
1599
|
declare function ThreadListEmptyState({ message, className }: ThreadListEmptyStateProps): react.JSX.Element;
|
|
1524
1600
|
type ThreadListShellProps = {
|
|
1525
|
-
header
|
|
1601
|
+
header?: ReactNode;
|
|
1526
1602
|
children: ReactNode;
|
|
1527
1603
|
className?: string;
|
|
1528
1604
|
};
|
|
@@ -1653,16 +1729,28 @@ declare module '../theme/SlotsProvider.js' {
|
|
|
1653
1729
|
}
|
|
1654
1730
|
}
|
|
1655
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
|
+
|
|
1656
1743
|
type UserMessageActionBarProps = {
|
|
1657
1744
|
isCopied: boolean;
|
|
1658
1745
|
editDisabled?: boolean;
|
|
1746
|
+
retryDisabled?: boolean;
|
|
1659
1747
|
createdAt?: Date | string;
|
|
1660
1748
|
onCopy: () => void;
|
|
1661
1749
|
onEdit: () => void;
|
|
1662
1750
|
onRetry: () => void;
|
|
1663
1751
|
className?: string;
|
|
1664
1752
|
};
|
|
1665
|
-
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;
|
|
1666
1754
|
declare module '../theme/SlotsProvider.js' {
|
|
1667
1755
|
interface AtomSlots {
|
|
1668
1756
|
UserMessageActionBar: typeof UserMessageActionBar;
|
|
@@ -1727,10 +1815,13 @@ declare const defaultSlots: {
|
|
|
1727
1815
|
ComposerLeftSection: typeof ComposerLeftSection;
|
|
1728
1816
|
ComposerRightSection: typeof ComposerRightSection;
|
|
1729
1817
|
ComposerSendButton: typeof ComposerSendButton;
|
|
1818
|
+
PermissionGuard: typeof PermissionGuard;
|
|
1730
1819
|
DraftComposerLeftSection: typeof DraftComposerLeftSection;
|
|
1731
1820
|
DraftComposerRightSection: typeof DraftComposerRightSection;
|
|
1732
1821
|
DraftAgentConfigTrigger: typeof DraftAgentConfigTrigger;
|
|
1733
1822
|
DraftCapabilitiesPanel: typeof DraftCapabilitiesPanel;
|
|
1823
|
+
DraftComposerActionsMenu: typeof DraftComposerActionsMenu;
|
|
1824
|
+
AgentCustomParametersEditor: typeof AgentCustomParametersEditor;
|
|
1734
1825
|
AgentConfigEditors: typeof AgentConfigEditors;
|
|
1735
1826
|
AgentInstructionsDrawer: typeof AgentInstructionsDrawer;
|
|
1736
1827
|
AgentModelEditorContent: typeof AgentModelEditorContent;
|
|
@@ -1743,7 +1834,7 @@ declare const defaultSlots: {
|
|
|
1743
1834
|
AgentConfigPanel: typeof AgentConfigPanel;
|
|
1744
1835
|
AgentConfigSection: typeof AgentConfigSection;
|
|
1745
1836
|
AgentRuntimeConfigFields: typeof AgentRuntimeConfigFields;
|
|
1746
|
-
|
|
1837
|
+
AgentRuntimeConfigDrawer: typeof AgentRuntimeConfigDrawer;
|
|
1747
1838
|
AgentRuntimeEditorContent: typeof AgentRuntimeEditorContent;
|
|
1748
1839
|
DraftCompositeSelector: typeof DraftCompositeSelector;
|
|
1749
1840
|
CatalogRow: typeof CatalogRow;
|
|
@@ -1785,6 +1876,7 @@ declare const defaultSlots: {
|
|
|
1785
1876
|
AgentsLibrary: typeof AgentsLibrary;
|
|
1786
1877
|
AgentLibraryRow: typeof AgentLibraryRow;
|
|
1787
1878
|
AgentsLibraryButton: typeof AgentsLibraryButton;
|
|
1879
|
+
ApprovalNavBanner: typeof ApprovalNavBanner;
|
|
1788
1880
|
SessionsBrowserButton: typeof SessionsBrowserButton;
|
|
1789
1881
|
AgentDetailsPage: typeof AgentDetailsPage;
|
|
1790
1882
|
AgentDetailsHeader: typeof AgentDetailsHeader;
|
|
@@ -1809,10 +1901,10 @@ declare const defaultSlots: {
|
|
|
1809
1901
|
AgentSessions: react.FunctionComponent<AgentSessionsProps>;
|
|
1810
1902
|
AgentCodeSnippets: react.FunctionComponent<AgentCodeSnippetsProps>;
|
|
1811
1903
|
AgentCodeBlock: typeof AgentCodeBlock;
|
|
1904
|
+
SchedulesPage: react.FunctionComponent<SchedulesPageProps>;
|
|
1812
1905
|
SchedulesButton: typeof SchedulesButton;
|
|
1813
1906
|
SaveAgentButton: typeof SaveAgentButton;
|
|
1814
1907
|
SaveAgentForm: typeof SaveAgentForm;
|
|
1815
|
-
SaveAgentFormFields: typeof SaveAgentFormFields;
|
|
1816
1908
|
SelectAgentEmptyState: typeof SelectAgentEmptyState;
|
|
1817
1909
|
ClearChatButton: typeof ClearChatButton;
|
|
1818
1910
|
ThreadListRowSkeleton: typeof ThreadListRowSkeleton;
|
|
@@ -1827,6 +1919,7 @@ declare const defaultSlots: {
|
|
|
1827
1919
|
Toast: typeof Toast;
|
|
1828
1920
|
ToastStack: typeof ToastStack;
|
|
1829
1921
|
ShellActionsActionSlot: typeof ShellActionsActionSlot;
|
|
1922
|
+
UserAvatar: typeof UserAvatar;
|
|
1830
1923
|
};
|
|
1831
1924
|
|
|
1832
1925
|
type PresetTokens = {
|
|
@@ -1887,8 +1980,8 @@ type BottomSheetProps = {
|
|
|
1887
1980
|
};
|
|
1888
1981
|
declare function BottomSheet({ open, onOpenChange, children, className, id, 'aria-label': ariaLabel, }: BottomSheetProps): react.JSX.Element;
|
|
1889
1982
|
|
|
1890
|
-
type AuiButtonVariant = '
|
|
1891
|
-
type AuiButtonSize = '
|
|
1983
|
+
type AuiButtonVariant = 'primary' | 'secondary' | 'ghost' | 'destructive';
|
|
1984
|
+
type AuiButtonSize = 'large' | 'small' | 'icon';
|
|
1892
1985
|
|
|
1893
1986
|
type ButtonVariant = AuiButtonVariant;
|
|
1894
1987
|
type ButtonSize = AuiButtonSize;
|
|
@@ -1897,6 +1990,17 @@ type ButtonProps = react__default.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
1897
1990
|
size?: ButtonSize;
|
|
1898
1991
|
asChild?: never;
|
|
1899
1992
|
};
|
|
1993
|
+
type FixedVariantButtonProps = Omit<ButtonProps, 'variant'>;
|
|
1994
|
+
declare const Button: react__default.ForwardRefExoticComponent<react__default.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1995
|
+
variant?: ButtonVariant;
|
|
1996
|
+
size?: ButtonSize;
|
|
1997
|
+
asChild?: never;
|
|
1998
|
+
} & react__default.RefAttributes<HTMLButtonElement>> & {
|
|
1999
|
+
Primary: react__default.ForwardRefExoticComponent<FixedVariantButtonProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
2000
|
+
Secondary: react__default.ForwardRefExoticComponent<FixedVariantButtonProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
2001
|
+
Ghost: react__default.ForwardRefExoticComponent<FixedVariantButtonProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
2002
|
+
Destructive: react__default.ForwardRefExoticComponent<FixedVariantButtonProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
2003
|
+
};
|
|
1900
2004
|
|
|
1901
2005
|
type CenteredModalProps = {
|
|
1902
2006
|
open: boolean;
|
|
@@ -1932,10 +2036,13 @@ type CommonPopoverSelectProps<T extends string> = {
|
|
|
1932
2036
|
placeholder?: string;
|
|
1933
2037
|
disabled?: boolean;
|
|
1934
2038
|
className?: string;
|
|
2039
|
+
menuClassName?: string;
|
|
1935
2040
|
/** Which edge of the trigger the menu opens toward. Default `bottom`. */
|
|
1936
2041
|
menuPlacement?: 'top' | 'bottom';
|
|
1937
2042
|
/** When set, renders a labeled chip trigger (label | value chip + chevron). */
|
|
1938
2043
|
prefix?: string;
|
|
2044
|
+
emptyContent?: ReactNode;
|
|
2045
|
+
footer?: ReactNode;
|
|
1939
2046
|
'aria-label': string;
|
|
1940
2047
|
};
|
|
1941
2048
|
type PopoverSelectProps<T extends string> = CommonPopoverSelectProps<T> & ({
|
|
@@ -1949,6 +2056,37 @@ type PopoverSelectProps<T extends string> = CommonPopoverSelectProps<T> & ({
|
|
|
1949
2056
|
});
|
|
1950
2057
|
declare function PopoverSelect<T extends string>(props: PopoverSelectProps<T>): react.JSX.Element;
|
|
1951
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
|
+
|
|
1952
2090
|
type SideDrawerAnchor = 'left' | 'right';
|
|
1953
2091
|
type SideDrawerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
1954
2092
|
type SideDrawerProps = {
|
|
@@ -2053,9 +2191,11 @@ type ScheduleFormFieldsProps = {
|
|
|
2053
2191
|
agentId: string;
|
|
2054
2192
|
name: string;
|
|
2055
2193
|
}>;
|
|
2194
|
+
agentOptionsLoaded?: boolean;
|
|
2056
2195
|
agentPickerDisabled?: boolean;
|
|
2196
|
+
onBuildAgent?: () => void;
|
|
2057
2197
|
};
|
|
2058
|
-
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;
|
|
2059
2199
|
|
|
2060
2200
|
declare function ScheduleLastRunsCell({ runs }: {
|
|
2061
2201
|
runs: readonly ScheduleRun[];
|
|
@@ -2065,8 +2205,6 @@ declare function ScheduleRunChip({ run }: {
|
|
|
2065
2205
|
run: ScheduleRun;
|
|
2066
2206
|
}): react.JSX.Element;
|
|
2067
2207
|
|
|
2068
|
-
declare function SchedulesPage(): react.JSX.Element;
|
|
2069
|
-
|
|
2070
2208
|
declare function ScheduleStatusBadge({ status }: {
|
|
2071
2209
|
status: ScheduleStatus;
|
|
2072
2210
|
}): react.JSX.Element;
|
|
@@ -2107,7 +2245,12 @@ interface AgentStepsContainerProps {
|
|
|
2107
2245
|
*/
|
|
2108
2246
|
declare function AgentStepsContainer({ children, toolCount, thinkingCount, hasFinal, }: PropsWithChildren<AgentStepsContainerProps>): react.JSX.Element;
|
|
2109
2247
|
|
|
2110
|
-
|
|
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;
|
|
2111
2254
|
|
|
2112
2255
|
declare function AssistantMessageContainer(): react.JSX.Element;
|
|
2113
2256
|
|
|
@@ -2123,7 +2266,9 @@ type ComposerContainerProps = {
|
|
|
2123
2266
|
declare function ComposerContainer({ placeholder, }: ComposerContainerProps): react.JSX.Element;
|
|
2124
2267
|
|
|
2125
2268
|
/** Host custom-action UI for a pending client-side tool response. */
|
|
2126
|
-
declare function CustomActionContainer(
|
|
2269
|
+
declare function CustomActionContainer({ disabled }: {
|
|
2270
|
+
disabled?: boolean;
|
|
2271
|
+
}): react.JSX.Element | null;
|
|
2127
2272
|
|
|
2128
2273
|
/**
|
|
2129
2274
|
* Renders `HistoryLoader` at the top of the message list and fetches
|
|
@@ -2135,7 +2280,9 @@ declare function CustomActionContainer(): react.JSX.Element | null;
|
|
|
2135
2280
|
*/
|
|
2136
2281
|
declare function HistoryLoaderContainer(): react.JSX.Element | null;
|
|
2137
2282
|
|
|
2138
|
-
declare function McpAuthContainer(
|
|
2283
|
+
declare function McpAuthContainer({ disabled }: {
|
|
2284
|
+
disabled?: boolean;
|
|
2285
|
+
}): react.JSX.Element | null;
|
|
2139
2286
|
|
|
2140
2287
|
declare const PostMcpOauthScreen: () => react.JSX.Element;
|
|
2141
2288
|
|
|
@@ -2169,8 +2316,10 @@ declare function ThreadContainer({ composer }: ThreadContainerProps): react.JSX.
|
|
|
2169
2316
|
type ThreadListContainerProps = {
|
|
2170
2317
|
/** Called after New chat or selecting a row — used by stack/drawer chrome. */
|
|
2171
2318
|
onThreadOpen?: () => void;
|
|
2319
|
+
/** `recent-history` hides navigation and lists only persisted sessions. */
|
|
2320
|
+
variant?: 'default' | 'recent-history';
|
|
2172
2321
|
};
|
|
2173
|
-
declare function ThreadListContainer({ onThreadOpen }?: ThreadListContainerProps): react.JSX.Element;
|
|
2322
|
+
declare function ThreadListContainer({ onThreadOpen, variant }?: ThreadListContainerProps): react.JSX.Element;
|
|
2174
2323
|
|
|
2175
2324
|
type ToastContent = {
|
|
2176
2325
|
title: string;
|
|
@@ -2209,6 +2358,13 @@ declare const ToolCallContainer: ToolCallMessagePartComponent;
|
|
|
2209
2358
|
|
|
2210
2359
|
declare function ToolCallContentBlockContainer(props: ToolCallContentBlockProps): react.JSX.Element;
|
|
2211
2360
|
|
|
2361
|
+
type CurrentUser = {
|
|
2362
|
+
displayName: string;
|
|
2363
|
+
};
|
|
2364
|
+
declare function useOptionalCurrentUser(): CurrentUser | undefined;
|
|
2365
|
+
|
|
2366
|
+
type HistoryAgentIntent = 'try-agent' | 'history';
|
|
2367
|
+
|
|
2212
2368
|
type DraftPreferenceKind = 'chat' | 'agent';
|
|
2213
2369
|
|
|
2214
2370
|
/** Host-facing shell configuration for agent / library / composer chrome. */
|
|
@@ -2259,6 +2415,11 @@ type SelectLibraryAgentRequest = {
|
|
|
2259
2415
|
agentSpec?: AgentSpec;
|
|
2260
2416
|
};
|
|
2261
2417
|
type SettingsSection = 'models' | 'connectors' | 'skills' | 'sandbox';
|
|
2418
|
+
type HistoryAgentFilter = {
|
|
2419
|
+
agentId?: string;
|
|
2420
|
+
agentName: string;
|
|
2421
|
+
intent: HistoryAgentIntent;
|
|
2422
|
+
};
|
|
2262
2423
|
type ShellModeContextValue = {
|
|
2263
2424
|
mode: ShellMode;
|
|
2264
2425
|
/** Host agentConfig mode (capabilities source). */
|
|
@@ -2309,11 +2470,8 @@ type ShellModeContextValue = {
|
|
|
2309
2470
|
/** Remember plain-draft composer choices as the seed for future New Chat / New Agent. */
|
|
2310
2471
|
rememberDraftSpec: (agentSpec: AgentSpec, kind?: DraftPreferenceKind) => void;
|
|
2311
2472
|
/**
|
|
2312
|
-
* Open a history session
|
|
2313
|
-
* Prefer explicit `isMutable
|
|
2314
|
-
* present → immutable and agentName absent → mutable. Immutable rows may omit
|
|
2315
|
-
* `agentName` when the registry agent was deleted.
|
|
2316
|
-
* `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.
|
|
2317
2475
|
*/
|
|
2318
2476
|
openHistorySession: (req: {
|
|
2319
2477
|
sessionId: string;
|
|
@@ -2325,18 +2483,20 @@ type ShellModeContextValue = {
|
|
|
2325
2483
|
clearChat: () => void;
|
|
2326
2484
|
/** Return library-only mode to its idle landing; no-op in other modes. */
|
|
2327
2485
|
openLibraryHome: () => void;
|
|
2328
|
-
/**
|
|
2486
|
+
/** Changes only when the chat runtime must reset. */
|
|
2329
2487
|
runtimeKey: string;
|
|
2330
2488
|
/**
|
|
2331
2489
|
* History list filter forwarded as `listSessions({ agentId })`.
|
|
2332
2490
|
* `null` = All chats. Only meaningful when `isLibraryEnabled`.
|
|
2333
2491
|
*/
|
|
2334
|
-
historyAgentFilter:
|
|
2335
|
-
setHistoryAgentFilter: (
|
|
2492
|
+
historyAgentFilter: HistoryAgentFilter | null;
|
|
2493
|
+
setHistoryAgentFilter: (filter: HistoryAgentFilter | null) => void;
|
|
2336
2494
|
/** Effective `listSessionsAgentId` for the runtime (SingleAgent locks to name). */
|
|
2337
2495
|
listSessionsAgentId: string | undefined;
|
|
2338
|
-
/** Session
|
|
2496
|
+
/** Session selected from history. */
|
|
2339
2497
|
pendingSessionId: string | undefined;
|
|
2498
|
+
/** Distinguishes repeated selections of the same session. */
|
|
2499
|
+
pendingSessionEpoch: number;
|
|
2340
2500
|
/**
|
|
2341
2501
|
* Bumped when the Agents catalog may have changed (e.g. after saveAgent).
|
|
2342
2502
|
* Library chrome should re-fetch when this changes.
|
|
@@ -2381,6 +2541,8 @@ type RoutePlace = {
|
|
|
2381
2541
|
type: 'sessionsBrowser';
|
|
2382
2542
|
} | {
|
|
2383
2543
|
type: 'schedules';
|
|
2544
|
+
} | {
|
|
2545
|
+
type: 'buildAgent';
|
|
2384
2546
|
};
|
|
2385
2547
|
/**
|
|
2386
2548
|
* Host-facing route path customization. Only honored when `withRouter`.
|
|
@@ -2401,6 +2563,8 @@ type RoutesConfig = {
|
|
|
2401
2563
|
libraryAgent?: string | false;
|
|
2402
2564
|
/** Schedules page. `false` keeps schedules overlay-only (no URL). Default `'/schedules'`. */
|
|
2403
2565
|
schedules?: string | false;
|
|
2566
|
+
/** Agent builder. `false` disables its dedicated URL. Default `'/build-agent'`. */
|
|
2567
|
+
buildAgent?: string | false;
|
|
2404
2568
|
/** Immutable "Try" agent. `false` disables. Default `'/agents/:agentName'`. */
|
|
2405
2569
|
agent?: string | false;
|
|
2406
2570
|
/** Session deep link. `false` disables. Default `'/sessions/:sessionId'`. */
|
|
@@ -2428,7 +2592,7 @@ declare function useOptionalCustomActionRenderers(): CustomActionRenderers | und
|
|
|
2428
2592
|
|
|
2429
2593
|
/**
|
|
2430
2594
|
* Built-in backends init inside `<TrueForgeUI />`.
|
|
2431
|
-
* Optional
|
|
2595
|
+
* Optional host ports are attached onto the resolved `AgentUIServer`.
|
|
2432
2596
|
*/
|
|
2433
2597
|
type TrueForgeBuiltInServerConfig = {
|
|
2434
2598
|
type: 'truefoundry';
|
|
@@ -2436,6 +2600,7 @@ type TrueForgeBuiltInServerConfig = {
|
|
|
2436
2600
|
controlPlaneURL: string;
|
|
2437
2601
|
gatewayPlaneURL?: string;
|
|
2438
2602
|
catalog?: CatalogServer;
|
|
2603
|
+
permissions?: PermissionsServer;
|
|
2439
2604
|
} | {
|
|
2440
2605
|
type: 'trueforge';
|
|
2441
2606
|
/** Harness API root. Defaults to `'/'` (same-origin / proxied). */
|
|
@@ -2445,6 +2610,7 @@ type TrueForgeBuiltInServerConfig = {
|
|
|
2445
2610
|
/** Custom fetch (cookie sessions, auth interceptors). */
|
|
2446
2611
|
fetch?: typeof fetch;
|
|
2447
2612
|
catalog?: CatalogServer;
|
|
2613
|
+
permissions?: PermissionsServer;
|
|
2448
2614
|
};
|
|
2449
2615
|
/**
|
|
2450
2616
|
* `server` prop for `<TrueForgeUI />`: a built-in config, or a ready
|
|
@@ -2484,6 +2650,8 @@ type TrueForgeUIProps = {
|
|
|
2484
2650
|
withRouter?: boolean;
|
|
2485
2651
|
/** URL path customization; only honored when `withRouter`. */
|
|
2486
2652
|
routes?: RoutesConfig;
|
|
2653
|
+
/** Optional identity rendered by the default `UserAvatar` slot. */
|
|
2654
|
+
currentUser?: CurrentUser;
|
|
2487
2655
|
};
|
|
2488
2656
|
|
|
2489
2657
|
/**
|
|
@@ -2516,6 +2684,24 @@ declare function UserEditComposerContainer(): react.JSX.Element;
|
|
|
2516
2684
|
|
|
2517
2685
|
declare function UserMessageContainer(): react.JSX.Element;
|
|
2518
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
|
+
|
|
2519
2705
|
type ComposerBusyState = {
|
|
2520
2706
|
/** True while submitting or while the turn stream is active. */
|
|
2521
2707
|
isBusy: boolean;
|
|
@@ -2559,6 +2745,8 @@ type ComposerPauseView = {
|
|
|
2559
2745
|
toolName: string;
|
|
2560
2746
|
} | {
|
|
2561
2747
|
kind: 'ask-user';
|
|
2748
|
+
} | {
|
|
2749
|
+
kind: 'approval';
|
|
2562
2750
|
} | {
|
|
2563
2751
|
kind: 'compose';
|
|
2564
2752
|
};
|
|
@@ -2579,6 +2767,17 @@ declare const useMCPAuth: ({ callbackPath }?: UseMCPAuthOptions) => {
|
|
|
2579
2767
|
isOAuthLoading: boolean;
|
|
2580
2768
|
};
|
|
2581
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
|
+
|
|
2582
2781
|
/** Session metadata key for New Chat vs New Agent builder intent (wire/jsonb snake_case). */
|
|
2583
2782
|
declare const IS_CREATE_AGENT_METADATA_KEY = "is_create_agent";
|
|
2584
2783
|
/** Wire metadata values are strings (`SessionMetadataSchema`). */
|
|
@@ -2606,8 +2805,9 @@ declare function useAgentMetricsServer(): AgentMetricsServer;
|
|
|
2606
2805
|
declare function useOptionalAgentMetricsServer(): AgentMetricsServer | null;
|
|
2607
2806
|
declare function useScheduleServer(): ScheduleServer;
|
|
2608
2807
|
declare function useOptionalScheduleServer(): ScheduleServer | null;
|
|
2808
|
+
declare function useOptionalPermissionsServer(): PermissionsServer | null;
|
|
2609
2809
|
|
|
2610
|
-
declare function AgentMetricChart({ graph, definition, error }: AgentMetricChartProps): react.JSX.Element;
|
|
2810
|
+
declare function AgentMetricChart({ graph, definition, error, colorIndex }: AgentMetricChartProps): react.JSX.Element;
|
|
2611
2811
|
declare module '../../theme/SlotsProvider.js' {
|
|
2612
2812
|
interface AtomSlots {
|
|
2613
2813
|
AgentMetricChart: ComponentType<AgentMetricChartProps>;
|
|
@@ -2626,6 +2826,31 @@ interface AgentStepsSplitResult {
|
|
|
2626
2826
|
}
|
|
2627
2827
|
declare function computeAgentStepsSplit(parts: readonly AgentStepPart[], isRunning: boolean): AgentStepsSplitResult;
|
|
2628
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
|
+
|
|
2629
2854
|
/**
|
|
2630
2855
|
* User-facing error text. Prefers HTTP body `{ error: { message } }` when
|
|
2631
2856
|
* present (e.g. TrueForgeError), then `error.message` / `error.error.message`,
|
|
@@ -2640,9 +2865,8 @@ type DraftCatalogValue = {
|
|
|
2640
2865
|
models: ModelSelection[];
|
|
2641
2866
|
skills: AgentSkill[];
|
|
2642
2867
|
connectors: ConnectorState[];
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
connectorsLoadingMore: boolean;
|
|
2868
|
+
/** Connector logo URL keyed by connector name, sourced from the discovery catalog. */
|
|
2869
|
+
connectorLogos: Record<string, string>;
|
|
2646
2870
|
loaded: boolean;
|
|
2647
2871
|
loading: boolean;
|
|
2648
2872
|
error: string | null;
|
|
@@ -2652,12 +2876,10 @@ type DraftCatalogValue = {
|
|
|
2652
2876
|
refresh: () => void;
|
|
2653
2877
|
/** Refresh connector auth state without reloading unrelated catalogs. */
|
|
2654
2878
|
refreshConnectors: () => Promise<void>;
|
|
2655
|
-
/** Append the next MCP page when `connectorsHasMore`. */
|
|
2656
|
-
loadMoreConnectors: () => void;
|
|
2657
2879
|
};
|
|
2658
2880
|
declare function DraftCatalogProvider({ children }: {
|
|
2659
2881
|
children: ReactNode;
|
|
2660
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;
|
|
2661
2883
|
declare function useDraftCatalog(): DraftCatalogValue;
|
|
2662
2884
|
|
|
2663
|
-
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 };
|