@maxiaochao/pi-toolkit 0.7.1 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2026-09-24 - v0.7.2
2
+
3
+ - bundle the calldiff skill (copied verbatim from tanishqkancharla/calldiff, MIT, pinned to a main commit since upstream has no release tags) for call-stack diffs across git commits; the previous v0.7.1 tarball was briefly unavailable on the registry right after publish and is now served normally
4
+
1
5
  ## 2026-09-24 - v0.7.1
2
6
 
3
7
  - bundle the herdr skill (copied verbatim from herdrdev/herdr v0.9.1, Apache-2.0) for driving the Herdr terminal multiplexer from inside a pane; move the tapd CLI skill from .claude/skills into skills/ so it ships with the package
package/README.md CHANGED
@@ -89,6 +89,8 @@ The bundled `herdr` skill (copied verbatim from [herdrdev/herdr](https://github.
89
89
 
90
90
  The bundled `tapd` skill documents the third-party `tapd` CLI ([studyzy/tapd-ai-cli](https://github.com/studyzy/tapd-ai-cli)) for TAPD: requirements, defects, tasks, iterations, wikis, comments, attachments, timesheets, and workflow status maps, including the `--filter` advanced query syntax. It is the CLI's own command reference, so refresh the file with `tapd skill init` when the CLI changes.
91
91
 
92
+ The bundled `calldiff` skill (copied verbatim from [tanishqkancharla/calldiff](https://github.com/tanishqkancharla/calldiff), MIT, pinned to a `main` commit because upstream has no release tags) teaches call-stack diffs across git commits: `diff` shows which callees appeared, disappeared, or moved under an entrypoint, `tree` prints one call tree, and `reach` finds call paths between two symbols, all with `--entry`/`--file` entrypoint selection, `--locs` source locations, and `--format json` for agents.
93
+
92
94
  ## Tiny Subagent
93
95
 
94
96
  The tiny subagent is a separate npm package. Install it independently when you want the `tiny_subagents` tool:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxiaochao/pi-toolkit",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Personal pi coding agent toolkit: /todos, /btw, /cache_export extensions, browser automation, and bundled theme/skills.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tanishq Kancharla
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,19 @@
1
+ calldiff Skill
2
+
3
+ This directory is copied verbatim from the calldiff repository:
4
+ https://github.com/tanishqkancharla/calldiff
5
+ skills/calldiff/SKILL.md at commit 2086f6e4e9ed3c410bba7c94ca3dde77791b1956 (main)
6
+
7
+ The upstream repository is licensed under the MIT License. A copy of that
8
+ license is included in LICENSE.
9
+
10
+ Upstream publishes no release tags, so this file is pinned to a main commit
11
+ instead of a tag. The CLI can also write its own copy with `calldiff skills
12
+ add` (to ~/.agents/skills/calldiff/SKILL.md), but that generated file is terser
13
+ than the committed one — it leaves the --entry/--file descriptions empty and
14
+ says 22 languages — so pi-toolkit ships the committed file.
15
+
16
+ To refresh, copy skills/calldiff/SKILL.md and LICENSE from a newer upstream
17
+ commit and update the commit above. The bundled commands were smoke-tested
18
+ against calldiff 0.5.0 (`diff`, `tree`, `reach`, `--entry`, `--file`,
19
+ `--maxDepth`/`--max-depth`, `--locs`, `--format json`).
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: calldiff
3
+ description: Diff call stacks across git commits — like git diff, but for who-calls-whom. Shows which callees appeared, disappeared, or moved under an entrypoint across 23 languages (diff, tree, and reach). Use for agentic code review when call flow changed and line diffs bury the shape of the change.
4
+ requires_bin: calldiff
5
+ command: calldiff
6
+ ---
7
+
8
+ # calldiff diff
9
+
10
+ Diff call stacks between two git trees
11
+
12
+ ## Arguments
13
+
14
+ | Name | Type | Required | Description |
15
+ |------|------|----------|-------------|
16
+ | `from` | `string` | no | Before ref (default: HEAD) |
17
+ | `to` | `string` | no | After ref (default: working tree) |
18
+ | `paths` | `array` | no | Limit to these path prefixes |
19
+
20
+ ## Options
21
+
22
+ | Flag | Type | Default | Description |
23
+ |------|------|---------|-------------|
24
+ | `--entry` | `unknown` | | Entrypoint symbol(s): functionName or ClassName.method |
25
+ | `--file` | `unknown` | | Entrypoint file(s): indexed source path; expands to that file's exports |
26
+ | `--maxDepth` | `number` | `12` | Max call-tree depth |
27
+ | `--locs` | `boolean` | `false` | Show call-site source locations (file:line) |
28
+ | `--from` | `string` | | Left / "before" tree |
29
+ | `--to` | `string` | | Right / "after" tree |
30
+
31
+ ## Examples
32
+
33
+ ```sh
34
+ # HEAD vs working tree
35
+ calldiff diff
36
+
37
+ # One ref vs working tree
38
+ calldiff diff main
39
+
40
+ # Two commits / branches
41
+ calldiff diff abc123 def456
42
+
43
+ # Force entrypoints
44
+ calldiff diff main feature --entry createAgentSession
45
+
46
+ # File expands to that file's exports
47
+ calldiff diff main feature --file src/routes.ts
48
+ ```
49
+
50
+ > Semantics match git diff: no refs → HEAD vs worktree; one ref → that vs worktree; two refs → compare those trees.
51
+
52
+ ---
53
+
54
+ # calldiff reach
55
+
56
+ Find all call paths from an entrypoint to a target symbol
57
+
58
+ ## Arguments
59
+
60
+ | Name | Type | Required | Description |
61
+ |------|------|----------|-------------|
62
+ | `ref` | `string` | no | Git ref (default: working tree) |
63
+ | `paths` | `array` | no | Limit to these path prefixes |
64
+
65
+ ## Options
66
+
67
+ | Flag | Type | Default | Description |
68
+ |------|------|---------|-------------|
69
+ | `--entry` | `unknown` | | Entrypoint symbol(s): functionName or ClassName.method |
70
+ | `--file` | `unknown` | | Entrypoint file(s): indexed source path; expands to that file's exports |
71
+ | `--to` | `string` | | Target symbol to reach (functionName or ClassName.method) |
72
+ | `--maxDepth` | `number` | `12` | Max call-tree depth |
73
+ | `--locs` | `boolean` | `false` | Show call-site source locations (file:line) |
74
+
75
+ ## Examples
76
+
77
+ ```sh
78
+ # Paths in the working tree
79
+ calldiff reach --entry runCheckout --to sendEmail
80
+
81
+ # Paths at a commit, limited to a directory
82
+ calldiff reach HEAD examples/checkout --entry runCheckout --to sendEmail
83
+
84
+ # Paths from every export in a file
85
+ calldiff reach --file packages/api/src/flow.ts --to notify
86
+ ```
87
+
88
+ ---
89
+
90
+ # calldiff tree
91
+
92
+ View a call tree (no diff) for one or more entrypoints
93
+
94
+ ## Arguments
95
+
96
+ | Name | Type | Required | Description |
97
+ |------|------|----------|-------------|
98
+ | `ref` | `string` | no | Git ref (default: working tree) |
99
+ | `paths` | `array` | no | Limit to these path prefixes |
100
+
101
+ ## Options
102
+
103
+ | Flag | Type | Default | Description |
104
+ |------|------|---------|-------------|
105
+ | `--entry` | `unknown` | | Entrypoint symbol(s): functionName or ClassName.method |
106
+ | `--file` | `unknown` | | Entrypoint file(s): indexed source path; expands to that file's exports |
107
+ | `--maxDepth` | `number` | `12` | Max call-tree depth |
108
+ | `--locs` | `boolean` | `false` | Show call-site source locations (file:line) |
109
+
110
+ ## Examples
111
+
112
+ ```sh
113
+ # Tree from working tree
114
+ calldiff tree --entry createAgentSession
115
+
116
+ # Tree from a commit
117
+ calldiff tree HEAD --entry PiService.createAgentSession
118
+
119
+ # Every export in a file
120
+ calldiff tree --file packages/api/src/routes.ts
121
+ ```