@lovrabet/rabetbase-cli 2.2.4-beta.6 → 2.2.5-beta.1

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 (216) 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/app-config/delete.js +1 -0
  27. package/lib/commands/app-config/get.js +1 -0
  28. package/lib/commands/app-config/index.js +1 -0
  29. package/lib/commands/app-config/list.js +1 -0
  30. package/lib/commands/app-config/set.js +1 -0
  31. package/lib/commands/app-config/shared.js +1 -0
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/flags.js +1 -1
  47. package/lib/commands/common/validate.js +1 -1
  48. package/lib/commands/config/get.js +1 -1
  49. package/lib/commands/config/index.js +1 -1
  50. package/lib/commands/config/list.js +1 -1
  51. package/lib/commands/config/set.js +1 -1
  52. package/lib/commands/config/shared.js +1 -1
  53. package/lib/commands/data/filter.js +1 -1
  54. package/lib/commands/data/getOne.js +1 -1
  55. package/lib/commands/data/index.js +1 -1
  56. package/lib/commands/data/shared.js +1 -1
  57. package/lib/commands/dataset/business-group-update.js +1 -0
  58. package/lib/commands/dataset/capability.js +1 -1
  59. package/lib/commands/dataset/delete.js +1 -1
  60. package/lib/commands/dataset/detail.js +1 -1
  61. package/lib/commands/dataset/extend-update.js +1 -1
  62. package/lib/commands/dataset/field-update.js +1 -1
  63. package/lib/commands/dataset/index.js +1 -1
  64. package/lib/commands/dataset/list.js +1 -1
  65. package/lib/commands/dataset/operations.js +1 -1
  66. package/lib/commands/dataset/relation-create.js +1 -1
  67. package/lib/commands/dataset/relation-delete.js +1 -1
  68. package/lib/commands/dataset/relation-shared.js +1 -1
  69. package/lib/commands/dataset/relation-update.js +1 -1
  70. package/lib/commands/dataset/relations.js +1 -1
  71. package/lib/commands/dataset/rename.js +1 -1
  72. package/lib/commands/db/analyze-cancel.js +1 -1
  73. package/lib/commands/db/analyze-start.js +1 -1
  74. package/lib/commands/db/analyze-status.js +1 -1
  75. package/lib/commands/db/create.js +1 -1
  76. package/lib/commands/db/delete.js +1 -1
  77. package/lib/commands/db/detail.js +1 -1
  78. package/lib/commands/db/diff.js +1 -1
  79. package/lib/commands/db/index.js +1 -1
  80. package/lib/commands/db/list.js +1 -1
  81. package/lib/commands/db/shared.js +1 -1
  82. package/lib/commands/db/tables.js +1 -1
  83. package/lib/commands/db/test.js +1 -1
  84. package/lib/commands/db/update.js +1 -1
  85. package/lib/commands/doctor.js +1 -1
  86. package/lib/commands/init/index.js +1 -1
  87. package/lib/commands/issue/index.js +1 -1
  88. package/lib/commands/issue/nudge.js +1 -1
  89. package/lib/commands/issue/report.js +1 -1
  90. package/lib/commands/issue/shared.js +1 -1
  91. package/lib/commands/logs/index.js +1 -1
  92. package/lib/commands/menu/index.js +1 -1
  93. package/lib/commands/menu/list.js +1 -1
  94. package/lib/commands/menu/shared/compare-table.js +1 -1
  95. package/lib/commands/menu/shared/index.js +1 -1
  96. package/lib/commands/menu/shared/inquirer.js +1 -1
  97. package/lib/commands/menu/shared/local-pages.js +1 -1
  98. package/lib/commands/menu/shared/logic.js +1 -1
  99. package/lib/commands/menu/shared/service.js +1 -1
  100. package/lib/commands/menu/shared/sync-core.js +1 -1
  101. package/lib/commands/menu/shared/update-core.js +1 -1
  102. package/lib/commands/menu/shared/valid-url.js +1 -1
  103. package/lib/commands/menu/sync.js +1 -1
  104. package/lib/commands/menu/update.js +1 -1
  105. package/lib/commands/page/generate-start.js +1 -1
  106. package/lib/commands/page/generate-status.js +1 -1
  107. package/lib/commands/page/index.js +1 -1
  108. package/lib/commands/page/pull.js +1 -1
  109. package/lib/commands/page/push.js +1 -1
  110. package/lib/commands/page/relation-audit.js +1 -1
  111. package/lib/commands/page/shared.js +1 -1
  112. package/lib/commands/page/standard-page-status.js +1 -1
  113. package/lib/commands/page/sync.js +1 -1
  114. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  115. package/lib/commands/project/create/format-elapsed.js +1 -1
  116. package/lib/commands/project/create/main.js +1 -1
  117. package/lib/commands/project/create/non-interactive.js +1 -1
  118. package/lib/commands/project/create/project-template-path.js +1 -1
  119. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  120. package/lib/commands/project/create/use-format-code.js +1 -1
  121. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  122. package/lib/commands/project/index.js +1 -1
  123. package/lib/commands/project/init.js +1 -1
  124. package/lib/commands/project/upgrade.js +1 -1
  125. package/lib/commands/registry.js +1 -1
  126. package/lib/commands/run/index.js +1 -1
  127. package/lib/commands/schema.js +1 -1
  128. package/lib/commands/skill/index.js +1 -1
  129. package/lib/commands/sql/create.js +1 -1
  130. package/lib/commands/sql/delete.js +1 -1
  131. package/lib/commands/sql/detail.js +1 -1
  132. package/lib/commands/sql/exec.js +1 -1
  133. package/lib/commands/sql/index.js +1 -1
  134. package/lib/commands/sql/list.js +1 -1
  135. package/lib/commands/sql/pull.js +1 -1
  136. package/lib/commands/sql/push.js +1 -1
  137. package/lib/commands/sql/save.js +1 -1
  138. package/lib/commands/sql/shared.js +1 -1
  139. package/lib/commands/sql/status.js +1 -1
  140. package/lib/commands/sql/validate.js +1 -1
  141. package/lib/commands/workspace/index.js +1 -1
  142. package/lib/config/schema.js +1 -1
  143. package/lib/constant/cdn.js +1 -1
  144. package/lib/constant/cli.js +1 -1
  145. package/lib/constant/defaults.js +1 -1
  146. package/lib/constant/domain.js +1 -1
  147. package/lib/constant/env.js +1 -1
  148. package/lib/constant/output.js +1 -1
  149. package/lib/constant/paths.js +1 -1
  150. package/lib/constant/risk.js +1 -1
  151. package/lib/context/app-resolver.js +1 -1
  152. package/lib/context/auth-resolver.js +1 -1
  153. package/lib/context/config-loader.js +1 -1
  154. package/lib/context.js +1 -1
  155. package/lib/core/alias-resolver.js +1 -1
  156. package/lib/core/api-client.js +1 -1
  157. package/lib/core/bff/config.js +1 -1
  158. package/lib/core/bff/file-system.js +1 -1
  159. package/lib/core/bff/hash.js +1 -1
  160. package/lib/core/bff/lock.js +1 -1
  161. package/lib/core/bff/utils.js +1 -1
  162. package/lib/core/db-resolver.js +1 -1
  163. package/lib/core/page/file-system.js +1 -1
  164. package/lib/core/page/hash.js +1 -1
  165. package/lib/core/page/lock.js +1 -1
  166. package/lib/core/sql-sync/config.js +1 -1
  167. package/lib/core/sql-sync/file-system.js +1 -1
  168. package/lib/core/sql-sync/hash.js +1 -1
  169. package/lib/core/sql-sync/lock.js +1 -1
  170. package/lib/core/sql-sync/utils.js +1 -1
  171. package/lib/core/sql-validator.js +1 -1
  172. package/lib/errors.js +1 -1
  173. package/lib/framework/build-all-flags.js +1 -1
  174. package/lib/framework/flags.js +1 -1
  175. package/lib/framework/help.js +1 -1
  176. package/lib/framework/index.js +1 -1
  177. package/lib/framework/output.js +1 -1
  178. package/lib/framework/response.js +1 -1
  179. package/lib/framework/runner-alias.js +1 -1
  180. package/lib/framework/runner.js +1 -1
  181. package/lib/framework/schema-export.js +1 -1
  182. package/lib/framework/types.js +1 -1
  183. package/lib/generated/build-info.js +1 -1
  184. package/lib/help.js +1 -1
  185. package/lib/skills/main.js +1 -1
  186. package/lib/skills/npx-skills-add.js +1 -1
  187. package/lib/telemetry/cli-command-trace.js +1 -1
  188. package/lib/telemetry/cli-help-trace.js +1 -1
  189. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  190. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  191. package/lib/telemetry/send-cli-trace-log.js +1 -1
  192. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  193. package/lib/utils/ai_config.js +1 -1
  194. package/lib/utils/apply-jq-filter.js +1 -1
  195. package/lib/utils/cdn-config.js +1 -1
  196. package/lib/utils/check-sdk-version.js +1 -1
  197. package/lib/utils/cli-version-check.js +1 -1
  198. package/lib/utils/cli-version-policy.js +1 -1
  199. package/lib/utils/config.js +1 -1
  200. package/lib/utils/copy-directory.js +1 -1
  201. package/lib/utils/entity-with-id.js +1 -1
  202. package/lib/utils/file-utils.js +1 -1
  203. package/lib/utils/guides-cdn.js +1 -1
  204. package/lib/utils/http-client.js +1 -1
  205. package/lib/utils/is-non-interactive.js +1 -1
  206. package/lib/utils/logger.js +1 -1
  207. package/lib/utils/params.js +1 -1
  208. package/lib/utils/platform.js +1 -1
  209. package/lib/utils/rules-cdn.js +1 -1
  210. package/lib/utils/sleep.js +1 -1
  211. package/lib/utils/template-replacer.js +1 -1
  212. package/lib/utils/update-notice.js +1 -1
  213. package/lib/utils/version.js +1 -1
  214. package/lib/utils/with-active-cookie.js +1 -1
  215. package/lib/utils/write-cli-side-channel.js +1 -1
  216. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x6e4fbd,_0xf5de24){const _0x3d0555=a0_0x62a0,_0x3495c8=_0x6e4fbd();while(!![]){try{const _0x5a0176=-parseInt(_0x3d0555(0x135))/0x1+-parseInt(_0x3d0555(0x144))/0x2*(parseInt(_0x3d0555(0x13b))/0x3)+parseInt(_0x3d0555(0x141))/0x4+-parseInt(_0x3d0555(0x131))/0x5*(parseInt(_0x3d0555(0x138))/0x6)+-parseInt(_0x3d0555(0x147))/0x7*(parseInt(_0x3d0555(0x130))/0x8)+parseInt(_0x3d0555(0x12d))/0x9*(-parseInt(_0x3d0555(0x12a))/0xa)+parseInt(_0x3d0555(0x13e))/0xb;if(_0x5a0176===_0xf5de24)break;else _0x3495c8['push'](_0x3495c8['shift']());}catch(_0x5aadeb){_0x3495c8['push'](_0x3495c8['shift']());}}}(a0_0xc596,0x55ca9));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x2c5ffb from'node:path';import{getApiDomain}from'../constant/domain.js';function a0_0x62a0(_0x12f188,_0x5ab955){_0x12f188=_0x12f188-0x125;const _0xc5967d=a0_0xc596();let _0x62a05c=_0xc5967d[_0x12f188];return _0x62a05c;}import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';function a0_0xc596(){const _0x156e44=['.md\x20-\x20','8659387eKSpPZ','tableName','success','1899924bAHHAb','utf8','api-doc','32kZcUQC',']\x20Generating:\x20','Waiting\x203\x20seconds...\x0a','237909SDJWrJ','Fetch\x20doc\x20(','name','datasetCode','):\x20missing\x20data.markdown\x20field','length','log','Invalid\x20response\x20format\x20(','287690zwERUE','✓\x20Generated:\x20','生成文档成功:\x20','18LfaruO','POST','.md','8ulSfMo','32575BMcgUD','message','push','markdown','563954TItgqT','.md\x20(','join','12LrSBFs','生成文档失败:\x20','✗\x20Failed:\x20','45429wQItMt','error'];a0_0xc596=function(){return _0x156e44;};return a0_0xc596();}export async function fetchDatasetDoc(_0x13976e){const _0x40a5d1=a0_0x62a0,{appCode:_0x1f71b0,cookie:_0x465f7e,datasetCode:_0x5c4fde,datasetId:_0x4e334c,extraParams:_0x22933c}=_0x13976e,_0x1e79e2=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x2e8db5=await platformFetch(_0x1e79e2,{'method':_0x40a5d1(0x12e),'body':{'appCode':_0x1f71b0,'datasetCode':_0x5c4fde,'datasetId':_0x4e334c,..._0x22933c||{}},'cookie':_0x465f7e,'label':_0x40a5d1(0x148)+_0x5c4fde+')'});if(!_0x2e8db5||typeof _0x2e8db5[_0x40a5d1(0x134)]!=='string')throw new Error(_0x40a5d1(0x129)+_0x5c4fde+_0x40a5d1(0x126));return _0x2e8db5[_0x40a5d1(0x134)];}function delay(_0x43cdf0){return new Promise(_0x3c38fd=>setTimeout(_0x3c38fd,_0x43cdf0));}export async function generateDatasetDocs(_0x1a1671,_0x476127,_0x1eef43,_0x32df11='./docs',_0x29b82b,_0x4d8618){const _0x5ba971=a0_0x62a0;mkdirSync(_0x32df11,{'recursive':!![]});const _0x2d39ee=[],_0x30ac9f=_0x1a1671[_0x5ba971(0x127)];console['log']('\x0a'+_0x30ac9f+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x498f44=0x0;_0x498f44<_0x1a1671['length'];_0x498f44++){const _0x2845e1=_0x1a1671[_0x498f44],_0x5bc3a8=_0x498f44+0x1,_0x46bc6f=_0x2845e1[_0x5ba971(0x13f)];try{console[_0x5ba971(0x128)]('['+_0x5bc3a8+'/'+_0x30ac9f+_0x5ba971(0x145)+_0x46bc6f+_0x5ba971(0x136)+_0x2845e1[_0x5ba971(0x149)]+')');if(_0x29b82b)_0x29b82b(_0x5bc3a8,_0x30ac9f,_0x46bc6f);const _0x8b4041=await fetchDatasetDoc({'appCode':_0x476127,'cookie':_0x1eef43,'datasetCode':_0x2845e1[_0x5ba971(0x125)],'datasetId':_0x2845e1['id'],'enableAI':![],'extraParams':_0x4d8618}),_0x299c4b=a0_0x2c5ffb[_0x5ba971(0x137)](_0x32df11,_0x46bc6f+_0x5ba971(0x12f));writeFileSync(_0x299c4b,_0x8b4041,{'encoding':_0x5ba971(0x142)}),console['log'](_0x5ba971(0x12b)+_0x46bc6f+_0x5ba971(0x12f)),logger[_0x5ba971(0x140)](_0x5ba971(0x143),_0x5ba971(0x12c)+_0x46bc6f,undefined,{'datasetCode':_0x2845e1['datasetCode'],'datasetName':_0x2845e1[_0x5ba971(0x149)],'filePath':_0x299c4b,'progress':_0x5bc3a8+'/'+_0x30ac9f}),_0x2d39ee[_0x5ba971(0x133)]({'datasetCode':_0x2845e1[_0x5ba971(0x125)],'datasetName':_0x2845e1[_0x5ba971(0x149)],'filePath':_0x299c4b,'success':!![]});if(_0x5bc3a8<_0x30ac9f)await delay(0x1388);}catch(_0x48c126){const _0x1c7df2=_0x48c126 instanceof Error?_0x48c126[_0x5ba971(0x132)]:String(_0x48c126);console['log'](_0x5ba971(0x13a)+_0x46bc6f+_0x5ba971(0x13d)+_0x1c7df2),logger[_0x5ba971(0x13c)](_0x5ba971(0x143),_0x5ba971(0x139)+_0x2845e1[_0x5ba971(0x125)],{'datasetCode':_0x2845e1['datasetCode'],'datasetName':_0x2845e1[_0x5ba971(0x149)],'error':_0x1c7df2,'progress':_0x5bc3a8+'/'+_0x30ac9f}),_0x2d39ee[_0x5ba971(0x133)]({'datasetCode':_0x2845e1['datasetCode'],'datasetName':_0x2845e1[_0x5ba971(0x149)],'filePath':'','success':![],'error':_0x1c7df2}),_0x5bc3a8<_0x30ac9f&&(console[_0x5ba971(0x128)](_0x5ba971(0x146)),await delay(0xbb8));}}return _0x2d39ee;}
1
+ const a0_0x5e1084=a0_0x2121;function a0_0x2121(_0x2b6512,_0x23c91c){_0x2b6512=_0x2b6512-0xbe;const _0x1fc0a7=a0_0x1fc0();let _0x2121d2=_0x1fc0a7[_0x2b6512];return _0x2121d2;}(function(_0x52d20f,_0x4cb369){const _0x573ddf=a0_0x2121,_0x483c52=_0x52d20f();while(!![]){try{const _0x3972cc=-parseInt(_0x573ddf(0xca))/0x1+parseInt(_0x573ddf(0xd7))/0x2+parseInt(_0x573ddf(0xcc))/0x3*(parseInt(_0x573ddf(0xc8))/0x4)+-parseInt(_0x573ddf(0xce))/0x5*(parseInt(_0x573ddf(0xbe))/0x6)+parseInt(_0x573ddf(0xd6))/0x7+parseInt(_0x573ddf(0xcf))/0x8+-parseInt(_0x573ddf(0xc5))/0x9;if(_0x3972cc===_0x4cb369)break;else _0x483c52['push'](_0x483c52['shift']());}catch(_0x5d31f6){_0x483c52['push'](_0x483c52['shift']());}}}(a0_0x1fc0,0x4b133));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x5f4def 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(_0x3381d5){const _0x1da371=a0_0x2121,{appCode:_0x33bed9,cookie:_0x4e2f35,datasetCode:_0x451bae,datasetId:_0x1a3160,extraParams:_0x378892}=_0x3381d5,_0x5c44b1=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x37653d=await platformFetch(_0x5c44b1,{'method':_0x1da371(0xc2),'body':{'appCode':_0x33bed9,'datasetCode':_0x451bae,'datasetId':_0x1a3160,..._0x378892||{}},'cookie':_0x4e2f35,'label':_0x1da371(0xd5)+_0x451bae+')'});if(!_0x37653d||typeof _0x37653d[_0x1da371(0xc3)]!=='string')throw new Error(_0x1da371(0xdc)+_0x451bae+_0x1da371(0xc1));return _0x37653d['markdown'];}function a0_0x1fc0(){const _0x5e7c62=['push','Fetch\x20doc\x20(','3798487FjqoBS','848002GXMGFB','log','datasetCode','length','api-doc','Invalid\x20response\x20format\x20(','生成文档成功:\x20','✗\x20Failed:\x20','282absDrA','./docs','.md\x20-\x20','):\x20missing\x20data.markdown\x20field','POST','markdown','Waiting\x203\x20seconds...\x0a','8505162GYPnYM','name','error','16TmSvOr','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','270430UIeGLL','message','208569CixBEE','tableName','8035DXELPK','2830000vWfqym','.md','utf8','生成文档失败:\x20','join'];a0_0x1fc0=function(){return _0x5e7c62;};return a0_0x1fc0();}function delay(_0x553779){return new Promise(_0x309a2b=>setTimeout(_0x309a2b,_0x553779));}export async function generateDatasetDocs(_0x23396a,_0x174464,_0x7d615,_0x1d8555=a0_0x5e1084(0xbf),_0xcaebcd,_0x489da1){const _0xa0b8eb=a0_0x5e1084;mkdirSync(_0x1d8555,{'recursive':!![]});const _0x38baa7=[],_0x80b202=_0x23396a[_0xa0b8eb(0xda)];console[_0xa0b8eb(0xd8)]('\x0a'+_0x80b202+_0xa0b8eb(0xc9));for(let _0x413a37=0x0;_0x413a37<_0x23396a[_0xa0b8eb(0xda)];_0x413a37++){const _0x19fe24=_0x23396a[_0x413a37],_0x32c17f=_0x413a37+0x1,_0x825016=_0x19fe24[_0xa0b8eb(0xcd)];try{console[_0xa0b8eb(0xd8)]('['+_0x32c17f+'/'+_0x80b202+']\x20Generating:\x20'+_0x825016+'.md\x20('+_0x19fe24[_0xa0b8eb(0xc6)]+')');if(_0xcaebcd)_0xcaebcd(_0x32c17f,_0x80b202,_0x825016);const _0x3cb09b=await fetchDatasetDoc({'appCode':_0x174464,'cookie':_0x7d615,'datasetCode':_0x19fe24[_0xa0b8eb(0xd9)],'datasetId':_0x19fe24['id'],'enableAI':![],'extraParams':_0x489da1}),_0x3e2fff=a0_0x5f4def[_0xa0b8eb(0xd3)](_0x1d8555,_0x825016+'.md');writeFileSync(_0x3e2fff,_0x3cb09b,{'encoding':_0xa0b8eb(0xd1)}),console[_0xa0b8eb(0xd8)]('✓\x20Generated:\x20'+_0x825016+_0xa0b8eb(0xd0)),logger['success']('api-doc',_0xa0b8eb(0xdd)+_0x825016,undefined,{'datasetCode':_0x19fe24[_0xa0b8eb(0xd9)],'datasetName':_0x19fe24[_0xa0b8eb(0xc6)],'filePath':_0x3e2fff,'progress':_0x32c17f+'/'+_0x80b202}),_0x38baa7[_0xa0b8eb(0xd4)]({'datasetCode':_0x19fe24['datasetCode'],'datasetName':_0x19fe24[_0xa0b8eb(0xc6)],'filePath':_0x3e2fff,'success':!![]});if(_0x32c17f<_0x80b202)await delay(0x1388);}catch(_0xe90491){const _0x317ab6=_0xe90491 instanceof Error?_0xe90491[_0xa0b8eb(0xcb)]:String(_0xe90491);console[_0xa0b8eb(0xd8)](_0xa0b8eb(0xde)+_0x825016+_0xa0b8eb(0xc0)+_0x317ab6),logger[_0xa0b8eb(0xc7)](_0xa0b8eb(0xdb),_0xa0b8eb(0xd2)+_0x19fe24[_0xa0b8eb(0xd9)],{'datasetCode':_0x19fe24[_0xa0b8eb(0xd9)],'datasetName':_0x19fe24[_0xa0b8eb(0xc6)],'error':_0x317ab6,'progress':_0x32c17f+'/'+_0x80b202}),_0x38baa7[_0xa0b8eb(0xd4)]({'datasetCode':_0x19fe24[_0xa0b8eb(0xd9)],'datasetName':_0x19fe24[_0xa0b8eb(0xc6)],'filePath':'','success':![],'error':_0x317ab6}),_0x32c17f<_0x80b202&&(console['log'](_0xa0b8eb(0xc4)),await delay(0xbb8));}}return _0x38baa7;}
@@ -1 +1 @@
1
- function a1_0x1f38(_0x5ba369,_0x5bc591){_0x5ba369=_0x5ba369-0x1d3;const _0x53ff4e=a1_0x53ff();let _0x1f3842=_0x53ff4e[_0x5ba369];return _0x1f3842;}function a1_0x53ff(){const _0x11c385=['60148YirIQJ','/api/node-toolbox/dataset/model-list?appcode=','91932OFukDf','replace','正在从服务器拉取模型列表...\x20(环境:\x20','Fetch\x20datasets','867244MeYiJP','trim','length','fetch-model-list','configArray','info','63DdVKYx','2785854pztSnf','1961660yuQuYZ','650997YPePbf','654904lhxAjB','map'];a1_0x53ff=function(){return _0x11c385;};return a1_0x53ff();}(function(_0x4a558b,_0x5157a2){const _0x9d7a6a=a1_0x1f38,_0x44db5e=_0x4a558b();while(!![]){try{const _0x500cb4=-parseInt(_0x9d7a6a(0x1d3))/0x1+parseInt(_0x9d7a6a(0x1e3))/0x2+parseInt(_0x9d7a6a(0x1e0))/0x3+parseInt(_0x9d7a6a(0x1d7))/0x4+-parseInt(_0x9d7a6a(0x1df))/0x5+-parseInt(_0x9d7a6a(0x1de))/0x6+-parseInt(_0x9d7a6a(0x1dd))/0x7*(-parseInt(_0x9d7a6a(0x1e1))/0x8);if(_0x500cb4===_0x5157a2)break;else _0x44db5e['push'](_0x44db5e['shift']());}catch(_0x10d468){_0x44db5e['push'](_0x44db5e['shift']());}}}(a1_0x53ff,0x3d8ae));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x26f5d4){const _0x45c453=a1_0x1f38;return _0x26f5d4[_0x45c453(0x1d4)](/[\r\n]+/g,'\x20')[_0x45c453(0x1d8)]();}function cleanDatasetName(_0x33d0cb){if(!_0x33d0cb['name'])return _0x33d0cb;return{..._0x33d0cb,'name':cleanNewlines(_0x33d0cb['name'])};}export async function fetchModelList(_0x5c5b70,_0x47d9be){const _0x583b73=a1_0x1f38,_0x53cd34=getEnv(),_0x1522ba=getApiDomain()+_0x583b73(0x1e4)+_0x5c5b70+'&otype=array';logger[_0x583b73(0x1dc)](_0x583b73(0x1da),_0x583b73(0x1d5)+_0x53cd34+')',{'apiUrl':_0x1522ba});const _0x29463e=await platformFetch(_0x1522ba,{'cookie':_0x47d9be,'label':_0x583b73(0x1d6)}),_0x3df604=(_0x29463e[_0x583b73(0x1db)]??[])[_0x583b73(0x1e2)](cleanDatasetName);return{'configArray':_0x3df604,'count':_0x3df604[_0x583b73(0x1d9)]};}
1
+ (function(_0x1f4f9f,_0x114a29){const _0x4d3748=a1_0x16ac,_0x4dc8bb=_0x1f4f9f();while(!![]){try{const _0x13f053=-parseInt(_0x4d3748(0x181))/0x1*(parseInt(_0x4d3748(0x182))/0x2)+parseInt(_0x4d3748(0x176))/0x3+parseInt(_0x4d3748(0x17e))/0x4+-parseInt(_0x4d3748(0x17f))/0x5*(parseInt(_0x4d3748(0x179))/0x6)+-parseInt(_0x4d3748(0x173))/0x7*(-parseInt(_0x4d3748(0x17c))/0x8)+-parseInt(_0x4d3748(0x183))/0x9+parseInt(_0x4d3748(0x177))/0xa;if(_0x13f053===_0x114a29)break;else _0x4dc8bb['push'](_0x4dc8bb['shift']());}catch(_0xf5ea49){_0x4dc8bb['push'](_0x4dc8bb['shift']());}}}(a1_0x89d6,0x6dada));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x89d6(){const _0x16c62e=['正在从服务器拉取模型列表...\x20(环境:\x20','1916508rWHCEF','265AGbIXP','/api/node-toolbox/dataset/model-list?appcode=','45549onQZtN','14ULhHgo','7446834KdaXTa','&otype=array','7tWSaxF','length','info','557430ZGgIyf','9067070OqMLde','trim','64428RSdBya','fetch-model-list','replace','4743848eLTozz'];a1_0x89d6=function(){return _0x16c62e;};return a1_0x89d6();}import{platformFetch}from'../core/api-client.js';function a1_0x16ac(_0x5adf1f,_0x138f4e){_0x5adf1f=_0x5adf1f-0x173;const _0x89d679=a1_0x89d6();let _0x16acaa=_0x89d679[_0x5adf1f];return _0x16acaa;}function cleanNewlines(_0x4048d0){const _0x1afa57=a1_0x16ac;return _0x4048d0[_0x1afa57(0x17b)](/[\r\n]+/g,'\x20')[_0x1afa57(0x178)]();}function cleanDatasetName(_0x3fd40f){if(!_0x3fd40f['name'])return _0x3fd40f;return{..._0x3fd40f,'name':cleanNewlines(_0x3fd40f['name'])};}export async function fetchModelList(_0x3141d0,_0x5acf90){const _0x16e2e5=a1_0x16ac,_0x43a86f=getEnv(),_0x477de8=getApiDomain()+_0x16e2e5(0x180)+_0x3141d0+_0x16e2e5(0x184);logger[_0x16e2e5(0x175)](_0x16e2e5(0x17a),_0x16e2e5(0x17d)+_0x43a86f+')',{'apiUrl':_0x477de8});const _0x4dc1b6=await platformFetch(_0x477de8,{'cookie':_0x5acf90,'label':'Fetch\x20datasets'}),_0x80800f=(_0x4dc1b6['configArray']??[])['map'](cleanDatasetName);return{'configArray':_0x80800f,'count':_0x80800f[_0x16e2e5(0x174)]};}
@@ -1 +1 @@
1
- (function(_0x590d08,_0x5d83e8){const _0x371f90=a2_0x414d,_0x18057b=_0x590d08();while(!![]){try{const _0x2f30ad=parseInt(_0x371f90(0x1ea))/0x1*(-parseInt(_0x371f90(0x1cf))/0x2)+-parseInt(_0x371f90(0x1f3))/0x3*(parseInt(_0x371f90(0x1dc))/0x4)+parseInt(_0x371f90(0x1cd))/0x5+-parseInt(_0x371f90(0x1de))/0x6*(-parseInt(_0x371f90(0x1e1))/0x7)+parseInt(_0x371f90(0x1ce))/0x8*(parseInt(_0x371f90(0x1d9))/0x9)+-parseInt(_0x371f90(0x1d3))/0xa+parseInt(_0x371f90(0x1e2))/0xb*(parseInt(_0x371f90(0x1e3))/0xc);if(_0x2f30ad===_0x5d83e8)break;else _0x18057b['push'](_0x18057b['shift']());}catch(_0x227de2){_0x18057b['push'](_0x18057b['shift']());}}}(a2_0x2d1f,0x328ff));import a2_0x25eee2 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';function a2_0x2d1f(){const _0x1f571b=['alias','resolve','test','success','init-api','14VjJTJY','name','api.ts.tpl','templates/generate-api','{\x20apiConfigName:\x20\x22','push','../..','\x22\x20}','replace','3GcSKMY',',\x20env:\x20\x22','API\x20文件生成成功!','toUpperCase','-client','1479220EPfwej','17968xVFWVT','52810WHHfjU','utf8','datasetCode','dirname','459470GQYZeW','\x20config\x20set\x20app\x20<value>`','join','forEach','key','{\x20apiConfigName:\x20','207mRByXF','length','api','441016MCVLvN','typescript','6apATBw','-api','tableName','2328627tftQYS','121PozFaL','57612kGyXid','CONFIG_NAMES.DEFAULT'];a2_0x2d1f=function(){return _0x1f571b;};return a2_0x2d1f();}import a2_0x39868a from'node:path';function a2_0x414d(_0x42ce0c,_0x468158){_0x42ce0c=_0x42ce0c-0x1cd;const _0x2d1f64=a2_0x2d1f();let _0x414d5e=_0x2d1f64[_0x42ce0c];return _0x414d5e;}import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x432d19,_0x57b642,_0x45e641,_0xba0313,_0x5dc837,_0x505ae2,_0x843995){const _0x584d5b=a2_0x414d;if(!_0x45e641)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+_0x584d5b(0x1d4));const _0x206a58=_0xba0313&&!_0x843995,_0x3c5037=_0x843995||_0x45e641,_0x3c9de0=_0x206a58?_0x584d5b(0x1e4):'\x22'+_0x3c5037+'\x22',_0x5edd89=!isProduction(_0x5dc837);let _0x61728a;if(_0x206a58)_0x5edd89?_0x61728a=_0x584d5b(0x1d8)+_0x3c9de0+_0x584d5b(0x1f4)+_0x5dc837+_0x584d5b(0x1f1):_0x61728a='';else{const _0x414cd5=_0x5edd89?_0x584d5b(0x1f4)+_0x5dc837+'\x22':'';_0x61728a=_0x584d5b(0x1ee)+_0x3c5037+'\x22'+_0x414cd5+'\x20}';}const _0x2e012b=_0x57b642?_0x57b642+_0x584d5b(0x1df):_0x584d5b(0x1db),_0x26f95e=_0x57b642?_0x57b642+_0x584d5b(0x1f7):'client',_0x43cd70=_0x57b642&&!/^app-[a-f0-9]+$/i[_0x584d5b(0x1e7)](_0x57b642)?_0x57b642[_0x584d5b(0x1f2)](/-/g,'_')[_0x584d5b(0x1f6)]():'LOVRABET',_0x141dd7=[];_0x432d19[_0x584d5b(0x1d6)](_0x42dd58=>{const _0x1f3bf7=_0x584d5b;_0x141dd7[_0x1f3bf7(0x1ef)]({'datasetCode':_0x42dd58[_0x1f3bf7(0x1d1)],'tableName':_0x42dd58[_0x1f3bf7(0x1e0)],'name':_0x42dd58[_0x1f3bf7(0x1eb)]||'','alias':_0x42dd58['alias']||_0x42dd58[_0x1f3bf7(0x1d7)]});});const _0x4205f0=fileURLToPath(import.meta.url),_0x1e40bf=a2_0x39868a[_0x584d5b(0x1e6)](a2_0x39868a[_0x584d5b(0x1d2)](_0x4205f0),_0x584d5b(0x1f0)),_0x133558=a2_0x39868a[_0x584d5b(0x1d5)](_0x1e40bf,_0x584d5b(0x1ed)),_0x481b7c=a2_0x39868a['join'](_0x133558,_0x584d5b(0x1ec)),_0x5daf3e=a2_0x39868a[_0x584d5b(0x1d5)](_0x133558,'client.ts.tpl'),_0x3e422c=_0x505ae2;mkdirSync(_0x3e422c,{'recursive':!![]});const _0x1d0825=_0x141dd7[0x0]?.[_0x584d5b(0x1e5)],_0x57a741=readFileSync(_0x481b7c,_0x584d5b(0x1d0)),_0x1d5272=TemplateReplacer['replaceApiContent'](_0x57a741,_0x45e641,_0x141dd7,_0x1d0825,_0x2e012b,_0x3c9de0,undefined,_0x43cd70),_0x999207=await a2_0x25eee2['format'](_0x1d5272,{'parser':_0x584d5b(0x1dd)}),_0x4c2ffe=a2_0x39868a['join'](_0x3e422c,_0x2e012b+'.ts');writeFileSync(_0x4c2ffe,_0x999207,{'encoding':_0x584d5b(0x1d0)});const _0x3b2783=readFileSync(_0x5daf3e,_0x584d5b(0x1d0)),_0x10e19e=TemplateReplacer['replaceApiContent'](_0x3b2783,_0x45e641,_0x141dd7,_0x1d0825,_0x2e012b,_0x3c9de0,_0x61728a,_0x43cd70),_0x19e187=await a2_0x25eee2['format'](_0x10e19e,{'parser':_0x584d5b(0x1dd)}),_0x5d0bdb=a2_0x39868a[_0x584d5b(0x1d5)](_0x3e422c,_0x26f95e+'.ts');writeFileSync(_0x5d0bdb,_0x19e187,{'encoding':_0x584d5b(0x1d0)});const _0x5aa85b=_0x141dd7[_0x584d5b(0x1da)];return logger[_0x584d5b(0x1e8)](_0x584d5b(0x1e9),_0x584d5b(0x1f5),undefined,{'apiFile':_0x4c2ffe,'clientFile':_0x5d0bdb,'modelCount':_0x5aa85b,'configName':_0x3c9de0}),{'modelCount':_0x5aa85b,'apiFilePath':_0x4c2ffe,'clientFilePath':_0x5d0bdb,'configName':_0x3c9de0};}
1
+ (function(_0x4daaa8,_0x373e3d){const _0x582c2c=a2_0x261d,_0x4d643a=_0x4daaa8();while(!![]){try{const _0x2476f9=-parseInt(_0x582c2c(0x9e))/0x1+-parseInt(_0x582c2c(0x94))/0x2+-parseInt(_0x582c2c(0x80))/0x3+parseInt(_0x582c2c(0x93))/0x4*(-parseInt(_0x582c2c(0x98))/0x5)+parseInt(_0x582c2c(0x83))/0x6*(-parseInt(_0x582c2c(0x92))/0x7)+parseInt(_0x582c2c(0x89))/0x8*(parseInt(_0x582c2c(0x90))/0x9)+parseInt(_0x582c2c(0x7e))/0xa;if(_0x2476f9===_0x373e3d)break;else _0x4d643a['push'](_0x4d643a['shift']());}catch(_0x37262e){_0x4d643a['push'](_0x4d643a['shift']());}}}(a2_0x26f4,0x1aa1d));import a2_0x1dd73e from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x1e1b6d from'node:path';import{fileURLToPath}from'node:url';function a2_0x26f4(){const _0x287bbe=['2367pfAinJ','length','14BSOBiM','431620RbsBUG','259914vaYdGV','replace','replaceApiContent','forEach','5NQHSHd','key','alias','api.ts.tpl','API\x20文件生成成功!','dirname','168535HpeCkf','-client','../..',',\x20env:\x20\x22','typescript','Please\x20configure\x20app\x20code\x20first\x20via\x20`','api','\x22\x20}','5074800rWYemG','test','89319IhaehB','success','push','297744OodudC','format','name','resolve','utf8','client.ts.tpl','4168HfqxrK','.ts','tableName','{\x20apiConfigName:\x20','templates/generate-api','client','join'];a2_0x26f4=function(){return _0x287bbe;};return a2_0x26f4();}import{TemplateReplacer}from'../utils/template-replacer.js';function a2_0x261d(_0x55a668,_0x2d39eb){_0x55a668=_0x55a668-0x7a;const _0x26f4e5=a2_0x26f4();let _0x261d59=_0x26f4e5[_0x55a668];return _0x261d59;}import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x5d9f57,_0x4684a7,_0x2435b5,_0x35941f,_0x340089,_0x3d2221,_0x5514e1){const _0x274b6f=a2_0x261d;if(!_0x2435b5)throw new Error(_0x274b6f(0x7b)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x5c3c79=_0x35941f&&!_0x5514e1,_0x4fe079=_0x5514e1||_0x2435b5,_0x562de3=_0x5c3c79?'CONFIG_NAMES.DEFAULT':'\x22'+_0x4fe079+'\x22',_0x1b6a8b=!isProduction(_0x340089);let _0xcfbb38;if(_0x5c3c79)_0x1b6a8b?_0xcfbb38=_0x274b6f(0x8c)+_0x562de3+_0x274b6f(0xa1)+_0x340089+_0x274b6f(0x7d):_0xcfbb38='';else{const _0x1bcb67=_0x1b6a8b?_0x274b6f(0xa1)+_0x340089+'\x22':'';_0xcfbb38='{\x20apiConfigName:\x20\x22'+_0x4fe079+'\x22'+_0x1bcb67+'\x20}';}const _0x67d447=_0x4684a7?_0x4684a7+'-api':_0x274b6f(0x7c),_0xf4641d=_0x4684a7?_0x4684a7+_0x274b6f(0x9f):_0x274b6f(0x8e),_0x52c989=_0x4684a7&&!/^app-[a-f0-9]+$/i[_0x274b6f(0x7f)](_0x4684a7)?_0x4684a7[_0x274b6f(0x95)](/-/g,'_')['toUpperCase']():'LOVRABET',_0x375dbb=[];_0x5d9f57[_0x274b6f(0x97)](_0x48adfc=>{const _0x20a26e=_0x274b6f;_0x375dbb[_0x20a26e(0x82)]({'datasetCode':_0x48adfc['datasetCode'],'tableName':_0x48adfc[_0x20a26e(0x8b)],'name':_0x48adfc[_0x20a26e(0x85)]||'','alias':_0x48adfc[_0x20a26e(0x9a)]||_0x48adfc[_0x20a26e(0x99)]});});const _0x48ea05=fileURLToPath(import.meta.url),_0xc9fd5=a2_0x1e1b6d[_0x274b6f(0x86)](a2_0x1e1b6d[_0x274b6f(0x9d)](_0x48ea05),_0x274b6f(0xa0)),_0x216a16=a2_0x1e1b6d[_0x274b6f(0x8f)](_0xc9fd5,_0x274b6f(0x8d)),_0x5bc65a=a2_0x1e1b6d[_0x274b6f(0x8f)](_0x216a16,_0x274b6f(0x9b)),_0x1c6902=a2_0x1e1b6d['join'](_0x216a16,_0x274b6f(0x88)),_0x3515f1=_0x3d2221;mkdirSync(_0x3515f1,{'recursive':!![]});const _0x4dd69c=_0x375dbb[0x0]?.['alias'],_0x4944fc=readFileSync(_0x5bc65a,_0x274b6f(0x87)),_0x5071d0=TemplateReplacer[_0x274b6f(0x96)](_0x4944fc,_0x2435b5,_0x375dbb,_0x4dd69c,_0x67d447,_0x562de3,undefined,_0x52c989),_0x38a460=await a2_0x1dd73e[_0x274b6f(0x84)](_0x5071d0,{'parser':_0x274b6f(0x7a)}),_0x259924=a2_0x1e1b6d[_0x274b6f(0x8f)](_0x3515f1,_0x67d447+'.ts');writeFileSync(_0x259924,_0x38a460,{'encoding':_0x274b6f(0x87)});const _0x2d3e28=readFileSync(_0x1c6902,'utf8'),_0xbabf7=TemplateReplacer[_0x274b6f(0x96)](_0x2d3e28,_0x2435b5,_0x375dbb,_0x4dd69c,_0x67d447,_0x562de3,_0xcfbb38,_0x52c989),_0x9fc7e9=await a2_0x1dd73e['format'](_0xbabf7,{'parser':_0x274b6f(0x7a)}),_0x3d2446=a2_0x1e1b6d[_0x274b6f(0x8f)](_0x3515f1,_0xf4641d+_0x274b6f(0x8a));writeFileSync(_0x3d2446,_0x9fc7e9,{'encoding':_0x274b6f(0x87)});const _0x1edcf3=_0x375dbb[_0x274b6f(0x91)];return logger[_0x274b6f(0x81)]('init-api',_0x274b6f(0x9c),undefined,{'apiFile':_0x259924,'clientFile':_0x3d2446,'modelCount':_0x1edcf3,'configName':_0x562de3}),{'modelCount':_0x1edcf3,'apiFilePath':_0x259924,'clientFilePath':_0x3d2446,'configName':_0x562de3};}
@@ -1 +1 @@
1
- (function(_0xc1107c,_0x2e0c4c){const _0x7feb3c=a3_0x1c6a,_0x87b924=_0xc1107c();while(!![]){try{const _0x549270=-parseInt(_0x7feb3c(0x11d))/0x1*(-parseInt(_0x7feb3c(0x11e))/0x2)+-parseInt(_0x7feb3c(0x121))/0x3*(parseInt(_0x7feb3c(0x126))/0x4)+-parseInt(_0x7feb3c(0x12d))/0x5+-parseInt(_0x7feb3c(0x128))/0x6*(parseInt(_0x7feb3c(0x130))/0x7)+parseInt(_0x7feb3c(0x120))/0x8+parseInt(_0x7feb3c(0x125))/0x9*(-parseInt(_0x7feb3c(0x122))/0xa)+-parseInt(_0x7feb3c(0x12c))/0xb*(-parseInt(_0x7feb3c(0x11c))/0xc);if(_0x549270===_0x2e0c4c)break;else _0x87b924['push'](_0x87b924['shift']());}catch(_0x70339e){_0x87b924['push'](_0x87b924['shift']());}}}(a3_0x26d2,0xd962a));import{getIsSessionValid}from'../auth/is-session-valid.js';function a3_0x26d2(){const _0x2e7781=['1196877SPAKWM','4632430tymohl','!\x20Login\x20failed.','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','20573GLAfvd','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','Run\x20`','autoYes','log','228cSPrMX','1tbDqZH','2312312LGQGuW','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','10008296xGvLKe','3YKuwit','5459930JzUyVi','validation','No\x20valid\x20session.\x20Login\x20now?','9BkYsfq','4661116QGOJKw','nonInteractive','1932PiOAYJ','stop','start','*\x20Login\x20successful!'];a3_0x26d2=function(){return _0x2e7781;};return a3_0x26d2();}import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a3_0x1c6a(_0x4b05f7,_0x36ce68){_0x4b05f7=_0x4b05f7-0x11a;const _0x26d2cd=a3_0x26d2();let _0x1c6a77=_0x26d2cd[_0x4b05f7];return _0x1c6a77;}import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a3_0x87ff0c from'ora';export async function runAuthServer(_0x7ea76e){const _0x3c9ba6=a3_0x1c6a,_0x53f7c0=await getIsSessionValid();if(_0x53f7c0){console[_0x3c9ba6(0x11b)](_0x3c9ba6(0x11f));return;}if(_0x7ea76e?.['nonInteractive']&&!_0x7ea76e['autoYes'])throw CliErrors[_0x3c9ba6(0x123)](_0x3c9ba6(0x132),_0x3c9ba6(0x133)+CLI_BIN_NAME+'\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.');const _0x2729b0=_0x7ea76e?.[_0x3c9ba6(0x11a)]?!![]:await confirm({'message':_0x3c9ba6(0x124),'default':!![]});if(!_0x2729b0)return;if(_0x7ea76e?.[_0x3c9ba6(0x127)]){console['log'](_0x3c9ba6(0x131));const _0x438d4e=await authServer({'silent':![],'openBrowser':![]});_0x438d4e?console[_0x3c9ba6(0x11b)](_0x3c9ba6(0x12b)):console[_0x3c9ba6(0x11b)](_0x3c9ba6(0x12e));return;}const _0x5e03fb=a3_0x87ff0c(_0x3c9ba6(0x12f))[_0x3c9ba6(0x12a)](),_0x494ea5=await authServer({'silent':!![],'openBrowser':!![]});_0x5e03fb[_0x3c9ba6(0x129)](),_0x494ea5?console[_0x3c9ba6(0x11b)]('*\x20Login\x20successful!'):console[_0x3c9ba6(0x11b)](_0x3c9ba6(0x12e));}
1
+ function a3_0x5df7(_0x41d812,_0x18ae89){_0x41d812=_0x41d812-0xa3;const _0x4d9d0d=a3_0x4d9d();let _0x5df7b2=_0x4d9d0d[_0x41d812];return _0x5df7b2;}function a3_0x4d9d(){const _0x55b4ee=['!\x20Login\x20failed.','*\x20Login\x20successful!','validation','autoYes','stop','nonInteractive','515148qcThTz','6758460QHEVAc','18UzQMfF','382149jUMtKN','184pqsZiA','start','15EPPreu','1722476RKSRKn','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','14iGxwPj','6295090rgGkiG','34581ztQwhn','8348439rjqMfD','log','12pkvblD','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.'];a3_0x4d9d=function(){return _0x55b4ee;};return a3_0x4d9d();}(function(_0x41e443,_0x5548a2){const _0x51b3c2=a3_0x5df7,_0x564250=_0x41e443();while(!![]){try{const _0x252fe6=-parseInt(_0x51b3c2(0xb7))/0x1*(parseInt(_0x51b3c2(0xb5))/0x2)+-parseInt(_0x51b3c2(0xb2))/0x3*(parseInt(_0x51b3c2(0xac))/0x4)+parseInt(_0x51b3c2(0xb6))/0x5+parseInt(_0x51b3c2(0xae))/0x6*(-parseInt(_0x51b3c2(0xb3))/0x7)+parseInt(_0x51b3c2(0xb0))/0x8*(parseInt(_0x51b3c2(0xaf))/0x9)+-parseInt(_0x51b3c2(0xad))/0xa+-parseInt(_0x51b3c2(0xb8))/0xb*(-parseInt(_0x51b3c2(0xa4))/0xc);if(_0x252fe6===_0x5548a2)break;else _0x564250['push'](_0x564250['shift']());}catch(_0x33bf12){_0x564250['push'](_0x564250['shift']());}}}(a3_0x4d9d,0xa98f6));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_0x1d6129 from'ora';export async function runAuthServer(_0x40baf8){const _0x55fca0=a3_0x5df7,_0x135430=await getIsSessionValid();if(_0x135430){console[_0x55fca0(0xa3)]('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}if(_0x40baf8?.[_0x55fca0(0xab)]&&!_0x40baf8['autoYes'])throw CliErrors[_0x55fca0(0xa8)](_0x55fca0(0xa5),'Run\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.');const _0x4bd885=_0x40baf8?.[_0x55fca0(0xa9)]?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x4bd885)return;if(_0x40baf8?.[_0x55fca0(0xab)]){console[_0x55fca0(0xa3)]('Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.');const _0x2650a4=await authServer({'silent':![],'openBrowser':![]});_0x2650a4?console['log'](_0x55fca0(0xa7)):console[_0x55fca0(0xa3)](_0x55fca0(0xa6));return;}const _0x36a04f=a3_0x1d6129(_0x55fca0(0xb4))[_0x55fca0(0xb1)](),_0x197afb=await authServer({'silent':!![],'openBrowser':!![]});_0x36a04f[_0x55fca0(0xaa)](),_0x197afb?console[_0x55fca0(0xa3)](_0x55fca0(0xa7)):console[_0x55fca0(0xa3)](_0x55fca0(0xa6));}
@@ -1 +1 @@
1
- const a4_0x2ae848=a4_0x2d78;(function(_0x1211e1,_0x7a58bf){const _0x132520=a4_0x2d78,_0x314ac9=_0x1211e1();while(!![]){try{const _0x3d2084=parseInt(_0x132520(0xc8))/0x1*(parseInt(_0x132520(0xe2))/0x2)+parseInt(_0x132520(0xc1))/0x3+parseInt(_0x132520(0xe0))/0x4*(-parseInt(_0x132520(0xcf))/0x5)+parseInt(_0x132520(0xc6))/0x6*(parseInt(_0x132520(0xd2))/0x7)+-parseInt(_0x132520(0xdb))/0x8+-parseInt(_0x132520(0xd8))/0x9+parseInt(_0x132520(0xb8))/0xa;if(_0x3d2084===_0x7a58bf)break;else _0x314ac9['push'](_0x314ac9['shift']());}catch(_0x44a4f){_0x314ac9['push'](_0x314ac9['shift']());}}}(a4_0x553f,0x2f81b));import{writeFileSync}from'node:fs';import a4_0x4d20f9 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';function a4_0x553f(){const _0x5ab6a2=['port','2691369qLAcot','https://dev.lovrabet.com:','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','2898344xrZWcv','isAuth','open\x20\x22','createServer','end','4JQnucK','platform','2MUFnPg','headers','catch','object','timeoutMs','5644630XTGsyP','utf-8','xdg-open\x20\x22','darwin','/api/auth/get-session','session','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','📍\x20Login\x20URL:','close','319713ujrUjF','user','cookie','error','listen','30072jmoRCh','/sign-in?redirect=','336201jXXeGM','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','json','Auth\x20server\x20error:','openBrowser','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','text/html;\x20charset=utf-8','1157530sZeaWh','log','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','112onwAOX','🔐\x20Starting\x20login\x20service...','then','writeHead','win32'];a4_0x553f=function(){return _0x5ab6a2;};return a4_0x553f();}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(_0x28f6c8){const _0x13f197=a4_0x2d78,_0x1d3499=_0x28f6c8?.['silent']||![],_0x333a98=_0x28f6c8?.[_0x13f197(0xcc)]??!![],_0x173cef=_0x28f6c8?.[_0x13f197(0xe6)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x2336ec=await(await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json'))[_0x13f197(0xca)]();return new Promise(async(_0x58648c,_0x1bc33e)=>{const _0x1bf490=_0x13f197;let _0x3a36e2=0x0,_0x1b23d5=![],_0x1b4f61;const _0x20c49f=a4_0x4d20f9[_0x1bf490(0xde)](_0x2336ec,async(_0x5593e9,_0x5d1fdd)=>{const _0x1d62ab=_0x1bf490,_0x2c6b6f=getUserDomain(),_0x90f103=_0x5593e9[_0x1d62ab(0xe3)][_0x1d62ab(0xc3)]||'',_0x9bcf93=await fetch(_0x2c6b6f+_0x1d62ab(0xbc),{'headers':{'cookie':_0x90f103}})['then'](_0x5ec7cf=>_0x5ec7cf[_0x1d62ab(0xca)]()),_0x3d137b=_0x9bcf93&&_0x9bcf93[_0x1d62ab(0xbd)]&&_0x9bcf93[_0x1d62ab(0xc2)];if(_0x3d137b){writeFileSync(cookieFile,_0x90f103,_0x1d62ab(0xb9));const _0x27f4f6=buildLoginSuccessHtml();_0x5d1fdd[_0x1d62ab(0xd5)](0xc8,{'Content-Type':_0x1d62ab(0xce)}),_0x5d1fdd['end'](_0x27f4f6),_0x2919a6(!![]);}else{const _0xff48fa=''+encodeURIComponent(_0x1d62ab(0xd9)+_0x3a36e2);_0x5d1fdd[_0x1d62ab(0xd5)](0x12e,{'location':_0x2c6b6f+_0x1d62ab(0xc7)+_0xff48fa}),_0x5d1fdd[_0x1d62ab(0xdf)]();return;}});function _0x2919a6(_0x45599b){const _0x131123=_0x1bf490;if(_0x1b23d5)return;_0x1b23d5=!![],_0x1b4f61&&clearTimeout(_0x1b4f61),_0x20c49f[_0x131123(0xc0)](),_0x58648c(_0x45599b);}_0x20c49f[_0x1bf490(0xc5)](0x0,'127.0.0.1',()=>{const _0x50c526=_0x1bf490,_0x493fe3=_0x20c49f['address']();_0x3a36e2=typeof _0x493fe3===_0x50c526(0xe5)&&_0x493fe3?_0x493fe3[_0x50c526(0xd7)]:Number(_0x493fe3);const _0x16198d=_0x50c526(0xd9)+_0x3a36e2;_0x1b4f61=setTimeout(()=>{const _0x2131e7=_0x50c526;!_0x1d3499&&console[_0x2131e7(0xd0)]('!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.'),_0x2919a6(![]);},_0x173cef);!_0x1d3499&&(console['log'](_0x50c526(0xd3)),console['log'](_0x50c526(0xbf),_0x16198d),_0x333a98?(console[_0x50c526(0xd0)]('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console['log'](''),console[_0x50c526(0xd0)](_0x50c526(0xd1))):console['log'](_0x50c526(0xda)),console[_0x50c526(0xd0)](''));if(!_0x333a98)return;openInBrowser(_0x16198d)[_0x50c526(0xd4)](_0x22ef2f=>{const _0x5cfcd1=_0x50c526;!_0x1d3499&&(_0x22ef2f?console[_0x5cfcd1(0xd0)](_0x5cfcd1(0xbe)):(console[_0x5cfcd1(0xd0)](_0x5cfcd1(0xc9)),console[_0x5cfcd1(0xd0)](_0x5cfcd1(0xcd),_0x16198d)),console[_0x5cfcd1(0xd0)](''));})[_0x50c526(0xe4)](()=>{const _0x4fd16c=_0x50c526;!_0x1d3499&&(console[_0x4fd16c(0xd0)](_0x4fd16c(0xc9)),console[_0x4fd16c(0xd0)](_0x4fd16c(0xcd),_0x16198d),console[_0x4fd16c(0xd0)](''));});}),_0x20c49f['on'](_0x1bf490(0xc4),_0x31af68=>{const _0x3d66d8=_0x1bf490;if(_0x1b23d5)return;_0x1b23d5=!![],_0x1b4f61&&clearTimeout(_0x1b4f61),!_0x1d3499&&console[_0x3d66d8(0xc4)](_0x3d66d8(0xcb),_0x31af68),_0x20c49f[_0x3d66d8(0xc0)](),_0x1bc33e(_0x31af68);});});}function openInBrowser(_0x2bd280){return new Promise(_0x4ace8f=>{const _0x42a17d=a4_0x2d78,_0x39614e=process[_0x42a17d(0xe1)];let _0x5dc15a;if(_0x39614e===_0x42a17d(0xd6))_0x5dc15a='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x2bd280+'\x22';else _0x39614e===_0x42a17d(0xbb)?_0x5dc15a=_0x42a17d(0xdd)+_0x2bd280+'\x22':_0x5dc15a=_0x42a17d(0xba)+_0x2bd280+'\x22';exec(_0x5dc15a,_0x470523=>{_0x470523?_0x4ace8f(![]):_0x4ace8f(!![]);});});}function a4_0x2d78(_0x256559,_0x52f525){_0x256559=_0x256559-0xb8;const _0x553f70=a4_0x553f();let _0x2d7830=_0x553f70[_0x256559];return _0x2d7830;}if(import.meta.main){const isAuth=await authServer();console[a4_0x2ae848(0xd0)](a4_0x2ae848(0xdc),isAuth);}
1
+ function a4_0x5dd9(){const _0x13a461=['close','then','object','platform','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','46960iomDMv','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','99640TRElil','/sign-in?redirect=','4239112GafxdL','end','675665ffcKuQ','16079ELvSve','📍\x20Login\x20URL:','9MEVNZl','port','writeHead','text/html;\x20charset=utf-8','log','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','isAuth','cmd\x20/c\x20start\x20\x22\x22\x20\x22','listen','https://dev.lovrabet.com:','🔐\x20Starting\x20login\x20service...','darwin','timeoutMs','json','catch','error','utf-8','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','6658660WdwkYH','1314dOkdun','308754HSQcrq','Auth\x20server\x20error:','user','https://g.yuntooai.com/cert/lovrabet-dev.json','silent','win32','/api/auth/get-session','cookie','60zbVgAz'];a4_0x5dd9=function(){return _0x13a461;};return a4_0x5dd9();}const a4_0x47115f=a4_0x4fc6;(function(_0x329fe9,_0x3ed9cf){const _0x419ab6=a4_0x4fc6,_0x32d23f=_0x329fe9();while(!![]){try{const _0x23aeb8=-parseInt(_0x419ab6(0x20e))/0x1+parseInt(_0x419ab6(0x1fa))/0x2+-parseInt(_0x419ab6(0x202))/0x3*(-parseInt(_0x419ab6(0x20a))/0x4)+parseInt(_0x419ab6(0x208))/0x5+-parseInt(_0x419ab6(0x1f9))/0x6*(-parseInt(_0x419ab6(0x20f))/0x7)+-parseInt(_0x419ab6(0x20c))/0x8*(-parseInt(_0x419ab6(0x211))/0x9)+-parseInt(_0x419ab6(0x1f8))/0xa;if(_0x23aeb8===_0x3ed9cf)break;else _0x32d23f['push'](_0x32d23f['shift']());}catch(_0xbb006d){_0x32d23f['push'](_0x32d23f['shift']());}}}(a4_0x5dd9,0x5645a));function a4_0x4fc6(_0x301485,_0x2b1e93){_0x301485=_0x301485-0x1ef;const _0x5dd9c0=a4_0x5dd9();let _0x4fc611=_0x5dd9c0[_0x301485];return _0x4fc611;}import{writeFileSync}from'node:fs';import a4_0x76f1a0 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(_0x58f826){const _0x48ef61=a4_0x4fc6,_0x30c97d=_0x58f826?.[_0x48ef61(0x1fe)]||![],_0x29ad7a=_0x58f826?.['openBrowser']??!![],_0x30d8cc=_0x58f826?.[_0x48ef61(0x1f2)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x1d3b1d=await(await fetch(_0x48ef61(0x1fd)))[_0x48ef61(0x1f3)]();return new Promise(async(_0x369b46,_0x3f6ca3)=>{const _0x454678=_0x48ef61;let _0x5eef43=0x0,_0x48285c=![],_0x359745;const _0x5cac4c=a4_0x76f1a0['createServer'](_0x1d3b1d,async(_0x3794f0,_0x454b85)=>{const _0x49f059=a4_0x4fc6,_0x5be779=getUserDomain(),_0x1f8c4d=_0x3794f0['headers'][_0x49f059(0x201)]||'',_0x31c423=await fetch(_0x5be779+_0x49f059(0x200),{'headers':{'cookie':_0x1f8c4d}})['then'](_0x3874f1=>_0x3874f1['json']()),_0x58147f=_0x31c423&&_0x31c423['session']&&_0x31c423[_0x49f059(0x1fc)];if(_0x58147f){writeFileSync(cookieFile,_0x1f8c4d,_0x49f059(0x1f6));const _0x500ed7=buildLoginSuccessHtml();_0x454b85['writeHead'](0xc8,{'Content-Type':_0x49f059(0x214)}),_0x454b85[_0x49f059(0x20d)](_0x500ed7),_0x4ad647(!![]);}else{const _0x5309a1=''+encodeURIComponent(_0x49f059(0x1ef)+_0x5eef43);_0x454b85[_0x49f059(0x213)](0x12e,{'location':_0x5be779+_0x49f059(0x20b)+_0x5309a1}),_0x454b85[_0x49f059(0x20d)]();return;}});function _0x4ad647(_0x337707){const _0x23d377=a4_0x4fc6;if(_0x48285c)return;_0x48285c=!![],_0x359745&&clearTimeout(_0x359745),_0x5cac4c[_0x23d377(0x203)](),_0x369b46(_0x337707);}_0x5cac4c[_0x454678(0x219)](0x0,'127.0.0.1',()=>{const _0x57e508=_0x454678,_0x2c897e=_0x5cac4c['address']();_0x5eef43=typeof _0x2c897e===_0x57e508(0x205)&&_0x2c897e?_0x2c897e[_0x57e508(0x212)]:Number(_0x2c897e);const _0x2bce0b=_0x57e508(0x1ef)+_0x5eef43;_0x359745=setTimeout(()=>{const _0x446ee8=_0x57e508;!_0x30c97d&&console[_0x446ee8(0x215)]('!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.'),_0x4ad647(![]);},_0x30d8cc);!_0x30c97d&&(console[_0x57e508(0x215)](_0x57e508(0x1f0)),console['log'](_0x57e508(0x210),_0x2bce0b),_0x29ad7a?(console[_0x57e508(0x215)](_0x57e508(0x216)),console[_0x57e508(0x215)](''),console[_0x57e508(0x215)]('💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.')):console['log'](_0x57e508(0x207)),console['log'](''));if(!_0x29ad7a)return;openInBrowser(_0x2bce0b)[_0x57e508(0x204)](_0x26369e=>{const _0x370d08=_0x57e508;!_0x30c97d&&(_0x26369e?console[_0x370d08(0x215)]('✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console[_0x370d08(0x215)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x370d08(0x215)](_0x370d08(0x209),_0x2bce0b)),console['log'](''));})[_0x57e508(0x1f4)](()=>{const _0x479f04=_0x57e508;!_0x30c97d&&(console['log'](_0x479f04(0x1f7)),console[_0x479f04(0x215)](_0x479f04(0x209),_0x2bce0b),console['log'](''));});}),_0x5cac4c['on'](_0x454678(0x1f5),_0x2403ae=>{const _0x2341df=_0x454678;if(_0x48285c)return;_0x48285c=!![],_0x359745&&clearTimeout(_0x359745),!_0x30c97d&&console[_0x2341df(0x1f5)](_0x2341df(0x1fb),_0x2403ae),_0x5cac4c[_0x2341df(0x203)](),_0x3f6ca3(_0x2403ae);});});}function openInBrowser(_0x1e2315){return new Promise(_0x7ce1fd=>{const _0x5b22c5=a4_0x4fc6,_0x21330a=process[_0x5b22c5(0x206)];let _0x4b6ede;if(_0x21330a===_0x5b22c5(0x1ff))_0x4b6ede=_0x5b22c5(0x218)+_0x1e2315+'\x22';else _0x21330a===_0x5b22c5(0x1f1)?_0x4b6ede='open\x20\x22'+_0x1e2315+'\x22':_0x4b6ede='xdg-open\x20\x22'+_0x1e2315+'\x22';exec(_0x4b6ede,_0x1100b7=>{_0x1100b7?_0x7ce1fd(![]):_0x7ce1fd(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x47115f(0x215)](a4_0x47115f(0x217),isAuth);}
@@ -1 +1 @@
1
- const a5_0x2b06ce=a5_0x2af2;(function(_0x20eeba,_0x11bd54){const _0x5be321=a5_0x2af2,_0x2b7ee6=_0x20eeba();while(!![]){try{const _0x1feefd=parseInt(_0x5be321(0x98))/0x1+-parseInt(_0x5be321(0x96))/0x2+parseInt(_0x5be321(0x9c))/0x3*(-parseInt(_0x5be321(0x9a))/0x4)+-parseInt(_0x5be321(0x93))/0x5*(parseInt(_0x5be321(0x9b))/0x6)+parseInt(_0x5be321(0x91))/0x7+parseInt(_0x5be321(0x94))/0x8*(parseInt(_0x5be321(0x95))/0x9)+-parseInt(_0x5be321(0x92))/0xa*(parseInt(_0x5be321(0x97))/0xb);if(_0x1feefd===_0x11bd54)break;else _0x2b7ee6['push'](_0x2b7ee6['shift']());}catch(_0x5b20fb){_0x2b7ee6['push'](_0x2b7ee6['shift']());}}}(a5_0x4599,0x5c18e));import{mkdirSync}from'node:fs';function a5_0x4599(){const _0x3c6cd3=['439352Rwynlq','99jCvTaS','63596PAlSda','1209923OhQrPj','312604kbYpBt','.lovrabet','3448yaapeV','21138lnWcHJ','1383PmvHXD','3949050TXwhZP','20UMEdrP','645PptoQU'];a5_0x4599=function(){return _0x3c6cd3;};return a5_0x4599();}import{homedir}from'node:os';import{join}from'node:path';function a5_0x2af2(_0x21077f,_0x562798){_0x21077f=_0x21077f-0x91;const _0x459992=a5_0x4599();let _0x2af217=_0x459992[_0x21077f];return _0x2af217;}export const configDir=join(homedir(),a5_0x2b06ce(0x99));export const cookieFile=join(configDir,'cookie');mkdirSync(configDir,{'recursive':!![]});
1
+ function a5_0x1f06(_0x20c218,_0x527577){_0x20c218=_0x20c218-0x14b;const _0x307b96=a5_0x307b();let _0x1f0698=_0x307b96[_0x20c218];return _0x1f0698;}const a5_0x280f81=a5_0x1f06;(function(_0x256292,_0x10247a){const _0x581c27=a5_0x1f06,_0x357104=_0x256292();while(!![]){try{const _0x2d832e=parseInt(_0x581c27(0x153))/0x1+parseInt(_0x581c27(0x14b))/0x2+-parseInt(_0x581c27(0x150))/0x3*(-parseInt(_0x581c27(0x154))/0x4)+parseInt(_0x581c27(0x155))/0x5+-parseInt(_0x581c27(0x14e))/0x6+parseInt(_0x581c27(0x14c))/0x7+-parseInt(_0x581c27(0x14d))/0x8*(parseInt(_0x581c27(0x151))/0x9);if(_0x2d832e===_0x10247a)break;else _0x357104['push'](_0x357104['shift']());}catch(_0x302f77){_0x357104['push'](_0x357104['shift']());}}}(a5_0x307b,0xcc17b));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x280f81(0x152));function a5_0x307b(){const _0x496ce0=['8zbVofr','5917614tLiBLQ','cookie','3Ezlesr','11383479tuRVpg','.lovrabet','388335uejfMJ','831884CkjkpZ','5458395dbxFCB','2491148ECPMok','1074528rndXji'];a5_0x307b=function(){return _0x496ce0;};return a5_0x307b();}export const cookieFile=join(configDir,a5_0x280f81(0x14f));mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- function a6_0x35a8(){var _0x7dd78=['utf-8','9873850bOpknf','6yFbNcu','11fZwiUs','4FNgzxq','4755273ATtshX','4TObByE','5657193qULZaC','8185335oQhwiT','16bIIHDL','18571944lhMYyw','675384FYDWma','1617672rUbqxu'];a6_0x35a8=function(){return _0x7dd78;};return a6_0x35a8();}(function(_0x285590,_0x44701c){var _0x482156=a6_0x4770,_0x29650c=_0x285590();while(!![]){try{var _0x39fb4d=parseInt(_0x482156(0x1c5))/0x1*(parseInt(_0x482156(0x1ca))/0x2)+-parseInt(_0x482156(0x1c4))/0x3*(parseInt(_0x482156(0x1c3))/0x4)+-parseInt(_0x482156(0x1c7))/0x5*(parseInt(_0x482156(0x1c1))/0x6)+parseInt(_0x482156(0x1cb))/0x7*(-parseInt(_0x482156(0x1c8))/0x8)+parseInt(_0x482156(0x1c6))/0x9+parseInt(_0x482156(0x1cd))/0xa+-parseInt(_0x482156(0x1c2))/0xb*(-parseInt(_0x482156(0x1c9))/0xc);if(_0x39fb4d===_0x44701c)break;else _0x29650c['push'](_0x29650c['shift']());}catch(_0x532327){_0x29650c['push'](_0x29650c['shift']());}}}(a6_0x35a8,0xcaa5a));function a6_0x4770(_0x154547,_0x4db4b7){_0x154547=_0x154547-0x1c1;var _0x35a8e3=a6_0x35a8();var _0x47708e=_0x35a8e3[_0x154547];return _0x47708e;}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x32e514=a6_0x4770;try{return readFileSync(cookieFile,_0x32e514(0x1cc));}catch{}return'';}
1
+ function a6_0xec2f(_0x37d6ea,_0x57859e){_0x37d6ea=_0x37d6ea-0x1f4;var _0x593b47=a6_0x593b();var _0xec2fa8=_0x593b47[_0x37d6ea];return _0xec2fa8;}(function(_0x3df8b4,_0x186842){var _0x1baa27=a6_0xec2f,_0x355b19=_0x3df8b4();while(!![]){try{var _0xedba0d=-parseInt(_0x1baa27(0x1fa))/0x1+parseInt(_0x1baa27(0x1f5))/0x2+parseInt(_0x1baa27(0x1fd))/0x3*(-parseInt(_0x1baa27(0x1f8))/0x4)+-parseInt(_0x1baa27(0x1f6))/0x5+-parseInt(_0x1baa27(0x1f7))/0x6+-parseInt(_0x1baa27(0x1fc))/0x7*(-parseInt(_0x1baa27(0x1fb))/0x8)+parseInt(_0x1baa27(0x1f9))/0x9;if(_0xedba0d===_0x186842)break;else _0x355b19['push'](_0x355b19['shift']());}catch(_0x8eea99){_0x355b19['push'](_0x355b19['shift']());}}}(a6_0x593b,0x48e1e));function a6_0x593b(){var _0x289c51=['10124127lPtHcj','300999PAkxVg','8mKiYfd','3090024VDOZNL','1179078CpVzBk','utf-8','211062qUDtaZ','2413745aOJBEP','1179396XVRYcC','4hrkNDH'];a6_0x593b=function(){return _0x289c51;};return a6_0x593b();}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x23ee15=a6_0xec2f;try{return readFileSync(cookieFile,_0x23ee15(0x1f4));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x490257,_0x1a9bca){const _0x597ec6=a7_0x1bce,_0x55c45c=_0x490257();while(!![]){try{const _0x4ffc11=parseInt(_0x597ec6(0x1dc))/0x1*(parseInt(_0x597ec6(0x1e8))/0x2)+-parseInt(_0x597ec6(0x1e2))/0x3*(parseInt(_0x597ec6(0x1db))/0x4)+-parseInt(_0x597ec6(0x1da))/0x5*(parseInt(_0x597ec6(0x1dd))/0x6)+-parseInt(_0x597ec6(0x1e7))/0x7+-parseInt(_0x597ec6(0x1e5))/0x8*(-parseInt(_0x597ec6(0x1de))/0x9)+-parseInt(_0x597ec6(0x1e9))/0xa*(parseInt(_0x597ec6(0x1e3))/0xb)+parseInt(_0x597ec6(0x1ea))/0xc;if(_0x4ffc11===_0x1a9bca)break;else _0x55c45c['push'](_0x55c45c['shift']());}catch(_0x44f1ff){_0x55c45c['push'](_0x55c45c['shift']());}}}(a7_0x8dfb,0x5413d));function a7_0x8dfb(){const _0x3177c7=['2264269sUxtBK','223666YoOvqB','932480OsjrIU','11900724ErqMdK','946620CZJhKY','347996kutVlU','2HpRiyZ','6HlWWfn','80901XySgop','session','/api/auth/get-session','utf-8','6BCYAVp','44nugkdY','user','168TnenDB','json'];a7_0x8dfb=function(){return _0x3177c7;};return a7_0x8dfb();}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x1bce(_0x101275,_0x23bcb7){_0x101275=_0x101275-0x1da;const _0x8dfb26=a7_0x8dfb();let _0x1bce64=_0x8dfb26[_0x101275];return _0x1bce64;}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x5be341=a7_0x1bce;try{if(!existsSync(cookieFile))return null;const _0x4221f3=readFileSync(cookieFile,_0x5be341(0x1e1)),_0x28891d=await fetch(getUserDomain()+_0x5be341(0x1e0),{'headers':{'cookie':_0x4221f3}});if(!_0x28891d['ok'])return null;const _0x587316=await _0x28891d[_0x5be341(0x1e6)]();if(!_0x587316[_0x5be341(0x1df)]||!_0x587316[_0x5be341(0x1e4)])return null;return _0x587316;}catch{return null;}}
1
+ (function(_0x598aef,_0x497168){const _0x28f335=a7_0x2cc9,_0x51aec4=_0x598aef();while(!![]){try{const _0x5572e5=parseInt(_0x28f335(0xd0))/0x1*(parseInt(_0x28f335(0xce))/0x2)+parseInt(_0x28f335(0xd6))/0x3+-parseInt(_0x28f335(0xd7))/0x4+-parseInt(_0x28f335(0xcc))/0x5*(parseInt(_0x28f335(0xd9))/0x6)+-parseInt(_0x28f335(0xd4))/0x7+parseInt(_0x28f335(0xd3))/0x8+parseInt(_0x28f335(0xcf))/0x9*(parseInt(_0x28f335(0xd2))/0xa);if(_0x5572e5===_0x497168)break;else _0x51aec4['push'](_0x51aec4['shift']());}catch(_0x57221d){_0x51aec4['push'](_0x51aec4['shift']());}}}(a7_0x478d,0x9bfd8));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x478d(){const _0x3efb8c=['4587136aAuMat','user','6gEIbHg','832805fHwhXR','/api/auth/get-session','17138SnxJSc','408087gMFTZC','67oLmBql','utf-8','220JqnDJb','1498128lZOBze','7584668Jiihzu','session','3830610iTvjoG'];a7_0x478d=function(){return _0x3efb8c;};return a7_0x478d();}function a7_0x2cc9(_0x453808,_0x144df7){_0x453808=_0x453808-0xcc;const _0x478dc1=a7_0x478d();let _0x2cc974=_0x478dc1[_0x453808];return _0x2cc974;}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x5c8910=a7_0x2cc9;try{if(!existsSync(cookieFile))return null;const _0x2835ab=readFileSync(cookieFile,_0x5c8910(0xd1)),_0x85e8ee=await fetch(getUserDomain()+_0x5c8910(0xcd),{'headers':{'cookie':_0x2835ab}});if(!_0x85e8ee['ok'])return null;const _0x4d3390=await _0x85e8ee['json']();if(!_0x4d3390[_0x5c8910(0xd5)]||!_0x4d3390[_0x5c8910(0xd8)])return null;return _0x4d3390;}catch{return null;}}
@@ -1 +1 @@
1
- function a8_0x50a5(){const _0x58e500=['914844qxadyz','793328aMxWgW','18PBXspC','4433144tTvCZM','60loDlJJ','13251070HCSLpm','utf-8','64281tsnJbg','1244445RpYPbg','user','51336LieELC','1024PBvBDv','/api/auth/get-session'];a8_0x50a5=function(){return _0x58e500;};return a8_0x50a5();}(function(_0x322f00,_0x28ff7c){const _0x3880f1=a8_0x9f7a,_0x49101b=_0x322f00();while(!![]){try{const _0x360461=parseInt(_0x3880f1(0x184))/0x1+-parseInt(_0x3880f1(0x18a))/0x2+-parseInt(_0x3880f1(0x189))/0x3+-parseInt(_0x3880f1(0x18c))/0x4+-parseInt(_0x3880f1(0x180))/0x5*(parseInt(_0x3880f1(0x186))/0x6)+-parseInt(_0x3880f1(0x183))/0x7*(parseInt(_0x3880f1(0x187))/0x8)+-parseInt(_0x3880f1(0x18b))/0x9*(-parseInt(_0x3880f1(0x181))/0xa);if(_0x360461===_0x28ff7c)break;else _0x49101b['push'](_0x49101b['shift']());}catch(_0xd898ad){_0x49101b['push'](_0x49101b['shift']());}}}(a8_0x50a5,0xc4f09));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a8_0x9f7a(_0x5f4c6f,_0x38773c){_0x5f4c6f=_0x5f4c6f-0x180;const _0x50a516=a8_0x50a5();let _0x9f7acb=_0x50a516[_0x5f4c6f];return _0x9f7acb;}import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x26ace1=a8_0x9f7a;try{if(!existsSync(cookieFile))return![];const _0x2d44b1=readFileSync(cookieFile,_0x26ace1(0x182)),_0x4850ca=await fetch(getUserDomain()+_0x26ace1(0x188),{'headers':{'cookie':_0x2d44b1}})['then'](_0x110d2d=>_0x110d2d['json']());return _0x4850ca&&_0x4850ca['session']&&_0x4850ca[_0x26ace1(0x185)];}catch{}return![];}
1
+ function a8_0x57b0(_0x336a4d,_0x8ae0ee){_0x336a4d=_0x336a4d-0x7b;const _0x57d9a5=a8_0x57d9();let _0x57b0dc=_0x57d9a5[_0x336a4d];return _0x57b0dc;}(function(_0x2656bf,_0x22810e){const _0x2776ba=a8_0x57b0,_0x30a101=_0x2656bf();while(!![]){try{const _0x29d5b7=parseInt(_0x2776ba(0x81))/0x1*(parseInt(_0x2776ba(0x85))/0x2)+parseInt(_0x2776ba(0x84))/0x3*(parseInt(_0x2776ba(0x83))/0x4)+-parseInt(_0x2776ba(0x7f))/0x5*(parseInt(_0x2776ba(0x88))/0x6)+-parseInt(_0x2776ba(0x89))/0x7+-parseInt(_0x2776ba(0x87))/0x8+parseInt(_0x2776ba(0x7d))/0x9*(parseInt(_0x2776ba(0x82))/0xa)+parseInt(_0x2776ba(0x80))/0xb;if(_0x29d5b7===_0x22810e)break;else _0x30a101['push'](_0x30a101['shift']());}catch(_0x439498){_0x30a101['push'](_0x30a101['shift']());}}}(a8_0x57d9,0x71a88));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x5aaf88=a8_0x57b0;try{if(!existsSync(cookieFile))return![];const _0xfbc87=readFileSync(cookieFile,'utf-8'),_0x4d353d=await fetch(getUserDomain()+_0x5aaf88(0x7b),{'headers':{'cookie':_0xfbc87}})[_0x5aaf88(0x7e)](_0x364c6c=>_0x364c6c[_0x5aaf88(0x86)]());return _0x4d353d&&_0x4d353d[_0x5aaf88(0x7c)]&&_0x4d353d['user'];}catch{}return![];}function a8_0x57d9(){const _0x2ad0eb=['20660rNCylt','10112806Wxbtin','1607YlKecF','1891660iPLomQ','168pwuman','45033oKNVLh','1032oyNmUh','json','5724024kCzgsq','1350lHPQQg','5850397xbuTec','/api/auth/get-session','session','27rBCiOe','then'];a8_0x57d9=function(){return _0x2ad0eb;};return a8_0x57d9();}
@@ -1 +1 @@
1
- function a9_0x3dd6(_0x182fb0,_0x1ff802){_0x182fb0=_0x182fb0-0x15d;const _0x474481=a9_0x4744();let _0x3dd676=_0x474481[_0x182fb0];return _0x3dd676;}(function(_0x4a81de,_0xc5339b){const _0x49a932=a9_0x3dd6,_0x432910=_0x4a81de();while(!![]){try{const _0x28e381=parseInt(_0x49a932(0x161))/0x1*(-parseInt(_0x49a932(0x168))/0x2)+parseInt(_0x49a932(0x15f))/0x3*(-parseInt(_0x49a932(0x15d))/0x4)+-parseInt(_0x49a932(0x167))/0x5+parseInt(_0x49a932(0x160))/0x6*(-parseInt(_0x49a932(0x15e))/0x7)+-parseInt(_0x49a932(0x164))/0x8+-parseInt(_0x49a932(0x169))/0x9*(-parseInt(_0x49a932(0x165))/0xa)+parseInt(_0x49a932(0x162))/0xb*(parseInt(_0x49a932(0x166))/0xc);if(_0x28e381===_0xc5339b)break;else _0x432910['push'](_0x432910['shift']());}catch(_0x46b2e2){_0x432910['push'](_0x432910['shift']());}}}(a9_0x4744,0xf12ac));export function buildLoginSuccessHtml(){const _0x26a48f=a9_0x3dd6,_0x1b2f1f='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x26a48f(0x163)+_0x1b2f1f+'</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_0x4744(){const _0x3171ce=['4567568vuMbuX','1310UDxMCH','29709492WrqZkn','6355260vqekMI','11324KMoaAu','3294euovBB','7469296TSePlS','582085pTeVDK','3wWyEZe','102Qozmuq','241hwzUiG','33xhiGLz','<!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>'];a9_0x4744=function(){return _0x3171ce;};return a9_0x4744();}
1
+ function a9_0x216e(_0x4f06ec,_0x1d1876){_0x4f06ec=_0x4f06ec-0x7b;const _0x1a7201=a9_0x1a72();let _0x216efd=_0x1a7201[_0x4f06ec];return _0x216efd;}(function(_0xaf978f,_0x300f99){const _0x4c09b5=a9_0x216e,_0xf53eea=_0xaf978f();while(!![]){try{const _0x1adc02=-parseInt(_0x4c09b5(0x81))/0x1*(-parseInt(_0x4c09b5(0x82))/0x2)+-parseInt(_0x4c09b5(0x7f))/0x3*(-parseInt(_0x4c09b5(0x7b))/0x4)+-parseInt(_0x4c09b5(0x7d))/0x5+-parseInt(_0x4c09b5(0x83))/0x6*(parseInt(_0x4c09b5(0x80))/0x7)+parseInt(_0x4c09b5(0x86))/0x8*(parseInt(_0x4c09b5(0x7c))/0x9)+-parseInt(_0x4c09b5(0x87))/0xa*(parseInt(_0x4c09b5(0x7e))/0xb)+parseInt(_0x4c09b5(0x84))/0xc;if(_0x1adc02===_0x300f99)break;else _0xf53eea['push'](_0xf53eea['shift']());}catch(_0x5db63e){_0xf53eea['push'](_0xf53eea['shift']());}}}(a9_0x1a72,0xa6671));export function buildLoginSuccessHtml(){const _0x55ebee=a9_0x216e,_0x38b681='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x55ebee(0x85)+_0x38b681+_0x55ebee(0x88);}function a9_0x1a72(){const _0xe57e05=['</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>','4wtkPaA','302562LggCGg','1951685gHsfKb','11ynILKH','2044671bjBWul','140HKEdWe','1747bNOynn','122jgjXeG','313374CvsgAe','18149316xtIUfs','<!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>','8xMRZcN','2176830XkgCif'];a9_0x1a72=function(){return _0xe57e05;};return a9_0x1a72();}
@@ -1 +1 @@
1
- function a10_0x35c6(_0x45029f,_0x2795de){_0x45029f=_0x45029f-0x1ce;var _0x5b0c07=a10_0x5b0c();var _0x35c625=_0x5b0c07[_0x45029f];return _0x35c625;}function a10_0x5b0c(){var _0x47fe8d=['40OMwtzI','827028gHyhrE','3436515xgTjzh','10254042XPLtTW','✓\x20Logged\x20out','2imiaBh','!\x20Not\x20logged\x20in','25rPiZmp','4955632xjiWjj','1459136tCiopc','3558MJuYik','7042CWgBjX','47612bGAePZ'];a10_0x5b0c=function(){return _0x47fe8d;};return a10_0x5b0c();}(function(_0x383c6f,_0x4021cb){var _0x3cc6b2=a10_0x35c6,_0x108d63=_0x383c6f();while(!![]){try{var _0x32841d=-parseInt(_0x3cc6b2(0x1d2))/0x1+parseInt(_0x3cc6b2(0x1d6))/0x2*(parseInt(_0x3cc6b2(0x1d3))/0x3)+parseInt(_0x3cc6b2(0x1d0))/0x4*(parseInt(_0x3cc6b2(0x1d8))/0x5)+parseInt(_0x3cc6b2(0x1ce))/0x6*(-parseInt(_0x3cc6b2(0x1cf))/0x7)+parseInt(_0x3cc6b2(0x1da))/0x8+-parseInt(_0x3cc6b2(0x1d4))/0x9+-parseInt(_0x3cc6b2(0x1d1))/0xa*(-parseInt(_0x3cc6b2(0x1d9))/0xb);if(_0x32841d===_0x4021cb)break;else _0x108d63['push'](_0x108d63['shift']());}catch(_0x269e36){_0x108d63['push'](_0x108d63['shift']());}}}(a10_0x5b0c,0x98f68));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x4423cd=a10_0x35c6;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0x4423cd(0x1d5))):console['log'](_0x4423cd(0x1d7));}
1
+ (function(_0x281c57,_0x277d74){var _0x1aff66=a10_0x3da8,_0x3c5d68=_0x281c57();while(!![]){try{var _0x331921=parseInt(_0x1aff66(0x100))/0x1+-parseInt(_0x1aff66(0x104))/0x2+parseInt(_0x1aff66(0x106))/0x3*(-parseInt(_0x1aff66(0x109))/0x4)+parseInt(_0x1aff66(0x107))/0x5+-parseInt(_0x1aff66(0x101))/0x6*(parseInt(_0x1aff66(0x103))/0x7)+parseInt(_0x1aff66(0x105))/0x8+parseInt(_0x1aff66(0x102))/0x9;if(_0x331921===_0x277d74)break;else _0x3c5d68['push'](_0x3c5d68['shift']());}catch(_0xf8704d){_0x3c5d68['push'](_0x3c5d68['shift']());}}}(a10_0x3a47,0x8e527));function a10_0x3a47(){var _0x154cdd=['✓\x20Logged\x20out','1077615hPEUWV','242754NHdjaX','5969772tVoVhg','175JdeurF','896548zTCqKq','7379872XQSFTr','279KLiXOm','706210cveBhy','log','32772bEbkNK'];a10_0x3a47=function(){return _0x154cdd;};return a10_0x3a47();}import{unlinkSync,existsSync}from'node:fs';function a10_0x3da8(_0x43e1a9,_0x5b5fa8){_0x43e1a9=_0x43e1a9-0xff;var _0x3a47ab=a10_0x3a47();var _0x3da80c=_0x3a47ab[_0x43e1a9];return _0x3da80c;}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x4780a3=a10_0x3da8;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x4780a3(0x108)](_0x4780a3(0xff))):console[_0x4780a3(0x108)]('!\x20Not\x20logged\x20in');}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- function a11_0x5e11(_0x3f2350,_0x1b6715){_0x3f2350=_0x3f2350-0x114;const _0x1d2ca1=a11_0x1d2c();let _0x5e113a=_0x1d2ca1[_0x3f2350];return _0x5e113a;}function a11_0x1d2c(){const _0x431cf7=['23IPNgzH','13076160MQVKOl','2793qIoGsu','2754iGjwAI','2969665VvjtlT','6898392nPTJhP','887056mPqIbe','12IgvZmX','508443yRsWPZ','114346HYPOjX'];a11_0x1d2c=function(){return _0x431cf7;};return a11_0x1d2c();}(function(_0x2406be,_0x124285){const _0x59f5f9=a11_0x5e11,_0x158043=_0x2406be();while(!![]){try{const _0x35e011=parseInt(_0x59f5f9(0x116))/0x1*(parseInt(_0x59f5f9(0x115))/0x2)+-parseInt(_0x59f5f9(0x114))/0x3+parseInt(_0x59f5f9(0x11d))/0x4*(parseInt(_0x59f5f9(0x11a))/0x5)+-parseInt(_0x59f5f9(0x119))/0x6*(-parseInt(_0x59f5f9(0x118))/0x7)+-parseInt(_0x59f5f9(0x11c))/0x8+-parseInt(_0x59f5f9(0x11b))/0x9+-parseInt(_0x59f5f9(0x117))/0xa;if(_0x35e011===_0x124285)break;else _0x158043['push'](_0x158043['shift']());}catch(_0x218e8d){_0x158043['push'](_0x158043['shift']());}}}(a11_0x1d2c,0xe1f0c));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};
1
+ function a11_0x5aa5(_0x483606,_0x6c7137){_0x483606=_0x483606-0x173;const _0x3c0f01=a11_0x3c0f();let _0x5aa555=_0x3c0f01[_0x483606];return _0x5aa555;}(function(_0x1fa5b6,_0x1388f7){const _0x329d8d=a11_0x5aa5,_0x2025e4=_0x1fa5b6();while(!![]){try{const _0xb3cb38=parseInt(_0x329d8d(0x17a))/0x1*(-parseInt(_0x329d8d(0x17c))/0x2)+-parseInt(_0x329d8d(0x17d))/0x3*(parseInt(_0x329d8d(0x176))/0x4)+-parseInt(_0x329d8d(0x174))/0x5+-parseInt(_0x329d8d(0x177))/0x6*(-parseInt(_0x329d8d(0x179))/0x7)+parseInt(_0x329d8d(0x178))/0x8*(-parseInt(_0x329d8d(0x173))/0x9)+parseInt(_0x329d8d(0x17b))/0xa+parseInt(_0x329d8d(0x175))/0xb;if(_0xb3cb38===_0x1388f7)break;else _0x2025e4['push'](_0x2025e4['shift']());}catch(_0x31d082){_0x2025e4['push'](_0x2025e4['shift']());}}}(a11_0x3c0f,0x4e2c1));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};function a11_0x3c0f(){const _0x374339=['1DAkFsY','4395480fgAfaD','2854GGwSYM','18LRqUiN','17937oxSspT','1959730fFiqUE','7532789FVvxpV','186128cKHeyg','7302hwTcgt','792MOCxvA','378XRZAgP'];a11_0x3c0f=function(){return _0x374339;};return a11_0x3c0f();}
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x5a6372=a12_0x5df6;(function(_0x1cae73,_0x41b648){const _0x1f910c=a12_0x5df6,_0xd69e4f=_0x1cae73();while(!![]){try{const _0x55eb28=-parseInt(_0x1f910c(0xb2))/0x1*(-parseInt(_0x1f910c(0xd6))/0x2)+parseInt(_0x1f910c(0xc3))/0x3*(-parseInt(_0x1f910c(0xce))/0x4)+parseInt(_0x1f910c(0xc7))/0x5+parseInt(_0x1f910c(0xc2))/0x6*(-parseInt(_0x1f910c(0xba))/0x7)+parseInt(_0x1f910c(0xb8))/0x8+parseInt(_0x1f910c(0xd5))/0x9*(parseInt(_0x1f910c(0xbf))/0xa)+-parseInt(_0x1f910c(0xaa))/0xb;if(_0x55eb28===_0x41b648)break;else _0xd69e4f['push'](_0xd69e4f['shift']());}catch(_0x2b0dd6){_0xd69e4f['push'](_0xd69e4f['shift']());}}}(a12_0x4187,0xa8e37));import a12_0x4d6f02 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';import{printIssueReportNudgeForError}from'./commands/issue/nudge.js';let dynamicCliFlags=null;function a12_0x4187(){const _0x288b83=['`\x20in\x20v2.0.\x0a','10984328eDdoXJ','./constant/domain.js','7nmTULr','`\x20has\x20been\x20moved\x20to\x20`','stderr','Hint:\x20','write','110clTqTp','flags','command','2594964ICPcrJ','675975vQqJQu','log','hint','env','2516085LnfmCf','⚠\x20`','message','input','runtimeDomain','userDomain','./cli-flags.js','12tpyVcC','name','`;\x20prefer\x20`','raw','unknown_service','apiDomain','service','28683VFiCjN','216556dUNUqC','unknown','`\x20is\x20an\x20alias\x20of\x20`','help','string','dynamicCliFlags','7177159ZkzZeb','code','error','slice','`\x20in\x20new\x20scripts.\x0a','wildcardDef','\x0aCancelled.\x0a','./constant/env.js','5ORjPeu','defaultCommand','Unexpected\x20error:','Error:\x20','ExitPromptError'];a12_0x4187=function(){return _0x288b83;};return a12_0x4187();}try{dynamicCliFlags=(await import(a12_0x5a6372(0xcd)))[a12_0x5a6372(0xa9)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x5a6372(0xa5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x5a6372(0xad)](0x0,0xa)+')':VERSION,cli=a12_0x4d6f02(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x21d50a=a12_0x5a6372;let _0x5a0dbb=cli[_0x21d50a(0xca)][0x0],_0x2ba6d3=cli[_0x21d50a(0xca)][0x1];const _0x3b7a1b=cli[_0x21d50a(0xc0)];if(!_0x5a0dbb){await reportCliHelpTrace('global'),showHelp();return;}const _0x3e4bf8=deprecatedAliases[_0x5a0dbb];if(_0x3e4bf8&&!isKnownService(_0x5a0dbb)){const _0x43d7d2=_0x2ba6d3?CLI_BIN_NAME+'\x20'+_0x5a0dbb+'\x20'+_0x2ba6d3:CLI_BIN_NAME+'\x20'+_0x5a0dbb,_0x35fc7b=CLI_BIN_NAME+'\x20'+_0x3e4bf8[_0x21d50a(0xd4)]+'\x20'+_0x3e4bf8[_0x21d50a(0xc1)];console[_0x21d50a(0xac)](_0x21d50a(0xc8)+_0x43d7d2+_0x21d50a(0xbb)+_0x35fc7b+_0x21d50a(0xb7)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x5a0dbb)){await reportCliHelpTrace(_0x21d50a(0xd2),{'service':_0x5a0dbb}),showHelp();return;}const _0x3de038=getServiceEntry(_0x5a0dbb);if(_0x3b7a1b[_0x21d50a(0xc6)]&&typeof _0x3b7a1b[_0x21d50a(0xc6)]===_0x21d50a(0xa8)){const {initEnv:_0x2414e4}=await import(_0x21d50a(0xb1));_0x2414e4(_0x3b7a1b[_0x21d50a(0xc6)]);}const {buildConfigFromFlags:_0x40a518}=await import('./context.js'),_0x3b8e04=_0x40a518(_0x3b7a1b);if(!_0x3b7a1b['env']&&_0x3b8e04['env']){const {initEnv:_0x27a246}=await import(_0x21d50a(0xb1));_0x27a246(_0x3b8e04['env']);}if(_0x3b8e04['raw']?.[_0x21d50a(0xd3)]||_0x3b8e04['raw']?.[_0x21d50a(0xcc)]||_0x3b8e04[_0x21d50a(0xd1)]?.[_0x21d50a(0xcb)]){const {initDomains:_0x490173}=await import(_0x21d50a(0xb9));_0x490173({'apiDomain':_0x3b8e04['raw'][_0x21d50a(0xd3)]||undefined,'userDomain':_0x3b8e04['raw'][_0x21d50a(0xcc)]||undefined,'runtimeDomain':_0x3b8e04[_0x21d50a(0xd1)][_0x21d50a(0xcb)]||undefined});}if(!_0x2ba6d3){if(_0x3b7a1b[_0x21d50a(0xa7)]){printServiceHelp(_0x5a0dbb);return;}if(_0x3de038['defaultCommand'])_0x2ba6d3=_0x3de038[_0x21d50a(0xb3)];else{if(_0x3de038[_0x21d50a(0xaf)]){await dispatchDeclarative(_0x3de038['wildcardDef'],_0x5a0dbb,'',[],_0x3b7a1b,_0x3b8e04);return;}else{printServiceHelp(_0x5a0dbb);return;}}}const _0x4a8cf8=resolveDeprecatedSubcommand(_0x5a0dbb,_0x2ba6d3);if(_0x4a8cf8){const _0x2d3c67=CLI_BIN_NAME+'\x20'+_0x5a0dbb+'\x20'+_0x2ba6d3,_0x3d6d8d=CLI_BIN_NAME+'\x20'+_0x5a0dbb+'\x20'+_0x4a8cf8;console['error'](_0x21d50a(0xc8)+_0x2d3c67+_0x21d50a(0xa6)+_0x3d6d8d+_0x21d50a(0xd0)+_0x3d6d8d+_0x21d50a(0xae)),_0x2ba6d3=_0x4a8cf8;}{let _0xeb139a=findDefinition(_0x5a0dbb,_0x2ba6d3),_0x24a71b=cli[_0x21d50a(0xca)][_0x21d50a(0xad)](0x2);if(!_0xeb139a){if(_0x3de038[_0x21d50a(0xaf)]){if(_0x3b7a1b[_0x21d50a(0xa7)]){console[_0x21d50a(0xc4)](generateCommandHelp(_0x3de038[_0x21d50a(0xaf)]));return;}_0xeb139a=_0x3de038[_0x21d50a(0xaf)],_0x24a71b=[_0x2ba6d3,...cli[_0x21d50a(0xca)][_0x21d50a(0xad)](0x2)];}else{printServiceHelp(_0x5a0dbb),await handleErrorAsync(CliErrors['unknownCommand'](_0x5a0dbb+'\x20'+_0x2ba6d3));return;}}if(_0x3b7a1b[_0x21d50a(0xa7)]){console['log'](generateCommandHelp(_0xeb139a));return;}await dispatchDeclarative(_0xeb139a,_0x5a0dbb,_0x2ba6d3,_0x24a71b,_0x3b7a1b,_0x3b8e04);}}async function dispatchDeclarative(_0x5cd881,_0x3c43bb,_0x3e21a1,_0x16b1e6,_0x46b43c,_0x2009f7){const _0x401542=Date['now']();let _0x3fe84b;try{await runCommand(_0x5cd881,createPipelineEnv(_0x2009f7,_0x46b43c,_0x16b1e6));}catch(_0x3594c1){_0x3fe84b=_0x3594c1;}await reportCommandTrace({'service':_0x3c43bb,'command':_0x3e21a1,'flags':_0x46b43c,'durationMs':Date['now']()-_0x401542,'error':_0x3fe84b});if(_0x3fe84b)await handleErrorAsync(_0x3fe84b,{'service':_0x3c43bb,'command':_0x3e21a1});}function a12_0x5df6(_0x4d26cb,_0x32a9b0){_0x4d26cb=_0x4d26cb-0xa5;const _0x418721=a12_0x4187();let _0x5df68b=_0x418721[_0x4d26cb];return _0x5df68b;}function printServiceHelp(_0x3993f4){const _0x47ad32=a12_0x5a6372;console[_0x47ad32(0xc4)](generateServiceHelp(_0x3993f4));}async function handleErrorAsync(_0x495ab2,_0x232990){const _0x3271e4=a12_0x5a6372;if(_0x495ab2 instanceof Error&&_0x495ab2[_0x3271e4(0xcf)]===_0x3271e4(0xb6))return process[_0x3271e4(0xbc)]['write'](_0x3271e4(0xb0)),await exitWithOtelShutdown(0x0);if(_0x495ab2 instanceof CliError){if(_0x495ab2[_0x3271e4(0xab)]==='cancelled')return process[_0x3271e4(0xbc)][_0x3271e4(0xbe)]('\x0a'+_0x495ab2[_0x3271e4(0xc9)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x3271e4(0xac)](_0x3271e4(0xb5)+_0x495ab2[_0x3271e4(0xc9)]);if(_0x495ab2['hint'])console['error'](_0x3271e4(0xbd)+_0x495ab2[_0x3271e4(0xc5)]);if(_0x232990)printIssueReportNudgeForError(_0x495ab2,_0x232990);return await exitWithOtelShutdown(_0x495ab2['exitCode']);}console['error'](_0x3271e4(0xb4),_0x495ab2);if(_0x232990)printIssueReportNudgeForError(_0x495ab2,_0x232990);return await exitWithOtelShutdown(0x1);}
2
+ const a12_0x5cdfd6=a12_0x38d5;(function(_0x3ea6ae,_0x239f77){const _0x5a3cba=a12_0x38d5,_0x5234db=_0x3ea6ae();while(!![]){try{const _0x4563f7=-parseInt(_0x5a3cba(0xc0))/0x1*(-parseInt(_0x5a3cba(0xad))/0x2)+parseInt(_0x5a3cba(0xbb))/0x3+parseInt(_0x5a3cba(0xb8))/0x4+parseInt(_0x5a3cba(0xb3))/0x5*(-parseInt(_0x5a3cba(0xa5))/0x6)+-parseInt(_0x5a3cba(0xbe))/0x7*(parseInt(_0x5a3cba(0xaf))/0x8)+-parseInt(_0x5a3cba(0xb5))/0x9*(-parseInt(_0x5a3cba(0xb0))/0xa)+-parseInt(_0x5a3cba(0xcd))/0xb;if(_0x4563f7===_0x239f77)break;else _0x5234db['push'](_0x5234db['shift']());}catch(_0x3e2857){_0x5234db['push'](_0x5234db['shift']());}}}(a12_0x5e4c,0xd5689));import a12_0x2d3178 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';function a12_0x5e4c(){const _0x100540=['1133568TJVZky','input','slice','1286425JPcUef','⚠\x20`','180743EHwZFp','userDomain','unknownCommand','stderr','log','global','unknown','error','Error:\x20','cancelled','Hint:\x20','runtimeDomain','help','14659667hnaDxE','./constant/env.js','write','./constant/domain.js','\x0aCancelled.\x0a','now','env','`\x20in\x20v2.0.\x0a','apiDomain','2502012HcesgN','./cli-flags.js','service','code','hint','exitCode','unknown_service','message','10gSsLlG','`\x20in\x20new\x20scripts.\x0a','8lZOxAK','670YsTyGP','Unexpected\x20error:','dynamicCliFlags','15VmBNPn','`\x20has\x20been\x20moved\x20to\x20`','195966rxtLTc','command','./context.js','3604680rQguxv','wildcardDef','raw'];a12_0x5e4c=function(){return _0x100540;};return a12_0x5e4c();}import{printIssueReportNudgeForError}from'./commands/issue/nudge.js';let dynamicCliFlags=null;function a12_0x38d5(_0x47ebdb,_0x553fc2){_0x47ebdb=_0x47ebdb-0x9d;const _0x5e4cb2=a12_0x5e4c();let _0x38d541=_0x5e4cb2[_0x47ebdb];return _0x38d541;}try{dynamicCliFlags=(await import(a12_0x5cdfd6(0xa6)))[a12_0x5cdfd6(0xb2)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x5cdfd6(0xc6)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x5cdfd6(0xbd)](0x0,0xa)+')':VERSION,cli=a12_0x2d3178(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x66ad13=a12_0x5cdfd6;let _0x3e5e9f=cli[_0x66ad13(0xbc)][0x0],_0x5c8acc=cli['input'][0x1];const _0x537ab3=cli['flags'];if(!_0x3e5e9f){await reportCliHelpTrace(_0x66ad13(0xc5)),showHelp();return;}const _0x2fe288=deprecatedAliases[_0x3e5e9f];if(_0x2fe288&&!isKnownService(_0x3e5e9f)){const _0x194b2e=_0x5c8acc?CLI_BIN_NAME+'\x20'+_0x3e5e9f+'\x20'+_0x5c8acc:CLI_BIN_NAME+'\x20'+_0x3e5e9f,_0x197bed=CLI_BIN_NAME+'\x20'+_0x2fe288[_0x66ad13(0xa7)]+'\x20'+_0x2fe288[_0x66ad13(0xb6)];console[_0x66ad13(0xc7)]('⚠\x20`'+_0x194b2e+_0x66ad13(0xb4)+_0x197bed+_0x66ad13(0xa3)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x3e5e9f)){await reportCliHelpTrace(_0x66ad13(0xab),{'service':_0x3e5e9f}),showHelp();return;}const _0x43e196=getServiceEntry(_0x3e5e9f);if(_0x537ab3['env']&&typeof _0x537ab3[_0x66ad13(0xa2)]==='string'){const {initEnv:_0x3b145f}=await import(_0x66ad13(0x9d));_0x3b145f(_0x537ab3['env']);}const {buildConfigFromFlags:_0x59f5be}=await import(_0x66ad13(0xb7)),_0x220463=_0x59f5be(_0x537ab3);if(!_0x537ab3[_0x66ad13(0xa2)]&&_0x220463[_0x66ad13(0xa2)]){const {initEnv:_0x3ae2ff}=await import(_0x66ad13(0x9d));_0x3ae2ff(_0x220463[_0x66ad13(0xa2)]);}if(_0x220463[_0x66ad13(0xba)]?.[_0x66ad13(0xa4)]||_0x220463['raw']?.[_0x66ad13(0xc1)]||_0x220463[_0x66ad13(0xba)]?.['runtimeDomain']){const {initDomains:_0x414937}=await import(_0x66ad13(0x9f));_0x414937({'apiDomain':_0x220463['raw'][_0x66ad13(0xa4)]||undefined,'userDomain':_0x220463['raw'][_0x66ad13(0xc1)]||undefined,'runtimeDomain':_0x220463[_0x66ad13(0xba)][_0x66ad13(0xcb)]||undefined});}if(!_0x5c8acc){if(_0x537ab3['help']){printServiceHelp(_0x3e5e9f);return;}if(_0x43e196['defaultCommand'])_0x5c8acc=_0x43e196['defaultCommand'];else{if(_0x43e196[_0x66ad13(0xb9)]){await dispatchDeclarative(_0x43e196[_0x66ad13(0xb9)],_0x3e5e9f,'',[],_0x537ab3,_0x220463);return;}else{printServiceHelp(_0x3e5e9f);return;}}}const _0x586871=resolveDeprecatedSubcommand(_0x3e5e9f,_0x5c8acc);if(_0x586871){const _0x139e9f=CLI_BIN_NAME+'\x20'+_0x3e5e9f+'\x20'+_0x5c8acc,_0x37309c=CLI_BIN_NAME+'\x20'+_0x3e5e9f+'\x20'+_0x586871;console['error'](_0x66ad13(0xbf)+_0x139e9f+'`\x20is\x20an\x20alias\x20of\x20`'+_0x37309c+'`;\x20prefer\x20`'+_0x37309c+_0x66ad13(0xae)),_0x5c8acc=_0x586871;}{let _0x5dc5de=findDefinition(_0x3e5e9f,_0x5c8acc),_0xda308c=cli['input']['slice'](0x2);if(!_0x5dc5de){if(_0x43e196[_0x66ad13(0xb9)]){if(_0x537ab3[_0x66ad13(0xcc)]){console['log'](generateCommandHelp(_0x43e196['wildcardDef']));return;}_0x5dc5de=_0x43e196[_0x66ad13(0xb9)],_0xda308c=[_0x5c8acc,...cli[_0x66ad13(0xbc)][_0x66ad13(0xbd)](0x2)];}else{printServiceHelp(_0x3e5e9f),await handleErrorAsync(CliErrors[_0x66ad13(0xc2)](_0x3e5e9f+'\x20'+_0x5c8acc));return;}}if(_0x537ab3[_0x66ad13(0xcc)]){console[_0x66ad13(0xc4)](generateCommandHelp(_0x5dc5de));return;}await dispatchDeclarative(_0x5dc5de,_0x3e5e9f,_0x5c8acc,_0xda308c,_0x537ab3,_0x220463);}}async function dispatchDeclarative(_0x5930a0,_0x59f4bd,_0x4ef8c5,_0x10b8b1,_0x363877,_0x2bac23){const _0xe2df82=a12_0x5cdfd6,_0x229096=Date['now']();let _0xd3e665;try{await runCommand(_0x5930a0,createPipelineEnv(_0x2bac23,_0x363877,_0x10b8b1));}catch(_0xd725cb){_0xd3e665=_0xd725cb;}await reportCommandTrace({'service':_0x59f4bd,'command':_0x4ef8c5,'flags':_0x363877,'durationMs':Date[_0xe2df82(0xa1)]()-_0x229096,'error':_0xd3e665});if(_0xd3e665)await handleErrorAsync(_0xd3e665,{'service':_0x59f4bd,'command':_0x4ef8c5});}function printServiceHelp(_0x2b98f5){const _0x12431d=a12_0x5cdfd6;console[_0x12431d(0xc4)](generateServiceHelp(_0x2b98f5));}async function handleErrorAsync(_0x2d328b,_0x266543){const _0x387815=a12_0x5cdfd6;if(_0x2d328b instanceof Error&&_0x2d328b['name']==='ExitPromptError')return process[_0x387815(0xc3)][_0x387815(0x9e)](_0x387815(0xa0)),await exitWithOtelShutdown(0x0);if(_0x2d328b instanceof CliError){if(_0x2d328b[_0x387815(0xa8)]===_0x387815(0xc9))return process[_0x387815(0xc3)][_0x387815(0x9e)]('\x0a'+_0x2d328b[_0x387815(0xac)]+'\x0a'),await exitWithOtelShutdown(0x0);console['error'](_0x387815(0xc8)+_0x2d328b[_0x387815(0xac)]);if(_0x2d328b[_0x387815(0xa9)])console[_0x387815(0xc7)](_0x387815(0xca)+_0x2d328b[_0x387815(0xa9)]);if(_0x266543)printIssueReportNudgeForError(_0x2d328b,_0x266543);return await exitWithOtelShutdown(_0x2d328b[_0x387815(0xaa)]);}console[_0x387815(0xc7)](_0x387815(0xb1),_0x2d328b);if(_0x266543)printIssueReportNudgeForError(_0x2d328b,_0x266543);return await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a13_0x45d4c5=a13_0x1096;(function(_0x2b5a2b,_0x117ca5){const _0x292656=a13_0x1096,_0x308137=_0x2b5a2b();while(!![]){try{const _0x48ca98=parseInt(_0x292656(0x1ae))/0x1*(-parseInt(_0x292656(0x1a7))/0x2)+-parseInt(_0x292656(0x193))/0x3+parseInt(_0x292656(0x18a))/0x4*(-parseInt(_0x292656(0x1b0))/0x5)+-parseInt(_0x292656(0x1ab))/0x6*(parseInt(_0x292656(0x1a9))/0x7)+-parseInt(_0x292656(0x188))/0x8*(parseInt(_0x292656(0x1b4))/0x9)+-parseInt(_0x292656(0x1a8))/0xa+parseInt(_0x292656(0x19d))/0xb;if(_0x48ca98===_0x117ca5)break;else _0x308137['push'](_0x308137['shift']());}catch(_0x57958c){_0x308137['push'](_0x308137['shift']());}}}(a13_0x4f2d,0x47a21));function a13_0x4f2d(){const _0x3f3c4f=['None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','padStart','Output\x20directory\x20(default:\x20./docs)','):\x20','./docs','Invalid\x20--params:\x20','start','stdout','4122856LjmZUu','join','244436dgpaEH','\x20succeeded,\x20','\x1b[0m','filter','success','datasetCode','message','✓\x20Generated\x20','write','1221654FFLLkM','isArray','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','Fetched\x20','\x20dataset(s)\x1b[0m','map','length','split','\x1b[90m*\x20Generating\x20docs\x20for:\x20','\x20file(s)','24603436wuptgI','Failed\x20to\x20fetch\x20datasets','\x20\x20•\x20','parse','\x20doc(s)\x20failed','Doc\x20generation\x20complete:\x20','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','!\x20No\x20datasets\x20found.','error','--datasetcode\x20cannot\x20be\x20empty.','939634RlHcTk','1205100ZjQYBp','218435ynHMhf','params','24yuwMWB','output','appCode','1MJiNAH','fail','25SJnriq','datasetcode','string','has','9hfjuGg','\x20doc(s)\x20in\x20','succeed','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','cookie','str','validation','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets'];a13_0x4f2d=function(){return _0x3f3c4f;};return a13_0x4f2d();}import a13_0x140131 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a13_0x1096(_0x56bee6,_0x800e4f){_0x56bee6=_0x56bee6-0x188;const _0x4f2db9=a13_0x4f2d();let _0x1096d7=_0x4f2db9[_0x56bee6];return _0x1096d7;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':'api','command':'generate','description':a13_0x45d4c5(0x1bb),'risk':a13_0x45d4c5(0x192),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':a13_0x45d4c5(0x1b2),'description':a13_0x45d4c5(0x1be)},{'name':'datasetcode','type':a13_0x45d4c5(0x1b2),'description':a13_0x45d4c5(0x1b7)},{'name':'params','type':'string','description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x18ee2a){const _0x672fe9=a13_0x45d4c5,_0x808f3a=_0x18ee2a[_0x672fe9(0x1b9)](_0x672fe9(0x1ac))||_0x672fe9(0x1c0),_0x36d209=_0x18ee2a['str'](_0x672fe9(0x1b1)),_0x477633=_0x18ee2a[_0x672fe9(0x1b9)](_0x672fe9(0x1aa));let _0x496ea8;if(_0x477633)try{_0x496ea8=JSON[_0x672fe9(0x1a0)](_0x477633);if(typeof _0x496ea8!=='object'||_0x496ea8===null||Array[_0x672fe9(0x194)](_0x496ea8))throw new Error('must\x20be\x20a\x20JSON\x20object');}catch(_0x3f2d0d){throw CliErrors['validation'](_0x672fe9(0x1c1)+(_0x3f2d0d instanceof Error?_0x3f2d0d[_0x672fe9(0x190)]:String(_0x3f2d0d)),_0x672fe9(0x1a3));}let _0x24c746;if(_0x36d209){const _0x4e4afb=_0x36d209[_0x672fe9(0x19a)](',')[_0x672fe9(0x198)](_0x305e6a=>_0x305e6a['trim']())[_0x672fe9(0x18d)](_0x38c9f4=>_0x38c9f4['length']>0x0);if(_0x4e4afb[_0x672fe9(0x199)]===0x0)throw CliErrors[_0x672fe9(0x1ba)](_0x672fe9(0x1a6));_0x24c746=new Set(_0x4e4afb),writeCliSideChannelLine(_0x672fe9(0x19b)+_0x4e4afb[_0x672fe9(0x189)](',\x20')+_0x672fe9(0x18c));}const _0x19c2bd=a13_0x140131('Fetching\x20dataset\x20list\x20for\x20'+_0x18ee2a[_0x672fe9(0x1ad)]+'...')[_0x672fe9(0x1c2)]();let _0xbda0b0;try{({configArray:_0xbda0b0}=await fetchModelList(_0x18ee2a[_0x672fe9(0x1ad)],_0x18ee2a['cookie']),_0x19c2bd[_0x672fe9(0x1b6)](_0x672fe9(0x196)+_0xbda0b0[_0x672fe9(0x199)]+'\x20dataset(s)'));}catch(_0x5c0d06){_0x19c2bd[_0x672fe9(0x1af)](_0x672fe9(0x19e));throw _0x5c0d06;}if(_0xbda0b0['length']===0x0)return writeCliSideChannelLine(_0x672fe9(0x1a4)),{'ok':!![]};let _0x33fc65=_0xbda0b0;if(_0x24c746){_0x33fc65=_0xbda0b0['filter'](_0x20f80a=>_0x24c746[_0x672fe9(0x1b3)](_0x20f80a[_0x672fe9(0x18f)]));const _0x359ee2=[..._0x24c746][_0x672fe9(0x18d)](_0x328ec2=>!_0xbda0b0['some'](_0x23f1f2=>_0x23f1f2[_0x672fe9(0x18f)]===_0x328ec2));_0x359ee2[_0x672fe9(0x199)]>0x0&&writeCliSideChannelLine(_0x672fe9(0x195)+_0x359ee2['join'](',\x20')+'\x1b[0m');if(_0x33fc65[_0x672fe9(0x199)]===0x0)throw CliErrors[_0x672fe9(0x1ba)](_0x672fe9(0x1bc)+[..._0x24c746][_0x672fe9(0x189)](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0x33fc65[_0x672fe9(0x199)]+'\x20of\x20'+_0xbda0b0[_0x672fe9(0x199)]+_0x672fe9(0x197));}let _0x52174b=0x0;const _0xb7c658=await generateDatasetDocs(_0x33fc65,_0x18ee2a['appCode'],_0x18ee2a[_0x672fe9(0x1b8)],_0x808f3a,(_0x1e4246,_0x472571,_0x23f858)=>{const _0x3824e3=_0x672fe9;_0x52174b=_0x1e4246,process[_0x3824e3(0x1c3)]['write']('\x0d\x20\x20['+String(_0x1e4246)[_0x3824e3(0x1bd)](String(_0x472571)[_0x3824e3(0x199)])+'/'+_0x472571+']\x20'+_0x23f858+'.md');},_0x496ea8);if(_0x52174b>0x0)process['stdout'][_0x672fe9(0x192)]('\x0a');const _0x2812ff=_0xb7c658[_0x672fe9(0x18d)](_0x4f1d07=>_0x4f1d07[_0x672fe9(0x18e)])[_0x672fe9(0x199)],_0x4f7650=_0xb7c658[_0x672fe9(0x18d)](_0x5638b1=>!_0x5638b1['success'])[_0x672fe9(0x199)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x672fe9(0x191)+_0x2812ff+_0x672fe9(0x1b5)+_0x808f3a);if(_0x4f7650>0x0){writeCliSideChannelLine('!\x20'+_0x4f7650+_0x672fe9(0x1a1));for(const _0x3a2316 of _0xb7c658[_0x672fe9(0x18d)](_0x3597ec=>!_0x3597ec['success'])){writeCliSideChannelLine(_0x672fe9(0x19f)+_0x3a2316['datasetName']+'\x20('+_0x3a2316['datasetCode']+_0x672fe9(0x1bf)+_0x3a2316[_0x672fe9(0x1a5)]);}}return{'ok':_0x4f7650===0x0,'message':_0x4f7650>0x0?'Doc\x20generation:\x20'+_0x2812ff+_0x672fe9(0x18b)+_0x4f7650+'\x20failed':_0x672fe9(0x1a2)+_0x2812ff+_0x672fe9(0x19c)};}};
1
+ const a13_0x4a879c=a13_0x5a4f;(function(_0x23d615,_0x2c9aee){const _0x5ca146=a13_0x5a4f,_0x5272a9=_0x23d615();while(!![]){try{const _0x38f7bd=parseInt(_0x5ca146(0xda))/0x1+parseInt(_0x5ca146(0xea))/0x2*(-parseInt(_0x5ca146(0xb8))/0x3)+parseInt(_0x5ca146(0xde))/0x4+parseInt(_0x5ca146(0xd4))/0x5*(-parseInt(_0x5ca146(0xd1))/0x6)+-parseInt(_0x5ca146(0xd7))/0x7+-parseInt(_0x5ca146(0xc5))/0x8+parseInt(_0x5ca146(0xc7))/0x9;if(_0x38f7bd===_0x2c9aee)break;else _0x5272a9['push'](_0x5272a9['shift']());}catch(_0x4de69a){_0x5272a9['push'](_0x5272a9['shift']());}}}(a13_0x1c86,0xdb730));import a13_0x10781b from'ora';function a13_0x1c86(){const _0x3d0fde=['write','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','\x20file(s)','params','generate','trim','\x20failed','5458LyGDCk','.md','validation','appCode','datasetName','\x1b[0m','isArray','start','parse','Fetched\x20','length','fail','\x1b[90m*\x20Generating\x20docs\x20for:\x20','1317NIiwuq','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','\x20dataset(s)','!\x20No\x20datasets\x20found.','string','has','filter','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','\x20\x20•\x20','Output\x20directory\x20(default:\x20./docs)','map','Failed\x20to\x20fetch\x20datasets','Fetching\x20dataset\x20list\x20for\x20','5391048vSZzkN','success','40544829UaUuYB','\x20doc(s)\x20in\x20','Invalid\x20--params:\x20','\x20doc(s)\x20failed','padStart','output','...','cookie','join','✓\x20Generated\x20','30DAFqyO','datasetCode','message','1209325hWzUcw','some','./docs','8709883ZHwFDF','must\x20be\x20a\x20JSON\x20object','str','319959jgVYhK','Doc\x20generation:\x20','stdout','object','1597720ulmlSf','\x20succeeded,\x20','datasetcode','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','succeed'];a13_0x1c86=function(){return _0x3d0fde;};return a13_0x1c86();}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_0x5a4f(_0x31b7cf,_0x5efe2b){_0x31b7cf=_0x31b7cf-0xae;const _0x1c867f=a13_0x1c86();let _0x5a4f21=_0x1c867f[_0x31b7cf];return _0x5a4f21;}export const apiGenerate={'service':'api','command':a13_0x4a879c(0xe7),'description':a13_0x4a879c(0xe1),'risk':a13_0x4a879c(0xe3),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':a13_0x4a879c(0xbc),'description':a13_0x4a879c(0xc1)},{'name':'datasetcode','type':a13_0x4a879c(0xbc),'description':a13_0x4a879c(0xb9)},{'name':a13_0x4a879c(0xe6),'type':a13_0x4a879c(0xbc),'description':a13_0x4a879c(0xe4)}],async 'execute'(_0x4e0dce){const _0x294d7d=a13_0x4a879c,_0x22f671=_0x4e0dce[_0x294d7d(0xd9)](_0x294d7d(0xcc))||_0x294d7d(0xd6),_0x34e0f4=_0x4e0dce['str'](_0x294d7d(0xe0)),_0xf7b335=_0x4e0dce[_0x294d7d(0xd9)](_0x294d7d(0xe6));let _0x299359;if(_0xf7b335)try{_0x299359=JSON[_0x294d7d(0xb3)](_0xf7b335);if(typeof _0x299359!==_0x294d7d(0xdd)||_0x299359===null||Array[_0x294d7d(0xb1)](_0x299359))throw new Error(_0x294d7d(0xd8));}catch(_0x47f19c){throw CliErrors[_0x294d7d(0xec)](_0x294d7d(0xc9)+(_0x47f19c instanceof Error?_0x47f19c[_0x294d7d(0xd3)]:String(_0x47f19c)),'Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27');}let _0x2e18e2;if(_0x34e0f4){const _0x347eb2=_0x34e0f4['split'](',')[_0x294d7d(0xc2)](_0x29a239=>_0x29a239[_0x294d7d(0xe8)]())[_0x294d7d(0xbe)](_0x43d80b=>_0x43d80b[_0x294d7d(0xb5)]>0x0);if(_0x347eb2['length']===0x0)throw CliErrors[_0x294d7d(0xec)]('--datasetcode\x20cannot\x20be\x20empty.');_0x2e18e2=new Set(_0x347eb2),writeCliSideChannelLine(_0x294d7d(0xb7)+_0x347eb2[_0x294d7d(0xcf)](',\x20')+_0x294d7d(0xb0));}const _0x3db37f=a13_0x10781b(_0x294d7d(0xc4)+_0x4e0dce[_0x294d7d(0xae)]+_0x294d7d(0xcd))[_0x294d7d(0xb2)]();let _0x21a42c;try{({configArray:_0x21a42c}=await fetchModelList(_0x4e0dce[_0x294d7d(0xae)],_0x4e0dce[_0x294d7d(0xce)]),_0x3db37f[_0x294d7d(0xe2)](_0x294d7d(0xb4)+_0x21a42c[_0x294d7d(0xb5)]+_0x294d7d(0xba)));}catch(_0x2b6da1){_0x3db37f[_0x294d7d(0xb6)](_0x294d7d(0xc3));throw _0x2b6da1;}if(_0x21a42c[_0x294d7d(0xb5)]===0x0)return writeCliSideChannelLine(_0x294d7d(0xbb)),{'ok':!![]};let _0x5b948f=_0x21a42c;if(_0x2e18e2){_0x5b948f=_0x21a42c[_0x294d7d(0xbe)](_0x3e2e82=>_0x2e18e2[_0x294d7d(0xbd)](_0x3e2e82['datasetCode']));const _0x3a9a08=[..._0x2e18e2][_0x294d7d(0xbe)](_0x4ada51=>!_0x21a42c[_0x294d7d(0xd5)](_0x24719f=>_0x24719f['datasetCode']===_0x4ada51));_0x3a9a08['length']>0x0&&writeCliSideChannelLine(_0x294d7d(0xbf)+_0x3a9a08[_0x294d7d(0xcf)](',\x20')+_0x294d7d(0xb0));if(_0x5b948f[_0x294d7d(0xb5)]===0x0)throw CliErrors[_0x294d7d(0xec)]('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x2e18e2][_0x294d7d(0xcf)](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0x5b948f[_0x294d7d(0xb5)]+'\x20of\x20'+_0x21a42c[_0x294d7d(0xb5)]+'\x20dataset(s)\x1b[0m');}let _0x489350=0x0;const _0x326f66=await generateDatasetDocs(_0x5b948f,_0x4e0dce[_0x294d7d(0xae)],_0x4e0dce[_0x294d7d(0xce)],_0x22f671,(_0x3e600f,_0x4bf7ae,_0x599122)=>{const _0x38aa4b=_0x294d7d;_0x489350=_0x3e600f,process[_0x38aa4b(0xdc)][_0x38aa4b(0xe3)]('\x0d\x20\x20['+String(_0x3e600f)[_0x38aa4b(0xcb)](String(_0x4bf7ae)[_0x38aa4b(0xb5)])+'/'+_0x4bf7ae+']\x20'+_0x599122+_0x38aa4b(0xeb));},_0x299359);if(_0x489350>0x0)process[_0x294d7d(0xdc)][_0x294d7d(0xe3)]('\x0a');const _0x228740=_0x326f66[_0x294d7d(0xbe)](_0x6ebbd3=>_0x6ebbd3[_0x294d7d(0xc6)])['length'],_0x4c38fb=_0x326f66[_0x294d7d(0xbe)](_0x140111=>!_0x140111[_0x294d7d(0xc6)])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x294d7d(0xd0)+_0x228740+_0x294d7d(0xc8)+_0x22f671);if(_0x4c38fb>0x0){writeCliSideChannelLine('!\x20'+_0x4c38fb+_0x294d7d(0xca));for(const _0x207ef7 of _0x326f66[_0x294d7d(0xbe)](_0x30427e=>!_0x30427e['success'])){writeCliSideChannelLine(_0x294d7d(0xc0)+_0x207ef7[_0x294d7d(0xaf)]+'\x20('+_0x207ef7[_0x294d7d(0xd2)]+'):\x20'+_0x207ef7['error']);}}return{'ok':_0x4c38fb===0x0,'message':_0x4c38fb>0x0?_0x294d7d(0xdb)+_0x228740+_0x294d7d(0xdf)+_0x4c38fb+_0x294d7d(0xe9):'Doc\x20generation\x20complete:\x20'+_0x228740+_0x294d7d(0xe5)};}};
@@ -1 +1 @@
1
- function a14_0x3fcc(){const _0x14928b=['72621yHQvkP','712OvnEdz','6775865Jlxeos','659113yQERbk','4500216LqMwCn','6HosFUK','2CPwORS','3773252ijXDsq','6058596zEOkCD','43389840zmthbg'];a14_0x3fcc=function(){return _0x14928b;};return a14_0x3fcc();}function a14_0x1db6(_0x5d1f06,_0xda97f7){_0x5d1f06=_0x5d1f06-0xdb;const _0x3fcc1d=a14_0x3fcc();let _0x1db67f=_0x3fcc1d[_0x5d1f06];return _0x1db67f;}(function(_0x4d874e,_0x3431da){const _0x3c98be=a14_0x1db6,_0x2f50b6=_0x4d874e();while(!![]){try{const _0x99037b=parseInt(_0x3c98be(0xe0))/0x1*(parseInt(_0x3c98be(0xe3))/0x2)+parseInt(_0x3c98be(0xe1))/0x3+parseInt(_0x3c98be(0xdb))/0x4+parseInt(_0x3c98be(0xdf))/0x5+parseInt(_0x3c98be(0xe2))/0x6*(-parseInt(_0x3c98be(0xe4))/0x7)+parseInt(_0x3c98be(0xde))/0x8*(parseInt(_0x3c98be(0xdd))/0x9)+-parseInt(_0x3c98be(0xdc))/0xa;if(_0x99037b===_0x3431da)break;else _0x2f50b6['push'](_0x2f50b6['shift']());}catch(_0x1136f9){_0x2f50b6['push'](_0x2f50b6['shift']());}}}(a14_0x3fcc,0xd4308));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
1
+ (function(_0x56b2cf,_0x45f3de){const _0x4afe0d=a14_0x964f,_0x15b21b=_0x56b2cf();while(!![]){try{const _0x10cc84=parseInt(_0x4afe0d(0x82))/0x1+parseInt(_0x4afe0d(0x78))/0x2*(-parseInt(_0x4afe0d(0x83))/0x3)+-parseInt(_0x4afe0d(0x7a))/0x4*(-parseInt(_0x4afe0d(0x7e))/0x5)+parseInt(_0x4afe0d(0x7c))/0x6*(parseInt(_0x4afe0d(0x7b))/0x7)+parseInt(_0x4afe0d(0x79))/0x8*(-parseInt(_0x4afe0d(0x81))/0x9)+-parseInt(_0x4afe0d(0x7d))/0xa+parseInt(_0x4afe0d(0x7f))/0xb*(parseInt(_0x4afe0d(0x80))/0xc);if(_0x10cc84===_0x45f3de)break;else _0x15b21b['push'](_0x15b21b['shift']());}catch(_0x10bfbe){_0x15b21b['push'](_0x15b21b['shift']());}}}(a14_0x3522,0x33d2f));import{apiList}from'../../commands/api/list.js';function a14_0x3522(){const _0x26daed=['2400hzlaQc','663633GlxblF','22624KOvgLx','10491DVKHws','188TROmqj','24KWINYp','76HpSFBG','294JBbhWo','5040tARscB','1279850xAkPuu','44495kOlGCn','36476Odflmn'];a14_0x3522=function(){return _0x26daed;};return a14_0x3522();}import{apiPull}from'../../commands/api/pull.js';function a14_0x964f(_0x7cf50e,_0x16e354){_0x7cf50e=_0x7cf50e-0x78;const _0x35229f=a14_0x3522();let _0x964f5f=_0x35229f[_0x7cf50e];return _0x964f5f;}import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
@@ -1 +1 @@
1
- function a15_0x13c3(_0x52477b,_0x4f8a48){_0x52477b=_0x52477b-0x8e;const _0x10f95d=a15_0x10f9();let _0x13c324=_0x10f95d[_0x52477b];return _0x13c324;}const a15_0x2aa191=a15_0x13c3;(function(_0x24eb7d,_0x1ffbbb){const _0x1bf9ea=a15_0x13c3,_0x1b47b0=_0x24eb7d();while(!![]){try{const _0x30170a=-parseInt(_0x1bf9ea(0x99))/0x1*(-parseInt(_0x1bf9ea(0x96))/0x2)+parseInt(_0x1bf9ea(0xa7))/0x3+-parseInt(_0x1bf9ea(0x9c))/0x4+-parseInt(_0x1bf9ea(0x9d))/0x5*(-parseInt(_0x1bf9ea(0x98))/0x6)+parseInt(_0x1bf9ea(0x9e))/0x7*(parseInt(_0x1bf9ea(0xa5))/0x8)+parseInt(_0x1bf9ea(0xa8))/0x9*(-parseInt(_0x1bf9ea(0x9a))/0xa)+parseInt(_0x1bf9ea(0x8e))/0xb*(-parseInt(_0x1bf9ea(0xa2))/0xc);if(_0x30170a===_0x1ffbbb)break;else _0x1b47b0['push'](_0x1b47b0['shift']());}catch(_0x3adcf5){_0x1b47b0['push'](_0x1b47b0['shift']());}}}(a15_0x10f9,0xa9bd7));function a15_0x10f9(){const _0x28b484=['boolean','5036416mZiZMV','830MNMFor','19243CxEfMw','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','read','rawFlags','9876tKrrYK','api','cookie','1584QyeCjo','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','3878166YotRyU','27KcuRqd','8393uFaJnZ','appcode','isDefault','name','list','global','env','push','872jYKFEe','appCode','20682QttoqV','921USnmKV','761580uwxWdf'];a15_0x10f9=function(){return _0x28b484;};return a15_0x10f9();}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_0x2aa191(0xa3),'command':a15_0x2aa191(0x92),'description':a15_0x2aa191(0x9f),'risk':a15_0x2aa191(0xa0),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x2aa191(0x93),'type':a15_0x2aa191(0x9b),'description':a15_0x2aa191(0xa6),'default':![]}],async 'execute'(_0x122bc9){const _0x2e53e0=a15_0x2aa191,_0x45308e=_0x122bc9[_0x2e53e0(0xa1)][_0x2e53e0(0x8f)]?String(_0x122bc9[_0x2e53e0(0xa1)][_0x2e53e0(0x8f)]):undefined,_0x297862=resolveTargetApps(_0x122bc9,_0x45308e);if(_0x297862){const _0xda73ae=[];for(const _0x1e93ab of _0x297862){const _0x17c33e=_0x1e93ab[_0x2e53e0(0xa4)]||_0x122bc9[_0x2e53e0(0xa4)],_0x467ffd=_0x1e93ab[_0x2e53e0(0x94)]||'production';initEnv(_0x467ffd);const {configArray:_0x3c47fc}=await fetchModelList(_0x1e93ab[_0x2e53e0(0x8f)],_0x17c33e);_0xda73ae[_0x2e53e0(0x95)](..._0x3c47fc['map'](_0x2f1eab=>({..._0x2f1eab,'_appName':_0x1e93ab[_0x2e53e0(0x91)],'_appCode':_0x1e93ab['appcode'],'_env':_0x467ffd,'_isDefault':_0x1e93ab[_0x2e53e0(0x90)]})));}return{'ok':!![],'data':_0xda73ae};}const {configArray:_0x4619d0}=await fetchModelList(_0x122bc9[_0x2e53e0(0x97)],_0x122bc9[_0x2e53e0(0xa4)]);return{'ok':!![],'data':_0x4619d0};}};
1
+ const a15_0xabf0e5=a15_0x3b74;function a15_0x4112(){const _0x1b39b2=['appcode','1481294hMoJbv','1812EWHJGl','push','3747yDsyml','global','cookie','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','rawFlags','8981892lDrEYL','name','isDefault','list','env','api','2445295hmSNdp','read','11449949Wliinv','production','36115432GEhpsM','1194572xdUqQp'];a15_0x4112=function(){return _0x1b39b2;};return a15_0x4112();}(function(_0x3d3912,_0x5d7f17){const _0x49e3e5=a15_0x3b74,_0xe78028=_0x3d3912();while(!![]){try{const _0x2fa590=-parseInt(_0x49e3e5(0x7a))/0x1+-parseInt(_0x49e3e5(0x7b))/0x2*(parseInt(_0x49e3e5(0x7d))/0x3)+-parseInt(_0x49e3e5(0x78))/0x4+-parseInt(_0x49e3e5(0x73))/0x5+parseInt(_0x49e3e5(0x82))/0x6+-parseInt(_0x49e3e5(0x75))/0x7+parseInt(_0x49e3e5(0x77))/0x8;if(_0x2fa590===_0x5d7f17)break;else _0xe78028['push'](_0xe78028['shift']());}catch(_0x5e3d10){_0xe78028['push'](_0xe78028['shift']());}}}(a15_0x4112,0xee10a));function a15_0x3b74(_0x3c870d,_0x15b449){_0x3c870d=_0x3c870d-0x70;const _0x411204=a15_0x4112();let _0x3b7409=_0x411204[_0x3c870d];return _0x3b7409;}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_0xabf0e5(0x72),'command':a15_0xabf0e5(0x70),'description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':a15_0xabf0e5(0x74),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0xabf0e5(0x7e),'type':'boolean','description':a15_0xabf0e5(0x80),'default':![]}],async 'execute'(_0x407f1e){const _0x37c26f=a15_0xabf0e5,_0x3f8338=_0x407f1e[_0x37c26f(0x81)]['appcode']?String(_0x407f1e[_0x37c26f(0x81)][_0x37c26f(0x79)]):undefined,_0x58e556=resolveTargetApps(_0x407f1e,_0x3f8338);if(_0x58e556){const _0x2badfd=[];for(const _0x45648c of _0x58e556){const _0x1fe88e=_0x45648c['cookie']||_0x407f1e[_0x37c26f(0x7f)],_0xc0e810=_0x45648c[_0x37c26f(0x71)]||_0x37c26f(0x76);initEnv(_0xc0e810);const {configArray:_0x22e326}=await fetchModelList(_0x45648c[_0x37c26f(0x79)],_0x1fe88e);_0x2badfd[_0x37c26f(0x7c)](..._0x22e326['map'](_0x63ebac=>({..._0x63ebac,'_appName':_0x45648c[_0x37c26f(0x83)],'_appCode':_0x45648c[_0x37c26f(0x79)],'_env':_0xc0e810,'_isDefault':_0x45648c[_0x37c26f(0x84)]})));}return{'ok':!![],'data':_0x2badfd};}const {configArray:_0xcc89bf}=await fetchModelList(_0x407f1e['appCode'],_0x407f1e['cookie']);return{'ok':!![],'data':_0xcc89bf};}};
@@ -1 +1 @@
1
- const a16_0x2d4b60=a16_0x51df;function a16_0x5aa7(){const _0x3d4ec0=['80yWkfZJ','3298475UcLnup','5036409UJulmW','output','length','1904100VrNUlK','isDefault','\x20succeeded,\x20','.ts','production','\x20app(s)\x20failed','592186rMgEcb','\x20dataset(s),\x20generated\x20','\x20\x20•\x20','includes','Failed:\x20','modelCount','apiFilePath','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','Pulling\x20','\x20failed','cookie','appcode','start','pull','appCode','\x20model(s)','-api','string','message','2232882YtGJDc','1915646NIHPYG','1BmqiqW','Pulling\x20API\x20config\x20for\x20','fail','join','rawFlags','api','12EmpKqc',')...','clientFilePath','\x20dataset(s)\x20→\x20','...','4971264kTpJLX','name','-client','global','apiDir','Output\x20directory\x20(default:\x20','write','succeed'];a16_0x5aa7=function(){return _0x3d4ec0;};return a16_0x5aa7();}(function(_0x309ff1,_0x2b56f6){const _0x59dffb=a16_0x51df,_0xa9d2c2=_0x309ff1();while(!![]){try{const _0x4127b1=-parseInt(_0x59dffb(0xc6))/0x1*(-parseInt(_0x59dffb(0xc5))/0x2)+-parseInt(_0x59dffb(0xdb))/0x3+-parseInt(_0x59dffb(0xde))/0x4+parseInt(_0x59dffb(0xda))/0x5+parseInt(_0x59dffb(0xcc))/0x6*(parseInt(_0x59dffb(0xe4))/0x7)+-parseInt(_0x59dffb(0xd1))/0x8+-parseInt(_0x59dffb(0xc4))/0x9*(-parseInt(_0x59dffb(0xd9))/0xa);if(_0x4127b1===_0x2b56f6)break;else _0xa9d2c2['push'](_0xa9d2c2['shift']());}catch(_0x325107){_0xa9d2c2['push'](_0xa9d2c2['shift']());}}}(a16_0x5aa7,0xf2fbe));import a16_0x1a862a from'ora';import a16_0x2dc6ad 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';function a16_0x51df(_0x23aeb7,_0x319180){_0x23aeb7=_0x23aeb7-0xc4;const _0x5aa792=a16_0x5aa7();let _0x51dff8=_0x5aa792[_0x23aeb7];return _0x51dff8;}import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':'api','command':a16_0x2d4b60(0xf1),'description':'Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20('+DEFAULT_API_DIR+'/)','risk':a16_0x2d4b60(0xd7),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x2d4b60(0xdc),'type':a16_0x2d4b60(0xf5),'description':a16_0x2d4b60(0xd6)+DEFAULT_API_DIR+'/)'},{'name':a16_0x2d4b60(0xd4),'type':'boolean','description':a16_0x2d4b60(0xeb),'default':![]}],async 'execute'(_0x4ef41d){const _0x33dcf3=a16_0x2d4b60,_0x2e0357=_0x4ef41d[_0x33dcf3(0xca)]['appcode']?String(_0x4ef41d['rawFlags'][_0x33dcf3(0xef)]):undefined,_0x4197a2=_0x4ef41d['str']('output')||undefined,_0x2fc7ec=resolveTargetApps(_0x4ef41d,_0x2e0357);if(_0x2fc7ec){let _0x416516=0x0,_0x4a2fce=0x0;for(const _0x168861 of _0x2fc7ec){const _0x25aa10=_0x168861['cookie']||_0x4ef41d[_0x33dcf3(0xee)],_0x482b82=_0x168861['env']||_0x33dcf3(0xe2);initEnv(_0x482b82);const _0x5874c4=_0x168861[_0x33dcf3(0xd5)]||_0x4197a2||_0x4ef41d['apiDir']||DEFAULT_API_DIR,_0x52d1bf=_0x168861[_0x33dcf3(0xdf)]?'':_0x168861[_0x33dcf3(0xd2)]||_0x168861[_0x33dcf3(0xef)],_0x1cf991=a16_0x1a862a(_0x33dcf3(0xec)+_0x168861[_0x33dcf3(0xd2)]+'\x20('+_0x168861[_0x33dcf3(0xef)]+_0x33dcf3(0xcd))[_0x33dcf3(0xf0)]();try{const {configArray:_0x5c33dc}=await fetchModelList(_0x168861[_0x33dcf3(0xef)],_0x25aa10),_0x17a5e4=await generateApiFile(_0x5c33dc,_0x52d1bf,_0x168861[_0x33dcf3(0xef)],_0x168861['isDefault'],_0x482b82,_0x5874c4,_0x168861['name']);_0x1cf991[_0x33dcf3(0xd8)](_0x168861[_0x33dcf3(0xd2)]+':\x20'+_0x5c33dc[_0x33dcf3(0xdd)]+_0x33dcf3(0xcf)+_0x17a5e4[_0x33dcf3(0xe9)]+_0x33dcf3(0xf3)),writeCliSideChannelLine(_0x33dcf3(0xe6)+_0x17a5e4[_0x33dcf3(0xea)]),writeCliSideChannelLine(_0x33dcf3(0xe6)+_0x17a5e4[_0x33dcf3(0xce)]),_0x416516++;}catch(_0x427fe3){_0x1cf991[_0x33dcf3(0xc8)](_0x168861[_0x33dcf3(0xd2)]+':\x20'+(_0x427fe3 instanceof Error?_0x427fe3[_0x33dcf3(0xf6)]:String(_0x427fe3))),_0x4a2fce++;}}writeCliSideChannelLine('');if(_0x4a2fce>0x0)writeCliSideChannelLine('!\x20'+_0x4a2fce+_0x33dcf3(0xe3));return{'ok':_0x4a2fce===0x0,'message':'Done:\x20'+_0x416516+_0x33dcf3(0xe0)+_0x4a2fce+_0x33dcf3(0xed)};}const _0x3809ec=_0x2e0357&&_0x2e0357[_0x33dcf3(0xe7)]('-')?_0x2e0357['split']('-')['slice'](0x1)[_0x33dcf3(0xc9)]('-'):'',_0x145767=_0x4197a2||_0x4ef41d['apiDir']||DEFAULT_API_DIR,_0x4c6e32=!_0x2e0357,_0xd400d0=a16_0x1a862a(_0x33dcf3(0xc7)+_0x4ef41d['appCode']+_0x33dcf3(0xd0))[_0x33dcf3(0xf0)]();try{const {configArray:_0x33ee13}=await fetchModelList(_0x4ef41d['appCode'],_0x4ef41d[_0x33dcf3(0xee)]),_0x1e3695=await generateApiFile(_0x33ee13,_0x3809ec,_0x4ef41d[_0x33dcf3(0xf2)],_0x4c6e32,getEnv(),_0x145767);_0xd400d0['succeed']('Pulled\x20'+_0x33ee13[_0x33dcf3(0xdd)]+_0x33dcf3(0xe5)+_0x1e3695[_0x33dcf3(0xe9)]+_0x33dcf3(0xf3));const _0x370c3c=_0x3809ec?_0x3809ec+_0x33dcf3(0xf4):_0x33dcf3(0xcb),_0x2f06c8=_0x3809ec?_0x3809ec+_0x33dcf3(0xd3):'client';return writeCliSideChannelLine(_0x33dcf3(0xe6)+a16_0x2dc6ad[_0x33dcf3(0xc9)](_0x145767,_0x370c3c+'.ts')),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x2dc6ad[_0x33dcf3(0xc9)](_0x145767,_0x2f06c8+_0x33dcf3(0xe1))),{'ok':!![],'data':{'datasetCount':_0x33ee13[_0x33dcf3(0xdd)],'modelCount':_0x1e3695['modelCount']}};}catch(_0xddde93){_0xd400d0['fail'](_0x33dcf3(0xe8)+(_0xddde93 instanceof Error?_0xddde93[_0x33dcf3(0xf6)]:String(_0xddde93)));throw _0xddde93;}}};
1
+ function a16_0x3d98(){const _0x395e29=['132jOvphW','join','write','rawFlags','Done:\x20','appcode','47259NyLvBo','production','Failed:\x20','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','env','split','4782864YIKfNA','\x20model(s)','api','str','6968qwDIvu','cookie','output','succeed','pull','1841KWzvpz','\x20\x20•\x20','180lQOkxA','string','5kiddoN','length','clientFilePath','isDefault','.ts','fail','4583544WciSNN','apiDir','name','appCode','\x20app(s)\x20failed','apiFilePath','...','\x20failed','796616FcmAqk','\x20dataset(s),\x20generated\x20','Pulling\x20API\x20config\x20for\x20','\x20dataset(s)\x20→\x20','\x20succeeded,\x20','2EdLHQL','start','message','includes','3709911AVfGRi','3724924KUTDbF','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','modelCount','client'];a16_0x3d98=function(){return _0x395e29;};return a16_0x3d98();}const a16_0x4d48c5=a16_0x5db4;(function(_0x154c87,_0x39cd9b){const _0x10bbe6=a16_0x5db4,_0x425c7b=_0x154c87();while(!![]){try{const _0x4bf922=-parseInt(_0x10bbe6(0x1c7))/0x1*(parseInt(_0x10bbe6(0x1c2))/0x2)+-parseInt(_0x10bbe6(0x1cb))/0x3+-parseInt(_0x10bbe6(0x197))/0x4*(parseInt(_0x10bbe6(0x1b4))/0x5)+-parseInt(_0x10bbe6(0x1ba))/0x6+parseInt(_0x10bbe6(0x1b0))/0x7*(-parseInt(_0x10bbe6(0x1ab))/0x8)+-parseInt(_0x10bbe6(0x1a1))/0x9*(parseInt(_0x10bbe6(0x1b2))/0xa)+-parseInt(_0x10bbe6(0x19b))/0xb*(-parseInt(_0x10bbe6(0x1a7))/0xc);if(_0x4bf922===_0x39cd9b)break;else _0x425c7b['push'](_0x425c7b['shift']());}catch(_0x494da9){_0x425c7b['push'](_0x425c7b['shift']());}}}(a16_0x3d98,0xb26f1));import a16_0x41f30b from'ora';import a16_0x1f27ba from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';function a16_0x5db4(_0x2f928e,_0x3fa6e4){_0x2f928e=_0x2f928e-0x197;const _0x3d982b=a16_0x3d98();let _0x5db4c9=_0x3d982b[_0x2f928e];return _0x5db4c9;}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_0x4d48c5(0x1a9),'command':a16_0x4d48c5(0x1af),'description':a16_0x4d48c5(0x198)+DEFAULT_API_DIR+'/)','risk':a16_0x4d48c5(0x19d),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':a16_0x4d48c5(0x1b3),'description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':'global','type':'boolean','description':a16_0x4d48c5(0x1a4),'default':![]}],async 'execute'(_0x5ddcda){const _0x30c023=a16_0x4d48c5,_0x4babba=_0x5ddcda[_0x30c023(0x19e)][_0x30c023(0x1a0)]?String(_0x5ddcda['rawFlags'][_0x30c023(0x1a0)]):undefined,_0x3afb41=_0x5ddcda[_0x30c023(0x1aa)](_0x30c023(0x1ad))||undefined,_0xc774c0=resolveTargetApps(_0x5ddcda,_0x4babba);if(_0xc774c0){let _0x5db827=0x0,_0xf5a849=0x0;for(const _0x328d53 of _0xc774c0){const _0x3b441c=_0x328d53['cookie']||_0x5ddcda[_0x30c023(0x1ac)],_0x1ffee4=_0x328d53[_0x30c023(0x1a5)]||_0x30c023(0x1a2);initEnv(_0x1ffee4);const _0xbbe957=_0x328d53['apiDir']||_0x3afb41||_0x5ddcda[_0x30c023(0x1bb)]||DEFAULT_API_DIR,_0x5e2336=_0x328d53[_0x30c023(0x1b7)]?'':_0x328d53[_0x30c023(0x1bc)]||_0x328d53[_0x30c023(0x1a0)],_0x486e9e=a16_0x41f30b('Pulling\x20'+_0x328d53[_0x30c023(0x1bc)]+'\x20('+_0x328d53['appcode']+')...')['start']();try{const {configArray:_0xbb1241}=await fetchModelList(_0x328d53[_0x30c023(0x1a0)],_0x3b441c),_0x4c5408=await generateApiFile(_0xbb1241,_0x5e2336,_0x328d53[_0x30c023(0x1a0)],_0x328d53[_0x30c023(0x1b7)],_0x1ffee4,_0xbbe957,_0x328d53[_0x30c023(0x1bc)]);_0x486e9e[_0x30c023(0x1ae)](_0x328d53[_0x30c023(0x1bc)]+':\x20'+_0xbb1241[_0x30c023(0x1b5)]+_0x30c023(0x1c5)+_0x4c5408[_0x30c023(0x199)]+_0x30c023(0x1a8)),writeCliSideChannelLine(_0x30c023(0x1b1)+_0x4c5408[_0x30c023(0x1bf)]),writeCliSideChannelLine(_0x30c023(0x1b1)+_0x4c5408[_0x30c023(0x1b6)]),_0x5db827++;}catch(_0x3878ff){_0x486e9e[_0x30c023(0x1b9)](_0x328d53[_0x30c023(0x1bc)]+':\x20'+(_0x3878ff instanceof Error?_0x3878ff['message']:String(_0x3878ff))),_0xf5a849++;}}writeCliSideChannelLine('');if(_0xf5a849>0x0)writeCliSideChannelLine('!\x20'+_0xf5a849+_0x30c023(0x1be));return{'ok':_0xf5a849===0x0,'message':_0x30c023(0x19f)+_0x5db827+_0x30c023(0x1c6)+_0xf5a849+_0x30c023(0x1c1)};}const _0x4046cb=_0x4babba&&_0x4babba[_0x30c023(0x1ca)]('-')?_0x4babba[_0x30c023(0x1a6)]('-')['slice'](0x1)['join']('-'):'',_0x250ea8=_0x3afb41||_0x5ddcda[_0x30c023(0x1bb)]||DEFAULT_API_DIR,_0x357d5d=!_0x4babba,_0x5ebe19=a16_0x41f30b(_0x30c023(0x1c4)+_0x5ddcda[_0x30c023(0x1bd)]+_0x30c023(0x1c0))[_0x30c023(0x1c8)]();try{const {configArray:_0x148ce7}=await fetchModelList(_0x5ddcda[_0x30c023(0x1bd)],_0x5ddcda[_0x30c023(0x1ac)]),_0x5af50c=await generateApiFile(_0x148ce7,_0x4046cb,_0x5ddcda[_0x30c023(0x1bd)],_0x357d5d,getEnv(),_0x250ea8);_0x5ebe19[_0x30c023(0x1ae)]('Pulled\x20'+_0x148ce7['length']+_0x30c023(0x1c3)+_0x5af50c[_0x30c023(0x199)]+_0x30c023(0x1a8));const _0x138458=_0x4046cb?_0x4046cb+'-api':_0x30c023(0x1a9),_0x55e713=_0x4046cb?_0x4046cb+'-client':_0x30c023(0x19a);return writeCliSideChannelLine(_0x30c023(0x1b1)+a16_0x1f27ba[_0x30c023(0x19c)](_0x250ea8,_0x138458+_0x30c023(0x1b8))),writeCliSideChannelLine(_0x30c023(0x1b1)+a16_0x1f27ba[_0x30c023(0x19c)](_0x250ea8,_0x55e713+_0x30c023(0x1b8))),{'ok':!![],'data':{'datasetCount':_0x148ce7[_0x30c023(0x1b5)],'modelCount':_0x5af50c['modelCount']}};}catch(_0x50505a){_0x5ebe19[_0x30c023(0x1b9)](_0x30c023(0x1a3)+(_0x50505a instanceof Error?_0x50505a[_0x30c023(0x1c9)]:String(_0x50505a)));throw _0x50505a;}}};
@@ -1 +1 @@
1
- function a17_0x5a09(){const _0x576b7d=['4mTDcvR','2317068tniBCp','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','join','12GLPXyi','282244GLPYfW','project','map','length','374135CoGTmA','merged','validation','257733ugHIbw','2817424IuQtVQ','579837zsOUXy','name','App\x20\x22','3645016FwAlmB','selectedAppName','bool'];a17_0x5a09=function(){return _0x576b7d;};return a17_0x5a09();}function a17_0x2783(_0x1f9e41,_0x55adef){_0x1f9e41=_0x1f9e41-0xe2;const _0x5a094a=a17_0x5a09();let _0x278362=_0x5a094a[_0x1f9e41];return _0x278362;}(function(_0x20536c,_0x56e185){const _0x5b148e=a17_0x2783,_0x164796=_0x20536c();while(!![]){try{const _0x4796f1=parseInt(_0x5b148e(0xe3))/0x1+parseInt(_0x5b148e(0xf2))/0x2*(-parseInt(_0x5b148e(0xec))/0x3)+parseInt(_0x5b148e(0xeb))/0x4+-parseInt(_0x5b148e(0xe7))/0x5+parseInt(_0x5b148e(0xe2))/0x6*(parseInt(_0x5b148e(0xea))/0x7)+-parseInt(_0x5b148e(0xef))/0x8+parseInt(_0x5b148e(0xf3))/0x9;if(_0x4796f1===_0x56e185)break;else _0x164796['push'](_0x164796['shift']());}catch(_0x3286ff){_0x164796['push'](_0x164796['shift']());}}}(a17_0x5a09,0x61d26));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x8ffd9b,_0xd0a550){const _0x348c61=a17_0x2783;if(_0xd0a550)return null;const _0x41a773=_0x8ffd9b[_0x348c61(0xf1)]('global')?_0x348c61(0xe8):_0x348c61(0xe4);let _0x47eece=getMultiAppConfigs(_0x41a773);if(!_0x47eece||_0x47eece[_0x348c61(0xe6)]===0x0)return null;if(_0x8ffd9b[_0x348c61(0xf0)]){const _0x9589b2=_0x47eece['filter'](_0x4e161a=>_0x4e161a[_0x348c61(0xed)]===_0x8ffd9b['selectedAppName']);if(_0x9589b2[_0x348c61(0xe6)]===0x0){const _0x50085c=_0x47eece[_0x348c61(0xe5)](_0x3be3bc=>_0x3be3bc[_0x348c61(0xed)])[_0x348c61(0xf5)](',\x20');throw CliErrors[_0x348c61(0xe9)](_0x348c61(0xee)+_0x8ffd9b[_0x348c61(0xf0)]+_0x348c61(0xf4)+_0x50085c);}_0x47eece=_0x9589b2;}return _0x47eece;}
1
+ function a17_0x88cf(_0x15ff70,_0x4c85eb){_0x15ff70=_0x15ff70-0x70;const _0x357f2f=a17_0x357f();let _0x88cf3=_0x357f2f[_0x15ff70];return _0x88cf3;}(function(_0x281b8e,_0x17e9c1){const _0xd4e8ec=a17_0x88cf,_0x2a748f=_0x281b8e();while(!![]){try{const _0x535bc5=parseInt(_0xd4e8ec(0x71))/0x1+-parseInt(_0xd4e8ec(0x7f))/0x2*(-parseInt(_0xd4e8ec(0x80))/0x3)+-parseInt(_0xd4e8ec(0x79))/0x4*(parseInt(_0xd4e8ec(0x76))/0x5)+-parseInt(_0xd4e8ec(0x85))/0x6*(parseInt(_0xd4e8ec(0x73))/0x7)+parseInt(_0xd4e8ec(0x78))/0x8+parseInt(_0xd4e8ec(0x82))/0x9*(-parseInt(_0xd4e8ec(0x84))/0xa)+-parseInt(_0xd4e8ec(0x86))/0xb*(-parseInt(_0xd4e8ec(0x81))/0xc);if(_0x535bc5===_0x17e9c1)break;else _0x2a748f['push'](_0x2a748f['shift']());}catch(_0x4f7d34){_0x2a748f['push'](_0x2a748f['shift']());}}}(a17_0x357f,0x9c71e));function a17_0x357f(){const _0x2a8674=['name','28642vfQkvu','84aJTjyr','12jhgDrS','218223JkShKX','global','210gWLUGS','58890FYABYb','11553454QBmEuL','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','840927DAFMag','merged','182QWSvbu','selectedAppName','validation','10jeDlHj','filter','3122944zCAMBm','2554844dgiJSH','map','join','project','length'];a17_0x357f=function(){return _0x2a8674;};return a17_0x357f();}import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x103697,_0x22c893){const _0x18d3b1=a17_0x88cf;if(_0x22c893)return null;const _0x1ce12c=_0x103697['bool'](_0x18d3b1(0x83))?_0x18d3b1(0x72):_0x18d3b1(0x7c);let _0x73748a=getMultiAppConfigs(_0x1ce12c);if(!_0x73748a||_0x73748a[_0x18d3b1(0x7d)]===0x0)return null;if(_0x103697[_0x18d3b1(0x74)]){const _0x543a1f=_0x73748a[_0x18d3b1(0x77)](_0x39742e=>_0x39742e[_0x18d3b1(0x7e)]===_0x103697['selectedAppName']);if(_0x543a1f[_0x18d3b1(0x7d)]===0x0){const _0x1a29e5=_0x73748a[_0x18d3b1(0x7a)](_0x5649b6=>_0x5649b6[_0x18d3b1(0x7e)])[_0x18d3b1(0x7b)](',\x20');throw CliErrors[_0x18d3b1(0x75)]('App\x20\x22'+_0x103697[_0x18d3b1(0x74)]+_0x18d3b1(0x70)+_0x1a29e5);}_0x73748a=_0x543a1f;}return _0x73748a;}
@@ -1 +1 @@
1
- const a18_0x40fd2b=a18_0x5bbe;(function(_0x30eced,_0x423906){const _0x577067=a18_0x5bbe,_0x58a9b0=_0x30eced();while(!![]){try{const _0x53575d=parseInt(_0x577067(0xf9))/0x1+parseInt(_0x577067(0x10e))/0x2*(-parseInt(_0x577067(0x111))/0x3)+-parseInt(_0x577067(0x10d))/0x4+-parseInt(_0x577067(0x108))/0x5+parseInt(_0x577067(0xfd))/0x6+-parseInt(_0x577067(0x10b))/0x7*(-parseInt(_0x577067(0x105))/0x8)+-parseInt(_0x577067(0x107))/0x9;if(_0x53575d===_0x423906)break;else _0x58a9b0['push'](_0x58a9b0['shift']());}catch(_0x4ab1cc){_0x58a9b0['push'](_0x58a9b0['shift']());}}}(a18_0x419f,0x7465c));import{CliErrors}from'../../errors.js';function a18_0x5bbe(_0x5d7098,_0xc679d3){_0x5d7098=_0x5d7098-0xf1;const _0x419f05=a18_0x419f();let _0x5bbea0=_0x419f05[_0x5d7098];return _0x5bbea0;}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(_0x357c5b){const _0x40b760=a18_0x5bbe,_0x5cefd2=_0x357c5b[_0x40b760(0xff)][0x0]?.[_0x40b760(0x10f)]();if(!_0x5cefd2)throw CliErrors['validation'](_0x40b760(0x100),_0x40b760(0x112)+CLI_BIN_NAME+_0x40b760(0x110));}function a18_0x419f(){const _0x3b66eb=['validation','\x20app\x20\x22','str','87144JLrSJs','Add\x20or\x20update\x20an\x20app\x20in\x20config','977814cOpGtV','343230veFJsx','\x22\x20(appcode:\x20','Updated','63GnFVFl','App\x20profile\x20name','505804JdjzZN','11092pvIIXO','trim','\x20app\x20add\x20<name>\x20--appcode\x20<code>','159MaXtSU','Usage:\x20','apps','write','name','Added','Use\x20global\x20config\x20scope','defaultApp','\x20Set\x20as\x20default\x20app.','app','846187omUawz','bool','appcode','string','781326EgvtNa','add','args','Missing\x20app\x20name.','global'];a18_0x419f=function(){return _0x3b66eb;};return a18_0x419f();}async function execute(_0x350ab9){const _0x1688af=a18_0x5bbe,_0xc58aec=_0x350ab9['args'][0x0]?.[_0x1688af(0x10f)]();if(!_0xc58aec)throw CliErrors[_0x1688af(0x102)](_0x1688af(0x100),'Usage:\x20'+CLI_BIN_NAME+_0x1688af(0x110));const _0x23c826=_0x350ab9['str']('appcode');if(!_0x23c826)throw CliErrors['flagMissing'](_0x1688af(0xfb),'Usage:\x20'+CLI_BIN_NAME+_0x1688af(0x110));const _0x52f775={'global':_0x350ab9[_0x1688af(0xfa)]('global')},_0x414403=readConfig(_0x52f775);if(!_0x414403['apps'])_0x414403[_0x1688af(0xf1)]={};const _0x5f82bd={'appcode':_0x23c826,...collectAppProfileOverrides(_0x25093e=>_0x350ab9[_0x1688af(0x104)](_0x25093e))},_0x3aaea5=_0x414403[_0x1688af(0xf1)],_0x544241=!!_0x3aaea5[_0xc58aec];_0x3aaea5[_0xc58aec]=_0x5f82bd;if(!_0x414403[_0x1688af(0xf6)])_0x414403[_0x1688af(0xf6)]=_0xc58aec;writeConfig(_0x414403,_0x52f775);const _0x2f8ad1=!_0x544241&&_0x414403[_0x1688af(0xf6)]===_0xc58aec?_0x1688af(0xf7):'',_0x329e37=(_0x544241?_0x1688af(0x10a):_0x1688af(0xf4))+_0x1688af(0x103)+_0xc58aec+_0x1688af(0x109)+_0x23c826+')'+scopeLabel(_0x52f775)+'.'+_0x2f8ad1;return{'ok':!![],'message':_0x329e37};}export const appAddDefinition={'service':a18_0x40fd2b(0xf8),'command':a18_0x40fd2b(0xfe),'description':a18_0x40fd2b(0x106),'risk':a18_0x40fd2b(0xf2),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x40fd2b(0xf3),'description':a18_0x40fd2b(0x10c),'required':!![]}],'flags':[{'name':a18_0x40fd2b(0xfb),'type':a18_0x40fd2b(0xfc),'description':'App\x20code','required':!![]},{'name':a18_0x40fd2b(0x101),'type':'boolean','description':a18_0x40fd2b(0xf5),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ const a18_0x3d2281=a18_0x38cf;(function(_0x1e47fb,_0x107ca9){const _0x146046=a18_0x38cf,_0x50cd62=_0x1e47fb();while(!![]){try{const _0x2d696c=parseInt(_0x146046(0x10d))/0x1*(parseInt(_0x146046(0x103))/0x2)+-parseInt(_0x146046(0xf7))/0x3+-parseInt(_0x146046(0xf9))/0x4*(parseInt(_0x146046(0x107))/0x5)+-parseInt(_0x146046(0x101))/0x6*(parseInt(_0x146046(0x10a))/0x7)+-parseInt(_0x146046(0xf6))/0x8*(-parseInt(_0x146046(0x100))/0x9)+parseInt(_0x146046(0xf4))/0xa*(-parseInt(_0x146046(0x102))/0xb)+-parseInt(_0x146046(0xf3))/0xc*(-parseInt(_0x146046(0x104))/0xd);if(_0x2d696c===_0x107ca9)break;else _0x50cd62['push'](_0x50cd62['shift']());}catch(_0x4bac7a){_0x50cd62['push'](_0x50cd62['shift']());}}}(a18_0x5639,0x7c26b));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';function a18_0x38cf(_0x39a994,_0x597093){_0x39a994=_0x39a994-0xee;const _0x56391e=a18_0x5639();let _0x38cfc0=_0x56391e[_0x39a994];return _0x38cfc0;}function a18_0x5639(){const _0x1ffe06=['Missing\x20app\x20name.','string','trim','Use\x20global\x20config\x20scope','write','Updated','\x20Set\x20as\x20default\x20app.','App\x20profile\x20name','apps','636gONgRQ','8433590vpNdLb','Added','4553680MJYjbw','2885226oHRmbj','defaultApp','3355280jVvFhI','Usage:\x20','args','global','flagMissing','str','validation','9mFOTqn','22614RWKcte','11HpOvjN','22574guggDF','603317fOOwnI','\x20app\x20add\x20<name>\x20--appcode\x20<code>','Add\x20or\x20update\x20an\x20app\x20in\x20config','5YxgxIc','name','App\x20code','630hZQcxw','appcode','app','41JTNRIm','\x22\x20(appcode:\x20'];a18_0x5639=function(){return _0x1ffe06;};return a18_0x5639();}import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x2589f7){const _0x5d0846=a18_0x38cf,_0x503237=_0x2589f7['args'][0x0]?.[_0x5d0846(0x111)]();if(!_0x503237)throw CliErrors[_0x5d0846(0xff)](_0x5d0846(0x10f),_0x5d0846(0xfa)+CLI_BIN_NAME+_0x5d0846(0x105));}async function execute(_0x633893){const _0x4ac63c=a18_0x38cf,_0x114593=_0x633893[_0x4ac63c(0xfb)][0x0]?.[_0x4ac63c(0x111)]();if(!_0x114593)throw CliErrors[_0x4ac63c(0xff)](_0x4ac63c(0x10f),_0x4ac63c(0xfa)+CLI_BIN_NAME+_0x4ac63c(0x105));const _0x3d3f55=_0x633893[_0x4ac63c(0xfe)]('appcode');if(!_0x3d3f55)throw CliErrors[_0x4ac63c(0xfd)](_0x4ac63c(0x10b),_0x4ac63c(0xfa)+CLI_BIN_NAME+_0x4ac63c(0x105));const _0xf25ecd={'global':_0x633893['bool'](_0x4ac63c(0xfc))},_0x1391b3=readConfig(_0xf25ecd);if(!_0x1391b3['apps'])_0x1391b3[_0x4ac63c(0xf2)]={};const _0x2d4109={'appcode':_0x3d3f55,...collectAppProfileOverrides(_0x30e744=>_0x633893[_0x4ac63c(0xfe)](_0x30e744))},_0x42b389=_0x1391b3['apps'],_0x36fd45=!!_0x42b389[_0x114593];_0x42b389[_0x114593]=_0x2d4109;if(!_0x1391b3[_0x4ac63c(0xf8)])_0x1391b3[_0x4ac63c(0xf8)]=_0x114593;writeConfig(_0x1391b3,_0xf25ecd);const _0x5cd626=!_0x36fd45&&_0x1391b3['defaultApp']===_0x114593?_0x4ac63c(0xf0):'',_0x4cde72=(_0x36fd45?_0x4ac63c(0xef):_0x4ac63c(0xf5))+'\x20app\x20\x22'+_0x114593+_0x4ac63c(0x10e)+_0x3d3f55+')'+scopeLabel(_0xf25ecd)+'.'+_0x5cd626;return{'ok':!![],'message':_0x4cde72};}export const appAddDefinition={'service':a18_0x3d2281(0x10c),'command':'add','description':a18_0x3d2281(0x106),'risk':a18_0x3d2281(0xee),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x3d2281(0x108),'description':a18_0x3d2281(0xf1),'required':!![]}],'flags':[{'name':'appcode','type':a18_0x3d2281(0x110),'description':a18_0x3d2281(0x109),'required':!![]},{'name':a18_0x3d2281(0xfc),'type':'boolean','description':a18_0x3d2281(0x112),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};