From 1058f6e5a3ece7bc5c95e00655193ee98320441a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 15:37:31 +0000 Subject: [PATCH 1/2] Initial plan From 89c9b5f453e99e8da6a0644122bf96b390e0aa75 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 15:54:45 +0000 Subject: [PATCH 2/2] fix: address 4 CLI consistency issues in secrets bootstrap, trial, logs, validate Agent-Logs-Url: https://github.com/github/gh-aw/sessions/dc14fca7-8e5e-4f1e-9664-926748ce8d47 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/logs_command.go | 4 ++-- pkg/cli/tokens_bootstrap.go | 2 -- pkg/cli/trial_command.go | 6 +++--- pkg/cli/validate_command.go | 1 - 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pkg/cli/logs_command.go b/pkg/cli/logs_command.go index 7d745aa555b..6431075dc6c 100644 --- a/pkg/cli/logs_command.go +++ b/pkg/cli/logs_command.go @@ -75,7 +75,7 @@ Examples: ` + string(constants.CLIExtensionPrefix) + ` logs --safe-output report-incomplete # Filter logs with report-incomplete messages ` + string(constants.CLIExtensionPrefix) + ` logs --ref main # Filter logs by branch or tag ` + string(constants.CLIExtensionPrefix) + ` logs --ref feature-xyz # Filter logs by feature branch - ` + string(constants.CLIExtensionPrefix) + ` logs --filtered-integrity # Filter logs with DIFC (data integrity flow control) integrity-filtered items in the gateway logs + ` + string(constants.CLIExtensionPrefix) + ` logs --filtered-integrity # Filter logs containing items that were filtered by gateway integrity checks ` + string(constants.CLIExtensionPrefix) + ` logs --no-staged # Exclude staged workflow runs from results # Run ID range filtering @@ -208,7 +208,7 @@ Examples: logsCmd.Flags().Bool("firewall", false, "Filter to only runs with firewall enabled") logsCmd.Flags().Bool("no-firewall", false, "Filter to only runs without firewall enabled") logsCmd.Flags().String("safe-output", "", "Filter to runs containing a specific safe output type (e.g., create-issue, missing-tool, missing-data, noop, report-incomplete)") - logsCmd.Flags().Bool("filtered-integrity", false, "Filter to runs with DIFC (data integrity flow control) integrity-filtered items in the gateway logs") + logsCmd.Flags().Bool("filtered-integrity", false, "Filter to runs containing items that were filtered by gateway integrity checks") logsCmd.Flags().Bool("parse", false, "Run JavaScript parsers on agent logs and firewall logs, writing Markdown to log.md and firewall.md") addJSONFlag(logsCmd) logsCmd.Flags().Int("timeout", 0, "Download timeout in minutes (0 = no timeout)") diff --git a/pkg/cli/tokens_bootstrap.go b/pkg/cli/tokens_bootstrap.go index c0eaa7565ad..10b4933d2bc 100644 --- a/pkg/cli/tokens_bootstrap.go +++ b/pkg/cli/tokens_bootstrap.go @@ -26,8 +26,6 @@ prompt for any missing required secrets. Only required secrets are prompted for. Optional secrets are not shown. -Documentation: - https://cli.github.com/manual/gh_auth_login Examples: gh aw secrets bootstrap # Check and set up all required secrets gh aw secrets bootstrap --non-interactive # Display missing secrets without prompting diff --git a/pkg/cli/trial_command.go b/pkg/cli/trial_command.go index 33793d0a4ae..22b14c6e374 100644 --- a/pkg/cli/trial_command.go +++ b/pkg/cli/trial_command.go @@ -30,14 +30,14 @@ Workflows from different repositories: ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/daily-plan myorg/myrepo/custom-workflow Repository mode examples: - ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --host-repo myorg/myrepo # Use myorg/myrepo as host for trial execution + ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --host-repo myorg/myrepo # Use myorg/myrepo as host for trial execution ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --logical-repo myorg/myrepo # Simulate running against myorg/myrepo - ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --clone-repo myorg/myrepo # Clone myorg/myrepo contents into host + ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --clone-repo myorg/myrepo # Clone myorg/myrepo contents into host Repeat and cleanup examples: ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --repeat 3 # Run 4 times total (1 initial + 3 repeats) ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --delete-host-repo-after # Delete repo after completion - ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --host-repo my-trial # Custom host repo + ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --host-repo my-trial # Custom host repo ` + string(constants.CLIExtensionPrefix) + ` trial githubnext/agentics/my-workflow --dry-run # Show what would be done without changes Auto-merge examples: diff --git a/pkg/cli/validate_command.go b/pkg/cli/validate_command.go index adddc6c3697..e7fbb331976 100644 --- a/pkg/cli/validate_command.go +++ b/pkg/cli/validate_command.go @@ -15,7 +15,6 @@ func NewValidateCommand(validateEngine func(string) error) *cobra.Command { Short: "Validate agentic workflows without generating lock files", Long: `Validate one or more agentic workflows by compiling and running all linters without generating lock files. This is equivalent to: - gh aw compile --validate --no-emit --zizmor --actionlint --poutine If no workflows are specified, all Markdown files in .github/workflows will be validated.