


















@@ -26,6 +26,7 @@ function createMockSkill(overrides: Partial<SkillStatusEntry> = {}): SkillStatus
2626blockedByAllowlist: false,
2727blockedByAgentFilter: false,
2828eligible: true,
29+platformIncompatible: false,
2930modelVisible: true,
3031userInvocable: true,
3132commandVisible: true,
@@ -65,6 +66,7 @@ describe("skills-cli", () => {
6566description: "Capture UI screenshots",
6667emoji: "📸",
6768eligible: true,
69+platformIncompatible: false,
6870}),
6971]);
7072const output = formatSkillsList(report, {});
@@ -79,6 +81,7 @@ describe("skills-cli", () => {
7981name: "disabled-skill",
8082disabled: true,
8183eligible: false,
84+platformIncompatible: false,
8285}),
8386]);
8487const output = formatSkillsList(report, {});
@@ -91,6 +94,7 @@ describe("skills-cli", () => {
9194createMockSkill({
9295name: "needs-stuff",
9396eligible: false,
97+platformIncompatible: false,
9498missing: {
9599bins: ["ffmpeg"],
96100anyBins: ["rg", "grep"],
@@ -113,6 +117,7 @@ describe("skills-cli", () => {
113117createMockSkill({
114118name: "not-eligible",
115119eligible: false,
120+platformIncompatible: false,
116121disabled: true,
117122}),
118123]);
@@ -127,6 +132,7 @@ describe("skills-cli", () => {
127132createMockSkill({
128133name: "agent-excluded",
129134eligible: true,
135+platformIncompatible: false,
130136blockedByAgentFilter: true,
131137}),
132138]);
@@ -248,6 +254,7 @@ describe("skills-cli", () => {
248254createMockSkill({
249255name: "agent-excluded",
250256eligible: true,
257+platformIncompatible: false,
251258blockedByAgentFilter: true,
252259}),
253260]);
@@ -268,6 +275,7 @@ describe("skills-cli", () => {
268275createMockSkill({
269276name: "not-ready",
270277eligible: false,
278+platformIncompatible: false,
271279missing: { bins: ["go"], anyBins: [], env: [], config: [], os: [] },
272280}),
273281createMockSkill({ name: "disabled", eligible: false, disabled: true }),
@@ -288,6 +296,7 @@ describe("skills-cli", () => {
288296name: "missing-emoji",
289297emoji: "🎙\uFE0E",
290298eligible: false,
299+platformIncompatible: false,
291300missing: { bins: ["ffmpeg"], anyBins: [], env: [], config: [], os: [] },
292301}),
293302]);
@@ -304,12 +313,14 @@ describe("skills-cli", () => {
304313createMockSkill({
305314name: "prompt-hidden",
306315eligible: true,
316+platformIncompatible: false,
307317modelVisible: false,
308318commandVisible: true,
309319}),
310320createMockSkill({
311321name: "not-assigned",
312322eligible: true,
323+platformIncompatible: false,
313324blockedByAgentFilter: true,
314325}),
315326]),
@@ -338,6 +349,7 @@ describe("skills-cli", () => {
338349createMockSkill({
339350name: "internal-hidden",
340351eligible: true,
352+platformIncompatible: false,
341353modelVisible: false,
342354commandVisible: false,
343355userInvocable: false,
@@ -358,30 +370,35 @@ describe("skills-cli", () => {
358370createMockSkill({
359371name: "prompt-hidden",
360372eligible: true,
373+platformIncompatible: false,
361374modelVisible: false,
362375commandVisible: true,
363376}),
364377createMockSkill({
365378name: "slash-hidden",
366379eligible: true,
380+platformIncompatible: false,
367381modelVisible: true,
368382userInvocable: false,
369383commandVisible: false,
370384}),
371385createMockSkill({
372386name: "agent-filtered",
373387eligible: true,
388+platformIncompatible: false,
374389blockedByAgentFilter: true,
375390}),
376391createMockSkill({
377392name: "missing-bin",
378393eligible: false,
394+platformIncompatible: false,
379395missing: { bins: ["missing-tool"], anyBins: [], env: [], config: [], os: [] },
380396}),
381397createMockSkill({ name: "disabled", eligible: false, disabled: true }),
382398createMockSkill({
383399name: "blocked-bundled",
384400eligible: false,
401+platformIncompatible: false,
385402blockedByAllowlist: true,
386403}),
387404]),
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。