@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.
Files changed (3) hide show
  1. package/README.md +7 -3
  2. package/advisor.ts +4 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # rpiv-advisor
2
2
 
3
- <picture>
4
- <img src="https://raw.githubusercontent.com/juicesharp/rpiv-mono/main/packages/rpiv-advisor/docs/vertical-cover.png" alt="rpiv-advisor vertical-cover" width="160">
5
- </picture>
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
  [![npm version](https://img.shields.io/npm/v/@juicesharp/rpiv-advisor.svg)](https://www.npmjs.com/package/@juicesharp/rpiv-advisor)
8
12
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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, supportsXhigh, type ThinkingLevel } from "@mariozechner/pi-ai";
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 = supportsXhigh(picked) ? [...BASE_EFFORT_LEVELS, XHIGH_EFFORT_LEVEL] : BASE_EFFORT_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" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-advisor",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Pi extension: lets the model ask a stronger reviewer model for a second opinion before it acts",
5
5
  "keywords": [
6
6
  "pi-package",