@lovrabet/rabetbase-cli 2.1.10-beta.2 → 2.1.10-beta.4

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 (198) 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/capability.js +1 -0
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/report.js +1 -1
  80. package/lib/commands/logs/index.js +1 -1
  81. package/lib/commands/menu/index.js +1 -1
  82. package/lib/commands/menu/shared/compare-table.js +1 -1
  83. package/lib/commands/menu/shared/index.js +1 -1
  84. package/lib/commands/menu/shared/inquirer.js +1 -1
  85. package/lib/commands/menu/shared/local-pages.js +1 -1
  86. package/lib/commands/menu/shared/logic.js +1 -1
  87. package/lib/commands/menu/shared/service.js +1 -1
  88. package/lib/commands/menu/shared/sync-core.js +1 -1
  89. package/lib/commands/menu/shared/update-core.js +1 -1
  90. package/lib/commands/menu/shared/valid-url.js +1 -1
  91. package/lib/commands/menu/sync.js +1 -1
  92. package/lib/commands/menu/update.js +1 -1
  93. package/lib/commands/page/generate-start.js +1 -1
  94. package/lib/commands/page/generate-status.js +1 -1
  95. package/lib/commands/page/index.js +1 -1
  96. package/lib/commands/page/pull.js +1 -1
  97. package/lib/commands/page/push.js +1 -1
  98. package/lib/commands/page/shared.js +1 -1
  99. package/lib/commands/page/standard-page-status.js +1 -1
  100. package/lib/commands/page/sync.js +1 -1
  101. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  102. package/lib/commands/project/create/format-elapsed.js +1 -1
  103. package/lib/commands/project/create/main.js +1 -1
  104. package/lib/commands/project/create/non-interactive.js +1 -1
  105. package/lib/commands/project/create/project-template-path.js +1 -1
  106. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  107. package/lib/commands/project/create/use-format-code.js +1 -1
  108. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  109. package/lib/commands/project/index.js +1 -1
  110. package/lib/commands/project/init.js +1 -1
  111. package/lib/commands/project/upgrade.js +1 -1
  112. package/lib/commands/registry.js +1 -1
  113. package/lib/commands/run/index.js +1 -1
  114. package/lib/commands/schema.js +1 -1
  115. package/lib/commands/skill/index.js +1 -1
  116. package/lib/commands/sql/create.js +1 -1
  117. package/lib/commands/sql/delete.js +1 -1
  118. package/lib/commands/sql/detail.js +1 -1
  119. package/lib/commands/sql/exec.js +1 -1
  120. package/lib/commands/sql/index.js +1 -1
  121. package/lib/commands/sql/list.js +1 -1
  122. package/lib/commands/sql/pull.js +1 -1
  123. package/lib/commands/sql/push.js +1 -1
  124. package/lib/commands/sql/save.js +1 -1
  125. package/lib/commands/sql/shared.js +1 -1
  126. package/lib/commands/sql/status.js +1 -1
  127. package/lib/commands/sql/validate.js +1 -1
  128. package/lib/config/schema.js +1 -1
  129. package/lib/constant/cdn.js +1 -1
  130. package/lib/constant/cli.js +1 -1
  131. package/lib/constant/defaults.js +1 -1
  132. package/lib/constant/domain.js +1 -1
  133. package/lib/constant/env.js +1 -1
  134. package/lib/constant/output.js +1 -1
  135. package/lib/constant/paths.js +1 -1
  136. package/lib/constant/risk.js +1 -1
  137. package/lib/context.js +1 -1
  138. package/lib/core/alias-resolver.js +1 -1
  139. package/lib/core/api-client.js +1 -1
  140. package/lib/core/bff/config.js +1 -1
  141. package/lib/core/bff/file-system.js +1 -1
  142. package/lib/core/bff/hash.js +1 -1
  143. package/lib/core/bff/lock.js +1 -1
  144. package/lib/core/bff/utils.js +1 -1
  145. package/lib/core/db-resolver.js +1 -1
  146. package/lib/core/page/file-system.js +1 -1
  147. package/lib/core/page/hash.js +1 -1
  148. package/lib/core/page/lock.js +1 -1
  149. package/lib/core/sql-sync/config.js +1 -1
  150. package/lib/core/sql-sync/file-system.js +1 -1
  151. package/lib/core/sql-sync/hash.js +1 -1
  152. package/lib/core/sql-sync/lock.js +1 -1
  153. package/lib/core/sql-sync/utils.js +1 -1
  154. package/lib/core/sql-validator.js +1 -1
  155. package/lib/errors.js +1 -1
  156. package/lib/framework/build-all-flags.js +1 -1
  157. package/lib/framework/flags.js +1 -1
  158. package/lib/framework/help.js +1 -1
  159. package/lib/framework/index.js +1 -1
  160. package/lib/framework/output.js +1 -1
  161. package/lib/framework/response.js +1 -1
  162. package/lib/framework/runner-alias.js +1 -1
  163. package/lib/framework/runner.js +1 -1
  164. package/lib/framework/schema-export.js +1 -1
  165. package/lib/framework/types.js +1 -1
  166. package/lib/generated/build-info.js +1 -1
  167. package/lib/help.js +1 -1
  168. package/lib/skills/main.js +1 -1
  169. package/lib/skills/npx-skills-add.js +1 -1
  170. package/lib/telemetry/cli-command-trace.js +1 -1
  171. package/lib/telemetry/cli-help-trace.js +1 -1
  172. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  173. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  174. package/lib/telemetry/send-cli-trace-log.js +1 -1
  175. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  176. package/lib/utils/ai_config.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cdn-config.js +1 -1
  179. package/lib/utils/check-sdk-version.js +1 -1
  180. package/lib/utils/cli-version-check.js +1 -1
  181. package/lib/utils/cli-version-policy.js +1 -1
  182. package/lib/utils/config.js +1 -1
  183. package/lib/utils/copy-directory.js +1 -1
  184. package/lib/utils/entity-with-id.js +1 -1
  185. package/lib/utils/file-utils.js +1 -1
  186. package/lib/utils/guides-cdn.js +1 -1
  187. package/lib/utils/http-client.js +1 -1
  188. package/lib/utils/is-non-interactive.js +1 -1
  189. package/lib/utils/logger.js +1 -1
  190. package/lib/utils/params.js +1 -1
  191. package/lib/utils/platform.js +1 -1
  192. package/lib/utils/rules-cdn.js +1 -1
  193. package/lib/utils/sleep.js +1 -1
  194. package/lib/utils/template-replacer.js +1 -1
  195. package/lib/utils/version.js +1 -1
  196. package/lib/utils/with-active-cookie.js +1 -1
  197. package/lib/utils/write-cli-side-channel.js +1 -1
  198. package/package.json +1 -2
@@ -1 +1 @@
1
- const a0_0x3fd5ba=a0_0x31bf;function a0_0x31bf(_0x6aa4c1,_0x4b4343){_0x6aa4c1=_0x6aa4c1-0xdc;const _0x29a2ad=a0_0x29a2();let _0x31bf36=_0x29a2ad[_0x6aa4c1];return _0x31bf36;}function a0_0x29a2(){const _0x4ac66b=['922389hBjUUN','.md\x20(','生成文档失败:\x20','Invalid\x20response\x20format\x20(','Fetch\x20doc\x20(','2023850ysFmBs','生成文档成功:\x20','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','utf8','datasetCode','Waiting\x203\x20seconds...\x0a','log','push','name','api-doc','991140pbxLuL','):\x20missing\x20data.markdown\x20field','POST','1022284uqoChk','.md\x20-\x20','152xfFSZM','5150070AdmwZM','227437oZckOP','/api/node-toolbox/api-doc-generator','960087EDvcBF','✓\x20Generated:\x20','✗\x20Failed:\x20','./docs','markdown','187QhgkDg','.md','2vsHTna','5SjZCXx','length',']\x20Generating:\x20','tableName'];a0_0x29a2=function(){return _0x4ac66b;};return a0_0x29a2();}(function(_0x3278d5,_0x5a1f90){const _0x55d4f7=a0_0x31bf,_0x54bdae=_0x3278d5();while(!![]){try{const _0x15acf2=-parseInt(_0x55d4f7(0xe9))/0x1+parseInt(_0x55d4f7(0xe4))/0x2*(-parseInt(_0x55d4f7(0xdd))/0x3)+-parseInt(_0x55d4f7(0xfb))/0x4*(parseInt(_0x55d4f7(0xe5))/0x5)+-parseInt(_0x55d4f7(0xf8))/0x6+parseInt(_0x55d4f7(0xff))/0x7*(-parseInt(_0x55d4f7(0xfd))/0x8)+-parseInt(_0x55d4f7(0xfe))/0x9+parseInt(_0x55d4f7(0xee))/0xa*(parseInt(_0x55d4f7(0xe2))/0xb);if(_0x15acf2===_0x5a1f90)break;else _0x54bdae['push'](_0x54bdae['shift']());}catch(_0x2071a4){_0x54bdae['push'](_0x54bdae['shift']());}}}(a0_0x29a2,0x8f81f));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x2fe5f4 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(_0x5e99d7){const _0x2da451=a0_0x31bf,{appCode:_0x1df447,cookie:_0x6f80,datasetCode:_0x2265ce,datasetId:_0x4ab2b5,extraParams:_0x142c44}=_0x5e99d7,_0x14d068=getApiDomain()+_0x2da451(0xdc),_0x1eef0a=await platformFetch(_0x14d068,{'method':_0x2da451(0xfa),'body':{'appCode':_0x1df447,'datasetCode':_0x2265ce,'datasetId':_0x4ab2b5,..._0x142c44||{}},'cookie':_0x6f80,'label':_0x2da451(0xed)+_0x2265ce+')'});if(!_0x1eef0a||typeof _0x1eef0a[_0x2da451(0xe1)]!=='string')throw new Error(_0x2da451(0xec)+_0x2265ce+_0x2da451(0xf9));return _0x1eef0a[_0x2da451(0xe1)];}function delay(_0x1ead2a){return new Promise(_0x408de6=>setTimeout(_0x408de6,_0x1ead2a));}export async function generateDatasetDocs(_0x572839,_0x4a0c60,_0x2b1879,_0x4b0c6b=a0_0x3fd5ba(0xe0),_0x50386b,_0x179135){const _0x264984=a0_0x3fd5ba;mkdirSync(_0x4b0c6b,{'recursive':!![]});const _0x43fb57=[],_0x465a32=_0x572839[_0x264984(0xe6)];console['log']('\x0a'+_0x465a32+_0x264984(0xf0));for(let _0x34824b=0x0;_0x34824b<_0x572839['length'];_0x34824b++){const _0x585519=_0x572839[_0x34824b],_0x30fe34=_0x34824b+0x1,_0x39324=_0x585519[_0x264984(0xe8)];try{console[_0x264984(0xf4)]('['+_0x30fe34+'/'+_0x465a32+_0x264984(0xe7)+_0x39324+_0x264984(0xea)+_0x585519['name']+')');if(_0x50386b)_0x50386b(_0x30fe34,_0x465a32,_0x39324);const _0x292a9f=await fetchDatasetDoc({'appCode':_0x4a0c60,'cookie':_0x2b1879,'datasetCode':_0x585519['datasetCode'],'datasetId':_0x585519['id'],'enableAI':![],'extraParams':_0x179135}),_0x306356=a0_0x2fe5f4['join'](_0x4b0c6b,_0x39324+_0x264984(0xe3));writeFileSync(_0x306356,_0x292a9f,{'encoding':_0x264984(0xf1)}),console[_0x264984(0xf4)](_0x264984(0xde)+_0x39324+_0x264984(0xe3)),logger['success'](_0x264984(0xf7),_0x264984(0xef)+_0x39324,undefined,{'datasetCode':_0x585519[_0x264984(0xf2)],'datasetName':_0x585519[_0x264984(0xf6)],'filePath':_0x306356,'progress':_0x30fe34+'/'+_0x465a32}),_0x43fb57[_0x264984(0xf5)]({'datasetCode':_0x585519[_0x264984(0xf2)],'datasetName':_0x585519['name'],'filePath':_0x306356,'success':!![]});if(_0x30fe34<_0x465a32)await delay(0x1388);}catch(_0x481d4a){const _0x4128c3=_0x481d4a instanceof Error?_0x481d4a['message']:String(_0x481d4a);console[_0x264984(0xf4)](_0x264984(0xdf)+_0x39324+_0x264984(0xfc)+_0x4128c3),logger['error'](_0x264984(0xf7),_0x264984(0xeb)+_0x585519[_0x264984(0xf2)],{'datasetCode':_0x585519[_0x264984(0xf2)],'datasetName':_0x585519['name'],'error':_0x4128c3,'progress':_0x30fe34+'/'+_0x465a32}),_0x43fb57[_0x264984(0xf5)]({'datasetCode':_0x585519[_0x264984(0xf2)],'datasetName':_0x585519[_0x264984(0xf6)],'filePath':'','success':![],'error':_0x4128c3}),_0x30fe34<_0x465a32&&(console[_0x264984(0xf4)](_0x264984(0xf3)),await delay(0xbb8));}}return _0x43fb57;}
1
+ const a0_0x53a1a6=a0_0x4576;(function(_0x5cc29e,_0x40d16f){const _0x58721c=a0_0x4576,_0xd1d45=_0x5cc29e();while(!![]){try{const _0xc62a4a=parseInt(_0x58721c(0x138))/0x1+parseInt(_0x58721c(0x126))/0x2+-parseInt(_0x58721c(0x136))/0x3*(parseInt(_0x58721c(0x124))/0x4)+-parseInt(_0x58721c(0x11f))/0x5*(parseInt(_0x58721c(0x12e))/0x6)+-parseInt(_0x58721c(0x127))/0x7*(-parseInt(_0x58721c(0x131))/0x8)+parseInt(_0x58721c(0x11a))/0x9+-parseInt(_0x58721c(0x11d))/0xa;if(_0xc62a4a===_0x40d16f)break;else _0xd1d45['push'](_0xd1d45['shift']());}catch(_0x4a1f9d){_0xd1d45['push'](_0xd1d45['shift']());}}}(a0_0x240a,0xd6671));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x5a24fc from'node:path';function a0_0x240a(){const _0x4c97ed=['24zYDHyR','POST','Fetch\x20doc\x20(','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','success','3NPokuI','log','871907nqxSuF','datasetCode','./docs','14000895kpMass','生成文档失败:\x20','push','19142650PBrcuQ','.md\x20-\x20','32575WfUCcp','string','):\x20missing\x20data.markdown\x20field','tableName','name','6817892ycaAmd','error','3471560PVLtzF','930391HqJVpF','api-doc','Invalid\x20response\x20format\x20(','✗\x20Failed:\x20','utf8','message','.md','60dCQQbw','Waiting\x203\x20seconds...\x0a','markdown'];a0_0x240a=function(){return _0x4c97ed;};return a0_0x240a();}import{getApiDomain}from'../constant/domain.js';function a0_0x4576(_0x122101,_0x4b8b21){_0x122101=_0x122101-0x119;const _0x240abb=a0_0x240a();let _0x4576c0=_0x240abb[_0x122101];return _0x4576c0;}import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x64622){const _0x3d2696=a0_0x4576,{appCode:_0x9b6874,cookie:_0x2b8102,datasetCode:_0x315817,datasetId:_0x5a8607,extraParams:_0x4622da}=_0x64622,_0x2afcc9=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x1569ad=await platformFetch(_0x2afcc9,{'method':_0x3d2696(0x132),'body':{'appCode':_0x9b6874,'datasetCode':_0x315817,'datasetId':_0x5a8607,..._0x4622da||{}},'cookie':_0x2b8102,'label':_0x3d2696(0x133)+_0x315817+')'});if(!_0x1569ad||typeof _0x1569ad[_0x3d2696(0x130)]!==_0x3d2696(0x120))throw new Error(_0x3d2696(0x129)+_0x315817+_0x3d2696(0x121));return _0x1569ad[_0x3d2696(0x130)];}function delay(_0x353d6e){return new Promise(_0x5d350a=>setTimeout(_0x5d350a,_0x353d6e));}export async function generateDatasetDocs(_0x404dd0,_0x1b914e,_0x10ad67,_0x487208=a0_0x53a1a6(0x119),_0x22d9fc,_0x5c90c4){const _0xfb230d=a0_0x53a1a6;mkdirSync(_0x487208,{'recursive':!![]});const _0x2e217a=[],_0x9a8cf8=_0x404dd0['length'];console['log']('\x0a'+_0x9a8cf8+_0xfb230d(0x134));for(let _0x148665=0x0;_0x148665<_0x404dd0['length'];_0x148665++){const _0x523f96=_0x404dd0[_0x148665],_0x5072d6=_0x148665+0x1,_0x579396=_0x523f96[_0xfb230d(0x122)];try{console[_0xfb230d(0x137)]('['+_0x5072d6+'/'+_0x9a8cf8+']\x20Generating:\x20'+_0x579396+'.md\x20('+_0x523f96['name']+')');if(_0x22d9fc)_0x22d9fc(_0x5072d6,_0x9a8cf8,_0x579396);const _0x4b0497=await fetchDatasetDoc({'appCode':_0x1b914e,'cookie':_0x10ad67,'datasetCode':_0x523f96['datasetCode'],'datasetId':_0x523f96['id'],'enableAI':![],'extraParams':_0x5c90c4}),_0x493c18=a0_0x5a24fc['join'](_0x487208,_0x579396+_0xfb230d(0x12d));writeFileSync(_0x493c18,_0x4b0497,{'encoding':_0xfb230d(0x12b)}),console[_0xfb230d(0x137)]('✓\x20Generated:\x20'+_0x579396+'.md'),logger[_0xfb230d(0x135)]('api-doc','生成文档成功:\x20'+_0x579396,undefined,{'datasetCode':_0x523f96[_0xfb230d(0x139)],'datasetName':_0x523f96[_0xfb230d(0x123)],'filePath':_0x493c18,'progress':_0x5072d6+'/'+_0x9a8cf8}),_0x2e217a[_0xfb230d(0x11c)]({'datasetCode':_0x523f96[_0xfb230d(0x139)],'datasetName':_0x523f96['name'],'filePath':_0x493c18,'success':!![]});if(_0x5072d6<_0x9a8cf8)await delay(0x1388);}catch(_0x3c742f){const _0x91795a=_0x3c742f instanceof Error?_0x3c742f[_0xfb230d(0x12c)]:String(_0x3c742f);console[_0xfb230d(0x137)](_0xfb230d(0x12a)+_0x579396+_0xfb230d(0x11e)+_0x91795a),logger[_0xfb230d(0x125)](_0xfb230d(0x128),_0xfb230d(0x11b)+_0x523f96[_0xfb230d(0x139)],{'datasetCode':_0x523f96[_0xfb230d(0x139)],'datasetName':_0x523f96[_0xfb230d(0x123)],'error':_0x91795a,'progress':_0x5072d6+'/'+_0x9a8cf8}),_0x2e217a[_0xfb230d(0x11c)]({'datasetCode':_0x523f96[_0xfb230d(0x139)],'datasetName':_0x523f96['name'],'filePath':'','success':![],'error':_0x91795a}),_0x5072d6<_0x9a8cf8&&(console[_0xfb230d(0x137)](_0xfb230d(0x12f)),await delay(0xbb8));}}return _0x2e217a;}
@@ -1 +1 @@
1
- function a1_0x19ec(){const _0x420a6f=['replace','24CeqwpE','name','info','4301600FPbfUq','4997624CaNXon','configArray','169765QZmoSm','&otype=array','57530OccNRw','780kOWprR','3006bzMwon','Fetch\x20datasets','81qzmPPc','map','1142169LuKpek','2622908eEuKQO','trim','/api/node-toolbox/dataset/model-list?appcode='];a1_0x19ec=function(){return _0x420a6f;};return a1_0x19ec();}(function(_0x2361e0,_0x26abed){const _0x56f89c=a1_0x1de7,_0xbdb045=_0x2361e0();while(!![]){try{const _0x372a15=-parseInt(_0x56f89c(0x1c7))/0x1+parseInt(_0x56f89c(0x1cb))/0x2*(parseInt(_0x56f89c(0x1ca))/0x3)+-parseInt(_0x56f89c(0x1bd))/0x4+parseInt(_0x56f89c(0x1c4))/0x5+parseInt(_0x56f89c(0x1c1))/0x6*(-parseInt(_0x56f89c(0x1bc))/0x7)+parseInt(_0x56f89c(0x1c5))/0x8+-parseInt(_0x56f89c(0x1ba))/0x9*(-parseInt(_0x56f89c(0x1c9))/0xa);if(_0x372a15===_0x26abed)break;else _0xbdb045['push'](_0xbdb045['shift']());}catch(_0x594321){_0xbdb045['push'](_0xbdb045['shift']());}}}(a1_0x19ec,0x6db8c));import{getApiDomain}from'../constant/domain.js';function a1_0x1de7(_0x59ae4e,_0x3d1144){_0x59ae4e=_0x59ae4e-0x1ba;const _0x19ec2c=a1_0x19ec();let _0x1de7be=_0x19ec2c[_0x59ae4e];return _0x1de7be;}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x10819f){const _0xe86c79=a1_0x1de7;return _0x10819f[_0xe86c79(0x1c0)](/[\r\n]+/g,'\x20')[_0xe86c79(0x1be)]();}function cleanDatasetName(_0x4649dd){const _0x37fc39=a1_0x1de7;if(!_0x4649dd[_0x37fc39(0x1c2)])return _0x4649dd;return{..._0x4649dd,'name':cleanNewlines(_0x4649dd[_0x37fc39(0x1c2)])};}export async function fetchModelList(_0x453521,_0x1edfe0){const _0x4f7ce3=a1_0x1de7,_0x4ff2c1=getEnv(),_0x236439=getApiDomain()+_0x4f7ce3(0x1bf)+_0x453521+_0x4f7ce3(0x1c8);logger[_0x4f7ce3(0x1c3)]('fetch-model-list','正在从服务器拉取模型列表...\x20(环境:\x20'+_0x4ff2c1+')',{'apiUrl':_0x236439});const _0x48cfcb=await platformFetch(_0x236439,{'cookie':_0x1edfe0,'label':_0x4f7ce3(0x1cc)}),_0x35bc94=(_0x48cfcb[_0x4f7ce3(0x1c6)]??[])[_0x4f7ce3(0x1bb)](cleanDatasetName);return{'configArray':_0x35bc94,'count':_0x35bc94['length']};}
1
+ (function(_0x53455b,_0x40b0fa){const _0x19411f=a1_0x1b64,_0x3f42a6=_0x53455b();while(!![]){try{const _0x7e7f73=-parseInt(_0x19411f(0xf1))/0x1+-parseInt(_0x19411f(0xf0))/0x2*(parseInt(_0x19411f(0xfc))/0x3)+parseInt(_0x19411f(0xec))/0x4+parseInt(_0x19411f(0xf3))/0x5*(-parseInt(_0x19411f(0xee))/0x6)+parseInt(_0x19411f(0xfa))/0x7+-parseInt(_0x19411f(0xed))/0x8+-parseInt(_0x19411f(0xf7))/0x9*(-parseInt(_0x19411f(0xf8))/0xa);if(_0x7e7f73===_0x40b0fa)break;else _0x3f42a6['push'](_0x3f42a6['shift']());}catch(_0x405ed7){_0x3f42a6['push'](_0x3f42a6['shift']());}}}(a1_0x4eb1,0xeba50));function a1_0x4eb1(){const _0x12825f=['9606948FcbQdw','name','6BZagbT','1528709ZaltoN','length','5fQpfqW','replace','trim','map','2943927XovnlV','130ycdREI','&otype=array','3415132SMNTii','info','1855911KzJLxL','/api/node-toolbox/dataset/model-list?appcode=','configArray','fetch-model-list','5398392tzaWAy','1110680tZeNAb'];a1_0x4eb1=function(){return _0x12825f;};return a1_0x4eb1();}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a1_0x1b64(_0x1f71e6,_0x9e729d){_0x1f71e6=_0x1f71e6-0xeb;const _0x4eb13f=a1_0x4eb1();let _0x1b6461=_0x4eb13f[_0x1f71e6];return _0x1b6461;}import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x27c7af){const _0x391c6e=a1_0x1b64;return _0x27c7af[_0x391c6e(0xf4)](/[\r\n]+/g,'\x20')[_0x391c6e(0xf5)]();}function cleanDatasetName(_0x2b33e2){const _0x41d205=a1_0x1b64;if(!_0x2b33e2['name'])return _0x2b33e2;return{..._0x2b33e2,'name':cleanNewlines(_0x2b33e2[_0x41d205(0xef)])};}export async function fetchModelList(_0x20ef65,_0x3cc28b){const _0x2d38d8=a1_0x1b64,_0x266af5=getEnv(),_0x275c7e=getApiDomain()+_0x2d38d8(0xfd)+_0x20ef65+_0x2d38d8(0xf9);logger[_0x2d38d8(0xfb)](_0x2d38d8(0xeb),'正在从服务器拉取模型列表...\x20(环境:\x20'+_0x266af5+')',{'apiUrl':_0x275c7e});const _0x477f3c=await platformFetch(_0x275c7e,{'cookie':_0x3cc28b,'label':'Fetch\x20datasets'}),_0x214a4b=(_0x477f3c[_0x2d38d8(0xfe)]??[])[_0x2d38d8(0xf6)](cleanDatasetName);return{'configArray':_0x214a4b,'count':_0x214a4b[_0x2d38d8(0xf2)]};}
@@ -1 +1 @@
1
- (function(_0x1fbe4b,_0x104dae){const _0x1e33ae=a2_0x267f,_0x4aa559=_0x1fbe4b();while(!![]){try{const _0x49b51d=parseInt(_0x1e33ae(0x93))/0x1*(-parseInt(_0x1e33ae(0x8c))/0x2)+-parseInt(_0x1e33ae(0x7b))/0x3+parseInt(_0x1e33ae(0x81))/0x4*(parseInt(_0x1e33ae(0x7d))/0x5)+-parseInt(_0x1e33ae(0x7c))/0x6+parseInt(_0x1e33ae(0x9a))/0x7*(-parseInt(_0x1e33ae(0x8a))/0x8)+parseInt(_0x1e33ae(0x92))/0x9*(parseInt(_0x1e33ae(0x77))/0xa)+parseInt(_0x1e33ae(0x78))/0xb*(parseInt(_0x1e33ae(0x94))/0xc);if(_0x49b51d===_0x104dae)break;else _0x4aa559['push'](_0x4aa559['shift']());}catch(_0x6b9782){_0x4aa559['push'](_0x4aa559['shift']());}}}(a2_0x469d,0xc3c49));import a2_0xed3b4a from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';function a2_0x469d(){const _0x1983f5=['format','length','toUpperCase','resolve','10825288nlQkZZ','name','26wUGeBs','templates/generate-api','.ts','key','Please\x20configure\x20app\x20code\x20first\x20via\x20`','CONFIG_NAMES.DEFAULT','254817VSJyXF','65657rnSTWN','2746572VtTifR','join','LOVRABET','alias','\x20config\x20set\x20app\x20<value>`',',\x20env:\x20\x22','7JpmOas','api.ts.tpl','-client','tableName','client','\x22\x20}','310LsevlW','121lhAeft','API\x20文件生成成功!','init-api','631605Znbled','5366022pvytsw','25MaKXVC','replaceApiContent','typescript','utf8','574436HCFlXi','push','client.ts.tpl','api','{\x20apiConfigName:\x20\x22'];a2_0x469d=function(){return _0x1983f5;};return a2_0x469d();}import a2_0x340e5f from'node:path';import{fileURLToPath}from'node:url';function a2_0x267f(_0x9fb2ea,_0x1436b5){_0x9fb2ea=_0x9fb2ea-0x73;const _0x469d76=a2_0x469d();let _0x267f2f=_0x469d76[_0x9fb2ea];return _0x267f2f;}import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x2f7b48,_0x200648,_0x3199c9,_0xcba894,_0xd3a168,_0x2056a4,_0x472601){const _0x4c7589=a2_0x267f;if(!_0x3199c9)throw new Error(_0x4c7589(0x90)+CLI_BIN_NAME+_0x4c7589(0x98));const _0xc76245=_0xcba894&&!_0x472601,_0x300c00=_0x472601||_0x3199c9,_0x2480fe=_0xc76245?_0x4c7589(0x91):'\x22'+_0x300c00+'\x22',_0x5ddc5d=!isProduction(_0xd3a168);let _0x42ce26;if(_0xc76245)_0x5ddc5d?_0x42ce26='{\x20apiConfigName:\x20'+_0x2480fe+_0x4c7589(0x99)+_0xd3a168+_0x4c7589(0x76):_0x42ce26='';else{const _0x5cbd75=_0x5ddc5d?_0x4c7589(0x99)+_0xd3a168+'\x22':'';_0x42ce26=_0x4c7589(0x85)+_0x300c00+'\x22'+_0x5cbd75+'\x20}';}const _0xe8d244=_0x200648?_0x200648+'-api':_0x4c7589(0x84),_0x33609e=_0x200648?_0x200648+_0x4c7589(0x73):_0x4c7589(0x75),_0x5d3509=_0x200648&&!/^app-[a-f0-9]+$/i['test'](_0x200648)?_0x200648['replace'](/-/g,'_')[_0x4c7589(0x88)]():_0x4c7589(0x96),_0x52b437=[];_0x2f7b48['forEach'](_0xfe8425=>{const _0x5d9d15=_0x4c7589;_0x52b437[_0x5d9d15(0x82)]({'datasetCode':_0xfe8425['datasetCode'],'tableName':_0xfe8425[_0x5d9d15(0x74)],'name':_0xfe8425[_0x5d9d15(0x8b)]||'','alias':_0xfe8425[_0x5d9d15(0x97)]||_0xfe8425[_0x5d9d15(0x8f)]});});const _0x4ddf73=fileURLToPath(import.meta.url),_0x41b13d=a2_0x340e5f[_0x4c7589(0x89)](a2_0x340e5f['dirname'](_0x4ddf73),'../..'),_0x1f0692=a2_0x340e5f[_0x4c7589(0x95)](_0x41b13d,_0x4c7589(0x8d)),_0x58effd=a2_0x340e5f[_0x4c7589(0x95)](_0x1f0692,_0x4c7589(0x9b)),_0x5a25a7=a2_0x340e5f[_0x4c7589(0x95)](_0x1f0692,_0x4c7589(0x83)),_0x23dfd6=_0x2056a4;mkdirSync(_0x23dfd6,{'recursive':!![]});const _0x38c630=_0x52b437[0x0]?.[_0x4c7589(0x97)],_0x5e6c5f=readFileSync(_0x58effd,'utf8'),_0x54bab2=TemplateReplacer[_0x4c7589(0x7e)](_0x5e6c5f,_0x3199c9,_0x52b437,_0x38c630,_0xe8d244,_0x2480fe,undefined,_0x5d3509),_0x23df05=await a2_0xed3b4a[_0x4c7589(0x86)](_0x54bab2,{'parser':'typescript'}),_0x3233b6=a2_0x340e5f[_0x4c7589(0x95)](_0x23dfd6,_0xe8d244+_0x4c7589(0x8e));writeFileSync(_0x3233b6,_0x23df05,{'encoding':_0x4c7589(0x80)});const _0x4dcd9b=readFileSync(_0x5a25a7,_0x4c7589(0x80)),_0x2b8c58=TemplateReplacer[_0x4c7589(0x7e)](_0x4dcd9b,_0x3199c9,_0x52b437,_0x38c630,_0xe8d244,_0x2480fe,_0x42ce26,_0x5d3509),_0xb4ac90=await a2_0xed3b4a[_0x4c7589(0x86)](_0x2b8c58,{'parser':_0x4c7589(0x7f)}),_0x24bdf6=a2_0x340e5f[_0x4c7589(0x95)](_0x23dfd6,_0x33609e+_0x4c7589(0x8e));writeFileSync(_0x24bdf6,_0xb4ac90,{'encoding':'utf8'});const _0x27a454=_0x52b437[_0x4c7589(0x87)];return logger['success'](_0x4c7589(0x7a),_0x4c7589(0x79),undefined,{'apiFile':_0x3233b6,'clientFile':_0x24bdf6,'modelCount':_0x27a454,'configName':_0x2480fe}),{'modelCount':_0x27a454,'apiFilePath':_0x3233b6,'clientFilePath':_0x24bdf6,'configName':_0x2480fe};}
1
+ (function(_0x337051,_0x574059){const _0x3563da=a2_0x4e7a,_0x2ecb39=_0x337051();while(!![]){try{const _0x22515f=-parseInt(_0x3563da(0x106))/0x1+parseInt(_0x3563da(0x11a))/0x2*(parseInt(_0x3563da(0x113))/0x3)+-parseInt(_0x3563da(0x10c))/0x4*(parseInt(_0x3563da(0x11c))/0x5)+parseInt(_0x3563da(0x102))/0x6+-parseInt(_0x3563da(0x11d))/0x7+parseInt(_0x3563da(0x103))/0x8*(parseInt(_0x3563da(0x122))/0x9)+-parseInt(_0x3563da(0x125))/0xa;if(_0x22515f===_0x574059)break;else _0x2ecb39['push'](_0x2ecb39['shift']());}catch(_0x3139f8){_0x2ecb39['push'](_0x2ecb39['shift']());}}}(a2_0x584c,0x19c32));import a2_0xeaba86 from'prettier';function a2_0x4e7a(_0x100e77,_0x338a80){_0x100e77=_0x100e77-0x101;const _0x584c87=a2_0x584c();let _0x4e7a5e=_0x584c87[_0x100e77];return _0x4e7a5e;}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x553166 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x2f865a,_0x23fb10,_0x56a550,_0x364c39,_0x4786f2,_0x5dc2a1,_0x15ba28){const _0xe8b92=a2_0x4e7a;if(!_0x56a550)throw new Error(_0xe8b92(0x119)+CLI_BIN_NAME+_0xe8b92(0x124));const _0x53ecb1=_0x364c39&&!_0x15ba28,_0x266ab7=_0x15ba28||_0x56a550,_0x5f055d=_0x53ecb1?_0xe8b92(0x121):'\x22'+_0x266ab7+'\x22',_0x30fe10=!isProduction(_0x4786f2);let _0xc04023;if(_0x53ecb1)_0x30fe10?_0xc04023='{\x20apiConfigName:\x20'+_0x5f055d+_0xe8b92(0x10b)+_0x4786f2+_0xe8b92(0x112):_0xc04023='';else{const _0x48a891=_0x30fe10?_0xe8b92(0x10b)+_0x4786f2+'\x22':'';_0xc04023=_0xe8b92(0x101)+_0x266ab7+'\x22'+_0x48a891+'\x20}';}const _0x3e2d47=_0x23fb10?_0x23fb10+_0xe8b92(0x10e):_0xe8b92(0x111),_0x432518=_0x23fb10?_0x23fb10+_0xe8b92(0x11f):'client',_0x205b5e=_0x23fb10&&!/^app-[a-f0-9]+$/i[_0xe8b92(0x109)](_0x23fb10)?_0x23fb10[_0xe8b92(0x123)](/-/g,'_')[_0xe8b92(0x115)]():_0xe8b92(0x107),_0x44ea4c=[];_0x2f865a[_0xe8b92(0x10a)](_0x3c4e5f=>{const _0x22dfb1=_0xe8b92;_0x44ea4c['push']({'datasetCode':_0x3c4e5f[_0x22dfb1(0x114)],'tableName':_0x3c4e5f[_0x22dfb1(0x11b)],'name':_0x3c4e5f[_0x22dfb1(0x126)]||'','alias':_0x3c4e5f[_0x22dfb1(0x116)]||_0x3c4e5f[_0x22dfb1(0x105)]});});const _0x2efe4b=fileURLToPath(import.meta.url),_0x5e2741=a2_0x553166[_0xe8b92(0x10d)](a2_0x553166['dirname'](_0x2efe4b),'../..'),_0x7b1262=a2_0x553166[_0xe8b92(0x10f)](_0x5e2741,_0xe8b92(0x110)),_0x4ba9d7=a2_0x553166[_0xe8b92(0x10f)](_0x7b1262,_0xe8b92(0x104)),_0x55e381=a2_0x553166['join'](_0x7b1262,'client.ts.tpl'),_0xb34a94=_0x5dc2a1;mkdirSync(_0xb34a94,{'recursive':!![]});const _0x445acb=_0x44ea4c[0x0]?.[_0xe8b92(0x116)],_0x5a19cb=readFileSync(_0x4ba9d7,'utf8'),_0x231aae=TemplateReplacer[_0xe8b92(0x117)](_0x5a19cb,_0x56a550,_0x44ea4c,_0x445acb,_0x3e2d47,_0x5f055d,undefined,_0x205b5e),_0x5a5f5e=await a2_0xeaba86[_0xe8b92(0x118)](_0x231aae,{'parser':_0xe8b92(0x127)}),_0xd11f53=a2_0x553166[_0xe8b92(0x10f)](_0xb34a94,_0x3e2d47+_0xe8b92(0x108));writeFileSync(_0xd11f53,_0x5a5f5e,{'encoding':_0xe8b92(0x120)});const _0xc9bdb7=readFileSync(_0x55e381,'utf8'),_0x58a6f5=TemplateReplacer[_0xe8b92(0x117)](_0xc9bdb7,_0x56a550,_0x44ea4c,_0x445acb,_0x3e2d47,_0x5f055d,_0xc04023,_0x205b5e),_0x114da6=await a2_0xeaba86[_0xe8b92(0x118)](_0x58a6f5,{'parser':_0xe8b92(0x127)}),_0x3f8388=a2_0x553166[_0xe8b92(0x10f)](_0xb34a94,_0x432518+_0xe8b92(0x108));writeFileSync(_0x3f8388,_0x114da6,{'encoding':_0xe8b92(0x120)});const _0x20fb53=_0x44ea4c['length'];return logger['success']('init-api',_0xe8b92(0x11e),undefined,{'apiFile':_0xd11f53,'clientFile':_0x3f8388,'modelCount':_0x20fb53,'configName':_0x5f055d}),{'modelCount':_0x20fb53,'apiFilePath':_0xd11f53,'clientFilePath':_0x3f8388,'configName':_0x5f055d};}function a2_0x584c(){const _0x149e09=['datasetCode','toUpperCase','alias','replaceApiContent','format','Please\x20configure\x20app\x20code\x20first\x20via\x20`','62LPYdHM','tableName','18950dqVBuI','208075YPJOOb','API\x20文件生成成功!','-client','utf8','CONFIG_NAMES.DEFAULT','381492CQZdNM','replace','\x20config\x20set\x20app\x20<value>`','661680QSiIhp','name','typescript','{\x20apiConfigName:\x20\x22','1093722zHjOGh','8LMCEcC','api.ts.tpl','key','121449NyrwFt','LOVRABET','.ts','test','forEach',',\x20env:\x20\x22','56BTkEUx','resolve','-api','join','templates/generate-api','api','\x22\x20}','14637wFPSXB'];a2_0x584c=function(){return _0x149e09;};return a2_0x584c();}
@@ -1 +1 @@
1
- (function(_0x59e500,_0x28fd8a){const _0x4aecd0=a3_0x11b7,_0x29b037=_0x59e500();while(!![]){try{const _0x5f84f6=-parseInt(_0x4aecd0(0x185))/0x1*(parseInt(_0x4aecd0(0x17f))/0x2)+-parseInt(_0x4aecd0(0x182))/0x3+-parseInt(_0x4aecd0(0x181))/0x4+-parseInt(_0x4aecd0(0x18e))/0x5+parseInt(_0x4aecd0(0x188))/0x6+parseInt(_0x4aecd0(0x18b))/0x7+parseInt(_0x4aecd0(0x186))/0x8;if(_0x5f84f6===_0x28fd8a)break;else _0x29b037['push'](_0x29b037['shift']());}catch(_0x5d2f87){_0x29b037['push'](_0x29b037['shift']());}}}(a3_0x5b3b,0x9ee9c));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a3_0x11b7(_0x116684,_0x50ed5f){_0x116684=_0x116684-0x17d;const _0x5b3b9e=a3_0x5b3b();let _0x11b791=_0x5b3b9e[_0x116684];return _0x11b791;}import{CliErrors}from'../errors.js';function a3_0x5b3b(){const _0x48ddc2=['1775530mKtqBy','autoYes','!\x20Login\x20failed.','2pCletA','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','1704340ATQcNE','235314AUJBbE','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','stop','824277eiphsk','8328272SMigtq','*\x20Login\x20successful!','2040858fUehWN','nonInteractive','log','6675459SJZiSq','No\x20valid\x20session.\x20Login\x20now?','Run\x20`'];a3_0x5b3b=function(){return _0x48ddc2;};return a3_0x5b3b();}import{confirm}from'@inquirer/prompts';import a3_0x49dbb9 from'ora';export async function runAuthServer(_0x565192){const _0x979513=a3_0x11b7,_0x59dddc=await getIsSessionValid();if(_0x59dddc){console[_0x979513(0x18a)](_0x979513(0x180));return;}if(_0x565192?.[_0x979513(0x189)]&&!_0x565192['autoYes'])throw CliErrors['validation']('Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.',_0x979513(0x18d)+CLI_BIN_NAME+_0x979513(0x183));const _0x225bfd=_0x565192?.[_0x979513(0x17d)]?!![]:await confirm({'message':_0x979513(0x18c),'default':!![]});if(!_0x225bfd)return;if(_0x565192?.[_0x979513(0x189)]){console['log']('Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.');const _0x5d671d=await authServer({'silent':![],'openBrowser':![]});_0x5d671d?console['log'](_0x979513(0x187)):console[_0x979513(0x18a)](_0x979513(0x17e));return;}const _0x12141b=a3_0x49dbb9('Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.')['start'](),_0x342d03=await authServer({'silent':!![],'openBrowser':!![]});_0x12141b[_0x979513(0x184)](),_0x342d03?console['log'](_0x979513(0x187)):console['log'](_0x979513(0x17e));}
1
+ function a3_0x1a20(){const _0x39bbec=['11VDjxfv','*\x20Login\x20successful!','3064740gWePSv','autoYes','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','No\x20valid\x20session.\x20Login\x20now?','72yQntKz','324lVXxNP','nonInteractive','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','3kFhGqW','start','stop','569650QrBDOs','72117TvixXM','1497274quXotM','48489piqcPj','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','log','validation','Run\x20`','237124IyhyRq','359402ANLKJH','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.'];a3_0x1a20=function(){return _0x39bbec;};return a3_0x1a20();}(function(_0x12de87,_0x318242){const _0x1b8657=a3_0x3242,_0x507c5a=_0x12de87();while(!![]){try{const _0x191ffb=-parseInt(_0x1b8657(0xca))/0x1+-parseInt(_0x1b8657(0xdc))/0x2*(-parseInt(_0x1b8657(0xd7))/0x3)+parseInt(_0x1b8657(0xc9))/0x4+parseInt(_0x1b8657(0xce))/0x5+-parseInt(_0x1b8657(0xd3))/0x6*(parseInt(_0x1b8657(0xdd))/0x7)+parseInt(_0x1b8657(0xd2))/0x8*(-parseInt(_0x1b8657(0xdb))/0x9)+-parseInt(_0x1b8657(0xda))/0xa*(-parseInt(_0x1b8657(0xcc))/0xb);if(_0x191ffb===_0x318242)break;else _0x507c5a['push'](_0x507c5a['shift']());}catch(_0x4e28c4){_0x507c5a['push'](_0x507c5a['shift']());}}}(a3_0x1a20,0xa41fe));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_0x3242(_0xff3e32,_0x596986){_0xff3e32=_0xff3e32-0xc9;const _0x1a20de=a3_0x1a20();let _0x324247=_0x1a20de[_0xff3e32];return _0x324247;}import{confirm}from'@inquirer/prompts';import a3_0x368991 from'ora';export async function runAuthServer(_0x28a9b3){const _0x53b1a2=a3_0x3242,_0x1c06c7=await getIsSessionValid();if(_0x1c06c7){console[_0x53b1a2(0xdf)](_0x53b1a2(0xd5));return;}if(_0x28a9b3?.[_0x53b1a2(0xd4)]&&!_0x28a9b3[_0x53b1a2(0xcf)])throw CliErrors[_0x53b1a2(0xe0)](_0x53b1a2(0xd0),_0x53b1a2(0xe1)+CLI_BIN_NAME+_0x53b1a2(0xd6));const _0x2b0de1=_0x28a9b3?.[_0x53b1a2(0xcf)]?!![]:await confirm({'message':_0x53b1a2(0xd1),'default':!![]});if(!_0x2b0de1)return;if(_0x28a9b3?.['nonInteractive']){console[_0x53b1a2(0xdf)](_0x53b1a2(0xcb));const _0x3b5fc2=await authServer({'silent':![],'openBrowser':![]});_0x3b5fc2?console['log'](_0x53b1a2(0xcd)):console[_0x53b1a2(0xdf)]('!\x20Login\x20failed.');return;}const _0x157740=a3_0x368991(_0x53b1a2(0xde))[_0x53b1a2(0xd8)](),_0x35c5d5=await authServer({'silent':!![],'openBrowser':!![]});_0x157740[_0x53b1a2(0xd9)](),_0x35c5d5?console[_0x53b1a2(0xdf)](_0x53b1a2(0xcd)):console[_0x53b1a2(0xdf)]('!\x20Login\x20failed.');}
@@ -1 +1 @@
1
- const a4_0x213e24=a4_0x55ed;(function(_0x2e8265,_0x5b2ce3){const _0x581469=a4_0x55ed,_0x56bda8=_0x2e8265();while(!![]){try{const _0x2798a9=parseInt(_0x581469(0x142))/0x1+-parseInt(_0x581469(0x13f))/0x2+parseInt(_0x581469(0x12b))/0x3+-parseInt(_0x581469(0x126))/0x4*(-parseInt(_0x581469(0x121))/0x5)+-parseInt(_0x581469(0x13a))/0x6*(-parseInt(_0x581469(0x12e))/0x7)+parseInt(_0x581469(0x129))/0x8+-parseInt(_0x581469(0x124))/0x9;if(_0x2798a9===_0x5b2ce3)break;else _0x56bda8['push'](_0x56bda8['shift']());}catch(_0x3acf13){_0x56bda8['push'](_0x56bda8['shift']());}}}(a4_0x538d,0xee522));import{writeFileSync}from'node:fs';import a4_0x1e522f from'node:https';function a4_0x538d(){const _0x12daab=['/sign-in?redirect=','json','log','https://g.yuntooai.com/cert/lovrabet-dev.json','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','xdg-open\x20\x22','318uBKsGQ','darwin','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','open\x20\x22','writeHead','1419598mLajMl','catch','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','1434477snacsm','text/html;\x20charset=utf-8','close','win32','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','Auth\x20server\x20error:','silent','error','user','createServer','📍\x20Login\x20URL:','address','headers','380oAYHOb','https://dev.lovrabet.com:','port','36619893tacLhu','timeoutMs','24452nZvydl','object','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','13754944iZPVLX','session','3765363zSjpYi','openBrowser','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','116396SWdFiL','listen','then','cookie','cmd\x20/c\x20start\x20\x22\x22\x20\x22'];a4_0x538d=function(){return _0x12daab;};return a4_0x538d();}import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export async function authServer(_0x52a462){const _0x2a952=a4_0x55ed,_0x437fff=_0x52a462?.[_0x2a952(0x11a)]||![],_0xa7aac0=_0x52a462?.[_0x2a952(0x12c)]??!![],_0x574060=_0x52a462?.[_0x2a952(0x125)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x347188=await(await fetch(_0x2a952(0x136)))[_0x2a952(0x134)]();return new Promise(async(_0x56cc33,_0x58bfcf)=>{const _0xe7a198=_0x2a952;let _0x4a384c=0x0,_0x48c227=![],_0x18cea8;const _0x491bb0=a4_0x1e522f[_0xe7a198(0x11d)](_0x347188,async(_0x494f58,_0x14f97f)=>{const _0x3efae5=_0xe7a198,_0x1fd9ec=getUserDomain(),_0x1e6fe5=_0x494f58[_0x3efae5(0x120)][_0x3efae5(0x131)]||'',_0x878fd1=await fetch(_0x1fd9ec+'/api/auth/get-session',{'headers':{'cookie':_0x1e6fe5}})[_0x3efae5(0x130)](_0x5bdf90=>_0x5bdf90['json']()),_0x1c367b=_0x878fd1&&_0x878fd1[_0x3efae5(0x12a)]&&_0x878fd1[_0x3efae5(0x11c)];if(_0x1c367b){writeFileSync(cookieFile,_0x1e6fe5,'utf-8');const _0x19102d=buildLoginSuccessHtml();_0x14f97f[_0x3efae5(0x13e)](0xc8,{'Content-Type':_0x3efae5(0x115)}),_0x14f97f['end'](_0x19102d),_0xf45d47(!![]);}else{const _0x21cb1b=''+encodeURIComponent(_0x3efae5(0x122)+_0x4a384c);_0x14f97f[_0x3efae5(0x13e)](0x12e,{'location':_0x1fd9ec+_0x3efae5(0x133)+_0x21cb1b}),_0x14f97f['end']();return;}});function _0xf45d47(_0x55d535){const _0x41877c=_0xe7a198;if(_0x48c227)return;_0x48c227=!![],_0x18cea8&&clearTimeout(_0x18cea8),_0x491bb0[_0x41877c(0x116)](),_0x56cc33(_0x55d535);}_0x491bb0[_0xe7a198(0x12f)](0x0,'127.0.0.1',()=>{const _0x454ede=_0xe7a198,_0x3e0046=_0x491bb0[_0x454ede(0x11f)]();_0x4a384c=typeof _0x3e0046===_0x454ede(0x127)&&_0x3e0046?_0x3e0046[_0x454ede(0x123)]:Number(_0x3e0046);const _0x4b02b7=_0x454ede(0x122)+_0x4a384c;_0x18cea8=setTimeout(()=>{const _0x1b37cd=_0x454ede;!_0x437fff&&console[_0x1b37cd(0x135)](_0x1b37cd(0x13c)),_0xf45d47(![]);},_0x574060);!_0x437fff&&(console[_0x454ede(0x135)]('🔐\x20Starting\x20login\x20service...'),console[_0x454ede(0x135)](_0x454ede(0x11e),_0x4b02b7),_0xa7aac0?(console[_0x454ede(0x135)](_0x454ede(0x141)),console[_0x454ede(0x135)](''),console[_0x454ede(0x135)](_0x454ede(0x138))):console[_0x454ede(0x135)](_0x454ede(0x128)),console[_0x454ede(0x135)](''));if(!_0xa7aac0)return;openInBrowser(_0x4b02b7)[_0x454ede(0x130)](_0x104e81=>{const _0x317dd6=_0x454ede;!_0x437fff&&(_0x104e81?console['log'](_0x317dd6(0x118)):(console[_0x317dd6(0x135)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x317dd6(0x135)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x4b02b7)),console[_0x317dd6(0x135)](''));})[_0x454ede(0x140)](()=>{const _0x4f055e=_0x454ede;!_0x437fff&&(console[_0x4f055e(0x135)](_0x4f055e(0x137)),console['log'](_0x4f055e(0x12d),_0x4b02b7),console[_0x4f055e(0x135)](''));});}),_0x491bb0['on'](_0xe7a198(0x11b),_0x53bd03=>{const _0x3bc4c3=_0xe7a198;if(_0x48c227)return;_0x48c227=!![],_0x18cea8&&clearTimeout(_0x18cea8),!_0x437fff&&console[_0x3bc4c3(0x11b)](_0x3bc4c3(0x119),_0x53bd03),_0x491bb0[_0x3bc4c3(0x116)](),_0x58bfcf(_0x53bd03);});});}function openInBrowser(_0x18cf57){return new Promise(_0xd29cc1=>{const _0x2c1cef=a4_0x55ed,_0x36bef3=process['platform'];let _0x41a3bd;if(_0x36bef3===_0x2c1cef(0x117))_0x41a3bd=_0x2c1cef(0x132)+_0x18cf57+'\x22';else _0x36bef3===_0x2c1cef(0x13b)?_0x41a3bd=_0x2c1cef(0x13d)+_0x18cf57+'\x22':_0x41a3bd=_0x2c1cef(0x139)+_0x18cf57+'\x22';exec(_0x41a3bd,_0x551711=>{_0x551711?_0xd29cc1(![]):_0xd29cc1(!![]);});});}function a4_0x55ed(_0x31f291,_0x52a2c6){_0x31f291=_0x31f291-0x115;const _0x538d98=a4_0x538d();let _0x55ed8b=_0x538d98[_0x31f291];return _0x55ed8b;}if(import.meta.main){const isAuth=await authServer();console[a4_0x213e24(0x135)]('isAuth',isAuth);}
1
+ const a4_0x224def=a4_0x27e9;(function(_0x21a119,_0x2e7fca){const _0x3bda21=a4_0x27e9,_0x581fb4=_0x21a119();while(!![]){try{const _0x5b107a=parseInt(_0x3bda21(0xbf))/0x1+-parseInt(_0x3bda21(0xc7))/0x2*(parseInt(_0x3bda21(0xc6))/0x3)+parseInt(_0x3bda21(0xba))/0x4+-parseInt(_0x3bda21(0xc3))/0x5+parseInt(_0x3bda21(0xc9))/0x6+parseInt(_0x3bda21(0xc4))/0x7*(-parseInt(_0x3bda21(0xce))/0x8)+-parseInt(_0x3bda21(0xb1))/0x9*(-parseInt(_0x3bda21(0xcc))/0xa);if(_0x5b107a===_0x2e7fca)break;else _0x581fb4['push'](_0x581fb4['shift']());}catch(_0xd6537d){_0x581fb4['push'](_0x581fb4['shift']());}}}(a4_0x2976,0xa4e5b));import{writeFileSync}from'node:fs';import a4_0x5b8af2 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';function a4_0x2976(){const _0x545c09=['timeoutMs','📍\x20Login\x20URL:','darwin','address','then','catch','/sign-in?redirect=','text/html;\x20charset=utf-8','createServer','Auth\x20server\x20error:','port','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','63tnhMCP','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','object','headers','user','🔐\x20Starting\x20login\x20service...','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','end','127.0.0.1','352504BcnlLb','platform','writeHead','json','silent','8137aXEeGE','session','xdg-open\x20\x22','log','3850465cLJUpM','3787tZkfZV','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','75vXrAPX','97430baWYVS','openBrowser','579258DlFfEA','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','3721070zJZqGt','utf-8','1984zZkjbf','error','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','https://dev.lovrabet.com:','close'];a4_0x2976=function(){return _0x545c09;};return a4_0x2976();}function a4_0x27e9(_0x25229e,_0x10289c){_0x25229e=_0x25229e-0xb1;const _0x29769e=a4_0x2976();let _0x27e91b=_0x29769e[_0x25229e];return _0x27e91b;}export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export async function authServer(_0x48d955){const _0x2b6903=a4_0x27e9,_0x2c3641=_0x48d955?.[_0x2b6903(0xbe)]||![],_0x512127=_0x48d955?.[_0x2b6903(0xc8)]??!![],_0x48c3ee=_0x48d955?.[_0x2b6903(0xd3)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x2cab12=await(await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json'))[_0x2b6903(0xbd)]();return new Promise(async(_0x3edbaa,_0x90a7a7)=>{const _0x3238c3=_0x2b6903;let _0x17b1ff=0x0,_0x11a4db=![],_0x93e623;const _0x51f177=a4_0x5b8af2[_0x3238c3(0xdb)](_0x2cab12,async(_0x26570f,_0x498fc5)=>{const _0x37e779=_0x3238c3,_0x5c55be=getUserDomain(),_0x6dfcb7=_0x26570f[_0x37e779(0xb4)]['cookie']||'',_0x360c67=await fetch(_0x5c55be+'/api/auth/get-session',{'headers':{'cookie':_0x6dfcb7}})[_0x37e779(0xd7)](_0x13ac34=>_0x13ac34[_0x37e779(0xbd)]()),_0x559c61=_0x360c67&&_0x360c67[_0x37e779(0xc0)]&&_0x360c67[_0x37e779(0xb5)];if(_0x559c61){writeFileSync(cookieFile,_0x6dfcb7,_0x37e779(0xcd));const _0x5b70d7=buildLoginSuccessHtml();_0x498fc5[_0x37e779(0xbc)](0xc8,{'Content-Type':_0x37e779(0xda)}),_0x498fc5[_0x37e779(0xb8)](_0x5b70d7),_0x10747a(!![]);}else{const _0x46f862=''+encodeURIComponent(_0x37e779(0xd1)+_0x17b1ff);_0x498fc5['writeHead'](0x12e,{'location':_0x5c55be+_0x37e779(0xd9)+_0x46f862}),_0x498fc5[_0x37e779(0xb8)]();return;}});function _0x10747a(_0x21a7d2){const _0x3763af=_0x3238c3;if(_0x11a4db)return;_0x11a4db=!![],_0x93e623&&clearTimeout(_0x93e623),_0x51f177[_0x3763af(0xd2)](),_0x3edbaa(_0x21a7d2);}_0x51f177['listen'](0x0,_0x3238c3(0xb9),()=>{const _0x148840=_0x3238c3,_0x2e1239=_0x51f177[_0x148840(0xd6)]();_0x17b1ff=typeof _0x2e1239===_0x148840(0xb3)&&_0x2e1239?_0x2e1239[_0x148840(0xdd)]:Number(_0x2e1239);const _0x3e9c37=_0x148840(0xd1)+_0x17b1ff;_0x93e623=setTimeout(()=>{const _0x59e290=_0x148840;!_0x2c3641&&console[_0x59e290(0xc2)](_0x59e290(0xde)),_0x10747a(![]);},_0x48c3ee);!_0x2c3641&&(console['log'](_0x148840(0xb6)),console[_0x148840(0xc2)](_0x148840(0xd4),_0x3e9c37),_0x512127?(console[_0x148840(0xc2)](_0x148840(0xcb)),console[_0x148840(0xc2)](''),console[_0x148840(0xc2)](_0x148840(0xb2))):console[_0x148840(0xc2)](_0x148840(0xb7)),console['log'](''));if(!_0x512127)return;openInBrowser(_0x3e9c37)[_0x148840(0xd7)](_0x5221c4=>{const _0x111fca=_0x148840;!_0x2c3641&&(_0x5221c4?console[_0x111fca(0xc2)](_0x111fca(0xc5)):(console[_0x111fca(0xc2)](_0x111fca(0xca)),console['log'](_0x111fca(0xd0),_0x3e9c37)),console[_0x111fca(0xc2)](''));})[_0x148840(0xd8)](()=>{const _0x17952f=_0x148840;!_0x2c3641&&(console['log']('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x17952f(0xc2)](_0x17952f(0xd0),_0x3e9c37),console[_0x17952f(0xc2)](''));});}),_0x51f177['on'](_0x3238c3(0xcf),_0x51aeab=>{const _0x4cd019=_0x3238c3;if(_0x11a4db)return;_0x11a4db=!![],_0x93e623&&clearTimeout(_0x93e623),!_0x2c3641&&console[_0x4cd019(0xcf)](_0x4cd019(0xdc),_0x51aeab),_0x51f177[_0x4cd019(0xd2)](),_0x90a7a7(_0x51aeab);});});}function openInBrowser(_0x1e366b){return new Promise(_0x5368bb=>{const _0x27e827=a4_0x27e9,_0x45a5e2=process[_0x27e827(0xbb)];let _0x3cbc4e;if(_0x45a5e2==='win32')_0x3cbc4e='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x1e366b+'\x22';else _0x45a5e2===_0x27e827(0xd5)?_0x3cbc4e='open\x20\x22'+_0x1e366b+'\x22':_0x3cbc4e=_0x27e827(0xc1)+_0x1e366b+'\x22';exec(_0x3cbc4e,_0x3f4895=>{_0x3f4895?_0x5368bb(![]):_0x5368bb(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x224def(0xc2)]('isAuth',isAuth);}
@@ -1 +1 @@
1
- const a5_0x4bdd37=a5_0x40c6;(function(_0x1127f0,_0x531286){const _0x42f9d5=a5_0x40c6,_0x4e1580=_0x1127f0();while(!![]){try{const _0x10b2ef=-parseInt(_0x42f9d5(0x94))/0x1*(-parseInt(_0x42f9d5(0x9e))/0x2)+-parseInt(_0x42f9d5(0x9f))/0x3+parseInt(_0x42f9d5(0x98))/0x4*(parseInt(_0x42f9d5(0x93))/0x5)+-parseInt(_0x42f9d5(0x99))/0x6+-parseInt(_0x42f9d5(0x9b))/0x7*(-parseInt(_0x42f9d5(0x9a))/0x8)+parseInt(_0x42f9d5(0x96))/0x9*(parseInt(_0x42f9d5(0x97))/0xa)+-parseInt(_0x42f9d5(0x9d))/0xb;if(_0x10b2ef===_0x531286)break;else _0x4e1580['push'](_0x4e1580['shift']());}catch(_0x391b60){_0x4e1580['push'](_0x4e1580['shift']());}}}(a5_0x5c64,0xaaab2));function a5_0x5c64(){const _0x22eba0=['cookie','9903773EQfxGJ','20yHZQTZ','3382245cfuWtJ','135TGBeEE','76333svfROZ','.lovrabet','9WCWNUY','11909180KkrfVu','116152QpOqJm','2641296cwcQlj','8EahSaT','3001306WNoNdr'];a5_0x5c64=function(){return _0x22eba0;};return a5_0x5c64();}import{mkdirSync}from'node:fs';import{homedir}from'node:os';function a5_0x40c6(_0x7fe867,_0x39d3c5){_0x7fe867=_0x7fe867-0x93;const _0x5c6454=a5_0x5c64();let _0x40c63b=_0x5c6454[_0x7fe867];return _0x40c63b;}import{join}from'node:path';export const configDir=join(homedir(),a5_0x4bdd37(0x95));export const cookieFile=join(configDir,a5_0x4bdd37(0x9c));mkdirSync(configDir,{'recursive':!![]});
1
+ const a5_0x1d5780=a5_0x445c;(function(_0x10f7fa,_0x91aeea){const _0x1f306a=a5_0x445c,_0x4ed835=_0x10f7fa();while(!![]){try{const _0x609a0=parseInt(_0x1f306a(0x89))/0x1*(-parseInt(_0x1f306a(0x8b))/0x2)+-parseInt(_0x1f306a(0x87))/0x3*(-parseInt(_0x1f306a(0x8f))/0x4)+parseInt(_0x1f306a(0x8d))/0x5+-parseInt(_0x1f306a(0x88))/0x6*(-parseInt(_0x1f306a(0x8a))/0x7)+-parseInt(_0x1f306a(0x90))/0x8*(-parseInt(_0x1f306a(0x91))/0x9)+parseInt(_0x1f306a(0x92))/0xa*(-parseInt(_0x1f306a(0x86))/0xb)+parseInt(_0x1f306a(0x8c))/0xc*(-parseInt(_0x1f306a(0x93))/0xd);if(_0x609a0===_0x91aeea)break;else _0x4ed835['push'](_0x4ed835['shift']());}catch(_0xdcc248){_0x4ed835['push'](_0x4ed835['shift']());}}}(a5_0xcecc,0x4e43e));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x1d5780(0x8e));function a5_0xcecc(){const _0x52e03b=['3266011zkCBDv','4wBfFel','7939992mgiwBx','2007685nOnPxY','.lovrabet','2463248RJuejo','16jGOUAy','1777662hitjlk','260iBCFPY','26uZOpMO','20801pdOqjL','3GzZnSk','6oMMJpd','92943kMbgjt'];a5_0xcecc=function(){return _0x52e03b;};return a5_0xcecc();}function a5_0x445c(_0x3d11c1,_0x577af5){_0x3d11c1=_0x3d11c1-0x86;const _0xceccad=a5_0xcecc();let _0x445cf0=_0xceccad[_0x3d11c1];return _0x445cf0;}export const cookieFile=join(configDir,'cookie');mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x318131,_0xf5402c){var _0xeb9878=a6_0x3371,_0x4d3644=_0x318131();while(!![]){try{var _0x4ed004=parseInt(_0xeb9878(0x7f))/0x1*(-parseInt(_0xeb9878(0x7d))/0x2)+-parseInt(_0xeb9878(0x82))/0x3*(parseInt(_0xeb9878(0x79))/0x4)+-parseInt(_0xeb9878(0x80))/0x5+parseInt(_0xeb9878(0x7c))/0x6+-parseInt(_0xeb9878(0x81))/0x7*(parseInt(_0xeb9878(0x7b))/0x8)+parseInt(_0xeb9878(0x7e))/0x9+parseInt(_0xeb9878(0x7a))/0xa;if(_0x4ed004===_0xf5402c)break;else _0x4d3644['push'](_0x4d3644['shift']());}catch(_0x13bf22){_0x4d3644['push'](_0x4d3644['shift']());}}}(a6_0x5917,0xb56cd));import{readFileSync}from'node:fs';function a6_0x3371(_0x26ebc7,_0x3f825a){_0x26ebc7=_0x26ebc7-0x79;var _0x59174d=a6_0x5917();var _0x33714b=_0x59174d[_0x26ebc7];return _0x33714b;}import{cookieFile}from'../auth/constant.js';function a6_0x5917(){var _0x480100=['utf-8','20lWQKql','26666560tnUOwd','13736RWhLcy','6921462IAcipr','1294BENxbS','7930719iEbBcj','1923mnGcuT','4224565aciGAU','5173ZERuQY','360210vmTCSq'];a6_0x5917=function(){return _0x480100;};return a6_0x5917();}export function getCookie(){var _0x2c6118=a6_0x3371;try{return readFileSync(cookieFile,_0x2c6118(0x83));}catch{}return'';}
1
+ (function(_0x35f4b6,_0x585026){var _0x27eb3d=a6_0x20a2,_0x447101=_0x35f4b6();while(!![]){try{var _0x5b2c58=-parseInt(_0x27eb3d(0xfd))/0x1*(parseInt(_0x27eb3d(0xfc))/0x2)+-parseInt(_0x27eb3d(0x101))/0x3*(-parseInt(_0x27eb3d(0x103))/0x4)+-parseInt(_0x27eb3d(0xff))/0x5+parseInt(_0x27eb3d(0x102))/0x6+-parseInt(_0x27eb3d(0x104))/0x7+parseInt(_0x27eb3d(0x106))/0x8+parseInt(_0x27eb3d(0xfe))/0x9*(-parseInt(_0x27eb3d(0x100))/0xa);if(_0x5b2c58===_0x585026)break;else _0x447101['push'](_0x447101['shift']());}catch(_0x2e0fd7){_0x447101['push'](_0x447101['shift']());}}}(a6_0xa455,0xe5d39));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0x20a2(_0x5ac3f3,_0x15d11c){_0x5ac3f3=_0x5ac3f3-0xfc;var _0xa4556c=a6_0xa455();var _0x20a2d1=_0xa4556c[_0x5ac3f3];return _0x20a2d1;}function a6_0xa455(){var _0x593505=['2TxcxSK','385326vrWFIZ','3505965TLvOZr','10GoOfyR','457155hJXelA','40602UjLQWK','40oidDuJ','534268mKANeb','utf-8','3958392EpWsOC','263716yivlXN'];a6_0xa455=function(){return _0x593505;};return a6_0xa455();}export function getCookie(){var _0x193537=a6_0x20a2;try{return readFileSync(cookieFile,_0x193537(0x105));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0xf88c90,_0x3e0439){const _0x173ef2=a7_0x441d,_0x20f470=_0xf88c90();while(!![]){try{const _0x1eeb83=parseInt(_0x173ef2(0xef))/0x1*(parseInt(_0x173ef2(0xfa))/0x2)+parseInt(_0x173ef2(0xf8))/0x3+parseInt(_0x173ef2(0xf7))/0x4*(parseInt(_0x173ef2(0xf1))/0x5)+-parseInt(_0x173ef2(0xee))/0x6*(parseInt(_0x173ef2(0xf5))/0x7)+parseInt(_0x173ef2(0xf4))/0x8*(-parseInt(_0x173ef2(0xf9))/0x9)+parseInt(_0x173ef2(0xf6))/0xa+-parseInt(_0x173ef2(0xf0))/0xb;if(_0x1eeb83===_0x3e0439)break;else _0x20f470['push'](_0x20f470['shift']());}catch(_0x4a0f27){_0x20f470['push'](_0x20f470['shift']());}}}(a7_0x16bc,0x8b008));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x16bc(){const _0x35f515=['2WELwHf','json','2158224qphkGD','470285qaaPLx','8568923VZVWCe','5BWhhQI','user','utf-8','584dYgwgf','7zSetHb','1312900uHUeNW','287804UxAtNg','3138828utnafY','1449DOrtvC'];a7_0x16bc=function(){return _0x35f515;};return a7_0x16bc();}import{cookieFile}from'../auth/constant.js';function a7_0x441d(_0x1a527,_0x369b11){_0x1a527=_0x1a527-0xed;const _0x16bc7b=a7_0x16bc();let _0x441d5b=_0x16bc7b[_0x1a527];return _0x441d5b;}export async function getSessionUserInfo(){const _0x5ad408=a7_0x441d;try{if(!existsSync(cookieFile))return null;const _0xa88875=readFileSync(cookieFile,_0x5ad408(0xf3)),_0xb17be4=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0xa88875}});if(!_0xb17be4['ok'])return null;const _0xa856f3=await _0xb17be4[_0x5ad408(0xed)]();if(!_0xa856f3['session']||!_0xa856f3[_0x5ad408(0xf2)])return null;return _0xa856f3;}catch{return null;}}
1
+ (function(_0x5b55b0,_0x38f683){const _0x1ddfd8=a7_0x5ce7,_0x27a36f=_0x5b55b0();while(!![]){try{const _0x1e91ca=-parseInt(_0x1ddfd8(0x1f5))/0x1+parseInt(_0x1ddfd8(0x1fa))/0x2*(parseInt(_0x1ddfd8(0x1fd))/0x3)+parseInt(_0x1ddfd8(0x1f9))/0x4+-parseInt(_0x1ddfd8(0x1ff))/0x5+parseInt(_0x1ddfd8(0x200))/0x6+-parseInt(_0x1ddfd8(0x1fe))/0x7*(-parseInt(_0x1ddfd8(0x1f7))/0x8)+parseInt(_0x1ddfd8(0x1f4))/0x9;if(_0x1e91ca===_0x38f683)break;else _0x27a36f['push'](_0x27a36f['shift']());}catch(_0x4ef067){_0x27a36f['push'](_0x27a36f['shift']());}}}(a7_0x3af0,0xf26d6));function a7_0x3af0(){const _0x507ec6=['35rVqCbr','6945735BmRMzB','6663018nDUsOR','9359325ZMdYui','573723voMXaR','json','1243824ZNGbIV','user','80216VjVaQf','190QqeCYh','/api/auth/get-session','utf-8','252xdWzll'];a7_0x3af0=function(){return _0x507ec6;};return a7_0x3af0();}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x5ce7(_0x18526e,_0x2386c2){_0x18526e=_0x18526e-0x1f4;const _0x3af0d1=a7_0x3af0();let _0x5ce787=_0x3af0d1[_0x18526e];return _0x5ce787;}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x524fc3=a7_0x5ce7;try{if(!existsSync(cookieFile))return null;const _0x18275b=readFileSync(cookieFile,_0x524fc3(0x1fc)),_0x37d261=await fetch(getUserDomain()+_0x524fc3(0x1fb),{'headers':{'cookie':_0x18275b}});if(!_0x37d261['ok'])return null;const _0xc914b7=await _0x37d261[_0x524fc3(0x1f6)]();if(!_0xc914b7['session']||!_0xc914b7[_0x524fc3(0x1f8)])return null;return _0xc914b7;}catch{return null;}}
@@ -1 +1 @@
1
- function a8_0x3367(){const _0x4f92c6=['150ITDYiP','utf-8','/api/auth/get-session','user','then','session','441266IegsLZ','1127613hRYkPd','3590hbixiM','1352040VXVNaI','118138IbvtBh','json','6932fYZBLG','8289LfFKbv','54QyIEnE','593284wXWGVp'];a8_0x3367=function(){return _0x4f92c6;};return a8_0x3367();}(function(_0x5373a3,_0x2fa005){const _0x33a22e=a8_0x5213,_0x454163=_0x5373a3();while(!![]){try{const _0x2b256d=-parseInt(_0x33a22e(0xae))/0x1+-parseInt(_0x33a22e(0xa3))/0x2+parseInt(_0x33a22e(0xab))/0x3+-parseInt(_0x33a22e(0xb0))/0x4*(parseInt(_0x33a22e(0xa4))/0x5)+-parseInt(_0x33a22e(0xb2))/0x6*(-parseInt(_0x33a22e(0xaa))/0x7)+parseInt(_0x33a22e(0xad))/0x8+-parseInt(_0x33a22e(0xb1))/0x9*(parseInt(_0x33a22e(0xac))/0xa);if(_0x2b256d===_0x2fa005)break;else _0x454163['push'](_0x454163['shift']());}catch(_0x241ad0){_0x454163['push'](_0x454163['shift']());}}}(a8_0x3367,0x4cdb9));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0x5213(_0x58326d,_0x190111){_0x58326d=_0x58326d-0xa3;const _0x3367f1=a8_0x3367();let _0x5213ef=_0x3367f1[_0x58326d];return _0x5213ef;}export async function getIsSessionValid(){const _0x476b55=a8_0x5213;try{if(!existsSync(cookieFile))return![];const _0x28580b=readFileSync(cookieFile,_0x476b55(0xa5)),_0x25ea8f=await fetch(getUserDomain()+_0x476b55(0xa6),{'headers':{'cookie':_0x28580b}})[_0x476b55(0xa8)](_0x35f4f7=>_0x35f4f7[_0x476b55(0xaf)]());return _0x25ea8f&&_0x25ea8f[_0x476b55(0xa9)]&&_0x25ea8f[_0x476b55(0xa7)];}catch{}return![];}
1
+ (function(_0x10ab3a,_0x52f984){const _0x190865=a8_0x5ebc,_0x299670=_0x10ab3a();while(!![]){try{const _0x5639c7=-parseInt(_0x190865(0x19a))/0x1*(parseInt(_0x190865(0x193))/0x2)+-parseInt(_0x190865(0x198))/0x3+-parseInt(_0x190865(0x19d))/0x4+parseInt(_0x190865(0x194))/0x5*(parseInt(_0x190865(0x196))/0x6)+-parseInt(_0x190865(0x1a1))/0x7*(-parseInt(_0x190865(0x19f))/0x8)+parseInt(_0x190865(0x19b))/0x9*(parseInt(_0x190865(0x195))/0xa)+parseInt(_0x190865(0x1a2))/0xb*(parseInt(_0x190865(0x19e))/0xc);if(_0x5639c7===_0x52f984)break;else _0x299670['push'](_0x299670['shift']());}catch(_0x2bd219){_0x299670['push'](_0x299670['shift']());}}}(a8_0x57f7,0xb2c6b));import{existsSync,readFileSync}from'node:fs';function a8_0x5ebc(_0xb3e319,_0x4706ee){_0xb3e319=_0xb3e319-0x193;const _0x57f711=a8_0x57f7();let _0x5ebc4d=_0x57f711[_0xb3e319];return _0x5ebc4d;}function a8_0x57f7(){const _0x5b53ec=['197649eAHSRj','/api/auth/get-session','2603116VJLFzj','309408qMAKKY','45672yVcMLp','json','686qKArXa','869QULICW','then','1297204zrHutV','5scyWmA','250FDFiLo','1724634QuMMBt','utf-8','2257896MPyLlp','session','2UywZIz'];a8_0x57f7=function(){return _0x5b53ec;};return a8_0x57f7();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x155471=a8_0x5ebc;try{if(!existsSync(cookieFile))return![];const _0xdb2cb0=readFileSync(cookieFile,_0x155471(0x197)),_0x53beda=await fetch(getUserDomain()+_0x155471(0x19c),{'headers':{'cookie':_0xdb2cb0}})[_0x155471(0x1a3)](_0x4052d3=>_0x4052d3[_0x155471(0x1a0)]());return _0x53beda&&_0x53beda[_0x155471(0x199)]&&_0x53beda['user'];}catch{}return![];}
@@ -1 +1 @@
1
- function a9_0x4457(_0x1970b0,_0xec181){_0x1970b0=_0x1970b0-0x179;const _0x489810=a9_0x4898();let _0x4457a0=_0x489810[_0x1970b0];return _0x4457a0;}(function(_0x341d76,_0x18cab5){const _0x4ef57f=a9_0x4457,_0x2ffdda=_0x341d76();while(!![]){try{const _0x1f9615=-parseInt(_0x4ef57f(0x179))/0x1+parseInt(_0x4ef57f(0x17c))/0x2+parseInt(_0x4ef57f(0x183))/0x3*(-parseInt(_0x4ef57f(0x180))/0x4)+-parseInt(_0x4ef57f(0x182))/0x5+parseInt(_0x4ef57f(0x17e))/0x6+parseInt(_0x4ef57f(0x17d))/0x7*(parseInt(_0x4ef57f(0x17b))/0x8)+parseInt(_0x4ef57f(0x181))/0x9;if(_0x1f9615===_0x18cab5)break;else _0x2ffdda['push'](_0x2ffdda['shift']());}catch(_0x49cf0e){_0x2ffdda['push'](_0x2ffdda['shift']());}}}(a9_0x4898,0x5f519));export function buildLoginSuccessHtml(){const _0x41d903=a9_0x4457,_0x46bbda=_0x41d903(0x17a);return _0x41d903(0x17f)+_0x46bbda+'</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20·\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>';}function a9_0x4898(){const _0x3dc83b=['114UxGYPs','295464cLbmzH','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','37992rqPcCH','1486626SCyolm','189lITmZq','23310QbCQQd','<!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>','16792qMTgCI','1665522AKabTw','1075330gzgAHY'];a9_0x4898=function(){return _0x3dc83b;};return a9_0x4898();}
1
+ function a9_0xe534(_0x2a6879,_0x1df08c){_0x2a6879=_0x2a6879-0x184;const _0x5ee6ac=a9_0x5ee6();let _0xe534cd=_0x5ee6ac[_0x2a6879];return _0xe534cd;}(function(_0x3c206a,_0x5c8847){const _0x117a16=a9_0xe534,_0x4dc33f=_0x3c206a();while(!![]){try{const _0x531a01=parseInt(_0x117a16(0x187))/0x1*(parseInt(_0x117a16(0x185))/0x2)+-parseInt(_0x117a16(0x186))/0x3*(-parseInt(_0x117a16(0x18e))/0x4)+-parseInt(_0x117a16(0x18d))/0x5+parseInt(_0x117a16(0x18f))/0x6+parseInt(_0x117a16(0x18c))/0x7+-parseInt(_0x117a16(0x184))/0x8+parseInt(_0x117a16(0x188))/0x9*(-parseInt(_0x117a16(0x18a))/0xa);if(_0x531a01===_0x5c8847)break;else _0x4dc33f['push'](_0x4dc33f['shift']());}catch(_0x85c862){_0x4dc33f['push'](_0x4dc33f['shift']());}}}(a9_0x5ee6,0xaa5f5));function a9_0x5ee6(){const _0x5e22e1=['5168154egXcGC','7282800lRdeEp','41864iXnSAb','12873fQyjfc','40qqjhfW','3609kMpqgB','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','25020WlyToD','<!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>','1026725RkAxKk','588815RXDRtN','824HoKCek'];a9_0x5ee6=function(){return _0x5e22e1;};return a9_0x5ee6();}export function buildLoginSuccessHtml(){const _0x418ec1=a9_0xe534,_0x341441=_0x418ec1(0x189);return _0x418ec1(0x18b)+_0x341441+'</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20·\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>';}
@@ -1 +1 @@
1
- function a10_0x122a(_0x4a7256,_0x287200){_0x4a7256=_0x4a7256-0xc3;var _0x3b811b=a10_0x3b81();var _0x122a1f=_0x3b811b[_0x4a7256];return _0x122a1f;}(function(_0x2d94bc,_0x502b84){var _0x31bf96=a10_0x122a,_0x384bb2=_0x2d94bc();while(!![]){try{var _0x4c5a17=parseInt(_0x31bf96(0xce))/0x1+parseInt(_0x31bf96(0xcd))/0x2*(-parseInt(_0x31bf96(0xc8))/0x3)+parseInt(_0x31bf96(0xc6))/0x4*(parseInt(_0x31bf96(0xc4))/0x5)+parseInt(_0x31bf96(0xc5))/0x6*(-parseInt(_0x31bf96(0xc9))/0x7)+-parseInt(_0x31bf96(0xd1))/0x8+parseInt(_0x31bf96(0xd0))/0x9*(parseInt(_0x31bf96(0xcb))/0xa)+-parseInt(_0x31bf96(0xc3))/0xb*(parseInt(_0x31bf96(0xcf))/0xc);if(_0x4c5a17===_0x502b84)break;else _0x384bb2['push'](_0x384bb2['shift']());}catch(_0xaabace){_0x384bb2['push'](_0x384bb2['shift']());}}}(a10_0x3b81,0xd9bd6));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x3b13af=a10_0x122a;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3b13af(0xcc)](_0x3b13af(0xc7))):console[_0x3b13af(0xcc)](_0x3b13af(0xca));}function a10_0x3b81(){var _0x407193=['18324LQJGKi','711ORADdG','14192800zaNycX','517TfbSyE','8665TyplNs','752460tieqTD','3892sUljOQ','✓\x20Logged\x20out','3PResdu','7zNrYLs','!\x20Not\x20logged\x20in','42890wfrWKO','log','1883654ndJxPd','1779928hbamLn'];a10_0x3b81=function(){return _0x407193;};return a10_0x3b81();}
1
+ function a10_0x5700(_0x1b732c,_0x210f7a){_0x1b732c=_0x1b732c-0x1a9;var _0x426d1b=a10_0x426d();var _0x5700ba=_0x426d1b[_0x1b732c];return _0x5700ba;}(function(_0x2d06b0,_0x5d9032){var _0x2e232b=a10_0x5700,_0x56c599=_0x2d06b0();while(!![]){try{var _0x5de958=-parseInt(_0x2e232b(0x1b6))/0x1*(-parseInt(_0x2e232b(0x1ae))/0x2)+parseInt(_0x2e232b(0x1b1))/0x3*(-parseInt(_0x2e232b(0x1b5))/0x4)+-parseInt(_0x2e232b(0x1ad))/0x5*(-parseInt(_0x2e232b(0x1b0))/0x6)+-parseInt(_0x2e232b(0x1b7))/0x7+-parseInt(_0x2e232b(0x1b2))/0x8*(-parseInt(_0x2e232b(0x1b3))/0x9)+-parseInt(_0x2e232b(0x1a9))/0xa+parseInt(_0x2e232b(0x1af))/0xb*(parseInt(_0x2e232b(0x1aa))/0xc);if(_0x5de958===_0x5d9032)break;else _0x56c599['push'](_0x56c599['shift']());}catch(_0x41d829){_0x56c599['push'](_0x56c599['shift']());}}}(a10_0x426d,0x23cd4));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x2b8b7d=a10_0x5700;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x2b8b7d(0x1ab)](_0x2b8b7d(0x1b4))):console[_0x2b8b7d(0x1ab)](_0x2b8b7d(0x1ac));}function a10_0x426d(){var _0x228221=['55BpUzpO','1108VDcHbi','1353WylvLe','2952JdAziG','369879qaTsyR','701128OvSJZT','27PWUElk','✓\x20Logged\x20out','4KcFlke','362sZVavW','968639IEzjdv','1100150yUYbkj','4824twWogt','log','!\x20Not\x20logged\x20in'];a10_0x426d=function(){return _0x228221;};return a10_0x426d();}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- const a11_0x437b8a=a11_0x9513;(function(_0xab1009,_0x492694){const _0x42f62f=a11_0x9513,_0x570805=_0xab1009();while(!![]){try{const _0x2e8b02=parseInt(_0x42f62f(0x11a))/0x1*(-parseInt(_0x42f62f(0x116))/0x2)+-parseInt(_0x42f62f(0x114))/0x3*(-parseInt(_0x42f62f(0x119))/0x4)+-parseInt(_0x42f62f(0x111))/0x5*(-parseInt(_0x42f62f(0x112))/0x6)+-parseInt(_0x42f62f(0x115))/0x7*(-parseInt(_0x42f62f(0x10e))/0x8)+parseInt(_0x42f62f(0x113))/0x9+parseInt(_0x42f62f(0x117))/0xa+-parseInt(_0x42f62f(0x10f))/0xb*(parseInt(_0x42f62f(0x110))/0xc);if(_0x2e8b02===_0x492694)break;else _0x570805['push'](_0x570805['shift']());}catch(_0x318c50){_0x570805['push'](_0x570805['shift']());}}}(a11_0x3b8d,0x24fe4));function a11_0x3b8d(){const _0x9c78c5=['9890320dsbtUs','12HasfRL','1185VRYnxE','6414uVbVqL','2264805IVKnGz','12627tOrIxo','7MGeTMH','86844YGvVvy','1100520slaDjc','boolean','268LnnuYj','2EkWErp','1923480iGeFvE'];a11_0x3b8d=function(){return _0x9c78c5;};return a11_0x3b8d();}function a11_0x9513(_0x24efe9,_0x5aae1c){_0x24efe9=_0x24efe9-0x10e;const _0x3b8d6d=a11_0x3b8d();let _0x95135e=_0x3b8d6d[_0x24efe9];return _0x95135e;}export const dynamicCliFlags={'enableBffSave':{'type':a11_0x437b8a(0x118)}};
1
+ function a11_0xafe5(_0xf9b7b7,_0x337b57){_0xf9b7b7=_0xf9b7b7-0x6b;const _0x1a78a0=a11_0x1a78();let _0xafe5ef=_0x1a78a0[_0xf9b7b7];return _0xafe5ef;}function a11_0x1a78(){const _0x2d6691=['435032YWwcAC','78BuZcet','486TTRtVi','39HrAnBb','boolean','3336900pnWfmT','130246TzKuox','2290460RcDWVM','3632560piphWl','148655oBdaPx','11540gsUbfN'];a11_0x1a78=function(){return _0x2d6691;};return a11_0x1a78();}const a11_0x40c948=a11_0xafe5;(function(_0x26640a,_0x3f9779){const _0x3eede2=a11_0xafe5,_0xbded68=_0x26640a();while(!![]){try{const _0x1cb289=-parseInt(_0x3eede2(0x74))/0x1+parseInt(_0x3eede2(0x6f))/0x2*(parseInt(_0x3eede2(0x6c))/0x3)+parseInt(_0x3eede2(0x70))/0x4+parseInt(_0x3eede2(0x72))/0x5*(-parseInt(_0x3eede2(0x75))/0x6)+-parseInt(_0x3eede2(0x6e))/0x7+parseInt(_0x3eede2(0x71))/0x8+-parseInt(_0x3eede2(0x6b))/0x9*(parseInt(_0x3eede2(0x73))/0xa);if(_0x1cb289===_0x3f9779)break;else _0xbded68['push'](_0xbded68['shift']());}catch(_0x3795ab){_0xbded68['push'](_0xbded68['shift']());}}}(a11_0x1a78,0x7d2dd));export const dynamicCliFlags={'enableBffSave':{'type':a11_0x40c948(0x6d)}};
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x3c341b=a12_0x5a2b;(function(_0x28c231,_0x2fd681){const _0x9956c1=a12_0x5a2b,_0x375635=_0x28c231();while(!![]){try{const _0x3364ee=-parseInt(_0x9956c1(0x90))/0x1+-parseInt(_0x9956c1(0x97))/0x2*(-parseInt(_0x9956c1(0x9a))/0x3)+-parseInt(_0x9956c1(0x7d))/0x4*(-parseInt(_0x9956c1(0x7e))/0x5)+-parseInt(_0x9956c1(0x7f))/0x6*(parseInt(_0x9956c1(0x6a))/0x7)+parseInt(_0x9956c1(0x89))/0x8*(parseInt(_0x9956c1(0x71))/0x9)+parseInt(_0x9956c1(0x6d))/0xa+-parseInt(_0x9956c1(0x82))/0xb*(parseInt(_0x9956c1(0x87))/0xc);if(_0x3364ee===_0x2fd681)break;else _0x375635['push'](_0x375635['shift']());}catch(_0x33468d){_0x375635['push'](_0x375635['shift']());}}}(a12_0x1515,0x3abee));import a12_0x354cac from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases,resolveDeprecatedSubcommand}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';function a12_0x5a2b(_0x34bb25,_0xc25bf5){_0x34bb25=_0x34bb25-0x66;const _0x151532=a12_0x1515();let _0x5a2bab=_0x151532[_0x34bb25];return _0x5a2bab;}function a12_0x1515(){const _0x3a3a38=['slice','3264228YWAnuv','./constant/domain.js','`\x20in\x20new\x20scripts.\x0a','wildcardDef','./cli-flags.js','12jxCOur','defaultCommand','82144brpoAB','name','exitCode','Unexpected\x20error:','now','./constant/env.js','flags','102098QsYISs','string','unknown_service','global','unknown','runtimeDomain','code','153226oovvLC','`\x20has\x20been\x20moved\x20to\x20`','Hint:\x20','3ctyGTV','raw','dynamicCliFlags','Error:\x20','⚠\x20`','91EiZDcB','ExitPromptError','error','1224230SOlgNB','help','stderr','./context.js','396xmyKFf','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','hint','`\x20is\x20an\x20alias\x20of\x20`','`;\x20prefer\x20`','command','input','message','service','\x0aCancelled.\x0a','env','apiDomain','7300ANychv','730otRTZl','128220Sdhykz','log'];a12_0x1515=function(){return _0x3a3a38;};return a12_0x1515();}let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a12_0x3c341b(0x86)))[a12_0x3c341b(0x67)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x3c341b(0x94)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x3c341b(0x81)](0x0,0xa)+')':VERSION,cli=a12_0x354cac(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x49dba2=a12_0x3c341b;let _0x4bee1b=cli[_0x49dba2(0x77)][0x0],_0x5d9b26=cli[_0x49dba2(0x77)][0x1];const _0x5b8b5c=cli[_0x49dba2(0x8f)];if(!_0x4bee1b){await reportCliHelpTrace(_0x49dba2(0x93)),showHelp();return;}const _0x19823a=deprecatedAliases[_0x4bee1b];if(_0x19823a&&!isKnownService(_0x4bee1b)){const _0x2bbe42=_0x5d9b26?CLI_BIN_NAME+'\x20'+_0x4bee1b+'\x20'+_0x5d9b26:CLI_BIN_NAME+'\x20'+_0x4bee1b,_0x3b0d30=CLI_BIN_NAME+'\x20'+_0x19823a[_0x49dba2(0x79)]+'\x20'+_0x19823a[_0x49dba2(0x76)];console['error'](_0x49dba2(0x69)+_0x2bbe42+_0x49dba2(0x98)+_0x3b0d30+'`\x20in\x20v2.0.\x0a'+_0x49dba2(0x72)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x4bee1b)){await reportCliHelpTrace(_0x49dba2(0x92),{'service':_0x4bee1b}),showHelp();return;}const _0x5a133d=getServiceEntry(_0x4bee1b);if(_0x5b8b5c[_0x49dba2(0x7b)]&&typeof _0x5b8b5c[_0x49dba2(0x7b)]===_0x49dba2(0x91)){const {initEnv:_0x33eb41}=await import(_0x49dba2(0x8e));_0x33eb41(_0x5b8b5c['env']);}const {buildConfigFromFlags:_0x4df343}=await import(_0x49dba2(0x70)),_0x4ca3f6=_0x4df343(_0x5b8b5c);if(!_0x5b8b5c[_0x49dba2(0x7b)]&&_0x4ca3f6[_0x49dba2(0x7b)]){const {initEnv:_0x5af8fe}=await import('./constant/env.js');_0x5af8fe(_0x4ca3f6[_0x49dba2(0x7b)]);}if(_0x4ca3f6[_0x49dba2(0x66)]?.[_0x49dba2(0x7c)]||_0x4ca3f6[_0x49dba2(0x66)]?.['userDomain']||_0x4ca3f6['raw']?.['runtimeDomain']){const {initDomains:_0x22ee42}=await import(_0x49dba2(0x83));_0x22ee42({'apiDomain':_0x4ca3f6[_0x49dba2(0x66)]['apiDomain']||undefined,'userDomain':_0x4ca3f6['raw']['userDomain']||undefined,'runtimeDomain':_0x4ca3f6['raw'][_0x49dba2(0x95)]||undefined});}if(!_0x5d9b26){if(_0x5b8b5c[_0x49dba2(0x6e)]){printServiceHelp(_0x4bee1b);return;}if(_0x5a133d[_0x49dba2(0x88)])_0x5d9b26=_0x5a133d['defaultCommand'];else{if(_0x5a133d[_0x49dba2(0x85)]){await dispatchDeclarative(_0x5a133d[_0x49dba2(0x85)],_0x4bee1b,'',[],_0x5b8b5c,_0x4ca3f6);return;}else{printServiceHelp(_0x4bee1b);return;}}}const _0x4a870f=resolveDeprecatedSubcommand(_0x4bee1b,_0x5d9b26);if(_0x4a870f){const _0x1de12a=CLI_BIN_NAME+'\x20'+_0x4bee1b+'\x20'+_0x5d9b26,_0x4a4628=CLI_BIN_NAME+'\x20'+_0x4bee1b+'\x20'+_0x4a870f;console[_0x49dba2(0x6c)](_0x49dba2(0x69)+_0x1de12a+_0x49dba2(0x74)+_0x4a4628+_0x49dba2(0x75)+_0x4a4628+_0x49dba2(0x84)),_0x5d9b26=_0x4a870f;}if(_0x5b8b5c[_0x49dba2(0x6e)]&&!findDefinition(_0x4bee1b,_0x5d9b26)){printServiceHelp(_0x4bee1b);return;}{let _0x249174=findDefinition(_0x4bee1b,_0x5d9b26),_0x5806e6=cli[_0x49dba2(0x77)][_0x49dba2(0x81)](0x2);if(!_0x249174){if(_0x5a133d[_0x49dba2(0x85)]){if(_0x5b8b5c[_0x49dba2(0x6e)]){console[_0x49dba2(0x80)](generateCommandHelp(_0x5a133d[_0x49dba2(0x85)]));return;}_0x249174=_0x5a133d[_0x49dba2(0x85)],_0x5806e6=[_0x5d9b26,...cli[_0x49dba2(0x77)]['slice'](0x2)];}else{printServiceHelp(_0x4bee1b),await handleErrorAsync(CliErrors['unknownCommand'](_0x4bee1b+'\x20'+_0x5d9b26));return;}}if(_0x5b8b5c[_0x49dba2(0x6e)]){console[_0x49dba2(0x80)](generateCommandHelp(_0x249174));return;}await dispatchDeclarative(_0x249174,_0x4bee1b,_0x5d9b26,_0x5806e6,_0x5b8b5c,_0x4ca3f6);}}async function dispatchDeclarative(_0x21039d,_0x1f0b33,_0x21f4be,_0x2b9bd3,_0x1db21b,_0x1a8eac){const _0x240a46=a12_0x3c341b,_0x2bc12e=Date[_0x240a46(0x8d)]();let _0x443a98;try{await runCommand(_0x21039d,createPipelineEnv(_0x1a8eac,_0x1db21b,_0x2b9bd3));}catch(_0x58deac){_0x443a98=_0x58deac;}await reportCommandTrace({'service':_0x1f0b33,'command':_0x21f4be,'flags':_0x1db21b,'durationMs':Date[_0x240a46(0x8d)]()-_0x2bc12e,'error':_0x443a98});if(_0x443a98)await handleErrorAsync(_0x443a98);}function printServiceHelp(_0x612c66){const _0x53e855=a12_0x3c341b;console[_0x53e855(0x80)](generateServiceHelp(_0x612c66));}async function handleErrorAsync(_0x2c8c15){const _0x1bf271=a12_0x3c341b;if(_0x2c8c15 instanceof Error&&_0x2c8c15[_0x1bf271(0x8a)]===_0x1bf271(0x6b))return process[_0x1bf271(0x6f)]['write'](_0x1bf271(0x7a)),await exitWithOtelShutdown(0x0);if(_0x2c8c15 instanceof CliError){if(_0x2c8c15[_0x1bf271(0x96)]==='cancelled')return process[_0x1bf271(0x6f)]['write']('\x0a'+_0x2c8c15[_0x1bf271(0x78)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x1bf271(0x6c)](_0x1bf271(0x68)+_0x2c8c15[_0x1bf271(0x78)]);if(_0x2c8c15[_0x1bf271(0x73)])console['error'](_0x1bf271(0x99)+_0x2c8c15[_0x1bf271(0x73)]);return await exitWithOtelShutdown(_0x2c8c15[_0x1bf271(0x8b)]);}return console[_0x1bf271(0x6c)](_0x1bf271(0x8c),_0x2c8c15),await exitWithOtelShutdown(0x1);}
2
+ const a12_0x5e2984=a12_0x2ca0;(function(_0x28304c,_0x339503){const _0x2a9fca=a12_0x2ca0,_0x118a87=_0x28304c();while(!![]){try{const _0x2adb99=-parseInt(_0x2a9fca(0x15e))/0x1+parseInt(_0x2a9fca(0x179))/0x2+-parseInt(_0x2a9fca(0x17a))/0x3+-parseInt(_0x2a9fca(0x161))/0x4*(-parseInt(_0x2a9fca(0x16d))/0x5)+-parseInt(_0x2a9fca(0x169))/0x6*(parseInt(_0x2a9fca(0x171))/0x7)+-parseInt(_0x2a9fca(0x165))/0x8+-parseInt(_0x2a9fca(0x162))/0x9*(-parseInt(_0x2a9fca(0x157))/0xa);if(_0x2adb99===_0x339503)break;else _0x118a87['push'](_0x118a87['shift']());}catch(_0x493eeb){_0x118a87['push'](_0x118a87['shift']());}}}(a12_0x791a,0xbde31));import a12_0x27272d from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases,resolveDeprecatedSubcommand}from'./commands/registry.js';function a12_0x791a(){const _0x557f14=['hint','apiDomain','code','5JBJFdj','runtimeDomain','`\x20is\x20an\x20alias\x20of\x20`','userDomain','165389DchjKB','global','\x0aCancelled.\x0a','`\x20has\x20been\x20moved\x20to\x20`','slice','unknown','help','wildcardDef','1755854KjmHOA','1356645DuVdGD','`\x20in\x20v2.0.\x0a','string','command','Unexpected\x20error:','env','exitCode','unknown_service','input','cancelled','defaultCommand','./constant/env.js','flags','129010Xmeqtu','`\x20in\x20new\x20scripts.\x0a','Error:\x20','now','stderr','error','write','1303914ZSuuPU','./cli-flags.js','message','3467708XTLCkl','1386PmfSeL','unknownCommand','⚠\x20`','5234248TMHmYv','raw','log','service','138jeWnyg'];a12_0x791a=function(){return _0x557f14;};return a12_0x791a();}import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a12_0x5e2984(0x15f)))['dynamicCliFlags'];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x5e2984(0x176)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x5e2984(0x175)](0x0,0xa)+')':VERSION,cli=a12_0x27272d(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();function a12_0x2ca0(_0x32c44a,_0x3626ad){_0x32c44a=_0x32c44a-0x14e;const _0x791a9a=a12_0x791a();let _0x2ca058=_0x791a9a[_0x32c44a];return _0x2ca058;}async function run(){const _0x21437f=a12_0x5e2984;let _0x53081f=cli[_0x21437f(0x152)][0x0],_0x223287=cli[_0x21437f(0x152)][0x1];const _0x3d7c83=cli[_0x21437f(0x156)];if(!_0x53081f){await reportCliHelpTrace(_0x21437f(0x172)),showHelp();return;}const _0xc3b6ae=deprecatedAliases[_0x53081f];if(_0xc3b6ae&&!isKnownService(_0x53081f)){const _0x42d6ff=_0x223287?CLI_BIN_NAME+'\x20'+_0x53081f+'\x20'+_0x223287:CLI_BIN_NAME+'\x20'+_0x53081f,_0x5cfc64=CLI_BIN_NAME+'\x20'+_0xc3b6ae[_0x21437f(0x168)]+'\x20'+_0xc3b6ae[_0x21437f(0x17d)];console[_0x21437f(0x15c)](_0x21437f(0x164)+_0x42d6ff+_0x21437f(0x174)+_0x5cfc64+_0x21437f(0x17b)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x53081f)){await reportCliHelpTrace(_0x21437f(0x151),{'service':_0x53081f}),showHelp();return;}const _0x691303=getServiceEntry(_0x53081f);if(_0x3d7c83[_0x21437f(0x14f)]&&typeof _0x3d7c83[_0x21437f(0x14f)]===_0x21437f(0x17c)){const {initEnv:_0x5501c7}=await import(_0x21437f(0x155));_0x5501c7(_0x3d7c83[_0x21437f(0x14f)]);}const {buildConfigFromFlags:_0x110ead}=await import('./context.js'),_0x3b9fc2=_0x110ead(_0x3d7c83);if(!_0x3d7c83[_0x21437f(0x14f)]&&_0x3b9fc2[_0x21437f(0x14f)]){const {initEnv:_0x47502f}=await import('./constant/env.js');_0x47502f(_0x3b9fc2[_0x21437f(0x14f)]);}if(_0x3b9fc2[_0x21437f(0x166)]?.[_0x21437f(0x16b)]||_0x3b9fc2['raw']?.[_0x21437f(0x170)]||_0x3b9fc2[_0x21437f(0x166)]?.[_0x21437f(0x16e)]){const {initDomains:_0x2dc33b}=await import('./constant/domain.js');_0x2dc33b({'apiDomain':_0x3b9fc2['raw'][_0x21437f(0x16b)]||undefined,'userDomain':_0x3b9fc2[_0x21437f(0x166)][_0x21437f(0x170)]||undefined,'runtimeDomain':_0x3b9fc2[_0x21437f(0x166)][_0x21437f(0x16e)]||undefined});}if(!_0x223287){if(_0x3d7c83[_0x21437f(0x177)]){printServiceHelp(_0x53081f);return;}if(_0x691303[_0x21437f(0x154)])_0x223287=_0x691303[_0x21437f(0x154)];else{if(_0x691303['wildcardDef']){await dispatchDeclarative(_0x691303[_0x21437f(0x178)],_0x53081f,'',[],_0x3d7c83,_0x3b9fc2);return;}else{printServiceHelp(_0x53081f);return;}}}const _0x16b824=resolveDeprecatedSubcommand(_0x53081f,_0x223287);if(_0x16b824){const _0x495cce=CLI_BIN_NAME+'\x20'+_0x53081f+'\x20'+_0x223287,_0x1e627b=CLI_BIN_NAME+'\x20'+_0x53081f+'\x20'+_0x16b824;console[_0x21437f(0x15c)](_0x21437f(0x164)+_0x495cce+_0x21437f(0x16f)+_0x1e627b+'`;\x20prefer\x20`'+_0x1e627b+_0x21437f(0x158)),_0x223287=_0x16b824;}if(_0x3d7c83['help']&&!findDefinition(_0x53081f,_0x223287)){printServiceHelp(_0x53081f);return;}{let _0x450b21=findDefinition(_0x53081f,_0x223287),_0xb28087=cli[_0x21437f(0x152)][_0x21437f(0x175)](0x2);if(!_0x450b21){if(_0x691303[_0x21437f(0x178)]){if(_0x3d7c83[_0x21437f(0x177)]){console[_0x21437f(0x167)](generateCommandHelp(_0x691303['wildcardDef']));return;}_0x450b21=_0x691303[_0x21437f(0x178)],_0xb28087=[_0x223287,...cli['input'][_0x21437f(0x175)](0x2)];}else{printServiceHelp(_0x53081f),await handleErrorAsync(CliErrors[_0x21437f(0x163)](_0x53081f+'\x20'+_0x223287));return;}}if(_0x3d7c83[_0x21437f(0x177)]){console[_0x21437f(0x167)](generateCommandHelp(_0x450b21));return;}await dispatchDeclarative(_0x450b21,_0x53081f,_0x223287,_0xb28087,_0x3d7c83,_0x3b9fc2);}}async function dispatchDeclarative(_0x507369,_0x2f8b50,_0x458dfe,_0x5354d7,_0x349d0,_0x147204){const _0x2903a9=a12_0x5e2984,_0x66161=Date[_0x2903a9(0x15a)]();let _0x569fdf;try{await runCommand(_0x507369,createPipelineEnv(_0x147204,_0x349d0,_0x5354d7));}catch(_0xae8ee0){_0x569fdf=_0xae8ee0;}await reportCommandTrace({'service':_0x2f8b50,'command':_0x458dfe,'flags':_0x349d0,'durationMs':Date[_0x2903a9(0x15a)]()-_0x66161,'error':_0x569fdf});if(_0x569fdf)await handleErrorAsync(_0x569fdf);}function printServiceHelp(_0x1fe825){const _0x949d49=a12_0x5e2984;console[_0x949d49(0x167)](generateServiceHelp(_0x1fe825));}async function handleErrorAsync(_0x525d92){const _0x19577c=a12_0x5e2984;if(_0x525d92 instanceof Error&&_0x525d92['name']==='ExitPromptError')return process[_0x19577c(0x15b)]['write'](_0x19577c(0x173)),await exitWithOtelShutdown(0x0);if(_0x525d92 instanceof CliError){if(_0x525d92[_0x19577c(0x16c)]===_0x19577c(0x153))return process['stderr'][_0x19577c(0x15d)]('\x0a'+_0x525d92[_0x19577c(0x160)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x19577c(0x15c)](_0x19577c(0x159)+_0x525d92[_0x19577c(0x160)]);if(_0x525d92['hint'])console[_0x19577c(0x15c)]('Hint:\x20'+_0x525d92[_0x19577c(0x16a)]);return await exitWithOtelShutdown(_0x525d92[_0x19577c(0x150)]);}return console['error'](_0x19577c(0x14e),_0x525d92),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a13_0x16223f=a13_0x3475;(function(_0xaa1158,_0x29ef02){const _0x5c1687=a13_0x3475,_0x284159=_0xaa1158();while(!![]){try{const _0x55d4c9=-parseInt(_0x5c1687(0x113))/0x1*(-parseInt(_0x5c1687(0x11d))/0x2)+parseInt(_0x5c1687(0x140))/0x3+parseInt(_0x5c1687(0x14c))/0x4*(parseInt(_0x5c1687(0x126))/0x5)+-parseInt(_0x5c1687(0x120))/0x6*(-parseInt(_0x5c1687(0x11b))/0x7)+-parseInt(_0x5c1687(0x12f))/0x8+-parseInt(_0x5c1687(0x143))/0x9*(parseInt(_0x5c1687(0x123))/0xa)+parseInt(_0x5c1687(0x14f))/0xb*(-parseInt(_0x5c1687(0x13f))/0xc);if(_0x55d4c9===_0x29ef02)break;else _0x284159['push'](_0x284159['shift']());}catch(_0x1e0901){_0x284159['push'](_0x284159['shift']());}}}(a13_0xe899,0xc3983));function a13_0x3475(_0x150cd4,_0x17e179){_0x150cd4=_0x150cd4-0x113;const _0xe8997e=a13_0xe899();let _0x34750a=_0xe8997e[_0x150cd4];return _0x34750a;}import a13_0x1119ce from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a13_0xe899(){const _0x6c522a=['./docs','must\x20be\x20a\x20JSON\x20object','\x20dataset(s)','length','cookie','succeed','appCode','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','142720OdWUue','datasetCode','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','split','string','validation','isArray','str','.md','filter','\x20doc(s)\x20failed','api','\x20file(s)','Doc\x20generation:\x20','success','Doc\x20generation\x20complete:\x20','60vnJsLY','1864566tVIjdA','map','message','279qDFxmU','Invalid\x20--params:\x20','Failed\x20to\x20fetch\x20datasets','\x1b[90m*\x20Filtered\x20','params','error','✓\x20Generated\x20','\x20of\x20','Fetching\x20dataset\x20list\x20for\x20','1745852bFhkwa','datasetcode','Output\x20directory\x20(default:\x20./docs)','1015641AUErat','\x20succeeded,\x20','\x1b[90m*\x20Generating\x20docs\x20for:\x20','493534tBdCBR','\x20\x20•\x20','\x20failed','!\x20No\x20datasets\x20found.','\x20doc(s)\x20in\x20','\x1b[0m','join','has','56eeTOGb','\x0d\x20\x20[','4ZxUCJK','output','write','207120Hjijyd','):\x20','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','476460RIAiTR','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','object','10dolxHk'];a13_0xe899=function(){return _0x6c522a;};return a13_0xe899();}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_0x16223f(0x13a),'command':'generate','description':a13_0x16223f(0x124),'risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x16223f(0x11e),'type':a13_0x16223f(0x133),'description':a13_0x16223f(0x14e)},{'name':'datasetcode','type':a13_0x16223f(0x133),'description':a13_0x16223f(0x131)},{'name':a13_0x16223f(0x147),'type':a13_0x16223f(0x133),'description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x3966da){const _0x340401=a13_0x16223f,_0x710234=_0x3966da[_0x340401(0x136)](_0x340401(0x11e))||_0x340401(0x127),_0x41e89f=_0x3966da[_0x340401(0x136)](_0x340401(0x14d)),_0x5570a7=_0x3966da[_0x340401(0x136)](_0x340401(0x147));let _0xa16802;if(_0x5570a7)try{_0xa16802=JSON['parse'](_0x5570a7);if(typeof _0xa16802!==_0x340401(0x125)||_0xa16802===null||Array[_0x340401(0x135)](_0xa16802))throw new Error(_0x340401(0x128));}catch(_0x5a60b0){throw CliErrors[_0x340401(0x134)](_0x340401(0x144)+(_0x5a60b0 instanceof Error?_0x5a60b0[_0x340401(0x142)]:String(_0x5a60b0)),'Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27');}let _0x365070;if(_0x41e89f){const _0x3637fb=_0x41e89f[_0x340401(0x132)](',')[_0x340401(0x141)](_0x21b365=>_0x21b365['trim']())['filter'](_0x1018c6=>_0x1018c6[_0x340401(0x12a)]>0x0);if(_0x3637fb['length']===0x0)throw CliErrors[_0x340401(0x134)]('--datasetcode\x20cannot\x20be\x20empty.');_0x365070=new Set(_0x3637fb),writeCliSideChannelLine(_0x340401(0x151)+_0x3637fb[_0x340401(0x119)](',\x20')+_0x340401(0x118));}const _0x1972b1=a13_0x1119ce(_0x340401(0x14b)+_0x3966da[_0x340401(0x12d)]+'...')['start']();let _0x46acdc;try{({configArray:_0x46acdc}=await fetchModelList(_0x3966da[_0x340401(0x12d)],_0x3966da[_0x340401(0x12b)]),_0x1972b1[_0x340401(0x12c)]('Fetched\x20'+_0x46acdc[_0x340401(0x12a)]+_0x340401(0x129)));}catch(_0x444e68){_0x1972b1['fail'](_0x340401(0x145));throw _0x444e68;}if(_0x46acdc['length']===0x0)return writeCliSideChannelLine(_0x340401(0x116)),{'ok':!![]};let _0x53ec39=_0x46acdc;if(_0x365070){_0x53ec39=_0x46acdc[_0x340401(0x138)](_0x3faf2e=>_0x365070[_0x340401(0x11a)](_0x3faf2e[_0x340401(0x130)]));const _0x185e00=[..._0x365070][_0x340401(0x138)](_0x3ccad2=>!_0x46acdc['some'](_0x4ed23a=>_0x4ed23a[_0x340401(0x130)]===_0x3ccad2));_0x185e00['length']>0x0&&writeCliSideChannelLine(_0x340401(0x12e)+_0x185e00[_0x340401(0x119)](',\x20')+_0x340401(0x118));if(_0x53ec39[_0x340401(0x12a)]===0x0)throw CliErrors[_0x340401(0x134)](_0x340401(0x122)+[..._0x365070][_0x340401(0x119)](',\x20'));writeCliSideChannelLine(_0x340401(0x146)+_0x53ec39['length']+_0x340401(0x14a)+_0x46acdc[_0x340401(0x12a)]+'\x20dataset(s)\x1b[0m');}let _0x4d5465=0x0;const _0x43fea8=await generateDatasetDocs(_0x53ec39,_0x3966da[_0x340401(0x12d)],_0x3966da[_0x340401(0x12b)],_0x710234,(_0xd44723,_0x1cb966,_0x590f38)=>{const _0x2c6514=_0x340401;_0x4d5465=_0xd44723,process['stdout'][_0x2c6514(0x11f)](_0x2c6514(0x11c)+String(_0xd44723)['padStart'](String(_0x1cb966)[_0x2c6514(0x12a)])+'/'+_0x1cb966+']\x20'+_0x590f38+_0x2c6514(0x137));},_0xa16802);if(_0x4d5465>0x0)process['stdout'][_0x340401(0x11f)]('\x0a');const _0x919377=_0x43fea8[_0x340401(0x138)](_0x2a27c5=>_0x2a27c5['success'])[_0x340401(0x12a)],_0x1c2c1f=_0x43fea8['filter'](_0x300554=>!_0x300554[_0x340401(0x13d)])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x340401(0x149)+_0x919377+_0x340401(0x117)+_0x710234);if(_0x1c2c1f>0x0){writeCliSideChannelLine('!\x20'+_0x1c2c1f+_0x340401(0x139));for(const _0x1fdf3c of _0x43fea8[_0x340401(0x138)](_0x180b50=>!_0x180b50[_0x340401(0x13d)])){writeCliSideChannelLine(_0x340401(0x114)+_0x1fdf3c['datasetName']+'\x20('+_0x1fdf3c[_0x340401(0x130)]+_0x340401(0x121)+_0x1fdf3c[_0x340401(0x148)]);}}return{'ok':_0x1c2c1f===0x0,'message':_0x1c2c1f>0x0?_0x340401(0x13c)+_0x919377+_0x340401(0x150)+_0x1c2c1f+_0x340401(0x115):_0x340401(0x13e)+_0x919377+_0x340401(0x13b)};}};
1
+ const a13_0x53fa81=a13_0x2a5e;(function(_0x39b5da,_0x547e2a){const _0x3f1935=a13_0x2a5e,_0x628767=_0x39b5da();while(!![]){try{const _0x1ed9e6=parseInt(_0x3f1935(0x9c))/0x1*(-parseInt(_0x3f1935(0xb0))/0x2)+-parseInt(_0x3f1935(0xc0))/0x3*(parseInt(_0x3f1935(0x98))/0x4)+-parseInt(_0x3f1935(0xbd))/0x5*(parseInt(_0x3f1935(0xaf))/0x6)+parseInt(_0x3f1935(0x95))/0x7+-parseInt(_0x3f1935(0xaa))/0x8+-parseInt(_0x3f1935(0x8b))/0x9+parseInt(_0x3f1935(0xb4))/0xa;if(_0x1ed9e6===_0x547e2a)break;else _0x628767['push'](_0x628767['shift']());}catch(_0xc21b62){_0x628767['push'](_0x628767['shift']());}}}(a13_0x27d8,0xa357e));function a13_0x2a5e(_0x6beb4,_0x27f4ff){_0x6beb4=_0x6beb4-0x89;const _0x27d8b1=a13_0x27d8();let _0x2a5e6f=_0x27d8b1[_0x6beb4];return _0x2a5e6f;}import a13_0x500137 from'ora';function a13_0x27d8(){const _0x368f6d=['\x1b[90m*\x20Generating\x20docs\x20for:\x20','18aSqFzC','some','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','write','string','error','./docs','7373979ELlagm','trim','\x0d\x20\x20[','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','appCode','success','datasetCode','split','must\x20be\x20a\x20JSON\x20object','\x20dataset(s)','4351053mEhnQW','join','output','128172SHhXQK','succeed','Failed\x20to\x20fetch\x20datasets','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','796842rzvTlC','--datasetcode\x20cannot\x20be\x20empty.','\x20failed','!\x20No\x20datasets\x20found.','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','stdout','generate','fail','length','...','.md','\x20file(s)','Invalid\x20--params:\x20','10205552tjureR','cookie','str','start','api','786ZQVDiZ','2vKzcBa','validation','\x20\x20•\x20','):\x20','31671010gNpWUc','message','Doc\x20generation:\x20','params','map','datasetcode','filter','Fetched\x20','datasetName','1355NsMOEk','Output\x20directory\x20(default:\x20./docs)'];a13_0x27d8=function(){return _0x368f6d;};return a13_0x27d8();}import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':a13_0x53fa81(0xae),'command':a13_0x53fa81(0xa3),'description':a13_0x53fa81(0x8e),'risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x53fa81(0x97),'type':'string','description':a13_0x53fa81(0xbe)},{'name':a13_0x53fa81(0xb9),'type':a13_0x53fa81(0xc4),'description':a13_0x53fa81(0x9b)},{'name':a13_0x53fa81(0xb7),'type':a13_0x53fa81(0xc4),'description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x2daa65){const _0x3b2913=a13_0x53fa81,_0x1db416=_0x2daa65[_0x3b2913(0xac)](_0x3b2913(0x97))||_0x3b2913(0x8a),_0x4fe943=_0x2daa65[_0x3b2913(0xac)](_0x3b2913(0xb9)),_0x3d595c=_0x2daa65['str'](_0x3b2913(0xb7));let _0x109d3b;if(_0x3d595c)try{_0x109d3b=JSON['parse'](_0x3d595c);if(typeof _0x109d3b!=='object'||_0x109d3b===null||Array['isArray'](_0x109d3b))throw new Error(_0x3b2913(0x93));}catch(_0x28c7b8){throw CliErrors[_0x3b2913(0xb1)](_0x3b2913(0xa9)+(_0x28c7b8 instanceof Error?_0x28c7b8[_0x3b2913(0xb5)]:String(_0x28c7b8)),_0x3b2913(0xc2));}let _0xafb108;if(_0x4fe943){const _0x10642b=_0x4fe943[_0x3b2913(0x92)](',')[_0x3b2913(0xb8)](_0x1bea82=>_0x1bea82[_0x3b2913(0x8c)]())[_0x3b2913(0xba)](_0x58d6a7=>_0x58d6a7['length']>0x0);if(_0x10642b[_0x3b2913(0xa5)]===0x0)throw CliErrors['validation'](_0x3b2913(0x9d));_0xafb108=new Set(_0x10642b),writeCliSideChannelLine(_0x3b2913(0xbf)+_0x10642b[_0x3b2913(0x96)](',\x20')+'\x1b[0m');}const _0x2b3fe7=a13_0x500137('Fetching\x20dataset\x20list\x20for\x20'+_0x2daa65[_0x3b2913(0x8f)]+_0x3b2913(0xa6))[_0x3b2913(0xad)]();let _0x49001e;try{({configArray:_0x49001e}=await fetchModelList(_0x2daa65[_0x3b2913(0x8f)],_0x2daa65[_0x3b2913(0xab)]),_0x2b3fe7[_0x3b2913(0x99)](_0x3b2913(0xbb)+_0x49001e[_0x3b2913(0xa5)]+_0x3b2913(0x94)));}catch(_0x4e3f65){_0x2b3fe7[_0x3b2913(0xa4)](_0x3b2913(0x9a));throw _0x4e3f65;}if(_0x49001e[_0x3b2913(0xa5)]===0x0)return writeCliSideChannelLine(_0x3b2913(0x9f)),{'ok':!![]};let _0x4df3ae=_0x49001e;if(_0xafb108){_0x4df3ae=_0x49001e[_0x3b2913(0xba)](_0x292bcc=>_0xafb108['has'](_0x292bcc[_0x3b2913(0x91)]));const _0xe650a9=[..._0xafb108][_0x3b2913(0xba)](_0x309158=>!_0x49001e[_0x3b2913(0xc1)](_0x19e555=>_0x19e555[_0x3b2913(0x91)]===_0x309158));_0xe650a9[_0x3b2913(0xa5)]>0x0&&writeCliSideChannelLine(_0x3b2913(0xa0)+_0xe650a9['join'](',\x20')+'\x1b[0m');if(_0x4df3ae['length']===0x0)throw CliErrors[_0x3b2913(0xb1)](_0x3b2913(0xa1)+[..._0xafb108][_0x3b2913(0x96)](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0x4df3ae[_0x3b2913(0xa5)]+'\x20of\x20'+_0x49001e['length']+'\x20dataset(s)\x1b[0m');}let _0x5cfba8=0x0;const _0xe5c1c6=await generateDatasetDocs(_0x4df3ae,_0x2daa65[_0x3b2913(0x8f)],_0x2daa65[_0x3b2913(0xab)],_0x1db416,(_0x24e428,_0xf044ac,_0x3ed2ca)=>{const _0x108347=_0x3b2913;_0x5cfba8=_0x24e428,process[_0x108347(0xa2)][_0x108347(0xc3)](_0x108347(0x8d)+String(_0x24e428)['padStart'](String(_0xf044ac)['length'])+'/'+_0xf044ac+']\x20'+_0x3ed2ca+_0x108347(0xa7));},_0x109d3b);if(_0x5cfba8>0x0)process[_0x3b2913(0xa2)][_0x3b2913(0xc3)]('\x0a');const _0x1ae64b=_0xe5c1c6['filter'](_0x4d171f=>_0x4d171f[_0x3b2913(0x90)])[_0x3b2913(0xa5)],_0x1a781c=_0xe5c1c6[_0x3b2913(0xba)](_0x20c09b=>!_0x20c09b[_0x3b2913(0x90)])['length'];writeCliSideChannelLine(''),writeCliSideChannelLine('✓\x20Generated\x20'+_0x1ae64b+'\x20doc(s)\x20in\x20'+_0x1db416);if(_0x1a781c>0x0){writeCliSideChannelLine('!\x20'+_0x1a781c+'\x20doc(s)\x20failed');for(const _0x4ab3ab of _0xe5c1c6[_0x3b2913(0xba)](_0xb101f1=>!_0xb101f1[_0x3b2913(0x90)])){writeCliSideChannelLine(_0x3b2913(0xb2)+_0x4ab3ab[_0x3b2913(0xbc)]+'\x20('+_0x4ab3ab['datasetCode']+_0x3b2913(0xb3)+_0x4ab3ab[_0x3b2913(0x89)]);}}return{'ok':_0x1a781c===0x0,'message':_0x1a781c>0x0?_0x3b2913(0xb6)+_0x1ae64b+'\x20succeeded,\x20'+_0x1a781c+_0x3b2913(0x9e):'Doc\x20generation\x20complete:\x20'+_0x1ae64b+_0x3b2913(0xa8)};}};
@@ -1 +1 @@
1
- (function(_0x509634,_0x5bf629){const _0xa0be64=a14_0xb301,_0x15b4bd=_0x509634();while(!![]){try{const _0x112a38=parseInt(_0xa0be64(0x83))/0x1*(parseInt(_0xa0be64(0x85))/0x2)+parseInt(_0xa0be64(0x8e))/0x3*(parseInt(_0xa0be64(0x84))/0x4)+parseInt(_0xa0be64(0x87))/0x5+-parseInt(_0xa0be64(0x88))/0x6+-parseInt(_0xa0be64(0x89))/0x7*(-parseInt(_0xa0be64(0x86))/0x8)+-parseInt(_0xa0be64(0x8c))/0x9*(parseInt(_0xa0be64(0x8d))/0xa)+-parseInt(_0xa0be64(0x8b))/0xb*(-parseInt(_0xa0be64(0x8a))/0xc);if(_0x112a38===_0x5bf629)break;else _0x15b4bd['push'](_0x15b4bd['shift']());}catch(_0x38e10d){_0x15b4bd['push'](_0x15b4bd['shift']());}}}(a14_0x26ee,0x4c1d4));import{apiList}from'../../commands/api/list.js';function a14_0x26ee(){const _0x4d7975=['92604AxXROz','99iwHpQH','27IBoTvC','625010EDjHkm','1638jbAolQ','322PbLSJP','2408oiOkNF','2228obLkVR','24YuhbbP','1040335svVjfD','3727992dXwDdk','363251KFGidn'];a14_0x26ee=function(){return _0x4d7975;};return a14_0x26ee();}import{apiPull}from'../../commands/api/pull.js';function a14_0xb301(_0x37da70,_0x3de00c){_0x37da70=_0x37da70-0x83;const _0x26ee22=a14_0x26ee();let _0xb30176=_0x26ee22[_0x37da70];return _0xb30176;}import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
1
+ function a14_0x47a2(){const _0x4448d9=['463868MIBEeX','4279608ABKibO','11113592TXHCFV','124132oWjXJH','1600788DRUzoL','78694XTerAK','4279370QqknLp'];a14_0x47a2=function(){return _0x4448d9;};return a14_0x47a2();}function a14_0x988a(_0x588e5a,_0x595ffc){_0x588e5a=_0x588e5a-0x12c;const _0x47a2d5=a14_0x47a2();let _0x988aa2=_0x47a2d5[_0x588e5a];return _0x988aa2;}(function(_0x54bef3,_0x2e2c5e){const _0x58fa42=a14_0x988a,_0x3145b0=_0x54bef3();while(!![]){try{const _0x47d4c2=-parseInt(_0x58fa42(0x130))/0x1+-parseInt(_0x58fa42(0x132))/0x2+parseInt(_0x58fa42(0x131))/0x3+parseInt(_0x58fa42(0x12d))/0x4+parseInt(_0x58fa42(0x12c))/0x5+parseInt(_0x58fa42(0x12e))/0x6+-parseInt(_0x58fa42(0x12f))/0x7;if(_0x47d4c2===_0x2e2c5e)break;else _0x3145b0['push'](_0x3145b0['shift']());}catch(_0x3df1b6){_0x3145b0['push'](_0x3145b0['shift']());}}}(a14_0x47a2,0x72272));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
@@ -1 +1 @@
1
- const a15_0x4d97dd=a15_0x12fe;(function(_0x4f7a78,_0x1f2f51){const _0x35ce64=a15_0x12fe,_0x2f3497=_0x4f7a78();while(!![]){try{const _0x3522b4=-parseInt(_0x35ce64(0x1c5))/0x1+parseInt(_0x35ce64(0x1ba))/0x2*(-parseInt(_0x35ce64(0x1b9))/0x3)+parseInt(_0x35ce64(0x1c9))/0x4+-parseInt(_0x35ce64(0x1c1))/0x5*(-parseInt(_0x35ce64(0x1bb))/0x6)+parseInt(_0x35ce64(0x1c3))/0x7+parseInt(_0x35ce64(0x1bf))/0x8+-parseInt(_0x35ce64(0x1c4))/0x9;if(_0x3522b4===_0x1f2f51)break;else _0x2f3497['push'](_0x2f3497['shift']());}catch(_0x200b72){_0x2f3497['push'](_0x2f3497['shift']());}}}(a15_0x4803,0xe88c1));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a15_0x4803(){const _0x406b5f=['name','11071304rBvzdl','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','4895dWMAlZ','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','9719122FmrYRG','23112918QaALDG','731453HslpgQ','appcode','boolean','appCode','6195360bPFbDW','map','push','read','list','rawFlags','4398hzCBvD','694KZiezF','2694WjtKaE','api','isDefault'];a15_0x4803=function(){return _0x406b5f;};return a15_0x4803();}function a15_0x12fe(_0x43b0b3,_0xe6e99e){_0x43b0b3=_0x43b0b3-0x1b9;const _0x480372=a15_0x4803();let _0x12fea8=_0x480372[_0x43b0b3];return _0x12fea8;}import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x4d97dd(0x1bc),'command':a15_0x4d97dd(0x1cd),'description':a15_0x4d97dd(0x1c0),'risk':a15_0x4d97dd(0x1cc),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'global','type':a15_0x4d97dd(0x1c7),'description':a15_0x4d97dd(0x1c2),'default':![]}],async 'execute'(_0x2f8cac){const _0x7900fe=a15_0x4d97dd,_0x437025=_0x2f8cac[_0x7900fe(0x1ce)][_0x7900fe(0x1c6)]?String(_0x2f8cac[_0x7900fe(0x1ce)][_0x7900fe(0x1c6)]):undefined,_0x4a7812=resolveTargetApps(_0x2f8cac,_0x437025);if(_0x4a7812){const _0x17ea50=[];for(const _0x8c733d of _0x4a7812){const _0x48725c=_0x8c733d['cookie']||_0x2f8cac['cookie'],_0x3fa257=_0x8c733d['env']||'production';initEnv(_0x3fa257);const {configArray:_0x4d7078}=await fetchModelList(_0x8c733d[_0x7900fe(0x1c6)],_0x48725c);_0x17ea50[_0x7900fe(0x1cb)](..._0x4d7078[_0x7900fe(0x1ca)](_0x1f0dd2=>({..._0x1f0dd2,'_appName':_0x8c733d[_0x7900fe(0x1be)],'_appCode':_0x8c733d[_0x7900fe(0x1c6)],'_env':_0x3fa257,'_isDefault':_0x8c733d[_0x7900fe(0x1bd)]})));}return{'ok':!![],'data':_0x17ea50};}const {configArray:_0x21b5f0}=await fetchModelList(_0x2f8cac[_0x7900fe(0x1c8)],_0x2f8cac['cookie']);return{'ok':!![],'data':_0x21b5f0};}};
1
+ const a15_0x103332=a15_0x31a8;(function(_0x471217,_0x4657a1){const _0x4e456b=a15_0x31a8,_0x4d86c4=_0x471217();while(!![]){try{const _0x134628=-parseInt(_0x4e456b(0x13e))/0x1*(-parseInt(_0x4e456b(0x139))/0x2)+parseInt(_0x4e456b(0x136))/0x3*(parseInt(_0x4e456b(0x13f))/0x4)+-parseInt(_0x4e456b(0x142))/0x5+-parseInt(_0x4e456b(0x13d))/0x6+-parseInt(_0x4e456b(0x133))/0x7+parseInt(_0x4e456b(0x143))/0x8*(parseInt(_0x4e456b(0x137))/0x9)+-parseInt(_0x4e456b(0x131))/0xa*(-parseInt(_0x4e456b(0x140))/0xb);if(_0x134628===_0x4657a1)break;else _0x4d86c4['push'](_0x4d86c4['shift']());}catch(_0x5a92d1){_0x4d86c4['push'](_0x4d86c4['shift']());}}}(a15_0x4b59,0x841a9));function a15_0x4b59(){const _0x221c6b=['production','50uleuhL','map','2420446KwCKOQ','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','appCode','3NGcgLl','91602ddTFnm','global','10tjWrjb','list','api','env','4887270XYqqzI','170727byJJoy','3248944ZUfyLT','482383mSGBLD','read','1885490jEXqMQ','152PPHiLF','boolean','appcode','cookie','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','isDefault','rawFlags'];a15_0x4b59=function(){return _0x221c6b;};return a15_0x4b59();}import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x31a8(_0x485f68,_0x8f9638){_0x485f68=_0x485f68-0x12d;const _0x4b59c5=a15_0x4b59();let _0x31a828=_0x4b59c5[_0x485f68];return _0x31a828;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x103332(0x13b),'command':a15_0x103332(0x13a),'description':a15_0x103332(0x134),'risk':a15_0x103332(0x141),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x103332(0x138),'type':a15_0x103332(0x144),'description':a15_0x103332(0x12d),'default':![]}],async 'execute'(_0x2e92b5){const _0x5ca42f=a15_0x103332,_0x13a9f1=_0x2e92b5[_0x5ca42f(0x12f)][_0x5ca42f(0x145)]?String(_0x2e92b5['rawFlags'][_0x5ca42f(0x145)]):undefined,_0x4c0905=resolveTargetApps(_0x2e92b5,_0x13a9f1);if(_0x4c0905){const _0xad4548=[];for(const _0x5106d9 of _0x4c0905){const _0x2e9945=_0x5106d9[_0x5ca42f(0x146)]||_0x2e92b5[_0x5ca42f(0x146)],_0x2bb74a=_0x5106d9[_0x5ca42f(0x13c)]||_0x5ca42f(0x130);initEnv(_0x2bb74a);const {configArray:_0x489ef0}=await fetchModelList(_0x5106d9[_0x5ca42f(0x145)],_0x2e9945);_0xad4548['push'](..._0x489ef0[_0x5ca42f(0x132)](_0x25b09d=>({..._0x25b09d,'_appName':_0x5106d9['name'],'_appCode':_0x5106d9[_0x5ca42f(0x145)],'_env':_0x2bb74a,'_isDefault':_0x5106d9[_0x5ca42f(0x12e)]})));}return{'ok':!![],'data':_0xad4548};}const {configArray:_0x41c3d1}=await fetchModelList(_0x2e92b5[_0x5ca42f(0x135)],_0x2e92b5[_0x5ca42f(0x146)]);return{'ok':!![],'data':_0x41c3d1};}};
@@ -1 +1 @@
1
- const a16_0x204a95=a16_0x3e2f;function a16_0x3e2f(_0x561cad,_0xc3e601){_0x561cad=_0x561cad-0x122;const _0x2b014e=a16_0x2b01();let _0x3e2ff8=_0x2b014e[_0x561cad];return _0x3e2ff8;}(function(_0x57b667,_0x34ff2e){const _0xd45de4=a16_0x3e2f,_0x5923fb=_0x57b667();while(!![]){try{const _0x42b90c=parseInt(_0xd45de4(0x128))/0x1*(parseInt(_0xd45de4(0x140))/0x2)+parseInt(_0xd45de4(0x122))/0x3*(-parseInt(_0xd45de4(0x135))/0x4)+parseInt(_0xd45de4(0x12b))/0x5+-parseInt(_0xd45de4(0x13d))/0x6+parseInt(_0xd45de4(0x141))/0x7+-parseInt(_0xd45de4(0x133))/0x8+parseInt(_0xd45de4(0x13e))/0x9;if(_0x42b90c===_0x34ff2e)break;else _0x5923fb['push'](_0x5923fb['shift']());}catch(_0x3b9588){_0x5923fb['push'](_0x5923fb['shift']());}}}(a16_0x2b01,0xb5bde));import a16_0x173a03 from'ora';import a16_0x5342e3 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_0x2b01(){const _0x203990=['4685643JBCaOb','-api','10haObcT','10370675hteOHW','rawFlags','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','Done:\x20','start','cookie','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','modelCount','global','appCode','api','\x20dataset(s)\x20→\x20',')...','str','env','6xzSpKV','message','Pulled\x20','-client','Failed:\x20','...','16939VgwCcB','join','appcode','1971570TtyoGn','length','Output\x20directory\x20(default:\x20','Pulling\x20','name','\x20failed','succeed','\x20model(s)','4315376nmgpch','client','1271796rGOmRO','production','fail','includes','output','apiDir','\x20\x20•\x20','isDefault','3368562pQzRrE'];a16_0x2b01=function(){return _0x203990;};return a16_0x2b01();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':a16_0x204a95(0x14b),'command':'pull','description':a16_0x204a95(0x143)+DEFAULT_API_DIR+'/)','risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':'string','description':a16_0x204a95(0x12d)+DEFAULT_API_DIR+'/)'},{'name':a16_0x204a95(0x149),'type':'boolean','description':a16_0x204a95(0x147),'default':![]}],async 'execute'(_0x28cf0e){const _0x5e5a37=a16_0x204a95,_0x26eb2d=_0x28cf0e[_0x5e5a37(0x142)][_0x5e5a37(0x12a)]?String(_0x28cf0e[_0x5e5a37(0x142)][_0x5e5a37(0x12a)]):undefined,_0x5ce496=_0x28cf0e[_0x5e5a37(0x14e)](_0x5e5a37(0x139))||undefined,_0x15d2c1=resolveTargetApps(_0x28cf0e,_0x26eb2d);if(_0x15d2c1){let _0x1c5caa=0x0,_0x49b26c=0x0;for(const _0x3c4b47 of _0x15d2c1){const _0x564f00=_0x3c4b47[_0x5e5a37(0x146)]||_0x28cf0e[_0x5e5a37(0x146)],_0x30744f=_0x3c4b47[_0x5e5a37(0x14f)]||_0x5e5a37(0x136);initEnv(_0x30744f);const _0x1e54a5=_0x3c4b47[_0x5e5a37(0x13a)]||_0x5ce496||_0x28cf0e['apiDir']||DEFAULT_API_DIR,_0x2fca0e=_0x3c4b47[_0x5e5a37(0x13c)]?'':_0x3c4b47[_0x5e5a37(0x12f)]||_0x3c4b47['appcode'],_0x5ac0f2=a16_0x173a03(_0x5e5a37(0x12e)+_0x3c4b47['name']+'\x20('+_0x3c4b47[_0x5e5a37(0x12a)]+_0x5e5a37(0x14d))[_0x5e5a37(0x145)]();try{const {configArray:_0x2cbae7}=await fetchModelList(_0x3c4b47[_0x5e5a37(0x12a)],_0x564f00),_0x7d5a05=await generateApiFile(_0x2cbae7,_0x2fca0e,_0x3c4b47[_0x5e5a37(0x12a)],_0x3c4b47[_0x5e5a37(0x13c)],_0x30744f,_0x1e54a5,_0x3c4b47[_0x5e5a37(0x12f)]);_0x5ac0f2[_0x5e5a37(0x131)](_0x3c4b47[_0x5e5a37(0x12f)]+':\x20'+_0x2cbae7[_0x5e5a37(0x12c)]+_0x5e5a37(0x14c)+_0x7d5a05[_0x5e5a37(0x148)]+_0x5e5a37(0x132)),writeCliSideChannelLine(_0x5e5a37(0x13b)+_0x7d5a05['apiFilePath']),writeCliSideChannelLine(_0x5e5a37(0x13b)+_0x7d5a05['clientFilePath']),_0x1c5caa++;}catch(_0x322248){_0x5ac0f2[_0x5e5a37(0x137)](_0x3c4b47['name']+':\x20'+(_0x322248 instanceof Error?_0x322248[_0x5e5a37(0x123)]:String(_0x322248))),_0x49b26c++;}}writeCliSideChannelLine('');if(_0x49b26c>0x0)writeCliSideChannelLine('!\x20'+_0x49b26c+'\x20app(s)\x20failed');return{'ok':_0x49b26c===0x0,'message':_0x5e5a37(0x144)+_0x1c5caa+'\x20succeeded,\x20'+_0x49b26c+_0x5e5a37(0x130)};}const _0x348c6c=_0x26eb2d&&_0x26eb2d[_0x5e5a37(0x138)]('-')?_0x26eb2d['split']('-')['slice'](0x1)[_0x5e5a37(0x129)]('-'):'',_0x109c8d=_0x5ce496||_0x28cf0e[_0x5e5a37(0x13a)]||DEFAULT_API_DIR,_0x2a2aaf=!_0x26eb2d,_0x49509e=a16_0x173a03('Pulling\x20API\x20config\x20for\x20'+_0x28cf0e[_0x5e5a37(0x14a)]+_0x5e5a37(0x127))[_0x5e5a37(0x145)]();try{const {configArray:_0x22a04d}=await fetchModelList(_0x28cf0e[_0x5e5a37(0x14a)],_0x28cf0e[_0x5e5a37(0x146)]),_0x25cd2a=await generateApiFile(_0x22a04d,_0x348c6c,_0x28cf0e[_0x5e5a37(0x14a)],_0x2a2aaf,getEnv(),_0x109c8d);_0x49509e['succeed'](_0x5e5a37(0x124)+_0x22a04d[_0x5e5a37(0x12c)]+'\x20dataset(s),\x20generated\x20'+_0x25cd2a[_0x5e5a37(0x148)]+_0x5e5a37(0x132));const _0x55ec5b=_0x348c6c?_0x348c6c+_0x5e5a37(0x13f):_0x5e5a37(0x14b),_0x226cdd=_0x348c6c?_0x348c6c+_0x5e5a37(0x125):_0x5e5a37(0x134);return writeCliSideChannelLine(_0x5e5a37(0x13b)+a16_0x5342e3[_0x5e5a37(0x129)](_0x109c8d,_0x55ec5b+'.ts')),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x5342e3[_0x5e5a37(0x129)](_0x109c8d,_0x226cdd+'.ts')),{'ok':!![],'data':{'datasetCount':_0x22a04d[_0x5e5a37(0x12c)],'modelCount':_0x25cd2a['modelCount']}};}catch(_0x3b9834){_0x49509e['fail'](_0x5e5a37(0x126)+(_0x3b9834 instanceof Error?_0x3b9834[_0x5e5a37(0x123)]:String(_0x3b9834)));throw _0x3b9834;}}};
1
+ function a16_0x4530(){const _0xa347cc=['-client','\x20succeeded,\x20','clientFilePath','name','Pulled\x20','103198pPdcXe','-api','Done:\x20','6GdOlrE','6258342ahBWuM','\x20dataset(s)\x20→\x20','Pulling\x20','appCode','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','\x20dataset(s),\x20generated\x20','3104MWFadI','client','isDefault','3247105lWowDd','apiDir','join','7muCBNj','output','.ts','645953QMNAxn','length','modelCount','\x20\x20•\x20','17399162yoxIOb','4doepYp','production',')...','...','succeed','Output\x20directory\x20(default:\x20','fail','global','boolean','cookie','slice','appcode','env','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','8820hNEbCY','start','\x20model(s)','\x20failed','\x20app(s)\x20failed','rawFlags','write','6562790xFPoSi','string','Pulling\x20API\x20config\x20for\x20','includes','pull'];a16_0x4530=function(){return _0xa347cc;};return a16_0x4530();}const a16_0x431857=a16_0x3902;(function(_0xa5bb7,_0x573728){const _0x591969=a16_0x3902,_0x35cf2e=_0xa5bb7();while(!![]){try{const _0x11fa7=-parseInt(_0x591969(0x182))/0x1+parseInt(_0x591969(0x16f))/0x2*(-parseInt(_0x591969(0x172))/0x3)+-parseInt(_0x591969(0x187))/0x4*(parseInt(_0x591969(0x17c))/0x5)+-parseInt(_0x591969(0x173))/0x6*(-parseInt(_0x591969(0x17f))/0x7)+parseInt(_0x591969(0x179))/0x8*(parseInt(_0x591969(0x15e))/0x9)+-parseInt(_0x591969(0x165))/0xa+parseInt(_0x591969(0x186))/0xb;if(_0x11fa7===_0x573728)break;else _0x35cf2e['push'](_0x35cf2e['shift']());}catch(_0x455321){_0x35cf2e['push'](_0x35cf2e['shift']());}}}(a16_0x4530,0xe7fac));import a16_0xc90938 from'ora';import a16_0x2a2dd6 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';function a16_0x3902(_0x34b553,_0x55a83d){_0x34b553=_0x34b553-0x152;const _0x453085=a16_0x4530();let _0x39021e=_0x453085[_0x34b553];return _0x39021e;}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_0x431857(0x169),'description':a16_0x431857(0x177)+DEFAULT_API_DIR+'/)','risk':a16_0x431857(0x164),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x431857(0x180),'type':a16_0x431857(0x166),'description':a16_0x431857(0x155)+DEFAULT_API_DIR+'/)'},{'name':a16_0x431857(0x157),'type':a16_0x431857(0x158),'description':a16_0x431857(0x15d),'default':![]}],async 'execute'(_0xaa3983){const _0x5adcb2=a16_0x431857,_0x46130e=_0xaa3983[_0x5adcb2(0x163)]['appcode']?String(_0xaa3983[_0x5adcb2(0x163)][_0x5adcb2(0x15b)]):undefined,_0xadcbcd=_0xaa3983['str']('output')||undefined,_0x5e6016=resolveTargetApps(_0xaa3983,_0x46130e);if(_0x5e6016){let _0x1231a8=0x0,_0x376758=0x0;for(const _0x50e284 of _0x5e6016){const _0x12071b=_0x50e284['cookie']||_0xaa3983[_0x5adcb2(0x159)],_0x1c2bb7=_0x50e284[_0x5adcb2(0x15c)]||_0x5adcb2(0x188);initEnv(_0x1c2bb7);const _0x5e53b8=_0x50e284[_0x5adcb2(0x17d)]||_0xadcbcd||_0xaa3983[_0x5adcb2(0x17d)]||DEFAULT_API_DIR,_0x2cc93a=_0x50e284[_0x5adcb2(0x17b)]?'':_0x50e284['name']||_0x50e284[_0x5adcb2(0x15b)],_0x25ede4=a16_0xc90938(_0x5adcb2(0x175)+_0x50e284[_0x5adcb2(0x16d)]+'\x20('+_0x50e284[_0x5adcb2(0x15b)]+_0x5adcb2(0x152))[_0x5adcb2(0x15f)]();try{const {configArray:_0x2bbf5b}=await fetchModelList(_0x50e284[_0x5adcb2(0x15b)],_0x12071b),_0x25ed78=await generateApiFile(_0x2bbf5b,_0x2cc93a,_0x50e284[_0x5adcb2(0x15b)],_0x50e284[_0x5adcb2(0x17b)],_0x1c2bb7,_0x5e53b8,_0x50e284[_0x5adcb2(0x16d)]);_0x25ede4[_0x5adcb2(0x154)](_0x50e284[_0x5adcb2(0x16d)]+':\x20'+_0x2bbf5b[_0x5adcb2(0x183)]+_0x5adcb2(0x174)+_0x25ed78['modelCount']+_0x5adcb2(0x160)),writeCliSideChannelLine('\x20\x20•\x20'+_0x25ed78['apiFilePath']),writeCliSideChannelLine(_0x5adcb2(0x185)+_0x25ed78[_0x5adcb2(0x16c)]),_0x1231a8++;}catch(_0xd0e7f0){_0x25ede4[_0x5adcb2(0x156)](_0x50e284[_0x5adcb2(0x16d)]+':\x20'+(_0xd0e7f0 instanceof Error?_0xd0e7f0['message']:String(_0xd0e7f0))),_0x376758++;}}writeCliSideChannelLine('');if(_0x376758>0x0)writeCliSideChannelLine('!\x20'+_0x376758+_0x5adcb2(0x162));return{'ok':_0x376758===0x0,'message':_0x5adcb2(0x171)+_0x1231a8+_0x5adcb2(0x16b)+_0x376758+_0x5adcb2(0x161)};}const _0xc45653=_0x46130e&&_0x46130e[_0x5adcb2(0x168)]('-')?_0x46130e['split']('-')[_0x5adcb2(0x15a)](0x1)[_0x5adcb2(0x17e)]('-'):'',_0x29c800=_0xadcbcd||_0xaa3983[_0x5adcb2(0x17d)]||DEFAULT_API_DIR,_0x1b9f69=!_0x46130e,_0x4fe520=a16_0xc90938(_0x5adcb2(0x167)+_0xaa3983[_0x5adcb2(0x176)]+_0x5adcb2(0x153))[_0x5adcb2(0x15f)]();try{const {configArray:_0x2ad157}=await fetchModelList(_0xaa3983[_0x5adcb2(0x176)],_0xaa3983[_0x5adcb2(0x159)]),_0x85c3a5=await generateApiFile(_0x2ad157,_0xc45653,_0xaa3983['appCode'],_0x1b9f69,getEnv(),_0x29c800);_0x4fe520['succeed'](_0x5adcb2(0x16e)+_0x2ad157['length']+_0x5adcb2(0x178)+_0x85c3a5[_0x5adcb2(0x184)]+_0x5adcb2(0x160));const _0x4cbc2b=_0xc45653?_0xc45653+_0x5adcb2(0x170):'api',_0x5128f3=_0xc45653?_0xc45653+_0x5adcb2(0x16a):_0x5adcb2(0x17a);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x2a2dd6['join'](_0x29c800,_0x4cbc2b+'.ts')),writeCliSideChannelLine(_0x5adcb2(0x185)+a16_0x2a2dd6[_0x5adcb2(0x17e)](_0x29c800,_0x5128f3+_0x5adcb2(0x181))),{'ok':!![],'data':{'datasetCount':_0x2ad157[_0x5adcb2(0x183)],'modelCount':_0x85c3a5[_0x5adcb2(0x184)]}};}catch(_0x5cc4f7){_0x4fe520[_0x5adcb2(0x156)]('Failed:\x20'+(_0x5cc4f7 instanceof Error?_0x5cc4f7['message']:String(_0x5cc4f7)));throw _0x5cc4f7;}}};
@@ -1 +1 @@
1
- function a17_0x3219(_0x57c171,_0x31b32f){_0x57c171=_0x57c171-0x75;const _0x30c22c=a17_0x30c2();let _0x32194b=_0x30c22c[_0x57c171];return _0x32194b;}(function(_0x368920,_0x46199e){const _0x3ca10b=a17_0x3219,_0x1529ba=_0x368920();while(!![]){try{const _0x33fe17=parseInt(_0x3ca10b(0x83))/0x1+-parseInt(_0x3ca10b(0x8a))/0x2+-parseInt(_0x3ca10b(0x87))/0x3*(-parseInt(_0x3ca10b(0x7d))/0x4)+parseInt(_0x3ca10b(0x88))/0x5+parseInt(_0x3ca10b(0x75))/0x6*(parseInt(_0x3ca10b(0x86))/0x7)+parseInt(_0x3ca10b(0x79))/0x8*(parseInt(_0x3ca10b(0x7a))/0x9)+-parseInt(_0x3ca10b(0x7f))/0xa;if(_0x33fe17===_0x46199e)break;else _0x1529ba['push'](_0x1529ba['shift']());}catch(_0x12c4ac){_0x1529ba['push'](_0x1529ba['shift']());}}}(a17_0x30c2,0xb45a6));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0xf09b4a,_0x44f928){const _0x2c7cd9=a17_0x3219;if(_0x44f928)return null;const _0x4f7be1=_0xf09b4a['bool'](_0x2c7cd9(0x76))?_0x2c7cd9(0x7c):_0x2c7cd9(0x89);let _0x442ceb=getMultiAppConfigs(_0x4f7be1);if(!_0x442ceb||_0x442ceb[_0x2c7cd9(0x77)]===0x0)return null;if(_0xf09b4a[_0x2c7cd9(0x82)]){const _0x4a0317=_0x442ceb[_0x2c7cd9(0x81)](_0x379cc0=>_0x379cc0[_0x2c7cd9(0x85)]===_0xf09b4a[_0x2c7cd9(0x82)]);if(_0x4a0317[_0x2c7cd9(0x77)]===0x0){const _0x13865f=_0x442ceb[_0x2c7cd9(0x84)](_0x4ea834=>_0x4ea834[_0x2c7cd9(0x85)])[_0x2c7cd9(0x7b)](',\x20');throw CliErrors[_0x2c7cd9(0x78)](_0x2c7cd9(0x7e)+_0xf09b4a['selectedAppName']+_0x2c7cd9(0x80)+_0x13865f);}_0x442ceb=_0x4a0317;}return _0x442ceb;}function a17_0x30c2(){const _0x300cc5=['filter','selectedAppName','1206486kZOSQG','map','name','133XPznzj','423oNktUq','3777870tEGlSs','project','1409072ZpgMPL','175134slEyjg','global','length','validation','1395544MkBjVa','9KkgXkm','join','merged','22152nUxZXt','App\x20\x22','20286900YWHiXa','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'];a17_0x30c2=function(){return _0x300cc5;};return a17_0x30c2();}
1
+ function a17_0x33e1(){const _0x30b1dd=['842848ZHXtyx','selectedAppName','bool','project','22660092aUAAmC','1817970FIDeFZ','30KHaBpH','2077917lvEAlo','913360GvpcLq','global','merged','validation','map','filter','length','App\x20\x22','name','1657082TTtGCi','1369940qfCBkC','77rmhcGH','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'];a17_0x33e1=function(){return _0x30b1dd;};return a17_0x33e1();}(function(_0xca9c73,_0x4cc644){const _0x46bfe4=a17_0x42b9,_0x52270b=_0xca9c73();while(!![]){try{const _0x544dae=-parseInt(_0x46bfe4(0x10f))/0x1+parseInt(_0x46bfe4(0x11b))/0x2+-parseInt(_0x46bfe4(0x111))/0x3+parseInt(_0x46bfe4(0x11c))/0x4+-parseInt(_0x46bfe4(0x112))/0x5*(-parseInt(_0x46bfe4(0x110))/0x6)+-parseInt(_0x46bfe4(0x11d))/0x7*(parseInt(_0x46bfe4(0x11f))/0x8)+parseInt(_0x46bfe4(0x10e))/0x9;if(_0x544dae===_0x4cc644)break;else _0x52270b['push'](_0x52270b['shift']());}catch(_0x46afa3){_0x52270b['push'](_0x52270b['shift']());}}}(a17_0x33e1,0xe3b29));function a17_0x42b9(_0x5be58d,_0x2b00dd){_0x5be58d=_0x5be58d-0x10b;const _0x33e144=a17_0x33e1();let _0x42b9ee=_0x33e144[_0x5be58d];return _0x42b9ee;}import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x1e65a5,_0x2fe0a2){const _0x251304=a17_0x42b9;if(_0x2fe0a2)return null;const _0x1399a7=_0x1e65a5[_0x251304(0x10c)](_0x251304(0x113))?_0x251304(0x114):_0x251304(0x10d);let _0x7e4385=getMultiAppConfigs(_0x1399a7);if(!_0x7e4385||_0x7e4385[_0x251304(0x118)]===0x0)return null;if(_0x1e65a5[_0x251304(0x10b)]){const _0x2dd217=_0x7e4385[_0x251304(0x117)](_0x5e6f7d=>_0x5e6f7d[_0x251304(0x11a)]===_0x1e65a5[_0x251304(0x10b)]);if(_0x2dd217['length']===0x0){const _0xa46f27=_0x7e4385[_0x251304(0x116)](_0x112e7c=>_0x112e7c['name'])['join'](',\x20');throw CliErrors[_0x251304(0x115)](_0x251304(0x119)+_0x1e65a5['selectedAppName']+_0x251304(0x11e)+_0xa46f27);}_0x7e4385=_0x2dd217;}return _0x7e4385;}
@@ -1 +1 @@
1
- const a18_0x37503a=a18_0x39b1;(function(_0x30b312,_0x2ebf1b){const _0x248a9c=a18_0x39b1,_0x3ff872=_0x30b312();while(!![]){try{const _0x4abdee=parseInt(_0x248a9c(0xa8))/0x1*(parseInt(_0x248a9c(0xb7))/0x2)+parseInt(_0x248a9c(0xb0))/0x3+-parseInt(_0x248a9c(0xb9))/0x4*(-parseInt(_0x248a9c(0x9c))/0x5)+-parseInt(_0x248a9c(0x9f))/0x6*(-parseInt(_0x248a9c(0xa4))/0x7)+parseInt(_0x248a9c(0xb3))/0x8*(parseInt(_0x248a9c(0xab))/0x9)+parseInt(_0x248a9c(0xa7))/0xa+-parseInt(_0x248a9c(0xa0))/0xb;if(_0x4abdee===_0x2ebf1b)break;else _0x3ff872['push'](_0x3ff872['shift']());}catch(_0x424487){_0x3ff872['push'](_0x3ff872['shift']());}}}(a18_0xf2b5,0x46410));function a18_0x39b1(_0x35c0c0,_0x3e99fc){_0x35c0c0=_0x35c0c0-0x99;const _0xf2b505=a18_0xf2b5();let _0x39b1dd=_0xf2b505[_0x35c0c0];return _0x39b1dd;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';function a18_0xf2b5(){const _0xa91ccf=['boolean','bool','24nVGcQo','13137619QDNzUi','App\x20code','args','string','445249WaTfic','name','apps','383360TcDtzR','54053PAqqUq','global','App\x20profile\x20name','962469abmiZc','\x20app\x20\x22','\x22\x20(appcode:\x20','Usage:\x20','app','1589454iuiXIH','str','\x20app\x20add\x20<name>\x20--appcode\x20<code>','40awotEm','write','appcode','trim','4TvuSlO','defaultApp','33392TEwled','Missing\x20app\x20name.','add','\x20Set\x20as\x20default\x20app.','10UvABms'];a18_0xf2b5=function(){return _0xa91ccf;};return a18_0xf2b5();}import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x38d3c3){const _0x13fe8c=a18_0x39b1,_0x25022b=_0x38d3c3['args'][0x0]?.[_0x13fe8c(0xb6)]();if(!_0x25022b)throw CliErrors['validation']('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');}async function execute(_0x42f8e8){const _0x2af7ed=a18_0x39b1,_0x235232=_0x42f8e8[_0x2af7ed(0xa2)][0x0]?.[_0x2af7ed(0xb6)]();if(!_0x235232)throw CliErrors['validation'](_0x2af7ed(0x99),_0x2af7ed(0xae)+CLI_BIN_NAME+_0x2af7ed(0xb2));const _0x2ff2ba=_0x42f8e8[_0x2af7ed(0xb1)](_0x2af7ed(0xb5));if(!_0x2ff2ba)throw CliErrors['flagMissing'](_0x2af7ed(0xb5),_0x2af7ed(0xae)+CLI_BIN_NAME+_0x2af7ed(0xb2));const _0x57e66e={'global':_0x42f8e8[_0x2af7ed(0x9e)](_0x2af7ed(0xa9))},_0x5e99e5=readConfig(_0x57e66e);if(!_0x5e99e5[_0x2af7ed(0xa6)])_0x5e99e5[_0x2af7ed(0xa6)]={};const _0x4ee8ba={'appcode':_0x2ff2ba,...collectAppProfileOverrides(_0x2f4c1a=>_0x42f8e8['str'](_0x2f4c1a))},_0x2d3c44=_0x5e99e5[_0x2af7ed(0xa6)],_0x42589f=!!_0x2d3c44[_0x235232];_0x2d3c44[_0x235232]=_0x4ee8ba;if(!_0x5e99e5[_0x2af7ed(0xb8)])_0x5e99e5[_0x2af7ed(0xb8)]=_0x235232;writeConfig(_0x5e99e5,_0x57e66e);const _0x10b16f=!_0x42589f&&_0x5e99e5[_0x2af7ed(0xb8)]===_0x235232?_0x2af7ed(0x9b):'',_0x4e6b85=(_0x42589f?'Updated':'Added')+_0x2af7ed(0xac)+_0x235232+_0x2af7ed(0xad)+_0x2ff2ba+')'+scopeLabel(_0x57e66e)+'.'+_0x10b16f;return{'ok':!![],'message':_0x4e6b85};}export const appAddDefinition={'service':a18_0x37503a(0xaf),'command':a18_0x37503a(0x9a),'description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a18_0x37503a(0xb4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x37503a(0xa5),'description':a18_0x37503a(0xaa),'required':!![]}],'flags':[{'name':a18_0x37503a(0xb5),'type':a18_0x37503a(0xa3),'description':a18_0x37503a(0xa1),'required':!![]},{'name':'global','type':a18_0x37503a(0x9d),'description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ function a18_0x5c45(_0x1771e6,_0x459b11){_0x1771e6=_0x1771e6-0x1dc;const _0x2e3085=a18_0x2e30();let _0x5c45c8=_0x2e3085[_0x1771e6];return _0x5c45c8;}const a18_0xef35c8=a18_0x5c45;function a18_0x2e30(){const _0x4d36c8=['Added','Add\x20or\x20update\x20an\x20app\x20in\x20config','appcode','\x20Set\x20as\x20default\x20app.','name','app','2818424KWqHjj','str','Updated','validation','bool','416672lzUuTV','725Gjlllr','\x20app\x20add\x20<name>\x20--appcode\x20<code>','defaultApp','6642414PMBXzx','2poEZpn','\x22\x20(appcode:\x20','3991932vBHSrU','2011743dtBIZO','Use\x20global\x20config\x20scope','13612aGMRWS','string','apps','boolean','App\x20code','write','App\x20profile\x20name','Usage:\x20','10FUVkHd','4933467oZJmFK','trim','args','global'];a18_0x2e30=function(){return _0x4d36c8;};return a18_0x2e30();}(function(_0x393548,_0x5d226f){const _0x31ca33=a18_0x5c45,_0x1447e6=_0x393548();while(!![]){try{const _0x27364a=-parseInt(_0x31ca33(0x1e1))/0x1*(parseInt(_0x31ca33(0x1dc))/0x2)+parseInt(_0x31ca33(0x1e4))/0x3+parseInt(_0x31ca33(0x1e6))/0x4*(parseInt(_0x31ca33(0x1dd))/0x5)+-parseInt(_0x31ca33(0x1e3))/0x6+parseInt(_0x31ca33(0x1ef))/0x7+parseInt(_0x31ca33(0x1f9))/0x8+-parseInt(_0x31ca33(0x1e0))/0x9*(parseInt(_0x31ca33(0x1ee))/0xa);if(_0x27364a===_0x5d226f)break;else _0x1447e6['push'](_0x1447e6['shift']());}catch(_0x4af07a){_0x1447e6['push'](_0x1447e6['shift']());}}}(a18_0x2e30,0x61ea4));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x13171e){const _0xdbdc5f=a18_0x5c45,_0x1f2539=_0x13171e[_0xdbdc5f(0x1f1)][0x0]?.['trim']();if(!_0x1f2539)throw CliErrors[_0xdbdc5f(0x1fc)]('Missing\x20app\x20name.',_0xdbdc5f(0x1ed)+CLI_BIN_NAME+_0xdbdc5f(0x1de));}async function execute(_0x433cd0){const _0x1dbb57=a18_0x5c45,_0x2f61ba=_0x433cd0['args'][0x0]?.[_0x1dbb57(0x1f0)]();if(!_0x2f61ba)throw CliErrors[_0x1dbb57(0x1fc)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x1dbb57(0x1de));const _0x526b0a=_0x433cd0[_0x1dbb57(0x1fa)]('appcode');if(!_0x526b0a)throw CliErrors['flagMissing'](_0x1dbb57(0x1f5),'Usage:\x20'+CLI_BIN_NAME+_0x1dbb57(0x1de));const _0x5d30b7={'global':_0x433cd0[_0x1dbb57(0x1fd)](_0x1dbb57(0x1f2))},_0x1ad7a0=readConfig(_0x5d30b7);if(!_0x1ad7a0['apps'])_0x1ad7a0[_0x1dbb57(0x1e8)]={};const _0x34c2fb={'appcode':_0x526b0a,...collectAppProfileOverrides(_0x132139=>_0x433cd0[_0x1dbb57(0x1fa)](_0x132139))},_0x1d2fcc=_0x1ad7a0[_0x1dbb57(0x1e8)],_0xcd0347=!!_0x1d2fcc[_0x2f61ba];_0x1d2fcc[_0x2f61ba]=_0x34c2fb;if(!_0x1ad7a0[_0x1dbb57(0x1df)])_0x1ad7a0[_0x1dbb57(0x1df)]=_0x2f61ba;writeConfig(_0x1ad7a0,_0x5d30b7);const _0x2d447a=!_0xcd0347&&_0x1ad7a0[_0x1dbb57(0x1df)]===_0x2f61ba?_0x1dbb57(0x1f6):'',_0x2bef61=(_0xcd0347?_0x1dbb57(0x1fb):_0x1dbb57(0x1f3))+'\x20app\x20\x22'+_0x2f61ba+_0x1dbb57(0x1e2)+_0x526b0a+')'+scopeLabel(_0x5d30b7)+'.'+_0x2d447a;return{'ok':!![],'message':_0x2bef61};}export const appAddDefinition={'service':a18_0xef35c8(0x1f8),'command':'add','description':a18_0xef35c8(0x1f4),'risk':a18_0xef35c8(0x1eb),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0xef35c8(0x1f7),'description':a18_0xef35c8(0x1ec),'required':!![]}],'flags':[{'name':a18_0xef35c8(0x1f5),'type':a18_0xef35c8(0x1e7),'description':a18_0xef35c8(0x1ea),'required':!![]},{'name':a18_0xef35c8(0x1f2),'type':a18_0xef35c8(0x1e9),'description':a18_0xef35c8(0x1e5),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};