@clipit-ai/cli 0.2.3 → 0.2.4

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.
Files changed (3) hide show
  1. package/README.md +23 -9
  2. package/bin/clipit.mjs +1265 -62
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -51,6 +51,7 @@ clipit skills list --json
51
51
  clipit tools list --json
52
52
  clipit tools describe <functionName> --json
53
53
  clipit run <functionName> --params @params.json --max-credits 25 --json
54
+ clipit mcp stdio
54
55
  ```
55
56
 
56
57
  Video and clip helpers:
@@ -58,22 +59,24 @@ Video and clip helpers:
58
59
  ```bash
59
60
  clipit videos list --json
60
61
  clipit videos get <videoId> --json
61
- clipit videos upload ./source.mp4 --json
62
- clipit videos import-url "https://example.com/video" --json
63
- clipit videos transcribe <videoId> --json
62
+ clipit videos upload ./source.mp4 --confirm --json
63
+ clipit videos import-url "https://example.com/video" --confirm --json
64
+ clipit videos transcribe <videoId> --confirm --json
64
65
  clipit videos transcript <videoId> --json
65
- clipit videos suggest-clips <videoId> --count 5 --json
66
+ clipit videos suggest-clips <videoId> --count 5 --confirm --json
66
67
  clipit videos delete <videoId> --confirm --json
67
68
 
68
69
  clipit clips list --video-id <videoId> --json
69
70
  clipit clips get <clipId> --json
70
- clipit clips create --video-id <videoId> --start 12 --end 42 --title "Strong hook" --json
71
+ clipit clips create --video-id <videoId> --start 12 --end 42 --title "Strong hook" --confirm --json
71
72
  clipit clips update <clipId> --title "Better title" --json
72
- clipit clips render <clipId> --aspect 9:16 --quality high --json
73
+ clipit clips render <clipId> --aspect 9:16 --quality high --confirm --json
73
74
  clipit clips download <clipId> --json
74
75
  clipit jobs wait <jobId> --stream
75
76
  ```
76
77
 
78
+ `clips get`, `clips list`, `clips create`, and clip-creation tool results include a structured `media` payload. Agents should present `media.url` as an inline `video/mp4` attachment when `media.isEmbeddable` is true. If it is false, the clip has no rendered MP4 yet; show `media.statusLabel` and use `media.appUrl`/`appUrl` as the review or render link.
79
+
77
80
  Platform helpers:
78
81
 
79
82
  ```bash
@@ -90,10 +93,10 @@ clipit exports list --json
90
93
  clipit exports get <jobId> --json
91
94
  clipit exports wait <jobId> --stream
92
95
  clipit exports download <jobId> --open
93
- clipit exports cancel <jobId> --json
96
+ clipit exports cancel <jobId> --confirm --json
94
97
 
95
98
  clipit assets list --json
96
- clipit assets upload ./brand-logo.png --kind image --json
99
+ clipit assets upload ./brand-logo.png --kind image --confirm --json
97
100
  clipit assets delete <assetId> --confirm --json
98
101
 
99
102
  clipit thumbnails generate --clip-id <clipId> --prompt "High contrast thumbnail" --confirm --json
@@ -136,6 +139,10 @@ When the server returns HTTP 402, the CLI exits with code `13`. For spend-limit
136
139
 
137
140
  Large `videos upload` and `assets upload` commands print upload progress to stderr about every two seconds when stderr is a TTY and `--json` is not set.
138
141
 
142
+ Direct `videos upload` is capped at 100 MB by default so the CLI fails before large multipart bodies hit edge request limits. Use `clipit videos import-url` for URL sources, or set `CLIPIT_CLI_DIRECT_UPLOAD_MAX_BYTES` only when your target host supports larger direct uploads.
143
+
144
+ `clipit run importVideoFromUrl` and `clipit videos import-url` use the same job-backed URL import path. After either command starts a job, wait with `clipit jobs wait <jobId> --json`; failed URL-import jobs include retryability and unsupported-source fields when the server can classify the source. Long URL imports can remain at 40% while the server is actively downloading; use `phase`, `message`, `lastHeartbeatAt`, and `stalled` from `clipit jobs get|wait` rather than treating unchanged numeric progress as failure. When the server returns `minimumWaitSeconds`, `jobs wait` will honor that longer wait before timing out.
145
+
139
146
  ## Exit codes
140
147
 
141
148
  | Code | Meaning |
@@ -168,12 +175,19 @@ Workflow helpers:
168
175
 
169
176
  ```bash
170
177
  clipit ask "Create three clip candidates" --video-id <videoId> --quick --stream
178
+ clipit ask "Create and render three strong clips" --video-id <videoId> --auto-confirm-costly --stream
171
179
  clipit ask "Prepare a review cut" --clip-id <clipId> --conversation-id <sessionId> --no-wait --json
172
180
  clipit workflow status <jobId> --json
173
181
  clipit workflow wait <jobId> --stream
174
182
  clipit workflow approve <jobId> --approval-id <approvalId> --decision cheaper
175
183
  ```
176
184
 
185
+ ## MCP Stdio Bridge
186
+
187
+ Use `clipit mcp stdio` from MCP-compatible clients that can launch a local command. It speaks standard MCP `Content-Length` framed JSON-RPC over stdio, exposes ClipIt agent tools through the authenticated CLI profile, supports `initialize`, `tools/list`, and `tools/call`, and delegates execution to `/api/v1/agent/execute`.
188
+
189
+ Paid generation, publishing, deletion, and other metered tools still require an explicit confirmation step. If a tool call may spend credits or mutate user-visible ClipIt state, the MCP bridge returns a `requiresConfirmation` result instead of executing it; retry only after the user approves and include `confirmed: true` in the tool arguments.
190
+
177
191
  Navigation:
178
192
 
179
193
  ```bash
@@ -237,7 +251,7 @@ Only use `--allow-custom-host` for hosts you control or trust. It permits the CL
237
251
  | Area | Commands | Notes |
238
252
  | --- | --- | --- |
239
253
  | Auth and setup | `login`, `setup`, `logout`, `doctor`, `auth status`, `auth set-key`, `auth open-settings`, `auth profiles` | Browser-link login plus manual key fallback. |
240
- | Agent tools | `skills list`, `tools list`, `tools describe`, `run`, `ask`, `workflow status/wait/approve` | Direct tool execution and natural-language Clippy workflows. |
254
+ | Agent tools | `skills list`, `tools list`, `tools describe`, `run`, `ask`, `workflow status/wait/approve`, `mcp stdio` | Direct tool execution, natural-language Clippy workflows, and MCP stdio access. |
241
255
  | Context and navigation | `context use/show/clear/build`, `open`, `links`, `examples` | Persist active IDs and open ClipIt review surfaces. |
242
256
  | Videos and clips | `videos list/get/upload/import-url/transcribe/transcript/suggest-clips/delete`, `clips list/get/create/update/render/download/delete`, `jobs get/wait` | Core media and render job helpers. |
243
257
  | Credits | `credits balance`, `credits usage`, `credits estimate` | Estimate accepts `--metrics @file.json`. |