fix: show deployed sandbox agent identity (#44)

Co-authored-by: mmckeen-nv <mmckeen-nv@users.noreply.github.com>
This commit is contained in:
mmckeen-nv
2026-09-02 10:26:44 -07:00
committed by GitHub
co-authored by mmckeen-nv
parent 7ec2969c7a
commit 5f8e30c33e
6 changed files with 207 additions and 45 deletions
+18
View File
@@ -0,0 +1,18 @@
export type NemoClawRegistryData = {
sandboxes?: Record<string, { name?: string; agent?: string | null }>
}
export type NemoClawListJsonIdentity = {
agentsByName: Record<string, string>
defaultSandboxNames: string[]
}
export function normalizeAgentIdentifier(agent: unknown): string | null
export function parseNemoclawListJson(output: string): NemoClawListJsonIdentity | null
export function parseDefaultSandboxNames(output: string): Set<string>
export function resolveSandboxAgent(
name: string,
id: string | null,
listJsonIdentity: NemoClawListJsonIdentity | null,
registry: NemoClawRegistryData | null
): string