@truefoundry/assistant-ui-runtime 0.1.10 → 0.1.12

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.
@@ -87,20 +87,21 @@ describe("createTrueFoundryDraftThreadListAdapter", () => {
87
87
  remoteId: "d1",
88
88
  title: "My draft",
89
89
  lastMessageAt: new Date("2026-06-30T10:00:00.000Z"),
90
+ custom: { isMutable: true },
90
91
  },
91
92
  {
92
93
  status: "regular",
93
94
  remoteId: "s1",
94
95
  title: "Named",
95
96
  lastMessageAt: new Date("2026-06-30T09:00:00.000Z"),
96
- custom: { agentName: "from-sdk" },
97
+ custom: { isMutable: false, agentName: "from-sdk" },
97
98
  },
98
99
  {
99
100
  status: "regular",
100
101
  remoteId: "s2",
101
102
  title: "untitled-agent",
102
103
  lastMessageAt: new Date("2026-06-30T08:00:00.000Z"),
103
- custom: { agentName: "untitled-agent" },
104
+ custom: { isMutable: false, agentName: "untitled-agent" },
104
105
  },
105
106
  ]);
106
107
  expect(result.nextCursor).toBe("page-2");
package/src/index.ts CHANGED
@@ -77,7 +77,9 @@ export { trueFoundryAttachmentAdapter } from "./attachmentAdapter.js";
77
77
 
78
78
  export type {
79
79
  AgentChatServer,
80
+ AgentBuilderCapabilitiesResponse,
80
81
  AgentBuilderServer,
82
+ SaveAgentRequest,
81
83
  Session,
82
84
  Turn,
83
85
  TurnState,
@@ -91,8 +93,11 @@ export type {
91
93
  UserMessage,
92
94
  UserToolApprovalEvent,
93
95
  UserToolResponseEvent,
96
+ ApprovalDecision,
94
97
  PreviousTurnIdInput,
95
98
  ProviderType,
99
+ PageParams,
100
+ ListSessionsOrder,
96
101
  ModelEntry,
97
102
  ModelProviderConfigBase,
98
103
  ModelProviderBase,
@@ -115,6 +120,8 @@ export type {
115
120
  ConnectorCatalogEntry,
116
121
  CreateConnectorRequest,
117
122
  UpdateConnectorRequest,
123
+ AuthenticateConnectorRequest,
124
+ ConnectorAuthenticationResult,
118
125
  ConnectorCatalogServer,
119
126
  SkillBase,
120
127
  RegistrySkill,
@@ -132,9 +139,29 @@ export type {
132
139
  SandboxBase,
133
140
  CreateSandboxRequest,
134
141
  UpdateSandboxRequest,
142
+ SandboxProviderConfig,
143
+ SandboxProviderCatalogEntry,
144
+ SandboxProviderBase,
145
+ CreateSandboxProviderRequest,
146
+ UpdateSandboxProviderRequest,
135
147
  SandboxCatalogServer,
136
148
  CatalogServer,
137
149
  AgentUIServerPort,
150
+ AgentUIServer,
151
+ ModelSelectorEntry,
152
+ SkillSelectorEntry,
153
+ ConnectorSelectorEntry,
154
+ AgentSelectorEntry,
155
+ SearchAgentSelectorParams,
156
+ ModelSelection,
157
+ AgentSkill,
158
+ ConnectorState,
159
+ AgentLibraryEntry,
160
+ SearchAgentsParams,
161
+ SkillMount,
162
+ McpServerMount,
163
+ ModelParams,
164
+ Model,
138
165
  } from "./server/index.js";
139
166
  export type {
140
167
  SandboxCreatedEvent,
@@ -76,6 +76,13 @@ export async function createTrueFoundryAgentUIServer<
76
76
 
77
77
  const server: TrueFoundryAgentUIServer<TSpec> = {
78
78
  ...chat,
79
+ getCapabilities: async () => ({
80
+ data: {
81
+ sandbox: { enabled: true },
82
+ skill: { enabled: true },
83
+ settings: { enabled: true },
84
+ },
85
+ }),
79
86
  getModels: () => listEnabledModels(cp),
80
87
  getSkills: () => listAgentSkills(cp),
81
88
  getMcp: () => listMcpServers(cp),
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * TrueFoundry-specific type extensions over the runtime's generic bases.
3
3
  *
4
- * The runtime defines minimal bases (SkillMount = {id,name}, McpServerMount =
5
- * {id,name}, AgentSpec.config = unknown, etc.) that hosts extend via generics.
4
+ * The runtime defines opaque mount bases (`SkillMount` / `McpServerMount` =
5
+ * `object`) that hosts intersect with gateway shapes via generics.
6
6
  *
7
7
  * This file builds the concrete TrueFoundry types by:
8
8
  * - Importing the runtime's AgentSpec as the base to extend.
@@ -4,11 +4,17 @@ export type {
4
4
  ConnectorSelectorEntry,
5
5
  AgentSelectorEntry,
6
6
  SearchAgentSelectorParams,
7
+ ModelSelection,
8
+ AgentSkill,
9
+ ConnectorState,
10
+ AgentLibraryEntry,
11
+ SearchAgentsParams,
7
12
  SkillMount,
8
13
  McpServerMount,
9
14
  ModelParams,
10
15
  Model,
11
16
  AgentSpec,
17
+ SaveAgentRequest,
12
18
  Session,
13
19
  CreateSessionRequest,
14
20
  UpdateSessionRequest,
@@ -30,6 +36,7 @@ export type {
30
36
  TurnState,
31
37
  Turn,
32
38
  AgentChatServer,
39
+ AgentBuilderCapabilitiesResponse,
33
40
  AgentBuilderServer,
34
41
  ProviderType,
35
42
  ModelEntry,
@@ -54,6 +61,8 @@ export type {
54
61
  ConnectorCatalogEntry,
55
62
  CreateConnectorRequest,
56
63
  UpdateConnectorRequest,
64
+ AuthenticateConnectorRequest,
65
+ ConnectorAuthenticationResult,
57
66
  ConnectorCatalogServer,
58
67
  SkillBase,
59
68
  RegistrySkill,
@@ -71,9 +80,15 @@ export type {
71
80
  SandboxBase,
72
81
  CreateSandboxRequest,
73
82
  UpdateSandboxRequest,
83
+ SandboxProviderConfig,
84
+ SandboxProviderCatalogEntry,
85
+ SandboxProviderBase,
86
+ CreateSandboxProviderRequest,
87
+ UpdateSandboxProviderRequest,
74
88
  SandboxCatalogServer,
75
89
  CatalogServer,
76
90
  AgentUIServerPort,
91
+ AgentUIServer,
77
92
  } from "./types.js";
78
93
 
79
94
  export type {