pi-subagent-manager 1.3.0 → 1.3.1

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-subagent-manager",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Hierarchical, steerable subagent threads for pi",
5
5
  "type": "module",
6
6
  "engines": {
@@ -1,5 +1,5 @@
1
1
  import type { ExtensionCommandContext, Theme } from "@earendil-works/pi-coding-agent";
2
- import { basename } from "node:path";
2
+ import { basename, dirname } from "node:path";
3
3
  import { discoverSubagentExtensions } from "../orch/extensions.ts";
4
4
  import type { ConfigStore } from "../prefs/config.ts";
5
5
  import {
@@ -226,7 +226,7 @@ async function configureSubagentExtensions(
226
226
  [
227
227
  ...files.map((file) => ({
228
228
  id: file,
229
- label: `${selected.has(file) ? "[x]" : "[ ]"} ${basename(file)}`,
229
+ label: `${selected.has(file) ? "[x]" : "[ ]"} ${/^index\.[cm]?[jt]s$/.test(basename(file)) ? basename(dirname(file)) : basename(file)}`,
230
230
  value: available.includes(file) ? (selected.has(file) ? "On" : "Off") : "Unavailable",
231
231
  help: `${file}\n${available.includes(file) ? "Reload this extension in newly opened subagent sessions." : "Not currently discoverable/trusted; will not load. Toggle Off to remove the saved selection."}\nSpace/Enter toggles. Changes are saved only with outer Save and apply.`,
232
232
  })),