@grimoire-cc/cli 0.1.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.
@@ -0,0 +1,6 @@
1
+ import type { InstallSummary } from './types.js';
2
+ /**
3
+ * Prints a formatted summary of installed items to the console.
4
+ */
5
+ export declare function printSummary(summary: InstallSummary): void;
6
+ //# sourceMappingURL=summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,YAAY,CAAC;AAEhE;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAe1D"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Prints a formatted summary of installed items to the console.
3
+ */
4
+ export function printSummary(summary) {
5
+ console.log(`\nInstalled pack: ${summary.packName}@${summary.packVersion}`);
6
+ if (summary.results.length === 0) {
7
+ console.log(' nothing to install');
8
+ return;
9
+ }
10
+ for (const result of summary.results) {
11
+ const tag = result.overwritten ? ' (overwritten)' : '';
12
+ const typeLabel = result.item.type === 'agent' ? 'agent' : 'skill';
13
+ console.log(` ${typeLabel}: ${result.item.name} -> ${result.destinationPath}${tag}`);
14
+ }
15
+ console.log(`\n${summary.results.length} item(s) installed.`);
16
+ }
17
+ //# sourceMappingURL=summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,OAAuB;IAClD,OAAO,CAAC,GAAG,CAAC,qBAAqB,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAE5E,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACpC,OAAO;IACT,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;QACnE,OAAO,CAAC,GAAG,CAAC,KAAK,SAAS,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI,OAAO,MAAM,CAAC,eAAe,GAAG,GAAG,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,MAAM,qBAAqB,CAAC,CAAC;AAChE,CAAC"}
@@ -0,0 +1,40 @@
1
+ export interface PackSkillTriggers {
2
+ readonly keywords: readonly string[];
3
+ readonly file_extensions: readonly string[];
4
+ readonly patterns: readonly string[];
5
+ readonly file_paths: readonly string[];
6
+ }
7
+ export interface PackAgentEntry {
8
+ readonly name: string;
9
+ readonly path: string;
10
+ readonly description: string;
11
+ }
12
+ export interface PackSkillEntry {
13
+ readonly name: string;
14
+ readonly path: string;
15
+ readonly description: string;
16
+ readonly triggers?: PackSkillTriggers | undefined;
17
+ }
18
+ export interface PackManifest {
19
+ readonly name: string;
20
+ readonly version: string;
21
+ readonly agents: readonly PackAgentEntry[];
22
+ readonly skills: readonly PackSkillEntry[];
23
+ }
24
+ export interface InstallItem {
25
+ readonly type: 'agent' | 'skill';
26
+ readonly name: string;
27
+ readonly sourcePath: string;
28
+ readonly description: string;
29
+ }
30
+ export interface InstallResult {
31
+ readonly item: InstallItem;
32
+ readonly destinationPath: string;
33
+ readonly overwritten: boolean;
34
+ }
35
+ export interface InstallSummary {
36
+ readonly packName: string;
37
+ readonly packVersion: string;
38
+ readonly results: readonly InstallResult[];
39
+ }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B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;CAC5C"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@grimoire-cc/cli",
3
+ "version": "0.1.0",
4
+ "description": "CLI tool for installing Claudify agent and skill packs",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Anton Kochev",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/anton-kochev/claudify",
11
+ "directory": "packages/cli"
12
+ },
13
+ "homepage": "https://github.com/anton-kochev/claudify/tree/main/packages/cli",
14
+ "bugs": "https://github.com/anton-kochev/claudify/issues",
15
+ "keywords": ["claude", "claude-code", "agents", "skills", "cli"],
16
+ "main": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "bin": {
19
+ "grimoire": "./dist/bin.js"
20
+ },
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/index.js",
24
+ "types": "./dist/index.d.ts"
25
+ }
26
+ },
27
+ "files": ["dist/"],
28
+ "scripts": {
29
+ "test": "vitest run",
30
+ "test:watch": "vitest",
31
+ "test:coverage": "vitest run --coverage",
32
+ "build": "tsc",
33
+ "postbuild": "cp -r src/static dist/static",
34
+ "dev": "tsx src/bin.ts",
35
+ "prepublishOnly": "pnpm test && pnpm build"
36
+ },
37
+ "dependencies": {
38
+ "citty": "^0.1.6",
39
+ "@clack/prompts": "^0.9.1"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^22.0.0",
43
+ "typescript": "^5.7.0",
44
+ "tsx": "^4.19.0",
45
+ "vitest": "^3.0.0"
46
+ },
47
+ "engines": {
48
+ "node": ">=20.0.0"
49
+ }
50
+ }