@oh-my-pi/pi-catalog 18.2.7 → 18.2.8
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 +10 -3
- package/README.md +18 -18
- package/dist/types/compat/types.d.ts +2 -2
- package/dist/types/types.d.ts +5 -2
- package/package.json +38 -38
- package/src/compat/rules/README.md +33 -32
- package/src/compat/rules/providers/openai.kdl +58 -0
- package/src/compat/rules/providers/openrouter.kdl +108 -0
- package/src/compat/rules.json +12526 -1
- package/src/compat/types.ts +2 -2
- package/src/discovery/devin.ts +3 -1
- package/src/models.json +1 -1
- package/src/provider-models/openai-compat.ts +231 -119
- package/src/types.ts +19 -1
package/src/compat/types.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `behavior.ts`, `resolve.ts`) exposes to consumers.
|
|
6
6
|
*/
|
|
7
7
|
import type { Effort } from "../effort";
|
|
8
|
-
import type { Api, ThinkingControlMode, TokenCost } from "../types";
|
|
8
|
+
import type { Api, KindApiKind, ThinkingControlMode, TokenCost } from "../types";
|
|
9
9
|
import type { RevisionOp } from "./revision";
|
|
10
10
|
|
|
11
11
|
/** Class-membership matcher kinds, most to least specific. */
|
|
@@ -648,7 +648,7 @@ export interface CompiledProvider {
|
|
|
648
648
|
/** Present only for providers enrolled in `generate-models.ts` discovery. */
|
|
649
649
|
discovery?: CompiledProviderDiscovery;
|
|
650
650
|
/** Non-chat model kinds mapped to their runtime transport APIs. */
|
|
651
|
-
kindApis?: Partial<Record<
|
|
651
|
+
kindApis?: Partial<Record<KindApiKind, Api>>;
|
|
652
652
|
/** Authored bundled rows, when the provider cannot be discovered at generation time. */
|
|
653
653
|
seed?: CompiledSeed;
|
|
654
654
|
}
|
package/src/discovery/devin.ts
CHANGED
|
@@ -331,7 +331,9 @@ export async function fetchDevinModels(
|
|
|
331
331
|
supportedModelDisplays: [...DEVIN_SUPPORTED_MODEL_DISPLAYS],
|
|
332
332
|
}),
|
|
333
333
|
});
|
|
334
|
-
|
|
334
|
+
// `toBinary` always allocates a fresh ArrayBuffer-backed view; the DOM
|
|
335
|
+
// `BodyInit` typing just cannot see that through its ArrayBufferLike signature.
|
|
336
|
+
const body = toBinary(GetCliModelConfigsRequestSchema, request) as Uint8Array<ArrayBuffer>;
|
|
335
337
|
|
|
336
338
|
const headers: Record<string, string> = {
|
|
337
339
|
"content-type": "application/proto",
|