@lovrabet/rabetbase-cli 2.0.2-beta.3 → 2.0.2-beta.6

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 (129) hide show
  1. package/lib/ai-setup/config.js +1 -1
  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/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/app.js +1 -1
  18. package/lib/commands/auth.js +1 -1
  19. package/lib/commands/bff/delete.js +1 -1
  20. package/lib/commands/bff/detail.js +1 -1
  21. package/lib/commands/bff/index.js +1 -1
  22. package/lib/commands/bff/list.js +1 -1
  23. package/lib/commands/bff/new.js +1 -1
  24. package/lib/commands/bff/pull.js +1 -1
  25. package/lib/commands/bff/push.js +1 -1
  26. package/lib/commands/bff/status.js +1 -1
  27. package/lib/commands/build.js +1 -1
  28. package/lib/commands/cli-update.js +1 -0
  29. package/lib/commands/codegen/index.js +1 -1
  30. package/lib/commands/codegen/sdk.js +1 -1
  31. package/lib/commands/codegen/sql.js +1 -1
  32. package/lib/commands/common/flags.js +1 -1
  33. package/lib/commands/config.js +1 -1
  34. package/lib/commands/create.js +1 -1
  35. package/lib/commands/dataset/detail.js +1 -1
  36. package/lib/commands/dataset/index.js +1 -1
  37. package/lib/commands/dataset/links.js +1 -1
  38. package/lib/commands/dataset/list.js +1 -1
  39. package/lib/commands/dataset/operations.js +1 -1
  40. package/lib/commands/doctor.js +1 -0
  41. package/lib/commands/init.js +1 -1
  42. package/lib/commands/logout.js +1 -1
  43. package/lib/commands/logs.js +1 -1
  44. package/lib/commands/mcp.js +1 -1
  45. package/lib/commands/menu/index.js +1 -1
  46. package/lib/commands/menu/shared/compare-table.js +1 -1
  47. package/lib/commands/menu/shared/index.js +1 -1
  48. package/lib/commands/menu/shared/inquirer.js +1 -1
  49. package/lib/commands/menu/shared/local-pages.js +1 -1
  50. package/lib/commands/menu/shared/logic.js +1 -1
  51. package/lib/commands/menu/shared/service.js +1 -1
  52. package/lib/commands/menu/shared/sync-core.js +1 -1
  53. package/lib/commands/menu/shared/update-core.js +1 -1
  54. package/lib/commands/menu/shared/valid-url.js +1 -1
  55. package/lib/commands/menu/sync.js +1 -1
  56. package/lib/commands/menu/update.js +1 -1
  57. package/lib/commands/preview.js +1 -1
  58. package/lib/commands/project-upgrade.js +1 -0
  59. package/lib/commands/registry.js +1 -1
  60. package/lib/commands/run.js +1 -1
  61. package/lib/commands/skill.js +1 -1
  62. package/lib/commands/sql/detail.js +1 -1
  63. package/lib/commands/sql/exec.js +1 -1
  64. package/lib/commands/sql/index.js +1 -1
  65. package/lib/commands/sql/list.js +1 -1
  66. package/lib/commands/sql/save.js +1 -1
  67. package/lib/commands/sql/validate.js +1 -1
  68. package/lib/commands/start.js +1 -1
  69. package/lib/config/config-help.js +1 -1
  70. package/lib/config/main.js +1 -1
  71. package/lib/constant/cli.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/alias-resolver.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/bff/config.js +1 -1
  78. package/lib/core/bff/file-system.js +1 -1
  79. package/lib/core/bff/hash.js +1 -1
  80. package/lib/core/bff/lock.js +1 -1
  81. package/lib/core/bff/utils.js +1 -1
  82. package/lib/core/db-resolver.js +1 -1
  83. package/lib/core/sql-validator.js +1 -1
  84. package/lib/create-app/enhanced-guided-create.js +1 -1
  85. package/lib/create-app/format-elapsed.js +1 -1
  86. package/lib/create-app/main.js +1 -1
  87. package/lib/create-app/non-interactive.js +1 -1
  88. package/lib/create-app/task-finished.js +1 -1
  89. package/lib/create-app/task-loading.js +1 -1
  90. package/lib/create-app/task-running.js +1 -1
  91. package/lib/create-app/task-time.js +1 -1
  92. package/lib/create-app/use-copy-project-template.js +1 -1
  93. package/lib/create-app/use-format-code.js +1 -1
  94. package/lib/create-app/use-install-dependencies.js +1 -1
  95. package/lib/errors.js +1 -1
  96. package/lib/framework/flags.js +1 -1
  97. package/lib/framework/help.js +1 -1
  98. package/lib/framework/index.js +1 -1
  99. package/lib/framework/output.js +1 -1
  100. package/lib/framework/response.js +1 -1
  101. package/lib/framework/runner.js +1 -1
  102. package/lib/generated/build-info.js +1 -1
  103. package/lib/help.js +1 -1
  104. package/lib/init/main.js +1 -1
  105. package/lib/mcp/McpInstallUI.js +1 -1
  106. package/lib/mcp/claude.js +1 -1
  107. package/lib/mcp/cursor.js +1 -1
  108. package/lib/mcp/main.js +1 -1
  109. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  110. package/lib/mcp/mcp-installer.js +1 -1
  111. package/lib/skills/main.js +1 -1
  112. package/lib/skills/npx-skills-add.js +1 -1
  113. package/lib/ui/IDESelector.js +1 -1
  114. package/lib/ui/useIDESelection.js +1 -1
  115. package/lib/utils/ai_config.js +1 -1
  116. package/lib/utils/cdn-config.js +1 -1
  117. package/lib/utils/check-sdk-version.js +1 -1
  118. package/lib/utils/cli-version-check.js +1 -1
  119. package/lib/utils/config.js +1 -1
  120. package/lib/utils/copy-directory.js +1 -1
  121. package/lib/utils/file-utils.js +1 -1
  122. package/lib/utils/guides-cdn.js +1 -1
  123. package/lib/utils/http-client.js +1 -1
  124. package/lib/utils/logger.js +1 -1
  125. package/lib/utils/rules-cdn.js +1 -1
  126. package/lib/utils/sleep.js +1 -1
  127. package/lib/utils/template-replacer.js +1 -1
  128. package/package.json +1 -1
  129. package/lib/api/pull-silent.js +0 -1
@@ -1 +1 @@
1
- const a30_0x254e0b=a30_0x5587;function a30_0x2e79(){const _0x52c0ef=['3257694yzWnem','target','sqlName','sqlcode','sdk','bff','3hyCpSS','14EGYfSl','1859256QLTWsY','5SSjLLS','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','read','no-imports','336dYuMTi','Omit\x20import\x20statements\x20from\x20generated\x20code','boolean','17648QMSKOq','2215939WJOJHj','str','478153yJMjTJ','550508cVhUjX','sqlCode','codegen','1879362cChItm','2YcANKk','20eKnenm','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query'];a30_0x2e79=function(){return _0x52c0ef;};return a30_0x2e79();}function a30_0x5587(_0x295b71,_0x1cceaa){_0x295b71=_0x295b71-0x71;const _0x2e79f9=a30_0x2e79();let _0x5587b6=_0x2e79f9[_0x295b71];return _0x5587b6;}(function(_0x24b920,_0x4eaebd){const _0x4e5f24=a30_0x5587,_0x5dba8d=_0x24b920();while(!![]){try{const _0x441322=-parseInt(_0x4e5f24(0x76))/0x1*(parseInt(_0x4e5f24(0x89))/0x2)+-parseInt(_0x4e5f24(0x7f))/0x3*(-parseInt(_0x4e5f24(0x72))/0x4)+-parseInt(_0x4e5f24(0x82))/0x5*(-parseInt(_0x4e5f24(0x75))/0x6)+-parseInt(_0x4e5f24(0x80))/0x7*(parseInt(_0x4e5f24(0x81))/0x8)+-parseInt(_0x4e5f24(0x79))/0x9+parseInt(_0x4e5f24(0x77))/0xa*(-parseInt(_0x4e5f24(0x8a))/0xb)+parseInt(_0x4e5f24(0x86))/0xc*(parseInt(_0x4e5f24(0x71))/0xd);if(_0x441322===_0x4eaebd)break;else _0x5dba8d['push'](_0x5dba8d['shift']());}catch(_0x4efedb){_0x5dba8d['push'](_0x5dba8d['shift']());}}}(a30_0x2e79,0x38fb4));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';export const codegenSql={'service':a30_0x254e0b(0x74),'command':'sql','description':a30_0x254e0b(0x78),'risk':a30_0x254e0b(0x84),'flags':[SQLCODE_FLAG,{'name':a30_0x254e0b(0x7a),'type':'string','description':a30_0x254e0b(0x83),'default':a30_0x254e0b(0x7d),'enum':[a30_0x254e0b(0x7d),a30_0x254e0b(0x7e)]},{'name':a30_0x254e0b(0x85),'type':a30_0x254e0b(0x88),'description':a30_0x254e0b(0x87)}],async 'execute'(_0x43672e){const _0x339550=a30_0x254e0b,_0x119017=await getSqlQueryInfo(_0x43672e['appCode'],_0x43672e[_0x339550(0x8b)](_0x339550(0x7c))),_0x498788=_0x43672e['str']('target')||'sdk',_0x14019f=generateSqlCodeTemplate(_0x119017,{'target':_0x498788,'includeImports':!_0x43672e['bool'](_0x339550(0x85))});return{'ok':!![],'data':{'sqlCode':_0x119017[_0x339550(0x73)],'sqlName':_0x119017[_0x339550(0x7b)],'target':_0x498788,'code':_0x14019f}};}};
1
+ const a30_0x294fd9=a30_0x3fb5;(function(_0x3e0c39,_0x3acefa){const _0x349290=a30_0x3fb5,_0x18a611=_0x3e0c39();while(!![]){try{const _0x473a96=parseInt(_0x349290(0xa8))/0x1+-parseInt(_0x349290(0x99))/0x2*(-parseInt(_0x349290(0xa5))/0x3)+parseInt(_0x349290(0xb1))/0x4*(parseInt(_0x349290(0xa1))/0x5)+parseInt(_0x349290(0xaf))/0x6*(-parseInt(_0x349290(0x9b))/0x7)+-parseInt(_0x349290(0xac))/0x8+parseInt(_0x349290(0xad))/0x9*(-parseInt(_0x349290(0x9a))/0xa)+parseInt(_0x349290(0x9c))/0xb;if(_0x473a96===_0x3acefa)break;else _0x18a611['push'](_0x18a611['shift']());}catch(_0x47325b){_0x18a611['push'](_0x18a611['shift']());}}}(a30_0x1599,0x74a4c));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a30_0x3fb5(_0x567015,_0x458f7a){_0x567015=_0x567015-0x98;const _0x1599cd=a30_0x1599();let _0x3fb50f=_0x1599cd[_0x567015];return _0x3fb50f;}function a30_0x1599(){const _0x243551=['bff','6bmBAuJ','sdk','4FiywlY','no-imports','1506KTmBWh','70yElmVI','3598763SPjNPV','5927845jJLFqV','sqlName','target','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','str','3747755wWjTBV','boolean','codegen','bool','3270PTUuGR','appCode','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','610155mAaaRc','string','read','Omit\x20import\x20statements\x20from\x20generated\x20code','7360040OdcfFd','1038195jMxHvy'];a30_0x1599=function(){return _0x243551;};return a30_0x1599();}import{SQLCODE_FLAG}from'../common/flags.js';export const codegenSql={'service':a30_0x294fd9(0xa3),'command':'sql','description':a30_0x294fd9(0x9f),'risk':a30_0x294fd9(0xaa),'flags':[SQLCODE_FLAG,{'name':a30_0x294fd9(0x9e),'type':a30_0x294fd9(0xa9),'description':a30_0x294fd9(0xa7),'default':a30_0x294fd9(0xb0),'enum':[a30_0x294fd9(0xb0),a30_0x294fd9(0xae)]},{'name':a30_0x294fd9(0x98),'type':a30_0x294fd9(0xa2),'description':a30_0x294fd9(0xab)}],async 'execute'(_0x53012){const _0x2a0fe4=a30_0x294fd9,_0x3d2420=await getSqlQueryInfo(_0x53012[_0x2a0fe4(0xa6)],_0x53012[_0x2a0fe4(0xa0)]('sqlcode')),_0x54a17d=_0x53012[_0x2a0fe4(0xa0)](_0x2a0fe4(0x9e))||_0x2a0fe4(0xb0),_0x3b0103=generateSqlCodeTemplate(_0x3d2420,{'target':_0x54a17d,'includeImports':!_0x53012[_0x2a0fe4(0xa4)](_0x2a0fe4(0x98))});return{'ok':!![],'data':{'sqlCode':_0x3d2420['sqlCode'],'sqlName':_0x3d2420[_0x2a0fe4(0x9d)],'target':_0x54a17d,'code':_0x3b0103}};}};
@@ -1 +1 @@
1
- const a31_0x2b5a7a=a31_0x45f5;function a31_0x45f5(_0x3219d3,_0x1b0003){_0x3219d3=_0x3219d3-0x99;const _0x2ab479=a31_0x2ab4();let _0x45f5cd=_0x2ab479[_0x3219d3];return _0x45f5cd;}(function(_0x32b9e7,_0x204647){const _0x12c50e=a31_0x45f5,_0x2b8418=_0x32b9e7();while(!![]){try{const _0x1a5fbc=parseInt(_0x12c50e(0xa3))/0x1+-parseInt(_0x12c50e(0x9d))/0x2+-parseInt(_0x12c50e(0xa2))/0x3+parseInt(_0x12c50e(0x9a))/0x4*(-parseInt(_0x12c50e(0xa5))/0x5)+parseInt(_0x12c50e(0x99))/0x6*(-parseInt(_0x12c50e(0xa6))/0x7)+-parseInt(_0x12c50e(0x9e))/0x8+parseInt(_0x12c50e(0xa0))/0x9*(parseInt(_0x12c50e(0x9f))/0xa);if(_0x1a5fbc===_0x204647)break;else _0x2b8418['push'](_0x2b8418['shift']());}catch(_0x4a39b0){_0x2b8418['push'](_0x2b8418['shift']());}}}(a31_0x2ab4,0xbfa43));export const CODE_FLAG={'name':a31_0x2b5a7a(0x9c),'type':a31_0x2b5a7a(0xa1),'required':!![],'description':a31_0x2b5a7a(0x9b),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a31_0x2b5a7a(0xa9)}};function a31_0x2ab4(){const _0x37e956=['1872616lfoBIJ','3000IpCBnc','123543XVDMHb','string','4351035xPZICJ','1337736ifZWff','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','49035ohHqJp','7ydUFYi','sqlcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','4404798bZXMpf','496IfPDlt','Dataset\x20code\x20(32-char\x20hex\x20UUID)','code','2072500lMJJzg'];a31_0x2ab4=function(){return _0x37e956;};return a31_0x2ab4();}export const CODE_FLAG_OPTIONAL={'name':a31_0x2b5a7a(0x9c),'type':a31_0x2b5a7a(0xa1),'required':![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a31_0x2b5a7a(0xa9)}};export const SQLCODE_FLAG={'name':a31_0x2b5a7a(0xa7),'type':'string','required':!![],'description':a31_0x2b5a7a(0xa8),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a31_0x2b5a7a(0xa4)}};export const SQLCODE_FLAG_OPTIONAL={'name':a31_0x2b5a7a(0xa7),'type':a31_0x2b5a7a(0xa1),'required':![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a31_0x2b5a7a(0xa4)}};
1
+ function a31_0x52e4(){const _0x2709f6=['7711944vhPOnl','sqlcode','42nPpsfB','4468107tUmiVZ','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','566850fgGBYv','135cwsRqP','727368CugVwD','748570MpbeDy','26269331oijahU','string','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','4FCLKHQ','452912pNAWOu','Dataset\x20code\x20(32-char\x20hex\x20UUID)','12vVTjUm','25KMVsnj','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'];a31_0x52e4=function(){return _0x2709f6;};return a31_0x52e4();}function a31_0x14d6(_0x238f03,_0x2fde8c){_0x238f03=_0x238f03-0x140;const _0x52e484=a31_0x52e4();let _0x14d690=_0x52e484[_0x238f03];return _0x14d690;}const a31_0xc0fdb4=a31_0x14d6;(function(_0x435dc7,_0x5822fc){const _0x1f1ad3=a31_0x14d6,_0x4d503c=_0x435dc7();while(!![]){try{const _0x3df5e2=parseInt(_0x1f1ad3(0x143))/0x1*(-parseInt(_0x1f1ad3(0x14e))/0x2)+-parseInt(_0x1f1ad3(0x14c))/0x3+parseInt(_0x1f1ad3(0x150))/0x4*(-parseInt(_0x1f1ad3(0x147))/0x5)+parseInt(_0x1f1ad3(0x149))/0x6+-parseInt(_0x1f1ad3(0x14b))/0x7*(parseInt(_0x1f1ad3(0x144))/0x8)+-parseInt(_0x1f1ad3(0x14f))/0x9*(-parseInt(_0x1f1ad3(0x151))/0xa)+parseInt(_0x1f1ad3(0x140))/0xb*(parseInt(_0x1f1ad3(0x146))/0xc);if(_0x3df5e2===_0x5822fc)break;else _0x4d503c['push'](_0x4d503c['shift']());}catch(_0x32c3f9){_0x4d503c['push'](_0x4d503c['shift']());}}}(a31_0x52e4,0xe1ab1));export const CODE_FLAG={'name':'code','type':a31_0xc0fdb4(0x141),'required':!![],'description':a31_0xc0fdb4(0x145),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a31_0xc0fdb4(0x14d)}};export const CODE_FLAG_OPTIONAL={'name':'code','type':a31_0xc0fdb4(0x141),'required':![],'description':a31_0xc0fdb4(0x145),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a31_0xc0fdb4(0x14d)}};export const SQLCODE_FLAG={'name':a31_0xc0fdb4(0x14a),'type':a31_0xc0fdb4(0x141),'required':!![],'description':a31_0xc0fdb4(0x142),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const SQLCODE_FLAG_OPTIONAL={'name':a31_0xc0fdb4(0x14a),'type':a31_0xc0fdb4(0x141),'required':![],'description':a31_0xc0fdb4(0x142),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a31_0xc0fdb4(0x148)}};
@@ -1 +1 @@
1
- function a32_0x1932(){const _0x19cda6=['2345608oSUtLD','248854CGmuNT','1992992AoKRPH','7IiPCvh','170wsvkIj','config','8989308xgAEyo','752025aNWAXJ','1282923kwMARt','8082780PzhRwA','2sAvVYg'];a32_0x1932=function(){return _0x19cda6;};return a32_0x1932();}const a32_0xe7a228=a32_0x17a8;function a32_0x17a8(_0xa04a0f,_0xad4272){_0xa04a0f=_0xa04a0f-0x139;const _0x1932a6=a32_0x1932();let _0x17a887=_0x1932a6[_0xa04a0f];return _0x17a887;}(function(_0x50f25a,_0x5d95b9){const _0x307ac2=a32_0x17a8,_0x3dfb54=_0x50f25a();while(!![]){try{const _0x1faeb9=parseInt(_0x307ac2(0x13f))/0x1*(parseInt(_0x307ac2(0x141))/0x2)+-parseInt(_0x307ac2(0x13c))/0x3+parseInt(_0x307ac2(0x142))/0x4+parseInt(_0x307ac2(0x13e))/0x5+parseInt(_0x307ac2(0x13b))/0x6+parseInt(_0x307ac2(0x143))/0x7*(-parseInt(_0x307ac2(0x140))/0x8)+parseInt(_0x307ac2(0x13d))/0x9*(-parseInt(_0x307ac2(0x139))/0xa);if(_0x1faeb9===_0x5d95b9)break;else _0x3dfb54['push'](_0x3dfb54['shift']());}catch(_0x506b0c){_0x3dfb54['push'](_0x3dfb54['shift']());}}}(a32_0x1932,0xda6ed));import{jsx as a32_0x204d98}from'react/jsx-runtime';import{render}from'ink';import{Config}from'../config/main.js';export const configCommand={'name':a32_0xe7a228(0x13a),'description':'Manage\x20project\x20configuration',async 'run'(_0x22f779,_0x56ebef,_0x42f329){const _0x46447a=a32_0xe7a228,_0x5c7359={'input':[_0x46447a(0x13a),..._0x56ebef],'flags':_0x42f329,'pkg':{},'help':'','updateNotifier':undefined,'showHelp':()=>{},'showVersion':()=>{}};render(a32_0x204d98(Config,{'cli':_0x5c7359}));}};
1
+ const a32_0x4164bd=a32_0x1574;function a32_0x1574(_0x414f5d,_0x4f8b51){_0x414f5d=_0x414f5d-0x1b0;const _0x16adad=a32_0x16ad();let _0x157479=_0x16adad[_0x414f5d];return _0x157479;}(function(_0xb23020,_0x1511e9){const _0x313d93=a32_0x1574,_0x63f17e=_0xb23020();while(!![]){try{const _0x575d84=parseInt(_0x313d93(0x1b0))/0x1+parseInt(_0x313d93(0x1b1))/0x2+parseInt(_0x313d93(0x1b9))/0x3+parseInt(_0x313d93(0x1b3))/0x4+-parseInt(_0x313d93(0x1b8))/0x5*(-parseInt(_0x313d93(0x1b5))/0x6)+parseInt(_0x313d93(0x1b6))/0x7+-parseInt(_0x313d93(0x1b4))/0x8*(parseInt(_0x313d93(0x1b7))/0x9);if(_0x575d84===_0x1511e9)break;else _0x63f17e['push'](_0x63f17e['shift']());}catch(_0x1b1a52){_0x63f17e['push'](_0x63f17e['shift']());}}}(a32_0x16ad,0x2f3c4));import{jsx as a32_0x53125c}from'react/jsx-runtime';import{render}from'ink';import{Config}from'../config/main.js';function a32_0x16ad(){const _0x3c39f2=['5569144wKrTFK','1216416pTxHdT','945301RGIWUS','9Opxfvw','5WnHOnj','30720VBugpM','385457BSpfTc','159744ujcGYe','config','305084nPIMuq'];a32_0x16ad=function(){return _0x3c39f2;};return a32_0x16ad();}export const configCommand={'name':a32_0x4164bd(0x1b2),'description':'Manage\x20project\x20configuration',async 'run'(_0x350444,_0x5b952e,_0x115c02){const _0x4ce99f={'input':['config',..._0x5b952e],'flags':_0x115c02,'pkg':{},'help':'','updateNotifier':undefined,'showHelp':()=>{},'showVersion':()=>{}};render(a32_0x53125c(Config,{'cli':_0x4ce99f}));}};
@@ -1 +1 @@
1
- function a33_0xaeb4(_0x329528,_0x4c5e94){_0x329528=_0x329528-0x8b;const _0x2b67eb=a33_0x2b67();let _0xaeb4b2=_0x2b67eb[_0x329528];return _0xaeb4b2;}(function(_0x57d30d,_0x302c08){const _0x4b1041=a33_0xaeb4,_0x26fa7d=_0x57d30d();while(!![]){try{const _0x36d7ee=-parseInt(_0x4b1041(0x91))/0x1+parseInt(_0x4b1041(0x8e))/0x2+parseInt(_0x4b1041(0x8f))/0x3*(-parseInt(_0x4b1041(0x9f))/0x4)+parseInt(_0x4b1041(0x9e))/0x5*(parseInt(_0x4b1041(0x99))/0x6)+-parseInt(_0x4b1041(0xa0))/0x7*(parseInt(_0x4b1041(0x94))/0x8)+-parseInt(_0x4b1041(0x9c))/0x9*(-parseInt(_0x4b1041(0x98))/0xa)+-parseInt(_0x4b1041(0x93))/0xb*(parseInt(_0x4b1041(0xa1))/0xc);if(_0x36d7ee===_0x302c08)break;else _0x26fa7d['push'](_0x26fa7d['shift']());}catch(_0x3aedf3){_0x26fa7d['push'](_0x26fa7d['shift']());}}}(a33_0x2b67,0xecf5b));import{jsx as a33_0x4b3c86}from'react/jsx-runtime';function a33_0x2b67(){const _0x3eb626=['8BFmsiQ','validation','info','env','7101570HcqRpB','54654oKrgev','create','../create-app/non-interactive.js','18gEdwPL','logger','730eYUgWN','444084GyDEvU','893389joNChw','37764dkOvyA','Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci','nonInteractive','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','2291394ZvPouT','9bzNDpV','cookie','1715662CzFsza','auth','2618Lnhvzl'];a33_0x2b67=function(){return _0x3eb626;};return a33_0x2b67();}import{render}from'ink';import{CreateApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';export const createCommand={'name':'create','description':'Create\x20a\x20new\x20project',async 'run'(_0x441bec,_0x1015b6,_0x362dbb){const _0x71d5a8=a33_0xaeb4,_0x18e398=_0x1015b6[0x0]?.['trim'](),_0x5b88ee=_0x362dbb[_0x71d5a8(0x97)];if(_0x441bec[_0x71d5a8(0x8c)]&&_0x18e398){_0x441bec[_0x71d5a8(0x9d)][_0x71d5a8(0x96)](_0x71d5a8(0x9a),'非交互模式创建项目:\x20'+_0x18e398);const {createProjectNonInteractive:_0x33507b}=await import(_0x71d5a8(0x9b));await _0x33507b(_0x18e398,_0x5b88ee);}else{if(_0x441bec[_0x71d5a8(0x8c)]&&!_0x18e398)throw CliErrors[_0x71d5a8(0x95)](_0x71d5a8(0x8d),_0x71d5a8(0x8b));else render(a33_0x4b3c86(CreateApp,{'projectCode':_0x18e398,'env':_0x5b88ee,'cookie':_0x441bec[_0x71d5a8(0x92)][_0x71d5a8(0x90)]}));}}};
1
+ function a33_0x42e2(){const _0x2a5798=['1265253wmAMlo','auth','nonInteractive','6360720PbEJxV','2412279jBDppt','614Falwac','1749632QdDGZe','Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci','logger','1364vFdFpg','6TiprNQ','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','create','../create-app/non-interactive.js','非交互模式创建项目:\x20','validation','15755mfYxka','168GrjJWk','info','Create\x20a\x20new\x20project','1713859MkvuOv'];a33_0x42e2=function(){return _0x2a5798;};return a33_0x42e2();}const a33_0x26482a=a33_0x58dc;function a33_0x58dc(_0x3cbf25,_0x415c7d){_0x3cbf25=_0x3cbf25-0x1d2;const _0x42e217=a33_0x42e2();let _0x58dca2=_0x42e217[_0x3cbf25];return _0x58dca2;}(function(_0xdcea63,_0x226ee5){const _0x481ab3=a33_0x58dc,_0x3a8acb=_0xdcea63();while(!![]){try{const _0x44cb1c=-parseInt(_0x481ab3(0x1d9))/0x1*(parseInt(_0x481ab3(0x1dd))/0x2)+-parseInt(_0x481ab3(0x1d4))/0x3+-parseInt(_0x481ab3(0x1e5))/0x4*(-parseInt(_0x481ab3(0x1e4))/0x5)+-parseInt(_0x481ab3(0x1de))/0x6*(-parseInt(_0x481ab3(0x1d3))/0x7)+-parseInt(_0x481ab3(0x1da))/0x8+parseInt(_0x481ab3(0x1d8))/0x9+parseInt(_0x481ab3(0x1d7))/0xa;if(_0x44cb1c===_0x226ee5)break;else _0x3a8acb['push'](_0x3a8acb['shift']());}catch(_0x14e67b){_0x3a8acb['push'](_0x3a8acb['shift']());}}}(a33_0x42e2,0x3637f));import{jsx as a33_0xbaed94}from'react/jsx-runtime';import{render}from'ink';import{CreateApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';export const createCommand={'name':a33_0x26482a(0x1e0),'description':a33_0x26482a(0x1d2),async 'run'(_0xf25a59,_0x30b6c3,_0x2f6c17){const _0x49a368=a33_0x26482a,_0x3156a6=_0x30b6c3[0x0]?.['trim'](),_0x477383=_0x2f6c17['env'];if(_0xf25a59[_0x49a368(0x1d6)]&&_0x3156a6){_0xf25a59[_0x49a368(0x1dc)][_0x49a368(0x1e6)]('create',_0x49a368(0x1e2)+_0x3156a6);const {createProjectNonInteractive:_0x3986f3}=await import(_0x49a368(0x1e1));await _0x3986f3(_0x3156a6,_0x477383);}else{if(_0xf25a59[_0x49a368(0x1d6)]&&!_0x3156a6)throw CliErrors[_0x49a368(0x1e3)](_0x49a368(0x1df),_0x49a368(0x1db));else render(a33_0xbaed94(CreateApp,{'projectCode':_0x3156a6,'env':_0x477383,'cookie':_0xf25a59[_0x49a368(0x1d5)]['cookie']}));}}};
@@ -1 +1 @@
1
- const a34_0x2c6855=a34_0x767a;function a34_0x767a(_0xa4e20,_0x249ee2){_0xa4e20=_0xa4e20-0x114;const _0x15a2a6=a34_0x15a2();let _0x767aff=_0x15a2a6[_0xa4e20];return _0x767aff;}(function(_0x27a8a0,_0x7e7010){const _0x5a5082=a34_0x767a,_0x475bc4=_0x27a8a0();while(!![]){try{const _0x152bb0=-parseInt(_0x5a5082(0x135))/0x1*(parseInt(_0x5a5082(0x13b))/0x2)+-parseInt(_0x5a5082(0x11b))/0x3*(-parseInt(_0x5a5082(0x116))/0x4)+parseInt(_0x5a5082(0x138))/0x5*(parseInt(_0x5a5082(0x11f))/0x6)+-parseInt(_0x5a5082(0x117))/0x7*(-parseInt(_0x5a5082(0x145))/0x8)+-parseInt(_0x5a5082(0x131))/0x9+parseInt(_0x5a5082(0x118))/0xa+-parseInt(_0x5a5082(0x115))/0xb;if(_0x152bb0===_0x7e7010)break;else _0x475bc4['push'](_0x475bc4['shift']());}catch(_0x634353){_0x475bc4['push'](_0x475bc4['shift']());}}}(a34_0x15a2,0x74c34));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0xaba3da){const _0x3bb788=a34_0x767a;if(_0xaba3da[_0x3bb788(0x13a)])return null;const _0x49408f=Boolean(_0xaba3da[_0x3bb788(0x12e)]!==undefined||_0xaba3da[_0x3bb788(0x126)]!==undefined);let _0xafd8c6={};if(!_0x49408f&&typeof _0xaba3da[_0x3bb788(0x123)]===_0x3bb788(0x13d))try{_0xafd8c6=JSON[_0x3bb788(0x136)](_0xaba3da[_0x3bb788(0x123)]);}catch{}const _0x4e2c0f=_0x49408f?_0xaba3da[_0x3bb788(0x133)]:_0xaba3da[_0x3bb788(0x11c)],_0x585f25=_0x49408f?_0xaba3da[_0x3bb788(0x12e)]:_0xaba3da[_0x3bb788(0x133)],_0x4618df=_0x49408f?_0xaba3da[_0x3bb788(0x126)]:_0xaba3da[_0x3bb788(0x128)]||_0xaba3da['dataType'],_0x3812b2=_0x49408f?_0xaba3da[_0x3bb788(0x130)]===!![]:_0xafd8c6[_0x3bb788(0x130)]===!![],_0x2fe99f=_0x49408f?_0xaba3da[_0x3bb788(0x139)]===!![]:_0xafd8c6['required']===!![],_0x25de0b=_0x49408f?_0xaba3da['options']??null:_0xafd8c6['options']??null,_0x44b4a7={'name':_0x4e2c0f,'displayName':_0x585f25||_0x4e2c0f,'type':_0x4618df,'dbType':_0xaba3da[_0x3bb788(0x132)],'pk':_0x3812b2,'required':_0x2fe99f,'description':_0xaba3da['description']||undefined};return Array[_0x3bb788(0x11e)](_0x25de0b)&&_0x25de0b[_0x3bb788(0x129)]>0x0&&(_0x44b4a7[_0x3bb788(0x134)]=_0x25de0b),_0x44b4a7;}export const datasetDetail={'service':a34_0x2c6855(0x12f),'command':a34_0x2c6855(0x14c),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a34_0x2c6855(0x127),'flags':[CODE_FLAG,{'name':a34_0x2c6855(0x125),'type':a34_0x2c6855(0x13d),'description':a34_0x2c6855(0x137)},{'name':a34_0x2c6855(0x122),'type':a34_0x2c6855(0x12d),'description':a34_0x2c6855(0x14a)}],async 'execute'(_0x165cd1){const _0x59899a=a34_0x2c6855,_0x2f415d=await getDatasetDetail(_0x165cd1[_0x59899a(0x121)](_0x59899a(0x11c))),_0x3f58f8=_0x165cd1[_0x59899a(0x148)](_0x59899a(0x122));if(_0x3f58f8)return{'ok':!![],'data':_0x2f415d};const _0x59d550=Array[_0x59899a(0x11e)](_0x2f415d[_0x59899a(0x12c)])?_0x2f415d[_0x59899a(0x12c)]:Array[_0x59899a(0x11e)](_0x2f415d[_0x59899a(0x12b)])?_0x2f415d[_0x59899a(0x12b)]:[],_0x13f463=_0x59d550[_0x59899a(0x13e)](_0x3472f7=>normalizeField(_0x3472f7))['filter'](_0x310888=>_0x310888!==null),_0x29f432=_0x2f415d[_0x59899a(0x13c)]??{},_0x18d1da=[];for(const [_0x4493b3,_0x9a92f6]of Object[_0x59899a(0x144)](_0x29f432)){if(_0x9a92f6&&typeof _0x9a92f6==='object'){const _0x18e70b=_0x9a92f6;_0x18e70b[_0x59899a(0x12a)]&&_0x18e70b['path']&&_0x18d1da[_0x59899a(0x147)]({'name':_0x4493b3,'method':_0x18e70b[_0x59899a(0x12a)],'path':_0x18e70b[_0x59899a(0x14b)]});}}const _0x4074e2=_0x2f415d[_0x59899a(0x142)]??{},_0x456b54=_0x2f415d[_0x59899a(0x12f)]??{};return{'ok':!![],'data':{'id':_0x2f415d[_0x59899a(0x114)]??_0x2f415d['id'],'name':_0x2f415d[_0x59899a(0x133)],'code':_0x2f415d[_0x59899a(0x14d)]||_0x2f415d[_0x59899a(0x11c)],'description':_0x2f415d[_0x59899a(0x120)]||_0x456b54[_0x59899a(0x149)]||undefined,'source':_0x2f415d[_0x59899a(0x140)]||_0x456b54['sourceType'],'table':_0x4074e2[_0x59899a(0x11a)]||_0x456b54[_0x59899a(0x11a)],'datasetKey':_0x4074e2['datasetKey'],'pk':_0x4074e2['pkField'],'fields':_0x13f463,'operations':_0x18d1da,'indexes':Array['isArray'](_0x456b54[_0x59899a(0x141)])?_0x456b54[_0x59899a(0x141)]:[],'relations':Array[_0x59899a(0x11e)](_0x2f415d[_0x59899a(0x143)])?_0x2f415d[_0x59899a(0x143)][_0x59899a(0x13e)](_0xbc896=>({'fromField':_0xbc896[_0x59899a(0x124)],'toDataset':_0xbc896[_0x59899a(0x119)],'toCode':_0xbc896['toDatasetCode'],'toTable':_0xbc896[_0x59899a(0x11d)],'toField':_0xbc896[_0x59899a(0x146)],'labelField':_0xbc896[_0x59899a(0x13f)]||undefined})):[],'stats':{'fieldCount':_0x13f463['length'],'operationCount':_0x18d1da['length']}}};}};function a34_0x15a2(){const _0x5f1ae0=['27504xDTReq','operations','string','map','toFieldLabel','source','indexes','dbtableConfig','relations','entries','942712ZinKdu','toField','push','bool','tableComment','Return\x20full\x20raw\x20detail\x20object','path','detail','modelCode','modelId','6958314Gakczb','2440876vXhteE','7SudVRT','6969580ElMKox','toDatasetName','tableName','3sRquLR','code','toTableName','isArray','1116jjhEMg','description','str','verbose','extend','fromField','alias','doType','read','type','length','method','properties','fields','boolean','displayName','dataset','pkField','8197128ERuKGv','dbType','name','options','9yXIBon','parse','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','19365NYSkmc','required','deleted'];a34_0x15a2=function(){return _0x5f1ae0;};return a34_0x15a2();}
1
+ const a34_0x1b0661=a34_0x5534;(function(_0x4718fb,_0x36199a){const _0x1a2996=a34_0x5534,_0x27ea67=_0x4718fb();while(!![]){try{const _0x566c83=-parseInt(_0x1a2996(0xd7))/0x1+-parseInt(_0x1a2996(0xdc))/0x2+-parseInt(_0x1a2996(0xc9))/0x3*(-parseInt(_0x1a2996(0xc6))/0x4)+-parseInt(_0x1a2996(0xe0))/0x5+-parseInt(_0x1a2996(0xd8))/0x6+parseInt(_0x1a2996(0xd6))/0x7+-parseInt(_0x1a2996(0xc5))/0x8*(-parseInt(_0x1a2996(0xdf))/0x9);if(_0x566c83===_0x36199a)break;else _0x27ea67['push'](_0x27ea67['shift']());}catch(_0xe1af4d){_0x27ea67['push'](_0x27ea67['shift']());}}}(a34_0x5447,0x64843));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function a34_0x5534(_0x5a15a8,_0x42c462){_0x5a15a8=_0x5a15a8-0xc1;const _0x54476d=a34_0x5447();let _0x553415=_0x54476d[_0x5a15a8];return _0x553415;}function normalizeField(_0x2eb2eb){const _0x24bb8b=a34_0x5534;if(_0x2eb2eb[_0x24bb8b(0xe3)])return null;const _0x2cf602=Boolean(_0x2eb2eb[_0x24bb8b(0xc7)]!==undefined||_0x2eb2eb[_0x24bb8b(0xea)]!==undefined);let _0x1bca0a={};if(!_0x2cf602&&typeof _0x2eb2eb[_0x24bb8b(0xc8)]==='string')try{_0x1bca0a=JSON[_0x24bb8b(0xd1)](_0x2eb2eb[_0x24bb8b(0xc8)]);}catch{}const _0x536544=_0x2cf602?_0x2eb2eb[_0x24bb8b(0xed)]:_0x2eb2eb[_0x24bb8b(0xf2)],_0xdd1b03=_0x2cf602?_0x2eb2eb[_0x24bb8b(0xc7)]:_0x2eb2eb['name'],_0x4ffcff=_0x2cf602?_0x2eb2eb[_0x24bb8b(0xea)]:_0x2eb2eb['type']||_0x2eb2eb['dataType'],_0x97d71f=_0x2cf602?_0x2eb2eb[_0x24bb8b(0xd3)]===!![]:_0x1bca0a[_0x24bb8b(0xd3)]===!![],_0x3f1e98=_0x2cf602?_0x2eb2eb[_0x24bb8b(0xd9)]===!![]:_0x1bca0a[_0x24bb8b(0xd9)]===!![],_0x3221a7=_0x2cf602?_0x2eb2eb[_0x24bb8b(0xef)]??null:_0x1bca0a['options']??null,_0xb382f5={'name':_0x536544,'displayName':_0xdd1b03||_0x536544,'type':_0x4ffcff,'dbType':_0x2eb2eb['dbType'],'pk':_0x97d71f,'required':_0x3f1e98,'description':_0x2eb2eb['description']||undefined};return Array['isArray'](_0x3221a7)&&_0x3221a7['length']>0x0&&(_0xb382f5['options']=_0x3221a7),_0xb382f5;}export const datasetDetail={'service':a34_0x1b0661(0xda),'command':a34_0x1b0661(0xf0),'description':a34_0x1b0661(0xd0),'risk':a34_0x1b0661(0xc1),'flags':[CODE_FLAG,{'name':a34_0x1b0661(0xe1),'type':a34_0x1b0661(0xc4),'description':a34_0x1b0661(0xca)},{'name':a34_0x1b0661(0xe6),'type':a34_0x1b0661(0xe4),'description':a34_0x1b0661(0xde)}],async 'execute'(_0xe448ef){const _0x13365e=a34_0x1b0661,_0x136b45=await getDatasetDetail(_0xe448ef[_0x13365e(0xcc)]('code')),_0x5f0a2b=_0xe448ef['bool']('verbose');if(_0x5f0a2b)return{'ok':!![],'data':_0x136b45};const _0x2c6c26=Array[_0x13365e(0xce)](_0x136b45[_0x13365e(0xee)])?_0x136b45[_0x13365e(0xee)]:Array[_0x13365e(0xce)](_0x136b45['properties'])?_0x136b45['properties']:[],_0x1f3e29=_0x2c6c26[_0x13365e(0xdd)](_0x493d70=>normalizeField(_0x493d70))[_0x13365e(0xe2)](_0x4a44a6=>_0x4a44a6!==null),_0x331b33=_0x136b45[_0x13365e(0xd4)]??{},_0x83de08=[];for(const [_0x113cb1,_0x7953b4]of Object['entries'](_0x331b33)){if(_0x7953b4&&typeof _0x7953b4===_0x13365e(0xdb)){const _0x2fa061=_0x7953b4;_0x2fa061[_0x13365e(0xd2)]&&_0x2fa061['path']&&_0x83de08[_0x13365e(0xf1)]({'name':_0x113cb1,'method':_0x2fa061['method'],'path':_0x2fa061[_0x13365e(0xcf)]});}}const _0x4b60a9=_0x136b45['dbtableConfig']??{},_0x328abb=_0x136b45[_0x13365e(0xda)]??{};return{'ok':!![],'data':{'id':_0x136b45['modelId']??_0x136b45['id'],'name':_0x136b45[_0x13365e(0xed)],'code':_0x136b45['modelCode']||_0x136b45[_0x13365e(0xf2)],'description':_0x136b45[_0x13365e(0xeb)]||_0x328abb[_0x13365e(0xe9)]||undefined,'source':_0x136b45[_0x13365e(0xe5)]||_0x328abb[_0x13365e(0xec)],'table':_0x4b60a9[_0x13365e(0xcb)]||_0x328abb[_0x13365e(0xcb)],'datasetKey':_0x4b60a9[_0x13365e(0xd5)],'pk':_0x4b60a9[_0x13365e(0xd3)],'fields':_0x1f3e29,'operations':_0x83de08,'indexes':Array[_0x13365e(0xce)](_0x328abb['indexes'])?_0x328abb[_0x13365e(0xe7)]:[],'relations':Array[_0x13365e(0xce)](_0x136b45[_0x13365e(0xcd)])?_0x136b45[_0x13365e(0xcd)][_0x13365e(0xdd)](_0x1c38f0=>({'fromField':_0x1c38f0['fromField'],'toDataset':_0x1c38f0[_0x13365e(0xc2)],'toCode':_0x1c38f0['toDatasetCode'],'toTable':_0x1c38f0['toTableName'],'toField':_0x1c38f0['toField'],'labelField':_0x1c38f0[_0x13365e(0xe8)]||undefined})):[],'stats':{'fieldCount':_0x1f3e29[_0x13365e(0xc3)],'operationCount':_0x83de08[_0x13365e(0xc3)]}}};}};function a34_0x5447(){const _0x34dbcf=['doType','description','sourceType','name','fields','options','detail','push','code','read','toDatasetName','length','string','40EWHQHE','8CmoCGC','displayName','extend','538890kcKqcI','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','tableName','str','relations','isArray','path','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','parse','method','pkField','operations','datasetKey','321993SlEYrK','67659mBSNCY','4643610QDFflc','required','dataset','object','1442118kdHmTu','map','Return\x20full\x20raw\x20detail\x20object','2900403WLeBbH','211130GKOoQx','alias','filter','deleted','boolean','source','verbose','indexes','toFieldLabel','tableComment'];a34_0x5447=function(){return _0x34dbcf;};return a34_0x5447();}
@@ -1 +1 @@
1
- (function(_0x2a1bcf,_0x4b688a){const _0x47f2bd=a35_0x46aa,_0xdbb7f5=_0x2a1bcf();while(!![]){try{const _0x1d1bd2=parseInt(_0x47f2bd(0xdd))/0x1+parseInt(_0x47f2bd(0xe1))/0x2*(parseInt(_0x47f2bd(0xe3))/0x3)+-parseInt(_0x47f2bd(0xdc))/0x4*(-parseInt(_0x47f2bd(0xdf))/0x5)+parseInt(_0x47f2bd(0xe2))/0x6+-parseInt(_0x47f2bd(0xe0))/0x7+-parseInt(_0x47f2bd(0xde))/0x8+-parseInt(_0x47f2bd(0xe4))/0x9;if(_0x1d1bd2===_0x4b688a)break;else _0xdbb7f5['push'](_0xdbb7f5['shift']());}catch(_0x43fab5){_0xdbb7f5['push'](_0xdbb7f5['shift']());}}}(a35_0x1091,0xa4c6e));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';function a35_0x46aa(_0x22dc50,_0x1e9de3){_0x22dc50=_0x22dc50-0xdc;const _0x109166=a35_0x1091();let _0x46aac3=_0x109166[_0x22dc50];return _0x46aac3;}function a35_0x1091(){const _0x576c64=['237705NnAPMw','6195160dMgBDB','5vushQL','3177349sRZLVv','1196532tNBoDk','5085960AMoWbh','6LKncyV','14776929lWoZnG','5052848eCULJf'];a35_0x1091=function(){return _0x576c64;};return a35_0x1091();}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x224bd8,_0x35e11a){const _0x2946e2=a35_0x1c05,_0x114019=_0x224bd8();while(!![]){try{const _0x378f87=parseInt(_0x2946e2(0x11f))/0x1+-parseInt(_0x2946e2(0x124))/0x2*(parseInt(_0x2946e2(0x125))/0x3)+-parseInt(_0x2946e2(0x122))/0x4*(parseInt(_0x2946e2(0x11e))/0x5)+-parseInt(_0x2946e2(0x126))/0x6+-parseInt(_0x2946e2(0x120))/0x7+-parseInt(_0x2946e2(0x11d))/0x8+parseInt(_0x2946e2(0x121))/0x9*(parseInt(_0x2946e2(0x123))/0xa);if(_0x378f87===_0x35e11a)break;else _0x114019['push'](_0x114019['shift']());}catch(_0x216311){_0x114019['push'](_0x114019['shift']());}}}(a35_0x1f42,0x69256));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';function a35_0x1f42(){const _0x14cd21=['34542axAwtU','29924cbehwm','5370DWpupt','8912rGdgHg','249DLmTBi','4541238dbgmeK','509112drGwYa','215kOqmsQ','418721BYVrRt','3759042TziPvx'];a35_0x1f42=function(){return _0x14cd21;};return a35_0x1f42();}import{datasetLinks}from'./links.js';function a35_0x1c05(_0x309515,_0x2932ec){_0x309515=_0x309515-0x11d;const _0x1f4211=a35_0x1f42();let _0x1c0566=_0x1f4211[_0x309515];return _0x1c0566;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- function a36_0x58f5(){const _0x490aa7=['meta','datasetCount','993207mCnRXT','str','4HiAmCm','datasetId','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','all','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','25sutHPr','filter','dbId','tableComment','boolean','fields','298764nbKwZg','8KJhYWM','appCode','2829431rSNtsC','isForeignKey','datasetName','Link\x20graph:\x20','verbose','relationCount','datasetCode','895636BxLZdg','1516887uXCaMG','7565340nRwLzN','displayName','datasets','isPrimaryKey','10xzPjdZ','312964QonUYg','stats','\x20database(s),\x20','Fetched\x20link\x20graph\x20for\x20','2MDinAc','\x20dataset(s),\x20','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','map','dataset','length','name','reduce','links','tableName','toDatasetName','bool','\x20database(s)','dbType','\x20relation(s)','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','fromField','toDataset'];a36_0x58f5=function(){return _0x490aa7;};return a36_0x58f5();}const a36_0x4d44a5=a36_0x5a8e;(function(_0x5cc989,_0x3bd31c){const _0x1cd88f=a36_0x5a8e,_0x33e196=_0x5cc989();while(!![]){try{const _0xd8468a=-parseInt(_0x1cd88f(0x112))/0x1*(-parseInt(_0x1cd88f(0x116))/0x2)+-parseInt(_0x1cd88f(0x12a))/0x3*(-parseInt(_0x1cd88f(0x12c))/0x4)+parseInt(_0x1cd88f(0xfb))/0x5*(parseInt(_0x1cd88f(0x101))/0x6)+-parseInt(_0x1cd88f(0x10b))/0x7*(parseInt(_0x1cd88f(0x102))/0x8)+-parseInt(_0x1cd88f(0x10c))/0x9*(parseInt(_0x1cd88f(0x111))/0xa)+parseInt(_0x1cd88f(0x104))/0xb+-parseInt(_0x1cd88f(0x10d))/0xc;if(_0xd8468a===_0x3bd31c)break;else _0x33e196['push'](_0x33e196['shift']());}catch(_0x12e6fd){_0x33e196['push'](_0x33e196['shift']());}}}(a36_0x58f5,0x36838));function a36_0x5a8e(_0x13b625,_0x5226aa){_0x13b625=_0x13b625-0xf9;const _0x58f5b1=a36_0x58f5();let _0x5a8e46=_0x58f5b1[_0x13b625];return _0x5a8e46;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':a36_0x4d44a5(0x11a),'command':a36_0x4d44a5(0x11e),'description':a36_0x4d44a5(0x118)+a36_0x4d44a5(0x12e)+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':'read','flags':[{'name':'db','type':'string','description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a36_0x4d44a5(0x125)},{'name':a36_0x4d44a5(0x108),'type':a36_0x4d44a5(0xff),'description':a36_0x4d44a5(0xfa)}],async 'execute'(_0x4833df){const _0x437b4c=a36_0x4d44a5,_0x350d6d=_0x4833df[_0x437b4c(0x121)](_0x437b4c(0x108)),{resolved:_0x415023,error:_0x3da2b2}=await resolveDb(_0x4833df[_0x437b4c(0x103)],_0x4833df[_0x437b4c(0x12b)]('db')||undefined);if(_0x3da2b2)return{'ok':![],'message':_0x3da2b2};const _0x5e2baf=_0x415023[_0x437b4c(0x119)](_0x8e7164=>_0x8e7164[_0x437b4c(0xfd)]),_0xc6ad8f=await Promise[_0x437b4c(0xf9)](_0x5e2baf[_0x437b4c(0x119)](_0x207d28=>getErConfig(_0x4833df['appCode'],_0x207d28)));if(_0x350d6d)return{'ok':!![],'data':_0xc6ad8f[_0x437b4c(0x11b)]===0x1?_0xc6ad8f[0x0]:_0xc6ad8f,'message':_0x437b4c(0x115)+_0x5e2baf[_0x437b4c(0x11b)]+_0x437b4c(0x122)};const _0x54694a=_0xc6ad8f['map'](_0x2f77d0=>{const _0x232de6=_0x437b4c,_0x477b4e=(_0x2f77d0['datasets']??[])['map'](_0x4eebf5=>{const _0x5cd5b4=a36_0x5a8e,_0x2f9c63=_0x4eebf5[_0x5cd5b4(0x100)]?.[_0x5cd5b4(0xfc)](_0x260331=>_0x260331[_0x5cd5b4(0x110)])[_0x5cd5b4(0x119)](_0x17b09d=>_0x17b09d[_0x5cd5b4(0x11c)])??[],_0x5d8b48=_0x4eebf5['fields']?.['filter'](_0x4f8f4b=>_0x4f8f4b['isForeignKey'])[_0x5cd5b4(0x119)](_0x38b8d4=>_0x38b8d4[_0x5cd5b4(0x11c)])??[];return{'id':_0x4eebf5[_0x5cd5b4(0x12d)],'name':_0x4eebf5[_0x5cd5b4(0x106)],'code':_0x4eebf5[_0x5cd5b4(0x10a)],'table':_0x4eebf5[_0x5cd5b4(0x11f)],'comment':_0x4eebf5[_0x5cd5b4(0xfe)]||undefined,'fields':(_0x4eebf5[_0x5cd5b4(0x100)]??[])['map'](_0x651ae5=>({'name':_0x651ae5[_0x5cd5b4(0x11c)],'displayName':_0x651ae5[_0x5cd5b4(0x10e)],'type':_0x651ae5[_0x5cd5b4(0x123)],'pk':_0x651ae5['isPrimaryKey'],'fk':_0x651ae5[_0x5cd5b4(0x105)]})),'relations':(_0x4eebf5['relations']??[])[_0x5cd5b4(0xfc)](_0x49f86f=>_0x49f86f[_0x5cd5b4(0x126)]&&_0x49f86f[_0x5cd5b4(0x127)])[_0x5cd5b4(0x119)](_0x121755=>({'from':_0x121755[_0x5cd5b4(0x126)],'toDataset':_0x121755[_0x5cd5b4(0x120)],'toCode':_0x121755[_0x5cd5b4(0x127)],'toField':_0x121755['toField'],'joinType':_0x121755['joinType']||'LEFT'})),'stats':{'fieldCount':_0x4eebf5[_0x5cd5b4(0x100)]?.[_0x5cd5b4(0x11b)]??0x0,'pkCount':_0x2f9c63['length'],'fkCount':_0x5d8b48['length'],'relationCount':_0x4eebf5['relations']?.[_0x5cd5b4(0x11b)]??0x0}};}),_0x14b096=_0x477b4e[_0x232de6(0xfc)](_0x59ee8e=>_0x59ee8e[_0x232de6(0x113)][_0x232de6(0x109)]>0x0)[_0x232de6(0x119)](_0x3a72ee=>_0x3a72ee[_0x232de6(0x11c)]);return{'db':_0x2f77d0['meta']?.['dbName'],'dbId':_0x2f77d0[_0x232de6(0x128)]?.[_0x232de6(0xfd)],'appCode':_0x2f77d0[_0x232de6(0x128)]?.[_0x232de6(0x103)],'datasetCount':_0x477b4e[_0x232de6(0x11b)],'connectedDatasets':_0x14b096,'datasets':_0x477b4e};}),_0x54eba3=_0x54694a['reduce']((_0x47f62a,_0x292711)=>_0x47f62a+_0x292711[_0x437b4c(0x129)],0x0),_0x4a6535=_0x54694a['reduce']((_0x541690,_0xfac005)=>_0x541690+_0xfac005[_0x437b4c(0x10f)][_0x437b4c(0x11d)]((_0x3acb94,_0xd8b70)=>_0x3acb94+_0xd8b70['stats'][_0x437b4c(0x109)],0x0),0x0);return{'ok':!![],'data':_0x54694a[_0x437b4c(0x11b)]===0x1?_0x54694a[0x0]:{'databases':_0x54694a},'message':_0x437b4c(0x107)+_0x54694a[_0x437b4c(0x11b)]+_0x437b4c(0x114)+_0x54eba3+_0x437b4c(0x117)+_0x4a6535+_0x437b4c(0x124)};}};
1
+ function a36_0x2843(_0x28bf4e,_0x3ea66d){_0x28bf4e=_0x28bf4e-0x176;const _0x43ec5a=a36_0x43ec();let _0x28439f=_0x43ec5a[_0x28bf4e];return _0x28439f;}function a36_0x43ec(){const _0x37c5ca=['1XBbJOl','589060kGhLDR','joinType','read','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','toField','860XRpXUk','528648GTgSye','bool','meta','7584WoJYvR','appCode','238mhBokb','dbName','LEFT','231751QTvaYE','map','10LDOrKL','90WLETso','dbType','name','reduce','fields','all','string','fromField','\x20dataset(s),\x20','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','stats','207474GMNnbC','isForeignKey','datasetName','datasetCode','datasets','12OVBLOR','filter','toDataset','str','tableName','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','datasetId','\x20database(s)','verbose','isPrimaryKey','boolean','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','displayName','8091094GcmzXD','\x20database(s),\x20','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','relations','length','datasetCount','8bLMxWd','links','\x20relation(s)','dbId','relationCount','6129529SnZdLz','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'];a36_0x43ec=function(){return _0x37c5ca;};return a36_0x43ec();}const a36_0x538a11=a36_0x2843;(function(_0x1d0a49,_0x1d3994){const _0x5ee8bd=a36_0x2843,_0x20e970=_0x1d0a49();while(!![]){try{const _0x1860d=-parseInt(_0x5ee8bd(0x178))/0x1*(-parseInt(_0x5ee8bd(0x195))/0x2)+parseInt(_0x5ee8bd(0x182))/0x3*(-parseInt(_0x5ee8bd(0x17e))/0x4)+parseInt(_0x5ee8bd(0x189))/0x5*(parseInt(_0x5ee8bd(0x17f))/0x6)+parseInt(_0x5ee8bd(0x176))/0x7*(-parseInt(_0x5ee8bd(0x1ad))/0x8)+parseInt(_0x5ee8bd(0x18a))/0x9*(parseInt(_0x5ee8bd(0x179))/0xa)+-parseInt(_0x5ee8bd(0x1a7))/0xb*(-parseInt(_0x5ee8bd(0x19a))/0xc)+-parseInt(_0x5ee8bd(0x187))/0xd*(-parseInt(_0x5ee8bd(0x184))/0xe);if(_0x1860d===_0x1d3994)break;else _0x20e970['push'](_0x20e970['shift']());}catch(_0x566241){_0x20e970['push'](_0x20e970['shift']());}}}(a36_0x43ec,0x7740b));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':'dataset','command':a36_0x538a11(0x1ae),'description':a36_0x538a11(0x177)+a36_0x538a11(0x19f)+a36_0x538a11(0x1a5),'risk':a36_0x538a11(0x17b),'flags':[{'name':'db','type':a36_0x538a11(0x190),'description':a36_0x538a11(0x1a9)+a36_0x538a11(0x193)},{'name':a36_0x538a11(0x1a2),'type':a36_0x538a11(0x1a4),'description':a36_0x538a11(0x17c)}],async 'execute'(_0x43344c){const _0x337279=a36_0x538a11,_0x11bf94=_0x43344c[_0x337279(0x180)](_0x337279(0x1a2)),{resolved:_0xef6a3d,error:_0xaefc9}=await resolveDb(_0x43344c[_0x337279(0x183)],_0x43344c[_0x337279(0x19d)]('db')||undefined);if(_0xaefc9)return{'ok':![],'message':_0xaefc9};const _0x1cc94e=_0xef6a3d[_0x337279(0x188)](_0x3c1b1f=>_0x3c1b1f[_0x337279(0x1b0)]),_0x277eee=await Promise[_0x337279(0x18f)](_0x1cc94e[_0x337279(0x188)](_0x4c3532=>getErConfig(_0x43344c[_0x337279(0x183)],_0x4c3532)));if(_0x11bf94)return{'ok':!![],'data':_0x277eee[_0x337279(0x1ab)]===0x1?_0x277eee[0x0]:_0x277eee,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x1cc94e[_0x337279(0x1ab)]+_0x337279(0x1a1)};const _0xe168be=_0x277eee[_0x337279(0x188)](_0x23fd68=>{const _0x44931b=_0x337279,_0x162056=(_0x23fd68['datasets']??[])[_0x44931b(0x188)](_0x2ad1d0=>{const _0x51f5cf=_0x44931b,_0x3d4a1b=_0x2ad1d0[_0x51f5cf(0x18e)]?.[_0x51f5cf(0x19b)](_0x4f202c=>_0x4f202c[_0x51f5cf(0x1a3)])['map'](_0x436421=>_0x436421[_0x51f5cf(0x18c)])??[],_0x26b2ed=_0x2ad1d0[_0x51f5cf(0x18e)]?.['filter'](_0x514baf=>_0x514baf['isForeignKey'])[_0x51f5cf(0x188)](_0x1b31f6=>_0x1b31f6[_0x51f5cf(0x18c)])??[];return{'id':_0x2ad1d0[_0x51f5cf(0x1a0)],'name':_0x2ad1d0[_0x51f5cf(0x197)],'code':_0x2ad1d0[_0x51f5cf(0x198)],'table':_0x2ad1d0[_0x51f5cf(0x19e)],'comment':_0x2ad1d0['tableComment']||undefined,'fields':(_0x2ad1d0[_0x51f5cf(0x18e)]??[])[_0x51f5cf(0x188)](_0x356958=>({'name':_0x356958[_0x51f5cf(0x18c)],'displayName':_0x356958[_0x51f5cf(0x1a6)],'type':_0x356958[_0x51f5cf(0x18b)],'pk':_0x356958[_0x51f5cf(0x1a3)],'fk':_0x356958[_0x51f5cf(0x196)]})),'relations':(_0x2ad1d0[_0x51f5cf(0x1aa)]??[])[_0x51f5cf(0x19b)](_0xb27927=>_0xb27927[_0x51f5cf(0x191)]&&_0xb27927[_0x51f5cf(0x19c)])[_0x51f5cf(0x188)](_0x5ab51e=>({'from':_0x5ab51e[_0x51f5cf(0x191)],'toDataset':_0x5ab51e['toDatasetName'],'toCode':_0x5ab51e[_0x51f5cf(0x19c)],'toField':_0x5ab51e[_0x51f5cf(0x17d)],'joinType':_0x5ab51e[_0x51f5cf(0x17a)]||_0x51f5cf(0x186)})),'stats':{'fieldCount':_0x2ad1d0[_0x51f5cf(0x18e)]?.[_0x51f5cf(0x1ab)]??0x0,'pkCount':_0x3d4a1b[_0x51f5cf(0x1ab)],'fkCount':_0x26b2ed[_0x51f5cf(0x1ab)],'relationCount':_0x2ad1d0[_0x51f5cf(0x1aa)]?.[_0x51f5cf(0x1ab)]??0x0}};}),_0x578697=_0x162056['filter'](_0x31c3e4=>_0x31c3e4[_0x44931b(0x194)][_0x44931b(0x1b1)]>0x0)[_0x44931b(0x188)](_0x1a1d67=>_0x1a1d67[_0x44931b(0x18c)]);return{'db':_0x23fd68[_0x44931b(0x181)]?.[_0x44931b(0x185)],'dbId':_0x23fd68[_0x44931b(0x181)]?.[_0x44931b(0x1b0)],'appCode':_0x23fd68['meta']?.[_0x44931b(0x183)],'datasetCount':_0x162056[_0x44931b(0x1ab)],'connectedDatasets':_0x578697,'datasets':_0x162056};}),_0x4f55f3=_0xe168be[_0x337279(0x18d)]((_0x222531,_0x891ab4)=>_0x222531+_0x891ab4[_0x337279(0x1ac)],0x0),_0x22b42f=_0xe168be['reduce']((_0x39c778,_0x4eac47)=>_0x39c778+_0x4eac47[_0x337279(0x199)][_0x337279(0x18d)]((_0xb41fef,_0x3d3dd6)=>_0xb41fef+_0x3d3dd6[_0x337279(0x194)][_0x337279(0x1b1)],0x0),0x0);return{'ok':!![],'data':_0xe168be[_0x337279(0x1ab)]===0x1?_0xe168be[0x0]:{'databases':_0xe168be},'message':'Link\x20graph:\x20'+_0xe168be[_0x337279(0x1ab)]+_0x337279(0x1a8)+_0x4f55f3+_0x337279(0x192)+_0x22b42f+_0x337279(0x1af)};}};
@@ -1 +1 @@
1
- function a37_0x1326(_0x24e797,_0xc88a4e){_0x24e797=_0x24e797-0x155;const _0xee93e6=a37_0xee93();let _0x1326aa=_0xee93e6[_0x24e797];return _0x1326aa;}function a37_0xee93(){const _0x58c056=['datasetKey','dataset','bool','3366592hVlpDZ','allFields','308890zAOSpd','length','read','List\x20all\x20datasets\x20with\x20metadata','map','code','417712DRqJIl','tableName','description','807568yTvFXk','str','891888mWjnaA','1219674VknlXh','948205CVmWbw','split','appCode','\x20dataset(s)','7bZQcjC','verbose','dbName','name','list','string','pkField','boolean','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','source'];a37_0xee93=function(){return _0x58c056;};return a37_0xee93();}const a37_0xc85e0a=a37_0x1326;(function(_0x2ac04f,_0x26024b){const _0x481c4f=a37_0x1326,_0x4262cc=_0x2ac04f();while(!![]){try{const _0x1bd9dd=parseInt(_0x481c4f(0x173))/0x1+parseInt(_0x481c4f(0x159))/0x2+parseInt(_0x481c4f(0x15e))/0x3+-parseInt(_0x481c4f(0x15c))/0x4+parseInt(_0x481c4f(0x160))/0x5+parseInt(_0x481c4f(0x15f))/0x6*(-parseInt(_0x481c4f(0x164))/0x7)+-parseInt(_0x481c4f(0x171))/0x8;if(_0x1bd9dd===_0x26024b)break;else _0x4262cc['push'](_0x4262cc['shift']());}catch(_0x40368a){_0x4262cc['push'](_0x4262cc['shift']());}}}(a37_0xee93,0x2ba00));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a37_0xc85e0a(0x16f),'command':a37_0xc85e0a(0x168),'description':a37_0xc85e0a(0x156),'risk':a37_0xc85e0a(0x155),'flags':[{'name':'name','type':a37_0xc85e0a(0x169),'description':a37_0xc85e0a(0x16c)},CODE_FLAG_OPTIONAL,{'name':a37_0xc85e0a(0x165),'type':a37_0xc85e0a(0x16b),'description':'Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations'}],async 'execute'(_0x510a27){const _0x54d7aa=a37_0xc85e0a,_0x5a9478=_0x510a27[_0x54d7aa(0x15d)]('name'),_0x38a3f6=_0x510a27[_0x54d7aa(0x15d)](_0x54d7aa(0x158)),_0x145377=_0x510a27[_0x54d7aa(0x170)](_0x54d7aa(0x165)),_0x3f0c9c=await listDatasets(_0x510a27[_0x54d7aa(0x162)],{..._0x5a9478&&{'name':_0x5a9478},..._0x38a3f6&&{'code':_0x38a3f6}}),_0xb0bda9=_0x145377?_0x3f0c9c:_0x3f0c9c[_0x54d7aa(0x157)](_0x3b9b44=>{const _0x5c1af9=_0x54d7aa,_0xef3280=_0x3b9b44['dbtableConfig']??{};return{'id':_0x3b9b44['id'],'name':_0x3b9b44[_0x5c1af9(0x167)],'code':_0x3b9b44[_0x5c1af9(0x158)],'description':_0x3b9b44[_0x5c1af9(0x15b)],'source':_0x3b9b44[_0x5c1af9(0x16d)],'db':_0xef3280[_0x5c1af9(0x166)],'table':_0xef3280[_0x5c1af9(0x15a)],'datasetKey':_0xef3280[_0x5c1af9(0x16e)],'pk':_0xef3280[_0x5c1af9(0x16a)],'fields':_0xef3280[_0x5c1af9(0x172)]?_0xef3280[_0x5c1af9(0x172)][_0x5c1af9(0x161)](',')[_0x5c1af9(0x157)](_0x862078=>_0x862078['trim']()):[]};});return{'ok':!![],'data':{'total':_0xb0bda9[_0x54d7aa(0x174)],'datasets':_0xb0bda9},'message':'Found\x20'+_0xb0bda9[_0x54d7aa(0x174)]+_0x54d7aa(0x163)};}};
1
+ const a37_0x268768=a37_0x1ae9;(function(_0x18204c,_0x3e3da2){const _0x3fccda=a37_0x1ae9,_0x3bb799=_0x18204c();while(!![]){try{const _0x429567=-parseInt(_0x3fccda(0x1cd))/0x1*(-parseInt(_0x3fccda(0x1c9))/0x2)+-parseInt(_0x3fccda(0x1bd))/0x3+parseInt(_0x3fccda(0x1da))/0x4+-parseInt(_0x3fccda(0x1db))/0x5*(parseInt(_0x3fccda(0x1cb))/0x6)+-parseInt(_0x3fccda(0x1be))/0x7+parseInt(_0x3fccda(0x1c6))/0x8*(parseInt(_0x3fccda(0x1cc))/0x9)+parseInt(_0x3fccda(0x1d3))/0xa*(-parseInt(_0x3fccda(0x1c5))/0xb);if(_0x429567===_0x3e3da2)break;else _0x3bb799['push'](_0x3bb799['shift']());}catch(_0x5cdcd3){_0x3bb799['push'](_0x3bb799['shift']());}}}(a37_0x271a,0x74ede));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';function a37_0x1ae9(_0x33679c,_0x2d55bb){_0x33679c=_0x33679c-0x1bb;const _0x271ae2=a37_0x271a();let _0x1ae91a=_0x271ae2[_0x33679c];return _0x1ae91a;}export const datasetList={'service':a37_0x268768(0x1d5),'command':a37_0x268768(0x1ce),'description':a37_0x268768(0x1c0),'risk':a37_0x268768(0x1d9),'flags':[{'name':'name','type':a37_0x268768(0x1d0),'description':a37_0x268768(0x1bc)},CODE_FLAG_OPTIONAL,{'name':a37_0x268768(0x1d1),'type':a37_0x268768(0x1cf),'description':a37_0x268768(0x1c7)}],async 'execute'(_0x3a913f){const _0x1e882c=a37_0x268768,_0x4a13f3=_0x3a913f['str'](_0x1e882c(0x1bb)),_0x56f334=_0x3a913f['str'](_0x1e882c(0x1c2)),_0x3cd9ad=_0x3a913f['bool'](_0x1e882c(0x1d1)),_0x29fac7=await listDatasets(_0x3a913f[_0x1e882c(0x1d2)],{..._0x4a13f3&&{'name':_0x4a13f3},..._0x56f334&&{'code':_0x56f334}}),_0x6ddc1=_0x3cd9ad?_0x29fac7:_0x29fac7[_0x1e882c(0x1c8)](_0x479206=>{const _0x3c014a=_0x1e882c,_0x1a122e=_0x479206[_0x3c014a(0x1ca)]??{};return{'id':_0x479206['id'],'name':_0x479206['name'],'code':_0x479206[_0x3c014a(0x1c2)],'description':_0x479206[_0x3c014a(0x1bf)],'source':_0x479206[_0x3c014a(0x1d8)],'db':_0x1a122e['dbName'],'table':_0x1a122e[_0x3c014a(0x1d6)],'datasetKey':_0x1a122e[_0x3c014a(0x1c3)],'pk':_0x1a122e[_0x3c014a(0x1d7)],'fields':_0x1a122e[_0x3c014a(0x1d4)]?_0x1a122e['allFields']['split'](',')['map'](_0x16b844=>_0x16b844[_0x3c014a(0x1dd)]()):[]};});return{'ok':!![],'data':{'total':_0x6ddc1['length'],'datasets':_0x6ddc1},'message':_0x1e882c(0x1c1)+_0x6ddc1[_0x1e882c(0x1c4)]+_0x1e882c(0x1dc)};}};function a37_0x271a(){const _0x55edda=['appCode','6453390ulgMcq','allFields','dataset','tableName','pkField','source','read','3627372dbytwW','35RyxLnx','\x20dataset(s)','trim','name','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','1213035ciNtYb','893102MhmaBU','description','List\x20all\x20datasets\x20with\x20metadata','Found\x20','code','datasetKey','length','11wvhyze','64pPtUPm','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','map','42ScGANg','dbtableConfig','812226tfKQvd','975663VmMpzR','39510GbjgBu','list','boolean','string','verbose'];a37_0x271a=function(){return _0x55edda;};return a37_0x271a();}
@@ -1 +1 @@
1
- function a38_0x7cc3(){const _0x518085=['method','896172KwSxrd','str','42hazGip','string','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','dataset','name','490001ciXdID','bool','30uAipZB','boolean','type','1057880GQMLaZ','108yEHIjJ','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','658408MkmxTk','verbose','length','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','displayName','map','800958wNTUjr','877980DmOcil','530052TuqEjm','alias'];a38_0x7cc3=function(){return _0x518085;};return a38_0x7cc3();}const a38_0x29e93=a38_0x1ebb;(function(_0x88dc5f,_0x404837){const _0x40640a=a38_0x1ebb,_0x57a09b=_0x88dc5f();while(!![]){try{const _0x5ff1cc=-parseInt(_0x40640a(0x204))/0x1+-parseInt(_0x40640a(0x1f2))/0x2+parseInt(_0x40640a(0x1f8))/0x3+-parseInt(_0x40640a(0x1fa))/0x4*(parseInt(_0x40640a(0x206))/0x5)+-parseInt(_0x40640a(0x1fd))/0x6*(-parseInt(_0x40640a(0x1ff))/0x7)+-parseInt(_0x40640a(0x1ef))/0x8+parseInt(_0x40640a(0x1f0))/0x9*(parseInt(_0x40640a(0x1f9))/0xa);if(_0x5ff1cc===_0x404837)break;else _0x57a09b['push'](_0x57a09b['shift']());}catch(_0x3dcb78){_0x57a09b['push'](_0x57a09b['shift']());}}}(a38_0x7cc3,0x72cc8));function a38_0x1ebb(_0x4f0612,_0x171545){_0x4f0612=_0x4f0612-0x1ed;const _0x7cc375=a38_0x7cc3();let _0x1ebb3a=_0x7cc375[_0x4f0612];return _0x1ebb3a;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a38_0x29e93(0x202),'command':'operations','description':a38_0x29e93(0x201),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a38_0x29e93(0x1fb),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':'operation','type':a38_0x29e93(0x200),'description':a38_0x29e93(0x1f5)},{'name':a38_0x29e93(0x1f3),'type':a38_0x29e93(0x1ed),'description':a38_0x29e93(0x1f1)}],async 'execute'(_0x581af2){const _0x136d2c=a38_0x29e93,_0xe74883=_0x581af2['str']('code'),_0x5259f6=_0x581af2[_0x136d2c(0x1fe)]('operation'),_0x24ea91=_0x581af2[_0x136d2c(0x205)](_0x136d2c(0x1f3));if(_0x5259f6){const {dataset:_0x208fac,operation:_0x29fb4e}=await getOperationDetail(_0x581af2['appCode'],_0xe74883,_0x5259f6);return{'ok':!![],'data':{'dataset':_0x208fac,'operation':_0x29fb4e}};}const {dataset:_0x4d57eb,operations:_0x281884}=await getDatasetOperations(_0xe74883);return{'ok':!![],'data':{'dataset':_0x4d57eb,'total':_0x281884[_0x136d2c(0x1f4)],'operations':_0x24ea91?_0x281884:_0x281884[_0x136d2c(0x1f7)](_0x36dea8=>({'name':_0x36dea8[_0x136d2c(0x203)],'displayName':_0x36dea8[_0x136d2c(0x1f6)],'type':_0x36dea8[_0x136d2c(0x1ee)],'method':_0x36dea8[_0x136d2c(0x1fc)],'enabled':_0x36dea8['enabled']}))}};}};
1
+ const a38_0x13e51d=a38_0x2107;function a38_0x2107(_0x257579,_0x1e9b91){_0x257579=_0x257579-0x178;const _0x27e456=a38_0x27e4();let _0x2107ec=_0x27e456[_0x257579];return _0x2107ec;}(function(_0x6114,_0x2a16cc){const _0x209a43=a38_0x2107,_0x3129a1=_0x6114();while(!![]){try{const _0x3ba465=parseInt(_0x209a43(0x17d))/0x1*(-parseInt(_0x209a43(0x18f))/0x2)+parseInt(_0x209a43(0x18a))/0x3+parseInt(_0x209a43(0x17b))/0x4+-parseInt(_0x209a43(0x18b))/0x5+-parseInt(_0x209a43(0x183))/0x6+parseInt(_0x209a43(0x182))/0x7*(parseInt(_0x209a43(0x193))/0x8)+parseInt(_0x209a43(0x18e))/0x9;if(_0x3ba465===_0x2a16cc)break;else _0x3129a1['push'](_0x3129a1['shift']());}catch(_0x411df4){_0x3129a1['push'](_0x3129a1['shift']());}}}(a38_0x27e4,0x5185e));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a38_0x27e4(){const _0x1e3cb=['dataset','name','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','map','str','1268763OsySce','1962780yNFmGW','method','appCode','3583044bsRgCo','7650PJEAoB','enabled','verbose','string','1763256eIoQgo','boolean','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','alias','1077884CHGqcR','code','139EBqXna','bool','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','length','operation','7QFsSMQ','316596BMkeSz'];a38_0x27e4=function(){return _0x1e3cb;};return a38_0x27e4();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a38_0x13e51d(0x184),'command':'operations','description':a38_0x13e51d(0x179),'risk':a38_0x13e51d(0x186),'flags':[CODE_FLAG_OPTIONAL,{'name':a38_0x13e51d(0x17a),'type':'string','description':a38_0x13e51d(0x187)},{'name':a38_0x13e51d(0x181),'type':a38_0x13e51d(0x192),'description':a38_0x13e51d(0x178)},{'name':a38_0x13e51d(0x191),'type':a38_0x13e51d(0x194),'description':a38_0x13e51d(0x17f)}],async 'execute'(_0x338014){const _0x3dc9f9=a38_0x13e51d,_0x4ddc7e=_0x338014['str'](_0x3dc9f9(0x17c)),_0x5096d6=_0x338014[_0x3dc9f9(0x189)](_0x3dc9f9(0x181)),_0x206bb5=_0x338014[_0x3dc9f9(0x17e)](_0x3dc9f9(0x191));if(_0x5096d6){const {dataset:_0x51a904,operation:_0x4c30bf}=await getOperationDetail(_0x338014[_0x3dc9f9(0x18d)],_0x4ddc7e,_0x5096d6);return{'ok':!![],'data':{'dataset':_0x51a904,'operation':_0x4c30bf}};}const {dataset:_0x26259d,operations:_0x4342ec}=await getDatasetOperations(_0x4ddc7e);return{'ok':!![],'data':{'dataset':_0x26259d,'total':_0x4342ec[_0x3dc9f9(0x180)],'operations':_0x206bb5?_0x4342ec:_0x4342ec[_0x3dc9f9(0x188)](_0xb45582=>({'name':_0xb45582[_0x3dc9f9(0x185)],'displayName':_0xb45582['displayName'],'type':_0xb45582['type'],'method':_0xb45582[_0x3dc9f9(0x18c)],'enabled':_0xb45582[_0x3dc9f9(0x190)]}))}};}};
@@ -0,0 +1 @@
1
+ function a39_0x2ce3(_0x114e82,_0x16e948){_0x114e82=_0x114e82-0x163;const _0x273d7f=a39_0x273d();let _0x2ce34b=_0x273d7f[_0x114e82];return _0x2ce34b;}const a39_0x4390a9=a39_0x2ce3;function a39_0x273d(){const _0x34b6fb=['riskLevel','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','✗\x20Not\x20logged\x20in','(default)','(set,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','config','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','keys','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','format','doctor','\x20doctor','\x20\x20API\x20Endpoints','✓\x20Valid','64584TOjdiR','defaultApp','(not\x20found)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20','322217rxRQgD','verbose','version','gray','\x20\x20─','72281pMfpxp','currentApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','2760882ISUZQb','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','1497405imHHYZ','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20Apps','utf-8','appCode','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','green','\x20\x20explicitAppName:\x20','red','(none)','\x20\x20Config\x20Files','cookie','length','apiDir','603hqkbae','log','package.json','59268GARQXI','repeat','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(inherit)','pageSize','0.0.0','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','632198iOtLsq','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','bold','124wJFDSi','2210GIBQQU','2aSwxym','platform'];a39_0x273d=function(){return _0x34b6fb;};return a39_0x273d();}(function(_0x3f1711,_0x32cccc){const _0x461e1b=a39_0x2ce3,_0x2d5112=_0x3f1711();while(!![]){try{const _0x18e515=parseInt(_0x461e1b(0x1a2))/0x1*(-parseInt(_0x461e1b(0x18b))/0x2)+parseInt(_0x461e1b(0x17a))/0x3*(parseInt(_0x461e1b(0x189))/0x4)+-parseInt(_0x461e1b(0x166))/0x5+-parseInt(_0x461e1b(0x163))/0x6+-parseInt(_0x461e1b(0x185))/0x7+-parseInt(_0x461e1b(0x19d))/0x8*(parseInt(_0x461e1b(0x177))/0x9)+parseInt(_0x461e1b(0x18a))/0xa*(parseInt(_0x461e1b(0x1a7))/0xb);if(_0x18e515===_0x32cccc)break;else _0x2d5112['push'](_0x2d5112['shift']());}catch(_0xa24c79){_0x2d5112['push'](_0x2d5112['shift']());}}}(a39_0x273d,0x55d59));import a39_0x4c3aea 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(_0x55a9ac,_0x46e3c3,_0x4160d8){const _0x3263df=a39_0x2ce3,_0x1d39aa=_0x55a9ac[_0x3263df(0x194)];let _0x209f20=_0x3263df(0x181);try{const _0x520f0e=resolve(dirname(fileURLToPath(import.meta.url)),'..'),_0x4b5f98=JSON['parse'](readFileSync(resolve(_0x520f0e,_0x3263df(0x179)),_0x3263df(0x16b)));_0x209f20=_0x4b5f98[_0x3263df(0x1a4)]||_0x3263df(0x181);}catch{}const _0x131a37=BUILD_NUMBER?_0x209f20+'+'+BUILD_NUMBER:_0x209f20;console[_0x3263df(0x178)](),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x188)](CLI_BIN_NAME+_0x3263df(0x19a))),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x1a5)]('─'[_0x3263df(0x17b)](0x32))),console[_0x3263df(0x178)](_0x3263df(0x1a0)+_0x131a37),console[_0x3263df(0x178)](_0x3263df(0x17e)+process['version']),console[_0x3263df(0x178)](_0x3263df(0x195)+process[_0x3263df(0x18c)]+'\x20'+process[_0x3263df(0x18f)]),console[_0x3263df(0x178)](),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x188)](_0x3263df(0x173))),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x1a6)['repeat'](0x1e)));const _0x5b7071=getGlobalConfigPath(),_0x4ad21b=getProjectConfigPath();console[_0x3263df(0x178)](_0x3263df(0x1ac)+(_0x5b7071||a39_0x4c3aea['gray']('(not\x20found)'))),console[_0x3263df(0x178)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ad21b||a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x19f)))),console[_0x3263df(0x178)](),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x188)]('\x20\x20Merged\x20Config')),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x1a6)['repeat'](0x1e)));const _0x394883=buildConfigFromFlags(_0x4160d8);console[_0x3263df(0x178)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x394883[_0x3263df(0x16c)]||a39_0x4c3aea[_0x3263df(0x171)](_0x3263df(0x1ad)))),console[_0x3263df(0x178)](_0x3263df(0x168)+_0x394883[_0x3263df(0x16e)]),console[_0x3263df(0x178)](_0x3263df(0x164)+_0x394883['locale']),console[_0x3263df(0x178)](_0x3263df(0x18e)+_0x394883[_0x3263df(0x176)]),console[_0x3263df(0x178)](_0x3263df(0x17c)+(_0x394883[_0x3263df(0x19e)]||a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x172)))),console[_0x3263df(0x178)](_0x3263df(0x1a9)+(_0x394883[_0x3263df(0x1a8)]||a39_0x4c3aea[_0x3263df(0x1a5)]('(none)'))),console['log'](_0x3263df(0x170)+(_0x394883['explicitAppName']||a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x172)))),console[_0x3263df(0x178)](_0x3263df(0x184)+(_0x394883[_0x3263df(0x198)]||a39_0x4c3aea[_0x3263df(0x1a5)]('(default:\x20pretty)'))),console['log'](_0x3263df(0x1ab)+(_0x394883[_0x3263df(0x180)]??a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x191)))),console[_0x3263df(0x178)](_0x3263df(0x197)+_0x394883[_0x3263df(0x18d)]),console[_0x3263df(0x178)](_0x3263df(0x186)+_0x394883[_0x3263df(0x1a3)]),console[_0x3263df(0x178)](_0x3263df(0x193)+(_0x394883[_0x3263df(0x174)]?a39_0x4c3aea[_0x3263df(0x16f)](_0x3263df(0x192)+_0x394883['cookie']['length']+')'):a39_0x4c3aea[_0x3263df(0x1a5)]('(none)')));const _0x471b21=Object[_0x3263df(0x196)](_0x394883[_0x3263df(0x187)]);if(_0x471b21[_0x3263df(0x175)]>0x0){console['log'](),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x188)](_0x3263df(0x16a))),console['log'](a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x1a6)[_0x3263df(0x17b)](0x1e)));for(const _0x5b4315 of _0x471b21){const _0x1cdd77=_0x394883['apps'][_0x5b4315],_0x16851d=_0x5b4315===_0x394883[_0x3263df(0x19e)],_0x4598e6=_0x5b4315===_0x394883[_0x3263df(0x1a8)],_0x370f50=_0x4598e6?a39_0x4c3aea[_0x3263df(0x16f)](_0x3263df(0x169)):'',_0x17b851=_0x16851d?_0x3263df(0x165):'';console[_0x3263df(0x178)]('\x20\x20'+_0x5b4315+_0x17b851+_0x370f50),console[_0x3263df(0x178)](_0x3263df(0x182)+_0x1cdd77['appcode']),console[_0x3263df(0x178)](_0x3263df(0x167)+(_0x1cdd77['env']||a39_0x4c3aea['gray'](_0x3263df(0x17f)))),console['log'](_0x3263df(0x1a1)+(_0x1cdd77[_0x3263df(0x176)]||a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x17f)))),console[_0x3263df(0x178)](_0x3263df(0x1aa)+(_0x1cdd77[_0x3263df(0x174)]?a39_0x4c3aea[_0x3263df(0x16f)]('(set)'):a39_0x4c3aea[_0x3263df(0x1a5)](_0x3263df(0x17f))));}}console[_0x3263df(0x178)](),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x188)](_0x3263df(0x19b))),console['log'](a39_0x4c3aea[_0x3263df(0x1a5)]('\x20\x20─'[_0x3263df(0x17b)](0x1e))),console[_0x3263df(0x178)](_0x3263df(0x17d)+getApiDomain()),console[_0x3263df(0x178)](_0x3263df(0x183)+getUserDomain()),console[_0x3263df(0x178)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x3263df(0x178)](),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x188)]('\x20\x20Auth')),console[_0x3263df(0x178)](a39_0x4c3aea[_0x3263df(0x1a5)]('\x20\x20─'[_0x3263df(0x17b)](0x1e)));const _0x43f622=_0x394883['cookie']||_0x55a9ac['auth'][_0x3263df(0x174)];if(_0x43f622){const _0x132544=await getIsSessionValid();console['log'](_0x3263df(0x16d)+(_0x132544?a39_0x4c3aea[_0x3263df(0x16f)](_0x3263df(0x19c)):a39_0x4c3aea[_0x3263df(0x171)]('✗\x20Expired')));}else console[_0x3263df(0x178)](_0x3263df(0x16d)+a39_0x4c3aea[_0x3263df(0x171)](_0x3263df(0x190)));console[_0x3263df(0x178)]();}export const doctorCommand={'name':a39_0x4390a9(0x199),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity',async 'run'(_0x50a61c,_0x1a52f0,_0x431cb8){await runDoctor(_0x50a61c,_0x1a52f0,_0x431cb8);}};
@@ -1 +1 @@
1
- const a39_0xb6e88e=a39_0x5051;(function(_0x44bc4f,_0x340536){const _0x4c5497=a39_0x5051,_0x7877de=_0x44bc4f();while(!![]){try{const _0x1f0b9a=parseInt(_0x4c5497(0x135))/0x1*(-parseInt(_0x4c5497(0x137))/0x2)+-parseInt(_0x4c5497(0x136))/0x3+-parseInt(_0x4c5497(0x142))/0x4*(parseInt(_0x4c5497(0x13b))/0x5)+-parseInt(_0x4c5497(0x13e))/0x6+parseInt(_0x4c5497(0x145))/0x7*(parseInt(_0x4c5497(0x141))/0x8)+-parseInt(_0x4c5497(0x138))/0x9*(-parseInt(_0x4c5497(0x143))/0xa)+parseInt(_0x4c5497(0x13f))/0xb;if(_0x1f0b9a===_0x340536)break;else _0x7877de['push'](_0x7877de['shift']());}catch(_0x6cf58d){_0x7877de['push'](_0x7877de['shift']());}}}(a39_0x85c9,0xa846d));import{jsx as a39_0x2f65ce}from'react/jsx-runtime';function a39_0x85c9(){const _0x39bc88=['730408bnDeHe','28pYtHhy','8580ujYGpK','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','7ftsqEs','info','31IqUtKg','3156753OEUDpX','61618pYsAMn','4554rCiKBM','logger','init','73685pregzV','appcode','yes','4888914mPocSb','33980320VrDcqy','执行初始化配置命令'];a39_0x85c9=function(){return _0x39bc88;};return a39_0x85c9();}function a39_0x5051(_0x33f5b9,_0x3466ad){_0x33f5b9=_0x33f5b9-0x134;const _0x85c97b=a39_0x85c9();let _0x505196=_0x85c97b[_0x33f5b9];return _0x505196;}import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a39_0xb6e88e(0x13a),'description':a39_0xb6e88e(0x144),async 'run'(_0x5eba27,_0x2e8562,_0xb0a9a7){const _0x917cde=a39_0xb6e88e;_0x5eba27[_0x917cde(0x139)][_0x917cde(0x134)](_0x917cde(0x13a),_0x917cde(0x140));const _0x185f5c=_0xb0a9a7[_0x917cde(0x13c)],_0xd56421=_0xb0a9a7['env'];render(a39_0x2f65ce(Init,{'appcode':_0x185f5c,'env':_0xd56421,'autoYes':_0xb0a9a7[_0x917cde(0x13d)]}));}};
1
+ const a40_0x38f362=a40_0x13d9;(function(_0x2c0ffb,_0x11b4df){const _0x500141=a40_0x13d9,_0x4e96d7=_0x2c0ffb();while(!![]){try{const _0x28bbce=-parseInt(_0x500141(0x199))/0x1+-parseInt(_0x500141(0x18f))/0x2*(-parseInt(_0x500141(0x195))/0x3)+-parseInt(_0x500141(0x196))/0x4*(-parseInt(_0x500141(0x193))/0x5)+-parseInt(_0x500141(0x198))/0x6*(parseInt(_0x500141(0x18c))/0x7)+-parseInt(_0x500141(0x190))/0x8*(-parseInt(_0x500141(0x191))/0x9)+parseInt(_0x500141(0x197))/0xa+-parseInt(_0x500141(0x194))/0xb;if(_0x28bbce===_0x11b4df)break;else _0x4e96d7['push'](_0x4e96d7['shift']());}catch(_0x184103){_0x4e96d7['push'](_0x4e96d7['shift']());}}}(a40_0x2c2b,0x9f1cb));import{jsx as a40_0x528857}from'react/jsx-runtime';import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a40_0x38f362(0x18d),'description':a40_0x38f362(0x18e),async 'run'(_0x5f4bd1,_0x273b8f,_0x597733){const _0x5932e5=a40_0x38f362;_0x5f4bd1['logger'][_0x5932e5(0x192)](_0x5932e5(0x18d),'执行初始化配置命令');const _0xe68611=_0x597733['appcode'],_0x109e58=_0x597733['env'];render(a40_0x528857(Init,{'appcode':_0xe68611,'env':_0x109e58,'autoYes':_0x597733['yes']}));}};function a40_0x13d9(_0x5efe84,_0x48bfd8){_0x5efe84=_0x5efe84-0x18c;const _0x2c2b10=a40_0x2c2b();let _0x13d9a2=_0x2c2b10[_0x5efe84];return _0x13d9a2;}function a40_0x2c2b(){const _0x5c8fb3=['864bCFzZi','306270VXtEcV','20741FyuSmx','init','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','52gUxsio','208cvADFt','175302qVrxiR','info','153050UtIuyt','1201200wOJbff','52779nYRbhQ','28SorocW','3157490YsPYTS'];a40_0x2c2b=function(){return _0x5c8fb3;};return a40_0x2c2b();}
@@ -1 +1 @@
1
- const a40_0x17aaf6=a40_0x5dac;function a40_0x3766(){const _0x47fedf=['Logout\x20from\x20rabetbase','logout','8714JeZKbV','6712065dXdwcL','12467088UWcLsJ','10338162okaqeQ','7smXxww','185mLDdmt','2751219xPPlJm','124KKbkiA','50295000sIyktz','log','1527ZZICZv','✓\x20Logged\x20out'];a40_0x3766=function(){return _0x47fedf;};return a40_0x3766();}function a40_0x5dac(_0x377952,_0x23e1a6){_0x377952=_0x377952-0xb3;const _0x376635=a40_0x3766();let _0x5dac08=_0x376635[_0x377952];return _0x5dac08;}(function(_0x1c5cad,_0x3d225b){const _0x5edd82=a40_0x5dac,_0x410ec5=_0x1c5cad();while(!![]){try{const _0xe475d2=-parseInt(_0x5edd82(0xba))/0x1*(-parseInt(_0x5edd82(0xb5))/0x2)+-parseInt(_0x5edd82(0xbf))/0x3*(parseInt(_0x5edd82(0xbc))/0x4)+-parseInt(_0x5edd82(0xb6))/0x5+-parseInt(_0x5edd82(0xb8))/0x6+-parseInt(_0x5edd82(0xb9))/0x7*(parseInt(_0x5edd82(0xb7))/0x8)+-parseInt(_0x5edd82(0xbb))/0x9+parseInt(_0x5edd82(0xbd))/0xa;if(_0xe475d2===_0x3d225b)break;else _0x410ec5['push'](_0x410ec5['shift']());}catch(_0x3e9075){_0x410ec5['push'](_0x410ec5['shift']());}}}(a40_0x3766,0xd9589));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':a40_0x17aaf6(0xb4),'description':a40_0x17aaf6(0xb3),async 'run'(_0x33ee59,_0x4e1c22,_0x580df5){const _0x2ec975=a40_0x17aaf6;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x2ec975(0xbe)](_0x2ec975(0xc0))):console[_0x2ec975(0xbe)]('!\x20Not\x20logged\x20in');}};
1
+ const a41_0x456108=a41_0x500d;(function(_0x2d8ab1,_0x9bf906){const _0x4ab6d5=a41_0x500d,_0x4e5320=_0x2d8ab1();while(!![]){try{const _0x254655=parseInt(_0x4ab6d5(0x148))/0x1+parseInt(_0x4ab6d5(0x152))/0x2+-parseInt(_0x4ab6d5(0x150))/0x3*(parseInt(_0x4ab6d5(0x149))/0x4)+-parseInt(_0x4ab6d5(0x14c))/0x5*(-parseInt(_0x4ab6d5(0x14a))/0x6)+-parseInt(_0x4ab6d5(0x153))/0x7+parseInt(_0x4ab6d5(0x151))/0x8+-parseInt(_0x4ab6d5(0x14f))/0x9*(parseInt(_0x4ab6d5(0x146))/0xa);if(_0x254655===_0x9bf906)break;else _0x4e5320['push'](_0x4e5320['shift']());}catch(_0x501e65){_0x4e5320['push'](_0x4e5320['shift']());}}}(a41_0x3012,0x758c5));import{unlinkSync,existsSync}from'node:fs';function a41_0x500d(_0x3dfb14,_0x44b5b5){_0x3dfb14=_0x3dfb14-0x146;const _0x301209=a41_0x3012();let _0x500dba=_0x301209[_0x3dfb14];return _0x500dba;}import{cookieFile}from'../auth/constant.js';function a41_0x3012(){const _0x2d0936=['3787630DaRlLq','7140930KSbprr','✓\x20Logged\x20out','314210ycHDTq','4WQTjRH','924zQOGBy','Logout\x20from\x20rabetbase','7890pcJjmZ','!\x20Not\x20logged\x20in','log','9roVYhZ','194295ZutkWN','3313592ErETnR','1660008YDTLbC'];a41_0x3012=function(){return _0x2d0936;};return a41_0x3012();}export const logoutCommand={'name':'logout','description':a41_0x456108(0x14b),async 'run'(_0x4ae466,_0xa45208,_0x4df559){const _0x5a12ca=a41_0x456108;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x5a12ca(0x14e)](_0x5a12ca(0x147))):console[_0x5a12ca(0x14e)](_0x5a12ca(0x14d));}};
@@ -1 +1 @@
1
- const a41_0x37ea5a=a41_0xdf7b;(function(_0x4c8579,_0x1315de){const _0x4e841b=a41_0xdf7b,_0x499ef1=_0x4c8579();while(!![]){try{const _0x3de3c1=-parseInt(_0x4e841b(0x90))/0x1*(parseInt(_0x4e841b(0xa1))/0x2)+parseInt(_0x4e841b(0x8b))/0x3*(parseInt(_0x4e841b(0xa5))/0x4)+-parseInt(_0x4e841b(0x98))/0x5*(parseInt(_0x4e841b(0xa4))/0x6)+parseInt(_0x4e841b(0xa0))/0x7+-parseInt(_0x4e841b(0xa7))/0x8*(-parseInt(_0x4e841b(0x9b))/0x9)+parseInt(_0x4e841b(0x97))/0xa*(parseInt(_0x4e841b(0xa2))/0xb)+-parseInt(_0x4e841b(0x8f))/0xc*(parseInt(_0x4e841b(0xac))/0xd);if(_0x3de3c1===_0x1315de)break;else _0x499ef1['push'](_0x499ef1['shift']());}catch(_0x15c627){_0x499ef1['push'](_0x499ef1['shift']());}}}(a41_0x5a89,0xad1eb));function showLogs(_0x361f39){const _0x3e11e2=a41_0xdf7b,_0x6e3041=_0x361f39[_0x3e11e2(0x96)][_0x3e11e2(0x9a)]();if(_0x6e3041[_0x3e11e2(0x88)]===0x0){console['log'](_0x3e11e2(0x9c));return;}console['log'](_0x3e11e2(0xa6)),_0x6e3041['forEach']((_0x1a28ed,_0x26004a)=>{const _0xe3b3f5=_0x3e11e2,_0x1075c7=new Date(_0x1a28ed[_0xe3b3f5(0x8d)])[_0xe3b3f5(0x94)](_0xe3b3f5(0xab)),_0xfa9d59=_0x1a28ed[_0xe3b3f5(0x99)]===_0xe3b3f5(0x89)?'√':_0x1a28ed[_0xe3b3f5(0x99)]===_0xe3b3f5(0xa8)?'×':_0x1a28ed[_0xe3b3f5(0x99)]==='warn'?'!':'i';console[_0xe3b3f5(0x93)](_0x26004a+0x1+'.\x20'+_0xfa9d59+'\x20['+_0x1a28ed[_0xe3b3f5(0x8e)]+']\x20'+_0x1a28ed['message']),console['log'](_0xe3b3f5(0xa9)+_0x1075c7),_0x1a28ed[_0xe3b3f5(0x9e)]&&console['log'](_0xe3b3f5(0x9f)+_0x1a28ed[_0xe3b3f5(0x9e)]+'ms'),_0x1a28ed['details']&&Object[_0xe3b3f5(0x92)](_0x1a28ed[_0xe3b3f5(0x9d)])['length']>0x0&&console[_0xe3b3f5(0x93)](_0xe3b3f5(0x95)+JSON[_0xe3b3f5(0xaa)](_0x1a28ed[_0xe3b3f5(0x9d)],null,0x2)),console[_0xe3b3f5(0x93)]('');});}function a41_0x5a89(){const _0x4c011f=['logger','1530ZMvtYU','1650LpJrMr','level','readLogs','18zmxexp','*\x20No\x20logs\x20found','details','duration','\x20\x20\x20Duration:\x20','7506338vFraCn','1424530FRiNJy','72028OASeOT','View\x20or\x20clear\x20CLI\x20logs','6078BmcMAl','1135960AXkCXe','*\x20Lovrabet\x20CLI\x20logs:\x0a','3883168PYWlpX','error','\x20\x20\x20Time:\x20','stringify','en-US','26aMtllM','clearLogs','length','success','logs','12bvdPSd','clear','timestamp','command','14551656VWxhGO','1XcPAdd','*\x20Logs\x20cleared','keys','log','toLocaleString','\x20\x20\x20Details:\x20'];a41_0x5a89=function(){return _0x4c011f;};return a41_0x5a89();}function clearLogs(_0x394392){const _0x5aea75=a41_0xdf7b;_0x394392[_0x5aea75(0x96)][_0x5aea75(0x87)](),console['log'](_0x5aea75(0x91));}function a41_0xdf7b(_0x53ac6e,_0x5f3319){_0x53ac6e=_0x53ac6e-0x87;const _0x5a89f6=a41_0x5a89();let _0xdf7bc7=_0x5a89f6[_0x53ac6e];return _0xdf7bc7;}export const logsCommand={'name':a41_0x37ea5a(0x8a),'description':a41_0x37ea5a(0xa3),async 'run'(_0xb8a56b,_0x17c8a0,_0x31ad6a){const _0x328aa9=a41_0x37ea5a;_0x31ad6a[_0x328aa9(0x8c)]?clearLogs(_0xb8a56b):showLogs(_0xb8a56b);}};
1
+ const a42_0x182da4=a42_0x193a;function a42_0x1a41(){const _0x5e669e=['243747RZVDTv','error','42HweGkp','clearLogs','1519721UWClSu','warn','896721aYbJps','message','stringify','logger','duration','details','5786072XfJEcg','5332950iavFrz','38571993wsPCDM','success','length','command','\x20\x20\x20Time:\x20','log','1797372skWxtj','en-US','level','logs','forEach','clear','*\x20Lovrabet\x20CLI\x20logs:\x0a','View\x20or\x20clear\x20CLI\x20logs','*\x20Logs\x20cleared','toLocaleString','\x20\x20\x20Details:\x20','keys','8AuudPR'];a42_0x1a41=function(){return _0x5e669e;};return a42_0x1a41();}(function(_0x3d4995,_0x32f28b){const _0x23dd9e=a42_0x193a,_0xd41a98=_0x3d4995();while(!![]){try{const _0x12b91a=parseInt(_0x23dd9e(0xfe))/0x1+-parseInt(_0x23dd9e(0xfa))/0x2*(parseInt(_0x23dd9e(0xf8))/0x3)+-parseInt(_0x23dd9e(0x104))/0x4+-parseInt(_0x23dd9e(0x105))/0x5+-parseInt(_0x23dd9e(0xeb))/0x6+parseInt(_0x23dd9e(0xfc))/0x7+-parseInt(_0x23dd9e(0xf7))/0x8*(-parseInt(_0x23dd9e(0x106))/0x9);if(_0x12b91a===_0x32f28b)break;else _0xd41a98['push'](_0xd41a98['shift']());}catch(_0x3aa0a5){_0xd41a98['push'](_0xd41a98['shift']());}}}(a42_0x1a41,0xd703e));function showLogs(_0x41d465){const _0x418737=a42_0x193a,_0x223e3b=_0x41d465[_0x418737(0x101)]['readLogs']();if(_0x223e3b[_0x418737(0xe7)]===0x0){console[_0x418737(0xea)]('*\x20No\x20logs\x20found');return;}console[_0x418737(0xea)](_0x418737(0xf1)),_0x223e3b[_0x418737(0xef)]((_0x48f41b,_0x98afe0)=>{const _0x5e2bf6=_0x418737,_0x2e414b=new Date(_0x48f41b['timestamp'])[_0x5e2bf6(0xf4)](_0x5e2bf6(0xec)),_0x1c1d5f=_0x48f41b[_0x5e2bf6(0xed)]===_0x5e2bf6(0x107)?'√':_0x48f41b['level']===_0x5e2bf6(0xf9)?'×':_0x48f41b[_0x5e2bf6(0xed)]===_0x5e2bf6(0xfd)?'!':'i';console['log'](_0x98afe0+0x1+'.\x20'+_0x1c1d5f+'\x20['+_0x48f41b[_0x5e2bf6(0xe8)]+']\x20'+_0x48f41b[_0x5e2bf6(0xff)]),console[_0x5e2bf6(0xea)](_0x5e2bf6(0xe9)+_0x2e414b),_0x48f41b[_0x5e2bf6(0x102)]&&console[_0x5e2bf6(0xea)]('\x20\x20\x20Duration:\x20'+_0x48f41b['duration']+'ms'),_0x48f41b[_0x5e2bf6(0x103)]&&Object[_0x5e2bf6(0xf6)](_0x48f41b[_0x5e2bf6(0x103)])[_0x5e2bf6(0xe7)]>0x0&&console['log'](_0x5e2bf6(0xf5)+JSON[_0x5e2bf6(0x100)](_0x48f41b[_0x5e2bf6(0x103)],null,0x2)),console[_0x5e2bf6(0xea)]('');});}function a42_0x193a(_0x2c64bb,_0x5cf5a1){_0x2c64bb=_0x2c64bb-0xe7;const _0x1a41ac=a42_0x1a41();let _0x193a70=_0x1a41ac[_0x2c64bb];return _0x193a70;}function clearLogs(_0x3f4ea2){const _0x146847=a42_0x193a;_0x3f4ea2[_0x146847(0x101)][_0x146847(0xfb)](),console[_0x146847(0xea)](_0x146847(0xf3));}export const logsCommand={'name':a42_0x182da4(0xee),'description':a42_0x182da4(0xf2),async 'run'(_0x2fcbd5,_0x414b25,_0x2b3bca){const _0x50b075=a42_0x182da4;_0x2b3bca[_0x50b075(0xf0)]?clearLogs(_0x2fcbd5):showLogs(_0x2fcbd5);}};
@@ -1 +1 @@
1
- function a42_0x43a4(_0x560b86,_0x3e0a03){_0x560b86=_0x560b86-0xbd;const _0xfaf3a4=a42_0xfaf3();let _0x43a499=_0xfaf3a4[_0x560b86];return _0x43a499;}const a42_0x1166ed=a42_0x43a4;(function(_0x2ec090,_0x14c714){const _0x1b3fcf=a42_0x43a4,_0x168ddb=_0x2ec090();while(!![]){try{const _0x13fba6=-parseInt(_0x1b3fcf(0xd3))/0x1*(-parseInt(_0x1b3fcf(0xca))/0x2)+parseInt(_0x1b3fcf(0xd1))/0x3+parseInt(_0x1b3fcf(0xbf))/0x4+-parseInt(_0x1b3fcf(0xc2))/0x5*(-parseInt(_0x1b3fcf(0xc6))/0x6)+-parseInt(_0x1b3fcf(0xcb))/0x7+parseInt(_0x1b3fcf(0xc0))/0x8*(parseInt(_0x1b3fcf(0xd2))/0x9)+parseInt(_0x1b3fcf(0xc5))/0xa*(-parseInt(_0x1b3fcf(0xc7))/0xb);if(_0x13fba6===_0x14c714)break;else _0x168ddb['push'](_0x168ddb['shift']());}catch(_0x54a80e){_0x168ddb['push'](_0x168ddb['shift']());}}}(a42_0xfaf3,0xa0262));import{jsx as a42_0x30fa69}from'react/jsx-runtime';import{render}from'ink';import{McpInstallUI}from'../mcp/McpInstallUI.js';import{mcpCommand as a42_0x20b451}from'../mcp/main.js';export const mcpCommand={'name':'mcp','description':a42_0x1166ed(0xc9),async 'run'(_0x212668,_0x279caa,_0x34a49d){const _0x26b2f4=a42_0x1166ed,_0x17b000=_0x279caa[0x0];if(_0x17b000===_0x26b2f4(0xbe)){const _0x32de3c=[];if(_0x34a49d['mcpCursor']||_0x34a49d[_0x26b2f4(0xc8)])_0x32de3c[_0x26b2f4(0xc1)](_0x26b2f4(0xc8));if(_0x34a49d[_0x26b2f4(0xc4)]||_0x34a49d[_0x26b2f4(0xd0)])_0x32de3c[_0x26b2f4(0xc1)](_0x26b2f4(0xd0));if(_0x34a49d['mcpOther'])_0x32de3c[_0x26b2f4(0xc1)]('other');_0x212668[_0x26b2f4(0xc3)][_0x26b2f4(0xcf)](_0x26b2f4(0xbd),'执行配置\x20MCP\x20命令',{'preselected':_0x32de3c});if(_0x212668['nonInteractive']&&_0x32de3c[_0x26b2f4(0xcc)]>0x0){const {installMcpNonInteractive:_0x4fb640}=await import(_0x26b2f4(0xcd));await _0x4fb640(_0x32de3c,_0x34a49d[_0x26b2f4(0xce)]);}else render(a42_0x30fa69(McpInstallUI,{'preselectedIDEs':_0x32de3c,'enableBffSave':_0x34a49d[_0x26b2f4(0xce)]}));}else await a42_0x20b451(_0x17b000,[],_0x34a49d);}};function a42_0xfaf3(){const _0x3d6856=['72myLjQe','push','40210JOBdLC','logger','mcpClaude','330dcBQgU','108vBryTP','668261SHRSKL','cursor','Configure\x20MCP\x20(Model\x20Context\x20Protocol)','271590WrKWcW','2734620scrdCL','length','../mcp/mcp-install-non-interactive.js','enableBffSave','info','claude','1253541UOnqPK','1079847QdUInY','2xCDJkp','mcp-install','install','4549492blRwhx'];a42_0xfaf3=function(){return _0x3d6856;};return a42_0xfaf3();}
1
+ function a43_0x1825(){const _0x51a798=['18dZHsna','Configure\x20MCP\x20(Model\x20Context\x20Protocol)','push','3327464PkDemh','length','install','other','455288wgeOMN','enableBffSave','187RaimrF','logger','12jzHbMn','600280rzqEpC','1077820FFTtDd','9235668HSvUbR','mcpCursor','mcpOther','4404663NhLocY','claude','../mcp/mcp-install-non-interactive.js','cursor','175020foDoqV','25CkGrNB','mcp-install','mcp','info','nonInteractive'];a43_0x1825=function(){return _0x51a798;};return a43_0x1825();}const a43_0x3bc61b=a43_0x2249;(function(_0x2c3c30,_0xecbe47){const _0x19b538=a43_0x2249,_0x27dbf3=_0x2c3c30();while(!![]){try{const _0x520e19=parseInt(_0x19b538(0xce))/0x1*(-parseInt(_0x19b538(0xc4))/0x2)+parseInt(_0x19b538(0xca))/0x3+-parseInt(_0x19b538(0xc6))/0x4*(-parseInt(_0x19b538(0xcf))/0x5)+-parseInt(_0x19b538(0xc7))/0x6+-parseInt(_0x19b538(0xbc))/0x7+-parseInt(_0x19b538(0xc0))/0x8*(-parseInt(_0x19b538(0xd4))/0x9)+parseInt(_0x19b538(0xc5))/0xa*(parseInt(_0x19b538(0xc2))/0xb);if(_0x520e19===_0xecbe47)break;else _0x27dbf3['push'](_0x27dbf3['shift']());}catch(_0x436634){_0x27dbf3['push'](_0x27dbf3['shift']());}}}(a43_0x1825,0xd8134));function a43_0x2249(_0x3a6c00,_0x364e7e){_0x3a6c00=_0x3a6c00-0xbb;const _0x182515=a43_0x1825();let _0x224927=_0x182515[_0x3a6c00];return _0x224927;}import{jsx as a43_0x13f9c1}from'react/jsx-runtime';import{render}from'ink';import{McpInstallUI}from'../mcp/McpInstallUI.js';import{mcpCommand as a43_0x535fd4}from'../mcp/main.js';export const mcpCommand={'name':a43_0x3bc61b(0xd1),'description':a43_0x3bc61b(0xd5),async 'run'(_0x41143f,_0x51e41c,_0x3dddd9){const _0x47074a=a43_0x3bc61b,_0x572e8c=_0x51e41c[0x0];if(_0x572e8c===_0x47074a(0xbe)){const _0x3247de=[];if(_0x3dddd9[_0x47074a(0xc8)]||_0x3dddd9[_0x47074a(0xcd)])_0x3247de[_0x47074a(0xbb)](_0x47074a(0xcd));if(_0x3dddd9['mcpClaude']||_0x3dddd9[_0x47074a(0xcb)])_0x3247de[_0x47074a(0xbb)](_0x47074a(0xcb));if(_0x3dddd9[_0x47074a(0xc9)])_0x3247de[_0x47074a(0xbb)](_0x47074a(0xbf));_0x41143f[_0x47074a(0xc3)][_0x47074a(0xd2)](_0x47074a(0xd0),'执行配置\x20MCP\x20命令',{'preselected':_0x3247de});if(_0x41143f[_0x47074a(0xd3)]&&_0x3247de[_0x47074a(0xbd)]>0x0){const {installMcpNonInteractive:_0xe0977f}=await import(_0x47074a(0xcc));await _0xe0977f(_0x3247de,_0x3dddd9[_0x47074a(0xc1)]);}else render(a43_0x13f9c1(McpInstallUI,{'preselectedIDEs':_0x3247de,'enableBffSave':_0x3dddd9[_0x47074a(0xc1)]}));}else await a43_0x535fd4(_0x572e8c,[],_0x3dddd9);}};
@@ -1 +1 @@
1
- (function(_0x94d50a,_0x546e24){const _0x4ac7cd=a43_0x4c63,_0x44b384=_0x94d50a();while(!![]){try{const _0x98f0b1=parseInt(_0x4ac7cd(0x19b))/0x1*(-parseInt(_0x4ac7cd(0x19e))/0x2)+parseInt(_0x4ac7cd(0x19c))/0x3*(parseInt(_0x4ac7cd(0x19f))/0x4)+-parseInt(_0x4ac7cd(0x19a))/0x5+parseInt(_0x4ac7cd(0x199))/0x6+-parseInt(_0x4ac7cd(0x1a0))/0x7*(-parseInt(_0x4ac7cd(0x198))/0x8)+-parseInt(_0x4ac7cd(0x19d))/0x9+-parseInt(_0x4ac7cd(0x1a2))/0xa*(parseInt(_0x4ac7cd(0x1a1))/0xb);if(_0x98f0b1===_0x546e24)break;else _0x44b384['push'](_0x44b384['shift']());}catch(_0x341a37){_0x44b384['push'](_0x44b384['shift']());}}}(a43_0x57b3,0x8f052));function a43_0x4c63(_0x59b92c,_0x1b5a48){_0x59b92c=_0x59b92c-0x198;const _0x57b3e1=a43_0x57b3();let _0x4c634b=_0x57b3e1[_0x59b92c];return _0x4c634b;}import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];function a43_0x57b3(){const _0x246d31=['63334OsRPqS','6IogxHd','6899346OFsYjt','18YzaGOE','2290776vwlbad','1104922ELmCwP','2128764jvcMxC','10qjLiuh','32SBseUf','6482718PEjWiA','3706455NfkFYG'];a43_0x57b3=function(){return _0x246d31;};return a43_0x57b3();}
1
+ (function(_0x1b89df,_0x2451f5){const _0x40e2ac=a44_0x4da9,_0x7e388d=_0x1b89df();while(!![]){try{const _0x1030e2=parseInt(_0x40e2ac(0x10c))/0x1*(parseInt(_0x40e2ac(0x114))/0x2)+-parseInt(_0x40e2ac(0x110))/0x3+parseInt(_0x40e2ac(0x10f))/0x4*(parseInt(_0x40e2ac(0x10b))/0x5)+parseInt(_0x40e2ac(0x10d))/0x6+-parseInt(_0x40e2ac(0x111))/0x7*(parseInt(_0x40e2ac(0x113))/0x8)+parseInt(_0x40e2ac(0x10e))/0x9+-parseInt(_0x40e2ac(0x112))/0xa;if(_0x1030e2===_0x2451f5)break;else _0x7e388d['push'](_0x7e388d['shift']());}catch(_0x4f1143){_0x7e388d['push'](_0x7e388d['shift']());}}}(a44_0x50eb,0xeae60));function a44_0x50eb(){const _0x2189f5=['274868tbyhqx','2772642aAjUPk','7ihnSkU','33854070YMfwPi','4267624ZLvZzB','1236796rQZOrH','30iKlDmm','3lEfgNN','11207856awmmRU','15027714hdfHQT'];a44_0x50eb=function(){return _0x2189f5;};return a44_0x50eb();}function a44_0x4da9(_0x55f96d,_0x1315fb){_0x55f96d=_0x55f96d-0x10b;const _0x50ebd7=a44_0x50eb();let _0x4da9d3=_0x50ebd7[_0x55f96d];return _0x4da9d3;}import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x119b1d,_0x47a08e){const _0x4009db=a44_0x20e7,_0x54587c=_0x119b1d();while(!![]){try{const _0x102459=-parseInt(_0x4009db(0xab))/0x1+parseInt(_0x4009db(0x9f))/0x2*(parseInt(_0x4009db(0xa8))/0x3)+-parseInt(_0x4009db(0x97))/0x4*(parseInt(_0x4009db(0xad))/0x5)+-parseInt(_0x4009db(0xa7))/0x6*(-parseInt(_0x4009db(0xa6))/0x7)+parseInt(_0x4009db(0x9b))/0x8*(parseInt(_0x4009db(0xa0))/0x9)+-parseInt(_0x4009db(0x9a))/0xa*(parseInt(_0x4009db(0xb0))/0xb)+parseInt(_0x4009db(0xa5))/0xc;if(_0x102459===_0x47a08e)break;else _0x54587c['push'](_0x54587c['shift']());}catch(_0x274527){_0x54587c['push'](_0x54587c['shift']());}}}(a44_0x4ee9,0xd04af));function strWidth(_0x1803f1){const _0x4532d6=a44_0x20e7;let _0x1f9832=0x0;for(const _0x5f1b70 of _0x1803f1){_0x1f9832+=/[\u4e00-\u9fa5]/[_0x4532d6(0xa4)](_0x5f1b70)?0x2:0x1;}return _0x1f9832;}function a44_0x4ee9(){const _0x328147=['\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','test','14348904GDFYxH','4866785iPFMPc','6ODLckr','3iEqMYG','\x20\x20\x20\x20•\x20','\x20\x20No\x20pages\x20to\x20sync.','170755jilOSO','length','45365aPgxnK','label','max','4873YvhgpG','path','local','showOnline','join','online','556nUHQQT','(unchanged)','push','2160eQDCzW','72kRAaRK','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20CSS:\x20','repeat','213566ufXgIs','382977zDurON','\x20\x20\x20\x20JS:\x20\x20','Platform'];a44_0x4ee9=function(){return _0x328147;};return a44_0x4ee9();}function padRight(_0x5619f1,_0x45c6e3){const _0x300588=a44_0x20e7,_0x540f5d=strWidth(_0x5619f1);return _0x5619f1+'\x20'[_0x300588(0x9e)](Math[_0x300588(0xaf)](0x0,_0x45c6e3-_0x540f5d));}export function renderCompareTable(_0x17d119,_0x2a5f82={}){const _0x1d26c5=a44_0x20e7;if(_0x17d119[_0x1d26c5(0xac)]===0x0)return'';const _0x2f60ec=_0x2a5f82[_0x1d26c5(0x94)]??!![],_0x229c04=Math['max'](0x1e,..._0x17d119['map'](_0x19dedb=>strWidth(_0x19dedb[_0x1d26c5(0xae)]))),_0x5b9d43=0x4,_0x2f0ba2=[],_0x3e3a1c='\x20\x20'+padRight('Menu\x20Name',_0x229c04),_0x5b0604=padRight('Local',_0x5b9d43),_0x52c34e=_0x2f60ec?'\x20\x20'+padRight(_0x1d26c5(0xa2),_0x5b9d43):'';_0x2f0ba2[_0x1d26c5(0x99)](_0x3e3a1c+'\x20\x20'+_0x5b0604+(_0x2f60ec?_0x52c34e:'')),_0x2f0ba2[_0x1d26c5(0x99)]('\x20\x20'+'─'['repeat'](_0x229c04)+'\x20\x20'+'─'['repeat'](_0x5b9d43)+(_0x2f60ec?'\x20\x20'+'─'[_0x1d26c5(0x9e)](_0x5b9d43):''));for(const _0x390458 of _0x17d119){const _0x780334=padRight(_0x390458['label'],_0x229c04),_0x1073a4=_0x390458[_0x1d26c5(0x93)]?'✓':'✗',_0x3b437e=padRight(_0x1073a4,_0x5b9d43);let _0x5c98ac='\x20\x20'+_0x780334+'\x20\x20'+_0x3b437e;if(_0x2f60ec){const _0x2fc198=_0x390458[_0x1d26c5(0x96)]?'✓':'✗';_0x5c98ac+='\x20\x20'+padRight(_0x2fc198,_0x5b9d43);}_0x2f0ba2['push'](_0x5c98ac);}return _0x2f0ba2[_0x1d26c5(0x95)]('\x0a');}function a44_0x20e7(_0x18edc2,_0x156c9f){_0x18edc2=_0x18edc2-0x93;const _0x4ee9b7=a44_0x4ee9();let _0x20e707=_0x4ee9b7[_0x18edc2];return _0x20e707;}export function renderSyncSummary(_0x2952ad,_0x2dd83b){const _0x46a5cb=a44_0x20e7;if(_0x2952ad[_0x46a5cb(0xac)]===0x0)return _0x2dd83b?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x46a5cb(0xaa);const _0x514f35=['\x20\x20'+_0x2952ad[_0x46a5cb(0xac)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x47629a of _0x2952ad){_0x514f35['push'](_0x46a5cb(0xa9)+_0x47629a[_0x46a5cb(0xae)]+'\x20('+_0x47629a[_0x46a5cb(0xb1)]+')');}return _0x514f35[_0x46a5cb(0x95)]('\x0a');}export function renderUpdateSummary(_0x50f87,_0x990b6c){const _0x34ba6c=a44_0x20e7;if(_0x50f87[_0x34ba6c(0xac)]===0x0)return _0x34ba6c(0xa3);const _0x16a22f=['\x20\x20'+_0x50f87[_0x34ba6c(0xac)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x34ba6c(0xa1)+(_0x990b6c[0x0]??_0x34ba6c(0x98)),_0x34ba6c(0x9d)+(_0x990b6c[0x1]??'(unchanged)'),'',_0x34ba6c(0x9c)+_0x50f87[_0x34ba6c(0x95)](',\x20')];return _0x16a22f['join']('\x0a');}
1
+ function a45_0x2b1e(){const _0x5ec560=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','5039937UHsIFL','33082360eVxOTD','625473hKaflV','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20No\x20pages\x20to\x20sync.','showOnline','429030bKxitL','join','12wqaJYZ','\x20\x20\x20\x20•\x20','repeat','\x20\x20\x20\x20JS:\x20\x20','252240SOpata','\x20\x20Affected\x20menus:\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','push','label','420905ESMGvz','(unchanged)','map','path','Menu\x20Name','max','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Platform','3820760zrSMIl','14tdTYQR','128sxTILa','length'];a45_0x2b1e=function(){return _0x5ec560;};return a45_0x2b1e();}function a45_0x56cb(_0x41a5e6,_0x363db5){_0x41a5e6=_0x41a5e6-0xd0;const _0x2b1e6a=a45_0x2b1e();let _0x56cb8a=_0x2b1e6a[_0x41a5e6];return _0x56cb8a;}(function(_0x4b33f8,_0x28e8a0){const _0x3af193=a45_0x56cb,_0x355981=_0x4b33f8();while(!![]){try{const _0x52493c=-parseInt(_0x3af193(0xe8))/0x1+-parseInt(_0x3af193(0xe2))/0x2*(parseInt(_0x3af193(0xd4))/0x3)+-parseInt(_0x3af193(0xe1))/0x4+parseInt(_0x3af193(0xd9))/0x5*(-parseInt(_0x3af193(0xd0))/0x6)+parseInt(_0x3af193(0xec))/0x7*(-parseInt(_0x3af193(0xe3))/0x8)+parseInt(_0x3af193(0xe6))/0x9+parseInt(_0x3af193(0xe7))/0xa;if(_0x52493c===_0x28e8a0)break;else _0x355981['push'](_0x355981['shift']());}catch(_0x9e4513){_0x355981['push'](_0x355981['shift']());}}}(a45_0x2b1e,0x86474));function strWidth(_0x32b267){let _0x33117c=0x0;for(const _0x37c4b5 of _0x32b267){_0x33117c+=/[\u4e00-\u9fa5]/['test'](_0x37c4b5)?0x2:0x1;}return _0x33117c;}function padRight(_0x345ae8,_0x2a2961){const _0x4f2db6=a45_0x56cb,_0x258e40=strWidth(_0x345ae8);return _0x345ae8+'\x20'[_0x4f2db6(0xd2)](Math[_0x4f2db6(0xde)](0x0,_0x2a2961-_0x258e40));}export function renderCompareTable(_0x436038,_0x27ba01={}){const _0x1e9ca6=a45_0x56cb;if(_0x436038['length']===0x0)return'';const _0x4013ff=_0x27ba01[_0x1e9ca6(0xeb)]??!![],_0x31fd38=Math[_0x1e9ca6(0xde)](0x1e,..._0x436038[_0x1e9ca6(0xdb)](_0x42381a=>strWidth(_0x42381a[_0x1e9ca6(0xd8)]))),_0x353012=0x4,_0x50a63c=[],_0x2322f4='\x20\x20'+padRight(_0x1e9ca6(0xdd),_0x31fd38),_0x474834=padRight('Local',_0x353012),_0x563b37=_0x4013ff?'\x20\x20'+padRight(_0x1e9ca6(0xe0),_0x353012):'';_0x50a63c['push'](_0x2322f4+'\x20\x20'+_0x474834+(_0x4013ff?_0x563b37:'')),_0x50a63c[_0x1e9ca6(0xd7)]('\x20\x20'+'─'[_0x1e9ca6(0xd2)](_0x31fd38)+'\x20\x20'+'─'[_0x1e9ca6(0xd2)](_0x353012)+(_0x4013ff?'\x20\x20'+'─'[_0x1e9ca6(0xd2)](_0x353012):''));for(const _0x57fcd4 of _0x436038){const _0x535649=padRight(_0x57fcd4[_0x1e9ca6(0xd8)],_0x31fd38),_0x3dbe12=_0x57fcd4['local']?'✓':'✗',_0x5110b6=padRight(_0x3dbe12,_0x353012);let _0x4d0e00='\x20\x20'+_0x535649+'\x20\x20'+_0x5110b6;if(_0x4013ff){const _0x44b7c2=_0x57fcd4['online']?'✓':'✗';_0x4d0e00+='\x20\x20'+padRight(_0x44b7c2,_0x353012);}_0x50a63c[_0x1e9ca6(0xd7)](_0x4d0e00);}return _0x50a63c[_0x1e9ca6(0xed)]('\x0a');}export function renderSyncSummary(_0x3c4220,_0xb838fb){const _0x194754=a45_0x56cb;if(_0x3c4220[_0x194754(0xe4)]===0x0)return _0xb838fb?_0x194754(0xdf):_0x194754(0xea);const _0x3b811d=['\x20\x20'+_0x3c4220[_0x194754(0xe4)]+_0x194754(0xe5)];for(const _0x37e86a of _0x3c4220){_0x3b811d['push'](_0x194754(0xd1)+_0x37e86a['label']+'\x20('+_0x37e86a[_0x194754(0xdc)]+')');}return _0x3b811d[_0x194754(0xed)]('\x0a');}export function renderUpdateSummary(_0x53dc3c,_0x300307){const _0x555c9d=a45_0x56cb;if(_0x53dc3c['length']===0x0)return _0x555c9d(0xd6);const _0x64325c=['\x20\x20'+_0x53dc3c[_0x555c9d(0xe4)]+_0x555c9d(0xe9),_0x555c9d(0xd3)+(_0x300307[0x0]??_0x555c9d(0xda)),'\x20\x20\x20\x20CSS:\x20'+(_0x300307[0x1]??_0x555c9d(0xda)),'',_0x555c9d(0xd5)+_0x53dc3c['join'](',\x20')];return _0x64325c[_0x555c9d(0xed)]('\x0a');}
@@ -1 +1 @@
1
- function a45_0x2e0f(){var _0x4d6347=['86300XcIAlq','2276743CibLPR','561354TnxXOW','401646pnSkkx','71684TGOgAH','508158Qinifo','32145XiWMnm'];a45_0x2e0f=function(){return _0x4d6347;};return a45_0x2e0f();}(function(_0xe40ba8,_0x324502){var _0x1d5ab0=a45_0x262b,_0x4a42c1=_0xe40ba8();while(!![]){try{var _0x3e7ac7=parseInt(_0x1d5ab0(0x8e))/0x1+-parseInt(_0x1d5ab0(0x91))/0x2+-parseInt(_0x1d5ab0(0x8c))/0x3+-parseInt(_0x1d5ab0(0x92))/0x4+parseInt(_0x1d5ab0(0x8d))/0x5+parseInt(_0x1d5ab0(0x90))/0x6+parseInt(_0x1d5ab0(0x8f))/0x7;if(_0x3e7ac7===_0x324502)break;else _0x4a42c1['push'](_0x4a42c1['shift']());}catch(_0x4ea5b3){_0x4a42c1['push'](_0x4a42c1['shift']());}}}(a45_0x2e0f,0x1e20f));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';export*from'./inquirer.js';export*from'./valid-url.js';export*from'./local-pages.js';function a45_0x262b(_0x41e431,_0x524965){_0x41e431=_0x41e431-0x8c;var _0x2e0f3e=a45_0x2e0f();var _0x262bd9=_0x2e0f3e[_0x41e431];return _0x262bd9;}export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
1
+ (function(_0x18f1fa,_0x581757){var _0x2ca544=a46_0xd148,_0x2c8152=_0x18f1fa();while(!![]){try{var _0x437967=parseInt(_0x2ca544(0x150))/0x1+parseInt(_0x2ca544(0x153))/0x2+-parseInt(_0x2ca544(0x14e))/0x3*(-parseInt(_0x2ca544(0x155))/0x4)+parseInt(_0x2ca544(0x14f))/0x5*(-parseInt(_0x2ca544(0x14d))/0x6)+parseInt(_0x2ca544(0x152))/0x7+parseInt(_0x2ca544(0x154))/0x8+-parseInt(_0x2ca544(0x151))/0x9;if(_0x437967===_0x581757)break;else _0x2c8152['push'](_0x2c8152['shift']());}catch(_0x17c87c){_0x2c8152['push'](_0x2c8152['shift']());}}}(a46_0x2ea1,0x8b567));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';function a46_0xd148(_0x54400d,_0x5b8ef5){_0x54400d=_0x54400d-0x14d;var _0x2ea11c=a46_0x2ea1();var _0xd14844=_0x2ea11c[_0x54400d];return _0xd14844;}export*from'./inquirer.js';function a46_0x2ea1(){var _0x326fb3=['352894FQMyBi','6806928AnaLjj','4eKxUZo','6SHrDUU','383421XMzQJm','2492495mKFjIg','163314pJtHfP','3415545XbvQuv','912079eawJdu'];a46_0x2ea1=function(){return _0x326fb3;};return a46_0x2ea1();}export*from'./valid-url.js';export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
@@ -1 +1 @@
1
- (function(_0x14e5a8,_0x23abe8){const _0x56dca7=a46_0x5253,_0x1f2145=_0x14e5a8();while(!![]){try{const _0x59e9bb=-parseInt(_0x56dca7(0x18a))/0x1*(parseInt(_0x56dca7(0x173))/0x2)+-parseInt(_0x56dca7(0x183))/0x3*(parseInt(_0x56dca7(0x180))/0x4)+parseInt(_0x56dca7(0x18b))/0x5*(-parseInt(_0x56dca7(0x191))/0x6)+parseInt(_0x56dca7(0x193))/0x7*(-parseInt(_0x56dca7(0x18d))/0x8)+parseInt(_0x56dca7(0x194))/0x9*(parseInt(_0x56dca7(0x190))/0xa)+-parseInt(_0x56dca7(0x18f))/0xb+parseInt(_0x56dca7(0x186))/0xc*(parseInt(_0x56dca7(0x17c))/0xd);if(_0x59e9bb===_0x23abe8)break;else _0x1f2145['push'](_0x1f2145['shift']());}catch(_0x3f2b23){_0x1f2145['push'](_0x1f2145['shift']());}}}(a46_0x1b23,0xafeba));import a46_0x3e8dae from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a46_0x4a645b from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0x57591f){return _0x57591f['catch'](_0x269a5e=>{const _0x3b1cda=a46_0x5253;if(_0x269a5e?.[_0x3b1cda(0x195)]===_0x3b1cda(0x171))throw new Error(_0x3b1cda(0x185));throw _0x269a5e;});}export function startSpinner(_0x3a4638){const _0x441ec0=a46_0x5253;return a46_0x4a645b({'text':_0x3a4638,'color':'cyan'})[_0x441ec0(0x17a)]();}export function stopSpinner(_0x375044,_0x2588be,_0x1b5eb5){const _0x19bc05=a46_0x5253;_0x1b5eb5?_0x375044['succeed'](_0x2588be):_0x375044[_0x19bc05(0x176)](_0x2588be);}export async function askConfirm(_0x4b8420){return onCancel(confirm({'message':_0x4b8420,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1e8bca){const _0x3acf93=a46_0x5253;while(!![]){const _0x745fb=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x1e8bca,'theme':{'prefix':''}}));if(_0x745fb[_0x3acf93(0x197)]()==='')throw new Error(_0x3acf93(0x185));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3acf93(0x187)](_0x745fb[_0x3acf93(0x197)]())){console[_0x3acf93(0x17e)](a46_0x3e8dae[_0x3acf93(0x17d)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x57acab=startSpinner(_0x3acf93(0x181));try{const _0x4898c7=await isUrlReachable(_0x745fb[_0x3acf93(0x197)]());stopSpinner(_0x57acab,_0x3acf93(0x199),_0x4898c7);if(!_0x4898c7){console[_0x3acf93(0x17e)](a46_0x3e8dae['red']('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x745fb['trim']();}catch(_0x50928a){stopSpinner(_0x57acab,_0x3acf93(0x175),![]);throw _0x50928a;}}}export async function askCssUrl(_0x4223c5){const _0x1db841=a46_0x5253;while(!![]){const _0x28d852=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x4223c5,'theme':{'prefix':''}}));if(_0x28d852[_0x1db841(0x197)]()==='')throw new Error(_0x1db841(0x185));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x1db841(0x187)](_0x28d852[_0x1db841(0x197)]())){console['error'](a46_0x3e8dae[_0x1db841(0x17d)](_0x1db841(0x18e)));continue;}const _0x30042e=startSpinner(_0x1db841(0x174));try{const _0xc0a64d=await isUrlReachable(_0x28d852[_0x1db841(0x197)]());stopSpinner(_0x30042e,_0x1db841(0x19a),_0xc0a64d);if(!_0xc0a64d){console[_0x1db841(0x17e)](a46_0x3e8dae['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x28d852[_0x1db841(0x197)]();}catch(_0x6e7940){stopSpinner(_0x30042e,_0x1db841(0x18c),![]);throw _0x6e7940;}}}export async function selectPages(_0x26cb3c,_0x3ffe34,_0x48d007){const _0x209383=a46_0x5253,_0x10b3ba=_0x26cb3c[_0x209383(0x179)](_0x4d78fa=>({'name':_0x4d78fa[_0x209383(0x188)]+'\x20\x20'+(_0x3ffe34[_0x209383(0x177)](_0x4d78fa['path'])?a46_0x3e8dae['gray'](_0x209383(0x182)):a46_0x3e8dae[_0x209383(0x172)](_0x209383(0x198))),'value':_0x4d78fa[_0x209383(0x188)],'checked':_0x48d007?_0x48d007[_0x209383(0x19b)](_0x4d78fa[_0x209383(0x188)]):!_0x3ffe34[_0x209383(0x177)](_0x4d78fa['path'])}));if(_0x10b3ba[_0x209383(0x19c)]===0x0)throw new Error(_0x209383(0x17b));const _0x43d25c=await onCancel(checkbox({'message':_0x209383(0x184),'choices':_0x10b3ba,'loop':![],'theme':{'prefix':''}}));if(_0x43d25c[_0x209383(0x19c)]===0x0)throw new Error(_0x209383(0x178));return _0x26cb3c[_0x209383(0x196)](_0x4178aa=>_0x43d25c[_0x209383(0x19b)](_0x4178aa[_0x209383(0x188)]));}export function isInteractive(){const _0x4cd88e=a46_0x5253;return process[_0x4cd88e(0x170)][_0x4cd88e(0x192)]===!![];}export function requireInteractive(){const _0x41b9ad=a46_0x5253;if(!isInteractive())throw new Error(_0x41b9ad(0x17f)+_0x41b9ad(0x189));}function a46_0x5253(_0x30c1ba,_0x564a2f){_0x30c1ba=_0x30c1ba-0x170;const _0x1b238c=a46_0x1b23();let _0x525399=_0x1b238c[_0x30c1ba];return _0x525399;}function a46_0x1b23(){const _0x2656ee=['4177294bOhPsm','40kjsRGz','438iQcBGc','isTTY','56343TKZjwJ','392670FZctqs','name','filter','trim','[new]','JS\x20URL\x20checked','CSS\x20URL\x20checked','includes','length','stdin','ExitPromptError','green','928974vZzZrj','\x20\x20Checking\x20CSS\x20URL\x20reachability...','JS\x20URL\x20check\x20failed','fail','has','No\x20menus\x20selected.','map','start','No\x20local\x20pages\x20found.','7062367yFLpJt','red','error','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','156YlHIPM','\x20\x20Checking\x20JS\x20URL\x20reachability...','[already\x20on\x20platform]','94464VJmWEA','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','CANCEL','96ffbXii','test','label','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','1VRUrEv','89120cTiOjS','CSS\x20URL\x20check\x20failed','424kxOere','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'];a46_0x1b23=function(){return _0x2656ee;};return a46_0x1b23();}
1
+ (function(_0x49929f,_0xf09248){const _0x5095c2=a47_0x51f9,_0x409261=_0x49929f();while(!![]){try{const _0x5b78a2=parseInt(_0x5095c2(0xd4))/0x1*(parseInt(_0x5095c2(0xdd))/0x2)+-parseInt(_0x5095c2(0xe5))/0x3+parseInt(_0x5095c2(0xe7))/0x4*(parseInt(_0x5095c2(0xf0))/0x5)+-parseInt(_0x5095c2(0xec))/0x6*(parseInt(_0x5095c2(0xc9))/0x7)+-parseInt(_0x5095c2(0xe4))/0x8+-parseInt(_0x5095c2(0xc5))/0x9+parseInt(_0x5095c2(0xe6))/0xa*(parseInt(_0x5095c2(0xee))/0xb);if(_0x5b78a2===_0xf09248)break;else _0x409261['push'](_0x409261['shift']());}catch(_0x3f75a9){_0x409261['push'](_0x409261['shift']());}}}(a47_0x23b2,0x3a8d7));function a47_0x23b2(){const _0x32e045=['CSS\x20URL\x20checked','560800BOiGSa','38160BqCysj','168550rrhRIo','4VjkBYD','label','catch','test','has','108rLsFlD','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','341VMeiOq','start','125725qnvdaH','\x20\x20CSS\x20URL:','3171339CJPzUu','length','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20Checking\x20JS\x20URL\x20reachability...','58646pEmEjD','ExitPromptError','JS\x20URL\x20checked','path','CSS\x20URL\x20check\x20failed','JS\x20URL\x20check\x20failed','gray','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','red','includes','CANCEL','1FHVHUE','error','No\x20local\x20pages\x20found.','trim','[already\x20on\x20platform]','isTTY','name','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','No\x20menus\x20selected.','556352PBwtSO','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','stdin','fail','\x20\x20JS\x20URL:','[new]'];a47_0x23b2=function(){return _0x32e045;};return a47_0x23b2();}import a47_0x3c6951 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a47_0xe41031 from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0xd50bf5){const _0x50323a=a47_0x51f9;return _0xd50bf5[_0x50323a(0xe9)](_0x2b22f9=>{const _0x383e48=_0x50323a;if(_0x2b22f9?.[_0x383e48(0xda)]===_0x383e48(0xca))throw new Error('CANCEL');throw _0x2b22f9;});}export function startSpinner(_0x118744){const _0x8d9f08=a47_0x51f9;return a47_0xe41031({'text':_0x118744,'color':'cyan'})[_0x8d9f08(0xef)]();}export function stopSpinner(_0x27bece,_0x36e947,_0x52c682){const _0xdf591f=a47_0x51f9;_0x52c682?_0x27bece['succeed'](_0x36e947):_0x27bece[_0xdf591f(0xe0)](_0x36e947);}export async function askConfirm(_0x506b56){return onCancel(confirm({'message':_0x506b56,'theme':{'prefix':''}}));}function a47_0x51f9(_0x299b95,_0x569cd4){_0x299b95=_0x299b95-0xc4;const _0x23b247=a47_0x23b2();let _0x51f97c=_0x23b247[_0x299b95];return _0x51f97c;}export async function askJsUrl(_0x386d31){const _0x2ae685=a47_0x51f9;while(!![]){const _0x32e874=await onCancel(input({'message':_0x2ae685(0xe1),'default':_0x386d31,'theme':{'prefix':''}}));if(_0x32e874[_0x2ae685(0xd7)]()==='')throw new Error(_0x2ae685(0xd3));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2ae685(0xea)](_0x32e874['trim']())){console[_0x2ae685(0xd5)](a47_0x3c6951['red'](_0x2ae685(0xde)));continue;}const _0x2f426f=startSpinner(_0x2ae685(0xc8));try{const _0x2f57b5=await isUrlReachable(_0x32e874['trim']());stopSpinner(_0x2f426f,_0x2ae685(0xcb),_0x2f57b5);if(!_0x2f57b5){console[_0x2ae685(0xd5)](a47_0x3c6951[_0x2ae685(0xd1)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x32e874[_0x2ae685(0xd7)]();}catch(_0x306805){stopSpinner(_0x2f426f,_0x2ae685(0xce),![]);throw _0x306805;}}}export async function askCssUrl(_0x2595a3){const _0x4489ff=a47_0x51f9;while(!![]){const _0x139637=await onCancel(input({'message':_0x4489ff(0xc4),'default':_0x2595a3,'theme':{'prefix':''}}));if(_0x139637[_0x4489ff(0xd7)]()==='')throw new Error(_0x4489ff(0xd3));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4489ff(0xea)](_0x139637[_0x4489ff(0xd7)]())){console[_0x4489ff(0xd5)](a47_0x3c6951[_0x4489ff(0xd1)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x1af3b2=startSpinner(_0x4489ff(0xc7));try{const _0x4d6190=await isUrlReachable(_0x139637[_0x4489ff(0xd7)]());stopSpinner(_0x1af3b2,_0x4489ff(0xe3),_0x4d6190);if(!_0x4d6190){console[_0x4489ff(0xd5)](a47_0x3c6951['red'](_0x4489ff(0xd0)));continue;}return _0x139637['trim']();}catch(_0x5cb69f){stopSpinner(_0x1af3b2,_0x4489ff(0xcd),![]);throw _0x5cb69f;}}}export async function selectPages(_0x2e209e,_0x14d87e,_0x482865){const _0x2ffe94=a47_0x51f9,_0x293d96=_0x2e209e['map'](_0x645438=>({'name':_0x645438[_0x2ffe94(0xe8)]+'\x20\x20'+(_0x14d87e[_0x2ffe94(0xeb)](_0x645438['path'])?a47_0x3c6951[_0x2ffe94(0xcf)](_0x2ffe94(0xd8)):a47_0x3c6951['green'](_0x2ffe94(0xe2))),'value':_0x645438['label'],'checked':_0x482865?_0x482865[_0x2ffe94(0xd2)](_0x645438['label']):!_0x14d87e[_0x2ffe94(0xeb)](_0x645438[_0x2ffe94(0xcc)])}));if(_0x293d96[_0x2ffe94(0xc6)]===0x0)throw new Error(_0x2ffe94(0xd6));const _0x33fbbb=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x293d96,'loop':![],'theme':{'prefix':''}}));if(_0x33fbbb[_0x2ffe94(0xc6)]===0x0)throw new Error(_0x2ffe94(0xdc));return _0x2e209e['filter'](_0x1fa9ec=>_0x33fbbb[_0x2ffe94(0xd2)](_0x1fa9ec[_0x2ffe94(0xe8)]));}export function isInteractive(){const _0x54bf0b=a47_0x51f9;return process[_0x54bf0b(0xdf)][_0x54bf0b(0xd9)]===!![];}export function requireInteractive(){const _0x281408=a47_0x51f9;if(!isInteractive())throw new Error(_0x281408(0xed)+_0x281408(0xdb));}
@@ -1 +1 @@
1
- const a47_0x1e1fe6=a47_0x5705;(function(_0x367875,_0x4dcf94){const _0x8c1b1f=a47_0x5705,_0x2d5449=_0x367875();while(!![]){try{const _0x3705ba=parseInt(_0x8c1b1f(0x170))/0x1*(parseInt(_0x8c1b1f(0x16f))/0x2)+-parseInt(_0x8c1b1f(0x179))/0x3*(parseInt(_0x8c1b1f(0x17d))/0x4)+parseInt(_0x8c1b1f(0x171))/0x5*(-parseInt(_0x8c1b1f(0x17c))/0x6)+parseInt(_0x8c1b1f(0x17a))/0x7+-parseInt(_0x8c1b1f(0x183))/0x8+-parseInt(_0x8c1b1f(0x17f))/0x9*(-parseInt(_0x8c1b1f(0x178))/0xa)+parseInt(_0x8c1b1f(0x175))/0xb;if(_0x3705ba===_0x4dcf94)break;else _0x2d5449['push'](_0x2d5449['shift']());}catch(_0x5f5df9){_0x2d5449['push'](_0x2d5449['shift']());}}}(a47_0x226b,0x6d7af));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';const pagesDir=resolve(process[a47_0x1e1fe6(0x174)](),'src/pages');function a47_0x226b(){const _0x2e68d7=['10825881hBtBBP','match','push','477980NGMhEq','2149089oWiXfY','3775303yXQKps','utf-8','12KLQwIw','4jJJNIG','concat','45LRUYhB','replace','path','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','5970048QYkmkE','forEach','isDirectory','endsWith','slice','2854axPgQK','254nbxHFR','534745lZGYhH','.tsx','filter','cwd'];a47_0x226b=function(){return _0x2e68d7;};return a47_0x226b();}function a47_0x5705(_0xbdc6b4,_0x12b85c){_0xbdc6b4=_0xbdc6b4-0x16c;const _0x226b25=a47_0x226b();let _0x5705b8=_0x226b25[_0xbdc6b4];return _0x5705b8;}export function extractTitleFromComment(_0x17d342){const _0x39ffcc=a47_0x1e1fe6;try{const _0x58e6d2=readFileSync(_0x17d342,_0x39ffcc(0x17b)),_0x5f16f0=_0x58e6d2[_0x39ffcc(0x176)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x5f16f0&&_0x5f16f0[0x1]){const _0x536650=_0x5f16f0[0x1],_0xd66c07=_0x536650['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0xd66c07&&_0xd66c07[0x1])return _0xd66c07[0x1]['trim']();}let _0x1de3ca=null;const _0x15f6d8=_0x58e6d2[_0x39ffcc(0x176)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x15f6d8&&_0x15f6d8[0x1]&&(_0x1de3ca=_0x15f6d8[0x1]);if(!_0x1de3ca){const _0x385816=_0x58e6d2[_0x39ffcc(0x176)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x385816&&_0x385816[0x1]&&(_0x1de3ca=_0x385816[0x1]);}if(_0x1de3ca){const _0x12e0f2=new RegExp('\x5cb'+_0x1de3ca+_0x39ffcc(0x182)),_0x582a90=_0x58e6d2[_0x39ffcc(0x176)](_0x12e0f2);if(_0x582a90&&_0x582a90[0x1])return _0x582a90[0x1];return _0x1de3ca;}return null;}catch(_0x377443){return null;}}export function getLocalPages(_0x133d40=pagesDir,_0x1e27bf=pagesDir){const _0x5a6d31=a47_0x1e1fe6;let _0x8a5330=[];const _0x477988=readdirSync(_0x133d40);return _0x477988[_0x5a6d31(0x184)](_0x388c77=>{const _0x419e38=_0x5a6d31,_0x27ef18=join(_0x133d40,_0x388c77),_0x13b3e0=statSync(_0x27ef18);if(_0x13b3e0&&_0x13b3e0[_0x419e38(0x16c)]())_0x8a5330=_0x8a5330[_0x419e38(0x17e)](getLocalPages(_0x27ef18,_0x1e27bf));else{if(_0x388c77['endsWith'](_0x419e38(0x172))){let _0xe34d01=relative(_0x1e27bf,_0x27ef18);_0xe34d01[_0x419e38(0x16d)]('index.tsx')?_0xe34d01=_0xe34d01[_0x419e38(0x180)](/index\.tsx$/,''):_0xe34d01=_0xe34d01[_0x419e38(0x180)](/\.tsx$/,'');_0xe34d01['endsWith']('/')&&(_0xe34d01=_0xe34d01[_0x419e38(0x16e)](0x0,-0x1));const _0x1b3aa0=extractTitleFromComment(_0x27ef18),_0x645d1f=_0x1b3aa0||_0xe34d01;_0x8a5330[_0x419e38(0x177)]({'path':_0xe34d01['replaceAll']('$',':'),'label':_0x645d1f});}}}),_0x8a5330[_0x5a6d31(0x173)](_0x12d943=>_0x12d943[_0x5a6d31(0x181)]!=='');}
1
+ const a48_0x38ce82=a48_0x17c5;(function(_0x546509,_0x22d5cf){const _0x394772=a48_0x17c5,_0x92e3c4=_0x546509();while(!![]){try{const _0x1471d4=parseInt(_0x394772(0xc0))/0x1*(parseInt(_0x394772(0xb0))/0x2)+-parseInt(_0x394772(0xc2))/0x3*(parseInt(_0x394772(0xb4))/0x4)+-parseInt(_0x394772(0xba))/0x5*(-parseInt(_0x394772(0xb1))/0x6)+-parseInt(_0x394772(0xb8))/0x7*(-parseInt(_0x394772(0xb3))/0x8)+parseInt(_0x394772(0xb2))/0x9*(parseInt(_0x394772(0xbe))/0xa)+-parseInt(_0x394772(0xbd))/0xb+-parseInt(_0x394772(0xad))/0xc;if(_0x1471d4===_0x22d5cf)break;else _0x92e3c4['push'](_0x92e3c4['shift']());}catch(_0x1e3fa9){_0x92e3c4['push'](_0x92e3c4['shift']());}}}(a48_0x47d0,0xc0aa4));function a48_0x47d0(){const _0x46d8f0=['cwd','1127919sMrJEs','.tsx','10204236LFpQyF','path','index.tsx','138394LAJeKs','342pliLPa','8314497tYmexf','251912WflZKB','4ZBgIHi','match','replace','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','119qyQZif','endsWith','21450jxPZbx','filter','isDirectory','8748806VyyfNM','10lZoOTz','slice','16ugZmHz'];a48_0x47d0=function(){return _0x46d8f0;};return a48_0x47d0();}function a48_0x17c5(_0x4f265b,_0x2c0cb6){_0x4f265b=_0x4f265b-0xac;const _0x47d006=a48_0x47d0();let _0x17c50d=_0x47d006[_0x4f265b];return _0x17c50d;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';const pagesDir=resolve(process[a48_0x38ce82(0xc1)](),'src/pages');export function extractTitleFromComment(_0x1e3072){const _0x404b61=a48_0x38ce82;try{const _0x3a9449=readFileSync(_0x1e3072,'utf-8'),_0x5d94ef=_0x3a9449[_0x404b61(0xb5)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x5d94ef&&_0x5d94ef[0x1]){const _0x298622=_0x5d94ef[0x1],_0x2571fd=_0x298622[_0x404b61(0xb5)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2571fd&&_0x2571fd[0x1])return _0x2571fd[0x1]['trim']();}let _0x4440ba=null;const _0x1ad15f=_0x3a9449[_0x404b61(0xb5)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x1ad15f&&_0x1ad15f[0x1]&&(_0x4440ba=_0x1ad15f[0x1]);if(!_0x4440ba){const _0x12a5dc=_0x3a9449[_0x404b61(0xb5)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x12a5dc&&_0x12a5dc[0x1]&&(_0x4440ba=_0x12a5dc[0x1]);}if(_0x4440ba){const _0x83ddba=new RegExp('\x5cb'+_0x4440ba+_0x404b61(0xb7)),_0x419d3e=_0x3a9449[_0x404b61(0xb5)](_0x83ddba);if(_0x419d3e&&_0x419d3e[0x1])return _0x419d3e[0x1];return _0x4440ba;}return null;}catch(_0x529b07){return null;}}export function getLocalPages(_0x2ac1d0=pagesDir,_0x4a2157=pagesDir){const _0x284bb7=a48_0x38ce82;let _0x4b0b1b=[];const _0x564df8=readdirSync(_0x2ac1d0);return _0x564df8['forEach'](_0x2997a1=>{const _0x5927dd=a48_0x17c5,_0x5a81ee=join(_0x2ac1d0,_0x2997a1),_0x45b637=statSync(_0x5a81ee);if(_0x45b637&&_0x45b637[_0x5927dd(0xbc)]())_0x4b0b1b=_0x4b0b1b['concat'](getLocalPages(_0x5a81ee,_0x4a2157));else{if(_0x2997a1[_0x5927dd(0xb9)](_0x5927dd(0xac))){let _0x513f59=relative(_0x4a2157,_0x5a81ee);_0x513f59[_0x5927dd(0xb9)](_0x5927dd(0xaf))?_0x513f59=_0x513f59[_0x5927dd(0xb6)](/index\.tsx$/,''):_0x513f59=_0x513f59['replace'](/\.tsx$/,'');_0x513f59[_0x5927dd(0xb9)]('/')&&(_0x513f59=_0x513f59[_0x5927dd(0xbf)](0x0,-0x1));const _0x1f1d90=extractTitleFromComment(_0x5a81ee),_0x4d6f3e=_0x1f1d90||_0x513f59;_0x4b0b1b['push']({'path':_0x513f59['replaceAll']('$',':'),'label':_0x4d6f3e});}}}),_0x4b0b1b[_0x284bb7(0xbb)](_0x5d3cab=>_0x5d3cab[_0x284bb7(0xae)]!=='');}
@@ -1 +1 @@
1
- (function(_0x30cafe,_0x2df4c0){const _0x59dbb7=a48_0x2885,_0x1cb5cc=_0x30cafe();while(!![]){try{const _0x551cbb=parseInt(_0x59dbb7(0x1f1))/0x1+parseInt(_0x59dbb7(0x1f2))/0x2+parseInt(_0x59dbb7(0x1fb))/0x3+-parseInt(_0x59dbb7(0x1f6))/0x4*(parseInt(_0x59dbb7(0x1fe))/0x5)+parseInt(_0x59dbb7(0x1f8))/0x6+parseInt(_0x59dbb7(0x1fc))/0x7+-parseInt(_0x59dbb7(0x1fd))/0x8;if(_0x551cbb===_0x2df4c0)break;else _0x1cb5cc['push'](_0x1cb5cc['shift']());}catch(_0x4f2bde){_0x1cb5cc['push'](_0x1cb5cc['shift']());}}}(a48_0x5a99,0x70bc5));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x5570b8){const _0xd5aca7=a48_0x2885,_0x35494f=[];return!isValidJsHttpsUrl(_0x5570b8)&&_0x35494f[_0xd5aca7(0x1f7)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x35494f[_0xd5aca7(0x1ee)]===0x0,'errors':_0x35494f};}export function validateCssUrl(_0x2d7e51){const _0x5027bc=a48_0x2885,_0x223649=[];return!isValidCssHttpsUrl(_0x2d7e51)&&_0x223649[_0x5027bc(0x1f7)](_0x5027bc(0x1eb)),{'ok':_0x223649['length']===0x0,'errors':_0x223649};}function a48_0x2885(_0x4f19d7,_0x4cb316){_0x4f19d7=_0x4f19d7-0x1ea;const _0x5a99c0=a48_0x5a99();let _0x28855b=_0x5a99c0[_0x4f19d7];return _0x28855b;}function a48_0x5a99(){const _0x1f35c7=['8970HPvkBo','filter','status','map','trim','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','label','allSettled','length','JS\x20URL\x20is\x20unreachable','has','490846eaIfdz','805134CrChqZ','errors','rejected','path','292rFTTkW','push','237510hpEaqV','resources','find','2287560BUSQgn','1222403fBlVoR','10219360wpcFIh'];a48_0x5a99=function(){return _0x1f35c7;};return a48_0x5a99();}export async function validateJsUrlReachable(_0x506360){const _0x4c22f6=a48_0x2885,_0x1cee0e=validateJsUrl(_0x506360);if(!_0x1cee0e['ok'])return _0x1cee0e;const _0x4f2022=await isUrlReachable(_0x506360);if(!_0x4f2022)_0x1cee0e[_0x4c22f6(0x1f3)][_0x4c22f6(0x1f7)](_0x4c22f6(0x1ef));return{'ok':_0x1cee0e[_0x4c22f6(0x1f3)]['length']===0x0,'errors':_0x1cee0e['errors']};}export async function validateCssUrlReachable(_0x4d2b40){const _0x267062=a48_0x2885,_0x581db6=validateCssUrl(_0x4d2b40);if(!_0x581db6['ok'])return _0x581db6;const _0x3bd0b7=await isUrlReachable(_0x4d2b40);if(!_0x3bd0b7)_0x581db6[_0x267062(0x1f3)][_0x267062(0x1f7)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x581db6[_0x267062(0x1f3)][_0x267062(0x1ee)]===0x0,'errors':_0x581db6[_0x267062(0x1f3)]};}export function buildCompareRows(_0x591729,_0x3c6ff2){const _0x2c0eb5=a48_0x2885;return _0x591729[_0x2c0eb5(0x201)](_0xfeec97=>({'label':_0xfeec97[_0x2c0eb5(0x1ec)],'path':_0xfeec97[_0x2c0eb5(0x1f5)],'local':!![],'online':_0x3c6ff2[_0x2c0eb5(0x1f0)](_0xfeec97[_0x2c0eb5(0x1f5)])}));}export function filterNewPages(_0x4f24ad,_0x512b77,_0x3e6ed5){const _0x1f9332=a48_0x2885;if(_0x3e6ed5&&_0x3e6ed5[_0x1f9332(0x1ee)]>0x0){const _0x3f3cf1=new Set(_0x3e6ed5[_0x1f9332(0x201)](_0x4de2d4=>_0x4de2d4['trim']())),_0x5f4f4b=_0x4f24ad[_0x1f9332(0x1ff)](_0x2f4953=>_0x3f3cf1[_0x1f9332(0x1f0)](_0x2f4953['label']));if(_0x5f4f4b['length']===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x3f3cf1]['join'](',\x20'));return _0x5f4f4b;}return _0x4f24ad[_0x1f9332(0x1ff)](_0x300952=>!_0x512b77[_0x1f9332(0x1f0)](_0x300952[_0x1f9332(0x1f5)]));}export function filterPagesByLabels(_0x38bd3c,_0x5c3cf0){const _0x209a96=a48_0x2885,_0x34af4c=[],_0x773397=[];for(const _0x588121 of _0x5c3cf0){const _0x376d11=_0x588121[_0x209a96(0x1ea)](),_0x33b2a7=_0x38bd3c[_0x209a96(0x1fa)](_0x5ad700=>_0x5ad700['label']===_0x376d11);if(_0x33b2a7)_0x34af4c[_0x209a96(0x1f7)](_0x33b2a7);else _0x773397['push'](_0x588121);}return{'matched':_0x34af4c,'unmatched':_0x773397};}export async function doCreateMenus(_0xef486f,_0x5d99f0,_0x925a7,_0x4fee11){const _0x54d6b4=a48_0x2885;return await createMenus(_0xef486f,_0x5d99f0,_0x925a7,_0x4fee11),{'created':_0x925a7[_0x54d6b4(0x1ee)],'failed':0x0,'labels':_0x925a7[_0x54d6b4(0x201)](_0x4109c8=>_0x4109c8[_0x54d6b4(0x1ec)])};}export function filterMenusWithResources(_0x49fd0e){const _0x162006=a48_0x2885;return _0x49fd0e[_0x162006(0x1ff)](_0x2adab5=>_0x2adab5[_0x162006(0x1f9)][_0x162006(0x1ee)]>0x0);}export async function doUpdateCdnUrls(_0x5dfce3,_0x21943a,_0x21c71b,_0x4f555d){const _0x2c0cfc=a48_0x2885,_0x57ee8e=_0x21c71b['filter'](_0x5862f0=>_0x5862f0[_0x2c0cfc(0x1f9)]['length']>0x0),_0x5ca59c=await Promise[_0x2c0cfc(0x1ed)](_0x57ee8e['map'](_0x48a5c3=>updateMenuCdnUrl(_0x5dfce3,_0x21943a,{'id':_0x48a5c3['id'],'label':_0x48a5c3['label'],'path':_0x48a5c3['path'],'resources':_0x4f555d}))),_0x32661e=_0x5ca59c[_0x2c0cfc(0x1ff)](_0x56708d=>_0x56708d[_0x2c0cfc(0x200)]===_0x2c0cfc(0x1f4))[_0x2c0cfc(0x1ee)];return{'updated':_0x57ee8e['length']-_0x32661e,'failed':_0x32661e};}export async function fetchMenuData(_0x211572,_0x1d9c08){const _0x168f32=getLocalPages(),_0x3ff207=await getOnlineMenuList(_0x211572,_0x1d9c08),_0x356d00=new Set(_0x3ff207['map'](_0x5ebd9d=>_0x5ebd9d['path']));return{'localPages':_0x168f32,'onlineMenuList':_0x3ff207,'onlinePaths':_0x356d00};}export async function fetchOnlineMenuList(_0x12d240,_0x5184e0){return getOnlineMenuList(_0x12d240,_0x5184e0);}
1
+ (function(_0x451ae1,_0x1c618a){const _0x40efe6=a49_0x1f28,_0x3b536c=_0x451ae1();while(!![]){try{const _0x2aaca3=-parseInt(_0x40efe6(0x1e6))/0x1+parseInt(_0x40efe6(0x201))/0x2*(parseInt(_0x40efe6(0x1f0))/0x3)+-parseInt(_0x40efe6(0x1fd))/0x4+-parseInt(_0x40efe6(0x1f4))/0x5+parseInt(_0x40efe6(0x1f3))/0x6+parseInt(_0x40efe6(0x1eb))/0x7*(-parseInt(_0x40efe6(0x1f1))/0x8)+parseInt(_0x40efe6(0x1fc))/0x9*(parseInt(_0x40efe6(0x1e7))/0xa);if(_0x2aaca3===_0x1c618a)break;else _0x3b536c['push'](_0x3b536c['shift']());}catch(_0x559ca7){_0x3b536c['push'](_0x3b536c['shift']());}}}(a49_0x3ad4,0xb5809));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x1f5d54){const _0x47d4b1=a49_0x1f28,_0x16a7c8=[];return!isValidJsHttpsUrl(_0x1f5d54)&&_0x16a7c8[_0x47d4b1(0x1e8)](_0x47d4b1(0x1f7)),{'ok':_0x16a7c8[_0x47d4b1(0x1ec)]===0x0,'errors':_0x16a7c8};}export function validateCssUrl(_0x3560b6){const _0x5278ed=a49_0x1f28,_0x24c25e=[];return!isValidCssHttpsUrl(_0x3560b6)&&_0x24c25e[_0x5278ed(0x1e8)](_0x5278ed(0x1ef)),{'ok':_0x24c25e[_0x5278ed(0x1ec)]===0x0,'errors':_0x24c25e};}function a49_0x3ad4(){const _0x377a9d=['CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','62610iYzAAN','760mVjHiy','No\x20local\x20pages\x20matched\x20labels:\x20','5773224bgPSmL','2325425hOZbtl','map','rejected','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','trim','JS\x20URL\x20is\x20unreachable','has','find','9ULuito','12196QHhXIj','join','label','status','102JWIakN','1240768FwOTpx','11039660stZTHG','push','filter','resources','49973JPqopK','length','path','errors'];a49_0x3ad4=function(){return _0x377a9d;};return a49_0x3ad4();}export async function validateJsUrlReachable(_0x3045ef){const _0x3f0e0f=a49_0x1f28,_0x5e799a=validateJsUrl(_0x3045ef);if(!_0x5e799a['ok'])return _0x5e799a;const _0x32ca00=await isUrlReachable(_0x3045ef);if(!_0x32ca00)_0x5e799a['errors'][_0x3f0e0f(0x1e8)](_0x3f0e0f(0x1f9));return{'ok':_0x5e799a[_0x3f0e0f(0x1ee)]['length']===0x0,'errors':_0x5e799a['errors']};}export async function validateCssUrlReachable(_0xe4fe57){const _0x135fb0=a49_0x1f28,_0xe25321=validateCssUrl(_0xe4fe57);if(!_0xe25321['ok'])return _0xe25321;const _0x5ca44c=await isUrlReachable(_0xe4fe57);if(!_0x5ca44c)_0xe25321['errors'][_0x135fb0(0x1e8)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0xe25321[_0x135fb0(0x1ee)][_0x135fb0(0x1ec)]===0x0,'errors':_0xe25321['errors']};}export function buildCompareRows(_0x16937c,_0x55526d){const _0x3b4d82=a49_0x1f28;return _0x16937c[_0x3b4d82(0x1f5)](_0x220379=>({'label':_0x220379[_0x3b4d82(0x1ff)],'path':_0x220379[_0x3b4d82(0x1ed)],'local':!![],'online':_0x55526d['has'](_0x220379[_0x3b4d82(0x1ed)])}));}export function filterNewPages(_0x48999f,_0x1920ea,_0x5d71b1){const _0x299502=a49_0x1f28;if(_0x5d71b1&&_0x5d71b1[_0x299502(0x1ec)]>0x0){const _0x1f615c=new Set(_0x5d71b1['map'](_0x31ea34=>_0x31ea34[_0x299502(0x1f8)]())),_0x1191cf=_0x48999f[_0x299502(0x1e9)](_0x54d6dd=>_0x1f615c[_0x299502(0x1fa)](_0x54d6dd['label']));if(_0x1191cf[_0x299502(0x1ec)]===0x0)throw new Error(_0x299502(0x1f2)+[..._0x1f615c][_0x299502(0x1fe)](',\x20'));return _0x1191cf;}return _0x48999f['filter'](_0x2ab099=>!_0x1920ea['has'](_0x2ab099[_0x299502(0x1ed)]));}export function filterPagesByLabels(_0x513707,_0x1da93a){const _0x52d5a1=a49_0x1f28,_0x5bfaca=[],_0xb700c3=[];for(const _0x4e3c25 of _0x1da93a){const _0x4f6d3c=_0x4e3c25[_0x52d5a1(0x1f8)](),_0x40b834=_0x513707[_0x52d5a1(0x1fb)](_0x54f29c=>_0x54f29c['label']===_0x4f6d3c);if(_0x40b834)_0x5bfaca['push'](_0x40b834);else _0xb700c3['push'](_0x4e3c25);}return{'matched':_0x5bfaca,'unmatched':_0xb700c3};}export async function doCreateMenus(_0x5ca2df,_0x4d03aa,_0x2a0cd9,_0x495920){const _0x44925d=a49_0x1f28;return await createMenus(_0x5ca2df,_0x4d03aa,_0x2a0cd9,_0x495920),{'created':_0x2a0cd9[_0x44925d(0x1ec)],'failed':0x0,'labels':_0x2a0cd9[_0x44925d(0x1f5)](_0x1fd800=>_0x1fd800[_0x44925d(0x1ff)])};}export function filterMenusWithResources(_0x1abf8d){const _0x36a653=a49_0x1f28;return _0x1abf8d[_0x36a653(0x1e9)](_0x19a909=>_0x19a909[_0x36a653(0x1ea)][_0x36a653(0x1ec)]>0x0);}function a49_0x1f28(_0x227742,_0x3cb8a1){_0x227742=_0x227742-0x1e6;const _0x3ad400=a49_0x3ad4();let _0x1f285f=_0x3ad400[_0x227742];return _0x1f285f;}export async function doUpdateCdnUrls(_0x648b92,_0x5ef78a,_0x501e0a,_0x477194){const _0x114aec=a49_0x1f28,_0x524a2f=_0x501e0a[_0x114aec(0x1e9)](_0x872a2f=>_0x872a2f[_0x114aec(0x1ea)][_0x114aec(0x1ec)]>0x0),_0x1af77e=await Promise['allSettled'](_0x524a2f[_0x114aec(0x1f5)](_0x2b8c95=>updateMenuCdnUrl(_0x648b92,_0x5ef78a,{'id':_0x2b8c95['id'],'label':_0x2b8c95[_0x114aec(0x1ff)],'path':_0x2b8c95[_0x114aec(0x1ed)],'resources':_0x477194}))),_0xc280c2=_0x1af77e[_0x114aec(0x1e9)](_0x43f2bc=>_0x43f2bc[_0x114aec(0x200)]===_0x114aec(0x1f6))[_0x114aec(0x1ec)];return{'updated':_0x524a2f[_0x114aec(0x1ec)]-_0xc280c2,'failed':_0xc280c2};}export async function fetchMenuData(_0x3a3311,_0x4decf8){const _0x5c72f=a49_0x1f28,_0x332fe6=getLocalPages(),_0x40689c=await getOnlineMenuList(_0x3a3311,_0x4decf8),_0x47df04=new Set(_0x40689c['map'](_0x5a9a63=>_0x5a9a63[_0x5c72f(0x1ed)]));return{'localPages':_0x332fe6,'onlineMenuList':_0x40689c,'onlinePaths':_0x47df04};}export async function fetchOnlineMenuList(_0xd02477,_0x23a4ad){return getOnlineMenuList(_0xd02477,_0x23a4ad);}