@pi-unipi/utility 2.0.7 → 2.0.9

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,8 +1,9 @@
1
1
  {
2
2
  "name": "@pi-unipi/utility",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "Utility commands and tools for Pi coding agent — lifecycle, diagnostics, cache, analytics, display, batch execution",
5
5
  "type": "module",
6
+ "main": "src/index.ts",
6
7
  "license": "MIT",
7
8
  "author": "Neuron Mr White",
8
9
  "repository": {
@@ -46,8 +47,8 @@
46
47
  "@types/diff": "^7.0.2"
47
48
  },
48
49
  "peerDependencies": {
49
- "@mariozechner/pi-coding-agent": "*",
50
- "@sinclair/typebox": "*"
50
+ "@earendil-works/pi-coding-agent": "^0.75.5",
51
+ "typebox": "^1.1.38"
51
52
  },
52
53
  "scripts": {
53
54
  "test": "npx tsx --test tests/**/*.test.ts"
package/src/commands.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * - /unipi:doctor — run diagnostics
11
11
  */
12
12
 
13
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
13
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
14
14
  import {
15
15
  UNIPI_PREFIX,
16
16
  UTILITY_COMMANDS,
@@ -13,7 +13,7 @@ import type { ParsedDiff, DiffLine } from "./parser.js";
13
13
  import type { DiffColors } from "./theme.js";
14
14
  import { hexToBgAnsi, hexToFgAnsi } from "./theme.js";
15
15
  import { hlBlock, detectLanguage } from "./highlighter.js";
16
- import { truncateToWidth as piTruncateToWidth, visibleWidth as piVisibleWidth } from "@mariozechner/pi-tui";
16
+ import { truncateToWidth as piTruncateToWidth, visibleWidth as piVisibleWidth } from "@earendil-works/pi-tui";
17
17
 
18
18
  // ─── Constants ──────────────────────────────────────────────────────────────────
19
19
 
@@ -11,8 +11,8 @@
11
11
 
12
12
  import * as fs from "node:fs";
13
13
  import * as path from "node:path";
14
- import type { ExtensionAPI, ToolDefinition, AgentToolResult } from "@mariozechner/pi-coding-agent";
15
- import { visibleWidth as piVisibleWidth, truncateToWidth as piTruncateToWidth } from "@mariozechner/pi-tui";
14
+ import type { ExtensionAPI, ToolDefinition, AgentToolResult } from "@earendil-works/pi-coding-agent";
15
+ import { visibleWidth as piVisibleWidth, truncateToWidth as piTruncateToWidth } from "@earendil-works/pi-tui";
16
16
  import { readDiffSettings } from "./settings.js";
17
17
  import { parseDiff } from "./parser.js";
18
18
  import { resolveDiffColors, applyDiffPalette } from "./theme.js";
package/src/index.ts CHANGED
@@ -12,7 +12,7 @@
12
12
  * - TUI: settings inspector pattern, name badge
13
13
  */
14
14
 
15
- import type { ExtensionAPI, InputEvent, AgentEndEvent } from "@mariozechner/pi-coding-agent";
15
+ import type { ExtensionAPI, InputEvent, AgentEndEvent } from "@earendil-works/pi-coding-agent";
16
16
  import {
17
17
  UNIPI_EVENTS,
18
18
  MODULES,
@@ -44,7 +44,7 @@ let firstMessageSeen = false;
44
44
  let firstUserText = "";
45
45
 
46
46
  /** Stored UI context from first input, used to show badge overlay after agent responds */
47
- let firstInputCtx: import("@mariozechner/pi-coding-agent").ExtensionContext | null = null;
47
+ let firstInputCtx: import("@earendil-works/pi-coding-agent").ExtensionContext | null = null;
48
48
 
49
49
  /** All commands registered by this module */
50
50
  const ALL_COMMANDS = [
@@ -4,7 +4,7 @@
4
4
  * Registers utility stats group for the info-screen overlay.
5
5
  */
6
6
 
7
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
7
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
8
8
  import {
9
9
  UNIPI_EVENTS,
10
10
  MODULES,
package/src/tools/env.ts CHANGED
@@ -73,7 +73,7 @@ function getPiVersion(): string {
73
73
  const piPkg = resolve(
74
74
  process.cwd(),
75
75
  "node_modules",
76
- "@mariozechner",
76
+ "@earendil-works",
77
77
  "pi-coding-agent",
78
78
  "package.json",
79
79
  );
@@ -6,8 +6,8 @@
6
6
  * Model list loaded from shared model cache (~/.unipi/config/models-cache.json).
7
7
  */
8
8
 
9
- import type { Component } from "@mariozechner/pi-tui";
10
- import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
9
+ import type { Component } from "@earendil-works/pi-tui";
10
+ import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
11
11
  import type { CachedModel } from "@pi-unipi/core";
12
12
  import { readModelCache } from "@pi-unipi/core";
13
13
  import {
@@ -8,7 +8,7 @@
8
8
  * - Generate session name via background agent event
9
9
  */
10
10
 
11
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
11
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
12
12
  import { UNIPI_EVENTS, emitEvent } from "@pi-unipi/core";
13
13
  import { NameBadgeComponent } from "./name-badge.js";
14
14
  import { readBadgeSettings } from "./badge-settings.js";
@@ -6,9 +6,9 @@
6
6
  * Display-only — no input handling, no focus.
7
7
  */
8
8
 
9
- import type { Component } from "@mariozechner/pi-tui";
10
- import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
11
- import type { Theme } from "@mariozechner/pi-coding-agent";
9
+ import type { Component } from "@earendil-works/pi-tui";
10
+ import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
11
+ import type { Theme } from "@earendil-works/pi-coding-agent";
12
12
 
13
13
  /** Placeholder text when no session name is set */
14
14
  const PLACEHOLDER = "Set a name";
@@ -8,8 +8,8 @@
8
8
  * Replaces badge-settings-tui.ts as the primary settings interface.
9
9
  */
10
10
 
11
- import type { Component } from "@mariozechner/pi-tui";
12
- import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
11
+ import type { Component } from "@earendil-works/pi-tui";
12
+ import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
13
13
  import type { CachedModel } from "@pi-unipi/core";
14
14
  import { readModelCache } from "@pi-unipi/core";
15
15
  import {