@hk_net/pi-advisor 0.1.5 → 0.1.7

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 (5) hide show
  1. package/CHANGELOG.md +81 -66
  2. package/LICENSE +287 -287
  3. package/README.md +182 -173
  4. package/advisor.ts +1082 -1082
  5. package/package.json +39 -39
package/CHANGELOG.md CHANGED
@@ -1,66 +1,81 @@
1
- # Changelog
2
-
3
- ## 0.1.5 - 2026-07-20
4
-
5
- ### Changed
6
-
7
- - Correct and clarify the current Pi compatibility and autocomplete documentation.
8
-
9
- ## 0.1.4 - 2026-07-20
10
-
11
- ### Changed
12
-
13
- - Derive advisor thinking-level choices from Pi's supported levels for the selected reviewer model.
14
- - Add `max` support where the selected reviewer model exposes it.
15
- - Improve `/advisor` autocomplete: `/adviso...` completes without a trailing space; model completion leads to that model's thinking-level picker; `on-done` and `when-stuck` open their value pickers directly.
16
-
17
- ## 0.1.3 - 2026-06-24
18
-
19
- ### Changed
20
-
21
- - Bumped pi peer dependencies to `>=0.80.2`.
22
-
23
- ## 0.1.2 - 2026-06-23
24
-
25
- ### Changed
26
-
27
- - Bumped package and pi peer/dev dependencies to `0.80.1`.
28
- - Updated advisor completion calls to import the compatibility helper from `@earendil-works/pi-ai/compat`, matching pi-ai `0.80.1`.
29
-
30
- ## 0.1.1
31
-
32
- ### Changed
33
-
34
- - Bumped package and pi peer/dev dependencies to `0.79.1`.
35
- - Added pi `0.79.1` autocomplete-provider integration for `/advisor ...` and `/advise ...` arguments.
36
- - Honor pi project trust for project-local `.pi/advisor.json`; untrusted projects cannot silently configure advisor or enable auto-triggers.
37
-
38
- ## 0.1.0
39
-
40
- ### Added
41
-
42
- - Initial release of pi-advisor
43
- - Added runtime config validation and pure-helper tests
44
-
45
- ### Fixed
46
-
47
- - Retry advisor once with visible-text-only prompting when the reviewer returns reasoning-only output, and show diagnostics instead of the vague "returned no text" placeholder
48
- - Treat `timeoutMs: 0` as provider-default timeout when calling the reviewer model
49
- - Remove arbitrary 120-char truncation from loop-detection fingerprint
50
- - Reorder /advise autocomplete steer/pipe before show
51
- - Robust arg parsing in /advisor autocomplete
52
-
53
- ### Changed
54
-
55
- - Require an explicitly configured advisor model before sending transcripts; removed implicit latest-GPT/current-model fallback
56
- - Documented `/advise` default injection behavior and named transcript truncation limits
57
- - Hardened the reviewer prompt against transcript-borne prompt injection
58
- - Made /advisor model selection scrollable so long model lists stay within the terminal view
59
- - Refreshed the model registry before listing and resolving advisor models so OAuth/subscription-backed providers added via /login are selectable
60
- - Allowed advisor model resolution and execution to use header-only auth as well as API-key auth
61
- - Changed /advise so its default show mode is clearly UI-only and not presented as model-injected chat content; added pipe and steer modes to feed advisor feedback into the active conversation
62
- - Added loop detection to when-stuck trigger
63
- - Clarified /advisor opens interactive model picker + thinking-level selection
64
- - Split /advisor none/default into two lines
65
- - Merged /advisor picker rows into single line
66
- - Updated /advisor when-stuck table row to mention loop detection
1
+ # Changelog
2
+
3
+ ## 0.1.7 - 2026-08-13
4
+
5
+ ### Changed
6
+
7
+ - Raise the Pi peer dependency minimum to 0.84.1 and verify compatibility with that release.
8
+ - Accept Pi 0.84.1 provider headers that suppress defaults with `null` values.
9
+ - Refresh the repository lockfile to remove known dependency vulnerabilities.
10
+
11
+ ## 0.1.6 - 2026-07-21
12
+
13
+ ### Changed
14
+
15
+ - Raise the Pi peer dependency minimum to 0.81.1 and verify compatibility with that release.
16
+ - Update the repository lockfile to Pi's packaged `brace-expansion` 5.0.7 dependency.
17
+
18
+ ## 0.1.5 - 2026-07-20
19
+
20
+ ### Changed
21
+
22
+ - Correct and clarify the current Pi compatibility and autocomplete documentation.
23
+
24
+ ## 0.1.4 - 2026-07-20
25
+
26
+ ### Changed
27
+
28
+ - Derive advisor thinking-level choices from Pi's supported levels for the selected reviewer model.
29
+ - Add `max` support where the selected reviewer model exposes it.
30
+ - Improve `/advisor` autocomplete: `/adviso...` completes without a trailing space; model completion leads to that model's thinking-level picker; `on-done` and `when-stuck` open their value pickers directly.
31
+
32
+ ## 0.1.3 - 2026-06-24
33
+
34
+ ### Changed
35
+
36
+ - Bumped pi peer dependencies to `>=0.80.2`.
37
+
38
+ ## 0.1.2 - 2026-06-23
39
+
40
+ ### Changed
41
+
42
+ - Bumped package and pi peer/dev dependencies to `0.80.1`.
43
+ - Updated advisor completion calls to import the compatibility helper from `@earendil-works/pi-ai/compat`, matching pi-ai `0.80.1`.
44
+
45
+ ## 0.1.1
46
+
47
+ ### Changed
48
+
49
+ - Bumped package and pi peer/dev dependencies to `0.79.1`.
50
+ - Added pi `0.79.1` autocomplete-provider integration for `/advisor ...` and `/advise ...` arguments.
51
+ - Honor pi project trust for project-local `.pi/advisor.json`; untrusted projects cannot silently configure advisor or enable auto-triggers.
52
+
53
+ ## 0.1.0
54
+
55
+ ### Added
56
+
57
+ - Initial release of pi-advisor
58
+ - Added runtime config validation and pure-helper tests
59
+
60
+ ### Fixed
61
+
62
+ - Retry advisor once with visible-text-only prompting when the reviewer returns reasoning-only output, and show diagnostics instead of the vague "returned no text" placeholder
63
+ - Treat `timeoutMs: 0` as provider-default timeout when calling the reviewer model
64
+ - Remove arbitrary 120-char truncation from loop-detection fingerprint
65
+ - Reorder /advise autocomplete steer/pipe before show
66
+ - Robust arg parsing in /advisor autocomplete
67
+
68
+ ### Changed
69
+
70
+ - Require an explicitly configured advisor model before sending transcripts; removed implicit latest-GPT/current-model fallback
71
+ - Documented `/advise` default injection behavior and named transcript truncation limits
72
+ - Hardened the reviewer prompt against transcript-borne prompt injection
73
+ - Made /advisor model selection scrollable so long model lists stay within the terminal view
74
+ - Refreshed the model registry before listing and resolving advisor models so OAuth/subscription-backed providers added via /login are selectable
75
+ - Allowed advisor model resolution and execution to use header-only auth as well as API-key auth
76
+ - Changed /advise so its default show mode is clearly UI-only and not presented as model-injected chat content; added pipe and steer modes to feed advisor feedback into the active conversation
77
+ - Added loop detection to when-stuck trigger
78
+ - Clarified /advisor opens interactive model picker + thinking-level selection
79
+ - Split /advisor none/default into two lines
80
+ - Merged /advisor picker rows into single line
81
+ - Updated /advisor when-stuck table row to mention loop detection