refactor(schema): extract public event definitions (#33579)

This commit is contained in:
Kit Langton
2026-06-24 16:43:17 -04:00
committed by GitHub
parent 858f35f1b3
commit 24b0132bc5
93 changed files with 2740 additions and 2124 deletions
+21
View File
@@ -0,0 +1,21 @@
export * as McpEvent from "./mcp-event"
import { Schema } from "effect"
import { Event } from "./event"
export const ToolsChanged = Event.define({
type: "mcp.tools.changed",
schema: {
server: Schema.String,
},
})
export const BrowserOpenFailed = Event.define({
type: "mcp.browser.open.failed",
schema: {
mcpName: Schema.String,
url: Schema.String,
},
})
export const Definitions = Event.inventory(ToolsChanged, BrowserOpenFailed)