car-runtime 0.19.0 → 0.20.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/index.d.ts +29 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -391,6 +391,35 @@ export class CarRuntime {
|
|
|
391
391
|
*/
|
|
392
392
|
registerModel(schemaJson: string): Promise<string>;
|
|
393
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Recommend models for this machine + intent. `useCase`/`tier` are
|
|
396
|
+
* snake_case enum values (e.g. "coding", "most_capable"); `cloudOk` lets
|
|
397
|
+
* cloud models compete. Returns the `RecommendationSet` JSON
|
|
398
|
+
* (`{ picks, notEnoughMemory, note }`).
|
|
399
|
+
*/
|
|
400
|
+
recommend(useCase: string, tier: string, cloudOk: boolean): Promise<string>;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Build a concrete onboarding plan (machine summary, top pick, alternatives,
|
|
404
|
+
* needs-more-memory, note) as JSON.
|
|
405
|
+
*/
|
|
406
|
+
setupPlan(useCase: string, tier: string, cloudOk: boolean): Promise<string>;
|
|
407
|
+
|
|
408
|
+
/** Detect upgrades (curated + upstream, channel-gated). Returns JSON. */
|
|
409
|
+
detectUpgrades(): Promise<string>;
|
|
410
|
+
|
|
411
|
+
/** Current proactive-upgrade decision (poll form). Returns JSON. */
|
|
412
|
+
checkUpgradeNudge(inferenceActive: boolean): Promise<string>;
|
|
413
|
+
|
|
414
|
+
/** Dismiss an upgrade nudge by its `dismissKey` so it never re-fires. */
|
|
415
|
+
dismissUpgrade(dismissKey: string): Promise<string>;
|
|
416
|
+
|
|
417
|
+
/** Get update preferences as JSON. */
|
|
418
|
+
updatePrefsGet(): Promise<string>;
|
|
419
|
+
|
|
420
|
+
/** Set update preferences (JSON `UpdatePreferences` shape). Returns stored prefs JSON. */
|
|
421
|
+
updatePrefsSet(prefsJson: string): Promise<string>;
|
|
422
|
+
|
|
394
423
|
/** Route a prompt. Returns the routing decision as JSON. */
|
|
395
424
|
routeModel(prompt: string): Promise<string>;
|
|
396
425
|
|