@hk_net/pi-advisor 0.1.1 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3 - 2026-06-24
4
+
5
+ ### Changed
6
+
7
+ - Bumped pi peer dependencies to `>=0.80.2`.
8
+
9
+ ## 0.1.2 - 2026-06-23
10
+
11
+ ### Changed
12
+
13
+ - Bumped package and pi peer/dev dependencies to `0.80.1`.
14
+ - Updated advisor completion calls to import the compatibility helper from `@earendil-works/pi-ai/compat`, matching pi-ai `0.80.1`.
15
+
3
16
  ## 0.1.1
4
17
 
5
18
  ### Changed
package/README.md CHANGED
@@ -151,7 +151,7 @@ tool's `promptGuidelines`. Two opt-in deterministic triggers, configurable per p
151
151
  ## Implementation notes (pi extension API)
152
152
 
153
153
  - **Call a model from an extension:** `complete(model, { systemPrompt, messages }, { apiKey, headers,
154
- signal, reasoningEffort, maxTokens })` from `@earendil-works/pi-ai`. Resolve auth with
154
+ signal, reasoningEffort, maxTokens })` from `@earendil-works/pi-ai/compat`. Resolve auth with
155
155
  `ctx.modelRegistry.find(provider, id)` → `await ctx.modelRegistry.getApiKeyAndHeaders(model)`
156
156
  (`{ ok, apiKey, headers }`). `getAvailable()` lists only auth-configured models; `ctx.model` is the
157
157
  current one; `Model` carries `.contextWindow` / `.maxTokens`. `reasoningEffort` is a passthrough
@@ -168,4 +168,5 @@ tool's `promptGuidelines`. Two opt-in deterministic triggers, configurable per p
168
168
  also layers a `ctx.ui.addAutocompleteProvider()` on `session_start` so `/advisor ...` and
169
169
  `/advise ...` completions replace the whole argument segment and suppress irrelevant path
170
170
  completion while typing command arguments (pi ≥ 0.79.1).
171
- - The package's `examples/extensions/summarize.ts` is the canonical reference for `complete()`.
171
+ - The package's `examples/extensions/summarize.ts` remains the canonical extension reference; with pi-ai
172
+ `0.80.1`, import legacy `complete()` calls from `@earendil-works/pi-ai/compat`.
package/advisor.ts CHANGED
@@ -40,8 +40,9 @@
40
40
  * call advisor, nudged by the tool's prompt guidelines. The optional deterministic
41
41
  * triggers and `/advise` command provide additional ways to request reviewer feedback.
42
42
  */
43
- import { complete, Type } from "@earendil-works/pi-ai";
43
+ import { Type } from "@earendil-works/pi-ai";
44
44
  import type { Api, Model } from "@earendil-works/pi-ai";
45
+ import { complete } from "@earendil-works/pi-ai/compat";
45
46
  import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
46
47
  import { getMarkdownTheme } from "@earendil-works/pi-coding-agent";
47
48
  import { Box, Markdown, SelectList, truncateToWidth } from "@earendil-works/pi-tui";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hk_net/pi-advisor",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Pi advisor extension: consult a configured reviewer model on the full conversation transcript",
5
5
  "type": "module",
6
6
  "private": false,
@@ -27,9 +27,9 @@
27
27
  "CHANGELOG.md"
28
28
  ],
29
29
  "peerDependencies": {
30
- "@earendil-works/pi-ai": ">=0.79.10",
31
- "@earendil-works/pi-coding-agent": ">=0.79.10",
32
- "@earendil-works/pi-tui": ">=0.79.10"
30
+ "@earendil-works/pi-ai": ">=0.80.2",
31
+ "@earendil-works/pi-coding-agent": ">=0.80.2",
32
+ "@earendil-works/pi-tui": ">=0.80.2"
33
33
  },
34
34
  "pi": {
35
35
  "extensions": [