Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewShell ¶
func NewShell(cfg ShellConfig, deps ShellDeps) (agentkit.AppInitializer, error)
NewShell registers bootstrap/shell: Run shell commands in the workspace at app start.
Best practices:
- Keep commands idempotent (test -d, cp -n, git init only when missing).
- Use local:. for startup init (works with workspace/tenant; no tenant context yet).
- Use local:.. when local root is .agentkit and commands target the project tree (workspace/default only).
Types ¶
type ShellConfig ¶
type ShellConfig struct {
// WorkDir is the workspace-relative working directory. Default local:..
WorkDir string `json:"workDir"`
// Commands run sequentially via bash -lc at app start.
Commands []string `json:"commands"`
// TimeoutSeconds bounds each command; 0 uses 60s.
TimeoutSeconds int `json:"timeoutSeconds"`
}
Click to show internal directories.
Click to hide internal directories.