Files
coder/coderd/templatebuilder/modules/stub/module.json
T
Jeremy Ruppel dd7a4f54b1 feat(coderd/templatebuilder): add module catalog structure and go:embed wiring
Scaffolds the coderd/templatebuilder package for the guided template
builder (DEVEX-272). Adds:

- codersdk.TemplateBuilderModule and related types matching the RFC schema
- ModuleManifest internal type with go:embed wiring for bundled catalog
- LoadModules() to parse module.json files from embedded FS
- ToSDK() conversion from on-disk manifest to API response type
- Stub module exercising all schema fields (builder_managed, sensitive,
  conflicts_with, compatible_os, pinned_version)
- Tests for catalog loading, field parsing, and SDK conversion
2026-06-01 15:05:09 +00:00

30 lines
678 B
JSON

{
"id": "stub",
"display_name": "Stub Module",
"description": "Stub module for testing the catalog system.",
"icon": "",
"category": "Utility",
"tags": ["test"],
"compatible_os": ["linux"],
"conflicts_with": [],
"pinned_version": "0.0.0",
"variables": [
{
"name": "agent_id",
"type": "string",
"description": "The ID of the Coder agent.",
"required": true,
"sensitive": false,
"builder_managed": true
},
{
"name": "example_secret",
"type": "string",
"description": "An example sensitive variable.",
"required": false,
"sensitive": true,
"builder_managed": false
}
]
}