@lovrabet/rabetbase-cli 2.1.7-beta.3 → 2.1.7-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- const a0_0x4e8c4f=a0_0xced6;function a0_0xced6(_0x5e5297,_0x5d8cde){_0x5e5297=_0x5e5297-0x1d0;const _0x502309=a0_0x5023();let _0xced69d=_0x502309[_0x5e5297];return _0xced69d;}(function(_0x201e35,_0x2f5de5){const _0x1de8dc=a0_0xced6,_0x15c197=_0x201e35();while(!![]){try{const _0x336f86=parseInt(_0x1de8dc(0x1e8))/0x1*(parseInt(_0x1de8dc(0x1d4))/0x2)+-parseInt(_0x1de8dc(0x1de))/0x3*(-parseInt(_0x1de8dc(0x1e1))/0x4)+parseInt(_0x1de8dc(0x1e4))/0x5+parseInt(_0x1de8dc(0x1dc))/0x6+parseInt(_0x1de8dc(0x1e6))/0x7+-parseInt(_0x1de8dc(0x1ef))/0x8*(parseInt(_0x1de8dc(0x1ea))/0x9)+-parseInt(_0x1de8dc(0x1ec))/0xa*(parseInt(_0x1de8dc(0x1d6))/0xb);if(_0x336f86===_0x2f5de5)break;else _0x15c197['push'](_0x15c197['shift']());}catch(_0x35b6eb){_0x15c197['push'](_0x15c197['shift']());}}}(a0_0x5023,0x6e7fa));import{mkdirSync,writeFileSync}from'node:fs';function a0_0x5023(){const _0x32474c=['✗\x20Failed:\x20','message','name','Fetch\x20doc\x20(','14434VHXqao','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','11eFWPUZ','push','datasetCode','✓\x20Generated:\x20','Invalid\x20response\x20format\x20(','生成文档失败:\x20','1642356FdArUS','api-doc','19860NEhuyb','.md\x20(',']\x20Generating:\x20','80EaLMJO','error','Waiting\x203\x20seconds...\x0a','1335850crLrDd','log','2978724xDfPof','.md\x20-\x20','121bBgPpI','length','27LIRQOa','生成文档成功:\x20','11195740KrJoHG','./docs','POST','1066424MfdYnx','join'];a0_0x5023=function(){return _0x32474c;};return a0_0x5023();}import a0_0x2c6a45 from'node:path';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x40cb99){const _0x56e4c2=a0_0xced6,{appCode:_0x4b9c8d,cookie:_0x1ae929,datasetCode:_0x105833,datasetId:_0x2ce113,extraParams:_0xe5220c}=_0x40cb99,_0x221d5a=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x3e0af6=await platformFetch(_0x221d5a,{'method':_0x56e4c2(0x1ee),'body':{'appCode':_0x4b9c8d,'datasetCode':_0x105833,'datasetId':_0x2ce113,..._0xe5220c||{}},'cookie':_0x1ae929,'label':_0x56e4c2(0x1d3)+_0x105833+')'});if(!_0x3e0af6||typeof _0x3e0af6['markdown']!=='string')throw new Error(_0x56e4c2(0x1da)+_0x105833+'):\x20missing\x20data.markdown\x20field');return _0x3e0af6['markdown'];}function delay(_0x91b1){return new Promise(_0x331498=>setTimeout(_0x331498,_0x91b1));}export async function generateDatasetDocs(_0x1687bf,_0x1f8704,_0x1ba260,_0x30fb2a=a0_0x4e8c4f(0x1ed),_0x29f075,_0x126fd6){const _0xe03d50=a0_0x4e8c4f;mkdirSync(_0x30fb2a,{'recursive':!![]});const _0x21da40=[],_0x2a9e27=_0x1687bf[_0xe03d50(0x1e9)];console[_0xe03d50(0x1e5)]('\x0a'+_0x2a9e27+_0xe03d50(0x1d5));for(let _0x22a9a9=0x0;_0x22a9a9<_0x1687bf[_0xe03d50(0x1e9)];_0x22a9a9++){const _0x360860=_0x1687bf[_0x22a9a9],_0x1397c2=_0x22a9a9+0x1,_0x1e226b=_0x360860['tableName'];try{console[_0xe03d50(0x1e5)]('['+_0x1397c2+'/'+_0x2a9e27+_0xe03d50(0x1e0)+_0x1e226b+_0xe03d50(0x1df)+_0x360860[_0xe03d50(0x1d2)]+')');if(_0x29f075)_0x29f075(_0x1397c2,_0x2a9e27,_0x1e226b);const _0x40f5a8=await fetchDatasetDoc({'appCode':_0x1f8704,'cookie':_0x1ba260,'datasetCode':_0x360860['datasetCode'],'datasetId':_0x360860['id'],'enableAI':![],'extraParams':_0x126fd6}),_0x444fde=a0_0x2c6a45[_0xe03d50(0x1f0)](_0x30fb2a,_0x1e226b+'.md');writeFileSync(_0x444fde,_0x40f5a8,{'encoding':'utf8'}),console[_0xe03d50(0x1e5)](_0xe03d50(0x1d9)+_0x1e226b+'.md'),logger['success'](_0xe03d50(0x1dd),_0xe03d50(0x1eb)+_0x1e226b,undefined,{'datasetCode':_0x360860[_0xe03d50(0x1d8)],'datasetName':_0x360860[_0xe03d50(0x1d2)],'filePath':_0x444fde,'progress':_0x1397c2+'/'+_0x2a9e27}),_0x21da40[_0xe03d50(0x1d7)]({'datasetCode':_0x360860[_0xe03d50(0x1d8)],'datasetName':_0x360860[_0xe03d50(0x1d2)],'filePath':_0x444fde,'success':!![]});if(_0x1397c2<_0x2a9e27)await delay(0x1388);}catch(_0x17a8b4){const _0x212b1f=_0x17a8b4 instanceof Error?_0x17a8b4[_0xe03d50(0x1d1)]:String(_0x17a8b4);console[_0xe03d50(0x1e5)](_0xe03d50(0x1d0)+_0x1e226b+_0xe03d50(0x1e7)+_0x212b1f),logger[_0xe03d50(0x1e2)](_0xe03d50(0x1dd),_0xe03d50(0x1db)+_0x360860[_0xe03d50(0x1d8)],{'datasetCode':_0x360860[_0xe03d50(0x1d8)],'datasetName':_0x360860[_0xe03d50(0x1d2)],'error':_0x212b1f,'progress':_0x1397c2+'/'+_0x2a9e27}),_0x21da40[_0xe03d50(0x1d7)]({'datasetCode':_0x360860[_0xe03d50(0x1d8)],'datasetName':_0x360860[_0xe03d50(0x1d2)],'filePath':'','success':![],'error':_0x212b1f}),_0x1397c2<_0x2a9e27&&(console[_0xe03d50(0x1e5)](_0xe03d50(0x1e3)),await delay(0xbb8));}}return _0x21da40;}
1
+ const a0_0x137ec7=a0_0x3996;(function(_0x344167,_0x32afe9){const _0x1113a7=a0_0x3996,_0x5af700=_0x344167();while(!![]){try{const _0x15fb0a=-parseInt(_0x1113a7(0x140))/0x1*(-parseInt(_0x1113a7(0x125))/0x2)+-parseInt(_0x1113a7(0x12f))/0x3*(-parseInt(_0x1113a7(0x13e))/0x4)+parseInt(_0x1113a7(0x13b))/0x5*(-parseInt(_0x1113a7(0x129))/0x6)+parseInt(_0x1113a7(0x134))/0x7+parseInt(_0x1113a7(0x13d))/0x8+-parseInt(_0x1113a7(0x136))/0x9*(-parseInt(_0x1113a7(0x135))/0xa)+-parseInt(_0x1113a7(0x143))/0xb;if(_0x15fb0a===_0x32afe9)break;else _0x5af700['push'](_0x5af700['shift']());}catch(_0x1951ee){_0x5af700['push'](_0x5af700['shift']());}}}(a0_0x2498,0x88037));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x5671c7 from'node:path';function a0_0x2498(){const _0x5ad80f=['4EuIgwJ','markdown','5273HNLYEm','):\x20missing\x20data.markdown\x20field','生成文档成功:\x20','6869137cDIUIi','tableName','success','./docs','146VuqwBa','name','error','utf8','594KKNnUd','api-doc','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','Fetch\x20doc\x20(','join','✗\x20Failed:\x20','1682202lXzShC','Invalid\x20response\x20format\x20(','log','length','✓\x20Generated:\x20','4109350xhAQtg','790gxubrN','68067XgVaiM','.md\x20-\x20','.md','push','string','53765wxvPWO','datasetCode','927480spaObk'];a0_0x2498=function(){return _0x5ad80f;};return a0_0x2498();}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x2c3a9a){const _0x5d1161=a0_0x3996,{appCode:_0x1e8755,cookie:_0x3f547a,datasetCode:_0x30b278,datasetId:_0x5c9ada,extraParams:_0x588931}=_0x2c3a9a,_0x4dc7da=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x215d93=await platformFetch(_0x4dc7da,{'method':'POST','body':{'appCode':_0x1e8755,'datasetCode':_0x30b278,'datasetId':_0x5c9ada,..._0x588931||{}},'cookie':_0x3f547a,'label':_0x5d1161(0x12c)+_0x30b278+')'});if(!_0x215d93||typeof _0x215d93['markdown']!==_0x5d1161(0x13a))throw new Error(_0x5d1161(0x130)+_0x30b278+_0x5d1161(0x141));return _0x215d93[_0x5d1161(0x13f)];}function a0_0x3996(_0x1cc37b,_0x4b8cd7){_0x1cc37b=_0x1cc37b-0x122;const _0x2498d6=a0_0x2498();let _0x399662=_0x2498d6[_0x1cc37b];return _0x399662;}function delay(_0x5045bc){return new Promise(_0xed8552=>setTimeout(_0xed8552,_0x5045bc));}export async function generateDatasetDocs(_0x43eae2,_0x3007c3,_0x3537f2,_0x463c31=a0_0x137ec7(0x124),_0x51c305,_0x3e994c){const _0xf5f4a4=a0_0x137ec7;mkdirSync(_0x463c31,{'recursive':!![]});const _0x162fd4=[],_0x2f0e95=_0x43eae2[_0xf5f4a4(0x132)];console[_0xf5f4a4(0x131)]('\x0a'+_0x2f0e95+_0xf5f4a4(0x12b));for(let _0x568d82=0x0;_0x568d82<_0x43eae2[_0xf5f4a4(0x132)];_0x568d82++){const _0x1a0f49=_0x43eae2[_0x568d82],_0x1056c0=_0x568d82+0x1,_0x77e3a7=_0x1a0f49[_0xf5f4a4(0x122)];try{console['log']('['+_0x1056c0+'/'+_0x2f0e95+']\x20Generating:\x20'+_0x77e3a7+'.md\x20('+_0x1a0f49[_0xf5f4a4(0x126)]+')');if(_0x51c305)_0x51c305(_0x1056c0,_0x2f0e95,_0x77e3a7);const _0x28b3f5=await fetchDatasetDoc({'appCode':_0x3007c3,'cookie':_0x3537f2,'datasetCode':_0x1a0f49['datasetCode'],'datasetId':_0x1a0f49['id'],'enableAI':![],'extraParams':_0x3e994c}),_0x431057=a0_0x5671c7[_0xf5f4a4(0x12d)](_0x463c31,_0x77e3a7+_0xf5f4a4(0x138));writeFileSync(_0x431057,_0x28b3f5,{'encoding':_0xf5f4a4(0x128)}),console[_0xf5f4a4(0x131)](_0xf5f4a4(0x133)+_0x77e3a7+_0xf5f4a4(0x138)),logger[_0xf5f4a4(0x123)](_0xf5f4a4(0x12a),_0xf5f4a4(0x142)+_0x77e3a7,undefined,{'datasetCode':_0x1a0f49[_0xf5f4a4(0x13c)],'datasetName':_0x1a0f49[_0xf5f4a4(0x126)],'filePath':_0x431057,'progress':_0x1056c0+'/'+_0x2f0e95}),_0x162fd4[_0xf5f4a4(0x139)]({'datasetCode':_0x1a0f49[_0xf5f4a4(0x13c)],'datasetName':_0x1a0f49[_0xf5f4a4(0x126)],'filePath':_0x431057,'success':!![]});if(_0x1056c0<_0x2f0e95)await delay(0x1388);}catch(_0x3792ed){const _0x3cd75e=_0x3792ed instanceof Error?_0x3792ed['message']:String(_0x3792ed);console[_0xf5f4a4(0x131)](_0xf5f4a4(0x12e)+_0x77e3a7+_0xf5f4a4(0x137)+_0x3cd75e),logger[_0xf5f4a4(0x127)]('api-doc','生成文档失败:\x20'+_0x1a0f49['datasetCode'],{'datasetCode':_0x1a0f49['datasetCode'],'datasetName':_0x1a0f49[_0xf5f4a4(0x126)],'error':_0x3cd75e,'progress':_0x1056c0+'/'+_0x2f0e95}),_0x162fd4[_0xf5f4a4(0x139)]({'datasetCode':_0x1a0f49['datasetCode'],'datasetName':_0x1a0f49[_0xf5f4a4(0x126)],'filePath':'','success':![],'error':_0x3cd75e}),_0x1056c0<_0x2f0e95&&(console[_0xf5f4a4(0x131)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x162fd4;}
@@ -1 +1 @@
1
- function a1_0x27ab(){const _0x2c384c=['2817081qOpSTi','&otype=array','configArray','info','map','48985872zIOlcK','fetch-model-list','6025416DzJHWK','2959954sPDMeU','trim','5HiEreE','name','Fetch\x20datasets','1497558kGJcgx','6755560GvpuhR','4742956ShxFZO'];a1_0x27ab=function(){return _0x2c384c;};return a1_0x27ab();}(function(_0x18e839,_0xcfc5bf){const _0x1233c9=a1_0x4bcc,_0x2dab2a=_0x18e839();while(!![]){try{const _0x502b5a=parseInt(_0x1233c9(0x1f8))/0x1+parseInt(_0x1233c9(0x1f3))/0x2+parseInt(_0x1233c9(0x1fb))/0x3+parseInt(_0x1233c9(0x1fa))/0x4+parseInt(_0x1233c9(0x1f5))/0x5*(parseInt(_0x1233c9(0x1f2))/0x6)+parseInt(_0x1233c9(0x1f9))/0x7+-parseInt(_0x1233c9(0x200))/0x8;if(_0x502b5a===_0xcfc5bf)break;else _0x2dab2a['push'](_0x2dab2a['shift']());}catch(_0xf74298){_0x2dab2a['push'](_0x2dab2a['shift']());}}}(a1_0x27ab,0xe789f));import{getApiDomain}from'../constant/domain.js';function a1_0x4bcc(_0x1fc8c1,_0x56dde0){_0x1fc8c1=_0x1fc8c1-0x1f1;const _0x27ab3b=a1_0x27ab();let _0x4bccf5=_0x27ab3b[_0x1fc8c1];return _0x4bccf5;}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x2bb96e){const _0x3c254b=a1_0x4bcc;return _0x2bb96e['replace'](/[\r\n]+/g,'\x20')[_0x3c254b(0x1f4)]();}function cleanDatasetName(_0x2c5037){const _0x115560=a1_0x4bcc;if(!_0x2c5037[_0x115560(0x1f6)])return _0x2c5037;return{..._0x2c5037,'name':cleanNewlines(_0x2c5037[_0x115560(0x1f6)])};}export async function fetchModelList(_0x31afbb,_0x28f305){const _0x12995e=a1_0x4bcc,_0x4af13e=getEnv(),_0x28d566=getApiDomain()+'/api/node-toolbox/dataset/model-list?appcode='+_0x31afbb+_0x12995e(0x1fc);logger[_0x12995e(0x1fe)](_0x12995e(0x1f1),'正在从服务器拉取模型列表...\x20(环境:\x20'+_0x4af13e+')',{'apiUrl':_0x28d566});const _0x314252=await platformFetch(_0x28d566,{'cookie':_0x28f305,'label':_0x12995e(0x1f7)}),_0x3a66d9=(_0x314252[_0x12995e(0x1fd)]??[])[_0x12995e(0x1ff)](cleanDatasetName);return{'configArray':_0x3a66d9,'count':_0x3a66d9['length']};}
1
+ (function(_0x2f8e08,_0x1e7356){const _0x1af70d=a1_0x3539,_0x5182c3=_0x2f8e08();while(!![]){try{const _0xf8a1c5=-parseInt(_0x1af70d(0xed))/0x1*(parseInt(_0x1af70d(0xe9))/0x2)+parseInt(_0x1af70d(0xe2))/0x3*(-parseInt(_0x1af70d(0xe3))/0x4)+-parseInt(_0x1af70d(0xe4))/0x5+parseInt(_0x1af70d(0xea))/0x6*(parseInt(_0x1af70d(0xe7))/0x7)+parseInt(_0x1af70d(0xe8))/0x8*(-parseInt(_0x1af70d(0xe0))/0x9)+parseInt(_0x1af70d(0xdf))/0xa+parseInt(_0x1af70d(0xe6))/0xb*(parseInt(_0x1af70d(0xeb))/0xc);if(_0xf8a1c5===_0x1e7356)break;else _0x5182c3['push'](_0x5182c3['shift']());}catch(_0x15d417){_0x5182c3['push'](_0x5182c3['shift']());}}}(a1_0x271c,0xace33));import{getApiDomain}from'../constant/domain.js';function a1_0x271c(){const _0x33cdab=['name','66GxzNOp','3351992yoOVpw','296mnJRml','4RESoaR','12TWgevr','4278588XAwPDT','info','360814MYFTVQ','正在从服务器拉取模型列表...\x20(环境:\x20','9242260jVXhCq','307071mLaEup','&otype=array','27lwAdDO','282156xXHChf','3471015gJWbxs'];a1_0x271c=function(){return _0x33cdab;};return a1_0x271c();}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function a1_0x3539(_0x331b6d,_0x46a26f){_0x331b6d=_0x331b6d-0xdf;const _0x271ceb=a1_0x271c();let _0x3539bf=_0x271ceb[_0x331b6d];return _0x3539bf;}function cleanNewlines(_0x177c62){return _0x177c62['replace'](/[\r\n]+/g,'\x20')['trim']();}function cleanDatasetName(_0x54eee7){const _0xa5a9a4=a1_0x3539;if(!_0x54eee7[_0xa5a9a4(0xe5)])return _0x54eee7;return{..._0x54eee7,'name':cleanNewlines(_0x54eee7[_0xa5a9a4(0xe5)])};}export async function fetchModelList(_0xdab3d8,_0x7c6c42){const _0x1fdf67=a1_0x3539,_0x2ea356=getEnv(),_0x3f78ee=getApiDomain()+'/api/node-toolbox/dataset/model-list?appcode='+_0xdab3d8+_0x1fdf67(0xe1);logger[_0x1fdf67(0xec)]('fetch-model-list',_0x1fdf67(0xee)+_0x2ea356+')',{'apiUrl':_0x3f78ee});const _0x2950b3=await platformFetch(_0x3f78ee,{'cookie':_0x7c6c42,'label':'Fetch\x20datasets'}),_0x3a7f7c=(_0x2950b3['configArray']??[])['map'](cleanDatasetName);return{'configArray':_0x3a7f7c,'count':_0x3a7f7c['length']};}
@@ -1 +1 @@
1
- (function(_0x1083d3,_0x9c3cc3){const _0x388507=a2_0x2e72,_0x27e36f=_0x1083d3();while(!![]){try{const _0x517eaa=parseInt(_0x388507(0x12a))/0x1+-parseInt(_0x388507(0x142))/0x2+-parseInt(_0x388507(0x138))/0x3*(parseInt(_0x388507(0x128))/0x4)+-parseInt(_0x388507(0x11f))/0x5+parseInt(_0x388507(0x130))/0x6*(-parseInt(_0x388507(0x126))/0x7)+-parseInt(_0x388507(0x122))/0x8+parseInt(_0x388507(0x13e))/0x9;if(_0x517eaa===_0x9c3cc3)break;else _0x27e36f['push'](_0x27e36f['shift']());}catch(_0x3e0f42){_0x27e36f['push'](_0x27e36f['shift']());}}}(a2_0x8608,0xc982a));import a2_0x1c5f52 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x7509ed from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';function a2_0x2e72(_0x48a327,_0x38a834){_0x48a327=_0x48a327-0x11d;const _0x8608b0=a2_0x8608();let _0x2e722a=_0x8608b0[_0x48a327];return _0x2e722a;}import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';function a2_0x8608(){const _0x8632cd=['\x20config\x20set\x20app\x20<value>`','utf8','alias','-api','{\x20apiConfigName:\x20\x22','49655763cObAVi','client','success','join','2057186YaWTfQ','api','toUpperCase','-client','5633390crtcwO','length','\x22\x20}','7331272aehCRy','name','tableName','format','21TfqatA','api.ts.tpl','4IzOuMW','test','493368WIOdzv','Please\x20configure\x20app\x20code\x20first\x20via\x20`','key','CONFIG_NAMES.DEFAULT','replaceApiContent','dirname','1222026ikUVpL','typescript','API\x20文件生成成功!','replace','push',',\x20env:\x20\x22','init-api','client.ts.tpl','4507788iqEiUQ'];a2_0x8608=function(){return _0x8632cd;};return a2_0x8608();}import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x3a29e,_0x21768d,_0x2733cc,_0x2e935c,_0x5ab3a4,_0x1b6202,_0x52b85c){const _0x452dfc=a2_0x2e72;if(!_0x2733cc)throw new Error(_0x452dfc(0x12b)+CLI_BIN_NAME+_0x452dfc(0x139));const _0x5d4ea7=_0x2e935c&&!_0x52b85c,_0x23bcc1=_0x52b85c||_0x2733cc,_0x55d155=_0x5d4ea7?_0x452dfc(0x12d):'\x22'+_0x23bcc1+'\x22',_0x2ce772=!isProduction(_0x5ab3a4);let _0x5e5ca6;if(_0x5d4ea7)_0x2ce772?_0x5e5ca6='{\x20apiConfigName:\x20'+_0x55d155+_0x452dfc(0x135)+_0x5ab3a4+_0x452dfc(0x121):_0x5e5ca6='';else{const _0x5cd5d8=_0x2ce772?_0x452dfc(0x135)+_0x5ab3a4+'\x22':'';_0x5e5ca6=_0x452dfc(0x13d)+_0x23bcc1+'\x22'+_0x5cd5d8+'\x20}';}const _0x4282aa=_0x21768d?_0x21768d+_0x452dfc(0x13c):_0x452dfc(0x143),_0x27b2bd=_0x21768d?_0x21768d+_0x452dfc(0x11e):_0x452dfc(0x13f),_0xe89e9=_0x21768d&&!/^app-[a-f0-9]+$/i[_0x452dfc(0x129)](_0x21768d)?_0x21768d[_0x452dfc(0x133)](/-/g,'_')[_0x452dfc(0x11d)]():'LOVRABET',_0x26a5e3=[];_0x3a29e['forEach'](_0x21f715=>{const _0x158f5a=_0x452dfc;_0x26a5e3[_0x158f5a(0x134)]({'datasetCode':_0x21f715['datasetCode'],'tableName':_0x21f715[_0x158f5a(0x124)],'name':_0x21f715[_0x158f5a(0x123)]||'','alias':_0x21f715[_0x158f5a(0x13b)]||_0x21f715[_0x158f5a(0x12c)]});});const _0x2e9a4e=fileURLToPath(import.meta.url),_0x3717e4=a2_0x7509ed['resolve'](a2_0x7509ed[_0x452dfc(0x12f)](_0x2e9a4e),'../..'),_0x3fb7a7=a2_0x7509ed[_0x452dfc(0x141)](_0x3717e4,'templates/generate-api'),_0x5d36b1=a2_0x7509ed[_0x452dfc(0x141)](_0x3fb7a7,_0x452dfc(0x127)),_0x24275c=a2_0x7509ed[_0x452dfc(0x141)](_0x3fb7a7,_0x452dfc(0x137)),_0xf68b5f=_0x1b6202;mkdirSync(_0xf68b5f,{'recursive':!![]});const _0xdc1efe=_0x26a5e3[0x0]?.[_0x452dfc(0x13b)],_0x7f736=readFileSync(_0x5d36b1,_0x452dfc(0x13a)),_0xc0318e=TemplateReplacer['replaceApiContent'](_0x7f736,_0x2733cc,_0x26a5e3,_0xdc1efe,_0x4282aa,_0x55d155,undefined,_0xe89e9),_0x2ca90c=await a2_0x1c5f52[_0x452dfc(0x125)](_0xc0318e,{'parser':_0x452dfc(0x131)}),_0x48bc5d=a2_0x7509ed[_0x452dfc(0x141)](_0xf68b5f,_0x4282aa+'.ts');writeFileSync(_0x48bc5d,_0x2ca90c,{'encoding':_0x452dfc(0x13a)});const _0x4920b2=readFileSync(_0x24275c,'utf8'),_0x4f785f=TemplateReplacer[_0x452dfc(0x12e)](_0x4920b2,_0x2733cc,_0x26a5e3,_0xdc1efe,_0x4282aa,_0x55d155,_0x5e5ca6,_0xe89e9),_0x51d1b4=await a2_0x1c5f52['format'](_0x4f785f,{'parser':_0x452dfc(0x131)}),_0x3c0a10=a2_0x7509ed['join'](_0xf68b5f,_0x27b2bd+'.ts');writeFileSync(_0x3c0a10,_0x51d1b4,{'encoding':_0x452dfc(0x13a)});const _0x2ef58c=_0x26a5e3[_0x452dfc(0x120)];return logger[_0x452dfc(0x140)](_0x452dfc(0x136),_0x452dfc(0x132),undefined,{'apiFile':_0x48bc5d,'clientFile':_0x3c0a10,'modelCount':_0x2ef58c,'configName':_0x55d155}),{'modelCount':_0x2ef58c,'apiFilePath':_0x48bc5d,'clientFilePath':_0x3c0a10,'configName':_0x55d155};}
1
+ (function(_0x3cb0e6,_0x7cc754){const _0x5a7117=a2_0x2f6e,_0x140f19=_0x3cb0e6();while(!![]){try{const _0x3ceabf=-parseInt(_0x5a7117(0x90))/0x1*(parseInt(_0x5a7117(0x8f))/0x2)+parseInt(_0x5a7117(0x8c))/0x3*(parseInt(_0x5a7117(0x74))/0x4)+parseInt(_0x5a7117(0x96))/0x5+-parseInt(_0x5a7117(0x81))/0x6*(-parseInt(_0x5a7117(0x80))/0x7)+-parseInt(_0x5a7117(0x85))/0x8+parseInt(_0x5a7117(0x84))/0x9+parseInt(_0x5a7117(0x86))/0xa;if(_0x3ceabf===_0x7cc754)break;else _0x140f19['push'](_0x140f19['shift']());}catch(_0x3b629b){_0x140f19['push'](_0x140f19['shift']());}}}(a2_0x2a29,0xde24c));import a2_0x35d94c from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';function a2_0x2a29(){const _0x3cc4bb=[',\x20env:\x20\x22','replace','{\x20apiConfigName:\x20\x22','API\x20文件生成成功!','.ts','\x20config\x20set\x20app\x20<value>`','-api','templates/generate-api','623hcSDCV','33834EljlYu','utf8','datasetCode','4098609FKqsFT','13240664ShSyNz','1989620tGAbZn','success','length','replaceApiContent','\x22\x20}','CONFIG_NAMES.DEFAULT','32979azJFNH','key','client','12134GarGBZ','95AgAfgh','api','join','toUpperCase','init-api','test','3439700oSalzB','472NPzPEc','resolve','typescript','tableName'];a2_0x2a29=function(){return _0x3cc4bb;};return a2_0x2a29();}import a2_0x3b72ad 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';function a2_0x2f6e(_0x2e7bb6,_0x511880){_0x2e7bb6=_0x2e7bb6-0x74;const _0x2a296f=a2_0x2a29();let _0x2f6ea0=_0x2a296f[_0x2e7bb6];return _0x2f6ea0;}export async function generateApiFile(_0x522164,_0x5da33a,_0x3d2c28,_0x1ca31c,_0x37dd05,_0x4cfcef,_0x45daeb){const _0x4079ee=a2_0x2f6e;if(!_0x3d2c28)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+_0x4079ee(0x7d));const _0x2b7f50=_0x1ca31c&&!_0x45daeb,_0x2b5487=_0x45daeb||_0x3d2c28,_0xb41182=_0x2b7f50?_0x4079ee(0x8b):'\x22'+_0x2b5487+'\x22',_0x52ce1c=!isProduction(_0x37dd05);let _0x5db6fd;if(_0x2b7f50)_0x52ce1c?_0x5db6fd='{\x20apiConfigName:\x20'+_0xb41182+_0x4079ee(0x78)+_0x37dd05+_0x4079ee(0x8a):_0x5db6fd='';else{const _0x2774f1=_0x52ce1c?_0x4079ee(0x78)+_0x37dd05+'\x22':'';_0x5db6fd=_0x4079ee(0x7a)+_0x2b5487+'\x22'+_0x2774f1+'\x20}';}const _0x422e02=_0x5da33a?_0x5da33a+_0x4079ee(0x7e):_0x4079ee(0x91),_0x5ae296=_0x5da33a?_0x5da33a+'-client':_0x4079ee(0x8e),_0x4f02c4=_0x5da33a&&!/^app-[a-f0-9]+$/i[_0x4079ee(0x95)](_0x5da33a)?_0x5da33a[_0x4079ee(0x79)](/-/g,'_')[_0x4079ee(0x93)]():'LOVRABET',_0x1e1c53=[];_0x522164['forEach'](_0x26e389=>{const _0x3eda76=_0x4079ee;_0x1e1c53['push']({'datasetCode':_0x26e389[_0x3eda76(0x83)],'tableName':_0x26e389[_0x3eda76(0x77)],'name':_0x26e389['name']||'','alias':_0x26e389['alias']||_0x26e389[_0x3eda76(0x8d)]});});const _0x1acfcc=fileURLToPath(import.meta.url),_0x3e02f4=a2_0x3b72ad[_0x4079ee(0x75)](a2_0x3b72ad['dirname'](_0x1acfcc),'../..'),_0x116723=a2_0x3b72ad[_0x4079ee(0x92)](_0x3e02f4,_0x4079ee(0x7f)),_0x29a16e=a2_0x3b72ad[_0x4079ee(0x92)](_0x116723,'api.ts.tpl'),_0x52e04a=a2_0x3b72ad['join'](_0x116723,'client.ts.tpl'),_0xe731ff=_0x4cfcef;mkdirSync(_0xe731ff,{'recursive':!![]});const _0x19379a=_0x1e1c53[0x0]?.['alias'],_0x23f9c0=readFileSync(_0x29a16e,_0x4079ee(0x82)),_0x288e42=TemplateReplacer[_0x4079ee(0x89)](_0x23f9c0,_0x3d2c28,_0x1e1c53,_0x19379a,_0x422e02,_0xb41182,undefined,_0x4f02c4),_0x210942=await a2_0x35d94c['format'](_0x288e42,{'parser':_0x4079ee(0x76)}),_0x3cd39e=a2_0x3b72ad[_0x4079ee(0x92)](_0xe731ff,_0x422e02+'.ts');writeFileSync(_0x3cd39e,_0x210942,{'encoding':'utf8'});const _0x112197=readFileSync(_0x52e04a,_0x4079ee(0x82)),_0x11d681=TemplateReplacer[_0x4079ee(0x89)](_0x112197,_0x3d2c28,_0x1e1c53,_0x19379a,_0x422e02,_0xb41182,_0x5db6fd,_0x4f02c4),_0x5a71f4=await a2_0x35d94c['format'](_0x11d681,{'parser':_0x4079ee(0x76)}),_0x402ce7=a2_0x3b72ad['join'](_0xe731ff,_0x5ae296+_0x4079ee(0x7c));writeFileSync(_0x402ce7,_0x5a71f4,{'encoding':_0x4079ee(0x82)});const _0x5e1ef9=_0x1e1c53[_0x4079ee(0x88)];return logger[_0x4079ee(0x87)](_0x4079ee(0x94),_0x4079ee(0x7b),undefined,{'apiFile':_0x3cd39e,'clientFile':_0x402ce7,'modelCount':_0x5e1ef9,'configName':_0xb41182}),{'modelCount':_0x5e1ef9,'apiFilePath':_0x3cd39e,'clientFilePath':_0x402ce7,'configName':_0xb41182};}
@@ -1 +1 @@
1
- (function(_0x48ff0c,_0x3e1dd3){const _0xd95c9f=a3_0x1008,_0x2f967f=_0x48ff0c();while(!![]){try{const _0x49f00a=-parseInt(_0xd95c9f(0x1cb))/0x1+-parseInt(_0xd95c9f(0x1bf))/0x2+-parseInt(_0xd95c9f(0x1b8))/0x3+parseInt(_0xd95c9f(0x1c6))/0x4*(-parseInt(_0xd95c9f(0x1c7))/0x5)+parseInt(_0xd95c9f(0x1c8))/0x6*(-parseInt(_0xd95c9f(0x1ba))/0x7)+parseInt(_0xd95c9f(0x1bb))/0x8*(parseInt(_0xd95c9f(0x1bd))/0x9)+parseInt(_0xd95c9f(0x1be))/0xa*(parseInt(_0xd95c9f(0x1bc))/0xb);if(_0x49f00a===_0x3e1dd3)break;else _0x2f967f['push'](_0x2f967f['shift']());}catch(_0x53e44e){_0x2f967f['push'](_0x2f967f['shift']());}}}(a3_0x1e80,0xc7431));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a3_0x1008(_0x3d547d,_0x586032){_0x3d547d=_0x3d547d-0x1b7;const _0x1e80a4=a3_0x1e80();let _0x100847=_0x1e80a4[_0x3d547d];return _0x100847;}import{confirm}from'@inquirer/prompts';function a3_0x1e80(){const _0x37f21a=['2630299njzglS','11243600mxSJzm','22IhHRMj','9sjtsxK','20385700WwhRAI','933562pkSQuV','*\x20Login\x20successful!','No\x20valid\x20session.\x20Login\x20now?','log','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','start','1236fZXasR','21405rlXPVk','6AgEEVr','stop','autoYes','1394256fbIcSt','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','Run\x20`','3320370sKGZVd','validation'];a3_0x1e80=function(){return _0x37f21a;};return a3_0x1e80();}import a3_0x45ecae from'ora';export async function runAuthServer(_0x8a4f1c){const _0x183546=a3_0x1008,_0x55fc5a=await getIsSessionValid();if(_0x55fc5a){console[_0x183546(0x1c2)](_0x183546(0x1cc));return;}if(_0x8a4f1c?.['nonInteractive'])throw CliErrors[_0x183546(0x1b9)](_0x183546(0x1c3),_0x183546(0x1b7)+CLI_BIN_NAME+'\x20auth\x20login\x20--yes`\x20in\x20an\x20interactive\x20terminal.');const _0x51a703=_0x8a4f1c?.[_0x183546(0x1ca)]?!![]:await confirm({'message':_0x183546(0x1c1),'default':!![]});if(!_0x51a703)return;const _0x23a684=a3_0x45ecae(_0x183546(0x1c4))[_0x183546(0x1c5)](),_0x5a5741=await authServer({'silent':!![]});_0x23a684[_0x183546(0x1c9)](),_0x5a5741?console[_0x183546(0x1c2)](_0x183546(0x1c0)):console[_0x183546(0x1c2)]('!\x20Login\x20failed.');}
1
+ (function(_0xe61ba1,_0x216353){const _0x54a24e=a3_0x50c8,_0x4827f8=_0xe61ba1();while(!![]){try{const _0xf279c6=-parseInt(_0x54a24e(0x167))/0x1*(-parseInt(_0x54a24e(0x17c))/0x2)+parseInt(_0x54a24e(0x170))/0x3*(parseInt(_0x54a24e(0x16f))/0x4)+-parseInt(_0x54a24e(0x16e))/0x5+parseInt(_0x54a24e(0x169))/0x6*(parseInt(_0x54a24e(0x173))/0x7)+parseInt(_0x54a24e(0x171))/0x8*(parseInt(_0x54a24e(0x179))/0x9)+parseInt(_0x54a24e(0x17a))/0xa*(-parseInt(_0x54a24e(0x168))/0xb)+-parseInt(_0x54a24e(0x178))/0xc;if(_0xf279c6===_0x216353)break;else _0x4827f8['push'](_0x4827f8['shift']());}catch(_0x53ef02){_0x4827f8['push'](_0x4827f8['shift']());}}}(a3_0x41a2,0x9331e));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';function a3_0x50c8(_0x51b859,_0x107dd1){_0x51b859=_0x51b859-0x167;const _0x41a207=a3_0x41a2();let _0x50c886=_0x41a207[_0x51b859];return _0x50c886;}import a3_0x30e09a from'ora';function a3_0x41a2(){const _0xa6f53d=['680RPTkak','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','7007MPxBsH','*\x20Login\x20successful!','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','\x20auth\x20login\x20--yes`\x20in\x20an\x20interactive\x20terminal.','6451428hsjATy','122679iuxZfu','50BXgELU','log','82674pKAqgy','17QpxIEb','684475DFBttn','3690ukAIiq','autoYes','start','Run\x20`','!\x20Login\x20failed.','5178005PggiPu','8JNTyrU','15414WZEwlm'];a3_0x41a2=function(){return _0xa6f53d;};return a3_0x41a2();}export async function runAuthServer(_0x3e1214){const _0x35d1ef=a3_0x50c8,_0x5a6f79=await getIsSessionValid();if(_0x5a6f79){console['log'](_0x35d1ef(0x172));return;}if(_0x3e1214?.['nonInteractive'])throw CliErrors['validation'](_0x35d1ef(0x176),_0x35d1ef(0x16c)+CLI_BIN_NAME+_0x35d1ef(0x177));const _0x2571f2=_0x3e1214?.[_0x35d1ef(0x16a)]?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x2571f2)return;const _0x24e057=a3_0x30e09a(_0x35d1ef(0x175))[_0x35d1ef(0x16b)](),_0x440978=await authServer({'silent':!![]});_0x24e057['stop'](),_0x440978?console[_0x35d1ef(0x17b)](_0x35d1ef(0x174)):console['log'](_0x35d1ef(0x16d));}
@@ -1 +1 @@
1
- const a4_0x521724=a4_0x32ca;function a4_0x32ca(_0x18ffb6,_0x2267c8){_0x18ffb6=_0x18ffb6-0x9d;const _0x3db8d6=a4_0x3db8();let _0x32ca06=_0x3db8d6[_0x18ffb6];return _0x32ca06;}(function(_0x24a627,_0x46063a){const _0x1c7eef=a4_0x32ca,_0xfc7f14=_0x24a627();while(!![]){try{const _0x1bd356=parseInt(_0x1c7eef(0x9d))/0x1+parseInt(_0x1c7eef(0xa1))/0x2+parseInt(_0x1c7eef(0xc7))/0x3+parseInt(_0x1c7eef(0xc4))/0x4+-parseInt(_0x1c7eef(0xbc))/0x5*(-parseInt(_0x1c7eef(0xb5))/0x6)+-parseInt(_0x1c7eef(0xc0))/0x7*(parseInt(_0x1c7eef(0xbb))/0x8)+-parseInt(_0x1c7eef(0xc3))/0x9;if(_0x1bd356===_0x46063a)break;else _0xfc7f14['push'](_0xfc7f14['shift']());}catch(_0x1bc589){_0xfc7f14['push'](_0xfc7f14['shift']());}}}(a4_0x3db8,0x478f1));import{writeFileSync}from'node:fs';import a4_0x4f1f99 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_0x3db8(){const _0x51b2f3=['246495nlKPKb','user','catch','win32','343540bmGZUO','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','127.0.0.1','/api/auth/get-session','listen','json','utf-8','darwin','end','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','error','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','📍\x20Login\x20URL:','log','close','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','xdg-open\x20\x22','object','session','then','6aqJtjh','cmd\x20/c\x20start\x20\x22\x22\x20\x22','🔐\x20Starting\x20login\x20service...','open\x20\x22','isAuth','headers','128704yYTYLP','2039970KFtxpP','platform','silent','Auth\x20server\x20error:','196JGwFAE','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','port','5852664hmYozH','2228248LPjDdg','https://dev.lovrabet.com:','https://g.yuntooai.com/cert/lovrabet-dev.json','31632kLljsu','cookie','text/html;\x20charset=utf-8','/sign-in?redirect=','writeHead'];a4_0x3db8=function(){return _0x51b2f3;};return a4_0x3db8();}import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0x164baf){const _0x41144a=a4_0x32ca,_0x3c7457=_0x164baf?.[_0x41144a(0xbe)]||![];if(await getIsSessionValid())return!![];const _0x5285ad=await(await fetch(_0x41144a(0xc6)))['json']();return new Promise(async(_0x461c7f,_0x1021ed)=>{const _0xd45edc=_0x41144a;let _0x498c11=0x0;const _0x1a98fa=a4_0x4f1f99['createServer'](_0x5285ad,async(_0x499ef7,_0x5dd8e7)=>{const _0x366306=a4_0x32ca,_0x594137=getUserDomain(),_0x70ed7=_0x499ef7[_0x366306(0xba)][_0x366306(0xc8)]||'',_0x4cec0e=await fetch(_0x594137+_0x366306(0xa4),{'headers':{'cookie':_0x70ed7}})[_0x366306(0xb4)](_0x1d17f4=>_0x1d17f4[_0x366306(0xa6)]()),_0x4a907a=_0x4cec0e&&_0x4cec0e[_0x366306(0xb3)]&&_0x4cec0e[_0x366306(0x9e)];if(_0x4a907a){writeFileSync(cookieFile,_0x70ed7,_0x366306(0xa7)),_0x461c7f(!![]);const _0x4a5a09=buildLoginSuccessHtml();_0x5dd8e7[_0x366306(0xcb)](0xc8,{'Content-Type':_0x366306(0xc9)}),_0x5dd8e7[_0x366306(0xa9)](_0x4a5a09),_0x1a98fa[_0x366306(0xaf)]();}else{const _0x5f2819=''+encodeURIComponent(_0x366306(0xc5)+_0x498c11);_0x5dd8e7['writeHead'](0x12e,{'location':_0x594137+_0x366306(0xca)+_0x5f2819}),_0x5dd8e7['end']();return;}});_0x1a98fa[_0xd45edc(0xa5)](0x0,_0xd45edc(0xa3),()=>{const _0x46ea97=_0xd45edc,_0xe3189c=_0x1a98fa['address']();_0x498c11=typeof _0xe3189c===_0x46ea97(0xb2)&&_0xe3189c?_0xe3189c[_0x46ea97(0xc2)]:Number(_0xe3189c);const _0x3b1f6d=_0x46ea97(0xc5)+_0x498c11;!_0x3c7457&&(console[_0x46ea97(0xae)](_0x46ea97(0xb7)),console[_0x46ea97(0xae)](_0x46ea97(0xad),_0x3b1f6d),console[_0x46ea97(0xae)](_0x46ea97(0xc1)),console[_0x46ea97(0xae)](''),console['log'](_0x46ea97(0xa2)),console[_0x46ea97(0xae)]('')),openInBrowser(_0x3b1f6d)[_0x46ea97(0xb4)](_0x217372=>{const _0x4fe181=_0x46ea97;!_0x3c7457&&(_0x217372?console['log'](_0x4fe181(0xb0)):(console[_0x4fe181(0xae)](_0x4fe181(0xaa)),console[_0x4fe181(0xae)](_0x4fe181(0xac),_0x3b1f6d)),console[_0x4fe181(0xae)](''));})[_0x46ea97(0x9f)](()=>{const _0x5dcae9=_0x46ea97;!_0x3c7457&&(console[_0x5dcae9(0xae)](_0x5dcae9(0xaa)),console['log'](_0x5dcae9(0xac),_0x3b1f6d),console[_0x5dcae9(0xae)](''));});}),_0x1a98fa['on']('error',_0x5755bb=>{const _0x349243=_0xd45edc;!_0x3c7457&&console[_0x349243(0xab)](_0x349243(0xbf),_0x5755bb),_0x1021ed(_0x5755bb);});});}function openInBrowser(_0x45ed7c){return new Promise(_0x1ec0de=>{const _0x10013f=a4_0x32ca,_0x515fc0=process[_0x10013f(0xbd)];let _0x247bd8;if(_0x515fc0===_0x10013f(0xa0))_0x247bd8=_0x10013f(0xb6)+_0x45ed7c+'\x22';else _0x515fc0===_0x10013f(0xa8)?_0x247bd8=_0x10013f(0xb8)+_0x45ed7c+'\x22':_0x247bd8=_0x10013f(0xb1)+_0x45ed7c+'\x22';exec(_0x247bd8,_0x136ace=>{_0x136ace?_0x1ec0de(![]):_0x1ec0de(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log'](a4_0x521724(0xb9),isAuth);}
1
+ const a4_0x5dd1ec=a4_0x4f9d;(function(_0x3e1bcf,_0x2360bd){const _0x23a30f=a4_0x4f9d,_0x483795=_0x3e1bcf();while(!![]){try{const _0x39617d=-parseInt(_0x23a30f(0x8f))/0x1*(parseInt(_0x23a30f(0x86))/0x2)+parseInt(_0x23a30f(0x6b))/0x3+parseInt(_0x23a30f(0x83))/0x4*(parseInt(_0x23a30f(0x69))/0x5)+parseInt(_0x23a30f(0x8e))/0x6+-parseInt(_0x23a30f(0x89))/0x7*(-parseInt(_0x23a30f(0x90))/0x8)+-parseInt(_0x23a30f(0x84))/0x9*(-parseInt(_0x23a30f(0x85))/0xa)+-parseInt(_0x23a30f(0x6c))/0xb;if(_0x39617d===_0x2360bd)break;else _0x483795['push'](_0x483795['shift']());}catch(_0x56cf94){_0x483795['push'](_0x483795['shift']());}}}(a4_0x4460,0x9c99a));function a4_0x4460(){const _0x42bead=['open\x20\x22','user','https://dev.lovrabet.com:','darwin','object','catch','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','🔐\x20Starting\x20login\x20service...','https://g.yuntooai.com/cert/lovrabet-dev.json','/sign-in?redirect=','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','end','session','📍\x20Login\x20URL:','isAuth','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','xdg-open\x20\x22','listen','error','then','log','17788UjqsDw','54fSPSOI','525260VznxFs','949318bmKBoJ','win32','platform','7ZZFuDb','json','silent','port','createServer','3743838uUcXhP','1bOXtBR','1666664bBqRBk','cookie','475FpSoxw','cmd\x20/c\x20start\x20\x22\x22\x20\x22','789300MxmeHL','7886274Nisesu','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'];a4_0x4460=function(){return _0x42bead;};return a4_0x4460();}import{writeFileSync}from'node:fs';import a4_0xf17163 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(_0x4facd8){const _0x2e747f=a4_0x4f9d,_0x290cc0=_0x4facd8?.[_0x2e747f(0x8b)]||![];if(await getIsSessionValid())return!![];const _0x5f2f1b=await(await fetch(_0x2e747f(0x76)))[_0x2e747f(0x8a)]();return new Promise(async(_0x66819e,_0xc3faae)=>{const _0x96ffb9=_0x2e747f;let _0x5b2239=0x0;const _0x4cda40=a4_0xf17163[_0x96ffb9(0x8d)](_0x5f2f1b,async(_0x4716df,_0x21cac0)=>{const _0x15c8cf=_0x96ffb9,_0x2b1e4d=getUserDomain(),_0xa5af29=_0x4716df['headers'][_0x15c8cf(0x91)]||'',_0x3dcac8=await fetch(_0x2b1e4d+'/api/auth/get-session',{'headers':{'cookie':_0xa5af29}})['then'](_0x433a50=>_0x433a50[_0x15c8cf(0x8a)]()),_0x2ea784=_0x3dcac8&&_0x3dcac8[_0x15c8cf(0x7a)]&&_0x3dcac8[_0x15c8cf(0x6f)];if(_0x2ea784){writeFileSync(cookieFile,_0xa5af29,'utf-8'),_0x66819e(!![]);const _0xb48f00=buildLoginSuccessHtml();_0x21cac0['writeHead'](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x21cac0[_0x15c8cf(0x79)](_0xb48f00),_0x4cda40['close']();}else{const _0x53b262=''+encodeURIComponent(_0x15c8cf(0x70)+_0x5b2239);_0x21cac0['writeHead'](0x12e,{'location':_0x2b1e4d+_0x15c8cf(0x77)+_0x53b262}),_0x21cac0[_0x15c8cf(0x79)]();return;}});_0x4cda40[_0x96ffb9(0x7f)](0x0,'127.0.0.1',()=>{const _0x541488=_0x96ffb9,_0x13f014=_0x4cda40['address']();_0x5b2239=typeof _0x13f014===_0x541488(0x72)&&_0x13f014?_0x13f014[_0x541488(0x8c)]:Number(_0x13f014);const _0x425731=_0x541488(0x70)+_0x5b2239;!_0x290cc0&&(console['log'](_0x541488(0x75)),console[_0x541488(0x82)](_0x541488(0x7b),_0x425731),console['log'](_0x541488(0x7d)),console['log'](''),console[_0x541488(0x82)](_0x541488(0x74)),console[_0x541488(0x82)]('')),openInBrowser(_0x425731)[_0x541488(0x81)](_0x4f1f73=>{const _0x41354a=_0x541488;!_0x290cc0&&(_0x4f1f73?console[_0x41354a(0x82)]('✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console['log'](_0x41354a(0x6d)),console[_0x41354a(0x82)](_0x41354a(0x78),_0x425731)),console[_0x41354a(0x82)](''));})[_0x541488(0x73)](()=>{const _0x4f6d81=_0x541488;!_0x290cc0&&(console[_0x4f6d81(0x82)](_0x4f6d81(0x6d)),console[_0x4f6d81(0x82)](_0x4f6d81(0x78),_0x425731),console['log'](''));});}),_0x4cda40['on']('error',_0x1726dc=>{const _0x383357=_0x96ffb9;!_0x290cc0&&console[_0x383357(0x80)]('Auth\x20server\x20error:',_0x1726dc),_0xc3faae(_0x1726dc);});});}function openInBrowser(_0x1a77d0){return new Promise(_0x123983=>{const _0x403119=a4_0x4f9d,_0xc69b5b=process[_0x403119(0x88)];let _0x5765ad;if(_0xc69b5b===_0x403119(0x87))_0x5765ad=_0x403119(0x6a)+_0x1a77d0+'\x22';else _0xc69b5b===_0x403119(0x71)?_0x5765ad=_0x403119(0x6e)+_0x1a77d0+'\x22':_0x5765ad=_0x403119(0x7e)+_0x1a77d0+'\x22';exec(_0x5765ad,_0x2ff3e9=>{_0x2ff3e9?_0x123983(![]):_0x123983(!![]);});});}function a4_0x4f9d(_0x4eb835,_0x5e6ca9){_0x4eb835=_0x4eb835-0x69;const _0x446058=a4_0x4460();let _0x4f9d2c=_0x446058[_0x4eb835];return _0x4f9d2c;}if(import.meta.main){const isAuth=await authServer();console[a4_0x5dd1ec(0x82)](a4_0x5dd1ec(0x7c),isAuth);}
@@ -1 +1 @@
1
- const a5_0x4fa6a0=a5_0x3226;(function(_0xd39db5,_0x297c52){const _0x5532fc=a5_0x3226,_0x50e3f8=_0xd39db5();while(!![]){try{const _0x23db0f=-parseInt(_0x5532fc(0x197))/0x1+-parseInt(_0x5532fc(0x19b))/0x2+-parseInt(_0x5532fc(0x19a))/0x3+parseInt(_0x5532fc(0x198))/0x4*(parseInt(_0x5532fc(0x196))/0x5)+parseInt(_0x5532fc(0x194))/0x6+-parseInt(_0x5532fc(0x199))/0x7+-parseInt(_0x5532fc(0x195))/0x8*(-parseInt(_0x5532fc(0x193))/0x9);if(_0x23db0f===_0x297c52)break;else _0x50e3f8['push'](_0x50e3f8['shift']());}catch(_0x2fac28){_0x50e3f8['push'](_0x50e3f8['shift']());}}}(a5_0x39ec,0xdd67c));function a5_0x3226(_0x34bc23,_0x319f14){_0x34bc23=_0x34bc23-0x191;const _0x39eca6=a5_0x39ec();let _0x3226da=_0x39eca6[_0x34bc23];return _0x3226da;}import{mkdirSync}from'node:fs';function a5_0x39ec(){const _0x15df95=['.lovrabet','1377234yeaFOL','1209942QovXbk','96JztXhL','20970UqeVso','1708248BgZyrJ','1612ZXIOvC','529998eeQdjc','540453ceQgPG','1714324zuyOAB','cookie'];a5_0x39ec=function(){return _0x15df95;};return a5_0x39ec();}import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x4fa6a0(0x192));export const cookieFile=join(configDir,a5_0x4fa6a0(0x191));mkdirSync(configDir,{'recursive':!![]});
1
+ const a5_0x57f3c7=a5_0x1a09;(function(_0x553a38,_0x26e65b){const _0x560a15=a5_0x1a09,_0x522e6d=_0x553a38();while(!![]){try{const _0x53f7b4=-parseInt(_0x560a15(0x1c9))/0x1+-parseInt(_0x560a15(0x1c5))/0x2+parseInt(_0x560a15(0x1cb))/0x3+parseInt(_0x560a15(0x1cf))/0x4*(parseInt(_0x560a15(0x1c8))/0x5)+parseInt(_0x560a15(0x1ca))/0x6*(parseInt(_0x560a15(0x1c7))/0x7)+-parseInt(_0x560a15(0x1ce))/0x8*(-parseInt(_0x560a15(0x1cd))/0x9)+parseInt(_0x560a15(0x1c6))/0xa*(-parseInt(_0x560a15(0x1d0))/0xb);if(_0x53f7b4===_0x26e65b)break;else _0x522e6d['push'](_0x522e6d['shift']());}catch(_0xc19574){_0x522e6d['push'](_0x522e6d['shift']());}}}(a5_0x3dbd,0x9570e));import{mkdirSync}from'node:fs';import{homedir}from'node:os';function a5_0x1a09(_0x28eb83,_0x50d2e1){_0x28eb83=_0x28eb83-0x1c5;const _0x3dbdc6=a5_0x3dbd();let _0x1a0990=_0x3dbdc6[_0x28eb83];return _0x1a0990;}import{join}from'node:path';export const configDir=join(homedir(),'.lovrabet');function a5_0x3dbd(){const _0x159313=['96222hzTxLC','2250OfCFzk','7nWNgWX','10555DJspKU','852730ZjPtOG','1193274icnoUG','3089982zHWSvf','cookie','256005UpgrRS','328FetWDa','212VcGiDg','48598sRmERl'];a5_0x3dbd=function(){return _0x159313;};return a5_0x3dbd();}export const cookieFile=join(configDir,a5_0x57f3c7(0x1cc));mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- function a6_0x1359(){var _0xcaa8f5=['1462474CBssVR','819ORTONE','utf-8','35541OyedoT','146731hPsWjo','23390kRHwCX','411SbsvmR','7780CRTGQK','1164paWWXP','48894OJqyPa','784qiyxlf','3140YsOuWh','70omshCp','1253791csHLAH'];a6_0x1359=function(){return _0xcaa8f5;};return a6_0x1359();}(function(_0x4cf77b,_0x224cd5){var _0xdab53a=a6_0x106c,_0x380d2c=_0x4cf77b();while(!![]){try{var _0x51ba60=parseInt(_0xdab53a(0xcf))/0x1+parseInt(_0xdab53a(0xd4))/0x2*(-parseInt(_0xdab53a(0xd5))/0x3)+parseInt(_0xdab53a(0xd6))/0x4*(parseInt(_0xdab53a(0xcc))/0x5)+parseInt(_0xdab53a(0xca))/0x6*(-parseInt(_0xdab53a(0xd0))/0x7)+parseInt(_0xdab53a(0xcb))/0x8*(parseInt(_0xdab53a(0xd2))/0x9)+-parseInt(_0xdab53a(0xcd))/0xa*(parseInt(_0xdab53a(0xce))/0xb)+-parseInt(_0xdab53a(0xd7))/0xc*(-parseInt(_0xdab53a(0xd3))/0xd);if(_0x51ba60===_0x224cd5)break;else _0x380d2c['push'](_0x380d2c['shift']());}catch(_0x153a20){_0x380d2c['push'](_0x380d2c['shift']());}}}(a6_0x1359,0xc64e4));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0x106c(_0x54fdb0,_0x12c050){_0x54fdb0=_0x54fdb0-0xca;var _0x135955=a6_0x1359();var _0x106cb3=_0x135955[_0x54fdb0];return _0x106cb3;}export function getCookie(){var _0xc63f53=a6_0x106c;try{return readFileSync(cookieFile,_0xc63f53(0xd1));}catch{}return'';}
1
+ (function(_0x148a0c,_0x3cc228){var _0x5911a4=a6_0x53ab,_0x4b5060=_0x148a0c();while(!![]){try{var _0x42384a=-parseInt(_0x5911a4(0x100))/0x1+-parseInt(_0x5911a4(0x104))/0x2*(-parseInt(_0x5911a4(0xfd))/0x3)+parseInt(_0x5911a4(0x103))/0x4+-parseInt(_0x5911a4(0xfb))/0x5+-parseInt(_0x5911a4(0xfc))/0x6*(parseInt(_0x5911a4(0x102))/0x7)+parseInt(_0x5911a4(0xff))/0x8*(-parseInt(_0x5911a4(0xfe))/0x9)+-parseInt(_0x5911a4(0x105))/0xa*(-parseInt(_0x5911a4(0x106))/0xb);if(_0x42384a===_0x3cc228)break;else _0x4b5060['push'](_0x4b5060['shift']());}catch(_0x3af6be){_0x4b5060['push'](_0x4b5060['shift']());}}}(a6_0x4bff,0xca8c5));function a6_0x4bff(){var _0x299c17=['17804830SacjQD','11dsxewb','5247660VqkVFa','1227438HOJjwd','1152JyChvA','1728603qEfjDB','8napqWl','419510cCxGCo','utf-8','7TgbiUX','152656BcqWfb','4566TPlqoE'];a6_0x4bff=function(){return _0x299c17;};return a6_0x4bff();}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0x53ab(_0x2f1352,_0x58871c){_0x2f1352=_0x2f1352-0xfb;var _0x4bff8c=a6_0x4bff();var _0x53ab73=_0x4bff8c[_0x2f1352];return _0x53ab73;}export function getCookie(){var _0x4bf634=a6_0x53ab;try{return readFileSync(cookieFile,_0x4bf634(0x101));}catch{}return'';}
@@ -1 +1 @@
1
- function a7_0x11b0(_0x171e67,_0x3f5bcf){_0x171e67=_0x171e67-0x154;const _0xa67a44=a7_0xa67a();let _0x11b01c=_0xa67a44[_0x171e67];return _0x11b01c;}(function(_0x174d9b,_0xe4893a){const _0x32d113=a7_0x11b0,_0x25f7b7=_0x174d9b();while(!![]){try{const _0x32b277=parseInt(_0x32d113(0x15c))/0x1*(parseInt(_0x32d113(0x15e))/0x2)+-parseInt(_0x32d113(0x154))/0x3*(-parseInt(_0x32d113(0x15a))/0x4)+-parseInt(_0x32d113(0x159))/0x5+-parseInt(_0x32d113(0x157))/0x6*(parseInt(_0x32d113(0x163))/0x7)+-parseInt(_0x32d113(0x162))/0x8*(-parseInt(_0x32d113(0x160))/0x9)+parseInt(_0x32d113(0x156))/0xa*(-parseInt(_0x32d113(0x158))/0xb)+-parseInt(_0x32d113(0x155))/0xc*(-parseInt(_0x32d113(0x161))/0xd);if(_0x32b277===_0xe4893a)break;else _0x25f7b7['push'](_0x25f7b7['shift']());}catch(_0x485953){_0x25f7b7['push'](_0x25f7b7['shift']());}}}(a7_0xa67a,0x7100f));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a7_0xa67a(){const _0x31d474=['json','700fPSmIb','user','1124RlrXFI','utf-8','3033ormivF','26zNCKIW','19736xTOCyh','1729TCewvx','10383XVALpR','523128bsfVgF','1297010UIwgxf','21468PkRKTA','44QICCLy','1160905cQJmrX','908eazhkg'];a7_0xa67a=function(){return _0x31d474;};return a7_0xa67a();}export async function getSessionUserInfo(){const _0x2a0bc4=a7_0x11b0;try{if(!existsSync(cookieFile))return null;const _0x315611=readFileSync(cookieFile,_0x2a0bc4(0x15f)),_0x888e7b=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x315611}});if(!_0x888e7b['ok'])return null;const _0x4c6d8e=await _0x888e7b[_0x2a0bc4(0x15b)]();if(!_0x4c6d8e['session']||!_0x4c6d8e[_0x2a0bc4(0x15d)])return null;return _0x4c6d8e;}catch{return null;}}
1
+ function a7_0x57cf(){const _0x565071=['/api/auth/get-session','30688EHblkz','624fQdqju','7Qstzoi','2007nUcncK','43577530vgnMgv','utf-8','485286ccufcl','1115991JXOnzc','4981914lfVEnV','785vuUwQR','11914352fMlQaU','user'];a7_0x57cf=function(){return _0x565071;};return a7_0x57cf();}(function(_0x5c7aa8,_0x1a3511){const _0x40ff96=a7_0x2e86,_0x8acbf3=_0x5c7aa8();while(!![]){try{const _0x569eb4=-parseInt(_0x40ff96(0x10c))/0x1+-parseInt(_0x40ff96(0x106))/0x2*(parseInt(_0x40ff96(0x108))/0x3)+-parseInt(_0x40ff96(0x105))/0x4*(parseInt(_0x40ff96(0x101))/0x5)+-parseInt(_0x40ff96(0x10b))/0x6*(parseInt(_0x40ff96(0x107))/0x7)+-parseInt(_0x40ff96(0x102))/0x8+parseInt(_0x40ff96(0x100))/0x9+parseInt(_0x40ff96(0x109))/0xa;if(_0x569eb4===_0x1a3511)break;else _0x8acbf3['push'](_0x8acbf3['shift']());}catch(_0x23dc90){_0x8acbf3['push'](_0x8acbf3['shift']());}}}(a7_0x57cf,0xc637d));import{existsSync,readFileSync}from'node:fs';function a7_0x2e86(_0x307c83,_0xf8460d){_0x307c83=_0x307c83-0x100;const _0x57cf4b=a7_0x57cf();let _0x2e86e2=_0x57cf4b[_0x307c83];return _0x2e86e2;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x330c06=a7_0x2e86;try{if(!existsSync(cookieFile))return null;const _0x2a356f=readFileSync(cookieFile,_0x330c06(0x10a)),_0x1d3b89=await fetch(getUserDomain()+_0x330c06(0x104),{'headers':{'cookie':_0x2a356f}});if(!_0x1d3b89['ok'])return null;const _0xa5ce2=await _0x1d3b89['json']();if(!_0xa5ce2['session']||!_0xa5ce2[_0x330c06(0x103)])return null;return _0xa5ce2;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x2410f4,_0x574b6d){const _0x2c8e5c=a8_0x5055,_0xa5f107=_0x2410f4();while(!![]){try{const _0x26c14a=parseInt(_0x2c8e5c(0x11f))/0x1+parseInt(_0x2c8e5c(0x118))/0x2+parseInt(_0x2c8e5c(0x121))/0x3*(-parseInt(_0x2c8e5c(0x11d))/0x4)+-parseInt(_0x2c8e5c(0x11a))/0x5+-parseInt(_0x2c8e5c(0x122))/0x6+parseInt(_0x2c8e5c(0x124))/0x7*(-parseInt(_0x2c8e5c(0x11b))/0x8)+parseInt(_0x2c8e5c(0x11c))/0x9;if(_0x26c14a===_0x574b6d)break;else _0xa5f107['push'](_0xa5f107['shift']());}catch(_0x4b22fd){_0xa5f107['push'](_0xa5f107['shift']());}}}(a8_0x2b11,0xbe03b));import{existsSync,readFileSync}from'node:fs';function a8_0x5055(_0x346ad8,_0xaa324c){_0x346ad8=_0x346ad8-0x118;const _0x2b1139=a8_0x2b11();let _0x505542=_0x2b1139[_0x346ad8];return _0x505542;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x2bff4f=a8_0x5055;try{if(!existsSync(cookieFile))return![];const _0x1de3bd=readFileSync(cookieFile,_0x2bff4f(0x119)),_0x5227d6=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x1de3bd}})[_0x2bff4f(0x120)](_0x4edf1a=>_0x4edf1a[_0x2bff4f(0x11e)]());return _0x5227d6&&_0x5227d6[_0x2bff4f(0x123)]&&_0x5227d6[_0x2bff4f(0x125)];}catch{}return![];}function a8_0x2b11(){const _0x180885=['session','28qgbzpO','user','962542UcFHTs','utf-8','6108620QoNtnf','1065104VytuWB','31573755UgrPgQ','3288556csapLM','json','133177tlgYqq','then','3JIXurj','4607574iLijhJ'];a8_0x2b11=function(){return _0x180885;};return a8_0x2b11();}
1
+ (function(_0x435901,_0x1fe186){const _0x491078=a8_0x25c2,_0x41d36d=_0x435901();while(!![]){try{const _0x17599c=-parseInt(_0x491078(0xda))/0x1*(-parseInt(_0x491078(0xdb))/0x2)+parseInt(_0x491078(0xd5))/0x3+-parseInt(_0x491078(0xce))/0x4*(parseInt(_0x491078(0xd7))/0x5)+-parseInt(_0x491078(0xcf))/0x6*(parseInt(_0x491078(0xd3))/0x7)+parseInt(_0x491078(0xcb))/0x8*(parseInt(_0x491078(0xca))/0x9)+parseInt(_0x491078(0xd8))/0xa*(parseInt(_0x491078(0xd0))/0xb)+parseInt(_0x491078(0xc9))/0xc*(-parseInt(_0x491078(0xd2))/0xd);if(_0x17599c===_0x1fe186)break;else _0x41d36d['push'](_0x41d36d['shift']());}catch(_0x34cc12){_0x41d36d['push'](_0x41d36d['shift']());}}}(a8_0xd090,0xebc4e));function a8_0xd090(){const _0x2aa510=['2068717qzrlKK','/api/auth/get-session','3660381rrVlHh','json','415KzzCrr','59650NXpgUm','user','7Jbddkk','458548sYHoWc','5868xFKWCs','73008yfDsOO','424NOTzxC','utf-8','then','71524WldsJA','18JjATzz','308sWfaaT','session','2275ezofUQ'];a8_0xd090=function(){return _0x2aa510;};return a8_0xd090();}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0x25c2(_0x211d1b,_0x5b0dfa){_0x211d1b=_0x211d1b-0xc9;const _0xd0902=a8_0xd090();let _0x25c2ef=_0xd0902[_0x211d1b];return _0x25c2ef;}export async function getIsSessionValid(){const _0x142c48=a8_0x25c2;try{if(!existsSync(cookieFile))return![];const _0x55b3af=readFileSync(cookieFile,_0x142c48(0xcc)),_0x2e242e=await fetch(getUserDomain()+_0x142c48(0xd4),{'headers':{'cookie':_0x55b3af}})[_0x142c48(0xcd)](_0x25ff8d=>_0x25ff8d[_0x142c48(0xd6)]());return _0x2e242e&&_0x2e242e[_0x142c48(0xd1)]&&_0x2e242e[_0x142c48(0xd9)];}catch{}return![];}
@@ -1 +1 @@
1
- function a9_0x5332(_0x3748d6,_0x2d888d){_0x3748d6=_0x3748d6-0x157;const _0x5b5b66=a9_0x5b5b();let _0x5332a1=_0x5b5b66[_0x3748d6];return _0x5332a1;}function a9_0x5b5b(){const _0x3811aa=['15525368VclYDk','</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>','681138qGDjxT','979010yXBxgW','<!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>','5520288PPIxBb','7ohQYOv','263628KoCABb','10453938rOpZEG','2892004qfDnfi'];a9_0x5b5b=function(){return _0x3811aa;};return a9_0x5b5b();}(function(_0x63fe19,_0x2644c0){const _0x24c879=a9_0x5332,_0x35e66d=_0x63fe19();while(!![]){try{const _0x4c2d34=parseInt(_0x24c879(0x15b))/0x1+-parseInt(_0x24c879(0x158))/0x2+-parseInt(_0x24c879(0x160))/0x3+parseInt(_0x24c879(0x15e))/0x4+parseInt(_0x24c879(0x15c))/0x5+parseInt(_0x24c879(0x157))/0x6*(-parseInt(_0x24c879(0x15f))/0x7)+parseInt(_0x24c879(0x159))/0x8;if(_0x4c2d34===_0x2644c0)break;else _0x35e66d['push'](_0x35e66d['shift']());}catch(_0x1fd506){_0x35e66d['push'](_0x35e66d['shift']());}}}(a9_0x5b5b,0xe0f8a));export function buildLoginSuccessHtml(){const _0x142103=a9_0x5332,_0xbe132f='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x142103(0x15d)+_0xbe132f+_0x142103(0x15a);}
1
+ (function(_0x501c44,_0x1c3707){const _0x2565d3=a9_0x3ae8,_0x588884=_0x501c44();while(!![]){try{const _0x1cb18d=parseInt(_0x2565d3(0x72))/0x1+-parseInt(_0x2565d3(0x68))/0x2+-parseInt(_0x2565d3(0x67))/0x3*(parseInt(_0x2565d3(0x6f))/0x4)+-parseInt(_0x2565d3(0x6c))/0x5*(parseInt(_0x2565d3(0x71))/0x6)+parseInt(_0x2565d3(0x65))/0x7*(-parseInt(_0x2565d3(0x6e))/0x8)+-parseInt(_0x2565d3(0x66))/0x9+parseInt(_0x2565d3(0x6b))/0xa*(parseInt(_0x2565d3(0x70))/0xb);if(_0x1cb18d===_0x1c3707)break;else _0x588884['push'](_0x588884['shift']());}catch(_0x105c0f){_0x588884['push'](_0x588884['shift']());}}}(a9_0x48c8,0xb19b3));function a9_0x3ae8(_0x3109f,_0x5565b0){_0x3109f=_0x3109f-0x65;const _0x48c812=a9_0x48c8();let _0x3ae8db=_0x48c812[_0x3109f];return _0x3ae8db;}function a9_0x48c8(){const _0x5f360a=['5680202xPOhLD','6960CvwoEM','406958LFxcvD','7BRTyLF','5844969NZwSsk','1539609fmYKdR','636332dhARsd','</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>','<!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>','50YxVAQb','195dbIwKT','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','5882744oZIbgl','4jXVKaV'];a9_0x48c8=function(){return _0x5f360a;};return a9_0x48c8();}export function buildLoginSuccessHtml(){const _0x3e1064=a9_0x3ae8,_0x23dce4=_0x3e1064(0x6d);return _0x3e1064(0x6a)+_0x23dce4+_0x3e1064(0x69);}
@@ -1 +1 @@
1
- function a10_0xd9e6(){var _0x85d773=['5bKBmlO','✓\x20Logged\x20out','7wFeafj','7988472ITwTzF','69699012fQILCy','!\x20Not\x20logged\x20in','7051896raVjxx','1uERdum','18018YyvgVw','154OWZWBg','1715158OJQlth','4298298NpXWYr','log','16VQuXKV','1161160KLgYfC'];a10_0xd9e6=function(){return _0x85d773;};return a10_0xd9e6();}function a10_0x4d8c(_0x299276,_0x282eeb){_0x299276=_0x299276-0xda;var _0xd9e603=a10_0xd9e6();var _0x4d8cd5=_0xd9e603[_0x299276];return _0x4d8cd5;}(function(_0x5b838d,_0x6c4e8){var _0x59ee6e=a10_0x4d8c,_0x1ca432=_0x5b838d();while(!![]){try{var _0x1b3e57=-parseInt(_0x59ee6e(0xe5))/0x1*(-parseInt(_0x59ee6e(0xe8))/0x2)+parseInt(_0x59ee6e(0xe6))/0x3+parseInt(_0x59ee6e(0xe4))/0x4*(parseInt(_0x59ee6e(0xde))/0x5)+-parseInt(_0x59ee6e(0xda))/0x6*(-parseInt(_0x59ee6e(0xe0))/0x7)+parseInt(_0x59ee6e(0xdc))/0x8*(parseInt(_0x59ee6e(0xe1))/0x9)+parseInt(_0x59ee6e(0xdd))/0xa*(parseInt(_0x59ee6e(0xe7))/0xb)+-parseInt(_0x59ee6e(0xe2))/0xc;if(_0x1b3e57===_0x6c4e8)break;else _0x1ca432['push'](_0x1ca432['shift']());}catch(_0x34a8e0){_0x1ca432['push'](_0x1ca432['shift']());}}}(a10_0xd9e6,0xe466b));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0xb1eaa6=a10_0x4d8c;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0xb1eaa6(0xdb)](_0xb1eaa6(0xdf))):console['log'](_0xb1eaa6(0xe3));}
1
+ function a10_0x3c28(){var _0x30de3d=['368918sYemEP','27976ScIDbS','315635iZefgU','2338545kMpLFJ','log','!\x20Not\x20logged\x20in','4158054kjcOEU','539620WhTcLx','64DNVxio','✓\x20Logged\x20out','1348998vplSaQ'];a10_0x3c28=function(){return _0x30de3d;};return a10_0x3c28();}function a10_0x3bfd(_0x540710,_0x386688){_0x540710=_0x540710-0xc2;var _0x3c286c=a10_0x3c28();var _0x3bfd2a=_0x3c286c[_0x540710];return _0x3bfd2a;}(function(_0x350629,_0x35ea63){var _0x5de7af=a10_0x3bfd,_0xf9b71=_0x350629();while(!![]){try{var _0x596adb=parseInt(_0x5de7af(0xc2))/0x1+parseInt(_0x5de7af(0xc9))/0x2+parseInt(_0x5de7af(0xc5))/0x3+-parseInt(_0x5de7af(0xc3))/0x4+parseInt(_0x5de7af(0xc4))/0x5+parseInt(_0x5de7af(0xc8))/0x6+parseInt(_0x5de7af(0xcc))/0x7*(-parseInt(_0x5de7af(0xca))/0x8);if(_0x596adb===_0x35ea63)break;else _0xf9b71['push'](_0xf9b71['shift']());}catch(_0x17e86d){_0xf9b71['push'](_0xf9b71['shift']());}}}(a10_0x3c28,0x98c09));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x10321f=a10_0x3bfd;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x10321f(0xc6)](_0x10321f(0xcb))):console[_0x10321f(0xc6)](_0x10321f(0xc7));}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- (function(_0x416fcc,_0x45210c){const _0x487567=a11_0x1fca,_0x9d9051=_0x416fcc();while(!![]){try{const _0x13720d=-parseInt(_0x487567(0x178))/0x1*(-parseInt(_0x487567(0x174))/0x2)+-parseInt(_0x487567(0x17a))/0x3*(parseInt(_0x487567(0x175))/0x4)+-parseInt(_0x487567(0x17c))/0x5+-parseInt(_0x487567(0x176))/0x6*(-parseInt(_0x487567(0x173))/0x7)+-parseInt(_0x487567(0x17b))/0x8+-parseInt(_0x487567(0x179))/0x9*(-parseInt(_0x487567(0x17d))/0xa)+parseInt(_0x487567(0x177))/0xb;if(_0x13720d===_0x45210c)break;else _0x9d9051['push'](_0x9d9051['shift']());}catch(_0x347be0){_0x9d9051['push'](_0x9d9051['shift']());}}}(a11_0x48a6,0x5915b));function a11_0x48a6(){const _0x2ab63f=['1013467HnlFMi','127796vvIzXk','236840saXUvX','18CEjKnn','1598113zzZRre','6JVnqcs','4815054sFJFbE','9OwnFXU','3736552hIFAmj','2442150OHRiLU','10OeAFGf'];a11_0x48a6=function(){return _0x2ab63f;};return a11_0x48a6();}function a11_0x1fca(_0xd5babf,_0x1524c5){_0xd5babf=_0xd5babf-0x173;const _0x48a695=a11_0x48a6();let _0x1fcab7=_0x48a695[_0xd5babf];return _0x1fcab7;}export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};
1
+ const a11_0x5da490=a11_0x1e99;(function(_0x5e5016,_0x5efa2b){const _0x3d6258=a11_0x1e99,_0x27a1ba=_0x5e5016();while(!![]){try{const _0x1b072f=-parseInt(_0x3d6258(0x12a))/0x1+parseInt(_0x3d6258(0x127))/0x2*(parseInt(_0x3d6258(0x129))/0x3)+parseInt(_0x3d6258(0x124))/0x4+parseInt(_0x3d6258(0x123))/0x5+-parseInt(_0x3d6258(0x128))/0x6+parseInt(_0x3d6258(0x126))/0x7+-parseInt(_0x3d6258(0x125))/0x8*(parseInt(_0x3d6258(0x12b))/0x9);if(_0x1b072f===_0x5efa2b)break;else _0x27a1ba['push'](_0x27a1ba['shift']());}catch(_0x39411b){_0x27a1ba['push'](_0x27a1ba['shift']());}}}(a11_0x32a1,0xcd8cb));function a11_0x32a1(){const _0x5f4b56=['9596209EFrPvI','2194550CBTDdM','6109332nCcpyX','3qxCAfP','840703xMeaJA','1710090ENAXTV','boolean','1995445TfdYnX','854500JxkSrh','16MQpxLI'];a11_0x32a1=function(){return _0x5f4b56;};return a11_0x32a1();}function a11_0x1e99(_0x2c1edf,_0x4536bc){_0x2c1edf=_0x2c1edf-0x122;const _0x32a1c7=a11_0x32a1();let _0x1e991c=_0x32a1c7[_0x2c1edf];return _0x1e991c;}export const dynamicCliFlags={'enableBffSave':{'type':a11_0x5da490(0x122)}};
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x2e4312=a12_0x3721;(function(_0x546cea,_0x4464aa){const _0x1c6155=a12_0x3721,_0x85b82d=_0x546cea();while(!![]){try{const _0x56132a=-parseInt(_0x1c6155(0x98))/0x1*(parseInt(_0x1c6155(0x78))/0x2)+parseInt(_0x1c6155(0x8f))/0x3*(parseInt(_0x1c6155(0x85))/0x4)+-parseInt(_0x1c6155(0x79))/0x5+-parseInt(_0x1c6155(0x83))/0x6*(-parseInt(_0x1c6155(0x99))/0x7)+-parseInt(_0x1c6155(0x7b))/0x8+-parseInt(_0x1c6155(0x92))/0x9+-parseInt(_0x1c6155(0x94))/0xa*(-parseInt(_0x1c6155(0x96))/0xb);if(_0x56132a===_0x4464aa)break;else _0x85b82d['push'](_0x85b82d['shift']());}catch(_0x1f9ab9){_0x85b82d['push'](_0x85b82d['shift']());}}}(a12_0x4aae,0x3a4f6));import a12_0x539fca 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;function a12_0x4aae(){const _0x864b8f=['error','flags','./constant/env.js','defaultCommand','650Arocpu','1128745ewMwHG','Error:\x20','2457304uoivLg','log','help','wildcardDef','string','unknownCommand','`\x20is\x20an\x20alias\x20of\x20`','slice','1334994Fqamyt','name','782756ySZIUe','write','stderr','now','command','unknown_service','message','hint','raw','code','3DkdhKC','global','Hint:\x20','3256155CJoDZL','\x0aCancelled.\x0a','10qhPphN','Unexpected\x20error:','8463763gkOWHt','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','851UQvykO','14qYvpKV','exitCode','env','./cli-flags.js','service','apiDomain','./context.js','input','⚠\x20`','runtimeDomain','./constant/domain.js','`\x20in\x20v2.0.\x0a'];a12_0x4aae=function(){return _0x864b8f;};return a12_0x4aae();}function a12_0x3721(_0x445e98,_0x31260b){_0x445e98=_0x445e98-0x76;const _0x4aae68=a12_0x4aae();let _0x372161=_0x4aae68[_0x445e98];return _0x372161;}try{dynamicCliFlags=(await import(a12_0x2e4312(0x9c)))['dynamicCliFlags'];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x2e4312(0x82)](0x0,0xa)+')':VERSION,cli=a12_0x539fca(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x4ab704=a12_0x2e4312;let _0x2d7d88=cli[_0x4ab704(0xa0)][0x0],_0x4ac945=cli[_0x4ab704(0xa0)][0x1];const _0x15b208=cli[_0x4ab704(0xa6)];if(!_0x2d7d88){await reportCliHelpTrace(_0x4ab704(0x90)),showHelp();return;}const _0x85cdfc=deprecatedAliases[_0x2d7d88];if(_0x85cdfc&&!isKnownService(_0x2d7d88)){const _0x7f855=_0x4ac945?CLI_BIN_NAME+'\x20'+_0x2d7d88+'\x20'+_0x4ac945:CLI_BIN_NAME+'\x20'+_0x2d7d88,_0x4d7087=CLI_BIN_NAME+'\x20'+_0x85cdfc[_0x4ab704(0x9d)]+'\x20'+_0x85cdfc[_0x4ab704(0x89)];console[_0x4ab704(0xa5)](_0x4ab704(0xa1)+_0x7f855+'`\x20has\x20been\x20moved\x20to\x20`'+_0x4d7087+_0x4ab704(0xa4)+_0x4ab704(0x97)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x2d7d88)){await reportCliHelpTrace(_0x4ab704(0x8a),{'service':_0x2d7d88}),showHelp();return;}const _0x40ff78=getServiceEntry(_0x2d7d88);if(_0x15b208[_0x4ab704(0x9b)]&&typeof _0x15b208[_0x4ab704(0x9b)]===_0x4ab704(0x7f)){const {initEnv:_0x2356bc}=await import('./constant/env.js');_0x2356bc(_0x15b208[_0x4ab704(0x9b)]);}const {buildConfigFromFlags:_0x23041f}=await import(_0x4ab704(0x9f)),_0x12c8b7=_0x23041f(_0x15b208);if(!_0x15b208[_0x4ab704(0x9b)]&&_0x12c8b7[_0x4ab704(0x9b)]){const {initEnv:_0x171feb}=await import(_0x4ab704(0x76));_0x171feb(_0x12c8b7[_0x4ab704(0x9b)]);}if(_0x12c8b7[_0x4ab704(0x8d)]?.[_0x4ab704(0x9e)]||_0x12c8b7['raw']?.['userDomain']||_0x12c8b7[_0x4ab704(0x8d)]?.[_0x4ab704(0xa2)]){const {initDomains:_0xb04bec}=await import(_0x4ab704(0xa3));_0xb04bec({'apiDomain':_0x12c8b7[_0x4ab704(0x8d)][_0x4ab704(0x9e)]||undefined,'userDomain':_0x12c8b7[_0x4ab704(0x8d)]['userDomain']||undefined,'runtimeDomain':_0x12c8b7[_0x4ab704(0x8d)][_0x4ab704(0xa2)]||undefined});}if(!_0x4ac945){if(_0x15b208['help']){printServiceHelp(_0x2d7d88);return;}if(_0x40ff78[_0x4ab704(0x77)])_0x4ac945=_0x40ff78['defaultCommand'];else{if(_0x40ff78[_0x4ab704(0x7e)]){await dispatchDeclarative(_0x40ff78['wildcardDef'],_0x2d7d88,'',[],_0x15b208,_0x12c8b7);return;}else{printServiceHelp(_0x2d7d88);return;}}}const _0x1ff70b=resolveDeprecatedSubcommand(_0x2d7d88,_0x4ac945);if(_0x1ff70b){const _0x2f1e2f=CLI_BIN_NAME+'\x20'+_0x2d7d88+'\x20'+_0x4ac945,_0x3ebef7=CLI_BIN_NAME+'\x20'+_0x2d7d88+'\x20'+_0x1ff70b;console['error'](_0x4ab704(0xa1)+_0x2f1e2f+_0x4ab704(0x81)+_0x3ebef7+'`;\x20prefer\x20`'+_0x3ebef7+'`\x20in\x20new\x20scripts.\x0a'),_0x4ac945=_0x1ff70b;}if(_0x15b208[_0x4ab704(0x7d)]&&!findDefinition(_0x2d7d88,_0x4ac945)){printServiceHelp(_0x2d7d88);return;}{let _0x9b9205=findDefinition(_0x2d7d88,_0x4ac945),_0x4f9563=cli[_0x4ab704(0xa0)]['slice'](0x2);if(!_0x9b9205){if(_0x40ff78[_0x4ab704(0x7e)]){if(_0x15b208[_0x4ab704(0x7d)]){console['log'](generateCommandHelp(_0x40ff78[_0x4ab704(0x7e)]));return;}_0x9b9205=_0x40ff78[_0x4ab704(0x7e)],_0x4f9563=[_0x4ac945,...cli[_0x4ab704(0xa0)][_0x4ab704(0x82)](0x2)];}else{printServiceHelp(_0x2d7d88),await handleErrorAsync(CliErrors[_0x4ab704(0x80)](_0x2d7d88+'\x20'+_0x4ac945));return;}}if(_0x15b208[_0x4ab704(0x7d)]){console[_0x4ab704(0x7c)](generateCommandHelp(_0x9b9205));return;}await dispatchDeclarative(_0x9b9205,_0x2d7d88,_0x4ac945,_0x4f9563,_0x15b208,_0x12c8b7);}}async function dispatchDeclarative(_0x24d714,_0x37002c,_0x295c92,_0x11f7ad,_0x3c660b,_0x1a5ee1){const _0x25ac65=a12_0x2e4312,_0x50ec60=Date[_0x25ac65(0x88)]();let _0xbd04c5;try{await runCommand(_0x24d714,createPipelineEnv(_0x1a5ee1,_0x3c660b,_0x11f7ad));}catch(_0x314365){_0xbd04c5=_0x314365;}await reportCommandTrace({'service':_0x37002c,'command':_0x295c92,'flags':_0x3c660b,'durationMs':Date[_0x25ac65(0x88)]()-_0x50ec60,'error':_0xbd04c5});if(_0xbd04c5)await handleErrorAsync(_0xbd04c5);}function printServiceHelp(_0x325b16){const _0x35e7fd=a12_0x2e4312;console[_0x35e7fd(0x7c)](generateServiceHelp(_0x325b16));}async function handleErrorAsync(_0x6e54ba){const _0x4bcd7f=a12_0x2e4312;if(_0x6e54ba instanceof Error&&_0x6e54ba[_0x4bcd7f(0x84)]==='ExitPromptError')return process[_0x4bcd7f(0x87)][_0x4bcd7f(0x86)](_0x4bcd7f(0x93)),await exitWithOtelShutdown(0x0);if(_0x6e54ba instanceof CliError){if(_0x6e54ba[_0x4bcd7f(0x8e)]==='cancelled')return process['stderr'][_0x4bcd7f(0x86)]('\x0a'+_0x6e54ba[_0x4bcd7f(0x8b)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x4bcd7f(0xa5)](_0x4bcd7f(0x7a)+_0x6e54ba['message']);if(_0x6e54ba[_0x4bcd7f(0x8c)])console['error'](_0x4bcd7f(0x91)+_0x6e54ba[_0x4bcd7f(0x8c)]);return await exitWithOtelShutdown(_0x6e54ba[_0x4bcd7f(0x9a)]);}return console['error'](_0x4bcd7f(0x95),_0x6e54ba),await exitWithOtelShutdown(0x1);}
2
+ const a12_0x4fd9a0=a12_0x4743;(function(_0x347c0f,_0x41ca81){const _0x40ed67=a12_0x4743,_0x4b22ac=_0x347c0f();while(!![]){try{const _0x538439=-parseInt(_0x40ed67(0x156))/0x1+parseInt(_0x40ed67(0x169))/0x2*(-parseInt(_0x40ed67(0x154))/0x3)+-parseInt(_0x40ed67(0x145))/0x4+-parseInt(_0x40ed67(0x165))/0x5*(parseInt(_0x40ed67(0x14d))/0x6)+parseInt(_0x40ed67(0x142))/0x7+parseInt(_0x40ed67(0x164))/0x8*(parseInt(_0x40ed67(0x147))/0x9)+parseInt(_0x40ed67(0x167))/0xa;if(_0x538439===_0x41ca81)break;else _0x4b22ac['push'](_0x4b22ac['shift']());}catch(_0x4a8055){_0x4b22ac['push'](_0x4b22ac['shift']());}}}(a12_0x577e,0x2212a));import a12_0x5e388d 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';function a12_0x4743(_0x31895f,_0x37f0ce){_0x31895f=_0x31895f-0x13f;const _0x577e2a=a12_0x577e();let _0x47430c=_0x577e2a[_0x31895f];return _0x47430c;}import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import('./cli-flags.js'))[a12_0x4fd9a0(0x163)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x4fd9a0(0x15a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,cli=a12_0x5e388d(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});function a12_0x577e(){const _0xeaf694=['stderr','wildcardDef','⚠\x20`','`\x20is\x20an\x20alias\x20of\x20`','apiDomain','167748NDYSQT','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','197583ypQefY','`\x20in\x20new\x20scripts.\x0a','input','write','unknown','raw','\x0aCancelled.\x0a','defaultCommand','`\x20has\x20been\x20moved\x20to\x20`','runtimeDomain','string','help','ExitPromptError','dynamicCliFlags','1744gyCKJk','10RHqZSJ','hint','7390400aUiAiO','error','6TzkcKG','./constant/env.js','`\x20in\x20v2.0.\x0a','Hint:\x20','`;\x20prefer\x20`','357434XVSaxX','exitCode','slice','496524OFHqZy','Unexpected\x20error:','693bLcLpQ','message','env','service','userDomain','name','533592FfnymD','log'];a12_0x577e=function(){return _0xeaf694;};return a12_0x577e();}registerOtelShutdownOnExit(),await run();async function run(){const _0xcd14be=a12_0x4fd9a0;let _0x345cd7=cli[_0xcd14be(0x158)][0x0],_0x9ebb54=cli['input'][0x1];const _0x45888c=cli['flags'];if(!_0x345cd7){await reportCliHelpTrace('global'),showHelp();return;}const _0x225fb8=deprecatedAliases[_0x345cd7];if(_0x225fb8&&!isKnownService(_0x345cd7)){const _0x1abece=_0x9ebb54?CLI_BIN_NAME+'\x20'+_0x345cd7+'\x20'+_0x9ebb54:CLI_BIN_NAME+'\x20'+_0x345cd7,_0x53dd36=CLI_BIN_NAME+'\x20'+_0x225fb8[_0xcd14be(0x14a)]+'\x20'+_0x225fb8['command'];console[_0xcd14be(0x168)]('⚠\x20`'+_0x1abece+_0xcd14be(0x15e)+_0x53dd36+_0xcd14be(0x13f)+_0xcd14be(0x155)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x345cd7)){await reportCliHelpTrace('unknown_service',{'service':_0x345cd7}),showHelp();return;}const _0x2eede6=getServiceEntry(_0x345cd7);if(_0x45888c[_0xcd14be(0x149)]&&typeof _0x45888c['env']===_0xcd14be(0x160)){const {initEnv:_0xdef4f5}=await import('./constant/env.js');_0xdef4f5(_0x45888c[_0xcd14be(0x149)]);}const {buildConfigFromFlags:_0x6f03b2}=await import('./context.js'),_0x935987=_0x6f03b2(_0x45888c);if(!_0x45888c['env']&&_0x935987[_0xcd14be(0x149)]){const {initEnv:_0x5ce796}=await import(_0xcd14be(0x16a));_0x5ce796(_0x935987[_0xcd14be(0x149)]);}if(_0x935987[_0xcd14be(0x15b)]?.[_0xcd14be(0x153)]||_0x935987['raw']?.[_0xcd14be(0x14b)]||_0x935987[_0xcd14be(0x15b)]?.[_0xcd14be(0x15f)]){const {initDomains:_0x238e77}=await import('./constant/domain.js');_0x238e77({'apiDomain':_0x935987[_0xcd14be(0x15b)][_0xcd14be(0x153)]||undefined,'userDomain':_0x935987[_0xcd14be(0x15b)][_0xcd14be(0x14b)]||undefined,'runtimeDomain':_0x935987['raw'][_0xcd14be(0x15f)]||undefined});}if(!_0x9ebb54){if(_0x45888c[_0xcd14be(0x161)]){printServiceHelp(_0x345cd7);return;}if(_0x2eede6[_0xcd14be(0x15d)])_0x9ebb54=_0x2eede6[_0xcd14be(0x15d)];else{if(_0x2eede6['wildcardDef']){await dispatchDeclarative(_0x2eede6[_0xcd14be(0x150)],_0x345cd7,'',[],_0x45888c,_0x935987);return;}else{printServiceHelp(_0x345cd7);return;}}}const _0x28cf0d=resolveDeprecatedSubcommand(_0x345cd7,_0x9ebb54);if(_0x28cf0d){const _0x5ba202=CLI_BIN_NAME+'\x20'+_0x345cd7+'\x20'+_0x9ebb54,_0x4eb273=CLI_BIN_NAME+'\x20'+_0x345cd7+'\x20'+_0x28cf0d;console[_0xcd14be(0x168)](_0xcd14be(0x151)+_0x5ba202+_0xcd14be(0x152)+_0x4eb273+_0xcd14be(0x141)+_0x4eb273+_0xcd14be(0x157)),_0x9ebb54=_0x28cf0d;}if(_0x45888c[_0xcd14be(0x161)]&&!findDefinition(_0x345cd7,_0x9ebb54)){printServiceHelp(_0x345cd7);return;}{let _0xc399d4=findDefinition(_0x345cd7,_0x9ebb54),_0x246193=cli[_0xcd14be(0x158)][_0xcd14be(0x144)](0x2);if(!_0xc399d4){if(_0x2eede6[_0xcd14be(0x150)]){if(_0x45888c[_0xcd14be(0x161)]){console[_0xcd14be(0x14e)](generateCommandHelp(_0x2eede6[_0xcd14be(0x150)]));return;}_0xc399d4=_0x2eede6[_0xcd14be(0x150)],_0x246193=[_0x9ebb54,...cli[_0xcd14be(0x158)]['slice'](0x2)];}else{printServiceHelp(_0x345cd7),await handleErrorAsync(CliErrors['unknownCommand'](_0x345cd7+'\x20'+_0x9ebb54));return;}}if(_0x45888c[_0xcd14be(0x161)]){console[_0xcd14be(0x14e)](generateCommandHelp(_0xc399d4));return;}await dispatchDeclarative(_0xc399d4,_0x345cd7,_0x9ebb54,_0x246193,_0x45888c,_0x935987);}}async function dispatchDeclarative(_0x22c399,_0x1abed6,_0x3f61ef,_0x3a90d0,_0x3c9626,_0x2c2185){const _0x2aa4cd=Date['now']();let _0x233535;try{await runCommand(_0x22c399,createPipelineEnv(_0x2c2185,_0x3c9626,_0x3a90d0));}catch(_0x77952){_0x233535=_0x77952;}await reportCommandTrace({'service':_0x1abed6,'command':_0x3f61ef,'flags':_0x3c9626,'durationMs':Date['now']()-_0x2aa4cd,'error':_0x233535});if(_0x233535)await handleErrorAsync(_0x233535);}function printServiceHelp(_0x53425b){const _0x59fd46=a12_0x4fd9a0;console[_0x59fd46(0x14e)](generateServiceHelp(_0x53425b));}async function handleErrorAsync(_0x547435){const _0x2c2ea7=a12_0x4fd9a0;if(_0x547435 instanceof Error&&_0x547435[_0x2c2ea7(0x14c)]===_0x2c2ea7(0x162))return process['stderr'][_0x2c2ea7(0x159)](_0x2c2ea7(0x15c)),await exitWithOtelShutdown(0x0);if(_0x547435 instanceof CliError){if(_0x547435['code']==='cancelled')return process[_0x2c2ea7(0x14f)][_0x2c2ea7(0x159)]('\x0a'+_0x547435[_0x2c2ea7(0x148)]+'\x0a'),await exitWithOtelShutdown(0x0);console['error']('Error:\x20'+_0x547435[_0x2c2ea7(0x148)]);if(_0x547435[_0x2c2ea7(0x166)])console['error'](_0x2c2ea7(0x140)+_0x547435[_0x2c2ea7(0x166)]);return await exitWithOtelShutdown(_0x547435[_0x2c2ea7(0x143)]);}return console[_0x2c2ea7(0x168)](_0x2c2ea7(0x146),_0x547435),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a13_0x420c89=a13_0x5f56;(function(_0x21d916,_0x458c8b){const _0x34b043=a13_0x5f56,_0x373e49=_0x21d916();while(!![]){try{const _0x2f925a=-parseInt(_0x34b043(0x1de))/0x1+parseInt(_0x34b043(0x1d0))/0x2+parseInt(_0x34b043(0x1d9))/0x3*(-parseInt(_0x34b043(0x1ef))/0x4)+-parseInt(_0x34b043(0x1e0))/0x5+-parseInt(_0x34b043(0x1ca))/0x6+parseInt(_0x34b043(0x1af))/0x7*(parseInt(_0x34b043(0x1b6))/0x8)+-parseInt(_0x34b043(0x1c8))/0x9*(-parseInt(_0x34b043(0x1bc))/0xa);if(_0x2f925a===_0x458c8b)break;else _0x373e49['push'](_0x373e49['shift']());}catch(_0x32617c){_0x373e49['push'](_0x373e49['shift']());}}}(a13_0x341c,0xd8e9c));import a13_0x285f73 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a13_0x341c(){const _0x6d009d=['api','\x20doc(s)\x20failed','succeed','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','./docs','\x20dataset(s)','--datasetcode\x20cannot\x20be\x20empty.','padStart','message','4ZyrFUD','cookie','\x20dataset(s)\x1b[0m','):\x20','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','4424YhcXDK','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','error','\x20of\x20','\x20doc(s)\x20in\x20','generate','appCode','7288mnhIEr','trim','fail','join','Fetched\x20','parse','34220570tVnljH','\x20failed','str','split','\x20succeeded,\x20','...','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','\x1b[0m','has','Output\x20directory\x20(default:\x20./docs)','.md','stdout','9fJoOFd','\x1b[90m*\x20Generating\x20docs\x20for:\x20','6596184UDHqbX','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','Doc\x20generation\x20complete:\x20','params','datasetCode','Doc\x20generation:\x20','1824890XUJYns','isArray','datasetcode','start','Fetching\x20dataset\x20list\x20for\x20','Failed\x20to\x20fetch\x20datasets','write','\x20file(s)','validation','3457299UkUPLT','object','\x0d\x20\x20[','length','\x20\x20•\x20','96558HWqvfN','output','8367115pAgBXf','must\x20be\x20a\x20JSON\x20object','map','filter','success','string'];a13_0x341c=function(){return _0x6d009d;};return a13_0x341c();}function a13_0x5f56(_0x28be18,_0x207f8b){_0x28be18=_0x28be18-0x1ad;const _0x341c1e=a13_0x341c();let _0x5f5688=_0x341c1e[_0x28be18];return _0x5f5688;}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':a13_0x420c89(0x1e6),'command':a13_0x420c89(0x1b4),'description':a13_0x420c89(0x1cb),'risk':a13_0x420c89(0x1d6),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x420c89(0x1df),'type':a13_0x420c89(0x1e5),'description':a13_0x420c89(0x1c5)},{'name':a13_0x420c89(0x1d2),'type':a13_0x420c89(0x1e5),'description':a13_0x420c89(0x1c2)},{'name':a13_0x420c89(0x1cd),'type':'string','description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x4a36bb){const _0x4ad018=a13_0x420c89,_0xd05dc3=_0x4a36bb[_0x4ad018(0x1be)](_0x4ad018(0x1df))||_0x4ad018(0x1ea),_0x92af93=_0x4a36bb[_0x4ad018(0x1be)]('datasetcode'),_0x495467=_0x4a36bb[_0x4ad018(0x1be)](_0x4ad018(0x1cd));let _0x38addd;if(_0x495467)try{_0x38addd=JSON[_0x4ad018(0x1bb)](_0x495467);if(typeof _0x38addd!==_0x4ad018(0x1da)||_0x38addd===null||Array[_0x4ad018(0x1d1)](_0x38addd))throw new Error(_0x4ad018(0x1e1));}catch(_0x13b907){throw CliErrors[_0x4ad018(0x1d8)]('Invalid\x20--params:\x20'+(_0x13b907 instanceof Error?_0x13b907[_0x4ad018(0x1ee)]:String(_0x13b907)),_0x4ad018(0x1ae));}let _0x232bee;if(_0x92af93){const _0xce64d4=_0x92af93[_0x4ad018(0x1bf)](',')[_0x4ad018(0x1e2)](_0x51c6bb=>_0x51c6bb[_0x4ad018(0x1b7)]())['filter'](_0x78cfc2=>_0x78cfc2['length']>0x0);if(_0xce64d4[_0x4ad018(0x1dc)]===0x0)throw CliErrors[_0x4ad018(0x1d8)](_0x4ad018(0x1ec));_0x232bee=new Set(_0xce64d4),writeCliSideChannelLine(_0x4ad018(0x1c9)+_0xce64d4['join'](',\x20')+'\x1b[0m');}const _0x1bfa5e=a13_0x285f73(_0x4ad018(0x1d4)+_0x4a36bb['appCode']+_0x4ad018(0x1c1))[_0x4ad018(0x1d3)]();let _0xfcbf5f;try{({configArray:_0xfcbf5f}=await fetchModelList(_0x4a36bb[_0x4ad018(0x1b5)],_0x4a36bb[_0x4ad018(0x1f0)]),_0x1bfa5e[_0x4ad018(0x1e8)](_0x4ad018(0x1ba)+_0xfcbf5f[_0x4ad018(0x1dc)]+_0x4ad018(0x1eb)));}catch(_0x58732a){_0x1bfa5e[_0x4ad018(0x1b8)](_0x4ad018(0x1d5));throw _0x58732a;}if(_0xfcbf5f[_0x4ad018(0x1dc)]===0x0)return writeCliSideChannelLine('!\x20No\x20datasets\x20found.'),{'ok':!![]};let _0x3a36ad=_0xfcbf5f;if(_0x232bee){_0x3a36ad=_0xfcbf5f[_0x4ad018(0x1e3)](_0x2b9014=>_0x232bee[_0x4ad018(0x1c4)](_0x2b9014['datasetCode']));const _0x28aaa2=[..._0x232bee][_0x4ad018(0x1e3)](_0x4d2bf9=>!_0xfcbf5f['some'](_0x575fd4=>_0x575fd4[_0x4ad018(0x1ce)]===_0x4d2bf9));_0x28aaa2['length']>0x0&&writeCliSideChannelLine(_0x4ad018(0x1e9)+_0x28aaa2['join'](',\x20')+_0x4ad018(0x1c3));if(_0x3a36ad[_0x4ad018(0x1dc)]===0x0)throw CliErrors['validation'](_0x4ad018(0x1b0)+[..._0x232bee][_0x4ad018(0x1b9)](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0x3a36ad['length']+_0x4ad018(0x1b2)+_0xfcbf5f['length']+_0x4ad018(0x1f1));}let _0x3a84c1=0x0;const _0x24197f=await generateDatasetDocs(_0x3a36ad,_0x4a36bb[_0x4ad018(0x1b5)],_0x4a36bb[_0x4ad018(0x1f0)],_0xd05dc3,(_0x5157ac,_0x428bb3,_0x9ddf63)=>{const _0x376c29=_0x4ad018;_0x3a84c1=_0x5157ac,process[_0x376c29(0x1c7)]['write'](_0x376c29(0x1db)+String(_0x5157ac)[_0x376c29(0x1ed)](String(_0x428bb3)[_0x376c29(0x1dc)])+'/'+_0x428bb3+']\x20'+_0x9ddf63+_0x376c29(0x1c6));},_0x38addd);if(_0x3a84c1>0x0)process[_0x4ad018(0x1c7)][_0x4ad018(0x1d6)]('\x0a');const _0x5250df=_0x24197f[_0x4ad018(0x1e3)](_0x101b31=>_0x101b31['success'])[_0x4ad018(0x1dc)],_0x5777a9=_0x24197f[_0x4ad018(0x1e3)](_0x422f51=>!_0x422f51[_0x4ad018(0x1e4)])[_0x4ad018(0x1dc)];writeCliSideChannelLine(''),writeCliSideChannelLine('✓\x20Generated\x20'+_0x5250df+_0x4ad018(0x1b3)+_0xd05dc3);if(_0x5777a9>0x0){writeCliSideChannelLine('!\x20'+_0x5777a9+_0x4ad018(0x1e7));for(const _0x15d467 of _0x24197f['filter'](_0x3db194=>!_0x3db194[_0x4ad018(0x1e4)])){writeCliSideChannelLine(_0x4ad018(0x1dd)+_0x15d467['datasetName']+'\x20('+_0x15d467[_0x4ad018(0x1ce)]+_0x4ad018(0x1ad)+_0x15d467[_0x4ad018(0x1b1)]);}}return{'ok':_0x5777a9===0x0,'message':_0x5777a9>0x0?_0x4ad018(0x1cf)+_0x5250df+_0x4ad018(0x1c0)+_0x5777a9+_0x4ad018(0x1bd):_0x4ad018(0x1cc)+_0x5250df+_0x4ad018(0x1d7)};}};
1
+ const a13_0x549e33=a13_0x4832;function a13_0x4832(_0x2798fa,_0x1b8381){_0x2798fa=_0x2798fa-0x1b7;const _0x2af27c=a13_0x2af2();let _0x48325a=_0x2af27c[_0x2798fa];return _0x48325a;}(function(_0x1a8d00,_0x175364){const _0x50b1cf=a13_0x4832,_0x3f1911=_0x1a8d00();while(!![]){try{const _0x4d50dd=parseInt(_0x50b1cf(0x1ea))/0x1*(-parseInt(_0x50b1cf(0x1e8))/0x2)+parseInt(_0x50b1cf(0x1f9))/0x3*(-parseInt(_0x50b1cf(0x1c1))/0x4)+parseInt(_0x50b1cf(0x1c6))/0x5+-parseInt(_0x50b1cf(0x1bd))/0x6+-parseInt(_0x50b1cf(0x1e9))/0x7*(parseInt(_0x50b1cf(0x1be))/0x8)+parseInt(_0x50b1cf(0x1d4))/0x9*(-parseInt(_0x50b1cf(0x1eb))/0xa)+parseInt(_0x50b1cf(0x1cb))/0xb*(parseInt(_0x50b1cf(0x1d8))/0xc);if(_0x4d50dd===_0x175364)break;else _0x3f1911['push'](_0x3f1911['shift']());}catch(_0x5d5c7e){_0x3f1911['push'](_0x3f1911['shift']());}}}(a13_0x2af2,0x3fc39));import a13_0x1aa410 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';function a13_0x2af2(){const _0x4aefe9=['60DdYLqt','cookie','succeed','Fetched\x20','\x1b[90m*\x20Generating\x20docs\x20for:\x20','api','datasetCode','809226OPCjRY','42368NGJqwW','str','\x20dataset(s)','59544yjFAvI','isArray','write','Output\x20directory\x20(default:\x20./docs)','validation','1773695NoDvYu','success','\x20of\x20','appCode','must\x20be\x20a\x20JSON\x20object','11209NKnXeE','...','\x20failed','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','error','\x20file(s)','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','\x1b[90m*\x20Filtered\x20','\x0d\x20\x20[','36MhACcK','Fetching\x20dataset\x20list\x20for\x20','Invalid\x20--params:\x20','.md','13236QCRgUh','string','./docs','generate','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','some','join','✓\x20Generated\x20','filter','start','datasetcode','\x20\x20•\x20','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','params','\x20dataset(s)\x1b[0m','\x20doc(s)\x20failed','15518YtSqFz','133WzQpqO','44eKqwAQ','857270gCUtsz','\x20doc(s)\x20in\x20','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','--datasetcode\x20cannot\x20be\x20empty.','output','\x1b[0m','object','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','message','length','stdout','padStart','fail','Doc\x20generation\x20complete:\x20'];a13_0x2af2=function(){return _0x4aefe9;};return a13_0x2af2();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':a13_0x549e33(0x1bb),'command':a13_0x549e33(0x1db),'description':a13_0x549e33(0x1ed),'risk':a13_0x549e33(0x1c3),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x549e33(0x1ef),'type':'string','description':a13_0x549e33(0x1c4)},{'name':a13_0x549e33(0x1e2),'type':'string','description':a13_0x549e33(0x1f2)},{'name':a13_0x549e33(0x1e5),'type':a13_0x549e33(0x1d9),'description':a13_0x549e33(0x1d1)}],async 'execute'(_0x3770b6){const _0x3a0984=a13_0x549e33,_0x50a7a3=_0x3770b6['str'](_0x3a0984(0x1ef))||_0x3a0984(0x1da),_0x54aa2b=_0x3770b6[_0x3a0984(0x1bf)]('datasetcode'),_0x581715=_0x3770b6[_0x3a0984(0x1bf)](_0x3a0984(0x1e5));let _0x310cf4;if(_0x581715)try{_0x310cf4=JSON['parse'](_0x581715);if(typeof _0x310cf4!==_0x3a0984(0x1f1)||_0x310cf4===null||Array[_0x3a0984(0x1c2)](_0x310cf4))throw new Error(_0x3a0984(0x1ca));}catch(_0x54744b){throw CliErrors[_0x3a0984(0x1c5)](_0x3a0984(0x1d6)+(_0x54744b instanceof Error?_0x54744b[_0x3a0984(0x1f3)]:String(_0x54744b)),_0x3a0984(0x1dc));}let _0x4ab439;if(_0x54aa2b){const _0x3f1d68=_0x54aa2b['split'](',')['map'](_0x104a59=>_0x104a59['trim']())[_0x3a0984(0x1e0)](_0x43ca42=>_0x43ca42[_0x3a0984(0x1f4)]>0x0);if(_0x3f1d68[_0x3a0984(0x1f4)]===0x0)throw CliErrors[_0x3a0984(0x1c5)](_0x3a0984(0x1ee));_0x4ab439=new Set(_0x3f1d68),writeCliSideChannelLine(_0x3a0984(0x1ba)+_0x3f1d68[_0x3a0984(0x1de)](',\x20')+'\x1b[0m');}const _0x127e3a=a13_0x1aa410(_0x3a0984(0x1d5)+_0x3770b6[_0x3a0984(0x1c9)]+_0x3a0984(0x1cc))[_0x3a0984(0x1e1)]();let _0x4ea095;try{({configArray:_0x4ea095}=await fetchModelList(_0x3770b6[_0x3a0984(0x1c9)],_0x3770b6[_0x3a0984(0x1b7)]),_0x127e3a[_0x3a0984(0x1b8)](_0x3a0984(0x1b9)+_0x4ea095[_0x3a0984(0x1f4)]+_0x3a0984(0x1c0)));}catch(_0x199eee){_0x127e3a[_0x3a0984(0x1f7)]('Failed\x20to\x20fetch\x20datasets');throw _0x199eee;}if(_0x4ea095['length']===0x0)return writeCliSideChannelLine('!\x20No\x20datasets\x20found.'),{'ok':!![]};let _0x32ec48=_0x4ea095;if(_0x4ab439){_0x32ec48=_0x4ea095[_0x3a0984(0x1e0)](_0x41a1a4=>_0x4ab439['has'](_0x41a1a4['datasetCode']));const _0x10338f=[..._0x4ab439][_0x3a0984(0x1e0)](_0x5ef20b=>!_0x4ea095[_0x3a0984(0x1dd)](_0x51ae08=>_0x51ae08[_0x3a0984(0x1bc)]===_0x5ef20b));_0x10338f[_0x3a0984(0x1f4)]>0x0&&writeCliSideChannelLine(_0x3a0984(0x1ce)+_0x10338f['join'](',\x20')+_0x3a0984(0x1f0));if(_0x32ec48[_0x3a0984(0x1f4)]===0x0)throw CliErrors[_0x3a0984(0x1c5)](_0x3a0984(0x1e4)+[..._0x4ab439][_0x3a0984(0x1de)](',\x20'));writeCliSideChannelLine(_0x3a0984(0x1d2)+_0x32ec48[_0x3a0984(0x1f4)]+_0x3a0984(0x1c8)+_0x4ea095[_0x3a0984(0x1f4)]+_0x3a0984(0x1e6));}let _0xe79b6f=0x0;const _0x286f2f=await generateDatasetDocs(_0x32ec48,_0x3770b6['appCode'],_0x3770b6['cookie'],_0x50a7a3,(_0x3cef4d,_0x1474b0,_0x2a6514)=>{const _0xf8da0c=_0x3a0984;_0xe79b6f=_0x3cef4d,process[_0xf8da0c(0x1f5)][_0xf8da0c(0x1c3)](_0xf8da0c(0x1d3)+String(_0x3cef4d)[_0xf8da0c(0x1f6)](String(_0x1474b0)['length'])+'/'+_0x1474b0+']\x20'+_0x2a6514+_0xf8da0c(0x1d7));},_0x310cf4);if(_0xe79b6f>0x0)process[_0x3a0984(0x1f5)][_0x3a0984(0x1c3)]('\x0a');const _0x3478bb=_0x286f2f[_0x3a0984(0x1e0)](_0x4a9e86=>_0x4a9e86[_0x3a0984(0x1c7)])['length'],_0x3673d1=_0x286f2f['filter'](_0x3fbcae=>!_0x3fbcae[_0x3a0984(0x1c7)])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x3a0984(0x1df)+_0x3478bb+_0x3a0984(0x1ec)+_0x50a7a3);if(_0x3673d1>0x0){writeCliSideChannelLine('!\x20'+_0x3673d1+_0x3a0984(0x1e7));for(const _0x5b5478 of _0x286f2f[_0x3a0984(0x1e0)](_0x11977c=>!_0x11977c[_0x3a0984(0x1c7)])){writeCliSideChannelLine(_0x3a0984(0x1e3)+_0x5b5478['datasetName']+'\x20('+_0x5b5478[_0x3a0984(0x1bc)]+'):\x20'+_0x5b5478[_0x3a0984(0x1cf)]);}}return{'ok':_0x3673d1===0x0,'message':_0x3673d1>0x0?'Doc\x20generation:\x20'+_0x3478bb+'\x20succeeded,\x20'+_0x3673d1+_0x3a0984(0x1cd):_0x3a0984(0x1f8)+_0x3478bb+_0x3a0984(0x1d0)};}};
@@ -1 +1 @@
1
- (function(_0x39f780,_0x488bfb){const _0x4b0ce9=a14_0x26d8,_0x33480e=_0x39f780();while(!![]){try{const _0x4cf129=-parseInt(_0x4b0ce9(0x11d))/0x1*(-parseInt(_0x4b0ce9(0x125))/0x2)+parseInt(_0x4b0ce9(0x11a))/0x3*(parseInt(_0x4b0ce9(0x124))/0x4)+-parseInt(_0x4b0ce9(0x121))/0x5*(-parseInt(_0x4b0ce9(0x11f))/0x6)+parseInt(_0x4b0ce9(0x11e))/0x7*(-parseInt(_0x4b0ce9(0x122))/0x8)+parseInt(_0x4b0ce9(0x11c))/0x9+parseInt(_0x4b0ce9(0x11b))/0xa+-parseInt(_0x4b0ce9(0x120))/0xb*(parseInt(_0x4b0ce9(0x123))/0xc);if(_0x4cf129===_0x488bfb)break;else _0x33480e['push'](_0x33480e['shift']());}catch(_0x46f6e3){_0x33480e['push'](_0x33480e['shift']());}}}(a14_0x525a,0xdb8a6));function a14_0x26d8(_0xdf7c8e,_0x995ef8){_0xdf7c8e=_0xdf7c8e-0x11a;const _0x525aba=a14_0x525a();let _0x26d8ca=_0x525aba[_0xdf7c8e];return _0x26d8ca;}import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';function a14_0x525a(){const _0x1a8183=['296130cniGfs','1342zjsUrt','40iyDNta','22928osmqmy','157308arxRaq','92RQUsWd','186QXHYkw','212001PcyWng','15202170RfoWpt','983907hwwnMN','5773INyfrx','4123nYUCuj'];a14_0x525a=function(){return _0x1a8183;};return a14_0x525a();}export const apiDefinitions=[apiList,apiPull,apiGenerate];
1
+ (function(_0x44ebcd,_0x45e960){const _0xd8baba=a14_0x2b9f,_0x279b66=_0x44ebcd();while(!![]){try{const _0x3daafb=-parseInt(_0xd8baba(0x78))/0x1+-parseInt(_0xd8baba(0x75))/0x2+parseInt(_0xd8baba(0x76))/0x3+-parseInt(_0xd8baba(0x74))/0x4+parseInt(_0xd8baba(0x73))/0x5*(parseInt(_0xd8baba(0x72))/0x6)+-parseInt(_0xd8baba(0x79))/0x7*(parseInt(_0xd8baba(0x77))/0x8)+parseInt(_0xd8baba(0x71))/0x9;if(_0x3daafb===_0x45e960)break;else _0x279b66['push'](_0x279b66['shift']());}catch(_0x55c141){_0x279b66['push'](_0x279b66['shift']());}}}(a14_0x3ccf,0x2f812));function a14_0x3ccf(){const _0x3704c3=['370850MkGPEC','75680xQwxQC','199416uKcpii','920226NdCZwR','85640mferDd','352489PDeVPA','189zOZKkN','4496832BonoJd','12lZcnVc'];a14_0x3ccf=function(){return _0x3704c3;};return a14_0x3ccf();}import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';function a14_0x2b9f(_0x53d197,_0x242038){_0x53d197=_0x53d197-0x71;const _0x3ccf8c=a14_0x3ccf();let _0x2b9fea=_0x3ccf8c[_0x53d197];return _0x2b9fea;}export const apiDefinitions=[apiList,apiPull,apiGenerate];
@@ -1 +1 @@
1
- const a15_0x2ad89e=a15_0xf51d;(function(_0x29f380,_0x2d12cf){const _0x1b99c1=a15_0xf51d,_0x2e1e0e=_0x29f380();while(!![]){try{const _0x12129f=parseInt(_0x1b99c1(0xb7))/0x1+parseInt(_0x1b99c1(0xb2))/0x2*(parseInt(_0x1b99c1(0xb6))/0x3)+parseInt(_0x1b99c1(0xae))/0x4*(-parseInt(_0x1b99c1(0xbd))/0x5)+parseInt(_0x1b99c1(0xb5))/0x6+-parseInt(_0x1b99c1(0xb0))/0x7+-parseInt(_0x1b99c1(0xad))/0x8*(-parseInt(_0x1b99c1(0xba))/0x9)+-parseInt(_0x1b99c1(0xaa))/0xa*(parseInt(_0x1b99c1(0xb9))/0xb);if(_0x12129f===_0x2d12cf)break;else _0x2e1e0e['push'](_0x2e1e0e['shift']());}catch(_0x20910d){_0x2e1e0e['push'](_0x2e1e0e['shift']());}}}(a15_0x3ff5,0x7e847));function a15_0xf51d(_0x13d854,_0x13d5ef){_0x13d854=_0x13d854-0xa8;const _0x3ff57e=a15_0x3ff5();let _0xf51d7c=_0x3ff57e[_0x13d854];return _0xf51d7c;}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_0x3ff5(){const _0x5840bc=['env','5180049TAwego','boolean','1387058hYoROI','name','rawFlags','1143558SAcTTh','3ZcwyXL','617997uSNEif','read','146542AFEJhB','8795646zAmsgK','push','cookie','15PkVpgr','list','appcode','global','appCode','production','isDefault','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','910JbliIv','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','api','8YhaQRa','11852mbtCab'];a15_0x3ff5=function(){return _0x5840bc;};return a15_0x3ff5();}export const apiList={'service':a15_0x2ad89e(0xac),'command':a15_0x2ad89e(0xbe),'description':a15_0x2ad89e(0xab),'risk':a15_0x2ad89e(0xb8),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x2ad89e(0xc0),'type':a15_0x2ad89e(0xb1),'description':a15_0x2ad89e(0xa9),'default':![]}],async 'execute'(_0x2b3f42){const _0x44952f=a15_0x2ad89e,_0x352395=_0x2b3f42[_0x44952f(0xb4)]['appcode']?String(_0x2b3f42['rawFlags']['appcode']):undefined,_0x323e5c=resolveTargetApps(_0x2b3f42,_0x352395);if(_0x323e5c){const _0x217bfb=[];for(const _0x2cc6f2 of _0x323e5c){const _0x3d2c45=_0x2cc6f2[_0x44952f(0xbc)]||_0x2b3f42[_0x44952f(0xbc)],_0x25ca09=_0x2cc6f2[_0x44952f(0xaf)]||_0x44952f(0xc2);initEnv(_0x25ca09);const {configArray:_0x99faa1}=await fetchModelList(_0x2cc6f2[_0x44952f(0xbf)],_0x3d2c45);_0x217bfb[_0x44952f(0xbb)](..._0x99faa1['map'](_0xe71f53=>({..._0xe71f53,'_appName':_0x2cc6f2[_0x44952f(0xb3)],'_appCode':_0x2cc6f2['appcode'],'_env':_0x25ca09,'_isDefault':_0x2cc6f2[_0x44952f(0xa8)]})));}return{'ok':!![],'data':_0x217bfb};}const {configArray:_0x1f17bf}=await fetchModelList(_0x2b3f42[_0x44952f(0xc1)],_0x2b3f42['cookie']);return{'ok':!![],'data':_0x1f17bf};}};
1
+ const a15_0x2bd055=a15_0x1128;(function(_0x418506,_0x2cff5b){const _0xd286c=a15_0x1128,_0x12ccc0=_0x418506();while(!![]){try{const _0x56c97b=-parseInt(_0xd286c(0x1d1))/0x1+parseInt(_0xd286c(0x1cf))/0x2*(-parseInt(_0xd286c(0x1c2))/0x3)+parseInt(_0xd286c(0x1ce))/0x4+-parseInt(_0xd286c(0x1cc))/0x5+parseInt(_0xd286c(0x1d3))/0x6*(-parseInt(_0xd286c(0x1d2))/0x7)+parseInt(_0xd286c(0x1cb))/0x8+parseInt(_0xd286c(0x1c7))/0x9;if(_0x56c97b===_0x2cff5b)break;else _0x12ccc0['push'](_0x12ccc0['shift']());}catch(_0x46076b){_0x12ccc0['push'](_0x12ccc0['shift']());}}}(a15_0x20a2,0x46f81));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x1128(_0x565571,_0x501e8c){_0x565571=_0x565571-0x1c1;const _0x20a261=a15_0x20a2();let _0x11288e=_0x20a261[_0x565571];return _0x11288e;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';function a15_0x20a2(){const _0x5e22df=['global','name','5850180kxebYS','rawFlags','appcode','cookie','2473520inTwDT','1550640tRzwva','isDefault','2211888ojOQyP','12552aZrcOt','appCode','86918MbxQWS','77VMBVZK','281958Wkasab','map','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','push','production','147mVzGHR','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','boolean'];a15_0x20a2=function(){return _0x5e22df;};return a15_0x20a2();}export const apiList={'service':'api','command':'list','description':a15_0x2bd055(0x1d5),'risk':'read','requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x2bd055(0x1c5),'type':a15_0x2bd055(0x1c4),'description':a15_0x2bd055(0x1c3),'default':![]}],async 'execute'(_0x49587b){const _0x477929=a15_0x2bd055,_0x1df3ea=_0x49587b[_0x477929(0x1c8)][_0x477929(0x1c9)]?String(_0x49587b['rawFlags'][_0x477929(0x1c9)]):undefined,_0x374d25=resolveTargetApps(_0x49587b,_0x1df3ea);if(_0x374d25){const _0x39230c=[];for(const _0xa8cca of _0x374d25){const _0x2bc7be=_0xa8cca[_0x477929(0x1ca)]||_0x49587b[_0x477929(0x1ca)],_0x136a13=_0xa8cca['env']||_0x477929(0x1c1);initEnv(_0x136a13);const {configArray:_0x230643}=await fetchModelList(_0xa8cca[_0x477929(0x1c9)],_0x2bc7be);_0x39230c[_0x477929(0x1d6)](..._0x230643[_0x477929(0x1d4)](_0x5baebb=>({..._0x5baebb,'_appName':_0xa8cca[_0x477929(0x1c6)],'_appCode':_0xa8cca['appcode'],'_env':_0x136a13,'_isDefault':_0xa8cca[_0x477929(0x1cd)]})));}return{'ok':!![],'data':_0x39230c};}const {configArray:_0x4ff0cd}=await fetchModelList(_0x49587b[_0x477929(0x1d0)],_0x49587b[_0x477929(0x1ca)]);return{'ok':!![],'data':_0x4ff0cd};}};
@@ -1 +1 @@
1
- function a16_0x28d1(){const _0x27516a=['Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','client','cookie','boolean','.ts','-api','appcode','output','11426800CcFwcq','write','pull','954150CckRgO','message','Pulling\x20','slice','env','3050943CzFIWQ','api','succeed','\x20dataset(s)\x20→\x20','join','Done:\x20','Pulled\x20','\x20failed','str','isDefault','clientFilePath','string','production','Pulling\x20API\x20config\x20for\x20','start','6484248KiufiC','565844sqPumk','split','modelCount',')...','\x20succeeded,\x20','646332aVvgAS','name','\x20model(s)','length','Failed:\x20','...','30DbhBVs','rawFlags','appCode','18MzYRyO','apiDir','\x20\x20•\x20','2683260YcuuEn'];a16_0x28d1=function(){return _0x27516a;};return a16_0x28d1();}function a16_0x47f1(_0x4ef54b,_0x407a31){_0x4ef54b=_0x4ef54b-0x131;const _0x28d14d=a16_0x28d1();let _0x47f1b8=_0x28d14d[_0x4ef54b];return _0x47f1b8;}const a16_0x5b41e9=a16_0x47f1;(function(_0x4306ca,_0x13185b){const _0x40709e=a16_0x47f1,_0x1aad6b=_0x4306ca();while(!![]){try{const _0x227726=-parseInt(_0x40709e(0x154))/0x1+parseInt(_0x40709e(0x160))/0x2+parseInt(_0x40709e(0x13a))/0x3+-parseInt(_0x40709e(0x14f))/0x4*(parseInt(_0x40709e(0x15a))/0x5)+parseInt(_0x40709e(0x15d))/0x6*(parseInt(_0x40709e(0x13f))/0x7)+-parseInt(_0x40709e(0x137))/0x8+parseInt(_0x40709e(0x14e))/0x9;if(_0x227726===_0x13185b)break;else _0x1aad6b['push'](_0x1aad6b['shift']());}catch(_0x2787de){_0x1aad6b['push'](_0x1aad6b['shift']());}}}(a16_0x28d1,0xba95b));import a16_0x32a719 from'ora';import a16_0x23d91c 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':'api','command':a16_0x5b41e9(0x139),'description':a16_0x5b41e9(0x161)+DEFAULT_API_DIR+'/)','risk':a16_0x5b41e9(0x138),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x5b41e9(0x136),'type':a16_0x5b41e9(0x14a),'description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':'global','type':a16_0x5b41e9(0x132),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x33edb0){const _0x97b030=a16_0x5b41e9,_0x426a84=_0x33edb0[_0x97b030(0x15b)][_0x97b030(0x135)]?String(_0x33edb0[_0x97b030(0x15b)]['appcode']):undefined,_0x3d3da0=_0x33edb0[_0x97b030(0x147)](_0x97b030(0x136))||undefined,_0x3f8f1f=resolveTargetApps(_0x33edb0,_0x426a84);if(_0x3f8f1f){let _0x159442=0x0,_0x3a0e10=0x0;for(const _0x27ff42 of _0x3f8f1f){const _0x45a905=_0x27ff42[_0x97b030(0x131)]||_0x33edb0[_0x97b030(0x131)],_0x49b5b0=_0x27ff42[_0x97b030(0x13e)]||_0x97b030(0x14b);initEnv(_0x49b5b0);const _0x119f6a=_0x27ff42[_0x97b030(0x15e)]||_0x3d3da0||_0x33edb0[_0x97b030(0x15e)]||DEFAULT_API_DIR,_0x46f337=_0x27ff42[_0x97b030(0x148)]?'':_0x27ff42[_0x97b030(0x155)]||_0x27ff42['appcode'],_0x1e5d78=a16_0x32a719(_0x97b030(0x13c)+_0x27ff42['name']+'\x20('+_0x27ff42['appcode']+_0x97b030(0x152))[_0x97b030(0x14d)]();try{const {configArray:_0x960401}=await fetchModelList(_0x27ff42[_0x97b030(0x135)],_0x45a905),_0xd2fd49=await generateApiFile(_0x960401,_0x46f337,_0x27ff42[_0x97b030(0x135)],_0x27ff42[_0x97b030(0x148)],_0x49b5b0,_0x119f6a,_0x27ff42[_0x97b030(0x155)]);_0x1e5d78['succeed'](_0x27ff42[_0x97b030(0x155)]+':\x20'+_0x960401[_0x97b030(0x157)]+_0x97b030(0x142)+_0xd2fd49[_0x97b030(0x151)]+_0x97b030(0x156)),writeCliSideChannelLine(_0x97b030(0x15f)+_0xd2fd49['apiFilePath']),writeCliSideChannelLine('\x20\x20•\x20'+_0xd2fd49[_0x97b030(0x149)]),_0x159442++;}catch(_0x35a25f){_0x1e5d78['fail'](_0x27ff42['name']+':\x20'+(_0x35a25f instanceof Error?_0x35a25f[_0x97b030(0x13b)]:String(_0x35a25f))),_0x3a0e10++;}}writeCliSideChannelLine('');if(_0x3a0e10>0x0)writeCliSideChannelLine('!\x20'+_0x3a0e10+'\x20app(s)\x20failed');return{'ok':_0x3a0e10===0x0,'message':_0x97b030(0x144)+_0x159442+_0x97b030(0x153)+_0x3a0e10+_0x97b030(0x146)};}const _0xc79ab4=_0x426a84&&_0x426a84['includes']('-')?_0x426a84[_0x97b030(0x150)]('-')[_0x97b030(0x13d)](0x1)['join']('-'):'',_0x47957c=_0x3d3da0||_0x33edb0[_0x97b030(0x15e)]||DEFAULT_API_DIR,_0x2b683b=!_0x426a84,_0x1e038d=a16_0x32a719(_0x97b030(0x14c)+_0x33edb0[_0x97b030(0x15c)]+_0x97b030(0x159))[_0x97b030(0x14d)]();try{const {configArray:_0x43e885}=await fetchModelList(_0x33edb0[_0x97b030(0x15c)],_0x33edb0[_0x97b030(0x131)]),_0x3c0018=await generateApiFile(_0x43e885,_0xc79ab4,_0x33edb0['appCode'],_0x2b683b,getEnv(),_0x47957c);_0x1e038d[_0x97b030(0x141)](_0x97b030(0x145)+_0x43e885[_0x97b030(0x157)]+'\x20dataset(s),\x20generated\x20'+_0x3c0018[_0x97b030(0x151)]+_0x97b030(0x156));const _0x506b11=_0xc79ab4?_0xc79ab4+_0x97b030(0x134):_0x97b030(0x140),_0x4d2a36=_0xc79ab4?_0xc79ab4+'-client':_0x97b030(0x162);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x23d91c[_0x97b030(0x143)](_0x47957c,_0x506b11+_0x97b030(0x133))),writeCliSideChannelLine(_0x97b030(0x15f)+a16_0x23d91c['join'](_0x47957c,_0x4d2a36+_0x97b030(0x133))),{'ok':!![],'data':{'datasetCount':_0x43e885[_0x97b030(0x157)],'modelCount':_0x3c0018[_0x97b030(0x151)]}};}catch(_0x422318){_0x1e038d['fail'](_0x97b030(0x158)+(_0x422318 instanceof Error?_0x422318['message']:String(_0x422318)));throw _0x422318;}}};
1
+ const a16_0x8c10c2=a16_0x3c3c;(function(_0x1f5333,_0xce5d8f){const _0x52b406=a16_0x3c3c,_0x17704c=_0x1f5333();while(!![]){try{const _0x1f69e4=parseInt(_0x52b406(0x1d1))/0x1*(-parseInt(_0x52b406(0x1cc))/0x2)+-parseInt(_0x52b406(0x1f1))/0x3*(parseInt(_0x52b406(0x1d3))/0x4)+parseInt(_0x52b406(0x1da))/0x5*(-parseInt(_0x52b406(0x1db))/0x6)+parseInt(_0x52b406(0x1e8))/0x7+-parseInt(_0x52b406(0x1e2))/0x8*(-parseInt(_0x52b406(0x1d0))/0x9)+parseInt(_0x52b406(0x1ee))/0xa*(-parseInt(_0x52b406(0x1dc))/0xb)+parseInt(_0x52b406(0x1ca))/0xc;if(_0x1f69e4===_0xce5d8f)break;else _0x17704c['push'](_0x17704c['shift']());}catch(_0x47fa82){_0x17704c['push'](_0x17704c['shift']());}}}(a16_0x2504,0x58acf));import a16_0x4186d0 from'ora';import a16_0x58f602 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';function a16_0x3c3c(_0x30a743,_0x1fd088){_0x30a743=_0x30a743-0x1c9;const _0x2504f0=a16_0x2504();let _0x3c3c5e=_0x2504f0[_0x30a743];return _0x3c3c5e;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':a16_0x8c10c2(0x1e6),'command':a16_0x8c10c2(0x1fc),'description':a16_0x8c10c2(0x1f6)+DEFAULT_API_DIR+'/)','risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x8c10c2(0x1f8),'type':'string','description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':a16_0x8c10c2(0x1df),'type':a16_0x8c10c2(0x1e5),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0xd705e1){const _0x27b79d=a16_0x8c10c2,_0x19a728=_0xd705e1[_0x27b79d(0x1f3)][_0x27b79d(0x1cf)]?String(_0xd705e1[_0x27b79d(0x1f3)][_0x27b79d(0x1cf)]):undefined,_0x881691=_0xd705e1[_0x27b79d(0x1d4)]('output')||undefined,_0x5277b1=resolveTargetApps(_0xd705e1,_0x19a728);if(_0x5277b1){let _0xc3e0bb=0x0,_0xc02d43=0x0;for(const _0x572394 of _0x5277b1){const _0x3c264c=_0x572394[_0x27b79d(0x1de)]||_0xd705e1['cookie'],_0x595955=_0x572394[_0x27b79d(0x1f2)]||'production';initEnv(_0x595955);const _0xefee4=_0x572394[_0x27b79d(0x1f7)]||_0x881691||_0xd705e1['apiDir']||DEFAULT_API_DIR,_0x4d9bca=_0x572394['isDefault']?'':_0x572394[_0x27b79d(0x1d7)]||_0x572394[_0x27b79d(0x1cf)],_0x342a21=a16_0x4186d0(_0x27b79d(0x1e0)+_0x572394['name']+'\x20('+_0x572394[_0x27b79d(0x1cf)]+_0x27b79d(0x1d9))['start']();try{const {configArray:_0x56254d}=await fetchModelList(_0x572394[_0x27b79d(0x1cf)],_0x3c264c),_0x95bea4=await generateApiFile(_0x56254d,_0x4d9bca,_0x572394[_0x27b79d(0x1cf)],_0x572394[_0x27b79d(0x1ef)],_0x595955,_0xefee4,_0x572394[_0x27b79d(0x1d7)]);_0x342a21[_0x27b79d(0x1ec)](_0x572394[_0x27b79d(0x1d7)]+':\x20'+_0x56254d[_0x27b79d(0x1cb)]+_0x27b79d(0x1f5)+_0x95bea4[_0x27b79d(0x1eb)]+'\x20model(s)'),writeCliSideChannelLine('\x20\x20•\x20'+_0x95bea4['apiFilePath']),writeCliSideChannelLine('\x20\x20•\x20'+_0x95bea4[_0x27b79d(0x1ed)]),_0xc3e0bb++;}catch(_0x552e49){_0x342a21[_0x27b79d(0x1ce)](_0x572394[_0x27b79d(0x1d7)]+':\x20'+(_0x552e49 instanceof Error?_0x552e49['message']:String(_0x552e49))),_0xc02d43++;}}writeCliSideChannelLine('');if(_0xc02d43>0x0)writeCliSideChannelLine('!\x20'+_0xc02d43+_0x27b79d(0x1f0));return{'ok':_0xc02d43===0x0,'message':_0x27b79d(0x1e3)+_0xc3e0bb+_0x27b79d(0x1fb)+_0xc02d43+_0x27b79d(0x1d6)};}const _0x2c53a1=_0x19a728&&_0x19a728[_0x27b79d(0x1d5)]('-')?_0x19a728['split']('-')[_0x27b79d(0x1f9)](0x1)[_0x27b79d(0x1ea)]('-'):'',_0x1d40ec=_0x881691||_0xd705e1['apiDir']||DEFAULT_API_DIR,_0x4f3a5d=!_0x19a728,_0x195c91=a16_0x4186d0(_0x27b79d(0x1fa)+_0xd705e1[_0x27b79d(0x1e7)]+_0x27b79d(0x1dd))[_0x27b79d(0x1d8)]();try{const {configArray:_0x3cbdcc}=await fetchModelList(_0xd705e1['appCode'],_0xd705e1[_0x27b79d(0x1de)]),_0x536f63=await generateApiFile(_0x3cbdcc,_0x2c53a1,_0xd705e1[_0x27b79d(0x1e7)],_0x4f3a5d,getEnv(),_0x1d40ec);_0x195c91[_0x27b79d(0x1ec)](_0x27b79d(0x1e9)+_0x3cbdcc[_0x27b79d(0x1cb)]+'\x20dataset(s),\x20generated\x20'+_0x536f63[_0x27b79d(0x1eb)]+_0x27b79d(0x1c9));const _0x492951=_0x2c53a1?_0x2c53a1+_0x27b79d(0x1d2):_0x27b79d(0x1e6),_0x387644=_0x2c53a1?_0x2c53a1+_0x27b79d(0x1e4):_0x27b79d(0x1fd);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x58f602[_0x27b79d(0x1ea)](_0x1d40ec,_0x492951+'.ts')),writeCliSideChannelLine(_0x27b79d(0x1f4)+a16_0x58f602[_0x27b79d(0x1ea)](_0x1d40ec,_0x387644+'.ts')),{'ok':!![],'data':{'datasetCount':_0x3cbdcc[_0x27b79d(0x1cb)],'modelCount':_0x536f63['modelCount']}};}catch(_0x3b6177){_0x195c91[_0x27b79d(0x1ce)](_0x27b79d(0x1cd)+(_0x3b6177 instanceof Error?_0x3b6177[_0x27b79d(0x1e1)]:String(_0x3b6177)));throw _0x3b6177;}}};function a16_0x2504(){const _0x5f5b01=['Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','apiDir','output','slice','Pulling\x20API\x20config\x20for\x20','\x20succeeded,\x20','pull','client','\x20model(s)','17616180PkPVCW','length','308680JrVLQr','Failed:\x20','fail','appcode','3375576HNPHQl','1dVLDan','-api','168292JmEPtx','str','includes','\x20failed','name','start',')...','35RXycVh','406854CxQDxE','43175FCxuYQ','...','cookie','global','Pulling\x20','message','8RbMGdy','Done:\x20','-client','boolean','api','appCode','3199385XoWjuE','Pulled\x20','join','modelCount','succeed','clientFilePath','1510CIWmrc','isDefault','\x20app(s)\x20failed','51jDSAOj','env','rawFlags','\x20\x20•\x20','\x20dataset(s)\x20→\x20'];a16_0x2504=function(){return _0x5f5b01;};return a16_0x2504();}
@@ -1 +1 @@
1
- (function(_0x385c28,_0x411c28){const _0x36299d=a17_0x3a47,_0x1624b6=_0x385c28();while(!![]){try{const _0x1e93e0=parseInt(_0x36299d(0x1f4))/0x1*(-parseInt(_0x36299d(0x1f6))/0x2)+-parseInt(_0x36299d(0x1f1))/0x3*(parseInt(_0x36299d(0x202))/0x4)+parseInt(_0x36299d(0x1fb))/0x5+parseInt(_0x36299d(0x1f8))/0x6*(parseInt(_0x36299d(0x201))/0x7)+-parseInt(_0x36299d(0x1f0))/0x8+parseInt(_0x36299d(0x1ff))/0x9*(parseInt(_0x36299d(0x1f7))/0xa)+parseInt(_0x36299d(0x203))/0xb;if(_0x1e93e0===_0x411c28)break;else _0x1624b6['push'](_0x1624b6['shift']());}catch(_0x437f86){_0x1624b6['push'](_0x1624b6['shift']());}}}(a17_0x3a11,0x45bb4));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';function a17_0x3a47(_0x430f88,_0x2a9ec0){_0x430f88=_0x430f88-0x1ef;const _0x3a116e=a17_0x3a11();let _0x3a473e=_0x3a116e[_0x430f88];return _0x3a473e;}function a17_0x3a11(){const _0x9ae29f=['47VJpxbX','join','2994xcdiLY','10WUisYV','18kvYCda','validation','length','1817320dlMzgi','filter','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','App\x20\x22','4183380bwaKoz','selectedAppName','439663YpfQMo','999044RRemOF','3530824Sbvkds','project','merged','3857552LcsxcH','6eutxVU','map','name'];a17_0x3a11=function(){return _0x9ae29f;};return a17_0x3a11();}export function resolveTargetApps(_0x28d579,_0x4985ae){const _0x20ac09=a17_0x3a47;if(_0x4985ae)return null;const _0x58556b=_0x28d579['bool']('global')?_0x20ac09(0x1ef):_0x20ac09(0x204);let _0x3b1a53=getMultiAppConfigs(_0x58556b);if(!_0x3b1a53||_0x3b1a53[_0x20ac09(0x1fa)]===0x0)return null;if(_0x28d579['selectedAppName']){const _0x833ff3=_0x3b1a53[_0x20ac09(0x1fc)](_0x2e2679=>_0x2e2679[_0x20ac09(0x1f3)]===_0x28d579[_0x20ac09(0x200)]);if(_0x833ff3[_0x20ac09(0x1fa)]===0x0){const _0x1581fb=_0x3b1a53[_0x20ac09(0x1f2)](_0x5eb2e4=>_0x5eb2e4[_0x20ac09(0x1f3)])[_0x20ac09(0x1f5)](',\x20');throw CliErrors[_0x20ac09(0x1f9)](_0x20ac09(0x1fe)+_0x28d579[_0x20ac09(0x200)]+_0x20ac09(0x1fd)+_0x1581fb);}_0x3b1a53=_0x833ff3;}return _0x3b1a53;}
1
+ function a17_0x1077(){const _0x2c4d09=['3406194qhEpyY','634509qZmJfq','map','371PDKaTz','24PWKmYm','33606XssSuT','85796JvAoKe','length','global','name','validation','filter','selectedAppName','65GKuEMf','3721970SehOFt','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','9qVWYnk','merged','24949PRvtNp','45764zJWrMJ','join'];a17_0x1077=function(){return _0x2c4d09;};return a17_0x1077();}(function(_0x297b6d,_0x262f19){const _0x32a7d2=a17_0x1ae4,_0x431277=_0x297b6d();while(!![]){try{const _0x38e4df=parseInt(_0x32a7d2(0x16f))/0x1+parseInt(_0x32a7d2(0x163))/0x2*(-parseInt(_0x32a7d2(0x16d))/0x3)+-parseInt(_0x32a7d2(0x170))/0x4*(-parseInt(_0x32a7d2(0x16a))/0x5)+-parseInt(_0x32a7d2(0x162))/0x6*(parseInt(_0x32a7d2(0x175))/0x7)+parseInt(_0x32a7d2(0x176))/0x8*(-parseInt(_0x32a7d2(0x173))/0x9)+parseInt(_0x32a7d2(0x16b))/0xa+parseInt(_0x32a7d2(0x172))/0xb;if(_0x38e4df===_0x262f19)break;else _0x431277['push'](_0x431277['shift']());}catch(_0x287f5e){_0x431277['push'](_0x431277['shift']());}}}(a17_0x1077,0x35573));import{getMultiAppConfigs}from'../../utils/config.js';function a17_0x1ae4(_0x1c195a,_0x5f2b26){_0x1c195a=_0x1c195a-0x162;const _0x1077a0=a17_0x1077();let _0x1ae432=_0x1077a0[_0x1c195a];return _0x1ae432;}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x1329a0,_0x1cad16){const _0x5c021d=a17_0x1ae4;if(_0x1cad16)return null;const _0x5400aa=_0x1329a0['bool'](_0x5c021d(0x165))?_0x5c021d(0x16e):'project';let _0x45a818=getMultiAppConfigs(_0x5400aa);if(!_0x45a818||_0x45a818[_0x5c021d(0x164)]===0x0)return null;if(_0x1329a0['selectedAppName']){const _0x218f18=_0x45a818[_0x5c021d(0x168)](_0x468d74=>_0x468d74[_0x5c021d(0x166)]===_0x1329a0[_0x5c021d(0x169)]);if(_0x218f18[_0x5c021d(0x164)]===0x0){const _0x5538a0=_0x45a818[_0x5c021d(0x174)](_0x1e1ee8=>_0x1e1ee8[_0x5c021d(0x166)])[_0x5c021d(0x171)](',\x20');throw CliErrors[_0x5c021d(0x167)]('App\x20\x22'+_0x1329a0[_0x5c021d(0x169)]+_0x5c021d(0x16c)+_0x5538a0);}_0x45a818=_0x218f18;}return _0x45a818;}
@@ -1 +1 @@
1
- const a18_0x33ea26=a18_0x1f1a;function a18_0x6249(){const _0x585e13=['1850827nkLwPV','\x20app\x20\x22','Missing\x20app\x20name.','app','Updated','str','\x20Set\x20as\x20default\x20app.','trim','116pvWbgX','\x22\x20(appcode:\x20','appcode','write','validation','args','apps','Use\x20global\x20config\x20scope','Usage:\x20','string','flagMissing','1670TadNDs','5231156dwBVZe','186yuRRLB','defaultApp','\x20app\x20add\x20<name>\x20--appcode\x20<code>','global','45597JTlMEp','App\x20profile\x20name','4080tPALiA','405ToFyQE','592AtGzyj','4553072QoQIAJ','17665AoKyQD'];a18_0x6249=function(){return _0x585e13;};return a18_0x6249();}(function(_0x4eb0f0,_0x293553){const _0x3c0318=a18_0x1f1a,_0x375cee=_0x4eb0f0();while(!![]){try{const _0x44497b=-parseInt(_0x3c0318(0x17d))/0x1*(-parseInt(_0x3c0318(0x173))/0x2)+-parseInt(_0x3c0318(0x179))/0x3*(-parseInt(_0x3c0318(0x168))/0x4)+-parseInt(_0x3c0318(0x17f))/0x5*(parseInt(_0x3c0318(0x175))/0x6)+-parseInt(_0x3c0318(0x174))/0x7+parseInt(_0x3c0318(0x17e))/0x8+parseInt(_0x3c0318(0x17c))/0x9*(-parseInt(_0x3c0318(0x17b))/0xa)+-parseInt(_0x3c0318(0x180))/0xb;if(_0x44497b===_0x293553)break;else _0x375cee['push'](_0x375cee['shift']());}catch(_0xf6bb63){_0x375cee['push'](_0x375cee['shift']());}}}(a18_0x6249,0x707e9));import{CliErrors}from'../../errors.js';function a18_0x1f1a(_0x35106b,_0x20c6b9){_0x35106b=_0x35106b-0x168;const _0x6249c4=a18_0x6249();let _0x1f1a1f=_0x6249c4[_0x35106b];return _0x1f1a1f;}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(_0x5eca74){const _0x10b2df=a18_0x1f1a,_0x10c772=_0x5eca74[_0x10b2df(0x16d)][0x0]?.[_0x10b2df(0x187)]();if(!_0x10c772)throw CliErrors['validation'](_0x10b2df(0x182),_0x10b2df(0x170)+CLI_BIN_NAME+_0x10b2df(0x177));}async function execute(_0xa050a8){const _0x2eb7ba=a18_0x1f1a,_0x94206d=_0xa050a8[_0x2eb7ba(0x16d)][0x0]?.['trim']();if(!_0x94206d)throw CliErrors[_0x2eb7ba(0x16c)](_0x2eb7ba(0x182),_0x2eb7ba(0x170)+CLI_BIN_NAME+_0x2eb7ba(0x177));const _0x41166b=_0xa050a8[_0x2eb7ba(0x185)](_0x2eb7ba(0x16a));if(!_0x41166b)throw CliErrors[_0x2eb7ba(0x172)](_0x2eb7ba(0x16a),_0x2eb7ba(0x170)+CLI_BIN_NAME+_0x2eb7ba(0x177));const _0x189f6b={'global':_0xa050a8['bool'](_0x2eb7ba(0x178))},_0x3397bf=readConfig(_0x189f6b);if(!_0x3397bf['apps'])_0x3397bf[_0x2eb7ba(0x16e)]={};const _0x43f77b={'appcode':_0x41166b,...collectAppProfileOverrides(_0x15475e=>_0xa050a8[_0x2eb7ba(0x185)](_0x15475e))},_0x2da2e6=_0x3397bf[_0x2eb7ba(0x16e)],_0x3d93a2=!!_0x2da2e6[_0x94206d];_0x2da2e6[_0x94206d]=_0x43f77b;if(!_0x3397bf[_0x2eb7ba(0x176)])_0x3397bf[_0x2eb7ba(0x176)]=_0x94206d;writeConfig(_0x3397bf,_0x189f6b);const _0x509f07=!_0x3d93a2&&_0x3397bf['defaultApp']===_0x94206d?_0x2eb7ba(0x186):'',_0x2dcdfa=(_0x3d93a2?_0x2eb7ba(0x184):'Added')+_0x2eb7ba(0x181)+_0x94206d+_0x2eb7ba(0x169)+_0x41166b+')'+scopeLabel(_0x189f6b)+'.'+_0x509f07;return{'ok':!![],'message':_0x2dcdfa};}export const appAddDefinition={'service':a18_0x33ea26(0x183),'command':'add','description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a18_0x33ea26(0x16b),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a18_0x33ea26(0x17a),'required':!![]}],'flags':[{'name':a18_0x33ea26(0x16a),'type':a18_0x33ea26(0x171),'description':'App\x20code','required':!![]},{'name':a18_0x33ea26(0x178),'type':'boolean','description':a18_0x33ea26(0x16f),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ const a18_0x5a35e6=a18_0x4995;(function(_0x570efb,_0x3c32f6){const _0x566521=a18_0x4995,_0x1f1e50=_0x570efb();while(!![]){try{const _0x47d06a=parseInt(_0x566521(0x1d0))/0x1+parseInt(_0x566521(0x1b7))/0x2*(parseInt(_0x566521(0x1c1))/0x3)+parseInt(_0x566521(0x1be))/0x4+parseInt(_0x566521(0x1c0))/0x5+-parseInt(_0x566521(0x1c5))/0x6*(parseInt(_0x566521(0x1cb))/0x7)+parseInt(_0x566521(0x1c6))/0x8+-parseInt(_0x566521(0x1bb))/0x9;if(_0x47d06a===_0x3c32f6)break;else _0x1f1e50['push'](_0x1f1e50['shift']());}catch(_0x11f719){_0x1f1e50['push'](_0x1f1e50['shift']());}}}(a18_0x2805,0xd73fa));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';function a18_0x4995(_0x45989b,_0x2c2eb8){_0x45989b=_0x45989b-0x1b2;const _0x280588=a18_0x2805();let _0x4995b8=_0x280588[_0x45989b];return _0x4995b8;}import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0xca879e){const _0x379333=a18_0x4995,_0x1d77bf=_0xca879e[_0x379333(0x1b5)][0x0]?.['trim']();if(!_0x1d77bf)throw CliErrors[_0x379333(0x1b3)](_0x379333(0x1cc),'Usage:\x20'+CLI_BIN_NAME+_0x379333(0x1bd));}async function execute(_0x938c8f){const _0x333f94=a18_0x4995,_0x23a739=_0x938c8f[_0x333f94(0x1b5)][0x0]?.['trim']();if(!_0x23a739)throw CliErrors['validation'](_0x333f94(0x1cc),_0x333f94(0x1b6)+CLI_BIN_NAME+_0x333f94(0x1bd));const _0x148e58=_0x938c8f[_0x333f94(0x1c4)]('appcode');if(!_0x148e58)throw CliErrors[_0x333f94(0x1cf)](_0x333f94(0x1bc),'Usage:\x20'+CLI_BIN_NAME+_0x333f94(0x1bd));const _0x2de044={'global':_0x938c8f['bool']('global')},_0x4dc825=readConfig(_0x2de044);if(!_0x4dc825['apps'])_0x4dc825[_0x333f94(0x1b9)]={};const _0x178a4b={'appcode':_0x148e58,...collectAppProfileOverrides(_0x4bab16=>_0x938c8f[_0x333f94(0x1c4)](_0x4bab16))},_0x11bc0e=_0x4dc825[_0x333f94(0x1b9)],_0x140fe9=!!_0x11bc0e[_0x23a739];_0x11bc0e[_0x23a739]=_0x178a4b;if(!_0x4dc825[_0x333f94(0x1b4)])_0x4dc825[_0x333f94(0x1b4)]=_0x23a739;writeConfig(_0x4dc825,_0x2de044);const _0x5f46bd=!_0x140fe9&&_0x4dc825['defaultApp']===_0x23a739?_0x333f94(0x1b8):'',_0x56935a=(_0x140fe9?'Updated':_0x333f94(0x1c8))+_0x333f94(0x1ca)+_0x23a739+_0x333f94(0x1c3)+_0x148e58+')'+scopeLabel(_0x2de044)+'.'+_0x5f46bd;return{'ok':!![],'message':_0x56935a};}function a18_0x2805(){const _0x21fb46=['\x20Set\x20as\x20default\x20app.','apps','global','18684657BMinTM','appcode','\x20app\x20add\x20<name>\x20--appcode\x20<code>','839332owGLny','string','4479190TAIckK','6MDDEXv','add','\x22\x20(appcode:\x20','str','42EhyhYT','5685112dBlIaI','write','Added','Add\x20or\x20update\x20an\x20app\x20in\x20config','\x20app\x20\x22','629293sCfodk','Missing\x20app\x20name.','boolean','App\x20profile\x20name','flagMissing','636422oPwAiE','app','validation','defaultApp','args','Usage:\x20','1134292XdFhSc'];a18_0x2805=function(){return _0x21fb46;};return a18_0x2805();}export const appAddDefinition={'service':a18_0x5a35e6(0x1b2),'command':a18_0x5a35e6(0x1c2),'description':a18_0x5a35e6(0x1c9),'risk':a18_0x5a35e6(0x1c7),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a18_0x5a35e6(0x1ce),'required':!![]}],'flags':[{'name':a18_0x5a35e6(0x1bc),'type':a18_0x5a35e6(0x1bf),'description':'App\x20code','required':!![]},{'name':a18_0x5a35e6(0x1ba),'type':a18_0x5a35e6(0x1cd),'description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};