@@ -2,7 +2,6 @@ import { useAgentManagement } from "@/features/agents/useAgentManagement";
22import { AgentCardDialogs } from "./AgentCardViewerDialog" ;
33import { AgentDialog } from "./AgentDialog" ;
44import { AgentDraftAdoptDialog } from "./AgentDraftAdoptDialog" ;
5- import { SecretRevealDialog } from "./SecretRevealDialog" ;
65
76/** Global review surfaces opened by owned agents through the Buzz harness. */
87export function AgentManagementDialogs ( ) {
@@ -37,18 +36,20 @@ export function AgentManagementDialogs() {
3736 if ( ! open ) management . dismiss ( ) ;
3837 } }
3938 />
40- ) : null }
41- { management . createdAgent ? (
42- < SecretRevealDialog
43- attachmentFailure = { management . attachmentFailure }
44- created = { management . createdAgent }
45- isRetryingAttachment = { management . isRetryingAttachment }
39+ ) : management . request ?. action === "create" ? (
40+ < AgentDialog
41+ definitionError = {
42+ management . error ? new Error ( management . error ) : null
43+ }
44+ initialValues = { management . createInitialValues }
45+ isDefinitionPending = { management . isPending }
46+ mode = "definition"
4647 onOpenChange = { ( open ) => {
47- if ( ! open ) management . dismissCreatedAgent ( ) ;
48- } }
49- onRetryAttachment = { ( ) => {
50- void management . retryAttachment ( ) ;
48+ if ( ! open ) management . dismiss ( ) ;
5149 } }
50+ onSubmitDefinition = { management . submitCreate }
51+ runtimes = { management . runtimes }
52+ runtimeCatalogStatus = { management . runtimeCatalogStatus }
5253 />
5354 ) : null }
5455 { management . request ?. action === "update" ? (
0 commit comments