@vanillaskyai/video 0.8.6 → 0.8.7

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/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ VanillaSky follows semantic versioning. This changelog begins with the 0.1 beta.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 0.8.7
8
+
9
+ - Show a clear request-limit error when a suggested opening cannot receive an answer, instead of presenting the opening as a completed video. Preserve completed scenes when a response is interrupted.
10
+
7
11
  ## 0.8.6
8
12
 
9
13
  - Show poster images on suggestion cards while videos are paused or autoplay is blocked, and use conversation bubbles for the Sessions button.
package/dist/react.js CHANGED
@@ -2317,7 +2317,7 @@ function errorFrom(cause) {
2317
2317
  return new VideoError("Video chat could not produce a playable response", { code: "video_chat_failed", recoverable: false });
2318
2318
  }
2319
2319
  async function responseError(response) {
2320
- return new VideoError("Video chat could not produce a playable response", {
2320
+ return new VideoError(response.status === 429 ? "The conversation limit has been reached. Please try again later." : "Video chat could not produce a playable response", {
2321
2321
  code: "http_error",
2322
2322
  status: response.status,
2323
2323
  recoverable: false
@@ -2793,9 +2793,6 @@ function useVideoChatSession(options = {}) {
2793
2793
  }
2794
2794
  terminal = true;
2795
2795
  const recovered = received.flatMap((scene, index) => scene ? [ready[index] ?? { ...scene, timing: { fixedDuration: 5 } }] : []);
2796
- if (recovered.length === 0 && spokenHook) {
2797
- recovered.push({ id: `${id}-opening`, templateId: "media", variables: { texts: spokenHook, mediaType: "gradient" }, narration: spokenHook, timing: { fixedDuration: Math.max(4, spokenHook.split(/\s+/u).length / 2.5) } });
2798
- }
2799
2796
  if (recovered.length > 0) {
2800
2797
  style ??= { brand: resolveVideoBrand(currentOptions.brand), density: "normal", motion: "normal", defaultBackgroundEffect: "static", defaultTextArchetype: "subtle", defaultTransition: "crossfade" };
2801
2798
  openingController.abort(new DOMException("Continuing completed response", "AbortError"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanillaskyai/video",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Open-source voice-and-video chat SDK for AI applications.",
5
5
  "keywords": [
6
6
  "video-chat",
@@ -9,7 +9,7 @@
9
9
  "preview": "vite preview"
10
10
  },
11
11
  "dependencies": {
12
- "@vanillaskyai/video": "0.8.6",
12
+ "@vanillaskyai/video": "0.8.7",
13
13
  "react": "^19.2.8",
14
14
  "react-dom": "^19.2.8",
15
15
  "@ai-sdk/anthropic": "^3.0.0",