@lovrabet/rabetbase-cli 2.0.2-beta.8 → 2.0.4-beta.3

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 (155) 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 -0
  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/ai-setup/config.js +0 -1
  138. package/lib/commands/app.js +0 -1
  139. package/lib/commands/config.js +0 -1
  140. package/lib/commands/mcp.js +0 -1
  141. package/lib/config/config-help.js +0 -1
  142. package/lib/config/main.js +0 -1
  143. package/lib/create-app/task-finished.js +0 -1
  144. package/lib/create-app/task-loading.js +0 -1
  145. package/lib/create-app/task-running.js +0 -1
  146. package/lib/create-app/task-time.js +0 -1
  147. package/lib/mcp/McpInstallUI.js +0 -1
  148. package/lib/mcp/claude.js +0 -1
  149. package/lib/mcp/cursor.js +0 -1
  150. package/lib/mcp/main.js +0 -1
  151. package/lib/mcp/mcp-install-non-interactive.js +0 -1
  152. package/lib/mcp/mcp-installer.js +0 -1
  153. package/lib/telemetry/otel-logger-version.js +0 -1
  154. package/lib/ui/IDESelector.js +0 -1
  155. package/lib/ui/useIDESelection.js +0 -1
@@ -0,0 +1 @@
1
+ const a40_0x1f5b52=a40_0x4053;(function(_0x270bd6,_0x41679f){const _0x40b7b9=a40_0x4053,_0x384fca=_0x270bd6();while(!![]){try{const _0x461bef=-parseInt(_0x40b7b9(0xa0))/0x1+parseInt(_0x40b7b9(0x94))/0x2+parseInt(_0x40b7b9(0x99))/0x3*(parseInt(_0x40b7b9(0xa3))/0x4)+-parseInt(_0x40b7b9(0x9b))/0x5+-parseInt(_0x40b7b9(0x9c))/0x6*(parseInt(_0x40b7b9(0x92))/0x7)+parseInt(_0x40b7b9(0x90))/0x8*(parseInt(_0x40b7b9(0x9f))/0x9)+parseInt(_0x40b7b9(0x95))/0xa;if(_0x461bef===_0x41679f)break;else _0x384fca['push'](_0x384fca['shift']());}catch(_0x181a76){_0x384fca['push'](_0x384fca['shift']());}}}(a40_0x4432,0x19674));import{CliErrors}from'../../errors.js';function a40_0x4432(){const _0x4318d0=['app','2072StWWjc','string','742TWJwBw','Missing\x20key.','195146TWKYPz','1847890WugfuQ','Config\x20key\x20to\x20read','validation','Get\x20a\x20config\x20value\x20by\x20key','18099XEjPZS','str','941550HBRrLs','8220yrbBAC','appcode','Key\x20not\x20found:\x20','4410RXgeOy','92350VrGYCL','Usage:\x20','\x20config\x20get\x20--key\x20<key>','80dXQXlA','read','key'];a40_0x4432=function(){return _0x4318d0;};return a40_0x4432();}import{readConfig}from'../../utils/config.js';function a40_0x4053(_0x13f88b,_0x1fdc12){_0x13f88b=_0x13f88b-0x8d;const _0x4432cf=a40_0x4432();let _0x4053dd=_0x4432cf[_0x13f88b];return _0x4053dd;}import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x339265){const _0x57e5d4=a40_0x4053,_0x4059eb=_0x339265[_0x57e5d4(0x9a)](_0x57e5d4(0x8e));if(!_0x4059eb)throw CliErrors['validation'](_0x57e5d4(0x93),_0x57e5d4(0xa1)+CLI_BIN_NAME+_0x57e5d4(0xa2));const _0x100de6=readConfig(),_0x37af93=_0x4059eb===_0x57e5d4(0x8f)?_0x57e5d4(0x9d):_0x4059eb,_0x343cac=_0x100de6[_0x37af93];if(_0x343cac===undefined)throw CliErrors[_0x57e5d4(0x97)](_0x57e5d4(0x9e)+_0x4059eb);return{'ok':!![],'data':typeof _0x343cac==='object'?_0x343cac:{[_0x37af93]:_0x343cac},'message':typeof _0x343cac==='object'?undefined:String(_0x343cac)};}export const configGetDefinition={'service':'config','command':'get','description':a40_0x1f5b52(0x98),'risk':a40_0x1f5b52(0x8d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x1f5b52(0x8e),'type':a40_0x1f5b52(0x91),'description':a40_0x1f5b52(0x96),'required':!![]}],'execute':execute};
@@ -0,0 +1 @@
1
+ (function(_0x15f46c,_0x2095eb){const _0x305953=a41_0x2e10,_0x2e9caa=_0x15f46c();while(!![]){try{const _0x22f122=-parseInt(_0x305953(0x151))/0x1+parseInt(_0x305953(0x14f))/0x2+parseInt(_0x305953(0x155))/0x3*(-parseInt(_0x305953(0x157))/0x4)+-parseInt(_0x305953(0x158))/0x5*(parseInt(_0x305953(0x153))/0x6)+parseInt(_0x305953(0x152))/0x7+-parseInt(_0x305953(0x150))/0x8+parseInt(_0x305953(0x156))/0x9*(parseInt(_0x305953(0x154))/0xa);if(_0x22f122===_0x2095eb)break;else _0x2e9caa['push'](_0x2e9caa['shift']());}catch(_0x4eb0f0){_0x2e9caa['push'](_0x2e9caa['shift']());}}}(a41_0x22b0,0xaf7c3));import{configListDefinition}from'./list.js';import{configGetDefinition}from'./get.js';function a41_0x22b0(){const _0x235c6a=['957560eOsjTp','716475eDJgpw','5807102KAKiWL','1126362TTAoYR','10eIzfQu','3TlgiIt','1615995UlZgHJ','2331412lhSKXa','5bRIftk','2632792qTUHmI'];a41_0x22b0=function(){return _0x235c6a;};return a41_0x22b0();}import{configSetDefinition}from'./set.js';function a41_0x2e10(_0x2fec66,_0x37086e){_0x2fec66=_0x2fec66-0x14f;const _0x22b0c3=a41_0x22b0();let _0x2e10c5=_0x22b0c3[_0x2fec66];return _0x2e10c5;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -0,0 +1 @@
1
+ const a42_0x4edbed=a42_0x546f;(function(_0x1949ce,_0x48dbf8){const _0x2a2536=a42_0x546f,_0x9af5ad=_0x1949ce();while(!![]){try{const _0xe7333=-parseInt(_0x2a2536(0x83))/0x1+parseInt(_0x2a2536(0x80))/0x2*(parseInt(_0x2a2536(0x84))/0x3)+parseInt(_0x2a2536(0x73))/0x4*(-parseInt(_0x2a2536(0x7c))/0x5)+parseInt(_0x2a2536(0x74))/0x6*(-parseInt(_0x2a2536(0x7f))/0x7)+parseInt(_0x2a2536(0x81))/0x8+-parseInt(_0x2a2536(0x7b))/0x9+parseInt(_0x2a2536(0x7e))/0xa*(parseInt(_0x2a2536(0x76))/0xb);if(_0xe7333===_0x48dbf8)break;else _0x9af5ad['push'](_0x9af5ad['shift']());}catch(_0x2baeaa){_0x9af5ad['push'](_0x9af5ad['shift']());}}}(a42_0x465b,0x3eae4));import{readScopedConfig}from'./shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x125f3b){const _0x372702=a42_0x546f,_0x14c9d7=_0x125f3b[_0x372702(0x78)]('global')?readScopedConfig(_0x372702(0x77)):readConfig();return{'ok':!![],'data':_0x14c9d7};}export const configListDefinition={'service':a42_0x4edbed(0x82),'command':a42_0x4edbed(0x79),'description':a42_0x4edbed(0x7d),'risk':a42_0x4edbed(0x75),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x4edbed(0x77),'type':'boolean','description':a42_0x4edbed(0x7a),'default':![]}],'execute':execute};function a42_0x546f(_0x4e94af,_0x4912ad){_0x4e94af=_0x4e94af-0x73;const _0x465b71=a42_0x465b();let _0x546ff1=_0x465b71[_0x4e94af];return _0x546ff1;}function a42_0x465b(){const _0x171295=['4126AJBSzz','1045944FuuSnY','config','179641rUOzCP','114zEEXre','2053592fsiAlL','37104VwPdbm','read','39710vCTQBS','global','bool','list','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','274104pOVSMO','5dzEEYb','List\x20all\x20config\x20values','2530FZhQMN','161uHCJaM'];a42_0x465b=function(){return _0x171295;};return a42_0x465b();}
@@ -0,0 +1 @@
1
+ const a43_0x15cac5=a43_0x319a;function a43_0x319a(_0x21b292,_0x156d01){_0x21b292=_0x21b292-0x15b;const _0x1b5202=a43_0x1b52();let _0x319adf=_0x1b5202[_0x21b292];return _0x319adf;}function a43_0x1b52(){const _0x5d8da7=['global','Global','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Set\x20a\x20config\x20value','Missing\x20value.','152956KYqgCN','boolean','Missing\x20key.','Project','9EIncwZ','521vFsckN','18xrqQJi','2719367YkqOrK','\x20set\x20to:\x20','Invalid\x20locale\x20value.','includes','env','882CDnjVs','22XVspfZ','write','value','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','production','key','bool','3118000dJiozf','Usage:\x20','string','7953180NIylwr','2593776hCsSbg','app','online','validation','316735JXASRU','9VJDxGZ','appcode','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)'];a43_0x1b52=function(){return _0x5d8da7;};return a43_0x1b52();}(function(_0x5683f1,_0x1ce93f){const _0x330496=a43_0x319a,_0xebcbe7=_0x5683f1();while(!![]){try{const _0x3901fc=parseInt(_0x330496(0x17b))/0x1*(parseInt(_0x330496(0x15d))/0x2)+parseInt(_0x330496(0x16e))/0x3*(-parseInt(_0x330496(0x176))/0x4)+-parseInt(_0x330496(0x16d))/0x5*(-parseInt(_0x330496(0x17c))/0x6)+parseInt(_0x330496(0x17d))/0x7+-parseInt(_0x330496(0x169))/0x8*(parseInt(_0x330496(0x17a))/0x9)+-parseInt(_0x330496(0x165))/0xa*(-parseInt(_0x330496(0x15e))/0xb)+-parseInt(_0x330496(0x168))/0xc;if(_0x3901fc===_0x1ce93f)break;else _0xebcbe7['push'](_0xebcbe7['shift']());}catch(_0x5a5f68){_0xebcbe7['push'](_0xebcbe7['shift']());}}}(a43_0x1b52,0x509c3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x1ff897){const _0x1df7d0=a43_0x319a,_0x481137=_0x1ff897['str'](_0x1df7d0(0x163)),_0x2579c8=_0x1ff897['str'](_0x1df7d0(0x160));if(!_0x481137)throw CliErrors[_0x1df7d0(0x16c)](_0x1df7d0(0x178),'Usage:\x20'+CLI_BIN_NAME+_0x1df7d0(0x161));if(_0x2579c8===undefined||_0x2579c8==='')throw CliErrors['validation'](_0x1df7d0(0x175),_0x1df7d0(0x166)+CLI_BIN_NAME+_0x1df7d0(0x161));if(_0x2579c8['length']>0x1f4)throw CliErrors[_0x1df7d0(0x16c)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x481137===_0x1df7d0(0x15c)&&![_0x1df7d0(0x16b),_0x1df7d0(0x162),'daily'][_0x1df7d0(0x15b)](_0x2579c8))throw CliErrors[_0x1df7d0(0x16c)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x481137==='locale'&&!normalizeLocale(_0x2579c8))throw CliErrors[_0x1df7d0(0x16c)](_0x1df7d0(0x17f),_0x1df7d0(0x173));const _0x421a92={'global':_0x1ff897[_0x1df7d0(0x164)]('global')},_0x879853=resolveWriteScope(_0x421a92),_0x55bef6=readScopedConfig(_0x879853);let _0x1498af=_0x481137,_0x106785=_0x2579c8;_0x481137===_0x1df7d0(0x16a)&&(_0x1498af=_0x1df7d0(0x16f),delete _0x55bef6[_0x1df7d0(0x16a)]);_0x481137==='appcode'&&delete _0x55bef6['app'];_0x481137==='locale'&&(_0x106785=normalizeLocale(_0x2579c8));_0x55bef6[_0x1498af]=_0x106785,writeScopedConfig(_0x55bef6,_0x879853);const _0x133b93=_0x879853===_0x1df7d0(0x171)?_0x1df7d0(0x172):_0x1df7d0(0x179);return{'ok':!![],'message':'✓\x20'+_0x133b93+'\x20'+_0x1498af+_0x1df7d0(0x17e)+_0x106785};}export const configSetDefinition={'service':'config','command':'set','description':a43_0x15cac5(0x174),'risk':a43_0x15cac5(0x15f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x15cac5(0x163),'type':a43_0x15cac5(0x167),'description':'Config\x20key','required':!![]},{'name':a43_0x15cac5(0x160),'type':a43_0x15cac5(0x167),'description':'Config\x20value','required':!![]},{'name':'global','type':a43_0x15cac5(0x177),'description':a43_0x15cac5(0x170),'default':![]}],'execute':execute};
@@ -0,0 +1 @@
1
+ const a44_0x296360=a44_0x552c;(function(_0x57745b,_0x1ca7f5){const _0x13f6f0=a44_0x552c,_0x329f64=_0x57745b();while(!![]){try{const _0x397b9b=parseInt(_0x13f6f0(0xcb))/0x1*(-parseInt(_0x13f6f0(0xc5))/0x2)+-parseInt(_0x13f6f0(0xc8))/0x3*(-parseInt(_0x13f6f0(0xc9))/0x4)+-parseInt(_0x13f6f0(0xc0))/0x5+-parseInt(_0x13f6f0(0xc4))/0x6*(-parseInt(_0x13f6f0(0xcd))/0x7)+-parseInt(_0x13f6f0(0xca))/0x8*(-parseInt(_0x13f6f0(0xc3))/0x9)+-parseInt(_0x13f6f0(0xce))/0xa*(parseInt(_0x13f6f0(0xbf))/0xb)+parseInt(_0x13f6f0(0xcc))/0xc;if(_0x397b9b===_0x1ca7f5)break;else _0x329f64['push'](_0x329f64['shift']());}catch(_0x5abc52){_0x329f64['push'](_0x329f64['shift']());}}}(a44_0x2eec,0xac61c));function a44_0x552c(_0x582e69,_0x3d79ec){_0x582e69=_0x582e69-0xbf;const _0x2eec1a=a44_0x2eec();let _0x552cda=_0x2eec1a[_0x582e69];return _0x552cda;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a44_0x2eec(){const _0x371749=['71496lgHqcw','21926ieaKMc','478896BGMSqC','305641yRXiog','61210sCxJHI','242mdcEHz','4952065MvEJJq','zh-CN','global','738twITTb','138ixnYCU','116MfTzYH','project','en-US','3977604raFthP','4hhShCU'];a44_0x2eec=function(){return _0x371749;};return a44_0x2eec();}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':'zh-CN','zh-cn':a44_0x296360(0xc1),'zh_cn':'zh-CN','en':a44_0x296360(0xc7),'en-us':a44_0x296360(0xc7),'en_us':a44_0x296360(0xc7)};export function normalizeLocale(_0x59c22f){if(!_0x59c22f)return null;return LOCALE_MAP[_0x59c22f['toLowerCase']()]??null;}export function resolveWriteScope(_0x8c4133){const _0x1b2b5b=a44_0x296360;if(_0x8c4133[_0x1b2b5b(0xc2)])return _0x1b2b5b(0xc2);return isInProject()?_0x1b2b5b(0xc6):_0x1b2b5b(0xc2);}export function readScopedConfig(_0x786f31){return readConfigFile(resolveWriteConfigPath(_0x786f31));}export function writeScopedConfig(_0x346cf3,_0x3a0e66){writeConfigFile(resolveWriteConfigPath(_0x3a0e66),_0x346cf3);}
@@ -1 +1 @@
1
- const a34_0x215dc3=a34_0x2fd2;(function(_0x2978bc,_0x2d82a3){const _0x262cc8=a34_0x2fd2,_0x362b57=_0x2978bc();while(!![]){try{const _0x481054=-parseInt(_0x262cc8(0x1f8))/0x1*(parseInt(_0x262cc8(0x1fd))/0x2)+-parseInt(_0x262cc8(0x1eb))/0x3*(-parseInt(_0x262cc8(0x1f4))/0x4)+-parseInt(_0x262cc8(0x1ef))/0x5+parseInt(_0x262cc8(0x1f0))/0x6*(-parseInt(_0x262cc8(0x1f9))/0x7)+-parseInt(_0x262cc8(0x1ff))/0x8*(-parseInt(_0x262cc8(0x1ee))/0x9)+parseInt(_0x262cc8(0x1fe))/0xa+parseInt(_0x262cc8(0x1f5))/0xb*(parseInt(_0x262cc8(0x1e9))/0xc);if(_0x481054===_0x2d82a3)break;else _0x362b57['push'](_0x362b57['shift']());}catch(_0x38e8dd){_0x362b57['push'](_0x362b57['shift']());}}}(a34_0x3a24,0x80ec6));import{jsx as a34_0x1e1d11}from'react/jsx-runtime';function a34_0x3a24(){const _0x2da4a0=['446rEwYsI','5561230caMYCa','110648XRqhPm','auth','180qyfhlz','Create\x20a\x20new\x20project','201UpyKak','cookie','nonInteractive','81HDwnEW','1645505xpXQPX','12Soguit','非交互模式创建项目:\x20','info','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','22476UHrpAW','282975pCbXTb','logger','validation','1699HHsCVl','724157HbcdEo','trim','create','env'];a34_0x3a24=function(){return _0x2da4a0;};return a34_0x3a24();}function a34_0x2fd2(_0x210ce3,_0x267218){_0x210ce3=_0x210ce3-0x1e9;const _0x3a245a=a34_0x3a24();let _0x2fd224=_0x3a245a[_0x210ce3];return _0x2fd224;}import{render}from'ink';import{CreateApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';export const createCommand={'name':'create','description':a34_0x215dc3(0x1ea),async 'run'(_0x115674,_0x44b745,_0x1b6fc3){const _0x1f0d8b=a34_0x215dc3,_0x278622=_0x44b745[0x0]?.[_0x1f0d8b(0x1fa)](),_0x235165=_0x1b6fc3[_0x1f0d8b(0x1fc)];if(_0x115674['nonInteractive']&&_0x278622){_0x115674[_0x1f0d8b(0x1f6)][_0x1f0d8b(0x1f2)](_0x1f0d8b(0x1fb),_0x1f0d8b(0x1f1)+_0x278622);const {createProjectNonInteractive:_0x144a10}=await import('../create-app/non-interactive.js');await _0x144a10(_0x278622,_0x235165);}else{if(_0x115674[_0x1f0d8b(0x1ed)]&&!_0x278622)throw CliErrors[_0x1f0d8b(0x1f7)](_0x1f0d8b(0x1f3),'Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci');else render(a34_0x1e1d11(CreateApp,{'projectCode':_0x278622,'env':_0x235165,'cookie':_0x115674[_0x1f0d8b(0x200)][_0x1f0d8b(0x1ec)]}));}}};
1
+ const a45_0x4c4504=a45_0x47bd;(function(_0x2cac6e,_0x3b223b){const _0x498732=a45_0x47bd,_0x8a0404=_0x2cac6e();while(!![]){try{const _0x1892aa=-parseInt(_0x498732(0x110))/0x1+parseInt(_0x498732(0xfa))/0x2*(-parseInt(_0x498732(0x108))/0x3)+-parseInt(_0x498732(0x100))/0x4*(-parseInt(_0x498732(0x106))/0x5)+-parseInt(_0x498732(0x104))/0x6*(-parseInt(_0x498732(0x10b))/0x7)+-parseInt(_0x498732(0xf9))/0x8*(-parseInt(_0x498732(0x103))/0x9)+-parseInt(_0x498732(0xf7))/0xa*(parseInt(_0x498732(0x107))/0xb)+parseInt(_0x498732(0x10d))/0xc*(parseInt(_0x498732(0xfc))/0xd);if(_0x1892aa===_0x3b223b)break;else _0x8a0404['push'](_0x8a0404['shift']());}catch(_0x3eef1d){_0x8a0404['push'](_0x8a0404['shift']());}}}(a45_0x4e52,0xd5279));import{createApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';function a45_0x47bd(_0x8648c0,_0x5058ec){_0x8648c0=_0x8648c0-0xf7;const _0x4e529a=a45_0x4e52();let _0x47bdc2=_0x4e529a[_0x8648c0];return _0x47bdc2;}const flagDefs=[{'name':a45_0x4c4504(0xfb),'type':'string','description':a45_0x4c4504(0x101)},{'name':a45_0x4c4504(0xf8),'type':a45_0x4c4504(0xfe),'description':'Target\x20environment'},{'name':'appcode','type':a45_0x4c4504(0xfe),'description':'App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)'}];function a45_0x4e52(){const _0x3b257f=['name','10492170XTqcDU','cookie','string','logger','4194444INhcmv','Project\x20name','nonInteractive','12177PUzBab','6KiAZpo','非交互模式创建项目:\x20','5ZtRgkV','14668973YyLSgV','3LGxLjv','appcode','create','7377685wUAnSu','Usage:\x20rabetbase\x20create\x20<project-name>\x20[--appcode\x20<code>]\x20[--ci]','12ynUbEr','validation','auth','303841lcknIX','../create-app/non-interactive.js','10myCEHk','env','4672POoPye','2378686zBPXiV'];a45_0x4e52=function(){return _0x3b257f;};return a45_0x4e52();}export const createCommand={'name':a45_0x4c4504(0x10a),'description':'Create\x20a\x20new\x20project','usage':'rabetbase\x20project\x20create\x20[<project-name>]\x20[flags]','flags':flagDefs,async 'run'(_0x1f72e9,_0x30a2e6,_0x1487f1){const _0x397ead=a45_0x4c4504,_0xdbd35c=_0x1487f1['name']?.['trim']()||_0x30a2e6[0x0]?.['trim'](),_0x192557=_0x1487f1['env'],_0xef02b0=_0x1487f1[_0x397ead(0x109)];if(_0x1f72e9[_0x397ead(0x102)]){if(!_0xdbd35c)throw CliErrors[_0x397ead(0x10e)]('Non-interactive\x20mode\x20requires\x20a\x20project\x20name.',_0x397ead(0x10c));_0x1f72e9[_0x397ead(0xff)]['info'](_0x397ead(0x10a),_0x397ead(0x105)+_0xdbd35c);const {createProjectNonInteractive:_0x2d4655}=await import(_0x397ead(0x111));await _0x2d4655(_0xdbd35c,_0x192557,_0xef02b0,_0x1f72e9[_0x397ead(0x10f)][_0x397ead(0xfd)]);}else await createApp({'projectCode':_0xdbd35c,'appCode':_0xef02b0,'env':_0x192557,'cookie':_0x1f72e9['auth'][_0x397ead(0xfd)]});}};
@@ -1 +1 @@
1
- const a35_0x4e7486=a35_0x37eb;function a35_0x37eb(_0x25073f,_0x59ae4d){_0x25073f=_0x25073f-0x14e;const _0x2366a6=a35_0x2366();let _0x37eb73=_0x2366a6[_0x25073f];return _0x37eb73;}(function(_0x3bc237,_0x3b255a){const _0x28ac87=a35_0x37eb,_0x509be8=_0x3bc237();while(!![]){try{const _0x136a71=parseInt(_0x28ac87(0x157))/0x1*(parseInt(_0x28ac87(0x17e))/0x2)+parseInt(_0x28ac87(0x16c))/0x3*(parseInt(_0x28ac87(0x158))/0x4)+parseInt(_0x28ac87(0x180))/0x5+-parseInt(_0x28ac87(0x186))/0x6+parseInt(_0x28ac87(0x178))/0x7+-parseInt(_0x28ac87(0x17d))/0x8*(-parseInt(_0x28ac87(0x151))/0x9)+-parseInt(_0x28ac87(0x173))/0xa;if(_0x136a71===_0x3b255a)break;else _0x509be8['push'](_0x509be8['shift']());}catch(_0x701dfb){_0x509be8['push'](_0x509be8['shift']());}}}(a35_0x2366,0x1f1d9));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x4be2d2){const _0x18585b=a35_0x37eb;if(_0x4be2d2[_0x18585b(0x187)])return null;const _0x305afa=Boolean(_0x4be2d2['displayName']!==undefined||_0x4be2d2[_0x18585b(0x15e)]!==undefined);let _0x84fbf1={};if(!_0x305afa&&typeof _0x4be2d2[_0x18585b(0x160)]===_0x18585b(0x16b))try{_0x84fbf1=JSON[_0x18585b(0x175)](_0x4be2d2[_0x18585b(0x160)]);}catch{}const _0x3e8fac=_0x305afa?_0x4be2d2[_0x18585b(0x174)]:_0x4be2d2[_0x18585b(0x14e)],_0x2d050d=_0x305afa?_0x4be2d2[_0x18585b(0x150)]:_0x4be2d2[_0x18585b(0x174)],_0x2adae2=_0x305afa?_0x4be2d2[_0x18585b(0x15e)]:_0x4be2d2[_0x18585b(0x16d)]||_0x4be2d2[_0x18585b(0x15c)],_0x5389da=_0x305afa?_0x4be2d2[_0x18585b(0x17b)]===!![]:_0x84fbf1[_0x18585b(0x17b)]===!![],_0x2fa82a=_0x305afa?_0x4be2d2[_0x18585b(0x16f)]===!![]:_0x84fbf1[_0x18585b(0x16f)]===!![],_0x18425b=_0x305afa?_0x4be2d2[_0x18585b(0x172)]??null:_0x84fbf1[_0x18585b(0x172)]??null,_0x151b3f={'name':_0x3e8fac,'displayName':_0x2d050d||_0x3e8fac,'type':_0x2adae2,'dbType':_0x4be2d2[_0x18585b(0x16a)],'pk':_0x5389da,'required':_0x2fa82a,'description':_0x4be2d2[_0x18585b(0x182)]||undefined};return Array[_0x18585b(0x166)](_0x18425b)&&_0x18425b['length']>0x0&&(_0x151b3f[_0x18585b(0x172)]=_0x18425b),_0x151b3f;}function a35_0x2366(){const _0x1fe4d5=['properties','1195572YxyxwE','toDatasetCode','fields','pkField','datasetKey','8tXUeYi','26bykIpn','fromField','268900frnrjR','detail','description','indexes','path','toFieldLabel','279240KmIhuA','deleted','verbose','code','toDatasetName','displayName','559377YOeaVr','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','map','entries','push','method','8429kSORJb','16RQQKUQ','dataset','object','boolean','dataType','tableComment','doType','operations','extend','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','sourceType','source','bool','filter','isArray','tableName','Return\x20full\x20raw\x20detail\x20object','modelId','dbType','string','188184zmFCXo','type','length','required','relations','alias','options','4732290LszLxt','name','parse','read'];a35_0x2366=function(){return _0x1fe4d5;};return a35_0x2366();}export const datasetDetail={'service':a35_0x4e7486(0x159),'command':a35_0x4e7486(0x181),'description':a35_0x4e7486(0x152),'risk':a35_0x4e7486(0x176),'flags':[CODE_FLAG,{'name':a35_0x4e7486(0x171),'type':a35_0x4e7486(0x16b),'description':a35_0x4e7486(0x161)},{'name':a35_0x4e7486(0x188),'type':a35_0x4e7486(0x15b),'description':a35_0x4e7486(0x168)}],async 'execute'(_0x4e9550){const _0x3060a3=a35_0x4e7486,_0x4f31c1=await getDatasetDetail(_0x4e9550['str'](_0x3060a3(0x14e))),_0x25efb1=_0x4e9550[_0x3060a3(0x164)](_0x3060a3(0x188));if(_0x25efb1)return{'ok':!![],'data':_0x4f31c1};const _0x5f08cb=Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x17a)])?_0x4f31c1['fields']:Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x177)])?_0x4f31c1[_0x3060a3(0x177)]:[],_0x5dc95f=_0x5f08cb['map'](_0x3e5ce6=>normalizeField(_0x3e5ce6))[_0x3060a3(0x165)](_0x1f2ba1=>_0x1f2ba1!==null),_0x27c409=_0x4f31c1[_0x3060a3(0x15f)]??{},_0x36dc9c=[];for(const [_0x5d1b7b,_0x1b8bab]of Object[_0x3060a3(0x154)](_0x27c409)){if(_0x1b8bab&&typeof _0x1b8bab===_0x3060a3(0x15a)){const _0x450ceb=_0x1b8bab;_0x450ceb[_0x3060a3(0x156)]&&_0x450ceb['path']&&_0x36dc9c[_0x3060a3(0x155)]({'name':_0x5d1b7b,'method':_0x450ceb[_0x3060a3(0x156)],'path':_0x450ceb[_0x3060a3(0x184)]});}}const _0x25fc80=_0x4f31c1['dbtableConfig']??{},_0x393bf3=_0x4f31c1[_0x3060a3(0x159)]??{};return{'ok':!![],'data':{'id':_0x4f31c1[_0x3060a3(0x169)]??_0x4f31c1['id'],'name':_0x4f31c1[_0x3060a3(0x174)],'code':_0x4f31c1['modelCode']||_0x4f31c1[_0x3060a3(0x14e)],'description':_0x4f31c1[_0x3060a3(0x182)]||_0x393bf3[_0x3060a3(0x15d)]||undefined,'source':_0x4f31c1[_0x3060a3(0x163)]||_0x393bf3[_0x3060a3(0x162)],'table':_0x25fc80[_0x3060a3(0x167)]||_0x393bf3[_0x3060a3(0x167)],'datasetKey':_0x25fc80[_0x3060a3(0x17c)],'pk':_0x25fc80[_0x3060a3(0x17b)],'fields':_0x5dc95f,'operations':_0x36dc9c,'indexes':Array[_0x3060a3(0x166)](_0x393bf3[_0x3060a3(0x183)])?_0x393bf3[_0x3060a3(0x183)]:[],'relations':Array[_0x3060a3(0x166)](_0x4f31c1['relations'])?_0x4f31c1[_0x3060a3(0x170)][_0x3060a3(0x153)](_0x5bee7e=>({'fromField':_0x5bee7e[_0x3060a3(0x17f)],'toDataset':_0x5bee7e[_0x3060a3(0x14f)],'toCode':_0x5bee7e[_0x3060a3(0x179)],'toTable':_0x5bee7e['toTableName'],'toField':_0x5bee7e['toField'],'labelField':_0x5bee7e[_0x3060a3(0x185)]||undefined})):[],'stats':{'fieldCount':_0x5dc95f[_0x3060a3(0x16e)],'operationCount':_0x36dc9c[_0x3060a3(0x16e)]}}};}};
1
+ const a46_0x4a4e80=a46_0x57e6;(function(_0x598acc,_0x477d2c){const _0x48d4eb=a46_0x57e6,_0x26d073=_0x598acc();while(!![]){try{const _0xda08fe=-parseInt(_0x48d4eb(0x1b4))/0x1*(-parseInt(_0x48d4eb(0x1c6))/0x2)+-parseInt(_0x48d4eb(0x1a2))/0x3+parseInt(_0x48d4eb(0x1bc))/0x4+-parseInt(_0x48d4eb(0x1cb))/0x5+parseInt(_0x48d4eb(0x1c9))/0x6+-parseInt(_0x48d4eb(0x1ab))/0x7*(-parseInt(_0x48d4eb(0x1ae))/0x8)+-parseInt(_0x48d4eb(0x19d))/0x9*(parseInt(_0x48d4eb(0x1b1))/0xa);if(_0xda08fe===_0x477d2c)break;else _0x26d073['push'](_0x26d073['shift']());}catch(_0x48e5f1){_0x26d073['push'](_0x26d073['shift']());}}}(a46_0x2cfc,0x8ae47));import{getDatasetDetail}from'../../core/api-client.js';function a46_0x2cfc(){const _0x14f073=['tableComment','10jhnMrA','alias','dataType','14970qxKBbo','description','read','toField','dbtableConfig','toDatasetCode','toDatasetName','dbType','1942864hILSbQ','doType','method','sourceType','bool','verbose','code','indexes','type','isArray','46yvrJrR','required','detail','6823020WcONfk','datasetKey','3772015hHJmYX','str','properties','extend','string','relations','displayName','parse','filter','4474809bwRNgf','pkField','object','toFieldLabel','options','492333tywTct','toTableName','entries','map','fromField','deleted','fields','modelId','path','217gobMOX','tableName','length','4496tlRadL','name'];a46_0x2cfc=function(){return _0x14f073;};return a46_0x2cfc();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x2650c5){const _0x491a64=a46_0x57e6;if(_0x2650c5[_0x491a64(0x1a7)])return null;const _0x34fb54=Boolean(_0x2650c5['displayName']!==undefined||_0x2650c5['doType']!==undefined);let _0x5ea519={};if(!_0x34fb54&&typeof _0x2650c5['extend']==='string')try{_0x5ea519=JSON[_0x491a64(0x19b)](_0x2650c5[_0x491a64(0x1ce)]);}catch{}const _0x33ac42=_0x34fb54?_0x2650c5['name']:_0x2650c5[_0x491a64(0x1c2)],_0x1f2a8c=_0x34fb54?_0x2650c5[_0x491a64(0x19a)]:_0x2650c5['name'],_0x412ce8=_0x34fb54?_0x2650c5[_0x491a64(0x1bd)]:_0x2650c5[_0x491a64(0x1c4)]||_0x2650c5[_0x491a64(0x1b3)],_0xd3256c=_0x34fb54?_0x2650c5[_0x491a64(0x19e)]===!![]:_0x5ea519[_0x491a64(0x19e)]===!![],_0x2036d2=_0x34fb54?_0x2650c5[_0x491a64(0x1c7)]===!![]:_0x5ea519['required']===!![],_0x44265f=_0x34fb54?_0x2650c5['options']??null:_0x5ea519[_0x491a64(0x1a1)]??null,_0x396d63={'name':_0x33ac42,'displayName':_0x1f2a8c||_0x33ac42,'type':_0x412ce8,'dbType':_0x2650c5[_0x491a64(0x1bb)],'pk':_0xd3256c,'required':_0x2036d2,'description':_0x2650c5[_0x491a64(0x1b5)]||undefined};return Array[_0x491a64(0x1c5)](_0x44265f)&&_0x44265f[_0x491a64(0x1ad)]>0x0&&(_0x396d63['options']=_0x44265f),_0x396d63;}function a46_0x57e6(_0x192ba9,_0x3bf3e0){_0x192ba9=_0x192ba9-0x19a;const _0x2cfc55=a46_0x2cfc();let _0x57e63c=_0x2cfc55[_0x192ba9];return _0x57e63c;}export const datasetDetail={'service':'dataset','command':a46_0x4a4e80(0x1c8),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a46_0x4a4e80(0x1b6),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x4a4e80(0x1b2),'type':a46_0x4a4e80(0x1cf),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'},{'name':'verbose','type':'boolean','description':'Return\x20full\x20raw\x20detail\x20object'}],async 'execute'(_0x3e5d27){const _0x2bb948=a46_0x4a4e80,_0x111c08=await getDatasetDetail(_0x3e5d27[_0x2bb948(0x1cc)](_0x2bb948(0x1c2))),_0x1ded44=_0x3e5d27[_0x2bb948(0x1c0)](_0x2bb948(0x1c1));if(_0x1ded44)return{'ok':!![],'data':_0x111c08};const _0x57b2ca=Array[_0x2bb948(0x1c5)](_0x111c08[_0x2bb948(0x1a8)])?_0x111c08['fields']:Array[_0x2bb948(0x1c5)](_0x111c08[_0x2bb948(0x1cd)])?_0x111c08[_0x2bb948(0x1cd)]:[],_0x58b519=_0x57b2ca[_0x2bb948(0x1a5)](_0x3c085b=>normalizeField(_0x3c085b))[_0x2bb948(0x19c)](_0x9d7a48=>_0x9d7a48!==null),_0x4e4e3d=_0x111c08['operations']??{},_0x471a8a=[];for(const [_0x11cc15,_0x466e5b]of Object[_0x2bb948(0x1a4)](_0x4e4e3d)){if(_0x466e5b&&typeof _0x466e5b===_0x2bb948(0x19f)){const _0x39b6de=_0x466e5b;_0x39b6de[_0x2bb948(0x1be)]&&_0x39b6de[_0x2bb948(0x1aa)]&&_0x471a8a['push']({'name':_0x11cc15,'method':_0x39b6de[_0x2bb948(0x1be)],'path':_0x39b6de[_0x2bb948(0x1aa)]});}}const _0x1f47ce=_0x111c08[_0x2bb948(0x1b8)]??{},_0x54c998=_0x111c08['dataset']??{};return{'ok':!![],'data':{'id':_0x111c08[_0x2bb948(0x1a9)]??_0x111c08['id'],'name':_0x111c08[_0x2bb948(0x1af)],'code':_0x111c08['modelCode']||_0x111c08[_0x2bb948(0x1c2)],'description':_0x111c08[_0x2bb948(0x1b5)]||_0x54c998[_0x2bb948(0x1b0)]||undefined,'source':_0x111c08['source']||_0x54c998[_0x2bb948(0x1bf)],'table':_0x1f47ce['tableName']||_0x54c998[_0x2bb948(0x1ac)],'datasetKey':_0x1f47ce[_0x2bb948(0x1ca)],'pk':_0x1f47ce[_0x2bb948(0x19e)],'fields':_0x58b519,'operations':_0x471a8a,'indexes':Array[_0x2bb948(0x1c5)](_0x54c998[_0x2bb948(0x1c3)])?_0x54c998['indexes']:[],'relations':Array[_0x2bb948(0x1c5)](_0x111c08[_0x2bb948(0x1d0)])?_0x111c08[_0x2bb948(0x1d0)][_0x2bb948(0x1a5)](_0x3af2b0=>({'fromField':_0x3af2b0[_0x2bb948(0x1a6)],'toDataset':_0x3af2b0[_0x2bb948(0x1ba)],'toCode':_0x3af2b0[_0x2bb948(0x1b9)],'toTable':_0x3af2b0[_0x2bb948(0x1a3)],'toField':_0x3af2b0[_0x2bb948(0x1b7)],'labelField':_0x3af2b0[_0x2bb948(0x1a0)]||undefined})):[],'stats':{'fieldCount':_0x58b519['length'],'operationCount':_0x471a8a['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x2dc964,_0xe56d25){const _0x127534=a36_0x3abd,_0x48c85c=_0x2dc964();while(!![]){try{const _0x4cb7e5=parseInt(_0x127534(0x18d))/0x1*(-parseInt(_0x127534(0x188))/0x2)+-parseInt(_0x127534(0x192))/0x3*(-parseInt(_0x127534(0x18b))/0x4)+parseInt(_0x127534(0x189))/0x5*(-parseInt(_0x127534(0x190))/0x6)+-parseInt(_0x127534(0x191))/0x7+parseInt(_0x127534(0x18f))/0x8+parseInt(_0x127534(0x18a))/0x9*(-parseInt(_0x127534(0x18e))/0xa)+parseInt(_0x127534(0x18c))/0xb;if(_0x4cb7e5===_0xe56d25)break;else _0x48c85c['push'](_0x48c85c['shift']());}catch(_0x1e8159){_0x48c85c['push'](_0x48c85c['shift']());}}}(a36_0x1d60,0xa30db));import{datasetList}from'./list.js';function a36_0x1d60(){const _0x3d5e89=['2hnARfC','13855hakQdU','9RWYddZ','1196UEviJM','8145775ynNjQo','747910qLQCcU','416940IBuWps','6983272tELGxa','1662PJRfDJ','5047273DEXoDk','13371HUEgod'];a36_0x1d60=function(){return _0x3d5e89;};return a36_0x1d60();}import{datasetDetail}from'./detail.js';function a36_0x3abd(_0xc6edd6,_0xd62002){_0xc6edd6=_0xc6edd6-0x188;const _0x1d60d1=a36_0x1d60();let _0x3abd3a=_0x1d60d1[_0xc6edd6];return _0x3abd3a;}import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ function a47_0x1d40(_0x5cd4cc,_0x1ba49e){_0x5cd4cc=_0x5cd4cc-0x10b;const _0x39b7fc=a47_0x39b7();let _0x1d4003=_0x39b7fc[_0x5cd4cc];return _0x1d4003;}(function(_0x335f82,_0x46c58b){const _0x50ca55=a47_0x1d40,_0x1e6233=_0x335f82();while(!![]){try{const _0x3d640b=parseInt(_0x50ca55(0x110))/0x1*(-parseInt(_0x50ca55(0x10d))/0x2)+-parseInt(_0x50ca55(0x112))/0x3+-parseInt(_0x50ca55(0x111))/0x4+-parseInt(_0x50ca55(0x115))/0x5*(-parseInt(_0x50ca55(0x10f))/0x6)+parseInt(_0x50ca55(0x113))/0x7+-parseInt(_0x50ca55(0x10b))/0x8*(parseInt(_0x50ca55(0x10c))/0x9)+parseInt(_0x50ca55(0x10e))/0xa*(parseInt(_0x50ca55(0x114))/0xb);if(_0x3d640b===_0x46c58b)break;else _0x1e6233['push'](_0x1e6233['shift']());}catch(_0x4704d4){_0x1e6233['push'](_0x1e6233['shift']());}}}(a47_0x39b7,0x68611));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];function a47_0x39b7(){const _0x407a72=['21142olZpNv','10hIqOze','132VZvnlU','29yJdIVx','190256uIysJH','35649JepOAw','3147221EdeDqO','4630725ZFBGUv','128340PmiZQa','248iPIeLK','186309WJdEyX'];a47_0x39b7=function(){return _0x407a72;};return a47_0x39b7();}
@@ -1 +1 @@
1
- const a37_0x2d756b=a37_0x1ee5;(function(_0x83f359,_0xefb4b7){const _0x6c92ed=a37_0x1ee5,_0x410fce=_0x83f359();while(!![]){try{const _0x6d360b=-parseInt(_0x6c92ed(0xc9))/0x1*(-parseInt(_0x6c92ed(0xd1))/0x2)+-parseInt(_0x6c92ed(0xc4))/0x3+-parseInt(_0x6c92ed(0xe0))/0x4*(parseInt(_0x6c92ed(0xb8))/0x5)+-parseInt(_0x6c92ed(0xe6))/0x6+parseInt(_0x6c92ed(0xbd))/0x7+-parseInt(_0x6c92ed(0xcd))/0x8*(-parseInt(_0x6c92ed(0xc1))/0x9)+parseInt(_0x6c92ed(0xd2))/0xa*(parseInt(_0x6c92ed(0xdd))/0xb);if(_0x6d360b===_0xefb4b7)break;else _0x410fce['push'](_0x410fce['shift']());}catch(_0x2e39b5){_0x410fce['push'](_0x410fce['shift']());}}}(a37_0x29f7,0x7d5bf));function a37_0x1ee5(_0x2a2312,_0x52917f){_0x2a2312=_0x2a2312-0xb6;const _0x29f75b=a37_0x29f7();let _0x1ee5ab=_0x29f75b[_0x2a2312];return _0x1ee5ab;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':a37_0x2d756b(0xe9),'command':a37_0x2d756b(0xb7),'description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':a37_0x2d756b(0xde),'flags':[{'name':'db','type':a37_0x2d756b(0xe5),'description':a37_0x2d756b(0xd8)+a37_0x2d756b(0xbe)},{'name':a37_0x2d756b(0xb6),'type':a37_0x2d756b(0xdb),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x478246){const _0x135180=a37_0x2d756b,_0x1b1c83=_0x478246[_0x135180(0xdf)]('verbose'),{resolved:_0x50e161,error:_0x1ccd8f}=await resolveDb(_0x478246[_0x135180(0xbf)],_0x478246[_0x135180(0xcc)]('db')||undefined);if(_0x1ccd8f)return{'ok':![],'message':_0x1ccd8f};const _0x20d4e3=_0x50e161[_0x135180(0xcb)](_0x2e669e=>_0x2e669e[_0x135180(0xd7)]),_0x44f170=await Promise[_0x135180(0xe3)](_0x20d4e3[_0x135180(0xcb)](_0x389a16=>getErConfig(_0x478246[_0x135180(0xbf)],_0x389a16)));if(_0x1b1c83)return{'ok':!![],'data':_0x44f170[_0x135180(0xda)]===0x1?_0x44f170[0x0]:_0x44f170,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x20d4e3[_0x135180(0xda)]+_0x135180(0xe7)};const _0x4e04b4=_0x44f170[_0x135180(0xcb)](_0x522c77=>{const _0xc1f609=_0x135180,_0xf2dad5=(_0x522c77[_0xc1f609(0xd0)]??[])[_0xc1f609(0xcb)](_0x21c6c0=>{const _0x361177=_0xc1f609,_0x1c72b0=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x48afea=>_0x48afea[_0x361177(0xbb)])[_0x361177(0xcb)](_0x4088b1=>_0x4088b1[_0x361177(0xc7)])??[],_0x300c9a=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x570a11=>_0x570a11[_0x361177(0xbc)])['map'](_0x1d7f13=>_0x1d7f13[_0x361177(0xc7)])??[];return{'id':_0x21c6c0[_0x361177(0xb9)],'name':_0x21c6c0[_0x361177(0xc0)],'code':_0x21c6c0[_0x361177(0xdc)],'table':_0x21c6c0[_0x361177(0xd5)],'comment':_0x21c6c0['tableComment']||undefined,'fields':(_0x21c6c0[_0x361177(0xd4)]??[])[_0x361177(0xcb)](_0x32c6e6=>({'name':_0x32c6e6[_0x361177(0xc7)],'displayName':_0x32c6e6[_0x361177(0xd3)],'type':_0x32c6e6[_0x361177(0xd9)],'pk':_0x32c6e6[_0x361177(0xbb)],'fk':_0x32c6e6['isForeignKey']})),'relations':(_0x21c6c0[_0x361177(0xd6)]??[])['filter'](_0x2cc60a=>_0x2cc60a[_0x361177(0xc8)]&&_0x2cc60a[_0x361177(0xc2)])['map'](_0x31bccf=>({'from':_0x31bccf['fromField'],'toDataset':_0x31bccf[_0x361177(0xba)],'toCode':_0x31bccf[_0x361177(0xc2)],'toField':_0x31bccf[_0x361177(0xe2)],'joinType':_0x31bccf['joinType']||'LEFT'})),'stats':{'fieldCount':_0x21c6c0[_0x361177(0xd4)]?.[_0x361177(0xda)]??0x0,'pkCount':_0x1c72b0[_0x361177(0xda)],'fkCount':_0x300c9a['length'],'relationCount':_0x21c6c0['relations']?.[_0x361177(0xda)]??0x0}};}),_0x98d75d=_0xf2dad5[_0xc1f609(0xc6)](_0x19ec85=>_0x19ec85['stats'][_0xc1f609(0xcf)]>0x0)[_0xc1f609(0xcb)](_0x2cb151=>_0x2cb151[_0xc1f609(0xc7)]);return{'db':_0x522c77[_0xc1f609(0xe1)]?.['dbName'],'dbId':_0x522c77[_0xc1f609(0xe1)]?.['dbId'],'appCode':_0x522c77[_0xc1f609(0xe1)]?.['appCode'],'datasetCount':_0xf2dad5['length'],'connectedDatasets':_0x98d75d,'datasets':_0xf2dad5};}),_0x42e215=_0x4e04b4[_0x135180(0xca)]((_0x5ebc50,_0x31c980)=>_0x5ebc50+_0x31c980[_0x135180(0xc5)],0x0),_0xecad48=_0x4e04b4[_0x135180(0xca)]((_0x2e4f0b,_0x3ab5bc)=>_0x2e4f0b+_0x3ab5bc[_0x135180(0xd0)][_0x135180(0xca)]((_0x3f4645,_0xf085c5)=>_0x3f4645+_0xf085c5[_0x135180(0xe8)][_0x135180(0xcf)],0x0),0x0);return{'ok':!![],'data':_0x4e04b4['length']===0x1?_0x4e04b4[0x0]:{'databases':_0x4e04b4},'message':_0x135180(0xc3)+_0x4e04b4[_0x135180(0xda)]+_0x135180(0xe4)+_0x42e215+'\x20dataset(s),\x20'+_0xecad48+_0x135180(0xce)};}};function a37_0x29f7(){const _0x5a5e5f=['4grEjGK','4380yhxKSX','displayName','fields','tableName','relations','dbId','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','dbType','length','boolean','datasetCode','9966oDZrZe','read','bool','249836LjNxTS','meta','toField','all','\x20database(s),\x20','string','3826950LhObXB','\x20database(s)','stats','dataset','verbose','links','5cHsIps','datasetId','toDatasetName','isPrimaryKey','isForeignKey','1875083CSExOM','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','appCode','datasetName','333orKYXz','toDataset','Link\x20graph:\x20','865056UgUIMO','datasetCount','filter','name','fromField','255572qtGLkR','reduce','map','str','70544hPJrKO','\x20relation(s)','relationCount','datasets'];a37_0x29f7=function(){return _0x5a5e5f;};return a37_0x29f7();}
1
+ const a48_0x29b784=a48_0x568d;(function(_0x8c18f5,_0x146d6f){const _0x507c2a=a48_0x568d,_0x170a8c=_0x8c18f5();while(!![]){try{const _0xba24a4=-parseInt(_0x507c2a(0x136))/0x1*(parseInt(_0x507c2a(0x142))/0x2)+parseInt(_0x507c2a(0x15c))/0x3*(-parseInt(_0x507c2a(0x134))/0x4)+-parseInt(_0x507c2a(0x138))/0x5*(parseInt(_0x507c2a(0x159))/0x6)+-parseInt(_0x507c2a(0x146))/0x7+-parseInt(_0x507c2a(0x14b))/0x8*(parseInt(_0x507c2a(0x15e))/0x9)+parseInt(_0x507c2a(0x158))/0xa+-parseInt(_0x507c2a(0x151))/0xb*(-parseInt(_0x507c2a(0x160))/0xc);if(_0xba24a4===_0x146d6f)break;else _0x170a8c['push'](_0x170a8c['shift']());}catch(_0x29533a){_0x170a8c['push'](_0x170a8c['shift']());}}}(a48_0x2e69,0xb5f58));function a48_0x568d(_0x520936,_0x2268ec){_0x520936=_0x520936-0x130;const _0x2e6953=a48_0x2e69();let _0x568d85=_0x2e6953[_0x520936];return _0x568d85;}import{getErConfig}from'../../core/api-client.js';function a48_0x2e69(){const _0x4d8c93=['8flPtnm','isPrimaryKey','\x20relation(s)','displayName','toDatasetName','string','1597409mpBIEr','fields','reduce','\x20database(s)','length','dbId','Fetched\x20link\x20graph\x20for\x20','137430DGqbWa','7794kpHXVo','filter','LEFT','447KorMgt','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','6544773EJbZXC','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','300ShaoFE','datasetCount','tableName','relations','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','read','meta','13528LRHqbN','isForeignKey','2649iRSTQb','links','705SuHpGp','fromField','toDataset','map','appCode','joinType','bool','verbose','datasetId','dbType','514ZOlItf','\x20dataset(s),\x20','relationCount','\x20database(s),\x20','5626929TXAjbn','dbName','name','Link\x20graph:\x20','tableComment'];a48_0x2e69=function(){return _0x4d8c93;};return a48_0x2e69();}import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetLinks={'service':'dataset','command':a48_0x29b784(0x137),'description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+a48_0x29b784(0x15d)+a48_0x29b784(0x131),'risk':a48_0x29b784(0x132),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x29b784(0x150),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a48_0x29b784(0x15f)},{'name':a48_0x29b784(0x13f),'type':'boolean','description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x345cda){const _0x2c3202=a48_0x29b784,_0x368330=_0x345cda[_0x2c3202(0x13e)](_0x2c3202(0x13f)),{resolved:_0x5ac41c,error:_0x385b0d}=await resolveDb(_0x345cda[_0x2c3202(0x13c)],_0x345cda['str']('db')||undefined);if(_0x385b0d)return{'ok':![],'message':_0x385b0d};const _0x38994e=_0x5ac41c[_0x2c3202(0x13b)](_0x8d02c7=>_0x8d02c7[_0x2c3202(0x156)]),_0xa578df=await Promise['all'](_0x38994e['map'](_0x5e14c0=>getErConfig(_0x345cda[_0x2c3202(0x13c)],_0x5e14c0)));if(_0x368330)return{'ok':!![],'data':_0xa578df['length']===0x1?_0xa578df[0x0]:_0xa578df,'message':_0x2c3202(0x157)+_0x38994e[_0x2c3202(0x155)]+_0x2c3202(0x154)};const _0x1be8dc=_0xa578df['map'](_0x44db53=>{const _0x1edd87=_0x2c3202,_0x286bdf=(_0x44db53['datasets']??[])[_0x1edd87(0x13b)](_0x242e2b=>{const _0x36733c=_0x1edd87,_0x13fbf1=_0x242e2b[_0x36733c(0x152)]?.[_0x36733c(0x15a)](_0xa3919e=>_0xa3919e[_0x36733c(0x14c)])['map'](_0x15db4b=>_0x15db4b['name'])??[],_0x2aff20=_0x242e2b[_0x36733c(0x152)]?.['filter'](_0x8aacc3=>_0x8aacc3['isForeignKey'])['map'](_0x5ee4a1=>_0x5ee4a1[_0x36733c(0x148)])??[];return{'id':_0x242e2b[_0x36733c(0x140)],'name':_0x242e2b['datasetName'],'code':_0x242e2b['datasetCode'],'table':_0x242e2b[_0x36733c(0x162)],'comment':_0x242e2b[_0x36733c(0x14a)]||undefined,'fields':(_0x242e2b[_0x36733c(0x152)]??[])[_0x36733c(0x13b)](_0x4b9016=>({'name':_0x4b9016[_0x36733c(0x148)],'displayName':_0x4b9016[_0x36733c(0x14e)],'type':_0x4b9016[_0x36733c(0x141)],'pk':_0x4b9016[_0x36733c(0x14c)],'fk':_0x4b9016[_0x36733c(0x135)]})),'relations':(_0x242e2b['relations']??[])['filter'](_0xa2f7dd=>_0xa2f7dd[_0x36733c(0x139)]&&_0xa2f7dd[_0x36733c(0x13a)])['map'](_0x46fe94=>({'from':_0x46fe94[_0x36733c(0x139)],'toDataset':_0x46fe94[_0x36733c(0x14f)],'toCode':_0x46fe94[_0x36733c(0x13a)],'toField':_0x46fe94['toField'],'joinType':_0x46fe94[_0x36733c(0x13d)]||_0x36733c(0x15b)})),'stats':{'fieldCount':_0x242e2b['fields']?.['length']??0x0,'pkCount':_0x13fbf1[_0x36733c(0x155)],'fkCount':_0x2aff20['length'],'relationCount':_0x242e2b[_0x36733c(0x130)]?.[_0x36733c(0x155)]??0x0}};}),_0x26c5da=_0x286bdf['filter'](_0x3bd577=>_0x3bd577['stats'][_0x1edd87(0x144)]>0x0)[_0x1edd87(0x13b)](_0x1debde=>_0x1debde[_0x1edd87(0x148)]);return{'db':_0x44db53[_0x1edd87(0x133)]?.[_0x1edd87(0x147)],'dbId':_0x44db53[_0x1edd87(0x133)]?.[_0x1edd87(0x156)],'appCode':_0x44db53[_0x1edd87(0x133)]?.[_0x1edd87(0x13c)],'datasetCount':_0x286bdf[_0x1edd87(0x155)],'connectedDatasets':_0x26c5da,'datasets':_0x286bdf};}),_0x24bdd0=_0x1be8dc['reduce']((_0x5c3920,_0x490b27)=>_0x5c3920+_0x490b27[_0x2c3202(0x161)],0x0),_0x2670de=_0x1be8dc[_0x2c3202(0x153)]((_0x28f0ba,_0x272e92)=>_0x28f0ba+_0x272e92['datasets'][_0x2c3202(0x153)]((_0x143c2f,_0x53d3e8)=>_0x143c2f+_0x53d3e8['stats'][_0x2c3202(0x144)],0x0),0x0);return{'ok':!![],'data':_0x1be8dc[_0x2c3202(0x155)]===0x1?_0x1be8dc[0x0]:{'databases':_0x1be8dc},'message':_0x2c3202(0x149)+_0x1be8dc['length']+_0x2c3202(0x145)+_0x24bdd0+_0x2c3202(0x143)+_0x2670de+_0x2c3202(0x14d)};}};
@@ -1 +1 @@
1
- const a38_0xbdb453=a38_0x20ec;(function(_0x495c98,_0x2d6fe0){const _0x545a07=a38_0x20ec,_0x498a98=_0x495c98();while(!![]){try{const _0x3a5963=parseInt(_0x545a07(0x8c))/0x1+-parseInt(_0x545a07(0x88))/0x2*(parseInt(_0x545a07(0x8d))/0x3)+-parseInt(_0x545a07(0x93))/0x4+-parseInt(_0x545a07(0x82))/0x5*(parseInt(_0x545a07(0x99))/0x6)+-parseInt(_0x545a07(0x91))/0x7*(-parseInt(_0x545a07(0x81))/0x8)+-parseInt(_0x545a07(0x7c))/0x9*(parseInt(_0x545a07(0x78))/0xa)+parseInt(_0x545a07(0x94))/0xb*(parseInt(_0x545a07(0x8f))/0xc);if(_0x3a5963===_0x2d6fe0)break;else _0x498a98['push'](_0x498a98['shift']());}catch(_0x23577){_0x498a98['push'](_0x498a98['shift']());}}}(a38_0x4c43,0xa267c));function a38_0x20ec(_0x2674a1,_0x2ae202){_0x2674a1=_0x2674a1-0x74;const _0x4c43b3=a38_0x4c43();let _0x20ec34=_0x4c43b3[_0x2674a1];return _0x20ec34;}import{listDatasets}from'../../core/api-client.js';function a38_0x4c43(){const _0x26fca8=['1659287oRlPmp','trim','1638664siMQDR','19261gVmZqd','name','List\x20all\x20datasets\x20with\x20metadata','code','allFields','370482gNxrfX','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','dataset','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','appCode','170bhFJud','datasetKey','bool','read','570447KOIgWu','source','split','pkField','\x20dataset(s)','40umLdrN','80kCiamo','boolean','map','verbose','length','Found\x20','2VARIDY','list','string','description','654768gPUjUl','2097822WzvwtR','str','13704aNkqfx','tableName'];a38_0x4c43=function(){return _0x26fca8;};return a38_0x4c43();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a38_0xbdb453(0x75),'command':a38_0xbdb453(0x89),'description':a38_0xbdb453(0x96),'risk':a38_0xbdb453(0x7b),'flags':[{'name':a38_0xbdb453(0x95),'type':a38_0xbdb453(0x8a),'description':a38_0xbdb453(0x74)},CODE_FLAG_OPTIONAL,{'name':a38_0xbdb453(0x85),'type':a38_0xbdb453(0x83),'description':a38_0xbdb453(0x76)}],async 'execute'(_0x4e251b){const _0x4cea5f=a38_0xbdb453,_0x226192=_0x4e251b[_0x4cea5f(0x8e)]('name'),_0x3d87c4=_0x4e251b[_0x4cea5f(0x8e)](_0x4cea5f(0x97)),_0x9a0dcf=_0x4e251b[_0x4cea5f(0x7a)](_0x4cea5f(0x85)),_0xd8c531=await listDatasets(_0x4e251b[_0x4cea5f(0x77)],{..._0x226192&&{'name':_0x226192},..._0x3d87c4&&{'code':_0x3d87c4}}),_0x2a51ca=_0x9a0dcf?_0xd8c531:_0xd8c531[_0x4cea5f(0x84)](_0x56e44c=>{const _0x279a0c=_0x4cea5f,_0x52c1ae=_0x56e44c['dbtableConfig']??{};return{'id':_0x56e44c['id'],'name':_0x56e44c[_0x279a0c(0x95)],'code':_0x56e44c[_0x279a0c(0x97)],'description':_0x56e44c[_0x279a0c(0x8b)],'source':_0x56e44c[_0x279a0c(0x7d)],'db':_0x52c1ae['dbName'],'table':_0x52c1ae[_0x279a0c(0x90)],'datasetKey':_0x52c1ae[_0x279a0c(0x79)],'pk':_0x52c1ae[_0x279a0c(0x7f)],'fields':_0x52c1ae[_0x279a0c(0x98)]?_0x52c1ae[_0x279a0c(0x98)][_0x279a0c(0x7e)](',')[_0x279a0c(0x84)](_0x1b14c1=>_0x1b14c1[_0x279a0c(0x92)]()):[]};});return{'ok':!![],'data':{'total':_0x2a51ca[_0x4cea5f(0x86)],'datasets':_0x2a51ca},'message':_0x4cea5f(0x87)+_0x2a51ca[_0x4cea5f(0x86)]+_0x4cea5f(0x80)};}};
1
+ const a49_0x5813c1=a49_0x4cb2;(function(_0x3c3afb,_0x34070b){const _0x4e36f2=a49_0x4cb2,_0x330a08=_0x3c3afb();while(!![]){try{const _0x49cb62=-parseInt(_0x4e36f2(0x1cf))/0x1*(parseInt(_0x4e36f2(0x1ba))/0x2)+parseInt(_0x4e36f2(0x1ca))/0x3+-parseInt(_0x4e36f2(0x1ce))/0x4+-parseInt(_0x4e36f2(0x1bd))/0x5+parseInt(_0x4e36f2(0x1d0))/0x6*(-parseInt(_0x4e36f2(0x1c6))/0x7)+parseInt(_0x4e36f2(0x1bc))/0x8+parseInt(_0x4e36f2(0x1b8))/0x9;if(_0x49cb62===_0x34070b)break;else _0x330a08['push'](_0x330a08['shift']());}catch(_0x4fa567){_0x330a08['push'](_0x330a08['shift']());}}}(a49_0x1bb8,0x800ad));function a49_0x4cb2(_0xc1a804,_0x5b5f0b){_0xc1a804=_0xc1a804-0x1b6;const _0x1bb8e4=a49_0x1bb8();let _0x4cb2a4=_0x1bb8e4[_0xc1a804];return _0x4cb2a4;}function a49_0x1bb8(){const _0x11688a=['954OdSrmd','dbName','list','Found\x20','\x20dataset(s)','allFields','dataset','List\x20all\x20datasets\x20with\x20metadata','14606649yUJlPR','boolean','842508GwNOXy','bool','1497048LRkTfK','2731465qvcsAD','verbose','description','string','datasetKey','source','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','read','tableName','12313AKMPPw','pkField','name','dbtableConfig','1672935duajkY','map','code','str','699176gaIGVJ','2Kvwkoj'];a49_0x1bb8=function(){return _0x11688a;};return a49_0x1bb8();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a49_0x5813c1(0x1b6),'command':a49_0x5813c1(0x1d2),'description':a49_0x5813c1(0x1b7),'risk':a49_0x5813c1(0x1c4),'flags':[{'name':a49_0x5813c1(0x1c8),'type':a49_0x5813c1(0x1c0),'description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a49_0x5813c1(0x1b9),'description':a49_0x5813c1(0x1c3)}],async 'execute'(_0x26108f){const _0x3444c0=a49_0x5813c1,_0x25d438=_0x26108f[_0x3444c0(0x1cd)](_0x3444c0(0x1c8)),_0xf55aa=_0x26108f[_0x3444c0(0x1cd)](_0x3444c0(0x1cc)),_0x5ca334=_0x26108f[_0x3444c0(0x1bb)](_0x3444c0(0x1be)),_0x3a3224=await listDatasets(_0x26108f['appCode'],{..._0x25d438&&{'name':_0x25d438},..._0xf55aa&&{'code':_0xf55aa}}),_0x11fe80=_0x5ca334?_0x3a3224:_0x3a3224[_0x3444c0(0x1cb)](_0x1f75e0=>{const _0x234a7f=_0x3444c0,_0x667cde=_0x1f75e0[_0x234a7f(0x1c9)]??{};return{'id':_0x1f75e0['id'],'name':_0x1f75e0['name'],'code':_0x1f75e0['code'],'description':_0x1f75e0[_0x234a7f(0x1bf)],'source':_0x1f75e0[_0x234a7f(0x1c2)],'db':_0x667cde[_0x234a7f(0x1d1)],'table':_0x667cde[_0x234a7f(0x1c5)],'datasetKey':_0x667cde[_0x234a7f(0x1c1)],'pk':_0x667cde[_0x234a7f(0x1c7)],'fields':_0x667cde['allFields']?_0x667cde[_0x234a7f(0x1d5)]['split'](',')['map'](_0x68cc59=>_0x68cc59['trim']()):[]};});return{'ok':!![],'data':{'total':_0x11fe80['length'],'datasets':_0x11fe80},'message':_0x3444c0(0x1d3)+_0x11fe80['length']+_0x3444c0(0x1d4)};}};
@@ -1 +1 @@
1
- const a39_0x252abf=a39_0x5557;(function(_0x5d2548,_0x4346aa){const _0x51923a=a39_0x5557,_0x46f9dd=_0x5d2548();while(!![]){try{const _0x53d7df=-parseInt(_0x51923a(0xbe))/0x1+parseInt(_0x51923a(0xb3))/0x2+-parseInt(_0x51923a(0xc7))/0x3*(-parseInt(_0x51923a(0xbb))/0x4)+-parseInt(_0x51923a(0xc3))/0x5+-parseInt(_0x51923a(0xc5))/0x6+-parseInt(_0x51923a(0xcd))/0x7+parseInt(_0x51923a(0xb6))/0x8;if(_0x53d7df===_0x4346aa)break;else _0x46f9dd['push'](_0x46f9dd['shift']());}catch(_0x77aa04){_0x46f9dd['push'](_0x46f9dd['shift']());}}}(a39_0xf7e6,0x42a7a));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a39_0x5557(_0x59f03c,_0x47e2d3){_0x59f03c=_0x59f03c-0xb2;const _0xf7e65a=a39_0xf7e6();let _0x5557f9=_0xf7e65a[_0x59f03c];return _0x5557f9;}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a39_0x252abf(0xb4),'command':a39_0x252abf(0xc1),'description':a39_0x252abf(0xc2),'risk':a39_0x252abf(0xbf),'flags':[CODE_FLAG_OPTIONAL,{'name':a39_0x252abf(0xca),'type':a39_0x252abf(0xc9),'description':a39_0x252abf(0xc0)},{'name':a39_0x252abf(0xcb),'type':a39_0x252abf(0xc9),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':a39_0x252abf(0xb8),'type':a39_0x252abf(0xcc),'description':a39_0x252abf(0xc4)}],async 'execute'(_0x4bf8d1){const _0x2d43ae=a39_0x252abf,_0x1d83e3=_0x4bf8d1[_0x2d43ae(0xba)](_0x2d43ae(0xc6)),_0x2a19a9=_0x4bf8d1[_0x2d43ae(0xba)]('operation'),_0x324207=_0x4bf8d1[_0x2d43ae(0xbd)](_0x2d43ae(0xb8));if(_0x2a19a9){const {dataset:_0xbc30a8,operation:_0x1db209}=await getOperationDetail(_0x4bf8d1[_0x2d43ae(0xb5)],_0x1d83e3,_0x2a19a9);return{'ok':!![],'data':{'dataset':_0xbc30a8,'operation':_0x1db209}};}const {dataset:_0x5fa0fd,operations:_0x4e09ad}=await getDatasetOperations(_0x1d83e3);return{'ok':!![],'data':{'dataset':_0x5fa0fd,'total':_0x4e09ad[_0x2d43ae(0xbc)],'operations':_0x324207?_0x4e09ad:_0x4e09ad[_0x2d43ae(0xb7)](_0x49890e=>({'name':_0x49890e['name'],'displayName':_0x49890e[_0x2d43ae(0xb9)],'type':_0x49890e[_0x2d43ae(0xb2)],'method':_0x49890e['method'],'enabled':_0x49890e[_0x2d43ae(0xc8)]}))}};}};function a39_0xf7e6(){const _0xc39152=['string','alias','operation','boolean','2391949zNYmQy','type','447436lhbEjq','dataset','appCode','5840824RZotJt','map','verbose','displayName','str','1375732ATpiYN','length','bool','107312qZrabj','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','operations','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','1384600cazATJ','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1792782GFjYHE','code','3uWcybD','enabled'];a39_0xf7e6=function(){return _0xc39152;};return a39_0xf7e6();}
1
+ const a50_0x12520a=a50_0x1063;(function(_0x3f3d7,_0x241f36){const _0x22fc85=a50_0x1063,_0x1fed98=_0x3f3d7();while(!![]){try{const _0x1314fb=parseInt(_0x22fc85(0x16a))/0x1*(parseInt(_0x22fc85(0x163))/0x2)+parseInt(_0x22fc85(0x166))/0x3+parseInt(_0x22fc85(0x176))/0x4*(-parseInt(_0x22fc85(0x174))/0x5)+parseInt(_0x22fc85(0x17b))/0x6*(parseInt(_0x22fc85(0x173))/0x7)+parseInt(_0x22fc85(0x167))/0x8+-parseInt(_0x22fc85(0x168))/0x9*(-parseInt(_0x22fc85(0x17c))/0xa)+-parseInt(_0x22fc85(0x170))/0xb;if(_0x1314fb===_0x241f36)break;else _0x1fed98['push'](_0x1fed98['shift']());}catch(_0x1fbeb6){_0x1fed98['push'](_0x1fed98['shift']());}}}(a50_0x1788,0xb41ce));function a50_0x1788(){const _0x821539=['method','bool','appCode','35442132kzdnOt','code','map','22519pqzfmf','25eufrpY','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','353572mNdIxW','str','type','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','verbose','1110aSXKji','230mZdBIp','dataset','displayName','boolean','string','operations','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','3316XsJvGy','operation','name','3807822RwxJOG','8159720hmTSLJ','503559lSkmjE','alias','139mrxRXC','enabled','length'];a50_0x1788=function(){return _0x821539;};return a50_0x1788();}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a50_0x1063(_0x55130e,_0x2e7344){_0x55130e=_0x55130e-0x161;const _0x1788d4=a50_0x1788();let _0x1063ec=_0x1788d4[_0x55130e];return _0x1063ec;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a50_0x12520a(0x17d),'command':a50_0x12520a(0x161),'description':a50_0x12520a(0x175),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x12520a(0x169),'type':a50_0x12520a(0x180),'description':a50_0x12520a(0x179)},{'name':a50_0x12520a(0x164),'type':a50_0x12520a(0x180),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':'verbose','type':a50_0x12520a(0x17f),'description':a50_0x12520a(0x162)}],async 'execute'(_0x5a0a7d){const _0x17fecc=a50_0x12520a,_0x377b8d=_0x5a0a7d[_0x17fecc(0x177)](_0x17fecc(0x171)),_0x310d7c=_0x5a0a7d[_0x17fecc(0x177)](_0x17fecc(0x164)),_0x3e24a0=_0x5a0a7d[_0x17fecc(0x16e)](_0x17fecc(0x17a));if(_0x310d7c){const {dataset:_0x30af28,operation:_0x361a5e}=await getOperationDetail(_0x5a0a7d[_0x17fecc(0x16f)],_0x377b8d,_0x310d7c);return{'ok':!![],'data':{'dataset':_0x30af28,'operation':_0x361a5e}};}const {dataset:_0x308385,operations:_0x147f7b}=await getDatasetOperations(_0x377b8d);return{'ok':!![],'data':{'dataset':_0x308385,'total':_0x147f7b[_0x17fecc(0x16c)],'operations':_0x3e24a0?_0x147f7b:_0x147f7b[_0x17fecc(0x172)](_0x5de41f=>({'name':_0x5de41f[_0x17fecc(0x165)],'displayName':_0x5de41f[_0x17fecc(0x17e)],'type':_0x5de41f[_0x17fecc(0x178)],'method':_0x5de41f[_0x17fecc(0x16d)],'enabled':_0x5de41f[_0x17fecc(0x16b)]}))}};}};
@@ -1 +1 @@
1
- const a40_0x391a9c=a40_0x190e;(function(_0x55c116,_0x2685e3){const _0x3647c0=a40_0x190e,_0x211b59=_0x55c116();while(!![]){try{const _0x1cceaa=parseInt(_0x3647c0(0xe9))/0x1*(-parseInt(_0x3647c0(0x123))/0x2)+-parseInt(_0x3647c0(0x10a))/0x3+parseInt(_0x3647c0(0x12f))/0x4+parseInt(_0x3647c0(0x105))/0x5*(-parseInt(_0x3647c0(0xfb))/0x6)+-parseInt(_0x3647c0(0x128))/0x7+parseInt(_0x3647c0(0x107))/0x8+parseInt(_0x3647c0(0xed))/0x9;if(_0x1cceaa===_0x2685e3)break;else _0x211b59['push'](_0x211b59['shift']());}catch(_0x1ba39c){_0x211b59['push'](_0x211b59['shift']());}}}(a40_0x4991,0xe7ad2));import a40_0x5b426d from'chalk';import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import{CLI_BIN_NAME}from'../constant/cli.js';import{BUILD_NUMBER}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 runDoctor(_0x12f3d6,_0x5e42db,_0x17c6f7){const _0x68a4b4=a40_0x190e,_0x3b9845=_0x12f3d6[_0x68a4b4(0xf1)];let _0xd412b3=_0x68a4b4(0x10b);try{const _0x367ea4=resolve(dirname(fileURLToPath(import.meta.url)),'..'),_0xce4950=JSON[_0x68a4b4(0x11c)](readFileSync(resolve(_0x367ea4,'package.json'),_0x68a4b4(0x10c)));_0xd412b3=_0xce4950[_0x68a4b4(0x117)]||_0x68a4b4(0x10b);}catch{}const _0x22326e=BUILD_NUMBER?_0xd412b3+'+'+BUILD_NUMBER:_0xd412b3;console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](CLI_BIN_NAME+_0x68a4b4(0x100))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('─'[_0x68a4b4(0x104)](0x32))),console[_0x68a4b4(0x112)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x22326e),console[_0x68a4b4(0x112)](_0x68a4b4(0x127)+process[_0x68a4b4(0x117)]),console['log'](_0x68a4b4(0x11a)+process[_0x68a4b4(0xfe)]+'\x20'+process[_0x68a4b4(0x12e)]),console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xf8))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x47c7e6=getGlobalConfigPath(),_0x253193=getProjectConfigPath();console[_0x68a4b4(0x112)](_0x68a4b4(0x111)+(_0x47c7e6||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf5)+(_0x253193||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold']('\x20\x20Merged\x20Config')),console[_0x68a4b4(0x112)](a40_0x5b426d['gray']('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x523400=buildConfigFromFlags(_0x17c6f7);console[_0x68a4b4(0x112)](_0x68a4b4(0x101)+(_0x523400[_0x68a4b4(0x12a)]||a40_0x5b426d['red']('(not\x20set)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0xec)+_0x523400[_0x68a4b4(0x108)]),console[_0x68a4b4(0x112)](_0x68a4b4(0x12d)+_0x523400[_0x68a4b4(0xfc)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x523400['apiDir']),console['log'](_0x68a4b4(0x129)+(_0x523400[_0x68a4b4(0x115)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x102)+(_0x523400['currentApp']||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x106)+(_0x523400[_0x68a4b4(0xf9)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x523400[_0x68a4b4(0x114)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x113)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xff)+(_0x523400['pageSize']??a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x126)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf7)+_0x523400['riskLevel']),console['log'](_0x68a4b4(0x10e)+_0x523400[_0x68a4b4(0xfd)]),console['log'](_0x68a4b4(0x11b)+(_0x523400[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0x12c)+_0x523400[_0x68a4b4(0x122)][_0x68a4b4(0xf4)]+')'):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d))));const _0x5cc382=Object['keys'](_0x523400[_0x68a4b4(0x110)]);if(_0x5cc382[_0x68a4b4(0xf4)]>0x0){console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold'](_0x68a4b4(0x124))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));for(const _0x25607a of _0x5cc382){const _0x4d3170=_0x523400[_0x68a4b4(0x110)][_0x25607a],_0x3f3e71=_0x25607a===_0x523400[_0x68a4b4(0x115)],_0x5ef2f0=_0x25607a===_0x523400['currentApp'],_0x5a0b69=_0x5ef2f0?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xf6)):'',_0x933a04=_0x3f3e71?_0x68a4b4(0x125):'';console['log']('\x20\x20'+_0x25607a+_0x933a04+_0x5a0b69),console[_0x68a4b4(0x112)](_0x68a4b4(0xf3)+_0x4d3170[_0x68a4b4(0x103)]),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x4d3170[_0x68a4b4(0x108)]||a40_0x5b426d[_0x68a4b4(0x11f)]('(inherit)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0x118)+(_0x4d3170[_0x68a4b4(0xee)]||a40_0x5b426d['gray'](_0x68a4b4(0x12b)))),console['log'](_0x68a4b4(0xf0)+(_0x4d3170[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xeb)):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x12b))));}}console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xef))),console[_0x68a4b4(0x112)](a40_0x5b426d['gray'](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e))),console[_0x68a4b4(0x112)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x68a4b4(0x112)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x68a4b4(0x112)](_0x68a4b4(0x109)+getRuntimeDomain()),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xfa))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));const _0x317f65=_0x523400['cookie']||_0x12f3d6['auth'][_0x68a4b4(0x122)];if(_0x317f65){const _0x5aab33=await getIsSessionValid();console['log'](_0x68a4b4(0x10d)+(_0x5aab33?a40_0x5b426d['green']('✓\x20Valid'):a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x116))));}else console[_0x68a4b4(0x112)](_0x68a4b4(0x10d)+a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x120)));console[_0x68a4b4(0x112)]();}function a40_0x190e(_0x2d3e8f,_0x4516c7){_0x2d3e8f=_0x2d3e8f-0xe9;const _0x499163=a40_0x4991();let _0x190eb4=_0x499163[_0x2d3e8f];return _0x190eb4;}export const doctorCommand={'name':a40_0x391a9c(0xf2),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity',async 'run'(_0x224a3f,_0x1ddaf3,_0x51185a){await runDoctor(_0x224a3f,_0x1ddaf3,_0x51185a);}};function a40_0x4991(){const _0x56f7ba=['length','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','explicitAppName','\x20\x20Auth','6921522ptYvgN','locale','verbose','platform','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','appcode','repeat','5mRsXbL','\x20\x20explicitAppName:\x20','3112432iKBiBA','env','\x20\x20runtimeDomain:\x20\x20\x20','1974777uFSQlz','0.0.0','utf-8','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','apps','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','(default:\x20pretty)','format','defaultApp','✗\x20Expired','version','\x20\x20\x20\x20apiDir:\x20\x20\x20','bold','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','parse','(none)','(not\x20found)','gray','✗\x20Not\x20logged\x20in','green','cookie','1004214Xllvgd','\x20\x20Apps','\x20(default)','(default)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','959651spVgbT','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appCode','(inherit)','(set,\x20length=','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','6194976JbRhlD','1jXlLIT','\x20\x20─','(set)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','13159746cviyVk','apiDir','\x20\x20API\x20Endpoints','\x20\x20\x20\x20cookie:\x20\x20\x20','config','doctor','\x20\x20\x20\x20appcode:\x20\x20'];a40_0x4991=function(){return _0x56f7ba;};return a40_0x4991();}
1
+ function a51_0x1224(){const _0x5375f5=['length','keys','10XXuVRq','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','1144102uhaEPO','(not\x20found)','\x20\x20Auth','appcode','116mQirDv','explicitAppName','\x20doctor','630492FnGENl','472tDjLaA','(default:\x20pretty)','\x20\x20runtimeDomain:\x20\x20\x20','(not\x20set)','\x20\x20\x20\x20apiDir:\x20\x20\x20','format','gray','check','repeat','slice','\x20\x20\x20\x20appcode:\x20\x20','apps','✗\x20Not\x20logged\x20in','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','locale','\x20(default)','(inherit)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','18982997zArVFY','apiDir','red','green','appCode','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','platform','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','8076523DHHCfB','env','verbose','✗\x20Expired','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20explicitAppName:\x20','bold','defaultApp','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','(none)','currentApp','2155TKjbXo','read','8166RohLOU','riskLevel','188883suEJcb','24705uVhoAk','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','cookie','\x20\x20Merged\x20Config'];a51_0x1224=function(){return _0x5375f5;};return a51_0x1224();}const a51_0x5e4441=a51_0x1b42;(function(_0x53c475,_0x2de46b){const _0xa16abe=a51_0x1b42,_0x38c136=_0x53c475();while(!![]){try{const _0x4588bc=-parseInt(_0xa16abe(0x115))/0x1+parseInt(_0xa16abe(0x11c))/0x2+-parseInt(_0xa16abe(0x10c))/0x3*(-parseInt(_0xa16abe(0x119))/0x4)+parseInt(_0xa16abe(0x107))/0x5*(-parseInt(_0xa16abe(0x109))/0x6)+-parseInt(_0xa16abe(0xf7))/0x7+-parseInt(_0xa16abe(0x11d))/0x8*(-parseInt(_0xa16abe(0x10b))/0x9)+-parseInt(_0xa16abe(0x113))/0xa*(-parseInt(_0xa16abe(0x131))/0xb);if(_0x4588bc===_0x2de46b)break;else _0x38c136['push'](_0x38c136['shift']());}catch(_0x4c1b85){_0x38c136['push'](_0x38c136['shift']());}}}(a51_0x1224,0x9aac3));import a51_0x467d24 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';function a51_0x1b42(_0x5bf905,_0x38fa24){_0x5bf905=_0x5bf905-0xec;const _0x12241d=a51_0x1224();let _0x1b42f5=_0x12241d[_0x5bf905];return _0x1b42f5;}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(_0x3e73e7){const _0x32d26f=a51_0x1b42,_0x4af091=getCliVersion(),_0x5b7912=GIT_COMMIT!==_0x32d26f(0xff)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x32d26f(0x126)](0x0,0xa)+')':VERSION,_0x3e9dda=buildConfigFromFlags({});console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24['bold'](CLI_BIN_NAME+_0x32d26f(0x11b))),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x123)]('─'[_0x32d26f(0x125)](0x32))),console[_0x32d26f(0x12f)](_0x32d26f(0x114)+_0x5b7912),console[_0x32d26f(0x12f)](_0x32d26f(0x130)+process['version']),console[_0x32d26f(0x12f)](_0x32d26f(0xfc)+process[_0x32d26f(0xf1)]+'\x20'+process[_0x32d26f(0x104)]),console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)](_0x32d26f(0xf3))),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x123)]('\x20\x20─'[_0x32d26f(0x125)](0x1e)));const _0x5be850=getGlobalConfigPath(),_0x322b36=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5be850||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x116)))),console[_0x32d26f(0x12f)](_0x32d26f(0xf4)+(_0x322b36||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x116)))),console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)](_0x32d26f(0x110))),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x123)]('\x20\x20─'[_0x32d26f(0x125)](0x1e))),console['log'](_0x32d26f(0xfe)+(_0x3e9dda[_0x32d26f(0xee)]||a51_0x467d24['red'](_0x32d26f(0x120)))),console[_0x32d26f(0x12f)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e9dda['env']),console[_0x32d26f(0x12f)](_0x32d26f(0x10d)+_0x3e9dda[_0x32d26f(0x12b)]),console[_0x32d26f(0x12f)](_0x32d26f(0xf5)+_0x3e9dda[_0x32d26f(0x132)]),console[_0x32d26f(0x12f)](_0x32d26f(0x12a)+(_0x3e9dda[_0x32d26f(0x102)]||a51_0x467d24['gray'](_0x32d26f(0x105)))),console[_0x32d26f(0x12f)](_0x32d26f(0xf0)+(_0x3e9dda[_0x32d26f(0x106)]||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x105)))),console['log'](_0x32d26f(0x100)+(_0x3e9dda[_0x32d26f(0x11a)]||a51_0x467d24['gray'](_0x32d26f(0x105)))),console[_0x32d26f(0x12f)](_0x32d26f(0xf2)+(_0x3e9dda[_0x32d26f(0x122)]||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x11e)))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e9dda['pageSize']??a51_0x467d24[_0x32d26f(0x123)]('(default)'))),console[_0x32d26f(0x12f)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3e9dda[_0x32d26f(0x10a)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e9dda[_0x32d26f(0xf9)]),console[_0x32d26f(0x12f)](_0x32d26f(0xef)+(_0x3e9dda[_0x32d26f(0x10f)]?a51_0x467d24[_0x32d26f(0xed)]('(set,\x20length='+_0x3e9dda[_0x32d26f(0x10f)][_0x32d26f(0x111)]+')'):a51_0x467d24[_0x32d26f(0x123)]('(none)')));const _0x336902=Object[_0x32d26f(0x112)](_0x3e9dda[_0x32d26f(0x128)]);if(_0x336902[_0x32d26f(0x111)]>0x0){console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)]('\x20\x20Apps')),console[_0x32d26f(0x12f)](a51_0x467d24['gray']('\x20\x20─'[_0x32d26f(0x125)](0x1e)));for(const _0xf326cb of _0x336902){const _0x18b9fc=_0x3e9dda[_0x32d26f(0x128)][_0xf326cb],_0x41e03b=_0xf326cb===_0x3e9dda['defaultApp'],_0x1cc18c=_0xf326cb===_0x3e9dda['currentApp'],_0x27552a=_0x1cc18c?a51_0x467d24[_0x32d26f(0xed)](_0x32d26f(0xfd)):'',_0x4bcd08=_0x41e03b?_0x32d26f(0x12c):'';console[_0x32d26f(0x12f)]('\x20\x20'+_0xf326cb+_0x4bcd08+_0x27552a),console['log'](_0x32d26f(0x127)+_0x18b9fc[_0x32d26f(0x118)]),console[_0x32d26f(0x12f)](_0x32d26f(0xfb)+(_0x18b9fc[_0x32d26f(0xf8)]||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x12d)))),console['log'](_0x32d26f(0x121)+(_0x18b9fc['apiDir']||a51_0x467d24[_0x32d26f(0x123)]('(inherit)'))),console[_0x32d26f(0x12f)]('\x20\x20\x20\x20cookie:\x20\x20\x20'+(_0x18b9fc[_0x32d26f(0x10f)]?a51_0x467d24[_0x32d26f(0xed)]('(set)'):a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x12d))));}}console[_0x32d26f(0x12f)](),console['log'](a51_0x467d24[_0x32d26f(0x101)]('\x20\x20API\x20Endpoints')),console['log'](a51_0x467d24['gray'](_0x32d26f(0x10e)['repeat'](0x1e))),console[_0x32d26f(0x12f)](_0x32d26f(0x12e)+getApiDomain()),console[_0x32d26f(0x12f)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x32d26f(0x11f)+getRuntimeDomain()),console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)](_0x32d26f(0x117))),console[_0x32d26f(0x12f)](a51_0x467d24['gray'](_0x32d26f(0x10e)[_0x32d26f(0x125)](0x1e)));const _0x37a433=_0x3e9dda[_0x32d26f(0x10f)];if(_0x37a433){const _0x1a1aed=await getIsSessionValid();console[_0x32d26f(0x12f)](_0x32d26f(0x103)+(_0x1a1aed?a51_0x467d24[_0x32d26f(0xed)]('✓\x20Valid'):a51_0x467d24['red'](_0x32d26f(0xfa))));}else console[_0x32d26f(0x12f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a51_0x467d24[_0x32d26f(0xec)](_0x32d26f(0x129)));return console[_0x32d26f(0x12f)](),{'ok':!![]};}export const doctorDefinition={'service':a51_0x5e4441(0xf6),'command':a51_0x5e4441(0x124),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a51_0x5e4441(0x108),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a41_0x385147=a41_0x258d;(function(_0x5a8ce0,_0x50c6e3){const _0x1a3e4f=a41_0x258d,_0x43d166=_0x5a8ce0();while(!![]){try{const _0x3cbbfb=parseInt(_0x1a3e4f(0x179))/0x1*(parseInt(_0x1a3e4f(0x16d))/0x2)+parseInt(_0x1a3e4f(0x17d))/0x3+parseInt(_0x1a3e4f(0x17e))/0x4*(parseInt(_0x1a3e4f(0x17b))/0x5)+parseInt(_0x1a3e4f(0x176))/0x6+-parseInt(_0x1a3e4f(0x16e))/0x7*(-parseInt(_0x1a3e4f(0x171))/0x8)+parseInt(_0x1a3e4f(0x17a))/0x9*(parseInt(_0x1a3e4f(0x175))/0xa)+-parseInt(_0x1a3e4f(0x17c))/0xb*(parseInt(_0x1a3e4f(0x172))/0xc);if(_0x3cbbfb===_0x50c6e3)break;else _0x43d166['push'](_0x43d166['shift']());}catch(_0x315353){_0x43d166['push'](_0x43d166['shift']());}}}(a41_0x27ae,0x38f4d));function a41_0x258d(_0x5af3a1,_0x4403d8){_0x5af3a1=_0x5af3a1-0x16d;const _0x27aecd=a41_0x27ae();let _0x258dcd=_0x27aecd[_0x5af3a1];return _0x258dcd;}function a41_0x27ae(){const _0x3d432e=['6358inciCr','687444vgAogv','36uejsHZ','yes','1146BqpOQO','11228DZPPLw','info','appcode','96BhHWIr','21036VBobeZ','init','logger','520JZXWEz','2717442ZSYbiT','env','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','82DAjuXR','7056QJQYLi','254150zkhAVm'];a41_0x27ae=function(){return _0x3d432e;};return a41_0x27ae();}import{jsx as a41_0x570192}from'react/jsx-runtime';import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a41_0x385147(0x173),'description':a41_0x385147(0x178),async 'run'(_0x4151cf,_0x530de1,_0x1e2205){const _0x5c22f0=a41_0x385147;_0x4151cf[_0x5c22f0(0x174)][_0x5c22f0(0x16f)]('init','执行初始化配置命令');const _0x351c04=_0x1e2205[_0x5c22f0(0x170)],_0x48d0d2=_0x1e2205[_0x5c22f0(0x177)];render(a41_0x570192(Init,{'appcode':_0x351c04,'env':_0x48d0d2,'autoYes':_0x1e2205[_0x5c22f0(0x17f)]}));}};
1
+ function a52_0x2a02(_0x351d31,_0x1b6c73){_0x351d31=_0x351d31-0xc3;const _0xed1f75=a52_0xed1f();let _0x2a0251=_0xed1f75[_0x351d31];return _0x2a0251;}const a52_0x20cbf7=a52_0x2a02;function a52_0xed1f(){const _0x14a94f=['logger','appcode','info','2798rfErwP','2363528oEKdzH','env','yes','Target\x20environment','init','6501096ljkENS','App\x20code\x20to\x20initialize','boolean','5168890tihtYa','1842470RRzZTD','1415792BKoNms','1087527fKdknk','44enVfyE','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','Auto-confirm\x20prompts'];a52_0xed1f=function(){return _0x14a94f;};return a52_0xed1f();}(function(_0x1dc02d,_0x5168a4){const _0x24d864=a52_0x2a02,_0x1f73b6=_0x1dc02d();while(!![]){try{const _0x58385f=parseInt(_0x24d864(0xcf))/0x1*(-parseInt(_0x24d864(0xd5))/0x2)+parseInt(_0x24d864(0xce))/0x3+parseInt(_0x24d864(0xcd))/0x4+parseInt(_0x24d864(0xcb))/0x5+-parseInt(_0x24d864(0xc8))/0x6+-parseInt(_0x24d864(0xcc))/0x7+parseInt(_0x24d864(0xc3))/0x8;if(_0x58385f===_0x5168a4)break;else _0x1f73b6['push'](_0x1f73b6['shift']());}catch(_0x394153){_0x1f73b6['push'](_0x1f73b6['shift']());}}}(a52_0xed1f,0x9b9d2));import{initConfig}from'../init/main.js';const flagDefs=[{'name':a52_0x20cbf7(0xd3),'type':'string','description':a52_0x20cbf7(0xc9)},{'name':'env','type':'string','description':a52_0x20cbf7(0xc6)},{'name':a52_0x20cbf7(0xc5),'type':a52_0x20cbf7(0xca),'description':a52_0x20cbf7(0xd1),'default':![]}];export const initCommand={'name':a52_0x20cbf7(0xc7),'description':a52_0x20cbf7(0xd0),'flags':flagDefs,async 'run'(_0x2b64ae,_0x44e2e8,_0x365bc5){const _0x1e6232=a52_0x20cbf7;_0x2b64ae[_0x1e6232(0xd2)][_0x1e6232(0xd4)](_0x1e6232(0xc7),'执行初始化配置命令'),await initConfig({'appcode':_0x365bc5['appcode'],'env':_0x365bc5[_0x1e6232(0xc4)],'autoYes':_0x365bc5[_0x1e6232(0xc5)]});}};
@@ -1 +1 @@
1
- const a42_0x56cf26=a42_0x1496;(function(_0x56affd,_0x1379f5){const _0x1cb462=a42_0x1496,_0xdbc665=_0x56affd();while(!![]){try{const _0x251799=-parseInt(_0x1cb462(0x19b))/0x1*(-parseInt(_0x1cb462(0x19a))/0x2)+-parseInt(_0x1cb462(0x19f))/0x3*(parseInt(_0x1cb462(0x19e))/0x4)+-parseInt(_0x1cb462(0x197))/0x5*(parseInt(_0x1cb462(0x1a1))/0x6)+-parseInt(_0x1cb462(0x1a4))/0x7+-parseInt(_0x1cb462(0x19c))/0x8*(parseInt(_0x1cb462(0x1a2))/0x9)+parseInt(_0x1cb462(0x198))/0xa+parseInt(_0x1cb462(0x1a0))/0xb;if(_0x251799===_0x1379f5)break;else _0xdbc665['push'](_0xdbc665['shift']());}catch(_0x53f2a5){_0xdbc665['push'](_0xdbc665['shift']());}}}(a42_0xa5b6,0x814ef));function a42_0xa5b6(){const _0x240bf9=['log','7176792SIbgHd','46975Wopmrz','10128630XylENG','!\x20Not\x20logged\x20in','43916NmSYuc','27jNbrzC','8CvSMgR','Logout\x20from\x20rabetbase','1049556oYFgRI','3pMGvIy','18171659etHPdQ','246eCwxZp','9496899LApmkg'];a42_0xa5b6=function(){return _0x240bf9;};return a42_0xa5b6();}import{unlinkSync,existsSync}from'node:fs';function a42_0x1496(_0x5d9a25,_0x6a0caf){_0x5d9a25=_0x5d9a25-0x197;const _0xa5b6de=a42_0xa5b6();let _0x14962f=_0xa5b6de[_0x5d9a25];return _0x14962f;}import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':'logout','description':a42_0x56cf26(0x19d),async 'run'(_0x21e3e2,_0x287c23,_0x549a64){const _0x1167be=a42_0x56cf26;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x1167be(0x1a3)]('✓\x20Logged\x20out')):console[_0x1167be(0x1a3)](_0x1167be(0x199));}};
1
+ function a53_0x2f03(){const _0x3c4ec1=['589044wIstoj','1874604qzRcJJ','12471705wEIBaU','8435FUrNkZ','✓\x20Logged\x20out','7616364uNUuss','706249DBpmTi','1596032oFwUMR','6ecWUjX','!\x20Not\x20logged\x20in','3396ZfFyrE'];a53_0x2f03=function(){return _0x3c4ec1;};return a53_0x2f03();}(function(_0x371dfb,_0x20bb24){const _0x5fa8e9=a53_0x2b27,_0x37da87=_0x371dfb();while(!![]){try{const _0xa8dbcb=parseInt(_0x5fa8e9(0x89))/0x1+parseInt(_0x5fa8e9(0x8e))/0x2+parseInt(_0x5fa8e9(0x8b))/0x3*(parseInt(_0x5fa8e9(0x8f))/0x4)+-parseInt(_0x5fa8e9(0x91))/0x5*(-parseInt(_0x5fa8e9(0x8d))/0x6)+-parseInt(_0x5fa8e9(0x88))/0x7+parseInt(_0x5fa8e9(0x8a))/0x8+-parseInt(_0x5fa8e9(0x90))/0x9;if(_0xa8dbcb===_0x20bb24)break;else _0x37da87['push'](_0x37da87['shift']());}catch(_0x157aab){_0x37da87['push'](_0x37da87['shift']());}}}(a53_0x2f03,0x9707e));import{unlinkSync,existsSync}from'node:fs';function a53_0x2b27(_0x4aa052,_0x46e3d8){_0x4aa052=_0x4aa052-0x88;const _0x2f0305=a53_0x2f03();let _0x2b2759=_0x2f0305[_0x4aa052];return _0x2b2759;}import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':'logout','description':'Logout\x20from\x20rabetbase',async 'run'(_0x44ef5b,_0x11aacc,_0x129ed7){const _0xb4bdcc=a53_0x2b27;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0xb4bdcc(0x92))):console['log'](_0xb4bdcc(0x8c));}};
@@ -1 +1 @@
1
- const a43_0xc46499=a43_0x308c;(function(_0x3dad49,_0xed101b){const _0xab1561=a43_0x308c,_0x281c4b=_0x3dad49();while(!![]){try{const _0x467f97=parseInt(_0xab1561(0x138))/0x1+-parseInt(_0xab1561(0x139))/0x2+parseInt(_0xab1561(0x12a))/0x3+-parseInt(_0xab1561(0x148))/0x4*(-parseInt(_0xab1561(0x13e))/0x5)+parseInt(_0xab1561(0x131))/0x6*(-parseInt(_0xab1561(0x141))/0x7)+-parseInt(_0xab1561(0x142))/0x8*(parseInt(_0xab1561(0x13c))/0x9)+parseInt(_0xab1561(0x12f))/0xa;if(_0x467f97===_0xed101b)break;else _0x281c4b['push'](_0x281c4b['shift']());}catch(_0x1c405d){_0x281c4b['push'](_0x281c4b['shift']());}}}(a43_0x12c2,0xf17bb));function showLogs(_0x1c01d5){const _0x345205=a43_0x308c,_0x588fb8=_0x1c01d5[_0x345205(0x144)][_0x345205(0x145)]();if(_0x588fb8[_0x345205(0x146)]===0x0){console['log'](_0x345205(0x133));return;}console[_0x345205(0x132)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x588fb8[_0x345205(0x135)]((_0x343bd2,_0x5a5311)=>{const _0x3132b5=_0x345205,_0xdbc9bd=new Date(_0x343bd2[_0x3132b5(0x12e)])[_0x3132b5(0x137)](_0x3132b5(0x13d)),_0x2f12da=_0x343bd2[_0x3132b5(0x12d)]==='success'?'√':_0x343bd2['level']===_0x3132b5(0x149)?'×':_0x343bd2['level']===_0x3132b5(0x12c)?'!':'i';console[_0x3132b5(0x132)](_0x5a5311+0x1+'.\x20'+_0x2f12da+'\x20['+_0x343bd2[_0x3132b5(0x136)]+']\x20'+_0x343bd2['message']),console['log'](_0x3132b5(0x143)+_0xdbc9bd),_0x343bd2['duration']&&console['log'](_0x3132b5(0x12b)+_0x343bd2[_0x3132b5(0x140)]+'ms'),_0x343bd2[_0x3132b5(0x134)]&&Object[_0x3132b5(0x13b)](_0x343bd2[_0x3132b5(0x134)])[_0x3132b5(0x146)]>0x0&&console[_0x3132b5(0x132)](_0x3132b5(0x13f)+JSON['stringify'](_0x343bd2[_0x3132b5(0x134)],null,0x2)),console['log']('');});}function clearLogs(_0x28c03c){const _0x4dcbf1=a43_0x308c;_0x28c03c[_0x4dcbf1(0x144)][_0x4dcbf1(0x147)](),console[_0x4dcbf1(0x132)](_0x4dcbf1(0x130));}function a43_0x12c2(){const _0x1f36a7=['en-US','15sGNXwg','\x20\x20\x20Details:\x20','duration','7gARdfq','10910888OZSAni','\x20\x20\x20Time:\x20','logger','readLogs','length','clearLogs','253212KtcbvT','error','4021566DMwhvi','\x20\x20\x20Duration:\x20','warn','level','timestamp','17605910xomQDh','*\x20Logs\x20cleared','6788706HgwAZM','log','*\x20No\x20logs\x20found','details','forEach','command','toLocaleString','1311980AugroK','2237150cKYcAH','logs','keys','9silIZn'];a43_0x12c2=function(){return _0x1f36a7;};return a43_0x12c2();}function a43_0x308c(_0x169424,_0x1977e2){_0x169424=_0x169424-0x12a;const _0x12c215=a43_0x12c2();let _0x308ceb=_0x12c215[_0x169424];return _0x308ceb;}export const logsCommand={'name':a43_0xc46499(0x13a),'description':'View\x20or\x20clear\x20CLI\x20logs',async 'run'(_0x385e6c,_0x471157,_0x1eb135){_0x1eb135['clear']?clearLogs(_0x385e6c):showLogs(_0x385e6c);}};
1
+ const a54_0x34aa84=a54_0x2a92;function a54_0x5640(){const _0x3a2f2a=['forEach','5BVkKyZ','\x20\x20\x20Details:\x20','boolean','length','*\x20Logs\x20cleared','logger','warn','readLogs','3079951OtVEsg','1863159rnnoVT','error','6328648pTmYhs','*\x20Lovrabet\x20CLI\x20logs:\x0a','986162UQrOMQ','message','toLocaleString','duration','en-US','30108584pkVVWb','\x20\x20\x20Duration:\x20','log','9675462trhpuf','level','Clear\x20all\x20logs','2740532pjCcRL'];a54_0x5640=function(){return _0x3a2f2a;};return a54_0x5640();}(function(_0x7e2f6f,_0x4cb8e2){const _0x220bb5=a54_0x2a92,_0x355943=_0x7e2f6f();while(!![]){try{const _0x3f801f=-parseInt(_0x220bb5(0x126))/0x1+parseInt(_0x220bb5(0x131))/0x2+parseInt(_0x220bb5(0x122))/0x3+parseInt(_0x220bb5(0x124))/0x4*(parseInt(_0x220bb5(0x133))/0x5)+parseInt(_0x220bb5(0x12e))/0x6+parseInt(_0x220bb5(0x121))/0x7+-parseInt(_0x220bb5(0x12b))/0x8;if(_0x3f801f===_0x4cb8e2)break;else _0x355943['push'](_0x355943['shift']());}catch(_0x2616db){_0x355943['push'](_0x355943['shift']());}}}(a54_0x5640,0xd5f1c));function showLogs(_0x385707){const _0x47eb36=a54_0x2a92,_0x3d3a99=_0x385707['logger'][_0x47eb36(0x120)]();if(_0x3d3a99[_0x47eb36(0x136)]===0x0){console[_0x47eb36(0x12d)]('*\x20No\x20logs\x20found');return;}console[_0x47eb36(0x12d)](_0x47eb36(0x125)),_0x3d3a99[_0x47eb36(0x132)]((_0x5d2de2,_0x4dd471)=>{const _0xd4587b=_0x47eb36,_0x417224=new Date(_0x5d2de2['timestamp'])[_0xd4587b(0x128)](_0xd4587b(0x12a)),_0x17b0d4=_0x5d2de2[_0xd4587b(0x12f)]==='success'?'√':_0x5d2de2['level']===_0xd4587b(0x123)?'×':_0x5d2de2[_0xd4587b(0x12f)]===_0xd4587b(0x11f)?'!':'i';console[_0xd4587b(0x12d)](_0x4dd471+0x1+'.\x20'+_0x17b0d4+'\x20['+_0x5d2de2['command']+']\x20'+_0x5d2de2[_0xd4587b(0x127)]),console[_0xd4587b(0x12d)]('\x20\x20\x20Time:\x20'+_0x417224),_0x5d2de2[_0xd4587b(0x129)]&&console[_0xd4587b(0x12d)](_0xd4587b(0x12c)+_0x5d2de2[_0xd4587b(0x129)]+'ms'),_0x5d2de2['details']&&Object['keys'](_0x5d2de2['details'])[_0xd4587b(0x136)]>0x0&&console[_0xd4587b(0x12d)](_0xd4587b(0x134)+JSON['stringify'](_0x5d2de2['details'],null,0x2)),console['log']('');});}function clearLogs(_0x258abf){const _0x1d3e30=a54_0x2a92;_0x258abf[_0x1d3e30(0x138)]['clearLogs'](),console['log'](_0x1d3e30(0x137));}function a54_0x2a92(_0x26a449,_0x1809d7){_0x26a449=_0x26a449-0x11f;const _0x564064=a54_0x5640();let _0x2a9280=_0x564064[_0x26a449];return _0x2a9280;}const flagDefs=[{'name':'clear','type':a54_0x34aa84(0x135),'description':a54_0x34aa84(0x130),'default':![]}];export const logsCommand={'name':'logs','description':'View\x20or\x20clear\x20CLI\x20logs','flags':flagDefs,async 'run'(_0x29fb9d,_0x1418cb,_0x140279){_0x140279['clear']?clearLogs(_0x29fb9d):showLogs(_0x29fb9d);}};
@@ -1 +1 @@
1
- function a45_0x48ca(){const _0x5a08a3=['2922372eFElBO','284720syBKDa','30CUYrgF','96230DVcKbQ','2817gmWVse','3xizDJo','1783890UXJjww','116980EQyqMz','10641264vYmvIO','1490167zKKeLr'];a45_0x48ca=function(){return _0x5a08a3;};return a45_0x48ca();}(function(_0x168593,_0x155e19){const _0x5232f2=a45_0x4e14,_0x5306ba=_0x168593();while(!![]){try{const _0x35f105=parseInt(_0x5232f2(0x1c1))/0x1+-parseInt(_0x5232f2(0x1bb))/0x2+parseInt(_0x5232f2(0x1c0))/0x3*(parseInt(_0x5232f2(0x1c2))/0x4)+-parseInt(_0x5232f2(0x1bc))/0x5+parseInt(_0x5232f2(0x1bd))/0x6*(-parseInt(_0x5232f2(0x1c4))/0x7)+-parseInt(_0x5232f2(0x1c3))/0x8+-parseInt(_0x5232f2(0x1bf))/0x9*(-parseInt(_0x5232f2(0x1be))/0xa);if(_0x35f105===_0x155e19)break;else _0x5306ba['push'](_0x5306ba['shift']());}catch(_0x3f2388){_0x5306ba['push'](_0x5306ba['shift']());}}}(a45_0x48ca,0xdec39));import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a45_0x4e14(_0x264885,_0x475299){_0x264885=_0x264885-0x1bb;const _0x48cade=a45_0x48ca();let _0x4e14e8=_0x48cade[_0x264885];return _0x4e14e8;}export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x400d85,_0x113f86){const _0x382072=a55_0x19fe,_0xa9d74b=_0x400d85();while(!![]){try{const _0x59d814=-parseInt(_0x382072(0x172))/0x1*(parseInt(_0x382072(0x16e))/0x2)+-parseInt(_0x382072(0x173))/0x3*(parseInt(_0x382072(0x170))/0x4)+-parseInt(_0x382072(0x16b))/0x5+-parseInt(_0x382072(0x175))/0x6*(-parseInt(_0x382072(0x174))/0x7)+-parseInt(_0x382072(0x16f))/0x8+-parseInt(_0x382072(0x16d))/0x9+parseInt(_0x382072(0x16c))/0xa*(parseInt(_0x382072(0x171))/0xb);if(_0x59d814===_0x113f86)break;else _0xa9d74b['push'](_0xa9d74b['shift']());}catch(_0x594899){_0xa9d74b['push'](_0xa9d74b['shift']());}}}(a55_0x5c51,0xf263a));import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a55_0x19fe(_0x34eb8c,_0x4e5480){_0x34eb8c=_0x34eb8c-0x16b;const _0x5c51d0=a55_0x5c51();let _0x19fe3d=_0x5c51d0[_0x34eb8c];return _0x19fe3d;}function a55_0x5c51(){const _0x39d52b=['8992220XkrGUG','2275659kIhGpt','103382wTjyMx','12622072KKAbgJ','109264lAqkXi','33NYFCIc','11TqFTwL','75SVAxbR','3759FctQaU','18702BDaCwo','1482790dDxNfE'];a55_0x5c51=function(){return _0x39d52b;};return a55_0x5c51();}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a46_0x17e7(_0x28f512,_0x473f7a){_0x28f512=_0x28f512-0x6c;const _0x407178=a46_0x4071();let _0x17e73f=_0x407178[_0x28f512];return _0x17e73f;}(function(_0x148763,_0x2a9dc2){const _0x1bc33a=a46_0x17e7,_0x53a2e6=_0x148763();while(!![]){try{const _0x4042fc=-parseInt(_0x1bc33a(0x75))/0x1*(parseInt(_0x1bc33a(0x89))/0x2)+parseInt(_0x1bc33a(0x86))/0x3*(parseInt(_0x1bc33a(0x77))/0x4)+-parseInt(_0x1bc33a(0x7a))/0x5*(parseInt(_0x1bc33a(0x7e))/0x6)+parseInt(_0x1bc33a(0x79))/0x7*(-parseInt(_0x1bc33a(0x7f))/0x8)+-parseInt(_0x1bc33a(0x6f))/0x9*(-parseInt(_0x1bc33a(0x85))/0xa)+parseInt(_0x1bc33a(0x8b))/0xb*(-parseInt(_0x1bc33a(0x74))/0xc)+parseInt(_0x1bc33a(0x6c))/0xd;if(_0x4042fc===_0x2a9dc2)break;else _0x53a2e6['push'](_0x53a2e6['shift']());}catch(_0x2a1c1b){_0x53a2e6['push'](_0x53a2e6['shift']());}}}(a46_0x4071,0x9c368));function strWidth(_0x195342){let _0x320945=0x0;for(const _0xdf92fe of _0x195342){_0x320945+=/[\u4e00-\u9fa5]/['test'](_0xdf92fe)?0x2:0x1;}return _0x320945;}function a46_0x4071(){const _0x2f1c7a=['110cJKTPT','253335fivzyw','\x20\x20Affected\x20menus:\x20','push','2241164mcTXep','\x20\x20\x20\x20•\x20','11KpQfbm','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','path','45319703XHwVOJ','max','local','70317SINGdL','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','join','Platform','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','9809256UBBNdI','1OwWjvl','Menu\x20Name','20ZcgjvU','length','7sVSSWK','1282075gXUWLI','(unchanged)','\x20\x20\x20\x20JS:\x20\x20','Local','18bZPJvr','5177488AUnMEa','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','label','\x20\x20No\x20pages\x20to\x20sync.','repeat','map'];a46_0x4071=function(){return _0x2f1c7a;};return a46_0x4071();}function padRight(_0x54b4f4,_0x2f34a5){const _0x20760e=strWidth(_0x54b4f4);return _0x54b4f4+'\x20'['repeat'](Math['max'](0x0,_0x2f34a5-_0x20760e));}export function renderCompareTable(_0x2a5952,_0x5c323c={}){const _0x34181a=a46_0x17e7;if(_0x2a5952[_0x34181a(0x78)]===0x0)return'';const _0xddf87c=_0x5c323c['showOnline']??!![],_0x3f7764=Math[_0x34181a(0x6d)](0x1e,..._0x2a5952[_0x34181a(0x84)](_0x5d7de7=>strWidth(_0x5d7de7[_0x34181a(0x81)]))),_0x9b127e=0x4,_0x40d032=[],_0x42b7da='\x20\x20'+padRight(_0x34181a(0x76),_0x3f7764),_0x1aea44=padRight(_0x34181a(0x7d),_0x9b127e),_0x1d73ae=_0xddf87c?'\x20\x20'+padRight(_0x34181a(0x72),_0x9b127e):'';_0x40d032[_0x34181a(0x88)](_0x42b7da+'\x20\x20'+_0x1aea44+(_0xddf87c?_0x1d73ae:'')),_0x40d032[_0x34181a(0x88)]('\x20\x20'+'─'[_0x34181a(0x83)](_0x3f7764)+'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e)+(_0xddf87c?'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e):''));for(const _0x429010 of _0x2a5952){const _0x110648=padRight(_0x429010[_0x34181a(0x81)],_0x3f7764),_0x3d0be3=_0x429010[_0x34181a(0x6e)]?'✓':'✗',_0x218a49=padRight(_0x3d0be3,_0x9b127e);let _0x99b677='\x20\x20'+_0x110648+'\x20\x20'+_0x218a49;if(_0xddf87c){const _0x31a5f2=_0x429010['online']?'✓':'✗';_0x99b677+='\x20\x20'+padRight(_0x31a5f2,_0x9b127e);}_0x40d032[_0x34181a(0x88)](_0x99b677);}return _0x40d032[_0x34181a(0x71)]('\x0a');}export function renderSyncSummary(_0x437617,_0x22b6b3){const _0x88442=a46_0x17e7;if(_0x437617[_0x88442(0x78)]===0x0)return _0x22b6b3?_0x88442(0x80):_0x88442(0x82);const _0x4d8cf8=['\x20\x20'+_0x437617[_0x88442(0x78)]+_0x88442(0x73)];for(const _0x32923a of _0x437617){_0x4d8cf8[_0x88442(0x88)](_0x88442(0x8a)+_0x32923a[_0x88442(0x81)]+'\x20('+_0x32923a[_0x88442(0x8d)]+')');}return _0x4d8cf8['join']('\x0a');}export function renderUpdateSummary(_0x39f397,_0x113b53){const _0x5f15f4=a46_0x17e7;if(_0x39f397[_0x5f15f4(0x78)]===0x0)return _0x5f15f4(0x70);const _0x575fb4=['\x20\x20'+_0x39f397['length']+_0x5f15f4(0x8c),_0x5f15f4(0x7c)+(_0x113b53[0x0]??_0x5f15f4(0x7b)),'\x20\x20\x20\x20CSS:\x20'+(_0x113b53[0x1]??_0x5f15f4(0x7b)),'',_0x5f15f4(0x87)+_0x39f397[_0x5f15f4(0x71)](',\x20')];return _0x575fb4[_0x5f15f4(0x71)]('\x0a');}
1
+ function a56_0x28bb(_0xad0caa,_0x6eab60){_0xad0caa=_0xad0caa-0x1c5;const _0xfd2e07=a56_0xfd2e();let _0x28bba6=_0xfd2e07[_0xad0caa];return _0x28bba6;}(function(_0x1c4288,_0x1206ae){const _0x26a2a4=a56_0x28bb,_0x2ca46c=_0x1c4288();while(!![]){try{const _0x49ac8c=parseInt(_0x26a2a4(0x1d5))/0x1+parseInt(_0x26a2a4(0x1d8))/0x2*(-parseInt(_0x26a2a4(0x1d0))/0x3)+parseInt(_0x26a2a4(0x1ca))/0x4+parseInt(_0x26a2a4(0x1cf))/0x5+-parseInt(_0x26a2a4(0x1c6))/0x6*(parseInt(_0x26a2a4(0x1dc))/0x7)+-parseInt(_0x26a2a4(0x1ce))/0x8+-parseInt(_0x26a2a4(0x1dd))/0x9*(-parseInt(_0x26a2a4(0x1d6))/0xa);if(_0x49ac8c===_0x1206ae)break;else _0x2ca46c['push'](_0x2ca46c['shift']());}catch(_0x31f88d){_0x2ca46c['push'](_0x2ca46c['shift']());}}}(a56_0xfd2e,0x489a6));function strWidth(_0x171c5d){const _0x43225b=a56_0x28bb;let _0x1703cf=0x0;for(const _0x468766 of _0x171c5d){_0x1703cf+=/[\u4e00-\u9fa5]/[_0x43225b(0x1c7)](_0x468766)?0x2:0x1;}return _0x1703cf;}function padRight(_0x9fc366,_0x2b2c96){const _0x4225e6=a56_0x28bb,_0x3e4173=strWidth(_0x9fc366);return _0x9fc366+'\x20'[_0x4225e6(0x1df)](Math[_0x4225e6(0x1e0)](0x0,_0x2b2c96-_0x3e4173));}export function renderCompareTable(_0x2234a7,_0x324769={}){const _0x124165=a56_0x28bb;if(_0x2234a7[_0x124165(0x1d3)]===0x0)return'';const _0x2cefef=_0x324769['showOnline']??!![],_0x311f8a=Math[_0x124165(0x1e0)](0x1e,..._0x2234a7[_0x124165(0x1cd)](_0x200859=>strWidth(_0x200859['label']))),_0x37ad3b=0x4,_0x10a004=[],_0x5e930a='\x20\x20'+padRight('Menu\x20Name',_0x311f8a),_0x4ec4b6=padRight('Local',_0x37ad3b),_0x2bf112=_0x2cefef?'\x20\x20'+padRight(_0x124165(0x1d7),_0x37ad3b):'';_0x10a004[_0x124165(0x1d1)](_0x5e930a+'\x20\x20'+_0x4ec4b6+(_0x2cefef?_0x2bf112:'')),_0x10a004[_0x124165(0x1d1)]('\x20\x20'+'─'[_0x124165(0x1df)](_0x311f8a)+'\x20\x20'+'─'[_0x124165(0x1df)](_0x37ad3b)+(_0x2cefef?'\x20\x20'+'─'[_0x124165(0x1df)](_0x37ad3b):''));for(const _0x83873c of _0x2234a7){const _0x98b557=padRight(_0x83873c[_0x124165(0x1d9)],_0x311f8a),_0x378b64=_0x83873c[_0x124165(0x1d2)]?'✓':'✗',_0x288290=padRight(_0x378b64,_0x37ad3b);let _0x5adc44='\x20\x20'+_0x98b557+'\x20\x20'+_0x288290;if(_0x2cefef){const _0x170b85=_0x83873c[_0x124165(0x1c5)]?'✓':'✗';_0x5adc44+='\x20\x20'+padRight(_0x170b85,_0x37ad3b);}_0x10a004[_0x124165(0x1d1)](_0x5adc44);}return _0x10a004['join']('\x0a');}export function renderSyncSummary(_0x162cf8,_0x22ea70){const _0x4cd03a=a56_0x28bb;if(_0x162cf8[_0x4cd03a(0x1d3)]===0x0)return _0x22ea70?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x4cd03a(0x1de);const _0x319552=['\x20\x20'+_0x162cf8[_0x4cd03a(0x1d3)]+_0x4cd03a(0x1d4)];for(const _0x30af28 of _0x162cf8){_0x319552['push']('\x20\x20\x20\x20•\x20'+_0x30af28[_0x4cd03a(0x1d9)]+'\x20('+_0x30af28[_0x4cd03a(0x1cb)]+')');}return _0x319552[_0x4cd03a(0x1da)]('\x0a');}export function renderUpdateSummary(_0x5ad41f,_0x59f645){const _0x2a5764=a56_0x28bb;if(_0x5ad41f[_0x2a5764(0x1d3)]===0x0)return _0x2a5764(0x1db);const _0x2051ee=['\x20\x20'+_0x5ad41f[_0x2a5764(0x1d3)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x2a5764(0x1c9)+(_0x59f645[0x0]??_0x2a5764(0x1cc)),_0x2a5764(0x1c8)+(_0x59f645[0x1]??_0x2a5764(0x1cc)),'','\x20\x20Affected\x20menus:\x20'+_0x5ad41f['join'](',\x20')];return _0x2051ee['join']('\x0a');}function a56_0xfd2e(){const _0x301d1f=['\x20\x20\x20\x20JS:\x20\x20','1016064KYfJwR','path','(unchanged)','map','3367200IfYMKn','1060655mIBfAo','422595HKsTHW','push','local','length','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','116807LXUgCf','10KMNLpB','Platform','8hHETcx','label','join','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','101003VSFwxm','7587702YRazWH','\x20\x20No\x20pages\x20to\x20sync.','repeat','max','online','60jlYZHj','test','\x20\x20\x20\x20CSS:\x20'];a56_0xfd2e=function(){return _0x301d1f;};return a56_0xfd2e();}
@@ -1 +1 @@
1
- (function(_0x3a7b6c,_0x4b3512){var _0x1d9d42=a47_0x24b6,_0x420960=_0x3a7b6c();while(!![]){try{var _0x510738=parseInt(_0x1d9d42(0x188))/0x1+parseInt(_0x1d9d42(0x18a))/0x2*(parseInt(_0x1d9d42(0x18e))/0x3)+-parseInt(_0x1d9d42(0x190))/0x4+parseInt(_0x1d9d42(0x18c))/0x5*(parseInt(_0x1d9d42(0x18d))/0x6)+-parseInt(_0x1d9d42(0x189))/0x7+-parseInt(_0x1d9d42(0x191))/0x8*(parseInt(_0x1d9d42(0x187))/0x9)+parseInt(_0x1d9d42(0x18b))/0xa*(parseInt(_0x1d9d42(0x18f))/0xb);if(_0x510738===_0x4b3512)break;else _0x420960['push'](_0x420960['shift']());}catch(_0x2e17b7){_0x420960['push'](_0x420960['shift']());}}}(a47_0x1fac,0xb7eb3));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';export*from'./inquirer.js';function a47_0x24b6(_0x41a259,_0x203c02){_0x41a259=_0x41a259-0x187;var _0x1fac68=a47_0x1fac();var _0x24b60d=_0x1fac68[_0x41a259];return _0x24b60d;}export*from'./valid-url.js';export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';function a47_0x1fac(){var _0x52f044=['4416528xeJume','16XUCOcz','428751rVTTVl','619585NMCJEG','10026212DJvmUs','5542NsGlIX','9009430AwuDls','10IxUppi','2260074DbWpeA','1203OvQWVP','11wjKbEB'];a47_0x1fac=function(){return _0x52f044;};return a47_0x1fac();}export*from'./update-core.js';
1
+ (function(_0x440397,_0x4bd07b){var _0x2dc22c=a57_0x4158,_0x117d67=_0x440397();while(!![]){try{var _0x52a1f1=parseInt(_0x2dc22c(0x14b))/0x1+-parseInt(_0x2dc22c(0x146))/0x2*(parseInt(_0x2dc22c(0x149))/0x3)+-parseInt(_0x2dc22c(0x14e))/0x4+parseInt(_0x2dc22c(0x147))/0x5+parseInt(_0x2dc22c(0x148))/0x6+parseInt(_0x2dc22c(0x14d))/0x7*(parseInt(_0x2dc22c(0x14c))/0x8)+-parseInt(_0x2dc22c(0x14a))/0x9;if(_0x52a1f1===_0x4bd07b)break;else _0x117d67['push'](_0x117d67['shift']());}catch(_0x261de9){_0x117d67['push'](_0x117d67['shift']());}}}(a57_0x1fb7,0x22483));export*from'./types.js';function a57_0x4158(_0x348439,_0x24072b){_0x348439=_0x348439-0x146;var _0x1fb7f5=a57_0x1fb7();var _0x415868=_0x1fb7f5[_0x348439];return _0x415868;}export*from'./logic.js';export*from'./compare-table.js';export*from'./inquirer.js';export*from'./valid-url.js';export*from'./local-pages.js';function a57_0x1fb7(){var _0x2dcccf=['39752wedhYJ','4xWfHsW','1206945vlZmJV','1360056Tgtlgl','102747LEaklq','6025320ZuqCpf','148128WKVyWA','16AKWNWq','952497qWtSjR'];a57_0x1fb7=function(){return _0x2dcccf;};return a57_0x1fb7();}export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
@@ -1 +1 @@
1
- function a48_0x1591(){const _0x54864e=['map','JS\x20URL\x20check\x20failed','catch','fail','\x20\x20JS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','has','start','red','filter','test','isTTY','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','No\x20menus\x20selected.','path','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','CANCEL','green','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','succeed','error','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','ExitPromptError','stdin','1688218nwtfoB','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','[already\x20on\x20platform]','[new]','16RjZwna','5049ZCIhsy','length','trim','454220XVQrqu','157744lgifIr','CSS\x20URL\x20check\x20failed','label','cyan','196RiMLCi','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','CSS\x20URL\x20checked','JS\x20URL\x20checked','4921pFUErS','33XcfptP','10432220LNOwna','2733720qLRMRz','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'];a48_0x1591=function(){return _0x54864e;};return a48_0x1591();}function a48_0x1376(_0x116fa5,_0x5585bf){_0x116fa5=_0x116fa5-0x1c8;const _0x159116=a48_0x1591();let _0x1376ce=_0x159116[_0x116fa5];return _0x1376ce;}(function(_0x34b7be,_0x21c385){const _0x4cb6fc=a48_0x1376,_0x59ee09=_0x34b7be();while(!![]){try{const _0x24ea3c=parseInt(_0x4cb6fc(0x1d5))/0x1*(-parseInt(_0x4cb6fc(0x1d0))/0x2)+-parseInt(_0x4cb6fc(0x1d6))/0x3*(parseInt(_0x4cb6fc(0x1cc))/0x4)+parseInt(_0x4cb6fc(0x1cb))/0x5+-parseInt(_0x4cb6fc(0x1d8))/0x6+-parseInt(_0x4cb6fc(0x1f4))/0x7*(-parseInt(_0x4cb6fc(0x1f8))/0x8)+-parseInt(_0x4cb6fc(0x1c8))/0x9+parseInt(_0x4cb6fc(0x1d7))/0xa;if(_0x24ea3c===_0x21c385)break;else _0x59ee09['push'](_0x59ee09['shift']());}catch(_0x2c3724){_0x59ee09['push'](_0x59ee09['shift']());}}}(a48_0x1591,0x3b9d3));import a48_0xfe8f10 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a48_0x18aed8 from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0x4bc953){const _0x2b090e=a48_0x1376;return _0x4bc953[_0x2b090e(0x1dc)](_0x5e0741=>{const _0x3292b2=_0x2b090e;if(_0x5e0741?.['name']===_0x3292b2(0x1f2))throw new Error(_0x3292b2(0x1eb));throw _0x5e0741;});}export function startSpinner(_0x56f953){const _0x43f21a=a48_0x1376;return a48_0x18aed8({'text':_0x56f953,'color':_0x43f21a(0x1cf)})[_0x43f21a(0x1e1)]();}export function stopSpinner(_0x35800f,_0x4fa1f6,_0x565919){const _0x1b03ef=a48_0x1376;_0x565919?_0x35800f[_0x1b03ef(0x1ee)](_0x4fa1f6):_0x35800f[_0x1b03ef(0x1dd)](_0x4fa1f6);}export async function askConfirm(_0x435a15){return onCancel(confirm({'message':_0x435a15,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1b48af){const _0x3ff832=a48_0x1376;while(!![]){const _0x199551=await onCancel(input({'message':_0x3ff832(0x1de),'default':_0x1b48af,'theme':{'prefix':''}}));if(_0x199551['trim']()==='')throw new Error('CANCEL');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3ff832(0x1e4)](_0x199551[_0x3ff832(0x1ca)]())){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1f5)));continue;}const _0x213466=startSpinner(_0x3ff832(0x1e9));try{const _0x53e262=await isUrlReachable(_0x199551[_0x3ff832(0x1ca)]());stopSpinner(_0x213466,_0x3ff832(0x1d4),_0x53e262);if(!_0x53e262){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1d1)));continue;}return _0x199551[_0x3ff832(0x1ca)]();}catch(_0x355656){stopSpinner(_0x213466,_0x3ff832(0x1db),![]);throw _0x355656;}}}export async function askCssUrl(_0x101ff2){const _0x6ea514=a48_0x1376;while(!![]){const _0x45cfd3=await onCancel(input({'message':_0x6ea514(0x1d2),'default':_0x101ff2,'theme':{'prefix':''}}));if(_0x45cfd3['trim']()==='')throw new Error(_0x6ea514(0x1eb));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x45cfd3[_0x6ea514(0x1ca)]())){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1f0)));continue;}const _0x4dc2da=startSpinner(_0x6ea514(0x1f1));try{const _0x4fb5b2=await isUrlReachable(_0x45cfd3[_0x6ea514(0x1ca)]());stopSpinner(_0x4dc2da,_0x6ea514(0x1d3),_0x4fb5b2);if(!_0x4fb5b2){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1e6)));continue;}return _0x45cfd3[_0x6ea514(0x1ca)]();}catch(_0x53b5ca){stopSpinner(_0x4dc2da,_0x6ea514(0x1cd),![]);throw _0x53b5ca;}}}export async function selectPages(_0x919f7c,_0x311155,_0x2a2062){const _0x19ee30=a48_0x1376,_0x395ee5=_0x919f7c[_0x19ee30(0x1da)](_0x4b8056=>({'name':_0x4b8056['label']+'\x20\x20'+(_0x311155['has'](_0x4b8056[_0x19ee30(0x1e8)])?a48_0xfe8f10['gray'](_0x19ee30(0x1f6)):a48_0xfe8f10[_0x19ee30(0x1ec)](_0x19ee30(0x1f7))),'value':_0x4b8056[_0x19ee30(0x1ce)],'checked':_0x2a2062?_0x2a2062[_0x19ee30(0x1ea)](_0x4b8056[_0x19ee30(0x1ce)]):!_0x311155[_0x19ee30(0x1e0)](_0x4b8056[_0x19ee30(0x1e8)])}));if(_0x395ee5[_0x19ee30(0x1c9)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x4bc8cd=await onCancel(checkbox({'message':_0x19ee30(0x1df),'choices':_0x395ee5,'loop':![],'theme':{'prefix':''}}));if(_0x4bc8cd['length']===0x0)throw new Error(_0x19ee30(0x1e7));return _0x919f7c[_0x19ee30(0x1e3)](_0x5375bb=>_0x4bc8cd[_0x19ee30(0x1ea)](_0x5375bb['label']));}export function isInteractive(){const _0x1e23ea=a48_0x1376;return process[_0x1e23ea(0x1f3)][_0x1e23ea(0x1e5)]===!![];}export function requireInteractive(){const _0xb23713=a48_0x1376;if(!isInteractive())throw new Error(_0xb23713(0x1d9)+_0xb23713(0x1ed));}
1
+ function a58_0x49da(_0x494622,_0x104f02){_0x494622=_0x494622-0x1ca;const _0x292c18=a58_0x292c();let _0x49da89=_0x292c18[_0x494622];return _0x49da89;}(function(_0x369b17,_0x5a72fd){const _0x459d5d=a58_0x49da,_0x4881d9=_0x369b17();while(!![]){try{const _0x313fff=parseInt(_0x459d5d(0x1dd))/0x1*(-parseInt(_0x459d5d(0x1e1))/0x2)+-parseInt(_0x459d5d(0x1db))/0x3*(parseInt(_0x459d5d(0x1e0))/0x4)+-parseInt(_0x459d5d(0x1df))/0x5*(-parseInt(_0x459d5d(0x1d7))/0x6)+parseInt(_0x459d5d(0x1d8))/0x7+parseInt(_0x459d5d(0x1d9))/0x8+-parseInt(_0x459d5d(0x1d6))/0x9+parseInt(_0x459d5d(0x1e2))/0xa;if(_0x313fff===_0x5a72fd)break;else _0x4881d9['push'](_0x4881d9['shift']());}catch(_0x2c9ec1){_0x4881d9['push'](_0x4881d9['shift']());}}}(a58_0x292c,0x24165));import a58_0x4b7c67 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a58_0x49c80b from'ora';import{isUrlReachable}from'./valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5d1250){return _0x5d1250['catch'](_0x2e4f76=>{const _0x462b4d=a58_0x49da;if(_0x2e4f76?.['name']==='ExitPromptError')throw CliErrors[_0x462b4d(0x1ee)]('Cancelled.');throw _0x2e4f76;});}function a58_0x292c(){const _0x31fef4=['fail','red','cyan','CSS\x20URL\x20checked','947475WoAdid','12612nZusvz','1285956PXwtTw','725856aVdNlj','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','9lxUcXf','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','178hUwmPv','includes','335EQpngW','391084ZNGbGi','1654iGnvLK','2783330PdTDdv','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path','gray','has','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','green','isTTY','Cancelled.','No\x20local\x20pages\x20found.','\x20\x20Checking\x20CSS\x20URL\x20reachability...','cancelled','\x20\x20CSS\x20URL:','[new]','trim','CSS\x20URL\x20check\x20failed','JS\x20URL\x20checked','label','\x20\x20Checking\x20JS\x20URL\x20reachability...','stdin','No\x20menus\x20selected.','length','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','error','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','test','JS\x20URL\x20check\x20failed','filter','succeed'];a58_0x292c=function(){return _0x31fef4;};return a58_0x292c();}export function startSpinner(_0x1a6b1b){const _0x3774b0=a58_0x49da;return a58_0x49c80b({'text':_0x1a6b1b,'color':_0x3774b0(0x1d4)})['start']();}export function stopSpinner(_0x57c662,_0x427711,_0x348c95){const _0x5320ec=a58_0x49da;_0x348c95?_0x57c662[_0x5320ec(0x1d1)](_0x427711):_0x57c662[_0x5320ec(0x1d2)](_0x427711);}export async function askConfirm(_0xf73e5e){return onCancel(confirm({'message':_0xf73e5e,'theme':{'prefix':''}}));}export async function askJsUrl(_0x718e5a){const _0xf4b070=a58_0x49da;while(!![]){const _0x56c389=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x718e5a,'theme':{'prefix':''}}));if(_0x56c389[_0xf4b070(0x1f1)]()==='')throw CliErrors[_0xf4b070(0x1ee)](_0xf4b070(0x1eb));if(!/^https:\/\/.+\.js(\?.*)?$/[_0xf4b070(0x1ce)](_0x56c389[_0xf4b070(0x1f1)]())){console[_0xf4b070(0x1cc)](a58_0x4b7c67[_0xf4b070(0x1d3)](_0xf4b070(0x1e4)));continue;}const _0x2ed35e=startSpinner(_0xf4b070(0x1f5));try{const _0x1ced1c=await isUrlReachable(_0x56c389[_0xf4b070(0x1f1)]());stopSpinner(_0x2ed35e,_0xf4b070(0x1f3),_0x1ced1c);if(!_0x1ced1c){console[_0xf4b070(0x1cc)](a58_0x4b7c67[_0xf4b070(0x1d3)](_0xf4b070(0x1e3)));continue;}return _0x56c389[_0xf4b070(0x1f1)]();}catch(_0x9f9329){stopSpinner(_0x2ed35e,_0xf4b070(0x1cf),![]);throw _0x9f9329;}}}export async function askCssUrl(_0x420033){const _0x51d801=a58_0x49da;while(!![]){const _0x382d1f=await onCancel(input({'message':_0x51d801(0x1ef),'default':_0x420033,'theme':{'prefix':''}}));if(_0x382d1f['trim']()==='')throw CliErrors[_0x51d801(0x1ee)](_0x51d801(0x1eb));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x51d801(0x1ce)](_0x382d1f[_0x51d801(0x1f1)]())){console[_0x51d801(0x1cc)](a58_0x4b7c67[_0x51d801(0x1d3)](_0x51d801(0x1dc)));continue;}const _0x7870d7=startSpinner(_0x51d801(0x1ed));try{const _0x1b6b00=await isUrlReachable(_0x382d1f[_0x51d801(0x1f1)]());stopSpinner(_0x7870d7,_0x51d801(0x1d5),_0x1b6b00);if(!_0x1b6b00){console[_0x51d801(0x1cc)](a58_0x4b7c67[_0x51d801(0x1d3)](_0x51d801(0x1e8)));continue;}return _0x382d1f[_0x51d801(0x1f1)]();}catch(_0x36759f){stopSpinner(_0x7870d7,_0x51d801(0x1f2),![]);throw _0x36759f;}}}export async function selectPages(_0x4e89c5,_0xa09306,_0x529ac){const _0x4f430a=a58_0x49da,_0x44a43d=_0x4e89c5['map'](_0x177c66=>({'name':_0x177c66[_0x4f430a(0x1f4)]+'\x20\x20'+(_0xa09306[_0x4f430a(0x1e7)](_0x177c66['path'])?a58_0x4b7c67[_0x4f430a(0x1e6)]('[already\x20on\x20platform]'):a58_0x4b7c67[_0x4f430a(0x1e9)](_0x4f430a(0x1f0))),'value':_0x177c66[_0x4f430a(0x1f4)],'checked':_0x529ac?_0x529ac[_0x4f430a(0x1de)](_0x177c66['label']):!_0xa09306['has'](_0x177c66[_0x4f430a(0x1e5)])}));if(_0x44a43d[_0x4f430a(0x1ca)]===0x0)throw new Error(_0x4f430a(0x1ec));const _0x49f91c=await onCancel(checkbox({'message':_0x4f430a(0x1da),'choices':_0x44a43d,'loop':![],'theme':{'prefix':''}}));if(_0x49f91c[_0x4f430a(0x1ca)]===0x0)throw new Error(_0x4f430a(0x1f7));return _0x4e89c5[_0x4f430a(0x1d0)](_0xc18f4d=>_0x49f91c['includes'](_0xc18f4d[_0x4f430a(0x1f4)]));}export function isInteractive(){const _0x228bf2=a58_0x49da;return process[_0x228bf2(0x1f6)][_0x228bf2(0x1ea)]===!![];}export function requireInteractive(){const _0x558353=a58_0x49da;if(!isInteractive())throw new Error(_0x558353(0x1cb)+_0x558353(0x1cd));}
@@ -1 +1 @@
1
- const a49_0xef5bf1=a49_0x32a0;(function(_0xaea216,_0x182b93){const _0x2bcc1a=a49_0x32a0,_0x4a2cfb=_0xaea216();while(!![]){try{const _0x51ae3c=-parseInt(_0x2bcc1a(0x1a7))/0x1*(-parseInt(_0x2bcc1a(0x1a4))/0x2)+parseInt(_0x2bcc1a(0x19d))/0x3+-parseInt(_0x2bcc1a(0x1a2))/0x4+-parseInt(_0x2bcc1a(0x1aa))/0x5*(-parseInt(_0x2bcc1a(0x1a3))/0x6)+-parseInt(_0x2bcc1a(0x19b))/0x7+parseInt(_0x2bcc1a(0x1b1))/0x8+parseInt(_0x2bcc1a(0x1ac))/0x9;if(_0x51ae3c===_0x182b93)break;else _0x4a2cfb['push'](_0x4a2cfb['shift']());}catch(_0x261bb1){_0x4a2cfb['push'](_0x4a2cfb['shift']());}}}(a49_0x2f72,0x32eb0));function a49_0x2f72(){const _0x3ff676=['cwd','filter','10coXXOR','path','1579653FJlsKt','match','endsWith','trim','isDirectory','517600PAyTjw','2276757EpGuJF','concat','110844fjnLEn','replace','push','index.tsx','slice','30716wmVtGW','742572EcnCkR','634cZIctx','.tsx','src/pages','53qmSOOg'];a49_0x2f72=function(){return _0x3ff676;};return a49_0x2f72();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';function a49_0x32a0(_0x2f58e4,_0x4ac353){_0x2f58e4=_0x2f58e4-0x19b;const _0x2f72dd=a49_0x2f72();let _0x32a03f=_0x2f72dd[_0x2f58e4];return _0x32a03f;}const pagesDir=resolve(process[a49_0xef5bf1(0x1a8)](),a49_0xef5bf1(0x1a6));export function extractTitleFromComment(_0x359202){const _0x5353dd=a49_0xef5bf1;try{const _0x54f74d=readFileSync(_0x359202,'utf-8'),_0x200e22=_0x54f74d[_0x5353dd(0x1ad)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x200e22&&_0x200e22[0x1]){const _0xccbec7=_0x200e22[0x1],_0x239d7c=_0xccbec7[_0x5353dd(0x1ad)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x239d7c&&_0x239d7c[0x1])return _0x239d7c[0x1][_0x5353dd(0x1af)]();}let _0x568ca2=null;const _0x3cc9fe=_0x54f74d[_0x5353dd(0x1ad)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3cc9fe&&_0x3cc9fe[0x1]&&(_0x568ca2=_0x3cc9fe[0x1]);if(!_0x568ca2){const _0x5aae78=_0x54f74d['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x5aae78&&_0x5aae78[0x1]&&(_0x568ca2=_0x5aae78[0x1]);}if(_0x568ca2){const _0x1b89e8=new RegExp('\x5cb'+_0x568ca2+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2f19fe=_0x54f74d[_0x5353dd(0x1ad)](_0x1b89e8);if(_0x2f19fe&&_0x2f19fe[0x1])return _0x2f19fe[0x1];return _0x568ca2;}return null;}catch(_0xdcae8f){return null;}}export function getLocalPages(_0x59591a=pagesDir,_0x56aba0=pagesDir){const _0x2945cd=a49_0xef5bf1;let _0xce1c83=[];const _0x5b4656=readdirSync(_0x59591a);return _0x5b4656['forEach'](_0x4c0e64=>{const _0x504325=a49_0x32a0,_0x5e75f5=join(_0x59591a,_0x4c0e64),_0x52c502=statSync(_0x5e75f5);if(_0x52c502&&_0x52c502[_0x504325(0x1b0)]())_0xce1c83=_0xce1c83[_0x504325(0x19c)](getLocalPages(_0x5e75f5,_0x56aba0));else{if(_0x4c0e64[_0x504325(0x1ae)](_0x504325(0x1a5))){let _0x1644a4=relative(_0x56aba0,_0x5e75f5);_0x1644a4[_0x504325(0x1ae)](_0x504325(0x1a0))?_0x1644a4=_0x1644a4[_0x504325(0x19e)](/index\.tsx$/,''):_0x1644a4=_0x1644a4[_0x504325(0x19e)](/\.tsx$/,'');_0x1644a4[_0x504325(0x1ae)]('/')&&(_0x1644a4=_0x1644a4[_0x504325(0x1a1)](0x0,-0x1));const _0xc62b6c=extractTitleFromComment(_0x5e75f5),_0x1fdb4b=_0xc62b6c||_0x1644a4;_0xce1c83[_0x504325(0x19f)]({'path':_0x1644a4['replaceAll']('$',':'),'label':_0x1fdb4b});}}}),_0xce1c83[_0x2945cd(0x1a9)](_0x5f3278=>_0x5f3278[_0x2945cd(0x1ab)]!=='');}
1
+ (function(_0x223561,_0x529b31){const _0x32da03=a59_0x2b22,_0x2838ef=_0x223561();while(!![]){try{const _0xb8f12f=-parseInt(_0x32da03(0xef))/0x1*(-parseInt(_0x32da03(0xf0))/0x2)+parseInt(_0x32da03(0xe6))/0x3*(-parseInt(_0x32da03(0xf7))/0x4)+-parseInt(_0x32da03(0xe8))/0x5+parseInt(_0x32da03(0xe0))/0x6*(-parseInt(_0x32da03(0xf4))/0x7)+parseInt(_0x32da03(0xe2))/0x8*(parseInt(_0x32da03(0xea))/0x9)+-parseInt(_0x32da03(0xe9))/0xa+parseInt(_0x32da03(0xe7))/0xb;if(_0xb8f12f===_0x529b31)break;else _0x2838ef['push'](_0x2838ef['shift']());}catch(_0x4d4486){_0x2838ef['push'](_0x2838ef['shift']());}}}(a59_0x5594,0xf1070));function a59_0x5594(){const _0x1fea9e=['166120gDGVNd','utf-8','forEach','slice','1897944gyRmGU','56374582rLVmla','9475890dbKiFg','1363030YWrbSu','333sOjzHt','filter','replaceAll','join','trim','507iXsJIy','922kvBNzM','endsWith','index.tsx','push','1211dRcPWS','split','isDirectory','8olkRjr','match','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','63918eBtQVJ','concat'];a59_0x5594=function(){return _0x1fea9e;};return a59_0x5594();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),'src/pages');export function extractTitleFromComment(_0x7a3239){const _0x3f89c5=a59_0x2b22;try{const _0x26c524=readFileSync(_0x7a3239,_0x3f89c5(0xe3)),_0x452423=_0x26c524[_0x3f89c5(0xf8)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x452423&&_0x452423[0x1]){const _0x59f57b=_0x452423[0x1],_0x2332f5=_0x59f57b[_0x3f89c5(0xf8)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2332f5&&_0x2332f5[0x1])return _0x2332f5[0x1][_0x3f89c5(0xee)]();}let _0x19324e=null;const _0x34b588=_0x26c524[_0x3f89c5(0xf8)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x34b588&&_0x34b588[0x1]&&(_0x19324e=_0x34b588[0x1]);if(!_0x19324e){const _0xd7e97f=_0x26c524[_0x3f89c5(0xf8)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0xd7e97f&&_0xd7e97f[0x1]&&(_0x19324e=_0xd7e97f[0x1]);}if(_0x19324e){const _0x34d35d=new RegExp('\x5cb'+_0x19324e+_0x3f89c5(0xdf)),_0x50d73e=_0x26c524['match'](_0x34d35d);if(_0x50d73e&&_0x50d73e[0x1])return _0x50d73e[0x1];return _0x19324e;}return null;}catch(_0x59936e){return null;}}function a59_0x2b22(_0x23f7d7,_0x38ddc4){_0x23f7d7=_0x23f7d7-0xdf;const _0x5594b3=a59_0x5594();let _0x2b2269=_0x5594b3[_0x23f7d7];return _0x2b2269;}export function getLocalPages(_0x1bfb95=pagesDir,_0x1eaf37=pagesDir){const _0x10744c=a59_0x2b22;let _0x109c2f=[];const _0x2ebdf5=readdirSync(_0x1bfb95);return _0x2ebdf5[_0x10744c(0xe4)](_0x5b9b7e=>{const _0x5df07b=_0x10744c,_0x60e4da=join(_0x1bfb95,_0x5b9b7e),_0xd83882=statSync(_0x60e4da);if(_0xd83882&&_0xd83882[_0x5df07b(0xf6)]())_0x109c2f=_0x109c2f[_0x5df07b(0xe1)](getLocalPages(_0x60e4da,_0x1eaf37));else{if(_0x5b9b7e[_0x5df07b(0xf1)]('.tsx')){let _0x3af8b0=relative(_0x1eaf37,_0x60e4da);_0x3af8b0[_0x5df07b(0xf1)](_0x5df07b(0xf2))?_0x3af8b0=_0x3af8b0['replace'](/index\.tsx$/,''):_0x3af8b0=_0x3af8b0['replace'](/\.tsx$/,'');_0x3af8b0[_0x5df07b(0xf1)](sep)&&(_0x3af8b0=_0x3af8b0[_0x5df07b(0xe5)](0x0,-0x1));const _0x34bfdc=_0x3af8b0[_0x5df07b(0xf5)](sep)[_0x5df07b(0xed)]('/'),_0x131c86=extractTitleFromComment(_0x60e4da),_0x1d0485=_0x131c86||_0x34bfdc;_0x109c2f[_0x5df07b(0xf3)]({'path':_0x34bfdc[_0x5df07b(0xec)]('$',':'),'label':_0x1d0485});}}}),_0x109c2f[_0x10744c(0xeb)](_0xe04519=>_0xe04519['path']!=='');}
@@ -1 +1 @@
1
- (function(_0x32b702,_0x2a0742){const _0x39d67b=a50_0x4cb1,_0x283abd=_0x32b702();while(!![]){try{const _0x5713d5=parseInt(_0x39d67b(0x17b))/0x1*(-parseInt(_0x39d67b(0x169))/0x2)+-parseInt(_0x39d67b(0x178))/0x3*(parseInt(_0x39d67b(0x165))/0x4)+parseInt(_0x39d67b(0x16c))/0x5+parseInt(_0x39d67b(0x174))/0x6*(parseInt(_0x39d67b(0x17f))/0x7)+parseInt(_0x39d67b(0x170))/0x8*(parseInt(_0x39d67b(0x176))/0x9)+parseInt(_0x39d67b(0x172))/0xa*(parseInt(_0x39d67b(0x17a))/0xb)+-parseInt(_0x39d67b(0x166))/0xc*(parseInt(_0x39d67b(0x16b))/0xd);if(_0x5713d5===_0x2a0742)break;else _0x283abd['push'](_0x283abd['shift']());}catch(_0x54a346){_0x283abd['push'](_0x283abd['shift']());}}}(a50_0x497d,0x91175));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x36aeec){const _0x183e27=a50_0x4cb1,_0xead30b=[];return!isValidJsHttpsUrl(_0x36aeec)&&_0xead30b['push'](_0x183e27(0x171)),{'ok':_0xead30b[_0x183e27(0x17d)]===0x0,'errors':_0xead30b};}export function validateCssUrl(_0x735605){const _0x2d105e=a50_0x4cb1,_0x54924a=[];return!isValidCssHttpsUrl(_0x735605)&&_0x54924a[_0x2d105e(0x180)](_0x2d105e(0x16d)),{'ok':_0x54924a['length']===0x0,'errors':_0x54924a};}export async function validateJsUrlReachable(_0x52c2d8){const _0x183106=a50_0x4cb1,_0x39f383=validateJsUrl(_0x52c2d8);if(!_0x39f383['ok'])return _0x39f383;const _0x4509ac=await isUrlReachable(_0x52c2d8);if(!_0x4509ac)_0x39f383['errors']['push']('JS\x20URL\x20is\x20unreachable');return{'ok':_0x39f383['errors'][_0x183106(0x17d)]===0x0,'errors':_0x39f383['errors']};}export async function validateCssUrlReachable(_0x3c1cd5){const _0x3e7864=a50_0x4cb1,_0x3fef80=validateCssUrl(_0x3c1cd5);if(!_0x3fef80['ok'])return _0x3fef80;const _0x53e93b=await isUrlReachable(_0x3c1cd5);if(!_0x53e93b)_0x3fef80[_0x3e7864(0x181)][_0x3e7864(0x180)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x3fef80[_0x3e7864(0x181)][_0x3e7864(0x17d)]===0x0,'errors':_0x3fef80[_0x3e7864(0x181)]};}export function buildCompareRows(_0x3316eb,_0x11c275){const _0xbd79ac=a50_0x4cb1;return _0x3316eb[_0xbd79ac(0x175)](_0xec715f=>({'label':_0xec715f[_0xbd79ac(0x17c)],'path':_0xec715f[_0xbd79ac(0x177)],'local':!![],'online':_0x11c275[_0xbd79ac(0x16f)](_0xec715f[_0xbd79ac(0x177)])}));}function a50_0x497d(){const _0x19d6c5=['resources','1934IdDVgE','No\x20local\x20pages\x20matched\x20labels:\x20','1299649miTXCx','4944840btVFTv','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','filter','has','163544voLOdy','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','2224560gCmpFD','allSettled','162FdIYek','map','189rGhASp','path','7071ASSRwj','find','44TtPwgj','1019oZUgzh','label','length','status','279475DfXGRV','push','errors','trim','860RUelxP','156SxSiId','rejected'];a50_0x497d=function(){return _0x19d6c5;};return a50_0x497d();}export function filterNewPages(_0x510bed,_0x605b63,_0x56b1a1){const _0xd10431=a50_0x4cb1;if(_0x56b1a1&&_0x56b1a1['length']>0x0){const _0x40eac5=new Set(_0x56b1a1[_0xd10431(0x175)](_0x160108=>_0x160108[_0xd10431(0x182)]())),_0x5eb965=_0x510bed[_0xd10431(0x16e)](_0x436765=>_0x40eac5['has'](_0x436765[_0xd10431(0x17c)]));if(_0x5eb965[_0xd10431(0x17d)]===0x0)throw new Error(_0xd10431(0x16a)+[..._0x40eac5]['join'](',\x20'));return _0x5eb965;}return _0x510bed[_0xd10431(0x16e)](_0xe3b680=>!_0x605b63[_0xd10431(0x16f)](_0xe3b680[_0xd10431(0x177)]));}export function filterPagesByLabels(_0x504975,_0x24add1){const _0x5ffeff=a50_0x4cb1,_0x57c3e5=[],_0x16069f=[];for(const _0x3bf9ce of _0x24add1){const _0x1f8375=_0x3bf9ce['trim'](),_0x50c15b=_0x504975[_0x5ffeff(0x179)](_0x1058a2=>_0x1058a2[_0x5ffeff(0x17c)]===_0x1f8375);if(_0x50c15b)_0x57c3e5['push'](_0x50c15b);else _0x16069f[_0x5ffeff(0x180)](_0x3bf9ce);}return{'matched':_0x57c3e5,'unmatched':_0x16069f};}function a50_0x4cb1(_0x2ce52a,_0x5c0ecc){_0x2ce52a=_0x2ce52a-0x165;const _0x497d1e=a50_0x497d();let _0x4cb1fd=_0x497d1e[_0x2ce52a];return _0x4cb1fd;}export async function doCreateMenus(_0x57700f,_0x438973,_0x498ec0,_0x59435d){const _0x3293de=a50_0x4cb1;return await createMenus(_0x57700f,_0x438973,_0x498ec0,_0x59435d),{'created':_0x498ec0[_0x3293de(0x17d)],'failed':0x0,'labels':_0x498ec0[_0x3293de(0x175)](_0x5b4663=>_0x5b4663[_0x3293de(0x17c)])};}export function filterMenusWithResources(_0x53b84b){const _0x3679c1=a50_0x4cb1;return _0x53b84b[_0x3679c1(0x16e)](_0x2a8b82=>_0x2a8b82['resources'][_0x3679c1(0x17d)]>0x0);}export async function doUpdateCdnUrls(_0x114d4b,_0x4afbce,_0x1446b3,_0x3f172c){const _0x5280ae=a50_0x4cb1,_0x1c68cd=_0x1446b3[_0x5280ae(0x16e)](_0x53b211=>_0x53b211[_0x5280ae(0x168)]['length']>0x0),_0x49008d=await Promise[_0x5280ae(0x173)](_0x1c68cd[_0x5280ae(0x175)](_0x25ca84=>updateMenuCdnUrl(_0x114d4b,_0x4afbce,{'id':_0x25ca84['id'],'label':_0x25ca84[_0x5280ae(0x17c)],'path':_0x25ca84[_0x5280ae(0x177)],'resources':_0x3f172c}))),_0x46dc28=_0x49008d['filter'](_0x55c847=>_0x55c847[_0x5280ae(0x17e)]===_0x5280ae(0x167))['length'];return{'updated':_0x1c68cd[_0x5280ae(0x17d)]-_0x46dc28,'failed':_0x46dc28};}export async function fetchMenuData(_0x5a533f,_0x1c0278){const _0x449286=a50_0x4cb1,_0x44d4ab=getLocalPages(),_0x42de52=await getOnlineMenuList(_0x5a533f,_0x1c0278),_0x222c23=new Set(_0x42de52[_0x449286(0x175)](_0x1c32f3=>_0x1c32f3[_0x449286(0x177)]));return{'localPages':_0x44d4ab,'onlineMenuList':_0x42de52,'onlinePaths':_0x222c23};}export async function fetchOnlineMenuList(_0x581c74,_0x43eace){return getOnlineMenuList(_0x581c74,_0x43eace);}
1
+ (function(_0x248643,_0xa67876){const _0x442601=a60_0x1471,_0x4cd09f=_0x248643();while(!![]){try{const _0x2ec137=parseInt(_0x442601(0x14e))/0x1+parseInt(_0x442601(0x14a))/0x2*(parseInt(_0x442601(0x147))/0x3)+parseInt(_0x442601(0x148))/0x4*(-parseInt(_0x442601(0x140))/0x5)+parseInt(_0x442601(0x159))/0x6+-parseInt(_0x442601(0x150))/0x7+-parseInt(_0x442601(0x153))/0x8*(-parseInt(_0x442601(0x142))/0x9)+parseInt(_0x442601(0x157))/0xa;if(_0x2ec137===_0xa67876)break;else _0x4cd09f['push'](_0x4cd09f['shift']());}catch(_0x13c813){_0x4cd09f['push'](_0x4cd09f['shift']());}}}(a60_0x33b4,0x681b7));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x3db21b){const _0x3f1047=a60_0x1471,_0x570309=[];return!isValidJsHttpsUrl(_0x3db21b)&&_0x570309[_0x3f1047(0x146)](_0x3f1047(0x14d)),{'ok':_0x570309[_0x3f1047(0x156)]===0x0,'errors':_0x570309};}export function validateCssUrl(_0x17a760){const _0x3b2f05=a60_0x1471,_0x5d38de=[];return!isValidCssHttpsUrl(_0x17a760)&&_0x5d38de[_0x3b2f05(0x146)](_0x3b2f05(0x154)),{'ok':_0x5d38de[_0x3b2f05(0x156)]===0x0,'errors':_0x5d38de};}export async function validateJsUrlReachable(_0x31e067){const _0x14cbde=a60_0x1471,_0x1b3ddb=validateJsUrl(_0x31e067);if(!_0x1b3ddb['ok'])return _0x1b3ddb;const _0x6a7958=await isUrlReachable(_0x31e067);if(!_0x6a7958)_0x1b3ddb[_0x14cbde(0x14c)][_0x14cbde(0x146)](_0x14cbde(0x152));return{'ok':_0x1b3ddb[_0x14cbde(0x14c)][_0x14cbde(0x156)]===0x0,'errors':_0x1b3ddb[_0x14cbde(0x14c)]};}export async function validateCssUrlReachable(_0x280ecc){const _0xa122dd=a60_0x1471,_0x15265e=validateCssUrl(_0x280ecc);if(!_0x15265e['ok'])return _0x15265e;const _0x146b74=await isUrlReachable(_0x280ecc);if(!_0x146b74)_0x15265e[_0xa122dd(0x14c)][_0xa122dd(0x146)](_0xa122dd(0x151));return{'ok':_0x15265e[_0xa122dd(0x14c)][_0xa122dd(0x156)]===0x0,'errors':_0x15265e['errors']};}export function buildCompareRows(_0x559b8a,_0x1780a4){const _0x1a1172=a60_0x1471;return _0x559b8a[_0x1a1172(0x145)](_0x5a0752=>({'label':_0x5a0752[_0x1a1172(0x143)],'path':_0x5a0752['path'],'local':!![],'online':_0x1780a4[_0x1a1172(0x158)](_0x5a0752['path'])}));}function a60_0x1471(_0x11efe4,_0x456edb){_0x11efe4=_0x11efe4-0x140;const _0x33b4df=a60_0x33b4();let _0x147189=_0x33b4df[_0x11efe4];return _0x147189;}export function filterNewPages(_0x3ac500,_0x7f04f9,_0x5dec69){const _0x41a1fb=a60_0x1471;if(_0x5dec69&&_0x5dec69['length']>0x0){const _0x3c06e5=new Set(_0x5dec69[_0x41a1fb(0x145)](_0x29c68a=>_0x29c68a[_0x41a1fb(0x14f)]())),_0x52c34c=_0x3ac500[_0x41a1fb(0x144)](_0xa6b583=>_0x3c06e5[_0x41a1fb(0x158)](_0xa6b583[_0x41a1fb(0x143)]));if(_0x52c34c[_0x41a1fb(0x156)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x3c06e5][_0x41a1fb(0x149)](',\x20'));return _0x52c34c;}return _0x3ac500['filter'](_0x24023c=>!_0x7f04f9[_0x41a1fb(0x158)](_0x24023c[_0x41a1fb(0x15a)]));}export function filterPagesByLabels(_0x5d3ef0,_0x5a24e5){const _0x5e7aed=a60_0x1471,_0x20602a=[],_0x44dceb=[];for(const _0x3b5f10 of _0x5a24e5){const _0x234eb0=_0x3b5f10['trim'](),_0x2d0f1f=_0x5d3ef0[_0x5e7aed(0x141)](_0x340718=>_0x340718[_0x5e7aed(0x143)]===_0x234eb0);if(_0x2d0f1f)_0x20602a['push'](_0x2d0f1f);else _0x44dceb[_0x5e7aed(0x146)](_0x3b5f10);}return{'matched':_0x20602a,'unmatched':_0x44dceb};}function a60_0x33b4(){const _0x369127=['trim','4076702AuevRf','CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20is\x20unreachable','8ndqDtR','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','resources','length','961070WJShTY','has','737220KEduuN','path','1687480aIQLxE','find','1115676LiBgVj','label','filter','map','push','907980inGSZz','8WCZvkg','join','4WhwPwS','status','errors','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','735540JOrUpW'];a60_0x33b4=function(){return _0x369127;};return a60_0x33b4();}export async function doCreateMenus(_0x14315c,_0x3e1875,_0x2498b3,_0x40f5c2){const _0x13788e=a60_0x1471;return await createMenus(_0x14315c,_0x3e1875,_0x2498b3,_0x40f5c2),{'created':_0x2498b3[_0x13788e(0x156)],'failed':0x0,'labels':_0x2498b3[_0x13788e(0x145)](_0xf783ab=>_0xf783ab[_0x13788e(0x143)])};}export function filterMenusWithResources(_0x2fc2f0){const _0x34a0e9=a60_0x1471;return _0x2fc2f0[_0x34a0e9(0x144)](_0x4b0fbd=>_0x4b0fbd['resources']['length']>0x0);}export async function doUpdateCdnUrls(_0x479ffd,_0x93d62c,_0x59a7f1,_0x5c8612){const _0x1774f1=a60_0x1471,_0x22a379=_0x59a7f1[_0x1774f1(0x144)](_0x4cb7d6=>_0x4cb7d6[_0x1774f1(0x155)][_0x1774f1(0x156)]>0x0),_0x2c8f16=await Promise['allSettled'](_0x22a379[_0x1774f1(0x145)](_0x320d8b=>updateMenuCdnUrl(_0x479ffd,_0x93d62c,{'id':_0x320d8b['id'],'label':_0x320d8b[_0x1774f1(0x143)],'path':_0x320d8b[_0x1774f1(0x15a)],'resources':_0x5c8612}))),_0x3ecbd8=_0x2c8f16[_0x1774f1(0x144)](_0x3c453f=>_0x3c453f[_0x1774f1(0x14b)]==='rejected')[_0x1774f1(0x156)];return{'updated':_0x22a379['length']-_0x3ecbd8,'failed':_0x3ecbd8};}export async function fetchMenuData(_0x3010d8,_0x1cbbc0){const _0x5cbc5e=getLocalPages(),_0x4a1884=await getOnlineMenuList(_0x3010d8,_0x1cbbc0),_0x3b8af4=new Set(_0x4a1884['map'](_0x1d0190=>_0x1d0190['path']));return{'localPages':_0x5cbc5e,'onlineMenuList':_0x4a1884,'onlinePaths':_0x3b8af4};}export async function fetchOnlineMenuList(_0x1efb15,_0x16f97d){return getOnlineMenuList(_0x1efb15,_0x16f97d);}