diff --git a/eslint.config.mjs b/eslint.config.mjs
index 216c4caf2..72990753f 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -13,13 +13,19 @@ const partitionPlugin = {
'no-hardcoded-arn-partition': {
meta: {
type: 'problem',
- docs: { description: 'Disallow hardcoded arn:aws: partition in ARN construction. Use arnPrefix(region) instead.' },
+ docs: {
+ description: 'Disallow hardcoded arn:aws: partition in ARN construction. Use arnPrefix(region) instead.',
+ },
schema: [],
},
create(context) {
function checkForHardcodedArn(node, value) {
if (/arn:aws:/.test(value)) {
- context.report({ node, message: 'Hardcoded "arn:aws:" detected. Use arnPrefix(region) from src/cli/aws/partition.ts for multi-partition support.' });
+ context.report({
+ node,
+ message:
+ 'Hardcoded "arn:aws:" detected. Use arnPrefix(region) from src/cli/aws/partition.ts for multi-partition support.',
+ });
}
}
return {
@@ -34,7 +40,10 @@ const partitionPlugin = {
'no-hardcoded-endpoint-tld': {
meta: {
type: 'problem',
- docs: { description: 'Disallow hardcoded amazonaws.com in endpoint URL construction. Use serviceEndpoint() or dnsSuffix() instead.' },
+ docs: {
+ description:
+ 'Disallow hardcoded amazonaws.com in endpoint URL construction. Use serviceEndpoint() or dnsSuffix() instead.',
+ },
schema: [],
},
create(context) {
@@ -49,13 +58,21 @@ const partitionPlugin = {
TemplateLiteral(node) {
for (const quasi of node.quasis) {
if (hasHardcodedEndpoint(quasi.value.raw)) {
- context.report({ node, message: 'Hardcoded ".amazonaws.com" in template literal. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.' });
+ context.report({
+ node,
+ message:
+ 'Hardcoded ".amazonaws.com" in template literal. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.',
+ });
}
}
},
Literal(node) {
if (typeof node.value === 'string' && hasHardcodedEndpointWithRegion(node.value)) {
- context.report({ node, message: 'Hardcoded endpoint with region detected. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.' });
+ context.report({
+ node,
+ message:
+ 'Hardcoded endpoint with region detected. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.',
+ });
}
},
};
diff --git a/src/cli/tui/components/ResourceGraph.tsx b/src/cli/tui/components/ResourceGraph.tsx
index eacb9bd10..26fdcbd1a 100644
--- a/src/cli/tui/components/ResourceGraph.tsx
+++ b/src/cli/tui/components/ResourceGraph.tsx
@@ -420,17 +420,6 @@ export function ResourceGraph({ project, mcp, agentName, resourceStatuses }: Res
{ICONS.gateway} gateway{' '}
{ICONS['policy-engine']} policy engine
- {resourceStatuses && resourceStatuses.length > 0 && (
-
-
- [Deployed]
- live in AWS
- {' '}
- [Local only]
- not yet deployed
-
-
- )}
);
diff --git a/src/cli/tui/components/__tests__/ResourceGraph.test.tsx b/src/cli/tui/components/__tests__/ResourceGraph.test.tsx
index 516cd5326..b6eb34dfa 100644
--- a/src/cli/tui/components/__tests__/ResourceGraph.test.tsx
+++ b/src/cli/tui/components/__tests__/ResourceGraph.test.tsx
@@ -262,37 +262,6 @@ describe('ResourceGraph', () => {
expect(lastFrame()).toContain('deploy');
});
- it('renders deployment state legend when resourceStatuses provided', () => {
- const project = {
- ...baseProject,
- runtimes: [{ name: 'my-agent' }],
- } as unknown as AgentCoreProjectSpec;
-
- const resourceStatuses: ResourceStatusEntry[] = [
- { resourceType: 'agent', name: 'my-agent', deploymentState: 'deployed' },
- ];
-
- const { lastFrame } = render();
-
- expect(lastFrame()).toContain('[Deployed]');
- expect(lastFrame()).toContain('live in AWS');
- expect(lastFrame()).toContain('[Local only]');
- expect(lastFrame()).toContain('not yet deployed');
- });
-
- it('does not render deployment state legend when no resourceStatuses', () => {
- const project = {
- ...baseProject,
- runtimes: [{ name: 'my-agent' }],
- } as unknown as AgentCoreProjectSpec;
-
- const { lastFrame } = render();
-
- // Should have the base legend but not the deployment state legend
- expect(lastFrame()).toContain('agent');
- expect(lastFrame()).not.toContain('[Deployed]');
- });
-
it('renders removed credentials in Removed Locally section', () => {
const resourceStatuses: ResourceStatusEntry[] = [
{