pi-cursor-sdk 0.1.23 → 0.1.25

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
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.25 - 2026-05-28
6
+
7
+ ### Fixed
8
+
9
+ - Keep fallback Cursor models visible before `/login` on pi 0.77 by using a non-secret provider API-key sentinel while still resolving real keys from pi auth, `--api-key`, and `CURSOR_API_KEY`.
10
+
11
+ ## 0.1.24 - 2026-05-28
12
+
13
+ ### Changed
14
+
15
+ - Refresh the bundled Cursor fallback model catalog from `@cursor/sdk@1.0.15`, including Claude Opus 4.8 context variants and the updated `opus-latest` alias target.
16
+
5
17
  ## 0.1.23 - 2026-05-28
6
18
 
7
19
  ### Changed
package/README.md CHANGED
@@ -129,7 +129,7 @@ Choose Cursor models interactively with `/model`, or pass a model on the command
129
129
  pi --model cursor/composer-2.5
130
130
  pi --model cursor/gpt-5.5@1m
131
131
  pi --model cursor/gpt-5.5@272k
132
- pi --model cursor/claude-opus-4-7@300k
132
+ pi --model cursor/claude-opus-4-8@300k
133
133
  ```
134
134
 
135
135
  How to read model IDs:
@@ -165,8 +165,8 @@ Recommended context-variant ID format:
165
165
  ```text
166
166
  cursor/gpt-5.5@1m
167
167
  cursor/gpt-5.5@272k
168
- cursor/claude-opus-4-7@1m
169
- cursor/claude-opus-4-7@300k
168
+ cursor/claude-opus-4-8@1m
169
+ cursor/claude-opus-4-8@300k
170
170
  cursor/composer-2.5
171
171
  ```
172
172
 
@@ -183,7 +183,7 @@ Avoid this old parameter encoding:
183
183
 
184
184
  ```text
185
185
  cursor/gpt-5.5:context=1m;fast=false;reasoning=medium
186
- cursor/claude-opus-4-7:context=1m;effort=xhigh;thinking=true
186
+ cursor/claude-opus-4-8:context=1m;effort=xhigh;thinking=true
187
187
  ```
188
188
 
189
189
  Reason:
@@ -333,8 +333,8 @@ Examples:
333
333
  cursor/gpt-5.5@272k
334
334
  cursor/gpt-5.5@1m
335
335
 
336
- cursor/claude-opus-4-7@300k
337
- cursor/claude-opus-4-7@1m
336
+ cursor/claude-opus-4-8@300k
337
+ cursor/claude-opus-4-8@1m
338
338
 
339
339
  cursor/grok-4.3@200k
340
340
  cursor/grok-4.3@1m
@@ -630,12 +630,12 @@ Cursor params: reasoning=low; fast=true
630
630
 
631
631
  No context variant.
632
632
 
633
- ### `claude-opus-4-7`
633
+ ### `claude-opus-4-8`
634
634
 
635
635
  Initial Cursor default:
636
636
 
637
637
  ```text
638
- pi model: cursor/claude-opus-4-7@1m
638
+ pi model: cursor/claude-opus-4-8@1m
639
639
  Cursor params: thinking=true; context=1m; effort=xhigh
640
640
  pi thinking: xhigh
641
641
  ```
@@ -643,7 +643,7 @@ pi thinking: xhigh
643
643
  After selecting the 300k variant:
644
644
 
645
645
  ```text
646
- pi model: cursor/claude-opus-4-7@300k
646
+ pi model: cursor/claude-opus-4-8@300k
647
647
  Cursor params: thinking=true; context=300k; effort=xhigh
648
648
  pi contextWindow: 300000
649
649
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cursor-sdk",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "pi provider extension backed by @cursor/sdk local agents",
5
5
  "author": "Mitch Fultz (https://github.com/fitchmultz)",
6
6
  "license": "MIT",
@@ -1,10 +1,16 @@
1
1
  export const CURSOR_API_KEY_ENV_VAR = "CURSOR_API_KEY";
2
- export const CURSOR_API_KEY_CONFIG_VALUE = `$${CURSOR_API_KEY_ENV_VAR}`;
2
+
3
+ // Non-secret literal sentinel for pi's provider registry. Pi 0.77 treats `$ENV_VAR`
4
+ // values as unconfigured when the env var is absent, which hides fallback models
5
+ // before `/login`. Keep the provider available and resolve the real key in the
6
+ // Cursor provider turn path from pi auth, --api-key, or CURSOR_API_KEY.
7
+ export const CURSOR_API_KEY_CONFIG_VALUE = "pi-cursor-sdk-cursor-api-key-placeholder";
3
8
 
4
9
  const CURSOR_API_KEY_PLACEHOLDERS = new Set([
5
10
  CURSOR_API_KEY_ENV_VAR,
6
- CURSOR_API_KEY_CONFIG_VALUE,
11
+ `$${CURSOR_API_KEY_ENV_VAR}`,
7
12
  `\${${CURSOR_API_KEY_ENV_VAR}}`,
13
+ CURSOR_API_KEY_CONFIG_VALUE,
8
14
  ]);
9
15
 
10
16
  export function resolveCursorApiKey(apiKey?: string): string | undefined {