Skip to content

Commit 86cb976

Browse files
committed
Revert "feat: add VPC info messages to dev and invoke commands [3/3] (#426)"
This reverts commit 7a81b02.
1 parent 20539ae commit 86cb976

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

src/cli/commands/dev/command.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ export const registerDev = (program: Command) => {
144144
const targetAgent = project.agents.find(a => a.name === config.agentName);
145145
const providerInfo = targetAgent?.modelProvider ?? '(see agent code)';
146146

147-
if (targetAgent?.networkMode === 'VPC') {
148-
console.warn(
149-
'Warning: This agent uses VPC network mode. Local dev server runs outside your VPC. Network behavior may differ from deployed environment.'
150-
);
151-
}
152-
153147
console.log(`Starting dev server...`);
154148
console.log(`Agent: ${config.agentName}`);
155149
console.log(`Provider: ${providerInfo}`);
@@ -184,20 +178,6 @@ export const registerDev = (program: Command) => {
184178
await new Promise(() => {});
185179
}
186180

187-
// Warn if the target agent uses VPC mode
188-
{
189-
const vpcAgent = opts.agent
190-
? project.agents.find(a => a.name === opts.agent)
191-
: project.agents.length === 1
192-
? project.agents[0]
193-
: undefined;
194-
if (vpcAgent?.networkMode === 'VPC') {
195-
console.warn(
196-
'Warning: This agent uses VPC network mode. Local dev server runs outside your VPC. Network behavior may differ from deployed environment.'
197-
);
198-
}
199-
}
200-
201181
// Enter alternate screen buffer for fullscreen mode
202182
process.stdout.write(ENTER_ALT_SCREEN);
203183

src/cli/commands/invoke/action.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ export async function handleInvoke(context: InvokeContext, options: InvokeOption
6767
return { success: false, error: 'No agents defined in configuration' };
6868
}
6969

70-
if (agentSpec.networkMode === 'VPC') {
71-
console.warn(
72-
'Warning: This agent uses VPC network mode. Invocation may require setting up VPC Endpoints for S3, ECR, Bedrock. If your agent uses a non-Bedrock model provider, VPC will require public internet access.'
73-
);
74-
}
75-
7670
// Get the deployed state for this specific agent
7771
const agentState = targetState?.resources?.agents?.[agentSpec.name];
7872

0 commit comments

Comments
 (0)