@maxiaochao/pi-toolkit 0.1.8 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,4 +1,15 @@
1
- ## 2026-08-31 - v0.1.8
1
+ ## 2026-09-02 - v0.2.0
2
+
3
+ - bundle the Apache-2.0 `web-browser` skill for Chrome/Chromium CDP automation
4
+ - auto-detect Linux/macOS browsers and Windows Chrome when running under WSL
5
+ - include the skill's `ws` runtime dependency and document its release checks
6
+
7
+ ## 2026-09-02 - v0.1.9
8
+
9
+ - add the `/btw` side-chat extension
10
+ - bundle the `nightowl` theme
11
+ - select `nightowl` during npm postinstall only when no theme is configured
12
+
2
13
 
3
14
  - fix cache export branch attribution and update HTML artifact guidance
4
15
 
package/README.md CHANGED
@@ -1,7 +1,73 @@
1
1
  # pi-toolkit
2
2
 
3
- Personal pi toolkit: `/todos` todo extension + `/cache_export` interactive prompt-cache dashboard. See [AGENTS.md](./AGENTS.md) for dev/build/release rules.
3
+ Personal Pi toolkit with the `/todos`, `/btw`, and `/cache_export` extensions, bundled agent skills including Chrome/Chromium automation, and the Night Owl theme.
4
+
5
+ ## Install
6
+
7
+ Install the root package to enable the toolkit extensions globally:
4
8
 
5
9
  ```bash
6
10
  pi install npm:@maxiaochao/pi-toolkit
7
11
  ```
12
+
13
+ The package also provides the `/btw` side-chat extension, the `web-browser` skill for Chrome/Chromium CDP automation, and the `nightowl` theme. On npm installation, the postinstall hook selects `nightowl` only when no theme has been configured yet; an existing Pi theme setting is preserved.
14
+
15
+ The package postinstall hook synchronizes the bundled global instructions to:
16
+
17
+ ```text
18
+ ~/.pi/agent/AGENTS.md
19
+ ```
20
+
21
+ It also selects `nightowl` as the default theme only when `~/.pi/agent/settings.json` does not already contain a theme. To switch manually, use `/settings` or:
22
+
23
+ ```bash
24
+ pi --use-theme nightowl
25
+ ```
26
+
27
+ An installed package can expose a theme through `pi.themes`, but Pi has no package-manifest field for a default theme, so the guarded postinstall step is used for the npm install case.
28
+
29
+ When `global/AGENTS.md` changes, publish a new `@maxiaochao/pi-toolkit` version and update installed copies:
30
+
31
+ ```bash
32
+ pi update npm:@maxiaochao/pi-toolkit
33
+ ```
34
+
35
+ To synchronize the file directly from a checkout instead:
36
+
37
+ ```bash
38
+ bash scripts/install.sh
39
+ ```
40
+
41
+ The `/btw` side chat is a separate agent session. It can inspect the main conversation and repository, and its thread stays out of the main context until you close it and choose to inject a summary. Use `/btw` to open it or `/btw <question>` to ask directly.
42
+
43
+ The bundled `nightowl` theme is available to Pi through the package manifest and is selected automatically on npm installation only when no theme is already configured.
44
+
45
+ The bundled `web-browser` skill provides reusable scripts for starting Chrome/Chromium with remote debugging, navigating tabs, evaluating JavaScript, emulating devices, taking screenshots, dismissing cookie dialogs, and inspecting browser logs. It auto-detects common Chrome/Chromium installations on macOS and Linux, including Windows Chrome when Pi runs under WSL; set `BROWSER_BIN` when the binary is elsewhere.
46
+
47
+ The browser skill can be loaded explicitly with `/skill:web-browser`. Its scripts are available relative to the skill directory, for example:
48
+
49
+ ```bash
50
+ node skills/web-browser/scripts/start.js --headless
51
+ node skills/web-browser/scripts/nav.js https://example.com
52
+ ```
53
+
54
+ ## Tiny Subagent
55
+
56
+ The tiny subagent is a separate npm package. Install it independently when you want the `tiny_subagents` tool:
57
+
58
+ ```bash
59
+ pi install npm:@maxiaochao/pi-tiny-subagent
60
+ ```
61
+
62
+ It is not included in the root package's `pi.extensions` list. The two packages have independent versions, release tags, and update commands:
63
+
64
+ ```bash
65
+ pi update npm:@maxiaochao/pi-toolkit
66
+ pi update npm:@maxiaochao/pi-tiny-subagent
67
+ ```
68
+
69
+ See [packages/tiny-subagent/README.md](packages/tiny-subagent/README.md) for personas, model selection, child isolation, live transcript rendering, and diagnostics.
70
+
71
+ ## Development
72
+
73
+ Repository development and release rules are documented in [AGENTS.md](AGENTS.md).