pi-skillful 0.3.2 → 0.3.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/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ This project follows the spirit of [Keep a Changelog](https://keepachangelog.com
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.3] - 2026-05-12
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fixed session skill toggles so hidden skills toggled active are included in the next system prompt.
|
|
14
|
+
|
|
9
15
|
## [0.3.2] - 2026-05-10
|
|
10
16
|
|
|
11
17
|
### Fixed
|
package/package.json
CHANGED
|
@@ -114,6 +114,10 @@ function createEmptyState(): SessionToggleState {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
export function hasActiveSessionSkillToggles(): boolean {
|
|
118
|
+
return state.slots.length > 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
117
121
|
function isSkillActive(skillName: string): boolean {
|
|
118
122
|
return state.activeBySkill.get(skillName) ?? !state.hiddenSkills.has(skillName);
|
|
119
123
|
}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from "../config.js";
|
|
18
18
|
import { replaceSkillsSection } from "../skill-prompt.js";
|
|
19
19
|
import { listLoadedSkills, type LoadedSkillInfo } from "../skills.js";
|
|
20
|
+
import { hasActiveSessionSkillToggles } from "./session-skill-toggles.js";
|
|
20
21
|
const SCOPES: SkillfulScope[] = ["global", "project"];
|
|
21
22
|
const STORE_KEY = Symbol.for("pi-skillful.skillVisibilityStore");
|
|
22
23
|
const STARTUP_PATCH_KEY = Symbol.for("pi-skillful.startupPatchV2");
|
|
@@ -60,6 +61,8 @@ export default function skillVisibility(pi: ExtensionAPI) {
|
|
|
60
61
|
});
|
|
61
62
|
|
|
62
63
|
pi.on("before_agent_start", async (event, ctx) => {
|
|
64
|
+
if (hasActiveSessionSkillToggles()) return;
|
|
65
|
+
|
|
63
66
|
const hidden = await refreshHiddenSkillCache(ctx.cwd);
|
|
64
67
|
if (hidden.size === 0 || !event.systemPromptOptions.skills?.length) return;
|
|
65
68
|
|