pi-better-subagents 0.1.25 → 0.1.26

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-better-subagents",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Pi extension for detached, sandboxed subagent runs that keep the foreground session free.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -97,7 +97,6 @@ type NavigatorState = {
97
97
  };
98
98
 
99
99
  const GLOBAL_KEY = Symbol.for("pi-better-harness.navigator.state");
100
- const PLAN_NAVIGATION_KEY = Symbol.for("pi-better-harness.plan-navigation.state");
101
100
  const FACTORY_MARK = "__piBetterHarnessNavigatorFactory";
102
101
  const FACTORY_REFRESH = "__piBetterHarnessNavigatorRefresh";
103
102
 
@@ -121,14 +120,6 @@ function state(): NavigatorState {
121
120
  return g[GLOBAL_KEY]!;
122
121
  }
123
122
 
124
- type PlanNavigationState = { visible: boolean; releaseWorkFocus?: () => void };
125
-
126
- function planNavigationState(): PlanNavigationState {
127
- const global = globalThis as typeof globalThis & { [PLAN_NAVIGATION_KEY]?: PlanNavigationState };
128
- if (!global[PLAN_NAVIGATION_KEY]) global[PLAN_NAVIGATION_KEY] = { visible: false };
129
- return global[PLAN_NAVIGATION_KEY]!;
130
- }
131
-
132
123
  export function registerBackgroundWorkProvider(provider: BackgroundWorkProvider): () => void {
133
124
  const s = state();
134
125
  const previousUnsub = s.unsubscribers.get(provider.id);
@@ -194,7 +185,6 @@ export function ensureBackgroundWorkNavigator(ctx: ExtensionContext, deps: HostD
194
185
  s.mainListRequestRender = undefined;
195
186
  s.mainListDeadlineScheduler?.dispose();
196
187
  s.mainListDeadlineScheduler = createRenderScheduler(() => refreshMainListWidget());
197
- planNavigationState().releaseWorkFocus = unfocusMainList;
198
188
  installNavigatorEditor(ctx.ui as any, deps);
199
189
  s.lastHint = undefined;
200
190
  refreshBackgroundWorkNavigator(ctx);
@@ -223,7 +213,6 @@ export function disposeBackgroundWorkNavigator(ctx?: ExtensionContext): void {
223
213
  s.mainListRequestRender = undefined;
224
214
  s.editorComponent = undefined;
225
215
  s.detailOverlayRows = undefined;
226
- planNavigationState().releaseWorkFocus = undefined;
227
216
  s.mainListSelectedId = undefined;
228
217
  s.mainListFocused = false;
229
218
  }
@@ -471,10 +460,9 @@ function buildMainListLines(
471
460
  }
472
461
 
473
462
  function shortcutsLine(focused: boolean, fg: (color: string, value: string) => string): string {
474
- const plan = planNavigationState().visible ? " · → plan" : "";
475
463
  const keys = focused
476
- ? `↑↓ switch · Enter detail · x stop${plan} · Esc unfocus`
477
- : `← work navigator${plan}`;
464
+ ? "↑↓ switch · Enter detail · x stop · Esc unfocus"
465
+ : "← work navigator";
478
466
  return dim(keys, fg);
479
467
  }
480
468