@lovrabet/rabetbase-cli 2.1.4 → 2.1.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -0
  48. package/lib/commands/data/getOne.js +1 -0
  49. package/lib/commands/data/index.js +1 -0
  50. package/lib/commands/data/shared.js +1 -0
  51. package/lib/commands/dataset/detail.js +1 -1
  52. package/lib/commands/dataset/index.js +1 -1
  53. package/lib/commands/dataset/links.js +1 -1
  54. package/lib/commands/dataset/list.js +1 -1
  55. package/lib/commands/dataset/operations.js +1 -1
  56. package/lib/commands/db/analyze-cancel.js +1 -1
  57. package/lib/commands/db/analyze-start.js +1 -1
  58. package/lib/commands/db/analyze-status.js +1 -1
  59. package/lib/commands/db/create.js +1 -1
  60. package/lib/commands/db/delete.js +1 -1
  61. package/lib/commands/db/detail.js +1 -1
  62. package/lib/commands/db/diff.js +1 -1
  63. package/lib/commands/db/index.js +1 -1
  64. package/lib/commands/db/list.js +1 -1
  65. package/lib/commands/db/shared.js +1 -1
  66. package/lib/commands/db/tables.js +1 -1
  67. package/lib/commands/db/test.js +1 -1
  68. package/lib/commands/db/update.js +1 -1
  69. package/lib/commands/doctor.js +1 -1
  70. package/lib/commands/init/index.js +1 -1
  71. package/lib/commands/logs/index.js +1 -1
  72. package/lib/commands/menu/index.js +1 -1
  73. package/lib/commands/menu/shared/compare-table.js +1 -1
  74. package/lib/commands/menu/shared/index.js +1 -1
  75. package/lib/commands/menu/shared/inquirer.js +1 -1
  76. package/lib/commands/menu/shared/local-pages.js +1 -1
  77. package/lib/commands/menu/shared/logic.js +1 -1
  78. package/lib/commands/menu/shared/service.js +1 -1
  79. package/lib/commands/menu/shared/sync-core.js +1 -1
  80. package/lib/commands/menu/shared/update-core.js +1 -1
  81. package/lib/commands/menu/shared/valid-url.js +1 -1
  82. package/lib/commands/menu/sync.js +1 -1
  83. package/lib/commands/menu/update.js +1 -1
  84. package/lib/commands/page/generate-start.js +1 -1
  85. package/lib/commands/page/generate-status.js +1 -1
  86. package/lib/commands/page/index.js +1 -1
  87. package/lib/commands/page/pull.js +1 -1
  88. package/lib/commands/page/push.js +1 -1
  89. package/lib/commands/page/shared.js +1 -1
  90. package/lib/commands/page/standard-page-status.js +1 -1
  91. package/lib/commands/page/sync.js +1 -1
  92. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  93. package/lib/commands/project/create/format-elapsed.js +1 -1
  94. package/lib/commands/project/create/main.js +1 -1
  95. package/lib/commands/project/create/non-interactive.js +1 -1
  96. package/lib/commands/project/create/project-template-path.js +1 -1
  97. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  98. package/lib/commands/project/create/use-format-code.js +1 -1
  99. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  100. package/lib/commands/project/index.js +1 -1
  101. package/lib/commands/project/init.js +1 -1
  102. package/lib/commands/project/upgrade.js +1 -1
  103. package/lib/commands/registry.js +1 -1
  104. package/lib/commands/run/index.js +1 -1
  105. package/lib/commands/schema.js +1 -1
  106. package/lib/commands/skill/index.js +1 -1
  107. package/lib/commands/sql/create.js +1 -1
  108. package/lib/commands/sql/delete.js +1 -1
  109. package/lib/commands/sql/detail.js +1 -1
  110. package/lib/commands/sql/exec.js +1 -1
  111. package/lib/commands/sql/index.js +1 -1
  112. package/lib/commands/sql/list.js +1 -1
  113. package/lib/commands/sql/pull.js +1 -1
  114. package/lib/commands/sql/push.js +1 -1
  115. package/lib/commands/sql/save.js +1 -1
  116. package/lib/commands/sql/shared.js +1 -1
  117. package/lib/commands/sql/status.js +1 -1
  118. package/lib/commands/sql/validate.js +1 -1
  119. package/lib/config/schema.js +1 -1
  120. package/lib/constant/cdn.js +1 -1
  121. package/lib/constant/cli.js +1 -1
  122. package/lib/constant/defaults.js +1 -1
  123. package/lib/constant/domain.js +1 -1
  124. package/lib/constant/env.js +1 -1
  125. package/lib/constant/output.js +1 -1
  126. package/lib/constant/paths.js +1 -1
  127. package/lib/constant/risk.js +1 -1
  128. package/lib/context.js +1 -1
  129. package/lib/core/alias-resolver.js +1 -1
  130. package/lib/core/api-client.js +1 -1
  131. package/lib/core/bff/config.js +1 -1
  132. package/lib/core/bff/file-system.js +1 -1
  133. package/lib/core/bff/hash.js +1 -1
  134. package/lib/core/bff/lock.js +1 -1
  135. package/lib/core/bff/utils.js +1 -1
  136. package/lib/core/db-resolver.js +1 -1
  137. package/lib/core/page/file-system.js +1 -1
  138. package/lib/core/page/hash.js +1 -1
  139. package/lib/core/page/lock.js +1 -1
  140. package/lib/core/sql-sync/config.js +1 -1
  141. package/lib/core/sql-sync/file-system.js +1 -1
  142. package/lib/core/sql-sync/hash.js +1 -1
  143. package/lib/core/sql-sync/lock.js +1 -1
  144. package/lib/core/sql-sync/utils.js +1 -1
  145. package/lib/core/sql-validator.js +1 -1
  146. package/lib/errors.js +1 -1
  147. package/lib/framework/build-all-flags.js +1 -1
  148. package/lib/framework/flags.js +1 -1
  149. package/lib/framework/help.js +1 -1
  150. package/lib/framework/index.js +1 -1
  151. package/lib/framework/output.js +1 -1
  152. package/lib/framework/response.js +1 -1
  153. package/lib/framework/runner-alias.js +1 -1
  154. package/lib/framework/runner.js +1 -1
  155. package/lib/framework/schema-export.js +1 -1
  156. package/lib/framework/types.js +1 -1
  157. package/lib/generated/build-info.js +1 -1
  158. package/lib/help.js +1 -1
  159. package/lib/skills/main.js +1 -1
  160. package/lib/skills/npx-skills-add.js +1 -1
  161. package/lib/telemetry/cli-command-trace.js +1 -1
  162. package/lib/telemetry/cli-help-trace.js +1 -1
  163. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  164. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  165. package/lib/telemetry/send-cli-trace-log.js +1 -1
  166. package/lib/utils/ai_config.js +1 -1
  167. package/lib/utils/apply-jq-filter.js +1 -1
  168. package/lib/utils/cdn-config.js +1 -1
  169. package/lib/utils/check-sdk-version.js +1 -1
  170. package/lib/utils/cli-version-check.js +1 -1
  171. package/lib/utils/cli-version-policy.js +1 -1
  172. package/lib/utils/config.js +1 -1
  173. package/lib/utils/copy-directory.js +1 -1
  174. package/lib/utils/entity-with-id.js +1 -1
  175. package/lib/utils/file-utils.js +1 -1
  176. package/lib/utils/guides-cdn.js +1 -1
  177. package/lib/utils/http-client.js +1 -1
  178. package/lib/utils/is-non-interactive.js +1 -1
  179. package/lib/utils/logger.js +1 -1
  180. package/lib/utils/params.js +1 -0
  181. package/lib/utils/platform.js +1 -1
  182. package/lib/utils/rules-cdn.js +1 -1
  183. package/lib/utils/sleep.js +1 -1
  184. package/lib/utils/template-replacer.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/with-active-cookie.js +1 -1
  187. package/lib/utils/write-cli-side-channel.js +1 -1
  188. package/package.json +4 -4
  189. package/templates/skill/SKILL.md.tpl +1 -1
@@ -1 +1 @@
1
- function a0_0x1d6f(){const _0x2f49e6=['1995675GVbkch','81HkpbjM','✗\x20Failed:\x20','log','message','.md\x20(','tableName','Invalid\x20response\x20format\x20(','1053246Dyyenn','markdown','生成文档成功:\x20','):\x20missing\x20data.markdown\x20field','Waiting\x203\x20seconds...\x0a','1046616PvpydR','29433270YNSMcT','string','join','datasetCode','success','.md','生成文档失败:\x20','6650210sujSlc','length','849096msIawr','3XqTato','./docs','push','name','error','api-doc','utf8','✓\x20Generated:\x20','3xLDPUN','4970236vwBmyf','/api/node-toolbox/api-doc-generator',']\x20Generating:\x20'];a0_0x1d6f=function(){return _0x2f49e6;};return a0_0x1d6f();}const a0_0x13499d=a0_0xd0aa;(function(_0x1686ff,_0x52b43b){const _0x308f9c=a0_0xd0aa,_0x5c29ca=_0x1686ff();while(!![]){try{const _0x257bd5=parseInt(_0x308f9c(0xdf))/0x1*(parseInt(_0x308f9c(0xcf))/0x2)+parseInt(_0x308f9c(0xe7))/0x3*(-parseInt(_0x308f9c(0xe8))/0x4)+-parseInt(_0x308f9c(0xc7))/0x5+-parseInt(_0x308f9c(0xd4))/0x6+-parseInt(_0x308f9c(0xdc))/0x7+-parseInt(_0x308f9c(0xde))/0x8*(parseInt(_0x308f9c(0xc8))/0x9)+parseInt(_0x308f9c(0xd5))/0xa;if(_0x257bd5===_0x52b43b)break;else _0x5c29ca['push'](_0x5c29ca['shift']());}catch(_0x1075ab){_0x5c29ca['push'](_0x5c29ca['shift']());}}}(a0_0x1d6f,0xc3c0b));import{mkdirSync,writeFileSync}from'node:fs';import a0_0xaaa614 from'node:path';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a0_0xd0aa(_0x43c73c,_0x5de5cc){_0x43c73c=_0x43c73c-0xc7;const _0x1d6fde=a0_0x1d6f();let _0xd0aa90=_0x1d6fde[_0x43c73c];return _0xd0aa90;}import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x142d01){const _0x4d2cd4=a0_0xd0aa,{appCode:_0xf0310a,cookie:_0x2610d6,datasetCode:_0x4039ac,datasetId:_0x58543f,extraParams:_0x18ca13}=_0x142d01,_0x5abdc9=getApiDomain()+_0x4d2cd4(0xe9),_0x126cec=await platformFetch(_0x5abdc9,{'method':'POST','body':{'appCode':_0xf0310a,'datasetCode':_0x4039ac,'datasetId':_0x58543f,..._0x18ca13||{}},'cookie':_0x2610d6,'label':'Fetch\x20doc\x20('+_0x4039ac+')'});if(!_0x126cec||typeof _0x126cec[_0x4d2cd4(0xd0)]!==_0x4d2cd4(0xd6))throw new Error(_0x4d2cd4(0xce)+_0x4039ac+_0x4d2cd4(0xd2));return _0x126cec[_0x4d2cd4(0xd0)];}function delay(_0x4236cc){return new Promise(_0x4001c4=>setTimeout(_0x4001c4,_0x4236cc));}export async function generateDatasetDocs(_0x10388a,_0x45da8b,_0x31e4ea,_0x3136ae=a0_0x13499d(0xe0),_0x1d86a5,_0x46bf07){const _0x297605=a0_0x13499d;mkdirSync(_0x3136ae,{'recursive':!![]});const _0x32254b=[],_0x179bde=_0x10388a['length'];console[_0x297605(0xca)]('\x0a'+_0x179bde+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x4a3649=0x0;_0x4a3649<_0x10388a[_0x297605(0xdd)];_0x4a3649++){const _0x18eed8=_0x10388a[_0x4a3649],_0x37d33a=_0x4a3649+0x1,_0x5bad6f=_0x18eed8[_0x297605(0xcd)];try{console['log']('['+_0x37d33a+'/'+_0x179bde+_0x297605(0xea)+_0x5bad6f+_0x297605(0xcc)+_0x18eed8['name']+')');if(_0x1d86a5)_0x1d86a5(_0x37d33a,_0x179bde,_0x5bad6f);const _0x512a1c=await fetchDatasetDoc({'appCode':_0x45da8b,'cookie':_0x31e4ea,'datasetCode':_0x18eed8[_0x297605(0xd8)],'datasetId':_0x18eed8['id'],'enableAI':![],'extraParams':_0x46bf07}),_0xb5d3f6=a0_0xaaa614[_0x297605(0xd7)](_0x3136ae,_0x5bad6f+_0x297605(0xda));writeFileSync(_0xb5d3f6,_0x512a1c,{'encoding':_0x297605(0xe5)}),console[_0x297605(0xca)](_0x297605(0xe6)+_0x5bad6f+_0x297605(0xda)),logger[_0x297605(0xd9)](_0x297605(0xe4),_0x297605(0xd1)+_0x5bad6f,undefined,{'datasetCode':_0x18eed8[_0x297605(0xd8)],'datasetName':_0x18eed8['name'],'filePath':_0xb5d3f6,'progress':_0x37d33a+'/'+_0x179bde}),_0x32254b[_0x297605(0xe1)]({'datasetCode':_0x18eed8[_0x297605(0xd8)],'datasetName':_0x18eed8['name'],'filePath':_0xb5d3f6,'success':!![]});if(_0x37d33a<_0x179bde)await delay(0x1388);}catch(_0x245ee7){const _0x12605f=_0x245ee7 instanceof Error?_0x245ee7[_0x297605(0xcb)]:String(_0x245ee7);console[_0x297605(0xca)](_0x297605(0xc9)+_0x5bad6f+'.md\x20-\x20'+_0x12605f),logger[_0x297605(0xe3)]('api-doc',_0x297605(0xdb)+_0x18eed8[_0x297605(0xd8)],{'datasetCode':_0x18eed8['datasetCode'],'datasetName':_0x18eed8[_0x297605(0xe2)],'error':_0x12605f,'progress':_0x37d33a+'/'+_0x179bde}),_0x32254b[_0x297605(0xe1)]({'datasetCode':_0x18eed8[_0x297605(0xd8)],'datasetName':_0x18eed8['name'],'filePath':'','success':![],'error':_0x12605f}),_0x37d33a<_0x179bde&&(console[_0x297605(0xca)](_0x297605(0xd3)),await delay(0xbb8));}}return _0x32254b;}
1
+ (function(_0x124bf7,_0x1a507c){const _0x2cc9a4=a0_0x5de4,_0x3b3a88=_0x124bf7();while(!![]){try{const _0x14c33=parseInt(_0x2cc9a4(0x182))/0x1*(parseInt(_0x2cc9a4(0x174))/0x2)+parseInt(_0x2cc9a4(0x170))/0x3+-parseInt(_0x2cc9a4(0x16e))/0x4+parseInt(_0x2cc9a4(0x183))/0x5+parseInt(_0x2cc9a4(0x188))/0x6+parseInt(_0x2cc9a4(0x186))/0x7*(-parseInt(_0x2cc9a4(0x187))/0x8)+parseInt(_0x2cc9a4(0x18a))/0x9;if(_0x14c33===_0x1a507c)break;else _0x3b3a88['push'](_0x3b3a88['shift']());}catch(_0x4514cf){_0x3b3a88['push'](_0x3b3a88['shift']());}}}(a0_0x4158,0x6dcd5));import{mkdirSync,writeFileSync}from'node:fs';import a0_0xc6308a from'node:path';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a0_0x5de4(_0x281b77,_0x260791){_0x281b77=_0x281b77-0x169;const _0x415814=a0_0x4158();let _0x5de44a=_0x415814[_0x281b77];return _0x5de44a;}import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x5d3cdf){const _0x2ad168=a0_0x5de4,{appCode:_0x417ba2,cookie:_0x3e027c,datasetCode:_0x3d5140,datasetId:_0x1b8b12,extraParams:_0x1ae7da}=_0x5d3cdf,_0x19fb11=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x46e904=await platformFetch(_0x19fb11,{'method':_0x2ad168(0x173),'body':{'appCode':_0x417ba2,'datasetCode':_0x3d5140,'datasetId':_0x1b8b12,..._0x1ae7da||{}},'cookie':_0x3e027c,'label':_0x2ad168(0x189)+_0x3d5140+')'});if(!_0x46e904||typeof _0x46e904[_0x2ad168(0x178)]!==_0x2ad168(0x175))throw new Error(_0x2ad168(0x17b)+_0x3d5140+'):\x20missing\x20data.markdown\x20field');return _0x46e904[_0x2ad168(0x178)];}function a0_0x4158(){const _0x48856c=['error','POST','8HQjlCw','string','utf8','api-doc','markdown',']\x20Generating:\x20','.md\x20-\x20','Invalid\x20response\x20format\x20(','生成文档成功:\x20','✓\x20Generated:\x20','tableName','push','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','join','27413oIevtw','2455210AXYunY','datasetCode','length','2905868VQnbZo','16uQzozm','638232wTkutj','Fetch\x20doc\x20(','6791247jweiBC','.md\x20(','.md','生成文档失败:\x20','name','message','3235920oVSBMu','✗\x20Failed:\x20','1881984gVnZdt','log'];a0_0x4158=function(){return _0x48856c;};return a0_0x4158();}function delay(_0x47cbfd){return new Promise(_0x5e1125=>setTimeout(_0x5e1125,_0x47cbfd));}export async function generateDatasetDocs(_0x14fc9d,_0x28c128,_0x265182,_0xb91ca4='./docs',_0x2f3121,_0x187418){const _0x3d69b3=a0_0x5de4;mkdirSync(_0xb91ca4,{'recursive':!![]});const _0x8da5e8=[],_0x4d43d5=_0x14fc9d[_0x3d69b3(0x185)];console['log']('\x0a'+_0x4d43d5+_0x3d69b3(0x180));for(let _0x5eb1d4=0x0;_0x5eb1d4<_0x14fc9d[_0x3d69b3(0x185)];_0x5eb1d4++){const _0x46026f=_0x14fc9d[_0x5eb1d4],_0x3b7c8b=_0x5eb1d4+0x1,_0x5cc4b0=_0x46026f[_0x3d69b3(0x17e)];try{console[_0x3d69b3(0x171)]('['+_0x3b7c8b+'/'+_0x4d43d5+_0x3d69b3(0x179)+_0x5cc4b0+_0x3d69b3(0x169)+_0x46026f[_0x3d69b3(0x16c)]+')');if(_0x2f3121)_0x2f3121(_0x3b7c8b,_0x4d43d5,_0x5cc4b0);const _0x7d79ed=await fetchDatasetDoc({'appCode':_0x28c128,'cookie':_0x265182,'datasetCode':_0x46026f[_0x3d69b3(0x184)],'datasetId':_0x46026f['id'],'enableAI':![],'extraParams':_0x187418}),_0x390690=a0_0xc6308a[_0x3d69b3(0x181)](_0xb91ca4,_0x5cc4b0+'.md');writeFileSync(_0x390690,_0x7d79ed,{'encoding':_0x3d69b3(0x176)}),console[_0x3d69b3(0x171)](_0x3d69b3(0x17d)+_0x5cc4b0+_0x3d69b3(0x16a)),logger['success'](_0x3d69b3(0x177),_0x3d69b3(0x17c)+_0x5cc4b0,undefined,{'datasetCode':_0x46026f['datasetCode'],'datasetName':_0x46026f[_0x3d69b3(0x16c)],'filePath':_0x390690,'progress':_0x3b7c8b+'/'+_0x4d43d5}),_0x8da5e8['push']({'datasetCode':_0x46026f['datasetCode'],'datasetName':_0x46026f[_0x3d69b3(0x16c)],'filePath':_0x390690,'success':!![]});if(_0x3b7c8b<_0x4d43d5)await delay(0x1388);}catch(_0x49803a){const _0x3e2a2e=_0x49803a instanceof Error?_0x49803a[_0x3d69b3(0x16d)]:String(_0x49803a);console[_0x3d69b3(0x171)](_0x3d69b3(0x16f)+_0x5cc4b0+_0x3d69b3(0x17a)+_0x3e2a2e),logger[_0x3d69b3(0x172)](_0x3d69b3(0x177),_0x3d69b3(0x16b)+_0x46026f[_0x3d69b3(0x184)],{'datasetCode':_0x46026f[_0x3d69b3(0x184)],'datasetName':_0x46026f[_0x3d69b3(0x16c)],'error':_0x3e2a2e,'progress':_0x3b7c8b+'/'+_0x4d43d5}),_0x8da5e8[_0x3d69b3(0x17f)]({'datasetCode':_0x46026f[_0x3d69b3(0x184)],'datasetName':_0x46026f[_0x3d69b3(0x16c)],'filePath':'','success':![],'error':_0x3e2a2e}),_0x3b7c8b<_0x4d43d5&&(console['log']('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x8da5e8;}
@@ -1 +1 @@
1
- function a1_0x27e3(){const _0x59500c=['30uUIBFb','6094cNiATm','Fetch\x20datasets','1676016PUyXCU','/api/node-toolbox/dataset/model-list?appcode=','6YJCSIb','map','2573913zVeWMj','trim','6418512wdmXyK','name','info','replace','正在从服务器拉取模型列表...\x20(环境:\x20','length','fetch-model-list','265FvtzQA','1798685wNdPEG','8575840YefBqJ','6184176IcCxZS','configArray'];a1_0x27e3=function(){return _0x59500c;};return a1_0x27e3();}function a1_0x408f(_0x402662,_0x3f9b21){_0x402662=_0x402662-0x82;const _0x27e339=a1_0x27e3();let _0x408fce=_0x27e339[_0x402662];return _0x408fce;}(function(_0x24a012,_0x1590f7){const _0x3b290d=a1_0x408f,_0x65dd37=_0x24a012();while(!![]){try{const _0x37f3b4=-parseInt(_0x3b290d(0x8d))/0x1*(parseInt(_0x3b290d(0x93))/0x2)+parseInt(_0x3b290d(0x84))/0x3+parseInt(_0x3b290d(0x95))/0x4+parseInt(_0x3b290d(0x8e))/0x5*(parseInt(_0x3b290d(0x82))/0x6)+parseInt(_0x3b290d(0x8f))/0x7+parseInt(_0x3b290d(0x90))/0x8+parseInt(_0x3b290d(0x86))/0x9*(-parseInt(_0x3b290d(0x92))/0xa);if(_0x37f3b4===_0x1590f7)break;else _0x65dd37['push'](_0x65dd37['shift']());}catch(_0x1d5aa0){_0x65dd37['push'](_0x65dd37['shift']());}}}(a1_0x27e3,0xa7f17));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x5636f7){const _0x5057d3=a1_0x408f;return _0x5636f7[_0x5057d3(0x89)](/[\r\n]+/g,'\x20')[_0x5057d3(0x85)]();}function cleanDatasetName(_0x1fdab8){const _0x543df4=a1_0x408f;if(!_0x1fdab8[_0x543df4(0x87)])return _0x1fdab8;return{..._0x1fdab8,'name':cleanNewlines(_0x1fdab8[_0x543df4(0x87)])};}export async function fetchModelList(_0x13d1f9,_0x2c93b0){const _0x5b541e=a1_0x408f,_0x23f96c=getEnv(),_0x4d8e36=getApiDomain()+_0x5b541e(0x96)+_0x13d1f9+'&otype=array';logger[_0x5b541e(0x88)](_0x5b541e(0x8c),_0x5b541e(0x8a)+_0x23f96c+')',{'apiUrl':_0x4d8e36});const _0x2e8fd8=await platformFetch(_0x4d8e36,{'cookie':_0x2c93b0,'label':_0x5b541e(0x94)}),_0x32e320=(_0x2e8fd8[_0x5b541e(0x91)]??[])[_0x5b541e(0x83)](cleanDatasetName);return{'configArray':_0x32e320,'count':_0x32e320[_0x5b541e(0x8b)]};}
1
+ (function(_0x56f096,_0x374400){const _0x4fb1c7=a1_0x11e8,_0x105bf1=_0x56f096();while(!![]){try{const _0x433ed7=parseInt(_0x4fb1c7(0x1be))/0x1+parseInt(_0x4fb1c7(0x1c1))/0x2*(parseInt(_0x4fb1c7(0x1ca))/0x3)+-parseInt(_0x4fb1c7(0x1bf))/0x4+parseInt(_0x4fb1c7(0x1c8))/0x5+-parseInt(_0x4fb1c7(0x1c2))/0x6+-parseInt(_0x4fb1c7(0x1c7))/0x7+parseInt(_0x4fb1c7(0x1c6))/0x8;if(_0x433ed7===_0x374400)break;else _0x105bf1['push'](_0x105bf1['shift']());}catch(_0x286f03){_0x105bf1['push'](_0x105bf1['shift']());}}}(a1_0x4c9b,0xe44cb));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x1a05b0){const _0x23041e=a1_0x11e8;return _0x1a05b0[_0x23041e(0x1c5)](/[\r\n]+/g,'\x20')[_0x23041e(0x1c3)]();}function a1_0x4c9b(){const _0x47114a=['正在从服务器拉取模型列表...\x20(环境:\x20','232wuLJpF','7366272HoAJJh','trim','name','replace','2277840WbViIA','4375994FDOidt','2631605uYxnXy','info','43968QHoqHZ','map','&otype=array','508930kWOzYL','928432hkSNXl'];a1_0x4c9b=function(){return _0x47114a;};return a1_0x4c9b();}function a1_0x11e8(_0x5a00bf,_0x35ef53){_0x5a00bf=_0x5a00bf-0x1bc;const _0x4c9bd3=a1_0x4c9b();let _0x11e8a7=_0x4c9bd3[_0x5a00bf];return _0x11e8a7;}function cleanDatasetName(_0x4eff71){const _0x50e55f=a1_0x11e8;if(!_0x4eff71[_0x50e55f(0x1c4)])return _0x4eff71;return{..._0x4eff71,'name':cleanNewlines(_0x4eff71[_0x50e55f(0x1c4)])};}export async function fetchModelList(_0x4f3146,_0x5ae67c){const _0x3d663a=a1_0x11e8,_0x3f2e69=getEnv(),_0x5a33cd=getApiDomain()+'/api/node-toolbox/dataset/model-list?appcode='+_0x4f3146+_0x3d663a(0x1bd);logger[_0x3d663a(0x1c9)]('fetch-model-list',_0x3d663a(0x1c0)+_0x3f2e69+')',{'apiUrl':_0x5a33cd});const _0x283f5b=await platformFetch(_0x5a33cd,{'cookie':_0x5ae67c,'label':'Fetch\x20datasets'}),_0x313355=(_0x283f5b['configArray']??[])[_0x3d663a(0x1bc)](cleanDatasetName);return{'configArray':_0x313355,'count':_0x313355['length']};}
@@ -1 +1 @@
1
- (function(_0x1727ea,_0x57438a){const _0x4b609b=a2_0x4103,_0x419efe=_0x1727ea();while(!![]){try{const _0x1c7945=parseInt(_0x4b609b(0x82))/0x1+parseInt(_0x4b609b(0x96))/0x2*(-parseInt(_0x4b609b(0x98))/0x3)+-parseInt(_0x4b609b(0x9a))/0x4+-parseInt(_0x4b609b(0x8d))/0x5+parseInt(_0x4b609b(0x86))/0x6*(parseInt(_0x4b609b(0x8b))/0x7)+-parseInt(_0x4b609b(0x93))/0x8*(-parseInt(_0x4b609b(0x94))/0x9)+parseInt(_0x4b609b(0x88))/0xa;if(_0x1c7945===_0x57438a)break;else _0x419efe['push'](_0x419efe['shift']());}catch(_0x1f1d93){_0x419efe['push'](_0x419efe['shift']());}}}(a2_0x1f35,0xd23c2));import a2_0x57e2a3 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x10d70e 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(_0x3f3d32,_0x3030a7,_0xa971f7,_0x5a175a,_0xdd0949,_0x2fa05c,_0x40d28f){const _0x372d54=a2_0x4103;if(!_0xa971f7)throw new Error(_0x372d54(0x9c)+CLI_BIN_NAME+_0x372d54(0x8a));const _0x264086=_0x5a175a&&!_0x40d28f,_0xac79a8=_0x40d28f||_0xa971f7,_0x28ade7=_0x264086?_0x372d54(0x8c):'\x22'+_0xac79a8+'\x22',_0x7c2cdb=!isProduction(_0xdd0949);let _0x17abf1;if(_0x264086)_0x7c2cdb?_0x17abf1='{\x20apiConfigName:\x20'+_0x28ade7+_0x372d54(0x9b)+_0xdd0949+_0x372d54(0xa0):_0x17abf1='';else{const _0x5ef642=_0x7c2cdb?',\x20env:\x20\x22'+_0xdd0949+'\x22':'';_0x17abf1='{\x20apiConfigName:\x20\x22'+_0xac79a8+'\x22'+_0x5ef642+'\x20}';}const _0x5801a5=_0x3030a7?_0x3030a7+_0x372d54(0x99):_0x372d54(0x87),_0x266eb4=_0x3030a7?_0x3030a7+_0x372d54(0x89):_0x372d54(0x7e),_0x5259c2=_0x3030a7&&!/^app-[a-f0-9]+$/i[_0x372d54(0x83)](_0x3030a7)?_0x3030a7['replace'](/-/g,'_')[_0x372d54(0x9e)]():'LOVRABET',_0x47b16d=[];_0x3f3d32['forEach'](_0x3ed83f=>{const _0x4e7c44=_0x372d54;_0x47b16d[_0x4e7c44(0x81)]({'datasetCode':_0x3ed83f[_0x4e7c44(0x97)],'tableName':_0x3ed83f[_0x4e7c44(0x9f)],'name':_0x3ed83f[_0x4e7c44(0x9d)]||'','alias':_0x3ed83f['alias']||_0x3ed83f['key']});});const _0x363fa4=fileURLToPath(import.meta.url),_0x4e5eb1=a2_0x10d70e['resolve'](a2_0x10d70e[_0x372d54(0x85)](_0x363fa4),'../..'),_0x2030e7=a2_0x10d70e[_0x372d54(0x8f)](_0x4e5eb1,_0x372d54(0x92)),_0x9fae6e=a2_0x10d70e[_0x372d54(0x8f)](_0x2030e7,_0x372d54(0x8e)),_0x59f4aa=a2_0x10d70e[_0x372d54(0x8f)](_0x2030e7,'client.ts.tpl'),_0xf9f8e6=_0x2fa05c;mkdirSync(_0xf9f8e6,{'recursive':!![]});const _0x1519fd=_0x47b16d[0x0]?.[_0x372d54(0x90)],_0x692b38=readFileSync(_0x9fae6e,_0x372d54(0x91)),_0x5f2f36=TemplateReplacer[_0x372d54(0x7f)](_0x692b38,_0xa971f7,_0x47b16d,_0x1519fd,_0x5801a5,_0x28ade7,undefined,_0x5259c2),_0x4d15d7=await a2_0x57e2a3[_0x372d54(0x95)](_0x5f2f36,{'parser':'typescript'}),_0x593892=a2_0x10d70e[_0x372d54(0x8f)](_0xf9f8e6,_0x5801a5+'.ts');writeFileSync(_0x593892,_0x4d15d7,{'encoding':'utf8'});const _0x2b899d=readFileSync(_0x59f4aa,_0x372d54(0x91)),_0x324ee3=TemplateReplacer[_0x372d54(0x7f)](_0x2b899d,_0xa971f7,_0x47b16d,_0x1519fd,_0x5801a5,_0x28ade7,_0x17abf1,_0x5259c2),_0x46e164=await a2_0x57e2a3[_0x372d54(0x95)](_0x324ee3,{'parser':_0x372d54(0x80)}),_0x2861b5=a2_0x10d70e['join'](_0xf9f8e6,_0x266eb4+'.ts');writeFileSync(_0x2861b5,_0x46e164,{'encoding':_0x372d54(0x91)});const _0x1ab27b=_0x47b16d[_0x372d54(0x84)];return logger['success'](_0x372d54(0x7d),'API\x20文件生成成功!',undefined,{'apiFile':_0x593892,'clientFile':_0x2861b5,'modelCount':_0x1ab27b,'configName':_0x28ade7}),{'modelCount':_0x1ab27b,'apiFilePath':_0x593892,'clientFilePath':_0x2861b5,'configName':_0x28ade7};}function a2_0x4103(_0x1e47fb,_0x2a393d){_0x1e47fb=_0x1e47fb-0x7d;const _0x1f35c9=a2_0x1f35();let _0x41030b=_0x1f35c9[_0x1e47fb];return _0x41030b;}function a2_0x1f35(){const _0x287f1c=['-client','\x20config\x20set\x20app\x20<value>`','56Dnrrbd','CONFIG_NAMES.DEFAULT','2781320NMepVS','api.ts.tpl','join','alias','utf8','templates/generate-api','2136gFnWpu','6912IvMttX','format','3248852CEpIEx','datasetCode','3SWvmcA','-api','1978032FAOoTO',',\x20env:\x20\x22','Please\x20configure\x20app\x20code\x20first\x20via\x20`','name','toUpperCase','tableName','\x22\x20}','init-api','client','replaceApiContent','typescript','push','1248265zGTJYQ','test','length','dirname','1270056KwFonu','api','3895910XCeGvA'];a2_0x1f35=function(){return _0x287f1c;};return a2_0x1f35();}
1
+ (function(_0x14a30a,_0x2f8b15){const _0x245f79=a2_0x3168,_0xa5481c=_0x14a30a();while(!![]){try{const _0x477985=-parseInt(_0x245f79(0xf7))/0x1+-parseInt(_0x245f79(0xf2))/0x2+-parseInt(_0x245f79(0xfd))/0x3+parseInt(_0x245f79(0xeb))/0x4+parseInt(_0x245f79(0x103))/0x5+parseInt(_0x245f79(0xec))/0x6+parseInt(_0x245f79(0xf1))/0x7*(-parseInt(_0x245f79(0xf6))/0x8);if(_0x477985===_0x2f8b15)break;else _0xa5481c['push'](_0xa5481c['shift']());}catch(_0x300900){_0xa5481c['push'](_0xa5481c['shift']());}}}(a2_0x5296,0x2db4e));import a2_0x15df29 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x1c35ed from'node:path';import{fileURLToPath}from'node:url';function a2_0x5296(){const _0xfe8910=['templates/generate-api','client','api.ts.tpl','7OCQluR','203476jEcyjM','replace','replaceApiContent','success','151880CTYsTR','69661XSoRoF','push','join','key','Please\x20configure\x20app\x20code\x20first\x20via\x20`','API\x20文件生成成功!','931305iydVvw','utf8','datasetCode','{\x20apiConfigName:\x20\x22','-client','alias','1455275MKEGjL','test','\x22\x20}','format','toUpperCase','length','.ts','name','LOVRABET',',\x20env:\x20\x22','dirname','-api','resolve','forEach','../..','init-api','91880gJXOcb','2244048sGAPZw','client.ts.tpl'];a2_0x5296=function(){return _0xfe8910;};return a2_0x5296();}import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a2_0x3168(_0x575c10,_0x5426eb){_0x575c10=_0x575c10-0xe3;const _0x5296d3=a2_0x5296();let _0x316825=_0x5296d3[_0x575c10];return _0x316825;}import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x1280ed,_0x27392f,_0x165080,_0x101ae3,_0x17e4dd,_0x2f02e4,_0x35fcd2){const _0x539bd0=a2_0x3168;if(!_0x165080)throw new Error(_0x539bd0(0xfb)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0xc5c981=_0x101ae3&&!_0x35fcd2,_0x6f8a33=_0x35fcd2||_0x165080,_0x3e635d=_0xc5c981?'CONFIG_NAMES.DEFAULT':'\x22'+_0x6f8a33+'\x22',_0x5cb7e0=!isProduction(_0x17e4dd);let _0x395717;if(_0xc5c981)_0x5cb7e0?_0x395717='{\x20apiConfigName:\x20'+_0x3e635d+_0x539bd0(0xe4)+_0x17e4dd+_0x539bd0(0x105):_0x395717='';else{const _0x3ff84d=_0x5cb7e0?_0x539bd0(0xe4)+_0x17e4dd+'\x22':'';_0x395717=_0x539bd0(0x100)+_0x6f8a33+'\x22'+_0x3ff84d+'\x20}';}const _0x122303=_0x27392f?_0x27392f+_0x539bd0(0xe6):'api',_0x560e38=_0x27392f?_0x27392f+_0x539bd0(0x101):_0x539bd0(0xef),_0x5a86fa=_0x27392f&&!/^app-[a-f0-9]+$/i[_0x539bd0(0x104)](_0x27392f)?_0x27392f[_0x539bd0(0xf3)](/-/g,'_')[_0x539bd0(0x107)]():_0x539bd0(0xe3),_0x29034f=[];_0x1280ed[_0x539bd0(0xe8)](_0x34633c=>{const _0x5b9a57=_0x539bd0;_0x29034f[_0x5b9a57(0xf8)]({'datasetCode':_0x34633c[_0x5b9a57(0xff)],'tableName':_0x34633c['tableName'],'name':_0x34633c[_0x5b9a57(0x10a)]||'','alias':_0x34633c[_0x5b9a57(0x102)]||_0x34633c[_0x5b9a57(0xfa)]});});const _0x50ac55=fileURLToPath(import.meta.url),_0x164888=a2_0x1c35ed[_0x539bd0(0xe7)](a2_0x1c35ed[_0x539bd0(0xe5)](_0x50ac55),_0x539bd0(0xe9)),_0x3d3464=a2_0x1c35ed[_0x539bd0(0xf9)](_0x164888,_0x539bd0(0xee)),_0x3736bc=a2_0x1c35ed[_0x539bd0(0xf9)](_0x3d3464,_0x539bd0(0xf0)),_0x4fcae7=a2_0x1c35ed[_0x539bd0(0xf9)](_0x3d3464,_0x539bd0(0xed)),_0x478e9b=_0x2f02e4;mkdirSync(_0x478e9b,{'recursive':!![]});const _0x547353=_0x29034f[0x0]?.[_0x539bd0(0x102)],_0xeea2b6=readFileSync(_0x3736bc,_0x539bd0(0xfe)),_0x36d840=TemplateReplacer[_0x539bd0(0xf4)](_0xeea2b6,_0x165080,_0x29034f,_0x547353,_0x122303,_0x3e635d,undefined,_0x5a86fa),_0xa1ca1b=await a2_0x15df29[_0x539bd0(0x106)](_0x36d840,{'parser':'typescript'}),_0x316cb8=a2_0x1c35ed[_0x539bd0(0xf9)](_0x478e9b,_0x122303+_0x539bd0(0x109));writeFileSync(_0x316cb8,_0xa1ca1b,{'encoding':'utf8'});const _0x4ddde3=readFileSync(_0x4fcae7,_0x539bd0(0xfe)),_0x196b06=TemplateReplacer[_0x539bd0(0xf4)](_0x4ddde3,_0x165080,_0x29034f,_0x547353,_0x122303,_0x3e635d,_0x395717,_0x5a86fa),_0x1ab44c=await a2_0x15df29[_0x539bd0(0x106)](_0x196b06,{'parser':'typescript'}),_0x444d30=a2_0x1c35ed[_0x539bd0(0xf9)](_0x478e9b,_0x560e38+_0x539bd0(0x109));writeFileSync(_0x444d30,_0x1ab44c,{'encoding':_0x539bd0(0xfe)});const _0x1ebc41=_0x29034f[_0x539bd0(0x108)];return logger[_0x539bd0(0xf5)](_0x539bd0(0xea),_0x539bd0(0xfc),undefined,{'apiFile':_0x316cb8,'clientFile':_0x444d30,'modelCount':_0x1ebc41,'configName':_0x3e635d}),{'modelCount':_0x1ebc41,'apiFilePath':_0x316cb8,'clientFilePath':_0x444d30,'configName':_0x3e635d};}
@@ -1 +1 @@
1
- function a3_0x4aba(){const _0x2c29fe=['!\x20Login\x20failed.','start','3857dPYgoz','No\x20valid\x20session.\x20Login\x20now?','log','473280EyNlTO','269XmeZzU','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','6568mBjuTH','1241535QfBGeh','1438844pKJcAM','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','stop','156575zUGssW','2678Satgdp','3186612WVcCuv'];a3_0x4aba=function(){return _0x2c29fe;};return a3_0x4aba();}(function(_0x26dfa5,_0x2675f7){const _0x1462a1=a3_0x2fdf,_0x451c63=_0x26dfa5();while(!![]){try{const _0x5ee95f=parseInt(_0x1462a1(0x158))/0x1*(-parseInt(_0x1462a1(0x160))/0x2)+-parseInt(_0x1462a1(0x15b))/0x3+parseInt(_0x1462a1(0x15c))/0x4+parseInt(_0x1462a1(0x15f))/0x5+-parseInt(_0x1462a1(0x157))/0x6+-parseInt(_0x1462a1(0x164))/0x7*(-parseInt(_0x1462a1(0x15a))/0x8)+parseInt(_0x1462a1(0x161))/0x9;if(_0x5ee95f===_0x2675f7)break;else _0x451c63['push'](_0x451c63['shift']());}catch(_0x289dae){_0x451c63['push'](_0x451c63['shift']());}}}(a3_0x4aba,0x541e5));function a3_0x2fdf(_0x11d982,_0x2f89bd){_0x11d982=_0x11d982-0x157;const _0x4aba2f=a3_0x4aba();let _0x2fdf88=_0x4aba2f[_0x11d982];return _0x2fdf88;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a3_0x226ad2 from'ora';export async function runAuthServer(){const _0x2e67ae=a3_0x2fdf,_0x438cf6=await getIsSessionValid();if(_0x438cf6){console[_0x2e67ae(0x166)](_0x2e67ae(0x15d));return;}const _0x22fc78=await confirm({'message':_0x2e67ae(0x165),'default':!![]});if(!_0x22fc78)return;const _0x342350=a3_0x226ad2(_0x2e67ae(0x159))[_0x2e67ae(0x163)](),_0x1e2e29=await authServer({'silent':!![]});_0x342350[_0x2e67ae(0x15e)](),_0x1e2e29?console['log']('*\x20Login\x20successful!'):console[_0x2e67ae(0x166)](_0x2e67ae(0x162));}
1
+ (function(_0x5ec505,_0x34b35c){const _0x4288f6=a3_0x1de2,_0x2d6b1f=_0x5ec505();while(!![]){try{const _0x3d3856=-parseInt(_0x4288f6(0x117))/0x1+-parseInt(_0x4288f6(0x10d))/0x2*(-parseInt(_0x4288f6(0x10f))/0x3)+-parseInt(_0x4288f6(0x10c))/0x4+parseInt(_0x4288f6(0x106))/0x5+-parseInt(_0x4288f6(0x107))/0x6+-parseInt(_0x4288f6(0x113))/0x7*(-parseInt(_0x4288f6(0x111))/0x8)+parseInt(_0x4288f6(0x114))/0x9;if(_0x3d3856===_0x34b35c)break;else _0x2d6b1f['push'](_0x2d6b1f['shift']());}catch(_0x447d13){_0x2d6b1f['push'](_0x2d6b1f['shift']());}}}(a3_0x117b,0x32125));import{getIsSessionValid}from'../auth/is-session-valid.js';function a3_0x117b(){const _0x2b002e=['\x20auth\x20login\x20--yes`\x20in\x20an\x20interactive\x20terminal.','283512nnERFr','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','10248ytEZYt','stop','1022qeRjVU','4308525qppdTL','*\x20Login\x20successful!','log','320544PtEEZU','556135WWhteT','1838160VVMKev','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','Run\x20`','start','No\x20valid\x20session.\x20Login\x20now?','535956faGBma','4QJjlyg'];a3_0x117b=function(){return _0x2b002e;};return a3_0x117b();}import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a3_0x1de2(_0x588e40,_0x57c113){_0x588e40=_0x588e40-0x106;const _0x117b74=a3_0x117b();let _0x1de233=_0x117b74[_0x588e40];return _0x1de233;}import{confirm}from'@inquirer/prompts';import a3_0x10e20b from'ora';export async function runAuthServer(_0x4eeb53){const _0x3f3e1c=a3_0x1de2,_0x4b0207=await getIsSessionValid();if(_0x4b0207){console['log'](_0x3f3e1c(0x108));return;}if(_0x4eeb53?.['nonInteractive'])throw CliErrors['validation'](_0x3f3e1c(0x110),_0x3f3e1c(0x109)+CLI_BIN_NAME+_0x3f3e1c(0x10e));const _0x29fef7=_0x4eeb53?.['autoYes']?!![]:await confirm({'message':_0x3f3e1c(0x10b),'default':!![]});if(!_0x29fef7)return;const _0x17b4f5=a3_0x10e20b('Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.')[_0x3f3e1c(0x10a)](),_0x433fc9=await authServer({'silent':!![]});_0x17b4f5[_0x3f3e1c(0x112)](),_0x433fc9?console[_0x3f3e1c(0x116)](_0x3f3e1c(0x115)):console['log']('!\x20Login\x20failed.');}
@@ -1 +1 @@
1
- const a4_0xbb6415=a4_0x14a8;(function(_0x3a5870,_0x5d980c){const _0x12b9e1=a4_0x14a8,_0x5e926a=_0x3a5870();while(!![]){try{const _0x5f2489=parseInt(_0x12b9e1(0x154))/0x1*(-parseInt(_0x12b9e1(0x13a))/0x2)+parseInt(_0x12b9e1(0x15d))/0x3+parseInt(_0x12b9e1(0x146))/0x4*(parseInt(_0x12b9e1(0x151))/0x5)+-parseInt(_0x12b9e1(0x147))/0x6*(parseInt(_0x12b9e1(0x150))/0x7)+parseInt(_0x12b9e1(0x135))/0x8*(-parseInt(_0x12b9e1(0x14b))/0x9)+parseInt(_0x12b9e1(0x14a))/0xa*(-parseInt(_0x12b9e1(0x143))/0xb)+-parseInt(_0x12b9e1(0x161))/0xc*(-parseInt(_0x12b9e1(0x13b))/0xd);if(_0x5f2489===_0x5d980c)break;else _0x5e926a['push'](_0x5e926a['shift']());}catch(_0x2415cd){_0x5e926a['push'](_0x5e926a['shift']());}}}(a4_0x5cc8,0xc9bf4));import{writeFileSync}from'node:fs';function a4_0x14a8(_0x2fac1e,_0x49959a){_0x2fac1e=_0x2fac1e-0x134;const _0x5cc884=a4_0x5cc8();let _0x14a81b=_0x5cc884[_0x2fac1e];return _0x14a81b;}import a4_0x115ac9 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_0x5cc8(){const _0x5ad9f2=['7byAoSD','2315otmpmR','darwin','xdg-open\x20\x22','392696pJShHo','silent','address','writeHead','🔐\x20Starting\x20login\x20service...','/sign-in?redirect=','createServer','listen','win32','2300154mgudfG','text/html;\x20charset=utf-8','log','https://dev.lovrabet.com:','1548waBnLC','user','8564344AsQxnr','platform','/api/auth/get-session','cmd\x20/c\x20start\x20\x22\x22\x20\x22','catch','4PCClmO','154661iQhRwa','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','close','then','json','port','cookie','object','44JtsxYP','isAuth','end','12500ciHNEU','3745866QIXWqU','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','127.0.0.1','1104260SisTfE','9fiLvwY','error','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','https://g.yuntooai.com/cert/lovrabet-dev.json','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:'];a4_0x5cc8=function(){return _0x5ad9f2;};return a4_0x5cc8();}import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0x74c0d7){const _0x304147=a4_0x14a8,_0xde8bb2=_0x74c0d7?.[_0x304147(0x155)]||![];if(await getIsSessionValid())return!![];const _0x3abbeb=await(await fetch(_0x304147(0x14e)))[_0x304147(0x13f)]();return new Promise(async(_0x1e76df,_0x429c87)=>{const _0xd24671=_0x304147;let _0x362c63=0x0;const _0x252e25=a4_0x115ac9[_0xd24671(0x15a)](_0x3abbeb,async(_0xa565d8,_0x28c604)=>{const _0x2005e1=_0xd24671,_0x531093=getUserDomain(),_0x3777ab=_0xa565d8['headers'][_0x2005e1(0x141)]||'',_0x28b5a9=await fetch(_0x531093+_0x2005e1(0x137),{'headers':{'cookie':_0x3777ab}})[_0x2005e1(0x13e)](_0x57a8e0=>_0x57a8e0['json']()),_0x465100=_0x28b5a9&&_0x28b5a9['session']&&_0x28b5a9[_0x2005e1(0x134)];if(_0x465100){writeFileSync(cookieFile,_0x3777ab,'utf-8'),_0x1e76df(!![]);const _0x35c046=buildLoginSuccessHtml();_0x28c604[_0x2005e1(0x157)](0xc8,{'Content-Type':_0x2005e1(0x15e)}),_0x28c604[_0x2005e1(0x145)](_0x35c046),_0x252e25[_0x2005e1(0x13d)]();}else{const _0x313218=''+encodeURIComponent(_0x2005e1(0x160)+_0x362c63);_0x28c604[_0x2005e1(0x157)](0x12e,{'location':_0x531093+_0x2005e1(0x159)+_0x313218}),_0x28c604[_0x2005e1(0x145)]();return;}});_0x252e25[_0xd24671(0x15b)](0x0,_0xd24671(0x149),()=>{const _0x25c833=_0xd24671,_0xeeed87=_0x252e25[_0x25c833(0x156)]();_0x362c63=typeof _0xeeed87===_0x25c833(0x142)&&_0xeeed87?_0xeeed87[_0x25c833(0x140)]:Number(_0xeeed87);const _0x1c3352=_0x25c833(0x160)+_0x362c63;!_0xde8bb2&&(console[_0x25c833(0x15f)](_0x25c833(0x158)),console[_0x25c833(0x15f)]('📍\x20Login\x20URL:',_0x1c3352),console['log']('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x25c833(0x15f)](''),console[_0x25c833(0x15f)](_0x25c833(0x148)),console[_0x25c833(0x15f)]('')),openInBrowser(_0x1c3352)[_0x25c833(0x13e)](_0x7520d5=>{const _0x437f82=_0x25c833;!_0xde8bb2&&(_0x7520d5?console[_0x437f82(0x15f)](_0x437f82(0x14d)):(console[_0x437f82(0x15f)](_0x437f82(0x13c)),console[_0x437f82(0x15f)](_0x437f82(0x14f),_0x1c3352)),console[_0x437f82(0x15f)](''));})[_0x25c833(0x139)](()=>{const _0x175f2c=_0x25c833;!_0xde8bb2&&(console['log']('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x175f2c(0x15f)](_0x175f2c(0x14f),_0x1c3352),console['log'](''));});}),_0x252e25['on']('error',_0x40d66a=>{const _0xff73b4=_0xd24671;!_0xde8bb2&&console[_0xff73b4(0x14c)]('Auth\x20server\x20error:',_0x40d66a),_0x429c87(_0x40d66a);});});}function openInBrowser(_0x1c840f){return new Promise(_0x179aa4=>{const _0x418a2c=a4_0x14a8,_0x5d1a21=process[_0x418a2c(0x136)];let _0x3ae3db;if(_0x5d1a21===_0x418a2c(0x15c))_0x3ae3db=_0x418a2c(0x138)+_0x1c840f+'\x22';else _0x5d1a21===_0x418a2c(0x152)?_0x3ae3db='open\x20\x22'+_0x1c840f+'\x22':_0x3ae3db=_0x418a2c(0x153)+_0x1c840f+'\x22';exec(_0x3ae3db,_0x5bfbe7=>{_0x5bfbe7?_0x179aa4(![]):_0x179aa4(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0xbb6415(0x15f)](a4_0xbb6415(0x144),isAuth);}
1
+ function a4_0x44f3(_0x3ad992,_0x17a247){_0x3ad992=_0x3ad992-0x9e;const _0x428d0e=a4_0x428d();let _0x44f3c5=_0x428d0e[_0x3ad992];return _0x44f3c5;}const a4_0x2542b8=a4_0x44f3;(function(_0x47f442,_0x1c1cb9){const _0x405843=a4_0x44f3,_0x14f4dc=_0x47f442();while(!![]){try{const _0x4e0748=parseInt(_0x405843(0xc6))/0x1*(-parseInt(_0x405843(0xa6))/0x2)+parseInt(_0x405843(0xa0))/0x3*(parseInt(_0x405843(0xa3))/0x4)+parseInt(_0x405843(0xca))/0x5*(parseInt(_0x405843(0xba))/0x6)+-parseInt(_0x405843(0xaa))/0x7*(parseInt(_0x405843(0xae))/0x8)+-parseInt(_0x405843(0xb3))/0x9*(parseInt(_0x405843(0xab))/0xa)+-parseInt(_0x405843(0xaf))/0xb*(parseInt(_0x405843(0xb8))/0xc)+-parseInt(_0x405843(0xb7))/0xd*(-parseInt(_0x405843(0xbb))/0xe);if(_0x4e0748===_0x1c1cb9)break;else _0x14f4dc['push'](_0x14f4dc['shift']());}catch(_0x49c512){_0x14f4dc['push'](_0x14f4dc['shift']());}}}(a4_0x428d,0x7273d));import{writeFileSync}from'node:fs';import a4_0xe8dbde 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(_0x8aeda7){const _0x140b2a=a4_0x44f3,_0x439281=_0x8aeda7?.[_0x140b2a(0xc7)]||![];if(await getIsSessionValid())return!![];const _0xdac069=await(await fetch(_0x140b2a(0xc4)))[_0x140b2a(0xc8)]();return new Promise(async(_0x966d69,_0x5b0a5f)=>{const _0x4e71b4=_0x140b2a;let _0x1d8a4e=0x0;const _0x28686f=a4_0xe8dbde[_0x4e71b4(0xc9)](_0xdac069,async(_0x1a2437,_0x591456)=>{const _0x11f604=_0x4e71b4,_0x935b61=getUserDomain(),_0x46ee1f=_0x1a2437['headers'][_0x11f604(0xb4)]||'',_0x40f2ac=await fetch(_0x935b61+_0x11f604(0xb0),{'headers':{'cookie':_0x46ee1f}})[_0x11f604(0xc3)](_0x49fdfd=>_0x49fdfd[_0x11f604(0xc8)]()),_0xe7723c=_0x40f2ac&&_0x40f2ac[_0x11f604(0xc5)]&&_0x40f2ac['user'];if(_0xe7723c){writeFileSync(cookieFile,_0x46ee1f,_0x11f604(0xac)),_0x966d69(!![]);const _0x307cb7=buildLoginSuccessHtml();_0x591456[_0x11f604(0xbe)](0xc8,{'Content-Type':_0x11f604(0xa5)}),_0x591456[_0x11f604(0x9e)](_0x307cb7),_0x28686f['close']();}else{const _0x586779=''+encodeURIComponent('https://dev.lovrabet.com:'+_0x1d8a4e);_0x591456['writeHead'](0x12e,{'location':_0x935b61+_0x11f604(0xb5)+_0x586779}),_0x591456[_0x11f604(0x9e)]();return;}});_0x28686f[_0x4e71b4(0xc1)](0x0,_0x4e71b4(0xb6),()=>{const _0x2964dd=_0x4e71b4,_0x490ede=_0x28686f[_0x2964dd(0xb1)]();_0x1d8a4e=typeof _0x490ede===_0x2964dd(0xb2)&&_0x490ede?_0x490ede['port']:Number(_0x490ede);const _0x1e360c='https://dev.lovrabet.com:'+_0x1d8a4e;!_0x439281&&(console[_0x2964dd(0xbf)](_0x2964dd(0xb9)),console[_0x2964dd(0xbf)](_0x2964dd(0xa7),_0x1e360c),console[_0x2964dd(0xbf)](_0x2964dd(0xc0)),console['log'](''),console[_0x2964dd(0xbf)](_0x2964dd(0xa4)),console[_0x2964dd(0xbf)]('')),openInBrowser(_0x1e360c)['then'](_0x10f916=>{const _0x2c2e96=_0x2964dd;!_0x439281&&(_0x10f916?console[_0x2c2e96(0xbf)](_0x2c2e96(0xad)):(console[_0x2c2e96(0xbf)](_0x2c2e96(0xbc)),console['log'](_0x2c2e96(0x9f),_0x1e360c)),console[_0x2c2e96(0xbf)](''));})['catch'](()=>{const _0x54a516=_0x2964dd;!_0x439281&&(console[_0x54a516(0xbf)](_0x54a516(0xbc)),console[_0x54a516(0xbf)](_0x54a516(0x9f),_0x1e360c),console['log'](''));});}),_0x28686f['on'](_0x4e71b4(0xbd),_0x39a3a6=>{const _0x341ab5=_0x4e71b4;!_0x439281&&console['error'](_0x341ab5(0xa8),_0x39a3a6),_0x5b0a5f(_0x39a3a6);});});}function a4_0x428d(){const _0x29702b=['/api/auth/get-session','address','object','11106wZFFhB','cookie','/sign-in?redirect=','127.0.0.1','7504172JIwNGM','48Nbolbn','🔐\x20Starting\x20login\x20service...','1253436OCHgnO','56sWjxDU','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','error','writeHead','log','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','listen','darwin','then','https://g.yuntooai.com/cert/lovrabet-dev.json','session','375326BShiOm','silent','json','createServer','5qMkbDe','end','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','64245QaLNBu','xdg-open\x20\x22','platform','40AjFLAc','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','text/html;\x20charset=utf-8','2igecDf','📍\x20Login\x20URL:','Auth\x20server\x20error:','win32','72331oFRvGP','1320FwaUix','utf-8','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','712SdDslf','2214806GOMxpE'];a4_0x428d=function(){return _0x29702b;};return a4_0x428d();}function openInBrowser(_0x32d4be){return new Promise(_0x1e8c6d=>{const _0x187fa0=a4_0x44f3,_0x74b684=process[_0x187fa0(0xa2)];let _0x2806df;if(_0x74b684===_0x187fa0(0xa9))_0x2806df='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x32d4be+'\x22';else _0x74b684===_0x187fa0(0xc2)?_0x2806df='open\x20\x22'+_0x32d4be+'\x22':_0x2806df=_0x187fa0(0xa1)+_0x32d4be+'\x22';exec(_0x2806df,_0x135577=>{_0x135577?_0x1e8c6d(![]):_0x1e8c6d(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x2542b8(0xbf)]('isAuth',isAuth);}
@@ -1 +1 @@
1
- const a5_0x14815b=a5_0x39f4;function a5_0x25c9(){const _0x31d6a4=['1fKAufr','3yssdhh','5355021mmlZyF','.lovrabet','2903835xGEfdr','8YPoxKQ','15853510DteFGS','80166fHLsiO','273860uFxzPu','2819493CSBYlb','545lMRkZX','3302654ZKzMdH'];a5_0x25c9=function(){return _0x31d6a4;};return a5_0x25c9();}(function(_0x493138,_0x446c3e){const _0x5e40b2=a5_0x39f4,_0x4666d7=_0x493138();while(!![]){try{const _0x177fab=-parseInt(_0x5e40b2(0x16f))/0x1*(-parseInt(_0x5e40b2(0x16e))/0x2)+parseInt(_0x5e40b2(0x170))/0x3*(-parseInt(_0x5e40b2(0x16b))/0x4)+parseInt(_0x5e40b2(0x16d))/0x5*(-parseInt(_0x5e40b2(0x16a))/0x6)+-parseInt(_0x5e40b2(0x171))/0x7*(parseInt(_0x5e40b2(0x168))/0x8)+-parseInt(_0x5e40b2(0x16c))/0x9+parseInt(_0x5e40b2(0x169))/0xa+parseInt(_0x5e40b2(0x167))/0xb;if(_0x177fab===_0x446c3e)break;else _0x4666d7['push'](_0x4666d7['shift']());}catch(_0x4bc173){_0x4666d7['push'](_0x4666d7['shift']());}}}(a5_0x25c9,0xdb221));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x14815b(0x166));export const cookieFile=join(configDir,'cookie');function a5_0x39f4(_0x59df71,_0x52fbf2){_0x59df71=_0x59df71-0x166;const _0x25c954=a5_0x25c9();let _0x39f4a2=_0x25c954[_0x59df71];return _0x39f4a2;}mkdirSync(configDir,{'recursive':!![]});
1
+ const a5_0x233e34=a5_0xa080;(function(_0x5d582d,_0x375f1c){const _0x305781=a5_0xa080,_0x637da4=_0x5d582d();while(!![]){try{const _0x405eb6=-parseInt(_0x305781(0x1cc))/0x1+-parseInt(_0x305781(0x1c8))/0x2+parseInt(_0x305781(0x1c9))/0x3*(parseInt(_0x305781(0x1c6))/0x4)+parseInt(_0x305781(0x1c1))/0x5+parseInt(_0x305781(0x1c7))/0x6+-parseInt(_0x305781(0x1c2))/0x7*(parseInt(_0x305781(0x1c5))/0x8)+parseInt(_0x305781(0x1c4))/0x9*(-parseInt(_0x305781(0x1cb))/0xa);if(_0x405eb6===_0x375f1c)break;else _0x637da4['push'](_0x637da4['shift']());}catch(_0x2dbd38){_0x637da4['push'](_0x637da4['shift']());}}}(a5_0x2861,0x2354a));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x233e34(0x1ca));function a5_0xa080(_0x20c271,_0x33272d){_0x20c271=_0x20c271-0x1c1;const _0x2861bc=a5_0x2861();let _0xa080d7=_0x2861bc[_0x20c271];return _0xa080d7;}export const cookieFile=join(configDir,a5_0x233e34(0x1c3));function a5_0x2861(){const _0x303c9b=['440098UrYBMY','669507kkoapZ','.lovrabet','634160JHUuAX','143865DWQgCp','1136395SvyBKd','35YZiVcf','cookie','9AUdqKw','5168xWyxJM','4lNFqZP','748956YBGHcL'];a5_0x2861=function(){return _0x303c9b;};return a5_0x2861();}mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- function a6_0xf4f7(_0x5efeb5,_0x101f70){_0x5efeb5=_0x5efeb5-0x9c;var _0x5b558e=a6_0x5b55();var _0xf4f777=_0x5b558e[_0x5efeb5];return _0xf4f777;}function a6_0x5b55(){var _0x10ba68=['374QjPzld','1462464GyaJKt','1300300kPhtSV','26UnrIWj','690672zmVtLs','1685hvzadd','18718QEWBfF','8559bRFuHh','264usgbHC','64UOoguM','utf-8','16700FuVHFI','4091uXmIwa'];a6_0x5b55=function(){return _0x10ba68;};return a6_0x5b55();}(function(_0x43af9c,_0xacae97){var _0x4955ab=a6_0xf4f7,_0x5103a9=_0x43af9c();while(!![]){try{var _0x23c1ca=-parseInt(_0x4955ab(0x9e))/0x1*(parseInt(_0x4955ab(0xa2))/0x2)+parseInt(_0x4955ab(0xa6))/0x3+parseInt(_0x4955ab(0x9d))/0x4*(parseInt(_0x4955ab(0xa4))/0x5)+parseInt(_0x4955ab(0xa7))/0x6*(-parseInt(_0x4955ab(0xa5))/0x7)+-parseInt(_0x4955ab(0xa8))/0x8*(-parseInt(_0x4955ab(0xa0))/0x9)+parseInt(_0x4955ab(0xa1))/0xa+-parseInt(_0x4955ab(0x9f))/0xb*(parseInt(_0x4955ab(0xa3))/0xc);if(_0x23c1ca===_0xacae97)break;else _0x5103a9['push'](_0x5103a9['shift']());}catch(_0x2e5deb){_0x5103a9['push'](_0x5103a9['shift']());}}}(a6_0x5b55,0xadd93));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x2a37cd=a6_0xf4f7;try{return readFileSync(cookieFile,_0x2a37cd(0x9c));}catch{}return'';}
1
+ (function(_0x26be98,_0x3ef954){var _0x1b8b24=a6_0x1500,_0x32caaa=_0x26be98();while(!![]){try{var _0x845671=-parseInt(_0x1b8b24(0x165))/0x1+-parseInt(_0x1b8b24(0x164))/0x2*(parseInt(_0x1b8b24(0x169))/0x3)+parseInt(_0x1b8b24(0x162))/0x4*(-parseInt(_0x1b8b24(0x167))/0x5)+-parseInt(_0x1b8b24(0x160))/0x6+-parseInt(_0x1b8b24(0x168))/0x7*(-parseInt(_0x1b8b24(0x15f))/0x8)+-parseInt(_0x1b8b24(0x16a))/0x9+parseInt(_0x1b8b24(0x166))/0xa*(parseInt(_0x1b8b24(0x161))/0xb);if(_0x845671===_0x3ef954)break;else _0x32caaa['push'](_0x32caaa['shift']());}catch(_0x41dfad){_0x32caaa['push'](_0x32caaa['shift']());}}}(a6_0x2c00,0xeb675));function a6_0x2c00(){var _0x49d3ac=['760920McGjsj','8912922DUjsVA','11kFXPQx','252976qwzGhn','utf-8','19086SUytMy','440472JEfCVg','34674650pGEzOF','25HIbAwJ','91MWiRXq','174lMNvKz','8496666gvFIgK'];a6_0x2c00=function(){return _0x49d3ac;};return a6_0x2c00();}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0x1500(_0x2a70e2,_0x43289a){_0x2a70e2=_0x2a70e2-0x15f;var _0x2c005c=a6_0x2c00();var _0x1500c4=_0x2c005c[_0x2a70e2];return _0x1500c4;}export function getCookie(){var _0x22aff9=a6_0x1500;try{return readFileSync(cookieFile,_0x22aff9(0x163));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x3821b7,_0xf02e91){const _0x4a2079=a7_0xb06b,_0x481879=_0x3821b7();while(!![]){try{const _0x4f3a03=-parseInt(_0x4a2079(0xb1))/0x1*(-parseInt(_0x4a2079(0xb2))/0x2)+-parseInt(_0x4a2079(0xb6))/0x3+parseInt(_0x4a2079(0xb7))/0x4*(parseInt(_0x4a2079(0xb0))/0x5)+parseInt(_0x4a2079(0xbc))/0x6*(parseInt(_0x4a2079(0xad))/0x7)+-parseInt(_0x4a2079(0xbb))/0x8*(-parseInt(_0x4a2079(0xb8))/0x9)+parseInt(_0x4a2079(0xaf))/0xa*(-parseInt(_0x4a2079(0xb5))/0xb)+parseInt(_0x4a2079(0xae))/0xc*(-parseInt(_0x4a2079(0xb3))/0xd);if(_0x4f3a03===_0xf02e91)break;else _0x481879['push'](_0x481879['shift']());}catch(_0x39c55c){_0x481879['push'](_0x481879['shift']());}}}(a7_0x5e0e,0x2c915));function a7_0x5e0e(){const _0xb64ef6=['270540vghjMx','1492jWWzKW','9tNlHeH','user','utf-8','2913544iYOohN','66UqraTV','/api/auth/get-session','105539BDOaFN','7273452xynQdL','22180vAbVRl','3295xvzkbX','251609xIDTxT','2ZNwPUz','13iDHmwy','session','737zFiXyX'];a7_0x5e0e=function(){return _0xb64ef6;};return a7_0x5e0e();}function a7_0xb06b(_0x2eca9b,_0x1e60f1){_0x2eca9b=_0x2eca9b-0xac;const _0x5e0ed6=a7_0x5e0e();let _0xb06b6b=_0x5e0ed6[_0x2eca9b];return _0xb06b6b;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x257e79=a7_0xb06b;try{if(!existsSync(cookieFile))return null;const _0x6c964c=readFileSync(cookieFile,_0x257e79(0xba)),_0x214568=await fetch(getUserDomain()+_0x257e79(0xac),{'headers':{'cookie':_0x6c964c}});if(!_0x214568['ok'])return null;const _0x594dbf=await _0x214568['json']();if(!_0x594dbf[_0x257e79(0xb4)]||!_0x594dbf[_0x257e79(0xb9)])return null;return _0x594dbf;}catch{return null;}}
1
+ (function(_0x406610,_0xbb53fe){const _0x34f27d=a7_0x2651,_0x3aa7df=_0x406610();while(!![]){try{const _0x14d4f4=parseInt(_0x34f27d(0x15d))/0x1*(parseInt(_0x34f27d(0x166))/0x2)+-parseInt(_0x34f27d(0x160))/0x3+parseInt(_0x34f27d(0x15e))/0x4+parseInt(_0x34f27d(0x161))/0x5+-parseInt(_0x34f27d(0x162))/0x6+parseInt(_0x34f27d(0x15f))/0x7+-parseInt(_0x34f27d(0x169))/0x8*(-parseInt(_0x34f27d(0x164))/0x9);if(_0x14d4f4===_0xbb53fe)break;else _0x3aa7df['push'](_0x3aa7df['shift']());}catch(_0x2fe144){_0x3aa7df['push'](_0x3aa7df['shift']());}}}(a7_0x1ad2,0xd30cf));import{existsSync,readFileSync}from'node:fs';function a7_0x1ad2(){const _0x1453aa=['4274691neGXZX','6765560qcoYjt','7213506OQtHsc','user','9PGvkMI','session','9234ZxANoW','/api/auth/get-session','utf-8','4019272pEHJmv','229NxUHRj','1922640YyoFUB','686959LTJSxU'];a7_0x1ad2=function(){return _0x1453aa;};return a7_0x1ad2();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a7_0x2651(_0x16b6a9,_0x4a9708){_0x16b6a9=_0x16b6a9-0x15d;const _0x1ad29c=a7_0x1ad2();let _0x2651ae=_0x1ad29c[_0x16b6a9];return _0x2651ae;}export async function getSessionUserInfo(){const _0x1c68cc=a7_0x2651;try{if(!existsSync(cookieFile))return null;const _0x1ad732=readFileSync(cookieFile,_0x1c68cc(0x168)),_0x5af9b0=await fetch(getUserDomain()+_0x1c68cc(0x167),{'headers':{'cookie':_0x1ad732}});if(!_0x5af9b0['ok'])return null;const _0x58a90b=await _0x5af9b0['json']();if(!_0x58a90b[_0x1c68cc(0x165)]||!_0x58a90b[_0x1c68cc(0x163)])return null;return _0x58a90b;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x3ed7e8,_0x562365){const _0x960dd=a8_0xf23f,_0xc987ed=_0x3ed7e8();while(!![]){try{const _0x45076d=parseInt(_0x960dd(0x13c))/0x1*(-parseInt(_0x960dd(0x134))/0x2)+-parseInt(_0x960dd(0x13f))/0x3+parseInt(_0x960dd(0x138))/0x4*(parseInt(_0x960dd(0x13d))/0x5)+parseInt(_0x960dd(0x142))/0x6*(parseInt(_0x960dd(0x143))/0x7)+-parseInt(_0x960dd(0x137))/0x8+parseInt(_0x960dd(0x13a))/0x9+-parseInt(_0x960dd(0x13b))/0xa*(-parseInt(_0x960dd(0x136))/0xb);if(_0x45076d===_0x562365)break;else _0xc987ed['push'](_0xc987ed['shift']());}catch(_0x48fb32){_0xc987ed['push'](_0xc987ed['shift']());}}}(a8_0x492b,0x60c20));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0xf23f(_0x4c05fa,_0x37a454){_0x4c05fa=_0x4c05fa-0x134;const _0x492be3=a8_0x492b();let _0xf23f76=_0x492be3[_0x4c05fa];return _0xf23f76;}function a8_0x492b(){const _0x4f5668=['64JPuZsv','session','1978537fgdAOc','4265480KwivuX','3070676qnUokX','utf-8','987039CQuGZB','10hismyw','24005ZcBIrB','5Ifthzf','json','129378rWmhDA','user','/api/auth/get-session','48uUrkcX','598136NLfIfC'];a8_0x492b=function(){return _0x4f5668;};return a8_0x492b();}export async function getIsSessionValid(){const _0x500186=a8_0xf23f;try{if(!existsSync(cookieFile))return![];const _0x426ed1=readFileSync(cookieFile,_0x500186(0x139)),_0x18b918=await fetch(getUserDomain()+_0x500186(0x141),{'headers':{'cookie':_0x426ed1}})['then'](_0x41f7ea=>_0x41f7ea[_0x500186(0x13e)]());return _0x18b918&&_0x18b918[_0x500186(0x135)]&&_0x18b918[_0x500186(0x140)];}catch{}return![];}
1
+ (function(_0x2806b0,_0xa67cac){const _0x33ee6c=a8_0x417e,_0x1cd1a8=_0x2806b0();while(!![]){try{const _0x2ee0c0=-parseInt(_0x33ee6c(0x150))/0x1+-parseInt(_0x33ee6c(0x14e))/0x2+-parseInt(_0x33ee6c(0x157))/0x3+parseInt(_0x33ee6c(0x14d))/0x4*(parseInt(_0x33ee6c(0x14b))/0x5)+parseInt(_0x33ee6c(0x155))/0x6*(parseInt(_0x33ee6c(0x154))/0x7)+-parseInt(_0x33ee6c(0x156))/0x8*(parseInt(_0x33ee6c(0x14c))/0x9)+parseInt(_0x33ee6c(0x152))/0xa;if(_0x2ee0c0===_0xa67cac)break;else _0x1cd1a8['push'](_0x1cd1a8['shift']());}catch(_0x30c7d9){_0x1cd1a8['push'](_0x1cd1a8['shift']());}}}(a8_0x2916,0x2af51));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a8_0x2916(){const _0x221fb5=['5fgdjek','1548QzwGxx','1291036YWKPKB','676026rntEJc','utf-8','186090BbXTSB','session','6614030bETqrr','json','231YpZOgb','42762hgmgAM','9800bBvDJS','925791PbcCxZ','user','/api/auth/get-session'];a8_0x2916=function(){return _0x221fb5;};return a8_0x2916();}import{cookieFile}from'../auth/constant.js';function a8_0x417e(_0x54d040,_0x430b16){_0x54d040=_0x54d040-0x149;const _0x2916d8=a8_0x2916();let _0x417ec1=_0x2916d8[_0x54d040];return _0x417ec1;}export async function getIsSessionValid(){const _0x537395=a8_0x417e;try{if(!existsSync(cookieFile))return![];const _0x547b45=readFileSync(cookieFile,_0x537395(0x14f)),_0x3577c5=await fetch(getUserDomain()+_0x537395(0x14a),{'headers':{'cookie':_0x547b45}})['then'](_0x5d1a19=>_0x5d1a19[_0x537395(0x153)]());return _0x3577c5&&_0x3577c5[_0x537395(0x151)]&&_0x3577c5[_0x537395(0x149)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x459a7f,_0x3887b4){const _0x4f6c5b=a9_0x2bcc,_0x3c9e16=_0x459a7f();while(!![]){try{const _0x335fbe=-parseInt(_0x4f6c5b(0x15e))/0x1+-parseInt(_0x4f6c5b(0x161))/0x2*(-parseInt(_0x4f6c5b(0x159))/0x3)+parseInt(_0x4f6c5b(0x15b))/0x4+parseInt(_0x4f6c5b(0x15d))/0x5+parseInt(_0x4f6c5b(0x157))/0x6*(-parseInt(_0x4f6c5b(0x15a))/0x7)+parseInt(_0x4f6c5b(0x15f))/0x8*(-parseInt(_0x4f6c5b(0x160))/0x9)+parseInt(_0x4f6c5b(0x162))/0xa;if(_0x335fbe===_0x3887b4)break;else _0x3c9e16['push'](_0x3c9e16['shift']());}catch(_0x349351){_0x3c9e16['push'](_0x3c9e16['shift']());}}}(a9_0x116a,0x7091d));export function buildLoginSuccessHtml(){const _0x23d838=a9_0x2bcc,_0xd5f3b7='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x23d838(0x15c)+_0xd5f3b7+_0x23d838(0x158);}function a9_0x2bcc(_0x13ae98,_0xd883f2){_0x13ae98=_0x13ae98-0x157;const _0x116af4=a9_0x116a();let _0x2bcc92=_0x116af4[_0x13ae98];return _0x2bcc92;}function a9_0x116a(){const _0x2ecafd=['469dpBmBp','1114812pLvObC','<!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>','1041765lWKKQi','283356BLJEZq','141504kVDZeN','126YEJlgn','902402gAFpTG','3398160XkkioJ','66018vEtltr','</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>','6cSzFqu'];a9_0x116a=function(){return _0x2ecafd;};return a9_0x116a();}
1
+ function a9_0xbfdd(){const _0x100bb9=['1689160LSaRlw','<!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>','172388rwBGrI','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','5514256uacVDm','3asRIiN','1zyprZj','585891zdkWBY','6520pjoWSL','249298vvJTHC','</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>','156uOYlSn','630749Tooryc','8oldeUg'];a9_0xbfdd=function(){return _0x100bb9;};return a9_0xbfdd();}function a9_0x149f(_0x115b82,_0x5eadf7){_0x115b82=_0x115b82-0x105;const _0xbfddd9=a9_0xbfdd();let _0x149f38=_0xbfddd9[_0x115b82];return _0x149f38;}(function(_0x58cdfb,_0x37404d){const _0x237d6b=a9_0x149f,_0x2b105c=_0x58cdfb();while(!![]){try{const _0x1ec656=-parseInt(_0x237d6b(0x110))/0x1*(parseInt(_0x237d6b(0x105))/0x2)+parseInt(_0x237d6b(0x10f))/0x3*(-parseInt(_0x237d6b(0x10c))/0x4)+-parseInt(_0x237d6b(0x112))/0x5*(parseInt(_0x237d6b(0x107))/0x6)+parseInt(_0x237d6b(0x108))/0x7*(-parseInt(_0x237d6b(0x109))/0x8)+parseInt(_0x237d6b(0x111))/0x9+-parseInt(_0x237d6b(0x10a))/0xa+parseInt(_0x237d6b(0x10e))/0xb;if(_0x1ec656===_0x37404d)break;else _0x2b105c['push'](_0x2b105c['shift']());}catch(_0x424112){_0x2b105c['push'](_0x2b105c['shift']());}}}(a9_0xbfdd,0x19cfa));export function buildLoginSuccessHtml(){const _0x4a4032=a9_0x149f,_0x4fd0c5=_0x4a4032(0x10d);return _0x4a4032(0x10b)+_0x4fd0c5+_0x4a4032(0x106);}
@@ -1 +1 @@
1
- (function(_0x13804b,_0x52e307){var _0x3d30d3=a10_0x2c10,_0x2844c7=_0x13804b();while(!![]){try{var _0x1b6d54=parseInt(_0x3d30d3(0x1be))/0x1*(parseInt(_0x3d30d3(0x1b9))/0x2)+parseInt(_0x3d30d3(0x1c6))/0x3*(-parseInt(_0x3d30d3(0x1bf))/0x4)+parseInt(_0x3d30d3(0x1c3))/0x5+-parseInt(_0x3d30d3(0x1bd))/0x6*(-parseInt(_0x3d30d3(0x1bc))/0x7)+-parseInt(_0x3d30d3(0x1c4))/0x8+parseInt(_0x3d30d3(0x1c1))/0x9*(-parseInt(_0x3d30d3(0x1ba))/0xa)+parseInt(_0x3d30d3(0x1c5))/0xb*(parseInt(_0x3d30d3(0x1c0))/0xc);if(_0x1b6d54===_0x52e307)break;else _0x2844c7['push'](_0x2844c7['shift']());}catch(_0x4d1214){_0x2844c7['push'](_0x2844c7['shift']());}}}(a10_0x9d62,0x64e26));import{unlinkSync,existsSync}from'node:fs';function a10_0x2c10(_0x2094ee,_0x2ea346){_0x2094ee=_0x2094ee-0x1b9;var _0x9d62cb=a10_0x9d62();var _0x2c1015=_0x9d62cb[_0x2094ee];return _0x2c1015;}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x21cb21=a10_0x2c10;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x21cb21(0x1c7)](_0x21cb21(0x1bb))):console[_0x21cb21(0x1c7)](_0x21cb21(0x1c2));}function a10_0x9d62(){var _0x1e8727=['log','4124DTIuXh','10HMoZCA','✓\x20Logged\x20out','1281PAyOrA','16032fMWJRy','47JvqCEt','52964rJWaym','36FolbpD','2555568UGPMwy','!\x20Not\x20logged\x20in','601550BTCRdv','1830224hbvEXN','902858CEQiyB','6yhvMlg'];a10_0x9d62=function(){return _0x1e8727;};return a10_0x9d62();}
1
+ (function(_0x10149e,_0x3bfeb8){var _0x32ae33=a10_0x2ed3,_0x5ae082=_0x10149e();while(!![]){try{var _0x272cc8=-parseInt(_0x32ae33(0x95))/0x1*(-parseInt(_0x32ae33(0x94))/0x2)+parseInt(_0x32ae33(0x8f))/0x3*(-parseInt(_0x32ae33(0x90))/0x4)+parseInt(_0x32ae33(0x8c))/0x5+parseInt(_0x32ae33(0x8d))/0x6+parseInt(_0x32ae33(0x8e))/0x7*(parseInt(_0x32ae33(0x8b))/0x8)+-parseInt(_0x32ae33(0x92))/0x9*(parseInt(_0x32ae33(0x97))/0xa)+-parseInt(_0x32ae33(0x93))/0xb;if(_0x272cc8===_0x3bfeb8)break;else _0x5ae082['push'](_0x5ae082['shift']());}catch(_0x49d7a8){_0x5ae082['push'](_0x5ae082['shift']());}}}(a10_0xf1cb,0xc39e4));function a10_0x2ed3(_0x2296d5,_0x2e69d4){_0x2296d5=_0x2296d5-0x8b;var _0xf1cb46=a10_0xf1cb();var _0x2ed3e9=_0xf1cb46[_0x2296d5];return _0x2ed3e9;}import{unlinkSync,existsSync}from'node:fs';function a10_0xf1cb(){var _0xf59218=['16130ptayNM','10714208NIoWjF','4040900KuVLDX','8269866GqrmXH','7sVRebV','5532aPfvqv','412bLuDWH','!\x20Not\x20logged\x20in','1359iwnCen','26648776ZuATer','263192mgNKFh','1SATCKL','log'];a10_0xf1cb=function(){return _0xf59218;};return a10_0xf1cb();}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x3d81ea=a10_0x2ed3;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3d81ea(0x96)]('✓\x20Logged\x20out')):console[_0x3d81ea(0x96)](_0x3d81ea(0x91));}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- (function(_0x55b47e,_0x17f2e8){const _0x3a6268=a11_0x47e4,_0x10a824=_0x55b47e();while(!![]){try{const _0x14b406=parseInt(_0x3a6268(0x68))/0x1*(parseInt(_0x3a6268(0x67))/0x2)+parseInt(_0x3a6268(0x66))/0x3+parseInt(_0x3a6268(0x69))/0x4+-parseInt(_0x3a6268(0x6d))/0x5+-parseInt(_0x3a6268(0x6c))/0x6*(parseInt(_0x3a6268(0x6f))/0x7)+parseInt(_0x3a6268(0x6b))/0x8*(parseInt(_0x3a6268(0x6e))/0x9)+-parseInt(_0x3a6268(0x6a))/0xa;if(_0x14b406===_0x17f2e8)break;else _0x10a824['push'](_0x10a824['shift']());}catch(_0xe98fdf){_0x10a824['push'](_0x10a824['shift']());}}}(a11_0x4bdd,0xe93e9));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};function a11_0x47e4(_0x369260,_0x595faa){_0x369260=_0x369260-0x66;const _0x4bdd7b=a11_0x4bdd();let _0x47e4a5=_0x4bdd7b[_0x369260];return _0x47e4a5;}function a11_0x4bdd(){const _0x2e48da=['36VKpzoj','1899645UftBWE','72lHbuZZ','2158933vnbXyU','2115777hXpMDE','6yxvXpL','620264VAdtef','5998112oWgMqV','21684550BlRCoh','1288688MxUKje'];a11_0x4bdd=function(){return _0x2e48da;};return a11_0x4bdd();}
1
+ function a11_0xe886(_0x20f32c,_0x32ac9e){_0x20f32c=_0x20f32c-0x1c2;const _0xf3067a=a11_0xf306();let _0xe88637=_0xf3067a[_0x20f32c];return _0xe88637;}(function(_0x28c25f,_0x31b48f){const _0x1f57af=a11_0xe886,_0x7e36eb=_0x28c25f();while(!![]){try{const _0x648868=parseInt(_0x1f57af(0x1ca))/0x1+parseInt(_0x1f57af(0x1c2))/0x2+-parseInt(_0x1f57af(0x1cb))/0x3+-parseInt(_0x1f57af(0x1c9))/0x4+-parseInt(_0x1f57af(0x1c7))/0x5*(parseInt(_0x1f57af(0x1c8))/0x6)+parseInt(_0x1f57af(0x1c5))/0x7*(parseInt(_0x1f57af(0x1c4))/0x8)+parseInt(_0x1f57af(0x1c6))/0x9*(-parseInt(_0x1f57af(0x1c3))/0xa);if(_0x648868===_0x31b48f)break;else _0x7e36eb['push'](_0x7e36eb['shift']());}catch(_0x5e7221){_0x7e36eb['push'](_0x7e36eb['shift']());}}}(a11_0xf306,0x4a42c));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};function a11_0xf306(){const _0x98384a=['192wxdwSU','95431KfWjlh','447237ZdMQOS','40qpShhw','28956fUsPwQ','1727592KtKSJq','458284sQOEsg','442794IoNdvj','770530shkhFJ','50zZUQXO'];a11_0xf306=function(){return _0x98384a;};return a11_0xf306();}
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x4360eb=a12_0x15f9;(function(_0x112510,_0x2d9454){const _0x3b9a70=a12_0x15f9,_0x37a178=_0x112510();while(!![]){try{const _0x158e6f=parseInt(_0x3b9a70(0x1e1))/0x1*(parseInt(_0x3b9a70(0x1ce))/0x2)+-parseInt(_0x3b9a70(0x1bd))/0x3*(-parseInt(_0x3b9a70(0x1dc))/0x4)+parseInt(_0x3b9a70(0x1be))/0x5+parseInt(_0x3b9a70(0x1df))/0x6+parseInt(_0x3b9a70(0x1d5))/0x7+parseInt(_0x3b9a70(0x1b5))/0x8*(parseInt(_0x3b9a70(0x1e0))/0x9)+-parseInt(_0x3b9a70(0x1b7))/0xa;if(_0x158e6f===_0x2d9454)break;else _0x37a178['push'](_0x37a178['shift']());}catch(_0xa6d8ac){_0x37a178['push'](_0x37a178['shift']());}}}(a12_0x5481,0xc4434));function a12_0x15f9(_0x4be715,_0x5c06cc){_0x4be715=_0x4be715-0x1b1;const _0x5481e3=a12_0x5481();let _0x15f9eb=_0x5481e3[_0x4be715];return _0x15f9eb;}import a12_0x310999 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_0x4360eb(0x1b2)))[a12_0x4360eb(0x1bb)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x4360eb(0x1d9)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x4360eb(0x1bf)](0x0,0xa)+')':VERSION,cli=a12_0x310999(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});function a12_0x5481(){const _0x37c4ca=['7464780fliZlA','753023HuJaXW','defaultCommand','./cli-flags.js','help','`\x20has\x20been\x20moved\x20to\x20`','8oonuqd','message','34700330gyaLze','⚠\x20`','global','code','dynamicCliFlags','Hint:\x20','4509XmOUeV','5294400Wenbvz','slice','./constant/domain.js','./constant/env.js','name','Unexpected\x20error:','input','hint','Error:\x20','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','service','error','string','userDomain','`;\x20prefer\x20`','runtimeDomain','4lRcorM','log','env','apiDomain','cancelled','raw','`\x20is\x20an\x20alias\x20of\x20`','3065335kcYWJS','wildcardDef','write','flags','unknown','`\x20in\x20v2.0.\x0a','now','844tAtjDj','unknownCommand','\x0aCancelled.\x0a','747246KRxPPi'];a12_0x5481=function(){return _0x37c4ca;};return a12_0x5481();}registerOtelShutdownOnExit(),await run();async function run(){const _0x3e919c=a12_0x4360eb;let _0x2edc2a=cli[_0x3e919c(0x1c4)][0x0],_0x472a8a=cli[_0x3e919c(0x1c4)][0x1];const _0x4bd622=cli[_0x3e919c(0x1d8)];if(!_0x2edc2a){await reportCliHelpTrace(_0x3e919c(0x1b9)),showHelp();return;}const _0x3e4475=deprecatedAliases[_0x2edc2a];if(_0x3e4475&&!isKnownService(_0x2edc2a)){const _0x5af80c=_0x472a8a?CLI_BIN_NAME+'\x20'+_0x2edc2a+'\x20'+_0x472a8a:CLI_BIN_NAME+'\x20'+_0x2edc2a,_0x138e65=CLI_BIN_NAME+'\x20'+_0x3e4475[_0x3e919c(0x1c8)]+'\x20'+_0x3e4475['command'];console[_0x3e919c(0x1c9)](_0x3e919c(0x1b8)+_0x5af80c+_0x3e919c(0x1b4)+_0x138e65+_0x3e919c(0x1da)+_0x3e919c(0x1c7)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x2edc2a)){await reportCliHelpTrace('unknown_service',{'service':_0x2edc2a}),showHelp();return;}const _0x3d7c73=getServiceEntry(_0x2edc2a);if(_0x4bd622['env']&&typeof _0x4bd622[_0x3e919c(0x1d0)]===_0x3e919c(0x1ca)){const {initEnv:_0x2c49e1}=await import(_0x3e919c(0x1c1));_0x2c49e1(_0x4bd622[_0x3e919c(0x1d0)]);}const {buildConfigFromFlags:_0x2c652a}=await import('./context.js'),_0x3bbb49=_0x2c652a(_0x4bd622);if(!_0x4bd622[_0x3e919c(0x1d0)]&&_0x3bbb49[_0x3e919c(0x1d0)]){const {initEnv:_0xedb209}=await import('./constant/env.js');_0xedb209(_0x3bbb49[_0x3e919c(0x1d0)]);}if(_0x3bbb49['raw']?.[_0x3e919c(0x1d1)]||_0x3bbb49[_0x3e919c(0x1d3)]?.['userDomain']||_0x3bbb49[_0x3e919c(0x1d3)]?.[_0x3e919c(0x1cd)]){const {initDomains:_0xe4b147}=await import(_0x3e919c(0x1c0));_0xe4b147({'apiDomain':_0x3bbb49[_0x3e919c(0x1d3)][_0x3e919c(0x1d1)]||undefined,'userDomain':_0x3bbb49[_0x3e919c(0x1d3)][_0x3e919c(0x1cb)]||undefined,'runtimeDomain':_0x3bbb49['raw'][_0x3e919c(0x1cd)]||undefined});}if(!_0x472a8a){if(_0x4bd622['help']){printServiceHelp(_0x2edc2a);return;}if(_0x3d7c73[_0x3e919c(0x1b1)])_0x472a8a=_0x3d7c73['defaultCommand'];else{if(_0x3d7c73['wildcardDef']){await dispatchDeclarative(_0x3d7c73[_0x3e919c(0x1d6)],_0x2edc2a,'',[],_0x4bd622,_0x3bbb49);return;}else{printServiceHelp(_0x2edc2a);return;}}}const _0x5a6072=resolveDeprecatedSubcommand(_0x2edc2a,_0x472a8a);if(_0x5a6072){const _0x4c75b5=CLI_BIN_NAME+'\x20'+_0x2edc2a+'\x20'+_0x472a8a,_0xb3ccfc=CLI_BIN_NAME+'\x20'+_0x2edc2a+'\x20'+_0x5a6072;console[_0x3e919c(0x1c9)](_0x3e919c(0x1b8)+_0x4c75b5+_0x3e919c(0x1d4)+_0xb3ccfc+_0x3e919c(0x1cc)+_0xb3ccfc+'`\x20in\x20new\x20scripts.\x0a'),_0x472a8a=_0x5a6072;}if(_0x4bd622['help']&&!findDefinition(_0x2edc2a,_0x472a8a)){printServiceHelp(_0x2edc2a);return;}{let _0x5e6f1d=findDefinition(_0x2edc2a,_0x472a8a),_0xe92d68=cli[_0x3e919c(0x1c4)]['slice'](0x2);if(!_0x5e6f1d){if(_0x3d7c73[_0x3e919c(0x1d6)]){if(_0x4bd622[_0x3e919c(0x1b3)]){console[_0x3e919c(0x1cf)](generateCommandHelp(_0x3d7c73[_0x3e919c(0x1d6)]));return;}_0x5e6f1d=_0x3d7c73[_0x3e919c(0x1d6)],_0xe92d68=[_0x472a8a,...cli[_0x3e919c(0x1c4)][_0x3e919c(0x1bf)](0x2)];}else{printServiceHelp(_0x2edc2a),await handleErrorAsync(CliErrors[_0x3e919c(0x1dd)](_0x2edc2a+'\x20'+_0x472a8a));return;}}if(_0x4bd622[_0x3e919c(0x1b3)]){console[_0x3e919c(0x1cf)](generateCommandHelp(_0x5e6f1d));return;}await dispatchDeclarative(_0x5e6f1d,_0x2edc2a,_0x472a8a,_0xe92d68,_0x4bd622,_0x3bbb49);}}async function dispatchDeclarative(_0xa45e7b,_0x701348,_0x407871,_0x1dda03,_0x1bc927,_0x45090b){const _0x3b5350=a12_0x4360eb,_0x17683e=Date[_0x3b5350(0x1db)]();let _0x1439f6;try{await runCommand(_0xa45e7b,createPipelineEnv(_0x45090b,_0x1bc927,_0x1dda03));}catch(_0x418318){_0x1439f6=_0x418318;}await reportCommandTrace({'service':_0x701348,'command':_0x407871,'flags':_0x1bc927,'durationMs':Date[_0x3b5350(0x1db)]()-_0x17683e,'error':_0x1439f6});if(_0x1439f6)await handleErrorAsync(_0x1439f6);}function printServiceHelp(_0x52c09c){const _0x14db21=a12_0x4360eb;console[_0x14db21(0x1cf)](generateServiceHelp(_0x52c09c));}async function handleErrorAsync(_0x9e3834){const _0x5b009f=a12_0x4360eb;if(_0x9e3834 instanceof Error&&_0x9e3834[_0x5b009f(0x1c2)]==='ExitPromptError')return process['stderr'][_0x5b009f(0x1d7)](_0x5b009f(0x1de)),await exitWithOtelShutdown(0x0);if(_0x9e3834 instanceof CliError){if(_0x9e3834[_0x5b009f(0x1ba)]===_0x5b009f(0x1d2))return process['stderr'][_0x5b009f(0x1d7)]('\x0a'+_0x9e3834[_0x5b009f(0x1b6)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x5b009f(0x1c9)](_0x5b009f(0x1c6)+_0x9e3834[_0x5b009f(0x1b6)]);if(_0x9e3834[_0x5b009f(0x1c5)])console['error'](_0x5b009f(0x1bc)+_0x9e3834[_0x5b009f(0x1c5)]);return await exitWithOtelShutdown(_0x9e3834['exitCode']);}return console[_0x5b009f(0x1c9)](_0x5b009f(0x1c3),_0x9e3834),await exitWithOtelShutdown(0x1);}
2
+ const a12_0x6854f2=a12_0x53b7;(function(_0x15a31d,_0x3a42aa){const _0x1f6e26=a12_0x53b7,_0x1833ad=_0x15a31d();while(!![]){try{const _0x455f08=parseInt(_0x1f6e26(0x169))/0x1+parseInt(_0x1f6e26(0x17a))/0x2*(parseInt(_0x1f6e26(0x16f))/0x3)+-parseInt(_0x1f6e26(0x182))/0x4*(parseInt(_0x1f6e26(0x16e))/0x5)+parseInt(_0x1f6e26(0x170))/0x6*(parseInt(_0x1f6e26(0x171))/0x7)+-parseInt(_0x1f6e26(0x159))/0x8+-parseInt(_0x1f6e26(0x179))/0x9*(parseInt(_0x1f6e26(0x15d))/0xa)+-parseInt(_0x1f6e26(0x15f))/0xb*(-parseInt(_0x1f6e26(0x181))/0xc);if(_0x455f08===_0x3a42aa)break;else _0x1833ad['push'](_0x1833ad['shift']());}catch(_0x2b53ac){_0x1833ad['push'](_0x1833ad['shift']());}}}(a12_0x48cb,0xa18e1));import a12_0x347d48 from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases,resolveDeprecatedSubcommand}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';function a12_0x48cb(){const _0x4ba3b7=['./constant/env.js','`\x20is\x20an\x20alias\x20of\x20`','env','help','Unexpected\x20error:','dynamicCliFlags','12DzBoRI','148GHZmsr','hint','raw','defaultCommand','code','userDomain','global','wildcardDef','flags','apiDomain','now','6117184eldiPm','ExitPromptError','stderr','unknown','2690TbwCHP','log','8163001KnOCGC','`;\x20prefer\x20`','`\x20has\x20been\x20moved\x20to\x20`','unknownCommand','slice','\x0aCancelled.\x0a','`\x20in\x20v2.0.\x0a','string','⚠\x20`','Error:\x20','186987nCATRx','unknown_service','message','service','write','158450QztkWI','201iwtgzm','780rOSghM','33656PzZluc','error','`\x20in\x20new\x20scripts.\x0a','runtimeDomain','./cli-flags.js','exitCode','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','input','4302LmyHef','35026ovaqki'];a12_0x48cb=function(){return _0x4ba3b7;};return a12_0x48cb();}function a12_0x53b7(_0x10d530,_0x3800ea){_0x10d530=_0x10d530-0x156;const _0x48cbb5=a12_0x48cb();let _0x53b77f=_0x48cbb5[_0x10d530];return _0x53b77f;}let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a12_0x6854f2(0x175)))[a12_0x6854f2(0x180)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x6854f2(0x15c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x6854f2(0x163)](0x0,0xa)+')':VERSION,cli=a12_0x347d48(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x2537ac=a12_0x6854f2;let _0x4dcefe=cli['input'][0x0],_0xfa060=cli[_0x2537ac(0x178)][0x1];const _0x5945bc=cli[_0x2537ac(0x156)];if(!_0x4dcefe){await reportCliHelpTrace(_0x2537ac(0x188)),showHelp();return;}const _0x468257=deprecatedAliases[_0x4dcefe];if(_0x468257&&!isKnownService(_0x4dcefe)){const _0x5916ec=_0xfa060?CLI_BIN_NAME+'\x20'+_0x4dcefe+'\x20'+_0xfa060:CLI_BIN_NAME+'\x20'+_0x4dcefe,_0x1ed8a4=CLI_BIN_NAME+'\x20'+_0x468257[_0x2537ac(0x16c)]+'\x20'+_0x468257['command'];console[_0x2537ac(0x172)]('⚠\x20`'+_0x5916ec+_0x2537ac(0x161)+_0x1ed8a4+_0x2537ac(0x165)+_0x2537ac(0x177)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x4dcefe)){await reportCliHelpTrace(_0x2537ac(0x16a),{'service':_0x4dcefe}),showHelp();return;}const _0x310846=getServiceEntry(_0x4dcefe);if(_0x5945bc[_0x2537ac(0x17d)]&&typeof _0x5945bc[_0x2537ac(0x17d)]===_0x2537ac(0x166)){const {initEnv:_0x3805bb}=await import(_0x2537ac(0x17b));_0x3805bb(_0x5945bc[_0x2537ac(0x17d)]);}const {buildConfigFromFlags:_0x5e038c}=await import('./context.js'),_0x4a47c3=_0x5e038c(_0x5945bc);if(!_0x5945bc['env']&&_0x4a47c3[_0x2537ac(0x17d)]){const {initEnv:_0x3a491c}=await import(_0x2537ac(0x17b));_0x3a491c(_0x4a47c3['env']);}if(_0x4a47c3[_0x2537ac(0x184)]?.[_0x2537ac(0x157)]||_0x4a47c3[_0x2537ac(0x184)]?.[_0x2537ac(0x187)]||_0x4a47c3[_0x2537ac(0x184)]?.[_0x2537ac(0x174)]){const {initDomains:_0x549fd0}=await import('./constant/domain.js');_0x549fd0({'apiDomain':_0x4a47c3[_0x2537ac(0x184)][_0x2537ac(0x157)]||undefined,'userDomain':_0x4a47c3[_0x2537ac(0x184)][_0x2537ac(0x187)]||undefined,'runtimeDomain':_0x4a47c3[_0x2537ac(0x184)]['runtimeDomain']||undefined});}if(!_0xfa060){if(_0x5945bc[_0x2537ac(0x17e)]){printServiceHelp(_0x4dcefe);return;}if(_0x310846[_0x2537ac(0x185)])_0xfa060=_0x310846[_0x2537ac(0x185)];else{if(_0x310846[_0x2537ac(0x189)]){await dispatchDeclarative(_0x310846[_0x2537ac(0x189)],_0x4dcefe,'',[],_0x5945bc,_0x4a47c3);return;}else{printServiceHelp(_0x4dcefe);return;}}}const _0x10602b=resolveDeprecatedSubcommand(_0x4dcefe,_0xfa060);if(_0x10602b){const _0x54fa4b=CLI_BIN_NAME+'\x20'+_0x4dcefe+'\x20'+_0xfa060,_0x4f2710=CLI_BIN_NAME+'\x20'+_0x4dcefe+'\x20'+_0x10602b;console['error'](_0x2537ac(0x167)+_0x54fa4b+_0x2537ac(0x17c)+_0x4f2710+_0x2537ac(0x160)+_0x4f2710+_0x2537ac(0x173)),_0xfa060=_0x10602b;}if(_0x5945bc[_0x2537ac(0x17e)]&&!findDefinition(_0x4dcefe,_0xfa060)){printServiceHelp(_0x4dcefe);return;}{let _0x24abdd=findDefinition(_0x4dcefe,_0xfa060),_0x1ae1a8=cli[_0x2537ac(0x178)]['slice'](0x2);if(!_0x24abdd){if(_0x310846[_0x2537ac(0x189)]){if(_0x5945bc[_0x2537ac(0x17e)]){console[_0x2537ac(0x15e)](generateCommandHelp(_0x310846[_0x2537ac(0x189)]));return;}_0x24abdd=_0x310846[_0x2537ac(0x189)],_0x1ae1a8=[_0xfa060,...cli[_0x2537ac(0x178)][_0x2537ac(0x163)](0x2)];}else{printServiceHelp(_0x4dcefe),await handleErrorAsync(CliErrors[_0x2537ac(0x162)](_0x4dcefe+'\x20'+_0xfa060));return;}}if(_0x5945bc[_0x2537ac(0x17e)]){console['log'](generateCommandHelp(_0x24abdd));return;}await dispatchDeclarative(_0x24abdd,_0x4dcefe,_0xfa060,_0x1ae1a8,_0x5945bc,_0x4a47c3);}}async function dispatchDeclarative(_0xbae95b,_0x2c6171,_0x25dc05,_0x569ecd,_0x1ef016,_0x324e4b){const _0xe39507=a12_0x6854f2,_0x316128=Date['now']();let _0x3194f4;try{await runCommand(_0xbae95b,createPipelineEnv(_0x324e4b,_0x1ef016,_0x569ecd));}catch(_0x556e38){_0x3194f4=_0x556e38;}await reportCommandTrace({'service':_0x2c6171,'command':_0x25dc05,'flags':_0x1ef016,'durationMs':Date[_0xe39507(0x158)]()-_0x316128,'error':_0x3194f4});if(_0x3194f4)await handleErrorAsync(_0x3194f4);}function printServiceHelp(_0x27915f){const _0x559489=a12_0x6854f2;console[_0x559489(0x15e)](generateServiceHelp(_0x27915f));}async function handleErrorAsync(_0x38b833){const _0x21a578=a12_0x6854f2;if(_0x38b833 instanceof Error&&_0x38b833['name']===_0x21a578(0x15a))return process[_0x21a578(0x15b)]['write'](_0x21a578(0x164)),await exitWithOtelShutdown(0x0);if(_0x38b833 instanceof CliError){if(_0x38b833[_0x21a578(0x186)]==='cancelled')return process[_0x21a578(0x15b)][_0x21a578(0x16d)]('\x0a'+_0x38b833[_0x21a578(0x16b)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x21a578(0x172)](_0x21a578(0x168)+_0x38b833[_0x21a578(0x16b)]);if(_0x38b833[_0x21a578(0x183)])console[_0x21a578(0x172)]('Hint:\x20'+_0x38b833[_0x21a578(0x183)]);return await exitWithOtelShutdown(_0x38b833[_0x21a578(0x176)]);}return console['error'](_0x21a578(0x17f),_0x38b833),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- function a13_0x49c8(){const _0x2c3c8c=['\x0d\x20\x20[','stdout','):\x20','Doc\x20generation\x20complete:\x20','start','466672JFbFjV','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','4630728bpnbpe','4UksRqd','parse','string','Fetching\x20dataset\x20list\x20for\x20','9355452DHFIuz','1737183FlhDIe','3885205Lfmwmb','\x20doc(s)\x20in\x20','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','\x20dataset(s)','--datasetcode\x20cannot\x20be\x20empty.','join','9MlOFTn','padStart','cookie','some','appCode','success','datasetcode','...','message','59949gCYrkU','must\x20be\x20a\x20JSON\x20object','has','validation','length','8jhKfPj','datasetName','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','!\x20No\x20datasets\x20found.','error','output','Output\x20directory\x20(default:\x20./docs)','fail','.md','\x1b[90m*\x20Filtered\x20','\x1b[0m','38mtUwYt','isArray','5076370PUlqSI','Invalid\x20--params:\x20','map','\x20succeeded,\x20','22SaPJNN','\x20doc(s)\x20failed','Failed\x20to\x20fetch\x20datasets','Doc\x20generation:\x20','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','object','generate','params','./docs','\x20dataset(s)\x1b[0m','datasetCode','filter','trim'];a13_0x49c8=function(){return _0x2c3c8c;};return a13_0x49c8();}function a13_0x3382(_0x2bac14,_0xd1cf18){_0x2bac14=_0x2bac14-0x15e;const _0x49c824=a13_0x49c8();let _0x3382f9=_0x49c824[_0x2bac14];return _0x3382f9;}const a13_0x1fd636=a13_0x3382;(function(_0x3be7b8,_0x53c2d4){const _0x356774=a13_0x3382,_0x111263=_0x3be7b8();while(!![]){try{const _0xc00f79=-parseInt(_0x356774(0x17a))/0x1+-parseInt(_0x356774(0x162))/0x2*(-parseInt(_0x356774(0x192))/0x3)+parseInt(_0x356774(0x17d))/0x4*(-parseInt(_0x356774(0x183))/0x5)+parseInt(_0x356774(0x17c))/0x6+-parseInt(_0x356774(0x182))/0x7*(parseInt(_0x356774(0x197))/0x8)+-parseInt(_0x356774(0x189))/0x9*(parseInt(_0x356774(0x164))/0xa)+parseInt(_0x356774(0x168))/0xb*(parseInt(_0x356774(0x181))/0xc);if(_0xc00f79===_0x53c2d4)break;else _0x111263['push'](_0x111263['shift']());}catch(_0xbc89ca){_0x111263['push'](_0x111263['shift']());}}}(a13_0x49c8,0xada14));import a13_0x2e2b16 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':'api','command':a13_0x1fd636(0x16e),'description':a13_0x1fd636(0x199),'risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x1fd636(0x19c),'type':a13_0x1fd636(0x17f),'description':a13_0x1fd636(0x19d)},{'name':a13_0x1fd636(0x18f),'type':a13_0x1fd636(0x17f),'description':a13_0x1fd636(0x16c)},{'name':a13_0x1fd636(0x16f),'type':a13_0x1fd636(0x17f),'description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x54f963){const _0x46aed1=a13_0x1fd636,_0x2c40e5=_0x54f963['str'](_0x46aed1(0x19c))||_0x46aed1(0x170),_0x2ebfb7=_0x54f963['str'](_0x46aed1(0x18f)),_0x46182=_0x54f963['str'](_0x46aed1(0x16f));let _0x51512a;if(_0x46182)try{_0x51512a=JSON[_0x46aed1(0x17e)](_0x46182);if(typeof _0x51512a!==_0x46aed1(0x16d)||_0x51512a===null||Array[_0x46aed1(0x163)](_0x51512a))throw new Error(_0x46aed1(0x193));}catch(_0x3d0ac1){throw CliErrors['validation'](_0x46aed1(0x165)+(_0x3d0ac1 instanceof Error?_0x3d0ac1[_0x46aed1(0x191)]:String(_0x3d0ac1)),_0x46aed1(0x17b));}let _0x3e2d1f;if(_0x2ebfb7){const _0x4dcc2d=_0x2ebfb7['split'](',')[_0x46aed1(0x166)](_0x59d8b4=>_0x59d8b4[_0x46aed1(0x174)]())[_0x46aed1(0x173)](_0x33d3ee=>_0x33d3ee[_0x46aed1(0x196)]>0x0);if(_0x4dcc2d[_0x46aed1(0x196)]===0x0)throw CliErrors[_0x46aed1(0x195)](_0x46aed1(0x187));_0x3e2d1f=new Set(_0x4dcc2d),writeCliSideChannelLine('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x4dcc2d[_0x46aed1(0x188)](',\x20')+_0x46aed1(0x161));}const _0x590846=a13_0x2e2b16(_0x46aed1(0x180)+_0x54f963[_0x46aed1(0x18d)]+_0x46aed1(0x190))[_0x46aed1(0x179)]();let _0x17c632;try{({configArray:_0x17c632}=await fetchModelList(_0x54f963[_0x46aed1(0x18d)],_0x54f963[_0x46aed1(0x18b)]),_0x590846['succeed']('Fetched\x20'+_0x17c632[_0x46aed1(0x196)]+_0x46aed1(0x186)));}catch(_0x105a42){_0x590846[_0x46aed1(0x15e)](_0x46aed1(0x16a));throw _0x105a42;}if(_0x17c632[_0x46aed1(0x196)]===0x0)return writeCliSideChannelLine(_0x46aed1(0x19a)),{'ok':!![]};let _0x3885c4=_0x17c632;if(_0x3e2d1f){_0x3885c4=_0x17c632[_0x46aed1(0x173)](_0x348481=>_0x3e2d1f[_0x46aed1(0x194)](_0x348481[_0x46aed1(0x172)]));const _0x3e5ff3=[..._0x3e2d1f]['filter'](_0x537ef2=>!_0x17c632[_0x46aed1(0x18c)](_0x390ac5=>_0x390ac5['datasetCode']===_0x537ef2));_0x3e5ff3[_0x46aed1(0x196)]>0x0&&writeCliSideChannelLine('\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20'+_0x3e5ff3['join'](',\x20')+'\x1b[0m');if(_0x3885c4['length']===0x0)throw CliErrors['validation'](_0x46aed1(0x185)+[..._0x3e2d1f][_0x46aed1(0x188)](',\x20'));writeCliSideChannelLine(_0x46aed1(0x160)+_0x3885c4[_0x46aed1(0x196)]+'\x20of\x20'+_0x17c632[_0x46aed1(0x196)]+_0x46aed1(0x171));}let _0x41d957=0x0;const _0x325e6f=await generateDatasetDocs(_0x3885c4,_0x54f963[_0x46aed1(0x18d)],_0x54f963[_0x46aed1(0x18b)],_0x2c40e5,(_0x5e0edd,_0x5883b7,_0x440bbc)=>{const _0x489270=_0x46aed1;_0x41d957=_0x5e0edd,process[_0x489270(0x176)]['write'](_0x489270(0x175)+String(_0x5e0edd)[_0x489270(0x18a)](String(_0x5883b7)[_0x489270(0x196)])+'/'+_0x5883b7+']\x20'+_0x440bbc+_0x489270(0x15f));},_0x51512a);if(_0x41d957>0x0)process[_0x46aed1(0x176)]['write']('\x0a');const _0x80bbce=_0x325e6f[_0x46aed1(0x173)](_0x509562=>_0x509562[_0x46aed1(0x18e)])[_0x46aed1(0x196)],_0xc417de=_0x325e6f[_0x46aed1(0x173)](_0x347cc9=>!_0x347cc9['success'])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine('✓\x20Generated\x20'+_0x80bbce+_0x46aed1(0x184)+_0x2c40e5);if(_0xc417de>0x0){writeCliSideChannelLine('!\x20'+_0xc417de+_0x46aed1(0x169));for(const _0x1b28f3 of _0x325e6f['filter'](_0x5a6fc8=>!_0x5a6fc8[_0x46aed1(0x18e)])){writeCliSideChannelLine('\x20\x20•\x20'+_0x1b28f3[_0x46aed1(0x198)]+'\x20('+_0x1b28f3[_0x46aed1(0x172)]+_0x46aed1(0x177)+_0x1b28f3[_0x46aed1(0x19b)]);}}return{'ok':_0xc417de===0x0,'message':_0xc417de>0x0?_0x46aed1(0x16b)+_0x80bbce+_0x46aed1(0x167)+_0xc417de+'\x20failed':_0x46aed1(0x178)+_0x80bbce+'\x20file(s)'};}};
1
+ function a13_0x5aee(){const _0x1fa5b0=['success','start','params','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','generate','must\x20be\x20a\x20JSON\x20object','\x20file(s)','6RewAQL','403644nHiYeo','output','!\x20No\x20datasets\x20found.','35864OPdRMJ','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','--datasetcode\x20cannot\x20be\x20empty.','Invalid\x20--params:\x20','join','\x20\x20•\x20','datasetCode','\x20succeeded,\x20','parse','\x20of\x20','appCode','\x20dataset(s)','Fetching\x20dataset\x20list\x20for\x20','.md','string','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','Doc\x20generation:\x20','91192EMQjxr','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','write','1912265jqEESb','\x1b[90m*\x20Generating\x20docs\x20for:\x20','length','Fetched\x20','split','message','Output\x20directory\x20(default:\x20./docs)','455WCdHov','57060DKgYXW','datasetName','cookie','✓\x20Generated\x20','8JgmdTe','str','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','\x1b[0m','datasetcode','succeed','padStart','map','object','):\x20','\x20doc(s)\x20in\x20','Doc\x20generation\x20complete:\x20','559143fzHWoE','stdout','...','\x20doc(s)\x20failed','filter','validation','1144uAhenv','2307868lKGace','trim'];a13_0x5aee=function(){return _0x1fa5b0;};return a13_0x5aee();}const a13_0x3dc62b=a13_0xb21e;(function(_0x4dc940,_0x171873){const _0x1172a1=a13_0xb21e,_0x4901d9=_0x4dc940();while(!![]){try{const _0x9d5784=-parseInt(_0x1172a1(0x93))/0x1*(-parseInt(_0x1172a1(0xa2))/0x2)+parseInt(_0x1172a1(0x7f))/0x3+-parseInt(_0x1172a1(0xb5))/0x4+-parseInt(_0x1172a1(0x96))/0x5*(parseInt(_0x1172a1(0x7e))/0x6)+-parseInt(_0x1172a1(0x9d))/0x7*(-parseInt(_0x1172a1(0x82))/0x8)+-parseInt(_0x1172a1(0xae))/0x9+parseInt(_0x1172a1(0x9e))/0xa*(parseInt(_0x1172a1(0xb4))/0xb);if(_0x9d5784===_0x171873)break;else _0x4901d9['push'](_0x4901d9['shift']());}catch(_0x5cb04b){_0x4901d9['push'](_0x4901d9['shift']());}}}(a13_0x5aee,0x5885c));import a13_0x4056ac from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a13_0xb21e(_0x134782,_0x1e8fce){_0x134782=_0x134782-0x7a;const _0x5aee8f=a13_0x5aee();let _0xb21ef=_0x5aee8f[_0x134782];return _0xb21ef;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':'api','command':a13_0x3dc62b(0x7b),'description':a13_0x3dc62b(0x83),'risk':a13_0x3dc62b(0x95),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x3dc62b(0x80),'type':a13_0x3dc62b(0x90),'description':a13_0x3dc62b(0x9c)},{'name':a13_0x3dc62b(0xa6),'type':a13_0x3dc62b(0x90),'description':a13_0x3dc62b(0xa4)},{'name':a13_0x3dc62b(0xb9),'type':a13_0x3dc62b(0x90),'description':a13_0x3dc62b(0x91)}],async 'execute'(_0x51a2cb){const _0xbdbdb0=a13_0x3dc62b,_0x422ad5=_0x51a2cb['str'](_0xbdbdb0(0x80))||'./docs',_0x2274fb=_0x51a2cb[_0xbdbdb0(0xa3)](_0xbdbdb0(0xa6)),_0x5f02c2=_0x51a2cb['str'](_0xbdbdb0(0xb9));let _0x48ab22;if(_0x5f02c2)try{_0x48ab22=JSON[_0xbdbdb0(0x8a)](_0x5f02c2);if(typeof _0x48ab22!==_0xbdbdb0(0xaa)||_0x48ab22===null||Array['isArray'](_0x48ab22))throw new Error(_0xbdbdb0(0x7c));}catch(_0x1528cb){throw CliErrors[_0xbdbdb0(0xb3)](_0xbdbdb0(0x85)+(_0x1528cb instanceof Error?_0x1528cb[_0xbdbdb0(0x9b)]:String(_0x1528cb)),'Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27');}let _0x25149e;if(_0x2274fb){const _0x389a73=_0x2274fb[_0xbdbdb0(0x9a)](',')[_0xbdbdb0(0xa9)](_0x3b65ab=>_0x3b65ab[_0xbdbdb0(0xb6)]())[_0xbdbdb0(0xb2)](_0x2d124e=>_0x2d124e['length']>0x0);if(_0x389a73[_0xbdbdb0(0x98)]===0x0)throw CliErrors[_0xbdbdb0(0xb3)](_0xbdbdb0(0x84));_0x25149e=new Set(_0x389a73),writeCliSideChannelLine(_0xbdbdb0(0x97)+_0x389a73['join'](',\x20')+_0xbdbdb0(0xa5));}const _0x147144=a13_0x4056ac(_0xbdbdb0(0x8e)+_0x51a2cb[_0xbdbdb0(0x8c)]+_0xbdbdb0(0xb0))[_0xbdbdb0(0xb8)]();let _0x3493d0;try{({configArray:_0x3493d0}=await fetchModelList(_0x51a2cb[_0xbdbdb0(0x8c)],_0x51a2cb['cookie']),_0x147144[_0xbdbdb0(0xa7)](_0xbdbdb0(0x99)+_0x3493d0['length']+_0xbdbdb0(0x8d)));}catch(_0x30406f){_0x147144['fail']('Failed\x20to\x20fetch\x20datasets');throw _0x30406f;}if(_0x3493d0[_0xbdbdb0(0x98)]===0x0)return writeCliSideChannelLine(_0xbdbdb0(0x81)),{'ok':!![]};let _0x535296=_0x3493d0;if(_0x25149e){_0x535296=_0x3493d0[_0xbdbdb0(0xb2)](_0x5d3a79=>_0x25149e['has'](_0x5d3a79[_0xbdbdb0(0x88)]));const _0x13b5c2=[..._0x25149e][_0xbdbdb0(0xb2)](_0x47d6a4=>!_0x3493d0['some'](_0x1ef92e=>_0x1ef92e[_0xbdbdb0(0x88)]===_0x47d6a4));_0x13b5c2['length']>0x0&&writeCliSideChannelLine(_0xbdbdb0(0x7a)+_0x13b5c2[_0xbdbdb0(0x86)](',\x20')+_0xbdbdb0(0xa5));if(_0x535296['length']===0x0)throw CliErrors['validation'](_0xbdbdb0(0x94)+[..._0x25149e][_0xbdbdb0(0x86)](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0x535296['length']+_0xbdbdb0(0x8b)+_0x3493d0[_0xbdbdb0(0x98)]+'\x20dataset(s)\x1b[0m');}let _0x10a1bf=0x0;const _0x5a8287=await generateDatasetDocs(_0x535296,_0x51a2cb[_0xbdbdb0(0x8c)],_0x51a2cb[_0xbdbdb0(0xa0)],_0x422ad5,(_0x5edfe5,_0x2828e4,_0x2bf5b9)=>{const _0x1a8720=_0xbdbdb0;_0x10a1bf=_0x5edfe5,process[_0x1a8720(0xaf)]['write']('\x0d\x20\x20['+String(_0x5edfe5)[_0x1a8720(0xa8)](String(_0x2828e4)[_0x1a8720(0x98)])+'/'+_0x2828e4+']\x20'+_0x2bf5b9+_0x1a8720(0x8f));},_0x48ab22);if(_0x10a1bf>0x0)process[_0xbdbdb0(0xaf)][_0xbdbdb0(0x95)]('\x0a');const _0x9afc7=_0x5a8287['filter'](_0x40dcdf=>_0x40dcdf['success'])[_0xbdbdb0(0x98)],_0x17bb42=_0x5a8287[_0xbdbdb0(0xb2)](_0x1b3291=>!_0x1b3291[_0xbdbdb0(0xb7)])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine(_0xbdbdb0(0xa1)+_0x9afc7+_0xbdbdb0(0xac)+_0x422ad5);if(_0x17bb42>0x0){writeCliSideChannelLine('!\x20'+_0x17bb42+_0xbdbdb0(0xb1));for(const _0x59054e of _0x5a8287[_0xbdbdb0(0xb2)](_0x47a854=>!_0x47a854['success'])){writeCliSideChannelLine(_0xbdbdb0(0x87)+_0x59054e[_0xbdbdb0(0x9f)]+'\x20('+_0x59054e[_0xbdbdb0(0x88)]+_0xbdbdb0(0xab)+_0x59054e['error']);}}return{'ok':_0x17bb42===0x0,'message':_0x17bb42>0x0?_0xbdbdb0(0x92)+_0x9afc7+_0xbdbdb0(0x89)+_0x17bb42+'\x20failed':_0xbdbdb0(0xad)+_0x9afc7+_0xbdbdb0(0x7d)};}};
@@ -1 +1 @@
1
- (function(_0x17f25b,_0x574a87){const _0x58b51a=a14_0x55d0,_0x235030=_0x17f25b();while(!![]){try{const _0x483ed5=-parseInt(_0x58b51a(0x16b))/0x1*(-parseInt(_0x58b51a(0x16c))/0x2)+-parseInt(_0x58b51a(0x167))/0x3+parseInt(_0x58b51a(0x16f))/0x4*(-parseInt(_0x58b51a(0x165))/0x5)+parseInt(_0x58b51a(0x16d))/0x6*(-parseInt(_0x58b51a(0x16a))/0x7)+parseInt(_0x58b51a(0x16e))/0x8*(-parseInt(_0x58b51a(0x169))/0x9)+-parseInt(_0x58b51a(0x166))/0xa+parseInt(_0x58b51a(0x168))/0xb;if(_0x483ed5===_0x574a87)break;else _0x235030['push'](_0x235030['shift']());}catch(_0x278ab5){_0x235030['push'](_0x235030['shift']());}}}(a14_0xccb0,0xb5601));function a14_0xccb0(){const _0x2480fd=['1225tEhhEv','2981480FSeFHV','904545ynFAxB','13699631QkDJcr','36ZxHLLB','7jqPOUK','96203slNAOF','22TkLxSJ','2601114LsHEqv','434288XVUpsJ','5068QQBTRP'];a14_0xccb0=function(){return _0x2480fd;};return a14_0xccb0();}function a14_0x55d0(_0x478f3e,_0x41eaed){_0x478f3e=_0x478f3e-0x165;const _0xccb0a=a14_0xccb0();let _0x55d0d9=_0xccb0a[_0x478f3e];return _0x55d0d9;}import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
1
+ (function(_0x5e704b,_0x3aff16){const _0x203675=a14_0x2744,_0x3be2a5=_0x5e704b();while(!![]){try{const _0x120271=-parseInt(_0x203675(0xf4))/0x1+-parseInt(_0x203675(0xf0))/0x2+-parseInt(_0x203675(0xf3))/0x3+parseInt(_0x203675(0xf7))/0x4+-parseInt(_0x203675(0xf6))/0x5*(-parseInt(_0x203675(0xef))/0x6)+-parseInt(_0x203675(0xf1))/0x7*(-parseInt(_0x203675(0xf2))/0x8)+parseInt(_0x203675(0xf5))/0x9*(parseInt(_0x203675(0xf8))/0xa);if(_0x120271===_0x3aff16)break;else _0x3be2a5['push'](_0x3be2a5['shift']());}catch(_0x5a6783){_0x3be2a5['push'](_0x3be2a5['shift']());}}}(a14_0x2f9d,0x2eb0b));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';function a14_0x2f9d(){const _0x25f80c=['101470sXlaxO','42mjozEG','683158KBglkC','2026220JlvLjg','8nwHMUR','744411zrpzeW','124420OyklFZ','477DXSdfO','11170FjBnkU','249960OWqquc'];a14_0x2f9d=function(){return _0x25f80c;};return a14_0x2f9d();}function a14_0x2744(_0x32ba7a,_0x317e02){_0x32ba7a=_0x32ba7a-0xef;const _0x2f9d82=a14_0x2f9d();let _0x274487=_0x2f9d82[_0x32ba7a];return _0x274487;}export const apiDefinitions=[apiList,apiPull,apiGenerate];
@@ -1 +1 @@
1
- const a15_0x348ed7=a15_0x31d3;(function(_0xb9db01,_0xc65276){const _0x56165e=a15_0x31d3,_0x14a3d6=_0xb9db01();while(!![]){try{const _0x5f5bd6=parseInt(_0x56165e(0x159))/0x1*(parseInt(_0x56165e(0x153))/0x2)+parseInt(_0x56165e(0x15b))/0x3+parseInt(_0x56165e(0x158))/0x4*(parseInt(_0x56165e(0x152))/0x5)+-parseInt(_0x56165e(0x14d))/0x6*(parseInt(_0x56165e(0x157))/0x7)+parseInt(_0x56165e(0x15a))/0x8+-parseInt(_0x56165e(0x155))/0x9*(-parseInt(_0x56165e(0x15d))/0xa)+-parseInt(_0x56165e(0x14e))/0xb;if(_0x5f5bd6===_0xc65276)break;else _0x14a3d6['push'](_0x14a3d6['shift']());}catch(_0x7f01e7){_0x14a3d6['push'](_0x14a3d6['shift']());}}}(a15_0x1f09,0x7595e));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';function a15_0x31d3(_0x487542,_0x325e54){_0x487542=_0x487542-0x14d;const _0x1f09cc=a15_0x1f09();let _0x31d3b5=_0x1f09cc[_0x487542];return _0x31d3b5;}export const apiList={'service':a15_0x348ed7(0x160),'command':'list','description':a15_0x348ed7(0x14f),'risk':'read','requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'global','type':'boolean','description':a15_0x348ed7(0x15f),'default':![]}],async 'execute'(_0x5da72c){const _0x222571=a15_0x348ed7,_0x3dfa5f=_0x5da72c['rawFlags'][_0x222571(0x154)]?String(_0x5da72c['rawFlags']['appcode']):undefined,_0x5f27e2=resolveTargetApps(_0x5da72c,_0x3dfa5f);if(_0x5f27e2){const _0x4a35e3=[];for(const _0x332ae3 of _0x5f27e2){const _0x178d73=_0x332ae3[_0x222571(0x156)]||_0x5da72c[_0x222571(0x156)],_0x263993=_0x332ae3['env']||_0x222571(0x161);initEnv(_0x263993);const {configArray:_0x110151}=await fetchModelList(_0x332ae3['appcode'],_0x178d73);_0x4a35e3[_0x222571(0x15e)](..._0x110151['map'](_0x4dbd0e=>({..._0x4dbd0e,'_appName':_0x332ae3[_0x222571(0x15c)],'_appCode':_0x332ae3[_0x222571(0x154)],'_env':_0x263993,'_isDefault':_0x332ae3[_0x222571(0x150)]})));}return{'ok':!![],'data':_0x4a35e3};}const {configArray:_0x5e9062}=await fetchModelList(_0x5da72c[_0x222571(0x151)],_0x5da72c[_0x222571(0x156)]);return{'ok':!![],'data':_0x5e9062};}};function a15_0x1f09(){const _0x296cf1=['Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','api','production','22974myiTNQ','13840640eKRUaR','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','isDefault','appCode','565DRgasH','8NdwKDU','appcode','9lYkWZD','cookie','763SYWWVR','13012EOzJLp','104969euVYdW','3396800vupJfx','2792367zlTios','name','143770cmGsHG','push'];a15_0x1f09=function(){return _0x296cf1;};return a15_0x1f09();}
1
+ const a15_0x709f25=a15_0x313c;(function(_0x105578,_0x2fec27){const _0x364a77=a15_0x313c,_0x214194=_0x105578();while(!![]){try{const _0x1f8c07=-parseInt(_0x364a77(0x1f7))/0x1*(-parseInt(_0x364a77(0x1f5))/0x2)+-parseInt(_0x364a77(0x1e2))/0x3*(parseInt(_0x364a77(0x1f6))/0x4)+parseInt(_0x364a77(0x1ea))/0x5*(parseInt(_0x364a77(0x1ee))/0x6)+-parseInt(_0x364a77(0x1f9))/0x7*(-parseInt(_0x364a77(0x1e0))/0x8)+parseInt(_0x364a77(0x1ed))/0x9*(parseInt(_0x364a77(0x1e3))/0xa)+-parseInt(_0x364a77(0x1f8))/0xb*(parseInt(_0x364a77(0x1f1))/0xc)+-parseInt(_0x364a77(0x1f4))/0xd*(parseInt(_0x364a77(0x1e1))/0xe);if(_0x1f8c07===_0x2fec27)break;else _0x214194['push'](_0x214194['shift']());}catch(_0x2949fa){_0x214194['push'](_0x214194['shift']());}}}(a15_0x415c,0x46862));import{initEnv}from'../../constant/env.js';function a15_0x313c(_0x2f7dbb,_0x2c8ffb){_0x2f7dbb=_0x2f7dbb-0x1df;const _0x415c81=a15_0x415c();let _0x313c89=_0x415c81[_0x2f7dbb];return _0x313c89;}import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x415c(){const _0x1fa900=['Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','env','api','read','2549465omILnk','rawFlags','boolean','11304wkWYIp','6SfOJAQ','name','appCode','110160yFTTKb','cookie','push','4244461cssLDc','166DoEbap','32TiuoHZ','2047rOtBhZ','198VBGvju','2401zOxxOl','appcode','list','13048kRmZeF','14GpvmtS','201657EKlrEh','630qwQCiP','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','map'];a15_0x415c=function(){return _0x1fa900;};return a15_0x415c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x709f25(0x1e8),'command':a15_0x709f25(0x1df),'description':a15_0x709f25(0x1e4),'risk':a15_0x709f25(0x1e9),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'global','type':a15_0x709f25(0x1ec),'description':a15_0x709f25(0x1e6),'default':![]}],async 'execute'(_0x1b04d0){const _0x567052=a15_0x709f25,_0x4a4abc=_0x1b04d0[_0x567052(0x1eb)][_0x567052(0x1fa)]?String(_0x1b04d0[_0x567052(0x1eb)][_0x567052(0x1fa)]):undefined,_0x1eddec=resolveTargetApps(_0x1b04d0,_0x4a4abc);if(_0x1eddec){const _0x3fa32b=[];for(const _0x42527a of _0x1eddec){const _0x5f4aad=_0x42527a[_0x567052(0x1f2)]||_0x1b04d0[_0x567052(0x1f2)],_0x5e2663=_0x42527a[_0x567052(0x1e7)]||'production';initEnv(_0x5e2663);const {configArray:_0x4364d1}=await fetchModelList(_0x42527a[_0x567052(0x1fa)],_0x5f4aad);_0x3fa32b[_0x567052(0x1f3)](..._0x4364d1[_0x567052(0x1e5)](_0x3078cd=>({..._0x3078cd,'_appName':_0x42527a[_0x567052(0x1ef)],'_appCode':_0x42527a['appcode'],'_env':_0x5e2663,'_isDefault':_0x42527a['isDefault']})));}return{'ok':!![],'data':_0x3fa32b};}const {configArray:_0x1abd23}=await fetchModelList(_0x1b04d0[_0x567052(0x1f0)],_0x1b04d0[_0x567052(0x1f2)]);return{'ok':!![],'data':_0x1abd23};}};
@@ -1 +1 @@
1
- function a16_0x1647(_0x5f2442,_0x4e1b7b){_0x5f2442=_0x5f2442-0x1c9;const _0x472bcb=a16_0x472b();let _0x16476f=_0x472bcb[_0x5f2442];return _0x16476f;}const a16_0x31f2d1=a16_0x1647;(function(_0x196dd2,_0x538420){const _0x2d3c80=a16_0x1647,_0x29cdf4=_0x196dd2();while(!![]){try{const _0x1e66d0=parseInt(_0x2d3c80(0x1cb))/0x1*(parseInt(_0x2d3c80(0x1d6))/0x2)+parseInt(_0x2d3c80(0x1de))/0x3*(parseInt(_0x2d3c80(0x1d4))/0x4)+-parseInt(_0x2d3c80(0x1d1))/0x5+parseInt(_0x2d3c80(0x1d0))/0x6*(parseInt(_0x2d3c80(0x1f9))/0x7)+parseInt(_0x2d3c80(0x1e0))/0x8+-parseInt(_0x2d3c80(0x1da))/0x9*(parseInt(_0x2d3c80(0x1ff))/0xa)+parseInt(_0x2d3c80(0x1f3))/0xb;if(_0x1e66d0===_0x538420)break;else _0x29cdf4['push'](_0x29cdf4['shift']());}catch(_0x1b05b3){_0x29cdf4['push'](_0x29cdf4['shift']());}}}(a16_0x472b,0x487ff));function a16_0x472b(){const _0x3296ed=['1683858ZCdkqV','Done:\x20','appCode','client','Failed:\x20','str','385swrbWZ','apiFilePath','global','clientFilePath','boolean','-client','736340QUGgMi','Pulling\x20API\x20config\x20for\x20','env','...','5XdWiFT','.ts','rawFlags','Output\x20directory\x20(default:\x20','api','14382jidyTR','1006540icWKzI','join','\x20app(s)\x20failed','4172VLEZnQ','Pulled\x20','137988aBzeKl','\x20model(s)','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','name','45VAdXeP','\x20dataset(s)\x20→\x20','pull','appcode','255FSykzW','\x20failed','1183192tZwffG','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','apiDir','string','-api','modelCount','cookie','start','production','write','succeed','split','length','fail','isDefault','message','slice','output','\x20\x20•\x20'];a16_0x472b=function(){return _0x3296ed;};return a16_0x472b();}import a16_0x3348eb from'ora';import a16_0x387c02 from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':a16_0x31f2d1(0x1cf),'command':a16_0x31f2d1(0x1dc),'description':a16_0x31f2d1(0x1d8)+DEFAULT_API_DIR+'/)','risk':a16_0x31f2d1(0x1e9),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x31f2d1(0x1f1),'type':a16_0x31f2d1(0x1e3),'description':a16_0x31f2d1(0x1ce)+DEFAULT_API_DIR+'/)'},{'name':a16_0x31f2d1(0x1fb),'type':a16_0x31f2d1(0x1fd),'description':a16_0x31f2d1(0x1e1),'default':![]}],async 'execute'(_0x548d91){const _0x15fead=a16_0x31f2d1,_0x223b0d=_0x548d91[_0x15fead(0x1cd)][_0x15fead(0x1dd)]?String(_0x548d91[_0x15fead(0x1cd)][_0x15fead(0x1dd)]):undefined,_0x7ebfd1=_0x548d91[_0x15fead(0x1f8)]('output')||undefined,_0x5df514=resolveTargetApps(_0x548d91,_0x223b0d);if(_0x5df514){let _0x403ca5=0x0,_0x314d1b=0x0;for(const _0x4e86fa of _0x5df514){const _0x62138d=_0x4e86fa[_0x15fead(0x1e6)]||_0x548d91[_0x15fead(0x1e6)],_0x12d26c=_0x4e86fa[_0x15fead(0x1c9)]||_0x15fead(0x1e8);initEnv(_0x12d26c);const _0x4c9aff=_0x4e86fa[_0x15fead(0x1e2)]||_0x7ebfd1||_0x548d91['apiDir']||DEFAULT_API_DIR,_0x1045e6=_0x4e86fa['isDefault']?'':_0x4e86fa[_0x15fead(0x1d9)]||_0x4e86fa[_0x15fead(0x1dd)],_0x1abce3=a16_0x3348eb('Pulling\x20'+_0x4e86fa['name']+'\x20('+_0x4e86fa[_0x15fead(0x1dd)]+')...')[_0x15fead(0x1e7)]();try{const {configArray:_0x43d9fa}=await fetchModelList(_0x4e86fa[_0x15fead(0x1dd)],_0x62138d),_0x33682c=await generateApiFile(_0x43d9fa,_0x1045e6,_0x4e86fa[_0x15fead(0x1dd)],_0x4e86fa[_0x15fead(0x1ee)],_0x12d26c,_0x4c9aff,_0x4e86fa[_0x15fead(0x1d9)]);_0x1abce3[_0x15fead(0x1ea)](_0x4e86fa['name']+':\x20'+_0x43d9fa['length']+_0x15fead(0x1db)+_0x33682c['modelCount']+'\x20model(s)'),writeCliSideChannelLine(_0x15fead(0x1f2)+_0x33682c[_0x15fead(0x1fa)]),writeCliSideChannelLine(_0x15fead(0x1f2)+_0x33682c[_0x15fead(0x1fc)]),_0x403ca5++;}catch(_0x159077){_0x1abce3[_0x15fead(0x1ed)](_0x4e86fa['name']+':\x20'+(_0x159077 instanceof Error?_0x159077[_0x15fead(0x1ef)]:String(_0x159077))),_0x314d1b++;}}writeCliSideChannelLine('');if(_0x314d1b>0x0)writeCliSideChannelLine('!\x20'+_0x314d1b+_0x15fead(0x1d3));return{'ok':_0x314d1b===0x0,'message':_0x15fead(0x1f4)+_0x403ca5+'\x20succeeded,\x20'+_0x314d1b+_0x15fead(0x1df)};}const _0x28bfeb=_0x223b0d&&_0x223b0d['includes']('-')?_0x223b0d[_0x15fead(0x1eb)]('-')[_0x15fead(0x1f0)](0x1)['join']('-'):'',_0xbf32e0=_0x7ebfd1||_0x548d91['apiDir']||DEFAULT_API_DIR,_0x49ad37=!_0x223b0d,_0x5d2e48=a16_0x3348eb(_0x15fead(0x200)+_0x548d91['appCode']+_0x15fead(0x1ca))[_0x15fead(0x1e7)]();try{const {configArray:_0x623fd3}=await fetchModelList(_0x548d91[_0x15fead(0x1f5)],_0x548d91['cookie']),_0x4c914b=await generateApiFile(_0x623fd3,_0x28bfeb,_0x548d91[_0x15fead(0x1f5)],_0x49ad37,getEnv(),_0xbf32e0);_0x5d2e48['succeed'](_0x15fead(0x1d5)+_0x623fd3[_0x15fead(0x1ec)]+'\x20dataset(s),\x20generated\x20'+_0x4c914b['modelCount']+_0x15fead(0x1d7));const _0x328bd6=_0x28bfeb?_0x28bfeb+_0x15fead(0x1e4):_0x15fead(0x1cf),_0x2d45c0=_0x28bfeb?_0x28bfeb+_0x15fead(0x1fe):_0x15fead(0x1f6);return writeCliSideChannelLine(_0x15fead(0x1f2)+a16_0x387c02[_0x15fead(0x1d2)](_0xbf32e0,_0x328bd6+_0x15fead(0x1cc))),writeCliSideChannelLine(_0x15fead(0x1f2)+a16_0x387c02[_0x15fead(0x1d2)](_0xbf32e0,_0x2d45c0+'.ts')),{'ok':!![],'data':{'datasetCount':_0x623fd3[_0x15fead(0x1ec)],'modelCount':_0x4c914b[_0x15fead(0x1e5)]}};}catch(_0x56e19d){_0x5d2e48['fail'](_0x15fead(0x1f7)+(_0x56e19d instanceof Error?_0x56e19d[_0x15fead(0x1ef)]:String(_0x56e19d)));throw _0x56e19d;}}};
1
+ const a16_0x19c3bf=a16_0x2372;(function(_0x4d5491,_0xc3cafb){const _0x532dcb=a16_0x2372,_0x33ba41=_0x4d5491();while(!![]){try{const _0xfe1eda=parseInt(_0x532dcb(0x144))/0x1+-parseInt(_0x532dcb(0x137))/0x2*(-parseInt(_0x532dcb(0x164))/0x3)+-parseInt(_0x532dcb(0x163))/0x4*(parseInt(_0x532dcb(0x153))/0x5)+-parseInt(_0x532dcb(0x15e))/0x6*(-parseInt(_0x532dcb(0x165))/0x7)+-parseInt(_0x532dcb(0x156))/0x8+-parseInt(_0x532dcb(0x145))/0x9*(parseInt(_0x532dcb(0x157))/0xa)+-parseInt(_0x532dcb(0x15c))/0xb;if(_0xfe1eda===_0xc3cafb)break;else _0x33ba41['push'](_0x33ba41['shift']());}catch(_0x4daa3d){_0x33ba41['push'](_0x33ba41['shift']());}}}(a16_0x542d,0x8c4bc));import a16_0x359db9 from'ora';import a16_0x2ef8db from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a16_0x2372(_0xc22ddc,_0x2c2d5d){_0xc22ddc=_0xc22ddc-0x134;const _0x542d94=a16_0x542d();let _0x23728e=_0x542d94[_0xc22ddc];return _0x23728e;}function a16_0x542d(){const _0x115092=['\x20failed','926170wBdAuV','9wccvTD','includes','Failed:\x20','join','string','message','\x20dataset(s),\x20generated\x20','\x20model(s)','api','\x20dataset(s)\x20→\x20','apiFilePath','Pulling\x20API\x20config\x20for\x20','Output\x20directory\x20(default:\x20','\x20\x20•\x20','3830ggZfJX','cookie','-client','5989880FVLkoD','1467920XBUWOm','output',')...','name','modelCount','12352582MBobBR','apiDir','6334062OAFIrI','Pulled\x20','start','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','\x20succeeded,\x20','292aEmMpj','84WjtqfJ','7KqlYcR','str','split','appcode','47658MjVYbZ','length','isDefault','.ts','\x20app(s)\x20failed','fail','appCode','client','Pulling\x20','env','slice','global'];a16_0x542d=function(){return _0x115092;};return a16_0x542d();}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_0x19c3bf(0x14d),'command':'pull','description':'Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20('+DEFAULT_API_DIR+'/)','risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x19c3bf(0x158),'type':a16_0x19c3bf(0x149),'description':a16_0x19c3bf(0x151)+DEFAULT_API_DIR+'/)'},{'name':a16_0x19c3bf(0x142),'type':'boolean','description':a16_0x19c3bf(0x161),'default':![]}],async 'execute'(_0x1efd1c){const _0xc3d9d8=a16_0x19c3bf,_0x1328fa=_0x1efd1c['rawFlags'][_0xc3d9d8(0x136)]?String(_0x1efd1c['rawFlags'][_0xc3d9d8(0x136)]):undefined,_0x1db94c=_0x1efd1c[_0xc3d9d8(0x134)](_0xc3d9d8(0x158))||undefined,_0x5a5106=resolveTargetApps(_0x1efd1c,_0x1328fa);if(_0x5a5106){let _0x24c52e=0x0,_0x42e901=0x0;for(const _0x15d10d of _0x5a5106){const _0x254830=_0x15d10d[_0xc3d9d8(0x154)]||_0x1efd1c[_0xc3d9d8(0x154)],_0x3bdbd2=_0x15d10d[_0xc3d9d8(0x140)]||'production';initEnv(_0x3bdbd2);const _0x1f0826=_0x15d10d[_0xc3d9d8(0x15d)]||_0x1db94c||_0x1efd1c[_0xc3d9d8(0x15d)]||DEFAULT_API_DIR,_0x2c0eaf=_0x15d10d[_0xc3d9d8(0x139)]?'':_0x15d10d['name']||_0x15d10d['appcode'],_0x5f3746=a16_0x359db9(_0xc3d9d8(0x13f)+_0x15d10d[_0xc3d9d8(0x15a)]+'\x20('+_0x15d10d[_0xc3d9d8(0x136)]+_0xc3d9d8(0x159))[_0xc3d9d8(0x160)]();try{const {configArray:_0x56fe6d}=await fetchModelList(_0x15d10d[_0xc3d9d8(0x136)],_0x254830),_0x5209a4=await generateApiFile(_0x56fe6d,_0x2c0eaf,_0x15d10d[_0xc3d9d8(0x136)],_0x15d10d[_0xc3d9d8(0x139)],_0x3bdbd2,_0x1f0826,_0x15d10d[_0xc3d9d8(0x15a)]);_0x5f3746['succeed'](_0x15d10d['name']+':\x20'+_0x56fe6d[_0xc3d9d8(0x138)]+_0xc3d9d8(0x14e)+_0x5209a4[_0xc3d9d8(0x15b)]+_0xc3d9d8(0x14c)),writeCliSideChannelLine('\x20\x20•\x20'+_0x5209a4[_0xc3d9d8(0x14f)]),writeCliSideChannelLine('\x20\x20•\x20'+_0x5209a4['clientFilePath']),_0x24c52e++;}catch(_0x39e91d){_0x5f3746[_0xc3d9d8(0x13c)](_0x15d10d[_0xc3d9d8(0x15a)]+':\x20'+(_0x39e91d instanceof Error?_0x39e91d[_0xc3d9d8(0x14a)]:String(_0x39e91d))),_0x42e901++;}}writeCliSideChannelLine('');if(_0x42e901>0x0)writeCliSideChannelLine('!\x20'+_0x42e901+_0xc3d9d8(0x13b));return{'ok':_0x42e901===0x0,'message':'Done:\x20'+_0x24c52e+_0xc3d9d8(0x162)+_0x42e901+_0xc3d9d8(0x143)};}const _0x4aff34=_0x1328fa&&_0x1328fa[_0xc3d9d8(0x146)]('-')?_0x1328fa[_0xc3d9d8(0x135)]('-')[_0xc3d9d8(0x141)](0x1)[_0xc3d9d8(0x148)]('-'):'',_0x17f65c=_0x1db94c||_0x1efd1c[_0xc3d9d8(0x15d)]||DEFAULT_API_DIR,_0x59d13b=!_0x1328fa,_0x564c44=a16_0x359db9(_0xc3d9d8(0x150)+_0x1efd1c[_0xc3d9d8(0x13d)]+'...')['start']();try{const {configArray:_0xe74c7c}=await fetchModelList(_0x1efd1c[_0xc3d9d8(0x13d)],_0x1efd1c[_0xc3d9d8(0x154)]),_0x1e82a3=await generateApiFile(_0xe74c7c,_0x4aff34,_0x1efd1c[_0xc3d9d8(0x13d)],_0x59d13b,getEnv(),_0x17f65c);_0x564c44['succeed'](_0xc3d9d8(0x15f)+_0xe74c7c[_0xc3d9d8(0x138)]+_0xc3d9d8(0x14b)+_0x1e82a3[_0xc3d9d8(0x15b)]+_0xc3d9d8(0x14c));const _0x17a314=_0x4aff34?_0x4aff34+'-api':_0xc3d9d8(0x14d),_0x370129=_0x4aff34?_0x4aff34+_0xc3d9d8(0x155):_0xc3d9d8(0x13e);return writeCliSideChannelLine(_0xc3d9d8(0x152)+a16_0x2ef8db[_0xc3d9d8(0x148)](_0x17f65c,_0x17a314+_0xc3d9d8(0x13a))),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x2ef8db[_0xc3d9d8(0x148)](_0x17f65c,_0x370129+_0xc3d9d8(0x13a))),{'ok':!![],'data':{'datasetCount':_0xe74c7c[_0xc3d9d8(0x138)],'modelCount':_0x1e82a3[_0xc3d9d8(0x15b)]}};}catch(_0x4a7ea0){_0x564c44['fail'](_0xc3d9d8(0x147)+(_0x4a7ea0 instanceof Error?_0x4a7ea0['message']:String(_0x4a7ea0)));throw _0x4a7ea0;}}};
@@ -1 +1 @@
1
- (function(_0xd3a74f,_0xbe30d8){const _0x42ca0f=a17_0x2254,_0x5dd96d=_0xd3a74f();while(!![]){try{const _0x1a0425=parseInt(_0x42ca0f(0xc5))/0x1+parseInt(_0x42ca0f(0xb9))/0x2+-parseInt(_0x42ca0f(0xc8))/0x3*(parseInt(_0x42ca0f(0xbe))/0x4)+parseInt(_0x42ca0f(0xb7))/0x5+parseInt(_0x42ca0f(0xbb))/0x6*(-parseInt(_0x42ca0f(0xb8))/0x7)+-parseInt(_0x42ca0f(0xbd))/0x8*(-parseInt(_0x42ca0f(0xbf))/0x9)+-parseInt(_0x42ca0f(0xc3))/0xa;if(_0x1a0425===_0xbe30d8)break;else _0x5dd96d['push'](_0x5dd96d['shift']());}catch(_0x2bb803){_0x5dd96d['push'](_0x5dd96d['shift']());}}}(a17_0x4863,0xe682e));import{getMultiAppConfigs}from'../../utils/config.js';function a17_0x2254(_0x32fb33,_0x734441){_0x32fb33=_0x32fb33-0xb7;const _0x48632e=a17_0x4863();let _0x2254c3=_0x48632e[_0x32fb33];return _0x2254c3;}function a17_0x4863(){const _0x3cf451=['2488595jOgQvC','35sNoyWL','2570308XMSYLE','filter','1307364mrnnnQ','selectedAppName','1352YStLoj','444vUtzfi','18108JjirLU','name','App\x20\x22','project','8060210eoFhpi','global','1835755mMqaUV','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','join','30243rjWQch'];a17_0x4863=function(){return _0x3cf451;};return a17_0x4863();}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x545907,_0x41c0b8){const _0x3c6c1a=a17_0x2254;if(_0x41c0b8)return null;const _0x39a062=_0x545907['bool'](_0x3c6c1a(0xc4))?'merged':_0x3c6c1a(0xc2);let _0x1fbf94=getMultiAppConfigs(_0x39a062);if(!_0x1fbf94||_0x1fbf94['length']===0x0)return null;if(_0x545907['selectedAppName']){const _0x5ab0eb=_0x1fbf94[_0x3c6c1a(0xba)](_0x5c2878=>_0x5c2878[_0x3c6c1a(0xc0)]===_0x545907['selectedAppName']);if(_0x5ab0eb['length']===0x0){const _0x52e309=_0x1fbf94['map'](_0x5a3636=>_0x5a3636[_0x3c6c1a(0xc0)])[_0x3c6c1a(0xc7)](',\x20');throw CliErrors['validation'](_0x3c6c1a(0xc1)+_0x545907[_0x3c6c1a(0xbc)]+_0x3c6c1a(0xc6)+_0x52e309);}_0x1fbf94=_0x5ab0eb;}return _0x1fbf94;}
1
+ (function(_0x5230f1,_0x54a689){const _0x543196=a17_0x35c7,_0x971a15=_0x5230f1();while(!![]){try{const _0x41939a=parseInt(_0x543196(0x136))/0x1*(-parseInt(_0x543196(0x13a))/0x2)+-parseInt(_0x543196(0x12b))/0x3*(parseInt(_0x543196(0x12e))/0x4)+parseInt(_0x543196(0x12c))/0x5*(-parseInt(_0x543196(0x139))/0x6)+parseInt(_0x543196(0x12a))/0x7*(parseInt(_0x543196(0x138))/0x8)+-parseInt(_0x543196(0x129))/0x9*(parseInt(_0x543196(0x12d))/0xa)+parseInt(_0x543196(0x127))/0xb+parseInt(_0x543196(0x124))/0xc;if(_0x41939a===_0x54a689)break;else _0x971a15['push'](_0x971a15['shift']());}catch(_0xf5196f){_0x971a15['push'](_0x971a15['shift']());}}}(a17_0x4430,0x3b989));function a17_0x35c7(_0x44dc7b,_0xf7ba96){_0x44dc7b=_0x44dc7b-0x124;const _0x44305c=a17_0x4430();let _0x35c7bc=_0x44305c[_0x44dc7b];return _0x35c7bc;}function a17_0x4430(){const _0x5f152d=['136345rdrvpI','2464060VqSzpV','217484czgEtO','global','selectedAppName','project','App\x20\x22','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','name','join','29045glLBTn','filter','48640bdapDy','72eHokMl','20feSrXr','map','9438108yjCrRl','bool','validation','3066481uSletU','length','9UkDvOi','112caOisd','3iJelRw'];a17_0x4430=function(){return _0x5f152d;};return a17_0x4430();}import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x4d09db,_0x3904a8){const _0x4f9c1d=a17_0x35c7;if(_0x3904a8)return null;const _0x128582=_0x4d09db[_0x4f9c1d(0x125)](_0x4f9c1d(0x12f))?'merged':_0x4f9c1d(0x131);let _0x276738=getMultiAppConfigs(_0x128582);if(!_0x276738||_0x276738['length']===0x0)return null;if(_0x4d09db[_0x4f9c1d(0x130)]){const _0x24ee56=_0x276738[_0x4f9c1d(0x137)](_0x47cac6=>_0x47cac6[_0x4f9c1d(0x134)]===_0x4d09db[_0x4f9c1d(0x130)]);if(_0x24ee56[_0x4f9c1d(0x128)]===0x0){const _0x1004bd=_0x276738[_0x4f9c1d(0x13b)](_0x36c501=>_0x36c501[_0x4f9c1d(0x134)])[_0x4f9c1d(0x135)](',\x20');throw CliErrors[_0x4f9c1d(0x126)](_0x4f9c1d(0x132)+_0x4d09db[_0x4f9c1d(0x130)]+_0x4f9c1d(0x133)+_0x1004bd);}_0x276738=_0x24ee56;}return _0x276738;}
@@ -1 +1 @@
1
- const a18_0x10f1ba=a18_0x2d92;(function(_0x25ba4b,_0x365720){const _0xa5a075=a18_0x2d92,_0x639865=_0x25ba4b();while(!![]){try{const _0x2061e1=-parseInt(_0xa5a075(0x20a))/0x1+parseInt(_0xa5a075(0x1f5))/0x2+-parseInt(_0xa5a075(0x1fd))/0x3*(-parseInt(_0xa5a075(0x206))/0x4)+parseInt(_0xa5a075(0x1f7))/0x5+parseInt(_0xa5a075(0x1f3))/0x6+parseInt(_0xa5a075(0x1f2))/0x7*(-parseInt(_0xa5a075(0x207))/0x8)+-parseInt(_0xa5a075(0x1ed))/0x9;if(_0x2061e1===_0x365720)break;else _0x639865['push'](_0x639865['shift']());}catch(_0xe71496){_0x639865['push'](_0x639865['shift']());}}}(a18_0x17b7,0x2e2bd));import{CliErrors}from'../../errors.js';function a18_0x2d92(_0x365df4,_0x1d9160){_0x365df4=_0x365df4-0x1ec;const _0x17b767=a18_0x17b7();let _0x2d92be=_0x17b767[_0x365df4];return _0x2d92be;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';function a18_0x17b7(){const _0x3bbce5=['trim','validation','App\x20profile\x20name','add','apps','684utsDiz','8mfWWrZ','Use\x20global\x20config\x20scope','string','164566IjgTUE','Updated','\x22\x20(appcode:\x20','220176FxdDWV','Added','global','Usage:\x20','args','1530634ZiEOYQ','1474392kCfenk','\x20app\x20\x22','4292fcJYmm','write','315950UgzpnE','App\x20code','defaultApp','appcode','name','Missing\x20app\x20name.','5013jBKWhu','flagMissing','\x20app\x20add\x20<name>\x20--appcode\x20<code>','str'];a18_0x17b7=function(){return _0x3bbce5;};return a18_0x17b7();}import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x160e07){const _0x47b2bd=a18_0x2d92,_0x4aa73c=_0x160e07[_0x47b2bd(0x1f1)][0x0]?.[_0x47b2bd(0x201)]();if(!_0x4aa73c)throw CliErrors[_0x47b2bd(0x202)](_0x47b2bd(0x1fc),_0x47b2bd(0x1f0)+CLI_BIN_NAME+_0x47b2bd(0x1ff));}async function execute(_0x33b462){const _0x18e7f7=a18_0x2d92,_0xcb8ec8=_0x33b462['args'][0x0]?.[_0x18e7f7(0x201)]();if(!_0xcb8ec8)throw CliErrors[_0x18e7f7(0x202)](_0x18e7f7(0x1fc),_0x18e7f7(0x1f0)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x4c1795=_0x33b462[_0x18e7f7(0x200)](_0x18e7f7(0x1fa));if(!_0x4c1795)throw CliErrors[_0x18e7f7(0x1fe)](_0x18e7f7(0x1fa),_0x18e7f7(0x1f0)+CLI_BIN_NAME+_0x18e7f7(0x1ff));const _0x36a09e={'global':_0x33b462['bool'](_0x18e7f7(0x1ef))},_0x416dbd=readConfig(_0x36a09e);if(!_0x416dbd[_0x18e7f7(0x205)])_0x416dbd[_0x18e7f7(0x205)]={};const _0x23826b={'appcode':_0x4c1795,...collectAppProfileOverrides(_0x116966=>_0x33b462[_0x18e7f7(0x200)](_0x116966))},_0x57eeb5=_0x416dbd[_0x18e7f7(0x205)],_0x11245a=!!_0x57eeb5[_0xcb8ec8];_0x57eeb5[_0xcb8ec8]=_0x23826b;if(!_0x416dbd[_0x18e7f7(0x1f9)])_0x416dbd[_0x18e7f7(0x1f9)]=_0xcb8ec8;writeConfig(_0x416dbd,_0x36a09e);const _0x3ae086=!_0x11245a&&_0x416dbd[_0x18e7f7(0x1f9)]===_0xcb8ec8?'\x20Set\x20as\x20default\x20app.':'',_0xdb1a3=(_0x11245a?_0x18e7f7(0x20b):_0x18e7f7(0x1ee))+_0x18e7f7(0x1f4)+_0xcb8ec8+_0x18e7f7(0x1ec)+_0x4c1795+')'+scopeLabel(_0x36a09e)+'.'+_0x3ae086;return{'ok':!![],'message':_0xdb1a3};}export const appAddDefinition={'service':'app','command':a18_0x10f1ba(0x204),'description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a18_0x10f1ba(0x1f6),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x10f1ba(0x1fb),'description':a18_0x10f1ba(0x203),'required':!![]}],'flags':[{'name':'appcode','type':a18_0x10f1ba(0x209),'description':a18_0x10f1ba(0x1f8),'required':!![]},{'name':a18_0x10f1ba(0x1ef),'type':'boolean','description':a18_0x10f1ba(0x208),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ const a18_0x30cf4f=a18_0x4695;function a18_0x4a4e(){const _0x55f6cb=['Add\x20or\x20update\x20an\x20app\x20in\x20config','write','trim','804912rpVZxY','3vRtkea','Use\x20global\x20config\x20scope','\x20app\x20add\x20<name>\x20--appcode\x20<code>','Usage:\x20','defaultApp','bool','213646PavWUY','5522121JaOqjA','global','Missing\x20app\x20name.','\x20Set\x20as\x20default\x20app.','appcode','str','flagMissing','boolean','name','\x20app\x20\x22','2585048zFgvTK','387790GAFdoa','4hMlDpi','string','959693WmIUpA','apps','\x22\x20(appcode:\x20','App\x20profile\x20name','validation','387522LpZnaA','args'];a18_0x4a4e=function(){return _0x55f6cb;};return a18_0x4a4e();}(function(_0x3d7f4c,_0x4b02e3){const _0x248b99=a18_0x4695,_0x2a8a47=_0x3d7f4c();while(!![]){try{const _0x311185=-parseInt(_0x248b99(0xb4))/0x1*(-parseInt(_0x248b99(0xba))/0x2)+parseInt(_0x248b99(0xae))/0x3*(parseInt(_0x248b99(0xa7))/0x4)+parseInt(_0x248b99(0xa6))/0x5+-parseInt(_0x248b99(0xb3))/0x6+parseInt(_0x248b99(0xa9))/0x7+parseInt(_0x248b99(0xa5))/0x8+-parseInt(_0x248b99(0xbb))/0x9;if(_0x311185===_0x4b02e3)break;else _0x2a8a47['push'](_0x2a8a47['shift']());}catch(_0x1d7dfa){_0x2a8a47['push'](_0x2a8a47['shift']());}}}(a18_0x4a4e,0x3a85e));function a18_0x4695(_0x14ea59,_0x521061){_0x14ea59=_0x14ea59-0xa1;const _0x4a4e79=a18_0x4a4e();let _0x46957a=_0x4a4e79[_0x14ea59];return _0x46957a;}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(_0x12d926){const _0x1a2873=a18_0x4695,_0xceb75c=_0x12d926['args'][0x0]?.[_0x1a2873(0xb2)]();if(!_0xceb75c)throw CliErrors[_0x1a2873(0xad)](_0x1a2873(0xbd),_0x1a2873(0xb7)+CLI_BIN_NAME+_0x1a2873(0xb6));}async function execute(_0x37a3c1){const _0x1d8226=a18_0x4695,_0x3966cf=_0x37a3c1[_0x1d8226(0xaf)][0x0]?.['trim']();if(!_0x3966cf)throw CliErrors[_0x1d8226(0xad)](_0x1d8226(0xbd),_0x1d8226(0xb7)+CLI_BIN_NAME+_0x1d8226(0xb6));const _0x26098e=_0x37a3c1[_0x1d8226(0xc0)](_0x1d8226(0xbf));if(!_0x26098e)throw CliErrors[_0x1d8226(0xa1)](_0x1d8226(0xbf),_0x1d8226(0xb7)+CLI_BIN_NAME+_0x1d8226(0xb6));const _0xaf0716={'global':_0x37a3c1[_0x1d8226(0xb9)]('global')},_0x5e75a6=readConfig(_0xaf0716);if(!_0x5e75a6[_0x1d8226(0xaa)])_0x5e75a6[_0x1d8226(0xaa)]={};const _0x2cfd28={'appcode':_0x26098e,...collectAppProfileOverrides(_0x1fef19=>_0x37a3c1['str'](_0x1fef19))},_0x4d6de9=_0x5e75a6['apps'],_0x30a5bb=!!_0x4d6de9[_0x3966cf];_0x4d6de9[_0x3966cf]=_0x2cfd28;if(!_0x5e75a6[_0x1d8226(0xb8)])_0x5e75a6['defaultApp']=_0x3966cf;writeConfig(_0x5e75a6,_0xaf0716);const _0x880952=!_0x30a5bb&&_0x5e75a6['defaultApp']===_0x3966cf?_0x1d8226(0xbe):'',_0x3196ad=(_0x30a5bb?'Updated':'Added')+_0x1d8226(0xa4)+_0x3966cf+_0x1d8226(0xab)+_0x26098e+')'+scopeLabel(_0xaf0716)+'.'+_0x880952;return{'ok':!![],'message':_0x3196ad};}export const appAddDefinition={'service':'app','command':'add','description':a18_0x30cf4f(0xb0),'risk':a18_0x30cf4f(0xb1),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x30cf4f(0xa3),'description':a18_0x30cf4f(0xac),'required':!![]}],'flags':[{'name':a18_0x30cf4f(0xbf),'type':a18_0x30cf4f(0xa8),'description':'App\x20code','required':!![]},{'name':a18_0x30cf4f(0xbc),'type':a18_0x30cf4f(0xa2),'description':a18_0x30cf4f(0xb5),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
@@ -1 +1 @@
1
- const a19_0x311308=a19_0x93d1;(function(_0x54c636,_0x22de33){const _0x404118=a19_0x93d1,_0x249eb7=_0x54c636();while(!![]){try{const _0x13bcd5=parseInt(_0x404118(0xb5))/0x1+parseInt(_0x404118(0xaf))/0x2+parseInt(_0x404118(0xab))/0x3*(parseInt(_0x404118(0xb6))/0x4)+-parseInt(_0x404118(0xb3))/0x5+-parseInt(_0x404118(0xb1))/0x6*(-parseInt(_0x404118(0xa7))/0x7)+-parseInt(_0x404118(0xb4))/0x8+-parseInt(_0x404118(0xa9))/0x9;if(_0x13bcd5===_0x22de33)break;else _0x249eb7['push'](_0x249eb7['shift']());}catch(_0x221b29){_0x249eb7['push'](_0x249eb7['shift']());}}}(a19_0x31ec,0x7843c));import{listRemoteApps}from'../../core/api-client.js';function a19_0x93d1(_0x1259d0,_0x48ba3b){_0x1259d0=_0x1259d0-0xa7;const _0x31ec7b=a19_0x31ec();let _0x93d106=_0x31ec7b[_0x1259d0];return _0x93d106;}function a19_0x31ec(){const _0x580579=['List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','1831595hjIXUz','6126248welEjO','543436gLSIFX','4ezuCFH','remote','app','7ZkLlwv','appDesc','794268QvErRJ','platform','1710417AHgzFP','appCode','appName','../../core/api-client.js','29304WZCQnF','cookie','3508374lzetna'];a19_0x31ec=function(){return _0x580579;};return a19_0x31ec();}async function execute(_0x36c6d5){const _0x5c5bc3=a19_0x93d1,{setActiveCookie:_0x368bc2}=await import(_0x5c5bc3(0xae));_0x368bc2(_0x36c6d5[_0x5c5bc3(0xb0)]);const _0xc74d6f=await listRemoteApps();return{'ok':!![],'data':{'items':_0xc74d6f['map'](_0x35b0e5=>({..._0x35b0e5['id']!=null?{'id':_0x35b0e5['id']}:{},'appCode':_0x35b0e5[_0x5c5bc3(0xac)],'appName':_0x35b0e5[_0x5c5bc3(0xad)],..._0x35b0e5[_0x5c5bc3(0xa8)]!=null?{'appDesc':_0x35b0e5[_0x5c5bc3(0xa8)]}:{}})),'meta':{'source':_0x5c5bc3(0xaa)}}};}export const appRemoteDefinition={'service':a19_0x311308(0xb8),'command':a19_0x311308(0xb7),'description':a19_0x311308(0xb2),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'flags':[],'execute':execute};
1
+ const a19_0x35f9ea=a19_0xa0f9;function a19_0x2062(){const _0x50592f=['List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','map','3244120WldkCT','app','5607732eVAVwX','platform','72053JMqAxz','26NPMmVO','1460oECImH','appDesc','8863200aoUkZI','appCode','../../core/api-client.js','2575293dpSvRg','7745tTHojZ','156945QhOnec'];a19_0x2062=function(){return _0x50592f;};return a19_0x2062();}(function(_0x17547f,_0x46af2b){const _0x14888b=a19_0xa0f9,_0x195cfd=_0x17547f();while(!![]){try{const _0x4bc671=-parseInt(_0x14888b(0x1f8))/0x1+parseInt(_0x14888b(0x1f9))/0x2*(-parseInt(_0x14888b(0x1f1))/0x3)+parseInt(_0x14888b(0x1fa))/0x4*(-parseInt(_0x14888b(0x1f0))/0x5)+parseInt(_0x14888b(0x1f6))/0x6+parseInt(_0x14888b(0x1ef))/0x7+-parseInt(_0x14888b(0x1f4))/0x8+parseInt(_0x14888b(0x1fc))/0x9;if(_0x4bc671===_0x46af2b)break;else _0x195cfd['push'](_0x195cfd['shift']());}catch(_0x47f286){_0x195cfd['push'](_0x195cfd['shift']());}}}(a19_0x2062,0x89c31));function a19_0xa0f9(_0x4e880d,_0x1bc224){_0x4e880d=_0x4e880d-0x1ee;const _0x20621b=a19_0x2062();let _0xa0f9e7=_0x20621b[_0x4e880d];return _0xa0f9e7;}import{listRemoteApps}from'../../core/api-client.js';async function execute(_0x24c308){const _0x2c593b=a19_0xa0f9,{setActiveCookie:_0xcd7ee8}=await import(_0x2c593b(0x1ee));_0xcd7ee8(_0x24c308['cookie']);const _0x395c9c=await listRemoteApps();return{'ok':!![],'data':{'items':_0x395c9c[_0x2c593b(0x1f3)](_0x467a9b=>({..._0x467a9b['id']!=null?{'id':_0x467a9b['id']}:{},'appCode':_0x467a9b[_0x2c593b(0x1fd)],'appName':_0x467a9b['appName'],..._0x467a9b[_0x2c593b(0x1fb)]!=null?{'appDesc':_0x467a9b[_0x2c593b(0x1fb)]}:{}})),'meta':{'source':_0x2c593b(0x1f7)}}};}export const appRemoteDefinition={'service':a19_0x35f9ea(0x1f5),'command':'remote','description':a19_0x35f9ea(0x1f2),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'flags':[],'execute':execute};