chore(go): audit providers kirocli kiroide opencode
Move Kiro IDE onto managed_runtime.go and shell_command.go, share cloneJSONObject across providers, make OpenCode status verify the managed runtime contract instead of any hook.js, propagate script removal errors, and build the legacy runtime config through buildManagedRuntimeConfig. Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
This commit is contained in:
1 parent
34ff4c1ea8
commit
96489cd051
20 files changed
+185
-650
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package plugins
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -99,14 +98,8 @@ func (p *LettaPlugin) Uninstall(agentID string) error {
|
||||
return err
|
||||
}
|
||||
if agentID != "" {
|
||||
for _, resolve := range []func(string) (string, error){hookScriptPath, guardScriptPath} {
|
||||
path, err := resolve(agentID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.Remove(path); err != nil && !errors.Is(err, os.ErrNotExist) {
|
||||
return fmt.Errorf("remove %s: %w", path, err)
|
||||
}
|
||||
if err := removeAgentScripts(agentID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
fmt.Println("Uninstalled Elydora hook for Letta Code.")
|
||||
|
||||
Reference in new issue
Block a user