mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 21:03:19 +00:00
- Create shared diagnostics.ts with ResourceCollision and ResourceDiagnostic types - Update loadSkills() to return diagnostics instead of warnings - Remove SkillWarning type and skillWarningsToDiagnostics() conversion - Update skills.test.ts to use diagnostics
15 lines
452 B
TypeScript
15 lines
452 B
TypeScript
export interface ResourceCollision {
|
|
resourceType: "extension" | "skill" | "prompt" | "theme";
|
|
name: string; // skill name, command/tool/flag name, prompt name, theme name
|
|
winnerPath: string;
|
|
loserPath: string;
|
|
winnerSource?: string; // e.g., "npm:foo", "git:...", "local"
|
|
loserSource?: string;
|
|
}
|
|
|
|
export interface ResourceDiagnostic {
|
|
type: "warning" | "error" | "collision";
|
|
message: string;
|
|
path?: string;
|
|
collision?: ResourceCollision;
|
|
}
|