library-skills 0.0.5 → 0.0.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "library-skills",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Library Skills, AI Agents using libraries, as intended, always up to date.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@inquirer/checkbox": "^5.1.4",
48
- "commander": "^14.0.3",
48
+ "commander": "^15.0.0",
49
49
  "csv-parse": "^6.2.1",
50
50
  "smol-toml": "^1.6.1"
51
51
  },
@@ -48,6 +48,7 @@ function scanPythonDistributions(sitePackages) {
48
48
  if (found.skills.length === 0) {
49
49
  const fallback = scanEditableDirectUrl({
50
50
  distInfo,
51
+ sitePackages,
51
52
  packageName: dist.name,
52
53
  packageVersion: dist.version,
53
54
  seenSkillDirs
@@ -231,6 +232,7 @@ function isSkillFileRecord(installedPath) {
231
232
  }
232
233
  function scanEditableDirectUrl({
233
234
  distInfo,
235
+ sitePackages,
234
236
  packageName,
235
237
  packageVersion,
236
238
  seenSkillDirs
@@ -245,6 +247,9 @@ function scanEditableDirectUrl({
245
247
  if (!isRelativeTo(resolvedSkillMd, sourceRoot)) {
246
248
  continue;
247
249
  }
250
+ if (sitePackages && isRelativeTo(resolvedSkillMd, sitePackages)) {
251
+ continue;
252
+ }
248
253
  const skillDir = dirname(resolvedSkillMd);
249
254
  if (seenSkillDirs.has(skillDir)) {
250
255
  continue;
package/ts/dist/cli.js CHANGED
@@ -62,6 +62,7 @@ function scanPythonDistributions(sitePackages) {
62
62
  if (found.skills.length === 0) {
63
63
  const fallback = scanEditableDirectUrl({
64
64
  distInfo,
65
+ sitePackages,
65
66
  packageName: dist.name,
66
67
  packageVersion: dist.version,
67
68
  seenSkillDirs
@@ -245,6 +246,7 @@ function isSkillFileRecord(installedPath) {
245
246
  }
246
247
  function scanEditableDirectUrl({
247
248
  distInfo,
249
+ sitePackages,
248
250
  packageName,
249
251
  packageVersion,
250
252
  seenSkillDirs
@@ -259,6 +261,9 @@ function scanEditableDirectUrl({
259
261
  if (!isRelativeTo(resolvedSkillMd, sourceRoot)) {
260
262
  continue;
261
263
  }
264
+ if (sitePackages && isRelativeTo(resolvedSkillMd, sitePackages)) {
265
+ continue;
266
+ }
262
267
  const skillDir = dirname(resolvedSkillMd);
263
268
  if (seenSkillDirs.has(skillDir)) {
264
269
  continue;
package/ts/dist/deps.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizePackageName
3
- } from "./chunk-UGJ6NJYF.js";
3
+ } from "./chunk-DKDHRFD4.js";
4
4
 
5
5
  // ts/src/deps.ts
6
6
  import { existsSync, readFileSync } from "fs";
@@ -61,6 +61,7 @@ function scanPythonDistributions(sitePackages) {
61
61
  if (found.skills.length === 0) {
62
62
  const fallback = scanEditableDirectUrl({
63
63
  distInfo,
64
+ sitePackages,
64
65
  packageName: dist.name,
65
66
  packageVersion: dist.version,
66
67
  seenSkillDirs
@@ -244,6 +245,7 @@ function isSkillFileRecord(installedPath) {
244
245
  }
245
246
  function scanEditableDirectUrl({
246
247
  distInfo,
248
+ sitePackages,
247
249
  packageName,
248
250
  packageVersion,
249
251
  seenSkillDirs
@@ -258,6 +260,9 @@ function scanEditableDirectUrl({
258
260
  if (!isRelativeTo(resolvedSkillMd, sourceRoot)) {
259
261
  continue;
260
262
  }
263
+ if (sitePackages && isRelativeTo(resolvedSkillMd, sitePackages)) {
264
+ continue;
265
+ }
261
266
  const skillDir = (0, import_node_path.dirname)(resolvedSkillMd);
262
267
  if (seenSkillDirs.has(skillDir)) {
263
268
  continue;
@@ -21,8 +21,9 @@ declare function iterNodePackageRoots(nodeModules: string): string[];
21
21
  declare function readNodePackageInfo(packageRoot: string): DistributionInfo | null;
22
22
  declare function findNodeSkillMarkdownFiles(packageRoot: string): string[];
23
23
  declare function isSkillFileRecord(installedPath: string): boolean;
24
- declare function scanEditableDirectUrl({ distInfo, packageName, packageVersion, seenSkillDirs, }: {
24
+ declare function scanEditableDirectUrl({ distInfo, sitePackages, packageName, packageVersion, seenSkillDirs, }: {
25
25
  distInfo: string;
26
+ sitePackages?: string;
26
27
  packageName: string;
27
28
  packageVersion: string;
28
29
  seenSkillDirs: Set<string>;
@@ -21,8 +21,9 @@ declare function iterNodePackageRoots(nodeModules: string): string[];
21
21
  declare function readNodePackageInfo(packageRoot: string): DistributionInfo | null;
22
22
  declare function findNodeSkillMarkdownFiles(packageRoot: string): string[];
23
23
  declare function isSkillFileRecord(installedPath: string): boolean;
24
- declare function scanEditableDirectUrl({ distInfo, packageName, packageVersion, seenSkillDirs, }: {
24
+ declare function scanEditableDirectUrl({ distInfo, sitePackages, packageName, packageVersion, seenSkillDirs, }: {
25
25
  distInfo: string;
26
+ sitePackages?: string;
26
27
  packageName: string;
27
28
  packageVersion: string;
28
29
  seenSkillDirs: Set<string>;
@@ -3,7 +3,7 @@ import {
3
3
  scanNodePackages,
4
4
  scanPythonDistributions,
5
5
  testing
6
- } from "./chunk-UGJ6NJYF.js";
6
+ } from "./chunk-DKDHRFD4.js";
7
7
  export {
8
8
  normalizePackageName,
9
9
  scanNodePackages,