getagenthook 0.2.1 → 1.0.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/README.md CHANGED
@@ -10,7 +10,7 @@ agenthook login --key <your-api-key>
10
10
  agenthook tools
11
11
  agenthook run make_video --prompt "A barista holds a latte and says: try our new oat flat white" --quality pro --aspect-ratio 9:16 --captions
12
12
  agenthook run make_image --prompt "studio shot of a ceramic mug" --count 2
13
- agenthook run caption_video --video-url https://…/video.mp4 --style tiktok
13
+ agenthook run caption_video --video-url https://…/video.mp4 --style chunk
14
14
  agenthook list --search "flat white"
15
15
  agenthook balance
16
16
  agenthook history
package/dist/cli.js CHANGED
@@ -33,8 +33,10 @@ Commands:
33
33
  Run flags:
34
34
  --prompt <text> --ref <url> (repeatable) --owns-references --model <m>
35
35
  --quality <standard|pro> --duration <s> --aspect-ratio <r> --no-audio
36
- --captions --caption-style <movie|tiktok> --enhance-prompt
37
- --video-url <url> --style <movie|tiktok> --count <n> --resolution <1k|2k|4k>
36
+ --captions --caption-style <chunk|highlight|subtitle> --caption-size <small|medium|large>
37
+ --caption-placement <top|center|bottom> --enhance-prompt
38
+ --video-url <url> --style <chunk|highlight|subtitle> --size <small|medium|large>
39
+ --placement <top|center|bottom> --count <n> --resolution <1k|2k|4k>
38
40
  --dry-run price + validate against the server without spending credits
39
41
 
40
42
  Auth: pass --key, set AGENTHOOK_API_KEY, or run auth:login (precedence: flag > env > file).
@@ -58,9 +58,13 @@ const RUN_FLAGS = {
58
58
  "no-audio": "boolean",
59
59
  captions: "boolean",
60
60
  "caption-style": "string",
61
+ "caption-size": "string",
62
+ "caption-placement": "string",
61
63
  "enhance-prompt": "boolean",
62
64
  "video-url": "string",
63
65
  style: "string",
66
+ size: "string",
67
+ placement: "string",
64
68
  count: "number",
65
69
  resolution: "string",
66
70
  language: "string",
@@ -26,8 +26,23 @@ exports.TOOLS_SNAPSHOT = [
26
26
  default: "9:16",
27
27
  },
28
28
  audio: { type: "boolean", default: true },
29
- captions: { type: "boolean", default: false },
30
- caption_style: { type: "string", enum: ["movie", "tiktok"], default: "tiktok" },
29
+ captions: {
30
+ type: "boolean",
31
+ default: false,
32
+ description: "Burn spoken-word captions into the video. When true the run returns two files: output[0] is captioned, output[1] is the original uncaptioned video.",
33
+ },
34
+ caption_style: {
35
+ type: "string",
36
+ enum: ["chunk", "highlight", "subtitle"],
37
+ default: "chunk",
38
+ description: "Caption look. chunk = 2–4 words per line, centered, bold with a heavy outline (the standard TikTok/Reels style). highlight = the same block with the active word lit in colour (the Hormozi/retention style). subtitle = one clean line at the bottom (cinematic / YouTube).",
39
+ },
40
+ caption_size: { type: "string", enum: ["small", "medium", "large"], default: "medium", description: "Caption text size." },
41
+ caption_placement: {
42
+ type: "string",
43
+ enum: ["top", "center", "bottom"],
44
+ description: "Where captions sit. Defaults per style: chunk/highlight → center, subtitle → bottom.",
45
+ },
31
46
  enhance_prompt: { type: "boolean", default: false },
32
47
  influencer: {
33
48
  type: "string",
@@ -62,10 +77,21 @@ exports.TOOLS_SNAPSHOT = [
62
77
  },
63
78
  {
64
79
  name: "caption_video",
65
- description: "Burn styled subtitles into an existing video.",
80
+ description: "Burn styled captions into an existing video. Returns two files: output[0] is the captioned video, output[1] is the original uncaptioned video — so you can re-caption with a different style without regenerating. (A speechless video returns just the original.)",
66
81
  params: {
67
82
  video_url: { type: "string", required: true },
68
- style: { type: "string", enum: ["movie", "tiktok"], default: "movie" },
83
+ style: {
84
+ type: "string",
85
+ enum: ["chunk", "highlight", "subtitle"],
86
+ default: "chunk",
87
+ description: "Caption look. chunk = bold centered word blocks (standard TikTok/Reels). highlight = active word lit in colour (Hormozi/retention). subtitle = clean bottom line (cinematic / YouTube).",
88
+ },
89
+ size: { type: "string", enum: ["small", "medium", "large"], default: "medium", description: "Caption text size." },
90
+ placement: {
91
+ type: "string",
92
+ enum: ["top", "center", "bottom"],
93
+ description: "Where captions sit. Defaults per style: chunk/highlight → center, subtitle → bottom.",
94
+ },
69
95
  language: { type: "string", default: "auto" },
70
96
  },
71
97
  },
package/dist/validate.js CHANGED
@@ -26,9 +26,13 @@ exports.FLAG_FOR = {
26
26
  audio: "--no-audio",
27
27
  captions: "--captions",
28
28
  caption_style: "--caption-style",
29
+ caption_size: "--caption-size",
30
+ caption_placement: "--caption-placement",
29
31
  enhance_prompt: "--enhance-prompt",
30
32
  video_url: "--video-url",
31
33
  style: "--style",
34
+ size: "--size",
35
+ placement: "--placement",
32
36
  count: "--count",
33
37
  resolution: "--resolution",
34
38
  language: "--language",
@@ -47,8 +51,12 @@ function buildToolInput(flags) {
47
51
  ["duration", "duration"],
48
52
  ["aspect-ratio", "aspect_ratio"],
49
53
  ["caption-style", "caption_style"],
54
+ ["caption-size", "caption_size"],
55
+ ["caption-placement", "caption_placement"],
50
56
  ["video-url", "video_url"],
51
57
  ["style", "style"],
58
+ ["size", "size"],
59
+ ["placement", "placement"],
52
60
  ["count", "count"],
53
61
  ["resolution", "resolution"],
54
62
  ["language", "language"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getagenthook",
3
- "version": "0.2.1",
3
+ "version": "1.0.0",
4
4
  "description": "CLI for the AgentHook hosted media-generation API — generate video, images, and captions from your terminal or agent.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://getagenthook.com",