ccski 2.2.1 → 2.3.0
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.
- package/README.md +10 -10
- package/dist/cli.mjs +830 -21412
- package/dist/cli.mjs.map +1 -1
- package/dist/{create-prompt-CkW5qmPT.mjs → create-prompt-CIJV_96B.mjs} +35 -4
- package/dist/{create-prompt-CkW5qmPT.mjs.map → create-prompt-CIJV_96B.mjs.map} +1 -1
- package/dist/{esm-X74pBEPN.mjs → esm-CCJbAK42.mjs} +3 -4
- package/dist/{esm-X74pBEPN.mjs.map → esm-CCJbAK42.mjs.map} +1 -1
- package/dist/index.d.mts +317 -76
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/server-y5_8eQ5a.mjs +34597 -0
- package/dist/server-y5_8eQ5a.mjs.map +1 -0
- package/package.json +20 -20
- package/dist/chunk-B7onSSqq.mjs +0 -34
- package/dist/registry-DNMfmLqa.mjs +0 -13581
- package/dist/registry-DNMfmLqa.mjs.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as
|
|
3
|
-
import { t as Separator } from "./cli.mjs";
|
|
1
|
+
import { S as __toESM, d as useState, h as isEnterKey, i as useKeypress, o as usePrefix, s as makeTheme, t as createPrompt, v as isTabKey } from "./create-prompt-CIJV_96B.mjs";
|
|
2
|
+
import { d as Separator } from "./server-y5_8eQ5a.mjs";
|
|
4
3
|
|
|
5
4
|
//#region node_modules/.pnpm/@inquirer+confirm@5.1.21_@types+node@22.19.1/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
6
5
|
function getBooleanValue(value, defaultValue) {
|
|
@@ -44,4 +43,4 @@ var esm_default = createPrompt((config, done) => {
|
|
|
44
43
|
|
|
45
44
|
//#endregion
|
|
46
45
|
export { esm_default as confirm };
|
|
47
|
-
//# sourceMappingURL=esm-
|
|
46
|
+
//# sourceMappingURL=esm-CCJbAK42.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esm-
|
|
1
|
+
{"version":3,"file":"esm-CCJbAK42.mjs","names":[],"sources":["../node_modules/.pnpm/@inquirer+confirm@5.1.21_@types+node@22.19.1/node_modules/@inquirer/confirm/dist/esm/index.js"],"sourcesContent":["import { createPrompt, useState, useKeypress, isEnterKey, isTabKey, usePrefix, makeTheme, } from '@inquirer/core';\nfunction getBooleanValue(value, defaultValue) {\n let answer = defaultValue !== false;\n if (/^(y|yes)/i.test(value))\n answer = true;\n else if (/^(n|no)/i.test(value))\n answer = false;\n return answer;\n}\nfunction boolToString(value) {\n return value ? 'Yes' : 'No';\n}\nexport default createPrompt((config, done) => {\n const { transformer = boolToString } = config;\n const [status, setStatus] = useState('idle');\n const [value, setValue] = useState('');\n const theme = makeTheme(config.theme);\n const prefix = usePrefix({ status, theme });\n useKeypress((key, rl) => {\n if (status !== 'idle')\n return;\n if (isEnterKey(key)) {\n const answer = getBooleanValue(value, config.default);\n setValue(transformer(answer));\n setStatus('done');\n done(answer);\n }\n else if (isTabKey(key)) {\n const answer = boolToString(!getBooleanValue(value, config.default));\n rl.clearLine(0); // Remove the tab character.\n rl.write(answer);\n setValue(answer);\n }\n else {\n setValue(rl.line);\n }\n });\n let formattedValue = value;\n let defaultValue = '';\n if (status === 'done') {\n formattedValue = theme.style.answer(value);\n }\n else {\n defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? 'y/N' : 'Y/n')}`;\n }\n const message = theme.style.message(config.message, status);\n return `${prefix} ${message}${defaultValue} ${formattedValue}`;\n});\n"],"x_google_ignoreList":[0],"mappings":";;;;AACA,SAAS,gBAAgB,OAAO,cAAc;CAC1C,IAAI,SAAS,iBAAiB;AAC9B,KAAI,YAAY,KAAK,MAAM,CACvB,UAAS;UACJ,WAAW,KAAK,MAAM,CAC3B,UAAS;AACb,QAAO;;AAEX,SAAS,aAAa,OAAO;AACzB,QAAO,QAAQ,QAAQ;;AAE3B,kBAAe,cAAc,QAAQ,SAAS;CAC1C,MAAM,EAAE,cAAc,iBAAiB;CACvC,MAAM,CAAC,QAAQ,aAAa,SAAS,OAAO;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,GAAG;CACtC,MAAM,QAAQ,UAAU,OAAO,MAAM;CACrC,MAAM,SAAS,UAAU;EAAE;EAAQ;EAAO,CAAC;AAC3C,cAAa,KAAK,OAAO;AACrB,MAAI,WAAW,OACX;AACJ,MAAI,WAAW,IAAI,EAAE;GACjB,MAAM,SAAS,gBAAgB,OAAO,OAAO,QAAQ;AACrD,YAAS,YAAY,OAAO,CAAC;AAC7B,aAAU,OAAO;AACjB,QAAK,OAAO;aAEP,SAAS,IAAI,EAAE;GACpB,MAAM,SAAS,aAAa,CAAC,gBAAgB,OAAO,OAAO,QAAQ,CAAC;AACpE,MAAG,UAAU,EAAE;AACf,MAAG,MAAM,OAAO;AAChB,YAAS,OAAO;QAGhB,UAAS,GAAG,KAAK;GAEvB;CACF,IAAI,iBAAiB;CACrB,IAAI,eAAe;AACnB,KAAI,WAAW,OACX,kBAAiB,MAAM,MAAM,OAAO,MAAM;KAG1C,gBAAe,IAAI,MAAM,MAAM,cAAc,OAAO,YAAY,QAAQ,QAAQ,MAAM;AAG1F,QAAO,GAAG,OAAO,GADD,MAAM,MAAM,QAAQ,OAAO,SAAS,OAAO,GAC7B,aAAa,GAAG;EAChD"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,76 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
-
//#region src/types/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
interface SkillMetadata {
|
|
13
|
-
/** Skill name (from frontmatter) */
|
|
14
|
-
name: string;
|
|
15
|
-
/** Skill description (from frontmatter) */
|
|
16
|
-
description: string;
|
|
17
|
-
/** Whether the skill is disabled (.SKILL.md) */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/** Provider (claude | codex | file/custom) */
|
|
20
|
-
provider: SkillProvider;
|
|
21
|
-
/** Location type */
|
|
22
|
-
location: SkillLocation;
|
|
23
|
-
/** Absolute path to skill directory */
|
|
24
|
-
path: string;
|
|
25
|
-
/** Whether the skill has a references/ directory */
|
|
26
|
-
hasReferences: boolean;
|
|
27
|
-
/** Whether the skill has a scripts/ directory */
|
|
28
|
-
hasScripts: boolean;
|
|
29
|
-
/** Whether the skill has an assets/ directory */
|
|
30
|
-
hasAssets: boolean;
|
|
31
|
-
/** Plugin information (only for plugin skills) */
|
|
32
|
-
pluginInfo?: {
|
|
33
|
-
pluginName: string;
|
|
34
|
-
marketplace: string;
|
|
35
|
-
version: string;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Complete skill interface with content
|
|
40
|
-
*/
|
|
41
|
-
interface Skill extends SkillMetadata {
|
|
42
|
-
/** Full markdown content (including frontmatter) */
|
|
43
|
-
content: string;
|
|
44
|
-
/** Full qualified name (e.g., "plugin:skill" for plugin skills) */
|
|
45
|
-
fullName: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* SKILL.md frontmatter interface
|
|
49
|
-
*/
|
|
50
|
-
interface SkillFrontmatter {
|
|
51
|
-
name: string;
|
|
52
|
-
description: string;
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Plugin registry entry from installed_plugins.json
|
|
57
|
-
*/
|
|
58
|
-
interface PluginEntry {
|
|
59
|
-
version: string;
|
|
60
|
-
installedAt: string;
|
|
61
|
-
lastUpdated: string;
|
|
62
|
-
installPath: string;
|
|
63
|
-
gitCommitSha: string;
|
|
64
|
-
isLocal: boolean;
|
|
65
|
-
scope?: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Installed plugins JSON structure
|
|
69
|
-
*/
|
|
70
|
-
interface InstalledPlugins {
|
|
71
|
-
version: number;
|
|
72
|
-
plugins: Record<string, PluginEntry | PluginEntry[]>;
|
|
3
|
+
//#region src/types/diagnostics.d.ts
|
|
4
|
+
type DiagnosticSeverity = "info" | "warning" | "error";
|
|
5
|
+
type DiagnosticSource = "discovery" | "plugin" | "registry";
|
|
6
|
+
interface CcskiDiagnostic {
|
|
7
|
+
severity: DiagnosticSeverity;
|
|
8
|
+
source: DiagnosticSource;
|
|
9
|
+
code: string;
|
|
10
|
+
message: string;
|
|
11
|
+
details?: Record<string, unknown>;
|
|
73
12
|
}
|
|
13
|
+
declare function diagnosticToWarning(diagnostic: CcskiDiagnostic): string;
|
|
74
14
|
//#endregion
|
|
75
15
|
//#region src/types/errors.d.ts
|
|
76
16
|
/**
|
|
@@ -265,6 +205,93 @@ type PluginEntryType = z.infer<typeof PluginEntrySchema>;
|
|
|
265
205
|
type InstalledPluginsType = z.infer<typeof InstalledPluginsSchema>;
|
|
266
206
|
type ClaudeSettingsType = z.infer<typeof ClaudeSettingsSchema>;
|
|
267
207
|
//#endregion
|
|
208
|
+
//#region src/types/skill.d.ts
|
|
209
|
+
/**
|
|
210
|
+
* Skill location types
|
|
211
|
+
*/
|
|
212
|
+
type SkillLocation = "user" | "project" | "plugin";
|
|
213
|
+
declare const BUILT_IN_SKILL_PROVIDERS: readonly ["agents", "claude", "codex", "gemini", "openclaw", "file"];
|
|
214
|
+
type BuiltInSkillProvider = (typeof BUILT_IN_SKILL_PROVIDERS)[number];
|
|
215
|
+
type SkillProvider = BuiltInSkillProvider | (string & {});
|
|
216
|
+
declare const SKILL_SOURCE_PRIORITIES: {
|
|
217
|
+
readonly plugin: 0;
|
|
218
|
+
readonly "user-shared": 100;
|
|
219
|
+
readonly "user-agent": 200;
|
|
220
|
+
readonly "workspace-shared": 300;
|
|
221
|
+
readonly "workspace-agent": 400;
|
|
222
|
+
readonly custom: 500;
|
|
223
|
+
};
|
|
224
|
+
type SkillSourceKind = keyof typeof SKILL_SOURCE_PRIORITIES;
|
|
225
|
+
/**
|
|
226
|
+
* Core skill metadata interface
|
|
227
|
+
*/
|
|
228
|
+
interface SkillMetadata {
|
|
229
|
+
/** Skill name (from frontmatter) */
|
|
230
|
+
name: string;
|
|
231
|
+
/** Skill description (from frontmatter) */
|
|
232
|
+
description: string;
|
|
233
|
+
/** Whether the skill is disabled (.SKILL.md) */
|
|
234
|
+
disabled?: boolean;
|
|
235
|
+
/** Provider (built-in agent/shared provider or discovered dynamic provider) */
|
|
236
|
+
provider: SkillProvider;
|
|
237
|
+
/** Location type */
|
|
238
|
+
location: SkillLocation;
|
|
239
|
+
/** Source priority used by auto deduplication; higher wins */
|
|
240
|
+
sourcePriority?: number;
|
|
241
|
+
/** Source class used to explain discovery precedence */
|
|
242
|
+
sourceKind?: SkillSourceKind;
|
|
243
|
+
/** Absolute path to skill directory */
|
|
244
|
+
path: string;
|
|
245
|
+
/** Whether the skill has a references/ directory */
|
|
246
|
+
hasReferences: boolean;
|
|
247
|
+
/** Whether the skill has a scripts/ directory */
|
|
248
|
+
hasScripts: boolean;
|
|
249
|
+
/** Whether the skill has an assets/ directory */
|
|
250
|
+
hasAssets: boolean;
|
|
251
|
+
/** Plugin information (only for plugin skills) */
|
|
252
|
+
pluginInfo?: {
|
|
253
|
+
pluginName: string;
|
|
254
|
+
marketplace: string;
|
|
255
|
+
version: string;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Complete skill interface with content
|
|
260
|
+
*/
|
|
261
|
+
interface Skill extends SkillMetadata {
|
|
262
|
+
/** Full markdown content (including frontmatter) */
|
|
263
|
+
content: string;
|
|
264
|
+
/** Full qualified name (e.g., "plugin:skill" for plugin skills) */
|
|
265
|
+
fullName: string;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* SKILL.md frontmatter interface
|
|
269
|
+
*/
|
|
270
|
+
interface SkillFrontmatter {
|
|
271
|
+
name: string;
|
|
272
|
+
description: string;
|
|
273
|
+
[key: string]: unknown;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Plugin registry entry from installed_plugins.json
|
|
277
|
+
*/
|
|
278
|
+
interface PluginEntry {
|
|
279
|
+
version: string;
|
|
280
|
+
installedAt: string;
|
|
281
|
+
lastUpdated: string;
|
|
282
|
+
installPath: string;
|
|
283
|
+
gitCommitSha: string;
|
|
284
|
+
isLocal: boolean;
|
|
285
|
+
scope?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Installed plugins JSON structure
|
|
289
|
+
*/
|
|
290
|
+
interface InstalledPlugins {
|
|
291
|
+
version: number;
|
|
292
|
+
plugins: Record<string, PluginEntry | PluginEntry[]>;
|
|
293
|
+
}
|
|
294
|
+
//#endregion
|
|
268
295
|
//#region src/core/parser.d.ts
|
|
269
296
|
/**
|
|
270
297
|
* Parse result from parseSkillFile
|
|
@@ -295,16 +322,24 @@ declare function validateSkillFile(filePath: string): {
|
|
|
295
322
|
suggestions: string[];
|
|
296
323
|
};
|
|
297
324
|
//#endregion
|
|
298
|
-
//#region src/core/
|
|
299
|
-
|
|
325
|
+
//#region src/core/skill-roots.d.ts
|
|
326
|
+
interface SkillDirectoryEntry {
|
|
300
327
|
path: string;
|
|
301
328
|
provider: SkillProvider;
|
|
302
|
-
|
|
329
|
+
location: SkillLocation;
|
|
330
|
+
sourceKind: SkillSourceKind;
|
|
331
|
+
sourcePriority: number;
|
|
332
|
+
scope?: string;
|
|
333
|
+
}
|
|
334
|
+
declare function getDefaultSkillDirectories(userDir: string, workspaceDir?: string): SkillDirectoryEntry[];
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region src/core/discovery.d.ts
|
|
303
337
|
interface DiscoveryDiagnostics {
|
|
304
338
|
scannedDirectories: string[];
|
|
305
339
|
warnings: string[];
|
|
306
340
|
conflicts: string[];
|
|
307
|
-
byProvider: Record<
|
|
341
|
+
byProvider: Record<string, number>;
|
|
342
|
+
events: CcskiDiagnostic[];
|
|
308
343
|
}
|
|
309
344
|
interface DiscoveryResult {
|
|
310
345
|
skills: SkillMetadata[];
|
|
@@ -336,6 +371,8 @@ interface ScanOptions {
|
|
|
336
371
|
recursive?: boolean;
|
|
337
372
|
diagnostics: DiscoveryDiagnostics;
|
|
338
373
|
includeDisabled?: boolean;
|
|
374
|
+
sourceKind?: SkillSourceKind;
|
|
375
|
+
sourcePriority?: number;
|
|
339
376
|
}
|
|
340
377
|
/**
|
|
341
378
|
* Scan a single skill directory and return found skills
|
|
@@ -344,7 +381,9 @@ declare function scanSkillDirectory(dirPath: string, {
|
|
|
344
381
|
location,
|
|
345
382
|
recursive,
|
|
346
383
|
diagnostics,
|
|
347
|
-
includeDisabled
|
|
384
|
+
includeDisabled,
|
|
385
|
+
sourceKind,
|
|
386
|
+
sourcePriority
|
|
348
387
|
}: ScanOptions, provider: SkillProvider, userDir?: string, scope?: string): SkillMetadata[];
|
|
349
388
|
/**
|
|
350
389
|
* Discover all skills from standard directories
|
|
@@ -409,8 +448,210 @@ declare class SkillRegistry {
|
|
|
409
448
|
pluginSources: string[];
|
|
410
449
|
warnings: string[];
|
|
411
450
|
conflicts: string[];
|
|
451
|
+
events: CcskiDiagnostic[];
|
|
412
452
|
};
|
|
413
453
|
}
|
|
414
454
|
//#endregion
|
|
415
|
-
|
|
455
|
+
//#region src/utils/registry-options.d.ts
|
|
456
|
+
/**
|
|
457
|
+
* Args that map to SkillRegistryOptions.
|
|
458
|
+
* Used by CLI and programmatic API to configure skill discovery.
|
|
459
|
+
*/
|
|
460
|
+
interface RegistryInput {
|
|
461
|
+
skillDir?: string[];
|
|
462
|
+
scanDefaultDirs?: boolean;
|
|
463
|
+
claudePluginsFile?: string;
|
|
464
|
+
claudePluginsRoot?: string;
|
|
465
|
+
userDir?: string;
|
|
466
|
+
}
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/api/types.d.ts
|
|
469
|
+
interface FilterOptions {
|
|
470
|
+
include?: string[];
|
|
471
|
+
exclude?: string[];
|
|
472
|
+
all?: boolean;
|
|
473
|
+
disabled?: boolean;
|
|
474
|
+
}
|
|
475
|
+
interface ListOptions extends RegistryInput, FilterOptions {}
|
|
476
|
+
interface InfoOptions extends RegistryInput, FilterOptions {
|
|
477
|
+
name: string;
|
|
478
|
+
full?: boolean;
|
|
479
|
+
}
|
|
480
|
+
interface SearchOptions extends RegistryInput, FilterOptions {
|
|
481
|
+
query: string;
|
|
482
|
+
content?: boolean;
|
|
483
|
+
limit?: number;
|
|
484
|
+
}
|
|
485
|
+
interface ValidateOptions extends RegistryInput, FilterOptions {
|
|
486
|
+
path: string;
|
|
487
|
+
}
|
|
488
|
+
interface ToggleOptions extends RegistryInput, FilterOptions {
|
|
489
|
+
names?: string[];
|
|
490
|
+
force?: boolean;
|
|
491
|
+
override?: boolean;
|
|
492
|
+
interactive?: boolean;
|
|
493
|
+
yes?: boolean;
|
|
494
|
+
}
|
|
495
|
+
interface InstallOptions {
|
|
496
|
+
source: string;
|
|
497
|
+
skills?: string[];
|
|
498
|
+
force?: boolean;
|
|
499
|
+
override?: boolean;
|
|
500
|
+
path?: string;
|
|
501
|
+
mode?: "git" | "file";
|
|
502
|
+
branch?: string;
|
|
503
|
+
interactive?: boolean;
|
|
504
|
+
all?: boolean;
|
|
505
|
+
disabled?: boolean;
|
|
506
|
+
include?: string[];
|
|
507
|
+
exclude?: string[];
|
|
508
|
+
outDir?: string[];
|
|
509
|
+
outScope?: string[];
|
|
510
|
+
userDir?: string;
|
|
511
|
+
dryRun?: boolean;
|
|
512
|
+
timeout?: number;
|
|
513
|
+
yes?: boolean;
|
|
514
|
+
}
|
|
515
|
+
interface SkillInfoResult {
|
|
516
|
+
name: string;
|
|
517
|
+
description: string;
|
|
518
|
+
provider: SkillMetadata["provider"];
|
|
519
|
+
location: SkillMetadata["location"];
|
|
520
|
+
path: string;
|
|
521
|
+
size: number;
|
|
522
|
+
disabled: boolean;
|
|
523
|
+
hasReferences: boolean;
|
|
524
|
+
hasScripts: boolean;
|
|
525
|
+
hasAssets: boolean;
|
|
526
|
+
pluginInfo: SkillMetadata["pluginInfo"] | null;
|
|
527
|
+
content: string;
|
|
528
|
+
}
|
|
529
|
+
interface SearchResultItem {
|
|
530
|
+
name: string;
|
|
531
|
+
description: string;
|
|
532
|
+
location: SkillMetadata["location"];
|
|
533
|
+
provider: SkillMetadata["provider"];
|
|
534
|
+
disabled: boolean;
|
|
535
|
+
path: string;
|
|
536
|
+
}
|
|
537
|
+
interface ValidateResult {
|
|
538
|
+
file: string;
|
|
539
|
+
success: boolean;
|
|
540
|
+
errors: string[];
|
|
541
|
+
warnings: string[];
|
|
542
|
+
}
|
|
543
|
+
interface InstallResultEntry {
|
|
544
|
+
skill: string;
|
|
545
|
+
destination: string;
|
|
546
|
+
path: string;
|
|
547
|
+
status: "installed" | "skipped" | "overwritten" | "failed";
|
|
548
|
+
error?: string;
|
|
549
|
+
}
|
|
550
|
+
interface InstallSummary {
|
|
551
|
+
results: InstallResultEntry[];
|
|
552
|
+
installed: number;
|
|
553
|
+
skipped: number;
|
|
554
|
+
overwritten: number;
|
|
555
|
+
failed: number;
|
|
556
|
+
}
|
|
557
|
+
interface InstallPreview {
|
|
558
|
+
dryRun: true;
|
|
559
|
+
skills: Array<{
|
|
560
|
+
name: string;
|
|
561
|
+
description: string;
|
|
562
|
+
}>;
|
|
563
|
+
destinations: Array<{
|
|
564
|
+
path: string;
|
|
565
|
+
exists: boolean;
|
|
566
|
+
}>;
|
|
567
|
+
totalInstalls: number;
|
|
568
|
+
}
|
|
569
|
+
type InstallResult = InstallSummary | InstallPreview;
|
|
570
|
+
interface ToggleResultEntry {
|
|
571
|
+
skill: string;
|
|
572
|
+
path: string;
|
|
573
|
+
status: "enabled" | "disabled" | "skipped" | "failed";
|
|
574
|
+
error?: string;
|
|
575
|
+
}
|
|
576
|
+
interface ToggleSummary {
|
|
577
|
+
mode: "enable" | "disable";
|
|
578
|
+
results: ToggleResultEntry[];
|
|
579
|
+
succeeded: number;
|
|
580
|
+
skipped: number;
|
|
581
|
+
failed: number;
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region src/api/list.d.ts
|
|
585
|
+
declare function listSkills(options?: ListOptions): Promise<SkillMetadata[]>;
|
|
586
|
+
//#endregion
|
|
587
|
+
//#region src/api/info.d.ts
|
|
588
|
+
declare function getSkillInfo(options: InfoOptions): Promise<SkillInfoResult>;
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region src/api/search.d.ts
|
|
591
|
+
declare function searchSkillsDetailed(options: SearchOptions): SkillMetadata[];
|
|
592
|
+
declare function searchSkills(options: SearchOptions): Promise<SearchResultItem[]>;
|
|
593
|
+
//#endregion
|
|
594
|
+
//#region src/api/validate.d.ts
|
|
595
|
+
declare function validateSkill(options: ValidateOptions): Promise<ValidateResult>;
|
|
596
|
+
//#endregion
|
|
597
|
+
//#region src/api/install.d.ts
|
|
598
|
+
interface InstallOutput {
|
|
599
|
+
log: (message?: string) => void;
|
|
600
|
+
error: (message?: string) => void;
|
|
601
|
+
isTTY: boolean;
|
|
602
|
+
write: (message: string) => void;
|
|
603
|
+
clearLine: () => void;
|
|
604
|
+
}
|
|
605
|
+
declare function createConsoleInstallOutput(): InstallOutput;
|
|
606
|
+
declare function registerInstallCleanupHandlers(): void;
|
|
607
|
+
interface InternalInstallResult {
|
|
608
|
+
path: string;
|
|
609
|
+
name: string;
|
|
610
|
+
status: "installed" | "skipped" | "overwritten";
|
|
611
|
+
}
|
|
612
|
+
declare function installSkillDir(skillDir: string, targetRoot: string, force?: boolean): InternalInstallResult;
|
|
613
|
+
declare class MultiSkillSelectionError extends Error {
|
|
614
|
+
listing: string;
|
|
615
|
+
constructor(message: string, listing: string);
|
|
616
|
+
}
|
|
617
|
+
declare class InstallCancelledError extends Error {
|
|
618
|
+
constructor();
|
|
619
|
+
}
|
|
620
|
+
declare function installSkills(options: InstallOptions, output?: InstallOutput): Promise<InstallResult>;
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/api/toggle.d.ts
|
|
623
|
+
type ToggleMode = "enable" | "disable";
|
|
624
|
+
interface ToggleOutput {
|
|
625
|
+
log: (message?: string) => void;
|
|
626
|
+
}
|
|
627
|
+
declare function toggleSkills(mode: ToggleMode, options: ToggleOptions, output?: ToggleOutput): Promise<ToggleSummary>;
|
|
628
|
+
declare class MultiSelectError extends Error {
|
|
629
|
+
listing: string;
|
|
630
|
+
constructor(message: string, listing: string);
|
|
631
|
+
}
|
|
632
|
+
declare class ToggleCancelledError extends Error {
|
|
633
|
+
mode: ToggleMode;
|
|
634
|
+
constructor(mode: ToggleMode);
|
|
635
|
+
}
|
|
636
|
+
//#endregion
|
|
637
|
+
//#region src/utils/filters.d.ts
|
|
638
|
+
type StateFilter = "enabled" | "disabled" | "all";
|
|
639
|
+
//#endregion
|
|
640
|
+
//#region src/mcp/server.d.ts
|
|
641
|
+
interface MCPServerOptions extends SkillRegistryOptions {
|
|
642
|
+
autoRefresh?: boolean;
|
|
643
|
+
refreshInterval?: number;
|
|
644
|
+
transport?: "stdio" | "sse" | "http";
|
|
645
|
+
host?: string;
|
|
646
|
+
port?: number;
|
|
647
|
+
include?: string[];
|
|
648
|
+
exclude?: string[];
|
|
649
|
+
state?: StateFilter;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Create and start an MCP server for skill management
|
|
653
|
+
*/
|
|
654
|
+
declare function startMCPServer(options?: MCPServerOptions): Promise<void>;
|
|
655
|
+
//#endregion
|
|
656
|
+
export { AmbiguousSkillNameError, BUILT_IN_SKILL_PROVIDERS, BuiltInSkillProvider, CcskiDiagnostic, CcskiError, ClaudeSettingsSchema, ClaudeSettingsType, DiagnosticSeverity, DiagnosticSource, DiscoveryDiagnostics, DiscoveryOptions, DiscoveryResult, InfoOptions, InstallCancelledError, InstallOptions, InstallOutput, InstallPreview, InstallResult, InstallResultEntry, InstallSummary, InstalledPlugins, InstalledPluginsSchema, InstalledPluginsType, ListOptions, MCPServerOptions, MultiSkillSelectionError, ParseError, ParseResult, PluginEntry, PluginEntrySchema, PluginEntryType, SKILL_SOURCE_PRIORITIES, SearchOptions, SearchResultItem, Skill, SkillFrontmatter, SkillFrontmatterSchema, SkillFrontmatterType, SkillInfoResult, SkillLocation, SkillMetadata, SkillNotFoundError, SkillProvider, SkillRegistry, SkillRegistryOptions, SkillSourceKind, ToggleCancelledError, ToggleMode, MultiSelectError as ToggleMultiSelectError, ToggleOptions, ToggleResultEntry, ToggleSummary, ValidateOptions, ValidateResult, ValidationError, createConsoleInstallOutput, diagnosticToWarning, discoverSkills, getDefaultSkillDirectories, getSkillInfo, installSkillDir, installSkills, listSkills, loadSkill, parseSkillFile, registerInstallCleanupHandlers, scanSkillDirectory, searchSkills, searchSkillsDetailed, startMCPServer, toggleSkills, validateSkill, validateSkillFile };
|
|
416
657
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/diagnostics.ts","../src/types/errors.ts","../src/types/schemas.ts","../src/types/skill.ts","../src/core/parser.ts","../src/core/skill-roots.ts","../src/core/discovery.ts","../src/core/plugins.ts","../src/core/registry.ts","../src/utils/registry-options.ts","../src/api/types.ts","../src/api/list.ts","../src/api/info.ts","../src/api/search.ts","../src/api/validate.ts","../src/api/install.ts","../src/api/toggle.ts","../src/utils/filters.ts","../src/mcp/server.ts"],"sourcesContent":[],"mappings":";;;KAAY,kBAAA;KAEA,gBAAA;UAEK,eAAA;EAJL,QAAA,EAKA,kBALkB;EAElB,MAAA,EAIF,gBAJkB;EAEX,IAAA,EAAA,MAAA;EACL,OAAA,EAAA,MAAA;EACF,OAAA,CAAA,EAGE,MAHF,CAAA,MAAA,EAAA,OAAA,CAAA;;AAGQ,iBAGF,mBAAA,CAHE,UAAA,EAG8B,eAH9B,CAAA,EAAA,MAAA;;;;;;AATN,cCGC,UAAA,SAAmB,KAAA,CDHF;EAElB,SAAA,WAAgB,E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GAAA,KAAA;;;ADDzB,UkBoBK,gBAAA,SAAyB,oBlBpBd,CAAA;EAEX,WAAA,CAAA,EAAA,OAAe;EACpB,eAAA,CAAA,EAAA,MAAA;EACF,SAAA,CAAA,EAAA,OAAA,GAAA,KAAA,GAAA,MAAA;EAGE,IAAA,CAAA,EAAA,MAAA;EAAM,IAAA,CAAA,EAAA,MAAA;EAGF,OAAA,CAAA,EAAA,MAAA,EAAA;;UkBkBN;;AjB3BV;AAaA;AAaA;AAiBa,iBiBVS,cAAA,CjBUe,OAAU,CAAA,EiBVD,gBjBUC,CAAA,EiBVuB,OjBUvB,CAAA,IAAA,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./create-prompt-CIJV_96B.mjs";
|
|
2
|
+
import { $ as AmbiguousSkillNameError, B as loadSkill, G as parseSkillFile, H as getDefaultSkillDirectories, J as SKILL_SOURCE_PRIORITIES, K as validateSkillFile, Q as SkillFrontmatterSchema, S as SkillRegistry, V as scanSkillDirectory, X as InstalledPluginsSchema, Y as ClaudeSettingsSchema, Z as PluginEntrySchema, _ as listSkills, a as InstallCancelledError, c as installSkillDir, et as CcskiError, f as validateSkill, h as getSkillInfo, i as toggleSkills, it as diagnosticToWarning, l as installSkills, m as searchSkillsDetailed, n as MultiSelectError, nt as SkillNotFoundError, o as MultiSkillSelectionError, p as searchSkills, q as BUILT_IN_SKILL_PROVIDERS, r as ToggleCancelledError, rt as ValidationError, s as createConsoleInstallOutput, t as startMCPServer, tt as ParseError, u as registerInstallCleanupHandlers, z as discoverSkills } from "./server-y5_8eQ5a.mjs";
|
|
2
3
|
|
|
3
|
-
export { AmbiguousSkillNameError, CcskiError, ClaudeSettingsSchema, InstalledPluginsSchema, ParseError, PluginEntrySchema, SkillFrontmatterSchema, SkillNotFoundError, SkillRegistry, ValidationError, discoverSkills, getDefaultSkillDirectories, loadSkill, parseSkillFile, scanSkillDirectory, validateSkillFile };
|
|
4
|
+
export { AmbiguousSkillNameError, BUILT_IN_SKILL_PROVIDERS, CcskiError, ClaudeSettingsSchema, InstallCancelledError, InstalledPluginsSchema, MultiSkillSelectionError, ParseError, PluginEntrySchema, SKILL_SOURCE_PRIORITIES, SkillFrontmatterSchema, SkillNotFoundError, SkillRegistry, ToggleCancelledError, MultiSelectError as ToggleMultiSelectError, ValidationError, createConsoleInstallOutput, diagnosticToWarning, discoverSkills, getDefaultSkillDirectories, getSkillInfo, installSkillDir, installSkills, listSkills, loadSkill, parseSkillFile, registerInstallCleanupHandlers, scanSkillDirectory, searchSkills, searchSkillsDetailed, startMCPServer, toggleSkills, validateSkill, validateSkillFile };
|