@lovrabet/rabetbase-cli 2.0.6 → 2.0.7

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.
Files changed (145) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -0
  67. package/lib/commands/project/create/format-elapsed.js +1 -0
  68. package/lib/commands/project/create/main.js +1 -0
  69. package/lib/commands/project/create/non-interactive.js +1 -0
  70. package/lib/commands/project/create/project-template-path.js +1 -0
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -0
  72. package/lib/commands/project/create/use-format-code.js +1 -0
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -0
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -0
  76. package/lib/commands/project/upgrade.js +1 -0
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/skill/index.js +1 -1
  80. package/lib/commands/sql/detail.js +1 -1
  81. package/lib/commands/sql/exec.js +1 -1
  82. package/lib/commands/sql/index.js +1 -1
  83. package/lib/commands/sql/list.js +1 -1
  84. package/lib/commands/sql/save.js +1 -1
  85. package/lib/commands/sql/validate.js +1 -1
  86. package/lib/constant/cli.js +1 -1
  87. package/lib/constant/domain.js +1 -1
  88. package/lib/constant/env.js +1 -1
  89. package/lib/context.js +1 -1
  90. package/lib/core/alias-resolver.js +1 -1
  91. package/lib/core/api-client.js +1 -1
  92. package/lib/core/bff/config.js +1 -1
  93. package/lib/core/bff/file-system.js +1 -1
  94. package/lib/core/bff/hash.js +1 -1
  95. package/lib/core/bff/lock.js +1 -1
  96. package/lib/core/bff/utils.js +1 -1
  97. package/lib/core/db-resolver.js +1 -1
  98. package/lib/core/sql-validator.js +1 -1
  99. package/lib/errors.js +1 -1
  100. package/lib/framework/flags.js +1 -1
  101. package/lib/framework/help.js +1 -1
  102. package/lib/framework/index.js +1 -1
  103. package/lib/framework/output.js +1 -1
  104. package/lib/framework/response.js +1 -1
  105. package/lib/framework/runner.js +1 -1
  106. package/lib/framework/types.js +1 -1
  107. package/lib/generated/build-info.js +1 -1
  108. package/lib/help.js +1 -1
  109. package/lib/skills/main.js +1 -1
  110. package/lib/skills/npx-skills-add.js +1 -1
  111. package/lib/telemetry/cli-command-trace.js +1 -1
  112. package/lib/telemetry/cli-help-trace.js +1 -1
  113. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  114. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  115. package/lib/telemetry/send-cli-trace-log.js +1 -1
  116. package/lib/utils/ai_config.js +1 -1
  117. package/lib/utils/cdn-config.js +1 -1
  118. package/lib/utils/check-sdk-version.js +1 -1
  119. package/lib/utils/cli-version-check.js +1 -1
  120. package/lib/utils/config.js +1 -1
  121. package/lib/utils/copy-directory.js +1 -1
  122. package/lib/utils/file-utils.js +1 -1
  123. package/lib/utils/guides-cdn.js +1 -1
  124. package/lib/utils/http-client.js +1 -1
  125. package/lib/utils/is-non-interactive.js +1 -1
  126. package/lib/utils/logger.js +1 -1
  127. package/lib/utils/platform.js +1 -1
  128. package/lib/utils/rules-cdn.js +1 -1
  129. package/lib/utils/sleep.js +1 -1
  130. package/lib/utils/template-replacer.js +1 -1
  131. package/lib/utils/version.js +1 -1
  132. package/lib/utils/with-active-cookie.js +1 -1
  133. package/package.json +1 -1
  134. package/lib/commands/build.js +0 -1
  135. package/lib/commands/preview.js +0 -1
  136. package/lib/commands/project-upgrade.js +0 -1
  137. package/lib/commands/start.js +0 -1
  138. package/lib/create-app/enhanced-guided-create.js +0 -1
  139. package/lib/create-app/format-elapsed.js +0 -1
  140. package/lib/create-app/main.js +0 -1
  141. package/lib/create-app/non-interactive.js +0 -1
  142. package/lib/create-app/use-copy-project-template.js +0 -1
  143. package/lib/create-app/use-format-code.js +0 -1
  144. package/lib/create-app/use-install-dependencies.js +0 -1
  145. package/lib/init/main.js +0 -1
@@ -1 +1 @@
1
- (function(_0x1b9953,_0x5b75b5){const _0x212e47=a105_0x29f7,_0x37b375=_0x1b9953();while(!![]){try{const _0x2929fa=-parseInt(_0x212e47(0xcb))/0x1*(parseInt(_0x212e47(0xb1))/0x2)+-parseInt(_0x212e47(0xc4))/0x3*(-parseInt(_0x212e47(0xb3))/0x4)+parseInt(_0x212e47(0xbd))/0x5+parseInt(_0x212e47(0xc8))/0x6*(parseInt(_0x212e47(0xc6))/0x7)+-parseInt(_0x212e47(0xc7))/0x8*(-parseInt(_0x212e47(0xc0))/0x9)+parseInt(_0x212e47(0xbf))/0xa+-parseInt(_0x212e47(0xcf))/0xb*(parseInt(_0x212e47(0xb5))/0xc);if(_0x2929fa===_0x5b75b5)break;else _0x37b375['push'](_0x37b375['shift']());}catch(_0x394092){_0x37b375['push'](_0x37b375['shift']());}}}(a105_0x524c,0xefc1d));export function formatOutput(_0x3c07ee,_0x3a83fd){const _0x28577f=a105_0x29f7,{format:_0x202475}=_0x3a83fd;switch(_0x202475){case _0x28577f(0xd1):printJson(_0x3c07ee,_0x3a83fd);break;case _0x28577f(0xc2):printTable(_0x3c07ee,_0x3a83fd);break;case _0x28577f(0xbb):default:printPretty(_0x3c07ee,_0x3a83fd);break;}}function printJson(_0x50578a,_0x108678){const _0x73aae4=a105_0x29f7,_0x1b1b52={'ok':_0x50578a['ok'],'command':_0x108678['command'],'risk':_0x108678[_0x73aae4(0xad)]};if(_0x108678['dryRun'])_0x1b1b52['dryRun']=!![];if(_0x50578a[_0x73aae4(0xba)]!==undefined)_0x1b1b52[_0x73aae4(0xba)]=_0x50578a[_0x73aae4(0xba)];!_0x50578a['ok']&&_0x50578a['message']&&(_0x1b1b52[_0x73aae4(0xb0)]={'code':_0x73aae4(0xcc),'message':_0x50578a[_0x73aae4(0xbc)]}),process[_0x73aae4(0xd0)][_0x73aae4(0xce)](JSON['stringify'](_0x1b1b52,null,0x2)+'\x0a');}function printPretty(_0x28716e,_0x289ec6){const _0x3282cc=a105_0x29f7;if(_0x289ec6['dryRun']){console[_0x3282cc(0xb9)](_0x3282cc(0xb6)),console['log'](JSON[_0x3282cc(0xb8)](_0x28716e['data'],null,0x2));return;}if(!_0x28716e['ok']){console[_0x3282cc(0xb0)](_0x3282cc(0xc9)+(_0x28716e[_0x3282cc(0xbc)]??_0x3282cc(0xc5)));return;}const _0x2f7061=_0x28716e['data'];if(_0x2f7061===undefined||_0x2f7061===null){if(_0x28716e['message'])console[_0x3282cc(0xb9)](_0x28716e['message']);return;}if(Array[_0x3282cc(0xca)](_0x2f7061)){printArrayPretty(_0x2f7061);return;}if(typeof _0x2f7061==='object'){printObjectPretty(_0x2f7061);return;}console[_0x3282cc(0xb9)](String(_0x2f7061));}function printObjectPretty(_0x5c4da9){const _0x2b3909=a105_0x29f7,_0x12bf75=Math[_0x2b3909(0xc3)](...Object[_0x2b3909(0xb4)](_0x5c4da9)[_0x2b3909(0xb2)](_0x1cd9c8=>_0x1cd9c8[_0x2b3909(0xac)]),0x0);for(const [_0xc19144,_0x1c17c6]of Object['entries'](_0x5c4da9)){if(_0x1c17c6===undefined||_0x1c17c6===null)continue;const _0x1e4285=_0xc19144['padEnd'](_0x12bf75);typeof _0x1c17c6===_0x2b3909(0xc1)?console[_0x2b3909(0xb9)](_0x1e4285+'\x20\x20'+JSON[_0x2b3909(0xb8)](_0x1c17c6)):console[_0x2b3909(0xb9)](_0x1e4285+'\x20\x20'+_0x1c17c6);}}function printArrayPretty(_0x11107c){const _0x2941b5=a105_0x29f7;if(_0x11107c[_0x2941b5(0xac)]===0x0){console[_0x2941b5(0xb9)]('(empty)');return;}console['log']('Found\x20'+_0x11107c[_0x2941b5(0xac)]+_0x2941b5(0xb7));for(const _0xdc485e of _0x11107c){if(typeof _0xdc485e===_0x2941b5(0xc1)&&_0xdc485e!==null){const _0xcd03d4=Object[_0x2941b5(0xbe)](_0xdc485e)['filter'](([,_0x58da80])=>_0x58da80!=null&&_0x58da80!=='');if(_0xcd03d4[_0x2941b5(0xac)]===0x0)continue;const _0x41d972=Math[_0x2941b5(0xc3)](..._0xcd03d4[_0x2941b5(0xb2)](([_0x3c1ea3])=>_0x3c1ea3['length']));for(const [_0x351325,_0x17e3f6]of _0xcd03d4){const _0x5929bc=typeof _0x17e3f6===_0x2941b5(0xc1)?JSON[_0x2941b5(0xb8)](_0x17e3f6):String(_0x17e3f6);console['log']('\x20\x20'+_0x351325[_0x2941b5(0xaf)](_0x41d972)+'\x20\x20'+_0x5929bc);}console['log']('');}else console[_0x2941b5(0xb9)]('\x20\x20'+_0xdc485e);}}function a105_0x29f7(_0x5e7b02,_0xfb01f8){_0x5e7b02=_0x5e7b02-0xac;const _0x524c3e=a105_0x524c();let _0x29f781=_0x524c3e[_0x5e7b02];return _0x29f781;}function a105_0x524c(){const _0x104d90=['5560815tHNHFR','entries','1569940BDyKcP','36TBwNPL','object','table','max','253158GcsESC','Unknown\x20error','6788887RAAJzu','2160088dSyWna','6zViVRl','Error:\x20','isArray','58692suDNEL','command_error','join','write','14490531rbzdlP','stdout','json','length','risk','repeat','padEnd','error','52nNDXfM','map','24yvQxnL','keys','12TLRaYy','[dry-run]\x20Would\x20execute:','\x20items:\x0a','stringify','log','data','pretty','message'];a105_0x524c=function(){return _0x104d90;};return a105_0x524c();}function printTable(_0x42f746,_0x272027){const _0x5ac655=a105_0x29f7,_0x5363f2=_0x42f746['data'];if(!_0x42f746['ok']){console[_0x5ac655(0xb0)](_0x5ac655(0xc9)+(_0x42f746['message']??_0x5ac655(0xc5)));return;}const _0x556c82=Array[_0x5ac655(0xca)](_0x5363f2)?_0x5363f2:_0x5363f2?[_0x5363f2]:[];if(_0x556c82[_0x5ac655(0xac)]===0x0){console[_0x5ac655(0xb9)]('(empty)');return;}const _0x49d509=Object['keys'](_0x556c82[0x0]),_0x566dcf=_0x49d509[_0x5ac655(0xb2)](_0xf6bca3=>Math['max'](_0xf6bca3[_0x5ac655(0xac)],..._0x556c82[_0x5ac655(0xb2)](_0x764f1a=>String(_0x764f1a[_0xf6bca3]??'')[_0x5ac655(0xac)]))),_0x42d986=_0x49d509[_0x5ac655(0xb2)]((_0xb836ee,_0x4ed076)=>_0xb836ee[_0x5ac655(0xaf)](_0x566dcf[_0x4ed076]))['join']('\x20\x20'),_0x4e80a9=_0x566dcf['map'](_0x403dd9=>'-'[_0x5ac655(0xae)](_0x403dd9))[_0x5ac655(0xcd)]('\x20\x20');console[_0x5ac655(0xb9)](_0x42d986),console[_0x5ac655(0xb9)](_0x4e80a9);for(const _0x5a1040 of _0x556c82){const _0x5b0d36=_0x49d509['map']((_0x3fdf9b,_0x363e96)=>String(_0x5a1040[_0x3fdf9b]??'')[_0x5ac655(0xaf)](_0x566dcf[_0x363e96]))[_0x5ac655(0xcd)]('\x20\x20');console[_0x5ac655(0xb9)](_0x5b0d36);}}
1
+ function a104_0x109d(){const _0x54e33d=['30wZlXOm','15knKaoE','24tPPFyg','error','filter','log','Unknown\x20error','11994ljrBNl','5131IVmVVc','object','3060594otJsKu','join','padEnd','length','risk','isArray','data','keys','table','max','pretty','command','map','entries','message','\x20items:\x0a','1353263oJBJzq','Found\x20','stdout','18245777iXDakw','(empty)','[dry-run]\x20Would\x20execute:','stringify','write','2131845KyrRxm','dryRun','2924544FlCPcu','Error:\x20','1238284NxNgcd'];a104_0x109d=function(){return _0x54e33d;};return a104_0x109d();}(function(_0x418ab8,_0x4902d1){const _0x154bdd=a104_0x2f6d,_0x59e52b=_0x418ab8();while(!![]){try{const _0x599896=-parseInt(_0x154bdd(0x11a))/0x1+-parseInt(_0x154bdd(0xfd))/0x2+-parseInt(_0x154bdd(0x101))/0x3*(-parseInt(_0x154bdd(0xff))/0x4)+-parseInt(_0x154bdd(0xfb))/0x5+-parseInt(_0x154bdd(0x107))/0x6*(parseInt(_0x154bdd(0x108))/0x7)+-parseInt(_0x154bdd(0x102))/0x8*(parseInt(_0x154bdd(0x10a))/0x9)+-parseInt(_0x154bdd(0x100))/0xa*(-parseInt(_0x154bdd(0x11d))/0xb);if(_0x599896===_0x4902d1)break;else _0x59e52b['push'](_0x59e52b['shift']());}catch(_0xb02ec){_0x59e52b['push'](_0x59e52b['shift']());}}}(a104_0x109d,0xc27bf));export function formatOutput(_0x6172e2,_0x4a3d59){const _0x4dfaa7=a104_0x2f6d,{format:_0x69a5b4}=_0x4a3d59;switch(_0x69a5b4){case'json':printJson(_0x6172e2,_0x4a3d59);break;case _0x4dfaa7(0x112):printTable(_0x6172e2,_0x4a3d59);break;case _0x4dfaa7(0x114):default:printPretty(_0x6172e2,_0x4a3d59);break;}}function a104_0x2f6d(_0x313317,_0x47cecf){_0x313317=_0x313317-0xfa;const _0x109d94=a104_0x109d();let _0x2f6d0a=_0x109d94[_0x313317];return _0x2f6d0a;}function printJson(_0x46c4cc,_0x2fca8e){const _0x69690e=a104_0x2f6d,_0x463abf={'ok':_0x46c4cc['ok'],'command':_0x2fca8e[_0x69690e(0x115)],'risk':_0x2fca8e[_0x69690e(0x10e)]};if(_0x2fca8e[_0x69690e(0xfc)])_0x463abf['dryRun']=!![];if(_0x46c4cc[_0x69690e(0x110)]!==undefined)_0x463abf[_0x69690e(0x110)]=_0x46c4cc[_0x69690e(0x110)];!_0x46c4cc['ok']&&_0x46c4cc[_0x69690e(0x118)]&&(_0x463abf[_0x69690e(0x103)]={'code':'command_error','message':_0x46c4cc[_0x69690e(0x118)]}),process[_0x69690e(0x11c)][_0x69690e(0xfa)](JSON[_0x69690e(0x120)](_0x463abf,null,0x2)+'\x0a');}function printPretty(_0x17f85f,_0x48a4c3){const _0x31fb3e=a104_0x2f6d;if(_0x48a4c3[_0x31fb3e(0xfc)]){console[_0x31fb3e(0x105)](_0x31fb3e(0x11f)),console[_0x31fb3e(0x105)](JSON['stringify'](_0x17f85f['data'],null,0x2));return;}if(!_0x17f85f['ok']){console['error'](_0x31fb3e(0xfe)+(_0x17f85f[_0x31fb3e(0x118)]??_0x31fb3e(0x106)));return;}const _0x1f3406=_0x17f85f[_0x31fb3e(0x110)];if(_0x1f3406===undefined||_0x1f3406===null){if(_0x17f85f[_0x31fb3e(0x118)])console[_0x31fb3e(0x105)](_0x17f85f[_0x31fb3e(0x118)]);return;}if(Array[_0x31fb3e(0x10f)](_0x1f3406)){printArrayPretty(_0x1f3406);return;}if(typeof _0x1f3406===_0x31fb3e(0x109)){printObjectPretty(_0x1f3406);return;}console['log'](String(_0x1f3406));}function printObjectPretty(_0x69f279){const _0x39067d=a104_0x2f6d,_0x2dbc19=Math[_0x39067d(0x113)](...Object[_0x39067d(0x111)](_0x69f279)[_0x39067d(0x116)](_0x22708d=>_0x22708d['length']),0x0);for(const [_0x2ff097,_0xbfbfad]of Object[_0x39067d(0x117)](_0x69f279)){if(_0xbfbfad===undefined||_0xbfbfad===null)continue;const _0x51a8bd=_0x2ff097['padEnd'](_0x2dbc19);typeof _0xbfbfad===_0x39067d(0x109)?console[_0x39067d(0x105)](_0x51a8bd+'\x20\x20'+JSON[_0x39067d(0x120)](_0xbfbfad)):console[_0x39067d(0x105)](_0x51a8bd+'\x20\x20'+_0xbfbfad);}}function printArrayPretty(_0x4dde5e){const _0x43dd3b=a104_0x2f6d;if(_0x4dde5e[_0x43dd3b(0x10d)]===0x0){console['log'](_0x43dd3b(0x11e));return;}console[_0x43dd3b(0x105)](_0x43dd3b(0x11b)+_0x4dde5e[_0x43dd3b(0x10d)]+_0x43dd3b(0x119));for(const _0x4f63cc of _0x4dde5e){if(typeof _0x4f63cc===_0x43dd3b(0x109)&&_0x4f63cc!==null){const _0x20634d=Object[_0x43dd3b(0x117)](_0x4f63cc)[_0x43dd3b(0x104)](([,_0x4fe810])=>_0x4fe810!=null&&_0x4fe810!=='');if(_0x20634d[_0x43dd3b(0x10d)]===0x0)continue;const _0x379116=Math['max'](..._0x20634d[_0x43dd3b(0x116)](([_0x1fec52])=>_0x1fec52[_0x43dd3b(0x10d)]));for(const [_0x4d8f3f,_0x80503]of _0x20634d){const _0x5edead=typeof _0x80503===_0x43dd3b(0x109)?JSON[_0x43dd3b(0x120)](_0x80503):String(_0x80503);console[_0x43dd3b(0x105)]('\x20\x20'+_0x4d8f3f['padEnd'](_0x379116)+'\x20\x20'+_0x5edead);}console[_0x43dd3b(0x105)]('');}else console['log']('\x20\x20'+_0x4f63cc);}}function printTable(_0x4cea86,_0x253034){const _0x1a07d3=a104_0x2f6d,_0x2f38a9=_0x4cea86['data'];if(!_0x4cea86['ok']){console['error'](_0x1a07d3(0xfe)+(_0x4cea86['message']??_0x1a07d3(0x106)));return;}const _0x129c7f=Array['isArray'](_0x2f38a9)?_0x2f38a9:_0x2f38a9?[_0x2f38a9]:[];if(_0x129c7f[_0x1a07d3(0x10d)]===0x0){console[_0x1a07d3(0x105)](_0x1a07d3(0x11e));return;}const _0x527303=Object[_0x1a07d3(0x111)](_0x129c7f[0x0]),_0x31766f=_0x527303[_0x1a07d3(0x116)](_0x2b2c29=>Math[_0x1a07d3(0x113)](_0x2b2c29[_0x1a07d3(0x10d)],..._0x129c7f[_0x1a07d3(0x116)](_0x18b5ba=>String(_0x18b5ba[_0x2b2c29]??'')[_0x1a07d3(0x10d)]))),_0x46ad54=_0x527303[_0x1a07d3(0x116)]((_0x38fe61,_0x22a636)=>_0x38fe61['padEnd'](_0x31766f[_0x22a636]))[_0x1a07d3(0x10b)]('\x20\x20'),_0x2c580b=_0x31766f[_0x1a07d3(0x116)](_0x1a3ef0=>'-'['repeat'](_0x1a3ef0))['join']('\x20\x20');console[_0x1a07d3(0x105)](_0x46ad54),console[_0x1a07d3(0x105)](_0x2c580b);for(const _0x4c6543 of _0x129c7f){const _0x92425b=_0x527303[_0x1a07d3(0x116)]((_0x137e45,_0x502588)=>String(_0x4c6543[_0x137e45]??'')[_0x1a07d3(0x10c)](_0x31766f[_0x502588]))[_0x1a07d3(0x10b)]('\x20\x20');console[_0x1a07d3(0x105)](_0x92425b);}}
@@ -1 +1 @@
1
- (function(_0x31a409,_0x6ec97f){var _0x59046f=a106_0x577b,_0x43d122=_0x31a409();while(!![]){try{var _0x385fab=-parseInt(_0x59046f(0xf0))/0x1+-parseInt(_0x59046f(0xfb))/0x2*(parseInt(_0x59046f(0xf2))/0x3)+parseInt(_0x59046f(0xf9))/0x4+parseInt(_0x59046f(0xf7))/0x5*(-parseInt(_0x59046f(0xf5))/0x6)+-parseInt(_0x59046f(0xf8))/0x7+-parseInt(_0x59046f(0xf1))/0x8*(parseInt(_0x59046f(0xf6))/0x9)+-parseInt(_0x59046f(0xf3))/0xa*(-parseInt(_0x59046f(0xfa))/0xb);if(_0x385fab===_0x6ec97f)break;else _0x43d122['push'](_0x43d122['shift']());}catch(_0x522cfa){_0x43d122['push'](_0x43d122['shift']());}}}(a106_0x3a6b,0x59403));function a106_0x577b(_0x41698a,_0x4edc0c){_0x41698a=_0x41698a-0xef;var _0x3a6b64=a106_0x3a6b();var _0x577b73=_0x3a6b64[_0x41698a];return _0x577b73;}export function extractList(_0xdcc7a9){var _0x118c2c=a106_0x577b;if(Array['isArray'](_0xdcc7a9))return _0xdcc7a9;if(_0xdcc7a9&&typeof _0xdcc7a9===_0x118c2c(0xfc))return _0xdcc7a9['tableData']??[];return[];}export function extractPaging(_0x5a3fa5){var _0x255898=a106_0x577b;if(_0x5a3fa5&&typeof _0x5a3fa5===_0x255898(0xfc)&&!Array[_0x255898(0xf4)](_0x5a3fa5))return _0x5a3fa5[_0x255898(0xef)];return undefined;}function a106_0x3a6b(){var _0x3292e9=['292527TMAtoC','5bKIEcF','2864470pSPVvR','800812jUzshB','5597647dNxmqU','4fvsqqr','object','paging','147263vlwjci','168UlpkLj','183294eFmnTa','30rSzRuR','isArray','186wkpbDH'];a106_0x3a6b=function(){return _0x3292e9;};return a106_0x3a6b();}
1
+ (function(_0x24679c,_0x62be8a){var _0x50768a=a105_0x20a1,_0x5aa52d=_0x24679c();while(!![]){try{var _0x4e352c=parseInt(_0x50768a(0x1bf))/0x1+-parseInt(_0x50768a(0x1be))/0x2+-parseInt(_0x50768a(0x1bc))/0x3+parseInt(_0x50768a(0x1c1))/0x4+-parseInt(_0x50768a(0x1bb))/0x5*(-parseInt(_0x50768a(0x1c2))/0x6)+parseInt(_0x50768a(0x1c3))/0x7+parseInt(_0x50768a(0x1c4))/0x8*(parseInt(_0x50768a(0x1c5))/0x9);if(_0x4e352c===_0x62be8a)break;else _0x5aa52d['push'](_0x5aa52d['shift']());}catch(_0x3f20fd){_0x5aa52d['push'](_0x5aa52d['shift']());}}}(a105_0x3cc8,0xa3abb));function a105_0x20a1(_0x5b7496,_0x289503){_0x5b7496=_0x5b7496-0x1b9;var _0x3cc884=a105_0x3cc8();var _0x20a152=_0x3cc884[_0x5b7496];return _0x20a152;}export function extractList(_0x32ff19){var _0x1c162e=a105_0x20a1;if(Array[_0x1c162e(0x1bd)](_0x32ff19))return _0x32ff19;if(_0x32ff19&&typeof _0x32ff19==='object')return _0x32ff19[_0x1c162e(0x1b9)]??[];return[];}function a105_0x3cc8(){var _0x3c72b5=['isArray','2499408THmrWF','125765nQRmfM','object','1752908pgBGDT','642bVbmQO','4973605xWHADD','872yPrtoT','38601hmzYyN','tableData','paging','43825ArXlin','2279292nhBcBR'];a105_0x3cc8=function(){return _0x3c72b5;};return a105_0x3cc8();}export function extractPaging(_0x2f2905){var _0x5aace2=a105_0x20a1;if(_0x2f2905&&typeof _0x2f2905===_0x5aace2(0x1c0)&&!Array['isArray'](_0x2f2905))return _0x2f2905[_0x5aace2(0x1ba)];return undefined;}
@@ -1 +1 @@
1
- (function(_0x4e4a0f,_0x29c050){const _0x554c46=a107_0x579c,_0x5d4f38=_0x4e4a0f();while(!![]){try{const _0x149a81=-parseInt(_0x554c46(0x1d5))/0x1*(-parseInt(_0x554c46(0x1b7))/0x2)+parseInt(_0x554c46(0x1d9))/0x3+parseInt(_0x554c46(0x1c8))/0x4+-parseInt(_0x554c46(0x1ac))/0x5*(-parseInt(_0x554c46(0x1c5))/0x6)+-parseInt(_0x554c46(0x1ad))/0x7+parseInt(_0x554c46(0x1ed))/0x8*(parseInt(_0x554c46(0x1b9))/0x9)+-parseInt(_0x554c46(0x1ba))/0xa;if(_0x149a81===_0x29c050)break;else _0x5d4f38['push'](_0x5d4f38['shift']());}catch(_0x2e09cb){_0x5d4f38['push'](_0x5d4f38['shift']());}}}(a107_0x38b1,0xafc18));import{riskLevelOrder,isValidFormat}from'./types.js';import{parseFlags,validateFlags}from'./flags.js';function a107_0x579c(_0xea6b64,_0x152af0){_0xea6b64=_0xea6b64-0x1a6;const _0x38b134=a107_0x38b1();let _0x579c85=_0x38b134[_0xea6b64];return _0x579c85;}import{formatOutput}from'./output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a107_0x38b1(){const _0x4f5717=['map','execute','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','args','riskLevel','dryRun','.\x20Run\x20`','106mrWQUo','name','531BNusMP','20345130ZSTMNU','\x20api\x20pull`\x20first.','`\x20requires\x20either\x20--code\x20or\x20--alias.','createInterface','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','resolveApiDomain','`\x20has\x20risk\x20level\x20\x22','isNonInteractive','stdin','../core/api-client.js','defaultPageSize','487362iOkeQh','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','Command\x20`','804004wimQZb','flags','appCode','requiresAppCode','selectedAppName','apiDir','defaultVerbose','command','dry-run','join','requiresAuth','alias','yes','159xJNCVa','rawFlags','service','Operation\x20cancelled\x20by\x20user.','3395229yKbnBu','stderr','configMissing','\x22.\x20','length','apiDomain','pretty','verbose','type','resolveAppCode','validate','Available\x20aliases:\x20','\x22.\x0a','code','some','⚠\x20\x20High-risk\x20operation:\x20','risk','validation','node:readline','number','188024uQUaZr','Unknown\x20alias\x20\x22','defaultFormat','Set\x20appcode\x20via\x20`','toLowerCase','format','nonInteractive','high-risk-write','pagesize','20mwebrZ','2088429YAKfDu','No\x20api.ts\x20found\x20in\x20','High-risk\x20operation\x20`'];a107_0x38b1=function(){return _0x4f5717;};return a107_0x38b1();}import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x3ae466,_0x2ef1f3){const _0x595493=a107_0x579c,_0x3fad32=CLI_BIN_NAME+'\x20'+_0x3ae466[_0x595493(0x1d7)]+'\x20'+_0x3ae466['command'],_0x4ce3c8=parseFlags(_0x3ae466[_0x595493(0x1c9)],_0x2ef1f3[_0x595493(0x1d6)]);validateFlags(_0x3ae466[_0x595493(0x1c9)],_0x4ce3c8,_0x3fad32);if(!_0x4ce3c8[_0x595493(0x1d0)]&&_0x2ef1f3['riskLevel']&&riskLevelOrder(_0x3ae466[_0x595493(0x1e9)])>riskLevelOrder(_0x2ef1f3['riskLevel'])){if(_0x2ef1f3[_0x595493(0x1c1)])throw CliErrors[_0x595493(0x1ea)](_0x595493(0x1c7)+_0x3fad32+_0x595493(0x1c0)+_0x3ae466[_0x595493(0x1e9)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x2ef1f3[_0x595493(0x1b4)]+'\x22.');throw CliErrors[_0x595493(0x1ea)]('Command\x20`'+_0x3fad32+_0x595493(0x1c0)+_0x3ae466[_0x595493(0x1e9)]+_0x595493(0x1be)+_0x2ef1f3['riskLevel']+_0x595493(0x1e5)+('\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22'+_0x3ae466[_0x595493(0x1e9)]+_0x595493(0x1c6)));}const _0x237222=_0x2ef1f3[_0x595493(0x1cd)]||'./src/api';resolveAliasToCode(_0x3ae466,_0x4ce3c8,_0x237222,_0x3fad32);let _0x488359='';if(_0x3ae466[_0x595493(0x1d2)]!==![]){_0x488359=_0x2ef1f3['resolveCookie']();if(!_0x488359)throw CliErrors['authRequired']();const {setActiveCookie:_0x5279a9}=await import(_0x595493(0x1c3));_0x5279a9(_0x488359);}let _0x47dd86='';if(_0x3ae466[_0x595493(0x1cb)]!==![]){_0x47dd86=_0x2ef1f3[_0x595493(0x1e2)]()??'';if(!_0x47dd86)throw CliErrors[_0x595493(0x1db)](_0x595493(0x1a6)+CLI_BIN_NAME+_0x595493(0x1b2));}const _0x2af489=resolveFormat(_0x4ce3c8,_0x3ae466,_0x2ef1f3[_0x595493(0x1ef)]),_0x3b12ba=buildRuntimeContext({'appCode':_0x47dd86,'cookie':_0x488359,'apiDomain':_0x2ef1f3[_0x595493(0x1bf)](),'format':_0x2af489,'flags':_0x4ce3c8,'def':_0x3ae466,'nonInteractive':_0x2ef1f3[_0x595493(0x1c1)],'defaultPageSize':_0x2ef1f3[_0x595493(0x1c4)],'defaultVerbose':_0x2ef1f3[_0x595493(0x1ce)],'apiDir':_0x237222,'selectedAppName':_0x2ef1f3[_0x595493(0x1cc)],'args':_0x2ef1f3[_0x595493(0x1b3)]??[]});_0x3ae466[_0x595493(0x1e3)]&&await _0x3ae466['validate'](_0x3b12ba);if(_0x4ce3c8[_0x595493(0x1d0)]){if(!_0x3ae466[_0x595493(0x1b5)])throw CliErrors[_0x595493(0x1ea)]('--dry-run\x20is\x20not\x20supported\x20for\x20`'+_0x3fad32+'`.');const _0x4ad316=await _0x3ae466[_0x595493(0x1b5)](_0x3b12ba);formatOutput({'ok':!![],'data':_0x4ad316},{'command':_0x3fad32,'risk':_0x3ae466[_0x595493(0x1e9)],'format':_0x2af489,'dryRun':!![]});return;}if(_0x3ae466[_0x595493(0x1e9)]===_0x595493(0x1aa)&&!_0x4ce3c8[_0x595493(0x1d4)]){if(_0x2ef1f3[_0x595493(0x1c1)])throw CliErrors['validation'](_0x595493(0x1af)+_0x3fad32+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x3fad32);}const _0x5a7752=await _0x3ae466[_0x595493(0x1b1)](_0x3b12ba);formatOutput(_0x5a7752,{'command':_0x3fad32,'risk':_0x3ae466[_0x595493(0x1e9)],'format':_0x2af489});}function buildRuntimeContext(_0x32b9a0){const _0x2f994e=a107_0x579c,{flags:_0x406e3a,def:_0x1351e}=_0x32b9a0,_0x1807d3=CLI_BIN_NAME+'\x20'+_0x1351e[_0x2f994e(0x1d7)]+'\x20'+_0x1351e[_0x2f994e(0x1cf)];return{'appCode':_0x32b9a0[_0x2f994e(0x1ca)],'cookie':_0x32b9a0['cookie'],'apiDomain':_0x32b9a0[_0x2f994e(0x1de)],'format':_0x32b9a0[_0x2f994e(0x1a8)],'nonInteractive':_0x32b9a0[_0x2f994e(0x1a9)],'apiDir':_0x32b9a0[_0x2f994e(0x1cd)],'selectedAppName':_0x32b9a0[_0x2f994e(0x1cc)],'args':_0x32b9a0[_0x2f994e(0x1b3)],'str'(_0x26402b){return String(_0x406e3a[_0x26402b]??'');},'bool'(_0x34629b){const _0x5b644e=_0x2f994e;if(_0x406e3a[_0x34629b]===!![])return!![];if(_0x34629b===_0x5b644e(0x1e0)&&_0x32b9a0[_0x5b644e(0x1ce)])return!![];return![];},'num'(_0x3e1940,_0x1b2762){const _0x190750=_0x2f994e,_0xa14301=_0x406e3a[_0x3e1940];if(typeof _0xa14301===_0x190750(0x1ec))return _0xa14301;if(_0x3e1940===_0x190750(0x1ab)&&_0x32b9a0['defaultPageSize']!=null)return _0x32b9a0['defaultPageSize'];return _0x1b2762??0x0;},'flag'(_0xae657d){return _0x406e3a[_0xae657d];},'output'(_0x233bd4){const _0x56d113=_0x2f994e;formatOutput(_0x233bd4,{'command':_0x1807d3,'risk':_0x1351e['risk'],'format':_0x32b9a0[_0x56d113(0x1a8)]});}};}function resolveFormat(_0x4d12b7,_0x5d3d29,_0x19822c){const _0x53e64c=a107_0x579c;if(_0x5d3d29['hasFormat']===![])return _0x53e64c(0x1df);const _0x262990=_0x4d12b7[_0x53e64c(0x1a8)];if(isValidFormat(_0x262990))return _0x262990;if(_0x19822c)return _0x19822c;return _0x53e64c(0x1df);}async function requireConfirmation(_0x484c60){const _0x1be712=a107_0x579c,_0x588aba=await import(_0x1be712(0x1eb)),_0xd6c8ea=_0x588aba[_0x1be712(0x1bd)]({'input':process[_0x1be712(0x1c2)],'output':process[_0x1be712(0x1da)]});return new Promise((_0x577384,_0x149d51)=>{const _0x85a42c=_0x1be712;_0xd6c8ea['question'](_0x85a42c(0x1e8)+_0x484c60+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0xf24bf2=>{const _0x3e5fcb=_0x85a42c;_0xd6c8ea['close'](),_0xf24bf2[_0x3e5fcb(0x1a7)]()==='y'||_0xf24bf2[_0x3e5fcb(0x1a7)]()===_0x3e5fcb(0x1d4)?_0x577384():_0x149d51(CliErrors['cancelled'](_0x3e5fcb(0x1d8)));});});}function resolveAliasToCode(_0x29d8f7,_0x2d32b0,_0x3838dc,_0x5d20be){const _0x1170b8=a107_0x579c,_0x281c4b=_0x29d8f7[_0x1170b8(0x1c9)][_0x1170b8(0x1e7)](_0x2efce0=>_0x2efce0[_0x1170b8(0x1b8)]===_0x1170b8(0x1e6)&&_0x2efce0[_0x1170b8(0x1e1)]==='string'),_0x2755d3=_0x29d8f7[_0x1170b8(0x1c9)][_0x1170b8(0x1e7)](_0x2b3af6=>_0x2b3af6[_0x1170b8(0x1b8)]==='alias'&&_0x2b3af6[_0x1170b8(0x1e1)]==='string');if(!_0x281c4b||!_0x2755d3)return;const _0x5c351a=_0x2d32b0[_0x1170b8(0x1e6)]?String(_0x2d32b0[_0x1170b8(0x1e6)]):'',_0x395166=_0x2d32b0[_0x1170b8(0x1d3)]?String(_0x2d32b0[_0x1170b8(0x1d3)]):'';if(!_0x5c351a&&!_0x395166)throw CliErrors[_0x1170b8(0x1ea)]('`'+_0x5d20be+_0x1170b8(0x1bc));if(_0x395166&&!_0x5c351a){const _0xe034ab=resolveAlias(_0x3838dc,_0x395166);if(!_0xe034ab){const _0x5b679d=listAliases(_0x3838dc)[_0x1170b8(0x1b0)](_0x12a017=>_0x12a017[_0x1170b8(0x1d3)]),_0x3c0dc5=_0x5b679d[_0x1170b8(0x1dd)]?_0x1170b8(0x1e4)+_0x5b679d[_0x1170b8(0x1d1)](',\x20'):_0x1170b8(0x1ae)+_0x3838dc+_0x1170b8(0x1b6)+CLI_BIN_NAME+_0x1170b8(0x1bb);throw CliErrors[_0x1170b8(0x1ea)](_0x1170b8(0x1ee)+_0x395166+_0x1170b8(0x1dc)+_0x3c0dc5);}_0x2d32b0[_0x1170b8(0x1e6)]=_0xe034ab;}}
1
+ (function(_0x29293e,_0x1105b3){const _0x1d836e=a106_0x2311,_0x4c9d44=_0x29293e();while(!![]){try{const _0x4993d3=-parseInt(_0x1d836e(0xe0))/0x1+-parseInt(_0x1d836e(0xba))/0x2*(parseInt(_0x1d836e(0xf1))/0x3)+-parseInt(_0x1d836e(0xc4))/0x4+-parseInt(_0x1d836e(0xd2))/0x5*(-parseInt(_0x1d836e(0xee))/0x6)+parseInt(_0x1d836e(0xe5))/0x7*(parseInt(_0x1d836e(0xcf))/0x8)+-parseInt(_0x1d836e(0xbc))/0x9+parseInt(_0x1d836e(0xf8))/0xa*(parseInt(_0x1d836e(0xc1))/0xb);if(_0x4993d3===_0x1105b3)break;else _0x4c9d44['push'](_0x4c9d44['shift']());}catch(_0x5cfa53){_0x4c9d44['push'](_0x4c9d44['shift']());}}}(a106_0x59cc,0x9eec9));import{riskLevelOrder,isValidFormat}from'./types.js';import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a106_0x2311(_0x234bd7,_0x87ba59){_0x234bd7=_0x234bd7-0xb7;const _0x59cc0f=a106_0x59cc();let _0x23119e=_0x59cc0f[_0x234bd7];return _0x23119e;}import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x2dd4fb,_0x4e63c1){const _0x5acd86=a106_0x2311,_0x4a11f9=CLI_BIN_NAME+'\x20'+_0x2dd4fb['service']+'\x20'+_0x2dd4fb['command'],_0x2c1d59=parseFlags(_0x2dd4fb['flags'],_0x4e63c1[_0x5acd86(0xbb)]);validateFlags(_0x2dd4fb['flags'],_0x2c1d59,_0x4a11f9);if(!_0x2c1d59['dry-run']&&_0x4e63c1[_0x5acd86(0xea)]&&riskLevelOrder(_0x2dd4fb[_0x5acd86(0xbf)])>riskLevelOrder(_0x4e63c1[_0x5acd86(0xea)])){if(_0x4e63c1[_0x5acd86(0xc6)])throw CliErrors[_0x5acd86(0xbd)](_0x5acd86(0xc5)+_0x4a11f9+_0x5acd86(0xc7)+_0x2dd4fb['risk']+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x4e63c1[_0x5acd86(0xea)]+'\x22.');throw CliErrors[_0x5acd86(0xbd)](_0x5acd86(0xc5)+_0x4a11f9+'`\x20has\x20risk\x20level\x20\x22'+_0x2dd4fb[_0x5acd86(0xbf)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x4e63c1['riskLevel']+_0x5acd86(0xd5)+('\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22'+_0x2dd4fb[_0x5acd86(0xbf)]+_0x5acd86(0xe1)));}const _0x5462f3=_0x4e63c1[_0x5acd86(0xdb)]||_0x5acd86(0xe8);resolveAliasToCode(_0x2dd4fb,_0x2c1d59,_0x5462f3,_0x4a11f9);let _0x4fd0fb='';if(_0x2dd4fb[_0x5acd86(0xcd)]!==![]){_0x4fd0fb=_0x4e63c1[_0x5acd86(0xc9)]();if(!_0x4fd0fb)throw CliErrors[_0x5acd86(0xc2)]();const {setActiveCookie:_0x4dcd16}=await import('../core/api-client.js');_0x4dcd16(_0x4fd0fb);}let _0x536401='';if(_0x2dd4fb['requiresAppCode']!==![]){_0x536401=_0x4e63c1[_0x5acd86(0xd8)]()??'';if(!_0x536401)throw CliErrors[_0x5acd86(0xdf)](_0x5acd86(0xca)+CLI_BIN_NAME+_0x5acd86(0xdc));}const _0x394589=resolveFormat(_0x2c1d59,_0x2dd4fb,_0x4e63c1[_0x5acd86(0xf0)]),_0x5876c3=buildRuntimeContext({'appCode':_0x536401,'cookie':_0x4fd0fb,'apiDomain':_0x4e63c1['resolveApiDomain'](),'format':_0x394589,'flags':_0x2c1d59,'def':_0x2dd4fb,'nonInteractive':_0x4e63c1[_0x5acd86(0xc6)],'defaultPageSize':_0x4e63c1[_0x5acd86(0xf5)],'defaultVerbose':_0x4e63c1['defaultVerbose'],'apiDir':_0x5462f3,'selectedAppName':_0x4e63c1[_0x5acd86(0xda)],'args':_0x4e63c1[_0x5acd86(0xe4)]??[]});_0x2dd4fb[_0x5acd86(0xf9)]&&await _0x2dd4fb[_0x5acd86(0xf9)](_0x5876c3);if(_0x2c1d59[_0x5acd86(0xd1)]){if(!_0x2dd4fb[_0x5acd86(0xcc)])throw CliErrors[_0x5acd86(0xbd)](_0x5acd86(0xfe)+_0x4a11f9+'`.');const _0x3d556d=await _0x2dd4fb[_0x5acd86(0xcc)](_0x5876c3);formatOutput({'ok':!![],'data':_0x3d556d},{'command':_0x4a11f9,'risk':_0x2dd4fb[_0x5acd86(0xbf)],'format':_0x394589,'dryRun':!![]});return;}if(_0x2dd4fb['risk']===_0x5acd86(0xed)&&!_0x2c1d59[_0x5acd86(0xfb)]){if(_0x4e63c1[_0x5acd86(0xc6)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x4a11f9+_0x5acd86(0xe3));await requireConfirmation(_0x4a11f9);}const _0xd017f5=await _0x2dd4fb[_0x5acd86(0xc8)](_0x5876c3);formatOutput(_0xd017f5,{'command':_0x4a11f9,'risk':_0x2dd4fb[_0x5acd86(0xbf)],'format':_0x394589});}function buildRuntimeContext(_0x1c074a){const _0x287313=a106_0x2311,{flags:_0x5272d1,def:_0x250997}=_0x1c074a,_0x28c631=CLI_BIN_NAME+'\x20'+_0x250997[_0x287313(0xe6)]+'\x20'+_0x250997[_0x287313(0xe7)];return{'appCode':_0x1c074a[_0x287313(0xb9)],'cookie':_0x1c074a[_0x287313(0xf4)],'apiDomain':_0x1c074a[_0x287313(0xec)],'format':_0x1c074a[_0x287313(0xbe)],'nonInteractive':_0x1c074a['nonInteractive'],'apiDir':_0x1c074a[_0x287313(0xdb)],'selectedAppName':_0x1c074a[_0x287313(0xda)],'args':_0x1c074a[_0x287313(0xe4)],'str'(_0x2e4d87){return String(_0x5272d1[_0x2e4d87]??'');},'bool'(_0x14ba13){const _0x55d53f=_0x287313;if(_0x5272d1[_0x14ba13]===!![])return!![];if(_0x14ba13==='verbose'&&_0x1c074a[_0x55d53f(0xfc)])return!![];return![];},'num'(_0x4d9eba,_0x1772e9){const _0x4cb91b=_0x287313,_0x296470=_0x5272d1[_0x4d9eba];if(typeof _0x296470===_0x4cb91b(0xce))return _0x296470;if(_0x4d9eba==='pagesize'&&_0x1c074a[_0x4cb91b(0xf5)]!=null)return _0x1c074a[_0x4cb91b(0xf5)];return _0x1772e9??0x0;},'flag'(_0x27be45){return _0x5272d1[_0x27be45];},'output'(_0x3af7ea){const _0x1fe88c=_0x287313;formatOutput(_0x3af7ea,{'command':_0x28c631,'risk':_0x250997[_0x1fe88c(0xbf)],'format':_0x1c074a['format']});}};}function resolveFormat(_0x35f5f4,_0x48f7fd,_0x237842){const _0x56b54c=a106_0x2311;if(_0x48f7fd['hasFormat']===![])return _0x56b54c(0xef);const _0x349f9a=_0x35f5f4[_0x56b54c(0xbe)];if(isValidFormat(_0x349f9a))return _0x349f9a;if(_0x237842)return _0x237842;return _0x56b54c(0xef);}async function requireConfirmation(_0x90d1dd){const _0x1358ae=a106_0x2311,_0xa8920b=await import('node:readline'),_0x5ae0eb=_0xa8920b[_0x1358ae(0xd9)]({'input':process['stdin'],'output':process[_0x1358ae(0xfd)]});return new Promise((_0x423284,_0x18a5c4)=>{const _0x196c2b=_0x1358ae;_0x5ae0eb[_0x196c2b(0xde)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x90d1dd+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x22d6ba=>{const _0x3bcc10=_0x196c2b;_0x5ae0eb[_0x3bcc10(0xd4)](),_0x22d6ba['toLowerCase']()==='y'||_0x22d6ba[_0x3bcc10(0xcb)]()===_0x3bcc10(0xfb)?_0x423284():_0x18a5c4(CliErrors[_0x3bcc10(0xeb)](_0x3bcc10(0xd6)));});});}function resolveAliasToCode(_0x2e590f,_0x321930,_0x376075,_0x2ab391){const _0x1f38a0=a106_0x2311,_0x105940=_0x2e590f[_0x1f38a0(0xe2)][_0x1f38a0(0xe9)](_0x5c86ca=>_0x5c86ca[_0x1f38a0(0xd0)]===_0x1f38a0(0xf3)&&_0x5c86ca[_0x1f38a0(0xdd)]===_0x1f38a0(0xd3)),_0x47400b=_0x2e590f['flags']['some'](_0x56b72b=>_0x56b72b[_0x1f38a0(0xd0)]===_0x1f38a0(0xf2)&&_0x56b72b[_0x1f38a0(0xdd)]===_0x1f38a0(0xd3));if(!_0x105940||!_0x47400b)return;const _0x5a406c=_0x321930[_0x1f38a0(0xf3)]?String(_0x321930[_0x1f38a0(0xf3)]):'',_0x206910=_0x321930['alias']?String(_0x321930['alias']):'';if(!_0x5a406c&&!_0x206910)throw CliErrors['validation']('`'+_0x2ab391+_0x1f38a0(0xd7));if(_0x206910&&!_0x5a406c){const _0x5afcf0=resolveAlias(_0x376075,_0x206910);if(!_0x5afcf0){const _0x11868d=listAliases(_0x376075)[_0x1f38a0(0xb8)](_0x6024ac=>_0x6024ac[_0x1f38a0(0xf2)]),_0x2518b=_0x11868d[_0x1f38a0(0xf7)]?_0x1f38a0(0xf6)+_0x11868d['join'](',\x20'):_0x1f38a0(0xb7)+_0x376075+'.\x20Run\x20`'+CLI_BIN_NAME+_0x1f38a0(0xc3);throw CliErrors[_0x1f38a0(0xbd)](_0x1f38a0(0xfa)+_0x206910+_0x1f38a0(0xc0)+_0x2518b);}_0x321930[_0x1f38a0(0xf3)]=_0x5afcf0;}}function a106_0x59cc(){const _0x12fe67=['stderr','--dry-run\x20is\x20not\x20supported\x20for\x20`','No\x20api.ts\x20found\x20in\x20','map','appCode','116bZlsZN','rawFlags','8954028eWhqhI','validation','format','risk','\x22.\x20','36322jnGcjF','authRequired','\x20api\x20pull`\x20first.','1976660YpIiRQ','Command\x20`','isNonInteractive','`\x20has\x20risk\x20level\x20\x22','execute','resolveCookie','Set\x20appcode\x20via\x20`','toLowerCase','dryRun','requiresAuth','number','8gWgkoA','name','dry-run','18015zbRuLJ','string','close','\x22.\x0a','Operation\x20cancelled\x20by\x20user.','`\x20requires\x20either\x20--code\x20or\x20--alias.','resolveAppCode','createInterface','selectedAppName','apiDir','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','type','question','configMissing','1092854IYiULQ','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','flags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','args','4098283JpgtmQ','service','command','./src/api','some','riskLevel','cancelled','apiDomain','high-risk-write','2010hsdtAA','pretty','defaultFormat','36171lWJjpw','alias','code','cookie','defaultPageSize','Available\x20aliases:\x20','length','6480wYOjJd','validate','Unknown\x20alias\x20\x22','yes','defaultVerbose'];a106_0x59cc=function(){return _0x12fe67;};return a106_0x59cc();}
@@ -1 +1 @@
1
- (function(_0x4a4b71,_0x4fc9a){const _0x2f4481=a108_0x9f0a,_0x6b1ca7=_0x4a4b71();while(!![]){try{const _0x263328=parseInt(_0x2f4481(0x13f))/0x1+parseInt(_0x2f4481(0x138))/0x2*(-parseInt(_0x2f4481(0x141))/0x3)+parseInt(_0x2f4481(0x13a))/0x4+-parseInt(_0x2f4481(0x139))/0x5*(parseInt(_0x2f4481(0x13b))/0x6)+parseInt(_0x2f4481(0x13e))/0x7+parseInt(_0x2f4481(0x13c))/0x8*(parseInt(_0x2f4481(0x140))/0x9)+-parseInt(_0x2f4481(0x143))/0xa;if(_0x263328===_0x4fc9a)break;else _0x6b1ca7['push'](_0x6b1ca7['shift']());}catch(_0x254e22){_0x6b1ca7['push'](_0x6b1ca7['shift']());}}}(a108_0x5cc3,0xee007));export function riskLevelOrder(_0xacee61){const _0x1e0c19=a108_0x9f0a,_0x590792={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x590792[_0xacee61??_0x1e0c19(0x142)]??0x0;}export function isValidFormat(_0x91264a){const _0x10629b=a108_0x9f0a;return _0x91264a===_0x10629b(0x13d)||_0x91264a===_0x10629b(0x137)||_0x91264a==='table';}function a108_0x9f0a(_0x456021,_0x8ce13e){_0x456021=_0x456021-0x137;const _0x5cc38b=a108_0x5cc3();let _0x9f0ada=_0x5cc38b[_0x456021];return _0x9f0ada;}function a108_0x5cc3(){const _0x1c5c4e=['79311jQxZbn','read','11789680YqiFwj','pretty','74ZIAddM','4755910CSdEUr','5827968rGbtWp','6aqISxC','907064StEMQd','json','3883320hWPVMc','824209jTsQZD','99KPiyiM'];a108_0x5cc3=function(){return _0x1c5c4e;};return a108_0x5cc3();}
1
+ function a107_0x204f(){const _0x13739c=['445826lbcpCq','6689168ozciFn','6235544mzMZmt','725352LkEeor','pretty','8VpDGdC','794040QyHYjf','27yZWhCz','20923960IClahP','11782863gMACZs','54cTisEV'];a107_0x204f=function(){return _0x13739c;};return a107_0x204f();}function a107_0x201b(_0x1b6e99,_0x37d7ca){_0x1b6e99=_0x1b6e99-0x182;const _0x204f8c=a107_0x204f();let _0x201bc8=_0x204f8c[_0x1b6e99];return _0x201bc8;}(function(_0x225969,_0x33986a){const _0x3ec84f=a107_0x201b,_0x2c586a=_0x225969();while(!![]){try{const _0x48aa10=parseInt(_0x3ec84f(0x18b))/0x1*(-parseInt(_0x3ec84f(0x185))/0x2)+parseInt(_0x3ec84f(0x187))/0x3*(parseInt(_0x3ec84f(0x183))/0x4)+-parseInt(_0x3ec84f(0x186))/0x5*(parseInt(_0x3ec84f(0x18a))/0x6)+parseInt(_0x3ec84f(0x182))/0x7+parseInt(_0x3ec84f(0x18c))/0x8+-parseInt(_0x3ec84f(0x189))/0x9+parseInt(_0x3ec84f(0x188))/0xa;if(_0x48aa10===_0x33986a)break;else _0x2c586a['push'](_0x2c586a['shift']());}catch(_0x346f46){_0x2c586a['push'](_0x2c586a['shift']());}}}(a107_0x204f,0xe2f39));export function riskLevelOrder(_0x49a6ac){const _0x979d98={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x979d98[_0x49a6ac??'read']??0x0;}export function isValidFormat(_0x21c9bd){const _0x40597f=a107_0x201b;return _0x21c9bd==='json'||_0x21c9bd===_0x40597f(0x184)||_0x21c9bd==='table';}
@@ -1 +1 @@
1
- const a109_0x477070=a109_0x5343;(function(_0x4307a5,_0x243e1d){const _0x3e8beb=a109_0x5343,_0x4a5b91=_0x4307a5();while(!![]){try{const _0x5ad213=parseInt(_0x3e8beb(0xdf))/0x1*(-parseInt(_0x3e8beb(0xe5))/0x2)+parseInt(_0x3e8beb(0xe1))/0x3*(-parseInt(_0x3e8beb(0xe3))/0x4)+parseInt(_0x3e8beb(0xe6))/0x5*(-parseInt(_0x3e8beb(0xea))/0x6)+parseInt(_0x3e8beb(0xe7))/0x7+-parseInt(_0x3e8beb(0xe0))/0x8+parseInt(_0x3e8beb(0xe4))/0x9+parseInt(_0x3e8beb(0xe8))/0xa;if(_0x5ad213===_0x243e1d)break;else _0x4a5b91['push'](_0x4a5b91['shift']());}catch(_0x514e73){_0x4a5b91['push'](_0x4a5b91['shift']());}}}(a109_0x2b61,0x52b3f));function a109_0x5343(_0x58cb98,_0xa00e63){_0x58cb98=_0x58cb98-0xdf;const _0x2b6160=a109_0x2b61();let _0x53433c=_0x2b6160[_0x58cb98];return _0x53433c;}export const VERSION='2.0.6';export const GIT_TAG=a109_0x477070(0xe2);export const GIT_COMMIT=a109_0x477070(0xe9);function a109_0x2b61(){const _0xcf61b7=['30ALOqEs','1597dmINaK','3291944fsjMkO','655278KsqJEY','v2.0.6','8vddlNQ','4707369EAEVsy','798lZNpYV','370630xLaKEk','2208626gTYoXj','13563700sMnJZz','3f0fc12'];a109_0x2b61=function(){return _0xcf61b7;};return a109_0x2b61();}export const BUILD_TIME='2026-04-03T10:10:20.682Z';
1
+ const a108_0xe45b12=a108_0x5c6b;function a108_0x327a(){const _0x39565e=['2888391gYMOJJ','690982wEeGlK','30LhyMPm','156lyObHe','18Zlzhgp','803316xafMFg','8tGFkXR','602545btFNtY','4907yzgeLG','1609592bDRXNd','211480UyhGeP','v2.0.7','2026-04-03T15:54:59.410Z'];a108_0x327a=function(){return _0x39565e;};return a108_0x327a();}function a108_0x5c6b(_0x3d52f7,_0x129572){_0x3d52f7=_0x3d52f7-0x19b;const _0x327a7b=a108_0x327a();let _0x5c6be4=_0x327a7b[_0x3d52f7];return _0x5c6be4;}(function(_0x38a5ea,_0x5cd467){const _0x59cc0c=a108_0x5c6b,_0x3aebd1=_0x38a5ea();while(!![]){try{const _0x25a672=-parseInt(_0x59cc0c(0x19c))/0x1+parseInt(_0x59cc0c(0x1a0))/0x2+parseInt(_0x59cc0c(0x1a4))/0x3+-parseInt(_0x59cc0c(0x1a5))/0x4*(-parseInt(_0x59cc0c(0x1a6))/0x5)+parseInt(_0x59cc0c(0x1a2))/0x6*(-parseInt(_0x59cc0c(0x1a7))/0x7)+parseInt(_0x59cc0c(0x19b))/0x8*(parseInt(_0x59cc0c(0x1a3))/0x9)+-parseInt(_0x59cc0c(0x1a1))/0xa*(parseInt(_0x59cc0c(0x19f))/0xb);if(_0x25a672===_0x5cd467)break;else _0x3aebd1['push'](_0x3aebd1['shift']());}catch(_0x26b223){_0x3aebd1['push'](_0x3aebd1['shift']());}}}(a108_0x327a,0x3a67e));export const VERSION='2.0.7';export const GIT_TAG=a108_0xe45b12(0x19d);export const GIT_COMMIT='11fd927';export const BUILD_TIME=a108_0xe45b12(0x19e);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a110_0x284d(_0x39de38,_0x298fb0){_0x39de38=_0x39de38-0xaf;var _0x90e686=a110_0x90e6();var _0x284daf=_0x90e686[_0x39de38];return _0x284daf;}(function(_0x4f5190,_0x4d8921){var _0x3f080f=a110_0x284d,_0x50868f=_0x4f5190();while(!![]){try{var _0x515f25=parseInt(_0x3f080f(0xb5))/0x1+-parseInt(_0x3f080f(0xb1))/0x2+-parseInt(_0x3f080f(0xbd))/0x3+parseInt(_0x3f080f(0xbb))/0x4*(parseInt(_0x3f080f(0xb0))/0x5)+-parseInt(_0x3f080f(0xb7))/0x6*(-parseInt(_0x3f080f(0xaf))/0x7)+-parseInt(_0x3f080f(0xb4))/0x8+-parseInt(_0x3f080f(0xb6))/0x9*(-parseInt(_0x3f080f(0xb9))/0xa);if(_0x515f25===_0x4d8921)break;else _0x50868f['push'](_0x50868f['shift']());}catch(_0x29b688){_0x50868f['push'](_0x50868f['shift']());}}}(a110_0x90e6,0x655cb));import a110_0x1a75b9 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4ffabd=a110_0x284d;console[_0x4ffabd(0xb3)](),console[_0x4ffabd(0xb3)](a110_0x1a75b9[_0x4ffabd(0xb8)][_0x4ffabd(0xba)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4ffabd(0xb3)](),console['log'](_0x4ffabd(0xbc)+a110_0x1a75b9[_0x4ffabd(0xb8)][_0x4ffabd(0xba)](CLI_BIN_NAME+_0x4ffabd(0xb2))+'\x20to\x20view\x20available\x20commands.'),console['log']();}function a110_0x90e6(){var _0x32621a=['1304288MMJwyH','\x20--help','log','5546224YVjmGy','742391XfTCHw','2403nTfJBA','48XPsRsd','green','9770pKlElg','bold','64EzGxqJ','\x20\x20Use\x20','1157787vHXZfU','537236avCxHe','165405kjQGgq'];a110_0x90e6=function(){return _0x32621a;};return a110_0x90e6();}
1
+ function a109_0x46a8(){var _0x5997ea=['\x20to\x20view\x20available\x20commands.','log','8gLEHCE','bold','474990kzrHNK','\x20\x20Use\x20','green','\x20--help','730989gIrBgn','1070030lhsXju','349JUqiLH','2223318gWIhGb','4666669KizjkG','22779nllpUL','4036ZBavFe','432kCoyVm'];a109_0x46a8=function(){return _0x5997ea;};return a109_0x46a8();}function a109_0x3aae(_0x29fc09,_0x12d66f){_0x29fc09=_0x29fc09-0xcf;var _0x46a8e7=a109_0x46a8();var _0x3aae81=_0x46a8e7[_0x29fc09];return _0x3aae81;}(function(_0x3b9a23,_0x234cf6){var _0x85feee=a109_0x3aae,_0x1d48cd=_0x3b9a23();while(!![]){try{var _0x149060=-parseInt(_0x85feee(0xd8))/0x1*(parseInt(_0x85feee(0xdc))/0x2)+-parseInt(_0x85feee(0xd6))/0x3*(-parseInt(_0x85feee(0xd0))/0x4)+parseInt(_0x85feee(0xd2))/0x5+-parseInt(_0x85feee(0xd9))/0x6+parseInt(_0x85feee(0xda))/0x7+-parseInt(_0x85feee(0xdd))/0x8*(-parseInt(_0x85feee(0xdb))/0x9)+parseInt(_0x85feee(0xd7))/0xa;if(_0x149060===_0x234cf6)break;else _0x1d48cd['push'](_0x1d48cd['shift']());}catch(_0x42afc9){_0x1d48cd['push'](_0x1d48cd['shift']());}}}(a109_0x46a8,0x66029));import a109_0x1150a7 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x8c6435=a109_0x3aae;console[_0x8c6435(0xcf)](),console[_0x8c6435(0xcf)](a109_0x1150a7[_0x8c6435(0xd4)][_0x8c6435(0xd1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x8c6435(0xcf)](),console[_0x8c6435(0xcf)](_0x8c6435(0xd3)+a109_0x1150a7['green'][_0x8c6435(0xd1)](CLI_BIN_NAME+_0x8c6435(0xd5))+_0x8c6435(0xde)),console['log']();}
@@ -1 +1 @@
1
- const a112_0x148c58=a112_0x1c5f;function a112_0x1c5f(_0x3acfa7,_0x47917a){_0x3acfa7=_0x3acfa7-0x182;const _0x313911=a112_0x3139();let _0x1c5f0f=_0x313911[_0x3acfa7];return _0x1c5f0f;}(function(_0x37d387,_0xf25355){const _0x10f6d5=a112_0x1c5f,_0x5275ee=_0x37d387();while(!![]){try{const _0x41bdb3=-parseInt(_0x10f6d5(0x18b))/0x1*(-parseInt(_0x10f6d5(0x1aa))/0x2)+parseInt(_0x10f6d5(0x19d))/0x3+-parseInt(_0x10f6d5(0x1a9))/0x4*(parseInt(_0x10f6d5(0x18f))/0x5)+-parseInt(_0x10f6d5(0x19a))/0x6*(-parseInt(_0x10f6d5(0x18a))/0x7)+parseInt(_0x10f6d5(0x19f))/0x8*(parseInt(_0x10f6d5(0x1a4))/0x9)+parseInt(_0x10f6d5(0x19e))/0xa*(parseInt(_0x10f6d5(0x190))/0xb)+-parseInt(_0x10f6d5(0x199))/0xc*(parseInt(_0x10f6d5(0x191))/0xd);if(_0x41bdb3===_0xf25355)break;else _0x5275ee['push'](_0x5275ee['shift']());}catch(_0x389753){_0x5275ee['push'](_0x5275ee['shift']());}}}(a112_0x3139,0xd03cb));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0xc9207b){const _0x5ac16f=a112_0x1c5f,_0x29e59c=[];for(const [_0x381059,_0x1f0404]of Object[_0x5ac16f(0x1a5)](_0xc9207b)){if(_0x1f0404===!![]){const _0x113199=_0x381059[_0x5ac16f(0x192)](/([A-Z])/g,_0x5ac16f(0x185))[_0x5ac16f(0x1a2)]();_0x29e59c['push'](_0x113199);}}return _0x29e59c;}export function parseDynamicFlags(){const _0x2208b1=a112_0x1c5f,_0x489a82=[];for(let _0x5bffde=0x3;_0x5bffde<process[_0x2208b1(0x1a7)]['length'];_0x5bffde++){const _0x542422=process['argv'][_0x5bffde];if(_0x542422&&_0x542422['startsWith']('--')){const _0x3b6f4e=_0x542422[_0x2208b1(0x18e)](0x2);_0x3b6f4e&&!_0x3b6f4e['includes']('=')&&_0x489a82[_0x2208b1(0x186)](_0x3b6f4e);}}return _0x489a82;}export function getAllProvidedFlags(_0x43b071){const _0x5e71e9=a112_0x1c5f,_0x43b85d=camelCaseFlagsToKebab(_0x43b071),_0x4321e3=parseDynamicFlags(),_0x55bed9=new Set([..._0x43b85d,..._0x4321e3]);return Array[_0x5e71e9(0x1a0)](_0x55bed9);}export function normalizeLegacyBffSaveFlags(_0xdbbae0){const _0x2e3d17=a112_0x1c5f,_0x5d58e8=new Set(_0xdbbae0);return _0x5d58e8[_0x2e3d17(0x183)]('dangerously-bff-save')&&_0x5d58e8[_0x2e3d17(0x19b)]('enable-bff-save'),Array[_0x2e3d17(0x1a0)](_0x5d58e8);}const SKILLS_INSTALL_COMMAND_LINE=a112_0x148c58(0x187);export async function skillsCommand(_0x4a3162,_0x2f3fca,_0x552164){const _0x14f636=a112_0x148c58;logger['setLogPath'](process[_0x14f636(0x195)]());if(_0x552164?.[_0x14f636(0x182)]||_0x4a3162===_0x14f636(0x189)){showHelp();return;}console['error'](_0x14f636(0x194)+(_0x4a3162||_0x14f636(0x1a1))),console[_0x14f636(0x198)](_0x14f636(0x18c)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x14f636(0x196)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x14f636(0x193)),console[_0x14f636(0x198)](''),console['log'](_0x14f636(0x184)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x14f636(0x197)](_0x14f636(0x18d),_0x14f636(0x188)+_0x4a3162),process['exit'](0x1);}function a112_0x3139(){const _0x3a9094=['1460041hRhoCc','13PAaTtt','replace','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','Error:\x20Unsupported\x20command:\x20','cwd','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','error','log','33589092IYROdP','33882ppfxaQ','add','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','3250818dQMacL','40abDveB','8NlzmHJ','from','(empty)','toLowerCase','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','6845436kxrQsL','entries','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','argv','\x20skill\x20--help\x0a\x20\x20','1988blKsIZ','68fMzaCN','help','has','Equivalent\x20command:\x20','-$1','push','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','不支持的命令:\x20','--help','1848PVzqfJ','42853mvZPxi','\x0aAvailable\x20commands:','skill','slice','16810UNDGmO'];a112_0x3139=function(){return _0x3a9094;};return a112_0x3139();}function showHelp(){const _0x759de3=a112_0x148c58;console['log'](_0x759de3(0x1a3)+CLI_BIN_NAME+_0x759de3(0x1a8)+CLI_BIN_NAME+_0x759de3(0x1a6)+SKILLS_INSTALL_COMMAND_LINE+_0x759de3(0x19c));}
1
+ (function(_0x3e416a,_0x48f26e){const _0x391f66=a110_0x3934,_0x53a9ac=_0x3e416a();while(!![]){try{const _0x1fdfad=-parseInt(_0x391f66(0x8b))/0x1*(parseInt(_0x391f66(0x8a))/0x2)+parseInt(_0x391f66(0xa4))/0x3+-parseInt(_0x391f66(0x9b))/0x4+parseInt(_0x391f66(0x9a))/0x5*(parseInt(_0x391f66(0xa7))/0x6)+parseInt(_0x391f66(0x93))/0x7*(parseInt(_0x391f66(0xa2))/0x8)+parseInt(_0x391f66(0xa8))/0x9+-parseInt(_0x391f66(0x99))/0xa;if(_0x1fdfad===_0x48f26e)break;else _0x53a9ac['push'](_0x53a9ac['shift']());}catch(_0x2f2983){_0x53a9ac['push'](_0x53a9ac['shift']());}}}(a110_0x27e2,0x380e4));function a110_0x3934(_0x317b7b,_0x116996){_0x317b7b=_0x317b7b-0x88;const _0x27e2ea=a110_0x27e2();let _0x3934ed=_0x27e2ea[_0x317b7b];return _0x3934ed;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x585baa){const _0x15ace1=a110_0x3934,_0x465950=[];for(const [_0x45dc11,_0x52a95f]of Object[_0x15ace1(0x98)](_0x585baa)){if(_0x52a95f===!![]){const _0x2b932c=_0x45dc11[_0x15ace1(0x97)](/([A-Z])/g,_0x15ace1(0x88))['toLowerCase']();_0x465950['push'](_0x2b932c);}}return _0x465950;}export function parseDynamicFlags(){const _0x5b8e64=a110_0x3934,_0x362651=[];for(let _0x210fbb=0x3;_0x210fbb<process[_0x5b8e64(0xa1)][_0x5b8e64(0x8d)];_0x210fbb++){const _0x4cf6c9=process['argv'][_0x210fbb];if(_0x4cf6c9&&_0x4cf6c9[_0x5b8e64(0x9e)]('--')){const _0x3756df=_0x4cf6c9[_0x5b8e64(0xa0)](0x2);_0x3756df&&!_0x3756df[_0x5b8e64(0xaa)]('=')&&_0x362651[_0x5b8e64(0x8c)](_0x3756df);}}return _0x362651;}export function getAllProvidedFlags(_0x5459d4){const _0x458fe2=camelCaseFlagsToKebab(_0x5459d4),_0x52bf41=parseDynamicFlags(),_0x1cb03a=new Set([..._0x458fe2,..._0x52bf41]);return Array['from'](_0x1cb03a);}export function normalizeLegacyBffSaveFlags(_0xb3bb38){const _0x4008fd=a110_0x3934,_0x1b6286=new Set(_0xb3bb38);return _0x1b6286[_0x4008fd(0x89)]('dangerously-bff-save')&&_0x1b6286[_0x4008fd(0x95)](_0x4008fd(0x91)),Array[_0x4008fd(0x9f)](_0x1b6286);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x59dfbe,_0x2a0d5f,_0x4cdb6a){const _0x15346b=a110_0x3934;logger[_0x15346b(0x92)](process[_0x15346b(0xa9)]());if(_0x4cdb6a?.[_0x15346b(0x8e)]||_0x59dfbe===_0x15346b(0x94)){showHelp();return;}console[_0x15346b(0xa5)]('Error:\x20Unsupported\x20command:\x20'+(_0x59dfbe||_0x15346b(0xab))),console['log'](_0x15346b(0x9c)),console[_0x15346b(0x8f)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x15346b(0x8f)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console['log'](''),console[_0x15346b(0x8f)](_0x15346b(0xa3)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x15346b(0xa5)](_0x15346b(0x9d),_0x15346b(0xa6)+_0x59dfbe),process['exit'](0x1);}function showHelp(){const _0x3427bc=a110_0x3934;console[_0x3427bc(0x8f)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x3427bc(0x96)+SKILLS_INSTALL_COMMAND_LINE+_0x3427bc(0x90));}function a110_0x27e2(){const _0xf9ac5f=['entries','2351220BVlgfa','10MhfNxb','1118920NXWNqx','\x0aAvailable\x20commands:','skill','startsWith','from','slice','argv','304qDBPMA','Equivalent\x20command:\x20','1308477MdbIie','error','不支持的命令:\x20','1349382kpypze','370728cUifKJ','cwd','includes','(empty)','-$1','has','102822oWwEpA','5JoUaDk','push','length','help','log','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','enable-bff-save','setLogPath','13699HugGxh','--help','add','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','replace'];a110_0x27e2=function(){return _0xf9ac5f;};return a110_0x27e2();}
@@ -1 +1 @@
1
- const a113_0x37d4a9=a113_0x17b4;(function(_0x143447,_0x4d2340){const _0x44a4a6=a113_0x17b4,_0x1c71f1=_0x143447();while(!![]){try{const _0xe0d48d=parseInt(_0x44a4a6(0xfa))/0x1*(parseInt(_0x44a4a6(0xfb))/0x2)+-parseInt(_0x44a4a6(0x104))/0x3*(parseInt(_0x44a4a6(0x102))/0x4)+-parseInt(_0x44a4a6(0xfe))/0x5+-parseInt(_0x44a4a6(0x112))/0x6+parseInt(_0x44a4a6(0x101))/0x7+-parseInt(_0x44a4a6(0xf9))/0x8*(parseInt(_0x44a4a6(0x100))/0x9)+parseInt(_0x44a4a6(0x113))/0xa;if(_0xe0d48d===_0x4d2340)break;else _0x1c71f1['push'](_0x1c71f1['shift']());}catch(_0x1f7ac8){_0x1c71f1['push'](_0x1c71f1['shift']());}}}(a113_0x4821,0xedeee));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';function a113_0x17b4(_0x3e8ba7,_0x53b453){_0x3e8ba7=_0x3e8ba7-0xf7;const _0x4821f2=a113_0x4821();let _0x17b455=_0x4821f2[_0x3e8ba7];return _0x17b455;}export const NPX_SKILLS_CLI=a113_0x37d4a9(0x103);export const NPX_SKILLS_SUBCOMMAND_ADD=a113_0x37d4a9(0xfd);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a113_0x37d4a9(0xf7);function a113_0x4821(){const _0x59e65d=['16TvzrMI','166NTBJVP','12832gkCDQC','trim','add','3258675iEnvVP','npx','383607RSZZvo','7158333RdSTDg','4ZhtHDe','skills','254535vvekUC','inherit','--global','stderr','exit\x20','toString','stdout','log','join','Lovrabet','pipe','stdio','status','remove','2483832GtgORb','1226970cmDsyp','lovrabet/lovrabet-skill','unknown'];a113_0x4821=function(){return _0x59e65d;};return a113_0x4821();}export const DEFAULT_RABETBASE_SKILL_NAME=a113_0x37d4a9(0x10d);export function buildNpxSkillsAddArgv(_0x4cefd2=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x4cefd2];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a113_0x37d4a9(0xff),...buildNpxSkillsAddArgv()][a113_0x37d4a9(0x10c)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xc2af15,_0x336e2e){const _0x45eb77=a113_0x37d4a9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3e68d4=_0x336e2e?.[_0x45eb77(0x10f)]??'inherit',_0x4b4af6=resolveNpmBin('npx'),_0x30e6bb=buildNpxSkillsAddArgv(_0x336e2e?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x39a08d=[_0x4b4af6,..._0x30e6bb][_0x45eb77(0x10c)]('\x20');console[_0x45eb77(0x10b)]('*\x20'+_0x39a08d);const _0x44514c=spawnSync(_0x4b4af6,_0x30e6bb,{'cwd':_0xc2af15,'stdio':_0x3e68d4,'env':process.env,'shell':![]}),_0x31ea7c=_0x44514c[_0x45eb77(0x110)];if(_0x31ea7c===0x0)return{'ok':!![],'status':0x0};let _0x14ffb3=_0x45eb77(0x108)+(_0x31ea7c??_0x45eb77(0xf8));if(_0x3e68d4===_0x45eb77(0x10e)){const _0x3c46bf=_0x44514c['stderr']?_0x44514c['stderr'][_0x45eb77(0x109)]()[_0x45eb77(0xfc)]():'',_0x30ceda=_0x44514c[_0x45eb77(0x10a)]?_0x44514c['stdout'][_0x45eb77(0x109)]()['trim']():'';if(_0x3c46bf)_0x14ffb3=_0x3c46bf;else{if(_0x30ceda)_0x14ffb3=_0x30ceda;}}return{'ok':![],'status':_0x31ea7c??null,'error':_0x14ffb3};}export function runNpxSkillsRemove(_0x748837,_0x749ede){const _0x32716e=a113_0x37d4a9,_0x56e197=_0x749ede?.[_0x32716e(0x10f)]??_0x32716e(0x105),_0x1c950e=resolveNpmBin(_0x32716e(0xff)),_0x1d110f=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x32716e(0x111),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x749ede?.['skill']??DEFAULT_RABETBASE_SKILL_NAME],_0x57bba9=[_0x1c950e,..._0x1d110f][_0x32716e(0x10c)]('\x20');console[_0x32716e(0x10b)]('*\x20'+_0x57bba9);const _0x3d66ee=spawnSync(_0x1c950e,_0x1d110f,{'cwd':_0x748837,'stdio':_0x56e197,'env':process.env,'shell':![]}),_0x468b71=_0x3d66ee[_0x32716e(0x110)];if(_0x468b71===0x0)return{'ok':!![],'status':0x0};let _0x4336dc='exit\x20'+(_0x468b71??_0x32716e(0xf8));if(_0x56e197==='pipe'){const _0x7891c9=_0x3d66ee[_0x32716e(0x107)]?_0x3d66ee['stderr'][_0x32716e(0x109)]()[_0x32716e(0xfc)]():'',_0x211b9b=_0x3d66ee[_0x32716e(0x10a)]?_0x3d66ee[_0x32716e(0x10a)][_0x32716e(0x109)]()['trim']():'';if(_0x7891c9)_0x4336dc=_0x7891c9;else{if(_0x211b9b)_0x4336dc=_0x211b9b;}}return{'ok':![],'status':_0x468b71??null,'error':_0x4336dc};}export function runNpxSkillsAddGlobal(_0x518b35,_0x5961af,_0x2ef56){const _0x3fe02b=a113_0x37d4a9,_0x586c2a=_0x2ef56?.['stdio']??'inherit',_0x3d52a9=resolveNpmBin(_0x3fe02b(0xff)),_0x47fc5f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5961af,_0x3fe02b(0x106)],_0x32d376=[_0x3d52a9,..._0x47fc5f][_0x3fe02b(0x10c)]('\x20');console[_0x3fe02b(0x10b)]('*\x20'+_0x32d376);const _0xe7a635=spawnSync(_0x3d52a9,_0x47fc5f,{'cwd':_0x518b35,'stdio':_0x586c2a,'env':process.env,'shell':![]}),_0x1bd69e=_0xe7a635[_0x3fe02b(0x110)];if(_0x1bd69e===0x0)return{'ok':!![],'status':0x0};let _0x446e24=_0x3fe02b(0x108)+(_0x1bd69e??_0x3fe02b(0xf8));if(_0x586c2a==='pipe'){const _0x187ef9=_0xe7a635[_0x3fe02b(0x107)]?_0xe7a635[_0x3fe02b(0x107)][_0x3fe02b(0x109)]()[_0x3fe02b(0xfc)]():'',_0x339259=_0xe7a635[_0x3fe02b(0x10a)]?_0xe7a635['stdout']['toString']()[_0x3fe02b(0xfc)]():'';if(_0x187ef9)_0x446e24=_0x187ef9;else{if(_0x339259)_0x446e24=_0x339259;}}return{'ok':![],'status':_0x1bd69e??null,'error':_0x446e24};}
1
+ const a111_0x5acf9f=a111_0x3bb0;(function(_0x2a2d73,_0x3f53e9){const _0x562c6a=a111_0x3bb0,_0x293a5a=_0x2a2d73();while(!![]){try{const _0x42445d=-parseInt(_0x562c6a(0x207))/0x1+-parseInt(_0x562c6a(0x1f5))/0x2*(-parseInt(_0x562c6a(0x1f2))/0x3)+parseInt(_0x562c6a(0x200))/0x4*(-parseInt(_0x562c6a(0x1fa))/0x5)+-parseInt(_0x562c6a(0x201))/0x6+-parseInt(_0x562c6a(0x1f3))/0x7+parseInt(_0x562c6a(0x1f4))/0x8*(-parseInt(_0x562c6a(0x204))/0x9)+parseInt(_0x562c6a(0x1fe))/0xa*(parseInt(_0x562c6a(0x1fb))/0xb);if(_0x42445d===_0x3f53e9)break;else _0x293a5a['push'](_0x293a5a['shift']());}catch(_0x179292){_0x293a5a['push'](_0x293a5a['shift']());}}}(a111_0x43d3,0x47650));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a111_0x5acf9f(0x1ed);export const RABETBASE_SKILL_SOURCE=a111_0x5acf9f(0x206);function a111_0x3bb0(_0x5907fc,_0xd4fe18){_0x5907fc=_0x5907fc-0x1ed;const _0x43d3c1=a111_0x43d3();let _0x3bb0b9=_0x43d3c1[_0x5907fc];return _0x3bb0b9;}export const DEFAULT_RABETBASE_SKILL_NAME=a111_0x5acf9f(0x202);export function buildNpxSkillsAddArgv(_0x2636fa=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2636fa];}function a111_0x43d3(){const _0x5676c8=['npx','10fploEu','stdio','4DjUhFd','1241052NGmyjH','Lovrabet','inherit','117657LyUmKM','unknown','lovrabet/lovrabet-skill','438683qWwLcu','stderr','pipe','--skill','--global','status','skill','stdout','1180617AcoNWu','2231187EsHBmo','128HSwQdW','2lqtpEV','toString','trim','join','log','909745rdIPRA','13797036xQmJdv','exit\x20'];a111_0x43d3=function(){return _0x5676c8;};return a111_0x43d3();}export const NPX_SKILLS_ADD_COMMAND_LINE=[a111_0x5acf9f(0x1fd),...buildNpxSkillsAddArgv()][a111_0x5acf9f(0x1f8)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x58d4e7,_0x4bd58a){const _0x21ab1a=a111_0x5acf9f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1b3a9b=_0x4bd58a?.[_0x21ab1a(0x1ff)]??_0x21ab1a(0x203),_0x163a0f=resolveNpmBin(_0x21ab1a(0x1fd)),_0x15de19=buildNpxSkillsAddArgv(_0x4bd58a?.[_0x21ab1a(0x1f0)]??DEFAULT_RABETBASE_SKILL_NAME),_0x28e503=[_0x163a0f,..._0x15de19][_0x21ab1a(0x1f8)]('\x20');console[_0x21ab1a(0x1f9)]('*\x20'+_0x28e503);const _0x3f3285=spawnSync(_0x163a0f,_0x15de19,{'cwd':_0x58d4e7,'stdio':_0x1b3a9b,'env':process.env,'shell':![]}),_0x5c9d03=_0x3f3285[_0x21ab1a(0x1ef)];if(_0x5c9d03===0x0)return{'ok':!![],'status':0x0};let _0x72ea53=_0x21ab1a(0x1fc)+(_0x5c9d03??'unknown');if(_0x1b3a9b==='pipe'){const _0x4df919=_0x3f3285[_0x21ab1a(0x208)]?_0x3f3285[_0x21ab1a(0x208)][_0x21ab1a(0x1f6)]()[_0x21ab1a(0x1f7)]():'',_0x272e55=_0x3f3285[_0x21ab1a(0x1f1)]?_0x3f3285[_0x21ab1a(0x1f1)][_0x21ab1a(0x1f6)]()[_0x21ab1a(0x1f7)]():'';if(_0x4df919)_0x72ea53=_0x4df919;else{if(_0x272e55)_0x72ea53=_0x272e55;}}return{'ok':![],'status':_0x5c9d03??null,'error':_0x72ea53};}export function runNpxSkillsRemove(_0x2aecef,_0x6922a7){const _0x507aa4=a111_0x5acf9f,_0x435127=_0x6922a7?.[_0x507aa4(0x1ff)]??_0x507aa4(0x203),_0x3bdf5c=resolveNpmBin(_0x507aa4(0x1fd)),_0x55f65a=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x6922a7?.[_0x507aa4(0x1f0)]??DEFAULT_RABETBASE_SKILL_NAME],_0x3c4d16=[_0x3bdf5c,..._0x55f65a][_0x507aa4(0x1f8)]('\x20');console[_0x507aa4(0x1f9)]('*\x20'+_0x3c4d16);const _0x5e379e=spawnSync(_0x3bdf5c,_0x55f65a,{'cwd':_0x2aecef,'stdio':_0x435127,'env':process.env,'shell':![]}),_0x2a9b0e=_0x5e379e[_0x507aa4(0x1ef)];if(_0x2a9b0e===0x0)return{'ok':!![],'status':0x0};let _0x886dbc='exit\x20'+(_0x2a9b0e??'unknown');if(_0x435127===_0x507aa4(0x209)){const _0x56c069=_0x5e379e[_0x507aa4(0x208)]?_0x5e379e[_0x507aa4(0x208)][_0x507aa4(0x1f6)]()[_0x507aa4(0x1f7)]():'',_0x2e3029=_0x5e379e[_0x507aa4(0x1f1)]?_0x5e379e[_0x507aa4(0x1f1)]['toString']()[_0x507aa4(0x1f7)]():'';if(_0x56c069)_0x886dbc=_0x56c069;else{if(_0x2e3029)_0x886dbc=_0x2e3029;}}return{'ok':![],'status':_0x2a9b0e??null,'error':_0x886dbc};}export function runNpxSkillsAddGlobal(_0x1b9851,_0x2b1b73,_0x480572){const _0x26fc15=a111_0x5acf9f,_0x196dfe=_0x480572?.['stdio']??'inherit',_0x275be8=resolveNpmBin(_0x26fc15(0x1fd)),_0x17f848=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2b1b73,_0x26fc15(0x1ee)],_0x5418c7=[_0x275be8,..._0x17f848][_0x26fc15(0x1f8)]('\x20');console[_0x26fc15(0x1f9)]('*\x20'+_0x5418c7);const _0xe5586e=spawnSync(_0x275be8,_0x17f848,{'cwd':_0x1b9851,'stdio':_0x196dfe,'env':process.env,'shell':![]}),_0x347db0=_0xe5586e[_0x26fc15(0x1ef)];if(_0x347db0===0x0)return{'ok':!![],'status':0x0};let _0x45b52d=_0x26fc15(0x1fc)+(_0x347db0??_0x26fc15(0x205));if(_0x196dfe===_0x26fc15(0x209)){const _0x7d6ef8=_0xe5586e[_0x26fc15(0x208)]?_0xe5586e[_0x26fc15(0x208)][_0x26fc15(0x1f6)]()['trim']():'',_0x2722ad=_0xe5586e['stdout']?_0xe5586e[_0x26fc15(0x1f1)][_0x26fc15(0x1f6)]()[_0x26fc15(0x1f7)]():'';if(_0x7d6ef8)_0x45b52d=_0x7d6ef8;else{if(_0x2722ad)_0x45b52d=_0x2722ad;}}return{'ok':![],'status':_0x347db0??null,'error':_0x45b52d};}
@@ -1 +1 @@
1
- (function(_0x36d202,_0x5dcaf2){const _0x53c251=a114_0x20ff,_0x535b5c=_0x36d202();while(!![]){try{const _0x1fe017=-parseInt(_0x53c251(0x14e))/0x1*(parseInt(_0x53c251(0x158))/0x2)+parseInt(_0x53c251(0x15b))/0x3+-parseInt(_0x53c251(0x15d))/0x4*(-parseInt(_0x53c251(0x154))/0x5)+-parseInt(_0x53c251(0x15c))/0x6+parseInt(_0x53c251(0x14f))/0x7+-parseInt(_0x53c251(0x14b))/0x8*(-parseInt(_0x53c251(0x15e))/0x9)+parseInt(_0x53c251(0x15f))/0xa*(-parseInt(_0x53c251(0x15a))/0xb);if(_0x1fe017===_0x5dcaf2)break;else _0x535b5c['push'](_0x535b5c['shift']());}catch(_0x6730f2){_0x535b5c['push'](_0x535b5c['shift']());}}}(a114_0x2142,0x3c2c6));import{sendCliTraceLog}from'./send-cli-trace-log.js';function a114_0x20ff(_0x175efd,_0x2ac486){_0x175efd=_0x175efd-0x14b;const _0x214214=a114_0x2142();let _0x20ff5d=_0x214214[_0x175efd];return _0x20ff5d;}function a114_0x2142(){const _0x13e15d=['256570maOQhh','rabetbase.command','11gawJBF','1008516jXrdXX','1714962CvoXqf','1277864bOYxPh','153jcppKy','4155080bhWiEN','106728IHQPxB','error','flags','3fLMclv','3151575AVjzVU','stringify','some','test','[REDACTED]','5wUyRew','message','entries','durationMs'];a114_0x2142=function(){return _0x13e15d;};return a114_0x2142();}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x3d6875){const _0x42d8d0=a114_0x20ff;return SENSITIVE_PATTERNS[_0x42d8d0(0x151)](_0x27400a=>_0x27400a[_0x42d8d0(0x152)](_0x3d6875));}function sanitizeFlags(_0x39a19e){const _0x17656a=a114_0x20ff,_0xdf08d={};for(const [_0x5d7a6b,_0x3f3288]of Object[_0x17656a(0x156)](_0x39a19e)){isSensitiveKey(_0x5d7a6b)?_0xdf08d[_0x5d7a6b]=_0x3f3288!=null&&_0x3f3288!==''?_0x17656a(0x153):_0x3f3288:_0xdf08d[_0x5d7a6b]=_0x3f3288;}return _0xdf08d;}export async function reportCommandTrace(_0x25d9ca){const _0x571b9e=a114_0x20ff;try{const _0x481d3d=sanitizeFlags(_0x25d9ca[_0x571b9e(0x14d)]);await sendCliTraceLog({'spanName':_0x571b9e(0x159),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x25d9ca['service'],'command.name':_0x25d9ca['command'],'command.flags':JSON[_0x571b9e(0x150)](_0x481d3d),..._0x25d9ca['durationMs']!=null?{'command.duration_ms':_0x25d9ca[_0x571b9e(0x157)]}:{},..._0x25d9ca['error']?{'command.error':_0x25d9ca['error']instanceof Error?_0x25d9ca[_0x571b9e(0x14c)][_0x571b9e(0x155)]:String(_0x25d9ca[_0x571b9e(0x14c)])}:{}}});}catch{}}
1
+ (function(_0x42ad1a,_0x5b91ae){const _0x4906d4=a112_0xb242,_0xf2d13=_0x42ad1a();while(!![]){try{const _0x41d77d=parseInt(_0x4906d4(0xf6))/0x1*(parseInt(_0x4906d4(0xee))/0x2)+parseInt(_0x4906d4(0x103))/0x3*(-parseInt(_0x4906d4(0xfe))/0x4)+-parseInt(_0x4906d4(0xf9))/0x5*(parseInt(_0x4906d4(0xf2))/0x6)+parseInt(_0x4906d4(0x104))/0x7*(-parseInt(_0x4906d4(0xf7))/0x8)+parseInt(_0x4906d4(0xfc))/0x9*(-parseInt(_0x4906d4(0xfd))/0xa)+parseInt(_0x4906d4(0x102))/0xb+parseInt(_0x4906d4(0xfa))/0xc;if(_0x41d77d===_0x5b91ae)break;else _0xf2d13['push'](_0xf2d13['shift']());}catch(_0x11c16b){_0xf2d13['push'](_0xf2d13['shift']());}}}(a112_0x5afe,0x5db71));import{sendCliTraceLog}from'./send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a112_0xb242(_0x442667,_0x2eb5b7){_0x442667=_0x442667-0xed;const _0x5afe4e=a112_0x5afe();let _0xb24252=_0x5afe4e[_0x442667];return _0xb24252;}function isSensitiveKey(_0x15d4c0){const _0xf6cfde=a112_0xb242;return SENSITIVE_PATTERNS[_0xf6cfde(0xf5)](_0x4e988f=>_0x4e988f[_0xf6cfde(0x100)](_0x15d4c0));}function a112_0x5afe(){const _0x145ee6=['7htAEos','durationMs','2DMRiGE','[REDACTED]','flags','stringify','12JMOzbt','command','entries','some','116079ZMEwbc','5309976zQaQtv','service','1304645tRlbHA','27610344WUFlZk','error','7461eTysUa','5870KZMHFs','4VcfFpa','rabetbase.command','test','message','4141599CbgolK','2212095xkzkay'];a112_0x5afe=function(){return _0x145ee6;};return a112_0x5afe();}function sanitizeFlags(_0x3806da){const _0xbfa4e0=a112_0xb242,_0x59b260={};for(const [_0x3bba97,_0xcb2b27]of Object[_0xbfa4e0(0xf4)](_0x3806da)){isSensitiveKey(_0x3bba97)?_0x59b260[_0x3bba97]=_0xcb2b27!=null&&_0xcb2b27!==''?_0xbfa4e0(0xef):_0xcb2b27:_0x59b260[_0x3bba97]=_0xcb2b27;}return _0x59b260;}export async function reportCommandTrace(_0x5ad145){const _0x2ec2b5=a112_0xb242;try{const _0x2b2e7f=sanitizeFlags(_0x5ad145[_0x2ec2b5(0xf0)]);await sendCliTraceLog({'spanName':_0x2ec2b5(0xff),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5ad145[_0x2ec2b5(0xf8)],'command.name':_0x5ad145[_0x2ec2b5(0xf3)],'command.flags':JSON[_0x2ec2b5(0xf1)](_0x2b2e7f),..._0x5ad145[_0x2ec2b5(0xed)]!=null?{'command.duration_ms':_0x5ad145[_0x2ec2b5(0xed)]}:{},..._0x5ad145['error']?{'command.error':_0x5ad145[_0x2ec2b5(0xfb)]instanceof Error?_0x5ad145['error'][_0x2ec2b5(0x101)]:String(_0x5ad145[_0x2ec2b5(0xfb)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2063b9,_0x12e0a8){var _0x5b6b61=a115_0x4d66,_0x5ab768=_0x2063b9();while(!![]){try{var _0x2f5cb5=-parseInt(_0x5b6b61(0xa9))/0x1+-parseInt(_0x5b6b61(0xac))/0x2*(-parseInt(_0x5b6b61(0xb0))/0x3)+parseInt(_0x5b6b61(0xa2))/0x4*(-parseInt(_0x5b6b61(0xab))/0x5)+parseInt(_0x5b6b61(0xad))/0x6*(parseInt(_0x5b6b61(0xae))/0x7)+parseInt(_0x5b6b61(0xa5))/0x8*(parseInt(_0x5b6b61(0xa3))/0x9)+-parseInt(_0x5b6b61(0xa4))/0xa*(parseInt(_0x5b6b61(0xa8))/0xb)+parseInt(_0x5b6b61(0xa6))/0xc;if(_0x2f5cb5===_0x12e0a8)break;else _0x5ab768['push'](_0x5ab768['shift']());}catch(_0x5193b3){_0x5ab768['push'](_0x5ab768['shift']());}}}(a115_0x4fbd,0x1984f));function a115_0x4fbd(){var _0x5cf475=['681nMkyYE','error','4eSwaXp','186057VQdWGt','1710BgJeyS','16PupcRG','367320sqHXVV','Failed\x20to\x20report\x20CLI\x20help\x20trace:','12529jmzMBv','30855qYTODl','cli.help','372985OqSTdK','1318evVzHI','6PhYiPA','1282393jrdknw','service'];a115_0x4fbd=function(){return _0x5cf475;};return a115_0x4fbd();}function a115_0x4d66(_0x1e317f,_0x3c811a){_0x1e317f=_0x1e317f-0xa2;var _0x4fbd23=a115_0x4fbd();var _0x4d6620=_0x4fbd23[_0x1e317f];return _0x4d6620;}import{sendCliTraceLog}from'./send-cli-trace-log.js';export async function reportCliHelpTrace(_0x33c7dd,_0x47af25){var _0x5c3c0c=a115_0x4d66;try{await sendCliTraceLog({'spanName':_0x5c3c0c(0xaa),'logData':{'rabetbase.help.kind':_0x33c7dd,..._0x47af25?.[_0x5c3c0c(0xaf)]&&{'rabetbase.help.service':_0x47af25['service']}}});}catch(_0x3c9587){console[_0x5c3c0c(0xb1)](_0x5c3c0c(0xa7),_0x3c9587);}}
1
+ function a113_0x1970(){var _0x2fe3cd=['2107006hVqkOy','5lWMSkW','Failed\x20to\x20report\x20CLI\x20help\x20trace:','18IJBWQe','39067eijeEA','3723290lNnEnU','cli.help','2378490UxrjFv','1470915gdufRJ','280qUdkSj','541333WWWTVG','service','2oVhGrS','3546196sRAqwk'];a113_0x1970=function(){return _0x2fe3cd;};return a113_0x1970();}(function(_0x4c564a,_0x5a75f9){var _0x5e052f=a113_0x58bd,_0x1bcd80=_0x4c564a();while(!![]){try{var _0x37252a=-parseInt(_0x5e052f(0x1e6))/0x1*(-parseInt(_0x5e052f(0x1e8))/0x2)+parseInt(_0x5e052f(0x1e4))/0x3+parseInt(_0x5e052f(0x1e9))/0x4*(-parseInt(_0x5e052f(0x1eb))/0x5)+-parseInt(_0x5e052f(0x1e3))/0x6+parseInt(_0x5e052f(0x1e0))/0x7*(-parseInt(_0x5e052f(0x1e5))/0x8)+parseInt(_0x5e052f(0x1ed))/0x9*(parseInt(_0x5e052f(0x1e1))/0xa)+parseInt(_0x5e052f(0x1ea))/0xb;if(_0x37252a===_0x5a75f9)break;else _0x1bcd80['push'](_0x1bcd80['shift']());}catch(_0x1af230){_0x1bcd80['push'](_0x1bcd80['shift']());}}}(a113_0x1970,0x77847));function a113_0x58bd(_0x7504cf,_0x21319b){_0x7504cf=_0x7504cf-0x1e0;var _0x1970eb=a113_0x1970();var _0x58bd82=_0x1970eb[_0x7504cf];return _0x58bd82;}import{sendCliTraceLog}from'./send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1961c5,_0x14409e){var _0x5c8863=a113_0x58bd;try{await sendCliTraceLog({'spanName':_0x5c8863(0x1e2),'logData':{'rabetbase.help.kind':_0x1961c5,..._0x14409e?.[_0x5c8863(0x1e7)]&&{'rabetbase.help.service':_0x14409e[_0x5c8863(0x1e7)]}}});}catch(_0x359b5b){console['error'](_0x5c8863(0x1ec),_0x359b5b);}}
@@ -1 +1 @@
1
- (function(_0x55273b,_0x2b5763){const _0x28b311=a116_0x5e55,_0x3ef80d=_0x55273b();while(!![]){try{const _0x23d2f9=-parseInt(_0x28b311(0x123))/0x1*(parseInt(_0x28b311(0x11f))/0x2)+parseInt(_0x28b311(0x120))/0x3*(-parseInt(_0x28b311(0x128))/0x4)+parseInt(_0x28b311(0x126))/0x5+-parseInt(_0x28b311(0x129))/0x6+-parseInt(_0x28b311(0x127))/0x7*(parseInt(_0x28b311(0x11d))/0x8)+-parseInt(_0x28b311(0x12b))/0x9*(-parseInt(_0x28b311(0x121))/0xa)+parseInt(_0x28b311(0x122))/0xb;if(_0x23d2f9===_0x2b5763)break;else _0x3ef80d['push'](_0x3ef80d['shift']());}catch(_0x4b2b53){_0x3ef80d['push'](_0x3ef80d['shift']());}}}(a116_0x51e2,0x88aa1));import a116_0x31f396 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a116_0x5e55(_0x12624b,_0x37d60f){_0x12624b=_0x12624b-0x11c;const _0x51e23f=a116_0x51e2();let _0x5e55b6=_0x51e23f[_0x12624b];return _0x5e55b6;}let cliOtelTraceInitialized=![];function a116_0x51e2(){const _0x459ef4=['190iJrgUC','19980543rnAWko','549817BAuzVm','userInfo','production','4410585YjEtqT','3563wsgEFj','1044NqTOcr','5048154lluirk','rabetbase-cli','501129NFFFHZ','nickname','username','14024YdpQsK','daily','2EOSoTk','10497RGUrxq'];a116_0x51e2=function(){return _0x459ef4;};return a116_0x51e2();}export async function ensureCliOtelTraceConfig(){const _0x57cdf8=a116_0x5e55,_0x1c9f7e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1f5208=_0x1c9f7e?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x57cdf8(0x11e):_0x57cdf8(0x125)),'username':_0x1f5208?.[_0x57cdf8(0x11c)]??a116_0x31f396[_0x57cdf8(0x124)]()[_0x57cdf8(0x11c)]??_0x57cdf8(0x12a),..._0x1f5208&&{'nickname':_0x1f5208[_0x57cdf8(0x12c)]}}),cliOtelTraceInitialized=!![];}return _0x1c9f7e;}
1
+ (function(_0x3d7d8b,_0x5455f1){const _0x120537=a114_0x520c,_0x5df2a9=_0x3d7d8b();while(!![]){try{const _0x5bf72b=-parseInt(_0x120537(0x1fd))/0x1*(parseInt(_0x120537(0x1fc))/0x2)+-parseInt(_0x120537(0x1f8))/0x3+-parseInt(_0x120537(0x1fb))/0x4*(parseInt(_0x120537(0x1f2))/0x5)+-parseInt(_0x120537(0x203))/0x6*(-parseInt(_0x120537(0x1ff))/0x7)+-parseInt(_0x120537(0x1fa))/0x8+-parseInt(_0x120537(0x1f5))/0x9+parseInt(_0x120537(0x202))/0xa*(parseInt(_0x120537(0x200))/0xb);if(_0x5bf72b===_0x5455f1)break;else _0x5df2a9['push'](_0x5df2a9['shift']());}catch(_0x40ded5){_0x5df2a9['push'](_0x5df2a9['shift']());}}}(a114_0x4cda,0x4e5c8));import a114_0x528ff7 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';function a114_0x520c(_0x52ca0e,_0xf54c83){_0x52ca0e=_0x52ca0e-0x1f2;const _0x4cdaa4=a114_0x4cda();let _0x520c49=_0x4cdaa4[_0x52ca0e];return _0x520c49;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2df437=a114_0x520c,_0x555b9b=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1d71bf=_0x555b9b?.[_0x2df437(0x1f6)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2df437(0x201)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2df437(0x1f4):_0x2df437(0x1f7)),'username':_0x1d71bf?.['username']??a114_0x528ff7[_0x2df437(0x1f9)]()[_0x2df437(0x1fe)]??_0x2df437(0x1f3),..._0x1d71bf&&{'nickname':_0x1d71bf['nickname']}}),cliOtelTraceInitialized=!![];}return _0x555b9b;}function a114_0x4cda(){const _0x4731c6=['username','1225SkKuUN','34364ehIZwl','unknown','4430noOotR','19698LaWdKF','2118335OCjVbH','rabetbase-cli','daily','998118cEuYgF','user','production','488076PEiDiA','userInfo','2899752QLofoZ','4NXlAqi','1274CaSRvO','907wXtiMs'];a114_0x4cda=function(){return _0x4731c6;};return a114_0x4cda();}
@@ -1 +1 @@
1
- (function(_0x54806c,_0x32ea95){const _0x166b58=a117_0x478d,_0x2aa570=_0x54806c();while(!![]){try{const _0x5f13ba=-parseInt(_0x166b58(0xc2))/0x1*(-parseInt(_0x166b58(0xcb))/0x2)+parseInt(_0x166b58(0xc9))/0x3+parseInt(_0x166b58(0xbe))/0x4+-parseInt(_0x166b58(0xc3))/0x5+parseInt(_0x166b58(0xbd))/0x6*(-parseInt(_0x166b58(0xc1))/0x7)+parseInt(_0x166b58(0xc4))/0x8*(parseInt(_0x166b58(0xc8))/0x9)+-parseInt(_0x166b58(0xc0))/0xa*(parseInt(_0x166b58(0xc5))/0xb);if(_0x5f13ba===_0x32ea95)break;else _0x2aa570['push'](_0x2aa570['shift']());}catch(_0x52a6da){_0x2aa570['push'](_0x2aa570['shift']());}}}(a117_0x3f11,0x8bf23));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x25b23d=a117_0x478d;process[_0x25b23d(0xc7)](_0x25b23d(0xbf),()=>{void flushOtelNodeIfUsed();});const _0x118d4b=()=>{const _0x3bef06=_0x25b23d;void flushOtelNodeIfUsed()['then'](()=>process[_0x3bef06(0xcc)](0x0));};process['once'](_0x25b23d(0xc6),_0x118d4b),process[_0x25b23d(0xc7)](_0x25b23d(0xca),_0x118d4b);}function a117_0x3f11(){const _0x4f10ac=['47179VWVmVe','SIGINT','once','351EZOOYV','3131895oFFOor','SIGTERM','238166fWcqmU','exit','6xtkwVU','2511228HRIVtp','beforeExit','3040VVgIUy','1233302LERjDb','1XoyaZX','258500IwInKg','64432aIzaKf'];a117_0x3f11=function(){return _0x4f10ac;};return a117_0x3f11();}function a117_0x478d(_0x50b201,_0x4c67c9){_0x50b201=_0x50b201-0xbd;const _0x3f11ae=a117_0x3f11();let _0x478df6=_0x3f11ae[_0x50b201];return _0x478df6;}export async function exitWithOtelShutdown(_0x41017c){const _0x100811=a117_0x478d;await flushOtelNodeIfUsed(),process[_0x100811(0xcc)](_0x41017c);}
1
+ function a115_0x37f4(){const _0x4246b8=['SIGINT','872220qaIBuG','1231129MwLOHH','96XDFZio','129326wyxLja','213017lRBfYd','18ivLwAa','3609135ETUFZA','4567904AhNsQE','31601890cWGONd','SIGTERM','9ithRGJ','then','exit'];a115_0x37f4=function(){return _0x4246b8;};return a115_0x37f4();}(function(_0x47d1d7,_0x3f1471){const _0x5c3ee7=a115_0x5d74,_0x12c3f3=_0x47d1d7();while(!![]){try{const _0x18384c=-parseInt(_0x5c3ee7(0x190))/0x1+parseInt(_0x5c3ee7(0x192))/0x2*(parseInt(_0x5c3ee7(0x194))/0x3)+-parseInt(_0x5c3ee7(0x196))/0x4+-parseInt(_0x5c3ee7(0x195))/0x5+-parseInt(_0x5c3ee7(0x18f))/0x6+-parseInt(_0x5c3ee7(0x193))/0x7*(-parseInt(_0x5c3ee7(0x191))/0x8)+parseInt(_0x5c3ee7(0x199))/0x9*(parseInt(_0x5c3ee7(0x197))/0xa);if(_0x18384c===_0x3f1471)break;else _0x12c3f3['push'](_0x12c3f3['shift']());}catch(_0x817328){_0x12c3f3['push'](_0x12c3f3['shift']());}}}(a115_0x37f4,0xa450d));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a115_0x5d74(_0x2f359c,_0x2a656c){_0x2f359c=_0x2f359c-0x18e;const _0x37f487=a115_0x37f4();let _0x5d74e1=_0x37f487[_0x2f359c];return _0x5d74e1;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x59761e=a115_0x5d74;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x711574=()=>{const _0x161613=a115_0x5d74;void flushOtelNodeIfUsed()[_0x161613(0x19a)](()=>process[_0x161613(0x19b)](0x0));};process['once'](_0x59761e(0x18e),_0x711574),process['once'](_0x59761e(0x198),_0x711574);}export async function exitWithOtelShutdown(_0x529f64){const _0x599a6a=a115_0x5d74;await flushOtelNodeIfUsed(),process[_0x599a6a(0x19b)](_0x529f64);}
@@ -1 +1 @@
1
- const a118_0x454694=a118_0x5b4e;function a118_0x2709(){const _0x4f9e3a=['rabetbase-cli','5324rLgGKd','2778243McwGTH','traceparent','spanName','240JORbRq','version','21430260XWisRX','638980sEZlsf','logData','42unYUui','1vjDIBX','151911qjOdeJ','3287268RYcAQy','215262kybNaE','manual','2780yFsVZr','5Ewdbby'];a118_0x2709=function(){return _0x4f9e3a;};return a118_0x2709();}(function(_0x3ab648,_0x374eb2){const _0xa70b4a=a118_0x5b4e,_0x446bb5=_0x3ab648();while(!![]){try{const _0x1c92de=parseInt(_0xa70b4a(0x17f))/0x1*(parseInt(_0xa70b4a(0x17c))/0x2)+-parseInt(_0xa70b4a(0x176))/0x3+-parseInt(_0xa70b4a(0x181))/0x4*(parseInt(_0xa70b4a(0x185))/0x5)+parseInt(_0xa70b4a(0x182))/0x6*(-parseInt(_0xa70b4a(0x17e))/0x7)+-parseInt(_0xa70b4a(0x179))/0x8*(-parseInt(_0xa70b4a(0x180))/0x9)+-parseInt(_0xa70b4a(0x184))/0xa*(parseInt(_0xa70b4a(0x187))/0xb)+parseInt(_0xa70b4a(0x17b))/0xc;if(_0x1c92de===_0x374eb2)break;else _0x446bb5['push'](_0x446bb5['shift']());}catch(_0x3dce4a){_0x446bb5['push'](_0x446bb5['shift']());}}}(a118_0x2709,0x7d7d3));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a118_0x454694(0x186);function a118_0x5b4e(_0x51d522,_0x5ebc28){_0x51d522=_0x51d522-0x176;const _0x270906=a118_0x2709();let _0x5b4e28=_0x270906[_0x51d522];return _0x5b4e28;}export async function sendCliTraceLog(_0x46a5d4){const _0x4f76b3=a118_0x454694;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x46a5d4['traceName']??DEFAULT_TRACE_NAME,'version':_0x46a5d4[_0x4f76b3(0x17a)]??getCliVersion(),'spanName':_0x46a5d4[_0x4f76b3(0x178)],'eventType':_0x4f76b3(0x183),'logData':_0x46a5d4[_0x4f76b3(0x17d)],..._0x46a5d4[_0x4f76b3(0x177)]&&{'traceparent':_0x46a5d4[_0x4f76b3(0x177)]}});}
1
+ const a116_0x4eb77e=a116_0x4c64;(function(_0x1a4705,_0x2b8fd4){const _0x425b53=a116_0x4c64,_0x4eb6b=_0x1a4705();while(!![]){try{const _0x1bcc12=-parseInt(_0x425b53(0x1e0))/0x1*(-parseInt(_0x425b53(0x1e3))/0x2)+parseInt(_0x425b53(0x1de))/0x3*(-parseInt(_0x425b53(0x1d6))/0x4)+parseInt(_0x425b53(0x1d3))/0x5+-parseInt(_0x425b53(0x1db))/0x6+-parseInt(_0x425b53(0x1e2))/0x7*(parseInt(_0x425b53(0x1e1))/0x8)+parseInt(_0x425b53(0x1d7))/0x9*(parseInt(_0x425b53(0x1df))/0xa)+-parseInt(_0x425b53(0x1d8))/0xb*(-parseInt(_0x425b53(0x1d5))/0xc);if(_0x1bcc12===_0x2b8fd4)break;else _0x4eb6b['push'](_0x4eb6b['shift']());}catch(_0x1b1dd4){_0x4eb6b['push'](_0x4eb6b['shift']());}}}(a116_0x19c9,0x5bed2));function a116_0x4c64(_0x12c7f5,_0x18118f){_0x12c7f5=_0x12c7f5-0x1d2;const _0x19c925=a116_0x19c9();let _0x4c64f1=_0x19c925[_0x12c7f5];return _0x4c64f1;}import{sendTraceLog}from'@lovrabet/otel-logger';function a116_0x19c9(){const _0x524cfb=['936804txbdRC','18LhLIta','64526OLsohP','traceparent','traceName','225714CrunjN','logData','rabetbase-cli','6PwovQC','1600360bqIHXj','410819Jfciww','5636872VcASuI','7wWLQYr','2lUPohs','version','3636085DPhRCl','manual','264HbNShb'];a116_0x19c9=function(){return _0x524cfb;};return a116_0x19c9();}import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a116_0x4eb77e(0x1dd);export async function sendCliTraceLog(_0xc35dae){const _0x171603=a116_0x4eb77e;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xc35dae[_0x171603(0x1da)]??DEFAULT_TRACE_NAME,'version':_0xc35dae[_0x171603(0x1d2)]??getCliVersion(),'spanName':_0xc35dae['spanName'],'eventType':_0x171603(0x1d4),'logData':_0xc35dae[_0x171603(0x1dc)],..._0xc35dae[_0x171603(0x1d9)]&&{'traceparent':_0xc35dae[_0x171603(0x1d9)]}});}
@@ -1 +1 @@
1
- const a120_0x493c9=a120_0x1258;(function(_0x28f889,_0x1e7a66){const _0x1d6f85=a120_0x1258,_0x2634e5=_0x28f889();while(!![]){try{const _0x2286c0=-parseInt(_0x1d6f85(0x195))/0x1*(-parseInt(_0x1d6f85(0x1a1))/0x2)+parseInt(_0x1d6f85(0x19d))/0x3+parseInt(_0x1d6f85(0x192))/0x4+parseInt(_0x1d6f85(0x191))/0x5+parseInt(_0x1d6f85(0x18c))/0x6*(parseInt(_0x1d6f85(0x1a2))/0x7)+parseInt(_0x1d6f85(0x187))/0x8*(parseInt(_0x1d6f85(0x185))/0x9)+-parseInt(_0x1d6f85(0x182))/0xa;if(_0x2286c0===_0x1e7a66)break;else _0x2634e5['push'](_0x2634e5['shift']());}catch(_0x24a0bd){_0x2634e5['push'](_0x2634e5['shift']());}}}(a120_0x9fe6,0xca560));export const CORE_IDE_CONFIGS={'cursor':{'name':a120_0x493c9(0x196),'description':a120_0x493c9(0x18d),'folders':[a120_0x493c9(0x18f),a120_0x493c9(0x17c)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x193),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a120_0x493c9(0x17b),'description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x17a),'template':a120_0x493c9(0x184)}]},'claude':{'name':a120_0x493c9(0x1a5),'description':a120_0x493c9(0x1a5),'folders':[a120_0x493c9(0x178)],'files':[{'type':a120_0x493c9(0x181),'path':'.claude/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'cline':{'name':'Cline','description':a120_0x493c9(0x18e),'folders':['.cline'],'files':[{'type':a120_0x493c9(0x181),'path':'.cline/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'codex':{'name':a120_0x493c9(0x1a0),'description':'Codex\x20IDE','folders':[a120_0x493c9(0x173)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x18b),'template':a120_0x493c9(0x184)}]},'opencode':{'name':a120_0x493c9(0x188),'description':a120_0x493c9(0x17d),'folders':[a120_0x493c9(0x183)],'files':[{'type':a120_0x493c9(0x181),'path':'.opencode/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'qoder':{'name':a120_0x493c9(0x180),'description':a120_0x493c9(0x194),'folders':[a120_0x493c9(0x176)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x179),'template':'SKILL.md.tpl'},{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x19e),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a120_0x493c9(0x189)],'files':[{'type':a120_0x493c9(0x181),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'trae':{'name':'Trae','description':a120_0x493c9(0x18a),'folders':[a120_0x493c9(0x177)],'files':[{'type':a120_0x493c9(0x181),'path':'.trae/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a120_0x493c9(0x17e),'description':a120_0x493c9(0x175),'folders':[a120_0x493c9(0x19f)],'files':[{'type':a120_0x493c9(0x181),'path':'.agent/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'antigravity':{'name':a120_0x493c9(0x19a),'description':'Antigravity\x20IDE','folders':[a120_0x493c9(0x19f)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x19c),'template':'SKILL.md.tpl'}]}};function a120_0x1258(_0x179ef8,_0xc24d4e){_0x179ef8=_0x179ef8-0x173;const _0x9fe6e6=a120_0x9fe6();let _0x125883=_0x9fe6e6[_0x179ef8];return _0x125883;}function a120_0x9fe6(){const _0x2c3096=['其他\x20(通用模板)','trae','Qoder','file','54606660yXkwUz','.opencode','SKILL.md.tpl','18hYKuxV','codex','3546776WAxTnO','OpenCode','.codebuddy','Trae\x20IDE','.codex/skills/lovrabet/SKILL.md','241680JmHuZy','Cursor\x20IDE','Cline\x20IDE','.cursorrules','cline','7903385xQZksH','5458668TYknHQ','.cursor/skills/rabetbase.md','Qoder\x20IDE','6iPGaEH','Cursor','qoder','agent','claude','Antigravity','opencode','.agent/skills/lovrabet/SKILL.md','2473206kOeEJf','.qoder/skills/lovrabet/SKILL.md','.agent','Codex','235518MIQiTk','161kcwMnN','windsurf','antigravity','Claude\x20Code','.codex','cursor','通用模板\x20-\x20兜底方案','.qoder','.trae','.claude','.qoder/rules/rabetbase.md','.windsurf/workflows/rabetbase.md','Windsurf','.cursor','OpenCode\x20IDE'];a120_0x9fe6=function(){return _0x2c3096;};return a120_0x9fe6();}export const CORE_IDE_LIST=[a120_0x493c9(0x199),'cline','codebuddy',a120_0x493c9(0x186),a120_0x493c9(0x174),a120_0x493c9(0x19b),a120_0x493c9(0x197),a120_0x493c9(0x17f),a120_0x493c9(0x1a3)];export const IDE_LIST=[a120_0x493c9(0x1a4),a120_0x493c9(0x199),a120_0x493c9(0x190),'codebuddy',a120_0x493c9(0x186),a120_0x493c9(0x174),a120_0x493c9(0x19b),'qoder',a120_0x493c9(0x17f),a120_0x493c9(0x1a3),a120_0x493c9(0x198)];export const ALL_CORE_IDES=[a120_0x493c9(0x174),a120_0x493c9(0x1a3),a120_0x493c9(0x199),a120_0x493c9(0x190),a120_0x493c9(0x186),a120_0x493c9(0x19b),a120_0x493c9(0x197),'codebuddy',a120_0x493c9(0x17f)];
1
+ const a118_0x2ee717=a118_0x4ee2;function a118_0x4ee2(_0x3e6368,_0x54d644){_0x3e6368=_0x3e6368-0xa5;const _0x1d078d=a118_0x1d07();let _0x4ee216=_0x1d078d[_0x3e6368];return _0x4ee216;}(function(_0x4d2ae4,_0x4add62){const _0x4ac435=a118_0x4ee2,_0x5546b2=_0x4d2ae4();while(!![]){try{const _0x107eec=parseInt(_0x4ac435(0xcc))/0x1+-parseInt(_0x4ac435(0xce))/0x2+parseInt(_0x4ac435(0xbd))/0x3+parseInt(_0x4ac435(0xd1))/0x4*(-parseInt(_0x4ac435(0xcd))/0x5)+-parseInt(_0x4ac435(0xd3))/0x6+-parseInt(_0x4ac435(0xc2))/0x7*(-parseInt(_0x4ac435(0xc9))/0x8)+parseInt(_0x4ac435(0xc1))/0x9;if(_0x107eec===_0x4add62)break;else _0x5546b2['push'](_0x5546b2['shift']());}catch(_0x24ecff){_0x5546b2['push'](_0x5546b2['shift']());}}}(a118_0x1d07,0xccbd6));export const CORE_IDE_CONFIGS={'cursor':{'name':a118_0x2ee717(0xb8),'description':a118_0x2ee717(0xdc),'folders':[a118_0x2ee717(0xd9),a118_0x2ee717(0xbc)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a118_0x2ee717(0xab),'folders':[a118_0x2ee717(0xd4)],'files':[{'type':'file','path':a118_0x2ee717(0xaa),'template':a118_0x2ee717(0xb0)}]},'claude':{'name':'Claude\x20Code','description':a118_0x2ee717(0xb3),'folders':[a118_0x2ee717(0xbb)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'cline':{'name':a118_0x2ee717(0xca),'description':a118_0x2ee717(0xbf),'folders':[a118_0x2ee717(0xdb)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xd6),'template':'SKILL.md.tpl'}]},'codex':{'name':a118_0x2ee717(0xc3),'description':a118_0x2ee717(0xa9),'folders':[a118_0x2ee717(0xb6)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb5),'template':a118_0x2ee717(0xb0)}]},'opencode':{'name':a118_0x2ee717(0xa7),'description':a118_0x2ee717(0xd8),'folders':['.opencode'],'files':[{'type':a118_0x2ee717(0xa8),'path':'.opencode/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'qoder':{'name':a118_0x2ee717(0xaf),'description':a118_0x2ee717(0xb2),'folders':[a118_0x2ee717(0xc6)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb7),'template':a118_0x2ee717(0xb0)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'codebuddy':{'name':a118_0x2ee717(0xda),'description':a118_0x2ee717(0xc8),'folders':[a118_0x2ee717(0xd2)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'trae':{'name':a118_0x2ee717(0xba),'description':'Trae\x20IDE','folders':[a118_0x2ee717(0xc5)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xc4),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a118_0x2ee717(0xae),'description':a118_0x2ee717(0xac),'folders':[a118_0x2ee717(0xcb)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb4),'template':a118_0x2ee717(0xb0)}]},'antigravity':{'name':a118_0x2ee717(0xd0),'description':a118_0x2ee717(0xd7),'folders':[a118_0x2ee717(0xcb)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};function a118_0x1d07(){const _0x4d2e1b=['3885tHXylf','Codex','.trae/skills/lovrabet/SKILL.md','.trae','.qoder','codex','CodeBuddy\x20IDE','8408xHTMnx','Cline','.agent','294824BCfSHn','460RPXHby','630912IXAwjP','windsurf','Antigravity','18188jnqbFa','.codebuddy','3483462ocIfVr','.windsurf','codebuddy','.cline/skills/lovrabet/SKILL.md','Antigravity\x20IDE','OpenCode\x20IDE','.cursorrules','CodeBuddy','.cline','Cursor\x20IDE','claude','qoder','OpenCode','file','Codex\x20IDE','.windsurf/workflows/rabetbase.md','Windsurf\x20IDE','通用模板\x20-\x20兜底方案','cursor','其他\x20(通用模板)','Qoder','SKILL.md.tpl','trae','Qoder\x20IDE','Claude\x20Code','.agent/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','.codex','.qoder/rules/rabetbase.md','Cursor','antigravity','Trae','.claude','.cursor','3451521CiLUgi','opencode','Cline\x20IDE','cline','1119015SSBClW'];a118_0x1d07=function(){return _0x4d2e1b;};return a118_0x1d07();}export const CORE_IDE_LIST=['claude',a118_0x2ee717(0xc0),'codebuddy','codex',a118_0x2ee717(0xad),a118_0x2ee717(0xbe),a118_0x2ee717(0xa6),'trae',a118_0x2ee717(0xcf)];export const IDE_LIST=[a118_0x2ee717(0xb9),'claude','cline','codebuddy',a118_0x2ee717(0xc7),a118_0x2ee717(0xad),'opencode','qoder',a118_0x2ee717(0xb1),a118_0x2ee717(0xcf),'agent'];export const ALL_CORE_IDES=[a118_0x2ee717(0xad),a118_0x2ee717(0xcf),a118_0x2ee717(0xa5),a118_0x2ee717(0xc0),a118_0x2ee717(0xc7),a118_0x2ee717(0xbe),a118_0x2ee717(0xa6),a118_0x2ee717(0xd5),a118_0x2ee717(0xb1)];
@@ -1 +1 @@
1
- (function(_0x45852d,_0x37606b){const _0xb4d644=a121_0x2dd9,_0x4c49e7=_0x45852d();while(!![]){try{const _0x4fcffc=parseInt(_0xb4d644(0xcd))/0x1*(parseInt(_0xb4d644(0xd2))/0x2)+parseInt(_0xb4d644(0xd3))/0x3*(-parseInt(_0xb4d644(0xca))/0x4)+parseInt(_0xb4d644(0xce))/0x5*(-parseInt(_0xb4d644(0xcb))/0x6)+parseInt(_0xb4d644(0xd5))/0x7*(-parseInt(_0xb4d644(0xd0))/0x8)+parseInt(_0xb4d644(0xcc))/0x9+parseInt(_0xb4d644(0xd4))/0xa+-parseInt(_0xb4d644(0xd7))/0xb;if(_0x4fcffc===_0x37606b)break;else _0x4c49e7['push'](_0x4c49e7['shift']());}catch(_0x42adbf){_0x4c49e7['push'](_0x4c49e7['shift']());}}}(a121_0x424f,0x2f03f));function a121_0x424f(){const _0x859efd=['8cNfWfQ','node','940mlDXCZ','19281FRRtnm','330050efYJRA','978558UDUGuM','/config.json','721182cqMbax','application/json','stableVersion','cli','44DYgyYm','72vmBCYB','2457333zQGvIS','359LBNJNM','2560bqbwaM','json'];a121_0x424f=function(){return _0x859efd;};return a121_0x424f();}import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x430085=a121_0x2dd9;try{const _0x55c87a=getTemplateBaseUrl(),_0x582768=_0x55c87a+_0x430085(0xd6),_0x3903cd=await fetch(_0x582768,{'headers':{'Accept':_0x430085(0xd8)}});if(!_0x3903cd['ok'])return null;const _0x3ac403=await _0x3903cd[_0x430085(0xcf)]();if(!_0x3ac403[_0x430085(0xda)]?.[_0x430085(0xd9)]||!_0x3ac403['sdk']?.[_0x430085(0xd1)]?.[_0x430085(0xd9)])return null;return _0x3ac403;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x876ba=Date['now']();if(cachedConfig&&_0x876ba-cacheTime<CACHE_TTL)return cachedConfig;const _0x19ace4=await fetchCdnConfig();return _0x19ace4&&(cachedConfig=_0x19ace4,cacheTime=_0x876ba),_0x19ace4;}function a121_0x2dd9(_0x5c8b76,_0x486c8a){_0x5c8b76=_0x5c8b76-0xca;const _0x424f83=a121_0x424f();let _0x2dd9c5=_0x424f83[_0x5c8b76];return _0x2dd9c5;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x1a1cbe,_0x4f757e){const _0x15a994=a119_0x4af3,_0x42f1f6=_0x1a1cbe();while(!![]){try{const _0x59798b=parseInt(_0x15a994(0x1d2))/0x1+parseInt(_0x15a994(0x1c3))/0x2+-parseInt(_0x15a994(0x1c6))/0x3*(-parseInt(_0x15a994(0x1cd))/0x4)+parseInt(_0x15a994(0x1cb))/0x5+-parseInt(_0x15a994(0x1c8))/0x6+parseInt(_0x15a994(0x1c4))/0x7+parseInt(_0x15a994(0x1d1))/0x8*(-parseInt(_0x15a994(0x1ca))/0x9);if(_0x59798b===_0x4f757e)break;else _0x42f1f6['push'](_0x42f1f6['shift']());}catch(_0x2677d2){_0x42f1f6['push'](_0x42f1f6['shift']());}}}(a119_0x2c84,0x86e79));function a119_0x2c84(){const _0x55eae4=['5594157OODWjI','4483445FBwgji','now','116fyjazA','sdk','cli','application/json','40rupUMO','959969muyWEV','810994XkZNsG','7678475JMjnTR','node','63237mGyFiO','stableVersion','1859622awFZdI','/config.json'];a119_0x2c84=function(){return _0x55eae4;};return a119_0x2c84();}import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x21493b=a119_0x4af3;try{const _0x26a0cf=getTemplateBaseUrl(),_0x3d3c3f=_0x26a0cf+_0x21493b(0x1c9),_0x5a848d=await fetch(_0x3d3c3f,{'headers':{'Accept':_0x21493b(0x1d0)}});if(!_0x5a848d['ok'])return null;const _0xc046ea=await _0x5a848d['json']();if(!_0xc046ea[_0x21493b(0x1cf)]?.[_0x21493b(0x1c7)]||!_0xc046ea[_0x21493b(0x1ce)]?.[_0x21493b(0x1c5)]?.[_0x21493b(0x1c7)])return null;return _0xc046ea;}catch{return null;}}function a119_0x4af3(_0x1b3f10,_0x3e264d){_0x1b3f10=_0x1b3f10-0x1c3;const _0x2c84a7=a119_0x2c84();let _0x4af327=_0x2c84a7[_0x1b3f10];return _0x4af327;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0xf9c01d=a119_0x4af3,_0x271661=Date[_0xf9c01d(0x1cc)]();if(cachedConfig&&_0x271661-cacheTime<CACHE_TTL)return cachedConfig;const _0x596f55=await fetchCdnConfig();return _0x596f55&&(cachedConfig=_0x596f55,cacheTime=_0x271661),_0x596f55;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a122_0x473e0e=a122_0x3f8f;(function(_0x3d1ef3,_0x37ca1d){const _0x5e1cc8=a122_0x3f8f,_0x30e98b=_0x3d1ef3();while(!![]){try{const _0xfbe861=parseInt(_0x5e1cc8(0x1a8))/0x1*(parseInt(_0x5e1cc8(0x1ab))/0x2)+-parseInt(_0x5e1cc8(0x1b9))/0x3*(-parseInt(_0x5e1cc8(0x1a7))/0x4)+-parseInt(_0x5e1cc8(0x1b7))/0x5+parseInt(_0x5e1cc8(0x1b1))/0x6*(-parseInt(_0x5e1cc8(0x1ac))/0x7)+parseInt(_0x5e1cc8(0x19f))/0x8+-parseInt(_0x5e1cc8(0x1c2))/0x9*(-parseInt(_0x5e1cc8(0x19d))/0xa)+-parseInt(_0x5e1cc8(0x1ba))/0xb*(parseInt(_0x5e1cc8(0x1a9))/0xc);if(_0xfbe861===_0x37ca1d)break;else _0x30e98b['push'](_0x30e98b['shift']());}catch(_0x47e284){_0x30e98b['push'](_0x30e98b['shift']());}}}(a122_0x1b74,0x7a790));import a122_0x188e36 from'node:fs';import a122_0x3ba248 from'node:path';import a122_0x2c815f from'semver';function a122_0x1b74(){const _0x17e8a1=['npm\x20install\x20','some','↪\x20SDK\x20update\x20available','3451206mbIaTi','all','package.json','\x1b[1m','\x1b[0m','log','1273205RBcfDB','\x20\x20\x20Upgrade\x20command:\x20','80181Zlnswo','1364xJNAFw','node','@lovrabet/sdk','\x20\x20\x20Stable\x20version:\x20','dependencies','existsSync','sdk','packageName','51219WphnaP','devDependencies','join','1740ONldjB','\x20\x20\x20Current\x20version:\x20','5607352ymYiEU','parse','version','readFileSync','test','coerce','stableVersion','1.2.0','12oyiRqp','3719VdPZuJ','48324lnTvDT','utf8','32JJbEdH','7zKIJRa','minVersion'];a122_0x1b74=function(){return _0x17e8a1;};return a122_0x1b74();}import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a122_0x473e0e(0x1a6);function isNonNumericVersion(_0x187d76){const _0x6f1864=a122_0x473e0e,_0x432737=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x432737[_0x6f1864(0x1af)](_0x249f5d=>_0x249f5d[_0x6f1864(0x1a3)](_0x187d76));}function getInstalledVersion(_0xd83d2c,_0x494daa){const _0x42a4a5=a122_0x473e0e;try{const _0x842a53=a122_0x3ba248[_0x42a4a5(0x19c)](_0xd83d2c,'node_modules',_0x494daa,_0x42a4a5(0x1b3));if(a122_0x188e36[_0x42a4a5(0x1bf)](_0x842a53)){const _0x8072c2=JSON[_0x42a4a5(0x1a0)](a122_0x188e36[_0x42a4a5(0x1a2)](_0x842a53,'utf-8'));return _0x8072c2[_0x42a4a5(0x1a1)]||null;}}catch{}return null;}function a122_0x3f8f(_0x18df04,_0x1526e4){_0x18df04=_0x18df04-0x19b;const _0x1b7476=a122_0x1b74();let _0x3f8f0f=_0x1b7476[_0x18df04];return _0x3f8f0f;}async function getSdkStableVersion(){const _0x4fffa1=a122_0x473e0e;try{const _0x26994c=await getCdnConfig();return _0x26994c?.[_0x4fffa1(0x1c0)]?.[_0x4fffa1(0x1bb)]?.[_0x4fffa1(0x1a5)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x11f7ad=a122_0x473e0e;try{const _0x2285b4=await getCdnConfig();return _0x2285b4?.[_0x11f7ad(0x1c0)]?.[_0x11f7ad(0x1bb)]?.[_0x11f7ad(0x1c1)]||_0x11f7ad(0x1bc);}catch{return _0x11f7ad(0x1bc);}}export async function checkSdkVersion(_0x5cfe11){const _0x2ffd2d=a122_0x473e0e,_0x105246=a122_0x3ba248[_0x2ffd2d(0x19c)](_0x5cfe11,_0x2ffd2d(0x1b3)),[_0x2137fb,_0x559ed2]=await Promise[_0x2ffd2d(0x1b2)]([getSdkStableVersion(),getSdkPackageName()]),_0x2022ae=_0x2137fb||FALLBACK_MIN_SDK_VERSION;if(!a122_0x188e36[_0x2ffd2d(0x1bf)](_0x105246))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};try{const _0x13b3ef=JSON[_0x2ffd2d(0x1a0)](a122_0x188e36[_0x2ffd2d(0x1a2)](_0x105246,_0x2ffd2d(0x1aa))),_0x38b281=_0x13b3ef[_0x2ffd2d(0x1be)]||{},_0x1918c2=_0x13b3ef[_0x2ffd2d(0x19b)]||{},_0x27a8d6=_0x38b281[_0x559ed2]||_0x1918c2[_0x559ed2];if(!_0x27a8d6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};let _0x2daa7b=getInstalledVersion(_0x5cfe11,_0x559ed2);!_0x2daa7b&&(_0x2daa7b=_0x27a8d6);if(isNonNumericVersion(_0x27a8d6))return{'installed':!![],'version':_0x2daa7b,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};const _0x4559ab=a122_0x2c815f[_0x2ffd2d(0x1a4)](_0x2daa7b),_0x515851=a122_0x2c815f[_0x2ffd2d(0x1a4)](_0x2022ae),_0x1774e1=_0x4559ab&&_0x515851?a122_0x2c815f['lt'](_0x4559ab,_0x515851):![];return{'installed':!![],'version':_0x2daa7b,'needsUpgrade':_0x1774e1,'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};}}export function checkSdkVersionSync(_0x4cc963){const _0x5df0f1=a122_0x473e0e,_0x49d62b=a122_0x3ba248[_0x5df0f1(0x19c)](_0x4cc963,_0x5df0f1(0x1b3)),_0x107dd9=_0x5df0f1(0x1bc);if(!a122_0x188e36[_0x5df0f1(0x1bf)](_0x49d62b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};try{const _0x3fda88=JSON[_0x5df0f1(0x1a0)](a122_0x188e36['readFileSync'](_0x49d62b,_0x5df0f1(0x1aa))),_0x5c446d=_0x3fda88[_0x5df0f1(0x1be)]||{},_0x3cae3b=_0x3fda88[_0x5df0f1(0x19b)]||{},_0x113b35=_0x5c446d[_0x107dd9]||_0x3cae3b[_0x107dd9];if(!_0x113b35)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};let _0x57e0b8=getInstalledVersion(_0x4cc963,_0x107dd9);!_0x57e0b8&&(_0x57e0b8=_0x113b35);if(isNonNumericVersion(_0x113b35))return{'installed':!![],'version':_0x57e0b8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};const _0x34c413=a122_0x2c815f[_0x5df0f1(0x1a4)](_0x57e0b8),_0x5c35e9=_0x34c413?a122_0x2c815f['lt'](_0x34c413,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x57e0b8,'needsUpgrade':_0x5c35e9,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4821a8){const _0x5f462d=a122_0x473e0e;if(!_0x4821a8['needsUpgrade'])return;const _0x50a186='\x1b[33m',_0x36fb50=_0x5f462d(0x1b5),_0xe5f46=_0x5f462d(0x1b4),_0x4e8dbd=_0x4821a8[_0x5f462d(0x1c1)]||'@lovrabet/sdk',_0x514f77=_0x4821a8[_0x5f462d(0x1a5)]||_0x4821a8[_0x5f462d(0x1ad)],_0x125b3c=_0x5f462d(0x1ae)+_0x4e8dbd+'@'+(_0x514f77||'latest');console[_0x5f462d(0x1b6)](),console['log'](''+_0x50a186+_0xe5f46+_0x5f462d(0x1b0)+_0x36fb50),console[_0x5f462d(0x1b6)](_0x50a186+_0x5f462d(0x19e)+_0x4e8dbd+'@'+_0x4821a8['version']+_0x36fb50),console[_0x5f462d(0x1b6)](_0x50a186+_0x5f462d(0x1bd)+_0x514f77+_0x36fb50),console['log'](_0x50a186+_0x5f462d(0x1b8)+_0x125b3c+_0x36fb50),console['log']();}
1
+ function a120_0x43fe(_0xa5841e,_0x4fae75){_0xa5841e=_0xa5841e-0xb7;const _0x4d6443=a120_0x4d64();let _0x43fe75=_0x4d6443[_0xa5841e];return _0x43fe75;}const a120_0xbf2119=a120_0x43fe;(function(_0x4c26f2,_0x4328e3){const _0x147878=a120_0x43fe,_0x3474a8=_0x4c26f2();while(!![]){try{const _0x5c823d=-parseInt(_0x147878(0xd0))/0x1*(-parseInt(_0x147878(0xca))/0x2)+-parseInt(_0x147878(0xc6))/0x3+-parseInt(_0x147878(0xd8))/0x4*(parseInt(_0x147878(0xcc))/0x5)+-parseInt(_0x147878(0xbe))/0x6*(parseInt(_0x147878(0xc1))/0x7)+parseInt(_0x147878(0xcd))/0x8*(parseInt(_0x147878(0xc7))/0x9)+-parseInt(_0x147878(0xcb))/0xa*(parseInt(_0x147878(0xbc))/0xb)+parseInt(_0x147878(0xd3))/0xc;if(_0x5c823d===_0x4328e3)break;else _0x3474a8['push'](_0x3474a8['shift']());}catch(_0x5abac2){_0x3474a8['push'](_0x3474a8['shift']());}}}(a120_0x4d64,0x98278));import a120_0x4e47ee from'node:fs';import a120_0xae3625 from'node:path';import a120_0x446a1a from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a120_0xbf2119(0xbd);function isNonNumericVersion(_0x55dc68){const _0x6a9132=a120_0xbf2119,_0x442d2b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x442d2b['some'](_0x21f4ab=>_0x21f4ab[_0x6a9132(0xd4)](_0x55dc68));}function getInstalledVersion(_0x49e443,_0x21d706){const _0x27732d=a120_0xbf2119;try{const _0x14e8aa=a120_0xae3625[_0x27732d(0xda)](_0x49e443,_0x27732d(0xcf),_0x21d706,'package.json');if(a120_0x4e47ee[_0x27732d(0xd1)](_0x14e8aa)){const _0x5c7e2d=JSON[_0x27732d(0xd5)](a120_0x4e47ee[_0x27732d(0xbf)](_0x14e8aa,'utf-8'));return _0x5c7e2d[_0x27732d(0xc4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4ef49b=a120_0xbf2119;try{const _0x2534e4=await getCdnConfig();return _0x2534e4?.[_0x4ef49b(0xc2)]?.['node']?.[_0x4ef49b(0xc9)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x21d754=a120_0xbf2119;try{const _0x5913f3=await getCdnConfig();return _0x5913f3?.[_0x21d754(0xc2)]?.['node']?.[_0x21d754(0xd6)]||'@lovrabet/sdk';}catch{return _0x21d754(0xdb);}}export async function checkSdkVersion(_0x4fd3b4){const _0x7836a=a120_0xbf2119,_0x4af0fc=a120_0xae3625['join'](_0x4fd3b4,_0x7836a(0xbb)),[_0x3a62b1,_0x4ff2ca]=await Promise[_0x7836a(0xb9)]([getSdkStableVersion(),getSdkPackageName()]),_0x2f6ed4=_0x3a62b1||FALLBACK_MIN_SDK_VERSION;if(!a120_0x4e47ee[_0x7836a(0xd1)](_0x4af0fc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};try{const _0x13b5df=JSON[_0x7836a(0xd5)](a120_0x4e47ee[_0x7836a(0xbf)](_0x4af0fc,_0x7836a(0xb8))),_0x27cd71=_0x13b5df[_0x7836a(0xc5)]||{},_0x255307=_0x13b5df[_0x7836a(0xc3)]||{},_0x4c60ed=_0x27cd71[_0x4ff2ca]||_0x255307[_0x4ff2ca];if(!_0x4c60ed)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};let _0x20c37e=getInstalledVersion(_0x4fd3b4,_0x4ff2ca);!_0x20c37e&&(_0x20c37e=_0x4c60ed);if(isNonNumericVersion(_0x4c60ed))return{'installed':!![],'version':_0x20c37e,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};const _0x99992c=a120_0x446a1a[_0x7836a(0xd9)](_0x20c37e),_0x31bf54=a120_0x446a1a['coerce'](_0x2f6ed4),_0x474676=_0x99992c&&_0x31bf54?a120_0x446a1a['lt'](_0x99992c,_0x31bf54):![];return{'installed':!![],'version':_0x20c37e,'needsUpgrade':_0x474676,'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};}}export function checkSdkVersionSync(_0x10b1ac){const _0x3b08db=a120_0xbf2119,_0x4055d0=a120_0xae3625['join'](_0x10b1ac,_0x3b08db(0xbb)),_0x25f8ba=_0x3b08db(0xdb);if(!a120_0x4e47ee[_0x3b08db(0xd1)](_0x4055d0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};try{const _0x492124=JSON[_0x3b08db(0xd5)](a120_0x4e47ee[_0x3b08db(0xbf)](_0x4055d0,_0x3b08db(0xb8))),_0x26df44=_0x492124[_0x3b08db(0xc5)]||{},_0x35e2ed=_0x492124[_0x3b08db(0xc3)]||{},_0xae46bf=_0x26df44[_0x25f8ba]||_0x35e2ed[_0x25f8ba];if(!_0xae46bf)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};let _0x571601=getInstalledVersion(_0x10b1ac,_0x25f8ba);!_0x571601&&(_0x571601=_0xae46bf);if(isNonNumericVersion(_0xae46bf))return{'installed':!![],'version':_0x571601,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};const _0x5586e0=a120_0x446a1a['coerce'](_0x571601),_0x441294=_0x5586e0?a120_0x446a1a['lt'](_0x5586e0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x571601,'needsUpgrade':_0x441294,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};}}function a120_0x4d64(){const _0x1a86a4=['node_modules','31chXSbt','existsSync','↪\x20SDK\x20update\x20available','30125616VjsgeT','test','parse','packageName','\x20\x20\x20Stable\x20version:\x20','174012bdUdDb','coerce','join','@lovrabet/sdk','\x20\x20\x20Upgrade\x20command:\x20','utf8','all','npm\x20install\x20','package.json','820699juztzF','1.2.0','48CwQnwu','readFileSync','latest','473074EmbUnP','sdk','devDependencies','version','dependencies','3374949wwGYTY','160299MwoACT','log','stableVersion','1086KzRvjo','50YOWpgX','5kMtISK','80WXoqDk','\x1b[0m'];a120_0x4d64=function(){return _0x1a86a4;};return a120_0x4d64();}export function printSdkUpgradeWarning(_0x34def8){const _0x5d3c0e=a120_0xbf2119;if(!_0x34def8['needsUpgrade'])return;const _0x577575='\x1b[33m',_0x33840d=_0x5d3c0e(0xce),_0x4f221d='\x1b[1m',_0x16b19c=_0x34def8[_0x5d3c0e(0xd6)]||_0x5d3c0e(0xdb),_0x1d83e3=_0x34def8[_0x5d3c0e(0xc9)]||_0x34def8['minVersion'],_0x59d219=_0x5d3c0e(0xba)+_0x16b19c+'@'+(_0x1d83e3||_0x5d3c0e(0xc0));console['log'](),console[_0x5d3c0e(0xc8)](''+_0x577575+_0x4f221d+_0x5d3c0e(0xd2)+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+'\x20\x20\x20Current\x20version:\x20'+_0x16b19c+'@'+_0x34def8['version']+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+_0x5d3c0e(0xd7)+_0x1d83e3+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+_0x5d3c0e(0xb7)+_0x59d219+_0x33840d),console[_0x5d3c0e(0xc8)]();}
@@ -1 +1 @@
1
- (function(_0x2a3b33,_0x26ff6f){const _0x57916f=a123_0x2245,_0x26f441=_0x2a3b33();while(!![]){try{const _0x2327b5=-parseInt(_0x57916f(0x1ba))/0x1*(-parseInt(_0x57916f(0x1c6))/0x2)+-parseInt(_0x57916f(0x1be))/0x3*(-parseInt(_0x57916f(0x1c7))/0x4)+parseInt(_0x57916f(0x1bc))/0x5*(parseInt(_0x57916f(0x1cb))/0x6)+-parseInt(_0x57916f(0x1bf))/0x7*(-parseInt(_0x57916f(0x1b5))/0x8)+parseInt(_0x57916f(0x1bb))/0x9+-parseInt(_0x57916f(0x1c0))/0xa+parseInt(_0x57916f(0x1c4))/0xb*(-parseInt(_0x57916f(0x1ce))/0xc);if(_0x2327b5===_0x26ff6f)break;else _0x26f441['push'](_0x26f441['shift']());}catch(_0x46ee8c){_0x26f441['push'](_0x26f441['shift']());}}}(a123_0x5b37,0xaf099));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a123_0x2245(_0x7a5a6d,_0x174c7b){_0x7a5a6d=_0x7a5a6d-0x1b4;const _0x5b3793=a123_0x5b37();let _0x22453c=_0x5b3793[_0x7a5a6d];return _0x22453c;}import{fileURLToPath}from'node:url';function a123_0x5b37(){const _0x5a9a1a=['@latest','some','3656CNtwGM','↪\x20New\x20version\x20available','version','npm\x20install\x20-g\x20','cli','62ASHcnh','7840008uQWTSs','2147820nFVHXS','test','912903rwVNDc','16205fugypJ','4428950MmvxIq','needsUpgrade','log','\x20\x20\x20Upgrade\x20command:\x20','224015jBiWSp','\x20\x20\x20Stable\x20version:\x20','23096JdBFtg','8wZaffL','stableVersion','\x1b[0m','\x20\x20\x20Current\x20CLI\x20version:\x20','12pwFxtN','currentVersion','1.0.0','1740qhYXiR','parse'];a123_0x5b37=function(){return _0x5a9a1a;};return a123_0x5b37();}import a123_0x18547a from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x3563ae=a123_0x2245;try{const _0x394642=fileURLToPath(import.meta.url),_0x26a8fb=resolve(dirname(_0x394642),'../..'),_0x830d9c=resolve(_0x26a8fb,'package.json'),_0x43e378=JSON[_0x3563ae(0x1cf)](readFileSync(_0x830d9c,'utf-8'));return _0x43e378[_0x3563ae(0x1b7)]||_0x3563ae(0x1cd);}catch{return _0x3563ae(0x1cd);}}function isNonNumericVersion(_0x41092a){const _0x319aa5=a123_0x2245,_0x19c21a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x19c21a[_0x319aa5(0x1b4)](_0x22ebd9=>_0x22ebd9[_0x319aa5(0x1bd)](_0x41092a));}export async function checkCliVersion(){const _0x5ca9f3=a123_0x2245,_0x31e487=getCurrentCliVersion(),_0x1ba7a6=await getCdnConfig(),_0x4c10cb=_0x1ba7a6?.[_0x5ca9f3(0x1b9)]?.[_0x5ca9f3(0x1c8)]||null;let _0x554343=![];if(_0x4c10cb)try{const _0x3d915e=a123_0x18547a['coerce'](_0x31e487),_0x187e90=a123_0x18547a['coerce'](_0x4c10cb);_0x3d915e&&_0x187e90&&(_0x554343=a123_0x18547a['lt'](_0x3d915e,_0x187e90));}catch{_0x554343=![];}return{'currentVersion':_0x31e487,'stableVersion':_0x4c10cb,'needsUpgrade':_0x554343,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x418301){const _0x3838fc=a123_0x2245;if(!_0x418301[_0x3838fc(0x1c1)])return;const _0x1af219='\x1b[33m',_0x294310=_0x3838fc(0x1c9),_0x2444fb='\x1b[1m',_0xa4f334=_0x3838fc(0x1b8)+NPM_PACKAGE_NAME+_0x3838fc(0x1d0);console[_0x3838fc(0x1c2)](),console[_0x3838fc(0x1c2)](''+_0x1af219+_0x2444fb+_0x3838fc(0x1b6)+_0x294310),console[_0x3838fc(0x1c2)](_0x1af219+_0x3838fc(0x1ca)+_0x418301[_0x3838fc(0x1cc)]+_0x294310),console[_0x3838fc(0x1c2)](_0x1af219+_0x3838fc(0x1c5)+_0x418301[_0x3838fc(0x1c8)]+_0x294310),console[_0x3838fc(0x1c2)](_0x1af219+_0x3838fc(0x1c3)+_0xa4f334+_0x294310),console[_0x3838fc(0x1c2)]();}
1
+ (function(_0x28f7d7,_0x1c658e){const _0x29e80d=a121_0x4361,_0x17196a=_0x28f7d7();while(!![]){try{const _0x81ecc1=parseInt(_0x29e80d(0x179))/0x1+parseInt(_0x29e80d(0x16f))/0x2+-parseInt(_0x29e80d(0x17f))/0x3*(parseInt(_0x29e80d(0x176))/0x4)+parseInt(_0x29e80d(0x17e))/0x5*(parseInt(_0x29e80d(0x174))/0x6)+-parseInt(_0x29e80d(0x187))/0x7*(parseInt(_0x29e80d(0x16e))/0x8)+parseInt(_0x29e80d(0x17d))/0x9*(parseInt(_0x29e80d(0x17c))/0xa)+parseInt(_0x29e80d(0x180))/0xb;if(_0x81ecc1===_0x1c658e)break;else _0x17196a['push'](_0x17196a['shift']());}catch(_0x460764){_0x17196a['push'](_0x17196a['shift']());}}}(a121_0x12ca,0xb581f));import{readFileSync}from'node:fs';function a121_0x4361(_0x4471e8,_0xfb1f6d){_0x4471e8=_0x4471e8-0x16c;const _0x12ca46=a121_0x12ca();let _0x436163=_0x12ca46[_0x4471e8];return _0x436163;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a121_0x5c33a1 from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x550da3=a121_0x4361;try{const _0x3d29c3=fileURLToPath(import.meta.url),_0x4625dd=resolve(dirname(_0x3d29c3),_0x550da3(0x173)),_0x2ee065=resolve(_0x4625dd,'package.json'),_0x147375=JSON['parse'](readFileSync(_0x2ee065,_0x550da3(0x172)));return _0x147375[_0x550da3(0x178)]||_0x550da3(0x177);}catch{return _0x550da3(0x177);}}function a121_0x12ca(){const _0x497b6a=['177kfqfiO','1112441kNsudD','coerce','↪\x20New\x20version\x20available','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','cli','\x1b[1m','8498MIyxIy','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20-g\x20','some','5112EwAaMY','1122444oAStHw','log','stableVersion','utf-8','../..','76542zXZcFL','\x20\x20\x20Stable\x20version:\x20','6528HuozCz','1.0.0','version','336466wCSxim','@latest','needsUpgrade','10iDypCJ','3368583iAEEBr','95UgilMb'];a121_0x12ca=function(){return _0x497b6a;};return a121_0x12ca();}function isNonNumericVersion(_0x445707){const _0x2b5ef5=a121_0x4361,_0x145f06=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x145f06[_0x2b5ef5(0x16d)](_0x41e73b=>_0x41e73b['test'](_0x445707));}export async function checkCliVersion(){const _0x39eec2=a121_0x4361,_0x4c3241=getCurrentCliVersion(),_0x4bb41b=await getCdnConfig(),_0x4610c7=_0x4bb41b?.[_0x39eec2(0x185)]?.[_0x39eec2(0x171)]||null;let _0x2363d9=![];if(_0x4610c7)try{const _0x3f5eb0=a121_0x5c33a1[_0x39eec2(0x181)](_0x4c3241),_0x1ad758=a121_0x5c33a1[_0x39eec2(0x181)](_0x4610c7);_0x3f5eb0&&_0x1ad758&&(_0x2363d9=a121_0x5c33a1['lt'](_0x3f5eb0,_0x1ad758));}catch{_0x2363d9=![];}return{'currentVersion':_0x4c3241,'stableVersion':_0x4610c7,'needsUpgrade':_0x2363d9,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x42ce94){const _0x15dfc1=a121_0x4361;if(!_0x42ce94[_0x15dfc1(0x17b)])return;const _0x2043c7='\x1b[33m',_0x267213='\x1b[0m',_0x21fe21=_0x15dfc1(0x186),_0xfddc4=_0x15dfc1(0x16c)+NPM_PACKAGE_NAME+_0x15dfc1(0x17a);console[_0x15dfc1(0x170)](),console['log'](''+_0x2043c7+_0x21fe21+_0x15dfc1(0x182)+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x184)+_0x42ce94[_0x15dfc1(0x183)]+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x175)+_0x42ce94[_0x15dfc1(0x171)]+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x188)+_0xfddc4+_0x267213),console['log']();}
@@ -1 +1 @@
1
- (function(_0x4e0a76,_0x5d74db){const _0x1f67a7=a124_0x3026,_0xa8ebe5=_0x4e0a76();while(!![]){try{const _0x366cc5=-parseInt(_0x1f67a7(0x181))/0x1+parseInt(_0x1f67a7(0x182))/0x2+parseInt(_0x1f67a7(0x186))/0x3+-parseInt(_0x1f67a7(0x18d))/0x4*(-parseInt(_0x1f67a7(0x17e))/0x5)+parseInt(_0x1f67a7(0x184))/0x6*(parseInt(_0x1f67a7(0x179))/0x7)+parseInt(_0x1f67a7(0x191))/0x8*(parseInt(_0x1f67a7(0x17f))/0x9)+-parseInt(_0x1f67a7(0x192))/0xa*(parseInt(_0x1f67a7(0x18c))/0xb);if(_0x366cc5===_0x5d74db)break;else _0xa8ebe5['push'](_0xa8ebe5['shift']());}catch(_0x3c69e1){_0xa8ebe5['push'](_0xa8ebe5['shift']());}}}(a124_0x5772,0x610b7));function a124_0x5772(){const _0x2838ee=['length','32Sfjaej','7239940wrHCbR','object','apiDir','21cFgddm','defaultApp','env','cookie','apps','95685jRhePa','1017369NpYLpz','replace','245184YeLdDh','602116AHomfm','map','178998mDxAiI','trim','1227390jNNPUy','appcode','https://g.lovrabet.com/dist/lovrabet-skill','values','app','template_base_url','11aXxbhZ','24jhZAov','keys','string'];a124_0x5772=function(){return _0x2838ee;};return a124_0x5772();}function a124_0x3026(_0x2993dc,_0x1aba15){_0x2993dc=_0x2993dc-0x179;const _0x57720d=a124_0x5772();let _0x30261b=_0x57720d[_0x2993dc];return _0x30261b;}import{initEnv}from'../constant/env.js';import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x608551){const _0x1ca7da=a124_0x3026,_0x1b0f09=readRawConfig(_0x608551);return _0x1b0f09['env']&&typeof _0x1b0f09[_0x1ca7da(0x17b)]===_0x1ca7da(0x18f)&&initEnv(_0x1b0f09[_0x1ca7da(0x17b)]),_0x1b0f09;}export function getConfigAppCode(){const _0x501fb7=a124_0x3026,_0x2deca0=readRawConfig();if(_0x2deca0[_0x501fb7(0x17d)]&&typeof _0x2deca0[_0x501fb7(0x17d)]===_0x501fb7(0x193)){const _0x1cb89e=_0x2deca0['defaultApp'];if(_0x1cb89e&&_0x2deca0[_0x501fb7(0x17d)][_0x1cb89e]?.[_0x501fb7(0x187)])return String(_0x2deca0[_0x501fb7(0x17d)][_0x1cb89e]['appcode'])[_0x501fb7(0x185)]();const _0x371b50=Object[_0x501fb7(0x189)](_0x2deca0[_0x501fb7(0x17d)])[0x0];if(_0x371b50?.['appcode'])return String(_0x371b50[_0x501fb7(0x187)])[_0x501fb7(0x185)]();}const _0x311582=_0x2deca0[_0x501fb7(0x187)]||_0x2deca0[_0x501fb7(0x18a)];if(typeof _0x311582!==_0x501fb7(0x18f)||_0x311582['trim']()==='')return undefined;return _0x311582[_0x501fb7(0x185)]();}export function getMultiAppConfigs(){const _0xada48a=a124_0x3026,_0x48b6b0=readRawConfig(),_0x2272b7=_0x48b6b0['apps'];if(!_0x2272b7||typeof _0x2272b7!==_0xada48a(0x193)||Object[_0xada48a(0x18e)](_0x2272b7)[_0xada48a(0x190)]===0x0)return null;const _0x5cc8f3=_0x48b6b0[_0xada48a(0x17a)];return Object['entries'](_0x2272b7)[_0xada48a(0x183)](([_0x23a28d,_0x30c716])=>({'name':_0x23a28d,'appcode':_0x30c716?.[_0xada48a(0x187)]||'','isDefault':_0x23a28d===_0x5cc8f3,'env':_0x30c716?.[_0xada48a(0x17b)],'apiDir':_0x30c716?.[_0xada48a(0x194)],'cookie':_0x30c716?.[_0xada48a(0x17c)]||undefined}))['filter'](_0x41eed4=>_0x41eed4[_0xada48a(0x187)]);}export function getTemplateBaseUrl(){const _0x27baec=a124_0x3026,_0x701685=readRawConfig();if(_0x701685['template_base_url']&&typeof _0x701685[_0x27baec(0x18b)]===_0x27baec(0x18f))return _0x701685[_0x27baec(0x18b)][_0x27baec(0x180)](/\/$/,'');return _0x27baec(0x188);}
1
+ (function(_0x835266,_0x5774f1){const _0x451f5f=a122_0x3f6f,_0x3a0e31=_0x835266();while(!![]){try{const _0xdd98c6=parseInt(_0x451f5f(0x1a7))/0x1*(parseInt(_0x451f5f(0x1a5))/0x2)+-parseInt(_0x451f5f(0x1a3))/0x3+-parseInt(_0x451f5f(0x1ac))/0x4*(-parseInt(_0x451f5f(0x19e))/0x5)+-parseInt(_0x451f5f(0x194))/0x6+-parseInt(_0x451f5f(0x1a4))/0x7*(parseInt(_0x451f5f(0x1a8))/0x8)+-parseInt(_0x451f5f(0x19d))/0x9*(-parseInt(_0x451f5f(0x196))/0xa)+-parseInt(_0x451f5f(0x1a1))/0xb;if(_0xdd98c6===_0x5774f1)break;else _0x3a0e31['push'](_0x3a0e31['shift']());}catch(_0x4fbe2a){_0x3a0e31['push'](_0x3a0e31['shift']());}}}(a122_0x1a94,0xb3816));import{initEnv}from'../constant/env.js';function a122_0x1a94(){const _0x3e8847=['45IYlbbw','265gaZeho','app','apiDir','1545654UAYtBb','replace','1229376vSlZEm','52493raYbyH','6408kHzJiB','appcode','251XAtqcC','512YNJdnB','defaultApp','string','keys','55228sIUsmR','entries','env','object','6287064xRobji','cookie','2554730Pzntig','apps','trim','map','https://g.lovrabet.com/dist/lovrabet-skill','values','template_base_url'];a122_0x1a94=function(){return _0x3e8847;};return a122_0x1a94();}import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a122_0x3f6f(_0x29969f,_0x1c7429){_0x29969f=_0x29969f-0x194;const _0x1a94d1=a122_0x1a94();let _0x3f6f44=_0x1a94d1[_0x29969f];return _0x3f6f44;}export{isInProject}from'../context.js';export function readConfig(_0x4ac76c){const _0x57cb7f=a122_0x3f6f,_0x12f017=readRawConfig(_0x4ac76c);return _0x12f017['env']&&typeof _0x12f017[_0x57cb7f(0x1ae)]==='string'&&initEnv(_0x12f017[_0x57cb7f(0x1ae)]),_0x12f017;}export function getConfigAppCode(){const _0x5ce275=a122_0x3f6f,_0x223866=readRawConfig();if(_0x223866[_0x5ce275(0x197)]&&typeof _0x223866[_0x5ce275(0x197)]===_0x5ce275(0x1af)){const _0x72d582=_0x223866[_0x5ce275(0x1a9)];if(_0x72d582&&_0x223866[_0x5ce275(0x197)][_0x72d582]?.[_0x5ce275(0x1a6)])return String(_0x223866[_0x5ce275(0x197)][_0x72d582]['appcode'])[_0x5ce275(0x198)]();const _0x51cc9b=Object[_0x5ce275(0x19b)](_0x223866[_0x5ce275(0x197)])[0x0];if(_0x51cc9b?.['appcode'])return String(_0x51cc9b['appcode'])[_0x5ce275(0x198)]();}const _0x72cc87=_0x223866[_0x5ce275(0x1a6)]||_0x223866[_0x5ce275(0x19f)];if(typeof _0x72cc87!==_0x5ce275(0x1aa)||_0x72cc87[_0x5ce275(0x198)]()==='')return undefined;return _0x72cc87[_0x5ce275(0x198)]();}export function getMultiAppConfigs(){const _0x53793f=a122_0x3f6f,_0x5a7a4a=readRawConfig(),_0x2f9f5f=_0x5a7a4a[_0x53793f(0x197)];if(!_0x2f9f5f||typeof _0x2f9f5f!==_0x53793f(0x1af)||Object[_0x53793f(0x1ab)](_0x2f9f5f)['length']===0x0)return null;const _0x2ca972=_0x5a7a4a['defaultApp'];return Object[_0x53793f(0x1ad)](_0x2f9f5f)[_0x53793f(0x199)](([_0x415b61,_0x2f23cb])=>({'name':_0x415b61,'appcode':_0x2f23cb?.[_0x53793f(0x1a6)]||'','isDefault':_0x415b61===_0x2ca972,'env':_0x2f23cb?.[_0x53793f(0x1ae)],'apiDir':_0x2f23cb?.[_0x53793f(0x1a0)],'cookie':_0x2f23cb?.[_0x53793f(0x195)]||undefined}))['filter'](_0x402e4f=>_0x402e4f[_0x53793f(0x1a6)]);}export function getTemplateBaseUrl(){const _0x2ad64d=a122_0x3f6f,_0x456dcf=readRawConfig();if(_0x456dcf['template_base_url']&&typeof _0x456dcf[_0x2ad64d(0x19c)]==='string')return _0x456dcf['template_base_url'][_0x2ad64d(0x1a2)](/\/$/,'');return _0x2ad64d(0x19a);}
@@ -1 +1 @@
1
- (function(_0x4583b4,_0x1a8ccd){const _0x300e5b=a125_0x593b,_0x5e2eaf=_0x4583b4();while(!![]){try{const _0x3c2031=-parseInt(_0x300e5b(0x1dd))/0x1+parseInt(_0x300e5b(0x1d9))/0x2+parseInt(_0x300e5b(0x1d3))/0x3*(parseInt(_0x300e5b(0x1d7))/0x4)+-parseInt(_0x300e5b(0x1d4))/0x5*(parseInt(_0x300e5b(0x1d8))/0x6)+parseInt(_0x300e5b(0x1d2))/0x7*(-parseInt(_0x300e5b(0x1d0))/0x8)+-parseInt(_0x300e5b(0x1da))/0x9+parseInt(_0x300e5b(0x1d1))/0xa;if(_0x3c2031===_0x1a8ccd)break;else _0x5e2eaf['push'](_0x5e2eaf['shift']());}catch(_0x329ce0){_0x5e2eaf['push'](_0x5e2eaf['shift']());}}}(a125_0x9473,0x78460));function a125_0x593b(_0x5a96a6,_0x80eb70){_0x5a96a6=_0x5a96a6-0x1d0;const _0x9473f3=a125_0x9473();let _0x593b02=_0x9473f3[_0x5a96a6];return _0x593b02;}function a125_0x9473(){const _0x29d095=['8118081pNfrnA','name','error','549383inSmzJ','join','16CdJDOe','17056850smgkaR','3202493XFBiJV','823206LxDIqP','150pQCKix','copyFileSync','isDirectory','4VNoBqV','10380DwKKSk','1861686WWxZmL'];a125_0x9473=function(){return _0x29d095;};return a125_0x9473();}import a125_0x448e72 from'node:path';import a125_0x30aa82 from'node:fs';export async function copyDirectory(_0x18fbc5,_0x5daf00){const _0x1310df=a125_0x593b;try{const _0x7c3de4=a125_0x30aa82['readdirSync'](_0x18fbc5,{'withFileTypes':!![]});a125_0x30aa82['mkdirSync'](_0x5daf00,{'recursive':!![]});for(const _0x1818c8 of _0x7c3de4){const _0x448663=a125_0x448e72[_0x1310df(0x1de)](_0x18fbc5,_0x1818c8[_0x1310df(0x1db)]),_0x36647d=a125_0x448e72[_0x1310df(0x1de)](_0x5daf00,_0x1818c8[_0x1310df(0x1db)]);_0x1818c8[_0x1310df(0x1d6)]()?await copyDirectory(_0x448663,_0x36647d):a125_0x30aa82[_0x1310df(0x1d5)](_0x448663,_0x36647d);}}catch(_0x528ba1){console[_0x1310df(0x1dc)]('复制目录时出错:',_0x528ba1);}}
1
+ function a123_0x2bca(){const _0x3ad02a=['readdirSync','13665KXbEuo','name','复制目录时出错:','284568GOKFYt','2559375pQKxDK','error','isDirectory','1719ouJVLZ','copyFileSync','mkdirSync','415689VFGwyq','join','628KNxSvx','552974MPXPwY','8688VaUaSf','767430lEWmRt'];a123_0x2bca=function(){return _0x3ad02a;};return a123_0x2bca();}(function(_0xb949bf,_0x269893){const _0x835317=a123_0x3435,_0x111b31=_0xb949bf();while(!![]){try{const _0x5320fc=parseInt(_0x835317(0x1d1))/0x1+parseInt(_0x835317(0x1ca))/0x2+parseInt(_0x835317(0x1c7))/0x3+-parseInt(_0x835317(0x1c9))/0x4*(parseInt(_0x835317(0x1ce))/0x5)+parseInt(_0x835317(0x1cc))/0x6+-parseInt(_0x835317(0x1d2))/0x7+parseInt(_0x835317(0x1cb))/0x8*(parseInt(_0x835317(0x1c4))/0x9);if(_0x5320fc===_0x269893)break;else _0x111b31['push'](_0x111b31['shift']());}catch(_0x280bf1){_0x111b31['push'](_0x111b31['shift']());}}}(a123_0x2bca,0x3aa73));function a123_0x3435(_0x5c0357,_0x4898c2){_0x5c0357=_0x5c0357-0x1c2;const _0x2bca21=a123_0x2bca();let _0x34355a=_0x2bca21[_0x5c0357];return _0x34355a;}import a123_0xf1082a from'node:path';import a123_0xb63ffe from'node:fs';export async function copyDirectory(_0x383a35,_0x298d10){const _0x707386=a123_0x3435;try{const _0x1aee46=a123_0xb63ffe[_0x707386(0x1cd)](_0x383a35,{'withFileTypes':!![]});a123_0xb63ffe[_0x707386(0x1c6)](_0x298d10,{'recursive':!![]});for(const _0x58a9f5 of _0x1aee46){const _0x7a6fdb=a123_0xf1082a[_0x707386(0x1c8)](_0x383a35,_0x58a9f5[_0x707386(0x1cf)]),_0x28df15=a123_0xf1082a['join'](_0x298d10,_0x58a9f5[_0x707386(0x1cf)]);_0x58a9f5[_0x707386(0x1c3)]()?await copyDirectory(_0x7a6fdb,_0x28df15):a123_0xb63ffe[_0x707386(0x1c5)](_0x7a6fdb,_0x28df15);}}catch(_0x529897){console[_0x707386(0x1c2)](_0x707386(0x1d0),_0x529897);}}
@@ -1 +1 @@
1
- (function(_0x4d2ea9,_0x184cc0){const _0x53182a=a126_0x5407,_0x31626d=_0x4d2ea9();while(!![]){try{const _0x3994db=parseInt(_0x53182a(0x1b8))/0x1+-parseInt(_0x53182a(0x1b6))/0x2+parseInt(_0x53182a(0x1bc))/0x3*(parseInt(_0x53182a(0x1be))/0x4)+parseInt(_0x53182a(0x1ba))/0x5+-parseInt(_0x53182a(0x1b7))/0x6+parseInt(_0x53182a(0x1b5))/0x7*(parseInt(_0x53182a(0x1bd))/0x8)+parseInt(_0x53182a(0x1b4))/0x9*(parseInt(_0x53182a(0x1bb))/0xa);if(_0x3994db===_0x184cc0)break;else _0x31626d['push'](_0x31626d['shift']());}catch(_0xda1b09){_0x31626d['push'](_0x31626d['shift']());}}}(a126_0x45fc,0x2fb8f));function a126_0x5407(_0x27acf6,_0x14f3eb){_0x27acf6=_0x27acf6-0x1b4;const _0x45fcdd=a126_0x45fc();let _0x5407f1=_0x45fcdd[_0x27acf6];return _0x5407f1;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a126_0x45fc(){const _0x5904e3=['759306HtxgBv','1689798RONKda','104144XpNabB','isDirectory','298605smxhJA','20870FBdhHt','18NUNMAy','40tyqbRv','128372jRsNPp','963wGCARw','387835yYhETN'];a126_0x45fc=function(){return _0x5904e3;};return a126_0x45fc();}import{join}from'node:path';export async function copyDir(_0x47e1ff,_0x2079a4){const _0x266a56=a126_0x5407,_0xb60925=statSync(_0x47e1ff);if(_0xb60925[_0x266a56(0x1b9)]()){!existsSync(_0x2079a4)&&mkdirSync(_0x2079a4,{'recursive':!![]});const _0x5b5738=readdirSync(_0x47e1ff);for(const _0xe3d3f4 of _0x5b5738){await copyDir(join(_0x47e1ff,_0xe3d3f4),join(_0x2079a4,_0xe3d3f4));}}else copyFileSync(_0x47e1ff,_0x2079a4);}export function ensureDir(_0xc00e3a){!existsSync(_0xc00e3a)&&mkdirSync(_0xc00e3a,{'recursive':!![]});}export function pathExists(_0xafe866){return existsSync(_0xafe866);}
1
+ function a124_0x1caf(_0x57c313,_0x1573aa){_0x57c313=_0x57c313-0xbf;const _0x5ae951=a124_0x5ae9();let _0x1caf94=_0x5ae951[_0x57c313];return _0x1caf94;}(function(_0x34ea16,_0x55047a){const _0x2bed64=a124_0x1caf,_0x422ef2=_0x34ea16();while(!![]){try{const _0xd5f90=parseInt(_0x2bed64(0xca))/0x1+parseInt(_0x2bed64(0xc0))/0x2+parseInt(_0x2bed64(0xc8))/0x3+parseInt(_0x2bed64(0xc3))/0x4*(-parseInt(_0x2bed64(0xc7))/0x5)+parseInt(_0x2bed64(0xc2))/0x6*(-parseInt(_0x2bed64(0xc6))/0x7)+parseInt(_0x2bed64(0xc5))/0x8*(-parseInt(_0x2bed64(0xbf))/0x9)+parseInt(_0x2bed64(0xc9))/0xa*(-parseInt(_0x2bed64(0xc4))/0xb);if(_0xd5f90===_0x55047a)break;else _0x422ef2['push'](_0x422ef2['shift']());}catch(_0x8ea5ce){_0x422ef2['push'](_0x422ef2['shift']());}}}(a124_0x5ae9,0xaaa72));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a124_0x5ae9(){const _0x2562fb=['417230Woyybb','1146593bXmvvk','10269bliKOs','1748834DjBwDX','isDirectory','6EJRAYJ','501924CUMHsw','209VDkyRS','72jTULaT','7977186tBOPvE','5ISjwZY','2238207dEzsMH'];a124_0x5ae9=function(){return _0x2562fb;};return a124_0x5ae9();}export async function copyDir(_0x16901f,_0x405a23){const _0x84b8ad=a124_0x1caf,_0x48fdf2=statSync(_0x16901f);if(_0x48fdf2[_0x84b8ad(0xc1)]()){!existsSync(_0x405a23)&&mkdirSync(_0x405a23,{'recursive':!![]});const _0x52cc97=readdirSync(_0x16901f);for(const _0x337b9e of _0x52cc97){await copyDir(join(_0x16901f,_0x337b9e),join(_0x405a23,_0x337b9e));}}else copyFileSync(_0x16901f,_0x405a23);}export function ensureDir(_0x1d391d){!existsSync(_0x1d391d)&&mkdirSync(_0x1d391d,{'recursive':!![]});}export function pathExists(_0x5e35cb){return existsSync(_0x5e35cb);}