feat(coder-utils): nest scripts under module_directory/scripts#871
Merged
feat(coder-utils): nest scripts under module_directory/scripts#871
Conversation
This was referenced Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move script files from the flat
${module_directory}to ascripts/subdirectory, and prefix each script's filename with${agent_name}-utils-so multiplecoder-utilsinstances can safely share amodule_directory. Mirrors the layout #870 established forlogs/and aligns with the Module Data Layout standard inAGENTS.md(#869).Changes
local.scripts_directory = "${var.module_directory}/scripts"and use it for every*.shpath.${agent_name}-utils-{pre_install,install,post_install,start}.shso twocoder-utilsinstances don't collide on disk.coder_scriptsmkdir -pthescripts/sub-path before writing their.sh; post-install and start sync-depend on install, so the directory already exists by the time they run.module_directorydescription to call out the nestedscripts/andlogs/paths.test_scripts_nested_under_module_directoryasserting the new paths (including the${agent_name}-utils-prefix) and themkdir -pin each script.v1.3.0.Breaking Changes
Consumers reading
${module_directory}/install.sh(and friends) directly must look under${module_directory}/scripts/${agent_name}-utils-install.shinstead. No in-repo consumers exist today.Validation
terraform fmt -recursivecleanterraform validatecleanterraform test→ 16/16 pass (includes the newtest_scripts_nested_under_module_directory)bun test main.test.ts→ 5/5 passprettier --checkclean