-
Notifications
You must be signed in to change notification settings - Fork 11k
Expand file tree
/
Copy pathindex.ts
More file actions
executable file
·74 lines (67 loc) · 2.42 KB
/
Copy pathindex.ts
File metadata and controls
executable file
·74 lines (67 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'copilot' | 'kiro' | 'roocode' | 'codex' | 'qoder' | 'gemini' | 'trae' | 'opencode' | 'continue' | 'codebuddy' | 'droid' | 'kilocode' | 'warp' | 'augment' | 'pi' | 'all';
export type InstallType = 'full' | 'reference';
export interface Release {
tag_name: string;
name: string;
published_at: string;
html_url: string;
assets: Asset[];
}
export interface Asset {
name: string;
browser_download_url: string;
size: number;
}
export interface InstallConfig {
aiType: AIType;
version?: string;
force?: boolean;
}
export interface PlatformConfig {
platform: string;
displayName: string;
installType: InstallType;
folderStructure: {
root: string;
skillPath: string;
filename: string;
};
scriptPath: string;
frontmatter: Record<string, string> | null;
sections: {
quickReference: boolean;
};
title: string;
description: string;
skillOrWorkflow: string;
}
export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'roocode', 'kiro', 'codex', 'qoder', 'gemini', 'trae', 'opencode', 'continue', 'codebuddy', 'droid', 'kilocode', 'warp', 'augment', 'pi', 'all'];
// Legacy folder mapping for backward compatibility with ZIP-based installs.
// Note: .shared is included for platforms that used ZIP installs. Post-ZIP platforms
// (kilocode, warp, augment) include .shared as a no-op for consistent uninstall behavior.
export const AI_FOLDERS: Record<Exclude<AIType, 'all'>, string[]> = {
claude: ['.claude'],
cursor: ['.cursor', '.shared'],
windsurf: ['.windsurf', '.shared'],
antigravity: ['.agents', '.shared'],
copilot: ['.github', '.shared'],
kiro: ['.kiro', '.shared'],
codex: ['.codex'],
roocode: ['.roo', '.shared'],
qoder: ['.qoder', '.shared'],
gemini: ['.gemini', '.shared'],
trae: ['.trae', '.shared'],
opencode: ['.opencode', '.shared'],
continue: ['.continue'],
codebuddy: ['.codebuddy'],
droid: ['.factory'],
kilocode: ['.kilocode', '.shared'],
warp: ['.warp', '.shared'],
augment: ['.augment', '.shared'],
// Pi installs into ~/.pi/agent/skills/<name>/SKILL.md. The
// `.pi` folder is the conventional root for both project-local
// (.pi/skills/) and user-global (~/.pi/agent/skills/) skill discovery.
// The cli writes the skill under agent/skills/ to match the user
// global location; project-local discovery also picks this up.
pi: ['.pi'],
};