@lovrabet/rabetbase-cli 2.1.2-beta.3 → 2.1.2

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 (161) 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/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -1
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +1 -1
@@ -1 +1 @@
1
- const a162_0x478d9f=a162_0xd41b;(function(_0xc7d06b,_0x215a2c){const _0x3df508=a162_0xd41b,_0x4dcb6c=_0xc7d06b();while(!![]){try{const _0x2ac596=-parseInt(_0x3df508(0xcf))/0x1*(-parseInt(_0x3df508(0xd3))/0x2)+-parseInt(_0x3df508(0xd1))/0x3*(-parseInt(_0x3df508(0xcc))/0x4)+-parseInt(_0x3df508(0xd4))/0x5+-parseInt(_0x3df508(0xd2))/0x6+-parseInt(_0x3df508(0xc8))/0x7+parseInt(_0x3df508(0xd6))/0x8*(-parseInt(_0x3df508(0xc5))/0x9)+parseInt(_0x3df508(0xc6))/0xa*(parseInt(_0x3df508(0xb9))/0xb);if(_0x2ac596===_0x215a2c)break;else _0x4dcb6c['push'](_0x4dcb6c['shift']());}catch(_0x3f8156){_0x4dcb6c['push'](_0x4dcb6c['shift']());}}}(a162_0x5cab,0x5719c));import{mkdirSync,writeFileSync}from'node:fs';function a162_0xd41b(_0x398c92,_0x4dfaf6){_0x398c92=_0x398c92-0xb3;const _0x5cab83=a162_0x5cab();let _0xd41b6=_0x5cab83[_0x398c92];return _0xd41b6;}import a162_0x20511d from'node:path';function a162_0x5cab(){const _0x27c11e=['80YSjWrW','3090055cWuAgC','message','64lEjMDJ','name','./docs','.md','push','✗\x20Failed:\x20','success','length','string','11kDwUVx','utf8','tableName','.md\x20(','.md\x20-\x20','markdown','生成文档成功:\x20','join','datasetCode','):\x20missing\x20data.markdown\x20field','error','Invalid\x20response\x20format\x20(','410751kzCCMS','11789210OBMjyD',']\x20Generating:\x20','645659qYVHjj','Waiting\x203\x20seconds...\x0a','api-doc','/api/node-toolbox/api-doc-generator','32GvvkhU','Fetch\x20doc\x20(','POST','14028aUObBR','log','38004uhllHh','2455566bEFDcD'];a162_0x5cab=function(){return _0x27c11e;};return a162_0x5cab();}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x37bba0){const _0xc58844=a162_0xd41b,{appCode:_0x32b7ae,cookie:_0x352499,datasetCode:_0x50963c,datasetId:_0x2c39ab,extraParams:_0x294978}=_0x37bba0,_0x2b84b3=getApiDomain()+_0xc58844(0xcb),_0x45835f=await platformFetch(_0x2b84b3,{'method':_0xc58844(0xce),'body':{'appCode':_0x32b7ae,'datasetCode':_0x50963c,'datasetId':_0x2c39ab,..._0x294978||{}},'cookie':_0x352499,'label':_0xc58844(0xcd)+_0x50963c+')'});if(!_0x45835f||typeof _0x45835f[_0xc58844(0xbe)]!==_0xc58844(0xb8))throw new Error(_0xc58844(0xc4)+_0x50963c+_0xc58844(0xc2));return _0x45835f[_0xc58844(0xbe)];}function delay(_0x502f15){return new Promise(_0x3651ff=>setTimeout(_0x3651ff,_0x502f15));}export async function generateDatasetDocs(_0x4a7eab,_0x1e0b16,_0x15639f,_0x53d252=a162_0x478d9f(0xd8),_0x495d33,_0x4a8eef){const _0x2d23f3=a162_0x478d9f;mkdirSync(_0x53d252,{'recursive':!![]});const _0x5233d9=[],_0x45113d=_0x4a7eab[_0x2d23f3(0xb7)];console[_0x2d23f3(0xd0)]('\x0a'+_0x45113d+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x48c194=0x0;_0x48c194<_0x4a7eab[_0x2d23f3(0xb7)];_0x48c194++){const _0x3d2977=_0x4a7eab[_0x48c194],_0x3bbd1f=_0x48c194+0x1,_0x15041a=_0x3d2977[_0x2d23f3(0xbb)];try{console[_0x2d23f3(0xd0)]('['+_0x3bbd1f+'/'+_0x45113d+_0x2d23f3(0xc7)+_0x15041a+_0x2d23f3(0xbc)+_0x3d2977[_0x2d23f3(0xd7)]+')');if(_0x495d33)_0x495d33(_0x3bbd1f,_0x45113d,_0x15041a);const _0x505f58=await fetchDatasetDoc({'appCode':_0x1e0b16,'cookie':_0x15639f,'datasetCode':_0x3d2977[_0x2d23f3(0xc1)],'datasetId':_0x3d2977['id'],'enableAI':![],'extraParams':_0x4a8eef}),_0x4e5f8c=a162_0x20511d[_0x2d23f3(0xc0)](_0x53d252,_0x15041a+_0x2d23f3(0xb3));writeFileSync(_0x4e5f8c,_0x505f58,{'encoding':_0x2d23f3(0xba)}),console['log']('✓\x20Generated:\x20'+_0x15041a+_0x2d23f3(0xb3)),logger[_0x2d23f3(0xb6)](_0x2d23f3(0xca),_0x2d23f3(0xbf)+_0x15041a,undefined,{'datasetCode':_0x3d2977['datasetCode'],'datasetName':_0x3d2977[_0x2d23f3(0xd7)],'filePath':_0x4e5f8c,'progress':_0x3bbd1f+'/'+_0x45113d}),_0x5233d9[_0x2d23f3(0xb4)]({'datasetCode':_0x3d2977['datasetCode'],'datasetName':_0x3d2977[_0x2d23f3(0xd7)],'filePath':_0x4e5f8c,'success':!![]});if(_0x3bbd1f<_0x45113d)await delay(0x1388);}catch(_0x1f7c18){const _0x1bd2ad=_0x1f7c18 instanceof Error?_0x1f7c18[_0x2d23f3(0xd5)]:String(_0x1f7c18);console[_0x2d23f3(0xd0)](_0x2d23f3(0xb5)+_0x15041a+_0x2d23f3(0xbd)+_0x1bd2ad),logger[_0x2d23f3(0xc3)](_0x2d23f3(0xca),'生成文档失败:\x20'+_0x3d2977['datasetCode'],{'datasetCode':_0x3d2977['datasetCode'],'datasetName':_0x3d2977['name'],'error':_0x1bd2ad,'progress':_0x3bbd1f+'/'+_0x45113d}),_0x5233d9[_0x2d23f3(0xb4)]({'datasetCode':_0x3d2977['datasetCode'],'datasetName':_0x3d2977[_0x2d23f3(0xd7)],'filePath':'','success':![],'error':_0x1bd2ad}),_0x3bbd1f<_0x45113d&&(console[_0x2d23f3(0xd0)](_0x2d23f3(0xc9)),await delay(0xbb8));}}return _0x5233d9;}
1
+ const a162_0x3961a8=a162_0x3e87;(function(_0x182cae,_0x45f2c5){const _0x59984f=a162_0x3e87,_0x23ca21=_0x182cae();while(!![]){try{const _0xee37e9=-parseInt(_0x59984f(0x1d7))/0x1*(-parseInt(_0x59984f(0x1c8))/0x2)+-parseInt(_0x59984f(0x1dd))/0x3*(parseInt(_0x59984f(0x1d5))/0x4)+-parseInt(_0x59984f(0x1ce))/0x5+-parseInt(_0x59984f(0x1e1))/0x6+-parseInt(_0x59984f(0x1ca))/0x7*(-parseInt(_0x59984f(0x1d3))/0x8)+-parseInt(_0x59984f(0x1cd))/0x9*(parseInt(_0x59984f(0x1dc))/0xa)+parseInt(_0x59984f(0x1e2))/0xb*(parseInt(_0x59984f(0x1de))/0xc);if(_0xee37e9===_0x45f2c5)break;else _0x23ca21['push'](_0x23ca21['shift']());}catch(_0x4c4acc){_0x23ca21['push'](_0x23ca21['shift']());}}}(a162_0x36dd,0x7a1cd));import{mkdirSync,writeFileSync}from'node:fs';import a162_0xfd3c0b from'node:path';function a162_0x3e87(_0x138a40,_0x4b721a){_0x138a40=_0x138a40-0x1c0;const _0x36dd0d=a162_0x36dd();let _0x3e8708=_0x36dd0d[_0x138a40];return _0x3e8708;}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x34c494){const _0x196deb=a162_0x3e87,{appCode:_0x538c13,cookie:_0xbb6a08,datasetCode:_0x1deac1,datasetId:_0x18e761,extraParams:_0x42031a}=_0x34c494,_0x56666a=getApiDomain()+_0x196deb(0x1c7),_0xd4961c=await platformFetch(_0x56666a,{'method':'POST','body':{'appCode':_0x538c13,'datasetCode':_0x1deac1,'datasetId':_0x18e761,..._0x42031a||{}},'cookie':_0xbb6a08,'label':'Fetch\x20doc\x20('+_0x1deac1+')'});if(!_0xd4961c||typeof _0xd4961c[_0x196deb(0x1c6)]!==_0x196deb(0x1c1))throw new Error(_0x196deb(0x1c0)+_0x1deac1+_0x196deb(0x1df));return _0xd4961c[_0x196deb(0x1c6)];}function delay(_0x73a039){return new Promise(_0xb00b1d=>setTimeout(_0xb00b1d,_0x73a039));}export async function generateDatasetDocs(_0x1d36e7,_0x2d80e3,_0x397413,_0x4fa3e4=a162_0x3961a8(0x1d9),_0x40dda2,_0x256ecd){const _0x2a5239=a162_0x3961a8;mkdirSync(_0x4fa3e4,{'recursive':!![]});const _0x24f831=[],_0x218f77=_0x1d36e7[_0x2a5239(0x1d8)];console[_0x2a5239(0x1cf)]('\x0a'+_0x218f77+_0x2a5239(0x1d0));for(let _0xd1995=0x0;_0xd1995<_0x1d36e7['length'];_0xd1995++){const _0x455ac4=_0x1d36e7[_0xd1995],_0x645c94=_0xd1995+0x1,_0x300819=_0x455ac4[_0x2a5239(0x1d2)];try{console[_0x2a5239(0x1cf)]('['+_0x645c94+'/'+_0x218f77+']\x20Generating:\x20'+_0x300819+_0x2a5239(0x1da)+_0x455ac4[_0x2a5239(0x1cb)]+')');if(_0x40dda2)_0x40dda2(_0x645c94,_0x218f77,_0x300819);const _0x4a0ac0=await fetchDatasetDoc({'appCode':_0x2d80e3,'cookie':_0x397413,'datasetCode':_0x455ac4[_0x2a5239(0x1c5)],'datasetId':_0x455ac4['id'],'enableAI':![],'extraParams':_0x256ecd}),_0x88daea=a162_0xfd3c0b[_0x2a5239(0x1d1)](_0x4fa3e4,_0x300819+'.md');writeFileSync(_0x88daea,_0x4a0ac0,{'encoding':_0x2a5239(0x1c3)}),console['log']('✓\x20Generated:\x20'+_0x300819+_0x2a5239(0x1d6)),logger['success'](_0x2a5239(0x1c2),_0x2a5239(0x1d4)+_0x300819,undefined,{'datasetCode':_0x455ac4[_0x2a5239(0x1c5)],'datasetName':_0x455ac4[_0x2a5239(0x1cb)],'filePath':_0x88daea,'progress':_0x645c94+'/'+_0x218f77}),_0x24f831['push']({'datasetCode':_0x455ac4['datasetCode'],'datasetName':_0x455ac4['name'],'filePath':_0x88daea,'success':!![]});if(_0x645c94<_0x218f77)await delay(0x1388);}catch(_0x3168f8){const _0x41e560=_0x3168f8 instanceof Error?_0x3168f8[_0x2a5239(0x1c4)]:String(_0x3168f8);console[_0x2a5239(0x1cf)](_0x2a5239(0x1e0)+_0x300819+_0x2a5239(0x1db)+_0x41e560),logger['error']('api-doc','生成文档失败:\x20'+_0x455ac4[_0x2a5239(0x1c5)],{'datasetCode':_0x455ac4[_0x2a5239(0x1c5)],'datasetName':_0x455ac4[_0x2a5239(0x1cb)],'error':_0x41e560,'progress':_0x645c94+'/'+_0x218f77}),_0x24f831[_0x2a5239(0x1cc)]({'datasetCode':_0x455ac4['datasetCode'],'datasetName':_0x455ac4[_0x2a5239(0x1cb)],'filePath':'','success':![],'error':_0x41e560}),_0x645c94<_0x218f77&&(console['log'](_0x2a5239(0x1c9)),await delay(0xbb8));}}return _0x24f831;}function a162_0x36dd(){const _0x30e8ab=['):\x20missing\x20data.markdown\x20field','✗\x20Failed:\x20','1335768qRURzS','341kgDFnt','Invalid\x20response\x20format\x20(','string','api-doc','utf8','message','datasetCode','markdown','/api/node-toolbox/api-doc-generator','63076pPPEMD','Waiting\x203\x20seconds...\x0a','133378llCSQN','name','push','60201GLveqv','3148095YkrDPp','log','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','join','tableName','304jyNYRQ','生成文档成功:\x20','20GNimXS','.md','31StsHij','length','./docs','.md\x20(','.md\x20-\x20','630UihzMC','198579yObKuV','156024dVopje'];a162_0x36dd=function(){return _0x30e8ab;};return a162_0x36dd();}
@@ -1 +1 @@
1
- (function(_0x15059a,_0x15dcd5){const _0x57bf15=a160_0x295a,_0x55b555=_0x15059a();while(!![]){try{const _0x5e2fa4=-parseInt(_0x57bf15(0xd2))/0x1*(-parseInt(_0x57bf15(0xce))/0x2)+parseInt(_0x57bf15(0xd1))/0x3+parseInt(_0x57bf15(0xbf))/0x4+parseInt(_0x57bf15(0xc0))/0x5+parseInt(_0x57bf15(0xc9))/0x6*(-parseInt(_0x57bf15(0xcd))/0x7)+-parseInt(_0x57bf15(0xc1))/0x8*(-parseInt(_0x57bf15(0xc7))/0x9)+parseInt(_0x57bf15(0xc4))/0xa*(parseInt(_0x57bf15(0xc3))/0xb);if(_0x5e2fa4===_0x15dcd5)break;else _0x55b555['push'](_0x55b555['shift']());}catch(_0x571b86){_0x55b555['push'](_0x55b555['shift']());}}}(a160_0x314a,0x35372));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a160_0x295a(_0x305337,_0x347cf9){_0x305337=_0x305337-0xbf;const _0x314af3=a160_0x314a();let _0x295aa2=_0x314af3[_0x305337];return _0x295aa2;}function a160_0x314a(){const _0x4e6bf8=['configArray','&otype=array','172876EVqMsu','954615tVnlVa','16qXYlzj','fetch-model-list','2585oiUsgV','4340fZnvNB','/api/node-toolbox/dataset/model-list?appcode=','name','77643wopvUF','replace','570riBHTZ','Fetch\x20datasets','info','map','27895pxRwbf','186OsoMTj','trim','正在从服务器拉取模型列表...\x20(环境:\x20','232020IQHEZF','1783zrqNrv','length'];a160_0x314a=function(){return _0x4e6bf8;};return a160_0x314a();}import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x3aa4f3){const _0x2f8ff3=a160_0x295a;return _0x3aa4f3[_0x2f8ff3(0xc8)](/[\r\n]+/g,'\x20')[_0x2f8ff3(0xcf)]();}function cleanDatasetName(_0x574f8b){const _0x74adac=a160_0x295a;if(!_0x574f8b[_0x74adac(0xc6)])return _0x574f8b;return{..._0x574f8b,'name':cleanNewlines(_0x574f8b[_0x74adac(0xc6)])};}export async function fetchModelList(_0x37bd38,_0x3fb7be){const _0x19715f=a160_0x295a,_0x40cd92=getEnv(),_0x5ca52f=getApiDomain()+_0x19715f(0xc5)+_0x37bd38+_0x19715f(0xd5);logger[_0x19715f(0xcb)](_0x19715f(0xc2),_0x19715f(0xd0)+_0x40cd92+')',{'apiUrl':_0x5ca52f});const _0x2f860f=await platformFetch(_0x5ca52f,{'cookie':_0x3fb7be,'label':_0x19715f(0xca)}),_0x2fc0e5=(_0x2f860f[_0x19715f(0xd4)]??[])[_0x19715f(0xcc)](cleanDatasetName);return{'configArray':_0x2fc0e5,'count':_0x2fc0e5[_0x19715f(0xd3)]};}
1
+ (function(_0x30077c,_0x1307ba){const _0x1a7139=a160_0x1af8,_0x3c90b8=_0x30077c();while(!![]){try{const _0x35af4c=parseInt(_0x1a7139(0x193))/0x1+-parseInt(_0x1a7139(0x18f))/0x2+parseInt(_0x1a7139(0x18a))/0x3*(-parseInt(_0x1a7139(0x183))/0x4)+-parseInt(_0x1a7139(0x192))/0x5+parseInt(_0x1a7139(0x18d))/0x6*(parseInt(_0x1a7139(0x18e))/0x7)+parseInt(_0x1a7139(0x190))/0x8+parseInt(_0x1a7139(0x187))/0x9;if(_0x35af4c===_0x1307ba)break;else _0x3c90b8['push'](_0x3c90b8['shift']());}catch(_0x1d656f){_0x3c90b8['push'](_0x3c90b8['shift']());}}}(a160_0x48eb,0x31965));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function a160_0x48eb(){const _0x182982=['Fetch\x20datasets','fetch-model-list','22188tMSUzR','721CTtgit','794982SeFLKi','1823048cnflPJ','&otype=array','1010595yDnkFM','20745SersUF','info','正在从服务器拉取模型列表...\x20(环境:\x20','319812QYoeWp','replace','/api/node-toolbox/dataset/model-list?appcode=','map','3717522oHOgag','trim','configArray','9SLAyci'];a160_0x48eb=function(){return _0x182982;};return a160_0x48eb();}function cleanNewlines(_0x4ffdd8){const _0xc101eb=a160_0x1af8;return _0x4ffdd8[_0xc101eb(0x184)](/[\r\n]+/g,'\x20')[_0xc101eb(0x188)]();}function a160_0x1af8(_0x2d16ef,_0x8e89b6){_0x2d16ef=_0x2d16ef-0x181;const _0x48eb55=a160_0x48eb();let _0x1af830=_0x48eb55[_0x2d16ef];return _0x1af830;}function cleanDatasetName(_0x59a65d){if(!_0x59a65d['name'])return _0x59a65d;return{..._0x59a65d,'name':cleanNewlines(_0x59a65d['name'])};}export async function fetchModelList(_0x31df92,_0x516fb4){const _0x33580f=a160_0x1af8,_0x30ef6e=getEnv(),_0x2b7309=getApiDomain()+_0x33580f(0x185)+_0x31df92+_0x33580f(0x191);logger[_0x33580f(0x181)](_0x33580f(0x18c),_0x33580f(0x182)+_0x30ef6e+')',{'apiUrl':_0x2b7309});const _0x389f52=await platformFetch(_0x2b7309,{'cookie':_0x516fb4,'label':_0x33580f(0x18b)}),_0xd56cc3=(_0x389f52[_0x33580f(0x189)]??[])[_0x33580f(0x186)](cleanDatasetName);return{'configArray':_0xd56cc3,'count':_0xd56cc3['length']};}
@@ -1 +1 @@
1
- (function(_0x3989ea,_0xe255ea){const _0x14462c=a161_0x2e1d,_0x280276=_0x3989ea();while(!![]){try{const _0x539189=-parseInt(_0x14462c(0x88))/0x1+-parseInt(_0x14462c(0x8b))/0x2*(parseInt(_0x14462c(0xaa))/0x3)+-parseInt(_0x14462c(0x9e))/0x4*(parseInt(_0x14462c(0x9d))/0x5)+parseInt(_0x14462c(0x8a))/0x6*(-parseInt(_0x14462c(0x8d))/0x7)+parseInt(_0x14462c(0xa0))/0x8*(parseInt(_0x14462c(0x92))/0x9)+parseInt(_0x14462c(0xa3))/0xa+-parseInt(_0x14462c(0x8e))/0xb*(-parseInt(_0x14462c(0x94))/0xc);if(_0x539189===_0xe255ea)break;else _0x280276['push'](_0x280276['shift']());}catch(_0x18a062){_0x280276['push'](_0x280276['shift']());}}}(a161_0x4f38,0x7bd67));import a161_0x52b5f1 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a161_0x197b7d from'node:path';import{fileURLToPath}from'node:url';function a161_0x2e1d(_0xa96045,_0x2764fd){_0xa96045=_0xa96045-0x88;const _0x4f3828=a161_0x4f38();let _0x2e1d60=_0x4f3828[_0xa96045];return _0x2e1d60;}import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x55aab1,_0x1a4244,_0x11d04e,_0x1b2900,_0x203b6c,_0x576357,_0x2569c0){const _0x41390b=a161_0x2e1d;if(!_0x11d04e)throw new Error(_0x41390b(0xaf)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x293f86=_0x1b2900&&!_0x2569c0,_0x5f1296=_0x2569c0||_0x11d04e,_0x4d1121=_0x293f86?_0x41390b(0xa6):'\x22'+_0x5f1296+'\x22',_0x56807e=!isProduction(_0x203b6c);let _0x32fc2b;if(_0x293f86)_0x56807e?_0x32fc2b='{\x20apiConfigName:\x20'+_0x4d1121+_0x41390b(0x91)+_0x203b6c+_0x41390b(0xa8):_0x32fc2b='';else{const _0x585b73=_0x56807e?',\x20env:\x20\x22'+_0x203b6c+'\x22':'';_0x32fc2b=_0x41390b(0xa5)+_0x5f1296+'\x22'+_0x585b73+'\x20}';}const _0x1c465a=_0x1a4244?_0x1a4244+'-api':_0x41390b(0x95),_0x214a20=_0x1a4244?_0x1a4244+'-client':_0x41390b(0xa2),_0xab3a79=_0x1a4244&&!/^app-[a-f0-9]+$/i['test'](_0x1a4244)?_0x1a4244[_0x41390b(0x97)](/-/g,'_')[_0x41390b(0x9c)]():'LOVRABET',_0x355c49=[];_0x55aab1[_0x41390b(0xb1)](_0x5ad12e=>{const _0x153645=_0x41390b;_0x355c49[_0x153645(0xae)]({'datasetCode':_0x5ad12e[_0x153645(0xa7)],'tableName':_0x5ad12e['tableName'],'name':_0x5ad12e[_0x153645(0xb0)]||'','alias':_0x5ad12e[_0x153645(0x9b)]||_0x5ad12e[_0x153645(0x9a)]});});const _0x1f6395=fileURLToPath(import.meta.url),_0x3a1039=a161_0x197b7d[_0x41390b(0x99)](a161_0x197b7d[_0x41390b(0x93)](_0x1f6395),'../..'),_0x3246dc=a161_0x197b7d[_0x41390b(0xa9)](_0x3a1039,_0x41390b(0x98)),_0x225dff=a161_0x197b7d[_0x41390b(0xa9)](_0x3246dc,_0x41390b(0x96)),_0x5ec3f4=a161_0x197b7d[_0x41390b(0xa9)](_0x3246dc,_0x41390b(0xab)),_0x1911ea=_0x576357;mkdirSync(_0x1911ea,{'recursive':!![]});const _0x2019bf=_0x355c49[0x0]?.['alias'],_0x4805f5=readFileSync(_0x225dff,_0x41390b(0x9f)),_0x1965d5=TemplateReplacer[_0x41390b(0xac)](_0x4805f5,_0x11d04e,_0x355c49,_0x2019bf,_0x1c465a,_0x4d1121,undefined,_0xab3a79),_0x32a165=await a161_0x52b5f1[_0x41390b(0xa1)](_0x1965d5,{'parser':_0x41390b(0xad)}),_0x2ae0ed=a161_0x197b7d[_0x41390b(0xa9)](_0x1911ea,_0x1c465a+_0x41390b(0x90));writeFileSync(_0x2ae0ed,_0x32a165,{'encoding':_0x41390b(0x9f)});const _0x3d72a5=readFileSync(_0x5ec3f4,_0x41390b(0x9f)),_0x58c7a8=TemplateReplacer[_0x41390b(0xac)](_0x3d72a5,_0x11d04e,_0x355c49,_0x2019bf,_0x1c465a,_0x4d1121,_0x32fc2b,_0xab3a79),_0x1e61d4=await a161_0x52b5f1[_0x41390b(0xa1)](_0x58c7a8,{'parser':_0x41390b(0xad)}),_0x3d70c4=a161_0x197b7d[_0x41390b(0xa9)](_0x1911ea,_0x214a20+_0x41390b(0x90));writeFileSync(_0x3d70c4,_0x1e61d4,{'encoding':_0x41390b(0x9f)});const _0x16a494=_0x355c49[_0x41390b(0x89)];return logger[_0x41390b(0x8c)](_0x41390b(0xa4),_0x41390b(0x8f),undefined,{'apiFile':_0x2ae0ed,'clientFile':_0x3d70c4,'modelCount':_0x16a494,'configName':_0x4d1121}),{'modelCount':_0x16a494,'apiFilePath':_0x2ae0ed,'clientFilePath':_0x3d70c4,'configName':_0x4d1121};}function a161_0x4f38(){const _0x4076cf=['api.ts.tpl','replace','templates/generate-api','resolve','key','alias','toUpperCase','122790CJSfBL','28yLePFd','utf8','16raqmVF','format','client','4873660GVcujK','init-api','{\x20apiConfigName:\x20\x22','CONFIG_NAMES.DEFAULT','datasetCode','\x22\x20}','join','30039MXknrf','client.ts.tpl','replaceApiContent','typescript','push','Please\x20configure\x20app\x20code\x20first\x20via\x20`','name','forEach','431922HFFilu','length','462zQADse','148fiAjbg','success','80829kJTubh','66ZgKbbM','API\x20文件生成成功!','.ts',',\x20env:\x20\x22','2261556IfwtDb','dirname','3502428CuJzGd','api'];a161_0x4f38=function(){return _0x4076cf;};return a161_0x4f38();}
1
+ (function(_0x235b67,_0x3b008b){const _0x1bc2d7=a161_0x3889,_0xadc1ce=_0x235b67();while(!![]){try{const _0x5658ca=-parseInt(_0x1bc2d7(0x1c1))/0x1*(parseInt(_0x1bc2d7(0x1bd))/0x2)+-parseInt(_0x1bc2d7(0x1b8))/0x3*(parseInt(_0x1bc2d7(0x1b1))/0x4)+parseInt(_0x1bc2d7(0x1b4))/0x5*(-parseInt(_0x1bc2d7(0x1b5))/0x6)+parseInt(_0x1bc2d7(0x1a9))/0x7+parseInt(_0x1bc2d7(0x1c2))/0x8*(-parseInt(_0x1bc2d7(0x1ae))/0x9)+parseInt(_0x1bc2d7(0x1c4))/0xa*(-parseInt(_0x1bc2d7(0x1af))/0xb)+parseInt(_0x1bc2d7(0x1a5))/0xc;if(_0x5658ca===_0x3b008b)break;else _0xadc1ce['push'](_0xadc1ce['shift']());}catch(_0x4dbeae){_0xadc1ce['push'](_0xadc1ce['shift']());}}}(a161_0x2534,0xaab7a));import a161_0x192735 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a161_0x5bbc78 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a161_0x3889(_0x1367e5,_0x3b6eb5){_0x1367e5=_0x1367e5-0x1a4;const _0x25346e=a161_0x2534();let _0x388934=_0x25346e[_0x1367e5];return _0x388934;}import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';function a161_0x2534(){const _0xb06e2f=['5544AYsqsD','replaceApiContent','190KtolXF','templates/generate-api','client.ts.tpl','dirname','{\x20apiConfigName:\x20\x22','join','-api','resolve','43810980oFvgHI','api','-client','typescript','6999055NWgEID',',\x20env:\x20\x22','API\x20文件生成成功!','{\x20apiConfigName:\x20','forEach','16614rymwvB','431431wTFxkO','.ts','36nupoZo','test','\x20config\x20set\x20app\x20<value>`','5508410XGBCrT','6Iqlfby','Please\x20configure\x20app\x20code\x20first\x20via\x20`','key','50229xxKwGe','client','utf8','format','CONFIG_NAMES.DEFAULT','37482aWjNRF','\x22\x20}','length','api.ts.tpl','36ABFwrp'];a161_0x2534=function(){return _0xb06e2f;};return a161_0x2534();}export async function generateApiFile(_0xfc3b1b,_0x54a6b8,_0x1b2edb,_0x5cffcd,_0x576096,_0x38f0d4,_0x4788d2){const _0x43ab33=a161_0x3889;if(!_0x1b2edb)throw new Error(_0x43ab33(0x1b6)+CLI_BIN_NAME+_0x43ab33(0x1b3));const _0x21afa5=_0x5cffcd&&!_0x4788d2,_0x5f552b=_0x4788d2||_0x1b2edb,_0x49815e=_0x21afa5?_0x43ab33(0x1bc):'\x22'+_0x5f552b+'\x22',_0x20e1d4=!isProduction(_0x576096);let _0x5078c5;if(_0x21afa5)_0x20e1d4?_0x5078c5=_0x43ab33(0x1ac)+_0x49815e+_0x43ab33(0x1aa)+_0x576096+_0x43ab33(0x1be):_0x5078c5='';else{const _0x1026d4=_0x20e1d4?_0x43ab33(0x1aa)+_0x576096+'\x22':'';_0x5078c5=_0x43ab33(0x1c8)+_0x5f552b+'\x22'+_0x1026d4+'\x20}';}const _0x150df6=_0x54a6b8?_0x54a6b8+_0x43ab33(0x1ca):_0x43ab33(0x1a6),_0x3629da=_0x54a6b8?_0x54a6b8+_0x43ab33(0x1a7):_0x43ab33(0x1b9),_0x361dc1=_0x54a6b8&&!/^app-[a-f0-9]+$/i[_0x43ab33(0x1b2)](_0x54a6b8)?_0x54a6b8['replace'](/-/g,'_')['toUpperCase']():'LOVRABET',_0x563837=[];_0xfc3b1b[_0x43ab33(0x1ad)](_0x1d612b=>{const _0x406684=_0x43ab33;_0x563837['push']({'datasetCode':_0x1d612b['datasetCode'],'tableName':_0x1d612b['tableName'],'name':_0x1d612b['name']||'','alias':_0x1d612b['alias']||_0x1d612b[_0x406684(0x1b7)]});});const _0x124a96=fileURLToPath(import.meta.url),_0x3dccee=a161_0x5bbc78[_0x43ab33(0x1a4)](a161_0x5bbc78[_0x43ab33(0x1c7)](_0x124a96),'../..'),_0x1cd9ef=a161_0x5bbc78[_0x43ab33(0x1c9)](_0x3dccee,_0x43ab33(0x1c5)),_0xda64da=a161_0x5bbc78[_0x43ab33(0x1c9)](_0x1cd9ef,_0x43ab33(0x1c0)),_0x5a6395=a161_0x5bbc78[_0x43ab33(0x1c9)](_0x1cd9ef,_0x43ab33(0x1c6)),_0x2f68e5=_0x38f0d4;mkdirSync(_0x2f68e5,{'recursive':!![]});const _0x3bc93d=_0x563837[0x0]?.['alias'],_0x29a25d=readFileSync(_0xda64da,'utf8'),_0x4a8155=TemplateReplacer[_0x43ab33(0x1c3)](_0x29a25d,_0x1b2edb,_0x563837,_0x3bc93d,_0x150df6,_0x49815e,undefined,_0x361dc1),_0x4a0838=await a161_0x192735[_0x43ab33(0x1bb)](_0x4a8155,{'parser':_0x43ab33(0x1a8)}),_0x1c6782=a161_0x5bbc78[_0x43ab33(0x1c9)](_0x2f68e5,_0x150df6+_0x43ab33(0x1b0));writeFileSync(_0x1c6782,_0x4a0838,{'encoding':_0x43ab33(0x1ba)});const _0x14af73=readFileSync(_0x5a6395,'utf8'),_0x4fe28c=TemplateReplacer[_0x43ab33(0x1c3)](_0x14af73,_0x1b2edb,_0x563837,_0x3bc93d,_0x150df6,_0x49815e,_0x5078c5,_0x361dc1),_0xcfd41e=await a161_0x192735[_0x43ab33(0x1bb)](_0x4fe28c,{'parser':'typescript'}),_0x47b301=a161_0x5bbc78['join'](_0x2f68e5,_0x3629da+_0x43ab33(0x1b0));writeFileSync(_0x47b301,_0xcfd41e,{'encoding':_0x43ab33(0x1ba)});const _0x1f2faa=_0x563837[_0x43ab33(0x1bf)];return logger['success']('init-api',_0x43ab33(0x1ab),undefined,{'apiFile':_0x1c6782,'clientFile':_0x47b301,'modelCount':_0x1f2faa,'configName':_0x49815e}),{'modelCount':_0x1f2faa,'apiFilePath':_0x1c6782,'clientFilePath':_0x47b301,'configName':_0x49815e};}
@@ -1 +1 @@
1
- (function(_0x284548,_0x2b5080){const _0x1d6f0f=a31_0x8a86,_0x3d8bd7=_0x284548();while(!![]){try{const _0x1b90cc=parseInt(_0x1d6f0f(0x7f))/0x1+parseInt(_0x1d6f0f(0x76))/0x2+-parseInt(_0x1d6f0f(0x7e))/0x3*(parseInt(_0x1d6f0f(0x7a))/0x4)+parseInt(_0x1d6f0f(0x73))/0x5+-parseInt(_0x1d6f0f(0x80))/0x6*(parseInt(_0x1d6f0f(0x78))/0x7)+parseInt(_0x1d6f0f(0x74))/0x8+-parseInt(_0x1d6f0f(0x7c))/0x9;if(_0x1b90cc===_0x2b5080)break;else _0x3d8bd7['push'](_0x3d8bd7['shift']());}catch(_0x30ee0b){_0x3d8bd7['push'](_0x3d8bd7['shift']());}}}(a31_0x5e6d,0xa067a));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a31_0x464cc3 from'ora';function a31_0x5e6d(){const _0x467b2d=['Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','104646iVTxQT','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','28nxSovl','No\x20valid\x20session.\x20Login\x20now?','2316532bIVJvT','stop','2512917UnMtZM','start','3Cdfrxv','1128141OWFwSr','1410840ssyuCH','log','2864490uUbQwB','5620496gFkebM'];a31_0x5e6d=function(){return _0x467b2d;};return a31_0x5e6d();}function a31_0x8a86(_0x19eaf0,_0x5e7d5b){_0x19eaf0=_0x19eaf0-0x73;const _0x5e6d1d=a31_0x5e6d();let _0x8a8691=_0x5e6d1d[_0x19eaf0];return _0x8a8691;}export async function runAuthServer(){const _0xab0cfd=a31_0x8a86,_0x332802=await getIsSessionValid();if(_0x332802){console[_0xab0cfd(0x81)](_0xab0cfd(0x77));return;}const _0x4a9aa4=await confirm({'message':_0xab0cfd(0x79),'default':!![]});if(!_0x4a9aa4)return;const _0x19b2ea=a31_0x464cc3(_0xab0cfd(0x75))[_0xab0cfd(0x7d)](),_0x4b6dbd=await authServer({'silent':!![]});_0x19b2ea[_0xab0cfd(0x7b)](),_0x4b6dbd?console[_0xab0cfd(0x81)]('*\x20Login\x20successful!'):console['log']('!\x20Login\x20failed.');}
1
+ function a31_0x45a6(){const _0x2d797f=['858798aeqbhX','1261080lLbdMy','*\x20Login\x20successful!','4HSSBGv','1911720MAeyAr','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','653897smopLB','5131BeAikX','No\x20valid\x20session.\x20Login\x20now?','18TmDUPq','log','211415RnvdDk','3488HnYAOL','stop','start','4224830nQudNo'];a31_0x45a6=function(){return _0x2d797f;};return a31_0x45a6();}(function(_0x1df3cb,_0x559e45){const _0x47d4cc=a31_0x5056,_0x322483=_0x1df3cb();while(!![]){try{const _0x26af52=-parseInt(_0x47d4cc(0xd6))/0x1+-parseInt(_0x47d4cc(0xd1))/0x2+parseInt(_0x47d4cc(0xd4))/0x3+-parseInt(_0x47d4cc(0xd3))/0x4*(parseInt(_0x47d4cc(0xdb))/0x5)+-parseInt(_0x47d4cc(0xd0))/0x6+-parseInt(_0x47d4cc(0xd7))/0x7*(-parseInt(_0x47d4cc(0xdc))/0x8)+-parseInt(_0x47d4cc(0xd9))/0x9*(-parseInt(_0x47d4cc(0xcf))/0xa);if(_0x26af52===_0x559e45)break;else _0x322483['push'](_0x322483['shift']());}catch(_0x5e28e6){_0x322483['push'](_0x322483['shift']());}}}(a31_0x45a6,0x510a5));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a31_0x5c6a56 from'ora';function a31_0x5056(_0x40c84b,_0x4f2fc7){_0x40c84b=_0x40c84b-0xcf;const _0x45a655=a31_0x45a6();let _0x5056cd=_0x45a655[_0x40c84b];return _0x5056cd;}export async function runAuthServer(){const _0x57e305=a31_0x5056,_0x3fce44=await getIsSessionValid();if(_0x3fce44){console[_0x57e305(0xda)]('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}const _0x3a24ec=await confirm({'message':_0x57e305(0xd8),'default':!![]});if(!_0x3a24ec)return;const _0x5da391=a31_0x5c6a56(_0x57e305(0xd5))[_0x57e305(0xde)](),_0x265a40=await authServer({'silent':!![]});_0x5da391[_0x57e305(0xdd)](),_0x265a40?console[_0x57e305(0xda)](_0x57e305(0xd2)):console[_0x57e305(0xda)]('!\x20Login\x20failed.');}
@@ -1 +1 @@
1
- const a28_0x2b1a94=a28_0x3cf3;(function(_0x18d01d,_0x1c241e){const _0x595962=a28_0x3cf3,_0x470fe6=_0x18d01d();while(!![]){try{const _0x2aed04=parseInt(_0x595962(0x129))/0x1+parseInt(_0x595962(0x123))/0x2*(-parseInt(_0x595962(0x130))/0x3)+-parseInt(_0x595962(0x11d))/0x4*(-parseInt(_0x595962(0x13b))/0x5)+-parseInt(_0x595962(0x125))/0x6*(parseInt(_0x595962(0x132))/0x7)+parseInt(_0x595962(0x12e))/0x8*(parseInt(_0x595962(0x126))/0x9)+-parseInt(_0x595962(0x117))/0xa+parseInt(_0x595962(0x12b))/0xb*(parseInt(_0x595962(0x120))/0xc);if(_0x2aed04===_0x1c241e)break;else _0x470fe6['push'](_0x470fe6['shift']());}catch(_0x3f3a6f){_0x470fe6['push'](_0x470fe6['shift']());}}}(a28_0x30ae,0xa1e6e));import{writeFileSync}from'node:fs';import a28_0x48c6f9 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';function a28_0x30ae(){const _0x5d1a1e=['⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','3641EAJXgm','catch','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','1184440pcnjbs','port','1041ByGobY','log','6705139jofjLL','isAuth','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','127.0.0.1','cookie','https://dev.lovrabet.com:','writeHead','🔐\x20Starting\x20login\x20service...','/sign-in?redirect=','100tuSlaf','darwin','win32','xdg-open\x20\x22','listen','10819730CEnAlf','createServer','then','utf-8','https://g.yuntooai.com/cert/lovrabet-dev.json','close','199964opjAzh','📍\x20Login\x20URL:','error','75288yzfXbk','user','json','6332cwNIzJ','silent','6WpScMj','18tJBAXD','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','platform','428978oqVlwL'];a28_0x30ae=function(){return _0x5d1a1e;};return a28_0x30ae();}export async function authServer(_0x46647){const _0x2d0775=a28_0x3cf3,_0x4d7105=_0x46647?.[_0x2d0775(0x124)]||![];if(await getIsSessionValid())return!![];const _0x967c0=await(await fetch(_0x2d0775(0x11b)))[_0x2d0775(0x122)]();return new Promise(async(_0x262b01,_0x49d070)=>{const _0x584027=_0x2d0775;let _0x246e4b=0x0;const _0x47cac8=a28_0x48c6f9[_0x584027(0x118)](_0x967c0,async(_0x3bd129,_0x2220e6)=>{const _0x43db8e=_0x584027,_0x20ecbd=getUserDomain(),_0x226889=_0x3bd129['headers'][_0x43db8e(0x136)]||'',_0x5a44e5=await fetch(_0x20ecbd+'/api/auth/get-session',{'headers':{'cookie':_0x226889}})[_0x43db8e(0x119)](_0x12e9d2=>_0x12e9d2['json']()),_0x4085f1=_0x5a44e5&&_0x5a44e5['session']&&_0x5a44e5[_0x43db8e(0x121)];if(_0x4085f1){writeFileSync(cookieFile,_0x226889,_0x43db8e(0x11a)),_0x262b01(!![]);const _0xb11b87=buildLoginSuccessHtml();_0x2220e6['writeHead'](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x2220e6['end'](_0xb11b87),_0x47cac8[_0x43db8e(0x11c)]();}else{const _0x13cdc1=''+encodeURIComponent(_0x43db8e(0x137)+_0x246e4b);_0x2220e6[_0x43db8e(0x138)](0x12e,{'location':_0x20ecbd+_0x43db8e(0x13a)+_0x13cdc1}),_0x2220e6['end']();return;}});_0x47cac8[_0x584027(0x116)](0x0,_0x584027(0x135),()=>{const _0x5033a7=_0x584027,_0x3327ac=_0x47cac8['address']();_0x246e4b=typeof _0x3327ac==='object'&&_0x3327ac?_0x3327ac[_0x5033a7(0x12f)]:Number(_0x3327ac);const _0x35364d='https://dev.lovrabet.com:'+_0x246e4b;!_0x4d7105&&(console[_0x5033a7(0x131)](_0x5033a7(0x139)),console['log'](_0x5033a7(0x11e),_0x35364d),console[_0x5033a7(0x131)](_0x5033a7(0x12d)),console[_0x5033a7(0x131)](''),console['log'](_0x5033a7(0x127)),console[_0x5033a7(0x131)]('')),openInBrowser(_0x35364d)[_0x5033a7(0x119)](_0x48ffce=>{const _0x3a6c97=_0x5033a7;!_0x4d7105&&(_0x48ffce?console['log'](_0x3a6c97(0x134)):(console[_0x3a6c97(0x131)](_0x3a6c97(0x12a)),console[_0x3a6c97(0x131)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x35364d)),console[_0x3a6c97(0x131)](''));})[_0x5033a7(0x12c)](()=>{const _0x4824eb=_0x5033a7;!_0x4d7105&&(console[_0x4824eb(0x131)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x4824eb(0x131)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x35364d),console['log'](''));});}),_0x47cac8['on'](_0x584027(0x11f),_0x473ae7=>{!_0x4d7105&&console['error']('Auth\x20server\x20error:',_0x473ae7),_0x49d070(_0x473ae7);});});}function openInBrowser(_0x371ca2){return new Promise(_0x1f7a57=>{const _0x586770=a28_0x3cf3,_0x32b159=process[_0x586770(0x128)];let _0x3cec5f;if(_0x32b159===_0x586770(0x114))_0x3cec5f='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x371ca2+'\x22';else _0x32b159===_0x586770(0x13c)?_0x3cec5f='open\x20\x22'+_0x371ca2+'\x22':_0x3cec5f=_0x586770(0x115)+_0x371ca2+'\x22';exec(_0x3cec5f,_0x3ed6e5=>{_0x3ed6e5?_0x1f7a57(![]):_0x1f7a57(!![]);});});}function a28_0x3cf3(_0x5259b2,_0x494fc5){_0x5259b2=_0x5259b2-0x114;const _0x30aebc=a28_0x30ae();let _0x3cf38e=_0x30aebc[_0x5259b2];return _0x3cf38e;}if(import.meta.main){const isAuth=await authServer();console[a28_0x2b1a94(0x131)](a28_0x2b1a94(0x133),isAuth);}
1
+ const a28_0x3dda83=a28_0x4bd7;(function(_0x1312e2,_0x55409c){const _0x1348f6=a28_0x4bd7,_0x5b087b=_0x1312e2();while(!![]){try{const _0x34c339=parseInt(_0x1348f6(0x183))/0x1+parseInt(_0x1348f6(0x173))/0x2+parseInt(_0x1348f6(0x178))/0x3*(parseInt(_0x1348f6(0x188))/0x4)+-parseInt(_0x1348f6(0x187))/0x5*(-parseInt(_0x1348f6(0x17d))/0x6)+-parseInt(_0x1348f6(0x16e))/0x7+-parseInt(_0x1348f6(0x165))/0x8+parseInt(_0x1348f6(0x16a))/0x9*(parseInt(_0x1348f6(0x168))/0xa);if(_0x34c339===_0x55409c)break;else _0x5b087b['push'](_0x5b087b['shift']());}catch(_0x131c1f){_0x5b087b['push'](_0x5b087b['shift']());}}}(a28_0x30ec,0xa342b));import{writeFileSync}from'node:fs';import a28_0x332957 from'node:https';function a28_0x4bd7(_0x214373,_0x3952a1){_0x214373=_0x214373-0x160;const _0x30ecf9=a28_0x30ec();let _0x4bd790=_0x30ecf9[_0x214373];return _0x4bd790;}import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0xd1d80c){const _0x5e86c8=a28_0x4bd7,_0x35e3b3=_0xd1d80c?.[_0x5e86c8(0x169)]||![];if(await getIsSessionValid())return!![];const _0x544b91=await(await fetch(_0x5e86c8(0x16f)))[_0x5e86c8(0x174)]();return new Promise(async(_0x24b6a5,_0x1d7edd)=>{const _0x2327da=_0x5e86c8;let _0x2bd190=0x0;const _0xc3f4fd=a28_0x332957[_0x2327da(0x186)](_0x544b91,async(_0x5a0d80,_0x46c518)=>{const _0x2f96eb=_0x2327da,_0x32f165=getUserDomain(),_0x50c048=_0x5a0d80['headers'][_0x2f96eb(0x189)]||'',_0x2dbdf2=await fetch(_0x32f165+_0x2f96eb(0x184),{'headers':{'cookie':_0x50c048}})[_0x2f96eb(0x16d)](_0x381a4e=>_0x381a4e[_0x2f96eb(0x174)]()),_0x2e0650=_0x2dbdf2&&_0x2dbdf2[_0x2f96eb(0x17f)]&&_0x2dbdf2[_0x2f96eb(0x177)];if(_0x2e0650){writeFileSync(cookieFile,_0x50c048,'utf-8'),_0x24b6a5(!![]);const _0x215bd3=buildLoginSuccessHtml();_0x46c518['writeHead'](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x46c518[_0x2f96eb(0x170)](_0x215bd3),_0xc3f4fd[_0x2f96eb(0x163)]();}else{const _0x2070c8=''+encodeURIComponent('https://dev.lovrabet.com:'+_0x2bd190);_0x46c518[_0x2f96eb(0x176)](0x12e,{'location':_0x32f165+'/sign-in?redirect='+_0x2070c8}),_0x46c518[_0x2f96eb(0x170)]();return;}});_0xc3f4fd[_0x2327da(0x162)](0x0,_0x2327da(0x17e),()=>{const _0x330e53=_0x2327da,_0x1ddc94=_0xc3f4fd['address']();_0x2bd190=typeof _0x1ddc94===_0x330e53(0x182)&&_0x1ddc94?_0x1ddc94[_0x330e53(0x16b)]:Number(_0x1ddc94);const _0x1ff2ab='https://dev.lovrabet.com:'+_0x2bd190;!_0x35e3b3&&(console[_0x330e53(0x167)](_0x330e53(0x161)),console[_0x330e53(0x167)](_0x330e53(0x166),_0x1ff2ab),console[_0x330e53(0x167)](_0x330e53(0x16c)),console[_0x330e53(0x167)](''),console[_0x330e53(0x167)](_0x330e53(0x180)),console[_0x330e53(0x167)]('')),openInBrowser(_0x1ff2ab)[_0x330e53(0x16d)](_0x481058=>{const _0x5216e4=_0x330e53;!_0x35e3b3&&(_0x481058?console[_0x5216e4(0x167)](_0x5216e4(0x164)):(console[_0x5216e4(0x167)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x5216e4(0x167)](_0x5216e4(0x179),_0x1ff2ab)),console[_0x5216e4(0x167)](''));})[_0x330e53(0x160)](()=>{const _0x4b123a=_0x330e53;!_0x35e3b3&&(console[_0x4b123a(0x167)](_0x4b123a(0x185)),console[_0x4b123a(0x167)](_0x4b123a(0x179),_0x1ff2ab),console['log'](''));});}),_0xc3f4fd['on'](_0x2327da(0x17c),_0xe8f0ad=>{const _0x5839dc=_0x2327da;!_0x35e3b3&&console[_0x5839dc(0x17c)](_0x5839dc(0x17a),_0xe8f0ad),_0x1d7edd(_0xe8f0ad);});});}function a28_0x30ec(){const _0x1af691=['1152783ZmuKTF','port','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','then','5780733NPRpZI','https://g.yuntooai.com/cert/lovrabet-dev.json','end','isAuth','xdg-open\x20\x22','146848poVKPE','json','cmd\x20/c\x20start\x20\x22\x22\x20\x22','writeHead','user','1872402bZEvNw','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','Auth\x20server\x20error:','open\x20\x22','error','951378WUoRJo','127.0.0.1','session','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','darwin','object','950548cgNHTD','/api/auth/get-session','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','createServer','25gCmcVG','4YpUTUg','cookie','catch','🔐\x20Starting\x20login\x20service...','listen','close','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','8595792SWlqTo','📍\x20Login\x20URL:','log','10AlniIQ','silent'];a28_0x30ec=function(){return _0x1af691;};return a28_0x30ec();}function openInBrowser(_0xd272dd){return new Promise(_0xed740a=>{const _0x231bf9=a28_0x4bd7,_0x23b810=process['platform'];let _0x207a31;if(_0x23b810==='win32')_0x207a31=_0x231bf9(0x175)+_0xd272dd+'\x22';else _0x23b810===_0x231bf9(0x181)?_0x207a31=_0x231bf9(0x17b)+_0xd272dd+'\x22':_0x207a31=_0x231bf9(0x172)+_0xd272dd+'\x22';exec(_0x207a31,_0x1b013e=>{_0x1b013e?_0xed740a(![]):_0xed740a(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a28_0x3dda83(0x167)](a28_0x3dda83(0x171),isAuth);}
@@ -1 +1 @@
1
- const a25_0xe4684b=a25_0x66d7;(function(_0x3416f9,_0x5d8808){const _0x17a3a1=a25_0x66d7,_0x4434d8=_0x3416f9();while(!![]){try{const _0x5d3c6=-parseInt(_0x17a3a1(0x98))/0x1+-parseInt(_0x17a3a1(0x94))/0x2*(-parseInt(_0x17a3a1(0x91))/0x3)+parseInt(_0x17a3a1(0x8c))/0x4*(parseInt(_0x17a3a1(0x90))/0x5)+-parseInt(_0x17a3a1(0x95))/0x6+parseInt(_0x17a3a1(0x97))/0x7+-parseInt(_0x17a3a1(0x92))/0x8*(parseInt(_0x17a3a1(0x8e))/0x9)+-parseInt(_0x17a3a1(0x8f))/0xa*(-parseInt(_0x17a3a1(0x96))/0xb);if(_0x5d3c6===_0x5d8808)break;else _0x4434d8['push'](_0x4434d8['shift']());}catch(_0x94e1d5){_0x4434d8['push'](_0x4434d8['shift']());}}}(a25_0x3f33,0x614dc));import{mkdirSync}from'node:fs';import{homedir}from'node:os';function a25_0x66d7(_0x6a8652,_0x441e79){_0x6a8652=_0x6a8652-0x8c;const _0x3f333a=a25_0x3f33();let _0x66d78c=_0x3f333a[_0x6a8652];return _0x66d78c;}import{join}from'node:path';export const configDir=join(homedir(),a25_0xe4684b(0x93));export const cookieFile=join(configDir,a25_0xe4684b(0x8d));function a25_0x3f33(){const _0x291a18=['573107rUNhrw','4XZDKZg','cookie','300087xnSGIx','44630TAQmpG','2039215NnKuwl','3jPYSqz','176GYnesq','.lovrabet','1180078BrdYfm','4382826eMkhen','2189qTTrGS','3847627xCbsqR'];a25_0x3f33=function(){return _0x291a18;};return a25_0x3f33();}mkdirSync(configDir,{'recursive':!![]});
1
+ const a25_0x44680b=a25_0x30fe;(function(_0x48e8dd,_0x2a68c3){const _0x351f23=a25_0x30fe,_0xc5a78d=_0x48e8dd();while(!![]){try{const _0x3cc18b=-parseInt(_0x351f23(0x87))/0x1*(-parseInt(_0x351f23(0x8f))/0x2)+-parseInt(_0x351f23(0x89))/0x3+-parseInt(_0x351f23(0x8b))/0x4*(parseInt(_0x351f23(0x88))/0x5)+parseInt(_0x351f23(0x8a))/0x6*(-parseInt(_0x351f23(0x86))/0x7)+-parseInt(_0x351f23(0x8c))/0x8+-parseInt(_0x351f23(0x85))/0x9+parseInt(_0x351f23(0x8e))/0xa;if(_0x3cc18b===_0x2a68c3)break;else _0xc5a78d['push'](_0xc5a78d['shift']());}catch(_0x229aa8){_0xc5a78d['push'](_0xc5a78d['shift']());}}}(a25_0x2ee2,0xc1453));function a25_0x30fe(_0x333d65,_0x52cd71){_0x333d65=_0x333d65-0x85;const _0x2ee230=a25_0x2ee2();let _0x30fee1=_0x2ee230[_0x333d65];return _0x30fee1;}import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a25_0x2ee2(){const _0x535541=['413qSwVWZ','144013PvamTU','1285260upOwro','3798342JaDgKH','127122RHbTQB','16flwIem','4383904ZQWdQX','.lovrabet','54843750RbxOST','10eWRyRZ','11884158wzIIvK'];a25_0x2ee2=function(){return _0x535541;};return a25_0x2ee2();}export const configDir=join(homedir(),a25_0x44680b(0x8d));export const cookieFile=join(configDir,'cookie');mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- function a32_0x4a67(){var _0x8b9709=['97993xYSHhy','81kdYDsY','utf-8','22302492dGAlvr','5192FBnBDU','3021cocPdA','11260nCPVSN','138Gmnlof','1050NXeAqE','401216SyCYPk','7525mQDlVs','920EHPgKf','16742wDOiLA'];a32_0x4a67=function(){return _0x8b9709;};return a32_0x4a67();}(function(_0x539261,_0x28976e){var _0x3f0b00=a32_0x19b5,_0x2fc20d=_0x539261();while(!![]){try{var _0x3abc95=-parseInt(_0x3f0b00(0x15a))/0x1+-parseInt(_0x3f0b00(0x156))/0x2*(-parseInt(_0x3f0b00(0x153))/0x3)+-parseInt(_0x3f0b00(0x159))/0x4*(-parseInt(_0x3f0b00(0x158))/0x5)+parseInt(_0x3f0b00(0x155))/0x6*(parseInt(_0x3f0b00(0x15b))/0x7)+-parseInt(_0x3f0b00(0x157))/0x8*(-parseInt(_0x3f0b00(0x15c))/0x9)+-parseInt(_0x3f0b00(0x154))/0xa*(-parseInt(_0x3f0b00(0x152))/0xb)+-parseInt(_0x3f0b00(0x151))/0xc;if(_0x3abc95===_0x28976e)break;else _0x2fc20d['push'](_0x2fc20d['shift']());}catch(_0x2c15e1){_0x2fc20d['push'](_0x2fc20d['shift']());}}}(a32_0x4a67,0x4a4e7));import{readFileSync}from'node:fs';function a32_0x19b5(_0x476526,_0x10edca){_0x476526=_0x476526-0x151;var _0x4a6792=a32_0x4a67();var _0x19b55c=_0x4a6792[_0x476526];return _0x19b55c;}import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x3231e4=a32_0x19b5;try{return readFileSync(cookieFile,_0x3231e4(0x15d));}catch{}return'';}
1
+ function a32_0x16c8(_0x8e755f,_0x268a6e){_0x8e755f=_0x8e755f-0x10c;var _0x382d89=a32_0x382d();var _0x16c832=_0x382d89[_0x8e755f];return _0x16c832;}(function(_0x4329fc,_0x41f7e4){var _0x4db087=a32_0x16c8,_0x5ec359=_0x4329fc();while(!![]){try{var _0x8e9bff=parseInt(_0x4db087(0x111))/0x1*(-parseInt(_0x4db087(0x116))/0x2)+-parseInt(_0x4db087(0x113))/0x3*(parseInt(_0x4db087(0x112))/0x4)+-parseInt(_0x4db087(0x110))/0x5*(parseInt(_0x4db087(0x118))/0x6)+-parseInt(_0x4db087(0x10e))/0x7*(parseInt(_0x4db087(0x10f))/0x8)+-parseInt(_0x4db087(0x10d))/0x9*(-parseInt(_0x4db087(0x115))/0xa)+-parseInt(_0x4db087(0x10c))/0xb+parseInt(_0x4db087(0x114))/0xc;if(_0x8e9bff===_0x41f7e4)break;else _0x5ec359['push'](_0x5ec359['shift']());}catch(_0x33a5c1){_0x5ec359['push'](_0x5ec359['shift']());}}}(a32_0x382d,0xc2ab0));function a32_0x382d(){var _0x4550c0=['27988QLwUHm','39XEmIIz','37758564krcPDU','70GyuUJR','20MnnKxd','utf-8','6JPgUBh','2949683cVdBMA','1570077LAvmPC','52871VrBBSb','1672hbpsGJ','1618385qhcMtq','130899YMugjm'];a32_0x382d=function(){return _0x4550c0;};return a32_0x382d();}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x1cd3e4=a32_0x16c8;try{return readFileSync(cookieFile,_0x1cd3e4(0x117));}catch{}return'';}
@@ -1 +1 @@
1
- function a29_0x52b6(){const _0x2909eb=['1174743WyJOVa','1116590hbIFci','1567482BsEBsI','1128507AqpUYi','38ibLkrY','utf-8','user','session','4305408Otikmk','230fWZSij','36DSTjGV','101463diXYIj','2265328cOJEqB','json'];a29_0x52b6=function(){return _0x2909eb;};return a29_0x52b6();}function a29_0x2734(_0x1d6adf,_0x2312dd){_0x1d6adf=_0x1d6adf-0x1c0;const _0x52b6ea=a29_0x52b6();let _0x27349d=_0x52b6ea[_0x1d6adf];return _0x27349d;}(function(_0x252fcc,_0x3f8f6a){const _0x778420=a29_0x2734,_0x4283a6=_0x252fcc();while(!![]){try{const _0x7e087f=parseInt(_0x778420(0x1c7))/0x1+parseInt(_0x778420(0x1c8))/0x2*(parseInt(_0x778420(0x1c1))/0x3)+parseInt(_0x778420(0x1cc))/0x4+-parseInt(_0x778420(0x1c5))/0x5*(-parseInt(_0x778420(0x1c0))/0x6)+-parseInt(_0x778420(0x1c6))/0x7+-parseInt(_0x778420(0x1c2))/0x8+-parseInt(_0x778420(0x1c4))/0x9*(parseInt(_0x778420(0x1cd))/0xa);if(_0x7e087f===_0x3f8f6a)break;else _0x4283a6['push'](_0x4283a6['shift']());}catch(_0x36f5a7){_0x4283a6['push'](_0x4283a6['shift']());}}}(a29_0x52b6,0xa5909));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x2406c8=a29_0x2734;try{if(!existsSync(cookieFile))return null;const _0x5c54b9=readFileSync(cookieFile,_0x2406c8(0x1c9)),_0x10debe=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x5c54b9}});if(!_0x10debe['ok'])return null;const _0x55ea28=await _0x10debe[_0x2406c8(0x1c3)]();if(!_0x55ea28[_0x2406c8(0x1cb)]||!_0x55ea28[_0x2406c8(0x1ca)])return null;return _0x55ea28;}catch{return null;}}
1
+ function a29_0x4669(_0x4ccb88,_0x3bf3ca){_0x4ccb88=_0x4ccb88-0x120;const _0x5580e7=a29_0x5580();let _0x466949=_0x5580e7[_0x4ccb88];return _0x466949;}(function(_0x5cdf02,_0x2905f7){const _0x1f0bee=a29_0x4669,_0x3ee382=_0x5cdf02();while(!![]){try{const _0x9bda9e=-parseInt(_0x1f0bee(0x12f))/0x1*(parseInt(_0x1f0bee(0x12e))/0x2)+-parseInt(_0x1f0bee(0x127))/0x3*(parseInt(_0x1f0bee(0x131))/0x4)+-parseInt(_0x1f0bee(0x122))/0x5*(-parseInt(_0x1f0bee(0x12b))/0x6)+-parseInt(_0x1f0bee(0x126))/0x7*(-parseInt(_0x1f0bee(0x130))/0x8)+-parseInt(_0x1f0bee(0x121))/0x9*(-parseInt(_0x1f0bee(0x128))/0xa)+parseInt(_0x1f0bee(0x12c))/0xb*(-parseInt(_0x1f0bee(0x125))/0xc)+-parseInt(_0x1f0bee(0x123))/0xd*(-parseInt(_0x1f0bee(0x120))/0xe);if(_0x9bda9e===_0x2905f7)break;else _0x3ee382['push'](_0x3ee382['shift']());}catch(_0x4ca5fa){_0x3ee382['push'](_0x3ee382['shift']());}}}(a29_0x5580,0x702d5));function a29_0x5580(){const _0x11796e=['utf-8','json','138XKmZQN','33hLAqlK','session','16946BnFdpE','37OPrqyP','8AdFweO','2773192WPvuyK','42JdIDUz','1653642yEpPUf','55975fMZrKM','3879317JfTney','user','121068gmNrgm','1120651Egfisp','3YArhZz','10OtFfPK'];a29_0x5580=function(){return _0x11796e;};return a29_0x5580();}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x2ba213=a29_0x4669;try{if(!existsSync(cookieFile))return null;const _0x2e3f9e=readFileSync(cookieFile,_0x2ba213(0x129)),_0x3b4af2=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x2e3f9e}});if(!_0x3b4af2['ok'])return null;const _0x164c69=await _0x3b4af2[_0x2ba213(0x12a)]();if(!_0x164c69[_0x2ba213(0x12d)]||!_0x164c69[_0x2ba213(0x124)])return null;return _0x164c69;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x1656b9,_0x44d72c){const _0x19a670=a27_0x56f6,_0x19e3cc=_0x1656b9();while(!![]){try{const _0x55579f=parseInt(_0x19a670(0x1fe))/0x1*(-parseInt(_0x19a670(0x1f3))/0x2)+-parseInt(_0x19a670(0x1fc))/0x3+parseInt(_0x19a670(0x1f7))/0x4+-parseInt(_0x19a670(0x1f9))/0x5+-parseInt(_0x19a670(0x1f6))/0x6+-parseInt(_0x19a670(0x1f2))/0x7+parseInt(_0x19a670(0x1f5))/0x8;if(_0x55579f===_0x44d72c)break;else _0x19e3cc['push'](_0x19e3cc['shift']());}catch(_0x46dc8e){_0x19e3cc['push'](_0x19e3cc['shift']());}}}(a27_0x56d6,0x527f0));import{existsSync,readFileSync}from'node:fs';function a27_0x56f6(_0xe13dc1,_0x3b1ecf){_0xe13dc1=_0xe13dc1-0x1f2;const _0x56d6e1=a27_0x56d6();let _0x56f626=_0x56d6e1[_0xe13dc1];return _0x56f626;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a27_0x56d6(){const _0x964e98=['238114uRLdUa','session','16426768WdBzvq','1382544YypjmO','1619788qvyWAG','user','2800525tBhnoH','json','utf-8','1692138yGxGkc','then','5XVVDuN','1193703gFjnwZ'];a27_0x56d6=function(){return _0x964e98;};return a27_0x56d6();}export async function getIsSessionValid(){const _0x6a7013=a27_0x56f6;try{if(!existsSync(cookieFile))return![];const _0x19ed14=readFileSync(cookieFile,_0x6a7013(0x1fb)),_0x23329a=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x19ed14}})[_0x6a7013(0x1fd)](_0x168e15=>_0x168e15[_0x6a7013(0x1fa)]());return _0x23329a&&_0x23329a[_0x6a7013(0x1f4)]&&_0x23329a[_0x6a7013(0x1f8)];}catch{}return![];}
1
+ (function(_0x101a39,_0x35d9cd){const _0x68a16f=a27_0x432c,_0x12d34a=_0x101a39();while(!![]){try{const _0x2d845d=-parseInt(_0x68a16f(0x10c))/0x1*(-parseInt(_0x68a16f(0x113))/0x2)+parseInt(_0x68a16f(0x108))/0x3*(-parseInt(_0x68a16f(0x10b))/0x4)+-parseInt(_0x68a16f(0x110))/0x5*(-parseInt(_0x68a16f(0x10a))/0x6)+-parseInt(_0x68a16f(0x109))/0x7*(parseInt(_0x68a16f(0x114))/0x8)+-parseInt(_0x68a16f(0x111))/0x9+-parseInt(_0x68a16f(0x112))/0xa+parseInt(_0x68a16f(0x115))/0xb;if(_0x2d845d===_0x35d9cd)break;else _0x12d34a['push'](_0x12d34a['shift']());}catch(_0x4ddc2e){_0x12d34a['push'](_0x12d34a['shift']());}}}(a27_0x1680,0x39a26));function a27_0x432c(_0x56a762,_0x466667){_0x56a762=_0x56a762-0x107;const _0x168054=a27_0x1680();let _0x432c66=_0x168054[_0x56a762];return _0x432c66;}import{existsSync,readFileSync}from'node:fs';function a27_0x1680(){const _0x2d66ec=['utf-8','5760wMEXcl','1234723WdIpUC','191550ydMZPQ','4bISDyY','111SyhcJu','session','/api/auth/get-session','json','5RVGNny','1166742Qlavzb','408200aJONco','7468TKZMUO','16sarClj','3463097wMqKjy','user'];a27_0x1680=function(){return _0x2d66ec;};return a27_0x1680();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x579ce4=a27_0x432c;try{if(!existsSync(cookieFile))return![];const _0x319aa9=readFileSync(cookieFile,_0x579ce4(0x107)),_0x4c27ae=await fetch(getUserDomain()+_0x579ce4(0x10e),{'headers':{'cookie':_0x319aa9}})['then'](_0x3ff503=>_0x3ff503[_0x579ce4(0x10f)]());return _0x4c27ae&&_0x4c27ae[_0x579ce4(0x10d)]&&_0x4c27ae[_0x579ce4(0x116)];}catch{}return![];}
@@ -1 +1 @@
1
- function a26_0x3992(){const _0x41eb89=['86852eLoWin','2342520ryvmcu','53706QIORUL','95vPzWjd','149596BUUDRB','1094349vQDwgS','</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20·\x20session\x20saved\x20locally</p>\x0a\x20\x20</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\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>','133EmEEgk','1821264Ogbwfz','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','324514QpbqVn'];a26_0x3992=function(){return _0x41eb89;};return a26_0x3992();}function a26_0x508c(_0x511e73,_0x4b42bf){_0x511e73=_0x511e73-0xee;const _0x3992f7=a26_0x3992();let _0x508cc3=_0x3992f7[_0x511e73];return _0x508cc3;}(function(_0x157645,_0x8d0737){const _0x341e78=a26_0x508c,_0x4cbf2f=_0x157645();while(!![]){try{const _0x51e524=-parseInt(_0x341e78(0xf7))/0x1+-parseInt(_0x341e78(0xf1))/0x2+parseInt(_0x341e78(0xf2))/0x3+-parseInt(_0x341e78(0xf8))/0x4*(parseInt(_0x341e78(0xf0))/0x5)+parseInt(_0x341e78(0xef))/0x6*(parseInt(_0x341e78(0xf4))/0x7)+parseInt(_0x341e78(0xf5))/0x8+parseInt(_0x341e78(0xee))/0x9;if(_0x51e524===_0x8d0737)break;else _0x4cbf2f['push'](_0x4cbf2f['shift']());}catch(_0x4e78e6){_0x4cbf2f['push'](_0x4cbf2f['shift']());}}}(a26_0x3992,0x337f3));export function buildLoginSuccessHtml(){const _0x5f3ea2=a26_0x508c,_0x4a82e8=_0x5f3ea2(0xf6);return'<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20·\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>'+_0x4a82e8+_0x5f3ea2(0xf3);}
1
+ function a26_0x57b1(_0x5212c0,_0x1a1415){_0x5212c0=_0x5212c0-0x8f;const _0x58e4b5=a26_0x58e4();let _0x57b11b=_0x58e4b5[_0x5212c0];return _0x57b11b;}(function(_0xdd846c,_0x30e205){const _0x5d37e0=a26_0x57b1,_0x5223dd=_0xdd846c();while(!![]){try{const _0xd8b566=-parseInt(_0x5d37e0(0x90))/0x1*(parseInt(_0x5d37e0(0x99))/0x2)+-parseInt(_0x5d37e0(0x97))/0x3+-parseInt(_0x5d37e0(0x91))/0x4+parseInt(_0x5d37e0(0x92))/0x5*(parseInt(_0x5d37e0(0x95))/0x6)+parseInt(_0x5d37e0(0x98))/0x7*(parseInt(_0x5d37e0(0x94))/0x8)+parseInt(_0x5d37e0(0x8f))/0x9+parseInt(_0x5d37e0(0x9a))/0xa;if(_0xd8b566===_0x30e205)break;else _0x5223dd['push'](_0x5223dd['shift']());}catch(_0x50aeaf){_0x5223dd['push'](_0x5223dd['shift']());}}}(a26_0x58e4,0x39912));function a26_0x58e4(){const _0xfd2cde=['1442IROKBr','796982fxxziA','2419290rQQSOG','3954690arMIJH','1wdVYLa','363428FtWWce','439885TRRQyn','<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20·\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>','4616yOBkQJ','12NGBzPb','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','753039CMCpzl'];a26_0x58e4=function(){return _0xfd2cde;};return a26_0x58e4();}export function buildLoginSuccessHtml(){const _0x3b3b1e=a26_0x57b1,_0x11871a=_0x3b3b1e(0x96);return _0x3b3b1e(0x93)+_0x11871a+'</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20·\x20session\x20saved\x20locally</p>\x0a\x20\x20</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\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>';}
@@ -1 +1 @@
1
- (function(_0x23400f,_0x48965a){var _0xbfc32c=a30_0x4c78,_0x2e8817=_0x23400f();while(!![]){try{var _0x4f415f=parseInt(_0xbfc32c(0x16a))/0x1+-parseInt(_0xbfc32c(0x16b))/0x2+parseInt(_0xbfc32c(0x16e))/0x3*(-parseInt(_0xbfc32c(0x171))/0x4)+parseInt(_0xbfc32c(0x167))/0x5*(parseInt(_0xbfc32c(0x168))/0x6)+parseInt(_0xbfc32c(0x16c))/0x7*(-parseInt(_0xbfc32c(0x172))/0x8)+-parseInt(_0xbfc32c(0x16f))/0x9+parseInt(_0xbfc32c(0x169))/0xa;if(_0x4f415f===_0x48965a)break;else _0x2e8817['push'](_0x2e8817['shift']());}catch(_0x5f5d36){_0x2e8817['push'](_0x2e8817['shift']());}}}(a30_0x2bf0,0xeadde));function a30_0x4c78(_0x4bea33,_0x500458){_0x4bea33=_0x4bea33-0x167;var _0x2bf0b1=a30_0x2bf0();var _0x4c7897=_0x2bf0b1[_0x4bea33];return _0x4c7897;}import{unlinkSync,existsSync}from'node:fs';function a30_0x2bf0(){var _0x2fadd7=['10324380MjnGqf','1065167GmQZLy','948906YcnTji','315HDwOcB','log','62787iunYFx','3986595bETQtE','!\x20Not\x20logged\x20in','232uOuwfs','112040ZokEyK','✓\x20Logged\x20out','20qvXyoW','2438886HVCtYr'];a30_0x2bf0=function(){return _0x2fadd7;};return a30_0x2bf0();}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x647110=a30_0x4c78;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x647110(0x16d)](_0x647110(0x173))):console['log'](_0x647110(0x170));}
1
+ (function(_0x25f358,_0x1985ab){var _0x4fae6f=a30_0x334d,_0x10334b=_0x25f358();while(!![]){try{var _0x496fc7=-parseInt(_0x4fae6f(0x1d2))/0x1*(-parseInt(_0x4fae6f(0x1d4))/0x2)+parseInt(_0x4fae6f(0x1cc))/0x3*(-parseInt(_0x4fae6f(0x1d0))/0x4)+parseInt(_0x4fae6f(0x1ca))/0x5+-parseInt(_0x4fae6f(0x1d3))/0x6+parseInt(_0x4fae6f(0x1c9))/0x7+-parseInt(_0x4fae6f(0x1d6))/0x8*(parseInt(_0x4fae6f(0x1d1))/0x9)+-parseInt(_0x4fae6f(0x1cb))/0xa*(parseInt(_0x4fae6f(0x1cf))/0xb);if(_0x496fc7===_0x1985ab)break;else _0x10334b['push'](_0x10334b['shift']());}catch(_0x339d83){_0x10334b['push'](_0x10334b['shift']());}}}(a30_0x52a6,0x4d43a));function a30_0x334d(_0x27a78d,_0x24ab7d){_0x27a78d=_0x27a78d-0x1c9;var _0x52a6b8=a30_0x52a6();var _0x334d85=_0x52a6b8[_0x27a78d];return _0x334d85;}function a30_0x52a6(){var _0x56174f=['1692qbAcsi','45LhvPBa','9YHUvGw','1535088EsrEcM','80462WMfbAl','!\x20Not\x20logged\x20in','43584QuYNBi','3356185epqAWI','2119815dsHNPf','1070kKwjSZ','405rtvazD','✓\x20Logged\x20out','log','62590Btzlcz'];a30_0x52a6=function(){return _0x56174f;};return a30_0x52a6();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x52644e=a30_0x334d;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x52644e(0x1ce)](_0x52644e(0x1cd))):console[_0x52644e(0x1ce)](_0x52644e(0x1d5));}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- const a149_0xa0ad56=a149_0x3642;(function(_0x5b3b09,_0x1ce7ac){const _0x1393af=a149_0x3642,_0x26aee=_0x5b3b09();while(!![]){try{const _0x33946b=-parseInt(_0x1393af(0x88))/0x1+-parseInt(_0x1393af(0x8e))/0x2+parseInt(_0x1393af(0x8b))/0x3+parseInt(_0x1393af(0x90))/0x4*(parseInt(_0x1393af(0x8f))/0x5)+parseInt(_0x1393af(0x8c))/0x6+parseInt(_0x1393af(0x8d))/0x7+parseInt(_0x1393af(0x89))/0x8*(parseInt(_0x1393af(0x91))/0x9);if(_0x33946b===_0x1ce7ac)break;else _0x26aee['push'](_0x26aee['shift']());}catch(_0x292f37){_0x26aee['push'](_0x26aee['shift']());}}}(a149_0x50bb,0xaad6a));export const dynamicCliFlags={'enableBffSave':{'type':a149_0xa0ad56(0x8a)}};function a149_0x3642(_0x17b776,_0x4c1dcf){_0x17b776=_0x17b776-0x88;const _0x50bb2b=a149_0x50bb();let _0x364256=_0x50bb2b[_0x17b776];return _0x364256;}function a149_0x50bb(){const _0x1ffcf5=['24ZhnZsV','boolean','1110180KfKzZf','7017786QdleeS','1100785FrSHub','2584198QANfIU','957425MGjkbC','24SATmEj','1359891uKGJwl','1307300DKjZIo'];a149_0x50bb=function(){return _0x1ffcf5;};return a149_0x50bb();}
1
+ (function(_0x28b775,_0xe6ae69){const _0x18701f=a149_0x4a50,_0x51f5f2=_0x28b775();while(!![]){try{const _0x286e6d=parseInt(_0x18701f(0x1b1))/0x1+parseInt(_0x18701f(0x1b0))/0x2*(-parseInt(_0x18701f(0x1b9))/0x3)+parseInt(_0x18701f(0x1b5))/0x4*(-parseInt(_0x18701f(0x1b2))/0x5)+-parseInt(_0x18701f(0x1b3))/0x6+-parseInt(_0x18701f(0x1b4))/0x7+parseInt(_0x18701f(0x1b8))/0x8*(-parseInt(_0x18701f(0x1b6))/0x9)+parseInt(_0x18701f(0x1b7))/0xa;if(_0x286e6d===_0xe6ae69)break;else _0x51f5f2['push'](_0x51f5f2['shift']());}catch(_0x293ebb){_0x51f5f2['push'](_0x51f5f2['shift']());}}}(a149_0x4005,0x2236d));function a149_0x4a50(_0x425792,_0x320c86){_0x425792=_0x425792-0x1b0;const _0x4005fc=a149_0x4005();let _0x4a50cd=_0x4005fc[_0x425792];return _0x4a50cd;}export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};function a149_0x4005(){const _0x103142=['6KkigtF','212974cJImtI','121339PoWGqb','2245SULoMj','1241958WaFSKV','716219TPBvwQ','1892awlbPf','576nmlKXC','10111910djcErL','32216pMQvZZ'];a149_0x4005=function(){return _0x103142;};return a149_0x4005();}
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a148_0x512288=a148_0xec80;(function(_0x2a738f,_0x597d6b){const _0x5621d4=a148_0xec80,_0x114aa9=_0x2a738f();while(!![]){try{const _0x72b21c=-parseInt(_0x5621d4(0xec))/0x1+parseInt(_0x5621d4(0xfc))/0x2*(parseInt(_0x5621d4(0xef))/0x3)+parseInt(_0x5621d4(0xe1))/0x4*(-parseInt(_0x5621d4(0xf0))/0x5)+parseInt(_0x5621d4(0x10c))/0x6+parseInt(_0x5621d4(0xf4))/0x7+-parseInt(_0x5621d4(0xf6))/0x8*(parseInt(_0x5621d4(0xe9))/0x9)+parseInt(_0x5621d4(0x103))/0xa;if(_0x72b21c===_0x597d6b)break;else _0x114aa9['push'](_0x114aa9['shift']());}catch(_0x4fdfeb){_0x114aa9['push'](_0x114aa9['shift']());}}}(a148_0x1311,0x6f3bf));import a148_0x1fd999 from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';function a148_0x1311(){const _0x30f5eb=['870604RoJoqo','unknownCommand','hint','help','Hint:\x20','wildcardDef','ExitPromptError','cancelled','4771233kMhRzJ','exitCode','slice','351520QnYCBY','global','defaultCommand','106860jdbYUo','15BFCXkN','command','string','userDomain','4828915sEhIUk','./context.js','8DOjvsL','code','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','./constant/env.js','input','Error:\x20','36bRaDav','write','unknown','./cli-flags.js','`\x20in\x20v2.0.\x0a','stderr','apiDomain','504650kUPYOE','error','raw','message','runtimeDomain','./constant/domain.js','service','log','now','3652530GapaFH','env'];a148_0x1311=function(){return _0x30f5eb;};return a148_0x1311();}import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.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';function a148_0xec80(_0x40be68,_0x501409){_0x40be68=_0x40be68-0xe0;const _0x131111=a148_0x1311();let _0xec8093=_0x131111[_0x40be68];return _0xec8093;}import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a148_0x512288(0xff)))['dynamicCliFlags'];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a148_0x512288(0xfe)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a148_0x512288(0xeb)](0x0,0xa)+')':VERSION,cli=a148_0x1fd999(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x3ea1f1=a148_0x512288;let _0x37e279=cli[_0x3ea1f1(0xfa)][0x0],_0x1b6183=cli[_0x3ea1f1(0xfa)][0x1];const _0x5c7ebb=cli['flags'];if(!_0x37e279){await reportCliHelpTrace(_0x3ea1f1(0xed)),showHelp();return;}const _0x18c956=deprecatedAliases[_0x37e279];if(_0x18c956&&!isKnownService(_0x37e279)){const _0x5f9404=_0x1b6183?CLI_BIN_NAME+'\x20'+_0x37e279+'\x20'+_0x1b6183:CLI_BIN_NAME+'\x20'+_0x37e279,_0x3e5025=CLI_BIN_NAME+'\x20'+_0x18c956[_0x3ea1f1(0x109)]+'\x20'+_0x18c956[_0x3ea1f1(0xf1)];console[_0x3ea1f1(0x104)]('⚠\x20`'+_0x5f9404+'`\x20has\x20been\x20moved\x20to\x20`'+_0x3e5025+_0x3ea1f1(0x100)+_0x3ea1f1(0xf8)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x37e279)){await reportCliHelpTrace('unknown_service',{'service':_0x37e279}),showHelp();return;}const _0x290c5e=getServiceEntry(_0x37e279);if(_0x5c7ebb[_0x3ea1f1(0xe0)]&&typeof _0x5c7ebb['env']===_0x3ea1f1(0xf2)){const {initEnv:_0x3e7563}=await import(_0x3ea1f1(0xf9));_0x3e7563(_0x5c7ebb[_0x3ea1f1(0xe0)]);}const {buildConfigFromFlags:_0x5cfe22}=await import(_0x3ea1f1(0xf5)),_0x265ddd=_0x5cfe22(_0x5c7ebb);if(!_0x5c7ebb[_0x3ea1f1(0xe0)]&&_0x265ddd['env']){const {initEnv:_0x2da4a2}=await import(_0x3ea1f1(0xf9));_0x2da4a2(_0x265ddd[_0x3ea1f1(0xe0)]);}if(_0x265ddd[_0x3ea1f1(0x105)]?.[_0x3ea1f1(0x102)]||_0x265ddd[_0x3ea1f1(0x105)]?.[_0x3ea1f1(0xf3)]||_0x265ddd['raw']?.['runtimeDomain']){const {initDomains:_0x8641e3}=await import(_0x3ea1f1(0x108));_0x8641e3({'apiDomain':_0x265ddd['raw'][_0x3ea1f1(0x102)]||undefined,'userDomain':_0x265ddd[_0x3ea1f1(0x105)][_0x3ea1f1(0xf3)]||undefined,'runtimeDomain':_0x265ddd['raw'][_0x3ea1f1(0x107)]||undefined});}if(!_0x1b6183){if(_0x5c7ebb[_0x3ea1f1(0xe4)]){printServiceHelp(_0x37e279);return;}if(_0x290c5e['defaultCommand'])_0x1b6183=_0x290c5e[_0x3ea1f1(0xee)];else{if(_0x290c5e[_0x3ea1f1(0xe6)]){await dispatchDeclarative(_0x290c5e[_0x3ea1f1(0xe6)],_0x37e279,'',[],_0x5c7ebb,_0x265ddd);return;}else{printServiceHelp(_0x37e279);return;}}}if(_0x5c7ebb['help']&&!findDefinition(_0x37e279,_0x1b6183)){printServiceHelp(_0x37e279);return;}{let _0x399df1=findDefinition(_0x37e279,_0x1b6183),_0x148662=cli[_0x3ea1f1(0xfa)][_0x3ea1f1(0xeb)](0x2);if(!_0x399df1){if(_0x290c5e[_0x3ea1f1(0xe6)]){if(_0x5c7ebb[_0x3ea1f1(0xe4)]){console[_0x3ea1f1(0x10a)](generateCommandHelp(_0x290c5e[_0x3ea1f1(0xe6)]));return;}_0x399df1=_0x290c5e['wildcardDef'],_0x148662=[_0x1b6183,...cli[_0x3ea1f1(0xfa)][_0x3ea1f1(0xeb)](0x2)];}else{printServiceHelp(_0x37e279),await handleErrorAsync(CliErrors[_0x3ea1f1(0xe2)](_0x37e279+'\x20'+_0x1b6183));return;}}if(_0x5c7ebb['help']){console[_0x3ea1f1(0x10a)](generateCommandHelp(_0x399df1));return;}await dispatchDeclarative(_0x399df1,_0x37e279,_0x1b6183,_0x148662,_0x5c7ebb,_0x265ddd);}}async function dispatchDeclarative(_0x311817,_0x52cb94,_0x118845,_0x717b38,_0x287cc4,_0x551e84){const _0x319a4c=a148_0x512288,_0x2bad86=Date['now']();let _0x1a3fa9;try{await runCommand(_0x311817,createPipelineEnv(_0x551e84,_0x287cc4,_0x717b38));}catch(_0x1f2c60){_0x1a3fa9=_0x1f2c60;}await reportCommandTrace({'service':_0x52cb94,'command':_0x118845,'flags':_0x287cc4,'durationMs':Date[_0x319a4c(0x10b)]()-_0x2bad86,'error':_0x1a3fa9});if(_0x1a3fa9)await handleErrorAsync(_0x1a3fa9);}function printServiceHelp(_0x5bb78d){console['log'](generateServiceHelp(_0x5bb78d));}async function handleErrorAsync(_0xaad503){const _0x153a53=a148_0x512288;if(_0xaad503 instanceof Error&&_0xaad503['name']===_0x153a53(0xe7))return process['stderr'][_0x153a53(0xfd)]('\x0aCancelled.\x0a'),await exitWithOtelShutdown(0x0);if(_0xaad503 instanceof CliError){if(_0xaad503[_0x153a53(0xf7)]===_0x153a53(0xe8))return process[_0x153a53(0x101)][_0x153a53(0xfd)]('\x0a'+_0xaad503[_0x153a53(0x106)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x153a53(0x104)](_0x153a53(0xfb)+_0xaad503[_0x153a53(0x106)]);if(_0xaad503[_0x153a53(0xe3)])console['error'](_0x153a53(0xe5)+_0xaad503[_0x153a53(0xe3)]);return await exitWithOtelShutdown(_0xaad503[_0x153a53(0xea)]);}return console['error']('Unexpected\x20error:',_0xaad503),await exitWithOtelShutdown(0x1);}
2
+ const a148_0x2ce459=a148_0x3fe7;(function(_0xa008fe,_0x2d52f4){const _0x173736=a148_0x3fe7,_0x4e8cd0=_0xa008fe();while(!![]){try{const _0x52fc16=-parseInt(_0x173736(0xb3))/0x1*(parseInt(_0x173736(0xa8))/0x2)+-parseInt(_0x173736(0xb4))/0x3*(-parseInt(_0x173736(0xa3))/0x4)+parseInt(_0x173736(0xaa))/0x5+-parseInt(_0x173736(0x95))/0x6+parseInt(_0x173736(0xb8))/0x7*(parseInt(_0x173736(0x8d))/0x8)+parseInt(_0x173736(0xba))/0x9+-parseInt(_0x173736(0xa1))/0xa*(parseInt(_0x173736(0x9f))/0xb);if(_0x52fc16===_0x2d52f4)break;else _0x4e8cd0['push'](_0x4e8cd0['shift']());}catch(_0x302a34){_0x4e8cd0['push'](_0x4e8cd0['shift']());}}}(a148_0x27b5,0x8c021));function a148_0x27b5(){const _0x481a9d=['help','apiDomain','cancelled','code','now','5663808fClTNv','Unexpected\x20error:','`\x20has\x20been\x20moved\x20to\x20`','`\x20in\x20v2.0.\x0a','slice','Error:\x20','string','error','wildcardDef','⚠\x20`','8557879AFcBep','global','10HsOuAj','\x0aCancelled.\x0a','12388mfzPTP','service','log','stderr','env','435096xirxDR','input','5117105XezYzF','command','write','userDomain','hint','./constant/env.js','name','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','raw','2BqOCmn','879pTuZan','defaultCommand','./context.js','unknown_service','21cbSRpk','dynamicCliFlags','2091537QZroEt','message','1512776iAvbhP','ExitPromptError','runtimeDomain'];a148_0x27b5=function(){return _0x481a9d;};return a148_0x27b5();}import a148_0x903742 from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.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{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import('./cli-flags.js'))[a148_0x2ce459(0xb9)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,cli=a148_0x903742(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x3254ce=a148_0x2ce459;let _0x36bf8b=cli['input'][0x0],_0x114bd6=cli[_0x3254ce(0xa9)][0x1];const _0x148555=cli['flags'];if(!_0x36bf8b){await reportCliHelpTrace(_0x3254ce(0xa0)),showHelp();return;}const _0x2a89fb=deprecatedAliases[_0x36bf8b];if(_0x2a89fb&&!isKnownService(_0x36bf8b)){const _0xe09e47=_0x114bd6?CLI_BIN_NAME+'\x20'+_0x36bf8b+'\x20'+_0x114bd6:CLI_BIN_NAME+'\x20'+_0x36bf8b,_0x59bee2=CLI_BIN_NAME+'\x20'+_0x2a89fb[_0x3254ce(0xa4)]+'\x20'+_0x2a89fb[_0x3254ce(0xab)];console['error'](_0x3254ce(0x9e)+_0xe09e47+_0x3254ce(0x97)+_0x59bee2+_0x3254ce(0x98)+_0x3254ce(0xb1)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x36bf8b)){await reportCliHelpTrace(_0x3254ce(0xb7),{'service':_0x36bf8b}),showHelp();return;}const _0x5221d1=getServiceEntry(_0x36bf8b);if(_0x148555[_0x3254ce(0xa7)]&&typeof _0x148555[_0x3254ce(0xa7)]===_0x3254ce(0x9b)){const {initEnv:_0x319f6d}=await import(_0x3254ce(0xaf));_0x319f6d(_0x148555[_0x3254ce(0xa7)]);}const {buildConfigFromFlags:_0x192975}=await import(_0x3254ce(0xb6)),_0x3c9dd0=_0x192975(_0x148555);if(!_0x148555['env']&&_0x3c9dd0[_0x3254ce(0xa7)]){const {initEnv:_0x14fdc4}=await import(_0x3254ce(0xaf));_0x14fdc4(_0x3c9dd0[_0x3254ce(0xa7)]);}if(_0x3c9dd0[_0x3254ce(0xb2)]?.[_0x3254ce(0x91)]||_0x3c9dd0[_0x3254ce(0xb2)]?.[_0x3254ce(0xad)]||_0x3c9dd0[_0x3254ce(0xb2)]?.[_0x3254ce(0x8f)]){const {initDomains:_0x59e12e}=await import('./constant/domain.js');_0x59e12e({'apiDomain':_0x3c9dd0[_0x3254ce(0xb2)]['apiDomain']||undefined,'userDomain':_0x3c9dd0['raw'][_0x3254ce(0xad)]||undefined,'runtimeDomain':_0x3c9dd0['raw'][_0x3254ce(0x8f)]||undefined});}if(!_0x114bd6){if(_0x148555[_0x3254ce(0x90)]){printServiceHelp(_0x36bf8b);return;}if(_0x5221d1[_0x3254ce(0xb5)])_0x114bd6=_0x5221d1['defaultCommand'];else{if(_0x5221d1[_0x3254ce(0x9d)]){await dispatchDeclarative(_0x5221d1[_0x3254ce(0x9d)],_0x36bf8b,'',[],_0x148555,_0x3c9dd0);return;}else{printServiceHelp(_0x36bf8b);return;}}}if(_0x148555[_0x3254ce(0x90)]&&!findDefinition(_0x36bf8b,_0x114bd6)){printServiceHelp(_0x36bf8b);return;}{let _0x4cddb1=findDefinition(_0x36bf8b,_0x114bd6),_0x27d919=cli[_0x3254ce(0xa9)][_0x3254ce(0x99)](0x2);if(!_0x4cddb1){if(_0x5221d1[_0x3254ce(0x9d)]){if(_0x148555[_0x3254ce(0x90)]){console[_0x3254ce(0xa5)](generateCommandHelp(_0x5221d1[_0x3254ce(0x9d)]));return;}_0x4cddb1=_0x5221d1[_0x3254ce(0x9d)],_0x27d919=[_0x114bd6,...cli[_0x3254ce(0xa9)][_0x3254ce(0x99)](0x2)];}else{printServiceHelp(_0x36bf8b),await handleErrorAsync(CliErrors['unknownCommand'](_0x36bf8b+'\x20'+_0x114bd6));return;}}if(_0x148555['help']){console[_0x3254ce(0xa5)](generateCommandHelp(_0x4cddb1));return;}await dispatchDeclarative(_0x4cddb1,_0x36bf8b,_0x114bd6,_0x27d919,_0x148555,_0x3c9dd0);}}async function dispatchDeclarative(_0x103f4c,_0x2ff2ea,_0x1b9b0f,_0x36390d,_0x56f9ff,_0x24d410){const _0xab52f=a148_0x2ce459,_0x564787=Date[_0xab52f(0x94)]();let _0x2f6cb1;try{await runCommand(_0x103f4c,createPipelineEnv(_0x24d410,_0x56f9ff,_0x36390d));}catch(_0x2913de){_0x2f6cb1=_0x2913de;}await reportCommandTrace({'service':_0x2ff2ea,'command':_0x1b9b0f,'flags':_0x56f9ff,'durationMs':Date[_0xab52f(0x94)]()-_0x564787,'error':_0x2f6cb1});if(_0x2f6cb1)await handleErrorAsync(_0x2f6cb1);}function printServiceHelp(_0x7212ba){const _0x4f3bdc=a148_0x2ce459;console[_0x4f3bdc(0xa5)](generateServiceHelp(_0x7212ba));}function a148_0x3fe7(_0x6e985,_0x6b16de){_0x6e985=_0x6e985-0x8c;const _0x27b51c=a148_0x27b5();let _0x3fe786=_0x27b51c[_0x6e985];return _0x3fe786;}async function handleErrorAsync(_0x74122d){const _0x21f161=a148_0x2ce459;if(_0x74122d instanceof Error&&_0x74122d[_0x21f161(0xb0)]===_0x21f161(0x8e))return process[_0x21f161(0xa6)][_0x21f161(0xac)](_0x21f161(0xa2)),await exitWithOtelShutdown(0x0);if(_0x74122d instanceof CliError){if(_0x74122d[_0x21f161(0x93)]===_0x21f161(0x92))return process[_0x21f161(0xa6)][_0x21f161(0xac)]('\x0a'+_0x74122d['message']+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x21f161(0x9c)](_0x21f161(0x9a)+_0x74122d[_0x21f161(0x8c)]);if(_0x74122d[_0x21f161(0xae)])console[_0x21f161(0x9c)]('Hint:\x20'+_0x74122d[_0x21f161(0xae)]);return await exitWithOtelShutdown(_0x74122d['exitCode']);}return console[_0x21f161(0x9c)](_0x21f161(0x96),_0x74122d),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a116_0x8f2132=a116_0x4c10;(function(_0x4edfe0,_0x529a97){const _0x1579f4=a116_0x4c10,_0x5c8b38=_0x4edfe0();while(!![]){try{const _0x575dd9=parseInt(_0x1579f4(0x181))/0x1*(-parseInt(_0x1579f4(0x18f))/0x2)+-parseInt(_0x1579f4(0x187))/0x3*(parseInt(_0x1579f4(0x17d))/0x4)+-parseInt(_0x1579f4(0x1b4))/0x5+parseInt(_0x1579f4(0x19d))/0x6+parseInt(_0x1579f4(0x18d))/0x7*(parseInt(_0x1579f4(0x175))/0x8)+-parseInt(_0x1579f4(0x1a6))/0x9*(parseInt(_0x1579f4(0x1ab))/0xa)+parseInt(_0x1579f4(0x17e))/0xb;if(_0x575dd9===_0x529a97)break;else _0x5c8b38['push'](_0x5c8b38['shift']());}catch(_0x5851a5){_0x5c8b38['push'](_0x5c8b38['shift']());}}}(a116_0x4bb5,0x87fcf));function a116_0x4c10(_0x109dff,_0x2b4b99){_0x109dff=_0x109dff-0x175;const _0x4bb5af=a116_0x4bb5();let _0x4c108f=_0x4bb5af[_0x109dff];return _0x4c108f;}import a116_0x47ee86 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';function a116_0x4bb5(){const _0x169b13=['194reyIOV','must\x20be\x20a\x20JSON\x20object','\x20\x20•\x20','datasetCode','split','appCode','length','✓\x20Generated\x20','error','\x1b[0m','\x1b[90m*\x20Filtered\x20','object','Failed\x20to\x20fetch\x20datasets','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','6467796feDZTF','.md','str','Fetching\x20dataset\x20list\x20for\x20','filter','validation','\x20doc(s)\x20in\x20','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','has','1746TtwlzV','Fetched\x20','parse','output','Output\x20directory\x20(default:\x20./docs)','2900iSQZOc','params','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','write','string','generate','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','some','\x20succeeded,\x20','1270480TiAapT','):\x20','--datasetcode\x20cannot\x20be\x20empty.','164704yTliPX','datasetName','\x0d\x20\x20[','./docs','api','datasetcode','Doc\x20generation:\x20','succeed','37652KnElSC','1375253kUjtAc','\x20dataset(s)','padStart','2841IeCBmk','isArray','\x20of\x20','Doc\x20generation\x20complete:\x20','join','start','111gDLAfh','\x20dataset(s)\x1b[0m','fail','stdout','...','success','98iXfZeh','\x1b[90m*\x20Generating\x20docs\x20for:\x20'];a116_0x4bb5=function(){return _0x169b13;};return a116_0x4bb5();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':a116_0x8f2132(0x179),'command':a116_0x8f2132(0x1b0),'description':a116_0x8f2132(0x1a4),'risk':a116_0x8f2132(0x1ae),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a116_0x8f2132(0x1a9),'type':a116_0x8f2132(0x1af),'description':a116_0x8f2132(0x1aa)},{'name':a116_0x8f2132(0x17a),'type':a116_0x8f2132(0x1af),'description':a116_0x8f2132(0x1ad)},{'name':'params','type':a116_0x8f2132(0x1af),'description':a116_0x8f2132(0x1b1)}],async 'execute'(_0x57a3c3){const _0x59a80c=a116_0x8f2132,_0x3edd85=_0x57a3c3[_0x59a80c(0x19f)]('output')||_0x59a80c(0x178),_0x14e408=_0x57a3c3[_0x59a80c(0x19f)]('datasetcode'),_0x4410b4=_0x57a3c3[_0x59a80c(0x19f)](_0x59a80c(0x1ac));let _0x4fa8ea;if(_0x4410b4)try{_0x4fa8ea=JSON[_0x59a80c(0x1a8)](_0x4410b4);if(typeof _0x4fa8ea!==_0x59a80c(0x19a)||_0x4fa8ea===null||Array[_0x59a80c(0x182)](_0x4fa8ea))throw new Error(_0x59a80c(0x190));}catch(_0x6bcb7a){throw CliErrors['validation']('Invalid\x20--params:\x20'+(_0x6bcb7a instanceof Error?_0x6bcb7a['message']:String(_0x6bcb7a)),'Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27');}let _0x513f3c;if(_0x14e408){const _0x4f1293=_0x14e408[_0x59a80c(0x193)](',')['map'](_0x12a007=>_0x12a007['trim']())['filter'](_0x336a44=>_0x336a44[_0x59a80c(0x195)]>0x0);if(_0x4f1293[_0x59a80c(0x195)]===0x0)throw CliErrors[_0x59a80c(0x1a2)](_0x59a80c(0x1b6));_0x513f3c=new Set(_0x4f1293),writeCliSideChannelLine(_0x59a80c(0x18e)+_0x4f1293['join'](',\x20')+_0x59a80c(0x198));}const _0x15c7ba=a116_0x47ee86(_0x59a80c(0x1a0)+_0x57a3c3[_0x59a80c(0x194)]+_0x59a80c(0x18b))[_0x59a80c(0x186)]();let _0xfe8c20;try{({configArray:_0xfe8c20}=await fetchModelList(_0x57a3c3[_0x59a80c(0x194)],_0x57a3c3['cookie']),_0x15c7ba[_0x59a80c(0x17c)](_0x59a80c(0x1a7)+_0xfe8c20['length']+_0x59a80c(0x17f)));}catch(_0x4e913f){_0x15c7ba[_0x59a80c(0x189)](_0x59a80c(0x19b));throw _0x4e913f;}if(_0xfe8c20['length']===0x0)return writeCliSideChannelLine('!\x20No\x20datasets\x20found.'),{'ok':!![]};let _0x49b10a=_0xfe8c20;if(_0x513f3c){_0x49b10a=_0xfe8c20[_0x59a80c(0x1a1)](_0x28fe5c=>_0x513f3c[_0x59a80c(0x1a5)](_0x28fe5c['datasetCode']));const _0x2999e5=[..._0x513f3c]['filter'](_0x11d07f=>!_0xfe8c20[_0x59a80c(0x1b2)](_0x1351d0=>_0x1351d0[_0x59a80c(0x192)]===_0x11d07f));_0x2999e5[_0x59a80c(0x195)]>0x0&&writeCliSideChannelLine(_0x59a80c(0x19c)+_0x2999e5[_0x59a80c(0x185)](',\x20')+_0x59a80c(0x198));if(_0x49b10a['length']===0x0)throw CliErrors[_0x59a80c(0x1a2)]('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x513f3c][_0x59a80c(0x185)](',\x20'));writeCliSideChannelLine(_0x59a80c(0x199)+_0x49b10a['length']+_0x59a80c(0x183)+_0xfe8c20[_0x59a80c(0x195)]+_0x59a80c(0x188));}let _0x326349=0x0;const _0x4dd030=await generateDatasetDocs(_0x49b10a,_0x57a3c3[_0x59a80c(0x194)],_0x57a3c3['cookie'],_0x3edd85,(_0x27d504,_0x4279e9,_0x34b340)=>{const _0x5349d9=_0x59a80c;_0x326349=_0x27d504,process[_0x5349d9(0x18a)][_0x5349d9(0x1ae)](_0x5349d9(0x177)+String(_0x27d504)[_0x5349d9(0x180)](String(_0x4279e9)[_0x5349d9(0x195)])+'/'+_0x4279e9+']\x20'+_0x34b340+_0x5349d9(0x19e));},_0x4fa8ea);if(_0x326349>0x0)process[_0x59a80c(0x18a)][_0x59a80c(0x1ae)]('\x0a');const _0x34b5fb=_0x4dd030[_0x59a80c(0x1a1)](_0x1840f0=>_0x1840f0[_0x59a80c(0x18c)])[_0x59a80c(0x195)],_0x38dc32=_0x4dd030[_0x59a80c(0x1a1)](_0x5cb9f9=>!_0x5cb9f9[_0x59a80c(0x18c)])[_0x59a80c(0x195)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x59a80c(0x196)+_0x34b5fb+_0x59a80c(0x1a3)+_0x3edd85);if(_0x38dc32>0x0){writeCliSideChannelLine('!\x20'+_0x38dc32+'\x20doc(s)\x20failed');for(const _0x426e1e of _0x4dd030[_0x59a80c(0x1a1)](_0x3e1698=>!_0x3e1698['success'])){writeCliSideChannelLine(_0x59a80c(0x191)+_0x426e1e[_0x59a80c(0x176)]+'\x20('+_0x426e1e[_0x59a80c(0x192)]+_0x59a80c(0x1b5)+_0x426e1e[_0x59a80c(0x197)]);}}return{'ok':_0x38dc32===0x0,'message':_0x38dc32>0x0?_0x59a80c(0x17b)+_0x34b5fb+_0x59a80c(0x1b3)+_0x38dc32+'\x20failed':_0x59a80c(0x184)+_0x34b5fb+'\x20file(s)'};}};
1
+ const a116_0x202fe9=a116_0x3495;(function(_0x574cb4,_0x3df2fb){const _0x5c4a1b=a116_0x3495,_0x30d081=_0x574cb4();while(!![]){try{const _0x163236=parseInt(_0x5c4a1b(0x1cf))/0x1*(-parseInt(_0x5c4a1b(0x1ee))/0x2)+-parseInt(_0x5c4a1b(0x1de))/0x3*(parseInt(_0x5c4a1b(0x1ec))/0x4)+parseInt(_0x5c4a1b(0x1cc))/0x5*(parseInt(_0x5c4a1b(0x205))/0x6)+parseInt(_0x5c4a1b(0x1c9))/0x7+parseInt(_0x5c4a1b(0x1fc))/0x8+parseInt(_0x5c4a1b(0x1c8))/0x9*(parseInt(_0x5c4a1b(0x1ed))/0xa)+-parseInt(_0x5c4a1b(0x1fa))/0xb*(-parseInt(_0x5c4a1b(0x1ea))/0xc);if(_0x163236===_0x3df2fb)break;else _0x30d081['push'](_0x30d081['shift']());}catch(_0xffddb9){_0x30d081['push'](_0x30d081['shift']());}}}(a116_0x8637,0x8b0c7));function a116_0x8637(){const _0x2a8c6d=['Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','appCode','9ltDkKU','✓\x20Generated\x20','\x20doc(s)\x20in\x20','api','datasetCode','filter','join','Invalid\x20--params:\x20','error','\x20succeeded,\x20','object','Fetched\x20','5076qBRich','\x20file(s)','1415916zkexOK','5540TidhVQ','10734gGekrd','Output\x20directory\x20(default:\x20./docs)','success','Doc\x20generation:\x20','Failed\x20to\x20fetch\x20datasets','cookie','parse','\x20\x20•\x20','string','fail','output','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','6699HTKHia','\x20doc(s)\x20failed','5270024ZmJqxd','\x1b[90m*\x20Generating\x20docs\x20for:\x20','Fetching\x20dataset\x20list\x20for\x20','some','split','start','--datasetcode\x20cannot\x20be\x20empty.','params','map','1288422YvRhSc','isArray','\x20of\x20','10377NKXLCE','2449727MvTteK','stdout','\x20failed','10bqyfzp','...','validation','131izmxwO','must\x20be\x20a\x20JSON\x20object','write','str','length','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','\x1b[0m','datasetcode','generate','message','.md','has'];a116_0x8637=function(){return _0x2a8c6d;};return a116_0x8637();}import a116_0x36a000 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';function a116_0x3495(_0x494c30,_0x36369f){_0x494c30=_0x494c30-0x1c6;const _0x86376e=a116_0x8637();let _0x3495c4=_0x86376e[_0x494c30];return _0x3495c4;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':a116_0x202fe9(0x1e1),'command':a116_0x202fe9(0x1d7),'description':a116_0x202fe9(0x1f9),'risk':a116_0x202fe9(0x1d1),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a116_0x202fe9(0x1f8),'type':a116_0x202fe9(0x1f6),'description':a116_0x202fe9(0x1ef)},{'name':a116_0x202fe9(0x1d6),'type':a116_0x202fe9(0x1f6),'description':a116_0x202fe9(0x1db)},{'name':a116_0x202fe9(0x203),'type':a116_0x202fe9(0x1f6),'description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x344c8d){const _0x16a256=a116_0x202fe9,_0x54298a=_0x344c8d[_0x16a256(0x1d2)](_0x16a256(0x1f8))||'./docs',_0x4b18c3=_0x344c8d[_0x16a256(0x1d2)](_0x16a256(0x1d6)),_0x2d89a8=_0x344c8d[_0x16a256(0x1d2)]('params');let _0x3be4db;if(_0x2d89a8)try{_0x3be4db=JSON[_0x16a256(0x1f4)](_0x2d89a8);if(typeof _0x3be4db!==_0x16a256(0x1e8)||_0x3be4db===null||Array[_0x16a256(0x1c6)](_0x3be4db))throw new Error(_0x16a256(0x1d0));}catch(_0x16607e){throw CliErrors[_0x16a256(0x1ce)](_0x16a256(0x1e5)+(_0x16607e instanceof Error?_0x16607e[_0x16a256(0x1d8)]:String(_0x16607e)),_0x16a256(0x1dc));}let _0x54da47;if(_0x4b18c3){const _0xdc566d=_0x4b18c3[_0x16a256(0x200)](',')[_0x16a256(0x204)](_0x2f89f7=>_0x2f89f7['trim']())['filter'](_0xc5cd70=>_0xc5cd70['length']>0x0);if(_0xdc566d[_0x16a256(0x1d3)]===0x0)throw CliErrors['validation'](_0x16a256(0x202));_0x54da47=new Set(_0xdc566d),writeCliSideChannelLine(_0x16a256(0x1fd)+_0xdc566d[_0x16a256(0x1e4)](',\x20')+_0x16a256(0x1d5));}const _0x483da3=a116_0x36a000(_0x16a256(0x1fe)+_0x344c8d['appCode']+_0x16a256(0x1cd))[_0x16a256(0x201)]();let _0x34697f;try{({configArray:_0x34697f}=await fetchModelList(_0x344c8d[_0x16a256(0x1dd)],_0x344c8d[_0x16a256(0x1f3)]),_0x483da3['succeed'](_0x16a256(0x1e9)+_0x34697f[_0x16a256(0x1d3)]+'\x20dataset(s)'));}catch(_0x27f4f2){_0x483da3[_0x16a256(0x1f7)](_0x16a256(0x1f2));throw _0x27f4f2;}if(_0x34697f['length']===0x0)return writeCliSideChannelLine('!\x20No\x20datasets\x20found.'),{'ok':!![]};let _0xcfba2c=_0x34697f;if(_0x54da47){_0xcfba2c=_0x34697f['filter'](_0xadb100=>_0x54da47[_0x16a256(0x1da)](_0xadb100[_0x16a256(0x1e2)]));const _0x250bbb=[..._0x54da47][_0x16a256(0x1e3)](_0x5849f5=>!_0x34697f[_0x16a256(0x1ff)](_0x18615a=>_0x18615a[_0x16a256(0x1e2)]===_0x5849f5));_0x250bbb[_0x16a256(0x1d3)]>0x0&&writeCliSideChannelLine(_0x16a256(0x1d4)+_0x250bbb[_0x16a256(0x1e4)](',\x20')+_0x16a256(0x1d5));if(_0xcfba2c[_0x16a256(0x1d3)]===0x0)throw CliErrors[_0x16a256(0x1ce)]('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x54da47][_0x16a256(0x1e4)](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0xcfba2c['length']+_0x16a256(0x1c7)+_0x34697f[_0x16a256(0x1d3)]+'\x20dataset(s)\x1b[0m');}let _0xda8c22=0x0;const _0x5904d7=await generateDatasetDocs(_0xcfba2c,_0x344c8d[_0x16a256(0x1dd)],_0x344c8d[_0x16a256(0x1f3)],_0x54298a,(_0x3d74a6,_0xa547f,_0x170f1a)=>{const _0x3bf7ce=_0x16a256;_0xda8c22=_0x3d74a6,process[_0x3bf7ce(0x1ca)][_0x3bf7ce(0x1d1)]('\x0d\x20\x20['+String(_0x3d74a6)['padStart'](String(_0xa547f)[_0x3bf7ce(0x1d3)])+'/'+_0xa547f+']\x20'+_0x170f1a+_0x3bf7ce(0x1d9));},_0x3be4db);if(_0xda8c22>0x0)process[_0x16a256(0x1ca)][_0x16a256(0x1d1)]('\x0a');const _0x14263b=_0x5904d7[_0x16a256(0x1e3)](_0x10b435=>_0x10b435['success'])[_0x16a256(0x1d3)],_0x3d6157=_0x5904d7[_0x16a256(0x1e3)](_0x3775ba=>!_0x3775ba[_0x16a256(0x1f0)])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x16a256(0x1df)+_0x14263b+_0x16a256(0x1e0)+_0x54298a);if(_0x3d6157>0x0){writeCliSideChannelLine('!\x20'+_0x3d6157+_0x16a256(0x1fb));for(const _0x1aabf6 of _0x5904d7[_0x16a256(0x1e3)](_0xa045f6=>!_0xa045f6[_0x16a256(0x1f0)])){writeCliSideChannelLine(_0x16a256(0x1f5)+_0x1aabf6['datasetName']+'\x20('+_0x1aabf6[_0x16a256(0x1e2)]+'):\x20'+_0x1aabf6[_0x16a256(0x1e6)]);}}return{'ok':_0x3d6157===0x0,'message':_0x3d6157>0x0?_0x16a256(0x1f1)+_0x14263b+_0x16a256(0x1e7)+_0x3d6157+_0x16a256(0x1cb):'Doc\x20generation\x20complete:\x20'+_0x14263b+_0x16a256(0x1eb)};}};
@@ -1 +1 @@
1
- (function(_0x8e9c6f,_0x5d4f2d){const _0x32c5cd=a119_0x2990,_0x1f2f7d=_0x8e9c6f();while(!![]){try{const _0x435ecc=-parseInt(_0x32c5cd(0x151))/0x1+parseInt(_0x32c5cd(0x14e))/0x2+-parseInt(_0x32c5cd(0x14d))/0x3+parseInt(_0x32c5cd(0x14b))/0x4+parseInt(_0x32c5cd(0x14f))/0x5*(parseInt(_0x32c5cd(0x150))/0x6)+parseInt(_0x32c5cd(0x14a))/0x7+-parseInt(_0x32c5cd(0x14c))/0x8*(parseInt(_0x32c5cd(0x152))/0x9);if(_0x435ecc===_0x5d4f2d)break;else _0x1f2f7d['push'](_0x1f2f7d['shift']());}catch(_0x7ab4a0){_0x1f2f7d['push'](_0x1f2f7d['shift']());}}}(a119_0x3bf0,0x52847));function a119_0x3bf0(){const _0x9bcd3d=['1178862QRAwXM','754252QhWjCQ','2304245YgpSQe','6TJQxxB','80790lAWViq','27ulMNLe','3507693QtcSrX','2175976eErvuw','2856888YuzYON'];a119_0x3bf0=function(){return _0x9bcd3d;};return a119_0x3bf0();}import{apiList}from'../../commands/api/list.js';function a119_0x2990(_0x29a200,_0x2bd947){_0x29a200=_0x29a200-0x14a;const _0x3bf0bb=a119_0x3bf0();let _0x299030=_0x3bf0bb[_0x29a200];return _0x299030;}import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
1
+ (function(_0x4d2ae2,_0x11a2f9){const _0x11d5c7=a119_0x40a3,_0x1d178c=_0x4d2ae2();while(!![]){try{const _0x3f1cbd=parseInt(_0x11d5c7(0xcd))/0x1+parseInt(_0x11d5c7(0xd1))/0x2*(parseInt(_0x11d5c7(0xd2))/0x3)+parseInt(_0x11d5c7(0xcb))/0x4*(-parseInt(_0x11d5c7(0xca))/0x5)+-parseInt(_0x11d5c7(0xce))/0x6+parseInt(_0x11d5c7(0xd3))/0x7*(parseInt(_0x11d5c7(0xd0))/0x8)+parseInt(_0x11d5c7(0xcf))/0x9*(-parseInt(_0x11d5c7(0xd4))/0xa)+-parseInt(_0x11d5c7(0xcc))/0xb*(-parseInt(_0x11d5c7(0xd5))/0xc);if(_0x3f1cbd===_0x11a2f9)break;else _0x1d178c['push'](_0x1d178c['shift']());}catch(_0x312d86){_0x1d178c['push'](_0x1d178c['shift']());}}}(a119_0xf2d4,0xd10b5));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];function a119_0x40a3(_0x420c2b,_0x955d30){_0x420c2b=_0x420c2b-0xca;const _0xf2d4eb=a119_0xf2d4();let _0x40a3f5=_0xf2d4eb[_0x420c2b];return _0x40a3f5;}function a119_0xf2d4(){const _0x4e3a63=['1263723THXEIa','71197zUIuJB','20NAEVYi','36IBkEZb','4356985EzlBSC','4kPMeHG','1585771gnbxUK','474628jbapon','9423324jSitYw','346707HrZyrq','616gTtvPD','8vILhOe'];a119_0xf2d4=function(){return _0x4e3a63;};return a119_0xf2d4();}
@@ -1 +1 @@
1
- const a118_0x5bfd6a=a118_0x7fbe;(function(_0x454a18,_0x475891){const _0x56ba16=a118_0x7fbe,_0x469b35=_0x454a18();while(!![]){try{const _0x2bf49a=-parseInt(_0x56ba16(0x1d0))/0x1*(parseInt(_0x56ba16(0x1cb))/0x2)+-parseInt(_0x56ba16(0x1d6))/0x3*(-parseInt(_0x56ba16(0x1d3))/0x4)+parseInt(_0x56ba16(0x1c7))/0x5*(-parseInt(_0x56ba16(0x1c8))/0x6)+parseInt(_0x56ba16(0x1cd))/0x7+-parseInt(_0x56ba16(0x1cc))/0x8*(-parseInt(_0x56ba16(0x1ca))/0x9)+parseInt(_0x56ba16(0x1cf))/0xa+-parseInt(_0x56ba16(0x1d7))/0xb*(-parseInt(_0x56ba16(0x1c5))/0xc);if(_0x2bf49a===_0x475891)break;else _0x469b35['push'](_0x469b35['shift']());}catch(_0x4903ac){_0x469b35['push'](_0x469b35['shift']());}}}(a118_0x4235,0x54897));import{initEnv}from'../../constant/env.js';function a118_0x4235(){const _0x14e0d3=['cookie','api','global','map','list','772776FzjWOV','env','154130CEovzi','114rHVOaK','read','306iKPiBR','2YOhpcl','50232Fpsiey','2667252fschVr','rawFlags','1434850MeDxhk','676093tvFPbk','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','push','4disxFE','production','appcode','871383MosarD','99SnttCt'];a118_0x4235=function(){return _0x14e0d3;};return a118_0x4235();}import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x7fbe(_0x63e21b,_0x5df3b4){_0x63e21b=_0x63e21b-0x1c5;const _0x423532=a118_0x4235();let _0x7fbea5=_0x423532[_0x63e21b];return _0x7fbea5;}import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a118_0x5bfd6a(0x1d9),'command':a118_0x5bfd6a(0x1dc),'description':a118_0x5bfd6a(0x1d1),'risk':a118_0x5bfd6a(0x1c9),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a118_0x5bfd6a(0x1da),'type':'boolean','description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x44b703){const _0x2d2b17=a118_0x5bfd6a,_0x156d65=_0x44b703[_0x2d2b17(0x1ce)][_0x2d2b17(0x1d5)]?String(_0x44b703[_0x2d2b17(0x1ce)][_0x2d2b17(0x1d5)]):undefined,_0x150bff=resolveTargetApps(_0x44b703,_0x156d65);if(_0x150bff){const _0x5e9374=[];for(const _0x4764df of _0x150bff){const _0x6e91d1=_0x4764df['cookie']||_0x44b703[_0x2d2b17(0x1d8)],_0x2608a5=_0x4764df[_0x2d2b17(0x1c6)]||_0x2d2b17(0x1d4);initEnv(_0x2608a5);const {configArray:_0x11fdca}=await fetchModelList(_0x4764df[_0x2d2b17(0x1d5)],_0x6e91d1);_0x5e9374[_0x2d2b17(0x1d2)](..._0x11fdca[_0x2d2b17(0x1db)](_0x3f397b=>({..._0x3f397b,'_appName':_0x4764df['name'],'_appCode':_0x4764df[_0x2d2b17(0x1d5)],'_env':_0x2608a5,'_isDefault':_0x4764df['isDefault']})));}return{'ok':!![],'data':_0x5e9374};}const {configArray:_0x44cbfb}=await fetchModelList(_0x44b703['appCode'],_0x44b703['cookie']);return{'ok':!![],'data':_0x44cbfb};}};
1
+ function a118_0x4174(_0x490d71,_0x576e44){_0x490d71=_0x490d71-0x1c9;const _0x22aeaa=a118_0x22ae();let _0x4174ea=_0x22aeaa[_0x490d71];return _0x4174ea;}const a118_0x5c5e41=a118_0x4174;(function(_0x4ef6b9,_0x1285f1){const _0x407af0=a118_0x4174,_0x1b2439=_0x4ef6b9();while(!![]){try{const _0x26e507=parseInt(_0x407af0(0x1d7))/0x1*(-parseInt(_0x407af0(0x1d8))/0x2)+-parseInt(_0x407af0(0x1d5))/0x3+parseInt(_0x407af0(0x1c9))/0x4+parseInt(_0x407af0(0x1d1))/0x5*(-parseInt(_0x407af0(0x1d3))/0x6)+parseInt(_0x407af0(0x1cc))/0x7+parseInt(_0x407af0(0x1d2))/0x8*(-parseInt(_0x407af0(0x1db))/0x9)+parseInt(_0x407af0(0x1d6))/0xa;if(_0x26e507===_0x1285f1)break;else _0x1b2439['push'](_0x1b2439['shift']());}catch(_0x1a8f46){_0x1b2439['push'](_0x1b2439['shift']());}}}(a118_0x22ae,0x7f1f0));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';function a118_0x22ae(){const _0x1cdab5=['63iWYNmd','14070RVYhVD','boolean','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','1109871NXGFWj','read','global','api','rawFlags','602800CIVGhp','production','env','2442559lPssxW','appcode','isDefault','list','map','5bLwhZS','48GjeeXG','4926732whdlXx','cookie','156123tWeLmq','20773330XIJbJV'];a118_0x22ae=function(){return _0x1cdab5;};return a118_0x22ae();}export const apiList={'service':a118_0x5c5e41(0x1de),'command':a118_0x5c5e41(0x1cf),'description':a118_0x5c5e41(0x1da),'risk':a118_0x5c5e41(0x1dc),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a118_0x5c5e41(0x1dd),'type':a118_0x5c5e41(0x1d9),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0xbd086b){const _0x3fd929=a118_0x5c5e41,_0x455e06=_0xbd086b[_0x3fd929(0x1df)][_0x3fd929(0x1cd)]?String(_0xbd086b[_0x3fd929(0x1df)]['appcode']):undefined,_0x3860f1=resolveTargetApps(_0xbd086b,_0x455e06);if(_0x3860f1){const _0x35824d=[];for(const _0x73984e of _0x3860f1){const _0x4b74fe=_0x73984e[_0x3fd929(0x1d4)]||_0xbd086b[_0x3fd929(0x1d4)],_0x19f0c2=_0x73984e[_0x3fd929(0x1cb)]||_0x3fd929(0x1ca);initEnv(_0x19f0c2);const {configArray:_0xf55c2d}=await fetchModelList(_0x73984e[_0x3fd929(0x1cd)],_0x4b74fe);_0x35824d['push'](..._0xf55c2d[_0x3fd929(0x1d0)](_0x469e1e=>({..._0x469e1e,'_appName':_0x73984e['name'],'_appCode':_0x73984e[_0x3fd929(0x1cd)],'_env':_0x19f0c2,'_isDefault':_0x73984e[_0x3fd929(0x1ce)]})));}return{'ok':!![],'data':_0x35824d};}const {configArray:_0x1faa1b}=await fetchModelList(_0xbd086b['appCode'],_0xbd086b[_0x3fd929(0x1d4)]);return{'ok':!![],'data':_0x1faa1b};}};
@@ -1 +1 @@
1
- const a117_0x166b5b=a117_0x5d0d;function a117_0x4a36(){const _0x1c4b16=['write','16qlaQfi','...','message','Output\x20directory\x20(default:\x20','isDefault','rawFlags','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','1333100yoFTsE','5oZcVss','2209152wfuouT','7638MhbwXK','5151881bcCuHM','name','length','Done:\x20','.ts','production','global','4352535PxzBGk','api','env','\x20app(s)\x20failed','join','3182616npZakt','appCode','slice','\x20dataset(s)\x20→\x20','Pulling\x20API\x20config\x20for\x20','appcode','-api','Pulled\x20','modelCount','\x20\x20•\x20','Pulling\x20','129940vHNbgW','apiDir','client','boolean','str','cookie','361ciAIsw','\x20dataset(s),\x20generated\x20','pull','\x20succeeded,\x20','output',')...','fail','\x20failed','apiFilePath','\x20model(s)','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','start','-client','succeed','includes'];a117_0x4a36=function(){return _0x1c4b16;};return a117_0x4a36();}(function(_0x20d1be,_0x5548c1){const _0x3ecad9=a117_0x5d0d,_0x2f23b9=_0x20d1be();while(!![]){try{const _0x195265=-parseInt(_0x3ecad9(0x193))/0x1*(-parseInt(_0x3ecad9(0x1ad))/0x2)+-parseInt(_0x3ecad9(0x1ac))/0x3+parseInt(_0x3ecad9(0x1aa))/0x4*(-parseInt(_0x3ecad9(0x1ab))/0x5)+-parseInt(_0x3ecad9(0x182))/0x6+-parseInt(_0x3ecad9(0x1ae))/0x7*(-parseInt(_0x3ecad9(0x1a3))/0x8)+-parseInt(_0x3ecad9(0x17d))/0x9+parseInt(_0x3ecad9(0x18d))/0xa;if(_0x195265===_0x5548c1)break;else _0x2f23b9['push'](_0x2f23b9['shift']());}catch(_0xacf0f9){_0x2f23b9['push'](_0x2f23b9['shift']());}}}(a117_0x4a36,0xbe685));import a117_0x14e661 from'ora';import a117_0x3b8ade from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';function a117_0x5d0d(_0x4a24b4,_0x3bd6ba){_0x4a24b4=_0x4a24b4-0x179;const _0x4a3660=a117_0x4a36();let _0x5d0d26=_0x4a3660[_0x4a24b4];return _0x5d0d26;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':a117_0x166b5b(0x17e),'command':a117_0x166b5b(0x195),'description':a117_0x166b5b(0x1a9)+DEFAULT_API_DIR+'/)','risk':a117_0x166b5b(0x1a2),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a117_0x166b5b(0x197),'type':'string','description':a117_0x166b5b(0x1a6)+DEFAULT_API_DIR+'/)'},{'name':a117_0x166b5b(0x17c),'type':a117_0x166b5b(0x190),'description':a117_0x166b5b(0x19d),'default':![]}],async 'execute'(_0x1be015){const _0x2b9ba5=a117_0x166b5b,_0x3c0e3a=_0x1be015[_0x2b9ba5(0x1a8)][_0x2b9ba5(0x187)]?String(_0x1be015[_0x2b9ba5(0x1a8)][_0x2b9ba5(0x187)]):undefined,_0x4f7e6c=_0x1be015[_0x2b9ba5(0x191)](_0x2b9ba5(0x197))||undefined,_0xfbcde3=resolveTargetApps(_0x1be015,_0x3c0e3a);if(_0xfbcde3){let _0x211bc2=0x0,_0x47955d=0x0;for(const _0x1911a8 of _0xfbcde3){const _0x5e9be9=_0x1911a8[_0x2b9ba5(0x192)]||_0x1be015['cookie'],_0x56d425=_0x1911a8[_0x2b9ba5(0x17f)]||_0x2b9ba5(0x17b);initEnv(_0x56d425);const _0xeb2d67=_0x1911a8['apiDir']||_0x4f7e6c||_0x1be015[_0x2b9ba5(0x18e)]||DEFAULT_API_DIR,_0x2fc2d4=_0x1911a8['isDefault']?'':_0x1911a8[_0x2b9ba5(0x1af)]||_0x1911a8[_0x2b9ba5(0x187)],_0x1a64bf=a117_0x14e661(_0x2b9ba5(0x18c)+_0x1911a8[_0x2b9ba5(0x1af)]+'\x20('+_0x1911a8[_0x2b9ba5(0x187)]+_0x2b9ba5(0x198))[_0x2b9ba5(0x19e)]();try{const {configArray:_0x5e2760}=await fetchModelList(_0x1911a8['appcode'],_0x5e9be9),_0x305922=await generateApiFile(_0x5e2760,_0x2fc2d4,_0x1911a8[_0x2b9ba5(0x187)],_0x1911a8[_0x2b9ba5(0x1a7)],_0x56d425,_0xeb2d67,_0x1911a8['name']);_0x1a64bf['succeed'](_0x1911a8[_0x2b9ba5(0x1af)]+':\x20'+_0x5e2760[_0x2b9ba5(0x1b0)]+_0x2b9ba5(0x185)+_0x305922[_0x2b9ba5(0x18a)]+_0x2b9ba5(0x19c)),writeCliSideChannelLine(_0x2b9ba5(0x18b)+_0x305922[_0x2b9ba5(0x19b)]),writeCliSideChannelLine('\x20\x20•\x20'+_0x305922['clientFilePath']),_0x211bc2++;}catch(_0x581ff5){_0x1a64bf['fail'](_0x1911a8['name']+':\x20'+(_0x581ff5 instanceof Error?_0x581ff5[_0x2b9ba5(0x1a5)]:String(_0x581ff5))),_0x47955d++;}}writeCliSideChannelLine('');if(_0x47955d>0x0)writeCliSideChannelLine('!\x20'+_0x47955d+_0x2b9ba5(0x180));return{'ok':_0x47955d===0x0,'message':_0x2b9ba5(0x179)+_0x211bc2+_0x2b9ba5(0x196)+_0x47955d+_0x2b9ba5(0x19a)};}const _0x3d78bd=_0x3c0e3a&&_0x3c0e3a[_0x2b9ba5(0x1a1)]('-')?_0x3c0e3a['split']('-')[_0x2b9ba5(0x184)](0x1)[_0x2b9ba5(0x181)]('-'):'',_0x22893e=_0x4f7e6c||_0x1be015['apiDir']||DEFAULT_API_DIR,_0x5c7c25=!_0x3c0e3a,_0xa0f650=a117_0x14e661(_0x2b9ba5(0x186)+_0x1be015[_0x2b9ba5(0x183)]+_0x2b9ba5(0x1a4))[_0x2b9ba5(0x19e)]();try{const {configArray:_0x489450}=await fetchModelList(_0x1be015[_0x2b9ba5(0x183)],_0x1be015[_0x2b9ba5(0x192)]),_0x12553d=await generateApiFile(_0x489450,_0x3d78bd,_0x1be015['appCode'],_0x5c7c25,getEnv(),_0x22893e);_0xa0f650[_0x2b9ba5(0x1a0)](_0x2b9ba5(0x189)+_0x489450['length']+_0x2b9ba5(0x194)+_0x12553d[_0x2b9ba5(0x18a)]+_0x2b9ba5(0x19c));const _0x514f59=_0x3d78bd?_0x3d78bd+_0x2b9ba5(0x188):_0x2b9ba5(0x17e),_0x2dd8fb=_0x3d78bd?_0x3d78bd+_0x2b9ba5(0x19f):_0x2b9ba5(0x18f);return writeCliSideChannelLine(_0x2b9ba5(0x18b)+a117_0x3b8ade[_0x2b9ba5(0x181)](_0x22893e,_0x514f59+_0x2b9ba5(0x17a))),writeCliSideChannelLine('\x20\x20•\x20'+a117_0x3b8ade[_0x2b9ba5(0x181)](_0x22893e,_0x2dd8fb+_0x2b9ba5(0x17a))),{'ok':!![],'data':{'datasetCount':_0x489450[_0x2b9ba5(0x1b0)],'modelCount':_0x12553d[_0x2b9ba5(0x18a)]}};}catch(_0x57f8ef){_0xa0f650[_0x2b9ba5(0x199)]('Failed:\x20'+(_0x57f8ef instanceof Error?_0x57f8ef[_0x2b9ba5(0x1a5)]:String(_0x57f8ef)));throw _0x57f8ef;}}};
1
+ function a117_0x9ba3(){const _0x5c50d3=['22741aafHLY','Pulling\x20','\x20failed','appcode','cookie','Pulled\x20','3933891wYqIkz','fail','string','length','name','slice','55ROpNIA','398128brtyoI','-api','Output\x20directory\x20(default:\x20','\x20dataset(s)\x20→\x20','\x20dataset(s),\x20generated\x20','message','api','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','4DjKXIh','3594393aAujoq','-client','\x20succeeded,\x20','apiFilePath','Failed:\x20','boolean','54lZddQM','.ts','apiDir','Done:\x20','1530190qhOwpG','2327535nULpFy','appCode','...','output','\x20\x20•\x20','clientFilePath','join','8TmFcNq','start','succeed','modelCount','567695UliKTG','Pulling\x20API\x20config\x20for\x20','rawFlags','\x20model(s)','split','env','\x20app(s)\x20failed','production','global'];a117_0x9ba3=function(){return _0x5c50d3;};return a117_0x9ba3();}const a117_0x36e187=a117_0x1d5f;(function(_0x2bb244,_0xb849ea){const _0x2bce1c=a117_0x1d5f,_0x3c4ba2=_0x2bb244();while(!![]){try{const _0x1af285=-parseInt(_0x2bce1c(0x1da))/0x1*(-parseInt(_0x2bce1c(0x1ba))/0x2)+parseInt(_0x2bce1c(0x1bb))/0x3+-parseInt(_0x2bce1c(0x1e7))/0x4+-parseInt(_0x2bce1c(0x1d1))/0x5*(-parseInt(_0x2bce1c(0x1c1))/0x6)+-parseInt(_0x2bce1c(0x1c6))/0x7+parseInt(_0x2bce1c(0x1cd))/0x8*(-parseInt(_0x2bce1c(0x1e0))/0x9)+parseInt(_0x2bce1c(0x1c5))/0xa*(-parseInt(_0x2bce1c(0x1e6))/0xb);if(_0x1af285===_0xb849ea)break;else _0x3c4ba2['push'](_0x3c4ba2['shift']());}catch(_0x24869f){_0x3c4ba2['push'](_0x3c4ba2['shift']());}}}(a117_0x9ba3,0x9a1c1));import a117_0x491bf8 from'ora';import a117_0x574464 from'node:path';function a117_0x1d5f(_0x2654a5,_0x3d6738){_0x2654a5=_0x2654a5-0x1b6;const _0x9ba3bc=a117_0x9ba3();let _0x1d5f0c=_0x9ba3bc[_0x2654a5];return _0x1d5f0c;}import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';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';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':a117_0x36e187(0x1b7),'command':'pull','description':a117_0x36e187(0x1b9)+DEFAULT_API_DIR+'/)','risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a117_0x36e187(0x1c9),'type':a117_0x36e187(0x1e2),'description':a117_0x36e187(0x1e9)+DEFAULT_API_DIR+'/)'},{'name':a117_0x36e187(0x1d9),'type':a117_0x36e187(0x1c0),'description':a117_0x36e187(0x1b8),'default':![]}],async 'execute'(_0x4de153){const _0x4fd50e=a117_0x36e187,_0x29f9b2=_0x4de153[_0x4fd50e(0x1d3)][_0x4fd50e(0x1dd)]?String(_0x4de153['rawFlags'][_0x4fd50e(0x1dd)]):undefined,_0x2e2b40=_0x4de153['str'](_0x4fd50e(0x1c9))||undefined,_0x346b15=resolveTargetApps(_0x4de153,_0x29f9b2);if(_0x346b15){let _0x540065=0x0,_0x2c1a2d=0x0;for(const _0x8ba818 of _0x346b15){const _0x189205=_0x8ba818[_0x4fd50e(0x1de)]||_0x4de153[_0x4fd50e(0x1de)],_0x57c7b3=_0x8ba818[_0x4fd50e(0x1d6)]||_0x4fd50e(0x1d8);initEnv(_0x57c7b3);const _0x4f6b65=_0x8ba818[_0x4fd50e(0x1c3)]||_0x2e2b40||_0x4de153[_0x4fd50e(0x1c3)]||DEFAULT_API_DIR,_0xd38b47=_0x8ba818['isDefault']?'':_0x8ba818[_0x4fd50e(0x1e4)]||_0x8ba818['appcode'],_0xa4f80c=a117_0x491bf8(_0x4fd50e(0x1db)+_0x8ba818[_0x4fd50e(0x1e4)]+'\x20('+_0x8ba818[_0x4fd50e(0x1dd)]+')...')[_0x4fd50e(0x1ce)]();try{const {configArray:_0x4127fd}=await fetchModelList(_0x8ba818['appcode'],_0x189205),_0x4f554d=await generateApiFile(_0x4127fd,_0xd38b47,_0x8ba818['appcode'],_0x8ba818['isDefault'],_0x57c7b3,_0x4f6b65,_0x8ba818[_0x4fd50e(0x1e4)]);_0xa4f80c[_0x4fd50e(0x1cf)](_0x8ba818[_0x4fd50e(0x1e4)]+':\x20'+_0x4127fd[_0x4fd50e(0x1e3)]+_0x4fd50e(0x1ea)+_0x4f554d[_0x4fd50e(0x1d0)]+_0x4fd50e(0x1d4)),writeCliSideChannelLine('\x20\x20•\x20'+_0x4f554d[_0x4fd50e(0x1be)]),writeCliSideChannelLine(_0x4fd50e(0x1ca)+_0x4f554d[_0x4fd50e(0x1cb)]),_0x540065++;}catch(_0x284994){_0xa4f80c['fail'](_0x8ba818[_0x4fd50e(0x1e4)]+':\x20'+(_0x284994 instanceof Error?_0x284994[_0x4fd50e(0x1b6)]:String(_0x284994))),_0x2c1a2d++;}}writeCliSideChannelLine('');if(_0x2c1a2d>0x0)writeCliSideChannelLine('!\x20'+_0x2c1a2d+_0x4fd50e(0x1d7));return{'ok':_0x2c1a2d===0x0,'message':_0x4fd50e(0x1c4)+_0x540065+_0x4fd50e(0x1bd)+_0x2c1a2d+_0x4fd50e(0x1dc)};}const _0x12961c=_0x29f9b2&&_0x29f9b2['includes']('-')?_0x29f9b2[_0x4fd50e(0x1d5)]('-')[_0x4fd50e(0x1e5)](0x1)['join']('-'):'',_0x39ce7c=_0x2e2b40||_0x4de153[_0x4fd50e(0x1c3)]||DEFAULT_API_DIR,_0x15e003=!_0x29f9b2,_0x4dfd1b=a117_0x491bf8(_0x4fd50e(0x1d2)+_0x4de153[_0x4fd50e(0x1c7)]+_0x4fd50e(0x1c8))[_0x4fd50e(0x1ce)]();try{const {configArray:_0x540201}=await fetchModelList(_0x4de153[_0x4fd50e(0x1c7)],_0x4de153[_0x4fd50e(0x1de)]),_0x4b92dc=await generateApiFile(_0x540201,_0x12961c,_0x4de153[_0x4fd50e(0x1c7)],_0x15e003,getEnv(),_0x39ce7c);_0x4dfd1b[_0x4fd50e(0x1cf)](_0x4fd50e(0x1df)+_0x540201[_0x4fd50e(0x1e3)]+_0x4fd50e(0x1eb)+_0x4b92dc['modelCount']+_0x4fd50e(0x1d4));const _0x2ddc54=_0x12961c?_0x12961c+_0x4fd50e(0x1e8):_0x4fd50e(0x1b7),_0x26d14e=_0x12961c?_0x12961c+_0x4fd50e(0x1bc):'client';return writeCliSideChannelLine(_0x4fd50e(0x1ca)+a117_0x574464[_0x4fd50e(0x1cc)](_0x39ce7c,_0x2ddc54+_0x4fd50e(0x1c2))),writeCliSideChannelLine(_0x4fd50e(0x1ca)+a117_0x574464['join'](_0x39ce7c,_0x26d14e+_0x4fd50e(0x1c2))),{'ok':!![],'data':{'datasetCount':_0x540201[_0x4fd50e(0x1e3)],'modelCount':_0x4b92dc[_0x4fd50e(0x1d0)]}};}catch(_0x57cd31){_0x4dfd1b[_0x4fd50e(0x1e1)](_0x4fd50e(0x1bf)+(_0x57cd31 instanceof Error?_0x57cd31[_0x4fd50e(0x1b6)]:String(_0x57cd31)));throw _0x57cd31;}}};
@@ -1 +1 @@
1
- (function(_0x1196b7,_0x2416e6){const _0x556e98=a120_0x29a9,_0x5f1670=_0x1196b7();while(!![]){try{const _0x319ae3=-parseInt(_0x556e98(0x1e7))/0x1+-parseInt(_0x556e98(0x1d9))/0x2+-parseInt(_0x556e98(0x1de))/0x3*(parseInt(_0x556e98(0x1da))/0x4)+parseInt(_0x556e98(0x1db))/0x5*(parseInt(_0x556e98(0x1ed))/0x6)+-parseInt(_0x556e98(0x1df))/0x7*(parseInt(_0x556e98(0x1eb))/0x8)+-parseInt(_0x556e98(0x1e1))/0x9+-parseInt(_0x556e98(0x1dc))/0xa*(-parseInt(_0x556e98(0x1ea))/0xb);if(_0x319ae3===_0x2416e6)break;else _0x5f1670['push'](_0x5f1670['shift']());}catch(_0x114281){_0x5f1670['push'](_0x5f1670['shift']());}}}(a120_0x2c48,0xb005b));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x1991c9,_0x11fee1){const _0x191fe4=a120_0x29a9;if(_0x11fee1)return null;const _0x2bcf29=_0x1991c9[_0x191fe4(0x1e0)](_0x191fe4(0x1e8))?_0x191fe4(0x1e5):_0x191fe4(0x1e4);let _0x135d37=getMultiAppConfigs(_0x2bcf29);if(!_0x135d37||_0x135d37[_0x191fe4(0x1ec)]===0x0)return null;if(_0x1991c9[_0x191fe4(0x1e2)]){const _0x41dffa=_0x135d37[_0x191fe4(0x1e6)](_0x271b26=>_0x271b26['name']===_0x1991c9[_0x191fe4(0x1e2)]);if(_0x41dffa[_0x191fe4(0x1ec)]===0x0){const _0x34c2a9=_0x135d37['map'](_0x7e8c58=>_0x7e8c58['name'])['join'](',\x20');throw CliErrors[_0x191fe4(0x1dd)](_0x191fe4(0x1e9)+_0x1991c9[_0x191fe4(0x1e2)]+_0x191fe4(0x1e3)+_0x34c2a9);}_0x135d37=_0x41dffa;}return _0x135d37;}function a120_0x29a9(_0x3b9930,_0x2cc969){_0x3b9930=_0x3b9930-0x1d9;const _0x2c4804=a120_0x2c48();let _0x29a96e=_0x2c4804[_0x3b9930];return _0x29a96e;}function a120_0x2c48(){const _0x4e1590=['App\x20\x22','77nmmPZR','8oPgKzq','length','12BuJHyo','1974422OlOdIt','4479212igZzlu','3011165yxMxEf','4986160TGJkFq','validation','3GKudfB','2686012tEMjZf','bool','11890260qMlmvs','selectedAppName','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','project','merged','filter','161921xflEEo','global'];a120_0x2c48=function(){return _0x4e1590;};return a120_0x2c48();}
1
+ (function(_0x23a39c,_0x9a38a9){const _0x52af90=a120_0x2ee3,_0x34e546=_0x23a39c();while(!![]){try{const _0x58b5da=parseInt(_0x52af90(0x1a9))/0x1+-parseInt(_0x52af90(0x1b2))/0x2+parseInt(_0x52af90(0x1b5))/0x3*(-parseInt(_0x52af90(0x1b4))/0x4)+-parseInt(_0x52af90(0x1b8))/0x5+-parseInt(_0x52af90(0x1ba))/0x6*(-parseInt(_0x52af90(0x1b7))/0x7)+-parseInt(_0x52af90(0x1aa))/0x8*(parseInt(_0x52af90(0x1b6))/0x9)+-parseInt(_0x52af90(0x1af))/0xa*(-parseInt(_0x52af90(0x1b3))/0xb);if(_0x58b5da===_0x9a38a9)break;else _0x34e546['push'](_0x34e546['shift']());}catch(_0x53d389){_0x34e546['push'](_0x34e546['shift']());}}}(a120_0x2314,0x5ad7c));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';function a120_0x2ee3(_0x8c8d02,_0x3ae1f0){_0x8c8d02=_0x8c8d02-0x1a7;const _0x23141e=a120_0x2314();let _0x2ee3a9=_0x23141e[_0x8c8d02];return _0x2ee3a9;}function a120_0x2314(){const _0x10da23=['1100896ifGBBL','project','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','selectedAppName','length','15048860uKEmFX','App\x20\x22','merged','1162828UIoeOP','11WzGdYt','28FjJTXR','156846kqxxCA','9rzkqvZ','21WZdXmw','2626620qXxvnp','join','934572oqtPtn','validation','name','bool','10244QwZXOH'];a120_0x2314=function(){return _0x10da23;};return a120_0x2314();}export function resolveTargetApps(_0x3ecce7,_0x4bee2e){const _0x345283=a120_0x2ee3;if(_0x4bee2e)return null;const _0xcc83fa=_0x3ecce7[_0x345283(0x1a8)]('global')?_0x345283(0x1b1):_0x345283(0x1ab);let _0x4c6087=getMultiAppConfigs(_0xcc83fa);if(!_0x4c6087||_0x4c6087[_0x345283(0x1ae)]===0x0)return null;if(_0x3ecce7[_0x345283(0x1ad)]){const _0x62bda3=_0x4c6087['filter'](_0x8ea962=>_0x8ea962[_0x345283(0x1a7)]===_0x3ecce7['selectedAppName']);if(_0x62bda3[_0x345283(0x1ae)]===0x0){const _0x56fcbc=_0x4c6087['map'](_0x23a644=>_0x23a644['name'])[_0x345283(0x1b9)](',\x20');throw CliErrors[_0x345283(0x1bb)](_0x345283(0x1b0)+_0x3ecce7[_0x345283(0x1ad)]+_0x345283(0x1ac)+_0x56fcbc);}_0x4c6087=_0x62bda3;}return _0x4c6087;}
@@ -1 +1 @@
1
- const a106_0x739a4e=a106_0x1df4;(function(_0x3d0d11,_0xe5dafe){const _0x458f2e=a106_0x1df4,_0x2245d7=_0x3d0d11();while(!![]){try{const _0x4b298b=parseInt(_0x458f2e(0x87))/0x1*(-parseInt(_0x458f2e(0x9e))/0x2)+parseInt(_0x458f2e(0x8a))/0x3*(parseInt(_0x458f2e(0x85))/0x4)+parseInt(_0x458f2e(0x86))/0x5*(parseInt(_0x458f2e(0x90))/0x6)+parseInt(_0x458f2e(0xa0))/0x7*(-parseInt(_0x458f2e(0x7d))/0x8)+-parseInt(_0x458f2e(0x9f))/0x9*(-parseInt(_0x458f2e(0x93))/0xa)+-parseInt(_0x458f2e(0x98))/0xb*(parseInt(_0x458f2e(0x8f))/0xc)+parseInt(_0x458f2e(0xa1))/0xd*(parseInt(_0x458f2e(0x7e))/0xe);if(_0x4b298b===_0xe5dafe)break;else _0x2245d7['push'](_0x2245d7['shift']());}catch(_0x437985){_0x2245d7['push'](_0x2245d7['shift']());}}}(a106_0x4123,0xc5a7a));function a106_0x1df4(_0x472e2e,_0x27129f){_0x472e2e=_0x472e2e-0x7c;const _0x4123a3=a106_0x4123();let _0x1df452=_0x4123a3[_0x472e2e];return _0x1df452;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';function a106_0x4123(){const _0x172d28=['str','name','write','\x20app\x20add\x20<name>\x20--appcode\x20<code>','flagMissing','2cPLBWq','9144JSYbxX','1939psbYkr','564187YpcVWi','boolean','19424OeDErF','14HoVruD','string','validation','Missing\x20app\x20name.','\x20app\x20\x22','bool','add','44OcGzzb','5AyOfKj','308833gAFsJI','Updated','Add\x20or\x20update\x20an\x20app\x20in\x20config','234591vJrEqH','App\x20code','\x22\x20(appcode:\x20','Usage:\x20','global','1320eVgYSI','8835522zAUybh','defaultApp','apps','8050paNQlg','Added','appcode','App\x20profile\x20name','Use\x20global\x20config\x20scope','140305mBVlQz'];a106_0x4123=function(){return _0x172d28;};return a106_0x4123();}import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x513507){const _0x5aff35=a106_0x1df4,_0x38df2d=_0x513507['args'][0x0]?.['trim']();if(!_0x38df2d)throw CliErrors[_0x5aff35(0x80)](_0x5aff35(0x81),_0x5aff35(0x8d)+CLI_BIN_NAME+_0x5aff35(0x9c));}async function execute(_0x486dc8){const _0x13772c=a106_0x1df4,_0x396748=_0x486dc8['args'][0x0]?.['trim']();if(!_0x396748)throw CliErrors[_0x13772c(0x80)]('Missing\x20app\x20name.',_0x13772c(0x8d)+CLI_BIN_NAME+_0x13772c(0x9c));const _0x17b406=_0x486dc8[_0x13772c(0x99)](_0x13772c(0x95));if(!_0x17b406)throw CliErrors[_0x13772c(0x9d)](_0x13772c(0x95),_0x13772c(0x8d)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x229f36={'global':_0x486dc8[_0x13772c(0x83)](_0x13772c(0x8e))},_0x301762=readConfig(_0x229f36);if(!_0x301762[_0x13772c(0x92)])_0x301762[_0x13772c(0x92)]={};const _0x3b9eb1={'appcode':_0x17b406,...collectAppProfileOverrides(_0x1286aa=>_0x486dc8[_0x13772c(0x99)](_0x1286aa))},_0x2d4f3c=_0x301762[_0x13772c(0x92)],_0x565020=!!_0x2d4f3c[_0x396748];_0x2d4f3c[_0x396748]=_0x3b9eb1;if(!_0x301762['defaultApp'])_0x301762[_0x13772c(0x91)]=_0x396748;writeConfig(_0x301762,_0x229f36);const _0x34d41c=!_0x565020&&_0x301762['defaultApp']===_0x396748?'\x20Set\x20as\x20default\x20app.':'',_0x22ccdc=(_0x565020?_0x13772c(0x88):_0x13772c(0x94))+_0x13772c(0x82)+_0x396748+_0x13772c(0x8c)+_0x17b406+')'+scopeLabel(_0x229f36)+'.'+_0x34d41c;return{'ok':!![],'message':_0x22ccdc};}export const appAddDefinition={'service':'app','command':a106_0x739a4e(0x84),'description':a106_0x739a4e(0x89),'risk':a106_0x739a4e(0x9b),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a106_0x739a4e(0x9a),'description':a106_0x739a4e(0x96),'required':!![]}],'flags':[{'name':a106_0x739a4e(0x95),'type':a106_0x739a4e(0x7f),'description':a106_0x739a4e(0x8b),'required':!![]},{'name':a106_0x739a4e(0x8e),'type':a106_0x739a4e(0x7c),'description':a106_0x739a4e(0x97),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ const a106_0x4cc304=a106_0x2a4b;(function(_0xd5fbec,_0x54de09){const _0x4bf71e=a106_0x2a4b,_0x47cd05=_0xd5fbec();while(!![]){try{const _0x70c3a1=-parseInt(_0x4bf71e(0x13c))/0x1+-parseInt(_0x4bf71e(0x146))/0x2*(parseInt(_0x4bf71e(0x13f))/0x3)+parseInt(_0x4bf71e(0x140))/0x4*(parseInt(_0x4bf71e(0x13d))/0x5)+-parseInt(_0x4bf71e(0x128))/0x6+parseInt(_0x4bf71e(0x135))/0x7*(parseInt(_0x4bf71e(0x12e))/0x8)+-parseInt(_0x4bf71e(0x131))/0x9+-parseInt(_0x4bf71e(0x13b))/0xa*(-parseInt(_0x4bf71e(0x132))/0xb);if(_0x70c3a1===_0x54de09)break;else _0x47cd05['push'](_0x47cd05['shift']());}catch(_0x390cbf){_0x47cd05['push'](_0x47cd05['shift']());}}}(a106_0x52d5,0x38107));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';function a106_0x2a4b(_0x2d1f41,_0x13f069){_0x2d1f41=_0x2d1f41-0x123;const _0x52d56a=a106_0x52d5();let _0x2a4bc2=_0x52d56a[_0x2d1f41];return _0x2a4bc2;}async function validateArgs(_0xe1a4cd){const _0x52fa80=a106_0x2a4b,_0x1ee7a1=_0xe1a4cd[_0x52fa80(0x12f)][0x0]?.[_0x52fa80(0x123)]();if(!_0x1ee7a1)throw CliErrors['validation'](_0x52fa80(0x126),_0x52fa80(0x12c)+CLI_BIN_NAME+_0x52fa80(0x124));}async function execute(_0x567d95){const _0x344690=a106_0x2a4b,_0x572da3=_0x567d95[_0x344690(0x12f)][0x0]?.[_0x344690(0x123)]();if(!_0x572da3)throw CliErrors[_0x344690(0x147)](_0x344690(0x126),'Usage:\x20'+CLI_BIN_NAME+_0x344690(0x124));const _0x5ed657=_0x567d95[_0x344690(0x133)](_0x344690(0x125));if(!_0x5ed657)throw CliErrors[_0x344690(0x130)](_0x344690(0x125),'Usage:\x20'+CLI_BIN_NAME+_0x344690(0x124));const _0x1d286c={'global':_0x567d95['bool'](_0x344690(0x143))},_0x27b75f=readConfig(_0x1d286c);if(!_0x27b75f[_0x344690(0x12b)])_0x27b75f['apps']={};const _0x470d4c={'appcode':_0x5ed657,...collectAppProfileOverrides(_0x402332=>_0x567d95[_0x344690(0x133)](_0x402332))},_0x180096=_0x27b75f['apps'],_0x350907=!!_0x180096[_0x572da3];_0x180096[_0x572da3]=_0x470d4c;if(!_0x27b75f[_0x344690(0x12a)])_0x27b75f[_0x344690(0x12a)]=_0x572da3;writeConfig(_0x27b75f,_0x1d286c);const _0x65cc1d=!_0x350907&&_0x27b75f[_0x344690(0x12a)]===_0x572da3?_0x344690(0x13a):'',_0x3ca52b=(_0x350907?_0x344690(0x127):_0x344690(0x141))+_0x344690(0x136)+_0x572da3+_0x344690(0x138)+_0x5ed657+')'+scopeLabel(_0x1d286c)+'.'+_0x65cc1d;return{'ok':!![],'message':_0x3ca52b};}function a106_0x52d5(){const _0x2a3223=['string','add','350374NSsdec','validation','trim','\x20app\x20add\x20<name>\x20--appcode\x20<code>','appcode','Missing\x20app\x20name.','Updated','2597652JhKQPJ','App\x20code','defaultApp','apps','Usage:\x20','Use\x20global\x20config\x20scope','24BKHQwo','args','flagMissing','3439197vNucoL','398739kuOpDj','str','write','977543bjZwuf','\x20app\x20\x22','name','\x22\x20(appcode:\x20','Add\x20or\x20update\x20an\x20app\x20in\x20config','\x20Set\x20as\x20default\x20app.','280egPImj','122073Rfurla','5WnRGvq','boolean','6MjZFgT','332968EJebbg','Added','App\x20profile\x20name','global'];a106_0x52d5=function(){return _0x2a3223;};return a106_0x52d5();}export const appAddDefinition={'service':'app','command':a106_0x4cc304(0x145),'description':a106_0x4cc304(0x139),'risk':a106_0x4cc304(0x134),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a106_0x4cc304(0x137),'description':a106_0x4cc304(0x142),'required':!![]}],'flags':[{'name':a106_0x4cc304(0x125),'type':a106_0x4cc304(0x144),'description':a106_0x4cc304(0x129),'required':!![]},{'name':a106_0x4cc304(0x143),'type':a106_0x4cc304(0x13e),'description':a106_0x4cc304(0x12d),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};