@vamsitalupula/pi-debug 2.0.0 → 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/README.md +7 -2
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# pi-debug
|
|
2
2
|
|
|
3
|
-
This is a [Pi](https://pi.dev) extension for Pi extension developers. It enables running Typescript within the Node.js context of the Pi coding agent
|
|
3
|
+
This is a [Pi](https://pi.dev) extension for Pi extension developers. It enables running Typescript within the Node.js context of the Pi coding agent. It provides 2 methods.
|
|
4
|
+
|
|
5
|
+
1. An AI facing tool "pi-debug"
|
|
6
|
+
2. A user facing slash command "/pi-debug"
|
|
4
7
|
|
|
5
8
|
<p align="center">
|
|
6
9
|
<img src="https://raw.githubusercontent.com/tanavamsikrishna/pi-debug/refs/heads/main/screenshot.png" width="500" alt="Alt text description">
|
|
@@ -16,6 +19,8 @@ pi install --local npm:@vamsitalupula/pi-debug
|
|
|
16
19
|
|
|
17
20
|
## How to use?
|
|
18
21
|
|
|
22
|
+
### Slash command
|
|
23
|
+
|
|
19
24
|
1. Create a new file by running `/pi-debug ./debug.ts` in Pi user prompt
|
|
20
25
|
2. You should see a new file called `debug.ts` created in the current folder
|
|
21
26
|
|
|
@@ -36,7 +41,7 @@ export default function (pi: ExtensionAPI, getCtx: () => ExtensionContext) {
|
|
|
36
41
|
4. The data/object returned by the `default export function` is shown as a pi notification
|
|
37
42
|
5. The package `@earendil-works/pi-coding-agent` is available in the node environment running *pi*. But if you need LSP/linting support in your editor, you need to point your editor tools to the install location of the package one way or an other. The easiest is to just run `pnpm i --save-dev @earendil-works/pi-coding-agent` in the project or local directory
|
|
38
43
|
|
|
39
|
-
|
|
44
|
+
### AI tool
|
|
40
45
|
|
|
41
46
|
`pi-debug` is also a tool the model can call. Pass the whole module, the same shape as `TEMPLATE.ts`, not a function body. It runs on the same jiti instance as `/pi-debug`, and the return value is the tool result. The tool description includes the template.
|
|
42
47
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vamsitalupula/pi-debug",
|
|
3
3
|
"repository": "github:tanavamsikrishna/pi-debug",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.9",
|
|
5
5
|
"description": "Run Typescript within the Node.js context of the Pi coding agent",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
"tsup": "^8.5.1",
|
|
35
35
|
"typescript": "^5.9.3"
|
|
36
36
|
},
|
|
37
|
-
"
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
38
40
|
"pi": {
|
|
39
41
|
"extensions": [
|
|
40
42
|
"extensions/"
|