Skip to content

Conversation

@cto-new
Copy link

@cto-new cto-new bot commented Oct 16, 2025

Summary

This PR extends process configuration loading to support TOML [processes] and [tasks] sections, cleanly separating long-running processes from one-off tasks. It retains full backward compatibility with legacy proc.toml formats and Procfile-based projects.

Details

  • Defines new TOML config structures, supporting both [processes] and [tasks] tables and legacy top-level process tables.
  • Adds helpers: load_process_configs and load_task_configs, with the latter returning a clear error if no proc.toml is available.
  • Leaves the original load_config_from method backward-compatible for all current callers.
  • Unit tests cover task parsing, legacy proc.toml support, error variants, and validation scenarios.

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

Extends configuration parsing to distinguish between long-running processes and
one-off tasks via new `[processes]` and `[tasks]` tables in `proc.toml`. Adds
helpers to load process and task definitions, while preserving backward
compatibility with legacy top-level layout and Procfile parsing. Introduces
dedicated error handling for unavailable tasks when using only a Procfile.
Includes comprehensive unit tests for new and legacy configurations.

No breaking changes; existing consumers of load_config_from remain unaffected.
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