pi-skillful 0.3.11 → 0.3.12
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/CHANGELOG.md +6 -0
- package/package.json +3 -2
- package/src/extensions/skill-visibility.ts +1 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.12 - 2026-07-12
|
|
4
|
+
|
|
3
5
|
## 0.3.11 - 2026-07-01
|
|
4
6
|
|
|
5
7
|
## 0.3.9 - 2026-06-14
|
|
@@ -10,6 +12,10 @@ This project follows the spirit of [Keep a Changelog](https://keepachangelog.com
|
|
|
10
12
|
|
|
11
13
|
## [Unreleased]
|
|
12
14
|
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Preserve configured hidden skills at session start. Skillful no longer treats a temporarily incomplete loaded-skill list as authoritative and removes global or project visibility settings.
|
|
18
|
+
|
|
13
19
|
## [0.3.10] - 2026-07-01
|
|
14
20
|
|
|
15
21
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-skillful",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "Pi package with skill invocation and visibility improvements.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -47,12 +47,13 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
49
49
|
"@earendil-works/pi-tui": "^0.80.0",
|
|
50
|
-
"@types/node": "^
|
|
50
|
+
"@types/node": "^26.0.1",
|
|
51
51
|
"typescript": "^6.0.3"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"check": "tsc --noEmit",
|
|
55
55
|
"typecheck": "tsc --noEmit",
|
|
56
|
+
"test": "rm -rf .test-dist && tsc --noEmit false --outDir .test-dist && node --test tests/*.test.mjs",
|
|
56
57
|
"pack:dry-run": "npm pack --dry-run"
|
|
57
58
|
},
|
|
58
59
|
"publishConfig": {
|
|
@@ -85,7 +85,7 @@ export default function skillVisibility(pi: ExtensionAPI) {
|
|
|
85
85
|
|
|
86
86
|
pi.on("session_start", async (_event, ctx) => {
|
|
87
87
|
store.theme = ctx.ui.theme;
|
|
88
|
-
await
|
|
88
|
+
await refreshHiddenSkillCache(ctx.cwd);
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
pi.on("before_agent_start", async (event, ctx) => {
|
|
@@ -148,25 +148,6 @@ export default function skillVisibility(pi: ExtensionAPI) {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
async function pruneStaleHiddenSkills(pi: ExtensionAPI, cwd: string): Promise<void> {
|
|
152
|
-
const installedNames = new Set(getSkillItems(pi).map((s) => s.name));
|
|
153
|
-
const scoped = await readScopedSkillfulSettings(cwd);
|
|
154
|
-
|
|
155
|
-
await Promise.all(
|
|
156
|
-
SCOPES.map(async (scope) => {
|
|
157
|
-
const currentHidden = scoped[scope].hiddenSkills;
|
|
158
|
-
const prunedHidden = currentHidden.filter((name) => installedNames.has(name));
|
|
159
|
-
if (prunedHidden.length < currentHidden.length) {
|
|
160
|
-
scoped[scope] = await writeHiddenSkills(scope, cwd, prunedHidden);
|
|
161
|
-
}
|
|
162
|
-
}),
|
|
163
|
-
);
|
|
164
|
-
|
|
165
|
-
const hidden = new Set(scoped.project.hiddenSkillsDefined ? scoped.project.hiddenSkills : scoped.global.hiddenSkills);
|
|
166
|
-
store.hiddenSkillsByCwd.set(cwd, hidden);
|
|
167
|
-
store.lastHiddenSkills = hidden;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
151
|
async function refreshHiddenSkillCache(cwd: string): Promise<Set<string>> {
|
|
171
152
|
const hidden = await readEffectiveHiddenSkills(cwd);
|
|
172
153
|
store.hiddenSkillsByCwd.set(cwd, hidden);
|