Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(grok): surface Grok skills in the composer $ picker #7587

ClosedmInrOz(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/7587/headopened View on GitHub

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

x
0 of 4 viewed, 4 left
2 additions and 1 deletionapps/server/src/provider/Drivers/GrokDriver.tsModified
View file
@@ -88,6 +88,7 @@
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
const httpClient = yield* HttpClient.HttpClient;
const serverSettings = yield* ServerSettingsService;
+ const { cwd } = yield* ServerConfig;
const eventLoggers = yield* ProviderEventLoggers;
const processEnv = mergeProviderInstanceEnvironment(environment);
const continuationIdentity = defaultProviderContinuationIdentity({
@@ -113,7 +114,7 @@
});
const textGeneration = yield* makeGrokTextGeneration(effectiveConfig, processEnv);
​
- const checkProvider = checkGrokProviderStatus(effectiveConfig, processEnv).pipe(
+ const checkProvider = checkGrokProviderStatus(effectiveConfig, processEnv, cwd).pipe(
Effect.map(stampIdentity),
Effect.provideService(Crypto.Crypto, crypto),
Effect.provideService(ChildProcessSpawner.ChildProcessSpawner, spawner),
135 additions and 0 deletionsapps/server/src/provider/Drivers/GrokSkills.test.tsAdded
View file
@@ -0,0 +1,135 @@
+import { describe, expect, it } from "@effect/vitest";
+import * as Effect from "effect/Effect";
+import * as Layer from "effect/Layer";
+import * as Sink from "effect/Sink";
+import * as Stream from "effect/Stream";
+import { ChildProcessSpawner } from "effect/unstable/process";
+​
+import { discoverGrokSkills, parseGrokInspectSkills } from "./GrokSkills.ts";