@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.
@@ -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<"image" | "tts" | "stt", Api>>;
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
  }
@@ -331,7 +331,9 @@ export async function fetchDevinModels(
331
331
  supportedModelDisplays: [...DEVIN_SUPPORTED_MODEL_DISPLAYS],
332
332
  }),
333
333
  });
334
- const body = toBinary(GetCliModelConfigsRequestSchema, request);
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",