@juicesharp/rpiv-advisor 1.0.13 → 1.0.15
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 +7 -3
- package/advisor.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# rpiv-advisor
|
|
2
2
|
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
3
|
+
<div align="center">
|
|
4
|
+
<a href="https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-advisor">
|
|
5
|
+
<picture>
|
|
6
|
+
<img src="https://raw.githubusercontent.com/juicesharp/rpiv-mono/main/packages/rpiv-advisor/docs/cover.png" alt="rpiv-advisor cover" width="50%">
|
|
7
|
+
</picture>
|
|
8
|
+
</a>
|
|
9
|
+
</div>
|
|
6
10
|
|
|
7
11
|
[](https://www.npmjs.com/package/@juicesharp/rpiv-advisor)
|
|
8
12
|
[](https://opensource.org/licenses/MIT)
|
package/advisor.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { homedir } from "node:os";
|
|
|
18
18
|
import { dirname, join } from "node:path";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
20
20
|
import type { Api, Model, StopReason, Usage } from "@mariozechner/pi-ai";
|
|
21
|
-
import { completeSimple, type Message,
|
|
21
|
+
import { completeSimple, getSupportedThinkingLevels, type Message, type ThinkingLevel } from "@mariozechner/pi-ai";
|
|
22
22
|
import {
|
|
23
23
|
type AgentToolResult,
|
|
24
24
|
type AgentToolUpdateCallback,
|
|
@@ -530,7 +530,9 @@ export function registerAdvisorCommand(pi: ExtensionAPI): void {
|
|
|
530
530
|
// Effort picker — only for reasoning-capable models
|
|
531
531
|
let effortChoice: ThinkingLevel | undefined;
|
|
532
532
|
if (picked.reasoning) {
|
|
533
|
-
const levels =
|
|
533
|
+
const levels = getSupportedThinkingLevels(picked).includes("xhigh")
|
|
534
|
+
? [...BASE_EFFORT_LEVELS, XHIGH_EFFORT_LEVEL]
|
|
535
|
+
: BASE_EFFORT_LEVELS;
|
|
534
536
|
|
|
535
537
|
const effortItems: SelectItem[] = [
|
|
536
538
|
{ value: OFF_VALUE, label: "off" },
|