library-skills 0.0.9 → 0.0.10
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/package.json +1 -1
- package/ts/dist/{chunk-DKDHRFD4.js → chunk-JRJ32CKR.js} +3 -0
- package/ts/dist/cli.js +3 -0
- package/ts/dist/deps.js +1 -1
- package/ts/dist/scanner.cjs +3 -0
- package/ts/dist/scanner.js +1 -1
- package/ts/dist/cli.d.ts +0 -102
package/package.json
CHANGED
|
@@ -100,6 +100,9 @@ function iterNodePackageRoots(nodeModules) {
|
|
|
100
100
|
if (!isDirectory(fullPath)) {
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
103
|
+
if (entry.startsWith(".")) {
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
103
106
|
if (entry.startsWith("@")) {
|
|
104
107
|
for (const scopedEntry of readdirSync(fullPath).sort()) {
|
|
105
108
|
const scopedPath = join(fullPath, scopedEntry);
|
package/ts/dist/cli.js
CHANGED
|
@@ -114,6 +114,9 @@ function iterNodePackageRoots(nodeModules) {
|
|
|
114
114
|
if (!isDirectory(fullPath)) {
|
|
115
115
|
continue;
|
|
116
116
|
}
|
|
117
|
+
if (entry.startsWith(".")) {
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
117
120
|
if (entry.startsWith("@")) {
|
|
118
121
|
for (const scopedEntry of readdirSync(fullPath).sort()) {
|
|
119
122
|
const scopedPath = join(fullPath, scopedEntry);
|
package/ts/dist/deps.js
CHANGED
package/ts/dist/scanner.cjs
CHANGED
|
@@ -113,6 +113,9 @@ function iterNodePackageRoots(nodeModules) {
|
|
|
113
113
|
if (!isDirectory(fullPath)) {
|
|
114
114
|
continue;
|
|
115
115
|
}
|
|
116
|
+
if (entry.startsWith(".")) {
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
116
119
|
if (entry.startsWith("@")) {
|
|
117
120
|
for (const scopedEntry of (0, import_node_fs.readdirSync)(fullPath).sort()) {
|
|
118
121
|
const scopedPath = (0, import_node_path.join)(fullPath, scopedEntry);
|
package/ts/dist/scanner.js
CHANGED
package/ts/dist/cli.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { Command } from 'commander';
|
|
3
|
-
|
|
4
|
-
interface Skill {
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
path: string;
|
|
8
|
-
packageName: string;
|
|
9
|
-
skillDir: string;
|
|
10
|
-
packageVersion: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface InstallTarget {
|
|
14
|
-
name: string;
|
|
15
|
-
path: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface UvWorkspace {
|
|
19
|
-
root: string;
|
|
20
|
-
members: string[];
|
|
21
|
-
currentMember: string | null;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface ProjectContext {
|
|
25
|
-
cwd: string;
|
|
26
|
-
projectRoot: string;
|
|
27
|
-
targetEnvironment: string | null;
|
|
28
|
-
sitePackagesDir: string | null;
|
|
29
|
-
nodeModulesDir: string | null;
|
|
30
|
-
workspace: UvWorkspace | null;
|
|
31
|
-
dependencyFiles: string[];
|
|
32
|
-
}
|
|
33
|
-
interface InstalledStatus {
|
|
34
|
-
target: InstallTarget;
|
|
35
|
-
name: string;
|
|
36
|
-
type: "symlink" | "directory" | "missing";
|
|
37
|
-
path: string;
|
|
38
|
-
targetPath: string | null;
|
|
39
|
-
status: "up to date" | "broken" | "outdated" | "orphaned" | "name mismatch" | "hand-authored" | "new";
|
|
40
|
-
skill: Skill | null;
|
|
41
|
-
}
|
|
42
|
-
interface GlobalOptions {
|
|
43
|
-
claude?: boolean;
|
|
44
|
-
yes?: boolean;
|
|
45
|
-
check?: boolean;
|
|
46
|
-
all?: boolean;
|
|
47
|
-
skill?: string[];
|
|
48
|
-
}
|
|
49
|
-
interface ListOptions {
|
|
50
|
-
installed?: boolean;
|
|
51
|
-
json?: boolean;
|
|
52
|
-
claude?: boolean;
|
|
53
|
-
all?: boolean;
|
|
54
|
-
}
|
|
55
|
-
interface ScanOptions {
|
|
56
|
-
all?: boolean;
|
|
57
|
-
json?: boolean;
|
|
58
|
-
}
|
|
59
|
-
declare function getProjectContext(cwd?: string): ProjectContext;
|
|
60
|
-
declare function topLevelSkills({ context, skills, includeAll, }: {
|
|
61
|
-
context: ProjectContext;
|
|
62
|
-
skills: Skill[];
|
|
63
|
-
includeAll: boolean;
|
|
64
|
-
}): Skill[];
|
|
65
|
-
declare function displayPath(path: string | null | undefined, projectRoot: string): string;
|
|
66
|
-
declare function printTable(columns: string[], rows: Array<Record<string, string>>): void;
|
|
67
|
-
declare function findCollisions(skills: Skill[]): Set<string>;
|
|
68
|
-
declare function filterInstallableSkills({ skills, selectedNames, includeAll, }: {
|
|
69
|
-
skills: Skill[];
|
|
70
|
-
selectedNames: string[];
|
|
71
|
-
includeAll: boolean;
|
|
72
|
-
}): Skill[];
|
|
73
|
-
declare function installedStatuses({ targets, skills, }: {
|
|
74
|
-
targets: InstallTarget[];
|
|
75
|
-
skills: Skill[];
|
|
76
|
-
}): InstalledStatus[];
|
|
77
|
-
declare function installSelected({ skills, targets, projectRoot, copy, }: {
|
|
78
|
-
skills: Skill[];
|
|
79
|
-
targets: InstallTarget[];
|
|
80
|
-
projectRoot: string;
|
|
81
|
-
copy?: boolean;
|
|
82
|
-
}): number;
|
|
83
|
-
declare function sync(options: GlobalOptions): Promise<void>;
|
|
84
|
-
declare function scanCommand(options: ScanOptions): void;
|
|
85
|
-
declare function listCommand(options: ListOptions): void;
|
|
86
|
-
declare function createProgram(): Command;
|
|
87
|
-
declare function main(argv?: string[]): Promise<void>;
|
|
88
|
-
declare const testing: {
|
|
89
|
-
filterInstallableSkills: typeof filterInstallableSkills;
|
|
90
|
-
findCollisions: typeof findCollisions;
|
|
91
|
-
getProjectContext: typeof getProjectContext;
|
|
92
|
-
installSelected: typeof installSelected;
|
|
93
|
-
installedStatuses: typeof installedStatuses;
|
|
94
|
-
listCommand: typeof listCommand;
|
|
95
|
-
scanCommand: typeof scanCommand;
|
|
96
|
-
sync: typeof sync;
|
|
97
|
-
topLevelSkills: typeof topLevelSkills;
|
|
98
|
-
displayPath: typeof displayPath;
|
|
99
|
-
printTable: typeof printTable;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export { createProgram, main, testing };
|