From 257c9c879ed3b51dbdf4e47b153e695d10e4392f Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Wed, 4 Jun 2025 07:53:28 -0700 Subject: [PATCH] style: apply prettier formatting --- src/create-prompt/index.ts | 4 +++- test/install-mcp-server.test.ts | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/create-prompt/index.ts b/src/create-prompt/index.ts index bdddd1b..5c20928 100644 --- a/src/create-prompt/index.ts +++ b/src/create-prompt/index.ts @@ -118,7 +118,9 @@ export function prepareContext( ...(triggerUsername && { triggerUsername }), ...(customInstructions && { customInstructions }), ...(allowedTools.length > 0 && { allowedTools: allowedTools.join(",") }), - ...(disallowedTools.length > 0 && { disallowedTools: disallowedTools.join(",") }), + ...(disallowedTools.length > 0 && { + disallowedTools: disallowedTools.join(","), + }), ...(directPrompt && { directPrompt }), ...(claudeBranch && { claudeBranch }), }; diff --git a/test/install-mcp-server.test.ts b/test/install-mcp-server.test.ts index b02b7db..4dbb32d 100644 --- a/test/install-mcp-server.test.ts +++ b/test/install-mcp-server.test.ts @@ -30,6 +30,7 @@ describe("prepareMcpConfig", () => { owner: "test-owner", repo: "test-repo", branch: "test-branch", + allowedTools: [], }); const parsed = JSON.parse(result); @@ -107,6 +108,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: "", + allowedTools: [], }); const parsed = JSON.parse(result); @@ -123,6 +125,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: " \n\t ", + allowedTools: [], }); const parsed = JSON.parse(result); @@ -228,6 +231,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: additionalConfig, + allowedTools: [], }); const parsed = JSON.parse(result); @@ -246,6 +250,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: invalidJson, + allowedTools: [], }); const parsed = JSON.parse(result); @@ -265,6 +270,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: nonObjectJson, + allowedTools: [], }); const parsed = JSON.parse(result); @@ -287,6 +293,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: nullJson, + allowedTools: [], }); const parsed = JSON.parse(result); @@ -309,6 +316,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: arrayJson, + allowedTools: [], }); const parsed = JSON.parse(result); @@ -354,6 +362,7 @@ describe("prepareMcpConfig", () => { repo: "test-repo", branch: "test-branch", additionalMcpConfig: additionalConfig, + allowedTools: [], }); const parsed = JSON.parse(result); @@ -374,6 +383,7 @@ describe("prepareMcpConfig", () => { owner: "test-owner", repo: "test-repo", branch: "test-branch", + allowedTools: [], }); const parsed = JSON.parse(result); @@ -393,6 +403,7 @@ describe("prepareMcpConfig", () => { owner: "test-owner", repo: "test-repo", branch: "test-branch", + allowedTools: [], }); const parsed = JSON.parse(result);