Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): report OpenCode skills in the provider snapshot #5683

Closedvraj-ai(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/5683/headopened View on GitHub

Showing 4 changed files with 139 additions and 1 deletion (loading 2).

x
0 of 4 viewed, 4 left
9 additions and 1 deletionapps/server/src/provider/Drivers/OpenCodeDriver.tsModified
View file
@@ -143,11 +143,19 @@
});
const textGeneration = yield* makeOpenCodeTextGeneration(effectiveConfig, processEnv);
​
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+​
const checkProvider = checkOpenCodeProviderStatus(
effectiveConfig,
serverConfig.cwd,
processEnv,
- ).pipe(Effect.map(stampIdentity), Effect.provideService(OpenCodeRuntime, openCodeRuntime));
+ ).pipe(
+ Effect.map(stampIdentity),
+ Effect.provideService(OpenCodeRuntime, openCodeRuntime),
+ Effect.provideService(FileSystem.FileSystem, fileSystem),
+ Effect.provideService(Path.Path, path),
+ );
​
const snapshotSettings = makeProviderSnapshotSettingsSource(effectiveConfig, serverSettings);
const snapshot = yield* makeManagedServerProvider<ProviderSnapshotSettings<OpenCodeSettings>>(
130 additions and 0 deletionsapps/server/src/provider/Drivers/OpenCodeSkills.test.tsAdded
View file
@@ -0,0 +1,130 @@
+import * as NodeServices from "@effect/platform-node/NodeServices";
+import { assert, it } from "@effect/vitest";
+import * as Effect from "effect/Effect";
+import * as FileSystem from "effect/FileSystem";
+import * as Path from "effect/Path";