pi-bro 0.18.1 → 0.19.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/docs/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # pi-bro docs
2
+
3
+ - [README](../README.md) — the user guide (authoritative for behavior).
4
+ - [DEVELOPMENT.md](DEVELOPMENT.md) — code map, settings and BTW continuation model, invariants, test commands.
5
+ - [TESTING.md](TESTING.md) — the manual end-to-end checklist across backends.
6
+ - [plans/](plans/README.md) — historical design notes and plans; not the current spec.
7
+ - [images/](images/) — screenshots used by the README.
8
+ - [benchmark/README.md](../benchmark/README.md) — the manual, live prompt benchmark.
@@ -0,0 +1,42 @@
1
+ # PiG compatibility
2
+
3
+ Bro uses one TypeScript package on Pi and Pi-in-Go (PiG). PiG runs Bro in a Node subprocess; it is not a Go port or a fused native extension.
4
+
5
+ ## Target and installation
6
+
7
+ PiG **0.3.0+0.87.1**, Node **>=22.19.0**. Compatibility is experimental; the checks below are not a guarantee for every PiG release or platform.
8
+
9
+ Install the PiG binary from https://github.com/MichaelKinsy/PiG/releases/tag/v0.3.0, then:
10
+
11
+ ```sh
12
+ pig install npm:pi-bro
13
+ ```
14
+
15
+ That command installs the published Bro version; these compatibility changes take effect only after a Bro release containing them. To test this checkout now, install dependencies and use `pig -e ./bro.ts`.
16
+
17
+ At initial verification, `@pi-in-go/pig@0.3.0` was not available from npm. CI therefore downloads the pinned GitHub binary and verifies its published SHA-256 checksum.
18
+
19
+ Bro follows the host's `getAgentDir()`: normally `~/.pi/agent` on Pi and `~/.pig/agent` on PiG. PiG supports `PIG_CODING_AGENT_DIR`, `PIG_HOME`, XDG configuration and explicit `PIG_USE_PI_DIRS=1` sharing. No automatic migration or copying of existing Bro settings takes place. `PI_BRO_MODEL` remains the same Bro-specific override on both hosts.
20
+
21
+ ## Known limitations
22
+
23
+ - **PiG 0.3.0 RPC does not enforce `--exclude-tools`.** Excluded tools may remain active and reach provider requests. This is not a sandbox boundary. Use an explicit `--tools` allowlist instead; do not rely on `/bro doctor` to prove exclusion. Bro does not mask this defect by falsely reporting an active tool as unavailable.
24
+ - The smoke suite retains Pi's strict exclusion assertion. The PiG lane has an explicit version-specific expected failure; a changed result fails the lane so the exception must be reviewed/removed.
25
+ - Mouse-wheel forwarding is not qualified; use keyboard scrolling.
26
+ - Remote/SSH OSC 52 clipboard forwarding is not qualified. Local clipboard behavior depends on the host and installed platform utilities.
27
+ - Windows support is not qualified by these checks.
28
+
29
+ ## Verification and release gate
30
+
31
+ ```sh
32
+ npm test
33
+ PIG_BIN=/absolute/path/to/pig sh pig-test.sh
34
+ ```
35
+
36
+ The PiG lane checks the exact binary version, real host settings isolation, advisor snapshot compaction/branch projection, and the existing fake-backend RPC smoke suite. Existing Node tests cover backend cancellation/process cleanup and modal geometry, but are not substitutes for real-host interactive tests.
37
+
38
+ CI and publishing call `.github/workflows/pig.yml`; publication requires both host lanes. A green PiG job includes the clearly printed RPC exclusion expected failure, not a claim of complete parity.
39
+
40
+ Manual macOS terminal checks confirmed help rendering/scrolling/resize, opening the BTW composer and switching `/mode`, and the advisor-steering editor displaying `Saved` after a correctly encoded Ctrl+S. Full end-to-end advisor model execution, interactive configuration persistence, clipboard, and host reload/shutdown with active backend processes still require qualification. No paid backend calls are part of CI.
41
+
42
+ Tracking: https://github.com/tranhoangnguyen03/pi-bro/issues/64 and the original loading fix https://github.com/MichaelKinsy/PiG/issues/88.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-bro",
3
- "version": "0.18.1",
3
+ "version": "0.19.1",
4
4
  "description": "An Earendil Pi extension that explains pasted text, assistant responses, local documents, public webpages, and recent session turns (as shapes) in a context-isolated window, opens a sandboxed side conversation with /bro btw, and provides a second-opinion advisor tool for executor agents.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -31,7 +31,9 @@
31
31
  "btw",
32
32
  "side-conversation",
33
33
  "advisor",
34
- "second-opinion"
34
+ "second-opinion",
35
+ "codex",
36
+ "muse"
35
37
  ],
36
38
  "files": [
37
39
  "bro.ts",
@@ -40,7 +42,8 @@
40
42
  "README.md",
41
43
  "CHANGELOG.md",
42
44
  "LICENSE",
43
- "THIRD_PARTY_NOTICES.md"
45
+ "THIRD_PARTY_NOTICES.md",
46
+ "docs/pig-compatibility.md"
44
47
  ],
45
48
  "publishConfig": {
46
49
  "access": "public"
@@ -50,7 +53,7 @@
50
53
  },
51
54
  "scripts": {
52
55
  "typecheck": "tsc --noEmit",
53
- "test": "npm run typecheck && node --test prompt.test.ts backend.test.ts claude.test.ts grok.test.ts settings.test.ts benchmark/*.test.ts && sh ./smoke-test.sh",
56
+ "test": "npm run typecheck && node --test prompt.test.ts backend.test.ts claude.test.ts grok.test.ts codex.test.ts muse.test.ts settings.test.ts show-html.test.ts smoke-rpc.test.ts benchmark/*.test.ts && sh ./smoke-test.sh",
54
57
  "benchmark:dry-run": "node benchmark/run.ts dry-run",
55
58
  "benchmark:run": "node benchmark/run.ts run",
56
59
  "benchmark:report": "node benchmark/run.ts report",