@lovrabet/rabetbase-cli 2.0.2-beta.9 → 2.0.4-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +4 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/doc.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/app/add.js +1 -0
  19. package/lib/commands/app/index.js +1 -0
  20. package/lib/commands/app/list.js +1 -0
  21. package/lib/commands/app/remote.js +1 -0
  22. package/lib/commands/app/remove.js +1 -0
  23. package/lib/commands/app/shared.js +1 -0
  24. package/lib/commands/app/use.js +1 -0
  25. package/lib/commands/auth.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/build.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -0
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -0
  42. package/lib/commands/config/get.js +1 -0
  43. package/lib/commands/config/index.js +1 -0
  44. package/lib/commands/config/list.js +1 -0
  45. package/lib/commands/config/set.js +1 -0
  46. package/lib/commands/config/shared.js +1 -0
  47. package/lib/commands/create.js +1 -1
  48. package/lib/commands/dataset/detail.js +1 -1
  49. package/lib/commands/dataset/index.js +1 -1
  50. package/lib/commands/dataset/links.js +1 -1
  51. package/lib/commands/dataset/list.js +1 -1
  52. package/lib/commands/dataset/operations.js +1 -1
  53. package/lib/commands/doctor.js +1 -1
  54. package/lib/commands/init.js +1 -1
  55. package/lib/commands/logout.js +1 -1
  56. package/lib/commands/logs.js +1 -1
  57. package/lib/commands/menu/index.js +1 -1
  58. package/lib/commands/menu/shared/compare-table.js +1 -1
  59. package/lib/commands/menu/shared/index.js +1 -1
  60. package/lib/commands/menu/shared/inquirer.js +1 -1
  61. package/lib/commands/menu/shared/local-pages.js +1 -1
  62. package/lib/commands/menu/shared/logic.js +1 -1
  63. package/lib/commands/menu/shared/service.js +1 -1
  64. package/lib/commands/menu/shared/sync-core.js +1 -1
  65. package/lib/commands/menu/shared/update-core.js +1 -1
  66. package/lib/commands/menu/shared/valid-url.js +1 -1
  67. package/lib/commands/menu/sync.js +1 -1
  68. package/lib/commands/menu/update.js +1 -1
  69. package/lib/commands/preview.js +1 -1
  70. package/lib/commands/project-upgrade.js +1 -1
  71. package/lib/commands/registry.js +1 -1
  72. package/lib/commands/run.js +1 -1
  73. package/lib/commands/skill.js +1 -1
  74. package/lib/commands/smart-init.js +1 -0
  75. package/lib/commands/sql/detail.js +1 -1
  76. package/lib/commands/sql/exec.js +1 -1
  77. package/lib/commands/sql/index.js +1 -1
  78. package/lib/commands/sql/list.js +1 -1
  79. package/lib/commands/sql/save.js +1 -1
  80. package/lib/commands/sql/validate.js +1 -1
  81. package/lib/commands/start.js +1 -1
  82. package/lib/constant/cli.js +1 -1
  83. package/lib/constant/domain.js +1 -1
  84. package/lib/constant/env.js +1 -1
  85. package/lib/context.js +1 -1
  86. package/lib/core/alias-resolver.js +1 -1
  87. package/lib/core/api-client.js +1 -1
  88. package/lib/core/bff/config.js +1 -1
  89. package/lib/core/bff/file-system.js +1 -1
  90. package/lib/core/bff/hash.js +1 -1
  91. package/lib/core/bff/lock.js +1 -1
  92. package/lib/core/bff/utils.js +1 -1
  93. package/lib/core/db-resolver.js +1 -1
  94. package/lib/core/sql-validator.js +1 -1
  95. package/lib/create-app/enhanced-guided-create.js +1 -1
  96. package/lib/create-app/format-elapsed.js +1 -1
  97. package/lib/create-app/main.js +1 -1
  98. package/lib/create-app/non-interactive.js +1 -1
  99. package/lib/create-app/use-copy-project-template.js +1 -1
  100. package/lib/create-app/use-format-code.js +1 -1
  101. package/lib/create-app/use-install-dependencies.js +1 -1
  102. package/lib/errors.js +1 -1
  103. package/lib/framework/flags.js +1 -1
  104. package/lib/framework/help.js +1 -1
  105. package/lib/framework/index.js +1 -1
  106. package/lib/framework/output.js +1 -1
  107. package/lib/framework/response.js +1 -1
  108. package/lib/framework/runner.js +1 -1
  109. package/lib/framework/types.js +1 -1
  110. package/lib/generated/build-info.js +1 -1
  111. package/lib/help.js +1 -1
  112. package/lib/init/main.js +1 -1
  113. package/lib/skills/main.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/telemetry/cli-help-trace.js +1 -1
  116. package/lib/telemetry/ensure-cli-otel-config.js +1 -0
  117. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  118. package/lib/telemetry/send-cli-trace-log.js +1 -0
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/cdn-config.js +1 -1
  121. package/lib/utils/check-sdk-version.js +1 -1
  122. package/lib/utils/cli-version-check.js +1 -1
  123. package/lib/utils/config.js +1 -1
  124. package/lib/utils/copy-directory.js +1 -1
  125. package/lib/utils/file-utils.js +1 -1
  126. package/lib/utils/guides-cdn.js +1 -1
  127. package/lib/utils/http-client.js +1 -1
  128. package/lib/utils/is-non-interactive.js +1 -0
  129. package/lib/utils/logger.js +1 -1
  130. package/lib/utils/platform.js +1 -1
  131. package/lib/utils/rules-cdn.js +1 -1
  132. package/lib/utils/sleep.js +1 -1
  133. package/lib/utils/template-replacer.js +1 -1
  134. package/lib/utils/version.js +1 -0
  135. package/lib/utils/with-active-cookie.js +1 -0
  136. package/package.json +7 -11
  137. package/lib/commands/app.js +0 -1
  138. package/lib/commands/config.js +0 -1
  139. package/lib/config/config-help.js +0 -1
  140. package/lib/config/main.js +0 -1
  141. package/lib/create-app/task-finished.js +0 -1
  142. package/lib/create-app/task-loading.js +0 -1
  143. package/lib/create-app/task-running.js +0 -1
  144. package/lib/create-app/task-time.js +0 -1
@@ -1 +1 @@
1
- function a31_0x2cb8(){const _0x2a39a4=['2436264DUOsRG','sqlcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','string','Dataset\x20code\x20(32-char\x20hex\x20UUID)','18640WlMyxV','15KvnecI','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','8614360zSXmGF','24364cbCocj','508770iuxTdc','108954jdIqcS','119368TnlMPd','20umUmEU','14uPHYMk','code'];a31_0x2cb8=function(){return _0x2a39a4;};return a31_0x2cb8();}const a31_0x3b426b=a31_0xf953;(function(_0x105191,_0x5ecc5c){const _0xb458f4=a31_0xf953,_0x3f7233=_0x105191();while(!![]){try{const _0x567f5f=-parseInt(_0xb458f4(0x17e))/0x1+-parseInt(_0xb458f4(0x184))/0x2*(parseInt(_0xb458f4(0x17f))/0x3)+parseInt(_0xb458f4(0x182))/0x4*(parseInt(_0xb458f4(0x186))/0x5)+-parseInt(_0xb458f4(0x183))/0x6*(parseInt(_0xb458f4(0x187))/0x7)+-parseInt(_0xb458f4(0x185))/0x8+-parseInt(_0xb458f4(0x189))/0x9+parseInt(_0xb458f4(0x181))/0xa;if(_0x567f5f===_0x5ecc5c)break;else _0x3f7233['push'](_0x3f7233['shift']());}catch(_0x24f71a){_0x3f7233['push'](_0x3f7233['shift']());}}}(a31_0x2cb8,0x22130));export const CODE_FLAG={'name':a31_0x3b426b(0x188),'type':a31_0x3b426b(0x18d),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};function a31_0xf953(_0x1639f9,_0x4a394f){_0x1639f9=_0x1639f9-0x17d;const _0x2cb8e5=a31_0x2cb8();let _0xf95326=_0x2cb8e5[_0x1639f9];return _0xf95326;}export const CODE_FLAG_OPTIONAL={'name':a31_0x3b426b(0x188),'type':'string','required':![],'description':a31_0x3b426b(0x17d),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a31_0x3b426b(0x180)}};export const SQLCODE_FLAG={'name':a31_0x3b426b(0x18a),'type':a31_0x3b426b(0x18d),'required':!![],'description':a31_0x3b426b(0x18b),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a31_0x3b426b(0x18c)}};export const SQLCODE_FLAG_OPTIONAL={'name':a31_0x3b426b(0x18a),'type':'string','required':![],'description':a31_0x3b426b(0x18b),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a31_0x3b426b(0x18c)}};
1
+ const a38_0x5bc37a=a38_0xa31c;(function(_0x2e6663,_0x42ecc4){const _0x434fa0=a38_0xa31c,_0x2f1ab0=_0x2e6663();while(!![]){try{const _0x834dae=-parseInt(_0x434fa0(0xd1))/0x1+parseInt(_0x434fa0(0xc7))/0x2*(parseInt(_0x434fa0(0xcc))/0x3)+parseInt(_0x434fa0(0xc0))/0x4*(parseInt(_0x434fa0(0xd2))/0x5)+parseInt(_0x434fa0(0xcf))/0x6+parseInt(_0x434fa0(0xc2))/0x7+-parseInt(_0x434fa0(0xd0))/0x8*(parseInt(_0x434fa0(0xc5))/0x9)+parseInt(_0x434fa0(0xc8))/0xa*(-parseInt(_0x434fa0(0xca))/0xb);if(_0x834dae===_0x42ecc4)break;else _0x2f1ab0['push'](_0x2f1ab0['shift']());}catch(_0x24d9d1){_0x2f1ab0['push'](_0x2f1ab0['shift']());}}}(a38_0x278e,0x809cb));function a38_0xa31c(_0x2d3b34,_0x4ef929){_0x2d3b34=_0x2d3b34-0xc0;const _0x278e0e=a38_0x278e();let _0xa31c7c=_0x278e0e[_0x2d3b34];return _0xa31c7c;}export const CODE_FLAG={'name':a38_0x5bc37a(0xc1),'type':a38_0x5bc37a(0xc4),'required':!![],'description':a38_0x5bc37a(0xc6),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x5bc37a(0xce)}};export const CODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xc1),'type':'string','required':![],'description':a38_0x5bc37a(0xc6),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x5bc37a(0xce)}};function a38_0x278e(){const _0xbeefd9=['code','1086610GsauCf','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','string','36gNJwVQ','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1506wHcVYV','370UCoeGJ','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','292611jMsZJz','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','3459Aralyj','sqlcode','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','5613906SQRXDS','1588624HzPtvf','176334LIhyyr','55nAzkKi','appcode','190032ImLFyr'];a38_0x278e=function(){return _0xbeefd9;};return a38_0x278e();}export const SQLCODE_FLAG={'name':a38_0x5bc37a(0xcd),'type':a38_0x5bc37a(0xc4),'required':!![],'description':a38_0x5bc37a(0xcb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x5bc37a(0xc9)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xd3),'type':'string','required':![],'description':a38_0x5bc37a(0xc3)};export const SQLCODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xcd),'type':'string','required':![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x5bc37a(0xc9)}};
@@ -0,0 +1 @@
1
+ function a39_0x304d(_0x1ce8b7,_0x434ee4){_0x1ce8b7=_0x1ce8b7-0x1cf;const _0x1967be=a39_0x1967();let _0x304db8=_0x1967be[_0x1ce8b7];return _0x304db8;}function a39_0x1967(){const _0x3ffe5c=['4476672LSewss','18CWUPEV','3447684oPzVti','trim','116936iVMCRr','3252016YYxmVA','App\x20Code\x20cannot\x20exceed\x20100\x20characters','4GCakCI','1675950deWDEj','2045407yLYMyq','2326865BaIpyI','test','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'];a39_0x1967=function(){return _0x3ffe5c;};return a39_0x1967();}(function(_0x1c61ad,_0x1551fa){const _0xc5f43f=a39_0x304d,_0x49b0ce=_0x1c61ad();while(!![]){try{const _0x599774=parseInt(_0xc5f43f(0x1d3))/0x1+parseInt(_0xc5f43f(0x1d7))/0x2+-parseInt(_0xc5f43f(0x1d1))/0x3+parseInt(_0xc5f43f(0x1d6))/0x4*(-parseInt(_0xc5f43f(0x1d9))/0x5)+parseInt(_0xc5f43f(0x1cf))/0x6+-parseInt(_0xc5f43f(0x1d8))/0x7+-parseInt(_0xc5f43f(0x1d4))/0x8*(-parseInt(_0xc5f43f(0x1d0))/0x9);if(_0x599774===_0x1551fa)break;else _0x49b0ce['push'](_0x49b0ce['shift']());}catch(_0x5a309e){_0x49b0ce['push'](_0x49b0ce['shift']());}}}(a39_0x1967,0x943f9));export function validateAppcode(_0x25f537){const _0x410f7c=a39_0x304d,_0x42d2a9=_0x25f537[_0x410f7c(0x1d2)]();if(!_0x42d2a9)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x42d2a9['length']>0x64)return{'valid':![],'message':_0x410f7c(0x1d5)};if(!/^[A-Za-z0-9_-]+$/[_0x410f7c(0x1da)](_0x42d2a9))return{'valid':![],'message':_0x410f7c(0x1db)};return{'valid':!![]};}
@@ -0,0 +1 @@
1
+ function a40_0x574b(_0x5b7c82,_0x5be1d0){_0x5b7c82=_0x5b7c82-0xdc;const _0x16621f=a40_0x1662();let _0x574bd2=_0x16621f[_0x5b7c82];return _0x574bd2;}const a40_0x189bc1=a40_0x574b;(function(_0x5b4034,_0x24749f){const _0x26e319=a40_0x574b,_0x229cb9=_0x5b4034();while(!![]){try{const _0x33f11e=-parseInt(_0x26e319(0xe3))/0x1+-parseInt(_0x26e319(0xe0))/0x2+parseInt(_0x26e319(0xec))/0x3*(parseInt(_0x26e319(0xeb))/0x4)+-parseInt(_0x26e319(0xe6))/0x5*(parseInt(_0x26e319(0xe5))/0x6)+-parseInt(_0x26e319(0xed))/0x7+parseInt(_0x26e319(0xee))/0x8+-parseInt(_0x26e319(0xef))/0x9*(-parseInt(_0x26e319(0xf1))/0xa);if(_0x33f11e===_0x24749f)break;else _0x229cb9['push'](_0x229cb9['shift']());}catch(_0x276897){_0x229cb9['push'](_0x229cb9['shift']());}}}(a40_0x1662,0xbb5fb));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x1662(){const _0x1406cd=['read','string','1225921VpXENn','Key\x20not\x20found:\x20','2898uTyYjn','3525koAIQX','validation','key','object','Get\x20a\x20config\x20value\x20by\x20key','1176432uqblld','15bJUGyn','1754081iaMxuV','12024952KaxeBm','9OwhwcT','app','30020uoftOZ','Usage:\x20','Config\x20key\x20to\x20read','Missing\x20key.','\x20config\x20get\x20--key\x20<key>','784318QWsYGs'];a40_0x1662=function(){return _0x1406cd;};return a40_0x1662();}async function execute(_0x402fa4){const _0x112a6b=a40_0x574b,_0x4a480a=_0x402fa4['str'](_0x112a6b(0xe8));if(!_0x4a480a)throw CliErrors[_0x112a6b(0xe7)](_0x112a6b(0xde),_0x112a6b(0xdc)+CLI_BIN_NAME+_0x112a6b(0xdf));const _0x138eb0=readConfig(),_0x29f0c0=_0x4a480a===_0x112a6b(0xf0)?'appcode':_0x4a480a,_0x27fc90=_0x138eb0[_0x29f0c0];if(_0x27fc90===undefined)throw CliErrors['validation'](_0x112a6b(0xe4)+_0x4a480a);return{'ok':!![],'data':typeof _0x27fc90===_0x112a6b(0xe9)?_0x27fc90:{[_0x29f0c0]:_0x27fc90},'message':typeof _0x27fc90===_0x112a6b(0xe9)?undefined:String(_0x27fc90)};}export const configGetDefinition={'service':'config','command':'get','description':a40_0x189bc1(0xea),'risk':a40_0x189bc1(0xe1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x189bc1(0xe8),'type':a40_0x189bc1(0xe2),'description':a40_0x189bc1(0xdd),'required':!![]}],'execute':execute};
@@ -0,0 +1 @@
1
+ (function(_0x184b19,_0x1fa213){const _0x3fafe3=a41_0x1cdb,_0x2c6bc9=_0x184b19();while(!![]){try{const _0x7a1bb7=-parseInt(_0x3fafe3(0x1b9))/0x1*(-parseInt(_0x3fafe3(0x1b7))/0x2)+-parseInt(_0x3fafe3(0x1bc))/0x3+parseInt(_0x3fafe3(0x1ba))/0x4+parseInt(_0x3fafe3(0x1b8))/0x5+-parseInt(_0x3fafe3(0x1be))/0x6*(parseInt(_0x3fafe3(0x1bd))/0x7)+parseInt(_0x3fafe3(0x1bb))/0x8*(parseInt(_0x3fafe3(0x1bf))/0x9)+parseInt(_0x3fafe3(0x1c0))/0xa;if(_0x7a1bb7===_0x1fa213)break;else _0x2c6bc9['push'](_0x2c6bc9['shift']());}catch(_0x3c14c9){_0x2c6bc9['push'](_0x2c6bc9['shift']());}}}(a41_0x5a47,0x8fd8d));import{configListDefinition}from'./list.js';function a41_0x1cdb(_0x164e83,_0x2cfbf2){_0x164e83=_0x164e83-0x1b7;const _0x5a4732=a41_0x5a47();let _0x1cdb7c=_0x5a4732[_0x164e83];return _0x1cdb7c;}import{configGetDefinition}from'./get.js';import{configSetDefinition}from'./set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a41_0x5a47(){const _0x3fd018=['7624xlIcJp','2860857YlIkvU','126zMvGlm','214386igCUII','990SPOefL','3636020SVqQQx','4WscuRl','4395865FZeEMT','333001EkdIFw','689468HauXKQ'];a41_0x5a47=function(){return _0x3fd018;};return a41_0x5a47();}
@@ -0,0 +1 @@
1
+ function a42_0x20bb(_0x42541f,_0x53c8d4){_0x42541f=_0x42541f-0xee;const _0x858d19=a42_0x858d();let _0x20bb81=_0x858d19[_0x42541f];return _0x20bb81;}const a42_0x101639=a42_0x20bb;function a42_0x858d(){const _0x425268=['4221476YOVupl','63jwbtQI','boolean','622466LOQyan','7656624AWHpQl','config','3VVOCjJ','global','10026764vsOJZQ','524280OaGmaW','list','5tjmEDQ','501090spQmto','7picVOj','List\x20all\x20config\x20values','1203949oaQRZH','bool'];a42_0x858d=function(){return _0x425268;};return a42_0x858d();}(function(_0x464228,_0x18f14c){const _0x30ea69=a42_0x20bb,_0x16f2be=_0x464228();while(!![]){try{const _0x2da3c8=-parseInt(_0x30ea69(0xef))/0x1+-parseInt(_0x30ea69(0xf4))/0x2*(-parseInt(_0x30ea69(0xf7))/0x3)+parseInt(_0x30ea69(0xf1))/0x4*(parseInt(_0x30ea69(0xfc))/0x5)+parseInt(_0x30ea69(0xfd))/0x6+-parseInt(_0x30ea69(0xfe))/0x7*(-parseInt(_0x30ea69(0xf5))/0x8)+-parseInt(_0x30ea69(0xf2))/0x9*(-parseInt(_0x30ea69(0xfa))/0xa)+-parseInt(_0x30ea69(0xf9))/0xb;if(_0x2da3c8===_0x18f14c)break;else _0x16f2be['push'](_0x16f2be['shift']());}catch(_0xcf3d5f){_0x16f2be['push'](_0x16f2be['shift']());}}}(a42_0x858d,0xa0d1e));import{readScopedConfig}from'./shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x2f6b62){const _0x40008f=a42_0x20bb,_0x46f45e=_0x2f6b62[_0x40008f(0xf0)](_0x40008f(0xf8))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x46f45e};}export const configListDefinition={'service':a42_0x101639(0xf6),'command':a42_0x101639(0xfb),'description':a42_0x101639(0xee),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x101639(0xf8),'type':a42_0x101639(0xf3),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -0,0 +1 @@
1
+ function a43_0x5723(_0xda0ec1,_0x26327e){_0xda0ec1=_0xda0ec1-0x16c;const _0x1b518e=a43_0x1b51();let _0x5723b2=_0x1b518e[_0xda0ec1];return _0x5723b2;}const a43_0x2066e5=a43_0x5723;function a43_0x1b51(){const _0x4dc305=['string','production','11777513wfNDMJ','Missing\x20value.','613404JqOcoA','25edIwLH','Project','30szdmjZ','includes','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','boolean','env','Config\x20value','bool','Global','value','3941eJZoer','appcode','Usage:\x20','7064ytcqSm','key','52FBwbuJ','Missing\x20key.','app','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','106521oMIgBn','\x20set\x20to:\x20','length','Set\x20a\x20config\x20value','daily','1376480KKGwKC','5891328OssFpE','global','Invalid\x20locale\x20value.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','set','validation','write','str','16598vBxkOz','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US'];a43_0x1b51=function(){return _0x4dc305;};return a43_0x1b51();}(function(_0x6a5ddf,_0x42cf18){const _0x8481c7=a43_0x5723,_0x29e30a=_0x6a5ddf();while(!![]){try{const _0x1843b3=-parseInt(_0x8481c7(0x176))/0x1*(-parseInt(_0x8481c7(0x17f))/0x2)+-parseInt(_0x8481c7(0x191))/0x3*(-parseInt(_0x8481c7(0x18d))/0x4)+-parseInt(_0x8481c7(0x17d))/0x5*(-parseInt(_0x8481c7(0x17c))/0x6)+-parseInt(_0x8481c7(0x188))/0x7*(parseInt(_0x8481c7(0x18b))/0x8)+parseInt(_0x8481c7(0x16e))/0x9+parseInt(_0x8481c7(0x16d))/0xa+-parseInt(_0x8481c7(0x17a))/0xb;if(_0x1843b3===_0x42cf18)break;else _0x29e30a['push'](_0x29e30a['shift']());}catch(_0x4cd8d6){_0x29e30a['push'](_0x29e30a['shift']());}}}(a43_0x1b51,0x6cecf));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x3b8663){const _0x2a9542=a43_0x5723,_0x4c10a7=_0x3b8663[_0x2a9542(0x175)]('key'),_0x112a7b=_0x3b8663['str'](_0x2a9542(0x187));if(!_0x4c10a7)throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x18e),'Usage:\x20'+CLI_BIN_NAME+_0x2a9542(0x181));if(_0x112a7b===undefined||_0x112a7b==='')throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x17b),_0x2a9542(0x18a)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x112a7b[_0x2a9542(0x193)]>0x1f4)throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x171));if(_0x4c10a7===_0x2a9542(0x183)&&!['online',_0x2a9542(0x179),_0x2a9542(0x16c)][_0x2a9542(0x180)](_0x112a7b))throw CliErrors[_0x2a9542(0x173)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x4c10a7==='locale'&&!normalizeLocale(_0x112a7b))throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x170),_0x2a9542(0x177));const _0x417435={'global':_0x3b8663[_0x2a9542(0x185)](_0x2a9542(0x16f))},_0x42be32=resolveWriteScope(_0x417435),_0x27d899=readScopedConfig(_0x42be32);let _0x248488=_0x4c10a7,_0x16275a=_0x112a7b;_0x4c10a7==='app'&&(_0x248488=_0x2a9542(0x189),delete _0x27d899[_0x2a9542(0x18f)]);_0x4c10a7===_0x2a9542(0x189)&&delete _0x27d899[_0x2a9542(0x18f)];_0x4c10a7==='locale'&&(_0x16275a=normalizeLocale(_0x112a7b));_0x27d899[_0x248488]=_0x16275a,writeScopedConfig(_0x27d899,_0x42be32);const _0x3c0be7=_0x42be32===_0x2a9542(0x16f)?_0x2a9542(0x186):_0x2a9542(0x17e);return{'ok':!![],'message':'✓\x20'+_0x3c0be7+'\x20'+_0x248488+_0x2a9542(0x192)+_0x16275a};}export const configSetDefinition={'service':'config','command':a43_0x2066e5(0x172),'description':a43_0x2066e5(0x194),'risk':a43_0x2066e5(0x174),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x2066e5(0x18c),'type':'string','description':'Config\x20key','required':!![]},{'name':a43_0x2066e5(0x187),'type':a43_0x2066e5(0x178),'description':a43_0x2066e5(0x184),'required':!![]},{'name':a43_0x2066e5(0x16f),'type':a43_0x2066e5(0x182),'description':a43_0x2066e5(0x190),'default':![]}],'execute':execute};
@@ -0,0 +1 @@
1
+ function a44_0x1ce9(_0x106b62,_0xa9f956){_0x106b62=_0x106b62-0x1a3;const _0x224ada=a44_0x224a();let _0x1ce969=_0x224ada[_0x106b62];return _0x1ce969;}const a44_0x58e28e=a44_0x1ce9;(function(_0x53f6af,_0x27a7de){const _0x5b6af7=a44_0x1ce9,_0x31182d=_0x53f6af();while(!![]){try{const _0x50c8b9=-parseInt(_0x5b6af7(0x1a6))/0x1+parseInt(_0x5b6af7(0x1a3))/0x2*(parseInt(_0x5b6af7(0x1ad))/0x3)+parseInt(_0x5b6af7(0x1b1))/0x4+-parseInt(_0x5b6af7(0x1ab))/0x5+-parseInt(_0x5b6af7(0x1a5))/0x6*(parseInt(_0x5b6af7(0x1a8))/0x7)+-parseInt(_0x5b6af7(0x1a4))/0x8*(parseInt(_0x5b6af7(0x1b0))/0x9)+-parseInt(_0x5b6af7(0x1a7))/0xa*(-parseInt(_0x5b6af7(0x1aa))/0xb);if(_0x50c8b9===_0x27a7de)break;else _0x31182d['push'](_0x31182d['shift']());}catch(_0x5284ab){_0x31182d['push'](_0x31182d['shift']());}}}(a44_0x224a,0x6023d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x58e28e(0x1ac),'zh-cn':a44_0x58e28e(0x1ac),'zh_cn':a44_0x58e28e(0x1ac),'en':a44_0x58e28e(0x1ae),'en-us':a44_0x58e28e(0x1ae),'en_us':a44_0x58e28e(0x1ae)};export function normalizeLocale(_0x5d0efd){if(!_0x5d0efd)return null;return LOCALE_MAP[_0x5d0efd['toLowerCase']()]??null;}export function resolveWriteScope(_0x1861f8){const _0x34d222=a44_0x58e28e;if(_0x1861f8['global'])return _0x34d222(0x1af);return isInProject()?_0x34d222(0x1a9):_0x34d222(0x1af);}function a44_0x224a(){const _0x2e31fb=['11155iyzzrI','600LPPCpv','4236463VrcaFY','project','255409DkYBfB','1930885aPQTGV','zh-CN','630903mbZVEL','en-US','global','9YgRdGP','477704wUViea','2dhshRi','2612296neNfon','6mMctqc'];a44_0x224a=function(){return _0x2e31fb;};return a44_0x224a();}export function readScopedConfig(_0x2621a3){return readConfigFile(resolveWriteConfigPath(_0x2621a3));}export function writeScopedConfig(_0x4255ee,_0x11de69){writeConfigFile(resolveWriteConfigPath(_0x11de69),_0x4255ee);}
@@ -1 +1 @@
1
- const a33_0x10c7ba=a33_0x1fbb;(function(_0x378fc7,_0x3ab089){const _0x160ef5=a33_0x1fbb,_0x539cc3=_0x378fc7();while(!![]){try{const _0x4f97eb=-parseInt(_0x160ef5(0x125))/0x1+parseInt(_0x160ef5(0x11a))/0x2*(-parseInt(_0x160ef5(0x115))/0x3)+-parseInt(_0x160ef5(0x126))/0x4*(-parseInt(_0x160ef5(0x11c))/0x5)+parseInt(_0x160ef5(0x119))/0x6*(parseInt(_0x160ef5(0x12a))/0x7)+-parseInt(_0x160ef5(0x11f))/0x8+-parseInt(_0x160ef5(0x11b))/0x9*(-parseInt(_0x160ef5(0x116))/0xa)+-parseInt(_0x160ef5(0x128))/0xb*(-parseInt(_0x160ef5(0x124))/0xc);if(_0x4f97eb===_0x3ab089)break;else _0x539cc3['push'](_0x539cc3['shift']());}catch(_0x28ab6d){_0x539cc3['push'](_0x539cc3['shift']());}}}(a33_0x24ef,0x33dc3));function a33_0x1fbb(_0x46d3ed,_0x26a153){_0x46d3ed=_0x46d3ed-0x114;const _0x24ef86=a33_0x24ef();let _0x1fbbfd=_0x24ef86[_0x46d3ed];return _0x1fbbfd;}import{jsx as a33_0x51ad7b}from'react/jsx-runtime';function a33_0x24ef(){const _0x33716a=['info','logger','60CeOZvw','2006xLbpIb','3604329UTrgmY','2135ldbvea','cookie','../create-app/non-interactive.js','1059216wjeplv','validation','create','trim','Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci','588PlRWeG','385889jXtIlm','44wohJKp','nonInteractive','148071OoiTfA','Create\x20a\x20new\x20project','60340ufqSuP','auth','1257SnKCeN','10KtgRzC'];a33_0x24ef=function(){return _0x33716a;};return a33_0x24ef();}import{render}from'ink';import{CreateApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';export const createCommand={'name':a33_0x10c7ba(0x121),'description':a33_0x10c7ba(0x129),async 'run'(_0x543fc1,_0x3e0ef7,_0x56bde8){const _0x4a93d6=a33_0x10c7ba,_0x290980=_0x3e0ef7[0x0]?.[_0x4a93d6(0x122)](),_0x1db384=_0x56bde8['env'];if(_0x543fc1[_0x4a93d6(0x127)]&&_0x290980){_0x543fc1[_0x4a93d6(0x118)][_0x4a93d6(0x117)](_0x4a93d6(0x121),'非交互模式创建项目:\x20'+_0x290980);const {createProjectNonInteractive:_0x5d8a8a}=await import(_0x4a93d6(0x11e));await _0x5d8a8a(_0x290980,_0x1db384);}else{if(_0x543fc1[_0x4a93d6(0x127)]&&!_0x290980)throw CliErrors[_0x4a93d6(0x120)]('Non-interactive\x20mode\x20requires\x20a\x20project\x20name.',_0x4a93d6(0x123));else render(a33_0x51ad7b(CreateApp,{'projectCode':_0x290980,'env':_0x1db384,'cookie':_0x543fc1[_0x4a93d6(0x114)][_0x4a93d6(0x11d)]}));}}};
1
+ const a45_0xab7906=a45_0x3fe5;function a45_0x239e(){const _0x26de14=['auth','trim','logger','649280fasVvx','nonInteractive','6835293prXdRk','cookie','1266GXvnbz','rabetbase\x20project\x20create\x20[<project-name>]\x20[flags]','Project\x20name','name','../create-app/non-interactive.js','279860rnKAsN','validation','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','35394DkiwiP','901296QXQPdm','28042HitvpL','非交互模式创建项目:\x20','880360BwiroQ','create','appcode','Target\x20environment','12fEuheh','5tAVlqQ','env','string','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','info'];a45_0x239e=function(){return _0x26de14;};return a45_0x239e();}(function(_0x28d542,_0x419b11){const _0x5e1bd9=a45_0x3fe5,_0x2f0da0=_0x28d542();while(!![]){try{const _0x4823df=parseInt(_0x5e1bd9(0x81))/0x1+parseInt(_0x5e1bd9(0x78))/0x2*(-parseInt(_0x5e1bd9(0x70))/0x3)+-parseInt(_0x5e1bd9(0x6d))/0x4*(-parseInt(_0x5e1bd9(0x79))/0x5)+-parseInt(_0x5e1bd9(0x68))/0x6*(-parseInt(_0x5e1bd9(0x72))/0x7)+-parseInt(_0x5e1bd9(0x71))/0x8+-parseInt(_0x5e1bd9(0x66))/0x9+-parseInt(_0x5e1bd9(0x74))/0xa;if(_0x4823df===_0x419b11)break;else _0x2f0da0['push'](_0x2f0da0['shift']());}catch(_0x222c69){_0x2f0da0['push'](_0x2f0da0['shift']());}}}(a45_0x239e,0x8242c));import{createApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';function a45_0x3fe5(_0x3b5e58,_0x5e3f3d){_0x3b5e58=_0x3b5e58-0x65;const _0x239e92=a45_0x239e();let _0x3fe5e1=_0x239e92[_0x3b5e58];return _0x3fe5e1;}const flagDefs=[{'name':a45_0xab7906(0x6b),'type':a45_0xab7906(0x7b),'description':a45_0xab7906(0x6a)},{'name':a45_0xab7906(0x7a),'type':a45_0xab7906(0x7b),'description':a45_0xab7906(0x77)},{'name':a45_0xab7906(0x76),'type':'string','description':a45_0xab7906(0x6f)}];export const createCommand={'name':'create','description':'Create\x20a\x20new\x20project','usage':a45_0xab7906(0x69),'flags':flagDefs,async 'run'(_0xc8c59e,_0x14b99e,_0x13e040){const _0xa111a0=a45_0xab7906,_0xb35946=_0x13e040[_0xa111a0(0x6b)]?.[_0xa111a0(0x7f)]()||_0x14b99e[0x0]?.[_0xa111a0(0x7f)](),_0x3a436e=_0x13e040[_0xa111a0(0x7a)],_0x254e86=_0x13e040[_0xa111a0(0x76)];if(_0xc8c59e[_0xa111a0(0x65)]){if(!_0xb35946)throw CliErrors[_0xa111a0(0x6e)](_0xa111a0(0x7c),'Usage:\x20rabetbase\x20create\x20<project-name>\x20[--appcode\x20<code>]\x20[--ci]');_0xc8c59e[_0xa111a0(0x80)][_0xa111a0(0x7d)](_0xa111a0(0x75),_0xa111a0(0x73)+_0xb35946);const {createProjectNonInteractive:_0x30c985}=await import(_0xa111a0(0x6c));await _0x30c985(_0xb35946,_0x3a436e,_0x254e86,_0xc8c59e[_0xa111a0(0x7e)][_0xa111a0(0x67)]);}else await createApp({'projectCode':_0xb35946,'appCode':_0x254e86,'env':_0x3a436e,'cookie':_0xc8c59e[_0xa111a0(0x7e)]['cookie']});}};
@@ -1 +1 @@
1
- const a34_0x20438e=a34_0x203c;(function(_0x48bd0b,_0x43c320){const _0x57de1a=a34_0x203c,_0x3e1994=_0x48bd0b();while(!![]){try{const _0x4f2ad7=parseInt(_0x57de1a(0x95))/0x1+-parseInt(_0x57de1a(0xba))/0x2+-parseInt(_0x57de1a(0xb2))/0x3+parseInt(_0x57de1a(0xbf))/0x4*(parseInt(_0x57de1a(0x91))/0x5)+-parseInt(_0x57de1a(0xb0))/0x6+parseInt(_0x57de1a(0x96))/0x7*(-parseInt(_0x57de1a(0xa6))/0x8)+parseInt(_0x57de1a(0xa3))/0x9*(parseInt(_0x57de1a(0xbe))/0xa);if(_0x4f2ad7===_0x43c320)break;else _0x3e1994['push'](_0x3e1994['shift']());}catch(_0x59131d){_0x3e1994['push'](_0x3e1994['shift']());}}}(a34_0x49f7,0x19865));function a34_0x203c(_0x1cc6b0,_0x20e9b2){_0x1cc6b0=_0x1cc6b0-0x8f;const _0x49f7a6=a34_0x49f7();let _0x203c20=_0x49f7a6[_0x1cc6b0];return _0x203c20;}function a34_0x49f7(){const _0x5cc8ec=['isArray','dbType','467520aajBLG','dataType','302145SByCCD','string','relations','tableName','verbose','read','entries','filter','113532vlKkpd','indexes','deleted','fields','1935390NDXZBI','639484TUJLen','source','toDatasetName','properties','5XThWEP','path','alias','toTableName','162147BpXaxp','1229249DKhLHq','displayName','pkField','modelId','type','toFieldLabel','toField','options','description','tableComment','parse','object','dataset','9hTgWKm','fromField','code','8OuAeJH','required','length','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','detail','extend','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','name'];a34_0x49f7=function(){return _0x5cc8ec;};return a34_0x49f7();}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x1a6c7b){const _0x528a73=a34_0x203c;if(_0x1a6c7b[_0x528a73(0xbc)])return null;const _0xa6eba4=Boolean(_0x1a6c7b[_0x528a73(0x97)]!==undefined||_0x1a6c7b['doType']!==undefined);let _0x562f7d={};if(!_0xa6eba4&&typeof _0x1a6c7b[_0x528a73(0xab)]===_0x528a73(0xb3))try{_0x562f7d=JSON[_0x528a73(0xa0)](_0x1a6c7b['extend']);}catch{}const _0x5cb4c4=_0xa6eba4?_0x1a6c7b[_0x528a73(0xad)]:_0x1a6c7b[_0x528a73(0xa5)],_0x142553=_0xa6eba4?_0x1a6c7b[_0x528a73(0x97)]:_0x1a6c7b[_0x528a73(0xad)],_0x3721e7=_0xa6eba4?_0x1a6c7b['doType']:_0x1a6c7b[_0x528a73(0x9a)]||_0x1a6c7b[_0x528a73(0xb1)],_0x282906=_0xa6eba4?_0x1a6c7b[_0x528a73(0x98)]===!![]:_0x562f7d[_0x528a73(0x98)]===!![],_0x40656c=_0xa6eba4?_0x1a6c7b[_0x528a73(0xa7)]===!![]:_0x562f7d[_0x528a73(0xa7)]===!![],_0x1e176d=_0xa6eba4?_0x1a6c7b[_0x528a73(0x9d)]??null:_0x562f7d['options']??null,_0x4658e2={'name':_0x5cb4c4,'displayName':_0x142553||_0x5cb4c4,'type':_0x3721e7,'dbType':_0x1a6c7b[_0x528a73(0xaf)],'pk':_0x282906,'required':_0x40656c,'description':_0x1a6c7b[_0x528a73(0x9e)]||undefined};return Array['isArray'](_0x1e176d)&&_0x1e176d['length']>0x0&&(_0x4658e2['options']=_0x1e176d),_0x4658e2;}export const datasetDetail={'service':a34_0x20438e(0xa2),'command':a34_0x20438e(0xaa),'description':a34_0x20438e(0xac),'risk':a34_0x20438e(0xb7),'flags':[CODE_FLAG,{'name':a34_0x20438e(0x93),'type':a34_0x20438e(0xb3),'description':a34_0x20438e(0xa9)},{'name':a34_0x20438e(0xb6),'type':'boolean','description':'Return\x20full\x20raw\x20detail\x20object'}],async 'execute'(_0xa5594){const _0x498450=a34_0x20438e,_0xe71186=await getDatasetDetail(_0xa5594['str']('code')),_0x615d75=_0xa5594['bool']('verbose');if(_0x615d75)return{'ok':!![],'data':_0xe71186};const _0x10beb3=Array[_0x498450(0xae)](_0xe71186[_0x498450(0xbd)])?_0xe71186[_0x498450(0xbd)]:Array[_0x498450(0xae)](_0xe71186[_0x498450(0x90)])?_0xe71186[_0x498450(0x90)]:[],_0x44e732=_0x10beb3['map'](_0xf5c2f5=>normalizeField(_0xf5c2f5))[_0x498450(0xb9)](_0x9019d3=>_0x9019d3!==null),_0x20da7b=_0xe71186['operations']??{},_0x3b5015=[];for(const [_0x34741c,_0x546b55]of Object[_0x498450(0xb8)](_0x20da7b)){if(_0x546b55&&typeof _0x546b55===_0x498450(0xa1)){const _0x32275c=_0x546b55;_0x32275c['method']&&_0x32275c[_0x498450(0x92)]&&_0x3b5015['push']({'name':_0x34741c,'method':_0x32275c['method'],'path':_0x32275c[_0x498450(0x92)]});}}const _0x19ed5f=_0xe71186['dbtableConfig']??{},_0x43cf66=_0xe71186[_0x498450(0xa2)]??{};return{'ok':!![],'data':{'id':_0xe71186[_0x498450(0x99)]??_0xe71186['id'],'name':_0xe71186['name'],'code':_0xe71186['modelCode']||_0xe71186[_0x498450(0xa5)],'description':_0xe71186[_0x498450(0x9e)]||_0x43cf66[_0x498450(0x9f)]||undefined,'source':_0xe71186[_0x498450(0xc0)]||_0x43cf66['sourceType'],'table':_0x19ed5f[_0x498450(0xb5)]||_0x43cf66[_0x498450(0xb5)],'datasetKey':_0x19ed5f['datasetKey'],'pk':_0x19ed5f[_0x498450(0x98)],'fields':_0x44e732,'operations':_0x3b5015,'indexes':Array['isArray'](_0x43cf66[_0x498450(0xbb)])?_0x43cf66[_0x498450(0xbb)]:[],'relations':Array['isArray'](_0xe71186['relations'])?_0xe71186[_0x498450(0xb4)]['map'](_0x4918a6=>({'fromField':_0x4918a6[_0x498450(0xa4)],'toDataset':_0x4918a6[_0x498450(0x8f)],'toCode':_0x4918a6['toDatasetCode'],'toTable':_0x4918a6[_0x498450(0x94)],'toField':_0x4918a6[_0x498450(0x9c)],'labelField':_0x4918a6[_0x498450(0x9b)]||undefined})):[],'stats':{'fieldCount':_0x44e732[_0x498450(0xa8)],'operationCount':_0x3b5015[_0x498450(0xa8)]}}};}};
1
+ function a46_0x3412(_0xdcdcb9,_0xe4b9b3){_0xdcdcb9=_0xdcdcb9-0x1b8;const _0x5a7735=a46_0x5a77();let _0x34122f=_0x5a7735[_0xdcdcb9];return _0x34122f;}const a46_0x5525cf=a46_0x3412;(function(_0x1a9aa6,_0xdff3df){const _0x2140bf=a46_0x3412,_0x214e62=_0x1a9aa6();while(!![]){try{const _0x42e434=parseInt(_0x2140bf(0x1bf))/0x1+-parseInt(_0x2140bf(0x1cc))/0x2+parseInt(_0x2140bf(0x1d7))/0x3+parseInt(_0x2140bf(0x1d3))/0x4*(-parseInt(_0x2140bf(0x1d8))/0x5)+-parseInt(_0x2140bf(0x1ce))/0x6+parseInt(_0x2140bf(0x1db))/0x7*(parseInt(_0x2140bf(0x1ec))/0x8)+-parseInt(_0x2140bf(0x1d0))/0x9*(-parseInt(_0x2140bf(0x1bd))/0xa);if(_0x42e434===_0xdff3df)break;else _0x214e62['push'](_0x214e62['shift']());}catch(_0x46ebfe){_0x214e62['push'](_0x214e62['shift']());}}}(a46_0x5a77,0x3c494));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x2ee327){const _0x1df60e=a46_0x3412;if(_0x2ee327['deleted'])return null;const _0x4169e9=Boolean(_0x2ee327['displayName']!==undefined||_0x2ee327[_0x1df60e(0x1e5)]!==undefined);let _0x2a365a={};if(!_0x4169e9&&typeof _0x2ee327['extend']===_0x1df60e(0x1e0))try{_0x2a365a=JSON[_0x1df60e(0x1ed)](_0x2ee327[_0x1df60e(0x1e2)]);}catch{}const _0x5b5d53=_0x4169e9?_0x2ee327[_0x1df60e(0x1ef)]:_0x2ee327[_0x1df60e(0x1d2)],_0x8b67f8=_0x4169e9?_0x2ee327[_0x1df60e(0x1e9)]:_0x2ee327['name'],_0x22b661=_0x4169e9?_0x2ee327['doType']:_0x2ee327[_0x1df60e(0x1cb)]||_0x2ee327[_0x1df60e(0x1d6)],_0x3b2853=_0x4169e9?_0x2ee327['pkField']===!![]:_0x2a365a['pkField']===!![],_0x374323=_0x4169e9?_0x2ee327[_0x1df60e(0x1e3)]===!![]:_0x2a365a[_0x1df60e(0x1e3)]===!![],_0x1898df=_0x4169e9?_0x2ee327[_0x1df60e(0x1bc)]??null:_0x2a365a[_0x1df60e(0x1bc)]??null,_0x49ed05={'name':_0x5b5d53,'displayName':_0x8b67f8||_0x5b5d53,'type':_0x22b661,'dbType':_0x2ee327[_0x1df60e(0x1c9)],'pk':_0x3b2853,'required':_0x374323,'description':_0x2ee327[_0x1df60e(0x1e1)]||undefined};return Array[_0x1df60e(0x1c0)](_0x1898df)&&_0x1898df[_0x1df60e(0x1b8)]>0x0&&(_0x49ed05[_0x1df60e(0x1bc)]=_0x1898df),_0x49ed05;}function a46_0x5a77(){const _0x271613=['datasetKey','toFieldLabel','read','path','dbType','modelId','type','370196jGcVSY','toField','2602668ufCJiS','detail','117AYwxIS','method','code','1065028DzvEkr','toDatasetName','tableName','dataType','292587QartTI','5xQXiLt','push','bool','108619ukHNsu','Return\x20full\x20raw\x20detail\x20object','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','properties','modelCode','string','description','extend','required','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','doType','toTableName','dataset','verbose','displayName','object','operations','88YJwbLF','parse','indexes','name','length','relations','str','dbtableConfig','options','544590RQIyos','sourceType','155882QsRlAs','isArray','map','toDatasetCode','filter','fields'];a46_0x5a77=function(){return _0x271613;};return a46_0x5a77();}export const datasetDetail={'service':'dataset','command':a46_0x5525cf(0x1cf),'description':a46_0x5525cf(0x1dd),'risk':a46_0x5525cf(0x1c7),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a46_0x5525cf(0x1e0),'description':a46_0x5525cf(0x1e4)},{'name':a46_0x5525cf(0x1e8),'type':'boolean','description':a46_0x5525cf(0x1dc)}],async 'execute'(_0x35e739){const _0x345b5f=a46_0x5525cf,_0x533857=await getDatasetDetail(_0x35e739[_0x345b5f(0x1ba)](_0x345b5f(0x1d2))),_0x1aa2ae=_0x35e739[_0x345b5f(0x1da)](_0x345b5f(0x1e8));if(_0x1aa2ae)return{'ok':!![],'data':_0x533857};const _0x4276cc=Array[_0x345b5f(0x1c0)](_0x533857['fields'])?_0x533857[_0x345b5f(0x1c4)]:Array[_0x345b5f(0x1c0)](_0x533857[_0x345b5f(0x1de)])?_0x533857['properties']:[],_0x4a5f07=_0x4276cc['map'](_0x3343b3=>normalizeField(_0x3343b3))[_0x345b5f(0x1c3)](_0x31cbab=>_0x31cbab!==null),_0x1ba184=_0x533857[_0x345b5f(0x1eb)]??{},_0x19a70c=[];for(const [_0x2ef813,_0x2c413a]of Object['entries'](_0x1ba184)){if(_0x2c413a&&typeof _0x2c413a===_0x345b5f(0x1ea)){const _0x1d0306=_0x2c413a;_0x1d0306[_0x345b5f(0x1d1)]&&_0x1d0306[_0x345b5f(0x1c8)]&&_0x19a70c[_0x345b5f(0x1d9)]({'name':_0x2ef813,'method':_0x1d0306[_0x345b5f(0x1d1)],'path':_0x1d0306[_0x345b5f(0x1c8)]});}}const _0x198ecf=_0x533857[_0x345b5f(0x1bb)]??{},_0x5d3482=_0x533857[_0x345b5f(0x1e7)]??{};return{'ok':!![],'data':{'id':_0x533857[_0x345b5f(0x1ca)]??_0x533857['id'],'name':_0x533857[_0x345b5f(0x1ef)],'code':_0x533857[_0x345b5f(0x1df)]||_0x533857[_0x345b5f(0x1d2)],'description':_0x533857[_0x345b5f(0x1e1)]||_0x5d3482['tableComment']||undefined,'source':_0x533857['source']||_0x5d3482[_0x345b5f(0x1be)],'table':_0x198ecf['tableName']||_0x5d3482[_0x345b5f(0x1d5)],'datasetKey':_0x198ecf[_0x345b5f(0x1c5)],'pk':_0x198ecf['pkField'],'fields':_0x4a5f07,'operations':_0x19a70c,'indexes':Array[_0x345b5f(0x1c0)](_0x5d3482['indexes'])?_0x5d3482[_0x345b5f(0x1ee)]:[],'relations':Array[_0x345b5f(0x1c0)](_0x533857['relations'])?_0x533857[_0x345b5f(0x1b9)][_0x345b5f(0x1c1)](_0x212567=>({'fromField':_0x212567['fromField'],'toDataset':_0x212567[_0x345b5f(0x1d4)],'toCode':_0x212567[_0x345b5f(0x1c2)],'toTable':_0x212567[_0x345b5f(0x1e6)],'toField':_0x212567[_0x345b5f(0x1cd)],'labelField':_0x212567[_0x345b5f(0x1c6)]||undefined})):[],'stats':{'fieldCount':_0x4a5f07[_0x345b5f(0x1b8)],'operationCount':_0x19a70c['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x1a0e69,_0x2691e6){const _0x38d612=a35_0x3234,_0xdb1f23=_0x1a0e69();while(!![]){try{const _0x2e4cea=parseInt(_0x38d612(0x1c7))/0x1+parseInt(_0x38d612(0x1c8))/0x2*(parseInt(_0x38d612(0x1c9))/0x3)+-parseInt(_0x38d612(0x1c0))/0x4*(parseInt(_0x38d612(0x1c4))/0x5)+parseInt(_0x38d612(0x1c1))/0x6*(-parseInt(_0x38d612(0x1c5))/0x7)+-parseInt(_0x38d612(0x1c3))/0x8*(-parseInt(_0x38d612(0x1c2))/0x9)+parseInt(_0x38d612(0x1bf))/0xa*(parseInt(_0x38d612(0x1c6))/0xb)+-parseInt(_0x38d612(0x1be))/0xc;if(_0x2e4cea===_0x2691e6)break;else _0xdb1f23['push'](_0xdb1f23['shift']());}catch(_0x4f908d){_0xdb1f23['push'](_0xdb1f23['shift']());}}}(a35_0x270b,0x3e827));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';function a35_0x270b(){const _0x3da985=['3924228xhJqAd','208230TbVcke','596ubIVAC','42QvQzaU','603YmvzbR','1816OZzmLo','4145cEZxjf','412349HGjvbh','165ewVeac','297099jVYkkj','11630zSaZdr','255PhyYNU'];a35_0x270b=function(){return _0x3da985;};return a35_0x270b();}function a35_0x3234(_0x2cf45a,_0x27c13e){_0x2cf45a=_0x2cf45a-0x1be;const _0x270b59=a35_0x270b();let _0x323497=_0x270b59[_0x2cf45a];return _0x323497;}import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x213174,_0x391349){const _0x2ab5d0=a47_0x3042,_0x15ccf5=_0x213174();while(!![]){try{const _0x2723a4=parseInt(_0x2ab5d0(0xf6))/0x1*(-parseInt(_0x2ab5d0(0xf3))/0x2)+parseInt(_0x2ab5d0(0xf4))/0x3+-parseInt(_0x2ab5d0(0xf7))/0x4+-parseInt(_0x2ab5d0(0xfa))/0x5+-parseInt(_0x2ab5d0(0xf9))/0x6+-parseInt(_0x2ab5d0(0xf8))/0x7+parseInt(_0x2ab5d0(0xf5))/0x8;if(_0x2723a4===_0x391349)break;else _0x15ccf5['push'](_0x15ccf5['shift']());}catch(_0x182325){_0x15ccf5['push'](_0x15ccf5['shift']());}}}(a47_0x538d,0x2ec0f));function a47_0x538d(){const _0x405a0c=['306789jrDIUw','5313736NNoEhh','258xuytsd','116384iPiMBN','1397270wWxpWY','1900788YgDFWC','72545BQEGJF','116nBWweG'];a47_0x538d=function(){return _0x405a0c;};return a47_0x538d();}import{datasetList}from'./list.js';function a47_0x3042(_0x5dff86,_0x52b8ef){_0x5dff86=_0x5dff86-0xf3;const _0x538dc0=a47_0x538d();let _0x30428b=_0x538dc0[_0x5dff86];return _0x30428b;}import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a36_0x1febda=a36_0x31bf;(function(_0x3fbb0a,_0x207476){const _0x306c2d=a36_0x31bf,_0x487efe=_0x3fbb0a();while(!![]){try{const _0x1b181a=parseInt(_0x306c2d(0xda))/0x1+-parseInt(_0x306c2d(0xc8))/0x2*(parseInt(_0x306c2d(0xd3))/0x3)+-parseInt(_0x306c2d(0xb7))/0x4+-parseInt(_0x306c2d(0xc7))/0x5+-parseInt(_0x306c2d(0xdc))/0x6+parseInt(_0x306c2d(0xbc))/0x7+parseInt(_0x306c2d(0xcf))/0x8*(parseInt(_0x306c2d(0xdd))/0x9);if(_0x1b181a===_0x207476)break;else _0x487efe['push'](_0x487efe['shift']());}catch(_0x1ce9f4){_0x487efe['push'](_0x487efe['shift']());}}}(a36_0x2ec2,0x9320c));function a36_0x31bf(_0x1667fa,_0x31daf8){_0x1667fa=_0x1667fa-0xa9;const _0x2ec220=a36_0x2ec2();let _0x31bfc5=_0x2ec220[_0x1667fa];return _0x31bfc5;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':a36_0x1febda(0xba),'command':a36_0x1febda(0xc2),'description':a36_0x1febda(0xd1)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+a36_0x1febda(0xce),'risk':a36_0x1febda(0xc5),'flags':[{'name':'db','type':a36_0x1febda(0xb2),'description':a36_0x1febda(0xc4)+a36_0x1febda(0xb9)},{'name':a36_0x1febda(0xd0),'type':a36_0x1febda(0xd5),'description':a36_0x1febda(0xb3)}],async 'execute'(_0x1ea3b5){const _0x3e3430=a36_0x1febda,_0x576948=_0x1ea3b5['bool'](_0x3e3430(0xd0)),{resolved:_0xc36de5,error:_0x594e02}=await resolveDb(_0x1ea3b5[_0x3e3430(0xa9)],_0x1ea3b5['str']('db')||undefined);if(_0x594e02)return{'ok':![],'message':_0x594e02};const _0x58b5f2=_0xc36de5[_0x3e3430(0xbd)](_0x2a7390=>_0x2a7390[_0x3e3430(0xcb)]),_0x21b57d=await Promise[_0x3e3430(0xac)](_0x58b5f2[_0x3e3430(0xbd)](_0x320e8f=>getErConfig(_0x1ea3b5[_0x3e3430(0xa9)],_0x320e8f)));if(_0x576948)return{'ok':!![],'data':_0x21b57d[_0x3e3430(0xbf)]===0x1?_0x21b57d[0x0]:_0x21b57d,'message':_0x3e3430(0xc9)+_0x58b5f2[_0x3e3430(0xbf)]+'\x20database(s)'};const _0x4bcc28=_0x21b57d[_0x3e3430(0xbd)](_0x142411=>{const _0x281706=_0x3e3430,_0x44100e=(_0x142411[_0x281706(0xd9)]??[])[_0x281706(0xbd)](_0x2bce13=>{const _0x35525f=_0x281706,_0x3f1ee4=_0x2bce13[_0x35525f(0xd4)]?.[_0x35525f(0xae)](_0x44413e=>_0x44413e[_0x35525f(0xb5)])[_0x35525f(0xbd)](_0x448ce4=>_0x448ce4[_0x35525f(0xb6)])??[],_0x4efe50=_0x2bce13[_0x35525f(0xd4)]?.[_0x35525f(0xae)](_0x4432e7=>_0x4432e7[_0x35525f(0xbe)])[_0x35525f(0xbd)](_0x509b21=>_0x509b21[_0x35525f(0xb6)])??[];return{'id':_0x2bce13[_0x35525f(0xc1)],'name':_0x2bce13[_0x35525f(0xaf)],'code':_0x2bce13[_0x35525f(0xad)],'table':_0x2bce13[_0x35525f(0xcd)],'comment':_0x2bce13['tableComment']||undefined,'fields':(_0x2bce13[_0x35525f(0xd4)]??[])['map'](_0x4037e6=>({'name':_0x4037e6['name'],'displayName':_0x4037e6[_0x35525f(0xca)],'type':_0x4037e6[_0x35525f(0xab)],'pk':_0x4037e6[_0x35525f(0xb5)],'fk':_0x4037e6[_0x35525f(0xbe)]})),'relations':(_0x2bce13[_0x35525f(0xd8)]??[])['filter'](_0x5e778=>_0x5e778[_0x35525f(0xd6)]&&_0x5e778[_0x35525f(0xcc)])[_0x35525f(0xbd)](_0x3a41f2=>({'from':_0x3a41f2['fromField'],'toDataset':_0x3a41f2[_0x35525f(0xb8)],'toCode':_0x3a41f2[_0x35525f(0xcc)],'toField':_0x3a41f2[_0x35525f(0xd7)],'joinType':_0x3a41f2[_0x35525f(0xb1)]||_0x35525f(0xc3)})),'stats':{'fieldCount':_0x2bce13[_0x35525f(0xd4)]?.[_0x35525f(0xbf)]??0x0,'pkCount':_0x3f1ee4['length'],'fkCount':_0x4efe50[_0x35525f(0xbf)],'relationCount':_0x2bce13[_0x35525f(0xd8)]?.[_0x35525f(0xbf)]??0x0}};}),_0x169c39=_0x44100e[_0x281706(0xae)](_0x1b945b=>_0x1b945b[_0x281706(0xaa)]['relationCount']>0x0)[_0x281706(0xbd)](_0x1548f9=>_0x1548f9[_0x281706(0xb6)]);return{'db':_0x142411[_0x281706(0xdb)]?.[_0x281706(0xb4)],'dbId':_0x142411[_0x281706(0xdb)]?.[_0x281706(0xcb)],'appCode':_0x142411[_0x281706(0xdb)]?.['appCode'],'datasetCount':_0x44100e[_0x281706(0xbf)],'connectedDatasets':_0x169c39,'datasets':_0x44100e};}),_0x50f408=_0x4bcc28[_0x3e3430(0xd2)]((_0x1f5d48,_0x22c36c)=>_0x1f5d48+_0x22c36c[_0x3e3430(0xb0)],0x0),_0xbddac5=_0x4bcc28[_0x3e3430(0xd2)]((_0x2ccafd,_0x24d091)=>_0x2ccafd+_0x24d091['datasets']['reduce']((_0x124652,_0x4bbaf9)=>_0x124652+_0x4bbaf9['stats'][_0x3e3430(0xbb)],0x0),0x0);return{'ok':!![],'data':_0x4bcc28[_0x3e3430(0xbf)]===0x1?_0x4bcc28[0x0]:{'databases':_0x4bcc28},'message':_0x3e3430(0xc6)+_0x4bcc28['length']+'\x20database(s),\x20'+_0x50f408+'\x20dataset(s),\x20'+_0xbddac5+_0x3e3430(0xc0)};}};function a36_0x2ec2(){const _0x1112b9=['datasetId','links','LEFT','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','read','Link\x20graph:\x20','941650KvijDK','311414lPozLf','Fetched\x20link\x20graph\x20for\x20','displayName','dbId','toDataset','tableName','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','88nFniXi','verbose','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','reduce','3PpDVof','fields','boolean','fromField','toField','relations','datasets','669488gwPSKM','meta','3648636FDeGmu','542151RuSuuq','appCode','stats','dbType','all','datasetCode','filter','datasetName','datasetCount','joinType','string','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','dbName','isPrimaryKey','name','3621564QDuNLD','toDatasetName','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','dataset','relationCount','7896371jdJiDE','map','isForeignKey','length','\x20relation(s)'];a36_0x2ec2=function(){return _0x1112b9;};return a36_0x2ec2();}
1
+ function a48_0x2973(){const _0x28ffdd=['tableName','relations','4tbhUnL','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','filter','42218680HkbgLW','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','\x20dataset(s),\x20','tableComment','joinType','Fetched\x20link\x20graph\x20for\x20','dbId','fields','788rKqqdm','7300734Dgndde','6AmcOxQ','string','fromField','532116foDkRx','length','toDatasetName','572285bwefJP','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','toDataset','3243OcDGLF','isPrimaryKey','LEFT','displayName','dbName','isForeignKey','\x20database(s),\x20','1588384nFKXMI','datasetCount','reduce','map','datasets','meta','relationCount','all','\x20relation(s)','stats','\x20database(s)','name','str','appCode','verbose','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','datasetId','dbType','4296340AFLKOT'];a48_0x2973=function(){return _0x28ffdd;};return a48_0x2973();}function a48_0x15f6(_0x155eed,_0x495c70){_0x155eed=_0x155eed-0x1c1;const _0x2973dc=a48_0x2973();let _0x15f6c5=_0x2973dc[_0x155eed];return _0x15f6c5;}const a48_0x442692=a48_0x15f6;(function(_0x1b297b,_0xd985a2){const _0xdff589=a48_0x15f6,_0xc69e64=_0x1b297b();while(!![]){try{const _0x53056c=parseInt(_0xdff589(0x1cf))/0x1*(-parseInt(_0xdff589(0x1ee))/0x2)+parseInt(_0xdff589(0x1d2))/0x3*(-parseInt(_0xdff589(0x1c7))/0x4)+parseInt(_0xdff589(0x1eb))/0x5*(-parseInt(_0xdff589(0x1c9))/0x6)+-parseInt(_0xdff589(0x1c8))/0x7+-parseInt(_0xdff589(0x1d9))/0x8+-parseInt(_0xdff589(0x1cc))/0x9+parseInt(_0xdff589(0x1f1))/0xa;if(_0x53056c===_0xd985a2)break;else _0xc69e64['push'](_0xc69e64['shift']());}catch(_0x3ea80d){_0xc69e64['push'](_0xc69e64['shift']());}}}(a48_0x2973,0xabfb7));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetLinks={'service':'dataset','command':'links','description':a48_0x442692(0x1ef)+a48_0x442692(0x1f2)+a48_0x442692(0x1d0),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x442692(0x1ca),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a48_0x442692(0x1e8)},{'name':a48_0x442692(0x1e7),'type':'boolean','description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x3545ce){const _0x25b1a5=a48_0x442692,_0x10ad07=_0x3545ce['bool']('verbose'),{resolved:_0x3abb22,error:_0x69708b}=await resolveDb(_0x3545ce[_0x25b1a5(0x1e6)],_0x3545ce[_0x25b1a5(0x1e5)]('db')||undefined);if(_0x69708b)return{'ok':![],'message':_0x69708b};const _0x329d63=_0x3abb22[_0x25b1a5(0x1dc)](_0x1d7119=>_0x1d7119['dbId']),_0x4eca6b=await Promise[_0x25b1a5(0x1e0)](_0x329d63['map'](_0x359546=>getErConfig(_0x3545ce[_0x25b1a5(0x1e6)],_0x359546)));if(_0x10ad07)return{'ok':!![],'data':_0x4eca6b[_0x25b1a5(0x1cd)]===0x1?_0x4eca6b[0x0]:_0x4eca6b,'message':_0x25b1a5(0x1c4)+_0x329d63[_0x25b1a5(0x1cd)]+_0x25b1a5(0x1e3)};const _0x5681d7=_0x4eca6b[_0x25b1a5(0x1dc)](_0x326b68=>{const _0x144ecf=_0x25b1a5,_0x58531b=(_0x326b68['datasets']??[])[_0x144ecf(0x1dc)](_0x4a410f=>{const _0x46ca34=_0x144ecf,_0x29beab=_0x4a410f[_0x46ca34(0x1c6)]?.[_0x46ca34(0x1f0)](_0x112f54=>_0x112f54[_0x46ca34(0x1d3)])[_0x46ca34(0x1dc)](_0xf6a81d=>_0xf6a81d[_0x46ca34(0x1e4)])??[],_0x5d585a=_0x4a410f[_0x46ca34(0x1c6)]?.['filter'](_0x35e7fe=>_0x35e7fe[_0x46ca34(0x1d7)])[_0x46ca34(0x1dc)](_0x302e4c=>_0x302e4c[_0x46ca34(0x1e4)])??[];return{'id':_0x4a410f[_0x46ca34(0x1e9)],'name':_0x4a410f['datasetName'],'code':_0x4a410f['datasetCode'],'table':_0x4a410f[_0x46ca34(0x1ec)],'comment':_0x4a410f[_0x46ca34(0x1c2)]||undefined,'fields':(_0x4a410f[_0x46ca34(0x1c6)]??[])['map'](_0x1f03cb=>({'name':_0x1f03cb[_0x46ca34(0x1e4)],'displayName':_0x1f03cb[_0x46ca34(0x1d5)],'type':_0x1f03cb[_0x46ca34(0x1ea)],'pk':_0x1f03cb[_0x46ca34(0x1d3)],'fk':_0x1f03cb[_0x46ca34(0x1d7)]})),'relations':(_0x4a410f[_0x46ca34(0x1ed)]??[])['filter'](_0x5e5e8c=>_0x5e5e8c[_0x46ca34(0x1cb)]&&_0x5e5e8c[_0x46ca34(0x1d1)])['map'](_0x1e1c03=>({'from':_0x1e1c03[_0x46ca34(0x1cb)],'toDataset':_0x1e1c03[_0x46ca34(0x1ce)],'toCode':_0x1e1c03[_0x46ca34(0x1d1)],'toField':_0x1e1c03['toField'],'joinType':_0x1e1c03[_0x46ca34(0x1c3)]||_0x46ca34(0x1d4)})),'stats':{'fieldCount':_0x4a410f['fields']?.['length']??0x0,'pkCount':_0x29beab[_0x46ca34(0x1cd)],'fkCount':_0x5d585a[_0x46ca34(0x1cd)],'relationCount':_0x4a410f[_0x46ca34(0x1ed)]?.[_0x46ca34(0x1cd)]??0x0}};}),_0x350d28=_0x58531b[_0x144ecf(0x1f0)](_0x20a075=>_0x20a075[_0x144ecf(0x1e2)]['relationCount']>0x0)[_0x144ecf(0x1dc)](_0x9013ce=>_0x9013ce[_0x144ecf(0x1e4)]);return{'db':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1d6)],'dbId':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1c5)],'appCode':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1e6)],'datasetCount':_0x58531b[_0x144ecf(0x1cd)],'connectedDatasets':_0x350d28,'datasets':_0x58531b};}),_0x296224=_0x5681d7[_0x25b1a5(0x1db)]((_0x451517,_0x238b80)=>_0x451517+_0x238b80[_0x25b1a5(0x1da)],0x0),_0x31d655=_0x5681d7[_0x25b1a5(0x1db)]((_0x17a931,_0x209edf)=>_0x17a931+_0x209edf[_0x25b1a5(0x1dd)][_0x25b1a5(0x1db)]((_0x35e39b,_0x3cc49d)=>_0x35e39b+_0x3cc49d[_0x25b1a5(0x1e2)][_0x25b1a5(0x1df)],0x0),0x0);return{'ok':!![],'data':_0x5681d7['length']===0x1?_0x5681d7[0x0]:{'databases':_0x5681d7},'message':'Link\x20graph:\x20'+_0x5681d7[_0x25b1a5(0x1cd)]+_0x25b1a5(0x1d8)+_0x296224+_0x25b1a5(0x1c1)+_0x31d655+_0x25b1a5(0x1e1)};}};
@@ -1 +1 @@
1
- const a37_0x5a748c=a37_0x5233;(function(_0x31a187,_0x35200f){const _0x2a2714=a37_0x5233,_0x5b5837=_0x31a187();while(!![]){try{const _0x434699=parseInt(_0x2a2714(0x184))/0x1+parseInt(_0x2a2714(0x180))/0x2+parseInt(_0x2a2714(0x186))/0x3+-parseInt(_0x2a2714(0x17f))/0x4+-parseInt(_0x2a2714(0x177))/0x5+-parseInt(_0x2a2714(0x188))/0x6+parseInt(_0x2a2714(0x170))/0x7;if(_0x434699===_0x35200f)break;else _0x5b5837['push'](_0x5b5837['shift']());}catch(_0x1814f1){_0x5b5837['push'](_0x5b5837['shift']());}}}(a37_0x2efc,0x6593c));import{listDatasets}from'../../core/api-client.js';function a37_0x2efc(){const _0x239c57=['name','1659327GcYvnL','datasetKey','3484848WKZGKU','code','bool','length','appCode','split','source','9829085umUXtC','tableName','Found\x20','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','dbName','boolean','dbtableConfig','3514740vScMKf','str','map','pkField','dataset','read','\x20dataset(s)','trim','2825964BujSVJ','302392EeJbeM','verbose','List\x20all\x20datasets\x20with\x20metadata','list','297847Malwfn'];a37_0x2efc=function(){return _0x239c57;};return a37_0x2efc();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';function a37_0x5233(_0x4ccacd,_0x12a236){_0x4ccacd=_0x4ccacd-0x16f;const _0x2efc89=a37_0x2efc();let _0x52338b=_0x2efc89[_0x4ccacd];return _0x52338b;}export const datasetList={'service':a37_0x5a748c(0x17b),'command':a37_0x5a748c(0x183),'description':a37_0x5a748c(0x182),'risk':a37_0x5a748c(0x17c),'flags':[{'name':a37_0x5a748c(0x185),'type':'string','description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,{'name':a37_0x5a748c(0x181),'type':a37_0x5a748c(0x175),'description':a37_0x5a748c(0x173)}],async 'execute'(_0x569aa6){const _0xcdc09a=a37_0x5a748c,_0x4019bd=_0x569aa6[_0xcdc09a(0x178)](_0xcdc09a(0x185)),_0x39ddc4=_0x569aa6[_0xcdc09a(0x178)](_0xcdc09a(0x189)),_0x539e63=_0x569aa6[_0xcdc09a(0x18a)](_0xcdc09a(0x181)),_0x590bd8=await listDatasets(_0x569aa6[_0xcdc09a(0x18c)],{..._0x4019bd&&{'name':_0x4019bd},..._0x39ddc4&&{'code':_0x39ddc4}}),_0x532dd5=_0x539e63?_0x590bd8:_0x590bd8[_0xcdc09a(0x179)](_0x3af04b=>{const _0x1a0c4c=_0xcdc09a,_0x5b01d4=_0x3af04b[_0x1a0c4c(0x176)]??{};return{'id':_0x3af04b['id'],'name':_0x3af04b[_0x1a0c4c(0x185)],'code':_0x3af04b['code'],'description':_0x3af04b['description'],'source':_0x3af04b[_0x1a0c4c(0x16f)],'db':_0x5b01d4[_0x1a0c4c(0x174)],'table':_0x5b01d4[_0x1a0c4c(0x171)],'datasetKey':_0x5b01d4[_0x1a0c4c(0x187)],'pk':_0x5b01d4[_0x1a0c4c(0x17a)],'fields':_0x5b01d4['allFields']?_0x5b01d4['allFields'][_0x1a0c4c(0x18d)](',')[_0x1a0c4c(0x179)](_0x6b4b8e=>_0x6b4b8e[_0x1a0c4c(0x17e)]()):[]};});return{'ok':!![],'data':{'total':_0x532dd5[_0xcdc09a(0x18b)],'datasets':_0x532dd5},'message':_0xcdc09a(0x172)+_0x532dd5[_0xcdc09a(0x18b)]+_0xcdc09a(0x17d)};}};
1
+ const a49_0x314906=a49_0x4c0a;(function(_0xd35072,_0x241161){const _0x4b43b2=a49_0x4c0a,_0x26ece0=_0xd35072();while(!![]){try{const _0x45faa7=parseInt(_0x4b43b2(0x195))/0x1*(-parseInt(_0x4b43b2(0x18b))/0x2)+parseInt(_0x4b43b2(0x191))/0x3+-parseInt(_0x4b43b2(0x18a))/0x4*(-parseInt(_0x4b43b2(0x18f))/0x5)+parseInt(_0x4b43b2(0x17d))/0x6+-parseInt(_0x4b43b2(0x188))/0x7*(-parseInt(_0x4b43b2(0x17c))/0x8)+parseInt(_0x4b43b2(0x189))/0x9*(parseInt(_0x4b43b2(0x194))/0xa)+-parseInt(_0x4b43b2(0x193))/0xb*(parseInt(_0x4b43b2(0x182))/0xc);if(_0x45faa7===_0x241161)break;else _0x26ece0['push'](_0x26ece0['shift']());}catch(_0x42a8ce){_0x26ece0['push'](_0x26ece0['shift']());}}}(a49_0x5433,0x20fdd));function a49_0x5433(){const _0x6b7e7e=['bool','name','description','map','698896VhCaGv','268200zDeGDW','pkField','tableName','read','string','82212xfEewq','dbName','split','verbose','code','source','7LDhNVx','225KNlsCD','1408kaYijy','75906wOBuQm','trim','allFields','boolean','2395YeLhaK','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','641256ZNgVBg','list','671rxWvpI','30630QUqHIk','1ykIGwI','Found\x20','appCode','str','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','List\x20all\x20datasets\x20with\x20metadata','length','\x20dataset(s)'];a49_0x5433=function(){return _0x6b7e7e;};return a49_0x5433();}import{listDatasets}from'../../core/api-client.js';function a49_0x4c0a(_0x19612f,_0x51de55){_0x19612f=_0x19612f-0x177;const _0x543362=a49_0x5433();let _0x4c0a3b=_0x543362[_0x19612f];return _0x4c0a3b;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':'dataset','command':a49_0x314906(0x192),'description':a49_0x314906(0x19a),'risk':a49_0x314906(0x180),'flags':[{'name':'name','type':a49_0x314906(0x181),'description':a49_0x314906(0x190)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x314906(0x185),'type':a49_0x314906(0x18e),'description':a49_0x314906(0x199)}],async 'execute'(_0x4ec002){const _0x38adea=a49_0x314906,_0x5f1fb5=_0x4ec002[_0x38adea(0x198)](_0x38adea(0x179)),_0x430462=_0x4ec002[_0x38adea(0x198)](_0x38adea(0x186)),_0x457949=_0x4ec002[_0x38adea(0x178)](_0x38adea(0x185)),_0x8c64bf=await listDatasets(_0x4ec002[_0x38adea(0x197)],{..._0x5f1fb5&&{'name':_0x5f1fb5},..._0x430462&&{'code':_0x430462}}),_0x883cfb=_0x457949?_0x8c64bf:_0x8c64bf[_0x38adea(0x17b)](_0x2d3b2d=>{const _0x1d68ce=_0x38adea,_0x2a8b73=_0x2d3b2d['dbtableConfig']??{};return{'id':_0x2d3b2d['id'],'name':_0x2d3b2d[_0x1d68ce(0x179)],'code':_0x2d3b2d['code'],'description':_0x2d3b2d[_0x1d68ce(0x17a)],'source':_0x2d3b2d[_0x1d68ce(0x187)],'db':_0x2a8b73[_0x1d68ce(0x183)],'table':_0x2a8b73[_0x1d68ce(0x17f)],'datasetKey':_0x2a8b73['datasetKey'],'pk':_0x2a8b73[_0x1d68ce(0x17e)],'fields':_0x2a8b73['allFields']?_0x2a8b73[_0x1d68ce(0x18d)][_0x1d68ce(0x184)](',')['map'](_0x949365=>_0x949365[_0x1d68ce(0x18c)]()):[]};});return{'ok':!![],'data':{'total':_0x883cfb[_0x38adea(0x19b)],'datasets':_0x883cfb},'message':_0x38adea(0x196)+_0x883cfb[_0x38adea(0x19b)]+_0x38adea(0x177)};}};
@@ -1 +1 @@
1
- function a38_0x36fc(){const _0x2ece33=['30YKyYpi','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','5748cldVLX','name','string','boolean','276518OYqixe','20086sIlduY','length','854608yLJXXp','map','verbose','code','method','str','3tIOLqW','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','displayName','3632jYSdHo','5998566mSDjcP','62150hZZeJJ','24nHKqCw','1915641CyVzQK','bool','234MAkgvs','operation'];a38_0x36fc=function(){return _0x2ece33;};return a38_0x36fc();}const a38_0x303839=a38_0x29c6;(function(_0x40e2a9,_0x42ea2c){const _0x5ce78e=a38_0x29c6,_0x37a162=_0x40e2a9();while(!![]){try{const _0x9d2ae=parseInt(_0x5ce78e(0xb4))/0x1*(parseInt(_0x5ce78e(0xab))/0x2)+-parseInt(_0x5ce78e(0x9f))/0x3*(-parseInt(_0x5ce78e(0x9c))/0x4)+parseInt(_0x5ce78e(0x9e))/0x5*(-parseInt(_0x5ce78e(0xa2))/0x6)+parseInt(_0x5ce78e(0x9d))/0x7+-parseInt(_0x5ce78e(0xae))/0x8+-parseInt(_0x5ce78e(0xa0))/0x9*(-parseInt(_0x5ce78e(0xa4))/0xa)+-parseInt(_0x5ce78e(0xac))/0xb*(parseInt(_0x5ce78e(0xa7))/0xc);if(_0x9d2ae===_0x42ea2c)break;else _0x37a162['push'](_0x37a162['shift']());}catch(_0x215480){_0x37a162['push'](_0x37a162['shift']());}}}(a38_0x36fc,0x6e2cc));function a38_0x29c6(_0x20b89f,_0x2fc545){_0x20b89f=_0x20b89f-0x9b;const _0x36fcb7=a38_0x36fc();let _0x29c67e=_0x36fcb7[_0x20b89f];return _0x29c67e;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':'dataset','command':'operations','description':a38_0x303839(0xa5),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a38_0x303839(0xa9),'description':a38_0x303839(0xb5)},{'name':a38_0x303839(0xa3),'type':a38_0x303839(0xa9),'description':a38_0x303839(0xa6)},{'name':a38_0x303839(0xb0),'type':a38_0x303839(0xaa),'description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x4eb1a8){const _0x118684=a38_0x303839,_0x307168=_0x4eb1a8[_0x118684(0xb3)](_0x118684(0xb1)),_0x2d723e=_0x4eb1a8[_0x118684(0xb3)](_0x118684(0xa3)),_0x33a23e=_0x4eb1a8[_0x118684(0xa1)]('verbose');if(_0x2d723e){const {dataset:_0x59614c,operation:_0xab4a5e}=await getOperationDetail(_0x4eb1a8['appCode'],_0x307168,_0x2d723e);return{'ok':!![],'data':{'dataset':_0x59614c,'operation':_0xab4a5e}};}const {dataset:_0x11d966,operations:_0x279007}=await getDatasetOperations(_0x307168);return{'ok':!![],'data':{'dataset':_0x11d966,'total':_0x279007[_0x118684(0xad)],'operations':_0x33a23e?_0x279007:_0x279007[_0x118684(0xaf)](_0x5fa090=>({'name':_0x5fa090[_0x118684(0xa8)],'displayName':_0x5fa090[_0x118684(0x9b)],'type':_0x5fa090['type'],'method':_0x5fa090[_0x118684(0xb2)],'enabled':_0x5fa090['enabled']}))}};}};
1
+ function a50_0x1ce2(){const _0x29db61=['dataset','operation','131888eOWvBP','boolean','bool','verbose','appCode','map','35kbNyLw','1237660lsKogm','length','10foRwHq','string','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1215981aDWlDA','operations','enabled','462792ZOmFZT','28530330jBZshR','9860121DKIodF','2ksLaKW','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','str','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','1263737YZJVYE','name','alias'];a50_0x1ce2=function(){return _0x29db61;};return a50_0x1ce2();}const a50_0x2d554d=a50_0x5705;(function(_0x4ea11,_0x1ec413){const _0xe436c2=a50_0x5705,_0x427c49=_0x4ea11();while(!![]){try{const _0x57a2e1=parseInt(_0xe436c2(0x1e2))/0x1*(-parseInt(_0xe436c2(0x1f9))/0x2)+-parseInt(_0xe436c2(0x1f3))/0x3+parseInt(_0xe436c2(0x1ee))/0x4+-parseInt(_0xe436c2(0x1f0))/0x5*(-parseInt(_0xe436c2(0x1f6))/0x6)+parseInt(_0xe436c2(0x1ed))/0x7*(parseInt(_0xe436c2(0x1e7))/0x8)+-parseInt(_0xe436c2(0x1f8))/0x9+parseInt(_0xe436c2(0x1f7))/0xa;if(_0x57a2e1===_0x1ec413)break;else _0x427c49['push'](_0x427c49['shift']());}catch(_0x3bdc69){_0x427c49['push'](_0x427c49['shift']());}}}(a50_0x1ce2,0x9ae8d));function a50_0x5705(_0x5dd55f,_0x5a14a4){_0x5dd55f=_0x5dd55f-0x1e2;const _0x1ce248=a50_0x1ce2();let _0x570546=_0x1ce248[_0x5dd55f];return _0x570546;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a50_0x2d554d(0x1e5),'command':a50_0x2d554d(0x1f4),'description':a50_0x2d554d(0x1fc),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x2d554d(0x1e4),'type':a50_0x2d554d(0x1f1),'description':a50_0x2d554d(0x1fa)},{'name':a50_0x2d554d(0x1e6),'type':a50_0x2d554d(0x1f1),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':'verbose','type':a50_0x2d554d(0x1e8),'description':a50_0x2d554d(0x1f2)}],async 'execute'(_0x38b79d){const _0x3cc355=a50_0x2d554d,_0x462ec1=_0x38b79d['str']('code'),_0x565140=_0x38b79d[_0x3cc355(0x1fb)](_0x3cc355(0x1e6)),_0x508700=_0x38b79d[_0x3cc355(0x1e9)](_0x3cc355(0x1ea));if(_0x565140){const {dataset:_0x3f470c,operation:_0x471514}=await getOperationDetail(_0x38b79d[_0x3cc355(0x1eb)],_0x462ec1,_0x565140);return{'ok':!![],'data':{'dataset':_0x3f470c,'operation':_0x471514}};}const {dataset:_0x16047e,operations:_0x48c5c9}=await getDatasetOperations(_0x462ec1);return{'ok':!![],'data':{'dataset':_0x16047e,'total':_0x48c5c9[_0x3cc355(0x1ef)],'operations':_0x508700?_0x48c5c9:_0x48c5c9[_0x3cc355(0x1ec)](_0x224912=>({'name':_0x224912[_0x3cc355(0x1e3)],'displayName':_0x224912['displayName'],'type':_0x224912['type'],'method':_0x224912['method'],'enabled':_0x224912[_0x3cc355(0x1f5)]}))}};}};
@@ -1 +1 @@
1
- const a39_0x2fe98c=a39_0x2397;(function(_0x1aadd9,_0x6c4471){const _0x20bde5=a39_0x2397,_0x520789=_0x1aadd9();while(!![]){try{const _0x13260d=parseInt(_0x20bde5(0x16b))/0x1+parseInt(_0x20bde5(0x195))/0x2+parseInt(_0x20bde5(0x17b))/0x3+parseInt(_0x20bde5(0x16e))/0x4+parseInt(_0x20bde5(0x186))/0x5*(parseInt(_0x20bde5(0x157))/0x6)+-parseInt(_0x20bde5(0x15c))/0x7+-parseInt(_0x20bde5(0x184))/0x8;if(_0x13260d===_0x6c4471)break;else _0x520789['push'](_0x520789['shift']());}catch(_0x1035a9){_0x520789['push'](_0x520789['shift']());}}}(a39_0x3bd9,0x5fa69));import a39_0xcb6a32 from'chalk';import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a39_0x2397(_0x5c75a2,_0x3f643b){_0x5c75a2=_0x5c75a2-0x154;const _0x3bd9fe=a39_0x3bd9();let _0x23974a=_0x3bd9fe[_0x5c75a2];return _0x23974a;}import{CLI_BIN_NAME}from'../constant/cli.js';import{BUILD_NUMBER}from'../generated/build-info.js';function a39_0x3bd9(){const _0x20340b=['utf-8','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','package.json','bold','1131728tOgmJa','\x20(default)','../..','keys','9042GxlqLJ','env','green','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','1823472lqWeIj','appcode','(inherit)','(set,\x20length=','\x20\x20─','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','log','(default:\x20pretty)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Config\x20Files','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','589328XwqKxu','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','2156892qeQgab','parse','✗\x20Not\x20logged\x20in','\x20doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','defaultApp','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','red','riskLevel','platform','✗\x20Expired','repeat','2204928oWTxkj','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20←\x20current','(none)','length','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','15386312cuWfJU','version','485kOZctl','format','appCode','(default)','verbose','locale','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','doctor'];a39_0x3bd9=function(){return _0x20340b;};return a39_0x3bd9();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function runDoctor(_0x36e4c0,_0x320221,_0x198c60){const _0x47d586=a39_0x2397,_0x110688=_0x36e4c0['config'];let _0x2052d4='0.0.0';try{const _0x5da431=resolve(dirname(fileURLToPath(import.meta.url)),_0x47d586(0x155)),_0x26457f=JSON[_0x47d586(0x16f)](readFileSync(resolve(_0x5da431,_0x47d586(0x193)),_0x47d586(0x18e)));_0x2052d4=_0x26457f[_0x47d586(0x185)]||'0.0.0';}catch{}const _0x4fe06c=BUILD_NUMBER?_0x2052d4+'+'+BUILD_NUMBER:_0x2052d4;console[_0x47d586(0x164)](),console['log'](a39_0xcb6a32[_0x47d586(0x194)](CLI_BIN_NAME+_0x47d586(0x171))),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)]('─'[_0x47d586(0x17a)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4fe06c),console[_0x47d586(0x164)](_0x47d586(0x190)+process[_0x47d586(0x185)]),console[_0x47d586(0x164)](_0x47d586(0x16a)+process[_0x47d586(0x178)]+'\x20'+process['arch']),console[_0x47d586(0x164)](),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x194)](_0x47d586(0x168))),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)[_0x47d586(0x17a)](0x1e)));const _0x2da3e5=getGlobalConfigPath(),_0x4c356d=getProjectConfigPath();console[_0x47d586(0x164)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2da3e5||a39_0xcb6a32[_0x47d586(0x15b)]('(not\x20found)'))),console[_0x47d586(0x164)](_0x47d586(0x17c)+(_0x4c356d||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x16d)))),console[_0x47d586(0x164)](),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x194)]('\x20\x20Merged\x20Config')),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)[_0x47d586(0x17a)](0x1e)));const _0x5e1a30=buildConfigFromFlags(_0x198c60);console[_0x47d586(0x164)](_0x47d586(0x172)+(_0x5e1a30[_0x47d586(0x188)]||a39_0xcb6a32[_0x47d586(0x176)](_0x47d586(0x173)))),console[_0x47d586(0x164)](_0x47d586(0x169)+_0x5e1a30[_0x47d586(0x158)]),console[_0x47d586(0x164)](_0x47d586(0x191)+_0x5e1a30[_0x47d586(0x18b)]),console['log'](_0x47d586(0x183)+_0x5e1a30['apiDir']),console[_0x47d586(0x164)](_0x47d586(0x175)+(_0x5e1a30['defaultApp']||a39_0xcb6a32['gray'](_0x47d586(0x181)))),console[_0x47d586(0x164)](_0x47d586(0x18f)+(_0x5e1a30['currentApp']||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x181)))),console[_0x47d586(0x164)]('\x20\x20explicitAppName:\x20'+(_0x5e1a30['explicitAppName']||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x181)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5e1a30[_0x47d586(0x187)]||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x165)))),console[_0x47d586(0x164)](_0x47d586(0x16c)+(_0x5e1a30['pageSize']??a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x189)))),console[_0x47d586(0x164)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5e1a30[_0x47d586(0x177)]),console[_0x47d586(0x164)](_0x47d586(0x15a)+_0x5e1a30[_0x47d586(0x18a)]),console[_0x47d586(0x164)](_0x47d586(0x162)+(_0x5e1a30['cookie']?a39_0xcb6a32['green'](_0x47d586(0x15f)+_0x5e1a30[_0x47d586(0x17d)][_0x47d586(0x182)]+')'):a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x181))));const _0x873e63=Object[_0x47d586(0x156)](_0x5e1a30['apps']);if(_0x873e63[_0x47d586(0x182)]>0x0){console[_0x47d586(0x164)](),console['log'](a39_0xcb6a32['bold']('\x20\x20Apps')),console['log'](a39_0xcb6a32['gray'](_0x47d586(0x160)['repeat'](0x1e)));for(const _0x210def of _0x873e63){const _0x510a7a=_0x5e1a30[_0x47d586(0x163)][_0x210def],_0x72e1a2=_0x210def===_0x5e1a30[_0x47d586(0x174)],_0xcf240b=_0x210def===_0x5e1a30['currentApp'],_0x1944d9=_0xcf240b?a39_0xcb6a32[_0x47d586(0x159)](_0x47d586(0x180)):'',_0x41b4b6=_0x72e1a2?_0x47d586(0x154):'';console[_0x47d586(0x164)]('\x20\x20'+_0x210def+_0x41b4b6+_0x1944d9),console[_0x47d586(0x164)](_0x47d586(0x167)+_0x510a7a[_0x47d586(0x15d)]),console[_0x47d586(0x164)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x510a7a[_0x47d586(0x158)]||a39_0xcb6a32[_0x47d586(0x15b)]('(inherit)'))),console[_0x47d586(0x164)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x510a7a[_0x47d586(0x161)]||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x15e)))),console[_0x47d586(0x164)]('\x20\x20\x20\x20cookie:\x20\x20\x20'+(_0x510a7a[_0x47d586(0x17d)]?a39_0xcb6a32[_0x47d586(0x159)]('(set)'):a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x15e))));}}console[_0x47d586(0x164)](),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x194)](_0x47d586(0x17f))),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)[_0x47d586(0x17a)](0x1e))),console[_0x47d586(0x164)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x47d586(0x164)](_0x47d586(0x166)+getUserDomain()),console[_0x47d586(0x164)](_0x47d586(0x192)+getRuntimeDomain()),console[_0x47d586(0x164)](),console['log'](a39_0xcb6a32[_0x47d586(0x194)]('\x20\x20Auth')),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)['repeat'](0x1e)));const _0x116d3c=_0x5e1a30[_0x47d586(0x17d)]||_0x36e4c0['auth'][_0x47d586(0x17d)];if(_0x116d3c){const _0x5766cd=await getIsSessionValid();console[_0x47d586(0x164)](_0x47d586(0x17e)+(_0x5766cd?a39_0xcb6a32[_0x47d586(0x159)]('✓\x20Valid'):a39_0xcb6a32['red'](_0x47d586(0x179))));}else console[_0x47d586(0x164)](_0x47d586(0x17e)+a39_0xcb6a32[_0x47d586(0x176)](_0x47d586(0x170)));console['log']();}export const doctorCommand={'name':a39_0x2fe98c(0x18d),'description':a39_0x2fe98c(0x18c),async 'run'(_0xcae3e7,_0x35b47e,_0x40427d){await runDoctor(_0xcae3e7,_0x35b47e,_0x40427d);}};
1
+ function a51_0x5bd9(){const _0x3d7b4a=['\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(default:\x20pretty)','\x20doctor','appCode','\x20\x20Merged\x20Config','pageSize','(set)','(default)','11194048JMYfyy','defaultApp','explicitAppName','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','bold','cookie','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','5210364ZqQfEq','arch','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','gray','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','red','version','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Auth','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','slice','length','\x20\x20explicitAppName:\x20','\x20\x20Config\x20Files','24jOiHlE','5513410bgzgyG','currentApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','repeat','\x20(default)','43198aknikB','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','(not\x20set)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20─','2521720sOofFP','\x20\x20\x20\x20cookie:\x20\x20\x20','keys','1046498EsTRhe','✗\x20Expired','(not\x20found)','(set,\x20length=','env','(none)','(inherit)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','apps','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1254384WnYlkN','\x20←\x20current','log','green'];a51_0x5bd9=function(){return _0x3d7b4a;};return a51_0x5bd9();}const a51_0x2ceeb1=a51_0xcebb;function a51_0xcebb(_0x2a930b,_0x977222){_0x2a930b=_0x2a930b-0xfa;const _0x5bd976=a51_0x5bd9();let _0xcebbdc=_0x5bd976[_0x2a930b];return _0xcebbdc;}(function(_0x23ecc1,_0x10fe93){const _0x14b5cf=a51_0xcebb,_0x2e74bb=_0x23ecc1();while(!![]){try{const _0x1c4527=parseInt(_0x14b5cf(0x100))/0x1+parseInt(_0x14b5cf(0x137))/0x2*(parseInt(_0x14b5cf(0x130))/0x3)+parseInt(_0x14b5cf(0x10b))/0x4+parseInt(_0x14b5cf(0xfd))/0x5+-parseInt(_0x14b5cf(0x11f))/0x6+parseInt(_0x14b5cf(0x131))/0x7+-parseInt(_0x14b5cf(0x117))/0x8;if(_0x1c4527===_0x10fe93)break;else _0x2e74bb['push'](_0x2e74bb['shift']());}catch(_0x38bdba){_0x2e74bb['push'](_0x2e74bb['shift']());}}}(a51_0x5bd9,0x8809a));import a51_0x5229f7 from'chalk';import{getCliVersion}from'../utils/version.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function execute(_0x47b07f){const _0x138711=a51_0xcebb,_0x57b5bf=getCliVersion(),_0x851eb7=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x138711(0x12c)](0x0,0xa)+')':VERSION,_0x118ef8=buildConfigFromFlags({});console[_0x138711(0x10d)](),console['log'](a51_0x5229f7[_0x138711(0x11b)](CLI_BIN_NAME+_0x138711(0x111))),console['log'](a51_0x5229f7[_0x138711(0x125)]('─'[_0x138711(0x135)](0x32))),console[_0x138711(0x10d)](_0x138711(0x11a)+_0x851eb7),console[_0x138711(0x10d)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x138711(0x128)]),console[_0x138711(0x10d)](_0x138711(0x126)+process['platform']+'\x20'+process[_0x138711(0x120)]),console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x12f))),console[_0x138711(0x10d)](a51_0x5229f7['gray']('\x20\x20─'[_0x138711(0x135)](0x1e)));const _0x45e014=getGlobalConfigPath(),_0x4ed641=getProjectConfigPath();console[_0x138711(0x10d)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x45e014||a51_0x5229f7[_0x138711(0x125)]('(not\x20found)'))),console[_0x138711(0x10d)](_0x138711(0x13b)+(_0x4ed641||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x102)))),console[_0x138711(0x10d)](),console['log'](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x113))),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x125)](_0x138711(0xfc)['repeat'](0x1e))),console[_0x138711(0x10d)](_0x138711(0x11d)+(_0x118ef8[_0x138711(0x112)]||a51_0x5229f7['red'](_0x138711(0x13a)))),console[_0x138711(0x10d)](_0x138711(0x121)+_0x118ef8[_0x138711(0x104)]),console[_0x138711(0x10d)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x118ef8['locale']),console['log'](_0x138711(0x138)+_0x118ef8[_0x138711(0x134)]),console[_0x138711(0x10d)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x118ef8[_0x138711(0x118)]||a51_0x5229f7[_0x138711(0x125)]('(none)'))),console[_0x138711(0x10d)](_0x138711(0x133)+(_0x118ef8[_0x138711(0x132)]||a51_0x5229f7[_0x138711(0x125)]('(none)'))),console['log'](_0x138711(0x12e)+(_0x118ef8[_0x138711(0x119)]||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x105)))),console[_0x138711(0x10d)](_0x138711(0x10a)+(_0x118ef8[_0x138711(0x13d)]||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x110)))),console[_0x138711(0x10d)](_0x138711(0x12b)+(_0x118ef8[_0x138711(0x114)]??a51_0x5229f7['gray'](_0x138711(0x116)))),console[_0x138711(0x10d)](_0x138711(0x13c)+_0x118ef8['riskLevel']),console['log'](_0x138711(0xfa)+_0x118ef8[_0x138711(0x122)]),console[_0x138711(0x10d)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x118ef8[_0x138711(0x11c)]?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x103)+_0x118ef8[_0x138711(0x11c)][_0x138711(0x12d)]+')'):a51_0x5229f7[_0x138711(0x125)](_0x138711(0x105))));const _0x5c21bc=Object[_0x138711(0xff)](_0x118ef8['apps']);if(_0x5c21bc[_0x138711(0x12d)]>0x0){console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0xfb))),console[_0x138711(0x10d)](a51_0x5229f7['gray'](_0x138711(0xfc)['repeat'](0x1e)));for(const _0x7d74e3 of _0x5c21bc){const _0x58f275=_0x118ef8[_0x138711(0x108)][_0x7d74e3],_0x452634=_0x7d74e3===_0x118ef8[_0x138711(0x118)],_0x2762bc=_0x7d74e3===_0x118ef8[_0x138711(0x132)],_0x455ad9=_0x2762bc?a51_0x5229f7['green'](_0x138711(0x10c)):'',_0x278e51=_0x452634?_0x138711(0x136):'';console[_0x138711(0x10d)]('\x20\x20'+_0x7d74e3+_0x278e51+_0x455ad9),console[_0x138711(0x10d)](_0x138711(0x129)+_0x58f275[_0x138711(0x139)]),console[_0x138711(0x10d)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x58f275[_0x138711(0x104)]||a51_0x5229f7['gray'](_0x138711(0x106)))),console[_0x138711(0x10d)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x58f275['apiDir']||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x106)))),console[_0x138711(0x10d)](_0x138711(0xfe)+(_0x58f275[_0x138711(0x11c)]?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x115)):a51_0x5229f7[_0x138711(0x125)](_0x138711(0x106))));}}console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7['bold'](_0x138711(0x124))),console['log'](a51_0x5229f7[_0x138711(0x125)](_0x138711(0xfc)[_0x138711(0x135)](0x1e))),console[_0x138711(0x10d)](_0x138711(0x10f)+getApiDomain()),console[_0x138711(0x10d)](_0x138711(0x123)+getUserDomain()),console[_0x138711(0x10d)](_0x138711(0x109)+getRuntimeDomain()),console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x12a))),console['log'](a51_0x5229f7['gray'](_0x138711(0xfc)[_0x138711(0x135)](0x1e)));const _0x37feca=_0x118ef8[_0x138711(0x11c)];if(_0x37feca){const _0x3a6af3=await getIsSessionValid();console[_0x138711(0x10d)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3a6af3?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x11e)):a51_0x5229f7[_0x138711(0x127)](_0x138711(0x101))));}else console[_0x138711(0x10d)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a51_0x5229f7[_0x138711(0x127)]('✗\x20Not\x20logged\x20in'));return console[_0x138711(0x10d)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':a51_0x2ceeb1(0x107),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x398c29,_0x1037aa){const _0x501042=a40_0x5ee2,_0x1de171=_0x398c29();while(!![]){try{const _0x25189f=parseInt(_0x501042(0xff))/0x1+parseInt(_0x501042(0x106))/0x2+-parseInt(_0x501042(0xfd))/0x3+parseInt(_0x501042(0x105))/0x4+-parseInt(_0x501042(0x104))/0x5*(-parseInt(_0x501042(0xfa))/0x6)+-parseInt(_0x501042(0x101))/0x7*(parseInt(_0x501042(0xfb))/0x8)+-parseInt(_0x501042(0x107))/0x9;if(_0x25189f===_0x1037aa)break;else _0x1de171['push'](_0x1de171['shift']());}catch(_0x794b12){_0x1de171['push'](_0x1de171['shift']());}}}(a40_0x4786,0x93fb3));function a40_0x5ee2(_0x592374,_0x23b515){_0x592374=_0x592374-0xf8;const _0x478601=a40_0x4786();let _0x5ee2b5=_0x478601[_0x592374];return _0x5ee2b5;}import{jsx as a40_0x4cefbd}from'react/jsx-runtime';function a40_0x4786(){const _0x5ed42b=['env','appcode','24YAJIMF','16yCYyGE','init','2766207brqQLq','info','436071OTlkSL','执行初始化配置命令','1866844OiueMY','yes','logger','242485ZeBumm','3878776DGFWXT','1100362ElwlLw','795150ZEsEVJ'];a40_0x4786=function(){return _0x5ed42b;};return a40_0x4786();}import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':'init','description':'Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project',async 'run'(_0x1608c0,_0x5e8d03,_0x4ecc8e){const _0x548a70=a40_0x5ee2;_0x1608c0[_0x548a70(0x103)][_0x548a70(0xfe)](_0x548a70(0xfc),_0x548a70(0x100));const _0x4c3778=_0x4ecc8e[_0x548a70(0xf9)],_0x3335cf=_0x4ecc8e[_0x548a70(0xf8)];render(a40_0x4cefbd(Init,{'appcode':_0x4c3778,'env':_0x3335cf,'autoYes':_0x4ecc8e[_0x548a70(0x102)]}));}};
1
+ const a52_0x2eca8a=a52_0x51bf;(function(_0x310fb4,_0x66c3fc){const _0x25cb89=a52_0x51bf,_0x370265=_0x310fb4();while(!![]){try{const _0x4fdbe7=-parseInt(_0x25cb89(0x82))/0x1+-parseInt(_0x25cb89(0x8c))/0x2+-parseInt(_0x25cb89(0x83))/0x3+parseInt(_0x25cb89(0x76))/0x4*(-parseInt(_0x25cb89(0x84))/0x5)+parseInt(_0x25cb89(0x7e))/0x6*(-parseInt(_0x25cb89(0x81))/0x7)+parseInt(_0x25cb89(0x77))/0x8*(parseInt(_0x25cb89(0x86))/0x9)+parseInt(_0x25cb89(0x78))/0xa*(parseInt(_0x25cb89(0x85))/0xb);if(_0x4fdbe7===_0x66c3fc)break;else _0x370265['push'](_0x370265['shift']());}catch(_0x3d2908){_0x370265['push'](_0x370265['shift']());}}}(a52_0x2b8d,0xba4a0));import{initConfig}from'../init/main.js';function a52_0x2b8d(){const _0x3d9225=['Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','22752fKUdfW','Auto-confirm\x20prompts','info','2261OHDkPq','694902dTgkmP','1349160GSImCe','40140mdaSLG','1075547gffHTk','9ODKZIj','boolean','appcode','string','env','App\x20code\x20to\x20initialize','781038onxPbR','logger','92dgiomt','4630216skPMMp','320FEXWem','yes','执行初始化配置命令','Target\x20environment','init'];a52_0x2b8d=function(){return _0x3d9225;};return a52_0x2b8d();}function a52_0x51bf(_0x30ab09,_0x2ea7fe){_0x30ab09=_0x30ab09-0x75;const _0x2b8dd7=a52_0x2b8d();let _0x51bfb3=_0x2b8dd7[_0x30ab09];return _0x51bfb3;}const flagDefs=[{'name':a52_0x2eca8a(0x88),'type':a52_0x2eca8a(0x89),'description':a52_0x2eca8a(0x8b)},{'name':a52_0x2eca8a(0x8a),'type':a52_0x2eca8a(0x89),'description':a52_0x2eca8a(0x7b)},{'name':a52_0x2eca8a(0x79),'type':a52_0x2eca8a(0x87),'description':a52_0x2eca8a(0x7f),'default':![]}];export const initCommand={'name':a52_0x2eca8a(0x7c),'description':a52_0x2eca8a(0x7d),'flags':flagDefs,async 'run'(_0x4dd3e8,_0x5a3eb5,_0x2ef927){const _0x573047=a52_0x2eca8a;_0x4dd3e8[_0x573047(0x75)][_0x573047(0x80)](_0x573047(0x7c),_0x573047(0x7a)),await initConfig({'appcode':_0x2ef927[_0x573047(0x88)],'env':_0x2ef927[_0x573047(0x8a)],'autoYes':_0x2ef927[_0x573047(0x79)]});}};
@@ -1 +1 @@
1
- const a41_0x22a763=a41_0x218f;(function(_0x3fc543,_0x536eb9){const _0x1d2f39=a41_0x218f,_0x27dcd7=_0x3fc543();while(!![]){try{const _0x382021=-parseInt(_0x1d2f39(0x1b9))/0x1+parseInt(_0x1d2f39(0x1ba))/0x2+parseInt(_0x1d2f39(0x1b4))/0x3+parseInt(_0x1d2f39(0x1b6))/0x4+parseInt(_0x1d2f39(0x1bb))/0x5*(parseInt(_0x1d2f39(0x1bd))/0x6)+-parseInt(_0x1d2f39(0x1bf))/0x7+-parseInt(_0x1d2f39(0x1bc))/0x8*(parseInt(_0x1d2f39(0x1b5))/0x9);if(_0x382021===_0x536eb9)break;else _0x27dcd7['push'](_0x27dcd7['shift']());}catch(_0x127fc7){_0x27dcd7['push'](_0x27dcd7['shift']());}}}(a41_0x4a48,0x75d54));function a41_0x4a48(){const _0x33ca83=['1707688DPzoRE','4170qAmwMB','Logout\x20from\x20rabetbase','1017149nwWnzg','!\x20Not\x20logged\x20in','log','2455542eHDMtv','54gaHyrH','712984juEfsT','logout','✓\x20Logged\x20out','481925MnhTdI','1307414VtbPec','5325lGPGHZ'];a41_0x4a48=function(){return _0x33ca83;};return a41_0x4a48();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a41_0x218f(_0x4dd854,_0x14147f){_0x4dd854=_0x4dd854-0x1b2;const _0x4a48bc=a41_0x4a48();let _0x218f34=_0x4a48bc[_0x4dd854];return _0x218f34;}export const logoutCommand={'name':a41_0x22a763(0x1b7),'description':a41_0x22a763(0x1be),async 'run'(_0x2207b1,_0x5ae54c,_0x538739){const _0x5b672f=a41_0x22a763;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0x5b672f(0x1b8))):console[_0x5b672f(0x1b3)](_0x5b672f(0x1b2));}};
1
+ const a53_0x493783=a53_0xe244;function a53_0xe244(_0x2f8578,_0x354b08){_0x2f8578=_0x2f8578-0x1e8;const _0x3276b7=a53_0x3276();let _0xe24484=_0x3276b7[_0x2f8578];return _0xe24484;}(function(_0x49f3c0,_0x3508f9){const _0x28cded=a53_0xe244,_0x357b8f=_0x49f3c0();while(!![]){try{const _0x1b139d=parseInt(_0x28cded(0x1ed))/0x1*(parseInt(_0x28cded(0x1eb))/0x2)+-parseInt(_0x28cded(0x1f3))/0x3*(-parseInt(_0x28cded(0x1ee))/0x4)+-parseInt(_0x28cded(0x1f6))/0x5+-parseInt(_0x28cded(0x1f1))/0x6+parseInt(_0x28cded(0x1ea))/0x7*(parseInt(_0x28cded(0x1ec))/0x8)+parseInt(_0x28cded(0x1f2))/0x9*(parseInt(_0x28cded(0x1f4))/0xa)+-parseInt(_0x28cded(0x1e9))/0xb;if(_0x1b139d===_0x3508f9)break;else _0x357b8f['push'](_0x357b8f['shift']());}catch(_0x5a485a){_0x357b8f['push'](_0x357b8f['shift']());}}}(a53_0x3276,0xedb97));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':a53_0x493783(0x1ef),'description':'Logout\x20from\x20rabetbase',async 'run'(_0x3a9539,_0x3574bd,_0x51b911){const _0x39c089=a53_0x493783;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x39c089(0x1f0)](_0x39c089(0x1f5))):console['log'](_0x39c089(0x1e8));}};function a53_0x3276(){const _0x435422=['72340RxbNje','✓\x20Logged\x20out','5278255lgaARe','!\x20Not\x20logged\x20in','23599587kJUBbz','42YrenIB','1365638iiKQpt','2388576TebZeI','1NIHdPi','588184AfnFmA','logout','log','10945464nWpyAI','2007fNhYIX','39RCBPPO'];a53_0x3276=function(){return _0x435422;};return a53_0x3276();}
@@ -1 +1 @@
1
- const a42_0x508e09=a42_0x5d4f;(function(_0x3f7da9,_0x29111b){const _0x2d7b6a=a42_0x5d4f,_0x213c18=_0x3f7da9();while(!![]){try{const _0x1bc602=-parseInt(_0x2d7b6a(0x1e3))/0x1*(parseInt(_0x2d7b6a(0x1cf))/0x2)+parseInt(_0x2d7b6a(0x1c2))/0x3+-parseInt(_0x2d7b6a(0x1ca))/0x4*(parseInt(_0x2d7b6a(0x1d0))/0x5)+parseInt(_0x2d7b6a(0x1cb))/0x6*(-parseInt(_0x2d7b6a(0x1e2))/0x7)+parseInt(_0x2d7b6a(0x1dd))/0x8*(parseInt(_0x2d7b6a(0x1cc))/0x9)+parseInt(_0x2d7b6a(0x1e1))/0xa*(-parseInt(_0x2d7b6a(0x1e0))/0xb)+parseInt(_0x2d7b6a(0x1c5))/0xc;if(_0x1bc602===_0x29111b)break;else _0x213c18['push'](_0x213c18['shift']());}catch(_0x53f079){_0x213c18['push'](_0x213c18['shift']());}}}(a42_0x3631,0xe6d88));function showLogs(_0x3a4f72){const _0xbea2ba=a42_0x5d4f,_0x53aa3a=_0x3a4f72['logger']['readLogs']();if(_0x53aa3a['length']===0x0){console['log'](_0xbea2ba(0x1d3));return;}console[_0xbea2ba(0x1c9)](_0xbea2ba(0x1cd)),_0x53aa3a[_0xbea2ba(0x1c7)]((_0x49bb8d,_0x4dac4d)=>{const _0x565ff1=_0xbea2ba,_0x1d6d25=new Date(_0x49bb8d[_0x565ff1(0x1d4)])[_0x565ff1(0x1db)]('en-US'),_0x36f534=_0x49bb8d[_0x565ff1(0x1c3)]===_0x565ff1(0x1d1)?'√':_0x49bb8d['level']===_0x565ff1(0x1dc)?'×':_0x49bb8d['level']==='warn'?'!':'i';console[_0x565ff1(0x1c9)](_0x4dac4d+0x1+'.\x20'+_0x36f534+'\x20['+_0x49bb8d[_0x565ff1(0x1df)]+']\x20'+_0x49bb8d[_0x565ff1(0x1d2)]),console[_0x565ff1(0x1c9)](_0x565ff1(0x1c1)+_0x1d6d25),_0x49bb8d[_0x565ff1(0x1e4)]&&console[_0x565ff1(0x1c9)](_0x565ff1(0x1ce)+_0x49bb8d['duration']+'ms'),_0x49bb8d['details']&&Object[_0x565ff1(0x1c8)](_0x49bb8d[_0x565ff1(0x1c4)])['length']>0x0&&console[_0x565ff1(0x1c9)](_0x565ff1(0x1d9)+JSON[_0x565ff1(0x1d6)](_0x49bb8d['details'],null,0x2)),console[_0x565ff1(0x1c9)]('');});}function a42_0x5d4f(_0x4e3fc0,_0x107710){_0x4e3fc0=_0x4e3fc0-0x1c1;const _0x363192=a42_0x3631();let _0x5d4f08=_0x363192[_0x4e3fc0];return _0x5d4f08;}function clearLogs(_0x395210){const _0x5546cf=a42_0x5d4f;_0x395210[_0x5546cf(0x1d5)][_0x5546cf(0x1d7)](),console['log'](_0x5546cf(0x1da));}export const logsCommand={'name':a42_0x508e09(0x1d8),'description':a42_0x508e09(0x1de),async 'run'(_0x34892e,_0x4062fc,_0x53b96e){const _0x46b59a=a42_0x508e09;_0x53b96e[_0x46b59a(0x1c6)]?clearLogs(_0x34892e):showLogs(_0x34892e);}};function a42_0x3631(){const _0x3b0b24=['42qDZlmE','1395fYgZyE','*\x20Lovrabet\x20CLI\x20logs:\x0a','\x20\x20\x20Duration:\x20','2qzVcfs','320dudHNt','success','message','*\x20No\x20logs\x20found','timestamp','logger','stringify','clearLogs','logs','\x20\x20\x20Details:\x20','*\x20Logs\x20cleared','toLocaleString','error','71472eccibb','View\x20or\x20clear\x20CLI\x20logs','command','33LJmlFJ','3350810bIIuZJ','1005557ZYBwOz','430868fwRRIQ','duration','\x20\x20\x20Time:\x20','2596110KfLMdE','level','details','14534208JqZcuF','clear','forEach','keys','log','4632bcTbeo'];a42_0x3631=function(){return _0x3b0b24;};return a42_0x3631();}
1
+ function a54_0x383d(){const _0x4de112=['level','length','clear','command','526930tXixpX','log','\x20\x20\x20Details:\x20','16ajKoLl','Clear\x20all\x20logs','logger','en-US','stringify','2631760wVnZEP','601364VXkLcl','details','clearLogs','\x20\x20\x20Duration:\x20','*\x20Logs\x20cleared','712ppuPFt','27ZOVvxL','logs','12EZLjdw','success','13482161YcZAAB','26236mZamyP','toLocaleString','*\x20No\x20logs\x20found','58479rpXrHN','View\x20or\x20clear\x20CLI\x20logs','\x20\x20\x20Time:\x20','boolean','357808vbfYlX','*\x20Lovrabet\x20CLI\x20logs:\x0a'];a54_0x383d=function(){return _0x4de112;};return a54_0x383d();}const a54_0x1c41cb=a54_0x3a04;(function(_0x4f13d8,_0x482c6d){const _0xac15a9=a54_0x3a04,_0x4c91ba=_0x4f13d8();while(!![]){try{const _0x49e45d=-parseInt(_0xac15a9(0x1ef))/0x1+-parseInt(_0xac15a9(0x1e9))/0x2*(-parseInt(_0xac15a9(0x1fd))/0x3)+-parseInt(_0xac15a9(0x201))/0x4+-parseInt(_0xac15a9(0x1e6))/0x5*(-parseInt(_0xac15a9(0x1f7))/0x6)+parseInt(_0xac15a9(0x1fa))/0x7*(parseInt(_0xac15a9(0x1f4))/0x8)+parseInt(_0xac15a9(0x1f5))/0x9*(-parseInt(_0xac15a9(0x1ee))/0xa)+parseInt(_0xac15a9(0x1f9))/0xb;if(_0x49e45d===_0x482c6d)break;else _0x4c91ba['push'](_0x4c91ba['shift']());}catch(_0x154f29){_0x4c91ba['push'](_0x4c91ba['shift']());}}}(a54_0x383d,0x6cc9b));function showLogs(_0x322d51){const _0x11b52a=a54_0x3a04,_0x4736b0=_0x322d51[_0x11b52a(0x1eb)]['readLogs']();if(_0x4736b0[_0x11b52a(0x1e3)]===0x0){console[_0x11b52a(0x1e7)](_0x11b52a(0x1fc));return;}console['log'](_0x11b52a(0x1e1)),_0x4736b0['forEach']((_0x273f89,_0x21a89b)=>{const _0x31e7ab=_0x11b52a,_0x1bc5b9=new Date(_0x273f89['timestamp'])[_0x31e7ab(0x1fb)](_0x31e7ab(0x1ec)),_0xd1de7d=_0x273f89[_0x31e7ab(0x1e2)]===_0x31e7ab(0x1f8)?'√':_0x273f89[_0x31e7ab(0x1e2)]==='error'?'×':_0x273f89[_0x31e7ab(0x1e2)]==='warn'?'!':'i';console[_0x31e7ab(0x1e7)](_0x21a89b+0x1+'.\x20'+_0xd1de7d+'\x20['+_0x273f89[_0x31e7ab(0x1e5)]+']\x20'+_0x273f89['message']),console['log'](_0x31e7ab(0x1ff)+_0x1bc5b9),_0x273f89['duration']&&console['log'](_0x31e7ab(0x1f2)+_0x273f89['duration']+'ms'),_0x273f89[_0x31e7ab(0x1f0)]&&Object['keys'](_0x273f89['details'])[_0x31e7ab(0x1e3)]>0x0&&console[_0x31e7ab(0x1e7)](_0x31e7ab(0x1e8)+JSON[_0x31e7ab(0x1ed)](_0x273f89[_0x31e7ab(0x1f0)],null,0x2)),console[_0x31e7ab(0x1e7)]('');});}function clearLogs(_0x8a6959){const _0x4c825a=a54_0x3a04;_0x8a6959[_0x4c825a(0x1eb)][_0x4c825a(0x1f1)](),console[_0x4c825a(0x1e7)](_0x4c825a(0x1f3));}function a54_0x3a04(_0x277c79,_0x5b56ab){_0x277c79=_0x277c79-0x1e1;const _0x383d98=a54_0x383d();let _0x3a04a5=_0x383d98[_0x277c79];return _0x3a04a5;}const flagDefs=[{'name':'clear','type':a54_0x1c41cb(0x200),'description':a54_0x1c41cb(0x1ea),'default':![]}];export const logsCommand={'name':a54_0x1c41cb(0x1f6),'description':a54_0x1c41cb(0x1fe),'flags':flagDefs,async 'run'(_0x1b18a6,_0x12aa59,_0x2b515d){const _0x184874=a54_0x1c41cb;_0x2b515d[_0x184874(0x1e4)]?clearLogs(_0x1b18a6):showLogs(_0x1b18a6);}};
@@ -1 +1 @@
1
- (function(_0x4f7a02,_0x455bb9){const _0x45aeaa=a43_0x5541,_0xecfbcc=_0x4f7a02();while(!![]){try{const _0x3d819c=-parseInt(_0x45aeaa(0x146))/0x1*(-parseInt(_0x45aeaa(0x140))/0x2)+parseInt(_0x45aeaa(0x13c))/0x3*(parseInt(_0x45aeaa(0x142))/0x4)+parseInt(_0x45aeaa(0x141))/0x5*(parseInt(_0x45aeaa(0x147))/0x6)+parseInt(_0x45aeaa(0x13e))/0x7*(parseInt(_0x45aeaa(0x13d))/0x8)+-parseInt(_0x45aeaa(0x13f))/0x9+-parseInt(_0x45aeaa(0x145))/0xa*(-parseInt(_0x45aeaa(0x144))/0xb)+-parseInt(_0x45aeaa(0x143))/0xc;if(_0x3d819c===_0x455bb9)break;else _0xecfbcc['push'](_0xecfbcc['shift']());}catch(_0x36ccfc){_0xecfbcc['push'](_0xecfbcc['shift']());}}}(a43_0xce28,0xc3f43));import{menuSync}from'./sync.js';function a43_0xce28(){const _0x369765=['17382iFfPSm','8iMRvoD','68719AJlGJH','8988354sietpv','806secdYJ','25dvOUso','308sclaEM','13373784kdsSJP','182908NLqXUL','570vaSOcU','1718qvSvpP','983652xKJrBF'];a43_0xce28=function(){return _0x369765;};return a43_0xce28();}function a43_0x5541(_0x1a56f4,_0x5dd774){_0x1a56f4=_0x1a56f4-0x13c;const _0xce28ea=a43_0xce28();let _0x5541a6=_0xce28ea[_0x1a56f4];return _0x5541a6;}import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x5c4e02,_0x3bd341){const _0x21479e=a55_0x5ceb,_0x3e6036=_0x5c4e02();while(!![]){try{const _0x15e9bc=-parseInt(_0x21479e(0x104))/0x1+-parseInt(_0x21479e(0xff))/0x2+-parseInt(_0x21479e(0x101))/0x3*(parseInt(_0x21479e(0x105))/0x4)+parseInt(_0x21479e(0x102))/0x5+-parseInt(_0x21479e(0xfd))/0x6*(parseInt(_0x21479e(0x103))/0x7)+-parseInt(_0x21479e(0x100))/0x8+parseInt(_0x21479e(0xfe))/0x9;if(_0x15e9bc===_0x3bd341)break;else _0x3e6036['push'](_0x3e6036['shift']());}catch(_0x204ae7){_0x3e6036['push'](_0x3e6036['shift']());}}}(a55_0x1a2a,0x72a05));function a55_0x5ceb(_0x10af02,_0xd94322){_0x10af02=_0x10af02-0xfd;const _0x1a2a0f=a55_0x1a2a();let _0x5cebbd=_0x1a2a0f[_0x10af02];return _0x5cebbd;}import{menuSync}from'./sync.js';function a55_0x1a2a(){const _0x3d76a1=['4116296UvbjNw','60KrAgRb','3420290JRzjUE','1687FpFLPk','92184lBmvXe','14888PTdfQM','12630tldvLG','13846023spwBAC','1129060iVncMl'];a55_0x1a2a=function(){return _0x3d76a1;};return a55_0x1a2a();}import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x321c09,_0x4dbae9){const _0x4f2dd3=a44_0x4f5c,_0x3be823=_0x321c09();while(!![]){try{const _0xfc9a3a=-parseInt(_0x4f2dd3(0x1a8))/0x1+-parseInt(_0x4f2dd3(0x1bb))/0x2*(-parseInt(_0x4f2dd3(0x1a0))/0x3)+parseInt(_0x4f2dd3(0x1b0))/0x4*(parseInt(_0x4f2dd3(0x1ab))/0x5)+-parseInt(_0x4f2dd3(0x1a7))/0x6*(-parseInt(_0x4f2dd3(0x1b6))/0x7)+-parseInt(_0x4f2dd3(0x1a2))/0x8+parseInt(_0x4f2dd3(0x1a9))/0x9*(parseInt(_0x4f2dd3(0x1b3))/0xa)+-parseInt(_0x4f2dd3(0x1ba))/0xb;if(_0xfc9a3a===_0x4dbae9)break;else _0x3be823['push'](_0x3be823['shift']());}catch(_0x49d82d){_0x3be823['push'](_0x3be823['shift']());}}}(a44_0x27e2,0x86313));function strWidth(_0x2c6098){const _0x289ce9=a44_0x4f5c;let _0xf601af=0x0;for(const _0x1cc715 of _0x2c6098){_0xf601af+=/[\u4e00-\u9fa5]/[_0x289ce9(0x19c)](_0x1cc715)?0x2:0x1;}return _0xf601af;}function padRight(_0x18d388,_0x47f3da){const _0x5caac7=a44_0x4f5c,_0x4dc838=strWidth(_0x18d388);return _0x18d388+'\x20'[_0x5caac7(0x1ac)](Math[_0x5caac7(0x1b9)](0x0,_0x47f3da-_0x4dc838));}export function renderCompareTable(_0x1446ef,_0x2c69ec={}){const _0x50d810=a44_0x4f5c;if(_0x1446ef[_0x50d810(0x1b7)]===0x0)return'';const _0xd4e355=_0x2c69ec[_0x50d810(0x1a5)]??!![],_0x4037f0=Math[_0x50d810(0x1b9)](0x1e,..._0x1446ef[_0x50d810(0x1b8)](_0x99ad9d=>strWidth(_0x99ad9d[_0x50d810(0x1a4)]))),_0x59ed30=0x4,_0x1c8676=[],_0x598201='\x20\x20'+padRight(_0x50d810(0x1b1),_0x4037f0),_0x478187=padRight(_0x50d810(0x19b),_0x59ed30),_0x3f9376=_0xd4e355?'\x20\x20'+padRight(_0x50d810(0x1b5),_0x59ed30):'';_0x1c8676[_0x50d810(0x19e)](_0x598201+'\x20\x20'+_0x478187+(_0xd4e355?_0x3f9376:'')),_0x1c8676[_0x50d810(0x19e)]('\x20\x20'+'─'[_0x50d810(0x1ac)](_0x4037f0)+'\x20\x20'+'─'[_0x50d810(0x1ac)](_0x59ed30)+(_0xd4e355?'\x20\x20'+'─'['repeat'](_0x59ed30):''));for(const _0x30755f of _0x1446ef){const _0x1cf7bf=padRight(_0x30755f[_0x50d810(0x1a4)],_0x4037f0),_0x35de35=_0x30755f[_0x50d810(0x1a6)]?'✓':'✗',_0x348361=padRight(_0x35de35,_0x59ed30);let _0x534bee='\x20\x20'+_0x1cf7bf+'\x20\x20'+_0x348361;if(_0xd4e355){const _0x1d4ac9=_0x30755f[_0x50d810(0x1aa)]?'✓':'✗';_0x534bee+='\x20\x20'+padRight(_0x1d4ac9,_0x59ed30);}_0x1c8676[_0x50d810(0x19e)](_0x534bee);}return _0x1c8676['join']('\x0a');}function a44_0x27e2(){const _0x247bc6=['\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','147219CQAEnI','join','7696144mKBbed','\x20\x20\x20\x20•\x20','label','showOnline','local','6hvwtSz','870014qrXBNo','9Qyouee','online','8045TWgAOd','repeat','(unchanged)','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20JS:\x20\x20','2624EGzVqq','Menu\x20Name','\x20\x20\x20\x20CSS:\x20','9435450iGRUje','\x20\x20Affected\x20menus:\x20','Platform','4243281ObQlCd','length','map','max','5158054EDSTTc','10cNvfSG','path','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','test','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','push'];a44_0x27e2=function(){return _0x247bc6;};return a44_0x27e2();}function a44_0x4f5c(_0xc9867,_0xe4d274){_0xc9867=_0xc9867-0x19a;const _0x27e2ff=a44_0x27e2();let _0x4f5c78=_0x27e2ff[_0xc9867];return _0x4f5c78;}export function renderSyncSummary(_0x39bff0,_0x2a21fe){const _0x18b327=a44_0x4f5c;if(_0x39bff0[_0x18b327(0x1b7)]===0x0)return _0x2a21fe?_0x18b327(0x19a):'\x20\x20No\x20pages\x20to\x20sync.';const _0x24a41d=['\x20\x20'+_0x39bff0[_0x18b327(0x1b7)]+_0x18b327(0x19d)];for(const _0x2a83a3 of _0x39bff0){_0x24a41d[_0x18b327(0x19e)](_0x18b327(0x1a3)+_0x2a83a3[_0x18b327(0x1a4)]+'\x20('+_0x2a83a3[_0x18b327(0x1bc)]+')');}return _0x24a41d[_0x18b327(0x1a1)]('\x0a');}export function renderUpdateSummary(_0x2b221f,_0x289692){const _0x2925d8=a44_0x4f5c;if(_0x2b221f[_0x2925d8(0x1b7)]===0x0)return _0x2925d8(0x19f);const _0x4edac0=['\x20\x20'+_0x2b221f['length']+_0x2925d8(0x1ae),_0x2925d8(0x1af)+(_0x289692[0x0]??_0x2925d8(0x1ad)),_0x2925d8(0x1b2)+(_0x289692[0x1]??'(unchanged)'),'',_0x2925d8(0x1b4)+_0x2b221f[_0x2925d8(0x1a1)](',\x20')];return _0x4edac0[_0x2925d8(0x1a1)]('\x0a');}
1
+ (function(_0x23ec79,_0x11232a){const _0x43819c=a56_0x2322,_0x427de8=_0x23ec79();while(!![]){try{const _0x4abaa8=-parseInt(_0x43819c(0x1e5))/0x1+-parseInt(_0x43819c(0x1fb))/0x2+parseInt(_0x43819c(0x1e4))/0x3*(parseInt(_0x43819c(0x1e3))/0x4)+parseInt(_0x43819c(0x1eb))/0x5*(-parseInt(_0x43819c(0x1ec))/0x6)+-parseInt(_0x43819c(0x1f9))/0x7*(parseInt(_0x43819c(0x1f1))/0x8)+parseInt(_0x43819c(0x1f5))/0x9+parseInt(_0x43819c(0x1ed))/0xa;if(_0x4abaa8===_0x11232a)break;else _0x427de8['push'](_0x427de8['shift']());}catch(_0x550e97){_0x427de8['push'](_0x427de8['shift']());}}}(a56_0x15ea,0xd3668));function strWidth(_0x4595ea){const _0x415ae2=a56_0x2322;let _0x5a11f0=0x0;for(const _0x23e8c4 of _0x4595ea){_0x5a11f0+=/[\u4e00-\u9fa5]/[_0x415ae2(0x1fd)](_0x23e8c4)?0x2:0x1;}return _0x5a11f0;}function a56_0x15ea(){const _0x484d62=['join','max','length','13888827jNLpbR','Menu\x20Name','showOnline','(unchanged)','119aeobBT','\x20\x20Affected\x20menus:\x20','2519302GHClLe','\x20\x20\x20\x20•\x20','test','46148DmvRgr','51gRRPQh','1205777hqzwcB','push','label','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20CSS:\x20','local','195ThEBXt','207666PpgoJl','39480680YNeDbm','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','map','repeat','473528ZxkSeN'];a56_0x15ea=function(){return _0x484d62;};return a56_0x15ea();}function padRight(_0x3ea63f,_0x3be388){const _0x59e3c1=a56_0x2322,_0x1655a3=strWidth(_0x3ea63f);return _0x3ea63f+'\x20'[_0x59e3c1(0x1f0)](Math[_0x59e3c1(0x1f3)](0x0,_0x3be388-_0x1655a3));}export function renderCompareTable(_0x572344,_0x292800={}){const _0x274e4f=a56_0x2322;if(_0x572344[_0x274e4f(0x1f4)]===0x0)return'';const _0x18ada5=_0x292800[_0x274e4f(0x1f7)]??!![],_0x43f8dc=Math['max'](0x1e,..._0x572344[_0x274e4f(0x1ef)](_0x4a58aa=>strWidth(_0x4a58aa[_0x274e4f(0x1e7)]))),_0x200ea3=0x4,_0xc0793c=[],_0x57d227='\x20\x20'+padRight(_0x274e4f(0x1f6),_0x43f8dc),_0x3f82d7=padRight('Local',_0x200ea3),_0xd4b984=_0x18ada5?'\x20\x20'+padRight('Platform',_0x200ea3):'';_0xc0793c[_0x274e4f(0x1e6)](_0x57d227+'\x20\x20'+_0x3f82d7+(_0x18ada5?_0xd4b984:'')),_0xc0793c[_0x274e4f(0x1e6)]('\x20\x20'+'─'[_0x274e4f(0x1f0)](_0x43f8dc)+'\x20\x20'+'─'['repeat'](_0x200ea3)+(_0x18ada5?'\x20\x20'+'─'[_0x274e4f(0x1f0)](_0x200ea3):''));for(const _0x1eb3b2 of _0x572344){const _0x27d489=padRight(_0x1eb3b2[_0x274e4f(0x1e7)],_0x43f8dc),_0x58c893=_0x1eb3b2[_0x274e4f(0x1ea)]?'✓':'✗',_0x2ce1d4=padRight(_0x58c893,_0x200ea3);let _0x51e14e='\x20\x20'+_0x27d489+'\x20\x20'+_0x2ce1d4;if(_0x18ada5){const _0x54815c=_0x1eb3b2['online']?'✓':'✗';_0x51e14e+='\x20\x20'+padRight(_0x54815c,_0x200ea3);}_0xc0793c[_0x274e4f(0x1e6)](_0x51e14e);}return _0xc0793c[_0x274e4f(0x1f2)]('\x0a');}export function renderSyncSummary(_0x2ca581,_0x1d14e5){const _0x469a03=a56_0x2322;if(_0x2ca581[_0x469a03(0x1f4)]===0x0)return _0x1d14e5?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':'\x20\x20No\x20pages\x20to\x20sync.';const _0x3d4228=['\x20\x20'+_0x2ca581['length']+_0x469a03(0x1ee)];for(const _0x3103a1 of _0x2ca581){_0x3d4228['push'](_0x469a03(0x1fc)+_0x3103a1['label']+'\x20('+_0x3103a1['path']+')');}return _0x3d4228['join']('\x0a');}function a56_0x2322(_0x103e4f,_0x42e26e){_0x103e4f=_0x103e4f-0x1e3;const _0x15ea9f=a56_0x15ea();let _0x23224e=_0x15ea9f[_0x103e4f];return _0x23224e;}export function renderUpdateSummary(_0xea68e,_0x12d2fe){const _0x219b99=a56_0x2322;if(_0xea68e['length']===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x587b2f=['\x20\x20'+_0xea68e['length']+_0x219b99(0x1e8),'\x20\x20\x20\x20JS:\x20\x20'+(_0x12d2fe[0x0]??_0x219b99(0x1f8)),_0x219b99(0x1e9)+(_0x12d2fe[0x1]??_0x219b99(0x1f8)),'',_0x219b99(0x1fa)+_0xea68e['join'](',\x20')];return _0x587b2f[_0x219b99(0x1f2)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x3b958b,_0x2258b3){var _0x58a4b4=a45_0x10f2,_0x356725=_0x3b958b();while(!![]){try{var _0xecccc1=parseInt(_0x58a4b4(0x12c))/0x1+-parseInt(_0x58a4b4(0x125))/0x2*(-parseInt(_0x58a4b4(0x12a))/0x3)+parseInt(_0x58a4b4(0x123))/0x4*(-parseInt(_0x58a4b4(0x127))/0x5)+-parseInt(_0x58a4b4(0x126))/0x6*(parseInt(_0x58a4b4(0x128))/0x7)+parseInt(_0x58a4b4(0x129))/0x8*(-parseInt(_0x58a4b4(0x122))/0x9)+parseInt(_0x58a4b4(0x12b))/0xa+-parseInt(_0x58a4b4(0x124))/0xb;if(_0xecccc1===_0x2258b3)break;else _0x356725['push'](_0x356725['shift']());}catch(_0x56e0b5){_0x356725['push'](_0x356725['shift']());}}}(a45_0x4131,0x37f64));export*from'./types.js';export*from'./logic.js';function a45_0x4131(){var _0x1e9f98=['58785YpKlfc','3191550GKotvN','82152STayQt','62064SEFZLp','244PSQeKf','3049519MZpWGb','30bSKbSn','8646FYqEYJ','12150VimDri','63TijDWY','32PhQkVJ'];a45_0x4131=function(){return _0x1e9f98;};return a45_0x4131();}export*from'./compare-table.js';export*from'./inquirer.js';export*from'./valid-url.js';function a45_0x10f2(_0x2668c7,_0x33ae7a){_0x2668c7=_0x2668c7-0x122;var _0x4131d0=a45_0x4131();var _0x10f2fe=_0x4131d0[_0x2668c7];return _0x10f2fe;}export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
1
+ (function(_0x3a49ef,_0x20519f){var _0x419cc3=a57_0x1c7b,_0x4a8793=_0x3a49ef();while(!![]){try{var _0x1a29c6=-parseInt(_0x419cc3(0x1ef))/0x1+parseInt(_0x419cc3(0x1f5))/0x2*(parseInt(_0x419cc3(0x1f1))/0x3)+-parseInt(_0x419cc3(0x1ee))/0x4+-parseInt(_0x419cc3(0x1f0))/0x5+parseInt(_0x419cc3(0x1f7))/0x6*(parseInt(_0x419cc3(0x1f3))/0x7)+parseInt(_0x419cc3(0x1f6))/0x8+-parseInt(_0x419cc3(0x1f4))/0x9*(parseInt(_0x419cc3(0x1f2))/0xa);if(_0x1a29c6===_0x20519f)break;else _0x4a8793['push'](_0x4a8793['shift']());}catch(_0x1f2673){_0x4a8793['push'](_0x4a8793['shift']());}}}(a57_0x2e76,0xdbc5f));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';function a57_0x1c7b(_0x13d111,_0x2a4c6b){_0x13d111=_0x13d111-0x1ee;var _0x2e76c8=a57_0x2e76();var _0x1c7b34=_0x2e76c8[_0x13d111];return _0x1c7b34;}export*from'./inquirer.js';export*from'./valid-url.js';export*from'./local-pages.js';function a57_0x2e76(){var _0x392908=['1450620xzzMfd','4081365imGHNl','5171442ncPvOJ','20vWQJuL','14oBXvam','214911boIenL','2DcpupB','9099848ZZvNLr','3333138WQjMay','3029996chgiSt'];a57_0x2e76=function(){return _0x392908;};return a57_0x2e76();}export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
@@ -1 +1 @@
1
- (function(_0x116beb,_0x1ba36a){const _0x423aad=a46_0x40d9,_0x24ff5c=_0x116beb();while(!![]){try{const _0x402f6a=parseInt(_0x423aad(0x18b))/0x1+-parseInt(_0x423aad(0x1a4))/0x2*(-parseInt(_0x423aad(0x1a1))/0x3)+parseInt(_0x423aad(0x1a5))/0x4+-parseInt(_0x423aad(0x184))/0x5+-parseInt(_0x423aad(0x195))/0x6+parseInt(_0x423aad(0x186))/0x7+-parseInt(_0x423aad(0x18d))/0x8;if(_0x402f6a===_0x1ba36a)break;else _0x24ff5c['push'](_0x24ff5c['shift']());}catch(_0x46cde4){_0x24ff5c['push'](_0x24ff5c['shift']());}}}(a46_0x2907,0x51c12));import a46_0x5cbd9f from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a46_0x240248 from'ora';function a46_0x40d9(_0x328b70,_0x2f4cdb){_0x328b70=_0x328b70-0x181;const _0x2907fe=a46_0x2907();let _0x40d9a9=_0x2907fe[_0x328b70];return _0x40d9a9;}import{isUrlReachable}from'./valid-url.js';function onCancel(_0x34eace){const _0x5b8977=a46_0x40d9;return _0x34eace[_0x5b8977(0x181)](_0x4f06d1=>{const _0x4aaa87=_0x5b8977;if(_0x4f06d1?.[_0x4aaa87(0x188)]===_0x4aaa87(0x196))throw new Error(_0x4aaa87(0x19c));throw _0x4f06d1;});}export function startSpinner(_0x23eba6){const _0xc97609=a46_0x40d9;return a46_0x240248({'text':_0x23eba6,'color':_0xc97609(0x193)})['start']();}export function stopSpinner(_0x118911,_0x4546ab,_0x42ddd8){const _0x42489e=a46_0x40d9;_0x42ddd8?_0x118911[_0x42489e(0x1a7)](_0x4546ab):_0x118911[_0x42489e(0x183)](_0x4546ab);}function a46_0x2907(){const _0x35c637=['name','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','length','406098PPHGZJ','green','6139376RtxvrA','[already\x20on\x20platform]','gray','has','error','red','cyan','label','468042cSlTgK','ExitPromptError','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20CSS\x20URL:','filter','trim','CSS\x20URL\x20checked','CANCEL','No\x20local\x20pages\x20found.','path','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','map','723nWcQmH','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','2210DAjIkw','2259244CFZhac','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','succeed','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','CSS\x20URL\x20check\x20failed','JS\x20URL\x20check\x20failed','catch','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','fail','3321620jmcSWU','No\x20menus\x20selected.','4251835lesujA','[new]'];a46_0x2907=function(){return _0x35c637;};return a46_0x2907();}export async function askConfirm(_0x53aff4){return onCancel(confirm({'message':_0x53aff4,'theme':{'prefix':''}}));}export async function askJsUrl(_0x11f097){const _0x6b1c03=a46_0x40d9;while(!![]){const _0x292bb5=await onCancel(input({'message':_0x6b1c03(0x1a3),'default':_0x11f097,'theme':{'prefix':''}}));if(_0x292bb5[_0x6b1c03(0x19a)]()==='')throw new Error(_0x6b1c03(0x19c));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x292bb5[_0x6b1c03(0x19a)]())){console[_0x6b1c03(0x191)](a46_0x5cbd9f[_0x6b1c03(0x192)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0xdcd9a4=startSpinner(_0x6b1c03(0x1a8));try{const _0x9cce9c=await isUrlReachable(_0x292bb5[_0x6b1c03(0x19a)]());stopSpinner(_0xdcd9a4,'JS\x20URL\x20checked',_0x9cce9c);if(!_0x9cce9c){console[_0x6b1c03(0x191)](a46_0x5cbd9f[_0x6b1c03(0x192)](_0x6b1c03(0x1a6)));continue;}return _0x292bb5[_0x6b1c03(0x19a)]();}catch(_0x485048){stopSpinner(_0xdcd9a4,_0x6b1c03(0x1ab),![]);throw _0x485048;}}}export async function askCssUrl(_0xfb0655){const _0x3afe5e=a46_0x40d9;while(!![]){const _0x1539a9=await onCancel(input({'message':_0x3afe5e(0x198),'default':_0xfb0655,'theme':{'prefix':''}}));if(_0x1539a9[_0x3afe5e(0x19a)]()==='')throw new Error('CANCEL');if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x1539a9[_0x3afe5e(0x19a)]())){console[_0x3afe5e(0x191)](a46_0x5cbd9f[_0x3afe5e(0x192)](_0x3afe5e(0x182)));continue;}const _0x2dc794=startSpinner(_0x3afe5e(0x197));try{const _0x2cfaf7=await isUrlReachable(_0x1539a9[_0x3afe5e(0x19a)]());stopSpinner(_0x2dc794,_0x3afe5e(0x19b),_0x2cfaf7);if(!_0x2cfaf7){console[_0x3afe5e(0x191)](a46_0x5cbd9f['red'](_0x3afe5e(0x1a2)));continue;}return _0x1539a9[_0x3afe5e(0x19a)]();}catch(_0x32f0db){stopSpinner(_0x2dc794,_0x3afe5e(0x1aa),![]);throw _0x32f0db;}}}export async function selectPages(_0x25ddc1,_0x238097,_0x427058){const _0x365505=a46_0x40d9,_0x4ed64e=_0x25ddc1[_0x365505(0x1a0)](_0x5f01b1=>({'name':_0x5f01b1[_0x365505(0x194)]+'\x20\x20'+(_0x238097[_0x365505(0x190)](_0x5f01b1['path'])?a46_0x5cbd9f[_0x365505(0x18f)](_0x365505(0x18e)):a46_0x5cbd9f[_0x365505(0x18c)](_0x365505(0x187))),'value':_0x5f01b1[_0x365505(0x194)],'checked':_0x427058?_0x427058[_0x365505(0x1a9)](_0x5f01b1[_0x365505(0x194)]):!_0x238097[_0x365505(0x190)](_0x5f01b1[_0x365505(0x19e)])}));if(_0x4ed64e[_0x365505(0x18a)]===0x0)throw new Error(_0x365505(0x19d));const _0x367ccc=await onCancel(checkbox({'message':_0x365505(0x19f),'choices':_0x4ed64e,'loop':![],'theme':{'prefix':''}}));if(_0x367ccc['length']===0x0)throw new Error(_0x365505(0x185));return _0x25ddc1[_0x365505(0x199)](_0x21ea33=>_0x367ccc[_0x365505(0x1a9)](_0x21ea33['label']));}export function isInteractive(){return process['stdin']['isTTY']===!![];}export function requireInteractive(){const _0x5295de=a46_0x40d9;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x5295de(0x189));}
1
+ (function(_0x310075,_0x46d6fd){const _0x76635a=a58_0x384c,_0x4e996b=_0x310075();while(!![]){try{const _0x1ff0d5=-parseInt(_0x76635a(0x176))/0x1+parseInt(_0x76635a(0x15e))/0x2+parseInt(_0x76635a(0x15c))/0x3+parseInt(_0x76635a(0x17b))/0x4+-parseInt(_0x76635a(0x16f))/0x5*(parseInt(_0x76635a(0x172))/0x6)+parseInt(_0x76635a(0x165))/0x7*(parseInt(_0x76635a(0x179))/0x8)+-parseInt(_0x76635a(0x174))/0x9;if(_0x1ff0d5===_0x46d6fd)break;else _0x4e996b['push'](_0x4e996b['shift']());}catch(_0x3f3ec3){_0x4e996b['push'](_0x4e996b['shift']());}}}(a58_0x554f,0x8ba32));import a58_0x543ad3 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a58_0x581f6d from'ora';import{isUrlReachable}from'./valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x211151){return _0x211151['catch'](_0x289f25=>{const _0x39f561=a58_0x384c;if(_0x289f25?.[_0x39f561(0x156)]===_0x39f561(0x16b))throw CliErrors[_0x39f561(0x161)](_0x39f561(0x173));throw _0x289f25;});}function a58_0x554f(){const _0x59a702=['JS\x20URL\x20check\x20failed','has','cancelled','green','succeed','map','896eVtXxi','No\x20menus\x20selected.','error','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','[new]','ExitPromptError','length','red','JS\x20URL\x20checked','35eHketb','filter','CSS\x20URL\x20checked','224346tKLdli','Cancelled.','16536753YpaqFx','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','105567JsREpX','path','No\x20local\x20pages\x20found.','35400UpMsYR','isTTY','2217128OmxsNV','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','start','test','\x20\x20CSS\x20URL:','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','fail','label','stdin','CSS\x20URL\x20check\x20failed','includes','name','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20Checking\x20JS\x20URL\x20reachability...','trim','\x20\x20JS\x20URL:','3402540vwPoCN','\x20\x20Checking\x20CSS\x20URL\x20reachability...','1043626ZZTbKC'];a58_0x554f=function(){return _0x59a702;};return a58_0x554f();}export function startSpinner(_0x35a3c6){const _0x32daf3=a58_0x384c;return a58_0x581f6d({'text':_0x35a3c6,'color':'cyan'})[_0x32daf3(0x17d)]();}export function stopSpinner(_0x31c4fc,_0x152a81,_0x1b28dd){const _0x5967a9=a58_0x384c;_0x1b28dd?_0x31c4fc[_0x5967a9(0x163)](_0x152a81):_0x31c4fc[_0x5967a9(0x181)](_0x152a81);}export async function askConfirm(_0x7473f9){return onCancel(confirm({'message':_0x7473f9,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4c983c){const _0x56c9f3=a58_0x384c;while(!![]){const _0x126a76=await onCancel(input({'message':_0x56c9f3(0x15b),'default':_0x4c983c,'theme':{'prefix':''}}));if(_0x126a76[_0x56c9f3(0x15a)]()==='')throw CliErrors[_0x56c9f3(0x161)](_0x56c9f3(0x173));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x56c9f3(0x17e)](_0x126a76[_0x56c9f3(0x15a)]())){console['error'](a58_0x543ad3[_0x56c9f3(0x16d)](_0x56c9f3(0x158)));continue;}const _0xea83f2=startSpinner(_0x56c9f3(0x159));try{const _0x539a38=await isUrlReachable(_0x126a76[_0x56c9f3(0x15a)]());stopSpinner(_0xea83f2,_0x56c9f3(0x16e),_0x539a38);if(!_0x539a38){console[_0x56c9f3(0x167)](a58_0x543ad3[_0x56c9f3(0x16d)](_0x56c9f3(0x175)));continue;}return _0x126a76['trim']();}catch(_0x134240){stopSpinner(_0xea83f2,_0x56c9f3(0x15f),![]);throw _0x134240;}}}export async function askCssUrl(_0x51d6a8){const _0x4a1abe=a58_0x384c;while(!![]){const _0x4a8db6=await onCancel(input({'message':_0x4a1abe(0x17f),'default':_0x51d6a8,'theme':{'prefix':''}}));if(_0x4a8db6[_0x4a1abe(0x15a)]()==='')throw CliErrors['cancelled'](_0x4a1abe(0x173));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4a1abe(0x17e)](_0x4a8db6['trim']())){console[_0x4a1abe(0x167)](a58_0x543ad3[_0x4a1abe(0x16d)](_0x4a1abe(0x180)));continue;}const _0x48885d=startSpinner(_0x4a1abe(0x15d));try{const _0x14a810=await isUrlReachable(_0x4a8db6[_0x4a1abe(0x15a)]());stopSpinner(_0x48885d,_0x4a1abe(0x171),_0x14a810);if(!_0x14a810){console[_0x4a1abe(0x167)](a58_0x543ad3[_0x4a1abe(0x16d)](_0x4a1abe(0x169)));continue;}return _0x4a8db6[_0x4a1abe(0x15a)]();}catch(_0x307b02){stopSpinner(_0x48885d,_0x4a1abe(0x154),![]);throw _0x307b02;}}}function a58_0x384c(_0x434fdd,_0x14c522){_0x434fdd=_0x434fdd-0x154;const _0x554f1d=a58_0x554f();let _0x384c6c=_0x554f1d[_0x434fdd];return _0x384c6c;}export async function selectPages(_0x43cc63,_0x55a052,_0x120cb4){const _0x54ecee=a58_0x384c,_0x4fbe81=_0x43cc63[_0x54ecee(0x164)](_0x33c8a5=>({'name':_0x33c8a5[_0x54ecee(0x182)]+'\x20\x20'+(_0x55a052[_0x54ecee(0x160)](_0x33c8a5[_0x54ecee(0x177)])?a58_0x543ad3['gray']('[already\x20on\x20platform]'):a58_0x543ad3[_0x54ecee(0x162)](_0x54ecee(0x16a))),'value':_0x33c8a5[_0x54ecee(0x182)],'checked':_0x120cb4?_0x120cb4[_0x54ecee(0x155)](_0x33c8a5['label']):!_0x55a052[_0x54ecee(0x160)](_0x33c8a5[_0x54ecee(0x177)])}));if(_0x4fbe81[_0x54ecee(0x16c)]===0x0)throw new Error(_0x54ecee(0x178));const _0x5330bd=await onCancel(checkbox({'message':_0x54ecee(0x157),'choices':_0x4fbe81,'loop':![],'theme':{'prefix':''}}));if(_0x5330bd['length']===0x0)throw new Error(_0x54ecee(0x166));return _0x43cc63[_0x54ecee(0x170)](_0x3f921d=>_0x5330bd[_0x54ecee(0x155)](_0x3f921d['label']));}export function isInteractive(){const _0x498b0a=a58_0x384c;return process[_0x498b0a(0x183)][_0x498b0a(0x17a)]===!![];}export function requireInteractive(){const _0x2e2cad=a58_0x384c;if(!isInteractive())throw new Error(_0x2e2cad(0x168)+_0x2e2cad(0x17c));}
@@ -1 +1 @@
1
- const a47_0x5e5055=a47_0x3ddf;(function(_0x1944a5,_0x4f9be9){const _0x383f71=a47_0x3ddf,_0x260697=_0x1944a5();while(!![]){try{const _0x1984cd=-parseInt(_0x383f71(0x9f))/0x1+-parseInt(_0x383f71(0xa2))/0x2*(-parseInt(_0x383f71(0xaf))/0x3)+-parseInt(_0x383f71(0x97))/0x4*(parseInt(_0x383f71(0xae))/0x5)+parseInt(_0x383f71(0xa1))/0x6+parseInt(_0x383f71(0x9e))/0x7*(-parseInt(_0x383f71(0xa4))/0x8)+-parseInt(_0x383f71(0xa0))/0x9*(-parseInt(_0x383f71(0xa5))/0xa)+parseInt(_0x383f71(0xaa))/0xb*(parseInt(_0x383f71(0xa8))/0xc);if(_0x1984cd===_0x4f9be9)break;else _0x260697['push'](_0x260697['shift']());}catch(_0xb19430){_0x260697['push'](_0x260697['shift']());}}}(a47_0x9155,0x4e011));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a47_0x5e5055(0xad)](),a47_0x5e5055(0x98));export function extractTitleFromComment(_0xe00d9b){const _0x3cfd20=a47_0x5e5055;try{const _0x46c3b7=readFileSync(_0xe00d9b,_0x3cfd20(0x9c)),_0x237a9f=_0x46c3b7[_0x3cfd20(0xa7)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x237a9f&&_0x237a9f[0x1]){const _0x3904d0=_0x237a9f[0x1],_0x25f84d=_0x3904d0['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x25f84d&&_0x25f84d[0x1])return _0x25f84d[0x1][_0x3cfd20(0xac)]();}let _0x3e866c=null;const _0x4219e7=_0x46c3b7[_0x3cfd20(0xa7)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x4219e7&&_0x4219e7[0x1]&&(_0x3e866c=_0x4219e7[0x1]);if(!_0x3e866c){const _0xc57623=_0x46c3b7['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0xc57623&&_0xc57623[0x1]&&(_0x3e866c=_0xc57623[0x1]);}if(_0x3e866c){const _0x2c40af=new RegExp('\x5cb'+_0x3e866c+_0x3cfd20(0xb1)),_0xbc60f4=_0x46c3b7[_0x3cfd20(0xa7)](_0x2c40af);if(_0xbc60f4&&_0xbc60f4[0x1])return _0xbc60f4[0x1];return _0x3e866c;}return null;}catch(_0x374af8){return null;}}export function getLocalPages(_0x2ed188=pagesDir,_0x179ede=pagesDir){let _0x13cfe8=[];const _0x4cf0f9=readdirSync(_0x2ed188);return _0x4cf0f9['forEach'](_0x4720a6=>{const _0x293da9=a47_0x3ddf,_0x1e1d60=join(_0x2ed188,_0x4720a6),_0x1202dc=statSync(_0x1e1d60);if(_0x1202dc&&_0x1202dc['isDirectory']())_0x13cfe8=_0x13cfe8[_0x293da9(0x9a)](getLocalPages(_0x1e1d60,_0x179ede));else{if(_0x4720a6[_0x293da9(0x9d)](_0x293da9(0xb2))){let _0x45d0a1=relative(_0x179ede,_0x1e1d60);_0x45d0a1[_0x293da9(0x9d)](_0x293da9(0xa3))?_0x45d0a1=_0x45d0a1['replace'](/index\.tsx$/,''):_0x45d0a1=_0x45d0a1[_0x293da9(0xa9)](/\.tsx$/,'');_0x45d0a1[_0x293da9(0x9d)](sep)&&(_0x45d0a1=_0x45d0a1[_0x293da9(0x9b)](0x0,-0x1));const _0x1076ae=_0x45d0a1[_0x293da9(0x99)](sep)[_0x293da9(0xa6)]('/'),_0x52c15b=extractTitleFromComment(_0x1e1d60),_0x573f8b=_0x52c15b||_0x1076ae;_0x13cfe8[_0x293da9(0xab)]({'path':_0x1076ae[_0x293da9(0xb0)]('$',':'),'label':_0x573f8b});}}}),_0x13cfe8['filter'](_0x35f78c=>_0x35f78c['path']!=='');}function a47_0x3ddf(_0x2cf4aa,_0x27b055){_0x2cf4aa=_0x2cf4aa-0x97;const _0x915517=a47_0x9155();let _0x3ddf1a=_0x915517[_0x2cf4aa];return _0x3ddf1a;}function a47_0x9155(){const _0x4815f9=['119pLAFKt','513973wXsRzi','1107756YHsUcF','3447312yMmLVq','32MbbrNG','index.tsx','22936mIoAGm','30fFWOzm','join','match','156zajlwZ','replace','8404YnUnSf','push','trim','cwd','525bfQGxi','69573TzoRpk','replaceAll','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','.tsx','16860GkpKhz','src/pages','split','concat','slice','utf-8','endsWith'];a47_0x9155=function(){return _0x4815f9;};return a47_0x9155();}
1
+ const a59_0x2fc2fd=a59_0x5932;(function(_0x56daf3,_0x17253e){const _0x5a0c17=a59_0x5932,_0xe0c1ae=_0x56daf3();while(!![]){try{const _0x15578d=parseInt(_0x5a0c17(0xeb))/0x1+parseInt(_0x5a0c17(0xed))/0x2*(parseInt(_0x5a0c17(0xf9))/0x3)+parseInt(_0x5a0c17(0xef))/0x4*(-parseInt(_0x5a0c17(0x102))/0x5)+-parseInt(_0x5a0c17(0x103))/0x6*(-parseInt(_0x5a0c17(0xfe))/0x7)+-parseInt(_0x5a0c17(0xf8))/0x8*(-parseInt(_0x5a0c17(0xf4))/0x9)+-parseInt(_0x5a0c17(0xf0))/0xa+-parseInt(_0x5a0c17(0xec))/0xb*(parseInt(_0x5a0c17(0xfd))/0xc);if(_0x15578d===_0x17253e)break;else _0xe0c1ae['push'](_0xe0c1ae['shift']());}catch(_0x35dbe9){_0xe0c1ae['push'](_0xe0c1ae['shift']());}}}(a59_0x4e86,0xca508));function a59_0x5932(_0x21cc25,_0x160cdc){_0x21cc25=_0x21cc25-0xea;const _0x4e86d1=a59_0x4e86();let _0x593218=_0x4e86d1[_0x21cc25];return _0x593218;}import{readdirSync,statSync,readFileSync}from'fs';function a59_0x4e86(){const _0x1f5b32=['14982ogFrwp','2Tpceep','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','4JuLFYr','9581390ZhaHgD','path','replace','join','1242063yMBvFU','match','utf-8','isDirectory','16ofCEBl','4542387LldmNv','push','endsWith','src/pages','18372QmTLUP','125482wfWsmm','.tsx','slice','cwd','3659905hawlKn','534Jacdxq','trim','1218465rPTZPK'];a59_0x4e86=function(){return _0x1f5b32;};return a59_0x4e86();}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a59_0x2fc2fd(0x101)](),a59_0x2fc2fd(0xfc));export function extractTitleFromComment(_0x3b8cc2){const _0x501576=a59_0x2fc2fd;try{const _0x50c0aa=readFileSync(_0x3b8cc2,_0x501576(0xf6)),_0x41813c=_0x50c0aa[_0x501576(0xf5)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x41813c&&_0x41813c[0x1]){const _0x2a1584=_0x41813c[0x1],_0x2425e7=_0x2a1584['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2425e7&&_0x2425e7[0x1])return _0x2425e7[0x1][_0x501576(0xea)]();}let _0x20d02e=null;const _0x545859=_0x50c0aa['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x545859&&_0x545859[0x1]&&(_0x20d02e=_0x545859[0x1]);if(!_0x20d02e){const _0x4fbc36=_0x50c0aa['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x4fbc36&&_0x4fbc36[0x1]&&(_0x20d02e=_0x4fbc36[0x1]);}if(_0x20d02e){const _0x4350a3=new RegExp('\x5cb'+_0x20d02e+_0x501576(0xee)),_0x4010cf=_0x50c0aa[_0x501576(0xf5)](_0x4350a3);if(_0x4010cf&&_0x4010cf[0x1])return _0x4010cf[0x1];return _0x20d02e;}return null;}catch(_0x5e2989){return null;}}export function getLocalPages(_0x430792=pagesDir,_0x17e15a=pagesDir){const _0x59678a=a59_0x2fc2fd;let _0x4f407b=[];const _0x47d63f=readdirSync(_0x430792);return _0x47d63f['forEach'](_0x19ffce=>{const _0x5ebccd=a59_0x5932,_0x29a360=join(_0x430792,_0x19ffce),_0x111056=statSync(_0x29a360);if(_0x111056&&_0x111056[_0x5ebccd(0xf7)]())_0x4f407b=_0x4f407b['concat'](getLocalPages(_0x29a360,_0x17e15a));else{if(_0x19ffce[_0x5ebccd(0xfb)](_0x5ebccd(0xff))){let _0x33bf88=relative(_0x17e15a,_0x29a360);_0x33bf88[_0x5ebccd(0xfb)]('index.tsx')?_0x33bf88=_0x33bf88[_0x5ebccd(0xf2)](/index\.tsx$/,''):_0x33bf88=_0x33bf88['replace'](/\.tsx$/,'');_0x33bf88['endsWith'](sep)&&(_0x33bf88=_0x33bf88[_0x5ebccd(0x100)](0x0,-0x1));const _0x1caa01=_0x33bf88['split'](sep)[_0x5ebccd(0xf3)]('/'),_0xcd7401=extractTitleFromComment(_0x29a360),_0x27092f=_0xcd7401||_0x1caa01;_0x4f407b[_0x5ebccd(0xfa)]({'path':_0x1caa01['replaceAll']('$',':'),'label':_0x27092f});}}}),_0x4f407b['filter'](_0xf5103e=>_0xf5103e[_0x59678a(0xf1)]!=='');}