mirror of
https://github.com/bergside/typeui.git
synced 2026-09-19 07:24:37 +08:00
feature: add grok supplier
This commit is contained in:
@@ -41,6 +41,7 @@ const UNIVERSAL_DEFAULT_AGENT_LIST = [
|
||||
"Cursor",
|
||||
"Gemini CLI",
|
||||
"GitHub Copilot",
|
||||
"Grok",
|
||||
"Kimi Code CLI",
|
||||
"OpenCode"
|
||||
];
|
||||
|
||||
@@ -60,6 +60,10 @@ export const PROVIDER_DETAILS = {
|
||||
title: "Goose",
|
||||
relativePath: ".goose/skills/design-system/SKILL.md"
|
||||
},
|
||||
grok: {
|
||||
title: "Grok",
|
||||
relativePath: ".grok/skills/design-system/SKILL.md"
|
||||
},
|
||||
junie: {
|
||||
title: "Junie",
|
||||
relativePath: ".junie/skills/design-system/SKILL.md"
|
||||
|
||||
@@ -26,15 +26,17 @@ describe("runPull", () => {
|
||||
const root = await makeTmpDir();
|
||||
const results = await runPull({
|
||||
projectRoot: root,
|
||||
providers: ["openclaw", "open-code"],
|
||||
providers: ["openclaw", "open-code", "grok"],
|
||||
markdown: "<!-- TYPEUI_SH_MANAGED_START -->\npulled\n<!-- TYPEUI_SH_MANAGED_END -->"
|
||||
});
|
||||
|
||||
expect(results).toHaveLength(2);
|
||||
expect(results).toHaveLength(3);
|
||||
const openclawContent = await fs.readFile(path.join(root, "skills/design-system/SKILL.md"), "utf8");
|
||||
const opencodeContent = await fs.readFile(path.join(root, ".opencode/skills/design-system/SKILL.md"), "utf8");
|
||||
const grokContent = await fs.readFile(path.join(root, ".grok/skills/design-system/SKILL.md"), "utf8");
|
||||
expect(openclawContent).toContain("pulled");
|
||||
expect(opencodeContent).toContain("pulled");
|
||||
expect(grokContent).toContain("pulled");
|
||||
});
|
||||
|
||||
it("deduplicates writes when providers share same output path", async () => {
|
||||
|
||||
Reference in New Issue
Block a user