proper-base 0.8.1 → 0.8.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
@@ -389,7 +389,7 @@ highlight. Custom replacement footers are not changed.
389
389
 
390
390
  ## Install
391
391
 
392
- Node 22.19 or newer is required. The package is tested against Pi 1.3.0.
392
+ Node 22.19 or newer is required. The package is tested against Pi 1.4.0.
393
393
 
394
394
  From npm:
395
395
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proper-base",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Baseline Pi behavior for session naming, history, prompt editing, fullscreen navigation, and footer styling",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -59,6 +59,9 @@
59
59
  "@types/node": "25.9.5",
60
60
  "typescript": "6.0.2"
61
61
  },
62
+ "overrides": {
63
+ "undici@8.10.2": "8.12.3"
64
+ },
62
65
  "pi": {
63
66
  "extensions": [
64
67
  "./index.ts"
package/src/skills.ts CHANGED
@@ -166,14 +166,16 @@ export function registerSkillContext(
166
166
  const enabled = () => !disposed && readSkillContextEnabled(agentDir);
167
167
  const effective = () => !disposed && (runEnabled ?? enabled());
168
168
  let toolHidden = false;
169
- const syncTool = (active: boolean) => {
169
+ const syncTool = (active: boolean, explicit = false) => {
170
170
  const tools = pi.getActiveTools?.();
171
171
  if (!tools || !pi.setActiveTools) return;
172
- if (!active && tools.includes(SKILL_CONTEXT_TOOL)) {
173
- pi.setActiveTools(tools.filter((name) => name !== SKILL_CONTEXT_TOOL));
172
+ if (!active) {
173
+ if (tools.includes(SKILL_CONTEXT_TOOL))
174
+ pi.setActiveTools(tools.filter((name) => name !== SKILL_CONTEXT_TOOL));
174
175
  toolHidden = true;
175
- } else if (active && toolHidden) {
176
- pi.setActiveTools([...new Set([...tools, SKILL_CONTEXT_TOOL])]);
176
+ } else if (toolHidden || explicit) {
177
+ if (!tools.includes(SKILL_CONTEXT_TOOL))
178
+ pi.setActiveTools([...tools, SKILL_CONTEXT_TOOL]);
177
179
  toolHidden = false;
178
180
  }
179
181
  };
@@ -420,7 +422,7 @@ export function registerSkillContext(
420
422
  );
421
423
  if ((action === "on" || action === "off") && !names.length) {
422
424
  writeSkillContextEnabled(agentDir, action === "on");
423
- syncTool(action === "on");
425
+ syncTool(action === "on", action === "on");
424
426
  ctx.ui.notify(
425
427
  `Skill context management ${action === "on" ? "enabled" : "disabled"}. Applies to the next run; native skills remain available.`,
426
428
  "info",