Skip to content

Releases

v1.9.1-9-gb1c2360

v1.9.1-9-gb1c2360 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Aug 12:18
b1c2360

Snapshot of the main branch, built from b1c2360. Install it with --version=snapshot or castor self-update --snapshot.

Release v1.9.1

Choose a tag to compare

@pyrech pyrech released this 29 Oct 12:01
97f1303

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

Full Changelog: v1.9.0...v1.9.1

Release v1.9.0

Choose a tag to compare

@lyrixx lyrixx released this 20 Oct 14:01
7a69a91

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

Choose a tag to compare

@lyrixx lyrixx released this 21 Sep 08:39
058fedd

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

Choose a tag to compare

@pyrech pyrech released this 18 Sep 09:23
1ff80e6

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

Choose a tag to compare

@lyrixx lyrixx released this 03 Aug 09:35
3931554

What's Changed

Features

  • Add dispatch() and event_dispatcher() functions to dispatch events and access the event dispatcher by @joelwurtz in #842
  • Add mountPath and isRootMount properties to FunctionsResolvedEvent, 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_check and password_authentication ssh options being ignored by @pyrech in #838
  • Fix -c/--context being wrongly parsed from arguments passed after --, causing an unrelated Context "..." not found error
  • Fix AsArgsAfterOptionEnd not 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 AsArgsAfterOptionEnd attribute from being used on more than one parameter of the same task by @lyrixx in #839
  • Turn the SshOptions type alias into a @phpstan-type declared on SshRunner, so it resolves without any PHPStan configuration by @joelwurtz in #841
  • Ship a default ContextData: 'array<string, mixed>' PHPStan type alias in extension.neon, so projects that do not declare their own context data shape no longer get class.notFound errors on Context::$data and variable(). Declaring the alias in your own phpstan.neon still 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

Choose a tag to compare

@pyrech pyrech released this 02 Jul 08:35
333cb08

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

Full Changelog: v1.6.0...v1.6.1

Release v1.6.0

Choose a tag to compare

@lyrixx lyrixx released this 01 Jul 08:12
d7c3fe9

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.context file to set the default context (lowest precedence after --context flag and CASTOR_CONTEXT env 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 -v option to get more debug info by @lyrixx in #830

Security

  • Harden the security of our GitHub Actions Workflows by @lyrixx in #820 and #821

Fixes

  • Fix option mode detection from Symfony command definition by @lyrixx in #827

Internal

Full Changelog: v1.5.0...v1.6.0

Release v1.5.0

Choose a tag to compare

@lyrixx lyrixx released this 27 May 13:17
6fb32aa

What's Changed

Features

  • Add link to the task definition in the help of the task by @lyrixx in #815

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

Documenation

Full Changelog: v1.4.0...v1.5.0

Release v1.4.0

Choose a tag to compare

@lyrixx lyrixx released this 28 Apr 08:37
8b3e3f6

What's Changed

Features

  • Add directory and filter parameters to #[AsPathArgument] and #[AsPathOption] attributes to improve autocomplete by @JorickPepin in #798
  • Add input option 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 from CI env var and STDIN being a TTY); Context::toInteractive() now throws a LogicException when called in a non-interactive environment, with toInteractive(throwOnNonInteractiveEnv: false) to bypass by @Amoifr in #804

Fixes

  • Fix installer to better handle invalid --install-dir option by @pyrech in #797

Internal

New Contributors

Full Changelog: v1.3.0...v1.4.0