Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ In v0.108.0:
two accounts while headed passed (#1554).
- **`video upscale` 720p / 270p GIF** drive the download menu headless (measured, 0 credits); 4K
video follows that path headless by decision (Ultra only, unmeasured; #1554).
- **A credit-capped `video t2v` of an explicit measured key** reads Flow's quote in a headless
browser under `auto` (measured, #1554); other capped videos stay headed.
- **The remaining UI surfaces stay headed** (`ui_automation`: `image batch`, `movie run`, r2v, edit, end-frame i2v,
1080p menu upscale, scene/character create, instructions, the agent composer,
other credit-capped video; on an account served flow.google.com, gflow cannot drive
credit-capped video other than a text-to-video of an explicit measured key; on an account served flow.google.com, gflow cannot drive
instructions, scenes or characters yet in either mode, #639/#1587). Headless UI is tracked in #1554.
- **`auth login`** is interactive and needs a display once; `auth renew` and the credits read
were already browserless or headless.
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- **A credit-capped text-to-video of an explicit measured key runs headless by default**
([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). When `--max-credits` (or `GFLOW_CLI_MAX_CREDITS`, MCP `max_credits`) is the
only reason a text-to-video takes Flow's UI, because the uncapped request is an explicit measured
direct key (a bare text-to-video, whose key is the account's selection, stays headed), Flow's quote is read and enforced in a headless browser under `auto`, on the CLI and on
`gflow_generate_video` (queued). It reached the submit 2/2 headless matching a headed control
with the submit aborted, and a billed headless run completed at the quoted 4 credits on one
account (3/3); another account refused the same run as unusual activity both headless and
headed, unbilled, so that refusal reflects the account's state. A capped video of any other shape stays
headed. `video i2v --end-frame` stays headed (a billed headless run was refused while the
headed control completed), and `video edit` stays headed (exit 23 in both modes, #1605).
- **The AI-attribution commit check covers more forms (#1526).** `scripts/ci/check_commit_trailers.py`
now also refuses an `Assisted-by:` trailer, a `Co-Authored-By:` trailer with no e-mail address
(GitHub credits nobody without one), and a commit whose committer is an AI identity. An indented
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Which commands open a browser, with the default `GFLOW_CLI_BROWSER_VISIBILITY=au
| `image i2i --ref` | headless with one local file | One local reference file in an existing project, on a request that would go direct once the file is uploaded: a new file is uploaded and generated directly, a file already in the project is attached through Flow's UI, both from a headless browser ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). More files, another reference, a character or an unmeasured model keep it headed |
| `video upscale --scale 720p` | headless on `flow.google.com` | Drives the download menu; 720p and the 270p GIF measured headless, 0 credits ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video upscale --scale 4k` | headless on `flow.google.com` (not measured) | Ultra only; spends credits on the click; follows the measured menu path by decision ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video t2v --max-credits` | headless when only the cap needs the UI | A capped explicit measured key (for example `--model omni-1.2-flash --duration 4 --resolution 360p`) reads Flow's quote headless ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |

**Headed** (Flow's UI)

Expand All @@ -65,8 +66,8 @@ Which commands open a browser, with the default `GFLOW_CLI_BROWSER_VISIBILITY=au
| `image upscale --scale 2k` | headed | Headless was refused as unusual activity on one of two accounts while headed passed ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)); 4K too |
| `movie run` | headed | Scene requests carry no resolution, so no scene forms a measured key; characters and instruction cards are UI surfaces too |
| `video r2v` | headed | Reference-to-video is not measured over direct HTTP |
| `video edit` | headed | Not measured over direct HTTP |
| `video i2v --end-frame` | headed | An end frame, or a start frame that is already in the project, is not a measured shape |
| `video edit` | headed | gflow cannot drive it yet in either mode on an account served flow.google.com ([#1605](https://github.com/ffroliva/gflow-cli/issues/1605)) |
| `video i2v --end-frame` | headed | Not a measured shape; a billed headless run was refused while headed completed ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video upscale --scale 1080p` (menu) | headed | 1080p of a clip the local catalog does not hold as a measured direct source drives the download menu; not measured headless |
| `scene create` | headed | Scenes are built in the UI |
| `scene show` | headed | Reads the scene in the UI |
Expand All @@ -75,7 +76,7 @@ Which commands open a browser, with the default `GFLOW_CLI_BROWSER_VISIBILITY=au
| `instructions add` | headed | Agent-mode instruction cards are a UI surface (every `instructions` subcommand) |
| `project create` | headed | Creates the project in the UI (also `project rename`) |
| `data sync` | headed | Reads the project in the profile's browser |
| `video t2v --max-credits` | headed | Any credit-capped video (`--max-credits`, `GFLOW_CLI_MAX_CREDITS`, MCP `max_credits`) reads Flow's quote in the UI; direct video has no wire quote |
| `video t2v --max-credits` (other shapes) | headed | A credit-capped video of an unmeasured shape reads Flow's quote in the UI; direct video has no wire quote |

**No browser**

Expand Down Expand Up @@ -401,7 +402,7 @@ These keep the labs driver until they are ported: other UUID media references, a
**Remaining limits.**

- The one-time `auth login` is interactive and needs a display.
- Reference-to-video, `video edit`, image-to-video with an end frame, 1080p upscales of clips outside the measured direct shape, `scene create`, `character create`, `instructions`, the agent-only composer, and any other video run with a credit cap (`--max-credits`, MCP `max_credits`) still drive Flow's interface in a headed browser; `video extend` on flow.google.com drives it headless, `media trash`/`restore` run with no browser or in a headless one, image-to-image from one local `--ref` file in an existing project runs headless when the request would otherwise go direct, and the 720p, GIF and (unmeasured) 4K video upscales run headless. Headless operation of these surfaces is tracked in [#1554](https://github.com/ffroliva/gflow-cli/issues/1554).
- Reference-to-video, `video edit`, image-to-video with an end frame, 1080p upscales of clips outside the measured direct shape, `scene create`, `character create`, `instructions`, the agent-only composer, and any other video run with a credit cap (`--max-credits`, MCP `max_credits`) other than a text-to-video of an explicit measured key still drive Flow's interface in a headed browser; `video extend` on flow.google.com drives it headless, `media trash`/`restore` run with no browser or in a headless one, image-to-image from one local `--ref` file in an existing project runs headless when the request would otherwise go direct, and the 720p, GIF and (unmeasured) 4K video upscales run headless. Headless operation of these surfaces is tracked in [#1554](https://github.com/ffroliva/gflow-cli/issues/1554).
- Request shapes that have not been measured fall back to the interface path.
- The headless mint was measured on Windows only, on accounts served flow.google.com. macOS, Linux and accounts Flow serves on labs.google are unmeasured.
- The headless browser reports itself as `HeadlessChrome`. It is not a stealth technique, and Google may treat it differently in future.
Expand Down
7 changes: 4 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
| `image i2i --ref` | 单个本地文件为 headless | 在已有项目中仅使用一个本地参考文件、且文件上传后的请求可直接发送时:新文件直接上传并生成,项目中已有的文件通过 Flow 的 UI 附加,两者均在无头浏览器中运行([#1554](https://github.com/ffroliva/gflow-cli/issues/1554))。多个文件、其他参考、角色或未测量的模型则保持有头 |
| `video upscale --scale 720p` | 在 `flow.google.com` 上为 headless | 驱动下载菜单;720p 和 270p GIF 已测量可无头运行,0 积分([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video upscale --scale 4k` | 在 `flow.google.com` 上为 headless(未测量) | 仅 Ultra;按决定沿用已测量的菜单路径([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video t2v --max-credits` | 仅因积分上限需要 UI 时为 headless | 显式指定的已测量形态(例如 `--model omni-1.2-flash --duration 4 --resolution 360p`)加上积分上限时,以无头方式读取 Flow 报价([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |

**有头**(Flow 的界面)

Expand All @@ -57,8 +58,8 @@
| `image upscale --scale 2k` | headed | 在两个账户之一上,无头运行被判为异常活动而有头运行通过([#1554](https://github.com/ffroliva/gflow-cli/issues/1554));4K 同样 |
| `movie run` | headed | 场景请求不携带分辨率,因此没有场景能构成已测量的键;角色和指令卡也是 UI 界面 |
| `video r2v` | headed | 参考图生视频尚未通过直接 HTTP 测量 |
| `video edit` | headed | 尚未通过直接 HTTP 测量 |
| `video i2v --end-frame` | headed | 结束帧,或已在项目中的起始帧,不是已测量的形态 |
| `video edit` | headed | 在 flow.google.com 账户上 gflow 暂时无法在任一模式下驱动([#1605](https://github.com/ffroliva/gflow-cli/issues/1605)) |
| `video i2v --end-frame` | headed | 不是已测量的形态;一次计费的无头运行被拒绝,而有头运行完成([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video upscale --scale 1080p` (menu) | headed | 本地媒体库中没有的片段的 1080p 驱动下载菜单;未测量无头运行 |
| `scene create` | headed | 场景在 UI 中构建 |
| `scene show` | headed | 在 UI 中读取场景 |
Expand All @@ -67,7 +68,7 @@
| `instructions add` | headed | Agent 模式指令卡是 UI 界面(所有 `instructions` 子命令) |
| `project create` | headed | 在 UI 中创建项目(`project rename` 同样) |
| `data sync` | headed | 在该配置文件的浏览器中读取项目 |
| `video t2v --max-credits` | headed | 任何设置了积分上限的视频(`--max-credits`、`GFLOW_CLI_MAX_CREDITS`、MCP `max_credits`)都在 UI 中读取 Flow 的报价;直接视频路径没有线上报价 |
| `video t2v --max-credits` (other shapes) | headed | 未测量形态的积分上限视频在 UI 中读取 Flow 的报价;直连视频没有线上报价 |

**不使用浏览器**

Expand Down
2 changes: 1 addition & 1 deletion docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ used only where it is strictly necessary.
- **The UI transport (`ui_automation`) for the other surfaces.** `image batch`, `movie run`,
reference-to-video,
edit, end-frame image-to-video, the 1080p menu upscale, scene and character create,
instructions, the agent-only composer and other credit-capped video still drive Flow's page in a headed browser. Headless operation of these
instructions, the agent-only composer and credit-capped video other than a text-to-video of an explicit measured key still drive Flow's page in a headed browser. Headless operation of these
surfaces is tracked in [#1554](https://github.com/ffroliva/gflow-cli/issues/1554).
- **`auth login`** is interactive and needs a display once.
- **Selecting the mode.** `GFLOW_CLI_BROWSER_VISIBILITY=auto|headless|headed` (default `auto`);
Expand Down
7 changes: 4 additions & 3 deletions docs/BROWSER_MODES.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ browser has been measured, so `auto` runs them headless.
| `image i2i --ref` | headless with one local file | When the only reference is a local file, `--project` names an existing project, and, with each file in the shape an upload produces (one in-project reference), the request would go direct (for example `nano2`), the browser starts headless: a new file is uploaded and generated directly, and a file the catalog already holds in the project is attached through Flow's UI in that headless browser. Two quota runs of the UI attach matched a headed control ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). Two or more files, a UUID reference or a character beside the file, a new project, an unmeasured model, or another reason for the UI keeps it headed. `GFLOW_CLI_TRANSPORT=ui_automation` keeps it headed |
| `video upscale --scale 720p` | headless on `flow.google.com` | Drives the video's download menu; 720p and the 270p GIF (`--scale 270p`) each ran twice in a headless browser matching a headed control, 0 credits, including on an account that was refusing headless image upscales at the time ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). `GFLOW_CLI_TRANSPORT=ui_automation` or an explicit `GFLOW_CLI_FLOW_HOST=labs.google` keeps it headed |
| `video upscale --scale 4k` | headless on `flow.google.com` (not measured) | Ultra only, so not measured: it follows the measured video download-menu path by an explicit decision ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). It spends credits on the click, and a failure after the click is never retried. `--browser-visibility headed` shows the window |
| `video t2v --max-credits` | headless when only the cap needs the UI | A capped text-to-video whose uncapped request is an explicit measured key (for example `--model omni-1.2-flash --duration 4 --resolution 360p`; with no `--model` the key is the account's selection and it stays headed) reads Flow's quote in a headless browser: it reached the submit 2/2 headless matching a headed control with the submit aborted, and billed headless runs of that key on one account completed at the quoted 4 credits (3/3), and the other measured keys follow it by decision; an account that refused it headless refused the headed control too ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). A capped video of any other shape, image-to-video and reference-to-video stay headed. `GFLOW_CLI_TRANSPORT=ui_automation` keeps it headed |

## Headed (Flow's UI)

Expand All @@ -52,8 +53,8 @@ browser has been measured, so `auto` runs them headless.
| `image upscale --scale 2k` | headed | Headless was refused on one of two accounts while headed passed: after a day of runs, `SPrCad` answered `PUBLIC_ERROR_UNUSUAL_ACTIVITY` to three headless 2K upscales and accepted the headed one (unbilled); the other account passed both ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). `--scale 4k` (Ultra) follows the same path and stays headed |
| `movie run` | headed | Scene requests carry no resolution, so no scene forms a measured key; characters and instruction cards are UI surfaces too |
| `video r2v` | headed | Reference-to-video is not measured over direct HTTP |
| `video edit` | headed | Not measured over direct HTTP |
| `video i2v --end-frame` | headed | An end frame, or a start frame that is already in the project, is not a measured shape |
| `video edit` | headed | On an account served flow.google.com, gflow cannot drive it yet in either mode (exit 23, [#1605](https://github.com/ffroliva/gflow-cli/issues/1605)), so headless is unmeasured |
| `video i2v --end-frame` | headed | An end frame, or a start frame that is already in the project, is not a measured shape. A billed headless run was refused as unusual activity (unbilled) while the headed control completed ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video upscale --scale 1080p` (menu) | headed | 1080p of a clip the local catalog does not hold as a measured direct source is planned through the download menu and launches headed; not measured headless (the menu offered no 1080p on the clip tried). A planned direct 1080p that falls back to the menu at run time stays in the headless browser it launched |
| `scene create` | headed | Reads the retired labs.google session token; refused identically headless and headed on an account served flow.google.com (HTTP 410), so headless is unmeasured ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554), [#639](https://github.com/ffroliva/gflow-cli/issues/639)) |
| `scene show` | headed | As `scene create` |
Expand All @@ -62,7 +63,7 @@ browser has been measured, so `auto` runs them headless.
| `instructions add` | headed | Every `instructions` subcommand reads a labs.google route that an account served flow.google.com refuses, identically headless and headed, so headless is unmeasured ([#639](https://github.com/ffroliva/gflow-cli/issues/639)) |
| `project create` | headed | Creates the project in the UI (also `project rename`) |
| `data sync` | headed | Reads the project in the profile's browser |
| `video t2v --max-credits` | headed | Any credit-capped video (`--max-credits`, `GFLOW_CLI_MAX_CREDITS`, MCP `max_credits`) reads Flow's quote in the UI; direct video has no wire quote |
| `video t2v --max-credits` (other shapes) | headed | A credit-capped video (`--max-credits`, `GFLOW_CLI_MAX_CREDITS`, MCP `max_credits`) whose shape is not a measured direct key reads Flow's quote in the UI; direct video has no wire quote |

These conditions also send a request that would otherwise go direct to the headed UI path:

Expand Down
2 changes: 1 addition & 1 deletion docs/MCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ An omitted parameter cannot clear that environment default for one MCP call.
400 problem-details envelope), the twin of the CLI's `--browser-visibility`; omitted, the
server's `GFLOW_CLI_BROWSER_VISIBILITY` applies. Under `auto`, a measured shape runs with a
headless browser that only mints the reCAPTCHA token and is sent over direct HTTP; any other
shape, and any video with a `max_credits` cap, opens a headed browser. The exception is
shape, and every video with a `max_credits` cap, opens a headed browser, except a capped text-to-video of an explicit measured model, duration and resolution, which runs headless (#1554). The exception is
`gflow_extend_video` on `flow.google.com`: it drives Flow's UI, which is measured headless, so
`auto` runs it headless ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)), as do the page fallback of
`gflow_media_trash` / `gflow_media_restore`, a `gflow_generate_image` call whose only reference
Expand Down
3 changes: 2 additions & 1 deletion docs/superpowers/memory/real-browser-auth-mandatory.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ visibility, decided acceptance. A not-charged refusal is retried once from a fre
Flow page in the profile's Chrome, never synthesised, stored or replayed. A UI surface runs headless
only once it is measured headless (`HEADLESS_UI_SURFACES`, docs/BROWSER_MODES.md); every other
surface (r2v, edit, end-frame i2v, image upscale, scenes, characters, instructions, the agent
composer, credit-capped video) still drives the Flow UI, headed. The Chrome-channel rule above binds
composer, credit-capped video other than a text-to-video of an explicit measured key) still
drives the Flow UI, headed. The Chrome-channel rule above binds
headless launches exactly as headed ones: a marker-less profile still downgrades to bundled Chromium,
so generation paths still require a Chrome-strategy profile.
Loading