Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): add cross-harness skill manager #4630

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromt3code/plan-skill-manager-1opened View on GitHub

Showing 17 changed files with 213 additions and 0 deletions (loading 15).

x
0 of 17 viewed, 17 left
213 additions and 0 deletionsapps/server/src/skills/SkillInventory.test.tsAdded
View file
@@ -0,0 +1,213 @@
+import * as NodeServices from "@effect/platform-node/NodeServices";
+import { assert, it } from "@effect/vitest";
+import {
+ ClaudeSettings,
+ CodexSettings,
+ ProviderDriverKind,
+ ProviderInstanceId,
+} from "@t3tools/contracts";
+import * as Effect from "effect/Effect";
+import * as FileSystem from "effect/FileSystem";
+import * as Path from "effect/Path";
+import * as Schema from "effect/Schema";
+​
+import * as ServerSettings from "../serverSettings.ts";
+import { discoverGlobalSkillInventory, readSkillInstallations } from "./SkillInventory.ts";
+​
+const decodeCodexSettings = Schema.decodeSync(CodexSettings);
+const decodeClaudeSettings = Schema.decodeSync(ClaudeSettings);
+​
+const writeSkill = Effect.fn("SkillInventoryTest.writeSkill")(function* (
+ root: string,
+ directoryName: string,
+ description: string,
+) {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const directory = path.join(root, "skills", directoryName);
+ yield* fileSystem.makeDirectory(directory, { recursive: true });
+ yield* fileSystem.writeFileString(
+ path.join(directory, "SKILL.md"),