@narumitw/pi-btw 0.58.1 → 0.60.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/README.md +8 -1
- package/dist/index.ts +490 -385
- package/dist/index.ts.map +4 -4
- package/package.json +52 -53
- package/src/bring-to-main.ts +494 -547
- package/src/btw.ts +803 -856
- package/src/fullscreen-ui.ts +673 -674
- package/src/keybindings.ts +228 -270
- package/src/main-tree-picker.ts +309 -318
- package/src/menu.ts +645 -454
- package/src/settings.ts +208 -219
- package/src/side-thread.ts +173 -201
- package/src/text.ts +21 -23
- package/src/transcript-markdown.ts +65 -0
- package/src/transcript-pager.ts +611 -662
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ Only context you explicitly bring back is loaded into the main editor.
|
|
|
10
10
|
- Starts a side thread immediately with `/btw <question>` or opens the manager with `/btw`.
|
|
11
11
|
- Uses any persisted main-session branch as context without switching branches.
|
|
12
12
|
- Supports scrollable answers, transcript search, a clickable jump-to-latest control, follow-up questions, queued steering, and in-memory resume.
|
|
13
|
+
- Renders supported Mermaid fences as width-safe, themed Unicode diagrams without a browser or network request.
|
|
13
14
|
- Keeps side questions and answers out of the main conversation by default.
|
|
14
15
|
- Brings back the latest answer, a question suffix, an exact range, or the complete thread only when requested.
|
|
15
16
|
- Uses Pi's current model and thinking level or saved pi-btw choices.
|
|
@@ -58,7 +59,11 @@ Read the [workflow guide](./docs/workflows.md) for context selection, copying, s
|
|
|
58
59
|
## ⚙️ Settings
|
|
59
60
|
|
|
60
61
|
By default, `/btw` uses the current session model.
|
|
61
|
-
|
|
62
|
+
Open `/btw` → **Settings** → **Model** to choose an available model or **Same as main thread** to remove the override.
|
|
63
|
+
The searchable picker follows the current Pi model scope and saves immediately without changing the main session model.
|
|
64
|
+
A manually configured available model outside that scope remains active and visible until you explicitly choose another option.
|
|
65
|
+
|
|
66
|
+
You can also edit the user settings file directly:
|
|
62
67
|
|
|
63
68
|
```text
|
|
64
69
|
$PI_CODING_AGENT_DIR/pi-btw.json
|
|
@@ -82,6 +87,7 @@ The configured model must exist in Pi's model registry and have usable credentia
|
|
|
82
87
|
If it is missing or unauthenticated, pi-btw warns and falls back to the current session model.
|
|
83
88
|
If neither model is available, `/btw` reports an error and stops.
|
|
84
89
|
This selection affects only `/btw`; it does not change the main session model.
|
|
90
|
+
Model changes apply when the next new or resumed side thread starts.
|
|
85
91
|
|
|
86
92
|
Pi calls its reasoning setting the **thinking level**.
|
|
87
93
|
In Settings, choose **Same as main thread** to start each new side thread from the main thread's current thinking level.
|
|
@@ -157,6 +163,7 @@ The file is read for every `/btw` invocation, so edits apply without `/reload`.
|
|
|
157
163
|
- Resume state is memory-only and lasts only for the current extension instance.
|
|
158
164
|
- A side thread retains the latest 40,000 characters of main-conversation context and adds a truncation notice when earlier content is omitted.
|
|
159
165
|
- Clipboard access depends on Pi's host helper, the operating system, and the terminal.
|
|
166
|
+
- Malformed, unsupported, or oversized Mermaid diagrams remain readable as fenced source; partial parses also show a warning.
|
|
160
167
|
- Pi versions before 0.85 omit the clickable jump-to-latest control.
|
|
161
168
|
|
|
162
169
|
## 🗂️ Package layout
|