@blitzreels/eve

中文文档
0.2.1发布于 2026/07/30MITTypeScriptES Module近 30 天下载 5.6万

eve extension that gives durable AI agents BlitzReels video editing, clipping, generation, and export tools.

原始使用文档
文档目录9 节
  1. Install
  2. Mount
  3. Config
  4. Tools
  5. Overriding approval
  6. Skill
  7. Alternative: connect over MCP
  8. Develop
  9. Links

@blitzreels/eve

An eve extension that gives a durable AI agent BlitzReels video tools: long-form to short-form clipping, visual-QA repair, project inspection, snapshot previews, AI generation, and exports.

It wraps @blitzreels/sdk, so tool calls run in your app runtime against the same public API the CLI and MCP server use.

This repository contains only the Eve integration. The BlitzReels SDK, CLI, application, backend, infrastructure, and internal contracts are maintained privately.

Install

pnpm add @blitzreels/eve

Mount

Create the mount file in your agent. Its filename becomes the tool namespace.

import blitzreels from "@blitzreels/eve";

export default blitzreels({ apiKey: process.env.BLITZREELS_API_KEY! });

Create an API key from your BlitzReels workspace's Developer page, then put it in .env.local:

BLITZREELS_API_KEY=br_live_...

Keys are environment-bounded: br_live_... against production, br_test_... against a local or development runtime. Point baseUrl at the matching host when you use a test key.

The mount above exposes blitzreels__list_projects, blitzreels__create_clip_batch, and so on.

Config

KeyRequiredDefault
apiKeyyes—
baseUrlnohttps://www.blitzreels.com/api/v1

Tools

ToolEffectApproval
list_projectsread—
create_projectwrite—
inspect_projectread—
render_snapshotread (renders preview frames)—
list_mediaread—
get_mediaread—
import_youtubewrite, downloads sourceonce()
create_clip_batchwrite, spends creditsonce()
get_clip_batchread—
list_clipsread—
reselect_clipwrite—
repair_clipwrite—
export_clipwrite, rendersonce()
list_caption_wordsread—
set_caption_lookwrite—
delete_clip_batchdestructive writealways()
start_exportwrite, rendersonce()
get_exportread—
generate_videowrite, spends creditsonce()
generate_imagewrite, spends creditsonce()
generate_faceless_videowrite, spends creditsonce()
get_generationread—

Every tool returns { ok: true, data } or { ok: false, error }. The error carries code, retryable, status, request_id, and upgrade_url so an agent can decide between retrying, stopping, and reporting a plan limit — it never throws a raw HTTP failure into the model's context.

Credit-spending tools derive their idempotency key from eve's durable callId, so a step that eve re-runs after an interruption reuses the original BlitzReels receipt instead of paying twice.

Overriding approval

Tighten or loosen a gate from the consuming agent with a directory mount:

import { export_clip } from "@blitzreels/eve/tools";
import { defineTool } from "eve/tools";
import { always } from "eve/tools/approval";

export default defineTool({ ...export_clip, approval: always() });

Use disableTool() in the same slot to remove a tool entirely.

Skill

The extension ships a blitzreels-clipping skill: the long-form-to-shorts procedure, the clipPresetId decision table, the QA repairMode decision table, and the polling contract. eve loads it on demand when a turn matches its description.

Alternative: connect over MCP

If you want the hosted tool surface instead of typed local tools, BlitzReels also runs a Streamable HTTP MCP server at https://www.blitzreels.com/api/mcp. It authenticates the signed-in user over OAuth — an API key is rejected — so wire it through Vercel Connect and give the eve session a user principal from route auth or a platform channel.

import { connect } from "@vercel/connect/eve";
import { defineMcpClientConnection } from "eve/connections";
import { once } from "eve/tools/approval";

export default defineMcpClientConnection({
  url: "https://www.blitzreels.com/api/mcp",
  description: "BlitzReels: clip long videos into shorts, edit projects, and export.",
  auth: connect("www.blitzreels.com/blitzreels"),
  approval: once(),
});

Use the extension when the agent acts as a workspace with its own API key, and when you want typed tools, tuned descriptions, approval defaults, and idempotent retries. Use the MCP connection when each end user should act as themselves, and when you want whatever the server exposes today with no package to upgrade. The connector UID above is whatever vercel connect create returns for your project.

Develop

pnpm build
pnpm typecheck

eve dev in a consuming agent rebuilds the extension on source changes.

版本与发布记录

@blitzreels/eve 共发布 3 个版本,首次发布于 2026/07/25;过去 12 个月发布了 3 个版本。

版本发布日期距今
0.2.1latest2026/07/303 个月前
0.2.02026/07/303 个月前
0.1.02026/07/253 个月前

关于 @blitzreels/eve 的常见问题

@blitzreels/eve 是什么?

eve extension that gives durable AI agents BlitzReels video editing, clipping, generation, and export tools.

如何安装 @blitzreels/eve?

在项目目录运行 npm install @blitzreels/eve,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:eve(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@blitzreels/eve 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@blitzreels/eve 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@blitzreels/eve 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@blitzreels/eve 可以商用吗?

@blitzreels/eve 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@blitzreels/eve 的下载量有多少?

根据 npm 官方下载统计,@blitzreels/eve 在 2026/10/09 – 2026/11/07 这 30 天内被下载 56,223 次,日均约 1,874 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@blitzreels/eve 还在维护吗?

最新版本 0.2.1 发布于 2026/07/30(3 个月前);至今共发布 3 个版本,其中过去 12 个月发布了 3 个;首次发布于 2026/07/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。