3 Commits
Author SHA1 Message Date
João MouraandClaude Opus 5.5 a1be1275de feat(cli): add deploy create --zip and print the commit a zip is built from (#8602)
* feat(cli): add deploy create --zip and print the commit a zip is built from

`crewai deploy create --zip` uploads the project as a ZIP even when it has a
git origin, without fetching from that origin. Every ZIP upload (create and
push) prints the local commit it was built from and whether the working tree
had uncommitted changes; AMP keeps no commit for ZIP deployments.

The scaffolded AGENTS.md no longer says there is no such flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): check zip dirtiness on the zip's own files and never fail on it

The commit line's dirty check reused `git status --branch --porcelain`,
which raised when status failed (aborting a ZIP deploy that works on
main), honoured status.showUntrackedFiles=no (reporting a clean tree for
a ZIP that uploads untracked files), and looked at the whole repository
instead of the project directory the ZIP is built from.

`Repository.has_changes_under_path` runs `git status --porcelain
--untracked-files=normal -- .` and returns None when status fails; the
line then says it could not check. Also updates AGENTS.md eval item
C-058, which still graded "no --zip flag exists" as right, and narrows
the docs bullet to repositories with a commit (en, ar, ko, pt-BR).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 02:10:32 -03:00
João Moura 53c2284484 Support ZIP deployment fallback and JSON crew project env runs (#6166)
* Update crewAI CLI with various enhancements and fixes

- Updated `create_json_crew.py` to require `crewai[tools]>=1.14.7`.
- Enhanced `git.py` with improved repository initialization, including automatic initial commit creation and exclusion patterns for initial commits.
- Modified `install_crew.py` to allow error handling during installation with an optional `raise_on_error` parameter.
- Expanded `plus_api.py` to include methods for creating and updating crews from ZIP files.
- Introduced a new `archive.py` for creating deployable ZIP archives of CrewAI projects, ensuring local artifacts are excluded.
- Updated `run_crew.py` to manage JSON crew dependencies and run crews in the project's environment.
- Enhanced deployment logic in `main.py` to handle ZIP uploads and improve user feedback during deployment processes.
- Added tests for new functionalities and ensured existing tests reflect recent changes in behavior and requirements.

* fix(cli): address deploy zip review feedback

* fix(cli): sync missing lockfile before deploy

* fix(cli): preserve remote deploy on git setup warnings

* test(cli): use single deploy main import style

* fix(cli): skip project install for json crew sync

* fix(cli): load json runner from source checkout

* fix(cli): skip json crew sync when locked

* fix(cli): address deploy zip review feedback

* fix(cli): pass env on zip redeploy

* fix(cli): harden json run and zip fallback

* fix(cli): validate before deploy lock install

* fix(cli): respect poetry lock for json runs

* fix(cli): align json zip wrapper detection

* fix(deps): bump starlette audit floor

* fix(cli): avoid auth retry for deploy exits

* fix(cli): update json zip script entrypoints
2026-06-15 18:46:54 -03:00
Greyson LaLonde 93e786d263 refactor: extract CLI into standalone crewai-cli package 2026-05-06 20:46:46 +08:00