diff --git a/SKILL.md b/SKILL.md index ea53f59..65a9342 100644 --- a/SKILL.md +++ b/SKILL.md @@ -41,7 +41,7 @@ Video creation is asynchronous. Two patterns: **Block until done (recommended):** ```bash -heygen video-agent create --prompt "Demo video" --wait --timeout 5m +heygen video-agent create --prompt "Demo video" --wait # stdout: final resource JSON with video_url when complete ``` @@ -92,7 +92,7 @@ Both output valid JSON Schema. Available on all create/update commands (`--reque ## Notes -- `--wait` handles polling with exponential backoff (2s to 30s). Default timeout is 10 minutes. +- `--wait` handles polling with exponential backoff (2s to 30s). Default timeout is 20 minutes. - The CLI retries transient errors (429, 5xx) automatically. - Video download writes to `{video-id}.mp4` by default. Override with `--output-path`. - For the full API reference (concepts, limits, pricing), see https://developers.heygen.com diff --git a/cmd/heygen/builder.go b/cmd/heygen/builder.go index 5e88290..419ee65 100644 --- a/cmd/heygen/builder.go +++ b/cmd/heygen/builder.go @@ -168,7 +168,7 @@ func buildCobraCommand(spec *command.Spec, ctx *cmdContext) *cobra.Command { } if pollConfigs[spec.Group+"/"+spec.Name] != nil { cmd.Flags().Bool("wait", false, "Poll until the operation completes or fails") - cmd.Flags().Duration("timeout", 10*time.Minute, "Max time to wait when using --wait") + cmd.Flags().Duration("timeout", 20*time.Minute, "Max time to wait when using --wait") } // Add -d/--data for commands with JSON request bodies if spec.BodyEncoding == "json" {