@simonyea/holysheep-cli 2.1.60 → 2.1.61

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.
@@ -4090,7 +4090,7 @@ var require_package = __commonJS({
4090
4090
  "package.json"(exports2, module2) {
4091
4091
  module2.exports = {
4092
4092
  name: "@simonyea/holysheep-cli",
4093
- version: "2.1.60",
4093
+ version: "2.1.61",
4094
4094
  description: "Claude Code/Cursor/Cline API relay for China \u2014 \xA51=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
4095
4095
  scripts: {
4096
4096
  build: "node scripts/build.mjs",
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ var require_package = __commonJS({
12
12
  "package.json"(exports2, module2) {
13
13
  module2.exports = {
14
14
  name: "@simonyea/holysheep-cli",
15
- version: "2.1.60",
15
+ version: "2.1.61",
16
16
  description: "Claude Code/Cursor/Cline API relay for China \u2014 \xA51=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
17
17
  scripts: {
18
18
  build: "node scripts/build.mjs",
@@ -9400,6 +9400,54 @@ var require_aionui_wrapper = __commonJS({
9400
9400
  document.body.appendChild(d);
9401
9401
  return d;
9402
9402
  }
9403
+ // [v2.1.61] DOM-level fallback: hide Aion CLI / qwen / codebuddy from agent
9404
+ // pickers. acpTypes patch covers ACP-based agents, but aionrs ("Aion CLI")
9405
+ // is an AionUi-internal built-in scattered across multiple bundle chunks
9406
+ // with no central registry -- DOM hiding is the only reliable approach.
9407
+ // We use MutationObserver because the agent picker is rendered lazily.
9408
+ (function(){
9409
+ // Substrings to hide. Match in element text content (whole-token aware).
9410
+ var HIDE = [
9411
+ {label:'Aion CLI', test:function(t){return /\\bAion ?CLI\\b/i.test(t)}},
9412
+ {label:'Qwen Code', test:function(t){return /\\bQwen ?Code\\b/i.test(t)}},
9413
+ {label:'CodeBuddy', test:function(t){return /\\bCodeBuddy\\b/i.test(t)}},
9414
+ ];
9415
+ function shouldHide(el){
9416
+ // Only consider leaf-ish nodes that look like a pickable item:
9417
+ // role=menuitem|option|listitem, OR <button>, OR <li>, OR clickable div
9418
+ var tag = el.tagName;
9419
+ var role = el.getAttribute && el.getAttribute('role');
9420
+ var isPick = (role==='menuitem' || role==='option' || role==='listitem') ||
9421
+ tag==='LI' || tag==='BUTTON' ||
9422
+ (tag==='DIV' && el.children.length<=8 && el.textContent.length<60);
9423
+ if(!isPick) return null;
9424
+ // Skip already hidden + skip the settings page (Aion CLI Settings is OK)
9425
+ if(el.dataset.hsHidden) return null;
9426
+ var txt = (el.textContent||'').trim();
9427
+ if(!txt || txt.length>120) return null;
9428
+ for(var i=0;i<HIDE.length;i++){
9429
+ if(HIDE[i].test(txt) && !/setting/i.test(txt)) return HIDE[i].label;
9430
+ }
9431
+ return null;
9432
+ }
9433
+ function sweep(){
9434
+ // Only run on /guid (onboarding) and any agent-picker dialogs (we widen
9435
+ // it because the picker also appears in chat). Easy heuristic: any page.
9436
+ var nodes = document.querySelectorAll('button, li, [role=menuitem], [role=option], [role=listitem], div');
9437
+ for(var i=0;i<nodes.length;i++){
9438
+ var hit = shouldHide(nodes[i]);
9439
+ if(hit){
9440
+ nodes[i].style.display='none';
9441
+ nodes[i].dataset.hsHidden=hit;
9442
+ }
9443
+ }
9444
+ }
9445
+ sweep();
9446
+ if(typeof MutationObserver==='function'){
9447
+ var mo = new MutationObserver(function(){clearTimeout(window.__hsHideTimer);window.__hsHideTimer=setTimeout(sweep,50)});
9448
+ mo.observe(document.body,{childList:true,subtree:true});
9449
+ }
9450
+ })();
9403
9451
  // 1) Static startup warnings
9404
9452
  (function(){
9405
9453
  if(sessionStorage.getItem(DISMISS_KEY))return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonyea/holysheep-cli",
3
- "version": "2.1.60",
3
+ "version": "2.1.61",
4
4
  "description": "Claude Code/Cursor/Cline API relay for China — ¥1=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
5
5
  "scripts": {
6
6
  "build": "node scripts/build.mjs",