@narumitw/pi-btw 0.20.0 β†’ 0.28.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 CHANGED
@@ -8,8 +8,9 @@ Use it when you want to ask a temporary question, inspect context, or get a shor
8
8
 
9
9
  ## ✨ Features
10
10
 
11
- - Adds a `/btw <question>` command to Pi.
11
+ - Adds a `/btw` side-thread command to Pi, with an optional initial question.
12
12
  - Answers side questions in a temporary, scrollable UI.
13
+ - Supports follow-up questions in the same ephemeral side thread.
13
14
  - Uses the current session branch as context.
14
15
  - Uses Pi's current model or an independent model selected in `pi-btw.json`.
15
16
  - Inherits Pi's current thinking level or uses a fixed level from `pi-btw.json`.
@@ -36,22 +37,34 @@ pi -e ./extensions/pi-btw
36
37
 
37
38
  ## πŸš€ Usage
38
39
 
40
+ Start an empty side thread or provide its first question immediately:
41
+
39
42
  ```text
43
+ /btw
40
44
  /btw <your side question>
41
45
  ```
42
46
 
43
47
  Examples:
44
48
 
45
49
  ```text
50
+ /btw
46
51
  /btw what does this TypeScript error mean?
47
52
  /btw summarize the current implementation before we continue
48
53
  /btw is this API name idiomatic?
49
54
  ```
50
55
 
51
- Long answers open in a pager-style view. Use `↑`/`↓` or `k`/`j` to scroll by line,
52
- `PgUp`/`PgDn`, `Shift+Space`/`Space`, or `Ctrl+B`/`Ctrl+F` to scroll by page,
53
- `Ctrl+U`/`Ctrl+D` to scroll by half page, and `Home`/`End` to jump. Close with
54
- `q`, `Esc`, `Enter`, or `Ctrl+C`.
56
+ Running `/btw` alone opens an empty ephemeral side thread with its editor ready. When an
57
+ initial question is provided, its answer opens above the same editor. A compact
58
+ `btw Β· side thread` header stays fixed above the content so the ephemeral workspace remains
59
+ recognizable while scrolling. Messages use Pi's normal user and assistant presentation without
60
+ numbered turns or role labels. Type each question and press `Enter`; no follow-up shortcut is
61
+ required.
62
+ Previous side questions and answers remain available to the model and visible for that
63
+ invocation. While a response is running, the transcript stays visible above a compact
64
+ `Answering…` status. The footer shows `PgUp`/`PgDn` only when history can scroll; press
65
+ `Ctrl+C` to cancel an in-progress answer or leave the side thread. Closing it, reloading Pi,
66
+ or switching sessions discards it without adding any of its questions or answers to the main
67
+ conversation.
55
68
 
56
69
  ## βš™οΈ Model and thinking level
57
70
 
@@ -100,6 +113,7 @@ Normal assistant messages become part of the main Pi conversation and can distra
100
113
  ```txt
101
114
  extensions/pi-btw/
102
115
  β”œβ”€β”€ src/
116
+ β”‚ β”œβ”€β”€ index.ts
103
117
  β”‚ └── btw.ts
104
118
  β”œβ”€β”€ README.md
105
119
  β”œβ”€β”€ LICENSE
@@ -112,7 +126,7 @@ The package exposes its Pi extension through `package.json`:
112
126
  ```json
113
127
  {
114
128
  "pi": {
115
- "extensions": ["./src/btw.ts"]
129
+ "extensions": ["./src/index.ts"]
116
130
  }
117
131
  }
118
132
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-btw",
3
- "version": "0.20.0",
3
+ "version": "0.28.0",
4
4
  "description": "Pi extension that adds a /btw side-question command.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "pi": {
21
21
  "extensions": [
22
- "./src/btw.ts"
22
+ "./src/index.ts"
23
23
  ]
24
24
  },
25
25
  "scripts": {