Commit Graph

8 Commits

Author SHA1 Message Date
Simon Pinfold bf898cc552 fix(assets): move model asset on model_type: edit to stay loader-coherent
Under supports_model_type_tags, a model_type: edit on a filesystem-backed
model asset now relocates and re-registers the file to the folder matching
the new model_type:<folder_name>, so the file location stays coherent with
the label instead of a label-only relabel that left the file loader-orphaned.

Triggered off the POST /tags add (apply_tags): on a registered folder change
the file moves (preserving subfolder + filename), path-derived system tags
are re-derived, and filename metadata refreshed, all in one transaction with
file rollback on failure. Collisions are rejected (never clobber); an
unregistered model_type: stays a permissive label; non-model and hash-only
references are untouched. Shared on-disk folders keep their plural twins.
2026-06-20 14:40:08 +12:00
Simon Pinfold 990242a07d Add asset response file paths
Amp-Thread-ID: https://ampcode.com/threads/T-019eddf6-336e-71db-b94b-655afe52505e
Co-authored-by: Amp <amp@ampcode.com>
2026-06-20 13:32:22 +12:00
Simon Pinfold 14266fe789 Defer public asset file paths
Amp-Thread-ID: https://ampcode.com/threads/T-019ecf39-2e6f-747d-ae80-addba6b8e4f5
Co-authored-by: Amp <amp@ampcode.com>
2026-06-20 13:28:24 +12:00
Simon Pinfold 54d64d9762 Reject Windows subfolder paths
Amp-Thread-ID: https://ampcode.com/threads/T-019ecf39-2e6f-747d-ae80-addba6b8e4f5
Co-authored-by: Amp <amp@ampcode.com>
2026-06-20 13:28:23 +12:00
Simon Pinfold 6df0c1851c Add explicit asset upload subfolder handling
Amp-Thread-ID: https://ampcode.com/threads/T-019ecf39-2e6f-747d-ae80-addba6b8e4f5
Co-authored-by: Amp <amp@ampcode.com>
2026-06-20 13:28:23 +12:00
Simon Pinfold e163d59508 Add namespaced model type asset tags
Amp-Thread-ID: https://ampcode.com/threads/T-019ecf39-2e6f-747d-ae80-addba6b8e4f5
Co-authored-by: Amp <amp@ampcode.com>
2026-06-20 13:28:23 +12:00
Luke Mino-Altherr 3eba2dcf2d
fix(assets): recognize temp directory in asset category resolution (#13159) 2026-03-25 19:59:59 -07:00
Luke Mino-Altherr 29b24cb517
refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00