mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-01 21:10:13 +00:00
refactor: clean up AI tools and remove deprecated code
- Remove deprecated tool functions - Simplify control helpers - Clean up test files
This commit is contained in:
parent
c76903c3f8
commit
c93b54ce9f
9 changed files with 7 additions and 185 deletions
|
|
@ -49,17 +49,6 @@ func TestPulseToolExecutor_ExecuteRunCommand(t *testing.T) {
|
|||
assert.Contains(t, result.Content[0].Text, "Multiple agents are connected")
|
||||
})
|
||||
|
||||
t.Run("SuggestMode", func(t *testing.T) {
|
||||
exec := NewPulseToolExecutor(ExecutorConfig{ControlLevel: ControlLevelSuggest})
|
||||
result, err := exec.executeRunCommand(ctx, map[string]interface{}{
|
||||
"command": "ls",
|
||||
"run_on_host": true,
|
||||
"target_host": "node1",
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Contains(t, result.Content[0].Text, "Suggested command for host node1")
|
||||
})
|
||||
|
||||
t.Run("ControlledRequiresApproval", func(t *testing.T) {
|
||||
approval.SetStore(nil)
|
||||
exec := NewPulseToolExecutor(ExecutorConfig{ControlLevel: ControlLevelControlled})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue