@broberg/ai-sdk 0.37.0 → 0.37.1

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/dist/index.d.ts CHANGED
@@ -1266,7 +1266,8 @@ declare const animateInputSchema: z.ZodObject<{
1266
1266
  }>]>, "many">>;
1267
1267
  purpose: z.ZodOptional<z.ZodString>;
1268
1268
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1269
- /** Input image: a URL or raw bytes (uploaded to fal storage). */
1269
+ /** Input image: a URL or raw bytes. Where bytes are uploaded is the ADAPTER's
1270
+ * business — fal uses fal storage, the Gemini/Veo default inlines them. */
1270
1271
  image: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
1271
1272
  /** Motion/scene prompt. */
1272
1273
  prompt: z.ZodOptional<z.ZodString>;
@@ -1931,7 +1932,13 @@ interface AiClient {
1931
1932
  video(input: VideoInput): Promise<ChatResult>;
1932
1933
  translate(input: TranslateInput): Promise<TranslateResult>;
1933
1934
  image(input: ImageInput): Promise<ImageResult>;
1934
- /** Image-to-video (F024) — animate a still into a short clip → { url, usage }. fal. */
1935
+ /** Image-to-video (F024) — animate a still into a short clip → { url, usage }.
1936
+ * gemini (Veo 3.1) by default; override to fal for Kling/Seedance.
1937
+ *
1938
+ * THIS one is the tooltip a consumer sees, because it sits on the method they call.
1939
+ * F045 fixed the same stale "fal." on ProviderAdapter and missed this copy — super
1940
+ * measured the published 0.36.7 tarball and found it still here, which is why the
1941
+ * drift guard now walks the FACADE as well as the adapter interface. */
1935
1942
  animate(input: AnimateInput): Promise<AnimateResult>;
1936
1943
  /** Train a style/brand LoRA from images (F021) → { loraUrl, configUrl }. fal. */
1937
1944
  trainStyle(input: TrainStyleInput): Promise<TrainStyleResult>;
@@ -2207,8 +2214,8 @@ declare const falStubAdapter: ProviderAdapter;
2207
2214
  * wires the live adapters. */
2208
2215
  declare const stubProviders: Record<string, ProviderAdapter>;
2209
2216
 
2210
- declare const VERSION: "0.37.0";
2211
- declare const SDK_TAG: "@broberg/ai-sdk@0.37.0";
2217
+ declare const VERSION: "0.37.1";
2218
+ declare const SDK_TAG: "@broberg/ai-sdk@0.37.1";
2212
2219
 
2213
2220
  /** Built-in defaults. Every entry is overridable via AiConfig.defaults or a
2214
2221
  * per-call override.
package/dist/index.js CHANGED
@@ -2896,7 +2896,8 @@ var imageInputSchema = z.object({
2896
2896
  ...callOptions
2897
2897
  });
2898
2898
  var animateInputSchema = z.object({
2899
- /** Input image: a URL or raw bytes (uploaded to fal storage). */
2899
+ /** Input image: a URL or raw bytes. Where bytes are uploaded is the ADAPTER's
2900
+ * business — fal uses fal storage, the Gemini/Veo default inlines them. */
2900
2901
  image: z.union([z.string(), z.instanceof(Uint8Array)]),
2901
2902
  /** Motion/scene prompt. */
2902
2903
  prompt: z.string().optional(),
@@ -2996,8 +2997,8 @@ var aiConfigSchema = z.object({
2996
2997
  });
2997
2998
 
2998
2999
  // src/version.ts
2999
- var VERSION = "0.37.0";
3000
- var SDK_TAG = "@broberg/ai-sdk@0.37.0";
3000
+ var VERSION = "0.37.1";
3001
+ var SDK_TAG = "@broberg/ai-sdk@0.37.1";
3001
3002
 
3002
3003
  // src/cost/sinks/upmetrics.ts
3003
3004
  function upmetricsSink(config) {