pi-advisor-flow 0.3.5 → 0.3.6
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 +6 -0
- package/package.json +1 -1
- package/src/ui.ts +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
|
|
5
5
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## 0.3.6
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Limited `/advisor-models` to models available through the user's configured Pi providers, preventing unavailable defaults from being displayed or selected and ensuring new selections are used immediately by `/advisor` in the same session.
|
|
12
|
+
|
|
7
13
|
## 0.3.5
|
|
8
14
|
|
|
9
15
|
### Changed
|
package/package.json
CHANGED
package/src/ui.ts
CHANGED
|
@@ -72,7 +72,11 @@ export class SearchableModelSelector implements Component, Focusable {
|
|
|
72
72
|
constructor(options: SearchableModelSelectorOptions) {
|
|
73
73
|
this.tui = options.tui;
|
|
74
74
|
this.title = options.title;
|
|
75
|
-
this.currentOption =
|
|
75
|
+
this.currentOption =
|
|
76
|
+
options.currentOption &&
|
|
77
|
+
options.allOptions.includes(options.currentOption)
|
|
78
|
+
? options.currentOption
|
|
79
|
+
: undefined;
|
|
76
80
|
this.allOptions = this.currentOption
|
|
77
81
|
? [
|
|
78
82
|
this.currentOption,
|