2026-04-08 02:57:22 +00:00
|
|
|
//go:build mipsle || netbsd || (freebsd && arm)
|
2026-04-07 03:49:35 +00:00
|
|
|
|
|
|
|
|
package agent
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"encoding/json"
|
|
|
|
|
"fmt"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// newSeahorseContextManager is unavailable on platforms where modernc sqlite/libc
|
|
|
|
|
// currently has no stable build path for this project.
|
|
|
|
|
func newSeahorseContextManager(_ json.RawMessage, _ *AgentLoop) (ContextManager, error) {
|
|
|
|
|
return nil, fmt.Errorf("seahorse context manager is unavailable on this platform")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
if err := RegisterContextManager("seahorse", newSeahorseContextManager); err != nil {
|
|
|
|
|
panic(fmt.Sprintf("register seahorse context manager: %v", err))
|
|
|
|
|
}
|
|
|
|
|
}
|