@buoy-gg/ask-buoy 7.0.66 → 7.0.68

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,9 @@
1
+ import type { HostedModelId } from "../types";
2
+ export declare const DEFAULT_HOSTED_MODEL: HostedModelId;
3
+ export declare const hostedModelSetting: {
4
+ get: () => HostedModelId;
5
+ subscribe(fn: () => void): () => void;
6
+ set(next: HostedModelId): void;
7
+ };
8
+ export declare function useHostedModel(): HostedModelId;
9
+ //# sourceMappingURL=hostedModelSetting.d.ts.map
@@ -41,5 +41,5 @@ export interface AskBuoyController {
41
41
  /** Which ones, for the empty state's chips. */
42
42
  availableToolIds: string[];
43
43
  }
44
- export declare function useAskBuoy(config: AskBuoyConfig | undefined): AskBuoyController;
44
+ export declare function useAskBuoy(rawConfig: AskBuoyConfig | undefined): AskBuoyController;
45
45
  //# sourceMappingURL=useAskBuoy.d.ts.map
@@ -151,5 +151,19 @@ export interface AskBuoyConfig {
151
151
  * are the gateway's error codes and credit frames trusted.
152
152
  */
153
153
  hosted?: boolean;
154
+ /**
155
+ * Hosted only: the models a person can pick in settings, each with its own
156
+ * route on the gateway. Set by `hostedAskBuoy()`. The top-level endpoint,
157
+ * protocol and model are the Luna defaults.
158
+ */
159
+ hostedModels?: Partial<Record<HostedModelId, HostedModelRoute>>;
160
+ /** Set by `pickHostedModel`: the model that answers when the first one is down. */
161
+ hostedFallback?: HostedModelRoute;
162
+ }
163
+ export type HostedModelId = "luna" | "claude";
164
+ export interface HostedModelRoute {
165
+ endpoint: string;
166
+ protocol: "anthropic" | "openai";
167
+ model: string;
154
168
  }
155
169
  //# sourceMappingURL=types.d.ts.map