Skip to content

Commit da0feb1

Browse files
authored
docs: fix grok video snippets failing kiira; publish @tanstack/ai-angular (#826)
docs: fix grok video snippets so kiira passes; publish ai-angular The grok video-generation snippets in docs/adapters/grok.md and docs/media/video-generation.md referenced generateVideo/grokVideo without importing them, failing the test:kiira gate on main and aborting every release run before changeset publish. Make each standalone fence self-contained with its own imports, and add a changeset to cut a clean @tanstack/ai-angular release (npm 0.0.1 shipped unresolved workspace: specifiers from a manual publish).
1 parent 83d8097 commit da0feb1

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

.changeset/publish-ai-angular.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-angular': patch
3+
---
4+
5+
Publish a working `@tanstack/ai-angular` build. The only version previously on npm (`0.0.1`) was seeded with a manual `npm publish` and shipped unresolved `workspace:` specifiers in its `dependencies`/`peerDependencies`, making it uninstallable (`EUNSUPPORTEDPROTOCOL`). Releasing through the changesets pipeline rewrites those specifiers to concrete versions.

docs/adapters/grok.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ console.log(status.url); // hosted .mp4 URL
270270
For image-to-video (required for `grok-imagine-video-1.5`, optional for `grok-imagine-video`), include an `image` prompt part as the starting frame and describe the desired motion in the text part. URL sources are fetched by xAI's servers (so they must be publicly reachable); use a `data` source for a base64 starting frame:
271271

272272
```typescript
273+
import { generateVideo } from "@tanstack/ai";
274+
import { grokVideo } from "@tanstack/ai-grok";
275+
273276
const { jobId } = await generateVideo({
274277
adapter: grokVideo("grok-imagine-video-1.5"),
275278
prompt: [

docs/media/video-generation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ const { jobId } = await generateVideo({
598598
Image-to-video (required for `grok-imagine-video-1.5`) — include an `image` prompt part as the starting frame. URL sources are fetched by xAI's servers (so they must be publicly reachable); use a `data` source for a base64 starting frame:
599599

600600
```typescript
601+
import { generateVideo } from '@tanstack/ai'
602+
import { grokVideo } from '@tanstack/ai-grok'
603+
601604
const { jobId } = await generateVideo({
602605
adapter: grokVideo('grok-imagine-video-1.5'),
603606
prompt: [
@@ -615,6 +618,8 @@ const { jobId } = await generateVideo({
615618
Both models accept any whole second in the **1–15** range. A raw `duration` is coerced into that range rather than rejected — values are clamped to `[1, 15]` and rounded to the nearest second. Inspect or pre-snap the range the same way as Veo:
616619

617620
```typescript
621+
import { grokVideo } from '@tanstack/ai-grok'
622+
618623
const adapter = grokVideo('grok-imagine-video')
619624

620625
adapter.availableDurations() // { kind: 'range', min: 1, max: 15, step: 1, unit: 'seconds' }

0 commit comments

Comments
 (0)