@galaxy-stack/blackhole-cli 2.1.32 → 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.32",
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",
@@ -831,6 +831,20 @@ window.__ModuleLoader__.load({
831
831
  /* The preset card's view affordance is an icon carrying its label in data-tip/aria-label rather than in
832
832
  text, so a rule on those attributes survives the re-renders an inline style does not. */
833
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}',
834
848
  ].join("\n");
835
849
  document.head.appendChild(style);
836
850
  } catch (error) { /* A page without a head must not break the rest of the brand. */ }
@@ -846,6 +860,8 @@ window.__ModuleLoader__.load({
846
860
  *
847
861
  * Both run on a debounced observer because the settings panel mounts long after the brand is applied.
848
862
  */
863
+
864
+
849
865
  function tidySettingsSurfaces() {
850
866
  try {
851
867
  var nodes = document.querySelectorAll("div, span, p, li");
@@ -853,14 +869,23 @@ window.__ModuleLoader__.load({
853
869
  var node = nodes[i];
854
870
  if (node.children.length !== 0) continue;
855
871
  var text = node.textContent || "";
856
- if (text.indexOf("Phiên bản hiện tại:") !== 0 && text.indexOf("Current version:") !== 0) continue;
857
- var label = text.indexOf("Current version:") === 0 ? "Current version: " : "Phiên bản hiện tại: ";
858
- node.textContent = label + CLI_VERSION;
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
  }
860
883
 
861
884
  } catch (error) { /* A DOM we do not recognise must not break the brand. */ }
862
885
  }
863
886
 
887
+ /* The disclosure is hidden by a stylesheet rule; no marker pass exists any more. */
888
+
864
889
  /*
865
890
  * The row-menu probe already observes the document, so this rides on it: a second observer would be one
866
891
  * more thing watching every mutation, and the brand is supposed to stay the only two it has.