pi-ghost-autocomplete 0.16.3 → 0.17.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.
@@ -37,6 +37,14 @@ export declare function verdictCacheKey(draft: string, keyPrefixLen: number): st
37
37
  export declare function buildClassifierContext(draft: string): unknown;
38
38
  /** Parse `PI_GHOST_INTENT_CLASSIFIER_TIMEOUT_MS` (clamped to [50, 5000]). */
39
39
  export declare function classifierTimeoutFromEnv(raw: string | undefined, fallback: number): number;
40
+ /**
41
+ * Deterministic `auto` pick from the available-classifier pool: best tier
42
+ * first, then the shortest lowercased `provider/id` key, then lexicographic
43
+ * — stable regardless of registry iteration order (the same tie-breaks as
44
+ * `model-picker.ts`). Returns the winning pool entry as-is (models stay
45
+ * opaque references for `classify()`), or null for an empty pool.
46
+ */
47
+ export declare function pickAutoClassifier(pool: readonly unknown[]): unknown;
40
48
  /** Parse `PI_GHOST_INTENT_CLASSIFIER_MIN_CONFIDENCE` (clamped to [0, 1]). */
41
49
  export declare function classifierMinConfidenceFromEnv(raw: string | undefined, fallback: number): number;
42
50
  /** Parse `PI_GHOST_INTENT_CLASSIFIER_DEBOUNCE_MS` (clamped to [0, 1000]). */