@heyhuynhgiabuu/pi-pretty 0.4.4 → 0.5.0

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": "@heyhuynhgiabuu/pi-pretty",
3
- "version": "0.4.4",
3
+ "version": "0.5.0",
4
4
  "description": "Pretty terminal output for pi — syntax-highlighted file reads, colored bash output, tree-view directory listings, and more.",
5
5
  "author": "huynhgiabuu",
6
6
  "license": "MIT",
@@ -26,10 +26,14 @@
26
26
  "@shikijs/cli": "^4.0.2"
27
27
  },
28
28
  "peerDependencies": {
29
+ "@earendil-works/pi-coding-agent": "*",
30
+ "@earendil-works/pi-tui": "*",
29
31
  "@mariozechner/pi-coding-agent": "*",
30
32
  "@mariozechner/pi-tui": "*"
31
33
  },
32
34
  "devDependencies": {
35
+ "@earendil-works/pi-coding-agent": "*",
36
+ "@earendil-works/pi-tui": "*",
33
37
  "@types/node": "^20.0.0",
34
38
  "typescript": "^5.0.0",
35
39
  "@biomejs/biome": "^2.3.5",
package/src/index.ts CHANGED
@@ -28,7 +28,7 @@ import { mkdirSync, readFileSync } from "node:fs";
28
28
  import { basename, dirname, extname, join, relative } from "node:path";
29
29
 
30
30
  import type { FileFinder, FileItem, GrepResult, SearchResult } from "@ff-labs/fff-node";
31
- import type { ImageContent, TextContent } from "@mariozechner/pi-ai";
31
+ import type { ImageContent, TextContent } from "@earendil-works/pi-ai";
32
32
  import type {
33
33
  AgentToolResult,
34
34
  AgentToolUpdateCallback,
@@ -40,8 +40,8 @@ import type {
40
40
  LsToolInput,
41
41
  ReadToolInput,
42
42
  ToolRenderResultOptions,
43
- } from "@mariozechner/pi-coding-agent";
44
- import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
43
+ } from "@earendil-works/pi-coding-agent";
44
+ import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
45
45
  import { codeToANSI } from "@shikijs/cli";
46
46
  import type { BundledLanguage, BundledTheme } from "shiki";
47
47
 
@@ -1017,13 +1017,13 @@ export default function piPrettyExtension(pi: PiPrettyApi, deps?: PiPrettyDeps):
1017
1017
  _fffDbDir = null;
1018
1018
  } else {
1019
1019
  try {
1020
- sdk = require("@mariozechner/pi-coding-agent");
1020
+ sdk = require("@earendil-works/pi-coding-agent");
1021
1021
  createReadTool = sdk.createReadToolDefinition ?? sdk.createReadTool;
1022
1022
  createBashTool = sdk.createBashToolDefinition ?? sdk.createBashTool;
1023
1023
  createLsTool = sdk.createLsToolDefinition ?? sdk.createLsTool;
1024
1024
  createFindTool = sdk.createFindToolDefinition ?? sdk.createFindTool;
1025
1025
  createGrepTool = sdk.createGrepToolDefinition ?? sdk.createGrepTool;
1026
- TextComponent = require("@mariozechner/pi-tui").Text;
1026
+ TextComponent = require("@earendil-works/pi-tui").Text;
1027
1027
  } catch {
1028
1028
  return;
1029
1029
  }
@@ -1,4 +1,4 @@
1
- import { visibleWidth } from "@mariozechner/pi-tui";
1
+ import { visibleWidth } from "@earendil-works/pi-tui";
2
2
  import { describe, expect, it } from "vitest";
3
3
 
4
4
  import piPrettyExtension from "../src/index.js";