fix(go): sync hardened Cursor hooks
This commit is contained in:
1 parent
b6112cffd9
commit
ab54b75020
12 files changed
+1980
-340
No files matched your search
@@ -15,12 +15,12 @@ type InstallConfig struct {
|
||||
|
||||
// PluginStatus describes the current state of a plugin installation.
|
||||
type PluginStatus struct {
|
||||
Installed bool
|
||||
AgentName string
|
||||
DisplayName string
|
||||
HookConfigured bool
|
||||
Installed bool
|
||||
AgentName string
|
||||
DisplayName string
|
||||
HookConfigured bool
|
||||
HookScriptExists bool
|
||||
ConfigPath string
|
||||
ConfigPath string
|
||||
}
|
||||
|
||||
// AgentPlugin is the interface that every agent integration must implement.
|
||||
@@ -29,3 +29,13 @@ type AgentPlugin interface {
|
||||
Uninstall(agentID string) error
|
||||
Status() (PluginStatus, error)
|
||||
}
|
||||
|
||||
// InstallPreflighter validates provider and runtime sources before CLI writes.
|
||||
type InstallPreflighter interface {
|
||||
PreflightInstall(config InstallConfig) error
|
||||
}
|
||||
|
||||
// GuardRuntimeManager owns provider-specific guard generation transactionally.
|
||||
type GuardRuntimeManager interface {
|
||||
ManagesGuardRuntime() bool
|
||||
}
|
||||
Reference in new issue
Block a user