Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Merge main through the stack; keep both Pi and Qwen in the runtime lists

Justina299bb4a2465
diff --cc cli/beacon/cmd/endpoint_diagnostics.go
index d370f051,9afb1932..aacb50be
--- a/cli/beacon/cmd/endpoint_diagnostics.go
+++ b/cli/beacon/cmd/endpoint_diagnostics.go
@@@ -869,7 -869,7 +869,7 @@@ func hookTargets() ([]string, error)
}
func allHookTargetsForLevel() []string {
- all := []string{"cursor", "codex", "vscode", "factory", "opencode", "cline", "grok", "qwen", "hermes", "devin-cli", "devin-desktop", "antigravity"}
- all := []string{"cursor", "codex", "vscode", "factory", "opencode", "cline", "pi", "grok", "hermes", "devin-cli", "devin-desktop", "antigravity"}
++ all := []string{"cursor", "codex", "vscode", "factory", "opencode", "cline", "pi", "grok", "qwen", "hermes", "devin-cli", "devin-desktop", "antigravity"}
if endpointOpts.hookLevel != "project" {
return all
}
@@@ -920,9 -920,9 +920,12 @@@ func hookStatusesWithConfig(targets []s
case "cline":
status := endpointhooks.ClineHookStatus(endpointhooks.ClineOptions{Level: endpointhooks.Level(endpointOpts.hookLevel), LogPath: cfg.LogPath, UserMode: cfg.UserMode})
statuses[name] = hookTargetResult{Target: name, Status: targetStatus(status.Installed), Installed: status.Installed, Message: status.Message, Path: status.PluginPath, Raw: status}
+ case "pi":
+ status := endpointhooks.PiHookStatus(endpointhooks.PiOptions{Level: endpointhooks.Level(endpointOpts.hookLevel), LogPath: cfg.LogPath, UserMode: cfg.UserMode})
+ statuses[name] = hookTargetResult{Target: name, Status: targetStatus(status.Installed), Installed: status.Installed, Message: status.Message, Path: status.ExtensionPath, Raw: status}
+ case "qwen":
+ status := endpointhooks.QwenHookStatus(endpointhooks.QwenOptions{Level: endpointhooks.Level(endpointOpts.hookLevel), LogPath: cfg.LogPath, UserMode: cfg.UserMode})
+ statuses[name] = hookTargetResult{Target: name, Status: targetStatus(status.Installed), Installed: status.Installed, Message: status.Message, Path: status.SettingsPath, Raw: status}
case "grok":
status := endpointhooks.GrokHookStatus(endpointhooks.GrokOptions{Level: endpointhooks.Level(endpointOpts.hookLevel), LogPath: cfg.LogPath, UserMode: cfg.UserMode})
statuses[name] = hookTargetResult{Target: name, Status: targetStatus(status.Installed), Installed: status.Installed, Message: status.Message, Path: status.HooksPath, Raw: status}
diff --cc cli/beacon/cmd/endpoint_hooks_repair.go
index 9b5dbdb4,1f195e99..8fe56d36
--- a/cli/beacon/cmd/endpoint_hooks_repair.go
+++ b/cli/beacon/cmd/endpoint_hooks_repair.go
@@@ -148,7 -148,7 +148,7 @@@ func installedHookTargetsForUser(homeDi
}
func repairTargetOrder() []string {
- return []string{"claude", "codex", "cursor", "vscode", "factory", "opencode", "cline", "grok", "qwen", "hermes", "devin-cli", "devin-desktop", "antigravity"}
- return []string{"claude", "codex", "cursor", "vscode", "factory", "opencode", "cline", "pi", "grok", "hermes", "devin-cli", "devin-desktop", "antigravity"}
++ return []string{"claude", "codex", "cursor", "vscode", "factory", "opencode", "cline", "pi", "grok", "qwen", "hermes", "devin-cli", "devin-desktop", "antigravity"}
}
// withUserHome runs fn as if it were executing inside another user's profile.
diff --cc cli/beacon/cmd/endpoint_targets.go
index 17df8765,b32bdfd2..b4f9dda9
--- a/cli/beacon/cmd/endpoint_targets.go
+++ b/cli/beacon/cmd/endpoint_targets.go
@@@ -46,11 -46,11 +46,15 @@@ var harnessTargets = []harnessTarget
{name: "factory", endpointKind: endpointTargetHook, endpointAliases: []string{"factory", "droid"}, hookAliases: []string{"factory", "droid"}},
{name: "opencode", endpointKind: endpointTargetHook, endpointAliases: []string{"opencode"}, hookAliases: []string{"opencode"}},
{name: "cline", endpointKind: endpointTargetHook, endpointAliases: []string{"cline"}, hookAliases: []string{"cline"}},
+ // pi_cli is accepted alongside pi because it is the canonical harness name events are written
+ // under, so anyone reading a Pi row out of the runtime log and passing it back to a --harness
+ // flag gets the runtime they are looking at rather than an "unsupported harness" error.
+ {name: "pi", endpointKind: endpointTargetHook, endpointAliases: []string{"pi", "pi-cli", "pi_cli"}, hookAliases: []string{"pi", "pi-cli", "pi_cli"}},
{name: "grok", endpointKind: endpointTargetHook, endpointAliases: []string{"grok"}, hookAliases: []string{"grok"}},
+ // "qwen-code" and "qwen_code" both normalize to "qwen-code" through normalizeHarnessKey, so the
+ // two spellings need one alias between them. "qwen-cli" is not accepted: the product is Qwen
+ // Code, and an alias nobody uses is an alias to keep working.
+ {name: "qwen", endpointKind: endpointTargetHook, endpointAliases: []string{"qwen", "qwen-code"}, hookAliases: []string{"qwen", "qwen-code"}},
{name: "hermes", endpointKind: endpointTargetHook, endpointAliases: []string{"hermes", "hermes-agent"}, hookAliases: []string{"hermes", "hermes-agent"}},
{name: "antigravity", endpointKind: endpointTargetHook, endpointAliases: []string{"antigravity", "antigravity-cli"}, hookAliases: []string{"antigravity", "antigravity-cli"}},
{name: "devin-cli", endpointKind: endpointTargetHook, endpointAliases: []string{"devin", "devin-cli"}, hookAliases: []string{"devin", "devin-cli"}},
diff --cc cli/beacon/internal/endpoint/inventory/inventory.go
index 4a15f93f,34885ca0..61a14602
--- a/cli/beacon/internal/endpoint/inventory/inventory.go
+++ b/cli/beacon/internal/endpoint/inventory/inventory.go
@@@ -634,13 -651,13 +663,18 @@@ func beaconManaged(item candidate, dat
return strings.Contains(text, "beacon-managed-opencode-plugin:v1")
case "cline":
return strings.Contains(text, "beacon-managed-cline-plugin:v1")
+ // Read from the installer's own constant rather than repeated as a literal here, unlike the
+ // markers above. Two spellings of a marker is how discovery comes to report on a file the
+ // installer does not write -- the reason hooks.PiManagedExtensionMarker is exported at all.
+ case "pi_cli":
+ return strings.Contains(text, hooks.PiManagedExtensionMarker)
case "grok":
return strings.Contains(text, "beacon-managed-grok-hooks:v1")
+ // Matched on the hook command rather than on a marker, because Beacon merges into Qwen's own
+ // settings.json and has no file of its own there to stamp. `--platform qwen` is what the
+ // installer writes and what uninstall keys on, so it is the same string in all three places.
+ case "qwen_code":
+ return strings.Contains(text, "--platform qwen") || strings.Contains(text, "--platform=qwen")
}
if item.runtime == "claude_code" || item.runtime == "codex_cli" {
if strings.Contains(text, "OTEL_EXPORTER_OTLP_ENDPOINT") && localEndpointText(text) {
diff --cc cli/beacon/internal/endpoint/lifecycle/lifecycle.go
index b326ca47,bbe54917..48b2f747
--- a/cli/beacon/internal/endpoint/lifecycle/lifecycle.go
+++ b/cli/beacon/internal/endpoint/lifecycle/lifecycle.go
@@@ -810,12 -810,8 +810,14 @@@ func configureHarnesses(cfg endpointcon
return paths, fmt.Errorf("opencode telemetry is installed with `beacon endpoint hooks install --harness opencode`, not endpoint install")
case "cline":
return paths, fmt.Errorf("Cline telemetry is installed with `beacon endpoint hooks install --harness cline`, not endpoint install")
+ case "pi", "pi_cli":
+ return paths, fmt.Errorf("Pi telemetry is installed with `beacon endpoint hooks install --harness pi`, not endpoint install")
+ // Qwen Code has no OpenTelemetry export to point at the local collector, so `endpoint
+ // install --harness qwen` has nothing to configure. Saying so beats the generic
+ // "unsupported harness", which reads as "Beacon does not support Qwen Code" when the
+ // support exists behind a different command.
+ case "qwen", "qwen_code":
+ return paths, fmt.Errorf("Qwen Code telemetry is installed with `beacon endpoint hooks install --harness qwen`, not endpoint install")
case "copilot", "copilot_cli", "github_copilot":
return paths, fmt.Errorf("Copilot CLI telemetry is MDM-managed; set COPILOT_OTEL_ENABLED=true and OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:%d in the Copilot CLI launch environment instead of using --harness %s", cfg.Collector.HTTPPort, name)
case "factory", "droid":