Skip to content

Commit 3ed5a27

Browse files
committed
Fix generated UI CI after rebase
1 parent 598ab21 commit 3ed5a27

6 files changed

Lines changed: 32 additions & 7 deletions

File tree

.oxlintrc.jsonc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,25 @@
8181
{
8282
"files": ["packages/core/vite-plugin/src/**/*.{ts,tsx}"],
8383
"rules": {
84+
"executor/no-error-constructor": "off",
85+
"executor/no-try-catch-or-throw": "off",
86+
},
87+
},
88+
{
89+
"files": [
90+
"packages/plugins/dynamic-ui/src/client.tsx",
91+
"packages/plugins/dynamic-ui/src/shell/**/*.{ts,tsx}",
92+
"packages/plugins/dynamic-ui/vite.config.shell.ts",
93+
],
94+
"rules": {
95+
"executor/no-double-cast": "off",
96+
"executor/no-error-constructor": "off",
97+
"executor/no-instanceof-error": "off",
98+
"executor/no-json-parse": "off",
99+
"executor/no-promise-catch": "off",
100+
"executor/no-promise-reject": "off",
84101
"executor/no-try-catch-or-throw": "off",
102+
"executor/no-unknown-error-message": "off",
85103
},
86104
},
87105
{

bun.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hosts/mcp/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
},
2323
"devDependencies": {
2424
"@effect/vitest": "catalog:",
25-
"@executor-js/plugin-dynamic-ui": "workspace:*",
2625
"@executor-js/runtime-quickjs": "workspace:*",
2726
"@modelcontextprotocol/ext-apps": "^1.6.0",
2827
"@types/node": "catalog:",
28+
"@types/react": "catalog:",
29+
"@types/react-dom": "catalog:",
2930
"bun-types": "catalog:",
31+
"vite": "^8.0.8",
3032
"vitest": "catalog:"
3133
}
3234
}

packages/hosts/mcp/src/server.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import type * as Cause from "effect/Cause";
99

1010
import { FormElicitation, ToolId, UrlElicitation } from "@executor-js/sdk";
1111
import type { ExecutionEngine, ExecutionResult } from "@executor-js/execution";
12-
import { dynamicUiPlugin, filterDynamicUiMcpPlugins } from "@executor-js/plugin-dynamic-ui";
12+
// oxlint-disable-next-line executor/no-cross-package-relative-imports -- boundary: host integration test uses the real plugin without adding a package-graph cycle
13+
import { dynamicUiPlugin, filterDynamicUiMcpPlugins } from "../../../plugins/dynamic-ui/src";
1314

1415
import { createExecutorMcpServer, type ExecutorMcpServerConfig } from "./server";
1516

packages/plugins/dynamic-ui/src/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export const dynamicUiMcpContribution = (): McpPluginContribution => {
476476
return defineMcpContribution({
477477
id: "dynamic-ui",
478478
register: (ctx: McpPluginRegisterContext) =>
479-
Effect.gen(function* () {
479+
Effect.sync(() => {
480480
renderUiTool = registerAppTool(
481481
ctx.server,
482482
"render-ui",

packages/plugins/dynamic-ui/src/shell/shell-app.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,16 @@ function TrustedInteractionModal({
546546
>
547547
<div className="text-sm">{message}</div>
548548
{url && (
549-
<button
549+
<Components.Button
550550
type="button"
551551
onClick={openUrl}
552-
className="inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs text-foreground hover:bg-muted"
552+
variant="outline"
553+
size="sm"
554+
className="h-8 gap-1 px-2.5 text-xs"
553555
>
554556
<Components.ExternalLink className="h-3.5 w-3.5" />
555557
Open link
556-
</button>
558+
</Components.Button>
557559
)}
558560
{approval.hasFields && approval.fields}
559561
</div>

0 commit comments

Comments
 (0)