Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): discover project skills for Claude #9210

Mergedanirudhsama(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9210/headmerged by maria-rcks View on GitHub

Showing 1 changed file with 13 additions and 0 deletions.

x
0 of 1 viewed, 1 left
13 additions and 0 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -57,6 +57,7 @@
type ProviderSnapshotSettings,
} from "../providerUpdateSettings.ts";
import { makeClaudeCapabilitiesCacheKey, makeClaudeContinuationGroupKey } from "./ClaudeHome.ts";
+import { discoverClaudeSkills } from "./ClaudeSkills.ts";
const decodeClaudeSettings = Schema.decodeSync(ClaudeSettings);
​
const DRIVER_KIND = ProviderDriverKind.make("claudeAgent");
@@ -212,6 +213,17 @@
}),
+ const snapshotForCwd = (cwd: string) =>
+ !effectiveConfig.enabled
+ ? snapshot.getSnapshot
+ : Effect.all([
+ snapshot.getSnapshot,
+ discoverClaudeSkills(effectiveConfig, cwd, processEnv),
+ ]).pipe(
+ Effect.map(([machineSnapshot, skills]) => ({ ...machineSnapshot, skills })),
+ Effect.provideService(FileSystem.FileSystem, fileSystem),
+ Effect.provideService(Path.Path, path),
+ );
​
return {
instanceId,
@@ -224,6 +236,7 @@
accentColor,