@galaxy-stack/blackhole-cli 2.1.31 → 2.1.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-stack/blackhole-cli",
3
- "version": "2.1.31",
3
+ "version": "2.1.34",
4
4
  "private": false,
5
5
  "description": "Galaxy Code CLI and terminal UI for the Galaxy agent runtime",
6
6
  "license": "MIT",
@@ -741,13 +741,13 @@ window.__ModuleLoader__.load({
741
741
  }, 150);
742
742
  }
743
743
  new MutationObserver(function (mutations) {
744
+ scheduleTidySurfaces();
744
745
  for (var i = 0; i < mutations.length; i += 1) {
745
746
  var added = mutations[i].addedNodes;
746
747
  for (var j = 0; j < added.length; j += 1) {
747
748
  var node = added[j];
748
749
  if (node === null || node.nodeType !== 1) continue;
749
750
  scheduleMenuProbe();
750
- scheduleTidySurfaces();
751
751
  return;
752
752
  }
753
753
  }
@@ -826,7 +826,26 @@ window.__ModuleLoader__.load({
826
826
  if (document.getElementById("gbh-hide-dsh-mascot") !== null) return;
827
827
  var style = document.createElement("style");
828
828
  style.id = "gbh-hide-dsh-mascot";
829
- style.textContent = '[class*="runningWhale"]{display:none !important}';
829
+ style.textContent = [
830
+ '[class*="runningWhale"]{display:none !important}',
831
+ /* The preset card's view affordance is an icon carrying its label in data-tip/aria-label rather than in
832
+ text, so a rule on those attributes survives the re-renders an inline style does not. */
833
+ '[data-tip="Xem"],[data-tip="View"],[aria-label^="Xem:"],[aria-label^="View:"]{display:none !important}',
834
+ /* Rows the brand marks for removal; the attribute survives a re-render better than an inline style. */
835
+ "[data-gbh-hidden]{display:none !important}",
836
+ /* DSH marks the rows a plugin page is built from, so these need no scripting and cannot flicker. */
837
+ '[class*="_versionTag"]{display:none !important}',
838
+ 'code[data-plugin-name="true"]{display:none !important}',
839
+ 'section[data-plugin-rows="true"]{display:none !important}',
840
+ /*
841
+ * The stock provider editor offers a 'Customized settings' disclosure, and DSH opens it for a frame while a
842
+ * route loads. A stylesheet applies from the first paint, which no script-driven hide can promise, so this
843
+ * is a rule rather than a marker. The add-provider surfaces keep the disclosure.
844
+ */
845
+ '[class*="_customized"]{display:none !important}',
846
+ '[class*="_addCard"] [class*="_customized"],[class*="_addPanel"] [class*="_customized"],' +
847
+ '[class*="_addBlock"] [class*="_customized"],[class*="_setupCard"] [class*="_customized"]{display:revert !important}',
848
+ ].join("\n");
830
849
  document.head.appendChild(style);
831
850
  } catch (error) { /* A page without a head must not break the rest of the brand. */ }
832
851
  }
@@ -841,6 +860,8 @@ window.__ModuleLoader__.load({
841
860
  *
842
861
  * Both run on a debounced observer because the settings panel mounts long after the brand is applied.
843
862
  */
863
+
864
+
844
865
  function tidySettingsSurfaces() {
845
866
  try {
846
867
  var nodes = document.querySelectorAll("div, span, p, li");
@@ -848,18 +869,23 @@ window.__ModuleLoader__.load({
848
869
  var node = nodes[i];
849
870
  if (node.children.length !== 0) continue;
850
871
  var text = node.textContent || "";
851
- if (text.indexOf("Phiên bản hiện tại:") !== 0 && text.indexOf("Current version:") !== 0) continue;
852
- var label = text.indexOf("Current version:") === 0 ? "Current version: " : "Phiên bản hiện tại: ";
853
- node.textContent = label + CLI_VERSION;
854
- }
855
- var buttons = document.querySelectorAll("button");
856
- for (var j = 0; j < buttons.length; j += 1) {
857
- if ((buttons[j].textContent || "").trim() !== "Xem") continue;
858
- buttons[j].style.display = "none";
872
+ if (text.indexOf("Phiên bản hiện tại:") === 0 || text.indexOf("Current version:") === 0) {
873
+ var label = text.indexOf("Current version:") === 0 ? "Current version: " : "Phiên bản hiện tại: ";
874
+ node.textContent = label + CLI_VERSION;
875
+ continue;
876
+ }
877
+ /* The module row names an internal npm package; it is the one line there a user cannot act on. */
878
+ if (text === "Mô-đun" || text === "Module") {
879
+ var row = node.parentElement;
880
+ if (row !== null) row.setAttribute("data-gbh-hidden", "");
881
+ }
859
882
  }
883
+
860
884
  } catch (error) { /* A DOM we do not recognise must not break the brand. */ }
861
885
  }
862
886
 
887
+ /* The disclosure is hidden by a stylesheet rule; no marker pass exists any more. */
888
+
863
889
  /*
864
890
  * The row-menu probe already observes the document, so this rides on it: a second observer would be one
865
891
  * more thing watching every mutation, and the brand is supposed to stay the only two it has.