@bacnh85/pi-advisor 0.1.4 → 0.1.5
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 +8 -0
- package/extensions/commands/advisor.ts +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.5 (2026-08-29)
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `/advisor` argument completion now offers the `on` / `off` / `status` /
|
|
8
|
+
`watch-off` keywords ahead of model suggestions (previously only models were
|
|
9
|
+
offered, so keywords could not be discovered or completed).
|
|
10
|
+
|
|
3
11
|
## 0.1.4 (2026-08-26)
|
|
4
12
|
|
|
5
13
|
### Changed
|
|
@@ -130,9 +130,13 @@ export function registerAdvisor(pi: ExtensionAPI, state: AdvisorState): void {
|
|
|
130
130
|
pi.registerCommand("advisor", {
|
|
131
131
|
description: "Configure the advisor: /advisor [model hint|on|off|status]",
|
|
132
132
|
getArgumentCompletions: (prefix) => {
|
|
133
|
+
const kws = ["on", "off", "status", "watch-off"].filter((k) => k.startsWith(prefix.toLowerCase()));
|
|
134
|
+
const kwItems = kws.map((k) => ({ value: k, label: k, description: k === "watch-off" ? "disable background watch" : `advisor ${k}` }));
|
|
133
135
|
const models = registry?.getAvailable() ?? [];
|
|
134
136
|
const matches = prefix ? fuzzyFilter(models, prefix, modelSearchText) : models;
|
|
135
|
-
|
|
137
|
+
const modelItems = matches.map((model) => ({ value: modelRef(model), label: model.id, description: model.provider }));
|
|
138
|
+
const items = [...kwItems, ...modelItems];
|
|
139
|
+
return items.length > 0 ? items : null;
|
|
136
140
|
},
|
|
137
141
|
handler: async (args, ctx) => {
|
|
138
142
|
registry = ctx.modelRegistry;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bacnh85/pi-advisor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Pi extension for an automatic advisor: a second model that reviews each settled turn and injects severity-routed notes, plus an on-demand consult tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|