@lovrabet/rabetbase-cli 2.1.3-beta.0 → 2.1.5

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 (184) 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/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/page/generate-start.js +1 -1
  81. package/lib/commands/page/generate-status.js +1 -1
  82. package/lib/commands/page/index.js +1 -1
  83. package/lib/commands/page/pull.js +1 -1
  84. package/lib/commands/page/push.js +1 -1
  85. package/lib/commands/page/shared.js +1 -1
  86. package/lib/commands/page/standard-page-status.js +1 -1
  87. package/lib/commands/page/sync.js +1 -1
  88. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  89. package/lib/commands/project/create/format-elapsed.js +1 -1
  90. package/lib/commands/project/create/main.js +1 -1
  91. package/lib/commands/project/create/non-interactive.js +1 -1
  92. package/lib/commands/project/create/project-template-path.js +1 -1
  93. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  94. package/lib/commands/project/create/use-format-code.js +1 -1
  95. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  96. package/lib/commands/project/index.js +1 -1
  97. package/lib/commands/project/init.js +1 -1
  98. package/lib/commands/project/upgrade.js +1 -1
  99. package/lib/commands/registry.js +1 -1
  100. package/lib/commands/run/index.js +1 -1
  101. package/lib/commands/schema.js +1 -1
  102. package/lib/commands/skill/index.js +1 -1
  103. package/lib/commands/sql/create.js +1 -1
  104. package/lib/commands/sql/delete.js +1 -1
  105. package/lib/commands/sql/detail.js +1 -1
  106. package/lib/commands/sql/exec.js +1 -1
  107. package/lib/commands/sql/index.js +1 -1
  108. package/lib/commands/sql/list.js +1 -1
  109. package/lib/commands/sql/pull.js +1 -1
  110. package/lib/commands/sql/push.js +1 -1
  111. package/lib/commands/sql/save.js +1 -1
  112. package/lib/commands/sql/shared.js +1 -1
  113. package/lib/commands/sql/status.js +1 -1
  114. package/lib/commands/sql/validate.js +1 -1
  115. package/lib/config/schema.js +1 -1
  116. package/lib/constant/cdn.js +1 -1
  117. package/lib/constant/cli.js +1 -1
  118. package/lib/constant/defaults.js +1 -1
  119. package/lib/constant/domain.js +1 -1
  120. package/lib/constant/env.js +1 -1
  121. package/lib/constant/output.js +1 -1
  122. package/lib/constant/paths.js +1 -1
  123. package/lib/constant/risk.js +1 -1
  124. package/lib/context.js +1 -1
  125. package/lib/core/alias-resolver.js +1 -1
  126. package/lib/core/api-client.js +1 -1
  127. package/lib/core/bff/config.js +1 -1
  128. package/lib/core/bff/file-system.js +1 -1
  129. package/lib/core/bff/hash.js +1 -1
  130. package/lib/core/bff/lock.js +1 -1
  131. package/lib/core/bff/utils.js +1 -1
  132. package/lib/core/db-resolver.js +1 -1
  133. package/lib/core/page/file-system.js +1 -1
  134. package/lib/core/page/hash.js +1 -1
  135. package/lib/core/page/lock.js +1 -1
  136. package/lib/core/sql-sync/config.js +1 -1
  137. package/lib/core/sql-sync/file-system.js +1 -1
  138. package/lib/core/sql-sync/hash.js +1 -1
  139. package/lib/core/sql-sync/lock.js +1 -1
  140. package/lib/core/sql-sync/utils.js +1 -1
  141. package/lib/core/sql-validator.js +1 -1
  142. package/lib/errors.js +1 -1
  143. package/lib/framework/build-all-flags.js +1 -1
  144. package/lib/framework/flags.js +1 -1
  145. package/lib/framework/help.js +1 -1
  146. package/lib/framework/index.js +1 -1
  147. package/lib/framework/output.js +1 -1
  148. package/lib/framework/response.js +1 -1
  149. package/lib/framework/runner-alias.js +1 -1
  150. package/lib/framework/runner.js +1 -1
  151. package/lib/framework/schema-export.js +1 -1
  152. package/lib/framework/types.js +1 -1
  153. package/lib/generated/build-info.js +1 -1
  154. package/lib/help.js +1 -1
  155. package/lib/skills/main.js +1 -1
  156. package/lib/skills/npx-skills-add.js +1 -1
  157. package/lib/telemetry/cli-command-trace.js +1 -1
  158. package/lib/telemetry/cli-help-trace.js +1 -1
  159. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  160. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  161. package/lib/telemetry/send-cli-trace-log.js +1 -1
  162. package/lib/utils/ai_config.js +1 -1
  163. package/lib/utils/apply-jq-filter.js +1 -1
  164. package/lib/utils/cdn-config.js +1 -1
  165. package/lib/utils/check-sdk-version.js +1 -1
  166. package/lib/utils/cli-version-check.js +1 -1
  167. package/lib/utils/cli-version-policy.js +1 -1
  168. package/lib/utils/config.js +1 -1
  169. package/lib/utils/copy-directory.js +1 -1
  170. package/lib/utils/entity-with-id.js +1 -1
  171. package/lib/utils/file-utils.js +1 -1
  172. package/lib/utils/guides-cdn.js +1 -1
  173. package/lib/utils/http-client.js +1 -1
  174. package/lib/utils/is-non-interactive.js +1 -1
  175. package/lib/utils/logger.js +1 -1
  176. package/lib/utils/platform.js +1 -1
  177. package/lib/utils/rules-cdn.js +1 -1
  178. package/lib/utils/sleep.js +1 -1
  179. package/lib/utils/template-replacer.js +1 -1
  180. package/lib/utils/version.js +1 -1
  181. package/lib/utils/with-active-cookie.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/templates/skill/SKILL.md.tpl +1 -1
@@ -1 +1 @@
1
- const a0_0x107a1c=a0_0x1dd9;function a0_0x182b(){const _0x2c9e70=['生成文档失败:\x20','✓\x20Generated:\x20','Invalid\x20response\x20format\x20(','352301ehdWOq','59493UnxSZY','name','生成文档成功:\x20','2868465jbidfu','.md\x20-\x20','string','api-doc','datasetCode','550oMCxlb','Fetch\x20doc\x20(','/api/node-toolbox/api-doc-generator','308WMEtGC','2903370FUZwKM','message','push','./docs','tableName','5807992yGbPal','join','6paVxki','log','143172PDlmTF','.md','):\x20missing\x20data.markdown\x20field','171056QmixsP','length','utf8','markdown'];a0_0x182b=function(){return _0x2c9e70;};return a0_0x182b();}(function(_0xa71a1c,_0x532772){const _0x3a3695=a0_0x1dd9,_0x2e12f6=_0xa71a1c();while(!![]){try{const _0x52229a=parseInt(_0x3a3695(0x81))/0x1+parseInt(_0x3a3695(0x8e))/0x2+parseInt(_0x3a3695(0x82))/0x3+-parseInt(_0x3a3695(0x73))/0x4+-parseInt(_0x3a3695(0x85))/0x5*(-parseInt(_0x3a3695(0x75))/0x6)+parseInt(_0x3a3695(0x8d))/0x7*(-parseInt(_0x3a3695(0x7a))/0x8)+-parseInt(_0x3a3695(0x77))/0x9*(-parseInt(_0x3a3695(0x8a))/0xa);if(_0x52229a===_0x532772)break;else _0x2e12f6['push'](_0x2e12f6['shift']());}catch(_0x38d9fa){_0x2e12f6['push'](_0x2e12f6['shift']());}}}(a0_0x182b,0xd6c1c));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x5d2a8c from'node:path';function a0_0x1dd9(_0x264cda,_0x4c1f1a){_0x264cda=_0x264cda-0x70;const _0x182b9c=a0_0x182b();let _0x1dd91d=_0x182b9c[_0x264cda];return _0x1dd91d;}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x36a997){const _0x22d075=a0_0x1dd9,{appCode:_0x23f583,cookie:_0x161889,datasetCode:_0x135da4,datasetId:_0x1909b5,extraParams:_0x1cb9ae}=_0x36a997,_0x19f495=getApiDomain()+_0x22d075(0x8c),_0xfe1c03=await platformFetch(_0x19f495,{'method':'POST','body':{'appCode':_0x23f583,'datasetCode':_0x135da4,'datasetId':_0x1909b5,..._0x1cb9ae||{}},'cookie':_0x161889,'label':_0x22d075(0x8b)+_0x135da4+')'});if(!_0xfe1c03||typeof _0xfe1c03[_0x22d075(0x7d)]!==_0x22d075(0x87))throw new Error(_0x22d075(0x80)+_0x135da4+_0x22d075(0x79));return _0xfe1c03['markdown'];}function delay(_0x5d7fa9){return new Promise(_0x598e73=>setTimeout(_0x598e73,_0x5d7fa9));}export async function generateDatasetDocs(_0x2b1547,_0x4b62a6,_0x55f50b,_0x27a4f2=a0_0x107a1c(0x71),_0x490e3b,_0x2bb297){const _0x24a16a=a0_0x107a1c;mkdirSync(_0x27a4f2,{'recursive':!![]});const _0x58fc61=[],_0x3fc694=_0x2b1547[_0x24a16a(0x7b)];console[_0x24a16a(0x76)]('\x0a'+_0x3fc694+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x264ae0=0x0;_0x264ae0<_0x2b1547[_0x24a16a(0x7b)];_0x264ae0++){const _0x5412b8=_0x2b1547[_0x264ae0],_0x56af9e=_0x264ae0+0x1,_0x28822e=_0x5412b8[_0x24a16a(0x72)];try{console[_0x24a16a(0x76)]('['+_0x56af9e+'/'+_0x3fc694+']\x20Generating:\x20'+_0x28822e+'.md\x20('+_0x5412b8[_0x24a16a(0x83)]+')');if(_0x490e3b)_0x490e3b(_0x56af9e,_0x3fc694,_0x28822e);const _0x4ae6b2=await fetchDatasetDoc({'appCode':_0x4b62a6,'cookie':_0x55f50b,'datasetCode':_0x5412b8[_0x24a16a(0x89)],'datasetId':_0x5412b8['id'],'enableAI':![],'extraParams':_0x2bb297}),_0x1a097c=a0_0x5d2a8c[_0x24a16a(0x74)](_0x27a4f2,_0x28822e+_0x24a16a(0x78));writeFileSync(_0x1a097c,_0x4ae6b2,{'encoding':_0x24a16a(0x7c)}),console[_0x24a16a(0x76)](_0x24a16a(0x7f)+_0x28822e+'.md'),logger['success'](_0x24a16a(0x88),_0x24a16a(0x84)+_0x28822e,undefined,{'datasetCode':_0x5412b8[_0x24a16a(0x89)],'datasetName':_0x5412b8[_0x24a16a(0x83)],'filePath':_0x1a097c,'progress':_0x56af9e+'/'+_0x3fc694}),_0x58fc61[_0x24a16a(0x70)]({'datasetCode':_0x5412b8[_0x24a16a(0x89)],'datasetName':_0x5412b8['name'],'filePath':_0x1a097c,'success':!![]});if(_0x56af9e<_0x3fc694)await delay(0x1388);}catch(_0x590357){const _0x217210=_0x590357 instanceof Error?_0x590357[_0x24a16a(0x8f)]:String(_0x590357);console[_0x24a16a(0x76)]('✗\x20Failed:\x20'+_0x28822e+_0x24a16a(0x86)+_0x217210),logger['error'](_0x24a16a(0x88),_0x24a16a(0x7e)+_0x5412b8[_0x24a16a(0x89)],{'datasetCode':_0x5412b8[_0x24a16a(0x89)],'datasetName':_0x5412b8['name'],'error':_0x217210,'progress':_0x56af9e+'/'+_0x3fc694}),_0x58fc61['push']({'datasetCode':_0x5412b8[_0x24a16a(0x89)],'datasetName':_0x5412b8[_0x24a16a(0x83)],'filePath':'','success':![],'error':_0x217210}),_0x56af9e<_0x3fc694&&(console[_0x24a16a(0x76)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x58fc61;}
1
+ const a0_0x2c11ae=a0_0x3da4;(function(_0x445e13,_0x51b3c8){const _0x2b259e=a0_0x3da4,_0x185e8f=_0x445e13();while(!![]){try{const _0xc86fed=parseInt(_0x2b259e(0x1f7))/0x1*(parseInt(_0x2b259e(0x1ff))/0x2)+-parseInt(_0x2b259e(0x1ec))/0x3+-parseInt(_0x2b259e(0x20b))/0x4*(parseInt(_0x2b259e(0x1f3))/0x5)+-parseInt(_0x2b259e(0x1f5))/0x6+parseInt(_0x2b259e(0x1fd))/0x7*(-parseInt(_0x2b259e(0x20a))/0x8)+-parseInt(_0x2b259e(0x209))/0x9*(-parseInt(_0x2b259e(0x202))/0xa)+parseInt(_0x2b259e(0x1f0))/0xb;if(_0xc86fed===_0x51b3c8)break;else _0x185e8f['push'](_0x185e8f['shift']());}catch(_0x1c03b5){_0x185e8f['push'](_0x185e8f['shift']());}}}(a0_0x1fea,0x5f1d5));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x2195dd from'node:path';function a0_0x1fea(){const _0x1ee887=['join','3148644XdSXAx','):\x20missing\x20data.markdown\x20field','20OESWsN','POST','Invalid\x20response\x20format\x20(','name','push','length','28uIjbtk','string','3072UpDVGT','/api/node-toolbox/api-doc-generator','.md\x20(','530NFPLhn','./docs','api-doc','.md\x20-\x20','markdown','.md','✗\x20Failed:\x20','16839pLjgLm','1202504MbfBBi','36oDgJbd','✓\x20Generated:\x20','1188786gYZcyH','datasetCode','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','error','28111677QKptjX','log','生成文档成功:\x20','429785dTszPb'];a0_0x1fea=function(){return _0x1ee887;};return a0_0x1fea();}import{getApiDomain}from'../constant/domain.js';function a0_0x3da4(_0x3a49ad,_0x236f56){_0x3a49ad=_0x3a49ad-0x1eb;const _0x1fea31=a0_0x1fea();let _0x3da4f7=_0x1fea31[_0x3a49ad];return _0x3da4f7;}import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x3ba8c8){const _0x9ba2da=a0_0x3da4,{appCode:_0x1fa9d6,cookie:_0x5dbfec,datasetCode:_0x5dbe6b,datasetId:_0x2e24be,extraParams:_0x584b0b}=_0x3ba8c8,_0x3d6eac=getApiDomain()+_0x9ba2da(0x200),_0x104ba6=await platformFetch(_0x3d6eac,{'method':_0x9ba2da(0x1f8),'body':{'appCode':_0x1fa9d6,'datasetCode':_0x5dbe6b,'datasetId':_0x2e24be,..._0x584b0b||{}},'cookie':_0x5dbfec,'label':'Fetch\x20doc\x20('+_0x5dbe6b+')'});if(!_0x104ba6||typeof _0x104ba6[_0x9ba2da(0x206)]!==_0x9ba2da(0x1fe))throw new Error(_0x9ba2da(0x1f9)+_0x5dbe6b+_0x9ba2da(0x1f6));return _0x104ba6[_0x9ba2da(0x206)];}function delay(_0x2a7887){return new Promise(_0x49d993=>setTimeout(_0x49d993,_0x2a7887));}export async function generateDatasetDocs(_0x23b3aa,_0x22c0b6,_0x5a02a9,_0x4e5897=a0_0x2c11ae(0x203),_0x1c29ec,_0x500466){const _0x3f2eae=a0_0x2c11ae;mkdirSync(_0x4e5897,{'recursive':!![]});const _0x250152=[],_0x447024=_0x23b3aa[_0x3f2eae(0x1fc)];console[_0x3f2eae(0x1f1)]('\x0a'+_0x447024+_0x3f2eae(0x1ee));for(let _0x2b7963=0x0;_0x2b7963<_0x23b3aa[_0x3f2eae(0x1fc)];_0x2b7963++){const _0x142bdf=_0x23b3aa[_0x2b7963],_0x4245c3=_0x2b7963+0x1,_0x4d14b0=_0x142bdf['tableName'];try{console[_0x3f2eae(0x1f1)]('['+_0x4245c3+'/'+_0x447024+']\x20Generating:\x20'+_0x4d14b0+_0x3f2eae(0x201)+_0x142bdf['name']+')');if(_0x1c29ec)_0x1c29ec(_0x4245c3,_0x447024,_0x4d14b0);const _0x59cbb6=await fetchDatasetDoc({'appCode':_0x22c0b6,'cookie':_0x5a02a9,'datasetCode':_0x142bdf['datasetCode'],'datasetId':_0x142bdf['id'],'enableAI':![],'extraParams':_0x500466}),_0x54a3cd=a0_0x2195dd[_0x3f2eae(0x1f4)](_0x4e5897,_0x4d14b0+'.md');writeFileSync(_0x54a3cd,_0x59cbb6,{'encoding':'utf8'}),console['log'](_0x3f2eae(0x1eb)+_0x4d14b0+_0x3f2eae(0x207)),logger['success'](_0x3f2eae(0x204),_0x3f2eae(0x1f2)+_0x4d14b0,undefined,{'datasetCode':_0x142bdf[_0x3f2eae(0x1ed)],'datasetName':_0x142bdf[_0x3f2eae(0x1fa)],'filePath':_0x54a3cd,'progress':_0x4245c3+'/'+_0x447024}),_0x250152[_0x3f2eae(0x1fb)]({'datasetCode':_0x142bdf[_0x3f2eae(0x1ed)],'datasetName':_0x142bdf['name'],'filePath':_0x54a3cd,'success':!![]});if(_0x4245c3<_0x447024)await delay(0x1388);}catch(_0x5f59c0){const _0x39acd5=_0x5f59c0 instanceof Error?_0x5f59c0['message']:String(_0x5f59c0);console[_0x3f2eae(0x1f1)](_0x3f2eae(0x208)+_0x4d14b0+_0x3f2eae(0x205)+_0x39acd5),logger[_0x3f2eae(0x1ef)](_0x3f2eae(0x204),'生成文档失败:\x20'+_0x142bdf[_0x3f2eae(0x1ed)],{'datasetCode':_0x142bdf['datasetCode'],'datasetName':_0x142bdf[_0x3f2eae(0x1fa)],'error':_0x39acd5,'progress':_0x4245c3+'/'+_0x447024}),_0x250152[_0x3f2eae(0x1fb)]({'datasetCode':_0x142bdf[_0x3f2eae(0x1ed)],'datasetName':_0x142bdf['name'],'filePath':'','success':![],'error':_0x39acd5}),_0x4245c3<_0x447024&&(console[_0x3f2eae(0x1f1)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x250152;}
@@ -1 +1 @@
1
- (function(_0x4421d8,_0x41675f){const _0x3b8e7b=a1_0x818c,_0x19e46b=_0x4421d8();while(!![]){try{const _0x539808=-parseInt(_0x3b8e7b(0x156))/0x1+parseInt(_0x3b8e7b(0x14d))/0x2*(-parseInt(_0x3b8e7b(0x151))/0x3)+-parseInt(_0x3b8e7b(0x15b))/0x4+parseInt(_0x3b8e7b(0x154))/0x5+-parseInt(_0x3b8e7b(0x152))/0x6*(-parseInt(_0x3b8e7b(0x14e))/0x7)+parseInt(_0x3b8e7b(0x14f))/0x8*(parseInt(_0x3b8e7b(0x155))/0x9)+-parseInt(_0x3b8e7b(0x14c))/0xa;if(_0x539808===_0x41675f)break;else _0x19e46b['push'](_0x19e46b['shift']());}catch(_0x55f9bc){_0x19e46b['push'](_0x19e46b['shift']());}}}(a1_0x6eef,0x3b376));import{getApiDomain}from'../constant/domain.js';function a1_0x6eef(){const _0x5eb04d=['info','&otype=array','1641860veJQtG','299706YHatkp','7147qYwetH','535776FRedgN','Fetch\x20datasets','3UOdoTG','894olvYLq','fetch-model-list','1968565GqJVTW','36WgXuVE','74730wFWSBF','trim','map','configArray','replace','729644EbtoSm','length','name'];a1_0x6eef=function(){return _0x5eb04d;};return a1_0x6eef();}function a1_0x818c(_0x3660b5,_0x39b6ee){_0x3660b5=_0x3660b5-0x148;const _0x6eefe0=a1_0x6eef();let _0x818c1a=_0x6eefe0[_0x3660b5];return _0x818c1a;}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x5bfff5){const _0x16238e=a1_0x818c;return _0x5bfff5[_0x16238e(0x15a)](/[\r\n]+/g,'\x20')[_0x16238e(0x157)]();}function cleanDatasetName(_0x4ee217){const _0xd3c90c=a1_0x818c;if(!_0x4ee217[_0xd3c90c(0x149)])return _0x4ee217;return{..._0x4ee217,'name':cleanNewlines(_0x4ee217['name'])};}export async function fetchModelList(_0xa6c34f,_0x4cb99b){const _0xac7559=a1_0x818c,_0x54cbda=getEnv(),_0x29886e=getApiDomain()+'/api/node-toolbox/dataset/model-list?appcode='+_0xa6c34f+_0xac7559(0x14b);logger[_0xac7559(0x14a)](_0xac7559(0x153),'正在从服务器拉取模型列表...\x20(环境:\x20'+_0x54cbda+')',{'apiUrl':_0x29886e});const _0x5c6d89=await platformFetch(_0x29886e,{'cookie':_0x4cb99b,'label':_0xac7559(0x150)}),_0x3f8d8e=(_0x5c6d89[_0xac7559(0x159)]??[])[_0xac7559(0x158)](cleanDatasetName);return{'configArray':_0x3f8d8e,'count':_0x3f8d8e[_0xac7559(0x148)]};}
1
+ function a1_0x1270(_0x30a5a5,_0x24edc6){_0x30a5a5=_0x30a5a5-0x1d2;const _0x4dd60d=a1_0x4dd6();let _0x12709d=_0x4dd60d[_0x30a5a5];return _0x12709d;}(function(_0xefe189,_0x257813){const _0x5d8a8f=a1_0x1270,_0x407a5f=_0xefe189();while(!![]){try{const _0x11f447=parseInt(_0x5d8a8f(0x1d8))/0x1+-parseInt(_0x5d8a8f(0x1db))/0x2+-parseInt(_0x5d8a8f(0x1d5))/0x3*(parseInt(_0x5d8a8f(0x1e0))/0x4)+parseInt(_0x5d8a8f(0x1de))/0x5+-parseInt(_0x5d8a8f(0x1d4))/0x6+-parseInt(_0x5d8a8f(0x1e2))/0x7+parseInt(_0x5d8a8f(0x1d9))/0x8*(parseInt(_0x5d8a8f(0x1d3))/0x9);if(_0x11f447===_0x257813)break;else _0x407a5f['push'](_0x407a5f['shift']());}catch(_0x4ef657){_0x407a5f['push'](_0x407a5f['shift']());}}}(a1_0x4dd6,0xa3218));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x4dd6(){const _0x215cc3=['476790lPPThH','36680nGXRYP','fetch-model-list','2525696gYFoYJ','name','正在从服务器拉取模型列表...\x20(环境:\x20','4484250DmsnSK','replace','4tyrcjU','&otype=array','948423mJlkhW','info','trim','3663JbiLPU','1924338lCRUlG','2557473bGvKYk','length','/api/node-toolbox/dataset/model-list?appcode='];a1_0x4dd6=function(){return _0x215cc3;};return a1_0x4dd6();}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x249c19){const _0x240de2=a1_0x1270;return _0x249c19[_0x240de2(0x1df)](/[\r\n]+/g,'\x20')[_0x240de2(0x1d2)]();}function cleanDatasetName(_0x57a854){const _0x5a47a0=a1_0x1270;if(!_0x57a854[_0x5a47a0(0x1dc)])return _0x57a854;return{..._0x57a854,'name':cleanNewlines(_0x57a854['name'])};}export async function fetchModelList(_0x154212,_0x54d56a){const _0x410b2b=a1_0x1270,_0x59c5c9=getEnv(),_0x25a4f1=getApiDomain()+_0x410b2b(0x1d7)+_0x154212+_0x410b2b(0x1e1);logger[_0x410b2b(0x1e3)](_0x410b2b(0x1da),_0x410b2b(0x1dd)+_0x59c5c9+')',{'apiUrl':_0x25a4f1});const _0x535ac5=await platformFetch(_0x25a4f1,{'cookie':_0x54d56a,'label':'Fetch\x20datasets'}),_0x4b440a=(_0x535ac5['configArray']??[])['map'](cleanDatasetName);return{'configArray':_0x4b440a,'count':_0x4b440a[_0x410b2b(0x1d6)]};}
@@ -1 +1 @@
1
- (function(_0x1900ff,_0x2644a3){const _0x457458=a2_0xc619,_0x2af89b=_0x1900ff();while(!![]){try{const _0x4ed820=-parseInt(_0x457458(0x133))/0x1*(parseInt(_0x457458(0x14d))/0x2)+parseInt(_0x457458(0x128))/0x3*(parseInt(_0x457458(0x13a))/0x4)+-parseInt(_0x457458(0x146))/0x5*(parseInt(_0x457458(0x144))/0x6)+parseInt(_0x457458(0x13c))/0x7*(parseInt(_0x457458(0x12b))/0x8)+-parseInt(_0x457458(0x14a))/0x9+parseInt(_0x457458(0x148))/0xa*(-parseInt(_0x457458(0x137))/0xb)+parseInt(_0x457458(0x134))/0xc*(parseInt(_0x457458(0x143))/0xd);if(_0x4ed820===_0x2644a3)break;else _0x2af89b['push'](_0x2af89b['shift']());}catch(_0x42b1d4){_0x2af89b['push'](_0x2af89b['shift']());}}}(a2_0x5e17,0x57f2c));import a2_0x5ca42b from'prettier';function a2_0xc619(_0x32a9ea,_0x4cf349){_0x32a9ea=_0x32a9ea-0x126;const _0x5e179c=a2_0x5e17();let _0xc619d1=_0x5e179c[_0x32a9ea];return _0xc619d1;}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x146c99 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(_0x4b4e5a,_0x401ff9,_0x129bc,_0x57a384,_0x1ae169,_0x3bfd87,_0xa8aee){const _0x519af8=a2_0xc619;if(!_0x129bc)throw new Error(_0x519af8(0x14c)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x2241fd=_0x57a384&&!_0xa8aee,_0x22f4db=_0xa8aee||_0x129bc,_0x2709a1=_0x2241fd?_0x519af8(0x13d):'\x22'+_0x22f4db+'\x22',_0x366f31=!isProduction(_0x1ae169);let _0x292765;if(_0x2241fd)_0x366f31?_0x292765='{\x20apiConfigName:\x20'+_0x2709a1+_0x519af8(0x13e)+_0x1ae169+'\x22\x20}':_0x292765='';else{const _0x4b6c05=_0x366f31?_0x519af8(0x13e)+_0x1ae169+'\x22':'';_0x292765=_0x519af8(0x149)+_0x22f4db+'\x22'+_0x4b6c05+'\x20}';}const _0x29e75a=_0x401ff9?_0x401ff9+_0x519af8(0x132):_0x519af8(0x138),_0x39302a=_0x401ff9?_0x401ff9+_0x519af8(0x141):'client',_0xc9c698=_0x401ff9&&!/^app-[a-f0-9]+$/i['test'](_0x401ff9)?_0x401ff9['replace'](/-/g,'_')[_0x519af8(0x140)]():_0x519af8(0x126),_0xbb7050=[];_0x4b4e5a[_0x519af8(0x129)](_0x50af4b=>{const _0x301922=_0x519af8;_0xbb7050[_0x301922(0x14f)]({'datasetCode':_0x50af4b[_0x301922(0x12d)],'tableName':_0x50af4b[_0x301922(0x135)],'name':_0x50af4b[_0x301922(0x145)]||'','alias':_0x50af4b['alias']||_0x50af4b[_0x301922(0x13f)]});});const _0x5293af=fileURLToPath(import.meta.url),_0x27fae3=a2_0x146c99[_0x519af8(0x136)](a2_0x146c99[_0x519af8(0x150)](_0x5293af),_0x519af8(0x130)),_0x254d61=a2_0x146c99[_0x519af8(0x14e)](_0x27fae3,_0x519af8(0x12a)),_0x2f92bc=a2_0x146c99[_0x519af8(0x14e)](_0x254d61,_0x519af8(0x131)),_0xe171da=a2_0x146c99[_0x519af8(0x14e)](_0x254d61,_0x519af8(0x127)),_0x8a88d9=_0x3bfd87;mkdirSync(_0x8a88d9,{'recursive':!![]});const _0x244580=_0xbb7050[0x0]?.['alias'],_0x412b42=readFileSync(_0x2f92bc,_0x519af8(0x12e)),_0x234545=TemplateReplacer[_0x519af8(0x147)](_0x412b42,_0x129bc,_0xbb7050,_0x244580,_0x29e75a,_0x2709a1,undefined,_0xc9c698),_0x3082b7=await a2_0x5ca42b[_0x519af8(0x13b)](_0x234545,{'parser':_0x519af8(0x142)}),_0x5abb71=a2_0x146c99[_0x519af8(0x14e)](_0x8a88d9,_0x29e75a+_0x519af8(0x139));writeFileSync(_0x5abb71,_0x3082b7,{'encoding':_0x519af8(0x12e)});const _0x29c31f=readFileSync(_0xe171da,'utf8'),_0x7cbd37=TemplateReplacer[_0x519af8(0x147)](_0x29c31f,_0x129bc,_0xbb7050,_0x244580,_0x29e75a,_0x2709a1,_0x292765,_0xc9c698),_0x54cff4=await a2_0x5ca42b[_0x519af8(0x13b)](_0x7cbd37,{'parser':'typescript'}),_0x10df46=a2_0x146c99[_0x519af8(0x14e)](_0x8a88d9,_0x39302a+_0x519af8(0x139));writeFileSync(_0x10df46,_0x54cff4,{'encoding':_0x519af8(0x12e)});const _0x5a49c3=_0xbb7050[_0x519af8(0x14b)];return logger[_0x519af8(0x12c)]('init-api',_0x519af8(0x12f),undefined,{'apiFile':_0x5abb71,'clientFile':_0x10df46,'modelCount':_0x5a49c3,'configName':_0x2709a1}),{'modelCount':_0x5a49c3,'apiFilePath':_0x5abb71,'clientFilePath':_0x10df46,'configName':_0x2709a1};}function a2_0x5e17(){const _0x5a324f=['3067zUVTOY','12suIxzu','tableName','resolve','2140391qHBStK','api','.ts','3788faXRhY','format','5789GJYhrK','CONFIG_NAMES.DEFAULT',',\x20env:\x20\x22','key','toUpperCase','-client','typescript','26053638QflMqi','78mTgkXS','name','219895vbEjYg','replaceApiContent','10KkqClH','{\x20apiConfigName:\x20\x22','6401664DqUBrG','length','Please\x20configure\x20app\x20code\x20first\x20via\x20`','326gIYtSc','join','push','dirname','LOVRABET','client.ts.tpl','381LcatuC','forEach','templates/generate-api','2064tUBwti','success','datasetCode','utf8','API\x20文件生成成功!','../..','api.ts.tpl','-api'];a2_0x5e17=function(){return _0x5a324f;};return a2_0x5e17();}
1
+ (function(_0x45e33b,_0x1dd38e){const _0x4eff2e=a2_0x1f0f,_0x157795=_0x45e33b();while(!![]){try{const _0x15a13d=-parseInt(_0x4eff2e(0x185))/0x1+-parseInt(_0x4eff2e(0x188))/0x2+parseInt(_0x4eff2e(0x190))/0x3*(parseInt(_0x4eff2e(0x18d))/0x4)+-parseInt(_0x4eff2e(0x18e))/0x5*(parseInt(_0x4eff2e(0x186))/0x6)+-parseInt(_0x4eff2e(0x182))/0x7*(parseInt(_0x4eff2e(0x184))/0x8)+-parseInt(_0x4eff2e(0x1a2))/0x9+parseInt(_0x4eff2e(0x191))/0xa;if(_0x15a13d===_0x1dd38e)break;else _0x157795['push'](_0x157795['shift']());}catch(_0x35dafd){_0x157795['push'](_0x157795['shift']());}}}(a2_0xef04,0xdbdbb));import a2_0x4bd24e from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';function a2_0x1f0f(_0x2831d0,_0x4aa387){_0x2831d0=_0x2831d0-0x182;const _0xef04f5=a2_0xef04();let _0x1f0feb=_0xef04f5[_0x2831d0];return _0x1f0feb;}import a2_0x3c5ada 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(_0x332eaa,_0x4b1a58,_0x13c6aa,_0x4469c2,_0x38f239,_0x2a0c62,_0x17768c){const _0x2fcbe1=a2_0x1f0f;if(!_0x13c6aa)throw new Error(_0x2fcbe1(0x193)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x5f059e=_0x4469c2&&!_0x17768c,_0x1d237a=_0x17768c||_0x13c6aa,_0x5d0ad0=_0x5f059e?_0x2fcbe1(0x195):'\x22'+_0x1d237a+'\x22',_0x3ba60c=!isProduction(_0x38f239);let _0x1bc62c;if(_0x5f059e)_0x3ba60c?_0x1bc62c='{\x20apiConfigName:\x20'+_0x5d0ad0+_0x2fcbe1(0x194)+_0x38f239+_0x2fcbe1(0x197):_0x1bc62c='';else{const _0x153bc9=_0x3ba60c?_0x2fcbe1(0x194)+_0x38f239+'\x22':'';_0x1bc62c=_0x2fcbe1(0x1a6)+_0x1d237a+'\x22'+_0x153bc9+'\x20}';}const _0x1937ab=_0x4b1a58?_0x4b1a58+_0x2fcbe1(0x1a3):'api',_0xbd4f34=_0x4b1a58?_0x4b1a58+_0x2fcbe1(0x1a8):_0x2fcbe1(0x189),_0x43c316=_0x4b1a58&&!/^app-[a-f0-9]+$/i[_0x2fcbe1(0x18c)](_0x4b1a58)?_0x4b1a58['replace'](/-/g,'_')[_0x2fcbe1(0x1a1)]():_0x2fcbe1(0x19f),_0x4a8378=[];_0x332eaa['forEach'](_0x2c1900=>{const _0x4eb98c=_0x2fcbe1;_0x4a8378[_0x4eb98c(0x183)]({'datasetCode':_0x2c1900[_0x4eb98c(0x1a5)],'tableName':_0x2c1900[_0x4eb98c(0x18f)],'name':_0x2c1900[_0x4eb98c(0x1a0)]||'','alias':_0x2c1900[_0x4eb98c(0x19d)]||_0x2c1900[_0x4eb98c(0x192)]});});const _0x2c2a6a=fileURLToPath(import.meta.url),_0xa9b863=a2_0x3c5ada['resolve'](a2_0x3c5ada['dirname'](_0x2c2a6a),'../..'),_0x330220=a2_0x3c5ada[_0x2fcbe1(0x187)](_0xa9b863,_0x2fcbe1(0x1a4)),_0x8f75e5=a2_0x3c5ada[_0x2fcbe1(0x187)](_0x330220,_0x2fcbe1(0x18b)),_0x483ff5=a2_0x3c5ada[_0x2fcbe1(0x187)](_0x330220,_0x2fcbe1(0x19b)),_0x4b0274=_0x2a0c62;mkdirSync(_0x4b0274,{'recursive':!![]});const _0x1296d7=_0x4a8378[0x0]?.[_0x2fcbe1(0x19d)],_0x5a4e21=readFileSync(_0x8f75e5,_0x2fcbe1(0x196)),_0x430cf2=TemplateReplacer[_0x2fcbe1(0x1a7)](_0x5a4e21,_0x13c6aa,_0x4a8378,_0x1296d7,_0x1937ab,_0x5d0ad0,undefined,_0x43c316),_0x2bce90=await a2_0x4bd24e[_0x2fcbe1(0x198)](_0x430cf2,{'parser':_0x2fcbe1(0x18a)}),_0x39f7fc=a2_0x3c5ada[_0x2fcbe1(0x187)](_0x4b0274,_0x1937ab+_0x2fcbe1(0x199));writeFileSync(_0x39f7fc,_0x2bce90,{'encoding':_0x2fcbe1(0x196)});const _0x5da13a=readFileSync(_0x483ff5,_0x2fcbe1(0x196)),_0xdc999f=TemplateReplacer[_0x2fcbe1(0x1a7)](_0x5da13a,_0x13c6aa,_0x4a8378,_0x1296d7,_0x1937ab,_0x5d0ad0,_0x1bc62c,_0x43c316),_0x52cb9d=await a2_0x4bd24e['format'](_0xdc999f,{'parser':_0x2fcbe1(0x18a)}),_0x53b800=a2_0x3c5ada['join'](_0x4b0274,_0xbd4f34+_0x2fcbe1(0x199));writeFileSync(_0x53b800,_0x52cb9d,{'encoding':_0x2fcbe1(0x196)});const _0x458ae9=_0x4a8378['length'];return logger[_0x2fcbe1(0x19a)](_0x2fcbe1(0x19c),_0x2fcbe1(0x19e),undefined,{'apiFile':_0x39f7fc,'clientFile':_0x53b800,'modelCount':_0x458ae9,'configName':_0x5d0ad0}),{'modelCount':_0x458ae9,'apiFilePath':_0x39f7fc,'clientFilePath':_0x53b800,'configName':_0x5d0ad0};}function a2_0xef04(){const _0x20829c=['format','.ts','success','client.ts.tpl','init-api','alias','API\x20文件生成成功!','LOVRABET','name','toUpperCase','2937186OOcpVx','-api','templates/generate-api','datasetCode','{\x20apiConfigName:\x20\x22','replaceApiContent','-client','1234023WMKZhP','push','24Gvybih','718278rMKcHJ','6ozBCHk','join','1006036gqYAwQ','client','typescript','api.ts.tpl','test','4ObQzGx','5018845TYMaXG','tableName','2348886sbQikb','31978630EhIWAg','key','Please\x20configure\x20app\x20code\x20first\x20via\x20`',',\x20env:\x20\x22','CONFIG_NAMES.DEFAULT','utf8','\x22\x20}'];a2_0xef04=function(){return _0x20829c;};return a2_0xef04();}
@@ -1 +1 @@
1
- (function(_0x847492,_0x5ccb43){const _0x147cbc=a3_0x38c9,_0x55041f=_0x847492();while(!![]){try{const _0x29e682=parseInt(_0x147cbc(0x105))/0x1+parseInt(_0x147cbc(0x102))/0x2+-parseInt(_0x147cbc(0x107))/0x3+parseInt(_0x147cbc(0x100))/0x4+parseInt(_0x147cbc(0x106))/0x5+parseInt(_0x147cbc(0xfe))/0x6+-parseInt(_0x147cbc(0xff))/0x7;if(_0x29e682===_0x5ccb43)break;else _0x55041f['push'](_0x55041f['shift']());}catch(_0xfd589e){_0x55041f['push'](_0x55041f['shift']());}}}(a3_0x2e8d,0x5dac4));function a3_0x2e8d(){const _0x594676=['log','44221wqjWYW','3834095AlLiCf','878805MQptIL','stop','1465800Ocupxk','9290911svudqx','2293480xltFMX','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','750364nQTvLM','start'];a3_0x2e8d=function(){return _0x594676;};return a3_0x2e8d();}import{getIsSessionValid}from'../auth/is-session-valid.js';function a3_0x38c9(_0x347fb7,_0x35cb68){_0x347fb7=_0x347fb7-0xfd;const _0x2e8d46=a3_0x2e8d();let _0x38c998=_0x2e8d46[_0x347fb7];return _0x38c998;}import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a3_0x5f3e0d from'ora';export async function runAuthServer(){const _0x3d8159=a3_0x38c9,_0x5507dd=await getIsSessionValid();if(_0x5507dd){console[_0x3d8159(0x104)]('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}const _0x42eb24=await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x42eb24)return;const _0x41a836=a3_0x5f3e0d(_0x3d8159(0x101))[_0x3d8159(0x103)](),_0xebfc53=await authServer({'silent':!![]});_0x41a836[_0x3d8159(0xfd)](),_0xebfc53?console[_0x3d8159(0x104)]('*\x20Login\x20successful!'):console[_0x3d8159(0x104)]('!\x20Login\x20failed.');}
1
+ (function(_0x5ea9d3,_0x32ec89){const _0xbb12e=a3_0x18ec,_0x3ce868=_0x5ea9d3();while(!![]){try{const _0x5909a5=-parseInt(_0xbb12e(0x19b))/0x1+parseInt(_0xbb12e(0x19e))/0x2*(-parseInt(_0xbb12e(0x1a1))/0x3)+parseInt(_0xbb12e(0x199))/0x4*(parseInt(_0xbb12e(0x19d))/0x5)+-parseInt(_0xbb12e(0x19c))/0x6*(-parseInt(_0xbb12e(0x198))/0x7)+-parseInt(_0xbb12e(0x195))/0x8+-parseInt(_0xbb12e(0x1a4))/0x9+parseInt(_0xbb12e(0x19f))/0xa;if(_0x5909a5===_0x32ec89)break;else _0x3ce868['push'](_0x3ce868['shift']());}catch(_0x49df1d){_0x3ce868['push'](_0x3ce868['shift']());}}}(a3_0x5380,0x46879));function a3_0x18ec(_0x1e04ac,_0x5f200d){_0x1e04ac=_0x1e04ac-0x195;const _0x538054=a3_0x5380();let _0x18ecee=_0x538054[_0x1e04ac];return _0x18ecee;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';function a3_0x5380(){const _0x12bd6b=['107733NaybDW','!\x20Login\x20failed.','stop','1962117DtpdgM','No\x20valid\x20session.\x20Login\x20now?','*\x20Login\x20successful!','150048INXUMV','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','log','15176IRcnbh','4aDLvIN','start','77949iCXYVm','1386VzlibZ','493975VGqBsG','6KvMblV','1117370Rfhsom','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.'];a3_0x5380=function(){return _0x12bd6b;};return a3_0x5380();}import{confirm}from'@inquirer/prompts';import a3_0x141660 from'ora';export async function runAuthServer(){const _0x3f82c0=a3_0x18ec,_0x1de4e2=await getIsSessionValid();if(_0x1de4e2){console[_0x3f82c0(0x197)](_0x3f82c0(0x1a0));return;}const _0x1e00e7=await confirm({'message':_0x3f82c0(0x1a5),'default':!![]});if(!_0x1e00e7)return;const _0x4343c4=a3_0x141660(_0x3f82c0(0x196))[_0x3f82c0(0x19a)](),_0x47a1d8=await authServer({'silent':!![]});_0x4343c4[_0x3f82c0(0x1a3)](),_0x47a1d8?console[_0x3f82c0(0x197)](_0x3f82c0(0x1a6)):console['log'](_0x3f82c0(0x1a2));}
@@ -1 +1 @@
1
- function a4_0x2709(_0x257eee,_0x136ca5){_0x257eee=_0x257eee-0xf5;const _0xe060c9=a4_0xe060();let _0x270946=_0xe060c9[_0x257eee];return _0x270946;}const a4_0x3be049=a4_0x2709;(function(_0x3b1889,_0x2d30ee){const _0x16d4c2=a4_0x2709,_0x1ad9d8=_0x3b1889();while(!![]){try{const _0x99258f=parseInt(_0x16d4c2(0x106))/0x1+parseInt(_0x16d4c2(0x11c))/0x2*(parseInt(_0x16d4c2(0x119))/0x3)+-parseInt(_0x16d4c2(0xfc))/0x4*(parseInt(_0x16d4c2(0x104))/0x5)+-parseInt(_0x16d4c2(0x11a))/0x6+parseInt(_0x16d4c2(0xff))/0x7*(-parseInt(_0x16d4c2(0x109))/0x8)+-parseInt(_0x16d4c2(0xf7))/0x9+parseInt(_0x16d4c2(0x115))/0xa;if(_0x99258f===_0x2d30ee)break;else _0x1ad9d8['push'](_0x1ad9d8['shift']());}catch(_0x1b4341){_0x1ad9d8['push'](_0x1ad9d8['shift']());}}}(a4_0xe060,0xe4926));import{writeFileSync}from'node:fs';import a4_0x30f800 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0x1ecea7){const _0x28460e=a4_0x2709,_0x1b473a=_0x1ecea7?.[_0x28460e(0x10d)]||![];if(await getIsSessionValid())return!![];const _0x32b2a8=await(await fetch(_0x28460e(0xf5)))['json']();return new Promise(async(_0x39178a,_0x18b8d1)=>{const _0x37637f=_0x28460e;let _0xa56830=0x0;const _0x3475db=a4_0x30f800[_0x37637f(0x110)](_0x32b2a8,async(_0x5e6eeb,_0x37adbd)=>{const _0xc9766a=_0x37637f,_0x478255=getUserDomain(),_0x3de447=_0x5e6eeb['headers']['cookie']||'',_0x5a028f=await fetch(_0x478255+_0xc9766a(0x118),{'headers':{'cookie':_0x3de447}})['then'](_0x57b035=>_0x57b035[_0xc9766a(0xfd)]()),_0x332530=_0x5a028f&&_0x5a028f[_0xc9766a(0x10f)]&&_0x5a028f[_0xc9766a(0x10e)];if(_0x332530){writeFileSync(cookieFile,_0x3de447,_0xc9766a(0x10b)),_0x39178a(!![]);const _0x18467f=buildLoginSuccessHtml();_0x37adbd['writeHead'](0xc8,{'Content-Type':_0xc9766a(0xfb)}),_0x37adbd[_0xc9766a(0x10a)](_0x18467f),_0x3475db[_0xc9766a(0x114)]();}else{const _0x1c2a59=''+encodeURIComponent('https://dev.lovrabet.com:'+_0xa56830);_0x37adbd[_0xc9766a(0x112)](0x12e,{'location':_0x478255+_0xc9766a(0x102)+_0x1c2a59}),_0x37adbd[_0xc9766a(0x10a)]();return;}});_0x3475db['listen'](0x0,_0x37637f(0x11b),()=>{const _0x45c40e=_0x37637f,_0x4e4fea=_0x3475db[_0x45c40e(0x101)]();_0xa56830=typeof _0x4e4fea===_0x45c40e(0xfe)&&_0x4e4fea?_0x4e4fea[_0x45c40e(0x103)]:Number(_0x4e4fea);const _0x4b6682=_0x45c40e(0x100)+_0xa56830;!_0x1b473a&&(console[_0x45c40e(0x111)](_0x45c40e(0x116)),console[_0x45c40e(0x111)]('📍\x20Login\x20URL:',_0x4b6682),console['log']('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x45c40e(0x111)](''),console[_0x45c40e(0x111)]('💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.'),console[_0x45c40e(0x111)]('')),openInBrowser(_0x4b6682)[_0x45c40e(0x113)](_0x421cb6=>{const _0x2cb623=_0x45c40e;!_0x1b473a&&(_0x421cb6?console[_0x2cb623(0x111)]('✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console['log'](_0x2cb623(0xf6)),console[_0x2cb623(0x111)](_0x2cb623(0xf8),_0x4b6682)),console[_0x2cb623(0x111)](''));})[_0x45c40e(0x108)](()=>{const _0x2a5e19=_0x45c40e;!_0x1b473a&&(console['log']('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x2a5e19(0x111)](_0x2a5e19(0xf8),_0x4b6682),console[_0x2a5e19(0x111)](''));});}),_0x3475db['on'](_0x37637f(0xfa),_0x67c350=>{const _0x1580fe=_0x37637f;!_0x1b473a&&console[_0x1580fe(0xfa)]('Auth\x20server\x20error:',_0x67c350),_0x18b8d1(_0x67c350);});});}function openInBrowser(_0x15a3f6){return new Promise(_0x2b0fcf=>{const _0x5ce157=a4_0x2709,_0x243b88=process[_0x5ce157(0x107)];let _0x41f7ce;if(_0x243b88===_0x5ce157(0x11d))_0x41f7ce=_0x5ce157(0x105)+_0x15a3f6+'\x22';else _0x243b88===_0x5ce157(0xf9)?_0x41f7ce=_0x5ce157(0x117)+_0x15a3f6+'\x22':_0x41f7ce=_0x5ce157(0x10c)+_0x15a3f6+'\x22';exec(_0x41f7ce,_0x3d4ba9=>{_0x3d4ba9?_0x2b0fcf(![]):_0x2b0fcf(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x3be049(0x111)]('isAuth',isAuth);}function a4_0xe060(){const _0x47768b=['/sign-in?redirect=','port','20vJvvQs','cmd\x20/c\x20start\x20\x22\x22\x20\x22','1005480NsNIOS','platform','catch','208leoQwp','end','utf-8','xdg-open\x20\x22','silent','user','session','createServer','log','writeHead','then','close','12545110lJVagV','🔐\x20Starting\x20login\x20service...','open\x20\x22','/api/auth/get-session','51dBsSQO','7323366lkVcGH','127.0.0.1','217096aZCydT','win32','https://g.yuntooai.com/cert/lovrabet-dev.json','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','10770426IhHgOI','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','darwin','error','text/html;\x20charset=utf-8','424488qukhTk','json','object','88123JaPdnG','https://dev.lovrabet.com:','address'];a4_0xe060=function(){return _0x47768b;};return a4_0xe060();}
1
+ const a4_0x5b0b72=a4_0x3d6d;(function(_0x395b49,_0x2427a3){const _0x5152aa=a4_0x3d6d,_0x1913f7=_0x395b49();while(!![]){try{const _0x4337d7=-parseInt(_0x5152aa(0x95))/0x1+-parseInt(_0x5152aa(0x94))/0x2*(parseInt(_0x5152aa(0x99))/0x3)+-parseInt(_0x5152aa(0x84))/0x4+-parseInt(_0x5152aa(0x85))/0x5*(-parseInt(_0x5152aa(0x77))/0x6)+-parseInt(_0x5152aa(0x8e))/0x7*(-parseInt(_0x5152aa(0x92))/0x8)+parseInt(_0x5152aa(0x8a))/0x9*(-parseInt(_0x5152aa(0x81))/0xa)+parseInt(_0x5152aa(0x7a))/0xb*(parseInt(_0x5152aa(0x90))/0xc);if(_0x4337d7===_0x2427a3)break;else _0x1913f7['push'](_0x1913f7['shift']());}catch(_0x741b7b){_0x1913f7['push'](_0x1913f7['shift']());}}}(a4_0x50be,0xb4109));import{writeFileSync}from'node:fs';import a4_0x2243cf 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';function a4_0x3d6d(_0x1260b6,_0x4ea6bc){_0x1260b6=_0x1260b6-0x76;const _0x50be65=a4_0x50be();let _0x3d6d4a=_0x50be65[_0x1260b6];return _0x3d6d4a;}import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0x1bda78){const _0x4a667b=a4_0x3d6d,_0x4cc53f=_0x1bda78?.[_0x4a667b(0x8b)]||![];if(await getIsSessionValid())return!![];const _0x4b7153=await(await fetch(_0x4a667b(0x86)))[_0x4a667b(0x7d)]();return new Promise(async(_0x3ebc42,_0x5c86dd)=>{const _0x23278c=_0x4a667b;let _0x51b021=0x0;const _0x38c393=a4_0x2243cf[_0x23278c(0x87)](_0x4b7153,async(_0x3ef617,_0x14f5c4)=>{const _0xefd74a=_0x23278c,_0x15b0cc=getUserDomain(),_0xe42903=_0x3ef617['headers']['cookie']||'',_0x46c496=await fetch(_0x15b0cc+'/api/auth/get-session',{'headers':{'cookie':_0xe42903}})[_0xefd74a(0x7f)](_0x427aa3=>_0x427aa3['json']()),_0x42d5ca=_0x46c496&&_0x46c496[_0xefd74a(0x78)]&&_0x46c496[_0xefd74a(0x98)];if(_0x42d5ca){writeFileSync(cookieFile,_0xe42903,_0xefd74a(0x82)),_0x3ebc42(!![]);const _0x532043=buildLoginSuccessHtml();_0x14f5c4[_0xefd74a(0x9b)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x14f5c4[_0xefd74a(0x7e)](_0x532043),_0x38c393[_0xefd74a(0x91)]();}else{const _0x2d3d15=''+encodeURIComponent(_0xefd74a(0x9c)+_0x51b021);_0x14f5c4[_0xefd74a(0x9b)](0x12e,{'location':_0x15b0cc+_0xefd74a(0x80)+_0x2d3d15}),_0x14f5c4[_0xefd74a(0x7e)]();return;}});_0x38c393[_0x23278c(0x8c)](0x0,_0x23278c(0x9a),()=>{const _0x4a5ee2=_0x23278c,_0x47ff9a=_0x38c393[_0x4a5ee2(0x83)]();_0x51b021=typeof _0x47ff9a===_0x4a5ee2(0x93)&&_0x47ff9a?_0x47ff9a[_0x4a5ee2(0x7c)]:Number(_0x47ff9a);const _0xf7e02b='https://dev.lovrabet.com:'+_0x51b021;!_0x4cc53f&&(console[_0x4a5ee2(0x89)]('🔐\x20Starting\x20login\x20service...'),console[_0x4a5ee2(0x89)]('📍\x20Login\x20URL:',_0xf7e02b),console['log'](_0x4a5ee2(0x7b)),console[_0x4a5ee2(0x89)](''),console[_0x4a5ee2(0x89)](_0x4a5ee2(0x96)),console['log']('')),openInBrowser(_0xf7e02b)['then'](_0x1c79a6=>{const _0x3cfb2e=_0x4a5ee2;!_0x4cc53f&&(_0x1c79a6?console[_0x3cfb2e(0x89)]('✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console[_0x3cfb2e(0x89)](_0x3cfb2e(0x8d)),console[_0x3cfb2e(0x89)](_0x3cfb2e(0x76),_0xf7e02b)),console[_0x3cfb2e(0x89)](''));})[_0x4a5ee2(0x8f)](()=>{const _0x423dee=_0x4a5ee2;!_0x4cc53f&&(console[_0x423dee(0x89)](_0x423dee(0x8d)),console[_0x423dee(0x89)](_0x423dee(0x76),_0xf7e02b),console[_0x423dee(0x89)](''));});}),_0x38c393['on']('error',_0x4acadb=>{const _0x310a8e=_0x23278c;!_0x4cc53f&&console['error'](_0x310a8e(0x9d),_0x4acadb),_0x5c86dd(_0x4acadb);});});}function openInBrowser(_0x3aac68){return new Promise(_0x2def48=>{const _0x283441=a4_0x3d6d,_0x523fb7=process[_0x283441(0x88)];let _0x5ee565;if(_0x523fb7==='win32')_0x5ee565='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x3aac68+'\x22';else _0x523fb7===_0x283441(0x79)?_0x5ee565='open\x20\x22'+_0x3aac68+'\x22':_0x5ee565=_0x283441(0x97)+_0x3aac68+'\x22';exec(_0x5ee565,_0xa060c3=>{_0xa060c3?_0x2def48(![]):_0x2def48(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x5b0b72(0x89)](a4_0x5b0b72(0x9e),isAuth);}function a4_0x50be(){const _0xc84307=['xdg-open\x20\x22','user','87DRzwFK','127.0.0.1','writeHead','https://dev.lovrabet.com:','Auth\x20server\x20error:','isAuth','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','135942YgXggM','session','darwin','33JrFtLS','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','port','json','end','then','/sign-in?redirect=','20jfbzFP','utf-8','address','4239892uAYLEK','215ndWWNO','https://g.yuntooai.com/cert/lovrabet-dev.json','createServer','platform','log','2787156PbPxZg','silent','listen','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','2212MMBaNM','catch','10213212QGMQKt','close','8048RMNnyB','object','43580ZEgAVc','796654UezrHC','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.'];a4_0x50be=function(){return _0xc84307;};return a4_0x50be();}
@@ -1 +1 @@
1
- function a5_0x3261(_0x462a0d,_0x41c1f5){_0x462a0d=_0x462a0d-0x10e;const _0x5c75b7=a5_0x5c75();let _0x3261b6=_0x5c75b7[_0x462a0d];return _0x3261b6;}const a5_0x79263=a5_0x3261;(function(_0x2917e2,_0x17a2ab){const _0x2e1af6=a5_0x3261,_0x5c6010=_0x2917e2();while(!![]){try{const _0x59f764=parseInt(_0x2e1af6(0x112))/0x1*(-parseInt(_0x2e1af6(0x118))/0x2)+-parseInt(_0x2e1af6(0x111))/0x3*(parseInt(_0x2e1af6(0x10e))/0x4)+-parseInt(_0x2e1af6(0x110))/0x5*(-parseInt(_0x2e1af6(0x116))/0x6)+parseInt(_0x2e1af6(0x117))/0x7+-parseInt(_0x2e1af6(0x113))/0x8+parseInt(_0x2e1af6(0x119))/0x9+parseInt(_0x2e1af6(0x114))/0xa;if(_0x59f764===_0x17a2ab)break;else _0x5c6010['push'](_0x5c6010['shift']());}catch(_0x741e7){_0x5c6010['push'](_0x5c6010['shift']());}}}(a5_0x5c75,0x2f099));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x79263(0x115));export const cookieFile=join(configDir,a5_0x79263(0x10f));mkdirSync(configDir,{'recursive':!![]});function a5_0x5c75(){const _0x909b53=['2563770eTkNQw','.lovrabet','17058ItXlPc','1210524LLZUxH','63458gffVCo','741861cHFQfl','4owpuxW','cookie','110hyCAOn','622461nJbBlg','3gFdHLS','631560MjJRom'];a5_0x5c75=function(){return _0x909b53;};return a5_0x5c75();}
1
+ const a5_0x3ff7ef=a5_0x1553;function a5_0x1553(_0x1884cf,_0x2e0fc0){_0x1884cf=_0x1884cf-0x11a;const _0x48bfc5=a5_0x48bf();let _0x155372=_0x48bfc5[_0x1884cf];return _0x155372;}(function(_0x2ac26b,_0x350a28){const _0x2e8b47=a5_0x1553,_0x5cd644=_0x2ac26b();while(!![]){try{const _0x1a5232=parseInt(_0x2e8b47(0x11d))/0x1*(parseInt(_0x2e8b47(0x11b))/0x2)+-parseInt(_0x2e8b47(0x11c))/0x3*(parseInt(_0x2e8b47(0x124))/0x4)+parseInt(_0x2e8b47(0x120))/0x5+-parseInt(_0x2e8b47(0x126))/0x6*(parseInt(_0x2e8b47(0x11e))/0x7)+-parseInt(_0x2e8b47(0x122))/0x8*(parseInt(_0x2e8b47(0x11f))/0x9)+-parseInt(_0x2e8b47(0x11a))/0xa+-parseInt(_0x2e8b47(0x121))/0xb*(-parseInt(_0x2e8b47(0x123))/0xc);if(_0x1a5232===_0x350a28)break;else _0x5cd644['push'](_0x5cd644['shift']());}catch(_0x5b65f2){_0x5cd644['push'](_0x5cd644['shift']());}}}(a5_0x48bf,0x90b1c));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),'.lovrabet');export const cookieFile=join(configDir,a5_0x3ff7ef(0x125));mkdirSync(configDir,{'recursive':!![]});function a5_0x48bf(){const _0x1a6de5=['77DxEkjg','3303DDaziR','5095245tjKfeK','8470583hBNOvB','17744enRDmr','36wPnunw','4210252rCgQJx','cookie','312846qttZNA','4422840fjcUTs','16USkSis','3roDfka','18233UTjgvQ'];a5_0x48bf=function(){return _0x1a6de5;};return a5_0x48bf();}
@@ -1 +1 @@
1
- function a6_0x29e0(){var _0x39b343=['335624XfLYyD','452976NUmrMo','7183JfwyWm','1244gQsxKx','3tPeBjh','36LQvmTX','6993245xnicYS','utf-8','1713BZfJHz','3515958NIyNzd','1182472VTzFgd','10UGtKAO','5370lKeSsI','143nuFFHF'];a6_0x29e0=function(){return _0x39b343;};return a6_0x29e0();}function a6_0x1099(_0x491373,_0x4f65ea){_0x491373=_0x491373-0x75;var _0x29e07a=a6_0x29e0();var _0x10992e=_0x29e07a[_0x491373];return _0x10992e;}(function(_0x49f4f2,_0x21e984){var _0x5159de=a6_0x1099,_0x4584e5=_0x49f4f2();while(!![]){try{var _0x4d7b2a=parseInt(_0x5159de(0x79))/0x1*(parseInt(_0x5159de(0x82))/0x2)+parseInt(_0x5159de(0x75))/0x3*(parseInt(_0x5159de(0x7b))/0x4)+-parseInt(_0x5159de(0x7c))/0x5*(parseInt(_0x5159de(0x7a))/0x6)+parseInt(_0x5159de(0x77))/0x7+-parseInt(_0x5159de(0x7f))/0x8*(-parseInt(_0x5159de(0x76))/0x9)+parseInt(_0x5159de(0x7d))/0xa*(-parseInt(_0x5159de(0x81))/0xb)+parseInt(_0x5159de(0x80))/0xc*(-parseInt(_0x5159de(0x7e))/0xd);if(_0x4d7b2a===_0x21e984)break;else _0x4584e5['push'](_0x4584e5['shift']());}catch(_0x5b57d8){_0x4584e5['push'](_0x4584e5['shift']());}}}(a6_0x29e0,0x900fc));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x26707=a6_0x1099;try{return readFileSync(cookieFile,_0x26707(0x78));}catch{}return'';}
1
+ (function(_0x5cd9f9,_0x1f960a){var _0x3b00ce=a6_0x16cc,_0x2fb5d5=_0x5cd9f9();while(!![]){try{var _0xc0069e=parseInt(_0x3b00ce(0xc1))/0x1+-parseInt(_0x3b00ce(0xc7))/0x2*(-parseInt(_0x3b00ce(0xc6))/0x3)+-parseInt(_0x3b00ce(0xc5))/0x4+parseInt(_0x3b00ce(0xca))/0x5+parseInt(_0x3b00ce(0xc3))/0x6*(parseInt(_0x3b00ce(0xc8))/0x7)+-parseInt(_0x3b00ce(0xc9))/0x8*(-parseInt(_0x3b00ce(0xc4))/0x9)+-parseInt(_0x3b00ce(0xc2))/0xa;if(_0xc0069e===_0x1f960a)break;else _0x2fb5d5['push'](_0x2fb5d5['shift']());}catch(_0x478287){_0x2fb5d5['push'](_0x2fb5d5['shift']());}}}(a6_0x22f7,0x40b74));function a6_0x16cc(_0x5f568e,_0x210791){_0x5f568e=_0x5f568e-0xc1;var _0x22f77e=a6_0x22f7();var _0x16cc02=_0x22f77e[_0x5f568e];return _0x16cc02;}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0x22f7(){var _0x58224b=['12862000MNykjN','54EvUMox','9UAHWBz','906616JuzSHh','965553iwhRGm','2dNYeie','268639wCoKcY','2130368diBMVS','2487035fSCrCa','346983DinKId'];a6_0x22f7=function(){return _0x58224b;};return a6_0x22f7();}export function getCookie(){try{return readFileSync(cookieFile,'utf-8');}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x66ba8,_0x5699a5){const _0x422390=a7_0x38b5,_0x1cde36=_0x66ba8();while(!![]){try{const _0x1cd1e6=-parseInt(_0x422390(0xc8))/0x1+-parseInt(_0x422390(0xbd))/0x2*(-parseInt(_0x422390(0xc5))/0x3)+-parseInt(_0x422390(0xc1))/0x4*(parseInt(_0x422390(0xc2))/0x5)+parseInt(_0x422390(0xc3))/0x6+-parseInt(_0x422390(0xc7))/0x7*(parseInt(_0x422390(0xc9))/0x8)+parseInt(_0x422390(0xc4))/0x9*(parseInt(_0x422390(0xca))/0xa)+parseInt(_0x422390(0xbf))/0xb*(-parseInt(_0x422390(0xbc))/0xc);if(_0x1cd1e6===_0x5699a5)break;else _0x1cde36['push'](_0x1cde36['shift']());}catch(_0x59530d){_0x1cde36['push'](_0x1cde36['shift']());}}}(a7_0x4841,0x8ef3d));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x38b5(_0x3b4f7d,_0x4ee0c7){_0x3b4f7d=_0x3b4f7d-0xbc;const _0x484141=a7_0x4841();let _0x38b59d=_0x484141[_0x3b4f7d];return _0x38b59d;}import{cookieFile}from'../auth/constant.js';function a7_0x4841(){const _0x104b92=['60580rtejaY','1020336mrlwHH','1880422sTuyKr','user','77GiiMpS','/api/auth/get-session','29732xAiGva','655MVIgOA','6600936GsSHNy','1503yFqxyL','3zItuGb','utf-8','2245299iOLscg','576844fudhcr','8whtQEA'];a7_0x4841=function(){return _0x104b92;};return a7_0x4841();}export async function getSessionUserInfo(){const _0x4851eb=a7_0x38b5;try{if(!existsSync(cookieFile))return null;const _0x105602=readFileSync(cookieFile,_0x4851eb(0xc6)),_0x3b353f=await fetch(getUserDomain()+_0x4851eb(0xc0),{'headers':{'cookie':_0x105602}});if(!_0x3b353f['ok'])return null;const _0x331ca9=await _0x3b353f['json']();if(!_0x331ca9['session']||!_0x331ca9[_0x4851eb(0xbe)])return null;return _0x331ca9;}catch{return null;}}
1
+ (function(_0x58e03a,_0xa28258){const _0x12fbe3=a7_0x2785,_0x9e5c7=_0x58e03a();while(!![]){try{const _0x39589c=-parseInt(_0x12fbe3(0x135))/0x1*(parseInt(_0x12fbe3(0x136))/0x2)+-parseInt(_0x12fbe3(0x137))/0x3*(-parseInt(_0x12fbe3(0x138))/0x4)+parseInt(_0x12fbe3(0x134))/0x5*(-parseInt(_0x12fbe3(0x13d))/0x6)+parseInt(_0x12fbe3(0x139))/0x7*(parseInt(_0x12fbe3(0x133))/0x8)+-parseInt(_0x12fbe3(0x12f))/0x9*(-parseInt(_0x12fbe3(0x131))/0xa)+-parseInt(_0x12fbe3(0x13a))/0xb+parseInt(_0x12fbe3(0x13b))/0xc;if(_0x39589c===_0xa28258)break;else _0x9e5c7['push'](_0x9e5c7['shift']());}catch(_0xc7f913){_0x9e5c7['push'](_0x9e5c7['shift']());}}}(a7_0x4358,0xeb0fb));import{existsSync,readFileSync}from'node:fs';function a7_0x4358(){const _0x508f0f=['user','6IMNPKs','9yFlXzS','utf-8','17043060YeZeVk','/api/auth/get-session','2984OLLdKH','3985145nhTWIq','3ncSeux','810910JyleLc','12XlJIhu','1122236NszxSE','24227WFhOQk','12828365otrMwJ','299100sCjZrP'];a7_0x4358=function(){return _0x508f0f;};return a7_0x4358();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a7_0x2785(_0x274b3d,_0x501404){_0x274b3d=_0x274b3d-0x12f;const _0x4358b5=a7_0x4358();let _0x27853e=_0x4358b5[_0x274b3d];return _0x27853e;}export async function getSessionUserInfo(){const _0x180134=a7_0x2785;try{if(!existsSync(cookieFile))return null;const _0xb8e8e8=readFileSync(cookieFile,_0x180134(0x130)),_0x4a9921=await fetch(getUserDomain()+_0x180134(0x132),{'headers':{'cookie':_0xb8e8e8}});if(!_0x4a9921['ok'])return null;const _0x514aba=await _0x4a9921['json']();if(!_0x514aba['session']||!_0x514aba[_0x180134(0x13c)])return null;return _0x514aba;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x3e6920,_0x301ae3){const _0x218f5e=a8_0x5743,_0x2d53e7=_0x3e6920();while(!![]){try{const _0x2f715a=-parseInt(_0x218f5e(0x7b))/0x1+-parseInt(_0x218f5e(0x7a))/0x2*(parseInt(_0x218f5e(0x82))/0x3)+parseInt(_0x218f5e(0x80))/0x4+-parseInt(_0x218f5e(0x78))/0x5*(-parseInt(_0x218f5e(0x81))/0x6)+parseInt(_0x218f5e(0x79))/0x7*(parseInt(_0x218f5e(0x7f))/0x8)+-parseInt(_0x218f5e(0x76))/0x9+parseInt(_0x218f5e(0x7d))/0xa;if(_0x2f715a===_0x301ae3)break;else _0x2d53e7['push'](_0x2d53e7['shift']());}catch(_0x43664a){_0x2d53e7['push'](_0x2d53e7['shift']());}}}(a8_0x5798,0x40991));import{existsSync,readFileSync}from'node:fs';function a8_0x5743(_0x234062,_0x425d2d){_0x234062=_0x234062-0x75;const _0x57989b=a8_0x5798();let _0x574338=_0x57989b[_0x234062];return _0x574338;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0x5798(){const _0x12e34b=['2MGEDua','272544vEpiPI','json','885500MsMMtv','then','888544RmWLQL','2041588ahoYHf','18zNsWbA','1504926FyhuHf','utf-8','2182635oiVBpj','session','581905eATpsO','21tcIQNI'];a8_0x5798=function(){return _0x12e34b;};return a8_0x5798();}export async function getIsSessionValid(){const _0x1311e9=a8_0x5743;try{if(!existsSync(cookieFile))return![];const _0x48a8b8=readFileSync(cookieFile,_0x1311e9(0x75)),_0x57b5c1=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x48a8b8}})[_0x1311e9(0x7e)](_0x14edb3=>_0x14edb3[_0x1311e9(0x7c)]());return _0x57b5c1&&_0x57b5c1[_0x1311e9(0x77)]&&_0x57b5c1['user'];}catch{}return![];}
1
+ (function(_0x5382f7,_0x19fe99){const _0x51624f=a8_0x4b99,_0x9dbdea=_0x5382f7();while(!![]){try{const _0x239d10=parseInt(_0x51624f(0x1a9))/0x1+parseInt(_0x51624f(0x1b2))/0x2*(parseInt(_0x51624f(0x1ac))/0x3)+-parseInt(_0x51624f(0x1aa))/0x4*(parseInt(_0x51624f(0x1a8))/0x5)+-parseInt(_0x51624f(0x1b4))/0x6*(parseInt(_0x51624f(0x1a5))/0x7)+-parseInt(_0x51624f(0x1a3))/0x8*(parseInt(_0x51624f(0x1ad))/0x9)+-parseInt(_0x51624f(0x1ab))/0xa*(parseInt(_0x51624f(0x1a6))/0xb)+parseInt(_0x51624f(0x1b1))/0xc*(parseInt(_0x51624f(0x1a7))/0xd);if(_0x239d10===_0x19fe99)break;else _0x9dbdea['push'](_0x9dbdea['shift']());}catch(_0x3ab28a){_0x9dbdea['push'](_0x9dbdea['shift']());}}}(a8_0x56c6,0xd6df4));function a8_0x4b99(_0xb2a0ee,_0x427b2e){_0xb2a0ee=_0xb2a0ee-0x1a3;const _0x56c641=a8_0x56c6();let _0x4b990e=_0x56c641[_0xb2a0ee];return _0x4b990e;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a8_0x56c6(){const _0x251f3f=['969ZuGkCk','597321KHdiiW','session','user','/api/auth/get-session','8871396TwsWOO','7706LaiHHg','json','24shmDZq','8CbDbrM','utf-8','2464245ekRFpo','11fDqkbD','39cSdsei','40OOjZRb','130470ArnPMm','365340qameKx','5075330CPFHDP'];a8_0x56c6=function(){return _0x251f3f;};return a8_0x56c6();}import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x36df88=a8_0x4b99;try{if(!existsSync(cookieFile))return![];const _0x43269e=readFileSync(cookieFile,_0x36df88(0x1a4)),_0x54b82f=await fetch(getUserDomain()+_0x36df88(0x1b0),{'headers':{'cookie':_0x43269e}})['then'](_0x39810d=>_0x39810d[_0x36df88(0x1b3)]());return _0x54b82f&&_0x54b82f[_0x36df88(0x1ae)]&&_0x54b82f[_0x36df88(0x1af)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x1d5584,_0xacdf20){const _0x4d14ba=a9_0x1974,_0x40529c=_0x1d5584();while(!![]){try{const _0x457a91=parseInt(_0x4d14ba(0x9b))/0x1*(-parseInt(_0x4d14ba(0x95))/0x2)+parseInt(_0x4d14ba(0x9a))/0x3*(-parseInt(_0x4d14ba(0x9d))/0x4)+-parseInt(_0x4d14ba(0x96))/0x5*(-parseInt(_0x4d14ba(0x98))/0x6)+-parseInt(_0x4d14ba(0x94))/0x7+parseInt(_0x4d14ba(0x9e))/0x8+-parseInt(_0x4d14ba(0x92))/0x9+-parseInt(_0x4d14ba(0x99))/0xa*(-parseInt(_0x4d14ba(0x93))/0xb);if(_0x457a91===_0xacdf20)break;else _0x40529c['push'](_0x40529c['shift']());}catch(_0x1b2b63){_0x40529c['push'](_0x40529c['shift']());}}}(a9_0x1f52,0xcaff0));function a9_0x1974(_0x192982,_0x22fd75){_0x192982=_0x192982-0x92;const _0x1f52d7=a9_0x1f52();let _0x197485=_0x1f52d7[_0x192982];return _0x197485;}export function buildLoginSuccessHtml(){const _0x3251c5=a9_0x1974,_0x13b71c=_0x3251c5(0x9f);return _0x3251c5(0x9c)+_0x13b71c+_0x3251c5(0x97);}function a9_0x1f52(){const _0x3119a1=['2544990ZUuHQd','30594BhzBEX','1897595WlJkgz','</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>','18qqgfAS','30EoTqTq','141aUCory','41LselMR','<!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>','10964rgRkEM','13248592BPbInc','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','9133236Lwhorw','627803jNrboE'];a9_0x1f52=function(){return _0x3119a1;};return a9_0x1f52();}
1
+ (function(_0x3c2353,_0x4267ff){const _0x27f215=a9_0x1caf,_0x1b7884=_0x3c2353();while(!![]){try{const _0x54ca77=-parseInt(_0x27f215(0x1dd))/0x1+-parseInt(_0x27f215(0x1e1))/0x2*(parseInt(_0x27f215(0x1e7))/0x3)+parseInt(_0x27f215(0x1e5))/0x4*(parseInt(_0x27f215(0x1e3))/0x5)+parseInt(_0x27f215(0x1de))/0x6*(parseInt(_0x27f215(0x1df))/0x7)+parseInt(_0x27f215(0x1e0))/0x8*(parseInt(_0x27f215(0x1ea))/0x9)+-parseInt(_0x27f215(0x1e4))/0xa*(-parseInt(_0x27f215(0x1e8))/0xb)+parseInt(_0x27f215(0x1e2))/0xc;if(_0x54ca77===_0x4267ff)break;else _0x1b7884['push'](_0x1b7884['shift']());}catch(_0x6595b){_0x1b7884['push'](_0x1b7884['shift']());}}}(a9_0x33ac,0xb725d));function a9_0x1caf(_0x4265d8,_0x1f31b8){_0x4265d8=_0x4265d8-0x1dd;const _0x33ac6f=a9_0x33ac();let _0x1caff8=_0x33ac6f[_0x4265d8];return _0x1caff8;}function a9_0x33ac(){const _0x4f416f=['</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>','27OIIEpw','1410921aHfHGS','759792eVlIbu','7bOGSlI','3666632TbLLHu','481532OvtGuS','6972720MwyuuC','65ihYKgz','1999870vPjWvq','271468DAjLEb','<!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>','15DdsQIc','22ZOTLqB'];a9_0x33ac=function(){return _0x4f416f;};return a9_0x33ac();}export function buildLoginSuccessHtml(){const _0x5899d0=a9_0x1caf,_0x31521a='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x5899d0(0x1e6)+_0x31521a+_0x5899d0(0x1e9);}
@@ -1 +1 @@
1
- function a10_0x2a30(_0x4a02b6,_0x16e831){_0x4a02b6=_0x4a02b6-0x14b;var _0x30e9a5=a10_0x30e9();var _0x2a309e=_0x30e9a5[_0x4a02b6];return _0x2a309e;}(function(_0x916872,_0x2f4e3c){var _0x2f841a=a10_0x2a30,_0x1eb575=_0x916872();while(!![]){try{var _0x42788b=-parseInt(_0x2f841a(0x151))/0x1+parseInt(_0x2f841a(0x152))/0x2+-parseInt(_0x2f841a(0x14f))/0x3+-parseInt(_0x2f841a(0x14b))/0x4+-parseInt(_0x2f841a(0x150))/0x5+parseInt(_0x2f841a(0x14d))/0x6+-parseInt(_0x2f841a(0x153))/0x7*(-parseInt(_0x2f841a(0x14c))/0x8);if(_0x42788b===_0x2f4e3c)break;else _0x1eb575['push'](_0x1eb575['shift']());}catch(_0x163d53){_0x1eb575['push'](_0x1eb575['shift']());}}}(a10_0x30e9,0x95893));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a10_0x30e9(){var _0x2e2561=['log','2128328MEoFHJ','164888YYtWsv','4005654TIMiMd','!\x20Not\x20logged\x20in','1755408xnDPgn','1125465dGMpmV','1011997lIVNKV','1465524HnXuhq','532kOryyj'];a10_0x30e9=function(){return _0x2e2561;};return a10_0x30e9();}export function logout(){var _0x2dc163=a10_0x2a30;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x2dc163(0x154)]('✓\x20Logged\x20out')):console[_0x2dc163(0x154)](_0x2dc163(0x14e));}
1
+ (function(_0xb9adc1,_0x5dbb6c){var _0x1aeacf=a10_0x13bc,_0x2d5b94=_0xb9adc1();while(!![]){try{var _0x1fda65=parseInt(_0x1aeacf(0x151))/0x1+-parseInt(_0x1aeacf(0x14a))/0x2*(-parseInt(_0x1aeacf(0x152))/0x3)+parseInt(_0x1aeacf(0x150))/0x4+parseInt(_0x1aeacf(0x14f))/0x5+parseInt(_0x1aeacf(0x154))/0x6+-parseInt(_0x1aeacf(0x153))/0x7+-parseInt(_0x1aeacf(0x14e))/0x8*(parseInt(_0x1aeacf(0x14c))/0x9);if(_0x1fda65===_0x5dbb6c)break;else _0x2d5b94['push'](_0x2d5b94['shift']());}catch(_0x115806){_0x2d5b94['push'](_0x2d5b94['shift']());}}}(a10_0x4557,0x39520));function a10_0x13bc(_0x3c7bbd,_0x52bb83){_0x3c7bbd=_0x3c7bbd-0x14a;var _0x4557db=a10_0x4557();var _0x13bccb=_0x4557db[_0x3c7bbd];return _0x13bccb;}function a10_0x4557(){var _0x594715=['461251iqIjzX','506154cCVdkW','8974rfPmce','log','9UUNMgV','✓\x20Logged\x20out','7742168ZbRedh','2285650kHdmCg','1570164sYHzYJ','6867mEtUam','219nlRtjm'];a10_0x4557=function(){return _0x594715;};return a10_0x4557();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0xb74f8b=a10_0x13bc;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0xb74f8b(0x14b)](_0xb74f8b(0x14d))):console[_0xb74f8b(0x14b)]('!\x20Not\x20logged\x20in');}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- function a11_0x2c42(){const _0x428df7=['2232890eZQLCE','2460954rroVZR','45FoNBug','5Tqnvjw','4798615XnAXMx','7WXHiyC','1920459pqOEtH','5402683jAGZMY','8078624qoNVHe','4XVNdZh','74630IQBkmi'];a11_0x2c42=function(){return _0x428df7;};return a11_0x2c42();}function a11_0x855b(_0x507399,_0x7d4c0e){_0x507399=_0x507399-0x76;const _0x2c4215=a11_0x2c42();let _0x855b9b=_0x2c4215[_0x507399];return _0x855b9b;}(function(_0x107648,_0x1619d1){const _0x1aa9f7=a11_0x855b,_0x14bf35=_0x107648();while(!![]){try{const _0x257919=-parseInt(_0x1aa9f7(0x79))/0x1*(-parseInt(_0x1aa9f7(0x80))/0x2)+parseInt(_0x1aa9f7(0x7c))/0x3+parseInt(_0x1aa9f7(0x7f))/0x4*(-parseInt(_0x1aa9f7(0x7a))/0x5)+parseInt(_0x1aa9f7(0x77))/0x6+parseInt(_0x1aa9f7(0x7b))/0x7*(parseInt(_0x1aa9f7(0x7e))/0x8)+parseInt(_0x1aa9f7(0x78))/0x9*(-parseInt(_0x1aa9f7(0x76))/0xa)+parseInt(_0x1aa9f7(0x7d))/0xb;if(_0x257919===_0x1619d1)break;else _0x14bf35['push'](_0x14bf35['shift']());}catch(_0x499313){_0x14bf35['push'](_0x14bf35['shift']());}}}(a11_0x2c42,0xa18c4));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};
1
+ const a11_0x2b58bd=a11_0x476f;function a11_0x476f(_0x5cebbc,_0x2ab905){_0x5cebbc=_0x5cebbc-0x13e;const _0x534f68=a11_0x534f();let _0x476f77=_0x534f68[_0x5cebbc];return _0x476f77;}function a11_0x534f(){const _0x7b65f7=['9263448dTYcfk','3933792zkERup','3007382pFGaIr','boolean','33aOrxcI','22sNZbTe','3051170bkjvcC','1011512clOsqP','4986jjsLzQ','206596JUJkbb','20cPWFBx'];a11_0x534f=function(){return _0x7b65f7;};return a11_0x534f();}(function(_0x3c6b31,_0x35bde5){const _0x194343=a11_0x476f,_0x54fff2=_0x3c6b31();while(!![]){try{const _0x182681=parseInt(_0x194343(0x148))/0x1*(parseInt(_0x194343(0x140))/0x2)+-parseInt(_0x194343(0x147))/0x3*(-parseInt(_0x194343(0x141))/0x4)+parseInt(_0x194343(0x13e))/0x5+parseInt(_0x194343(0x144))/0x6+parseInt(_0x194343(0x145))/0x7+parseInt(_0x194343(0x13f))/0x8+parseInt(_0x194343(0x143))/0x9*(-parseInt(_0x194343(0x142))/0xa);if(_0x182681===_0x35bde5)break;else _0x54fff2['push'](_0x54fff2['shift']());}catch(_0x1f1a05){_0x54fff2['push'](_0x54fff2['shift']());}}}(a11_0x534f,0x5e544));export const dynamicCliFlags={'enableBffSave':{'type':a11_0x2b58bd(0x146)}};
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x1db00b=a12_0x457e;(function(_0x23e613,_0x482b48){const _0x1517b2=a12_0x457e,_0x113d53=_0x23e613();while(!![]){try{const _0x33b8ab=parseInt(_0x1517b2(0x178))/0x1*(-parseInt(_0x1517b2(0x184))/0x2)+-parseInt(_0x1517b2(0x180))/0x3*(parseInt(_0x1517b2(0x185))/0x4)+-parseInt(_0x1517b2(0x17c))/0x5+-parseInt(_0x1517b2(0x18d))/0x6*(-parseInt(_0x1517b2(0x173))/0x7)+-parseInt(_0x1517b2(0x189))/0x8+parseInt(_0x1517b2(0x16b))/0x9+-parseInt(_0x1517b2(0x172))/0xa*(-parseInt(_0x1517b2(0x16e))/0xb);if(_0x33b8ab===_0x482b48)break;else _0x113d53['push'](_0x113d53['shift']());}catch(_0x5b8b49){_0x113d53['push'](_0x113d53['shift']());}}}(a12_0x443d,0xac0b9));import a12_0x7664ff 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_0x1db00b(0x16a)))[a12_0x1db00b(0x182)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x1db00b(0x17b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x1db00b(0x183)](0x0,0xa)+')':VERSION,cli=a12_0x7664ff(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0xd3cfbd=a12_0x1db00b;let _0xd3a179=cli[_0xd3cfbd(0x187)][0x0],_0x926c0b=cli[_0xd3cfbd(0x187)][0x1];const _0x4d5bb2=cli['flags'];if(!_0xd3a179){await reportCliHelpTrace('global'),showHelp();return;}const _0x2dd028=deprecatedAliases[_0xd3a179];if(_0x2dd028&&!isKnownService(_0xd3a179)){const _0x4abced=_0x926c0b?CLI_BIN_NAME+'\x20'+_0xd3a179+'\x20'+_0x926c0b:CLI_BIN_NAME+'\x20'+_0xd3a179,_0x2ad6d1=CLI_BIN_NAME+'\x20'+_0x2dd028['service']+'\x20'+_0x2dd028[_0xd3cfbd(0x193)];console[_0xd3cfbd(0x16c)](_0xd3cfbd(0x177)+_0x4abced+'`\x20has\x20been\x20moved\x20to\x20`'+_0x2ad6d1+'`\x20in\x20v2.0.\x0a'+_0xd3cfbd(0x197)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0xd3a179)){await reportCliHelpTrace(_0xd3cfbd(0x181),{'service':_0xd3a179}),showHelp();return;}const _0x145d62=getServiceEntry(_0xd3a179);if(_0x4d5bb2[_0xd3cfbd(0x176)]&&typeof _0x4d5bb2[_0xd3cfbd(0x176)]===_0xd3cfbd(0x175)){const {initEnv:_0x1e360e}=await import('./constant/env.js');_0x1e360e(_0x4d5bb2['env']);}const {buildConfigFromFlags:_0x1f1134}=await import(_0xd3cfbd(0x18c)),_0x33086f=_0x1f1134(_0x4d5bb2);if(!_0x4d5bb2[_0xd3cfbd(0x176)]&&_0x33086f['env']){const {initEnv:_0x1c1a90}=await import(_0xd3cfbd(0x17e));_0x1c1a90(_0x33086f[_0xd3cfbd(0x176)]);}if(_0x33086f[_0xd3cfbd(0x171)]?.[_0xd3cfbd(0x188)]||_0x33086f[_0xd3cfbd(0x171)]?.[_0xd3cfbd(0x167)]||_0x33086f['raw']?.['runtimeDomain']){const {initDomains:_0x45e3c2}=await import(_0xd3cfbd(0x192));_0x45e3c2({'apiDomain':_0x33086f['raw'][_0xd3cfbd(0x188)]||undefined,'userDomain':_0x33086f[_0xd3cfbd(0x171)][_0xd3cfbd(0x167)]||undefined,'runtimeDomain':_0x33086f[_0xd3cfbd(0x171)][_0xd3cfbd(0x195)]||undefined});}if(!_0x926c0b){if(_0x4d5bb2['help']){printServiceHelp(_0xd3a179);return;}if(_0x145d62['defaultCommand'])_0x926c0b=_0x145d62[_0xd3cfbd(0x190)];else{if(_0x145d62[_0xd3cfbd(0x18f)]){await dispatchDeclarative(_0x145d62[_0xd3cfbd(0x18f)],_0xd3a179,'',[],_0x4d5bb2,_0x33086f);return;}else{printServiceHelp(_0xd3a179);return;}}}const _0x3d8cd0=resolveDeprecatedSubcommand(_0xd3a179,_0x926c0b);if(_0x3d8cd0){const _0x545ea1=CLI_BIN_NAME+'\x20'+_0xd3a179+'\x20'+_0x926c0b,_0x28f622=CLI_BIN_NAME+'\x20'+_0xd3a179+'\x20'+_0x3d8cd0;console[_0xd3cfbd(0x16c)](_0xd3cfbd(0x177)+_0x545ea1+_0xd3cfbd(0x196)+_0x28f622+'`;\x20prefer\x20`'+_0x28f622+_0xd3cfbd(0x18e)),_0x926c0b=_0x3d8cd0;}if(_0x4d5bb2[_0xd3cfbd(0x186)]&&!findDefinition(_0xd3a179,_0x926c0b)){printServiceHelp(_0xd3a179);return;}{let _0x15037d=findDefinition(_0xd3a179,_0x926c0b),_0x12c7b7=cli[_0xd3cfbd(0x187)][_0xd3cfbd(0x183)](0x2);if(!_0x15037d){if(_0x145d62[_0xd3cfbd(0x18f)]){if(_0x4d5bb2[_0xd3cfbd(0x186)]){console[_0xd3cfbd(0x170)](generateCommandHelp(_0x145d62[_0xd3cfbd(0x18f)]));return;}_0x15037d=_0x145d62[_0xd3cfbd(0x18f)],_0x12c7b7=[_0x926c0b,...cli[_0xd3cfbd(0x187)][_0xd3cfbd(0x183)](0x2)];}else{printServiceHelp(_0xd3a179),await handleErrorAsync(CliErrors[_0xd3cfbd(0x17d)](_0xd3a179+'\x20'+_0x926c0b));return;}}if(_0x4d5bb2[_0xd3cfbd(0x186)]){console[_0xd3cfbd(0x170)](generateCommandHelp(_0x15037d));return;}await dispatchDeclarative(_0x15037d,_0xd3a179,_0x926c0b,_0x12c7b7,_0x4d5bb2,_0x33086f);}}function a12_0x457e(_0x582002,_0x1d9aea){_0x582002=_0x582002-0x167;const _0x443dc2=a12_0x443d();let _0x457e89=_0x443dc2[_0x582002];return _0x457e89;}async function dispatchDeclarative(_0x962e94,_0x385e4d,_0x563c6e,_0x1a37bd,_0x24d3a0,_0x29e246){const _0x5ddb9a=a12_0x1db00b,_0xf36763=Date[_0x5ddb9a(0x16f)]();let _0x231dee;try{await runCommand(_0x962e94,createPipelineEnv(_0x29e246,_0x24d3a0,_0x1a37bd));}catch(_0x9c1c64){_0x231dee=_0x9c1c64;}await reportCommandTrace({'service':_0x385e4d,'command':_0x563c6e,'flags':_0x24d3a0,'durationMs':Date['now']()-_0xf36763,'error':_0x231dee});if(_0x231dee)await handleErrorAsync(_0x231dee);}function printServiceHelp(_0x4bee9a){console['log'](generateServiceHelp(_0x4bee9a));}async function handleErrorAsync(_0x43ec7c){const _0x215b82=a12_0x1db00b;if(_0x43ec7c instanceof Error&&_0x43ec7c[_0x215b82(0x168)]==='ExitPromptError')return process[_0x215b82(0x194)][_0x215b82(0x18a)](_0x215b82(0x169)),await exitWithOtelShutdown(0x0);if(_0x43ec7c instanceof CliError){if(_0x43ec7c[_0x215b82(0x17f)]===_0x215b82(0x174))return process[_0x215b82(0x194)]['write']('\x0a'+_0x43ec7c[_0x215b82(0x179)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x215b82(0x16c)](_0x215b82(0x18b)+_0x43ec7c[_0x215b82(0x179)]);if(_0x43ec7c[_0x215b82(0x17a)])console[_0x215b82(0x16c)](_0x215b82(0x16d)+_0x43ec7c[_0x215b82(0x17a)]);return await exitWithOtelShutdown(_0x43ec7c[_0x215b82(0x191)]);}return console[_0x215b82(0x16c)]('Unexpected\x20error:',_0x43ec7c),await exitWithOtelShutdown(0x1);}function a12_0x443d(){const _0x438feb=['Hint:\x20','5065599DYnBRN','now','log','raw','70kBJatg','182rPtzQF','cancelled','string','env','⚠\x20`','373343hApxLZ','message','hint','unknown','214910FgAGzI','unknownCommand','./constant/env.js','code','3SAKWkd','unknown_service','dynamicCliFlags','slice','4iWiYrg','5383004gUlkux','help','input','apiDomain','8799432nfbsLI','write','Error:\x20','./context.js','77754GZtGOJ','`\x20in\x20new\x20scripts.\x0a','wildcardDef','defaultCommand','exitCode','./constant/domain.js','command','stderr','runtimeDomain','`\x20is\x20an\x20alias\x20of\x20`','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','userDomain','name','\x0aCancelled.\x0a','./cli-flags.js','3415932EwQDIy','error'];a12_0x443d=function(){return _0x438feb;};return a12_0x443d();}
2
+ const a12_0x228d4d=a12_0x1f85;(function(_0x35237c,_0x27fa36){const _0x1ec7e3=a12_0x1f85,_0x24b28a=_0x35237c();while(!![]){try{const _0x23b223=-parseInt(_0x1ec7e3(0x1ac))/0x1*(parseInt(_0x1ec7e3(0x19d))/0x2)+-parseInt(_0x1ec7e3(0x191))/0x3+parseInt(_0x1ec7e3(0x1a4))/0x4*(-parseInt(_0x1ec7e3(0x1a2))/0x5)+-parseInt(_0x1ec7e3(0x1bc))/0x6+parseInt(_0x1ec7e3(0x19a))/0x7+-parseInt(_0x1ec7e3(0x197))/0x8+parseInt(_0x1ec7e3(0x1b9))/0x9;if(_0x23b223===_0x27fa36)break;else _0x24b28a['push'](_0x24b28a['shift']());}catch(_0x1fe5e4){_0x24b28a['push'](_0x24b28a['shift']());}}}(a12_0x5494,0x7650a));function a12_0x1f85(_0x53347d,_0x256f99){_0x53347d=_0x53347d-0x18f;const _0x549466=a12_0x5494();let _0x1f85bc=_0x549466[_0x53347d];return _0x1f85bc;}import a12_0x43b184 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';function a12_0x5494(){const _0x38f213=['name','write','17119665mVWgWO','\x0aCancelled.\x0a','wildcardDef','1346736biJcKJ','global','env','unknown_service','./constant/domain.js','message','⚠\x20`','1608639JeUfSB','Unexpected\x20error:','Hint:\x20','service','exitCode','help','5513504GVnyIt','code','dynamicCliFlags','2203432jAUGpi','./cli-flags.js','userDomain','58JtEupk','command','stderr','slice','`\x20in\x20new\x20scripts.\x0a','2735oREpuX','unknown','1540KiddUd','Error:\x20','now','hint','runtimeDomain','string','raw','input','2479crEVcR','`\x20in\x20v2.0.\x0a','log','ExitPromptError','`\x20has\x20been\x20moved\x20to\x20`','./context.js','flags','apiDomain','cancelled','./constant/env.js','error'];a12_0x5494=function(){return _0x38f213;};return a12_0x5494();}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_0x228d4d(0x19b)))[a12_0x228d4d(0x199)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x228d4d(0x1a3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x228d4d(0x1a0)](0x0,0xa)+')':VERSION,cli=a12_0x43b184(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x4b857f=a12_0x228d4d;let _0x3f97d4=cli['input'][0x0],_0x1ef64f=cli[_0x4b857f(0x1ab)][0x1];const _0x5cc57f=cli[_0x4b857f(0x1b2)];if(!_0x3f97d4){await reportCliHelpTrace(_0x4b857f(0x1bd)),showHelp();return;}const _0x267cea=deprecatedAliases[_0x3f97d4];if(_0x267cea&&!isKnownService(_0x3f97d4)){const _0x2509be=_0x1ef64f?CLI_BIN_NAME+'\x20'+_0x3f97d4+'\x20'+_0x1ef64f:CLI_BIN_NAME+'\x20'+_0x3f97d4,_0x1e4b05=CLI_BIN_NAME+'\x20'+_0x267cea[_0x4b857f(0x194)]+'\x20'+_0x267cea[_0x4b857f(0x19e)];console[_0x4b857f(0x1b6)](_0x4b857f(0x190)+_0x2509be+_0x4b857f(0x1b0)+_0x1e4b05+_0x4b857f(0x1ad)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x3f97d4)){await reportCliHelpTrace(_0x4b857f(0x1bf),{'service':_0x3f97d4}),showHelp();return;}const _0x5b5177=getServiceEntry(_0x3f97d4);if(_0x5cc57f[_0x4b857f(0x1be)]&&typeof _0x5cc57f[_0x4b857f(0x1be)]===_0x4b857f(0x1a9)){const {initEnv:_0x53fa19}=await import(_0x4b857f(0x1b5));_0x53fa19(_0x5cc57f[_0x4b857f(0x1be)]);}const {buildConfigFromFlags:_0x28c26c}=await import(_0x4b857f(0x1b1)),_0x587e42=_0x28c26c(_0x5cc57f);if(!_0x5cc57f[_0x4b857f(0x1be)]&&_0x587e42[_0x4b857f(0x1be)]){const {initEnv:_0x2ac4e4}=await import(_0x4b857f(0x1b5));_0x2ac4e4(_0x587e42[_0x4b857f(0x1be)]);}if(_0x587e42[_0x4b857f(0x1aa)]?.[_0x4b857f(0x1b3)]||_0x587e42[_0x4b857f(0x1aa)]?.[_0x4b857f(0x19c)]||_0x587e42[_0x4b857f(0x1aa)]?.['runtimeDomain']){const {initDomains:_0x1193ee}=await import(_0x4b857f(0x1c0));_0x1193ee({'apiDomain':_0x587e42['raw'][_0x4b857f(0x1b3)]||undefined,'userDomain':_0x587e42[_0x4b857f(0x1aa)][_0x4b857f(0x19c)]||undefined,'runtimeDomain':_0x587e42['raw'][_0x4b857f(0x1a8)]||undefined});}if(!_0x1ef64f){if(_0x5cc57f['help']){printServiceHelp(_0x3f97d4);return;}if(_0x5b5177['defaultCommand'])_0x1ef64f=_0x5b5177['defaultCommand'];else{if(_0x5b5177[_0x4b857f(0x1bb)]){await dispatchDeclarative(_0x5b5177[_0x4b857f(0x1bb)],_0x3f97d4,'',[],_0x5cc57f,_0x587e42);return;}else{printServiceHelp(_0x3f97d4);return;}}}const _0x21a138=resolveDeprecatedSubcommand(_0x3f97d4,_0x1ef64f);if(_0x21a138){const _0x52bb5a=CLI_BIN_NAME+'\x20'+_0x3f97d4+'\x20'+_0x1ef64f,_0x1aef4c=CLI_BIN_NAME+'\x20'+_0x3f97d4+'\x20'+_0x21a138;console['error'](_0x4b857f(0x190)+_0x52bb5a+'`\x20is\x20an\x20alias\x20of\x20`'+_0x1aef4c+'`;\x20prefer\x20`'+_0x1aef4c+_0x4b857f(0x1a1)),_0x1ef64f=_0x21a138;}if(_0x5cc57f[_0x4b857f(0x196)]&&!findDefinition(_0x3f97d4,_0x1ef64f)){printServiceHelp(_0x3f97d4);return;}{let _0x4cb00c=findDefinition(_0x3f97d4,_0x1ef64f),_0x3d0a32=cli['input'][_0x4b857f(0x1a0)](0x2);if(!_0x4cb00c){if(_0x5b5177[_0x4b857f(0x1bb)]){if(_0x5cc57f[_0x4b857f(0x196)]){console[_0x4b857f(0x1ae)](generateCommandHelp(_0x5b5177['wildcardDef']));return;}_0x4cb00c=_0x5b5177[_0x4b857f(0x1bb)],_0x3d0a32=[_0x1ef64f,...cli[_0x4b857f(0x1ab)]['slice'](0x2)];}else{printServiceHelp(_0x3f97d4),await handleErrorAsync(CliErrors['unknownCommand'](_0x3f97d4+'\x20'+_0x1ef64f));return;}}if(_0x5cc57f[_0x4b857f(0x196)]){console[_0x4b857f(0x1ae)](generateCommandHelp(_0x4cb00c));return;}await dispatchDeclarative(_0x4cb00c,_0x3f97d4,_0x1ef64f,_0x3d0a32,_0x5cc57f,_0x587e42);}}async function dispatchDeclarative(_0x465840,_0x4836e5,_0x489970,_0x1ec789,_0x4ecde4,_0x9685a0){const _0x311a09=a12_0x228d4d,_0x57348d=Date[_0x311a09(0x1a6)]();let _0x1a7b0b;try{await runCommand(_0x465840,createPipelineEnv(_0x9685a0,_0x4ecde4,_0x1ec789));}catch(_0x420319){_0x1a7b0b=_0x420319;}await reportCommandTrace({'service':_0x4836e5,'command':_0x489970,'flags':_0x4ecde4,'durationMs':Date[_0x311a09(0x1a6)]()-_0x57348d,'error':_0x1a7b0b});if(_0x1a7b0b)await handleErrorAsync(_0x1a7b0b);}function printServiceHelp(_0x3e3f89){const _0x3c2176=a12_0x228d4d;console[_0x3c2176(0x1ae)](generateServiceHelp(_0x3e3f89));}async function handleErrorAsync(_0x5f5293){const _0x4de411=a12_0x228d4d;if(_0x5f5293 instanceof Error&&_0x5f5293[_0x4de411(0x1b7)]===_0x4de411(0x1af))return process[_0x4de411(0x19f)][_0x4de411(0x1b8)](_0x4de411(0x1ba)),await exitWithOtelShutdown(0x0);if(_0x5f5293 instanceof CliError){if(_0x5f5293[_0x4de411(0x198)]===_0x4de411(0x1b4))return process[_0x4de411(0x19f)][_0x4de411(0x1b8)]('\x0a'+_0x5f5293['message']+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x4de411(0x1b6)](_0x4de411(0x1a5)+_0x5f5293[_0x4de411(0x18f)]);if(_0x5f5293[_0x4de411(0x1a7)])console[_0x4de411(0x1b6)](_0x4de411(0x193)+_0x5f5293['hint']);return await exitWithOtelShutdown(_0x5f5293[_0x4de411(0x195)]);}return console[_0x4de411(0x1b6)](_0x4de411(0x192),_0x5f5293),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a13_0x36e210=a13_0x54cd;(function(_0x31038e,_0x58cf25){const _0x1ce7ec=a13_0x54cd,_0x46354a=_0x31038e();while(!![]){try{const _0x30d2fe=parseInt(_0x1ce7ec(0x1a1))/0x1+-parseInt(_0x1ce7ec(0x187))/0x2*(parseInt(_0x1ce7ec(0x190))/0x3)+-parseInt(_0x1ce7ec(0x196))/0x4*(-parseInt(_0x1ce7ec(0x1a5))/0x5)+parseInt(_0x1ce7ec(0x197))/0x6+parseInt(_0x1ce7ec(0x181))/0x7*(parseInt(_0x1ce7ec(0x185))/0x8)+-parseInt(_0x1ce7ec(0x1a4))/0x9*(parseInt(_0x1ce7ec(0x1a2))/0xa)+-parseInt(_0x1ce7ec(0x176))/0xb;if(_0x30d2fe===_0x58cf25)break;else _0x46354a['push'](_0x46354a['shift']());}catch(_0x5ec7ed){_0x46354a['push'](_0x46354a['shift']());}}}(a13_0x181b,0xe09ce));import a13_0x4bb950 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a13_0x181b(){const _0x37fe57=['7463401CgCLUk','\x0d\x20\x20[','\x20failed','...','\x1b[0m','filter','\x1b[90m*\x20Generating\x20docs\x20for:\x20','start','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','api','succeed','440762ogiqiI','--datasetcode\x20cannot\x20be\x20empty.','fail','str','112xkyNpJ','output','8pczXgr','appCode','stdout','isArray','map','datasetcode','params','\x20succeeded,\x20','write','1316424DJxXMp','parse','must\x20be\x20a\x20JSON\x20object','\x20of\x20','string','join','263096KbVMyK','9556608wOUOKA','!\x20No\x20datasets\x20found.','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','generate','.md','✓\x20Generated\x20','validation','error','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','\x20dataset(s)\x1b[0m','1193518YokTWa','10310EhRIfb','./docs','7335UfMhLo','40RfIWVC','split','\x20doc(s)\x20in\x20','Invalid\x20--params:\x20','success','datasetCode','Fetching\x20dataset\x20list\x20for\x20','Doc\x20generation:\x20','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','\x1b[90m*\x20Filtered\x20','\x20dataset(s)','\x20file(s)','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','\x20doc(s)\x20failed','length','Output\x20directory\x20(default:\x20./docs)'];a13_0x181b=function(){return _0x37fe57;};return a13_0x181b();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a13_0x54cd(_0xecb782,_0x53ac2a){_0xecb782=_0xecb782-0x170;const _0x181b1a=a13_0x181b();let _0x54cd0e=_0x181b1a[_0xecb782];return _0x54cd0e;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':a13_0x36e210(0x17f),'command':a13_0x36e210(0x19a),'description':'Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','risk':a13_0x36e210(0x18f),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x36e210(0x186),'type':a13_0x36e210(0x194),'description':a13_0x36e210(0x175)},{'name':a13_0x36e210(0x18c),'type':a13_0x36e210(0x194),'description':a13_0x36e210(0x17e)},{'name':a13_0x36e210(0x18d),'type':'string','description':a13_0x36e210(0x172)}],async 'execute'(_0x272676){const _0x289eb4=a13_0x36e210,_0x57726c=_0x272676[_0x289eb4(0x184)]('output')||_0x289eb4(0x1a3),_0x33817f=_0x272676[_0x289eb4(0x184)](_0x289eb4(0x18c)),_0x193101=_0x272676[_0x289eb4(0x184)](_0x289eb4(0x18d));let _0x2ddcd8;if(_0x193101)try{_0x2ddcd8=JSON[_0x289eb4(0x191)](_0x193101);if(typeof _0x2ddcd8!=='object'||_0x2ddcd8===null||Array[_0x289eb4(0x18a)](_0x2ddcd8))throw new Error(_0x289eb4(0x192));}catch(_0x562c95){throw CliErrors[_0x289eb4(0x19d)](_0x289eb4(0x1a8)+(_0x562c95 instanceof Error?_0x562c95['message']:String(_0x562c95)),_0x289eb4(0x1ad));}let _0x7c6ac6;if(_0x33817f){const _0x2da9ed=_0x33817f[_0x289eb4(0x1a6)](',')[_0x289eb4(0x18b)](_0x4fc5d8=>_0x4fc5d8['trim']())[_0x289eb4(0x17b)](_0x285b63=>_0x285b63[_0x289eb4(0x174)]>0x0);if(_0x2da9ed[_0x289eb4(0x174)]===0x0)throw CliErrors[_0x289eb4(0x19d)](_0x289eb4(0x182));_0x7c6ac6=new Set(_0x2da9ed),writeCliSideChannelLine(_0x289eb4(0x17c)+_0x2da9ed['join'](',\x20')+_0x289eb4(0x17a));}const _0x4b7af8=a13_0x4bb950(_0x289eb4(0x1ab)+_0x272676[_0x289eb4(0x188)]+_0x289eb4(0x179))[_0x289eb4(0x17d)]();let _0x46bc15;try{({configArray:_0x46bc15}=await fetchModelList(_0x272676[_0x289eb4(0x188)],_0x272676['cookie']),_0x4b7af8[_0x289eb4(0x180)]('Fetched\x20'+_0x46bc15[_0x289eb4(0x174)]+_0x289eb4(0x170)));}catch(_0x14fc11){_0x4b7af8[_0x289eb4(0x183)]('Failed\x20to\x20fetch\x20datasets');throw _0x14fc11;}if(_0x46bc15['length']===0x0)return writeCliSideChannelLine(_0x289eb4(0x198)),{'ok':!![]};let _0x37b35e=_0x46bc15;if(_0x7c6ac6){_0x37b35e=_0x46bc15['filter'](_0x297fad=>_0x7c6ac6['has'](_0x297fad[_0x289eb4(0x1aa)]));const _0x354ca1=[..._0x7c6ac6][_0x289eb4(0x17b)](_0x579e5f=>!_0x46bc15['some'](_0x56f7c5=>_0x56f7c5['datasetCode']===_0x579e5f));_0x354ca1['length']>0x0&&writeCliSideChannelLine(_0x289eb4(0x199)+_0x354ca1[_0x289eb4(0x195)](',\x20')+_0x289eb4(0x17a));if(_0x37b35e[_0x289eb4(0x174)]===0x0)throw CliErrors[_0x289eb4(0x19d)](_0x289eb4(0x19f)+[..._0x7c6ac6]['join'](',\x20'));writeCliSideChannelLine(_0x289eb4(0x1ae)+_0x37b35e['length']+_0x289eb4(0x193)+_0x46bc15[_0x289eb4(0x174)]+_0x289eb4(0x1a0));}let _0x385988=0x0;const _0x2aeb54=await generateDatasetDocs(_0x37b35e,_0x272676[_0x289eb4(0x188)],_0x272676['cookie'],_0x57726c,(_0x391672,_0x23c0f6,_0x4cd76b)=>{const _0x334118=_0x289eb4;_0x385988=_0x391672,process['stdout'][_0x334118(0x18f)](_0x334118(0x177)+String(_0x391672)['padStart'](String(_0x23c0f6)[_0x334118(0x174)])+'/'+_0x23c0f6+']\x20'+_0x4cd76b+_0x334118(0x19b));},_0x2ddcd8);if(_0x385988>0x0)process[_0x289eb4(0x189)][_0x289eb4(0x18f)]('\x0a');const _0x1ef386=_0x2aeb54[_0x289eb4(0x17b)](_0x3ffcd0=>_0x3ffcd0[_0x289eb4(0x1a9)])[_0x289eb4(0x174)],_0x417a31=_0x2aeb54[_0x289eb4(0x17b)](_0x53c532=>!_0x53c532[_0x289eb4(0x1a9)])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x289eb4(0x19c)+_0x1ef386+_0x289eb4(0x1a7)+_0x57726c);if(_0x417a31>0x0){writeCliSideChannelLine('!\x20'+_0x417a31+_0x289eb4(0x173));for(const _0x20aa84 of _0x2aeb54['filter'](_0x1ed246=>!_0x1ed246[_0x289eb4(0x1a9)])){writeCliSideChannelLine('\x20\x20•\x20'+_0x20aa84['datasetName']+'\x20('+_0x20aa84[_0x289eb4(0x1aa)]+'):\x20'+_0x20aa84[_0x289eb4(0x19e)]);}}return{'ok':_0x417a31===0x0,'message':_0x417a31>0x0?_0x289eb4(0x1ac)+_0x1ef386+_0x289eb4(0x18e)+_0x417a31+_0x289eb4(0x178):'Doc\x20generation\x20complete:\x20'+_0x1ef386+_0x289eb4(0x171)};}};
1
+ const a13_0x22d977=a13_0x2613;function a13_0x2613(_0x24740c,_0x155312){_0x24740c=_0x24740c-0x8b;const _0x569dfd=a13_0x569d();let _0x26131b=_0x569dfd[_0x24740c];return _0x26131b;}(function(_0x3e0667,_0x64c270){const _0x18af9a=a13_0x2613,_0x160c10=_0x3e0667();while(!![]){try{const _0x1a9035=-parseInt(_0x18af9a(0xad))/0x1+parseInt(_0x18af9a(0xa8))/0x2+-parseInt(_0x18af9a(0x9e))/0x3*(parseInt(_0x18af9a(0x9f))/0x4)+parseInt(_0x18af9a(0xb3))/0x5*(parseInt(_0x18af9a(0xaa))/0x6)+parseInt(_0x18af9a(0xbd))/0x7+-parseInt(_0x18af9a(0xc4))/0x8*(-parseInt(_0x18af9a(0x8d))/0x9)+-parseInt(_0x18af9a(0xa6))/0xa;if(_0x1a9035===_0x64c270)break;else _0x160c10['push'](_0x160c10['shift']());}catch(_0x20e4ba){_0x160c10['push'](_0x160c10['shift']());}}}(a13_0x569d,0x654fe));import a13_0x1821f7 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';function a13_0x569d(){const _0x50b598=['Fetching\x20dataset\x20list\x20for\x20','904xvvOEA','validation','Doc\x20generation\x20complete:\x20','params','\x0d\x20\x20[','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','35748twYUtx','Doc\x20generation:\x20','string','./docs','Failed\x20to\x20fetch\x20datasets','\x1b[90m*\x20Filtered\x20','cookie','Fetched\x20','isArray','error','\x20succeeded,\x20','split','succeed','datasetCode','):\x20','api','datasetName','3522lppaIv','8aRnQsU','\x20\x20•\x20','write','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','datasetcode','success','!\x20No\x20datasets\x20found.','2185820idtoGk','stdout','1307338foglZj','start','90030OCWZtE','some','fail','820598DSBGNS','padStart','appCode','\x1b[90m*\x20Generating\x20docs\x20for:\x20','generate','\x20dataset(s)','75rWSaHn','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','join','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','trim','str','message','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','filter','must\x20be\x20a\x20JSON\x20object','902454UsUtKh','Output\x20directory\x20(default:\x20./docs)','\x20dataset(s)\x1b[0m','\x20failed','length','map'];a13_0x569d=function(){return _0x50b598;};return a13_0x569d();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':a13_0x22d977(0x9c),'command':a13_0x22d977(0xb1),'description':'Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','risk':a13_0x22d977(0xa1),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':a13_0x22d977(0x8f),'description':a13_0x22d977(0xbe)},{'name':a13_0x22d977(0xa3),'type':a13_0x22d977(0x8f),'description':a13_0x22d977(0x8c)},{'name':'params','type':a13_0x22d977(0x8f),'description':a13_0x22d977(0xb4)}],async 'execute'(_0x12d299){const _0x5be56d=a13_0x22d977,_0x1cc9d5=_0x12d299[_0x5be56d(0xb8)]('output')||_0x5be56d(0x90),_0x18bee1=_0x12d299[_0x5be56d(0xb8)](_0x5be56d(0xa3)),_0x5f0917=_0x12d299[_0x5be56d(0xb8)](_0x5be56d(0xc7));let _0x38a4ac;if(_0x5f0917)try{_0x38a4ac=JSON['parse'](_0x5f0917);if(typeof _0x38a4ac!=='object'||_0x38a4ac===null||Array[_0x5be56d(0x95)](_0x38a4ac))throw new Error(_0x5be56d(0xbc));}catch(_0x463644){throw CliErrors[_0x5be56d(0xc5)]('Invalid\x20--params:\x20'+(_0x463644 instanceof Error?_0x463644[_0x5be56d(0xb9)]:String(_0x463644)),_0x5be56d(0xba));}let _0x4e67b8;if(_0x18bee1){const _0xcb279c=_0x18bee1[_0x5be56d(0x98)](',')[_0x5be56d(0xc2)](_0x3fe4d6=>_0x3fe4d6[_0x5be56d(0xb7)]())[_0x5be56d(0xbb)](_0x34e179=>_0x34e179[_0x5be56d(0xc1)]>0x0);if(_0xcb279c[_0x5be56d(0xc1)]===0x0)throw CliErrors[_0x5be56d(0xc5)]('--datasetcode\x20cannot\x20be\x20empty.');_0x4e67b8=new Set(_0xcb279c),writeCliSideChannelLine(_0x5be56d(0xb0)+_0xcb279c[_0x5be56d(0xb5)](',\x20')+'\x1b[0m');}const _0x490154=a13_0x1821f7(_0x5be56d(0xc3)+_0x12d299[_0x5be56d(0xaf)]+'...')[_0x5be56d(0xa9)]();let _0x4dca77;try{({configArray:_0x4dca77}=await fetchModelList(_0x12d299[_0x5be56d(0xaf)],_0x12d299[_0x5be56d(0x93)]),_0x490154[_0x5be56d(0x99)](_0x5be56d(0x94)+_0x4dca77['length']+_0x5be56d(0xb2)));}catch(_0x44830e){_0x490154[_0x5be56d(0xac)](_0x5be56d(0x91));throw _0x44830e;}if(_0x4dca77[_0x5be56d(0xc1)]===0x0)return writeCliSideChannelLine(_0x5be56d(0xa5)),{'ok':!![]};let _0x139455=_0x4dca77;if(_0x4e67b8){_0x139455=_0x4dca77[_0x5be56d(0xbb)](_0x2a11d1=>_0x4e67b8['has'](_0x2a11d1[_0x5be56d(0x9a)]));const _0x4a5e1a=[..._0x4e67b8][_0x5be56d(0xbb)](_0x51bad3=>!_0x4dca77[_0x5be56d(0xab)](_0x3555be=>_0x3555be[_0x5be56d(0x9a)]===_0x51bad3));_0x4a5e1a[_0x5be56d(0xc1)]>0x0&&writeCliSideChannelLine(_0x5be56d(0xa2)+_0x4a5e1a['join'](',\x20')+'\x1b[0m');if(_0x139455['length']===0x0)throw CliErrors[_0x5be56d(0xc5)](_0x5be56d(0xb6)+[..._0x4e67b8][_0x5be56d(0xb5)](',\x20'));writeCliSideChannelLine(_0x5be56d(0x92)+_0x139455['length']+'\x20of\x20'+_0x4dca77[_0x5be56d(0xc1)]+_0x5be56d(0xbf));}let _0x5c44bf=0x0;const _0x2fa001=await generateDatasetDocs(_0x139455,_0x12d299[_0x5be56d(0xaf)],_0x12d299[_0x5be56d(0x93)],_0x1cc9d5,(_0x134333,_0xd531b4,_0x2dee53)=>{const _0x3818c1=_0x5be56d;_0x5c44bf=_0x134333,process[_0x3818c1(0xa7)]['write'](_0x3818c1(0x8b)+String(_0x134333)[_0x3818c1(0xae)](String(_0xd531b4)[_0x3818c1(0xc1)])+'/'+_0xd531b4+']\x20'+_0x2dee53+'.md');},_0x38a4ac);if(_0x5c44bf>0x0)process['stdout']['write']('\x0a');const _0x156bc6=_0x2fa001[_0x5be56d(0xbb)](_0x15766d=>_0x15766d[_0x5be56d(0xa4)])[_0x5be56d(0xc1)],_0x324222=_0x2fa001[_0x5be56d(0xbb)](_0x1f1544=>!_0x1f1544[_0x5be56d(0xa4)])[_0x5be56d(0xc1)];writeCliSideChannelLine(''),writeCliSideChannelLine('✓\x20Generated\x20'+_0x156bc6+'\x20doc(s)\x20in\x20'+_0x1cc9d5);if(_0x324222>0x0){writeCliSideChannelLine('!\x20'+_0x324222+'\x20doc(s)\x20failed');for(const _0x34d9f0 of _0x2fa001[_0x5be56d(0xbb)](_0x1b9313=>!_0x1b9313[_0x5be56d(0xa4)])){writeCliSideChannelLine(_0x5be56d(0xa0)+_0x34d9f0[_0x5be56d(0x9d)]+'\x20('+_0x34d9f0[_0x5be56d(0x9a)]+_0x5be56d(0x9b)+_0x34d9f0[_0x5be56d(0x96)]);}}return{'ok':_0x324222===0x0,'message':_0x324222>0x0?_0x5be56d(0x8e)+_0x156bc6+_0x5be56d(0x97)+_0x324222+_0x5be56d(0xc0):_0x5be56d(0xc6)+_0x156bc6+'\x20file(s)'};}};
@@ -1 +1 @@
1
- (function(_0x1a953b,_0x85cddf){const _0x4882d0=a14_0x5749,_0x2de7d9=_0x1a953b();while(!![]){try{const _0x57859b=-parseInt(_0x4882d0(0x1d0))/0x1+parseInt(_0x4882d0(0x1cb))/0x2*(-parseInt(_0x4882d0(0x1cd))/0x3)+-parseInt(_0x4882d0(0x1cc))/0x4+-parseInt(_0x4882d0(0x1ca))/0x5+parseInt(_0x4882d0(0x1ce))/0x6*(parseInt(_0x4882d0(0x1c9))/0x7)+-parseInt(_0x4882d0(0x1cf))/0x8+parseInt(_0x4882d0(0x1c8))/0x9;if(_0x57859b===_0x85cddf)break;else _0x2de7d9['push'](_0x2de7d9['shift']());}catch(_0xc61bf2){_0x2de7d9['push'](_0x2de7d9['shift']());}}}(a14_0x220f,0x1b966));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';function a14_0x5749(_0x5b7fd5,_0x48fd01){_0x5b7fd5=_0x5b7fd5-0x1c8;const _0x220ff6=a14_0x220f();let _0x574919=_0x220ff6[_0x5b7fd5];return _0x574919;}import{apiGenerate}from'../../commands/api/generate.js';function a14_0x220f(){const _0x42f4f7=['134980TnMqVO','10ccHdao','187868IcWVoi','7074SPfyOB','426CgTzVT','1130416FZRnwf','176254gmEOed','3465252djUYbe','12943Fwqvsa'];a14_0x220f=function(){return _0x42f4f7;};return a14_0x220f();}export const apiDefinitions=[apiList,apiPull,apiGenerate];
1
+ (function(_0xb20fc0,_0x3488d2){const _0x567f32=a14_0xc37f,_0x400d10=_0xb20fc0();while(!![]){try{const _0x2d9dc6=-parseInt(_0x567f32(0xc1))/0x1*(-parseInt(_0x567f32(0xba))/0x2)+-parseInt(_0x567f32(0xc2))/0x3+-parseInt(_0x567f32(0xb9))/0x4*(parseInt(_0x567f32(0xb8))/0x5)+-parseInt(_0x567f32(0xbc))/0x6+-parseInt(_0x567f32(0xbd))/0x7*(parseInt(_0x567f32(0xc0))/0x8)+parseInt(_0x567f32(0xbf))/0x9*(parseInt(_0x567f32(0xbb))/0xa)+parseInt(_0x567f32(0xbe))/0xb*(parseInt(_0x567f32(0xb7))/0xc);if(_0x2d9dc6===_0x3488d2)break;else _0x400d10['push'](_0x400d10['shift']());}catch(_0x56db4d){_0x400d10['push'](_0x400d10['shift']());}}}(a14_0x4f11,0x2f897));import{apiList}from'../../commands/api/list.js';function a14_0x4f11(){const _0x4eb4c6=['30ZsDdbb','1569558Ovtngj','3332IRJGVv','195998dXhlCy','367317npaxiz','2600DfTsHm','1KcaFSQ','50964pNIiWE','396reXQzJ','207470wfoXFh','20TjdRzk','250058soHlPU'];a14_0x4f11=function(){return _0x4eb4c6;};return a14_0x4f11();}function a14_0xc37f(_0x56b539,_0x367f38){_0x56b539=_0x56b539-0xb7;const _0x4f11e1=a14_0x4f11();let _0xc37f2f=_0x4f11e1[_0x56b539];return _0xc37f2f;}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_0x366053=a15_0x5538;(function(_0xe73154,_0x462c7e){const _0x570642=a15_0x5538,_0x1939e8=_0xe73154();while(!![]){try{const _0xc83702=parseInt(_0x570642(0xe3))/0x1*(parseInt(_0x570642(0xe2))/0x2)+-parseInt(_0x570642(0xe4))/0x3*(-parseInt(_0x570642(0xf4))/0x4)+parseInt(_0x570642(0xf3))/0x5+-parseInt(_0x570642(0xf6))/0x6*(parseInt(_0x570642(0xeb))/0x7)+-parseInt(_0x570642(0xee))/0x8+parseInt(_0x570642(0xea))/0x9+parseInt(_0x570642(0xe7))/0xa*(parseInt(_0x570642(0xe9))/0xb);if(_0xc83702===_0x462c7e)break;else _0x1939e8['push'](_0x1939e8['shift']());}catch(_0x3af5a2){_0x1939e8['push'](_0x1939e8['shift']());}}}(a15_0x16ec,0x22180));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a15_0x5538(_0x1c3d2b,_0x428c44){_0x1c3d2b=_0x1c3d2b-0xdd;const _0x16ecec=a15_0x16ec();let _0x5538b1=_0x16ecec[_0x1c3d2b];return _0x5538b1;}import{resolveTargetApps}from'../../commands/api/shared.js';function a15_0x16ec(){const _0x49a890=['54aTugzp','appcode','boolean','270bgnYnr','list','17798pDRIae','1377891wlhdQN','173600qRpMTG','production','api','403648mYjkSj','rawFlags','isDefault','appCode','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','303600gcQvFE','2860PgEoik','cookie','36iKJjfJ','read','name','env','global','map','862ELiylF','159bUIXLd'];a15_0x16ec=function(){return _0x49a890;};return a15_0x16ec();}export const apiList={'service':a15_0x366053(0xed),'command':a15_0x366053(0xe8),'description':a15_0x366053(0xf2),'risk':a15_0x366053(0xdd),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x366053(0xe0),'type':a15_0x366053(0xe6),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x296854){const _0x70c35=a15_0x366053,_0x468f4b=_0x296854['rawFlags'][_0x70c35(0xe5)]?String(_0x296854[_0x70c35(0xef)][_0x70c35(0xe5)]):undefined,_0x1c023c=resolveTargetApps(_0x296854,_0x468f4b);if(_0x1c023c){const _0x2edb3d=[];for(const _0x14cc1c of _0x1c023c){const _0x1ceeff=_0x14cc1c[_0x70c35(0xf5)]||_0x296854[_0x70c35(0xf5)],_0x3e0de4=_0x14cc1c[_0x70c35(0xdf)]||_0x70c35(0xec);initEnv(_0x3e0de4);const {configArray:_0x20929}=await fetchModelList(_0x14cc1c[_0x70c35(0xe5)],_0x1ceeff);_0x2edb3d['push'](..._0x20929[_0x70c35(0xe1)](_0x551b57=>({..._0x551b57,'_appName':_0x14cc1c[_0x70c35(0xde)],'_appCode':_0x14cc1c['appcode'],'_env':_0x3e0de4,'_isDefault':_0x14cc1c[_0x70c35(0xf0)]})));}return{'ok':!![],'data':_0x2edb3d};}const {configArray:_0x5e6115}=await fetchModelList(_0x296854[_0x70c35(0xf1)],_0x296854[_0x70c35(0xf5)]);return{'ok':!![],'data':_0x5e6115};}};
1
+ const a15_0x1e9a2c=a15_0x1f47;(function(_0x54193f,_0x199c2e){const _0x5c8cc9=a15_0x1f47,_0x1ba1de=_0x54193f();while(!![]){try{const _0x1e186d=-parseInt(_0x5c8cc9(0x15d))/0x1+-parseInt(_0x5c8cc9(0x158))/0x2+parseInt(_0x5c8cc9(0x162))/0x3+-parseInt(_0x5c8cc9(0x16d))/0x4*(parseInt(_0x5c8cc9(0x164))/0x5)+parseInt(_0x5c8cc9(0x166))/0x6*(-parseInt(_0x5c8cc9(0x16c))/0x7)+parseInt(_0x5c8cc9(0x161))/0x8*(parseInt(_0x5c8cc9(0x15f))/0x9)+parseInt(_0x5c8cc9(0x15c))/0xa*(parseInt(_0x5c8cc9(0x156))/0xb);if(_0x1e186d===_0x199c2e)break;else _0x1ba1de['push'](_0x1ba1de['shift']());}catch(_0x5a27ee){_0x1ba1de['push'](_0x1ba1de['shift']());}}}(a15_0x3668,0xbceec));function a15_0x3668(){const _0x2a7283=['cookie','5AAPEIe','isDefault','6kCyKBQ','appcode','read','api','production','name','1480619FTdCvG','4383628tPzzEt','1529LCuxoW','env','2917300pSMgXl','rawFlags','appCode','map','122900pyVogk','942345IBqFUQ','push','13574529OEfGir','list','8lIYiHl','3797088TYVRvX'];a15_0x3668=function(){return _0x2a7283;};return a15_0x3668();}import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x1f47(_0x27051a,_0x84e8a7){_0x27051a=_0x27051a-0x156;const _0x366824=a15_0x3668();let _0x1f47e9=_0x366824[_0x27051a];return _0x1f47e9;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x1e9a2c(0x169),'command':a15_0x1e9a2c(0x160),'description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':a15_0x1e9a2c(0x168),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'global','type':'boolean','description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x540754){const _0x24be2d=a15_0x1e9a2c,_0x21466c=_0x540754[_0x24be2d(0x159)][_0x24be2d(0x167)]?String(_0x540754['rawFlags'][_0x24be2d(0x167)]):undefined,_0x513d3b=resolveTargetApps(_0x540754,_0x21466c);if(_0x513d3b){const _0x4c51e6=[];for(const _0xd14b8 of _0x513d3b){const _0x18a936=_0xd14b8[_0x24be2d(0x163)]||_0x540754['cookie'],_0x279859=_0xd14b8[_0x24be2d(0x157)]||_0x24be2d(0x16a);initEnv(_0x279859);const {configArray:_0x56f376}=await fetchModelList(_0xd14b8[_0x24be2d(0x167)],_0x18a936);_0x4c51e6[_0x24be2d(0x15e)](..._0x56f376[_0x24be2d(0x15b)](_0x5cc223=>({..._0x5cc223,'_appName':_0xd14b8[_0x24be2d(0x16b)],'_appCode':_0xd14b8['appcode'],'_env':_0x279859,'_isDefault':_0xd14b8[_0x24be2d(0x165)]})));}return{'ok':!![],'data':_0x4c51e6};}const {configArray:_0x3e9e89}=await fetchModelList(_0x540754[_0x24be2d(0x15a)],_0x540754[_0x24be2d(0x163)]);return{'ok':!![],'data':_0x3e9e89};}};
@@ -1 +1 @@
1
- const a16_0x26ba7f=a16_0x100b;(function(_0x1319a1,_0x400f50){const _0x2f0016=a16_0x100b,_0x1b4fee=_0x1319a1();while(!![]){try{const _0x534024=-parseInt(_0x2f0016(0x8b))/0x1*(parseInt(_0x2f0016(0x8f))/0x2)+-parseInt(_0x2f0016(0xb6))/0x3*(-parseInt(_0x2f0016(0xab))/0x4)+parseInt(_0x2f0016(0xbc))/0x5*(-parseInt(_0x2f0016(0xaf))/0x6)+parseInt(_0x2f0016(0x9b))/0x7*(-parseInt(_0x2f0016(0xa3))/0x8)+-parseInt(_0x2f0016(0xbb))/0x9+-parseInt(_0x2f0016(0xa4))/0xa+-parseInt(_0x2f0016(0xa9))/0xb*(-parseInt(_0x2f0016(0x99))/0xc);if(_0x534024===_0x400f50)break;else _0x1b4fee['push'](_0x1b4fee['shift']());}catch(_0xd75ffd){_0x1b4fee['push'](_0x1b4fee['shift']());}}}(a16_0x1644,0x3e7dd));import a16_0x11d3c6 from'ora';function a16_0x1644(){const _0x1d4f82=['split','.ts','join','\x20failed','succeed','length','8649672LAfXzX','-api','7PSNtJo','cookie','str','\x20app(s)\x20failed','env','global','fail','appCode','3483656iWlwEv','457210RaqtPI','-client','...','name','Pulled\x20','22JPHawc','apiDir','4GHuLGc','Pulling\x20','rawFlags','start','1228344ejMmtJ','pull','\x20model(s)','Pulling\x20API\x20config\x20for\x20','output','write','boolean','450423TJUjXx','Failed:\x20','\x20dataset(s)\x20→\x20','Output\x20directory\x20(default:\x20','client','2321100tgGHse','5XdxFXs','message','\x20\x20•\x20','slice','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)',')...','clientFilePath','modelCount','714kqiyVZ','appcode','isDefault','apiFilePath','1098jFrpXX','api','string','production'];a16_0x1644=function(){return _0x1d4f82;};return a16_0x1644();}import a16_0x3c1cd6 from'node:path';import{initEnv,getEnv}from'../../constant/env.js';function a16_0x100b(_0x6c5fda,_0xd71e6){_0x6c5fda=_0x6c5fda-0x8b;const _0x164414=a16_0x1644();let _0x100b83=_0x164414[_0x6c5fda];return _0x100b83;}import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':a16_0x26ba7f(0x90),'command':a16_0x26ba7f(0xb0),'description':'Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20('+DEFAULT_API_DIR+'/)','risk':a16_0x26ba7f(0xb4),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x26ba7f(0xb3),'type':a16_0x26ba7f(0x91),'description':a16_0x26ba7f(0xb9)+DEFAULT_API_DIR+'/)'},{'name':a16_0x26ba7f(0xa0),'type':a16_0x26ba7f(0xb5),'description':a16_0x26ba7f(0xc0),'default':![]}],async 'execute'(_0x13f618){const _0x4bf178=a16_0x26ba7f,_0x3759de=_0x13f618[_0x4bf178(0xad)][_0x4bf178(0x8c)]?String(_0x13f618['rawFlags']['appcode']):undefined,_0x5a9bd2=_0x13f618[_0x4bf178(0x9d)](_0x4bf178(0xb3))||undefined,_0x46f694=resolveTargetApps(_0x13f618,_0x3759de);if(_0x46f694){let _0x50d35e=0x0,_0x101005=0x0;for(const _0x41d481 of _0x46f694){const _0x4a5160=_0x41d481[_0x4bf178(0x9c)]||_0x13f618[_0x4bf178(0x9c)],_0x43f6d6=_0x41d481[_0x4bf178(0x9f)]||_0x4bf178(0x92);initEnv(_0x43f6d6);const _0x4de881=_0x41d481[_0x4bf178(0xaa)]||_0x5a9bd2||_0x13f618[_0x4bf178(0xaa)]||DEFAULT_API_DIR,_0x4544ec=_0x41d481[_0x4bf178(0x8d)]?'':_0x41d481[_0x4bf178(0xa7)]||_0x41d481[_0x4bf178(0x8c)],_0x3bcc74=a16_0x11d3c6(_0x4bf178(0xac)+_0x41d481[_0x4bf178(0xa7)]+'\x20('+_0x41d481['appcode']+_0x4bf178(0xc1))[_0x4bf178(0xae)]();try{const {configArray:_0x16f50f}=await fetchModelList(_0x41d481[_0x4bf178(0x8c)],_0x4a5160),_0xab5fca=await generateApiFile(_0x16f50f,_0x4544ec,_0x41d481[_0x4bf178(0x8c)],_0x41d481['isDefault'],_0x43f6d6,_0x4de881,_0x41d481['name']);_0x3bcc74[_0x4bf178(0x97)](_0x41d481[_0x4bf178(0xa7)]+':\x20'+_0x16f50f[_0x4bf178(0x98)]+_0x4bf178(0xb8)+_0xab5fca[_0x4bf178(0xc3)]+_0x4bf178(0xb1)),writeCliSideChannelLine(_0x4bf178(0xbe)+_0xab5fca[_0x4bf178(0x8e)]),writeCliSideChannelLine(_0x4bf178(0xbe)+_0xab5fca[_0x4bf178(0xc2)]),_0x50d35e++;}catch(_0x4d015d){_0x3bcc74[_0x4bf178(0xa1)](_0x41d481[_0x4bf178(0xa7)]+':\x20'+(_0x4d015d instanceof Error?_0x4d015d[_0x4bf178(0xbd)]:String(_0x4d015d))),_0x101005++;}}writeCliSideChannelLine('');if(_0x101005>0x0)writeCliSideChannelLine('!\x20'+_0x101005+_0x4bf178(0x9e));return{'ok':_0x101005===0x0,'message':'Done:\x20'+_0x50d35e+'\x20succeeded,\x20'+_0x101005+_0x4bf178(0x96)};}const _0x1e4669=_0x3759de&&_0x3759de['includes']('-')?_0x3759de[_0x4bf178(0x93)]('-')[_0x4bf178(0xbf)](0x1)[_0x4bf178(0x95)]('-'):'',_0x1d6baa=_0x5a9bd2||_0x13f618['apiDir']||DEFAULT_API_DIR,_0x34bb81=!_0x3759de,_0x116b65=a16_0x11d3c6(_0x4bf178(0xb2)+_0x13f618[_0x4bf178(0xa2)]+_0x4bf178(0xa6))[_0x4bf178(0xae)]();try{const {configArray:_0x306aca}=await fetchModelList(_0x13f618[_0x4bf178(0xa2)],_0x13f618[_0x4bf178(0x9c)]),_0x3d1c46=await generateApiFile(_0x306aca,_0x1e4669,_0x13f618['appCode'],_0x34bb81,getEnv(),_0x1d6baa);_0x116b65[_0x4bf178(0x97)](_0x4bf178(0xa8)+_0x306aca[_0x4bf178(0x98)]+'\x20dataset(s),\x20generated\x20'+_0x3d1c46[_0x4bf178(0xc3)]+_0x4bf178(0xb1));const _0xe3789f=_0x1e4669?_0x1e4669+_0x4bf178(0x9a):_0x4bf178(0x90),_0x3e15f6=_0x1e4669?_0x1e4669+_0x4bf178(0xa5):_0x4bf178(0xba);return writeCliSideChannelLine(_0x4bf178(0xbe)+a16_0x3c1cd6['join'](_0x1d6baa,_0xe3789f+_0x4bf178(0x94))),writeCliSideChannelLine(_0x4bf178(0xbe)+a16_0x3c1cd6[_0x4bf178(0x95)](_0x1d6baa,_0x3e15f6+'.ts')),{'ok':!![],'data':{'datasetCount':_0x306aca['length'],'modelCount':_0x3d1c46[_0x4bf178(0xc3)]}};}catch(_0x13c653){_0x116b65[_0x4bf178(0xa1)](_0x4bf178(0xb7)+(_0x13c653 instanceof Error?_0x13c653[_0x4bf178(0xbd)]:String(_0x13c653)));throw _0x13c653;}}};
1
+ const a16_0x2db621=a16_0x45a0;(function(_0x2901c2,_0x85def6){const _0x10804a=a16_0x45a0,_0x2a43b8=_0x2901c2();while(!![]){try{const _0x282085=-parseInt(_0x10804a(0x18f))/0x1*(parseInt(_0x10804a(0x1ba))/0x2)+-parseInt(_0x10804a(0x1b9))/0x3*(-parseInt(_0x10804a(0x1a7))/0x4)+-parseInt(_0x10804a(0x1b0))/0x5+parseInt(_0x10804a(0x19b))/0x6*(-parseInt(_0x10804a(0x1b2))/0x7)+parseInt(_0x10804a(0x1c1))/0x8*(parseInt(_0x10804a(0x190))/0x9)+-parseInt(_0x10804a(0x1bd))/0xa+parseInt(_0x10804a(0x192))/0xb;if(_0x282085===_0x85def6)break;else _0x2a43b8['push'](_0x2a43b8['shift']());}catch(_0x13236e){_0x2a43b8['push'](_0x2a43b8['shift']());}}}(a16_0x327c,0x71f42));function a16_0x327c(){const _0x35b45c=['boolean','6118700biHnNz','str','...','\x20model(s)','5398944uwPggc','apiDir','join','Failed:\x20','23344EMYefz','9wSbLqF','global','10711943XlNvqJ','\x20\x20•\x20','apiFilePath','.ts','rawFlags','message','client','Pulling\x20API\x20config\x20for\x20','cookie','16608NLEbVF','clientFilePath','\x20dataset(s),\x20generated\x20','\x20app(s)\x20failed',')...','Pulling\x20','succeed','start','\x20dataset(s)\x20→\x20','write','appCode','appcode','4HDcGXY','production','output','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','modelCount','pull','includes','string','Done:\x20','3191110UcjmUw','\x20succeeded,\x20','1988aMmWOx','slice','name','api','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','length','fail','2632863TqdSdg','2kFnbtU','Pulled\x20'];a16_0x327c=function(){return _0x35b45c;};return a16_0x327c();}import a16_0x338f76 from'ora';import a16_0x6649cc from'node:path';function a16_0x45a0(_0x443afd,_0x37042b){_0x443afd=_0x443afd-0x18c;const _0x327c6a=a16_0x327c();let _0x45a0c6=_0x327c6a[_0x443afd];return _0x45a0c6;}import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':'api','command':a16_0x2db621(0x1ac),'description':a16_0x2db621(0x1b6)+DEFAULT_API_DIR+'/)','risk':a16_0x2db621(0x1a4),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x2db621(0x1a9),'type':a16_0x2db621(0x1ae),'description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':a16_0x2db621(0x191),'type':a16_0x2db621(0x1bc),'description':a16_0x2db621(0x1aa),'default':![]}],async 'execute'(_0x398f99){const _0x1b4cc5=a16_0x2db621,_0x322971=_0x398f99[_0x1b4cc5(0x196)][_0x1b4cc5(0x1a6)]?String(_0x398f99[_0x1b4cc5(0x196)][_0x1b4cc5(0x1a6)]):undefined,_0x49cbe1=_0x398f99[_0x1b4cc5(0x1be)](_0x1b4cc5(0x1a9))||undefined,_0x44e877=resolveTargetApps(_0x398f99,_0x322971);if(_0x44e877){let _0x169e0b=0x0,_0x59f113=0x0;for(const _0x140f20 of _0x44e877){const _0x1f5137=_0x140f20['cookie']||_0x398f99[_0x1b4cc5(0x19a)],_0x417e7d=_0x140f20['env']||_0x1b4cc5(0x1a8);initEnv(_0x417e7d);const _0x541335=_0x140f20[_0x1b4cc5(0x18c)]||_0x49cbe1||_0x398f99[_0x1b4cc5(0x18c)]||DEFAULT_API_DIR,_0x2d1cbf=_0x140f20['isDefault']?'':_0x140f20[_0x1b4cc5(0x1b4)]||_0x140f20['appcode'],_0x1e7edf=a16_0x338f76(_0x1b4cc5(0x1a0)+_0x140f20[_0x1b4cc5(0x1b4)]+'\x20('+_0x140f20[_0x1b4cc5(0x1a6)]+_0x1b4cc5(0x19f))[_0x1b4cc5(0x1a2)]();try{const {configArray:_0xb223c8}=await fetchModelList(_0x140f20[_0x1b4cc5(0x1a6)],_0x1f5137),_0xc5a017=await generateApiFile(_0xb223c8,_0x2d1cbf,_0x140f20[_0x1b4cc5(0x1a6)],_0x140f20['isDefault'],_0x417e7d,_0x541335,_0x140f20[_0x1b4cc5(0x1b4)]);_0x1e7edf[_0x1b4cc5(0x1a1)](_0x140f20['name']+':\x20'+_0xb223c8[_0x1b4cc5(0x1b7)]+_0x1b4cc5(0x1a3)+_0xc5a017[_0x1b4cc5(0x1ab)]+_0x1b4cc5(0x1c0)),writeCliSideChannelLine(_0x1b4cc5(0x193)+_0xc5a017[_0x1b4cc5(0x194)]),writeCliSideChannelLine('\x20\x20•\x20'+_0xc5a017[_0x1b4cc5(0x19c)]),_0x169e0b++;}catch(_0x5d9941){_0x1e7edf[_0x1b4cc5(0x1b8)](_0x140f20[_0x1b4cc5(0x1b4)]+':\x20'+(_0x5d9941 instanceof Error?_0x5d9941['message']:String(_0x5d9941))),_0x59f113++;}}writeCliSideChannelLine('');if(_0x59f113>0x0)writeCliSideChannelLine('!\x20'+_0x59f113+_0x1b4cc5(0x19e));return{'ok':_0x59f113===0x0,'message':_0x1b4cc5(0x1af)+_0x169e0b+_0x1b4cc5(0x1b1)+_0x59f113+'\x20failed'};}const _0x350eac=_0x322971&&_0x322971[_0x1b4cc5(0x1ad)]('-')?_0x322971['split']('-')[_0x1b4cc5(0x1b3)](0x1)['join']('-'):'',_0xb18ac=_0x49cbe1||_0x398f99[_0x1b4cc5(0x18c)]||DEFAULT_API_DIR,_0x4cc261=!_0x322971,_0x2ecd22=a16_0x338f76(_0x1b4cc5(0x199)+_0x398f99['appCode']+_0x1b4cc5(0x1bf))[_0x1b4cc5(0x1a2)]();try{const {configArray:_0x43fb79}=await fetchModelList(_0x398f99[_0x1b4cc5(0x1a5)],_0x398f99['cookie']),_0x2cded0=await generateApiFile(_0x43fb79,_0x350eac,_0x398f99[_0x1b4cc5(0x1a5)],_0x4cc261,getEnv(),_0xb18ac);_0x2ecd22['succeed'](_0x1b4cc5(0x1bb)+_0x43fb79[_0x1b4cc5(0x1b7)]+_0x1b4cc5(0x19d)+_0x2cded0[_0x1b4cc5(0x1ab)]+'\x20model(s)');const _0x4075bf=_0x350eac?_0x350eac+'-api':_0x1b4cc5(0x1b5),_0x24d8d2=_0x350eac?_0x350eac+'-client':_0x1b4cc5(0x198);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x6649cc['join'](_0xb18ac,_0x4075bf+_0x1b4cc5(0x195))),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x6649cc[_0x1b4cc5(0x18d)](_0xb18ac,_0x24d8d2+_0x1b4cc5(0x195))),{'ok':!![],'data':{'datasetCount':_0x43fb79['length'],'modelCount':_0x2cded0['modelCount']}};}catch(_0x2cab9b){_0x2ecd22[_0x1b4cc5(0x1b8)](_0x1b4cc5(0x18e)+(_0x2cab9b instanceof Error?_0x2cab9b[_0x1b4cc5(0x197)]:String(_0x2cab9b)));throw _0x2cab9b;}}};
@@ -1 +1 @@
1
- function a17_0x5817(_0x3ea399,_0x1e16f6){_0x3ea399=_0x3ea399-0xa1;const _0x52876f=a17_0x5287();let _0x5817fd=_0x52876f[_0x3ea399];return _0x5817fd;}(function(_0x3ecc64,_0x2b98f0){const _0x597465=a17_0x5817,_0x4ffce8=_0x3ecc64();while(!![]){try{const _0x4f7cd9=parseInt(_0x597465(0xaa))/0x1+-parseInt(_0x597465(0xa9))/0x2+-parseInt(_0x597465(0xae))/0x3+-parseInt(_0x597465(0xb3))/0x4*(parseInt(_0x597465(0xb1))/0x5)+parseInt(_0x597465(0xa7))/0x6*(parseInt(_0x597465(0xa1))/0x7)+parseInt(_0x597465(0xad))/0x8+parseInt(_0x597465(0xb4))/0x9;if(_0x4f7cd9===_0x2b98f0)break;else _0x4ffce8['push'](_0x4ffce8['shift']());}catch(_0x2d0d0f){_0x4ffce8['push'](_0x4ffce8['shift']());}}}(a17_0x5287,0xe7fa2));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';function a17_0x5287(){const _0x469543=['join','415vzTPee','merged','83156dmhsZW','32725134OtuXLD','7AxNQrc','project','validation','length','selectedAppName','App\x20\x22','11250978rvYIEh','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','3105662UcXNjo','578498TOBxdt','bool','name','198656bfPUfX','5658369JCUeJF','filter'];a17_0x5287=function(){return _0x469543;};return a17_0x5287();}export function resolveTargetApps(_0x2985dd,_0x5c4163){const _0x1e04b3=a17_0x5817;if(_0x5c4163)return null;const _0x16fb16=_0x2985dd[_0x1e04b3(0xab)]('global')?_0x1e04b3(0xb2):_0x1e04b3(0xa2);let _0x5b8311=getMultiAppConfigs(_0x16fb16);if(!_0x5b8311||_0x5b8311[_0x1e04b3(0xa4)]===0x0)return null;if(_0x2985dd[_0x1e04b3(0xa5)]){const _0x19d671=_0x5b8311[_0x1e04b3(0xaf)](_0x1923d1=>_0x1923d1['name']===_0x2985dd[_0x1e04b3(0xa5)]);if(_0x19d671[_0x1e04b3(0xa4)]===0x0){const _0x4a63bd=_0x5b8311['map'](_0x2d11e5=>_0x2d11e5[_0x1e04b3(0xac)])[_0x1e04b3(0xb0)](',\x20');throw CliErrors[_0x1e04b3(0xa3)](_0x1e04b3(0xa6)+_0x2985dd[_0x1e04b3(0xa5)]+_0x1e04b3(0xa8)+_0x4a63bd);}_0x5b8311=_0x19d671;}return _0x5b8311;}
1
+ (function(_0x2b8bff,_0x1b4a03){const _0x320402=a17_0x117d,_0x5da728=_0x2b8bff();while(!![]){try{const _0x2239a4=parseInt(_0x320402(0x76))/0x1+parseInt(_0x320402(0x7f))/0x2+-parseInt(_0x320402(0x7e))/0x3+-parseInt(_0x320402(0x81))/0x4*(parseInt(_0x320402(0x85))/0x5)+-parseInt(_0x320402(0x78))/0x6*(parseInt(_0x320402(0x7b))/0x7)+parseInt(_0x320402(0x7a))/0x8+-parseInt(_0x320402(0x7d))/0x9*(-parseInt(_0x320402(0x7c))/0xa);if(_0x2239a4===_0x1b4a03)break;else _0x5da728['push'](_0x5da728['shift']());}catch(_0x55d5de){_0x5da728['push'](_0x5da728['shift']());}}}(a17_0x4ba9,0x2d94c));function a17_0x117d(_0x5c9c58,_0x34ff16){_0x5c9c58=_0x5c9c58-0x76;const _0x4ba9d4=a17_0x4ba9();let _0x117db9=_0x4ba9d4[_0x5c9c58];return _0x117db9;}function a17_0x4ba9(){const _0x5c3874=['project','4295IxDGHY','merged','bool','selectedAppName','146411NGmBaK','filter','460914lohYQs','length','2018512JghOmj','21BrVQJf','6305230UBCNPc','9RkRqpi','965907oUlSEI','127572vVgWlq','join','1648CsQfzn','global','name'];a17_0x4ba9=function(){return _0x5c3874;};return a17_0x4ba9();}import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x5453c6,_0x51ac61){const _0x562658=a17_0x117d;if(_0x51ac61)return null;const _0x4ab3ca=_0x5453c6[_0x562658(0x87)](_0x562658(0x82))?_0x562658(0x86):_0x562658(0x84);let _0x9d3d03=getMultiAppConfigs(_0x4ab3ca);if(!_0x9d3d03||_0x9d3d03[_0x562658(0x79)]===0x0)return null;if(_0x5453c6[_0x562658(0x88)]){const _0x4f5020=_0x9d3d03[_0x562658(0x77)](_0x2f2904=>_0x2f2904['name']===_0x5453c6[_0x562658(0x88)]);if(_0x4f5020[_0x562658(0x79)]===0x0){const _0x59b83b=_0x9d3d03['map'](_0x4e376b=>_0x4e376b[_0x562658(0x83)])[_0x562658(0x80)](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x5453c6[_0x562658(0x88)]+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x59b83b);}_0x9d3d03=_0x4f5020;}return _0x9d3d03;}
@@ -1 +1 @@
1
- const a18_0x116574=a18_0x34e9;(function(_0x2a7128,_0x505168){const _0x16795a=a18_0x34e9,_0x40c899=_0x2a7128();while(!![]){try{const _0x144813=parseInt(_0x16795a(0x1be))/0x1+parseInt(_0x16795a(0x1b4))/0x2*(parseInt(_0x16795a(0x1ad))/0x3)+parseInt(_0x16795a(0x1ac))/0x4*(-parseInt(_0x16795a(0x1c6))/0x5)+-parseInt(_0x16795a(0x1b9))/0x6*(-parseInt(_0x16795a(0x1b6))/0x7)+-parseInt(_0x16795a(0x1c1))/0x8+parseInt(_0x16795a(0x1b2))/0x9*(-parseInt(_0x16795a(0x1c5))/0xa)+-parseInt(_0x16795a(0x1bf))/0xb;if(_0x144813===_0x505168)break;else _0x40c899['push'](_0x40c899['shift']());}catch(_0x22eee0){_0x40c899['push'](_0x40c899['shift']());}}}(a18_0x1732,0x31bfc));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';function a18_0x1732(){const _0x2664db=['global','236490eyVYTD','50GuvmtA','\x20app\x20add\x20<name>\x20--appcode\x20<code>','str','bool','Missing\x20app\x20name.','Add\x20or\x20update\x20an\x20app\x20in\x20config','6616bhvOoJ','142524MAxaKU','apps','defaultApp','appcode','trim','108KOIorO','args','2iyULDe','Use\x20global\x20config\x20scope','1973405JTlxJt','\x22\x20(appcode:\x20','\x20Set\x20as\x20default\x20app.','6mIWSmg','\x20app\x20\x22','Updated','string','validation','231885wPWFsy','450054wYlVoZ','App\x20code','130352imfvyr','Usage:\x20','boolean'];a18_0x1732=function(){return _0x2664db;};return a18_0x1732();}function a18_0x34e9(_0x15cf76,_0x5a2c1a){_0x15cf76=_0x15cf76-0x1aa;const _0x1732f6=a18_0x1732();let _0x34e9b2=_0x1732f6[_0x15cf76];return _0x34e9b2;}async function validateArgs(_0x3cbf51){const _0x330e13=a18_0x34e9,_0x99d778=_0x3cbf51[_0x330e13(0x1b3)][0x0]?.['trim']();if(!_0x99d778)throw CliErrors[_0x330e13(0x1bd)](_0x330e13(0x1aa),_0x330e13(0x1c2)+CLI_BIN_NAME+_0x330e13(0x1c7));}async function execute(_0x531900){const _0xe07f35=a18_0x34e9,_0x534f77=_0x531900['args'][0x0]?.[_0xe07f35(0x1b1)]();if(!_0x534f77)throw CliErrors[_0xe07f35(0x1bd)](_0xe07f35(0x1aa),_0xe07f35(0x1c2)+CLI_BIN_NAME+_0xe07f35(0x1c7));const _0x589691=_0x531900[_0xe07f35(0x1c8)](_0xe07f35(0x1b0));if(!_0x589691)throw CliErrors['flagMissing'](_0xe07f35(0x1b0),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x53843d={'global':_0x531900[_0xe07f35(0x1c9)](_0xe07f35(0x1c4))},_0x24e9be=readConfig(_0x53843d);if(!_0x24e9be['apps'])_0x24e9be['apps']={};const _0x210eb6={'appcode':_0x589691,...collectAppProfileOverrides(_0x52d9ca=>_0x531900[_0xe07f35(0x1c8)](_0x52d9ca))},_0x3c3a33=_0x24e9be[_0xe07f35(0x1ae)],_0x47cb2d=!!_0x3c3a33[_0x534f77];_0x3c3a33[_0x534f77]=_0x210eb6;if(!_0x24e9be[_0xe07f35(0x1af)])_0x24e9be[_0xe07f35(0x1af)]=_0x534f77;writeConfig(_0x24e9be,_0x53843d);const _0x1aebaa=!_0x47cb2d&&_0x24e9be[_0xe07f35(0x1af)]===_0x534f77?_0xe07f35(0x1b8):'',_0x1c39be=(_0x47cb2d?_0xe07f35(0x1bb):'Added')+_0xe07f35(0x1ba)+_0x534f77+_0xe07f35(0x1b7)+_0x589691+')'+scopeLabel(_0x53843d)+'.'+_0x1aebaa;return{'ok':!![],'message':_0x1c39be};}export const appAddDefinition={'service':'app','command':'add','description':a18_0x116574(0x1ab),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name','required':!![]}],'flags':[{'name':a18_0x116574(0x1b0),'type':a18_0x116574(0x1bc),'description':a18_0x116574(0x1c0),'required':!![]},{'name':a18_0x116574(0x1c4),'type':a18_0x116574(0x1c3),'description':a18_0x116574(0x1b5),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ const a18_0xad6752=a18_0x3152;(function(_0x385ec7,_0x11032d){const _0x3c73eb=a18_0x3152,_0x960704=_0x385ec7();while(!![]){try{const _0x2a6d0d=parseInt(_0x3c73eb(0x1bd))/0x1*(-parseInt(_0x3c73eb(0x1bb))/0x2)+-parseInt(_0x3c73eb(0x1bc))/0x3*(-parseInt(_0x3c73eb(0x1cc))/0x4)+parseInt(_0x3c73eb(0x1b6))/0x5*(-parseInt(_0x3c73eb(0x1bf))/0x6)+-parseInt(_0x3c73eb(0x1d2))/0x7+parseInt(_0x3c73eb(0x1b8))/0x8*(parseInt(_0x3c73eb(0x1c3))/0x9)+-parseInt(_0x3c73eb(0x1b3))/0xa+parseInt(_0x3c73eb(0x1c7))/0xb;if(_0x2a6d0d===_0x11032d)break;else _0x960704['push'](_0x960704['shift']());}catch(_0x4052f5){_0x960704['push'](_0x960704['shift']());}}}(a18_0x2c79,0x615b3));function a18_0x3152(_0x6f2812,_0x571c13){_0x6f2812=_0x6f2812-0x1b3;const _0x2c7925=a18_0x2c79();let _0x315258=_0x2c7925[_0x6f2812];return _0x315258;}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(_0x570a5f){const _0x2a04df=a18_0x3152,_0x42ec98=_0x570a5f[_0x2a04df(0x1d1)][0x0]?.[_0x2a04df(0x1c8)]();if(!_0x42ec98)throw CliErrors['validation'](_0x2a04df(0x1d3),_0x2a04df(0x1d0)+CLI_BIN_NAME+_0x2a04df(0x1be));}async function execute(_0x3bfbe5){const _0x2bbc94=a18_0x3152,_0x3b643e=_0x3bfbe5[_0x2bbc94(0x1d1)][0x0]?.[_0x2bbc94(0x1c8)]();if(!_0x3b643e)throw CliErrors[_0x2bbc94(0x1ba)]('Missing\x20app\x20name.',_0x2bbc94(0x1d0)+CLI_BIN_NAME+_0x2bbc94(0x1be));const _0x2eab87=_0x3bfbe5[_0x2bbc94(0x1c4)](_0x2bbc94(0x1c9));if(!_0x2eab87)throw CliErrors[_0x2bbc94(0x1b9)](_0x2bbc94(0x1c9),'Usage:\x20'+CLI_BIN_NAME+_0x2bbc94(0x1be));const _0x14d8a9={'global':_0x3bfbe5[_0x2bbc94(0x1c1)](_0x2bbc94(0x1cb))},_0x380555=readConfig(_0x14d8a9);if(!_0x380555[_0x2bbc94(0x1b5)])_0x380555['apps']={};const _0x598d5f={'appcode':_0x2eab87,...collectAppProfileOverrides(_0x1f9785=>_0x3bfbe5[_0x2bbc94(0x1c4)](_0x1f9785))},_0x243cc8=_0x380555[_0x2bbc94(0x1b5)],_0x1f7a1a=!!_0x243cc8[_0x3b643e];_0x243cc8[_0x3b643e]=_0x598d5f;if(!_0x380555[_0x2bbc94(0x1ce)])_0x380555['defaultApp']=_0x3b643e;writeConfig(_0x380555,_0x14d8a9);const _0x5ea57b=!_0x1f7a1a&&_0x380555[_0x2bbc94(0x1ce)]===_0x3b643e?'\x20Set\x20as\x20default\x20app.':'',_0xe462b0=(_0x1f7a1a?'Updated':_0x2bbc94(0x1cd))+'\x20app\x20\x22'+_0x3b643e+'\x22\x20(appcode:\x20'+_0x2eab87+')'+scopeLabel(_0x14d8a9)+'.'+_0x5ea57b;return{'ok':!![],'message':_0xe462b0};}function a18_0x2c79(){const _0x2060e1=['\x20app\x20add\x20<name>\x20--appcode\x20<code>','42hYYrXz','App\x20profile\x20name','bool','boolean','6858quQJbr','str','add','name','21048357wnlHVl','trim','appcode','write','global','317372wWOBVG','Added','defaultApp','string','Usage:\x20','args','3904985DByRMz','Missing\x20app\x20name.','6109680eAAKBL','Use\x20global\x20config\x20scope','apps','363305ucppua','App\x20code','4456KdnLYn','flagMissing','validation','39936ioFrbF','12piNYaU','29MRvhHB'];a18_0x2c79=function(){return _0x2060e1;};return a18_0x2c79();}export const appAddDefinition={'service':'app','command':a18_0xad6752(0x1c5),'description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a18_0xad6752(0x1ca),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0xad6752(0x1c6),'description':a18_0xad6752(0x1c0),'required':!![]}],'flags':[{'name':'appcode','type':a18_0xad6752(0x1cf),'description':a18_0xad6752(0x1b7),'required':!![]},{'name':a18_0xad6752(0x1cb),'type':a18_0xad6752(0x1c2),'description':a18_0xad6752(0x1b4),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};