Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(codex): wake threads from background monitoring events #10183

Closedtris203(GitHub profile, opens in a new tab)wants to merge 17 commits intomain fromrefs/pull/10183/headopened View on GitHub

Showing 26 changed files with 89 additions and 0 deletions (loading 23).

x
0 of 26 viewed, 26 left
2 additions and 0 deletionsapps/server/integration/OrchestrationEngineHarness.integration.tsModified
View file
@@ -14,6 +14,7 @@
import * as Exit from "effect/Exit";
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
+import * as MonitorSession from "../src/mcp/MonitorSession.ts";
import * as ManagedRuntime from "effect/ManagedRuntime";
import * as Option from "effect/Option";
import * as Path from "effect/Path";
@@ -423,6 +424,7 @@
Layer.provideMerge(runtimeServicesLayer),
Layer.provideMerge(orchestrationReactorLayer),
Layer.provideMerge(providerRegistryLayer),
+ Layer.provideMerge(MonitorSession.layer),
Layer.provide(persistenceLayer),
Layer.provideMerge(RepositoryIdentityResolver.layer),
Layer.provideMerge(ServerSettingsService.layerTest()),
26 additions and 0 deletionsapps/server/src/mcp/toolkits/monitor/handlers.tsAdded
View file
@@ -0,0 +1,26 @@
+import * as Effect from "effect/Effect";
+import * as McpInvocationContext from "../../McpInvocationContext.ts";
+import * as MonitorSession from "../../MonitorSession.ts";
+import { MonitorToolkit } from "./tools.ts";
+​
+const invoke = Effect.fn("MonitorToolkit.invoke")(function* (
+ operation: "subscribe" | "unsubscribe",
+ processId: string,
+) {