@maxiaochao/pi-toolkit 0.6.0 → 0.6.1
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 +4 -0
- package/README.md +2 -0
- package/package.json +1 -1
- package/skills/pdlog/SKILL.md +28 -0
- package/skills/pdlog/tools/ppmd +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2026-09-22 - v0.6.1
|
|
2
|
+
|
|
3
|
+
- bundle the pdlog skill for decompressing Pudu .pdlog logs (with bundled ppmd binary)
|
|
4
|
+
|
|
1
5
|
## 2026-09-22 - v0.6.0
|
|
2
6
|
|
|
3
7
|
- bundle the show-me skill for visual explanations (derived from humanlayer/skills, MIT), invoked explicitly with /skill:show-me
|
package/README.md
CHANGED
|
@@ -81,6 +81,8 @@ Note: Chrome does not always write the `DevToolsActivePort` file (e.g. `--remote
|
|
|
81
81
|
|
|
82
82
|
The bundled `show-me` skill (derived from [humanlayer/skills](https://github.com/humanlayer/skills), MIT) explains the current topic with the smallest visual that makes the point — pseudocode, call trees, component or file trees, diffs, Mermaid, or one focused HTML artifact. It is hidden from automatic skill selection, so invoke it explicitly with `/skill:show-me`.
|
|
83
83
|
|
|
84
|
+
The bundled `pdlog` skill decompresses and reads Pudu `.pdlog` proprietary log files, which are binary gibberish when opened directly. It ships a self-contained `ppmd` decompressor (`skills/pdlog/tools/ppmd`, Linux x86-64) and triggers automatically on `.pdlog` files, Pudu logs, ppmd decompression, or logs that open as binary gibberish.
|
|
85
|
+
|
|
84
86
|
## Tiny Subagent
|
|
85
87
|
|
|
86
88
|
The tiny subagent is a separate npm package. Install it independently when you want the `tiny_subagents` tool:
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pdlog
|
|
3
|
+
description: 解压和查看 .pdlog 日志文件。触发:.pdlog 文件、普渡日志/Pudu 日志、日志打开是乱码或二进制、ppmd 解压
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# pdlog
|
|
7
|
+
|
|
8
|
+
`.pdlog` 是普渡专有压缩日志格式:`cat`/`head`/编辑器直接打开是二进制乱码——这是格式本身,不是文件损坏。先解压成纯文本再读。
|
|
9
|
+
|
|
10
|
+
## 解压
|
|
11
|
+
|
|
12
|
+
使用本 skill 目录的 `tools/ppmd`:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
tools/ppmd -d input.pdlog output.log
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- 只想预览不落盘:`tools/ppmd -d input.pdlog /dev/stdout | head -50`
|
|
19
|
+
- 完成判据:`file output.log` 显示 text,`head` 能读到可读行。输出是二进制说明输入不是 pdlog,回到格式分叉。
|
|
20
|
+
|
|
21
|
+
## 格式分叉
|
|
22
|
+
|
|
23
|
+
- `.gz` 结尾:普通 gzip,用 `zcat`/`gunzip`,不经过 ppmd。
|
|
24
|
+
- 拿不准:先 `file` 看类型。
|
|
25
|
+
|
|
26
|
+
## 远端文件
|
|
27
|
+
|
|
28
|
+
pdlog 在远端设备或机器上时,先取回本地(`adb pull` / `scp`),解压始终在本地跑。
|
|
Binary file
|