mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd/templatebuilder): author initial module catalog for 19 modules (#26194)
> [!NOTE] > This PR was authored by Coder Agents on behalf of @jeremyruppel. Runs the `scripts/modulegen` generator against the coder/registry to produce the initial module catalog for the template builder. Generates `module.json` and `.tf.tmpl` files for 19 modules across four categories: - **IDE**: code-server, jetbrains, vscode-desktop, vscode-web, cursor, windsurf, zed, kiro - **AI Agent**: claude-code, aider, goose, amazon-q - **Source Control**: git-clone, git-config, git-commit-signing - **Utility**: dotfiles, personalize, filebrowser, jupyterlab Also updates `catalog_test.go` to validate the new embedded modules load correctly.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module "code-server" {
|
||||
count = data.coder_workspace.me.start_count
|
||||
source = "{{ .RegistryBase }}/coder/code-server/coder"
|
||||
version = "{{ .PinnedVersion }}"
|
||||
agent_id = coder_agent.{{ .AgentResourceName }}.id
|
||||
additional_args = {{ .Variables.additional_args }}
|
||||
auto_install_extensions = {{ .Variables.auto_install_extensions }}
|
||||
extensions_dir = {{ .Variables.extensions_dir }}
|
||||
folder = {{ .Variables.folder }}
|
||||
install_version = {{ .Variables.install_version }}
|
||||
offline = {{ .Variables.offline }}
|
||||
open_in = {{ .Variables.open_in }}
|
||||
port = {{ .Variables.port }}
|
||||
use_cached = {{ .Variables.use_cached }}
|
||||
use_cached_extensions = {{ .Variables.use_cached_extensions }}
|
||||
workspace = {{ .Variables.workspace }}
|
||||
}
|
||||
@@ -4,27 +4,125 @@
|
||||
"description": "VS Code in the browser",
|
||||
"icon": "/icon/code.svg",
|
||||
"category": "IDE",
|
||||
"tags": ["ide", "web"],
|
||||
"compatible_os": ["linux"],
|
||||
"conflicts_with": [],
|
||||
"pinned_version": "1.2.3",
|
||||
"tags": [
|
||||
"ide",
|
||||
"web",
|
||||
"code-server"
|
||||
],
|
||||
"compatible_os": [
|
||||
"linux"
|
||||
],
|
||||
"conflicts_with": [
|
||||
"vscode-web"
|
||||
],
|
||||
"pinned_version": "1.5.0",
|
||||
"variables": [
|
||||
{
|
||||
"name": "additional_args",
|
||||
"type": "string",
|
||||
"description": "Additional command-line arguments to pass to code-server (e.g., '--disable-workspace-trust').",
|
||||
"default": "",
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "agent_id",
|
||||
"type": "string",
|
||||
"description": "The ID of the Coder agent. Injected automatically by the builder.",
|
||||
"required": true,
|
||||
"description": "The ID of a Coder agent.",
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": true
|
||||
},
|
||||
{
|
||||
"name": "auto_install_extensions",
|
||||
"type": "bool",
|
||||
"description": "Automatically install recommended extensions when code-server starts.",
|
||||
"default": false,
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "extensions_dir",
|
||||
"type": "string",
|
||||
"description": "Override the directory to store extensions in.",
|
||||
"default": "",
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "folder",
|
||||
"type": "string",
|
||||
"description": "The folder to open in code-server.",
|
||||
"default": "",
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "install_version",
|
||||
"type": "string",
|
||||
"description": "The version of code-server to install.",
|
||||
"default": "",
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "offline",
|
||||
"type": "bool",
|
||||
"description": "Just run code-server in the background, don't fetch it from GitHub",
|
||||
"default": false,
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "open_in",
|
||||
"type": "string",
|
||||
"description": "Determines where the app will be opened. Valid values are `\"tab\"` and `\"slim-window\" (default)`.\n`\"tab\"` opens in a new tab in the same browser window.\n`\"slim-window\"` opens a new browser window without navigation controls.\n",
|
||||
"default": "slim-window",
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "port",
|
||||
"type": "number",
|
||||
"description": "Port to run code-server on",
|
||||
"description": "The port to run code-server on.",
|
||||
"default": 13337,
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "use_cached",
|
||||
"type": "bool",
|
||||
"description": "Uses cached copy code-server in the background, otherwise fetched it from GitHub",
|
||||
"default": false,
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "use_cached_extensions",
|
||||
"type": "bool",
|
||||
"description": "Uses cached copy of extensions, otherwise do a forced upgrade",
|
||||
"default": false,
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
},
|
||||
{
|
||||
"name": "workspace",
|
||||
"type": "string",
|
||||
"description": "The path to a `.code-workspace` file to open in code-server. Mutually exclusive with `folder`.",
|
||||
"default": "",
|
||||
"required": false,
|
||||
"sensitive": false,
|
||||
"computed": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user