Skip to content

Commit b8442c2

Browse files
Merge branch 'main' into cat/antigravity-module
2 parents cb4c267 + f3c24af commit b8442c2

File tree

20 files changed

+136
-58
lines changed

20 files changed

+136
-58
lines changed

.github/scripts/version-bump.sh

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,38 @@ update_readme_version() {
7070
if grep -q "source.*${module_source}" "$readme_path"; then
7171
echo "Updating version references for $namespace/$module_name in $readme_path"
7272
awk -v module_source="$module_source" -v new_version="$new_version" '
73-
/source.*=.*/ {
74-
if ($0 ~ module_source) {
75-
in_target_module = 1
76-
} else {
77-
in_target_module = 0
78-
}
73+
/^[[:space:]]*module[[:space:]]/ {
74+
in_module_block = 1
75+
module_content = $0 "\n"
76+
module_has_target_source = 0
77+
next
7978
}
80-
/^[[:space:]]*version[[:space:]]*=/ {
81-
if (in_target_module) {
82-
match($0, /^[[:space]]*/
83-
indent = substr($0, 1, RLENGTH)
84-
print indent "version = \"" new_version "\""
85-
in_target_module = 0
79+
in_module_block {
80+
module_content = module_content $0 "\n"
81+
if ($0 ~ /source.*=/ && $0 ~ module_source) {
82+
module_has_target_source = 1
83+
}
84+
if ($0 ~ /^[[:space:]]*}[[:space:]]*$/) {
85+
in_module_block = 0
86+
if (module_has_target_source) {
87+
num_lines = split(module_content, lines, "\n")
88+
for (i = 1; i <= num_lines; i++) {
89+
line = lines[i]
90+
if (line ~ /^[[:space:]]*version[[:space:]]*=/) {
91+
match(line, /^[[:space:]]*/)
92+
indent = substr(line, 1, RLENGTH)
93+
printf "%sversion = \"%s\"\n", indent, new_version
94+
} else {
95+
print line
96+
}
97+
}
98+
} else {
99+
printf "%s", module_content
100+
}
101+
module_content = ""
86102
next
87103
}
104+
next
88105
}
89106
{ print }
90107
' "$readme_path" > "${readme_path}.tmp" && mv "${readme_path}.tmp" "$readme_path"

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Set up Go
9898
uses: actions/setup-go@v6
9999
with:
100-
go-version: "1.23.2"
100+
go-version: "1.24.0"
101101
- name: Validate contributors
102102
run: go build ./cmd/readmevalidation && ./readmevalidation
103103
- name: Remove build file artifact

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module coder.com/coder-registry
22

3-
go 1.23.2
3+
go 1.24.0
44

55
require (
66
cdr.dev/slog v1.6.1
@@ -20,7 +20,7 @@ require (
2020
github.com/rivo/uniseg v0.4.4 // indirect
2121
go.opentelemetry.io/otel v1.16.0 // indirect
2222
go.opentelemetry.io/otel/trace v1.16.0 // indirect
23-
golang.org/x/crypto v0.35.0 // indirect
24-
golang.org/x/sys v0.30.0 // indirect
25-
golang.org/x/term v0.29.0 // indirect
23+
golang.org/x/crypto v0.45.0 // indirect
24+
golang.org/x/sys v0.38.0 // indirect
25+
golang.org/x/term v0.37.0 // indirect
2626
)

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ go.opentelemetry.io/otel/sdk v1.16.0 h1:Z1Ok1YsijYL0CSJpHt4cS3wDDh7p572grzNrBMiM
5151
go.opentelemetry.io/otel/sdk v1.16.0/go.mod h1:tMsIuKXuuIWPBAOrH+eHtvhTL+SntFtXF9QD68aP6p4=
5252
go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZEu5MQs=
5353
go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0=
54-
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
55-
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
56-
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
57-
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
54+
golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
55+
golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
56+
golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=
57+
golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU=
5858
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
59-
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
60-
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
61-
golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
62-
golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=
63-
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
64-
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
59+
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
60+
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
61+
golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
62+
golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=
63+
golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=
64+
golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=
6565
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da h1:noIWHXmPHxILtqtCOPIhSt0ABwskkZKjD3bXGnZGpNY=
6666
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90=
6767
google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e h1:xIXmWJ303kJCuogpj0bHq+dcjcZHU+XFyc1I0Yl9cRg=

registry/coder/modules/claude-code/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1313
```tf
1414
module "claude-code" {
1515
source = "registry.coder.com/coder/claude-code/coder"
16-
version = "4.2.0"
16+
version = "4.2.1"
1717
agent_id = coder_agent.example.id
1818
workdir = "/home/coder/project"
1919
claude_api_key = "xxxx-xxxxx-xxxx"
@@ -51,7 +51,7 @@ module "claude-code" {
5151
boundary_log_level = "WARN"
5252
boundary_additional_allowed_urls = ["GET *google.com"]
5353
boundary_proxy_port = "8087"
54-
version = "3.4.3"
54+
version = "4.2.1"
5555
}
5656
```
5757

@@ -70,7 +70,7 @@ data "coder_parameter" "ai_prompt" {
7070
7171
module "claude-code" {
7272
source = "registry.coder.com/coder/claude-code/coder"
73-
version = "4.2.0"
73+
version = "4.2.1"
7474
agent_id = coder_agent.example.id
7575
workdir = "/home/coder/project"
7676
@@ -106,7 +106,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
106106
```tf
107107
module "claude-code" {
108108
source = "registry.coder.com/coder/claude-code/coder"
109-
version = "4.2.0"
109+
version = "4.2.1"
110110
agent_id = coder_agent.example.id
111111
workdir = "/home/coder"
112112
install_claude_code = true
@@ -129,7 +129,7 @@ variable "claude_code_oauth_token" {
129129
130130
module "claude-code" {
131131
source = "registry.coder.com/coder/claude-code/coder"
132-
version = "4.2.0"
132+
version = "4.2.1"
133133
agent_id = coder_agent.example.id
134134
workdir = "/home/coder/project"
135135
claude_code_oauth_token = var.claude_code_oauth_token
@@ -202,7 +202,7 @@ resource "coder_env" "bedrock_api_key" {
202202
203203
module "claude-code" {
204204
source = "registry.coder.com/coder/claude-code/coder"
205-
version = "4.2.0"
205+
version = "4.2.1"
206206
agent_id = coder_agent.example.id
207207
workdir = "/home/coder/project"
208208
model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0"
@@ -259,7 +259,7 @@ resource "coder_env" "google_application_credentials" {
259259
260260
module "claude-code" {
261261
source = "registry.coder.com/coder/claude-code/coder"
262-
version = "4.2.0"
262+
version = "4.2.1"
263263
agent_id = coder_agent.example.id
264264
workdir = "/home/coder/project"
265265
model = "claude-sonnet-4@20250514"

registry/coder/modules/claude-code/scripts/start.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,13 @@ task_session_exists() {
103103
local workdir_normalized=$(echo "$ARG_WORKDIR" | tr '/' '-')
104104
local project_dir="$HOME/.claude/projects/${workdir_normalized}"
105105

106+
printf "PROJECT_DIR: %s, workdir_normalized: %s\n" "$project_dir" "$workdir_normalized"
107+
106108
if [ -d "$project_dir" ] && find "$project_dir" -type f -name "*${TASK_SESSION_ID}*" 2> /dev/null | grep -q .; then
109+
printf "TASK_SESSION_ID: %s file found\n" "$TASK_SESSION_ID"
107110
return 0
108111
else
112+
printf "TASK_SESSION_ID: %s file not found\n" "$TASK_SESSION_ID"
109113
return 1
110114
fi
111115
}
@@ -149,7 +153,11 @@ function start_agentapi() {
149153
else
150154
echo "No existing session found"
151155
if [ "$ARG_REPORT_TASKS" = "true" ]; then
152-
ARGS+=(--session-id "$TASK_SESSION_ID")
156+
if task_session_exists; then
157+
ARGS+=(--resume "$TASK_SESSION_ID")
158+
else
159+
ARGS+=(--session-id "$TASK_SESSION_ID")
160+
fi
153161
fi
154162
if [ -n "$ARG_AI_PROMPT" ]; then
155163
if [ "$ARG_REPORT_TASKS" = "true" ]; then
@@ -171,7 +179,11 @@ function start_agentapi() {
171179
else
172180
echo "Continue disabled, starting fresh session"
173181
if [ "$ARG_REPORT_TASKS" = "true" ]; then
174-
ARGS+=(--session-id "$TASK_SESSION_ID")
182+
if task_session_exists; then
183+
ARGS+=(--resume "$TASK_SESSION_ID")
184+
else
185+
ARGS+=(--session-id "$TASK_SESSION_ID")
186+
fi
175187
fi
176188
if [ -n "$ARG_AI_PROMPT" ]; then
177189
if [ "$ARG_REPORT_TASKS" = "true" ]; then

registry/coder/modules/mux/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Automatically install and run mux in a Coder workspace. By default, the module i
1414
module "mux" {
1515
count = data.coder_workspace.me.start_count
1616
source = "registry.coder.com/coder/mux/coder"
17-
version = "1.0.0"
17+
version = "1.0.1"
1818
agent_id = coder_agent.example.id
1919
}
2020
```
@@ -35,7 +35,7 @@ module "mux" {
3535
module "mux" {
3636
count = data.coder_workspace.me.start_count
3737
source = "registry.coder.com/coder/mux/coder"
38-
version = "1.0.0"
38+
version = "1.0.1"
3939
agent_id = coder_agent.example.id
4040
}
4141
```
@@ -46,7 +46,7 @@ module "mux" {
4646
module "mux" {
4747
count = data.coder_workspace.me.start_count
4848
source = "registry.coder.com/coder/mux/coder"
49-
version = "1.0.0"
49+
version = "1.0.1"
5050
agent_id = coder_agent.example.id
5151
# Default is "latest"; set to a specific version to pin
5252
install_version = "0.4.0"
@@ -59,7 +59,7 @@ module "mux" {
5959
module "mux" {
6060
count = data.coder_workspace.me.start_count
6161
source = "registry.coder.com/coder/mux/coder"
62-
version = "1.0.0"
62+
version = "1.0.1"
6363
agent_id = coder_agent.example.id
6464
port = 8080
6565
}
@@ -73,7 +73,7 @@ Run an existing copy of mux if found, otherwise install from npm:
7373
module "mux" {
7474
count = data.coder_workspace.me.start_count
7575
source = "registry.coder.com/coder/mux/coder"
76-
version = "1.0.0"
76+
version = "1.0.1"
7777
agent_id = coder_agent.example.id
7878
use_cached = true
7979
}
@@ -87,7 +87,7 @@ Run without installing from the network (requires mux to be pre-installed):
8787
module "mux" {
8888
count = data.coder_workspace.me.start_count
8989
source = "registry.coder.com/coder/mux/coder"
90-
version = "1.0.0"
90+
version = "1.0.1"
9191
agent_id = coder_agent.example.id
9292
install = false
9393
}

registry/coder/modules/mux/main.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ describe("mux", async () => {
5555
expect(output.exitCode).toBe(0);
5656
const expectedLines = [
5757
"📦 Installing mux via npm into /tmp/mux...",
58+
"⏭️ Skipping npm lifecycle scripts with --ignore-scripts",
5859
"🥳 mux has been installed in /tmp/mux",
5960
"🚀 Starting mux server on port 4000...",
6061
"Check logs at /tmp/mux.log!",
6162
];
6263
for (const line of expectedLines) {
6364
expect(output.stdout).toContain(line);
6465
}
65-
}, 60000);
66+
}, 180000);
6667
});

registry/coder/modules/mux/run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ if [ ! -f "$MUX_BINARY" ] || [ "${USE_CACHED}" != true ]; then
5050
if [ ! -f package.json ]; then
5151
echo '{}' > package.json
5252
fi
53+
echo "⏭️ Skipping npm lifecycle scripts with --ignore-scripts"
5354
PKG="mux"
5455
if [ -z "${VERSION}" ] || [ "${VERSION}" = "latest" ]; then
5556
PKG_SPEC="$PKG@latest"
5657
else
5758
PKG_SPEC="$PKG@${VERSION}"
5859
fi
59-
if ! npm install --no-audit --no-fund --omit=dev "$PKG_SPEC"; then
60+
if ! npm install --no-audit --no-fund --omit=dev --ignore-scripts "$PKG_SPEC"; then
6061
echo "❌ Failed to install mux via npm"
6162
exit 1
6263
fi

registry/coder/modules/vault-github/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This module lets you authenticate with [Hashicorp Vault](https://www.vaultprojec
1414
module "vault" {
1515
count = data.coder_workspace.me.start_count
1616
source = "registry.coder.com/coder/vault-github/coder"
17-
version = "1.0.31"
17+
version = "1.1.0"
1818
agent_id = coder_agent.example.id
1919
vault_addr = "https://vault.example.com"
2020
}
@@ -46,7 +46,7 @@ To configure the Vault module, you must set up a Vault GitHub auth method. See t
4646
module "vault" {
4747
count = data.coder_workspace.me.start_count
4848
source = "registry.coder.com/coder/vault-github/coder"
49-
version = "1.0.31"
49+
version = "1.1.0"
5050
agent_id = coder_agent.example.id
5151
vault_addr = "https://vault.example.com"
5252
coder_github_auth_id = "my-github-auth-id"
@@ -59,7 +59,7 @@ module "vault" {
5959
module "vault" {
6060
count = data.coder_workspace.me.start_count
6161
source = "registry.coder.com/coder/vault-github/coder"
62-
version = "1.0.31"
62+
version = "1.1.0"
6363
agent_id = coder_agent.example.id
6464
vault_addr = "https://vault.example.com"
6565
coder_github_auth_id = "my-github-auth-id"
@@ -73,7 +73,7 @@ module "vault" {
7373
module "vault" {
7474
count = data.coder_workspace.me.start_count
7575
source = "registry.coder.com/coder/vault-github/coder"
76-
version = "1.0.31"
76+
version = "1.1.0"
7777
agent_id = coder_agent.example.id
7878
vault_addr = "https://vault.example.com"
7979
vault_cli_version = "1.15.0"

0 commit comments

Comments
 (0)