Skip to content

feat: refactor Amazon Q module to use agentAPI #1242

feat: refactor Amazon Q module to use agentAPI

feat: refactor Amazon Q module to use agentAPI #1242

Triggered via pull request August 25, 2025 13:57
Status Cancelled
Total duration 4m 26s
Artifacts

ci.yaml

on: pull_request
Check for typos and unformatted code
34s
Check for typos and unformatted code
Validate Terraform output
4m 21s
Validate Terraform output
Validate README files
17s
Validate README files
Fit to window
Zoom out
Zoom in

Annotations

12 errors
error:: test/test.ts#L265
on main.tf line 159, in locals: 159: agent_config_json = jsondecode(local.agent_config) while calling jsondecode(str) local.agent_config is "{\n \"name\": \"agent\",\n \"description\": \"This is an default agent config\",\n \"prompt\": \"You are a helpful Coding assistant. Aim to autonomously investigate\nand solve issues the user gives you and test your work, whenever possible.\nAvoid shortcuts like mocking tests. When you get stuck, you can ask the user\nbut opt for autonomy.\n\nYOU MUST REPORT ALL TASKS TO CODER.\nWhen reporting tasks, you MUST follow these EXACT instructions:\n- IMMEDIATELY report status after receiving ANY user message.\n- Be granular. If you are investigating with multiple steps, report each step to coder.\n\nTask state MUST be one of the following:\n- Use \"state\": \"working\" when actively processing WITHOUT needing additional user input.\n- Use \"state\": \"complete\" only when finished with a task.\n- Use \"state\": \"failure\" when you need ANY user input, lack sufficient details, or encounter blockers.\n\nTask summaries MUST:\n- Include specifics about what you're doing.\n- Include clear and actionable steps for the user.\n- Be less than 160 characters in length.\n\",\n \"mcpServers\": {},\n \"tools\": [\n \"fs_read\",\n \"fs_write\",\n \"execute_bash\",\n \"use_aws\",\n \"knowledge\"\n ],\n \"toolAliases\": {},\n \"allowedTools\": [\n \"fs_read\"\n ],\n \"resources\": [\n \"file://AmazonQ.md\",\n \"file://README.md\",\n \"file://.amazonq/rules/**/*.md\"\n ],\n \"hooks\": {},\n \"toolsSettings\": {},\n \"useLegacyMcpJson\": true\n}\n\n" Call to function "jsondecode" failed: invalid character '\n' in string literal. at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:11)
error:: test/test.ts#L265
on main.tf line 159, in locals: 159: agent_config_json = jsondecode(local.agent_config) while calling jsondecode(str) local.agent_config is "{\n \"name\": \"agent\",\n \"description\": \"This is an default agent config\",\n \"prompt\": \"You are a helpful Coding assistant. Aim to autonomously investigate\nand solve issues the user gives you and test your work, whenever possible.\nAvoid shortcuts like mocking tests. When you get stuck, you can ask the user\nbut opt for autonomy.\n\nYOU MUST REPORT ALL TASKS TO CODER.\nWhen reporting tasks, you MUST follow these EXACT instructions:\n- IMMEDIATELY report status after receiving ANY user message.\n- Be granular. If you are investigating with multiple steps, report each step to coder.\n\nTask state MUST be one of the following:\n- Use \"state\": \"working\" when actively processing WITHOUT needing additional user input.\n- Use \"state\": \"complete\" only when finished with a task.\n- Use \"state\": \"failure\" when you need ANY user input, lack sufficient details, or encounter blockers.\n\nTask summaries MUST:\n- Include specifics about what you're doing.\n- Include clear and actionable steps for the user.\n- Be less than 160 characters in length.\n\",\n \"mcpServers\": {},\n \"tools\": [\n \"fs_read\",\n \"fs_write\",\n \"execute_bash\",\n \"use_aws\",\n \"knowledge\"\n ],\n \"toolAliases\": {},\n \"allowedTools\": [\n \"fs_read\"\n ],\n \"resources\": [\n \"file://AmazonQ.md\",\n \"file://README.md\",\n \"file://.amazonq/rules/**/*.md\"\n ],\n \"hooks\": {},\n \"toolsSettings\": {},\n \"useLegacyMcpJson\": true\n}\n\n" Call to function "jsondecode" failed: invalid character '\n' in string literal. at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:11)
error: expect(received).toBeDefined(): registry/coder/modules/amazon-q/main.test.ts#L135
Received: undefined at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/amazon-q/main.test.ts:135:28)
error:: test/test.ts#L265
on main.tf line 159, in locals: 159: agent_config_json = jsondecode(local.agent_config) while calling jsondecode(str) local.agent_config is "{\n \"name\": \"agent\",\n \"description\": \"This is an default agent config\",\n \"prompt\": \"You are a helpful Coding assistant. Aim to autonomously investigate\nand solve issues the user gives you and test your work, whenever possible.\nAvoid shortcuts like mocking tests. When you get stuck, you can ask the user\nbut opt for autonomy.\n\nYOU MUST REPORT ALL TASKS TO CODER.\nWhen reporting tasks, you MUST follow these EXACT instructions:\n- IMMEDIATELY report status after receiving ANY user message.\n- Be granular. If you are investigating with multiple steps, report each step to coder.\n\nTask state MUST be one of the following:\n- Use \"state\": \"working\" when actively processing WITHOUT needing additional user input.\n- Use \"state\": \"complete\" only when finished with a task.\n- Use \"state\": \"failure\" when you need ANY user input, lack sufficient details, or encounter blockers.\n\nTask summaries MUST:\n- Include specifics about what you're doing.\n- Include clear and actionable steps for the user.\n- Be less than 160 characters in length.\n\",\n \"mcpServers\": {},\n \"tools\": [\n \"fs_read\",\n \"fs_write\",\n \"execute_bash\",\n \"use_aws\",\n \"knowledge\"\n ],\n \"toolAliases\": {},\n \"allowedTools\": [\n \"fs_read\"\n ],\n \"resources\": [\n \"file://AmazonQ.md\",\n \"file://README.md\",\n \"file://.amazonq/rules/**/*.md\"\n ],\n \"hooks\": {},\n \"toolsSettings\": {},\n \"useLegacyMcpJson\": true\n}\n\n" Call to function "jsondecode" failed: invalid character '\n' in string literal. at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:11)
error:: test/test.ts#L265
on main.tf line 159, in locals: 159: agent_config_json = jsondecode(local.agent_config) while calling jsondecode(str) local.agent_config is "{\n \"name\": \"agent\",\n \"description\": \"This is an default agent config\",\n \"prompt\": \"You are a helpful Coding assistant. Aim to autonomously investigate\nand solve issues the user gives you and test your work, whenever possible.\nAvoid shortcuts like mocking tests. When you get stuck, you can ask the user\nbut opt for autonomy.\n\nYOU MUST REPORT ALL TASKS TO CODER.\nWhen reporting tasks, you MUST follow these EXACT instructions:\n- IMMEDIATELY report status after receiving ANY user message.\n- Be granular. If you are investigating with multiple steps, report each step to coder.\n\nTask state MUST be one of the following:\n- Use \"state\": \"working\" when actively processing WITHOUT needing additional user input.\n- Use \"state\": \"complete\" only when finished with a task.\n- Use \"state\": \"failure\" when you need ANY user input, lack sufficient details, or encounter blockers.\n\nTask summaries MUST:\n- Include specifics about what you're doing.\n- Include clear and actionable steps for the user.\n- Be less than 160 characters in length.\n\",\n \"mcpServers\": {},\n \"tools\": [\n \"fs_read\",\n \"fs_write\",\n \"execute_bash\",\n \"use_aws\",\n \"knowledge\"\n ],\n \"toolAliases\": {},\n \"allowedTools\": [\n \"fs_read\"\n ],\n \"resources\": [\n \"file://AmazonQ.md\",\n \"file://README.md\",\n \"file://.amazonq/rules/**/*.md\"\n ],\n \"hooks\": {},\n \"toolsSettings\": {},\n \"useLegacyMcpJson\": true\n}\n\n" Call to function "jsondecode" failed: invalid character '\n' in string literal. at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:11)
error:: test/test.ts#L265
on main.tf line 159, in locals: 159: agent_config_json = jsondecode(local.agent_config) while calling jsondecode(str) local.agent_config is "{\n \"name\": \"agent\",\n \"description\": \"This is an default agent config\",\n \"prompt\": \"You are a helpful Coding assistant. Aim to autonomously investigate\nand solve issues the user gives you and test your work, whenever possible.\nAvoid shortcuts like mocking tests. When you get stuck, you can ask the user\nbut opt for autonomy.\n\nYOU MUST REPORT ALL TASKS TO CODER.\nWhen reporting tasks, you MUST follow these EXACT instructions:\n- IMMEDIATELY report status after receiving ANY user message.\n- Be granular. If you are investigating with multiple steps, report each step to coder.\n\nTask state MUST be one of the following:\n- Use \"state\": \"working\" when actively processing WITHOUT needing additional user input.\n- Use \"state\": \"complete\" only when finished with a task.\n- Use \"state\": \"failure\" when you need ANY user input, lack sufficient details, or encounter blockers.\n\nTask summaries MUST:\n- Include specifics about what you're doing.\n- Include clear and actionable steps for the user.\n- Be less than 160 characters in length.\n\",\n \"mcpServers\": {},\n \"tools\": [\n \"fs_read\",\n \"fs_write\",\n \"execute_bash\",\n \"use_aws\",\n \"knowledge\"\n ],\n \"toolAliases\": {},\n \"allowedTools\": [\n \"fs_read\"\n ],\n \"resources\": [\n \"file://AmazonQ.md\",\n \"file://README.md\",\n \"file://.amazonq/rules/**/*.md\"\n ],\n \"hooks\": {},\n \"toolsSettings\": {},\n \"useLegacyMcpJson\": true\n}\n\n" Call to function "jsondecode" failed: invalid character '\n' in string literal. at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:11)
CI
Canceling since a higher priority waiting request for CI-refs/pull/362/merge exists
error:: test/test.ts#L265
on main.tf line 159, in locals: 159: agent_config_json = jsondecode(local.agent_config) while calling jsondecode(str) local.agent_config is "{\n \"name\": \"agent\",\n \"description\": \"This is an default agent config\",\n \"prompt\": \"You are a helpful Coding assistant. Aim to autonomously investigate\nand solve issues the user gives you and test your work, whenever possible.\nAvoid shortcuts like mocking tests. When you get stuck, you can ask the user\nbut opt for autonomy.\n\nYOU MUST REPORT ALL TASKS TO CODER.\nWhen reporting tasks, you MUST follow these EXACT instructions:\n- IMMEDIATELY report status after receiving ANY user message.\n- Be granular. If you are investigating with multiple steps, report each step to coder.\n\nTask state MUST be one of the following:\n- Use \"state\": \"working\" when actively processing WITHOUT needing additional user input.\n- Use \"state\": \"complete\" only when finished with a task.\n- Use \"state\": \"failure\" when you need ANY user input, lack sufficient details, or encounter blockers.\n\nTask summaries MUST:\n- Include specifics about what you're doing.\n- Include clear and actionable steps for the user.\n- Be less than 160 characters in length.\n\",\n \"mcpServers\": {},\n \"tools\": [\n \"fs_read\",\n \"fs_write\",\n \"execute_bash\",\n \"use_aws\",\n \"knowledge\"\n ],\n \"toolAliases\": {},\n \"allowedTools\": [\n \"fs_read\"\n ],\n \"resources\": [\n \"file://AmazonQ.md\",\n \"file://README.md\",\n \"file://.amazonq/rules/**/*.md\"\n ],\n \"hooks\": {},\n \"toolsSettings\": {},\n \"useLegacyMcpJson\": true\n}\n\n" Call to function "jsondecode" failed: invalid character '\n' in string literal. at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:11)
error: expect(received).toBeDefined(): registry/coder/modules/amazon-q/main.test.ts#L79
Received: undefined at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/amazon-q/main.test.ts:79:28)
error: expect(received).toBeDefined(): registry/coder/modules/amazon-q/main.test.ts#L52
Received: undefined at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/amazon-q/main.test.ts:52:28)
error:: test/test.ts#L265
on main.tf line 159, in locals: 159: agent_config_json = jsondecode(local.agent_config) while calling jsondecode(str) local.agent_config is "{\n \"name\": \"agent\",\n \"description\": \"This is an default agent config\",\n \"prompt\": \"You are a helpful Coding assistant. Aim to autonomously investigate\nand solve issues the user gives you and test your work, whenever possible.\nAvoid shortcuts like mocking tests. When you get stuck, you can ask the user\nbut opt for autonomy.\n\nYOU MUST REPORT ALL TASKS TO CODER.\nWhen reporting tasks, you MUST follow these EXACT instructions:\n- IMMEDIATELY report status after receiving ANY user message.\n- Be granular. If you are investigating with multiple steps, report each step to coder.\n\nTask state MUST be one of the following:\n- Use \"state\": \"working\" when actively processing WITHOUT needing additional user input.\n- Use \"state\": \"complete\" only when finished with a task.\n- Use \"state\": \"failure\" when you need ANY user input, lack sufficient details, or encounter blockers.\n\nTask summaries MUST:\n- Include specifics about what you're doing.\n- Include clear and actionable steps for the user.\n- Be less than 160 characters in length.\n\",\n \"mcpServers\": {},\n \"tools\": [\n \"fs_read\",\n \"fs_write\",\n \"execute_bash\",\n \"use_aws\",\n \"knowledge\"\n ],\n \"toolAliases\": {},\n \"allowedTools\": [\n \"fs_read\"\n ],\n \"resources\": [\n \"file://AmazonQ.md\",\n \"file://README.md\",\n \"file://.amazonq/rules/**/*.md\"\n ],\n \"hooks\": {},\n \"toolsSettings\": {},\n \"useLegacyMcpJson\": true\n}\n\n" Call to function "jsondecode" failed: invalid character '\n' in string literal. at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:11)
Validate Terraform output
Canceling since a higher priority waiting request for CI-refs/pull/362/merge exists