pi-subagents 0.12.0 → 0.12.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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.12.1] - 2026-04-03
6
+
7
+ ### Changed
8
+ - Updated session lifecycle handling for pi 0.65.0 by removing legacy post-transition resets and relying on `session_start` reinitialization, matching pi's removal of `session_switch` and `session_fork` extension events.
9
+
5
10
  ## [0.12.0] - 2026-03-31
6
11
 
7
12
  ### Added
@@ -15,6 +20,7 @@
15
20
  ### Changed
16
21
  - Consolidated tests under `test/unit`, `test/integration`, `test/e2e`, and `test/support`, replacing the old mixed root-level and `test/` layout. Test scripts now target those directories explicitly.
17
22
  - Integration tests now use a tiny local file-based mock `pi` harness instead of relying on the external subprocess harness for normal subagent execution.
23
+ - Removed legacy extra session lifecycle resets and now rely on immutable-session `session_start` reinitialization, matching pi's removal of post-transition `session_switch`/`session_fork` events.
18
24
 
19
25
  ### Fixed
20
26
  - Loader-based tests now resolve `.js` → `.ts` imports correctly when the repository path contains spaces or other URL-escaped characters. Added a focused regression test for the custom test loader.
package/index.ts CHANGED
@@ -470,12 +470,6 @@ MANAGEMENT (use action field, omit agent/task/chain/tasks):
470
470
  pi.on("session_start", (_event, ctx) => {
471
471
  resetSessionState(ctx);
472
472
  });
473
- pi.on("session_switch", (_event, ctx) => {
474
- resetSessionState(ctx);
475
- });
476
- pi.on("session_branch", (_event, ctx) => {
477
- resetSessionState(ctx);
478
- });
479
473
  pi.on("session_shutdown", () => {
480
474
  stopResultWatcher();
481
475
  if (state.poller) clearInterval(state.poller);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-subagents",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Pi extension for delegating tasks to subagents with chains, parallel execution, and TUI clarification",
5
5
  "author": "Nico Bailon",
6
6
  "license": "MIT",