Watch
0
0
Fork
You've already forked hyperhive
0

deploy the closure the swarm declares, read no forge head, drop the update badge

This commit is contained in:
atlas 2026-11-01 23:56:40 +01:00 • committed by mara
commit 47c2acb640

View file

@ -72,7 +72,7 @@ class HiveAgentMenu extends HTMLElement {
// first, doubling the dropdown.
if (this._menu) return;
const { c, forgeBase } = this._opts || {};
const { c } = this._opts || {};
const btn = el(
"button",
@ -206,24 +206,6 @@ class HiveAgentMenu extends HTMLElement {
}),
);
if (c.deployed_sha && forgeBase) {
const li = el("li", { role: "presentation" });
const a = el(
"a",
{
class: "agent-menu-item",
href: `${forgeBase}/agent-configs/${encodeURIComponent(c.name)}/commit/${c.deployed_sha}`,
target: "_blank",
rel: "noopener",
role: "menuitem",
title: "deployed config commit on forge",
},
`deployed:${c.deployed_sha} ↗`,
);
li.append(a);
dropdown.append(menuSep(), li);
}
this._menu = document.createElement("hive-menu");
this._menu._opts = { trigger: btn, content: dropdown };
this.append(this._menu);