@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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # @howaboua/pi-subagent-review
2
2
 
3
+ ## 0.2.27
4
+
5
+ - New review configurations use GPT-6.2 Sol.
6
+ - Custom reviewer model IDs now use Pi's CLI instead of falling back when their provider is configured.
7
+
3
8
  ## 0.2.26
4
9
 
5
10
  - Requires Pi 1.5 or newer.
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
- "name": "@howaboua/pi-subagent-review",
3
- "version": "0.2.26",
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
- "biome.json",
16
- "CHANGELOG.md"
17
- ],
18
- "keywords": [
19
- "pi-package",
20
- "pi",
21
- "pi-extension",
22
- "review",
23
- "code-review",
24
- "subagent",
25
- "agent"
26
- ],
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/IgorWarzocha/howaboua-pi-stuff.git",
30
- "directory": "packages/pi-subagent-review"
31
- },
32
- "homepage": "https://github.com/IgorWarzocha/howaboua-pi-stuff/tree/main/packages/pi-subagent-review#readme",
33
- "bugs": {
34
- "url": "https://github.com/IgorWarzocha/howaboua-pi-stuff/issues"
35
- },
36
- "pi": {
37
- "extensions": [
38
- "./index.ts"
39
- ]
40
- },
41
- "peerDependencies": {
42
- "@howaboua/pi-codex-conversion": ">=4.0.10",
43
- "@earendil-works/pi-ai": ">=1.0.0",
44
- "@earendil-works/pi-coding-agent": ">=1.5.0",
45
- "@earendil-works/pi-tui": ">=1.0.0"
46
- },
47
- "peerDependenciesMeta": {
48
- "@howaboua/pi-codex-conversion": {
49
- "optional": true
50
- }
51
- },
52
- "scripts": {
53
- "check": "bun run lint && bun run typecheck",
54
- "prepack": "bun run check",
55
- "typecheck": "tsgo --noEmit",
56
- "lint": "biome check .",
57
- "format": "biome check --write ."
58
- },
59
- "devDependencies": {
60
- "@howaboua/pi-codex-conversion": "4.0.10",
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
- "@biomejs/biome": "^2.6.6"
66
- },
67
- "publishConfig": {
68
- "access": "public"
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
- const model = ctx.modelRegistry.find(parsed.provider, parsed.modelId);
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
@@ -16,7 +16,7 @@ export const REVIEW_PROMPT_PATH = path.join(
16
16
  );
17
17
 
18
18
  export const DEFAULT_CONFIG = {
19
- model: "openai-codex/gpt-6-sol",
19
+ model: "openai-codex/gpt-6.2-sol",
20
20
  thinking: "medium",
21
21
  summary: {
22
22
  enabled: true,
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
- }