@hk_net/pi-advisor 0.1.9 → 0.1.11

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 +117 -101
  2. package/LICENSE +290 -290
  3. package/README.md +193 -193
  4. package/advisor.ts +1118 -1113
  5. package/package.json +56 -56
package/CHANGELOG.md CHANGED
@@ -1,101 +1,117 @@
1
- # Changelog
2
-
3
- ## 0.1.9 - 2026-08-23
4
-
5
- ### Changed
6
-
7
- - Add the copyright holder and EUPL licensing notice to the package license and canonical TypeScript source.
8
- - Identify KAPPER NETWORK-COMMUNICATIONS GmbH and kapper.net in the npm author metadata.
9
-
10
- ## 0.1.8 - 2026-08-23
11
-
12
- ### Changed
13
-
14
- - Mark Pi's host-provided SDK packages as optional wildcard peers so npm does not install a redundant Pi SDK dependency tree.
15
- - Verify development and tests against Pi SDK 0.84.2 while retaining runtime compatibility with Pi 0.84.1 and newer.
16
- - Refine advisor tool guidance so non-trivial tasks require a review at an evidence-backed checkpoint before the final answer without encouraging an immediate first-action call.
17
- - Make reviewer responses checkpoint-aware, evidence-grounded, and limited to a verdict plus three prioritized actions.
18
- - Prevent `/advisor` from writing project-scoped configuration until Pi trusts the project.
19
- - Run `onDone` review only after Pi fully settles retries, compaction recovery, and queued continuations.
20
- - Write advisor configuration atomically with owner-only file permissions where supported.
21
- - Document that the individual package and GitHub bundle must not be installed together.
22
-
23
- ## 0.1.7 - 2026-08-13
24
-
25
- ### Changed
26
-
27
- - Raise the Pi peer dependency minimum to 0.84.1 and verify compatibility with that release.
28
- - Accept Pi 0.84.1 provider headers that suppress defaults with `null` values.
29
- - Refresh the repository lockfile to remove known dependency vulnerabilities.
30
-
31
- ## 0.1.6 - 2026-07-21
32
-
33
- ### Changed
34
-
35
- - Raise the Pi peer dependency minimum to 0.81.1 and verify compatibility with that release.
36
- - Update the repository lockfile to Pi's packaged `brace-expansion` 5.0.7 dependency.
37
-
38
- ## 0.1.5 - 2026-07-20
39
-
40
- ### Changed
41
-
42
- - Correct and clarify the current Pi compatibility and autocomplete documentation.
43
-
44
- ## 0.1.4 - 2026-07-20
45
-
46
- ### Changed
47
-
48
- - Derive advisor thinking-level choices from Pi's supported levels for the selected reviewer model.
49
- - Add `max` support where the selected reviewer model exposes it.
50
- - 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.
51
-
52
- ## 0.1.3 - 2026-06-24
53
-
54
- ### Changed
55
-
56
- - Bumped pi peer dependencies to `>=0.80.2`.
57
-
58
- ## 0.1.2 - 2026-06-23
59
-
60
- ### Changed
61
-
62
- - Bumped package and pi peer/dev dependencies to `0.80.1`.
63
- - Updated advisor completion calls to import the compatibility helper from `@earendil-works/pi-ai/compat`, matching pi-ai `0.80.1`.
64
-
65
- ## 0.1.1
66
-
67
- ### Changed
68
-
69
- - Bumped package and pi peer/dev dependencies to `0.79.1`.
70
- - Added pi `0.79.1` autocomplete-provider integration for `/advisor ...` and `/advise ...` arguments.
71
- - Honor pi project trust for project-local `.pi/advisor.json`; untrusted projects cannot silently configure advisor or enable auto-triggers.
72
-
73
- ## 0.1.0
74
-
75
- ### Added
76
-
77
- - Initial release of pi-advisor
78
- - Added runtime config validation and pure-helper tests
79
-
80
- ### Fixed
81
-
82
- - 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
83
- - Treat `timeoutMs: 0` as provider-default timeout when calling the reviewer model
84
- - Remove arbitrary 120-char truncation from loop-detection fingerprint
85
- - Reorder /advise autocomplete steer/pipe before show
86
- - Robust arg parsing in /advisor autocomplete
87
-
88
- ### Changed
89
-
90
- - Require an explicitly configured advisor model before sending transcripts; removed implicit latest-GPT/current-model fallback
91
- - Documented `/advise` default injection behavior and named transcript truncation limits
92
- - Hardened the reviewer prompt against transcript-borne prompt injection
93
- - Made /advisor model selection scrollable so long model lists stay within the terminal view
94
- - Refreshed the model registry before listing and resolving advisor models so OAuth/subscription-backed providers added via /login are selectable
95
- - Allowed advisor model resolution and execution to use header-only auth as well as API-key auth
96
- - 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
97
- - Added loop detection to when-stuck trigger
98
- - Clarified /advisor opens interactive model picker + thinking-level selection
99
- - Split /advisor none/default into two lines
100
- - Merged /advisor picker rows into single line
101
- - Updated /advisor when-stuck table row to mention loop detection
1
+ # Changelog
2
+
3
+ ## 0.1.11 - 2026-08-29
4
+
5
+ ### Changed
6
+
7
+ - Require Pi 0.84.4 or newer; this is the development, type-compatibility, and test baseline.
8
+
9
+ ### Compatibility
10
+
11
+ - Use Pi 0.84.4's non-triggering custom-message contract for display advisor feedback; Pi safely queues it during active tool runs, avoiding invalid provider message histories on replay.
12
+
13
+ ## 0.1.10 - 2026-08-27
14
+
15
+ ### Changed
16
+
17
+ - Verify development, type compatibility, and tests against Pi SDK 0.84.3 while retaining runtime compatibility with Pi 0.84.1 and newer.
18
+
19
+ ## 0.1.9 - 2026-08-23
20
+
21
+ ### Changed
22
+
23
+ - Add the copyright holder and EUPL licensing notice to the package license and canonical TypeScript source.
24
+ - Identify KAPPER NETWORK-COMMUNICATIONS GmbH and kapper.net in the npm author metadata.
25
+
26
+ ## 0.1.8 - 2026-08-23
27
+
28
+ ### Changed
29
+
30
+ - Mark Pi's host-provided SDK packages as optional wildcard peers so npm does not install a redundant Pi SDK dependency tree.
31
+ - Verify development and tests against Pi SDK 0.84.2 while retaining runtime compatibility with Pi 0.84.1 and newer.
32
+ - Refine advisor tool guidance so non-trivial tasks require a review at an evidence-backed checkpoint before the final answer without encouraging an immediate first-action call.
33
+ - Make reviewer responses checkpoint-aware, evidence-grounded, and limited to a verdict plus three prioritized actions.
34
+ - Prevent `/advisor` from writing project-scoped configuration until Pi trusts the project.
35
+ - Run `onDone` review only after Pi fully settles retries, compaction recovery, and queued continuations.
36
+ - Write advisor configuration atomically with owner-only file permissions where supported.
37
+ - Document that the individual package and GitHub bundle must not be installed together.
38
+
39
+ ## 0.1.7 - 2026-08-13
40
+
41
+ ### Changed
42
+
43
+ - Raise the Pi peer dependency minimum to 0.84.1 and verify compatibility with that release.
44
+ - Accept Pi 0.84.1 provider headers that suppress defaults with `null` values.
45
+ - Refresh the repository lockfile to remove known dependency vulnerabilities.
46
+
47
+ ## 0.1.6 - 2026-07-21
48
+
49
+ ### Changed
50
+
51
+ - Raise the Pi peer dependency minimum to 0.81.1 and verify compatibility with that release.
52
+ - Update the repository lockfile to Pi's packaged `brace-expansion` 5.0.7 dependency.
53
+
54
+ ## 0.1.5 - 2026-07-20
55
+
56
+ ### Changed
57
+
58
+ - Correct and clarify the current Pi compatibility and autocomplete documentation.
59
+
60
+ ## 0.1.4 - 2026-07-20
61
+
62
+ ### Changed
63
+
64
+ - Derive advisor thinking-level choices from Pi's supported levels for the selected reviewer model.
65
+ - Add `max` support where the selected reviewer model exposes it.
66
+ - 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.
67
+
68
+ ## 0.1.3 - 2026-06-24
69
+
70
+ ### Changed
71
+
72
+ - Bumped pi peer dependencies to `>=0.80.2`.
73
+
74
+ ## 0.1.2 - 2026-06-23
75
+
76
+ ### Changed
77
+
78
+ - Bumped package and pi peer/dev dependencies to `0.80.1`.
79
+ - Updated advisor completion calls to import the compatibility helper from `@earendil-works/pi-ai/compat`, matching pi-ai `0.80.1`.
80
+
81
+ ## 0.1.1
82
+
83
+ ### Changed
84
+
85
+ - Bumped package and pi peer/dev dependencies to `0.79.1`.
86
+ - Added pi `0.79.1` autocomplete-provider integration for `/advisor ...` and `/advise ...` arguments.
87
+ - Honor pi project trust for project-local `.pi/advisor.json`; untrusted projects cannot silently configure advisor or enable auto-triggers.
88
+
89
+ ## 0.1.0
90
+
91
+ ### Added
92
+
93
+ - Initial release of pi-advisor
94
+ - Added runtime config validation and pure-helper tests
95
+
96
+ ### Fixed
97
+
98
+ - 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
99
+ - Treat `timeoutMs: 0` as provider-default timeout when calling the reviewer model
100
+ - Remove arbitrary 120-char truncation from loop-detection fingerprint
101
+ - Reorder /advise autocomplete steer/pipe before show
102
+ - Robust arg parsing in /advisor autocomplete
103
+
104
+ ### Changed
105
+
106
+ - Require an explicitly configured advisor model before sending transcripts; removed implicit latest-GPT/current-model fallback
107
+ - Documented `/advise` default injection behavior and named transcript truncation limits
108
+ - Hardened the reviewer prompt against transcript-borne prompt injection
109
+ - Made /advisor model selection scrollable so long model lists stay within the terminal view
110
+ - Refreshed the model registry before listing and resolving advisor models so OAuth/subscription-backed providers added via /login are selectable
111
+ - Allowed advisor model resolution and execution to use header-only auth as well as API-key auth
112
+ - 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
113
+ - Added loop detection to when-stuck trigger
114
+ - Clarified /advisor opens interactive model picker + thinking-level selection
115
+ - Split /advisor none/default into two lines
116
+ - Merged /advisor picker rows into single line
117
+ - Updated /advisor when-stuck table row to mention loop detection