@skillshub-labs/cli 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,59 @@
1
+ export type KitSyncMode = 'copy' | 'link'
2
+
3
+ export interface KitLoadoutItem {
4
+ skillPath: string
5
+ mode: KitSyncMode
6
+ sortOrder: number
7
+ }
8
+
9
+ export interface KitLoadoutRecord {
10
+ id: string
11
+ name: string
12
+ description?: string
13
+ items: KitLoadoutItem[]
14
+ createdAt: number
15
+ updatedAt: number
16
+ }
17
+
18
+ export interface KitPolicyRecord {
19
+ id: string
20
+ name: string
21
+ description?: string
22
+ content: string
23
+ createdAt: number
24
+ updatedAt: number
25
+ }
26
+
27
+ export interface KitRecord {
28
+ id: string
29
+ name: string
30
+ description?: string
31
+ policyId: string
32
+ loadoutId: string
33
+ lastAppliedAt?: number
34
+ lastAppliedTarget?: {
35
+ projectPath: string
36
+ agentName: string
37
+ }
38
+ createdAt: number
39
+ updatedAt: number
40
+ }
41
+
42
+ export interface KitApplySkillResult {
43
+ skillPath: string
44
+ mode: KitSyncMode
45
+ destination: string
46
+ status: 'success' | 'failed'
47
+ error?: string
48
+ }
49
+
50
+ export interface KitApplyResult {
51
+ kitId: string
52
+ kitName: string
53
+ policyPath: string
54
+ projectPath: string
55
+ agentName: string
56
+ appliedAt: number
57
+ overwroteAgentsMd?: boolean
58
+ loadoutResults: KitApplySkillResult[]
59
+ }
@@ -0,0 +1,134 @@
1
+ export type AppType = 'claude' | 'codex' | 'gemini'
2
+
3
+ export interface ProviderRecord {
4
+ id: string
5
+ appType: AppType
6
+ name: string
7
+ config: Record<string, unknown>
8
+ isCurrent: boolean
9
+ createdAt: number
10
+ updatedAt: number
11
+ }
12
+
13
+ export interface ProviderProfile {
14
+ kind?: 'api' | 'official'
15
+ vendorKey?: string
16
+ universalId?: string
17
+ accountName?: string
18
+ endpoint?: string
19
+ website?: string
20
+ model?: string
21
+ note?: string
22
+ }
23
+
24
+ export interface UniversalProviderApps {
25
+ claude: boolean
26
+ codex: boolean
27
+ gemini: boolean
28
+ }
29
+
30
+ export interface UniversalProviderModels {
31
+ claude?: {
32
+ model?: string
33
+ }
34
+ codex?: {
35
+ model?: string
36
+ }
37
+ gemini?: {
38
+ model?: string
39
+ }
40
+ }
41
+
42
+ export interface UniversalProviderRecord {
43
+ id: string
44
+ name: string
45
+ baseUrl: string
46
+ apiKey: string
47
+ websiteUrl?: string
48
+ notes?: string
49
+ apps: UniversalProviderApps
50
+ models: UniversalProviderModels
51
+ createdAt: number
52
+ updatedAt: number
53
+ }
54
+
55
+ export interface SwitchResult {
56
+ appType: AppType
57
+ currentProviderId: string
58
+ backupId: number
59
+ switchedFrom: string | null
60
+ switchedTo: string
61
+ }
62
+
63
+ export const APP_TYPES: AppType[]
64
+
65
+ export function ensureDb(): unknown
66
+ export function getDbPath(): string
67
+
68
+ export function listProviders(appType?: AppType): ProviderRecord[]
69
+ export function getProviderById(id: string): ProviderRecord | null
70
+ export function getCurrentProvider(appType: AppType): ProviderRecord | null
71
+
72
+ export function addProvider(input: {
73
+ appType: AppType
74
+ name: string
75
+ config: Record<string, unknown>
76
+ }): ProviderRecord
77
+
78
+ export function captureProviderFromLive(input: {
79
+ appType: AppType
80
+ name: string
81
+ profile?: ProviderProfile
82
+ }): Promise<ProviderRecord>
83
+
84
+ export function updateProvider(input: {
85
+ id: string
86
+ name?: string
87
+ config?: Record<string, unknown>
88
+ }): ProviderRecord
89
+
90
+ export function deleteProvider(id: string): boolean
91
+
92
+ export function switchProvider(input: {
93
+ appType: AppType
94
+ providerId: string
95
+ }): Promise<SwitchResult>
96
+
97
+ export function getLatestBackup(appType: AppType): {
98
+ id: number
99
+ appType: AppType
100
+ backup: Record<string, unknown>
101
+ createdAt: number
102
+ } | null
103
+
104
+ export function restoreBackup(
105
+ appType: AppType,
106
+ backupId?: number
107
+ ): Promise<{ id: number; appType: AppType; backup: Record<string, unknown>; createdAt: number }>
108
+
109
+ export function maskProvider(provider: ProviderRecord | null): ProviderRecord | null
110
+ export function maskProviders(providers: ProviderRecord[]): ProviderRecord[]
111
+
112
+ export function listUniversalProviders(): UniversalProviderRecord[]
113
+ export function getUniversalProviderById(id: string): UniversalProviderRecord | null
114
+ export function addUniversalProvider(input: {
115
+ name: string
116
+ baseUrl: string
117
+ apiKey: string
118
+ websiteUrl?: string
119
+ notes?: string
120
+ apps?: Partial<UniversalProviderApps>
121
+ models?: UniversalProviderModels
122
+ }): UniversalProviderRecord
123
+ export function updateUniversalProvider(input: {
124
+ id: string
125
+ name?: string
126
+ baseUrl?: string
127
+ apiKey?: string
128
+ websiteUrl?: string
129
+ notes?: string
130
+ apps?: Partial<UniversalProviderApps>
131
+ models?: UniversalProviderModels
132
+ }): UniversalProviderRecord
133
+ export function deleteUniversalProvider(id: string): boolean
134
+ export function applyUniversalProvider(input: { id: string }): ProviderRecord[]