@lovrabet/rabetbase-cli 2.1.6 → 2.1.7-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -0
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -0
  55. package/lib/commands/dataset/link-delete.js +1 -0
  56. package/lib/commands/dataset/link-shared.js +1 -0
  57. package/lib/commands/dataset/link-update.js +1 -0
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -0
  77. package/lib/commands/issue/report.js +1 -0
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -0
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +2 -1
  197. package/templates/projects/sub-app-react-demo/README.md +1 -1
@@ -1 +1 @@
1
- const a0_0x484ecc=a0_0x4a7a;(function(_0x50a6ed,_0x17cbd4){const _0x5a1ab2=a0_0x4a7a,_0x45a689=_0x50a6ed();while(!![]){try{const _0x57ce52=parseInt(_0x5a1ab2(0x150))/0x1+-parseInt(_0x5a1ab2(0x135))/0x2*(parseInt(_0x5a1ab2(0x148))/0x3)+parseInt(_0x5a1ab2(0x145))/0x4+-parseInt(_0x5a1ab2(0x12f))/0x5*(-parseInt(_0x5a1ab2(0x14a))/0x6)+parseInt(_0x5a1ab2(0x14c))/0x7+parseInt(_0x5a1ab2(0x133))/0x8+-parseInt(_0x5a1ab2(0x143))/0x9;if(_0x57ce52===_0x17cbd4)break;else _0x45a689['push'](_0x45a689['shift']());}catch(_0x1897a3){_0x45a689['push'](_0x45a689['shift']());}}}(a0_0x598e,0x6fdfd));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x25a539 from'node:path';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';function a0_0x4a7a(_0x53d526,_0x43ecd3){_0x53d526=_0x53d526-0x12d;const _0x598e50=a0_0x598e();let _0x4a7a0f=_0x598e50[_0x53d526];return _0x4a7a0f;}export async function fetchDatasetDoc(_0x4a5c8f){const _0x4f11ec=a0_0x4a7a,{appCode:_0x592c82,cookie:_0x313524,datasetCode:_0x44d2a5,datasetId:_0x4999db,extraParams:_0x3a24bd}=_0x4a5c8f,_0x179a56=getApiDomain()+_0x4f11ec(0x13a),_0x26ca0c=await platformFetch(_0x179a56,{'method':_0x4f11ec(0x131),'body':{'appCode':_0x592c82,'datasetCode':_0x44d2a5,'datasetId':_0x4999db,..._0x3a24bd||{}},'cookie':_0x313524,'label':'Fetch\x20doc\x20('+_0x44d2a5+')'});if(!_0x26ca0c||typeof _0x26ca0c['markdown']!=='string')throw new Error(_0x4f11ec(0x14d)+_0x44d2a5+_0x4f11ec(0x12e));return _0x26ca0c[_0x4f11ec(0x147)];}function a0_0x598e(){const _0xd67704=['.md\x20-\x20','✗\x20Failed:\x20','utf8','.md\x20(','Waiting\x203\x20seconds...\x0a','datasetCode','success','17934678DwKXYu','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','2738168WejLjy','.md','markdown','1074495mEkAvF','length','6JHlnRH','join','201964BqQrpO','Invalid\x20response\x20format\x20(','生成文档成功:\x20','push','771208UNkonE',']\x20Generating:\x20','):\x20missing\x20data.markdown\x20field','2388790oKUeZY','api-doc','POST','✓\x20Generated:\x20','6774272MJpwDv','生成文档失败:\x20','2mrsqDr','error','message','./docs','log','/api/node-toolbox/api-doc-generator','name'];a0_0x598e=function(){return _0xd67704;};return a0_0x598e();}function delay(_0x7c6d9){return new Promise(_0x107a9b=>setTimeout(_0x107a9b,_0x7c6d9));}export async function generateDatasetDocs(_0x1fd3b3,_0x52bf6d,_0x5f1b3d,_0x1f345e=a0_0x484ecc(0x138),_0x1bdf00,_0x29434f){const _0x3592fc=a0_0x484ecc;mkdirSync(_0x1f345e,{'recursive':!![]});const _0x306c76=[],_0xccaca5=_0x1fd3b3[_0x3592fc(0x149)];console[_0x3592fc(0x139)]('\x0a'+_0xccaca5+_0x3592fc(0x144));for(let _0xe0118d=0x0;_0xe0118d<_0x1fd3b3[_0x3592fc(0x149)];_0xe0118d++){const _0x342d76=_0x1fd3b3[_0xe0118d],_0x4007c7=_0xe0118d+0x1,_0x57a5f4=_0x342d76['tableName'];try{console[_0x3592fc(0x139)]('['+_0x4007c7+'/'+_0xccaca5+_0x3592fc(0x12d)+_0x57a5f4+_0x3592fc(0x13f)+_0x342d76['name']+')');if(_0x1bdf00)_0x1bdf00(_0x4007c7,_0xccaca5,_0x57a5f4);const _0x25fdfc=await fetchDatasetDoc({'appCode':_0x52bf6d,'cookie':_0x5f1b3d,'datasetCode':_0x342d76[_0x3592fc(0x141)],'datasetId':_0x342d76['id'],'enableAI':![],'extraParams':_0x29434f}),_0x45d2c0=a0_0x25a539[_0x3592fc(0x14b)](_0x1f345e,_0x57a5f4+'.md');writeFileSync(_0x45d2c0,_0x25fdfc,{'encoding':_0x3592fc(0x13e)}),console[_0x3592fc(0x139)](_0x3592fc(0x132)+_0x57a5f4+_0x3592fc(0x146)),logger[_0x3592fc(0x142)](_0x3592fc(0x130),_0x3592fc(0x14e)+_0x57a5f4,undefined,{'datasetCode':_0x342d76[_0x3592fc(0x141)],'datasetName':_0x342d76['name'],'filePath':_0x45d2c0,'progress':_0x4007c7+'/'+_0xccaca5}),_0x306c76[_0x3592fc(0x14f)]({'datasetCode':_0x342d76[_0x3592fc(0x141)],'datasetName':_0x342d76[_0x3592fc(0x13b)],'filePath':_0x45d2c0,'success':!![]});if(_0x4007c7<_0xccaca5)await delay(0x1388);}catch(_0x73033e){const _0x553195=_0x73033e instanceof Error?_0x73033e[_0x3592fc(0x137)]:String(_0x73033e);console[_0x3592fc(0x139)](_0x3592fc(0x13d)+_0x57a5f4+_0x3592fc(0x13c)+_0x553195),logger[_0x3592fc(0x136)]('api-doc',_0x3592fc(0x134)+_0x342d76[_0x3592fc(0x141)],{'datasetCode':_0x342d76[_0x3592fc(0x141)],'datasetName':_0x342d76['name'],'error':_0x553195,'progress':_0x4007c7+'/'+_0xccaca5}),_0x306c76[_0x3592fc(0x14f)]({'datasetCode':_0x342d76['datasetCode'],'datasetName':_0x342d76['name'],'filePath':'','success':![],'error':_0x553195}),_0x4007c7<_0xccaca5&&(console[_0x3592fc(0x139)](_0x3592fc(0x140)),await delay(0xbb8));}}return _0x306c76;}
1
+ function a0_0x486a(_0x3162f6,_0x4afcf1){_0x3162f6=_0x3162f6-0x176;const _0x58ce8f=a0_0x58ce();let _0x486a07=_0x58ce8f[_0x3162f6];return _0x486a07;}const a0_0x2d0d4f=a0_0x486a;(function(_0x1bc539,_0x11fbb9){const _0x23e5f6=a0_0x486a,_0x4a4312=_0x1bc539();while(!![]){try{const _0x5d0a44=parseInt(_0x23e5f6(0x17d))/0x1+-parseInt(_0x23e5f6(0x191))/0x2+parseInt(_0x23e5f6(0x198))/0x3+parseInt(_0x23e5f6(0x185))/0x4*(-parseInt(_0x23e5f6(0x192))/0x5)+-parseInt(_0x23e5f6(0x17f))/0x6*(-parseInt(_0x23e5f6(0x17e))/0x7)+-parseInt(_0x23e5f6(0x186))/0x8*(parseInt(_0x23e5f6(0x179))/0x9)+parseInt(_0x23e5f6(0x190))/0xa;if(_0x5d0a44===_0x11fbb9)break;else _0x4a4312['push'](_0x4a4312['shift']());}catch(_0x1cbbf2){_0x4a4312['push'](_0x4a4312['shift']());}}}(a0_0x58ce,0xd6a0f));function a0_0x58ce(){const _0x5ea51c=['72008GOFSiW','name','push','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','string','生成文档失败:\x20','✗\x20Failed:\x20','.md\x20(','):\x20missing\x20data.markdown\x20field','.md','22636930CMPsPh','1204946CArCCg','7098205XJjsbt','markdown','message',']\x20Generating:\x20','/api/node-toolbox/api-doc-generator','error','1182048krpIxC','Invalid\x20response\x20format\x20(','POST','datasetCode','Waiting\x203\x20seconds...\x0a','441NWSKtG','✓\x20Generated:\x20','join','length','485075JiCNYJ','1396486nsuavK','6LfpyLC','log','utf8','生成文档成功:\x20','./docs','api-doc','4lKjiwZ'];a0_0x58ce=function(){return _0x5ea51c;};return a0_0x58ce();}import{mkdirSync,writeFileSync}from'node:fs';import a0_0x74b6ee 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(_0x585de2){const _0x540f91=a0_0x486a,{appCode:_0x7838b6,cookie:_0x43e7ea,datasetCode:_0x26e320,datasetId:_0x21a158,extraParams:_0x2c8ed2}=_0x585de2,_0x3cc14f=getApiDomain()+_0x540f91(0x196),_0x2c3c7e=await platformFetch(_0x3cc14f,{'method':_0x540f91(0x176),'body':{'appCode':_0x7838b6,'datasetCode':_0x26e320,'datasetId':_0x21a158,..._0x2c8ed2||{}},'cookie':_0x43e7ea,'label':'Fetch\x20doc\x20('+_0x26e320+')'});if(!_0x2c3c7e||typeof _0x2c3c7e[_0x540f91(0x193)]!==_0x540f91(0x18a))throw new Error(_0x540f91(0x199)+_0x26e320+_0x540f91(0x18e));return _0x2c3c7e['markdown'];}function delay(_0x35e10c){return new Promise(_0xa268b4=>setTimeout(_0xa268b4,_0x35e10c));}export async function generateDatasetDocs(_0x4a41a6,_0x1cfddf,_0x2d95ba,_0x1a747d=a0_0x2d0d4f(0x183),_0x716162,_0x336c61){const _0xa51dfa=a0_0x2d0d4f;mkdirSync(_0x1a747d,{'recursive':!![]});const _0x350111=[],_0x110fc5=_0x4a41a6['length'];console[_0xa51dfa(0x180)]('\x0a'+_0x110fc5+_0xa51dfa(0x189));for(let _0x331a64=0x0;_0x331a64<_0x4a41a6[_0xa51dfa(0x17c)];_0x331a64++){const _0x349f36=_0x4a41a6[_0x331a64],_0x336b8b=_0x331a64+0x1,_0x507935=_0x349f36['tableName'];try{console[_0xa51dfa(0x180)]('['+_0x336b8b+'/'+_0x110fc5+_0xa51dfa(0x195)+_0x507935+_0xa51dfa(0x18d)+_0x349f36[_0xa51dfa(0x187)]+')');if(_0x716162)_0x716162(_0x336b8b,_0x110fc5,_0x507935);const _0x6bf3a1=await fetchDatasetDoc({'appCode':_0x1cfddf,'cookie':_0x2d95ba,'datasetCode':_0x349f36[_0xa51dfa(0x177)],'datasetId':_0x349f36['id'],'enableAI':![],'extraParams':_0x336c61}),_0x677c37=a0_0x74b6ee[_0xa51dfa(0x17b)](_0x1a747d,_0x507935+_0xa51dfa(0x18f));writeFileSync(_0x677c37,_0x6bf3a1,{'encoding':_0xa51dfa(0x181)}),console[_0xa51dfa(0x180)](_0xa51dfa(0x17a)+_0x507935+_0xa51dfa(0x18f)),logger['success'](_0xa51dfa(0x184),_0xa51dfa(0x182)+_0x507935,undefined,{'datasetCode':_0x349f36['datasetCode'],'datasetName':_0x349f36[_0xa51dfa(0x187)],'filePath':_0x677c37,'progress':_0x336b8b+'/'+_0x110fc5}),_0x350111[_0xa51dfa(0x188)]({'datasetCode':_0x349f36[_0xa51dfa(0x177)],'datasetName':_0x349f36[_0xa51dfa(0x187)],'filePath':_0x677c37,'success':!![]});if(_0x336b8b<_0x110fc5)await delay(0x1388);}catch(_0x1b4e56){const _0x4e4d23=_0x1b4e56 instanceof Error?_0x1b4e56[_0xa51dfa(0x194)]:String(_0x1b4e56);console[_0xa51dfa(0x180)](_0xa51dfa(0x18c)+_0x507935+'.md\x20-\x20'+_0x4e4d23),logger[_0xa51dfa(0x197)](_0xa51dfa(0x184),_0xa51dfa(0x18b)+_0x349f36[_0xa51dfa(0x177)],{'datasetCode':_0x349f36[_0xa51dfa(0x177)],'datasetName':_0x349f36['name'],'error':_0x4e4d23,'progress':_0x336b8b+'/'+_0x110fc5}),_0x350111[_0xa51dfa(0x188)]({'datasetCode':_0x349f36['datasetCode'],'datasetName':_0x349f36[_0xa51dfa(0x187)],'filePath':'','success':![],'error':_0x4e4d23}),_0x336b8b<_0x110fc5&&(console['log'](_0xa51dfa(0x178)),await delay(0xbb8));}}return _0x350111;}
@@ -1 +1 @@
1
- (function(_0x400c7a,_0x41a664){const _0xddca65=a1_0x3d2c,_0x3a02ad=_0x400c7a();while(!![]){try{const _0x2a7904=-parseInt(_0xddca65(0x180))/0x1+parseInt(_0xddca65(0x183))/0x2*(parseInt(_0xddca65(0x18a))/0x3)+-parseInt(_0xddca65(0x179))/0x4*(-parseInt(_0xddca65(0x18b))/0x5)+parseInt(_0xddca65(0x17c))/0x6+parseInt(_0xddca65(0x187))/0x7*(parseInt(_0xddca65(0x18c))/0x8)+parseInt(_0xddca65(0x189))/0x9+-parseInt(_0xddca65(0x17d))/0xa;if(_0x2a7904===_0x41a664)break;else _0x3a02ad['push'](_0x3a02ad['shift']());}catch(_0x2ab6f3){_0x3a02ad['push'](_0x3a02ad['shift']());}}}(a1_0x3bec,0x7c3d3));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(_0x2ca61f){const _0x5dea75=a1_0x3d2c;return _0x2ca61f[_0x5dea75(0x181)](/[\r\n]+/g,'\x20')[_0x5dea75(0x184)]();}function cleanDatasetName(_0x1f10b2){const _0x45410c=a1_0x3d2c;if(!_0x1f10b2[_0x45410c(0x185)])return _0x1f10b2;return{..._0x1f10b2,'name':cleanNewlines(_0x1f10b2['name'])};}function a1_0x3d2c(_0xf54a01,_0x46f8a5){_0xf54a01=_0xf54a01-0x179;const _0x3bece2=a1_0x3bec();let _0x3d2c98=_0x3bece2[_0xf54a01];return _0x3d2c98;}function a1_0x3bec(){const _0x2439df=['7mvKQxa','fetch-model-list','5706162TYhSls','3JCmhgc','120XFDnPU','7616480HFPkMd','2420RhhkKU','length','&otype=array','4017672pIiXqO','18684680wTnyzV','正在从服务器拉取模型列表...\x20(环境:\x20','/api/node-toolbox/dataset/model-list?appcode=','843366EtFzLj','replace','Fetch\x20datasets','1901014AhcplI','trim','name','info'];a1_0x3bec=function(){return _0x2439df;};return a1_0x3bec();}export async function fetchModelList(_0x59adc5,_0x5bfc46){const _0x45dae3=a1_0x3d2c,_0x2d340e=getEnv(),_0x3e7958=getApiDomain()+_0x45dae3(0x17f)+_0x59adc5+_0x45dae3(0x17b);logger[_0x45dae3(0x186)](_0x45dae3(0x188),_0x45dae3(0x17e)+_0x2d340e+')',{'apiUrl':_0x3e7958});const _0x3522b6=await platformFetch(_0x3e7958,{'cookie':_0x5bfc46,'label':_0x45dae3(0x182)}),_0x48656d=(_0x3522b6['configArray']??[])['map'](cleanDatasetName);return{'configArray':_0x48656d,'count':_0x48656d[_0x45dae3(0x17a)]};}
1
+ (function(_0xf78e81,_0x55f6cf){const _0x4c8a3f=a1_0x1246,_0x2481c8=_0xf78e81();while(!![]){try{const _0x533bcb=parseInt(_0x4c8a3f(0x1e7))/0x1+-parseInt(_0x4c8a3f(0x1df))/0x2+parseInt(_0x4c8a3f(0x1e3))/0x3+-parseInt(_0x4c8a3f(0x1db))/0x4+-parseInt(_0x4c8a3f(0x1e9))/0x5+-parseInt(_0x4c8a3f(0x1e5))/0x6*(-parseInt(_0x4c8a3f(0x1eb))/0x7)+parseInt(_0x4c8a3f(0x1e2))/0x8*(-parseInt(_0x4c8a3f(0x1e8))/0x9);if(_0x533bcb===_0x55f6cf)break;else _0x2481c8['push'](_0x2481c8['shift']());}catch(_0x3e4974){_0x2481c8['push'](_0x2481c8['shift']());}}}(a1_0x48e3,0xcd3ef));import{getApiDomain}from'../constant/domain.js';function a1_0x48e3(){const _0x276b79=['&otype=array','2028872LKkvas','trim','Fetch\x20datasets','replace','820028EKpmzn','configArray','正在从服务器拉取模型列表...\x20(环境:\x20','56CexHGH','4266816YURWzk','info','18726wmZQpS','/api/node-toolbox/dataset/model-list?appcode=','1294876DbXqEs','742977XrqAuf','5261865anlduY','map','1505gEZgeT','name'];a1_0x48e3=function(){return _0x276b79;};return a1_0x48e3();}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x1246(_0x38a2a3,_0xfc3f5b){_0x38a2a3=_0x38a2a3-0x1d9;const _0x48e32d=a1_0x48e3();let _0x124684=_0x48e32d[_0x38a2a3];return _0x124684;}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x4994de){const _0x51589=a1_0x1246;return _0x4994de[_0x51589(0x1de)](/[\r\n]+/g,'\x20')[_0x51589(0x1dc)]();}function cleanDatasetName(_0x45ff03){const _0x4c55e6=a1_0x1246;if(!_0x45ff03['name'])return _0x45ff03;return{..._0x45ff03,'name':cleanNewlines(_0x45ff03[_0x4c55e6(0x1d9)])};}export async function fetchModelList(_0x27090c,_0x4221da){const _0x472c08=a1_0x1246,_0x12f8d0=getEnv(),_0x744c6b=getApiDomain()+_0x472c08(0x1e6)+_0x27090c+_0x472c08(0x1da);logger[_0x472c08(0x1e4)]('fetch-model-list',_0x472c08(0x1e1)+_0x12f8d0+')',{'apiUrl':_0x744c6b});const _0x187a8f=await platformFetch(_0x744c6b,{'cookie':_0x4221da,'label':_0x472c08(0x1dd)}),_0x2d719f=(_0x187a8f[_0x472c08(0x1e0)]??[])[_0x472c08(0x1ea)](cleanDatasetName);return{'configArray':_0x2d719f,'count':_0x2d719f['length']};}
@@ -1 +1 @@
1
- function a2_0x2bef(){const _0x5e31e1=['9111942VJhQJn','1790140JxsBzs','utf8','success','datasetCode','379257ouywdn','replaceApiContent','4201260uPPMVm','init-api','api','join','name','format','{\x20apiConfigName:\x20\x22','36tQmRVT','1048aJGsQG','API\x20文件生成成功!','../..','dirname','{\x20apiConfigName:\x20','22568gZgBSu',',\x20env:\x20\x22','.ts','CONFIG_NAMES.DEFAULT','alias','tableName','resolve','templates/generate-api','api.ts.tpl','124417WVcaxX','14NSExwF','client.ts.tpl','\x20config\x20set\x20app\x20<value>`','replace','16495490ZzbvWR','toUpperCase','length'];a2_0x2bef=function(){return _0x5e31e1;};return a2_0x2bef();}(function(_0x5a475c,_0x6a00fc){const _0x2309e5=a2_0x22cf,_0x4ec793=_0x5a475c();while(!![]){try{const _0x221732=parseInt(_0x2309e5(0xb0))/0x1*(-parseInt(_0x2309e5(0xb1))/0x2)+-parseInt(_0x2309e5(0xbd))/0x3*(parseInt(_0x2309e5(0xa1))/0x4)+-parseInt(_0x2309e5(0xb9))/0x5+parseInt(_0x2309e5(0xbf))/0x6+parseInt(_0x2309e5(0xa7))/0x7*(-parseInt(_0x2309e5(0xa2))/0x8)+parseInt(_0x2309e5(0xb8))/0x9+parseInt(_0x2309e5(0xb5))/0xa;if(_0x221732===_0x6a00fc)break;else _0x4ec793['push'](_0x4ec793['shift']());}catch(_0x54823f){_0x4ec793['push'](_0x4ec793['shift']());}}}(a2_0x2bef,0x8becf));import a2_0x5084c9 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x5653cf from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a2_0x22cf(_0x3750aa,_0x3f4985){_0x3750aa=_0x3750aa-0xa1;const _0x2bef90=a2_0x2bef();let _0x22cfc7=_0x2bef90[_0x3750aa];return _0x22cfc7;}import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x26114b,_0xbacb8b,_0x57deff,_0x5273cb,_0x189d4a,_0xd6d49d,_0x5e49a6){const _0x5f1351=a2_0x22cf;if(!_0x57deff)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+_0x5f1351(0xb3));const _0x8bd86b=_0x5273cb&&!_0x5e49a6,_0x5836dd=_0x5e49a6||_0x57deff,_0x35a3ee=_0x8bd86b?_0x5f1351(0xaa):'\x22'+_0x5836dd+'\x22',_0x27b8ca=!isProduction(_0x189d4a);let _0x16421f;if(_0x8bd86b)_0x27b8ca?_0x16421f=_0x5f1351(0xa6)+_0x35a3ee+_0x5f1351(0xa8)+_0x189d4a+'\x22\x20}':_0x16421f='';else{const _0x1bedfd=_0x27b8ca?_0x5f1351(0xa8)+_0x189d4a+'\x22':'';_0x16421f=_0x5f1351(0xc5)+_0x5836dd+'\x22'+_0x1bedfd+'\x20}';}const _0x5af04b=_0xbacb8b?_0xbacb8b+'-api':_0x5f1351(0xc1),_0x55f873=_0xbacb8b?_0xbacb8b+'-client':'client',_0x13ab1a=_0xbacb8b&&!/^app-[a-f0-9]+$/i['test'](_0xbacb8b)?_0xbacb8b[_0x5f1351(0xb4)](/-/g,'_')[_0x5f1351(0xb6)]():'LOVRABET',_0x1f7e8e=[];_0x26114b['forEach'](_0x5ad673=>{const _0x54d832=_0x5f1351;_0x1f7e8e['push']({'datasetCode':_0x5ad673[_0x54d832(0xbc)],'tableName':_0x5ad673[_0x54d832(0xac)],'name':_0x5ad673[_0x54d832(0xc3)]||'','alias':_0x5ad673[_0x54d832(0xab)]||_0x5ad673['key']});});const _0x55f2d6=fileURLToPath(import.meta.url),_0x2df52b=a2_0x5653cf[_0x5f1351(0xad)](a2_0x5653cf[_0x5f1351(0xa5)](_0x55f2d6),_0x5f1351(0xa4)),_0x2b7d45=a2_0x5653cf[_0x5f1351(0xc2)](_0x2df52b,_0x5f1351(0xae)),_0x53179e=a2_0x5653cf[_0x5f1351(0xc2)](_0x2b7d45,_0x5f1351(0xaf)),_0x35bd13=a2_0x5653cf[_0x5f1351(0xc2)](_0x2b7d45,_0x5f1351(0xb2)),_0x422eb6=_0xd6d49d;mkdirSync(_0x422eb6,{'recursive':!![]});const _0x40ca3d=_0x1f7e8e[0x0]?.[_0x5f1351(0xab)],_0x49e5bd=readFileSync(_0x53179e,_0x5f1351(0xba)),_0x3b8333=TemplateReplacer[_0x5f1351(0xbe)](_0x49e5bd,_0x57deff,_0x1f7e8e,_0x40ca3d,_0x5af04b,_0x35a3ee,undefined,_0x13ab1a),_0x4baf35=await a2_0x5084c9[_0x5f1351(0xc4)](_0x3b8333,{'parser':'typescript'}),_0x578b42=a2_0x5653cf['join'](_0x422eb6,_0x5af04b+_0x5f1351(0xa9));writeFileSync(_0x578b42,_0x4baf35,{'encoding':_0x5f1351(0xba)});const _0x22ca90=readFileSync(_0x35bd13,_0x5f1351(0xba)),_0x3e3c6d=TemplateReplacer[_0x5f1351(0xbe)](_0x22ca90,_0x57deff,_0x1f7e8e,_0x40ca3d,_0x5af04b,_0x35a3ee,_0x16421f,_0x13ab1a),_0x1328df=await a2_0x5084c9[_0x5f1351(0xc4)](_0x3e3c6d,{'parser':'typescript'}),_0x1643ec=a2_0x5653cf[_0x5f1351(0xc2)](_0x422eb6,_0x55f873+_0x5f1351(0xa9));writeFileSync(_0x1643ec,_0x1328df,{'encoding':'utf8'});const _0xe6dab8=_0x1f7e8e[_0x5f1351(0xb7)];return logger[_0x5f1351(0xbb)](_0x5f1351(0xc0),_0x5f1351(0xa3),undefined,{'apiFile':_0x578b42,'clientFile':_0x1643ec,'modelCount':_0xe6dab8,'configName':_0x35a3ee}),{'modelCount':_0xe6dab8,'apiFilePath':_0x578b42,'clientFilePath':_0x1643ec,'configName':_0x35a3ee};}
1
+ (function(_0x133ac5,_0x439798){const _0x507558=a2_0x1bbe,_0x1eca6e=_0x133ac5();while(!![]){try{const _0x1dc861=parseInt(_0x507558(0x1a4))/0x1*(parseInt(_0x507558(0x187))/0x2)+parseInt(_0x507558(0x199))/0x3*(-parseInt(_0x507558(0x1a9))/0x4)+-parseInt(_0x507558(0x18e))/0x5*(parseInt(_0x507558(0x19e))/0x6)+-parseInt(_0x507558(0x18b))/0x7+-parseInt(_0x507558(0x189))/0x8*(-parseInt(_0x507558(0x198))/0x9)+parseInt(_0x507558(0x19d))/0xa+-parseInt(_0x507558(0x1a6))/0xb*(parseInt(_0x507558(0x1a8))/0xc);if(_0x1dc861===_0x439798)break;else _0x1eca6e['push'](_0x1eca6e['shift']());}catch(_0x127607){_0x1eca6e['push'](_0x1eca6e['shift']());}}}(a2_0x28db,0xdbbbc));function a2_0x28db(){const _0x3bf3cd=['{\x20apiConfigName:\x20','.ts','../..','replaceApiContent','format',',\x20env:\x20\x22','key','CONFIG_NAMES.DEFAULT','390554OiGAXB','api','24gIRnLW','push','6075636JTNFvT','datasetCode','dirname','400oNPJpv','Please\x20configure\x20app\x20code\x20first\x20via\x20`','replace','tableName','typescript','\x20config\x20set\x20app\x20<value>`','forEach','init-api','{\x20apiConfigName:\x20\x22','templates/generate-api','3534507FJGMIK','3208995TjQxFP','alias','utf8','toUpperCase','11949620nZpfxT','13326AGGCls','client','LOVRABET','client.ts.tpl','join','api.ts.tpl','8HCcjqZ','-api','10120286vzlyxV','length','12sfEwqz','4JWoNOk','API\x20文件生成成功!'];a2_0x28db=function(){return _0x3bf3cd;};return a2_0x28db();}import a2_0x259641 from'prettier';function a2_0x1bbe(_0x95b3f4,_0x21d0fe){_0x95b3f4=_0x95b3f4-0x181;const _0x28dbe2=a2_0x28db();let _0x1bbede=_0x28dbe2[_0x95b3f4];return _0x1bbede;}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x2c711a from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x3d881e,_0x7ebed9,_0x5701af,_0x2ae771,_0x4110f0,_0x50de51,_0x8a77a7){const _0xc281e=a2_0x1bbe;if(!_0x5701af)throw new Error(_0xc281e(0x18f)+CLI_BIN_NAME+_0xc281e(0x193));const _0x22a6a7=_0x2ae771&&!_0x8a77a7,_0x10d5d5=_0x8a77a7||_0x5701af,_0x505096=_0x22a6a7?_0xc281e(0x186):'\x22'+_0x10d5d5+'\x22',_0x3573bb=!isProduction(_0x4110f0);let _0xcf9a02;if(_0x22a6a7)_0x3573bb?_0xcf9a02=_0xc281e(0x1ab)+_0x505096+_0xc281e(0x184)+_0x4110f0+'\x22\x20}':_0xcf9a02='';else{const _0x457657=_0x3573bb?_0xc281e(0x184)+_0x4110f0+'\x22':'';_0xcf9a02=_0xc281e(0x196)+_0x10d5d5+'\x22'+_0x457657+'\x20}';}const _0x3a241a=_0x7ebed9?_0x7ebed9+_0xc281e(0x1a5):_0xc281e(0x188),_0x17864a=_0x7ebed9?_0x7ebed9+'-client':_0xc281e(0x19f),_0x252622=_0x7ebed9&&!/^app-[a-f0-9]+$/i['test'](_0x7ebed9)?_0x7ebed9[_0xc281e(0x190)](/-/g,'_')[_0xc281e(0x19c)]():_0xc281e(0x1a0),_0x4e5a39=[];_0x3d881e[_0xc281e(0x194)](_0x5b1856=>{const _0x1c0903=_0xc281e;_0x4e5a39[_0x1c0903(0x18a)]({'datasetCode':_0x5b1856[_0x1c0903(0x18c)],'tableName':_0x5b1856[_0x1c0903(0x191)],'name':_0x5b1856['name']||'','alias':_0x5b1856[_0x1c0903(0x19a)]||_0x5b1856[_0x1c0903(0x185)]});});const _0x505d75=fileURLToPath(import.meta.url),_0x5fd291=a2_0x2c711a['resolve'](a2_0x2c711a[_0xc281e(0x18d)](_0x505d75),_0xc281e(0x181)),_0x16707d=a2_0x2c711a[_0xc281e(0x1a2)](_0x5fd291,_0xc281e(0x197)),_0x2c0610=a2_0x2c711a[_0xc281e(0x1a2)](_0x16707d,_0xc281e(0x1a3)),_0x5dfaf0=a2_0x2c711a[_0xc281e(0x1a2)](_0x16707d,_0xc281e(0x1a1)),_0x36e07f=_0x50de51;mkdirSync(_0x36e07f,{'recursive':!![]});const _0x5bda07=_0x4e5a39[0x0]?.[_0xc281e(0x19a)],_0x32dbcb=readFileSync(_0x2c0610,'utf8'),_0x15c1bf=TemplateReplacer[_0xc281e(0x182)](_0x32dbcb,_0x5701af,_0x4e5a39,_0x5bda07,_0x3a241a,_0x505096,undefined,_0x252622),_0x4528b2=await a2_0x259641[_0xc281e(0x183)](_0x15c1bf,{'parser':'typescript'}),_0x845d6a=a2_0x2c711a[_0xc281e(0x1a2)](_0x36e07f,_0x3a241a+_0xc281e(0x1ac));writeFileSync(_0x845d6a,_0x4528b2,{'encoding':'utf8'});const _0x2109dc=readFileSync(_0x5dfaf0,_0xc281e(0x19b)),_0x85da29=TemplateReplacer[_0xc281e(0x182)](_0x2109dc,_0x5701af,_0x4e5a39,_0x5bda07,_0x3a241a,_0x505096,_0xcf9a02,_0x252622),_0x377130=await a2_0x259641[_0xc281e(0x183)](_0x85da29,{'parser':_0xc281e(0x192)}),_0x23ea3f=a2_0x2c711a['join'](_0x36e07f,_0x17864a+_0xc281e(0x1ac));writeFileSync(_0x23ea3f,_0x377130,{'encoding':_0xc281e(0x19b)});const _0x4ee84d=_0x4e5a39[_0xc281e(0x1a7)];return logger['success'](_0xc281e(0x195),_0xc281e(0x1aa),undefined,{'apiFile':_0x845d6a,'clientFile':_0x23ea3f,'modelCount':_0x4ee84d,'configName':_0x505096}),{'modelCount':_0x4ee84d,'apiFilePath':_0x845d6a,'clientFilePath':_0x23ea3f,'configName':_0x505096};}
@@ -1 +1 @@
1
- (function(_0x30aae4,_0x1cba9b){const _0x343507=a3_0x38fa,_0x369a55=_0x30aae4();while(!![]){try{const _0x339723=-parseInt(_0x343507(0x13f))/0x1*(parseInt(_0x343507(0x13d))/0x2)+-parseInt(_0x343507(0x13b))/0x3*(parseInt(_0x343507(0x136))/0x4)+-parseInt(_0x343507(0x131))/0x5*(-parseInt(_0x343507(0x139))/0x6)+parseInt(_0x343507(0x130))/0x7*(-parseInt(_0x343507(0x135))/0x8)+-parseInt(_0x343507(0x134))/0x9+-parseInt(_0x343507(0x138))/0xa+parseInt(_0x343507(0x143))/0xb;if(_0x339723===_0x1cba9b)break;else _0x369a55['push'](_0x369a55['shift']());}catch(_0x241c20){_0x369a55['push'](_0x369a55['shift']());}}}(a3_0x20dc,0xcbae5));import{getIsSessionValid}from'../auth/is-session-valid.js';function a3_0x20dc(){const _0x9fa269=['3212559VodljA','5555710XwxJOJ','\x20auth\x20login\x20--yes`\x20in\x20an\x20interactive\x20terminal.','log','10924992RMMPZo','24bTMbTu','5222284QFQexv','*\x20Login\x20successful!','12279740AxropI','6AVPtYU','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','3aTatwy','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','55306bJQNIW','validation','54ybnqFr','nonInteractive','No\x20valid\x20session.\x20Login\x20now?','autoYes','69747051eNWGmP','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.'];a3_0x20dc=function(){return _0x9fa269;};return a3_0x20dc();}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';function a3_0x38fa(_0x2b7e3e,_0x94bae2){_0x2b7e3e=_0x2b7e3e-0x130;const _0x20dcfe=a3_0x20dc();let _0x38fa58=_0x20dcfe[_0x2b7e3e];return _0x38fa58;}import a3_0x666de2 from'ora';export async function runAuthServer(_0x4538bb){const _0x35f2c6=a3_0x38fa,_0xd862b3=await getIsSessionValid();if(_0xd862b3){console[_0x35f2c6(0x133)](_0x35f2c6(0x13c));return;}if(_0x4538bb?.[_0x35f2c6(0x140)])throw CliErrors[_0x35f2c6(0x13e)](_0x35f2c6(0x13a),'Run\x20`'+CLI_BIN_NAME+_0x35f2c6(0x132));const _0x1532c1=_0x4538bb?.[_0x35f2c6(0x142)]?!![]:await confirm({'message':_0x35f2c6(0x141),'default':!![]});if(!_0x1532c1)return;const _0x2013b5=a3_0x666de2(_0x35f2c6(0x144))['start'](),_0xbfa121=await authServer({'silent':!![]});_0x2013b5['stop'](),_0xbfa121?console[_0x35f2c6(0x133)](_0x35f2c6(0x137)):console[_0x35f2c6(0x133)]('!\x20Login\x20failed.');}
1
+ (function(_0x3f3813,_0x2c59ca){const _0x64cd6b=a3_0x5aac,_0x57c4af=_0x3f3813();while(!![]){try{const _0x1c296f=parseInt(_0x64cd6b(0xb5))/0x1*(parseInt(_0x64cd6b(0xb4))/0x2)+-parseInt(_0x64cd6b(0xb7))/0x3+-parseInt(_0x64cd6b(0xae))/0x4+-parseInt(_0x64cd6b(0xb2))/0x5+parseInt(_0x64cd6b(0xb9))/0x6+-parseInt(_0x64cd6b(0xb0))/0x7*(-parseInt(_0x64cd6b(0xbe))/0x8)+parseInt(_0x64cd6b(0xb8))/0x9*(parseInt(_0x64cd6b(0xbb))/0xa);if(_0x1c296f===_0x2c59ca)break;else _0x57c4af['push'](_0x57c4af['shift']());}catch(_0x47dbf3){_0x57c4af['push'](_0x57c4af['shift']());}}}(a3_0x493c,0x9036d));function a3_0x493c(){const _0x410bf0=['√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','*\x20Login\x20successful!','1991952bGrMge','Run\x20`','4080895TmoeEt','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','4366520rruXiV','stop','5030vAOBGs','449rtMKAw','autoYes','2960463rINWlL','4706694PnjPOd','4281768ZcShPD','\x20auth\x20login\x20--yes`\x20in\x20an\x20interactive\x20terminal.','10BtNknU','start','log','8nPQgwW','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','validation','!\x20Login\x20failed.'];a3_0x493c=function(){return _0x410bf0;};return a3_0x493c();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';function a3_0x5aac(_0x52bde6,_0x107ea1){_0x52bde6=_0x52bde6-0xaa;const _0x493c01=a3_0x493c();let _0x5aac46=_0x493c01[_0x52bde6];return _0x5aac46;}import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a3_0x39de98 from'ora';export async function runAuthServer(_0x3231f9){const _0x2f9372=a3_0x5aac,_0x5d2089=await getIsSessionValid();if(_0x5d2089){console[_0x2f9372(0xbd)](_0x2f9372(0xac));return;}if(_0x3231f9?.['nonInteractive'])throw CliErrors[_0x2f9372(0xaa)](_0x2f9372(0xb1),_0x2f9372(0xaf)+CLI_BIN_NAME+_0x2f9372(0xba));const _0x47355a=_0x3231f9?.[_0x2f9372(0xb6)]?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x47355a)return;const _0x3e1341=a3_0x39de98(_0x2f9372(0xbf))[_0x2f9372(0xbc)](),_0x1ab4d7=await authServer({'silent':!![]});_0x3e1341[_0x2f9372(0xb3)](),_0x1ab4d7?console[_0x2f9372(0xbd)](_0x2f9372(0xad)):console['log'](_0x2f9372(0xab));}
@@ -1 +1 @@
1
- const a4_0xb30f0b=a4_0x1682;(function(_0x210a4a,_0x66025e){const _0x20ec48=a4_0x1682,_0xff3664=_0x210a4a();while(!![]){try{const _0x104ed2=-parseInt(_0x20ec48(0x110))/0x1+-parseInt(_0x20ec48(0x116))/0x2*(parseInt(_0x20ec48(0x124))/0x3)+parseInt(_0x20ec48(0x119))/0x4*(-parseInt(_0x20ec48(0x121))/0x5)+parseInt(_0x20ec48(0x113))/0x6+-parseInt(_0x20ec48(0x125))/0x7*(parseInt(_0x20ec48(0x10f))/0x8)+-parseInt(_0x20ec48(0x10e))/0x9*(-parseInt(_0x20ec48(0x114))/0xa)+-parseInt(_0x20ec48(0x11f))/0xb*(-parseInt(_0x20ec48(0x123))/0xc);if(_0x104ed2===_0x66025e)break;else _0xff3664['push'](_0xff3664['shift']());}catch(_0x163b6e){_0xff3664['push'](_0xff3664['shift']());}}}(a4_0x1358,0xc1b74));import{writeFileSync}from'node:fs';function a4_0x1358(){const _0x1590f2=['1559172mgkGVb','platform','user','4yJbQtI','/sign-in?redirect=','📍\x20Login\x20URL:','end','win32','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','361174hdUbDS','https://g.yuntooai.com/cert/lovrabet-dev.json','273235xKzScx','writeHead','636fyXBlN','3nnDKeA','7PilWYm','port','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','listen','session','https://dev.lovrabet.com:','darwin','silent','/api/auth/get-session','Auth\x20server\x20error:','json','isAuth','catch','then','🔐\x20Starting\x20login\x20service...','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','log','error','31788MaGbHp','9827096icGSzx','858836XhYNIG','xdg-open\x20\x22','createServer','9072132oqvYAt','1310ehrPjp','address'];a4_0x1358=function(){return _0x1590f2;};return a4_0x1358();}import a4_0x56cc9b 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_0x1682(_0x5b7eae,_0x38f7a6){_0x5b7eae=_0x5b7eae-0x106;const _0x135883=a4_0x1358();let _0x168205=_0x135883[_0x5b7eae];return _0x168205;}import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0x494d0c){const _0x4b965e=a4_0x1682,_0x4d3b06=_0x494d0c?.[_0x4b965e(0x12c)]||![];if(await getIsSessionValid())return!![];const _0x1aa213=await(await fetch(_0x4b965e(0x120)))[_0x4b965e(0x12f)]();return new Promise(async(_0x572072,_0x3eab53)=>{const _0x1619b7=_0x4b965e;let _0x535443=0x0;const _0x12feca=a4_0x56cc9b[_0x1619b7(0x112)](_0x1aa213,async(_0x3624f0,_0x3fa23c)=>{const _0x2276f3=_0x1619b7,_0x21ccf2=getUserDomain(),_0x320143=_0x3624f0['headers']['cookie']||'',_0x5afef6=await fetch(_0x21ccf2+_0x2276f3(0x12d),{'headers':{'cookie':_0x320143}})[_0x2276f3(0x108)](_0x24b24d=>_0x24b24d['json']()),_0x38e615=_0x5afef6&&_0x5afef6[_0x2276f3(0x129)]&&_0x5afef6[_0x2276f3(0x118)];if(_0x38e615){writeFileSync(cookieFile,_0x320143,'utf-8'),_0x572072(!![]);const _0x3f8743=buildLoginSuccessHtml();_0x3fa23c[_0x2276f3(0x122)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x3fa23c[_0x2276f3(0x11c)](_0x3f8743),_0x12feca['close']();}else{const _0x51184c=''+encodeURIComponent('https://dev.lovrabet.com:'+_0x535443);_0x3fa23c[_0x2276f3(0x122)](0x12e,{'location':_0x21ccf2+_0x2276f3(0x11a)+_0x51184c}),_0x3fa23c[_0x2276f3(0x11c)]();return;}});_0x12feca[_0x1619b7(0x128)](0x0,'127.0.0.1',()=>{const _0x2eb11a=_0x1619b7,_0xb24bf1=_0x12feca[_0x2eb11a(0x115)]();_0x535443=typeof _0xb24bf1==='object'&&_0xb24bf1?_0xb24bf1[_0x2eb11a(0x126)]:Number(_0xb24bf1);const _0x36c69a=_0x2eb11a(0x12a)+_0x535443;!_0x4d3b06&&(console['log'](_0x2eb11a(0x109)),console[_0x2eb11a(0x10c)](_0x2eb11a(0x11b),_0x36c69a),console[_0x2eb11a(0x10c)](_0x2eb11a(0x10b)),console[_0x2eb11a(0x10c)](''),console[_0x2eb11a(0x10c)](_0x2eb11a(0x11e)),console[_0x2eb11a(0x10c)]('')),openInBrowser(_0x36c69a)[_0x2eb11a(0x108)](_0x4f0dd5=>{const _0x202b58=_0x2eb11a;!_0x4d3b06&&(_0x4f0dd5?console[_0x202b58(0x10c)](_0x202b58(0x10a)):(console['log'](_0x202b58(0x127)),console[_0x202b58(0x10c)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x36c69a)),console['log'](''));})[_0x2eb11a(0x107)](()=>{const _0x2f1b55=_0x2eb11a;!_0x4d3b06&&(console[_0x2f1b55(0x10c)](_0x2f1b55(0x127)),console[_0x2f1b55(0x10c)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x36c69a),console['log'](''));});}),_0x12feca['on'](_0x1619b7(0x10d),_0x46e028=>{const _0x14adfa=_0x1619b7;!_0x4d3b06&&console[_0x14adfa(0x10d)](_0x14adfa(0x12e),_0x46e028),_0x3eab53(_0x46e028);});});}function openInBrowser(_0x5d797a){return new Promise(_0x59e3c1=>{const _0x3de406=a4_0x1682,_0x47826d=process[_0x3de406(0x117)];let _0x583895;if(_0x47826d===_0x3de406(0x11d))_0x583895='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x5d797a+'\x22';else _0x47826d===_0x3de406(0x12b)?_0x583895='open\x20\x22'+_0x5d797a+'\x22':_0x583895=_0x3de406(0x111)+_0x5d797a+'\x22';exec(_0x583895,_0x342107=>{_0x342107?_0x59e3c1(![]):_0x59e3c1(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log'](a4_0xb30f0b(0x106),isAuth);}
1
+ const a4_0x284dbd=a4_0x178a;(function(_0x334eaa,_0x1063f5){const _0x5b7aaa=a4_0x178a,_0x165278=_0x334eaa();while(!![]){try{const _0x2ab34e=parseInt(_0x5b7aaa(0x92))/0x1+-parseInt(_0x5b7aaa(0x9c))/0x2+-parseInt(_0x5b7aaa(0x81))/0x3*(parseInt(_0x5b7aaa(0x94))/0x4)+-parseInt(_0x5b7aaa(0x97))/0x5+parseInt(_0x5b7aaa(0x83))/0x6+parseInt(_0x5b7aaa(0xa3))/0x7*(-parseInt(_0x5b7aaa(0x91))/0x8)+parseInt(_0x5b7aaa(0x8a))/0x9*(parseInt(_0x5b7aaa(0x84))/0xa);if(_0x2ab34e===_0x1063f5)break;else _0x165278['push'](_0x165278['shift']());}catch(_0x478b3a){_0x165278['push'](_0x165278['shift']());}}}(a4_0x30cc,0xeda89));import{writeFileSync}from'node:fs';import a4_0x5b98da from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';function a4_0x30cc(){const _0x4e6fca=['log','3DZJHpr','darwin','5911740QMmJEa','260LIFEXs','open\x20\x22','https://g.yuntooai.com/cert/lovrabet-dev.json','isAuth','then','error','585459CKJZLe','user','https://dev.lovrabet.com:','cmd\x20/c\x20start\x20\x22\x22\x20\x22','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','writeHead','utf-8','5829704uxvRGW','1421135uiMNTd','end','1459028TEAoQm','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','port','6821765OecrMH','session','catch','json','address','1332958PWGJaY','listen','/sign-in?redirect=','🔐\x20Starting\x20login\x20service...','headers','text/html;\x20charset=utf-8','createServer','7YxfwXS','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','xdg-open\x20\x22','silent'];a4_0x30cc=function(){return _0x4e6fca;};return a4_0x30cc();}export async function authServer(_0x415ab5){const _0xd12ce5=a4_0x178a,_0xb7cd4a=_0x415ab5?.[_0xd12ce5(0x7f)]||![];if(await getIsSessionValid())return!![];const _0xeb461=await(await fetch(_0xd12ce5(0x86)))[_0xd12ce5(0x9a)]();return new Promise(async(_0x383e69,_0x4b892f)=>{const _0x1ae648=_0xd12ce5;let _0x52176c=0x0;const _0x501816=a4_0x5b98da[_0x1ae648(0xa2)](_0xeb461,async(_0x32f71f,_0x4b6335)=>{const _0x165a99=_0x1ae648,_0x432faa=getUserDomain(),_0x13c217=_0x32f71f[_0x165a99(0xa0)]['cookie']||'',_0x5197b2=await fetch(_0x432faa+'/api/auth/get-session',{'headers':{'cookie':_0x13c217}})['then'](_0x1c84b0=>_0x1c84b0[_0x165a99(0x9a)]()),_0x21c8f6=_0x5197b2&&_0x5197b2[_0x165a99(0x98)]&&_0x5197b2[_0x165a99(0x8b)];if(_0x21c8f6){writeFileSync(cookieFile,_0x13c217,_0x165a99(0x90)),_0x383e69(!![]);const _0x4cb10e=buildLoginSuccessHtml();_0x4b6335[_0x165a99(0x8f)](0xc8,{'Content-Type':_0x165a99(0xa1)}),_0x4b6335[_0x165a99(0x93)](_0x4cb10e),_0x501816['close']();}else{const _0x270e5f=''+encodeURIComponent(_0x165a99(0x8c)+_0x52176c);_0x4b6335[_0x165a99(0x8f)](0x12e,{'location':_0x432faa+_0x165a99(0x9e)+_0x270e5f}),_0x4b6335[_0x165a99(0x93)]();return;}});_0x501816[_0x1ae648(0x9d)](0x0,'127.0.0.1',()=>{const _0x2b42df=_0x1ae648,_0xda06c=_0x501816[_0x2b42df(0x9b)]();_0x52176c=typeof _0xda06c==='object'&&_0xda06c?_0xda06c[_0x2b42df(0x96)]:Number(_0xda06c);const _0x401f62=_0x2b42df(0x8c)+_0x52176c;!_0xb7cd4a&&(console[_0x2b42df(0x80)](_0x2b42df(0x9f)),console[_0x2b42df(0x80)]('📍\x20Login\x20URL:',_0x401f62),console[_0x2b42df(0x80)]('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x2b42df(0x80)](''),console[_0x2b42df(0x80)]('💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.'),console[_0x2b42df(0x80)]('')),openInBrowser(_0x401f62)[_0x2b42df(0x88)](_0x4f342e=>{const _0x29aebf=_0x2b42df;!_0xb7cd4a&&(_0x4f342e?console[_0x29aebf(0x80)](_0x29aebf(0x95)):(console[_0x29aebf(0x80)](_0x29aebf(0xa4)),console[_0x29aebf(0x80)](_0x29aebf(0x8e),_0x401f62)),console[_0x29aebf(0x80)](''));})[_0x2b42df(0x99)](()=>{const _0x3e14cd=_0x2b42df;!_0xb7cd4a&&(console[_0x3e14cd(0x80)](_0x3e14cd(0xa4)),console['log'](_0x3e14cd(0x8e),_0x401f62),console['log'](''));});}),_0x501816['on'](_0x1ae648(0x89),_0x239550=>{const _0x1148d6=_0x1ae648;!_0xb7cd4a&&console[_0x1148d6(0x89)]('Auth\x20server\x20error:',_0x239550),_0x4b892f(_0x239550);});});}function a4_0x178a(_0x37028f,_0x46d4ba){_0x37028f=_0x37028f-0x7f;const _0x30cc76=a4_0x30cc();let _0x178a91=_0x30cc76[_0x37028f];return _0x178a91;}function openInBrowser(_0x3603f1){return new Promise(_0x4a96a9=>{const _0x318373=a4_0x178a,_0x305274=process['platform'];let _0x592ffb;if(_0x305274==='win32')_0x592ffb=_0x318373(0x8d)+_0x3603f1+'\x22';else _0x305274===_0x318373(0x82)?_0x592ffb=_0x318373(0x85)+_0x3603f1+'\x22':_0x592ffb=_0x318373(0xa5)+_0x3603f1+'\x22';exec(_0x592ffb,_0x673a3e=>{_0x673a3e?_0x4a96a9(![]):_0x4a96a9(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log'](a4_0x284dbd(0x87),isAuth);}
@@ -1 +1 @@
1
- const a5_0x21c2bb=a5_0x314f;function a5_0x9429(){const _0x38f081=['cookie','1421724qxwqAN','630VrOPDo','.lovrabet','3577mMkgqW','25050OmPNot','13829715FKJEvP','367772HcJxnV','7144YwFCvZ','365318jMTgrf','851584sWFrUA'];a5_0x9429=function(){return _0x38f081;};return a5_0x9429();}(function(_0x8f7954,_0x47431a){const _0x4f0a85=a5_0x314f,_0x4553b5=_0x8f7954();while(!![]){try{const _0x4d14f5=-parseInt(_0x4f0a85(0x195))/0x1+-parseInt(_0x4f0a85(0x196))/0x2+parseInt(_0x4f0a85(0x198))/0x3+parseInt(_0x4f0a85(0x19e))/0x4+-parseInt(_0x4f0a85(0x199))/0x5*(parseInt(_0x4f0a85(0x19c))/0x6)+parseInt(_0x4f0a85(0x19b))/0x7*(-parseInt(_0x4f0a85(0x194))/0x8)+parseInt(_0x4f0a85(0x19d))/0x9;if(_0x4d14f5===_0x47431a)break;else _0x4553b5['push'](_0x4553b5['shift']());}catch(_0x392e69){_0x4553b5['push'](_0x4553b5['shift']());}}}(a5_0x9429,0x5052b));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a5_0x314f(_0x1678bd,_0x3dbc2d){_0x1678bd=_0x1678bd-0x194;const _0x942948=a5_0x9429();let _0x314f21=_0x942948[_0x1678bd];return _0x314f21;}export const configDir=join(homedir(),a5_0x21c2bb(0x19a));export const cookieFile=join(configDir,a5_0x21c2bb(0x197));mkdirSync(configDir,{'recursive':!![]});
1
+ const a5_0x52443b=a5_0x4e8f;(function(_0x5c4611,_0x5ca157){const _0x3f5f31=a5_0x4e8f,_0x4fec0a=_0x5c4611();while(!![]){try{const _0x180aae=parseInt(_0x3f5f31(0xdb))/0x1+parseInt(_0x3f5f31(0xde))/0x2+parseInt(_0x3f5f31(0xda))/0x3+-parseInt(_0x3f5f31(0xd9))/0x4*(-parseInt(_0x3f5f31(0xd8))/0x5)+-parseInt(_0x3f5f31(0xdd))/0x6+-parseInt(_0x3f5f31(0xe0))/0x7*(parseInt(_0x3f5f31(0xdc))/0x8)+parseInt(_0x3f5f31(0xe1))/0x9;if(_0x180aae===_0x5ca157)break;else _0x4fec0a['push'](_0x4fec0a['shift']());}catch(_0x46754e){_0x4fec0a['push'](_0x4fec0a['shift']());}}}(a5_0x12c0,0x6bda1));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a5_0x12c0(){const _0x1b084f=['5zklXNN','2050324OMYDhY','63624yDUFsD','212536BXVahD','2974672sAUeeD','1820940JqActD','629044jmMTPO','.lovrabet','14baUGqR','3852648bxVixn'];a5_0x12c0=function(){return _0x1b084f;};return a5_0x12c0();}function a5_0x4e8f(_0x4a6040,_0x446232){_0x4a6040=_0x4a6040-0xd8;const _0x12c00f=a5_0x12c0();let _0x4e8ffc=_0x12c00f[_0x4a6040];return _0x4e8ffc;}export const configDir=join(homedir(),a5_0x52443b(0xdf));export const cookieFile=join(configDir,'cookie');mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x5ba325,_0x5077b3){var _0x5247c1=a6_0x2bc5,_0x1c5422=_0x5ba325();while(!![]){try{var _0xacd8ee=-parseInt(_0x5247c1(0x1bd))/0x1+-parseInt(_0x5247c1(0x1b9))/0x2*(parseInt(_0x5247c1(0x1b5))/0x3)+parseInt(_0x5247c1(0x1b7))/0x4*(-parseInt(_0x5247c1(0x1bb))/0x5)+-parseInt(_0x5247c1(0x1ba))/0x6+-parseInt(_0x5247c1(0x1be))/0x7+parseInt(_0x5247c1(0x1b8))/0x8+-parseInt(_0x5247c1(0x1bf))/0x9*(-parseInt(_0x5247c1(0x1b6))/0xa);if(_0xacd8ee===_0x5077b3)break;else _0x1c5422['push'](_0x1c5422['shift']());}catch(_0x3d87ef){_0x1c5422['push'](_0x1c5422['shift']());}}}(a6_0x1d97,0x8b4ac));import{readFileSync}from'node:fs';function a6_0x2bc5(_0x306cc7,_0x448af1){_0x306cc7=_0x306cc7-0x1b5;var _0x1d97cf=a6_0x1d97();var _0x2bc531=_0x1d97cf[_0x306cc7];return _0x2bc531;}function a6_0x1d97(){var _0x59708c=['994247JgQMil','6005993jIHcSQ','9CtoXgt','228PSlwAr','37792530FjgSPH','4124VWozDz','6020728XCONlF','22196oGbvjf','1772634qTLKXb','4705LzcAnv','utf-8'];a6_0x1d97=function(){return _0x59708c;};return a6_0x1d97();}import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x5725c2=a6_0x2bc5;try{return readFileSync(cookieFile,_0x5725c2(0x1bc));}catch{}return'';}
1
+ (function(_0x357ca7,_0x4f6ade){var _0x37a219=a6_0xb077,_0x475210=_0x357ca7();while(!![]){try{var _0x1835cc=parseInt(_0x37a219(0xc4))/0x1*(-parseInt(_0x37a219(0xc8))/0x2)+parseInt(_0x37a219(0xc0))/0x3*(parseInt(_0x37a219(0xc5))/0x4)+parseInt(_0x37a219(0xbe))/0x5+-parseInt(_0x37a219(0xc2))/0x6+parseInt(_0x37a219(0xc6))/0x7*(parseInt(_0x37a219(0xc7))/0x8)+-parseInt(_0x37a219(0xc9))/0x9*(parseInt(_0x37a219(0xbf))/0xa)+-parseInt(_0x37a219(0xc3))/0xb*(-parseInt(_0x37a219(0xc1))/0xc);if(_0x1835cc===_0x4f6ade)break;else _0x475210['push'](_0x475210['shift']());}catch(_0x35b48c){_0x475210['push'](_0x475210['shift']());}}}(a6_0x8103,0x4b12e));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0xb077(_0x5f2557,_0x424d92){_0x5f2557=_0x5f2557-0xbd;var _0x81037e=a6_0x8103();var _0xb07786=_0x81037e[_0x5f2557];return _0xb07786;}function a6_0x8103(){var _0x198cc4=['3eCvxeQ','81876TiafTs','631314BAyuPe','198YlFOdI','718mzFmmr','1962076GUzSmK','7mrgstl','1467352RBnumI','956fkzSRd','171rpJOoF','utf-8','336700uQtUlc','56930dtuXrI'];a6_0x8103=function(){return _0x198cc4;};return a6_0x8103();}export function getCookie(){var _0xedc945=a6_0xb077;try{return readFileSync(cookieFile,_0xedc945(0xbd));}catch{}return'';}
@@ -1 +1 @@
1
- function a7_0x2adc(){const _0x45d0a2=['2ZFassk','158571EQXVns','65sJuicH','7ZdgtVQ','2298844xeWCvs','599525JPHxdO','2036432SrnvkL','270CvQgDU','18932804sbDYNh','session','utf-8','301155xgSzJl','252240EGpJvE','/api/auth/get-session'];a7_0x2adc=function(){return _0x45d0a2;};return a7_0x2adc();}(function(_0x19e8cd,_0x5640c2){const _0x2d54f4=a7_0x299d,_0x5c2b78=_0x19e8cd();while(!![]){try{const _0x44f98d=parseInt(_0x2d54f4(0x135))/0x1*(-parseInt(_0x2d54f4(0x130))/0x2)+parseInt(_0x2d54f4(0x12d))/0x3+-parseInt(_0x2d54f4(0x134))/0x4+parseInt(_0x2d54f4(0x132))/0x5*(-parseInt(_0x2d54f4(0x12e))/0x6)+-parseInt(_0x2d54f4(0x133))/0x7*(parseInt(_0x2d54f4(0x136))/0x8)+parseInt(_0x2d54f4(0x131))/0x9*(parseInt(_0x2d54f4(0x137))/0xa)+parseInt(_0x2d54f4(0x138))/0xb;if(_0x44f98d===_0x5640c2)break;else _0x5c2b78['push'](_0x5c2b78['shift']());}catch(_0x1b9c46){_0x5c2b78['push'](_0x5c2b78['shift']());}}}(a7_0x2adc,0x4e9a0));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a7_0x299d(_0x3fe1e6,_0x2e2ec4){_0x3fe1e6=_0x3fe1e6-0x12c;const _0x2adc33=a7_0x2adc();let _0x299d08=_0x2adc33[_0x3fe1e6];return _0x299d08;}export async function getSessionUserInfo(){const _0x6bb728=a7_0x299d;try{if(!existsSync(cookieFile))return null;const _0x4a82b7=readFileSync(cookieFile,_0x6bb728(0x12c)),_0x480a7c=await fetch(getUserDomain()+_0x6bb728(0x12f),{'headers':{'cookie':_0x4a82b7}});if(!_0x480a7c['ok'])return null;const _0x518d75=await _0x480a7c['json']();if(!_0x518d75[_0x6bb728(0x139)]||!_0x518d75['user'])return null;return _0x518d75;}catch{return null;}}
1
+ (function(_0x1662e7,_0x5ed513){const _0x402cb9=a7_0x5ed6,_0xb043b5=_0x1662e7();while(!![]){try{const _0x130026=-parseInt(_0x402cb9(0x19c))/0x1*(-parseInt(_0x402cb9(0x1a1))/0x2)+parseInt(_0x402cb9(0x19d))/0x3+-parseInt(_0x402cb9(0x19a))/0x4+parseInt(_0x402cb9(0x1a5))/0x5*(-parseInt(_0x402cb9(0x1a4))/0x6)+-parseInt(_0x402cb9(0x198))/0x7*(parseInt(_0x402cb9(0x19e))/0x8)+parseInt(_0x402cb9(0x197))/0x9+parseInt(_0x402cb9(0x19b))/0xa;if(_0x130026===_0x5ed513)break;else _0xb043b5['push'](_0xb043b5['shift']());}catch(_0x5c90c7){_0xb043b5['push'](_0xb043b5['shift']());}}}(a7_0x2816,0x47a55));import{existsSync,readFileSync}from'node:fs';function a7_0x5ed6(_0x587581,_0x87a377){_0x587581=_0x587581-0x197;const _0x28166e=a7_0x2816();let _0x5ed6b4=_0x28166e[_0x587581];return _0x5ed6b4;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x1d0f5b=a7_0x5ed6;try{if(!existsSync(cookieFile))return null;const _0x1fcd07=readFileSync(cookieFile,_0x1d0f5b(0x1a2)),_0xbf0370=await fetch(getUserDomain()+_0x1d0f5b(0x19f),{'headers':{'cookie':_0x1fcd07}});if(!_0xbf0370['ok'])return null;const _0x32a1de=await _0xbf0370[_0x1d0f5b(0x199)]();if(!_0x32a1de[_0x1d0f5b(0x1a0)]||!_0x32a1de[_0x1d0f5b(0x1a3)])return null;return _0x32a1de;}catch{return null;}}function a7_0x2816(){const _0x2cd875=['4877270foiTNx','1SFllJw','625776jOacaF','8HDQieW','/api/auth/get-session','session','142970XgjrCZ','utf-8','user','258pRSiPB','51635ppvoEL','4604148PpoSJi','2005157ownhkt','json','1021612JInQGW'];a7_0x2816=function(){return _0x2cd875;};return a7_0x2816();}
@@ -1 +1 @@
1
- function a8_0x3618(){const _0x127c9a=['6033152ySECaa','user','6351008eGZJKf','then','1430995JDajSQ','24yaVPSi','433062RdnBjl','session','174837gQHWkj','utf-8','8187186hKSROS','881498HZFOvf'];a8_0x3618=function(){return _0x127c9a;};return a8_0x3618();}function a8_0x3784(_0x38d969,_0x484943){_0x38d969=_0x38d969-0x1d8;const _0x3618ff=a8_0x3618();let _0x378488=_0x3618ff[_0x38d969];return _0x378488;}(function(_0x21eb5e,_0x51f969){const _0x4ae1e7=a8_0x3784,_0x18e2ec=_0x21eb5e();while(!![]){try{const _0x4433a9=parseInt(_0x4ae1e7(0x1e2))/0x1+-parseInt(_0x4ae1e7(0x1dc))/0x2*(-parseInt(_0x4ae1e7(0x1df))/0x3)+-parseInt(_0x4ae1e7(0x1d9))/0x4+parseInt(_0x4ae1e7(0x1db))/0x5+parseInt(_0x4ae1e7(0x1e1))/0x6+parseInt(_0x4ae1e7(0x1dd))/0x7+-parseInt(_0x4ae1e7(0x1e3))/0x8;if(_0x4433a9===_0x51f969)break;else _0x18e2ec['push'](_0x18e2ec['shift']());}catch(_0x39ed9a){_0x18e2ec['push'](_0x18e2ec['shift']());}}}(a8_0x3618,0xe84fa));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x2d7a9c=a8_0x3784;try{if(!existsSync(cookieFile))return![];const _0x57e41c=readFileSync(cookieFile,_0x2d7a9c(0x1e0)),_0x354385=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x57e41c}})[_0x2d7a9c(0x1da)](_0x1fac8f=>_0x1fac8f['json']());return _0x354385&&_0x354385[_0x2d7a9c(0x1de)]&&_0x354385[_0x2d7a9c(0x1d8)];}catch{}return![];}
1
+ (function(_0x3b93f8,_0x499e57){const _0xda260e=a8_0x3506,_0x303811=_0x3b93f8();while(!![]){try{const _0x380de7=parseInt(_0xda260e(0x12e))/0x1+parseInt(_0xda260e(0x133))/0x2+-parseInt(_0xda260e(0x132))/0x3*(-parseInt(_0xda260e(0x12c))/0x4)+-parseInt(_0xda260e(0x136))/0x5*(-parseInt(_0xda260e(0x138))/0x6)+parseInt(_0xda260e(0x135))/0x7*(-parseInt(_0xda260e(0x137))/0x8)+parseInt(_0xda260e(0x131))/0x9+parseInt(_0xda260e(0x134))/0xa*(-parseInt(_0xda260e(0x139))/0xb);if(_0x380de7===_0x499e57)break;else _0x303811['push'](_0x303811['shift']());}catch(_0x28db6e){_0x303811['push'](_0x303811['shift']());}}}(a8_0x89aa,0x24218));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a8_0x3506(_0x1070fc,_0x535545){_0x1070fc=_0x1070fc-0x12a;const _0x89aaf9=a8_0x89aa();let _0x3506fe=_0x89aaf9[_0x1070fc];return _0x3506fe;}import{cookieFile}from'../auth/constant.js';function a8_0x89aa(){const _0x266710=['json','1676925nvhMEE','163509GcubtD','571862RktwMv','15430amvNZr','35SYFqNi','335etWcoo','172232dplERH','18426kzhGjC','4246qgFXiJ','/api/auth/get-session','user','4FbfmAW','then','118719BUVKAN','session'];a8_0x89aa=function(){return _0x266710;};return a8_0x89aa();}export async function getIsSessionValid(){const _0x23c584=a8_0x3506;try{if(!existsSync(cookieFile))return![];const _0x2c7b14=readFileSync(cookieFile,'utf-8'),_0x5d581d=await fetch(getUserDomain()+_0x23c584(0x12a),{'headers':{'cookie':_0x2c7b14}})[_0x23c584(0x12d)](_0x4d3926=>_0x4d3926[_0x23c584(0x130)]());return _0x5d581d&&_0x5d581d[_0x23c584(0x12f)]&&_0x5d581d[_0x23c584(0x12b)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x46ab7d,_0x23f089){const _0x3cf626=a9_0x2786,_0x19059e=_0x46ab7d();while(!![]){try{const _0x371b68=parseInt(_0x3cf626(0xea))/0x1*(parseInt(_0x3cf626(0xe9))/0x2)+parseInt(_0x3cf626(0xe8))/0x3+-parseInt(_0x3cf626(0xed))/0x4+parseInt(_0x3cf626(0xe6))/0x5+parseInt(_0x3cf626(0xec))/0x6*(-parseInt(_0x3cf626(0xe5))/0x7)+-parseInt(_0x3cf626(0xe3))/0x8*(parseInt(_0x3cf626(0xeb))/0x9)+parseInt(_0x3cf626(0xe4))/0xa*(parseInt(_0x3cf626(0xe2))/0xb);if(_0x371b68===_0x23f089)break;else _0x19059e['push'](_0x19059e['shift']());}catch(_0x254eca){_0x19059e['push'](_0x19059e['shift']());}}}(a9_0x387f,0x4d85f));function a9_0x2786(_0x320c4f,_0x15b2d3){_0x320c4f=_0x320c4f-0xe2;const _0x387fe=a9_0x387f();let _0x27863e=_0x387fe[_0x320c4f];return _0x27863e;}export function buildLoginSuccessHtml(){const _0x3e52e7=a9_0x2786,_0x14cede='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return'<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20·\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>'+_0x14cede+_0x3e52e7(0xe7);}function a9_0x387f(){const _0x481b43=['588225GRvhaw','4CHEDFB','148691ZHnAul','279sqWzil','1406262zBcmJy','778188Grvwxe','286mNdXFv','85368pWaqCl','224090UuTwGu','7OhBXlM','5845BykDvA','</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>'];a9_0x387f=function(){return _0x481b43;};return a9_0x387f();}
1
+ function a9_0x1b85(_0xd35346,_0x15d73c){_0xd35346=_0xd35346-0xbf;const _0x47244a=a9_0x4724();let _0x1b8541=_0x47244a[_0xd35346];return _0x1b8541;}function a9_0x4724(){const _0x2493a0=['10egskLE','502862ZiCOJL','4436056hwRsoR','973340QGRDUT','259398MxjQwO','24773seBsGM','798NeXxUj','665703YqvCSS','592820HFWNgD','<!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>','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.'];a9_0x4724=function(){return _0x2493a0;};return a9_0x4724();}(function(_0x102966,_0x1ab4e4){const _0x577901=a9_0x1b85,_0x50e016=_0x102966();while(!![]){try{const _0x6ccc6f=parseInt(_0x577901(0xc8))/0x1+parseInt(_0x577901(0xc1))/0x2+parseInt(_0x577901(0xc4))/0x3+parseInt(_0x577901(0xc3))/0x4*(parseInt(_0x577901(0xc0))/0x5)+-parseInt(_0x577901(0xc6))/0x6*(parseInt(_0x577901(0xc5))/0x7)+-parseInt(_0x577901(0xc2))/0x8+-parseInt(_0x577901(0xc7))/0x9;if(_0x6ccc6f===_0x1ab4e4)break;else _0x50e016['push'](_0x50e016['shift']());}catch(_0x3501e9){_0x50e016['push'](_0x50e016['shift']());}}}(a9_0x4724,0x4db12));export function buildLoginSuccessHtml(){const _0x32d287=a9_0x1b85,_0x392783=_0x32d287(0xbf);return _0x32d287(0xc9)+_0x392783+'</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20·\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>';}
@@ -1 +1 @@
1
- function a10_0x1bf9(_0x39cee1,_0x55d729){_0x39cee1=_0x39cee1-0x1d2;var _0x548559=a10_0x5485();var _0x1bf972=_0x548559[_0x39cee1];return _0x1bf972;}function a10_0x5485(){var _0x49de87=['1370504PoPMGi','✓\x20Logged\x20out','173941gTVTWV','!\x20Not\x20logged\x20in','1762420exikSw','4312805vwjAoa','6AFAShB','log','3935424nTGtvc','2260053qAIBev','4plNmjw','3932550CKxwDI'];a10_0x5485=function(){return _0x49de87;};return a10_0x5485();}(function(_0x5a0d34,_0x54a80f){var _0x24a531=a10_0x1bf9,_0x2bb408=_0x5a0d34();while(!![]){try{var _0x4860f1=parseInt(_0x24a531(0x1d8))/0x1+-parseInt(_0x24a531(0x1d6))/0x2+-parseInt(_0x24a531(0x1d3))/0x3*(-parseInt(_0x24a531(0x1d4))/0x4)+-parseInt(_0x24a531(0x1da))/0x5+parseInt(_0x24a531(0x1dc))/0x6*(parseInt(_0x24a531(0x1db))/0x7)+-parseInt(_0x24a531(0x1d2))/0x8+parseInt(_0x24a531(0x1d5))/0x9;if(_0x4860f1===_0x54a80f)break;else _0x2bb408['push'](_0x2bb408['shift']());}catch(_0x3dfbb2){_0x2bb408['push'](_0x2bb408['shift']());}}}(a10_0x5485,0x6e085));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x3ea8c3=a10_0x1bf9;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3ea8c3(0x1dd)](_0x3ea8c3(0x1d7))):console[_0x3ea8c3(0x1dd)](_0x3ea8c3(0x1d9));}
1
+ (function(_0x14484b,_0x165e23){var _0x4c6f18=a10_0x5a96,_0x267a89=_0x14484b();while(!![]){try{var _0x1f494c=parseInt(_0x4c6f18(0x18a))/0x1*(parseInt(_0x4c6f18(0x182))/0x2)+parseInt(_0x4c6f18(0x189))/0x3*(-parseInt(_0x4c6f18(0x17f))/0x4)+-parseInt(_0x4c6f18(0x184))/0x5*(-parseInt(_0x4c6f18(0x186))/0x6)+parseInt(_0x4c6f18(0x187))/0x7+parseInt(_0x4c6f18(0x18b))/0x8+-parseInt(_0x4c6f18(0x185))/0x9+parseInt(_0x4c6f18(0x181))/0xa*(-parseInt(_0x4c6f18(0x188))/0xb);if(_0x1f494c===_0x165e23)break;else _0x267a89['push'](_0x267a89['shift']());}catch(_0x346737){_0x267a89['push'](_0x267a89['shift']());}}}(a10_0x31df,0xb1c04));function a10_0x5a96(_0x2380c2,_0x54a008){_0x2380c2=_0x2380c2-0x17f;var _0x31dfb6=a10_0x31df();var _0x5a966c=_0x31dfb6[_0x2380c2];return _0x5a966c;}import{unlinkSync,existsSync}from'node:fs';function a10_0x31df(){var _0x19c460=['52qbbiAP','!\x20Not\x20logged\x20in','522020phqVur','26eqBbiA','log','3301075NxMvHV','2814273fgcXTl','6uEgumj','4907609vhlEUF','286oLeSXd','205155SDhvAq','97834IgVkzF','5231024MEiVsc'];a10_0x31df=function(){return _0x19c460;};return a10_0x31df();}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x225884=a10_0x5a96;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x225884(0x183)]('✓\x20Logged\x20out')):console['log'](_0x225884(0x180));}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- function a11_0xdedc(){const _0x240665=['659543qjvXNR','2GSjRvB','24BbCeKP','2456412XcAMdE','30tykjES','48912pjUpQf','965239naacuD','5HbMbap','boolean','202265UGzOjb','17248673hUhJkd','110kkhvxY','2955988xrTvVS','1296iWkCoz'];a11_0xdedc=function(){return _0x240665;};return a11_0xdedc();}function a11_0x1388(_0x8ec116,_0x200954){_0x8ec116=_0x8ec116-0x168;const _0xdedcb1=a11_0xdedc();let _0x138840=_0xdedcb1[_0x8ec116];return _0x138840;}const a11_0x2ad136=a11_0x1388;(function(_0x2105a6,_0x29c630){const _0x2fa9de=a11_0x1388,_0x55f72f=_0x2105a6();while(!![]){try{const _0x14caac=-parseInt(_0x2fa9de(0x171))/0x1+parseInt(_0x2fa9de(0x172))/0x2*(-parseInt(_0x2fa9de(0x174))/0x3)+parseInt(_0x2fa9de(0x16f))/0x4*(-parseInt(_0x2fa9de(0x16a))/0x5)+-parseInt(_0x2fa9de(0x175))/0x6*(-parseInt(_0x2fa9de(0x16c))/0x7)+-parseInt(_0x2fa9de(0x168))/0x8*(-parseInt(_0x2fa9de(0x170))/0x9)+-parseInt(_0x2fa9de(0x16e))/0xa*(parseInt(_0x2fa9de(0x169))/0xb)+-parseInt(_0x2fa9de(0x173))/0xc*(-parseInt(_0x2fa9de(0x16d))/0xd);if(_0x14caac===_0x29c630)break;else _0x55f72f['push'](_0x55f72f['shift']());}catch(_0x45818b){_0x55f72f['push'](_0x55f72f['shift']());}}}(a11_0xdedc,0x7914e));export const dynamicCliFlags={'enableBffSave':{'type':a11_0x2ad136(0x16b)}};
1
+ function a11_0xc024(){const _0x18d3eb=['18JrcKYR','boolean','552438lTLUqk','10402750QIIIRa','1030IQiqeg','3023132OteFHT','9864lGisov','1017072uzfOwC','522gwYkht','7046iRvcCs','738wPHHTb'];a11_0xc024=function(){return _0x18d3eb;};return a11_0xc024();}const a11_0x3cb511=a11_0x283c;(function(_0x33a72,_0x32ab37){const _0x1de74a=a11_0x283c,_0x522695=_0x33a72();while(!![]){try{const _0x58708e=-parseInt(_0x1de74a(0x8c))/0x1+parseInt(_0x1de74a(0x93))/0x2*(parseInt(_0x1de74a(0x92))/0x3)+-parseInt(_0x1de74a(0x91))/0x4+parseInt(_0x1de74a(0x8e))/0x5*(parseInt(_0x1de74a(0x95))/0x6)+-parseInt(_0x1de74a(0x8f))/0x7+-parseInt(_0x1de74a(0x90))/0x8*(parseInt(_0x1de74a(0x94))/0x9)+parseInt(_0x1de74a(0x8d))/0xa;if(_0x58708e===_0x32ab37)break;else _0x522695['push'](_0x522695['shift']());}catch(_0x37b94b){_0x522695['push'](_0x522695['shift']());}}}(a11_0xc024,0x4cb5f));function a11_0x283c(_0x3ded29,_0x3dfd58){_0x3ded29=_0x3ded29-0x8b;const _0xc024c0=a11_0xc024();let _0x283c85=_0xc024c0[_0x3ded29];return _0x283c85;}export const dynamicCliFlags={'enableBffSave':{'type':a11_0x3cb511(0x8b)}};
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x43b70a=a12_0x1567;(function(_0x8a45af,_0x48deba){const _0x2b7048=a12_0x1567,_0x3ce6ea=_0x8a45af();while(!![]){try{const _0x52958a=-parseInt(_0x2b7048(0x1c2))/0x1*(-parseInt(_0x2b7048(0x1c3))/0x2)+-parseInt(_0x2b7048(0x1d7))/0x3*(parseInt(_0x2b7048(0x1d2))/0x4)+parseInt(_0x2b7048(0x1ac))/0x5+parseInt(_0x2b7048(0x1ce))/0x6+parseInt(_0x2b7048(0x1cf))/0x7+-parseInt(_0x2b7048(0x1c0))/0x8*(-parseInt(_0x2b7048(0x1be))/0x9)+-parseInt(_0x2b7048(0x1d4))/0xa;if(_0x52958a===_0x48deba)break;else _0x3ce6ea['push'](_0x3ce6ea['shift']());}catch(_0x2929b3){_0x3ce6ea['push'](_0x3ce6ea['shift']());}}}(a12_0x31da,0x4f7c5));import a12_0x16d96d from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases,resolveDeprecatedSubcommand}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a12_0x43b70a(0x1cc)))[a12_0x43b70a(0x1d0)];}catch{}function a12_0x31da(){const _0x35677a=['slice','cancelled','2455230EIybcR','defaultCommand','global','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','ExitPromptError','unknownCommand','Error:\x20','exitCode','unknown_service','flags','message','\x0aCancelled.\x0a','hint','error','write','env','`\x20in\x20new\x20scripts.\x0a','now','3339vathyH','raw','9304enItHy','userDomain','1HrkKbO','928930FHMRJK','help','log','runtimeDomain','./constant/env.js','wildcardDef','name','input','⚠\x20`','./cli-flags.js','unknown','2104662OgoNsG','2029678PeqLqz','dynamicCliFlags','Hint:\x20','641868JvWkyD','`\x20in\x20v2.0.\x0a','10602740kUCqQI','apiDomain','stderr','12XjLYtD'];a12_0x31da=function(){return _0x35677a;};return a12_0x31da();}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x43b70a(0x1cd)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,cli=a12_0x16d96d(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x41c697=a12_0x43b70a;let _0x3036af=cli[_0x41c697(0x1ca)][0x0],_0x2464ea=cli[_0x41c697(0x1ca)][0x1];const _0x42e3b7=cli[_0x41c697(0x1b5)];if(!_0x3036af){await reportCliHelpTrace(_0x41c697(0x1ae)),showHelp();return;}const _0x3665cd=deprecatedAliases[_0x3036af];if(_0x3665cd&&!isKnownService(_0x3036af)){const _0x185e20=_0x2464ea?CLI_BIN_NAME+'\x20'+_0x3036af+'\x20'+_0x2464ea:CLI_BIN_NAME+'\x20'+_0x3036af,_0x347bc5=CLI_BIN_NAME+'\x20'+_0x3665cd['service']+'\x20'+_0x3665cd['command'];console['error'](_0x41c697(0x1cb)+_0x185e20+'`\x20has\x20been\x20moved\x20to\x20`'+_0x347bc5+_0x41c697(0x1d3)+_0x41c697(0x1af)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x3036af)){await reportCliHelpTrace(_0x41c697(0x1b4),{'service':_0x3036af}),showHelp();return;}const _0x9ab541=getServiceEntry(_0x3036af);if(_0x42e3b7[_0x41c697(0x1bb)]&&typeof _0x42e3b7['env']==='string'){const {initEnv:_0x37d4f3}=await import('./constant/env.js');_0x37d4f3(_0x42e3b7['env']);}const {buildConfigFromFlags:_0x2e0d88}=await import('./context.js'),_0x32a85c=_0x2e0d88(_0x42e3b7);if(!_0x42e3b7[_0x41c697(0x1bb)]&&_0x32a85c['env']){const {initEnv:_0x11f6e3}=await import(_0x41c697(0x1c7));_0x11f6e3(_0x32a85c[_0x41c697(0x1bb)]);}if(_0x32a85c[_0x41c697(0x1bf)]?.[_0x41c697(0x1d5)]||_0x32a85c[_0x41c697(0x1bf)]?.[_0x41c697(0x1c1)]||_0x32a85c[_0x41c697(0x1bf)]?.[_0x41c697(0x1c6)]){const {initDomains:_0x170aa3}=await import('./constant/domain.js');_0x170aa3({'apiDomain':_0x32a85c[_0x41c697(0x1bf)][_0x41c697(0x1d5)]||undefined,'userDomain':_0x32a85c[_0x41c697(0x1bf)][_0x41c697(0x1c1)]||undefined,'runtimeDomain':_0x32a85c[_0x41c697(0x1bf)][_0x41c697(0x1c6)]||undefined});}if(!_0x2464ea){if(_0x42e3b7['help']){printServiceHelp(_0x3036af);return;}if(_0x9ab541['defaultCommand'])_0x2464ea=_0x9ab541[_0x41c697(0x1ad)];else{if(_0x9ab541[_0x41c697(0x1c8)]){await dispatchDeclarative(_0x9ab541['wildcardDef'],_0x3036af,'',[],_0x42e3b7,_0x32a85c);return;}else{printServiceHelp(_0x3036af);return;}}}const _0x91401a=resolveDeprecatedSubcommand(_0x3036af,_0x2464ea);if(_0x91401a){const _0x36d143=CLI_BIN_NAME+'\x20'+_0x3036af+'\x20'+_0x2464ea,_0x973a21=CLI_BIN_NAME+'\x20'+_0x3036af+'\x20'+_0x91401a;console[_0x41c697(0x1b9)](_0x41c697(0x1cb)+_0x36d143+'`\x20is\x20an\x20alias\x20of\x20`'+_0x973a21+'`;\x20prefer\x20`'+_0x973a21+_0x41c697(0x1bc)),_0x2464ea=_0x91401a;}if(_0x42e3b7[_0x41c697(0x1c4)]&&!findDefinition(_0x3036af,_0x2464ea)){printServiceHelp(_0x3036af);return;}{let _0x491c57=findDefinition(_0x3036af,_0x2464ea),_0x24cfa7=cli['input'][_0x41c697(0x1d8)](0x2);if(!_0x491c57){if(_0x9ab541[_0x41c697(0x1c8)]){if(_0x42e3b7[_0x41c697(0x1c4)]){console[_0x41c697(0x1c5)](generateCommandHelp(_0x9ab541[_0x41c697(0x1c8)]));return;}_0x491c57=_0x9ab541['wildcardDef'],_0x24cfa7=[_0x2464ea,...cli[_0x41c697(0x1ca)][_0x41c697(0x1d8)](0x2)];}else{printServiceHelp(_0x3036af),await handleErrorAsync(CliErrors[_0x41c697(0x1b1)](_0x3036af+'\x20'+_0x2464ea));return;}}if(_0x42e3b7['help']){console['log'](generateCommandHelp(_0x491c57));return;}await dispatchDeclarative(_0x491c57,_0x3036af,_0x2464ea,_0x24cfa7,_0x42e3b7,_0x32a85c);}}async function dispatchDeclarative(_0x39f5e4,_0x4f4946,_0x4cfa34,_0x538672,_0x1451cb,_0x1fbf2b){const _0x4db0d7=a12_0x43b70a,_0x37b420=Date['now']();let _0x2f9c1d;try{await runCommand(_0x39f5e4,createPipelineEnv(_0x1fbf2b,_0x1451cb,_0x538672));}catch(_0x11188c){_0x2f9c1d=_0x11188c;}await reportCommandTrace({'service':_0x4f4946,'command':_0x4cfa34,'flags':_0x1451cb,'durationMs':Date[_0x4db0d7(0x1bd)]()-_0x37b420,'error':_0x2f9c1d});if(_0x2f9c1d)await handleErrorAsync(_0x2f9c1d);}function printServiceHelp(_0x42999f){const _0x3cb08a=a12_0x43b70a;console[_0x3cb08a(0x1c5)](generateServiceHelp(_0x42999f));}function a12_0x1567(_0x546bf4,_0x10a9d4){_0x546bf4=_0x546bf4-0x1ac;const _0x31daf3=a12_0x31da();let _0x1567d7=_0x31daf3[_0x546bf4];return _0x1567d7;}async function handleErrorAsync(_0x556149){const _0x5483b5=a12_0x43b70a;if(_0x556149 instanceof Error&&_0x556149[_0x5483b5(0x1c9)]===_0x5483b5(0x1b0))return process[_0x5483b5(0x1d6)][_0x5483b5(0x1ba)](_0x5483b5(0x1b7)),await exitWithOtelShutdown(0x0);if(_0x556149 instanceof CliError){if(_0x556149['code']===_0x5483b5(0x1d9))return process[_0x5483b5(0x1d6)]['write']('\x0a'+_0x556149[_0x5483b5(0x1b6)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x5483b5(0x1b9)](_0x5483b5(0x1b2)+_0x556149[_0x5483b5(0x1b6)]);if(_0x556149[_0x5483b5(0x1b8)])console[_0x5483b5(0x1b9)](_0x5483b5(0x1d1)+_0x556149[_0x5483b5(0x1b8)]);return await exitWithOtelShutdown(_0x556149[_0x5483b5(0x1b3)]);}return console[_0x5483b5(0x1b9)]('Unexpected\x20error:',_0x556149),await exitWithOtelShutdown(0x1);}
2
+ const a12_0x98c642=a12_0x3733;function a12_0x4660(){const _0x44a9f1=['1316DuywaN','env','slice','string','cancelled','7828544XkuSzT','⚠\x20`','flags','global','dynamicCliFlags','exitCode','log','command','169421VpYked','`\x20in\x20new\x20scripts.\x0a','input','unknownCommand','hint','unknown','now','10OaXtyj','8135TsuSrn','\x0aCancelled.\x0a','./constant/env.js','./cli-flags.js','`\x20is\x20an\x20alias\x20of\x20`','userDomain','raw','error','wildcardDef','stderr','`\x20in\x20v2.0.\x0a','5557951qPYkiY','name','help','Error:\x20','apiDomain','write','defaultCommand','`;\x20prefer\x20`','1381932ZKMjnF','1453644UgcVuV','runtimeDomain','`\x20has\x20been\x20moved\x20to\x20`','4923XTFAwt','24410qKffYy','message','./constant/domain.js'];a12_0x4660=function(){return _0x44a9f1;};return a12_0x4660();}(function(_0xaaaff1,_0x1ded69){const _0x55a3a4=a12_0x3733,_0x4e0390=_0xaaaff1();while(!![]){try{const _0x409b36=-parseInt(_0x55a3a4(0x15e))/0x1*(-parseInt(_0x55a3a4(0x135))/0x2)+parseInt(_0x55a3a4(0x149))/0x3+parseInt(_0x55a3a4(0x151))/0x4*(-parseInt(_0x55a3a4(0x136))/0x5)+parseInt(_0x55a3a4(0x14a))/0x6+-parseInt(_0x55a3a4(0x141))/0x7+-parseInt(_0x55a3a4(0x156))/0x8+-parseInt(_0x55a3a4(0x14d))/0x9*(-parseInt(_0x55a3a4(0x14e))/0xa);if(_0x409b36===_0x1ded69)break;else _0x4e0390['push'](_0x4e0390['shift']());}catch(_0x869a65){_0x4e0390['push'](_0x4e0390['shift']());}}}(a12_0x4660,0x8cf7e));import a12_0x45eb1d from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases,resolveDeprecatedSubcommand}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a12_0x98c642(0x139)))[a12_0x98c642(0x15a)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x98c642(0x163)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x98c642(0x153)](0x0,0xa)+')':VERSION,cli=a12_0x45eb1d(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x5b57c4=a12_0x98c642;let _0x2928e2=cli[_0x5b57c4(0x160)][0x0],_0x9c42e1=cli[_0x5b57c4(0x160)][0x1];const _0x349780=cli[_0x5b57c4(0x158)];if(!_0x2928e2){await reportCliHelpTrace(_0x5b57c4(0x159)),showHelp();return;}const _0x2793d8=deprecatedAliases[_0x2928e2];if(_0x2793d8&&!isKnownService(_0x2928e2)){const _0x5e3649=_0x9c42e1?CLI_BIN_NAME+'\x20'+_0x2928e2+'\x20'+_0x9c42e1:CLI_BIN_NAME+'\x20'+_0x2928e2,_0x25eecb=CLI_BIN_NAME+'\x20'+_0x2793d8['service']+'\x20'+_0x2793d8[_0x5b57c4(0x15d)];console['error'](_0x5b57c4(0x157)+_0x5e3649+_0x5b57c4(0x14c)+_0x25eecb+_0x5b57c4(0x140)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x2928e2)){await reportCliHelpTrace('unknown_service',{'service':_0x2928e2}),showHelp();return;}const _0x3ce692=getServiceEntry(_0x2928e2);if(_0x349780[_0x5b57c4(0x152)]&&typeof _0x349780[_0x5b57c4(0x152)]===_0x5b57c4(0x154)){const {initEnv:_0x2b7faa}=await import(_0x5b57c4(0x138));_0x2b7faa(_0x349780['env']);}const {buildConfigFromFlags:_0xb262b}=await import('./context.js'),_0x1e2a1e=_0xb262b(_0x349780);if(!_0x349780[_0x5b57c4(0x152)]&&_0x1e2a1e[_0x5b57c4(0x152)]){const {initEnv:_0x53d416}=await import(_0x5b57c4(0x138));_0x53d416(_0x1e2a1e[_0x5b57c4(0x152)]);}if(_0x1e2a1e['raw']?.['apiDomain']||_0x1e2a1e[_0x5b57c4(0x13c)]?.[_0x5b57c4(0x13b)]||_0x1e2a1e[_0x5b57c4(0x13c)]?.[_0x5b57c4(0x14b)]){const {initDomains:_0x1af26c}=await import(_0x5b57c4(0x150));_0x1af26c({'apiDomain':_0x1e2a1e[_0x5b57c4(0x13c)][_0x5b57c4(0x145)]||undefined,'userDomain':_0x1e2a1e['raw'][_0x5b57c4(0x13b)]||undefined,'runtimeDomain':_0x1e2a1e[_0x5b57c4(0x13c)][_0x5b57c4(0x14b)]||undefined});}if(!_0x9c42e1){if(_0x349780['help']){printServiceHelp(_0x2928e2);return;}if(_0x3ce692[_0x5b57c4(0x147)])_0x9c42e1=_0x3ce692[_0x5b57c4(0x147)];else{if(_0x3ce692[_0x5b57c4(0x13e)]){await dispatchDeclarative(_0x3ce692[_0x5b57c4(0x13e)],_0x2928e2,'',[],_0x349780,_0x1e2a1e);return;}else{printServiceHelp(_0x2928e2);return;}}}const _0x3121d0=resolveDeprecatedSubcommand(_0x2928e2,_0x9c42e1);if(_0x3121d0){const _0xbc60a1=CLI_BIN_NAME+'\x20'+_0x2928e2+'\x20'+_0x9c42e1,_0x127909=CLI_BIN_NAME+'\x20'+_0x2928e2+'\x20'+_0x3121d0;console['error'](_0x5b57c4(0x157)+_0xbc60a1+_0x5b57c4(0x13a)+_0x127909+_0x5b57c4(0x148)+_0x127909+_0x5b57c4(0x15f)),_0x9c42e1=_0x3121d0;}if(_0x349780[_0x5b57c4(0x143)]&&!findDefinition(_0x2928e2,_0x9c42e1)){printServiceHelp(_0x2928e2);return;}{let _0x5af524=findDefinition(_0x2928e2,_0x9c42e1),_0x541e96=cli[_0x5b57c4(0x160)][_0x5b57c4(0x153)](0x2);if(!_0x5af524){if(_0x3ce692[_0x5b57c4(0x13e)]){if(_0x349780[_0x5b57c4(0x143)]){console['log'](generateCommandHelp(_0x3ce692[_0x5b57c4(0x13e)]));return;}_0x5af524=_0x3ce692[_0x5b57c4(0x13e)],_0x541e96=[_0x9c42e1,...cli[_0x5b57c4(0x160)][_0x5b57c4(0x153)](0x2)];}else{printServiceHelp(_0x2928e2),await handleErrorAsync(CliErrors[_0x5b57c4(0x161)](_0x2928e2+'\x20'+_0x9c42e1));return;}}if(_0x349780[_0x5b57c4(0x143)]){console[_0x5b57c4(0x15c)](generateCommandHelp(_0x5af524));return;}await dispatchDeclarative(_0x5af524,_0x2928e2,_0x9c42e1,_0x541e96,_0x349780,_0x1e2a1e);}}function a12_0x3733(_0x2a418e,_0x30e40c){_0x2a418e=_0x2a418e-0x135;const _0x4660c6=a12_0x4660();let _0x3733cb=_0x4660c6[_0x2a418e];return _0x3733cb;}async function dispatchDeclarative(_0x1b1a95,_0x44b656,_0x3ab3a5,_0x503a82,_0x402299,_0x394704){const _0x129cae=a12_0x98c642,_0x17dbe9=Date[_0x129cae(0x164)]();let _0x47ec18;try{await runCommand(_0x1b1a95,createPipelineEnv(_0x394704,_0x402299,_0x503a82));}catch(_0x4d3b33){_0x47ec18=_0x4d3b33;}await reportCommandTrace({'service':_0x44b656,'command':_0x3ab3a5,'flags':_0x402299,'durationMs':Date['now']()-_0x17dbe9,'error':_0x47ec18});if(_0x47ec18)await handleErrorAsync(_0x47ec18);}function printServiceHelp(_0x16c494){const _0x1fc6c5=a12_0x98c642;console[_0x1fc6c5(0x15c)](generateServiceHelp(_0x16c494));}async function handleErrorAsync(_0x500873){const _0x1dd1d7=a12_0x98c642;if(_0x500873 instanceof Error&&_0x500873[_0x1dd1d7(0x142)]==='ExitPromptError')return process[_0x1dd1d7(0x13f)][_0x1dd1d7(0x146)](_0x1dd1d7(0x137)),await exitWithOtelShutdown(0x0);if(_0x500873 instanceof CliError){if(_0x500873['code']===_0x1dd1d7(0x155))return process[_0x1dd1d7(0x13f)][_0x1dd1d7(0x146)]('\x0a'+_0x500873[_0x1dd1d7(0x14f)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x1dd1d7(0x13d)](_0x1dd1d7(0x144)+_0x500873[_0x1dd1d7(0x14f)]);if(_0x500873['hint'])console[_0x1dd1d7(0x13d)]('Hint:\x20'+_0x500873[_0x1dd1d7(0x162)]);return await exitWithOtelShutdown(_0x500873[_0x1dd1d7(0x15b)]);}return console[_0x1dd1d7(0x13d)]('Unexpected\x20error:',_0x500873),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a13_0x4e4c8e=a13_0x484e;function a13_0x5568(){const _0x315e03=['isArray','Doc\x20generation:\x20','...','\x20failed','1885020MeLVkA','\x20succeeded,\x20','14EItDaP','941802cpMqZf','start','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','Fetched\x20','datasetCode','\x1b[90m*\x20Generating\x20docs\x20for:\x20','split','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','write','datasetcode','length','\x1b[0m','has','2033896eUocmd','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','generate','\x20dataset(s)','\x0d\x20\x20[','some','join','output','./docs','success','string','.md','):\x20','\x20dataset(s)\x1b[0m','Invalid\x20--params:\x20','\x20doc(s)\x20failed','349966upBMAJ','\x20file(s)','4761000SZllSV','✓\x20Generated\x20','Output\x20directory\x20(default:\x20./docs)','!\x20No\x20datasets\x20found.','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','validation','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','167550RjqlYK','str','appCode','\x20of\x20','must\x20be\x20a\x20JSON\x20object','cookie','padStart','stdout','filter','params','27684pobwXR','error','76QgvYSj'];a13_0x5568=function(){return _0x315e03;};return a13_0x5568();}(function(_0x403c9e,_0x52f0d9){const _0x576a33=a13_0x484e,_0x3c137f=_0x403c9e();while(!![]){try{const _0x1e487a=parseInt(_0x576a33(0x15f))/0x1+parseInt(_0x576a33(0x168))/0x2+parseInt(_0x576a33(0x172))/0x3*(parseInt(_0x576a33(0x174))/0x4)+-parseInt(_0x576a33(0x179))/0x5+-parseInt(_0x576a33(0x17c))/0x6*(parseInt(_0x576a33(0x17b))/0x7)+-parseInt(_0x576a33(0x189))/0x8+parseInt(_0x576a33(0x161))/0x9;if(_0x1e487a===_0x52f0d9)break;else _0x3c137f['push'](_0x3c137f['shift']());}catch(_0x5b7831){_0x3c137f['push'](_0x3c137f['shift']());}}}(a13_0x5568,0x2f182));import a13_0x1d9a71 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';function a13_0x484e(_0x49df31,_0x1dcab3){_0x49df31=_0x49df31-0x157;const _0x556876=a13_0x5568();let _0x484ed2=_0x556876[_0x49df31];return _0x484ed2;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':'api','command':a13_0x4e4c8e(0x18b),'description':'Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','risk':a13_0x4e4c8e(0x184),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x4e4c8e(0x190),'type':a13_0x4e4c8e(0x159),'description':a13_0x4e4c8e(0x163)},{'name':a13_0x4e4c8e(0x185),'type':a13_0x4e4c8e(0x159),'description':a13_0x4e4c8e(0x18a)},{'name':a13_0x4e4c8e(0x171),'type':a13_0x4e4c8e(0x159),'description':a13_0x4e4c8e(0x183)}],async 'execute'(_0x3a0a2d){const _0x4270a1=a13_0x4e4c8e,_0x854c99=_0x3a0a2d['str'](_0x4270a1(0x190))||_0x4270a1(0x157),_0x1fb1d5=_0x3a0a2d[_0x4270a1(0x169)](_0x4270a1(0x185)),_0xcb00e8=_0x3a0a2d[_0x4270a1(0x169)](_0x4270a1(0x171));let _0x1d3313;if(_0xcb00e8)try{_0x1d3313=JSON['parse'](_0xcb00e8);if(typeof _0x1d3313!=='object'||_0x1d3313===null||Array[_0x4270a1(0x175)](_0x1d3313))throw new Error(_0x4270a1(0x16c));}catch(_0x479668){throw CliErrors[_0x4270a1(0x166)](_0x4270a1(0x15d)+(_0x479668 instanceof Error?_0x479668['message']:String(_0x479668)),_0x4270a1(0x167));}let _0x1d3253;if(_0x1fb1d5){const _0x5296f6=_0x1fb1d5[_0x4270a1(0x182)](',')['map'](_0x54745c=>_0x54745c['trim']())[_0x4270a1(0x170)](_0x377e52=>_0x377e52[_0x4270a1(0x186)]>0x0);if(_0x5296f6[_0x4270a1(0x186)]===0x0)throw CliErrors[_0x4270a1(0x166)]('--datasetcode\x20cannot\x20be\x20empty.');_0x1d3253=new Set(_0x5296f6),writeCliSideChannelLine(_0x4270a1(0x181)+_0x5296f6[_0x4270a1(0x18f)](',\x20')+_0x4270a1(0x187));}const _0x4690d9=a13_0x1d9a71('Fetching\x20dataset\x20list\x20for\x20'+_0x3a0a2d[_0x4270a1(0x16a)]+_0x4270a1(0x177))[_0x4270a1(0x17d)]();let _0x18f61a;try{({configArray:_0x18f61a}=await fetchModelList(_0x3a0a2d['appCode'],_0x3a0a2d['cookie']),_0x4690d9['succeed'](_0x4270a1(0x17f)+_0x18f61a['length']+_0x4270a1(0x18c)));}catch(_0x5bb367){_0x4690d9['fail']('Failed\x20to\x20fetch\x20datasets');throw _0x5bb367;}if(_0x18f61a[_0x4270a1(0x186)]===0x0)return writeCliSideChannelLine(_0x4270a1(0x164)),{'ok':!![]};let _0x1b0303=_0x18f61a;if(_0x1d3253){_0x1b0303=_0x18f61a[_0x4270a1(0x170)](_0xc830ce=>_0x1d3253[_0x4270a1(0x188)](_0xc830ce['datasetCode']));const _0x4c6020=[..._0x1d3253]['filter'](_0x1fe8ed=>!_0x18f61a[_0x4270a1(0x18e)](_0x1a2b46=>_0x1a2b46[_0x4270a1(0x180)]===_0x1fe8ed));_0x4c6020[_0x4270a1(0x186)]>0x0&&writeCliSideChannelLine(_0x4270a1(0x165)+_0x4c6020[_0x4270a1(0x18f)](',\x20')+_0x4270a1(0x187));if(_0x1b0303[_0x4270a1(0x186)]===0x0)throw CliErrors[_0x4270a1(0x166)](_0x4270a1(0x17e)+[..._0x1d3253][_0x4270a1(0x18f)](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0x1b0303[_0x4270a1(0x186)]+_0x4270a1(0x16b)+_0x18f61a['length']+_0x4270a1(0x15c));}let _0x54e304=0x0;const _0xeed2b5=await generateDatasetDocs(_0x1b0303,_0x3a0a2d[_0x4270a1(0x16a)],_0x3a0a2d[_0x4270a1(0x16d)],_0x854c99,(_0x1a5e67,_0x94352c,_0x2afd73)=>{const _0x1f4933=_0x4270a1;_0x54e304=_0x1a5e67,process[_0x1f4933(0x16f)]['write'](_0x1f4933(0x18d)+String(_0x1a5e67)[_0x1f4933(0x16e)](String(_0x94352c)['length'])+'/'+_0x94352c+']\x20'+_0x2afd73+_0x1f4933(0x15a));},_0x1d3313);if(_0x54e304>0x0)process[_0x4270a1(0x16f)][_0x4270a1(0x184)]('\x0a');const _0x3c2fb9=_0xeed2b5['filter'](_0x58c74c=>_0x58c74c['success'])['length'],_0x76160c=_0xeed2b5['filter'](_0x21ba13=>!_0x21ba13['success'])[_0x4270a1(0x186)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x4270a1(0x162)+_0x3c2fb9+'\x20doc(s)\x20in\x20'+_0x854c99);if(_0x76160c>0x0){writeCliSideChannelLine('!\x20'+_0x76160c+_0x4270a1(0x15e));for(const _0x42b880 of _0xeed2b5['filter'](_0x162d15=>!_0x162d15[_0x4270a1(0x158)])){writeCliSideChannelLine('\x20\x20•\x20'+_0x42b880['datasetName']+'\x20('+_0x42b880[_0x4270a1(0x180)]+_0x4270a1(0x15b)+_0x42b880[_0x4270a1(0x173)]);}}return{'ok':_0x76160c===0x0,'message':_0x76160c>0x0?_0x4270a1(0x176)+_0x3c2fb9+_0x4270a1(0x17a)+_0x76160c+_0x4270a1(0x178):'Doc\x20generation\x20complete:\x20'+_0x3c2fb9+_0x4270a1(0x160)};}};
1
+ const a13_0x5852fb=a13_0xefc3;(function(_0x50e8f0,_0x3b83ec){const _0x3872f8=a13_0xefc3,_0x5c45b7=_0x50e8f0();while(!![]){try{const _0x58760d=-parseInt(_0x3872f8(0xa0))/0x1*(-parseInt(_0x3872f8(0x72))/0x2)+-parseInt(_0x3872f8(0x9e))/0x3*(-parseInt(_0x3872f8(0x87))/0x4)+parseInt(_0x3872f8(0x94))/0x5*(parseInt(_0x3872f8(0xa6))/0x6)+-parseInt(_0x3872f8(0x8e))/0x7*(-parseInt(_0x3872f8(0x8b))/0x8)+-parseInt(_0x3872f8(0x73))/0x9*(-parseInt(_0x3872f8(0x69))/0xa)+parseInt(_0x3872f8(0xa4))/0xb+-parseInt(_0x3872f8(0x71))/0xc*(parseInt(_0x3872f8(0x83))/0xd);if(_0x58760d===_0x3b83ec)break;else _0x5c45b7['push'](_0x5c45b7['shift']());}catch(_0x56a00b){_0x5c45b7['push'](_0x5c45b7['shift']());}}}(a13_0x2549,0xb4330));import a13_0x1bd9fc from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a13_0xefc3(_0xfd8be1,_0x7729fd){_0xfd8be1=_0xfd8be1-0x67;const _0x2549f3=a13_0x2549();let _0xefc3f1=_0x2549f3[_0xfd8be1];return _0xefc3f1;}import{CliErrors}from'../../errors.js';function a13_0x2549(){const _0x4dbd07=['cookie','\x1b[90m*\x20Filtered\x20','\x20dataset(s)','generate','\x20doc(s)\x20failed','split','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','appCode','api','filter','parse','validation','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','join','success','75286991nlHtFo','Doc\x20generation\x20complete:\x20','datasetcode','\x20dataset(s)\x1b[0m','113768MGhvua','./docs','str','\x0d\x20\x20[','8VdsRJj','!\x20No\x20datasets\x20found.','trim','8684627KFmlyb','\x1b[0m','\x20doc(s)\x20in\x20','isArray','params','output','95475CgLxyx','must\x20be\x20a\x20JSON\x20object','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','map','.md','\x20failed','\x20file(s)','Failed\x20to\x20fetch\x20datasets','succeed','length','141JzKBgn','stdout','202cBhSYg','has','object','some','14796309XBKTHZ','datasetCode','282qpImOL','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','datasetName','80hdIbXQ','...','✓\x20Generated\x20','fail','string','):\x20','\x20of\x20','write','12TSWrYN','5496BUEoFk','1298574sGpixO'];a13_0x2549=function(){return _0x4dbd07;};return a13_0x2549();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':a13_0x5852fb(0x7c),'command':a13_0x5852fb(0x77),'description':a13_0x5852fb(0x67),'risk':a13_0x5852fb(0x70),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x5852fb(0x93),'type':'string','description':'Output\x20directory\x20(default:\x20./docs)'},{'name':a13_0x5852fb(0x85),'type':a13_0x5852fb(0x6d),'description':a13_0x5852fb(0x80)},{'name':a13_0x5852fb(0x92),'type':a13_0x5852fb(0x6d),'description':a13_0x5852fb(0x7a)}],async 'execute'(_0x494017){const _0x121c5f=a13_0x5852fb,_0x99f4b6=_0x494017[_0x121c5f(0x89)](_0x121c5f(0x93))||_0x121c5f(0x88),_0x351b41=_0x494017[_0x121c5f(0x89)](_0x121c5f(0x85)),_0x496d91=_0x494017['str']('params');let _0x55427d;if(_0x496d91)try{_0x55427d=JSON[_0x121c5f(0x7e)](_0x496d91);if(typeof _0x55427d!==_0x121c5f(0xa2)||_0x55427d===null||Array[_0x121c5f(0x91)](_0x55427d))throw new Error(_0x121c5f(0x95));}catch(_0x19b3c8){throw CliErrors[_0x121c5f(0x7f)]('Invalid\x20--params:\x20'+(_0x19b3c8 instanceof Error?_0x19b3c8['message']:String(_0x19b3c8)),_0x121c5f(0x96));}let _0x37b7bc;if(_0x351b41){const _0x514f3b=_0x351b41[_0x121c5f(0x79)](',')[_0x121c5f(0x97)](_0x54174e=>_0x54174e[_0x121c5f(0x8d)]())[_0x121c5f(0x7d)](_0x29789b=>_0x29789b[_0x121c5f(0x9d)]>0x0);if(_0x514f3b['length']===0x0)throw CliErrors[_0x121c5f(0x7f)]('--datasetcode\x20cannot\x20be\x20empty.');_0x37b7bc=new Set(_0x514f3b),writeCliSideChannelLine('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x514f3b[_0x121c5f(0x81)](',\x20')+_0x121c5f(0x8f));}const _0x549d5b=a13_0x1bd9fc('Fetching\x20dataset\x20list\x20for\x20'+_0x494017[_0x121c5f(0x7b)]+_0x121c5f(0x6a))['start']();let _0x1dd40e;try{({configArray:_0x1dd40e}=await fetchModelList(_0x494017['appCode'],_0x494017['cookie']),_0x549d5b[_0x121c5f(0x9c)]('Fetched\x20'+_0x1dd40e[_0x121c5f(0x9d)]+_0x121c5f(0x76)));}catch(_0x5198db){_0x549d5b[_0x121c5f(0x6c)](_0x121c5f(0x9b));throw _0x5198db;}if(_0x1dd40e[_0x121c5f(0x9d)]===0x0)return writeCliSideChannelLine(_0x121c5f(0x8c)),{'ok':!![]};let _0x140e35=_0x1dd40e;if(_0x37b7bc){_0x140e35=_0x1dd40e[_0x121c5f(0x7d)](_0x176b9d=>_0x37b7bc[_0x121c5f(0xa1)](_0x176b9d[_0x121c5f(0xa5)]));const _0x13dbc0=[..._0x37b7bc][_0x121c5f(0x7d)](_0x5a5492=>!_0x1dd40e[_0x121c5f(0xa3)](_0x3efd9f=>_0x3efd9f['datasetCode']===_0x5a5492));_0x13dbc0[_0x121c5f(0x9d)]>0x0&&writeCliSideChannelLine('\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20'+_0x13dbc0['join'](',\x20')+'\x1b[0m');if(_0x140e35[_0x121c5f(0x9d)]===0x0)throw CliErrors['validation']('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x37b7bc][_0x121c5f(0x81)](',\x20'));writeCliSideChannelLine(_0x121c5f(0x75)+_0x140e35[_0x121c5f(0x9d)]+_0x121c5f(0x6f)+_0x1dd40e[_0x121c5f(0x9d)]+_0x121c5f(0x86));}let _0x134e60=0x0;const _0x3f74e2=await generateDatasetDocs(_0x140e35,_0x494017[_0x121c5f(0x7b)],_0x494017[_0x121c5f(0x74)],_0x99f4b6,(_0x1da2bf,_0x35c33f,_0x17a6d1)=>{const _0x2445ff=_0x121c5f;_0x134e60=_0x1da2bf,process[_0x2445ff(0x9f)][_0x2445ff(0x70)](_0x2445ff(0x8a)+String(_0x1da2bf)['padStart'](String(_0x35c33f)['length'])+'/'+_0x35c33f+']\x20'+_0x17a6d1+_0x2445ff(0x98));},_0x55427d);if(_0x134e60>0x0)process[_0x121c5f(0x9f)]['write']('\x0a');const _0x10f614=_0x3f74e2[_0x121c5f(0x7d)](_0x504ab5=>_0x504ab5['success'])[_0x121c5f(0x9d)],_0x3f8cde=_0x3f74e2[_0x121c5f(0x7d)](_0x4f29dc=>!_0x4f29dc['success'])[_0x121c5f(0x9d)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x121c5f(0x6b)+_0x10f614+_0x121c5f(0x90)+_0x99f4b6);if(_0x3f8cde>0x0){writeCliSideChannelLine('!\x20'+_0x3f8cde+_0x121c5f(0x78));for(const _0x10bec2 of _0x3f74e2[_0x121c5f(0x7d)](_0x1d3db1=>!_0x1d3db1[_0x121c5f(0x82)])){writeCliSideChannelLine('\x20\x20•\x20'+_0x10bec2[_0x121c5f(0x68)]+'\x20('+_0x10bec2[_0x121c5f(0xa5)]+_0x121c5f(0x6e)+_0x10bec2['error']);}}return{'ok':_0x3f8cde===0x0,'message':_0x3f8cde>0x0?'Doc\x20generation:\x20'+_0x10f614+'\x20succeeded,\x20'+_0x3f8cde+_0x121c5f(0x99):_0x121c5f(0x84)+_0x10f614+_0x121c5f(0x9a)};}};
@@ -1 +1 @@
1
- function a14_0x31fa(){const _0x55844e=['6761304bdZiFJ','6464032bTNBvR','30uBaTwS','12632VJZtHm','1532306kgPdHb','5bJuIHz','6002994eVlOqJ','156673iNvHXf','45aTVyzU','5056527TTpjlr','1ARYEaP'];a14_0x31fa=function(){return _0x55844e;};return a14_0x31fa();}(function(_0x16b754,_0x44590f){const _0x2f5f98=a14_0x7821,_0xd3da56=_0x16b754();while(!![]){try{const _0x3b6615=parseInt(_0x2f5f98(0xa0))/0x1*(parseInt(_0x2f5f98(0x9a))/0x2)+parseInt(_0x2f5f98(0x9e))/0x3*(parseInt(_0x2f5f98(0x99))/0x4)+parseInt(_0x2f5f98(0x9b))/0x5*(-parseInt(_0x2f5f98(0x9c))/0x6)+parseInt(_0x2f5f98(0x9f))/0x7+-parseInt(_0x2f5f98(0xa2))/0x8+parseInt(_0x2f5f98(0xa1))/0x9+-parseInt(_0x2f5f98(0x98))/0xa*(-parseInt(_0x2f5f98(0x9d))/0xb);if(_0x3b6615===_0x44590f)break;else _0xd3da56['push'](_0xd3da56['shift']());}catch(_0x1bcdfe){_0xd3da56['push'](_0xd3da56['shift']());}}}(a14_0x31fa,0x7f496));function a14_0x7821(_0x509f72,_0x475c21){_0x509f72=_0x509f72-0x98;const _0x31fa80=a14_0x31fa();let _0x7821fd=_0x31fa80[_0x509f72];return _0x7821fd;}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(_0x26f0b3,_0x22d76b){const _0x2ee51f=a14_0x37f7,_0x2af7fb=_0x26f0b3();while(!![]){try{const _0x3ec723=parseInt(_0x2ee51f(0x11c))/0x1*(parseInt(_0x2ee51f(0x124))/0x2)+parseInt(_0x2ee51f(0x11e))/0x3+parseInt(_0x2ee51f(0x11d))/0x4+-parseInt(_0x2ee51f(0x11f))/0x5+parseInt(_0x2ee51f(0x122))/0x6*(parseInt(_0x2ee51f(0x121))/0x7)+-parseInt(_0x2ee51f(0x120))/0x8+-parseInt(_0x2ee51f(0x123))/0x9;if(_0x3ec723===_0x22d76b)break;else _0x2af7fb['push'](_0x2af7fb['shift']());}catch(_0x28c30c){_0x2af7fb['push'](_0x2af7fb['shift']());}}}(a14_0x20d7,0xe250f));function a14_0x20d7(){const _0x295621=['1438136GFfVIV','592515mxxsML','102ZGaFCg','4769946IZAhjZ','2GHQwaz','762249BZvTRe','117692hiRguo','283908XPgKpX','3442605gCgGkl'];a14_0x20d7=function(){return _0x295621;};return a14_0x20d7();}import{apiList}from'../../commands/api/list.js';function a14_0x37f7(_0x225d6b,_0x470be4){_0x225d6b=_0x225d6b-0x11c;const _0x20d750=a14_0x20d7();let _0x37f7f6=_0x20d750[_0x225d6b];return _0x37f7f6;}import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
@@ -1 +1 @@
1
- const a15_0x95274d=a15_0x457a;(function(_0x5894aa,_0x6f3a){const _0x5995df=a15_0x457a,_0x2d13be=_0x5894aa();while(!![]){try{const _0x702c=-parseInt(_0x5995df(0xf3))/0x1+parseInt(_0x5995df(0x100))/0x2+-parseInt(_0x5995df(0xe9))/0x3+-parseInt(_0x5995df(0xed))/0x4*(-parseInt(_0x5995df(0xec))/0x5)+parseInt(_0x5995df(0xfa))/0x6*(parseInt(_0x5995df(0xee))/0x7)+parseInt(_0x5995df(0xff))/0x8*(-parseInt(_0x5995df(0x101))/0x9)+-parseInt(_0x5995df(0xef))/0xa*(-parseInt(_0x5995df(0xf0))/0xb);if(_0x702c===_0x6f3a)break;else _0x2d13be['push'](_0x2d13be['shift']());}catch(_0x31c811){_0x2d13be['push'](_0x2d13be['shift']());}}}(a15_0x1330,0x6d442));import{initEnv}from'../../constant/env.js';function a15_0x457a(_0x767c24,_0xa7af80){_0x767c24=_0x767c24-0xe9;const _0x1330cf=a15_0x1330();let _0x457a0c=_0x1330cf[_0x767c24];return _0x457a0c;}import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';function a15_0x1330(){const _0x5db566=['read','5cItSEx','1319548vOaSnn','33978itgYhb','81290FAZZqi','1529dafXCk','appCode','push','885617BcKRCt','rawFlags','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','list','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','cookie','isDefault','114rqxDrY','global','appcode','production','env','56qmawGr','1252562ZGqUIm','556713yBZepv','1236465EGNxVD','api'];a15_0x1330=function(){return _0x5db566;};return a15_0x1330();}export const apiList={'service':a15_0x95274d(0xea),'command':a15_0x95274d(0xf6),'description':a15_0x95274d(0xf7),'risk':a15_0x95274d(0xeb),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x95274d(0xfb),'type':'boolean','description':a15_0x95274d(0xf5),'default':![]}],async 'execute'(_0x237099){const _0x49be10=a15_0x95274d,_0x451a5a=_0x237099[_0x49be10(0xf4)][_0x49be10(0xfc)]?String(_0x237099['rawFlags']['appcode']):undefined,_0x3c7bb6=resolveTargetApps(_0x237099,_0x451a5a);if(_0x3c7bb6){const _0x307891=[];for(const _0x3bf611 of _0x3c7bb6){const _0x1b7a06=_0x3bf611[_0x49be10(0xf8)]||_0x237099['cookie'],_0x25eeed=_0x3bf611[_0x49be10(0xfe)]||_0x49be10(0xfd);initEnv(_0x25eeed);const {configArray:_0x2496c1}=await fetchModelList(_0x3bf611[_0x49be10(0xfc)],_0x1b7a06);_0x307891[_0x49be10(0xf2)](..._0x2496c1['map'](_0x302541=>({..._0x302541,'_appName':_0x3bf611['name'],'_appCode':_0x3bf611[_0x49be10(0xfc)],'_env':_0x25eeed,'_isDefault':_0x3bf611[_0x49be10(0xf9)]})));}return{'ok':!![],'data':_0x307891};}const {configArray:_0x378aa8}=await fetchModelList(_0x237099[_0x49be10(0xf1)],_0x237099[_0x49be10(0xf8)]);return{'ok':!![],'data':_0x378aa8};}};
1
+ const a15_0x4e0b0a=a15_0x170f;function a15_0x4446(){const _0x428842=['isDefault','2372648ZHoFMi','6BlUSst','rawFlags','name','read','792bgyOCC','1555790fQnFxS','1423932xkPdFm','27sHRkGq','648820pIHWpj','push','appCode','appcode','927MFkILe','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','491659qXQHoK','api','map','cookie','env','global','1119117RqFvdK','list','boolean'];a15_0x4446=function(){return _0x428842;};return a15_0x4446();}(function(_0x454f1e,_0x1a84a6){const _0x205f56=a15_0x170f,_0x340fa7=_0x454f1e();while(!![]){try{const _0x50cb58=parseInt(_0x205f56(0x116))/0x1*(parseInt(_0x205f56(0x10e))/0x2)+-parseInt(_0x205f56(0x11e))/0x3+-parseInt(_0x205f56(0x110))/0x4+-parseInt(_0x205f56(0x112))/0x5+-parseInt(_0x205f56(0x10a))/0x6*(-parseInt(_0x205f56(0x118))/0x7)+parseInt(_0x205f56(0x109))/0x8+-parseInt(_0x205f56(0x111))/0x9*(-parseInt(_0x205f56(0x10f))/0xa);if(_0x50cb58===_0x1a84a6)break;else _0x340fa7['push'](_0x340fa7['shift']());}catch(_0x35ef17){_0x340fa7['push'](_0x340fa7['shift']());}}}(a15_0x4446,0x53765));function a15_0x170f(_0x4f25da,_0x249be2){_0x4f25da=_0x4f25da-0x108;const _0x444653=a15_0x4446();let _0x170ff1=_0x444653[_0x4f25da];return _0x170ff1;}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_0x4e0b0a(0x119),'command':a15_0x4e0b0a(0x11f),'description':a15_0x4e0b0a(0x117),'risk':a15_0x4e0b0a(0x10d),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x4e0b0a(0x11d),'type':a15_0x4e0b0a(0x120),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x251e41){const _0x39572f=a15_0x4e0b0a,_0x357e79=_0x251e41[_0x39572f(0x10b)]['appcode']?String(_0x251e41['rawFlags'][_0x39572f(0x115)]):undefined,_0x236d9b=resolveTargetApps(_0x251e41,_0x357e79);if(_0x236d9b){const _0x36e577=[];for(const _0x487f93 of _0x236d9b){const _0x261f7f=_0x487f93['cookie']||_0x251e41[_0x39572f(0x11b)],_0x5e818d=_0x487f93[_0x39572f(0x11c)]||'production';initEnv(_0x5e818d);const {configArray:_0x40414f}=await fetchModelList(_0x487f93[_0x39572f(0x115)],_0x261f7f);_0x36e577[_0x39572f(0x113)](..._0x40414f[_0x39572f(0x11a)](_0x24a7c9=>({..._0x24a7c9,'_appName':_0x487f93[_0x39572f(0x10c)],'_appCode':_0x487f93[_0x39572f(0x115)],'_env':_0x5e818d,'_isDefault':_0x487f93[_0x39572f(0x108)]})));}return{'ok':!![],'data':_0x36e577};}const {configArray:_0xd3fb76}=await fetchModelList(_0x251e41[_0x39572f(0x114)],_0x251e41[_0x39572f(0x11b)]);return{'ok':!![],'data':_0xd3fb76};}};
@@ -1 +1 @@
1
- const a16_0x5b2c73=a16_0x3efa;(function(_0x5add86,_0x211998){const _0x2672a4=a16_0x3efa,_0x3b7a82=_0x5add86();while(!![]){try{const _0x3b9a20=parseInt(_0x2672a4(0x132))/0x1*(-parseInt(_0x2672a4(0x109))/0x2)+parseInt(_0x2672a4(0x12b))/0x3*(-parseInt(_0x2672a4(0x12d))/0x4)+parseInt(_0x2672a4(0x114))/0x5+-parseInt(_0x2672a4(0x134))/0x6*(-parseInt(_0x2672a4(0x123))/0x7)+-parseInt(_0x2672a4(0x10e))/0x8+parseInt(_0x2672a4(0x10c))/0x9+parseInt(_0x2672a4(0x12a))/0xa;if(_0x3b9a20===_0x211998)break;else _0x3b7a82['push'](_0x3b7a82['shift']());}catch(_0x2218ac){_0x3b7a82['push'](_0x3b7a82['shift']());}}}(a16_0x1717,0x8c7cb));import a16_0x2d21d6 from'ora';import a16_0x526bdf 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_0x3efa(_0xdf3094,_0xab3f0a){_0xdf3094=_0xdf3094-0x108;const _0x171754=a16_0x1717();let _0x3efacc=_0x171754[_0xdf3094];return _0x3efacc;}import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a16_0x1717(){const _0x2a49a3=['production','rawFlags','1011300HznpKy','str','\x20dataset(s)\x20→\x20','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','boolean','start','join','\x20\x20•\x20','length','succeed','...','isDefault','apiFilePath','cookie','\x20model(s)','13909BbEtTJ','clientFilePath','-api','api','global','write','client','5636120IfpwED','467871ZeRntf','output','4bHyVSO','Failed:\x20','modelCount','appcode','string','179blljCp','split','606Lulbpv','\x20succeeded,\x20','env','apiDir','.ts','256YAJowu','appCode','fail','6780735qTbwGJ','slice','7725360zipcGb','Pulled\x20','name','includes'];a16_0x1717=function(){return _0x2a49a3;};return a16_0x1717();}export const apiPull={'service':a16_0x5b2c73(0x126),'command':'pull','description':a16_0x5b2c73(0x117)+DEFAULT_API_DIR+'/)','risk':a16_0x5b2c73(0x128),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x5b2c73(0x12c),'type':a16_0x5b2c73(0x131),'description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':a16_0x5b2c73(0x127),'type':a16_0x5b2c73(0x118),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x59167b){const _0x200b23=a16_0x5b2c73,_0x46e9a5=_0x59167b[_0x200b23(0x113)]['appcode']?String(_0x59167b['rawFlags'][_0x200b23(0x130)]):undefined,_0x5f4dd1=_0x59167b[_0x200b23(0x115)](_0x200b23(0x12c))||undefined,_0x77af83=resolveTargetApps(_0x59167b,_0x46e9a5);if(_0x77af83){let _0x1e1f77=0x0,_0x425122=0x0;for(const _0x4317d9 of _0x77af83){const _0x5d9b67=_0x4317d9[_0x200b23(0x121)]||_0x59167b[_0x200b23(0x121)],_0x3563c7=_0x4317d9[_0x200b23(0x136)]||_0x200b23(0x112);initEnv(_0x3563c7);const _0x96c5d1=_0x4317d9[_0x200b23(0x137)]||_0x5f4dd1||_0x59167b[_0x200b23(0x137)]||DEFAULT_API_DIR,_0x4ab8ed=_0x4317d9[_0x200b23(0x11f)]?'':_0x4317d9[_0x200b23(0x110)]||_0x4317d9[_0x200b23(0x130)],_0x3e28bd=a16_0x2d21d6('Pulling\x20'+_0x4317d9[_0x200b23(0x110)]+'\x20('+_0x4317d9[_0x200b23(0x130)]+')...')['start']();try{const {configArray:_0x25e731}=await fetchModelList(_0x4317d9['appcode'],_0x5d9b67),_0x59f98b=await generateApiFile(_0x25e731,_0x4ab8ed,_0x4317d9[_0x200b23(0x130)],_0x4317d9[_0x200b23(0x11f)],_0x3563c7,_0x96c5d1,_0x4317d9[_0x200b23(0x110)]);_0x3e28bd['succeed'](_0x4317d9[_0x200b23(0x110)]+':\x20'+_0x25e731['length']+_0x200b23(0x116)+_0x59f98b['modelCount']+_0x200b23(0x122)),writeCliSideChannelLine('\x20\x20•\x20'+_0x59f98b[_0x200b23(0x120)]),writeCliSideChannelLine(_0x200b23(0x11b)+_0x59f98b[_0x200b23(0x124)]),_0x1e1f77++;}catch(_0x29268b){_0x3e28bd[_0x200b23(0x10b)](_0x4317d9['name']+':\x20'+(_0x29268b instanceof Error?_0x29268b['message']:String(_0x29268b))),_0x425122++;}}writeCliSideChannelLine('');if(_0x425122>0x0)writeCliSideChannelLine('!\x20'+_0x425122+'\x20app(s)\x20failed');return{'ok':_0x425122===0x0,'message':'Done:\x20'+_0x1e1f77+_0x200b23(0x135)+_0x425122+'\x20failed'};}const _0x5542c8=_0x46e9a5&&_0x46e9a5[_0x200b23(0x111)]('-')?_0x46e9a5[_0x200b23(0x133)]('-')[_0x200b23(0x10d)](0x1)[_0x200b23(0x11a)]('-'):'',_0x29808a=_0x5f4dd1||_0x59167b['apiDir']||DEFAULT_API_DIR,_0x5bf600=!_0x46e9a5,_0x3e4ab3=a16_0x2d21d6('Pulling\x20API\x20config\x20for\x20'+_0x59167b[_0x200b23(0x10a)]+_0x200b23(0x11e))[_0x200b23(0x119)]();try{const {configArray:_0x294b51}=await fetchModelList(_0x59167b[_0x200b23(0x10a)],_0x59167b[_0x200b23(0x121)]),_0x58a952=await generateApiFile(_0x294b51,_0x5542c8,_0x59167b[_0x200b23(0x10a)],_0x5bf600,getEnv(),_0x29808a);_0x3e4ab3[_0x200b23(0x11d)](_0x200b23(0x10f)+_0x294b51[_0x200b23(0x11c)]+'\x20dataset(s),\x20generated\x20'+_0x58a952[_0x200b23(0x12f)]+_0x200b23(0x122));const _0x347191=_0x5542c8?_0x5542c8+_0x200b23(0x125):_0x200b23(0x126),_0x12366a=_0x5542c8?_0x5542c8+'-client':_0x200b23(0x129);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x526bdf[_0x200b23(0x11a)](_0x29808a,_0x347191+_0x200b23(0x108))),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x526bdf['join'](_0x29808a,_0x12366a+_0x200b23(0x108))),{'ok':!![],'data':{'datasetCount':_0x294b51[_0x200b23(0x11c)],'modelCount':_0x58a952[_0x200b23(0x12f)]}};}catch(_0x2d0e39){_0x3e4ab3['fail'](_0x200b23(0x12e)+(_0x2d0e39 instanceof Error?_0x2d0e39['message']:String(_0x2d0e39)));throw _0x2d0e39;}}};
1
+ const a16_0x42520d=a16_0x5462;(function(_0x46651f,_0x4ee6f6){const _0x1e7863=a16_0x5462,_0x5991ae=_0x46651f();while(!![]){try{const _0xb3cced=parseInt(_0x1e7863(0xc0))/0x1*(parseInt(_0x1e7863(0xbb))/0x2)+parseInt(_0x1e7863(0xa5))/0x3+parseInt(_0x1e7863(0xc1))/0x4+parseInt(_0x1e7863(0xb5))/0x5+-parseInt(_0x1e7863(0xb7))/0x6*(-parseInt(_0x1e7863(0xb9))/0x7)+parseInt(_0x1e7863(0xb2))/0x8*(parseInt(_0x1e7863(0x9e))/0x9)+-parseInt(_0x1e7863(0xb0))/0xa;if(_0xb3cced===_0x4ee6f6)break;else _0x5991ae['push'](_0x5991ae['shift']());}catch(_0x2a0ec0){_0x5991ae['push'](_0x5991ae['shift']());}}}(a16_0x5c1a,0x8ee1d));import a16_0xfc9928 from'ora';import a16_0x3ef51f from'node:path';import{initEnv,getEnv}from'../../constant/env.js';function a16_0x5c1a(){const _0x3b17e4=['33616930WzrHVm','succeed','839712NckbBL','rawFlags','apiDir','5505870fCzpGu','api','189888mSVeso','production','91CZOdFl','output','2ZETAHs','pull','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','message','str','736381ymcEvu','1855632IRIMFw','appCode','join','\x20\x20•\x20','includes','write','modelCount','\x20dataset(s)\x20→\x20','Done:\x20','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','name',')...','Pulled\x20','.ts','split','global','start','cookie','99pavtui','-api','length','env','appcode','string','slice','238341htXRlQ','Failed:\x20','boolean','client','fail','-client','\x20succeeded,\x20','\x20dataset(s),\x20generated\x20','\x20model(s)','\x20app(s)\x20failed','Output\x20directory\x20(default:\x20'];a16_0x5c1a=function(){return _0x3b17e4;};return a16_0x5c1a();}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_0x5462(_0x51e4b4,_0x49143b){_0x51e4b4=_0x51e4b4-0x99;const _0x5c1ae0=a16_0x5c1a();let _0x5462f1=_0x5c1ae0[_0x51e4b4];return _0x5462f1;}import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':a16_0x42520d(0xb6),'command':a16_0x42520d(0xbc),'description':a16_0x42520d(0xca)+DEFAULT_API_DIR+'/)','risk':a16_0x42520d(0xc6),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x42520d(0xba),'type':a16_0x42520d(0xa3),'description':a16_0x42520d(0xaf)+DEFAULT_API_DIR+'/)'},{'name':a16_0x42520d(0x9b),'type':a16_0x42520d(0xa7),'description':a16_0x42520d(0xbd),'default':![]}],async 'execute'(_0x6b233b){const _0x1511ea=a16_0x42520d,_0xe33aa1=_0x6b233b[_0x1511ea(0xb3)][_0x1511ea(0xa2)]?String(_0x6b233b['rawFlags']['appcode']):undefined,_0x581881=_0x6b233b[_0x1511ea(0xbf)](_0x1511ea(0xba))||undefined,_0x2b2136=resolveTargetApps(_0x6b233b,_0xe33aa1);if(_0x2b2136){let _0x1134b=0x0,_0x5f175f=0x0;for(const _0x3e3640 of _0x2b2136){const _0x6fad9e=_0x3e3640['cookie']||_0x6b233b[_0x1511ea(0x9d)],_0x413b72=_0x3e3640[_0x1511ea(0xa1)]||_0x1511ea(0xb8);initEnv(_0x413b72);const _0x43766b=_0x3e3640[_0x1511ea(0xb4)]||_0x581881||_0x6b233b[_0x1511ea(0xb4)]||DEFAULT_API_DIR,_0x5f0db8=_0x3e3640['isDefault']?'':_0x3e3640[_0x1511ea(0xcb)]||_0x3e3640[_0x1511ea(0xa2)],_0x4f344d=a16_0xfc9928('Pulling\x20'+_0x3e3640[_0x1511ea(0xcb)]+'\x20('+_0x3e3640[_0x1511ea(0xa2)]+_0x1511ea(0xcc))['start']();try{const {configArray:_0x500179}=await fetchModelList(_0x3e3640[_0x1511ea(0xa2)],_0x6fad9e),_0x4bda85=await generateApiFile(_0x500179,_0x5f0db8,_0x3e3640[_0x1511ea(0xa2)],_0x3e3640['isDefault'],_0x413b72,_0x43766b,_0x3e3640[_0x1511ea(0xcb)]);_0x4f344d[_0x1511ea(0xb1)](_0x3e3640[_0x1511ea(0xcb)]+':\x20'+_0x500179['length']+_0x1511ea(0xc8)+_0x4bda85['modelCount']+_0x1511ea(0xad)),writeCliSideChannelLine('\x20\x20•\x20'+_0x4bda85['apiFilePath']),writeCliSideChannelLine(_0x1511ea(0xc4)+_0x4bda85['clientFilePath']),_0x1134b++;}catch(_0xcfccc9){_0x4f344d[_0x1511ea(0xa9)](_0x3e3640[_0x1511ea(0xcb)]+':\x20'+(_0xcfccc9 instanceof Error?_0xcfccc9[_0x1511ea(0xbe)]:String(_0xcfccc9))),_0x5f175f++;}}writeCliSideChannelLine('');if(_0x5f175f>0x0)writeCliSideChannelLine('!\x20'+_0x5f175f+_0x1511ea(0xae));return{'ok':_0x5f175f===0x0,'message':_0x1511ea(0xc9)+_0x1134b+_0x1511ea(0xab)+_0x5f175f+'\x20failed'};}const _0x1dd32e=_0xe33aa1&&_0xe33aa1[_0x1511ea(0xc5)]('-')?_0xe33aa1[_0x1511ea(0x9a)]('-')[_0x1511ea(0xa4)](0x1)[_0x1511ea(0xc3)]('-'):'',_0x31b1f7=_0x581881||_0x6b233b[_0x1511ea(0xb4)]||DEFAULT_API_DIR,_0x143cea=!_0xe33aa1,_0x7db874=a16_0xfc9928('Pulling\x20API\x20config\x20for\x20'+_0x6b233b[_0x1511ea(0xc2)]+'...')[_0x1511ea(0x9c)]();try{const {configArray:_0x518513}=await fetchModelList(_0x6b233b['appCode'],_0x6b233b['cookie']),_0x20d8d5=await generateApiFile(_0x518513,_0x1dd32e,_0x6b233b['appCode'],_0x143cea,getEnv(),_0x31b1f7);_0x7db874['succeed'](_0x1511ea(0xcd)+_0x518513[_0x1511ea(0xa0)]+_0x1511ea(0xac)+_0x20d8d5[_0x1511ea(0xc7)]+_0x1511ea(0xad));const _0x5680ce=_0x1dd32e?_0x1dd32e+_0x1511ea(0x9f):_0x1511ea(0xb6),_0x3f75c2=_0x1dd32e?_0x1dd32e+_0x1511ea(0xaa):_0x1511ea(0xa8);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x3ef51f['join'](_0x31b1f7,_0x5680ce+_0x1511ea(0x99))),writeCliSideChannelLine(_0x1511ea(0xc4)+a16_0x3ef51f[_0x1511ea(0xc3)](_0x31b1f7,_0x3f75c2+_0x1511ea(0x99))),{'ok':!![],'data':{'datasetCount':_0x518513['length'],'modelCount':_0x20d8d5[_0x1511ea(0xc7)]}};}catch(_0x3ace6f){_0x7db874[_0x1511ea(0xa9)](_0x1511ea(0xa6)+(_0x3ace6f instanceof Error?_0x3ace6f[_0x1511ea(0xbe)]:String(_0x3ace6f)));throw _0x3ace6f;}}};
@@ -1 +1 @@
1
- (function(_0x4ad329,_0x3e474d){const _0x47cfff=a17_0x316c,_0x3f6892=_0x4ad329();while(!![]){try{const _0x5c4bf0=-parseInt(_0x47cfff(0x1d8))/0x1+parseInt(_0x47cfff(0x1d6))/0x2+parseInt(_0x47cfff(0x1dc))/0x3+parseInt(_0x47cfff(0x1dd))/0x4*(parseInt(_0x47cfff(0x1d3))/0x5)+-parseInt(_0x47cfff(0x1d2))/0x6+parseInt(_0x47cfff(0x1de))/0x7+-parseInt(_0x47cfff(0x1d0))/0x8*(parseInt(_0x47cfff(0x1df))/0x9);if(_0x5c4bf0===_0x3e474d)break;else _0x3f6892['push'](_0x3f6892['shift']());}catch(_0x19f6b1){_0x3f6892['push'](_0x3f6892['shift']());}}}(a17_0x28e5,0x6f146));function a17_0x28e5(){const _0x18bead=['join','1172094dwQzuh','50UDEXmq','selectedAppName','filter','1320442yXBvaQ','validation','473159yRzAas','bool','project','length','1102053CPHIEl','217700bRFOqQ','3388217RNcEZd','8391267KfAgOh','merged','name','8GZjRcq'];a17_0x28e5=function(){return _0x18bead;};return a17_0x28e5();}import{getMultiAppConfigs}from'../../utils/config.js';function a17_0x316c(_0x16bdba,_0x499808){_0x16bdba=_0x16bdba-0x1cf;const _0x28e5c9=a17_0x28e5();let _0x316cdd=_0x28e5c9[_0x16bdba];return _0x316cdd;}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x1b6911,_0x1ecdbe){const _0x1cf16b=a17_0x316c;if(_0x1ecdbe)return null;const _0x16be2e=_0x1b6911[_0x1cf16b(0x1d9)]('global')?_0x1cf16b(0x1e0):_0x1cf16b(0x1da);let _0x5a1203=getMultiAppConfigs(_0x16be2e);if(!_0x5a1203||_0x5a1203['length']===0x0)return null;if(_0x1b6911['selectedAppName']){const _0x597bb4=_0x5a1203[_0x1cf16b(0x1d5)](_0x1e9517=>_0x1e9517['name']===_0x1b6911['selectedAppName']);if(_0x597bb4[_0x1cf16b(0x1db)]===0x0){const _0x58fb63=_0x5a1203['map'](_0x381b2a=>_0x381b2a[_0x1cf16b(0x1cf)])[_0x1cf16b(0x1d1)](',\x20');throw CliErrors[_0x1cf16b(0x1d7)]('App\x20\x22'+_0x1b6911[_0x1cf16b(0x1d4)]+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x58fb63);}_0x5a1203=_0x597bb4;}return _0x5a1203;}
1
+ (function(_0x13745f,_0x58f371){const _0x4e1ffb=a17_0x436e,_0x1d4b96=_0x13745f();while(!![]){try{const _0x27c841=-parseInt(_0x4e1ffb(0x13f))/0x1*(parseInt(_0x4e1ffb(0x142))/0x2)+-parseInt(_0x4e1ffb(0x140))/0x3*(-parseInt(_0x4e1ffb(0x136))/0x4)+-parseInt(_0x4e1ffb(0x143))/0x5*(parseInt(_0x4e1ffb(0x13c))/0x6)+-parseInt(_0x4e1ffb(0x135))/0x7+parseInt(_0x4e1ffb(0x139))/0x8+-parseInt(_0x4e1ffb(0x141))/0x9*(parseInt(_0x4e1ffb(0x138))/0xa)+parseInt(_0x4e1ffb(0x132))/0xb;if(_0x27c841===_0x58f371)break;else _0x1d4b96['push'](_0x1d4b96['shift']());}catch(_0x15e865){_0x1d4b96['push'](_0x1d4b96['shift']());}}}(a17_0x4cdc,0x90d21));function a17_0x436e(_0x151d42,_0x4dd6cd){_0x151d42=_0x151d42-0x130;const _0x4cdc1c=a17_0x4cdc();let _0x436e26=_0x4cdc1c[_0x151d42];return _0x436e26;}import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';function a17_0x4cdc(){const _0x4ec8ae=['filter','1DYhvSz','27jSBGCp','108351RgTaoR','527546WfaMEO','3474425mNkpTB','bool','map','23817805jNePsV','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','length','2225846XxcTGV','113084oePrzj','selectedAppName','490kUdOcj','320304LEEwwS','validation','join','6ksUzAi','name'];a17_0x4cdc=function(){return _0x4ec8ae;};return a17_0x4cdc();}export function resolveTargetApps(_0x160fda,_0x50b8c0){const _0x1665c5=a17_0x436e;if(_0x50b8c0)return null;const _0x5cf97c=_0x160fda[_0x1665c5(0x130)]('global')?'merged':'project';let _0x480401=getMultiAppConfigs(_0x5cf97c);if(!_0x480401||_0x480401[_0x1665c5(0x134)]===0x0)return null;if(_0x160fda[_0x1665c5(0x137)]){const _0x2d822f=_0x480401[_0x1665c5(0x13e)](_0x3a9688=>_0x3a9688[_0x1665c5(0x13d)]===_0x160fda[_0x1665c5(0x137)]);if(_0x2d822f['length']===0x0){const _0x155441=_0x480401[_0x1665c5(0x131)](_0x212d71=>_0x212d71[_0x1665c5(0x13d)])[_0x1665c5(0x13b)](',\x20');throw CliErrors[_0x1665c5(0x13a)]('App\x20\x22'+_0x160fda[_0x1665c5(0x137)]+_0x1665c5(0x133)+_0x155441);}_0x480401=_0x2d822f;}return _0x480401;}
@@ -1 +1 @@
1
- const a18_0x1c7e18=a18_0xd5bc;(function(_0x27350b,_0x195581){const _0x1a32b5=a18_0xd5bc,_0x1eb1e4=_0x27350b();while(!![]){try{const _0x1f75e3=-parseInt(_0x1a32b5(0x139))/0x1*(parseInt(_0x1a32b5(0x12b))/0x2)+-parseInt(_0x1a32b5(0x134))/0x3+-parseInt(_0x1a32b5(0x138))/0x4+parseInt(_0x1a32b5(0x125))/0x5+-parseInt(_0x1a32b5(0x126))/0x6*(-parseInt(_0x1a32b5(0x123))/0x7)+-parseInt(_0x1a32b5(0x121))/0x8+parseInt(_0x1a32b5(0x136))/0x9;if(_0x1f75e3===_0x195581)break;else _0x1eb1e4['push'](_0x1eb1e4['shift']());}catch(_0x423301){_0x1eb1e4['push'](_0x1eb1e4['shift']());}}}(a18_0x7a49,0xedf9c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0xd5bc(_0x55aae9,_0x1f16c2){_0x55aae9=_0x55aae9-0x11d;const _0x7a491f=a18_0x7a49();let _0xd5bc0=_0x7a491f[_0x55aae9];return _0xd5bc0;}import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x33d072){const _0x4540c5=a18_0xd5bc,_0x463813=_0x33d072[_0x4540c5(0x130)][0x0]?.[_0x4540c5(0x13c)]();if(!_0x463813)throw CliErrors['validation'](_0x4540c5(0x122),_0x4540c5(0x13a)+CLI_BIN_NAME+_0x4540c5(0x13d));}function a18_0x7a49(){const _0x2e22fa=['appcode','bool','12237632mDraue','Missing\x20app\x20name.','763kDUrZu','boolean','9724860WZyJlH','77334BxlWPb','apps','global','App\x20profile\x20name','\x22\x20(appcode:\x20','38amKXem','validation','Added','\x20Set\x20as\x20default\x20app.','Updated','args','app','name','str','436578fFumEK','\x20app\x20\x22','11679048xkezWs','write','7688168njYGpw','3975vfjoJa','Usage:\x20','Use\x20global\x20config\x20scope','trim','\x20app\x20add\x20<name>\x20--appcode\x20<code>','defaultApp','string'];a18_0x7a49=function(){return _0x2e22fa;};return a18_0x7a49();}async function execute(_0x1e1cc){const _0x5590af=a18_0xd5bc,_0xccb376=_0x1e1cc['args'][0x0]?.['trim']();if(!_0xccb376)throw CliErrors[_0x5590af(0x12c)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x5590af(0x13d));const _0x543414=_0x1e1cc[_0x5590af(0x133)](_0x5590af(0x11f));if(!_0x543414)throw CliErrors['flagMissing'](_0x5590af(0x11f),_0x5590af(0x13a)+CLI_BIN_NAME+_0x5590af(0x13d));const _0x1bfdca={'global':_0x1e1cc[_0x5590af(0x120)]('global')},_0xce860b=readConfig(_0x1bfdca);if(!_0xce860b[_0x5590af(0x127)])_0xce860b[_0x5590af(0x127)]={};const _0x4ab29c={'appcode':_0x543414,...collectAppProfileOverrides(_0x2a83d8=>_0x1e1cc[_0x5590af(0x133)](_0x2a83d8))},_0x45ef6e=_0xce860b[_0x5590af(0x127)],_0x381c41=!!_0x45ef6e[_0xccb376];_0x45ef6e[_0xccb376]=_0x4ab29c;if(!_0xce860b[_0x5590af(0x11d)])_0xce860b[_0x5590af(0x11d)]=_0xccb376;writeConfig(_0xce860b,_0x1bfdca);const _0x1e3102=!_0x381c41&&_0xce860b[_0x5590af(0x11d)]===_0xccb376?_0x5590af(0x12e):'',_0x14e5c5=(_0x381c41?_0x5590af(0x12f):_0x5590af(0x12d))+_0x5590af(0x135)+_0xccb376+_0x5590af(0x12a)+_0x543414+')'+scopeLabel(_0x1bfdca)+'.'+_0x1e3102;return{'ok':!![],'message':_0x14e5c5};}export const appAddDefinition={'service':a18_0x1c7e18(0x131),'command':'add','description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a18_0x1c7e18(0x137),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x1c7e18(0x132),'description':a18_0x1c7e18(0x129),'required':!![]}],'flags':[{'name':a18_0x1c7e18(0x11f),'type':a18_0x1c7e18(0x11e),'description':'App\x20code','required':!![]},{'name':a18_0x1c7e18(0x128),'type':a18_0x1c7e18(0x124),'description':a18_0x1c7e18(0x13b),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ const a18_0x52e9e2=a18_0x519f;(function(_0x386032,_0x4b504e){const _0x1e6d37=a18_0x519f,_0xe780de=_0x386032();while(!![]){try{const _0x110423=parseInt(_0x1e6d37(0xab))/0x1*(parseInt(_0x1e6d37(0x97))/0x2)+parseInt(_0x1e6d37(0x98))/0x3*(parseInt(_0x1e6d37(0xa3))/0x4)+parseInt(_0x1e6d37(0x9a))/0x5+-parseInt(_0x1e6d37(0xac))/0x6*(parseInt(_0x1e6d37(0x9b))/0x7)+parseInt(_0x1e6d37(0xa5))/0x8*(parseInt(_0x1e6d37(0xa2))/0x9)+-parseInt(_0x1e6d37(0xaa))/0xa+-parseInt(_0x1e6d37(0xb1))/0xb;if(_0x110423===_0x4b504e)break;else _0xe780de['push'](_0xe780de['shift']());}catch(_0x3718c9){_0xe780de['push'](_0xe780de['shift']());}}}(a18_0x4e5f,0xc5d43));function a18_0x4e5f(){const _0x27c552=['Updated','7155860GOuDTX','7119CmmISt','Added','Usage:\x20','appcode','Add\x20or\x20update\x20an\x20app\x20in\x20config','\x22\x20(appcode:\x20','App\x20code','27252FrSVYp','8NEOfxn','\x20Set\x20as\x20default\x20app.','496dVezlu','args','validation','trim','name','4779400Ipnjry','4zikTlq','3972CSklOL','str','\x20app\x20\x22','defaultApp','write','23950289McdSLM','global','App\x20profile\x20name','flagMissing','\x20app\x20add\x20<name>\x20--appcode\x20<code>','add','apps','797494dpuTyo','1387356oJEnjs'];a18_0x4e5f=function(){return _0x27c552;};return a18_0x4e5f();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x22889f){const _0x1cbe4a=a18_0x519f,_0x300bf1=_0x22889f[_0x1cbe4a(0xa6)][0x0]?.['trim']();if(!_0x300bf1)throw CliErrors[_0x1cbe4a(0xa7)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x1cbe4a(0x94));}async function execute(_0x991325){const _0x51cd89=a18_0x519f,_0x3c0912=_0x991325[_0x51cd89(0xa6)][0x0]?.[_0x51cd89(0xa8)]();if(!_0x3c0912)throw CliErrors[_0x51cd89(0xa7)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x51cd89(0x94));const _0xd37e28=_0x991325[_0x51cd89(0xad)](_0x51cd89(0x9e));if(!_0xd37e28)throw CliErrors[_0x51cd89(0x93)](_0x51cd89(0x9e),_0x51cd89(0x9d)+CLI_BIN_NAME+_0x51cd89(0x94));const _0x444fd2={'global':_0x991325['bool'](_0x51cd89(0xb2))},_0x360337=readConfig(_0x444fd2);if(!_0x360337['apps'])_0x360337[_0x51cd89(0x96)]={};const _0x489a6e={'appcode':_0xd37e28,...collectAppProfileOverrides(_0x38401b=>_0x991325[_0x51cd89(0xad)](_0x38401b))},_0x173d54=_0x360337[_0x51cd89(0x96)],_0x400e13=!!_0x173d54[_0x3c0912];_0x173d54[_0x3c0912]=_0x489a6e;if(!_0x360337[_0x51cd89(0xaf)])_0x360337[_0x51cd89(0xaf)]=_0x3c0912;writeConfig(_0x360337,_0x444fd2);const _0x544904=!_0x400e13&&_0x360337['defaultApp']===_0x3c0912?_0x51cd89(0xa4):'',_0x33411e=(_0x400e13?_0x51cd89(0x99):_0x51cd89(0x9c))+_0x51cd89(0xae)+_0x3c0912+_0x51cd89(0xa0)+_0xd37e28+')'+scopeLabel(_0x444fd2)+'.'+_0x544904;return{'ok':!![],'message':_0x33411e};}function a18_0x519f(_0x1e775f,_0xe6ff69){_0x1e775f=_0x1e775f-0x92;const _0x4e5ff4=a18_0x4e5f();let _0x519f6e=_0x4e5ff4[_0x1e775f];return _0x519f6e;}export const appAddDefinition={'service':'app','command':a18_0x52e9e2(0x95),'description':a18_0x52e9e2(0x9f),'risk':a18_0x52e9e2(0xb0),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x52e9e2(0xa9),'description':a18_0x52e9e2(0x92),'required':!![]}],'flags':[{'name':'appcode','type':'string','description':a18_0x52e9e2(0xa1),'required':!![]},{'name':a18_0x52e9e2(0xb2),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
@@ -1 +1 @@
1
- function a19_0xd6da(_0xede5f0,_0x13126a){_0xede5f0=_0xede5f0-0x15a;const _0x573966=a19_0x5739();let _0xd6daa1=_0x573966[_0xede5f0];return _0xd6daa1;}const a19_0x1a9de6=a19_0xd6da;(function(_0x3606b6,_0x3f951e){const _0x581a57=a19_0xd6da,_0x6fe484=_0x3606b6();while(!![]){try{const _0x14ed11=-parseInt(_0x581a57(0x167))/0x1+parseInt(_0x581a57(0x16a))/0x2*(parseInt(_0x581a57(0x16c))/0x3)+-parseInt(_0x581a57(0x165))/0x4*(-parseInt(_0x581a57(0x160))/0x5)+-parseInt(_0x581a57(0x164))/0x6+parseInt(_0x581a57(0x168))/0x7+-parseInt(_0x581a57(0x16e))/0x8*(-parseInt(_0x581a57(0x15d))/0x9)+-parseInt(_0x581a57(0x15f))/0xa;if(_0x14ed11===_0x3f951e)break;else _0x6fe484['push'](_0x6fe484['shift']());}catch(_0x5cb3f9){_0x6fe484['push'](_0x6fe484['shift']());}}}(a19_0x5739,0xcb03d));import{listRemoteApps}from'../../core/api-client.js';async function execute(_0x13386f){const _0x30672f=a19_0xd6da,{setActiveCookie:_0x28fb52}=await import(_0x30672f(0x16d));_0x28fb52(_0x13386f[_0x30672f(0x161)]);const _0x26f225=await listRemoteApps();return{'ok':!![],'data':{'items':_0x26f225[_0x30672f(0x162)](_0x3d8b7b=>({..._0x3d8b7b['id']!=null?{'id':_0x3d8b7b['id']}:{},'appCode':_0x3d8b7b[_0x30672f(0x15b)],'appName':_0x3d8b7b[_0x30672f(0x166)],..._0x3d8b7b['appDesc']!=null?{'appDesc':_0x3d8b7b[_0x30672f(0x169)]}:{}})),'meta':{'source':_0x30672f(0x15c)}}};}export const appRemoteDefinition={'service':a19_0x1a9de6(0x15a),'command':a19_0x1a9de6(0x16b),'description':a19_0x1a9de6(0x163),'risk':a19_0x1a9de6(0x15e),'requiresAuth':!![],'requiresAppCode':![],'flags':[],'execute':execute};function a19_0x5739(){const _0x196599=['7330064cQifKE','app','appCode','platform','9MHXVGC','read','19871110hwuIgY','3985295dhkllu','cookie','map','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','4049514QnKhtK','4MGYAGJ','appName','126964slapca','10617278mkVknJ','appDesc','4CsRKBT','remote','585708AKeVPS','../../core/api-client.js'];a19_0x5739=function(){return _0x196599;};return a19_0x5739();}
1
+ function a19_0x148b(_0x16604e,_0x3b433e){_0x16604e=_0x16604e-0x16b;const _0x2080f4=a19_0x2080();let _0x148b5f=_0x2080f4[_0x16604e];return _0x148b5f;}const a19_0x18e8fe=a19_0x148b;(function(_0x24f008,_0x44f70d){const _0x52874d=a19_0x148b,_0x3e0133=_0x24f008();while(!![]){try{const _0x2cb334=-parseInt(_0x52874d(0x16b))/0x1*(parseInt(_0x52874d(0x17c))/0x2)+-parseInt(_0x52874d(0x178))/0x3*(-parseInt(_0x52874d(0x16d))/0x4)+parseInt(_0x52874d(0x16c))/0x5*(parseInt(_0x52874d(0x171))/0x6)+-parseInt(_0x52874d(0x172))/0x7*(-parseInt(_0x52874d(0x179))/0x8)+parseInt(_0x52874d(0x16f))/0x9+-parseInt(_0x52874d(0x175))/0xa*(parseInt(_0x52874d(0x17b))/0xb)+-parseInt(_0x52874d(0x170))/0xc;if(_0x2cb334===_0x44f70d)break;else _0x3e0133['push'](_0x3e0133['shift']());}catch(_0x4d8b06){_0x3e0133['push'](_0x3e0133['shift']());}}}(a19_0x2080,0x533ba));import{listRemoteApps}from'../../core/api-client.js';async function execute(_0x27d154){const _0x3cdcb0=a19_0x148b,{setActiveCookie:_0x1fc55b}=await import(_0x3cdcb0(0x177));_0x1fc55b(_0x27d154['cookie']);const _0x16022b=await listRemoteApps();return{'ok':!![],'data':{'items':_0x16022b['map'](_0x5ad9f9=>({..._0x5ad9f9['id']!=null?{'id':_0x5ad9f9['id']}:{},'appCode':_0x5ad9f9[_0x3cdcb0(0x17a)],'appName':_0x5ad9f9[_0x3cdcb0(0x174)],..._0x5ad9f9[_0x3cdcb0(0x173)]!=null?{'appDesc':_0x5ad9f9[_0x3cdcb0(0x173)]}:{}})),'meta':{'source':_0x3cdcb0(0x176)}}};}function a19_0x2080(){const _0x315b0d=['appName','113380tSKdBt','platform','../../core/api-client.js','6267pCMVBa','256LNxRfc','appCode','77dkdrWH','9866xcohcY','remote','103diFmce','430iWgMwf','1292gqXvVQ','read','5259600UuPvJd','14428896cSilNG','37152Byfeju','74186dihfGP','appDesc'];a19_0x2080=function(){return _0x315b0d;};return a19_0x2080();}export const appRemoteDefinition={'service':'app','command':a19_0x18e8fe(0x17d),'description':'List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','risk':a19_0x18e8fe(0x16e),'requiresAuth':!![],'requiresAppCode':![],'flags':[],'execute':execute};