@enigmax/dashboard 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/index.html +14 -2
- package/package.json +1 -1
package/assets/index.html
CHANGED
|
@@ -232,6 +232,7 @@
|
|
|
232
232
|
.aicons { display: inline-flex; gap: 5px; align-items: center; vertical-align: middle; }
|
|
233
233
|
.aicon { display: inline-flex; align-items: center; color: var(--muted); }
|
|
234
234
|
.aicon svg { width: 14px; height: 14px; display: block; }
|
|
235
|
+
.set-ic { vertical-align: middle; margin-right: 7px; }
|
|
235
236
|
/* List settings (guard block/allow globs, custom secret patterns): chips + add input. A list row spans the full grid width. */
|
|
236
237
|
.set-row.list { grid-column: 1 / -1; align-items: stretch; flex-direction: column; }
|
|
237
238
|
.lchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
|
@@ -2101,6 +2102,17 @@ export {
|
|
|
2101
2102
|
return esc(name) + badges.map(([t, c]) => ' <span class="tag ' + c + '">' + esc(t) + "</span>").join("");
|
|
2102
2103
|
}
|
|
2103
2104
|
|
|
2105
|
+
// App-specific settings (per-agent approval bypass) get the app's logo prefixed to
|
|
2106
|
+
// the label, so the Permissions list reads at a glance. AGENT_ICONS is defined below
|
|
2107
|
+
// but only referenced at render time, so it is initialised by then.
|
|
2108
|
+
const AGENT_LABEL_BY_NAME = { claude: "Claude Code", codex: "OpenAI Codex", opencode: "OpenCode" };
|
|
2109
|
+
function settingIcon(key) {
|
|
2110
|
+
const m = /^bypass-(claude|codex|opencode)$/.exec(key || "");
|
|
2111
|
+
if (!m) return "";
|
|
2112
|
+
const ic = (typeof AGENT_ICONS !== "undefined" && AGENT_ICONS[m[1]]) || "";
|
|
2113
|
+
return ic ? '<span class="aicon set-ic" title="' + esc(AGENT_LABEL_BY_NAME[m[1]]) + '" aria-hidden="true">' + ic + "</span>" : "";
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2104
2116
|
function settingRow(s) {
|
|
2105
2117
|
if (s.kind === "list") {
|
|
2106
2118
|
const items = s.items || [];
|
|
@@ -2111,7 +2123,7 @@ export {
|
|
|
2111
2123
|
const adder = '<div class="ladd"><input type="text" class="linput" data-skey="' + esc(s.key)
|
|
2112
2124
|
+ '" placeholder="' + esc(s.itemHint || "add an entry...") + '">'
|
|
2113
2125
|
+ '<button type="button" class="laddb" data-skey="' + esc(s.key) + '">Add</button></div>';
|
|
2114
|
-
return '<div class="set-row list"><div class="set-meta"><div class="set-name">' + labelWithBadges(s.label) + "</div>"
|
|
2126
|
+
return '<div class="set-row list"><div class="set-meta"><div class="set-name">' + settingIcon(s.key) + labelWithBadges(s.label) + "</div>"
|
|
2115
2127
|
+ '<div class="set-hint">' + esc(s.hint) + (s.globalOnly ? " · global" : "") + "</div>"
|
|
2116
2128
|
+ chips + adder + "</div></div>";
|
|
2117
2129
|
}
|
|
@@ -2124,7 +2136,7 @@ export {
|
|
|
2124
2136
|
+ "</select>"
|
|
2125
2137
|
: '<button type="button" class="toggle' + (s.value ? " on" : "") + '" data-skey="' + esc(s.key)
|
|
2126
2138
|
+ '" data-kind="bool" data-on="' + (s.value ? 1 : 0) + '">' + (s.value ? "On" : "Off") + "</button>";
|
|
2127
|
-
return '<div class="set-row"><div class="set-meta"><div class="set-name">' + labelWithBadges(s.label) + "</div>"
|
|
2139
|
+
return '<div class="set-row"><div class="set-meta"><div class="set-name">' + settingIcon(s.key) + labelWithBadges(s.label) + "</div>"
|
|
2128
2140
|
+ '<div class="set-hint">' + esc(s.hint) + (s.globalOnly ? " · global" : "") + "</div></div>"
|
|
2129
2141
|
+ '<div class="set-ctl">' + ctl + "</div></div>";
|
|
2130
2142
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmax/dashboard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Local browser dashboard UI for enigma: the static page and chart assets enigma serves on its loopback dashboard (savings, real tool usage, in-browser settings). Installed on demand by enigma-cli; not a runtime dependency.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|