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
fix
Justin D'Souzae4906d374d08
diff --git a/cli/beacon/cmd/endpoint_diagnostics.go b/cli/beacon/cmd/endpoint_diagnostics.goindex edc32bb6..35ebda96 100644--- a/cli/beacon/cmd/endpoint_diagnostics.go+++ b/cli/beacon/cmd/endpoint_diagnostics.go@@ -207,7 +207,7 @@ func printDoctorChecks(checks []diagnostics.Check, status string) {func runEndpointInventory(cmd *cobra.Command, args []string) error {status := lifecycle.GetStatus(endpointUserMode(), endpointOpts.logPath)effectiveCfg := loadConfigForMode(status.RuntimeLog.EffectiveUserMode, status.LogPath)- hookTargetNames, err := hookTargets()+ hookTargetNames, err := inventoryHookTargets()if err != nil {return err}@@ -808,24 +808,35 @@ func printPlannedAction(action plannedAction) {fmt.Println()}+func inventoryHookTargets() ([]string, error) {+ if endpointOpts.inventoryHooks && !endpointOpts.allTargets && strings.TrimSpace(endpointOpts.hookHarnesses) == "" {+ return allHookTargetsForLevel(), nil+ }+ return hookTargets()+}+func hookTargets() ([]string, error) {if endpointOpts.allTargets {- all := []string{"cursor", "vscode", "factory", "opencode", "grok", "hermes", "devin-cli", "devin-desktop", "antigravity"}- if endpointOpts.hookLevel == "project" {- filtered := all[:0:0]- for _, t := range all {- if t == "hermes" {- continue- }- filtered = append(filtered, t)- }- return filtered, nil- }- return all, nil+ return allHookTargetsForLevel(), nil}return canonicalHookTargets(splitCSV(endpointOpts.hookHarnesses))}+func allHookTargetsForLevel() []string {+ all := []string{"cursor", "vscode", "factory", "opencode", "grok", "hermes", "devin-cli", "devin-desktop", "antigravity"}+ if endpointOpts.hookLevel != "project" {+ return all+ }+ filtered := all[:0:0]+ for _, t := range all {+ if t == "hermes" {+ continue+ }+ filtered = append(filtered, t)+ }+ return filtered+}+func hookStatuses(targets []string) map[string]hookTargetResult {cfg := loadOrDefaultConfig()return hookStatusesWithConfig(targets, cfg)diff --git a/cli/beacon/cmd/endpoint_test.go b/cli/beacon/cmd/endpoint_test.goindex f7b4b16b..7521a7e6 100644--- a/cli/beacon/cmd/endpoint_test.go+++ b/cli/beacon/cmd/endpoint_test.go@@ -1060,6 +1060,34 @@ func TestFilterInventorySectionsKeepsOnlyRequestedBuckets(t *testing.T) {}}+func TestEndpointInventoryHooksJSONIncludesDefaultHookStatuses(t *testing.T) {+ old := endpointOpts+ t.Cleanup(func() { endpointOpts = old })+ t.Setenv("HOME", t.TempDir())+ endpointOpts.userMode = true+ endpointOpts.logPath = filepath.Join(t.TempDir(), "runtime.jsonl")+ endpointOpts.jsonOutput = true+ endpointOpts.inventoryHooks = true+ endpointOpts.hookHarnesses = ""++ output, err := captureStdout(t, func() error {+ return runEndpointInventory(endpointInventoryCmd, nil)+ })+ if err != nil {+ t.Fatalf("runEndpointInventory returned error: %v", err)+ }+ var result inventoryResult+ if err := json.Unmarshal([]byte(output), &result); err != nil {+ t.Fatalf("inventory JSON did not decode: %v output=%s", err, output)+ }+ if len(result.Hooks) == 0 {+ t.Fatalf("hooks inventory was empty: %#v", result)+ }+ if hook, ok := result.Hooks["cursor"]; !ok || hook.Target != "cursor" {+ t.Fatalf("hooks inventory missing cursor status: %#v", result.Hooks)+ }+}+func TestCompletionAndDocsCommandsRegistered(t *testing.T) {for _, name := range []string{"completion", "docs"} {cmd, _, err := rootCmd.Find([]string{name})diff --git a/cli/beacon/internal/endpoint/dashboard/static/app.js b/cli/beacon/internal/endpoint/dashboard/static/app.jsindex 1636c79f..10cf19c0 100644--- a/cli/beacon/internal/endpoint/dashboard/static/app.js+++ b/cli/beacon/internal/endpoint/dashboard/static/app.js@@ -277,7 +277,7 @@ function renderInventory(resp) {const existingSkills = skills.filter((skill) => skill.exists);const hookConfigs = existingConfigs.filter((config) => config.config_kind === "hook_config");setText("#inventory-meta", resp?.generated_at ? `Scanned ${formatTime(resp.generated_at)}` : "");- renderInventoryCards(harnesses, existingConfigs, servers, existingSkills, hooks.length ? hooks.filter((hook) => hook.installed) : hookConfigs);+ renderInventoryCards(harnesses, existingConfigs, servers, existingSkills, hookConfigs);renderInventoryHarnesses(harnesses);renderInventoryConfigs(configs);renderInventoryMCP(servers, configs);