Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: agents can restyle T3 Code with theme colors and CSS #35247

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 22 commits intomain fromrefs/pull/35247/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 36 changed files with 245 additions and 0 deletions (loading 33).

x
0 of 36 viewed, 36 left
97 additions and 0 deletionsapps/server/src/mcp/toolkits/theme/handlers.test.tsAdded
View file
@@ -0,0 +1,97 @@
+import { expect, it } from "@effect/vitest";
+import {
+ EnvironmentId,
+ type EnvironmentThemeFile,
+ ProviderInstanceId,
+ ThreadId,
+} from "@t3tools/contracts";
+import * as Effect from "effect/Effect";
+import * as Layer from "effect/Layer";
+import * as Stream from "effect/Stream";
+​
+import {
+ EnvironmentThemeRefusedError,
+ EnvironmentThemeService,
+} from "../../../environmentTheme.ts";
+import * as ThreadCommandExecutor from "../../../orchestration-v2/ThreadCommandExecutor.ts";
+import * as ThreadManagement from "../../../orchestration-v2/ThreadManagementService.ts";
+import * as McpInvocationContext from "../../McpInvocationContext.ts";
+import * as McpToolAccess from "../../McpToolAccess.ts";
+import { liveThreadShell } from "../../McpToolAccess.testkit.ts";
+import * as ThemeHandlers from "./handlers.ts";
+import { ThemeToolkit } from "./tools.ts";
+​
+const environmentId = EnvironmentId.make("environment:theme");
+const threadId = ThreadId.make("thread:theme");
+const AGENT_THEME = {
+ name: "Agent Look",
+ appearance: "dark",
+ canvas: "#101010",
+ accent: "#7aa2f7",