MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / runInteractiveAgent

Function runInteractiveAgent

internal/cmd/new.go:91–100  ·  view source on GitHub ↗

runInteractiveAgent launches an interactive agent session in the specified directory.

(provider loop.Provider, workDir, prompt string)

Source from the content-addressed store, hash-verified

89
90// runInteractiveAgent launches an interactive agent session in the specified directory.
91func runInteractiveAgent(provider loop.Provider, workDir, prompt string) error {
92 if provider == nil {
93 return fmt.Errorf("interactive agent requires Provider to be set")
94 }
95 cmd := provider.InteractiveCommand(workDir, prompt)
96 cmd.Stdin = os.Stdin
97 cmd.Stdout = os.Stdout
98 cmd.Stderr = os.Stderr
99 return cmd.Run()
100}
101
102// isValidPRDName checks if the name contains only valid characters.
103func isValidPRDName(name string) bool {

Callers 2

RunNewFunction · 0.85
RunEditFunction · 0.85

Calls 2

RunMethod · 0.80
InteractiveCommandMethod · 0.65

Tested by

no test coverage detected