@lovrabet/rabetbase-cli 2.0.10 → 2.0.11

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 (138) 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 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/constant/paths.js +1 -1
  91. package/lib/context.js +1 -1
  92. package/lib/core/alias-resolver.js +1 -1
  93. package/lib/core/api-client.js +1 -1
  94. package/lib/core/bff/config.js +1 -1
  95. package/lib/core/bff/file-system.js +1 -1
  96. package/lib/core/bff/hash.js +1 -1
  97. package/lib/core/bff/lock.js +1 -1
  98. package/lib/core/bff/utils.js +1 -1
  99. package/lib/core/db-resolver.js +1 -1
  100. package/lib/core/sql-validator.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/build-all-flags.js +1 -1
  103. package/lib/framework/flags.js +1 -1
  104. package/lib/framework/help.js +1 -1
  105. package/lib/framework/index.js +1 -1
  106. package/lib/framework/output.js +1 -1
  107. package/lib/framework/response.js +1 -1
  108. package/lib/framework/runner.js +1 -1
  109. package/lib/framework/schema-export.js +1 -1
  110. package/lib/framework/types.js +1 -1
  111. package/lib/generated/build-info.js +1 -1
  112. package/lib/help.js +1 -1
  113. package/lib/skills/main.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/telemetry/cli-command-trace.js +1 -1
  116. package/lib/telemetry/cli-help-trace.js +1 -1
  117. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  118. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  119. package/lib/telemetry/send-cli-trace-log.js +1 -1
  120. package/lib/utils/ai_config.js +1 -1
  121. package/lib/utils/apply-jq-filter.js +1 -1
  122. package/lib/utils/cdn-config.js +1 -1
  123. package/lib/utils/check-sdk-version.js +1 -1
  124. package/lib/utils/cli-version-check.js +1 -1
  125. package/lib/utils/config.js +1 -1
  126. package/lib/utils/copy-directory.js +1 -1
  127. package/lib/utils/file-utils.js +1 -1
  128. package/lib/utils/guides-cdn.js +1 -1
  129. package/lib/utils/http-client.js +1 -1
  130. package/lib/utils/is-non-interactive.js +1 -1
  131. package/lib/utils/logger.js +1 -1
  132. package/lib/utils/platform.js +1 -1
  133. package/lib/utils/rules-cdn.js +1 -1
  134. package/lib/utils/sleep.js +1 -1
  135. package/lib/utils/template-replacer.js +1 -1
  136. package/lib/utils/version.js +1 -1
  137. package/lib/utils/with-active-cookie.js +1 -1
  138. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4ca33e,_0x2d6c0a){const _0x2ce653=a109_0x5856,_0x51bf3f=_0x4ca33e();while(!![]){try{const _0x10bfd2=-parseInt(_0x2ce653(0x1f3))/0x1*(parseInt(_0x2ce653(0x1df))/0x2)+-parseInt(_0x2ce653(0x1cc))/0x3+-parseInt(_0x2ce653(0x200))/0x4*(-parseInt(_0x2ce653(0x1d5))/0x5)+-parseInt(_0x2ce653(0x1fd))/0x6+parseInt(_0x2ce653(0x1c5))/0x7*(-parseInt(_0x2ce653(0x205))/0x8)+-parseInt(_0x2ce653(0x1cb))/0x9*(-parseInt(_0x2ce653(0x213))/0xa)+parseInt(_0x2ce653(0x1c9))/0xb*(parseInt(_0x2ce653(0x1cd))/0xc);if(_0x10bfd2===_0x2d6c0a)break;else _0x51bf3f['push'](_0x51bf3f['shift']());}catch(_0x59ce4d){_0x51bf3f['push'](_0x51bf3f['shift']());}}}(a109_0x243c,0xb0e7c));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a109_0x5856(_0x2b1e80,_0x916324){_0x2b1e80=_0x2b1e80-0x1c4;const _0x243c17=a109_0x243c();let _0x585688=_0x243c17[_0x2b1e80];return _0x585688;}export async function runCommand(_0x46f053,_0x455e62){const _0x55d536=a109_0x5856,_0x32aba0=CLI_BIN_NAME+'\x20'+_0x46f053[_0x55d536(0x1eb)]+'\x20'+_0x46f053[_0x55d536(0x210)],_0x268333=parseFlags(_0x46f053[_0x55d536(0x1f4)],_0x455e62['rawFlags']);validateFlags(_0x46f053[_0x55d536(0x1f4)],_0x268333,_0x32aba0);if(!_0x268333[_0x55d536(0x1f6)]&&_0x455e62['riskLevel']&&riskLevelOrder(_0x46f053['risk'])>riskLevelOrder(_0x455e62['riskLevel'])){if(_0x455e62[_0x55d536(0x1db)])throw CliErrors[_0x55d536(0x1f9)](_0x55d536(0x204)+_0x32aba0+_0x55d536(0x1e1)+_0x46f053[_0x55d536(0x1ed)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x455e62[_0x55d536(0x20a)]+'\x22.');throw CliErrors[_0x55d536(0x1f9)](_0x55d536(0x204)+_0x32aba0+'`\x20has\x20risk\x20level\x20\x22'+_0x46f053['risk']+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x455e62['riskLevel']+_0x55d536(0x206)+(_0x55d536(0x1ce)+_0x46f053['risk']+_0x55d536(0x20e)));}const _0x287538=_0x455e62[_0x55d536(0x1f2)]||DEFAULT_API_DIR;resolveAliasToCode(_0x46f053,_0x268333,_0x287538,_0x32aba0);let _0x1afc40='';if(_0x46f053[_0x55d536(0x1e9)]!==![]){_0x1afc40=_0x455e62[_0x55d536(0x1ee)]();if(!_0x1afc40)throw CliErrors[_0x55d536(0x1e5)]();const {setActiveCookie:_0x5dd651}=await import(_0x55d536(0x1c7));_0x5dd651(_0x1afc40);}let _0x317c6b='';if(_0x46f053[_0x55d536(0x1f7)]!==![]){_0x317c6b=_0x455e62[_0x55d536(0x1d1)]()??'';if(!_0x317c6b)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}let _0x334537=resolveFormat(_0x268333,_0x46f053,_0x455e62[_0x55d536(0x1ca)]);const _0x29a53b=resolveJqFilter(_0x268333);_0x29a53b&&_0x334537===_0x55d536(0x214)&&(_0x334537=_0x55d536(0x20c));if(_0x29a53b&&_0x334537!=='json'&&_0x334537!==_0x55d536(0x20f))throw CliErrors[_0x55d536(0x1f9)](_0x55d536(0x1d9)+_0x334537+').');const _0x2316d8=buildRuntimeContext({'appCode':_0x317c6b,'cookie':_0x1afc40,'apiDomain':_0x455e62[_0x55d536(0x1e2)](),'format':_0x334537,'jqFilter':_0x29a53b,'flags':_0x268333,'def':_0x46f053,'nonInteractive':_0x455e62[_0x55d536(0x1db)],'defaultPageSize':_0x455e62['defaultPageSize'],'defaultVerbose':_0x455e62[_0x55d536(0x1c8)],'apiDir':_0x287538,'selectedAppName':_0x455e62[_0x55d536(0x211)],'args':_0x455e62[_0x55d536(0x1f1)]??[]});_0x46f053[_0x55d536(0x1d2)]&&await _0x46f053['validate'](_0x2316d8);if(_0x268333[_0x55d536(0x1f6)]){if(!_0x46f053[_0x55d536(0x1ef)])throw CliErrors[_0x55d536(0x1f9)](_0x55d536(0x1cf)+_0x32aba0+'`.');const _0x318ae2=await _0x46f053[_0x55d536(0x1ef)](_0x2316d8);formatOutput({'ok':!![],'data':_0x318ae2},{'command':_0x32aba0,'risk':_0x46f053[_0x55d536(0x1ed)],'format':_0x334537,'dryRun':!![],'jqFilter':_0x29a53b});return;}if(_0x46f053[_0x55d536(0x1ed)]===_0x55d536(0x1d8)&&!_0x268333['yes']){if(_0x455e62[_0x55d536(0x1db)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x32aba0+_0x55d536(0x207));await requireConfirmation(_0x32aba0);}const _0x5cbdec=await _0x46f053[_0x55d536(0x202)](_0x2316d8);formatOutput(_0x5cbdec,{'command':_0x32aba0,'risk':_0x46f053[_0x55d536(0x1ed)],'format':_0x334537,'jqFilter':_0x29a53b});}function buildRuntimeContext(_0x52a6b4){const _0x5184fb=a109_0x5856,{flags:_0x2e5db9,def:_0x139eab}=_0x52a6b4,_0x8adc5f=CLI_BIN_NAME+'\x20'+_0x139eab[_0x5184fb(0x1eb)]+'\x20'+_0x139eab[_0x5184fb(0x210)];return{'appCode':_0x52a6b4[_0x5184fb(0x1ec)],'cookie':_0x52a6b4[_0x5184fb(0x1d4)],'apiDomain':_0x52a6b4[_0x5184fb(0x1d7)],'format':_0x52a6b4[_0x5184fb(0x1dd)],'nonInteractive':_0x52a6b4[_0x5184fb(0x1f8)],'apiDir':_0x52a6b4[_0x5184fb(0x1f2)],'selectedAppName':_0x52a6b4[_0x5184fb(0x211)],'args':_0x52a6b4['args'],'str'(_0x5c4b1f){return String(_0x2e5db9[_0x5c4b1f]??'');},'bool'(_0x2b0bd4){const _0x3feeaf=_0x5184fb;if(_0x2e5db9[_0x2b0bd4]===!![])return!![];if(_0x2b0bd4===_0x3feeaf(0x201)&&_0x52a6b4['defaultVerbose'])return!![];return![];},'num'(_0x25ac03,_0xee667b){const _0x40cc3d=_0x5184fb,_0x3685ad=_0x2e5db9[_0x25ac03];if(typeof _0x3685ad===_0x40cc3d(0x1ff))return _0x3685ad;if(_0x25ac03===_0x40cc3d(0x1e6)&&_0x52a6b4[_0x40cc3d(0x1e7)]!=null)return _0x52a6b4[_0x40cc3d(0x1e7)];return _0xee667b??0x0;},'flag'(_0x463e50){return _0x2e5db9[_0x463e50];},'output'(_0x572405){const _0x519310=_0x5184fb;formatOutput(_0x572405,{'command':_0x8adc5f,'risk':_0x139eab[_0x519310(0x1ed)],'format':_0x52a6b4[_0x519310(0x1dd)],'jqFilter':_0x52a6b4['jqFilter']});}};}function resolveJqFilter(_0x8c69f1){const _0x5d134e=_0x8c69f1['jq'];if(_0x5d134e===undefined||_0x5d134e===null)return undefined;const _0x520d54=String(_0x5d134e)['trim']();return _0x520d54===''?undefined:_0x520d54;}function resolveFormat(_0x20520f,_0x2fe883,_0x1e790e){const _0x539fc1=a109_0x5856;if(_0x2fe883['hasFormat']===![])return'pretty';const _0xc4d897=normalizeLegacyOutputFormat(_0x20520f[_0x539fc1(0x1dd)]);if(_0xc4d897)return _0xc4d897;const _0x532b02=normalizeLegacyOutputFormat(_0x1e790e);if(_0x532b02)return _0x532b02;const _0x5c0d2e=normalizeLegacyOutputFormat(_0x2fe883[_0x539fc1(0x1da)]);if(_0x5c0d2e)return _0x5c0d2e;return'pretty';}function a109_0x243c(){const _0x42db30=['4188465mvVCCu','55572gCPnHm','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','--dry-run\x20is\x20not\x20supported\x20for\x20`','some','resolveAppCode','validate','`\x20requires\x20either\x20--code\x20or\x20--alias.','cookie','6045LcLVul','No\x20api.ts\x20found\x20in\x20','apiDomain','high-risk-write','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','defaultOutputFormat','isNonInteractive','code','format','stderr','2eNUtCu','name','`\x20has\x20risk\x20level\x20\x22','resolveApiDomain','alias','string','authRequired','pagesize','defaultPageSize','createInterface','requiresAuth','.\x20Run\x20`','service','appCode','risk','resolveCookie','dryRun','length','args','apiDir','324871NVERqy','flags','cancelled','dry-run','requiresAppCode','nonInteractive','validation','yes','Unknown\x20alias\x20\x22','close','2143710aiWbhh','\x20api\x20pull`\x20first.','number','168CcuDJD','verbose','execute','\x22.\x20','Command\x20`','3896BhStxB','\x22.\x0a','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','toLowerCase','map','riskLevel','⚠\x20\x20High-risk\x20operation:\x20','json','type','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','compress','command','selectedAppName','stdin','1810PmtUNv','pretty','question','19677hNgHka','Operation\x20cancelled\x20by\x20user.','../core/api-client.js','defaultVerbose','7447vRbSwj','defaultFormat','49023lxWrQF'];a109_0x243c=function(){return _0x42db30;};return a109_0x243c();}async function requireConfirmation(_0xc2153f){const _0xc4eb05=a109_0x5856,_0x2c895d=await import('node:readline'),_0x3f45d7=_0x2c895d[_0xc4eb05(0x1e8)]({'input':process[_0xc4eb05(0x212)],'output':process[_0xc4eb05(0x1de)]});return new Promise((_0x790b43,_0x55392d)=>{const _0x2e43c7=_0xc4eb05;_0x3f45d7[_0x2e43c7(0x1c4)](_0x2e43c7(0x20b)+_0xc2153f+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x1f189e=>{const _0x24ebe4=_0x2e43c7;_0x3f45d7[_0x24ebe4(0x1fc)](),_0x1f189e[_0x24ebe4(0x208)]()==='y'||_0x1f189e['toLowerCase']()===_0x24ebe4(0x1fa)?_0x790b43():_0x55392d(CliErrors[_0x24ebe4(0x1f5)](_0x24ebe4(0x1c6)));});});}function resolveAliasToCode(_0x43123f,_0x4903e2,_0x4d2543,_0x19a3d5){const _0x25195e=a109_0x5856,_0x3125ff=_0x43123f['flags'][_0x25195e(0x1d0)](_0x12a9c3=>_0x12a9c3[_0x25195e(0x1e0)]==='code'&&_0x12a9c3['type']===_0x25195e(0x1e4)),_0x23c24e=_0x43123f[_0x25195e(0x1f4)][_0x25195e(0x1d0)](_0x446e9a=>_0x446e9a[_0x25195e(0x1e0)]===_0x25195e(0x1e3)&&_0x446e9a[_0x25195e(0x20d)]==='string');if(!_0x3125ff||!_0x23c24e)return;const _0x6aa923=_0x4903e2[_0x25195e(0x1dc)]?String(_0x4903e2[_0x25195e(0x1dc)]):'',_0x2e139f=_0x4903e2['alias']?String(_0x4903e2['alias']):'';if(!_0x6aa923&&!_0x2e139f)throw CliErrors[_0x25195e(0x1f9)]('`'+_0x19a3d5+_0x25195e(0x1d3));if(_0x2e139f&&!_0x6aa923){const _0x2efaeb=resolveAlias(_0x4d2543,_0x2e139f);if(!_0x2efaeb){const _0x4c4518=listAliases(_0x4d2543)[_0x25195e(0x209)](_0x2c9ee1=>_0x2c9ee1['alias']),_0xcdb40e=_0x4c4518[_0x25195e(0x1f0)]?'Available\x20aliases:\x20'+_0x4c4518['join'](',\x20'):_0x25195e(0x1d6)+_0x4d2543+_0x25195e(0x1ea)+CLI_BIN_NAME+_0x25195e(0x1fe);throw CliErrors[_0x25195e(0x1f9)](_0x25195e(0x1fb)+_0x2e139f+_0x25195e(0x203)+_0xcdb40e);}_0x4903e2['code']=_0x2efaeb;}}
1
+ (function(_0x5269b1,_0x2ac857){const _0x5affe5=a109_0x1b4c,_0x48be3c=_0x5269b1();while(!![]){try{const _0x305d10=-parseInt(_0x5affe5(0x147))/0x1*(parseInt(_0x5affe5(0x161))/0x2)+-parseInt(_0x5affe5(0x143))/0x3*(-parseInt(_0x5affe5(0x135))/0x4)+parseInt(_0x5affe5(0x169))/0x5+parseInt(_0x5affe5(0x133))/0x6+parseInt(_0x5affe5(0x16b))/0x7*(parseInt(_0x5affe5(0x137))/0x8)+parseInt(_0x5affe5(0x14f))/0x9+parseInt(_0x5affe5(0x168))/0xa*(-parseInt(_0x5affe5(0x159))/0xb);if(_0x305d10===_0x2ac857)break;else _0x48be3c['push'](_0x48be3c['shift']());}catch(_0x39a5ec){_0x48be3c['push'](_0x48be3c['shift']());}}}(a109_0x2762,0xecc55));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';function a109_0x2762(){const _0x457eed=['`\x20has\x20risk\x20level\x20\x22','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','defaultFormat','code','defaultOutputFormat','356Vckxoc','isNonInteractive','length','High-risk\x20operation\x20`','service','pretty','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','8980kiAaIL','3568420fbKRxm','stderr','7daaiyd','\x22.\x20','\x20api\x20pull`\x20first.','appCode','dryRun','requiresAppCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','--dry-run\x20is\x20not\x20supported\x20for\x20`','selectedAppName','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','trim','createInterface','resolveApiDomain','`\x20requires\x20either\x20--code\x20or\x20--alias.','cookie','jqFilter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','command','node:readline','args','defaultPageSize','2158362FxEHAm','type','242636JDLXPP','risk','8903544wbbmJn','name','stdin','map','pagesize','question','../core/api-client.js','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','dry-run','hasFormat','requiresAuth','toLowerCase','51huIuxT','close','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','validation','6178jTgdWr','configMissing','flags','resolveCookie','rawFlags','No\x20api.ts\x20found\x20in\x20','alias','apiDir','9040014SQpkkC','Available\x20aliases:\x20','string','format','json','cancelled','riskLevel','number','yes','.\x20Run\x20`','26367mvdIMT','Command\x20`','defaultVerbose'];a109_0x2762=function(){return _0x457eed;};return a109_0x2762();}function a109_0x1b4c(_0x1f2931,_0x23d0f2){_0x1f2931=_0x1f2931-0x133;const _0x2762c0=a109_0x2762();let _0x1b4c77=_0x2762c0[_0x1f2931];return _0x1b4c77;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0x2d6913,_0x422e57){const _0x8ae64c=a109_0x1b4c,_0x15d9c0=CLI_BIN_NAME+'\x20'+_0x2d6913[_0x8ae64c(0x165)]+'\x20'+_0x2d6913[_0x8ae64c(0x17c)],_0x58fa5e=parseFlags(_0x2d6913[_0x8ae64c(0x149)],_0x422e57[_0x8ae64c(0x14b)]);validateFlags(_0x2d6913['flags'],_0x58fa5e,_0x15d9c0);if(!_0x58fa5e[_0x8ae64c(0x13f)]&&_0x422e57[_0x8ae64c(0x155)]&&riskLevelOrder(_0x2d6913[_0x8ae64c(0x136)])>riskLevelOrder(_0x422e57['riskLevel'])){if(_0x422e57[_0x8ae64c(0x162)])throw CliErrors['validation']('Command\x20`'+_0x15d9c0+_0x8ae64c(0x15c)+_0x2d6913['risk']+_0x8ae64c(0x167)+_0x422e57[_0x8ae64c(0x155)]+'\x22.');throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x15a)+_0x15d9c0+_0x8ae64c(0x15c)+_0x2d6913['risk']+_0x8ae64c(0x167)+_0x422e57[_0x8ae64c(0x155)]+'\x22.\x0a'+(_0x8ae64c(0x145)+_0x2d6913[_0x8ae64c(0x136)]+_0x8ae64c(0x13e)));}const _0x5cde0c=_0x422e57['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x2d6913,_0x58fa5e,_0x5cde0c,_0x15d9c0);let _0x35935f='';if(_0x2d6913[_0x8ae64c(0x141)]!==![]){_0x35935f=_0x422e57[_0x8ae64c(0x14a)]();if(!_0x35935f)throw CliErrors['authRequired']();const {setActiveCookie:_0x24a79a}=await import(_0x8ae64c(0x13d));_0x24a79a(_0x35935f);}let _0x5911d8='';if(_0x2d6913[_0x8ae64c(0x170)]!==![]){_0x5911d8=_0x422e57['resolveAppCode']()??'';if(!_0x5911d8)throw CliErrors[_0x8ae64c(0x148)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x8ae64c(0x171));}let _0x562534=resolveFormat(_0x58fa5e,_0x2d6913,_0x422e57[_0x8ae64c(0x15e)]);const _0xd7fd9=resolveJqFilter(_0x58fa5e);_0xd7fd9&&_0x562534===_0x8ae64c(0x166)&&(_0x562534=_0x8ae64c(0x153));if(_0xd7fd9&&_0x562534!=='json'&&_0x562534!=='compress')throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x15d)+_0x562534+').');const _0x14d1bd=buildRuntimeContext({'appCode':_0x5911d8,'cookie':_0x35935f,'apiDomain':_0x422e57[_0x8ae64c(0x177)](),'format':_0x562534,'jqFilter':_0xd7fd9,'flags':_0x58fa5e,'def':_0x2d6913,'nonInteractive':_0x422e57[_0x8ae64c(0x162)],'defaultPageSize':_0x422e57[_0x8ae64c(0x17f)],'defaultVerbose':_0x422e57[_0x8ae64c(0x15b)],'apiDir':_0x5cde0c,'selectedAppName':_0x422e57[_0x8ae64c(0x173)],'args':_0x422e57['args']??[]});_0x2d6913['validate']&&await _0x2d6913['validate'](_0x14d1bd);if(_0x58fa5e[_0x8ae64c(0x13f)]){if(!_0x2d6913[_0x8ae64c(0x16f)])throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x172)+_0x15d9c0+'`.');const _0x327ab9=await _0x2d6913[_0x8ae64c(0x16f)](_0x14d1bd);formatOutput({'ok':!![],'data':_0x327ab9},{'command':_0x15d9c0,'risk':_0x2d6913[_0x8ae64c(0x136)],'format':_0x562534,'dryRun':!![],'jqFilter':_0xd7fd9});return;}if(_0x2d6913[_0x8ae64c(0x136)]==='high-risk-write'&&!_0x58fa5e['yes']){if(_0x422e57[_0x8ae64c(0x162)])throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x164)+_0x15d9c0+_0x8ae64c(0x17b));await requireConfirmation(_0x15d9c0);}const _0x40b965=await _0x2d6913['execute'](_0x14d1bd);formatOutput(_0x40b965,{'command':_0x15d9c0,'risk':_0x2d6913['risk'],'format':_0x562534,'jqFilter':_0xd7fd9});}function buildRuntimeContext(_0x24a1d3){const _0x5676ca=a109_0x1b4c,{flags:_0x4fd432,def:_0x18dabd}=_0x24a1d3,_0x3b39af=CLI_BIN_NAME+'\x20'+_0x18dabd[_0x5676ca(0x165)]+'\x20'+_0x18dabd[_0x5676ca(0x17c)];return{'appCode':_0x24a1d3[_0x5676ca(0x16e)],'cookie':_0x24a1d3[_0x5676ca(0x179)],'apiDomain':_0x24a1d3['apiDomain'],'format':_0x24a1d3['format'],'nonInteractive':_0x24a1d3['nonInteractive'],'apiDir':_0x24a1d3[_0x5676ca(0x14e)],'selectedAppName':_0x24a1d3[_0x5676ca(0x173)],'args':_0x24a1d3[_0x5676ca(0x17e)],'str'(_0x2f98ff){return String(_0x4fd432[_0x2f98ff]??'');},'bool'(_0x1b4d42){const _0x4602fb=_0x5676ca;if(_0x4fd432[_0x1b4d42]===!![])return!![];if(_0x1b4d42==='verbose'&&_0x24a1d3[_0x4602fb(0x15b)])return!![];return![];},'num'(_0xd2a8ac,_0x10978c){const _0x5509c8=_0x5676ca,_0x424407=_0x4fd432[_0xd2a8ac];if(typeof _0x424407===_0x5509c8(0x156))return _0x424407;if(_0xd2a8ac===_0x5509c8(0x13b)&&_0x24a1d3[_0x5509c8(0x17f)]!=null)return _0x24a1d3['defaultPageSize'];return _0x10978c??0x0;},'flag'(_0x11ec4c){return _0x4fd432[_0x11ec4c];},'output'(_0x21b2bd){const _0x14b934=_0x5676ca;formatOutput(_0x21b2bd,{'command':_0x3b39af,'risk':_0x18dabd['risk'],'format':_0x24a1d3[_0x14b934(0x152)],'jqFilter':_0x24a1d3[_0x14b934(0x17a)]});}};}function resolveJqFilter(_0x4d0577){const _0x26247f=a109_0x1b4c,_0x4c247f=_0x4d0577['jq'];if(_0x4c247f===undefined||_0x4c247f===null)return undefined;const _0xe47519=String(_0x4c247f)[_0x26247f(0x175)]();return _0xe47519===''?undefined:_0xe47519;}function resolveFormat(_0x20b1ad,_0x47db39,_0x3f2626){const _0x555d6a=a109_0x1b4c;if(_0x47db39[_0x555d6a(0x140)]===![])return _0x555d6a(0x166);const _0x5e2e23=normalizeLegacyOutputFormat(_0x20b1ad['format']);if(_0x5e2e23)return _0x5e2e23;const _0x2b1eb0=normalizeLegacyOutputFormat(_0x3f2626);if(_0x2b1eb0)return _0x2b1eb0;const _0x1d42e7=normalizeLegacyOutputFormat(_0x47db39[_0x555d6a(0x160)]);if(_0x1d42e7)return _0x1d42e7;return'pretty';}async function requireConfirmation(_0x93dbc){const _0x15976b=a109_0x1b4c,_0x3bbe18=await import(_0x15976b(0x17d)),_0x3385ea=_0x3bbe18[_0x15976b(0x176)]({'input':process[_0x15976b(0x139)],'output':process[_0x15976b(0x16a)]});return new Promise((_0x53a7fe,_0x7b1f24)=>{const _0x6fd372=_0x15976b;_0x3385ea[_0x6fd372(0x13c)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x93dbc+_0x6fd372(0x174),_0x427b20=>{const _0x287038=_0x6fd372;_0x3385ea[_0x287038(0x144)](),_0x427b20[_0x287038(0x142)]()==='y'||_0x427b20['toLowerCase']()===_0x287038(0x157)?_0x53a7fe():_0x7b1f24(CliErrors[_0x287038(0x154)]('Operation\x20cancelled\x20by\x20user.'));});});}function resolveAliasToCode(_0x3cd475,_0x5935b9,_0x140f50,_0x3766d8){const _0x1a2a0f=a109_0x1b4c,_0x2eb68b=_0x3cd475[_0x1a2a0f(0x149)]['some'](_0x45ed02=>_0x45ed02['name']==='code'&&_0x45ed02[_0x1a2a0f(0x134)]===_0x1a2a0f(0x151)),_0x1ab1be=_0x3cd475[_0x1a2a0f(0x149)]['some'](_0x51bebb=>_0x51bebb[_0x1a2a0f(0x138)]===_0x1a2a0f(0x14d)&&_0x51bebb[_0x1a2a0f(0x134)]===_0x1a2a0f(0x151));if(!_0x2eb68b||!_0x1ab1be)return;const _0x2390a9=_0x5935b9[_0x1a2a0f(0x15f)]?String(_0x5935b9['code']):'',_0x32d83f=_0x5935b9[_0x1a2a0f(0x14d)]?String(_0x5935b9[_0x1a2a0f(0x14d)]):'';if(!_0x2390a9&&!_0x32d83f)throw CliErrors[_0x1a2a0f(0x146)]('`'+_0x3766d8+_0x1a2a0f(0x178));if(_0x32d83f&&!_0x2390a9){const _0x2f67c4=resolveAlias(_0x140f50,_0x32d83f);if(!_0x2f67c4){const _0x570d0e=listAliases(_0x140f50)[_0x1a2a0f(0x13a)](_0x14740d=>_0x14740d['alias']),_0x2ebf4b=_0x570d0e[_0x1a2a0f(0x163)]?_0x1a2a0f(0x150)+_0x570d0e['join'](',\x20'):_0x1a2a0f(0x14c)+_0x140f50+_0x1a2a0f(0x158)+CLI_BIN_NAME+_0x1a2a0f(0x16d);throw CliErrors[_0x1a2a0f(0x146)]('Unknown\x20alias\x20\x22'+_0x32d83f+_0x1a2a0f(0x16c)+_0x2ebf4b);}_0x5935b9[_0x1a2a0f(0x15f)]=_0x2f67c4;}}
@@ -1 +1 @@
1
- (function(_0x38e1e1,_0x18eb73){const _0xba7491=a110_0x1448,_0xcf9d78=_0x38e1e1();while(!![]){try{const _0xe92f72=parseInt(_0xba7491(0x185))/0x1+parseInt(_0xba7491(0x169))/0x2*(-parseInt(_0xba7491(0x17f))/0x3)+parseInt(_0xba7491(0x163))/0x4*(parseInt(_0xba7491(0x17d))/0x5)+-parseInt(_0xba7491(0x16a))/0x6*(parseInt(_0xba7491(0x173))/0x7)+parseInt(_0xba7491(0x178))/0x8*(parseInt(_0xba7491(0x164))/0x9)+-parseInt(_0xba7491(0x161))/0xa*(-parseInt(_0xba7491(0x160))/0xb)+-parseInt(_0xba7491(0x17b))/0xc;if(_0xe92f72===_0x18eb73)break;else _0xcf9d78['push'](_0xcf9d78['shift']());}catch(_0x1fe41c){_0xcf9d78['push'](_0xcf9d78['shift']());}}}(a110_0x11d7,0x5306f));import{buildAllFlags}from'../framework/build-all-flags.js';function a110_0x1448(_0xe8789c,_0x524c8b){_0xe8789c=_0xe8789c-0x15e;const _0x11d70c=a110_0x11d7();let _0x144866=_0x11d70c[_0xe8789c];return _0x144866;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a110_0x11d7(){const _0x509987=['args','628988lHsvxO','function','wildcardDef','<script>','hint','120615fFzyLl','310zSjSSE','defaultCommand','67444wwqKrb','468dyWblK','isSingleCommand','risk','description','enum','341408ISIrQj','138gZvPno','dryRun','name','hidden','../commands/registry.js','push','command','map','requiresAuth','144683EEIsYR','helpExtra','source','pattern','regex','67384ZsGunL','length','requiresAppCode','9272592BZCFRd','trim','155XzGfkI','type','6CxjgCC','required','default','alias','hasFormat'];a110_0x11d7=function(){return _0x509987;};return a110_0x11d7();}function serializeFlag(_0x52d275){const _0x2ab46b=a110_0x1448,_0x690ad4={'name':_0x52d275[_0x2ab46b(0x16c)],'type':_0x52d275[_0x2ab46b(0x17e)],'description':_0x52d275[_0x2ab46b(0x167)]};if(_0x52d275['required']!==undefined)_0x690ad4[_0x2ab46b(0x180)]=_0x52d275[_0x2ab46b(0x180)];if(_0x52d275[_0x2ab46b(0x181)]!==undefined)_0x690ad4['default']=_0x52d275[_0x2ab46b(0x181)];if(_0x52d275[_0x2ab46b(0x168)]&&_0x52d275['enum'][_0x2ab46b(0x179)]>0x0)_0x690ad4[_0x2ab46b(0x168)]=_0x52d275[_0x2ab46b(0x168)];if(_0x52d275[_0x2ab46b(0x182)])_0x690ad4[_0x2ab46b(0x182)]=_0x52d275['alias'];if(_0x52d275[_0x2ab46b(0x16d)])_0x690ad4[_0x2ab46b(0x16d)]=_0x52d275[_0x2ab46b(0x16d)];return _0x52d275[_0x2ab46b(0x176)]&&(_0x690ad4['pattern']={'source':_0x52d275[_0x2ab46b(0x176)][_0x2ab46b(0x177)][_0x2ab46b(0x175)],'flags':_0x52d275[_0x2ab46b(0x176)][_0x2ab46b(0x177)]['flags'],'description':_0x52d275[_0x2ab46b(0x176)][_0x2ab46b(0x167)]}),_0x690ad4;}function serializeHelpExtra(_0x476a54){const _0x36dec2=a110_0x1448;if(_0x476a54[_0x36dec2(0x174)]===undefined)return undefined;if(typeof _0x476a54[_0x36dec2(0x174)]===_0x36dec2(0x186))return{'dynamic':!![]};return _0x476a54['helpExtra'];}function serializeCommand(_0x30fce3,_0x279246){const _0x17f44e=a110_0x1448,_0x391e4d=_0x30fce3[_0x17f44e(0x172)]!==![],_0x21af1e=_0x30fce3[_0x17f44e(0x17a)]!==![],_0x4bf965=_0x30fce3[_0x17f44e(0x183)]!==![],_0x37f384=serializeHelpExtra(_0x30fce3);return{'command':_0x279246[_0x17f44e(0x170)],'description':_0x279246[_0x17f44e(0x167)],..._0x279246['tag']?{'tag':_0x279246['tag'][_0x17f44e(0x17c)]()}:{},'risk':_0x30fce3[_0x17f44e(0x166)],'requiresAuth':_0x391e4d,'requiresAppCode':_0x21af1e,'hasFormat':_0x4bf965,'supportsDryRun':Boolean(_0x30fce3[_0x17f44e(0x16b)]),..._0x30fce3[_0x17f44e(0x184)]&&_0x30fce3[_0x17f44e(0x184)]['length']>0x0?{'args':_0x30fce3[_0x17f44e(0x184)]}:{},'flags':buildAllFlags(_0x30fce3)[_0x17f44e(0x171)](serializeFlag),..._0x37f384!==undefined?{'helpExtra':_0x37f384}:{}};}export async function buildSchemaPayload(){const _0x5acf79=a110_0x1448,{serviceRegistry:_0x14c91b,findDefinition:_0x23f6a7}=await import(_0x5acf79(0x16e)),_0x21b445=[];for(const _0x38e7dd of _0x14c91b){const _0x19c722=[];for(const _0x32c23e of _0x38e7dd['commands']){const _0x124a83=_0x32c23e[_0x5acf79(0x170)]===_0x5acf79(0x15e)&&_0x38e7dd[_0x5acf79(0x187)]?_0x38e7dd[_0x5acf79(0x187)]:_0x23f6a7(_0x38e7dd['service'],_0x32c23e[_0x5acf79(0x170)]);if(!_0x124a83)continue;_0x19c722[_0x5acf79(0x16f)](serializeCommand(_0x124a83,_0x32c23e));}_0x21b445[_0x5acf79(0x16f)]({'service':_0x38e7dd['service'],'label':_0x38e7dd['label'],..._0x38e7dd[_0x5acf79(0x165)]?{'isSingleCommand':!![]}:{},..._0x38e7dd[_0x5acf79(0x162)]?{'defaultCommand':_0x38e7dd['defaultCommand']}:{},'hasWildcard':Boolean(_0x38e7dd['wildcardDef']),'commands':_0x19c722});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS['map'](_0x2a2323=>({'name':_0x2a2323[_0x5acf79(0x16c)],'type':_0x2a2323['type'],'description':_0x2a2323[_0x5acf79(0x167)],..._0x2a2323[_0x5acf79(0x15f)]?{'hint':_0x2a2323[_0x5acf79(0x15f)]}:{},..._0x2a2323[_0x5acf79(0x16d)]?{'hidden':!![]}:{}})),'services':_0x21b445};}
1
+ function a110_0x5bfd(){const _0x502857=['757700pRjGaF','isSingleCommand','wildcardDef','default','push','hidden','flags','commands','enum','6014470MAfmuO','required','tag','../commands/registry.js','length','4605416OmulTG','696396wjQzgd','dryRun','source','4437498XyjuTA','trim','alias','hint','11328QymJOc','725PQhxUI','description','defaultCommand','service','regex','requiresAppCode','requiresAuth','map','1087584kOwUoq','pattern','command','<script>','helpExtra'];a110_0x5bfd=function(){return _0x502857;};return a110_0x5bfd();}(function(_0x54bf63,_0xcb0df4){const _0x885fa=a110_0x4e97,_0x8196f2=_0x54bf63();while(!![]){try{const _0x5d7c96=parseInt(_0x885fa(0xb4))/0x1+parseInt(_0x885fa(0xc3))/0x2+-parseInt(_0x885fa(0xaf))/0x3+-parseInt(_0x885fa(0xca))/0x4*(-parseInt(_0x885fa(0xcb))/0x5)+parseInt(_0x885fa(0xc6))/0x6+-parseInt(_0x885fa(0xbd))/0x7+-parseInt(_0x885fa(0xc2))/0x8;if(_0x5d7c96===_0xcb0df4)break;else _0x8196f2['push'](_0x8196f2['shift']());}catch(_0x447bd0){_0x8196f2['push'](_0x8196f2['shift']());}}}(a110_0x5bfd,0x6ffd2));import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function serializeFlag(_0xe55e06){const _0xf0fe71=a110_0x4e97,_0xc0cc15={'name':_0xe55e06['name'],'type':_0xe55e06['type'],'description':_0xe55e06[_0xf0fe71(0xcc)]};if(_0xe55e06[_0xf0fe71(0xbe)]!==undefined)_0xc0cc15[_0xf0fe71(0xbe)]=_0xe55e06[_0xf0fe71(0xbe)];if(_0xe55e06[_0xf0fe71(0xb7)]!==undefined)_0xc0cc15[_0xf0fe71(0xb7)]=_0xe55e06['default'];if(_0xe55e06[_0xf0fe71(0xbc)]&&_0xe55e06['enum']['length']>0x0)_0xc0cc15['enum']=_0xe55e06[_0xf0fe71(0xbc)];if(_0xe55e06[_0xf0fe71(0xc8)])_0xc0cc15[_0xf0fe71(0xc8)]=_0xe55e06[_0xf0fe71(0xc8)];if(_0xe55e06['hidden'])_0xc0cc15[_0xf0fe71(0xb9)]=_0xe55e06[_0xf0fe71(0xb9)];return _0xe55e06['pattern']&&(_0xc0cc15[_0xf0fe71(0xb0)]={'source':_0xe55e06[_0xf0fe71(0xb0)]['regex'][_0xf0fe71(0xc5)],'flags':_0xe55e06['pattern'][_0xf0fe71(0xcf)][_0xf0fe71(0xba)],'description':_0xe55e06[_0xf0fe71(0xb0)][_0xf0fe71(0xcc)]}),_0xc0cc15;}function a110_0x4e97(_0x138c4f,_0x4f4912){_0x138c4f=_0x138c4f-0xae;const _0x5bfdee=a110_0x5bfd();let _0x4e9730=_0x5bfdee[_0x138c4f];return _0x4e9730;}function serializeHelpExtra(_0x417c2b){const _0x5e033c=a110_0x4e97;if(_0x417c2b[_0x5e033c(0xb3)]===undefined)return undefined;if(typeof _0x417c2b['helpExtra']==='function')return{'dynamic':!![]};return _0x417c2b[_0x5e033c(0xb3)];}function serializeCommand(_0x2cf6a5,_0x24454a){const _0x39ce78=a110_0x4e97,_0x5ca62c=_0x2cf6a5[_0x39ce78(0xd1)]!==![],_0x1fd920=_0x2cf6a5[_0x39ce78(0xd0)]!==![],_0x571693=_0x2cf6a5['hasFormat']!==![],_0xecf980=serializeHelpExtra(_0x2cf6a5);return{'command':_0x24454a['command'],'description':_0x24454a[_0x39ce78(0xcc)],..._0x24454a[_0x39ce78(0xbf)]?{'tag':_0x24454a[_0x39ce78(0xbf)][_0x39ce78(0xc7)]()}:{},'risk':_0x2cf6a5['risk'],'requiresAuth':_0x5ca62c,'requiresAppCode':_0x1fd920,'hasFormat':_0x571693,'supportsDryRun':Boolean(_0x2cf6a5[_0x39ce78(0xc4)]),..._0x2cf6a5['args']&&_0x2cf6a5['args'][_0x39ce78(0xc1)]>0x0?{'args':_0x2cf6a5['args']}:{},'flags':buildAllFlags(_0x2cf6a5)[_0x39ce78(0xae)](serializeFlag),..._0xecf980!==undefined?{'helpExtra':_0xecf980}:{}};}export async function buildSchemaPayload(){const _0x208df9=a110_0x4e97,{serviceRegistry:_0x29cb78,findDefinition:_0x5b8581}=await import(_0x208df9(0xc0)),_0x4b64f0=[];for(const _0x18b2b9 of _0x29cb78){const _0x4dcc5e=[];for(const _0x55ef6a of _0x18b2b9[_0x208df9(0xbb)]){const _0x4451a8=_0x55ef6a[_0x208df9(0xb1)]===_0x208df9(0xb2)&&_0x18b2b9['wildcardDef']?_0x18b2b9[_0x208df9(0xb6)]:_0x5b8581(_0x18b2b9[_0x208df9(0xce)],_0x55ef6a[_0x208df9(0xb1)]);if(!_0x4451a8)continue;_0x4dcc5e[_0x208df9(0xb8)](serializeCommand(_0x4451a8,_0x55ef6a));}_0x4b64f0[_0x208df9(0xb8)]({'service':_0x18b2b9[_0x208df9(0xce)],'label':_0x18b2b9['label'],..._0x18b2b9[_0x208df9(0xb5)]?{'isSingleCommand':!![]}:{},..._0x18b2b9[_0x208df9(0xcd)]?{'defaultCommand':_0x18b2b9[_0x208df9(0xcd)]}:{},'hasWildcard':Boolean(_0x18b2b9[_0x208df9(0xb6)]),'commands':_0x4dcc5e});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS['map'](_0x2af743=>({'name':_0x2af743['name'],'type':_0x2af743['type'],'description':_0x2af743[_0x208df9(0xcc)],..._0x2af743[_0x208df9(0xc9)]?{'hint':_0x2af743[_0x208df9(0xc9)]}:{},..._0x2af743['hidden']?{'hidden':!![]}:{}})),'services':_0x4b64f0};}
@@ -1 +1 @@
1
- function a111_0x5b08(){const _0x1f59a7=['2bMoZjT','12910vAVeyj','8658304LJPSoN','928LzBDcT','compress','table','7448607EendDu','720591fKrlkY','428057MomRAB','2738547dpBcqy','read','pretty','31471VgfLsi','36UfqZmP','10620rgtaum','json'];a111_0x5b08=function(){return _0x1f59a7;};return a111_0x5b08();}(function(_0x462617,_0x40fe30){const _0x1dcc8a=a111_0x2d4f,_0x31c642=_0x462617();while(!![]){try{const _0x2229f2=-parseInt(_0x1dcc8a(0xe6))/0x1*(-parseInt(_0x1dcc8a(0xef))/0x2)+parseInt(_0x1dcc8a(0xe8))/0x3+parseInt(_0x1dcc8a(0xe2))/0x4*(parseInt(_0x1dcc8a(0xe0))/0x5)+parseInt(_0x1dcc8a(0xec))/0x6*(-parseInt(_0x1dcc8a(0xe7))/0x7)+parseInt(_0x1dcc8a(0xe1))/0x8+parseInt(_0x1dcc8a(0xe5))/0x9+-parseInt(_0x1dcc8a(0xed))/0xa*(parseInt(_0x1dcc8a(0xeb))/0xb);if(_0x2229f2===_0x40fe30)break;else _0x31c642['push'](_0x31c642['shift']());}catch(_0x1e4f01){_0x31c642['push'](_0x31c642['shift']());}}}(a111_0x5b08,0xb3f3f));export function riskLevelOrder(_0x4a7c30){const _0x5a87ff=a111_0x2d4f,_0x10ac70={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x10ac70[_0x4a7c30??_0x5a87ff(0xe9)]??0x0;}export function isValidFormat(_0x597278){const _0x3637ff=a111_0x2d4f;return _0x597278===_0x3637ff(0xee)||_0x597278===_0x3637ff(0xea)||_0x597278===_0x3637ff(0xe3);}function a111_0x2d4f(_0x30ed67,_0xf26447){_0x30ed67=_0x30ed67-0xe0;const _0x5b0871=a111_0x5b08();let _0x2d4fa0=_0x5b0871[_0x30ed67];return _0x2d4fa0;}export function normalizeLegacyOutputFormat(_0x2e114a){const _0x43a00d=a111_0x2d4f;if(_0x2e114a===_0x43a00d(0xe4))return _0x43a00d(0xea);if(isValidFormat(_0x2e114a))return _0x2e114a;return undefined;}
1
+ (function(_0x4312bb,_0x58790b){const _0x4053e9=a111_0x4eae,_0x5e74f9=_0x4312bb();while(!![]){try{const _0x9ec494=-parseInt(_0x4053e9(0xc7))/0x1+-parseInt(_0x4053e9(0xc2))/0x2*(parseInt(_0x4053e9(0xc4))/0x3)+parseInt(_0x4053e9(0xc3))/0x4+parseInt(_0x4053e9(0xca))/0x5+-parseInt(_0x4053e9(0xcc))/0x6*(parseInt(_0x4053e9(0xc1))/0x7)+parseInt(_0x4053e9(0xc6))/0x8*(parseInt(_0x4053e9(0xc5))/0x9)+parseInt(_0x4053e9(0xbf))/0xa;if(_0x9ec494===_0x58790b)break;else _0x5e74f9['push'](_0x5e74f9['shift']());}catch(_0x1b6c66){_0x5e74f9['push'](_0x5e74f9['shift']());}}}(a111_0x5a59,0x3945d));function a111_0x4eae(_0x5787be,_0x327d68){_0x5787be=_0x5787be-0xbf;const _0x5a59e7=a111_0x5a59();let _0x4eaeb6=_0x5a59e7[_0x5787be];return _0x4eaeb6;}export function riskLevelOrder(_0x35ef39){const _0x1445fa=a111_0x4eae,_0x1efed1={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x1efed1[_0x35ef39??_0x1445fa(0xc0)]??0x0;}export function isValidFormat(_0x3438e2){const _0x2929b7=a111_0x4eae;return _0x3438e2==='json'||_0x3438e2===_0x2929b7(0xc8)||_0x3438e2===_0x2929b7(0xc9);}function a111_0x5a59(){const _0x29a221=['read','23723etxbBQ','2pmPgjN','1632064dUgrET','1042293ckHogu','3399705vlibWe','8lblKjv','53017hdfUrf','pretty','compress','608385xyILVI','table','798WHzmFy','1783360IyCSzX'];a111_0x5a59=function(){return _0x29a221;};return a111_0x5a59();}export function normalizeLegacyOutputFormat(_0x1a8794){const _0x1005fe=a111_0x4eae;if(_0x1a8794===_0x1005fe(0xcb))return _0x1005fe(0xc8);if(isValidFormat(_0x1a8794))return _0x1a8794;return undefined;}
@@ -1 +1 @@
1
- const a112_0x3bd6e7=a112_0x1d35;function a112_0x2826(){const _0x2cbf48=['9REryMi','467830fWkdYZ','2026-04-05T14:49:52.888Z','677260wqcNfV','2RZaDJT','5166329tOCHsZ','165GvxJYa','6eOtTDx','7604jgrYfx','12672276YuJKZD','v2.0.10','2.0.10','3945976AYWWVB','390d642','13smeiAi','1610185MmlyMT','1164BAFOFn'];a112_0x2826=function(){return _0x2cbf48;};return a112_0x2826();}function a112_0x1d35(_0x1c08c7,_0x4549e7){_0x1c08c7=_0x1c08c7-0x84;const _0x2826b7=a112_0x2826();let _0x1d3513=_0x2826b7[_0x1c08c7];return _0x1d3513;}(function(_0x29fc76,_0x252233){const _0x2f40a7=a112_0x1d35,_0x2b77fb=_0x29fc76();while(!![]){try{const _0x55099d=parseInt(_0x2f40a7(0x8a))/0x1*(parseInt(_0x2f40a7(0x89))/0x2)+parseInt(_0x2f40a7(0x85))/0x3*(-parseInt(_0x2f40a7(0x8e))/0x4)+-parseInt(_0x2f40a7(0x84))/0x5+parseInt(_0x2f40a7(0x8d))/0x6*(parseInt(_0x2f40a7(0x8b))/0x7)+-parseInt(_0x2f40a7(0x92))/0x8*(-parseInt(_0x2f40a7(0x86))/0x9)+-parseInt(_0x2f40a7(0x87))/0xa*(-parseInt(_0x2f40a7(0x8c))/0xb)+parseInt(_0x2f40a7(0x8f))/0xc*(-parseInt(_0x2f40a7(0x94))/0xd);if(_0x55099d===_0x252233)break;else _0x2b77fb['push'](_0x2b77fb['shift']());}catch(_0x2e925e){_0x2b77fb['push'](_0x2b77fb['shift']());}}}(a112_0x2826,0x78c3b));export const VERSION=a112_0x3bd6e7(0x91);export const GIT_TAG=a112_0x3bd6e7(0x90);export const GIT_COMMIT=a112_0x3bd6e7(0x93);export const BUILD_TIME=a112_0x3bd6e7(0x88);
1
+ const a112_0x524620=a112_0x3a8e;function a112_0x3d87(){const _0x4a1ad8=['3773136CwgxEk','46dhCHXc','43005srzUAB','75783SYnteV','40NVOBoZ','332pONtNG','360959YFOEnp','6aa2634','1285696toqybW','3538701pCgXTS','2.0.11','2530430sJHGwg'];a112_0x3d87=function(){return _0x4a1ad8;};return a112_0x3d87();}(function(_0x546e2a,_0x2d58a6){const _0x3aba84=a112_0x3a8e,_0x2ab967=_0x546e2a();while(!![]){try{const _0x2f93a2=parseInt(_0x3aba84(0x103))/0x1+-parseInt(_0x3aba84(0x10a))/0x2*(parseInt(_0x3aba84(0x10c))/0x3)+parseInt(_0x3aba84(0x102))/0x4*(-parseInt(_0x3aba84(0x10b))/0x5)+-parseInt(_0x3aba84(0x109))/0x6+parseInt(_0x3aba84(0x108))/0x7+parseInt(_0x3aba84(0x105))/0x8+parseInt(_0x3aba84(0x106))/0x9*(parseInt(_0x3aba84(0x101))/0xa);if(_0x2f93a2===_0x2d58a6)break;else _0x2ab967['push'](_0x2ab967['shift']());}catch(_0x376ebd){_0x2ab967['push'](_0x2ab967['shift']());}}}(a112_0x3d87,0x81ecf));export const VERSION=a112_0x524620(0x107);export const GIT_TAG='v2.0.11';export const GIT_COMMIT=a112_0x524620(0x104);function a112_0x3a8e(_0x1aca07,_0x34adb3){_0x1aca07=_0x1aca07-0x101;const _0x3d87e4=a112_0x3d87();let _0x3a8eee=_0x3d87e4[_0x1aca07];return _0x3a8eee;}export const BUILD_TIME='2026-04-06T02:53:01.077Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x55a648,_0x3b1afd){var _0x520d3a=a113_0x8abc,_0x2b3c81=_0x55a648();while(!![]){try{var _0x527c5b=-parseInt(_0x520d3a(0xf4))/0x1+-parseInt(_0x520d3a(0xf6))/0x2*(parseInt(_0x520d3a(0xf0))/0x3)+-parseInt(_0x520d3a(0xf5))/0x4*(-parseInt(_0x520d3a(0xec))/0x5)+-parseInt(_0x520d3a(0xee))/0x6+parseInt(_0x520d3a(0xf9))/0x7*(parseInt(_0x520d3a(0xeb))/0x8)+-parseInt(_0x520d3a(0xf3))/0x9+-parseInt(_0x520d3a(0xf8))/0xa*(-parseInt(_0x520d3a(0xfa))/0xb);if(_0x527c5b===_0x3b1afd)break;else _0x2b3c81['push'](_0x2b3c81['shift']());}catch(_0x4128e0){_0x2b3c81['push'](_0x2b3c81['shift']());}}}(a113_0x30ff,0xb982c));import a113_0x12e5cc from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a113_0x8abc(_0x3f56fe,_0x5b4f34){_0x3f56fe=_0x3f56fe-0xea;var _0x30ff25=a113_0x30ff();var _0x8abcc=_0x30ff25[_0x3f56fe];return _0x8abcc;}function a113_0x30ff(){var _0x3ebebd=['4327708irjDfX','\x20to\x20view\x20available\x20commands.','184Nstbei','2070lUwIHc','bold','225672cFCalz','\x20\x20Use\x20','103497RKtafi','\x20--help','log','5709933rVsZpi','1322621ksuyEc','1180urtMSN','20ZXlsOa','green','60BagEJc','187726dHeTZP'];a113_0x30ff=function(){return _0x3ebebd;};return a113_0x30ff();}export function showHelp(){var _0x5c893c=a113_0x8abc;console[_0x5c893c(0xf2)](),console[_0x5c893c(0xf2)](a113_0x12e5cc['green'][_0x5c893c(0xed)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x5c893c(0xf2)](_0x5c893c(0xef)+a113_0x12e5cc[_0x5c893c(0xf7)][_0x5c893c(0xed)](CLI_BIN_NAME+_0x5c893c(0xf1))+_0x5c893c(0xea)),console[_0x5c893c(0xf2)]();}
1
+ (function(_0x288229,_0x29233a){var _0x5e4cf7=a113_0x36be,_0x1e1f28=_0x288229();while(!![]){try{var _0x5c5e3d=-parseInt(_0x5e4cf7(0xd7))/0x1+-parseInt(_0x5e4cf7(0xe7))/0x2*(-parseInt(_0x5e4cf7(0xdb))/0x3)+parseInt(_0x5e4cf7(0xdf))/0x4+-parseInt(_0x5e4cf7(0xe0))/0x5*(parseInt(_0x5e4cf7(0xd8))/0x6)+-parseInt(_0x5e4cf7(0xe3))/0x7*(-parseInt(_0x5e4cf7(0xda))/0x8)+-parseInt(_0x5e4cf7(0xde))/0x9*(-parseInt(_0x5e4cf7(0xe2))/0xa)+-parseInt(_0x5e4cf7(0xd6))/0xb*(parseInt(_0x5e4cf7(0xe5))/0xc);if(_0x5c5e3d===_0x29233a)break;else _0x1e1f28['push'](_0x1e1f28['shift']());}catch(_0x11b7c3){_0x1e1f28['push'](_0x1e1f28['shift']());}}}(a113_0x3bed,0x8a111));import a113_0x15a18c from'chalk';function a113_0x36be(_0x4b1632,_0x415c17){_0x4b1632=_0x4b1632-0xd6;var _0x3bed6b=a113_0x3bed();var _0x36be26=_0x3bed6b[_0x4b1632];return _0x36be26;}function a113_0x3bed(){var _0x336bdb=['93348IVoxWq','green','2HVcsPA','704YmwIeD','530819SoivAv','2720406yzzIZY','\x20to\x20view\x20available\x20commands.','262232XsWGYi','2830797Cxkjqm','log','\x20\x20Use\x20','6154641SxWYqF','238320AvQlJp','5rXqUzt','bold','10gCfGra','77SUPxfn','\x20--help'];a113_0x3bed=function(){return _0x336bdb;};return a113_0x3bed();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4ae51a=a113_0x36be;console[_0x4ae51a(0xdc)](),console[_0x4ae51a(0xdc)](a113_0x15a18c[_0x4ae51a(0xe6)][_0x4ae51a(0xe1)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x4ae51a(0xdd)+a113_0x15a18c['green'][_0x4ae51a(0xe1)](CLI_BIN_NAME+_0x4ae51a(0xe4))+_0x4ae51a(0xd9)),console[_0x4ae51a(0xdc)]();}
@@ -1 +1 @@
1
- const a114_0x1ef119=a114_0x1e2c;(function(_0x550c8d,_0x4fe392){const _0x1791d2=a114_0x1e2c,_0x431f9e=_0x550c8d();while(!![]){try{const _0x5f3151=-parseInt(_0x1791d2(0xc7))/0x1+-parseInt(_0x1791d2(0xd8))/0x2+-parseInt(_0x1791d2(0xdc))/0x3*(parseInt(_0x1791d2(0xde))/0x4)+-parseInt(_0x1791d2(0xd2))/0x5*(-parseInt(_0x1791d2(0xcb))/0x6)+-parseInt(_0x1791d2(0xdf))/0x7*(-parseInt(_0x1791d2(0xca))/0x8)+-parseInt(_0x1791d2(0xc2))/0x9*(parseInt(_0x1791d2(0xc6))/0xa)+parseInt(_0x1791d2(0xc5))/0xb;if(_0x5f3151===_0x4fe392)break;else _0x431f9e['push'](_0x431f9e['shift']());}catch(_0x78ce66){_0x431f9e['push'](_0x431f9e['shift']());}}}(a114_0x55bc,0xe5a97));import{logger}from'../utils/logger.js';function a114_0x55bc(){const _0xf68630=['6444656vpdhzP','2737hGpRgD','has','replace','dangerously-bff-save','argv','log','enable-bff-save','Error:\x20Unsupported\x20command:\x20','push','\x0aAvailable\x20commands:','19575xJnoDy','includes','exit','31341640jTPfmW','420bhjHBT','1665995mGfVzV','startsWith','-$1','3464iHIYZx','371754IvtuyE','help','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','skill','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','slice','110zYtrJI','cwd','--help','from','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','\x20skill\x20--help\x0a\x20\x20','144874YmIppA','add','不支持的命令:\x20','length','3FbQgBY','error'];a114_0x55bc=function(){return _0xf68630;};return a114_0x55bc();}import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x48ab44){const _0x212778=a114_0x1e2c,_0x54aaf1=[];for(const [_0x267041,_0x59f07f]of Object['entries'](_0x48ab44)){if(_0x59f07f===!![]){const _0x2e2740=_0x267041[_0x212778(0xe1)](/([A-Z])/g,_0x212778(0xc9))['toLowerCase']();_0x54aaf1['push'](_0x2e2740);}}return _0x54aaf1;}export function parseDynamicFlags(){const _0x38486b=a114_0x1e2c,_0x3a5641=[];for(let _0x2b573d=0x3;_0x2b573d<process[_0x38486b(0xe3)][_0x38486b(0xdb)];_0x2b573d++){const _0x29fe62=process['argv'][_0x2b573d];if(_0x29fe62&&_0x29fe62[_0x38486b(0xc8)]('--')){const _0x67e4ee=_0x29fe62[_0x38486b(0xd1)](0x2);_0x67e4ee&&!_0x67e4ee[_0x38486b(0xc3)]('=')&&_0x3a5641[_0x38486b(0xc0)](_0x67e4ee);}}return _0x3a5641;}export function getAllProvidedFlags(_0x5485aa){const _0x29eebb=a114_0x1e2c,_0x3bbcc9=camelCaseFlagsToKebab(_0x5485aa),_0x2da784=parseDynamicFlags(),_0xf20145=new Set([..._0x3bbcc9,..._0x2da784]);return Array[_0x29eebb(0xd5)](_0xf20145);}export function normalizeLegacyBffSaveFlags(_0x2cc495){const _0x3bb2aa=a114_0x1e2c,_0x20892a=new Set(_0x2cc495);return _0x20892a[_0x3bb2aa(0xe0)](_0x3bb2aa(0xe2))&&_0x20892a[_0x3bb2aa(0xd9)](_0x3bb2aa(0xe5)),Array['from'](_0x20892a);}const SKILLS_INSTALL_COMMAND_LINE=a114_0x1ef119(0xcf);function a114_0x1e2c(_0x2c3d3b,_0x8a6068){_0x2c3d3b=_0x2c3d3b-0xc0;const _0x55bc10=a114_0x55bc();let _0x1e2c31=_0x55bc10[_0x2c3d3b];return _0x1e2c31;}export async function skillsCommand(_0x312b28,_0x4908c5,_0x4b219a){const _0x27416b=a114_0x1ef119;logger['setLogPath'](process[_0x27416b(0xd3)]());if(_0x4b219a?.[_0x27416b(0xcc)]||_0x312b28===_0x27416b(0xd4)){showHelp();return;}console['error'](_0x27416b(0xe6)+(_0x312b28||'(empty)')),console[_0x27416b(0xe4)](_0x27416b(0xc1)),console[_0x27416b(0xe4)]('\x20\x20'+CLI_BIN_NAME+_0x27416b(0xcd)),console[_0x27416b(0xe4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x27416b(0xe4)](''),console[_0x27416b(0xe4)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x27416b(0xdd)](_0x27416b(0xce),_0x27416b(0xda)+_0x312b28),process[_0x27416b(0xc4)](0x1);}function showHelp(){const _0x11be36=a114_0x1ef119;console[_0x11be36(0xe4)](_0x11be36(0xd0)+CLI_BIN_NAME+_0x11be36(0xd7)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x11be36(0xd6));}
1
+ const a114_0x441970=a114_0x70ef;(function(_0x8d71f3,_0x577ee7){const _0x5c4d5f=a114_0x70ef,_0x51fe80=_0x8d71f3();while(!![]){try{const _0x15f52e=-parseInt(_0x5c4d5f(0x1b3))/0x1+-parseInt(_0x5c4d5f(0x197))/0x2*(parseInt(_0x5c4d5f(0x1b1))/0x3)+-parseInt(_0x5c4d5f(0x192))/0x4+parseInt(_0x5c4d5f(0x194))/0x5+-parseInt(_0x5c4d5f(0x1b2))/0x6+-parseInt(_0x5c4d5f(0x193))/0x7+parseInt(_0x5c4d5f(0x198))/0x8;if(_0x15f52e===_0x577ee7)break;else _0x51fe80['push'](_0x51fe80['shift']());}catch(_0x395710){_0x51fe80['push'](_0x51fe80['shift']());}}}(a114_0x1ceb,0x3d922));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x1a1996){const _0x38941c=a114_0x70ef,_0x5bd76e=[];for(const [_0x536173,_0xb92231]of Object[_0x38941c(0x19e)](_0x1a1996)){if(_0xb92231===!![]){const _0x3a7c26=_0x536173['replace'](/([A-Z])/g,_0x38941c(0x19b))[_0x38941c(0x1a6)]();_0x5bd76e[_0x38941c(0x1af)](_0x3a7c26);}}return _0x5bd76e;}export function parseDynamicFlags(){const _0x17574b=a114_0x70ef,_0x3e4d07=[];for(let _0x117e6f=0x3;_0x117e6f<process[_0x17574b(0x1b0)][_0x17574b(0x1ab)];_0x117e6f++){const _0x7c7722=process['argv'][_0x117e6f];if(_0x7c7722&&_0x7c7722[_0x17574b(0x1b5)]('--')){const _0x49568d=_0x7c7722[_0x17574b(0x196)](0x2);_0x49568d&&!_0x49568d[_0x17574b(0x1b4)]('=')&&_0x3e4d07[_0x17574b(0x1af)](_0x49568d);}}return _0x3e4d07;}export function getAllProvidedFlags(_0x3e8130){const _0x47e2c9=a114_0x70ef,_0x186518=camelCaseFlagsToKebab(_0x3e8130),_0x57a70a=parseDynamicFlags(),_0x5df453=new Set([..._0x186518,..._0x57a70a]);return Array[_0x47e2c9(0x1a1)](_0x5df453);}function a114_0x1ceb(){const _0x43ff08=['238497pbOQqT','651470UEtdVI','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','slice','2EKRHUo','9984424dsQDhL','skill','cwd','-$1','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','entries','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','enable-bff-save','from','setLogPath','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x0aAvailable\x20commands:','不支持的命令:\x20','toLowerCase','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','add','--help','error','length','has','Equivalent\x20command:\x20','log','push','argv','174357DuVPYg','1437438eambjk','478986eRJbDg','includes','startsWith','\x20skill\x20--help\x0a\x20\x20','1261616hjMxzA'];a114_0x1ceb=function(){return _0x43ff08;};return a114_0x1ceb();}export function normalizeLegacyBffSaveFlags(_0x156eee){const _0x187366=a114_0x70ef,_0x2253db=new Set(_0x156eee);return _0x2253db[_0x187366(0x1ac)]('dangerously-bff-save')&&_0x2253db[_0x187366(0x1a8)](_0x187366(0x1a0)),Array['from'](_0x2253db);}function a114_0x70ef(_0x55c2d4,_0x231eba){_0x55c2d4=_0x55c2d4-0x191;const _0x1ceb76=a114_0x1ceb();let _0x70efc6=_0x1ceb76[_0x55c2d4];return _0x70efc6;}const SKILLS_INSTALL_COMMAND_LINE=a114_0x441970(0x19f);export async function skillsCommand(_0x4ef0f9,_0x42c747,_0x3c24f7){const _0x3fc9b4=a114_0x441970;logger[_0x3fc9b4(0x1a2)](process[_0x3fc9b4(0x19a)]());if(_0x3c24f7?.['help']||_0x4ef0f9===_0x3fc9b4(0x1a9)){showHelp();return;}console[_0x3fc9b4(0x1aa)](_0x3fc9b4(0x19d)+(_0x4ef0f9||'(empty)')),console[_0x3fc9b4(0x1ae)](_0x3fc9b4(0x1a4)),console[_0x3fc9b4(0x1ae)]('\x20\x20'+CLI_BIN_NAME+_0x3fc9b4(0x1a7)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x3fc9b4(0x1a3)),console[_0x3fc9b4(0x1ae)](''),console['log'](_0x3fc9b4(0x1ad)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3fc9b4(0x1aa)](_0x3fc9b4(0x199),_0x3fc9b4(0x1a5)+_0x4ef0f9),process['exit'](0x1);}function showHelp(){const _0x2d780e=a114_0x441970;console[_0x2d780e(0x1ae)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x2d780e(0x191)+CLI_BIN_NAME+_0x2d780e(0x19c)+SKILLS_INSTALL_COMMAND_LINE+_0x2d780e(0x195));}
@@ -1 +1 @@
1
- function a115_0x432e(_0x75431d,_0x17a5c9){_0x75431d=_0x75431d-0x135;const _0x418768=a115_0x4187();let _0x432e4f=_0x418768[_0x75431d];return _0x432e4f;}function a115_0x4187(){const _0x309ed8=['remove','exit\x20','toString','status','3LOpOve','1293080KBdfda','stdout','6932826mqvSpJ','unknown','inherit','lovrabet/lovrabet-skill','5661105MoXOYa','42GCeIjT','--global','stdio','add','308781MyGNlR','skill','join','stderr','Lovrabet','npx','--skill','280yFKJvH','log','178672mtUnVn','trim','78130HpWbEG','pipe','1704130MbSVuf'];a115_0x4187=function(){return _0x309ed8;};return a115_0x4187();}const a115_0x16b65b=a115_0x432e;(function(_0x1c8f98,_0x3bd32e){const _0xa89bef=a115_0x432e,_0x7a69a4=_0x1c8f98();while(!![]){try{const _0x507ebf=-parseInt(_0xa89bef(0x137))/0x1+parseInt(_0xa89bef(0x139))/0x2*(parseInt(_0xa89bef(0x13e))/0x3)+parseInt(_0xa89bef(0x135))/0x4+parseInt(_0xa89bef(0x145))/0x5+-parseInt(_0xa89bef(0x141))/0x6+-parseInt(_0xa89bef(0x146))/0x7*(parseInt(_0xa89bef(0x13f))/0x8)+-parseInt(_0xa89bef(0x14a))/0x9*(-parseInt(_0xa89bef(0x151))/0xa);if(_0x507ebf===_0x3bd32e)break;else _0x7a69a4['push'](_0x7a69a4['shift']());}catch(_0x19d792){_0x7a69a4['push'](_0x7a69a4['shift']());}}}(a115_0x4187,0xbff13));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=a115_0x16b65b(0x149);export const NPX_SKILLS_FLAG_SKILL=a115_0x16b65b(0x150);export const RABETBASE_SKILL_SOURCE=a115_0x16b65b(0x144);export const DEFAULT_RABETBASE_SKILL_NAME=a115_0x16b65b(0x14e);export function buildNpxSkillsAddArgv(_0x235d6f=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x235d6f];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a115_0x16b65b(0x14f),...buildNpxSkillsAddArgv()][a115_0x16b65b(0x14c)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2171e3,_0x3b08ac){const _0x4e3e66=a115_0x16b65b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x41095e=_0x3b08ac?.[_0x4e3e66(0x148)]??'inherit',_0x19ced0=resolveNpmBin(_0x4e3e66(0x14f)),_0x55850e=buildNpxSkillsAddArgv(_0x3b08ac?.[_0x4e3e66(0x14b)]??DEFAULT_RABETBASE_SKILL_NAME),_0x4a4aba=[_0x19ced0,..._0x55850e][_0x4e3e66(0x14c)]('\x20');console[_0x4e3e66(0x152)]('*\x20'+_0x4a4aba);const _0x21becc=spawnSync(_0x19ced0,_0x55850e,{'cwd':_0x2171e3,'stdio':_0x41095e,'env':process.env,'shell':![]}),_0x57ec88=_0x21becc[_0x4e3e66(0x13d)];if(_0x57ec88===0x0)return{'ok':!![],'status':0x0};let _0x432764=_0x4e3e66(0x13b)+(_0x57ec88??_0x4e3e66(0x142));if(_0x41095e==='pipe'){const _0x1fff83=_0x21becc[_0x4e3e66(0x14d)]?_0x21becc['stderr'][_0x4e3e66(0x13c)]()[_0x4e3e66(0x136)]():'',_0x5ee6eb=_0x21becc[_0x4e3e66(0x140)]?_0x21becc['stdout'][_0x4e3e66(0x13c)]()['trim']():'';if(_0x1fff83)_0x432764=_0x1fff83;else{if(_0x5ee6eb)_0x432764=_0x5ee6eb;}}return{'ok':![],'status':_0x57ec88??null,'error':_0x432764};}export function runNpxSkillsRemove(_0x5de9b5,_0x2f8f9e){const _0x127797=a115_0x16b65b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x23350b=_0x2f8f9e?.[_0x127797(0x148)]??_0x127797(0x143),_0x5cbdc9=resolveNpmBin(_0x127797(0x14f)),_0xbd6e5e=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x127797(0x13a),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2f8f9e?.[_0x127797(0x14b)]??DEFAULT_RABETBASE_SKILL_NAME],_0x137937=[_0x5cbdc9,..._0xbd6e5e][_0x127797(0x14c)]('\x20');console[_0x127797(0x152)]('*\x20'+_0x137937);const _0x3bc337=spawnSync(_0x5cbdc9,_0xbd6e5e,{'cwd':_0x5de9b5,'stdio':_0x23350b,'env':process.env,'shell':![]}),_0x58e8e2=_0x3bc337[_0x127797(0x13d)];if(_0x58e8e2===0x0)return{'ok':!![],'status':0x0};let _0x53cc24='exit\x20'+(_0x58e8e2??_0x127797(0x142));if(_0x23350b===_0x127797(0x138)){const _0x46730c=_0x3bc337[_0x127797(0x14d)]?_0x3bc337['stderr']['toString']()[_0x127797(0x136)]():'',_0x38f580=_0x3bc337['stdout']?_0x3bc337[_0x127797(0x140)][_0x127797(0x13c)]()[_0x127797(0x136)]():'';if(_0x46730c)_0x53cc24=_0x46730c;else{if(_0x38f580)_0x53cc24=_0x38f580;}}return{'ok':![],'status':_0x58e8e2??null,'error':_0x53cc24};}export function runNpxSkillsAddGlobal(_0x240ac7,_0x452b1d,_0x27971f){const _0x30eb0c=a115_0x16b65b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2e6079=_0x27971f?.[_0x30eb0c(0x148)]??_0x30eb0c(0x143),_0x29d4c8=resolveNpmBin('npx'),_0x27416f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x452b1d,_0x30eb0c(0x147)],_0x1116ff=[_0x29d4c8,..._0x27416f][_0x30eb0c(0x14c)]('\x20');console[_0x30eb0c(0x152)]('*\x20'+_0x1116ff);const _0x5e34fc=spawnSync(_0x29d4c8,_0x27416f,{'cwd':_0x240ac7,'stdio':_0x2e6079,'env':process.env,'shell':![]}),_0x25243f=_0x5e34fc[_0x30eb0c(0x13d)];if(_0x25243f===0x0)return{'ok':!![],'status':0x0};let _0x497c72=_0x30eb0c(0x13b)+(_0x25243f??_0x30eb0c(0x142));if(_0x2e6079===_0x30eb0c(0x138)){const _0x55de8c=_0x5e34fc[_0x30eb0c(0x14d)]?_0x5e34fc[_0x30eb0c(0x14d)][_0x30eb0c(0x13c)]()[_0x30eb0c(0x136)]():'',_0x484698=_0x5e34fc[_0x30eb0c(0x140)]?_0x5e34fc[_0x30eb0c(0x140)][_0x30eb0c(0x13c)]()[_0x30eb0c(0x136)]():'';if(_0x55de8c)_0x497c72=_0x55de8c;else{if(_0x484698)_0x497c72=_0x484698;}}return{'ok':![],'status':_0x25243f??null,'error':_0x497c72};}
1
+ const a115_0x536a10=a115_0x1ce2;function a115_0x1ce2(_0x239248,_0x5d13bb){_0x239248=_0x239248-0x1c4;const _0x500225=a115_0x5002();let _0x1ce213=_0x500225[_0x239248];return _0x1ce213;}(function(_0x43caf5,_0x244173){const _0x28e2c3=a115_0x1ce2,_0x41995d=_0x43caf5();while(!![]){try{const _0x4a62ad=parseInt(_0x28e2c3(0x1db))/0x1*(parseInt(_0x28e2c3(0x1d9))/0x2)+-parseInt(_0x28e2c3(0x1e3))/0x3+parseInt(_0x28e2c3(0x1cf))/0x4*(parseInt(_0x28e2c3(0x1e0))/0x5)+parseInt(_0x28e2c3(0x1c5))/0x6*(-parseInt(_0x28e2c3(0x1e1))/0x7)+-parseInt(_0x28e2c3(0x1cc))/0x8+parseInt(_0x28e2c3(0x1df))/0x9*(parseInt(_0x28e2c3(0x1dc))/0xa)+-parseInt(_0x28e2c3(0x1c7))/0xb*(-parseInt(_0x28e2c3(0x1cd))/0xc);if(_0x4a62ad===_0x244173)break;else _0x41995d['push'](_0x41995d['shift']());}catch(_0x5a1be7){_0x41995d['push'](_0x41995d['shift']());}}}(a115_0x5002,0x2e2fe));import{spawnSync}from'node:child_process';function a115_0x5002(){const _0x1b324a=['517jokUFm','yes','skills','trim','exit\x20','1377240DMuwuH','102852vHUKiy','unknown','4MebZPM','join','inherit','toString','stdio','skill','lovrabet/lovrabet-skill','--global','npx','pipe','82334mLyghR','--skill','5vfZQFk','840UAtsYG','status','stderr','324PlRuFX','1559015iXdkaU','21721NgGEkT','remove','969693swzGyr','add','stdout','Lovrabet','462bwtbvv','log'];a115_0x5002=function(){return _0x1b324a;};return a115_0x5002();}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a115_0x536a10(0x1c9);export const NPX_SKILLS_SUBCOMMAND_ADD=a115_0x536a10(0x1e4);export const NPX_SKILLS_FLAG_SKILL=a115_0x536a10(0x1da);export const RABETBASE_SKILL_SOURCE=a115_0x536a10(0x1d5);export const DEFAULT_RABETBASE_SKILL_NAME=a115_0x536a10(0x1c4);export function buildNpxSkillsAddArgv(_0x427500=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x427500];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a115_0x536a10(0x1d7),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1d1eae,_0xf6389e){const _0x106e10=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57a6a8=_0xf6389e?.[_0x106e10(0x1d3)]??_0x106e10(0x1d1),_0x5e9391=resolveNpmBin('npx'),_0x48892e=buildNpxSkillsAddArgv(_0xf6389e?.[_0x106e10(0x1d4)]??DEFAULT_RABETBASE_SKILL_NAME),_0x33d3d5=[_0x5e9391,..._0x48892e][_0x106e10(0x1d0)]('\x20');console[_0x106e10(0x1c6)]('*\x20'+_0x33d3d5);const _0x3abf7b=spawnSync(_0x5e9391,_0x48892e,{'cwd':_0x1d1eae,'stdio':_0x57a6a8,'env':process.env,'shell':![]}),_0x560ffe=_0x3abf7b[_0x106e10(0x1dd)];if(_0x560ffe===0x0)return{'ok':!![],'status':0x0};let _0x55695e=_0x106e10(0x1cb)+(_0x560ffe??_0x106e10(0x1ce));if(_0x57a6a8===_0x106e10(0x1d8)){const _0xfc28eb=_0x3abf7b['stderr']?_0x3abf7b[_0x106e10(0x1de)][_0x106e10(0x1d2)]()['trim']():'',_0x5621a3=_0x3abf7b[_0x106e10(0x1e5)]?_0x3abf7b[_0x106e10(0x1e5)]['toString']()[_0x106e10(0x1ca)]():'';if(_0xfc28eb)_0x55695e=_0xfc28eb;else{if(_0x5621a3)_0x55695e=_0x5621a3;}}return{'ok':![],'status':_0x560ffe??null,'error':_0x55695e};}export function runNpxSkillsRemove(_0x1e9179,_0x289f92){const _0x413889=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x157d19=_0x289f92?.[_0x413889(0x1d3)]??_0x413889(0x1d1),_0x51740c=resolveNpmBin(_0x413889(0x1d7)),_0x3a6c47=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x413889(0x1e2),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x289f92?.[_0x413889(0x1d4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x289f92?.[_0x413889(0x1c8)]?['-y']:[]],_0x369f43=[_0x51740c,..._0x3a6c47][_0x413889(0x1d0)]('\x20');console[_0x413889(0x1c6)]('*\x20'+_0x369f43);const _0x42941d=spawnSync(_0x51740c,_0x3a6c47,{'cwd':_0x1e9179,'stdio':_0x157d19,'env':process.env,'shell':![]}),_0x207288=_0x42941d[_0x413889(0x1dd)];if(_0x207288===0x0)return{'ok':!![],'status':0x0};let _0x21f91b=_0x413889(0x1cb)+(_0x207288??_0x413889(0x1ce));if(_0x157d19===_0x413889(0x1d8)){const _0x4b0507=_0x42941d[_0x413889(0x1de)]?_0x42941d[_0x413889(0x1de)][_0x413889(0x1d2)]()[_0x413889(0x1ca)]():'',_0x5c945d=_0x42941d['stdout']?_0x42941d[_0x413889(0x1e5)][_0x413889(0x1d2)]()['trim']():'';if(_0x4b0507)_0x21f91b=_0x4b0507;else{if(_0x5c945d)_0x21f91b=_0x5c945d;}}return{'ok':![],'status':_0x207288??null,'error':_0x21f91b};}export function runNpxSkillsAddGlobal(_0x287539,_0x509399,_0x33d4a6){const _0x430759=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57a8a0=_0x33d4a6?.[_0x430759(0x1d3)]??'inherit',_0x239209=resolveNpmBin(_0x430759(0x1d7)),_0x24e441=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x509399,_0x430759(0x1d6),..._0x33d4a6?.['yes']?['-y']:[]],_0x115b12=[_0x239209,..._0x24e441][_0x430759(0x1d0)]('\x20');console['log']('*\x20'+_0x115b12);const _0x1421ea=spawnSync(_0x239209,_0x24e441,{'cwd':_0x287539,'stdio':_0x57a8a0,'env':process.env,'shell':![]}),_0x4d5568=_0x1421ea[_0x430759(0x1dd)];if(_0x4d5568===0x0)return{'ok':!![],'status':0x0};let _0x1d009b=_0x430759(0x1cb)+(_0x4d5568??'unknown');if(_0x57a8a0==='pipe'){const _0x48214e=_0x1421ea['stderr']?_0x1421ea['stderr']['toString']()[_0x430759(0x1ca)]():'',_0x2e4c1c=_0x1421ea['stdout']?_0x1421ea['stdout']['toString']()[_0x430759(0x1ca)]():'';if(_0x48214e)_0x1d009b=_0x48214e;else{if(_0x2e4c1c)_0x1d009b=_0x2e4c1c;}}return{'ok':![],'status':_0x4d5568??null,'error':_0x1d009b};}
@@ -1 +1 @@
1
- function a116_0x4dc1(){const _0x553e97=['190648KGmwWg','8FhgqVo','7287345MlhHqk','durationMs','12583696XBbPok','3418667eEYVsw','22WeKhqj','[REDACTED]','19806970ixXyfO','flags','295910IlxsOO','rabetbase.command','28mefmIz','342231Zpfdap','command','service','error','6AwTBzN','some'];a116_0x4dc1=function(){return _0x553e97;};return a116_0x4dc1();}(function(_0x508261,_0x188aa4){const _0x1abc70=a116_0x3f75,_0x126afa=_0x508261();while(!![]){try{const _0x1f74d9=-parseInt(_0x1abc70(0x1a4))/0x1+-parseInt(_0x1abc70(0x1a5))/0x2*(parseInt(_0x1abc70(0x19e))/0x3)+parseInt(_0x1abc70(0x19d))/0x4*(parseInt(_0x1abc70(0x19b))/0x5)+-parseInt(_0x1abc70(0x1a2))/0x6*(parseInt(_0x1abc70(0x196))/0x7)+-parseInt(_0x1abc70(0x195))/0x8+-parseInt(_0x1abc70(0x193))/0x9+-parseInt(_0x1abc70(0x199))/0xa*(-parseInt(_0x1abc70(0x197))/0xb);if(_0x1f74d9===_0x188aa4)break;else _0x126afa['push'](_0x126afa['shift']());}catch(_0x26c915){_0x126afa['push'](_0x126afa['shift']());}}}(a116_0x4dc1,0xd1640));function a116_0x3f75(_0x2232d6,_0x440888){_0x2232d6=_0x2232d6-0x193;const _0x4dc17d=a116_0x4dc1();let _0x3f7511=_0x4dc17d[_0x2232d6];return _0x3f7511;}import{sendCliTraceLog}from'../telemetry/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 isSensitiveKey(_0xd422c1){const _0x4956e8=a116_0x3f75;return SENSITIVE_PATTERNS[_0x4956e8(0x1a3)](_0x526539=>_0x526539['test'](_0xd422c1));}function sanitizeFlags(_0x547818){const _0x49158f=a116_0x3f75,_0x5b1098={};for(const [_0x4523b5,_0x50cf77]of Object['entries'](_0x547818)){isSensitiveKey(_0x4523b5)?_0x5b1098[_0x4523b5]=_0x50cf77!=null&&_0x50cf77!==''?_0x49158f(0x198):_0x50cf77:_0x5b1098[_0x4523b5]=_0x50cf77;}return _0x5b1098;}export async function reportCommandTrace(_0x356a97){const _0xe2d817=a116_0x3f75;try{const _0x1c40c1=sanitizeFlags(_0x356a97[_0xe2d817(0x19a)]);await sendCliTraceLog({'spanName':_0xe2d817(0x19c),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x356a97[_0xe2d817(0x1a0)],'command.name':_0x356a97[_0xe2d817(0x19f)],'command.flags':JSON['stringify'](_0x1c40c1),..._0x356a97[_0xe2d817(0x194)]!=null?{'command.duration_ms':_0x356a97[_0xe2d817(0x194)]}:{},..._0x356a97[_0xe2d817(0x1a1)]?{'command.error':_0x356a97['error']instanceof Error?_0x356a97[_0xe2d817(0x1a1)]['message']:String(_0x356a97['error'])}:{}}});}catch{}}
1
+ (function(_0x27eea1,_0x3143a0){const _0x20e8cb=a116_0x2b15,_0x51a521=_0x27eea1();while(!![]){try{const _0x4ff8af=-parseInt(_0x20e8cb(0x198))/0x1+parseInt(_0x20e8cb(0x192))/0x2*(-parseInt(_0x20e8cb(0x199))/0x3)+parseInt(_0x20e8cb(0x19e))/0x4+-parseInt(_0x20e8cb(0x19f))/0x5+parseInt(_0x20e8cb(0x18d))/0x6*(parseInt(_0x20e8cb(0x194))/0x7)+parseInt(_0x20e8cb(0x18c))/0x8*(-parseInt(_0x20e8cb(0x193))/0x9)+parseInt(_0x20e8cb(0x19b))/0xa*(parseInt(_0x20e8cb(0x197))/0xb);if(_0x4ff8af===_0x3143a0)break;else _0x51a521['push'](_0x51a521['shift']());}catch(_0x21eea6){_0x51a521['push'](_0x51a521['shift']());}}}(a116_0x21ea,0x4f11f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a116_0x2b15(_0x223d5f,_0x19d61c){_0x223d5f=_0x223d5f-0x18c;const _0x21ea58=a116_0x21ea();let _0x2b15ca=_0x21ea58[_0x223d5f];return _0x2b15ca;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x791c83){const _0x174a5c=a116_0x2b15;return SENSITIVE_PATTERNS[_0x174a5c(0x191)](_0x19572f=>_0x19572f['test'](_0x791c83));}function sanitizeFlags(_0x12c5ff){const _0x797518=a116_0x2b15,_0x141e0c={};for(const [_0x35e6d5,_0xb69b11]of Object['entries'](_0x12c5ff)){isSensitiveKey(_0x35e6d5)?_0x141e0c[_0x35e6d5]=_0xb69b11!=null&&_0xb69b11!==''?_0x797518(0x196):_0xb69b11:_0x141e0c[_0x35e6d5]=_0xb69b11;}return _0x141e0c;}function a116_0x21ea(){const _0x3ab9d2=['message','[REDACTED]','6498151FmJkXU','58572nwYVFU','6543HFqkJg','rabetbase.command','10mfSBvP','error','command','309016eziOuX','451505DGDDfc','8VSizdD','5634XrYYuw','durationMs','flags','stringify','some','166MQxqjO','5815575UdSOsY','4711DjjVrE'];a116_0x21ea=function(){return _0x3ab9d2;};return a116_0x21ea();}export async function reportCommandTrace(_0x4106e3){const _0x1902bc=a116_0x2b15;try{const _0xd25b1d=sanitizeFlags(_0x4106e3[_0x1902bc(0x18f)]);await sendCliTraceLog({'spanName':_0x1902bc(0x19a),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4106e3['service'],'command.name':_0x4106e3[_0x1902bc(0x19d)],'command.flags':JSON[_0x1902bc(0x190)](_0xd25b1d),..._0x4106e3['durationMs']!=null?{'command.duration_ms':_0x4106e3[_0x1902bc(0x18e)]}:{},..._0x4106e3['error']?{'command.error':_0x4106e3[_0x1902bc(0x19c)]instanceof Error?_0x4106e3['error'][_0x1902bc(0x195)]:String(_0x4106e3[_0x1902bc(0x19c)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x11cfe7,_0x1dbd30){var _0x3e61a0=a117_0x5e5f,_0x1a0493=_0x11cfe7();while(!![]){try{var _0x3b2207=parseInt(_0x3e61a0(0x15c))/0x1*(parseInt(_0x3e61a0(0x157))/0x2)+parseInt(_0x3e61a0(0x15a))/0x3+-parseInt(_0x3e61a0(0x15e))/0x4+parseInt(_0x3e61a0(0x159))/0x5+-parseInt(_0x3e61a0(0x158))/0x6+-parseInt(_0x3e61a0(0x162))/0x7*(-parseInt(_0x3e61a0(0x161))/0x8)+-parseInt(_0x3e61a0(0x160))/0x9;if(_0x3b2207===_0x1dbd30)break;else _0x1a0493['push'](_0x1a0493['shift']());}catch(_0x3eb0c9){_0x1a0493['push'](_0x1a0493['shift']());}}}(a117_0x22cd,0x37aee));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a117_0x22cd(){var _0x563af3=['1918lHrriv','2dlaiLK','2707020mnaFml','418405JcRyHN','1255617gGkjFN','Failed\x20to\x20report\x20CLI\x20help\x20trace:','356827QrUUeT','error','87648wvrdPu','service','4809267rfaHRU','10992KjnLYo'];a117_0x22cd=function(){return _0x563af3;};return a117_0x22cd();}function a117_0x5e5f(_0x322e8b,_0x46af48){_0x322e8b=_0x322e8b-0x157;var _0x22cd11=a117_0x22cd();var _0x5e5f0b=_0x22cd11[_0x322e8b];return _0x5e5f0b;}export async function reportCliHelpTrace(_0x409a2d,_0x32cb91){var _0x4f42f6=a117_0x5e5f;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x409a2d,..._0x32cb91?.[_0x4f42f6(0x15f)]&&{'rabetbase.help.service':_0x32cb91[_0x4f42f6(0x15f)]}}});}catch(_0x970af){console[_0x4f42f6(0x15d)](_0x4f42f6(0x15b),_0x970af);}}
1
+ (function(_0x47fa3a,_0x3a0b7d){var _0x37e7cb=a117_0x4bf1,_0x4e85c6=_0x47fa3a();while(!![]){try{var _0x6fd2f8=parseInt(_0x37e7cb(0x193))/0x1*(parseInt(_0x37e7cb(0x18d))/0x2)+parseInt(_0x37e7cb(0x18a))/0x3*(-parseInt(_0x37e7cb(0x190))/0x4)+parseInt(_0x37e7cb(0x198))/0x5*(parseInt(_0x37e7cb(0x199))/0x6)+-parseInt(_0x37e7cb(0x196))/0x7*(parseInt(_0x37e7cb(0x197))/0x8)+-parseInt(_0x37e7cb(0x18f))/0x9*(-parseInt(_0x37e7cb(0x192))/0xa)+parseInt(_0x37e7cb(0x18c))/0xb*(parseInt(_0x37e7cb(0x191))/0xc)+-parseInt(_0x37e7cb(0x18b))/0xd;if(_0x6fd2f8===_0x3a0b7d)break;else _0x4e85c6['push'](_0x4e85c6['shift']());}catch(_0x149637){_0x4e85c6['push'](_0x4e85c6['shift']());}}}(a117_0x5a84,0x292c3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a117_0x4bf1(_0x401f90,_0x3d1f5c){_0x401f90=_0x401f90-0x18a;var _0x5a8410=a117_0x5a84();var _0x4bf154=_0x5a8410[_0x401f90];return _0x4bf154;}export async function reportCliHelpTrace(_0xcc8762,_0x2d0ca0){var _0x24485b=a117_0x4bf1;try{await sendCliTraceLog({'spanName':_0x24485b(0x18e),'logData':{'rabetbase.help.kind':_0xcc8762,..._0x2d0ca0?.[_0x24485b(0x195)]&&{'rabetbase.help.service':_0x2d0ca0['service']}}});}catch(_0x3fc7bf){console[_0x24485b(0x194)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3fc7bf);}}function a117_0x5a84(){var _0xa8b007=['3243880jTAScf','9949vrDBJJ','error','service','1267RQguZt','6952whRaWG','5ZUitTG','885534PqCXLT','33ljRXvK','2713074NZQLHO','121kDaOTp','34MswQeW','cli.help','9eOYORa','111064TNsvnq','217032atQsnX'];a117_0x5a84=function(){return _0xa8b007;};return a117_0x5a84();}
@@ -1 +1 @@
1
- function a118_0x3a31(){const _0x27c2a1=['364oPRqZh','10613656tIfXBM','unknown','production','161718qWSGNF','3249NHZCpA','daily','rabetbase-cli','720HQQASI','2109420cmTaNl','username','1eqBqJk','nickname','user','1648522IdZcUk','11RTjGqi','3671110NmayZk','userInfo','3224830eAOZml'];a118_0x3a31=function(){return _0x27c2a1;};return a118_0x3a31();}(function(_0x5c4d7c,_0x25af7e){const _0x54d624=a118_0x1633,_0x3b7fb5=_0x5c4d7c();while(!![]){try{const _0x5a10fd=parseInt(_0x54d624(0x1e3))/0x1*(-parseInt(_0x54d624(0x1e6))/0x2)+-parseInt(_0x54d624(0x1dd))/0x3*(parseInt(_0x54d624(0x1e0))/0x4)+-parseInt(_0x54d624(0x1d7))/0x5+parseInt(_0x54d624(0x1dc))/0x6*(parseInt(_0x54d624(0x1d8))/0x7)+parseInt(_0x54d624(0x1d9))/0x8+parseInt(_0x54d624(0x1e1))/0x9+-parseInt(_0x54d624(0x1d5))/0xa*(parseInt(_0x54d624(0x1e7))/0xb);if(_0x5a10fd===_0x25af7e)break;else _0x3b7fb5['push'](_0x3b7fb5['shift']());}catch(_0x553fec){_0x3b7fb5['push'](_0x3b7fb5['shift']());}}}(a118_0x3a31,0xe3625));import a118_0x5967d3 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a118_0x1633(_0x48dceb,_0x4edfc5){_0x48dceb=_0x48dceb-0x1d5;const _0x3a31a1=a118_0x3a31();let _0x1633cd=_0x3a31a1[_0x48dceb];return _0x1633cd;}import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x481ff9=a118_0x1633,_0x3a04cc=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x15591a=_0x3a04cc?.[_0x481ff9(0x1e5)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x481ff9(0x1da)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x481ff9(0x1de):_0x481ff9(0x1db)),'username':_0x15591a?.[_0x481ff9(0x1e2)]??a118_0x5967d3[_0x481ff9(0x1d6)]()['username']??_0x481ff9(0x1df),..._0x15591a&&{'nickname':_0x15591a[_0x481ff9(0x1e4)]}}),cliOtelTraceInitialized=!![];}return _0x3a04cc;}
1
+ (function(_0x108b5e,_0xfb02b1){const _0x78b2d8=a118_0x2b5c,_0x26b7a1=_0x108b5e();while(!![]){try{const _0x137812=parseInt(_0x78b2d8(0xcb))/0x1*(-parseInt(_0x78b2d8(0xc8))/0x2)+-parseInt(_0x78b2d8(0xcd))/0x3+parseInt(_0x78b2d8(0xd7))/0x4*(-parseInt(_0x78b2d8(0xcf))/0x5)+parseInt(_0x78b2d8(0xd4))/0x6*(parseInt(_0x78b2d8(0xc7))/0x7)+-parseInt(_0x78b2d8(0xd2))/0x8+parseInt(_0x78b2d8(0xca))/0x9*(parseInt(_0x78b2d8(0xd5))/0xa)+parseInt(_0x78b2d8(0xce))/0xb*(parseInt(_0x78b2d8(0xd0))/0xc);if(_0x137812===_0xfb02b1)break;else _0x26b7a1['push'](_0x26b7a1['shift']());}catch(_0x2064ba){_0x26b7a1['push'](_0x26b7a1['shift']());}}}(a118_0x3028,0x269d4));function a118_0x2b5c(_0x532973,_0x39cb2b){_0x532973=_0x532973-0xc7;const _0x30287e=a118_0x3028();let _0x2b5cdf=_0x30287e[_0x532973];return _0x2b5cdf;}import a118_0x3ff0ee from'node:os';function a118_0x3028(){const _0x1864d1=['112362IvtIKb','702427zofpul','385gUJuID','120kOCPlh','nickname','2031160hBeDyV','daily','191340PgtEzB','10VVvmnd','unknown','16148QZzNtv','7DOYCUg','7634rZNqFZ','rabetbase-cli','1599237jwNJDz','23lDoRdf','username'];a118_0x3028=function(){return _0x1864d1;};return a118_0x3028();}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';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1b0b47=a118_0x2b5c,_0x394208=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x474198=_0x394208?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1b0b47(0xd6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1b0b47(0xd3):'production'),'username':_0x474198?.[_0x1b0b47(0xcc)]??a118_0x3ff0ee['userInfo']()['username']??_0x1b0b47(0xc9),..._0x474198&&{'nickname':_0x474198[_0x1b0b47(0xd1)]}}),cliOtelTraceInitialized=!![];}return _0x394208;}
@@ -1 +1 @@
1
- (function(_0x5294,_0x435b40){const _0x13f7e7=a119_0x21e7,_0x359233=_0x5294();while(!![]){try{const _0x244313=-parseInt(_0x13f7e7(0xa1))/0x1*(-parseInt(_0x13f7e7(0xa0))/0x2)+parseInt(_0x13f7e7(0x94))/0x3*(-parseInt(_0x13f7e7(0x93))/0x4)+-parseInt(_0x13f7e7(0x98))/0x5*(parseInt(_0x13f7e7(0xa3))/0x6)+parseInt(_0x13f7e7(0x9d))/0x7*(parseInt(_0x13f7e7(0x97))/0x8)+parseInt(_0x13f7e7(0x9a))/0x9+parseInt(_0x13f7e7(0x99))/0xa*(parseInt(_0x13f7e7(0x9b))/0xb)+-parseInt(_0x13f7e7(0x9f))/0xc*(-parseInt(_0x13f7e7(0xa4))/0xd);if(_0x244313===_0x435b40)break;else _0x359233['push'](_0x359233['shift']());}catch(_0x12e878){_0x359233['push'](_0x359233['shift']());}}}(a119_0x3ea8,0x97f8d));import{shutdownTraces}from'@lovrabet/otel-logger';function a119_0x3ea8(){const _0x249edc=['then','1721712jXcJmT','10gYCHxo','10tNbXTD','3100662bPxdOk','5940517RFqSUN','once','7rFTiWt','SIGTERM','723228cazzQr','2EwwyXJ','1010170shnDkL','exit','2504244BPZqEw','39Eaxtqb','62908htAlUu','159MAyyQV','beforeExit'];a119_0x3ea8=function(){return _0x249edc;};return a119_0x3ea8();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a119_0x21e7(_0x3ae3c1,_0x18cf96){_0x3ae3c1=_0x3ae3c1-0x93;const _0x3ea829=a119_0x3ea8();let _0x21e7b5=_0x3ea829[_0x3ae3c1];return _0x21e7b5;}export function registerOtelShutdownOnExit(){const _0x682845=a119_0x21e7;process[_0x682845(0x9c)](_0x682845(0x95),()=>{void flushOtelNodeIfUsed();});const _0x57f8cb=()=>{const _0x5a5498=_0x682845;void flushOtelNodeIfUsed()[_0x5a5498(0x96)](()=>process[_0x5a5498(0xa2)](0x0));};process['once']('SIGINT',_0x57f8cb),process[_0x682845(0x9c)](_0x682845(0x9e),_0x57f8cb);}export async function exitWithOtelShutdown(_0x5d954a){const _0x14c461=a119_0x21e7;await flushOtelNodeIfUsed(),process[_0x14c461(0xa2)](_0x5d954a);}
1
+ (function(_0x52829c,_0x325fb0){const _0x5b8a30=a119_0x1365,_0x3ad3b7=_0x52829c();while(!![]){try{const _0x439750=-parseInt(_0x5b8a30(0x129))/0x1*(-parseInt(_0x5b8a30(0x130))/0x2)+-parseInt(_0x5b8a30(0x126))/0x3*(-parseInt(_0x5b8a30(0x128))/0x4)+parseInt(_0x5b8a30(0x12b))/0x5*(parseInt(_0x5b8a30(0x12e))/0x6)+parseInt(_0x5b8a30(0x134))/0x7*(-parseInt(_0x5b8a30(0x131))/0x8)+parseInt(_0x5b8a30(0x132))/0x9+parseInt(_0x5b8a30(0x12c))/0xa+parseInt(_0x5b8a30(0x133))/0xb*(-parseInt(_0x5b8a30(0x135))/0xc);if(_0x439750===_0x325fb0)break;else _0x3ad3b7['push'](_0x3ad3b7['shift']());}catch(_0x6a79df){_0x3ad3b7['push'](_0x3ad3b7['shift']());}}}(a119_0x6727,0xbad53));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a119_0x1365(_0x341497,_0x164fce){_0x341497=_0x341497-0x126;const _0x672767=a119_0x6727();let _0x136521=_0x672767[_0x341497];return _0x136521;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0xd78b4e=a119_0x1365;process[_0xd78b4e(0x12d)](_0xd78b4e(0x12a),()=>{void flushOtelNodeIfUsed();});const _0x50dc0c=()=>{const _0x3afecb=_0xd78b4e;void flushOtelNodeIfUsed()[_0x3afecb(0x12f)](()=>process[_0x3afecb(0x136)](0x0));};process[_0xd78b4e(0x12d)](_0xd78b4e(0x127),_0x50dc0c),process[_0xd78b4e(0x12d)]('SIGTERM',_0x50dc0c);}function a119_0x6727(){const _0x23b9e7=['1372HfAQuF','beforeExit','5676005KdyJkx','6215960eBwLHe','once','6LFMUlY','then','554RHHjai','8JXWola','8285139DaOUKu','59543lNiNep','1074346hwMUHp','6396RHICwy','exit','1119693BwMLBy','SIGINT','8hNcbnF'];a119_0x6727=function(){return _0x23b9e7;};return a119_0x6727();}export async function exitWithOtelShutdown(_0x4de384){const _0x169c26=a119_0x1365;await flushOtelNodeIfUsed(),process[_0x169c26(0x136)](_0x4de384);}
@@ -1 +1 @@
1
- const a120_0x1d7474=a120_0x27f5;(function(_0x4f0eba,_0x145113){const _0x6ef4c6=a120_0x27f5,_0x304752=_0x4f0eba();while(!![]){try{const _0x2d0c92=-parseInt(_0x6ef4c6(0x1f5))/0x1+-parseInt(_0x6ef4c6(0x1fa))/0x2*(-parseInt(_0x6ef4c6(0x1f4))/0x3)+-parseInt(_0x6ef4c6(0x1f9))/0x4+parseInt(_0x6ef4c6(0x1f6))/0x5+-parseInt(_0x6ef4c6(0x1f2))/0x6*(parseInt(_0x6ef4c6(0x1f3))/0x7)+parseInt(_0x6ef4c6(0x1fc))/0x8+parseInt(_0x6ef4c6(0x1f8))/0x9;if(_0x2d0c92===_0x145113)break;else _0x304752['push'](_0x304752['shift']());}catch(_0x43fc93){_0x304752['push'](_0x304752['shift']());}}}(a120_0x1e93,0x54c9d));function a120_0x27f5(_0x3d9046,_0x597409){_0x3d9046=_0x3d9046-0x1f0;const _0x1e938a=a120_0x1e93();let _0x27f5dd=_0x1e938a[_0x3d9046];return _0x27f5dd;}import{sendTraceLog}from'@lovrabet/otel-logger';function a120_0x1e93(){const _0x4a9f87=['traceparent','version','traceName','spanName','26472NbTeKD','28BeDYIs','3slwKcc','535668LuRjhu','1742295UZlGGr','logData','5574168KGaMPf','2473584hUzUpa','660102PbLFbJ','rabetbase-cli','1769144GuMjbe'];a120_0x1e93=function(){return _0x4a9f87;};return a120_0x1e93();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a120_0x1d7474(0x1fb);export async function sendCliTraceLog(_0x5def53){const _0x1452de=a120_0x1d7474;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5def53[_0x1452de(0x1f0)]??DEFAULT_TRACE_NAME,'version':_0x5def53[_0x1452de(0x1fe)]??getCliVersion(),'spanName':_0x5def53[_0x1452de(0x1f1)],'eventType':'manual','logData':_0x5def53[_0x1452de(0x1f7)],..._0x5def53['traceparent']&&{'traceparent':_0x5def53[_0x1452de(0x1fd)]}});}
1
+ const a120_0x56b5ea=a120_0x1795;function a120_0x1795(_0x18179f,_0x24c401){_0x18179f=_0x18179f-0x1ee;const _0x341fe5=a120_0x341f();let _0x17953d=_0x341fe5[_0x18179f];return _0x17953d;}(function(_0x5ea313,_0x1d6704){const _0x571db4=a120_0x1795,_0x16431a=_0x5ea313();while(!![]){try{const _0x243144=parseInt(_0x571db4(0x1ef))/0x1+-parseInt(_0x571db4(0x1f9))/0x2+parseInt(_0x571db4(0x1f1))/0x3+parseInt(_0x571db4(0x1f7))/0x4*(parseInt(_0x571db4(0x1fa))/0x5)+-parseInt(_0x571db4(0x1f2))/0x6+-parseInt(_0x571db4(0x1f4))/0x7*(-parseInt(_0x571db4(0x1f8))/0x8)+-parseInt(_0x571db4(0x1fb))/0x9*(parseInt(_0x571db4(0x1f5))/0xa);if(_0x243144===_0x1d6704)break;else _0x16431a['push'](_0x16431a['shift']());}catch(_0x3ff0d2){_0x16431a['push'](_0x16431a['shift']());}}}(a120_0x341f,0x99366));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a120_0x56b5ea(0x1f0);export async function sendCliTraceLog(_0x5059fc){const _0x2df7a9=a120_0x56b5ea;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5059fc['traceName']??DEFAULT_TRACE_NAME,'version':_0x5059fc[_0x2df7a9(0x1f6)]??getCliVersion(),'spanName':_0x5059fc[_0x2df7a9(0x1ee)],'eventType':_0x2df7a9(0x1f3),'logData':_0x5059fc['logData'],..._0x5059fc[_0x2df7a9(0x1fc)]&&{'traceparent':_0x5059fc[_0x2df7a9(0x1fc)]}});}function a120_0x341f(){const _0x41df5a=['version','200PjKmzZ','60864bdzNeG','295264gMQGsy','13025UcRUfE','1726398JTArLc','traceparent','spanName','244602VPgRcA','rabetbase-cli','3242004LAXGLd','4163544MjRjYo','manual','189tVcMVK','10JjJSYI'];a120_0x341f=function(){return _0x41df5a;};return a120_0x341f();}
@@ -1 +1 @@
1
- function a122_0x42bb(){const _0x497301=['11161dxAGxT','48656UEemhq','Codex\x20IDE','610cdkrmb','.windsurf/workflows/rabetbase.md','Antigravity\x20IDE','Windsurf\x20IDE','.codex','通用模板\x20-\x20兜底方案','qoder','.claude','.codex/skills/lovrabet/SKILL.md','Trae','Trae\x20IDE','.codebuddy','Claude\x20Code','1700405MxjiTl','.agent/skills/lovrabet/SKILL.md','333UXQShw','Windsurf','.opencode/skills/lovrabet/SKILL.md','opencode','codebuddy','.qoder/skills/lovrabet/SKILL.md','.cursorrules','.trae/skills/lovrabet/SKILL.md','.qoder','2657590zpWrxm','4JBwADh','.cline','cline','Cline\x20IDE','trae','file','antigravity','11WhvGxY','.agent','Codex','.opencode','9668DAbsAF','agent','1513383PygeHw','windsurf','codex','cursor','其他\x20(通用模板)','.cursor/skills/rabetbase.md','1905000JpWQzd','Cline','Cursor\x20IDE','.cline/skills/lovrabet/SKILL.md','OpenCode','Cursor','SKILL.md.tpl','CodeBuddy\x20IDE','claude','Antigravity','.codebuddy/skills/lovrabet/SKILL.md','Qoder'];a122_0x42bb=function(){return _0x497301;};return a122_0x42bb();}const a122_0x13cb10=a122_0x2ef7;(function(_0x5ca117,_0x1a18aa){const _0x41a6a4=a122_0x2ef7,_0x2083d9=_0x5ca117();while(!![]){try{const _0x379c4d=-parseInt(_0x41a6a4(0x121))/0x1*(parseInt(_0x41a6a4(0x102))/0x2)+parseInt(_0x41a6a4(0x10f))/0x3+-parseInt(_0x41a6a4(0x10d))/0x4*(-parseInt(_0x41a6a4(0x124))/0x5)+-parseInt(_0x41a6a4(0x115))/0x6+-parseInt(_0x41a6a4(0xf6))/0x7+-parseInt(_0x41a6a4(0x122))/0x8*(parseInt(_0x41a6a4(0xf8))/0x9)+-parseInt(_0x41a6a4(0x101))/0xa*(-parseInt(_0x41a6a4(0x109))/0xb);if(_0x379c4d===_0x1a18aa)break;else _0x2083d9['push'](_0x2083d9['shift']());}catch(_0x2a8058){_0x2083d9['push'](_0x2083d9['shift']());}}}(a122_0x42bb,0x3ed2b));export const CORE_IDE_CONFIGS={'cursor':{'name':a122_0x13cb10(0x11a),'description':a122_0x13cb10(0x117),'folders':[a122_0x13cb10(0xfe),'.cursor'],'files':[{'type':'file','path':a122_0x13cb10(0x114),'template':a122_0x13cb10(0x11b)}]},'windsurf':{'name':a122_0x13cb10(0xf9),'description':a122_0x13cb10(0x127),'folders':['.windsurf'],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x125),'template':a122_0x13cb10(0x11b)}]},'claude':{'name':'Claude\x20Code','description':a122_0x13cb10(0xf5),'folders':[a122_0x13cb10(0x12b)],'files':[{'type':a122_0x13cb10(0x107),'path':'.claude/skills/lovrabet/SKILL.md','template':a122_0x13cb10(0x11b)}]},'cline':{'name':a122_0x13cb10(0x116),'description':a122_0x13cb10(0x105),'folders':[a122_0x13cb10(0x103)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x118),'template':a122_0x13cb10(0x11b)}]},'codex':{'name':a122_0x13cb10(0x10b),'description':a122_0x13cb10(0x123),'folders':[a122_0x13cb10(0x128)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x12c),'template':a122_0x13cb10(0x11b)}]},'opencode':{'name':a122_0x13cb10(0x119),'description':'OpenCode\x20IDE','folders':[a122_0x13cb10(0x10c)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0xfa),'template':a122_0x13cb10(0x11b)}]},'qoder':{'name':a122_0x13cb10(0x120),'description':'Qoder\x20IDE','folders':[a122_0x13cb10(0x100)],'files':[{'type':a122_0x13cb10(0x107),'path':'.qoder/rules/rabetbase.md','template':a122_0x13cb10(0x11b)},{'type':'file','path':a122_0x13cb10(0xfd),'template':a122_0x13cb10(0x11b)}]},'codebuddy':{'name':'CodeBuddy','description':a122_0x13cb10(0x11c),'folders':[a122_0x13cb10(0x12f)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x11f),'template':'SKILL.md.tpl'}]},'trae':{'name':a122_0x13cb10(0x12d),'description':a122_0x13cb10(0x12e),'folders':['.trae'],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0xff),'template':a122_0x13cb10(0x11b)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a122_0x13cb10(0x113),'description':a122_0x13cb10(0x129),'folders':[a122_0x13cb10(0x10a)],'files':[{'type':a122_0x13cb10(0x107),'path':'.agent/skills/lovrabet/SKILL.md','template':a122_0x13cb10(0x11b)}]},'antigravity':{'name':a122_0x13cb10(0x11e),'description':a122_0x13cb10(0x126),'folders':[a122_0x13cb10(0x10a)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0xf7),'template':a122_0x13cb10(0x11b)}]}};function a122_0x2ef7(_0xd342c8,_0x7ce42){_0xd342c8=_0xd342c8-0xf5;const _0x42bbed=a122_0x42bb();let _0x2ef740=_0x42bbed[_0xd342c8];return _0x2ef740;}export const CORE_IDE_LIST=[a122_0x13cb10(0x11d),'cline',a122_0x13cb10(0xfc),a122_0x13cb10(0x111),a122_0x13cb10(0x112),'opencode',a122_0x13cb10(0x12a),'trae',a122_0x13cb10(0x110)];export const IDE_LIST=[a122_0x13cb10(0x108),'claude',a122_0x13cb10(0x104),a122_0x13cb10(0xfc),a122_0x13cb10(0x111),a122_0x13cb10(0x112),a122_0x13cb10(0xfb),a122_0x13cb10(0x12a),a122_0x13cb10(0x106),a122_0x13cb10(0x110),a122_0x13cb10(0x10e)];export const ALL_CORE_IDES=['cursor',a122_0x13cb10(0x110),a122_0x13cb10(0x11d),'cline',a122_0x13cb10(0x111),'opencode',a122_0x13cb10(0x12a),a122_0x13cb10(0xfc),'trae'];
1
+ function a122_0x20bb(_0x59c5ff,_0x2af72a){_0x59c5ff=_0x59c5ff-0xf3;const _0x402272=a122_0x4022();let _0x20bbd9=_0x402272[_0x59c5ff];return _0x20bbd9;}const a122_0x41a35e=a122_0x20bb;(function(_0x5a32e4,_0x367f64){const _0x2ee406=a122_0x20bb,_0x4d831a=_0x5a32e4();while(!![]){try{const _0x40f434=parseInt(_0x2ee406(0x119))/0x1*(parseInt(_0x2ee406(0x10e))/0x2)+-parseInt(_0x2ee406(0x10c))/0x3+parseInt(_0x2ee406(0x101))/0x4+parseInt(_0x2ee406(0xfc))/0x5*(parseInt(_0x2ee406(0xf4))/0x6)+-parseInt(_0x2ee406(0x12a))/0x7*(parseInt(_0x2ee406(0x11c))/0x8)+parseInt(_0x2ee406(0x118))/0x9+-parseInt(_0x2ee406(0xf5))/0xa;if(_0x40f434===_0x367f64)break;else _0x4d831a['push'](_0x4d831a['shift']());}catch(_0x26e252){_0x4d831a['push'](_0x4d831a['shift']());}}}(a122_0x4022,0xa4515));export const CORE_IDE_CONFIGS={'cursor':{'name':a122_0x41a35e(0x112),'description':'Cursor\x20IDE','folders':[a122_0x41a35e(0x12b),a122_0x41a35e(0x10b)],'files':[{'type':'file','path':a122_0x41a35e(0xf3),'template':a122_0x41a35e(0x109)}]},'windsurf':{'name':a122_0x41a35e(0x124),'description':a122_0x41a35e(0x128),'folders':[a122_0x41a35e(0xfd)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0xfa),'template':a122_0x41a35e(0x109)}]},'claude':{'name':a122_0x41a35e(0x103),'description':a122_0x41a35e(0x103),'folders':[a122_0x41a35e(0x104)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x11e),'template':a122_0x41a35e(0x109)}]},'cline':{'name':a122_0x41a35e(0xf6),'description':a122_0x41a35e(0x108),'folders':['.cline'],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x12c),'template':a122_0x41a35e(0x109)}]},'codex':{'name':a122_0x41a35e(0x107),'description':a122_0x41a35e(0x10a),'folders':[a122_0x41a35e(0x10d)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x125),'template':a122_0x41a35e(0x109)}]},'opencode':{'name':'OpenCode','description':a122_0x41a35e(0x116),'folders':[a122_0x41a35e(0x11f)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x121),'template':a122_0x41a35e(0x109)}]},'qoder':{'name':a122_0x41a35e(0x105),'description':a122_0x41a35e(0x106),'folders':[a122_0x41a35e(0x11b)],'files':[{'type':a122_0x41a35e(0xff),'path':'.qoder/rules/rabetbase.md','template':a122_0x41a35e(0x109)},{'type':'file','path':a122_0x41a35e(0x120),'template':a122_0x41a35e(0x109)}]},'codebuddy':{'name':a122_0x41a35e(0x10f),'description':a122_0x41a35e(0x12e),'folders':[a122_0x41a35e(0x117)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x111),'template':a122_0x41a35e(0x109)}]},'trae':{'name':a122_0x41a35e(0x12d),'description':a122_0x41a35e(0x12f),'folders':['.trae'],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0xf9),'template':a122_0x41a35e(0x109)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a122_0x41a35e(0xf7),'description':a122_0x41a35e(0x126),'folders':[a122_0x41a35e(0x115)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x114),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a122_0x41a35e(0x113),'description':a122_0x41a35e(0x110),'folders':['.agent'],'files':[{'type':a122_0x41a35e(0xff),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a122_0x41a35e(0xfe),a122_0x41a35e(0xf8),'codebuddy',a122_0x41a35e(0x129),a122_0x41a35e(0xfb),'opencode',a122_0x41a35e(0x102),a122_0x41a35e(0x123),a122_0x41a35e(0x127)];export const IDE_LIST=[a122_0x41a35e(0x11a),a122_0x41a35e(0xfe),a122_0x41a35e(0xf8),a122_0x41a35e(0x11d),a122_0x41a35e(0x129),a122_0x41a35e(0xfb),a122_0x41a35e(0x122),a122_0x41a35e(0x102),a122_0x41a35e(0x123),a122_0x41a35e(0x127),a122_0x41a35e(0x100)];export const ALL_CORE_IDES=[a122_0x41a35e(0xfb),'windsurf','claude','cline',a122_0x41a35e(0x129),a122_0x41a35e(0x122),a122_0x41a35e(0x102),a122_0x41a35e(0x11d),a122_0x41a35e(0x123)];function a122_0x4022(){const _0x248d1b=['antigravity','.qoder','152ZYHSYj','codebuddy','.claude/skills/lovrabet/SKILL.md','.opencode','.qoder/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','opencode','trae','Windsurf','.codex/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','windsurf','Windsurf\x20IDE','codex','436919jZElnY','.cursorrules','.cline/skills/lovrabet/SKILL.md','Trae','CodeBuddy\x20IDE','Trae\x20IDE','.cursor/skills/rabetbase.md','4608390DdVJvQ','5661100JUyCLU','Cline','其他\x20(通用模板)','cline','.trae/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','cursor','5twTFss','.windsurf','claude','file','agent','2966052XUNaoI','qoder','Claude\x20Code','.claude','Qoder','Qoder\x20IDE','Codex','Cline\x20IDE','SKILL.md.tpl','Codex\x20IDE','.cursor','2620572XOqcFd','.codex','298QuNhqs','CodeBuddy','Antigravity\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','Cursor','Antigravity','.agent/skills/lovrabet/SKILL.md','.agent','OpenCode\x20IDE','.codebuddy','11751012eFiUeF','3244GQWbZd'];a122_0x4022=function(){return _0x248d1b;};return a122_0x4022();}
@@ -1 +1 @@
1
- (function(_0x2e7601,_0x5416fc){const _0x5bc0b9=a123_0x16fb,_0x59145e=_0x2e7601();while(!![]){try{const _0x27663a=parseInt(_0x5bc0b9(0xd6))/0x1*(parseInt(_0x5bc0b9(0xd2))/0x2)+parseInt(_0x5bc0b9(0xc4))/0x3*(-parseInt(_0x5bc0b9(0xc2))/0x4)+-parseInt(_0x5bc0b9(0xd3))/0x5+-parseInt(_0x5bc0b9(0xc5))/0x6+-parseInt(_0x5bc0b9(0xc7))/0x7*(-parseInt(_0x5bc0b9(0xd4))/0x8)+parseInt(_0x5bc0b9(0xc8))/0x9+parseInt(_0x5bc0b9(0xcf))/0xa;if(_0x27663a===_0x5416fc)break;else _0x59145e['push'](_0x59145e['shift']());}catch(_0x121e6e){_0x59145e['push'](_0x59145e['shift']());}}}(a123_0x57d7,0x56549));import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';import{createRequire}from'node:module';import a123_0x591f80 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x4ac141=a123_0x16fb;try{const _0x306838=createRequire(import.meta.url),_0x3e8980=a123_0x591f80['dirname'](_0x306838[_0x4ac141(0xbe)](_0x4ac141(0xca))),_0x1c67d1=a123_0x591f80['join'](_0x3e8980,'bin'),_0x4017b3=process['platform']===_0x4ac141(0xc0)?_0x4ac141(0xc9):'jq',_0x379504=a123_0x591f80[_0x4ac141(0xcb)](_0x1c67d1,_0x4017b3);if(existsSync(_0x379504))return _0x379504;}catch{}return'jq';}function a123_0x57d7(){const _0xcedc70=['28WVFYYs','--jq\x20needs\x20a\x20jq\x20binary.\x20Bundled\x20path\x20(from\x20node-jq)\x20was\x20not\x20found\x20and\x20`jq`\x20is\x20not\x20on\x20PATH.\x20Reinstall\x20dependencies\x20(allow\x20install\x20scripts),\x20set\x20JQ_PATH\x20to\x20a\x20jq\x20executable,\x20or\x20install\x20jq:\x20https://jqlang.org/','211521iRZSCG','1828368SqJiVQ','toString','447762XhqyII','5641434EQPrjq','jq.exe','node-jq/package.json','join','validation','trim','test','5112930cqTogO','jq:\x20','ENOENT','16BKMeoQ','3207405ejPcDh','64TdHuCr','message','17940PDWqkn','resolve','code','win32','pipe'];a123_0x57d7=function(){return _0xcedc70;};return a123_0x57d7();}function a123_0x16fb(_0x29ee37,_0xe3d6de){_0x29ee37=_0x29ee37-0xbe;const _0x57d730=a123_0x57d7();let _0x16fb2e=_0x57d730[_0x29ee37];return _0x16fb2e;}export function applyJqFilter(_0x1a101a,_0x1c1215){const _0x311671=a123_0x16fb,_0x5813b0=resolveJqBinary();try{return execFileSync(_0x5813b0,[_0x1c1215],{'input':_0x1a101a,'encoding':'utf8','maxBuffer':MAX_BUFFER,'stdio':[_0x311671(0xc1),_0x311671(0xc1),_0x311671(0xc1)]});}catch(_0x20be08){const _0xf77244=_0x20be08;if(_0xf77244[_0x311671(0xbf)]===_0x311671(0xd1))throw CliErrors[_0x311671(0xcc)](_0x311671(0xc3),'e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq');const _0x472a91=_0xf77244['stderr']?.[_0x311671(0xc6)]?.()[_0x311671(0xcd)]()??'',_0xc72179=(_0xf77244[_0x311671(0xd5)]??String(_0x20be08))['trim'](),_0x31fdec=_0x472a91||_0xc72179,_0x40f51c=/^\s*jq:/i[_0x311671(0xce)](_0x31fdec)?_0x31fdec:_0x311671(0xd0)+_0x31fdec;throw CliErrors[_0x311671(0xcc)](_0x40f51c);}}
1
+ (function(_0x3030d3,_0x4d8887){const _0x2a4925=a123_0x7910,_0x354da6=_0x3030d3();while(!![]){try{const _0x52958d=-parseInt(_0x2a4925(0xe7))/0x1+parseInt(_0x2a4925(0xd5))/0x2+parseInt(_0x2a4925(0xd6))/0x3+-parseInt(_0x2a4925(0xe5))/0x4+parseInt(_0x2a4925(0xe3))/0x5*(-parseInt(_0x2a4925(0xeb))/0x6)+-parseInt(_0x2a4925(0xe8))/0x7*(-parseInt(_0x2a4925(0xda))/0x8)+-parseInt(_0x2a4925(0xd8))/0x9*(-parseInt(_0x2a4925(0xd3))/0xa);if(_0x52958d===_0x4d8887)break;else _0x354da6['push'](_0x354da6['shift']());}catch(_0x10e9cc){_0x354da6['push'](_0x354da6['shift']());}}}(a123_0x50d8,0x89d9a));function a123_0x7910(_0x30ebf9,_0x13c8da){_0x30ebf9=_0x30ebf9-0xd3;const _0x50d820=a123_0x50d8();let _0x7910d2=_0x50d820[_0x30ebf9];return _0x7910d2;}import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';function a123_0x50d8(){const _0x368f82=['node-jq/package.json','722981rmcSBN','567hqiNYK','pipe','dirname','4831122pUWdtM','146210NpTBuT','test','1544222TVLBkE','1505667GrnVhy','toString','423XSewEe','trim','23928trURuF','jq.exe','platform','--jq\x20needs\x20a\x20jq\x20binary.\x20Bundled\x20path\x20(from\x20node-jq)\x20was\x20not\x20found\x20and\x20`jq`\x20is\x20not\x20on\x20PATH.\x20Reinstall\x20dependencies\x20(allow\x20install\x20scripts),\x20set\x20JQ_PATH\x20to\x20a\x20jq\x20executable,\x20or\x20install\x20jq:\x20https://jqlang.org/','e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq','win32','code','utf8','stderr','5RRkDZO','validation','442624HLYKcy'];a123_0x50d8=function(){return _0x368f82;};return a123_0x50d8();}import{createRequire}from'node:module';import a123_0x2dee79 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x405f5e=a123_0x7910;try{const _0x33e2a4=createRequire(import.meta.url),_0x12933b=a123_0x2dee79[_0x405f5e(0xea)](_0x33e2a4['resolve'](_0x405f5e(0xe6))),_0x4f8e5d=a123_0x2dee79['join'](_0x12933b,'bin'),_0x6d78f4=process[_0x405f5e(0xdc)]===_0x405f5e(0xdf)?_0x405f5e(0xdb):'jq',_0x26fb85=a123_0x2dee79['join'](_0x4f8e5d,_0x6d78f4);if(existsSync(_0x26fb85))return _0x26fb85;}catch{}return'jq';}export function applyJqFilter(_0x76ede0,_0x2dbe1a){const _0x565992=a123_0x7910,_0x1fd467=resolveJqBinary();try{return execFileSync(_0x1fd467,[_0x2dbe1a],{'input':_0x76ede0,'encoding':_0x565992(0xe1),'maxBuffer':MAX_BUFFER,'stdio':[_0x565992(0xe9),_0x565992(0xe9),'pipe']});}catch(_0x5185af){const _0x204476=_0x5185af;if(_0x204476[_0x565992(0xe0)]==='ENOENT')throw CliErrors[_0x565992(0xe4)](_0x565992(0xdd),_0x565992(0xde));const _0x3fa999=_0x204476[_0x565992(0xe2)]?.[_0x565992(0xd7)]?.()[_0x565992(0xd9)]()??'',_0x59750f=(_0x204476['message']??String(_0x5185af))[_0x565992(0xd9)](),_0x3a2efb=_0x3fa999||_0x59750f,_0x11b771=/^\s*jq:/i[_0x565992(0xd4)](_0x3a2efb)?_0x3a2efb:'jq:\x20'+_0x3a2efb;throw CliErrors[_0x565992(0xe4)](_0x11b771);}}
@@ -1 +1 @@
1
- (function(_0x54fadd,_0x3038b5){const _0x3eb783=a124_0x164b,_0x597a14=_0x54fadd();while(!![]){try{const _0x4a3817=-parseInt(_0x3eb783(0x74))/0x1*(-parseInt(_0x3eb783(0x70))/0x2)+-parseInt(_0x3eb783(0x7d))/0x3+-parseInt(_0x3eb783(0x6f))/0x4+parseInt(_0x3eb783(0x7c))/0x5*(-parseInt(_0x3eb783(0x71))/0x6)+parseInt(_0x3eb783(0x73))/0x7+parseInt(_0x3eb783(0x79))/0x8+parseInt(_0x3eb783(0x7b))/0x9;if(_0x4a3817===_0x3038b5)break;else _0x597a14['push'](_0x597a14['shift']());}catch(_0x4760d4){_0x597a14['push'](_0x597a14['shift']());}}}(a124_0x2a99,0xecf16));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x35a7e4=a124_0x164b;try{const _0xaaf29d=getTemplateBaseUrl(),_0x5699cf=_0xaaf29d+_0x35a7e4(0x78),_0x2fad79=await fetch(_0x5699cf,{'headers':{'Accept':'application/json'}});if(!_0x2fad79['ok'])return null;const _0x3a8f6f=await _0x2fad79[_0x35a7e4(0x76)]();if(!_0x3a8f6f[_0x35a7e4(0x7e)]?.[_0x35a7e4(0x7a)]||!_0x3a8f6f[_0x35a7e4(0x75)]?.[_0x35a7e4(0x77)]?.[_0x35a7e4(0x7a)])return null;return _0x3a8f6f;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a124_0x164b(_0x406d36,_0x51c821){_0x406d36=_0x406d36-0x6f;const _0x2a995e=a124_0x2a99();let _0x164be9=_0x2a995e[_0x406d36];return _0x164be9;}const CACHE_TTL=0x5*0x3c*0x3e8;function a124_0x2a99(){const _0x59b086=['json','node','/config.json','11337448jpjIQp','stableVersion','1737126ymFklo','5gGepMH','2604207ZNZtKm','cli','3403636AWFqpt','6tlLTGx','5887092ERqHAb','now','12385772cycthC','97029pxhBrk','sdk'];a124_0x2a99=function(){return _0x59b086;};return a124_0x2a99();}export async function getCdnConfig(){const _0x40bbb2=a124_0x164b,_0x5c190c=Date[_0x40bbb2(0x72)]();if(cachedConfig&&_0x5c190c-cacheTime<CACHE_TTL)return cachedConfig;const _0x547202=await fetchCdnConfig();return _0x547202&&(cachedConfig=_0x547202,cacheTime=_0x5c190c),_0x547202;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x1b0851,_0x829d3b){const _0x3895b3=a124_0x54d2,_0xbcb778=_0x1b0851();while(!![]){try{const _0x4c3beb=parseInt(_0x3895b3(0x103))/0x1+parseInt(_0x3895b3(0xff))/0x2+parseInt(_0x3895b3(0x102))/0x3+parseInt(_0x3895b3(0x105))/0x4*(parseInt(_0x3895b3(0x104))/0x5)+parseInt(_0x3895b3(0xfe))/0x6+-parseInt(_0x3895b3(0x106))/0x7+-parseInt(_0x3895b3(0x109))/0x8;if(_0x4c3beb===_0x829d3b)break;else _0xbcb778['push'](_0xbcb778['shift']());}catch(_0x311dcc){_0xbcb778['push'](_0xbcb778['shift']());}}}(a124_0x1f24,0x2302c));import{getTemplateBaseUrl}from'../utils/config.js';function a124_0x1f24(){const _0x1fabca=['449012BjhIls','stableVersion','json','380769CHJsyl','113578teaLvT','370XsGFXK','2668ZVnRWP','1928675OPLuGT','now','/config.json','1628360PnUsbs','cli','648654rsmoiX'];a124_0x1f24=function(){return _0x1fabca;};return a124_0x1f24();}function a124_0x54d2(_0x4cf893,_0x590304){_0x4cf893=_0x4cf893-0xfe;const _0x1f2422=a124_0x1f24();let _0x54d22d=_0x1f2422[_0x4cf893];return _0x54d22d;}export async function fetchCdnConfig(){const _0x4665fb=a124_0x54d2;try{const _0x5e6f10=getTemplateBaseUrl(),_0x59763a=_0x5e6f10+_0x4665fb(0x108),_0x3b39d5=await fetch(_0x59763a,{'headers':{'Accept':'application/json'}});if(!_0x3b39d5['ok'])return null;const _0x4b5cbd=await _0x3b39d5[_0x4665fb(0x101)]();if(!_0x4b5cbd[_0x4665fb(0x10a)]?.[_0x4665fb(0x100)]||!_0x4b5cbd['sdk']?.['node']?.[_0x4665fb(0x100)])return null;return _0x4b5cbd;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x5b52bb=a124_0x54d2,_0x51234e=Date[_0x5b52bb(0x107)]();if(cachedConfig&&_0x51234e-cacheTime<CACHE_TTL)return cachedConfig;const _0x4a9b26=await fetchCdnConfig();return _0x4a9b26&&(cachedConfig=_0x4a9b26,cacheTime=_0x51234e),_0x4a9b26;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a125_0x1d05e3=a125_0x185f;(function(_0x467a34,_0x268c4f){const _0x5632db=a125_0x185f,_0xff389a=_0x467a34();while(!![]){try{const _0x251110=parseInt(_0x5632db(0x122))/0x1+-parseInt(_0x5632db(0x133))/0x2+-parseInt(_0x5632db(0x138))/0x3+parseInt(_0x5632db(0x12e))/0x4*(parseInt(_0x5632db(0x141))/0x5)+parseInt(_0x5632db(0x13d))/0x6+parseInt(_0x5632db(0x13b))/0x7+-parseInt(_0x5632db(0x12c))/0x8;if(_0x251110===_0x268c4f)break;else _0xff389a['push'](_0xff389a['shift']());}catch(_0x432fe9){_0xff389a['push'](_0xff389a['shift']());}}}(a125_0xb6c7,0x5ca8c));import a125_0x2087de from'node:fs';import a125_0x5c20c5 from'node:path';import a125_0x90c97a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a125_0xb6c7(){const _0x75800c=['package.json','\x1b[0m','1.2.0','dependencies','test','\x1b[1m','6544880RMnNZj','@lovrabet/sdk','444172lXmlex','needsUpgrade','sdk','utf-8','minVersion','605154SKzhcT','\x1b[33m','node','log','\x20\x20\x20Upgrade\x20command:\x20','1314654QMNUTf','\x20\x20\x20Stable\x20version:\x20','latest','4824512Dspeom','packageName','1684650IkUZVH','coerce','↪\x20SDK\x20update\x20available','stableVersion','10wUGeGd','version','readFileSync','devDependencies','parse','746360ibaEdz','existsSync','some','join'];a125_0xb6c7=function(){return _0x75800c;};return a125_0xb6c7();}const FALLBACK_MIN_SDK_VERSION=a125_0x1d05e3(0x128);function isNonNumericVersion(_0x33a2f6){const _0x5a4869=a125_0x1d05e3,_0x185f97=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x185f97[_0x5a4869(0x124)](_0x10cb94=>_0x10cb94[_0x5a4869(0x12a)](_0x33a2f6));}function getInstalledVersion(_0x229cf7,_0x59ca71){const _0x13d013=a125_0x1d05e3;try{const _0x453e27=a125_0x5c20c5[_0x13d013(0x125)](_0x229cf7,'node_modules',_0x59ca71,_0x13d013(0x126));if(a125_0x2087de[_0x13d013(0x123)](_0x453e27)){const _0x137549=JSON[_0x13d013(0x145)](a125_0x2087de[_0x13d013(0x143)](_0x453e27,_0x13d013(0x131)));return _0x137549[_0x13d013(0x142)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x82e85b=a125_0x1d05e3;try{const _0x412d41=await getCdnConfig();return _0x412d41?.[_0x82e85b(0x130)]?.['node']?.[_0x82e85b(0x140)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x269fb6=a125_0x1d05e3;try{const _0x5e3c6a=await getCdnConfig();return _0x5e3c6a?.[_0x269fb6(0x130)]?.[_0x269fb6(0x135)]?.[_0x269fb6(0x13c)]||'@lovrabet/sdk';}catch{return _0x269fb6(0x12d);}}export async function checkSdkVersion(_0x160dbc){const _0x5b3f6e=a125_0x1d05e3,_0x175d54=a125_0x5c20c5[_0x5b3f6e(0x125)](_0x160dbc,_0x5b3f6e(0x126)),[_0x58ae19,_0x2a5c83]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x1f3709=_0x58ae19||FALLBACK_MIN_SDK_VERSION;if(!a125_0x2087de[_0x5b3f6e(0x123)](_0x175d54))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};try{const _0x58c197=JSON[_0x5b3f6e(0x145)](a125_0x2087de[_0x5b3f6e(0x143)](_0x175d54,'utf8')),_0x451ca2=_0x58c197['dependencies']||{},_0x3b8540=_0x58c197[_0x5b3f6e(0x144)]||{},_0x3507f9=_0x451ca2[_0x2a5c83]||_0x3b8540[_0x2a5c83];if(!_0x3507f9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};let _0x567093=getInstalledVersion(_0x160dbc,_0x2a5c83);!_0x567093&&(_0x567093=_0x3507f9);if(isNonNumericVersion(_0x3507f9))return{'installed':!![],'version':_0x567093,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};const _0x24591c=a125_0x90c97a[_0x5b3f6e(0x13e)](_0x567093),_0x570af8=a125_0x90c97a[_0x5b3f6e(0x13e)](_0x1f3709),_0x421ce8=_0x24591c&&_0x570af8?a125_0x90c97a['lt'](_0x24591c,_0x570af8):![];return{'installed':!![],'version':_0x567093,'needsUpgrade':_0x421ce8,'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};}}export function checkSdkVersionSync(_0xc8a393){const _0x36fabd=a125_0x1d05e3,_0x14943c=a125_0x5c20c5[_0x36fabd(0x125)](_0xc8a393,'package.json'),_0x3707c7='@lovrabet/sdk';if(!a125_0x2087de['existsSync'](_0x14943c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};try{const _0x34d4bc=JSON['parse'](a125_0x2087de['readFileSync'](_0x14943c,'utf8')),_0x111a51=_0x34d4bc[_0x36fabd(0x129)]||{},_0x1e50e1=_0x34d4bc['devDependencies']||{},_0x5d2aee=_0x111a51[_0x3707c7]||_0x1e50e1[_0x3707c7];if(!_0x5d2aee)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};let _0x4a4143=getInstalledVersion(_0xc8a393,_0x3707c7);!_0x4a4143&&(_0x4a4143=_0x5d2aee);if(isNonNumericVersion(_0x5d2aee))return{'installed':!![],'version':_0x4a4143,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};const _0x3c8a9e=a125_0x90c97a[_0x36fabd(0x13e)](_0x4a4143),_0x560645=_0x3c8a9e?a125_0x90c97a['lt'](_0x3c8a9e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4a4143,'needsUpgrade':_0x560645,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};}}function a125_0x185f(_0x340573,_0x11025d){_0x340573=_0x340573-0x122;const _0xb6c7b0=a125_0xb6c7();let _0x185fcb=_0xb6c7b0[_0x340573];return _0x185fcb;}export function printSdkUpgradeWarning(_0x320520){const _0x337591=a125_0x1d05e3;if(!_0x320520[_0x337591(0x12f)])return;const _0x560c94=_0x337591(0x134),_0x3856c7=_0x337591(0x127),_0x4a1e5b=_0x337591(0x12b),_0x55207c=_0x320520[_0x337591(0x13c)]||_0x337591(0x12d),_0x49ff11=_0x320520['stableVersion']||_0x320520[_0x337591(0x132)],_0x58dc28='npm\x20install\x20'+_0x55207c+'@'+(_0x49ff11||_0x337591(0x13a));console[_0x337591(0x136)](),console['log'](''+_0x560c94+_0x4a1e5b+_0x337591(0x13f)+_0x3856c7),console[_0x337591(0x136)](_0x560c94+'\x20\x20\x20Current\x20version:\x20'+_0x55207c+'@'+_0x320520['version']+_0x3856c7),console[_0x337591(0x136)](_0x560c94+_0x337591(0x139)+_0x49ff11+_0x3856c7),console[_0x337591(0x136)](_0x560c94+_0x337591(0x137)+_0x58dc28+_0x3856c7),console[_0x337591(0x136)]();}
1
+ const a125_0x526cb1=a125_0x2e4a;(function(_0xd9257b,_0x9b4a5e){const _0x4dce39=a125_0x2e4a,_0x40a4c8=_0xd9257b();while(!![]){try{const _0x5efa1f=parseInt(_0x4dce39(0x141))/0x1*(-parseInt(_0x4dce39(0x14f))/0x2)+parseInt(_0x4dce39(0x12e))/0x3*(parseInt(_0x4dce39(0x138))/0x4)+-parseInt(_0x4dce39(0x12f))/0x5+parseInt(_0x4dce39(0x153))/0x6*(-parseInt(_0x4dce39(0x13f))/0x7)+parseInt(_0x4dce39(0x145))/0x8+parseInt(_0x4dce39(0x147))/0x9*(-parseInt(_0x4dce39(0x130))/0xa)+parseInt(_0x4dce39(0x13e))/0xb*(parseInt(_0x4dce39(0x140))/0xc);if(_0x5efa1f===_0x9b4a5e)break;else _0x40a4c8['push'](_0x40a4c8['shift']());}catch(_0x244be6){_0x40a4c8['push'](_0x40a4c8['shift']());}}}(a125_0x4ab9,0x664fa));import a125_0x4e4cfc from'node:fs';function a125_0x2e4a(_0x4a8437,_0xc3ca86){_0x4a8437=_0x4a8437-0x12c;const _0x4ab99f=a125_0x4ab9();let _0x2e4a13=_0x4ab99f[_0x4a8437];return _0x2e4a13;}import a125_0x5d03e5 from'node:path';import a125_0x572a02 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a125_0x526cb1(0x143);function a125_0x4ab9(){const _0x2f8078=['stableVersion','test','all','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','version','8ksRcQv','packageName','readFileSync','existsSync','\x1b[33m','\x20\x20\x20Stable\x20version:\x20','862422rhEFof','16023NIgTNA','144XLLMAZ','23473ahKIlZ','@lovrabet/sdk','1.2.0','dependencies','3779536jrarcs','minVersion','1948113hkgaqS','utf8','latest','parse','npm\x20install\x20','node','utf-8','join','24UFccyr','package.json','coerce','log','450pXuDzP','some','needsUpgrade','sdk','node_modules','576141DcAezn','2460145tZZpHL','20miLDoH','\x1b[1m'];a125_0x4ab9=function(){return _0x2f8078;};return a125_0x4ab9();}function isNonNumericVersion(_0x444f17){const _0xa8f515=a125_0x526cb1,_0x33cea4=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x33cea4[_0xa8f515(0x154)](_0x460ec5=>_0x460ec5[_0xa8f515(0x133)](_0x444f17));}function getInstalledVersion(_0x3ef340,_0xf229e4){const _0x1b8235=a125_0x526cb1;try{const _0x207b66=a125_0x5d03e5[_0x1b8235(0x14e)](_0x3ef340,_0x1b8235(0x12d),_0xf229e4,'package.json');if(a125_0x4e4cfc['existsSync'](_0x207b66)){const _0x4252e0=JSON[_0x1b8235(0x14a)](a125_0x4e4cfc[_0x1b8235(0x13a)](_0x207b66,_0x1b8235(0x14d)));return _0x4252e0[_0x1b8235(0x137)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3b8b03=a125_0x526cb1;try{const _0x590766=await getCdnConfig();return _0x590766?.[_0x3b8b03(0x12c)]?.[_0x3b8b03(0x14c)]?.[_0x3b8b03(0x132)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x55d8dd=a125_0x526cb1;try{const _0x1f294b=await getCdnConfig();return _0x1f294b?.[_0x55d8dd(0x12c)]?.['node']?.[_0x55d8dd(0x139)]||_0x55d8dd(0x142);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x3a69f5){const _0x359015=a125_0x526cb1,_0x4cfd2a=a125_0x5d03e5[_0x359015(0x14e)](_0x3a69f5,_0x359015(0x150)),[_0x258fb2,_0x1fe836]=await Promise[_0x359015(0x134)]([getSdkStableVersion(),getSdkPackageName()]),_0x2343d5=_0x258fb2||FALLBACK_MIN_SDK_VERSION;if(!a125_0x4e4cfc[_0x359015(0x13b)](_0x4cfd2a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};try{const _0xbbbe32=JSON[_0x359015(0x14a)](a125_0x4e4cfc[_0x359015(0x13a)](_0x4cfd2a,_0x359015(0x148))),_0x134b06=_0xbbbe32[_0x359015(0x144)]||{},_0x46ea29=_0xbbbe32['devDependencies']||{},_0x3e0124=_0x134b06[_0x1fe836]||_0x46ea29[_0x1fe836];if(!_0x3e0124)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};let _0x45a6b6=getInstalledVersion(_0x3a69f5,_0x1fe836);!_0x45a6b6&&(_0x45a6b6=_0x3e0124);if(isNonNumericVersion(_0x3e0124))return{'installed':!![],'version':_0x45a6b6,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};const _0xbfbe95=a125_0x572a02['coerce'](_0x45a6b6),_0xa15d8b=a125_0x572a02[_0x359015(0x151)](_0x2343d5),_0x3705bb=_0xbfbe95&&_0xa15d8b?a125_0x572a02['lt'](_0xbfbe95,_0xa15d8b):![];return{'installed':!![],'version':_0x45a6b6,'needsUpgrade':_0x3705bb,'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};}}export function checkSdkVersionSync(_0x1c31d5){const _0x1a4ee7=a125_0x526cb1,_0xbea49d=a125_0x5d03e5[_0x1a4ee7(0x14e)](_0x1c31d5,'package.json'),_0x42967c='@lovrabet/sdk';if(!a125_0x4e4cfc[_0x1a4ee7(0x13b)](_0xbea49d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};try{const _0x2009a3=JSON[_0x1a4ee7(0x14a)](a125_0x4e4cfc[_0x1a4ee7(0x13a)](_0xbea49d,'utf8')),_0x13a3b9=_0x2009a3[_0x1a4ee7(0x144)]||{},_0x5b6a42=_0x2009a3['devDependencies']||{},_0x20e261=_0x13a3b9[_0x42967c]||_0x5b6a42[_0x42967c];if(!_0x20e261)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};let _0x2f9e16=getInstalledVersion(_0x1c31d5,_0x42967c);!_0x2f9e16&&(_0x2f9e16=_0x20e261);if(isNonNumericVersion(_0x20e261))return{'installed':!![],'version':_0x2f9e16,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};const _0x16575d=a125_0x572a02['coerce'](_0x2f9e16),_0x28d257=_0x16575d?a125_0x572a02['lt'](_0x16575d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2f9e16,'needsUpgrade':_0x28d257,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2ae251){const _0x209271=a125_0x526cb1;if(!_0x2ae251[_0x209271(0x155)])return;const _0x193105=_0x209271(0x13c),_0xe36ffa=_0x209271(0x135),_0x264e31=_0x209271(0x131),_0x5095c2=_0x2ae251['packageName']||_0x209271(0x142),_0x22e129=_0x2ae251[_0x209271(0x132)]||_0x2ae251[_0x209271(0x146)],_0x57f540=_0x209271(0x14b)+_0x5095c2+'@'+(_0x22e129||_0x209271(0x149));console['log'](),console[_0x209271(0x152)](''+_0x193105+_0x264e31+'↪\x20SDK\x20update\x20available'+_0xe36ffa),console[_0x209271(0x152)](_0x193105+'\x20\x20\x20Current\x20version:\x20'+_0x5095c2+'@'+_0x2ae251[_0x209271(0x137)]+_0xe36ffa),console[_0x209271(0x152)](_0x193105+_0x209271(0x13d)+_0x22e129+_0xe36ffa),console['log'](_0x193105+_0x209271(0x136)+_0x57f540+_0xe36ffa),console['log']();}
@@ -1 +1 @@
1
- (function(_0x2686a8,_0x1237dd){const _0xe7c735=a126_0x338c,_0x5be3a0=_0x2686a8();while(!![]){try{const _0x51a0b4=parseInt(_0xe7c735(0x1d7))/0x1+-parseInt(_0xe7c735(0x1d0))/0x2+-parseInt(_0xe7c735(0x1dc))/0x3+-parseInt(_0xe7c735(0x1e2))/0x4*(parseInt(_0xe7c735(0x1dd))/0x5)+-parseInt(_0xe7c735(0x1db))/0x6+-parseInt(_0xe7c735(0x1de))/0x7+parseInt(_0xe7c735(0x1d9))/0x8;if(_0x51a0b4===_0x1237dd)break;else _0x5be3a0['push'](_0x5be3a0['shift']());}catch(_0x91ad92){_0x5be3a0['push'](_0x5be3a0['shift']());}}}(a126_0xbadf,0x30785));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a126_0x2bae0c from'semver';function a126_0x338c(_0x59866f,_0x16e230){_0x59866f=_0x59866f-0x1cb;const _0xbadf2e=a126_0xbadf();let _0x338cca=_0xbadf2e[_0x59866f];return _0x338cca;}function a126_0xbadf(){const _0x3438d0=['../..','\x1b[1m','594344gxYlru','\x20\x20\x20Upgrade\x20command:\x20','coerce','↪\x20New\x20version\x20available','log','stableVersion','\x1b[0m','193088ikoyjQ','needsUpgrade','10117824tWXDHF','\x20\x20\x20Stable\x20version:\x20','2184162VDbfjd','448305aPaoDI','435hABogJ','1351301WzbmLP','\x1b[33m','cli','test','11752KBLgWX','package.json','version','1.0.0'];a126_0xbadf=function(){return _0x3438d0;};return a126_0xbadf();}import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x50535f=a126_0x338c;try{const _0x40566e=fileURLToPath(import.meta.url),_0x1a1527=resolve(dirname(_0x40566e),_0x50535f(0x1ce)),_0x7d71a0=resolve(_0x1a1527,_0x50535f(0x1cb)),_0x38b61b=JSON['parse'](readFileSync(_0x7d71a0,'utf-8'));return _0x38b61b[_0x50535f(0x1cc)]||_0x50535f(0x1cd);}catch{return'1.0.0';}}function isNonNumericVersion(_0xa4135a){const _0x21286b=a126_0x338c,_0x2ef3e3=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x2ef3e3['some'](_0x435ecf=>_0x435ecf[_0x21286b(0x1e1)](_0xa4135a));}export async function checkCliVersion(){const _0x20f930=a126_0x338c,_0x12e01f=getCurrentCliVersion(),_0x437343=await getCdnConfig(),_0x4e9c00=_0x437343?.[_0x20f930(0x1e0)]?.[_0x20f930(0x1d5)]||null;let _0x27b5ee=![];if(_0x4e9c00)try{const _0x6e1666=a126_0x2bae0c[_0x20f930(0x1d2)](_0x12e01f),_0x3eda3c=a126_0x2bae0c[_0x20f930(0x1d2)](_0x4e9c00);_0x6e1666&&_0x3eda3c&&(_0x27b5ee=a126_0x2bae0c['lt'](_0x6e1666,_0x3eda3c));}catch{_0x27b5ee=![];}return{'currentVersion':_0x12e01f,'stableVersion':_0x4e9c00,'needsUpgrade':_0x27b5ee,'isPreRelease':![]};}export function printCliUpgradeWarning(_0xb76afd){const _0x25e047=a126_0x338c;if(!_0xb76afd[_0x25e047(0x1d8)])return;const _0x524c54=_0x25e047(0x1df),_0x23e04e=_0x25e047(0x1d6),_0x3a2d34=_0x25e047(0x1cf),_0x2195b2='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest';console['log'](),console['log'](''+_0x524c54+_0x3a2d34+_0x25e047(0x1d3)+_0x23e04e),console[_0x25e047(0x1d4)](_0x524c54+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xb76afd['currentVersion']+_0x23e04e),console[_0x25e047(0x1d4)](_0x524c54+_0x25e047(0x1da)+_0xb76afd[_0x25e047(0x1d5)]+_0x23e04e),console[_0x25e047(0x1d4)](_0x524c54+_0x25e047(0x1d1)+_0x2195b2+_0x23e04e),console[_0x25e047(0x1d4)]();}
1
+ (function(_0x322cda,_0x48d62e){const _0xb6a9f9=a126_0x50b9,_0x10c7f7=_0x322cda();while(!![]){try{const _0x1d5832=parseInt(_0xb6a9f9(0x200))/0x1+-parseInt(_0xb6a9f9(0x1f6))/0x2*(parseInt(_0xb6a9f9(0x1fa))/0x3)+parseInt(_0xb6a9f9(0x1fd))/0x4*(-parseInt(_0xb6a9f9(0x1fe))/0x5)+parseInt(_0xb6a9f9(0x1f8))/0x6+-parseInt(_0xb6a9f9(0x1f7))/0x7+-parseInt(_0xb6a9f9(0x1e8))/0x8*(-parseInt(_0xb6a9f9(0x1eb))/0x9)+-parseInt(_0xb6a9f9(0x1f0))/0xa*(-parseInt(_0xb6a9f9(0x1f1))/0xb);if(_0x1d5832===_0x48d62e)break;else _0x10c7f7['push'](_0x10c7f7['shift']());}catch(_0x18d668){_0x10c7f7['push'](_0x10c7f7['shift']());}}}(a126_0x2f2f,0x3cc21));import{readFileSync}from'node:fs';function a126_0x50b9(_0x9c9c4,_0x571467){_0x9c9c4=_0x9c9c4-0x1e6;const _0x2f2fc3=a126_0x2f2f();let _0x50b966=_0x2f2fc3[_0x9c9c4];return _0x50b966;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a126_0x1491af from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a126_0x2f2f(){const _0x3de7c2=['currentVersion','cli','390yWogqa','66077nAUQbZ','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','utf-8','coerce','18tgLpNr','2356277akTvMc','2864268qJcjpA','parse','78108gRUhkq','\x20\x20\x20Upgrade\x20command:\x20','log','1828GNapfx','3530WTCZCR','../..','82064wuWiur','stableVersion','\x1b[1m','2789816ZqJidR','\x1b[33m','test','9NgYvpn','1.0.0','@latest'];a126_0x2f2f=function(){return _0x3de7c2;};return a126_0x2f2f();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x2e97e7=a126_0x50b9;try{const _0x4f2974=fileURLToPath(import.meta.url),_0x12d7db=resolve(dirname(_0x4f2974),_0x2e97e7(0x1ff)),_0x1f9ba7=resolve(_0x12d7db,'package.json'),_0x50fb6a=JSON[_0x2e97e7(0x1f9)](readFileSync(_0x1f9ba7,_0x2e97e7(0x1f4)));return _0x50fb6a['version']||_0x2e97e7(0x1ec);}catch{return _0x2e97e7(0x1ec);}}function isNonNumericVersion(_0x54fc0e){const _0x30da5a=a126_0x50b9,_0x1a2d74=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x1a2d74['some'](_0x178c89=>_0x178c89[_0x30da5a(0x1ea)](_0x54fc0e));}export async function checkCliVersion(){const _0x53cc04=a126_0x50b9,_0x52991f=getCurrentCliVersion(),_0x681b1f=await getCdnConfig(),_0xb37338=_0x681b1f?.[_0x53cc04(0x1ef)]?.[_0x53cc04(0x1e6)]||null;let _0x577c96=![];if(_0xb37338)try{const _0x552f67=a126_0x1491af[_0x53cc04(0x1f5)](_0x52991f),_0x33dd65=a126_0x1491af[_0x53cc04(0x1f5)](_0xb37338);_0x552f67&&_0x33dd65&&(_0x577c96=a126_0x1491af['lt'](_0x552f67,_0x33dd65));}catch{_0x577c96=![];}return{'currentVersion':_0x52991f,'stableVersion':_0xb37338,'needsUpgrade':_0x577c96,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x42aac5){const _0x2a51b3=a126_0x50b9;if(!_0x42aac5['needsUpgrade'])return;const _0x561368=_0x2a51b3(0x1e9),_0x3f19ee='\x1b[0m',_0x5f49a5=_0x2a51b3(0x1e7),_0x483c75='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x2a51b3(0x1ed);console['log'](),console['log'](''+_0x561368+_0x5f49a5+_0x2a51b3(0x1f2)+_0x3f19ee),console['log'](_0x561368+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x42aac5[_0x2a51b3(0x1ee)]+_0x3f19ee),console[_0x2a51b3(0x1fc)](_0x561368+_0x2a51b3(0x1f3)+_0x42aac5['stableVersion']+_0x3f19ee),console['log'](_0x561368+_0x2a51b3(0x1fb)+_0x483c75+_0x3f19ee),console[_0x2a51b3(0x1fc)]();}
@@ -1 +1 @@
1
- const a127_0x3fd960=a127_0x74fb;(function(_0x4fa30f,_0x48e6a8){const _0xe0ba84=a127_0x74fb,_0x5a5400=_0x4fa30f();while(!![]){try{const _0x33ca32=parseInt(_0xe0ba84(0x1d9))/0x1+parseInt(_0xe0ba84(0x1cb))/0x2*(-parseInt(_0xe0ba84(0x1de))/0x3)+parseInt(_0xe0ba84(0x1d3))/0x4+-parseInt(_0xe0ba84(0x1ca))/0x5+-parseInt(_0xe0ba84(0x1c9))/0x6+-parseInt(_0xe0ba84(0x1c5))/0x7*(-parseInt(_0xe0ba84(0x1db))/0x8)+parseInt(_0xe0ba84(0x1dc))/0x9;if(_0x33ca32===_0x48e6a8)break;else _0x5a5400['push'](_0x5a5400['shift']());}catch(_0x1192dd){_0x5a5400['push'](_0x5a5400['shift']());}}}(a127_0x1312,0x95b56));function a127_0x1312(){const _0x378f58=['object','entries','replace','3234512ydqikJ','trim','template_base_url','cookie','appcode','apps','874417JylcAV','length','96FXnuNY','1820016hJikOD','app','105177qUxLAN','project','merged','359310XMJeBi','env','string','map','5798676gGgcyC','2329050EYmuWn','26BuAIvM','https://g.lovrabet.com/dist/lovrabet-skill','defaultApp','projectConfig','values'];a127_0x1312=function(){return _0x378f58;};return a127_0x1312();}import{initEnv}from'../constant/env.js';import{readRawConfig,loadRawConfigLayers}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xd9d950){const _0x4225c1=a127_0x74fb,_0x63f6f0=readRawConfig(_0xd9d950);return _0x63f6f0[_0x4225c1(0x1c6)]&&typeof _0x63f6f0['env']===_0x4225c1(0x1c7)&&initEnv(_0x63f6f0[_0x4225c1(0x1c6)]),_0x63f6f0;}export function getConfigAppCode(){const _0x29ae69=a127_0x74fb,_0x363b7c=readRawConfig();if(_0x363b7c['apps']&&typeof _0x363b7c[_0x29ae69(0x1d8)]===_0x29ae69(0x1d0)){const _0x17dea2=_0x363b7c['defaultApp'];if(_0x17dea2&&_0x363b7c[_0x29ae69(0x1d8)][_0x17dea2]?.[_0x29ae69(0x1d7)])return String(_0x363b7c['apps'][_0x17dea2][_0x29ae69(0x1d7)])[_0x29ae69(0x1d4)]();const _0x48db34=Object[_0x29ae69(0x1cf)](_0x363b7c[_0x29ae69(0x1d8)])[0x0];if(_0x48db34?.[_0x29ae69(0x1d7)])return String(_0x48db34[_0x29ae69(0x1d7)])[_0x29ae69(0x1d4)]();}const _0x49cff6=_0x363b7c['appcode']||_0x363b7c[_0x29ae69(0x1dd)];if(typeof _0x49cff6!==_0x29ae69(0x1c7)||_0x49cff6[_0x29ae69(0x1d4)]()==='')return undefined;return _0x49cff6['trim']();}function a127_0x74fb(_0x112b37,_0x142ca0){_0x112b37=_0x112b37-0x1c5;const _0x1312be=a127_0x1312();let _0x74fbea=_0x1312be[_0x112b37];return _0x74fbea;}export function getMultiAppConfigs(_0x5f17e0=a127_0x3fd960(0x1df)){const _0x2062c4=a127_0x3fd960,_0x48e5b2=_0x5f17e0===_0x2062c4(0x1e0)?readRawConfig():loadRawConfigLayers()[_0x2062c4(0x1ce)],_0x3fa5a0=_0x48e5b2[_0x2062c4(0x1d8)];if(!_0x3fa5a0||typeof _0x3fa5a0!==_0x2062c4(0x1d0)||Object['keys'](_0x3fa5a0)[_0x2062c4(0x1da)]===0x0)return null;const _0x27d159=_0x48e5b2[_0x2062c4(0x1cd)];return Object[_0x2062c4(0x1d1)](_0x3fa5a0)[_0x2062c4(0x1c8)](([_0x156296,_0x30cde9])=>({'name':_0x156296,'appcode':_0x30cde9?.[_0x2062c4(0x1d7)]||'','isDefault':_0x156296===_0x27d159,'env':_0x30cde9?.['env'],'apiDir':_0x30cde9?.['apiDir'],'cookie':_0x30cde9?.[_0x2062c4(0x1d6)]||undefined}))['filter'](_0x39f1b1=>_0x39f1b1[_0x2062c4(0x1d7)]);}export function getTemplateBaseUrl(){const _0x1c3819=a127_0x3fd960,_0x255d3f=readRawConfig();if(_0x255d3f[_0x1c3819(0x1d5)]&&typeof _0x255d3f[_0x1c3819(0x1d5)]==='string')return _0x255d3f[_0x1c3819(0x1d5)][_0x1c3819(0x1d2)](/\/$/,'');return _0x1c3819(0x1cc);}
1
+ function a127_0x13d5(){const _0x56a62c=['apiDir','project','205zeyfLU','string','object','12iEtTPT','49256aqihDK','filter','map','merged','612mPKuFz','keys','77ICjBZT','apps','env','1660869dZgezW','defaultApp','values','template_base_url','168724ZATBVU','trim','894310jxboEn','length','appcode','entries','148584JMtwTF','396097KYrkHh','https://g.lovrabet.com/dist/lovrabet-skill','app','65370aoWglJ'];a127_0x13d5=function(){return _0x56a62c;};return a127_0x13d5();}const a127_0x20cc2b=a127_0x4fa6;(function(_0x5fca22,_0x43ece9){const _0x58c71c=a127_0x4fa6,_0x25c855=_0x5fca22();while(!![]){try{const _0x281c69=-parseInt(_0x58c71c(0x1bf))/0x1+parseInt(_0x58c71c(0x1aa))/0x2*(-parseInt(_0x58c71c(0x1be))/0x3)+parseInt(_0x58c71c(0x1b8))/0x4+-parseInt(_0x58c71c(0x1a7))/0x5*(-parseInt(_0x58c71c(0x1c2))/0x6)+parseInt(_0x58c71c(0x1b4))/0x7+-parseInt(_0x58c71c(0x1ab))/0x8*(parseInt(_0x58c71c(0x1af))/0x9)+-parseInt(_0x58c71c(0x1ba))/0xa*(-parseInt(_0x58c71c(0x1b1))/0xb);if(_0x281c69===_0x43ece9)break;else _0x25c855['push'](_0x25c855['shift']());}catch(_0x3597d5){_0x25c855['push'](_0x25c855['shift']());}}}(a127_0x13d5,0x3aa5b));import{initEnv}from'../constant/env.js';function a127_0x4fa6(_0x3b0d95,_0x1f3fde){_0x3b0d95=_0x3b0d95-0x1a5;const _0x13d597=a127_0x13d5();let _0x4fa6ae=_0x13d597[_0x3b0d95];return _0x4fa6ae;}import{readRawConfig,loadRawConfigLayers}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x918a0){const _0x2d216b=a127_0x4fa6,_0x51d6b3=readRawConfig(_0x918a0);return _0x51d6b3[_0x2d216b(0x1b3)]&&typeof _0x51d6b3['env']===_0x2d216b(0x1a8)&&initEnv(_0x51d6b3[_0x2d216b(0x1b3)]),_0x51d6b3;}export function getConfigAppCode(){const _0x17b2a1=a127_0x4fa6,_0x1490c4=readRawConfig();if(_0x1490c4[_0x17b2a1(0x1b2)]&&typeof _0x1490c4[_0x17b2a1(0x1b2)]===_0x17b2a1(0x1a9)){const _0x2c5a6d=_0x1490c4[_0x17b2a1(0x1b5)];if(_0x2c5a6d&&_0x1490c4[_0x17b2a1(0x1b2)][_0x2c5a6d]?.[_0x17b2a1(0x1bc)])return String(_0x1490c4[_0x17b2a1(0x1b2)][_0x2c5a6d][_0x17b2a1(0x1bc)])[_0x17b2a1(0x1b9)]();const _0x421210=Object[_0x17b2a1(0x1b6)](_0x1490c4[_0x17b2a1(0x1b2)])[0x0];if(_0x421210?.[_0x17b2a1(0x1bc)])return String(_0x421210[_0x17b2a1(0x1bc)])['trim']();}const _0x3e93db=_0x1490c4[_0x17b2a1(0x1bc)]||_0x1490c4[_0x17b2a1(0x1c1)];if(typeof _0x3e93db!==_0x17b2a1(0x1a8)||_0x3e93db[_0x17b2a1(0x1b9)]()==='')return undefined;return _0x3e93db[_0x17b2a1(0x1b9)]();}export function getMultiAppConfigs(_0x15b842=a127_0x20cc2b(0x1a6)){const _0x5ef69c=a127_0x20cc2b,_0x120d5a=_0x15b842===_0x5ef69c(0x1ae)?readRawConfig():loadRawConfigLayers()['projectConfig'],_0x245ab1=_0x120d5a[_0x5ef69c(0x1b2)];if(!_0x245ab1||typeof _0x245ab1!==_0x5ef69c(0x1a9)||Object[_0x5ef69c(0x1b0)](_0x245ab1)[_0x5ef69c(0x1bb)]===0x0)return null;const _0x18eaf=_0x120d5a['defaultApp'];return Object[_0x5ef69c(0x1bd)](_0x245ab1)[_0x5ef69c(0x1ad)](([_0x154bbc,_0x35aeeb])=>({'name':_0x154bbc,'appcode':_0x35aeeb?.[_0x5ef69c(0x1bc)]||'','isDefault':_0x154bbc===_0x18eaf,'env':_0x35aeeb?.[_0x5ef69c(0x1b3)],'apiDir':_0x35aeeb?.[_0x5ef69c(0x1a5)],'cookie':_0x35aeeb?.['cookie']||undefined}))[_0x5ef69c(0x1ac)](_0x2faa9f=>_0x2faa9f['appcode']);}export function getTemplateBaseUrl(){const _0x286937=a127_0x20cc2b,_0x1d1c2a=readRawConfig();if(_0x1d1c2a['template_base_url']&&typeof _0x1d1c2a[_0x286937(0x1b7)]===_0x286937(0x1a8))return _0x1d1c2a[_0x286937(0x1b7)]['replace'](/\/$/,'');return _0x286937(0x1c0);}
@@ -1 +1 @@
1
- (function(_0x34891a,_0x1dea50){const _0xea7c23=a128_0x3b94,_0x276ca1=_0x34891a();while(!![]){try{const _0xa4089f=parseInt(_0xea7c23(0xd1))/0x1+parseInt(_0xea7c23(0xd3))/0x2*(-parseInt(_0xea7c23(0xd4))/0x3)+parseInt(_0xea7c23(0xcd))/0x4*(parseInt(_0xea7c23(0xd2))/0x5)+parseInt(_0xea7c23(0xd5))/0x6*(parseInt(_0xea7c23(0xd7))/0x7)+parseInt(_0xea7c23(0xd9))/0x8+-parseInt(_0xea7c23(0xd0))/0x9+-parseInt(_0xea7c23(0xce))/0xa*(parseInt(_0xea7c23(0xdb))/0xb);if(_0xa4089f===_0x1dea50)break;else _0x276ca1['push'](_0x276ca1['shift']());}catch(_0x3b1510){_0x276ca1['push'](_0x276ca1['shift']());}}}(a128_0x25ce,0x80975));import a128_0x21552b from'node:path';function a128_0x25ce(){const _0x461058=['4569chyMRz','42JkAjVn','name','148386TOlFrg','isDirectory','8094472UJXnHm','复制目录时出错:','11pkvHgJ','copyFileSync','readdirSync','4SEOcld','14082370cHANSq','join','765108qEYaSu','776889MNSBXW','589515oPHRyj','46DAxWTs'];a128_0x25ce=function(){return _0x461058;};return a128_0x25ce();}import a128_0x4d4ea2 from'node:fs';function a128_0x3b94(_0x16c941,_0xa404cd){_0x16c941=_0x16c941-0xcb;const _0x25ce84=a128_0x25ce();let _0x3b943f=_0x25ce84[_0x16c941];return _0x3b943f;}export async function copyDirectory(_0x3c823e,_0x4fee4e){const _0x5256c7=a128_0x3b94;try{const _0x2d039d=a128_0x4d4ea2[_0x5256c7(0xcc)](_0x3c823e,{'withFileTypes':!![]});a128_0x4d4ea2['mkdirSync'](_0x4fee4e,{'recursive':!![]});for(const _0x294979 of _0x2d039d){const _0x4e7052=a128_0x21552b[_0x5256c7(0xcf)](_0x3c823e,_0x294979[_0x5256c7(0xd6)]),_0x1f3531=a128_0x21552b[_0x5256c7(0xcf)](_0x4fee4e,_0x294979['name']);_0x294979[_0x5256c7(0xd8)]()?await copyDirectory(_0x4e7052,_0x1f3531):a128_0x4d4ea2[_0x5256c7(0xcb)](_0x4e7052,_0x1f3531);}}catch(_0x3bb6c1){console['error'](_0x5256c7(0xda),_0x3bb6c1);}}
1
+ (function(_0x4ba708,_0x148400){const _0x738a6f=a128_0x372c,_0x30921c=_0x4ba708();while(!![]){try{const _0x1e53b2=-parseInt(_0x738a6f(0x119))/0x1*(parseInt(_0x738a6f(0x10d))/0x2)+-parseInt(_0x738a6f(0x10e))/0x3+-parseInt(_0x738a6f(0x112))/0x4+-parseInt(_0x738a6f(0x117))/0x5*(parseInt(_0x738a6f(0x116))/0x6)+parseInt(_0x738a6f(0x10f))/0x7*(-parseInt(_0x738a6f(0x111))/0x8)+-parseInt(_0x738a6f(0x114))/0x9*(-parseInt(_0x738a6f(0x11b))/0xa)+parseInt(_0x738a6f(0x11a))/0xb;if(_0x1e53b2===_0x148400)break;else _0x30921c['push'](_0x30921c['shift']());}catch(_0x111536){_0x30921c['push'](_0x30921c['shift']());}}}(a128_0x1eca,0x27bf9));import a128_0x19bff8 from'node:path';import a128_0x4882f5 from'node:fs';function a128_0x372c(_0x11bc17,_0xe32f0f){_0x11bc17=_0x11bc17-0x109;const _0x1eca23=a128_0x1eca();let _0x372c8b=_0x1eca23[_0x11bc17];return _0x372c8b;}export async function copyDirectory(_0x1f4a5e,_0x5464b2){const _0x48e906=a128_0x372c;try{const _0x3d2ccf=a128_0x4882f5[_0x48e906(0x110)](_0x1f4a5e,{'withFileTypes':!![]});a128_0x4882f5[_0x48e906(0x10b)](_0x5464b2,{'recursive':!![]});for(const _0x42e452 of _0x3d2ccf){const _0x39ca2f=a128_0x19bff8[_0x48e906(0x118)](_0x1f4a5e,_0x42e452['name']),_0x51180e=a128_0x19bff8['join'](_0x5464b2,_0x42e452[_0x48e906(0x10c)]);_0x42e452[_0x48e906(0x113)]()?await copyDirectory(_0x39ca2f,_0x51180e):a128_0x4882f5[_0x48e906(0x10a)](_0x39ca2f,_0x51180e);}}catch(_0x298434){console[_0x48e906(0x115)](_0x48e906(0x109),_0x298434);}}function a128_0x1eca(){const _0x32dad5=['18uHNZMF','error','1377246xRCZbn','5rgpFfJ','join','8517xCZQlc','8045444jfCpUC','1371100llciKp','复制目录时出错:','copyFileSync','mkdirSync','name','54bTVmKz','458268TVnQoL','1600431VaGlco','readdirSync','8EUOrbZ','7704qCtJWC','isDirectory'];a128_0x1eca=function(){return _0x32dad5;};return a128_0x1eca();}