Repository navigation
Releases
Releases · jolicode/castor
v1.9.1-9-gb1c2360
Snapshot of the main branch, built from b1c2360. Install it with --version=snapshot or castor self-update --snapshot.
Release v1.9.1
What's Changed
Features
- Make .castor.stub.php explain Castor by @lyrixx in #922
- Document how to install Castor with mise, and do not self-update it by @lyrixx in #928
- Explain how to autoload the classes of the tasks with castor.composer.json by @lyrixx in #931
Fixes
- Run self-update without loading the castor file by @lyrixx in #923
- Load the packages of the castor.composer.json of a mounted directory by @lyrixx in #920
- Read the command asked for once, in a CommandLine service by @lyrixx in #925
- Give the size of the terminal to the PTY of the processes by @lyrixx in #921
- Declare --context without -c when list describes the hidden commands by @lyrixx in #927
- Resolve the relative paths of castor.composer.json from its directory by @lyrixx in #930
Documentation
- Migrate the documentation from MkDocs to Zensical by @pyrech in #918
- Fail the documentation build when an included file is missing by @pyrech in #924
Internal
- Shorten the unreleased CHANGELOG entries by @lyrixx in #926
- Update deps by @lyrixx in #929
- Prepare v1.9.1 by @lyrixx in #932
Full Changelog: v1.9.0...v1.9.1
Release v1.9.0
What's Changed
Features
- Wait 3 days after a release before reminding the users to update by @pyrech in #900
- Organize the output of the functions given to parallel() when they are named by @lyrixx in #903
- Add llm_ask() to ask a question to a LLM through the AI CLI installed on the machine by @lyrixx in #901, #914 and #915
- Stop the task when a process is interrupted by a CTRL+C by @lyrixx in #909
- Add llm_run() to let a LLM work on the project by @pyrech in #910
- Ship the dom extension in the static binaries by @lyrixx in #916
Fixes
- fix(installer): install the binary with mode 755 instead of 700 by @lyrixx in #899
- Use directory name of castor file when using --castor-file option instead of current working directory by @joelwurtz in #895
- fix(parallel): pause once per round instead of once per process by @joelwurtz in #902
- Detect a non-interactive environment when /dev/tty can't be opened by @lyrixx in #908
Internal
- Stop castor.composer.lock from changing with the state of the GitHub API by @lyrixx in #904
- Sort the release notes with llm_ask() in the release task by @lyrixx in #905
- Update dependencies by @lyrixx in #913
- Prepare v1.9.0 by @lyrixx in #917
Full Changelog: v1.8.1...v1.9.0
Release v1.8.1
What's Changed
Fixes
- fix(run-php): revert using arg for run php, it fails on process rexecuting himself by @joelwurtz in #897
Full Changelog: v1.8.0...v1.8.1
Release v1.8.0
What's Changed
Features
- Add self-update command to update Castor to the latest version by @pyrech and @Amoifr in #851
- Attest the provenance of the release binaries and verify it in self-update by @pyrech in #852
- Publish snapshot builds of main and add self-update --snapshot by @pyrech in #853
- Publish the checksums of the release binaries and verify them in self-update by @lyrixx in #860
- Verify the checksum of the static-php-cli archive downloaded by compile by @lyrixx in #861
- Refuse an unattested Castor phar in repack by @lyrixx in #866
- feat: allow to trap signals when running commands by @joelwurtz in #855
- Derive the encryption key with the moderate limits of libsodium by @lyrixx in #875
- Anchor the process to the working directory of the context by @Amoifr in #854
- Build a static binary for Windows (amd64) by @pyrech in #879
- Let mount() load a remote Composer package, like import() does by @lyrixx in #886
- setup CASTOR_USE_CHDIR in init command by @lyrixx in #889
- Resolve the remote packages against the packages bundled with Castor by @lyrixx in #887
Fixes
- Fix run() timeout being ignored inside parallel() by @pyrech in #850
- Restrict the file name chosen by the server in http_download() by @lyrixx in #858
- Keep ssh and docker helper parameters out of the local shell by @lyrixx in #862
- Never download the remote packages during a shell completion by @lyrixx in #864
- Extract the watcher binary to the user cache directory by @lyrixx in #863
- Restrict the cache directory to its owner by @lyrixx in #867
- Harden the installer script by @lyrixx in #865
- Keep the zip password off the command line when possible by @lyrixx in #868
- Pass the script run by run_php() as an argument by @lyrixx in #869
- Fix RemoteExecutionTest flakiness caused by ANSI codes in composer output by @lyrixx in #882
- Fix and scope the CASTOR_USE_CHDIR deprecation notice by @lyrixx in #883
- Fix with() leaking the context between fibers in parallel() by @lyrixx in #884
- Fix package name in deprecation by @lyrixx in #890
Documentation
- Document that the context environment is displayed when a process fails by @lyrixx in #859
- Document the network request made by the update reminder by @lyrixx in #872
- Document what running a remote package implies by @lyrixx in #874
- Clarify which phar and static binary to use under WSL by @pyrech in #888
Internal
- Use the new Symfony DI Kernel to build the container by @pyrech in #801
- chore(ci): group dependabot security updates by @lyrixx in #856
- Bump actions/deploy-pages from 5.0.0 to 5.0.1 in the github-actions group by @dependabot[bot] in #857
- Update all PHP vendor by @lyrixx in #876
- Tighten the CI and release tooling by @lyrixx in #873
- Bump shivammathur/setup-php from 2.37.1 to 2.37.2 in the github-actions group by @dependabot[bot] in #877
- Remove the duplicated work and copy-paste in the CI by @lyrixx in #878
- Auto-fetch a GitHub token from gh CLI for local test runs by @lyrixx in #885
- Use a prebuilt static PHP on the Intel macOS runner by @pyrech in #891
- Load only the static tasks when building the static binaries by @pyrech in #893
- Prepare v1.8.0 by @pyrech in #892
- Fix the checksums check of the release task by @pyrech in #894
Full Changelog: v1.7.0...v1.8.0
Release v1.7.0
What's Changed
Features
- Add
dispatch()andevent_dispatcher()functions to dispatch events and access the event dispatcher by @joelwurtz in #842 - Add
mountPathandisRootMountproperties toFunctionsResolvedEvent, so listeners can tell the root application apart from mounted ones (the event is dispatched once per mount) by @joelwurtz in #843
Fixes
- Fix
enable_strict_checkandpassword_authenticationssh options being ignored by @pyrech in #838 - Fix
-c/--contextbeing wrongly parsed from arguments passed after--, causing an unrelatedContext "..." not founderror - Fix
AsArgsAfterOptionEndnot validating arguments properly: extra arguments given without a--were silently dropped instead of raising an error, and required arguments given after--were not detected as missing by @lyrixx in #839 - Prevent the
AsArgsAfterOptionEndattribute from being used on more than one parameter of the same task by @lyrixx in #839 - Turn the
SshOptionstype alias into a@phpstan-typedeclared onSshRunner, so it resolves without any PHPStan configuration by @joelwurtz in #841 - Ship a default
ContextData: 'array<string, mixed>'PHPStan type alias inextension.neon, so projects that do not declare their own context data shape no longer getclass.notFounderrors onContext::$dataandvariable(). Declaring the alias in your ownphpstan.neonstill takes precedence, and is now documented in the context documentation by @joelwurtz in #841 - Fix watcher to use correct binary on Linux ARM64 by @pyrech in #844
- Fix
watch()failing when given an array of paths by @xavierlacot in #845
Full Changelog: v1.6.1...v1.7.0
Release v1.6.1
What's Changed
Features
- Display a nice message when the user is using an unsupported PHP version (8.2 or 8.3) and suggest to use the static binary instead by @lyrixx in #835
Internal
- Bump actions/checkout from 6.0.3 to 7.0.0 in the github-actions group by @dependabot[bot] in #834
- Fix doc anchors for installer options by @pyrech in #836
New Contributors
- @dependabot[bot] made their first contribution in #834
Full Changelog: v1.6.0...v1.6.1
Release v1.6.0
What's Changed
Features
- Drop support for PHP 8.2 and 8.3, minimum supported version is now PHP 8.4 by @lyrixx in #810
- Remove castor header and upgrade output when running inside an ai agent by @joelwurtz in #824
- Add support for
.castor.contextfile to set the default context (lowest precedence after--contextflag andCASTOR_CONTEXTenv var) by @lyrixx in #825 - add CASTOR_DISABLE_AGENT_DETECTION env var to bypass AI agent detection by @lyrixx in #826
- Add a hint to retry the last command with
-voption to get more debug info by @lyrixx in #830
Security
Fixes
Internal
Full Changelog: v1.5.0...v1.6.0
Release v1.5.0
What's Changed
Features
Fixes
- Fix usage of
#[AsArgsAfterOptionEnd], CLI arguments are not mandatory anymore, and PHP parameters can be optional with default value by @lyrixx in #809 - fix(cs): use native function invocation rule, add clone to it by @joelwurtz in #811
- Increase security of usage of #[AsArgsAfterOptionEnd] argument by @lyrixx in #813
- Fix implementation of Context::supportsInteraction() by @lyrixx in #818
Security
- chore(deps): update deps by @joelwurtz in #816
- Add security.md by @lyrixx in #817
Documenation
- Update
wait_for_docker_container()example by @thedomeffm in #814 - Prepare v1.5.0 by @lyrixx in #819
Full Changelog: v1.4.0...v1.5.0
Release v1.4.0
What's Changed
Features
- Add
directoryandfilterparameters to#[AsPathArgument]and#[AsPathOption]attributes to improve autocomplete by @JorickPepin in #798 - Add
inputoption to Context to pass data to process stdin (useful for sensitive data like passwords) by @Amoifr in #799 - Add
Context::supportsInteraction()/Context::withSupportsInteraction()to expose whether the surrounding environment supports interactive commands (auto-detected fromCIenv var and STDIN being a TTY);Context::toInteractive()now throws aLogicExceptionwhen called in a non-interactive environment, withtoInteractive(throwOnNonInteractiveEnv: false)to bypass by @Amoifr in #804
Fixes
Internal
New Contributors
Full Changelog: v1.3.0...v1.4.0