@timmyjl12/pi-subagents 0.21.0 → 0.21.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.
@@ -3009,6 +3009,10 @@ export class ReportStore {
3009
3009
  return conversation.length > 0 ? conversation : undefined;
3010
3010
  }
3011
3011
  async maybeMaintainRootLocked(rootSessionId, rootDir, context) {
3012
+ // A closing store finishes the writes it accepted but starts no new opportunistic maintenance (the same
3013
+ // rule as maintainRoot): its lock would sit on the root while the store replacing it is refused.
3014
+ if (this.closed || this.closing)
3015
+ return;
3012
3016
  const now = this.now();
3013
3017
  const last = this.lastMaintenance.get(rootSessionId) ?? 0;
3014
3018
  if (now - last < SAVE_MAINTENANCE_INTERVAL_MS)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timmyjl12/pi-subagents",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Claude Code-style subagents and workflow orchestration for pi, with coordinated fallback recovery and an interactive child-session workspace.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,9 +55,9 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@biomejs/biome": "^2.4.14",
58
- "@earendil-works/pi-ai": "^1.3.0",
59
- "@earendil-works/pi-coding-agent": "^1.3.0",
60
- "@earendil-works/pi-tui": "^1.3.0",
58
+ "@earendil-works/pi-ai": "^1.5.2",
59
+ "@earendil-works/pi-coding-agent": "^1.5.2",
60
+ "@earendil-works/pi-tui": "^1.5.2",
61
61
  "@sinclair/typebox": "^0.34.49",
62
62
  "@types/node": "^25.5.0",
63
63
  "@vitest/coverage-istanbul": "^4.1.10",
@@ -3506,6 +3506,9 @@ export class ReportStore {
3506
3506
  rootDir: string,
3507
3507
  context: ReportContext,
3508
3508
  ): Promise<void> {
3509
+ // A closing store finishes the writes it accepted but starts no new opportunistic maintenance (the same
3510
+ // rule as maintainRoot): its lock would sit on the root while the store replacing it is refused.
3511
+ if (this.closed || this.closing) return;
3509
3512
  const now = this.now();
3510
3513
  const last = this.lastMaintenance.get(rootSessionId) ?? 0;
3511
3514
  if (now - last < SAVE_MAINTENANCE_INTERVAL_MS) return;