MCPcopy Create free account
hub / github.com/compozy/agh / newMemoryDreamRetryCommand

Function newMemoryDreamRetryCommand

internal/cli/memory.go:837–860  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

835}
836
837func newMemoryDreamRetryCommand(deps commandDeps) *cobra.Command {
838 var force bool
839
840 cmd := &cobra.Command{
841 Use: "retry <run_id>",
842 Short: "Retry one failed Memory v2 dreaming run",
843 Args: exactOneNonBlankArg(),
844 RunE: func(cmd *cobra.Command, args []string) error {
845 client, err := clientFromDeps(deps)
846 if err != nil {
847 return err
848 }
849 response, err := client.RetryMemoryDream(cmd.Context(), strings.TrimSpace(args[0]), MemoryDreamRetryRequest{
850 Force: force,
851 })
852 if err != nil {
853 return err
854 }
855 return writeCommandOutput(cmd, memoryObjectBundle("Memory Dream Retry", response))
856 },
857 }
858 cmd.Flags().BoolVar(&force, "force", false, "Retry even if normal gates would skip the run")
859 return cmd
860}
861
862func newMemoryDreamTriggerCommand(deps commandDeps) *cobra.Command {
863 var flags memorySelectorFlags

Callers 1

newMemoryDreamCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
memoryObjectBundleFunction · 0.85
RetryMemoryDreamMethod · 0.65

Tested by

no test coverage detected