@hk_net/pi-advisor 0.1.6 → 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 -73
  2. package/LICENSE +287 -287
  3. package/README.md +182 -182
  4. package/advisor.ts +1082 -1082
  5. package/package.json +39 -39
package/CHANGELOG.md CHANGED
@@ -1,73 +1,81 @@
1
- # Changelog
2
-
3
- ## 0.1.6 - 2026-07-21
4
-
5
- ### Changed
6
-
7
- - Raise the Pi peer dependency minimum to 0.81.1 and verify compatibility with that release.
8
- - Update the repository lockfile to Pi's packaged `brace-expansion` 5.0.7 dependency.
9
-
10
- ## 0.1.5 - 2026-07-20
11
-
12
- ### Changed
13
-
14
- - Correct and clarify the current Pi compatibility and autocomplete documentation.
15
-
16
- ## 0.1.4 - 2026-07-20
17
-
18
- ### Changed
19
-
20
- - Derive advisor thinking-level choices from Pi's supported levels for the selected reviewer model.
21
- - Add `max` support where the selected reviewer model exposes it.
22
- - 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.
23
-
24
- ## 0.1.3 - 2026-06-24
25
-
26
- ### Changed
27
-
28
- - Bumped pi peer dependencies to `>=0.80.2`.
29
-
30
- ## 0.1.2 - 2026-06-23
31
-
32
- ### Changed
33
-
34
- - Bumped package and pi peer/dev dependencies to `0.80.1`.
35
- - Updated advisor completion calls to import the compatibility helper from `@earendil-works/pi-ai/compat`, matching pi-ai `0.80.1`.
36
-
37
- ## 0.1.1
38
-
39
- ### Changed
40
-
41
- - Bumped package and pi peer/dev dependencies to `0.79.1`.
42
- - Added pi `0.79.1` autocomplete-provider integration for `/advisor ...` and `/advise ...` arguments.
43
- - Honor pi project trust for project-local `.pi/advisor.json`; untrusted projects cannot silently configure advisor or enable auto-triggers.
44
-
45
- ## 0.1.0
46
-
47
- ### Added
48
-
49
- - Initial release of pi-advisor
50
- - Added runtime config validation and pure-helper tests
51
-
52
- ### Fixed
53
-
54
- - 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
55
- - Treat `timeoutMs: 0` as provider-default timeout when calling the reviewer model
56
- - Remove arbitrary 120-char truncation from loop-detection fingerprint
57
- - Reorder /advise autocomplete — steer/pipe before show
58
- - Robust arg parsing in /advisor autocomplete
59
-
60
- ### Changed
61
-
62
- - Require an explicitly configured advisor model before sending transcripts; removed implicit latest-GPT/current-model fallback
63
- - Documented `/advise` default injection behavior and named transcript truncation limits
64
- - Hardened the reviewer prompt against transcript-borne prompt injection
65
- - Made /advisor model selection scrollable so long model lists stay within the terminal view
66
- - Refreshed the model registry before listing and resolving advisor models so OAuth/subscription-backed providers added via /login are selectable
67
- - Allowed advisor model resolution and execution to use header-only auth as well as API-key auth
68
- - 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
69
- - Added loop detection to when-stuck trigger
70
- - Clarified /advisor opens interactive model picker + thinking-level selection
71
- - Split /advisor none/default into two lines
72
- - Merged /advisor picker rows into single line
73
- - 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