feat(plugins): add source-control extension contracts (#2117)

This commit is contained in:
José Almeida
2026-08-13 08:29:29 +01:00
committed by GitHub
parent 064b852884
commit f218880ecb
530 changed files with 39054 additions and 7518 deletions
@@ -9,6 +9,7 @@ import {
toTaskPreset,
} from "./action-presets";
import { IconEye, IconSparkles } from "@tabler/icons-react";
import { iconForIntegrationPreset } from "@/components/integrations/integration-preset-icons";
describe("interpolatePromptTemplate", () => {
it("replaces {{url}} and {{title}} placeholders", () => {
@@ -47,6 +48,10 @@ describe("iconForPresetKey", () => {
expect(iconForPresetKey("eye")).toBe(IconEye);
});
it.each(["eye", "message", "tool"])("shares the host semantic %s glyph", (key) => {
expect(iconForPresetKey(key)).toBe(iconForIntegrationPreset(key));
});
it("falls back to sparkle for unknown or missing keys", () => {
expect(iconForPresetKey(undefined)).toBe(IconSparkles);
expect(iconForPresetKey("nonsense")).toBe(IconSparkles);