@heyhuynhgiabuu/pi-pretty 0.1.0 → 0.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 +1 -1
  2. package/src/index.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyhuynhgiabuu/pi-pretty",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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",
package/src/index.ts CHANGED
@@ -466,11 +466,11 @@ export default function piPrettyExtension(pi: any): void {
466
466
 
467
467
  try {
468
468
  const sdk = require("@mariozechner/pi-coding-agent");
469
- createReadTool = sdk.createReadTool;
470
- createBashTool = sdk.createBashTool;
471
- createLsTool = sdk.createLsTool;
472
- createFindTool = sdk.createFindTool;
473
- createGrepTool = sdk.createGrepTool;
469
+ createReadTool = sdk.createReadToolDefinition ?? sdk.createReadTool;
470
+ createBashTool = sdk.createBashToolDefinition ?? sdk.createBashTool;
471
+ createLsTool = sdk.createLsToolDefinition ?? sdk.createLsTool;
472
+ createFindTool = sdk.createFindToolDefinition ?? sdk.createFindTool;
473
+ createGrepTool = sdk.createGrepToolDefinition ?? sdk.createGrepTool;
474
474
  TextComponent = require("@mariozechner/pi-tui").Text;
475
475
  } catch {
476
476
  return;