pi-toggle-skills 0.1.2 → 0.1.3

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": "pi-toggle-skills",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Toggle skill visibility in pi's system prompt — flip disable-model-invocation on skills via an interactive TUI",
5
5
  "type": "module",
6
6
  "author": "Tom X Nguyen",
@@ -15,6 +15,7 @@ import {
15
15
  import { getAgentDir } from "@earendil-works/pi-coding-agent";
16
16
  import matter from "gray-matter";
17
17
  import { readFileSync, writeFileSync, existsSync, readdirSync, statSync } from "node:fs";
18
+ import { homedir } from "node:os";
18
19
  import { join, basename, dirname } from "node:path";
19
20
 
20
21
  // Skill directories to scan (in priority order, matching pi's discovery)
@@ -24,7 +25,7 @@ function getGlobalPiSkillDirs(): string[] {
24
25
  }
25
26
 
26
27
  function getGlobalAgentsSkillDirs(): string[] {
27
- return [join(getAgentDir(), "..", "agents", "skills")];
28
+ return [join(homedir(), ".agents", "skills")];
28
29
  }
29
30
 
30
31
  function getProjectSkillDirs(cwd: string): string[] {