@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 +20 -6
- package/package.json +2 -2
- package/src/btw.ts +172 -386
- package/src/index.ts +1 -0
- package/src/side-thread.ts +247 -0
- package/src/transcript-pager.ts +378 -0
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
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
`
|
|
54
|
-
|
|
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/
|
|
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.
|
|
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/
|
|
22
|
+
"./src/index.ts"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|