@howaboua/pi-subagent-review 0.2.26 → 0.2.27
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 +5 -0
- package/README.md +3 -1
- package/package.json +68 -68
- package/src/config.ts +9 -2
- package/src/constants.ts +1 -1
- package/biome.json +0 -31
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ On first load, the extension creates `~/.pi/agent/pi-subagent-review.json`, or t
|
|
|
48
48
|
|
|
49
49
|
```json
|
|
50
50
|
{
|
|
51
|
-
"model": "openai-codex/gpt-6-sol",
|
|
51
|
+
"model": "openai-codex/gpt-6.2-sol",
|
|
52
52
|
"thinking": "medium",
|
|
53
53
|
"summary": {
|
|
54
54
|
"enabled": true,
|
|
@@ -60,6 +60,8 @@ On first load, the extension creates `~/.pi/agent/pi-subagent-review.json`, or t
|
|
|
60
60
|
|
|
61
61
|
Models use Pi's `provider/model` format. Thinking levels through `max` are accepted and clamped. If a configured model is unavailable, the command falls back to the current session model.
|
|
62
62
|
|
|
63
|
+
Reviewer IDs absent from Pi's catalogue use its CLI's custom-model support when their provider is configured. Invalid IDs fail in the reviewer rather than selecting another model. Summary models must be registered in Pi.
|
|
64
|
+
|
|
63
65
|
The `summary` model prepares both reviewer conversation context and review-loop increment summaries.
|
|
64
66
|
|
|
65
67
|
Do not load another extension that registers `/review` unless the command collision is intentional.
|
package/package.json
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
2
|
+
"name": "@howaboua/pi-subagent-review",
|
|
3
|
+
"version": "0.2.27",
|
|
4
|
+
"description": "Pi extension that adds /review via an isolated review subagent.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.ts",
|
|
7
|
+
"exports": "./index.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"index.ts",
|
|
11
|
+
"src",
|
|
12
|
+
"review.prompt.md",
|
|
13
|
+
"README.md",
|
|
14
|
+
"tsconfig.json",
|
|
15
|
+
"CHANGELOG.md"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"pi-package",
|
|
19
|
+
"pi",
|
|
20
|
+
"pi-extension",
|
|
21
|
+
"review",
|
|
22
|
+
"code-review",
|
|
23
|
+
"subagent",
|
|
24
|
+
"agent"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/IgorWarzocha/howaboua-pi-stuff.git",
|
|
29
|
+
"directory": "packages/pi-subagent-review"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/IgorWarzocha/howaboua-pi-stuff/tree/main/packages/pi-subagent-review#readme",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/IgorWarzocha/howaboua-pi-stuff/issues"
|
|
34
|
+
},
|
|
35
|
+
"pi": {
|
|
36
|
+
"extensions": [
|
|
37
|
+
"./index.ts"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@howaboua/pi-codex-conversion": ">=5.0.1",
|
|
42
|
+
"@earendil-works/pi-ai": ">=1.0.0",
|
|
43
|
+
"@earendil-works/pi-coding-agent": ">=1.5.0",
|
|
44
|
+
"@earendil-works/pi-tui": ">=1.0.0"
|
|
45
|
+
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"@howaboua/pi-codex-conversion": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"check": "bun run lint && bun run typecheck",
|
|
53
|
+
"prepack": "bun run check",
|
|
54
|
+
"typecheck": "tsrs --noEmit",
|
|
55
|
+
"lint": "bun run format:check && oxlint --type-aware",
|
|
56
|
+
"format": "oxfmt --write '**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,jsonc,json5,css}'",
|
|
57
|
+
"format:check": "oxfmt --check '**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,jsonc,json5,css}'"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@howaboua/pi-codex-conversion": "5.0.1",
|
|
61
|
+
"@earendil-works/pi-ai": "1.5.2",
|
|
62
|
+
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
63
|
+
"@types/node": "^26.6.6",
|
|
64
|
+
"typescript": "^7.0.2",
|
|
65
|
+
"oxfmt": "^0.78.0"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
}
|
|
70
70
|
}
|
package/src/config.ts
CHANGED
|
@@ -126,10 +126,17 @@ function splitModelRef(modelRef: string): ParsedModelRef | undefined {
|
|
|
126
126
|
async function canUseModel(
|
|
127
127
|
ctx: ExtensionCommandContext,
|
|
128
128
|
modelRef: string,
|
|
129
|
+
allowCustomId = false,
|
|
129
130
|
): Promise<boolean> {
|
|
130
131
|
const parsed = splitModelRef(modelRef);
|
|
131
132
|
if (!parsed) return false;
|
|
132
|
-
|
|
133
|
+
// The reviewer CLI accepts custom IDs for known providers; summaries do not.
|
|
134
|
+
// Check provider auth with a registered model without replacing the requested ID.
|
|
135
|
+
const model =
|
|
136
|
+
ctx.modelRegistry.find(parsed.provider, parsed.modelId) ??
|
|
137
|
+
(allowCustomId
|
|
138
|
+
? ctx.modelRegistry.getProvider(parsed.provider)?.getModels()[0]
|
|
139
|
+
: undefined);
|
|
133
140
|
if (!model) return false;
|
|
134
141
|
const auth = await ctx.modelRegistry.getApiKeyAndHeaders(model);
|
|
135
142
|
return auth.ok;
|
|
@@ -159,7 +166,7 @@ export async function resolveReviewConfig(
|
|
|
159
166
|
}
|
|
160
167
|
}
|
|
161
168
|
|
|
162
|
-
if (await canUseModel(ctx, configured.model)) {
|
|
169
|
+
if (await canUseModel(ctx, configured.model, true)) {
|
|
163
170
|
return { ...configured, summary, source: "configured" };
|
|
164
171
|
}
|
|
165
172
|
|
package/src/constants.ts
CHANGED
package/biome.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.6.6/schema.json",
|
|
3
|
-
"vcs": {
|
|
4
|
-
"enabled": true,
|
|
5
|
-
"clientKind": "git",
|
|
6
|
-
"useIgnoreFile": true
|
|
7
|
-
},
|
|
8
|
-
"files": {
|
|
9
|
-
"includes": [
|
|
10
|
-
"**",
|
|
11
|
-
"!node_modules",
|
|
12
|
-
"!dist",
|
|
13
|
-
"!coverage",
|
|
14
|
-
"!package-lock.json"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"formatter": {
|
|
18
|
-
"enabled": true,
|
|
19
|
-
"indentStyle": "tab"
|
|
20
|
-
},
|
|
21
|
-
"linter": {
|
|
22
|
-
"enabled": false
|
|
23
|
-
},
|
|
24
|
-
"javascript": {
|
|
25
|
-
"formatter": {
|
|
26
|
-
"quoteStyle": "double",
|
|
27
|
-
"semicolons": "always",
|
|
28
|
-
"trailingCommas": "all"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|