Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 87
feat: runtime endpoint support in AgentCore CLI#979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
cb839bf3b2977333b81da6b4f8f3c1ad7eaf3face821147b1132f9693aba3e92bb5a86844689a11a7a86d6389c8b9f158f0ff1db8be47f35fd8e15cddbeff2117a07eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9,6 +9,7 @@ | ||
| const VALID_RESOURCE_TYPES = [ | ||
| 'agent', | ||
| 'runtime-endpoint', | ||
| 'memory', | ||
| 'credential', | ||
| 'gateway', | ||
| @@ -58,7 +59,7 @@ | ||
| .option('--target <name>', 'Select deployment target') | ||
| .option( | ||
| '--type <type>', | ||
| 'Filter by resource type (agent, memory, credential, gateway, evaluator, online-eval, policy-engine, policy)' | ||
| 'Filter by resource type (agent, runtime-endpoint, memory, credential, gateway, evaluator, online-eval, policy-engine, policy)' | ||
| ) | ||
| .option('--state <state>', 'Filter by deployment state (deployed, local-only, pending-removal)') | ||
| .option('--runtime <name>', 'Filter to a specific runtime') | ||
| @@ -135,6 +136,7 @@ | ||
| const filtered = filterResources(result.resources, cliOptions); | ||
| const agents = filtered.filter(r => r.resourceType === 'agent'); | ||
| const runtimeEndpoints = filtered.filter(r => r.resourceType === 'runtime-endpoint'); | ||
| const credentials = filtered.filter(r => r.resourceType === 'credential'); | ||
| const memories = filtered.filter(r => r.resourceType === 'memory'); | ||
| const gateways = filtered.filter(r => r.resourceType === 'gateway'); | ||
| @@ -153,15 +155,41 @@ | ||
| {agents.length > 0 && ( | ||
| <Box flexDirection="column" marginTop={1}> | ||
| <Text bold>Agents</Text> | ||
| {agents.map(entry => ( | ||
| <Box key={`${entry.resourceType}-${entry.name}`} flexDirection="column"> | ||
| <ResourceEntry entry={entry} showRuntime /> | ||
| {entry.invocationUrl && ( | ||
| <Text dimColor> | ||
| {' '}URL: {entry.invocationUrl} | ||
| </Text> | ||
| )} | ||
| </Box> | ||
| {agents.map(entry => { | ||
| // Find endpoints belonging to this agent | ||
| const agentEndpoints = runtimeEndpoints.filter(ep => ep.parentName === entry.name); | ||
| return ( | ||
| <Box key={`${entry.resourceType}-${entry.name}`} flexDirection="column"> | ||
| <ResourceEntry entry={entry} showRuntime /> | ||
| {entry.invocationUrl && ( | ||
| <Text dimColor> | ||
| {' '}URL: {entry.invocationUrl} | ||
| </Text> | ||
| )} | ||
| {agentEndpoints.map(ep => ( | ||
notgitika marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| <Text key={`${ep.parentName}/${ep.name}`}> | ||
| {' '}◉ {ep.name} <Text dimColor>{ep.detail}</Text>{' '} | ||
| <Text color={DEPLOYMENT_STATE_COLORS[ep.deploymentState] ?? 'gray'}> | ||
| [{DEPLOYMENT_STATE_LABELS[ep.deploymentState] ?? ep.deploymentState}] | ||
| </Text> | ||
| </Text> | ||
| ))} | ||
| </Box> | ||
| ); | ||
| })} | ||
| </Box> | ||
| )} | ||
| {agents.length === 0 && runtimeEndpoints.length > 0 && ( | ||
| <Box flexDirection="column" marginTop={1}> | ||
| <Text bold>Runtime Endpoints</Text> | ||
| {runtimeEndpoints.map(ep => ( | ||
| <Text key={`${ep.parentName}/${ep.name}`}> | ||
| {' '}◉ {ep.parentName}/{ep.name} <Text dimColor>{ep.detail}</Text>{' '} | ||
| <Text color={DEPLOYMENT_STATE_COLORS[ep.deploymentState] ?? 'gray'}> | ||
notgitika marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. notgitika marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| [{DEPLOYMENT_STATE_LABELS[ep.deploymentState] ?? ep.deploymentState}] | ||
| </Text> | ||
| </Text> | ||
| ))} | ||
| </Box> | ||
| )} | ||
| @@ -239,7 +267,7 @@ | ||
| }); | ||
| }; | ||
| function ResourceEntry({ entry, showRuntime }: { entry: ResourceStatusEntry; showRuntime?: boolean }) { | ||
| return ( | ||
| <Text> | ||
| {' '} | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.