Add MCP thread management and Codex turn mapping
- Add scoped thread list, read, send, wait, and interrupt tools - Track creation provenance and map provider turns across adapters - Centralize thread lifecycle operations in a management service
This commit is contained in:
1 parent
34c6d5ea18
commit
c8b20831e2
38 files changed
+2085
-48
No files matched your search
@@ -95,6 +95,9 @@ import {
|
||||
OrchestrationEngineService,
|
||||
type OrchestrationEngineShape,
|
||||
} from "./orchestration/Services/OrchestrationEngine.ts";
|
||||
import { layerUnavailable as OrchestratorV2UnavailableLayer } from "./orchestration-v2/Orchestrator.ts";
|
||||
import { layer as ThreadManagementServiceLayer } from "./orchestration-v2/ThreadManagementService.ts";
|
||||
import { OrchestrationListenerCallbackError } from "./orchestration/Errors.ts";
|
||||
import {
|
||||
OrchestratorV2,
|
||||
layerUnavailable as OrchestratorV2Unavailable,
|
||||
@@ -150,6 +153,11 @@ import * as ResourceTelemetry from "./resourceTelemetry/ResourceTelemetry.ts";
|
||||
import * as UsageService from "./usage/UsageService.ts";
|
||||
import * as Data from "effect/Data";
|
||||
|
||||
const OrchestrationV2UnavailableTestLayer = Layer.merge(
|
||||
OrchestratorV2UnavailableLayer,
|
||||
ThreadManagementServiceLayer.pipe(Layer.provide(OrchestratorV2UnavailableLayer)),
|
||||
);
|
||||
|
||||
const defaultProjectId = ProjectId.make("project-default");
|
||||
const defaultThreadId = ThreadId.make("thread-default");
|
||||
const defaultDesktopBootstrapToken = "test-desktop-bootstrap-token";
|
||||
@@ -772,6 +780,7 @@ const buildAppUnderTest = (options?: {
|
||||
...options?.layers?.checkpointDiffQuery,
|
||||
}),
|
||||
),
|
||||
Layer.provide(OrchestrationV2UnavailableTestLayer),
|
||||
);
|
||||
|
||||
const appLayer = servedRoutesLayer.pipe(
|
||||
|
||||
Reference in new issue
Block a user