feat: add client side skills (#1320)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Sarah Wooders
2026-03-10 13:18:14 -07:00
committed by GitHub
parent 87312720d5
commit e82a2d33f8
25 changed files with 377 additions and 151 deletions

View File

@@ -0,0 +1,19 @@
import { describe, expect, test } from "bun:test";
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
describe("headless client skills wiring", () => {
test("pre-load-skills resolves skill paths from client-skills helper", () => {
const headlessPath = fileURLToPath(
new URL("../../headless.ts", import.meta.url),
);
const source = readFileSync(headlessPath, "utf-8");
expect(source).toContain("buildClientSkillsPayload({");
expect(source).toContain(
"const { skillPathById } = await buildClientSkillsPayload",
);
expect(source).toContain("const skillPath = skillPathById[skillId]");
expect(source).not.toContain("sharedReminderState.skillPathById");
});
});