mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
refactor(cron): flatten if-else chains and suppress dupl lint
This commit is contained in:
@@ -215,6 +215,7 @@ func (t *ExecTool) Description() string {
|
||||
return `Execute shell commands. Use background=true for long-running commands (returns sessionId). Use pty=true for interactive commands (can combine with background=true). Use poll/read/write/send-keys/kill with sessionId to manage background sessions. Sessions auto-cleanup 30 minutes after process exits; use kill to terminate early. Output buffer limit: 1MB.`
|
||||
}
|
||||
|
||||
//nolint:dupl // Tool parameter schemas intentionally use similar JSON-schema map literals.
|
||||
func (t *ExecTool) Parameters() map[string]any {
|
||||
return map[string]any{
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user