@oh-my-pi/pi-catalog 17.4.2 → 18.0.0

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/src/types.ts CHANGED
@@ -880,6 +880,12 @@ export type ModelTokenizer =
880
880
  // Model interface for the unified model system
881
881
  export interface Model<TApi extends Api = Api> {
882
882
  id: string;
883
+ /**
884
+ * Whether provider-bound private-use glyphs require reversible ASCII tokenization.
885
+ * Materialized by `buildModel`; request handlers read this capability instead of
886
+ * inferring it from the transport API.
887
+ */
888
+ requiresGlyphTokenization?: boolean;
883
889
  /**
884
890
  * Model id to send on the wire when it differs from `id`. Used by catalog
885
891
  * variants that present one upstream model under several local entries —
@@ -1007,7 +1013,7 @@ export interface Model<TApi extends Api = Api> {
1007
1013
  * sparse override shape and nothing is resolved yet.
1008
1014
  */
1009
1015
  export interface ModelSpec<TApi extends Api = Api>
1010
- extends Omit<Model<TApi>, "compat" | "compatConfig" | "supportsComputerUseConfig"> {
1016
+ extends Omit<Model<TApi>, "compat" | "compatConfig" | "requiresGlyphTokenization" | "supportsComputerUseConfig"> {
1011
1017
  /** Sparse compatibility overrides; resolved into `Model.compat` by `buildModel`. */
1012
1018
  compat?: CompatConfigOf<TApi>;
1013
1019
  }