@lovrabet/rabetbase-cli 2.0.2-beta.1 → 2.0.2-beta.10

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 (155) 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 -0
  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 -0
  14. package/lib/commands/api/index.js +1 -0
  15. package/lib/commands/api/list.js +1 -0
  16. package/lib/commands/api/pull.js +1 -0
  17. package/lib/commands/app.js +1 -1
  18. package/lib/commands/auth.js +1 -1
  19. package/lib/commands/bff/delete.js +1 -1
  20. package/lib/commands/bff/detail.js +1 -1
  21. package/lib/commands/bff/index.js +1 -1
  22. package/lib/commands/bff/list.js +1 -1
  23. package/lib/commands/bff/new.js +1 -1
  24. package/lib/commands/bff/pull.js +1 -1
  25. package/lib/commands/bff/push.js +1 -1
  26. package/lib/commands/bff/status.js +1 -1
  27. package/lib/commands/build.js +1 -1
  28. package/lib/commands/cli-update.js +1 -0
  29. package/lib/commands/codegen/index.js +1 -1
  30. package/lib/commands/codegen/sdk.js +1 -1
  31. package/lib/commands/codegen/sql.js +1 -1
  32. package/lib/commands/common/flags.js +1 -0
  33. package/lib/commands/config.js +1 -1
  34. package/lib/commands/create.js +1 -1
  35. package/lib/commands/dataset/detail.js +1 -1
  36. package/lib/commands/dataset/index.js +1 -1
  37. package/lib/commands/dataset/links.js +1 -1
  38. package/lib/commands/dataset/list.js +1 -1
  39. package/lib/commands/dataset/operations.js +1 -1
  40. package/lib/commands/doctor.js +1 -0
  41. package/lib/commands/init.js +1 -1
  42. package/lib/commands/logout.js +1 -1
  43. package/lib/commands/logs.js +1 -1
  44. package/lib/commands/menu/index.js +1 -0
  45. package/lib/commands/menu/shared/compare-table.js +1 -0
  46. package/lib/commands/menu/shared/index.js +1 -0
  47. package/lib/commands/menu/shared/inquirer.js +1 -0
  48. package/lib/commands/menu/shared/local-pages.js +1 -0
  49. package/lib/commands/menu/shared/logic.js +1 -0
  50. package/lib/commands/menu/shared/service.js +1 -0
  51. package/lib/commands/menu/shared/sync-core.js +1 -0
  52. package/lib/commands/menu/shared/update-core.js +1 -0
  53. package/lib/commands/menu/shared/valid-url.js +1 -0
  54. package/lib/commands/menu/sync.js +1 -0
  55. package/lib/commands/menu/update.js +1 -0
  56. package/lib/commands/preview.js +1 -1
  57. package/lib/commands/project-upgrade.js +1 -0
  58. package/lib/commands/registry.js +1 -1
  59. package/lib/commands/run.js +1 -1
  60. package/lib/commands/skill.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/sql/list.js +1 -1
  65. package/lib/commands/sql/save.js +1 -1
  66. package/lib/commands/sql/validate.js +1 -1
  67. package/lib/commands/start.js +1 -1
  68. package/lib/config/config-help.js +1 -1
  69. package/lib/config/main.js +1 -1
  70. package/lib/constant/cli.js +1 -1
  71. package/lib/constant/domain.js +1 -1
  72. package/lib/constant/env.js +1 -1
  73. package/lib/context.js +1 -1
  74. package/lib/core/alias-resolver.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/bff/config.js +1 -1
  77. package/lib/core/bff/file-system.js +1 -1
  78. package/lib/core/bff/hash.js +1 -1
  79. package/lib/core/bff/lock.js +1 -1
  80. package/lib/core/bff/utils.js +1 -1
  81. package/lib/core/db-resolver.js +1 -1
  82. package/lib/core/sql-validator.js +1 -1
  83. package/lib/create-app/enhanced-guided-create.js +1 -1
  84. package/lib/create-app/format-elapsed.js +1 -1
  85. package/lib/create-app/main.js +1 -1
  86. package/lib/create-app/non-interactive.js +1 -1
  87. package/lib/create-app/task-finished.js +1 -1
  88. package/lib/create-app/task-loading.js +1 -1
  89. package/lib/create-app/task-running.js +1 -1
  90. package/lib/create-app/task-time.js +1 -1
  91. package/lib/create-app/use-copy-project-template.js +1 -1
  92. package/lib/create-app/use-format-code.js +1 -1
  93. package/lib/create-app/use-install-dependencies.js +1 -1
  94. package/lib/errors.js +1 -1
  95. package/lib/framework/flags.js +1 -1
  96. package/lib/framework/help.js +1 -1
  97. package/lib/framework/index.js +1 -1
  98. package/lib/framework/output.js +1 -1
  99. package/lib/framework/response.js +1 -1
  100. package/lib/framework/runner.js +1 -1
  101. package/lib/generated/build-info.js +1 -1
  102. package/lib/help.js +1 -1
  103. package/lib/init/main.js +1 -1
  104. package/lib/skills/main.js +1 -1
  105. package/lib/skills/npx-skills-add.js +1 -1
  106. package/lib/telemetry/cli-help-trace.js +1 -0
  107. package/lib/telemetry/ensure-cli-otel-config.js +1 -0
  108. package/lib/telemetry/register-otel-exit-shutdown.js +1 -0
  109. package/lib/telemetry/send-cli-trace-log.js +1 -0
  110. package/lib/utils/ai_config.js +1 -1
  111. package/lib/utils/cdn-config.js +1 -1
  112. package/lib/utils/check-sdk-version.js +1 -1
  113. package/lib/utils/cli-version-check.js +1 -1
  114. package/lib/utils/config.js +1 -1
  115. package/lib/utils/copy-directory.js +1 -1
  116. package/lib/utils/file-utils.js +1 -1
  117. package/lib/utils/guides-cdn.js +1 -1
  118. package/lib/utils/http-client.js +1 -1
  119. package/lib/utils/logger.js +1 -1
  120. package/lib/utils/platform.js +1 -0
  121. package/lib/utils/rules-cdn.js +1 -1
  122. package/lib/utils/sleep.js +1 -1
  123. package/lib/utils/template-replacer.js +1 -1
  124. package/package.json +7 -4
  125. package/templates/generate-api/api.ts.tpl +4 -4
  126. package/templates/generate-api/client.ts.tpl +2 -2
  127. package/lib/ai-setup/config.js +0 -1
  128. package/lib/api/api-doc-ui.js +0 -1
  129. package/lib/api/api-pull-ui.js +0 -1
  130. package/lib/api/main.js +0 -1
  131. package/lib/api/pull-silent.js +0 -1
  132. package/lib/app-menu/app-menu-sync-ui.js +0 -1
  133. package/lib/app-menu/create-menu.js +0 -1
  134. package/lib/app-menu/get-local-pages.js +0 -1
  135. package/lib/app-menu/get-online-menu-list.js +0 -1
  136. package/lib/app-menu/types.js +0 -1
  137. package/lib/app-menu/use-get-online-menu-list.js +0 -1
  138. package/lib/app-menu/utils.js +0 -1
  139. package/lib/app-menu/valid-url.js +0 -1
  140. package/lib/app-menu-update-cdn/current-content.js +0 -1
  141. package/lib/app-menu-update-cdn/input-cdn-asset.js +0 -1
  142. package/lib/app-menu-update-cdn/main.js +0 -1
  143. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +0 -1
  144. package/lib/commands/api.js +0 -1
  145. package/lib/commands/mcp.js +0 -1
  146. package/lib/commands/menu.js +0 -1
  147. package/lib/mcp/McpInstallUI.js +0 -1
  148. package/lib/mcp/claude.js +0 -1
  149. package/lib/mcp/cursor.js +0 -1
  150. package/lib/mcp/main.js +0 -1
  151. package/lib/mcp/mcp-install-non-interactive.js +0 -1
  152. package/lib/mcp/mcp-installer.js +0 -1
  153. package/lib/ui/IDESelector.js +0 -1
  154. package/lib/ui/useIDESelection.js +0 -1
  155. /package/lib/{app-menu-update-cdn → commands/menu/shared}/types.js +0 -0
@@ -1 +1 @@
1
- const a2_0x1c46f4=a2_0x574a;(function(_0x4fa7d6,_0x3df481){const _0x55cd09=a2_0x574a,_0x1cd9ed=_0x4fa7d6();while(!![]){try{const _0x1b967a=parseInt(_0x55cd09(0x153))/0x1*(-parseInt(_0x55cd09(0x14c))/0x2)+parseInt(_0x55cd09(0x147))/0x3*(-parseInt(_0x55cd09(0x15c))/0x4)+parseInt(_0x55cd09(0x148))/0x5*(parseInt(_0x55cd09(0x140))/0x6)+parseInt(_0x55cd09(0x168))/0x7+parseInt(_0x55cd09(0x156))/0x8*(parseInt(_0x55cd09(0x14f))/0x9)+-parseInt(_0x55cd09(0x161))/0xa+parseInt(_0x55cd09(0x15d))/0xb;if(_0x1b967a===_0x3df481)break;else _0x1cd9ed['push'](_0x1cd9ed['shift']());}catch(_0x2e533f){_0x1cd9ed['push'](_0x1cd9ed['shift']());}}}(a2_0xddd9,0x910d0));function a2_0x574a(_0x493aa9,_0x599a7c){_0x493aa9=_0x493aa9-0x13b;const _0xddd9e8=a2_0xddd9();let _0x574a56=_0xddd9e8[_0x493aa9];return _0x574a56;}import{mkdirSync,writeFileSync}from'node:fs';function a2_0xddd9(){const _0x1aa6e8=['.md\x20-\x20','success','Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again','stringify','tableName','9QIRehy','6015KZPsqa','log','data','生成文档成功:\x20','2NjgwEC','.md\x20(','markdown','315paXWur','.md','application/json','message','833201DtwYYH','push','join','237704htNWXk','POST','./docs','datasetCode','✗\x20Failed:\x20','name','337628vVLSle','3564407yZKGWV','Failed\x20to\x20fetch\x20doc\x20(','status','text','10464990tCCLxC','length','✓\x20Generated:\x20','),\x20HTTP\x20status:\x20','utf8','api-doc','Waiting\x203\x20seconds...\x0a','2130919xrvjYU','error','Invalid\x20response\x20format\x20(','string','json','):\x20missing\x20data.markdown\x20field','5280RDdLYC','\x20datasets\x20to\x20generate\x20docs\x20for\x0a'];a2_0xddd9=function(){return _0x1aa6e8;};return a2_0xddd9();}import a2_0x12a130 from'node:path';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';export async function fetchDatasetDoc(_0x116ac3){const _0x4fc841=a2_0x574a,{appCode:_0x315d2a,datasetCode:_0x790645,datasetId:_0x4a567e,extraParams:_0x322a4b}=_0x116ac3,_0x391365=getApiDomain(),_0xa86b4d=_0x391365+'/api/node-toolbox/api-doc-generator',_0x4ad5d6={'appCode':_0x315d2a,'datasetCode':_0x790645,'datasetId':_0x4a567e,..._0x322a4b||{}},_0x12ebca=await fetch(_0xa86b4d,{'method':_0x4fc841(0x157),'headers':{'Content-Type':_0x4fc841(0x151),'Cookie':getCookie()},'body':JSON[_0x4fc841(0x145)](_0x4ad5d6)});if(!_0x12ebca['ok']){if(_0x12ebca['status']===0x191)throw new Error(_0x4fc841(0x144));let _0x24b19e='';try{_0x24b19e=await _0x12ebca[_0x4fc841(0x160)]();}catch(_0x4c8f00){}throw new Error(_0x4fc841(0x15e)+_0x790645+_0x4fc841(0x164)+_0x12ebca[_0x4fc841(0x15f)]+(_0x24b19e?'\x0a'+_0x24b19e:''));}const _0x346bf7=await _0x12ebca[_0x4fc841(0x13e)]();if(!_0x346bf7[_0x4fc841(0x14a)]||typeof _0x346bf7[_0x4fc841(0x14a)]['markdown']!==_0x4fc841(0x13d))throw new Error(_0x4fc841(0x13c)+_0x790645+_0x4fc841(0x13f));return _0x346bf7[_0x4fc841(0x14a)][_0x4fc841(0x14e)];}function delay(_0x2ff81d){return new Promise(_0x4f5bcc=>setTimeout(_0x4f5bcc,_0x2ff81d));}export async function generateDatasetDocs(_0x43de9d,_0x58fc64,_0x308877=a2_0x1c46f4(0x158),_0x5de9ce,_0x216bd7){const _0x378a08=a2_0x1c46f4;mkdirSync(_0x308877,{'recursive':!![]});const _0x744ec7=[],_0x41ce15=_0x43de9d['length'];console['log']('\x0a'+_0x41ce15+_0x378a08(0x141));for(let _0x506012=0x0;_0x506012<_0x43de9d[_0x378a08(0x162)];_0x506012++){const _0x1a9608=_0x43de9d[_0x506012],_0x232aef=_0x506012+0x1,_0xf885c0=_0x1a9608[_0x378a08(0x146)];try{console[_0x378a08(0x149)]('['+_0x232aef+'/'+_0x41ce15+']\x20Generating:\x20'+_0xf885c0+_0x378a08(0x14d)+_0x1a9608[_0x378a08(0x15b)]+')');_0x5de9ce&&_0x5de9ce(_0x232aef,_0x41ce15,_0xf885c0);const _0x3798d0=await fetchDatasetDoc({'appCode':_0x58fc64,'datasetCode':_0x1a9608[_0x378a08(0x159)],'datasetId':_0x1a9608['id'],'enableAI':![],'extraParams':_0x216bd7}),_0x15e8c3=a2_0x12a130[_0x378a08(0x155)](_0x308877,_0xf885c0+_0x378a08(0x150));writeFileSync(_0x15e8c3,_0x3798d0,{'encoding':_0x378a08(0x165)}),console['log'](_0x378a08(0x163)+_0xf885c0+_0x378a08(0x150)),logger[_0x378a08(0x143)](_0x378a08(0x166),_0x378a08(0x14b)+_0xf885c0,undefined,{'datasetCode':_0x1a9608[_0x378a08(0x159)],'datasetName':_0x1a9608[_0x378a08(0x15b)],'filePath':_0x15e8c3,'progress':_0x232aef+'/'+_0x41ce15}),_0x744ec7['push']({'datasetCode':_0x1a9608[_0x378a08(0x159)],'datasetName':_0x1a9608['name'],'filePath':_0x15e8c3,'success':!![]}),_0x232aef<_0x41ce15&&await delay(0x1388);}catch(_0x496173){const _0x3e32cd=_0x496173 instanceof Error?_0x496173[_0x378a08(0x152)]:String(_0x496173);console[_0x378a08(0x149)](_0x378a08(0x15a)+_0xf885c0+_0x378a08(0x142)+_0x3e32cd),logger[_0x378a08(0x13b)](_0x378a08(0x166),'生成文档失败:\x20'+_0x1a9608[_0x378a08(0x159)],{'datasetCode':_0x1a9608[_0x378a08(0x159)],'datasetName':_0x1a9608[_0x378a08(0x15b)],'error':_0x3e32cd,'progress':_0x232aef+'/'+_0x41ce15}),_0x744ec7[_0x378a08(0x154)]({'datasetCode':_0x1a9608[_0x378a08(0x159)],'datasetName':_0x1a9608[_0x378a08(0x15b)],'filePath':'','success':![],'error':_0x3e32cd}),_0x232aef<_0x41ce15&&(console[_0x378a08(0x149)](_0x378a08(0x167)),await delay(0xbb8));}}return _0x744ec7;}
1
+ const a0_0x4fe85f=a0_0xbbc0;(function(_0x16f908,_0x5e4c03){const _0x1027e6=a0_0xbbc0,_0x479f4a=_0x16f908();while(!![]){try{const _0x8de393=parseInt(_0x1027e6(0xcc))/0x1*(-parseInt(_0x1027e6(0xae))/0x2)+-parseInt(_0x1027e6(0xce))/0x3*(-parseInt(_0x1027e6(0xcf))/0x4)+parseInt(_0x1027e6(0xd6))/0x5*(parseInt(_0x1027e6(0xca))/0x6)+-parseInt(_0x1027e6(0xbf))/0x7*(parseInt(_0x1027e6(0xbb))/0x8)+parseInt(_0x1027e6(0xc1))/0x9+parseInt(_0x1027e6(0xba))/0xa*(-parseInt(_0x1027e6(0xc4))/0xb)+-parseInt(_0x1027e6(0xab))/0xc*(-parseInt(_0x1027e6(0xad))/0xd);if(_0x8de393===_0x5e4c03)break;else _0x479f4a['push'](_0x479f4a['shift']());}catch(_0x1d7bef){_0x479f4a['push'](_0x479f4a['shift']());}}}(a0_0x3190,0xc44d8));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x44e07b from'node:path';function a0_0xbbc0(_0x32b014,_0x1b70be){_0x32b014=_0x32b014-0xab;const _0x319024=a0_0x3190();let _0xbbc009=_0x319024[_0x32b014];return _0xbbc009;}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';export async function fetchDatasetDoc(_0x9c5eb7){const _0xa9010a=a0_0xbbc0,{appCode:_0xeac982,cookie:_0x23e5c3,datasetCode:_0x58db79,datasetId:_0x35aad8,extraParams:_0x6ab379}=_0x9c5eb7,_0xed6db1=getApiDomain(),_0x5ca121=_0xed6db1+_0xa9010a(0xd4),_0xd73775={'appCode':_0xeac982,'datasetCode':_0x58db79,'datasetId':_0x35aad8,..._0x6ab379||{}},_0x167ca3=await fetch(_0x5ca121,{'method':_0xa9010a(0xaf),'headers':{'Content-Type':_0xa9010a(0xc7),'Cookie':_0x23e5c3},'body':JSON[_0xa9010a(0xac)](_0xd73775)});if(!_0x167ca3['ok']){if(_0x167ca3['status']===0x191)throw new Error('Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again');let _0x256d08='';try{_0x256d08=await _0x167ca3[_0xa9010a(0xb0)]();}catch(_0x4c19d8){}throw new Error(_0xa9010a(0xb8)+_0x58db79+'),\x20HTTP\x20status:\x20'+_0x167ca3[_0xa9010a(0xc5)]+(_0x256d08?'\x0a'+_0x256d08:''));}const _0x5c9ad1=await _0x167ca3[_0xa9010a(0xcd)]();if(!_0x5c9ad1['data']||typeof _0x5c9ad1['data'][_0xa9010a(0xc2)]!==_0xa9010a(0xb1))throw new Error(_0xa9010a(0xbe)+_0x58db79+_0xa9010a(0xc0));return _0x5c9ad1['data']['markdown'];}function delay(_0x14caea){return new Promise(_0xbaa527=>setTimeout(_0xbaa527,_0x14caea));}export async function generateDatasetDocs(_0x1afe2c,_0x36a1c1,_0x3480f8,_0x56a088=a0_0x4fe85f(0xbc),_0x7a3cca,_0x8c5450){const _0x17cdbb=a0_0x4fe85f;mkdirSync(_0x56a088,{'recursive':!![]});const _0x98b885=[],_0x41a0d7=_0x1afe2c['length'];console[_0x17cdbb(0xc8)]('\x0a'+_0x41a0d7+_0x17cdbb(0xc9));for(let _0x302b3d=0x0;_0x302b3d<_0x1afe2c[_0x17cdbb(0xd2)];_0x302b3d++){const _0x43ba65=_0x1afe2c[_0x302b3d],_0x402f26=_0x302b3d+0x1,_0x207fb4=_0x43ba65[_0x17cdbb(0xb7)];try{console['log']('['+_0x402f26+'/'+_0x41a0d7+_0x17cdbb(0xd5)+_0x207fb4+_0x17cdbb(0xd7)+_0x43ba65[_0x17cdbb(0xd0)]+')');_0x7a3cca&&_0x7a3cca(_0x402f26,_0x41a0d7,_0x207fb4);const _0x2a07cd=await fetchDatasetDoc({'appCode':_0x36a1c1,'cookie':_0x3480f8,'datasetCode':_0x43ba65[_0x17cdbb(0xb9)],'datasetId':_0x43ba65['id'],'enableAI':![],'extraParams':_0x8c5450}),_0x30aee9=a0_0x44e07b['join'](_0x56a088,_0x207fb4+_0x17cdbb(0xb4));writeFileSync(_0x30aee9,_0x2a07cd,{'encoding':_0x17cdbb(0xc3)}),console[_0x17cdbb(0xc8)](_0x17cdbb(0xd1)+_0x207fb4+_0x17cdbb(0xb4)),logger['success'](_0x17cdbb(0xd3),_0x17cdbb(0xc6)+_0x207fb4,undefined,{'datasetCode':_0x43ba65[_0x17cdbb(0xb9)],'datasetName':_0x43ba65['name'],'filePath':_0x30aee9,'progress':_0x402f26+'/'+_0x41a0d7}),_0x98b885[_0x17cdbb(0xbd)]({'datasetCode':_0x43ba65[_0x17cdbb(0xb9)],'datasetName':_0x43ba65[_0x17cdbb(0xd0)],'filePath':_0x30aee9,'success':!![]}),_0x402f26<_0x41a0d7&&await delay(0x1388);}catch(_0x2d1314){const _0x47f516=_0x2d1314 instanceof Error?_0x2d1314[_0x17cdbb(0xb3)]:String(_0x2d1314);console['log'](_0x17cdbb(0xb2)+_0x207fb4+_0x17cdbb(0xb6)+_0x47f516),logger[_0x17cdbb(0xb5)](_0x17cdbb(0xd3),'生成文档失败:\x20'+_0x43ba65[_0x17cdbb(0xb9)],{'datasetCode':_0x43ba65[_0x17cdbb(0xb9)],'datasetName':_0x43ba65[_0x17cdbb(0xd0)],'error':_0x47f516,'progress':_0x402f26+'/'+_0x41a0d7}),_0x98b885[_0x17cdbb(0xbd)]({'datasetCode':_0x43ba65[_0x17cdbb(0xb9)],'datasetName':_0x43ba65[_0x17cdbb(0xd0)],'filePath':'','success':![],'error':_0x47f516}),_0x402f26<_0x41a0d7&&(console['log'](_0x17cdbb(0xcb)),await delay(0xbb8));}}return _0x98b885;}function a0_0x3190(){const _0x21aa21=['22495ehfbli','status','生成文档成功:\x20','application/json','log','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','12ziEEyo','Waiting\x203\x20seconds...\x0a','1AXnMKR','json','9IWhrhh','523268xyZvYU','name','✓\x20Generated:\x20','length','api-doc','/api/node-toolbox/api-doc-generator',']\x20Generating:\x20','3410570uKHjxd','.md\x20(','12pDvZbR','stringify','11934091UyEIVe','1969822pvKnDX','POST','text','string','✗\x20Failed:\x20','message','.md','error','.md\x20-\x20','tableName','Failed\x20to\x20fetch\x20doc\x20(','datasetCode','860TPlfYs','80OJTTPE','./docs','push','Invalid\x20response\x20format\x20(','621299uSUkjH','):\x20missing\x20data.markdown\x20field','1599489QoKkcP','markdown','utf8'];a0_0x3190=function(){return _0x21aa21;};return a0_0x3190();}
@@ -1 +1 @@
1
- function a4_0x3a42(_0x35ad7a,_0x341371){_0x35ad7a=_0x35ad7a-0x1b0;const _0x26f12c=a4_0x26f1();let _0x3a4263=_0x26f12c[_0x35ad7a];return _0x3a4263;}(function(_0x18da47,_0x4bfc0d){const _0x490214=a4_0x3a42,_0x494b44=_0x18da47();while(!![]){try{const _0xf59c61=parseInt(_0x490214(0x1c6))/0x1*(-parseInt(_0x490214(0x1c2))/0x2)+-parseInt(_0x490214(0x1c5))/0x3*(-parseInt(_0x490214(0x1d1))/0x4)+parseInt(_0x490214(0x1d3))/0x5*(-parseInt(_0x490214(0x1cc))/0x6)+parseInt(_0x490214(0x1b7))/0x7*(-parseInt(_0x490214(0x1ce))/0x8)+parseInt(_0x490214(0x1c9))/0x9*(-parseInt(_0x490214(0x1d0))/0xa)+-parseInt(_0x490214(0x1cf))/0xb+parseInt(_0x490214(0x1b2))/0xc*(parseInt(_0x490214(0x1d4))/0xd);if(_0xf59c61===_0x4bfc0d)break;else _0x494b44['push'](_0x494b44['shift']());}catch(_0x232bb4){_0x494b44['push'](_0x494b44['shift']());}}}(a4_0x26f1,0xb2743));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function cleanNewlines(_0x12ea87){const _0x3137eb=a4_0x3a42;return _0x12ea87[_0x3137eb(0x1b8)](/[\r\n]+/g,'\x20')[_0x3137eb(0x1be)]();}function a4_0x26f1(){const _0x29e259=['message','info','code','653429KnjACY','replace','errorCode','Unknown\x20error','json','Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again','正在从服务器拉取模型列表...\x20(环境:\x20','trim','includes','/api/node-toolbox/dataset/model-list?appcode=','data','654HAdFoU','Failed\x20to\x20fetch\x20datasets:\x20','Failed\x20to\x20fetch\x20datasets,\x20HTTP\x20status:\x20','39KzJpOF','2977RMxJEg','&otype=array','map','112986uNSBdW','success','errorMessage','2089602VxFDkn','Unauthorized','72QcRuNw','697521alxclY','1090DzgKFH','421016NjXfHo','length','5ozADPI','39NrBtti','error','UNAUTHORIZED','401','name','11825244bSSEco','status'];a4_0x26f1=function(){return _0x29e259;};return a4_0x26f1();}function cleanDatasetName(_0x4cf892){const _0x46eef5=a4_0x3a42;if(!_0x4cf892[_0x46eef5(0x1b1)])return _0x4cf892;return{..._0x4cf892,'name':cleanNewlines(_0x4cf892[_0x46eef5(0x1b1)])};}function cleanDatasetNames(_0x25f0d4){const _0x27d69c=a4_0x3a42;return _0x25f0d4[_0x27d69c(0x1c8)](cleanDatasetName);}export async function fetchModelList(_0x1cbfe6){const _0x3ff7e8=a4_0x3a42,_0x49b109=getEnv(),_0x212524=getApiDomain()+_0x3ff7e8(0x1c0)+_0x1cbfe6+_0x3ff7e8(0x1c7);logger[_0x3ff7e8(0x1b5)]('fetch-model-list',_0x3ff7e8(0x1bd)+_0x49b109+')',{'apiUrl':_0x212524});const _0x26e1d1=await fetch(_0x212524,{'headers':{'Cookie':getCookie()}});if(!_0x26e1d1['ok']){if(_0x26e1d1[_0x3ff7e8(0x1b3)]===0x191)throw new Error('Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again');throw new Error(_0x3ff7e8(0x1c4)+_0x26e1d1['status']);}const _0x42d895=await _0x26e1d1[_0x3ff7e8(0x1bb)]();if(!_0x42d895[_0x3ff7e8(0x1ca)]){const _0x4ded8d=_0x42d895['errorMsg']||_0x42d895[_0x3ff7e8(0x1b4)]||_0x42d895['data']?.['message']||_0x42d895[_0x3ff7e8(0x1cb)]||_0x42d895[_0x3ff7e8(0x1d5)]||_0x3ff7e8(0x1ba);if(_0x4ded8d[_0x3ff7e8(0x1bf)](_0x3ff7e8(0x1b0))||_0x4ded8d[_0x3ff7e8(0x1bf)](_0x3ff7e8(0x1cd))||_0x4ded8d[_0x3ff7e8(0x1bf)]('登录')||_0x4ded8d['includes']('认证')||_0x42d895[_0x3ff7e8(0x1b9)]===_0x3ff7e8(0x1d6)||_0x42d895['code']===0x191||_0x42d895[_0x3ff7e8(0x1b6)]==='401')throw new Error(_0x3ff7e8(0x1bc));throw new Error(_0x3ff7e8(0x1c3)+_0x4ded8d);}const _0x2171f9=cleanDatasetNames(_0x42d895[_0x3ff7e8(0x1c1)]['configArray']);return{'configArray':_0x2171f9,'count':_0x2171f9[_0x3ff7e8(0x1d2)]};}
1
+ (function(_0xb119ec,_0x11fbdd){const _0x116b26=a1_0x3fc5,_0x301bc8=_0xb119ec();while(!![]){try{const _0x4228cb=-parseInt(_0x116b26(0xa2))/0x1+-parseInt(_0x116b26(0xb8))/0x2*(-parseInt(_0x116b26(0xbe))/0x3)+-parseInt(_0x116b26(0xc2))/0x4*(parseInt(_0x116b26(0xa9))/0x5)+parseInt(_0x116b26(0xa6))/0x6+-parseInt(_0x116b26(0xa3))/0x7*(-parseInt(_0x116b26(0xc1))/0x8)+parseInt(_0x116b26(0xbc))/0x9*(parseInt(_0x116b26(0xb5))/0xa)+parseInt(_0x116b26(0xc0))/0xb*(-parseInt(_0x116b26(0xa8))/0xc);if(_0x4228cb===_0x11fbdd)break;else _0x301bc8['push'](_0x301bc8['shift']());}catch(_0x4b9fc2){_0x301bc8['push'](_0x301bc8['shift']());}}}(a1_0x471a,0x1f8db));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x471a(){const _0x12b637=['trim','Unknown\x20error','info','Failed\x20to\x20fetch\x20datasets:\x20','Failed\x20to\x20fetch\x20datasets,\x20HTTP\x20status:\x20','errorMessage','message','/api/node-toolbox/dataset/model-list?appcode=','Unauthorized','59470JaWYgB','map','name','378772irPxmd','status','json','data','369WcOZeO','fetch-model-list','3cwclVt','includes','473407nOQAwd','6672CsArni','2164kaEkJD','replace','401','errorMsg','250625oPUHdx','1351ekcOGi','正在从服务器拉取模型列表...\x20(环境:\x20','success','1508166AKeVFG','Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again','60EcaJZR','2315HlvBPY','length','code'];a1_0x471a=function(){return _0x12b637;};return a1_0x471a();}function a1_0x3fc5(_0x155951,_0xb448b){_0x155951=_0x155951-0xa0;const _0x471af0=a1_0x471a();let _0x3fc59d=_0x471af0[_0x155951];return _0x3fc59d;}function cleanNewlines(_0x293112){const _0x577339=a1_0x3fc5;return _0x293112[_0x577339(0xc3)](/[\r\n]+/g,'\x20')[_0x577339(0xac)]();}function cleanDatasetName(_0x4bdcaf){const _0x254d14=a1_0x3fc5;if(!_0x4bdcaf['name'])return _0x4bdcaf;return{..._0x4bdcaf,'name':cleanNewlines(_0x4bdcaf[_0x254d14(0xb7)])};}function cleanDatasetNames(_0x319b43){const _0xafc33f=a1_0x3fc5;return _0x319b43[_0xafc33f(0xb6)](cleanDatasetName);}export async function fetchModelList(_0x9ff45d,_0x1de171){const _0x13953d=a1_0x3fc5,_0x5dfbfa=getEnv(),_0x5a9385=getApiDomain()+_0x13953d(0xb3)+_0x9ff45d+'&otype=array';logger[_0x13953d(0xae)](_0x13953d(0xbd),_0x13953d(0xa4)+_0x5dfbfa+')',{'apiUrl':_0x5a9385});const _0x1e1360=await fetch(_0x5a9385,{'headers':{'Cookie':_0x1de171}});if(!_0x1e1360['ok']){if(_0x1e1360[_0x13953d(0xb9)]===0x191)throw new Error(_0x13953d(0xa7));throw new Error(_0x13953d(0xb0)+_0x1e1360[_0x13953d(0xb9)]);}const _0xd6fb7a=await _0x1e1360[_0x13953d(0xba)]();if(!_0xd6fb7a[_0x13953d(0xa5)]){const _0xdfad1c=_0xd6fb7a[_0x13953d(0xa1)]||_0xd6fb7a['message']||_0xd6fb7a[_0x13953d(0xbb)]?.[_0x13953d(0xb2)]||_0xd6fb7a[_0x13953d(0xb1)]||_0xd6fb7a['error']||_0x13953d(0xad);if(_0xdfad1c[_0x13953d(0xbf)](_0x13953d(0xa0))||_0xdfad1c[_0x13953d(0xbf)](_0x13953d(0xb4))||_0xdfad1c[_0x13953d(0xbf)]('登录')||_0xdfad1c[_0x13953d(0xbf)]('认证')||_0xd6fb7a['errorCode']==='UNAUTHORIZED'||_0xd6fb7a[_0x13953d(0xab)]===0x191||_0xd6fb7a['code']==='401')throw new Error(_0x13953d(0xa7));throw new Error(_0x13953d(0xaf)+_0xdfad1c);}const _0x47bdd6=cleanDatasetNames(_0xd6fb7a['data']['configArray']);return{'configArray':_0x47bdd6,'count':_0x47bdd6[_0x13953d(0xaa)]};}
@@ -1 +1 @@
1
- const a5_0x305799=a5_0x29f8;(function(_0x4dc7d1,_0x33e2ed){const _0x307ad7=a5_0x29f8,_0x1f76e4=_0x4dc7d1();while(!![]){try{const _0x8c41c=-parseInt(_0x307ad7(0xd8))/0x1*(-parseInt(_0x307ad7(0xe8))/0x2)+parseInt(_0x307ad7(0xe0))/0x3*(-parseInt(_0x307ad7(0xe6))/0x4)+-parseInt(_0x307ad7(0xd3))/0x5+-parseInt(_0x307ad7(0xec))/0x6+-parseInt(_0x307ad7(0xe7))/0x7*(parseInt(_0x307ad7(0xe1))/0x8)+-parseInt(_0x307ad7(0xeb))/0x9*(-parseInt(_0x307ad7(0xe5))/0xa)+-parseInt(_0x307ad7(0xf5))/0xb*(-parseInt(_0x307ad7(0xdf))/0xc);if(_0x8c41c===_0x33e2ed)break;else _0x1f76e4['push'](_0x1f76e4['shift']());}catch(_0x340e7a){_0x1f76e4['push'](_0x1f76e4['shift']());}}}(a5_0x3fd2,0x86dfd));import a5_0x57a6bc from'prettier';function a5_0x3fd2(){const _0x490bb1=['API\x20文件生成成功!','utf8','\x22\x20}','name','187272OQDyvi','230772hhKlOm','19984bIRFWV','templates/generate-api','CONFIG_NAMES.DEFAULT','typescript','20620shWCTm','20HvjHIC','2639akMFiU','1678904byRSXm','./src/api/','client','603pHiISd','2741250vrSzJF','init-api',',\x20env:\x20\x22','resolve','string','slice','endsWith','env','Please\x20configure\x20app\x20code\x20first\x20via\x20`rabetbase\x20config\x20set\x20app\x20<value>`','1441Mjqmev','client.ts.tpl','forEach','replaceApiContent','tableName','length','format','.ts','success','{\x20apiConfigName:\x20','production','3431530YvFPkr','join','key','alias','{\x20apiConfigName:\x20\x22','1rpRlfx','app','api'];a5_0x3fd2=function(){return _0x490bb1;};return a5_0x3fd2();}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a5_0x55ffd4 from'node:path';import{fileURLToPath}from'node:url';function a5_0x29f8(_0x102764,_0x1320e5){_0x102764=_0x102764-0xc9;const _0x3fd2c3=a5_0x3fd2();let _0x29f841=_0x3fd2c3[_0x102764];return _0x29f841;}import{readConfig}from'../utils/config.js';import{TemplateReplacer}from'../utils/template-replacer.js';import{logger}from'../utils/logger.js';export async function generateApiFile(_0x52f4f7,_0x43da41='',_0x4bbd68,_0x331778=![],_0x19ac18,_0x4a1335=a5_0x305799(0xe9)){const _0x21d158=a5_0x305799,_0x447b00=readConfig(),_0xab9c08=_0x4bbd68||_0x447b00?.[_0x21d158(0xd9)];if(typeof _0xab9c08!==_0x21d158(0xf0)||!_0xab9c08)throw new Error(_0x21d158(0xf4));const _0x2e1c5f=_0x331778?_0x21d158(0xe3):'\x22'+_0xab9c08+'\x22',_0x2737aa=typeof _0x447b00[_0x21d158(0xf3)]===_0x21d158(0xf0)?_0x447b00[_0x21d158(0xf3)]:undefined,_0x1afa79=_0x19ac18||_0x2737aa||_0x21d158(0xd2),_0xafbdfa=_0x1afa79!==_0x21d158(0xd2);let _0x4f96ac;if(_0x331778)_0xafbdfa?_0x4f96ac=_0x21d158(0xd1)+_0x2e1c5f+_0x21d158(0xee)+_0x1afa79+_0x21d158(0xdd):_0x4f96ac='';else{const _0x48c2e2=_0xafbdfa?_0x21d158(0xee)+_0x1afa79+'\x22':'';_0x4f96ac=_0x21d158(0xd7)+_0xab9c08+'\x22'+_0x48c2e2+'\x20}';}const _0x10bb12=_0x43da41?_0x43da41+'-api':_0x21d158(0xda),_0x3109f8=_0x43da41?_0x43da41+'-client':_0x21d158(0xea),_0x59b15f=[];_0x52f4f7[_0x21d158(0xca)](_0x54a5be=>{const _0x30ad8c=_0x21d158;_0x59b15f['push']({'datasetCode':_0x54a5be['datasetCode'],'tableName':_0x54a5be[_0x30ad8c(0xcc)],'name':_0x54a5be[_0x30ad8c(0xde)]||'','alias':_0x54a5be['alias']||_0x54a5be[_0x30ad8c(0xd5)]});});const _0x5e1237=fileURLToPath(import.meta.url),_0x4f725f=a5_0x55ffd4[_0x21d158(0xef)](a5_0x55ffd4['dirname'](_0x5e1237),'../..'),_0x4368c5=a5_0x55ffd4[_0x21d158(0xd4)](_0x4f725f,_0x21d158(0xe2)),_0x976cf0=a5_0x55ffd4['join'](_0x4368c5,'api.ts.tpl'),_0x100562=a5_0x55ffd4[_0x21d158(0xd4)](_0x4368c5,_0x21d158(0xc9)),_0x22e088=_0x4a1335[_0x21d158(0xf2)]('/')?_0x4a1335[_0x21d158(0xf1)](0x0,-0x1):_0x4a1335;mkdirSync(_0x22e088,{'recursive':!![]});const _0x5e5377=_0x59b15f[0x0]?.[_0x21d158(0xd6)],_0x36ecfc=readFileSync(_0x976cf0,'utf8'),_0x2e23ff=TemplateReplacer[_0x21d158(0xcb)](_0x36ecfc,_0xab9c08,_0x59b15f,_0x5e5377,_0x10bb12,_0x2e1c5f),_0x125f37=await a5_0x57a6bc[_0x21d158(0xce)](_0x2e23ff,{'parser':_0x21d158(0xe4)}),_0x2e52dd=_0x22e088+'/'+_0x10bb12+_0x21d158(0xcf);writeFileSync(_0x2e52dd,_0x125f37,{'encoding':'utf8'});const _0x462daa=readFileSync(_0x100562,_0x21d158(0xdc)),_0x5ac314=TemplateReplacer['replaceApiContent'](_0x462daa,_0xab9c08,_0x59b15f,_0x5e5377,_0x10bb12,_0x2e1c5f,_0x4f96ac),_0x63193=await a5_0x57a6bc[_0x21d158(0xce)](_0x5ac314,{'parser':_0x21d158(0xe4)}),_0x26c104=_0x22e088+'/'+_0x3109f8+_0x21d158(0xcf);writeFileSync(_0x26c104,_0x63193,{'encoding':_0x21d158(0xdc)});const _0x42d15d=_0x59b15f[_0x21d158(0xcd)];return logger[_0x21d158(0xd0)](_0x21d158(0xed),_0x21d158(0xdb),undefined,{'apiFile':_0x2e52dd,'clientFile':_0x26c104,'modelCount':_0x42d15d,'configName':_0x2e1c5f}),{'modelCount':_0x42d15d,'apiFilePath':_0x2e52dd,'clientFilePath':_0x26c104,'configName':_0x2e1c5f};}
1
+ function a2_0x48db(_0x51c6d2,_0x5b879e){_0x51c6d2=_0x51c6d2-0x1f2;const _0x3c4d87=a2_0x3c4d();let _0x48dbc4=_0x3c4d87[_0x51c6d2];return _0x48dbc4;}(function(_0xae3d4f,_0x4002ac){const _0x3a57e1=a2_0x48db,_0x3de196=_0xae3d4f();while(!![]){try{const _0x1a9176=-parseInt(_0x3a57e1(0x202))/0x1+parseInt(_0x3a57e1(0x204))/0x2*(-parseInt(_0x3a57e1(0x208))/0x3)+-parseInt(_0x3a57e1(0x20c))/0x4+-parseInt(_0x3a57e1(0x1f6))/0x5*(parseInt(_0x3a57e1(0x1fe))/0x6)+-parseInt(_0x3a57e1(0x20f))/0x7*(parseInt(_0x3a57e1(0x1fb))/0x8)+parseInt(_0x3a57e1(0x20e))/0x9*(-parseInt(_0x3a57e1(0x200))/0xa)+-parseInt(_0x3a57e1(0x203))/0xb*(-parseInt(_0x3a57e1(0x216))/0xc);if(_0x1a9176===_0x4002ac)break;else _0x3de196['push'](_0x3de196['shift']());}catch(_0x5b77b7){_0x3de196['push'](_0x3de196['shift']());}}}(a2_0x3c4d,0x2a5bc));import a2_0x277d68 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x452b5d from'node:path';import{fileURLToPath}from'node:url';function a2_0x3c4d(){const _0x1db7a7=['2724JfNgLR','key','test',',\x20env:\x20\x22','push','join','format','replace','forEach','195DqyoOM','dirname','client','utf8','replaceApiContent','8knYdab','{\x20apiConfigName:\x20','datasetCode','942bxjXOj','API\x20文件生成成功!','1687690bBsTrT','production','333107KxWGyN','61611bLUEPh','5116zWcziO','templates/generate-api','.ts','-api','336HNggJu','tableName','{\x20apiConfigName:\x20\x22','success','1077400RSnRoj','api','9VIxpef','238574gtOzQn','name','resolve','../..','toUpperCase','Please\x20configure\x20app\x20code\x20first\x20via\x20`rabetbase\x20config\x20set\x20app\x20<value>`','alias'];a2_0x3c4d=function(){return _0x1db7a7;};return a2_0x3c4d();}import{TemplateReplacer}from'../utils/template-replacer.js';import{logger}from'../utils/logger.js';export async function generateApiFile(_0x4a085d,_0x31c91e,_0x4d8fa3,_0x45c2b3,_0x1dd0ce,_0x5f059e,_0x43a9eb){const _0x10c44f=a2_0x48db;if(!_0x4d8fa3)throw new Error(_0x10c44f(0x214));const _0x4a6590=_0x45c2b3&&!_0x43a9eb,_0x11f2fb=_0x43a9eb||_0x4d8fa3,_0x46a38e=_0x4a6590?'CONFIG_NAMES.DEFAULT':'\x22'+_0x11f2fb+'\x22',_0x44a7c2=_0x1dd0ce!==_0x10c44f(0x201);let _0x5666f1;if(_0x4a6590)_0x44a7c2?_0x5666f1=_0x10c44f(0x1fc)+_0x46a38e+_0x10c44f(0x219)+_0x1dd0ce+'\x22\x20}':_0x5666f1='';else{const _0x42c59c=_0x44a7c2?',\x20env:\x20\x22'+_0x1dd0ce+'\x22':'';_0x5666f1=_0x10c44f(0x20a)+_0x11f2fb+'\x22'+_0x42c59c+'\x20}';}const _0x1494d9=_0x31c91e?_0x31c91e+_0x10c44f(0x207):_0x10c44f(0x20d),_0x28ad85=_0x31c91e?_0x31c91e+'-client':_0x10c44f(0x1f8),_0x3d70da=_0x31c91e&&!/^app-[a-f0-9]+$/i[_0x10c44f(0x218)](_0x31c91e)?_0x31c91e[_0x10c44f(0x1f4)](/-/g,'_')[_0x10c44f(0x213)]():'LOVRABET',_0x215552=[];_0x4a085d[_0x10c44f(0x1f5)](_0x146ecc=>{const _0xc7ac05=_0x10c44f;_0x215552[_0xc7ac05(0x21a)]({'datasetCode':_0x146ecc[_0xc7ac05(0x1fd)],'tableName':_0x146ecc[_0xc7ac05(0x209)],'name':_0x146ecc[_0xc7ac05(0x210)]||'','alias':_0x146ecc[_0xc7ac05(0x215)]||_0x146ecc[_0xc7ac05(0x217)]});});const _0x2180cc=fileURLToPath(import.meta.url),_0x151d49=a2_0x452b5d[_0x10c44f(0x211)](a2_0x452b5d[_0x10c44f(0x1f7)](_0x2180cc),_0x10c44f(0x212)),_0x24ebfb=a2_0x452b5d[_0x10c44f(0x1f2)](_0x151d49,_0x10c44f(0x205)),_0x211224=a2_0x452b5d[_0x10c44f(0x1f2)](_0x24ebfb,'api.ts.tpl'),_0x4d02e9=a2_0x452b5d[_0x10c44f(0x1f2)](_0x24ebfb,'client.ts.tpl'),_0x15db22=_0x5f059e;mkdirSync(_0x15db22,{'recursive':!![]});const _0x5b879b=_0x215552[0x0]?.[_0x10c44f(0x215)],_0x144050=readFileSync(_0x211224,_0x10c44f(0x1f9)),_0xea9807=TemplateReplacer['replaceApiContent'](_0x144050,_0x4d8fa3,_0x215552,_0x5b879b,_0x1494d9,_0x46a38e,undefined,_0x3d70da),_0x273f9c=await a2_0x277d68[_0x10c44f(0x1f3)](_0xea9807,{'parser':'typescript'}),_0xa9f0da=a2_0x452b5d[_0x10c44f(0x1f2)](_0x15db22,_0x1494d9+_0x10c44f(0x206));writeFileSync(_0xa9f0da,_0x273f9c,{'encoding':'utf8'});const _0x20d2bd=readFileSync(_0x4d02e9,_0x10c44f(0x1f9)),_0xd32176=TemplateReplacer[_0x10c44f(0x1fa)](_0x20d2bd,_0x4d8fa3,_0x215552,_0x5b879b,_0x1494d9,_0x46a38e,_0x5666f1,_0x3d70da),_0x1f0b2b=await a2_0x277d68[_0x10c44f(0x1f3)](_0xd32176,{'parser':'typescript'}),_0x5815c1=a2_0x452b5d[_0x10c44f(0x1f2)](_0x15db22,_0x28ad85+'.ts');writeFileSync(_0x5815c1,_0x1f0b2b,{'encoding':_0x10c44f(0x1f9)});const _0x40b71d=_0x215552['length'];return logger[_0x10c44f(0x20b)]('init-api',_0x10c44f(0x1ff),undefined,{'apiFile':_0xa9f0da,'clientFile':_0x5815c1,'modelCount':_0x40b71d,'configName':_0x46a38e}),{'modelCount':_0x40b71d,'apiFilePath':_0xa9f0da,'clientFilePath':_0x5815c1,'configName':_0x46a38e};}
@@ -1 +1 @@
1
- function a21_0x22f3(_0x2bf499,_0xdcbdf6){_0x2bf499=_0x2bf499-0x76;const _0x112e78=a21_0x112e();let _0x22f39d=_0x112e78[_0x2bf499];return _0x22f39d;}(function(_0x3dc8aa,_0x5da65c){const _0x1fd666=a21_0x22f3,_0x4ef80d=_0x3dc8aa();while(!![]){try{const _0x59ee26=parseInt(_0x1fd666(0x88))/0x1*(-parseInt(_0x1fd666(0x79))/0x2)+-parseInt(_0x1fd666(0x85))/0x3*(-parseInt(_0x1fd666(0x7d))/0x4)+parseInt(_0x1fd666(0x84))/0x5+-parseInt(_0x1fd666(0x7e))/0x6+-parseInt(_0x1fd666(0x82))/0x7*(-parseInt(_0x1fd666(0x76))/0x8)+parseInt(_0x1fd666(0x7c))/0x9*(parseInt(_0x1fd666(0x8a))/0xa)+parseInt(_0x1fd666(0x78))/0xb;if(_0x59ee26===_0x5da65c)break;else _0x4ef80d['push'](_0x4ef80d['shift']());}catch(_0x4e46cc){_0x4ef80d['push'](_0x4ef80d['shift']());}}}(a21_0x112e,0xbe0e6));import{jsx as a21_0x49fc1b,jsxs as a21_0x5b869f}from'react/jsx-runtime';function a21_0x112e(){const _0x57ba15=['gray','*\x20Login\x20successful!','3626JYEZLX','log','2502185sERSRa','12477LJSXJL','Logging\x20in...\x20','column','24999HnlJgN','return','10wJbSRU','21864xswVgM','green','1057089TYYJSw','118RuOMfF','Press\x20\x22q\x22\x20to\x20exit.','finally','3964023tcKoCK','212bqfydR','2518158TSXqUl','Please\x20complete\x20login\x20in\x20your\x20browser.'];a21_0x112e=function(){return _0x57ba15;};return a21_0x112e();}import{Text,Box,useInput,useApp}from'ink';import{useEffect,useState}from'react';import{getIsSessionValid}from'./is-session-valid.js';import{authServer}from'./auth-server.js';import a21_0x254170 from'ink-spinner';export function AuthServer(){const _0x39813d=a21_0x22f3,{exit:_0x2b0a37}=useApp(),[_0x7741a9,_0x539289]=useState(![]),[_0x1ee761,_0x578282]=useState(!![]),[_0x5a7937,_0x55d32b]=useState(![]),[_0x4ff02a,_0x3a8b5f]=useState(![]);useEffect(()=>{const _0x4ef408=a21_0x22f3;getIsSessionValid()['then'](_0x539289)[_0x4ef408(0x7b)](()=>_0x578282(![]));},[]),useEffect(()=>{!_0x1ee761&&_0x7741a9&&(console['log']('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.'),_0x2b0a37());},[_0x1ee761,_0x7741a9,_0x2b0a37]),useEffect(()=>{const _0x1c9e3f=a21_0x22f3;_0x4ff02a&&(console[_0x1c9e3f(0x83)](_0x1c9e3f(0x81)),_0x2b0a37());},[_0x4ff02a,_0x2b0a37]),useInput((_0xe64466,_0xfd5d22)=>{const _0x4f72d1=a21_0x22f3;_0xfd5d22[_0x4f72d1(0x89)]&&(_0x55d32b(!![]),authServer({'silent':!![]})['then'](_0x301ef0=>{_0x3a8b5f(_0x301ef0);})),_0xe64466==='q'&&_0x2b0a37();});if(_0x1ee761)return null;if(_0x7741a9||_0x4ff02a)return null;return a21_0x49fc1b(Box,{'flexDirection':_0x39813d(0x87),'marginTop':0x1,'marginBottom':0x1,'children':_0x5a7937?a21_0x5b869f(Box,{'children':[a21_0x49fc1b(Box,{'width':'1'}),a21_0x5b869f(Text,{'color':_0x39813d(0x77),'children':[a21_0x49fc1b(a21_0x254170,{'type':'dots'}),'\x20\x20']}),a21_0x49fc1b(Text,{'children':_0x39813d(0x86)}),a21_0x49fc1b(Text,{'color':'gray','children':_0x39813d(0x7f)})]}):a21_0x5b869f(Box,{'children':[a21_0x49fc1b(Box,{'width':'1'}),a21_0x49fc1b(Text,{'children':'*\x20Press\x20Enter\x20to\x20start\x20login.'}),a21_0x49fc1b(Text,{'color':_0x39813d(0x80),'children':_0x39813d(0x7a)})]})});}
1
+ (function(_0x224c55,_0x3f5049){const _0x4de37a=a3_0xf2fb,_0x62efe6=_0x224c55();while(!![]){try{const _0x142593=-parseInt(_0x4de37a(0x107))/0x1*(parseInt(_0x4de37a(0x108))/0x2)+parseInt(_0x4de37a(0xfb))/0x3*(-parseInt(_0x4de37a(0xfd))/0x4)+-parseInt(_0x4de37a(0xfc))/0x5*(-parseInt(_0x4de37a(0x100))/0x6)+-parseInt(_0x4de37a(0x102))/0x7*(-parseInt(_0x4de37a(0x10b))/0x8)+-parseInt(_0x4de37a(0xf6))/0x9*(-parseInt(_0x4de37a(0x104))/0xa)+parseInt(_0x4de37a(0x10a))/0xb+-parseInt(_0x4de37a(0xfa))/0xc*(-parseInt(_0x4de37a(0x101))/0xd);if(_0x142593===_0x3f5049)break;else _0x62efe6['push'](_0x62efe6['shift']());}catch(_0x468b6e){_0x62efe6['push'](_0x62efe6['shift']());}}}(a3_0x2679,0xecc69));import{jsx as a3_0x554946,jsxs as a3_0x3e46fc}from'react/jsx-runtime';import{Text,Box,useInput,useApp}from'ink';import{useEffect,useState}from'react';import{getIsSessionValid}from'./is-session-valid.js';import{authServer}from'./auth-server.js';import a3_0x45193f from'ink-spinner';function a3_0x2679(){const _0x3c8afb=['8638mGybQA','446OYIvjY','log','16233701QypUSn','6505168CcGgSR','180uMKIsC','column','green','Logging\x20in...\x20','1200wzbfeo','21yDZqoq','11965mjbsvE','12836ZXSoZh','gray','dots','6xJGoCi','30043jjJjWb','7JuBghh','*\x20Login\x20successful!','198070hCQPEY','*\x20Press\x20Enter\x20to\x20start\x20login.','then'];a3_0x2679=function(){return _0x3c8afb;};return a3_0x2679();}function a3_0xf2fb(_0x490688,_0x307a98){_0x490688=_0x490688-0xf6;const _0x267916=a3_0x2679();let _0xf2fb28=_0x267916[_0x490688];return _0xf2fb28;}export function AuthServer(){const _0x535e0c=a3_0xf2fb,{exit:_0x1f8370}=useApp(),[_0x1befef,_0x508357]=useState(![]),[_0x398599,_0x39e451]=useState(!![]),[_0x54e620,_0x1e429f]=useState(![]),[_0x5a91c5,_0x143e4a]=useState(![]);useEffect(()=>{const _0x204f1e=a3_0xf2fb;getIsSessionValid()[_0x204f1e(0x106)](_0x508357)['finally'](()=>_0x39e451(![]));},[]),useEffect(()=>{!_0x398599&&_0x1befef&&(console['log']('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.'),_0x1f8370());},[_0x398599,_0x1befef,_0x1f8370]),useEffect(()=>{const _0x3aaa9e=a3_0xf2fb;_0x5a91c5&&(console[_0x3aaa9e(0x109)](_0x3aaa9e(0x103)),_0x1f8370());},[_0x5a91c5,_0x1f8370]),useInput((_0x482437,_0x12c7b4)=>{const _0x364a94=a3_0xf2fb;_0x12c7b4['return']&&(_0x1e429f(!![]),authServer({'silent':!![]})[_0x364a94(0x106)](_0x4764e4=>{_0x143e4a(_0x4764e4);})),_0x482437==='q'&&_0x1f8370();});if(_0x398599)return null;if(_0x1befef||_0x5a91c5)return null;return a3_0x554946(Box,{'flexDirection':_0x535e0c(0xf7),'marginTop':0x1,'marginBottom':0x1,'children':_0x54e620?a3_0x3e46fc(Box,{'children':[a3_0x554946(Box,{'width':'1'}),a3_0x3e46fc(Text,{'color':_0x535e0c(0xf8),'children':[a3_0x554946(a3_0x45193f,{'type':_0x535e0c(0xff)}),'\x20\x20']}),a3_0x554946(Text,{'children':_0x535e0c(0xf9)}),a3_0x554946(Text,{'color':'gray','children':'Please\x20complete\x20login\x20in\x20your\x20browser.'})]}):a3_0x3e46fc(Box,{'children':[a3_0x554946(Box,{'width':'1'}),a3_0x554946(Text,{'children':_0x535e0c(0x105)}),a3_0x554946(Text,{'color':_0x535e0c(0xfe),'children':'Press\x20\x22q\x22\x20to\x20exit.'})]})});}
@@ -1 +1 @@
1
- (function(_0x4ede5a,_0x39d53d){const _0x1bac72=a22_0x2e87,_0xab83fa=_0x4ede5a();while(!![]){try{const _0x4062cd=parseInt(_0x1bac72(0xcb))/0x1+-parseInt(_0x1bac72(0xcf))/0x2+parseInt(_0x1bac72(0xc1))/0x3*(-parseInt(_0x1bac72(0xbb))/0x4)+parseInt(_0x1bac72(0xdd))/0x5*(parseInt(_0x1bac72(0xd1))/0x6)+parseInt(_0x1bac72(0xd5))/0x7*(parseInt(_0x1bac72(0xce))/0x8)+-parseInt(_0x1bac72(0xd0))/0x9+parseInt(_0x1bac72(0xd8))/0xa*(parseInt(_0x1bac72(0xe1))/0xb);if(_0x4062cd===_0x39d53d)break;else _0xab83fa['push'](_0xab83fa['shift']());}catch(_0x3d3be5){_0xab83fa['push'](_0xab83fa['shift']());}}}(a22_0x94cc,0xb6cad));import{writeFileSync}from'node:fs';import a22_0x52708b from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'./is-session-valid.js';import{cookieFile}from'./constant.js';function a22_0x2e87(_0x4d97a4,_0x33470a){_0x4d97a4=_0x4d97a4-0xb9;const _0x94cce4=a22_0x94cc();let _0x2e877a=_0x94cce4[_0x4d97a4];return _0x2e877a;}function a22_0x94cc(){const _0xe511ed=['utf-8','<span\x20id=\x22t\x22>5</span>','435937xGFspc','https://dev.lovrabet.com:','end','4474200EcnGZO','909092mokutX','13391874JhNPWg','120qTHyGf','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','win32','📍\x20Login\x20URL:','7RtQeYP','user','log','3890PjZsfu','createServer','Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20','/api/auth/get-session','start\x20\x22\x22\x20\x22','176990KeFCaS','</title></head>\x0a<body>\x0a\x20\x20<div>','address','darwin','51733YdcIiM','\x20seconds.','🔐\x20Starting\x20login\x20service...','writeHead','then','Auth\x20server\x20error:','30596uFCLYa','platform','headers','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','xdg-open\x20\x22','330KBWJxG','silent','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','error','json','object','port','</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>'];a22_0x94cc=function(){return _0xe511ed;};return a22_0x94cc();}export async function authServer(_0x14c595){const _0x40f990=a22_0x2e87,_0x2ab107=_0x14c595?.[_0x40f990(0xc2)]||![];if(await getIsSessionValid())return!![];const _0x1772f8=await(await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json'))[_0x40f990(0xc5)]();return new Promise(async(_0x32cd8f,_0x54d750)=>{const _0x101b34=_0x40f990;let _0x31afe8=0x0;const _0x33617c=a22_0x52708b[_0x101b34(0xd9)](_0x1772f8,async(_0x25b46a,_0x3463a4)=>{const _0x4303d4=_0x101b34,_0x10d649=getUserDomain(),_0x5c81d1=_0x25b46a[_0x4303d4(0xbd)]['cookie']||'',_0x337681=await fetch(_0x10d649+_0x4303d4(0xdb),{'headers':{'cookie':_0x5c81d1}})[_0x4303d4(0xb9)](_0x17b216=>_0x17b216['json']()),_0x1a6b04=_0x337681&&_0x337681['session']&&_0x337681[_0x4303d4(0xd6)];if(_0x1a6b04){writeFileSync(cookieFile,_0x5c81d1,_0x4303d4(0xc9)),_0x32cd8f(!![]);const _0x399f3d='Login\x20Successful',_0x6ded99=_0x4303d4(0xda)+_0x4303d4(0xca)+_0x4303d4(0xe2),_0x3a4ec3=_0x4303d4(0xc3),_0x56136b='<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>'+_0x399f3d+_0x4303d4(0xde)+_0x6ded99+_0x4303d4(0xc8)+_0x3a4ec3+'</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20如果自动关闭无效,显示文本提示让用户手动关闭\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>';_0x3463a4[_0x4303d4(0xe4)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x3463a4[_0x4303d4(0xcd)](_0x56136b),_0x33617c['close']();}else{const _0x2579f3=''+encodeURIComponent(_0x4303d4(0xcc)+_0x31afe8);_0x3463a4['writeHead'](0x12e,{'location':_0x10d649+'/sign-in?redirect='+_0x2579f3}),_0x3463a4['end']();return;}});_0x33617c['listen'](0x0,'127.0.0.1',()=>{const _0x2fe6e8=_0x101b34,_0x13ec51=_0x33617c[_0x2fe6e8(0xdf)]();_0x31afe8=typeof _0x13ec51===_0x2fe6e8(0xc6)&&_0x13ec51?_0x13ec51[_0x2fe6e8(0xc7)]:Number(_0x13ec51);const _0x3567c4='https://dev.lovrabet.com:'+_0x31afe8;!_0x2ab107&&(console[_0x2fe6e8(0xd7)](_0x2fe6e8(0xe3)),console[_0x2fe6e8(0xd7)](_0x2fe6e8(0xd4),_0x3567c4),console[_0x2fe6e8(0xd7)]('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x2fe6e8(0xd7)](''),console[_0x2fe6e8(0xd7)]('💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.'),console['log']('')),openInBrowser(_0x3567c4)[_0x2fe6e8(0xb9)](_0x3b3bae=>{const _0x356afb=_0x2fe6e8;!_0x2ab107&&(_0x3b3bae?console[_0x356afb(0xd7)](_0x356afb(0xd2)):(console[_0x356afb(0xd7)](_0x356afb(0xbe)),console['log']('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x3567c4)),console[_0x356afb(0xd7)](''));})['catch'](()=>{const _0x4a2128=_0x2fe6e8;!_0x2ab107&&(console[_0x4a2128(0xd7)](_0x4a2128(0xbe)),console[_0x4a2128(0xd7)](_0x4a2128(0xbf),_0x3567c4),console[_0x4a2128(0xd7)](''));});}),_0x33617c['on'](_0x101b34(0xc4),_0x223106=>{const _0x368f53=_0x101b34;!_0x2ab107&&console[_0x368f53(0xc4)](_0x368f53(0xba),_0x223106),_0x54d750(_0x223106);});});}function openInBrowser(_0x16fe25){return new Promise(_0x436e4e=>{const _0x440da4=a22_0x2e87,_0x4199d7=process[_0x440da4(0xbc)];let _0x5953d7;if(_0x4199d7===_0x440da4(0xd3))_0x5953d7=_0x440da4(0xdc)+_0x16fe25+'\x22';else _0x4199d7===_0x440da4(0xe0)?_0x5953d7='open\x20\x22'+_0x16fe25+'\x22':_0x5953d7=_0x440da4(0xc0)+_0x16fe25+'\x22';exec(_0x5953d7,_0x15ac63=>{_0x15ac63?_0x436e4e(![]):_0x436e4e(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log']('isAuth',isAuth);}
1
+ function a4_0x36cc(){const _0x15e5c8=['🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','📍\x20Login\x20URL:','session','catch','https://dev.lovrabet.com:','</title></head>\x0a<body>\x0a\x20\x20<div>','then','text/html;\x20charset=utf-8','open\x20\x22','7006853TWmggU','xdg-open\x20\x22','json','win32','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','5313385iVnFxg','headers','writeHead','14CeZBVe','listen','</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>','log','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','127.0.0.1','4452700lGDdbz','2313DpWrih','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','user','silent','darwin','159187BCyUmb','address','close','error','end','275343HhVKOH','15688rRZpkH','/sign-in?redirect=','</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20如果自动关闭无效,显示文本提示让用户手动关闭\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','cmd\x20/c\x20start\x20\x22\x22\x20\x22','<span\x20id=\x22t\x22>5</span>','\x20seconds.','https://g.yuntooai.com/cert/lovrabet-dev.json','🔐\x20Starting\x20login\x20service...','3396792zWAEpi'];a4_0x36cc=function(){return _0x15e5c8;};return a4_0x36cc();}function a4_0x5a6b(_0x2c1a9b,_0x238315){_0x2c1a9b=_0x2c1a9b-0x102;const _0x36cc9c=a4_0x36cc();let _0x5a6b38=_0x36cc9c[_0x2c1a9b];return _0x5a6b38;}const a4_0x342d09=a4_0x5a6b;(function(_0x13f9b6,_0x21cc64){const _0x31e322=a4_0x5a6b,_0x123bd3=_0x13f9b6();while(!![]){try{const _0x4509ed=-parseInt(_0x31e322(0x110))/0x1+parseInt(_0x31e322(0x104))/0x2*(parseInt(_0x31e322(0x115))/0x3)+parseInt(_0x31e322(0x10a))/0x4+-parseInt(_0x31e322(0x12f))/0x5+parseInt(_0x31e322(0x11e))/0x6+-parseInt(_0x31e322(0x12a))/0x7+-parseInt(_0x31e322(0x116))/0x8*(-parseInt(_0x31e322(0x10b))/0x9);if(_0x4509ed===_0x21cc64)break;else _0x123bd3['push'](_0x123bd3['shift']());}catch(_0x1f694a){_0x123bd3['push'](_0x123bd3['shift']());}}}(a4_0x36cc,0x9331c));import{writeFileSync}from'node:fs';import a4_0x16ffc7 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'./is-session-valid.js';import{cookieFile}from'./constant.js';export async function authServer(_0x3d40ab){const _0x98765=a4_0x5a6b,_0x29f7a2=_0x3d40ab?.[_0x98765(0x10e)]||![];if(await getIsSessionValid())return!![];const _0x4b1a9b=await(await fetch(_0x98765(0x11c)))[_0x98765(0x12c)]();return new Promise(async(_0x269567,_0x5d83c5)=>{const _0x2c0a81=_0x98765;let _0x5f031d=0x0;const _0x3a0d81=a4_0x16ffc7['createServer'](_0x4b1a9b,async(_0x10f95d,_0x317192)=>{const _0x2dcb8a=a4_0x5a6b,_0x6b0a01=getUserDomain(),_0x16d0e3=_0x10f95d[_0x2dcb8a(0x102)]['cookie']||'',_0x4739a4=await fetch(_0x6b0a01+'/api/auth/get-session',{'headers':{'cookie':_0x16d0e3}})[_0x2dcb8a(0x127)](_0x1fadd6=>_0x1fadd6['json']()),_0x4a2eba=_0x4739a4&&_0x4739a4[_0x2dcb8a(0x123)]&&_0x4739a4[_0x2dcb8a(0x10d)];if(_0x4a2eba){writeFileSync(cookieFile,_0x16d0e3,'utf-8'),_0x269567(!![]);const _0x5d8632='Login\x20Successful',_0x181e6e='Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20'+_0x2dcb8a(0x11a)+_0x2dcb8a(0x11b),_0x5206ee=_0x2dcb8a(0x12e),_0x1f19e8='<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>'+_0x5d8632+_0x2dcb8a(0x126)+_0x181e6e+_0x2dcb8a(0x106)+_0x5206ee+_0x2dcb8a(0x118);_0x317192[_0x2dcb8a(0x103)](0xc8,{'Content-Type':_0x2dcb8a(0x128)}),_0x317192['end'](_0x1f19e8),_0x3a0d81[_0x2dcb8a(0x112)]();}else{const _0x3b4726=''+encodeURIComponent(_0x2dcb8a(0x125)+_0x5f031d);_0x317192['writeHead'](0x12e,{'location':_0x6b0a01+_0x2dcb8a(0x117)+_0x3b4726}),_0x317192[_0x2dcb8a(0x114)]();return;}});_0x3a0d81[_0x2c0a81(0x105)](0x0,_0x2c0a81(0x109),()=>{const _0x55451f=_0x2c0a81,_0x4b04c0=_0x3a0d81[_0x55451f(0x111)]();_0x5f031d=typeof _0x4b04c0==='object'&&_0x4b04c0?_0x4b04c0['port']:Number(_0x4b04c0);const _0x3ce07d=_0x55451f(0x125)+_0x5f031d;!_0x29f7a2&&(console[_0x55451f(0x107)](_0x55451f(0x11d)),console[_0x55451f(0x107)](_0x55451f(0x122),_0x3ce07d),console[_0x55451f(0x107)](_0x55451f(0x10c)),console[_0x55451f(0x107)](''),console[_0x55451f(0x107)](_0x55451f(0x120)),console['log']('')),openInBrowser(_0x3ce07d)[_0x55451f(0x127)](_0x351a30=>{const _0x3e3853=_0x55451f;!_0x29f7a2&&(_0x351a30?console[_0x3e3853(0x107)](_0x3e3853(0x108)):(console['log'](_0x3e3853(0x121)),console['log']('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x3ce07d)),console[_0x3e3853(0x107)](''));})[_0x55451f(0x124)](()=>{const _0x287a65=_0x55451f;!_0x29f7a2&&(console[_0x287a65(0x107)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x287a65(0x107)](_0x287a65(0x11f),_0x3ce07d),console[_0x287a65(0x107)](''));});}),_0x3a0d81['on'](_0x2c0a81(0x113),_0x29bc96=>{const _0x22de0a=_0x2c0a81;!_0x29f7a2&&console[_0x22de0a(0x113)]('Auth\x20server\x20error:',_0x29bc96),_0x5d83c5(_0x29bc96);});});}function openInBrowser(_0x138d15){return new Promise(_0xdff2c7=>{const _0x4113a5=a4_0x5a6b,_0x2ad9c3=process['platform'];let _0x1bc186;if(_0x2ad9c3===_0x4113a5(0x12d))_0x1bc186=_0x4113a5(0x119)+_0x138d15+'\x22';else _0x2ad9c3===_0x4113a5(0x10f)?_0x1bc186=_0x4113a5(0x129)+_0x138d15+'\x22':_0x1bc186=_0x4113a5(0x12b)+_0x138d15+'\x22';exec(_0x1bc186,_0xec2edc=>{_0xec2edc?_0xdff2c7(![]):_0xdff2c7(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x342d09(0x107)]('isAuth',isAuth);}
@@ -1 +1 @@
1
- const a23_0x5ed9f8=a23_0x2c0f;function a23_0x2c0f(_0x49b5d8,_0x7fe0b8){_0x49b5d8=_0x49b5d8-0x115;const _0x1081d7=a23_0x1081();let _0x2c0fe8=_0x1081d7[_0x49b5d8];return _0x2c0fe8;}(function(_0x127255,_0x296e0f){const _0x34e19a=a23_0x2c0f,_0x983d5b=_0x127255();while(!![]){try{const _0x48373a=-parseInt(_0x34e19a(0x121))/0x1*(parseInt(_0x34e19a(0x11c))/0x2)+parseInt(_0x34e19a(0x117))/0x3+-parseInt(_0x34e19a(0x11b))/0x4*(parseInt(_0x34e19a(0x11d))/0x5)+-parseInt(_0x34e19a(0x120))/0x6*(-parseInt(_0x34e19a(0x11e))/0x7)+parseInt(_0x34e19a(0x119))/0x8+-parseInt(_0x34e19a(0x11f))/0x9+parseInt(_0x34e19a(0x116))/0xa*(-parseInt(_0x34e19a(0x115))/0xb);if(_0x48373a===_0x296e0f)break;else _0x983d5b['push'](_0x983d5b['shift']());}catch(_0x127be8){_0x983d5b['push'](_0x983d5b['shift']());}}}(a23_0x1081,0x713a6));import{mkdirSync}from'node:fs';function a23_0x1081(){const _0x35cb0c=['442620pnUxpT','1965450ksYoZf','cookie','5156512JLdGXH','.lovrabet','115512iNqYqT','14entSHd','5gOHkrS','56HtQXxy','6232959AfErzx','438714VAfngt','49337qmHAbg','88MnPxGl'];a23_0x1081=function(){return _0x35cb0c;};return a23_0x1081();}import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a23_0x5ed9f8(0x11a));export const cookieFile=join(configDir,a23_0x5ed9f8(0x118));mkdirSync(configDir,{'recursive':!![]});
1
+ const a5_0x5a5648=a5_0x5d2b;(function(_0x378d61,_0x338683){const _0x57a2e5=a5_0x5d2b,_0x2cee0f=_0x378d61();while(!![]){try{const _0x37e999=-parseInt(_0x57a2e5(0xa4))/0x1*(parseInt(_0x57a2e5(0x9b))/0x2)+-parseInt(_0x57a2e5(0xa0))/0x3+parseInt(_0x57a2e5(0x9f))/0x4+-parseInt(_0x57a2e5(0x9e))/0x5*(parseInt(_0x57a2e5(0xa6))/0x6)+-parseInt(_0x57a2e5(0xa3))/0x7*(-parseInt(_0x57a2e5(0xa8))/0x8)+-parseInt(_0x57a2e5(0x9d))/0x9*(-parseInt(_0x57a2e5(0xa2))/0xa)+parseInt(_0x57a2e5(0x9c))/0xb*(parseInt(_0x57a2e5(0xa7))/0xc);if(_0x37e999===_0x338683)break;else _0x2cee0f['push'](_0x2cee0f['shift']());}catch(_0x40ab26){_0x2cee0f['push'](_0x2cee0f['shift']());}}}(a5_0x3e23,0xab162));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x5a5648(0xa1));function a5_0x5d2b(_0x4473eb,_0x3ce347){_0x4473eb=_0x4473eb-0x9b;const _0x3e231c=a5_0x3e23();let _0x5d2b95=_0x3e231c[_0x4473eb];return _0x5d2b95;}export const cookieFile=join(configDir,a5_0x5a5648(0xa5));function a5_0x3e23(){const _0xf3b2cf=['cookie','41466jebqrJ','2328QyHkaI','89288KKoCuj','5386NLPOkQ','18403tjLiAM','261aDqmuu','250UlqmZz','882308JqwsfJ','1489116KHrVEm','.lovrabet','372740YFAJOR','147zZXXGD','118Cmrldh'];a5_0x3e23=function(){return _0xf3b2cf;};return a5_0x3e23();}mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x267724,_0x1ad52b){var _0x62dfcb=a24_0x43e6,_0x43f5b8=_0x267724();while(!![]){try{var _0x28b9bd=-parseInt(_0x62dfcb(0x13f))/0x1+-parseInt(_0x62dfcb(0x13d))/0x2*(parseInt(_0x62dfcb(0x140))/0x3)+-parseInt(_0x62dfcb(0x142))/0x4+-parseInt(_0x62dfcb(0x13a))/0x5*(-parseInt(_0x62dfcb(0x137))/0x6)+parseInt(_0x62dfcb(0x13e))/0x7*(parseInt(_0x62dfcb(0x141))/0x8)+-parseInt(_0x62dfcb(0x13c))/0x9*(-parseInt(_0x62dfcb(0x138))/0xa)+parseInt(_0x62dfcb(0x13b))/0xb*(parseInt(_0x62dfcb(0x136))/0xc);if(_0x28b9bd===_0x1ad52b)break;else _0x43f5b8['push'](_0x43f5b8['shift']());}catch(_0x1a7901){_0x43f5b8['push'](_0x43f5b8['shift']());}}}(a24_0x2abe,0xa1ee1));function a24_0x2abe(){var _0x81f51d=['160EsQTRA','utf-8','1284365gbpRAL','55UJBvXb','398619ggPCmC','116bwwNVj','49bqcUkK','378255zTVxon','12219byXfqM','132920kIciuV','1368964lSaxiB','58596EofQyZ','18qFTBAA'];a24_0x2abe=function(){return _0x81f51d;};return a24_0x2abe();}function a24_0x43e6(_0x3b274e,_0x4c0052){_0x3b274e=_0x3b274e-0x136;var _0x2abef4=a24_0x2abe();var _0x43e637=_0x2abef4[_0x3b274e];return _0x43e637;}import{readFileSync}from'node:fs';import{cookieFile}from'./constant.js';export function getCookie(){var _0x1b79fc=a24_0x43e6;try{return readFileSync(cookieFile,_0x1b79fc(0x139));}catch{}return'';}
1
+ (function(_0x429c2b,_0x2bc26f){var _0x22cdad=a6_0x5ab4,_0x341dd8=_0x429c2b();while(!![]){try{var _0x12cd04=-parseInt(_0x22cdad(0x12a))/0x1+-parseInt(_0x22cdad(0x128))/0x2*(parseInt(_0x22cdad(0x12d))/0x3)+parseInt(_0x22cdad(0x127))/0x4*(parseInt(_0x22cdad(0x126))/0x5)+-parseInt(_0x22cdad(0x12e))/0x6+parseInt(_0x22cdad(0x130))/0x7+-parseInt(_0x22cdad(0x12f))/0x8+-parseInt(_0x22cdad(0x12c))/0x9*(-parseInt(_0x22cdad(0x129))/0xa);if(_0x12cd04===_0x2bc26f)break;else _0x341dd8['push'](_0x341dd8['shift']());}catch(_0x239f8e){_0x341dd8['push'](_0x341dd8['shift']());}}}(a6_0xa1bd,0x8f19f));function a6_0x5ab4(_0x11ea33,_0x2a8fbb){_0x11ea33=_0x11ea33-0x126;var _0xa1bdc=a6_0xa1bd();var _0x5ab4dc=_0xa1bdc[_0x11ea33];return _0x5ab4dc;}import{readFileSync}from'node:fs';import{cookieFile}from'./constant.js';function a6_0xa1bd(){var _0x2d6025=['5555340XhXyNH','79627LNpqnG','utf-8','18GRcMaR','5925ePNuHr','4809978XjJHxO','3417544PgKwjT','671272tfnOOC','90295IcsATW','172YlpXXS','90RZCQvT'];a6_0xa1bd=function(){return _0x2d6025;};return a6_0xa1bd();}export function getCookie(){var _0x24a476=a6_0x5ab4;try{return readFileSync(cookieFile,_0x24a476(0x12b));}catch{}return'';}
@@ -0,0 +1 @@
1
+ function a7_0x473c(){const _0x8c2dd8=['10atCSEU','2759EFltzI','211251KcDltz','66gQsXoQ','12gnEVzn','/api/auth/get-session','session','17676XujAYR','user','2546360BMuBUn','12471514OakESm','2494828PXBzgV','20WRskof','1281897TfEQaq'];a7_0x473c=function(){return _0x8c2dd8;};return a7_0x473c();}(function(_0x5a3944,_0x222bcd){const _0x3758b6=a7_0x39c6,_0x32e768=_0x5a3944();while(!![]){try{const _0x41f048=parseInt(_0x3758b6(0x11b))/0x1*(parseInt(_0x3758b6(0x11d))/0x2)+parseInt(_0x3758b6(0x11c))/0x3*(-parseInt(_0x3758b6(0x11e))/0x4)+parseInt(_0x3758b6(0x118))/0x5*(-parseInt(_0x3758b6(0x121))/0x6)+-parseInt(_0x3758b6(0x125))/0x7+-parseInt(_0x3758b6(0x123))/0x8+parseInt(_0x3758b6(0x119))/0x9*(-parseInt(_0x3758b6(0x11a))/0xa)+parseInt(_0x3758b6(0x124))/0xb;if(_0x41f048===_0x222bcd)break;else _0x32e768['push'](_0x32e768['shift']());}catch(_0x2cf8b8){_0x32e768['push'](_0x32e768['shift']());}}}(a7_0x473c,0x2d14e));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x39c6(_0x1ff73e,_0x351b32){_0x1ff73e=_0x1ff73e-0x118;const _0x473c54=a7_0x473c();let _0x39c670=_0x473c54[_0x1ff73e];return _0x39c670;}import{cookieFile}from'./constant.js';export async function getSessionUserInfo(){const _0x5c1ba3=a7_0x39c6;try{if(!existsSync(cookieFile))return null;const _0x1edeea=readFileSync(cookieFile,'utf-8'),_0x51d1bf=await fetch(getUserDomain()+_0x5c1ba3(0x11f),{'headers':{'cookie':_0x1edeea}});if(!_0x51d1bf['ok'])return null;const _0x1a7dd5=await _0x51d1bf['json']();if(!_0x1a7dd5[_0x5c1ba3(0x120)]||!_0x1a7dd5[_0x5c1ba3(0x122)])return null;return _0x1a7dd5;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x4371d1,_0x2687e8){const _0x33269b=a25_0x251c,_0x185528=_0x4371d1();while(!![]){try{const _0x577151=-parseInt(_0x33269b(0xd0))/0x1*(parseInt(_0x33269b(0xd7))/0x2)+-parseInt(_0x33269b(0xd8))/0x3*(parseInt(_0x33269b(0xd9))/0x4)+-parseInt(_0x33269b(0xcf))/0x5*(parseInt(_0x33269b(0xd2))/0x6)+-parseInt(_0x33269b(0xd3))/0x7+parseInt(_0x33269b(0xd1))/0x8*(-parseInt(_0x33269b(0xcb))/0x9)+-parseInt(_0x33269b(0xcd))/0xa+parseInt(_0x33269b(0xd5))/0xb*(parseInt(_0x33269b(0xd6))/0xc);if(_0x577151===_0x2687e8)break;else _0x185528['push'](_0x185528['shift']());}catch(_0x52bccb){_0x185528['push'](_0x185528['shift']());}}}(a25_0xfd1a,0xc7535));import{existsSync,readFileSync}from'node:fs';function a25_0xfd1a(){const _0x19d220=['65748KsmpOl','1734346bbQeHY','34239HiFhJV','180DOYOaL','then','6499305udeuhB','user','2986870VLOmVD','utf-8','10610tkIqAp','1ffXNYF','8gTTuNE','2592zodDRD','10637179GPVBtu','session','11352HHGGAE'];a25_0xfd1a=function(){return _0x19d220;};return a25_0xfd1a();}function a25_0x251c(_0x348472,_0x1b9c1b){_0x348472=_0x348472-0xca;const _0xfd1af7=a25_0xfd1a();let _0x251c13=_0xfd1af7[_0x348472];return _0x251c13;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'./constant.js';export async function getIsSessionValid(){const _0x17006e=a25_0x251c;try{if(!existsSync(cookieFile))return![];const _0x4449f2=readFileSync(cookieFile,_0x17006e(0xce)),_0x3f25f6=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x4449f2}})[_0x17006e(0xca)](_0x40a88b=>_0x40a88b['json']());return _0x3f25f6&&_0x3f25f6[_0x17006e(0xd4)]&&_0x3f25f6[_0x17006e(0xcc)];}catch{}return![];}
1
+ (function(_0x273200,_0x2fe4e0){const _0x4043a8=a8_0x4f03,_0x17bc07=_0x273200();while(!![]){try{const _0x332c19=parseInt(_0x4043a8(0x1ed))/0x1*(parseInt(_0x4043a8(0x1ef))/0x2)+parseInt(_0x4043a8(0x1eb))/0x3*(parseInt(_0x4043a8(0x1e3))/0x4)+-parseInt(_0x4043a8(0x1e7))/0x5*(parseInt(_0x4043a8(0x1f1))/0x6)+parseInt(_0x4043a8(0x1e8))/0x7+-parseInt(_0x4043a8(0x1e5))/0x8*(parseInt(_0x4043a8(0x1ec))/0x9)+-parseInt(_0x4043a8(0x1e9))/0xa*(parseInt(_0x4043a8(0x1e6))/0xb)+-parseInt(_0x4043a8(0x1e4))/0xc;if(_0x332c19===_0x2fe4e0)break;else _0x17bc07['push'](_0x17bc07['shift']());}catch(_0x2d1251){_0x17bc07['push'](_0x17bc07['shift']());}}}(a8_0x314e,0x6cd6c));import{existsSync,readFileSync}from'node:fs';function a8_0x4f03(_0x2af7e0,_0x4e79b2){_0x2af7e0=_0x2af7e0-0x1e3;const _0x314e8c=a8_0x314e();let _0x4f031c=_0x314e8c[_0x2af7e0];return _0x4f031c;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'./constant.js';export async function getIsSessionValid(){const _0x33d5ad=a8_0x4f03;try{if(!existsSync(cookieFile))return![];const _0x5a5835=readFileSync(cookieFile,'utf-8'),_0x1ea0fc=await fetch(getUserDomain()+_0x33d5ad(0x1ee),{'headers':{'cookie':_0x5a5835}})['then'](_0x333b28=>_0x333b28[_0x33d5ad(0x1ea)]());return _0x1ea0fc&&_0x1ea0fc['session']&&_0x1ea0fc[_0x33d5ad(0x1f0)];}catch{}return![];}function a8_0x314e(){const _0x21ebf9=['8IfgHuM','235444rirkzZ','10KXbFIp','5072200DFqIUU','30BntPCC','json','207EBGSgC','3425706MNqTMO','50633DFvPbI','/api/auth/get-session','12YaaKrV','user','273462jUJMQo','42596UfqOoB','9376500EXZssu'];a8_0x314e=function(){return _0x21ebf9;};return a8_0x314e();}
@@ -1 +1 @@
1
- (function(_0x13c962,_0xe1a874){var _0x61710=a26_0x2478,_0x50bd91=_0x13c962();while(!![]){try{var _0x55e1f2=parseInt(_0x61710(0x1b7))/0x1+parseInt(_0x61710(0x1b8))/0x2+parseInt(_0x61710(0x1b9))/0x3*(parseInt(_0x61710(0x1bf))/0x4)+parseInt(_0x61710(0x1c0))/0x5*(-parseInt(_0x61710(0x1ba))/0x6)+-parseInt(_0x61710(0x1b6))/0x7+-parseInt(_0x61710(0x1c2))/0x8*(-parseInt(_0x61710(0x1bb))/0x9)+-parseInt(_0x61710(0x1bd))/0xa*(parseInt(_0x61710(0x1c1))/0xb);if(_0x55e1f2===_0xe1a874)break;else _0x50bd91['push'](_0x50bd91['shift']());}catch(_0x5e340c){_0x50bd91['push'](_0x50bd91['shift']());}}}(a26_0x3d0d,0x6dcf2));function a26_0x3d0d(){var _0x87966d=['9460560uGaSqL','✓\x20Logged\x20out','2014984ybgfYk','29485zIQiwm','11LZIxya','406552gHEThC','2585982xLIyrn','582282wynKIi','1528088XqGKKC','3HdhdEr','138oEDdEv','9lvLUrc','log'];a26_0x3d0d=function(){return _0x87966d;};return a26_0x3d0d();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'./constant.js';function a26_0x2478(_0x5f5bde,_0x1c7dd5){_0x5f5bde=_0x5f5bde-0x1b6;var _0x3d0dc0=a26_0x3d0d();var _0x24780e=_0x3d0dc0[_0x5f5bde];return _0x24780e;}export function logout(){var _0x368fbb=a26_0x2478;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x368fbb(0x1bc)](_0x368fbb(0x1be))):console[_0x368fbb(0x1bc)]('!\x20Not\x20logged\x20in');}
1
+ (function(_0x4a27e3,_0x440368){var _0x1d7aaf=a9_0x5271,_0x352a55=_0x4a27e3();while(!![]){try{var _0x1c3c69=-parseInt(_0x1d7aaf(0xb5))/0x1*(-parseInt(_0x1d7aaf(0xba))/0x2)+parseInt(_0x1d7aaf(0xc0))/0x3*(parseInt(_0x1d7aaf(0xbd))/0x4)+parseInt(_0x1d7aaf(0xbf))/0x5+-parseInt(_0x1d7aaf(0xb9))/0x6+parseInt(_0x1d7aaf(0xbb))/0x7+parseInt(_0x1d7aaf(0xbe))/0x8+parseInt(_0x1d7aaf(0xbc))/0x9*(-parseInt(_0x1d7aaf(0xc1))/0xa);if(_0x1c3c69===_0x440368)break;else _0x352a55['push'](_0x352a55['shift']());}catch(_0xa45198){_0x352a55['push'](_0x352a55['shift']());}}}(a9_0x4a3c,0x21441));import{unlinkSync,existsSync}from'node:fs';function a9_0x5271(_0x33ed5f,_0x32547e){_0x33ed5f=_0x33ed5f-0xb5;var _0x4a3ce5=a9_0x4a3c();var _0x52717c=_0x4a3ce5[_0x33ed5f];return _0x52717c;}import{cookieFile}from'./constant.js';export function logout(){var _0xfa5eaf=a9_0x5271;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0xfa5eaf(0xb8)](_0xfa5eaf(0xb6))):console[_0xfa5eaf(0xb8)](_0xfa5eaf(0xb7));}function a9_0x4a3c(){var _0x194a17=['1249175whwsav','698289kDXrFm','33890nFEkGX','10949kurlkN','✓\x20Logged\x20out','!\x20Not\x20logged\x20in','log','1627032SfTglW','26BcakeI','1774150iNffCm','1647yfOvFm','4KvMKqz','1193848lZZoQz'];a9_0x4a3c=function(){return _0x194a17;};return a9_0x4a3c();}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- function a27_0x10b7(_0x41a9a9,_0x105a73){_0x41a9a9=_0x41a9a9-0x1e3;const _0x2f18a5=a27_0x2f18();let _0x10b700=_0x2f18a5[_0x41a9a9];return _0x10b700;}const a27_0x9258a8=a27_0x10b7;function a27_0x2f18(){const _0x7228e6=['11557QPLBOM','365321tcnlIm','26fLGrcX','boolean','1562931fRJekx','2931852zQxHlg','6GXtaWz','8XCLKCb','1548450AYBfFQ','319611KpPXHZ','20ZmziKu','8dJIaqs','2244613mXOawn'];a27_0x2f18=function(){return _0x7228e6;};return a27_0x2f18();}(function(_0x52dbcc,_0x3285b4){const _0x5b99c7=a27_0x10b7,_0x147ba5=_0x52dbcc();while(!![]){try{const _0x13da98=parseInt(_0x5b99c7(0x1e7))/0x1*(parseInt(_0x5b99c7(0x1e9))/0x2)+parseInt(_0x5b99c7(0x1e3))/0x3*(parseInt(_0x5b99c7(0x1ee))/0x4)+parseInt(_0x5b99c7(0x1ef))/0x5+parseInt(_0x5b99c7(0x1ed))/0x6*(-parseInt(_0x5b99c7(0x1e6))/0x7)+-parseInt(_0x5b99c7(0x1e5))/0x8*(-parseInt(_0x5b99c7(0x1eb))/0x9)+-parseInt(_0x5b99c7(0x1e4))/0xa*(parseInt(_0x5b99c7(0x1e8))/0xb)+-parseInt(_0x5b99c7(0x1ec))/0xc;if(_0x13da98===_0x3285b4)break;else _0x147ba5['push'](_0x147ba5['shift']());}catch(_0x42f6da){_0x147ba5['push'](_0x147ba5['shift']());}}}(a27_0x2f18,0x348de));export const dynamicCliFlags={'enableBffSave':{'type':a27_0x9258a8(0x1ea)}};
1
+ const a10_0x55693e=a10_0x5678;(function(_0x4f9bdd,_0x46ad16){const _0x3f2a0b=a10_0x5678,_0xdea775=_0x4f9bdd();while(!![]){try{const _0x598ddf=parseInt(_0x3f2a0b(0x1c8))/0x1+parseInt(_0x3f2a0b(0x1cb))/0x2*(-parseInt(_0x3f2a0b(0x1c4))/0x3)+-parseInt(_0x3f2a0b(0x1c7))/0x4+parseInt(_0x3f2a0b(0x1c2))/0x5*(-parseInt(_0x3f2a0b(0x1c5))/0x6)+parseInt(_0x3f2a0b(0x1c3))/0x7+-parseInt(_0x3f2a0b(0x1c6))/0x8*(-parseInt(_0x3f2a0b(0x1c9))/0x9)+-parseInt(_0x3f2a0b(0x1c1))/0xa;if(_0x598ddf===_0x46ad16)break;else _0xdea775['push'](_0xdea775['shift']());}catch(_0x22be95){_0xdea775['push'](_0xdea775['shift']());}}}(a10_0x2540,0xc450c));function a10_0x5678(_0x4bd0fd,_0x4f6c99){_0x4bd0fd=_0x4bd0fd-0x1c1;const _0x25408b=a10_0x2540();let _0x5678cf=_0x25408b[_0x4bd0fd];return _0x5678cf;}export const dynamicCliFlags={'enableBffSave':{'type':a10_0x55693e(0x1ca)}};function a10_0x2540(){const _0x1353bb=['9odwfEF','boolean','8eGgVzf','9069350vmtLVI','15ARmdZt','9043412SJVkLy','147045wDRDOn','1786542MMcTXJ','4013536AghNGm','864652PJYYjQ','1222929fdjRKc'];a10_0x2540=function(){return _0x1353bb;};return a10_0x2540();}
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a28_0x54ac64=a28_0x12bc;(function(_0x536563,_0x4ef27f){const _0x59a4aa=a28_0x12bc,_0x12f7eb=_0x536563();while(!![]){try{const _0x54d23b=parseInt(_0x59a4aa(0x1b8))/0x1*(parseInt(_0x59a4aa(0x1d1))/0x2)+-parseInt(_0x59a4aa(0x1cc))/0x3+-parseInt(_0x59a4aa(0x1c7))/0x4*(parseInt(_0x59a4aa(0x1c0))/0x5)+parseInt(_0x59a4aa(0x1ba))/0x6+-parseInt(_0x59a4aa(0x1b6))/0x7+parseInt(_0x59a4aa(0x1a6))/0x8*(-parseInt(_0x59a4aa(0x1c8))/0x9)+-parseInt(_0x59a4aa(0x1ac))/0xa*(-parseInt(_0x59a4aa(0x1cb))/0xb);if(_0x54d23b===_0x4ef27f)break;else _0x12f7eb['push'](_0x12f7eb['shift']());}catch(_0x2c0323){_0x12f7eb['push'](_0x12f7eb['shift']());}}}(a28_0xf159,0x27136));import{jsx as a28_0x3dc6dd}from'react/jsx-runtime';import a28_0x30d64a from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{createContext}from'./context.js';function a28_0xf159(){const _0x37be55=['401360GUvVsc','hint','help','env','⚠\x20`','exitCode','module','4aKfoKC','153UPqVsZ','slice','Unexpected\x20error:','857725FdFrow','543999jLFmTj','Error:\x20','`\x20has\x20been\x20moved\x20to\x20`','appcode','stdout','2954DLXGEn','Hint:\x20','defaultCommand','LOVRABET_APPCODE','RABETBASE_CI','dynamicCliFlags','cookie','apiDir','passCommandAsArg','./context.js','LOVRABET_CI','true','appCode','exit','RABETBASE_APPCODE','pageSize','134008fQWuAS','input','boolean','string','log','service','60kqZATu','run','./cli-flags.js','flags','wildcardModule','node:fs','`\x20in\x20v2.0.\x0a','isTTY','nonInteractive','./constant/env.js','191240ULuwiW','node:url','164lWjbix','utf-8','142008xwHeQL','message','error','0.0.0','node:path','unknownCommand'];a28_0xf159=function(){return _0x37be55;};return a28_0xf159();}import{isKnownService,isDeclarativeService,getServiceEntry,findDefinition,getLegacyHandler,deprecatedAliases}from'./commands/registry.js';import{runCommand}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{getCookie}from'./auth/get-cookie.js';import{getApiDomain}from'./constant/domain.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{BUILD_NUMBER}from'./generated/build-info.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a28_0x54ac64(0x1ae)))[a28_0x54ac64(0x1d6)];}catch{}const helpText=generateFullHelp(),pkgVersion=await((async()=>{const _0x42b18c=a28_0x54ac64;try{const {readFileSync:_0x4db1ab}=await import(_0x42b18c(0x1b1)),{resolve:_0x1dea46,dirname:_0x5ae24f}=await import(_0x42b18c(0x1be)),{fileURLToPath:_0x22a669}=await import(_0x42b18c(0x1b7)),_0x39adc6=_0x1dea46(_0x5ae24f(_0x22a669(import.meta.url)),'..'),_0x1db21a=JSON['parse'](_0x4db1ab(_0x1dea46(_0x39adc6,'package.json'),_0x42b18c(0x1b9)));return _0x1db21a['version']||_0x42b18c(0x1bd);}catch{return _0x42b18c(0x1bd);}})()),cliVersion=BUILD_NUMBER?pkgVersion+'+'+BUILD_NUMBER:pkgVersion,cli=a28_0x30d64a(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{'help':{'type':a28_0x54ac64(0x1a8)},'env':{'type':a28_0x54ac64(0x1a9)},'appcode':{'type':'string'},'app':{'type':'string'},'nonInteractive':{'type':'boolean'},'ci':{'type':a28_0x54ac64(0x1a8)},'format':{'type':a28_0x54ac64(0x1a9)},'dryRun':{'type':a28_0x54ac64(0x1a8)},'yes':{'type':a28_0x54ac64(0x1a8)},'name':{'type':a28_0x54ac64(0x1a9)},'clear':{'type':a28_0x54ac64(0x1a8)},'watch':{'type':a28_0x54ac64(0x1a8)},'output':{'type':a28_0x54ac64(0x1a9)},'params':{'type':'string'},'datasetcode':{'type':'string'},'mcpCursor':{'type':a28_0x54ac64(0x1a8)},'mcpClaude':{'type':a28_0x54ac64(0x1a8)},'mcpOther':{'type':a28_0x54ac64(0x1a8)},'cursor':{'type':'boolean'},'windsurf':{'type':a28_0x54ac64(0x1a8)},'claude':{'type':a28_0x54ac64(0x1a8)},'cline':{'type':a28_0x54ac64(0x1a8)},'codex':{'type':a28_0x54ac64(0x1a8)},'opencode':{'type':a28_0x54ac64(0x1a8)},'qoder':{'type':a28_0x54ac64(0x1a8)},'codebuddy':{'type':a28_0x54ac64(0x1a8)},'trae':{'type':a28_0x54ac64(0x1a8)},'agent':{'type':a28_0x54ac64(0x1a8)},'antigravity':{'type':a28_0x54ac64(0x1a8)},'all':{'type':a28_0x54ac64(0x1a8)},'enableBffSave':{'type':a28_0x54ac64(0x1a8)},'id':{'type':a28_0x54ac64(0x1a9)},'type':{'type':'string'},'file':{'type':a28_0x54ac64(0x1a9)},'sqlcode':{'type':a28_0x54ac64(0x1a9)},'sqlname':{'type':a28_0x54ac64(0x1a9)},'dbid':{'type':'string'},'description':{'type':a28_0x54ac64(0x1a9)},'page':{'type':a28_0x54ac64(0x1a9)},'pagesize':{'type':a28_0x54ac64(0x1a9)},'keyword':{'type':a28_0x54ac64(0x1a9)},'code':{'type':a28_0x54ac64(0x1a9)},'sql':{'type':'string'},'schemas':{'type':a28_0x54ac64(0x1a9)},'operation':{'type':'string'},'target':{'type':a28_0x54ac64(0x1a9)},'skipImports':{'type':a28_0x54ac64(0x1a8)},'force':{'type':a28_0x54ac64(0x1a8)},'remote':{'type':a28_0x54ac64(0x1a8)},'verbose':{'type':'boolean'},'operationType':{'type':a28_0x54ac64(0x1a9)},'functionNode':{'type':a28_0x54ac64(0x1a9)},...dynamicCliFlags||{}}});await run();function a28_0x12bc(_0x360715,_0xdfb093){_0x360715=_0x360715-0x1a3;const _0xf159c3=a28_0xf159();let _0x12bcdf=_0xf159c3[_0x360715];return _0x12bcdf;}async function run(){const _0x132421=a28_0x54ac64;let _0x5117ed=cli[_0x132421(0x1a7)][0x0],_0x179689=cli['input'][0x1];const _0x400a07=cli[_0x132421(0x1af)];if(!_0x5117ed){render(a28_0x3dc6dd(Help,{}));return;}const _0x2dcb35=deprecatedAliases[_0x5117ed];if(_0x2dcb35&&!isKnownService(_0x5117ed)){const _0x320a5e=_0x179689?CLI_BIN_NAME+'\x20'+_0x5117ed+'\x20'+_0x179689:CLI_BIN_NAME+'\x20'+_0x5117ed,_0x28717b=CLI_BIN_NAME+'\x20'+_0x2dcb35[_0x132421(0x1ab)]+'\x20'+_0x2dcb35['command'];console[_0x132421(0x1bc)](_0x132421(0x1c4)+_0x320a5e+_0x132421(0x1ce)+_0x28717b+_0x132421(0x1b2)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),process[_0x132421(0x1a3)](0x1);}if(!isKnownService(_0x5117ed)){render(a28_0x3dc6dd(Help,{}));return;}const _0x27a66b=getServiceEntry(_0x5117ed);if(!_0x179689){if(_0x27a66b[_0x132421(0x1d3)])_0x179689=_0x27a66b['defaultCommand'];else{if(_0x27a66b[_0x132421(0x1b0)]){const _0x4fda1f=await createContext(_0x400a07);try{await _0x27a66b[_0x132421(0x1b0)][_0x132421(0x1ad)](_0x4fda1f,[],_0x400a07);}catch(_0x5357bf){handleError(_0x5357bf);}return;}else{printServiceHelp(_0x5117ed);return;}}}if(_0x400a07[_0x132421(0x1c2)]&&!findDefinition(_0x5117ed,_0x179689)&&!getLegacyHandler(_0x5117ed,_0x179689)){printServiceHelp(_0x5117ed);return;}if(_0x400a07[_0x132421(0x1c3)]&&typeof _0x400a07['env']==='string'){const {initEnv:_0x5d523d}=await import(_0x132421(0x1b5));_0x5d523d(_0x400a07['env']);}const {buildConfigFromFlags:_0xf83426}=await import(_0x132421(0x1da)),_0x32855f=_0xf83426(_0x400a07);if(!_0x400a07[_0x132421(0x1c3)]&&_0x32855f['env']){const {initEnv:_0x2669ba}=await import(_0x132421(0x1b5));_0x2669ba(_0x32855f['env']);}if(isDeclarativeService(_0x5117ed)){const _0x3dfc8b=findDefinition(_0x5117ed,_0x179689);!_0x3dfc8b&&(printServiceHelp(_0x5117ed),handleError(CliErrors[_0x132421(0x1bf)](_0x5117ed+'\x20'+_0x179689)));if(_0x400a07[_0x132421(0x1c2)]){console[_0x132421(0x1aa)](generateCommandHelp(_0x3dfc8b));return;}try{await runCommand(_0x3dfc8b,{'rawFlags':_0x400a07,'resolveAppCode':()=>_0x32855f[_0x132421(0x1dd)]||_0x400a07[_0x132421(0x1cf)]||process[_0x132421(0x1c3)][_0x132421(0x1a4)]||process[_0x132421(0x1c3)][_0x132421(0x1d4)]||undefined,'resolveCookie':()=>_0x32855f[_0x132421(0x1d7)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':isNonInteractive(_0x400a07),'defaultFormat':_0x32855f['format'],'defaultPageSize':_0x32855f[_0x132421(0x1a5)],'defaultVerbose':_0x32855f['verbose'],'apiDir':_0x32855f[_0x132421(0x1d8)],'riskLevel':_0x32855f['riskLevel']});}catch(_0xa70a6e){handleError(_0xa70a6e);}return;}const _0x58603f=getLegacyHandler(_0x5117ed,_0x179689);if(_0x58603f){if(_0x400a07[_0x132421(0x1c2)]){printServiceHelp(_0x5117ed);return;}const _0x390119=await createContext(_0x400a07),_0x4e3563=_0x58603f[_0x132421(0x1d9)]?[_0x179689,...cli[_0x132421(0x1a7)][_0x132421(0x1c9)](0x2)]:cli[_0x132421(0x1a7)][_0x132421(0x1c9)](0x2);try{await _0x58603f[_0x132421(0x1c6)][_0x132421(0x1ad)](_0x390119,_0x4e3563,_0x400a07);}catch(_0x2f08e7){handleError(_0x2f08e7);}return;}if(_0x27a66b['wildcardModule']){if(_0x400a07[_0x132421(0x1c2)]){printServiceHelp(_0x5117ed);return;}const _0x44dd7a=await createContext(_0x400a07),_0xb7203c=[_0x179689,...cli[_0x132421(0x1a7)][_0x132421(0x1c9)](0x2)];try{await _0x27a66b[_0x132421(0x1b0)][_0x132421(0x1ad)](_0x44dd7a,_0xb7203c,_0x400a07);}catch(_0x419f0e){handleError(_0x419f0e);}return;}printServiceHelp(_0x5117ed),handleError(CliErrors[_0x132421(0x1bf)](_0x5117ed+'\x20'+_0x179689));}function printServiceHelp(_0x4de38d){const _0x19403d=a28_0x54ac64;console[_0x19403d(0x1aa)](generateServiceHelp(_0x4de38d));}function handleError(_0x366ada){const _0x39b7ee=a28_0x54ac64;if(_0x366ada instanceof CliError){console[_0x39b7ee(0x1bc)](_0x39b7ee(0x1cd)+_0x366ada[_0x39b7ee(0x1bb)]);if(_0x366ada[_0x39b7ee(0x1c1)])console[_0x39b7ee(0x1bc)](_0x39b7ee(0x1d2)+_0x366ada[_0x39b7ee(0x1c1)]);process[_0x39b7ee(0x1a3)](_0x366ada[_0x39b7ee(0x1c5)]);}console[_0x39b7ee(0x1bc)](_0x39b7ee(0x1ca),_0x366ada),process['exit'](0x1);}function isNonInteractive(_0x4fdbd4){const _0x1fc4fc=a28_0x54ac64;return!!(_0x4fdbd4[_0x1fc4fc(0x1b4)]||_0x4fdbd4['ci']||process[_0x1fc4fc(0x1c3)][_0x1fc4fc(0x1d5)]==='true'||process[_0x1fc4fc(0x1c3)][_0x1fc4fc(0x1db)]===_0x1fc4fc(0x1dc)||process['env']['CI']==='true'||!process[_0x1fc4fc(0x1d0)][_0x1fc4fc(0x1b3)]);}
2
+ function a11_0x520e(){const _0x594f87=['isTTY','apiDir','package.json','Unexpected\x20error:','stdout','wildcardModule','userDomain','60ocXmNS','passCommandAsArg','pageSize','run','help','Hint:\x20','global','dynamicCliFlags','2OuARMV','2989713XuTXJK','version','`\x20has\x20been\x20moved\x20to\x20`','node:url','apiDomain','RABETBASE_APPCODE','boolean','string','input','./context.js','runtimeDomain','exitCode','log','3916278jQggTE','hint','cookie','nonInteractive','flags','defaultCommand','node:path','node:fs','768jCyIaV','unknownCommand','env','raw','RABETBASE_CI','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','⚠\x20`','./constant/domain.js','unknown_service','4307856YkcqdX','command','error','0.0.0','Error:\x20','service','./constant/env.js','slice','1769782QIinGi','`\x20in\x20v2.0.\x0a','LOVRABET_CI','LOVRABET_APPCODE','true','explicitAppName','5510848fQnAli','50835GqbwGe','appCode','449222MSOqru','format','utf-8'];a11_0x520e=function(){return _0x594f87;};return a11_0x520e();}const a11_0x45ff33=a11_0x319a;(function(_0x453398,_0xbc89bc){const _0x1894ad=a11_0x319a,_0x3ac351=_0x453398();while(!![]){try{const _0x2cd2dc=parseInt(_0x1894ad(0xd0))/0x1*(-parseInt(_0x1894ad(0xe2))/0x2)+-parseInt(_0x1894ad(0xe3))/0x3+parseInt(_0x1894ad(0xcd))/0x4+-parseInt(_0x1894ad(0xce))/0x5*(parseInt(_0x1894ad(0xb6))/0x6)+parseInt(_0x1894ad(0xc7))/0x7+-parseInt(_0x1894ad(0xbf))/0x8+parseInt(_0x1894ad(0xae))/0x9*(parseInt(_0x1894ad(0xda))/0xa);if(_0x2cd2dc===_0xbc89bc)break;else _0x3ac351['push'](_0x3ac351['shift']());}catch(_0x26eb2d){_0x3ac351['push'](_0x3ac351['shift']());}}}(a11_0x520e,0xe955b));import{jsx as a11_0x359aaa}from'react/jsx-runtime';import a11_0x63844a from'meow';function a11_0x319a(_0x1eea8f,_0x4fec59){_0x1eea8f=_0x1eea8f-0xa2;const _0x520e21=a11_0x520e();let _0x319aad=_0x520e21[_0x1eea8f];return _0x319aad;}import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{createContext}from'./context.js';import{isKnownService,isDeclarativeService,getServiceEntry,findDefinition,getLegacyHandler,deprecatedAliases}from'./commands/registry.js';import{runCommand}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{getCookie}from'./auth/get-cookie.js';import{getApiDomain}from'./constant/domain.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{BUILD_NUMBER}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import('./cli-flags.js'))[a11_0x45ff33(0xe1)];}catch{}const helpText=generateFullHelp(),pkgVersion=await((async()=>{const _0x339238=a11_0x45ff33;try{const {readFileSync:_0xcd920c}=await import(_0x339238(0xb5)),{resolve:_0x1126d8,dirname:_0x4d5232}=await import(_0x339238(0xb4)),{fileURLToPath:_0x2a6068}=await import(_0x339238(0xa4)),_0x1d3295=_0x1126d8(_0x4d5232(_0x2a6068(import.meta.url)),'..'),_0x5e66ec=JSON['parse'](_0xcd920c(_0x1126d8(_0x1d3295,_0x339238(0xd5)),_0x339238(0xd2)));return _0x5e66ec[_0x339238(0xa2)]||'0.0.0';}catch{return _0x339238(0xc2);}})()),cliVersion=BUILD_NUMBER?pkgVersion+'+'+BUILD_NUMBER:pkgVersion,cli=a11_0x63844a(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{'help':{'type':a11_0x45ff33(0xa7)},'env':{'type':'string'},'appcode':{'type':a11_0x45ff33(0xa8)},'app':{'type':a11_0x45ff33(0xa8)},'nonInteractive':{'type':a11_0x45ff33(0xa7)},'ci':{'type':'boolean'},'format':{'type':a11_0x45ff33(0xa8)},'dryRun':{'type':'boolean'},'yes':{'type':'boolean'},'name':{'type':a11_0x45ff33(0xa8)},'clear':{'type':'boolean'},'watch':{'type':a11_0x45ff33(0xa7)},'output':{'type':'string'},'params':{'type':a11_0x45ff33(0xa8)},'datasetcode':{'type':a11_0x45ff33(0xa8)},'cursor':{'type':a11_0x45ff33(0xa7)},'windsurf':{'type':a11_0x45ff33(0xa7)},'claude':{'type':a11_0x45ff33(0xa7)},'cline':{'type':a11_0x45ff33(0xa7)},'codex':{'type':a11_0x45ff33(0xa7)},'opencode':{'type':a11_0x45ff33(0xa7)},'qoder':{'type':'boolean'},'codebuddy':{'type':a11_0x45ff33(0xa7)},'trae':{'type':'boolean'},'agent':{'type':a11_0x45ff33(0xa7)},'antigravity':{'type':a11_0x45ff33(0xa7)},'all':{'type':a11_0x45ff33(0xa7)},'enableBffSave':{'type':'boolean'},'global':{'type':a11_0x45ff33(0xa7)},'id':{'type':a11_0x45ff33(0xa8)},'type':{'type':a11_0x45ff33(0xa8)},'file':{'type':a11_0x45ff33(0xa8)},'sqlcode':{'type':a11_0x45ff33(0xa8)},'sqlname':{'type':a11_0x45ff33(0xa8)},'dbid':{'type':a11_0x45ff33(0xa8)},'description':{'type':a11_0x45ff33(0xa8)},'page':{'type':a11_0x45ff33(0xa8)},'pagesize':{'type':a11_0x45ff33(0xa8)},'keyword':{'type':'string'},'code':{'type':a11_0x45ff33(0xa8)},'sql':{'type':a11_0x45ff33(0xa8)},'schemas':{'type':'string'},'operation':{'type':a11_0x45ff33(0xa8)},'target':{'type':'string'},'skipImports':{'type':a11_0x45ff33(0xa7)},'force':{'type':'boolean'},'remote':{'type':a11_0x45ff33(0xa7)},'verbose':{'type':'boolean'},'operationType':{'type':a11_0x45ff33(0xa8)},'functionNode':{'type':a11_0x45ff33(0xa8)},...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x5c90fd=a11_0x45ff33;let _0x599336=cli[_0x5c90fd(0xa9)][0x0],_0x1e8c8b=cli[_0x5c90fd(0xa9)][0x1];const _0x1ef7a1=cli[_0x5c90fd(0xb2)];if(!_0x599336){await reportCliHelpTrace(_0x5c90fd(0xe0)),render(a11_0x359aaa(Help,{}));return;}const _0x180b3f=deprecatedAliases[_0x599336];if(_0x180b3f&&!isKnownService(_0x599336)){const _0x1d303b=_0x1e8c8b?CLI_BIN_NAME+'\x20'+_0x599336+'\x20'+_0x1e8c8b:CLI_BIN_NAME+'\x20'+_0x599336,_0x2d33ca=CLI_BIN_NAME+'\x20'+_0x180b3f[_0x5c90fd(0xc4)]+'\x20'+_0x180b3f[_0x5c90fd(0xc0)];console[_0x5c90fd(0xc1)](_0x5c90fd(0xbc)+_0x1d303b+_0x5c90fd(0xa3)+_0x2d33ca+_0x5c90fd(0xc8)+_0x5c90fd(0xbb)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x599336)){await reportCliHelpTrace(_0x5c90fd(0xbe),{'service':_0x599336}),render(a11_0x359aaa(Help,{}));return;}const _0x393c38=getServiceEntry(_0x599336);if(!_0x1e8c8b){if(_0x393c38[_0x5c90fd(0xb3)])_0x1e8c8b=_0x393c38['defaultCommand'];else{if(_0x393c38[_0x5c90fd(0xd8)]){const _0x316615=await createContext(_0x1ef7a1);try{await _0x393c38[_0x5c90fd(0xd8)][_0x5c90fd(0xdd)](_0x316615,[],_0x1ef7a1);}catch(_0xabb489){await handleErrorAsync(_0xabb489);}return;}else{printServiceHelp(_0x599336);return;}}}if(_0x1ef7a1[_0x5c90fd(0xde)]&&!findDefinition(_0x599336,_0x1e8c8b)&&!getLegacyHandler(_0x599336,_0x1e8c8b)){printServiceHelp(_0x599336);return;}if(_0x1ef7a1[_0x5c90fd(0xb8)]&&typeof _0x1ef7a1[_0x5c90fd(0xb8)]==='string'){const {initEnv:_0x9a177}=await import(_0x5c90fd(0xc5));_0x9a177(_0x1ef7a1['env']);}const {buildConfigFromFlags:_0x4ac82b}=await import(_0x5c90fd(0xaa)),_0x34ce31=_0x4ac82b(_0x1ef7a1);if(!_0x1ef7a1['env']&&_0x34ce31[_0x5c90fd(0xb8)]){const {initEnv:_0x51fb44}=await import(_0x5c90fd(0xc5));_0x51fb44(_0x34ce31[_0x5c90fd(0xb8)]);}if(_0x34ce31[_0x5c90fd(0xb9)]?.[_0x5c90fd(0xa5)]||_0x34ce31['raw']?.['userDomain']||_0x34ce31['raw']?.[_0x5c90fd(0xab)]){const {initDomains:_0x31cf2a}=await import(_0x5c90fd(0xbd));_0x31cf2a({'apiDomain':_0x34ce31['raw']['apiDomain']||undefined,'userDomain':_0x34ce31[_0x5c90fd(0xb9)][_0x5c90fd(0xd9)]||undefined,'runtimeDomain':_0x34ce31[_0x5c90fd(0xb9)]['runtimeDomain']||undefined});}if(isDeclarativeService(_0x599336)){const _0x49dff8=findDefinition(_0x599336,_0x1e8c8b);if(!_0x49dff8){printServiceHelp(_0x599336),await handleErrorAsync(CliErrors[_0x5c90fd(0xb7)](_0x599336+'\x20'+_0x1e8c8b));return;}if(_0x1ef7a1[_0x5c90fd(0xde)]){console[_0x5c90fd(0xad)](generateCommandHelp(_0x49dff8));return;}try{await runCommand(_0x49dff8,{'rawFlags':_0x1ef7a1,'resolveAppCode':()=>_0x34ce31[_0x5c90fd(0xcf)]||_0x1ef7a1['appcode']||process[_0x5c90fd(0xb8)][_0x5c90fd(0xa6)]||process[_0x5c90fd(0xb8)][_0x5c90fd(0xca)]||undefined,'resolveCookie':()=>_0x34ce31[_0x5c90fd(0xb0)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':isNonInteractive(_0x1ef7a1),'defaultFormat':_0x34ce31[_0x5c90fd(0xd1)],'defaultPageSize':_0x34ce31[_0x5c90fd(0xdc)],'defaultVerbose':_0x34ce31['verbose'],'apiDir':_0x34ce31[_0x5c90fd(0xd4)],'riskLevel':_0x34ce31['riskLevel'],'selectedAppName':_0x34ce31[_0x5c90fd(0xcc)]});}catch(_0x5a54fd){await handleErrorAsync(_0x5a54fd);}return;}const _0x28b6e6=getLegacyHandler(_0x599336,_0x1e8c8b);if(_0x28b6e6){if(_0x1ef7a1['help']){printServiceHelp(_0x599336);return;}const _0x494a10=await createContext(_0x1ef7a1),_0x3f133c=_0x28b6e6[_0x5c90fd(0xdb)]?[_0x1e8c8b,...cli[_0x5c90fd(0xa9)]['slice'](0x2)]:cli[_0x5c90fd(0xa9)][_0x5c90fd(0xc6)](0x2);try{await _0x28b6e6['module']['run'](_0x494a10,_0x3f133c,_0x1ef7a1);}catch(_0x19e821){await handleErrorAsync(_0x19e821);}return;}if(_0x393c38['wildcardModule']){if(_0x1ef7a1[_0x5c90fd(0xde)]){printServiceHelp(_0x599336);return;}const _0x4d06cd=await createContext(_0x1ef7a1),_0x4dbfe8=[_0x1e8c8b,...cli[_0x5c90fd(0xa9)][_0x5c90fd(0xc6)](0x2)];try{await _0x393c38[_0x5c90fd(0xd8)][_0x5c90fd(0xdd)](_0x4d06cd,_0x4dbfe8,_0x1ef7a1);}catch(_0x5b232b){await handleErrorAsync(_0x5b232b);}return;}printServiceHelp(_0x599336),await handleErrorAsync(CliErrors[_0x5c90fd(0xb7)](_0x599336+'\x20'+_0x1e8c8b));}function printServiceHelp(_0x1a0f90){const _0x5d8f4b=a11_0x45ff33;console[_0x5d8f4b(0xad)](generateServiceHelp(_0x1a0f90));}async function handleErrorAsync(_0x55b907){const _0x15c219=a11_0x45ff33;if(_0x55b907 instanceof CliError){console[_0x15c219(0xc1)](_0x15c219(0xc3)+_0x55b907['message']);if(_0x55b907[_0x15c219(0xaf)])console['error'](_0x15c219(0xdf)+_0x55b907[_0x15c219(0xaf)]);return await exitWithOtelShutdown(_0x55b907[_0x15c219(0xac)]);}return console[_0x15c219(0xc1)](_0x15c219(0xd6),_0x55b907),await exitWithOtelShutdown(0x1);}function isNonInteractive(_0x26d142){const _0x4603c5=a11_0x45ff33;return!!(_0x26d142[_0x4603c5(0xb1)]||_0x26d142['ci']||process[_0x4603c5(0xb8)][_0x4603c5(0xba)]===_0x4603c5(0xcb)||process[_0x4603c5(0xb8)][_0x4603c5(0xc9)]===_0x4603c5(0xcb)||process['env']['CI']===_0x4603c5(0xcb)||!process[_0x4603c5(0xd7)][_0x4603c5(0xd3)]);}
@@ -0,0 +1 @@
1
+ function a12_0x2a15(_0x276722,_0x42ad79){_0x276722=_0x276722-0x112;const _0x131850=a12_0x1318();let _0x2a15de=_0x131850[_0x276722];return _0x2a15de;}const a12_0x4ed7e9=a12_0x2a15;(function(_0x35c55b,_0x30e635){const _0x13ad92=a12_0x2a15,_0x39f33b=_0x35c55b();while(!![]){try{const _0x5aec5e=-parseInt(_0x13ad92(0x112))/0x1*(-parseInt(_0x13ad92(0x134))/0x2)+-parseInt(_0x13ad92(0x121))/0x3+-parseInt(_0x13ad92(0x12f))/0x4*(-parseInt(_0x13ad92(0x124))/0x5)+-parseInt(_0x13ad92(0x131))/0x6+parseInt(_0x13ad92(0x128))/0x7+-parseInt(_0x13ad92(0x118))/0x8+-parseInt(_0x13ad92(0x114))/0x9;if(_0x5aec5e===_0x30e635)break;else _0x39f33b['push'](_0x39f33b['shift']());}catch(_0x39d053){_0x39f33b['push'](_0x39f33b['shift']());}}}(a12_0x1318,0xc5239));import a12_0x47043a from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a12_0x1318(){const _0x470dd1=['api','isArray','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','success','...','datasetcode','length','some','appcode','\x20dataset(s)\x1b[0m','\x20succeeded,\x20','Doc\x20generation\x20complete:\x20','Output\x20directory\x20(default:\x20./docs)','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','error','string','\x20\x20•\x20','filter','570878VtCEEp','output','4307859ZjYOas','join','stdout','\x1b[0m','8662448LEzsNU','--datasetcode\x20cannot\x20be\x20empty.','map','fail','padStart','datasetName','str','datasetCode','\x20doc(s)\x20failed','939777HINLfL','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','parse','262330jxWhYO','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','✓\x20Generated\x20','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','8730645VrEbuO','doc','.md','Fetched\x20','has','must\x20be\x20a\x20JSON\x20object','\x20doc(s)\x20in\x20','116bqcvXv','\x20of\x20','3944580zxARaI','\x1b[90m*\x20Filtered\x20','params','2iaOCYr','cookie','./docs','\x20dataset(s)','write','validation','Invalid\x20--params:\x20','\x0d\x20\x20[','appCode','log','split','Doc\x20generation:\x20'];a12_0x1318=function(){return _0x470dd1;};return a12_0x1318();}import{CliErrors}from'../../errors.js';export const apiDoc={'service':a12_0x4ed7e9(0x140),'command':a12_0x4ed7e9(0x129),'description':a12_0x4ed7e9(0x125),'risk':a12_0x4ed7e9(0x138),'requiresAppCode':!![],'hasFormat':![],'flags':[{'name':a12_0x4ed7e9(0x148),'type':a12_0x4ed7e9(0x14f),'description':'Override\x20app\x20code','hidden':!![]},{'name':'output','type':a12_0x4ed7e9(0x14f),'description':a12_0x4ed7e9(0x14c)},{'name':a12_0x4ed7e9(0x145),'type':a12_0x4ed7e9(0x14f),'description':a12_0x4ed7e9(0x142)},{'name':a12_0x4ed7e9(0x133),'type':'string','description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x17c7f7){const _0x3d0db5=a12_0x4ed7e9,_0x1823f1=_0x17c7f7[_0x3d0db5(0x11e)](_0x3d0db5(0x113))||_0x3d0db5(0x136),_0x144e91=_0x17c7f7[_0x3d0db5(0x11e)](_0x3d0db5(0x145)),_0x2d0b1c=_0x17c7f7[_0x3d0db5(0x11e)](_0x3d0db5(0x133));let _0x2dabff;if(_0x2d0b1c)try{_0x2dabff=JSON[_0x3d0db5(0x123)](_0x2d0b1c);if(typeof _0x2dabff!=='object'||_0x2dabff===null||Array[_0x3d0db5(0x141)](_0x2dabff))throw new Error(_0x3d0db5(0x12d));}catch(_0x17d85d){throw CliErrors[_0x3d0db5(0x139)](_0x3d0db5(0x13a)+(_0x17d85d instanceof Error?_0x17d85d['message']:String(_0x17d85d)),_0x3d0db5(0x14d));}let _0xa8c93f;if(_0x144e91){const _0x960139=_0x144e91[_0x3d0db5(0x13e)](',')[_0x3d0db5(0x11a)](_0x2ec858=>_0x2ec858['trim']())[_0x3d0db5(0x151)](_0x1ae16=>_0x1ae16['length']>0x0);if(_0x960139['length']===0x0)throw CliErrors['validation'](_0x3d0db5(0x119));_0xa8c93f=new Set(_0x960139),console[_0x3d0db5(0x13d)]('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x960139['join'](',\x20')+_0x3d0db5(0x117));}const _0x156def=a12_0x47043a('Fetching\x20dataset\x20list\x20for\x20'+_0x17c7f7[_0x3d0db5(0x13c)]+_0x3d0db5(0x144))['start']();let _0x1664bd;try{({configArray:_0x1664bd}=await fetchModelList(_0x17c7f7[_0x3d0db5(0x13c)],_0x17c7f7[_0x3d0db5(0x135)]),_0x156def['succeed'](_0x3d0db5(0x12b)+_0x1664bd[_0x3d0db5(0x146)]+_0x3d0db5(0x137)));}catch(_0x578269){_0x156def[_0x3d0db5(0x11b)]('Failed\x20to\x20fetch\x20datasets');throw _0x578269;}if(_0x1664bd['length']===0x0)return console[_0x3d0db5(0x13d)]('!\x20No\x20datasets\x20found.'),{'ok':!![]};let _0x1c5627=_0x1664bd;if(_0xa8c93f){_0x1c5627=_0x1664bd['filter'](_0x3c5159=>_0xa8c93f[_0x3d0db5(0x12c)](_0x3c5159[_0x3d0db5(0x11f)]));const _0x52353d=[..._0xa8c93f][_0x3d0db5(0x151)](_0x5af852=>!_0x1664bd[_0x3d0db5(0x147)](_0x431202=>_0x431202[_0x3d0db5(0x11f)]===_0x5af852));_0x52353d[_0x3d0db5(0x146)]>0x0&&console['log'](_0x3d0db5(0x122)+_0x52353d[_0x3d0db5(0x115)](',\x20')+_0x3d0db5(0x117));if(_0x1c5627[_0x3d0db5(0x146)]===0x0)throw CliErrors[_0x3d0db5(0x139)](_0x3d0db5(0x127)+[..._0xa8c93f]['join'](',\x20'));console['log'](_0x3d0db5(0x132)+_0x1c5627[_0x3d0db5(0x146)]+_0x3d0db5(0x130)+_0x1664bd[_0x3d0db5(0x146)]+_0x3d0db5(0x149));}let _0x3b78a3=0x0;const _0x52ac62=await generateDatasetDocs(_0x1c5627,_0x17c7f7[_0x3d0db5(0x13c)],_0x17c7f7[_0x3d0db5(0x135)],_0x1823f1,(_0x487c53,_0x326156,_0x2a5f0a)=>{const _0x57b11b=_0x3d0db5;_0x3b78a3=_0x487c53,process[_0x57b11b(0x116)]['write'](_0x57b11b(0x13b)+String(_0x487c53)[_0x57b11b(0x11c)](String(_0x326156)['length'])+'/'+_0x326156+']\x20'+_0x2a5f0a+_0x57b11b(0x12a));},_0x2dabff);if(_0x3b78a3>0x0)process[_0x3d0db5(0x116)][_0x3d0db5(0x138)]('\x0a');const _0x116482=_0x52ac62[_0x3d0db5(0x151)](_0x360dfd=>_0x360dfd['success'])['length'],_0x2951e6=_0x52ac62[_0x3d0db5(0x151)](_0x4b10bf=>!_0x4b10bf[_0x3d0db5(0x143)])[_0x3d0db5(0x146)];console['log'](),console[_0x3d0db5(0x13d)](_0x3d0db5(0x126)+_0x116482+_0x3d0db5(0x12e)+_0x1823f1);if(_0x2951e6>0x0){console[_0x3d0db5(0x14e)]('!\x20'+_0x2951e6+_0x3d0db5(0x120));for(const _0x4fa7d7 of _0x52ac62[_0x3d0db5(0x151)](_0x36fd21=>!_0x36fd21[_0x3d0db5(0x143)])){console[_0x3d0db5(0x14e)](_0x3d0db5(0x150)+_0x4fa7d7[_0x3d0db5(0x11d)]+'\x20('+_0x4fa7d7['datasetCode']+'):\x20'+_0x4fa7d7['error']);}}return{'ok':_0x2951e6===0x0,'message':_0x2951e6>0x0?_0x3d0db5(0x13f)+_0x116482+_0x3d0db5(0x14a)+_0x2951e6+'\x20failed':_0x3d0db5(0x14b)+_0x116482+'\x20file(s)'};}};
@@ -0,0 +1 @@
1
+ function a13_0x586d(_0x4c2bcd,_0x1d87a2){_0x4c2bcd=_0x4c2bcd-0x78;const _0x539635=a13_0x5396();let _0x586d3c=_0x539635[_0x4c2bcd];return _0x586d3c;}(function(_0x1fe890,_0x560176){const _0x516125=a13_0x586d,_0x4a7197=_0x1fe890();while(!![]){try{const _0x15c693=-parseInt(_0x516125(0x7d))/0x1+parseInt(_0x516125(0x78))/0x2+-parseInt(_0x516125(0x7c))/0x3*(parseInt(_0x516125(0x7a))/0x4)+parseInt(_0x516125(0x7f))/0x5+parseInt(_0x516125(0x79))/0x6+-parseInt(_0x516125(0x80))/0x7+parseInt(_0x516125(0x7e))/0x8*(parseInt(_0x516125(0x7b))/0x9);if(_0x15c693===_0x560176)break;else _0x4a7197['push'](_0x4a7197['shift']());}catch(_0x29bf23){_0x4a7197['push'](_0x4a7197['shift']());}}}(a13_0x5396,0xa1f9d));import{apiList}from'./list.js';function a13_0x5396(){const _0x23f90d=['3aJzCNN','71752CTHRvx','119576aRSmKZ','1477285Ealdhj','5676370EdMnjk','962326sEAqOS','7747776pfPDXH','2445932Jerkcp','54hvhoye'];a13_0x5396=function(){return _0x23f90d;};return a13_0x5396();}import{apiPull}from'./pull.js';import{apiDoc}from'./doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];
@@ -0,0 +1 @@
1
+ const a14_0x1cb6ec=a14_0x51b1;(function(_0x41c333,_0x29ae18){const _0x9671df=a14_0x51b1,_0x1aab70=_0x41c333();while(!![]){try{const _0x32af7f=-parseInt(_0x9671df(0x11e))/0x1+parseInt(_0x9671df(0xfa))/0x2*(-parseInt(_0x9671df(0xfe))/0x3)+parseInt(_0x9671df(0x10e))/0x4+parseInt(_0x9671df(0x121))/0x5+-parseInt(_0x9671df(0x106))/0x6+parseInt(_0x9671df(0x101))/0x7*(-parseInt(_0x9671df(0x115))/0x8)+-parseInt(_0x9671df(0x10c))/0x9*(-parseInt(_0x9671df(0x100))/0xa);if(_0x32af7f===_0x29ae18)break;else _0x1aab70['push'](_0x1aab70['shift']());}catch(_0x11d6fe){_0x1aab70['push'](_0x1aab70['shift']());}}}(a14_0x5032,0x861a6));import{initEnv}from'../../constant/env.js';function a14_0x51b1(_0x4c9436,_0x2b7028){_0x4c9436=_0x4c9436-0xf5;const _0x50328a=a14_0x5032();let _0x51b1b9=_0x50328a[_0x4c9436];return _0x51b1b9;}import{fetchModelList}from'../../api/fetch-model-list.js';import{getMultiAppConfigs}from'../../utils/config.js';function a14_0x5032(){const _0x155f79=['production','table','filter','6008088enOLGl','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','padStart','key','\x20\x20|\x20\x20','slice','max','length','datasetCode','709241VWOrPM','stringify','api','2314740lCDOuK','log','min','Name','Key','read','name','2lOmTJP','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','appcode','repeat','1090545CNKDjC','join','90OwZlEg','7FJAogy','\x20\x20[','isDefault','\x20model(s)\x0a','selectedAppName','1188318KpVwYD','\x20\x20|\x20\x20No\x20models\x20found\x0a','\x0a\x20\x20App:\x20','DatasetCode','cookie','str','1321866KcNrtz','\x20\x20App:\x20','3145168eUxvIt','json','string','map'];a14_0x5032=function(){return _0x155f79;};return a14_0x5032();}async function printModelsForApp(_0x25383a,_0x49ccf4,_0x55b577,_0x3d11b3='table'){const _0x304132=a14_0x51b1,{configArray:_0x46e303,count:_0x3710ef}=await fetchModelList(_0x25383a,_0x49ccf4);if(_0x3710ef===0x0){_0x3d11b3===_0x304132(0x10f)?console['log'](JSON[_0x304132(0x11f)]({'appCode':_0x25383a,'models':[]})):console[_0x304132(0x122)](_0x304132(0x10d)+_0x25383a+_0x304132(0x107));return;}if(_0x3d11b3==='json'){console[_0x304132(0x122)](JSON[_0x304132(0x11f)]({'appCode':_0x25383a,'appName':_0x55b577,'total':_0x3710ef,'models':_0x46e303}));return;}const _0x55f1e0=Math['min'](0x28,Math[_0x304132(0x11b)](0x4,..._0x46e303[_0x304132(0x111)](_0xab00d3=>_0xab00d3[_0x304132(0xf9)][_0x304132(0x11c)]))),_0x586509=Math['min'](0x24,Math[_0x304132(0x11b)](0x3,..._0x46e303['map'](_0xb3386a=>_0xb3386a['key'][_0x304132(0x11c)]))),_0x1788d4=Math[_0x304132(0xf5)](0x28,Math['max'](0x4,..._0x46e303[_0x304132(0x111)](_0x5323bb=>_0x5323bb[_0x304132(0x11d)][_0x304132(0x11c)]))),_0x2f3c7d=(_0x5dbc2a,_0x34f709)=>_0x5dbc2a[_0x304132(0x11a)](0x0,_0x34f709)['padEnd'](_0x34f709),_0x424561=(_0x491034,_0x4a9008,_0x2c8fe1,_0x133928)=>'\x20\x20'+String(_0x491034)[_0x304132(0x117)](0x6)+'\x20\x20'+_0x2f3c7d(_0x4a9008,_0x55f1e0)+'\x20\x20'+_0x2f3c7d(_0x2c8fe1,_0x586509)+'\x20\x20'+_0x2f3c7d(_0x133928,_0x1788d4);console[_0x304132(0x122)](_0x304132(0x108)+_0x25383a+(_0x55b577?'\x20('+_0x55b577+')':'')+_0x304132(0x119)+_0x3710ef+_0x304132(0x104)),console[_0x304132(0x122)](_0x424561('ID',_0x304132(0xf6),_0x304132(0xf7),_0x304132(0x109))),console[_0x304132(0x122)]('\x20\x20'+'─'[_0x304132(0xfd)](0x6)+'\x20\x20'+'─'[_0x304132(0xfd)](_0x55f1e0)+'\x20\x20'+'─'[_0x304132(0xfd)](_0x586509)+'\x20\x20'+'─'[_0x304132(0xfd)](_0x1788d4));for(const _0x4c23ea of _0x46e303){console[_0x304132(0x122)](_0x424561(_0x4c23ea['id'],_0x4c23ea[_0x304132(0xf9)],_0x4c23ea[_0x304132(0x118)],_0x4c23ea[_0x304132(0x11d)]));}console['log']();}export const apiList={'service':a14_0x1cb6ec(0x120),'command':'list','description':a14_0x1cb6ec(0x116),'risk':a14_0x1cb6ec(0xf8),'requiresAppCode':!![],'hasFormat':![],'flags':[{'name':'appcode','type':a14_0x1cb6ec(0x110),'description':'Override\x20app\x20code','hidden':!![]},{'name':'format','type':a14_0x1cb6ec(0x110),'description':'Output\x20format:\x20table\x20(default)\x20|\x20json','default':a14_0x1cb6ec(0x113)}],async 'execute'(_0x4ee0ee){const _0x19e899=a14_0x1cb6ec,_0x1669ac=_0x4ee0ee['str'](_0x19e899(0xfc)),_0x17a14e=_0x4ee0ee[_0x19e899(0x10b)]('format')||_0x19e899(0x113);if(!_0x1669ac){let _0x26ca74=getMultiAppConfigs();if(_0x26ca74&&_0x26ca74['length']>0x0){if(_0x4ee0ee[_0x19e899(0x105)]){const _0x30c168=_0x26ca74[_0x19e899(0x114)](_0x5ca093=>_0x5ca093[_0x19e899(0xf9)]===_0x4ee0ee[_0x19e899(0x105)]);if(_0x30c168[_0x19e899(0x11c)]===0x0){const _0x306734=_0x26ca74[_0x19e899(0x111)](_0x1fe57f=>_0x1fe57f[_0x19e899(0xf9)])[_0x19e899(0xff)](',\x20');return{'ok':![],'message':'App\x20\x22'+_0x4ee0ee[_0x19e899(0x105)]+_0x19e899(0xfb)+_0x306734};}_0x26ca74=_0x30c168;}for(const _0x45fafc of _0x26ca74){const _0x2619ff=_0x45fafc[_0x19e899(0x10a)]||_0x4ee0ee[_0x19e899(0x10a)],_0x3a1bff=_0x45fafc['env']||_0x19e899(0x112);initEnv(_0x3a1bff),_0x17a14e!==_0x19e899(0x10f)&&(console[_0x19e899(0x122)]('\x0a'+'='[_0x19e899(0xfd)](0x32)),console[_0x19e899(0x122)](_0x19e899(0x10d)+_0x45fafc[_0x19e899(0xf9)]+(_0x45fafc[_0x19e899(0x103)]?'\x20(default)':'')+_0x19e899(0x102)+_0x3a1bff+']'),console[_0x19e899(0x122)](''+'='[_0x19e899(0xfd)](0x32))),await printModelsForApp(_0x45fafc[_0x19e899(0xfc)],_0x2619ff,_0x45fafc[_0x19e899(0xf9)],_0x17a14e);}return{'ok':!![]};}}return await printModelsForApp(_0x4ee0ee['appCode'],_0x4ee0ee[_0x19e899(0x10a)],undefined,_0x17a14e),{'ok':!![]};}};
@@ -0,0 +1 @@
1
+ const a15_0x387604=a15_0x3328;(function(_0x505372,_0x59e654){const _0x45a39a=a15_0x3328,_0x2849f9=_0x505372();while(!![]){try{const _0x25e985=-parseInt(_0x45a39a(0x197))/0x1+-parseInt(_0x45a39a(0x185))/0x2*(-parseInt(_0x45a39a(0x171))/0x3)+parseInt(_0x45a39a(0x194))/0x4+-parseInt(_0x45a39a(0x186))/0x5*(-parseInt(_0x45a39a(0x16d))/0x6)+parseInt(_0x45a39a(0x1a4))/0x7*(parseInt(_0x45a39a(0x183))/0x8)+parseInt(_0x45a39a(0x180))/0x9+parseInt(_0x45a39a(0x199))/0xa*(-parseInt(_0x45a39a(0x172))/0xb);if(_0x25e985===_0x59e654)break;else _0x2849f9['push'](_0x2849f9['shift']());}catch(_0x2c0b64){_0x2849f9['push'](_0x2849f9['shift']());}}}(a15_0x3f3d,0x40b7b));import a15_0x52dc5a from'ora';import a15_0x1c0b65 from'node:path';import{initEnv,getEnv}from'../../constant/env.js';function a15_0x3328(_0x2ec3dc,_0x1f2795){_0x2ec3dc=_0x2ec3dc-0x16c;const _0x3f3db3=a15_0x3f3d();let _0x33283b=_0x3f3db3[_0x2ec3dc];return _0x33283b;}import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x3f3d(){const _0x2ee29b=['name','626520zvxffI','start','length','225738oRNbqZ','cookie','2390MUpdWh','split','string','-api','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','modelCount','\x20\x20•\x20','api','.ts','Pulling\x20API\x20config\x20for\x20','clientFilePath','14KuqsLH','apiDir','\x20failed','apiFilePath','1422Kyjjgj','Output\x20directory\x20(default:\x20./src/api/)','Done:\x20','isDefault','2460fsguiR','47509EnBRsu','Override\x20app\x20code','fail','succeed','\x20succeeded,\x20','appCode','Pulling\x20','Pulled\x20','\x20dataset(s)\x20→\x20','\x20model(s)','output','Failed:\x20','error',')...','2596869zxlUGP','\x20dataset(s),\x20generated\x20','log','2048552VbRtIX','selectedAppName','392GiDnOA','8545cDRCDT','str','map','pull','appcode','message','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(./src/api/)','write','join','...','production','./src/api/','\x20app(s)\x20failed'];a15_0x3f3d=function(){return _0x2ee29b;};return a15_0x3f3d();}import{generateApiFile}from'../../api/generate-api-file.js';import{getMultiAppConfigs}from'../../utils/config.js';export const apiPull={'service':a15_0x387604(0x1a0),'command':a15_0x387604(0x189),'description':a15_0x387604(0x18c),'risk':a15_0x387604(0x18d),'requiresAppCode':!![],'hasFormat':![],'flags':[{'name':'appcode','type':a15_0x387604(0x19b),'description':a15_0x387604(0x173),'hidden':!![]},{'name':a15_0x387604(0x17c),'type':a15_0x387604(0x19b),'description':a15_0x387604(0x16e)}],async 'execute'(_0x1c8501){const _0x410feb=a15_0x387604,_0x2a5a50=_0x1c8501[_0x410feb(0x187)](_0x410feb(0x18a)),_0x1a5ee9=_0x1c8501[_0x410feb(0x187)](_0x410feb(0x17c))||undefined;if(!_0x2a5a50){let _0x4bcedb=getMultiAppConfigs();if(_0x4bcedb&&_0x4bcedb[_0x410feb(0x196)]>0x0){if(_0x1c8501['selectedAppName']){const _0x40a91b=_0x4bcedb['filter'](_0x49bf39=>_0x49bf39[_0x410feb(0x193)]===_0x1c8501[_0x410feb(0x184)]);if(_0x40a91b[_0x410feb(0x196)]===0x0){const _0x1ee9ba=_0x4bcedb[_0x410feb(0x188)](_0x38e043=>_0x38e043[_0x410feb(0x193)])[_0x410feb(0x18e)](',\x20');return{'ok':![],'message':'App\x20\x22'+_0x1c8501[_0x410feb(0x184)]+_0x410feb(0x19d)+_0x1ee9ba};}_0x4bcedb=_0x40a91b;}let _0x30ef15=0x0,_0x182074=0x0;for(const _0xbf8603 of _0x4bcedb){const _0x4c9f0b=_0xbf8603['cookie']||_0x1c8501[_0x410feb(0x198)],_0x361271=_0xbf8603['env']||_0x410feb(0x190);initEnv(_0x361271);const _0x36748f=_0xbf8603['apiDir']||_0x1a5ee9||_0x410feb(0x191),_0x15555c=_0xbf8603['isDefault']?'':_0xbf8603[_0x410feb(0x193)]||_0xbf8603[_0x410feb(0x18a)],_0x9bf0d9=a15_0x52dc5a(_0x410feb(0x178)+_0xbf8603[_0x410feb(0x193)]+'\x20('+_0xbf8603['appcode']+_0x410feb(0x17f))[_0x410feb(0x195)]();try{const {configArray:_0x2b2d4e}=await fetchModelList(_0xbf8603[_0x410feb(0x18a)],_0x4c9f0b),_0x146dfb=await generateApiFile(_0x2b2d4e,_0x15555c,_0xbf8603[_0x410feb(0x18a)],_0xbf8603[_0x410feb(0x170)],_0x361271,_0x36748f,_0xbf8603[_0x410feb(0x193)]);_0x9bf0d9[_0x410feb(0x175)](_0xbf8603[_0x410feb(0x193)]+':\x20'+_0x2b2d4e[_0x410feb(0x196)]+_0x410feb(0x17a)+_0x146dfb[_0x410feb(0x19e)]+_0x410feb(0x17b)),console[_0x410feb(0x182)]('\x20\x20•\x20'+_0x146dfb[_0x410feb(0x16c)]),console['log'](_0x410feb(0x19f)+_0x146dfb[_0x410feb(0x1a3)]),_0x30ef15++;}catch(_0x48c97a){_0x9bf0d9[_0x410feb(0x174)](_0xbf8603[_0x410feb(0x193)]+':\x20'+(_0x48c97a instanceof Error?_0x48c97a[_0x410feb(0x18b)]:String(_0x48c97a))),_0x182074++;}}return console[_0x410feb(0x182)](),_0x182074>0x0&&console[_0x410feb(0x17e)]('!\x20'+_0x182074+_0x410feb(0x192)),{'ok':_0x182074===0x0,'message':_0x410feb(0x16f)+_0x30ef15+_0x410feb(0x176)+_0x182074+_0x410feb(0x1a6)};}}const _0x2ba29d=_0x2a5a50&&_0x2a5a50['includes']('-')?_0x2a5a50[_0x410feb(0x19a)]('-')['slice'](0x1)[_0x410feb(0x18e)]('-'):'',_0x5c1ff0=_0x1a5ee9||_0x1c8501[_0x410feb(0x1a5)]||_0x410feb(0x191),_0x3218f4=!_0x2a5a50,_0x29a701=a15_0x52dc5a(_0x410feb(0x1a2)+_0x1c8501[_0x410feb(0x177)]+_0x410feb(0x18f))[_0x410feb(0x195)]();try{const {configArray:_0x34175f}=await fetchModelList(_0x1c8501[_0x410feb(0x177)],_0x1c8501[_0x410feb(0x198)]),_0x4f4868=await generateApiFile(_0x34175f,_0x2ba29d,_0x1c8501[_0x410feb(0x177)],_0x3218f4,getEnv(),_0x5c1ff0);_0x29a701[_0x410feb(0x175)](_0x410feb(0x179)+_0x34175f[_0x410feb(0x196)]+_0x410feb(0x181)+_0x4f4868[_0x410feb(0x19e)]+_0x410feb(0x17b));const _0x8b514e=_0x2ba29d?_0x2ba29d+_0x410feb(0x19c):_0x410feb(0x1a0),_0xec3b18=_0x2ba29d?_0x2ba29d+'-client':'client';return console[_0x410feb(0x182)](_0x410feb(0x19f)+a15_0x1c0b65[_0x410feb(0x18e)](_0x5c1ff0,_0x8b514e+'.ts')),console[_0x410feb(0x182)](_0x410feb(0x19f)+a15_0x1c0b65['join'](_0x5c1ff0,_0xec3b18+_0x410feb(0x1a1))),{'ok':!![],'data':{'datasetCount':_0x34175f[_0x410feb(0x196)],'modelCount':_0x4f4868[_0x410feb(0x19e)]}};}catch(_0x5184bf){_0x29a701[_0x410feb(0x174)](_0x410feb(0x17d)+(_0x5184bf instanceof Error?_0x5184bf['message']:String(_0x5184bf)));throw _0x5184bf;}}};
@@ -1 +1 @@
1
- const a30_0x46c84b=a30_0x175f;(function(_0x11a90a,_0x347829){const _0x373605=a30_0x175f,_0x40403b=_0x11a90a();while(!![]){try{const _0x37e56d=parseInt(_0x373605(0xd9))/0x1+-parseInt(_0x373605(0xef))/0x2*(-parseInt(_0x373605(0x108))/0x3)+parseInt(_0x373605(0xe8))/0x4+-parseInt(_0x373605(0xf2))/0x5*(-parseInt(_0x373605(0xc6))/0x6)+-parseInt(_0x373605(0xfd))/0x7*(-parseInt(_0x373605(0xf1))/0x8)+parseInt(_0x373605(0xdb))/0x9*(parseInt(_0x373605(0x10b))/0xa)+-parseInt(_0x373605(0xe5))/0xb;if(_0x37e56d===_0x347829)break;else _0x40403b['push'](_0x40403b['shift']());}catch(_0x3bfda0){_0x40403b['push'](_0x40403b['shift']());}}}(a30_0x28e3,0xbc965));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';function getConfigPath(_0x5d66cd={}){const _0xf530e1=a30_0x175f,_0xc358a4=_0x5d66cd[_0xf530e1(0xf7)]?_0xf530e1(0xf7):_0xf530e1(0xcb);return resolveWriteConfigPath(_0xc358a4);}function a30_0x175f(_0x3d3e58,_0xef49f3){_0x3d3e58=_0x3d3e58-0xc6;const _0x28e311=a30_0x28e3();let _0x175f0c=_0x28e311[_0x3d3e58];return _0x175f0c;}function a30_0x28e3(){const _0x543707=['config','207ZeaRZS','No\x20apps\x20configured.\x20Use\x20`rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','\x20\x20\x20\x20cookie:\x20\x20\x20\x20(set)','App\x20\x22','\x20\x20\x20\x20format:\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20','log','riskLevel','\x22\x20not\x20found.','apiDir','48384754JtzDLV','\x20\x20\x20\x20pageSize:\x20\x20','\x22\x20(appcode:\x20','5175956hChYee','pageSize','\x0aUse\x20`rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20enable\x20multi-app\x20mode.','Manage\x20multiple\x20apps\x20in\x20one\x20workspace','keys','No\x20apps\x20configured.\x20Use\x20`rabetbase\x20app\x20add\x20','locale','4138MQHsjq','\x20\x20\x20\x20locale:\x20\x20\x20\x20','18024nAgZnK','4605wUGPgh','cookie','risklevel','Removed\x20app\x20\x22','--appcode\x20is\x20required\x20when\x20adding\x20an\x20app.','global','env','\x20(global)','Default\x20app\x20changed\x20to\x20\x22','slice','Usage:\x20rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--apiDir\x20<dir>]\x20[--global]','329USUzFo','Usage:\x20rabetbase\x20app\x20use\x20<name>\x20[--global]','Default\x20app\x20set\x20to\x20\x22','pagesize','error','Default:\x20','Configured\x20apps:\x0a','app','appCode','appcode','defaultApp','1773NnbwQr','list','length','615990zYDmZk','Updated','\x22\x20not\x20found.\x20Available:\x20','format','5238heqbwJ','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20','\x20(default)','accesskey','No\x20default\x20app\x20set.\x20Use\x20`rabetbase\x20app\x20use\x20<name>`\x20to\x20set\x20one.','project','apidir','entries','\x20\x20appcode:\x20','\x20\x20\x20\x20accessKey:\x20(set)','\x20--appcode\x20<code>`\x20first.','Set\x20as\x20default\x20app.','exit','Usage:\x20rabetbase\x20app\x20remove\x20<name>\x20[--global]','use','accessKey','apps','\x20\x20env:\x20','Single-app\x20mode:','327598GpipdA'];a30_0x28e3=function(){return _0x543707;};return a30_0x28e3();}function readConfig(_0x130f2a={}){return readConfigFile(getConfigPath(_0x130f2a));}function writeConfig(_0x257a69,_0x4bfaa3={}){writeConfigFile(getConfigPath(_0x4bfaa3),_0x257a69);}function listApps(_0x5332c9){const _0x55f666=a30_0x175f,{apps:_0x53ab93,defaultApp:_0xa51881,currentApp:_0x5f018f}=_0x5332c9[_0x55f666(0xda)],_0xe02efa=Object[_0x55f666(0xcd)](_0x53ab93);if(_0xe02efa[_0x55f666(0x10a)]===0x0){const _0x241e73=_0x5332c9[_0x55f666(0xda)][_0x55f666(0x105)];_0x241e73?(console['log'](_0x55f666(0xd8)),console[_0x55f666(0xe1)](_0x55f666(0xce)+_0x241e73+_0x55f666(0xd7)+_0x5332c9['config'][_0x55f666(0xf8)]),console[_0x55f666(0xe1)](_0x55f666(0xea))):console[_0x55f666(0xe1)](_0x55f666(0xdc));return;}console[_0x55f666(0xe1)](_0x55f666(0x103));for(const [_0x2f6925,_0x4fe6c0]of _0xe02efa){const _0x28381f=_0x2f6925===_0xa51881,_0x2a5edc=_0x2f6925===_0x5f018f,_0x1bba02=_0x2a5edc?'\x20*':_0x28381f?_0x55f666(0xc8):'';console[_0x55f666(0xe1)]('\x20\x20'+_0x2f6925+_0x1bba02),console['log']('\x20\x20\x20\x20appcode:\x20'+_0x4fe6c0[_0x55f666(0x106)]);if(_0x4fe6c0[_0x55f666(0xf8)])console[_0x55f666(0xe1)](_0x55f666(0xc7)+_0x4fe6c0['env']);if(_0x4fe6c0[_0x55f666(0xe4)])console[_0x55f666(0xe1)](_0x55f666(0xe0)+_0x4fe6c0['apiDir']);if(_0x4fe6c0['cookie'])console[_0x55f666(0xe1)](_0x55f666(0xdd));if(_0x4fe6c0[_0x55f666(0xd5)])console[_0x55f666(0xe1)](_0x55f666(0xcf));if(_0x4fe6c0[_0x55f666(0x10e)])console[_0x55f666(0xe1)](_0x55f666(0xdf)+_0x4fe6c0[_0x55f666(0x10e)]);if(_0x4fe6c0[_0x55f666(0xe9)])console[_0x55f666(0xe1)](_0x55f666(0xe6)+_0x4fe6c0[_0x55f666(0xe9)]);if(_0x4fe6c0[_0x55f666(0xe2)])console[_0x55f666(0xe1)]('\x20\x20\x20\x20riskLevel:\x20'+_0x4fe6c0[_0x55f666(0xe2)]);if(_0x4fe6c0[_0x55f666(0xee)])console[_0x55f666(0xe1)](_0x55f666(0xf0)+_0x4fe6c0[_0x55f666(0xee)]);console[_0x55f666(0xe1)]('');}_0xa51881?console[_0x55f666(0xe1)](_0x55f666(0x102)+_0xa51881):console[_0x55f666(0xe1)](_0x55f666(0xca));}function useApp(_0x52db76,_0x550740,_0x16bfaf){const _0x50bb23=a30_0x175f,_0x536323=_0x550740[0x0];!_0x536323&&(console[_0x50bb23(0x101)](_0x50bb23(0xfe)),process[_0x50bb23(0xd2)](0x1));const _0x8e8872=readConfig(_0x16bfaf),_0x2f318d=_0x8e8872[_0x50bb23(0xd6)]||{};if(!_0x2f318d[_0x536323]){const _0x5db2c1=Object['keys'](_0x2f318d);_0x5db2c1['length']===0x0?console[_0x50bb23(0x101)](_0x50bb23(0xed)+_0x536323+_0x50bb23(0xd0)):console[_0x50bb23(0x101)]('App\x20\x22'+_0x536323+_0x50bb23(0x10d)+_0x5db2c1['join'](',\x20')),process[_0x50bb23(0xd2)](0x1);}_0x8e8872[_0x50bb23(0x107)]=_0x536323,writeConfig(_0x8e8872,_0x16bfaf);const _0x2cd464=_0x16bfaf[_0x50bb23(0xf7)]?'\x20(global)':'';console[_0x50bb23(0xe1)](_0x50bb23(0xff)+_0x536323+_0x50bb23(0xe7)+_0x2f318d[_0x536323][_0x50bb23(0x106)]+')'+_0x2cd464);}function addApp(_0x19d5f1,_0x1b81ac,_0x57a13a){const _0x21415f=a30_0x175f,_0x1c652d=_0x1b81ac[0x0];!_0x1c652d&&(console['error'](_0x21415f(0xfc)),process[_0x21415f(0xd2)](0x1));const _0x1e0343=_0x57a13a[_0x21415f(0x106)];!_0x1e0343&&(console[_0x21415f(0x101)](_0x21415f(0xf6)),process['exit'](0x1));const _0x4cc3d7=readConfig(_0x57a13a);if(!_0x4cc3d7[_0x21415f(0xd6)])_0x4cc3d7[_0x21415f(0xd6)]={};const _0x4686cc={'appcode':_0x1e0343};if(_0x57a13a['env'])_0x4686cc[_0x21415f(0xf8)]=_0x57a13a['env'];if(_0x57a13a[_0x21415f(0xe4)]||_0x57a13a[_0x21415f(0xcc)])_0x4686cc[_0x21415f(0xe4)]=_0x57a13a[_0x21415f(0xe4)]||_0x57a13a[_0x21415f(0xcc)];if(_0x57a13a['cookie'])_0x4686cc['cookie']=_0x57a13a[_0x21415f(0xf3)];if(_0x57a13a[_0x21415f(0xd5)]||_0x57a13a[_0x21415f(0xc9)])_0x4686cc[_0x21415f(0xd5)]=_0x57a13a['accessKey']||_0x57a13a[_0x21415f(0xc9)];if(_0x57a13a[_0x21415f(0x10e)])_0x4686cc[_0x21415f(0x10e)]=_0x57a13a['format'];if(_0x57a13a[_0x21415f(0xe9)]||_0x57a13a[_0x21415f(0x100)])_0x4686cc['pageSize']=Number(_0x57a13a[_0x21415f(0xe9)]||_0x57a13a[_0x21415f(0x100)]);if(_0x57a13a[_0x21415f(0xe2)]||_0x57a13a[_0x21415f(0xf4)])_0x4686cc[_0x21415f(0xe2)]=_0x57a13a[_0x21415f(0xe2)]||_0x57a13a['risklevel'];if(_0x57a13a[_0x21415f(0xee)])_0x4686cc[_0x21415f(0xee)]=_0x57a13a[_0x21415f(0xee)];const _0x7b37aa=!!_0x4cc3d7['apps'][_0x1c652d];_0x4cc3d7[_0x21415f(0xd6)][_0x1c652d]=_0x4686cc;!_0x4cc3d7[_0x21415f(0x107)]&&(_0x4cc3d7[_0x21415f(0x107)]=_0x1c652d);writeConfig(_0x4cc3d7,_0x57a13a);const _0x2dd2bd=_0x57a13a['global']?_0x21415f(0xf9):'';console[_0x21415f(0xe1)]((_0x7b37aa?_0x21415f(0x10c):'Added')+'\x20app\x20\x22'+_0x1c652d+_0x21415f(0xe7)+_0x1e0343+')'+_0x2dd2bd),_0x4cc3d7[_0x21415f(0x107)]===_0x1c652d&&!_0x7b37aa&&console[_0x21415f(0xe1)](_0x21415f(0xd1));}function removeApp(_0x5597e3,_0x54ab5b,_0x27b5d4){const _0x4fdf6f=a30_0x175f,_0x20a0d7=_0x54ab5b[0x0];!_0x20a0d7&&(console[_0x4fdf6f(0x101)](_0x4fdf6f(0xd3)),process[_0x4fdf6f(0xd2)](0x1));const _0x3c59db=readConfig(_0x27b5d4);(!_0x3c59db[_0x4fdf6f(0xd6)]||!_0x3c59db[_0x4fdf6f(0xd6)][_0x20a0d7])&&(console[_0x4fdf6f(0x101)](_0x4fdf6f(0xde)+_0x20a0d7+_0x4fdf6f(0xe3)),process['exit'](0x1));delete _0x3c59db['apps'][_0x20a0d7];if(_0x3c59db[_0x4fdf6f(0x107)]===_0x20a0d7){const _0x374581=Object[_0x4fdf6f(0xec)](_0x3c59db[_0x4fdf6f(0xd6)]);_0x3c59db['defaultApp']=_0x374581[_0x4fdf6f(0x10a)]>0x0?_0x374581[0x0]:undefined,_0x3c59db['defaultApp']?console[_0x4fdf6f(0xe1)](_0x4fdf6f(0xfa)+_0x3c59db[_0x4fdf6f(0x107)]+'\x22.'):delete _0x3c59db[_0x4fdf6f(0x107)];}Object[_0x4fdf6f(0xec)](_0x3c59db['apps'])[_0x4fdf6f(0x10a)]===0x0&&(delete _0x3c59db[_0x4fdf6f(0xd6)],delete _0x3c59db[_0x4fdf6f(0x107)]),writeConfig(_0x3c59db,_0x27b5d4),console[_0x4fdf6f(0xe1)](_0x4fdf6f(0xf5)+_0x20a0d7+'\x22.');}export const appCommand={'name':a30_0x46c84b(0x104),'description':a30_0x46c84b(0xeb),async 'run'(_0x5c9c25,_0x1e4d45,_0x1f491f){const _0x5976b5=a30_0x46c84b,_0x172476=_0x1e4d45[0x0],_0x169726=_0x1e4d45[_0x5976b5(0xfb)](0x1);switch(_0x172476){case _0x5976b5(0x109):listApps(_0x5c9c25);break;case _0x5976b5(0xd4):useApp(_0x5c9c25,_0x169726,_0x1f491f);break;case'add':addApp(_0x5c9c25,_0x169726,_0x1f491f);break;case'remove':removeApp(_0x5c9c25,_0x169726,_0x1f491f);break;default:listApps(_0x5c9c25);break;}}};
1
+ const a16_0x2f8e3a=a16_0x365d;(function(_0x14d912,_0x46c102){const _0x5e4bc9=a16_0x365d,_0x49b629=_0x14d912();while(!![]){try{const _0x332f02=parseInt(_0x5e4bc9(0x1d8))/0x1+-parseInt(_0x5e4bc9(0x1f9))/0x2*(-parseInt(_0x5e4bc9(0x1f1))/0x3)+parseInt(_0x5e4bc9(0x1eb))/0x4+-parseInt(_0x5e4bc9(0x1fa))/0x5+-parseInt(_0x5e4bc9(0x1ec))/0x6*(-parseInt(_0x5e4bc9(0x1fd))/0x7)+-parseInt(_0x5e4bc9(0x1de))/0x8+parseInt(_0x5e4bc9(0x207))/0x9;if(_0x332f02===_0x46c102)break;else _0x49b629['push'](_0x49b629['shift']());}catch(_0x920953){_0x49b629['push'](_0x49b629['shift']());}}}(a16_0x4ba0,0xdb45e));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';function getConfigPath(_0x5f2d22={}){const _0x31b6f9=a16_0x365d,_0x2e209f=_0x5f2d22[_0x31b6f9(0x214)]?_0x31b6f9(0x214):_0x31b6f9(0x1e6);return resolveWriteConfigPath(_0x2e209f);}function readConfig(_0x584f37={}){return readConfigFile(getConfigPath(_0x584f37));}function writeConfig(_0x1d7ba9,_0x1330ce={}){writeConfigFile(getConfigPath(_0x1330ce),_0x1d7ba9);}function a16_0x4ba0(){const _0x11115c=['\x20\x20appcode:\x20','4263216XOqdSW','Updated','\x22\x20(appcode:\x20','remove','add','Manage\x20multiple\x20apps\x20in\x20one\x20workspace','\x22\x20to\x20multi-app\x20config\x20(set\x20as\x20default).','env','project','\x20\x20\x20\x20locale:\x20\x20\x20\x20','Set\x20as\x20default\x20app.','list','No\x20default\x20app\x20set.\x20Use\x20`rabetbase\x20app\x20use\x20<name>`\x20to\x20set\x20one.','2953864LmNCMh','48EhFjLQ','format','length','cookie','apidir','39fJZCAM','\x20\x20\x20\x20riskLevel:\x20','\x20(global)','exit','\x20\x20env:\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20','No\x20apps\x20configured.\x20Use\x20`rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','config','34282dKpLBD','7735545EnBHCB','log','--appcode\x20is\x20required\x20when\x20adding\x20an\x20app.','253855mLPwgY','Default:\x20','\x20\x20\x20\x20appcode:\x20','\x22\x20not\x20found.\x20Available:\x20','use','locale','accessKey','defaultApp','apiDir','Removed\x20app\x20\x22','9395379kxGTXR','pageSize','\x20\x20\x20\x20pageSize:\x20\x20','join','Usage:\x20rabetbase\x20app\x20remove\x20<name>\x20[--global]','\x20--appcode\x20<code>`\x20first.','Usage:\x20rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--apiDir\x20<dir>]\x20[--global]','App\x20\x22','\x20\x20\x20\x20accessKey:\x20(set)','riskLevel','No\x20apps\x20configured.\x20Use\x20`rabetbase\x20app\x20add\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20(set)','entries','global','appcode','\x0aUse\x20`rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20enable\x20multi-app\x20mode.','\x20\x20\x20\x20format:\x20\x20\x20\x20','risklevel','apps','Migrated\x20existing\x20app\x20\x22','682803tcfmEX','app','error','keys','pagesize'];a16_0x4ba0=function(){return _0x11115c;};return a16_0x4ba0();}function listApps(_0xcbbe96){const _0x10beb1=a16_0x365d,{apps:_0x4adb2d,defaultApp:_0x28b731,currentApp:_0x137c80}=_0xcbbe96['config'],_0x2be536=Object[_0x10beb1(0x213)](_0x4adb2d);if(_0x2be536['length']===0x0){const _0x31204a=_0xcbbe96[_0x10beb1(0x1f8)]['appCode'];_0x31204a?(console[_0x10beb1(0x1fb)]('Single-app\x20mode:'),console[_0x10beb1(0x1fb)](_0x10beb1(0x1dd)+_0x31204a+_0x10beb1(0x1f5)+_0xcbbe96[_0x10beb1(0x1f8)][_0x10beb1(0x1e5)]),console['log'](_0x10beb1(0x216))):console[_0x10beb1(0x1fb)](_0x10beb1(0x1f7));return;}console[_0x10beb1(0x1fb)]('Configured\x20apps:\x0a');for(const [_0x61d549,_0x58559a]of _0x2be536){const _0x134158=_0x61d549===_0x28b731,_0x3514e6=_0x61d549===_0x137c80,_0x1d8518=_0x3514e6?'\x20*':_0x134158?'\x20(default)':'';console['log']('\x20\x20'+_0x61d549+_0x1d8518),console[_0x10beb1(0x1fb)](_0x10beb1(0x1ff)+_0x58559a[_0x10beb1(0x215)]);if(_0x58559a[_0x10beb1(0x1e5)])console[_0x10beb1(0x1fb)](_0x10beb1(0x1f6)+_0x58559a[_0x10beb1(0x1e5)]);if(_0x58559a[_0x10beb1(0x205)])console[_0x10beb1(0x1fb)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20'+_0x58559a['apiDir']);if(_0x58559a[_0x10beb1(0x1ef)])console[_0x10beb1(0x1fb)](_0x10beb1(0x212));if(_0x58559a['accessKey'])console[_0x10beb1(0x1fb)](_0x10beb1(0x20f));if(_0x58559a[_0x10beb1(0x1ed)])console[_0x10beb1(0x1fb)](_0x10beb1(0x1d4)+_0x58559a[_0x10beb1(0x1ed)]);if(_0x58559a['pageSize'])console['log'](_0x10beb1(0x209)+_0x58559a[_0x10beb1(0x208)]);if(_0x58559a[_0x10beb1(0x210)])console[_0x10beb1(0x1fb)](_0x10beb1(0x1f2)+_0x58559a[_0x10beb1(0x210)]);if(_0x58559a[_0x10beb1(0x202)])console[_0x10beb1(0x1fb)](_0x10beb1(0x1e7)+_0x58559a['locale']);console['log']('');}_0x28b731?console[_0x10beb1(0x1fb)](_0x10beb1(0x1fe)+_0x28b731):console[_0x10beb1(0x1fb)](_0x10beb1(0x1ea));}function useApp(_0x4ea26c,_0x4fd29b,_0x108db1){const _0x351f70=a16_0x365d,_0x26a5f4=_0x4fd29b[0x0];!_0x26a5f4&&(console[_0x351f70(0x1da)]('Usage:\x20rabetbase\x20app\x20use\x20<name>\x20[--global]'),process['exit'](0x1));const _0x12df98=readConfig(_0x108db1),_0x1954c7=_0x12df98['apps']||{};if(!_0x1954c7[_0x26a5f4]){const _0x50d03d=Object['keys'](_0x1954c7);_0x50d03d[_0x351f70(0x1ee)]===0x0?console['error'](_0x351f70(0x211)+_0x26a5f4+_0x351f70(0x20c)):console[_0x351f70(0x1da)]('App\x20\x22'+_0x26a5f4+_0x351f70(0x200)+_0x50d03d[_0x351f70(0x20a)](',\x20')),process[_0x351f70(0x1f4)](0x1);}_0x12df98[_0x351f70(0x204)]=_0x26a5f4,writeConfig(_0x12df98,_0x108db1);const _0x2fa300=_0x108db1[_0x351f70(0x214)]?_0x351f70(0x1f3):'';console['log']('Default\x20app\x20set\x20to\x20\x22'+_0x26a5f4+_0x351f70(0x1e0)+_0x1954c7[_0x26a5f4][_0x351f70(0x215)]+')'+_0x2fa300);}function migrateLegacySingleApp(_0x4ac6cd,_0x721eef){const _0x3861b6=a16_0x365d,_0x59f2c0=_0x4ac6cd[_0x3861b6(0x215)]||_0x4ac6cd[_0x3861b6(0x1d9)];if(!_0x59f2c0)return;const _0x358651=String(_0x59f2c0);if(_0x358651===_0x721eef)return;const _0x4fcbbf={'appcode':_0x59f2c0};if(_0x4ac6cd[_0x3861b6(0x1e5)])_0x4fcbbf[_0x3861b6(0x1e5)]=_0x4ac6cd[_0x3861b6(0x1e5)];if(_0x4ac6cd[_0x3861b6(0x205)])_0x4fcbbf[_0x3861b6(0x205)]=_0x4ac6cd[_0x3861b6(0x205)];if(_0x4ac6cd[_0x3861b6(0x1ef)])_0x4fcbbf[_0x3861b6(0x1ef)]=_0x4ac6cd[_0x3861b6(0x1ef)];if(_0x4ac6cd['accessKey'])_0x4fcbbf[_0x3861b6(0x203)]=_0x4ac6cd[_0x3861b6(0x203)];if(_0x4ac6cd['format'])_0x4fcbbf[_0x3861b6(0x1ed)]=_0x4ac6cd['format'];if(_0x4ac6cd[_0x3861b6(0x208)])_0x4fcbbf[_0x3861b6(0x208)]=_0x4ac6cd[_0x3861b6(0x208)];if(_0x4ac6cd[_0x3861b6(0x210)])_0x4fcbbf[_0x3861b6(0x210)]=_0x4ac6cd[_0x3861b6(0x210)];if(_0x4ac6cd[_0x3861b6(0x202)])_0x4fcbbf[_0x3861b6(0x202)]=_0x4ac6cd['locale'];_0x4ac6cd[_0x3861b6(0x1d6)][_0x358651]=_0x4fcbbf,_0x4ac6cd[_0x3861b6(0x204)]=_0x358651,delete _0x4ac6cd[_0x3861b6(0x215)],delete _0x4ac6cd['app'],console[_0x3861b6(0x1fb)](_0x3861b6(0x1d7)+_0x358651+_0x3861b6(0x1e4));}function a16_0x365d(_0x452a54,_0x47936c){_0x452a54=_0x452a54-0x1d4;const _0x4ba0fa=a16_0x4ba0();let _0x365d41=_0x4ba0fa[_0x452a54];return _0x365d41;}function addApp(_0x44707c,_0x594ad5,_0x135daa){const _0xc4815d=a16_0x365d,_0x6db5b7=_0x594ad5[0x0];!_0x6db5b7&&(console[_0xc4815d(0x1da)](_0xc4815d(0x20d)),process['exit'](0x1));const _0x226d65=_0x135daa[_0xc4815d(0x215)];!_0x226d65&&(console[_0xc4815d(0x1da)](_0xc4815d(0x1fc)),process[_0xc4815d(0x1f4)](0x1));const _0x33b74a=readConfig(_0x135daa);if(!_0x33b74a[_0xc4815d(0x1d6)])_0x33b74a[_0xc4815d(0x1d6)]={};Object['keys'](_0x33b74a[_0xc4815d(0x1d6)])[_0xc4815d(0x1ee)]===0x0&&migrateLegacySingleApp(_0x33b74a,_0x6db5b7);const _0x20c4e5={'appcode':_0x226d65};if(_0x135daa[_0xc4815d(0x1e5)])_0x20c4e5[_0xc4815d(0x1e5)]=_0x135daa[_0xc4815d(0x1e5)];if(_0x135daa[_0xc4815d(0x205)]||_0x135daa[_0xc4815d(0x1f0)])_0x20c4e5['apiDir']=_0x135daa[_0xc4815d(0x205)]||_0x135daa[_0xc4815d(0x1f0)];if(_0x135daa[_0xc4815d(0x1ef)])_0x20c4e5[_0xc4815d(0x1ef)]=_0x135daa[_0xc4815d(0x1ef)];if(_0x135daa['accessKey']||_0x135daa['accesskey'])_0x20c4e5[_0xc4815d(0x203)]=_0x135daa['accessKey']||_0x135daa['accesskey'];if(_0x135daa[_0xc4815d(0x1ed)])_0x20c4e5[_0xc4815d(0x1ed)]=_0x135daa[_0xc4815d(0x1ed)];if(_0x135daa[_0xc4815d(0x208)]||_0x135daa[_0xc4815d(0x1dc)])_0x20c4e5[_0xc4815d(0x208)]=Number(_0x135daa[_0xc4815d(0x208)]||_0x135daa[_0xc4815d(0x1dc)]);if(_0x135daa[_0xc4815d(0x210)]||_0x135daa[_0xc4815d(0x1d5)])_0x20c4e5['riskLevel']=_0x135daa[_0xc4815d(0x210)]||_0x135daa[_0xc4815d(0x1d5)];if(_0x135daa[_0xc4815d(0x202)])_0x20c4e5[_0xc4815d(0x202)]=_0x135daa['locale'];const _0x34a5db=!!_0x33b74a[_0xc4815d(0x1d6)][_0x6db5b7];_0x33b74a[_0xc4815d(0x1d6)][_0x6db5b7]=_0x20c4e5;!_0x33b74a[_0xc4815d(0x204)]&&(_0x33b74a[_0xc4815d(0x204)]=_0x6db5b7);writeConfig(_0x33b74a,_0x135daa);const _0x33b154=_0x135daa[_0xc4815d(0x214)]?'\x20(global)':'';console[_0xc4815d(0x1fb)]((_0x34a5db?_0xc4815d(0x1df):'Added')+'\x20app\x20\x22'+_0x6db5b7+_0xc4815d(0x1e0)+_0x226d65+')'+_0x33b154),_0x33b74a[_0xc4815d(0x204)]===_0x6db5b7&&!_0x34a5db&&console[_0xc4815d(0x1fb)](_0xc4815d(0x1e8));}function removeApp(_0x340a2e,_0x566a82,_0x1ed894){const _0x399b48=a16_0x365d,_0x51e945=_0x566a82[0x0];!_0x51e945&&(console[_0x399b48(0x1da)](_0x399b48(0x20b)),process[_0x399b48(0x1f4)](0x1));const _0x111d51=readConfig(_0x1ed894);(!_0x111d51['apps']||!_0x111d51[_0x399b48(0x1d6)][_0x51e945])&&(console[_0x399b48(0x1da)](_0x399b48(0x20e)+_0x51e945+'\x22\x20not\x20found.'),process[_0x399b48(0x1f4)](0x1));delete _0x111d51[_0x399b48(0x1d6)][_0x51e945];if(_0x111d51[_0x399b48(0x204)]===_0x51e945){const _0x2e6d30=Object[_0x399b48(0x1db)](_0x111d51['apps']);_0x111d51[_0x399b48(0x204)]=_0x2e6d30[_0x399b48(0x1ee)]>0x0?_0x2e6d30[0x0]:undefined,_0x111d51[_0x399b48(0x204)]?console['log']('Default\x20app\x20changed\x20to\x20\x22'+_0x111d51[_0x399b48(0x204)]+'\x22.'):delete _0x111d51[_0x399b48(0x204)];}Object[_0x399b48(0x1db)](_0x111d51[_0x399b48(0x1d6)])[_0x399b48(0x1ee)]===0x0&&(delete _0x111d51['apps'],delete _0x111d51[_0x399b48(0x204)]),writeConfig(_0x111d51,_0x1ed894),console[_0x399b48(0x1fb)](_0x399b48(0x206)+_0x51e945+'\x22.');}export const appCommand={'name':a16_0x2f8e3a(0x1d9),'description':a16_0x2f8e3a(0x1e3),async 'run'(_0x3adba9,_0x35daba,_0x5af0be){const _0x1d4405=a16_0x2f8e3a,_0x137e70=_0x35daba[0x0],_0x2dfcc6=_0x35daba['slice'](0x1);switch(_0x137e70){case _0x1d4405(0x1e9):listApps(_0x3adba9);break;case _0x1d4405(0x201):useApp(_0x3adba9,_0x2dfcc6,_0x5af0be);break;case _0x1d4405(0x1e2):addApp(_0x3adba9,_0x2dfcc6,_0x5af0be);break;case _0x1d4405(0x1e1):removeApp(_0x3adba9,_0x2dfcc6,_0x5af0be);break;default:listApps(_0x3adba9);break;}}};
@@ -1 +1 @@
1
- function a31_0x4f43(_0x4b499a,_0x3a1822){_0x4b499a=_0x4b499a-0x76;const _0x288ac0=a31_0x288a();let _0x4f4313=_0x288ac0[_0x4b499a];return _0x4f4313;}const a31_0x293f35=a31_0x4f43;(function(_0x367ae3,_0xa34664){const _0x26909b=a31_0x4f43,_0x2cd5a9=_0x367ae3();while(!![]){try{const _0xa13d8e=-parseInt(_0x26909b(0x83))/0x1+parseInt(_0x26909b(0x7c))/0x2*(parseInt(_0x26909b(0x7e))/0x3)+parseInt(_0x26909b(0x7f))/0x4*(-parseInt(_0x26909b(0x81))/0x5)+-parseInt(_0x26909b(0x82))/0x6*(-parseInt(_0x26909b(0x76))/0x7)+-parseInt(_0x26909b(0x79))/0x8+parseInt(_0x26909b(0x78))/0x9*(-parseInt(_0x26909b(0x80))/0xa)+parseInt(_0x26909b(0x7b))/0xb*(parseInt(_0x26909b(0x7a))/0xc);if(_0xa13d8e===_0xa34664)break;else _0x2cd5a9['push'](_0x2cd5a9['shift']());}catch(_0x1e17b9){_0x2cd5a9['push'](_0x2cd5a9['shift']());}}}(a31_0x288a,0xa8486));function a31_0x288a(){const _0x2f0dfa=['Authenticate\x20with\x20rabetbase','8324433PjaKJg','2385408iqFdNJ','14724LOvQbT','15543UDofVt','2TUExQk','auth','2005221wdoinm','4pVLnOu','10OJKKae','4756395RQcxXx','4482498tJlhda','285563vPTlTE','7FiVbIM'];a31_0x288a=function(){return _0x2f0dfa;};return a31_0x288a();}import{jsx as a31_0x298607}from'react/jsx-runtime';import{render}from'ink';import{AuthServer}from'../auth/auth-server-ui.js';export const authCommand={'name':a31_0x293f35(0x7d),'description':a31_0x293f35(0x77),async 'run'(_0x1b0fbb,_0x2feb54,_0x4842cf){render(a31_0x298607(AuthServer,{}));}};
1
+ const a17_0x83d4e5=a17_0x5668;function a17_0x478b(){const _0x4a4040=['5792850GnOcfk','6ZrDZma','2308JpljmY','9PdqYlj','10PnCNZd','236247KxNDMA','3340265JQhEDN','auth','3188296HoCKem','1929rsOlvw','268794FbJiGE','341924qKePkh','Authenticate\x20with\x20rabetbase'];a17_0x478b=function(){return _0x4a4040;};return a17_0x478b();}function a17_0x5668(_0x1b93c5,_0x27fecf){_0x1b93c5=_0x1b93c5-0x17c;const _0x478bdb=a17_0x478b();let _0x56682b=_0x478bdb[_0x1b93c5];return _0x56682b;}(function(_0x147355,_0x2f6748){const _0x6d1c38=a17_0x5668,_0x299a1c=_0x147355();while(!![]){try{const _0x12c664=parseInt(_0x6d1c38(0x186))/0x1+parseInt(_0x6d1c38(0x187))/0x2+-parseInt(_0x6d1c38(0x185))/0x3*(-parseInt(_0x6d1c38(0x17e))/0x4)+parseInt(_0x6d1c38(0x182))/0x5*(-parseInt(_0x6d1c38(0x17d))/0x6)+parseInt(_0x6d1c38(0x17c))/0x7+parseInt(_0x6d1c38(0x184))/0x8*(-parseInt(_0x6d1c38(0x17f))/0x9)+-parseInt(_0x6d1c38(0x180))/0xa*(parseInt(_0x6d1c38(0x181))/0xb);if(_0x12c664===_0x2f6748)break;else _0x299a1c['push'](_0x299a1c['shift']());}catch(_0x53a5fd){_0x299a1c['push'](_0x299a1c['shift']());}}}(a17_0x478b,0x8656a));import{jsx as a17_0x5c477d}from'react/jsx-runtime';import{render}from'ink';import{AuthServer}from'../auth/auth-server-ui.js';export const authCommand={'name':a17_0x83d4e5(0x183),'description':a17_0x83d4e5(0x188),async 'run'(_0x352fc,_0x53248e,_0x554ba6){render(a17_0x5c477d(AuthServer,{}));}};
@@ -1 +1 @@
1
- const a32_0x559555=a32_0x3780;(function(_0x54a356,_0x4aa017){const _0x2d7821=a32_0x3780,_0x5da6cb=_0x54a356();while(!![]){try{const _0x3abd9d=-parseInt(_0x2d7821(0xe4))/0x1*(-parseInt(_0x2d7821(0xf9))/0x2)+-parseInt(_0x2d7821(0xf8))/0x3*(parseInt(_0x2d7821(0xe7))/0x4)+-parseInt(_0x2d7821(0xee))/0x5*(parseInt(_0x2d7821(0xfa))/0x6)+-parseInt(_0x2d7821(0xf6))/0x7*(parseInt(_0x2d7821(0xf7))/0x8)+-parseInt(_0x2d7821(0xe8))/0x9+parseInt(_0x2d7821(0xe9))/0xa+parseInt(_0x2d7821(0xef))/0xb;if(_0x3abd9d===_0x4aa017)break;else _0x5da6cb['push'](_0x5da6cb['shift']());}catch(_0x448956){_0x5da6cb['push'](_0x5da6cb['shift']());}}}(a32_0x46d2,0x69346));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';function a32_0x46d2(){const _0x430e5e=['Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','trashDir','split','toISOString','length','find','bff','keys','projectRoot','No\x20lock\x20entry\x20found\x20for\x20\x22','string','Deleted\x20','31EhTcch','validation','trashedTo','60jIKDia','2111652dwDAYP','5509940dSIlgE','scriptsRoot','Function\x20not\x20found:\x20','target','Delete\x20a\x20BFF\x20script\x20from\x20remote\x20and\x20local','10CqMkkr','20362210WjNhcc','lastSync','scriptsWorkspaceRoot','str','delete','map','join','1135589GgOFSX','32MbFKBI','53394njnLTm','1832QhPEPo','2547228IeWvfY','functions','\x20(local\x20file\x20moved\x20to\x20trash)','appCode','includes','lockFilePath','filter','high-risk-write','scriptsRootDir'];a32_0x46d2=function(){return _0x430e5e;};return a32_0x46d2();}import{dirname,join,relative,resolve,sep}from'node:path';import{deleteBffScript}from'../../core/api-client.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a32_0x3780(_0x14ad89,_0x34b646){_0x14ad89=_0x14ad89-0xdf;const _0x46d2c5=a32_0x46d2();let _0x378092=_0x46d2c5[_0x14ad89];return _0x378092;}import{fileExists,resolveLocalFilePathFromLockKey}from'../../core/bff/file-system.js';import{ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';export const bffDelete={'service':a32_0x559555(0x109),'command':'delete','description':a32_0x559555(0xed),'risk':a32_0x559555(0x101),'flags':[{'name':'target','type':a32_0x559555(0xe2),'required':!![],'description':a32_0x559555(0x103)}],async 'validate'(_0x29ea59){const _0x39ea54=a32_0x559555,_0x4a0f61=loadBffProjectConfig(_0x29ea59[_0x39ea54(0xfd)]),_0x39e2d1=await readBffLockFile(_0x4a0f61[_0x39ea54(0xff)]);if(!_0x39e2d1)throw CliErrors[_0x39ea54(0xe5)]('BFF\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.');},async 'execute'(_0x306e69){const _0x2ce15c=a32_0x559555,_0x51fc02=loadBffProjectConfig(_0x306e69['appCode']),_0x577e54=await readBffLockFile(_0x51fc02[_0x2ce15c(0xff)]);if(!_0x577e54)throw CliErrors[_0x2ce15c(0xe5)]('BFF\x20lock\x20file\x20not\x20found.');const {lockData:_0x1c32fd,appLock:_0x1b7776}=ensureLockScope(_0x577e54,_0x51fc02[_0x2ce15c(0xfd)],_0x51fc02[_0x2ce15c(0xea)],_0x2ce15c(0xf3),_0x51fc02['appCode'],_0x51fc02[_0x2ce15c(0xf1)]+'/'+_0x51fc02[_0x2ce15c(0xfd)]),_0x1e5644=_0x306e69[_0x2ce15c(0xf2)](_0x2ce15c(0xec)),_0x528c0b=Object[_0x2ce15c(0xdf)](_0x1b7776[_0x2ce15c(0xfb)]),_0x3c423f=resolveDeleteTarget(_0x1e5644,_0x528c0b),_0x2a807b=_0x1b7776[_0x2ce15c(0xfb)][_0x3c423f];if(!_0x2a807b)throw CliErrors[_0x2ce15c(0xe5)](_0x2ce15c(0xe1)+_0x3c423f+'\x22.');await deleteBffScript(_0x2a807b['remoteId']),delete _0x1b7776['functions'][_0x3c423f],_0x1b7776[_0x2ce15c(0xf0)]=new Date()['toISOString'](),await writeBffLockFile(_0x51fc02[_0x2ce15c(0xff)],_0x1c32fd);const _0x3bae19=resolveLocalFilePathFromLockKey(_0x51fc02,_0x3c423f);let _0x3858ec;await fileExists(_0x3bae19)&&(_0x3858ec=await moveToTrash(_0x51fc02[_0x2ce15c(0xe0)],_0x51fc02[_0x2ce15c(0x104)],_0x3bae19),await cleanupEmptyDirectories(dirname(_0x3bae19),_0x51fc02[_0x2ce15c(0x102)]));const _0x18d66b={'deleted':_0x3c423f,'remoteId':_0x2a807b['remoteId']};if(_0x3858ec)_0x18d66b[_0x2ce15c(0xe6)]=_0x3858ec;return{'ok':!![],'data':_0x18d66b,'message':_0x2ce15c(0xe3)+_0x3c423f+(_0x3858ec?_0x2ce15c(0xfc):'')};}};function resolveDeleteTarget(_0x73f00c,_0x60b91e){const _0x4f0316=a32_0x559555;if(_0x73f00c[_0x4f0316(0xfe)]('/')){const _0x21bf15=_0x60b91e[_0x4f0316(0x108)](_0xfcc829=>_0xfcc829===_0x73f00c);if(!_0x21bf15)throw CliErrors['validation'](_0x4f0316(0xeb)+_0x73f00c);return _0x21bf15;}const _0x4feaf9=_0x60b91e[_0x4f0316(0x100)](_0xe8e89a=>_0xe8e89a[_0x4f0316(0x105)]('/')['at'](-0x1)===_0x73f00c);if(_0x4feaf9[_0x4f0316(0x107)]===0x0)throw CliErrors[_0x4f0316(0xe5)](_0x4f0316(0xeb)+_0x73f00c);if(_0x4feaf9[_0x4f0316(0x107)]>0x1)throw CliErrors['validation']('Multiple\x20functions\x20match\x20\x22'+_0x73f00c+'\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a'+_0x4feaf9[_0x4f0316(0xf4)](_0x3ffa51=>'\x20\x20-\x20'+_0x3ffa51)[_0x4f0316(0xf5)]('\x0a'));return _0x4feaf9[0x0];}async function moveToTrash(_0x22cd46,_0x81271f,_0x34d061){const _0x3ea179=a32_0x559555,_0x4378fb=new Date()[_0x3ea179(0x106)]()['replace'](/[:.]/g,'-'),_0x12caf3=relative(_0x22cd46,_0x34d061),_0x1f545d=join(_0x81271f,_0x4378fb,_0x12caf3);return await mkdir(dirname(_0x1f545d),{'recursive':!![]}),await rename(_0x34d061,_0x1f545d),_0x1f545d;}async function cleanupEmptyDirectories(_0xfebb4a,_0x466c76){const _0x3590cc=a32_0x559555;let _0x5dc5b8=resolve(_0xfebb4a);const _0x2037b9=resolve(_0x466c76);while(_0x5dc5b8['startsWith'](''+_0x2037b9+sep)||_0x5dc5b8===_0x2037b9){if(_0x5dc5b8===_0x2037b9)return;try{const _0x2cd56f=await readdir(_0x5dc5b8);if(_0x2cd56f[_0x3590cc(0x107)]>0x0)return;await rmdir(_0x5dc5b8);}catch{return;}_0x5dc5b8=dirname(_0x5dc5b8);}}
1
+ const a18_0x518e49=a18_0x31e9;(function(_0x4508cd,_0x31b768){const _0x4c21c4=a18_0x31e9,_0x1aa1ce=_0x4508cd();while(!![]){try{const _0x514541=-parseInt(_0x4c21c4(0x8d))/0x1*(-parseInt(_0x4c21c4(0x90))/0x2)+parseInt(_0x4c21c4(0x9d))/0x3*(parseInt(_0x4c21c4(0x74))/0x4)+-parseInt(_0x4c21c4(0x7c))/0x5*(parseInt(_0x4c21c4(0xa2))/0x6)+parseInt(_0x4c21c4(0x93))/0x7+parseInt(_0x4c21c4(0x7e))/0x8+-parseInt(_0x4c21c4(0x8e))/0x9*(-parseInt(_0x4c21c4(0x72))/0xa)+-parseInt(_0x4c21c4(0x7d))/0xb;if(_0x514541===_0x31b768)break;else _0x1aa1ce['push'](_0x1aa1ce['shift']());}catch(_0x1a2e6f){_0x1aa1ce['push'](_0x1aa1ce['shift']());}}}(a18_0x31ab,0xd1d33));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';function a18_0x31e9(_0x3bb983,_0x2b2376){_0x3bb983=_0x3bb983-0x72;const _0x31ab25=a18_0x31ab();let _0x31e9b5=_0x31ab25[_0x3bb983];return _0x31e9b5;}import{dirname,join,relative,resolve,sep}from'node:path';import{deleteBffScript}from'../../core/api-client.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists,resolveLocalFilePathFromLockKey}from'../../core/bff/file-system.js';import{ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';export const bffDelete={'service':a18_0x518e49(0x80),'command':a18_0x518e49(0x9e),'description':a18_0x518e49(0xa1),'risk':a18_0x518e49(0x84),'flags':[{'name':a18_0x518e49(0x91),'type':'string','required':!![],'description':a18_0x518e49(0x7f)}],async 'validate'(_0x1046ad){const _0x258bbd=a18_0x518e49,_0x1818a8=loadBffProjectConfig(_0x1046ad[_0x258bbd(0x8b)]),_0x4e22b7=await readBffLockFile(_0x1818a8[_0x258bbd(0x85)]);if(!_0x4e22b7)throw CliErrors[_0x258bbd(0x87)](_0x258bbd(0x7a));},async 'execute'(_0x578b17){const _0x1b7aed=a18_0x518e49,_0x428d42=loadBffProjectConfig(_0x578b17['appCode']),_0x5d1a47=await readBffLockFile(_0x428d42['lockFilePath']);if(!_0x5d1a47)throw CliErrors[_0x1b7aed(0x87)](_0x1b7aed(0x82));const {lockData:_0x513a1d,appLock:_0x1ce320}=ensureLockScope(_0x5d1a47,_0x428d42[_0x1b7aed(0x8b)],_0x428d42[_0x1b7aed(0x81)],_0x1b7aed(0x9e),_0x428d42['appCode'],_0x428d42[_0x1b7aed(0x8f)]+'/'+_0x428d42[_0x1b7aed(0x8b)]),_0xb8d8ac=_0x578b17[_0x1b7aed(0x73)](_0x1b7aed(0x91)),_0x3af728=Object[_0x1b7aed(0x9a)](_0x1ce320['functions']),_0x25dded=resolveDeleteTarget(_0xb8d8ac,_0x3af728),_0x48175b=_0x1ce320[_0x1b7aed(0x99)][_0x25dded];if(!_0x48175b)throw CliErrors['validation'](_0x1b7aed(0x78)+_0x25dded+'\x22.');await deleteBffScript(_0x48175b['remoteId']),delete _0x1ce320['functions'][_0x25dded],_0x1ce320[_0x1b7aed(0x77)]=new Date()[_0x1b7aed(0x86)](),await writeBffLockFile(_0x428d42[_0x1b7aed(0x85)],_0x513a1d);const _0x17abd9=resolveLocalFilePathFromLockKey(_0x428d42,_0x25dded);let _0x3c0731;await fileExists(_0x17abd9)&&(_0x3c0731=await moveToTrash(_0x428d42[_0x1b7aed(0x83)],_0x428d42[_0x1b7aed(0x88)],_0x17abd9),await cleanupEmptyDirectories(dirname(_0x17abd9),_0x428d42[_0x1b7aed(0x7b)]));const _0x18c787={'deleted':_0x25dded,'remoteId':_0x48175b[_0x1b7aed(0x79)]};if(_0x3c0731)_0x18c787[_0x1b7aed(0x9f)]=_0x3c0731;return{'ok':!![],'data':_0x18c787,'message':_0x1b7aed(0x9b)+_0x25dded+(_0x3c0731?_0x1b7aed(0x97):'')};}};function a18_0x31ab(){const _0xdb6507=['7205317ajsnsE','map','startsWith','replace','\x20(local\x20file\x20moved\x20to\x20trash)','includes','functions','keys','Deleted\x20','\x20\x20-\x20','3KehQXi','delete','trashedTo','Multiple\x20functions\x20match\x20\x22','Delete\x20a\x20BFF\x20script\x20from\x20remote\x20and\x20local','624858Acudir','10zmYCrl','str','3150556cQALWR','length','filter','lastSync','No\x20lock\x20entry\x20found\x20for\x20\x22','remoteId','BFF\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','scriptsRootDir','30onocTr','35732741Qgwizt','8559872PKUddB','Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','bff','scriptsRoot','BFF\x20lock\x20file\x20not\x20found.','projectRoot','high-risk-write','lockFilePath','toISOString','validation','trashDir','Function\x20not\x20found:\x20','\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a','appCode','find','1ERzBan','3576789FTYhEV','scriptsWorkspaceRoot','2896714WZIUPN','target','split'];a18_0x31ab=function(){return _0xdb6507;};return a18_0x31ab();}function resolveDeleteTarget(_0x4ad8f6,_0x2edae2){const _0x419223=a18_0x518e49;if(_0x4ad8f6[_0x419223(0x98)]('/')){const _0x289fb6=_0x2edae2[_0x419223(0x8c)](_0x252835=>_0x252835===_0x4ad8f6);if(!_0x289fb6)throw CliErrors[_0x419223(0x87)](_0x419223(0x89)+_0x4ad8f6);return _0x289fb6;}const _0x169088=_0x2edae2[_0x419223(0x76)](_0x4b7635=>_0x4b7635[_0x419223(0x92)]('/')['at'](-0x1)===_0x4ad8f6);if(_0x169088[_0x419223(0x75)]===0x0)throw CliErrors[_0x419223(0x87)]('Function\x20not\x20found:\x20'+_0x4ad8f6);if(_0x169088[_0x419223(0x75)]>0x1)throw CliErrors[_0x419223(0x87)](_0x419223(0xa0)+_0x4ad8f6+_0x419223(0x8a)+_0x169088[_0x419223(0x94)](_0x3d6ed1=>_0x419223(0x9c)+_0x3d6ed1)['join']('\x0a'));return _0x169088[0x0];}async function moveToTrash(_0x3a74fd,_0x3bc1b6,_0x566411){const _0x5c0e1e=a18_0x518e49,_0x3aee40=new Date()[_0x5c0e1e(0x86)]()[_0x5c0e1e(0x96)](/[:.]/g,'-'),_0x53de9d=relative(_0x3a74fd,_0x566411),_0x1a950d=join(_0x3bc1b6,_0x3aee40,_0x53de9d);return await mkdir(dirname(_0x1a950d),{'recursive':!![]}),await rename(_0x566411,_0x1a950d),_0x1a950d;}async function cleanupEmptyDirectories(_0x1e76bf,_0xf1a217){const _0x1ec7e5=a18_0x518e49;let _0x5528c9=resolve(_0x1e76bf);const _0x300150=resolve(_0xf1a217);while(_0x5528c9[_0x1ec7e5(0x95)](''+_0x300150+sep)||_0x5528c9===_0x300150){if(_0x5528c9===_0x300150)return;try{const _0x4ea413=await readdir(_0x5528c9);if(_0x4ea413[_0x1ec7e5(0x75)]>0x0)return;await rmdir(_0x5528c9);}catch{return;}_0x5528c9=dirname(_0x5528c9);}}
@@ -1 +1 @@
1
- const a33_0x343880=a33_0xcf70;function a33_0xcf70(_0x494391,_0x577ecf){_0x494391=_0x494391-0x18e;const _0x3157e3=a33_0x3157();let _0xcf70e1=_0x3157e3[_0x494391];return _0xcf70e1;}function a33_0x3157(){const _0x4a2303=['bool','181966ZdWjvb','3335740xxDkXU','updatedTime','scriptType','4nazTsj','263335UXGWLq','bff','Get\x20BFF\x20script\x20details\x20by\x20ID','number','(none)','Return\x20full\x20raw\x20script\x20object','detail','625839ebeHgo','12eLYZyS','43463aLbxYe','scriptContent','1634424nlLEHC','18AIgdHg','read','434350KMaRvF','appCode','num','Script\x20ID'];a33_0x3157=function(){return _0x4a2303;};return a33_0x3157();}(function(_0x5e16fe,_0x155350){const _0x1a161f=a33_0xcf70,_0x58c090=_0x5e16fe();while(!![]){try{const _0x247264=-parseInt(_0x1a161f(0x199))/0x1+-parseInt(_0x1a161f(0x194))/0x2+parseInt(_0x1a161f(0x1a5))/0x3*(parseInt(_0x1a161f(0x19d))/0x4)+-parseInt(_0x1a161f(0x19e))/0x5*(parseInt(_0x1a161f(0x18e))/0x6)+-parseInt(_0x1a161f(0x18f))/0x7+-parseInt(_0x1a161f(0x191))/0x8+-parseInt(_0x1a161f(0x192))/0x9*(-parseInt(_0x1a161f(0x19a))/0xa);if(_0x247264===_0x155350)break;else _0x58c090['push'](_0x58c090['shift']());}catch(_0x163c35){_0x58c090['push'](_0x58c090['shift']());}}}(a33_0x3157,0x27406));import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':a33_0x343880(0x19f),'command':a33_0x343880(0x1a4),'description':a33_0x343880(0x1a0),'risk':a33_0x343880(0x193),'flags':[{'name':'id','type':a33_0x343880(0x1a1),'required':!![],'description':a33_0x343880(0x197)},{'name':'verbose','type':'boolean','description':a33_0x343880(0x1a3)}],async 'execute'(_0x37c58a){const _0x4a02fb=a33_0x343880,_0x123c35=await getBffScriptInfo(_0x37c58a[_0x4a02fb(0x196)]('id')),_0x3bb81f=_0x37c58a[_0x4a02fb(0x198)]('verbose');if(_0x3bb81f)return{'ok':!![],'data':_0x123c35};return{'ok':!![],'data':{'id':_0x123c35['id'],'appCode':_0x123c35[_0x4a02fb(0x195)],'scriptType':_0x123c35[_0x4a02fb(0x19c)],'description':_0x123c35['description']||_0x4a02fb(0x1a2),'createdTime':_0x123c35['createdTime']??'','updatedTime':_0x123c35[_0x4a02fb(0x19b)]??'','scriptContent':_0x123c35[_0x4a02fb(0x190)]??''}};}};
1
+ const a19_0x81e92f=a19_0x5f5f;(function(_0x19461d,_0x5bd79a){const _0x2995fe=a19_0x5f5f,_0x6fe5b4=_0x19461d();while(!![]){try{const _0x1a6ce0=-parseInt(_0x2995fe(0x95))/0x1*(parseInt(_0x2995fe(0xa0))/0x2)+-parseInt(_0x2995fe(0x9a))/0x3+-parseInt(_0x2995fe(0xad))/0x4*(parseInt(_0x2995fe(0xab))/0x5)+-parseInt(_0x2995fe(0xaa))/0x6*(-parseInt(_0x2995fe(0xac))/0x7)+-parseInt(_0x2995fe(0x9d))/0x8*(parseInt(_0x2995fe(0xa5))/0x9)+parseInt(_0x2995fe(0xa2))/0xa+parseInt(_0x2995fe(0xae))/0xb*(parseInt(_0x2995fe(0x96))/0xc);if(_0x1a6ce0===_0x5bd79a)break;else _0x6fe5b4['push'](_0x6fe5b4['shift']());}catch(_0x36553e){_0x6fe5b4['push'](_0x6fe5b4['shift']());}}}(a19_0x4fed,0x41992));import{getBffScriptInfo}from'../../core/api-client.js';function a19_0x5f5f(_0x28eed7,_0x27a2b0){_0x28eed7=_0x28eed7-0x94;const _0x4fed24=a19_0x4fed();let _0x5f5f91=_0x4fed24[_0x28eed7];return _0x5f5f91;}function a19_0x4fed(){const _0x4a00fa=['Get\x20BFF\x20script\x20details\x20by\x20ID','1197MFLRDx','Script\x20ID','read','number','appCode','768ZGLNRd','5moRlQA','812ZQaajr','499036iQGnzU','16655617UyMFSS','updatedTime','28jsSrbS','12iGlNFb','num','scriptType','createdTime','1471689QVcOjY','detail','Return\x20full\x20raw\x20script\x20object','24896QkXBlj','scriptContent','bff','22390QqNvLd','bool','823730AXMVIb','boolean'];a19_0x4fed=function(){return _0x4a00fa;};return a19_0x4fed();}export const bffDetail={'service':a19_0x81e92f(0x9f),'command':a19_0x81e92f(0x9b),'description':a19_0x81e92f(0xa4),'risk':a19_0x81e92f(0xa7),'flags':[{'name':'id','type':a19_0x81e92f(0xa8),'required':!![],'description':a19_0x81e92f(0xa6)},{'name':'verbose','type':a19_0x81e92f(0xa3),'description':a19_0x81e92f(0x9c)}],async 'execute'(_0x164a35){const _0xc6daa4=a19_0x81e92f,_0x25632d=await getBffScriptInfo(_0x164a35[_0xc6daa4(0x97)]('id')),_0x48a398=_0x164a35[_0xc6daa4(0xa1)]('verbose');if(_0x48a398)return{'ok':!![],'data':_0x25632d};return{'ok':!![],'data':{'id':_0x25632d['id'],'appCode':_0x25632d[_0xc6daa4(0xa9)],'scriptType':_0x25632d[_0xc6daa4(0x98)],'description':_0x25632d['description']||'(none)','createdTime':_0x25632d[_0xc6daa4(0x99)]??'','updatedTime':_0x25632d[_0xc6daa4(0x94)]??'','scriptContent':_0x25632d[_0xc6daa4(0x9e)]??''}};}};
@@ -1 +1 @@
1
- (function(_0x4ec2ae,_0x389a9d){const _0x23853f=a34_0x30fa,_0x662cbf=_0x4ec2ae();while(!![]){try{const _0x498e26=parseInt(_0x23853f(0x17f))/0x1*(-parseInt(_0x23853f(0x17e))/0x2)+parseInt(_0x23853f(0x183))/0x3*(-parseInt(_0x23853f(0x17a))/0x4)+parseInt(_0x23853f(0x185))/0x5*(-parseInt(_0x23853f(0x180))/0x6)+parseInt(_0x23853f(0x181))/0x7*(parseInt(_0x23853f(0x17b))/0x8)+parseInt(_0x23853f(0x17d))/0x9*(parseInt(_0x23853f(0x182))/0xa)+-parseInt(_0x23853f(0x184))/0xb+parseInt(_0x23853f(0x17c))/0xc;if(_0x498e26===_0x389a9d)break;else _0x662cbf['push'](_0x662cbf['shift']());}catch(_0x562461){_0x662cbf['push'](_0x662cbf['shift']());}}}(a34_0x2c13,0x8d609));import{bffList}from'./list.js';function a34_0x30fa(_0x180d23,_0x1c7706){_0x180d23=_0x180d23-0x17a;const _0x2c1323=a34_0x2c13();let _0x30fa51=_0x2c1323[_0x180d23];return _0x30fa51;}import{bffDetail}from'./detail.js';import{bffStatus}from'./status.js';import{bffNew}from'./new.js';import{bffPush}from'./push.js';import{bffPull}from'./pull.js';import{bffDelete}from'./delete.js';function a34_0x2c13(){const _0x3adcac=['92SUVIxb','1144YggXuN','21405468adTaZE','18ZxsZTS','107452OljAZk','18ymOCmv','17490vmjIWd','53011lSlTXl','267730ZTWUBU','125766nlwgCc','3002054eDJMZk','235DTLBfo'];a34_0x2c13=function(){return _0x3adcac;};return a34_0x2c13();}export const bffDefinitions=[bffList,bffDetail,bffStatus,bffNew,bffPush,bffPull,bffDelete];
1
+ (function(_0x117561,_0x27047a){const _0x52f561=a20_0xaabe,_0x3ba80c=_0x117561();while(!![]){try{const _0x5c8491=-parseInt(_0x52f561(0xfb))/0x1+-parseInt(_0x52f561(0xfc))/0x2+-parseInt(_0x52f561(0x100))/0x3+-parseInt(_0x52f561(0x101))/0x4+parseInt(_0x52f561(0xfe))/0x5*(parseInt(_0x52f561(0xff))/0x6)+parseInt(_0x52f561(0x102))/0x7*(parseInt(_0x52f561(0xfa))/0x8)+parseInt(_0x52f561(0xfd))/0x9*(parseInt(_0x52f561(0x103))/0xa);if(_0x5c8491===_0x27047a)break;else _0x3ba80c['push'](_0x3ba80c['shift']());}catch(_0x35ee39){_0x3ba80c['push'](_0x3ba80c['shift']());}}}(a20_0x51e5,0x29352));import{bffList}from'./list.js';import{bffDetail}from'./detail.js';import{bffStatus}from'./status.js';import{bffNew}from'./new.js';import{bffPush}from'./push.js';function a20_0xaabe(_0x426e37,_0x4521f5){_0x426e37=_0x426e37-0xfa;const _0x51e504=a20_0x51e5();let _0xaabef1=_0x51e504[_0x426e37];return _0xaabef1;}function a20_0x51e5(){const _0x20c4bc=['5682060mDlvaG','3575ZRBLsA','1032kHBweS','113385DoZgjK','980076eeeUVH','112Pvheqh','10WePMKp','22592iulExT','93580ntSPcA','508648akBNrj'];a20_0x51e5=function(){return _0x20c4bc;};return a20_0x51e5();}import{bffPull}from'./pull.js';import{bffDelete}from'./delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffNew,bffPush,bffPull,bffDelete];
@@ -1 +1 @@
1
- function a35_0x260f(_0x2f6516,_0x2afd49){_0x2f6516=_0x2f6516-0x14e;const _0x3dfb9f=a35_0x3dfb();let _0x260fae=_0x3dfb9f[_0x2f6516];return _0x260fae;}const a35_0xbe2acd=a35_0x260f;function a35_0x3dfb(){const _0x49427c=['5890476rqRZvG','Return\x20full\x20script\x20objects','Script\x20type\x20filter','functionName','scriptType','bool','name','description','858609bWbCzw','length','No\x20BFF\x20scripts\x20found.','appCode','(unnamed)','map','string','type','14lwQQql','2620432zYPorT','2368800xRkfjI','199857qrPKPK','9ewjfnO','str','ENDPOINT','verbose','448147mpjEeN','list','COMMON','1078755VYRwRJ'];a35_0x3dfb=function(){return _0x49427c;};return a35_0x3dfb();}(function(_0x390d0f,_0x1f88f1){const _0x45b660=a35_0x260f,_0x5cb359=_0x390d0f();while(!![]){try{const _0x74a4b3=parseInt(_0x45b660(0x151))/0x1+parseInt(_0x45b660(0x159))/0x2*(-parseInt(_0x45b660(0x15c))/0x3)+parseInt(_0x45b660(0x15b))/0x4+parseInt(_0x45b660(0x164))/0x5+-parseInt(_0x45b660(0x165))/0x6+parseInt(_0x45b660(0x161))/0x7+-parseInt(_0x45b660(0x15a))/0x8*(-parseInt(_0x45b660(0x15d))/0x9);if(_0x74a4b3===_0x1f88f1)break;else _0x5cb359['push'](_0x5cb359['shift']());}catch(_0x3f3eb0){_0x5cb359['push'](_0x5cb359['shift']());}}}(a35_0x3dfb,0x94f08));import{listBffScripts}from'../../core/api-client.js';export const bffList={'service':'bff','command':a35_0xbe2acd(0x162),'description':'List\x20BFF\x20scripts','risk':'read','flags':[{'name':a35_0xbe2acd(0x158),'type':a35_0xbe2acd(0x157),'description':a35_0xbe2acd(0x167),'default':'ENDPOINT','enum':[a35_0xbe2acd(0x15f),a35_0xbe2acd(0x163)]},{'name':a35_0xbe2acd(0x14f),'type':a35_0xbe2acd(0x157),'description':'Filter\x20by\x20script\x20name'},{'name':a35_0xbe2acd(0x160),'type':'boolean','description':a35_0xbe2acd(0x166)}],async 'execute'(_0x11854b){const _0x28dace=a35_0xbe2acd,_0x468660=await listBffScripts(_0x11854b[_0x28dace(0x154)],_0x11854b[_0x28dace(0x15e)]('type'),{'scriptName':_0x11854b[_0x28dace(0x15e)]('name')||undefined}),_0x4729ca=_0x11854b[_0x28dace(0x14e)](_0x28dace(0x160));return{'ok':!![],'data':_0x4729ca?_0x468660:_0x468660[_0x28dace(0x156)](_0x445955=>({'id':_0x445955['id'],'functionName':_0x445955[_0x28dace(0x168)]??'','description':_0x445955[_0x28dace(0x150)]||_0x28dace(0x155),'scriptType':_0x445955[_0x28dace(0x169)]})),'message':_0x468660[_0x28dace(0x152)]===0x0?_0x28dace(0x153):undefined};}};
1
+ const a21_0x1fdc0e=a21_0xe062;(function(_0x397678,_0x25a5be){const _0x311763=a21_0xe062,_0x346816=_0x397678();while(!![]){try{const _0x465dc7=-parseInt(_0x311763(0x204))/0x1*(parseInt(_0x311763(0x1f0))/0x2)+-parseInt(_0x311763(0x201))/0x3*(-parseInt(_0x311763(0x1fa))/0x4)+parseInt(_0x311763(0x1f8))/0x5+-parseInt(_0x311763(0x1fb))/0x6+parseInt(_0x311763(0x208))/0x7+-parseInt(_0x311763(0x1ef))/0x8+-parseInt(_0x311763(0x206))/0x9*(-parseInt(_0x311763(0x1f2))/0xa);if(_0x465dc7===_0x25a5be)break;else _0x346816['push'](_0x346816['shift']());}catch(_0x2584c7){_0x346816['push'](_0x346816['shift']());}}}(a21_0x2344,0x96368));function a21_0x2344(){const _0x43bbd3=['appCode','bool','verbose','COMMON','Return\x20full\x20script\x20objects','4727675myOWJb','type','4iBdoLx','4382160CBPjPM','length','string','scriptType','ENDPOINT','read','1803792hWqogM','name','bff','12ppedWF','functionName','1575549ACFWuy','str','3418660VUmFQF','Script\x20type\x20filter','1615536lVfHFG','168798wmFfxU','list','30TqOvLs'];a21_0x2344=function(){return _0x43bbd3;};return a21_0x2344();}function a21_0xe062(_0x5a4997,_0x3520f9){_0x5a4997=_0x5a4997-0x1ee;const _0x2344c6=a21_0x2344();let _0xe062a=_0x2344c6[_0x5a4997];return _0xe062a;}import{listBffScripts}from'../../core/api-client.js';export const bffList={'service':a21_0x1fdc0e(0x203),'command':a21_0x1fdc0e(0x1f1),'description':'List\x20BFF\x20scripts','risk':a21_0x1fdc0e(0x200),'flags':[{'name':a21_0x1fdc0e(0x1f9),'type':a21_0x1fdc0e(0x1fd),'description':a21_0x1fdc0e(0x1ee),'default':a21_0x1fdc0e(0x1ff),'enum':[a21_0x1fdc0e(0x1ff),a21_0x1fdc0e(0x1f6)]},{'name':'name','type':'string','description':'Filter\x20by\x20script\x20name'},{'name':a21_0x1fdc0e(0x1f5),'type':'boolean','description':a21_0x1fdc0e(0x1f7)}],async 'execute'(_0xe825c4){const _0x5774e8=a21_0x1fdc0e,_0x51b428=await listBffScripts(_0xe825c4[_0x5774e8(0x1f3)],_0xe825c4[_0x5774e8(0x207)](_0x5774e8(0x1f9)),{'scriptName':_0xe825c4[_0x5774e8(0x207)](_0x5774e8(0x202))||undefined}),_0x3bb9a5=_0xe825c4[_0x5774e8(0x1f4)]('verbose');return{'ok':!![],'data':_0x3bb9a5?_0x51b428:_0x51b428['map'](_0x4dce02=>({'id':_0x4dce02['id'],'functionName':_0x4dce02[_0x5774e8(0x205)]??'','description':_0x4dce02['description']||'(unnamed)','scriptType':_0x4dce02[_0x5774e8(0x1fe)]})),'message':_0x51b428[_0x5774e8(0x1fc)]===0x0?'No\x20BFF\x20scripts\x20found.':undefined};}};