pi-devin-auth 0.1.0 → 0.1.1

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.
@@ -29,13 +29,18 @@ const PROVIDER_ID = 'devin';
29
29
  const PROVIDER_NAME = 'Devin (Cognition)';
30
30
  const OAUTH_NAME = 'Devin (Cognition / Windsurf)';
31
31
  const API_IDENTIFIER = 'devin-cloud';
32
+ // pi requires baseUrl when models are defined, even with streamSimple.
33
+ // streamSimple ignores this — it routes internally — but the field must be present.
34
+ const PLACEHOLDER_BASE_URL = 'https://server.codeium.com';
32
35
 
33
36
  export default async function (pi: ExtensionAPI): Promise<void> {
34
37
  pi.registerProvider(PROVIDER_ID, {
35
38
  name: PROVIDER_NAME,
36
39
  api: API_IDENTIFIER,
37
- // No baseUrl/apiKey at the provider level — streamSimple handles
38
- // all routing and auth internally via the OAuth-issued api_key.
40
+ baseUrl: PLACEHOLDER_BASE_URL,
41
+ // streamSimple handles all routing and auth internally via the
42
+ // OAuth-issued api_key. baseUrl is only here to satisfy pi's
43
+ // validation requirement when models are defined.
39
44
  models: FALLBACK_MODELS,
40
45
  oauth: {
41
46
  name: OAUTH_NAME,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-devin-auth",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Pi coding agent extension for Devin/Cognition (Windsurf) OAuth + streaming",
5
5
  "type": "module",
6
6
  "keywords": [