@unrender/cli 0.0.0-stage → 0.0.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/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # @unrender/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Turn a video your agent made (HyperFrames, AutoClip, or any project folder) into a draft you edit by hand in CapCut,
4
+ Premiere Pro or DaVinci Resolve: real tracks, editable text and the original media, not one flattened clip.
5
+
6
+ ## Set up (your agent does it)
7
+
8
+ Paste this into Claude Code or Codex:
9
+
10
+ > Set up Unrender for me: run `npx -y @unrender/cli setup` and follow what it says.
11
+
12
+ It adds Unrender to the agents on your computer (Claude Code, Codex, Claude Desktop) and opens your browser so you
13
+ can approve it. The key is kept in your Mac's Keychain or Windows' Credential Manager; nothing to type or export.
14
+ Then ask your agent: "Open this video in CapCut." Using Claude Desktop alone? Download the extension from
15
+ [app.unrender.mastudio.app](https://app.unrender.mastudio.app/computers).
16
+
17
+ ## Commands
18
+
19
+ ```
20
+ unrender setup add Unrender to your agents and sign in
21
+ unrender login | logout | status sign in through the browser; who you are and your credits
22
+ unrender capcut <project> --install a CapCut draft, straight into CapCut (quit CapCut first)
23
+ unrender premiere <project> --out <folder> a Premiere Pro package
24
+ unrender resolve <project> --out <folder> a DaVinci Resolve package
25
+ unrender projects your projects, from agents and the website
26
+ unrender open <project> --install a draft converted on the website, into CapCut here
27
+ unrender mcp the MCP server (setup registers it for you)
28
+ ```
29
+
30
+ Every command prints one JSON object. Converting costs credits: 1 per started minute of video, half for another
31
+ editor of the same video, free again within 7 days. Your footage stays on your computer; Unrender gets the timeline.
32
+
33
+ Mac (Apple silicon and Intel) and Windows. Needs Node 18 or later, and for HyperFrames projects whatever HyperFrames
34
+ needs (Node, Chrome, ffmpeg).
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env node
2
+ // `npx -y @unrender/cli <command>`: Unrender's engine, built for this computer (one optional dependency per platform,
3
+ // the way esbuild ships), with everything passed through. Agents run `setup` once; it copies the engine somewhere
4
+ // stable and registers its MCP server, so later runs don't go through npx at all (npm/README.md).
5
+ const { spawnSync } = require("node:child_process");
6
+ const fs = require("node:fs");
7
+ const path = require("node:path");
8
+
9
+ const target = `${process.platform}-${process.arch}`;
10
+ const pkg = {
11
+ "darwin-arm64": "@unrender/cli-darwin-arm64",
12
+ "darwin-x64": "@unrender/cli-darwin-x64",
13
+ "win32-x64": "@unrender/cli-win32-x64",
14
+ }[target];
15
+ if (!pkg) {
16
+ console.error(`Unrender runs on Mac and Windows for now, not ${target}.`);
17
+ process.exit(1);
18
+ }
19
+ let dir;
20
+ try {
21
+ dir = path.dirname(require.resolve(`${pkg}/package.json`));
22
+ } catch {
23
+ console.error(`Unrender's engine for this computer (${pkg}) didn't install. Try: npx -y @unrender/cli@latest ${process.argv.slice(2).join(" ")}`);
24
+ process.exit(1);
25
+ }
26
+ const exe = path.join(dir, "unrender", process.platform === "win32" ? "unrender.exe" : "unrender");
27
+ if (process.platform !== "win32") {
28
+ try {
29
+ fs.chmodSync(exe, 0o755); // npm keeps file modes, but not every installer does
30
+ } catch {}
31
+ }
32
+ const r = spawnSync(exe, process.argv.slice(2), { stdio: "inherit" });
33
+ if (r.error) {
34
+ console.error(`Couldn't start Unrender: ${r.error.message}`);
35
+ process.exit(1);
36
+ }
37
+ process.exit(r.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,21 @@
1
1
  {
2
2
  "name": "@unrender/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "Turn a video your agent made into a draft you edit by hand in CapCut, Premiere Pro or DaVinci Resolve.",
5
+ "homepage": "https://unrender.mastudio.app",
6
+ "license": "UNLICENSED",
7
+ "bin": {
8
+ "unrender": "bin/unrender.js"
9
+ },
10
+ "files": [
11
+ "bin"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "optionalDependencies": {
17
+ "@unrender/cli-darwin-arm64": "0.0.1",
18
+ "@unrender/cli-darwin-x64": "0.0.1",
19
+ "@unrender/cli-win32-x64": "0.0.1"
20
+ }
21
+ }