@lovrabet/rabetbase-cli 2.1.9 → 2.1.10-beta.0

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 (197) 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/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.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/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/field-update.js +1 -0
  54. package/lib/commands/dataset/index.js +1 -1
  55. package/lib/commands/dataset/link-create.js +1 -1
  56. package/lib/commands/dataset/link-delete.js +1 -1
  57. package/lib/commands/dataset/link-shared.js +1 -1
  58. package/lib/commands/dataset/link-update.js +1 -1
  59. package/lib/commands/dataset/links.js +1 -1
  60. package/lib/commands/dataset/list.js +1 -1
  61. package/lib/commands/dataset/operations.js +1 -1
  62. package/lib/commands/db/analyze-cancel.js +1 -1
  63. package/lib/commands/db/analyze-start.js +1 -1
  64. package/lib/commands/db/analyze-status.js +1 -1
  65. package/lib/commands/db/create.js +1 -1
  66. package/lib/commands/db/delete.js +1 -1
  67. package/lib/commands/db/detail.js +1 -1
  68. package/lib/commands/db/diff.js +1 -1
  69. package/lib/commands/db/index.js +1 -1
  70. package/lib/commands/db/list.js +1 -1
  71. package/lib/commands/db/shared.js +1 -1
  72. package/lib/commands/db/tables.js +1 -1
  73. package/lib/commands/db/test.js +1 -1
  74. package/lib/commands/db/update.js +1 -1
  75. package/lib/commands/doctor.js +1 -1
  76. package/lib/commands/init/index.js +1 -1
  77. package/lib/commands/issue/index.js +1 -1
  78. package/lib/commands/issue/report.js +1 -1
  79. package/lib/commands/logs/index.js +1 -1
  80. package/lib/commands/menu/index.js +1 -1
  81. package/lib/commands/menu/shared/compare-table.js +1 -1
  82. package/lib/commands/menu/shared/index.js +1 -1
  83. package/lib/commands/menu/shared/inquirer.js +1 -1
  84. package/lib/commands/menu/shared/local-pages.js +1 -1
  85. package/lib/commands/menu/shared/logic.js +1 -1
  86. package/lib/commands/menu/shared/service.js +1 -1
  87. package/lib/commands/menu/shared/sync-core.js +1 -1
  88. package/lib/commands/menu/shared/update-core.js +1 -1
  89. package/lib/commands/menu/shared/valid-url.js +1 -1
  90. package/lib/commands/menu/sync.js +1 -1
  91. package/lib/commands/menu/update.js +1 -1
  92. package/lib/commands/page/generate-start.js +1 -1
  93. package/lib/commands/page/generate-status.js +1 -1
  94. package/lib/commands/page/index.js +1 -1
  95. package/lib/commands/page/pull.js +1 -1
  96. package/lib/commands/page/push.js +1 -1
  97. package/lib/commands/page/shared.js +1 -1
  98. package/lib/commands/page/standard-page-status.js +1 -1
  99. package/lib/commands/page/sync.js +1 -1
  100. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  101. package/lib/commands/project/create/format-elapsed.js +1 -1
  102. package/lib/commands/project/create/main.js +1 -1
  103. package/lib/commands/project/create/non-interactive.js +1 -1
  104. package/lib/commands/project/create/project-template-path.js +1 -1
  105. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  106. package/lib/commands/project/create/use-format-code.js +1 -1
  107. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  108. package/lib/commands/project/index.js +1 -1
  109. package/lib/commands/project/init.js +1 -1
  110. package/lib/commands/project/upgrade.js +1 -1
  111. package/lib/commands/registry.js +1 -1
  112. package/lib/commands/run/index.js +1 -1
  113. package/lib/commands/schema.js +1 -1
  114. package/lib/commands/skill/index.js +1 -1
  115. package/lib/commands/sql/create.js +1 -1
  116. package/lib/commands/sql/delete.js +1 -1
  117. package/lib/commands/sql/detail.js +1 -1
  118. package/lib/commands/sql/exec.js +1 -1
  119. package/lib/commands/sql/index.js +1 -1
  120. package/lib/commands/sql/list.js +1 -1
  121. package/lib/commands/sql/pull.js +1 -1
  122. package/lib/commands/sql/push.js +1 -1
  123. package/lib/commands/sql/save.js +1 -1
  124. package/lib/commands/sql/shared.js +1 -1
  125. package/lib/commands/sql/status.js +1 -1
  126. package/lib/commands/sql/validate.js +1 -1
  127. package/lib/config/schema.js +1 -1
  128. package/lib/constant/cdn.js +1 -1
  129. package/lib/constant/cli.js +1 -1
  130. package/lib/constant/defaults.js +1 -1
  131. package/lib/constant/domain.js +1 -1
  132. package/lib/constant/env.js +1 -1
  133. package/lib/constant/output.js +1 -1
  134. package/lib/constant/paths.js +1 -1
  135. package/lib/constant/risk.js +1 -1
  136. package/lib/context.js +1 -1
  137. package/lib/core/alias-resolver.js +1 -1
  138. package/lib/core/api-client.js +1 -1
  139. package/lib/core/bff/config.js +1 -1
  140. package/lib/core/bff/file-system.js +1 -1
  141. package/lib/core/bff/hash.js +1 -1
  142. package/lib/core/bff/lock.js +1 -1
  143. package/lib/core/bff/utils.js +1 -1
  144. package/lib/core/db-resolver.js +1 -1
  145. package/lib/core/page/file-system.js +1 -1
  146. package/lib/core/page/hash.js +1 -1
  147. package/lib/core/page/lock.js +1 -1
  148. package/lib/core/sql-sync/config.js +1 -1
  149. package/lib/core/sql-sync/file-system.js +1 -1
  150. package/lib/core/sql-sync/hash.js +1 -1
  151. package/lib/core/sql-sync/lock.js +1 -1
  152. package/lib/core/sql-sync/utils.js +1 -1
  153. package/lib/core/sql-validator.js +1 -1
  154. package/lib/errors.js +1 -1
  155. package/lib/framework/build-all-flags.js +1 -1
  156. package/lib/framework/flags.js +1 -1
  157. package/lib/framework/help.js +1 -1
  158. package/lib/framework/index.js +1 -1
  159. package/lib/framework/output.js +1 -1
  160. package/lib/framework/response.js +1 -1
  161. package/lib/framework/runner-alias.js +1 -1
  162. package/lib/framework/runner.js +1 -1
  163. package/lib/framework/schema-export.js +1 -1
  164. package/lib/framework/types.js +1 -1
  165. package/lib/generated/build-info.js +1 -1
  166. package/lib/help.js +1 -1
  167. package/lib/skills/main.js +1 -1
  168. package/lib/skills/npx-skills-add.js +1 -1
  169. package/lib/telemetry/cli-command-trace.js +1 -1
  170. package/lib/telemetry/cli-help-trace.js +1 -1
  171. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  172. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  173. package/lib/telemetry/send-cli-trace-log.js +1 -1
  174. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  175. package/lib/utils/ai_config.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cdn-config.js +1 -1
  178. package/lib/utils/check-sdk-version.js +1 -1
  179. package/lib/utils/cli-version-check.js +1 -1
  180. package/lib/utils/cli-version-policy.js +1 -1
  181. package/lib/utils/config.js +1 -1
  182. package/lib/utils/copy-directory.js +1 -1
  183. package/lib/utils/entity-with-id.js +1 -1
  184. package/lib/utils/file-utils.js +1 -1
  185. package/lib/utils/guides-cdn.js +1 -1
  186. package/lib/utils/http-client.js +1 -1
  187. package/lib/utils/is-non-interactive.js +1 -1
  188. package/lib/utils/logger.js +1 -1
  189. package/lib/utils/params.js +1 -1
  190. package/lib/utils/platform.js +1 -1
  191. package/lib/utils/rules-cdn.js +1 -1
  192. package/lib/utils/sleep.js +1 -1
  193. package/lib/utils/template-replacer.js +1 -1
  194. package/lib/utils/version.js +1 -1
  195. package/lib/utils/with-active-cookie.js +1 -1
  196. package/lib/utils/write-cli-side-channel.js +1 -1
  197. package/package.json +1 -1
@@ -1 +1 @@
1
- const a0_0xbe3f9e=a0_0x3601;(function(_0x44426a,_0x365c1e){const _0x4e249f=a0_0x3601,_0x2ca857=_0x44426a();while(!![]){try{const _0x3dbf54=-parseInt(_0x4e249f(0xd1))/0x1+-parseInt(_0x4e249f(0xd5))/0x2*(-parseInt(_0x4e249f(0xe5))/0x3)+-parseInt(_0x4e249f(0xf1))/0x4+parseInt(_0x4e249f(0xe3))/0x5+-parseInt(_0x4e249f(0xd3))/0x6*(-parseInt(_0x4e249f(0xd7))/0x7)+parseInt(_0x4e249f(0xe2))/0x8+-parseInt(_0x4e249f(0xdf))/0x9*(parseInt(_0x4e249f(0xeb))/0xa);if(_0x3dbf54===_0x365c1e)break;else _0x2ca857['push'](_0x2ca857['shift']());}catch(_0x50d124){_0x2ca857['push'](_0x2ca857['shift']());}}}(a0_0x3c5f,0xe8958));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x4a4e6d from'node:path';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x4bfb40){const _0x490b98=a0_0x3601,{appCode:_0x5f0cb6,cookie:_0x1085c3,datasetCode:_0x2b8fe7,datasetId:_0x35e4cd,extraParams:_0x49317a}=_0x4bfb40,_0x31d6b8=getApiDomain()+_0x490b98(0xe1),_0x5073d0=await platformFetch(_0x31d6b8,{'method':_0x490b98(0xd2),'body':{'appCode':_0x5f0cb6,'datasetCode':_0x2b8fe7,'datasetId':_0x35e4cd,..._0x49317a||{}},'cookie':_0x1085c3,'label':'Fetch\x20doc\x20('+_0x2b8fe7+')'});if(!_0x5073d0||typeof _0x5073d0[_0x490b98(0xd8)]!=='string')throw new Error(_0x490b98(0xe8)+_0x2b8fe7+_0x490b98(0xea));return _0x5073d0[_0x490b98(0xd8)];}function delay(_0x5ed98a){return new Promise(_0x36817e=>setTimeout(_0x36817e,_0x5ed98a));}function a0_0x3c5f(){const _0x17d843=['生成文档失败:\x20','1103427WGFQtQ','datasetCode','/api/node-toolbox/api-doc-generator','12171096jvhiML','3988305xhfNav','length','1027788TGNeLW','./docs','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','Invalid\x20response\x20format\x20(','api-doc','):\x20missing\x20data.markdown\x20field','190LOSehH','生成文档成功:\x20','success','.md\x20(','log',']\x20Generating:\x20','7170584hGkqBs','734157cnmPdE','POST','30288IkmTqo','join','10nQSHEG','error','2464dOVRtc','markdown','message','.md','name','push','utf8'];a0_0x3c5f=function(){return _0x17d843;};return a0_0x3c5f();}function a0_0x3601(_0x713825,_0x21b230){_0x713825=_0x713825-0xd1;const _0x3c5f93=a0_0x3c5f();let _0x3601dd=_0x3c5f93[_0x713825];return _0x3601dd;}export async function generateDatasetDocs(_0x52e6da,_0x428452,_0x45d04a,_0x5ca5ab=a0_0xbe3f9e(0xe6),_0x9801fc,_0x203e0a){const _0x6dcd2a=a0_0xbe3f9e;mkdirSync(_0x5ca5ab,{'recursive':!![]});const _0x282001=[],_0x408d05=_0x52e6da[_0x6dcd2a(0xe4)];console[_0x6dcd2a(0xef)]('\x0a'+_0x408d05+_0x6dcd2a(0xe7));for(let _0x44a676=0x0;_0x44a676<_0x52e6da[_0x6dcd2a(0xe4)];_0x44a676++){const _0xac284e=_0x52e6da[_0x44a676],_0x17aa1b=_0x44a676+0x1,_0x58e733=_0xac284e['tableName'];try{console[_0x6dcd2a(0xef)]('['+_0x17aa1b+'/'+_0x408d05+_0x6dcd2a(0xf0)+_0x58e733+_0x6dcd2a(0xee)+_0xac284e['name']+')');if(_0x9801fc)_0x9801fc(_0x17aa1b,_0x408d05,_0x58e733);const _0x9ed2ed=await fetchDatasetDoc({'appCode':_0x428452,'cookie':_0x45d04a,'datasetCode':_0xac284e[_0x6dcd2a(0xe0)],'datasetId':_0xac284e['id'],'enableAI':![],'extraParams':_0x203e0a}),_0x1c551f=a0_0x4a4e6d[_0x6dcd2a(0xd4)](_0x5ca5ab,_0x58e733+_0x6dcd2a(0xda));writeFileSync(_0x1c551f,_0x9ed2ed,{'encoding':_0x6dcd2a(0xdd)}),console[_0x6dcd2a(0xef)]('✓\x20Generated:\x20'+_0x58e733+'.md'),logger[_0x6dcd2a(0xed)](_0x6dcd2a(0xe9),_0x6dcd2a(0xec)+_0x58e733,undefined,{'datasetCode':_0xac284e['datasetCode'],'datasetName':_0xac284e[_0x6dcd2a(0xdb)],'filePath':_0x1c551f,'progress':_0x17aa1b+'/'+_0x408d05}),_0x282001[_0x6dcd2a(0xdc)]({'datasetCode':_0xac284e[_0x6dcd2a(0xe0)],'datasetName':_0xac284e[_0x6dcd2a(0xdb)],'filePath':_0x1c551f,'success':!![]});if(_0x17aa1b<_0x408d05)await delay(0x1388);}catch(_0x3519c7){const _0x2bd89b=_0x3519c7 instanceof Error?_0x3519c7[_0x6dcd2a(0xd9)]:String(_0x3519c7);console['log']('✗\x20Failed:\x20'+_0x58e733+'.md\x20-\x20'+_0x2bd89b),logger[_0x6dcd2a(0xd6)]('api-doc',_0x6dcd2a(0xde)+_0xac284e[_0x6dcd2a(0xe0)],{'datasetCode':_0xac284e[_0x6dcd2a(0xe0)],'datasetName':_0xac284e[_0x6dcd2a(0xdb)],'error':_0x2bd89b,'progress':_0x17aa1b+'/'+_0x408d05}),_0x282001['push']({'datasetCode':_0xac284e[_0x6dcd2a(0xe0)],'datasetName':_0xac284e[_0x6dcd2a(0xdb)],'filePath':'','success':![],'error':_0x2bd89b}),_0x17aa1b<_0x408d05&&(console[_0x6dcd2a(0xef)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x282001;}
1
+ const a0_0x2564d6=a0_0x210e;(function(_0x39eb50,_0x736670){const _0x5ec004=a0_0x210e,_0x5b3ada=_0x39eb50();while(!![]){try{const _0x4403cd=-parseInt(_0x5ec004(0xde))/0x1*(parseInt(_0x5ec004(0xc7))/0x2)+-parseInt(_0x5ec004(0xe4))/0x3*(parseInt(_0x5ec004(0xe5))/0x4)+parseInt(_0x5ec004(0xce))/0x5*(parseInt(_0x5ec004(0xd7))/0x6)+parseInt(_0x5ec004(0xd1))/0x7+parseInt(_0x5ec004(0xd4))/0x8+-parseInt(_0x5ec004(0xcb))/0x9+parseInt(_0x5ec004(0xd0))/0xa;if(_0x4403cd===_0x736670)break;else _0x5b3ada['push'](_0x5b3ada['shift']());}catch(_0x3abd6a){_0x5b3ada['push'](_0x5b3ada['shift']());}}}(a0_0x220f,0x4eb89));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x4c1286 from'node:path';function a0_0x220f(){const _0x5e9046=['utf8','length','datasetCode','5421195cqHYEx','✗\x20Failed:\x20','push','1405dtpmOw','POST','6467580cWbrqb','1642130XVtNAx','name','tableName','1835840FrdFTQ','api-doc','join','9258xcSmvJ','error','.md','log','\x20datasets\x20to\x20generate\x20docs\x20for\x0a',']\x20Generating:\x20','markdown','1vWMHvs','string','):\x20missing\x20data.markdown\x20field','./docs','Invalid\x20response\x20format\x20(','生成文档成功:\x20','1050QrkylJ','5136Snstjc','生成文档失败:\x20','.md\x20-\x20','Fetch\x20doc\x20(','340430wyeMhN'];a0_0x220f=function(){return _0x5e9046;};return a0_0x220f();}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x3cad46){const _0x594c70=a0_0x210e,{appCode:_0x4fd53d,cookie:_0x289de0,datasetCode:_0x93f19e,datasetId:_0xaba173,extraParams:_0x48e20a}=_0x3cad46,_0x142182=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x3a6ef5=await platformFetch(_0x142182,{'method':_0x594c70(0xcf),'body':{'appCode':_0x4fd53d,'datasetCode':_0x93f19e,'datasetId':_0xaba173,..._0x48e20a||{}},'cookie':_0x289de0,'label':_0x594c70(0xe8)+_0x93f19e+')'});if(!_0x3a6ef5||typeof _0x3a6ef5['markdown']!==_0x594c70(0xdf))throw new Error(_0x594c70(0xe2)+_0x93f19e+_0x594c70(0xe0));return _0x3a6ef5[_0x594c70(0xdd)];}function delay(_0x187daf){return new Promise(_0x4167bd=>setTimeout(_0x4167bd,_0x187daf));}function a0_0x210e(_0x8cb5b6,_0x3472f1){_0x8cb5b6=_0x8cb5b6-0xc7;const _0x220fed=a0_0x220f();let _0x210e55=_0x220fed[_0x8cb5b6];return _0x210e55;}export async function generateDatasetDocs(_0x1e0ac8,_0x6555ab,_0x1d7d4c,_0x4fa603=a0_0x2564d6(0xe1),_0x12a89c,_0x4769d3){const _0x13b259=a0_0x2564d6;mkdirSync(_0x4fa603,{'recursive':!![]});const _0x151f43=[],_0x241b81=_0x1e0ac8[_0x13b259(0xc9)];console['log']('\x0a'+_0x241b81+_0x13b259(0xdb));for(let _0x1130ec=0x0;_0x1130ec<_0x1e0ac8[_0x13b259(0xc9)];_0x1130ec++){const _0x201858=_0x1e0ac8[_0x1130ec],_0x4012e9=_0x1130ec+0x1,_0x2d7299=_0x201858[_0x13b259(0xd3)];try{console[_0x13b259(0xda)]('['+_0x4012e9+'/'+_0x241b81+_0x13b259(0xdc)+_0x2d7299+'.md\x20('+_0x201858[_0x13b259(0xd2)]+')');if(_0x12a89c)_0x12a89c(_0x4012e9,_0x241b81,_0x2d7299);const _0x960a49=await fetchDatasetDoc({'appCode':_0x6555ab,'cookie':_0x1d7d4c,'datasetCode':_0x201858['datasetCode'],'datasetId':_0x201858['id'],'enableAI':![],'extraParams':_0x4769d3}),_0x1bd655=a0_0x4c1286[_0x13b259(0xd6)](_0x4fa603,_0x2d7299+_0x13b259(0xd9));writeFileSync(_0x1bd655,_0x960a49,{'encoding':_0x13b259(0xc8)}),console['log']('✓\x20Generated:\x20'+_0x2d7299+_0x13b259(0xd9)),logger['success'](_0x13b259(0xd5),_0x13b259(0xe3)+_0x2d7299,undefined,{'datasetCode':_0x201858[_0x13b259(0xca)],'datasetName':_0x201858[_0x13b259(0xd2)],'filePath':_0x1bd655,'progress':_0x4012e9+'/'+_0x241b81}),_0x151f43[_0x13b259(0xcd)]({'datasetCode':_0x201858['datasetCode'],'datasetName':_0x201858[_0x13b259(0xd2)],'filePath':_0x1bd655,'success':!![]});if(_0x4012e9<_0x241b81)await delay(0x1388);}catch(_0x117c4d){const _0x4c3c3f=_0x117c4d instanceof Error?_0x117c4d['message']:String(_0x117c4d);console[_0x13b259(0xda)](_0x13b259(0xcc)+_0x2d7299+_0x13b259(0xe7)+_0x4c3c3f),logger[_0x13b259(0xd8)]('api-doc',_0x13b259(0xe6)+_0x201858['datasetCode'],{'datasetCode':_0x201858[_0x13b259(0xca)],'datasetName':_0x201858[_0x13b259(0xd2)],'error':_0x4c3c3f,'progress':_0x4012e9+'/'+_0x241b81}),_0x151f43[_0x13b259(0xcd)]({'datasetCode':_0x201858[_0x13b259(0xca)],'datasetName':_0x201858[_0x13b259(0xd2)],'filePath':'','success':![],'error':_0x4c3c3f}),_0x4012e9<_0x241b81&&(console[_0x13b259(0xda)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x151f43;}
@@ -1 +1 @@
1
- (function(_0x203aca,_0x254490){const _0x163aa7=a1_0x423d,_0x45749f=_0x203aca();while(!![]){try{const _0x3748dd=parseInt(_0x163aa7(0x9e))/0x1*(-parseInt(_0x163aa7(0x90))/0x2)+parseInt(_0x163aa7(0x8c))/0x3*(-parseInt(_0x163aa7(0x9a))/0x4)+-parseInt(_0x163aa7(0x93))/0x5*(parseInt(_0x163aa7(0x91))/0x6)+-parseInt(_0x163aa7(0x97))/0x7+-parseInt(_0x163aa7(0x95))/0x8+-parseInt(_0x163aa7(0x8f))/0x9*(parseInt(_0x163aa7(0x8e))/0xa)+-parseInt(_0x163aa7(0x92))/0xb*(-parseInt(_0x163aa7(0x9d))/0xc);if(_0x3748dd===_0x254490)break;else _0x45749f['push'](_0x45749f['shift']());}catch(_0x4e39be){_0x45749f['push'](_0x45749f['shift']());}}}(a1_0x7155,0xdde90));function a1_0x7155(){const _0x51f3a3=['7514240ekqeOG','9cYBIcu','2dgMIAd','6XOeryu','73875230tgLYqe','8234385xPIALR','Fetch\x20datasets','12295808MMkykc','正在从服务器拉取模型列表...\x20(环境:\x20','10443251EKfFlu','map','replace','676adoPIW','name','/api/node-toolbox/dataset/model-list?appcode=','12WdmFha','258305XzyOgX','length','trim','fetch-model-list','2157azTEFR','info'];a1_0x7155=function(){return _0x51f3a3;};return a1_0x7155();}import{getApiDomain}from'../constant/domain.js';function a1_0x423d(_0x41d17d,_0x3612aa){_0x41d17d=_0x41d17d-0x89;const _0x7155ab=a1_0x7155();let _0x423d57=_0x7155ab[_0x41d17d];return _0x423d57;}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x1da302){const _0x16957e=a1_0x423d;return _0x1da302[_0x16957e(0x99)](/[\r\n]+/g,'\x20')[_0x16957e(0x8a)]();}function cleanDatasetName(_0xe2add5){const _0x241857=a1_0x423d;if(!_0xe2add5[_0x241857(0x9b)])return _0xe2add5;return{..._0xe2add5,'name':cleanNewlines(_0xe2add5[_0x241857(0x9b)])};}export async function fetchModelList(_0x19ec1f,_0x298ee6){const _0x509f67=a1_0x423d,_0x422396=getEnv(),_0x230732=getApiDomain()+_0x509f67(0x9c)+_0x19ec1f+'&otype=array';logger[_0x509f67(0x8d)](_0x509f67(0x8b),_0x509f67(0x96)+_0x422396+')',{'apiUrl':_0x230732});const _0x99e2e6=await platformFetch(_0x230732,{'cookie':_0x298ee6,'label':_0x509f67(0x94)}),_0x50c8c6=(_0x99e2e6['configArray']??[])[_0x509f67(0x98)](cleanDatasetName);return{'configArray':_0x50c8c6,'count':_0x50c8c6[_0x509f67(0x89)]};}
1
+ function a1_0x5d55(_0x5bd269,_0x48879a){_0x5bd269=_0x5bd269-0x8f;const _0x40d8ea=a1_0x40d8();let _0x5d55e0=_0x40d8ea[_0x5bd269];return _0x5d55e0;}(function(_0x554325,_0x5906db){const _0x2b08c0=a1_0x5d55,_0x69c6a3=_0x554325();while(!![]){try{const _0x14a717=-parseInt(_0x2b08c0(0x9f))/0x1+-parseInt(_0x2b08c0(0xa2))/0x2+parseInt(_0x2b08c0(0x9a))/0x3*(parseInt(_0x2b08c0(0xa3))/0x4)+-parseInt(_0x2b08c0(0x9c))/0x5*(parseInt(_0x2b08c0(0x95))/0x6)+parseInt(_0x2b08c0(0x93))/0x7*(-parseInt(_0x2b08c0(0x94))/0x8)+parseInt(_0x2b08c0(0x91))/0x9*(parseInt(_0x2b08c0(0x98))/0xa)+parseInt(_0x2b08c0(0xa1))/0xb;if(_0x14a717===_0x5906db)break;else _0x69c6a3['push'](_0x69c6a3['shift']());}catch(_0x5db6b8){_0x69c6a3['push'](_0x69c6a3['shift']());}}}(a1_0x40d8,0xdb30a));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x40d8(){const _0xbe3299=['104pvDqpC','5198826FgBHje','map','fetch-model-list','10QwDfht','length','6QSKDNE','&otype=array','5OjaLcK','/api/node-toolbox/dataset/model-list?appcode=','trim','1756131jeODlz','name','49054401HAmlYe','2611324ixtFXo','827512BChmvp','info','正在从服务器拉取模型列表...\x20(环境:\x20','7031547wzdhsK','Fetch\x20datasets','446096JEsjIT'];a1_0x40d8=function(){return _0xbe3299;};return a1_0x40d8();}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x90268e){const _0x70d110=a1_0x5d55;return _0x90268e['replace'](/[\r\n]+/g,'\x20')[_0x70d110(0x9e)]();}function cleanDatasetName(_0x1bb8e3){const _0x9c226e=a1_0x5d55;if(!_0x1bb8e3[_0x9c226e(0xa0)])return _0x1bb8e3;return{..._0x1bb8e3,'name':cleanNewlines(_0x1bb8e3['name'])};}export async function fetchModelList(_0x554f17,_0x5491f2){const _0x2706f4=a1_0x5d55,_0x342993=getEnv(),_0x2865bf=getApiDomain()+_0x2706f4(0x9d)+_0x554f17+_0x2706f4(0x9b);logger[_0x2706f4(0x8f)](_0x2706f4(0x97),_0x2706f4(0x90)+_0x342993+')',{'apiUrl':_0x2865bf});const _0x439092=await platformFetch(_0x2865bf,{'cookie':_0x5491f2,'label':_0x2706f4(0x92)}),_0x4d455a=(_0x439092['configArray']??[])[_0x2706f4(0x96)](cleanDatasetName);return{'configArray':_0x4d455a,'count':_0x4d455a[_0x2706f4(0x99)]};}
@@ -1 +1 @@
1
- (function(_0xdea72f,_0x4abee4){const _0x194f07=a2_0x48b6,_0x4d242f=_0xdea72f();while(!![]){try{const _0xcf1465=-parseInt(_0x194f07(0xfa))/0x1+parseInt(_0x194f07(0xf9))/0x2+parseInt(_0x194f07(0xea))/0x3*(parseInt(_0x194f07(0xef))/0x4)+parseInt(_0x194f07(0xe8))/0x5*(-parseInt(_0x194f07(0xde))/0x6)+-parseInt(_0x194f07(0xee))/0x7+parseInt(_0x194f07(0xd5))/0x8+-parseInt(_0x194f07(0xe6))/0x9*(-parseInt(_0x194f07(0xf5))/0xa);if(_0xcf1465===_0x4abee4)break;else _0x4d242f['push'](_0x4d242f['shift']());}catch(_0x44e307){_0x4d242f['push'](_0x4d242f['shift']());}}}(a2_0x55e8,0xd877c));import a2_0x3832f0 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';function a2_0x48b6(_0x4f646c,_0x3d6dd9){_0x4f646c=_0x4f646c-0xd4;const _0x55e8b9=a2_0x55e8();let _0x48b64c=_0x55e8b9[_0x4f646c];return _0x48b64c;}import a2_0x4e6cfd from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';function a2_0x55e8(){const _0x55eb0f=['\x22\x20}','success','length','5118wgKDgm','client.ts.tpl','\x20config\x20set\x20app\x20<value>`','dirname','alias','format','LOVRABET','api','5697LAMfCi','forEach','6410yLtism','-api','209241PtNTSf','templates/generate-api','client','api.ts.tpl','8221528mcJihy','72DsnKcG','key',',\x20env:\x20\x22','datasetCode','CONFIG_NAMES.DEFAULT','.ts','36460GzVHbW','typescript','join','{\x20apiConfigName:\x20\x22','797950WXDqwQ','1353781ygphHi','tableName','utf8','4369152wlKvWK','replaceApiContent','push','resolve','replace','init-api'];a2_0x55e8=function(){return _0x55eb0f;};return a2_0x55e8();}import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0xd8c938,_0x500b87,_0x59055a,_0xbe1af8,_0x468352,_0xb3477a,_0x1bfc23){const _0x27ff36=a2_0x48b6;if(!_0x59055a)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+_0x27ff36(0xe0));const _0x2525f1=_0xbe1af8&&!_0x1bfc23,_0x558907=_0x1bfc23||_0x59055a,_0x28f6ed=_0x2525f1?_0x27ff36(0xf3):'\x22'+_0x558907+'\x22',_0xb2438b=!isProduction(_0x468352);let _0x386d8b;if(_0x2525f1)_0xb2438b?_0x386d8b='{\x20apiConfigName:\x20'+_0x28f6ed+_0x27ff36(0xf1)+_0x468352+_0x27ff36(0xdb):_0x386d8b='';else{const _0x2dc707=_0xb2438b?_0x27ff36(0xf1)+_0x468352+'\x22':'';_0x386d8b=_0x27ff36(0xf8)+_0x558907+'\x22'+_0x2dc707+'\x20}';}const _0x2684cd=_0x500b87?_0x500b87+_0x27ff36(0xe9):_0x27ff36(0xe5),_0x5132e9=_0x500b87?_0x500b87+'-client':_0x27ff36(0xec),_0x8dc592=_0x500b87&&!/^app-[a-f0-9]+$/i['test'](_0x500b87)?_0x500b87[_0x27ff36(0xd9)](/-/g,'_')['toUpperCase']():_0x27ff36(0xe4),_0x5c3048=[];_0xd8c938[_0x27ff36(0xe7)](_0x4d95e5=>{const _0x11f197=_0x27ff36;_0x5c3048[_0x11f197(0xd7)]({'datasetCode':_0x4d95e5[_0x11f197(0xf2)],'tableName':_0x4d95e5[_0x11f197(0xfb)],'name':_0x4d95e5['name']||'','alias':_0x4d95e5[_0x11f197(0xe2)]||_0x4d95e5[_0x11f197(0xf0)]});});const _0x2804c3=fileURLToPath(import.meta.url),_0x54fc83=a2_0x4e6cfd[_0x27ff36(0xd8)](a2_0x4e6cfd[_0x27ff36(0xe1)](_0x2804c3),'../..'),_0xfee27c=a2_0x4e6cfd[_0x27ff36(0xf7)](_0x54fc83,_0x27ff36(0xeb)),_0x5cc045=a2_0x4e6cfd[_0x27ff36(0xf7)](_0xfee27c,_0x27ff36(0xed)),_0x2d3067=a2_0x4e6cfd['join'](_0xfee27c,_0x27ff36(0xdf)),_0x495d91=_0xb3477a;mkdirSync(_0x495d91,{'recursive':!![]});const _0x367692=_0x5c3048[0x0]?.['alias'],_0x565eb6=readFileSync(_0x5cc045,'utf8'),_0x2f06b4=TemplateReplacer[_0x27ff36(0xd6)](_0x565eb6,_0x59055a,_0x5c3048,_0x367692,_0x2684cd,_0x28f6ed,undefined,_0x8dc592),_0x171d08=await a2_0x3832f0[_0x27ff36(0xe3)](_0x2f06b4,{'parser':_0x27ff36(0xf6)}),_0x3329de=a2_0x4e6cfd[_0x27ff36(0xf7)](_0x495d91,_0x2684cd+_0x27ff36(0xf4));writeFileSync(_0x3329de,_0x171d08,{'encoding':_0x27ff36(0xd4)});const _0x56f33c=readFileSync(_0x2d3067,_0x27ff36(0xd4)),_0x4d4e0b=TemplateReplacer['replaceApiContent'](_0x56f33c,_0x59055a,_0x5c3048,_0x367692,_0x2684cd,_0x28f6ed,_0x386d8b,_0x8dc592),_0x91eb50=await a2_0x3832f0['format'](_0x4d4e0b,{'parser':_0x27ff36(0xf6)}),_0x1fe86e=a2_0x4e6cfd[_0x27ff36(0xf7)](_0x495d91,_0x5132e9+_0x27ff36(0xf4));writeFileSync(_0x1fe86e,_0x91eb50,{'encoding':_0x27ff36(0xd4)});const _0x472842=_0x5c3048[_0x27ff36(0xdd)];return logger[_0x27ff36(0xdc)](_0x27ff36(0xda),'API\x20文件生成成功!',undefined,{'apiFile':_0x3329de,'clientFile':_0x1fe86e,'modelCount':_0x472842,'configName':_0x28f6ed}),{'modelCount':_0x472842,'apiFilePath':_0x3329de,'clientFilePath':_0x1fe86e,'configName':_0x28f6ed};}
1
+ (function(_0x560fdc,_0x110797){const _0xb7937c=a2_0x2b11,_0x7c1b6d=_0x560fdc();while(!![]){try{const _0x92720a=parseInt(_0xb7937c(0x146))/0x1*(parseInt(_0xb7937c(0x147))/0x2)+parseInt(_0xb7937c(0x12e))/0x3+parseInt(_0xb7937c(0x136))/0x4+parseInt(_0xb7937c(0x129))/0x5+parseInt(_0xb7937c(0x140))/0x6*(parseInt(_0xb7937c(0x133))/0x7)+-parseInt(_0xb7937c(0x13d))/0x8+-parseInt(_0xb7937c(0x131))/0x9;if(_0x92720a===_0x110797)break;else _0x7c1b6d['push'](_0x7c1b6d['shift']());}catch(_0x3d58a){_0x7c1b6d['push'](_0x7c1b6d['shift']());}}}(a2_0x3ed2,0xd4951));import a2_0x5609bb from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x2485f3 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a2_0x3ed2(){const _0x11f3bc=['tableName','10370240pwdfmr','api','test','822sLCVFs','join','forEach','success','api.ts.tpl','-api','3AhAPMI','312316LfFnNM','\x22\x20}','key','CONFIG_NAMES.DEFAULT','LOVRABET','{\x20apiConfigName:\x20','API\x20文件生成成功!','templates/generate-api','{\x20apiConfigName:\x20\x22','Please\x20configure\x20app\x20code\x20first\x20via\x20`','alias','.ts','toUpperCase','250590dOXabV','typescript','dirname','resolve','name','4728075JfZvuV','client.ts.tpl','init-api','13015881NCKhIK','length','12397ExXkIG','replaceApiContent',',\x20env:\x20\x22','5103928dSGidx','client','../..','\x20config\x20set\x20app\x20<value>`','format','utf8'];a2_0x3ed2=function(){return _0x11f3bc;};return a2_0x3ed2();}import{logger}from'../utils/logger.js';function a2_0x2b11(_0x1e8444,_0x595da8){_0x1e8444=_0x1e8444-0x129;const _0x3ed245=a2_0x3ed2();let _0x2b1147=_0x3ed245[_0x1e8444];return _0x2b1147;}import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x42a306,_0x20f619,_0x7c2427,_0x5bb619,_0x62305a,_0x2bf6ec,_0x183ab4){const _0x192991=a2_0x2b11;if(!_0x7c2427)throw new Error(_0x192991(0x150)+CLI_BIN_NAME+_0x192991(0x139));const _0x10da05=_0x5bb619&&!_0x183ab4,_0xf21352=_0x183ab4||_0x7c2427,_0x5af2dd=_0x10da05?_0x192991(0x14a):'\x22'+_0xf21352+'\x22',_0x41d639=!isProduction(_0x62305a);let _0x1fced7;if(_0x10da05)_0x41d639?_0x1fced7=_0x192991(0x14c)+_0x5af2dd+_0x192991(0x135)+_0x62305a+_0x192991(0x148):_0x1fced7='';else{const _0x43e4a8=_0x41d639?_0x192991(0x135)+_0x62305a+'\x22':'';_0x1fced7=_0x192991(0x14f)+_0xf21352+'\x22'+_0x43e4a8+'\x20}';}const _0x325f6f=_0x20f619?_0x20f619+_0x192991(0x145):_0x192991(0x13e),_0x3cd29a=_0x20f619?_0x20f619+'-client':_0x192991(0x137),_0x25e3e0=_0x20f619&&!/^app-[a-f0-9]+$/i[_0x192991(0x13f)](_0x20f619)?_0x20f619['replace'](/-/g,'_')[_0x192991(0x153)]():_0x192991(0x14b),_0x507b56=[];_0x42a306[_0x192991(0x142)](_0xb727a3=>{const _0x53c433=_0x192991;_0x507b56['push']({'datasetCode':_0xb727a3['datasetCode'],'tableName':_0xb727a3[_0x53c433(0x13c)],'name':_0xb727a3[_0x53c433(0x12d)]||'','alias':_0xb727a3['alias']||_0xb727a3[_0x53c433(0x149)]});});const _0x22acd4=fileURLToPath(import.meta.url),_0x45fc2a=a2_0x2485f3[_0x192991(0x12c)](a2_0x2485f3[_0x192991(0x12b)](_0x22acd4),_0x192991(0x138)),_0x3f8b51=a2_0x2485f3[_0x192991(0x141)](_0x45fc2a,_0x192991(0x14e)),_0x9261db=a2_0x2485f3['join'](_0x3f8b51,_0x192991(0x144)),_0x318dfe=a2_0x2485f3[_0x192991(0x141)](_0x3f8b51,_0x192991(0x12f)),_0x351c6e=_0x2bf6ec;mkdirSync(_0x351c6e,{'recursive':!![]});const _0x57e401=_0x507b56[0x0]?.[_0x192991(0x151)],_0x1f6563=readFileSync(_0x9261db,_0x192991(0x13b)),_0x4e3a6c=TemplateReplacer[_0x192991(0x134)](_0x1f6563,_0x7c2427,_0x507b56,_0x57e401,_0x325f6f,_0x5af2dd,undefined,_0x25e3e0),_0x1bd181=await a2_0x5609bb[_0x192991(0x13a)](_0x4e3a6c,{'parser':_0x192991(0x12a)}),_0xf52b05=a2_0x2485f3['join'](_0x351c6e,_0x325f6f+'.ts');writeFileSync(_0xf52b05,_0x1bd181,{'encoding':_0x192991(0x13b)});const _0x16e31c=readFileSync(_0x318dfe,_0x192991(0x13b)),_0x470bd8=TemplateReplacer[_0x192991(0x134)](_0x16e31c,_0x7c2427,_0x507b56,_0x57e401,_0x325f6f,_0x5af2dd,_0x1fced7,_0x25e3e0),_0x240019=await a2_0x5609bb[_0x192991(0x13a)](_0x470bd8,{'parser':_0x192991(0x12a)}),_0x2a0055=a2_0x2485f3['join'](_0x351c6e,_0x3cd29a+_0x192991(0x152));writeFileSync(_0x2a0055,_0x240019,{'encoding':_0x192991(0x13b)});const _0x560d50=_0x507b56[_0x192991(0x132)];return logger[_0x192991(0x143)](_0x192991(0x130),_0x192991(0x14d),undefined,{'apiFile':_0xf52b05,'clientFile':_0x2a0055,'modelCount':_0x560d50,'configName':_0x5af2dd}),{'modelCount':_0x560d50,'apiFilePath':_0xf52b05,'clientFilePath':_0x2a0055,'configName':_0x5af2dd};}
@@ -1 +1 @@
1
- (function(_0x443625,_0x5eac41){const _0xaf648d=a3_0x5d9c,_0x209173=_0x443625();while(!![]){try{const _0x31aa86=parseInt(_0xaf648d(0x1a3))/0x1+parseInt(_0xaf648d(0x195))/0x2*(-parseInt(_0xaf648d(0x19b))/0x3)+-parseInt(_0xaf648d(0x196))/0x4*(-parseInt(_0xaf648d(0x19e))/0x5)+-parseInt(_0xaf648d(0x19a))/0x6+parseInt(_0xaf648d(0x1a6))/0x7*(parseInt(_0xaf648d(0x1a8))/0x8)+parseInt(_0xaf648d(0x1a9))/0x9+parseInt(_0xaf648d(0x198))/0xa*(parseInt(_0xaf648d(0x19f))/0xb);if(_0x31aa86===_0x5eac41)break;else _0x209173['push'](_0x209173['shift']());}catch(_0x2fc176){_0x209173['push'](_0x209173['shift']());}}}(a3_0x4a25,0x91789));import{getIsSessionValid}from'../auth/is-session-valid.js';function a3_0x5d9c(_0xcbcebc,_0x29659c){_0xcbcebc=_0xcbcebc-0x195;const _0x4a2579=a3_0x4a25();let _0x5d9c8c=_0x4a2579[_0xcbcebc];return _0x5d9c8c;}import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a3_0x4a25(){const _0x4ad2b2=['Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','37508eKPMdB','36AcpdBz','*\x20Login\x20successful!','20PQdDZk','autoYes','1439346oMxSdg','99ubxLZX','start','validation','162605fAgLpW','2558391QqHZls','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','nonInteractive','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','594442uGriKA','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','log','77yLcqLq','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','50520VHFYsh','295776bEGkNW','Run\x20`','stop'];a3_0x4a25=function(){return _0x4ad2b2;};return a3_0x4a25();}import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a3_0x318895 from'ora';export async function runAuthServer(_0x5d9bfa){const _0x54ffff=a3_0x5d9c,_0x24c207=await getIsSessionValid();if(_0x24c207){console[_0x54ffff(0x1a5)](_0x54ffff(0x1a0));return;}if(_0x5d9bfa?.[_0x54ffff(0x1a1)]&&!_0x5d9bfa[_0x54ffff(0x199)])throw CliErrors[_0x54ffff(0x19d)](_0x54ffff(0x1a4),_0x54ffff(0x1aa)+CLI_BIN_NAME+_0x54ffff(0x1a2));const _0x387bcf=_0x5d9bfa?.[_0x54ffff(0x199)]?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x387bcf)return;if(_0x5d9bfa?.[_0x54ffff(0x1a1)]){console[_0x54ffff(0x1a5)](_0x54ffff(0x1a7));const _0x1695d1=await authServer({'silent':![],'openBrowser':![]});_0x1695d1?console[_0x54ffff(0x1a5)](_0x54ffff(0x197)):console[_0x54ffff(0x1a5)]('!\x20Login\x20failed.');return;}const _0x16482d=a3_0x318895(_0x54ffff(0x1ac))[_0x54ffff(0x19c)](),_0x527370=await authServer({'silent':!![],'openBrowser':!![]});_0x16482d[_0x54ffff(0x1ab)](),_0x527370?console[_0x54ffff(0x1a5)](_0x54ffff(0x197)):console[_0x54ffff(0x1a5)]('!\x20Login\x20failed.');}
1
+ function a3_0x1bd6(_0x44f9e7,_0x153cce){_0x44f9e7=_0x44f9e7-0x141;const _0x4ecbe8=a3_0x4ecb();let _0x1bd69d=_0x4ecbe8[_0x44f9e7];return _0x1bd69d;}(function(_0x5a56d8,_0x1034ae){const _0x49d878=a3_0x1bd6,_0x323eac=_0x5a56d8();while(!![]){try{const _0x557c40=parseInt(_0x49d878(0x14b))/0x1+parseInt(_0x49d878(0x154))/0x2*(parseInt(_0x49d878(0x153))/0x3)+parseInt(_0x49d878(0x147))/0x4+parseInt(_0x49d878(0x150))/0x5*(-parseInt(_0x49d878(0x152))/0x6)+-parseInt(_0x49d878(0x155))/0x7*(parseInt(_0x49d878(0x148))/0x8)+parseInt(_0x49d878(0x156))/0x9+parseInt(_0x49d878(0x14f))/0xa*(-parseInt(_0x49d878(0x14a))/0xb);if(_0x557c40===_0x1034ae)break;else _0x323eac['push'](_0x323eac['shift']());}catch(_0x1f20ae){_0x323eac['push'](_0x323eac['shift']());}}}(a3_0x4ecb,0x3d075));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a3_0x44ed9b from'ora';export async function runAuthServer(_0x2de808){const _0x169a3f=a3_0x1bd6,_0x294b08=await getIsSessionValid();if(_0x294b08){console[_0x169a3f(0x142)](_0x169a3f(0x14e));return;}if(_0x2de808?.['nonInteractive']&&!_0x2de808[_0x169a3f(0x145)])throw CliErrors[_0x169a3f(0x146)]('Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.',_0x169a3f(0x143)+CLI_BIN_NAME+_0x169a3f(0x144));const _0x2bc211=_0x2de808?.[_0x169a3f(0x145)]?!![]:await confirm({'message':_0x169a3f(0x14d),'default':!![]});if(!_0x2bc211)return;if(_0x2de808?.['nonInteractive']){console['log']('Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.');const _0xd9b3e=await authServer({'silent':![],'openBrowser':![]});_0xd9b3e?console[_0x169a3f(0x142)]('*\x20Login\x20successful!'):console[_0x169a3f(0x142)](_0x169a3f(0x141));return;}const _0x27f94e=a3_0x44ed9b(_0x169a3f(0x151))[_0x169a3f(0x149)](),_0x2e15ea=await authServer({'silent':!![],'openBrowser':!![]});_0x27f94e['stop'](),_0x2e15ea?console[_0x169a3f(0x142)](_0x169a3f(0x14c)):console[_0x169a3f(0x142)](_0x169a3f(0x141));}function a3_0x4ecb(){const _0x206420=['131896psqgyF','241472RbeNXy','2885580QOCMcP','!\x20Login\x20failed.','log','Run\x20`','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','autoYes','validation','280504SfPrTt','48TrWHMB','start','6688eXRdyx','434586WXheNt','*\x20Login\x20successful!','No\x20valid\x20session.\x20Login\x20now?','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','4950rTPrQf','210505SoGKBb','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','66yApHmr','18blKEoO'];a3_0x4ecb=function(){return _0x206420;};return a3_0x4ecb();}
@@ -1 +1 @@
1
- const a4_0x32b95a=a4_0x1beb;(function(_0x34e643,_0x58e882){const _0x5a5894=a4_0x1beb,_0xa7489=_0x34e643();while(!![]){try{const _0x47166f=-parseInt(_0x5a5894(0xec))/0x1*(-parseInt(_0x5a5894(0xf1))/0x2)+-parseInt(_0x5a5894(0xdb))/0x3+parseInt(_0x5a5894(0xda))/0x4*(-parseInt(_0x5a5894(0xd0))/0x5)+-parseInt(_0x5a5894(0xf0))/0x6+-parseInt(_0x5a5894(0xd8))/0x7*(parseInt(_0x5a5894(0xd4))/0x8)+-parseInt(_0x5a5894(0xe8))/0x9*(parseInt(_0x5a5894(0xdc))/0xa)+parseInt(_0x5a5894(0xe9))/0xb*(parseInt(_0x5a5894(0xdd))/0xc);if(_0x47166f===_0x58e882)break;else _0xa7489['push'](_0xa7489['shift']());}catch(_0x329ac2){_0xa7489['push'](_0xa7489['shift']());}}}(a4_0xd9fa,0xd6f50));import{writeFileSync}from'node:fs';import a4_0x580d6d 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';export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export async function authServer(_0x3ca1a8){const _0x82134d=a4_0x1beb,_0x209b41=_0x3ca1a8?.[_0x82134d(0xd1)]||![],_0x9ba1c7=_0x3ca1a8?.[_0x82134d(0xe3)]??!![],_0x31e847=_0x3ca1a8?.[_0x82134d(0xce)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x197eed=await(await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json'))[_0x82134d(0xde)]();return new Promise(async(_0x28610b,_0x2d2647)=>{const _0x17e118=_0x82134d;let _0x3fe9a0=0x0,_0x59a55d=![],_0x590ebc;const _0x1c0ad0=a4_0x580d6d[_0x17e118(0xf7)](_0x197eed,async(_0x9b3b65,_0x154dad)=>{const _0x202ddd=_0x17e118,_0x4b9bac=getUserDomain(),_0x42b278=_0x9b3b65['headers']['cookie']||'',_0x40b30a=await fetch(_0x4b9bac+'/api/auth/get-session',{'headers':{'cookie':_0x42b278}})['then'](_0x3abd15=>_0x3abd15['json']()),_0x27989c=_0x40b30a&&_0x40b30a['session']&&_0x40b30a[_0x202ddd(0xeb)];if(_0x27989c){writeFileSync(cookieFile,_0x42b278,_0x202ddd(0xf5));const _0x2e95aa=buildLoginSuccessHtml();_0x154dad[_0x202ddd(0xf4)](0xc8,{'Content-Type':_0x202ddd(0xef)}),_0x154dad[_0x202ddd(0xe7)](_0x2e95aa),_0x304465(!![]);}else{const _0x3aaebd=''+encodeURIComponent(_0x202ddd(0xd7)+_0x3fe9a0);_0x154dad[_0x202ddd(0xf4)](0x12e,{'location':_0x4b9bac+'/sign-in?redirect='+_0x3aaebd}),_0x154dad[_0x202ddd(0xe7)]();return;}});function _0x304465(_0x3b09ac){if(_0x59a55d)return;_0x59a55d=!![],_0x590ebc&&clearTimeout(_0x590ebc),_0x1c0ad0['close'](),_0x28610b(_0x3b09ac);}_0x1c0ad0[_0x17e118(0xe6)](0x0,_0x17e118(0xee),()=>{const _0x35ddae=_0x17e118,_0x109357=_0x1c0ad0[_0x35ddae(0xdf)]();_0x3fe9a0=typeof _0x109357==='object'&&_0x109357?_0x109357[_0x35ddae(0xe5)]:Number(_0x109357);const _0x30070c=_0x35ddae(0xd7)+_0x3fe9a0;_0x590ebc=setTimeout(()=>{const _0x149e93=_0x35ddae;!_0x209b41&&console[_0x149e93(0xe2)](_0x149e93(0xd6)),_0x304465(![]);},_0x31e847);!_0x209b41&&(console['log'](_0x35ddae(0xd5)),console[_0x35ddae(0xe2)](_0x35ddae(0xf6),_0x30070c),_0x9ba1c7?(console[_0x35ddae(0xe2)]('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x35ddae(0xe2)](''),console['log'](_0x35ddae(0xe1))):console[_0x35ddae(0xe2)]('💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.'),console['log'](''));if(!_0x9ba1c7)return;openInBrowser(_0x30070c)[_0x35ddae(0xd3)](_0x34da16=>{const _0x445bd8=_0x35ddae;!_0x209b41&&(_0x34da16?console[_0x445bd8(0xe2)](_0x445bd8(0xcf)):(console[_0x445bd8(0xe2)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x445bd8(0xe2)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x30070c)),console['log'](''));})['catch'](()=>{const _0x32cfdd=_0x35ddae;!_0x209b41&&(console[_0x32cfdd(0xe2)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x32cfdd(0xe2)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x30070c),console[_0x32cfdd(0xe2)](''));});}),_0x1c0ad0['on'](_0x17e118(0xed),_0xa11985=>{const _0x2fcbd0=_0x17e118;if(_0x59a55d)return;_0x59a55d=!![],_0x590ebc&&clearTimeout(_0x590ebc),!_0x209b41&&console[_0x2fcbd0(0xed)]('Auth\x20server\x20error:',_0xa11985),_0x1c0ad0[_0x2fcbd0(0xf2)](),_0x2d2647(_0xa11985);});});}function a4_0xd9fa(){const _0x450b2c=['log','openBrowser','open\x20\x22','port','listen','end','27poTebC','510884vFqMgC','darwin','user','1621754RGXwZf','error','127.0.0.1','text/html;\x20charset=utf-8','7100172vSOUmM','2JMZgLF','close','isAuth','writeHead','utf-8','📍\x20Login\x20URL:','createServer','timeoutMs','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','5538275GUHwST','silent','platform','then','1944752hUGYNf','🔐\x20Starting\x20login\x20service...','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','https://dev.lovrabet.com:','28XStmwY','xdg-open\x20\x22','4FydlwO','5078670nXlDix','4372810eKScjg','1428rUtWUM','json','address','win32','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.'];a4_0xd9fa=function(){return _0x450b2c;};return a4_0xd9fa();}function a4_0x1beb(_0x16ae0b,_0x465aca){_0x16ae0b=_0x16ae0b-0xce;const _0xd9faac=a4_0xd9fa();let _0x1bebf1=_0xd9faac[_0x16ae0b];return _0x1bebf1;}function openInBrowser(_0xfc4738){return new Promise(_0x40be1d=>{const _0x5a3c4c=a4_0x1beb,_0x5ef2ed=process[_0x5a3c4c(0xd2)];let _0x716323;if(_0x5ef2ed===_0x5a3c4c(0xe0))_0x716323='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0xfc4738+'\x22';else _0x5ef2ed===_0x5a3c4c(0xea)?_0x716323=_0x5a3c4c(0xe4)+_0xfc4738+'\x22':_0x716323=_0x5a3c4c(0xd9)+_0xfc4738+'\x22';exec(_0x716323,_0x79feb7=>{_0x79feb7?_0x40be1d(![]):_0x40be1d(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log'](a4_0x32b95a(0xf3),isAuth);}
1
+ const a4_0x5b2a99=a4_0x5f07;(function(_0x27a43a,_0x69a993){const _0x64a382=a4_0x5f07,_0x13ae36=_0x27a43a();while(!![]){try{const _0x82e052=-parseInt(_0x64a382(0x1a2))/0x1+parseInt(_0x64a382(0x1b4))/0x2+parseInt(_0x64a382(0x1b2))/0x3*(-parseInt(_0x64a382(0x19c))/0x4)+parseInt(_0x64a382(0x1a9))/0x5*(parseInt(_0x64a382(0x1c3))/0x6)+-parseInt(_0x64a382(0x1be))/0x7+parseInt(_0x64a382(0x1c0))/0x8*(parseInt(_0x64a382(0x1c4))/0x9)+-parseInt(_0x64a382(0x1a1))/0xa*(parseInt(_0x64a382(0x1c5))/0xb);if(_0x82e052===_0x69a993)break;else _0x13ae36['push'](_0x13ae36['shift']());}catch(_0x5b8d82){_0x13ae36['push'](_0x13ae36['shift']());}}}(a4_0x1574,0xe4fe3));import{writeFileSync}from'node:fs';import a4_0x4770fb from'node:https';import{getUserDomain}from'../constant/domain.js';function a4_0x1574(){const _0x2b8da8=['✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','error','listen','port','9868502AuMOBF','close','2036152XKmHdy','cmd\x20/c\x20start\x20\x22\x22\x20\x22','address','30eVIfpP','63VlqZgR','2387buAFtP','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','text/html;\x20charset=utf-8','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','timeoutMs','Auth\x20server\x20error:','then','12BcrNqm','win32','createServer','open\x20\x22','writeHead','2270oHAugi','407543bhPnQM','headers','isAuth','openBrowser','https://g.yuntooai.com/cert/lovrabet-dev.json','end','🔐\x20Starting\x20login\x20service...','838085LiowKf','object','📍\x20Login\x20URL:','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','json','cookie','/api/auth/get-session','/sign-in?redirect=','log','990882WnMrqW','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','2351414iBKgbA','catch','platform','darwin','session','silent'];a4_0x1574=function(){return _0x2b8da8;};return a4_0x1574();}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 a4_0x5f07(_0x351e9b,_0x104a07){_0x351e9b=_0x351e9b-0x19a;const _0x1574f2=a4_0x1574();let _0x5f07d6=_0x1574f2[_0x351e9b];return _0x5f07d6;}export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export async function authServer(_0xb839be){const _0x5dc83d=a4_0x5f07,_0x131f1f=_0xb839be?.[_0x5dc83d(0x1b9)]||![],_0x538426=_0xb839be?.[_0x5dc83d(0x1a5)]??!![],_0x500e8d=_0xb839be?.[_0x5dc83d(0x1c9)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x41affe=await(await fetch(_0x5dc83d(0x1a6)))[_0x5dc83d(0x1ad)]();return new Promise(async(_0x96d66f,_0x5c15e0)=>{const _0x5290ec=_0x5dc83d;let _0x162dd8=0x0,_0x272845=![],_0x1b4e18;const _0x2a1f9b=a4_0x4770fb[_0x5290ec(0x19e)](_0x41affe,async(_0x31cebb,_0x54c954)=>{const _0x26b7cf=_0x5290ec,_0x264445=getUserDomain(),_0x3e52dd=_0x31cebb[_0x26b7cf(0x1a3)][_0x26b7cf(0x1ae)]||'',_0x3b2afe=await fetch(_0x264445+_0x26b7cf(0x1af),{'headers':{'cookie':_0x3e52dd}})[_0x26b7cf(0x19b)](_0x4553fa=>_0x4553fa['json']()),_0x23fd0e=_0x3b2afe&&_0x3b2afe[_0x26b7cf(0x1b8)]&&_0x3b2afe['user'];if(_0x23fd0e){writeFileSync(cookieFile,_0x3e52dd,'utf-8');const _0x31564e=buildLoginSuccessHtml();_0x54c954[_0x26b7cf(0x1a0)](0xc8,{'Content-Type':_0x26b7cf(0x1c7)}),_0x54c954[_0x26b7cf(0x1a7)](_0x31564e),_0x15cfd4(!![]);}else{const _0x5ca775=''+encodeURIComponent('https://dev.lovrabet.com:'+_0x162dd8);_0x54c954[_0x26b7cf(0x1a0)](0x12e,{'location':_0x264445+_0x26b7cf(0x1b0)+_0x5ca775}),_0x54c954[_0x26b7cf(0x1a7)]();return;}});function _0x15cfd4(_0x2df3d5){const _0x22f5f0=_0x5290ec;if(_0x272845)return;_0x272845=!![],_0x1b4e18&&clearTimeout(_0x1b4e18),_0x2a1f9b[_0x22f5f0(0x1bf)](),_0x96d66f(_0x2df3d5);}_0x2a1f9b[_0x5290ec(0x1bc)](0x0,'127.0.0.1',()=>{const _0x9967bb=_0x5290ec,_0x1a53f4=_0x2a1f9b[_0x9967bb(0x1c2)]();_0x162dd8=typeof _0x1a53f4===_0x9967bb(0x1aa)&&_0x1a53f4?_0x1a53f4[_0x9967bb(0x1bd)]:Number(_0x1a53f4);const _0x34b17e='https://dev.lovrabet.com:'+_0x162dd8;_0x1b4e18=setTimeout(()=>{const _0x524d27=_0x9967bb;!_0x131f1f&&console[_0x524d27(0x1b1)](_0x524d27(0x1ac)),_0x15cfd4(![]);},_0x500e8d);!_0x131f1f&&(console[_0x9967bb(0x1b1)](_0x9967bb(0x1a8)),console['log'](_0x9967bb(0x1ab),_0x34b17e),_0x538426?(console['log']('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x9967bb(0x1b1)](''),console[_0x9967bb(0x1b1)]('💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.')):console[_0x9967bb(0x1b1)](_0x9967bb(0x1c8)),console[_0x9967bb(0x1b1)](''));if(!_0x538426)return;openInBrowser(_0x34b17e)[_0x9967bb(0x19b)](_0x339964=>{const _0x4f4218=_0x9967bb;!_0x131f1f&&(_0x339964?console[_0x4f4218(0x1b1)](_0x4f4218(0x1ba)):(console[_0x4f4218(0x1b1)](_0x4f4218(0x1b3)),console[_0x4f4218(0x1b1)](_0x4f4218(0x1c6),_0x34b17e)),console[_0x4f4218(0x1b1)](''));})[_0x9967bb(0x1b5)](()=>{const _0x5c2c57=_0x9967bb;!_0x131f1f&&(console[_0x5c2c57(0x1b1)](_0x5c2c57(0x1b3)),console[_0x5c2c57(0x1b1)](_0x5c2c57(0x1c6),_0x34b17e),console['log'](''));});}),_0x2a1f9b['on'](_0x5290ec(0x1bb),_0x3fdc90=>{const _0x41c872=_0x5290ec;if(_0x272845)return;_0x272845=!![],_0x1b4e18&&clearTimeout(_0x1b4e18),!_0x131f1f&&console[_0x41c872(0x1bb)](_0x41c872(0x19a),_0x3fdc90),_0x2a1f9b[_0x41c872(0x1bf)](),_0x5c15e0(_0x3fdc90);});});}function openInBrowser(_0x3b62b7){return new Promise(_0x249f70=>{const _0x1a4acf=a4_0x5f07,_0x4da547=process[_0x1a4acf(0x1b6)];let _0x271d4f;if(_0x4da547===_0x1a4acf(0x19d))_0x271d4f=_0x1a4acf(0x1c1)+_0x3b62b7+'\x22';else _0x4da547===_0x1a4acf(0x1b7)?_0x271d4f=_0x1a4acf(0x19f)+_0x3b62b7+'\x22':_0x271d4f='xdg-open\x20\x22'+_0x3b62b7+'\x22';exec(_0x271d4f,_0x54f5f2=>{_0x54f5f2?_0x249f70(![]):_0x249f70(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x5b2a99(0x1b1)](a4_0x5b2a99(0x1a4),isAuth);}
@@ -1 +1 @@
1
- const a5_0x56518e=a5_0x1f40;(function(_0x1b3168,_0x71fcce){const _0x48a69d=a5_0x1f40,_0x972256=_0x1b3168();while(!![]){try{const _0x195db6=-parseInt(_0x48a69d(0x176))/0x1+parseInt(_0x48a69d(0x17b))/0x2+parseInt(_0x48a69d(0x177))/0x3+parseInt(_0x48a69d(0x175))/0x4*(-parseInt(_0x48a69d(0x179))/0x5)+-parseInt(_0x48a69d(0x17a))/0x6+parseInt(_0x48a69d(0x17e))/0x7+parseInt(_0x48a69d(0x178))/0x8;if(_0x195db6===_0x71fcce)break;else _0x972256['push'](_0x972256['shift']());}catch(_0x29f385){_0x972256['push'](_0x972256['shift']());}}}(a5_0x138f,0x5cb94));import{mkdirSync}from'node:fs';function a5_0x1f40(_0xbb3af5,_0xe7e4ed){_0xbb3af5=_0xbb3af5-0x175;const _0x138fec=a5_0x138f();let _0x1f4067=_0x138fec[_0xbb3af5];return _0x1f4067;}import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x56518e(0x17d));export const cookieFile=join(configDir,a5_0x56518e(0x17c));mkdirSync(configDir,{'recursive':!![]});function a5_0x138f(){const _0x141621=['343414dbgqGv','cookie','.lovrabet','4494679IDGrcP','23396imxtSn','371032wXYmnN','569097Rqexao','6972488oaXXSZ','485taFWLB','3341298pkDkNq'];a5_0x138f=function(){return _0x141621;};return a5_0x138f();}
1
+ const a5_0x1848d2=a5_0x5a18;(function(_0x6239b3,_0x48381a){const _0xa51bec=a5_0x5a18,_0x43de26=_0x6239b3();while(!![]){try{const _0x79bb62=-parseInt(_0xa51bec(0x1e3))/0x1*(-parseInt(_0xa51bec(0x1e5))/0x2)+-parseInt(_0xa51bec(0x1dd))/0x3*(-parseInt(_0xa51bec(0x1de))/0x4)+parseInt(_0xa51bec(0x1dc))/0x5*(parseInt(_0xa51bec(0x1df))/0x6)+-parseInt(_0xa51bec(0x1e2))/0x7+parseInt(_0xa51bec(0x1e1))/0x8*(-parseInt(_0xa51bec(0x1e4))/0x9)+-parseInt(_0xa51bec(0x1da))/0xa+parseInt(_0xa51bec(0x1db))/0xb;if(_0x79bb62===_0x48381a)break;else _0x43de26['push'](_0x43de26['shift']());}catch(_0x11197a){_0x43de26['push'](_0x43de26['shift']());}}}(a5_0x57e2,0xd66af));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x1848d2(0x1d9));export const cookieFile=join(configDir,a5_0x1848d2(0x1e0));function a5_0x5a18(_0xb87165,_0x316ab8){_0xb87165=_0xb87165-0x1d9;const _0x57e20b=a5_0x57e2();let _0x5a18de=_0x57e20b[_0xb87165];return _0x5a18de;}function a5_0x57e2(){const _0x419f51=['22350cbsESH','cookie','48csNwEV','5723375RLWTeG','305990IERmeR','1894716KKRnTz','4QgrceZ','.lovrabet','909460bzNHoP','19793950zUqEXV','840fVRCTj','1365FXUBSO','112fVFGOo'];a5_0x57e2=function(){return _0x419f51;};return a5_0x57e2();}mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- function a6_0x122c(){var _0x555119=['103VoMJoM','12FQXhjm','utf-8','7636272ybOXjl','2240AybQzs','3736960WTaJrr','3221878UQoMPV','41949ZdHSrT','6hYHFmm','357768bHkcpt','10794LVAock','1670plmRcd','8484uknCwE'];a6_0x122c=function(){return _0x555119;};return a6_0x122c();}function a6_0x33c1(_0x55efa3,_0x4501b9){_0x55efa3=_0x55efa3-0x1df;var _0x122ca1=a6_0x122c();var _0x33c18f=_0x122ca1[_0x55efa3];return _0x33c18f;}(function(_0x75cacc,_0x53ba44){var _0x5dda14=a6_0x33c1,_0x48b23a=_0x75cacc();while(!![]){try{var _0x78330a=parseInt(_0x5dda14(0x1eb))/0x1*(parseInt(_0x5dda14(0x1ea))/0x2)+parseInt(_0x5dda14(0x1e6))/0x3*(-parseInt(_0x5dda14(0x1e7))/0x4)+-parseInt(_0x5dda14(0x1e3))/0x5+-parseInt(_0x5dda14(0x1e8))/0x6*(-parseInt(_0x5dda14(0x1e2))/0x7)+parseInt(_0x5dda14(0x1e1))/0x8+-parseInt(_0x5dda14(0x1e5))/0x9*(parseInt(_0x5dda14(0x1e9))/0xa)+-parseInt(_0x5dda14(0x1e4))/0xb*(-parseInt(_0x5dda14(0x1df))/0xc);if(_0x78330a===_0x53ba44)break;else _0x48b23a['push'](_0x48b23a['shift']());}catch(_0x511a76){_0x48b23a['push'](_0x48b23a['shift']());}}}(a6_0x122c,0x8796f));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x550c1b=a6_0x33c1;try{return readFileSync(cookieFile,_0x550c1b(0x1e0));}catch{}return'';}
1
+ function a6_0x5389(_0x55463e,_0x27e135){_0x55463e=_0x55463e-0x152;var _0x379422=a6_0x3794();var _0x5389b2=_0x379422[_0x55463e];return _0x5389b2;}function a6_0x3794(){var _0x1367a4=['1369899czAArl','502870FplMgx','utf-8','9786tiCXrT','3670FWYwTc','2366wXpnyZ','310572SDxGEk','59112yZWquW','15qTeLtR','3424oCnjpI','38379EEuFgN','16668azhahC'];a6_0x3794=function(){return _0x1367a4;};return a6_0x3794();}(function(_0xdeb9d8,_0x242842){var _0x5a75ac=a6_0x5389,_0x43d955=_0xdeb9d8();while(!![]){try{var _0x57fdf5=-parseInt(_0x5a75ac(0x15b))/0x1+parseInt(_0x5a75ac(0x156))/0x2+parseInt(_0x5a75ac(0x155))/0x3+-parseInt(_0x5a75ac(0x15c))/0x4*(parseInt(_0x5a75ac(0x15d))/0x5)+-parseInt(_0x5a75ac(0x158))/0x6*(-parseInt(_0x5a75ac(0x15a))/0x7)+parseInt(_0x5a75ac(0x152))/0x8*(parseInt(_0x5a75ac(0x154))/0x9)+-parseInt(_0x5a75ac(0x159))/0xa*(parseInt(_0x5a75ac(0x153))/0xb);if(_0x57fdf5===_0x242842)break;else _0x43d955['push'](_0x43d955['shift']());}catch(_0x5b091b){_0x43d955['push'](_0x43d955['shift']());}}}(a6_0x3794,0x65b79));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x157b09=a6_0x5389;try{return readFileSync(cookieFile,_0x157b09(0x157));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x7ae4c7,_0x3e526a){const _0xf0d756=a7_0x2110,_0x5aab47=_0x7ae4c7();while(!![]){try{const _0x47bd09=-parseInt(_0xf0d756(0x1a3))/0x1+-parseInt(_0xf0d756(0x19e))/0x2+parseInt(_0xf0d756(0x1a1))/0x3*(-parseInt(_0xf0d756(0x1a9))/0x4)+parseInt(_0xf0d756(0x19d))/0x5+parseInt(_0xf0d756(0x1a8))/0x6+parseInt(_0xf0d756(0x1a2))/0x7+-parseInt(_0xf0d756(0x1a7))/0x8*(-parseInt(_0xf0d756(0x1a0))/0x9);if(_0x47bd09===_0x3e526a)break;else _0x5aab47['push'](_0x5aab47['shift']());}catch(_0x25d0ca){_0x5aab47['push'](_0x5aab47['shift']());}}}(a7_0x4db6,0xc2643));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x2110(_0x15157f,_0x4cfcaf){_0x15157f=_0x15157f-0x19c;const _0x4db673=a7_0x4db6();let _0x21102f=_0x4db673[_0x15157f];return _0x21102f;}import{cookieFile}from'../auth/constant.js';function a7_0x4db6(){const _0x10f2ca=['user','session','/api/auth/get-session','1470616gJQema','1572894QhXcTK','308TZYmNE','utf-8','2129550HRLMAA','919304GkYklp','json','54hxdfaX','17811rppPTD','1725115uAFlwW','324438gHotvd'];a7_0x4db6=function(){return _0x10f2ca;};return a7_0x4db6();}export async function getSessionUserInfo(){const _0x117eb9=a7_0x2110;try{if(!existsSync(cookieFile))return null;const _0x2ef3e6=readFileSync(cookieFile,_0x117eb9(0x19c)),_0x2949db=await fetch(getUserDomain()+_0x117eb9(0x1a6),{'headers':{'cookie':_0x2ef3e6}});if(!_0x2949db['ok'])return null;const _0x49b405=await _0x2949db[_0x117eb9(0x19f)]();if(!_0x49b405[_0x117eb9(0x1a5)]||!_0x49b405[_0x117eb9(0x1a4)])return null;return _0x49b405;}catch{return null;}}
1
+ (function(_0x1f0d20,_0x3cf34b){const _0x3b26da=a7_0x408d,_0x3ba8e2=_0x1f0d20();while(!![]){try{const _0x444429=-parseInt(_0x3b26da(0xbf))/0x1+-parseInt(_0x3b26da(0xc6))/0x2+parseInt(_0x3b26da(0xc1))/0x3+parseInt(_0x3b26da(0xbd))/0x4*(parseInt(_0x3b26da(0xca))/0x5)+-parseInt(_0x3b26da(0xc8))/0x6+-parseInt(_0x3b26da(0xc3))/0x7+-parseInt(_0x3b26da(0xc7))/0x8*(-parseInt(_0x3b26da(0xbe))/0x9);if(_0x444429===_0x3cf34b)break;else _0x3ba8e2['push'](_0x3ba8e2['shift']());}catch(_0x364178){_0x3ba8e2['push'](_0x3ba8e2['shift']());}}}(a7_0x36dc,0x29090));function a7_0x408d(_0x1abbdb,_0x409041){_0x1abbdb=_0x1abbdb-0xbd;const _0x36dc2b=a7_0x36dc();let _0x408d83=_0x36dc2b[_0x1abbdb];return _0x408d83;}function a7_0x36dc(){const _0xe560ea=['206628rxNzuu','8RmekAI','570012CufiSb','session','20bvMewI','238076cALAUT','1921401gXzDKK','267899ntKWIu','/api/auth/get-session','951945CUzdHv','json','942095nqBXTo','utf-8','user'];a7_0x36dc=function(){return _0xe560ea;};return a7_0x36dc();}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x5341a1=a7_0x408d;try{if(!existsSync(cookieFile))return null;const _0x1f911a=readFileSync(cookieFile,_0x5341a1(0xc4)),_0x449f7e=await fetch(getUserDomain()+_0x5341a1(0xc0),{'headers':{'cookie':_0x1f911a}});if(!_0x449f7e['ok'])return null;const _0x417d52=await _0x449f7e[_0x5341a1(0xc2)]();if(!_0x417d52[_0x5341a1(0xc9)]||!_0x417d52[_0x5341a1(0xc5)])return null;return _0x417d52;}catch{return null;}}
@@ -1 +1 @@
1
- function a8_0x4563(){const _0x1bd938=['108WSKOPu','2054FtGAKf','392470MbvEvb','137WJgFqI','125556qxnQjh','444807OsBeIe','utf-8','45SBCyKS','334496pWkmbK','user','963066jHRMnv','then','1226992GkYNyQ','session','5NqPhOg','21GVdwNU','/api/auth/get-session'];a8_0x4563=function(){return _0x1bd938;};return a8_0x4563();}(function(_0x5cd2c5,_0x2f4b66){const _0x4f8c94=a8_0x89a2,_0x977f4a=_0x5cd2c5();while(!![]){try{const _0x555751=parseInt(_0x4f8c94(0xdb))/0x1*(parseInt(_0x4f8c94(0xd9))/0x2)+-parseInt(_0x4f8c94(0xe2))/0x3+-parseInt(_0x4f8c94(0xe4))/0x4+-parseInt(_0x4f8c94(0xe6))/0x5*(parseInt(_0x4f8c94(0xdc))/0x6)+parseInt(_0x4f8c94(0xd6))/0x7*(parseInt(_0x4f8c94(0xe0))/0x8)+parseInt(_0x4f8c94(0xdf))/0x9*(parseInt(_0x4f8c94(0xda))/0xa)+-parseInt(_0x4f8c94(0xdd))/0xb*(-parseInt(_0x4f8c94(0xd8))/0xc);if(_0x555751===_0x2f4b66)break;else _0x977f4a['push'](_0x977f4a['shift']());}catch(_0xf66a4d){_0x977f4a['push'](_0x977f4a['shift']());}}}(a8_0x4563,0x2b5c7));import{existsSync,readFileSync}from'node:fs';function a8_0x89a2(_0x375973,_0x4b6c0d){_0x375973=_0x375973-0xd6;const _0x456390=a8_0x4563();let _0x89a239=_0x456390[_0x375973];return _0x89a239;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x513675=a8_0x89a2;try{if(!existsSync(cookieFile))return![];const _0x13ca71=readFileSync(cookieFile,_0x513675(0xde)),_0x3273a9=await fetch(getUserDomain()+_0x513675(0xd7),{'headers':{'cookie':_0x13ca71}})[_0x513675(0xe3)](_0x4baa1e=>_0x4baa1e['json']());return _0x3273a9&&_0x3273a9[_0x513675(0xe5)]&&_0x3273a9[_0x513675(0xe1)];}catch{}return![];}
1
+ (function(_0x21c8c9,_0x28b6c9){const _0x7c0188=a8_0x42c2,_0x24142a=_0x21c8c9();while(!![]){try{const _0x57303f=parseInt(_0x7c0188(0x1da))/0x1+-parseInt(_0x7c0188(0x1e3))/0x2*(parseInt(_0x7c0188(0x1e2))/0x3)+parseInt(_0x7c0188(0x1e1))/0x4*(parseInt(_0x7c0188(0x1dc))/0x5)+-parseInt(_0x7c0188(0x1e7))/0x6+-parseInt(_0x7c0188(0x1df))/0x7*(parseInt(_0x7c0188(0x1e0))/0x8)+-parseInt(_0x7c0188(0x1e4))/0x9+parseInt(_0x7c0188(0x1e6))/0xa;if(_0x57303f===_0x28b6c9)break;else _0x24142a['push'](_0x24142a['shift']());}catch(_0x37a51a){_0x24142a['push'](_0x24142a['shift']());}}}(a8_0x5631,0x78f56));function a8_0x42c2(_0x2f65e9,_0x1fa265){_0x2f65e9=_0x2f65e9-0x1da;const _0x563146=a8_0x5631();let _0x42c275=_0x563146[_0x2f65e9];return _0x42c275;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a8_0x5631(){const _0x434009=['9615930wZUVCy','1633524utFkfR','user','session','963284glEdyh','/api/auth/get-session','15sBbNth','json','then','1622530KIJLZe','32NiXZCR','676756gvDWwr','574914bLKKEu','2ybfXni','4913514amDrMW','utf-8'];a8_0x5631=function(){return _0x434009;};return a8_0x5631();}import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x3c769e=a8_0x42c2;try{if(!existsSync(cookieFile))return![];const _0x3df7ab=readFileSync(cookieFile,_0x3c769e(0x1e5)),_0x748ce3=await fetch(getUserDomain()+_0x3c769e(0x1db),{'headers':{'cookie':_0x3df7ab}})[_0x3c769e(0x1de)](_0x8da3bb=>_0x8da3bb[_0x3c769e(0x1dd)]());return _0x748ce3&&_0x748ce3[_0x3c769e(0x1e9)]&&_0x748ce3[_0x3c769e(0x1e8)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x8e9458,_0x597ddb){const _0x559464=a9_0x4adb,_0x2c58f1=_0x8e9458();while(!![]){try{const _0x4698df=parseInt(_0x559464(0x127))/0x1*(parseInt(_0x559464(0x123))/0x2)+-parseInt(_0x559464(0x124))/0x3*(parseInt(_0x559464(0x120))/0x4)+parseInt(_0x559464(0x11e))/0x5*(-parseInt(_0x559464(0x11c))/0x6)+-parseInt(_0x559464(0x11f))/0x7*(parseInt(_0x559464(0x125))/0x8)+-parseInt(_0x559464(0x121))/0x9+parseInt(_0x559464(0x126))/0xa+parseInt(_0x559464(0x11d))/0xb;if(_0x4698df===_0x597ddb)break;else _0x2c58f1['push'](_0x2c58f1['shift']());}catch(_0x2712db){_0x2c58f1['push'](_0x2c58f1['shift']());}}}(a9_0x43c5,0xac626));export function buildLoginSuccessHtml(){const _0x2f839f=a9_0x4adb,_0xf4855b=_0x2f839f(0x122);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>'+_0xf4855b+'</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>';}function a9_0x4adb(_0x247f03,_0x485525){_0x247f03=_0x247f03-0x11c;const _0x43c5f3=a9_0x43c5();let _0x4adb48=_0x43c5f3[_0x247f03];return _0x4adb48;}function a9_0x43c5(){const _0x3e37a0=['8kHaoAb','5196879AuiSav','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','6faeunv','1479369RySqjU','3748952dQbBKS','10925630vsSgYb','48898oKGWZU','11982MLPQQI','33873367UgcMlI','1610tijKZy','21upswnp'];a9_0x43c5=function(){return _0x3e37a0;};return a9_0x43c5();}
1
+ (function(_0x11609c,_0x2518bf){const _0x561171=a9_0x5d3a,_0x4013ae=_0x11609c();while(!![]){try{const _0x1c278f=-parseInt(_0x561171(0x7c))/0x1*(-parseInt(_0x561171(0x77))/0x2)+-parseInt(_0x561171(0x7d))/0x3+-parseInt(_0x561171(0x75))/0x4*(parseInt(_0x561171(0x74))/0x5)+parseInt(_0x561171(0x78))/0x6+parseInt(_0x561171(0x7f))/0x7*(-parseInt(_0x561171(0x76))/0x8)+-parseInt(_0x561171(0x79))/0x9+parseInt(_0x561171(0x7b))/0xa;if(_0x1c278f===_0x2518bf)break;else _0x4013ae['push'](_0x4013ae['shift']());}catch(_0x45ac59){_0x4013ae['push'](_0x4013ae['shift']());}}}(a9_0x5d17,0x1d169));function a9_0x5d3a(_0x42b4ed,_0x140f87){_0x42b4ed=_0x42b4ed-0x73;const _0x5d171c=a9_0x5d17();let _0x5d3a01=_0x5d171c[_0x42b4ed];return _0x5d3a01;}function a9_0x5d17(){const _0x488461=['343524DoYFEb','8tUDwYy','38FPaEsS','403104VAHTSw','1205163OYfayw','</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>','3204490XBynle','5651nllukA','393705WwDTta','<!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>','173838YvXPWv','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','5pYSFWD'];a9_0x5d17=function(){return _0x488461;};return a9_0x5d17();}export function buildLoginSuccessHtml(){const _0x130197=a9_0x5d3a,_0x51c893=_0x130197(0x73);return _0x130197(0x7e)+_0x51c893+_0x130197(0x7a);}
@@ -1 +1 @@
1
- (function(_0x440c79,_0x196307){var _0x1484ba=a10_0x5f50,_0x21fc08=_0x440c79();while(!![]){try{var _0x47f14a=parseInt(_0x1484ba(0x164))/0x1*(parseInt(_0x1484ba(0x165))/0x2)+-parseInt(_0x1484ba(0x162))/0x3+-parseInt(_0x1484ba(0x15d))/0x4+-parseInt(_0x1484ba(0x15f))/0x5+parseInt(_0x1484ba(0x15c))/0x6*(parseInt(_0x1484ba(0x15a))/0x7)+-parseInt(_0x1484ba(0x15e))/0x8*(-parseInt(_0x1484ba(0x163))/0x9)+parseInt(_0x1484ba(0x161))/0xa;if(_0x47f14a===_0x196307)break;else _0x21fc08['push'](_0x21fc08['shift']());}catch(_0x4ace6a){_0x21fc08['push'](_0x21fc08['shift']());}}}(a10_0x3fdc,0x43e36));function a10_0x5f50(_0x249a50,_0x48e6b7){_0x249a50=_0x249a50-0x15a;var _0x3fdc2c=a10_0x3fdc();var _0x5f5043=_0x3fdc2c[_0x249a50];return _0x5f5043;}function a10_0x3fdc(){var _0x15e2e5=['357jaqtGN','log','63354YXtYIJ','1224696tPvLZT','16GznBHP','2260560qCtFbD','✓\x20Logged\x20out','5167200DffHTU','1324785TbrRam','1243827PWKQJo','89qFjFhA','3288jaJgcl','!\x20Not\x20logged\x20in'];a10_0x3fdc=function(){return _0x15e2e5;};return a10_0x3fdc();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x390479=a10_0x5f50;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0x390479(0x160))):console[_0x390479(0x15b)](_0x390479(0x166));}
1
+ (function(_0x4c095e,_0x181dfb){var _0x22378d=a10_0x4b8a,_0x4d0c7a=_0x4c095e();while(!![]){try{var _0x14208a=-parseInt(_0x22378d(0xd6))/0x1*(-parseInt(_0x22378d(0xcf))/0x2)+-parseInt(_0x22378d(0xd4))/0x3+parseInt(_0x22378d(0xd2))/0x4*(-parseInt(_0x22378d(0xd1))/0x5)+parseInt(_0x22378d(0xd9))/0x6+parseInt(_0x22378d(0xda))/0x7*(-parseInt(_0x22378d(0xd7))/0x8)+parseInt(_0x22378d(0xd8))/0x9*(parseInt(_0x22378d(0xcd))/0xa)+parseInt(_0x22378d(0xd0))/0xb*(parseInt(_0x22378d(0xd5))/0xc);if(_0x14208a===_0x181dfb)break;else _0x4d0c7a['push'](_0x4d0c7a['shift']());}catch(_0x5430e4){_0x4d0c7a['push'](_0x4d0c7a['shift']());}}}(a10_0x12ee,0x379f1));import{unlinkSync,existsSync}from'node:fs';function a10_0x12ee(){var _0x3faac8=['log','101814uyjooA','5234471LfEvhj','15815MQNfjd','436sZuHFz','✓\x20Logged\x20out','330051rsBFrl','12iKBDvk','2qnKjrd','1444016VTQNml','2077119gOmHlx','327870KCxnUw','7nOLTfF','10WAnnkP'];a10_0x12ee=function(){return _0x3faac8;};return a10_0x12ee();}import{cookieFile}from'../auth/constant.js';function a10_0x4b8a(_0xf9cf92,_0x239c0c){_0xf9cf92=_0xf9cf92-0xcd;var _0x12ee45=a10_0x12ee();var _0x4b8a68=_0x12ee45[_0xf9cf92];return _0x4b8a68;}export function logout(){var _0x7bcceb=a10_0x4b8a;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0x7bcceb(0xd3))):console[_0x7bcceb(0xce)]('!\x20Not\x20logged\x20in');}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- const a11_0x2ad062=a11_0x784e;(function(_0x113888,_0x4f2ef0){const _0x5bf558=a11_0x784e,_0x4b7404=_0x113888();while(!![]){try{const _0x1e018a=parseInt(_0x5bf558(0x7f))/0x1+parseInt(_0x5bf558(0x83))/0x2*(-parseInt(_0x5bf558(0x80))/0x3)+parseInt(_0x5bf558(0x7e))/0x4*(-parseInt(_0x5bf558(0x88))/0x5)+parseInt(_0x5bf558(0x84))/0x6+-parseInt(_0x5bf558(0x87))/0x7+-parseInt(_0x5bf558(0x81))/0x8+-parseInt(_0x5bf558(0x82))/0x9*(-parseInt(_0x5bf558(0x86))/0xa);if(_0x1e018a===_0x4f2ef0)break;else _0x4b7404['push'](_0x4b7404['shift']());}catch(_0x25f91f){_0x4b7404['push'](_0x4b7404['shift']());}}}(a11_0x14fd,0xf28fb));function a11_0x14fd(){const _0x47248c=['2aDCZtH','9499854ObVevj','boolean','3043410Fdubuy','953316UUMoXF','15axHuXA','237036jqwnLu','1645249VrkwmU','899190lencoJ','15405384KjUgyJ','9ddwxLv'];a11_0x14fd=function(){return _0x47248c;};return a11_0x14fd();}function a11_0x784e(_0x25f018,_0xbab4c2){_0x25f018=_0x25f018-0x7e;const _0x14fd5e=a11_0x14fd();let _0x784ed=_0x14fd5e[_0x25f018];return _0x784ed;}export const dynamicCliFlags={'enableBffSave':{'type':a11_0x2ad062(0x85)}};
1
+ const a11_0x476fbb=a11_0x51dd;(function(_0x5cde9c,_0x15c462){const _0x180ce5=a11_0x51dd,_0x21f2b2=_0x5cde9c();while(!![]){try{const _0x5721bc=-parseInt(_0x180ce5(0x1dc))/0x1*(parseInt(_0x180ce5(0x1d4))/0x2)+-parseInt(_0x180ce5(0x1d6))/0x3*(parseInt(_0x180ce5(0x1d9))/0x4)+-parseInt(_0x180ce5(0x1db))/0x5*(parseInt(_0x180ce5(0x1dd))/0x6)+-parseInt(_0x180ce5(0x1df))/0x7*(parseInt(_0x180ce5(0x1da))/0x8)+-parseInt(_0x180ce5(0x1d8))/0x9+-parseInt(_0x180ce5(0x1d7))/0xa+parseInt(_0x180ce5(0x1de))/0xb;if(_0x5721bc===_0x15c462)break;else _0x21f2b2['push'](_0x21f2b2['shift']());}catch(_0x3eee80){_0x21f2b2['push'](_0x21f2b2['shift']());}}}(a11_0x5235,0x5916b));function a11_0x5235(){const _0x1a5211=['3zAkzfP','141864JEUrLn','24414588InTnKk','7cExaxR','358814giweLz','boolean','57570jphVUe','645210nIfPGx','6460560xydMgz','32EtoEAQ','963320ChgTpi','55oDfiBD'];a11_0x5235=function(){return _0x1a5211;};return a11_0x5235();}function a11_0x51dd(_0x1d7fb7,_0x11a3a9){_0x1d7fb7=_0x1d7fb7-0x1d4;const _0x52357c=a11_0x5235();let _0x51dd55=_0x52357c[_0x1d7fb7];return _0x51dd55;}export const dynamicCliFlags={'enableBffSave':{'type':a11_0x476fbb(0x1d5)}};
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x1b8dfd=a12_0x5e67;(function(_0x4f580c,_0x142f4d){const _0x4d5741=a12_0x5e67,_0x10e12e=_0x4f580c();while(!![]){try{const _0x31baf9=parseInt(_0x4d5741(0xd3))/0x1+-parseInt(_0x4d5741(0xe6))/0x2*(-parseInt(_0x4d5741(0xe0))/0x3)+-parseInt(_0x4d5741(0xf2))/0x4*(parseInt(_0x4d5741(0xdc))/0x5)+-parseInt(_0x4d5741(0xf9))/0x6*(-parseInt(_0x4d5741(0xd8))/0x7)+-parseInt(_0x4d5741(0xe5))/0x8+-parseInt(_0x4d5741(0xfa))/0x9+-parseInt(_0x4d5741(0x100))/0xa*(-parseInt(_0x4d5741(0xeb))/0xb);if(_0x31baf9===_0x142f4d)break;else _0x10e12e['push'](_0x10e12e['shift']());}catch(_0x338290){_0x10e12e['push'](_0x10e12e['shift']());}}}(a12_0x4a38,0x7fd38));function a12_0x5e67(_0x107271,_0x354e44){_0x107271=_0x107271-0xd3;const _0x4a384f=a12_0x4a38();let _0x5e6735=_0x4a384f[_0x107271];return _0x5e6735;}import a12_0x5f5a6f from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases,resolveDeprecatedSubcommand}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'))[a12_0x1b8dfd(0xd7)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x1b8dfd(0xdd)](0x0,0xa)+')':VERSION,cli=a12_0x5f5a6f(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});function a12_0x4a38(){const _0x53b706=['write','unknown_service','4227152TsPMae','70ZNLXKI','apiDomain','now','exitCode','userDomain','305657DSGfjy','\x0aCancelled.\x0a','`;\x20prefer\x20`','cancelled','unknownCommand','./constant/env.js','input','764mTZbfY','message','⚠\x20`','`\x20in\x20new\x20scripts.\x0a','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','name','env','18XfgcNi','2019618TIyiDc','Unexpected\x20error:','Error:\x20','string','`\x20is\x20an\x20alias\x20of\x20`','error','230vafUvr','533392iWXoDi','`\x20has\x20been\x20moved\x20to\x20`','ExitPromptError','defaultCommand','dynamicCliFlags','582715YYEKgh','raw','help','service','26155nmURRm','slice','wildcardDef','flags','73137clyjOd','./context.js','log'];a12_0x4a38=function(){return _0x53b706;};return a12_0x4a38();}registerOtelShutdownOnExit(),await run();async function run(){const _0x179f5c=a12_0x1b8dfd;let _0x2f423a=cli[_0x179f5c(0xf1)][0x0],_0x2b8e38=cli[_0x179f5c(0xf1)][0x1];const _0x182e53=cli[_0x179f5c(0xdf)];if(!_0x2f423a){await reportCliHelpTrace('global'),showHelp();return;}const _0x581306=deprecatedAliases[_0x2f423a];if(_0x581306&&!isKnownService(_0x2f423a)){const _0x179a63=_0x2b8e38?CLI_BIN_NAME+'\x20'+_0x2f423a+'\x20'+_0x2b8e38:CLI_BIN_NAME+'\x20'+_0x2f423a,_0x156f84=CLI_BIN_NAME+'\x20'+_0x581306[_0x179f5c(0xdb)]+'\x20'+_0x581306['command'];console[_0x179f5c(0xff)](_0x179f5c(0xf4)+_0x179a63+_0x179f5c(0xd4)+_0x156f84+'`\x20in\x20v2.0.\x0a'+_0x179f5c(0xf6)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x2f423a)){await reportCliHelpTrace(_0x179f5c(0xe4),{'service':_0x2f423a}),showHelp();return;}const _0x4f1c6a=getServiceEntry(_0x2f423a);if(_0x182e53[_0x179f5c(0xf8)]&&typeof _0x182e53['env']===_0x179f5c(0xfd)){const {initEnv:_0x25a048}=await import('./constant/env.js');_0x25a048(_0x182e53[_0x179f5c(0xf8)]);}const {buildConfigFromFlags:_0x87265b}=await import(_0x179f5c(0xe1)),_0x2f854e=_0x87265b(_0x182e53);if(!_0x182e53[_0x179f5c(0xf8)]&&_0x2f854e[_0x179f5c(0xf8)]){const {initEnv:_0x56b002}=await import(_0x179f5c(0xf0));_0x56b002(_0x2f854e[_0x179f5c(0xf8)]);}if(_0x2f854e[_0x179f5c(0xd9)]?.[_0x179f5c(0xe7)]||_0x2f854e['raw']?.[_0x179f5c(0xea)]||_0x2f854e[_0x179f5c(0xd9)]?.['runtimeDomain']){const {initDomains:_0x78226e}=await import('./constant/domain.js');_0x78226e({'apiDomain':_0x2f854e[_0x179f5c(0xd9)]['apiDomain']||undefined,'userDomain':_0x2f854e[_0x179f5c(0xd9)][_0x179f5c(0xea)]||undefined,'runtimeDomain':_0x2f854e[_0x179f5c(0xd9)]['runtimeDomain']||undefined});}if(!_0x2b8e38){if(_0x182e53[_0x179f5c(0xda)]){printServiceHelp(_0x2f423a);return;}if(_0x4f1c6a[_0x179f5c(0xd6)])_0x2b8e38=_0x4f1c6a[_0x179f5c(0xd6)];else{if(_0x4f1c6a['wildcardDef']){await dispatchDeclarative(_0x4f1c6a[_0x179f5c(0xde)],_0x2f423a,'',[],_0x182e53,_0x2f854e);return;}else{printServiceHelp(_0x2f423a);return;}}}const _0x35d22b=resolveDeprecatedSubcommand(_0x2f423a,_0x2b8e38);if(_0x35d22b){const _0x5e3959=CLI_BIN_NAME+'\x20'+_0x2f423a+'\x20'+_0x2b8e38,_0x685b=CLI_BIN_NAME+'\x20'+_0x2f423a+'\x20'+_0x35d22b;console[_0x179f5c(0xff)](_0x179f5c(0xf4)+_0x5e3959+_0x179f5c(0xfe)+_0x685b+_0x179f5c(0xed)+_0x685b+_0x179f5c(0xf5)),_0x2b8e38=_0x35d22b;}if(_0x182e53[_0x179f5c(0xda)]&&!findDefinition(_0x2f423a,_0x2b8e38)){printServiceHelp(_0x2f423a);return;}{let _0x2f1aaf=findDefinition(_0x2f423a,_0x2b8e38),_0x3aa15d=cli[_0x179f5c(0xf1)][_0x179f5c(0xdd)](0x2);if(!_0x2f1aaf){if(_0x4f1c6a[_0x179f5c(0xde)]){if(_0x182e53[_0x179f5c(0xda)]){console[_0x179f5c(0xe2)](generateCommandHelp(_0x4f1c6a[_0x179f5c(0xde)]));return;}_0x2f1aaf=_0x4f1c6a[_0x179f5c(0xde)],_0x3aa15d=[_0x2b8e38,...cli[_0x179f5c(0xf1)][_0x179f5c(0xdd)](0x2)];}else{printServiceHelp(_0x2f423a),await handleErrorAsync(CliErrors[_0x179f5c(0xef)](_0x2f423a+'\x20'+_0x2b8e38));return;}}if(_0x182e53[_0x179f5c(0xda)]){console[_0x179f5c(0xe2)](generateCommandHelp(_0x2f1aaf));return;}await dispatchDeclarative(_0x2f1aaf,_0x2f423a,_0x2b8e38,_0x3aa15d,_0x182e53,_0x2f854e);}}async function dispatchDeclarative(_0x45eeb2,_0x5c96a2,_0x4fa12d,_0x2cf988,_0x56a766,_0x929b1b){const _0x299e6a=a12_0x1b8dfd,_0xe71d44=Date[_0x299e6a(0xe8)]();let _0x979089;try{await runCommand(_0x45eeb2,createPipelineEnv(_0x929b1b,_0x56a766,_0x2cf988));}catch(_0x4aaa80){_0x979089=_0x4aaa80;}await reportCommandTrace({'service':_0x5c96a2,'command':_0x4fa12d,'flags':_0x56a766,'durationMs':Date[_0x299e6a(0xe8)]()-_0xe71d44,'error':_0x979089});if(_0x979089)await handleErrorAsync(_0x979089);}function printServiceHelp(_0x23eec9){const _0xe38fa6=a12_0x1b8dfd;console[_0xe38fa6(0xe2)](generateServiceHelp(_0x23eec9));}async function handleErrorAsync(_0x48ed35){const _0x1f593c=a12_0x1b8dfd;if(_0x48ed35 instanceof Error&&_0x48ed35[_0x1f593c(0xf7)]===_0x1f593c(0xd5))return process['stderr'][_0x1f593c(0xe3)](_0x1f593c(0xec)),await exitWithOtelShutdown(0x0);if(_0x48ed35 instanceof CliError){if(_0x48ed35['code']===_0x1f593c(0xee))return process['stderr']['write']('\x0a'+_0x48ed35[_0x1f593c(0xf3)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x1f593c(0xff)](_0x1f593c(0xfc)+_0x48ed35[_0x1f593c(0xf3)]);if(_0x48ed35['hint'])console['error']('Hint:\x20'+_0x48ed35['hint']);return await exitWithOtelShutdown(_0x48ed35[_0x1f593c(0xe9)]);}return console[_0x1f593c(0xff)](_0x1f593c(0xfb),_0x48ed35),await exitWithOtelShutdown(0x1);}
2
+ const a12_0x533d5c=a12_0x2b62;(function(_0x52a24f,_0xcb0d09){const _0x476920=a12_0x2b62,_0x46c6d2=_0x52a24f();while(!![]){try{const _0x2a5495=parseInt(_0x476920(0x1e6))/0x1+-parseInt(_0x476920(0x1fc))/0x2+-parseInt(_0x476920(0x1d1))/0x3*(parseInt(_0x476920(0x1db))/0x4)+-parseInt(_0x476920(0x1f6))/0x5+parseInt(_0x476920(0x1e1))/0x6+parseInt(_0x476920(0x1f4))/0x7+parseInt(_0x476920(0x1e8))/0x8;if(_0x2a5495===_0xcb0d09)break;else _0x46c6d2['push'](_0x46c6d2['shift']());}catch(_0x86d07b){_0x46c6d2['push'](_0x46c6d2['shift']());}}}(a12_0x5115,0xdd28a));import a12_0x4b738e from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases,resolveDeprecatedSubcommand}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';function a12_0x2b62(_0x6f65cf,_0x25d1ab){_0x6f65cf=_0x6f65cf-0x1cf;const _0x51157e=a12_0x5115();let _0x2b62aa=_0x51157e[_0x6f65cf];return _0x2b62aa;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';function a12_0x5115(){const _0x14f198=['apiDomain','env','wildcardDef','userDomain','stderr','log','unknownCommand','write','`\x20is\x20an\x20alias\x20of\x20`','unknown_service','3086013yvFYlw','exitCode','5625015uJUCEc','raw','now','\x0aCancelled.\x0a','./cli-flags.js','./constant/env.js','3213720ZGYZGv','`\x20in\x20v2.0.\x0a','defaultCommand','237BqVJSY','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','`;\x20prefer\x20`','Unexpected\x20error:','runtimeDomain','slice','./context.js','global','cancelled','unknown','18820AjhmDB','Error:\x20','input','Hint:\x20','message','error','9783468faTcLp','hint','`\x20in\x20new\x20scripts.\x0a','`\x20has\x20been\x20moved\x20to\x20`','help','493683NdiqcK','dynamicCliFlags','11554432qByzpG','command'];a12_0x5115=function(){return _0x14f198;};return a12_0x5115();}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(a12_0x533d5c(0x1fa)))[a12_0x533d5c(0x1e7)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x533d5c(0x1da)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x533d5c(0x1d6)](0x0,0xa)+')':VERSION,cli=a12_0x4b738e(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x604677=a12_0x533d5c;let _0x1071c3=cli['input'][0x0],_0x21e0ab=cli['input'][0x1];const _0x1597d6=cli['flags'];if(!_0x1071c3){await reportCliHelpTrace(_0x604677(0x1d8)),showHelp();return;}const _0x44438c=deprecatedAliases[_0x1071c3];if(_0x44438c&&!isKnownService(_0x1071c3)){const _0x2bc9e4=_0x21e0ab?CLI_BIN_NAME+'\x20'+_0x1071c3+'\x20'+_0x21e0ab:CLI_BIN_NAME+'\x20'+_0x1071c3,_0x441780=CLI_BIN_NAME+'\x20'+_0x44438c['service']+'\x20'+_0x44438c[_0x604677(0x1e9)];console[_0x604677(0x1e0)]('⚠\x20`'+_0x2bc9e4+_0x604677(0x1e4)+_0x441780+_0x604677(0x1cf)+_0x604677(0x1d2)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x1071c3)){await reportCliHelpTrace(_0x604677(0x1f3),{'service':_0x1071c3}),showHelp();return;}const _0xcdf3ce=getServiceEntry(_0x1071c3);if(_0x1597d6[_0x604677(0x1eb)]&&typeof _0x1597d6[_0x604677(0x1eb)]==='string'){const {initEnv:_0x8c35be}=await import(_0x604677(0x1fb));_0x8c35be(_0x1597d6[_0x604677(0x1eb)]);}const {buildConfigFromFlags:_0x5ab7cb}=await import(_0x604677(0x1d7)),_0x176db3=_0x5ab7cb(_0x1597d6);if(!_0x1597d6['env']&&_0x176db3[_0x604677(0x1eb)]){const {initEnv:_0x42c7c9}=await import(_0x604677(0x1fb));_0x42c7c9(_0x176db3['env']);}if(_0x176db3[_0x604677(0x1f7)]?.['apiDomain']||_0x176db3[_0x604677(0x1f7)]?.['userDomain']||_0x176db3[_0x604677(0x1f7)]?.[_0x604677(0x1d5)]){const {initDomains:_0x4a44d8}=await import('./constant/domain.js');_0x4a44d8({'apiDomain':_0x176db3[_0x604677(0x1f7)][_0x604677(0x1ea)]||undefined,'userDomain':_0x176db3[_0x604677(0x1f7)][_0x604677(0x1ed)]||undefined,'runtimeDomain':_0x176db3['raw']['runtimeDomain']||undefined});}if(!_0x21e0ab){if(_0x1597d6[_0x604677(0x1e5)]){printServiceHelp(_0x1071c3);return;}if(_0xcdf3ce[_0x604677(0x1d0)])_0x21e0ab=_0xcdf3ce[_0x604677(0x1d0)];else{if(_0xcdf3ce['wildcardDef']){await dispatchDeclarative(_0xcdf3ce['wildcardDef'],_0x1071c3,'',[],_0x1597d6,_0x176db3);return;}else{printServiceHelp(_0x1071c3);return;}}}const _0x1753ad=resolveDeprecatedSubcommand(_0x1071c3,_0x21e0ab);if(_0x1753ad){const _0x5e2a3a=CLI_BIN_NAME+'\x20'+_0x1071c3+'\x20'+_0x21e0ab,_0x510c65=CLI_BIN_NAME+'\x20'+_0x1071c3+'\x20'+_0x1753ad;console['error']('⚠\x20`'+_0x5e2a3a+_0x604677(0x1f2)+_0x510c65+_0x604677(0x1d3)+_0x510c65+_0x604677(0x1e3)),_0x21e0ab=_0x1753ad;}if(_0x1597d6[_0x604677(0x1e5)]&&!findDefinition(_0x1071c3,_0x21e0ab)){printServiceHelp(_0x1071c3);return;}{let _0x2fde27=findDefinition(_0x1071c3,_0x21e0ab),_0x51c561=cli[_0x604677(0x1dd)]['slice'](0x2);if(!_0x2fde27){if(_0xcdf3ce[_0x604677(0x1ec)]){if(_0x1597d6[_0x604677(0x1e5)]){console[_0x604677(0x1ef)](generateCommandHelp(_0xcdf3ce['wildcardDef']));return;}_0x2fde27=_0xcdf3ce['wildcardDef'],_0x51c561=[_0x21e0ab,...cli[_0x604677(0x1dd)][_0x604677(0x1d6)](0x2)];}else{printServiceHelp(_0x1071c3),await handleErrorAsync(CliErrors[_0x604677(0x1f0)](_0x1071c3+'\x20'+_0x21e0ab));return;}}if(_0x1597d6[_0x604677(0x1e5)]){console['log'](generateCommandHelp(_0x2fde27));return;}await dispatchDeclarative(_0x2fde27,_0x1071c3,_0x21e0ab,_0x51c561,_0x1597d6,_0x176db3);}}async function dispatchDeclarative(_0x175a5d,_0xc20bb9,_0x1cc41a,_0x2ae0c0,_0x116cd0,_0x1634ed){const _0x3742ca=a12_0x533d5c,_0x280bd9=Date[_0x3742ca(0x1f8)]();let _0x1316c0;try{await runCommand(_0x175a5d,createPipelineEnv(_0x1634ed,_0x116cd0,_0x2ae0c0));}catch(_0x24e201){_0x1316c0=_0x24e201;}await reportCommandTrace({'service':_0xc20bb9,'command':_0x1cc41a,'flags':_0x116cd0,'durationMs':Date[_0x3742ca(0x1f8)]()-_0x280bd9,'error':_0x1316c0});if(_0x1316c0)await handleErrorAsync(_0x1316c0);}function printServiceHelp(_0x54484d){console['log'](generateServiceHelp(_0x54484d));}async function handleErrorAsync(_0x1d64a7){const _0x3aa737=a12_0x533d5c;if(_0x1d64a7 instanceof Error&&_0x1d64a7['name']==='ExitPromptError')return process['stderr']['write'](_0x3aa737(0x1f9)),await exitWithOtelShutdown(0x0);if(_0x1d64a7 instanceof CliError){if(_0x1d64a7['code']===_0x3aa737(0x1d9))return process[_0x3aa737(0x1ee)][_0x3aa737(0x1f1)]('\x0a'+_0x1d64a7[_0x3aa737(0x1df)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x3aa737(0x1e0)](_0x3aa737(0x1dc)+_0x1d64a7[_0x3aa737(0x1df)]);if(_0x1d64a7[_0x3aa737(0x1e2)])console[_0x3aa737(0x1e0)](_0x3aa737(0x1de)+_0x1d64a7['hint']);return await exitWithOtelShutdown(_0x1d64a7[_0x3aa737(0x1f5)]);}return console[_0x3aa737(0x1e0)](_0x3aa737(0x1d4),_0x1d64a7),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a13_0x59497d=a13_0x591a;(function(_0x4d009c,_0x750a9e){const _0x2b608f=a13_0x591a,_0x288a1c=_0x4d009c();while(!![]){try{const _0x5d9364=parseInt(_0x2b608f(0x225))/0x1+parseInt(_0x2b608f(0x202))/0x2+parseInt(_0x2b608f(0x211))/0x3+-parseInt(_0x2b608f(0x201))/0x4*(-parseInt(_0x2b608f(0x1f4))/0x5)+-parseInt(_0x2b608f(0x20a))/0x6+parseInt(_0x2b608f(0x20c))/0x7*(-parseInt(_0x2b608f(0x219))/0x8)+-parseInt(_0x2b608f(0x217))/0x9*(-parseInt(_0x2b608f(0x221))/0xa);if(_0x5d9364===_0x750a9e)break;else _0x288a1c['push'](_0x288a1c['shift']());}catch(_0x18da34){_0x288a1c['push'](_0x288a1c['shift']());}}}(a13_0x1b61,0x1e48a));function a13_0x591a(_0x1afe47,_0x3ab009){_0x1afe47=_0x1afe47-0x1ee;const _0x1b6172=a13_0x1b61();let _0x591a5e=_0x1b6172[_0x1afe47];return _0x591a5e;}import a13_0x47e08d 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';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a13_0x1b61(){const _0x2f0662=['None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','6550feIIfH','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','length','string','str','\x20doc(s)\x20failed','map','isArray','object','\x20file(s)','...','):\x20','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','52NsibWY','430274MZGYCe','appCode','\x20of\x20','params','\x1b[0m','fail','output','generate','1278588XLdSpE','success','44093VwrAsJ','datasetCode','\x20dataset(s)\x1b[0m','write','Doc\x20generation:\x20','238554GHlLxF','some','succeed','\x20failed','\x1b[90m*\x20Filtered\x20','./docs','9ibGWeg','\x20succeeded,\x20','304tZxGob','\x0d\x20\x20[','\x20dataset(s)','Fetched\x20','stdout','api','✓\x20Generated\x20','.md','662570pBrVkl','join','Failed\x20to\x20fetch\x20datasets','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','198560TcYTbw','Doc\x20generation\x20complete:\x20','Fetching\x20dataset\x20list\x20for\x20','padStart','validation','filter','datasetName','trim'];a13_0x1b61=function(){return _0x2f0662;};return a13_0x1b61();}export const apiGenerate={'service':a13_0x59497d(0x21e),'command':a13_0x59497d(0x209),'description':'Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','risk':a13_0x59497d(0x20f),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x59497d(0x208),'type':a13_0x59497d(0x1f7),'description':'Output\x20directory\x20(default:\x20./docs)'},{'name':'datasetcode','type':a13_0x59497d(0x1f7),'description':'Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for'},{'name':a13_0x59497d(0x205),'type':a13_0x59497d(0x1f7),'description':a13_0x59497d(0x224)}],async 'execute'(_0xa08828){const _0x177016=a13_0x59497d,_0x28aa28=_0xa08828[_0x177016(0x1f8)](_0x177016(0x208))||_0x177016(0x216),_0x5a1697=_0xa08828[_0x177016(0x1f8)]('datasetcode'),_0x38803c=_0xa08828[_0x177016(0x1f8)](_0x177016(0x205));let _0x57d900;if(_0x38803c)try{_0x57d900=JSON['parse'](_0x38803c);if(typeof _0x57d900!==_0x177016(0x1fc)||_0x57d900===null||Array[_0x177016(0x1fb)](_0x57d900))throw new Error('must\x20be\x20a\x20JSON\x20object');}catch(_0x148103){throw CliErrors[_0x177016(0x1ef)]('Invalid\x20--params:\x20'+(_0x148103 instanceof Error?_0x148103['message']:String(_0x148103)),_0x177016(0x200));}let _0x3b2b3d;if(_0x5a1697){const _0x4faeec=_0x5a1697['split'](',')[_0x177016(0x1fa)](_0x3845ca=>_0x3845ca[_0x177016(0x1f2)]())['filter'](_0x185976=>_0x185976[_0x177016(0x1f6)]>0x0);if(_0x4faeec[_0x177016(0x1f6)]===0x0)throw CliErrors[_0x177016(0x1ef)]('--datasetcode\x20cannot\x20be\x20empty.');_0x3b2b3d=new Set(_0x4faeec),writeCliSideChannelLine('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x4faeec[_0x177016(0x222)](',\x20')+_0x177016(0x206));}const _0x92352b=a13_0x47e08d(_0x177016(0x227)+_0xa08828['appCode']+_0x177016(0x1fe))['start']();let _0x21bcdc;try{({configArray:_0x21bcdc}=await fetchModelList(_0xa08828[_0x177016(0x203)],_0xa08828['cookie']),_0x92352b[_0x177016(0x213)](_0x177016(0x21c)+_0x21bcdc[_0x177016(0x1f6)]+_0x177016(0x21b)));}catch(_0x22b52f){_0x92352b[_0x177016(0x207)](_0x177016(0x223));throw _0x22b52f;}if(_0x21bcdc['length']===0x0)return writeCliSideChannelLine('!\x20No\x20datasets\x20found.'),{'ok':!![]};let _0xb8cc73=_0x21bcdc;if(_0x3b2b3d){_0xb8cc73=_0x21bcdc['filter'](_0x58900d=>_0x3b2b3d['has'](_0x58900d[_0x177016(0x20d)]));const _0x3cd42a=[..._0x3b2b3d]['filter'](_0x11c5ec=>!_0x21bcdc[_0x177016(0x212)](_0x5d9b1f=>_0x5d9b1f['datasetCode']===_0x11c5ec));_0x3cd42a[_0x177016(0x1f6)]>0x0&&writeCliSideChannelLine(_0x177016(0x1f5)+_0x3cd42a[_0x177016(0x222)](',\x20')+_0x177016(0x206));if(_0xb8cc73[_0x177016(0x1f6)]===0x0)throw CliErrors[_0x177016(0x1ef)](_0x177016(0x1f3)+[..._0x3b2b3d][_0x177016(0x222)](',\x20'));writeCliSideChannelLine(_0x177016(0x215)+_0xb8cc73[_0x177016(0x1f6)]+_0x177016(0x204)+_0x21bcdc[_0x177016(0x1f6)]+_0x177016(0x20e));}let _0x22cc8c=0x0;const _0x3c1fcf=await generateDatasetDocs(_0xb8cc73,_0xa08828[_0x177016(0x203)],_0xa08828['cookie'],_0x28aa28,(_0x3d0f61,_0xf0fa0f,_0x280213)=>{const _0x4bb99f=_0x177016;_0x22cc8c=_0x3d0f61,process[_0x4bb99f(0x21d)][_0x4bb99f(0x20f)](_0x4bb99f(0x21a)+String(_0x3d0f61)[_0x4bb99f(0x1ee)](String(_0xf0fa0f)[_0x4bb99f(0x1f6)])+'/'+_0xf0fa0f+']\x20'+_0x280213+_0x4bb99f(0x220));},_0x57d900);if(_0x22cc8c>0x0)process[_0x177016(0x21d)][_0x177016(0x20f)]('\x0a');const _0x1cdbe5=_0x3c1fcf[_0x177016(0x1f0)](_0x565eef=>_0x565eef['success'])[_0x177016(0x1f6)],_0x216d39=_0x3c1fcf['filter'](_0x52d186=>!_0x52d186[_0x177016(0x20b)])[_0x177016(0x1f6)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x177016(0x21f)+_0x1cdbe5+'\x20doc(s)\x20in\x20'+_0x28aa28);if(_0x216d39>0x0){writeCliSideChannelLine('!\x20'+_0x216d39+_0x177016(0x1f9));for(const _0x1d8ac8 of _0x3c1fcf[_0x177016(0x1f0)](_0x1018be=>!_0x1018be[_0x177016(0x20b)])){writeCliSideChannelLine('\x20\x20•\x20'+_0x1d8ac8[_0x177016(0x1f1)]+'\x20('+_0x1d8ac8[_0x177016(0x20d)]+_0x177016(0x1ff)+_0x1d8ac8['error']);}}return{'ok':_0x216d39===0x0,'message':_0x216d39>0x0?_0x177016(0x210)+_0x1cdbe5+_0x177016(0x218)+_0x216d39+_0x177016(0x214):_0x177016(0x226)+_0x1cdbe5+_0x177016(0x1fd)};}};
1
+ const a13_0x148ec3=a13_0xb1bd;(function(_0xef84e0,_0x3bc3b6){const _0x2baced=a13_0xb1bd,_0x4d4a84=_0xef84e0();while(!![]){try{const _0x3e908f=parseInt(_0x2baced(0x183))/0x1+parseInt(_0x2baced(0x16e))/0x2*(-parseInt(_0x2baced(0x154))/0x3)+-parseInt(_0x2baced(0x161))/0x4*(-parseInt(_0x2baced(0x143))/0x5)+-parseInt(_0x2baced(0x159))/0x6+-parseInt(_0x2baced(0x156))/0x7*(-parseInt(_0x2baced(0x160))/0x8)+parseInt(_0x2baced(0x171))/0x9*(parseInt(_0x2baced(0x166))/0xa)+-parseInt(_0x2baced(0x15c))/0xb*(parseInt(_0x2baced(0x182))/0xc);if(_0x3e908f===_0x3bc3b6)break;else _0x4d4a84['push'](_0x4d4a84['shift']());}catch(_0x4954cf){_0x4d4a84['push'](_0x4d4a84['shift']());}}}(a13_0x1f66,0xdd63e));import a13_0x4a4cf7 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a13_0x1f66(){const _0x349bc9=['\x20dataset(s)','start','map','cookie','appCode','succeed','\x1b[90m*\x20Generating\x20docs\x20for:\x20','1490hNufQV','Doc\x20generation\x20complete:\x20','Fetched\x20','167580lTPjSD','success','stdout','params','fail','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','\x1b[0m','\x20dataset(s)\x1b[0m','generate','\x20succeeded,\x20','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','Doc\x20generation:\x20','\x20doc(s)\x20failed','object','\x20\x20•\x20','isArray','str','996hDEDGw','1808219tojbYs','split','\x1b[90m*\x20Filtered\x20','75AnMDPb','api','string','datasetCode','some','output','Output\x20directory\x20(default:\x20./docs)','...','error','Fetching\x20dataset\x20list\x20for\x20','./docs','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','\x0d\x20\x20[','Failed\x20to\x20fetch\x20datasets','--datasetcode\x20cannot\x20be\x20empty.','message','filter','219DIAIFB','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','7cIxtgD','must\x20be\x20a\x20JSON\x20object','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','10302444DNoVuL','!\x20No\x20datasets\x20found.','write','231099vgLiYP','✓\x20Generated\x20','validation','\x20of\x20','10577368evJMBC','111064nKLQOb','datasetName','length','join','datasetcode','470xdtNal'];a13_0x1f66=function(){return _0x349bc9;};return a13_0x1f66();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a13_0xb1bd(_0x208170,_0x3a1b57){_0x208170=_0x208170-0x142;const _0x1f66c6=a13_0x1f66();let _0xb1bd9e=_0x1f66c6[_0x208170];return _0xb1bd9e;}export const apiGenerate={'service':a13_0x148ec3(0x144),'command':a13_0x148ec3(0x179),'description':a13_0x148ec3(0x14e),'risk':a13_0x148ec3(0x15b),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':'string','description':a13_0x148ec3(0x149)},{'name':a13_0x148ec3(0x165),'type':a13_0x148ec3(0x145),'description':a13_0x148ec3(0x155)},{'name':a13_0x148ec3(0x174),'type':a13_0x148ec3(0x145),'description':a13_0x148ec3(0x17b)}],async 'execute'(_0x49d601){const _0x3fd905=a13_0x148ec3,_0x2d4967=_0x49d601[_0x3fd905(0x181)](_0x3fd905(0x148))||_0x3fd905(0x14d),_0xdc9e42=_0x49d601[_0x3fd905(0x181)](_0x3fd905(0x165)),_0x30ae83=_0x49d601[_0x3fd905(0x181)](_0x3fd905(0x174));let _0x4c24fd;if(_0x30ae83)try{_0x4c24fd=JSON['parse'](_0x30ae83);if(typeof _0x4c24fd!==_0x3fd905(0x17e)||_0x4c24fd===null||Array[_0x3fd905(0x180)](_0x4c24fd))throw new Error(_0x3fd905(0x157));}catch(_0x3dde25){throw CliErrors['validation']('Invalid\x20--params:\x20'+(_0x3dde25 instanceof Error?_0x3dde25[_0x3fd905(0x152)]:String(_0x3dde25)),_0x3fd905(0x158));}let _0x539504;if(_0xdc9e42){const _0xba532=_0xdc9e42[_0x3fd905(0x184)](',')[_0x3fd905(0x169)](_0x5ae4fc=>_0x5ae4fc['trim']())[_0x3fd905(0x153)](_0x1013db=>_0x1013db['length']>0x0);if(_0xba532[_0x3fd905(0x163)]===0x0)throw CliErrors[_0x3fd905(0x15e)](_0x3fd905(0x151));_0x539504=new Set(_0xba532),writeCliSideChannelLine(_0x3fd905(0x16d)+_0xba532[_0x3fd905(0x164)](',\x20')+_0x3fd905(0x177));}const _0x200fc9=a13_0x4a4cf7(_0x3fd905(0x14c)+_0x49d601[_0x3fd905(0x16b)]+_0x3fd905(0x14a))[_0x3fd905(0x168)]();let _0x38acef;try{({configArray:_0x38acef}=await fetchModelList(_0x49d601[_0x3fd905(0x16b)],_0x49d601[_0x3fd905(0x16a)]),_0x200fc9[_0x3fd905(0x16c)](_0x3fd905(0x170)+_0x38acef[_0x3fd905(0x163)]+_0x3fd905(0x167)));}catch(_0x5c323f){_0x200fc9[_0x3fd905(0x175)](_0x3fd905(0x150));throw _0x5c323f;}if(_0x38acef[_0x3fd905(0x163)]===0x0)return writeCliSideChannelLine(_0x3fd905(0x15a)),{'ok':!![]};let _0x3906f2=_0x38acef;if(_0x539504){_0x3906f2=_0x38acef['filter'](_0x4c4213=>_0x539504['has'](_0x4c4213[_0x3fd905(0x146)]));const _0x51891b=[..._0x539504][_0x3fd905(0x153)](_0x154c88=>!_0x38acef[_0x3fd905(0x147)](_0x1a3f04=>_0x1a3f04['datasetCode']===_0x154c88));_0x51891b[_0x3fd905(0x163)]>0x0&&writeCliSideChannelLine(_0x3fd905(0x176)+_0x51891b['join'](',\x20')+_0x3fd905(0x177));if(_0x3906f2[_0x3fd905(0x163)]===0x0)throw CliErrors[_0x3fd905(0x15e)]('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x539504][_0x3fd905(0x164)](',\x20'));writeCliSideChannelLine(_0x3fd905(0x142)+_0x3906f2[_0x3fd905(0x163)]+_0x3fd905(0x15f)+_0x38acef['length']+_0x3fd905(0x178));}let _0x1b1f2b=0x0;const _0x4843f8=await generateDatasetDocs(_0x3906f2,_0x49d601[_0x3fd905(0x16b)],_0x49d601[_0x3fd905(0x16a)],_0x2d4967,(_0x45edaa,_0x29604a,_0x3358c9)=>{const _0x5b4a15=_0x3fd905;_0x1b1f2b=_0x45edaa,process['stdout'][_0x5b4a15(0x15b)](_0x5b4a15(0x14f)+String(_0x45edaa)['padStart'](String(_0x29604a)['length'])+'/'+_0x29604a+']\x20'+_0x3358c9+'.md');},_0x4c24fd);if(_0x1b1f2b>0x0)process[_0x3fd905(0x173)][_0x3fd905(0x15b)]('\x0a');const _0x50e14c=_0x4843f8[_0x3fd905(0x153)](_0x2e2515=>_0x2e2515['success'])[_0x3fd905(0x163)],_0x22fb3b=_0x4843f8[_0x3fd905(0x153)](_0x4998ef=>!_0x4998ef[_0x3fd905(0x172)])[_0x3fd905(0x163)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x3fd905(0x15d)+_0x50e14c+'\x20doc(s)\x20in\x20'+_0x2d4967);if(_0x22fb3b>0x0){writeCliSideChannelLine('!\x20'+_0x22fb3b+_0x3fd905(0x17d));for(const _0x54caf8 of _0x4843f8[_0x3fd905(0x153)](_0x5d614e=>!_0x5d614e[_0x3fd905(0x172)])){writeCliSideChannelLine(_0x3fd905(0x17f)+_0x54caf8[_0x3fd905(0x162)]+'\x20('+_0x54caf8[_0x3fd905(0x146)]+'):\x20'+_0x54caf8[_0x3fd905(0x14b)]);}}return{'ok':_0x22fb3b===0x0,'message':_0x22fb3b>0x0?_0x3fd905(0x17c)+_0x50e14c+_0x3fd905(0x17a)+_0x22fb3b+'\x20failed':_0x3fd905(0x16f)+_0x50e14c+'\x20file(s)'};}};
@@ -1 +1 @@
1
- (function(_0xd76c83,_0x1934c2){const _0x5bab4e=a14_0x4afd,_0x488501=_0xd76c83();while(!![]){try{const _0x3c507d=parseInt(_0x5bab4e(0xaf))/0x1+parseInt(_0x5bab4e(0xb1))/0x2*(parseInt(_0x5bab4e(0xb3))/0x3)+parseInt(_0x5bab4e(0xb8))/0x4*(-parseInt(_0x5bab4e(0xb5))/0x5)+parseInt(_0x5bab4e(0xb2))/0x6*(parseInt(_0x5bab4e(0xb7))/0x7)+parseInt(_0x5bab4e(0xb4))/0x8+parseInt(_0x5bab4e(0xb6))/0x9+parseInt(_0x5bab4e(0xae))/0xa*(-parseInt(_0x5bab4e(0xb0))/0xb);if(_0x3c507d===_0x1934c2)break;else _0x488501['push'](_0x488501['shift']());}catch(_0x1f1285){_0x488501['push'](_0x488501['shift']());}}}(a14_0x4409,0xb11c9));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';function a14_0x4afd(_0x33dd8b,_0xc63564){_0x33dd8b=_0x33dd8b-0xae;const _0x4409aa=a14_0x4409();let _0x4afd3b=_0x4409aa[_0x33dd8b];return _0x4afd3b;}import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];function a14_0x4409(){const _0x121eb6=['1507hSeVMs','4fOynIq','41982mPgPjf','649611vDaRgZ','3427600ruekof','145jRchED','12486744RWDYhp','805tqKxrS','33076PhwlkP','229270Ijubgg','1052654ySEbdD'];a14_0x4409=function(){return _0x121eb6;};return a14_0x4409();}
1
+ (function(_0x18f30c,_0x5a8d77){const _0x64f77=a14_0x2c16,_0x333b5e=_0x18f30c();while(!![]){try{const _0x5c4283=-parseInt(_0x64f77(0x165))/0x1*(-parseInt(_0x64f77(0x168))/0x2)+parseInt(_0x64f77(0x16b))/0x3*(parseInt(_0x64f77(0x166))/0x4)+-parseInt(_0x64f77(0x167))/0x5+parseInt(_0x64f77(0x164))/0x6+parseInt(_0x64f77(0x16a))/0x7+-parseInt(_0x64f77(0x169))/0x8+-parseInt(_0x64f77(0x16c))/0x9;if(_0x5c4283===_0x5a8d77)break;else _0x333b5e['push'](_0x333b5e['shift']());}catch(_0x3e43af){_0x333b5e['push'](_0x333b5e['shift']());}}}(a14_0x15a0,0x70000));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';function a14_0x2c16(_0x342390,_0x191fd0){_0x342390=_0x342390-0x164;const _0x15a001=a14_0x15a0();let _0x2c1693=_0x15a001[_0x342390];return _0x2c1693;}export const apiDefinitions=[apiList,apiPull,apiGenerate];function a14_0x15a0(){const _0x2bc22b=['197554WhkuIO','765471jCHgSU','351063EBgpWf','2259864oCqLWv','6529QnGiGe','8AVMvPV','1773950rLqSKC','78CFnKDv','2538096LJjpBT'];a14_0x15a0=function(){return _0x2bc22b;};return a14_0x15a0();}
@@ -1 +1 @@
1
- const a15_0x179c3e=a15_0x3c79;function a15_0x3c79(_0x54b08b,_0x291b6e){_0x54b08b=_0x54b08b-0x91;const _0x496d48=a15_0x496d();let _0x3c794e=_0x496d48[_0x54b08b];return _0x3c794e;}(function(_0xcd63d9,_0x310db6){const _0x1bbead=a15_0x3c79,_0x28ab8a=_0xcd63d9();while(!![]){try{const _0x2e5d3c=parseInt(_0x1bbead(0xa6))/0x1+parseInt(_0x1bbead(0x9a))/0x2*(-parseInt(_0x1bbead(0xac))/0x3)+parseInt(_0x1bbead(0x97))/0x4*(-parseInt(_0x1bbead(0x99))/0x5)+-parseInt(_0x1bbead(0x92))/0x6*(-parseInt(_0x1bbead(0xa1))/0x7)+parseInt(_0x1bbead(0xa3))/0x8*(parseInt(_0x1bbead(0x98))/0x9)+-parseInt(_0x1bbead(0x9c))/0xa*(parseInt(_0x1bbead(0x94))/0xb)+parseInt(_0x1bbead(0xa0))/0xc*(-parseInt(_0x1bbead(0xa9))/0xd);if(_0x2e5d3c===_0x310db6)break;else _0x28ab8a['push'](_0x28ab8a['shift']());}catch(_0x46f652){_0x28ab8a['push'](_0x28ab8a['shift']());}}}(a15_0x496d,0x3b3a0));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x179c3e(0xab),'command':a15_0x179c3e(0x96),'description':a15_0x179c3e(0x9d),'risk':'read','requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x179c3e(0x9f),'type':a15_0x179c3e(0x95),'description':a15_0x179c3e(0x91),'default':![]}],async 'execute'(_0x53e952){const _0x9e8723=a15_0x179c3e,_0x22890c=_0x53e952[_0x9e8723(0x93)]['appcode']?String(_0x53e952[_0x9e8723(0x93)]['appcode']):undefined,_0x37b57d=resolveTargetApps(_0x53e952,_0x22890c);if(_0x37b57d){const _0x509da2=[];for(const _0xa5bfc7 of _0x37b57d){const _0x27c3c0=_0xa5bfc7[_0x9e8723(0x9e)]||_0x53e952['cookie'],_0x57df25=_0xa5bfc7[_0x9e8723(0xa4)]||_0x9e8723(0xa5);initEnv(_0x57df25);const {configArray:_0x181097}=await fetchModelList(_0xa5bfc7[_0x9e8723(0x9b)],_0x27c3c0);_0x509da2[_0x9e8723(0xa7)](..._0x181097[_0x9e8723(0xa2)](_0x3d7918=>({..._0x3d7918,'_appName':_0xa5bfc7[_0x9e8723(0xa8)],'_appCode':_0xa5bfc7[_0x9e8723(0x9b)],'_env':_0x57df25,'_isDefault':_0xa5bfc7[_0x9e8723(0xaa)]})));}return{'ok':!![],'data':_0x509da2};}const {configArray:_0x3efbbc}=await fetchModelList(_0x53e952['appCode'],_0x53e952[_0x9e8723(0x9e)]);return{'ok':!![],'data':_0x3efbbc};}};function a15_0x496d(){const _0x436cbe=['map','184dvEQau','env','production','401412YYPTSf','push','name','1559519VSMBmk','isDefault','api','9lLcdHZ','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','7086EuknvJ','rawFlags','4631WrZSMv','boolean','list','4ErwHKq','51849lEkkZp','608155NkVFvk','169402JpPBpr','appcode','1850imlmbd','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','cookie','global','12IsmAWG','1673bsVqNw'];a15_0x496d=function(){return _0x436cbe;};return a15_0x496d();}
1
+ const a15_0x25a237=a15_0x4706;(function(_0x3c365d,_0x57d0db){const _0x549179=a15_0x4706,_0x5c1341=_0x3c365d();while(!![]){try{const _0xfffe1a=-parseInt(_0x549179(0x1c3))/0x1+parseInt(_0x549179(0x1d1))/0x2*(-parseInt(_0x549179(0x1d7))/0x3)+parseInt(_0x549179(0x1d3))/0x4*(-parseInt(_0x549179(0x1d4))/0x5)+parseInt(_0x549179(0x1bd))/0x6+-parseInt(_0x549179(0x1c1))/0x7*(-parseInt(_0x549179(0x1d5))/0x8)+parseInt(_0x549179(0x1c5))/0x9*(parseInt(_0x549179(0x1cc))/0xa)+-parseInt(_0x549179(0x1ca))/0xb*(parseInt(_0x549179(0x1c0))/0xc);if(_0xfffe1a===_0x57d0db)break;else _0x5c1341['push'](_0x5c1341['shift']());}catch(_0x4eaead){_0x5c1341['push'](_0x5c1341['shift']());}}}(a15_0x49f9,0xe9209));function a15_0x4706(_0x3fdf52,_0x297cf1){_0x3fdf52=_0x3fdf52-0x1bd;const _0x49f9ff=a15_0x49f9();let _0x47062b=_0x49f9ff[_0x3fdf52];return _0x47062b;}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 a15_0x49f9(){const _0x4e62c0=['api','map','cookie','11iTtuKE','appcode','254010iyhfSf','appCode','list','push','isDefault','62uiWabR','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','300988jtsVhv','10aakDrF','14528bJHaBr','global','88149FkxSkp','production','4949490VSMrGA','rawFlags','boolean','3950124yFeqiQ','3682PxWzzl','env','628545LxYKzT','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','423qalidR','read'];a15_0x49f9=function(){return _0x4e62c0;};return a15_0x49f9();}export const apiList={'service':a15_0x25a237(0x1c7),'command':a15_0x25a237(0x1ce),'description':a15_0x25a237(0x1c4),'risk':a15_0x25a237(0x1c6),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x25a237(0x1d6),'type':a15_0x25a237(0x1bf),'description':a15_0x25a237(0x1d2),'default':![]}],async 'execute'(_0x2fe3e4){const _0xd0ce24=a15_0x25a237,_0x2d8e37=_0x2fe3e4[_0xd0ce24(0x1be)][_0xd0ce24(0x1cb)]?String(_0x2fe3e4[_0xd0ce24(0x1be)][_0xd0ce24(0x1cb)]):undefined,_0x593080=resolveTargetApps(_0x2fe3e4,_0x2d8e37);if(_0x593080){const _0x379efb=[];for(const _0x28bb99 of _0x593080){const _0x4b0bcc=_0x28bb99[_0xd0ce24(0x1c9)]||_0x2fe3e4[_0xd0ce24(0x1c9)],_0x52d5a1=_0x28bb99[_0xd0ce24(0x1c2)]||_0xd0ce24(0x1d8);initEnv(_0x52d5a1);const {configArray:_0x4b5e01}=await fetchModelList(_0x28bb99[_0xd0ce24(0x1cb)],_0x4b0bcc);_0x379efb[_0xd0ce24(0x1cf)](..._0x4b5e01[_0xd0ce24(0x1c8)](_0xe042e0=>({..._0xe042e0,'_appName':_0x28bb99['name'],'_appCode':_0x28bb99['appcode'],'_env':_0x52d5a1,'_isDefault':_0x28bb99[_0xd0ce24(0x1d0)]})));}return{'ok':!![],'data':_0x379efb};}const {configArray:_0x464354}=await fetchModelList(_0x2fe3e4[_0xd0ce24(0x1cd)],_0x2fe3e4['cookie']);return{'ok':!![],'data':_0x464354};}};
@@ -1 +1 @@
1
- const a16_0xb9d737=a16_0x22d6;(function(_0x59fa7e,_0x3958d2){const _0x2b6389=a16_0x22d6,_0x36d581=_0x59fa7e();while(!![]){try{const _0x5e56f6=-parseInt(_0x2b6389(0x8d))/0x1+-parseInt(_0x2b6389(0x77))/0x2+-parseInt(_0x2b6389(0x75))/0x3+parseInt(_0x2b6389(0x99))/0x4+-parseInt(_0x2b6389(0x7c))/0x5+-parseInt(_0x2b6389(0x82))/0x6*(parseInt(_0x2b6389(0x80))/0x7)+parseInt(_0x2b6389(0x6e))/0x8*(parseInt(_0x2b6389(0x8e))/0x9);if(_0x5e56f6===_0x3958d2)break;else _0x36d581['push'](_0x36d581['shift']());}catch(_0x1504e2){_0x36d581['push'](_0x36d581['shift']());}}}(a16_0x2488,0x4e519));import a16_0x416311 from'ora';function a16_0x2488(){const _0x474de3=['split','.ts','start','env','1306205opLXXd','Output\x20directory\x20(default:\x20','Pulling\x20API\x20config\x20for\x20','\x20dataset(s)\x20→\x20','57099GTgzqa','succeed','366CvExYg','output','\x20succeeded,\x20','-api','apiDir','string','fail','cookie','appcode','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','apiFilePath','190897jxWqqJ','279CxDzPN','api','str',')...','message','-client','Done:\x20','rawFlags','\x20model(s)','appCode','isDefault','9040WHIsab','modelCount','name','\x20\x20•\x20','...','length','includes','clientFilePath','slice','Pulling\x20','join','client','Failed:\x20','495928WtIhDy','pull','Pulled\x20','\x20app(s)\x20failed','\x20dataset(s),\x20generated\x20','write','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','1560594KhPmEY','\x20failed','266550CXwVaP'];a16_0x2488=function(){return _0x474de3;};return a16_0x2488();}import a16_0x2e9c85 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';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a16_0x22d6(_0x22001d,_0x5ad9cb){_0x22001d=_0x22001d-0x66;const _0x248838=a16_0x2488();let _0x22d683=_0x248838[_0x22001d];return _0x22d683;}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':a16_0xb9d737(0x8f),'command':a16_0xb9d737(0x6f),'description':a16_0xb9d737(0x8b)+DEFAULT_API_DIR+'/)','risk':a16_0xb9d737(0x73),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0xb9d737(0x83),'type':a16_0xb9d737(0x87),'description':a16_0xb9d737(0x7d)+DEFAULT_API_DIR+'/)'},{'name':'global','type':'boolean','description':a16_0xb9d737(0x74),'default':![]}],async 'execute'(_0x4f13bc){const _0x19f3ec=a16_0xb9d737,_0x8b603e=_0x4f13bc[_0x19f3ec(0x95)][_0x19f3ec(0x8a)]?String(_0x4f13bc['rawFlags']['appcode']):undefined,_0x179ef1=_0x4f13bc[_0x19f3ec(0x90)](_0x19f3ec(0x83))||undefined,_0x2e22eb=resolveTargetApps(_0x4f13bc,_0x8b603e);if(_0x2e22eb){let _0x5d562b=0x0,_0x730bf=0x0;for(const _0x545b3d of _0x2e22eb){const _0x4d7633=_0x545b3d[_0x19f3ec(0x89)]||_0x4f13bc[_0x19f3ec(0x89)],_0x1b5ac1=_0x545b3d[_0x19f3ec(0x7b)]||'production';initEnv(_0x1b5ac1);const _0x946557=_0x545b3d['apiDir']||_0x179ef1||_0x4f13bc[_0x19f3ec(0x86)]||DEFAULT_API_DIR,_0x54b78b=_0x545b3d['isDefault']?'':_0x545b3d[_0x19f3ec(0x9b)]||_0x545b3d[_0x19f3ec(0x8a)],_0x1fc4cb=a16_0x416311(_0x19f3ec(0x6a)+_0x545b3d[_0x19f3ec(0x9b)]+'\x20('+_0x545b3d['appcode']+_0x19f3ec(0x91))['start']();try{const {configArray:_0x359893}=await fetchModelList(_0x545b3d[_0x19f3ec(0x8a)],_0x4d7633),_0x145a7d=await generateApiFile(_0x359893,_0x54b78b,_0x545b3d[_0x19f3ec(0x8a)],_0x545b3d[_0x19f3ec(0x98)],_0x1b5ac1,_0x946557,_0x545b3d[_0x19f3ec(0x9b)]);_0x1fc4cb[_0x19f3ec(0x81)](_0x545b3d[_0x19f3ec(0x9b)]+':\x20'+_0x359893[_0x19f3ec(0x66)]+_0x19f3ec(0x7f)+_0x145a7d[_0x19f3ec(0x9a)]+_0x19f3ec(0x96)),writeCliSideChannelLine(_0x19f3ec(0x9c)+_0x145a7d[_0x19f3ec(0x8c)]),writeCliSideChannelLine(_0x19f3ec(0x9c)+_0x145a7d[_0x19f3ec(0x68)]),_0x5d562b++;}catch(_0x2ed320){_0x1fc4cb[_0x19f3ec(0x88)](_0x545b3d['name']+':\x20'+(_0x2ed320 instanceof Error?_0x2ed320[_0x19f3ec(0x92)]:String(_0x2ed320))),_0x730bf++;}}writeCliSideChannelLine('');if(_0x730bf>0x0)writeCliSideChannelLine('!\x20'+_0x730bf+_0x19f3ec(0x71));return{'ok':_0x730bf===0x0,'message':_0x19f3ec(0x94)+_0x5d562b+_0x19f3ec(0x84)+_0x730bf+_0x19f3ec(0x76)};}const _0x5ad6c5=_0x8b603e&&_0x8b603e[_0x19f3ec(0x67)]('-')?_0x8b603e[_0x19f3ec(0x78)]('-')[_0x19f3ec(0x69)](0x1)[_0x19f3ec(0x6b)]('-'):'',_0x10984f=_0x179ef1||_0x4f13bc[_0x19f3ec(0x86)]||DEFAULT_API_DIR,_0x45a854=!_0x8b603e,_0x4d0004=a16_0x416311(_0x19f3ec(0x7e)+_0x4f13bc[_0x19f3ec(0x97)]+_0x19f3ec(0x9d))[_0x19f3ec(0x7a)]();try{const {configArray:_0x503237}=await fetchModelList(_0x4f13bc[_0x19f3ec(0x97)],_0x4f13bc['cookie']),_0x2491eb=await generateApiFile(_0x503237,_0x5ad6c5,_0x4f13bc[_0x19f3ec(0x97)],_0x45a854,getEnv(),_0x10984f);_0x4d0004[_0x19f3ec(0x81)](_0x19f3ec(0x70)+_0x503237['length']+_0x19f3ec(0x72)+_0x2491eb[_0x19f3ec(0x9a)]+_0x19f3ec(0x96));const _0x14a412=_0x5ad6c5?_0x5ad6c5+_0x19f3ec(0x85):_0x19f3ec(0x8f),_0x3ed619=_0x5ad6c5?_0x5ad6c5+_0x19f3ec(0x93):_0x19f3ec(0x6c);return writeCliSideChannelLine(_0x19f3ec(0x9c)+a16_0x2e9c85['join'](_0x10984f,_0x14a412+_0x19f3ec(0x79))),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x2e9c85[_0x19f3ec(0x6b)](_0x10984f,_0x3ed619+_0x19f3ec(0x79))),{'ok':!![],'data':{'datasetCount':_0x503237[_0x19f3ec(0x66)],'modelCount':_0x2491eb[_0x19f3ec(0x9a)]}};}catch(_0x4c3274){_0x4d0004['fail'](_0x19f3ec(0x6d)+(_0x4c3274 instanceof Error?_0x4c3274[_0x19f3ec(0x92)]:String(_0x4c3274)));throw _0x4c3274;}}};
1
+ function a16_0x552e(_0x676434,_0x1a1795){_0x676434=_0x676434-0x1ef;const _0x9ea715=a16_0x9ea7();let _0x552e6b=_0x9ea715[_0x676434];return _0x552e6b;}const a16_0x245f58=a16_0x552e;(function(_0x48bd15,_0x92de2d){const _0x498c70=a16_0x552e,_0x28e9ec=_0x48bd15();while(!![]){try{const _0x5387a2=-parseInt(_0x498c70(0x1f3))/0x1*(-parseInt(_0x498c70(0x215))/0x2)+-parseInt(_0x498c70(0x223))/0x3*(-parseInt(_0x498c70(0x222))/0x4)+parseInt(_0x498c70(0x206))/0x5+parseInt(_0x498c70(0x221))/0x6+-parseInt(_0x498c70(0x210))/0x7+-parseInt(_0x498c70(0x217))/0x8+-parseInt(_0x498c70(0x20c))/0x9;if(_0x5387a2===_0x92de2d)break;else _0x28e9ec['push'](_0x28e9ec['shift']());}catch(_0x4db8c1){_0x28e9ec['push'](_0x28e9ec['shift']());}}}(a16_0x9ea7,0x396c9));import a16_0x4656ed from'ora';import a16_0x77aada 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';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':a16_0x245f58(0x202),'command':a16_0x245f58(0x1fc),'description':'Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20('+DEFAULT_API_DIR+'/)','risk':a16_0x245f58(0x1f8),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x245f58(0x1ff),'type':'string','description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':a16_0x245f58(0x1f1),'type':a16_0x245f58(0x21f),'description':a16_0x245f58(0x1f7),'default':![]}],async 'execute'(_0x43befc){const _0x204dc6=a16_0x245f58,_0x3c1794=_0x43befc[_0x204dc6(0x211)][_0x204dc6(0x21d)]?String(_0x43befc[_0x204dc6(0x211)]['appcode']):undefined,_0xe3736f=_0x43befc[_0x204dc6(0x207)](_0x204dc6(0x1ff))||undefined,_0x26928e=resolveTargetApps(_0x43befc,_0x3c1794);if(_0x26928e){let _0x3d7f76=0x0,_0x1f48c6=0x0;for(const _0x26b661 of _0x26928e){const _0x556645=_0x26b661[_0x204dc6(0x21b)]||_0x43befc[_0x204dc6(0x21b)],_0x68c51c=_0x26b661[_0x204dc6(0x1fb)]||_0x204dc6(0x218);initEnv(_0x68c51c);const _0x3df085=_0x26b661[_0x204dc6(0x200)]||_0xe3736f||_0x43befc[_0x204dc6(0x200)]||DEFAULT_API_DIR,_0x5dec2c=_0x26b661[_0x204dc6(0x20a)]?'':_0x26b661[_0x204dc6(0x208)]||_0x26b661[_0x204dc6(0x21d)],_0x10e51e=a16_0x4656ed(_0x204dc6(0x205)+_0x26b661[_0x204dc6(0x208)]+'\x20('+_0x26b661[_0x204dc6(0x21d)]+_0x204dc6(0x1f9))[_0x204dc6(0x1f4)]();try{const {configArray:_0x4822be}=await fetchModelList(_0x26b661[_0x204dc6(0x21d)],_0x556645),_0x4f3de2=await generateApiFile(_0x4822be,_0x5dec2c,_0x26b661[_0x204dc6(0x21d)],_0x26b661[_0x204dc6(0x20a)],_0x68c51c,_0x3df085,_0x26b661[_0x204dc6(0x208)]);_0x10e51e[_0x204dc6(0x21e)](_0x26b661['name']+':\x20'+_0x4822be[_0x204dc6(0x201)]+_0x204dc6(0x20e)+_0x4f3de2[_0x204dc6(0x214)]+_0x204dc6(0x20b)),writeCliSideChannelLine('\x20\x20•\x20'+_0x4f3de2[_0x204dc6(0x212)]),writeCliSideChannelLine(_0x204dc6(0x1fd)+_0x4f3de2[_0x204dc6(0x216)]),_0x3d7f76++;}catch(_0x1824f1){_0x10e51e[_0x204dc6(0x21c)](_0x26b661['name']+':\x20'+(_0x1824f1 instanceof Error?_0x1824f1[_0x204dc6(0x1f5)]:String(_0x1824f1))),_0x1f48c6++;}}writeCliSideChannelLine('');if(_0x1f48c6>0x0)writeCliSideChannelLine('!\x20'+_0x1f48c6+'\x20app(s)\x20failed');return{'ok':_0x1f48c6===0x0,'message':_0x204dc6(0x1ef)+_0x3d7f76+_0x204dc6(0x20f)+_0x1f48c6+_0x204dc6(0x220)};}const _0x223f53=_0x3c1794&&_0x3c1794['includes']('-')?_0x3c1794[_0x204dc6(0x1f2)]('-')[_0x204dc6(0x204)](0x1)[_0x204dc6(0x213)]('-'):'',_0x123403=_0xe3736f||_0x43befc[_0x204dc6(0x200)]||DEFAULT_API_DIR,_0x3089f8=!_0x3c1794,_0x3330da=a16_0x4656ed(_0x204dc6(0x209)+_0x43befc['appCode']+_0x204dc6(0x1f0))[_0x204dc6(0x1f4)]();try{const {configArray:_0x315b7f}=await fetchModelList(_0x43befc[_0x204dc6(0x20d)],_0x43befc[_0x204dc6(0x21b)]),_0x34a89f=await generateApiFile(_0x315b7f,_0x223f53,_0x43befc[_0x204dc6(0x20d)],_0x3089f8,getEnv(),_0x123403);_0x3330da[_0x204dc6(0x21e)](_0x204dc6(0x21a)+_0x315b7f[_0x204dc6(0x201)]+_0x204dc6(0x219)+_0x34a89f[_0x204dc6(0x214)]+_0x204dc6(0x20b));const _0x459b84=_0x223f53?_0x223f53+_0x204dc6(0x1fa):_0x204dc6(0x202),_0x3a875a=_0x223f53?_0x223f53+_0x204dc6(0x1f6):'client';return writeCliSideChannelLine(_0x204dc6(0x1fd)+a16_0x77aada[_0x204dc6(0x213)](_0x123403,_0x459b84+_0x204dc6(0x203))),writeCliSideChannelLine(_0x204dc6(0x1fd)+a16_0x77aada['join'](_0x123403,_0x3a875a+'.ts')),{'ok':!![],'data':{'datasetCount':_0x315b7f['length'],'modelCount':_0x34a89f[_0x204dc6(0x214)]}};}catch(_0x56f8eb){_0x3330da[_0x204dc6(0x21c)](_0x204dc6(0x1fe)+(_0x56f8eb instanceof Error?_0x56f8eb['message']:String(_0x56f8eb)));throw _0x56f8eb;}}};function a16_0x9ea7(){const _0x4c7f58=['split','779SuNjXe','start','message','-client','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','write',')...','-api','env','pull','\x20\x20•\x20','Failed:\x20','output','apiDir','length','api','.ts','slice','Pulling\x20','2264340xXoUDe','str','name','Pulling\x20API\x20config\x20for\x20','isDefault','\x20model(s)','5892516UdFagp','appCode','\x20dataset(s)\x20→\x20','\x20succeeded,\x20','1814946PGmcHw','rawFlags','apiFilePath','join','modelCount','902tLhmGM','clientFilePath','3692032OtMXTB','production','\x20dataset(s),\x20generated\x20','Pulled\x20','cookie','fail','appcode','succeed','boolean','\x20failed','2444988rmmanD','5620JdAmxl','852wOKelo','Done:\x20','...','global'];a16_0x9ea7=function(){return _0x4c7f58;};return a16_0x9ea7();}
@@ -1 +1 @@
1
- function a17_0x37fe(_0x2d4575,_0x3db406){_0x2d4575=_0x2d4575-0x1f1;const _0x1401e2=a17_0x1401();let _0x37fe36=_0x1401e2[_0x2d4575];return _0x37fe36;}function a17_0x1401(){const _0x4f7636=['830907CVgylm','selectedAppName','5181984ZaoBBy','App\x20\x22','4060OqMnUD','1270128fUQUVj','map','filter','4489254yBUzWX','bool','merged','1606674xitBvk','join','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','186686pHsfKy','project','name','validation','global','1805xnLuAh','1UfHzsF'];a17_0x1401=function(){return _0x4f7636;};return a17_0x1401();}(function(_0x4a94a6,_0x3407ce){const _0x3be174=a17_0x37fe,_0x4947c9=_0x4a94a6();while(!![]){try{const _0x20ea5f=-parseInt(_0x3be174(0x205))/0x1*(parseInt(_0x3be174(0x1ff))/0x2)+-parseInt(_0x3be174(0x1f1))/0x3+parseInt(_0x3be174(0x1f5))/0x4*(-parseInt(_0x3be174(0x204))/0x5)+-parseInt(_0x3be174(0x1fc))/0x6+parseInt(_0x3be174(0x1f9))/0x7+parseInt(_0x3be174(0x1f6))/0x8+parseInt(_0x3be174(0x1f3))/0x9;if(_0x20ea5f===_0x3407ce)break;else _0x4947c9['push'](_0x4947c9['shift']());}catch(_0x3092ec){_0x4947c9['push'](_0x4947c9['shift']());}}}(a17_0x1401,0x5aa9e));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x4de90a,_0x396e3d){const _0x58f226=a17_0x37fe;if(_0x396e3d)return null;const _0x13812b=_0x4de90a[_0x58f226(0x1fa)](_0x58f226(0x203))?_0x58f226(0x1fb):_0x58f226(0x200);let _0x3bac51=getMultiAppConfigs(_0x13812b);if(!_0x3bac51||_0x3bac51['length']===0x0)return null;if(_0x4de90a[_0x58f226(0x1f2)]){const _0x3e2249=_0x3bac51[_0x58f226(0x1f8)](_0x1f3e87=>_0x1f3e87[_0x58f226(0x201)]===_0x4de90a[_0x58f226(0x1f2)]);if(_0x3e2249['length']===0x0){const _0x33b1c4=_0x3bac51[_0x58f226(0x1f7)](_0x271b38=>_0x271b38['name'])[_0x58f226(0x1fd)](',\x20');throw CliErrors[_0x58f226(0x202)](_0x58f226(0x1f4)+_0x4de90a[_0x58f226(0x1f2)]+_0x58f226(0x1fe)+_0x33b1c4);}_0x3bac51=_0x3e2249;}return _0x3bac51;}
1
+ (function(_0x5427cc,_0x16e9c7){const _0x393126=a17_0x19ba,_0x1db794=_0x5427cc();while(!![]){try{const _0x491431=parseInt(_0x393126(0x100))/0x1*(-parseInt(_0x393126(0xfc))/0x2)+parseInt(_0x393126(0x107))/0x3+parseInt(_0x393126(0xf7))/0x4+-parseInt(_0x393126(0xf8))/0x5+-parseInt(_0x393126(0x106))/0x6*(parseInt(_0x393126(0xf9))/0x7)+parseInt(_0x393126(0xfb))/0x8*(parseInt(_0x393126(0x10a))/0x9)+parseInt(_0x393126(0xfa))/0xa;if(_0x491431===_0x16e9c7)break;else _0x1db794['push'](_0x1db794['shift']());}catch(_0x3dcfa6){_0x1db794['push'](_0x1db794['shift']());}}}(a17_0x571a,0xbbb52));import{getMultiAppConfigs}from'../../utils/config.js';function a17_0x571a(){const _0x330431=['length','merged','join','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','2169732sCmmgW','4498152cIeYXj','bool','validation','909LpeEtr','map','2118840DZiVki','2163665DSuFfz','7Whhkbx','1456890rdxqbU','55168ciJLtL','2374iuNUSy','selectedAppName','name','project','1102YDzamM','App\x20\x22'];a17_0x571a=function(){return _0x330431;};return a17_0x571a();}function a17_0x19ba(_0x5df0b1,_0x25bc7f){_0x5df0b1=_0x5df0b1-0xf6;const _0x571af3=a17_0x571a();let _0x19bae3=_0x571af3[_0x5df0b1];return _0x19bae3;}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x439ddc,_0x18fec4){const _0x31e333=a17_0x19ba;if(_0x18fec4)return null;const _0x5898f2=_0x439ddc[_0x31e333(0x108)]('global')?_0x31e333(0x103):_0x31e333(0xff);let _0x3f285e=getMultiAppConfigs(_0x5898f2);if(!_0x3f285e||_0x3f285e[_0x31e333(0x102)]===0x0)return null;if(_0x439ddc['selectedAppName']){const _0x3ffa23=_0x3f285e['filter'](_0x23ef5d=>_0x23ef5d[_0x31e333(0xfe)]===_0x439ddc['selectedAppName']);if(_0x3ffa23[_0x31e333(0x102)]===0x0){const _0x59fb5c=_0x3f285e[_0x31e333(0xf6)](_0x52ca10=>_0x52ca10[_0x31e333(0xfe)])[_0x31e333(0x104)](',\x20');throw CliErrors[_0x31e333(0x109)](_0x31e333(0x101)+_0x439ddc[_0x31e333(0xfd)]+_0x31e333(0x105)+_0x59fb5c);}_0x3f285e=_0x3ffa23;}return _0x3f285e;}
@@ -1 +1 @@
1
- const a18_0x2ce2fd=a18_0x3bbe;function a18_0x346c(){const _0x3a877c=['49455kCOguD','\x20app\x20add\x20<name>\x20--appcode\x20<code>','Added','458760kmDxhd','defaultApp','2679330PPEsfK','11UskuSP','appcode','Missing\x20app\x20name.','args','apps','write','flagMissing','60kGFHsi','Usage:\x20','str','46ZAAlti','trim','4990374LIjRvh','16251870BgzbxO','bool','Use\x20global\x20config\x20scope','App\x20profile\x20name','add','11156tVdOar','App\x20code','\x20app\x20\x22','70uWllzq','validation','global','1034298XvuRVH'];a18_0x346c=function(){return _0x3a877c;};return a18_0x346c();}function a18_0x3bbe(_0x5ed6fa,_0x1e49f1){_0x5ed6fa=_0x5ed6fa-0xf6;const _0x346c17=a18_0x346c();let _0x3bbe28=_0x346c17[_0x5ed6fa];return _0x3bbe28;}(function(_0x12819d,_0x48916d){const _0x24182d=a18_0x3bbe,_0x288e5d=_0x12819d();while(!![]){try{const _0x157f3b=parseInt(_0x24182d(0xfb))/0x1*(parseInt(_0x24182d(0x103))/0x2)+-parseInt(_0x24182d(0x10a))/0x3*(-parseInt(_0x24182d(0xf8))/0x4)+-parseInt(_0x24182d(0x10f))/0x5+-parseInt(_0x24182d(0x109))/0x6+-parseInt(_0x24182d(0x106))/0x7*(parseInt(_0x24182d(0x10d))/0x8)+-parseInt(_0x24182d(0xfd))/0x9+parseInt(_0x24182d(0xfe))/0xa*(parseInt(_0x24182d(0x110))/0xb);if(_0x157f3b===_0x48916d)break;else _0x288e5d['push'](_0x288e5d['shift']());}catch(_0x2c68cc){_0x288e5d['push'](_0x288e5d['shift']());}}}(a18_0x346c,0x47801));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';async function validateArgs(_0x1f6bc9){const _0x391ff7=a18_0x3bbe,_0x425fe3=_0x1f6bc9[_0x391ff7(0x113)][0x0]?.[_0x391ff7(0xfc)]();if(!_0x425fe3)throw CliErrors[_0x391ff7(0x107)](_0x391ff7(0x112),_0x391ff7(0xf9)+CLI_BIN_NAME+_0x391ff7(0x10b));}async function execute(_0x32250e){const _0x5ee162=a18_0x3bbe,_0x48dbff=_0x32250e[_0x5ee162(0x113)][0x0]?.[_0x5ee162(0xfc)]();if(!_0x48dbff)throw CliErrors[_0x5ee162(0x107)](_0x5ee162(0x112),_0x5ee162(0xf9)+CLI_BIN_NAME+_0x5ee162(0x10b));const _0x40ba89=_0x32250e[_0x5ee162(0xfa)](_0x5ee162(0x111));if(!_0x40ba89)throw CliErrors[_0x5ee162(0xf7)]('appcode',_0x5ee162(0xf9)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x2f4967={'global':_0x32250e[_0x5ee162(0xff)]('global')},_0x103b21=readConfig(_0x2f4967);if(!_0x103b21[_0x5ee162(0x114)])_0x103b21[_0x5ee162(0x114)]={};const _0x5b1c00={'appcode':_0x40ba89,...collectAppProfileOverrides(_0x53a59f=>_0x32250e['str'](_0x53a59f))},_0x4954e7=_0x103b21[_0x5ee162(0x114)],_0x22c317=!!_0x4954e7[_0x48dbff];_0x4954e7[_0x48dbff]=_0x5b1c00;if(!_0x103b21[_0x5ee162(0x10e)])_0x103b21['defaultApp']=_0x48dbff;writeConfig(_0x103b21,_0x2f4967);const _0x2c4ad3=!_0x22c317&&_0x103b21[_0x5ee162(0x10e)]===_0x48dbff?'\x20Set\x20as\x20default\x20app.':'',_0xd1c5bc=(_0x22c317?'Updated':_0x5ee162(0x10c))+_0x5ee162(0x105)+_0x48dbff+'\x22\x20(appcode:\x20'+_0x40ba89+')'+scopeLabel(_0x2f4967)+'.'+_0x2c4ad3;return{'ok':!![],'message':_0xd1c5bc};}export const appAddDefinition={'service':'app','command':a18_0x2ce2fd(0x102),'description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a18_0x2ce2fd(0xf6),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a18_0x2ce2fd(0x101),'required':!![]}],'flags':[{'name':a18_0x2ce2fd(0x111),'type':'string','description':a18_0x2ce2fd(0x104),'required':!![]},{'name':a18_0x2ce2fd(0x108),'type':'boolean','description':a18_0x2ce2fd(0x100),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ function a18_0x1e30(){const _0x23a6f8=['Missing\x20app\x20name.','App\x20code','Use\x20global\x20config\x20scope','7148KFGOIZ','validation','7275300DnHBFG','Added','12056TlWjIM','app','string','trim','global','1585lNOunp','248pmSodL','flagMissing','28314oQGvnF','482bIGozr','1644TxcGfF','appcode','\x20app\x20\x22','\x20app\x20add\x20<name>\x20--appcode\x20<code>','defaultApp','\x22\x20(appcode:\x20','args','boolean','284123DpIYAR','bool','apps','write','19261GMGDPh','2863083xLBOqd','Usage:\x20','Add\x20or\x20update\x20an\x20app\x20in\x20config','add','\x20Set\x20as\x20default\x20app.','name','6000BlELiw','App\x20profile\x20name'];a18_0x1e30=function(){return _0x23a6f8;};return a18_0x1e30();}const a18_0x5cac82=a18_0x353d;(function(_0x1536f0,_0x334e61){const _0x261c87=a18_0x353d,_0x10bf37=_0x1536f0();while(!![]){try{const _0x2d8e28=parseInt(_0x261c87(0xfd))/0x1*(-parseInt(_0x261c87(0x10a))/0x2)+-parseInt(_0x261c87(0xf2))/0x3+-parseInt(_0x261c87(0x101))/0x4*(parseInt(_0x261c87(0x106))/0x5)+parseInt(_0x261c87(0xff))/0x6+-parseInt(_0x261c87(0xed))/0x7*(-parseInt(_0x261c87(0x107))/0x8)+parseInt(_0x261c87(0x109))/0x9*(parseInt(_0x261c87(0xf8))/0xa)+-parseInt(_0x261c87(0xf1))/0xb*(-parseInt(_0x261c87(0x10b))/0xc);if(_0x2d8e28===_0x334e61)break;else _0x10bf37['push'](_0x10bf37['shift']());}catch(_0x3bff13){_0x10bf37['push'](_0x10bf37['shift']());}}}(a18_0x1e30,0xebcc5));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0x353d(_0x3424e9,_0x192763){_0x3424e9=_0x3424e9-0xea;const _0x1e30f8=a18_0x1e30();let _0x353dcf=_0x1e30f8[_0x3424e9];return _0x353dcf;}import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x51f539){const _0x559931=a18_0x353d,_0x46beba=_0x51f539[_0x559931(0xeb)][0x0]?.[_0x559931(0x104)]();if(!_0x46beba)throw CliErrors[_0x559931(0xfe)](_0x559931(0xfa),_0x559931(0xf3)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');}async function execute(_0x36fd38){const _0x3d49a7=a18_0x353d,_0x35f48a=_0x36fd38[_0x3d49a7(0xeb)][0x0]?.['trim']();if(!_0x35f48a)throw CliErrors[_0x3d49a7(0xfe)](_0x3d49a7(0xfa),_0x3d49a7(0xf3)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x3a3f89=_0x36fd38['str'](_0x3d49a7(0x10c));if(!_0x3a3f89)throw CliErrors[_0x3d49a7(0x108)]('appcode',_0x3d49a7(0xf3)+CLI_BIN_NAME+_0x3d49a7(0x10e));const _0x3f3af4={'global':_0x36fd38[_0x3d49a7(0xee)](_0x3d49a7(0x105))},_0x1a01d1=readConfig(_0x3f3af4);if(!_0x1a01d1[_0x3d49a7(0xef)])_0x1a01d1[_0x3d49a7(0xef)]={};const _0x224905={'appcode':_0x3a3f89,...collectAppProfileOverrides(_0x31bb64=>_0x36fd38['str'](_0x31bb64))},_0x2d7e0d=_0x1a01d1[_0x3d49a7(0xef)],_0xc4d46b=!!_0x2d7e0d[_0x35f48a];_0x2d7e0d[_0x35f48a]=_0x224905;if(!_0x1a01d1[_0x3d49a7(0x10f)])_0x1a01d1[_0x3d49a7(0x10f)]=_0x35f48a;writeConfig(_0x1a01d1,_0x3f3af4);const _0x2e2adf=!_0xc4d46b&&_0x1a01d1['defaultApp']===_0x35f48a?_0x3d49a7(0xf6):'',_0x58bafd=(_0xc4d46b?'Updated':_0x3d49a7(0x100))+_0x3d49a7(0x10d)+_0x35f48a+_0x3d49a7(0xea)+_0x3a3f89+')'+scopeLabel(_0x3f3af4)+'.'+_0x2e2adf;return{'ok':!![],'message':_0x58bafd};}export const appAddDefinition={'service':a18_0x5cac82(0x102),'command':a18_0x5cac82(0xf5),'description':a18_0x5cac82(0xf4),'risk':a18_0x5cac82(0xf0),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x5cac82(0xf7),'description':a18_0x5cac82(0xf9),'required':!![]}],'flags':[{'name':'appcode','type':a18_0x5cac82(0x103),'description':a18_0x5cac82(0xfb),'required':!![]},{'name':a18_0x5cac82(0x105),'type':a18_0x5cac82(0xec),'description':a18_0x5cac82(0xfc),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};