@pi-unipi/subagents 2.0.5 → 2.0.8

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-unipi/subagents",
3
- "version": "2.0.5",
3
+ "version": "2.0.8",
4
4
  "description": "Subagents for UniPi — parallel execution, file locking, workflow integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,14 +19,15 @@
19
19
  "dependencies": {
20
20
  "@pi-unipi/core": "*",
21
21
  "@pi-unipi/workflow": "*",
22
- "@pi-unipi/info-screen": "*"
22
+ "@pi-unipi/info-screen": "*",
23
+ "@earendil-works/pi-agent-core": "^0.75.5"
23
24
  },
24
25
  "devDependencies": {
25
26
  "typescript": "^5.8.3"
26
27
  },
27
28
  "peerDependencies": {
28
- "@mariozechner/pi-coding-agent": "*",
29
- "@mariozechner/pi-tui": "*",
30
- "@sinclair/typebox": "*"
29
+ "@earendil-works/pi-coding-agent": "^0.75.5",
30
+ "@earendil-works/pi-tui": "^0.75.5",
31
+ "typebox": "^1.1.38"
31
32
  }
32
33
  }
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import { randomUUID } from "node:crypto";
9
- import type { Model } from "@mariozechner/pi-ai";
10
- import type { AgentSession, ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
9
+ import type { Model } from "@earendil-works/pi-ai";
10
+ import type { AgentSession, ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
11
11
  import { runAgent, type ToolActivity } from "./agent-runner.js";
12
12
  import { resolveModel, type ModelRegistry } from "./model-resolver.js";
13
13
  import type { AgentRecord, AgentConfig, AgentType, ThinkingLevel } from "./types.js";
@@ -5,8 +5,8 @@
5
5
  * Forwards abort signals for ESC propagation.
6
6
  */
7
7
 
8
- import type { Model } from "@mariozechner/pi-ai";
9
- import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
8
+ import type { Model } from "@earendil-works/pi-ai";
9
+ import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
10
10
  import {
11
11
  type AgentSession,
12
12
  type AgentSessionEvent,
@@ -16,7 +16,7 @@ import {
16
16
  getAgentDir,
17
17
  SessionManager,
18
18
  SettingsManager,
19
- } from "@mariozechner/pi-coding-agent";
19
+ } from "@earendil-works/pi-coding-agent";
20
20
  import { BUILTIN_CONFIGS, type AgentConfig, type AgentType, type ThinkingLevel } from "./types.js";
21
21
 
22
22
  /** Tools excluded from subagents to prevent nesting. */
@@ -6,7 +6,7 @@
6
6
  * Supports keyboard navigation: ↑↓, PgUp/PgDn, Home/End, Esc/q to close.
7
7
  */
8
8
 
9
- import type { AgentSession } from "@mariozechner/pi-coding-agent";
9
+ import type { AgentSession } from "@earendil-works/pi-coding-agent";
10
10
  import {
11
11
  type Component,
12
12
  matchesKey,
@@ -14,7 +14,7 @@ import {
14
14
  truncateToWidth,
15
15
  visibleWidth,
16
16
  wrapTextWithAnsi,
17
- } from "@mariozechner/pi-tui";
17
+ } from "@earendil-works/pi-tui";
18
18
  import type { AgentActivity } from "./types.js";
19
19
 
20
20
  /** Lines consumed by chrome: top border + header + header sep + footer sep + footer + bottom border. */
@@ -9,7 +9,7 @@
9
9
  import { existsSync, readdirSync, readFileSync, renameSync } from "node:fs";
10
10
  import { join } from "node:path";
11
11
  import { homedir } from "node:os";
12
- import { parseFrontmatter } from "@mariozechner/pi-coding-agent";
12
+ import { parseFrontmatter } from "@earendil-works/pi-coding-agent";
13
13
  import type { AgentConfig } from "./types.js";
14
14
 
15
15
  /** Backup a corrupted file by renaming to .bak */
package/src/index.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  * ESC propagation: all children abort on parent ESC
7
7
  */
8
8
 
9
- import { defineTool, type ExtensionAPI } from "@mariozechner/pi-coding-agent";
10
- import { Text } from "@mariozechner/pi-tui";
11
- import { Type } from "@sinclair/typebox";
9
+ import { defineTool, type ExtensionAPI } from "@earendil-works/pi-coding-agent";
10
+ import { Text } from "@earendil-works/pi-tui";
11
+ 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";
@@ -337,7 +337,7 @@ export default function (pi: ExtensionAPI) {
337
337
  }
338
338
 
339
339
  // Store session context for badge generation
340
- let sessionCtx: import("@mariozechner/pi-coding-agent").ExtensionContext | null = null;
340
+ let sessionCtx: import("@earendil-works/pi-coding-agent").ExtensionContext | null = null;
341
341
 
342
342
  // Session start: emit MODULE_READY + capture context
343
343
  pi.on("session_start", async (_event, ctx) => {
@@ -5,7 +5,7 @@
5
5
  * to actual Model instances using the registry.
6
6
  */
7
7
 
8
- import type { Model } from "@mariozechner/pi-ai";
8
+ import type { Model } from "@earendil-works/pi-ai";
9
9
 
10
10
  export interface ModelRegistry {
11
11
  find(provider: string, modelId: string): Model<any> | undefined;
package/src/types.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * @pi-unipi/subagents — Type definitions
3
3
  */
4
4
 
5
- import type { ThinkingLevel } from "@mariozechner/pi-agent-core";
6
- import type { AgentSession } from "@mariozechner/pi-coding-agent";
5
+ import type { ThinkingLevel } from "@earendil-works/pi-agent-core";
6
+ import type { AgentSession } from "@earendil-works/pi-coding-agent";
7
7
 
8
8
  export type { ThinkingLevel };
9
9
 
package/src/widget.ts CHANGED
@@ -10,8 +10,8 @@
10
10
  * - ANSI-aware truncation via pi-tui
11
11
  */
12
12
 
13
- import { truncateToWidth } from "@mariozechner/pi-tui";
14
- import type { ExtensionUIContext } from "@mariozechner/pi-coding-agent";
13
+ import { truncateToWidth } from "@earendil-works/pi-tui";
14
+ import type { ExtensionUIContext } from "@earendil-works/pi-coding-agent";
15
15
  import type { AgentManager } from "./agent-manager.js";
16
16
  import type { AgentActivity } from "./types.js";
17
17
 
@@ -96,7 +96,7 @@ export class AgentWidget {
96
96
  private spinnerFrame = 0;
97
97
  private timer?: ReturnType<typeof setInterval>;
98
98
  private uiCtx?: ExtensionUIContext;
99
- private tui?: import("@mariozechner/pi-tui").TUI;
99
+ private tui?: import("@earendil-works/pi-tui").TUI;
100
100
  private widgetRegistered = false;
101
101
  /** Last content key — skips requestRender when only spinner changed. */
102
102
  private lastContentKey = "";