MCPcopy Index your code
hub / github.com/MiniCodeMonkey/chief / effectiveWorkDir

Method effectiveWorkDir

internal/loop/loop.go:541–546  ·  view source on GitHub ↗

effectiveWorkDir returns the working directory to use for the agent. If workDir is set, it is used directly. Otherwise, defaults to the PRD directory.

()

Source from the content-addressed store, hash-verified

539// effectiveWorkDir returns the working directory to use for the agent.
540// If workDir is set, it is used directly. Otherwise, defaults to the PRD directory.
541func (l *Loop) effectiveWorkDir() string {
542 if l.workDir != "" {
543 return l.workDir
544 }
545 return filepath.Dir(l.prdPath)
546}
547
548// IsRunning returns whether an agent process is currently running.
549func (l *Loop) IsRunning() bool {

Callers 1

runIterationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected