pi-bro 0.38.0 → 0.38.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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to pi-bro are documented here.
4
4
 
5
+ ## [0.38.1] - 2026-11-24
6
+
7
+ ### Maintenance
8
+
9
+ - Split Bro's six backends into separate adapters while keeping commands, settings, and execution behavior unchanged.
10
+
5
11
  ## [0.38.0] - 2026-11-24
6
12
 
7
13
  ### Highlights
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-bro",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "description": "A sidekick for you and your Pi agent: plain-language explanations, side questions, diagrams, PR review and second opinions, without cluttering the agent's context.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -80,6 +80,14 @@
80
80
  "src/modal-kit.ts",
81
81
  "src/composer-modal.ts",
82
82
  "src/backend.ts",
83
+ "src/backends/agy.ts",
84
+ "src/backends/claude.ts",
85
+ "src/backends/cli-process.ts",
86
+ "src/backends/codex.ts",
87
+ "src/backends/contract.ts",
88
+ "src/backends/grok.ts",
89
+ "src/backends/muse.ts",
90
+ "src/backends/pi.ts",
83
91
  "src/cli-auth.ts",
84
92
  "src/prompt.ts",
85
93
  "src/vendor/mermaid.min.js",
package/src/advisor.ts CHANGED
@@ -225,10 +225,6 @@ function advisorActivityPreview(label: string): string {
225
225
 
226
226
  export type AdvisorActivityCallback = (label: string, timestamp: number) => void;
227
227
 
228
- // Thin wrapper around the shared backend: advisor's stdin/stream-json transport, activity parsing,
229
- // and process lifecycle now live in backend.ts (see docs/plans/2026-09-19-bro-advisor-design.md,
230
- // "Transport" for why stdin rather than --print). This function keeps its exact existing
231
- // signature/throw contract -- it is called directly by tests and by runAdvisor below.
232
228
  export class TerminalConsultError extends Error {
233
229
  readonly status: "failure" | "cancelled" | "timeout";
234
230
  constructor(status: "failure" | "cancelled" | "timeout", message: string) {
@@ -237,6 +233,7 @@ export class TerminalConsultError extends Error {
237
233
  }
238
234
  }
239
235
 
236
+ // Adapters own the transport and activity parsing; the consultation translates terminal outcomes into errors.
240
237
  export async function runAdvisorConsultation(
241
238
  prompt: string,
242
239
  selection: BackendSelection,