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 +1 -1
- package/src/ui/settings-ui.ts +2 -2
package/package.json
CHANGED
package/src/ui/settings-ui.ts
CHANGED
|
@@ -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
|
})),
|