Skip to content

JGC-473 - Add AI-agent help text to security commands#760

Open
ehl-jf wants to merge 1 commit into
jfrog:devfrom
ehl-jf:JGC-473-ai-context-help
Open

JGC-473 - Add AI-agent help text to security commands#760
ehl-jf wants to merge 1 commit into
jfrog:devfrom
ehl-jf:JGC-473-ai-context-help

Conversation

@ehl-jf
Copy link
Copy Markdown

@ehl-jf ehl-jf commented May 21, 2026

Summary

Adds AI-agent-oriented help text (AIDescription) so commands render richer help when JFROG_CLI_AI_HELP is truthy or an AI agent is auto-detected. Empty AIDescription falls back to Description; human-mode output is unchanged.

Scope: 15 help.go files + 26 components.Command literals across cli/scancommands.go, cli/gitcommands.go, cli/xraycommands.go. Hidden commands intentionally included (see PR thread).

Dependency on jfrog-cli-core

jfrog-cli-core's JGC-473 PR (#1563) has MERGED. This PR's go.mod now requires the merged core master pseudo-version v2.60.1-0.20260601130310-8d52a530da18 directly — no temporary replace directive. Ready to merge on its own.

Linked

Copy link
Copy Markdown
Collaborator

@attiasas attiasas left a comment

Choose a reason for hiding this comment

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

Looks good, please merge the PR in Core before we can merge it, also make sure to sync with dev branch

Populate components.Command.AIDescription on commands. The new field
(added in jfrog-cli-core JGC-473) makes the conversion layer render
agent-oriented text when JFROG_CLI_AI_HELP is truthy or an AI agent is
auto-detected. Empty AIDescription falls back to Description, so
command output is unchanged in human mode.

Scope: 15 help.go files + 26 components.Command literals across cli/scancommands.go, cli/gitcommands.go, cli/xraycommands.go. Hidden commands intentionally included (see PR description). Targets the dev branch.

TEMPORARY go.mod pin: the require for github.com/jfrog/jfrog-cli-core/v2
points at JGC-473-devbase (commit d507b5c6) - a coordination branch
that cherry-picks JGC-473 onto core's pinned commit 908527b4 (the last
commit before core master removed yarn.IsVersionSupported and
IsInstalledYarnVersionSupported, which downstream callers in
jfrog-cli-artifactory still depend on). This require MUST be updated to
the merged master commit's pseudo-version after the jfrog-cli-core
JGC-473 PR merges. Do not merge this PR until the require is re-pinned.
@ehl-jf ehl-jf force-pushed the JGC-473-ai-context-help branch from 2bba908 to eaed9de Compare June 1, 2026 13:35
@attiasas attiasas added improvement Automatically generated release notes safe to test Approve running integration tests on a pull request labels Jun 2, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Jun 2, 2026
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Jun 2, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants