@jeffreyjyz/opencode-command-code 0.2.8 → 0.2.11

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.
@@ -0,0 +1,29 @@
1
+ export type InputModality = "text" | "image" | "audio" | "video" | "pdf";
2
+ /** Per-1M-token rates, plus efforts (null when the model advertises none). */
3
+ export interface ModelCost {
4
+ input: number;
5
+ output: number;
6
+ cacheRead: number;
7
+ cacheWrite: number;
8
+ }
9
+ export interface CatalogEntry {
10
+ name: string;
11
+ context: number;
12
+ efforts: readonly string[] | null;
13
+ cost: ModelCost;
14
+ modalities: readonly InputModality[];
15
+ }
16
+ export declare const CATALOG_VERSION: "1.65.0";
17
+ /** Every model the CLI table carried, keyed by the API's model id. */
18
+ export declare const MODEL_CATALOG: Readonly<Record<string, CatalogEntry>>;
19
+ /** Text-only default for any id this table does not list. */
20
+ export declare const TEXT_ONLY: readonly InputModality[];
21
+ export declare function inputModalities(id: string): readonly InputModality[];
22
+ export declare function supportsImage(id: string): boolean;
23
+ export declare function modelCost(id: string): ModelCost | undefined;
24
+ /** Reasoning-capable when it advertises explicit effort levels. */
25
+ export declare function isReasoningModel(id: string): boolean;
26
+ /** opencode effort variants for ctrl+t cycling. */
27
+ export declare function reasoningVariants(id: string): Record<string, {
28
+ reasoningEffort: string;
29
+ }> | undefined;