Skip to content

docs(rpk-ai): regenerate rpk ai reference against stable plugin v0.2.17#110

Open
Feediver1 wants to merge 3 commits into
mainfrom
add-beta-rpk-ai-commands
Open

docs(rpk-ai): regenerate rpk ai reference against stable plugin v0.2.17#110
Feediver1 wants to merge 3 commits into
mainfrom
add-beta-rpk-ai-commands

Conversation

@Feediver1

@Feediver1 Feediver1 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Why

The rpk-ai reference documented the command set of plugin v0.1.10 (40 pages), but the CLI has moved on. The regen was held until the profile to env rename (cloudv2 #27510) shipped in a stable plugin release; that landed, and stable v0.2.17 is now the source of truth. Target page family: https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-ai/rpk-ai/

What

Full regeneration of the family against plugin v0.2.17 in plugin mode (rpk v26.1.12 container + rpk ai install), replacing the earlier dev-branch generation on this PR that captured the wrong flags:

  • 94 pages total. New families: auth (login/logout/status/token), env (add/delete/list/rename/show/use), run (claude/codex), the full agent tree (a2a + card/send/task, apply, credential, diff, transcript, and friends), llm check, oauth-client dcr + revoke-tokens, and apply/diff on every resource group.
  • oauth renamed to oauth-provider (upstream rename; oauth remains a CLI alias). The six old page names are kept as page-aliases so existing links redirect.
  • profile is gone from the top level, replaced by env, matching the prose docs from docs: add Use the ADP CLI section with GitOps how-to #112.
  • Flag tables carry the real plugin-mode flags (--rpai-config, --rpai-profile, and so on), with {vbar} escaping and the rpk ai usage convention from docs: rpk ai reference cleanup for beta (remove "coming soon", rpai -> rpk ai) #85.
  • Nav block regenerated from the page titles; every page has a nav entry and every entry has a page.
  • cli:index.adoc command table updated for oauth-provider.

Verification

  • Regenerated pages for previously existing commands are byte-identical to main except genuine v0.2.17 help-text changes (verified with diff on unchanged commands, for example llm create).
  • Local Antora build passes with no new warnings; old rpk-ai-oauth* URLs redirect via the aliases.
  • The connection pages still read "coming soon" because v0.2.17 genuinely ships them that way.

Preview pages

🤖 Generated with Claude Code

The rpk-ai reference covered 40 commands; the current rpai plugin exposes 34
more (agent a2a/apply/create/credential/delete/diff/get/start/stop/transcript/
update, llm check, oauth-client dcr + dcr iat, oauth-client revoke-tokens,
run claude/codex). Per the ADP writer these are beta and should be documented
under the beta badge.

- Add the 34 pages, generated from the current rpk-docs generator (rpk dev +
  ai plugin via `--print-tree`), each carrying `:page-beta: true` so they
  render with the beta badge like the existing rpk-ai pages.
- Rebuild the rpk-ai nav block in modules/ROOT/nav.adoc from the authoritative
  command tree (74 entries, correct nesting incl. hyphenated commands like
  `oauth-client` and deep paths like `oauth-client dcr iat mint`).

Verified: every nav entry maps to a page and every page has a nav entry;
no orphans/missing; pipe-bearing flag enums are escaped (`{vbar}`).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Feediver1 Feediver1 requested a review from a team as a code owner June 25, 2026 19:17
@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for redpanda-agentic-data-plane ready!

Name Link
🔨 Latest commit 5808838
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-agentic-data-plane/deploys/6a46a4d20c7cb10008fb3a18
😎 Deploy Preview https://deploy-preview-110--redpanda-agentic-data-plane.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Feediver1 Feediver1 requested a review from micheleRP June 25, 2026 19:25

@micheleRP micheleRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making sure this doesn't merge as is

@micheleRP micheleRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command set here is real and the nav nesting is correct, but there's a generation problem affecting all 34 pages, so I'd hold this rather than merge as-is.

1. Global flags are wrong on every page. The pages show rpk core's root flags (--config, -X/--config-opt, --ignore-profile, --profile, -v/--verbose) and have no per-command flags section. The real rpai plugin commands take the plugin's own flags — -o/--format (env RPAI_FORMAT), --no-color, -c/--rpai-config, -s/--rpai-endpoint, -p/--rpai-profile, --token — as the existing pages show (e.g. rpk-ai-agent-list.adoc). They were built from the rpk dev branch via --print-tree without the plugin's per-command flags, so each page fell back to rpk's root global_flags.

2. Structural divergence from the existing 40. Existing pages use == Flags (bold headers) with no single-source/Linux-note/autogenerated scaffolding; these use == Global flags (plain headers) plus that scaffolding — old-generator vs new-generator output. Mixing them makes the reference inconsistent.

3. Parent pages weren't regenerated. rpk-ai-agent.adoc, rpk-ai-oauth-client.adoc, rpk-ai-llm.adoc, and rpk-ai.adoc have no Subcommands tables, so they don't list the new children.

4. Examples render broken on the a2a pages (comment lines split into empty code blocks, some commands sit outside any block, # comments render literally).

Root cause: these commands (a2a, run claude/codex, dcr, oauth-client revoke-tokens, the agent tree) aren't in the released plugin (v0.1.10) — only on dev. The generator installs the released plugin, so it can't produce these correctly until a plugin release (≥ v0.1.11) ships them and help renders rpk ai instead of rpai (tracked in cloudv2#26990).

Automation context — redpanda-data/docs#1733 (@JakeSCahill). That PR wires the shared rpk-docs generator + override system into the docs repo, and it deliberately excludes rpk ai as "coming soon." adp-docs has no equivalent workflow or rpk-overrides.json yet, so this subtree is fully hand-maintained here. The durable fix isn't hand-adding 34 pages — it's generating the rpk-ai subtree through that same tool once the plugin release lands, with the PR #85-style customizations (rpairpk ai, dropping "coming soon") living in an rpk-overrides.json rather than by hand.

Suggestion: hold until the plugin release, and coordinate with @JakeSCahill on standing up an rpk-ai-scoped generation path for adp-docs (mirroring #1733 but scoped to rpk ai instead of excluding it). Separately, publishing these as beta pre-release is a product/maturity call — can the ADP writer confirm that's intended before we ship them?

@birdayz

birdayz commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

please do not merge yet. there are some upcoming breaking changes for profile management. i think it will be ready by mo/tu next week

@birdayz

birdayz commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

changes are merged

@micheleRP

Copy link
Copy Markdown
Contributor

@birdayz — following up on the breaking changes you flagged here.

Status for the record: we're holding this regen until the profileenv rename from cloudv2 #27510 lands in a stable rpk ai plugin release. The current latest plugin (v0.2.8, built June 22) still ships the old profile command, not env, and our doc generator only installs the latest stable plugin. Regenerating now would document the deprecated profile and conflict with the rpk ai env guide that just merged in #112.

When you get a chance: any rough idea when the next stable rpai release with the profile-to-env rename will publish? Once it's out, regenerating this branch (rebased on main) picks up env, drops profile, and adds the new beta commands in one pass.

micheleRP and others added 2 commits July 2, 2026 11:40
Full regeneration of the rpk ai command family from plugin-mode
--help output (rpk v26.1.12 container, rpai plugin v0.2.17):

- 94 pages total: adds auth (login/logout/status/token), env
  (add/delete/list/rename/show/use), run (claude/codex), apply/diff
  subcommands on every resource group, llm check, and the full agent
  a2a/credential/transcript trees
- oauth renamed to oauth-provider (upstream rename); old page names
  kept as page-aliases so existing links redirect
- nav.adoc rpk ai block regenerated to match the new tree
- cli:index.adoc command table updated for oauth-provider
- profile command is gone from the top level (replaced by env),
  matching the prose docs from PR #112

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@micheleRP micheleRP changed the title docs(rpk-ai): add 34 beta rpk-ai command pages (under beta badge) + nav docs(rpk-ai): regenerate rpk ai reference against stable plugin v0.2.17 Jul 2, 2026
@micheleRP micheleRP requested review from birdayz and micheleRP July 2, 2026 17:51

@micheleRP micheleRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Feediver1 this has the new automation so we can merge this now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants