clipbait 1.1.0 → 1.2.0
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/index.js +11 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -75,16 +75,19 @@ Auth: CLIPBAIT_API_KEY env var or ~/.clipbait.json (via 'clipbait login').`;
|
|
|
75
75
|
const cmdDir = path.join(os.homedir(), ".claude", "commands");
|
|
76
76
|
fs.mkdirSync(cmdDir, { recursive: true });
|
|
77
77
|
const slash = `---
|
|
78
|
-
description: Turn
|
|
79
|
-
argument-hint: <video-url>
|
|
78
|
+
description: Turn any video into viral clips with Clipbait
|
|
79
|
+
argument-hint: <video-url> [what you want]
|
|
80
80
|
---
|
|
81
|
-
|
|
81
|
+
You have the \`clipbait\` MCP tools connected. The user's request: $ARGUMENTS
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
Do this, conversationally and fast:
|
|
84
|
+
1. If there is no video URL in the request, ask for one (YouTube, Twitch VOD, Rumble, or Ganjing World). Otherwise don't ask for confirmation, just go.
|
|
85
|
+
2. Read the intent and set params for \`generate_clips\`:
|
|
86
|
+
- vertical / shorts / tiktok / reels, or nothing specified => aspectRatio "9:16". landscape / widescreen / youtube => "16:9".
|
|
87
|
+
- if they mention a number of clips, use it as maxClips (1 to 20), otherwise 9.
|
|
88
|
+
3. Call \`generate_clips\`, then poll \`get_job\` with the returned jobId every 30 seconds until status is "complete". Report progress between polls.
|
|
89
|
+
4. When complete, list each finished clip as a numbered list: its hook and its URL.
|
|
90
|
+
5. Then offer follow-ups and act on them by calling the tools again: regenerate at a different aspect ratio, pull more clips, or probe another video with \`probe_video\`.
|
|
88
91
|
`;
|
|
89
92
|
fs.writeFileSync(path.join(cmdDir, "clipbait.md"), slash);
|
|
90
93
|
console.log("✓ Installed /clipbait command → " + path.join(cmdDir, "clipbait.md"));
|
package/package.json
CHANGED