@lovrabet/rabetbase-cli 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/constant/paths.js +1 -1
  91. package/lib/context.js +1 -1
  92. package/lib/core/alias-resolver.js +1 -1
  93. package/lib/core/api-client.js +1 -1
  94. package/lib/core/bff/config.js +1 -1
  95. package/lib/core/bff/file-system.js +1 -1
  96. package/lib/core/bff/hash.js +1 -1
  97. package/lib/core/bff/lock.js +1 -1
  98. package/lib/core/bff/utils.js +1 -1
  99. package/lib/core/db-resolver.js +1 -1
  100. package/lib/core/sql-validator.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/build-all-flags.js +1 -1
  103. package/lib/framework/flags.js +1 -1
  104. package/lib/framework/help.js +1 -1
  105. package/lib/framework/index.js +1 -1
  106. package/lib/framework/output.js +1 -1
  107. package/lib/framework/response.js +1 -1
  108. package/lib/framework/runner.js +1 -1
  109. package/lib/framework/schema-export.js +1 -1
  110. package/lib/framework/types.js +1 -1
  111. package/lib/generated/build-info.js +1 -1
  112. package/lib/help.js +1 -1
  113. package/lib/skills/main.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/telemetry/cli-command-trace.js +1 -1
  116. package/lib/telemetry/cli-help-trace.js +1 -1
  117. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  118. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  119. package/lib/telemetry/send-cli-trace-log.js +1 -1
  120. package/lib/utils/ai_config.js +1 -1
  121. package/lib/utils/apply-jq-filter.js +1 -1
  122. package/lib/utils/cdn-config.js +1 -1
  123. package/lib/utils/check-sdk-version.js +1 -1
  124. package/lib/utils/cli-version-check.js +1 -1
  125. package/lib/utils/config.js +1 -1
  126. package/lib/utils/copy-directory.js +1 -1
  127. package/lib/utils/file-utils.js +1 -1
  128. package/lib/utils/guides-cdn.js +1 -1
  129. package/lib/utils/http-client.js +1 -1
  130. package/lib/utils/is-non-interactive.js +1 -1
  131. package/lib/utils/logger.js +1 -1
  132. package/lib/utils/platform.js +1 -1
  133. package/lib/utils/rules-cdn.js +1 -1
  134. package/lib/utils/sleep.js +1 -1
  135. package/lib/utils/template-replacer.js +1 -1
  136. package/lib/utils/version.js +1 -1
  137. package/lib/utils/with-active-cookie.js +1 -1
  138. package/package.json +1 -1
@@ -1 +1 @@
1
- const a0_0x43b32c=a0_0x1c32;(function(_0x1397a8,_0x1203ef){const _0x3ebe03=a0_0x1c32,_0x2a9992=_0x1397a8();while(!![]){try{const _0x1b9d03=parseInt(_0x3ebe03(0xf7))/0x1*(-parseInt(_0x3ebe03(0xf9))/0x2)+parseInt(_0x3ebe03(0xf2))/0x3*(-parseInt(_0x3ebe03(0x106))/0x4)+parseInt(_0x3ebe03(0xe9))/0x5*(-parseInt(_0x3ebe03(0xef))/0x6)+parseInt(_0x3ebe03(0x104))/0x7+parseInt(_0x3ebe03(0xf5))/0x8+-parseInt(_0x3ebe03(0x109))/0x9+-parseInt(_0x3ebe03(0xfc))/0xa*(-parseInt(_0x3ebe03(0x102))/0xb);if(_0x1b9d03===_0x1203ef)break;else _0x2a9992['push'](_0x2a9992['shift']());}catch(_0x409fd8){_0x2a9992['push'](_0x2a9992['shift']());}}}(a0_0x5a89,0x97811));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x36f9e3 from'node:path';function a0_0x5a89(){const _0x252021=['327TUNhic','error','message','3152520RIZZUX','Waiting\x203\x20seconds...\x0a','1987yraWEd','datasetCode','446HRcYfM','string','✓\x20Generated:\x20','30ChiCtU','✗\x20Failed:\x20','Fetch\x20doc\x20(','./docs','.md\x20-\x20','join','7532503gXQRJx','api-doc','8073114reZrAZ','生成文档失败:\x20','10604UWXnbx','log','push','10213650wOEEQx','tableName','markdown','/api/node-toolbox/api-doc-generator','生成文档成功:\x20','success','31475rihkKu','.md','name','length','Invalid\x20response\x20format\x20(','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','1062ZZPyyO','utf8','):\x20missing\x20data.markdown\x20field'];a0_0x5a89=function(){return _0x252021;};return a0_0x5a89();}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a0_0x1c32(_0x2f15a3,_0x465f85){_0x2f15a3=_0x2f15a3-0xe7;const _0x5a898f=a0_0x5a89();let _0x1c321c=_0x5a898f[_0x2f15a3];return _0x1c321c;}import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x1cab6c){const _0x54c16e=a0_0x1c32,{appCode:_0x59c659,cookie:_0x5dc8c2,datasetCode:_0x3ec003,datasetId:_0x5b4053,extraParams:_0x737de7}=_0x1cab6c,_0x64c0aa=getApiDomain()+_0x54c16e(0x10c),_0x4326c9=await platformFetch(_0x64c0aa,{'method':'POST','body':{'appCode':_0x59c659,'datasetCode':_0x3ec003,'datasetId':_0x5b4053,..._0x737de7||{}},'cookie':_0x5dc8c2,'label':_0x54c16e(0xfe)+_0x3ec003+')'});if(!_0x4326c9||typeof _0x4326c9[_0x54c16e(0x10b)]!==_0x54c16e(0xfa))throw new Error(_0x54c16e(0xed)+_0x3ec003+_0x54c16e(0xf1));return _0x4326c9[_0x54c16e(0x10b)];}function delay(_0x2703e8){return new Promise(_0x4c1d17=>setTimeout(_0x4c1d17,_0x2703e8));}export async function generateDatasetDocs(_0x38bf2b,_0x2b6ae1,_0x301a3b,_0x3b6ea8=a0_0x43b32c(0xff),_0x3d27e6,_0x3df70f){const _0x4629d2=a0_0x43b32c;mkdirSync(_0x3b6ea8,{'recursive':!![]});const _0x1e0b1f=[],_0x7ba5ac=_0x38bf2b[_0x4629d2(0xec)];console['log']('\x0a'+_0x7ba5ac+_0x4629d2(0xee));for(let _0x19e6e2=0x0;_0x19e6e2<_0x38bf2b[_0x4629d2(0xec)];_0x19e6e2++){const _0x311686=_0x38bf2b[_0x19e6e2],_0x532c7d=_0x19e6e2+0x1,_0x4035dc=_0x311686[_0x4629d2(0x10a)];try{console[_0x4629d2(0x107)]('['+_0x532c7d+'/'+_0x7ba5ac+']\x20Generating:\x20'+_0x4035dc+'.md\x20('+_0x311686['name']+')');if(_0x3d27e6)_0x3d27e6(_0x532c7d,_0x7ba5ac,_0x4035dc);const _0x15dc4a=await fetchDatasetDoc({'appCode':_0x2b6ae1,'cookie':_0x301a3b,'datasetCode':_0x311686[_0x4629d2(0xf8)],'datasetId':_0x311686['id'],'enableAI':![],'extraParams':_0x3df70f}),_0x488104=a0_0x36f9e3[_0x4629d2(0x101)](_0x3b6ea8,_0x4035dc+_0x4629d2(0xea));writeFileSync(_0x488104,_0x15dc4a,{'encoding':_0x4629d2(0xf0)}),console[_0x4629d2(0x107)](_0x4629d2(0xfb)+_0x4035dc+_0x4629d2(0xea)),logger[_0x4629d2(0xe8)](_0x4629d2(0x103),_0x4629d2(0xe7)+_0x4035dc,undefined,{'datasetCode':_0x311686['datasetCode'],'datasetName':_0x311686[_0x4629d2(0xeb)],'filePath':_0x488104,'progress':_0x532c7d+'/'+_0x7ba5ac}),_0x1e0b1f[_0x4629d2(0x108)]({'datasetCode':_0x311686['datasetCode'],'datasetName':_0x311686[_0x4629d2(0xeb)],'filePath':_0x488104,'success':!![]});if(_0x532c7d<_0x7ba5ac)await delay(0x1388);}catch(_0xd3fd26){const _0x435b81=_0xd3fd26 instanceof Error?_0xd3fd26[_0x4629d2(0xf4)]:String(_0xd3fd26);console[_0x4629d2(0x107)](_0x4629d2(0xfd)+_0x4035dc+_0x4629d2(0x100)+_0x435b81),logger[_0x4629d2(0xf3)]('api-doc',_0x4629d2(0x105)+_0x311686['datasetCode'],{'datasetCode':_0x311686[_0x4629d2(0xf8)],'datasetName':_0x311686[_0x4629d2(0xeb)],'error':_0x435b81,'progress':_0x532c7d+'/'+_0x7ba5ac}),_0x1e0b1f[_0x4629d2(0x108)]({'datasetCode':_0x311686[_0x4629d2(0xf8)],'datasetName':_0x311686[_0x4629d2(0xeb)],'filePath':'','success':![],'error':_0x435b81}),_0x532c7d<_0x7ba5ac&&(console['log'](_0x4629d2(0xf6)),await delay(0xbb8));}}return _0x1e0b1f;}
1
+ const a0_0x5c3e26=a0_0x2fd3;(function(_0x149069,_0x4f2b02){const _0x56654d=a0_0x2fd3,_0x309f83=_0x149069();while(!![]){try{const _0x51f3b1=-parseInt(_0x56654d(0x15b))/0x1+parseInt(_0x56654d(0x160))/0x2*(parseInt(_0x56654d(0x15c))/0x3)+parseInt(_0x56654d(0x168))/0x4+-parseInt(_0x56654d(0x157))/0x5+parseInt(_0x56654d(0x163))/0x6*(-parseInt(_0x56654d(0x172))/0x7)+-parseInt(_0x56654d(0x159))/0x8+-parseInt(_0x56654d(0x16e))/0x9*(-parseInt(_0x56654d(0x152))/0xa);if(_0x51f3b1===_0x4f2b02)break;else _0x309f83['push'](_0x309f83['shift']());}catch(_0x1fa3d8){_0x309f83['push'](_0x309f83['shift']());}}}(a0_0x37d6,0x45fea));import{mkdirSync,writeFileSync}from'node:fs';function a0_0x2fd3(_0x5b12fe,_0x10d5cd){_0x5b12fe=_0x5b12fe-0x151;const _0x37d638=a0_0x37d6();let _0x2fd3e1=_0x37d638[_0x5b12fe];return _0x2fd3e1;}function a0_0x37d6(){const _0x16463c=[']\x20Generating:\x20','✓\x20Generated:\x20','511LQlrPE','length','生成文档失败:\x20','10ePUMWQ','tableName','markdown','utf8','Invalid\x20response\x20format\x20(','1354290lzyTpv','.md\x20-\x20','4254688rjLnWS','Waiting\x203\x20seconds...\x0a','121299ohenJX','122022XuhHht','Fetch\x20doc\x20(','生成文档成功:\x20','.md','22rUswbW','success','/api/node-toolbox/api-doc-generator','44952BtKMao','name','push','log','✗\x20Failed:\x20','16160uCDfFF','.md\x20(','datasetCode','string','api-doc','./docs','11755377oLnbWO','):\x20missing\x20data.markdown\x20field'];a0_0x37d6=function(){return _0x16463c;};return a0_0x37d6();}import a0_0x2af9b1 from'node:path';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x11cbe0){const _0x1e7f25=a0_0x2fd3,{appCode:_0x340afb,cookie:_0x3ccd4d,datasetCode:_0x4c255e,datasetId:_0x2ced4b,extraParams:_0x5d4295}=_0x11cbe0,_0x1e14a1=getApiDomain()+_0x1e7f25(0x162),_0x86bff4=await platformFetch(_0x1e14a1,{'method':'POST','body':{'appCode':_0x340afb,'datasetCode':_0x4c255e,'datasetId':_0x2ced4b,..._0x5d4295||{}},'cookie':_0x3ccd4d,'label':_0x1e7f25(0x15d)+_0x4c255e+')'});if(!_0x86bff4||typeof _0x86bff4[_0x1e7f25(0x154)]!==_0x1e7f25(0x16b))throw new Error(_0x1e7f25(0x156)+_0x4c255e+_0x1e7f25(0x16f));return _0x86bff4[_0x1e7f25(0x154)];}function delay(_0x308a6a){return new Promise(_0x4f9d60=>setTimeout(_0x4f9d60,_0x308a6a));}export async function generateDatasetDocs(_0x2e4598,_0x42dcbb,_0xd47cf1,_0x239d25=a0_0x5c3e26(0x16d),_0xb70c47,_0x3754f2){const _0x4399a7=a0_0x5c3e26;mkdirSync(_0x239d25,{'recursive':!![]});const _0x13417c=[],_0x3f8bf4=_0x2e4598[_0x4399a7(0x173)];console['log']('\x0a'+_0x3f8bf4+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x16bfc0=0x0;_0x16bfc0<_0x2e4598[_0x4399a7(0x173)];_0x16bfc0++){const _0x59a03a=_0x2e4598[_0x16bfc0],_0x17486a=_0x16bfc0+0x1,_0x47e0ac=_0x59a03a[_0x4399a7(0x153)];try{console[_0x4399a7(0x166)]('['+_0x17486a+'/'+_0x3f8bf4+_0x4399a7(0x170)+_0x47e0ac+_0x4399a7(0x169)+_0x59a03a[_0x4399a7(0x164)]+')');if(_0xb70c47)_0xb70c47(_0x17486a,_0x3f8bf4,_0x47e0ac);const _0x4607ed=await fetchDatasetDoc({'appCode':_0x42dcbb,'cookie':_0xd47cf1,'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetId':_0x59a03a['id'],'enableAI':![],'extraParams':_0x3754f2}),_0x470453=a0_0x2af9b1['join'](_0x239d25,_0x47e0ac+_0x4399a7(0x15f));writeFileSync(_0x470453,_0x4607ed,{'encoding':_0x4399a7(0x155)}),console[_0x4399a7(0x166)](_0x4399a7(0x171)+_0x47e0ac+'.md'),logger[_0x4399a7(0x161)](_0x4399a7(0x16c),_0x4399a7(0x15e)+_0x47e0ac,undefined,{'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetName':_0x59a03a[_0x4399a7(0x164)],'filePath':_0x470453,'progress':_0x17486a+'/'+_0x3f8bf4}),_0x13417c[_0x4399a7(0x165)]({'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetName':_0x59a03a['name'],'filePath':_0x470453,'success':!![]});if(_0x17486a<_0x3f8bf4)await delay(0x1388);}catch(_0x22db03){const _0xee0d0b=_0x22db03 instanceof Error?_0x22db03['message']:String(_0x22db03);console[_0x4399a7(0x166)](_0x4399a7(0x167)+_0x47e0ac+_0x4399a7(0x158)+_0xee0d0b),logger['error'](_0x4399a7(0x16c),_0x4399a7(0x151)+_0x59a03a['datasetCode'],{'datasetCode':_0x59a03a['datasetCode'],'datasetName':_0x59a03a[_0x4399a7(0x164)],'error':_0xee0d0b,'progress':_0x17486a+'/'+_0x3f8bf4}),_0x13417c[_0x4399a7(0x165)]({'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetName':_0x59a03a['name'],'filePath':'','success':![],'error':_0xee0d0b}),_0x17486a<_0x3f8bf4&&(console[_0x4399a7(0x166)](_0x4399a7(0x15a)),await delay(0xbb8));}}return _0x13417c;}
@@ -1 +1 @@
1
- (function(_0x4caf64,_0x4193ff){const _0x238d36=a1_0x1770,_0x2f01ee=_0x4caf64();while(!![]){try{const _0x1e956e=-parseInt(_0x238d36(0xc2))/0x1+-parseInt(_0x238d36(0xbb))/0x2+parseInt(_0x238d36(0xc3))/0x3*(-parseInt(_0x238d36(0xc4))/0x4)+parseInt(_0x238d36(0xb8))/0x5*(-parseInt(_0x238d36(0xbe))/0x6)+-parseInt(_0x238d36(0xc8))/0x7*(parseInt(_0x238d36(0xc9))/0x8)+parseInt(_0x238d36(0xb6))/0x9*(-parseInt(_0x238d36(0xc6))/0xa)+parseInt(_0x238d36(0xbc))/0xb*(parseInt(_0x238d36(0xc7))/0xc);if(_0x1e956e===_0x4193ff)break;else _0x2f01ee['push'](_0x2f01ee['shift']());}catch(_0x537d28){_0x2f01ee['push'](_0x2f01ee['shift']());}}}(a1_0x5865,0x89d81));import{getApiDomain}from'../constant/domain.js';function a1_0x1770(_0x3cb89e,_0x2ab538){_0x3cb89e=_0x3cb89e-0xb6;const _0x58654e=a1_0x5865();let _0x17705b=_0x58654e[_0x3cb89e];return _0x17705b;}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x5865(){const _0x20aa98=['94179kZRkyU','44qWjHDp','Fetch\x20datasets','150340uTMMAV','2865036uyAugQ','5661397aXjKNB','8GdHEbh','198hQjMFI','info','31230KYokmZ','&otype=array','fetch-model-list','1030084UnYGFi','176cPmOzV','name','1014eoEZFs','map','trim','/api/node-toolbox/dataset/model-list?appcode=','199981qupIla'];a1_0x5865=function(){return _0x20aa98;};return a1_0x5865();}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x178ed0){const _0x1c00c8=a1_0x1770;return _0x178ed0['replace'](/[\r\n]+/g,'\x20')[_0x1c00c8(0xc0)]();}function cleanDatasetName(_0x524312){const _0x4914f3=a1_0x1770;if(!_0x524312[_0x4914f3(0xbd)])return _0x524312;return{..._0x524312,'name':cleanNewlines(_0x524312[_0x4914f3(0xbd)])};}export async function fetchModelList(_0x41a499,_0x4c822b){const _0x3e0cd2=a1_0x1770,_0x2ae1bd=getEnv(),_0x5bad27=getApiDomain()+_0x3e0cd2(0xc1)+_0x41a499+_0x3e0cd2(0xb9);logger[_0x3e0cd2(0xb7)](_0x3e0cd2(0xba),'正在从服务器拉取模型列表...\x20(环境:\x20'+_0x2ae1bd+')',{'apiUrl':_0x5bad27});const _0x2968e1=await platformFetch(_0x5bad27,{'cookie':_0x4c822b,'label':_0x3e0cd2(0xc5)}),_0x4ec3c1=(_0x2968e1['configArray']??[])[_0x3e0cd2(0xbf)](cleanDatasetName);return{'configArray':_0x4ec3c1,'count':_0x4ec3c1['length']};}
1
+ (function(_0x53271b,_0x3a26d3){const _0x1aabdc=a1_0x5634,_0x1194bc=_0x53271b();while(!![]){try{const _0x3793c4=-parseInt(_0x1aabdc(0x105))/0x1+-parseInt(_0x1aabdc(0xfd))/0x2*(-parseInt(_0x1aabdc(0xfa))/0x3)+parseInt(_0x1aabdc(0x100))/0x4+parseInt(_0x1aabdc(0x108))/0x5*(-parseInt(_0x1aabdc(0x101))/0x6)+-parseInt(_0x1aabdc(0x109))/0x7+parseInt(_0x1aabdc(0xfe))/0x8*(-parseInt(_0x1aabdc(0xfb))/0x9)+parseInt(_0x1aabdc(0x103))/0xa*(parseInt(_0x1aabdc(0x107))/0xb);if(_0x3793c4===_0x3a26d3)break;else _0x1194bc['push'](_0x1194bc['shift']());}catch(_0x51f4b9){_0x1194bc['push'](_0x1194bc['shift']());}}}(a1_0x36e0,0x3ce9f));import{getApiDomain}from'../constant/domain.js';function a1_0x5634(_0x5c910c,_0x29a8f7){_0x5c910c=_0x5c910c-0xf6;const _0x36e0b2=a1_0x36e0();let _0x563450=_0x36e0b2[_0x5c910c];return _0x563450;}function a1_0x36e0(){const _0x390ce0=['/api/node-toolbox/dataset/model-list?appcode=','map','info','453Waairk','45vGLoYY','trim','766VSwpwz','709928eULJrf','正在从服务器拉取模型列表...\x20(环境:\x20','1032940sgpcAW','2046EDtACB','name','13898110bCwNTV','length','300129WOZpNU','&otype=array','11TFqQjw','4870wkzzyT','2662856wvNWVC','Fetch\x20datasets'];a1_0x36e0=function(){return _0x390ce0;};return a1_0x36e0();}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x27ee3a){const _0x2c9584=a1_0x5634;return _0x27ee3a['replace'](/[\r\n]+/g,'\x20')[_0x2c9584(0xfc)]();}function cleanDatasetName(_0x475717){const _0x238daf=a1_0x5634;if(!_0x475717[_0x238daf(0x102)])return _0x475717;return{..._0x475717,'name':cleanNewlines(_0x475717['name'])};}export async function fetchModelList(_0x435ecb,_0x1f0352){const _0x4e6ac9=a1_0x5634,_0x2283ab=getEnv(),_0x33c2c3=getApiDomain()+_0x4e6ac9(0xf7)+_0x435ecb+_0x4e6ac9(0x106);logger[_0x4e6ac9(0xf9)]('fetch-model-list',_0x4e6ac9(0xff)+_0x2283ab+')',{'apiUrl':_0x33c2c3});const _0x43ba36=await platformFetch(_0x33c2c3,{'cookie':_0x1f0352,'label':_0x4e6ac9(0xf6)}),_0x8693d=(_0x43ba36['configArray']??[])[_0x4e6ac9(0xf8)](cleanDatasetName);return{'configArray':_0x8693d,'count':_0x8693d[_0x4e6ac9(0x104)]};}
@@ -1 +1 @@
1
- (function(_0x36cafb,_0x503350){const _0x38ebe6=a2_0x13d5,_0x180c10=_0x36cafb();while(!![]){try{const _0x5eea3b=parseInt(_0x38ebe6(0x1f5))/0x1*(-parseInt(_0x38ebe6(0x1f7))/0x2)+parseInt(_0x38ebe6(0x1fb))/0x3+parseInt(_0x38ebe6(0x1e0))/0x4*(parseInt(_0x38ebe6(0x1dc))/0x5)+parseInt(_0x38ebe6(0x1fa))/0x6+-parseInt(_0x38ebe6(0x1f6))/0x7*(parseInt(_0x38ebe6(0x1ed))/0x8)+parseInt(_0x38ebe6(0x1f9))/0x9*(-parseInt(_0x38ebe6(0x1ee))/0xa)+parseInt(_0x38ebe6(0x1f1))/0xb*(parseInt(_0x38ebe6(0x1f8))/0xc);if(_0x5eea3b===_0x503350)break;else _0x180c10['push'](_0x180c10['shift']());}catch(_0x158586){_0x180c10['push'](_0x180c10['shift']());}}}(a2_0x5345,0x43c00));import a2_0x482dca from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x1aa51d from'node:path';function a2_0x13d5(_0x3bdf26,_0x14ae8d){_0x3bdf26=_0x3bdf26-0x1d9;const _0x5345be=a2_0x5345();let _0x13d509=_0x5345be[_0x3bdf26];return _0x13d509;}import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a2_0x5345(){const _0x213f25=['format','Please\x20configure\x20app\x20code\x20first\x20via\x20`','2845doDnSN','client','../..','utf8','1144BlGjkr','alias','init-api','\x20config\x20set\x20app\x20<value>`','API\x20文件生成成功!','.ts','resolve','test','key','tableName','\x22\x20}','client.ts.tpl','join','2924696xxKNvp','2690TQyjhX','replaceApiContent','{\x20apiConfigName:\x20\x22','1181367kJaQml','{\x20apiConfigName:\x20','toUpperCase','forEach','122131XLmeLu','7kDrfPJ','6KKAZjM','72yquxfi','10170jyIFjg','2081250kwpDps','478389joTjGQ','CONFIG_NAMES.DEFAULT','name','-client','push','dirname','replace'];a2_0x5345=function(){return _0x213f25;};return a2_0x5345();}import{logger}from'../utils/logger.js';export async function generateApiFile(_0x5bfe4e,_0x19a1dc,_0x43eb51,_0x1cda34,_0x3b0263,_0x24db79,_0x3c0b7b){const _0x2e53bb=a2_0x13d5;if(!_0x43eb51)throw new Error(_0x2e53bb(0x1db)+CLI_BIN_NAME+_0x2e53bb(0x1e3));const _0x4d3ea8=_0x1cda34&&!_0x3c0b7b,_0x2b2315=_0x3c0b7b||_0x43eb51,_0x1978a7=_0x4d3ea8?_0x2e53bb(0x1fc):'\x22'+_0x2b2315+'\x22',_0x38916b=_0x3b0263!=='production';let _0x42298e;if(_0x4d3ea8)_0x38916b?_0x42298e=_0x2e53bb(0x1f2)+_0x1978a7+',\x20env:\x20\x22'+_0x3b0263+_0x2e53bb(0x1ea):_0x42298e='';else{const _0x210055=_0x38916b?',\x20env:\x20\x22'+_0x3b0263+'\x22':'';_0x42298e=_0x2e53bb(0x1f0)+_0x2b2315+'\x22'+_0x210055+'\x20}';}const _0x553af7=_0x19a1dc?_0x19a1dc+'-api':'api',_0x193afc=_0x19a1dc?_0x19a1dc+_0x2e53bb(0x1fe):_0x2e53bb(0x1dd),_0x124378=_0x19a1dc&&!/^app-[a-f0-9]+$/i[_0x2e53bb(0x1e7)](_0x19a1dc)?_0x19a1dc[_0x2e53bb(0x1d9)](/-/g,'_')[_0x2e53bb(0x1f3)]():'LOVRABET',_0x24c67f=[];_0x5bfe4e[_0x2e53bb(0x1f4)](_0x1fe45b=>{const _0x5ce453=_0x2e53bb;_0x24c67f[_0x5ce453(0x1ff)]({'datasetCode':_0x1fe45b['datasetCode'],'tableName':_0x1fe45b[_0x5ce453(0x1e9)],'name':_0x1fe45b[_0x5ce453(0x1fd)]||'','alias':_0x1fe45b[_0x5ce453(0x1e1)]||_0x1fe45b[_0x5ce453(0x1e8)]});});const _0x2231d2=fileURLToPath(import.meta.url),_0x51aa91=a2_0x1aa51d[_0x2e53bb(0x1e6)](a2_0x1aa51d[_0x2e53bb(0x200)](_0x2231d2),_0x2e53bb(0x1de)),_0x5d1486=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x51aa91,'templates/generate-api'),_0x3c6f09=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5d1486,'api.ts.tpl'),_0x25d055=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5d1486,_0x2e53bb(0x1eb)),_0x5b379f=_0x24db79;mkdirSync(_0x5b379f,{'recursive':!![]});const _0x443838=_0x24c67f[0x0]?.[_0x2e53bb(0x1e1)],_0xb3a064=readFileSync(_0x3c6f09,_0x2e53bb(0x1df)),_0x41f185=TemplateReplacer[_0x2e53bb(0x1ef)](_0xb3a064,_0x43eb51,_0x24c67f,_0x443838,_0x553af7,_0x1978a7,undefined,_0x124378),_0x4e33f5=await a2_0x482dca[_0x2e53bb(0x1da)](_0x41f185,{'parser':'typescript'}),_0x2cf049=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5b379f,_0x553af7+_0x2e53bb(0x1e5));writeFileSync(_0x2cf049,_0x4e33f5,{'encoding':_0x2e53bb(0x1df)});const _0x5951e8=readFileSync(_0x25d055,_0x2e53bb(0x1df)),_0x480087=TemplateReplacer[_0x2e53bb(0x1ef)](_0x5951e8,_0x43eb51,_0x24c67f,_0x443838,_0x553af7,_0x1978a7,_0x42298e,_0x124378),_0x550fcd=await a2_0x482dca[_0x2e53bb(0x1da)](_0x480087,{'parser':'typescript'}),_0x42a294=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5b379f,_0x193afc+_0x2e53bb(0x1e5));writeFileSync(_0x42a294,_0x550fcd,{'encoding':'utf8'});const _0x557c57=_0x24c67f['length'];return logger['success'](_0x2e53bb(0x1e2),_0x2e53bb(0x1e4),undefined,{'apiFile':_0x2cf049,'clientFile':_0x42a294,'modelCount':_0x557c57,'configName':_0x1978a7}),{'modelCount':_0x557c57,'apiFilePath':_0x2cf049,'clientFilePath':_0x42a294,'configName':_0x1978a7};}
1
+ function a2_0x50dd(_0x23f22a,_0x72d4e1){_0x23f22a=_0x23f22a-0x13d;const _0x978c47=a2_0x978c();let _0x50dd9b=_0x978c47[_0x23f22a];return _0x50dd9b;}(function(_0x4eef30,_0x26dec7){const _0x6983bd=a2_0x50dd,_0x341c1a=_0x4eef30();while(!![]){try{const _0x34bff0=-parseInt(_0x6983bd(0x13f))/0x1+parseInt(_0x6983bd(0x144))/0x2*(-parseInt(_0x6983bd(0x15a))/0x3)+parseInt(_0x6983bd(0x163))/0x4*(-parseInt(_0x6983bd(0x143))/0x5)+-parseInt(_0x6983bd(0x160))/0x6+-parseInt(_0x6983bd(0x153))/0x7*(-parseInt(_0x6983bd(0x149))/0x8)+parseInt(_0x6983bd(0x15c))/0x9*(parseInt(_0x6983bd(0x13e))/0xa)+parseInt(_0x6983bd(0x165))/0xb;if(_0x34bff0===_0x26dec7)break;else _0x341c1a['push'](_0x341c1a['shift']());}catch(_0x598d56){_0x341c1a['push'](_0x341c1a['shift']());}}}(a2_0x978c,0xa1368));import a2_0xe45e27 from'prettier';function a2_0x978c(){const _0x3daa3d=['join','302309kTyOeS','templates/generate-api','dirname','api.ts.tpl','.ts','length','alias','6GrEzrT','LOVRABET','3555711xoyyEq','name','replaceApiContent','resolve','5467050SOATDC','client','toUpperCase','696872MPKBqA','../..','23411267InbDXe','{\x20apiConfigName:\x20\x22','{\x20apiConfigName:\x20','client.ts.tpl','20GppqZb','431725CrFfgx','-client','utf8','key','35nHPBbj','516254RmbUCr','API\x20文件生成成功!','\x22\x20}','push','-api','152DfQVsT','production','CONFIG_NAMES.DEFAULT','success',',\x20env:\x20\x22','typescript','test','format','forEach'];a2_0x978c=function(){return _0x3daa3d;};return a2_0x978c();}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x1f52bf from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';export async function generateApiFile(_0x171899,_0x3cdaf6,_0x39187e,_0x16030f,_0x5df627,_0x241d9b,_0x7c90d7){const _0x55e927=a2_0x50dd;if(!_0x39187e)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0xf216a0=_0x16030f&&!_0x7c90d7,_0x974e85=_0x7c90d7||_0x39187e,_0x1a1404=_0xf216a0?_0x55e927(0x14b):'\x22'+_0x974e85+'\x22',_0x4ead72=_0x5df627!==_0x55e927(0x14a);let _0x465dd9;if(_0xf216a0)_0x4ead72?_0x465dd9=_0x55e927(0x167)+_0x1a1404+_0x55e927(0x14d)+_0x5df627+_0x55e927(0x146):_0x465dd9='';else{const _0x200fb4=_0x4ead72?_0x55e927(0x14d)+_0x5df627+'\x22':'';_0x465dd9=_0x55e927(0x166)+_0x974e85+'\x22'+_0x200fb4+'\x20}';}const _0x4aa8e4=_0x3cdaf6?_0x3cdaf6+_0x55e927(0x148):'api',_0x279bc9=_0x3cdaf6?_0x3cdaf6+_0x55e927(0x140):_0x55e927(0x161),_0x246308=_0x3cdaf6&&!/^app-[a-f0-9]+$/i[_0x55e927(0x14f)](_0x3cdaf6)?_0x3cdaf6['replace'](/-/g,'_')[_0x55e927(0x162)]():_0x55e927(0x15b),_0x2159fd=[];_0x171899[_0x55e927(0x151)](_0x2e9c96=>{const _0x382090=_0x55e927;_0x2159fd[_0x382090(0x147)]({'datasetCode':_0x2e9c96['datasetCode'],'tableName':_0x2e9c96['tableName'],'name':_0x2e9c96[_0x382090(0x15d)]||'','alias':_0x2e9c96['alias']||_0x2e9c96[_0x382090(0x142)]});});const _0x5f4abe=fileURLToPath(import.meta.url),_0xb29b0a=a2_0x1f52bf[_0x55e927(0x15f)](a2_0x1f52bf[_0x55e927(0x155)](_0x5f4abe),_0x55e927(0x164)),_0xff61b3=a2_0x1f52bf[_0x55e927(0x152)](_0xb29b0a,_0x55e927(0x154)),_0x13acef=a2_0x1f52bf[_0x55e927(0x152)](_0xff61b3,_0x55e927(0x156)),_0x2df0c3=a2_0x1f52bf[_0x55e927(0x152)](_0xff61b3,_0x55e927(0x13d)),_0x166f70=_0x241d9b;mkdirSync(_0x166f70,{'recursive':!![]});const _0x5729b2=_0x2159fd[0x0]?.[_0x55e927(0x159)],_0x15c4b7=readFileSync(_0x13acef,'utf8'),_0x3d62b8=TemplateReplacer[_0x55e927(0x15e)](_0x15c4b7,_0x39187e,_0x2159fd,_0x5729b2,_0x4aa8e4,_0x1a1404,undefined,_0x246308),_0x231b4a=await a2_0xe45e27[_0x55e927(0x150)](_0x3d62b8,{'parser':_0x55e927(0x14e)}),_0xe99c51=a2_0x1f52bf['join'](_0x166f70,_0x4aa8e4+_0x55e927(0x157));writeFileSync(_0xe99c51,_0x231b4a,{'encoding':'utf8'});const _0x33c59e=readFileSync(_0x2df0c3,'utf8'),_0x25e65a=TemplateReplacer[_0x55e927(0x15e)](_0x33c59e,_0x39187e,_0x2159fd,_0x5729b2,_0x4aa8e4,_0x1a1404,_0x465dd9,_0x246308),_0x1827c9=await a2_0xe45e27[_0x55e927(0x150)](_0x25e65a,{'parser':_0x55e927(0x14e)}),_0x3a9983=a2_0x1f52bf[_0x55e927(0x152)](_0x166f70,_0x279bc9+_0x55e927(0x157));writeFileSync(_0x3a9983,_0x1827c9,{'encoding':_0x55e927(0x141)});const _0x525f74=_0x2159fd[_0x55e927(0x158)];return logger[_0x55e927(0x14c)]('init-api',_0x55e927(0x145),undefined,{'apiFile':_0xe99c51,'clientFile':_0x3a9983,'modelCount':_0x525f74,'configName':_0x1a1404}),{'modelCount':_0x525f74,'apiFilePath':_0xe99c51,'clientFilePath':_0x3a9983,'configName':_0x1a1404};}
@@ -1 +1 @@
1
- (function(_0x4d2c7c,_0x12c01b){const _0x2f54cd=a3_0x50a8,_0x576814=_0x4d2c7c();while(!![]){try{const _0x139fd9=parseInt(_0x2f54cd(0x139))/0x1+parseInt(_0x2f54cd(0x13a))/0x2*(-parseInt(_0x2f54cd(0x138))/0x3)+-parseInt(_0x2f54cd(0x131))/0x4+parseInt(_0x2f54cd(0x133))/0x5+-parseInt(_0x2f54cd(0x137))/0x6+-parseInt(_0x2f54cd(0x13e))/0x7*(parseInt(_0x2f54cd(0x13d))/0x8)+parseInt(_0x2f54cd(0x13c))/0x9;if(_0x139fd9===_0x12c01b)break;else _0x576814['push'](_0x576814['shift']());}catch(_0x158a98){_0x576814['push'](_0x576814['shift']());}}}(a3_0x4ec8,0x31b30));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';function a3_0x50a8(_0x1d9c83,_0x3a262f){_0x1d9c83=_0x1d9c83-0x12e;const _0x4ec87e=a3_0x4ec8();let _0x50a813=_0x4ec87e[_0x1d9c83];return _0x50a813;}import a3_0x519ead from'ora';export async function runAuthServer(){const _0x1d58a2=a3_0x50a8,_0x48f502=await getIsSessionValid();if(_0x48f502){console[_0x1d58a2(0x136)](_0x1d58a2(0x130));return;}const _0x4136df=await confirm({'message':_0x1d58a2(0x132),'default':!![]});if(!_0x4136df)return;const _0x5d846a=a3_0x519ead(_0x1d58a2(0x135))[_0x1d58a2(0x134)](),_0x21e5df=await authServer({'silent':!![]});_0x5d846a[_0x1d58a2(0x12f)](),_0x21e5df?console['log'](_0x1d58a2(0x13b)):console[_0x1d58a2(0x136)](_0x1d58a2(0x12e));}function a3_0x4ec8(){const _0x29c212=['151036wlOyZP','2pfNXRk','*\x20Login\x20successful!','10136646YJCBdS','8ajukZX','1904609AULDWX','!\x20Login\x20failed.','stop','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','1062456qkcSGH','No\x20valid\x20session.\x20Login\x20now?','31205WTjHtp','start','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','log','2392860FsMCWw','430476iXWjYK'];a3_0x4ec8=function(){return _0x29c212;};return a3_0x4ec8();}
1
+ (function(_0x28a10e,_0x2ff4a3){const _0x418b87=a3_0x5453,_0xbe8e36=_0x28a10e();while(!![]){try{const _0x1f15fc=-parseInt(_0x418b87(0x147))/0x1+parseInt(_0x418b87(0x148))/0x2+parseInt(_0x418b87(0x152))/0x3+-parseInt(_0x418b87(0x146))/0x4*(-parseInt(_0x418b87(0x14e))/0x5)+parseInt(_0x418b87(0x151))/0x6*(parseInt(_0x418b87(0x155))/0x7)+parseInt(_0x418b87(0x14d))/0x8*(-parseInt(_0x418b87(0x14f))/0x9)+parseInt(_0x418b87(0x14a))/0xa*(-parseInt(_0x418b87(0x149))/0xb);if(_0x1f15fc===_0x2ff4a3)break;else _0xbe8e36['push'](_0xbe8e36['shift']());}catch(_0x20db0d){_0xbe8e36['push'](_0xbe8e36['shift']());}}}(a3_0x1f26,0x9de6d));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a3_0x1593f0 from'ora';function a3_0x5453(_0x2fdd6e,_0xad0f1){_0x2fdd6e=_0x2fdd6e-0x146;const _0x1f26c0=a3_0x1f26();let _0x545372=_0x1f26c0[_0x2fdd6e];return _0x545372;}export async function runAuthServer(){const _0x4eea04=a3_0x5453,_0x5a693a=await getIsSessionValid();if(_0x5a693a){console['log'](_0x4eea04(0x14c));return;}const _0x5bc5a3=await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x5bc5a3)return;const _0x28b735=a3_0x1593f0(_0x4eea04(0x14b))[_0x4eea04(0x154)](),_0x35136f=await authServer({'silent':!![]});_0x28b735[_0x4eea04(0x150)](),_0x35136f?console['log'](_0x4eea04(0x156)):console['log'](_0x4eea04(0x153));}function a3_0x1f26(){const _0x367492=['start','4389224RNpMra','*\x20Login\x20successful!','708284WDRayD','353162doVWvJ','1850066SySSif','12366992XQQdvA','20tYkGvI','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','1673704cIuGrJ','30SopZzd','18CKIslW','stop','12EHBWXC','1276122mOzCua','!\x20Login\x20failed.'];a3_0x1f26=function(){return _0x367492;};return a3_0x1f26();}
@@ -1 +1 @@
1
- const a4_0x2de9ed=a4_0x286f;(function(_0x1bf878,_0x3b1656){const _0x4df05b=a4_0x286f,_0x507ee6=_0x1bf878();while(!![]){try{const _0x4e8001=parseInt(_0x4df05b(0x155))/0x1+parseInt(_0x4df05b(0x139))/0x2*(-parseInt(_0x4df05b(0x136))/0x3)+-parseInt(_0x4df05b(0x12f))/0x4+parseInt(_0x4df05b(0x12a))/0x5+parseInt(_0x4df05b(0x12e))/0x6+-parseInt(_0x4df05b(0x142))/0x7*(parseInt(_0x4df05b(0x13c))/0x8)+-parseInt(_0x4df05b(0x13e))/0x9;if(_0x4e8001===_0x3b1656)break;else _0x507ee6['push'](_0x507ee6['shift']());}catch(_0x45be35){_0x507ee6['push'](_0x507ee6['shift']());}}}(a4_0x457e,0xbe7cb));import{writeFileSync}from'node:fs';import a4_0x78f87c from'node:https';import{getUserDomain}from'../constant/domain.js';function a4_0x286f(_0xccc345,_0x3f2e47){_0xccc345=_0xccc345-0x122;const _0x457e65=a4_0x457e();let _0x286fee=_0x457e65[_0xccc345];return _0x286fee;}import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';export async function authServer(_0x58fc6d){const _0x139741=a4_0x286f,_0x3857a0=_0x58fc6d?.[_0x139741(0x131)]||![];if(await getIsSessionValid())return!![];const _0x43577b=await(await fetch(_0x139741(0x144)))['json']();return new Promise(async(_0x17cbba,_0x1c8b90)=>{const _0x314acd=_0x139741;let _0x254b3b=0x0;const _0x542aae=a4_0x78f87c[_0x314acd(0x124)](_0x43577b,async(_0x1ed8e1,_0x47fe5a)=>{const _0x4e498e=_0x314acd,_0x5cbe03=getUserDomain(),_0x3bfbe1=_0x1ed8e1[_0x4e498e(0x14f)][_0x4e498e(0x150)]||'',_0x3ec234=await fetch(_0x5cbe03+_0x4e498e(0x140),{'headers':{'cookie':_0x3bfbe1}})[_0x4e498e(0x14a)](_0x46ded6=>_0x46ded6[_0x4e498e(0x133)]()),_0xe8f239=_0x3ec234&&_0x3ec234[_0x4e498e(0x143)]&&_0x3ec234['user'];if(_0xe8f239){writeFileSync(cookieFile,_0x3bfbe1,_0x4e498e(0x148)),_0x17cbba(!![]);const _0x2b8765=_0x4e498e(0x145),_0x357777=_0x4e498e(0x129)+_0x4e498e(0x153)+_0x4e498e(0x123),_0x427d51=_0x4e498e(0x151),_0x57341a=_0x4e498e(0x122)+_0x2b8765+_0x4e498e(0x14b)+_0x357777+'</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>'+_0x427d51+_0x4e498e(0x152);_0x47fe5a['writeHead'](0xc8,{'Content-Type':_0x4e498e(0x12b)}),_0x47fe5a[_0x4e498e(0x126)](_0x57341a),_0x542aae[_0x4e498e(0x14c)]();}else{const _0x2f1038=''+encodeURIComponent(_0x4e498e(0x12d)+_0x254b3b);_0x47fe5a[_0x4e498e(0x128)](0x12e,{'location':_0x5cbe03+'/sign-in?redirect='+_0x2f1038}),_0x47fe5a[_0x4e498e(0x126)]();return;}});_0x542aae[_0x314acd(0x13d)](0x0,_0x314acd(0x127),()=>{const _0x249d50=_0x314acd,_0x4b998f=_0x542aae[_0x249d50(0x14d)]();_0x254b3b=typeof _0x4b998f===_0x249d50(0x134)&&_0x4b998f?_0x4b998f[_0x249d50(0x132)]:Number(_0x4b998f);const _0x36e86c=_0x249d50(0x12d)+_0x254b3b;!_0x3857a0&&(console[_0x249d50(0x125)](_0x249d50(0x13a)),console['log'](_0x249d50(0x130),_0x36e86c),console[_0x249d50(0x125)](_0x249d50(0x138)),console['log'](''),console[_0x249d50(0x125)](_0x249d50(0x141)),console[_0x249d50(0x125)]('')),openInBrowser(_0x36e86c)[_0x249d50(0x14a)](_0x39f783=>{const _0xb9d4b=_0x249d50;!_0x3857a0&&(_0x39f783?console[_0xb9d4b(0x125)]('✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console[_0xb9d4b(0x125)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0xb9d4b(0x125)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x36e86c)),console[_0xb9d4b(0x125)](''));})[_0x249d50(0x14e)](()=>{const _0x2ea416=_0x249d50;!_0x3857a0&&(console[_0x2ea416(0x125)](_0x2ea416(0x154)),console['log'](_0x2ea416(0x137),_0x36e86c),console['log'](''));});}),_0x542aae['on']('error',_0x4e804f=>{const _0x8dd7ad=_0x314acd;!_0x3857a0&&console['error'](_0x8dd7ad(0x135),_0x4e804f),_0x1c8b90(_0x4e804f);});});}function openInBrowser(_0x2e82c2){return new Promise(_0xe92f2d=>{const _0x4c16c1=a4_0x286f,_0x229b30=process[_0x4c16c1(0x13f)];let _0x422922;if(_0x229b30==='win32')_0x422922=_0x4c16c1(0x12c)+_0x2e82c2+'\x22';else _0x229b30===_0x4c16c1(0x146)?_0x422922=_0x4c16c1(0x149)+_0x2e82c2+'\x22':_0x422922=_0x4c16c1(0x13b)+_0x2e82c2+'\x22';exec(_0x422922,_0x41188b=>{_0x41188b?_0xe92f2d(![]):_0xe92f2d(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x2de9ed(0x125)](a4_0x2de9ed(0x147),isAuth);}function a4_0x457e(){const _0x39c51e=['darwin','isAuth','utf-8','open\x20\x22','then','</title></head>\x0a<body>\x0a\x20\x20<div>','close','address','catch','headers','cookie','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','</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>','<span\x20id=\x22t\x22>5</span>','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','1080413MAyRph','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>','\x20seconds.','createServer','log','end','127.0.0.1','writeHead','Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20','6327005CudOUE','text/html;\x20charset=utf-8','cmd\x20/c\x20start\x20\x22\x22\x20\x22','https://dev.lovrabet.com:','2686326eNhRpO','820240BurQuV','📍\x20Login\x20URL:','silent','port','json','object','Auth\x20server\x20error:','162PnVaAG','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','15822ygeosb','🔐\x20Starting\x20login\x20service...','xdg-open\x20\x22','80cCRpGa','listen','1453554WiOWIm','platform','/api/auth/get-session','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','853678DVkUEP','session','https://g.yuntooai.com/cert/lovrabet-dev.json','Login\x20Successful'];a4_0x457e=function(){return _0x39c51e;};return a4_0x457e();}
1
+ const a4_0xd8c07=a4_0x3a44;function a4_0x3a44(_0x5742e0,_0x1888c4){_0x5742e0=_0x5742e0-0x180;const _0x4c95a3=a4_0x4c95();let _0x3a448d=_0x4c95a3[_0x5742e0];return _0x3a448d;}(function(_0x295475,_0x310d8b){const _0x5da74c=a4_0x3a44,_0x305b65=_0x295475();while(!![]){try{const _0x200d50=-parseInt(_0x5da74c(0x191))/0x1*(-parseInt(_0x5da74c(0x184))/0x2)+-parseInt(_0x5da74c(0x1a4))/0x3*(parseInt(_0x5da74c(0x190))/0x4)+-parseInt(_0x5da74c(0x19f))/0x5+parseInt(_0x5da74c(0x18d))/0x6+-parseInt(_0x5da74c(0x183))/0x7*(-parseInt(_0x5da74c(0x1aa))/0x8)+-parseInt(_0x5da74c(0x1a1))/0x9+-parseInt(_0x5da74c(0x19d))/0xa;if(_0x200d50===_0x310d8b)break;else _0x305b65['push'](_0x305b65['shift']());}catch(_0x34d30c){_0x305b65['push'](_0x305b65['shift']());}}}(a4_0x4c95,0x3e5df));import{writeFileSync}from'node:fs';import a4_0x356e00 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';function a4_0x4c95(){const _0x573dfc=['🔐\x20Starting\x20login\x20service...','port','<span\x20id=\x22t\x22>5</span>','createServer','</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>','</title></head>\x0a<body>\x0a\x20\x20<div>','1041383spAXmX','2mPXZqM','Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20','https://g.yuntooai.com/cert/lovrabet-dev.json','json','cmd\x20/c\x20start\x20\x22\x22\x20\x22','silent','close','then','/sign-in?redirect=','2045190aQrXxz','win32','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','45932PROADe','371002QOkkWq','listen','writeHead','platform','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','/api/auth/get-session','error','📍\x20Login\x20URL:','https://dev.lovrabet.com:','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','cookie','isAuth','4403650jCdIHc','catch','749830cmJtzA','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','439101TLLZuU','object','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','30ygSIzv','utf-8','headers','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>','Auth\x20server\x20error:','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','16bQITOU','log','session','address'];a4_0x4c95=function(){return _0x573dfc;};return a4_0x4c95();}import{cookieFile}from'../auth/constant.js';export async function authServer(_0x47a549){const _0x54d850=a4_0x3a44,_0x45de5f=_0x47a549?.[_0x54d850(0x189)]||![];if(await getIsSessionValid())return!![];const _0x395a88=await(await fetch(_0x54d850(0x186)))[_0x54d850(0x187)]();return new Promise(async(_0x56f621,_0xaf3b31)=>{const _0x572239=_0x54d850;let _0x2b81c8=0x0;const _0x43cc8d=a4_0x356e00[_0x572239(0x180)](_0x395a88,async(_0x4e5ecf,_0x398bfa)=>{const _0x4661c2=_0x572239,_0x355e4f=getUserDomain(),_0xb44383=_0x4e5ecf[_0x4661c2(0x1a6)][_0x4661c2(0x19b)]||'',_0x1492b1=await fetch(_0x355e4f+_0x4661c2(0x196),{'headers':{'cookie':_0xb44383}})['then'](_0x273985=>_0x273985[_0x4661c2(0x187)]()),_0x38f2ba=_0x1492b1&&_0x1492b1[_0x4661c2(0x1ac)]&&_0x1492b1['user'];if(_0x38f2ba){writeFileSync(cookieFile,_0xb44383,_0x4661c2(0x1a5)),_0x56f621(!![]);const _0x597652='Login\x20Successful',_0x36e1f8=_0x4661c2(0x185)+_0x4661c2(0x1b0)+'\x20seconds.',_0x129fe6=_0x4661c2(0x18f),_0x2e05f1=_0x4661c2(0x1a7)+_0x597652+_0x4661c2(0x182)+_0x36e1f8+'</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>'+_0x129fe6+_0x4661c2(0x181);_0x398bfa[_0x4661c2(0x193)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x398bfa['end'](_0x2e05f1),_0x43cc8d[_0x4661c2(0x18a)]();}else{const _0x4420b6=''+encodeURIComponent(_0x4661c2(0x199)+_0x2b81c8);_0x398bfa[_0x4661c2(0x193)](0x12e,{'location':_0x355e4f+_0x4661c2(0x18c)+_0x4420b6}),_0x398bfa['end']();return;}});_0x43cc8d[_0x572239(0x192)](0x0,'127.0.0.1',()=>{const _0x11e241=_0x572239,_0x29c8f3=_0x43cc8d[_0x11e241(0x1ad)]();_0x2b81c8=typeof _0x29c8f3===_0x11e241(0x1a2)&&_0x29c8f3?_0x29c8f3[_0x11e241(0x1af)]:Number(_0x29c8f3);const _0x51a1f3=_0x11e241(0x199)+_0x2b81c8;!_0x45de5f&&(console[_0x11e241(0x1ab)](_0x11e241(0x1ae)),console['log'](_0x11e241(0x198),_0x51a1f3),console[_0x11e241(0x1ab)](_0x11e241(0x19a)),console[_0x11e241(0x1ab)](''),console[_0x11e241(0x1ab)](_0x11e241(0x1a0)),console[_0x11e241(0x1ab)]('')),openInBrowser(_0x51a1f3)[_0x11e241(0x18b)](_0x1f7d6c=>{const _0x4a6496=_0x11e241;!_0x45de5f&&(_0x1f7d6c?console[_0x4a6496(0x1ab)](_0x4a6496(0x1a9)):(console[_0x4a6496(0x1ab)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x4a6496(0x1ab)](_0x4a6496(0x195),_0x51a1f3)),console['log'](''));})[_0x11e241(0x19e)](()=>{const _0x5355b1=_0x11e241;!_0x45de5f&&(console[_0x5355b1(0x1ab)](_0x5355b1(0x1a3)),console[_0x5355b1(0x1ab)](_0x5355b1(0x195),_0x51a1f3),console[_0x5355b1(0x1ab)](''));});}),_0x43cc8d['on'](_0x572239(0x197),_0x208dc3=>{const _0x460ec4=_0x572239;!_0x45de5f&&console[_0x460ec4(0x197)](_0x460ec4(0x1a8),_0x208dc3),_0xaf3b31(_0x208dc3);});});}function openInBrowser(_0x59a9a0){return new Promise(_0x22c9aa=>{const _0x586723=a4_0x3a44,_0x2317d4=process[_0x586723(0x194)];let _0x2c19c0;if(_0x2317d4===_0x586723(0x18e))_0x2c19c0=_0x586723(0x188)+_0x59a9a0+'\x22';else _0x2317d4==='darwin'?_0x2c19c0='open\x20\x22'+_0x59a9a0+'\x22':_0x2c19c0='xdg-open\x20\x22'+_0x59a9a0+'\x22';exec(_0x2c19c0,_0x40f927=>{_0x40f927?_0x22c9aa(![]):_0x22c9aa(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log'](a4_0xd8c07(0x19c),isAuth);}
@@ -1 +1 @@
1
- const a5_0xf4caef=a5_0x569f;(function(_0x3cfab1,_0x4be6f7){const _0xa913b9=a5_0x569f,_0x1cf64b=_0x3cfab1();while(!![]){try{const _0x3767d3=parseInt(_0xa913b9(0xdf))/0x1*(-parseInt(_0xa913b9(0xd7))/0x2)+-parseInt(_0xa913b9(0xe0))/0x3+-parseInt(_0xa913b9(0xdd))/0x4*(parseInt(_0xa913b9(0xd8))/0x5)+parseInt(_0xa913b9(0xdb))/0x6+-parseInt(_0xa913b9(0xd5))/0x7+-parseInt(_0xa913b9(0xd6))/0x8*(parseInt(_0xa913b9(0xda))/0x9)+parseInt(_0xa913b9(0xd9))/0xa;if(_0x3767d3===_0x4be6f7)break;else _0x1cf64b['push'](_0x1cf64b['shift']());}catch(_0x1812e9){_0x1cf64b['push'](_0x1cf64b['shift']());}}}(a5_0x5be7,0xd92d3));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a5_0x5be7(){const _0x5453cb=['3037347MfRtwV','6895296RMqwPa','.lovrabet','1678596iCudMd','cookie','119909HYGMhI','521055jorJoB','5142298PXgSCV','40YDkhgS','24fxMapG','10cxKJXL','46142590juYKcn'];a5_0x5be7=function(){return _0x5453cb;};return a5_0x5be7();}function a5_0x569f(_0x1b9f26,_0x491b78){_0x1b9f26=_0x1b9f26-0xd5;const _0x5be75b=a5_0x5be7();let _0x569fac=_0x5be75b[_0x1b9f26];return _0x569fac;}export const configDir=join(homedir(),a5_0xf4caef(0xdc));export const cookieFile=join(configDir,a5_0xf4caef(0xde));mkdirSync(configDir,{'recursive':!![]});
1
+ const a5_0x28483f=a5_0x1427;(function(_0x24bbe1,_0x1f168c){const _0x2bc27d=a5_0x1427,_0x143d6d=_0x24bbe1();while(!![]){try{const _0x29c5bb=-parseInt(_0x2bc27d(0x9a))/0x1+-parseInt(_0x2bc27d(0x97))/0x2+parseInt(_0x2bc27d(0x9c))/0x3+parseInt(_0x2bc27d(0x98))/0x4+-parseInt(_0x2bc27d(0x9b))/0x5+parseInt(_0x2bc27d(0x96))/0x6+-parseInt(_0x2bc27d(0x9d))/0x7;if(_0x29c5bb===_0x1f168c)break;else _0x143d6d['push'](_0x143d6d['shift']());}catch(_0x48af46){_0x143d6d['push'](_0x143d6d['shift']());}}}(a5_0x2b37,0x6f304));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x28483f(0x99));export const cookieFile=join(configDir,a5_0x28483f(0x9e));function a5_0x1427(_0x199ebd,_0x15eb60){_0x199ebd=_0x199ebd-0x96;const _0x2b3741=a5_0x2b37();let _0x142747=_0x2b3741[_0x199ebd];return _0x142747;}mkdirSync(configDir,{'recursive':!![]});function a5_0x2b37(){const _0x2ba297=['cookie','4952928tYAuPN','1621476ABsnsG','2488300Bioofm','.lovrabet','98374ZSdyAM','393245WMqjBU','1414242epDDET','3330516pdPZnu'];a5_0x2b37=function(){return _0x2ba297;};return a5_0x2b37();}
@@ -1 +1 @@
1
- (function(_0x3f6394,_0xa279ba){var _0x135986=a6_0x319c,_0x41bdc6=_0x3f6394();while(!![]){try{var _0x5d951c=parseInt(_0x135986(0x168))/0x1+-parseInt(_0x135986(0x166))/0x2+parseInt(_0x135986(0x162))/0x3*(-parseInt(_0x135986(0x165))/0x4)+-parseInt(_0x135986(0x164))/0x5*(-parseInt(_0x135986(0x169))/0x6)+parseInt(_0x135986(0x16a))/0x7*(-parseInt(_0x135986(0x167))/0x8)+-parseInt(_0x135986(0x163))/0x9+parseInt(_0x135986(0x16b))/0xa;if(_0x5d951c===_0xa279ba)break;else _0x41bdc6['push'](_0x41bdc6['shift']());}catch(_0x4cb953){_0x41bdc6['push'](_0x41bdc6['shift']());}}}(a6_0x3195,0xd18a6));function a6_0x319c(_0x33ae51,_0x266cf5){_0x33ae51=_0x33ae51-0x162;var _0x31956d=a6_0x3195();var _0x319c0d=_0x31956d[_0x33ae51];return _0x319c0d;}import{readFileSync}from'node:fs';function a6_0x3195(){var _0x3815e3=['36280430GhdfGX','436503gARfVa','105930oDiVQP','2349595RRbThF','36WmakpF','1337376CmHfqh','812192eqXbUl','273143zzXeDq','6meowDZ','105JtpedJ'];a6_0x3195=function(){return _0x3815e3;};return a6_0x3195();}import{cookieFile}from'../auth/constant.js';export function getCookie(){try{return readFileSync(cookieFile,'utf-8');}catch{}return'';}
1
+ (function(_0x16b412,_0x431796){var _0x5c9cb1=a6_0x19c3,_0x571ea3=_0x16b412();while(!![]){try{var _0xd73f6a=parseInt(_0x5c9cb1(0x13a))/0x1*(-parseInt(_0x5c9cb1(0x13f))/0x2)+-parseInt(_0x5c9cb1(0x140))/0x3*(parseInt(_0x5c9cb1(0x13b))/0x4)+-parseInt(_0x5c9cb1(0x137))/0x5+parseInt(_0x5c9cb1(0x13e))/0x6+-parseInt(_0x5c9cb1(0x141))/0x7+-parseInt(_0x5c9cb1(0x13d))/0x8*(parseInt(_0x5c9cb1(0x139))/0x9)+parseInt(_0x5c9cb1(0x138))/0xa;if(_0xd73f6a===_0x431796)break;else _0x571ea3['push'](_0x571ea3['shift']());}catch(_0x10c90a){_0x571ea3['push'](_0x571ea3['shift']());}}}(a6_0x9868,0x2dd8f));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0x19c3(_0x3f8c5b,_0x424baf){_0x3f8c5b=_0x3f8c5b-0x137;var _0x986811=a6_0x9868();var _0x19c3fb=_0x986811[_0x3f8c5b];return _0x19c3fb;}export function getCookie(){var _0x748b09=a6_0x19c3;try{return readFileSync(cookieFile,_0x748b09(0x13c));}catch{}return'';}function a6_0x9868(){var _0x17e71a=['1907728jUmOTa','882726cvPndh','1512xZjAbp','2241EqavKV','2234533gODcbM','486430okmfHt','10421050cfpBaz','9dbfoTI','233kKGboC','912YqiaNa','utf-8'];a6_0x9868=function(){return _0x17e71a;};return a6_0x9868();}
@@ -1 +1 @@
1
- function a7_0x15c1(){const _0x26598f=['5572950StvPzV','1847944wxlGRh','session','63239nVJAOG','json','1268YDPQzk','720lAMgiC','16537476VnktSN','/api/auth/get-session','1894hHmmXO','2160tvEtpU','88731fLKCNC','303WweOve','5UMZPcQ','user','7516qzXnjn'];a7_0x15c1=function(){return _0x26598f;};return a7_0x15c1();}function a7_0x43d0(_0x333488,_0x101231){_0x333488=_0x333488-0xa3;const _0x15c1c7=a7_0x15c1();let _0x43d064=_0x15c1c7[_0x333488];return _0x43d064;}(function(_0x10f25d,_0x549e23){const _0x3a9c91=a7_0x43d0,_0x54f2df=_0x10f25d();while(!![]){try{const _0x1dd671=-parseInt(_0x3a9c91(0xa8))/0x1*(-parseInt(_0x3a9c91(0xac))/0x2)+-parseInt(_0x3a9c91(0xaf))/0x3*(parseInt(_0x3a9c91(0xb2))/0x4)+parseInt(_0x3a9c91(0xb0))/0x5*(-parseInt(_0x3a9c91(0xa3))/0x6)+-parseInt(_0x3a9c91(0xa4))/0x7+-parseInt(_0x3a9c91(0xa9))/0x8*(-parseInt(_0x3a9c91(0xae))/0x9)+-parseInt(_0x3a9c91(0xad))/0xa*(parseInt(_0x3a9c91(0xa6))/0xb)+parseInt(_0x3a9c91(0xaa))/0xc;if(_0x1dd671===_0x549e23)break;else _0x54f2df['push'](_0x54f2df['shift']());}catch(_0x43e5e1){_0x54f2df['push'](_0x54f2df['shift']());}}}(a7_0x15c1,0xcd879));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x19a3d3=a7_0x43d0;try{if(!existsSync(cookieFile))return null;const _0x78fcc9=readFileSync(cookieFile,'utf-8'),_0x3a59eb=await fetch(getUserDomain()+_0x19a3d3(0xab),{'headers':{'cookie':_0x78fcc9}});if(!_0x3a59eb['ok'])return null;const _0x3cbd5d=await _0x3a59eb[_0x19a3d3(0xa7)]();if(!_0x3cbd5d[_0x19a3d3(0xa5)]||!_0x3cbd5d[_0x19a3d3(0xb1)])return null;return _0x3cbd5d;}catch{return null;}}
1
+ (function(_0x10a88b,_0x1ba01c){const _0x50d9eb=a7_0x1ca9,_0x1267a2=_0x10a88b();while(!![]){try{const _0x4bafb3=parseInt(_0x50d9eb(0xa2))/0x1*(parseInt(_0x50d9eb(0xa4))/0x2)+-parseInt(_0x50d9eb(0xa9))/0x3+-parseInt(_0x50d9eb(0xa8))/0x4*(-parseInt(_0x50d9eb(0xaa))/0x5)+-parseInt(_0x50d9eb(0xa3))/0x6*(-parseInt(_0x50d9eb(0xae))/0x7)+parseInt(_0x50d9eb(0xab))/0x8*(-parseInt(_0x50d9eb(0xaf))/0x9)+-parseInt(_0x50d9eb(0xa5))/0xa*(-parseInt(_0x50d9eb(0xb0))/0xb)+-parseInt(_0x50d9eb(0xad))/0xc;if(_0x4bafb3===_0x1ba01c)break;else _0x1267a2['push'](_0x1267a2['shift']());}catch(_0x5e1d33){_0x1267a2['push'](_0x1267a2['shift']());}}}(a7_0x138d,0x9b94b));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x1ca9(_0x53ed60,_0x3b9574){_0x53ed60=_0x53ed60-0xa1;const _0x138d59=a7_0x138d();let _0x1ca910=_0x138d59[_0x53ed60];return _0x1ca910;}function a7_0x138d(){const _0x14b58a=['4rYHPQl','2470302yVFAem','145876DzIyqy','10KRHRuu','json','session','82204LVLbVo','484350GqideK','65KbYSzI','6417104rfWJme','utf-8','3842844WYjIXh','21OXrswo','9DWBuwJ','1397198VOHmGH','user'];a7_0x138d=function(){return _0x14b58a;};return a7_0x138d();}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0xc4f578=a7_0x1ca9;try{if(!existsSync(cookieFile))return null;const _0x81802c=readFileSync(cookieFile,_0xc4f578(0xac)),_0xdb24b5=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x81802c}});if(!_0xdb24b5['ok'])return null;const _0x43345b=await _0xdb24b5[_0xc4f578(0xa6)]();if(!_0x43345b[_0xc4f578(0xa7)]||!_0x43345b[_0xc4f578(0xa1)])return null;return _0x43345b;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x36bd9b,_0x28b9e7){const _0x35b4ff=a8_0x40ff,_0x52a7b2=_0x36bd9b();while(!![]){try{const _0x38daad=parseInt(_0x35b4ff(0x7d))/0x1+parseInt(_0x35b4ff(0x70))/0x2*(-parseInt(_0x35b4ff(0x79))/0x3)+-parseInt(_0x35b4ff(0x81))/0x4*(-parseInt(_0x35b4ff(0x7a))/0x5)+-parseInt(_0x35b4ff(0x71))/0x6*(-parseInt(_0x35b4ff(0x7e))/0x7)+-parseInt(_0x35b4ff(0x80))/0x8*(-parseInt(_0x35b4ff(0x7b))/0x9)+-parseInt(_0x35b4ff(0x73))/0xa*(-parseInt(_0x35b4ff(0x76))/0xb)+-parseInt(_0x35b4ff(0x78))/0xc;if(_0x38daad===_0x28b9e7)break;else _0x52a7b2['push'](_0x52a7b2['shift']());}catch(_0x3bfd83){_0x52a7b2['push'](_0x52a7b2['shift']());}}}(a8_0x36a9,0xebbbb));import{existsSync,readFileSync}from'node:fs';function a8_0x36a9(){const _0x449df5=['3089430OeWBAP','user','1643448fGphjX','1299431DQrklh','/api/auth/get-session','24bazXiR','28584ZdCwOc','8IXviwi','42sbzGzc','then','5142520WCWYDV','utf-8','json','22wXGHOS','session','57457992HjsXdz','518217hIzBwF','1010RfLKww'];a8_0x36a9=function(){return _0x449df5;};return a8_0x36a9();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0x40ff(_0x521d52,_0x4f5253){_0x521d52=_0x521d52-0x70;const _0x36a99d=a8_0x36a9();let _0x40ffe3=_0x36a99d[_0x521d52];return _0x40ffe3;}export async function getIsSessionValid(){const _0x57f7a0=a8_0x40ff;try{if(!existsSync(cookieFile))return![];const _0x49e79d=readFileSync(cookieFile,_0x57f7a0(0x74)),_0x13f50e=await fetch(getUserDomain()+_0x57f7a0(0x7f),{'headers':{'cookie':_0x49e79d}})[_0x57f7a0(0x72)](_0xae9cd3=>_0xae9cd3[_0x57f7a0(0x75)]());return _0x13f50e&&_0x13f50e[_0x57f7a0(0x77)]&&_0x13f50e[_0x57f7a0(0x7c)];}catch{}return![];}
1
+ (function(_0x21318c,_0x5a1858){const _0x9a40c2=a8_0x37a1,_0x5e24c7=_0x21318c();while(!![]){try{const _0x5ec807=parseInt(_0x9a40c2(0x118))/0x1*(-parseInt(_0x9a40c2(0x11e))/0x2)+parseInt(_0x9a40c2(0x120))/0x3*(parseInt(_0x9a40c2(0x122))/0x4)+-parseInt(_0x9a40c2(0x11c))/0x5*(parseInt(_0x9a40c2(0x126))/0x6)+parseInt(_0x9a40c2(0x11a))/0x7+-parseInt(_0x9a40c2(0x11b))/0x8*(parseInt(_0x9a40c2(0x124))/0x9)+parseInt(_0x9a40c2(0x125))/0xa*(-parseInt(_0x9a40c2(0x121))/0xb)+parseInt(_0x9a40c2(0x119))/0xc*(parseInt(_0x9a40c2(0x11d))/0xd);if(_0x5ec807===_0x5a1858)break;else _0x5e24c7['push'](_0x5e24c7['shift']());}catch(_0x33210f){_0x5e24c7['push'](_0x5e24c7['shift']());}}}(a8_0x5ddc,0xe941f));function a8_0x37a1(_0x3bc4c5,_0xe45512){_0x3bc4c5=_0x3bc4c5-0x115;const _0x5ddccb=a8_0x5ddc();let _0x37a102=_0x5ddccb[_0x3bc4c5];return _0x37a102;}import{existsSync,readFileSync}from'node:fs';function a8_0x5ddc(){const _0x176f68=['84sAyNMA','11687956qnBied','5089376yrWneg','6626715jqowRy','2813603EniqXR','352018mbgUuG','json','3KylLhL','88vrfWTj','3972848OZTgol','session','9AiulVu','36170AaYgNI','6LCgBeI','utf-8','user','then','7kHCbCy'];a8_0x5ddc=function(){return _0x176f68;};return a8_0x5ddc();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x5c3576=a8_0x37a1;try{if(!existsSync(cookieFile))return![];const _0x445fe1=readFileSync(cookieFile,_0x5c3576(0x115)),_0x7dcecf=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x445fe1}})[_0x5c3576(0x117)](_0x397bc3=>_0x397bc3[_0x5c3576(0x11f)]());return _0x7dcecf&&_0x7dcecf[_0x5c3576(0x123)]&&_0x7dcecf[_0x5c3576(0x116)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x4e06a3,_0x153c97){var _0x4bab15=a9_0x1626,_0x1e29d5=_0x4e06a3();while(!![]){try{var _0x49407e=parseInt(_0x4bab15(0x163))/0x1+-parseInt(_0x4bab15(0x161))/0x2*(parseInt(_0x4bab15(0x15d))/0x3)+parseInt(_0x4bab15(0x167))/0x4+parseInt(_0x4bab15(0x15c))/0x5*(-parseInt(_0x4bab15(0x162))/0x6)+parseInt(_0x4bab15(0x15e))/0x7*(-parseInt(_0x4bab15(0x15f))/0x8)+-parseInt(_0x4bab15(0x165))/0x9*(-parseInt(_0x4bab15(0x166))/0xa)+-parseInt(_0x4bab15(0x160))/0xb*(-parseInt(_0x4bab15(0x169))/0xc);if(_0x49407e===_0x153c97)break;else _0x1e29d5['push'](_0x1e29d5['shift']());}catch(_0xe2245f){_0x1e29d5['push'](_0x1e29d5['shift']());}}}(a9_0x5c8c,0xc643c));import{unlinkSync,existsSync}from'node:fs';function a9_0x1626(_0x3ff8c4,_0x4c4fff){_0x3ff8c4=_0x3ff8c4-0x15c;var _0x5c8c4f=a9_0x5c8c();var _0x1626ea=_0x5c8c4f[_0x3ff8c4];return _0x1626ea;}import{cookieFile}from'../auth/constant.js';function a9_0x5c8c(){var _0x41d858=['log','27RjMnrM','4232760VQBfav','2951560lDlJeu','!\x20Not\x20logged\x20in','1544748FsTZfl','1342830tNvTAu','763611JRVtCa','389963qnEUAj','8dIgwco','55QutvZq','10cddiit','12rarmgv','26255hbkRjc'];a9_0x5c8c=function(){return _0x41d858;};return a9_0x5c8c();}export function logout(){var _0x3e3cc=a9_0x1626;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3e3cc(0x164)]('✓\x20Logged\x20out')):console[_0x3e3cc(0x164)](_0x3e3cc(0x168));}
1
+ (function(_0x39ca9f,_0x1443ff){var _0x2aed27=a9_0x3928,_0x5a18c7=_0x39ca9f();while(!![]){try{var _0x12190d=parseInt(_0x2aed27(0x1de))/0x1+parseInt(_0x2aed27(0x1d9))/0x2*(parseInt(_0x2aed27(0x1dc))/0x3)+parseInt(_0x2aed27(0x1d6))/0x4+parseInt(_0x2aed27(0x1db))/0x5*(parseInt(_0x2aed27(0x1d7))/0x6)+parseInt(_0x2aed27(0x1e1))/0x7*(parseInt(_0x2aed27(0x1da))/0x8)+parseInt(_0x2aed27(0x1e4))/0x9*(parseInt(_0x2aed27(0x1dd))/0xa)+-parseInt(_0x2aed27(0x1e0))/0xb*(parseInt(_0x2aed27(0x1e3))/0xc);if(_0x12190d===_0x1443ff)break;else _0x5a18c7['push'](_0x5a18c7['shift']());}catch(_0xbc4b05){_0x5a18c7['push'](_0x5a18c7['shift']());}}}(a9_0x31d7,0x3af04));function a9_0x3928(_0xd5f19e,_0x14a8c6){_0xd5f19e=_0xd5f19e-0x1d6;var _0x31d725=a9_0x31d7();var _0x392811=_0x31d725[_0xd5f19e];return _0x392811;}import{unlinkSync,existsSync}from'node:fs';function a9_0x31d7(){var _0x85b832=['14550108jwpFRJ','53127iifrLg','815700hgioSu','402396wbYdaM','✓\x20Logged\x20out','87344sKNTao','1417384MpyMgJ','30DGkdCk','21vXhBTh','200Tysmus','246663EDRosX','!\x20Not\x20logged\x20in','11dkusqh','7oEyMCk','log'];a9_0x31d7=function(){return _0x85b832;};return a9_0x31d7();}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x55bee8=a9_0x3928;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x55bee8(0x1e2)](_0x55bee8(0x1d8))):console[_0x55bee8(0x1e2)](_0x55bee8(0x1df));}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- const a10_0x5d834d=a10_0x2d9b;function a10_0x2d9b(_0x391193,_0xaf2ed5){_0x391193=_0x391193-0x12a;const _0x415ed3=a10_0x415e();let _0x2d9bd3=_0x415ed3[_0x391193];return _0x2d9bd3;}(function(_0x279457,_0x2aa06f){const _0x1f9998=a10_0x2d9b,_0xd27bab=_0x279457();while(!![]){try{const _0x597653=-parseInt(_0x1f9998(0x12f))/0x1*(parseInt(_0x1f9998(0x134))/0x2)+parseInt(_0x1f9998(0x135))/0x3*(-parseInt(_0x1f9998(0x12e))/0x4)+parseInt(_0x1f9998(0x130))/0x5+-parseInt(_0x1f9998(0x12b))/0x6*(parseInt(_0x1f9998(0x12d))/0x7)+-parseInt(_0x1f9998(0x12c))/0x8+parseInt(_0x1f9998(0x12a))/0x9+parseInt(_0x1f9998(0x132))/0xa*(parseInt(_0x1f9998(0x131))/0xb);if(_0x597653===_0x2aa06f)break;else _0xd27bab['push'](_0xd27bab['shift']());}catch(_0x404bdf){_0xd27bab['push'](_0xd27bab['shift']());}}}(a10_0x415e,0x5f914));function a10_0x415e(){const _0x3ef94c=['1518IBXzEX','49390vVdize','boolean','717026wYURwc','75801neFrGO','6032376mfxsrA','72SZlanp','708312IhQkRo','185619BQRMFp','52uFLSCj','1ixkxKM','666625TgChwh'];a10_0x415e=function(){return _0x3ef94c;};return a10_0x415e();}export const dynamicCliFlags={'enableBffSave':{'type':a10_0x5d834d(0x133)}};
1
+ function a10_0x5c6e(_0x53b5af,_0x4921f6){_0x53b5af=_0x53b5af-0x95;const _0x5833ca=a10_0x5833();let _0x5c6e8f=_0x5833ca[_0x53b5af];return _0x5c6e8f;}(function(_0x1baa2a,_0xc58628){const _0x50ff9d=a10_0x5c6e,_0x3c7687=_0x1baa2a();while(!![]){try{const _0x1236de=-parseInt(_0x50ff9d(0x9c))/0x1*(-parseInt(_0x50ff9d(0x96))/0x2)+-parseInt(_0x50ff9d(0x99))/0x3*(-parseInt(_0x50ff9d(0x95))/0x4)+parseInt(_0x50ff9d(0x98))/0x5*(parseInt(_0x50ff9d(0x9a))/0x6)+-parseInt(_0x50ff9d(0x9d))/0x7*(parseInt(_0x50ff9d(0x9b))/0x8)+-parseInt(_0x50ff9d(0x97))/0x9*(parseInt(_0x50ff9d(0x9e))/0xa)+parseInt(_0x50ff9d(0xa0))/0xb+parseInt(_0x50ff9d(0x9f))/0xc;if(_0x1236de===_0xc58628)break;else _0x3c7687['push'](_0x3c7687['shift']());}catch(_0x52df61){_0x3c7687['push'](_0x3c7687['shift']());}}}(a10_0x5833,0x8e31a));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};function a10_0x5833(){const _0x19e880=['3297573qqqNch','4115ldBdur','21573CzZpDN','72YethLH','66208qNJXqT','33619MamyXg','553qcpAAb','30lwWVFF','15058824YagDbn','5949295uDbwvL','276XUpipw','2jcfWGF'];a10_0x5833=function(){return _0x19e880;};return a10_0x5833();}
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a11_0x578a(){const _0x5d0b39=['hint','log','⚠\x20`','error','explicitAppName','riskLevel','`\x20in\x20v2.0.\x0a','format','runtimeDomain','help','10BYfkvi','userDomain','./cli-flags.js','raw','`\x20has\x20been\x20moved\x20to\x20`','5957382FMqCUJ','cookie','unknown_service','96mmhazD','145292CHDKqj','Hint:\x20','dynamicCliFlags','7211610EBABJK','unknownCommand','4406945yQyhih','pageSize','exitCode','message','defaultCommand','slice','code','14630099jpINGd','env','12099Knjgky','stderr','verbose','./constant/env.js','write','./context.js','global','apiDir','wildcardDef','9529352HLJAYZ','input','name','7vabWUE','34XOieSy','Error:\x20','now','apiDomain'];a11_0x578a=function(){return _0x5d0b39;};return a11_0x578a();}const a11_0x1606ed=a11_0x5c7e;(function(_0x2d4b03,_0x5465d8){const _0x27bebc=a11_0x5c7e,_0x446ddb=_0x2d4b03();while(!![]){try{const _0x7ee78c=-parseInt(_0x27bebc(0xd7))/0x1*(-parseInt(_0x27bebc(0xb2))/0x2)+-parseInt(_0x27bebc(0xc8))/0x3*(parseInt(_0x27bebc(0xc9))/0x4)+parseInt(_0x27bebc(0xce))/0x5+parseInt(_0x27bebc(0xc5))/0x6*(-parseInt(_0x27bebc(0xb1))/0x7)+parseInt(_0x27bebc(0xae))/0x8+-parseInt(_0x27bebc(0xcc))/0x9+parseInt(_0x27bebc(0xc0))/0xa*(parseInt(_0x27bebc(0xd5))/0xb);if(_0x7ee78c===_0x5465d8)break;else _0x446ddb['push'](_0x446ddb['shift']());}catch(_0x45782c){_0x446ddb['push'](_0x446ddb['shift']());}}}(a11_0x578a,0x9f1cf));import a11_0xaa727 from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,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';function a11_0x5c7e(_0x182833,_0x521920){_0x182833=_0x182833-0xa9;const _0x578a2c=a11_0x578a();let _0x5c7ebd=_0x578a2c[_0x182833];return _0x5c7ebd;}import{getApiDomain}from'./constant/domain.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{isNonInteractive as a11_0x14672d}from'./utils/is-non-interactive.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a11_0x1606ed(0xc2)))[a11_0x1606ed(0xcb)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a11_0x1606ed(0xd3)](0x0,0xa)+')':VERSION,cli=a11_0xaa727(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x533f8a=a11_0x1606ed;let _0x176c6b=cli[_0x533f8a(0xaf)][0x0],_0x2929db=cli['input'][0x1];const _0x83f101=cli['flags'];if(!_0x176c6b){await reportCliHelpTrace(_0x533f8a(0xab)),showHelp();return;}const _0xf3957f=deprecatedAliases[_0x176c6b];if(_0xf3957f&&!isKnownService(_0x176c6b)){const _0x42bafb=_0x2929db?CLI_BIN_NAME+'\x20'+_0x176c6b+'\x20'+_0x2929db:CLI_BIN_NAME+'\x20'+_0x176c6b,_0x2726ec=CLI_BIN_NAME+'\x20'+_0xf3957f['service']+'\x20'+_0xf3957f['command'];console[_0x533f8a(0xb9)](_0x533f8a(0xb8)+_0x42bafb+_0x533f8a(0xc4)+_0x2726ec+_0x533f8a(0xbc)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x176c6b)){await reportCliHelpTrace(_0x533f8a(0xc7),{'service':_0x176c6b}),showHelp();return;}const _0xb04478=getServiceEntry(_0x176c6b);if(_0x83f101['env']&&typeof _0x83f101[_0x533f8a(0xd6)]==='string'){const {initEnv:_0x59fbfc}=await import(_0x533f8a(0xda));_0x59fbfc(_0x83f101['env']);}const {buildConfigFromFlags:_0x5f5e90}=await import(_0x533f8a(0xaa)),_0x235d81=_0x5f5e90(_0x83f101);if(!_0x83f101[_0x533f8a(0xd6)]&&_0x235d81[_0x533f8a(0xd6)]){const {initEnv:_0x5541bc}=await import('./constant/env.js');_0x5541bc(_0x235d81[_0x533f8a(0xd6)]);}if(_0x235d81[_0x533f8a(0xc3)]?.[_0x533f8a(0xb5)]||_0x235d81[_0x533f8a(0xc3)]?.[_0x533f8a(0xc1)]||_0x235d81[_0x533f8a(0xc3)]?.['runtimeDomain']){const {initDomains:_0x1123a0}=await import('./constant/domain.js');_0x1123a0({'apiDomain':_0x235d81[_0x533f8a(0xc3)][_0x533f8a(0xb5)]||undefined,'userDomain':_0x235d81['raw'][_0x533f8a(0xc1)]||undefined,'runtimeDomain':_0x235d81['raw'][_0x533f8a(0xbe)]||undefined});}if(!_0x2929db){if(_0xb04478[_0x533f8a(0xd2)])_0x2929db=_0xb04478[_0x533f8a(0xd2)];else{if(_0xb04478[_0x533f8a(0xad)]){if(_0x83f101['help']){console[_0x533f8a(0xb7)](generateCommandHelp(_0xb04478['wildcardDef']));return;}await dispatchDeclarative(_0xb04478['wildcardDef'],_0x176c6b,'',[],_0x83f101,_0x235d81);return;}else{printServiceHelp(_0x176c6b);return;}}}if(_0x83f101[_0x533f8a(0xbf)]&&!findDefinition(_0x176c6b,_0x2929db)){printServiceHelp(_0x176c6b);return;}{let _0x4bf9fe=findDefinition(_0x176c6b,_0x2929db),_0x315278=cli[_0x533f8a(0xaf)][_0x533f8a(0xd3)](0x2);if(!_0x4bf9fe){if(_0xb04478[_0x533f8a(0xad)]){if(_0x83f101[_0x533f8a(0xbf)]){console['log'](generateCommandHelp(_0xb04478[_0x533f8a(0xad)]));return;}_0x4bf9fe=_0xb04478['wildcardDef'],_0x315278=[_0x2929db,...cli['input'][_0x533f8a(0xd3)](0x2)];}else{printServiceHelp(_0x176c6b),await handleErrorAsync(CliErrors[_0x533f8a(0xcd)](_0x176c6b+'\x20'+_0x2929db));return;}}if(_0x83f101['help']){console[_0x533f8a(0xb7)](generateCommandHelp(_0x4bf9fe));return;}await dispatchDeclarative(_0x4bf9fe,_0x176c6b,_0x2929db,_0x315278,_0x83f101,_0x235d81);}}async function dispatchDeclarative(_0x5e8b91,_0x1dc6c7,_0x483d29,_0x2c92dd,_0x356975,_0x39bbe8){const _0x43f67c=a11_0x1606ed,_0x239b69=Date[_0x43f67c(0xb4)]();let _0x6e07f3;try{await runCommand(_0x5e8b91,{'rawFlags':_0x356975,'args':_0x2c92dd,'resolveAppCode':()=>_0x39bbe8['appCode']||_0x356975['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x39bbe8[_0x43f67c(0xc6)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a11_0x14672d(_0x356975),'defaultFormat':_0x39bbe8[_0x43f67c(0xbd)],'defaultPageSize':_0x39bbe8[_0x43f67c(0xcf)],'defaultVerbose':_0x39bbe8[_0x43f67c(0xd9)],'apiDir':_0x39bbe8[_0x43f67c(0xac)],'riskLevel':_0x39bbe8[_0x43f67c(0xbb)],'selectedAppName':_0x39bbe8[_0x43f67c(0xba)]});}catch(_0x38dcbb){_0x6e07f3=_0x38dcbb;}await reportCommandTrace({'service':_0x1dc6c7,'command':_0x483d29,'flags':_0x356975,'durationMs':Date[_0x43f67c(0xb4)]()-_0x239b69,'error':_0x6e07f3});if(_0x6e07f3)await handleErrorAsync(_0x6e07f3);}function printServiceHelp(_0x3ff429){const _0x218fc9=a11_0x1606ed;console[_0x218fc9(0xb7)](generateServiceHelp(_0x3ff429));}async function handleErrorAsync(_0x5c35be){const _0x43f74f=a11_0x1606ed;if(_0x5c35be instanceof Error&&_0x5c35be[_0x43f74f(0xb0)]==='ExitPromptError')return process[_0x43f74f(0xd8)][_0x43f74f(0xa9)]('\x0aCancelled.\x0a'),await exitWithOtelShutdown(0x0);if(_0x5c35be instanceof CliError){if(_0x5c35be[_0x43f74f(0xd4)]==='cancelled')return process[_0x43f74f(0xd8)]['write']('\x0a'+_0x5c35be[_0x43f74f(0xd1)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x43f74f(0xb9)](_0x43f74f(0xb3)+_0x5c35be[_0x43f74f(0xd1)]);if(_0x5c35be['hint'])console[_0x43f74f(0xb9)](_0x43f74f(0xca)+_0x5c35be[_0x43f74f(0xb6)]);return await exitWithOtelShutdown(_0x5c35be[_0x43f74f(0xd0)]);}return console[_0x43f74f(0xb9)]('Unexpected\x20error:',_0x5c35be),await exitWithOtelShutdown(0x1);}
2
+ const a11_0x3a5643=a11_0x226b;(function(_0x161389,_0x4a8dbf){const _0x395544=a11_0x226b,_0x327e49=_0x161389();while(!![]){try{const _0x5cca10=-parseInt(_0x395544(0xa7))/0x1*(-parseInt(_0x395544(0xb3))/0x2)+-parseInt(_0x395544(0xab))/0x3+-parseInt(_0x395544(0xcd))/0x4*(parseInt(_0x395544(0xaf))/0x5)+parseInt(_0x395544(0xb7))/0x6*(-parseInt(_0x395544(0xb0))/0x7)+-parseInt(_0x395544(0xa4))/0x8*(parseInt(_0x395544(0xb5))/0x9)+parseInt(_0x395544(0xad))/0xa*(parseInt(_0x395544(0xd3))/0xb)+parseInt(_0x395544(0xae))/0xc;if(_0x5cca10===_0x4a8dbf)break;else _0x327e49['push'](_0x327e49['shift']());}catch(_0x2a9512){_0x327e49['push'](_0x327e49['shift']());}}}(a11_0x334d,0x33d8c));import a11_0x4659fd from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';function a11_0x226b(_0x1af04b,_0x314dd8){_0x1af04b=_0x1af04b-0xa3;const _0x334d5c=a11_0x334d();let _0x226bf5=_0x334d5c[_0x1af04b];return _0x226bf5;}import{isKnownService,getServiceEntry,findDefinition,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,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{isNonInteractive as a11_0x2be0d5}from'./utils/is-non-interactive.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;function a11_0x334d(){const _0x1844a4=['code','`\x20has\x20been\x20moved\x20to\x20`','3pJpoio','verbose','./constant/domain.js','flags','990714HDYEmw','apiDomain','10MAsFbg','7096440TZTjlQ','55730UjWsLg','212506QTMPla','error','raw','219088uAzxsD','unknown_service','2691nnuuvN','runtimeDomain','6mLSKbg','slice','./cli-flags.js','input','global','userDomain','Error:\x20','explicitAppName','\x0aCancelled.\x0a','riskLevel','pageSize','write','cancelled','message','exitCode','⚠\x20`','env','service','./constant/env.js','Unexpected\x20error:','dynamicCliFlags','help','8iRjNCR','defaultCommand','appCode','now','stderr','apiDir','904079oxXyns','Hint:\x20','unknown','wildcardDef','log','name','10888hGkxec'];a11_0x334d=function(){return _0x1844a4;};return a11_0x334d();}try{dynamicCliFlags=(await import(a11_0x3a5643(0xb9)))[a11_0x3a5643(0xcb)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a11_0x3a5643(0xd5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a11_0x3a5643(0xb8)](0x0,0xa)+')':VERSION,cli=a11_0x4659fd(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x2fb24f=a11_0x3a5643;let _0x5b2a2e=cli['input'][0x0],_0x5990f8=cli[_0x2fb24f(0xba)][0x1];const _0x26cdf0=cli[_0x2fb24f(0xaa)];if(!_0x5b2a2e){await reportCliHelpTrace(_0x2fb24f(0xbb)),showHelp();return;}const _0x14881d=deprecatedAliases[_0x5b2a2e];if(_0x14881d&&!isKnownService(_0x5b2a2e)){const _0x31ef36=_0x5990f8?CLI_BIN_NAME+'\x20'+_0x5b2a2e+'\x20'+_0x5990f8:CLI_BIN_NAME+'\x20'+_0x5b2a2e,_0x57cd50=CLI_BIN_NAME+'\x20'+_0x14881d[_0x2fb24f(0xc8)]+'\x20'+_0x14881d['command'];console['error'](_0x2fb24f(0xc6)+_0x31ef36+_0x2fb24f(0xa6)+_0x57cd50+'`\x20in\x20v2.0.\x0a'+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x5b2a2e)){await reportCliHelpTrace(_0x2fb24f(0xb4),{'service':_0x5b2a2e}),showHelp();return;}const _0x23e371=getServiceEntry(_0x5b2a2e);if(_0x26cdf0[_0x2fb24f(0xc7)]&&typeof _0x26cdf0['env']==='string'){const {initEnv:_0x1b28d7}=await import(_0x2fb24f(0xc9));_0x1b28d7(_0x26cdf0['env']);}const {buildConfigFromFlags:_0x5309f4}=await import('./context.js'),_0x26194c=_0x5309f4(_0x26cdf0);if(!_0x26cdf0[_0x2fb24f(0xc7)]&&_0x26194c[_0x2fb24f(0xc7)]){const {initEnv:_0x321236}=await import(_0x2fb24f(0xc9));_0x321236(_0x26194c[_0x2fb24f(0xc7)]);}if(_0x26194c[_0x2fb24f(0xb2)]?.[_0x2fb24f(0xac)]||_0x26194c[_0x2fb24f(0xb2)]?.[_0x2fb24f(0xbc)]||_0x26194c[_0x2fb24f(0xb2)]?.[_0x2fb24f(0xb6)]){const {initDomains:_0x5b755f}=await import(_0x2fb24f(0xa9));_0x5b755f({'apiDomain':_0x26194c['raw'][_0x2fb24f(0xac)]||undefined,'userDomain':_0x26194c[_0x2fb24f(0xb2)][_0x2fb24f(0xbc)]||undefined,'runtimeDomain':_0x26194c['raw'][_0x2fb24f(0xb6)]||undefined});}if(!_0x5990f8){if(_0x23e371['defaultCommand'])_0x5990f8=_0x23e371[_0x2fb24f(0xce)];else{if(_0x23e371[_0x2fb24f(0xd6)]){if(_0x26cdf0[_0x2fb24f(0xcc)]){console['log'](generateCommandHelp(_0x23e371['wildcardDef']));return;}await dispatchDeclarative(_0x23e371['wildcardDef'],_0x5b2a2e,'',[],_0x26cdf0,_0x26194c);return;}else{printServiceHelp(_0x5b2a2e);return;}}}if(_0x26cdf0[_0x2fb24f(0xcc)]&&!findDefinition(_0x5b2a2e,_0x5990f8)){printServiceHelp(_0x5b2a2e);return;}{let _0x3cd8a8=findDefinition(_0x5b2a2e,_0x5990f8),_0x5d146b=cli['input'][_0x2fb24f(0xb8)](0x2);if(!_0x3cd8a8){if(_0x23e371[_0x2fb24f(0xd6)]){if(_0x26cdf0[_0x2fb24f(0xcc)]){console['log'](generateCommandHelp(_0x23e371[_0x2fb24f(0xd6)]));return;}_0x3cd8a8=_0x23e371[_0x2fb24f(0xd6)],_0x5d146b=[_0x5990f8,...cli[_0x2fb24f(0xba)]['slice'](0x2)];}else{printServiceHelp(_0x5b2a2e),await handleErrorAsync(CliErrors['unknownCommand'](_0x5b2a2e+'\x20'+_0x5990f8));return;}}if(_0x26cdf0[_0x2fb24f(0xcc)]){console['log'](generateCommandHelp(_0x3cd8a8));return;}await dispatchDeclarative(_0x3cd8a8,_0x5b2a2e,_0x5990f8,_0x5d146b,_0x26cdf0,_0x26194c);}}async function dispatchDeclarative(_0x3aa95a,_0x5444fa,_0x1dd650,_0x5e6c63,_0x5460f6,_0x5618ca){const _0x14dd1a=a11_0x3a5643,_0x454441=Date[_0x14dd1a(0xd0)]();let _0x39f99b;try{await runCommand(_0x3aa95a,{'rawFlags':_0x5460f6,'args':_0x5e6c63,'resolveAppCode':()=>_0x5618ca[_0x14dd1a(0xcf)]||_0x5460f6['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x5618ca['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a11_0x2be0d5(_0x5460f6),'defaultFormat':_0x5618ca['format'],'defaultPageSize':_0x5618ca[_0x14dd1a(0xc1)],'defaultVerbose':_0x5618ca[_0x14dd1a(0xa8)],'apiDir':_0x5618ca[_0x14dd1a(0xd2)],'riskLevel':_0x5618ca[_0x14dd1a(0xc0)],'selectedAppName':_0x5618ca[_0x14dd1a(0xbe)]});}catch(_0x9e6ff8){_0x39f99b=_0x9e6ff8;}await reportCommandTrace({'service':_0x5444fa,'command':_0x1dd650,'flags':_0x5460f6,'durationMs':Date['now']()-_0x454441,'error':_0x39f99b});if(_0x39f99b)await handleErrorAsync(_0x39f99b);}function printServiceHelp(_0x10fc90){const _0x3c3955=a11_0x3a5643;console[_0x3c3955(0xd7)](generateServiceHelp(_0x10fc90));}async function handleErrorAsync(_0x47bf9b){const _0x290ae4=a11_0x3a5643;if(_0x47bf9b instanceof Error&&_0x47bf9b[_0x290ae4(0xa3)]==='ExitPromptError')return process[_0x290ae4(0xd1)][_0x290ae4(0xc2)](_0x290ae4(0xbf)),await exitWithOtelShutdown(0x0);if(_0x47bf9b instanceof CliError){if(_0x47bf9b[_0x290ae4(0xa5)]===_0x290ae4(0xc3))return process[_0x290ae4(0xd1)][_0x290ae4(0xc2)]('\x0a'+_0x47bf9b[_0x290ae4(0xc4)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x290ae4(0xb1)](_0x290ae4(0xbd)+_0x47bf9b[_0x290ae4(0xc4)]);if(_0x47bf9b['hint'])console[_0x290ae4(0xb1)](_0x290ae4(0xd4)+_0x47bf9b['hint']);return await exitWithOtelShutdown(_0x47bf9b[_0x290ae4(0xc5)]);}return console[_0x290ae4(0xb1)](_0x290ae4(0xca),_0x47bf9b),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- function a12_0x202d(){const _0x307ae2=['cookie','\x20doc(s)\x20in\x20','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','string','--datasetcode\x20cannot\x20be\x20empty.','Output\x20directory\x20(default:\x20./docs)','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','Fetching\x20dataset\x20list\x20for\x20','output','fail','message','datasetcode','object','succeed','str','params','65107XMWssB','!\x20No\x20datasets\x20found.','362388ssdzsj','split','has','\x20succeeded,\x20','\x20failed','Invalid\x20--params:\x20','doc','success','12tCuuRs','filter','\x1b[0m','454226RzasBP','api','184017TxXSzj','log','datasetCode','appCode','trim','\x20\x20•\x20','Doc\x20generation\x20complete:\x20','parse','isArray','40nAElWP','Fetched\x20','validation','length','error','./docs','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','7608186RIuXiT','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','.md','write','some','join','\x20dataset(s)\x1b[0m','\x1b[90m*\x20Filtered\x20','datasetName','stdout','856690vaMmdK','start','\x20doc(s)\x20failed','146984bkdmGV','...','):\x20'];a12_0x202d=function(){return _0x307ae2;};return a12_0x202d();}function a12_0x4c77(_0x303077,_0x28b20e){_0x303077=_0x303077-0x174;const _0x202d09=a12_0x202d();let _0x4c7785=_0x202d09[_0x303077];return _0x4c7785;}const a12_0x5e4261=a12_0x4c77;(function(_0x4b5599,_0x187067){const _0x28ac3c=a12_0x4c77,_0x5763ce=_0x4b5599();while(!![]){try{const _0x4d8807=-parseInt(_0x28ac3c(0x1a0))/0x1+-parseInt(_0x28ac3c(0x181))/0x2+-parseInt(_0x28ac3c(0x183))/0x3*(parseInt(_0x28ac3c(0x17e))/0x4)+-parseInt(_0x28ac3c(0x19d))/0x5+parseInt(_0x28ac3c(0x176))/0x6+parseInt(_0x28ac3c(0x174))/0x7*(-parseInt(_0x28ac3c(0x18c))/0x8)+parseInt(_0x28ac3c(0x193))/0x9;if(_0x4d8807===_0x187067)break;else _0x5763ce['push'](_0x5763ce['shift']());}catch(_0x28fcd0){_0x5763ce['push'](_0x5763ce['shift']());}}}(a12_0x202d,0x1fb03));import a12_0x1b076e from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const apiDoc={'service':a12_0x5e4261(0x182),'command':a12_0x5e4261(0x17c),'description':a12_0x5e4261(0x1a5),'risk':a12_0x5e4261(0x196),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a12_0x5e4261(0x1ab),'type':'string','description':a12_0x5e4261(0x1a8)},{'name':a12_0x5e4261(0x1ae),'type':a12_0x5e4261(0x1a6),'description':a12_0x5e4261(0x1a9)},{'name':a12_0x5e4261(0x1b2),'type':a12_0x5e4261(0x1a6),'description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x3cd4b4){const _0x3488b2=a12_0x5e4261,_0x46b6fe=_0x3cd4b4[_0x3488b2(0x1b1)](_0x3488b2(0x1ab))||_0x3488b2(0x191),_0xf6d11f=_0x3cd4b4[_0x3488b2(0x1b1)](_0x3488b2(0x1ae)),_0x505ea3=_0x3cd4b4[_0x3488b2(0x1b1)](_0x3488b2(0x1b2));let _0x5e2b4f;if(_0x505ea3)try{_0x5e2b4f=JSON[_0x3488b2(0x18a)](_0x505ea3);if(typeof _0x5e2b4f!==_0x3488b2(0x1af)||_0x5e2b4f===null||Array[_0x3488b2(0x18b)](_0x5e2b4f))throw new Error('must\x20be\x20a\x20JSON\x20object');}catch(_0x5b3d05){throw CliErrors[_0x3488b2(0x18e)](_0x3488b2(0x17b)+(_0x5b3d05 instanceof Error?_0x5b3d05[_0x3488b2(0x1ad)]:String(_0x5b3d05)),_0x3488b2(0x192));}let _0x1ca3fc;if(_0xf6d11f){const _0x5ba2ed=_0xf6d11f[_0x3488b2(0x177)](',')['map'](_0x412df3=>_0x412df3[_0x3488b2(0x187)]())[_0x3488b2(0x17f)](_0x3f0c45=>_0x3f0c45[_0x3488b2(0x18f)]>0x0);if(_0x5ba2ed[_0x3488b2(0x18f)]===0x0)throw CliErrors[_0x3488b2(0x18e)](_0x3488b2(0x1a7));_0x1ca3fc=new Set(_0x5ba2ed),console[_0x3488b2(0x184)]('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x5ba2ed[_0x3488b2(0x198)](',\x20')+_0x3488b2(0x180));}const _0x24e1bd=a12_0x1b076e(_0x3488b2(0x1aa)+_0x3cd4b4[_0x3488b2(0x186)]+_0x3488b2(0x1a1))[_0x3488b2(0x19e)]();let _0x234274;try{({configArray:_0x234274}=await fetchModelList(_0x3cd4b4['appCode'],_0x3cd4b4[_0x3488b2(0x1a3)]),_0x24e1bd[_0x3488b2(0x1b0)](_0x3488b2(0x18d)+_0x234274[_0x3488b2(0x18f)]+'\x20dataset(s)'));}catch(_0x118dac){_0x24e1bd[_0x3488b2(0x1ac)]('Failed\x20to\x20fetch\x20datasets');throw _0x118dac;}if(_0x234274['length']===0x0)return console[_0x3488b2(0x184)](_0x3488b2(0x175)),{'ok':!![]};let _0x23abaa=_0x234274;if(_0x1ca3fc){_0x23abaa=_0x234274[_0x3488b2(0x17f)](_0x4b6579=>_0x1ca3fc[_0x3488b2(0x178)](_0x4b6579['datasetCode']));const _0x525740=[..._0x1ca3fc][_0x3488b2(0x17f)](_0x354351=>!_0x234274[_0x3488b2(0x197)](_0x1c4c59=>_0x1c4c59[_0x3488b2(0x185)]===_0x354351));_0x525740[_0x3488b2(0x18f)]>0x0&&console[_0x3488b2(0x184)](_0x3488b2(0x194)+_0x525740[_0x3488b2(0x198)](',\x20')+_0x3488b2(0x180));if(_0x23abaa[_0x3488b2(0x18f)]===0x0)throw CliErrors[_0x3488b2(0x18e)]('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x1ca3fc][_0x3488b2(0x198)](',\x20'));console[_0x3488b2(0x184)](_0x3488b2(0x19a)+_0x23abaa[_0x3488b2(0x18f)]+'\x20of\x20'+_0x234274['length']+_0x3488b2(0x199));}let _0x41c67b=0x0;const _0x4a6be0=await generateDatasetDocs(_0x23abaa,_0x3cd4b4[_0x3488b2(0x186)],_0x3cd4b4[_0x3488b2(0x1a3)],_0x46b6fe,(_0x5eb0d4,_0x3bed85,_0x38f96d)=>{const _0x21500d=_0x3488b2;_0x41c67b=_0x5eb0d4,process[_0x21500d(0x19c)][_0x21500d(0x196)]('\x0d\x20\x20['+String(_0x5eb0d4)['padStart'](String(_0x3bed85)[_0x21500d(0x18f)])+'/'+_0x3bed85+']\x20'+_0x38f96d+_0x21500d(0x195));},_0x5e2b4f);if(_0x41c67b>0x0)process[_0x3488b2(0x19c)][_0x3488b2(0x196)]('\x0a');const _0x5ee831=_0x4a6be0[_0x3488b2(0x17f)](_0x45f257=>_0x45f257[_0x3488b2(0x17d)])['length'],_0xa1abc0=_0x4a6be0[_0x3488b2(0x17f)](_0x50d36b=>!_0x50d36b['success'])[_0x3488b2(0x18f)];console[_0x3488b2(0x184)](),console[_0x3488b2(0x184)]('✓\x20Generated\x20'+_0x5ee831+_0x3488b2(0x1a4)+_0x46b6fe);if(_0xa1abc0>0x0){console[_0x3488b2(0x190)]('!\x20'+_0xa1abc0+_0x3488b2(0x19f));for(const _0x185800 of _0x4a6be0[_0x3488b2(0x17f)](_0x1411b5=>!_0x1411b5['success'])){console[_0x3488b2(0x190)](_0x3488b2(0x188)+_0x185800[_0x3488b2(0x19b)]+'\x20('+_0x185800[_0x3488b2(0x185)]+_0x3488b2(0x1a2)+_0x185800[_0x3488b2(0x190)]);}}return{'ok':_0xa1abc0===0x0,'message':_0xa1abc0>0x0?'Doc\x20generation:\x20'+_0x5ee831+_0x3488b2(0x179)+_0xa1abc0+_0x3488b2(0x17a):_0x3488b2(0x189)+_0x5ee831+'\x20file(s)'};}};
1
+ const a12_0x4e91ec=a12_0x3ef7;(function(_0x528c95,_0x60a026){const _0x8ec011=a12_0x3ef7,_0x2007bc=_0x528c95();while(!![]){try{const _0xf9cab9=parseInt(_0x8ec011(0xac))/0x1*(-parseInt(_0x8ec011(0xbf))/0x2)+-parseInt(_0x8ec011(0xcc))/0x3*(parseInt(_0x8ec011(0xa6))/0x4)+parseInt(_0x8ec011(0xaf))/0x5+parseInt(_0x8ec011(0xa7))/0x6*(-parseInt(_0x8ec011(0xc1))/0x7)+parseInt(_0x8ec011(0xd3))/0x8*(parseInt(_0x8ec011(0xb5))/0x9)+parseInt(_0x8ec011(0xd4))/0xa*(parseInt(_0x8ec011(0xd5))/0xb)+parseInt(_0x8ec011(0xb0))/0xc;if(_0xf9cab9===_0x60a026)break;else _0x2007bc['push'](_0x2007bc['shift']());}catch(_0x5ec8e7){_0x2007bc['push'](_0x2007bc['shift']());}}}(a12_0x5641,0xc79c4));import a12_0xb5834b from'ora';function a12_0x3ef7(_0x138c58,_0x114279){_0x138c58=_0x138c58-0x9a;const _0x5641da=a12_0x5641();let _0x3ef7e9=_0x5641da[_0x138c58];return _0x3ef7e9;}function a12_0x5641(){const _0x203c1b=['join','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','string','str','.md','):\x20','some','doc','20RHsJXb','appCode','2262365WRfCAk','validation','\x20doc(s)\x20failed','success','\x0d\x20\x20[','message','\x1b[0m','...','isArray','\x20of\x20','succeed','1665etMqLc','output','parse','!\x20No\x20datasets\x20found.','length','start','write','2264632DClkmU','6206390SPfxAb','11wVENHa','split','filter','api','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','Doc\x20generation\x20complete:\x20','✓\x20Generated\x20','\x20failed','Doc\x20generation:\x20','\x20doc(s)\x20in\x20','datasetCode','must\x20be\x20a\x20JSON\x20object','datasetcode','params','\x20dataset(s)\x1b[0m','\x20file(s)','\x1b[90m*\x20Generating\x20docs\x20for:\x20','object','./docs','map','4204mgIffg','30sSDWom','datasetName','Fetched\x20','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','padStart','67059ukMCxR','\x20dataset(s)','stdout','3532830WSNerJ','24926280sQtErd','\x20\x20•\x20','trim','log','cookie','9RugFeZ','--datasetcode\x20cannot\x20be\x20empty.'];a12_0x5641=function(){return _0x203c1b;};return a12_0x5641();}import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const apiDoc={'service':a12_0x4e91ec(0xd8),'command':a12_0x4e91ec(0xbe),'description':a12_0x4e91ec(0xd9),'risk':a12_0x4e91ec(0xd2),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a12_0x4e91ec(0xcd),'type':a12_0x4e91ec(0xb9),'description':'Output\x20directory\x20(default:\x20./docs)'},{'name':a12_0x4e91ec(0x9e),'type':a12_0x4e91ec(0xb9),'description':'Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for'},{'name':a12_0x4e91ec(0x9f),'type':a12_0x4e91ec(0xb9),'description':a12_0x4e91ec(0xaa)}],async 'execute'(_0x3f35ba){const _0x3fc189=a12_0x4e91ec,_0x4a6116=_0x3f35ba[_0x3fc189(0xba)](_0x3fc189(0xcd))||_0x3fc189(0xa4),_0x209cc9=_0x3f35ba[_0x3fc189(0xba)](_0x3fc189(0x9e)),_0x32aeec=_0x3f35ba[_0x3fc189(0xba)](_0x3fc189(0x9f));let _0x46986a;if(_0x32aeec)try{_0x46986a=JSON[_0x3fc189(0xce)](_0x32aeec);if(typeof _0x46986a!==_0x3fc189(0xa3)||_0x46986a===null||Array[_0x3fc189(0xc9)](_0x46986a))throw new Error(_0x3fc189(0x9d));}catch(_0x240b32){throw CliErrors[_0x3fc189(0xc2)]('Invalid\x20--params:\x20'+(_0x240b32 instanceof Error?_0x240b32[_0x3fc189(0xc6)]:String(_0x240b32)),'Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27');}let _0x5014bb;if(_0x209cc9){const _0xe9ea71=_0x209cc9[_0x3fc189(0xd6)](',')[_0x3fc189(0xa5)](_0xc4f1fd=>_0xc4f1fd[_0x3fc189(0xb2)]())['filter'](_0x25a688=>_0x25a688['length']>0x0);if(_0xe9ea71[_0x3fc189(0xd0)]===0x0)throw CliErrors[_0x3fc189(0xc2)](_0x3fc189(0xb6));_0x5014bb=new Set(_0xe9ea71),console['log'](_0x3fc189(0xa2)+_0xe9ea71[_0x3fc189(0xb7)](',\x20')+_0x3fc189(0xc7));}const _0x57d426=a12_0xb5834b('Fetching\x20dataset\x20list\x20for\x20'+_0x3f35ba[_0x3fc189(0xc0)]+_0x3fc189(0xc8))[_0x3fc189(0xd1)]();let _0x397a13;try{({configArray:_0x397a13}=await fetchModelList(_0x3f35ba[_0x3fc189(0xc0)],_0x3f35ba[_0x3fc189(0xb4)]),_0x57d426[_0x3fc189(0xcb)](_0x3fc189(0xa9)+_0x397a13['length']+_0x3fc189(0xad)));}catch(_0x527725){_0x57d426['fail']('Failed\x20to\x20fetch\x20datasets');throw _0x527725;}if(_0x397a13[_0x3fc189(0xd0)]===0x0)return console[_0x3fc189(0xb3)](_0x3fc189(0xcf)),{'ok':!![]};let _0x1e3da2=_0x397a13;if(_0x5014bb){_0x1e3da2=_0x397a13[_0x3fc189(0xd7)](_0x4e4413=>_0x5014bb['has'](_0x4e4413[_0x3fc189(0x9c)]));const _0x19a359=[..._0x5014bb][_0x3fc189(0xd7)](_0x509971=>!_0x397a13[_0x3fc189(0xbd)](_0x3e5626=>_0x3e5626[_0x3fc189(0x9c)]===_0x509971));_0x19a359[_0x3fc189(0xd0)]>0x0&&console[_0x3fc189(0xb3)]('\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20'+_0x19a359[_0x3fc189(0xb7)](',\x20')+_0x3fc189(0xc7));if(_0x1e3da2[_0x3fc189(0xd0)]===0x0)throw CliErrors['validation'](_0x3fc189(0xb8)+[..._0x5014bb][_0x3fc189(0xb7)](',\x20'));console['log']('\x1b[90m*\x20Filtered\x20'+_0x1e3da2['length']+_0x3fc189(0xca)+_0x397a13[_0x3fc189(0xd0)]+_0x3fc189(0xa0));}let _0x493015=0x0;const _0x51af42=await generateDatasetDocs(_0x1e3da2,_0x3f35ba[_0x3fc189(0xc0)],_0x3f35ba[_0x3fc189(0xb4)],_0x4a6116,(_0x2d2bec,_0x5a6e91,_0x3e3ce9)=>{const _0x10dce9=_0x3fc189;_0x493015=_0x2d2bec,process[_0x10dce9(0xae)]['write'](_0x10dce9(0xc5)+String(_0x2d2bec)[_0x10dce9(0xab)](String(_0x5a6e91)['length'])+'/'+_0x5a6e91+']\x20'+_0x3e3ce9+_0x10dce9(0xbb));},_0x46986a);if(_0x493015>0x0)process[_0x3fc189(0xae)][_0x3fc189(0xd2)]('\x0a');const _0x2fda28=_0x51af42[_0x3fc189(0xd7)](_0x40e169=>_0x40e169[_0x3fc189(0xc4)])[_0x3fc189(0xd0)],_0xa09c4c=_0x51af42['filter'](_0x543568=>!_0x543568[_0x3fc189(0xc4)])[_0x3fc189(0xd0)];console[_0x3fc189(0xb3)](),console[_0x3fc189(0xb3)](_0x3fc189(0xdb)+_0x2fda28+_0x3fc189(0x9b)+_0x4a6116);if(_0xa09c4c>0x0){console['error']('!\x20'+_0xa09c4c+_0x3fc189(0xc3));for(const _0xd43fb2 of _0x51af42[_0x3fc189(0xd7)](_0x811267=>!_0x811267[_0x3fc189(0xc4)])){console['error'](_0x3fc189(0xb1)+_0xd43fb2[_0x3fc189(0xa8)]+'\x20('+_0xd43fb2[_0x3fc189(0x9c)]+_0x3fc189(0xbc)+_0xd43fb2['error']);}}return{'ok':_0xa09c4c===0x0,'message':_0xa09c4c>0x0?_0x3fc189(0x9a)+_0x2fda28+'\x20succeeded,\x20'+_0xa09c4c+_0x3fc189(0xdc):_0x3fc189(0xda)+_0x2fda28+_0x3fc189(0xa1)};}};
@@ -1 +1 @@
1
- (function(_0x333743,_0x3d8e18){const _0x3381d4=a13_0x584b,_0x3a3c7e=_0x333743();while(!![]){try{const _0x3f6c8a=parseInt(_0x3381d4(0x7c))/0x1*(parseInt(_0x3381d4(0x7e))/0x2)+-parseInt(_0x3381d4(0x77))/0x3*(-parseInt(_0x3381d4(0x7f))/0x4)+-parseInt(_0x3381d4(0x7b))/0x5+-parseInt(_0x3381d4(0x80))/0x6*(parseInt(_0x3381d4(0x7d))/0x7)+-parseInt(_0x3381d4(0x78))/0x8*(-parseInt(_0x3381d4(0x76))/0x9)+-parseInt(_0x3381d4(0x79))/0xa+parseInt(_0x3381d4(0x7a))/0xb*(parseInt(_0x3381d4(0x75))/0xc);if(_0x3f6c8a===_0x3d8e18)break;else _0x3a3c7e['push'](_0x3a3c7e['shift']());}catch(_0x5b0f53){_0x3a3c7e['push'](_0x3a3c7e['shift']());}}}(a13_0x2d6d,0xb6007));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';function a13_0x2d6d(){const _0x5315fa=['4517840wuAKug','3444700WDSHvS','33VEtTfQ','6584780FWPqGR','7bCfoWD','2211503ATdUOt','240668ghQqgn','4OoxNRP','24CRPTYZ','6529668BBiNaf','18tSIYur','199218VspZsB'];a13_0x2d6d=function(){return _0x5315fa;};return a13_0x2d6d();}function a13_0x584b(_0x34fc01,_0x11b05a){_0x34fc01=_0x34fc01-0x75;const _0x2d6dc0=a13_0x2d6d();let _0x584b5c=_0x2d6dc0[_0x34fc01];return _0x584b5c;}import{apiDoc}from'../../commands/api/doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];
1
+ function a13_0x7911(){const _0x3c81cf=['1953264joMASV','150xLoifM','82065KMVIgt','140ZypuUE','2528612NstPXV','58880vSWusc','241209VCuXJb','6QHSMcy','1514247ahiYcY','3571491yztIaJ'];a13_0x7911=function(){return _0x3c81cf;};return a13_0x7911();}(function(_0x11cbf0,_0x3fa44c){const _0xc3423c=a13_0x416e,_0x58fcad=_0x11cbf0();while(!![]){try{const _0x506553=parseInt(_0xc3423c(0x120))/0x1*(parseInt(_0xc3423c(0x11b))/0x2)+parseInt(_0xc3423c(0x11d))/0x3+-parseInt(_0xc3423c(0x122))/0x4+-parseInt(_0xc3423c(0x119))/0x5*(-parseInt(_0xc3423c(0x11f))/0x6)+-parseInt(_0xc3423c(0x11c))/0x7+parseInt(_0xc3423c(0x11e))/0x8+-parseInt(_0xc3423c(0x11a))/0x9*(parseInt(_0xc3423c(0x121))/0xa);if(_0x506553===_0x3fa44c)break;else _0x58fcad['push'](_0x58fcad['shift']());}catch(_0x2e4fa7){_0x58fcad['push'](_0x58fcad['shift']());}}}(a13_0x7911,0xb77ca));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';function a13_0x416e(_0xf53f06,_0x225800){_0xf53f06=_0xf53f06-0x119;const _0x79115f=a13_0x7911();let _0x416ef3=_0x79115f[_0xf53f06];return _0x416ef3;}import{apiDoc}from'../../commands/api/doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];
@@ -1 +1 @@
1
- const a14_0x512de6=a14_0x3c6a;function a14_0x3c6a(_0x1c9aa9,_0x3b1388){_0x1c9aa9=_0x1c9aa9-0x163;const _0x3faecb=a14_0x3fae();let _0x3c6a63=_0x3faecb[_0x1c9aa9];return _0x3c6a63;}(function(_0x46825a,_0xf11c42){const _0x46f573=a14_0x3c6a,_0x599a1d=_0x46825a();while(!![]){try{const _0x314da5=parseInt(_0x46f573(0x171))/0x1+parseInt(_0x46f573(0x16d))/0x2+parseInt(_0x46f573(0x177))/0x3*(-parseInt(_0x46f573(0x16e))/0x4)+-parseInt(_0x46f573(0x164))/0x5*(parseInt(_0x46f573(0x170))/0x6)+parseInt(_0x46f573(0x179))/0x7+parseInt(_0x46f573(0x169))/0x8*(parseInt(_0x46f573(0x174))/0x9)+-parseInt(_0x46f573(0x172))/0xa;if(_0x314da5===_0xf11c42)break;else _0x599a1d['push'](_0x599a1d['shift']());}catch(_0x508ca0){_0x599a1d['push'](_0x599a1d['shift']());}}}(a14_0x3fae,0x59437));function a14_0x3fae(){const _0x541e7c=['str','45jxZQqe','cookie','name','168027yCOTKk','isDefault','2155342HzfxIe','appcode','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','3855Gtdztn','api','global','read','env','1150520OTJANK','boolean','list','appCode','1305554KNpfmk','4jszGBv','production','1758LZKryZ','457838hWIeVo','14900610ddhNPJ'];a14_0x3fae=function(){return _0x541e7c;};return a14_0x3fae();}import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a14_0x512de6(0x165),'command':a14_0x512de6(0x16b),'description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':a14_0x512de6(0x167),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a14_0x512de6(0x166),'type':a14_0x512de6(0x16a),'description':a14_0x512de6(0x163),'default':![]}],async 'execute'(_0x1d6243){const _0x440919=a14_0x512de6,_0x547929=_0x1d6243[_0x440919(0x173)]('appcode'),_0x22875f=resolveTargetApps(_0x1d6243,_0x547929);if(_0x22875f){const _0x19d43d=[];for(const _0x3516c0 of _0x22875f){const _0x4e6853=_0x3516c0[_0x440919(0x175)]||_0x1d6243[_0x440919(0x175)],_0x5246c4=_0x3516c0[_0x440919(0x168)]||_0x440919(0x16f);initEnv(_0x5246c4);const {configArray:_0x29d4c0}=await fetchModelList(_0x3516c0[_0x440919(0x17a)],_0x4e6853);_0x19d43d['push'](..._0x29d4c0['map'](_0xc2694c=>({..._0xc2694c,'_appName':_0x3516c0[_0x440919(0x176)],'_appCode':_0x3516c0[_0x440919(0x17a)],'_env':_0x5246c4,'_isDefault':_0x3516c0[_0x440919(0x178)]})));}return{'ok':!![],'data':_0x19d43d};}const {configArray:_0x4473b5}=await fetchModelList(_0x1d6243[_0x440919(0x16c)],_0x1d6243['cookie']);return{'ok':!![],'data':_0x4473b5};}};
1
+ const a14_0x5da401=a14_0x2c6f;(function(_0x8c3637,_0x367fcc){const _0x52696d=a14_0x2c6f,_0x4068b8=_0x8c3637();while(!![]){try{const _0x268736=parseInt(_0x52696d(0x162))/0x1*(parseInt(_0x52696d(0x15b))/0x2)+-parseInt(_0x52696d(0x170))/0x3+parseInt(_0x52696d(0x16d))/0x4+parseInt(_0x52696d(0x168))/0x5*(-parseInt(_0x52696d(0x16e))/0x6)+-parseInt(_0x52696d(0x164))/0x7+parseInt(_0x52696d(0x159))/0x8+parseInt(_0x52696d(0x15a))/0x9;if(_0x268736===_0x367fcc)break;else _0x4068b8['push'](_0x4068b8['shift']());}catch(_0x53a1da){_0x4068b8['push'](_0x4068b8['shift']());}}}(a14_0x242c,0x784ef));import{initEnv}from'../../constant/env.js';function a14_0x242c(){const _0x2cf2f6=['Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','str','production','cookie','push','2951dRUXpN','env','9485aSKEOb','appcode','boolean','name','904510vlupWx','api','list','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','global','2433516RZqRDk','24czpHNC','appCode','1792017gdPLbO','5972032imNLpJ','3345048HAmoUa','60hxuWDs','read'];a14_0x242c=function(){return _0x2cf2f6;};return a14_0x242c();}import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a14_0x2c6f(_0x5ce0fc,_0x29d0ef){_0x5ce0fc=_0x5ce0fc-0x159;const _0x242c75=a14_0x242c();let _0x2c6ffe=_0x242c75[_0x5ce0fc];return _0x2c6ffe;}import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a14_0x5da401(0x169),'command':a14_0x5da401(0x16a),'description':a14_0x5da401(0x16b),'risk':a14_0x5da401(0x15c),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a14_0x5da401(0x16c),'type':a14_0x5da401(0x166),'description':a14_0x5da401(0x15d),'default':![]}],async 'execute'(_0x2912b1){const _0x431c5d=a14_0x5da401,_0x3281c3=_0x2912b1[_0x431c5d(0x15e)]('appcode'),_0x50ec7d=resolveTargetApps(_0x2912b1,_0x3281c3);if(_0x50ec7d){const _0x275aa4=[];for(const _0x3640a6 of _0x50ec7d){const _0x792d19=_0x3640a6[_0x431c5d(0x160)]||_0x2912b1['cookie'],_0x1e8d48=_0x3640a6[_0x431c5d(0x163)]||_0x431c5d(0x15f);initEnv(_0x1e8d48);const {configArray:_0x492657}=await fetchModelList(_0x3640a6[_0x431c5d(0x165)],_0x792d19);_0x275aa4[_0x431c5d(0x161)](..._0x492657['map'](_0x52e628=>({..._0x52e628,'_appName':_0x3640a6[_0x431c5d(0x167)],'_appCode':_0x3640a6['appcode'],'_env':_0x1e8d48,'_isDefault':_0x3640a6['isDefault']})));}return{'ok':!![],'data':_0x275aa4};}const {configArray:_0x7b9234}=await fetchModelList(_0x2912b1[_0x431c5d(0x16f)],_0x2912b1[_0x431c5d(0x160)]);return{'ok':!![],'data':_0x7b9234};}};
@@ -1 +1 @@
1
- const a15_0x480104=a15_0x5f82;(function(_0x5882e3,_0x541bcc){const _0x52d4c6=a15_0x5f82,_0x25a4cf=_0x5882e3();while(!![]){try{const _0x1a58c9=parseInt(_0x52d4c6(0x17c))/0x1*(parseInt(_0x52d4c6(0x17e))/0x2)+parseInt(_0x52d4c6(0x181))/0x3*(parseInt(_0x52d4c6(0x199))/0x4)+-parseInt(_0x52d4c6(0x16d))/0x5*(parseInt(_0x52d4c6(0x167))/0x6)+-parseInt(_0x52d4c6(0x19c))/0x7+-parseInt(_0x52d4c6(0x180))/0x8+parseInt(_0x52d4c6(0x16b))/0x9*(-parseInt(_0x52d4c6(0x174))/0xa)+-parseInt(_0x52d4c6(0x19a))/0xb*(-parseInt(_0x52d4c6(0x189))/0xc);if(_0x1a58c9===_0x541bcc)break;else _0x25a4cf['push'](_0x25a4cf['shift']());}catch(_0x3fc8e2){_0x25a4cf['push'](_0x25a4cf['shift']());}}}(a15_0x58ed,0x80b95));import a15_0x2d5f0d from'ora';import a15_0x1a2659 from'node:path';function a15_0x5f82(_0x444904,_0x4079b7){_0x444904=_0x444904-0x164;const _0x58ed6a=a15_0x58ed();let _0x5f8278=_0x58ed6a[_0x444904];return _0x5f8278;}import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x58ed(){const _0x51255d=['\x20app(s)\x20failed','996pTrnys','includes','Pulling\x20API\x20config\x20for\x20','\x20dataset(s),\x20generated\x20','Done:\x20','string','appCode','name','length',')...','write','join','cookie','message','output','modelCount','8CbLJuL','183117EwIUut','env','5778591lpCjVY','appcode','\x20dataset(s)\x20→\x20','str','761916caTJCL','error','Output\x20directory\x20(default:\x20','fail','2638908XXNJJx','api','5AEUlyT','apiDir','pull','apiFilePath','isDefault','log','split','10BBvQQG','clientFilePath','-client','Pulled\x20','\x20failed','Failed:\x20','global','Pulling\x20','1tnLHXU','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','1799090qjWXMW','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','4754464gZZvco','129039bonUrK','\x20succeeded,\x20','succeed','production','\x20\x20•\x20','start','...'];a15_0x58ed=function(){return _0x51255d;};return a15_0x58ed();}import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiPull={'service':a15_0x480104(0x16c),'command':a15_0x480104(0x16f),'description':a15_0x480104(0x17f)+DEFAULT_API_DIR+'/)','risk':a15_0x480104(0x193),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x480104(0x197),'type':a15_0x480104(0x18e),'description':a15_0x480104(0x169)+DEFAULT_API_DIR+'/)'},{'name':a15_0x480104(0x17a),'type':'boolean','description':a15_0x480104(0x17d),'default':![]}],async 'execute'(_0x5ab613){const _0x30f56c=a15_0x480104,_0x15464c=_0x5ab613['str']('appcode'),_0x55e748=_0x5ab613[_0x30f56c(0x166)](_0x30f56c(0x197))||undefined,_0x43038d=resolveTargetApps(_0x5ab613,_0x15464c);if(_0x43038d){let _0x489710=0x0,_0x43293f=0x0;for(const _0x50a6f2 of _0x43038d){const _0x47e425=_0x50a6f2[_0x30f56c(0x195)]||_0x5ab613[_0x30f56c(0x195)],_0x16bb65=_0x50a6f2[_0x30f56c(0x19b)]||_0x30f56c(0x184);initEnv(_0x16bb65);const _0xfefca7=_0x50a6f2[_0x30f56c(0x16e)]||_0x55e748||_0x5ab613['apiDir']||DEFAULT_API_DIR,_0x59e975=_0x50a6f2[_0x30f56c(0x171)]?'':_0x50a6f2[_0x30f56c(0x190)]||_0x50a6f2[_0x30f56c(0x164)],_0x1908d9=a15_0x2d5f0d(_0x30f56c(0x17b)+_0x50a6f2[_0x30f56c(0x190)]+'\x20('+_0x50a6f2[_0x30f56c(0x164)]+_0x30f56c(0x192))[_0x30f56c(0x186)]();try{const {configArray:_0x41c21a}=await fetchModelList(_0x50a6f2['appcode'],_0x47e425),_0x4737a9=await generateApiFile(_0x41c21a,_0x59e975,_0x50a6f2[_0x30f56c(0x164)],_0x50a6f2['isDefault'],_0x16bb65,_0xfefca7,_0x50a6f2[_0x30f56c(0x190)]);_0x1908d9[_0x30f56c(0x183)](_0x50a6f2[_0x30f56c(0x190)]+':\x20'+_0x41c21a[_0x30f56c(0x191)]+_0x30f56c(0x165)+_0x4737a9[_0x30f56c(0x198)]+'\x20model(s)'),console['log'](_0x30f56c(0x185)+_0x4737a9[_0x30f56c(0x170)]),console[_0x30f56c(0x172)]('\x20\x20•\x20'+_0x4737a9[_0x30f56c(0x175)]),_0x489710++;}catch(_0x1828dc){_0x1908d9[_0x30f56c(0x16a)](_0x50a6f2[_0x30f56c(0x190)]+':\x20'+(_0x1828dc instanceof Error?_0x1828dc[_0x30f56c(0x196)]:String(_0x1828dc))),_0x43293f++;}}console[_0x30f56c(0x172)]();if(_0x43293f>0x0)console[_0x30f56c(0x168)]('!\x20'+_0x43293f+_0x30f56c(0x188));return{'ok':_0x43293f===0x0,'message':_0x30f56c(0x18d)+_0x489710+_0x30f56c(0x182)+_0x43293f+_0x30f56c(0x178)};}const _0x418f78=_0x15464c&&_0x15464c[_0x30f56c(0x18a)]('-')?_0x15464c[_0x30f56c(0x173)]('-')['slice'](0x1)[_0x30f56c(0x194)]('-'):'',_0x1e4830=_0x55e748||_0x5ab613[_0x30f56c(0x16e)]||DEFAULT_API_DIR,_0x542e67=!_0x15464c,_0x18f7ae=a15_0x2d5f0d(_0x30f56c(0x18b)+_0x5ab613[_0x30f56c(0x18f)]+_0x30f56c(0x187))[_0x30f56c(0x186)]();try{const {configArray:_0x15042c}=await fetchModelList(_0x5ab613[_0x30f56c(0x18f)],_0x5ab613[_0x30f56c(0x195)]),_0x2eefb5=await generateApiFile(_0x15042c,_0x418f78,_0x5ab613['appCode'],_0x542e67,getEnv(),_0x1e4830);_0x18f7ae[_0x30f56c(0x183)](_0x30f56c(0x177)+_0x15042c['length']+_0x30f56c(0x18c)+_0x2eefb5['modelCount']+'\x20model(s)');const _0x19bdf7=_0x418f78?_0x418f78+'-api':_0x30f56c(0x16c),_0x1b4fbb=_0x418f78?_0x418f78+_0x30f56c(0x176):'client';return console[_0x30f56c(0x172)](_0x30f56c(0x185)+a15_0x1a2659[_0x30f56c(0x194)](_0x1e4830,_0x19bdf7+'.ts')),console[_0x30f56c(0x172)](_0x30f56c(0x185)+a15_0x1a2659[_0x30f56c(0x194)](_0x1e4830,_0x1b4fbb+'.ts')),{'ok':!![],'data':{'datasetCount':_0x15042c[_0x30f56c(0x191)],'modelCount':_0x2eefb5[_0x30f56c(0x198)]}};}catch(_0x31546a){_0x18f7ae[_0x30f56c(0x16a)](_0x30f56c(0x179)+(_0x31546a instanceof Error?_0x31546a[_0x30f56c(0x196)]:String(_0x31546a)));throw _0x31546a;}}};
1
+ const a15_0x5a83d8=a15_0x324e;(function(_0x1b0d21,_0x1f7d64){const _0x3f83cc=a15_0x324e,_0x3b391d=_0x1b0d21();while(!![]){try{const _0x1bd33e=-parseInt(_0x3f83cc(0x188))/0x1*(-parseInt(_0x3f83cc(0x183))/0x2)+-parseInt(_0x3f83cc(0x186))/0x3+-parseInt(_0x3f83cc(0x181))/0x4+-parseInt(_0x3f83cc(0x168))/0x5*(parseInt(_0x3f83cc(0x165))/0x6)+-parseInt(_0x3f83cc(0x161))/0x7*(-parseInt(_0x3f83cc(0x184))/0x8)+parseInt(_0x3f83cc(0x15a))/0x9*(-parseInt(_0x3f83cc(0x174))/0xa)+parseInt(_0x3f83cc(0x179))/0xb*(parseInt(_0x3f83cc(0x15c))/0xc);if(_0x1bd33e===_0x1f7d64)break;else _0x3b391d['push'](_0x3b391d['shift']());}catch(_0x327ab4){_0x3b391d['push'](_0x3b391d['shift']());}}}(a15_0xf37a,0x5deee));import a15_0x5be9d8 from'ora';import a15_0x3d3c17 from'node:path';function a15_0x324e(_0x5736bc,_0x420685){_0x5736bc=_0x5736bc-0x159;const _0xf37a38=a15_0xf37a();let _0x324e31=_0xf37a38[_0x5736bc];return _0x324e31;}import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0xf37a(){const _0x31d311=['start','2022IITtJF','boolean','split','8885eXfYUD','string','production','-client',')...','Output\x20directory\x20(default:\x20','-api','cookie','.ts','output','\x20model(s)','\x20\x20•\x20','8210RwgWcX','fail','write','join','str','23049829mqWjyS','modelCount','global','client','succeed','includes','message','...','1949920unnGGP','name','34LKLKbw','328LrKQVZ','pull','1609050CdqnYC','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','14137cmmHLR','appCode','apiDir','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','Pulling\x20API\x20config\x20for\x20','\x20succeeded,\x20','8217kIDGKK','apiFilePath','12yregZP','log','isDefault','length','\x20app(s)\x20failed','71918mGTGDq','Done:\x20','appcode'];a15_0xf37a=function(){return _0x31d311;};return a15_0xf37a();}import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiPull={'service':'api','command':a15_0x5a83d8(0x185),'description':a15_0x5a83d8(0x187)+DEFAULT_API_DIR+'/)','risk':a15_0x5a83d8(0x176),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x5a83d8(0x171),'type':a15_0x5a83d8(0x169),'description':a15_0x5a83d8(0x16d)+DEFAULT_API_DIR+'/)'},{'name':a15_0x5a83d8(0x17b),'type':a15_0x5a83d8(0x166),'description':a15_0x5a83d8(0x18b),'default':![]}],async 'execute'(_0x4cfcd4){const _0x270af0=a15_0x5a83d8,_0x1f622d=_0x4cfcd4[_0x270af0(0x178)](_0x270af0(0x163)),_0x43b0f8=_0x4cfcd4[_0x270af0(0x178)]('output')||undefined,_0x548cb9=resolveTargetApps(_0x4cfcd4,_0x1f622d);if(_0x548cb9){let _0x2f6f3a=0x0,_0x4c92a3=0x0;for(const _0x2459e6 of _0x548cb9){const _0x2c7011=_0x2459e6[_0x270af0(0x16f)]||_0x4cfcd4[_0x270af0(0x16f)],_0x37693d=_0x2459e6['env']||_0x270af0(0x16a);initEnv(_0x37693d);const _0x1a69a1=_0x2459e6[_0x270af0(0x18a)]||_0x43b0f8||_0x4cfcd4[_0x270af0(0x18a)]||DEFAULT_API_DIR,_0x1e8f5f=_0x2459e6['isDefault']?'':_0x2459e6[_0x270af0(0x182)]||_0x2459e6[_0x270af0(0x163)],_0x527baa=a15_0x5be9d8('Pulling\x20'+_0x2459e6[_0x270af0(0x182)]+'\x20('+_0x2459e6[_0x270af0(0x163)]+_0x270af0(0x16c))[_0x270af0(0x164)]();try{const {configArray:_0x3b8889}=await fetchModelList(_0x2459e6['appcode'],_0x2c7011),_0x131f3d=await generateApiFile(_0x3b8889,_0x1e8f5f,_0x2459e6[_0x270af0(0x163)],_0x2459e6[_0x270af0(0x15e)],_0x37693d,_0x1a69a1,_0x2459e6[_0x270af0(0x182)]);_0x527baa[_0x270af0(0x17d)](_0x2459e6[_0x270af0(0x182)]+':\x20'+_0x3b8889[_0x270af0(0x15f)]+'\x20dataset(s)\x20→\x20'+_0x131f3d[_0x270af0(0x17a)]+_0x270af0(0x172)),console[_0x270af0(0x15d)](_0x270af0(0x173)+_0x131f3d[_0x270af0(0x15b)]),console[_0x270af0(0x15d)](_0x270af0(0x173)+_0x131f3d['clientFilePath']),_0x2f6f3a++;}catch(_0x1d5272){_0x527baa[_0x270af0(0x175)](_0x2459e6[_0x270af0(0x182)]+':\x20'+(_0x1d5272 instanceof Error?_0x1d5272[_0x270af0(0x17f)]:String(_0x1d5272))),_0x4c92a3++;}}console[_0x270af0(0x15d)]();if(_0x4c92a3>0x0)console['error']('!\x20'+_0x4c92a3+_0x270af0(0x160));return{'ok':_0x4c92a3===0x0,'message':_0x270af0(0x162)+_0x2f6f3a+_0x270af0(0x159)+_0x4c92a3+'\x20failed'};}const _0x806186=_0x1f622d&&_0x1f622d[_0x270af0(0x17e)]('-')?_0x1f622d[_0x270af0(0x167)]('-')['slice'](0x1)[_0x270af0(0x177)]('-'):'',_0x4ba2d6=_0x43b0f8||_0x4cfcd4['apiDir']||DEFAULT_API_DIR,_0x5b1797=!_0x1f622d,_0x133afd=a15_0x5be9d8(_0x270af0(0x18c)+_0x4cfcd4[_0x270af0(0x189)]+_0x270af0(0x180))[_0x270af0(0x164)]();try{const {configArray:_0xc20c86}=await fetchModelList(_0x4cfcd4[_0x270af0(0x189)],_0x4cfcd4[_0x270af0(0x16f)]),_0x1cb649=await generateApiFile(_0xc20c86,_0x806186,_0x4cfcd4[_0x270af0(0x189)],_0x5b1797,getEnv(),_0x4ba2d6);_0x133afd[_0x270af0(0x17d)]('Pulled\x20'+_0xc20c86[_0x270af0(0x15f)]+'\x20dataset(s),\x20generated\x20'+_0x1cb649[_0x270af0(0x17a)]+_0x270af0(0x172));const _0x1e14d6=_0x806186?_0x806186+_0x270af0(0x16e):'api',_0x394d1a=_0x806186?_0x806186+_0x270af0(0x16b):_0x270af0(0x17c);return console[_0x270af0(0x15d)](_0x270af0(0x173)+a15_0x3d3c17[_0x270af0(0x177)](_0x4ba2d6,_0x1e14d6+'.ts')),console[_0x270af0(0x15d)]('\x20\x20•\x20'+a15_0x3d3c17[_0x270af0(0x177)](_0x4ba2d6,_0x394d1a+_0x270af0(0x170))),{'ok':!![],'data':{'datasetCount':_0xc20c86[_0x270af0(0x15f)],'modelCount':_0x1cb649[_0x270af0(0x17a)]}};}catch(_0x51e37b){_0x133afd['fail']('Failed:\x20'+(_0x51e37b instanceof Error?_0x51e37b[_0x270af0(0x17f)]:String(_0x51e37b)));throw _0x51e37b;}}};
@@ -1 +1 @@
1
- function a16_0xe87b(_0x3876e9,_0x34f846){_0x3876e9=_0x3876e9-0x12f;const _0x24f8da=a16_0x24f8();let _0xe87b6e=_0x24f8da[_0x3876e9];return _0xe87b6e;}(function(_0x4f722e,_0x19b1c8){const _0xe94226=a16_0xe87b,_0xc18313=_0x4f722e();while(!![]){try{const _0x4e66b5=-parseInt(_0xe94226(0x141))/0x1*(parseInt(_0xe94226(0x134))/0x2)+-parseInt(_0xe94226(0x144))/0x3*(parseInt(_0xe94226(0x142))/0x4)+-parseInt(_0xe94226(0x132))/0x5*(parseInt(_0xe94226(0x133))/0x6)+-parseInt(_0xe94226(0x143))/0x7*(-parseInt(_0xe94226(0x135))/0x8)+-parseInt(_0xe94226(0x13d))/0x9*(parseInt(_0xe94226(0x138))/0xa)+-parseInt(_0xe94226(0x139))/0xb+-parseInt(_0xe94226(0x136))/0xc*(-parseInt(_0xe94226(0x12f))/0xd);if(_0x4e66b5===_0x19b1c8)break;else _0xc18313['push'](_0xc18313['shift']());}catch(_0xf8c2c3){_0xc18313['push'](_0xc18313['shift']());}}}(a16_0x24f8,0x81b56));import{getMultiAppConfigs}from'../../utils/config.js';function a16_0x24f8(){const _0x5e497f=['2vgeJfn','4lwcAng','7WayaCf','262557UlTSln','selectedAppName','26rycMht','map','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','29395FndSuN','906cJQWJT','755562VBiYKQ','1885632MAkKJR','17151972SnXOia','merged','330QnkFXq','8989079aRiXBY','global','project','filter','4113YvGiKW','length','App\x20\x22','name'];a16_0x24f8=function(){return _0x5e497f;};return a16_0x24f8();}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0xfc788f,_0x431c28){const _0x280973=a16_0xe87b;if(_0x431c28)return null;const _0x4135e7=_0xfc788f['bool'](_0x280973(0x13a))?_0x280973(0x137):_0x280973(0x13b);let _0x10f227=getMultiAppConfigs(_0x4135e7);if(!_0x10f227||_0x10f227[_0x280973(0x13e)]===0x0)return null;if(_0xfc788f[_0x280973(0x145)]){const _0x32fe38=_0x10f227[_0x280973(0x13c)](_0x3ee125=>_0x3ee125[_0x280973(0x140)]===_0xfc788f[_0x280973(0x145)]);if(_0x32fe38[_0x280973(0x13e)]===0x0){const _0x5d27be=_0x10f227[_0x280973(0x130)](_0x2e1892=>_0x2e1892[_0x280973(0x140)])['join'](',\x20');throw CliErrors['validation'](_0x280973(0x13f)+_0xfc788f[_0x280973(0x145)]+_0x280973(0x131)+_0x5d27be);}_0x10f227=_0x32fe38;}return _0x10f227;}
1
+ function a16_0x502c(_0x99fd66,_0x53b3af){_0x99fd66=_0x99fd66-0xc9;const _0x38768a=a16_0x3876();let _0x502c8a=_0x38768a[_0x99fd66];return _0x502c8a;}(function(_0x22c984,_0x1a2c88){const _0x29d398=a16_0x502c,_0x500c6d=_0x22c984();while(!![]){try{const _0x194df0=-parseInt(_0x29d398(0xcc))/0x1+-parseInt(_0x29d398(0xd0))/0x2*(parseInt(_0x29d398(0xd9))/0x3)+parseInt(_0x29d398(0xda))/0x4*(-parseInt(_0x29d398(0xca))/0x5)+-parseInt(_0x29d398(0xce))/0x6*(parseInt(_0x29d398(0xcb))/0x7)+parseInt(_0x29d398(0xd6))/0x8+-parseInt(_0x29d398(0xd3))/0x9*(parseInt(_0x29d398(0xc9))/0xa)+parseInt(_0x29d398(0xd2))/0xb;if(_0x194df0===_0x1a2c88)break;else _0x500c6d['push'](_0x500c6d['shift']());}catch(_0x39839b){_0x500c6d['push'](_0x500c6d['shift']());}}}(a16_0x3876,0xd80e2));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x132a8d,_0xc98413){const _0x1a2c4c=a16_0x502c;if(_0xc98413)return null;const _0x39802c=_0x132a8d[_0x1a2c4c(0xdd)]('global')?_0x1a2c4c(0xd4):_0x1a2c4c(0xd5);let _0x2f3f58=getMultiAppConfigs(_0x39802c);if(!_0x2f3f58||_0x2f3f58[_0x1a2c4c(0xdb)]===0x0)return null;if(_0x132a8d[_0x1a2c4c(0xcf)]){const _0x1eb9d3=_0x2f3f58[_0x1a2c4c(0xcd)](_0x125bd6=>_0x125bd6[_0x1a2c4c(0xd7)]===_0x132a8d['selectedAppName']);if(_0x1eb9d3[_0x1a2c4c(0xdb)]===0x0){const _0x5ab697=_0x2f3f58[_0x1a2c4c(0xd1)](_0x4a9e91=>_0x4a9e91['name'])['join'](',\x20');throw CliErrors[_0x1a2c4c(0xdc)](_0x1a2c4c(0xd8)+_0x132a8d[_0x1a2c4c(0xcf)]+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x5ab697);}_0x2f3f58=_0x1eb9d3;}return _0x2f3f58;}function a16_0x3876(){const _0x3fa7e5=['bool','876030tHqdDs','15RSqWHr','63903gBwOnN','299953IsTvvp','filter','504owBDWe','selectedAppName','1234004CgMJeq','map','43731028cuTwHx','72jykimL','merged','project','911360yonwKn','name','App\x20\x22','3iLUzJc','1093188YTXzon','length','validation'];a16_0x3876=function(){return _0x3fa7e5;};return a16_0x3876();}
@@ -1 +1 @@
1
- const a17_0xca0240=a17_0x1fd0;(function(_0x230b6b,_0x529748){const _0x5d67db=a17_0x1fd0,_0xe6a75b=_0x230b6b();while(!![]){try{const _0x4cbc8b=parseInt(_0x5d67db(0xf2))/0x1*(parseInt(_0x5d67db(0xf8))/0x2)+parseInt(_0x5d67db(0xe7))/0x3+-parseInt(_0x5d67db(0xe5))/0x4*(-parseInt(_0x5d67db(0x101))/0x5)+-parseInt(_0x5d67db(0x116))/0x6*(-parseInt(_0x5d67db(0xf3))/0x7)+-parseInt(_0x5d67db(0xfc))/0x8*(parseInt(_0x5d67db(0x10c))/0x9)+parseInt(_0x5d67db(0xec))/0xa*(-parseInt(_0x5d67db(0xe8))/0xb)+-parseInt(_0x5d67db(0x112))/0xc;if(_0x4cbc8b===_0x529748)break;else _0xe6a75b['push'](_0xe6a75b['shift']());}catch(_0x10de4f){_0xe6a75b['push'](_0xe6a75b['shift']());}}}(a17_0x543c,0xc4086));import{CliErrors}from'../../errors.js';function a17_0x543c(){const _0x3bf7de=['\x20Set\x20as\x20default\x20app.','14496eTowlm','global','1303953BMpZhX','11XnBJAl','defaultApp','number','validation','239870YHRhsC','riskLevel','\x22\x20(appcode:\x20','app','format','Use\x20global\x20config\x20scope','679891iVIreR','249165RNIWWt','entries','name','API\x20directory\x20path','string','2qzQWPw','bool','\x20app\x20add\x20<name>\x20--appcode\x20<code>','apps','104UEzsUy','Updated','appcode','Access\x20key','keys','455HFWRuk','Usage:\x20','accessKey','str','Risk\x20level','Target\x20environment','Add\x20or\x20update\x20an\x20app\x20in\x20config','Auth\x20cookie','args','length','cookie','585171RvwsEj','Missing\x20app\x20name.','locale','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','trim','App\x20profile\x20name','2818524ckSpqD','apiDir','env','boolean','78QAlHlj','pageSize','write','App\x20code'];a17_0x543c=function(){return _0x3bf7de;};return a17_0x543c();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a17_0x1fd0(_0xf2de9c,_0x5301f6){_0xf2de9c=_0xf2de9c-0xe3;const _0x543c64=a17_0x543c();let _0x1fd08c=_0x543c64[_0xf2de9c];return _0x1fd08c;}import{readConfig,writeConfig,scopeLabel,migrateLegacySingleApp}from'../../commands/app/shared.js';const PROFILE_FLAG_KEYS={'env':a17_0xca0240(0x114),'apiDir':a17_0xca0240(0x113),'cookie':'cookie','accessKey':a17_0xca0240(0x103),'defaultFormat':a17_0xca0240(0xf0),'pageSize':a17_0xca0240(0x117),'riskLevel':a17_0xca0240(0xed),'locale':'locale'};async function validateArgs(_0x248a6d){const _0x41b300=a17_0xca0240,_0x3f44c7=_0x248a6d[_0x41b300(0x109)][0x0]?.[_0x41b300(0x110)]();if(!_0x3f44c7)throw CliErrors[_0x41b300(0xeb)](_0x41b300(0x10d),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');}async function execute(_0x1b9a95){const _0x32e4c7=a17_0xca0240,_0xe0ffd8=_0x1b9a95[_0x32e4c7(0x109)][0x0]?.[_0x32e4c7(0x110)]();if(!_0xe0ffd8)throw CliErrors[_0x32e4c7(0xeb)](_0x32e4c7(0x10d),_0x32e4c7(0x102)+CLI_BIN_NAME+_0x32e4c7(0xfa));const _0x24d790=_0x1b9a95['str'](_0x32e4c7(0xfe));if(!_0x24d790)throw CliErrors['flagMissing'](_0x32e4c7(0xfe),_0x32e4c7(0x102)+CLI_BIN_NAME+_0x32e4c7(0xfa));const _0x11febf={'global':_0x1b9a95[_0x32e4c7(0xf9)](_0x32e4c7(0xe6))},_0x537024=readConfig(_0x11febf);if(!_0x537024[_0x32e4c7(0xfb)])_0x537024[_0x32e4c7(0xfb)]={};Object[_0x32e4c7(0x100)](_0x537024[_0x32e4c7(0xfb)])[_0x32e4c7(0x10a)]===0x0&&migrateLegacySingleApp(_0x537024,_0xe0ffd8);const _0x24722e={'appcode':_0x24d790};for(const [_0x38a67,_0x4a0830]of Object[_0x32e4c7(0xf4)](PROFILE_FLAG_KEYS)){const _0xc99757=_0x1b9a95[_0x32e4c7(0x104)](_0x38a67);_0xc99757&&(_0x24722e[_0x4a0830]=_0x4a0830===_0x32e4c7(0x117)?Number(_0xc99757):_0xc99757);}const _0x19608f=_0x537024['apps'],_0x20b6b9=!!_0x19608f[_0xe0ffd8];_0x19608f[_0xe0ffd8]=_0x24722e;if(!_0x537024[_0x32e4c7(0xe9)])_0x537024['defaultApp']=_0xe0ffd8;writeConfig(_0x537024,_0x11febf);const _0x4656b1=!_0x20b6b9&&_0x537024[_0x32e4c7(0xe9)]===_0xe0ffd8?_0x32e4c7(0xe4):'';return{'ok':!![],'message':(_0x20b6b9?_0x32e4c7(0xfd):'Added')+'\x20app\x20\x22'+_0xe0ffd8+_0x32e4c7(0xee)+_0x24d790+')'+scopeLabel(_0x11febf)+'.'+_0x4656b1};}export const appAddDefinition={'service':a17_0xca0240(0xef),'command':'add','description':a17_0xca0240(0x107),'risk':a17_0xca0240(0x118),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a17_0xca0240(0xf5),'description':a17_0xca0240(0x111),'required':!![]}],'flags':[{'name':'appcode','type':'string','description':a17_0xca0240(0xe3),'required':!![]},{'name':a17_0xca0240(0xe6),'type':a17_0xca0240(0x115),'description':a17_0xca0240(0xf1),'default':![]},{'name':a17_0xca0240(0x114),'type':a17_0xca0240(0xf7),'description':a17_0xca0240(0x106)},{'name':a17_0xca0240(0x113),'type':a17_0xca0240(0xf7),'description':a17_0xca0240(0xf6)},{'name':a17_0xca0240(0x10b),'type':'string','description':a17_0xca0240(0x108),'hidden':!![]},{'name':a17_0xca0240(0x103),'type':'string','description':a17_0xca0240(0xff),'hidden':!![]},{'name':'defaultFormat','type':a17_0xca0240(0xf7),'description':a17_0xca0240(0x10f)},{'name':a17_0xca0240(0x117),'type':a17_0xca0240(0xea),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':a17_0xca0240(0xf7),'description':a17_0xca0240(0x105)},{'name':a17_0xca0240(0x10e),'type':a17_0xca0240(0xf7),'description':'Locale'}],'validate':validateArgs,'execute':execute};
1
+ const a17_0x151594=a17_0x307e;(function(_0x169c72,_0xa754f){const _0x43752f=a17_0x307e,_0x4a92ff=_0x169c72();while(!![]){try{const _0x25baac=parseInt(_0x43752f(0x1b4))/0x1+parseInt(_0x43752f(0x1ac))/0x2+parseInt(_0x43752f(0x188))/0x3+parseInt(_0x43752f(0x1a9))/0x4+parseInt(_0x43752f(0x189))/0x5+parseInt(_0x43752f(0x191))/0x6*(-parseInt(_0x43752f(0x18f))/0x7)+-parseInt(_0x43752f(0x1b2))/0x8;if(_0x25baac===_0xa754f)break;else _0x4a92ff['push'](_0x4a92ff['shift']());}catch(_0x1dd539){_0x4a92ff['push'](_0x4a92ff['shift']());}}}(a17_0x16db,0xe413b));function a17_0x16db(){const _0x1e97ba=['trim','name','env','validation','args','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','format','\x20Set\x20as\x20default\x20app.','defaultApp','flagMissing','\x20app\x20add\x20<name>\x20--appcode\x20<code>','apiDir','Access\x20key','\x22\x20(appcode:\x20','str','locale','length','cookie','add','4608160bdIStQ','Usage:\x20','Target\x20environment','1660480jTzYdm','defaultFormat','apps','Risk\x20level','riskLevel','Updated','24954160fHhijr','Use\x20global\x20config\x20scope','67463vaGSgF','Auth\x20cookie','Missing\x20app\x20name.','keys','2200920NpwoqX','7862690baerxF','\x20app\x20\x22','write','accessKey','Default\x20page\x20size','pageSize','84ycgKPT','Added','151224BOOQDA','global','appcode','string','number'];a17_0x16db=function(){return _0x1e97ba;};return a17_0x16db();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{readConfig,writeConfig,scopeLabel,migrateLegacySingleApp}from'../../commands/app/shared.js';const PROFILE_FLAG_KEYS={'env':'env','apiDir':a17_0x151594(0x1a1),'cookie':a17_0x151594(0x1a7),'accessKey':'accessKey','defaultFormat':a17_0x151594(0x19c),'pageSize':'pageSize','riskLevel':'riskLevel','locale':a17_0x151594(0x1a5)};async function validateArgs(_0x10b75f){const _0x203de7=a17_0x151594,_0x20dacb=_0x10b75f[_0x203de7(0x19a)][0x0]?.[_0x203de7(0x196)]();if(!_0x20dacb)throw CliErrors[_0x203de7(0x199)](_0x203de7(0x186),_0x203de7(0x1aa)+CLI_BIN_NAME+_0x203de7(0x1a0));}function a17_0x307e(_0x44b3ce,_0x490b78){_0x44b3ce=_0x44b3ce-0x186;const _0x16db61=a17_0x16db();let _0x307e21=_0x16db61[_0x44b3ce];return _0x307e21;}async function execute(_0x6e510){const _0x1fd7c6=a17_0x151594,_0x3bfe33=_0x6e510[_0x1fd7c6(0x19a)][0x0]?.[_0x1fd7c6(0x196)]();if(!_0x3bfe33)throw CliErrors['validation'](_0x1fd7c6(0x186),_0x1fd7c6(0x1aa)+CLI_BIN_NAME+_0x1fd7c6(0x1a0));const _0xd46de9=_0x6e510[_0x1fd7c6(0x1a4)]('appcode');if(!_0xd46de9)throw CliErrors[_0x1fd7c6(0x19f)](_0x1fd7c6(0x193),_0x1fd7c6(0x1aa)+CLI_BIN_NAME+_0x1fd7c6(0x1a0));const _0x3a3992={'global':_0x6e510['bool'](_0x1fd7c6(0x192))},_0x5ac251=readConfig(_0x3a3992);if(!_0x5ac251[_0x1fd7c6(0x1ae)])_0x5ac251[_0x1fd7c6(0x1ae)]={};Object[_0x1fd7c6(0x187)](_0x5ac251[_0x1fd7c6(0x1ae)])[_0x1fd7c6(0x1a6)]===0x0&&migrateLegacySingleApp(_0x5ac251,_0x3bfe33);const _0x5aafe6={'appcode':_0xd46de9};for(const [_0x413e2a,_0x4c005f]of Object['entries'](PROFILE_FLAG_KEYS)){const _0x123e70=_0x6e510['str'](_0x413e2a);_0x123e70&&(_0x5aafe6[_0x4c005f]=_0x4c005f===_0x1fd7c6(0x18e)?Number(_0x123e70):_0x123e70);}const _0x1f8135=_0x5ac251[_0x1fd7c6(0x1ae)],_0x1ef677=!!_0x1f8135[_0x3bfe33];_0x1f8135[_0x3bfe33]=_0x5aafe6;if(!_0x5ac251[_0x1fd7c6(0x19e)])_0x5ac251[_0x1fd7c6(0x19e)]=_0x3bfe33;writeConfig(_0x5ac251,_0x3a3992);const _0x13d0fb=!_0x1ef677&&_0x5ac251['defaultApp']===_0x3bfe33?_0x1fd7c6(0x19d):'';return{'ok':!![],'message':(_0x1ef677?_0x1fd7c6(0x1b1):_0x1fd7c6(0x190))+_0x1fd7c6(0x18a)+_0x3bfe33+_0x1fd7c6(0x1a3)+_0xd46de9+')'+scopeLabel(_0x3a3992)+'.'+_0x13d0fb};}export const appAddDefinition={'service':'app','command':a17_0x151594(0x1a8),'description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a17_0x151594(0x18b),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a17_0x151594(0x197),'description':'App\x20profile\x20name','required':!![]}],'flags':[{'name':a17_0x151594(0x193),'type':a17_0x151594(0x194),'description':'App\x20code','required':!![]},{'name':a17_0x151594(0x192),'type':'boolean','description':a17_0x151594(0x1b3),'default':![]},{'name':a17_0x151594(0x198),'type':'string','description':a17_0x151594(0x1ab)},{'name':'apiDir','type':a17_0x151594(0x194),'description':'API\x20directory\x20path'},{'name':a17_0x151594(0x1a7),'type':'string','description':a17_0x151594(0x1b5),'hidden':!![]},{'name':a17_0x151594(0x18c),'type':a17_0x151594(0x194),'description':a17_0x151594(0x1a2),'hidden':!![]},{'name':a17_0x151594(0x1ad),'type':a17_0x151594(0x194),'description':a17_0x151594(0x19b)},{'name':a17_0x151594(0x18e),'type':a17_0x151594(0x195),'description':a17_0x151594(0x18d)},{'name':a17_0x151594(0x1b0),'type':a17_0x151594(0x194),'description':a17_0x151594(0x1af)},{'name':a17_0x151594(0x1a5),'type':'string','description':'Locale'}],'validate':validateArgs,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x1d1d88,_0x3cadc6){const _0x2fc22c=a18_0x2154,_0xf8643=_0x1d1d88();while(!![]){try{const _0x3cc42e=parseInt(_0x2fc22c(0x135))/0x1*(-parseInt(_0x2fc22c(0x12e))/0x2)+-parseInt(_0x2fc22c(0x134))/0x3*(parseInt(_0x2fc22c(0x130))/0x4)+parseInt(_0x2fc22c(0x132))/0x5*(parseInt(_0x2fc22c(0x136))/0x6)+-parseInt(_0x2fc22c(0x131))/0x7*(-parseInt(_0x2fc22c(0x137))/0x8)+-parseInt(_0x2fc22c(0x139))/0x9*(parseInt(_0x2fc22c(0x133))/0xa)+-parseInt(_0x2fc22c(0x138))/0xb+parseInt(_0x2fc22c(0x12f))/0xc;if(_0x3cc42e===_0x3cadc6)break;else _0xf8643['push'](_0xf8643['shift']());}catch(_0x44437e){_0xf8643['push'](_0xf8643['shift']());}}}(a18_0x27ae,0xd087a));import{appListDefinition}from'../../commands/app/list.js';import{appRemoteDefinition}from'../../commands/app/remote.js';import{appUseDefinition}from'../../commands/app/use.js';function a18_0x27ae(){const _0x3eabac=['79974METgfV','8hIHiXD','17216210TgQruz','9gmDooj','86UmJpfr','34802412xYmkjo','9456gTveRC','9442769nphNWC','190pOlDFa','10057010rKBoor','1548QQhkQY','2579ufYrQw'];a18_0x27ae=function(){return _0x3eabac;};return a18_0x27ae();}import{appAddDefinition}from'../../commands/app/add.js';function a18_0x2154(_0x1662d7,_0x3d97f8){_0x1662d7=_0x1662d7-0x12e;const _0x27aeb1=a18_0x27ae();let _0x215489=_0x27aeb1[_0x1662d7];return _0x215489;}import{appRemoveDefinition}from'../../commands/app/remove.js';export const appDefinitions=[appListDefinition,appRemoteDefinition,appUseDefinition,appAddDefinition,appRemoveDefinition];
1
+ (function(_0x464003,_0x2dc182){const _0x3c3eff=a18_0x279b,_0x352d11=_0x464003();while(!![]){try{const _0x2b35d7=-parseInt(_0x3c3eff(0x1a7))/0x1+parseInt(_0x3c3eff(0x1a6))/0x2+parseInt(_0x3c3eff(0x1a2))/0x3*(-parseInt(_0x3c3eff(0x1a3))/0x4)+-parseInt(_0x3c3eff(0x1ab))/0x5*(parseInt(_0x3c3eff(0x1a5))/0x6)+-parseInt(_0x3c3eff(0x1aa))/0x7+parseInt(_0x3c3eff(0x1a4))/0x8+-parseInt(_0x3c3eff(0x1a8))/0x9*(-parseInt(_0x3c3eff(0x1a9))/0xa);if(_0x2b35d7===_0x2dc182)break;else _0x352d11['push'](_0x352d11['shift']());}catch(_0x541894){_0x352d11['push'](_0x352d11['shift']());}}}(a18_0x362e,0x7c5bc));import{appListDefinition}from'../../commands/app/list.js';function a18_0x279b(_0x14c0e8,_0x2d1a6d){_0x14c0e8=_0x14c0e8-0x1a2;const _0x362e9d=a18_0x362e();let _0x279bf8=_0x362e9d[_0x14c0e8];return _0x279bf8;}import{appRemoteDefinition}from'../../commands/app/remote.js';import{appUseDefinition}from'../../commands/app/use.js';function a18_0x362e(){const _0x3810c8=['8071808cGkRpB','54eNoPDM','1310780wdRdPm','853780OrVRYc','9722844EmORbs','10bmBKJT','3210214hrnYtK','389530EJDmCg','147xIdJMh','18104fGoFms'];a18_0x362e=function(){return _0x3810c8;};return a18_0x362e();}import{appAddDefinition}from'../../commands/app/add.js';import{appRemoveDefinition}from'../../commands/app/remove.js';export const appDefinitions=[appListDefinition,appRemoteDefinition,appUseDefinition,appAddDefinition,appRemoveDefinition];