@pi-unipi/subagents 2.1.0 → 2.1.2

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/index.ts +27 -23
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pi-unipi/subagents",
3
- "version": "2.1.0",
4
- "description": "Subagents for UniPi \u2014 parallel execution, file locking, workflow integration",
3
+ "version": "2.1.2",
4
+ "description": "Subagents for UniPi parallel execution, file locking, workflow integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -17,9 +17,9 @@
17
17
  "test": "node --test src/__tests__/*.test.ts"
18
18
  },
19
19
  "dependencies": {
20
- "@pi-unipi/core": "2.1.0",
21
- "@pi-unipi/workflow": "2.1.0",
22
- "@pi-unipi/info-screen": "2.1.0",
20
+ "@pi-unipi/core": "2.1.2",
21
+ "@pi-unipi/workflow": "2.1.2",
22
+ "@pi-unipi/info-screen": "2.1.2",
23
23
  "@earendil-works/pi-agent-core": "^0.80.0"
24
24
  },
25
25
  "devDependencies": {
package/src/index.ts CHANGED
@@ -12,7 +12,7 @@ import { Type } from "typebox";
12
12
  import { existsSync, readdirSync } from "node:fs";
13
13
  import { join } from "node:path";
14
14
  import { homedir } from "node:os";
15
- import { emitEvent, MODULES, UNIPI_EVENTS, type UnipiBadgeGenerateRequestEvent } from "@pi-unipi/core";
15
+ import { emitEvent, MODULES, UNIPI_EVENTS, withHerdrBlocked, type UnipiBadgeGenerateRequestEvent } from "@pi-unipi/core";
16
16
  import { AgentManager } from "./agent-manager.js";
17
17
  import { initConfig } from "./config.js";
18
18
  import { type AgentActivity, type NotificationDetails, BUILTIN_TYPES } from "./types.js";
@@ -758,28 +758,32 @@ Guidelines:
758
758
  // Open conversation viewer overlay if requested
759
759
  if (params.view && record.session) {
760
760
  const activity = agentActivity.get(record.id);
761
- await ctx.ui.custom<undefined>(
762
- (tui, theme, _keybindings, done) => {
763
- return new ConversationViewer(
764
- tui,
765
- record.session!,
766
- {
767
- type: record.type,
768
- description: record.description,
769
- status: record.status,
770
- toolUses: record.toolUses,
771
- startedAt: record.startedAt,
772
- completedAt: record.completedAt,
773
- },
774
- activity,
775
- theme,
776
- done,
777
- );
778
- },
779
- {
780
- overlay: true,
781
- overlayOptions: { anchor: "center", width: "90%" },
782
- },
761
+ await withHerdrBlocked(
762
+ pi,
763
+ "helper viewer",
764
+ () => ctx.ui.custom<undefined>(
765
+ (tui, theme, _keybindings, done) => {
766
+ return new ConversationViewer(
767
+ tui,
768
+ record.session!,
769
+ {
770
+ type: record.type,
771
+ description: record.description,
772
+ status: record.status,
773
+ toolUses: record.toolUses,
774
+ startedAt: record.startedAt,
775
+ completedAt: record.completedAt,
776
+ },
777
+ activity,
778
+ theme,
779
+ done,
780
+ );
781
+ },
782
+ {
783
+ overlay: true,
784
+ overlayOptions: { anchor: "center", width: "90%" },
785
+ },
786
+ ),
783
787
  );
784
788
  }
785
789