@truefoundry/trueforge-ui 0.3.0 → 0.4.0-rc.0
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 +27 -0
- package/NOTICE +1 -1
- package/README.md +26 -89
- package/dist/{AgentCodeSnippets-EK7KMIY2.js → AgentCodeSnippets-BPC6TD7K.js} +7 -7
- package/dist/AgentMetricChart-T6DZZ37Y.js +15 -0
- package/dist/{AgentOverview-5UPMYHT2.js → AgentOverview-BFU7EO4Y.js} +7 -7
- package/dist/{AgentSessionEventTimeline-V6NPCYMW.js → AgentSessionEventTimeline-ATVBTYDF.js} +7 -7
- package/dist/{AgentSessionEventTimelineChart-YQWZBQCG.js → AgentSessionEventTimelineChart-H577STKW.js} +7 -7
- package/dist/{AgentSessions-WNYVVB6Q.js → AgentSessions-GDLBXFIK.js} +8 -8
- package/dist/{ConnectorSettings-O4I24244.js → ConnectorSettings-FYNF6J3F.js} +7 -7
- package/dist/{DockLayout-JMBZVMGB.js → DockLayout-SGUOMZ5E.js} +10 -10
- package/dist/{DrawerLayout-E6G3IF6R.js → DrawerLayout-MJJYQDCW.js} +11 -11
- package/dist/{ModelSettings-ZVXMXIU4.js → ModelSettings-6EW7U2MP.js} +9 -9
- package/dist/ModelSettings-6EW7U2MP.js.map +1 -0
- package/dist/OpenUiFenceBlock-BZPFNXWZ.js +9 -0
- package/dist/{SandboxSettings-H6BA2DJQ.js → SandboxSettings-HQVBGHXZ.js} +7 -7
- package/dist/SchedulesPage-ZO3PJY4J.js +15 -0
- package/dist/{SettingsBuilder-VA3VGWZC.js → SettingsBuilder-FODMI7HG.js} +20 -11
- package/dist/SettingsBuilder-FODMI7HG.js.map +1 -0
- package/dist/{ShellRouteSync-ZT4PBE6T.js → ShellRouteSync-4I5BP2VY.js} +4 -4
- package/dist/{SidebarLayout-ICXEN7ZL.js → SidebarLayout-ZLWG2YGO.js} +12 -12
- package/dist/{SkillSettings-F5JGGFXR.js → SkillSettings-AFSAOU6O.js} +7 -7
- package/dist/{TrueForgeUIWithRouter-MKJ7IEWG.js → TrueForgeUIWithRouter-RQX5XWGI.js} +9 -9
- package/dist/WebSearchSettings-BW4CWGRR.js +322 -0
- package/dist/WebSearchSettings-BW4CWGRR.js.map +1 -0
- package/dist/{WidgetLayout-J7ZRW3V3.js → WidgetLayout-WIPKUIL4.js} +10 -10
- package/dist/chunk-6UACSIIY.js +587 -0
- package/dist/chunk-6UACSIIY.js.map +1 -0
- package/dist/{chunk-U7WONUMR.js → chunk-7S7A3PNP.js} +6 -4
- package/dist/chunk-7S7A3PNP.js.map +1 -0
- package/dist/{chunk-VTOW2UIX.js → chunk-GHXA46A2.js} +78 -43
- package/dist/chunk-GHXA46A2.js.map +1 -0
- package/dist/{chunk-7AAO4UDQ.js → chunk-HCGDDQ4G.js} +5 -5
- package/dist/chunk-HCGDDQ4G.js.map +1 -0
- package/dist/{chunk-SCIEO6CF.js → chunk-HDMBSLDC.js} +2 -2
- package/dist/{chunk-KZK2PQ4A.js → chunk-MLMR26WQ.js} +244 -152
- package/dist/chunk-MLMR26WQ.js.map +1 -0
- package/dist/{chunk-BREN6OSX.js → chunk-Q22RHDYS.js} +42 -61
- package/dist/chunk-Q22RHDYS.js.map +1 -0
- package/dist/{chunk-WFIA627Q.js → chunk-QKFMAQ7O.js} +2 -2
- package/dist/{chunk-7VWUB5OV.js → chunk-TFQWCBFQ.js} +12 -12
- package/dist/chunk-TFQWCBFQ.js.map +1 -0
- package/dist/{chunk-JEAULQNF.js → chunk-TJGGIEF6.js} +3 -3
- package/dist/{chunk-KDCVFHPZ.js → chunk-TX6PB3DY.js} +3 -3
- package/dist/{chunk-MEW7WZ7Q.js → chunk-VBZXCX7Y.js} +253 -99
- package/dist/chunk-VBZXCX7Y.js.map +1 -0
- package/dist/{chunk-QI4HGU5E.js → chunk-Y47LJKXD.js} +13 -19
- package/dist/{chunk-QI4HGU5E.js.map → chunk-Y47LJKXD.js.map} +1 -1
- package/dist/{chunk-MB7Z5FPI.js → chunk-YN5ZBBQM.js} +9 -9
- package/dist/{chunk-UN7WPTTK.js → chunk-ZYJ2SBF7.js} +2 -2
- package/dist/createTrueForgeServer-DiSooQdh.d.ts +42 -0
- package/dist/index.d.ts +45 -39
- package/dist/index.js +43 -43
- package/dist/index.js.map +1 -1
- package/dist/plugins/trueforge-agent-server-adapter/index.d.ts +57 -894
- package/dist/plugins/trueforge-agent-server-adapter/index.js +110 -7
- package/dist/plugins/trueforge-agent-server-adapter/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -7
- package/dist/AgentMetricChart-UZCYOC4M.js +0 -15
- package/dist/ModelSettings-ZVXMXIU4.js.map +0 -1
- package/dist/OpenUiFenceBlock-F3YVDKAG.js +0 -9
- package/dist/SchedulesPage-FS2QZ5KB.js +0 -15
- package/dist/SettingsBuilder-VA3VGWZC.js.map +0 -1
- package/dist/chunk-7AAO4UDQ.js.map +0 -1
- package/dist/chunk-7VWUB5OV.js.map +0 -1
- package/dist/chunk-BREN6OSX.js.map +0 -1
- package/dist/chunk-KZK2PQ4A.js.map +0 -1
- package/dist/chunk-MEW7WZ7Q.js.map +0 -1
- package/dist/chunk-NXK4XW4U.js +0 -587
- package/dist/chunk-NXK4XW4U.js.map +0 -1
- package/dist/chunk-U7WONUMR.js.map +0 -1
- package/dist/chunk-VTOW2UIX.js.map +0 -1
- package/dist/createTrueFoundryServer-B_FYhSdn.d.ts +0 -42
- /package/dist/{AgentCodeSnippets-EK7KMIY2.js.map → AgentCodeSnippets-BPC6TD7K.js.map} +0 -0
- /package/dist/{AgentMetricChart-UZCYOC4M.js.map → AgentMetricChart-T6DZZ37Y.js.map} +0 -0
- /package/dist/{AgentOverview-5UPMYHT2.js.map → AgentOverview-BFU7EO4Y.js.map} +0 -0
- /package/dist/{AgentSessionEventTimeline-V6NPCYMW.js.map → AgentSessionEventTimeline-ATVBTYDF.js.map} +0 -0
- /package/dist/{AgentSessionEventTimelineChart-YQWZBQCG.js.map → AgentSessionEventTimelineChart-H577STKW.js.map} +0 -0
- /package/dist/{AgentSessions-WNYVVB6Q.js.map → AgentSessions-GDLBXFIK.js.map} +0 -0
- /package/dist/{ConnectorSettings-O4I24244.js.map → ConnectorSettings-FYNF6J3F.js.map} +0 -0
- /package/dist/{DockLayout-JMBZVMGB.js.map → DockLayout-SGUOMZ5E.js.map} +0 -0
- /package/dist/{DrawerLayout-E6G3IF6R.js.map → DrawerLayout-MJJYQDCW.js.map} +0 -0
- /package/dist/{OpenUiFenceBlock-F3YVDKAG.js.map → OpenUiFenceBlock-BZPFNXWZ.js.map} +0 -0
- /package/dist/{SandboxSettings-H6BA2DJQ.js.map → SandboxSettings-HQVBGHXZ.js.map} +0 -0
- /package/dist/{SchedulesPage-FS2QZ5KB.js.map → SchedulesPage-ZO3PJY4J.js.map} +0 -0
- /package/dist/{ShellRouteSync-ZT4PBE6T.js.map → ShellRouteSync-4I5BP2VY.js.map} +0 -0
- /package/dist/{SidebarLayout-ICXEN7ZL.js.map → SidebarLayout-ZLWG2YGO.js.map} +0 -0
- /package/dist/{SkillSettings-F5JGGFXR.js.map → SkillSettings-AFSAOU6O.js.map} +0 -0
- /package/dist/{TrueForgeUIWithRouter-MKJ7IEWG.js.map → TrueForgeUIWithRouter-RQX5XWGI.js.map} +0 -0
- /package/dist/{WidgetLayout-J7ZRW3V3.js.map → WidgetLayout-WIPKUIL4.js.map} +0 -0
- /package/dist/{chunk-SCIEO6CF.js.map → chunk-HDMBSLDC.js.map} +0 -0
- /package/dist/{chunk-WFIA627Q.js.map → chunk-QKFMAQ7O.js.map} +0 -0
- /package/dist/{chunk-JEAULQNF.js.map → chunk-TJGGIEF6.js.map} +0 -0
- /package/dist/{chunk-KDCVFHPZ.js.map → chunk-TX6PB3DY.js.map} +0 -0
- /package/dist/{chunk-MB7Z5FPI.js.map → chunk-YN5ZBBQM.js.map} +0 -0
- /package/dist/{chunk-UN7WPTTK.js.map → chunk-ZYJ2SBF7.js.map} +0 -0
|
@@ -2,35 +2,35 @@ import {
|
|
|
2
2
|
AgentConfigDrawerContainer,
|
|
3
3
|
NamedAgentHeaderLabel,
|
|
4
4
|
ShellActions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TFQWCBFQ.js";
|
|
6
6
|
import {
|
|
7
7
|
Thread
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GHXA46A2.js";
|
|
9
9
|
import {
|
|
10
10
|
useSlot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MLMR26WQ.js";
|
|
12
12
|
import {
|
|
13
13
|
Icon,
|
|
14
14
|
PageHeader,
|
|
15
15
|
Spinner,
|
|
16
16
|
auiButtonClass
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TX6PB3DY.js";
|
|
18
18
|
import {
|
|
19
19
|
useOptionalShellMode
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7S7A3PNP.js";
|
|
21
21
|
import {
|
|
22
22
|
useAui
|
|
23
23
|
} from "./chunk-M6MHLVSO.js";
|
|
24
24
|
import {
|
|
25
25
|
cn
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6UACSIIY.js";
|
|
27
27
|
|
|
28
28
|
// src/layouts/StackChatPanel.tsx
|
|
29
29
|
import { lazy, Suspense, useEffect } from "react";
|
|
30
30
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
31
|
-
var TruefoundrySettingsBuilder = lazy(() => import("./SettingsBuilder-
|
|
31
|
+
var TruefoundrySettingsBuilder = lazy(() => import("./SettingsBuilder-FODMI7HG.js"));
|
|
32
32
|
var SchedulesPage = lazy(
|
|
33
|
-
() => import("./SchedulesPage-
|
|
33
|
+
() => import("./SchedulesPage-ZO3PJY4J.js").then((m) => ({ default: m.SchedulesPage }))
|
|
34
34
|
);
|
|
35
35
|
function StackChatPanel({ className, threadHeaderEnd }) {
|
|
36
36
|
const aui = useAui();
|
|
@@ -181,4 +181,4 @@ function StackChatPanel({ className, threadHeaderEnd }) {
|
|
|
181
181
|
export {
|
|
182
182
|
StackChatPanel
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=chunk-
|
|
184
|
+
//# sourceMappingURL=chunk-YN5ZBBQM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getErrorMessage,
|
|
3
3
|
useOptionalServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7S7A3PNP.js";
|
|
5
5
|
|
|
6
6
|
// src/atoms/lib/useSearchAgentsList.ts
|
|
7
7
|
import { useCallback, useEffect as useEffect2, useRef, useState as useState2 } from "react";
|
|
@@ -235,4 +235,4 @@ export {
|
|
|
235
235
|
clearScheduleShareSearch,
|
|
236
236
|
replaceScheduleShareSearch
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
238
|
+
//# sourceMappingURL=chunk-ZYJ2SBF7.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AgentSpec, ModelSelection, AgentSkill, ConnectorState, AgentLibraryEntry, SaveAgentResult, CatalogServer, AgentBuilderCapabilitiesResponse, AgentSessionsServer, AgentMetricsServer, ScheduleServer, PermissionsServer, AgentChatServer, AgentBuilderServer, SearchAgentsParams, SaveAgentRequest } from '@truefoundry/trueforge-assistant-ui-runtime/server';
|
|
2
|
+
|
|
3
|
+
type CreateTrueForgeServerOptions<TSpec extends AgentSpec = AgentSpec, TModel extends ModelSelection = ModelSelection, TSkill extends AgentSkill = AgentSkill, TMcp extends ConnectorState = ConnectorState, TAgent extends AgentLibraryEntry = AgentLibraryEntry, TSave extends SaveAgentResult = SaveAgentResult, TCatalog extends CatalogServer = CatalogServer, TCapabilities extends AgentBuilderCapabilitiesResponse = AgentBuilderCapabilitiesResponse, TSessions extends AgentSessionsServer<TSpec> = AgentSessionsServer<TSpec>, TMetrics extends AgentMetricsServer = AgentMetricsServer, TSchedules extends ScheduleServer = ScheduleServer, TPermissions extends PermissionsServer = PermissionsServer> = {
|
|
4
|
+
/** Chat port — e.g. from `@truefoundry/agent-server-adapter`. */
|
|
5
|
+
chatServer: AgentChatServer<TSpec>;
|
|
6
|
+
getCapabilities: () => Promise<TCapabilities>;
|
|
7
|
+
getModels: () => Promise<TModel[]>;
|
|
8
|
+
getSkills: () => Promise<TSkill[]>;
|
|
9
|
+
getMcp: () => Promise<TMcp[]>;
|
|
10
|
+
getMcpConnector?: AgentBuilderServer<TSpec, TModel, TSkill, TMcp, TAgent, TSave, TCapabilities>['getMcpConnector'];
|
|
11
|
+
getMcpTools?: AgentBuilderServer<TSpec, TModel, TSkill, TMcp, TAgent, TSave, TCapabilities>['getMcpTools'];
|
|
12
|
+
searchAgents: (req?: SearchAgentsParams) => Promise<TAgent[]>;
|
|
13
|
+
saveAgent: (req: SaveAgentRequest<TSpec>) => Promise<TSave>;
|
|
14
|
+
deleteAgent?: (req: {
|
|
15
|
+
agentName: string;
|
|
16
|
+
}) => Promise<void>;
|
|
17
|
+
/** Settings catalog (models + connectors). Optional. */
|
|
18
|
+
catalog?: TCatalog;
|
|
19
|
+
/** Optional agent-detail port (Overview + Use In Code). */
|
|
20
|
+
sessions?: TSessions;
|
|
21
|
+
/** Optional aggregate metrics + chart port. */
|
|
22
|
+
metrics?: TMetrics;
|
|
23
|
+
/** Schedules listing + CRUD. Optional. */
|
|
24
|
+
schedules?: TSchedules;
|
|
25
|
+
/** Per-resource grants. Omit to leave actions enabled. */
|
|
26
|
+
permissions?: TPermissions;
|
|
27
|
+
};
|
|
28
|
+
type TrueForgeServer<TSpec extends AgentSpec = AgentSpec, TModel extends ModelSelection = ModelSelection, TSkill extends AgentSkill = AgentSkill, TMcp extends ConnectorState = ConnectorState, TAgent extends AgentLibraryEntry = AgentLibraryEntry, TSave extends SaveAgentResult = SaveAgentResult, TCatalog extends CatalogServer = CatalogServer, TCapabilities extends AgentBuilderCapabilitiesResponse = AgentBuilderCapabilitiesResponse, TSessions extends AgentSessionsServer<TSpec> = AgentSessionsServer<TSpec>, TMetrics extends AgentMetricsServer = AgentMetricsServer, TSchedules extends ScheduleServer = ScheduleServer, TPermissions extends PermissionsServer = PermissionsServer> = AgentChatServer<TSpec> & AgentBuilderServer<TSpec, TModel, TSkill, TMcp, TAgent, TSave, TCapabilities> & {
|
|
29
|
+
catalog?: TCatalog;
|
|
30
|
+
sessions?: TSessions;
|
|
31
|
+
metrics?: TMetrics;
|
|
32
|
+
schedules?: TSchedules;
|
|
33
|
+
permissions?: TPermissions;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Composes an `AgentChatServer` with host-provided builder catalog callbacks
|
|
37
|
+
* and an optional settings `catalog`.
|
|
38
|
+
* Gateway wiring lives in the host (or `@truefoundry/agent-server-adapter`).
|
|
39
|
+
*/
|
|
40
|
+
declare function createTrueForgeServer<TSpec extends AgentSpec = AgentSpec, TModel extends ModelSelection = ModelSelection, TSkill extends AgentSkill = AgentSkill, TMcp extends ConnectorState = ConnectorState, TAgent extends AgentLibraryEntry = AgentLibraryEntry, TSave extends SaveAgentResult = SaveAgentResult, TCatalog extends CatalogServer = CatalogServer, TCapabilities extends AgentBuilderCapabilitiesResponse = AgentBuilderCapabilitiesResponse, TSessions extends AgentSessionsServer<TSpec> = AgentSessionsServer<TSpec>, TMetrics extends AgentMetricsServer = AgentMetricsServer, TSchedules extends ScheduleServer = ScheduleServer, TPermissions extends PermissionsServer = PermissionsServer>(opts: CreateTrueForgeServerOptions<TSpec, TModel, TSkill, TMcp, TAgent, TSave, TCatalog, TCapabilities, TSessions, TMetrics, TSchedules, TPermissions>): TrueForgeServer<TSpec, TModel, TSkill, TMcp, TAgent, TSave, TCatalog, TCapabilities, TSessions, TMetrics, TSchedules, TPermissions>;
|
|
41
|
+
|
|
42
|
+
export { type CreateTrueForgeServerOptions as C, type TrueForgeServer as T, createTrueForgeServer as c };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
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, PermissionsServer,
|
|
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';
|
|
4
|
+
import { SessionEventItem, AgentDetail, AgentMetricMeter, AgentMetricChartDefinition, AgentMetricGraph, CodeSnippet, AgentLibraryEntry, AgentSpec, ModelSelection, ConnectorState, AgentSkill, McpToolSelection, AgentRuntimeConfig, Schedule, ScheduleRun, ScheduleStatus, AgentUIServer, CatalogServer, PermissionsServer, PermissionResourceType, ResourcePermission, AgentMetricsServer, AgentSessionsServer, ScheduleServer, AgentBuilderCapabilitiesResponse } from '@truefoundry/trueforge-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, CreateWebSearchProviderRequest, 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, UpdateWebSearchProviderRequest, UserMessage, UserMessageContent, UserToolApprovalEvent, UserToolResponseEvent, WebSearchCatalogServer, WebSearchProviderBase, WebSearchProviderCatalogEntry } from '@truefoundry/trueforge-assistant-ui-runtime/server';
|
|
6
6
|
import { TrueForgeApi } from '@truefoundry/trueforge-sdk';
|
|
7
7
|
import * as monaco_editor from 'monaco-editor';
|
|
8
8
|
import { MessagePrimitive, ToolCallMessagePartComponent } from '@assistant-ui/react';
|
|
9
9
|
export { AssistantState, useAui, useAuiState } from '@assistant-ui/react';
|
|
10
|
-
import {
|
|
11
|
-
export { DraftAgentConfig, NamedAgentConfig,
|
|
12
|
-
export { C as
|
|
10
|
+
import { UseTrueForgeAgentRuntimeOptions, TrueForgeAgentConfig } from '@truefoundry/trueforge-assistant-ui-runtime';
|
|
11
|
+
export { DraftAgentConfig, NamedAgentConfig, TrueForgeAgentConfig, UseTrueForgeAgentRuntimeOptions, mergeAgentSpec, trueForgeAttachmentAdapter, useTrueForgeAgentRuntime, useTrueForgeAgentSpec, useTrueForgeApprovals, useTrueForgeCancel, useTrueForgeDownloadSandboxFile, useTrueForgeHistoryPagination, useTrueForgeMcpAuth, useTrueForgeRespondToToolApproval, useTrueForgeToolResponses, useTrueForgeTurnId, useTrueForgeUpdateAgentSpec } from '@truefoundry/trueforge-assistant-ui-runtime';
|
|
12
|
+
export { C as CreateTrueForgeServerOptions, T as TrueForgeServer, c as createTrueForgeServer } from './createTrueForgeServer-DiSooQdh.js';
|
|
13
13
|
import { PartState } from '@assistant-ui/core/react';
|
|
14
14
|
|
|
15
15
|
type ThemeMode = 'light' | 'dark' | 'system';
|
|
@@ -349,6 +349,8 @@ type McpServer = {
|
|
|
349
349
|
};
|
|
350
350
|
type McpAuthPromptProps = {
|
|
351
351
|
servers: McpServer[];
|
|
352
|
+
connectedServerIds?: ReadonlySet<string>;
|
|
353
|
+
continueLoading?: boolean;
|
|
352
354
|
onConnect: (serverId: string) => void;
|
|
353
355
|
onContinue?: () => void;
|
|
354
356
|
readOnly?: boolean;
|
|
@@ -356,7 +358,7 @@ type McpAuthPromptProps = {
|
|
|
356
358
|
dataTestPrefix?: string;
|
|
357
359
|
className?: string;
|
|
358
360
|
};
|
|
359
|
-
declare function McpAuthPrompt({ servers, onConnect, onContinue, readOnly, title, dataTestPrefix, className, }: McpAuthPromptProps): react.JSX.Element | null;
|
|
361
|
+
declare function McpAuthPrompt({ servers, connectedServerIds, continueLoading, onConnect, onContinue, readOnly, title, dataTestPrefix, className, }: McpAuthPromptProps): react.JSX.Element | null;
|
|
360
362
|
declare module '../../theme/SlotsProvider.js' {
|
|
361
363
|
interface AtomSlots {
|
|
362
364
|
McpAuthPrompt: typeof McpAuthPrompt;
|
|
@@ -1659,7 +1661,7 @@ type ThreadListRowProps = {
|
|
|
1659
1661
|
agentName?: string;
|
|
1660
1662
|
/** Shown as compact relative time on the right. */
|
|
1661
1663
|
lastMessageAt?: Date;
|
|
1662
|
-
/** Overflow actions (e.g. delete menu) — rendered as a sibling of the title button. */
|
|
1664
|
+
/** Overflow actions (e.g. rename / delete menu) — rendered as a sibling of the title button. */
|
|
1663
1665
|
actions?: ReactNode;
|
|
1664
1666
|
className?: string;
|
|
1665
1667
|
};
|
|
@@ -2353,7 +2355,9 @@ declare function ThreadContainer({ composer }: ThreadContainerProps): react.JSX.
|
|
|
2353
2355
|
* rather than grouping them by Today/Yesterday/Earlier.
|
|
2354
2356
|
*
|
|
2355
2357
|
* Delete uses assistant-ui ThreadListItemPrimitive.Delete / ThreadListItemMorePrimitive
|
|
2356
|
-
* (adapter.delete → server.deleteSession).
|
|
2358
|
+
* (adapter.delete → server.deleteSession). Rename opens RenameSessionModal via
|
|
2359
|
+
* aui.threadListItem().rename (adapter.rename → server.renameSession) when
|
|
2360
|
+
* `renameSession` is implemented. Mobile/compact keeps a BottomSheet chrome.
|
|
2357
2361
|
*/
|
|
2358
2362
|
type ThreadListContainerProps = {
|
|
2359
2363
|
/** Called after New chat or selecting a row — used by stack/drawer chrome. */
|
|
@@ -2400,6 +2404,26 @@ declare const ToolCallContainer: ToolCallMessagePartComponent;
|
|
|
2400
2404
|
|
|
2401
2405
|
declare function ToolCallContentBlockContainer(props: ToolCallContentBlockProps): react.JSX.Element;
|
|
2402
2406
|
|
|
2407
|
+
type RuntimeAdapters$1 = NonNullable<UseTrueForgeAgentRuntimeOptions['adapters']>;
|
|
2408
|
+
type TrueForgeChatProviderProps = {
|
|
2409
|
+
server: AgentUIServer;
|
|
2410
|
+
initialSessionId?: string;
|
|
2411
|
+
adapters?: RuntimeAdapters$1;
|
|
2412
|
+
onError?: (error: unknown) => void;
|
|
2413
|
+
children: ReactNode;
|
|
2414
|
+
/** Discriminated agent source. Prefer over legacy `agentName`. */
|
|
2415
|
+
agent?: TrueForgeAgentConfig;
|
|
2416
|
+
/** Legacy named-agent shorthand. Prefer `agent: { mode: "named", agentName }`. */
|
|
2417
|
+
agentName?: string;
|
|
2418
|
+
/** Forwarded to `listSessions({ agentId })` for history filtering. */
|
|
2419
|
+
listSessionsAgentId?: string;
|
|
2420
|
+
};
|
|
2421
|
+
/**
|
|
2422
|
+
* Chat shell: wires `useTrueForgeAgentRuntime` from `server` and provides
|
|
2423
|
+
* assistant-ui + error toasts.
|
|
2424
|
+
*/
|
|
2425
|
+
declare function TrueForgeChatProvider(props: TrueForgeChatProviderProps): react.JSX.Element;
|
|
2426
|
+
|
|
2403
2427
|
type CurrentUser = {
|
|
2404
2428
|
displayName: string;
|
|
2405
2429
|
};
|
|
@@ -2459,7 +2483,7 @@ type SelectLibraryAgentRequest = {
|
|
|
2459
2483
|
description?: string;
|
|
2460
2484
|
agentSpec?: AgentSpec;
|
|
2461
2485
|
};
|
|
2462
|
-
type SettingsSection = 'models' | 'connectors' | 'skills' | 'sandbox';
|
|
2486
|
+
type SettingsSection = 'models' | 'connectors' | 'skills' | 'sandbox' | 'web-search';
|
|
2463
2487
|
type HistoryAgentFilter = {
|
|
2464
2488
|
agentId?: string;
|
|
2465
2489
|
agentName: string;
|
|
@@ -2641,13 +2665,6 @@ declare function useOptionalCustomActionRenderers(): CustomActionRenderers | und
|
|
|
2641
2665
|
* Optional host ports are attached onto the resolved `AgentUIServer`.
|
|
2642
2666
|
*/
|
|
2643
2667
|
type TrueForgeBuiltInServerConfig = {
|
|
2644
|
-
type: 'truefoundry';
|
|
2645
|
-
apiKey: string;
|
|
2646
|
-
controlPlaneURL: string;
|
|
2647
|
-
gatewayPlaneURL?: string;
|
|
2648
|
-
catalog?: CatalogServer;
|
|
2649
|
-
permissions?: PermissionsServer;
|
|
2650
|
-
} | {
|
|
2651
2668
|
type: 'trueforge';
|
|
2652
2669
|
/** Harness API root. Defaults to `'/'` (same-origin / proxied). */
|
|
2653
2670
|
baseUrl?: string;
|
|
@@ -2665,7 +2682,7 @@ type TrueForgeBuiltInServerConfig = {
|
|
|
2665
2682
|
type TrueForgeServerConfig = TrueForgeBuiltInServerConfig | AgentUIServer;
|
|
2666
2683
|
|
|
2667
2684
|
type ChatLayout = 'sidebar' | 'drawer' | 'dock' | 'widget';
|
|
2668
|
-
type RuntimeAdapters
|
|
2685
|
+
type RuntimeAdapters = NonNullable<UseTrueForgeAgentRuntimeOptions['adapters']>;
|
|
2669
2686
|
type TrueForgeUIProps = {
|
|
2670
2687
|
server: TrueForgeServerConfig;
|
|
2671
2688
|
/** Built-in layout string or a custom layout component. Defaults to `"sidebar"`. */
|
|
@@ -2674,7 +2691,7 @@ type TrueForgeUIProps = {
|
|
|
2674
2691
|
theme?: ThemeConfig;
|
|
2675
2692
|
className?: string;
|
|
2676
2693
|
initialSessionId?: string;
|
|
2677
|
-
adapters?: RuntimeAdapters
|
|
2694
|
+
adapters?: RuntimeAdapters;
|
|
2678
2695
|
onError?: (error: unknown) => void;
|
|
2679
2696
|
/**
|
|
2680
2697
|
* Agent / library / composer shell mode.
|
|
@@ -2706,26 +2723,6 @@ type TrueForgeUIProps = {
|
|
|
2706
2723
|
*/
|
|
2707
2724
|
declare function TrueForgeUI(props: TrueForgeUIProps): react.JSX.Element;
|
|
2708
2725
|
|
|
2709
|
-
type RuntimeAdapters = NonNullable<UseTrueFoundryAgentRuntimeOptions['adapters']>;
|
|
2710
|
-
type TrueFoundryChatProviderProps = {
|
|
2711
|
-
server: AgentUIServer;
|
|
2712
|
-
initialSessionId?: string;
|
|
2713
|
-
adapters?: RuntimeAdapters;
|
|
2714
|
-
onError?: (error: unknown) => void;
|
|
2715
|
-
children: ReactNode;
|
|
2716
|
-
/** Discriminated agent source. Prefer over legacy `agentName`. */
|
|
2717
|
-
agent?: TrueFoundryAgentConfig;
|
|
2718
|
-
/** Legacy named-agent shorthand. Prefer `agent: { mode: "named", agentName }`. */
|
|
2719
|
-
agentName?: string;
|
|
2720
|
-
/** Forwarded to `listSessions({ agentId })` for history filtering. */
|
|
2721
|
-
listSessionsAgentId?: string;
|
|
2722
|
-
};
|
|
2723
|
-
/**
|
|
2724
|
-
* Chat shell: wires `useTrueFoundryAgentRuntime` from `server` and provides
|
|
2725
|
-
* assistant-ui + error toasts.
|
|
2726
|
-
*/
|
|
2727
|
-
declare function TrueFoundryChatProvider(props: TrueFoundryChatProviderProps): react.JSX.Element;
|
|
2728
|
-
|
|
2729
2726
|
declare function UserEditComposerContainer(): react.JSX.Element;
|
|
2730
2727
|
|
|
2731
2728
|
declare function UserMessageContainer(): react.JSX.Element;
|
|
@@ -2819,6 +2816,15 @@ type McpAuthCallback = (isSuccess: boolean) => void;
|
|
|
2819
2816
|
type UseMCPAuthOptions = {
|
|
2820
2817
|
callbackPath?: string;
|
|
2821
2818
|
};
|
|
2819
|
+
/**
|
|
2820
|
+
* Browser side of the MCP OAuth handshake:
|
|
2821
|
+
* 1. `authenticateConnector` either reports the connector already authenticated or returns an authorization URL.
|
|
2822
|
+
* 2. That URL opens in a popup; the callback page broadcasts its result on `MCP_AUTH_POPUP_CHANNEL`, matched by `popupUid`.
|
|
2823
|
+
* 3. Success is re-read from the connector before `callback(true)` — the popup only proves the redirect ran, not that
|
|
2824
|
+
* tokens were stored.
|
|
2825
|
+
*
|
|
2826
|
+
* Each attempt has its own popup ID and listener, so multiple servers can be authorized independently.
|
|
2827
|
+
*/
|
|
2822
2828
|
declare const useMCPAuth: ({ callbackPath }?: UseMCPAuthOptions) => {
|
|
2823
2829
|
handleAuthorize: (integrationId: string, callback: McpAuthCallback) => Promise<void>;
|
|
2824
2830
|
isOAuthLoading: boolean;
|
|
@@ -2939,4 +2945,4 @@ declare function DraftCatalogProvider({ children }: {
|
|
|
2939
2945
|
}): 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;
|
|
2940
2946
|
declare function useDraftCatalog(): DraftCatalogValue;
|
|
2941
2947
|
|
|
2942
|
-
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
|
|
2948
|
+
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, TrueForgeChatProvider, type TrueForgeChatProviderProps, type TrueForgeServerConfig, TrueForgeUI, type TrueForgeUIProps, USER_MESSAGE_ATTACHMENT_PREVIEW_REM, type UseCanCreateAgentResult, 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, preloadMonaco, readSessionIsCreateAgent, resolveBrandChrome, resolvePresetTokens, sessionIsCreateAgent, shellIsCreateAgent, shellIsMutable, threadHasPendingMcpAuth, useAgentMetricsServer, useAgentSessionsServer, useApprovalNav, useBrand, useBrandName, useCanCreateAgent, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ThreadListContainer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VBZXCX7Y.js";
|
|
5
5
|
import {
|
|
6
6
|
ApprovalNavContainer,
|
|
7
7
|
AskUserContainer,
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
threadHasPendingMcpAuth,
|
|
17
17
|
useApprovalNav,
|
|
18
18
|
useComposerPauseView
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GHXA46A2.js";
|
|
20
20
|
import {
|
|
21
21
|
ServerInitLoader,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
TrueForgeChatProvider,
|
|
23
|
+
TrueForgeUIShell
|
|
24
|
+
} from "./chunk-Q22RHDYS.js";
|
|
25
25
|
import "./chunk-DJUFS2BW.js";
|
|
26
26
|
import {
|
|
27
27
|
ComposerBusyProvider,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
} from "./chunk-BSIPI3KV.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentMetricChart
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HDMBSLDC.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
createTrueForgeServer
|
|
37
|
+
} from "./chunk-HCGDDQ4G.js";
|
|
38
38
|
import "./chunk-Y6S4OVVQ.js";
|
|
39
39
|
import {
|
|
40
40
|
IS_CREATE_AGENT_METADATA_KEY,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
ScheduleStatusBadge,
|
|
51
51
|
SchedulesPage,
|
|
52
52
|
TestScheduleScreen
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-Y47LJKXD.js";
|
|
54
54
|
import {
|
|
55
55
|
AgentCodeBlock,
|
|
56
56
|
AgentConfigEditors,
|
|
@@ -194,14 +194,14 @@ import {
|
|
|
194
194
|
useThemeMode,
|
|
195
195
|
useToaster,
|
|
196
196
|
useToasterOptional
|
|
197
|
-
} from "./chunk-
|
|
198
|
-
import "./chunk-UN7WPTTK.js";
|
|
197
|
+
} from "./chunk-MLMR26WQ.js";
|
|
199
198
|
import {
|
|
200
199
|
DraftCatalogProvider,
|
|
201
200
|
Icon,
|
|
202
201
|
registerIcons,
|
|
203
202
|
useDraftCatalog
|
|
204
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-TX6PB3DY.js";
|
|
204
|
+
import "./chunk-ZYJ2SBF7.js";
|
|
205
205
|
import {
|
|
206
206
|
DEFAULT_AGENT_CONFIG,
|
|
207
207
|
ServerProvider,
|
|
@@ -224,14 +224,14 @@ import {
|
|
|
224
224
|
useServer,
|
|
225
225
|
useServerCapabilities,
|
|
226
226
|
useShellMode
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-7S7A3PNP.js";
|
|
228
228
|
import {
|
|
229
229
|
useAui,
|
|
230
230
|
useAuiState
|
|
231
231
|
} from "./chunk-M6MHLVSO.js";
|
|
232
232
|
import {
|
|
233
233
|
OpenUiFenceBlock
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-QKFMAQ7O.js";
|
|
235
235
|
import {
|
|
236
236
|
PRESETS,
|
|
237
237
|
ThemeProvider,
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
useOptionalContentClassNames,
|
|
242
242
|
useTheme,
|
|
243
243
|
useThemeIcons
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-6UACSIIY.js";
|
|
245
245
|
|
|
246
246
|
// src/icons/agent-2.svg
|
|
247
247
|
import * as React from "react";
|
|
@@ -442,7 +442,7 @@ function ToolGroupContainer({ children, group }) {
|
|
|
442
442
|
import { lazy, Suspense } from "react";
|
|
443
443
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
444
444
|
var TrueForgeUIWithRouter = lazy(
|
|
445
|
-
() => import("./TrueForgeUIWithRouter-
|
|
445
|
+
() => import("./TrueForgeUIWithRouter-RQX5XWGI.js").then((m) => ({ default: m.TrueForgeUIWithRouter }))
|
|
446
446
|
);
|
|
447
447
|
function TrueForgeUI(props) {
|
|
448
448
|
const isMcpAuthScreen = typeof window !== "undefined" && new URLSearchParams(window.location.search).get("screenType") === "mcp-auth";
|
|
@@ -459,19 +459,19 @@ function TrueForgeUI(props) {
|
|
|
459
459
|
// src/index.ts
|
|
460
460
|
import {
|
|
461
461
|
mergeAgentSpec,
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
} from "@truefoundry/assistant-ui-runtime";
|
|
462
|
+
trueForgeAttachmentAdapter,
|
|
463
|
+
useTrueForgeAgentRuntime,
|
|
464
|
+
useTrueForgeAgentSpec,
|
|
465
|
+
useTrueForgeApprovals,
|
|
466
|
+
useTrueForgeCancel,
|
|
467
|
+
useTrueForgeDownloadSandboxFile,
|
|
468
|
+
useTrueForgeHistoryPagination,
|
|
469
|
+
useTrueForgeMcpAuth,
|
|
470
|
+
useTrueForgeRespondToToolApproval,
|
|
471
|
+
useTrueForgeToolResponses,
|
|
472
|
+
useTrueForgeTurnId,
|
|
473
|
+
useTrueForgeUpdateAgentSpec
|
|
474
|
+
} from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
475
475
|
export {
|
|
476
476
|
AgentCodeBlock,
|
|
477
477
|
AgentConfigEditors,
|
|
@@ -624,8 +624,8 @@ export {
|
|
|
624
624
|
ToolCallContentBlockContainer,
|
|
625
625
|
ToolGroupCard,
|
|
626
626
|
ToolGroupContainer,
|
|
627
|
+
TrueForgeChatProvider,
|
|
627
628
|
TrueForgeUI,
|
|
628
|
-
TrueFoundryChatProvider,
|
|
629
629
|
USER_MESSAGE_ATTACHMENT_PREVIEW_REM,
|
|
630
630
|
UserAvatar,
|
|
631
631
|
UserEditComposerContainer,
|
|
@@ -635,7 +635,7 @@ export {
|
|
|
635
635
|
UserMessageEdit,
|
|
636
636
|
WelcomeScreen,
|
|
637
637
|
computeAgentStepsSplit,
|
|
638
|
-
|
|
638
|
+
createTrueForgeServer,
|
|
639
639
|
defaultSlots,
|
|
640
640
|
findSubAgentAncestorsForApproval,
|
|
641
641
|
getErrorMessage,
|
|
@@ -651,7 +651,7 @@ export {
|
|
|
651
651
|
shellIsCreateAgent,
|
|
652
652
|
shellIsMutable,
|
|
653
653
|
threadHasPendingMcpAuth,
|
|
654
|
-
|
|
654
|
+
trueForgeAttachmentAdapter,
|
|
655
655
|
useAgentMetricsServer,
|
|
656
656
|
useAgentSessionsServer,
|
|
657
657
|
useApprovalNav,
|
|
@@ -687,16 +687,16 @@ export {
|
|
|
687
687
|
useThemeMode,
|
|
688
688
|
useToaster,
|
|
689
689
|
useToasterOptional,
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
690
|
+
useTrueForgeAgentRuntime,
|
|
691
|
+
useTrueForgeAgentSpec,
|
|
692
|
+
useTrueForgeApprovals,
|
|
693
|
+
useTrueForgeCancel,
|
|
694
|
+
useTrueForgeDownloadSandboxFile,
|
|
695
|
+
useTrueForgeHistoryPagination,
|
|
696
|
+
useTrueForgeMcpAuth,
|
|
697
|
+
useTrueForgeRespondToToolApproval,
|
|
698
|
+
useTrueForgeToolResponses,
|
|
699
|
+
useTrueForgeTurnId,
|
|
700
|
+
useTrueForgeUpdateAgentSpec
|
|
701
701
|
};
|
|
702
702
|
//# sourceMappingURL=index.js.map
|