Commit 2b7f4ca
feat(cache): add output file archiving and restoration
Archives output files after a successful run and restores them on cache hit. Defaults to automatically tracking files the task writes; accepts globs (e.g. `"dist/**"`), `{ "auto": true }`, and negative patterns (`"!dist/cache/**"`).
Squashed rebase of #321 onto main after the spawn decompose refactor and wincode migration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c4815d2 commit 2b7f4ca
103 files changed
Lines changed: 2368 additions & 421 deletions
File tree
- crates
- vite_task_bin
- src
- vtt
- tests/e2e_snapshots/fixtures
- input_cache_test/snapshots
- output_cache_test
- snapshots
- src
- vite_task_graph
- src/config
- vite_task_plan
- src
- tests/plan_snapshots/fixtures
- additional_env/snapshots
- cache_cli_override/snapshots
- cache_keys/snapshots
- cache_scripts_default/snapshots
- cache_scripts_enabled/snapshots
- cache_scripts_task_override/snapshots
- cache_sharing/snapshots
- cache_subcommand/snapshots
- cache_tasks_disabled/snapshots
- cache_true_no_force_enable/snapshots
- cd_in_scripts/snapshots
- comprehensive_task_graph/snapshots
- conflict_test/snapshots
- cycle_dependency/snapshots
- dependency_both_topo_and_explicit/snapshots
- duplicate_package_names/snapshots
- empty_package_test/snapshots
- explicit_deps_workspace/snapshots
- extra_args_not_forwarded_to_depends_on/snapshots
- filter_workspace/snapshots
- input_trailing_slash/snapshots
- input_workspace_base/snapshots
- nested_cache_override/snapshots
- nested_tasks/snapshots
- package_self_dependency/snapshots
- parallel_and_concurrency/snapshots
- pnpm_workspace_packages_optional/snapshots
- recursive_topological_workspace/snapshots
- script_hooks_disabled/snapshots
- script_hooks_nested_run/snapshots
- script_hooks_task_no_hook/snapshots
- script_hooks/snapshots
- shell_fallback/snapshots
- synthetic_cache_disabled/snapshots
- synthetic_in_subpackage/snapshots
- transitive_skip_intermediate/snapshots
- vpr_shorthand/snapshots
- workspace_root_cd_no_skip/snapshots
- workspace_root_depends_on_passthrough/snapshots
- workspace_root_multi_command/snapshots
- workspace_root_mutual_recursion/snapshots
- workspace_root_no_package_json/snapshots
- workspace_root_self_reference/snapshots
- vite_task
- docs
- src/session
- cache
- execute
- reporter
- docs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments