Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(provider-core): add ProviderHost as the server port for providers #17287

Closedjuliusmarmingewants to merge 1 commit intot3/provider-kit fromt3/provider-hostopened View on GitHub

Showing 31 changed files with 28 additions and 32 deletions (loading 27).

x
0 of 31 viewed, 31 left
9 additions and 8 deletionsapps/server/src/orchestration-v2/Adapters/PiAdapterV2.test.tsModified
View file
@@ -33,7 +33,8 @@
import { ChildProcess, ChildProcessSpawner } from "effect/process";
import { HostProcessEnvironment } from "@t3tools/shared/hostProcess";
​
-import * as ServerConfig from "../../config.ts";
+import { ProviderHost } from "@t3tools/provider-core/server/host";
+import { layerTestProviderHost } from "@t3tools/provider-testing/host";
import * as ProviderContinuationRequests from "../ProviderContinuationRequests.ts";
import * as McpProviderSession from "@t3tools/provider-core/server/mcpSession";
import * as IdAllocator from "@t3tools/provider-core/server/ids";
@@ -51,11 +52,11 @@
} from "./PiAdapterV2.ts";
import { makePiRpcConnection, type PiRpcRecord } from "./PiRpc.ts";
​
-const layerServerConfig = ServerConfig.layerTest(process.cwd(), {
- prefix: "t3-pi-v2-adapter-",
-}).pipe(Layer.provide(NodeServices.layer));
-​
-const layerTest = Layer.mergeAll(NodeServices.layer, IdAllocator.layer, layerServerConfig);
+const layerTest = Layer.mergeAll(
+ NodeServices.layer,
+ IdAllocator.layer,
+ layerTestProviderHost().pipe(Layer.provide(NodeServices.layer)),
+);
​
const decodeJsonLine = Schema.decodeSync(Schema.fromJsonString(Schema.Unknown));
const encodeJsonLine = Schema.encodeSync(Schema.fromJsonString(Schema.Unknown));
@@ -330,7 +331,7 @@