Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

Enhance agent type definitions and update dependencies (#165)

Govinda Vashishtha7cfad06a7518
diff --git a/.cursor/rules/server-types-runtime-only.mdc b/.cursor/rules/server-types-runtime-only.mdc
new file mode 100644
index 000000000..64eacfd7a
--- /dev/null
+++ b/.cursor/rules/server-types-runtime-only.mdc
@@ -0,0 +1,36 @@
+---
+description: AgentUIServer / server-port types are defined only in assistant-ui-runtime; UI re-exports
+globs: packages/trueforge-ui-sdk/src/server/**/*,packages/trueforge-ui-sdk/src/**/*Server*,packages/trueforge-ui-sdk/src/**/*server*,packages/frontend/src/harnessServer.ts,packages/frontend/src/harnessBuilderServer.ts
+alwaysApply: false
+---
+
+# Server types — runtime is the sole owner
+
+Canonical `AgentUIServer` / chat / builder / catalog port types live only in
+`@truefoundry/assistant-ui-runtime` (`src/server/types.ts` + `events.ts`).
+
+## Rules
+
+- [`packages/trueforge-ui-sdk/src/server/types.ts`](packages/trueforge-ui-sdk/src/server/types.ts)
+ is the host-facing barrel: re-export only from `@truefoundry/assistant-ui-runtime`
+ (prefer `/server` when avoiding root name collisions). Do **not** put hand-written
+ server port/DTO interfaces there or elsewhere in this monorepo.
+- Hosts import types from `@truefoundry/trueforge-ui` only — they must not need the
+ runtime package for types.
+- Need a new field/method on the contract? Change runtime `server/types.ts` first,
+ publish/bump, then re-export — never fork the shape in the UI SDK.
+- React wiring may stay here (`ServerContext`, `ShellModeContext`,
+ `TrueforgeServerConfig`). Those modules **import** runtime types; they do not
+ redefine ports.
+- Host adapters (e.g. frontend `harnessServer`) widen via generics / intersections
+ over runtime bases (`SkillMount` / `McpServerMount` stay opaque `object`).
+
+## Examples
+
+```typescript
+// ✅
+import type { AgentUIServer, ListResult } from './types.js';
+
+// ❌ local duplicate
+export interface AgentChatServer { /* ... */ }
+```
diff --git a/AGENTS.md b/AGENTS.md
index 9017125d7..9b4bc8c65 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -5,6 +5,7 @@
- TypeScript code MUST NOT use assertion escapes such as `as T`, `as unknown as T`, non-null `!`, or `as never` to silence type errors; implementations MUST use sound contracts, guards, or corrected types.
- When catching an error and throwing another, the new error MUST set `{ cause: caught }` so the original failure is preserved for logs and debugging.
- Every type, schema, helper, and contract MUST have one canonical owner; code MUST NOT introduce duplicate definitions or forwarding shims that hide ownership.
+- AgentUIServer / server-port types (`AgentChatServer`, `AgentBuilderServer`, catalog ports, session/turn DTOs, stream events) MUST be defined only in `@truefoundry/assistant-ui-runtime` (`src/server/types.ts` / `events.ts`). `@truefoundry/trueforge-ui` MUST re-export them from `src/server/types.ts` (pass-through aliases only) and MUST NOT add hand-written parallel definitions of those ports/DTOs.
- Runtime types backed by Zod schemas MUST be derived with named `z.infer<typeof Schema>` aliases; code MUST NOT duplicate those schemas as hand-written interfaces or indirect utility-type chains.
- Modules MUST use static `import` and `import type`; they MUST NOT use `require()`, `require.resolve()`, or lint suppressions to bypass import checks.
- A change that makes code unused MUST remove that dead code in the same change; it MUST NOT leave stale exports, files, documentation, duplicates, or “just in case” shims.
diff --git a/eslint.config.mjs b/eslint.config.mjs
index dac6d94a1..29f398907 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -93,6 +93,9 @@ export default defineConfig(
files: ['packages/frontend/*.{ts,mts,cts}', 'packages/frontend/*.config.ts'],
extends: [js.configs.recommended, tseslint.configs.recommended],
languageOptions: {
+ parserOptions: {
+ tsconfigRootDir: import.meta.dirname,
+ },
globals: {
console: 'readonly',
process: 'readonly',
@@ -104,6 +107,9 @@ export default defineConfig(
files: ['**/*.{js,mjs,cjs}'],
extends: [tseslint.configs.disableTypeChecked],
languageOptions: {
+ parserOptions: {
+ tsconfigRootDir: import.meta.dirname,
+ },
// Flat config does not support /* eslint-env node */; Node scripts and CJS configs need Node globals.
globals: {
module: 'readonly',
diff --git a/package.json b/package.json
index 2c1d7ce17..09a8c7f23 100644
--- a/package.json
+++ b/package.json
@@ -47,6 +47,7 @@
"lint-staged": "^16.4.0",
"prettier": "^3.5.3",
"prettier-plugin-organize-imports": "^4.0.0",
+ "typescript": "~5.9.3",
"typescript-eslint": "^8.65.0"
},
"lint-staged": {
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index c851e6e8a..83b23483d 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -24,7 +24,7 @@
"@assistant-ui/core": "0.2.22",
"@assistant-ui/react": "^0.14.24",
"@assistant-ui/store": "0.2.21",
- "@truefoundry/assistant-ui-runtime": "^0.1.10",
+ "@truefoundry/assistant-ui-runtime": "0.1.12",
"@truefoundry/trueforge-ui": "workspace:*",
"monaco-editor": "^0.52.0",
"react": "^19.2.4",
diff --git a/packages/frontend/src/harnessServer.ts b/packages/frontend/src/harnessServer.ts
index 408a06c59..8fc177597 100644
--- a/packages/frontend/src/harnessServer.ts
+++ b/packages/frontend/src/harnessServer.ts
@@ -1,14 +1,11 @@
/**
* Harness `AgentUIServer` adapter for @truefoundry/trueforge-ui.
*
- * The SDK still declares the pre-0.1.6 server contract — mounts carry `id`,
- * list results are `PageResult`, and absent values are `undefined` — while the
- * runtime it delegates to reads `nextPageToken` and tolerates `null`. Harness
- * matches neither exactly: it keys mounts by name and returns `null`. The maps
- * below produce values valid under both contracts at once.
+ * Runtime contract: opaque mounts (`object`), flat `ListResult` (`data` +
+ * `nextPageToken`), and `null` normalized to absent. Harness keys MCP mounts by
+ * name and returns `null` for optional fields — the maps below bridge both.
*
- * Skills are name refs on the wire (`SkillNameRef`); the UI SkillMount only
- * needs `{ id, name }`, so id is derived as the skill name.
+ * Skills are name refs on the wire (`SkillNameRef`).
*
* Session create takes `{ name }` or `{ spec }`; reads carry the
* `reference`/`inline` discriminator, with reference rows already naming their
@@ -17,21 +14,18 @@
import type {
AgentChatServer,
AgentSpec,
- McpServerMount,
- PageResult,
+ ListResult,
Session,
- SessionEvent,
SessionEventItem,
- SkillMount,
- TokenPagination,
Turn,
TurnInputItem,
UserMessageContent,
} from '@truefoundry/trueforge-ui';
import type { TrueForgeApi } from 'trueforge-sdk';
import { createHarnessClient, harnessClient, type CreateHarnessClientOptions } from './harnessClient';
-export type HarnessSkillMount = SkillMount;
-export type HarnessMcpServerMount = McpServerMount & TrueForgeApi.McpServer;
+
+export type HarnessSkillMount = TrueForgeApi.SkillNameRef;
+export type HarnessMcpServerMount = TrueForgeApi.McpServer;
export interface HarnessAgentSpec extends AgentSpec<
TrueForgeApi.AgentSpecModel,
@@ -46,17 +40,15 @@ export interface HarnessAgentSpec extends AgentSpec<
export type CreateHarnessServerOptions = CreateHarnessClientOptions;
-/** Mount ids are derived, not stored: Harness returns MCP servers keyed by name. */
function toUiMcpServer(server: TrueForgeApi.McpServer): HarnessMcpServerMount {
- return { ...server, id: server.name };
+ return server;
}
-/** Skill ids are derived from the name ref Harness persists. */
function toUiSkill(skill: TrueForgeApi.SkillNameRef): HarnessSkillMount {
- return { id: skill.name, name: skill.name };
+ return { name: skill.name };
}
-/** Strip UI-only `id` before admission; Harness skills are name refs only. */
+/** Drop UI draft `id` before admission; Harness MCP mounts are name-keyed. */
export function toHarnessAgentSpec(spec: HarnessAgentSpec): TrueForgeApi.AgentSpec {
const { skills, mcpServers, ...rest } = spec;
return {
@@ -65,9 +57,13 @@ export function toHarnessAgentSpec(spec: HarnessAgentSpec): TrueForgeApi.AgentSp
? {}
: {
mcpServers: mcpServers.map(server => {
- const { id, ...mount } = server;
- void id;
- return mount;
+ // Draft picker may round-trip mounts as `{ id, name, ... }`; strip UI-only `id`.
+ if ('id' in server) {
+ const { id, ...mount } = server;
+ void id;
+ return mount;
+ }
+ return server;
}),
}),
...(skills === undefined ? {} : { skills: skills.map(({ name }) => ({ name })) }),
@@ -123,35 +119,24 @@ function toUiTurn(turn: TrueForgeApi.Turn): Turn {
};
}
-function toUiEvent(event: TrueForgeApi.SessionEvent | TrueForgeApi.TurnStreamingEvent): SessionEvent {
- return { ...event };
-}
-
function toUiEventItem(item: TrueForgeApi.SessionEventItem): SessionEventItem {
- return { turnId: item.turnId, event: toUiEvent(item.event) };
+ return { turnId: item.turnId, event: { ...item.event } };
}
interface HarnessPageSource<T> {
data: T[];
response: { pagination: TrueForgeApi.TokenPagination };
- getNextPage(): Promise<HarnessPageSource<T>>;
}
-/** Carries `nextPageToken` for the runtime alongside the `PageResult` shape the SDK types demand. */
-type HarnessPage<T> = PageResult<T, { data: T[]; pagination: TokenPagination }> & { nextPageToken?: string };
-
-function toPage<TSource, TResult>(
+function toListResult<TSource, TResult>(
page: HarnessPageSource<TSource>,
map: (item: TSource) => TResult,
-): HarnessPage<TResult> {
+): ListResult<TResult> {
const data = page.data.map(map);
- const { pagination } = page.response;
+ const token = page.response.pagination.nextPageToken;
return {
data,
- response: { data, pagination },
- hasNextPage: () => pagination.nextPageToken !== undefined,
- getNextPage: async () => toPage(await page.getNextPage(), map),
- ...(pagination.nextPageToken === undefined ? {} : { nextPageToken: pagination.nextPageToken }),
+ ...(token === undefined ? {} : { nextPageToken: token }),
};
}
@@ -213,7 +198,7 @@ export function createHarnessChatServer(options: CreateHarnessServerOptions = {}
...(request.pageToken === undefined ? {} : { pageToken: request.pageToken }),
...(request.agentId === undefined || request.agentId.length === 0 ? {} : { agentId: request.agentId }),
});
- return toPage(page, toUiSession);
+ return toListResult(page, toUiSession);
},
async getSession({ sessionId }) {
@@ -246,7 +231,7 @@ export function createHarnessChatServer(options: CreateHarnessServerOptions = {}
for await (const item of stream.withMetadata()) {
yield {
sequenceNumber: sequenceNumber(item.id, fallbackSequence),
- event: toUiEvent(item.data),
+ event: { ...item.data },
};
fallbackSequence += 1;
}
@@ -269,7 +254,7 @@ export function createHarnessChatServer(options: CreateHarnessServerOptions = {}
for await (const item of stream.withMetadata()) {
yield {
sequenceNumber: sequenceNumber(item.id, fallbackSequence),
- event: toUiEvent(item.data),
+ event: { ...item.data },
};
fallbackSequence += 1;
}
@@ -284,7 +269,7 @@ export function createHarnessChatServer(options: CreateHarnessServerOptions = {}
...(limit === undefined ? {} : { limit }),
...(pageToken === undefined ? {} : { pageToken }),
});
- return toPage(page, toUiTurn);
+ return toListResult(page, toUiTurn);
},
async getTurn({ sessionId, turnId }) {
@@ -298,7 +283,7 @@ export function createHarnessChatServer(options: CreateHarnessServerOptions = {}
...(lastTurnId === undefined ? {} : { lastTurnId }),
...(limit === undefined ? {} : { limit }),
});
- return toPage(page, toUiEventItem);
+ return toListResult(page, toUiEventItem);
},
};
}
diff --git a/packages/frontend/tests/harnessBuilderServer.test.ts b/packages/frontend/tests/harnessBuilderServer.test.ts
index ee47ba54e..699caec55 100644
--- a/packages/frontend/tests/harnessBuilderServer.test.ts
+++ b/packages/frontend/tests/harnessBuilderServer.test.ts
@@ -86,8 +86,8 @@ describe('harnessBuilderServer', () => {
agentSpec: {
model: { name: 'test/model' },
instructions: 'Review carefully.',
- skills: [{ id: 'review', name: 'review' }],
- mcpServers: [{ id: 'github', name: 'github', enableTools: ['@all'] }],
+ skills: [{ name: 'review' }],
+ mcpServers: [{ name: 'github', enableTools: ['@all'] }],
},
});
@@ -120,7 +120,7 @@ describe('harnessBuilderServer', () => {
agentName: 'saved-agent',
agentSpec: {
model: { name: 'test/model' },
- skills: [{ id: 'review', name: 'review' }],
+ skills: [{ name: 'review' }],
},
});
diff --git a/packages/frontend/tests/harnessServer.test.ts b/packages/frontend/tests/harnessServer.test.ts
index 6743fe1b4..e9c42659c 100644
--- a/packages/frontend/tests/harnessServer.test.ts
+++ b/packages/frontend/tests/harnessServer.test.ts
@@ -60,7 +60,7 @@ const fetchMock: typeof fetch = async (input, init) => {
};
describe('createHarnessChatServer', () => {
- it('derives mount ids Harness does not store', async () => {
+ it('forwards gateway-shaped mounts without synthesizing ids', async () => {
const server = createHarnessChatServer({ fetch: fetchMock });
const spec: HarnessAgentSpec = { model: { name: 'test/model' } };
@@ -68,8 +68,8 @@ describe('createHarnessChatServer', () => {
assert.equal(created.isMutable, true);
assert.equal(created.title, undefined);
- assert.deepEqual(created.agentSpec?.mcpServers?.[0]?.id, 'github');
- assert.deepEqual(created.agentSpec?.skills?.[0], { id: 'review', name: 'review' });
+ assert.deepEqual(created.agentSpec?.mcpServers?.[0], { name: 'github', enableTools: ['@all'] });
+ assert.deepEqual(created.agentSpec?.skills?.[0], { name: 'review' });
});
it('sends skill name refs and strips UI-only mount ids before admission', async () => {
@@ -78,9 +78,9 @@ describe('createHarnessChatServer', () => {
await server.createSession({
agentSpec: {
model: { name: 'test/model' },
- // The picker round-trips a mount as `{ id, name }`.
- skills: [{ id: 'review', name: 'review' }],
- mcpServers: [{ id: 'github', name: 'github', enableTools: ['@all'] }],
+ // Draft picker may round-trip a mount as `{ id, name }`.
+ skills: [{ name: 'review' }],
+ mcpServers: [{ name: 'github', enableTools: ['@all'] }],
},
});
@@ -95,14 +95,13 @@ describe('createHarnessChatServer', () => {
});
});
- it('reports pages under both the SDK and runtime pagination contracts', async () => {
+ it('reports pages under the ListResult pagination contract', async () => {
const server = createHarnessChatServer({ fetch: fetchMock });
const page = await server.listSessions({ limit: 20 });
assert.equal(page.data[0]?.id, 'ses_1');
- assert.equal(page.hasNextPage(), true);
- assert.equal(page.response.pagination.nextPageToken, 'tok_2');
+ assert.equal(page.nextPageToken, 'tok_2');
});
it('preserves SSE sequence numbers and roots chains Harness-style', async () => {
@@ -201,7 +200,7 @@ describe('createHarnessChatServer', () => {
assert.ok(listUrl !== undefined);
assert.equal(new URL(listUrl, 'http://test.local').searchParams.get('agent_id'), 'ghost');
assert.deepEqual(page.data, []);
- assert.equal(page.hasNextPage(), false);
+ assert.equal(page.nextPageToken, undefined);
});
it('getSession takes the agentName of a ref session from the wire, without a registry lookup', async () => {
diff --git a/packages/trueforge-ui-sdk/CHANGELOG.md b/packages/trueforge-ui-sdk/CHANGELOG.md
index 7ef51be19..4d02a69e8 100644
--- a/packages/trueforge-ui-sdk/CHANGELOG.md
+++ b/packages/trueforge-ui-sdk/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Hosts no longer need `@import '@truefoundry/trueforge-ui/styles.css'` (export
kept for SSR). Semantic tokens and dark mode are scoped to `.aui-theme-root`
(no `html.dark` / `:root` retheme of the host page).
+- **Dependency** — `@truefoundry/assistant-ui-runtime` pinned to `0.1.12`.
### Fixed
@@ -27,6 +28,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Breaking
+- **Server-port types owned by `@truefoundry/assistant-ui-runtime`** — this package no
+ longer defines `AgentChatServer` / `AgentBuilderServer` / catalog DTOs locally.
+ Host-facing types are re-exported from `@truefoundry/assistant-ui-runtime/server`
+ via `src/server/types.ts`. Prefer importing types from `@truefoundry/trueforge-ui`
+ (hosts should not need the runtime package for types). Requires runtime `0.1.12`.
+- **Removed public pagination helpers** — `PageResult`, `TokenPagination`,
+ `ListSessionsResponse`, `ListTurnsResponse`, `ListSessionEventsResponse`, and
+ opaque `SessionEvent` are gone from this package. Chat list APIs use runtime
+ `ListResult<T>` (`{ data, nextPageToken? }`).
+- **`AgentUIServer` / mounts follow the runtime contract** — composed port matches
+ runtime `AgentUIServerPort`; `SkillMount` / `McpServerMount` stay opaque `object`
+ (hosts widen via generics). Implement `getCapabilities()` on every builder host.
- **`ShellMode` shape** — replaced `type: 'idle' | 'named' | 'draft'` with
`status: 'idle' | 'active'` plus `isMutable` on active bindings. Composer /
Save Agent / welcome chrome key off `isMutable`, not draft|named.
diff --git a/packages/trueforge-ui-sdk/docs/compatibility.md b/packages/trueforge-ui-sdk/docs/compatibility.md
index 11685d13a..34b028390 100644
--- a/packages/trueforge-ui-sdk/docs/compatibility.md
+++ b/packages/trueforge-ui-sdk/docs/compatibility.md
@@ -21,7 +21,7 @@ Install once at the app root.
| ----------------------------------- | ------------- |
| `@assistant-ui/core` | `^0.2.22` |
| `@assistant-ui/react` | `^0.14.24` |
-| `@truefoundry/assistant-ui-runtime` | `^0.1.9` |
+| `@truefoundry/assistant-ui-runtime` | `0.1.12` |
| `truefoundry-gateway-sdk` | `^0.4.0-rc.6` |
| `lucide-react` | `^0.562.0` |
diff --git a/packages/trueforge-ui-sdk/eslint.config.js b/packages/trueforge-ui-sdk/eslint.config.js
index e52bd005c..6250dc805 100644
--- a/packages/trueforge-ui-sdk/eslint.config.js
+++ b/packages/trueforge-ui-sdk/eslint.config.js
@@ -9,6 +9,14 @@ export default tseslint.config(
},
eslint.configs.recommended,
...tseslint.configs.recommended,
+ {
+ // Required when root `eslint .` also loads the workspace config (multiple candidate roots).
+ languageOptions: {
+ parserOptions: {
+ tsconfigRootDir: import.meta.dirname,
+ },
+ },
+ },
{
files: ['src/**/*.{ts,tsx}', 'test/**/*.{ts,tsx}'],
languageOptions: {
diff --git a/packages/trueforge-ui-sdk/example/package.json b/packages/trueforge-ui-sdk/example/package.json
index 37ecadd20..08d453aac 100644
--- a/packages/trueforge-ui-sdk/example/package.json
+++ b/packages/trueforge-ui-sdk/example/package.json
@@ -12,7 +12,7 @@
"dependencies": {
"@assistant-ui/core": "^0.2.22",
"@assistant-ui/react": "^0.14.24",
- "@truefoundry/assistant-ui-runtime": "^0.1.10",
+ "@truefoundry/assistant-ui-runtime": "0.1.12",
"@truefoundry/trueforge-ui": "link:..",
"react": "^19.2.4",
"react-dom": "^19.2.4",
diff --git a/packages/trueforge-ui-sdk/package.json b/packages/trueforge-ui-sdk/package.json
index 45a63d641..76e692985 100644
--- a/packages/trueforge-ui-sdk/package.json
+++ b/packages/trueforge-ui-sdk/package.json
@@ -85,7 +85,7 @@
"@openuidev/react-headless": "^0.9.4",
"@openuidev/react-lang": "^0.2.9",
"@openuidev/react-ui": "^0.13.2",
- "@truefoundry/assistant-ui-runtime": "^0.1.10",
+ "@truefoundry/assistant-ui-runtime": "0.1.12",
"clsx": "^2.1.1",
"lucide-react": "^0.562.0",
"monaco-editor": "^0.56.0",
diff --git a/packages/trueforge-ui-sdk/src/atoms/AgentHistoryFilterButton.tsx b/packages/trueforge-ui-sdk/src/atoms/AgentHistoryFilterButton.tsx
index b8ee851e7..d515afc12 100644
--- a/packages/trueforge-ui-sdk/src/atoms/AgentHistoryFilterButton.tsx
+++ b/packages/trueforge-ui-sdk/src/atoms/AgentHistoryFilterButton.tsx
@@ -5,7 +5,7 @@ import { createPortal } from 'react-dom';
import { Icon } from '../icons/Icon.js';
import { useOptionalServer } from '../server/ServerContext.js';
-import { useOptionalShellMode } from '../server/ShellModeContext.js';
+import { libraryAgentId, useOptionalShellMode } from '../server/ShellModeContext.js';
import { auiButtonClass } from './lib/buttonClasses.js';
import { cn } from './lib/cn.js';
import { useCompactLayout } from './lib/CompactLayoutContext.js';
@@ -111,12 +111,13 @@ export function AgentHistoryFilterButton() {
) : (
<>
{agents.map(agent => {
- const active = selected === agent.agentId;
+ const id = libraryAgentId(agent);
+ const active = selected === id;
return (
<DropdownMenuItem
- key={agent.agentId}
+ key={id}
className={cn('justify-between gap-2 text-left', active && 'bg-accent text-accent-foreground')}
- onClick={() => pick(agent.agentId)}
+ onClick={() => pick(id)}
>
<span className="min-w-0 truncate">{agent.name}</span>
{active ? <Icon name="check" className="size-3.5 shrink-0" /> : null}
diff --git a/packages/trueforge-ui-sdk/src/atoms/AgentsLibrary.tsx b/packages/trueforge-ui-sdk/src/atoms/AgentsLibrary.tsx
index 817d5fcf5..b8af85017 100644
--- a/packages/trueforge-ui-sdk/src/atoms/AgentsLibrary.tsx
+++ b/packages/trueforge-ui-sdk/src/atoms/AgentsLibrary.tsx
@@ -114,7 +114,7 @@ export function AgentsLibrary({ open, onOpenChange, onSelectAgent }: AgentsLibra
onSelectAgent?.(agent.name);
shell?.selectLibraryAgent({
isMutable: false,
- agentId: agent.agentId,
+ agentId: libraryAgentId(agent),
agentName: agent.name,
});
};
@@ -124,7 +124,7 @@ export function AgentsLibrary({ open, onOpenChange, onSelectAgent }: AgentsLibra
onSelectAgent?.(agent.name);
shell?.selectLibraryAgent({
isMutable: true,
- agentId: agent.agentId,
+ agentId: libraryAgentId(agent),
agentName: agent.name,
agentSpec,
});
diff --git a/packages/trueforge-ui-sdk/src/atoms/draft/DraftCompositeSelector.tsx b/packages/trueforge-ui-sdk/src/atoms/draft/DraftCompositeSelector.tsx
index 487aa0609..78734f177 100644
--- a/packages/trueforge-ui-sdk/src/atoms/draft/DraftCompositeSelector.tsx
+++ b/packages/trueforge-ui-sdk/src/atoms/draft/DraftCompositeSelector.tsx
@@ -5,7 +5,7 @@ import { useCallback, useEffect, useId, useMemo, useRef, useState } from 'react'
import { Icon } from '../../icons/Icon.js';
import { useServerCapabilities } from '../../server/ServerContext.js';
-import type { AgentSkill, ConnectorState, McpServerMount, SkillMount } from '../../server/types.js';
+import type { AgentSkill, ConnectorState } from '../../server/types.js';
import { auiButtonClass } from '../lib/buttonClasses.js';
import { cn } from '../lib/cn.js';
import { useCompactLayout } from '../lib/CompactLayoutContext.js';
@@ -13,6 +13,26 @@ import { useIsMobile } from '../lib/useIsMobile.js';
import { BottomSheet } from '../primitives/BottomSheet.js';
import { useDraftCatalog } from './DraftCatalogProvider.js';
+/** Catalog-backed mount shape used by the draft picker (runtime mounts stay opaque). */
+type DraftMount = { id: string; name: string };
+
+/**
+ * Harness wire mounts are name-keyed (`{ name }` only). Catalog rows use
+ * `id === name`, so missing ids hydrate from name — otherwise save/load drops
+ * mounts from the picker and the next flush can wipe them from the spec.
+ */
+function draftMountsFromSpec(value: unknown): DraftMount[] {
+ if (!Array.isArray(value)) return [];
+ const mounts: DraftMount[] = [];
+ for (const item of value) {
+ if (typeof item !== 'object' || item === null) continue;
+ const name = Reflect.get(item, 'name');
+ if (typeof name !== 'string') continue;
+ const id = Reflect.get(item, 'id');
+ mounts.push({ id: typeof id === 'string' ? id : name, name });
+ }
+ return mounts;
+}
type AttachTab = 'connectors' | 'skills' | 'files';
const TABS: { id: AttachTab; label: string; icon: string }[] = [
@@ -123,8 +143,8 @@ export function DraftCompositeSelector({ disabled, isRunning, onAttach }: DraftC
const [pinnedMcpIds, setPinnedMcpIds] = useState<Set<string>>(() => new Set());
const [pinnedSkillIds, setPinnedSkillIds] = useState<Set<string>>(() => new Set());
// Local working copy while open — flush to AgentSpec on debounce / close.
- const [localMcp, setLocalMcp] = useState<McpServerMount[]>([]);
- const [localSkills, setLocalSkills] = useState<SkillMount[]>([]);
+ const [localMcp, setLocalMcp] = useState<DraftMount[]>([]);
+ const [localSkills, setLocalSkills] = useState<DraftMount[]>([]);
const dirtyRef = useRef(false);
const flushTimerRef = useRef<number | null>(null);
const localMcpRef = useRef(localMcp);
@@ -139,8 +159,8 @@ export function DraftCompositeSelector({ disabled, isRunning, onAttach }: DraftC
const skillsDisabled = capabilities?.skill.enabled !== true;
const skillsDisabledReason = capabilities?.skill.reason;
- const specMcp = useMemo(() => (agentSpec?.mcpServers as McpServerMount[] | undefined) ?? [], [agentSpec?.mcpServers]);
- const specSkills = useMemo(() => (agentSpec?.skills as SkillMount[] | undefined) ?? [], [agentSpec?.skills]);
+ const specMcp = useMemo(() => draftMountsFromSpec(agentSpec?.mcpServers), [agentSpec?.mcpServers]);
+ const specSkills = useMemo(() => draftMountsFromSpec(agentSpec?.skills), [agentSpec?.skills]);
const selectedMcp = open ? localMcp : specMcp;
const selectedSkills = open ? localSkills : specSkills;
diff --git a/packages/trueforge-ui-sdk/src/containers/useResolvedServer.ts b/packages/trueforge-ui-sdk/src/containers/useResolvedServer.ts
index 7d6372f7f..0f0dc3a56 100644
--- a/packages/trueforge-ui-sdk/src/containers/useResolvedServer.ts
+++ b/packages/trueforge-ui-sdk/src/containers/useResolvedServer.ts
@@ -11,7 +11,7 @@ export type ResolvedServerState =
| { status: 'ready'; server: AgentUIServer; error: null }
| { status: 'error'; server: null; error: unknown };
-/** Used when the runtime adapter has not shipped `getCapabilities` yet. */
+/** Fallback when an older runtime adapter omits `getCapabilities`. */
const DEFAULT_CAPABILITIES = {
data: {
sandbox: { enabled: true },
@@ -36,8 +36,7 @@ function hasGetCapabilities(
}
/**
- * Runtime chat/builder objects are structurally an AgentUIServer once
- * `getCapabilities` is present. Catalog is optional host overlay.
+ * Attach optional catalog and ensure `getCapabilities` exists on the composed port.
*/
function toAgentUIServer(server: object, catalog: CatalogServer | undefined): AgentUIServer {
const getCapabilities = hasGetCapabilities(server)
diff --git a/packages/trueforge-ui-sdk/src/index.ts b/packages/trueforge-ui-sdk/src/index.ts
index 1aaaecfb0..a6ca71920 100644
--- a/packages/trueforge-ui-sdk/src/index.ts
+++ b/packages/trueforge-ui-sdk/src/index.ts
@@ -273,11 +273,9 @@ export type {
DefinedSkill,
GithubSkill,
ImportGithubSkillRequest,
- ListSessionEventsResponse,
+ ListResult,
ListSessionsOrder,
ListSessionsParams,
- ListSessionsResponse,
- ListTurnsResponse,
McpServerMount,
Model,
ModelCatalogServer,
@@ -288,7 +286,6 @@ export type {
ModelProviderConfigBase,
ModelSelection,
PageParams,
- PageResult,
PreviousTurnIdInput,
ProviderType,
RegistrySkill,
@@ -300,14 +297,12 @@ export type {
SearchAgentsParams,
SelectRegistrySkillRequest,
Session,
- SessionEvent,
SessionEventItem,
SkillBase,
SkillCatalogEntry,
SkillCatalogServer,
SkillConfigBase,
SkillMount,
- TokenPagination,
ToolBase,
Turn,
TurnInputItem,
diff --git a/packages/trueforge-ui-sdk/src/server/ShellModeContext.tsx b/packages/trueforge-ui-sdk/src/server/ShellModeContext.tsx
index 812d6d953..c0c1317de 100644
--- a/packages/trueforge-ui-sdk/src/server/ShellModeContext.tsx
+++ b/packages/trueforge-ui-sdk/src/server/ShellModeContext.tsx
@@ -133,8 +133,8 @@ function initialMode(config: AgentConfig, mutableSeed: AgentSpec): ShellMode {
}
}
-function libraryAgentId(agent: Pick<AgentLibraryEntry, 'agentId'>): string {
- return agent.agentId;
+function libraryAgentId(agent: Pick<AgentLibraryEntry, 'agentId' | 'name'>): string {
+ return agent.agentId ?? agent.name;
}
export function ShellModeProvider({
diff --git a/packages/trueforge-ui-sdk/src/server/createTrueFoundryServer.ts b/packages/trueforge-ui-sdk/src/server/createTrueFoundryServer.ts
index f53daf8f9..8dd1445a8 100644
--- a/packages/trueforge-ui-sdk/src/server/createTrueFoundryServer.ts
+++ b/packages/trueforge-ui-sdk/src/server/createTrueFoundryServer.ts
@@ -5,19 +5,11 @@ import type {
AgentLibraryEntry,
AgentSkill,
AgentSpec,
- AgentUIServer,
CatalogServer,
ConnectorState,
- CreateSessionRequest,
- ListSessionsParams,
ModelSelection,
SaveAgentRequest,
SearchAgentsParams,
- Session,
- SessionEventItem,
- Turn,
- TurnStreamingEvent,
- UpdateSessionRequest,
} from './types.js';
export type CreateTrueFoundryServerOptions<
@@ -52,23 +44,10 @@ export type TrueFoundryServer<
TSave = unknown,
TCatalog extends CatalogServer = CatalogServer,
TCapabilities extends AgentBuilderCapabilitiesResponse = AgentBuilderCapabilitiesResponse,
-> = AgentUIServer<
- TSpec,
- Session<TSpec>,
- CreateSessionRequest<TSpec>,
- ListSessionsParams,
- UpdateSessionRequest<TSpec>,
- Turn,
- SessionEventItem,
- TurnStreamingEvent,
- TModel,
- TSkill,
- TMcp,
- TAgent,
- TSave,
- TCatalog,
- TCapabilities
->;
+> = AgentChatServer<TSpec> &
+ AgentBuilderServer<TSpec, TModel, TSkill, TMcp, TAgent, TSave, TCapabilities> & {
+ catalog?: TCatalog;
+ };
/**
* Composes an `AgentChatServer` with host-provided builder catalog callbacks
diff --git a/packages/trueforge-ui-sdk/src/server/types.ts b/packages/trueforge-ui-sdk/src/server/types.ts
index bc56b5134..eb9439c6e 100644
--- a/packages/trueforge-ui-sdk/src/server/types.ts
+++ b/packages/trueforge-ui-sdk/src/server/types.ts
@@ -1,729 +1,89 @@
/**
- * FE-owned AgentUIServer contract.
+ * Host-facing server contract — re-exported from `@truefoundry/assistant-ui-runtime/server`
+ * so hosts never import the runtime package directly.
*
- * Rule: only methods/fields our UI calls or the runtime invokes.
- * Hosts extend via `T extends Base` for system-specific extras.
- *
- * The runtime will accept `AgentChatServer` instead of gateway clients.
- */
-
-// ---------------------------------------------------------------------------
-// Catalog — picker / library rows (SDK-minimal; host extends via generics)
-// ---------------------------------------------------------------------------
-
-/** Model picker row. Host extends for apiModel, modelId, pricing, etc. */
-export interface ModelSelection {
- name: string;
- provider: string;
- /** When non-empty, UI shows a reasoning-effort picker beside the model selector. */
- reasoningEfforts?: string[];
- /** Provider logo URL from the model catalog; selector falls back to a monogram when omitted. */
- providerLogo?: string;
-}
-
-/** Skill picker row. Host extends for fqn, preload, etc. */
-export interface AgentSkill {
- id: string;
- name: string;
- description?: string;
-}
-
-/** MCP picker row. Host extends for type, enableTools, url, etc. */
-export interface ConnectorState {
- id: string;
- name: string;
- description?: string;
- /** When true, the connector must be authenticated before use. Omitted when the host does not report auth. */
- requiresAuth?: boolean;
- /** When true, the connector is already authenticated. Omitted when the host does not report auth. */
- authenticated?: boolean;
-}
-
-/**
- * Agents library row — SDK-minimal.
- * Hosts extend via `TAgent extends AgentLibraryEntry` for richer metadata/spec shapes.
- * `agentSpec` enables Edit (mutable); Try works with `name` + `agentId`.
- */
-export interface AgentLibraryEntry {
- name: string;
- /** Stable id used for selection, history filters, and session binding. */
- agentId: string;
- /** Published agent spec — required for Edit; optional for Try-only hosts. */
- agentSpec?: AgentSpec;
-}
-
-export type SearchAgentsParams = {
- query?: string;
- limit?: number;
- offset?: number;
-};
-
-// ---------------------------------------------------------------------------
-// Mounts — neutral SDK base (host extends with backend-specific fields)
-// ---------------------------------------------------------------------------
-
-/** Skill mount base written to AgentSpec.skills[]. Host extends for fqn, preload, etc. */
-export interface SkillMount {
- id: string;
- name: string;
-}
-
-/** MCP server mount base written to AgentSpec.mcpServers[]. Host extends for type, enableTools, etc. */
-export interface McpServerMount {
- id: string;
- name: string;
-}
-
-// ---------------------------------------------------------------------------
-// AgentSpec — each nested field + the spec itself are host-extendable
-// ---------------------------------------------------------------------------
-
-export interface ModelParams {
- maxTokens?: number;
- reasoningEffort?: string;
-}
-
-/** Model written to AgentSpec.model. Host extends for provider extras, etc. */
-export interface Model<TParams extends ModelParams = ModelParams> {
- name: string;
- params?: TParams;
-}
-
-/**
- * SDK-owned agent definition — fields the FE reads/writes.
- *
- * - Nested slots are generic: host widens `Model` / `SkillMount` / `McpServerMount`.
- * - The spec itself is extendable: `interface TfySpec extends AgentSpec<...> { config?: RuntimeConfig }`.
- *
- * @example
- * ```ts
- * interface TfyModelParams extends ModelParams { temperature?: number }
- * interface TfyModel extends Model<TfyModelParams> {}
- * interface TfySkillMount extends SkillMount { fqn: string; preload: boolean }
- * interface TfyMcpMount extends McpServerMount { type: string; enableTools: string[] }
- *
- * interface TfySpec extends AgentSpec<TfyModel, TfySkillMount, TfyMcpMount> {
- * config?: RuntimeConfig;
- * }
- * ```
- */
-export interface AgentSpec<
- TModel extends Model = Model,
- TSkill extends SkillMount = SkillMount,
- TMcp extends McpServerMount = McpServerMount,
-> {
- model: TModel;
- /** System prompt / instructions for the agent. */
- instructions?: string;
- skills?: TSkill[];
- mcpServers?: TMcp[];
-}
-
-/** Request body for `AgentBuilderServer.saveAgent`. */
-export interface SaveAgentRequest<TSpec extends AgentSpec = AgentSpec> {
- agentName: string;
- agentSpec: TSpec;
-}
-
-// ---------------------------------------------------------------------------
-// Session — plain DTO, generic in TSpec so host's spec type flows through
-// ---------------------------------------------------------------------------
-
-export interface Session<TSpec extends AgentSpec = AgentSpec> {
- id: string;
- title?: string;
- agentName?: string;
- agentSpec?: TSpec;
- /** true → mutable builder + updateSession(spec) allowed. */
- isMutable: boolean;
- createdAt: string;
- updatedAt: string;
-}
-
-export interface CreateSessionRequest<TSpec extends AgentSpec = AgentSpec> {
- agentName?: string;
- agentSpec?: TSpec;
-}
-
-export interface UpdateSessionRequest<TSpec extends AgentSpec = AgentSpec> {
- sessionId: string;
- agentSpec?: TSpec;
- title?: string;
-}
-
-// ---------------------------------------------------------------------------
-// Pagination
-// ---------------------------------------------------------------------------
-
-export interface TokenPagination {
- nextPageToken?: string;
- previousPageToken?: string;
- limit: number;
-}
-
-export interface PageResult<T, R = unknown> {
- data: T[];
- response: R;
- hasNextPage(): boolean;
- getNextPage(): Promise<PageResult<T, R>>;
-}
-
-export type ListSessionsOrder = 'asc' | 'desc';
-
-export type PageParams = {
- limit?: number;
- order?: ListSessionsOrder;
- pageToken?: string;
-};
-
-export interface ListSessionsParams extends PageParams {
- /**
- * Host-owned agent identity filter. Hosts that key agents by name pass that name here.
- * Unknown / deleted ids MUST return an empty page (stale history filter, SingleAgent
- * mismatch) — do not throw and fail the whole thread list.
- */
- agentId?: string;
-}
-
-export interface ListSessionsResponse<
- TSpec extends AgentSpec = AgentSpec,
- TSession extends Session<TSpec> = Session<TSpec>,
-> {
- data: TSession[];
- pagination: TokenPagination;
-}
-
-export type PreviousTurnIdInput = 'auto' | 'none' | string;
-
-// ---------------------------------------------------------------------------
-// Turn input / state — what runtime sends and reads
-// ---------------------------------------------------------------------------
-
-export type UserMessageContent =
- string | Array<{ type: 'text'; text: string } | { type: 'file'; [key: string]: unknown }>;
-
-export interface UserMessage {
- type: 'user.message';
- content: UserMessageContent;
-}
-
-export type ApprovalDecision = { status: 'allow' } | { status: 'deny'; reason?: string };
-
-export interface UserToolApprovalEvent {
- type: 'user.tool_approval';
- threadId: string;
- toolCallId: string;
- approval: ApprovalDecision;
-}
-
-export interface UserToolResponseEvent {
- type: 'user.tool_response';
- threadId: string;
- toolCallId: string;
- content: string;
-}
-
-export type TurnInputItem = UserMessage | UserToolApprovalEvent | UserToolResponseEvent;
-
-export type TurnState =
- | { status: 'running' }
- | {
- status: 'done';
- output?: unknown;
- requiredActions?: unknown[];
- completedAt: string;
- }
- | { status: 'cancelled'; reason: string; completedAt: string }
- | { status: 'error'; message: string; completedAt: string };
-
-export interface Turn {
- id: string;
- sessionId: string;
- previousTurnId?: string;
- input?: TurnInputItem[];
- state: TurnState;
- createdAt: string;
-}
-
-export interface ListTurnsResponse<TTurn extends Turn = Turn> {
- data: TTurn[];
- pagination: TokenPagination;
-}
-
-// ---------------------------------------------------------------------------
-// Stream / events — opaque; host narrows via generics
-// ---------------------------------------------------------------------------
-
-export type TurnStreamingEvent = { type: string; [key: string]: unknown };
-
-export interface TurnStreamData<TStreamEvent extends TurnStreamingEvent = TurnStreamingEvent> {
- sequenceNumber: number;
- event: TStreamEvent;
-}
-
-export type SessionEvent = { type: string; [key: string]: unknown };
-
-export interface SessionEventItem {
- turnId: string;
- event: SessionEvent;
-}
-
-export interface ListSessionEventsResponse<TEvent extends SessionEventItem = SessionEventItem> {
- data: TEvent[];
- pagination: TokenPagination;
-}
-
-// ---------------------------------------------------------------------------
-// Server ports — flat methods, no session-with-methods objects
-// ---------------------------------------------------------------------------
-
-/**
- * Chat / session port — the runtime calls these.
- *
- * All session ops are flat (sessionId param). No gateway client dependency.
- * `createTrueFoundryServer` is one possible implementation (TFY adapter).
- *
- * TSpec flows through Session, CreateSessionRequest, UpdateSessionRequest
- * so the host's extended spec is type-safe end to end.
- */
-export interface AgentChatServer<
- TSpec extends AgentSpec = AgentSpec,
- TSession extends Session<TSpec> = Session<TSpec>,
- TCreate extends CreateSessionRequest<TSpec> = CreateSessionRequest<TSpec>,
- TList extends ListSessionsParams = ListSessionsParams,
- TUpdate extends UpdateSessionRequest<TSpec> = UpdateSessionRequest<TSpec>,
- TTurn extends Turn = Turn,
- TEvent extends SessionEventItem = SessionEventItem,
- TStreamEvent extends TurnStreamingEvent = TurnStreamingEvent,
-> {
- createSession(req: TCreate): Promise<TSession>;
- listSessions(req?: TList): Promise<PageResult<TSession, ListSessionsResponse<TSpec, TSession>>>;
- getSession(req: { sessionId: string }): Promise<TSession>;
- updateSession(req: TUpdate): Promise<TSession>;
-
- createTurn(req: {
- sessionId: string;
- input?: TurnInputItem[];
- previousTurnId?: PreviousTurnIdInput;
- }): AsyncIterable<TurnStreamData<TStreamEvent>>;
-
- cancelSession(req: { sessionId: string }): Promise<void>;
- /** Deletes a session; used by the session list Delete control. */
- deleteSession?(req: { sessionId: string }): Promise<void>;
-
- listTurns(req: {
- sessionId: string;
- limit?: number;
- pageToken?: string;
- }): Promise<PageResult<TTurn, ListTurnsResponse<TTurn>>>;
- getTurn(req: { sessionId: string; turnId: string }): Promise<TTurn>;
- listEvents(req: {
- sessionId: string;
- pageToken?: string;
- lastTurnId?: string;
- limit?: number;
- }): Promise<PageResult<TEvent, ListSessionEventsResponse<TEvent>>>;
-
- subscribeToTurn?(req: {
- sessionId: string;
- turnId: string;
- afterSequenceNumber?: number;
- }): AsyncIterable<TurnStreamData<TStreamEvent>>;
-
- /**
- * Reads a file the agent wrote inside its sandbox. Hosts whose download route is scoped to a
- * turn resolve the sandbox from `turnId` and ignore `sandboxId`; hosts addressing sandboxes
- * directly use `sandboxId`.
- */
- downloadSandboxFile?(req: { sessionId: string; turnId: string; sandboxId: string; path: string }): Promise<Blob>;
-}
-
-/**
- * Builder catalog + persist port — atoms call these.
- *
- * Generics let hosts type their catalog rows richer than SDK base.
- */
-export interface AgentBuilderCapabilitiesResponse {
- data: {
- sandbox: { enabled: boolean };
- skill: { enabled: boolean; reason?: string };
- settings?: { enabled: boolean };
- };
-}
-
-export interface AgentBuilderServer<
- TSpec extends AgentSpec = AgentSpec,
- TModel extends ModelSelection = ModelSelection,
- TSkill extends AgentSkill = AgentSkill,
- TMcp extends ConnectorState = ConnectorState,
- TAgent extends AgentLibraryEntry = AgentLibraryEntry,
- TSave = unknown,
- TCapabilities extends AgentBuilderCapabilitiesResponse = AgentBuilderCapabilitiesResponse,
-> {
- getCapabilities(): Promise<TCapabilities>;
- getModels(): Promise<TModel[]>;
- getSkills(): Promise<TSkill[]>;
- getMcp(): Promise<TMcp[]>;
- searchAgents(req?: SearchAgentsParams): Promise<TAgent[]>;
- saveAgent(req: SaveAgentRequest<TSpec>): Promise<TSave>;
- deleteAgent?(req: { agentName: string }): Promise<void>;
-}
-
-// ---------------------------------------------------------------------------
-// Catalog management — FE-minimal settings DTOs (host extends via generics)
-// ---------------------------------------------------------------------------
-
-/**
- * Provider type id. Reserved literal: `"custom"` for user-defined providers;
- * any other string is a builtin (e.g. `"openai"`, `"anthropic"`).
- *
- * Note: `string | "custom"` is useless in TypeScript (`"custom"` ⊆ `string`),
- * so this stays `string` and `"custom"` is a documented convention.
- */
-export type ProviderType = string;
-
-/**
- * Model row — form "Model ID" + "Display name".
- * Host extends for properties, etc.
- */
-export interface ModelEntry {
- id: string;
- name: string;
-}
-
-/**
- * Write config for create/update (custom form + catalog "Save key").
- * Host extends. `baseUrl` present iff `type === "custom"`.
- */
-export interface ModelProviderConfigBase<TModel extends ModelEntry = ModelEntry> {
- type: ProviderType;
- name: string;
- /** Present iff `type === "custom"`. */
- baseUrl?: string;
- apiKey: string;
- models: TModel[];
-}
-
-/**
- * Configured provider card (list/read). No raw `apiKey`.
- * Host extends for apiKeySet, timestamps, etc.
- */
-export interface ModelProviderBase<TModel extends ModelEntry = ModelEntry> {
- id: string;
- type: ProviderType;
- name: string;
- /** Present iff `type === "custom"`. */
- baseUrl?: string;
- models: TModel[];
-}
-
-/**
- * Discovery-only catalog provider (AVAILABLE list).
- * `type` must not be `"custom"` — custom providers use the custom form.
- * Host extends for richer model rows.
- */
-export interface ModelProviderCatalogEntry<TModel extends ModelEntry = ModelEntry> {
- type: ProviderType;
- name: string;
- models: TModel[];
- supportedReasoningEfforts?: string[];
- logo?: string;
-}
-
-/** Create — no `id`; server assigns it. Catalog path = entry + apiKey. */
-export type CreateModelProviderRequest<TModel extends ModelEntry = ModelEntry> = ModelProviderConfigBase<TModel>;
-
-/** Update — `id` required. */
-export type UpdateModelProviderRequest<TModel extends ModelEntry = ModelEntry> = ModelProviderConfigBase<TModel> & {
- id: string;
-};
-
-export interface ModelCatalogServer<
- TModel extends ModelEntry = ModelEntry,
- TProvider extends ModelProviderBase<TModel> = ModelProviderBase<TModel>,
- TCatalogProvider extends ModelProviderCatalogEntry<TModel> = ModelProviderCatalogEntry<TModel>,
- TCreate extends CreateModelProviderRequest<TModel> = CreateModelProviderRequest<TModel>,
- TUpdate extends UpdateModelProviderRequest<TModel> = UpdateModelProviderRequest<TModel>,
-> {
- getModelProviderCatalog(): Promise<TCatalogProvider[]>;
- listModelProviders(): Promise<TProvider[]>;
- createModelProvider(req: TCreate): Promise<TProvider>;
- /** Full replace update keyed by provider `id`. */
- updateModelProvider(req: TUpdate): Promise<TProvider>;
- deleteModelProvider?(req: { id: string }): Promise<void>;
-}
-
-/** Tool row on a connector detail. Host extends for schemas, etc. */
-export interface ToolBase {
- id: string;
- name: string;
- description: string;
-}
-
-/** Strict auth type id. Hosts widen branches via intersection + re-union. */
-export type ConnectorAuthType = 'dcr' | 'header' | 'none';
-
-// Write (create/update) — export branches so hosts can intersect extras
-export type ConnectorAuthOAuth = { type: 'dcr'; authUrl?: string };
-export type ConnectorAuthApiKey = {
- type: 'header';
- apiKey?: string;
- headerName?: string;
-};
-export type ConnectorAuthNone = { type: 'none' };
-export type ConnectorAuth = ConnectorAuthOAuth | ConnectorAuthApiKey | ConnectorAuthNone;
-
-export type ConnectorAuthPublicOAuth = { type: 'dcr'; authUrl?: string };
-export type ConnectorAuthPublicApiKey = {
- type: 'header';
- headerName?: string;
-};
-export type ConnectorAuthPublicNone = { type: 'none' };
-export type ConnectorAuthPublic = ConnectorAuthPublicOAuth | ConnectorAuthPublicApiKey | ConnectorAuthPublicNone;
-
-/**
- * MCP / connector create-edit config. Host extends for extra fields, etc.
- */
-export interface ConnectorConfigBase<TAuth extends ConnectorAuth = ConnectorAuth> {
- name: string;
- url: string;
- auth: TAuth;
-}
-
-/**
- * Connected connector row (settings/connectors). No raw `apiKey` or tools.
- * Tools are fetched separately with `getToolsByConnectorId`.
- * Host extends.
- */
-export interface ConnectorBase<TAuth extends ConnectorAuthPublic = ConnectorAuthPublic> {
- id: string;
- name: string;
- description: string;
- url: string;
- auth: TAuth;
- /** When true, UI should not show Disconnect. */
- requiresAuth: boolean;
- authenticated: boolean;
-}
-
-/** Discovery catalog entry for "+ Add MCP server". Host extends. */
-export interface ConnectorCatalogEntry<TAuth extends ConnectorAuthPublic = ConnectorAuthPublic> {
- id: string;
- name: string;
- description?: string;
- url: string;
- auth: TAuth;
- logo?: string;
-}
-
-/** Create connector — no `id`; server assigns it. Host extends. */
-export type CreateConnectorRequest<TAuth extends ConnectorAuth = ConnectorAuth> = ConnectorConfigBase<TAuth>;
-
-/** Update connector — `id` required. Host extends. */
-export type UpdateConnectorRequest<TAuth extends ConnectorAuth = ConnectorAuth> = ConnectorConfigBase<TAuth> & {
- id: string;
-};
-
-export interface AuthenticateConnectorRequest {
- id: string;
- /** OAuth callback page owned by the host application. */
- redirectURL?: string;
-}
-
-export interface ConnectorAuthenticationResult<TConnector extends ConnectorBase = ConnectorBase> {
- connector?: TConnector;
- status?: string;
- authorization_endpoint?: string | undefined;
-}
-
-export interface ConnectorCatalogServer<
- TTool extends ToolBase = ToolBase,
- TAuthWrite extends ConnectorAuth = ConnectorAuth,
- TAuthPublic extends ConnectorAuthPublic = ConnectorAuthPublic,
- TConnector extends ConnectorBase<TAuthPublic> = ConnectorBase<TAuthPublic>,
- TCatalogEntry extends ConnectorCatalogEntry<TAuthPublic> = ConnectorCatalogEntry<TAuthPublic>,
- TCreate extends CreateConnectorRequest<TAuthWrite> = CreateConnectorRequest<TAuthWrite>,
- TUpdate extends UpdateConnectorRequest<TAuthWrite> = UpdateConnectorRequest<TAuthWrite>,
-> {
- getConnectorCatalog(): Promise<TCatalogEntry[]>;
- getConnector(req: { id: string }): Promise<TConnector>;
- listConnectors(req?: { query?: string }): Promise<TConnector[]>;
- getToolsByConnectorId(req: { id: string }): Promise<TTool[]>;
- createConnector(req: TCreate): Promise<TConnector>;
- /** Full replace update keyed by connector `id`. */
- updateConnector(req: TUpdate): Promise<TConnector>;
- /**
- * Start connector auth (e.g. OAuth).
- * May return a connector (already authenticated / with `auth.authUrl`) or a
- * result carrying `authorization_endpoint` for the popup flow.
- */
- authenticateConnector(
- req: AuthenticateConnectorRequest,
- ): Promise<TConnector | ConnectorAuthenticationResult<TConnector>>;
- /** Clear connector auth. */
- disconnectConnector(req: { id: string }): Promise<TConnector>;
- deleteConnector?(req: { id: string }): Promise<void>;
-}
-
-// ---------------------------------------------------------------------------
-// Skills catalog — FE-minimal settings DTOs (host extends via generics)
-// ---------------------------------------------------------------------------
-
-/** Skill row shown in settings/skills (list + delete). Host extends for fqn, etc. */
-export interface SkillBase {
- id: string;
- name: string;
- description: string;
-}
-
-export interface RegistrySkill extends SkillBase {
- /** `SkillCatalogEntry.id` this skill was created from. */
- catalogId: string;
-}
-
-export interface GithubSkill extends SkillBase {}
-
-export type DefinedSkill = RegistrySkill | GithubSkill;
-
-/** Git source fields shared by catalog entries and create requests. */
-export interface SkillConfigBase {
- name: string;
- description: string;
- repoURL: string;
- path: string;
- ref: string;
-}
-
-/** Catalog row for "Available" skills. Selecting one defines it in the host DB. */
-export interface SkillCatalogEntry extends SkillConfigBase {
- id: string;
-}
-
-/** Create-skill base. Hosts may intersect extra fields and re-union. */
-export interface CreateSkillRequestBase extends SkillConfigBase {}
-
-export interface SelectRegistrySkillRequest extends CreateSkillRequestBase {
- /** `SkillCatalogEntry.id`, persisted so the created skill links back to it. */
- catalogId: string;
-}
-
-export interface ImportGithubSkillRequest extends CreateSkillRequestBase {}
-
-export type CreateSkillRequest = SelectRegistrySkillRequest | ImportGithubSkillRequest;
-
-export interface SkillCatalogServer<
- TSkill extends SkillBase = SkillBase,
- TCatalogEntry extends SkillCatalogEntry = SkillCatalogEntry,
- TCreate extends CreateSkillRequest = CreateSkillRequest,
-> {
- getSkillCatalog(): Promise<TCatalogEntry[]>;
- listSkills(req?: { query?: string }): Promise<TSkill[]>;
- createSkill(req: TCreate): Promise<TSkill>;
- /**
- * Removes the skill from the host DB. A registry skill (has `catalogId`) stays
- * in the catalog and becomes selectable again; a github skill is gone for good.
- */
- deleteSkill?(req: { id: string }): Promise<void>;
-}
-
-// ---------------------------------------------------------------------------
-// Sandbox providers catalog — public rows omit credentials; writes accept them
-// ---------------------------------------------------------------------------
-
-/** Mutable sandbox provider settings shared by catalog rows, create, and update. */
-export interface SandboxProviderConfig {
- snapshotName: string;
- execTimeoutMs: number;
- autoStopIntervalInMinutes: number;
- autoArchiveIntervalInMinutes: number;
- autoDeleteIntervalInMinutes: number;
-}
-
-export interface SandboxProviderCatalogEntry extends SandboxProviderConfig {
- id: string;
- name: string;
- type: string;
-}
-
-/**
- * Connected sandbox provider row (settings/sandboxes). No raw `apiKey`.
- * Includes last-saved config so update forms can show previous values.
- */
-export interface SandboxProviderBase extends SandboxProviderConfig {
- id: string;
- name: string;
- catalogId: string;
- isConnected: boolean;
-}
-
-/**
- * Create — catalog identity + config + apiKey.
- * `catalogId` is `SandboxProviderCatalogEntry.id`; the server assigns the provider `id`.
- */
-export interface CreateSandboxProviderRequest extends SandboxProviderConfig {
- catalogId: string;
- name: string;
- type: string;
- apiKey: string;
-}
-
-/** Update — full replace of config keyed by sandbox provider `id`. */
-export interface UpdateSandboxProviderRequest extends SandboxProviderConfig {
- id: string;
- /** Omit to keep the existing key; send a value to rotate. */
- apiKey?: string;
-}
-
-export interface SandboxCatalogServer<
- TProvider extends SandboxProviderBase = SandboxProviderBase,
- TCatalogEntry extends SandboxProviderCatalogEntry = SandboxProviderCatalogEntry,
- TCreate extends CreateSandboxProviderRequest = CreateSandboxProviderRequest,
- TUpdate extends UpdateSandboxProviderRequest = UpdateSandboxProviderRequest,
-> {
- getSandboxProviderCatalog(): Promise<TCatalogEntry[]>;
- listSandboxProviders(req?: { query?: string }): Promise<TProvider[]>;
- createSandboxProvider(req: TCreate): Promise<TProvider>;
- updateSandboxProvider(req: TUpdate): Promise<TProvider>;
- deleteSandboxProvider?(req: { id: string }): Promise<void>;
-}
-
-/**
- * Settings management aggregate — modelCatalog + connectorCatalog + optional
- * skill and sandbox catalogs.
- * Hosts may pass the whole object to an app shell, or a focused sub-port to a page.
+ * Canonical definitions live in the runtime; this module is aliases + pass-through only.
+ * Use the `/server` entry (not package root) so port types are not shadowed by
+ * converter helpers that share names (e.g. `UserMessageContent`).
*/
-export interface CatalogServer<
- TModelCatalog extends ModelCatalogServer = ModelCatalogServer,
- TConnectorCatalog extends ConnectorCatalogServer = ConnectorCatalogServer,
- TSkillCatalog extends SkillCatalogServer = SkillCatalogServer,
- TSandboxCatalog extends SandboxCatalogServer = SandboxCatalogServer,
-> {
- modelCatalog: TModelCatalog;
- connectorCatalog: TConnectorCatalog;
- /** Optional — omit when the host has no skills settings surface. */
- skillCatalog?: TSkillCatalog;
- /** Optional — omit when the host has no sandboxes settings surface. */
- sandboxCatalog?: TSandboxCatalog;
-}
-/** Combined port: runtime (chat) + atoms (builder) + optional settings catalog. */
-export type AgentUIServer<
- TSpec extends AgentSpec = AgentSpec,
- TSession extends Session<TSpec> = Session<TSpec>,
- TCreate extends CreateSessionRequest<TSpec> = CreateSessionRequest<TSpec>,
- TList extends ListSessionsParams = ListSessionsParams,
- TUpdate extends UpdateSessionRequest<TSpec> = UpdateSessionRequest<TSpec>,
- TTurn extends Turn = Turn,
- TEvent extends SessionEventItem = SessionEventItem,
- TStreamEvent extends TurnStreamingEvent = TurnStreamingEvent,
- TModel extends ModelSelection = ModelSelection,
- TSkill extends AgentSkill = AgentSkill,
- TMcp extends ConnectorState = ConnectorState,
- TAgent extends AgentLibraryEntry = AgentLibraryEntry,
- TSave = unknown,
- TCatalog extends CatalogServer = CatalogServer,
- TCapabilities extends AgentBuilderCapabilitiesResponse = AgentBuilderCapabilitiesResponse,
-> = AgentChatServer<TSpec, TSession, TCreate, TList, TUpdate, TTurn, TEvent, TStreamEvent> &
- AgentBuilderServer<TSpec, TModel, TSkill, TMcp, TAgent, TSave, TCapabilities> & {
- catalog?: TCatalog;
- };
+export type {
+ AgentBuilderCapabilitiesResponse,
+ AgentBuilderServer,
+ AgentChatServer,
+ AgentLibraryEntry,
+ AgentSkill,
+ AgentSpec,
+ AgentUIServer,
+ ApprovalDecision,
+ AuthenticateConnectorRequest,
+ CatalogServer,
+ 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,
+ ListSessionsOrder,
+ ListSessionsParams,
+ McpServerMount,
+ Model,
+ ModelCatalogServer,
+ ModelEntry,
+ ModelParams,
+ ModelProviderBase,
+ ModelProviderCatalogEntry,
+ ModelProviderConfigBase,
+ ModelSelection,
+ PageParams,
+ PreviousTurnIdInput,
+ ProviderType,
+ RegistrySkill,
+ SandboxCatalogServer,
+ SandboxProviderBase,
+ SandboxProviderCatalogEntry,
+ SandboxProviderConfig,
+ SaveAgentRequest,
+ SearchAgentsParams,
+ SelectRegistrySkillRequest,
+ Session,
+ SessionEventItem,
+ SkillBase,
+ SkillCatalogEntry,
+ SkillCatalogServer,
+ SkillConfigBase,
+ SkillMount,
+ ToolBase,
+ Turn,
+ TurnInputItem,
+ TurnState,
+ TurnStreamData,
+ TurnStreamingEvent,
+ UpdateConnectorRequest,
+ UpdateModelProviderRequest,
+ UpdateSandboxProviderRequest,
+ UpdateSessionRequest,
+ UserMessage,
+ UserMessageContent,
+ UserToolApprovalEvent,
+ UserToolResponseEvent,
+} from '@truefoundry/assistant-ui-runtime/server';
diff --git a/packages/trueforge-ui-sdk/test/atoms/draft/DraftCompositeSelector.test.tsx b/packages/trueforge-ui-sdk/test/atoms/draft/DraftCompositeSelector.test.tsx
index 308594664..3736d2b84 100644
--- a/packages/trueforge-ui-sdk/test/atoms/draft/DraftCompositeSelector.test.tsx
+++ b/packages/trueforge-ui-sdk/test/atoms/draft/DraftCompositeSelector.test.tsx
@@ -5,7 +5,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { DraftCatalogProvider } from '@/atoms/draft/DraftCatalogProvider.js';
import { DraftCompositeSelector, type DraftCompositeSelectorProps } from '@/atoms/draft/DraftCompositeSelector.js';
import { ServerProvider } from '@/server/ServerContext.js';
-import type { AgentBuilderCapabilitiesResponse, AgentSpec } from '@/server/types.js';
+import type { AgentBuilderCapabilitiesResponse, AgentSpec, AgentUIServer } from '@/server/types.js';
import { createMockAgentUIServer } from '../../server/mockServer.js';
let agentSpec: AgentSpec;
@@ -19,19 +19,25 @@ vi.mock('@truefoundry/assistant-ui-runtime', () => ({
type RenderSelectorOptions = {
props?: DraftCompositeSelectorProps;
getCapabilities?: () => Promise<AgentBuilderCapabilitiesResponse>;
+ getSkills?: AgentUIServer['getSkills'];
+ getMcp?: AgentUIServer['getMcp'];
};
-function renderSelector({ props = {}, getCapabilities }: RenderSelectorOptions = {}) {
+function renderSelector({ props = {}, getCapabilities, getSkills, getMcp }: RenderSelectorOptions = {}) {
const server = createMockAgentUIServer({
...(getCapabilities === undefined ? {} : { getCapabilities }),
- getSkills: async () => [
- { id: 'research', name: 'Research', description: 'Find relevant sources' },
- { id: 'writer', name: 'Writer', description: 'Draft polished copy' },
- ],
- getMcp: async () => [
- { id: 'github', name: 'GitHub', description: 'Code hosting' },
- { id: 'slack', name: 'Slack', description: 'Team messages' },
- ],
+ getSkills:
+ getSkills ??
+ (async () => [
+ { id: 'research', name: 'Research', description: 'Find relevant sources' },
+ { id: 'writer', name: 'Writer', description: 'Draft polished copy' },
+ ]),
+ getMcp:
+ getMcp ??
+ (async () => [
+ { id: 'github', name: 'GitHub', description: 'Code hosting' },
+ { id: 'slack', name: 'Slack', description: 'Team messages' },
+ ]),
});
return render(
@@ -80,6 +86,43 @@ describe('DraftCompositeSelector', () => {
});
});
+ it('hydrates name-only wire mounts so a toggle does not wipe them', async () => {
+ agentSpec = {
+ model: { name: 'openai/gpt-4.1' },
+ // Harness round-trip: id stripped; catalog keys by name.
+ mcpServers: [{ name: 'slack' }],
+ skills: [{ name: 'research' }],
+ };
+ renderSelector({
+ getSkills: async () => [
+ { id: 'research', name: 'research', description: 'Find relevant sources' },
+ { id: 'writer', name: 'writer', description: 'Draft polished copy' },
+ ],
+ getMcp: async () => [
+ { id: 'github', name: 'github', description: 'Code hosting' },
+ { id: 'slack', name: 'slack', description: 'Team messages' },
+ ],
+ });
+
+ fireEvent.click(screen.getByRole('button', { name: 'Add connectors, skills, or attachments' }));
+ const slack = await screen.findByRole('menuitemcheckbox', { name: /slack/ });
+ expect(slack).toHaveAttribute('aria-checked', 'true');
+
+ fireEvent.click(screen.getByRole('menuitemcheckbox', { name: /github/ }));
+
+ await act(async () => {
+ await vi.advanceTimersByTimeAsync(300);
+ });
+
+ expect(updateAgentSpec).toHaveBeenCalledWith({
+ mcpServers: [
+ { id: 'slack', name: 'slack' },
+ { id: 'github', name: 'github' },
+ ],
+ skills: [{ id: 'research', name: 'research' }],
+ });
+ });
+
it('switches tabs, resets search, and removes a selected skill on close flush', async () => {
renderSelector();
fireEvent.click(screen.getByRole('button', { name: 'Add connectors, skills, or attachments' }));
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f93a407a9..949d7771f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -17,7 +17,7 @@ importers:
devDependencies:
'@eslint-react/eslint-plugin':
specifier: ^5.18.0
'@eslint/js':
specifier: ^10.0.1
@@ -38,10 +38,13 @@ importers:
version: 3.9.6
prettier-plugin-organize-imports:
specifier: ^4.0.0
+ typescript:
+ specifier: ~5.9.3
+ version: 5.9.3
typescript-eslint:
specifier: ^8.65.0
packages/frontend:
dependencies:
@@ -55,8 +58,8 @@ importers:
specifier: 0.2.21
'@truefoundry/assistant-ui-runtime':
- specifier: ^0.1.10
+ specifier: 0.1.12
'@truefoundry/trueforge-ui':
specifier: workspace:*
version: link:../trueforge-ui-sdk
@@ -304,8 +307,8 @@ importers:
specifier: ^0.13.2
'@truefoundry/assistant-ui-runtime':
- specifier: ^0.1.10
+ specifier: 0.1.12
clsx:
specifier: ^2.1.1
version: 2.1.1
@@ -3209,8 +3212,8 @@ packages:
'@types/react-dom':
optional: true
- '@truefoundry/[email protected]':
- resolution: {integrity: sha512-EDIIssQt6y/WVGLRf1Vd7JdS0Ewvuzn8jWCCueiMj38L+Hfcdih3TBr6H2hhEby9C4ULxTl4xbBVG3ybmVxPSw==}
+ '@truefoundry/[email protected]':
+ resolution: {integrity: sha512-b+FYGIbw7zUrjG7UCafFpNjFMwAl9V6qSX8wyAT0I4P95rbT1WY7sQNr6LPQG7cq+8Jf/P9I5YKKzbecXcUpag==}
peerDependencies:
'@types/react': '*'
react: ^18 || ^19
@@ -6524,11 +6527,6 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
- resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
- engines: {node: '>=14.17'}
- hasBin: true
-
resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==}
engines: {node: '>=16.20.0'}
@@ -7763,89 +7761,89 @@ snapshots:
'@eslint-community/[email protected]': {}
dependencies:
'@typescript-eslint/types': 8.65.0
- '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
+ '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
string-ts: 2.3.1
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.65.0
'@typescript-eslint/types': 8.65.0
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/types': 8.65.0
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: 5.9.3
zod: 4.4.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.65.0
'@typescript-eslint/types': 8.65.0
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
@@ -9825,7 +9823,7 @@ snapshots:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
dependencies:
'@assistant-ui/store': 0.2.21(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])
@@ -9995,26 +9993,26 @@ snapshots:
dependencies:
'@types/yargs-parser': 21.0.3
dependencies:
'@eslint-community/regexpp': 4.12.2
'@typescript-eslint/scope-manager': 8.65.0
'@typescript-eslint/visitor-keys': 8.65.0
ignore: 7.0.6
natural-compare: 1.4.0
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
+ ts-api-utils: 2.5.0([email protected])
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/regexpp': 4.12.2
'@typescript-eslint/scope-manager': 8.65.0
@@ -10027,15 +10025,15 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.65.0
'@typescript-eslint/types': 8.65.0
- '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
+ '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
'@typescript-eslint/visitor-keys': 8.65.0
debug: 4.4.3([email protected])
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
@@ -10060,15 +10058,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@typescript-eslint/tsconfig-utils': 8.65.0([email protected])
- '@typescript-eslint/types': 8.65.0
- debug: 4.4.3([email protected])
- typescript: 6.0.3
- transitivePeerDependencies:
- - supports-color
-
'@typescript-eslint/[email protected]':
dependencies:
'@typescript-eslint/types': 8.65.0
@@ -10078,19 +10067,15 @@ snapshots:
dependencies:
typescript: 5.9.3
- '@typescript-eslint/[email protected]([email protected])':
- dependencies:
- typescript: 6.0.3
-
dependencies:
'@typescript-eslint/types': 8.65.0
- '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
+ '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
debug: 4.4.3([email protected])
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
+ ts-api-utils: 2.5.0([email protected])
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
@@ -10123,29 +10108,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@typescript-eslint/project-service': 8.65.0([email protected])([email protected])
- '@typescript-eslint/tsconfig-utils': 8.65.0([email protected])
- '@typescript-eslint/types': 8.65.0
- '@typescript-eslint/visitor-keys': 8.65.0
- debug: 4.4.3([email protected])
- minimatch: 10.2.5
- semver: 7.8.5
- tinyglobby: 0.2.17
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.65.0
'@typescript-eslint/types': 8.65.0
- '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
+ '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
@@ -11026,17 +10996,17 @@ snapshots:
dependencies:
'@typescript-eslint/types': 8.65.0
compare-versions: 6.1.1
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
@@ -11062,84 +11032,84 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/types': 8.65.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/types': 8.65.0
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/types': 8.65.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/types': 8.65.0
birecord: 0.1.2
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.65.0
'@typescript-eslint/types': 8.65.0
- '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
+ '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
compare-versions: 6.1.1
string-ts: 2.3.1
- ts-api-utils: 2.5.0([email protected])
+ ts-api-utils: 2.5.0([email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
@@ -13041,10 +13011,10 @@ snapshots:
dependencies:
prettier: 3.9.6
- typescript: 6.0.3
+ typescript: 5.9.3
@@ -13819,10 +13789,6 @@ snapshots:
dependencies:
typescript: 5.9.3
- dependencies:
- typescript: 6.0.3
-
@@ -13909,20 +13875,20 @@ snapshots:
media-typer: 1.1.0
mime-types: 3.0.2
dependencies:
- '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
+ '@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
- typescript: 6.0.3
+ typescript: 5.9.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/typescript-estree': 8.65.0([email protected])([email protected])
@@ -13933,8 +13899,6 @@ snapshots:
-
optionalDependencies:
'@typescript/typescript-aix-ppc64': 7.0.2
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 7bd80657d..8f6748eec 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -16,7 +16,7 @@ allowBuilds:
# Silence peer mismatches between trueforge-ui peers and the versions we pin.
peerDependencyRules:
allowedVersions:
- '@truefoundry/assistant-ui-runtime': '0.1.6-rc.2'
+ '@truefoundry/assistant-ui-runtime': '0.1.12'
# One Context module for assistant-ui (avoids "requires an AuiProvider").
overrides: