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.
- package/extensions/index.ts +7 -2
- package/package.json +1 -1
package/extensions/index.ts
CHANGED
|
@@ -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
|
-
|
|
38
|
-
// all routing and auth internally via the
|
|
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,
|