@lovrabet/rabetbase-cli 2.0.11 → 2.0.13

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 (140) 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/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/pull.js +1 -0
  86. package/lib/commands/sql/save.js +1 -1
  87. package/lib/commands/sql/shared.js +1 -0
  88. package/lib/commands/sql/validate.js +1 -1
  89. package/lib/constant/cli.js +1 -1
  90. package/lib/constant/domain.js +1 -1
  91. package/lib/constant/env.js +1 -1
  92. package/lib/constant/paths.js +1 -1
  93. package/lib/context.js +1 -1
  94. package/lib/core/alias-resolver.js +1 -1
  95. package/lib/core/api-client.js +1 -1
  96. package/lib/core/bff/config.js +1 -1
  97. package/lib/core/bff/file-system.js +1 -1
  98. package/lib/core/bff/hash.js +1 -1
  99. package/lib/core/bff/lock.js +1 -1
  100. package/lib/core/bff/utils.js +1 -1
  101. package/lib/core/db-resolver.js +1 -1
  102. package/lib/core/sql-validator.js +1 -1
  103. package/lib/errors.js +1 -1
  104. package/lib/framework/build-all-flags.js +1 -1
  105. package/lib/framework/flags.js +1 -1
  106. package/lib/framework/help.js +1 -1
  107. package/lib/framework/index.js +1 -1
  108. package/lib/framework/output.js +1 -1
  109. package/lib/framework/response.js +1 -1
  110. package/lib/framework/runner.js +1 -1
  111. package/lib/framework/schema-export.js +1 -1
  112. package/lib/framework/types.js +1 -1
  113. package/lib/generated/build-info.js +1 -1
  114. package/lib/help.js +1 -1
  115. package/lib/skills/main.js +1 -1
  116. package/lib/skills/npx-skills-add.js +1 -1
  117. package/lib/telemetry/cli-command-trace.js +1 -1
  118. package/lib/telemetry/cli-help-trace.js +1 -1
  119. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  120. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  121. package/lib/telemetry/send-cli-trace-log.js +1 -1
  122. package/lib/utils/ai_config.js +1 -1
  123. package/lib/utils/apply-jq-filter.js +1 -1
  124. package/lib/utils/cdn-config.js +1 -1
  125. package/lib/utils/check-sdk-version.js +1 -1
  126. package/lib/utils/cli-version-check.js +1 -1
  127. package/lib/utils/config.js +1 -1
  128. package/lib/utils/copy-directory.js +1 -1
  129. package/lib/utils/file-utils.js +1 -1
  130. package/lib/utils/guides-cdn.js +1 -1
  131. package/lib/utils/http-client.js +1 -1
  132. package/lib/utils/is-non-interactive.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/platform.js +1 -1
  135. package/lib/utils/rules-cdn.js +1 -1
  136. package/lib/utils/sleep.js +1 -1
  137. package/lib/utils/template-replacer.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/with-active-cookie.js +1 -1
  140. package/package.json +1 -1
@@ -1 +1 @@
1
- const a0_0x5c3e26=a0_0x2fd3;(function(_0x149069,_0x4f2b02){const _0x56654d=a0_0x2fd3,_0x309f83=_0x149069();while(!![]){try{const _0x51f3b1=-parseInt(_0x56654d(0x15b))/0x1+parseInt(_0x56654d(0x160))/0x2*(parseInt(_0x56654d(0x15c))/0x3)+parseInt(_0x56654d(0x168))/0x4+-parseInt(_0x56654d(0x157))/0x5+parseInt(_0x56654d(0x163))/0x6*(-parseInt(_0x56654d(0x172))/0x7)+-parseInt(_0x56654d(0x159))/0x8+-parseInt(_0x56654d(0x16e))/0x9*(-parseInt(_0x56654d(0x152))/0xa);if(_0x51f3b1===_0x4f2b02)break;else _0x309f83['push'](_0x309f83['shift']());}catch(_0x1fa3d8){_0x309f83['push'](_0x309f83['shift']());}}}(a0_0x37d6,0x45fea));import{mkdirSync,writeFileSync}from'node:fs';function a0_0x2fd3(_0x5b12fe,_0x10d5cd){_0x5b12fe=_0x5b12fe-0x151;const _0x37d638=a0_0x37d6();let _0x2fd3e1=_0x37d638[_0x5b12fe];return _0x2fd3e1;}function a0_0x37d6(){const _0x16463c=[']\x20Generating:\x20','✓\x20Generated:\x20','511LQlrPE','length','生成文档失败:\x20','10ePUMWQ','tableName','markdown','utf8','Invalid\x20response\x20format\x20(','1354290lzyTpv','.md\x20-\x20','4254688rjLnWS','Waiting\x203\x20seconds...\x0a','121299ohenJX','122022XuhHht','Fetch\x20doc\x20(','生成文档成功:\x20','.md','22rUswbW','success','/api/node-toolbox/api-doc-generator','44952BtKMao','name','push','log','✗\x20Failed:\x20','16160uCDfFF','.md\x20(','datasetCode','string','api-doc','./docs','11755377oLnbWO','):\x20missing\x20data.markdown\x20field'];a0_0x37d6=function(){return _0x16463c;};return a0_0x37d6();}import a0_0x2af9b1 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(_0x11cbe0){const _0x1e7f25=a0_0x2fd3,{appCode:_0x340afb,cookie:_0x3ccd4d,datasetCode:_0x4c255e,datasetId:_0x2ced4b,extraParams:_0x5d4295}=_0x11cbe0,_0x1e14a1=getApiDomain()+_0x1e7f25(0x162),_0x86bff4=await platformFetch(_0x1e14a1,{'method':'POST','body':{'appCode':_0x340afb,'datasetCode':_0x4c255e,'datasetId':_0x2ced4b,..._0x5d4295||{}},'cookie':_0x3ccd4d,'label':_0x1e7f25(0x15d)+_0x4c255e+')'});if(!_0x86bff4||typeof _0x86bff4[_0x1e7f25(0x154)]!==_0x1e7f25(0x16b))throw new Error(_0x1e7f25(0x156)+_0x4c255e+_0x1e7f25(0x16f));return _0x86bff4[_0x1e7f25(0x154)];}function delay(_0x308a6a){return new Promise(_0x4f9d60=>setTimeout(_0x4f9d60,_0x308a6a));}export async function generateDatasetDocs(_0x2e4598,_0x42dcbb,_0xd47cf1,_0x239d25=a0_0x5c3e26(0x16d),_0xb70c47,_0x3754f2){const _0x4399a7=a0_0x5c3e26;mkdirSync(_0x239d25,{'recursive':!![]});const _0x13417c=[],_0x3f8bf4=_0x2e4598[_0x4399a7(0x173)];console['log']('\x0a'+_0x3f8bf4+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x16bfc0=0x0;_0x16bfc0<_0x2e4598[_0x4399a7(0x173)];_0x16bfc0++){const _0x59a03a=_0x2e4598[_0x16bfc0],_0x17486a=_0x16bfc0+0x1,_0x47e0ac=_0x59a03a[_0x4399a7(0x153)];try{console[_0x4399a7(0x166)]('['+_0x17486a+'/'+_0x3f8bf4+_0x4399a7(0x170)+_0x47e0ac+_0x4399a7(0x169)+_0x59a03a[_0x4399a7(0x164)]+')');if(_0xb70c47)_0xb70c47(_0x17486a,_0x3f8bf4,_0x47e0ac);const _0x4607ed=await fetchDatasetDoc({'appCode':_0x42dcbb,'cookie':_0xd47cf1,'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetId':_0x59a03a['id'],'enableAI':![],'extraParams':_0x3754f2}),_0x470453=a0_0x2af9b1['join'](_0x239d25,_0x47e0ac+_0x4399a7(0x15f));writeFileSync(_0x470453,_0x4607ed,{'encoding':_0x4399a7(0x155)}),console[_0x4399a7(0x166)](_0x4399a7(0x171)+_0x47e0ac+'.md'),logger[_0x4399a7(0x161)](_0x4399a7(0x16c),_0x4399a7(0x15e)+_0x47e0ac,undefined,{'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetName':_0x59a03a[_0x4399a7(0x164)],'filePath':_0x470453,'progress':_0x17486a+'/'+_0x3f8bf4}),_0x13417c[_0x4399a7(0x165)]({'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetName':_0x59a03a['name'],'filePath':_0x470453,'success':!![]});if(_0x17486a<_0x3f8bf4)await delay(0x1388);}catch(_0x22db03){const _0xee0d0b=_0x22db03 instanceof Error?_0x22db03['message']:String(_0x22db03);console[_0x4399a7(0x166)](_0x4399a7(0x167)+_0x47e0ac+_0x4399a7(0x158)+_0xee0d0b),logger['error'](_0x4399a7(0x16c),_0x4399a7(0x151)+_0x59a03a['datasetCode'],{'datasetCode':_0x59a03a['datasetCode'],'datasetName':_0x59a03a[_0x4399a7(0x164)],'error':_0xee0d0b,'progress':_0x17486a+'/'+_0x3f8bf4}),_0x13417c[_0x4399a7(0x165)]({'datasetCode':_0x59a03a[_0x4399a7(0x16a)],'datasetName':_0x59a03a['name'],'filePath':'','success':![],'error':_0xee0d0b}),_0x17486a<_0x3f8bf4&&(console[_0x4399a7(0x166)](_0x4399a7(0x15a)),await delay(0xbb8));}}return _0x13417c;}
1
+ const a0_0x2fc94b=a0_0x15eb;(function(_0x26815c,_0x1e398b){const _0xd022dc=a0_0x15eb,_0xf803fd=_0x26815c();while(!![]){try{const _0x1f1b5e=-parseInt(_0xd022dc(0xe2))/0x1*(-parseInt(_0xd022dc(0xe8))/0x2)+-parseInt(_0xd022dc(0xe1))/0x3*(parseInt(_0xd022dc(0xe5))/0x4)+parseInt(_0xd022dc(0xdd))/0x5*(-parseInt(_0xd022dc(0xe7))/0x6)+parseInt(_0xd022dc(0xe9))/0x7*(parseInt(_0xd022dc(0xd7))/0x8)+parseInt(_0xd022dc(0xea))/0x9+-parseInt(_0xd022dc(0xf4))/0xa*(parseInt(_0xd022dc(0xd2))/0xb)+parseInt(_0xd022dc(0xde))/0xc;if(_0x1f1b5e===_0x1e398b)break;else _0xf803fd['push'](_0xf803fd['shift']());}catch(_0x1f4061){_0xf803fd['push'](_0xf803fd['shift']());}}}(a0_0x37ea,0xab8d7));function a0_0x15eb(_0x2c3bd2,_0x3369ec){_0x2c3bd2=_0x2c3bd2-0xd2;const _0x37eaf6=a0_0x37ea();let _0x15ebc8=_0x37eaf6[_0x2c3bd2];return _0x15ebc8;}import{mkdirSync,writeFileSync}from'node:fs';import a0_0x203994 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(_0x2bebd8){const _0x55bef2=a0_0x15eb,{appCode:_0x1c3b86,cookie:_0x4ee7e6,datasetCode:_0x5437d1,datasetId:_0x48bfd0,extraParams:_0x550fd6}=_0x2bebd8,_0x222360=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x1de532=await platformFetch(_0x222360,{'method':'POST','body':{'appCode':_0x1c3b86,'datasetCode':_0x5437d1,'datasetId':_0x48bfd0,..._0x550fd6||{}},'cookie':_0x4ee7e6,'label':_0x55bef2(0xf1)+_0x5437d1+')'});if(!_0x1de532||typeof _0x1de532[_0x55bef2(0xf5)]!==_0x55bef2(0xd6))throw new Error(_0x55bef2(0xdb)+_0x5437d1+_0x55bef2(0xef));return _0x1de532[_0x55bef2(0xf5)];}function delay(_0x344f6e){return new Promise(_0xe405aa=>setTimeout(_0xe405aa,_0x344f6e));}function a0_0x37ea(){const _0x59af85=['\x20datasets\x20to\x20generate\x20docs\x20for\x0a','Invalid\x20response\x20format\x20(','datasetCode','6023855sBpgEs','5092284SxJPro','.md\x20-\x20','message','267YjSPEt','158693PSRyTq','✗\x20Failed:\x20','utf8','7516PJxpmK','生成文档成功:\x20','6bXVlRT','14xMWJUI','7kxsRZi','3904992JxYnyq','Waiting\x203\x20seconds...\x0a','join','api-doc','.md\x20(','):\x20missing\x20data.markdown\x20field','length','Fetch\x20doc\x20(','.md','./docs','107700fOtPgE','markdown','583ZiVkjT','error','log','生成文档失败:\x20','string','5411160NkvcMv','name','push'];a0_0x37ea=function(){return _0x59af85;};return a0_0x37ea();}export async function generateDatasetDocs(_0x568d2a,_0x413e95,_0x25b638,_0x4177df=a0_0x2fc94b(0xf3),_0x16b6b2,_0x869cd3){const _0x365fcf=a0_0x2fc94b;mkdirSync(_0x4177df,{'recursive':!![]});const _0x53d894=[],_0x39e28c=_0x568d2a[_0x365fcf(0xf0)];console['log']('\x0a'+_0x39e28c+_0x365fcf(0xda));for(let _0x5846cd=0x0;_0x5846cd<_0x568d2a[_0x365fcf(0xf0)];_0x5846cd++){const _0xcb3764=_0x568d2a[_0x5846cd],_0x537d71=_0x5846cd+0x1,_0x2b4a5c=_0xcb3764['tableName'];try{console[_0x365fcf(0xd4)]('['+_0x537d71+'/'+_0x39e28c+']\x20Generating:\x20'+_0x2b4a5c+_0x365fcf(0xee)+_0xcb3764[_0x365fcf(0xd8)]+')');if(_0x16b6b2)_0x16b6b2(_0x537d71,_0x39e28c,_0x2b4a5c);const _0x312b4b=await fetchDatasetDoc({'appCode':_0x413e95,'cookie':_0x25b638,'datasetCode':_0xcb3764[_0x365fcf(0xdc)],'datasetId':_0xcb3764['id'],'enableAI':![],'extraParams':_0x869cd3}),_0x4df9ce=a0_0x203994[_0x365fcf(0xec)](_0x4177df,_0x2b4a5c+'.md');writeFileSync(_0x4df9ce,_0x312b4b,{'encoding':_0x365fcf(0xe4)}),console['log']('✓\x20Generated:\x20'+_0x2b4a5c+_0x365fcf(0xf2)),logger['success']('api-doc',_0x365fcf(0xe6)+_0x2b4a5c,undefined,{'datasetCode':_0xcb3764[_0x365fcf(0xdc)],'datasetName':_0xcb3764[_0x365fcf(0xd8)],'filePath':_0x4df9ce,'progress':_0x537d71+'/'+_0x39e28c}),_0x53d894['push']({'datasetCode':_0xcb3764['datasetCode'],'datasetName':_0xcb3764[_0x365fcf(0xd8)],'filePath':_0x4df9ce,'success':!![]});if(_0x537d71<_0x39e28c)await delay(0x1388);}catch(_0x3cad27){const _0x2f7f58=_0x3cad27 instanceof Error?_0x3cad27[_0x365fcf(0xe0)]:String(_0x3cad27);console[_0x365fcf(0xd4)](_0x365fcf(0xe3)+_0x2b4a5c+_0x365fcf(0xdf)+_0x2f7f58),logger[_0x365fcf(0xd3)](_0x365fcf(0xed),_0x365fcf(0xd5)+_0xcb3764[_0x365fcf(0xdc)],{'datasetCode':_0xcb3764[_0x365fcf(0xdc)],'datasetName':_0xcb3764[_0x365fcf(0xd8)],'error':_0x2f7f58,'progress':_0x537d71+'/'+_0x39e28c}),_0x53d894[_0x365fcf(0xd9)]({'datasetCode':_0xcb3764[_0x365fcf(0xdc)],'datasetName':_0xcb3764[_0x365fcf(0xd8)],'filePath':'','success':![],'error':_0x2f7f58}),_0x537d71<_0x39e28c&&(console[_0x365fcf(0xd4)](_0x365fcf(0xeb)),await delay(0xbb8));}}return _0x53d894;}
@@ -1 +1 @@
1
- (function(_0x53271b,_0x3a26d3){const _0x1aabdc=a1_0x5634,_0x1194bc=_0x53271b();while(!![]){try{const _0x3793c4=-parseInt(_0x1aabdc(0x105))/0x1+-parseInt(_0x1aabdc(0xfd))/0x2*(-parseInt(_0x1aabdc(0xfa))/0x3)+parseInt(_0x1aabdc(0x100))/0x4+parseInt(_0x1aabdc(0x108))/0x5*(-parseInt(_0x1aabdc(0x101))/0x6)+-parseInt(_0x1aabdc(0x109))/0x7+parseInt(_0x1aabdc(0xfe))/0x8*(-parseInt(_0x1aabdc(0xfb))/0x9)+parseInt(_0x1aabdc(0x103))/0xa*(parseInt(_0x1aabdc(0x107))/0xb);if(_0x3793c4===_0x3a26d3)break;else _0x1194bc['push'](_0x1194bc['shift']());}catch(_0x51f4b9){_0x1194bc['push'](_0x1194bc['shift']());}}}(a1_0x36e0,0x3ce9f));import{getApiDomain}from'../constant/domain.js';function a1_0x5634(_0x5c910c,_0x29a8f7){_0x5c910c=_0x5c910c-0xf6;const _0x36e0b2=a1_0x36e0();let _0x563450=_0x36e0b2[_0x5c910c];return _0x563450;}function a1_0x36e0(){const _0x390ce0=['/api/node-toolbox/dataset/model-list?appcode=','map','info','453Waairk','45vGLoYY','trim','766VSwpwz','709928eULJrf','正在从服务器拉取模型列表...\x20(环境:\x20','1032940sgpcAW','2046EDtACB','name','13898110bCwNTV','length','300129WOZpNU','&otype=array','11TFqQjw','4870wkzzyT','2662856wvNWVC','Fetch\x20datasets'];a1_0x36e0=function(){return _0x390ce0;};return a1_0x36e0();}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x27ee3a){const _0x2c9584=a1_0x5634;return _0x27ee3a['replace'](/[\r\n]+/g,'\x20')[_0x2c9584(0xfc)]();}function cleanDatasetName(_0x475717){const _0x238daf=a1_0x5634;if(!_0x475717[_0x238daf(0x102)])return _0x475717;return{..._0x475717,'name':cleanNewlines(_0x475717['name'])};}export async function fetchModelList(_0x435ecb,_0x1f0352){const _0x4e6ac9=a1_0x5634,_0x2283ab=getEnv(),_0x33c2c3=getApiDomain()+_0x4e6ac9(0xf7)+_0x435ecb+_0x4e6ac9(0x106);logger[_0x4e6ac9(0xf9)]('fetch-model-list',_0x4e6ac9(0xff)+_0x2283ab+')',{'apiUrl':_0x33c2c3});const _0x43ba36=await platformFetch(_0x33c2c3,{'cookie':_0x1f0352,'label':_0x4e6ac9(0xf6)}),_0x8693d=(_0x43ba36['configArray']??[])[_0x4e6ac9(0xf8)](cleanDatasetName);return{'configArray':_0x8693d,'count':_0x8693d[_0x4e6ac9(0x104)]};}
1
+ (function(_0x42ec37,_0x1298eb){const _0x44c4d6=a1_0x417b,_0x46f1d9=_0x42ec37();while(!![]){try{const _0xf543e8=-parseInt(_0x44c4d6(0xa5))/0x1+parseInt(_0x44c4d6(0xa3))/0x2+-parseInt(_0x44c4d6(0x9c))/0x3+parseInt(_0x44c4d6(0xa4))/0x4+parseInt(_0x44c4d6(0x9f))/0x5+parseInt(_0x44c4d6(0x98))/0x6*(-parseInt(_0x44c4d6(0x96))/0x7)+parseInt(_0x44c4d6(0xa1))/0x8;if(_0xf543e8===_0x1298eb)break;else _0x46f1d9['push'](_0x46f1d9['shift']());}catch(_0x876ba1){_0x46f1d9['push'](_0x46f1d9['shift']());}}}(a1_0x1c1d,0x39c15));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a1_0x417b(_0x432111,_0x3a41b2){_0x432111=_0x432111-0x96;const _0x1c1d81=a1_0x1c1d();let _0x417b77=_0x1c1d81[_0x432111];return _0x417b77;}import{getEnv}from'../constant/env.js';function a1_0x1c1d(){const _0x11a4d6=['2117mkQDbb','224168FxwQcL','trim','54yGfFlH','name','Fetch\x20datasets','map','1098492dcKyHa','fetch-model-list','configArray','15445dKATYi','info','2530504UrJSyu','replace','926512DvOMAy','441616mVzRlq'];a1_0x1c1d=function(){return _0x11a4d6;};return a1_0x1c1d();}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x34b5e9){const _0x52eced=a1_0x417b;return _0x34b5e9[_0x52eced(0xa2)](/[\r\n]+/g,'\x20')[_0x52eced(0x97)]();}function cleanDatasetName(_0x1acff2){const _0xace13=a1_0x417b;if(!_0x1acff2[_0xace13(0x99)])return _0x1acff2;return{..._0x1acff2,'name':cleanNewlines(_0x1acff2[_0xace13(0x99)])};}export async function fetchModelList(_0x4f0ba8,_0x1cea6f){const _0x3f7754=a1_0x417b,_0x25e0db=getEnv(),_0x57587d=getApiDomain()+'/api/node-toolbox/dataset/model-list?appcode='+_0x4f0ba8+'&otype=array';logger[_0x3f7754(0xa0)](_0x3f7754(0x9d),'正在从服务器拉取模型列表...\x20(环境:\x20'+_0x25e0db+')',{'apiUrl':_0x57587d});const _0x158885=await platformFetch(_0x57587d,{'cookie':_0x1cea6f,'label':_0x3f7754(0x9a)}),_0x46c326=(_0x158885[_0x3f7754(0x9e)]??[])[_0x3f7754(0x9b)](cleanDatasetName);return{'configArray':_0x46c326,'count':_0x46c326['length']};}
@@ -1 +1 @@
1
- function a2_0x50dd(_0x23f22a,_0x72d4e1){_0x23f22a=_0x23f22a-0x13d;const _0x978c47=a2_0x978c();let _0x50dd9b=_0x978c47[_0x23f22a];return _0x50dd9b;}(function(_0x4eef30,_0x26dec7){const _0x6983bd=a2_0x50dd,_0x341c1a=_0x4eef30();while(!![]){try{const _0x34bff0=-parseInt(_0x6983bd(0x13f))/0x1+parseInt(_0x6983bd(0x144))/0x2*(-parseInt(_0x6983bd(0x15a))/0x3)+parseInt(_0x6983bd(0x163))/0x4*(-parseInt(_0x6983bd(0x143))/0x5)+-parseInt(_0x6983bd(0x160))/0x6+-parseInt(_0x6983bd(0x153))/0x7*(-parseInt(_0x6983bd(0x149))/0x8)+parseInt(_0x6983bd(0x15c))/0x9*(parseInt(_0x6983bd(0x13e))/0xa)+parseInt(_0x6983bd(0x165))/0xb;if(_0x34bff0===_0x26dec7)break;else _0x341c1a['push'](_0x341c1a['shift']());}catch(_0x598d56){_0x341c1a['push'](_0x341c1a['shift']());}}}(a2_0x978c,0xa1368));import a2_0xe45e27 from'prettier';function a2_0x978c(){const _0x3daa3d=['join','302309kTyOeS','templates/generate-api','dirname','api.ts.tpl','.ts','length','alias','6GrEzrT','LOVRABET','3555711xoyyEq','name','replaceApiContent','resolve','5467050SOATDC','client','toUpperCase','696872MPKBqA','../..','23411267InbDXe','{\x20apiConfigName:\x20\x22','{\x20apiConfigName:\x20','client.ts.tpl','20GppqZb','431725CrFfgx','-client','utf8','key','35nHPBbj','516254RmbUCr','API\x20文件生成成功!','\x22\x20}','push','-api','152DfQVsT','production','CONFIG_NAMES.DEFAULT','success',',\x20env:\x20\x22','typescript','test','format','forEach'];a2_0x978c=function(){return _0x3daa3d;};return a2_0x978c();}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x1f52bf 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';export async function generateApiFile(_0x171899,_0x3cdaf6,_0x39187e,_0x16030f,_0x5df627,_0x241d9b,_0x7c90d7){const _0x55e927=a2_0x50dd;if(!_0x39187e)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0xf216a0=_0x16030f&&!_0x7c90d7,_0x974e85=_0x7c90d7||_0x39187e,_0x1a1404=_0xf216a0?_0x55e927(0x14b):'\x22'+_0x974e85+'\x22',_0x4ead72=_0x5df627!==_0x55e927(0x14a);let _0x465dd9;if(_0xf216a0)_0x4ead72?_0x465dd9=_0x55e927(0x167)+_0x1a1404+_0x55e927(0x14d)+_0x5df627+_0x55e927(0x146):_0x465dd9='';else{const _0x200fb4=_0x4ead72?_0x55e927(0x14d)+_0x5df627+'\x22':'';_0x465dd9=_0x55e927(0x166)+_0x974e85+'\x22'+_0x200fb4+'\x20}';}const _0x4aa8e4=_0x3cdaf6?_0x3cdaf6+_0x55e927(0x148):'api',_0x279bc9=_0x3cdaf6?_0x3cdaf6+_0x55e927(0x140):_0x55e927(0x161),_0x246308=_0x3cdaf6&&!/^app-[a-f0-9]+$/i[_0x55e927(0x14f)](_0x3cdaf6)?_0x3cdaf6['replace'](/-/g,'_')[_0x55e927(0x162)]():_0x55e927(0x15b),_0x2159fd=[];_0x171899[_0x55e927(0x151)](_0x2e9c96=>{const _0x382090=_0x55e927;_0x2159fd[_0x382090(0x147)]({'datasetCode':_0x2e9c96['datasetCode'],'tableName':_0x2e9c96['tableName'],'name':_0x2e9c96[_0x382090(0x15d)]||'','alias':_0x2e9c96['alias']||_0x2e9c96[_0x382090(0x142)]});});const _0x5f4abe=fileURLToPath(import.meta.url),_0xb29b0a=a2_0x1f52bf[_0x55e927(0x15f)](a2_0x1f52bf[_0x55e927(0x155)](_0x5f4abe),_0x55e927(0x164)),_0xff61b3=a2_0x1f52bf[_0x55e927(0x152)](_0xb29b0a,_0x55e927(0x154)),_0x13acef=a2_0x1f52bf[_0x55e927(0x152)](_0xff61b3,_0x55e927(0x156)),_0x2df0c3=a2_0x1f52bf[_0x55e927(0x152)](_0xff61b3,_0x55e927(0x13d)),_0x166f70=_0x241d9b;mkdirSync(_0x166f70,{'recursive':!![]});const _0x5729b2=_0x2159fd[0x0]?.[_0x55e927(0x159)],_0x15c4b7=readFileSync(_0x13acef,'utf8'),_0x3d62b8=TemplateReplacer[_0x55e927(0x15e)](_0x15c4b7,_0x39187e,_0x2159fd,_0x5729b2,_0x4aa8e4,_0x1a1404,undefined,_0x246308),_0x231b4a=await a2_0xe45e27[_0x55e927(0x150)](_0x3d62b8,{'parser':_0x55e927(0x14e)}),_0xe99c51=a2_0x1f52bf['join'](_0x166f70,_0x4aa8e4+_0x55e927(0x157));writeFileSync(_0xe99c51,_0x231b4a,{'encoding':'utf8'});const _0x33c59e=readFileSync(_0x2df0c3,'utf8'),_0x25e65a=TemplateReplacer[_0x55e927(0x15e)](_0x33c59e,_0x39187e,_0x2159fd,_0x5729b2,_0x4aa8e4,_0x1a1404,_0x465dd9,_0x246308),_0x1827c9=await a2_0xe45e27[_0x55e927(0x150)](_0x25e65a,{'parser':_0x55e927(0x14e)}),_0x3a9983=a2_0x1f52bf[_0x55e927(0x152)](_0x166f70,_0x279bc9+_0x55e927(0x157));writeFileSync(_0x3a9983,_0x1827c9,{'encoding':_0x55e927(0x141)});const _0x525f74=_0x2159fd[_0x55e927(0x158)];return logger[_0x55e927(0x14c)]('init-api',_0x55e927(0x145),undefined,{'apiFile':_0xe99c51,'clientFile':_0x3a9983,'modelCount':_0x525f74,'configName':_0x1a1404}),{'modelCount':_0x525f74,'apiFilePath':_0xe99c51,'clientFilePath':_0x3a9983,'configName':_0x1a1404};}
1
+ (function(_0x4a7684,_0x1e5221){const _0x2e8d88=a2_0x5851,_0x5b3cd4=_0x4a7684();while(!![]){try{const _0x4e9bc1=parseInt(_0x2e8d88(0x1ca))/0x1*(-parseInt(_0x2e8d88(0x1c9))/0x2)+parseInt(_0x2e8d88(0x1da))/0x3*(-parseInt(_0x2e8d88(0x1d7))/0x4)+parseInt(_0x2e8d88(0x1dd))/0x5*(parseInt(_0x2e8d88(0x1de))/0x6)+parseInt(_0x2e8d88(0x1d4))/0x7*(parseInt(_0x2e8d88(0x1c8))/0x8)+-parseInt(_0x2e8d88(0x1cb))/0x9*(parseInt(_0x2e8d88(0x1c0))/0xa)+-parseInt(_0x2e8d88(0x1d1))/0xb+parseInt(_0x2e8d88(0x1d6))/0xc;if(_0x4e9bc1===_0x1e5221)break;else _0x5b3cd4['push'](_0x5b3cd4['shift']());}catch(_0x4bc99a){_0x5b3cd4['push'](_0x5b3cd4['shift']());}}}(a2_0x290b,0x80529));function a2_0x290b(){const _0x4d0706=['format','API\x20文件生成成功!','alias','join','LOVRABET','templates/generate-api','dirname','343010OjXymc','length','production','api.ts.tpl','api','tableName','CONFIG_NAMES.DEFAULT','utf8','5825192nLllYb','97294EplFuP','18AlgSNm','72gKvzlW','replace','.ts','{\x20apiConfigName:\x20\x22','typescript',',\x20env:\x20\x22','7590374kQAVFa','replaceApiContent','client.ts.tpl','7zelpFq','datasetCode','19273140RuEIgt','4VWvBrv','toUpperCase','-api','1712193HqelEu','\x22\x20}','push','220VuAtYy','82116kOjklD','client','Please\x20configure\x20app\x20code\x20first\x20via\x20`'];a2_0x290b=function(){return _0x4d0706;};return a2_0x290b();}import a2_0x2a59d1 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x1ab476 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';function a2_0x5851(_0x41a618,_0x3bece8){_0x41a618=_0x41a618-0x1b8;const _0x290bfa=a2_0x290b();let _0x58510a=_0x290bfa[_0x41a618];return _0x58510a;}import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';export async function generateApiFile(_0x2101b5,_0x14a59b,_0x4248a8,_0x479f4f,_0x1bbdea,_0x5311e8,_0x17e311){const _0x104b45=a2_0x5851;if(!_0x4248a8)throw new Error(_0x104b45(0x1b8)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x36c7af=_0x479f4f&&!_0x17e311,_0x1cbad8=_0x17e311||_0x4248a8,_0x59408b=_0x36c7af?_0x104b45(0x1c6):'\x22'+_0x1cbad8+'\x22',_0x2c9916=_0x1bbdea!==_0x104b45(0x1c2);let _0x2ebe0a;if(_0x36c7af)_0x2c9916?_0x2ebe0a='{\x20apiConfigName:\x20'+_0x59408b+_0x104b45(0x1d0)+_0x1bbdea+_0x104b45(0x1db):_0x2ebe0a='';else{const _0x461047=_0x2c9916?_0x104b45(0x1d0)+_0x1bbdea+'\x22':'';_0x2ebe0a=_0x104b45(0x1ce)+_0x1cbad8+'\x22'+_0x461047+'\x20}';}const _0x38e098=_0x14a59b?_0x14a59b+_0x104b45(0x1d9):_0x104b45(0x1c4),_0x41cdac=_0x14a59b?_0x14a59b+'-client':_0x104b45(0x1df),_0x388a5e=_0x14a59b&&!/^app-[a-f0-9]+$/i['test'](_0x14a59b)?_0x14a59b[_0x104b45(0x1cc)](/-/g,'_')[_0x104b45(0x1d8)]():_0x104b45(0x1bd),_0x4268d7=[];_0x2101b5['forEach'](_0x4427e0=>{const _0x5412cc=_0x104b45;_0x4268d7[_0x5412cc(0x1dc)]({'datasetCode':_0x4427e0[_0x5412cc(0x1d5)],'tableName':_0x4427e0[_0x5412cc(0x1c5)],'name':_0x4427e0['name']||'','alias':_0x4427e0['alias']||_0x4427e0['key']});});const _0x51799c=fileURLToPath(import.meta.url),_0x5c4937=a2_0x1ab476['resolve'](a2_0x1ab476[_0x104b45(0x1bf)](_0x51799c),'../..'),_0x502f3d=a2_0x1ab476[_0x104b45(0x1bc)](_0x5c4937,_0x104b45(0x1be)),_0x336994=a2_0x1ab476[_0x104b45(0x1bc)](_0x502f3d,_0x104b45(0x1c3)),_0x560d61=a2_0x1ab476['join'](_0x502f3d,_0x104b45(0x1d3)),_0xad6616=_0x5311e8;mkdirSync(_0xad6616,{'recursive':!![]});const _0x168a0b=_0x4268d7[0x0]?.[_0x104b45(0x1bb)],_0x1b9cea=readFileSync(_0x336994,_0x104b45(0x1c7)),_0x5b08f0=TemplateReplacer[_0x104b45(0x1d2)](_0x1b9cea,_0x4248a8,_0x4268d7,_0x168a0b,_0x38e098,_0x59408b,undefined,_0x388a5e),_0x597ea3=await a2_0x2a59d1[_0x104b45(0x1b9)](_0x5b08f0,{'parser':'typescript'}),_0x38eca5=a2_0x1ab476[_0x104b45(0x1bc)](_0xad6616,_0x38e098+_0x104b45(0x1cd));writeFileSync(_0x38eca5,_0x597ea3,{'encoding':'utf8'});const _0x1a96a4=readFileSync(_0x560d61,_0x104b45(0x1c7)),_0x1f6712=TemplateReplacer[_0x104b45(0x1d2)](_0x1a96a4,_0x4248a8,_0x4268d7,_0x168a0b,_0x38e098,_0x59408b,_0x2ebe0a,_0x388a5e),_0x2016e1=await a2_0x2a59d1[_0x104b45(0x1b9)](_0x1f6712,{'parser':_0x104b45(0x1cf)}),_0x16657e=a2_0x1ab476['join'](_0xad6616,_0x41cdac+'.ts');writeFileSync(_0x16657e,_0x2016e1,{'encoding':'utf8'});const _0x4c8546=_0x4268d7[_0x104b45(0x1c1)];return logger['success']('init-api',_0x104b45(0x1ba),undefined,{'apiFile':_0x38eca5,'clientFile':_0x16657e,'modelCount':_0x4c8546,'configName':_0x59408b}),{'modelCount':_0x4c8546,'apiFilePath':_0x38eca5,'clientFilePath':_0x16657e,'configName':_0x59408b};}
@@ -1 +1 @@
1
- (function(_0x28a10e,_0x2ff4a3){const _0x418b87=a3_0x5453,_0xbe8e36=_0x28a10e();while(!![]){try{const _0x1f15fc=-parseInt(_0x418b87(0x147))/0x1+parseInt(_0x418b87(0x148))/0x2+parseInt(_0x418b87(0x152))/0x3+-parseInt(_0x418b87(0x146))/0x4*(-parseInt(_0x418b87(0x14e))/0x5)+parseInt(_0x418b87(0x151))/0x6*(parseInt(_0x418b87(0x155))/0x7)+parseInt(_0x418b87(0x14d))/0x8*(-parseInt(_0x418b87(0x14f))/0x9)+parseInt(_0x418b87(0x14a))/0xa*(-parseInt(_0x418b87(0x149))/0xb);if(_0x1f15fc===_0x2ff4a3)break;else _0xbe8e36['push'](_0xbe8e36['shift']());}catch(_0x20db0d){_0xbe8e36['push'](_0xbe8e36['shift']());}}}(a3_0x1f26,0x9de6d));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a3_0x1593f0 from'ora';function a3_0x5453(_0x2fdd6e,_0xad0f1){_0x2fdd6e=_0x2fdd6e-0x146;const _0x1f26c0=a3_0x1f26();let _0x545372=_0x1f26c0[_0x2fdd6e];return _0x545372;}export async function runAuthServer(){const _0x4eea04=a3_0x5453,_0x5a693a=await getIsSessionValid();if(_0x5a693a){console['log'](_0x4eea04(0x14c));return;}const _0x5bc5a3=await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x5bc5a3)return;const _0x28b735=a3_0x1593f0(_0x4eea04(0x14b))[_0x4eea04(0x154)](),_0x35136f=await authServer({'silent':!![]});_0x28b735[_0x4eea04(0x150)](),_0x35136f?console['log'](_0x4eea04(0x156)):console['log'](_0x4eea04(0x153));}function a3_0x1f26(){const _0x367492=['start','4389224RNpMra','*\x20Login\x20successful!','708284WDRayD','353162doVWvJ','1850066SySSif','12366992XQQdvA','20tYkGvI','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','1673704cIuGrJ','30SopZzd','18CKIslW','stop','12EHBWXC','1276122mOzCua','!\x20Login\x20failed.'];a3_0x1f26=function(){return _0x367492;};return a3_0x1f26();}
1
+ (function(_0x5a3ac2,_0x28d15a){const _0x5c74b1=a3_0x1a95,_0x59cc3b=_0x5a3ac2();while(!![]){try{const _0x2b4095=parseInt(_0x5c74b1(0xe5))/0x1*(-parseInt(_0x5c74b1(0xf3))/0x2)+-parseInt(_0x5c74b1(0xe7))/0x3*(-parseInt(_0x5c74b1(0xef))/0x4)+-parseInt(_0x5c74b1(0xf2))/0x5*(parseInt(_0x5c74b1(0xf1))/0x6)+parseInt(_0x5c74b1(0xec))/0x7+-parseInt(_0x5c74b1(0xf0))/0x8*(-parseInt(_0x5c74b1(0xe6))/0x9)+parseInt(_0x5c74b1(0xea))/0xa*(-parseInt(_0x5c74b1(0xee))/0xb)+parseInt(_0x5c74b1(0xeb))/0xc;if(_0x2b4095===_0x28d15a)break;else _0x59cc3b['push'](_0x59cc3b['shift']());}catch(_0x20347e){_0x59cc3b['push'](_0x59cc3b['shift']());}}}(a3_0x312f,0xc24e6));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';function a3_0x1a95(_0x291854,_0x2d7b48){_0x291854=_0x291854-0xe4;const _0x312f15=a3_0x312f();let _0x1a9543=_0x312f15[_0x291854];return _0x1a9543;}import a3_0x41773a from'ora';export async function runAuthServer(){const _0x1b1b77=a3_0x1a95,_0x5442b6=await getIsSessionValid();if(_0x5442b6){console[_0x1b1b77(0xe8)](_0x1b1b77(0xe4));return;}const _0x370393=await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x370393)return;const _0x21d6a0=a3_0x41773a(_0x1b1b77(0xed))[_0x1b1b77(0xf4)](),_0x5348c4=await authServer({'silent':!![]});_0x21d6a0['stop'](),_0x5348c4?console[_0x1b1b77(0xe8)]('*\x20Login\x20successful!'):console[_0x1b1b77(0xe8)](_0x1b1b77(0xe9));}function a3_0x312f(){const _0x51db11=['√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','62813KprxhI','9sCEEiT','2250RBOHEN','log','!\x20Login\x20failed.','70HifZhG','28462368ULvXyI','675745xoggCs','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','2176537Lxjflp','856Wihunl','2299576wnEzQB','708iOfsZW','12530prtMpf','14rFioMU','start'];a3_0x312f=function(){return _0x51db11;};return a3_0x312f();}
@@ -1 +1 @@
1
- const a4_0xd8c07=a4_0x3a44;function a4_0x3a44(_0x5742e0,_0x1888c4){_0x5742e0=_0x5742e0-0x180;const _0x4c95a3=a4_0x4c95();let _0x3a448d=_0x4c95a3[_0x5742e0];return _0x3a448d;}(function(_0x295475,_0x310d8b){const _0x5da74c=a4_0x3a44,_0x305b65=_0x295475();while(!![]){try{const _0x200d50=-parseInt(_0x5da74c(0x191))/0x1*(-parseInt(_0x5da74c(0x184))/0x2)+-parseInt(_0x5da74c(0x1a4))/0x3*(parseInt(_0x5da74c(0x190))/0x4)+-parseInt(_0x5da74c(0x19f))/0x5+parseInt(_0x5da74c(0x18d))/0x6+-parseInt(_0x5da74c(0x183))/0x7*(-parseInt(_0x5da74c(0x1aa))/0x8)+-parseInt(_0x5da74c(0x1a1))/0x9+-parseInt(_0x5da74c(0x19d))/0xa;if(_0x200d50===_0x310d8b)break;else _0x305b65['push'](_0x305b65['shift']());}catch(_0x34d30c){_0x305b65['push'](_0x305b65['shift']());}}}(a4_0x4c95,0x3e5df));import{writeFileSync}from'node:fs';import a4_0x356e00 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';function a4_0x4c95(){const _0x573dfc=['🔐\x20Starting\x20login\x20service...','port','<span\x20id=\x22t\x22>5</span>','createServer','</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\x20//\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>','</title></head>\x0a<body>\x0a\x20\x20<div>','1041383spAXmX','2mPXZqM','Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20','https://g.yuntooai.com/cert/lovrabet-dev.json','json','cmd\x20/c\x20start\x20\x22\x22\x20\x22','silent','close','then','/sign-in?redirect=','2045190aQrXxz','win32','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','45932PROADe','371002QOkkWq','listen','writeHead','platform','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','/api/auth/get-session','error','📍\x20Login\x20URL:','https://dev.lovrabet.com:','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','cookie','isAuth','4403650jCdIHc','catch','749830cmJtzA','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','439101TLLZuU','object','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','30ygSIzv','utf-8','headers','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>','Auth\x20server\x20error:','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','16bQITOU','log','session','address'];a4_0x4c95=function(){return _0x573dfc;};return a4_0x4c95();}import{cookieFile}from'../auth/constant.js';export async function authServer(_0x47a549){const _0x54d850=a4_0x3a44,_0x45de5f=_0x47a549?.[_0x54d850(0x189)]||![];if(await getIsSessionValid())return!![];const _0x395a88=await(await fetch(_0x54d850(0x186)))[_0x54d850(0x187)]();return new Promise(async(_0x56f621,_0xaf3b31)=>{const _0x572239=_0x54d850;let _0x2b81c8=0x0;const _0x43cc8d=a4_0x356e00[_0x572239(0x180)](_0x395a88,async(_0x4e5ecf,_0x398bfa)=>{const _0x4661c2=_0x572239,_0x355e4f=getUserDomain(),_0xb44383=_0x4e5ecf[_0x4661c2(0x1a6)][_0x4661c2(0x19b)]||'',_0x1492b1=await fetch(_0x355e4f+_0x4661c2(0x196),{'headers':{'cookie':_0xb44383}})['then'](_0x273985=>_0x273985[_0x4661c2(0x187)]()),_0x38f2ba=_0x1492b1&&_0x1492b1[_0x4661c2(0x1ac)]&&_0x1492b1['user'];if(_0x38f2ba){writeFileSync(cookieFile,_0xb44383,_0x4661c2(0x1a5)),_0x56f621(!![]);const _0x597652='Login\x20Successful',_0x36e1f8=_0x4661c2(0x185)+_0x4661c2(0x1b0)+'\x20seconds.',_0x129fe6=_0x4661c2(0x18f),_0x2e05f1=_0x4661c2(0x1a7)+_0x597652+_0x4661c2(0x182)+_0x36e1f8+'</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>'+_0x129fe6+_0x4661c2(0x181);_0x398bfa[_0x4661c2(0x193)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x398bfa['end'](_0x2e05f1),_0x43cc8d[_0x4661c2(0x18a)]();}else{const _0x4420b6=''+encodeURIComponent(_0x4661c2(0x199)+_0x2b81c8);_0x398bfa[_0x4661c2(0x193)](0x12e,{'location':_0x355e4f+_0x4661c2(0x18c)+_0x4420b6}),_0x398bfa['end']();return;}});_0x43cc8d[_0x572239(0x192)](0x0,'127.0.0.1',()=>{const _0x11e241=_0x572239,_0x29c8f3=_0x43cc8d[_0x11e241(0x1ad)]();_0x2b81c8=typeof _0x29c8f3===_0x11e241(0x1a2)&&_0x29c8f3?_0x29c8f3[_0x11e241(0x1af)]:Number(_0x29c8f3);const _0x51a1f3=_0x11e241(0x199)+_0x2b81c8;!_0x45de5f&&(console[_0x11e241(0x1ab)](_0x11e241(0x1ae)),console['log'](_0x11e241(0x198),_0x51a1f3),console[_0x11e241(0x1ab)](_0x11e241(0x19a)),console[_0x11e241(0x1ab)](''),console[_0x11e241(0x1ab)](_0x11e241(0x1a0)),console[_0x11e241(0x1ab)]('')),openInBrowser(_0x51a1f3)[_0x11e241(0x18b)](_0x1f7d6c=>{const _0x4a6496=_0x11e241;!_0x45de5f&&(_0x1f7d6c?console[_0x4a6496(0x1ab)](_0x4a6496(0x1a9)):(console[_0x4a6496(0x1ab)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x4a6496(0x1ab)](_0x4a6496(0x195),_0x51a1f3)),console['log'](''));})[_0x11e241(0x19e)](()=>{const _0x5355b1=_0x11e241;!_0x45de5f&&(console[_0x5355b1(0x1ab)](_0x5355b1(0x1a3)),console[_0x5355b1(0x1ab)](_0x5355b1(0x195),_0x51a1f3),console[_0x5355b1(0x1ab)](''));});}),_0x43cc8d['on'](_0x572239(0x197),_0x208dc3=>{const _0x460ec4=_0x572239;!_0x45de5f&&console[_0x460ec4(0x197)](_0x460ec4(0x1a8),_0x208dc3),_0xaf3b31(_0x208dc3);});});}function openInBrowser(_0x59a9a0){return new Promise(_0x22c9aa=>{const _0x586723=a4_0x3a44,_0x2317d4=process[_0x586723(0x194)];let _0x2c19c0;if(_0x2317d4===_0x586723(0x18e))_0x2c19c0=_0x586723(0x188)+_0x59a9a0+'\x22';else _0x2317d4==='darwin'?_0x2c19c0='open\x20\x22'+_0x59a9a0+'\x22':_0x2c19c0='xdg-open\x20\x22'+_0x59a9a0+'\x22';exec(_0x2c19c0,_0x40f927=>{_0x40f927?_0x22c9aa(![]):_0x22c9aa(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log'](a4_0xd8c07(0x19c),isAuth);}
1
+ const a4_0x128332=a4_0x2e59;(function(_0x14380f,_0x54d751){const _0x2c8b40=a4_0x2e59,_0x46ee16=_0x14380f();while(!![]){try{const _0x29f278=parseInt(_0x2c8b40(0x1ab))/0x1+parseInt(_0x2c8b40(0x1c2))/0x2*(parseInt(_0x2c8b40(0x1b5))/0x3)+parseInt(_0x2c8b40(0x1a9))/0x4+parseInt(_0x2c8b40(0x1bf))/0x5*(-parseInt(_0x2c8b40(0x1b4))/0x6)+parseInt(_0x2c8b40(0x1ae))/0x7+-parseInt(_0x2c8b40(0x1c7))/0x8*(parseInt(_0x2c8b40(0x1d2))/0x9)+-parseInt(_0x2c8b40(0x1b1))/0xa*(parseInt(_0x2c8b40(0x1c5))/0xb);if(_0x29f278===_0x54d751)break;else _0x46ee16['push'](_0x46ee16['shift']());}catch(_0x300d76){_0x46ee16['push'](_0x46ee16['shift']());}}}(a4_0x41fc,0x9bd43));import{writeFileSync}from'node:fs';function a4_0x41fc(){const _0x142d7a=['2922036HbLBNA','Auth\x20server\x20error:','cmd\x20/c\x20start\x20\x22\x22\x20\x22','isAuth','text/html;\x20charset=utf-8','end','address','xdg-open\x20\x22','json','session','545KfMMXF','/sign-in?redirect=','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','2kxCZBO','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','port','11MvItcS','error','136cyHWlt','🔐\x20Starting\x20login\x20service...','log','platform','<span\x20id=\x22t\x22>5</span>','</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\x20//\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>','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','then','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','</title></head>\x0a<body>\x0a\x20\x20<div>','</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>','582471BvEble','cookie','createServer','win32','silent','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20','/api/auth/get-session','object','3585240dHsRuV','https://dev.lovrabet.com:','760761JxWFsq','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','catch','3018162uDEqri','📍\x20Login\x20URL:','utf-8','11770370BabJlc','user','Login\x20Successful','8076cMtAoE'];a4_0x41fc=function(){return _0x142d7a;};return a4_0x41fc();}function a4_0x2e59(_0x3959ac,_0x2e7643){_0x3959ac=_0x3959ac-0x1a8;const _0x41fc06=a4_0x41fc();let _0x2e5908=_0x41fc06[_0x3959ac];return _0x2e5908;}import a4_0x6b6502 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';export async function authServer(_0x170710){const _0x4977dc=a4_0x2e59,_0x513f7d=_0x170710?.[_0x4977dc(0x1d6)]||![];if(await getIsSessionValid())return!![];const _0x133673=await(await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json'))[_0x4977dc(0x1bd)]();return new Promise(async(_0x3314c6,_0x34a904)=>{const _0x5b7ab0=_0x4977dc;let _0x54f7c1=0x0;const _0x22b19d=a4_0x6b6502[_0x5b7ab0(0x1d4)](_0x133673,async(_0x3e5ce3,_0x9efa84)=>{const _0x67f2ff=_0x5b7ab0,_0x2ba8ff=getUserDomain(),_0x2bf426=_0x3e5ce3['headers'][_0x67f2ff(0x1d3)]||'',_0x2f280e=await fetch(_0x2ba8ff+_0x67f2ff(0x1d9),{'headers':{'cookie':_0x2bf426}})[_0x67f2ff(0x1ce)](_0xcc5661=>_0xcc5661['json']()),_0x51c29e=_0x2f280e&&_0x2f280e[_0x67f2ff(0x1be)]&&_0x2f280e[_0x67f2ff(0x1b2)];if(_0x51c29e){writeFileSync(cookieFile,_0x2bf426,_0x67f2ff(0x1b0)),_0x3314c6(!![]);const _0x49d0b3=_0x67f2ff(0x1b3),_0x5ee259=_0x67f2ff(0x1d8)+_0x67f2ff(0x1cb)+'\x20seconds.',_0xa1485=_0x67f2ff(0x1d7),_0x2edd0f='<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>'+_0x49d0b3+_0x67f2ff(0x1d0)+_0x5ee259+_0x67f2ff(0x1d1)+_0xa1485+_0x67f2ff(0x1cc);_0x9efa84['writeHead'](0xc8,{'Content-Type':_0x67f2ff(0x1b9)}),_0x9efa84[_0x67f2ff(0x1ba)](_0x2edd0f),_0x22b19d['close']();}else{const _0x140018=''+encodeURIComponent(_0x67f2ff(0x1aa)+_0x54f7c1);_0x9efa84['writeHead'](0x12e,{'location':_0x2ba8ff+_0x67f2ff(0x1c0)+_0x140018}),_0x9efa84[_0x67f2ff(0x1ba)]();return;}});_0x22b19d['listen'](0x0,'127.0.0.1',()=>{const _0x1a3ef8=_0x5b7ab0,_0x131580=_0x22b19d[_0x1a3ef8(0x1bb)]();_0x54f7c1=typeof _0x131580===_0x1a3ef8(0x1a8)&&_0x131580?_0x131580[_0x1a3ef8(0x1c4)]:Number(_0x131580);const _0x7755e8=_0x1a3ef8(0x1aa)+_0x54f7c1;!_0x513f7d&&(console['log'](_0x1a3ef8(0x1c8)),console[_0x1a3ef8(0x1c9)](_0x1a3ef8(0x1af),_0x7755e8),console[_0x1a3ef8(0x1c9)](_0x1a3ef8(0x1cd)),console[_0x1a3ef8(0x1c9)](''),console[_0x1a3ef8(0x1c9)](_0x1a3ef8(0x1c1)),console[_0x1a3ef8(0x1c9)]('')),openInBrowser(_0x7755e8)[_0x1a3ef8(0x1ce)](_0x238520=>{const _0x550307=_0x1a3ef8;!_0x513f7d&&(_0x238520?console[_0x550307(0x1c9)](_0x550307(0x1cf)):(console[_0x550307(0x1c9)](_0x550307(0x1ac)),console['log']('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x7755e8)),console[_0x550307(0x1c9)](''));})[_0x1a3ef8(0x1ad)](()=>{const _0x9c0a77=_0x1a3ef8;!_0x513f7d&&(console['log'](_0x9c0a77(0x1ac)),console[_0x9c0a77(0x1c9)](_0x9c0a77(0x1c3),_0x7755e8),console[_0x9c0a77(0x1c9)](''));});}),_0x22b19d['on']('error',_0x4b26a4=>{const _0x5b1849=_0x5b7ab0;!_0x513f7d&&console[_0x5b1849(0x1c6)](_0x5b1849(0x1b6),_0x4b26a4),_0x34a904(_0x4b26a4);});});}function openInBrowser(_0x1e8fba){return new Promise(_0x18c790=>{const _0x515f3f=a4_0x2e59,_0x3706a2=process[_0x515f3f(0x1ca)];let _0x2cdb93;if(_0x3706a2===_0x515f3f(0x1d5))_0x2cdb93=_0x515f3f(0x1b7)+_0x1e8fba+'\x22';else _0x3706a2==='darwin'?_0x2cdb93='open\x20\x22'+_0x1e8fba+'\x22':_0x2cdb93=_0x515f3f(0x1bc)+_0x1e8fba+'\x22';exec(_0x2cdb93,_0x1e0d7a=>{_0x1e0d7a?_0x18c790(![]):_0x18c790(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x128332(0x1c9)](a4_0x128332(0x1b8),isAuth);}
@@ -1 +1 @@
1
- const a5_0x28483f=a5_0x1427;(function(_0x24bbe1,_0x1f168c){const _0x2bc27d=a5_0x1427,_0x143d6d=_0x24bbe1();while(!![]){try{const _0x29c5bb=-parseInt(_0x2bc27d(0x9a))/0x1+-parseInt(_0x2bc27d(0x97))/0x2+parseInt(_0x2bc27d(0x9c))/0x3+parseInt(_0x2bc27d(0x98))/0x4+-parseInt(_0x2bc27d(0x9b))/0x5+parseInt(_0x2bc27d(0x96))/0x6+-parseInt(_0x2bc27d(0x9d))/0x7;if(_0x29c5bb===_0x1f168c)break;else _0x143d6d['push'](_0x143d6d['shift']());}catch(_0x48af46){_0x143d6d['push'](_0x143d6d['shift']());}}}(a5_0x2b37,0x6f304));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x28483f(0x99));export const cookieFile=join(configDir,a5_0x28483f(0x9e));function a5_0x1427(_0x199ebd,_0x15eb60){_0x199ebd=_0x199ebd-0x96;const _0x2b3741=a5_0x2b37();let _0x142747=_0x2b3741[_0x199ebd];return _0x142747;}mkdirSync(configDir,{'recursive':!![]});function a5_0x2b37(){const _0x2ba297=['cookie','4952928tYAuPN','1621476ABsnsG','2488300Bioofm','.lovrabet','98374ZSdyAM','393245WMqjBU','1414242epDDET','3330516pdPZnu'];a5_0x2b37=function(){return _0x2ba297;};return a5_0x2b37();}
1
+ const a5_0x1b9d31=a5_0x2aa2;function a5_0x2aa2(_0x1b6d76,_0x4b5b32){_0x1b6d76=_0x1b6d76-0xfe;const _0x3f31a1=a5_0x3f31();let _0x2aa282=_0x3f31a1[_0x1b6d76];return _0x2aa282;}function a5_0x3f31(){const _0x56f31a=['cookie','2442aIJAXx','173467paQrpg','437210iQISLG','18qxZRML','.lovrabet','16SbiXms','3933udBklt','226559XPEZIw','652620egylRx','4639740SLfmBY','1144ToeLml'];a5_0x3f31=function(){return _0x56f31a;};return a5_0x3f31();}(function(_0x4c1662,_0x18206f){const _0x2f9616=a5_0x2aa2,_0x558e19=_0x4c1662();while(!![]){try{const _0x2bca52=-parseInt(_0x2f9616(0x100))/0x1+parseInt(_0x2f9616(0xfe))/0x2*(-parseInt(_0x2f9616(0x105))/0x3)+parseInt(_0x2f9616(0x101))/0x4+-parseInt(_0x2f9616(0x107))/0x5+parseInt(_0x2f9616(0x108))/0x6*(-parseInt(_0x2f9616(0x106))/0x7)+parseInt(_0x2f9616(0x103))/0x8*(-parseInt(_0x2f9616(0xff))/0x9)+parseInt(_0x2f9616(0x102))/0xa;if(_0x2bca52===_0x18206f)break;else _0x558e19['push'](_0x558e19['shift']());}catch(_0x537c0e){_0x558e19['push'](_0x558e19['shift']());}}}(a5_0x3f31,0x29736));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x1b9d31(0x109));export const cookieFile=join(configDir,a5_0x1b9d31(0x104));mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x16b412,_0x431796){var _0x5c9cb1=a6_0x19c3,_0x571ea3=_0x16b412();while(!![]){try{var _0xd73f6a=parseInt(_0x5c9cb1(0x13a))/0x1*(-parseInt(_0x5c9cb1(0x13f))/0x2)+-parseInt(_0x5c9cb1(0x140))/0x3*(parseInt(_0x5c9cb1(0x13b))/0x4)+-parseInt(_0x5c9cb1(0x137))/0x5+parseInt(_0x5c9cb1(0x13e))/0x6+-parseInt(_0x5c9cb1(0x141))/0x7+-parseInt(_0x5c9cb1(0x13d))/0x8*(parseInt(_0x5c9cb1(0x139))/0x9)+parseInt(_0x5c9cb1(0x138))/0xa;if(_0xd73f6a===_0x431796)break;else _0x571ea3['push'](_0x571ea3['shift']());}catch(_0x10c90a){_0x571ea3['push'](_0x571ea3['shift']());}}}(a6_0x9868,0x2dd8f));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a6_0x19c3(_0x3f8c5b,_0x424baf){_0x3f8c5b=_0x3f8c5b-0x137;var _0x986811=a6_0x9868();var _0x19c3fb=_0x986811[_0x3f8c5b];return _0x19c3fb;}export function getCookie(){var _0x748b09=a6_0x19c3;try{return readFileSync(cookieFile,_0x748b09(0x13c));}catch{}return'';}function a6_0x9868(){var _0x17e71a=['1907728jUmOTa','882726cvPndh','1512xZjAbp','2241EqavKV','2234533gODcbM','486430okmfHt','10421050cfpBaz','9dbfoTI','233kKGboC','912YqiaNa','utf-8'];a6_0x9868=function(){return _0x17e71a;};return a6_0x9868();}
1
+ function a6_0x543d(_0x227d81,_0x2329c4){_0x227d81=_0x227d81-0x15c;var _0x30f975=a6_0x30f9();var _0x543d40=_0x30f975[_0x227d81];return _0x543d40;}function a6_0x30f9(){var _0x57090e=['utf-8','255842IcoTtT','1267222tYbsua','400YxFLcw','14UvjKDS','6KPvnmw','20940183Kfhmbu','1106856xmKeeY','5175unDJyc','73400GlNsai','22040DKXxXr','14439240DStuQY'];a6_0x30f9=function(){return _0x57090e;};return a6_0x30f9();}(function(_0xedd212,_0x2c85f3){var _0x2c4695=a6_0x543d,_0x1874c4=_0xedd212();while(!![]){try{var _0x3573fb=parseInt(_0x2c4695(0x167))/0x1+-parseInt(_0x2c4695(0x166))/0x2*(parseInt(_0x2c4695(0x15e))/0x3)+-parseInt(_0x2c4695(0x15c))/0x4*(-parseInt(_0x2c4695(0x162))/0x5)+parseInt(_0x2c4695(0x160))/0x6*(-parseInt(_0x2c4695(0x15d))/0x7)+-parseInt(_0x2c4695(0x164))/0x8+-parseInt(_0x2c4695(0x161))/0x9*(parseInt(_0x2c4695(0x163))/0xa)+parseInt(_0x2c4695(0x15f))/0xb;if(_0x3573fb===_0x2c85f3)break;else _0x1874c4['push'](_0x1874c4['shift']());}catch(_0x40168a){_0x1874c4['push'](_0x1874c4['shift']());}}}(a6_0x30f9,0xe5f34));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x150250=a6_0x543d;try{return readFileSync(cookieFile,_0x150250(0x165));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x10a88b,_0x1ba01c){const _0x50d9eb=a7_0x1ca9,_0x1267a2=_0x10a88b();while(!![]){try{const _0x4bafb3=parseInt(_0x50d9eb(0xa2))/0x1*(parseInt(_0x50d9eb(0xa4))/0x2)+-parseInt(_0x50d9eb(0xa9))/0x3+-parseInt(_0x50d9eb(0xa8))/0x4*(-parseInt(_0x50d9eb(0xaa))/0x5)+-parseInt(_0x50d9eb(0xa3))/0x6*(-parseInt(_0x50d9eb(0xae))/0x7)+parseInt(_0x50d9eb(0xab))/0x8*(-parseInt(_0x50d9eb(0xaf))/0x9)+-parseInt(_0x50d9eb(0xa5))/0xa*(-parseInt(_0x50d9eb(0xb0))/0xb)+-parseInt(_0x50d9eb(0xad))/0xc;if(_0x4bafb3===_0x1ba01c)break;else _0x1267a2['push'](_0x1267a2['shift']());}catch(_0x5e1d33){_0x1267a2['push'](_0x1267a2['shift']());}}}(a7_0x138d,0x9b94b));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x1ca9(_0x53ed60,_0x3b9574){_0x53ed60=_0x53ed60-0xa1;const _0x138d59=a7_0x138d();let _0x1ca910=_0x138d59[_0x53ed60];return _0x1ca910;}function a7_0x138d(){const _0x14b58a=['4rYHPQl','2470302yVFAem','145876DzIyqy','10KRHRuu','json','session','82204LVLbVo','484350GqideK','65KbYSzI','6417104rfWJme','utf-8','3842844WYjIXh','21OXrswo','9DWBuwJ','1397198VOHmGH','user'];a7_0x138d=function(){return _0x14b58a;};return a7_0x138d();}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0xc4f578=a7_0x1ca9;try{if(!existsSync(cookieFile))return null;const _0x81802c=readFileSync(cookieFile,_0xc4f578(0xac)),_0xdb24b5=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x81802c}});if(!_0xdb24b5['ok'])return null;const _0x43345b=await _0xdb24b5[_0xc4f578(0xa6)]();if(!_0x43345b[_0xc4f578(0xa7)]||!_0x43345b[_0xc4f578(0xa1)])return null;return _0x43345b;}catch{return null;}}
1
+ function a7_0x5c77(){const _0x44917d=['session','1316816ikUGOY','14290346Tzriex','4642470TvTYsm','2047015FkUtwe','999180ajogHK','utf-8','1224546lIYsFL','3542828TWwtfQ'];a7_0x5c77=function(){return _0x44917d;};return a7_0x5c77();}(function(_0x4b2150,_0x4667ba){const _0x41822e=a7_0x59ea,_0x1fc91c=_0x4b2150();while(!![]){try{const _0x43e49f=parseInt(_0x41822e(0xac))/0x1+parseInt(_0x41822e(0xa8))/0x2+parseInt(_0x41822e(0xae))/0x3+parseInt(_0x41822e(0xa6))/0x4+parseInt(_0x41822e(0xab))/0x5+-parseInt(_0x41822e(0xaa))/0x6+-parseInt(_0x41822e(0xa9))/0x7;if(_0x43e49f===_0x4667ba)break;else _0x1fc91c['push'](_0x1fc91c['shift']());}catch(_0x601bf8){_0x1fc91c['push'](_0x1fc91c['shift']());}}}(a7_0x5c77,0x85379));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x59ea(_0x410d12,_0x116ede){_0x410d12=_0x410d12-0xa6;const _0x5c77b3=a7_0x5c77();let _0x59ea43=_0x5c77b3[_0x410d12];return _0x59ea43;}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x5ec626=a7_0x59ea;try{if(!existsSync(cookieFile))return null;const _0x55cab6=readFileSync(cookieFile,_0x5ec626(0xad)),_0x412d70=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x55cab6}});if(!_0x412d70['ok'])return null;const _0x3118c1=await _0x412d70['json']();if(!_0x3118c1[_0x5ec626(0xa7)]||!_0x3118c1['user'])return null;return _0x3118c1;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x21318c,_0x5a1858){const _0x9a40c2=a8_0x37a1,_0x5e24c7=_0x21318c();while(!![]){try{const _0x5ec807=parseInt(_0x9a40c2(0x118))/0x1*(-parseInt(_0x9a40c2(0x11e))/0x2)+parseInt(_0x9a40c2(0x120))/0x3*(parseInt(_0x9a40c2(0x122))/0x4)+-parseInt(_0x9a40c2(0x11c))/0x5*(parseInt(_0x9a40c2(0x126))/0x6)+parseInt(_0x9a40c2(0x11a))/0x7+-parseInt(_0x9a40c2(0x11b))/0x8*(parseInt(_0x9a40c2(0x124))/0x9)+parseInt(_0x9a40c2(0x125))/0xa*(-parseInt(_0x9a40c2(0x121))/0xb)+parseInt(_0x9a40c2(0x119))/0xc*(parseInt(_0x9a40c2(0x11d))/0xd);if(_0x5ec807===_0x5a1858)break;else _0x5e24c7['push'](_0x5e24c7['shift']());}catch(_0x33210f){_0x5e24c7['push'](_0x5e24c7['shift']());}}}(a8_0x5ddc,0xe941f));function a8_0x37a1(_0x3bc4c5,_0xe45512){_0x3bc4c5=_0x3bc4c5-0x115;const _0x5ddccb=a8_0x5ddc();let _0x37a102=_0x5ddccb[_0x3bc4c5];return _0x37a102;}import{existsSync,readFileSync}from'node:fs';function a8_0x5ddc(){const _0x176f68=['84sAyNMA','11687956qnBied','5089376yrWneg','6626715jqowRy','2813603EniqXR','352018mbgUuG','json','3KylLhL','88vrfWTj','3972848OZTgol','session','9AiulVu','36170AaYgNI','6LCgBeI','utf-8','user','then','7kHCbCy'];a8_0x5ddc=function(){return _0x176f68;};return a8_0x5ddc();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x5c3576=a8_0x37a1;try{if(!existsSync(cookieFile))return![];const _0x445fe1=readFileSync(cookieFile,_0x5c3576(0x115)),_0x7dcecf=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x445fe1}})[_0x5c3576(0x117)](_0x397bc3=>_0x397bc3[_0x5c3576(0x11f)]());return _0x7dcecf&&_0x7dcecf[_0x5c3576(0x123)]&&_0x7dcecf[_0x5c3576(0x116)];}catch{}return![];}
1
+ (function(_0x2dc71a,_0x13976c){const _0x44c6d6=a8_0x2f9b,_0x2fafe2=_0x2dc71a();while(!![]){try{const _0x275990=parseInt(_0x44c6d6(0xf0))/0x1*(parseInt(_0x44c6d6(0xf1))/0x2)+parseInt(_0x44c6d6(0xf8))/0x3+parseInt(_0x44c6d6(0xfa))/0x4+parseInt(_0x44c6d6(0xfb))/0x5+parseInt(_0x44c6d6(0xee))/0x6*(-parseInt(_0x44c6d6(0xf6))/0x7)+parseInt(_0x44c6d6(0xf7))/0x8*(parseInt(_0x44c6d6(0xf4))/0x9)+parseInt(_0x44c6d6(0xf9))/0xa*(-parseInt(_0x44c6d6(0xf3))/0xb);if(_0x275990===_0x13976c)break;else _0x2fafe2['push'](_0x2fafe2['shift']());}catch(_0x367bc3){_0x2fafe2['push'](_0x2fafe2['shift']());}}}(a8_0x4ed3,0x2b0bd));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0x2f9b(_0x5d6973,_0x100239){_0x5d6973=_0x5d6973-0xee;const _0x4ed38e=a8_0x4ed3();let _0x2f9b8d=_0x4ed38e[_0x5d6973];return _0x2f9b8d;}export async function getIsSessionValid(){const _0x2a27a5=a8_0x2f9b;try{if(!existsSync(cookieFile))return![];const _0x59c593=readFileSync(cookieFile,_0x2a27a5(0xfc)),_0x151b75=await fetch(getUserDomain()+_0x2a27a5(0xf5),{'headers':{'cookie':_0x59c593}})[_0x2a27a5(0xef)](_0x5dc993=>_0x5dc993['json']());return _0x151b75&&_0x151b75['session']&&_0x151b75[_0x2a27a5(0xf2)];}catch{}return![];}function a8_0x4ed3(){const _0x5c6ca2=['80802vcSUDI','8350nDbEtV','585632ibmxHW','162360DKFcrY','utf-8','42mhlGNn','then','1vxPmKe','355678BseyZP','user','55QKiVIJ','126NTiwez','/api/auth/get-session','234227LRonZS','17752rhWQBs'];a8_0x4ed3=function(){return _0x5c6ca2;};return a8_0x4ed3();}
@@ -1 +1 @@
1
- (function(_0x39ca9f,_0x1443ff){var _0x2aed27=a9_0x3928,_0x5a18c7=_0x39ca9f();while(!![]){try{var _0x12190d=parseInt(_0x2aed27(0x1de))/0x1+parseInt(_0x2aed27(0x1d9))/0x2*(parseInt(_0x2aed27(0x1dc))/0x3)+parseInt(_0x2aed27(0x1d6))/0x4+parseInt(_0x2aed27(0x1db))/0x5*(parseInt(_0x2aed27(0x1d7))/0x6)+parseInt(_0x2aed27(0x1e1))/0x7*(parseInt(_0x2aed27(0x1da))/0x8)+parseInt(_0x2aed27(0x1e4))/0x9*(parseInt(_0x2aed27(0x1dd))/0xa)+-parseInt(_0x2aed27(0x1e0))/0xb*(parseInt(_0x2aed27(0x1e3))/0xc);if(_0x12190d===_0x1443ff)break;else _0x5a18c7['push'](_0x5a18c7['shift']());}catch(_0xbc4b05){_0x5a18c7['push'](_0x5a18c7['shift']());}}}(a9_0x31d7,0x3af04));function a9_0x3928(_0xd5f19e,_0x14a8c6){_0xd5f19e=_0xd5f19e-0x1d6;var _0x31d725=a9_0x31d7();var _0x392811=_0x31d725[_0xd5f19e];return _0x392811;}import{unlinkSync,existsSync}from'node:fs';function a9_0x31d7(){var _0x85b832=['14550108jwpFRJ','53127iifrLg','815700hgioSu','402396wbYdaM','✓\x20Logged\x20out','87344sKNTao','1417384MpyMgJ','30DGkdCk','21vXhBTh','200Tysmus','246663EDRosX','!\x20Not\x20logged\x20in','11dkusqh','7oEyMCk','log'];a9_0x31d7=function(){return _0x85b832;};return a9_0x31d7();}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x55bee8=a9_0x3928;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x55bee8(0x1e2)](_0x55bee8(0x1d8))):console[_0x55bee8(0x1e2)](_0x55bee8(0x1df));}
1
+ (function(_0x10da63,_0xafa308){var _0x12dfea=a9_0xdeef,_0x3d39fd=_0x10da63();while(!![]){try{var _0x4997b6=parseInt(_0x12dfea(0xaf))/0x1+parseInt(_0x12dfea(0xb2))/0x2+parseInt(_0x12dfea(0xb3))/0x3*(parseInt(_0x12dfea(0xb0))/0x4)+-parseInt(_0x12dfea(0xa9))/0x5+parseInt(_0x12dfea(0xab))/0x6+-parseInt(_0x12dfea(0xb1))/0x7*(parseInt(_0x12dfea(0xad))/0x8)+-parseInt(_0x12dfea(0xac))/0x9;if(_0x4997b6===_0xafa308)break;else _0x3d39fd['push'](_0x3d39fd['shift']());}catch(_0x5f24d0){_0x3d39fd['push'](_0x3d39fd['shift']());}}}(a9_0x5930,0x5d534));import{unlinkSync,existsSync}from'node:fs';function a9_0x5930(){var _0x5626c6=['593423PvNcUD','2260812WJpRvn','28KRavOd','86370fBgEiy','3xqpQDQ','log','1367220psSgIz','!\x20Not\x20logged\x20in','3989622xsCwtv','5862492dQhjMI','1119312TtFfoQ','✓\x20Logged\x20out'];a9_0x5930=function(){return _0x5626c6;};return a9_0x5930();}import{cookieFile}from'../auth/constant.js';function a9_0xdeef(_0x2ce30c,_0x59d1dd){_0x2ce30c=_0x2ce30c-0xa8;var _0x593022=a9_0x5930();var _0xdeef02=_0x593022[_0x2ce30c];return _0xdeef02;}export function logout(){var _0x49d015=a9_0xdeef;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x49d015(0xa8)](_0x49d015(0xae))):console['log'](_0x49d015(0xaa));}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- function a10_0x5c6e(_0x53b5af,_0x4921f6){_0x53b5af=_0x53b5af-0x95;const _0x5833ca=a10_0x5833();let _0x5c6e8f=_0x5833ca[_0x53b5af];return _0x5c6e8f;}(function(_0x1baa2a,_0xc58628){const _0x50ff9d=a10_0x5c6e,_0x3c7687=_0x1baa2a();while(!![]){try{const _0x1236de=-parseInt(_0x50ff9d(0x9c))/0x1*(-parseInt(_0x50ff9d(0x96))/0x2)+-parseInt(_0x50ff9d(0x99))/0x3*(-parseInt(_0x50ff9d(0x95))/0x4)+parseInt(_0x50ff9d(0x98))/0x5*(parseInt(_0x50ff9d(0x9a))/0x6)+-parseInt(_0x50ff9d(0x9d))/0x7*(parseInt(_0x50ff9d(0x9b))/0x8)+-parseInt(_0x50ff9d(0x97))/0x9*(parseInt(_0x50ff9d(0x9e))/0xa)+parseInt(_0x50ff9d(0xa0))/0xb+parseInt(_0x50ff9d(0x9f))/0xc;if(_0x1236de===_0xc58628)break;else _0x3c7687['push'](_0x3c7687['shift']());}catch(_0x52df61){_0x3c7687['push'](_0x3c7687['shift']());}}}(a10_0x5833,0x8e31a));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};function a10_0x5833(){const _0x19e880=['3297573qqqNch','4115ldBdur','21573CzZpDN','72YethLH','66208qNJXqT','33619MamyXg','553qcpAAb','30lwWVFF','15058824YagDbn','5949295uDbwvL','276XUpipw','2jcfWGF'];a10_0x5833=function(){return _0x19e880;};return a10_0x5833();}
1
+ const a10_0x4faa7c=a10_0x50e4;function a10_0x50e4(_0x334e3b,_0x5e3c57){_0x334e3b=_0x334e3b-0x110;const _0x553f9f=a10_0x553f();let _0x50e4ae=_0x553f9f[_0x334e3b];return _0x50e4ae;}function a10_0x553f(){const _0x820eb7=['2985420iWaAJx','12KgmTSq','6BuEFVe','boolean','895TKijXV','22404UhzjjB','29547570ZwPQgf','77852qCQYtq','7643412LEjfhh','2350416CrRbbB','3196984UMpbhs'];a10_0x553f=function(){return _0x820eb7;};return a10_0x553f();}(function(_0x35fb4e,_0x462442){const _0x5b994b=a10_0x50e4,_0x3c065d=_0x35fb4e();while(!![]){try{const _0x204e59=-parseInt(_0x5b994b(0x112))/0x1*(-parseInt(_0x5b994b(0x118))/0x2)+parseInt(_0x5b994b(0x116))/0x3+-parseInt(_0x5b994b(0x110))/0x4*(-parseInt(_0x5b994b(0x11a))/0x5)+-parseInt(_0x5b994b(0x117))/0x6*(-parseInt(_0x5b994b(0x115))/0x7)+-parseInt(_0x5b994b(0x114))/0x8+parseInt(_0x5b994b(0x113))/0x9+-parseInt(_0x5b994b(0x111))/0xa;if(_0x204e59===_0x462442)break;else _0x3c065d['push'](_0x3c065d['shift']());}catch(_0x25ddf7){_0x3c065d['push'](_0x3c065d['shift']());}}}(a10_0x553f,0xb5fc0));export const dynamicCliFlags={'enableBffSave':{'type':a10_0x4faa7c(0x119)}};
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a11_0x3a5643=a11_0x226b;(function(_0x161389,_0x4a8dbf){const _0x395544=a11_0x226b,_0x327e49=_0x161389();while(!![]){try{const _0x5cca10=-parseInt(_0x395544(0xa7))/0x1*(-parseInt(_0x395544(0xb3))/0x2)+-parseInt(_0x395544(0xab))/0x3+-parseInt(_0x395544(0xcd))/0x4*(parseInt(_0x395544(0xaf))/0x5)+parseInt(_0x395544(0xb7))/0x6*(-parseInt(_0x395544(0xb0))/0x7)+-parseInt(_0x395544(0xa4))/0x8*(parseInt(_0x395544(0xb5))/0x9)+parseInt(_0x395544(0xad))/0xa*(parseInt(_0x395544(0xd3))/0xb)+parseInt(_0x395544(0xae))/0xc;if(_0x5cca10===_0x4a8dbf)break;else _0x327e49['push'](_0x327e49['shift']());}catch(_0x2a9512){_0x327e49['push'](_0x327e49['shift']());}}}(a11_0x334d,0x33d8c));import a11_0x4659fd from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';function a11_0x226b(_0x1af04b,_0x314dd8){_0x1af04b=_0x1af04b-0xa3;const _0x334d5c=a11_0x334d();let _0x226bf5=_0x334d5c[_0x1af04b];return _0x226bf5;}import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';import{runCommand}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{getCookie}from'./auth/get-cookie.js';import{getApiDomain}from'./constant/domain.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{isNonInteractive as a11_0x2be0d5}from'./utils/is-non-interactive.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;function a11_0x334d(){const _0x1844a4=['code','`\x20has\x20been\x20moved\x20to\x20`','3pJpoio','verbose','./constant/domain.js','flags','990714HDYEmw','apiDomain','10MAsFbg','7096440TZTjlQ','55730UjWsLg','212506QTMPla','error','raw','219088uAzxsD','unknown_service','2691nnuuvN','runtimeDomain','6mLSKbg','slice','./cli-flags.js','input','global','userDomain','Error:\x20','explicitAppName','\x0aCancelled.\x0a','riskLevel','pageSize','write','cancelled','message','exitCode','⚠\x20`','env','service','./constant/env.js','Unexpected\x20error:','dynamicCliFlags','help','8iRjNCR','defaultCommand','appCode','now','stderr','apiDir','904079oxXyns','Hint:\x20','unknown','wildcardDef','log','name','10888hGkxec'];a11_0x334d=function(){return _0x1844a4;};return a11_0x334d();}try{dynamicCliFlags=(await import(a11_0x3a5643(0xb9)))[a11_0x3a5643(0xcb)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a11_0x3a5643(0xd5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a11_0x3a5643(0xb8)](0x0,0xa)+')':VERSION,cli=a11_0x4659fd(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x2fb24f=a11_0x3a5643;let _0x5b2a2e=cli['input'][0x0],_0x5990f8=cli[_0x2fb24f(0xba)][0x1];const _0x26cdf0=cli[_0x2fb24f(0xaa)];if(!_0x5b2a2e){await reportCliHelpTrace(_0x2fb24f(0xbb)),showHelp();return;}const _0x14881d=deprecatedAliases[_0x5b2a2e];if(_0x14881d&&!isKnownService(_0x5b2a2e)){const _0x31ef36=_0x5990f8?CLI_BIN_NAME+'\x20'+_0x5b2a2e+'\x20'+_0x5990f8:CLI_BIN_NAME+'\x20'+_0x5b2a2e,_0x57cd50=CLI_BIN_NAME+'\x20'+_0x14881d[_0x2fb24f(0xc8)]+'\x20'+_0x14881d['command'];console['error'](_0x2fb24f(0xc6)+_0x31ef36+_0x2fb24f(0xa6)+_0x57cd50+'`\x20in\x20v2.0.\x0a'+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x5b2a2e)){await reportCliHelpTrace(_0x2fb24f(0xb4),{'service':_0x5b2a2e}),showHelp();return;}const _0x23e371=getServiceEntry(_0x5b2a2e);if(_0x26cdf0[_0x2fb24f(0xc7)]&&typeof _0x26cdf0['env']==='string'){const {initEnv:_0x1b28d7}=await import(_0x2fb24f(0xc9));_0x1b28d7(_0x26cdf0['env']);}const {buildConfigFromFlags:_0x5309f4}=await import('./context.js'),_0x26194c=_0x5309f4(_0x26cdf0);if(!_0x26cdf0[_0x2fb24f(0xc7)]&&_0x26194c[_0x2fb24f(0xc7)]){const {initEnv:_0x321236}=await import(_0x2fb24f(0xc9));_0x321236(_0x26194c[_0x2fb24f(0xc7)]);}if(_0x26194c[_0x2fb24f(0xb2)]?.[_0x2fb24f(0xac)]||_0x26194c[_0x2fb24f(0xb2)]?.[_0x2fb24f(0xbc)]||_0x26194c[_0x2fb24f(0xb2)]?.[_0x2fb24f(0xb6)]){const {initDomains:_0x5b755f}=await import(_0x2fb24f(0xa9));_0x5b755f({'apiDomain':_0x26194c['raw'][_0x2fb24f(0xac)]||undefined,'userDomain':_0x26194c[_0x2fb24f(0xb2)][_0x2fb24f(0xbc)]||undefined,'runtimeDomain':_0x26194c['raw'][_0x2fb24f(0xb6)]||undefined});}if(!_0x5990f8){if(_0x23e371['defaultCommand'])_0x5990f8=_0x23e371[_0x2fb24f(0xce)];else{if(_0x23e371[_0x2fb24f(0xd6)]){if(_0x26cdf0[_0x2fb24f(0xcc)]){console['log'](generateCommandHelp(_0x23e371['wildcardDef']));return;}await dispatchDeclarative(_0x23e371['wildcardDef'],_0x5b2a2e,'',[],_0x26cdf0,_0x26194c);return;}else{printServiceHelp(_0x5b2a2e);return;}}}if(_0x26cdf0[_0x2fb24f(0xcc)]&&!findDefinition(_0x5b2a2e,_0x5990f8)){printServiceHelp(_0x5b2a2e);return;}{let _0x3cd8a8=findDefinition(_0x5b2a2e,_0x5990f8),_0x5d146b=cli['input'][_0x2fb24f(0xb8)](0x2);if(!_0x3cd8a8){if(_0x23e371[_0x2fb24f(0xd6)]){if(_0x26cdf0[_0x2fb24f(0xcc)]){console['log'](generateCommandHelp(_0x23e371[_0x2fb24f(0xd6)]));return;}_0x3cd8a8=_0x23e371[_0x2fb24f(0xd6)],_0x5d146b=[_0x5990f8,...cli[_0x2fb24f(0xba)]['slice'](0x2)];}else{printServiceHelp(_0x5b2a2e),await handleErrorAsync(CliErrors['unknownCommand'](_0x5b2a2e+'\x20'+_0x5990f8));return;}}if(_0x26cdf0[_0x2fb24f(0xcc)]){console['log'](generateCommandHelp(_0x3cd8a8));return;}await dispatchDeclarative(_0x3cd8a8,_0x5b2a2e,_0x5990f8,_0x5d146b,_0x26cdf0,_0x26194c);}}async function dispatchDeclarative(_0x3aa95a,_0x5444fa,_0x1dd650,_0x5e6c63,_0x5460f6,_0x5618ca){const _0x14dd1a=a11_0x3a5643,_0x454441=Date[_0x14dd1a(0xd0)]();let _0x39f99b;try{await runCommand(_0x3aa95a,{'rawFlags':_0x5460f6,'args':_0x5e6c63,'resolveAppCode':()=>_0x5618ca[_0x14dd1a(0xcf)]||_0x5460f6['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x5618ca['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a11_0x2be0d5(_0x5460f6),'defaultFormat':_0x5618ca['format'],'defaultPageSize':_0x5618ca[_0x14dd1a(0xc1)],'defaultVerbose':_0x5618ca[_0x14dd1a(0xa8)],'apiDir':_0x5618ca[_0x14dd1a(0xd2)],'riskLevel':_0x5618ca[_0x14dd1a(0xc0)],'selectedAppName':_0x5618ca[_0x14dd1a(0xbe)]});}catch(_0x9e6ff8){_0x39f99b=_0x9e6ff8;}await reportCommandTrace({'service':_0x5444fa,'command':_0x1dd650,'flags':_0x5460f6,'durationMs':Date['now']()-_0x454441,'error':_0x39f99b});if(_0x39f99b)await handleErrorAsync(_0x39f99b);}function printServiceHelp(_0x10fc90){const _0x3c3955=a11_0x3a5643;console[_0x3c3955(0xd7)](generateServiceHelp(_0x10fc90));}async function handleErrorAsync(_0x47bf9b){const _0x290ae4=a11_0x3a5643;if(_0x47bf9b instanceof Error&&_0x47bf9b[_0x290ae4(0xa3)]==='ExitPromptError')return process[_0x290ae4(0xd1)][_0x290ae4(0xc2)](_0x290ae4(0xbf)),await exitWithOtelShutdown(0x0);if(_0x47bf9b instanceof CliError){if(_0x47bf9b[_0x290ae4(0xa5)]===_0x290ae4(0xc3))return process[_0x290ae4(0xd1)][_0x290ae4(0xc2)]('\x0a'+_0x47bf9b[_0x290ae4(0xc4)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x290ae4(0xb1)](_0x290ae4(0xbd)+_0x47bf9b[_0x290ae4(0xc4)]);if(_0x47bf9b['hint'])console[_0x290ae4(0xb1)](_0x290ae4(0xd4)+_0x47bf9b['hint']);return await exitWithOtelShutdown(_0x47bf9b[_0x290ae4(0xc5)]);}return console[_0x290ae4(0xb1)](_0x290ae4(0xca),_0x47bf9b),await exitWithOtelShutdown(0x1);}
2
+ const a11_0x82e42a=a11_0xa5f9;function a11_0xa5f9(_0x4049b2,_0x1da23e){_0x4049b2=_0x4049b2-0xbb;const _0x34a7c9=a11_0x34a7();let _0xa5f933=_0x34a7c9[_0x4049b2];return _0xa5f933;}(function(_0x587b98,_0x1d5a97){const _0x352176=a11_0xa5f9,_0x1cfed2=_0x587b98();while(!![]){try{const _0x47568a=-parseInt(_0x352176(0xbe))/0x1*(-parseInt(_0x352176(0xe1))/0x2)+parseInt(_0x352176(0xdb))/0x3*(-parseInt(_0x352176(0xdd))/0x4)+parseInt(_0x352176(0xe4))/0x5+parseInt(_0x352176(0xc8))/0x6*(parseInt(_0x352176(0xce))/0x7)+-parseInt(_0x352176(0xc5))/0x8+parseInt(_0x352176(0xc7))/0x9+-parseInt(_0x352176(0xe5))/0xa;if(_0x47568a===_0x1d5a97)break;else _0x1cfed2['push'](_0x1cfed2['shift']());}catch(_0x25600d){_0x1cfed2['push'](_0x1cfed2['shift']());}}}(a11_0x34a7,0xdbb49));import a11_0x2bbc4a from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';import{runCommand}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{getCookie}from'./auth/get-cookie.js';import{getApiDomain}from'./constant/domain.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{isNonInteractive as a11_0x338a54}from'./utils/is-non-interactive.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;function a11_0x34a7(){const _0x308f7d=['slice','format','raw','service','791yCgjVU','message','cancelled','ExitPromptError','userDomain','Unexpected\x20error:','`\x20in\x20v2.0.\x0a','log','help','error','appcode','⚠\x20`','code','277461SHPGyF','runtimeDomain','32ElXCzV','stderr','./constant/env.js','apiDomain','3149170FYNEKX','write','hint','4745455MKtWBF','27682740tdJtKq','global','unknown','now','exitCode','defaultCommand','unknown_service','\x0aCancelled.\x0a','verbose','flags','Hint:\x20','name','riskLevel','1xGiJjl','./context.js','input','env','explicitAppName','Error:\x20','dynamicCliFlags','1900736GxQKRS','wildcardDef','14683194FkMiik','26046OpHbQw','unknownCommand'];a11_0x34a7=function(){return _0x308f7d;};return a11_0x34a7();}try{dynamicCliFlags=(await import('./cli-flags.js'))[a11_0x82e42a(0xc4)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a11_0x82e42a(0xe7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a11_0x82e42a(0xca)](0x0,0xa)+')':VERSION,cli=a11_0x2bbc4a(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x2a65c5=a11_0x82e42a;let _0x2a8d61=cli[_0x2a65c5(0xc0)][0x0],_0x11ab6f=cli['input'][0x1];const _0x2a10fa=cli[_0x2a65c5(0xee)];if(!_0x2a8d61){await reportCliHelpTrace(_0x2a65c5(0xe6)),showHelp();return;}const _0x3856b0=deprecatedAliases[_0x2a8d61];if(_0x3856b0&&!isKnownService(_0x2a8d61)){const _0xb112af=_0x11ab6f?CLI_BIN_NAME+'\x20'+_0x2a8d61+'\x20'+_0x11ab6f:CLI_BIN_NAME+'\x20'+_0x2a8d61,_0x1d227b=CLI_BIN_NAME+'\x20'+_0x3856b0[_0x2a65c5(0xcd)]+'\x20'+_0x3856b0['command'];console[_0x2a65c5(0xd7)](_0x2a65c5(0xd9)+_0xb112af+'`\x20has\x20been\x20moved\x20to\x20`'+_0x1d227b+_0x2a65c5(0xd4)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x2a8d61)){await reportCliHelpTrace(_0x2a65c5(0xeb),{'service':_0x2a8d61}),showHelp();return;}const _0x97a5e3=getServiceEntry(_0x2a8d61);if(_0x2a10fa[_0x2a65c5(0xc1)]&&typeof _0x2a10fa[_0x2a65c5(0xc1)]==='string'){const {initEnv:_0x182dc2}=await import(_0x2a65c5(0xdf));_0x182dc2(_0x2a10fa[_0x2a65c5(0xc1)]);}const {buildConfigFromFlags:_0xbae389}=await import(_0x2a65c5(0xbf)),_0x225f7a=_0xbae389(_0x2a10fa);if(!_0x2a10fa[_0x2a65c5(0xc1)]&&_0x225f7a[_0x2a65c5(0xc1)]){const {initEnv:_0x3859b8}=await import(_0x2a65c5(0xdf));_0x3859b8(_0x225f7a[_0x2a65c5(0xc1)]);}if(_0x225f7a[_0x2a65c5(0xcc)]?.['apiDomain']||_0x225f7a[_0x2a65c5(0xcc)]?.[_0x2a65c5(0xd2)]||_0x225f7a[_0x2a65c5(0xcc)]?.['runtimeDomain']){const {initDomains:_0xebb943}=await import('./constant/domain.js');_0xebb943({'apiDomain':_0x225f7a['raw'][_0x2a65c5(0xe0)]||undefined,'userDomain':_0x225f7a[_0x2a65c5(0xcc)]['userDomain']||undefined,'runtimeDomain':_0x225f7a[_0x2a65c5(0xcc)][_0x2a65c5(0xdc)]||undefined});}if(!_0x11ab6f){if(_0x97a5e3[_0x2a65c5(0xea)])_0x11ab6f=_0x97a5e3[_0x2a65c5(0xea)];else{if(_0x97a5e3[_0x2a65c5(0xc6)]){if(_0x2a10fa['help']){console[_0x2a65c5(0xd5)](generateCommandHelp(_0x97a5e3[_0x2a65c5(0xc6)]));return;}await dispatchDeclarative(_0x97a5e3[_0x2a65c5(0xc6)],_0x2a8d61,'',[],_0x2a10fa,_0x225f7a);return;}else{printServiceHelp(_0x2a8d61);return;}}}if(_0x2a10fa[_0x2a65c5(0xd6)]&&!findDefinition(_0x2a8d61,_0x11ab6f)){printServiceHelp(_0x2a8d61);return;}{let _0x7e5ecd=findDefinition(_0x2a8d61,_0x11ab6f),_0x1cb272=cli[_0x2a65c5(0xc0)][_0x2a65c5(0xca)](0x2);if(!_0x7e5ecd){if(_0x97a5e3['wildcardDef']){if(_0x2a10fa[_0x2a65c5(0xd6)]){console[_0x2a65c5(0xd5)](generateCommandHelp(_0x97a5e3['wildcardDef']));return;}_0x7e5ecd=_0x97a5e3[_0x2a65c5(0xc6)],_0x1cb272=[_0x11ab6f,...cli[_0x2a65c5(0xc0)]['slice'](0x2)];}else{printServiceHelp(_0x2a8d61),await handleErrorAsync(CliErrors[_0x2a65c5(0xc9)](_0x2a8d61+'\x20'+_0x11ab6f));return;}}if(_0x2a10fa['help']){console['log'](generateCommandHelp(_0x7e5ecd));return;}await dispatchDeclarative(_0x7e5ecd,_0x2a8d61,_0x11ab6f,_0x1cb272,_0x2a10fa,_0x225f7a);}}async function dispatchDeclarative(_0x5278ea,_0xb2cd5e,_0x2e428f,_0x2cfaa0,_0xc6f57e,_0x42417b){const _0x3ffec3=a11_0x82e42a,_0x42077d=Date[_0x3ffec3(0xe8)]();let _0x411361;try{await runCommand(_0x5278ea,{'rawFlags':_0xc6f57e,'args':_0x2cfaa0,'resolveAppCode':()=>_0x42417b['appCode']||_0xc6f57e[_0x3ffec3(0xd8)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x42417b['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a11_0x338a54(_0xc6f57e),'defaultFormat':_0x42417b[_0x3ffec3(0xcb)],'defaultPageSize':_0x42417b['pageSize'],'defaultVerbose':_0x42417b[_0x3ffec3(0xed)],'apiDir':_0x42417b['apiDir'],'riskLevel':_0x42417b[_0x3ffec3(0xbd)],'selectedAppName':_0x42417b[_0x3ffec3(0xc2)]});}catch(_0x276a6e){_0x411361=_0x276a6e;}await reportCommandTrace({'service':_0xb2cd5e,'command':_0x2e428f,'flags':_0xc6f57e,'durationMs':Date[_0x3ffec3(0xe8)]()-_0x42077d,'error':_0x411361});if(_0x411361)await handleErrorAsync(_0x411361);}function printServiceHelp(_0x4b3436){const _0x3bbb9d=a11_0x82e42a;console[_0x3bbb9d(0xd5)](generateServiceHelp(_0x4b3436));}async function handleErrorAsync(_0x17e7cb){const _0x42a8af=a11_0x82e42a;if(_0x17e7cb instanceof Error&&_0x17e7cb[_0x42a8af(0xbc)]===_0x42a8af(0xd1))return process[_0x42a8af(0xde)]['write'](_0x42a8af(0xec)),await exitWithOtelShutdown(0x0);if(_0x17e7cb instanceof CliError){if(_0x17e7cb[_0x42a8af(0xda)]===_0x42a8af(0xd0))return process[_0x42a8af(0xde)][_0x42a8af(0xe2)]('\x0a'+_0x17e7cb[_0x42a8af(0xcf)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x42a8af(0xd7)](_0x42a8af(0xc3)+_0x17e7cb[_0x42a8af(0xcf)]);if(_0x17e7cb[_0x42a8af(0xe3)])console[_0x42a8af(0xd7)](_0x42a8af(0xbb)+_0x17e7cb[_0x42a8af(0xe3)]);return await exitWithOtelShutdown(_0x17e7cb[_0x42a8af(0xe9)]);}return console[_0x42a8af(0xd7)](_0x42a8af(0xd3),_0x17e7cb),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a12_0x4e91ec=a12_0x3ef7;(function(_0x528c95,_0x60a026){const _0x8ec011=a12_0x3ef7,_0x2007bc=_0x528c95();while(!![]){try{const _0xf9cab9=parseInt(_0x8ec011(0xac))/0x1*(-parseInt(_0x8ec011(0xbf))/0x2)+-parseInt(_0x8ec011(0xcc))/0x3*(parseInt(_0x8ec011(0xa6))/0x4)+parseInt(_0x8ec011(0xaf))/0x5+parseInt(_0x8ec011(0xa7))/0x6*(-parseInt(_0x8ec011(0xc1))/0x7)+parseInt(_0x8ec011(0xd3))/0x8*(parseInt(_0x8ec011(0xb5))/0x9)+parseInt(_0x8ec011(0xd4))/0xa*(parseInt(_0x8ec011(0xd5))/0xb)+parseInt(_0x8ec011(0xb0))/0xc;if(_0xf9cab9===_0x60a026)break;else _0x2007bc['push'](_0x2007bc['shift']());}catch(_0x5ec8e7){_0x2007bc['push'](_0x2007bc['shift']());}}}(a12_0x5641,0xc79c4));import a12_0xb5834b from'ora';function a12_0x3ef7(_0x138c58,_0x114279){_0x138c58=_0x138c58-0x9a;const _0x5641da=a12_0x5641();let _0x3ef7e9=_0x5641da[_0x138c58];return _0x3ef7e9;}function a12_0x5641(){const _0x203c1b=['join','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','string','str','.md','):\x20','some','doc','20RHsJXb','appCode','2262365WRfCAk','validation','\x20doc(s)\x20failed','success','\x0d\x20\x20[','message','\x1b[0m','...','isArray','\x20of\x20','succeed','1665etMqLc','output','parse','!\x20No\x20datasets\x20found.','length','start','write','2264632DClkmU','6206390SPfxAb','11wVENHa','split','filter','api','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','Doc\x20generation\x20complete:\x20','✓\x20Generated\x20','\x20failed','Doc\x20generation:\x20','\x20doc(s)\x20in\x20','datasetCode','must\x20be\x20a\x20JSON\x20object','datasetcode','params','\x20dataset(s)\x1b[0m','\x20file(s)','\x1b[90m*\x20Generating\x20docs\x20for:\x20','object','./docs','map','4204mgIffg','30sSDWom','datasetName','Fetched\x20','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','padStart','67059ukMCxR','\x20dataset(s)','stdout','3532830WSNerJ','24926280sQtErd','\x20\x20•\x20','trim','log','cookie','9RugFeZ','--datasetcode\x20cannot\x20be\x20empty.'];a12_0x5641=function(){return _0x203c1b;};return a12_0x5641();}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';export const apiDoc={'service':a12_0x4e91ec(0xd8),'command':a12_0x4e91ec(0xbe),'description':a12_0x4e91ec(0xd9),'risk':a12_0x4e91ec(0xd2),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a12_0x4e91ec(0xcd),'type':a12_0x4e91ec(0xb9),'description':'Output\x20directory\x20(default:\x20./docs)'},{'name':a12_0x4e91ec(0x9e),'type':a12_0x4e91ec(0xb9),'description':'Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for'},{'name':a12_0x4e91ec(0x9f),'type':a12_0x4e91ec(0xb9),'description':a12_0x4e91ec(0xaa)}],async 'execute'(_0x3f35ba){const _0x3fc189=a12_0x4e91ec,_0x4a6116=_0x3f35ba[_0x3fc189(0xba)](_0x3fc189(0xcd))||_0x3fc189(0xa4),_0x209cc9=_0x3f35ba[_0x3fc189(0xba)](_0x3fc189(0x9e)),_0x32aeec=_0x3f35ba[_0x3fc189(0xba)](_0x3fc189(0x9f));let _0x46986a;if(_0x32aeec)try{_0x46986a=JSON[_0x3fc189(0xce)](_0x32aeec);if(typeof _0x46986a!==_0x3fc189(0xa3)||_0x46986a===null||Array[_0x3fc189(0xc9)](_0x46986a))throw new Error(_0x3fc189(0x9d));}catch(_0x240b32){throw CliErrors[_0x3fc189(0xc2)]('Invalid\x20--params:\x20'+(_0x240b32 instanceof Error?_0x240b32[_0x3fc189(0xc6)]:String(_0x240b32)),'Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27');}let _0x5014bb;if(_0x209cc9){const _0xe9ea71=_0x209cc9[_0x3fc189(0xd6)](',')[_0x3fc189(0xa5)](_0xc4f1fd=>_0xc4f1fd[_0x3fc189(0xb2)]())['filter'](_0x25a688=>_0x25a688['length']>0x0);if(_0xe9ea71[_0x3fc189(0xd0)]===0x0)throw CliErrors[_0x3fc189(0xc2)](_0x3fc189(0xb6));_0x5014bb=new Set(_0xe9ea71),console['log'](_0x3fc189(0xa2)+_0xe9ea71[_0x3fc189(0xb7)](',\x20')+_0x3fc189(0xc7));}const _0x57d426=a12_0xb5834b('Fetching\x20dataset\x20list\x20for\x20'+_0x3f35ba[_0x3fc189(0xc0)]+_0x3fc189(0xc8))[_0x3fc189(0xd1)]();let _0x397a13;try{({configArray:_0x397a13}=await fetchModelList(_0x3f35ba[_0x3fc189(0xc0)],_0x3f35ba[_0x3fc189(0xb4)]),_0x57d426[_0x3fc189(0xcb)](_0x3fc189(0xa9)+_0x397a13['length']+_0x3fc189(0xad)));}catch(_0x527725){_0x57d426['fail']('Failed\x20to\x20fetch\x20datasets');throw _0x527725;}if(_0x397a13[_0x3fc189(0xd0)]===0x0)return console[_0x3fc189(0xb3)](_0x3fc189(0xcf)),{'ok':!![]};let _0x1e3da2=_0x397a13;if(_0x5014bb){_0x1e3da2=_0x397a13[_0x3fc189(0xd7)](_0x4e4413=>_0x5014bb['has'](_0x4e4413[_0x3fc189(0x9c)]));const _0x19a359=[..._0x5014bb][_0x3fc189(0xd7)](_0x509971=>!_0x397a13[_0x3fc189(0xbd)](_0x3e5626=>_0x3e5626[_0x3fc189(0x9c)]===_0x509971));_0x19a359[_0x3fc189(0xd0)]>0x0&&console[_0x3fc189(0xb3)]('\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20'+_0x19a359[_0x3fc189(0xb7)](',\x20')+_0x3fc189(0xc7));if(_0x1e3da2[_0x3fc189(0xd0)]===0x0)throw CliErrors['validation'](_0x3fc189(0xb8)+[..._0x5014bb][_0x3fc189(0xb7)](',\x20'));console['log']('\x1b[90m*\x20Filtered\x20'+_0x1e3da2['length']+_0x3fc189(0xca)+_0x397a13[_0x3fc189(0xd0)]+_0x3fc189(0xa0));}let _0x493015=0x0;const _0x51af42=await generateDatasetDocs(_0x1e3da2,_0x3f35ba[_0x3fc189(0xc0)],_0x3f35ba[_0x3fc189(0xb4)],_0x4a6116,(_0x2d2bec,_0x5a6e91,_0x3e3ce9)=>{const _0x10dce9=_0x3fc189;_0x493015=_0x2d2bec,process[_0x10dce9(0xae)]['write'](_0x10dce9(0xc5)+String(_0x2d2bec)[_0x10dce9(0xab)](String(_0x5a6e91)['length'])+'/'+_0x5a6e91+']\x20'+_0x3e3ce9+_0x10dce9(0xbb));},_0x46986a);if(_0x493015>0x0)process[_0x3fc189(0xae)][_0x3fc189(0xd2)]('\x0a');const _0x2fda28=_0x51af42[_0x3fc189(0xd7)](_0x40e169=>_0x40e169[_0x3fc189(0xc4)])[_0x3fc189(0xd0)],_0xa09c4c=_0x51af42['filter'](_0x543568=>!_0x543568[_0x3fc189(0xc4)])[_0x3fc189(0xd0)];console[_0x3fc189(0xb3)](),console[_0x3fc189(0xb3)](_0x3fc189(0xdb)+_0x2fda28+_0x3fc189(0x9b)+_0x4a6116);if(_0xa09c4c>0x0){console['error']('!\x20'+_0xa09c4c+_0x3fc189(0xc3));for(const _0xd43fb2 of _0x51af42[_0x3fc189(0xd7)](_0x811267=>!_0x811267[_0x3fc189(0xc4)])){console['error'](_0x3fc189(0xb1)+_0xd43fb2[_0x3fc189(0xa8)]+'\x20('+_0xd43fb2[_0x3fc189(0x9c)]+_0x3fc189(0xbc)+_0xd43fb2['error']);}}return{'ok':_0xa09c4c===0x0,'message':_0xa09c4c>0x0?_0x3fc189(0x9a)+_0x2fda28+'\x20succeeded,\x20'+_0xa09c4c+_0x3fc189(0xdc):_0x3fc189(0xda)+_0x2fda28+_0x3fc189(0xa1)};}};
1
+ const a12_0xe31191=a12_0x5d01;(function(_0x12ad3c,_0xf4e1fd){const _0x4fc5c9=a12_0x5d01,_0x54a986=_0x12ad3c();while(!![]){try{const _0x3dca1a=parseInt(_0x4fc5c9(0x92))/0x1*(parseInt(_0x4fc5c9(0x8b))/0x2)+parseInt(_0x4fc5c9(0xb2))/0x3*(-parseInt(_0x4fc5c9(0xb1))/0x4)+-parseInt(_0x4fc5c9(0x8a))/0x5+parseInt(_0x4fc5c9(0xab))/0x6*(parseInt(_0x4fc5c9(0xa2))/0x7)+parseInt(_0x4fc5c9(0x99))/0x8+parseInt(_0x4fc5c9(0xad))/0x9+parseInt(_0x4fc5c9(0x8f))/0xa*(-parseInt(_0x4fc5c9(0xa5))/0xb);if(_0x3dca1a===_0xf4e1fd)break;else _0x54a986['push'](_0x54a986['shift']());}catch(_0x39649e){_0x54a986['push'](_0x54a986['shift']());}}}(a12_0x38e3,0x3f69d));import a12_0x538423 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a12_0x38e3(){const _0x4b6a41=['write','log','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','!\x20No\x20datasets\x20found.','\x20succeeded,\x20','3035320PVPDVm','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','.md','padStart','filter','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','Invalid\x20--params:\x20','stdout','Doc\x20generation:\x20','14fkrXAH','length','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','2883551uSdrKj','validation','./docs','\x20dataset(s)','Fetched\x20','datasetCode','762060cXIvTM','join','2274345KMRgVZ','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','--datasetcode\x20cannot\x20be\x20empty.','output','33272UphEMq','177ZUtaNZ','doc','\x0d\x20\x20[','isArray','\x20file(s)','parse','datasetName','split','params','map','success','\x1b[0m','Fetching\x20dataset\x20list\x20for\x20','\x20\x20•\x20','appCode','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','\x20of\x20','str','trim','...','\x1b[90m*\x20Generating\x20docs\x20for:\x20','error','succeed','):\x20','has','1085255EtJjdf','10TKCLkW','Output\x20directory\x20(default:\x20./docs)','\x20doc(s)\x20failed','\x20failed','10BmHdYG','Failed\x20to\x20fetch\x20datasets','api','68711yWGhWB','cookie'];a12_0x38e3=function(){return _0x4b6a41;};return a12_0x38e3();}import{CliErrors}from'../../errors.js';function a12_0x5d01(_0x424897,_0x44526a){_0x424897=_0x424897-0x76;const _0x38e35f=a12_0x38e3();let _0x5d0115=_0x38e35f[_0x424897];return _0x5d0115;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const apiDoc={'service':a12_0xe31191(0x91),'command':a12_0xe31191(0xb3),'description':a12_0xe31191(0x96),'risk':a12_0xe31191(0x94),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a12_0xe31191(0xb0),'type':'string','description':a12_0xe31191(0x8c)},{'name':'datasetcode','type':'string','description':a12_0xe31191(0x9a)},{'name':a12_0xe31191(0x79),'type':'string','description':a12_0xe31191(0x9e)}],async 'execute'(_0x1c7f90){const _0x30c174=a12_0xe31191,_0x12262f=_0x1c7f90['str'](_0x30c174(0xb0))||_0x30c174(0xa7),_0x471066=_0x1c7f90[_0x30c174(0x82)]('datasetcode'),_0x2c30b6=_0x1c7f90[_0x30c174(0x82)]('params');let _0x5581e7;if(_0x2c30b6)try{_0x5581e7=JSON[_0x30c174(0x76)](_0x2c30b6);if(typeof _0x5581e7!=='object'||_0x5581e7===null||Array[_0x30c174(0xb5)](_0x5581e7))throw new Error('must\x20be\x20a\x20JSON\x20object');}catch(_0x34177f){throw CliErrors[_0x30c174(0xa6)](_0x30c174(0x9f)+(_0x34177f instanceof Error?_0x34177f['message']:String(_0x34177f)),_0x30c174(0xa4));}let _0x51e9af;if(_0x471066){const _0x3b1672=_0x471066[_0x30c174(0x78)](',')[_0x30c174(0x7a)](_0x83eb03=>_0x83eb03[_0x30c174(0x83)]())['filter'](_0x7fcd40=>_0x7fcd40[_0x30c174(0xa3)]>0x0);if(_0x3b1672[_0x30c174(0xa3)]===0x0)throw CliErrors[_0x30c174(0xa6)](_0x30c174(0xaf));_0x51e9af=new Set(_0x3b1672),console[_0x30c174(0x95)](_0x30c174(0x85)+_0x3b1672[_0x30c174(0xac)](',\x20')+_0x30c174(0x7c));}const _0x54b1ce=a12_0x538423(_0x30c174(0x7d)+_0x1c7f90['appCode']+_0x30c174(0x84))['start']();let _0x3367bb;try{({configArray:_0x3367bb}=await fetchModelList(_0x1c7f90[_0x30c174(0x7f)],_0x1c7f90[_0x30c174(0x93)]),_0x54b1ce[_0x30c174(0x87)](_0x30c174(0xa9)+_0x3367bb[_0x30c174(0xa3)]+_0x30c174(0xa8)));}catch(_0xae7a9e){_0x54b1ce['fail'](_0x30c174(0x90));throw _0xae7a9e;}if(_0x3367bb[_0x30c174(0xa3)]===0x0)return console['log'](_0x30c174(0x97)),{'ok':!![]};let _0x35eb46=_0x3367bb;if(_0x51e9af){_0x35eb46=_0x3367bb[_0x30c174(0x9d)](_0x3012c3=>_0x51e9af[_0x30c174(0x89)](_0x3012c3[_0x30c174(0xaa)]));const _0x179eb4=[..._0x51e9af][_0x30c174(0x9d)](_0x15101e=>!_0x3367bb['some'](_0x4c01e4=>_0x4c01e4[_0x30c174(0xaa)]===_0x15101e));_0x179eb4[_0x30c174(0xa3)]>0x0&&console[_0x30c174(0x95)](_0x30c174(0xae)+_0x179eb4[_0x30c174(0xac)](',\x20')+_0x30c174(0x7c));if(_0x35eb46[_0x30c174(0xa3)]===0x0)throw CliErrors[_0x30c174(0xa6)](_0x30c174(0x80)+[..._0x51e9af][_0x30c174(0xac)](',\x20'));console[_0x30c174(0x95)]('\x1b[90m*\x20Filtered\x20'+_0x35eb46[_0x30c174(0xa3)]+_0x30c174(0x81)+_0x3367bb['length']+'\x20dataset(s)\x1b[0m');}let _0x2c9701=0x0;const _0x44a3b9=await generateDatasetDocs(_0x35eb46,_0x1c7f90[_0x30c174(0x7f)],_0x1c7f90[_0x30c174(0x93)],_0x12262f,(_0x38fc15,_0xb01b5d,_0x3850f8)=>{const _0x2133b0=_0x30c174;_0x2c9701=_0x38fc15,process[_0x2133b0(0xa0)][_0x2133b0(0x94)](_0x2133b0(0xb4)+String(_0x38fc15)[_0x2133b0(0x9c)](String(_0xb01b5d)[_0x2133b0(0xa3)])+'/'+_0xb01b5d+']\x20'+_0x3850f8+_0x2133b0(0x9b));},_0x5581e7);if(_0x2c9701>0x0)process[_0x30c174(0xa0)][_0x30c174(0x94)]('\x0a');const _0x11ebd4=_0x44a3b9[_0x30c174(0x9d)](_0x5cec68=>_0x5cec68[_0x30c174(0x7b)])[_0x30c174(0xa3)],_0x2f6a9c=_0x44a3b9[_0x30c174(0x9d)](_0x220090=>!_0x220090[_0x30c174(0x7b)])[_0x30c174(0xa3)];console[_0x30c174(0x95)](),console['log']('✓\x20Generated\x20'+_0x11ebd4+'\x20doc(s)\x20in\x20'+_0x12262f);if(_0x2f6a9c>0x0){console[_0x30c174(0x86)]('!\x20'+_0x2f6a9c+_0x30c174(0x8d));for(const _0x8f1481 of _0x44a3b9['filter'](_0x3ba22c=>!_0x3ba22c[_0x30c174(0x7b)])){console[_0x30c174(0x86)](_0x30c174(0x7e)+_0x8f1481[_0x30c174(0x77)]+'\x20('+_0x8f1481['datasetCode']+_0x30c174(0x88)+_0x8f1481[_0x30c174(0x86)]);}}return{'ok':_0x2f6a9c===0x0,'message':_0x2f6a9c>0x0?_0x30c174(0xa1)+_0x11ebd4+_0x30c174(0x98)+_0x2f6a9c+_0x30c174(0x8e):'Doc\x20generation\x20complete:\x20'+_0x11ebd4+_0x30c174(0xb6)};}};
@@ -1 +1 @@
1
- function a13_0x7911(){const _0x3c81cf=['1953264joMASV','150xLoifM','82065KMVIgt','140ZypuUE','2528612NstPXV','58880vSWusc','241209VCuXJb','6QHSMcy','1514247ahiYcY','3571491yztIaJ'];a13_0x7911=function(){return _0x3c81cf;};return a13_0x7911();}(function(_0x11cbf0,_0x3fa44c){const _0xc3423c=a13_0x416e,_0x58fcad=_0x11cbf0();while(!![]){try{const _0x506553=parseInt(_0xc3423c(0x120))/0x1*(parseInt(_0xc3423c(0x11b))/0x2)+parseInt(_0xc3423c(0x11d))/0x3+-parseInt(_0xc3423c(0x122))/0x4+-parseInt(_0xc3423c(0x119))/0x5*(-parseInt(_0xc3423c(0x11f))/0x6)+-parseInt(_0xc3423c(0x11c))/0x7+parseInt(_0xc3423c(0x11e))/0x8+-parseInt(_0xc3423c(0x11a))/0x9*(parseInt(_0xc3423c(0x121))/0xa);if(_0x506553===_0x3fa44c)break;else _0x58fcad['push'](_0x58fcad['shift']());}catch(_0x2e4fa7){_0x58fcad['push'](_0x58fcad['shift']());}}}(a13_0x7911,0xb77ca));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';function a13_0x416e(_0xf53f06,_0x225800){_0xf53f06=_0xf53f06-0x119;const _0x79115f=a13_0x7911();let _0x416ef3=_0x79115f[_0xf53f06];return _0x416ef3;}import{apiDoc}from'../../commands/api/doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];
1
+ function a13_0x7287(){const _0x55c43d=['19405488FFCwkW','9TEnfeV','15GIROYT','756928ZcYxNJ','113571QczGrU','10maINrI','1152858VERXAo','25cxXxnM','8240771Hsmhvs','548786PgqMRz','47018BHRYMM','8NRmfmu'];a13_0x7287=function(){return _0x55c43d;};return a13_0x7287();}(function(_0x21fe0f,_0x266127){const _0x55478a=a13_0x3b86,_0x3bb4de=_0x21fe0f();while(!![]){try{const _0x422ffd=-parseInt(_0x55478a(0x119))/0x1*(parseInt(_0x55478a(0x11c))/0x2)+parseInt(_0x55478a(0x113))/0x3*(-parseInt(_0x55478a(0x115))/0x4)+parseInt(_0x55478a(0x114))/0x5*(parseInt(_0x55478a(0x118))/0x6)+parseInt(_0x55478a(0x11b))/0x7*(parseInt(_0x55478a(0x111))/0x8)+-parseInt(_0x55478a(0x116))/0x9*(-parseInt(_0x55478a(0x117))/0xa)+-parseInt(_0x55478a(0x11a))/0xb+parseInt(_0x55478a(0x112))/0xc;if(_0x422ffd===_0x266127)break;else _0x3bb4de['push'](_0x3bb4de['shift']());}catch(_0x3ee7e0){_0x3bb4de['push'](_0x3bb4de['shift']());}}}(a13_0x7287,0x5cc54));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';function a13_0x3b86(_0x1681c3,_0x580c25){_0x1681c3=_0x1681c3-0x111;const _0x72877f=a13_0x7287();let _0x3b8682=_0x72877f[_0x1681c3];return _0x3b8682;}import{apiDoc}from'../../commands/api/doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];
@@ -1 +1 @@
1
- const a14_0x5da401=a14_0x2c6f;(function(_0x8c3637,_0x367fcc){const _0x52696d=a14_0x2c6f,_0x4068b8=_0x8c3637();while(!![]){try{const _0x268736=parseInt(_0x52696d(0x162))/0x1*(parseInt(_0x52696d(0x15b))/0x2)+-parseInt(_0x52696d(0x170))/0x3+parseInt(_0x52696d(0x16d))/0x4+parseInt(_0x52696d(0x168))/0x5*(-parseInt(_0x52696d(0x16e))/0x6)+-parseInt(_0x52696d(0x164))/0x7+parseInt(_0x52696d(0x159))/0x8+parseInt(_0x52696d(0x15a))/0x9;if(_0x268736===_0x367fcc)break;else _0x4068b8['push'](_0x4068b8['shift']());}catch(_0x53a1da){_0x4068b8['push'](_0x4068b8['shift']());}}}(a14_0x242c,0x784ef));import{initEnv}from'../../constant/env.js';function a14_0x242c(){const _0x2cf2f6=['Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','str','production','cookie','push','2951dRUXpN','env','9485aSKEOb','appcode','boolean','name','904510vlupWx','api','list','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','global','2433516RZqRDk','24czpHNC','appCode','1792017gdPLbO','5972032imNLpJ','3345048HAmoUa','60hxuWDs','read'];a14_0x242c=function(){return _0x2cf2f6;};return a14_0x242c();}import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a14_0x2c6f(_0x5ce0fc,_0x29d0ef){_0x5ce0fc=_0x5ce0fc-0x159;const _0x242c75=a14_0x242c();let _0x2c6ffe=_0x242c75[_0x5ce0fc];return _0x2c6ffe;}import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a14_0x5da401(0x169),'command':a14_0x5da401(0x16a),'description':a14_0x5da401(0x16b),'risk':a14_0x5da401(0x15c),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a14_0x5da401(0x16c),'type':a14_0x5da401(0x166),'description':a14_0x5da401(0x15d),'default':![]}],async 'execute'(_0x2912b1){const _0x431c5d=a14_0x5da401,_0x3281c3=_0x2912b1[_0x431c5d(0x15e)]('appcode'),_0x50ec7d=resolveTargetApps(_0x2912b1,_0x3281c3);if(_0x50ec7d){const _0x275aa4=[];for(const _0x3640a6 of _0x50ec7d){const _0x792d19=_0x3640a6[_0x431c5d(0x160)]||_0x2912b1['cookie'],_0x1e8d48=_0x3640a6[_0x431c5d(0x163)]||_0x431c5d(0x15f);initEnv(_0x1e8d48);const {configArray:_0x492657}=await fetchModelList(_0x3640a6[_0x431c5d(0x165)],_0x792d19);_0x275aa4[_0x431c5d(0x161)](..._0x492657['map'](_0x52e628=>({..._0x52e628,'_appName':_0x3640a6[_0x431c5d(0x167)],'_appCode':_0x3640a6['appcode'],'_env':_0x1e8d48,'_isDefault':_0x3640a6['isDefault']})));}return{'ok':!![],'data':_0x275aa4};}const {configArray:_0x7b9234}=await fetchModelList(_0x2912b1[_0x431c5d(0x16f)],_0x2912b1[_0x431c5d(0x160)]);return{'ok':!![],'data':_0x7b9234};}};
1
+ const a14_0x9b83e3=a14_0x432b;(function(_0x3d36eb,_0x55b191){const _0x2608c1=a14_0x432b,_0x238327=_0x3d36eb();while(!![]){try{const _0x1e31c1=-parseInt(_0x2608c1(0x114))/0x1*(-parseInt(_0x2608c1(0x10e))/0x2)+parseInt(_0x2608c1(0x11c))/0x3*(parseInt(_0x2608c1(0x10a))/0x4)+-parseInt(_0x2608c1(0x10b))/0x5+parseInt(_0x2608c1(0x11b))/0x6*(-parseInt(_0x2608c1(0x115))/0x7)+-parseInt(_0x2608c1(0x11d))/0x8*(parseInt(_0x2608c1(0x11a))/0x9)+parseInt(_0x2608c1(0x116))/0xa+parseInt(_0x2608c1(0x11f))/0xb;if(_0x1e31c1===_0x55b191)break;else _0x238327['push'](_0x238327['shift']());}catch(_0x2e017d){_0x238327['push'](_0x238327['shift']());}}}(a14_0x36fe,0xdf06f));import{initEnv}from'../../constant/env.js';function a14_0x36fe(){const _0x1530e6=['List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','24199417tVfXda','40ObhdPR','7845280qkJjyg','appcode','appCode','58UTnWuQ','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','list','production','isDefault','read','34325cLpVTH','1225IVUUwG','16950490TYiTmq','cookie','boolean','name','63VCOtJQ','61434AZRxpN','20013ieMgho','780264pbVbCp'];a14_0x36fe=function(){return _0x1530e6;};return a14_0x36fe();}import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a14_0x432b(_0x236e0c,_0x1a367c){_0x236e0c=_0x236e0c-0x10a;const _0x36fe1b=a14_0x36fe();let _0x432b3b=_0x36fe1b[_0x236e0c];return _0x432b3b;}import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':'api','command':a14_0x9b83e3(0x110),'description':a14_0x9b83e3(0x11e),'risk':a14_0x9b83e3(0x113),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'global','type':a14_0x9b83e3(0x118),'description':a14_0x9b83e3(0x10f),'default':![]}],async 'execute'(_0x4ed3b3){const _0x227b71=a14_0x9b83e3,_0x15cbc2=_0x4ed3b3['str'](_0x227b71(0x10c)),_0x38e092=resolveTargetApps(_0x4ed3b3,_0x15cbc2);if(_0x38e092){const _0x44db0f=[];for(const _0x385e98 of _0x38e092){const _0x3a9c71=_0x385e98[_0x227b71(0x117)]||_0x4ed3b3[_0x227b71(0x117)],_0x4b6873=_0x385e98['env']||_0x227b71(0x111);initEnv(_0x4b6873);const {configArray:_0x21a760}=await fetchModelList(_0x385e98[_0x227b71(0x10c)],_0x3a9c71);_0x44db0f['push'](..._0x21a760['map'](_0x270056=>({..._0x270056,'_appName':_0x385e98[_0x227b71(0x119)],'_appCode':_0x385e98[_0x227b71(0x10c)],'_env':_0x4b6873,'_isDefault':_0x385e98[_0x227b71(0x112)]})));}return{'ok':!![],'data':_0x44db0f};}const {configArray:_0xa39ffb}=await fetchModelList(_0x4ed3b3[_0x227b71(0x10d)],_0x4ed3b3[_0x227b71(0x117)]);return{'ok':!![],'data':_0xa39ffb};}};
@@ -1 +1 @@
1
- const a15_0x5a83d8=a15_0x324e;(function(_0x1b0d21,_0x1f7d64){const _0x3f83cc=a15_0x324e,_0x3b391d=_0x1b0d21();while(!![]){try{const _0x1bd33e=-parseInt(_0x3f83cc(0x188))/0x1*(-parseInt(_0x3f83cc(0x183))/0x2)+-parseInt(_0x3f83cc(0x186))/0x3+-parseInt(_0x3f83cc(0x181))/0x4+-parseInt(_0x3f83cc(0x168))/0x5*(parseInt(_0x3f83cc(0x165))/0x6)+-parseInt(_0x3f83cc(0x161))/0x7*(-parseInt(_0x3f83cc(0x184))/0x8)+parseInt(_0x3f83cc(0x15a))/0x9*(-parseInt(_0x3f83cc(0x174))/0xa)+parseInt(_0x3f83cc(0x179))/0xb*(parseInt(_0x3f83cc(0x15c))/0xc);if(_0x1bd33e===_0x1f7d64)break;else _0x3b391d['push'](_0x3b391d['shift']());}catch(_0x327ab4){_0x3b391d['push'](_0x3b391d['shift']());}}}(a15_0xf37a,0x5deee));import a15_0x5be9d8 from'ora';import a15_0x3d3c17 from'node:path';function a15_0x324e(_0x5736bc,_0x420685){_0x5736bc=_0x5736bc-0x159;const _0xf37a38=a15_0xf37a();let _0x324e31=_0xf37a38[_0x5736bc];return _0x324e31;}import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0xf37a(){const _0x31d311=['start','2022IITtJF','boolean','split','8885eXfYUD','string','production','-client',')...','Output\x20directory\x20(default:\x20','-api','cookie','.ts','output','\x20model(s)','\x20\x20•\x20','8210RwgWcX','fail','write','join','str','23049829mqWjyS','modelCount','global','client','succeed','includes','message','...','1949920unnGGP','name','34LKLKbw','328LrKQVZ','pull','1609050CdqnYC','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','14137cmmHLR','appCode','apiDir','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','Pulling\x20API\x20config\x20for\x20','\x20succeeded,\x20','8217kIDGKK','apiFilePath','12yregZP','log','isDefault','length','\x20app(s)\x20failed','71918mGTGDq','Done:\x20','appcode'];a15_0xf37a=function(){return _0x31d311;};return a15_0xf37a();}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';export const apiPull={'service':'api','command':a15_0x5a83d8(0x185),'description':a15_0x5a83d8(0x187)+DEFAULT_API_DIR+'/)','risk':a15_0x5a83d8(0x176),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x5a83d8(0x171),'type':a15_0x5a83d8(0x169),'description':a15_0x5a83d8(0x16d)+DEFAULT_API_DIR+'/)'},{'name':a15_0x5a83d8(0x17b),'type':a15_0x5a83d8(0x166),'description':a15_0x5a83d8(0x18b),'default':![]}],async 'execute'(_0x4cfcd4){const _0x270af0=a15_0x5a83d8,_0x1f622d=_0x4cfcd4[_0x270af0(0x178)](_0x270af0(0x163)),_0x43b0f8=_0x4cfcd4[_0x270af0(0x178)]('output')||undefined,_0x548cb9=resolveTargetApps(_0x4cfcd4,_0x1f622d);if(_0x548cb9){let _0x2f6f3a=0x0,_0x4c92a3=0x0;for(const _0x2459e6 of _0x548cb9){const _0x2c7011=_0x2459e6[_0x270af0(0x16f)]||_0x4cfcd4[_0x270af0(0x16f)],_0x37693d=_0x2459e6['env']||_0x270af0(0x16a);initEnv(_0x37693d);const _0x1a69a1=_0x2459e6[_0x270af0(0x18a)]||_0x43b0f8||_0x4cfcd4[_0x270af0(0x18a)]||DEFAULT_API_DIR,_0x1e8f5f=_0x2459e6['isDefault']?'':_0x2459e6[_0x270af0(0x182)]||_0x2459e6[_0x270af0(0x163)],_0x527baa=a15_0x5be9d8('Pulling\x20'+_0x2459e6[_0x270af0(0x182)]+'\x20('+_0x2459e6[_0x270af0(0x163)]+_0x270af0(0x16c))[_0x270af0(0x164)]();try{const {configArray:_0x3b8889}=await fetchModelList(_0x2459e6['appcode'],_0x2c7011),_0x131f3d=await generateApiFile(_0x3b8889,_0x1e8f5f,_0x2459e6[_0x270af0(0x163)],_0x2459e6[_0x270af0(0x15e)],_0x37693d,_0x1a69a1,_0x2459e6[_0x270af0(0x182)]);_0x527baa[_0x270af0(0x17d)](_0x2459e6[_0x270af0(0x182)]+':\x20'+_0x3b8889[_0x270af0(0x15f)]+'\x20dataset(s)\x20→\x20'+_0x131f3d[_0x270af0(0x17a)]+_0x270af0(0x172)),console[_0x270af0(0x15d)](_0x270af0(0x173)+_0x131f3d[_0x270af0(0x15b)]),console[_0x270af0(0x15d)](_0x270af0(0x173)+_0x131f3d['clientFilePath']),_0x2f6f3a++;}catch(_0x1d5272){_0x527baa[_0x270af0(0x175)](_0x2459e6[_0x270af0(0x182)]+':\x20'+(_0x1d5272 instanceof Error?_0x1d5272[_0x270af0(0x17f)]:String(_0x1d5272))),_0x4c92a3++;}}console[_0x270af0(0x15d)]();if(_0x4c92a3>0x0)console['error']('!\x20'+_0x4c92a3+_0x270af0(0x160));return{'ok':_0x4c92a3===0x0,'message':_0x270af0(0x162)+_0x2f6f3a+_0x270af0(0x159)+_0x4c92a3+'\x20failed'};}const _0x806186=_0x1f622d&&_0x1f622d[_0x270af0(0x17e)]('-')?_0x1f622d[_0x270af0(0x167)]('-')['slice'](0x1)[_0x270af0(0x177)]('-'):'',_0x4ba2d6=_0x43b0f8||_0x4cfcd4['apiDir']||DEFAULT_API_DIR,_0x5b1797=!_0x1f622d,_0x133afd=a15_0x5be9d8(_0x270af0(0x18c)+_0x4cfcd4[_0x270af0(0x189)]+_0x270af0(0x180))[_0x270af0(0x164)]();try{const {configArray:_0xc20c86}=await fetchModelList(_0x4cfcd4[_0x270af0(0x189)],_0x4cfcd4[_0x270af0(0x16f)]),_0x1cb649=await generateApiFile(_0xc20c86,_0x806186,_0x4cfcd4[_0x270af0(0x189)],_0x5b1797,getEnv(),_0x4ba2d6);_0x133afd[_0x270af0(0x17d)]('Pulled\x20'+_0xc20c86[_0x270af0(0x15f)]+'\x20dataset(s),\x20generated\x20'+_0x1cb649[_0x270af0(0x17a)]+_0x270af0(0x172));const _0x1e14d6=_0x806186?_0x806186+_0x270af0(0x16e):'api',_0x394d1a=_0x806186?_0x806186+_0x270af0(0x16b):_0x270af0(0x17c);return console[_0x270af0(0x15d)](_0x270af0(0x173)+a15_0x3d3c17[_0x270af0(0x177)](_0x4ba2d6,_0x1e14d6+'.ts')),console[_0x270af0(0x15d)]('\x20\x20•\x20'+a15_0x3d3c17[_0x270af0(0x177)](_0x4ba2d6,_0x394d1a+_0x270af0(0x170))),{'ok':!![],'data':{'datasetCount':_0xc20c86[_0x270af0(0x15f)],'modelCount':_0x1cb649[_0x270af0(0x17a)]}};}catch(_0x51e37b){_0x133afd['fail']('Failed:\x20'+(_0x51e37b instanceof Error?_0x51e37b[_0x270af0(0x17f)]:String(_0x51e37b)));throw _0x51e37b;}}};
1
+ const a15_0x22552f=a15_0x5e45;function a15_0x5e45(_0x1a1aa5,_0x4087e0){_0x1a1aa5=_0x1a1aa5-0x75;const _0x42f510=a15_0x42f5();let _0x5e4508=_0x42f510[_0x1a1aa5];return _0x5e4508;}(function(_0x491bd8,_0xa51af1){const _0x4c2b32=a15_0x5e45,_0x3a46a2=_0x491bd8();while(!![]){try{const _0x56d855=parseInt(_0x4c2b32(0x81))/0x1+parseInt(_0x4c2b32(0x77))/0x2*(parseInt(_0x4c2b32(0x78))/0x3)+-parseInt(_0x4c2b32(0xa3))/0x4*(-parseInt(_0x4c2b32(0x7d))/0x5)+-parseInt(_0x4c2b32(0x9f))/0x6*(parseInt(_0x4c2b32(0x90))/0x7)+-parseInt(_0x4c2b32(0x7b))/0x8*(-parseInt(_0x4c2b32(0x93))/0x9)+-parseInt(_0x4c2b32(0x9b))/0xa*(-parseInt(_0x4c2b32(0x79))/0xb)+-parseInt(_0x4c2b32(0x76))/0xc*(parseInt(_0x4c2b32(0x75))/0xd);if(_0x56d855===_0xa51af1)break;else _0x3a46a2['push'](_0x3a46a2['shift']());}catch(_0x53f09a){_0x3a46a2['push'](_0x3a46a2['shift']());}}}(a15_0x42f5,0xaba2c));function a15_0x42f5(){const _0x437351=['1440520ayremT','apiFilePath','5VRXFNw','\x20model(s)','start','name','1212225ftWnow','boolean','Pulled\x20','includes','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','apiDir','Done:\x20','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','-api','\x20dataset(s),\x20generated\x20','...','succeed','output','\x20dataset(s)\x20→\x20','api','35KOjJTz','.ts','Pulling\x20','9HOIGlR','\x20\x20•\x20','str','modelCount','length','cookie','\x20app(s)\x20failed','message','10SyffEL','pull',')...','Failed:\x20','876588RWiICG','-client','log','split','4864232KzAdcT','clientFilePath','slice','join','env','Output\x20directory\x20(default:\x20','isDefault','string','appCode','18913973MeWKPZ','24wpRfzA','1181842lSJlsF','3MqLbfN','12584913AyQZlj','appcode'];a15_0x42f5=function(){return _0x437351;};return a15_0x42f5();}import a15_0x2603f0 from'ora';import a15_0xaff1d7 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';export const apiPull={'service':'api','command':a15_0x22552f(0x9c),'description':a15_0x22552f(0x85)+DEFAULT_API_DIR+'/)','risk':'write','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x22552f(0x8d),'type':a15_0x22552f(0xaa),'description':a15_0x22552f(0xa8)+DEFAULT_API_DIR+'/)'},{'name':'global','type':a15_0x22552f(0x82),'description':a15_0x22552f(0x88),'default':![]}],async 'execute'(_0x57a454){const _0x242d69=a15_0x22552f,_0x781bb=_0x57a454[_0x242d69(0x95)](_0x242d69(0x7a)),_0x346b24=_0x57a454[_0x242d69(0x95)](_0x242d69(0x8d))||undefined,_0x5a4797=resolveTargetApps(_0x57a454,_0x781bb);if(_0x5a4797){let _0x5a5ac1=0x0,_0x1d2f06=0x0;for(const _0x877c29 of _0x5a4797){const _0xea597b=_0x877c29[_0x242d69(0x98)]||_0x57a454[_0x242d69(0x98)],_0x3ecfe8=_0x877c29[_0x242d69(0xa7)]||'production';initEnv(_0x3ecfe8);const _0x244504=_0x877c29[_0x242d69(0x86)]||_0x346b24||_0x57a454['apiDir']||DEFAULT_API_DIR,_0x37ffab=_0x877c29[_0x242d69(0xa9)]?'':_0x877c29[_0x242d69(0x80)]||_0x877c29[_0x242d69(0x7a)],_0x3ebbf2=a15_0x2603f0(_0x242d69(0x92)+_0x877c29[_0x242d69(0x80)]+'\x20('+_0x877c29[_0x242d69(0x7a)]+_0x242d69(0x9d))[_0x242d69(0x7f)]();try{const {configArray:_0x284092}=await fetchModelList(_0x877c29[_0x242d69(0x7a)],_0xea597b),_0x20c75a=await generateApiFile(_0x284092,_0x37ffab,_0x877c29[_0x242d69(0x7a)],_0x877c29[_0x242d69(0xa9)],_0x3ecfe8,_0x244504,_0x877c29[_0x242d69(0x80)]);_0x3ebbf2['succeed'](_0x877c29[_0x242d69(0x80)]+':\x20'+_0x284092[_0x242d69(0x97)]+_0x242d69(0x8e)+_0x20c75a[_0x242d69(0x96)]+_0x242d69(0x7e)),console[_0x242d69(0xa1)](_0x242d69(0x94)+_0x20c75a[_0x242d69(0x7c)]),console['log'](_0x242d69(0x94)+_0x20c75a[_0x242d69(0xa4)]),_0x5a5ac1++;}catch(_0x45d14f){_0x3ebbf2['fail'](_0x877c29['name']+':\x20'+(_0x45d14f instanceof Error?_0x45d14f['message']:String(_0x45d14f))),_0x1d2f06++;}}console[_0x242d69(0xa1)]();if(_0x1d2f06>0x0)console['error']('!\x20'+_0x1d2f06+_0x242d69(0x99));return{'ok':_0x1d2f06===0x0,'message':_0x242d69(0x87)+_0x5a5ac1+'\x20succeeded,\x20'+_0x1d2f06+'\x20failed'};}const _0x2a6d92=_0x781bb&&_0x781bb[_0x242d69(0x84)]('-')?_0x781bb[_0x242d69(0xa2)]('-')[_0x242d69(0xa5)](0x1)[_0x242d69(0xa6)]('-'):'',_0x43fc22=_0x346b24||_0x57a454['apiDir']||DEFAULT_API_DIR,_0x3a4935=!_0x781bb,_0x3b3bef=a15_0x2603f0('Pulling\x20API\x20config\x20for\x20'+_0x57a454[_0x242d69(0xab)]+_0x242d69(0x8b))[_0x242d69(0x7f)]();try{const {configArray:_0x5c4aea}=await fetchModelList(_0x57a454[_0x242d69(0xab)],_0x57a454[_0x242d69(0x98)]),_0xc32e20=await generateApiFile(_0x5c4aea,_0x2a6d92,_0x57a454[_0x242d69(0xab)],_0x3a4935,getEnv(),_0x43fc22);_0x3b3bef[_0x242d69(0x8c)](_0x242d69(0x83)+_0x5c4aea[_0x242d69(0x97)]+_0x242d69(0x8a)+_0xc32e20[_0x242d69(0x96)]+'\x20model(s)');const _0x21e688=_0x2a6d92?_0x2a6d92+_0x242d69(0x89):_0x242d69(0x8f),_0x72b195=_0x2a6d92?_0x2a6d92+_0x242d69(0xa0):'client';return console[_0x242d69(0xa1)](_0x242d69(0x94)+a15_0xaff1d7[_0x242d69(0xa6)](_0x43fc22,_0x21e688+'.ts')),console[_0x242d69(0xa1)](_0x242d69(0x94)+a15_0xaff1d7[_0x242d69(0xa6)](_0x43fc22,_0x72b195+_0x242d69(0x91))),{'ok':!![],'data':{'datasetCount':_0x5c4aea[_0x242d69(0x97)],'modelCount':_0xc32e20[_0x242d69(0x96)]}};}catch(_0x25a861){_0x3b3bef['fail'](_0x242d69(0x9e)+(_0x25a861 instanceof Error?_0x25a861[_0x242d69(0x9a)]:String(_0x25a861)));throw _0x25a861;}}};
@@ -1 +1 @@
1
- function a16_0x502c(_0x99fd66,_0x53b3af){_0x99fd66=_0x99fd66-0xc9;const _0x38768a=a16_0x3876();let _0x502c8a=_0x38768a[_0x99fd66];return _0x502c8a;}(function(_0x22c984,_0x1a2c88){const _0x29d398=a16_0x502c,_0x500c6d=_0x22c984();while(!![]){try{const _0x194df0=-parseInt(_0x29d398(0xcc))/0x1+-parseInt(_0x29d398(0xd0))/0x2*(parseInt(_0x29d398(0xd9))/0x3)+parseInt(_0x29d398(0xda))/0x4*(-parseInt(_0x29d398(0xca))/0x5)+-parseInt(_0x29d398(0xce))/0x6*(parseInt(_0x29d398(0xcb))/0x7)+parseInt(_0x29d398(0xd6))/0x8+-parseInt(_0x29d398(0xd3))/0x9*(parseInt(_0x29d398(0xc9))/0xa)+parseInt(_0x29d398(0xd2))/0xb;if(_0x194df0===_0x1a2c88)break;else _0x500c6d['push'](_0x500c6d['shift']());}catch(_0x39839b){_0x500c6d['push'](_0x500c6d['shift']());}}}(a16_0x3876,0xd80e2));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x132a8d,_0xc98413){const _0x1a2c4c=a16_0x502c;if(_0xc98413)return null;const _0x39802c=_0x132a8d[_0x1a2c4c(0xdd)]('global')?_0x1a2c4c(0xd4):_0x1a2c4c(0xd5);let _0x2f3f58=getMultiAppConfigs(_0x39802c);if(!_0x2f3f58||_0x2f3f58[_0x1a2c4c(0xdb)]===0x0)return null;if(_0x132a8d[_0x1a2c4c(0xcf)]){const _0x1eb9d3=_0x2f3f58[_0x1a2c4c(0xcd)](_0x125bd6=>_0x125bd6[_0x1a2c4c(0xd7)]===_0x132a8d['selectedAppName']);if(_0x1eb9d3[_0x1a2c4c(0xdb)]===0x0){const _0x5ab697=_0x2f3f58[_0x1a2c4c(0xd1)](_0x4a9e91=>_0x4a9e91['name'])['join'](',\x20');throw CliErrors[_0x1a2c4c(0xdc)](_0x1a2c4c(0xd8)+_0x132a8d[_0x1a2c4c(0xcf)]+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x5ab697);}_0x2f3f58=_0x1eb9d3;}return _0x2f3f58;}function a16_0x3876(){const _0x3fa7e5=['bool','876030tHqdDs','15RSqWHr','63903gBwOnN','299953IsTvvp','filter','504owBDWe','selectedAppName','1234004CgMJeq','map','43731028cuTwHx','72jykimL','merged','project','911360yonwKn','name','App\x20\x22','3iLUzJc','1093188YTXzon','length','validation'];a16_0x3876=function(){return _0x3fa7e5;};return a16_0x3876();}
1
+ (function(_0x478f9f,_0x58cac5){const _0x5ee4af=a16_0x9f9a,_0x328b58=_0x478f9f();while(!![]){try{const _0x1c005d=-parseInt(_0x5ee4af(0x1e9))/0x1*(-parseInt(_0x5ee4af(0x1eb))/0x2)+parseInt(_0x5ee4af(0x1fb))/0x3*(parseInt(_0x5ee4af(0x1ef))/0x4)+-parseInt(_0x5ee4af(0x1f7))/0x5*(-parseInt(_0x5ee4af(0x1ed))/0x6)+-parseInt(_0x5ee4af(0x1fc))/0x7+parseInt(_0x5ee4af(0x1f9))/0x8*(parseInt(_0x5ee4af(0x1e7))/0x9)+parseInt(_0x5ee4af(0x1ee))/0xa+parseInt(_0x5ee4af(0x1f8))/0xb*(-parseInt(_0x5ee4af(0x1f3))/0xc);if(_0x1c005d===_0x58cac5)break;else _0x328b58['push'](_0x328b58['shift']());}catch(_0x5640e5){_0x328b58['push'](_0x328b58['shift']());}}}(a16_0x1715,0xd4412));function a16_0x1715(){const _0x84f117=['App\x20\x22','12GZUrRx','project','map','selectedAppName','715qnRFBx','9887086JCnpLN','8198248mzQSJA','length','147MvtRGB','8408974HAOBYX','filter','9BYusRP','join','795752LaDkEG','validation','2ISaGrG','global','30kwHFLr','51330tUfGqX','93316AJKAXh','name','bool'];a16_0x1715=function(){return _0x84f117;};return a16_0x1715();}import{getMultiAppConfigs}from'../../utils/config.js';function a16_0x9f9a(_0x190782,_0xbb36a9){_0x190782=_0x190782-0x1e6;const _0x17155b=a16_0x1715();let _0x9f9a5e=_0x17155b[_0x190782];return _0x9f9a5e;}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x875a62,_0x58e11c){const _0x44cbc1=a16_0x9f9a;if(_0x58e11c)return null;const _0x2a1020=_0x875a62[_0x44cbc1(0x1f1)](_0x44cbc1(0x1ec))?'merged':_0x44cbc1(0x1f4);let _0x196e67=getMultiAppConfigs(_0x2a1020);if(!_0x196e67||_0x196e67[_0x44cbc1(0x1fa)]===0x0)return null;if(_0x875a62[_0x44cbc1(0x1f6)]){const _0x3c5647=_0x196e67[_0x44cbc1(0x1e6)](_0x206805=>_0x206805[_0x44cbc1(0x1f0)]===_0x875a62[_0x44cbc1(0x1f6)]);if(_0x3c5647['length']===0x0){const _0x15c454=_0x196e67[_0x44cbc1(0x1f5)](_0x37048a=>_0x37048a['name'])[_0x44cbc1(0x1e8)](',\x20');throw CliErrors[_0x44cbc1(0x1ea)](_0x44cbc1(0x1f2)+_0x875a62[_0x44cbc1(0x1f6)]+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x15c454);}_0x196e67=_0x3c5647;}return _0x196e67;}
@@ -1 +1 @@
1
- const a17_0x151594=a17_0x307e;(function(_0x169c72,_0xa754f){const _0x43752f=a17_0x307e,_0x4a92ff=_0x169c72();while(!![]){try{const _0x25baac=parseInt(_0x43752f(0x1b4))/0x1+parseInt(_0x43752f(0x1ac))/0x2+parseInt(_0x43752f(0x188))/0x3+parseInt(_0x43752f(0x1a9))/0x4+parseInt(_0x43752f(0x189))/0x5+parseInt(_0x43752f(0x191))/0x6*(-parseInt(_0x43752f(0x18f))/0x7)+-parseInt(_0x43752f(0x1b2))/0x8;if(_0x25baac===_0xa754f)break;else _0x4a92ff['push'](_0x4a92ff['shift']());}catch(_0x1dd539){_0x4a92ff['push'](_0x4a92ff['shift']());}}}(a17_0x16db,0xe413b));function a17_0x16db(){const _0x1e97ba=['trim','name','env','validation','args','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','format','\x20Set\x20as\x20default\x20app.','defaultApp','flagMissing','\x20app\x20add\x20<name>\x20--appcode\x20<code>','apiDir','Access\x20key','\x22\x20(appcode:\x20','str','locale','length','cookie','add','4608160bdIStQ','Usage:\x20','Target\x20environment','1660480jTzYdm','defaultFormat','apps','Risk\x20level','riskLevel','Updated','24954160fHhijr','Use\x20global\x20config\x20scope','67463vaGSgF','Auth\x20cookie','Missing\x20app\x20name.','keys','2200920NpwoqX','7862690baerxF','\x20app\x20\x22','write','accessKey','Default\x20page\x20size','pageSize','84ycgKPT','Added','151224BOOQDA','global','appcode','string','number'];a17_0x16db=function(){return _0x1e97ba;};return a17_0x16db();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{readConfig,writeConfig,scopeLabel,migrateLegacySingleApp}from'../../commands/app/shared.js';const PROFILE_FLAG_KEYS={'env':'env','apiDir':a17_0x151594(0x1a1),'cookie':a17_0x151594(0x1a7),'accessKey':'accessKey','defaultFormat':a17_0x151594(0x19c),'pageSize':'pageSize','riskLevel':'riskLevel','locale':a17_0x151594(0x1a5)};async function validateArgs(_0x10b75f){const _0x203de7=a17_0x151594,_0x20dacb=_0x10b75f[_0x203de7(0x19a)][0x0]?.[_0x203de7(0x196)]();if(!_0x20dacb)throw CliErrors[_0x203de7(0x199)](_0x203de7(0x186),_0x203de7(0x1aa)+CLI_BIN_NAME+_0x203de7(0x1a0));}function a17_0x307e(_0x44b3ce,_0x490b78){_0x44b3ce=_0x44b3ce-0x186;const _0x16db61=a17_0x16db();let _0x307e21=_0x16db61[_0x44b3ce];return _0x307e21;}async function execute(_0x6e510){const _0x1fd7c6=a17_0x151594,_0x3bfe33=_0x6e510[_0x1fd7c6(0x19a)][0x0]?.[_0x1fd7c6(0x196)]();if(!_0x3bfe33)throw CliErrors['validation'](_0x1fd7c6(0x186),_0x1fd7c6(0x1aa)+CLI_BIN_NAME+_0x1fd7c6(0x1a0));const _0xd46de9=_0x6e510[_0x1fd7c6(0x1a4)]('appcode');if(!_0xd46de9)throw CliErrors[_0x1fd7c6(0x19f)](_0x1fd7c6(0x193),_0x1fd7c6(0x1aa)+CLI_BIN_NAME+_0x1fd7c6(0x1a0));const _0x3a3992={'global':_0x6e510['bool'](_0x1fd7c6(0x192))},_0x5ac251=readConfig(_0x3a3992);if(!_0x5ac251[_0x1fd7c6(0x1ae)])_0x5ac251[_0x1fd7c6(0x1ae)]={};Object[_0x1fd7c6(0x187)](_0x5ac251[_0x1fd7c6(0x1ae)])[_0x1fd7c6(0x1a6)]===0x0&&migrateLegacySingleApp(_0x5ac251,_0x3bfe33);const _0x5aafe6={'appcode':_0xd46de9};for(const [_0x413e2a,_0x4c005f]of Object['entries'](PROFILE_FLAG_KEYS)){const _0x123e70=_0x6e510['str'](_0x413e2a);_0x123e70&&(_0x5aafe6[_0x4c005f]=_0x4c005f===_0x1fd7c6(0x18e)?Number(_0x123e70):_0x123e70);}const _0x1f8135=_0x5ac251[_0x1fd7c6(0x1ae)],_0x1ef677=!!_0x1f8135[_0x3bfe33];_0x1f8135[_0x3bfe33]=_0x5aafe6;if(!_0x5ac251[_0x1fd7c6(0x19e)])_0x5ac251[_0x1fd7c6(0x19e)]=_0x3bfe33;writeConfig(_0x5ac251,_0x3a3992);const _0x13d0fb=!_0x1ef677&&_0x5ac251['defaultApp']===_0x3bfe33?_0x1fd7c6(0x19d):'';return{'ok':!![],'message':(_0x1ef677?_0x1fd7c6(0x1b1):_0x1fd7c6(0x190))+_0x1fd7c6(0x18a)+_0x3bfe33+_0x1fd7c6(0x1a3)+_0xd46de9+')'+scopeLabel(_0x3a3992)+'.'+_0x13d0fb};}export const appAddDefinition={'service':'app','command':a17_0x151594(0x1a8),'description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':a17_0x151594(0x18b),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a17_0x151594(0x197),'description':'App\x20profile\x20name','required':!![]}],'flags':[{'name':a17_0x151594(0x193),'type':a17_0x151594(0x194),'description':'App\x20code','required':!![]},{'name':a17_0x151594(0x192),'type':'boolean','description':a17_0x151594(0x1b3),'default':![]},{'name':a17_0x151594(0x198),'type':'string','description':a17_0x151594(0x1ab)},{'name':'apiDir','type':a17_0x151594(0x194),'description':'API\x20directory\x20path'},{'name':a17_0x151594(0x1a7),'type':'string','description':a17_0x151594(0x1b5),'hidden':!![]},{'name':a17_0x151594(0x18c),'type':a17_0x151594(0x194),'description':a17_0x151594(0x1a2),'hidden':!![]},{'name':a17_0x151594(0x1ad),'type':a17_0x151594(0x194),'description':a17_0x151594(0x19b)},{'name':a17_0x151594(0x18e),'type':a17_0x151594(0x195),'description':a17_0x151594(0x18d)},{'name':a17_0x151594(0x1b0),'type':a17_0x151594(0x194),'description':a17_0x151594(0x1af)},{'name':a17_0x151594(0x1a5),'type':'string','description':'Locale'}],'validate':validateArgs,'execute':execute};
1
+ const a17_0x12a570=a17_0x4773;(function(_0x52c53e,_0x10aa4f){const _0x17908b=a17_0x4773,_0x350033=_0x52c53e();while(!![]){try{const _0x161020=parseInt(_0x17908b(0x120))/0x1*(parseInt(_0x17908b(0x105))/0x2)+-parseInt(_0x17908b(0x11b))/0x3*(parseInt(_0x17908b(0xfc))/0x4)+-parseInt(_0x17908b(0xf8))/0x5*(-parseInt(_0x17908b(0x127))/0x6)+parseInt(_0x17908b(0x12b))/0x7+-parseInt(_0x17908b(0x121))/0x8*(parseInt(_0x17908b(0x125))/0x9)+parseInt(_0x17908b(0x109))/0xa+parseInt(_0x17908b(0x110))/0xb*(-parseInt(_0x17908b(0x11a))/0xc);if(_0x161020===_0x10aa4f)break;else _0x350033['push'](_0x350033['shift']());}catch(_0x42a415){_0x350033['push'](_0x350033['shift']());}}}(a17_0x2133,0x7658a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{readConfig,writeConfig,scopeLabel,migrateLegacySingleApp}from'../../commands/app/shared.js';const PROFILE_FLAG_KEYS={'env':'env','apiDir':a17_0x12a570(0x112),'cookie':a17_0x12a570(0x126),'accessKey':'accessKey','defaultFormat':'format','pageSize':a17_0x12a570(0x114),'riskLevel':a17_0x12a570(0xf9),'locale':'locale'};function a17_0x2133(){const _0x54d0d3=['Usage:\x20','Updated','API\x20directory\x20path','4885013EixcLG','defaultFormat','Default\x20page\x20size','244945KMBVQc','riskLevel','Access\x20key','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','844aFlBNr','App\x20code','App\x20profile\x20name','str','number','env','write','\x20app\x20add\x20<name>\x20--appcode\x20<code>','Locale','1034WIzpGp','add','Auth\x20cookie','apps','5351960CLMZcC','trim','keys','Added','\x22\x20(appcode:\x20','Missing\x20app\x20name.','Risk\x20level','418StbCSE','accessKey','apiDir','validation','pageSize','locale','Use\x20global\x20config\x20scope','global','app','args','217836oopIkx','7026lDxrdU','Add\x20or\x20update\x20an\x20app\x20in\x20config','Target\x20environment','defaultApp','appcode','76elgNui','8iNHJja','\x20Set\x20as\x20default\x20app.','string','name','3487041TyOSZD','cookie','96caCGZo'];a17_0x2133=function(){return _0x54d0d3;};return a17_0x2133();}function a17_0x4773(_0x25489c,_0x43b721){_0x25489c=_0x25489c-0xf8;const _0x213330=a17_0x2133();let _0x477365=_0x213330[_0x25489c];return _0x477365;}async function validateArgs(_0x4a9a95){const _0x4b6547=a17_0x12a570,_0x3c4b58=_0x4a9a95[_0x4b6547(0x119)][0x0]?.[_0x4b6547(0x10a)]();if(!_0x3c4b58)throw CliErrors[_0x4b6547(0x113)](_0x4b6547(0x10e),_0x4b6547(0x128)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');}async function execute(_0x4bd645){const _0x196332=a17_0x12a570,_0x3d7969=_0x4bd645[_0x196332(0x119)][0x0]?.[_0x196332(0x10a)]();if(!_0x3d7969)throw CliErrors[_0x196332(0x113)](_0x196332(0x10e),_0x196332(0x128)+CLI_BIN_NAME+_0x196332(0x103));const _0x50eb26=_0x4bd645[_0x196332(0xff)](_0x196332(0x11f));if(!_0x50eb26)throw CliErrors['flagMissing']('appcode',_0x196332(0x128)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x3cca6c={'global':_0x4bd645['bool'](_0x196332(0x117))},_0x1520a5=readConfig(_0x3cca6c);if(!_0x1520a5[_0x196332(0x108)])_0x1520a5[_0x196332(0x108)]={};Object[_0x196332(0x10b)](_0x1520a5[_0x196332(0x108)])['length']===0x0&&migrateLegacySingleApp(_0x1520a5,_0x3d7969);const _0x56ec01={'appcode':_0x50eb26};for(const [_0x2af383,_0x20ddb9]of Object['entries'](PROFILE_FLAG_KEYS)){const _0x10db6e=_0x4bd645[_0x196332(0xff)](_0x2af383);_0x10db6e&&(_0x56ec01[_0x20ddb9]=_0x20ddb9===_0x196332(0x114)?Number(_0x10db6e):_0x10db6e);}const _0x415c3f=_0x1520a5[_0x196332(0x108)],_0x377f9a=!!_0x415c3f[_0x3d7969];_0x415c3f[_0x3d7969]=_0x56ec01;if(!_0x1520a5[_0x196332(0x11e)])_0x1520a5['defaultApp']=_0x3d7969;writeConfig(_0x1520a5,_0x3cca6c);const _0x4e8016=!_0x377f9a&&_0x1520a5['defaultApp']===_0x3d7969?_0x196332(0x122):'';return{'ok':!![],'message':(_0x377f9a?_0x196332(0x129):_0x196332(0x10c))+'\x20app\x20\x22'+_0x3d7969+_0x196332(0x10d)+_0x50eb26+')'+scopeLabel(_0x3cca6c)+'.'+_0x4e8016};}export const appAddDefinition={'service':a17_0x12a570(0x118),'command':a17_0x12a570(0x106),'description':a17_0x12a570(0x11c),'risk':a17_0x12a570(0x102),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a17_0x12a570(0x124),'description':a17_0x12a570(0xfe),'required':!![]}],'flags':[{'name':a17_0x12a570(0x11f),'type':'string','description':a17_0x12a570(0xfd),'required':!![]},{'name':a17_0x12a570(0x117),'type':'boolean','description':a17_0x12a570(0x116),'default':![]},{'name':a17_0x12a570(0x101),'type':a17_0x12a570(0x123),'description':a17_0x12a570(0x11d)},{'name':a17_0x12a570(0x112),'type':a17_0x12a570(0x123),'description':a17_0x12a570(0x12a)},{'name':a17_0x12a570(0x126),'type':'string','description':a17_0x12a570(0x107),'hidden':!![]},{'name':a17_0x12a570(0x111),'type':a17_0x12a570(0x123),'description':a17_0x12a570(0xfa),'hidden':!![]},{'name':a17_0x12a570(0x12c),'type':a17_0x12a570(0x123),'description':a17_0x12a570(0xfb)},{'name':a17_0x12a570(0x114),'type':a17_0x12a570(0x100),'description':a17_0x12a570(0x12d)},{'name':a17_0x12a570(0xf9),'type':a17_0x12a570(0x123),'description':a17_0x12a570(0x10f)},{'name':a17_0x12a570(0x115),'type':'string','description':a17_0x12a570(0x104)}],'validate':validateArgs,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x464003,_0x2dc182){const _0x3c3eff=a18_0x279b,_0x352d11=_0x464003();while(!![]){try{const _0x2b35d7=-parseInt(_0x3c3eff(0x1a7))/0x1+parseInt(_0x3c3eff(0x1a6))/0x2+parseInt(_0x3c3eff(0x1a2))/0x3*(-parseInt(_0x3c3eff(0x1a3))/0x4)+-parseInt(_0x3c3eff(0x1ab))/0x5*(parseInt(_0x3c3eff(0x1a5))/0x6)+-parseInt(_0x3c3eff(0x1aa))/0x7+parseInt(_0x3c3eff(0x1a4))/0x8+-parseInt(_0x3c3eff(0x1a8))/0x9*(-parseInt(_0x3c3eff(0x1a9))/0xa);if(_0x2b35d7===_0x2dc182)break;else _0x352d11['push'](_0x352d11['shift']());}catch(_0x541894){_0x352d11['push'](_0x352d11['shift']());}}}(a18_0x362e,0x7c5bc));import{appListDefinition}from'../../commands/app/list.js';function a18_0x279b(_0x14c0e8,_0x2d1a6d){_0x14c0e8=_0x14c0e8-0x1a2;const _0x362e9d=a18_0x362e();let _0x279bf8=_0x362e9d[_0x14c0e8];return _0x279bf8;}import{appRemoteDefinition}from'../../commands/app/remote.js';import{appUseDefinition}from'../../commands/app/use.js';function a18_0x362e(){const _0x3810c8=['8071808cGkRpB','54eNoPDM','1310780wdRdPm','853780OrVRYc','9722844EmORbs','10bmBKJT','3210214hrnYtK','389530EJDmCg','147xIdJMh','18104fGoFms'];a18_0x362e=function(){return _0x3810c8;};return a18_0x362e();}import{appAddDefinition}from'../../commands/app/add.js';import{appRemoveDefinition}from'../../commands/app/remove.js';export const appDefinitions=[appListDefinition,appRemoteDefinition,appUseDefinition,appAddDefinition,appRemoveDefinition];
1
+ (function(_0x5d3665,_0x13430e){const _0x1b4a43=a18_0x124c,_0x1abbc2=_0x5d3665();while(!![]){try{const _0xf45fdb=parseInt(_0x1b4a43(0x141))/0x1+-parseInt(_0x1b4a43(0x143))/0x2+parseInt(_0x1b4a43(0x140))/0x3+parseInt(_0x1b4a43(0x142))/0x4+-parseInt(_0x1b4a43(0x13d))/0x5*(-parseInt(_0x1b4a43(0x13f))/0x6)+-parseInt(_0x1b4a43(0x145))/0x7+parseInt(_0x1b4a43(0x13e))/0x8*(-parseInt(_0x1b4a43(0x144))/0x9);if(_0xf45fdb===_0x13430e)break;else _0x1abbc2['push'](_0x1abbc2['shift']());}catch(_0x2540f4){_0x1abbc2['push'](_0x1abbc2['shift']());}}}(a18_0x5705,0x2cafc));import{appListDefinition}from'../../commands/app/list.js';import{appRemoteDefinition}from'../../commands/app/remote.js';import{appUseDefinition}from'../../commands/app/use.js';import{appAddDefinition}from'../../commands/app/add.js';function a18_0x5705(){const _0x36fff9=['712707VVmuyw','319111AgCBJS','275284xTwQLS','640938KhnrQz','78336ededAD','551663MoGhDj','567425gHogPZ','144mEzqLd','6XnsfFK'];a18_0x5705=function(){return _0x36fff9;};return a18_0x5705();}import{appRemoveDefinition}from'../../commands/app/remove.js';function a18_0x124c(_0x2c9f36,_0x1bf6e0){_0x2c9f36=_0x2c9f36-0x13d;const _0x570594=a18_0x5705();let _0x124c79=_0x570594[_0x2c9f36];return _0x124c79;}export const appDefinitions=[appListDefinition,appRemoteDefinition,appUseDefinition,appAddDefinition,appRemoveDefinition];