Skip to content
Open
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
2 changes: 1 addition & 1 deletion .agents/skills/gog-docs/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ gog --readonly --account user@example.com docs cat DOCUMENT_ID --json --wrap-unt
| `section-columns` | Set the column count for a document section |
| `sed` | Regex find/replace (sed-style: s/pattern/replacement/g) |
| `structure` | Show document structure with numbered paragraphs |
| `suggestions` | List pending text suggestions |
| `suggestions` | List and propose pending text suggestions |
| `table-column` | Insert or delete native table columns |
| `table-column-width` | Set or reset native table column widths |
| `table-merge` | Merge a native table cell range |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.48.2 - Unreleased

- Docs: propose text edits, formatting, and supported structured changes with opt-in suggestion mode. Pin a document revision, inspect inline or preview views, and submit advanced requests with `gog docs suggestions batch`.
- Auth: automatic reauthorization no longer replays a stored Google Ads (`adwords`) grant unless the failing command needs Ads, so an old Ads grant cannot trigger Google's passkey gate; restore it with `gog auth add <email> --services user,ads`. (#1353)
- Dependencies: refresh the MCP and Google API clients, networking libraries, and tracking-worker tooling while preserving the Go 1.26 minimum, 24-hour worker cooldown, and security overrides.

Expand Down
4 changes: 3 additions & 1 deletion docs/commands.generated.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ Generated from `gog schema --json`.
- [`gog docs (doc) section-columns --count=INT <docId> [flags]`](commands/gog-docs-section-columns.md) - Set the column count for a document section
- [`gog docs (doc) sed <docId> [<expression>] [flags]`](commands/gog-docs-sed.md) - Regex find/replace (sed-style: s/pattern/replacement/g)
- [`gog docs (doc) structure (struct) <docId> [flags]`](commands/gog-docs-structure.md) - Show document structure with numbered paragraphs
- [`gog docs (doc) suggestions <command>`](commands/gog-docs-suggestions.md) - List pending text suggestions
- [`gog docs (doc) suggestions <command>`](commands/gog-docs-suggestions.md) - List and propose pending text suggestions
- [`gog docs (doc) suggestions batch --file=STRING --revision=STRING <docId>`](commands/gog-docs-suggestions-batch.md) - Propose a batch of supported Google Docs operations
- [`gog docs (doc) suggestions insert --index=INT-64 --revision=STRING <docId> <text> [flags]`](commands/gog-docs-suggestions-insert.md) - Propose a plain-text insertion as a pending suggestion
- [`gog docs (doc) suggestions list (ls) <docId> [flags]`](commands/gog-docs-suggestions-list.md) - List pending text insertions and deletions
- [`gog docs (doc) table-column <command>`](commands/gog-docs-table-column.md) - Insert or delete native table columns
- [`gog docs (doc) table-column delete (rm,remove,del) --col=INT <docId> [flags]`](commands/gog-docs-table-column-delete.md) - Delete a native table column
Expand Down
6 changes: 4 additions & 2 deletions docs/commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Every `gog` command has a generated docs page. The source of truth is the live CLI schema; run `make docs-commands` after changing command names, flags, help text, aliases, or arguments.

Generated pages: 781.
Generated pages: 783.

## Top-level Commands

Expand Down Expand Up @@ -393,7 +393,9 @@ Generated pages: 781.
- [gog docs section-columns](gog-docs-section-columns.md) - Set the column count for a document section
- [gog docs sed](gog-docs-sed.md) - Regex find/replace (sed-style: s/pattern/replacement/g)
- [gog docs structure](gog-docs-structure.md) - Show document structure with numbered paragraphs
- [gog docs suggestions](gog-docs-suggestions.md) - List pending text suggestions
- [gog docs suggestions](gog-docs-suggestions.md) - List and propose pending text suggestions
- [gog docs suggestions batch](gog-docs-suggestions-batch.md) - Propose a batch of supported Google Docs operations
- [gog docs suggestions insert](gog-docs-suggestions-insert.md) - Propose a plain-text insertion as a pending suggestion
- [gog docs suggestions list](gog-docs-suggestions-list.md) - List pending text insertions and deletions
- [gog docs table-column](gog-docs-table-column.md) - Insert or delete native table columns
- [gog docs table-column delete](gog-docs-table-column-delete.md) - Delete a native table column
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ gog docs (doc) delete <docId> [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--segment` | `string` | | Target an exact header, footer, or footnote segment ID |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--start` | `*int64` | | Start index (>= 1; required unless --at is set) |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
Expand Down
3 changes: 3 additions & 0 deletions docs/commands/gog-docs-edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ gog docs (doc) edit <docId> <find> <replace> [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Limit replacement to a specific tab by title or ID |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
| `--wrap-untrusted` | `bool` | false | In JSON/raw output, wrap fetched text fields in external untrusted-content markers |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-find-replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ gog docs (doc) find-replace <docId> <find> [<replace>] [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ gog docs (doc) format <docId> [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--segment` | `string` | | Target an exact header, footer, or footnote segment ID |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--space-above` | `*float64` | | Space above the paragraph in points |
| `--space-below` | `*float64` | | Space below the paragraph in points |
| `--spacing-mode` | `string` | | Paragraph spacing mode: NEVER_COLLAPSE or COLLAPSE_LISTS |
| `--strikethrough`<br>`--strike` | `bool` | | Set strikethrough |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `--text-color` | `string` | | Text color as #RRGGBB or #RGB |
| `--underline` | `bool` | | Set underline |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-insert-page-break.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ gog docs (doc) insert-page-break (page-break,pb) <docId> [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-insert-section-break.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ gog docs (doc) insert-section-break <docId> [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `--type` | `string` | next-page | Section type: next-page or continuous |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-insert-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ gog docs (doc) insert-table --rows=INT --cols=INT <docId> [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--rows` | `int` | | Number of rows (>=1) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `--values-json` | `string` | | Cell values as a JSON 2D string array; dimensions must match --rows x --cols when supplied |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-insert.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ gog docs (doc) insert <docId> [<content>] [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--segment` | `string` | | Target an exact header, footer, or footnote segment ID |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-raw.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ gog docs (doc) raw <docId> [flags]
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--suggestion-threads` | `bool` | | Include suggestion threads; requires --all-tabs and --suggestions-view=inline |
| `--suggestions-view` | `string` | default | Select the inline suggestion view or preview without/with accepted suggestions |
| `--tab` | `string` | | Return one tab by title or ID in the legacy top-level Document shape |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/gog-docs-section-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ gog docs (doc) section-columns --count=INT <docId> [flags]
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Require this Docs revision in suggestion mode (mandatory for explicit offsets) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--separator` | `string` | none | Column separator: none or between |
| `--suggest` | `bool` | | Propose this change instead of editing directly |
| `--tab` | `string` | | Target a specific tab by title or ID (see docs list-tabs) |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
Expand Down
49 changes: 49 additions & 0 deletions docs/commands/gog-docs-suggestions-batch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# `gog docs suggestions batch`

> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.

Propose a batch of supported Google Docs operations

## Usage

```bash
gog docs (doc) suggestions batch --file=STRING --revision=STRING <docId>
```

## Parent

- [gog docs suggestions](gog-docs-suggestions.md)

## Flags

| Flag | Type | Default | Help |
| --- | --- | --- | --- |
| `--access-token` | `string` | | Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
| `-a`<br>`--account`<br>`--acct` | `string` | | Account email, alias, or auto for authenticated Google API commands |
| `--client` | `string` | | OAuth client name (selects stored credentials + token bucket) |
| `--color` | `string` | auto | Color output: auto\|always\|never |
| `--disable-commands` | `string` | | Comma-separated list of disabled commands; dot paths allowed |
| `-n`<br>`--dry-run`<br>`--dryrun`<br>`--noop`<br>`--preview` | `bool` | | Do not make changes; print intended actions and exit successfully |
| `--enable-commands` | `string` | | Comma-separated list of enabled command prefixes; dot paths allowed (restricts CLI) |
| `--enable-commands-exact` | `string` | | Comma-separated list of exact enabled commands; dot paths allowed and parent commands do not enable children |
| `--file` | `string` | | JSON array of supported Docs requests (use - for stdin) |
| `-y`<br>`--force`<br>`--assume-yes`<br>`--yes` | `bool` | | Skip confirmations for destructive commands |
| `--gmail-no-send` | `bool` | false | Block Gmail send operations (agent safety) |
| `-h`<br>`--help` | `kong.helpFlag` | | Show context-sensitive help. |
| `--home` | `string` | | Override gogcli config/data/state/cache root (equivalent to GOG_HOME) |
| `-j`<br>`--json`<br>`--machine` | `bool` | false | Output JSON to stdout (best for scripting) |
| `--no-input`<br>`--non-interactive`<br>`--noninteractive` | `bool` | | Never prompt; fail instead (useful for CI) |
| `-p`<br>`--plain`<br>`--tsv` | `bool` | false | Output stable, parseable text to stdout (TSV; no colors) |
| `--quota-project` | `string` | | Google Cloud project to bill for API usage (sent as X-Goog-User-Project; some APIs require it with --access-token or ADC) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--revision` | `string` | | Document revision ID from the inline read used to build the requests |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
| `--wrap-untrusted` | `bool` | false | In JSON/raw output, wrap fetched text fields in external untrusted-content markers |

## See Also

- [gog docs suggestions](gog-docs-suggestions.md)
- [Command index](README.md)
Loading