Skip to content

[PB-13614] Added AI Assist mode#15

Open
gdenning wants to merge 173 commits intomainfrom
PB-13614
Open

[PB-13614] Added AI Assist mode#15
gdenning wants to merge 173 commits intomainfrom
PB-13614

Conversation

@gdenning
Copy link
Collaborator

No description provided.

gdenning and others added 27 commits December 28, 2025 17:18
- Only commit source changes when commitAllChangesOnCompletion flag is true
- Don't commit plan file when marking step as "in progress" (repo may be in MERGING state)
- Add shouldCommit parameter to savePlan method for explicit control
- Add test for smc-upgrader steps with commitAllChangesOnCompletion=false

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add versionFilter field to AiPlanStep for filtering steps by target version
- Update AiPlanGenerator to skip steps where versionFilter doesn't match target version
- Add test for versionFilter functionality

This allows steps like "Run Automated Jakarta Source Migration" to only appear
in upgrade plans when targeting a specific version (e.g., 8.7.x).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…aude

- Add isValidationOnlyStep() method to AiPlanStep
- Add executeValidationOnlyStep() method to AiPlanExecutor
- Update config to use validation-only for Jakarta Source Migration step
- Add tests for validation-only step success and failure scenarios

The validation-only tool type runs the validation command without
invoking Claude, useful for automated migration steps.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ermissions

Added --ai:skip-permissions CLI parameter that makes the dangerous permissions
flag opt-in rather than always passed to Claude. When specified with --ai:start,
stores the setting in the plan file. When --ai:continue runs, checks both CLI
flag and plan indicator to determine whether to pass --dangerously-skip-permissions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When a step is in progress and the user chooses [V] to validate, if validation
fails the tool now exits immediately instead of showing another prompt asking
"Was this step successfully completed?". This avoids redundant prompts since
the validation failure message already instructs the user to review and retry.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added missing isValidationOnlyStep() check in the menu's [E] execute option
so validation-only steps can be executed when resumed from an in-progress state.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Created ToolTypeEnum with SMC_UPGRADER, CLAUDE, and VALIDATION_ONLY values
- Changed AiPlanStep.tool from String to ToolTypeEnum
- Removed isClaudeStep(), isSmcUpgraderStep(), isValidationOnlyStep() methods
- Added executeStepByToolType() method in AiPlanExecutor using switch statement
- Added GSON @SerializedName annotations for JSON deserialization
- Updated MarkdownParser to convert string to enum using ToolTypeEnum.fromString()
- Updated MarkdownWriter to output enum's string value
- Updated all tests to use enum constants

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
)
private File workingDir;

@CommandLine.Option(names = { "-u", "--upstream-repository-url" },
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's no need for this to be overridable. Maybe open a new ticket to remove this option.

Move DEFAULT_UPSTREAM_REPO_URL and PLAN_FILE_NAME constants from
SMCUpgraderCLI, AiPlanExecutor, and AiPlanGenerator into a new
centralized Constants class to eliminate duplication.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant