Skip to content

Commit 7fb8b86

Browse files
committed
ref: bun fmt
1 parent 9411582 commit 7fb8b86

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,22 +111,22 @@ module "claude-code" {
111111

112112
The module can be further configured using environment variables set on the Coder agent. This allows for more advanced or dynamic setups.
113113

114-
| Variable | Description | Default |
115-
| ------------------------------------ | ------------------------------------------------------------------------------ | ---------------------------------------------- |
116-
| `CLAUDE_API_KEY` | Your Anthropic API key. | `""` |
117-
| `CODER_MCP_CLAUDE_SYSTEM_PROMPT` | A custom system prompt for Claude. | "Send a task status update..." |
118-
| `CODER_MCP_CLAUDE_CODER_PROMPT` | A custom coder prompt for Claude. | `""` |
119-
| `CODER_MCP_CLAUDE_CONFIG_PATH` | Path to the Claude configuration file. | `~/.claude.json` |
120-
| `CODER_MCP_CLAUDE_MD_PATH` | Path to a `CLAUDE.md` file for project-specific instructions. | `~/.claude/CLAUDE.md` |
121-
| `CLAUDE_CODE_USE_BEDROCK` | Set to `"true"` to use Amazon Bedrock. Requires additional AWS configuration. | `""` |
114+
| Variable | Description | Default |
115+
| -------------------------------- | ----------------------------------------------------------------------------- | ------------------------------ |
116+
| `CLAUDE_API_KEY` | Your Anthropic API key. | `""` |
117+
| `CODER_MCP_CLAUDE_SYSTEM_PROMPT` | A custom system prompt for Claude. | "Send a task status update..." |
118+
| `CODER_MCP_CLAUDE_CODER_PROMPT` | A custom coder prompt for Claude. | `""` |
119+
| `CODER_MCP_CLAUDE_CONFIG_PATH` | Path to the Claude configuration file. | `~/.claude.json` |
120+
| `CODER_MCP_CLAUDE_MD_PATH` | Path to a `CLAUDE.md` file for project-specific instructions. | `~/.claude/CLAUDE.md` |
121+
| `CLAUDE_CODE_USE_BEDROCK` | Set to `"true"` to use Amazon Bedrock. Requires additional AWS configuration. | `""` |
122122

123123
An example of setting these on a `coder_agent` resource:
124124

125125
```tf
126126
resource "coder_agent" "main" {
127127
# ... other agent config
128128
env = {
129-
CLAUDE_API_KEY = var.anthropic_api_key
129+
CLAUDE_API_KEY = var.anthropic_api_key
130130
CODER_MCP_CLAUDE_SYSTEM_PROMPT = <<-EOT
131131
You are a helpful assistant that can help with code.
132132
EOT

registry/coder/modules/claude-code/main.test.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe("claude-code", async () => {
9090
const resp = await execContainer(id, [
9191
"bash",
9292
"-c",
93-
'cat /home/coder/.claude-module/install.log',
93+
"cat /home/coder/.claude-module/install.log",
9494
]);
9595
expect(resp.stdout).toContain(version_to_install);
9696
});
@@ -129,9 +129,9 @@ describe("claude-code", async () => {
129129
mcpServers: {
130130
test: {
131131
command: "test-cmd",
132-
type: "stdio"
133-
}
134-
}
132+
type: "stdio",
133+
},
134+
},
135135
});
136136
const { id } = await setup({
137137
moduleVariables: {
@@ -159,7 +159,7 @@ describe("claude-code", async () => {
159159
const resp = await execContainer(id, [
160160
"bash",
161161
"-c",
162-
'cat /home/coder/.claude-module/agentapi-start.log',
162+
"cat /home/coder/.claude-module/agentapi-start.log",
163163
]);
164164
expect(resp.stdout).toContain(prompt);
165165
});
@@ -264,8 +264,13 @@ describe("claude-code", async () => {
264264
});
265265
await execModuleScript(id);
266266

267-
const installLog = await readFileContainer(id, "/home/coder/.claude-module/install.log");
268-
expect(installLog).toContain("Configuring Claude Code to report tasks via Coder MCP");
267+
const installLog = await readFileContainer(
268+
id,
269+
"/home/coder/.claude-module/install.log",
270+
);
271+
expect(installLog).toContain(
272+
"Configuring Claude Code to report tasks via Coder MCP",
273+
);
269274
});
270275

271276
test("dangerously-skip-permissions", async () => {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ printf "ARG_PERMISSION_MODE: %s\n" "$ARG_PERMISSION_MODE"
2626
printf "ARG_TASK_PROMPT: %s\n" "$ARG_TASK_PROMPT"
2727
printf "ARG_WORKDIR: %s\n" "$ARG_WORKDIR"
2828

29-
3029
echo "--------------------------------"
3130

3231
# see the remove-last-session-id.sh script for details

registry/coder/modules/claude-code/testdata/claude-mock.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ set -e
1010
while true; do
1111
echo "$(date) - claude-mock"
1212
sleep 15
13-
done
13+
done

0 commit comments

Comments
 (0)