feat(cli)!: rename --fullsend-dir to --agent-dir with deprecation alias#5291
feat(cli)!: rename --fullsend-dir to --agent-dir with deprecation alias#5291fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
|
🤖 Finished Review · ❌ Failure · Started 2:07 PM UTC · Completed 2:23 PM UTC |
Site previewPreview: https://6b0e69f6-site.fullsend-ai.workers.dev Commit: |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
ReviewFindingsMedium
Low
|
rh-hemartin
left a comment
There was a problem hiding this comment.
I agree with the intent, there are some issues raised by the bot, please resolve them.
ee18ce1 to
67467c4
Compare
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
67467c4 to
d9ca987
Compare
The --fullsend-dir flag no longer reflects what it points at: since the agent-extraction migration (ADR 0058) the directory contains agent definitions, not a fullsend project layout. Introduce --agent-dir as the primary flag across all 7 leaf commands (run, lock, agent add/list/update/remove, agent migrate-customizations). Keep --fullsend-dir as a hidden backward-compatible alias that emits a deprecation warning to stderr. Error when both flags are specified. Update help text, user-facing docs, and internal scripts to use the new name. The action.yml input and reusable workflow references are left unchanged for now — they use the old name via the alias and can be migrated independently. Closes #5288 BREAKING CHANGE: The primary flag for specifying the agent definitions directory is now --agent-dir. The old --fullsend-dir flag continues to work but prints a deprecation warning. Update scripts and automation to use --agent-dir. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
d9ca987 to
5d7925b
Compare
|
Closing in favor of #5424. After investigating what the |
|
🤖 Finished Retro · ✅ Success · Started 10:08 PM UTC · Completed 10:21 PM UTC |
Retro: PR #5291 — rename
|
Summary
--agent-diras the primary CLI flag for specifying the agent definitions directory, replacing the now-misleading--fullsend-dirname (post agent-extraction migration, ADR 0058)--fullsend-diras a hidden backward-compatible alias that emits a deprecation warning to stderr--agent-dirand--fullsend-dirare specified simultaneouslyRelated Issue
Closes #5288
Changes
New file:
internal/cli/agentdir.goregisterAgentDirFlag()— registers--agent-diras primary flag and--fullsend-diras hidden deprecated aliasresolveAgentDirFlag()— merges values, enforces mutual exclusivity, emits deprecation warning, validates requiredModified:
internal/cli/run.go,lock.go,agent.go,migrate.gorun,lock,agent add/list/update/remove,agent migrate-customizations) now use the sharedregisterAgentDirFlag/resolveAgentDirFlaghelpersMarkFlagRequired("fullsend-dir")— requirement is now enforced byresolveAgentDirFlagagent addhelp to use--agent-dirNew file:
internal/cli/agentdir_test.goUpdated docs
docs/guides/user/running-agents-locally.md— all examples use--agent-dirdocs/guides/user/building-custom-agents.md— workflow example uses--agent-dirdocs/guides/dev/cli-internals.md— CLI tree updated to--agent-direval/scripts/run-fullsend.sh— updated to--agent-dirNot changed (intentionally)
action.ymland reusable workflow files — these passfullsend-diras an action input name (separate from CLI flag naming) and use the deprecated alias which continues to work. They can be migrated independently.Testing
go vet ./...passesgo test ./internal/cli/...passes (only pre-existingTestStartFetchService_*failures unrelated to this change)TestAgentDirFlag_*tests cover all deprecation behaviors--agent-dirscan-secrets --stagedpassesgofmtpassesChecklist
!for breaking change)Closes #5288
Post-script verification
agent/5288-deprecate-fullsend-dir-flag)0ecb0229723378ef631cb472e09f0cbd28d0b011..HEAD)