Skip to content

Commit 4591082

Browse files
committed
style: fix prettier formatting
1 parent 92c7469 commit 4591082

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/cli/commands/add/validate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ export async function validateAddGatewayTargetOptions(options: AddGatewayTargetO
202202
if (!options.gateway) {
203203
return {
204204
valid: false,
205-
error: "--gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'.",
205+
error:
206+
"--gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'.",
206207
};
207208
}
208209

src/cli/operations/mcp/create-mcp.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ import type {
1010
import { AgentCoreCliMcpDefsSchema, ToolDefinitionSchema } from '../../../schema';
1111
import { getTemplateToolDefinitions, renderGatewayTargetTemplate } from '../../templates/GatewayTargetRenderer';
1212
import type { AddGatewayConfig, AddGatewayTargetConfig } from '../../tui/screens/mcp/types';
13-
import {
14-
DEFAULT_HANDLER,
15-
DEFAULT_NODE_VERSION,
16-
DEFAULT_PYTHON_VERSION,
17-
} from '../../tui/screens/mcp/types';
13+
import { DEFAULT_HANDLER, DEFAULT_NODE_VERSION, DEFAULT_PYTHON_VERSION } from '../../tui/screens/mcp/types';
1814
import { existsSync } from 'fs';
1915
import { mkdir, readFile, writeFile } from 'fs/promises';
2016
import { dirname, join } from 'path';
@@ -257,7 +253,9 @@ export async function createExternalGatewayTarget(config: AddGatewayTargetConfig
257253
};
258254

259255
if (!config.gateway) {
260-
throw new Error("Gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'.");
256+
throw new Error(
257+
"Gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'."
258+
);
261259
}
262260

263261
const gateway = mcpSpec.agentCoreGateways.find(g => g.name === config.gateway);

0 commit comments

Comments
 (0)