The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
feat(dashboard): show Cline hook status in the local inventory view
Claudef43960504666
diff --git a/cli/beacon/internal/endpoint/dashboard/hooks_status_test.go b/cli/beacon/internal/endpoint/dashboard/hooks_status_test.gonew file mode 100644index 00000000..8fdf5bfc--- /dev/null+++ b/cli/beacon/internal/endpoint/dashboard/hooks_status_test.go@@ -0,0 +1,55 @@+package dashboard++import (+ "path/filepath"+ "testing"+)++// The dashboard keeps its own list of hook runtimes, separate from the CLI's target registry, so a+// runtime wired into `beacon endpoint hooks` but not here is simply invisible in the inventory view+// -- with no error anywhere to say the view is incomplete.+//+// Asserted for both plugin-shaped runtimes together because they are the two whose status comes from+// a plugin file rather than a settings file, and they are the pair most likely to be updated as one.+func TestHookStatusesIncludeThePluginRuntimes(t *testing.T) {+ statuses := hookStatuses(filepath.Join(t.TempDir(), "runtime.jsonl"), true)++ byTarget := map[string]int{}+ for _, status := range statuses {+ byTarget[status.Target]+++ }+ for _, target := range []string{"cline", "opencode"} {+ switch byTarget[target] {+ case 1:+ case 0:+ t.Errorf("hook status list is missing %q", target)+ default:+ t.Errorf("%q appears %d times in the hook status list", target, byTarget[target])+ }+ }+}++// A status row with no path tells an operator nothing about where to look, and "not_installed" is+// the answer every row must be able to give without a Cline install present.+func TestHookStatusesReportClineWithItsPluginPath(t *testing.T) {+ home := t.TempDir()+ t.Setenv("HOME", home)+ t.Setenv("USERPROFILE", home)++ for _, status := range hookStatuses(filepath.Join(t.TempDir(), "runtime.jsonl"), true) {+ if status.Target != "cline" {+ continue+ }+ if status.Installed {+ t.Errorf("cline reported installed with no plugin present: %+v", status)+ }+ if status.Status != "not_installed" {+ t.Errorf("cline status = %q, want not_installed", status.Status)+ }+ if want := filepath.Join(home, ".cline", "plugins", "beacon.ts"); status.Path != want {+ t.Errorf("cline path = %q, want %q", status.Path, want)+ }+ return+ }+ t.Fatal("no cline row in the hook status list")+}diff --git a/cli/beacon/internal/endpoint/dashboard/server.go b/cli/beacon/internal/endpoint/dashboard/server.goindex d4e3f068..b2c5fb01 100644--- a/cli/beacon/internal/endpoint/dashboard/server.go+++ b/cli/beacon/internal/endpoint/dashboard/server.go@@ -329,6 +329,8 @@ func hookStatuses(logPath string, userMode bool) []HookStatus {level := endpointhooks.LevelUserantigravity := endpointhooks.AntigravityHookStatus(endpointhooks.AntigravityOptions{Level: level, LogPath: logPath, UserMode: userMode})add("antigravity", antigravity.Installed, antigravity.ConfigPath, antigravity.BinaryPath, antigravity.Message)+ cline := endpointhooks.ClineHookStatus(endpointhooks.ClineOptions{Level: level, LogPath: logPath, UserMode: userMode})+ add("cline", cline.Installed, cline.PluginPath, cline.BinaryPath, cline.Message)cursor := endpointhooks.CursorHookStatus(endpointhooks.CursorOptions{Level: level, LogPath: logPath, UserMode: userMode})add("cursor", cursor.Installed, cursor.HooksJSONPath, cursor.BinaryPath, cursor.Message)devin := endpointhooks.DevinHookStatus(endpointhooks.DevinOptions{Level: level, LogPath: logPath, UserMode: userMode})diff --git a/cli/beacon/internal/endpoint/dashboard/static/app.js b/cli/beacon/internal/endpoint/dashboard/static/app.jsindex 9d51333f..1cbdcd1f 100644--- a/cli/beacon/internal/endpoint/dashboard/static/app.js+++ b/cli/beacon/internal/endpoint/dashboard/static/app.js@@ -963,6 +963,7 @@ function renderDatalist(id, values) {function harnessLabel(value) {const labels = {+ cline: "Cline",cursor: "Cursor",claude_code: "Claude Code",codex_cli: "Codex CLI",