fix: harden Cursor hook enforcement

This commit is contained in:
ZacharyZhang-NY committed 2026-07-20 00:15:21 -04:00
1 parent bf777a2ff0
commit 415a884efe
12 files changed
+1980 -340

No files matched your search

+15 -5
View File
@@ -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
}