@erichll/pi-auto-review 0.3.2 → 0.3.3
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 +7 -0
- package/package.json +3 -3
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.3 - 2026-07-30
|
|
4
|
+
|
|
5
|
+
- Fix config validation rejecting multi-segment model ids (`provider/group/model`).
|
|
6
|
+
`validateConfig` no longer restricts a model to exactly one `/`; it only rejects
|
|
7
|
+
ids with empty segments. Segments are resolved as before: the first segment is
|
|
8
|
+
the provider and the rest is the model id.
|
|
9
|
+
|
|
3
10
|
## 0.3.2 - 2026-07-29
|
|
4
11
|
|
|
5
12
|
- Load an optional user-global trusted config from
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erichll/pi-auto-review",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Model-backed boundary approval broker for Pi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@gotgenes/pi-permission-system": ">=23.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@earendil-works/pi-ai": "0.
|
|
56
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
55
|
+
"@earendil-works/pi-ai": "0.83.0",
|
|
56
|
+
"@earendil-works/pi-coding-agent": "0.83.0",
|
|
57
57
|
"@gotgenes/pi-permission-system": "24.0.0",
|
|
58
58
|
"@types/node": "^22.15.3",
|
|
59
59
|
"typescript": "^6.0.3"
|
package/src/index.ts
CHANGED
|
@@ -201,7 +201,7 @@ function validateConfig(value: unknown, source: string): Config {
|
|
|
201
201
|
typeof config.model !== "string" ||
|
|
202
202
|
!config.model.trim() ||
|
|
203
203
|
/\s/.test(config.model) ||
|
|
204
|
-
|
|
204
|
+
config.model.split("/").some((segment) => !segment.trim())
|
|
205
205
|
) {
|
|
206
206
|
throw new Error(
|
|
207
207
|
`${EXTENSION_NAME}: model must be a model id or provider/model`,
|