pi-agents-switch 0.2.1 → 0.2.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/index.ts +4 -5
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -359,11 +359,10 @@ export default function agentsSwitch(pi: ExtensionAPI) {
|
|
|
359
359
|
|
|
360
360
|
if (resolved.thinkingLevel) pi.setThinkingLevel(resolved.thinkingLevel);
|
|
361
361
|
|
|
362
|
-
if (
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
362
|
+
// Apply resolved tools even if empty (e.g. excluded_tools: ["*"] with no additions)
|
|
363
|
+
const allNames = new Set(pi.getAllTools().map((t) => t.name));
|
|
364
|
+
const valid = resolved.tools.filter((t) => allNames.has(t));
|
|
365
|
+
pi.setActiveTools(valid);
|
|
367
366
|
}
|
|
368
367
|
|
|
369
368
|
// ─── Agent cycling / switching ──────────────────────
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agents-switch",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Tab to switch primary agents in Pi — like OpenCode's agent switching. Each agent gets an isolated profile with its own AGENTS.md, extensions, skills, and settings.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"pi": {
|