pi-bro 0.30.0 → 0.32.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 +22 -0
- package/README.md +11 -7
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/docs/README.md +1 -0
- package/docs/features/btw.md +3 -2
- package/docs/grill-me.md +1 -1
- package/docs/overthink.md +48 -0
- package/docs/reference/commands.md +3 -2
- package/docs/reference/data-and-permissions.md +5 -6
- package/docs/reference/troubleshooting.md +1 -1
- package/docs/user-guide.md +1 -1
- package/package.json +8 -2
- package/src/bro.ts +68 -13
- package/src/btw.ts +51 -14
- package/src/config-navigation-ui.ts +14 -2
- package/src/config-navigation.ts +3 -2
- package/src/doctor.ts +19 -1
- package/src/explain-modal.ts +6 -1
- package/src/grill.ts +9 -3
- package/src/modal-kit.ts +7 -4
- package/src/overthink-questions-ui.ts +131 -0
- package/src/overthink-state.ts +204 -0
- package/src/overthink.ts +323 -0
- package/src/session-state.ts +91 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to pi-bro are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.32.0] - 2026-11-07
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
- BTW and Grill Me preserve completed private discussions, access choices and drafts across ordinary Pi reload/restart/resume through non-model-facing custom session entries.
|
|
10
|
+
- Simplify restores its most recent source and explanation; Show restores the last rendered result and focus. Cleared state stays cleared.
|
|
11
|
+
- Session branches inherit their prior private state but later edits remain separate. No global user memory database or automatic context injection.
|
|
12
|
+
- Added session restore validation and test coverage. Recovery still depends on Pi saving its session entries; abrupt host crashes during an active call are not guaranteed.
|
|
13
|
+
|
|
14
|
+
## [0.31.0] - 2026-11-07
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Automatic Overthink second-look notes after fully settled substantive Pi work (after retry, compaction and queued continuations), using the active model, thinking level and current session projection to allow prompt-cache reuse.
|
|
19
|
+
- `/bro overthink` private notes viewer with force retry, help, copy and session-question editing.
|
|
20
|
+
- Session-position markers label older notes OUTDATED after later work or branch movement; a generation check prevents a stale automatic-settings read from scheduling a check for newer work.
|
|
21
|
+
- One editable question-list UI for global defaults (`/bro config → Features → Overthink`) and independent per-session question snapshots. Reset global to factory and session to global; store latest notes as session-only custom entries.
|
|
22
|
+
|
|
23
|
+
### Limits
|
|
24
|
+
|
|
25
|
+
- Same-model criticism is not an independent review. Automatic checks start on; Features → Overthink can turn them off while keeping manual retry. Usage and cost are shown only when reported by the provider; high-effort reasoning can still be expensive. The second request retains Pi's context, which may include tool descriptions, but does not execute tools. Actual cache reuse and billable savings require live verification. Full TUI and PiG qualification still require real sessions.
|
|
26
|
+
|
|
5
27
|
## [0.30.0] - 2026-11-06
|
|
6
28
|
|
|
7
29
|
### Added
|
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ For a first success, type this in Pi after setting up a backend:
|
|
|
51
51
|
| `/bro show` | Draws the current session's recent conversation, if any |
|
|
52
52
|
| `/bro architecture` | Creates or refreshes `docs/architecture/` for this project |
|
|
53
53
|
| `/bro grill-me Should agents talk freely to each other?` | Questions your assumptions privately, one at a time |
|
|
54
|
+
| `/bro overthink` | Views private automatic second-look notes; Ctrl+R forces a new check |
|
|
54
55
|
| `/bro elevate Improve how we search company documents` | Find expert gaps before giving Pi a task |
|
|
55
56
|
|
|
56
57
|
File and webpage examples need your own real path or URL; see [how to explain them](docs/features/explain.md#explain-a-document). For a step-by-step first run, see [Getting started](docs/getting-started.md).
|
|
@@ -64,6 +65,7 @@ File and webpage examples need your own real path or URL; see [how to explain th
|
|
|
64
65
|
| `/bro architecture [focus]` | **[Architecture Docs](docs/features/architecture.md).** Inspects the project and writes Markdown, diagrams and an offline interactive `architecture.html` under `docs/architecture/`. Uses BTW model settings. |
|
|
65
66
|
| `/bro elevate` or **Ctrl+Shift+E** | **[Elevate](docs/elevate.md).** Discover missing expert considerations, select useful improvements, and rewrite your task without submitting it. Shares BTW backend settings. |
|
|
66
67
|
| `/bro remember-me [thought]` | **[Remember Me](docs/remember-me.md).** Privately clarify and approve short personal memories with unfoldable background. Agents can call `about_user` to read summaries and expand IDs. |
|
|
68
|
+
| `/bro overthink` | **[Overthink](docs/overthink.md).** Quietly checks meaningful work with the active Pi model, using editable global/session questions and a private notes modal. Automatic checks can be switched off in config. No separate backend. |
|
|
67
69
|
| `/bro grill-me` | **[Grill Me](docs/grill-me.md) (experimental).** A private, opinionated decision interview: light, balanced or exhaustive; one question per round; `/consolidate` drafts a brief without ending the interview; `/insert-last-message` explicitly returns the latest reply to the editor. Uses BTW model settings; read-only restrictions vary by backend. |
|
|
68
70
|
| `/bro btw` | **[Side questions](docs/features/btw.md#bro-btw-side-conversation).** A separate conversation seeded with recent context, so you can ask without interrupting the agent. ⚠️ [Full-permission mode](#what-leaves-your-machine) can edit files. |
|
|
69
71
|
| `/bro guided-review <PR>` | **[Guided Review](docs/guided-review.md).** An explanation and quality assessment of a GitHub PR, with ranked findings, source evidence and private questions. Claude, Muse, or Pi is recommended for untrusted PRs. |
|
|
@@ -77,7 +79,7 @@ Guided Review has its own [guide](docs/guided-review.md).
|
|
|
77
79
|
|
|
78
80
|
## Requirements
|
|
79
81
|
|
|
80
|
-
- Pi `>=1.3.0` and Node.js `>=22.19.0`.
|
|
82
|
+
- Pi `>=1.3.0` and Node.js `>=22.19.0`. Overthink always uses the host Pi model, independently of Bro's backend configuration.
|
|
81
83
|
- macOS or Linux. Windows is untested; there, cancelling stops only the
|
|
82
84
|
backend's direct process, not anything it started.
|
|
83
85
|
- At least one backend on your `PATH`, signed in once from your terminal, **or the built-in Pi backend**. You only need the one you use:
|
|
@@ -103,15 +105,18 @@ which may keep it under their own policies. Paths below are under
|
|
|
103
105
|
|
|
104
106
|
| Feature | What is sent | What Bro keeps on disk |
|
|
105
107
|
| --- | --- | --- |
|
|
106
|
-
| Explain | The agent's last reply, your pasted text, or text extracted from your file or webpage, plus your preferences |
|
|
108
|
+
| Explain | The agent's last reply, your pasted text, or text extracted from your file or webpage, plus your preferences | Last result as a private Pi session entry |
|
|
107
109
|
| Architecture Docs | Repository source, existing architecture docs, focus and preferences; only selected backend can see snapshot files | Generated Markdown, JSON graph and offline HTML in `docs/architecture/`; temporary inspection copy is removed |
|
|
108
|
-
| Show | User and assistant text from recent turns (no tool calls, tool results, reasoning or images), plus your preferences |
|
|
109
|
-
| Side questions | Your questions and up to the last 8 turns of conversation text, plus your preferences |
|
|
110
|
-
| Grill Me | Topic, interview turns, up to the last 8 main-session text turns and preferences; any workspace files the selected inspector reads |
|
|
110
|
+
| Show | User and assistant text from recent turns (no tool calls, tool results, reasoning or images), plus your preferences | Last result in the private Pi session, plus temporary diagram pages in `pi-bro-<uid>/` |
|
|
111
|
+
| Side questions | Your questions and up to the last 8 turns of conversation text, plus your preferences | Private Pi session entries with completed turns, mode and draft |
|
|
112
|
+
| Grill Me | Topic, interview turns, up to the last 8 main-session text turns and preferences; any workspace files the selected inspector reads | Private Pi session entries with the interview and brief |
|
|
113
|
+
| Overthink | Current session projection, including tool evidence, plus private user-editable questions, to the active Pi provider | Global questions in `bro-overthink-defaults.json`; per-session questions and latest private note in Pi session custom entries |
|
|
111
114
|
| Elevate | Your objective, selected findings, all current-branch user/assistant text; Full also includes tool-call arguments and text results, and preferences | Nothing; the workflow stays in memory |
|
|
112
115
|
| Guided Review | The PR description and diff, the files the backend reads, your questions, plus your preferences | Reviews and captured source in `bro-reviews/`, with no automatic cleanup |
|
|
113
116
|
| Advisor | The agent's system instructions, tool list and whole conversation, including tool calls and results (reasoning and images omitted), plus your steering | Steering in `bro-advisor.md` and the session file |
|
|
114
117
|
|
|
118
|
+
Session-scoped Bro entries live **inside Pi's session file**. They stay out of the model's conversation, but are not secret from someone who can read, back up, export, or share that file. Check the session content before sharing it; this feature does not encrypt or redact exports.
|
|
119
|
+
|
|
115
120
|
`/bro url` also connects straight to the website, which sees your IP address.
|
|
116
121
|
Bro runs each CLI as you, with your environment. It never reads or copies an
|
|
117
122
|
external CLI's provider credentials, but a CLI signs in its own way, which can
|
|
@@ -145,8 +150,7 @@ and [Privacy and safety](docs/reference/data-and-permissions.md#privacy-and-safe
|
|
|
145
150
|
- No fallback: if the chosen backend, model or effort fails, Bro shows that
|
|
146
151
|
backend's error instead of switching. → Run `/bro doctor`.
|
|
147
152
|
- Elevate runs fresh restricted calls through the BTW model setting. Restricted does not always mean sandboxed; see [access and retention](docs/reference/data-and-permissions.md). The shortcut may not work in all terminals: use `/bro elevate` instead.
|
|
148
|
-
- BTW
|
|
149
|
-
reload or restart.
|
|
153
|
+
- BTW, Grill Me and the latest explanation/Show result use private session entries; they survive normal Pi reload/resume. A new session starts fresh and later fork changes stay separate. Abrupt crashes during active calls are not guaranteed.
|
|
150
154
|
- Guided Review runs in local interactive Pi only and does not post to
|
|
151
155
|
GitHub.
|
|
152
156
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -26,6 +26,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
26
26
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
27
|
SOFTWARE.
|
|
28
28
|
|
|
29
|
+
## pi-heads-up
|
|
30
|
+
|
|
31
|
+
The automatic same-model follow-up request and private note UI in Overthink are adapted from
|
|
32
|
+
[pi-heads-up](https://github.com/Pringled/pi-extensions/tree/main/packages/pi-heads-up),
|
|
33
|
+
copyright (c) 2026 Thomas van Dongen, licensed under the MIT License:
|
|
34
|
+
|
|
35
|
+
MIT License
|
|
36
|
+
|
|
37
|
+
Copyright (c) 2026 Thomas van Dongen
|
|
38
|
+
|
|
39
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
40
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
41
|
+
in the Software without restriction, including without limitation the rights
|
|
42
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
44
|
+
furnished to do so, subject to the following conditions:
|
|
45
|
+
|
|
46
|
+
The above copyright notice and this permission notice shall be included in all
|
|
47
|
+
copies or substantial portions of the Software.
|
|
48
|
+
|
|
49
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
50
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
51
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
52
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
53
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
54
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
55
|
+
SOFTWARE.
|
|
56
|
+
|
|
29
57
|
## Speak like you eat
|
|
30
58
|
|
|
31
59
|
The prompt benchmark fixtures and mechanical checks are adapted from
|
package/docs/README.md
CHANGED
|
@@ -15,6 +15,7 @@ Start with what you want to do. The [README](../README.md) explains the product,
|
|
|
15
15
|
- [Document a repository's architecture](features/architecture.md) — create or refresh Markdown, diagrams and an offline HTML map.
|
|
16
16
|
- [Ask a private side question](features/btw.md#bro-btw-side-conversation) — BTW.
|
|
17
17
|
- [Remember personal context for agents](remember-me.md) — approved short memories, expandable background and the read-only `about_user` tool.
|
|
18
|
+
- [Review work quietly with Overthink](overthink.md) — automatic same-model second look with editable session questions.
|
|
18
19
|
- [Get grilled on a decision](grill-me.md) — one question at a time in a private modal, then copy a decision brief.
|
|
19
20
|
- [Improve a request before sending it](elevate.md) — Elevate: discover expert gaps, choose improvements, rewrite the task.
|
|
20
21
|
- [Investigate a PR](guided-review.md) — Guided Review.
|
package/docs/features/btw.md
CHANGED
|
@@ -46,6 +46,7 @@ asked in.
|
|
|
46
46
|
mode.
|
|
47
47
|
- A turn is capped at 2 minutes in conversation-only mode and 10 minutes in
|
|
48
48
|
full permission mode.
|
|
49
|
-
- Bro
|
|
50
|
-
|
|
49
|
+
- Bro saves its completed thread, mode and draft as private Pi session entries.
|
|
50
|
+
Reloading or continuing the same session restores them. `/tree` restores the selected branch's state, and an aborted reply is discarded rather than saved as `…`. Reopening unchanged state adds no new disk entry. A new session starts fresh;
|
|
51
|
+
a fork initially inherits the shared history then changes independently. Changing the BTW backend starts a fresh
|
|
51
52
|
thread; native session IDs never cross backends.
|
package/docs/grill-me.md
CHANGED
|
@@ -53,7 +53,7 @@ Grill Me uses the **BTW model/backend/effort** selection from `/bro config`, but
|
|
|
53
53
|
- Full access can read, edit and execute commands. Bro instructs the model not to make changes, but cannot enforce that instruction. There is no automatic escalation.
|
|
54
54
|
- Each turn makes a fresh backend call replaying the complete interview. Long interviews cost more and may exceed context limits; there is no hidden truncation or fallback.
|
|
55
55
|
- The provider receives your topic, interview history, Bro preferences and up to eight recent main-session user/assistant text turns (40,000 characters). Captured context excludes tool calls/results, hidden reasoning and images. Backend tools can inspect additional workspace content.
|
|
56
|
-
- Bro
|
|
56
|
+
- Bro stores completed interview turns, depth, access choice and drafts in private Pi session entries. The current Pi session restores them after reload or resume; a new session starts fresh, and forks diverge after inheriting earlier choices. Backend/provider retention is separate; see [backend retention](reference/data-and-permissions.md#backends-access-and-retention).
|
|
57
57
|
- Closing discards partial output, preserves completed replies, and restores cancelled input unless a newer draft exists. Retry preserves the previous reply until replacement succeeds. Cancellation cannot undo backend changes; descendant cleanup on Windows and abrupt host shutdown are not guaranteed.
|
|
58
58
|
|
|
59
59
|
## Comparison
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Overthink — private second look
|
|
2
|
+
|
|
3
|
+
Overthink gives Pi's work a small, skeptical second pass. It checks the direction, the assumptions, the risks and the next move, without making a new agent or interrupting the original conversation. It is inspired by [pi-heads-up](https://github.com/Pringled/pi-extensions/tree/main/packages/pi-heads-up).
|
|
4
|
+
|
|
5
|
+
## Normal use
|
|
6
|
+
|
|
7
|
+
With **automatic checks on** (the factory default), after a **fully settled substantial task** (currently at least three tool results across the run), Overthink sends one extra private assessment to the **same active Pi model, at the same thinking level**. A short note appears above the input only if there is something material to flag. If the reply already covered the issue, or there is nothing important to add, Overthink stays quiet. A question-only turn is not enough to trigger a check.
|
|
8
|
+
|
|
9
|
+
Run `/bro overthink` to **view** the latest assessment. Opening the modal makes **no model request**. The notes never enter Pi's user/assistant conversation and do not direct the agent to perform work.
|
|
10
|
+
|
|
11
|
+
In the modal:
|
|
12
|
+
|
|
13
|
+
- **Ctrl+R** — force a fresh assessment (also works for smaller tasks). A check uses the **current** session context.
|
|
14
|
+
- **Ctrl+E** — edit the questions for **this Pi session**.
|
|
15
|
+
- **?** — show or hide help.
|
|
16
|
+
- **Ctrl+C** — copy the latest findings.
|
|
17
|
+
- **Esc** — close or leave Help.
|
|
18
|
+
- **↑/↓** — scroll.
|
|
19
|
+
|
|
20
|
+
If the last assessment found nothing, the modal says so. The note records the model-relevant session entry it assessed. When a later task (even a trivial turn), compaction, context edit, or branch move changes that position, the viewer explicitly marks the old note **OUTDATED**. Older notes without position metadata are marked **source position not recorded**. Editing questions also marks an existing note as using earlier questions.
|
|
21
|
+
|
|
22
|
+
## Question editor
|
|
23
|
+
|
|
24
|
+
The same ordered, editable list is used in both places:
|
|
25
|
+
|
|
26
|
+
- **Global defaults:** `/bro config → Features → Overthink → Default questions`.
|
|
27
|
+
- **Automatic checks:** `/bro config → Features → Overthink → Automatic checks` toggles the global on/off switch. It starts **On**. Turning it off does not delete questions or notes; the viewer and manual **Ctrl+R** still work.
|
|
28
|
+
- **Session questions:** `/bro overthink`, then **Ctrl+E**.
|
|
29
|
+
|
|
30
|
+
Use **↑/↓** to choose an entry; **Enter** to edit; **Ctrl+N** to add; **Ctrl+X** to delete; **Alt+↑/↓** to reorder; **Ctrl+S** to save; **Esc** to cancel. Saving an empty list disables checks. Unsaved changes are protected by a second-Esc warning.
|
|
31
|
+
|
|
32
|
+
**Ctrl+D** twice resets the editor draft. In the global editor it restores Bro's factory questions; in the session editor it restores the **current global defaults**. Press Ctrl+S to save that reset. A new session inherits the current global defaults once and can then be edited independently. Existing sessions do not change when the global defaults are updated.
|
|
33
|
+
|
|
34
|
+
## Model, cache and privacy
|
|
35
|
+
|
|
36
|
+
Overthink **never** uses the BTW or Bro backend/model setting. It calls Pi's current `modelRegistry.streamSimple` using `buildSessionProjection()` plus a single appended private review instruction. It uses the active physical session model and reasoning level, makes **one call for all questions**, **never executes tools**, and does not add the assessment to the main model context. The request may still contain Pi's tool descriptions as part of the original context; the prompt tells the model to respond in text and not call tools. An unexpected tool-use response is treated as a failed check, not executed. The call sends the session context (including tool evidence exposed by Pi's projection) to that model's provider, under the provider's data policy.
|
|
37
|
+
|
|
38
|
+
This largely preserves the request prefix and **can** reuse provider prompt-cache input. The benefit varies by provider, model, elapsed time, tool/context changes, other extensions' context hooks, and prompt-cache policy. It does not replicate every live Pi context modification. In Pi 1.3 and 1.5, `context_with_system` can observe a prepared context just before a provider call, while `before_provider_request` can observe a provider-specific payload; neither provides a portable, complete, settled-session request that can simply be appended and replayed through `streamSimple`. A recorded pre-call context also lacks the final agent response that Overthink needs to review. Bro therefore keeps the explicit projection path until a real provider-side comparison shows a safe improvement. **A cached prefix is not free:** high thinking effort can add substantial reasoning tokens on top of the visible-output limit, and both output and reasoning can cost money. The viewer shows *provider-reported* input, cache-read, cache-write, output and reasoning tokens when available. It labels USD cost separately as **estimated cost** from Pi's model price table, not a provider-billed amount; subscription or OAuth users may pay differently. A reported cache-read value of **0** could mean no hit **or unsupported caching**; it is not proof that caching works. Some providers report no usage fields. Check actual billed cost before treating Overthink as cheap.
|
|
39
|
+
|
|
40
|
+
Overthink stores editable global defaults in `getAgentDir()/bro-overthink-defaults.json` and session questions plus the **latest** private check in Pi session `custom` entries (`bro-overthink`). Those entries are outside LLM prompts. Session forks inherit their branch's last state; later edits are independent. The viewer resolves only the **latest** note. Pi stores session custom entries by appending, so **each completed check adds another entry to the session file**, even though Bro does not provide a history browser or archive. This is a deliberate reuse of Pi's branch-aware persistence, not a claim that only one physical record exists. Keep this storage growth in mind for long sessions. It does not write to your project files.
|
|
41
|
+
|
|
42
|
+
## Limits and verification
|
|
43
|
+
|
|
44
|
+
- The second look is self-criticism by the **same** model; it is not an independent external review. Use `bro_advisor` when a genuinely separate view matters.
|
|
45
|
+
- An automatic check can fail without an on-screen error; it must not disturb the main run. Force retry in the modal to see the error.
|
|
46
|
+
- Automatic work is triggered at Pi's `agent_settled` lifecycle event (supported from Pi 1.3), not `agent_end`. The earlier event collects tool-use evidence; only a normal final settlement, without queued messages, may start the check. A new agent turn, model change, question edit or session navigation cancels or invalidates stale checks. A returned note is not proof that every listed concern is true.
|
|
47
|
+
- Running Heads-up and Overthink together can cause **two extra calls** after a substantive turn. Disable one if that cost is not wanted.
|
|
48
|
+
- Host events and cache accounting vary. See [manual qualification](TESTING.md) before claiming live TUI, PiG or cache-cost behavior.
|
|
@@ -20,7 +20,7 @@ text directly captures a new source the same way.
|
|
|
20
20
|
|
|
21
21
|
## Default command suggestions
|
|
22
22
|
|
|
23
|
-
Typing `/bro ` displays
|
|
23
|
+
Typing `/bro ` displays ten task-level suggestions: `simplify`, `show`, `btw`, `guided-review`, `architecture`, `elevate`, `grill-me`, `remember-me`, `overthink`, and `config`. Every other documented command remains callable and discoverable by typing its prefix (e.g., `/bro doc`).
|
|
24
24
|
|
|
25
25
|
## Commands
|
|
26
26
|
|
|
@@ -37,11 +37,12 @@ Typing `/bro ` displays nine task-level suggestions: `simplify`, `show`, `btw`,
|
|
|
37
37
|
| `/bro doctor` | Check Bro's settings, preferences, and each selected backend, with the effective backend/model/effort per feature. |
|
|
38
38
|
| `/bro mode [brief\|balanced\|faithful]` | View or choose the explanation mode. |
|
|
39
39
|
| `/bro preferences` | View or edit what Bro knows about you and how you like answers; see [Preferences](settings.md#preferences). |
|
|
40
|
-
| `/bro config` | Open Global (defaults, preferences and Doctor) or Features (per-feature overrides, BTW inheritance and Advisor steering). |
|
|
40
|
+
| `/bro config` | Open Global (defaults, preferences and Doctor) or Features (per-feature overrides, BTW inheritance, Overthink automatic checks/default questions and Advisor steering). |
|
|
41
41
|
| `/bro architecture [focus]` | Read the current project and create or refresh `docs/architecture/` with Markdown, an editable graph and offline HTML. Inherits BTW backend settings. [Guide](../features/architecture.md). |
|
|
42
42
|
| `/bro guided-review <PR number or URL>` | Automatically explain and assess a captured PR in local Pi, with source evidence and optional private questions. Opening the same PR restores its saved review. |
|
|
43
43
|
| `/bro guided-review` | List saved reviews; `resume` is an alias. |
|
|
44
44
|
| `/bro remember-me [thought]` | Start a private memory-writing conversation, browse and expand memories, and approve saves explicitly. [Guide](../remember-me.md). |
|
|
45
|
+
| `/bro overthink` | View the latest private automatic second-look notes, without a model call. Ctrl+R retry, Ctrl+E edit session questions, ? help, Ctrl+C copy. [Guide](../overthink.md). |
|
|
45
46
|
| `/bro grill-me [topic]` | Private one-question-at-a-time decision interview. Supply a topic to start fresh; omit it to resume. `/consolidate` drafts a brief; `/insert-last-message` inserts explicitly without sending. `/help` lists modal controls. [Guide](../grill-me.md). |
|
|
46
47
|
| `/bro elevate [request]` | Improve an assignment before execution. Discover up to five gaps, choose useful findings, and insert a revised request without submitting it. **Ctrl+Shift+E** can use your unsent draft. See [Elevate](../elevate.md). |
|
|
47
48
|
| `/bro btw [question]` | Open a side conversation in a modal, seeded with recent main-session context. Starts conversation-only; type `/mode` inside to toggle full permission (read and edit the workspace) without losing the thread. |
|
|
@@ -94,6 +94,8 @@ See [feature guide](../features/architecture.md).
|
|
|
94
94
|
|
|
95
95
|
## Privacy and safety
|
|
96
96
|
|
|
97
|
+
- **Overthink requests:** after a substantive Pi turn, Bro makes one additional provider call using Pi's active model and current session conversation projection (including exposed tool evidence), appending the current session's questions. Overthink never executes tool calls. It may still send tool descriptions copied from Pi's existing context to support cache reuse; a tool-use response is rejected without executing the tool. The provider may retain input under its policy. Results and questions are stored in private Pi session custom entries, not LLM turns; global questions use `bro-overthink-defaults.json` in the agent home. This cannot promise a cache hit or fixed incremental cost. Features → Overthink has an on/off switch (on by default). The viewer displays provider-reported input/cache-read/cache-write/output/reasoning tokens and USD cost when available; a reported cache-read value of zero may mean either a cache miss or unsupported caching. See [Overthink](../overthink.md).
|
|
98
|
+
|
|
97
99
|
- **External requests**: Bro sends the latest completed assistant response,
|
|
98
100
|
pasted text, extracted document text, extracted webpage text, or recent
|
|
99
101
|
session conversation text (tool calls, tool results, reasoning, and images
|
|
@@ -124,12 +126,9 @@ See [feature guide](../features/architecture.md).
|
|
|
124
126
|
reaches the main editor only through `/insert` or `/insert-all`, and advisor
|
|
125
127
|
results appear as normal tool results in the executor's transcript.
|
|
126
128
|
- **Saved reviews**: Guided Review records, questions, drafts and captured Git source persist under the host's `getAgentDir()/bro-reviews/`. No automatic cleanup or sync is provided; see [storage and removal](../guided-review.md#access-privacy-and-storage).
|
|
127
|
-
- **
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Standing advisor priorities are stored in `~/.pi/agent/bro-advisor.md`, and
|
|
131
|
-
the session steering brief is stored as session-scoped extension data
|
|
132
|
-
(`bro-advisor-steering`) in the session file.
|
|
129
|
+
- **Private session continuity**: completed BTW and Grill Me turns, modes, drafts, the latest Simplify state and the last Show result are saved as Pi `custom` entries inside the current session file. They survive normal reload/restart and are never added to the main model or Advisor snapshot. A fork initially inherits earlier entries; later updates stay on its own branch. This is local disk storage, not a global memory store or an abrupt-crash guarantee. Backend-native sessions may persist independently.
|
|
130
|
+
Standing Advisor priorities are stored in `~/.pi/agent/bro-advisor.md`, and
|
|
131
|
+
the session steering brief uses another `custom` entry (`bro-advisor-steering`). Session entries remain readable to anyone with the session file; export/sharing may include them. The private boundary is model-context isolation, not encrypted storage or export redaction.
|
|
133
132
|
- **File safety**: `/bro file` reads only regular files whose resolved path is
|
|
134
133
|
inside Pi's current workspace, including after resolving symlinks. Bro's
|
|
135
134
|
extractor does not modify them.
|
|
@@ -43,7 +43,7 @@ tool before giving it to Bro.
|
|
|
43
43
|
- Direct webpage fetching does not currently use `HTTP_PROXY`, `HTTPS_PROXY`,
|
|
44
44
|
or other proxy environment variables.
|
|
45
45
|
- `/bro elevate` is pre-execution only. It does not validate expert claims, run source research or keep a persistent thread. Invalid discovery JSON can be retried with the [Retry] button; if it recurs, choose another BTW backend/model in `/bro config`. See [Elevate](../elevate.md).
|
|
46
|
-
- `/bro btw` threads are memory-only
|
|
46
|
+
- `/bro btw` threads are saved in the Pi session file and restored on reload/restart. With the Pi backend, the native side session is memory-only, so the first turn after a restart reseeds it from the saved transcript and shows an expiry notice.
|
|
47
47
|
- The Agy advisor requires Agy CLI `>=1.1.15`.
|
|
48
48
|
- Show captures only the conversation text of what already happened in the
|
|
49
49
|
current session — the last few turns' user and assistant messages, with
|
package/docs/user-guide.md
CHANGED
|
@@ -166,7 +166,7 @@ See [Troubleshooting and current limits](reference/troubleshooting.md#troublesho
|
|
|
166
166
|
|
|
167
167
|
## Simplify modal
|
|
168
168
|
|
|
169
|
-
`/bro` opens Simplify and explains the latest completed assistant reply. `/bro simplify` returns to the most recent Simplify screen without another model request. Inside, `/simplify`, `/text <text>`, `/file <path>` and `/url <url>` produce one explanation at a time; `/copy` copies the answer, `/clear` clears it, and `/help` shows controls. Press **M** with an empty composer to change the explanation mode and rerun; **R** retries. The saved default mode remains unchanged. The
|
|
169
|
+
`/bro` opens Simplify and explains the latest completed assistant reply. `/bro simplify` returns to the most recent Simplify screen without another model request. Inside, `/simplify`, `/text <text>`, `/file <path>` and `/url <url>` produce one explanation at a time; `/copy` copies the answer, `/clear` clears it, and `/help` shows controls. Press **M** with an empty composer to change the explanation mode and rerun; **R** retries. The saved default mode remains unchanged. The latest result is preserved in private Pi session entries across reload/restart and stays off the main model's context. Old `/bro text|file|url|open` forms remain callable for compatibility.
|
|
170
170
|
|
|
171
171
|
## Bro command discovery and Config navigation
|
|
172
172
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-bro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
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",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"show",
|
|
31
31
|
"btw",
|
|
32
32
|
"side-conversation",
|
|
33
|
+
"overthink",
|
|
33
34
|
"advisor",
|
|
34
35
|
"second-opinion",
|
|
35
36
|
"codex",
|
|
@@ -51,12 +52,16 @@
|
|
|
51
52
|
"src/elevate-engine.ts",
|
|
52
53
|
"src/grill.ts",
|
|
53
54
|
"src/grill-engine.ts",
|
|
55
|
+
"src/overthink.ts",
|
|
56
|
+
"src/overthink-state.ts",
|
|
57
|
+
"src/overthink-questions-ui.ts",
|
|
54
58
|
"src/remember-store.ts",
|
|
55
59
|
"src/remember-engine.ts",
|
|
56
60
|
"src/remember-tool.ts",
|
|
57
61
|
"src/remember.ts",
|
|
58
62
|
"src/simplify-engine.ts",
|
|
59
63
|
"src/simplify-ui.ts",
|
|
64
|
+
"src/session-state.ts",
|
|
60
65
|
"src/explain-modal.ts",
|
|
61
66
|
"src/review.ts",
|
|
62
67
|
"src/review-source.ts",
|
|
@@ -84,6 +89,7 @@
|
|
|
84
89
|
"docs/guided-review.md",
|
|
85
90
|
"docs/elevate.md",
|
|
86
91
|
"docs/grill-me.md",
|
|
92
|
+
"docs/overthink.md",
|
|
87
93
|
"docs/remember-me.md",
|
|
88
94
|
"docs/examples.md",
|
|
89
95
|
"docs/features",
|
|
@@ -99,7 +105,7 @@
|
|
|
99
105
|
"scripts": {
|
|
100
106
|
"docs:check": "node scripts/check-docs.mjs && node --test test/docs-quality.test.mjs",
|
|
101
107
|
"typecheck": "tsc --noEmit",
|
|
102
|
-
"test": "npm run typecheck && npm run docs:check && node .github/scripts/release-utils.mjs selftest && node --test test/architecture.test.mjs test/architecture-review.test.mjs test/architecture-controller.test.mjs test/elevate-docs.test.mjs test/elevate.test.ts test/simplify.test.ts test/simplify-modal.test.mjs test/grill.test.ts test/config-navigation.test.ts test/config-navigation-modal.test.mjs test/remember.test.ts test/remember-modal.test.mjs test/review-ux.test.mjs test/review-doctor.test.mjs test/review-versions.test.mjs test/review-regeneration.test.mjs test/review-modal.test.mjs test/review.test.ts test/review-ui.test.mjs test/review-session.test.mjs test/helpers.test.mjs test/prompt.test.ts test/backend.test.ts test/claude.test.ts test/grok.test.ts test/codex.test.ts test/muse.test.ts test/settings.test.ts test/sources.test.ts test/release.test.ts test/show-html.test.ts test/smoke-rpc.test.ts test/ui-capabilities.test.ts test/modal-contract.test.mjs benchmark/*.test.ts && sh ./test/smoke-test.sh",
|
|
108
|
+
"test": "npm run typecheck && npm run docs:check && node .github/scripts/release-utils.mjs selftest && node --test test/architecture.test.mjs test/architecture-review.test.mjs test/architecture-controller.test.mjs test/elevate-docs.test.mjs test/elevate.test.ts test/overthink.test.ts test/simplify.test.ts test/simplify-modal.test.mjs test/session-state.test.ts test/session-lifecycle.test.mjs test/grill.test.ts test/config-navigation.test.ts test/config-navigation-modal.test.mjs test/remember.test.ts test/remember-modal.test.mjs test/review-ux.test.mjs test/review-doctor.test.mjs test/review-versions.test.mjs test/review-regeneration.test.mjs test/review-modal.test.mjs test/review.test.ts test/review-ui.test.mjs test/review-session.test.mjs test/helpers.test.mjs test/prompt.test.ts test/backend.test.ts test/claude.test.ts test/grok.test.ts test/codex.test.ts test/muse.test.ts test/settings.test.ts test/sources.test.ts test/release.test.ts test/show-html.test.ts test/smoke-rpc.test.ts test/ui-capabilities.test.ts test/modal-contract.test.mjs benchmark/*.test.ts && sh ./test/smoke-test.sh",
|
|
103
109
|
"benchmark:dry-run": "node benchmark/run.ts dry-run",
|
|
104
110
|
"benchmark:run": "node benchmark/run.ts run",
|
|
105
111
|
"benchmark:report": "node benchmark/run.ts report",
|
package/src/bro.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
1
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { ADVISOR_STEERING_FILE, ADVISOR_TOOL_NAME, registerAdvisorTool } from "./advisor.ts";
|
|
3
3
|
import {
|
|
4
4
|
type BtwThread,
|
|
@@ -12,6 +12,7 @@ import { setPiHostContext } from "./backend.ts";
|
|
|
12
12
|
import { openElevateModal } from "./elevate.ts";
|
|
13
13
|
import { openArchitectureDocs } from "./architecture.ts";
|
|
14
14
|
import { openGrillModal } from "./grill.ts";
|
|
15
|
+
import { registerOverthink } from "./overthink.ts";
|
|
15
16
|
import { openRememberModal } from "./remember.ts";
|
|
16
17
|
import { openSimplifyWorkflow, type SimplifyState } from "./simplify-ui.ts";
|
|
17
18
|
import { registerAboutUserTool } from "./remember-tool.ts";
|
|
@@ -49,6 +50,7 @@ import {
|
|
|
49
50
|
} from "./sources.ts";
|
|
50
51
|
import { hasBroCustomUi } from "./ui-capabilities.ts";
|
|
51
52
|
import { errorMessage, unquote, withDoctor } from "./util.ts";
|
|
53
|
+
import { BTW_SESSION_ENTRY, GRILL_SESSION_ENTRY, SIMPLIFY_SESSION_ENTRY, LAST_RESULT_SESSION_ENTRY, restorePrivateBroState, privateSessionEntrySnapshots } from "./session-state.ts";
|
|
52
54
|
|
|
53
55
|
export * from "./util.ts";
|
|
54
56
|
export * from "./ui-capabilities.ts";
|
|
@@ -68,6 +70,9 @@ export * from "./remember-engine.ts";
|
|
|
68
70
|
export * from "./explain-modal.ts";
|
|
69
71
|
export * from "./simplify-engine.ts";
|
|
70
72
|
export * from "./simplify-ui.ts";
|
|
73
|
+
export * from "./overthink-state.ts";
|
|
74
|
+
export * from "./overthink.ts";
|
|
75
|
+
export * from "./session-state.ts";
|
|
71
76
|
|
|
72
77
|
const COMMANDS = [
|
|
73
78
|
{ value: "architecture", label: "architecture", description: "Document this repository in docs/architecture/ with diagrams and an offline map" },
|
|
@@ -85,6 +90,7 @@ const COMMANDS = [
|
|
|
85
90
|
{ value: "elevate", label: "elevate", description: "Discover missing expert considerations, then improve a request" },
|
|
86
91
|
{ value: "remember-me", label: "remember-me", description: "Help write and review personal memories; agents can unfold them on demand" },
|
|
87
92
|
{ value: "grill-me", label: "grill-me", description: "A private, one-question-at-a-time decision interview" },
|
|
93
|
+
{ value: "overthink", label: "overthink", description: "View private automatic second-look notes and session questions" },
|
|
88
94
|
{ value: "config", label: "config", description: "Global defaults, diagnostics and feature settings" },
|
|
89
95
|
{ value: "advisor", label: "advisor", description: "Check whether the executor's advisor tool is available right now" },
|
|
90
96
|
{ value: "advisor-steer", label: "advisor-steer", description: "View, edit, save, or clear the advisor's persistent steering brief" },
|
|
@@ -93,7 +99,7 @@ const COMMANDS = [
|
|
|
93
99
|
const KNOWN_ACTIONS = new Set(COMMANDS.map((command) => command.value));
|
|
94
100
|
/** Only capability-level commands appear by default; all existing commands remain discoverable by prefix. */
|
|
95
101
|
export const FEATURED_BRO_COMMANDS = [
|
|
96
|
-
"simplify","show","btw","guided-review","architecture","elevate","grill-me","remember-me","config",
|
|
102
|
+
"simplify","show","btw","guided-review","architecture","elevate","grill-me","remember-me","overthink","config",
|
|
97
103
|
] as const;
|
|
98
104
|
const FEATURED_COMMANDS = new Set<string>(FEATURED_BRO_COMMANDS);
|
|
99
105
|
|
|
@@ -103,24 +109,58 @@ export default async function bro(pi: ExtensionAPI) {
|
|
|
103
109
|
let lastShowSteering: string | undefined;
|
|
104
110
|
let btwThread: BtwThread | undefined;
|
|
105
111
|
let grillThread: GrillThread | undefined;
|
|
112
|
+
let savedSnapshots = new Map<string, string>();
|
|
113
|
+
// Pi custom entries are append-only. Save a new snapshot only if its content changed.
|
|
114
|
+
// Reset the comparison on /tree: a new branch must never inherit the old branch's state.
|
|
115
|
+
const appendChanged = (type: string, value: unknown) => {
|
|
116
|
+
const data = structuredClone(value);
|
|
117
|
+
const serialized = JSON.stringify(data);
|
|
118
|
+
if (savedSnapshots.get(type) === serialized) return;
|
|
119
|
+
pi.appendEntry(type, data);
|
|
120
|
+
savedSnapshots.set(type, serialized);
|
|
121
|
+
};
|
|
106
122
|
const remember = (result: ModalResult, showSteering?: string) => {
|
|
107
123
|
if (result.source) {
|
|
108
124
|
lastResult = result;
|
|
109
125
|
lastShowSteering = showSteering;
|
|
126
|
+
appendChanged(LAST_RESULT_SESSION_ENTRY, { result, steering: showSteering });
|
|
110
127
|
}
|
|
111
128
|
};
|
|
129
|
+
const saveSimplify = () => {
|
|
130
|
+
if (!savedSnapshots.has(SIMPLIFY_SESSION_ENTRY) && !simplifyState.result && !simplifyState.draft) return;
|
|
131
|
+
appendChanged(SIMPLIFY_SESSION_ENTRY, { state: simplifyState });
|
|
132
|
+
};
|
|
133
|
+
const saveBtw = () => {
|
|
134
|
+
if (!btwThread) return;
|
|
135
|
+
// Visiting an empty BTW modal does not need a disk entry.
|
|
136
|
+
if (!savedSnapshots.has(BTW_SESSION_ENTRY) &&
|
|
137
|
+
!btwThread.turns.length && !btwThread.draft && !btwThread.full) return;
|
|
138
|
+
appendChanged(BTW_SESSION_ENTRY, { thread: btwThread });
|
|
139
|
+
};
|
|
140
|
+
const saveGrill = () => {
|
|
141
|
+
if (!grillThread) return;
|
|
142
|
+
if (!savedSnapshots.has(GRILL_SESSION_ENTRY) &&
|
|
143
|
+
!grillThread.topic && !grillThread.turns.length && !grillThread.draft) return;
|
|
144
|
+
appendChanged(GRILL_SESSION_ENTRY, { thread: grillThread });
|
|
145
|
+
};
|
|
146
|
+
const restore = (ctx: ExtensionContext) => {
|
|
147
|
+
const branch = ctx.sessionManager.getBranch();
|
|
148
|
+
const restored = restorePrivateBroState(branch);
|
|
149
|
+
savedSnapshots = privateSessionEntrySnapshots(branch);
|
|
150
|
+
lastResult = restored.lastResult;
|
|
151
|
+
lastShowSteering = restored.lastShowSteering;
|
|
152
|
+
simplifyState = restored.simplify;
|
|
153
|
+
btwThread = restored.btw;
|
|
154
|
+
grillThread = restored.grill;
|
|
155
|
+
};
|
|
112
156
|
|
|
113
157
|
pi.on("session_shutdown", async () => { stopGuidedReviews(); });
|
|
114
|
-
|
|
115
|
-
pi.on("
|
|
116
|
-
lastResult = undefined;
|
|
117
|
-
simplifyState = {};
|
|
118
|
-
btwThread = undefined;
|
|
119
|
-
grillThread = undefined;
|
|
120
|
-
});
|
|
158
|
+
pi.on("session_start", async (_event, ctx) => { restore(ctx); });
|
|
159
|
+
pi.on("session_tree", async (_event, ctx) => { restore(ctx); });
|
|
121
160
|
|
|
122
161
|
registerAdvisorTool(pi);
|
|
123
162
|
registerAboutUserTool(pi);
|
|
163
|
+
const overthink = registerOverthink(pi);
|
|
124
164
|
|
|
125
165
|
pi.registerCommand("bro", {
|
|
126
166
|
description: "Explain text, documents, and webpages; draw session turns; open a side conversation; configure Bro and the executor's advisor tool",
|
|
@@ -141,7 +181,7 @@ export default async function bro(pi: ExtensionAPI) {
|
|
|
141
181
|
|
|
142
182
|
if (action === "simplify") {
|
|
143
183
|
if (value) { ctx.ui.notify("Use /bro simplify to reopen the last Simplify view; use /text, /file or /url inside it.", "warning"); return; }
|
|
144
|
-
try { await openSimplifyWorkflow(ctx, simplifyState, {kind:"resume"}); if (simplifyState.result) remember(simplifyState.result); }
|
|
184
|
+
try { await openSimplifyWorkflow(ctx, simplifyState, {kind:"resume"}); saveSimplify(); if (simplifyState.result) remember(simplifyState.result); }
|
|
145
185
|
catch (error) { ctx.ui.notify(withDoctor(error), "error"); }
|
|
146
186
|
return;
|
|
147
187
|
}
|
|
@@ -178,6 +218,7 @@ export default async function bro(pi: ExtensionAPI) {
|
|
|
178
218
|
: {kind:action as "text" | "file" | "url", input:value};
|
|
179
219
|
try {
|
|
180
220
|
await openSimplifyWorkflow(ctx, simplifyState, initial);
|
|
221
|
+
saveSimplify();
|
|
181
222
|
if (simplifyState.result) remember(simplifyState.result);
|
|
182
223
|
} catch (error) { ctx.ui.notify(withDoctor(error), "error"); }
|
|
183
224
|
return;
|
|
@@ -293,9 +334,14 @@ export default async function bro(pi: ExtensionAPI) {
|
|
|
293
334
|
try {
|
|
294
335
|
const btwBackend = capabilityBackend(await readSettings(), "btw");
|
|
295
336
|
const thread = resolveBtwThread(btwThread);
|
|
296
|
-
|
|
337
|
+
const backendChanged = bindBtwBackend(thread, btwBackend);
|
|
338
|
+
if (backendChanged) ctx.ui.notify("Backend changed — started a fresh side thread.", "info");
|
|
297
339
|
btwThread = thread;
|
|
298
|
-
|
|
340
|
+
if (backendChanged) saveBtw();
|
|
341
|
+
await openBtwModal(ctx, {
|
|
342
|
+
thread, initialQuestion: parsed.question,
|
|
343
|
+
onChange: () => { if (btwThread === thread) saveBtw(); },
|
|
344
|
+
});
|
|
299
345
|
} catch (error) {
|
|
300
346
|
ctx.ui.notify(withDoctor(error), "error");
|
|
301
347
|
}
|
|
@@ -316,11 +362,20 @@ export default async function bro(pi: ExtensionAPI) {
|
|
|
316
362
|
const start = Boolean(parsed.topic);
|
|
317
363
|
if (start) grillThread = { topic: parsed.topic, depth: parsed.depth, turns: [], fullAccess: false };
|
|
318
364
|
else grillThread ??= { topic: "", depth: parsed.depth, turns: [], fullAccess: false };
|
|
319
|
-
|
|
365
|
+
const thread = grillThread;
|
|
366
|
+
if (start) saveGrill();
|
|
367
|
+
try { await openGrillModal(ctx, thread, { start, onChange: () => { if (grillThread === thread) saveGrill(); } }); }
|
|
320
368
|
catch (error) { ctx.ui.notify(withDoctor(error), "error"); }
|
|
321
369
|
return;
|
|
322
370
|
}
|
|
323
371
|
|
|
372
|
+
if (action === "overthink") {
|
|
373
|
+
if (value) { ctx.ui.notify("Use /bro overthink to open private notes; retry inside the modal.", "warning"); return; }
|
|
374
|
+
try { await overthink.open(ctx); }
|
|
375
|
+
catch (error) { ctx.ui.notify("Overthink: " + errorMessage(error), "error"); }
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
|
|
324
379
|
if (action === "elevate") {
|
|
325
380
|
if (!hasBroCustomUi(ctx)) { ctx.ui.notify("Use /bro elevate in Pi interactive UI.", "warning"); return; }
|
|
326
381
|
try { await openElevateModal(ctx, value); }
|