@narumitw/pi-btw 0.18.0 → 0.20.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/package.json +5 -5
- package/src/btw.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-btw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Pi extension that adds a /btw side-question command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "2.5.3",
|
|
32
|
-
"@earendil-works/pi-ai": "0.80.
|
|
33
|
-
"@earendil-works/pi-coding-agent": "0.80.
|
|
34
|
-
"@earendil-works/pi-tui": "0.80.
|
|
35
|
-
"typescript": "
|
|
32
|
+
"@earendil-works/pi-ai": "0.80.10",
|
|
33
|
+
"@earendil-works/pi-coding-agent": "0.80.10",
|
|
34
|
+
"@earendil-works/pi-tui": "0.80.10",
|
|
35
|
+
"typescript": "7.0.2"
|
|
36
36
|
},
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
package/src/btw.ts
CHANGED
|
@@ -75,6 +75,7 @@ export const BTW_THINKING_LEVELS = [
|
|
|
75
75
|
"medium",
|
|
76
76
|
"high",
|
|
77
77
|
"xhigh",
|
|
78
|
+
"max",
|
|
78
79
|
] as const;
|
|
79
80
|
|
|
80
81
|
export type BtwThinkingLevel = (typeof BTW_THINKING_LEVELS)[number];
|
|
@@ -272,7 +273,9 @@ export async function completeSideQuestion({
|
|
|
272
273
|
env: auth.env,
|
|
273
274
|
signal,
|
|
274
275
|
};
|
|
275
|
-
if (thinkingLevel !== "off")
|
|
276
|
+
if (thinkingLevel !== "off") {
|
|
277
|
+
(streamOptions as unknown as { reasoning?: BtwThinkingLevel }).reasoning = thinkingLevel;
|
|
278
|
+
}
|
|
276
279
|
|
|
277
280
|
return runCompleteSimple(model, { systemPrompt: SYSTEM_PROMPT, messages: [userMessage] }, streamOptions);
|
|
278
281
|
}
|