skilllib 1.0.1 → 1.0.2

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 CHANGED
@@ -328,7 +328,7 @@ npm link # use your checkout as `skilllib`
328
328
  1. Bump `version` in `package.json` and merge to `main`.
329
329
  2. Tag and push:
330
330
  ```bash
331
- git tag v1.0.1 && git push --tags
331
+ git tag v1.0.2 && git push --tags
332
332
  ```
333
333
 
334
334
  CI then tests on Linux, macOS and Windows, publishes to npm through [trusted publishing](https://docs.npmjs.com/trusted-publishers) (no token; provenance is automatic), and creates a GitHub release.
@@ -550,8 +550,7 @@ function librarySkills() {
550
550
  return skillDirsIn(libraryDir()).map((dir) => ({
551
551
  name: basename3(dir),
552
552
  description: readSkillInfo(dir).description,
553
- dir,
554
- hash: treeHash(dir) ?? ""
553
+ dir
555
554
  }));
556
555
  }
557
556
  function librarySkillDir(name) {
@@ -1538,7 +1537,6 @@ export {
1538
1537
  syncProject,
1539
1538
  updateProject,
1540
1539
  importSkill,
1541
- projectsUsing,
1542
1540
  deleteLibrarySkill,
1543
1541
  deleteGlobal,
1544
1542
  unloadGlobal,
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  unhide,
22
22
  update,
23
23
  usage
24
- } from "./chunk-K5RHLQBH.js";
24
+ } from "./chunk-67BDL5SN.js";
25
25
 
26
26
  // src/index.ts
27
27
  import { readFileSync } from "fs";
@@ -73,9 +73,9 @@ async function main() {
73
73
  const args = parseArgs(rest);
74
74
  switch (command) {
75
75
  case void 0:
76
- return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-D42E6QPE.js")).tui() : status(args);
76
+ return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-CQCVL6IK.js")).tui() : status(args);
77
77
  case "ui":
78
- return (await import("./tui-D42E6QPE.js")).tui();
78
+ return (await import("./tui-CQCVL6IK.js")).tui();
79
79
  case "status":
80
80
  return status(args);
81
81
  case "add":
@@ -27,7 +27,6 @@ import {
27
27
  machineSkills,
28
28
  projectOfFactory,
29
29
  projectStatus,
30
- projectsUsing,
31
30
  readConfig,
32
31
  readSkillInfo,
33
32
  relinkDependency,
@@ -47,7 +46,7 @@ import {
47
46
  versionHistory,
48
47
  visibilityOf,
49
48
  visibleProjects
50
- } from "./chunk-K5RHLQBH.js";
49
+ } from "./chunk-67BDL5SN.js";
51
50
 
52
51
  // src/tui/index.tsx
53
52
  import { render } from "ink";
@@ -250,7 +249,8 @@ function loadSnapshot() {
250
249
  name: s.name,
251
250
  description: s.description,
252
251
  origin: origins[s.name] ?? inferred(s.name),
253
- projects: projectsUsing(s.name).filter((p) => projects.includes(p)),
252
+ // Managed status entries are the manifest, already read above; no need to re-read every manifest per skill.
253
+ projects: projects.filter((p) => statusOf(p).some((x) => x.managed && x.name === s.name)).sort(),
254
254
  version: latestVersion(s.name)?.version ?? null
255
255
  }));
256
256
  return {
@@ -1163,7 +1163,8 @@ function App() {
1163
1163
  const edit = async (file) => {
1164
1164
  const editor = process.env.VISUAL || process.env.EDITOR || (process.platform === "win32" ? "notepad" : "vi");
1165
1165
  await suspendTerminal(() => {
1166
- spawnSync2(`${editor} "${file}"`, { shell: true, stdio: "inherit" });
1166
+ if (process.platform === "win32") spawnSync2(`${editor} "${file}"`, { shell: true, stdio: "inherit" });
1167
+ else spawnSync2("/bin/sh", ["-c", `${editor} "$1"`, "sh", file], { stdio: "inherit" });
1167
1168
  });
1168
1169
  reload();
1169
1170
  say(`Saved ${tildify2(file)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skilllib",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Manage your agent skills like dependencies. One library for all your skills; each repo gets only the ones it needs, and every agent can see them. Works with Claude Code, Cursor, Codex and Zed.",
5
5
  "keywords": [
6
6
  "agent-skills",