@lovrabet/rabetbase-cli 2.0.2-beta.7 → 2.0.2-beta.8

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 (132) 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/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/doc.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/app.js +1 -1
  19. package/lib/commands/auth.js +1 -1
  20. package/lib/commands/bff/delete.js +1 -1
  21. package/lib/commands/bff/detail.js +1 -1
  22. package/lib/commands/bff/index.js +1 -1
  23. package/lib/commands/bff/list.js +1 -1
  24. package/lib/commands/bff/new.js +1 -1
  25. package/lib/commands/bff/pull.js +1 -1
  26. package/lib/commands/bff/push.js +1 -1
  27. package/lib/commands/bff/status.js +1 -1
  28. package/lib/commands/build.js +1 -1
  29. package/lib/commands/cli-update.js +1 -1
  30. package/lib/commands/codegen/index.js +1 -1
  31. package/lib/commands/codegen/sdk.js +1 -1
  32. package/lib/commands/codegen/sql.js +1 -1
  33. package/lib/commands/common/flags.js +1 -1
  34. package/lib/commands/config.js +1 -1
  35. package/lib/commands/create.js +1 -1
  36. package/lib/commands/dataset/detail.js +1 -1
  37. package/lib/commands/dataset/index.js +1 -1
  38. package/lib/commands/dataset/links.js +1 -1
  39. package/lib/commands/dataset/list.js +1 -1
  40. package/lib/commands/dataset/operations.js +1 -1
  41. package/lib/commands/doctor.js +1 -1
  42. package/lib/commands/init.js +1 -1
  43. package/lib/commands/logout.js +1 -1
  44. package/lib/commands/logs.js +1 -1
  45. package/lib/commands/mcp.js +1 -1
  46. package/lib/commands/menu/index.js +1 -1
  47. package/lib/commands/menu/shared/compare-table.js +1 -1
  48. package/lib/commands/menu/shared/index.js +1 -1
  49. package/lib/commands/menu/shared/inquirer.js +1 -1
  50. package/lib/commands/menu/shared/local-pages.js +1 -1
  51. package/lib/commands/menu/shared/logic.js +1 -1
  52. package/lib/commands/menu/shared/service.js +1 -1
  53. package/lib/commands/menu/shared/sync-core.js +1 -1
  54. package/lib/commands/menu/shared/update-core.js +1 -1
  55. package/lib/commands/menu/shared/valid-url.js +1 -1
  56. package/lib/commands/menu/sync.js +1 -1
  57. package/lib/commands/menu/update.js +1 -1
  58. package/lib/commands/preview.js +1 -1
  59. package/lib/commands/project-upgrade.js +1 -1
  60. package/lib/commands/registry.js +1 -1
  61. package/lib/commands/run.js +1 -1
  62. package/lib/commands/skill.js +1 -1
  63. package/lib/commands/sql/detail.js +1 -1
  64. package/lib/commands/sql/exec.js +1 -1
  65. package/lib/commands/sql/index.js +1 -1
  66. package/lib/commands/sql/list.js +1 -1
  67. package/lib/commands/sql/save.js +1 -1
  68. package/lib/commands/sql/validate.js +1 -1
  69. package/lib/commands/start.js +1 -1
  70. package/lib/config/config-help.js +1 -1
  71. package/lib/config/main.js +1 -1
  72. package/lib/constant/cli.js +1 -1
  73. package/lib/constant/domain.js +1 -1
  74. package/lib/constant/env.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/alias-resolver.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/bff/config.js +1 -1
  79. package/lib/core/bff/file-system.js +1 -1
  80. package/lib/core/bff/hash.js +1 -1
  81. package/lib/core/bff/lock.js +1 -1
  82. package/lib/core/bff/utils.js +1 -1
  83. package/lib/core/db-resolver.js +1 -1
  84. package/lib/core/sql-validator.js +1 -1
  85. package/lib/create-app/enhanced-guided-create.js +1 -1
  86. package/lib/create-app/format-elapsed.js +1 -1
  87. package/lib/create-app/main.js +1 -1
  88. package/lib/create-app/non-interactive.js +1 -1
  89. package/lib/create-app/task-finished.js +1 -1
  90. package/lib/create-app/task-loading.js +1 -1
  91. package/lib/create-app/task-running.js +1 -1
  92. package/lib/create-app/task-time.js +1 -1
  93. package/lib/create-app/use-copy-project-template.js +1 -1
  94. package/lib/create-app/use-format-code.js +1 -1
  95. package/lib/create-app/use-install-dependencies.js +1 -1
  96. package/lib/errors.js +1 -1
  97. package/lib/framework/flags.js +1 -1
  98. package/lib/framework/help.js +1 -1
  99. package/lib/framework/index.js +1 -1
  100. package/lib/framework/output.js +1 -1
  101. package/lib/framework/response.js +1 -1
  102. package/lib/framework/runner.js +1 -1
  103. package/lib/generated/build-info.js +1 -1
  104. package/lib/help.js +1 -1
  105. package/lib/init/main.js +1 -1
  106. package/lib/mcp/McpInstallUI.js +1 -1
  107. package/lib/mcp/claude.js +1 -1
  108. package/lib/mcp/cursor.js +1 -1
  109. package/lib/mcp/main.js +1 -1
  110. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  111. package/lib/mcp/mcp-installer.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-help-trace.js +1 -1
  115. package/lib/telemetry/otel-logger-version.js +1 -1
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  117. package/lib/ui/IDESelector.js +1 -1
  118. package/lib/ui/useIDESelection.js +1 -1
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/cdn-config.js +1 -1
  121. package/lib/utils/check-sdk-version.js +1 -1
  122. package/lib/utils/cli-version-check.js +1 -1
  123. package/lib/utils/config.js +1 -1
  124. package/lib/utils/copy-directory.js +1 -1
  125. package/lib/utils/file-utils.js +1 -1
  126. package/lib/utils/guides-cdn.js +1 -1
  127. package/lib/utils/http-client.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/rules-cdn.js +1 -1
  130. package/lib/utils/sleep.js +1 -1
  131. package/lib/utils/template-replacer.js +1 -1
  132. package/package.json +1 -1
@@ -1 +1 @@
1
- const a30_0x1a4bf4=a30_0x1e06;(function(_0x108eb6,_0x48d275){const _0x2c7718=a30_0x1e06,_0x2ecf6e=_0x108eb6();while(!![]){try{const _0x282e6c=-parseInt(_0x2c7718(0x6f))/0x1*(-parseInt(_0x2c7718(0x7d))/0x2)+-parseInt(_0x2c7718(0x82))/0x3*(parseInt(_0x2c7718(0x72))/0x4)+parseInt(_0x2c7718(0x6b))/0x5+parseInt(_0x2c7718(0x70))/0x6*(parseInt(_0x2c7718(0x6e))/0x7)+parseInt(_0x2c7718(0x7a))/0x8*(-parseInt(_0x2c7718(0x7c))/0x9)+-parseInt(_0x2c7718(0x7b))/0xa*(-parseInt(_0x2c7718(0x6c))/0xb)+-parseInt(_0x2c7718(0x77))/0xc;if(_0x282e6c===_0x48d275)break;else _0x2ecf6e['push'](_0x2ecf6e['shift']());}catch(_0x54272f){_0x2ecf6e['push'](_0x2ecf6e['shift']());}}}(a30_0x3089,0x91097));function a30_0x3089(){const _0x2e3297=['2073512ooiEWU','9435170KIRQsr','9MbhCYA','2FSEShF','code','string','tableName','appCode','150GXpVeh','read','Omit\x20import\x20statements\x20from\x20generated\x20code','1841345dfyFQx','11HyQlMJ','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','35aQRALk','380379YgkTUB','1383516wWKehS','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','57704jelaIk','name','alias','str','operation','15246420aUDkUa','sdk','boolean'];a30_0x3089=function(){return _0x2e3297;};return a30_0x3089();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a30_0x1e06(_0x51b928,_0x1fa8fb){_0x51b928=_0x51b928-0x6b;const _0x308972=a30_0x3089();let _0x1e0684=_0x308972[_0x51b928];return _0x1e0684;}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':'codegen','command':a30_0x1a4bf4(0x78),'description':a30_0x1a4bf4(0x71),'risk':a30_0x1a4bf4(0x83),'flags':[CODE_FLAG_OPTIONAL,{'name':a30_0x1a4bf4(0x74),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':'operation','type':a30_0x1a4bf4(0x7f),'required':!![],'description':a30_0x1a4bf4(0x6d)},{'name':'skip-imports','type':a30_0x1a4bf4(0x79),'description':a30_0x1a4bf4(0x84)}],async 'execute'(_0x5b2bd7){const _0x351e03=a30_0x1a4bf4,{dataset:_0x5d5b09,operation:_0x1b5345}=await getOperationDetail(_0x5b2bd7[_0x351e03(0x81)],_0x5b2bd7[_0x351e03(0x75)](_0x351e03(0x7e)),_0x5b2bd7[_0x351e03(0x75)](_0x351e03(0x76))),_0x493ce5=generateSdkCode(_0x5d5b09,_0x1b5345,{'includeImports':!_0x5b2bd7['bool']('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x5d5b09[_0x351e03(0x73)],'code':_0x5d5b09['code'],'tableName':_0x5d5b09[_0x351e03(0x80)]},'operation':_0x5b2bd7[_0x351e03(0x75)](_0x351e03(0x76)),'code':_0x493ce5}};}};
1
+ const a30_0x37db90=a30_0x46e4;function a30_0x46e4(_0x4b49bf,_0x489a77){_0x4b49bf=_0x4b49bf-0xdd;const _0x3ca41a=a30_0x3ca4();let _0x46e445=_0x3ca41a[_0x4b49bf];return _0x46e445;}(function(_0x2dacb6,_0x48a312){const _0x12b37e=a30_0x46e4,_0xf940a9=_0x2dacb6();while(!![]){try{const _0x545a12=-parseInt(_0x12b37e(0xf3))/0x1*(-parseInt(_0x12b37e(0xde))/0x2)+parseInt(_0x12b37e(0xf4))/0x3+parseInt(_0x12b37e(0xf8))/0x4*(parseInt(_0x12b37e(0xf2))/0x5)+-parseInt(_0x12b37e(0xe6))/0x6+-parseInt(_0x12b37e(0xe2))/0x7*(-parseInt(_0x12b37e(0xdd))/0x8)+parseInt(_0x12b37e(0xed))/0x9*(parseInt(_0x12b37e(0xf0))/0xa)+-parseInt(_0x12b37e(0xee))/0xb*(parseInt(_0x12b37e(0xea))/0xc);if(_0x545a12===_0x48a312)break;else _0xf940a9['push'](_0xf940a9['shift']());}catch(_0x1d35e4){_0xf940a9['push'](_0xf940a9['shift']());}}}(a30_0x3ca4,0x41ce4));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':a30_0x37db90(0xef),'command':a30_0x37db90(0xe8),'description':a30_0x37db90(0xe5),'risk':a30_0x37db90(0xf7),'flags':[CODE_FLAG_OPTIONAL,{'name':a30_0x37db90(0xe0),'type':a30_0x37db90(0xec),'description':a30_0x37db90(0xf6)},{'name':'operation','type':a30_0x37db90(0xec),'required':!![],'description':a30_0x37db90(0xf1)},{'name':'skip-imports','type':a30_0x37db90(0xdf),'description':a30_0x37db90(0xf5)}],async 'execute'(_0x1eced3){const _0x1c277a=a30_0x37db90,{dataset:_0xe12874,operation:_0x1556a7}=await getOperationDetail(_0x1eced3['appCode'],_0x1eced3[_0x1c277a(0xe3)](_0x1c277a(0xe9)),_0x1eced3['str'](_0x1c277a(0xe4))),_0x3023a1=generateSdkCode(_0xe12874,_0x1556a7,{'includeImports':!_0x1eced3[_0x1c277a(0xe7)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0xe12874[_0x1c277a(0xeb)],'code':_0xe12874[_0x1c277a(0xe9)],'tableName':_0xe12874[_0x1c277a(0xe1)]},'operation':_0x1eced3[_0x1c277a(0xe3)]('operation'),'code':_0x3023a1}};}};function a30_0x3ca4(){const _0x2f9fbe=['sdk','code','108njMQlD','name','string','6309mRrFyT','555511sXOIRV','codegen','2950poLDbr','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','860aKrwHT','21FwOsJD','946710VmIcNx','Omit\x20import\x20statements\x20from\x20generated\x20code','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','read','5752QuElmS','32IABUrY','31134Gujuiv','boolean','alias','tableName','140819QRGdEZ','str','operation','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','2718162kCEroW','bool'];a30_0x3ca4=function(){return _0x2f9fbe;};return a30_0x3ca4();}
@@ -1 +1 @@
1
- const a31_0x7968b=a31_0x1979;(function(_0x3973b9,_0x3bb0fb){const _0xff6236=a31_0x1979,_0x69be6e=_0x3973b9();while(!![]){try{const _0x1370ff=parseInt(_0xff6236(0x1bd))/0x1*(-parseInt(_0xff6236(0x1bf))/0x2)+parseInt(_0xff6236(0x1c4))/0x3*(-parseInt(_0xff6236(0x1cd))/0x4)+parseInt(_0xff6236(0x1ba))/0x5*(-parseInt(_0xff6236(0x1bb))/0x6)+parseInt(_0xff6236(0x1c8))/0x7*(parseInt(_0xff6236(0x1c2))/0x8)+-parseInt(_0xff6236(0x1bc))/0x9*(parseInt(_0xff6236(0x1c1))/0xa)+-parseInt(_0xff6236(0x1cc))/0xb*(parseInt(_0xff6236(0x1ca))/0xc)+parseInt(_0xff6236(0x1cb))/0xd;if(_0x1370ff===_0x3bb0fb)break;else _0x69be6e['push'](_0x69be6e['shift']());}catch(_0x43e116){_0x69be6e['push'](_0x69be6e['shift']());}}}(a31_0x1bf8,0x7c1bd));function a31_0x1bf8(){const _0x182229=['no-imports','sqlCode','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sdk','5KSUsrE','671334WXYhaR','11133EqOFAx','5hBcZoA','boolean','177314dogqDO','str','7090hQLegX','30808SQKHcf','string','105MPLKxQ','read','appCode','target','595QcypzT','bool','3107076jAMRkH','33442877CimBdn','11mvERAZ','80044oAenbI','codegen','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query'];a31_0x1bf8=function(){return _0x182229;};return a31_0x1bf8();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';function a31_0x1979(_0x20b449,_0x3f95df){_0x20b449=_0x20b449-0x1b8;const _0x1bf824=a31_0x1bf8();let _0x197954=_0x1bf824[_0x20b449];return _0x197954;}export const codegenSql={'service':a31_0x7968b(0x1ce),'command':'sql','description':a31_0x7968b(0x1cf),'risk':a31_0x7968b(0x1c5),'flags':[SQLCODE_FLAG,{'name':'target','type':a31_0x7968b(0x1c3),'description':a31_0x7968b(0x1b8),'default':a31_0x7968b(0x1b9),'enum':[a31_0x7968b(0x1b9),'bff']},{'name':a31_0x7968b(0x1d0),'type':a31_0x7968b(0x1be),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x1290f7){const _0x4c0b6c=a31_0x7968b,_0x5870d1=await getSqlQueryInfo(_0x1290f7[_0x4c0b6c(0x1c6)],_0x1290f7[_0x4c0b6c(0x1c0)]('sqlcode')),_0x2fe5c3=_0x1290f7[_0x4c0b6c(0x1c0)](_0x4c0b6c(0x1c7))||_0x4c0b6c(0x1b9),_0x3bf4e0=generateSqlCodeTemplate(_0x5870d1,{'target':_0x2fe5c3,'includeImports':!_0x1290f7[_0x4c0b6c(0x1c9)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x5870d1[_0x4c0b6c(0x1d1)],'sqlName':_0x5870d1['sqlName'],'target':_0x2fe5c3,'code':_0x3bf4e0}};}};
1
+ const a31_0x424e71=a31_0x1cd0;function a31_0x39d4(){const _0x49ee78=['23627529DNNbtJ','21572BFPWUJ','sqlName','boolean','appCode','Omit\x20import\x20statements\x20from\x20generated\x20code','codegen','16caDItS','2986180sJQaSW','target','no-imports','sqlCode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','2895685dLLMml','1704249dzZTrc','7jNCyeB','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sql','str','sdk','2478510wItsQG','read','bool','sqlcode','9762784XICAUV'];a31_0x39d4=function(){return _0x49ee78;};return a31_0x39d4();}(function(_0x52dca9,_0x4bfe2){const _0x4b29ef=a31_0x1cd0,_0x4f2ca1=_0x52dca9();while(!![]){try{const _0x496f8d=-parseInt(_0x4b29ef(0x1d6))/0x1*(-parseInt(_0x4b29ef(0x1dc))/0x2)+-parseInt(_0x4b29ef(0x1ca))/0x3+parseInt(_0x4b29ef(0x1dd))/0x4+-parseInt(_0x4b29ef(0x1c9))/0x5+-parseInt(_0x4b29ef(0x1d0))/0x6+-parseInt(_0x4b29ef(0x1cb))/0x7*(parseInt(_0x4b29ef(0x1d4))/0x8)+parseInt(_0x4b29ef(0x1d5))/0x9;if(_0x496f8d===_0x4bfe2)break;else _0x4f2ca1['push'](_0x4f2ca1['shift']());}catch(_0x38f011){_0x4f2ca1['push'](_0x4f2ca1['shift']());}}}(a31_0x39d4,0xba765));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';function a31_0x1cd0(_0x3ca368,_0x5c25c6){_0x3ca368=_0x3ca368-0x1c7;const _0x39d478=a31_0x39d4();let _0x1cd03b=_0x39d478[_0x3ca368];return _0x1cd03b;}export const codegenSql={'service':a31_0x424e71(0x1db),'command':a31_0x424e71(0x1cd),'description':a31_0x424e71(0x1c8),'risk':a31_0x424e71(0x1d1),'flags':[SQLCODE_FLAG,{'name':a31_0x424e71(0x1de),'type':'string','description':a31_0x424e71(0x1cc),'default':'sdk','enum':[a31_0x424e71(0x1cf),'bff']},{'name':a31_0x424e71(0x1df),'type':a31_0x424e71(0x1d8),'description':a31_0x424e71(0x1da)}],async 'execute'(_0x3d0d4f){const _0x37fa4d=a31_0x424e71,_0x4de2eb=await getSqlQueryInfo(_0x3d0d4f[_0x37fa4d(0x1d9)],_0x3d0d4f['str'](_0x37fa4d(0x1d3))),_0x5af427=_0x3d0d4f[_0x37fa4d(0x1ce)]('target')||_0x37fa4d(0x1cf),_0x356717=generateSqlCodeTemplate(_0x4de2eb,{'target':_0x5af427,'includeImports':!_0x3d0d4f[_0x37fa4d(0x1d2)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x4de2eb[_0x37fa4d(0x1c7)],'sqlName':_0x4de2eb[_0x37fa4d(0x1d7)],'target':_0x5af427,'code':_0x356717}};}};
@@ -1 +1 @@
1
- const a32_0xd4c3e2=a32_0x3f19;(function(_0x57f4b7,_0x382a47){const _0x10d563=a32_0x3f19,_0x30aca0=_0x57f4b7();while(!![]){try{const _0x29a1b8=-parseInt(_0x10d563(0x1bd))/0x1*(-parseInt(_0x10d563(0x1ba))/0x2)+parseInt(_0x10d563(0x1c2))/0x3*(-parseInt(_0x10d563(0x1bf))/0x4)+parseInt(_0x10d563(0x1b5))/0x5*(-parseInt(_0x10d563(0x1c4))/0x6)+-parseInt(_0x10d563(0x1bc))/0x7+-parseInt(_0x10d563(0x1b6))/0x8*(parseInt(_0x10d563(0x1c0))/0x9)+parseInt(_0x10d563(0x1b4))/0xa*(parseInt(_0x10d563(0x1b7))/0xb)+parseInt(_0x10d563(0x1b8))/0xc;if(_0x29a1b8===_0x382a47)break;else _0x30aca0['push'](_0x30aca0['shift']());}catch(_0x105366){_0x30aca0['push'](_0x30aca0['shift']());}}}(a32_0x505e,0x5f4a1));export const CODE_FLAG={'name':a32_0xd4c3e2(0x1b9),'type':a32_0xd4c3e2(0x1b3),'required':!![],'description':a32_0xd4c3e2(0x1c1),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a32_0xd4c3e2(0x1b2)}};function a32_0x505e(){const _0x3cc6e0=['sqlcode','3018VXdNrr','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','string','249350WsnnSB','1360huJujQ','8UMsPCD','220sIMzBR','14043072HuhGOu','code','425234jVZPeu','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','3066791pjdmqI','1QdNoxS','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','8PHTHjx','2119329YCLzHk','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1021287xqOfCA'];a32_0x505e=function(){return _0x3cc6e0;};return a32_0x505e();}export const CODE_FLAG_OPTIONAL={'name':a32_0xd4c3e2(0x1b9),'type':'string','required':![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a32_0xd4c3e2(0x1b2)}};function a32_0x3f19(_0x34c2e0,_0x32bf45){_0x34c2e0=_0x34c2e0-0x1b2;const _0x505e40=a32_0x505e();let _0x3f1926=_0x505e40[_0x34c2e0];return _0x3f1926;}export const SQLCODE_FLAG={'name':a32_0xd4c3e2(0x1c3),'type':a32_0xd4c3e2(0x1b3),'required':!![],'description':a32_0xd4c3e2(0x1be),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a32_0xd4c3e2(0x1bb)}};export const SQLCODE_FLAG_OPTIONAL={'name':a32_0xd4c3e2(0x1c3),'type':'string','required':![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};
1
+ function a32_0x3018(_0x2076aa,_0x362ff9){_0x2076aa=_0x2076aa-0xaa;const _0x2d6291=a32_0x2d62();let _0x3018ee=_0x2d6291[_0x2076aa];return _0x3018ee;}function a32_0x2d62(){const _0x3f5280=['202640KlXNkK','175CYNDKf','27DSXOeR','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','3693045JYTULU','1354430qToRtN','2432436bBJnNL','sqlcode','1441884ztCGMM','15019917UrMPRn','5QzTtaM','code','26UTAOes','96878UOxFYk','Dataset\x20code\x20(32-char\x20hex\x20UUID)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','string','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)'];a32_0x2d62=function(){return _0x3f5280;};return a32_0x2d62();}const a32_0x515fdb=a32_0x3018;(function(_0x11bce3,_0x325be4){const _0x16f642=a32_0x3018,_0x2a6592=_0x11bce3();while(!![]){try{const _0x69c2b4=-parseInt(_0x16f642(0xad))/0x1*(parseInt(_0x16f642(0xac))/0x2)+parseInt(_0x16f642(0xb6))/0x3+parseInt(_0x16f642(0xba))/0x4*(-parseInt(_0x16f642(0xaa))/0x5)+-parseInt(_0x16f642(0xb8))/0x6+parseInt(_0x16f642(0xb3))/0x7*(parseInt(_0x16f642(0xb2))/0x8)+parseInt(_0x16f642(0xb4))/0x9*(-parseInt(_0x16f642(0xb7))/0xa)+parseInt(_0x16f642(0xbb))/0xb;if(_0x69c2b4===_0x325be4)break;else _0x2a6592['push'](_0x2a6592['shift']());}catch(_0x37e65e){_0x2a6592['push'](_0x2a6592['shift']());}}}(a32_0x2d62,0xc2d8c));export const CODE_FLAG={'name':'code','type':a32_0x515fdb(0xb0),'required':!![],'description':a32_0x515fdb(0xae),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a32_0x515fdb(0xb5)}};export const CODE_FLAG_OPTIONAL={'name':a32_0x515fdb(0xab),'type':'string','required':![],'description':a32_0x515fdb(0xae),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a32_0x515fdb(0xb5)}};export const SQLCODE_FLAG={'name':a32_0x515fdb(0xb9),'type':a32_0x515fdb(0xb0),'required':!![],'description':a32_0x515fdb(0xb1),'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':'sqlcode','type':a32_0x515fdb(0xb0),'required':![],'description':a32_0x515fdb(0xb1),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a32_0x515fdb(0xaf)}};
@@ -1 +1 @@
1
- const a33_0x599e01=a33_0x1654;function a33_0x3163(){const _0x16d65c=['3020760vKQxEW','1181452PgBQAq','3CTRDby','config','Manage\x20project\x20configuration','537557pyoTlk','4862176hVCsOD','539096xRUwQB','10721754tOEVOg','3891013QFZlbd','6UtCRhz'];a33_0x3163=function(){return _0x16d65c;};return a33_0x3163();}(function(_0x2759d5,_0x26bb2a){const _0x1522e2=a33_0x1654,_0x5d660f=_0x2759d5();while(!![]){try{const _0x49d26f=parseInt(_0x1522e2(0x10c))/0x1+parseInt(_0x1522e2(0x103))/0x2+-parseInt(_0x1522e2(0x109))/0x3*(-parseInt(_0x1522e2(0x108))/0x4)+-parseInt(_0x1522e2(0x107))/0x5+parseInt(_0x1522e2(0x106))/0x6*(-parseInt(_0x1522e2(0x105))/0x7)+-parseInt(_0x1522e2(0x102))/0x8+parseInt(_0x1522e2(0x104))/0x9;if(_0x49d26f===_0x26bb2a)break;else _0x5d660f['push'](_0x5d660f['shift']());}catch(_0x4bd694){_0x5d660f['push'](_0x5d660f['shift']());}}}(a33_0x3163,0x806a7));function a33_0x1654(_0x12142c,_0x1a30f4){_0x12142c=_0x12142c-0x102;const _0x316358=a33_0x3163();let _0x165487=_0x316358[_0x12142c];return _0x165487;}import{jsx as a33_0x186c49}from'react/jsx-runtime';import{render}from'ink';import{Config}from'../config/main.js';export const configCommand={'name':a33_0x599e01(0x10a),'description':a33_0x599e01(0x10b),async 'run'(_0x56b71d,_0xd90aef,_0x18ce91){const _0x2b7a18={'input':['config',..._0xd90aef],'flags':_0x18ce91,'pkg':{},'help':'','updateNotifier':undefined,'showHelp':()=>{},'showVersion':()=>{}};render(a33_0x186c49(Config,{'cli':_0x2b7a18}));}};
1
+ const a33_0x55efc0=a33_0x2760;(function(_0x299af9,_0x3d3bef){const _0x13d70a=a33_0x2760,_0x12c001=_0x299af9();while(!![]){try{const _0x26fa3e=-parseInt(_0x13d70a(0x19b))/0x1+-parseInt(_0x13d70a(0x1a3))/0x2*(-parseInt(_0x13d70a(0x19e))/0x3)+-parseInt(_0x13d70a(0x1a2))/0x4+parseInt(_0x13d70a(0x19a))/0x5+parseInt(_0x13d70a(0x19c))/0x6+parseInt(_0x13d70a(0x19d))/0x7+-parseInt(_0x13d70a(0x1a0))/0x8;if(_0x26fa3e===_0x3d3bef)break;else _0x12c001['push'](_0x12c001['shift']());}catch(_0x4392d9){_0x12c001['push'](_0x12c001['shift']());}}}(a33_0x1c0f,0x3c01b));import{jsx as a33_0x33887f}from'react/jsx-runtime';import{render}from'ink';function a33_0x1c0f(){const _0x2aaede=['6045792bsXafu','Manage\x20project\x20configuration','687524qLxslq','186094rapvlB','752770FmThZI','331463eYNsjc','2553552QPiRxk','3244318TwYOQy','15LxsNVc','config'];a33_0x1c0f=function(){return _0x2aaede;};return a33_0x1c0f();}import{Config}from'../config/main.js';function a33_0x2760(_0x19dd74,_0x2be23b){_0x19dd74=_0x19dd74-0x19a;const _0x1c0f24=a33_0x1c0f();let _0x276073=_0x1c0f24[_0x19dd74];return _0x276073;}export const configCommand={'name':'config','description':a33_0x55efc0(0x1a1),async 'run'(_0x46388b,_0x1ac60f,_0x3ab5b2){const _0x1e9d6c=a33_0x55efc0,_0x1ecf07={'input':[_0x1e9d6c(0x19f),..._0x1ac60f],'flags':_0x3ab5b2,'pkg':{},'help':'','updateNotifier':undefined,'showHelp':()=>{},'showVersion':()=>{}};render(a33_0x33887f(Config,{'cli':_0x1ecf07}));}};
@@ -1 +1 @@
1
- const a34_0x28c6f2=a34_0x2564;(function(_0x2d0c0c,_0x4abfdd){const _0x1853d6=a34_0x2564,_0x1dae39=_0x2d0c0c();while(!![]){try{const _0x56db0b=parseInt(_0x1853d6(0x82))/0x1*(parseInt(_0x1853d6(0x7f))/0x2)+-parseInt(_0x1853d6(0x7e))/0x3*(-parseInt(_0x1853d6(0x80))/0x4)+parseInt(_0x1853d6(0x84))/0x5+parseInt(_0x1853d6(0x8b))/0x6+-parseInt(_0x1853d6(0x89))/0x7*(parseInt(_0x1853d6(0x87))/0x8)+parseInt(_0x1853d6(0x81))/0x9+-parseInt(_0x1853d6(0x7b))/0xa;if(_0x56db0b===_0x4abfdd)break;else _0x1dae39['push'](_0x1dae39['shift']());}catch(_0x3bfae5){_0x1dae39['push'](_0x1dae39['shift']());}}}(a34_0x1bd3,0xa1c38));import{jsx as a34_0x4d179b}from'react/jsx-runtime';function a34_0x2564(_0x473b80,_0x3c4689){_0x473b80=_0x473b80-0x7a;const _0x1bd346=a34_0x1bd3();let _0x2564d8=_0x1bd346[_0x473b80];return _0x2564d8;}import{render}from'ink';import{CreateApp}from'../create-app/main.js';function a34_0x1bd3(){const _0x20ac1e=['98985ixlMdr','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','nonInteractive','146872ilkHyt','cookie','119Qvhusf','create','5197326QkLoOx','../create-app/non-interactive.js','info','23027730bJuSjY','logger','Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci','6rcsbIZ','214jgNCAq','17224QjYiGt','10620387XJBZhg','11241PgQeuD','Create\x20a\x20new\x20project'];a34_0x1bd3=function(){return _0x20ac1e;};return a34_0x1bd3();}import{CliErrors}from'../errors.js';export const createCommand={'name':'create','description':a34_0x28c6f2(0x83),async 'run'(_0x4fff0e,_0x4b52db,_0x23eedb){const _0x28ce11=a34_0x28c6f2,_0x241187=_0x4b52db[0x0]?.['trim'](),_0x508d86=_0x23eedb['env'];if(_0x4fff0e['nonInteractive']&&_0x241187){_0x4fff0e[_0x28ce11(0x7c)][_0x28ce11(0x7a)](_0x28ce11(0x8a),'非交互模式创建项目:\x20'+_0x241187);const {createProjectNonInteractive:_0x2991ed}=await import(_0x28ce11(0x8c));await _0x2991ed(_0x241187,_0x508d86);}else{if(_0x4fff0e[_0x28ce11(0x86)]&&!_0x241187)throw CliErrors['validation'](_0x28ce11(0x85),_0x28ce11(0x7d));else render(a34_0x4d179b(CreateApp,{'projectCode':_0x241187,'env':_0x508d86,'cookie':_0x4fff0e['auth'][_0x28ce11(0x88)]}));}}};
1
+ const a34_0x215dc3=a34_0x2fd2;(function(_0x2978bc,_0x2d82a3){const _0x262cc8=a34_0x2fd2,_0x362b57=_0x2978bc();while(!![]){try{const _0x481054=-parseInt(_0x262cc8(0x1f8))/0x1*(parseInt(_0x262cc8(0x1fd))/0x2)+-parseInt(_0x262cc8(0x1eb))/0x3*(-parseInt(_0x262cc8(0x1f4))/0x4)+-parseInt(_0x262cc8(0x1ef))/0x5+parseInt(_0x262cc8(0x1f0))/0x6*(-parseInt(_0x262cc8(0x1f9))/0x7)+-parseInt(_0x262cc8(0x1ff))/0x8*(-parseInt(_0x262cc8(0x1ee))/0x9)+parseInt(_0x262cc8(0x1fe))/0xa+parseInt(_0x262cc8(0x1f5))/0xb*(parseInt(_0x262cc8(0x1e9))/0xc);if(_0x481054===_0x2d82a3)break;else _0x362b57['push'](_0x362b57['shift']());}catch(_0x38e8dd){_0x362b57['push'](_0x362b57['shift']());}}}(a34_0x3a24,0x80ec6));import{jsx as a34_0x1e1d11}from'react/jsx-runtime';function a34_0x3a24(){const _0x2da4a0=['446rEwYsI','5561230caMYCa','110648XRqhPm','auth','180qyfhlz','Create\x20a\x20new\x20project','201UpyKak','cookie','nonInteractive','81HDwnEW','1645505xpXQPX','12Soguit','非交互模式创建项目:\x20','info','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','22476UHrpAW','282975pCbXTb','logger','validation','1699HHsCVl','724157HbcdEo','trim','create','env'];a34_0x3a24=function(){return _0x2da4a0;};return a34_0x3a24();}function a34_0x2fd2(_0x210ce3,_0x267218){_0x210ce3=_0x210ce3-0x1e9;const _0x3a245a=a34_0x3a24();let _0x2fd224=_0x3a245a[_0x210ce3];return _0x2fd224;}import{render}from'ink';import{CreateApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';export const createCommand={'name':'create','description':a34_0x215dc3(0x1ea),async 'run'(_0x115674,_0x44b745,_0x1b6fc3){const _0x1f0d8b=a34_0x215dc3,_0x278622=_0x44b745[0x0]?.[_0x1f0d8b(0x1fa)](),_0x235165=_0x1b6fc3[_0x1f0d8b(0x1fc)];if(_0x115674['nonInteractive']&&_0x278622){_0x115674[_0x1f0d8b(0x1f6)][_0x1f0d8b(0x1f2)](_0x1f0d8b(0x1fb),_0x1f0d8b(0x1f1)+_0x278622);const {createProjectNonInteractive:_0x144a10}=await import('../create-app/non-interactive.js');await _0x144a10(_0x278622,_0x235165);}else{if(_0x115674[_0x1f0d8b(0x1ed)]&&!_0x278622)throw CliErrors[_0x1f0d8b(0x1f7)](_0x1f0d8b(0x1f3),'Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci');else render(a34_0x1e1d11(CreateApp,{'projectCode':_0x278622,'env':_0x235165,'cookie':_0x115674[_0x1f0d8b(0x200)][_0x1f0d8b(0x1ec)]}));}}};
@@ -1 +1 @@
1
- const a35_0x20f886=a35_0x830a;(function(_0x376c64,_0x1bbbec){const _0x5d0775=a35_0x830a,_0x3372a9=_0x376c64();while(!![]){try{const _0x582ece=parseInt(_0x5d0775(0x179))/0x1+-parseInt(_0x5d0775(0x15d))/0x2+-parseInt(_0x5d0775(0x150))/0x3+-parseInt(_0x5d0775(0x154))/0x4+parseInt(_0x5d0775(0x178))/0x5+parseInt(_0x5d0775(0x169))/0x6*(-parseInt(_0x5d0775(0x174))/0x7)+-parseInt(_0x5d0775(0x16f))/0x8;if(_0x582ece===_0x1bbbec)break;else _0x3372a9['push'](_0x3372a9['shift']());}catch(_0x3a1f8f){_0x3372a9['push'](_0x3372a9['shift']());}}}(a35_0x5704,0xe62a2));import{getDatasetDetail}from'../../core/api-client.js';function a35_0x5704(){const _0x322431=['pkField','1198524jaYupQ','tableName','string','modelId','fields','dbType','description','datasetKey','displayName','1571752JLdSPL','source','dbtableConfig','code','entries','name','deleted','read','length','isArray','indexes','parse','1050nrunSb','verbose','path','toTableName','type','map','2594640Kqixme','tableComment','detail','dataType','dataset','4823dWWyRE','relations','alias','boolean','9213395WgcLAw','668418wQCPFX','toFieldLabel','options','str','bool','toField','extend','operations','method','toDatasetCode','object','filter','113793YUUznm','modelCode','doType'];a35_0x5704=function(){return _0x322431;};return a35_0x5704();}import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x299fa5){const _0x8f6859=a35_0x830a;if(_0x299fa5[_0x8f6859(0x163)])return null;const _0x3e5ef9=Boolean(_0x299fa5['displayName']!==undefined||_0x299fa5[_0x8f6859(0x152)]!==undefined);let _0x53cd8e={};if(!_0x3e5ef9&&typeof _0x299fa5['extend']==='string')try{_0x53cd8e=JSON[_0x8f6859(0x168)](_0x299fa5[_0x8f6859(0x17f)]);}catch{}const _0x32d6d2=_0x3e5ef9?_0x299fa5['name']:_0x299fa5[_0x8f6859(0x160)],_0x138576=_0x3e5ef9?_0x299fa5[_0x8f6859(0x15c)]:_0x299fa5['name'],_0x20e68e=_0x3e5ef9?_0x299fa5[_0x8f6859(0x152)]:_0x299fa5[_0x8f6859(0x16d)]||_0x299fa5[_0x8f6859(0x172)],_0x3ff9c5=_0x3e5ef9?_0x299fa5[_0x8f6859(0x153)]===!![]:_0x53cd8e[_0x8f6859(0x153)]===!![],_0x9dff00=_0x3e5ef9?_0x299fa5['required']===!![]:_0x53cd8e['required']===!![],_0x459eb2=_0x3e5ef9?_0x299fa5[_0x8f6859(0x17b)]??null:_0x53cd8e[_0x8f6859(0x17b)]??null,_0x392aef={'name':_0x32d6d2,'displayName':_0x138576||_0x32d6d2,'type':_0x20e68e,'dbType':_0x299fa5[_0x8f6859(0x159)],'pk':_0x3ff9c5,'required':_0x9dff00,'description':_0x299fa5[_0x8f6859(0x15a)]||undefined};return Array[_0x8f6859(0x166)](_0x459eb2)&&_0x459eb2[_0x8f6859(0x165)]>0x0&&(_0x392aef['options']=_0x459eb2),_0x392aef;}function a35_0x830a(_0x1dae33,_0x293889){_0x1dae33=_0x1dae33-0x14b;const _0x57048b=a35_0x5704();let _0x830af1=_0x57048b[_0x1dae33];return _0x830af1;}export const datasetDetail={'service':a35_0x20f886(0x173),'command':a35_0x20f886(0x171),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a35_0x20f886(0x164),'flags':[CODE_FLAG,{'name':a35_0x20f886(0x176),'type':a35_0x20f886(0x156),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'},{'name':a35_0x20f886(0x16a),'type':a35_0x20f886(0x177),'description':'Return\x20full\x20raw\x20detail\x20object'}],async 'execute'(_0x2a9f4b){const _0x41e76b=a35_0x20f886,_0x4e4568=await getDatasetDetail(_0x2a9f4b[_0x41e76b(0x17c)](_0x41e76b(0x160))),_0x59f9a7=_0x2a9f4b[_0x41e76b(0x17d)](_0x41e76b(0x16a));if(_0x59f9a7)return{'ok':!![],'data':_0x4e4568};const _0x4d0a8a=Array[_0x41e76b(0x166)](_0x4e4568[_0x41e76b(0x158)])?_0x4e4568[_0x41e76b(0x158)]:Array['isArray'](_0x4e4568['properties'])?_0x4e4568['properties']:[],_0x58e447=_0x4d0a8a[_0x41e76b(0x16e)](_0x1747cf=>normalizeField(_0x1747cf))[_0x41e76b(0x14f)](_0x5c1b0e=>_0x5c1b0e!==null),_0x17c128=_0x4e4568[_0x41e76b(0x14b)]??{},_0x5502f8=[];for(const [_0xec30fc,_0x324502]of Object[_0x41e76b(0x161)](_0x17c128)){if(_0x324502&&typeof _0x324502===_0x41e76b(0x14e)){const _0x4107f7=_0x324502;_0x4107f7[_0x41e76b(0x14c)]&&_0x4107f7[_0x41e76b(0x16b)]&&_0x5502f8['push']({'name':_0xec30fc,'method':_0x4107f7[_0x41e76b(0x14c)],'path':_0x4107f7['path']});}}const _0x4ef5cf=_0x4e4568[_0x41e76b(0x15f)]??{},_0x4eafb4=_0x4e4568[_0x41e76b(0x173)]??{};return{'ok':!![],'data':{'id':_0x4e4568[_0x41e76b(0x157)]??_0x4e4568['id'],'name':_0x4e4568[_0x41e76b(0x162)],'code':_0x4e4568[_0x41e76b(0x151)]||_0x4e4568['code'],'description':_0x4e4568[_0x41e76b(0x15a)]||_0x4eafb4[_0x41e76b(0x170)]||undefined,'source':_0x4e4568[_0x41e76b(0x15e)]||_0x4eafb4['sourceType'],'table':_0x4ef5cf[_0x41e76b(0x155)]||_0x4eafb4[_0x41e76b(0x155)],'datasetKey':_0x4ef5cf[_0x41e76b(0x15b)],'pk':_0x4ef5cf[_0x41e76b(0x153)],'fields':_0x58e447,'operations':_0x5502f8,'indexes':Array['isArray'](_0x4eafb4[_0x41e76b(0x167)])?_0x4eafb4[_0x41e76b(0x167)]:[],'relations':Array[_0x41e76b(0x166)](_0x4e4568[_0x41e76b(0x175)])?_0x4e4568[_0x41e76b(0x175)]['map'](_0x440e96=>({'fromField':_0x440e96['fromField'],'toDataset':_0x440e96['toDatasetName'],'toCode':_0x440e96[_0x41e76b(0x14d)],'toTable':_0x440e96[_0x41e76b(0x16c)],'toField':_0x440e96[_0x41e76b(0x17e)],'labelField':_0x440e96[_0x41e76b(0x17a)]||undefined})):[],'stats':{'fieldCount':_0x58e447[_0x41e76b(0x165)],'operationCount':_0x5502f8['length']}}};}};
1
+ const a35_0x4e7486=a35_0x37eb;function a35_0x37eb(_0x25073f,_0x59ae4d){_0x25073f=_0x25073f-0x14e;const _0x2366a6=a35_0x2366();let _0x37eb73=_0x2366a6[_0x25073f];return _0x37eb73;}(function(_0x3bc237,_0x3b255a){const _0x28ac87=a35_0x37eb,_0x509be8=_0x3bc237();while(!![]){try{const _0x136a71=parseInt(_0x28ac87(0x157))/0x1*(parseInt(_0x28ac87(0x17e))/0x2)+parseInt(_0x28ac87(0x16c))/0x3*(parseInt(_0x28ac87(0x158))/0x4)+parseInt(_0x28ac87(0x180))/0x5+-parseInt(_0x28ac87(0x186))/0x6+parseInt(_0x28ac87(0x178))/0x7+-parseInt(_0x28ac87(0x17d))/0x8*(-parseInt(_0x28ac87(0x151))/0x9)+-parseInt(_0x28ac87(0x173))/0xa;if(_0x136a71===_0x3b255a)break;else _0x509be8['push'](_0x509be8['shift']());}catch(_0x701dfb){_0x509be8['push'](_0x509be8['shift']());}}}(a35_0x2366,0x1f1d9));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x4be2d2){const _0x18585b=a35_0x37eb;if(_0x4be2d2[_0x18585b(0x187)])return null;const _0x305afa=Boolean(_0x4be2d2['displayName']!==undefined||_0x4be2d2[_0x18585b(0x15e)]!==undefined);let _0x84fbf1={};if(!_0x305afa&&typeof _0x4be2d2[_0x18585b(0x160)]===_0x18585b(0x16b))try{_0x84fbf1=JSON[_0x18585b(0x175)](_0x4be2d2[_0x18585b(0x160)]);}catch{}const _0x3e8fac=_0x305afa?_0x4be2d2[_0x18585b(0x174)]:_0x4be2d2[_0x18585b(0x14e)],_0x2d050d=_0x305afa?_0x4be2d2[_0x18585b(0x150)]:_0x4be2d2[_0x18585b(0x174)],_0x2adae2=_0x305afa?_0x4be2d2[_0x18585b(0x15e)]:_0x4be2d2[_0x18585b(0x16d)]||_0x4be2d2[_0x18585b(0x15c)],_0x5389da=_0x305afa?_0x4be2d2[_0x18585b(0x17b)]===!![]:_0x84fbf1[_0x18585b(0x17b)]===!![],_0x2fa82a=_0x305afa?_0x4be2d2[_0x18585b(0x16f)]===!![]:_0x84fbf1[_0x18585b(0x16f)]===!![],_0x18425b=_0x305afa?_0x4be2d2[_0x18585b(0x172)]??null:_0x84fbf1[_0x18585b(0x172)]??null,_0x151b3f={'name':_0x3e8fac,'displayName':_0x2d050d||_0x3e8fac,'type':_0x2adae2,'dbType':_0x4be2d2[_0x18585b(0x16a)],'pk':_0x5389da,'required':_0x2fa82a,'description':_0x4be2d2[_0x18585b(0x182)]||undefined};return Array[_0x18585b(0x166)](_0x18425b)&&_0x18425b['length']>0x0&&(_0x151b3f[_0x18585b(0x172)]=_0x18425b),_0x151b3f;}function a35_0x2366(){const _0x1fe4d5=['properties','1195572YxyxwE','toDatasetCode','fields','pkField','datasetKey','8tXUeYi','26bykIpn','fromField','268900frnrjR','detail','description','indexes','path','toFieldLabel','279240KmIhuA','deleted','verbose','code','toDatasetName','displayName','559377YOeaVr','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','map','entries','push','method','8429kSORJb','16RQQKUQ','dataset','object','boolean','dataType','tableComment','doType','operations','extend','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','sourceType','source','bool','filter','isArray','tableName','Return\x20full\x20raw\x20detail\x20object','modelId','dbType','string','188184zmFCXo','type','length','required','relations','alias','options','4732290LszLxt','name','parse','read'];a35_0x2366=function(){return _0x1fe4d5;};return a35_0x2366();}export const datasetDetail={'service':a35_0x4e7486(0x159),'command':a35_0x4e7486(0x181),'description':a35_0x4e7486(0x152),'risk':a35_0x4e7486(0x176),'flags':[CODE_FLAG,{'name':a35_0x4e7486(0x171),'type':a35_0x4e7486(0x16b),'description':a35_0x4e7486(0x161)},{'name':a35_0x4e7486(0x188),'type':a35_0x4e7486(0x15b),'description':a35_0x4e7486(0x168)}],async 'execute'(_0x4e9550){const _0x3060a3=a35_0x4e7486,_0x4f31c1=await getDatasetDetail(_0x4e9550['str'](_0x3060a3(0x14e))),_0x25efb1=_0x4e9550[_0x3060a3(0x164)](_0x3060a3(0x188));if(_0x25efb1)return{'ok':!![],'data':_0x4f31c1};const _0x5f08cb=Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x17a)])?_0x4f31c1['fields']:Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x177)])?_0x4f31c1[_0x3060a3(0x177)]:[],_0x5dc95f=_0x5f08cb['map'](_0x3e5ce6=>normalizeField(_0x3e5ce6))[_0x3060a3(0x165)](_0x1f2ba1=>_0x1f2ba1!==null),_0x27c409=_0x4f31c1[_0x3060a3(0x15f)]??{},_0x36dc9c=[];for(const [_0x5d1b7b,_0x1b8bab]of Object[_0x3060a3(0x154)](_0x27c409)){if(_0x1b8bab&&typeof _0x1b8bab===_0x3060a3(0x15a)){const _0x450ceb=_0x1b8bab;_0x450ceb[_0x3060a3(0x156)]&&_0x450ceb['path']&&_0x36dc9c[_0x3060a3(0x155)]({'name':_0x5d1b7b,'method':_0x450ceb[_0x3060a3(0x156)],'path':_0x450ceb[_0x3060a3(0x184)]});}}const _0x25fc80=_0x4f31c1['dbtableConfig']??{},_0x393bf3=_0x4f31c1[_0x3060a3(0x159)]??{};return{'ok':!![],'data':{'id':_0x4f31c1[_0x3060a3(0x169)]??_0x4f31c1['id'],'name':_0x4f31c1[_0x3060a3(0x174)],'code':_0x4f31c1['modelCode']||_0x4f31c1[_0x3060a3(0x14e)],'description':_0x4f31c1[_0x3060a3(0x182)]||_0x393bf3[_0x3060a3(0x15d)]||undefined,'source':_0x4f31c1[_0x3060a3(0x163)]||_0x393bf3[_0x3060a3(0x162)],'table':_0x25fc80[_0x3060a3(0x167)]||_0x393bf3[_0x3060a3(0x167)],'datasetKey':_0x25fc80[_0x3060a3(0x17c)],'pk':_0x25fc80[_0x3060a3(0x17b)],'fields':_0x5dc95f,'operations':_0x36dc9c,'indexes':Array[_0x3060a3(0x166)](_0x393bf3[_0x3060a3(0x183)])?_0x393bf3[_0x3060a3(0x183)]:[],'relations':Array[_0x3060a3(0x166)](_0x4f31c1['relations'])?_0x4f31c1[_0x3060a3(0x170)][_0x3060a3(0x153)](_0x5bee7e=>({'fromField':_0x5bee7e[_0x3060a3(0x17f)],'toDataset':_0x5bee7e[_0x3060a3(0x14f)],'toCode':_0x5bee7e[_0x3060a3(0x179)],'toTable':_0x5bee7e['toTableName'],'toField':_0x5bee7e['toField'],'labelField':_0x5bee7e[_0x3060a3(0x185)]||undefined})):[],'stats':{'fieldCount':_0x5dc95f[_0x3060a3(0x16e)],'operationCount':_0x36dc9c[_0x3060a3(0x16e)]}}};}};
@@ -1 +1 @@
1
- (function(_0x421fc,_0x2864d4){const _0x14449e=a36_0x4fa5,_0xea2685=_0x421fc();while(!![]){try{const _0x45f4ee=-parseInt(_0x14449e(0x7a))/0x1+-parseInt(_0x14449e(0x7c))/0x2+-parseInt(_0x14449e(0x79))/0x3+-parseInt(_0x14449e(0x75))/0x4*(parseInt(_0x14449e(0x7b))/0x5)+parseInt(_0x14449e(0x78))/0x6*(parseInt(_0x14449e(0x7d))/0x7)+-parseInt(_0x14449e(0x74))/0x8*(parseInt(_0x14449e(0x7e))/0x9)+parseInt(_0x14449e(0x77))/0xa*(parseInt(_0x14449e(0x76))/0xb);if(_0x45f4ee===_0x2864d4)break;else _0xea2685['push'](_0xea2685['shift']());}catch(_0x3b1e31){_0xea2685['push'](_0xea2685['shift']());}}}(a36_0x336b,0x50b39));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';function a36_0x4fa5(_0x4eefe3,_0x4b6781){_0x4eefe3=_0x4eefe3-0x74;const _0x336bbc=a36_0x336b();let _0x4fa5f7=_0x336bbc[_0x4eefe3];return _0x4fa5f7;}import{datasetLinks}from'./links.js';function a36_0x336b(){const _0x48dec2=['9itHXym','4276616mQZiGa','2273464hjhPFj','253JpRYPj','1178690UqjKVS','5160lggoKA','1718388lWBwzg','355871tsdkvT','5pDfHBS','742368CJMckt','182EsMpCw'];a36_0x336b=function(){return _0x48dec2;};return a36_0x336b();}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x2dc964,_0xe56d25){const _0x127534=a36_0x3abd,_0x48c85c=_0x2dc964();while(!![]){try{const _0x4cb7e5=parseInt(_0x127534(0x18d))/0x1*(-parseInt(_0x127534(0x188))/0x2)+-parseInt(_0x127534(0x192))/0x3*(-parseInt(_0x127534(0x18b))/0x4)+parseInt(_0x127534(0x189))/0x5*(-parseInt(_0x127534(0x190))/0x6)+-parseInt(_0x127534(0x191))/0x7+parseInt(_0x127534(0x18f))/0x8+parseInt(_0x127534(0x18a))/0x9*(-parseInt(_0x127534(0x18e))/0xa)+parseInt(_0x127534(0x18c))/0xb;if(_0x4cb7e5===_0xe56d25)break;else _0x48c85c['push'](_0x48c85c['shift']());}catch(_0x1e8159){_0x48c85c['push'](_0x48c85c['shift']());}}}(a36_0x1d60,0xa30db));import{datasetList}from'./list.js';function a36_0x1d60(){const _0x3d5e89=['2hnARfC','13855hakQdU','9RWYddZ','1196UEviJM','8145775ynNjQo','747910qLQCcU','416940IBuWps','6983272tELGxa','1662PJRfDJ','5047273DEXoDk','13371HUEgod'];a36_0x1d60=function(){return _0x3d5e89;};return a36_0x1d60();}import{datasetDetail}from'./detail.js';function a36_0x3abd(_0xc6edd6,_0xd62002){_0xc6edd6=_0xc6edd6-0x188;const _0x1d60d1=a36_0x1d60();let _0x3abd3a=_0x1d60d1[_0xc6edd6];return _0x3abd3a;}import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a37_0x1aa14c=a37_0x4c67;(function(_0x31a54d,_0x1e9dea){const _0x5e52e6=a37_0x4c67,_0x513486=_0x31a54d();while(!![]){try{const _0x358429=parseInt(_0x5e52e6(0xf0))/0x1+parseInt(_0x5e52e6(0x100))/0x2+parseInt(_0x5e52e6(0x104))/0x3+-parseInt(_0x5e52e6(0xe5))/0x4*(parseInt(_0x5e52e6(0xff))/0x5)+parseInt(_0x5e52e6(0xe9))/0x6*(parseInt(_0x5e52e6(0xdd))/0x7)+parseInt(_0x5e52e6(0x106))/0x8+-parseInt(_0x5e52e6(0xde))/0x9*(parseInt(_0x5e52e6(0xf2))/0xa);if(_0x358429===_0x1e9dea)break;else _0x513486['push'](_0x513486['shift']());}catch(_0x2e3423){_0x513486['push'](_0x513486['shift']());}}}(a37_0x18a8,0x67389));function a37_0x18a8(){const _0x5f3692=['boolean','25oqRhZZ','900086zSuzOf','isForeignKey','toDataset','stats','1159761apLUQH','tableName','5655928YqeqYu','datasets','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','\x20relation(s)','relations','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','links','meta','139489vactPA','15915942VDMofO','datasetName','filter','relationCount','verbose','datasetId','appCode','124460LQrIaW','fields','dataset','length','78AnedwN','reduce','Fetched\x20link\x20graph\x20for\x20','str','string','\x20database(s),\x20','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','544134RNuGfX','isPrimaryKey','10EvtfVr','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','dbName','Link\x20graph:\x20','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','datasetCode','fromField','dbId','map','tableComment','name','bool'];a37_0x18a8=function(){return _0x5f3692;};return a37_0x18a8();}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';function a37_0x4c67(_0x56b838,_0xed0767){_0x56b838=_0x56b838-0xdc;const _0x18a8f9=a37_0x18a8();let _0x4c67b4=_0x18a8f9[_0x56b838];return _0x4c67b4;}export const datasetLinks={'service':a37_0x1aa14c(0xe7),'command':a37_0x1aa14c(0x10c),'description':a37_0x1aa14c(0xf3)+a37_0x1aa14c(0xef)+a37_0x1aa14c(0x108),'risk':'read','flags':[{'name':'db','type':a37_0x1aa14c(0xed),'description':a37_0x1aa14c(0x10b)+a37_0x1aa14c(0xf6)},{'name':a37_0x1aa14c(0xe2),'type':a37_0x1aa14c(0xfe),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x18407c){const _0x8552c5=a37_0x1aa14c,_0xfc8f27=_0x18407c[_0x8552c5(0xfd)](_0x8552c5(0xe2)),{resolved:_0x40e910,error:_0x4106f5}=await resolveDb(_0x18407c[_0x8552c5(0xe4)],_0x18407c[_0x8552c5(0xec)]('db')||undefined);if(_0x4106f5)return{'ok':![],'message':_0x4106f5};const _0x368dd1=_0x40e910['map'](_0x339363=>_0x339363['dbId']),_0x3f4be5=await Promise['all'](_0x368dd1[_0x8552c5(0xfa)](_0x3db00c=>getErConfig(_0x18407c[_0x8552c5(0xe4)],_0x3db00c)));if(_0xfc8f27)return{'ok':!![],'data':_0x3f4be5[_0x8552c5(0xe8)]===0x1?_0x3f4be5[0x0]:_0x3f4be5,'message':_0x8552c5(0xeb)+_0x368dd1[_0x8552c5(0xe8)]+'\x20database(s)'};const _0x3360dd=_0x3f4be5['map'](_0x1473d9=>{const _0xaf3899=_0x8552c5,_0x14ad29=(_0x1473d9[_0xaf3899(0x107)]??[])[_0xaf3899(0xfa)](_0x3d3f15=>{const _0x46e0fd=_0xaf3899,_0x29e98c=_0x3d3f15['fields']?.[_0x46e0fd(0xe0)](_0x13ea39=>_0x13ea39[_0x46e0fd(0xf1)])[_0x46e0fd(0xfa)](_0x14f687=>_0x14f687[_0x46e0fd(0xfc)])??[],_0x3f9e67=_0x3d3f15[_0x46e0fd(0xe6)]?.[_0x46e0fd(0xe0)](_0xc27ccd=>_0xc27ccd[_0x46e0fd(0x101)])[_0x46e0fd(0xfa)](_0x1e8b71=>_0x1e8b71['name'])??[];return{'id':_0x3d3f15[_0x46e0fd(0xe3)],'name':_0x3d3f15[_0x46e0fd(0xdf)],'code':_0x3d3f15[_0x46e0fd(0xf7)],'table':_0x3d3f15[_0x46e0fd(0x105)],'comment':_0x3d3f15[_0x46e0fd(0xfb)]||undefined,'fields':(_0x3d3f15['fields']??[])[_0x46e0fd(0xfa)](_0x2151d7=>({'name':_0x2151d7[_0x46e0fd(0xfc)],'displayName':_0x2151d7['displayName'],'type':_0x2151d7['dbType'],'pk':_0x2151d7['isPrimaryKey'],'fk':_0x2151d7['isForeignKey']})),'relations':(_0x3d3f15[_0x46e0fd(0x10a)]??[])[_0x46e0fd(0xe0)](_0x18c518=>_0x18c518[_0x46e0fd(0xf8)]&&_0x18c518[_0x46e0fd(0x102)])[_0x46e0fd(0xfa)](_0x2732ca=>({'from':_0x2732ca[_0x46e0fd(0xf8)],'toDataset':_0x2732ca['toDatasetName'],'toCode':_0x2732ca[_0x46e0fd(0x102)],'toField':_0x2732ca['toField'],'joinType':_0x2732ca['joinType']||'LEFT'})),'stats':{'fieldCount':_0x3d3f15[_0x46e0fd(0xe6)]?.[_0x46e0fd(0xe8)]??0x0,'pkCount':_0x29e98c[_0x46e0fd(0xe8)],'fkCount':_0x3f9e67[_0x46e0fd(0xe8)],'relationCount':_0x3d3f15[_0x46e0fd(0x10a)]?.[_0x46e0fd(0xe8)]??0x0}};}),_0x3e0d7d=_0x14ad29[_0xaf3899(0xe0)](_0x39ce04=>_0x39ce04[_0xaf3899(0x103)][_0xaf3899(0xe1)]>0x0)['map'](_0x5f43dc=>_0x5f43dc['name']);return{'db':_0x1473d9[_0xaf3899(0xdc)]?.[_0xaf3899(0xf4)],'dbId':_0x1473d9[_0xaf3899(0xdc)]?.[_0xaf3899(0xf9)],'appCode':_0x1473d9[_0xaf3899(0xdc)]?.[_0xaf3899(0xe4)],'datasetCount':_0x14ad29[_0xaf3899(0xe8)],'connectedDatasets':_0x3e0d7d,'datasets':_0x14ad29};}),_0x1ae21f=_0x3360dd['reduce']((_0x2a9e4a,_0x3e69a6)=>_0x2a9e4a+_0x3e69a6['datasetCount'],0x0),_0x23d1ef=_0x3360dd[_0x8552c5(0xea)]((_0x4d4950,_0x1f9540)=>_0x4d4950+_0x1f9540['datasets'][_0x8552c5(0xea)]((_0xec6c50,_0x1390a2)=>_0xec6c50+_0x1390a2[_0x8552c5(0x103)]['relationCount'],0x0),0x0);return{'ok':!![],'data':_0x3360dd[_0x8552c5(0xe8)]===0x1?_0x3360dd[0x0]:{'databases':_0x3360dd},'message':_0x8552c5(0xf5)+_0x3360dd['length']+_0x8552c5(0xee)+_0x1ae21f+'\x20dataset(s),\x20'+_0x23d1ef+_0x8552c5(0x109)};}};
1
+ const a37_0x2d756b=a37_0x1ee5;(function(_0x83f359,_0xefb4b7){const _0x6c92ed=a37_0x1ee5,_0x410fce=_0x83f359();while(!![]){try{const _0x6d360b=-parseInt(_0x6c92ed(0xc9))/0x1*(-parseInt(_0x6c92ed(0xd1))/0x2)+-parseInt(_0x6c92ed(0xc4))/0x3+-parseInt(_0x6c92ed(0xe0))/0x4*(parseInt(_0x6c92ed(0xb8))/0x5)+-parseInt(_0x6c92ed(0xe6))/0x6+parseInt(_0x6c92ed(0xbd))/0x7+-parseInt(_0x6c92ed(0xcd))/0x8*(-parseInt(_0x6c92ed(0xc1))/0x9)+parseInt(_0x6c92ed(0xd2))/0xa*(parseInt(_0x6c92ed(0xdd))/0xb);if(_0x6d360b===_0xefb4b7)break;else _0x410fce['push'](_0x410fce['shift']());}catch(_0x2e39b5){_0x410fce['push'](_0x410fce['shift']());}}}(a37_0x29f7,0x7d5bf));function a37_0x1ee5(_0x2a2312,_0x52917f){_0x2a2312=_0x2a2312-0xb6;const _0x29f75b=a37_0x29f7();let _0x1ee5ab=_0x29f75b[_0x2a2312];return _0x1ee5ab;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':a37_0x2d756b(0xe9),'command':a37_0x2d756b(0xb7),'description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':a37_0x2d756b(0xde),'flags':[{'name':'db','type':a37_0x2d756b(0xe5),'description':a37_0x2d756b(0xd8)+a37_0x2d756b(0xbe)},{'name':a37_0x2d756b(0xb6),'type':a37_0x2d756b(0xdb),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x478246){const _0x135180=a37_0x2d756b,_0x1b1c83=_0x478246[_0x135180(0xdf)]('verbose'),{resolved:_0x50e161,error:_0x1ccd8f}=await resolveDb(_0x478246[_0x135180(0xbf)],_0x478246[_0x135180(0xcc)]('db')||undefined);if(_0x1ccd8f)return{'ok':![],'message':_0x1ccd8f};const _0x20d4e3=_0x50e161[_0x135180(0xcb)](_0x2e669e=>_0x2e669e[_0x135180(0xd7)]),_0x44f170=await Promise[_0x135180(0xe3)](_0x20d4e3[_0x135180(0xcb)](_0x389a16=>getErConfig(_0x478246[_0x135180(0xbf)],_0x389a16)));if(_0x1b1c83)return{'ok':!![],'data':_0x44f170[_0x135180(0xda)]===0x1?_0x44f170[0x0]:_0x44f170,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x20d4e3[_0x135180(0xda)]+_0x135180(0xe7)};const _0x4e04b4=_0x44f170[_0x135180(0xcb)](_0x522c77=>{const _0xc1f609=_0x135180,_0xf2dad5=(_0x522c77[_0xc1f609(0xd0)]??[])[_0xc1f609(0xcb)](_0x21c6c0=>{const _0x361177=_0xc1f609,_0x1c72b0=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x48afea=>_0x48afea[_0x361177(0xbb)])[_0x361177(0xcb)](_0x4088b1=>_0x4088b1[_0x361177(0xc7)])??[],_0x300c9a=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x570a11=>_0x570a11[_0x361177(0xbc)])['map'](_0x1d7f13=>_0x1d7f13[_0x361177(0xc7)])??[];return{'id':_0x21c6c0[_0x361177(0xb9)],'name':_0x21c6c0[_0x361177(0xc0)],'code':_0x21c6c0[_0x361177(0xdc)],'table':_0x21c6c0[_0x361177(0xd5)],'comment':_0x21c6c0['tableComment']||undefined,'fields':(_0x21c6c0[_0x361177(0xd4)]??[])[_0x361177(0xcb)](_0x32c6e6=>({'name':_0x32c6e6[_0x361177(0xc7)],'displayName':_0x32c6e6[_0x361177(0xd3)],'type':_0x32c6e6[_0x361177(0xd9)],'pk':_0x32c6e6[_0x361177(0xbb)],'fk':_0x32c6e6['isForeignKey']})),'relations':(_0x21c6c0[_0x361177(0xd6)]??[])['filter'](_0x2cc60a=>_0x2cc60a[_0x361177(0xc8)]&&_0x2cc60a[_0x361177(0xc2)])['map'](_0x31bccf=>({'from':_0x31bccf['fromField'],'toDataset':_0x31bccf[_0x361177(0xba)],'toCode':_0x31bccf[_0x361177(0xc2)],'toField':_0x31bccf[_0x361177(0xe2)],'joinType':_0x31bccf['joinType']||'LEFT'})),'stats':{'fieldCount':_0x21c6c0[_0x361177(0xd4)]?.[_0x361177(0xda)]??0x0,'pkCount':_0x1c72b0[_0x361177(0xda)],'fkCount':_0x300c9a['length'],'relationCount':_0x21c6c0['relations']?.[_0x361177(0xda)]??0x0}};}),_0x98d75d=_0xf2dad5[_0xc1f609(0xc6)](_0x19ec85=>_0x19ec85['stats'][_0xc1f609(0xcf)]>0x0)[_0xc1f609(0xcb)](_0x2cb151=>_0x2cb151[_0xc1f609(0xc7)]);return{'db':_0x522c77[_0xc1f609(0xe1)]?.['dbName'],'dbId':_0x522c77[_0xc1f609(0xe1)]?.['dbId'],'appCode':_0x522c77[_0xc1f609(0xe1)]?.['appCode'],'datasetCount':_0xf2dad5['length'],'connectedDatasets':_0x98d75d,'datasets':_0xf2dad5};}),_0x42e215=_0x4e04b4[_0x135180(0xca)]((_0x5ebc50,_0x31c980)=>_0x5ebc50+_0x31c980[_0x135180(0xc5)],0x0),_0xecad48=_0x4e04b4[_0x135180(0xca)]((_0x2e4f0b,_0x3ab5bc)=>_0x2e4f0b+_0x3ab5bc[_0x135180(0xd0)][_0x135180(0xca)]((_0x3f4645,_0xf085c5)=>_0x3f4645+_0xf085c5[_0x135180(0xe8)][_0x135180(0xcf)],0x0),0x0);return{'ok':!![],'data':_0x4e04b4['length']===0x1?_0x4e04b4[0x0]:{'databases':_0x4e04b4},'message':_0x135180(0xc3)+_0x4e04b4[_0x135180(0xda)]+_0x135180(0xe4)+_0x42e215+'\x20dataset(s),\x20'+_0xecad48+_0x135180(0xce)};}};function a37_0x29f7(){const _0x5a5e5f=['4grEjGK','4380yhxKSX','displayName','fields','tableName','relations','dbId','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','dbType','length','boolean','datasetCode','9966oDZrZe','read','bool','249836LjNxTS','meta','toField','all','\x20database(s),\x20','string','3826950LhObXB','\x20database(s)','stats','dataset','verbose','links','5cHsIps','datasetId','toDatasetName','isPrimaryKey','isForeignKey','1875083CSExOM','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','appCode','datasetName','333orKYXz','toDataset','Link\x20graph:\x20','865056UgUIMO','datasetCount','filter','name','fromField','255572qtGLkR','reduce','map','str','70544hPJrKO','\x20relation(s)','relationCount','datasets'];a37_0x29f7=function(){return _0x5a5e5f;};return a37_0x29f7();}
@@ -1 +1 @@
1
- const a38_0xc05d65=a38_0x2acc;function a38_0x11cf(){const _0x3ceb89=['tableName','verbose','trim','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','2EPGMCv','split','length','list','36474bmSPUq','code','521733gWhKqS','pkField','bool','string','37915MGyRUL','boolean','81qQMohC','allFields','90PIfSkg','dataset','description','datasetKey','dbtableConfig','164808kcwqdA','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','name','read','105578jyzzRS','224312ZIfBBr','str','appCode','\x20dataset(s)','dbName','source','1600130ETqRvz','map','145irvKMk'];a38_0x11cf=function(){return _0x3ceb89;};return a38_0x11cf();}(function(_0x589b70,_0x12fa7d){const _0x29e19b=a38_0x2acc,_0x3642dd=_0x589b70();while(!![]){try{const _0x37d9a8=parseInt(_0x29e19b(0x1d8))/0x1+-parseInt(_0x29e19b(0x1f3))/0x2*(-parseInt(_0x29e19b(0x1d4))/0x3)+parseInt(_0x29e19b(0x1e6))/0x4+-parseInt(_0x29e19b(0x1ee))/0x5*(-parseInt(_0x29e19b(0x1d2))/0x6)+-parseInt(_0x29e19b(0x1ec))/0x7+parseInt(_0x29e19b(0x1e1))/0x8*(-parseInt(_0x29e19b(0x1da))/0x9)+parseInt(_0x29e19b(0x1dc))/0xa*(parseInt(_0x29e19b(0x1e5))/0xb);if(_0x37d9a8===_0x12fa7d)break;else _0x3642dd['push'](_0x3642dd['shift']());}catch(_0x8e09e6){_0x3642dd['push'](_0x3642dd['shift']());}}}(a38_0x11cf,0x1c762));function a38_0x2acc(_0x508136,_0x59b7ab){_0x508136=_0x508136-0x1cf;const _0x11cf88=a38_0x11cf();let _0x2acccb=_0x11cf88[_0x508136];return _0x2acccb;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a38_0xc05d65(0x1dd),'command':a38_0xc05d65(0x1d1),'description':'List\x20all\x20datasets\x20with\x20metadata','risk':a38_0xc05d65(0x1e4),'flags':[{'name':a38_0xc05d65(0x1e3),'type':a38_0xc05d65(0x1d7),'description':a38_0xc05d65(0x1f2)},CODE_FLAG_OPTIONAL,{'name':a38_0xc05d65(0x1f0),'type':a38_0xc05d65(0x1d9),'description':a38_0xc05d65(0x1e2)}],async 'execute'(_0x10011d){const _0x53bf7c=a38_0xc05d65,_0x5ea081=_0x10011d[_0x53bf7c(0x1e7)]('name'),_0x45bfa1=_0x10011d[_0x53bf7c(0x1e7)](_0x53bf7c(0x1d3)),_0x2668cf=_0x10011d[_0x53bf7c(0x1d6)](_0x53bf7c(0x1f0)),_0x3f5a86=await listDatasets(_0x10011d[_0x53bf7c(0x1e8)],{..._0x5ea081&&{'name':_0x5ea081},..._0x45bfa1&&{'code':_0x45bfa1}}),_0x5637cc=_0x2668cf?_0x3f5a86:_0x3f5a86[_0x53bf7c(0x1ed)](_0x310dd8=>{const _0x4380bf=_0x53bf7c,_0x2e654a=_0x310dd8[_0x4380bf(0x1e0)]??{};return{'id':_0x310dd8['id'],'name':_0x310dd8[_0x4380bf(0x1e3)],'code':_0x310dd8[_0x4380bf(0x1d3)],'description':_0x310dd8[_0x4380bf(0x1de)],'source':_0x310dd8[_0x4380bf(0x1eb)],'db':_0x2e654a[_0x4380bf(0x1ea)],'table':_0x2e654a[_0x4380bf(0x1ef)],'datasetKey':_0x2e654a[_0x4380bf(0x1df)],'pk':_0x2e654a[_0x4380bf(0x1d5)],'fields':_0x2e654a[_0x4380bf(0x1db)]?_0x2e654a[_0x4380bf(0x1db)][_0x4380bf(0x1cf)](',')[_0x4380bf(0x1ed)](_0x44eed4=>_0x44eed4[_0x4380bf(0x1f1)]()):[]};});return{'ok':!![],'data':{'total':_0x5637cc[_0x53bf7c(0x1d0)],'datasets':_0x5637cc},'message':'Found\x20'+_0x5637cc[_0x53bf7c(0x1d0)]+_0x53bf7c(0x1e9)};}};
1
+ const a38_0xbdb453=a38_0x20ec;(function(_0x495c98,_0x2d6fe0){const _0x545a07=a38_0x20ec,_0x498a98=_0x495c98();while(!![]){try{const _0x3a5963=parseInt(_0x545a07(0x8c))/0x1+-parseInt(_0x545a07(0x88))/0x2*(parseInt(_0x545a07(0x8d))/0x3)+-parseInt(_0x545a07(0x93))/0x4+-parseInt(_0x545a07(0x82))/0x5*(parseInt(_0x545a07(0x99))/0x6)+-parseInt(_0x545a07(0x91))/0x7*(-parseInt(_0x545a07(0x81))/0x8)+-parseInt(_0x545a07(0x7c))/0x9*(parseInt(_0x545a07(0x78))/0xa)+parseInt(_0x545a07(0x94))/0xb*(parseInt(_0x545a07(0x8f))/0xc);if(_0x3a5963===_0x2d6fe0)break;else _0x498a98['push'](_0x498a98['shift']());}catch(_0x23577){_0x498a98['push'](_0x498a98['shift']());}}}(a38_0x4c43,0xa267c));function a38_0x20ec(_0x2674a1,_0x2ae202){_0x2674a1=_0x2674a1-0x74;const _0x4c43b3=a38_0x4c43();let _0x20ec34=_0x4c43b3[_0x2674a1];return _0x20ec34;}import{listDatasets}from'../../core/api-client.js';function a38_0x4c43(){const _0x26fca8=['1659287oRlPmp','trim','1638664siMQDR','19261gVmZqd','name','List\x20all\x20datasets\x20with\x20metadata','code','allFields','370482gNxrfX','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','dataset','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','appCode','170bhFJud','datasetKey','bool','read','570447KOIgWu','source','split','pkField','\x20dataset(s)','40umLdrN','80kCiamo','boolean','map','verbose','length','Found\x20','2VARIDY','list','string','description','654768gPUjUl','2097822WzvwtR','str','13704aNkqfx','tableName'];a38_0x4c43=function(){return _0x26fca8;};return a38_0x4c43();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a38_0xbdb453(0x75),'command':a38_0xbdb453(0x89),'description':a38_0xbdb453(0x96),'risk':a38_0xbdb453(0x7b),'flags':[{'name':a38_0xbdb453(0x95),'type':a38_0xbdb453(0x8a),'description':a38_0xbdb453(0x74)},CODE_FLAG_OPTIONAL,{'name':a38_0xbdb453(0x85),'type':a38_0xbdb453(0x83),'description':a38_0xbdb453(0x76)}],async 'execute'(_0x4e251b){const _0x4cea5f=a38_0xbdb453,_0x226192=_0x4e251b[_0x4cea5f(0x8e)]('name'),_0x3d87c4=_0x4e251b[_0x4cea5f(0x8e)](_0x4cea5f(0x97)),_0x9a0dcf=_0x4e251b[_0x4cea5f(0x7a)](_0x4cea5f(0x85)),_0xd8c531=await listDatasets(_0x4e251b[_0x4cea5f(0x77)],{..._0x226192&&{'name':_0x226192},..._0x3d87c4&&{'code':_0x3d87c4}}),_0x2a51ca=_0x9a0dcf?_0xd8c531:_0xd8c531[_0x4cea5f(0x84)](_0x56e44c=>{const _0x279a0c=_0x4cea5f,_0x52c1ae=_0x56e44c['dbtableConfig']??{};return{'id':_0x56e44c['id'],'name':_0x56e44c[_0x279a0c(0x95)],'code':_0x56e44c[_0x279a0c(0x97)],'description':_0x56e44c[_0x279a0c(0x8b)],'source':_0x56e44c[_0x279a0c(0x7d)],'db':_0x52c1ae['dbName'],'table':_0x52c1ae[_0x279a0c(0x90)],'datasetKey':_0x52c1ae[_0x279a0c(0x79)],'pk':_0x52c1ae[_0x279a0c(0x7f)],'fields':_0x52c1ae[_0x279a0c(0x98)]?_0x52c1ae[_0x279a0c(0x98)][_0x279a0c(0x7e)](',')[_0x279a0c(0x84)](_0x1b14c1=>_0x1b14c1[_0x279a0c(0x92)]()):[]};});return{'ok':!![],'data':{'total':_0x2a51ca[_0x4cea5f(0x86)],'datasets':_0x2a51ca},'message':_0x4cea5f(0x87)+_0x2a51ca[_0x4cea5f(0x86)]+_0x4cea5f(0x80)};}};
@@ -1 +1 @@
1
- const a39_0x2e275c=a39_0x363a;(function(_0x465e64,_0xc6d95d){const _0x325471=a39_0x363a,_0x4cee2c=_0x465e64();while(!![]){try{const _0x2e1199=-parseInt(_0x325471(0x88))/0x1*(parseInt(_0x325471(0x91))/0x2)+parseInt(_0x325471(0x9f))/0x3*(-parseInt(_0x325471(0x8c))/0x4)+parseInt(_0x325471(0x83))/0x5*(parseInt(_0x325471(0x98))/0x6)+-parseInt(_0x325471(0x8f))/0x7*(parseInt(_0x325471(0x92))/0x8)+parseInt(_0x325471(0x8e))/0x9+parseInt(_0x325471(0x96))/0xa*(parseInt(_0x325471(0x87))/0xb)+parseInt(_0x325471(0x99))/0xc;if(_0x2e1199===_0xc6d95d)break;else _0x4cee2c['push'](_0x4cee2c['shift']());}catch(_0x547023){_0x4cee2c['push'](_0x4cee2c['shift']());}}}(a39_0x8ad5,0x95f62));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';function a39_0x363a(_0x4dd626,_0x3fb1ca){_0x4dd626=_0x4dd626-0x81;const _0x8ad500=a39_0x8ad5();let _0x363aa5=_0x8ad500[_0x4dd626];return _0x363aa5;}function a39_0x8ad5(){const _0x22fc13=['operation','name','bool','12CkverP','type','method','str','2967730iCdOgI','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','displayName','length','2365jubdGC','313DKJONk','alias','operations','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','420008NDRTZQ','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','6888609pmAhGy','14TtEiWJ','map','5978PrdqRP','3683192TtapCn','string','read','boolean','53910mahjhm','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','6rLyNdd','4471116QDIepA','code','verbose'];a39_0x8ad5=function(){return _0x22fc13;};return a39_0x8ad5();}export const datasetOperations={'service':'dataset','command':a39_0x2e275c(0x8a),'description':a39_0x2e275c(0x84),'risk':a39_0x2e275c(0x94),'flags':[CODE_FLAG_OPTIONAL,{'name':a39_0x2e275c(0x89),'type':a39_0x2e275c(0x93),'description':a39_0x2e275c(0x8d)},{'name':a39_0x2e275c(0x9c),'type':'string','description':a39_0x2e275c(0x97)},{'name':'verbose','type':a39_0x2e275c(0x95),'description':a39_0x2e275c(0x8b)}],async 'execute'(_0xd40551){const _0x51e7e7=a39_0x2e275c,_0x38d07a=_0xd40551[_0x51e7e7(0x82)](_0x51e7e7(0x9a)),_0x8166f=_0xd40551[_0x51e7e7(0x82)](_0x51e7e7(0x9c)),_0x4949d4=_0xd40551[_0x51e7e7(0x9e)](_0x51e7e7(0x9b));if(_0x8166f){const {dataset:_0x748b9f,operation:_0x2b60f0}=await getOperationDetail(_0xd40551['appCode'],_0x38d07a,_0x8166f);return{'ok':!![],'data':{'dataset':_0x748b9f,'operation':_0x2b60f0}};}const {dataset:_0x32abbe,operations:_0x39c7e4}=await getDatasetOperations(_0x38d07a);return{'ok':!![],'data':{'dataset':_0x32abbe,'total':_0x39c7e4[_0x51e7e7(0x86)],'operations':_0x4949d4?_0x39c7e4:_0x39c7e4[_0x51e7e7(0x90)](_0x585faf=>({'name':_0x585faf[_0x51e7e7(0x9d)],'displayName':_0x585faf[_0x51e7e7(0x85)],'type':_0x585faf[_0x51e7e7(0xa0)],'method':_0x585faf[_0x51e7e7(0x81)],'enabled':_0x585faf['enabled']}))}};}};
1
+ const a39_0x252abf=a39_0x5557;(function(_0x5d2548,_0x4346aa){const _0x51923a=a39_0x5557,_0x46f9dd=_0x5d2548();while(!![]){try{const _0x53d7df=-parseInt(_0x51923a(0xbe))/0x1+parseInt(_0x51923a(0xb3))/0x2+-parseInt(_0x51923a(0xc7))/0x3*(-parseInt(_0x51923a(0xbb))/0x4)+-parseInt(_0x51923a(0xc3))/0x5+-parseInt(_0x51923a(0xc5))/0x6+-parseInt(_0x51923a(0xcd))/0x7+parseInt(_0x51923a(0xb6))/0x8;if(_0x53d7df===_0x4346aa)break;else _0x46f9dd['push'](_0x46f9dd['shift']());}catch(_0x77aa04){_0x46f9dd['push'](_0x46f9dd['shift']());}}}(a39_0xf7e6,0x42a7a));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a39_0x5557(_0x59f03c,_0x47e2d3){_0x59f03c=_0x59f03c-0xb2;const _0xf7e65a=a39_0xf7e6();let _0x5557f9=_0xf7e65a[_0x59f03c];return _0x5557f9;}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a39_0x252abf(0xb4),'command':a39_0x252abf(0xc1),'description':a39_0x252abf(0xc2),'risk':a39_0x252abf(0xbf),'flags':[CODE_FLAG_OPTIONAL,{'name':a39_0x252abf(0xca),'type':a39_0x252abf(0xc9),'description':a39_0x252abf(0xc0)},{'name':a39_0x252abf(0xcb),'type':a39_0x252abf(0xc9),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':a39_0x252abf(0xb8),'type':a39_0x252abf(0xcc),'description':a39_0x252abf(0xc4)}],async 'execute'(_0x4bf8d1){const _0x2d43ae=a39_0x252abf,_0x1d83e3=_0x4bf8d1[_0x2d43ae(0xba)](_0x2d43ae(0xc6)),_0x2a19a9=_0x4bf8d1[_0x2d43ae(0xba)]('operation'),_0x324207=_0x4bf8d1[_0x2d43ae(0xbd)](_0x2d43ae(0xb8));if(_0x2a19a9){const {dataset:_0xbc30a8,operation:_0x1db209}=await getOperationDetail(_0x4bf8d1[_0x2d43ae(0xb5)],_0x1d83e3,_0x2a19a9);return{'ok':!![],'data':{'dataset':_0xbc30a8,'operation':_0x1db209}};}const {dataset:_0x5fa0fd,operations:_0x4e09ad}=await getDatasetOperations(_0x1d83e3);return{'ok':!![],'data':{'dataset':_0x5fa0fd,'total':_0x4e09ad[_0x2d43ae(0xbc)],'operations':_0x324207?_0x4e09ad:_0x4e09ad[_0x2d43ae(0xb7)](_0x49890e=>({'name':_0x49890e['name'],'displayName':_0x49890e[_0x2d43ae(0xb9)],'type':_0x49890e[_0x2d43ae(0xb2)],'method':_0x49890e['method'],'enabled':_0x49890e[_0x2d43ae(0xc8)]}))}};}};function a39_0xf7e6(){const _0xc39152=['string','alias','operation','boolean','2391949zNYmQy','type','447436lhbEjq','dataset','appCode','5840824RZotJt','map','verbose','displayName','str','1375732ATpiYN','length','bool','107312qZrabj','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','operations','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','1384600cazATJ','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1792782GFjYHE','code','3uWcybD','enabled'];a39_0xf7e6=function(){return _0xc39152;};return a39_0xf7e6();}
@@ -1 +1 @@
1
- const a40_0x36fea2=a40_0x4f62;(function(_0x1d316f,_0x84b84a){const _0x1323c7=a40_0x4f62,_0xaa7b4e=_0x1d316f();while(!![]){try{const _0x265a03=-parseInt(_0x1323c7(0xda))/0x1*(parseInt(_0x1323c7(0x101))/0x2)+parseInt(_0x1323c7(0xec))/0x3+parseInt(_0x1323c7(0xed))/0x4+-parseInt(_0x1323c7(0x10c))/0x5*(-parseInt(_0x1323c7(0x107))/0x6)+parseInt(_0x1323c7(0xe8))/0x7+parseInt(_0x1323c7(0xde))/0x8+parseInt(_0x1323c7(0xdc))/0x9*(-parseInt(_0x1323c7(0x105))/0xa);if(_0x265a03===_0x84b84a)break;else _0xaa7b4e['push'](_0xaa7b4e['shift']());}catch(_0x11d0cb){_0xaa7b4e['push'](_0xaa7b4e['shift']());}}}(a40_0x20c5,0x651c4));import a40_0xe5e2c9 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';function a40_0x4f62(_0x599d17,_0x44ef27){_0x599d17=_0x599d17-0xce;const _0x20c5fc=a40_0x20c5();let _0x4f627b=_0x20c5fc[_0x599d17];return _0x4f627b;}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(_0x47c900,_0x195ae1,_0x42c0e7){const _0x4fd070=a40_0x4f62,_0x1c9708=_0x47c900[_0x4fd070(0x103)];let _0x201c52=_0x4fd070(0xd5);try{const _0xcc8ea7=resolve(dirname(fileURLToPath(import.meta.url)),'..'),_0x280db1=JSON['parse'](readFileSync(resolve(_0xcc8ea7,_0x4fd070(0xfa)),_0x4fd070(0xd4)));_0x201c52=_0x280db1[_0x4fd070(0x100)]||_0x4fd070(0xd5);}catch{}const _0x2becd4=BUILD_NUMBER?_0x201c52+'+'+BUILD_NUMBER:_0x201c52;console[_0x4fd070(0xf4)](),console['log'](a40_0xe5e2c9[_0x4fd070(0x111)](CLI_BIN_NAME+_0x4fd070(0xfd))),console['log'](a40_0xe5e2c9[_0x4fd070(0x112)]('─'[_0x4fd070(0xef)](0x32))),console[_0x4fd070(0xf4)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x2becd4),console[_0x4fd070(0xf4)](_0x4fd070(0x106)+process['version']),console[_0x4fd070(0xf4)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x4fd070(0xd8)]+'\x20'+process[_0x4fd070(0xe1)]),console[_0x4fd070(0xf4)](),console['log'](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0xf3))),console['log'](a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xf8)[_0x4fd070(0xef)](0x1e)));const _0x4cc51b=getGlobalConfigPath(),_0x5cf11c=getProjectConfigPath();console[_0x4fd070(0xf4)](_0x4fd070(0xdb)+(_0x4cc51b||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xe2)))),console[_0x4fd070(0xf4)](_0x4fd070(0xfc)+(_0x5cf11c||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xe2)))),console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0xd3))),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xf8)['repeat'](0x1e)));const _0x216eb7=buildConfigFromFlags(_0x42c0e7);console[_0x4fd070(0xf4)](_0x4fd070(0xdf)+(_0x216eb7[_0x4fd070(0xfe)]||a40_0xe5e2c9[_0x4fd070(0xd7)](_0x4fd070(0x104)))),console[_0x4fd070(0xf4)](_0x4fd070(0xf9)+_0x216eb7['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x216eb7['locale']),console[_0x4fd070(0xf4)](_0x4fd070(0xf6)+_0x216eb7[_0x4fd070(0xea)]),console[_0x4fd070(0xf4)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x216eb7[_0x4fd070(0xf2)]||a40_0xe5e2c9['gray'](_0x4fd070(0x113)))),console[_0x4fd070(0xf4)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x216eb7[_0x4fd070(0x110)]||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0x113)))),console['log'](_0x4fd070(0xf7)+(_0x216eb7['explicitAppName']||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0x113)))),console[_0x4fd070(0xf4)](_0x4fd070(0xd6)+(_0x216eb7[_0x4fd070(0xdd)]||a40_0xe5e2c9[_0x4fd070(0x112)]('(default:\x20pretty)'))),console[_0x4fd070(0xf4)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x216eb7[_0x4fd070(0x114)]??a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd2)))),console[_0x4fd070(0xf4)](_0x4fd070(0xff)+_0x216eb7['riskLevel']),console['log'](_0x4fd070(0x10e)+_0x216eb7[_0x4fd070(0xe0)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x216eb7['cookie']?a40_0xe5e2c9['green'](_0x4fd070(0xd0)+_0x216eb7[_0x4fd070(0x10f)][_0x4fd070(0xcf)]+')'):a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0x113))));const _0x41fe61=Object[_0x4fd070(0xe9)](_0x216eb7[_0x4fd070(0xf1)]);if(_0x41fe61[_0x4fd070(0xcf)]>0x0){console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0x10d))),console[_0x4fd070(0xf4)](a40_0xe5e2c9['gray']('\x20\x20─'[_0x4fd070(0xef)](0x1e)));for(const _0x432c29 of _0x41fe61){const _0x5cbe3f=_0x216eb7[_0x4fd070(0xf1)][_0x432c29],_0xd8eb73=_0x432c29===_0x216eb7['defaultApp'],_0x218072=_0x432c29===_0x216eb7[_0x4fd070(0x110)],_0x2fca7c=_0x218072?a40_0xe5e2c9[_0x4fd070(0xf0)](_0x4fd070(0xce)):'',_0x410c30=_0xd8eb73?'\x20(default)':'';console[_0x4fd070(0xf4)]('\x20\x20'+_0x432c29+_0x410c30+_0x2fca7c),console[_0x4fd070(0xf4)](_0x4fd070(0xe3)+_0x5cbe3f[_0x4fd070(0x10b)]),console[_0x4fd070(0xf4)](_0x4fd070(0x108)+(_0x5cbe3f[_0x4fd070(0xe6)]||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd9)))),console['log'](_0x4fd070(0x10a)+(_0x5cbe3f[_0x4fd070(0xea)]||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd9)))),console[_0x4fd070(0xf4)](_0x4fd070(0xfb)+(_0x5cbe3f['cookie']?a40_0xe5e2c9['green'](_0x4fd070(0xee)):a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd9))));}}console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0x102))),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x112)]('\x20\x20─'[_0x4fd070(0xef)](0x1e))),console[_0x4fd070(0xf4)](_0x4fd070(0xd1)+getApiDomain()),console[_0x4fd070(0xf4)](_0x4fd070(0x109)+getUserDomain()),console[_0x4fd070(0xf4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)]('\x20\x20Auth')),console['log'](a40_0xe5e2c9['gray'](_0x4fd070(0xf8)[_0x4fd070(0xef)](0x1e)));const _0x4ebb47=_0x216eb7[_0x4fd070(0x10f)]||_0x47c900[_0x4fd070(0xe7)][_0x4fd070(0x10f)];if(_0x4ebb47){const _0x313f7b=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x313f7b?a40_0xe5e2c9[_0x4fd070(0xf0)](_0x4fd070(0xe5)):a40_0xe5e2c9[_0x4fd070(0xd7)]('✗\x20Expired')));}else console[_0x4fd070(0xf4)](_0x4fd070(0xf5)+a40_0xe5e2c9[_0x4fd070(0xd7)](_0x4fd070(0xe4)));console['log']();}function a40_0x20c5(){const _0x944711=['2179887VWTbSH','231872IetBqP','(set)','repeat','green','apps','defaultApp','\x20\x20Config\x20Files','log','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20─','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','package.json','\x20\x20\x20\x20cookie:\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','appCode','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','version','2UyIuhX','\x20\x20API\x20Endpoints','config','(not\x20set)','10ijitbo','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','6SGMEWh','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20','appcode','772015AmWkAz','\x20\x20Apps','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','currentApp','bold','gray','(none)','pageSize','\x20←\x20current','length','(set,\x20length=','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Merged\x20Config','utf-8','0.0.0','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','platform','(inherit)','405177Fsxwsq','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2947986CiWOKt','format','35384ylVpat','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','arch','(not\x20found)','\x20\x20\x20\x20appcode:\x20\x20','✗\x20Not\x20logged\x20in','✓\x20Valid','env','auth','1424192SXkRsE','keys','apiDir','Diagnose\x20CLI\x20configuration\x20and\x20connectivity'];a40_0x20c5=function(){return _0x944711;};return a40_0x20c5();}export const doctorCommand={'name':'doctor','description':a40_0x36fea2(0xeb),async 'run'(_0xb85196,_0x236498,_0x594252){await runDoctor(_0xb85196,_0x236498,_0x594252);}};
1
+ const a40_0x391a9c=a40_0x190e;(function(_0x55c116,_0x2685e3){const _0x3647c0=a40_0x190e,_0x211b59=_0x55c116();while(!![]){try{const _0x1cceaa=parseInt(_0x3647c0(0xe9))/0x1*(-parseInt(_0x3647c0(0x123))/0x2)+-parseInt(_0x3647c0(0x10a))/0x3+parseInt(_0x3647c0(0x12f))/0x4+parseInt(_0x3647c0(0x105))/0x5*(-parseInt(_0x3647c0(0xfb))/0x6)+-parseInt(_0x3647c0(0x128))/0x7+parseInt(_0x3647c0(0x107))/0x8+parseInt(_0x3647c0(0xed))/0x9;if(_0x1cceaa===_0x2685e3)break;else _0x211b59['push'](_0x211b59['shift']());}catch(_0x1ba39c){_0x211b59['push'](_0x211b59['shift']());}}}(a40_0x4991,0xe7ad2));import a40_0x5b426d from'chalk';import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import{CLI_BIN_NAME}from'../constant/cli.js';import{BUILD_NUMBER}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function runDoctor(_0x12f3d6,_0x5e42db,_0x17c6f7){const _0x68a4b4=a40_0x190e,_0x3b9845=_0x12f3d6[_0x68a4b4(0xf1)];let _0xd412b3=_0x68a4b4(0x10b);try{const _0x367ea4=resolve(dirname(fileURLToPath(import.meta.url)),'..'),_0xce4950=JSON[_0x68a4b4(0x11c)](readFileSync(resolve(_0x367ea4,'package.json'),_0x68a4b4(0x10c)));_0xd412b3=_0xce4950[_0x68a4b4(0x117)]||_0x68a4b4(0x10b);}catch{}const _0x22326e=BUILD_NUMBER?_0xd412b3+'+'+BUILD_NUMBER:_0xd412b3;console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](CLI_BIN_NAME+_0x68a4b4(0x100))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('─'[_0x68a4b4(0x104)](0x32))),console[_0x68a4b4(0x112)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x22326e),console[_0x68a4b4(0x112)](_0x68a4b4(0x127)+process[_0x68a4b4(0x117)]),console['log'](_0x68a4b4(0x11a)+process[_0x68a4b4(0xfe)]+'\x20'+process[_0x68a4b4(0x12e)]),console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xf8))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x47c7e6=getGlobalConfigPath(),_0x253193=getProjectConfigPath();console[_0x68a4b4(0x112)](_0x68a4b4(0x111)+(_0x47c7e6||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf5)+(_0x253193||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold']('\x20\x20Merged\x20Config')),console[_0x68a4b4(0x112)](a40_0x5b426d['gray']('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x523400=buildConfigFromFlags(_0x17c6f7);console[_0x68a4b4(0x112)](_0x68a4b4(0x101)+(_0x523400[_0x68a4b4(0x12a)]||a40_0x5b426d['red']('(not\x20set)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0xec)+_0x523400[_0x68a4b4(0x108)]),console[_0x68a4b4(0x112)](_0x68a4b4(0x12d)+_0x523400[_0x68a4b4(0xfc)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x523400['apiDir']),console['log'](_0x68a4b4(0x129)+(_0x523400[_0x68a4b4(0x115)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x102)+(_0x523400['currentApp']||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x106)+(_0x523400[_0x68a4b4(0xf9)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x523400[_0x68a4b4(0x114)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x113)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xff)+(_0x523400['pageSize']??a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x126)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf7)+_0x523400['riskLevel']),console['log'](_0x68a4b4(0x10e)+_0x523400[_0x68a4b4(0xfd)]),console['log'](_0x68a4b4(0x11b)+(_0x523400[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0x12c)+_0x523400[_0x68a4b4(0x122)][_0x68a4b4(0xf4)]+')'):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d))));const _0x5cc382=Object['keys'](_0x523400[_0x68a4b4(0x110)]);if(_0x5cc382[_0x68a4b4(0xf4)]>0x0){console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold'](_0x68a4b4(0x124))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));for(const _0x25607a of _0x5cc382){const _0x4d3170=_0x523400[_0x68a4b4(0x110)][_0x25607a],_0x3f3e71=_0x25607a===_0x523400[_0x68a4b4(0x115)],_0x5ef2f0=_0x25607a===_0x523400['currentApp'],_0x5a0b69=_0x5ef2f0?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xf6)):'',_0x933a04=_0x3f3e71?_0x68a4b4(0x125):'';console['log']('\x20\x20'+_0x25607a+_0x933a04+_0x5a0b69),console[_0x68a4b4(0x112)](_0x68a4b4(0xf3)+_0x4d3170[_0x68a4b4(0x103)]),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x4d3170[_0x68a4b4(0x108)]||a40_0x5b426d[_0x68a4b4(0x11f)]('(inherit)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0x118)+(_0x4d3170[_0x68a4b4(0xee)]||a40_0x5b426d['gray'](_0x68a4b4(0x12b)))),console['log'](_0x68a4b4(0xf0)+(_0x4d3170[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xeb)):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x12b))));}}console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xef))),console[_0x68a4b4(0x112)](a40_0x5b426d['gray'](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e))),console[_0x68a4b4(0x112)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x68a4b4(0x112)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x68a4b4(0x112)](_0x68a4b4(0x109)+getRuntimeDomain()),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xfa))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));const _0x317f65=_0x523400['cookie']||_0x12f3d6['auth'][_0x68a4b4(0x122)];if(_0x317f65){const _0x5aab33=await getIsSessionValid();console['log'](_0x68a4b4(0x10d)+(_0x5aab33?a40_0x5b426d['green']('✓\x20Valid'):a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x116))));}else console[_0x68a4b4(0x112)](_0x68a4b4(0x10d)+a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x120)));console[_0x68a4b4(0x112)]();}function a40_0x190e(_0x2d3e8f,_0x4516c7){_0x2d3e8f=_0x2d3e8f-0xe9;const _0x499163=a40_0x4991();let _0x190eb4=_0x499163[_0x2d3e8f];return _0x190eb4;}export const doctorCommand={'name':a40_0x391a9c(0xf2),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity',async 'run'(_0x224a3f,_0x1ddaf3,_0x51185a){await runDoctor(_0x224a3f,_0x1ddaf3,_0x51185a);}};function a40_0x4991(){const _0x56f7ba=['length','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','explicitAppName','\x20\x20Auth','6921522ptYvgN','locale','verbose','platform','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','appcode','repeat','5mRsXbL','\x20\x20explicitAppName:\x20','3112432iKBiBA','env','\x20\x20runtimeDomain:\x20\x20\x20','1974777uFSQlz','0.0.0','utf-8','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','apps','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','(default:\x20pretty)','format','defaultApp','✗\x20Expired','version','\x20\x20\x20\x20apiDir:\x20\x20\x20','bold','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','parse','(none)','(not\x20found)','gray','✗\x20Not\x20logged\x20in','green','cookie','1004214Xllvgd','\x20\x20Apps','\x20(default)','(default)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','959651spVgbT','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appCode','(inherit)','(set,\x20length=','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','6194976JbRhlD','1jXlLIT','\x20\x20─','(set)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','13159746cviyVk','apiDir','\x20\x20API\x20Endpoints','\x20\x20\x20\x20cookie:\x20\x20\x20','config','doctor','\x20\x20\x20\x20appcode:\x20\x20'];a40_0x4991=function(){return _0x56f7ba;};return a40_0x4991();}
@@ -1 +1 @@
1
- const a41_0x28f762=a41_0x5365;(function(_0x1b5d79,_0x2449b7){const _0x2366b7=a41_0x5365,_0x56b731=_0x1b5d79();while(!![]){try{const _0x464541=-parseInt(_0x2366b7(0x1f1))/0x1+-parseInt(_0x2366b7(0x1f0))/0x2*(parseInt(_0x2366b7(0x1f8))/0x3)+parseInt(_0x2366b7(0x1fb))/0x4+parseInt(_0x2366b7(0x1fa))/0x5+parseInt(_0x2366b7(0x1f2))/0x6*(parseInt(_0x2366b7(0x1f4))/0x7)+-parseInt(_0x2366b7(0x1ec))/0x8+parseInt(_0x2366b7(0x1f9))/0x9;if(_0x464541===_0x2449b7)break;else _0x56b731['push'](_0x56b731['shift']());}catch(_0x15dbbc){_0x56b731['push'](_0x56b731['shift']());}}}(a41_0x2635,0x4c446));import{jsx as a41_0x6b5eee}from'react/jsx-runtime';function a41_0x2635(){const _0x2f10c7=['429916RfExWo','3631536tPqllw','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','执行初始化配置命令','init','146074wqOPBV','117959vrSZXT','6078yBSMIV','env','3766xWAVjv','logger','yes','info','24mxneeK','2316285DMpCAy','2793745pBONAC'];a41_0x2635=function(){return _0x2f10c7;};return a41_0x2635();}function a41_0x5365(_0x1fa417,_0x40cd61){_0x1fa417=_0x1fa417-0x1ec;const _0x26356c=a41_0x2635();let _0x5365ab=_0x26356c[_0x1fa417];return _0x5365ab;}import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a41_0x28f762(0x1ef),'description':a41_0x28f762(0x1ed),async 'run'(_0x450312,_0x55f652,_0x339f28){const _0xa9f35=a41_0x28f762;_0x450312[_0xa9f35(0x1f5)][_0xa9f35(0x1f7)](_0xa9f35(0x1ef),_0xa9f35(0x1ee));const _0x33fbc3=_0x339f28['appcode'],_0x1fee85=_0x339f28[_0xa9f35(0x1f3)];render(a41_0x6b5eee(Init,{'appcode':_0x33fbc3,'env':_0x1fee85,'autoYes':_0x339f28[_0xa9f35(0x1f6)]}));}};
1
+ const a41_0x385147=a41_0x258d;(function(_0x5a8ce0,_0x50c6e3){const _0x1a3e4f=a41_0x258d,_0x43d166=_0x5a8ce0();while(!![]){try{const _0x3cbbfb=parseInt(_0x1a3e4f(0x179))/0x1*(parseInt(_0x1a3e4f(0x16d))/0x2)+parseInt(_0x1a3e4f(0x17d))/0x3+parseInt(_0x1a3e4f(0x17e))/0x4*(parseInt(_0x1a3e4f(0x17b))/0x5)+parseInt(_0x1a3e4f(0x176))/0x6+-parseInt(_0x1a3e4f(0x16e))/0x7*(-parseInt(_0x1a3e4f(0x171))/0x8)+parseInt(_0x1a3e4f(0x17a))/0x9*(parseInt(_0x1a3e4f(0x175))/0xa)+-parseInt(_0x1a3e4f(0x17c))/0xb*(parseInt(_0x1a3e4f(0x172))/0xc);if(_0x3cbbfb===_0x50c6e3)break;else _0x43d166['push'](_0x43d166['shift']());}catch(_0x315353){_0x43d166['push'](_0x43d166['shift']());}}}(a41_0x27ae,0x38f4d));function a41_0x258d(_0x5af3a1,_0x4403d8){_0x5af3a1=_0x5af3a1-0x16d;const _0x27aecd=a41_0x27ae();let _0x258dcd=_0x27aecd[_0x5af3a1];return _0x258dcd;}function a41_0x27ae(){const _0x3d432e=['6358inciCr','687444vgAogv','36uejsHZ','yes','1146BqpOQO','11228DZPPLw','info','appcode','96BhHWIr','21036VBobeZ','init','logger','520JZXWEz','2717442ZSYbiT','env','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','82DAjuXR','7056QJQYLi','254150zkhAVm'];a41_0x27ae=function(){return _0x3d432e;};return a41_0x27ae();}import{jsx as a41_0x570192}from'react/jsx-runtime';import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a41_0x385147(0x173),'description':a41_0x385147(0x178),async 'run'(_0x4151cf,_0x530de1,_0x1e2205){const _0x5c22f0=a41_0x385147;_0x4151cf[_0x5c22f0(0x174)][_0x5c22f0(0x16f)]('init','执行初始化配置命令');const _0x351c04=_0x1e2205[_0x5c22f0(0x170)],_0x48d0d2=_0x1e2205[_0x5c22f0(0x177)];render(a41_0x570192(Init,{'appcode':_0x351c04,'env':_0x48d0d2,'autoYes':_0x1e2205[_0x5c22f0(0x17f)]}));}};
@@ -1 +1 @@
1
- const a42_0x409639=a42_0x4faf;function a42_0x4faf(_0xbb7494,_0x58d68c){_0xbb7494=_0xbb7494-0x166;const _0x56a977=a42_0x56a9();let _0x4faf18=_0x56a977[_0xbb7494];return _0x4faf18;}(function(_0xfa132,_0x35cf55){const _0x5135b2=a42_0x4faf,_0x38985b=_0xfa132();while(!![]){try{const _0x3cbaec=parseInt(_0x5135b2(0x171))/0x1*(parseInt(_0x5135b2(0x166))/0x2)+parseInt(_0x5135b2(0x16b))/0x3*(parseInt(_0x5135b2(0x170))/0x4)+parseInt(_0x5135b2(0x172))/0x5*(-parseInt(_0x5135b2(0x176))/0x6)+parseInt(_0x5135b2(0x169))/0x7*(-parseInt(_0x5135b2(0x167))/0x8)+-parseInt(_0x5135b2(0x174))/0x9+parseInt(_0x5135b2(0x16a))/0xa+-parseInt(_0x5135b2(0x168))/0xb*(parseInt(_0x5135b2(0x173))/0xc);if(_0x3cbaec===_0x35cf55)break;else _0x38985b['push'](_0x38985b['shift']());}catch(_0x181fea){_0x38985b['push'](_0x38985b['shift']());}}}(a42_0x56a9,0xc1e85));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':a42_0x409639(0x16d),'description':a42_0x409639(0x16c),async 'run'(_0x9a5e29,_0xfe3669,_0x5f4f0e){const _0x31509d=a42_0x409639;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x31509d(0x175)](_0x31509d(0x16f))):console[_0x31509d(0x175)](_0x31509d(0x16e));}};function a42_0x56a9(){const _0x5a2ea7=['logout','!\x20Not\x20logged\x20in','✓\x20Logged\x20out','5216608uGlRen','7OksvGr','1085sBZqvb','444NlrxRD','3739365BqeuVg','log','16890sFmtUr','372558ytagVQ','8iNnOjY','507133wCYnrZ','3853843RUWntJ','14688400EqXWLM','3xvMtMk','Logout\x20from\x20rabetbase'];a42_0x56a9=function(){return _0x5a2ea7;};return a42_0x56a9();}
1
+ const a42_0x56cf26=a42_0x1496;(function(_0x56affd,_0x1379f5){const _0x1cb462=a42_0x1496,_0xdbc665=_0x56affd();while(!![]){try{const _0x251799=-parseInt(_0x1cb462(0x19b))/0x1*(-parseInt(_0x1cb462(0x19a))/0x2)+-parseInt(_0x1cb462(0x19f))/0x3*(parseInt(_0x1cb462(0x19e))/0x4)+-parseInt(_0x1cb462(0x197))/0x5*(parseInt(_0x1cb462(0x1a1))/0x6)+-parseInt(_0x1cb462(0x1a4))/0x7+-parseInt(_0x1cb462(0x19c))/0x8*(parseInt(_0x1cb462(0x1a2))/0x9)+parseInt(_0x1cb462(0x198))/0xa+parseInt(_0x1cb462(0x1a0))/0xb;if(_0x251799===_0x1379f5)break;else _0xdbc665['push'](_0xdbc665['shift']());}catch(_0x53f2a5){_0xdbc665['push'](_0xdbc665['shift']());}}}(a42_0xa5b6,0x814ef));function a42_0xa5b6(){const _0x240bf9=['log','7176792SIbgHd','46975Wopmrz','10128630XylENG','!\x20Not\x20logged\x20in','43916NmSYuc','27jNbrzC','8CvSMgR','Logout\x20from\x20rabetbase','1049556oYFgRI','3pMGvIy','18171659etHPdQ','246eCwxZp','9496899LApmkg'];a42_0xa5b6=function(){return _0x240bf9;};return a42_0xa5b6();}import{unlinkSync,existsSync}from'node:fs';function a42_0x1496(_0x5d9a25,_0x6a0caf){_0x5d9a25=_0x5d9a25-0x197;const _0xa5b6de=a42_0xa5b6();let _0x14962f=_0xa5b6de[_0x5d9a25];return _0x14962f;}import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':'logout','description':a42_0x56cf26(0x19d),async 'run'(_0x21e3e2,_0x287c23,_0x549a64){const _0x1167be=a42_0x56cf26;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x1167be(0x1a3)]('✓\x20Logged\x20out')):console[_0x1167be(0x1a3)](_0x1167be(0x199));}};
@@ -1 +1 @@
1
- const a43_0x11112c=a43_0x2503;function a43_0x7899(){const _0x4d3df3=['level','en-US','command','logger','details','48430701Glclqe','forEach','30HUzCQl','timestamp','*\x20No\x20logs\x20found','error','499870MZOWfj','logs','duration','View\x20or\x20clear\x20CLI\x20logs','\x20\x20\x20Time:\x20','warn','936jZoAtC','11304960ffUyFP','readLogs','1666392xsnZCR','5527825KJFxMB','*\x20Lovrabet\x20CLI\x20logs:\x0a','*\x20Logs\x20cleared','length','success','log','1138250DiqqfW','4780ygkMKO','clear','\x20\x20\x20Details:\x20','clearLogs'];a43_0x7899=function(){return _0x4d3df3;};return a43_0x7899();}(function(_0x328c22,_0x1d346d){const _0x58d3d6=a43_0x2503,_0x254549=_0x328c22();while(!![]){try{const _0x527e71=-parseInt(_0x58d3d6(0x20c))/0x1+-parseInt(_0x58d3d6(0x205))/0x2+parseInt(_0x58d3d6(0x202))/0x3*(parseInt(_0x58d3d6(0x20d))/0x4)+-parseInt(_0x58d3d6(0x206))/0x5+-parseInt(_0x58d3d6(0x1f8))/0x6*(parseInt(_0x58d3d6(0x1fc))/0x7)+-parseInt(_0x58d3d6(0x203))/0x8+parseInt(_0x58d3d6(0x1f6))/0x9;if(_0x527e71===_0x1d346d)break;else _0x254549['push'](_0x254549['shift']());}catch(_0x5a8fab){_0x254549['push'](_0x254549['shift']());}}}(a43_0x7899,0xdd660));function showLogs(_0x3a14d5){const _0x4aa74b=a43_0x2503,_0x1066da=_0x3a14d5[_0x4aa74b(0x1f4)][_0x4aa74b(0x204)]();if(_0x1066da['length']===0x0){console[_0x4aa74b(0x20b)](_0x4aa74b(0x1fa));return;}console[_0x4aa74b(0x20b)](_0x4aa74b(0x207)),_0x1066da[_0x4aa74b(0x1f7)]((_0x56a785,_0x253e65)=>{const _0x560169=_0x4aa74b,_0x144367=new Date(_0x56a785[_0x560169(0x1f9)])['toLocaleString'](_0x560169(0x1f2)),_0x241ae4=_0x56a785[_0x560169(0x211)]===_0x560169(0x20a)?'√':_0x56a785[_0x560169(0x211)]===_0x560169(0x1fb)?'×':_0x56a785['level']===_0x560169(0x201)?'!':'i';console[_0x560169(0x20b)](_0x253e65+0x1+'.\x20'+_0x241ae4+'\x20['+_0x56a785[_0x560169(0x1f3)]+']\x20'+_0x56a785['message']),console[_0x560169(0x20b)](_0x560169(0x200)+_0x144367),_0x56a785[_0x560169(0x1fe)]&&console[_0x560169(0x20b)]('\x20\x20\x20Duration:\x20'+_0x56a785[_0x560169(0x1fe)]+'ms'),_0x56a785[_0x560169(0x1f5)]&&Object['keys'](_0x56a785['details'])[_0x560169(0x209)]>0x0&&console['log'](_0x560169(0x20f)+JSON['stringify'](_0x56a785[_0x560169(0x1f5)],null,0x2)),console[_0x560169(0x20b)]('');});}function a43_0x2503(_0x2fe87b,_0x48dde6){_0x2fe87b=_0x2fe87b-0x1f2;const _0x789942=a43_0x7899();let _0x2503d6=_0x789942[_0x2fe87b];return _0x2503d6;}function clearLogs(_0x362355){const _0x2d4ec6=a43_0x2503;_0x362355[_0x2d4ec6(0x1f4)][_0x2d4ec6(0x210)](),console[_0x2d4ec6(0x20b)](_0x2d4ec6(0x208));}export const logsCommand={'name':a43_0x11112c(0x1fd),'description':a43_0x11112c(0x1ff),async 'run'(_0x51acd7,_0x5c1020,_0x111531){const _0x4cb5f0=a43_0x11112c;_0x111531[_0x4cb5f0(0x20e)]?clearLogs(_0x51acd7):showLogs(_0x51acd7);}};
1
+ const a43_0xc46499=a43_0x308c;(function(_0x3dad49,_0xed101b){const _0xab1561=a43_0x308c,_0x281c4b=_0x3dad49();while(!![]){try{const _0x467f97=parseInt(_0xab1561(0x138))/0x1+-parseInt(_0xab1561(0x139))/0x2+parseInt(_0xab1561(0x12a))/0x3+-parseInt(_0xab1561(0x148))/0x4*(-parseInt(_0xab1561(0x13e))/0x5)+parseInt(_0xab1561(0x131))/0x6*(-parseInt(_0xab1561(0x141))/0x7)+-parseInt(_0xab1561(0x142))/0x8*(parseInt(_0xab1561(0x13c))/0x9)+parseInt(_0xab1561(0x12f))/0xa;if(_0x467f97===_0xed101b)break;else _0x281c4b['push'](_0x281c4b['shift']());}catch(_0x1c405d){_0x281c4b['push'](_0x281c4b['shift']());}}}(a43_0x12c2,0xf17bb));function showLogs(_0x1c01d5){const _0x345205=a43_0x308c,_0x588fb8=_0x1c01d5[_0x345205(0x144)][_0x345205(0x145)]();if(_0x588fb8[_0x345205(0x146)]===0x0){console['log'](_0x345205(0x133));return;}console[_0x345205(0x132)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x588fb8[_0x345205(0x135)]((_0x343bd2,_0x5a5311)=>{const _0x3132b5=_0x345205,_0xdbc9bd=new Date(_0x343bd2[_0x3132b5(0x12e)])[_0x3132b5(0x137)](_0x3132b5(0x13d)),_0x2f12da=_0x343bd2[_0x3132b5(0x12d)]==='success'?'√':_0x343bd2['level']===_0x3132b5(0x149)?'×':_0x343bd2['level']===_0x3132b5(0x12c)?'!':'i';console[_0x3132b5(0x132)](_0x5a5311+0x1+'.\x20'+_0x2f12da+'\x20['+_0x343bd2[_0x3132b5(0x136)]+']\x20'+_0x343bd2['message']),console['log'](_0x3132b5(0x143)+_0xdbc9bd),_0x343bd2['duration']&&console['log'](_0x3132b5(0x12b)+_0x343bd2[_0x3132b5(0x140)]+'ms'),_0x343bd2[_0x3132b5(0x134)]&&Object[_0x3132b5(0x13b)](_0x343bd2[_0x3132b5(0x134)])[_0x3132b5(0x146)]>0x0&&console[_0x3132b5(0x132)](_0x3132b5(0x13f)+JSON['stringify'](_0x343bd2[_0x3132b5(0x134)],null,0x2)),console['log']('');});}function clearLogs(_0x28c03c){const _0x4dcbf1=a43_0x308c;_0x28c03c[_0x4dcbf1(0x144)][_0x4dcbf1(0x147)](),console[_0x4dcbf1(0x132)](_0x4dcbf1(0x130));}function a43_0x12c2(){const _0x1f36a7=['en-US','15sGNXwg','\x20\x20\x20Details:\x20','duration','7gARdfq','10910888OZSAni','\x20\x20\x20Time:\x20','logger','readLogs','length','clearLogs','253212KtcbvT','error','4021566DMwhvi','\x20\x20\x20Duration:\x20','warn','level','timestamp','17605910xomQDh','*\x20Logs\x20cleared','6788706HgwAZM','log','*\x20No\x20logs\x20found','details','forEach','command','toLocaleString','1311980AugroK','2237150cKYcAH','logs','keys','9silIZn'];a43_0x12c2=function(){return _0x1f36a7;};return a43_0x12c2();}function a43_0x308c(_0x169424,_0x1977e2){_0x169424=_0x169424-0x12a;const _0x12c215=a43_0x12c2();let _0x308ceb=_0x12c215[_0x169424];return _0x308ceb;}export const logsCommand={'name':a43_0xc46499(0x13a),'description':'View\x20or\x20clear\x20CLI\x20logs',async 'run'(_0x385e6c,_0x471157,_0x1eb135){_0x1eb135['clear']?clearLogs(_0x385e6c):showLogs(_0x385e6c);}};
@@ -1 +1 @@
1
- const a44_0x43475d=a44_0x589b;(function(_0x435e84,_0x53bb31){const _0x395d20=a44_0x589b,_0x3e6772=_0x435e84();while(!![]){try{const _0x520713=parseInt(_0x395d20(0x92))/0x1+-parseInt(_0x395d20(0x89))/0x2*(parseInt(_0x395d20(0x85))/0x3)+parseInt(_0x395d20(0x99))/0x4*(parseInt(_0x395d20(0x93))/0x5)+parseInt(_0x395d20(0x94))/0x6*(-parseInt(_0x395d20(0x8b))/0x7)+parseInt(_0x395d20(0x88))/0x8*(parseInt(_0x395d20(0x98))/0x9)+-parseInt(_0x395d20(0x90))/0xa*(-parseInt(_0x395d20(0x9f))/0xb)+parseInt(_0x395d20(0x8f))/0xc;if(_0x520713===_0x53bb31)break;else _0x3e6772['push'](_0x3e6772['shift']());}catch(_0x17727f){_0x3e6772['push'](_0x3e6772['shift']());}}}(a44_0x3c15,0xda6b2));import{jsx as a44_0x16ff2e}from'react/jsx-runtime';function a44_0x3c15(){const _0x150c72=['cursor','mcp','mcp-install','31699176KPPgRk','50UMqLGh','other','48474JMeFGW','3744145GkihvE','18AFtvlo','nonInteractive','mcpOther','Configure\x20MCP\x20(Model\x20Context\x20Protocol)','9YqLDQQ','4YfRSXR','enableBffSave','执行配置\x20MCP\x20命令','claude','push','info','589721FxtgZi','../mcp/mcp-install-non-interactive.js','install','3765mnqrsc','logger','length','3029552toLjon','2234kELwni','mcpClaude','4174737yCeVOu'];a44_0x3c15=function(){return _0x150c72;};return a44_0x3c15();}import{render}from'ink';import{McpInstallUI}from'../mcp/McpInstallUI.js';import{mcpCommand as a44_0x5d785f}from'../mcp/main.js';function a44_0x589b(_0x1b0f50,_0x262f60){_0x1b0f50=_0x1b0f50-0x85;const _0x3c15ab=a44_0x3c15();let _0x589b2a=_0x3c15ab[_0x1b0f50];return _0x589b2a;}export const mcpCommand={'name':a44_0x43475d(0x8d),'description':a44_0x43475d(0x97),async 'run'(_0x35d4d9,_0x394674,_0x1932e8){const _0x204d6d=a44_0x43475d,_0x359414=_0x394674[0x0];if(_0x359414===_0x204d6d(0xa1)){const _0x23f3c8=[];if(_0x1932e8['mcpCursor']||_0x1932e8[_0x204d6d(0x8c)])_0x23f3c8[_0x204d6d(0x9d)](_0x204d6d(0x8c));if(_0x1932e8[_0x204d6d(0x8a)]||_0x1932e8[_0x204d6d(0x9c)])_0x23f3c8[_0x204d6d(0x9d)](_0x204d6d(0x9c));if(_0x1932e8[_0x204d6d(0x96)])_0x23f3c8[_0x204d6d(0x9d)](_0x204d6d(0x91));_0x35d4d9[_0x204d6d(0x86)][_0x204d6d(0x9e)](_0x204d6d(0x8e),_0x204d6d(0x9b),{'preselected':_0x23f3c8});if(_0x35d4d9[_0x204d6d(0x95)]&&_0x23f3c8[_0x204d6d(0x87)]>0x0){const {installMcpNonInteractive:_0x2f11c2}=await import(_0x204d6d(0xa0));await _0x2f11c2(_0x23f3c8,_0x1932e8[_0x204d6d(0x9a)]);}else render(a44_0x16ff2e(McpInstallUI,{'preselectedIDEs':_0x23f3c8,'enableBffSave':_0x1932e8['enableBffSave']}));}else await a44_0x5d785f(_0x359414,[],_0x1932e8);}};
1
+ const a44_0x340122=a44_0x5e70;(function(_0x170173,_0x3dd94e){const _0x2aebc9=a44_0x5e70,_0x347f65=_0x170173();while(!![]){try{const _0x506363=parseInt(_0x2aebc9(0x10b))/0x1+-parseInt(_0x2aebc9(0x104))/0x2*(-parseInt(_0x2aebc9(0x103))/0x3)+parseInt(_0x2aebc9(0x108))/0x4*(-parseInt(_0x2aebc9(0x106))/0x5)+parseInt(_0x2aebc9(0x10d))/0x6*(parseInt(_0x2aebc9(0xfe))/0x7)+parseInt(_0x2aebc9(0x107))/0x8*(-parseInt(_0x2aebc9(0x110))/0x9)+parseInt(_0x2aebc9(0xfc))/0xa+-parseInt(_0x2aebc9(0x100))/0xb;if(_0x506363===_0x3dd94e)break;else _0x347f65['push'](_0x347f65['shift']());}catch(_0x8d6372){_0x347f65['push'](_0x347f65['shift']());}}}(a44_0x33a8,0xc3b81));import{jsx as a44_0x4eb5fe}from'react/jsx-runtime';import{render}from'ink';import{McpInstallUI}from'../mcp/McpInstallUI.js';import{mcpCommand as a44_0x5165b5}from'../mcp/main.js';function a44_0x5e70(_0x5a3fa0,_0x6e0b2e){_0x5a3fa0=_0x5a3fa0-0xfa;const _0x33a8f4=a44_0x33a8();let _0x5e70b4=_0x33a8f4[_0x5a3fa0];return _0x5e70b4;}function a44_0x33a8(){const _0x1cff57=['push','other','9mqWBae','info','nonInteractive','enableBffSave','logger','337980DuIkss','mcp-install','878745HtgNuc','cursor','1789051iJznxE','install','claude','27717hgoyfl','290XaovrB','mcpCursor','5NzOgRr','979312OeQThQ','5952364VQYAxC','length','Configure\x20MCP\x20(Model\x20Context\x20Protocol)','1075823tSyhgs','mcp','6SxZlWD'];a44_0x33a8=function(){return _0x1cff57;};return a44_0x33a8();}export const mcpCommand={'name':a44_0x340122(0x10c),'description':a44_0x340122(0x10a),async 'run'(_0x233c75,_0x55db62,_0x514676){const _0xc73455=a44_0x340122,_0x4fe046=_0x55db62[0x0];if(_0x4fe046===_0xc73455(0x101)){const _0x34c832=[];if(_0x514676[_0xc73455(0x105)]||_0x514676[_0xc73455(0xff)])_0x34c832[_0xc73455(0x10e)](_0xc73455(0xff));if(_0x514676['mcpClaude']||_0x514676[_0xc73455(0x102)])_0x34c832[_0xc73455(0x10e)]('claude');if(_0x514676['mcpOther'])_0x34c832[_0xc73455(0x10e)](_0xc73455(0x10f));_0x233c75[_0xc73455(0xfb)][_0xc73455(0x111)](_0xc73455(0xfd),'执行配置\x20MCP\x20命令',{'preselected':_0x34c832});if(_0x233c75[_0xc73455(0x112)]&&_0x34c832[_0xc73455(0x109)]>0x0){const {installMcpNonInteractive:_0x27d94c}=await import('../mcp/mcp-install-non-interactive.js');await _0x27d94c(_0x34c832,_0x514676[_0xc73455(0xfa)]);}else render(a44_0x4eb5fe(McpInstallUI,{'preselectedIDEs':_0x34c832,'enableBffSave':_0x514676[_0xc73455(0xfa)]}));}else await a44_0x5165b5(_0x4fe046,[],_0x514676);}};
@@ -1 +1 @@
1
- (function(_0x505086,_0x2f5d49){const _0x47f933=a45_0xbd61,_0x64d93d=_0x505086();while(!![]){try{const _0x2d6c2b=parseInt(_0x47f933(0xcb))/0x1*(parseInt(_0x47f933(0xd0))/0x2)+-parseInt(_0x47f933(0xce))/0x3*(parseInt(_0x47f933(0xd1))/0x4)+-parseInt(_0x47f933(0xd2))/0x5*(parseInt(_0x47f933(0xd3))/0x6)+parseInt(_0x47f933(0xcc))/0x7+parseInt(_0x47f933(0xca))/0x8+parseInt(_0x47f933(0xc9))/0x9+-parseInt(_0x47f933(0xcf))/0xa*(-parseInt(_0x47f933(0xcd))/0xb);if(_0x2d6c2b===_0x2f5d49)break;else _0x64d93d['push'](_0x64d93d['shift']());}catch(_0x5d8eb9){_0x64d93d['push'](_0x64d93d['shift']());}}}(a45_0xf06f,0x38345));function a45_0xbd61(_0x526583,_0x15b884){_0x526583=_0x526583-0xc9;const _0xf06fcd=a45_0xf06f();let _0xbd6108=_0xf06fcd[_0x526583];return _0xbd6108;}import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a45_0xf06f(){const _0x3dafba=['1216386cBmndX','1791846GquLnN','2545000cudVRf','6ztFGLl','749070FbfqTK','22yPImQV','3dRryoQ','162290ltrWjK','50122SULqQa','1496436QENARA','5JQNOhn'];a45_0xf06f=function(){return _0x3dafba;};return a45_0xf06f();}export const menuDefinitions=[menuSync,menuUpdate];
1
+ function a45_0x48ca(){const _0x5a08a3=['2922372eFElBO','284720syBKDa','30CUYrgF','96230DVcKbQ','2817gmWVse','3xizDJo','1783890UXJjww','116980EQyqMz','10641264vYmvIO','1490167zKKeLr'];a45_0x48ca=function(){return _0x5a08a3;};return a45_0x48ca();}(function(_0x168593,_0x155e19){const _0x5232f2=a45_0x4e14,_0x5306ba=_0x168593();while(!![]){try{const _0x35f105=parseInt(_0x5232f2(0x1c1))/0x1+-parseInt(_0x5232f2(0x1bb))/0x2+parseInt(_0x5232f2(0x1c0))/0x3*(parseInt(_0x5232f2(0x1c2))/0x4)+-parseInt(_0x5232f2(0x1bc))/0x5+parseInt(_0x5232f2(0x1bd))/0x6*(-parseInt(_0x5232f2(0x1c4))/0x7)+-parseInt(_0x5232f2(0x1c3))/0x8+-parseInt(_0x5232f2(0x1bf))/0x9*(-parseInt(_0x5232f2(0x1be))/0xa);if(_0x35f105===_0x155e19)break;else _0x5306ba['push'](_0x5306ba['shift']());}catch(_0x3f2388){_0x5306ba['push'](_0x5306ba['shift']());}}}(a45_0x48ca,0xdec39));import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a45_0x4e14(_0x264885,_0x475299){_0x264885=_0x264885-0x1bb;const _0x48cade=a45_0x48ca();let _0x4e14e8=_0x48cade[_0x264885];return _0x4e14e8;}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a46_0x4a64(){const _0x4c0a82=['path','\x20\x20\x20\x20JS:\x20\x20','\x20\x20\x20\x20CSS:\x20','test','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','push','max','3jsNOac','join','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','264724GXaLSc','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','online','(unchanged)','660726cBsikM','length','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20Affected\x20menus:\x20','5RLzZLE','101868WGeGXj','\x20\x20No\x20pages\x20to\x20sync.','repeat','1686601dQmPsB','map','showOnline','8sCPzpS','45063FGxsrf','\x20\x20\x20\x20•\x20','4257715zSyLNB','630wkSviV','label','512936CGKdqK'];a46_0x4a64=function(){return _0x4c0a82;};return a46_0x4a64();}function a46_0x57dc(_0x1a1473,_0x30d017){_0x1a1473=_0x1a1473-0x16f;const _0x4a64c3=a46_0x4a64();let _0x57dcf8=_0x4a64c3[_0x1a1473];return _0x57dcf8;}(function(_0x203a4e,_0x3241ec){const _0x212057=a46_0x57dc,_0x27ed16=_0x203a4e();while(!![]){try{const _0x5efa86=parseInt(_0x212057(0x17f))/0x1*(-parseInt(_0x212057(0x182))/0x2)+-parseInt(_0x212057(0x186))/0x3+-parseInt(_0x212057(0x177))/0x4+-parseInt(_0x212057(0x18a))/0x5*(-parseInt(_0x212057(0x18b))/0x6)+parseInt(_0x212057(0x18e))/0x7*(parseInt(_0x212057(0x171))/0x8)+-parseInt(_0x212057(0x172))/0x9*(-parseInt(_0x212057(0x175))/0xa)+parseInt(_0x212057(0x174))/0xb;if(_0x5efa86===_0x3241ec)break;else _0x27ed16['push'](_0x27ed16['shift']());}catch(_0x51f8d3){_0x27ed16['push'](_0x27ed16['shift']());}}}(a46_0x4a64,0x34751));function strWidth(_0x5547d7){const _0x5e76a5=a46_0x57dc;let _0x2aeb3b=0x0;for(const _0xca1324 of _0x5547d7){_0x2aeb3b+=/[\u4e00-\u9fa5]/[_0x5e76a5(0x17b)](_0xca1324)?0x2:0x1;}return _0x2aeb3b;}function padRight(_0x28c7da,_0x1c2d60){const _0x5989c5=a46_0x57dc,_0xd0141e=strWidth(_0x28c7da);return _0x28c7da+'\x20'[_0x5989c5(0x18d)](Math[_0x5989c5(0x17e)](0x0,_0x1c2d60-_0xd0141e));}export function renderCompareTable(_0x3407d4,_0x47aa49={}){const _0x310bd7=a46_0x57dc;if(_0x3407d4[_0x310bd7(0x187)]===0x0)return'';const _0x569bd2=_0x47aa49[_0x310bd7(0x170)]??!![],_0x38ce6d=Math[_0x310bd7(0x17e)](0x1e,..._0x3407d4[_0x310bd7(0x16f)](_0x2679f0=>strWidth(_0x2679f0[_0x310bd7(0x176)]))),_0x5050e9=0x4,_0x42bda2=[],_0x15d766='\x20\x20'+padRight('Menu\x20Name',_0x38ce6d),_0x344a1b=padRight('Local',_0x5050e9),_0x33f832=_0x569bd2?'\x20\x20'+padRight('Platform',_0x5050e9):'';_0x42bda2[_0x310bd7(0x17d)](_0x15d766+'\x20\x20'+_0x344a1b+(_0x569bd2?_0x33f832:'')),_0x42bda2[_0x310bd7(0x17d)]('\x20\x20'+'─'[_0x310bd7(0x18d)](_0x38ce6d)+'\x20\x20'+'─'['repeat'](_0x5050e9)+(_0x569bd2?'\x20\x20'+'─'[_0x310bd7(0x18d)](_0x5050e9):''));for(const _0x5e3a14 of _0x3407d4){const _0x1ed6f=padRight(_0x5e3a14[_0x310bd7(0x176)],_0x38ce6d),_0x52a782=_0x5e3a14['local']?'✓':'✗',_0x446bf2=padRight(_0x52a782,_0x5050e9);let _0x1abca3='\x20\x20'+_0x1ed6f+'\x20\x20'+_0x446bf2;if(_0x569bd2){const _0x27dadc=_0x5e3a14[_0x310bd7(0x184)]?'✓':'✗';_0x1abca3+='\x20\x20'+padRight(_0x27dadc,_0x5050e9);}_0x42bda2['push'](_0x1abca3);}return _0x42bda2[_0x310bd7(0x180)]('\x0a');}export function renderSyncSummary(_0x4fa46d,_0x2f3321){const _0x1b9235=a46_0x57dc;if(_0x4fa46d[_0x1b9235(0x187)]===0x0)return _0x2f3321?_0x1b9235(0x183):_0x1b9235(0x18c);const _0x482bb0=['\x20\x20'+_0x4fa46d['length']+_0x1b9235(0x17c)];for(const _0x5a4fbc of _0x4fa46d){_0x482bb0[_0x1b9235(0x17d)](_0x1b9235(0x173)+_0x5a4fbc['label']+'\x20('+_0x5a4fbc[_0x1b9235(0x178)]+')');}return _0x482bb0['join']('\x0a');}export function renderUpdateSummary(_0x508674,_0x6a117){const _0x34dcfa=a46_0x57dc;if(_0x508674[_0x34dcfa(0x187)]===0x0)return _0x34dcfa(0x181);const _0x587c3c=['\x20\x20'+_0x508674[_0x34dcfa(0x187)]+_0x34dcfa(0x188),_0x34dcfa(0x179)+(_0x6a117[0x0]??_0x34dcfa(0x185)),_0x34dcfa(0x17a)+(_0x6a117[0x1]??_0x34dcfa(0x185)),'',_0x34dcfa(0x189)+_0x508674[_0x34dcfa(0x180)](',\x20')];return _0x587c3c[_0x34dcfa(0x180)]('\x0a');}
1
+ function a46_0x17e7(_0x28f512,_0x473f7a){_0x28f512=_0x28f512-0x6c;const _0x407178=a46_0x4071();let _0x17e73f=_0x407178[_0x28f512];return _0x17e73f;}(function(_0x148763,_0x2a9dc2){const _0x1bc33a=a46_0x17e7,_0x53a2e6=_0x148763();while(!![]){try{const _0x4042fc=-parseInt(_0x1bc33a(0x75))/0x1*(parseInt(_0x1bc33a(0x89))/0x2)+parseInt(_0x1bc33a(0x86))/0x3*(parseInt(_0x1bc33a(0x77))/0x4)+-parseInt(_0x1bc33a(0x7a))/0x5*(parseInt(_0x1bc33a(0x7e))/0x6)+parseInt(_0x1bc33a(0x79))/0x7*(-parseInt(_0x1bc33a(0x7f))/0x8)+-parseInt(_0x1bc33a(0x6f))/0x9*(-parseInt(_0x1bc33a(0x85))/0xa)+parseInt(_0x1bc33a(0x8b))/0xb*(-parseInt(_0x1bc33a(0x74))/0xc)+parseInt(_0x1bc33a(0x6c))/0xd;if(_0x4042fc===_0x2a9dc2)break;else _0x53a2e6['push'](_0x53a2e6['shift']());}catch(_0x2a1c1b){_0x53a2e6['push'](_0x53a2e6['shift']());}}}(a46_0x4071,0x9c368));function strWidth(_0x195342){let _0x320945=0x0;for(const _0xdf92fe of _0x195342){_0x320945+=/[\u4e00-\u9fa5]/['test'](_0xdf92fe)?0x2:0x1;}return _0x320945;}function a46_0x4071(){const _0x2f1c7a=['110cJKTPT','253335fivzyw','\x20\x20Affected\x20menus:\x20','push','2241164mcTXep','\x20\x20\x20\x20•\x20','11KpQfbm','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','path','45319703XHwVOJ','max','local','70317SINGdL','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','join','Platform','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','9809256UBBNdI','1OwWjvl','Menu\x20Name','20ZcgjvU','length','7sVSSWK','1282075gXUWLI','(unchanged)','\x20\x20\x20\x20JS:\x20\x20','Local','18bZPJvr','5177488AUnMEa','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','label','\x20\x20No\x20pages\x20to\x20sync.','repeat','map'];a46_0x4071=function(){return _0x2f1c7a;};return a46_0x4071();}function padRight(_0x54b4f4,_0x2f34a5){const _0x20760e=strWidth(_0x54b4f4);return _0x54b4f4+'\x20'['repeat'](Math['max'](0x0,_0x2f34a5-_0x20760e));}export function renderCompareTable(_0x2a5952,_0x5c323c={}){const _0x34181a=a46_0x17e7;if(_0x2a5952[_0x34181a(0x78)]===0x0)return'';const _0xddf87c=_0x5c323c['showOnline']??!![],_0x3f7764=Math[_0x34181a(0x6d)](0x1e,..._0x2a5952[_0x34181a(0x84)](_0x5d7de7=>strWidth(_0x5d7de7[_0x34181a(0x81)]))),_0x9b127e=0x4,_0x40d032=[],_0x42b7da='\x20\x20'+padRight(_0x34181a(0x76),_0x3f7764),_0x1aea44=padRight(_0x34181a(0x7d),_0x9b127e),_0x1d73ae=_0xddf87c?'\x20\x20'+padRight(_0x34181a(0x72),_0x9b127e):'';_0x40d032[_0x34181a(0x88)](_0x42b7da+'\x20\x20'+_0x1aea44+(_0xddf87c?_0x1d73ae:'')),_0x40d032[_0x34181a(0x88)]('\x20\x20'+'─'[_0x34181a(0x83)](_0x3f7764)+'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e)+(_0xddf87c?'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e):''));for(const _0x429010 of _0x2a5952){const _0x110648=padRight(_0x429010[_0x34181a(0x81)],_0x3f7764),_0x3d0be3=_0x429010[_0x34181a(0x6e)]?'✓':'✗',_0x218a49=padRight(_0x3d0be3,_0x9b127e);let _0x99b677='\x20\x20'+_0x110648+'\x20\x20'+_0x218a49;if(_0xddf87c){const _0x31a5f2=_0x429010['online']?'✓':'✗';_0x99b677+='\x20\x20'+padRight(_0x31a5f2,_0x9b127e);}_0x40d032[_0x34181a(0x88)](_0x99b677);}return _0x40d032[_0x34181a(0x71)]('\x0a');}export function renderSyncSummary(_0x437617,_0x22b6b3){const _0x88442=a46_0x17e7;if(_0x437617[_0x88442(0x78)]===0x0)return _0x22b6b3?_0x88442(0x80):_0x88442(0x82);const _0x4d8cf8=['\x20\x20'+_0x437617[_0x88442(0x78)]+_0x88442(0x73)];for(const _0x32923a of _0x437617){_0x4d8cf8[_0x88442(0x88)](_0x88442(0x8a)+_0x32923a[_0x88442(0x81)]+'\x20('+_0x32923a[_0x88442(0x8d)]+')');}return _0x4d8cf8['join']('\x0a');}export function renderUpdateSummary(_0x39f397,_0x113b53){const _0x5f15f4=a46_0x17e7;if(_0x39f397[_0x5f15f4(0x78)]===0x0)return _0x5f15f4(0x70);const _0x575fb4=['\x20\x20'+_0x39f397['length']+_0x5f15f4(0x8c),_0x5f15f4(0x7c)+(_0x113b53[0x0]??_0x5f15f4(0x7b)),'\x20\x20\x20\x20CSS:\x20'+(_0x113b53[0x1]??_0x5f15f4(0x7b)),'',_0x5f15f4(0x87)+_0x39f397[_0x5f15f4(0x71)](',\x20')];return _0x575fb4[_0x5f15f4(0x71)]('\x0a');}
@@ -1 +1 @@
1
- function a47_0xf855(_0x201097,_0x173af9){_0x201097=_0x201097-0xa6;var _0x277cbc=a47_0x277c();var _0xf8552e=_0x277cbc[_0x201097];return _0xf8552e;}(function(_0xceadb,_0x124ef6){var _0xb85e1e=a47_0xf855,_0xbb788c=_0xceadb();while(!![]){try{var _0x443950=-parseInt(_0xb85e1e(0xa8))/0x1+-parseInt(_0xb85e1e(0xaa))/0x2+parseInt(_0xb85e1e(0xac))/0x3+-parseInt(_0xb85e1e(0xab))/0x4+parseInt(_0xb85e1e(0xad))/0x5+-parseInt(_0xb85e1e(0xa7))/0x6+-parseInt(_0xb85e1e(0xa9))/0x7*(-parseInt(_0xb85e1e(0xa6))/0x8);if(_0x443950===_0x124ef6)break;else _0xbb788c['push'](_0xbb788c['shift']());}catch(_0x4fed24){_0xbb788c['push'](_0xbb788c['shift']());}}}(a47_0x277c,0xd3b17));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';function a47_0x277c(){var _0x4fd543=['1254553lRYOAc','10757845iCQNmo','346064yRpixn','2901112YWTzrI','1788108pixLDD','6020100hYpErx','8stBToz','1901598BHHHsc'];a47_0x277c=function(){return _0x4fd543;};return a47_0x277c();}export*from'./inquirer.js';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
+ (function(_0x3a7b6c,_0x4b3512){var _0x1d9d42=a47_0x24b6,_0x420960=_0x3a7b6c();while(!![]){try{var _0x510738=parseInt(_0x1d9d42(0x188))/0x1+parseInt(_0x1d9d42(0x18a))/0x2*(parseInt(_0x1d9d42(0x18e))/0x3)+-parseInt(_0x1d9d42(0x190))/0x4+parseInt(_0x1d9d42(0x18c))/0x5*(parseInt(_0x1d9d42(0x18d))/0x6)+-parseInt(_0x1d9d42(0x189))/0x7+-parseInt(_0x1d9d42(0x191))/0x8*(parseInt(_0x1d9d42(0x187))/0x9)+parseInt(_0x1d9d42(0x18b))/0xa*(parseInt(_0x1d9d42(0x18f))/0xb);if(_0x510738===_0x4b3512)break;else _0x420960['push'](_0x420960['shift']());}catch(_0x2e17b7){_0x420960['push'](_0x420960['shift']());}}}(a47_0x1fac,0xb7eb3));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';export*from'./inquirer.js';function a47_0x24b6(_0x41a259,_0x203c02){_0x41a259=_0x41a259-0x187;var _0x1fac68=a47_0x1fac();var _0x24b60d=_0x1fac68[_0x41a259];return _0x24b60d;}export*from'./valid-url.js';export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';function a47_0x1fac(){var _0x52f044=['4416528xeJume','16XUCOcz','428751rVTTVl','619585NMCJEG','10026212DJvmUs','5542NsGlIX','9009430AwuDls','10IxUppi','2260074DbWpeA','1203OvQWVP','11wjKbEB'];a47_0x1fac=function(){return _0x52f044;};return a47_0x1fac();}export*from'./update-core.js';
@@ -1 +1 @@
1
- (function(_0x271541,_0x2bb225){const _0x5125cb=a48_0xc280,_0x528568=_0x271541();while(!![]){try{const _0x4dd20e=parseInt(_0x5125cb(0x1d5))/0x1*(-parseInt(_0x5125cb(0x1cc))/0x2)+parseInt(_0x5125cb(0x1c5))/0x3+parseInt(_0x5125cb(0x1c3))/0x4*(-parseInt(_0x5125cb(0x1e0))/0x5)+-parseInt(_0x5125cb(0x1e7))/0x6+parseInt(_0x5125cb(0x1d9))/0x7*(parseInt(_0x5125cb(0x1eb))/0x8)+-parseInt(_0x5125cb(0x1d3))/0x9+parseInt(_0x5125cb(0x1d7))/0xa*(parseInt(_0x5125cb(0x1cd))/0xb);if(_0x4dd20e===_0x2bb225)break;else _0x528568['push'](_0x528568['shift']());}catch(_0x22c20d){_0x528568['push'](_0x528568['shift']());}}}(a48_0x4b36,0xee13f));import a48_0x527298 from'chalk';function a48_0xc280(_0x10237f,_0x32e2d0){_0x10237f=_0x10237f-0x1c2;const _0x4b36b1=a48_0x4b36();let _0xc280df=_0x4b36b1[_0x10237f];return _0xc280df;}import{checkbox,input,confirm}from'@inquirer/prompts';import a48_0x27b2d7 from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0x5b86d7){const _0x5a6f98=a48_0xc280;return _0x5b86d7[_0x5a6f98(0x1cb)](_0x59a3de=>{const _0x3f26e2=_0x5a6f98;if(_0x59a3de?.[_0x3f26e2(0x1cf)]==='ExitPromptError')throw new Error(_0x3f26e2(0x1e2));throw _0x59a3de;});}export function startSpinner(_0x4e0a9e){const _0x391237=a48_0xc280;return a48_0x27b2d7({'text':_0x4e0a9e,'color':_0x391237(0x1d2)})[_0x391237(0x1ec)]();}export function stopSpinner(_0x277558,_0x363534,_0x213dc3){const _0x50cbea=a48_0xc280;_0x213dc3?_0x277558[_0x50cbea(0x1d6)](_0x363534):_0x277558['fail'](_0x363534);}export async function askConfirm(_0x357496){return onCancel(confirm({'message':_0x357496,'theme':{'prefix':''}}));}export async function askJsUrl(_0x27d024){const _0x2a3667=a48_0xc280;while(!![]){const _0x2c816a=await onCancel(input({'message':_0x2a3667(0x1dc),'default':_0x27d024,'theme':{'prefix':''}}));if(_0x2c816a[_0x2a3667(0x1c6)]()==='')throw new Error(_0x2a3667(0x1e2));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2a3667(0x1e4)](_0x2c816a[_0x2a3667(0x1c6)]())){console[_0x2a3667(0x1dd)](a48_0x527298[_0x2a3667(0x1c2)](_0x2a3667(0x1de)));continue;}const _0x1377d9=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x4de278=await isUrlReachable(_0x2c816a[_0x2a3667(0x1c6)]());stopSpinner(_0x1377d9,_0x2a3667(0x1ca),_0x4de278);if(!_0x4de278){console[_0x2a3667(0x1dd)](a48_0x527298[_0x2a3667(0x1c2)](_0x2a3667(0x1d8)));continue;}return _0x2c816a[_0x2a3667(0x1c6)]();}catch(_0x19221f){stopSpinner(_0x1377d9,_0x2a3667(0x1d4),![]);throw _0x19221f;}}}function a48_0x4b36(){const _0x265916=['1774129dIjvEz','label','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20JS\x20URL:','error','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','includes','65DtewuK','path','CANCEL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','test','[already\x20on\x20platform]','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','1845894FDhGyp','isTTY','[new]','CSS\x20URL\x20checked','8aEnrqN','start','gray','No\x20menus\x20selected.','red','239316VcYRAm','map','2565498VUjihf','trim','has','\x20\x20CSS\x20URL:','length','JS\x20URL\x20checked','catch','2HrHVsw','536789xDhopm','No\x20local\x20pages\x20found.','name','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','green','cyan','283032JLWmTY','JS\x20URL\x20check\x20failed','236547xCFrBi','succeed','250faWZAn','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'];a48_0x4b36=function(){return _0x265916;};return a48_0x4b36();}export async function askCssUrl(_0x479cf8){const _0x5620ce=a48_0xc280;while(!![]){const _0x1f669=await onCancel(input({'message':_0x5620ce(0x1c8),'default':_0x479cf8,'theme':{'prefix':''}}));if(_0x1f669['trim']()==='')throw new Error(_0x5620ce(0x1e2));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x5620ce(0x1e4)](_0x1f669[_0x5620ce(0x1c6)]())){console[_0x5620ce(0x1dd)](a48_0x527298[_0x5620ce(0x1c2)](_0x5620ce(0x1db)));continue;}const _0x3f939e=startSpinner(_0x5620ce(0x1e3));try{const _0x22f74b=await isUrlReachable(_0x1f669[_0x5620ce(0x1c6)]());stopSpinner(_0x3f939e,_0x5620ce(0x1ea),_0x22f74b);if(!_0x22f74b){console[_0x5620ce(0x1dd)](a48_0x527298[_0x5620ce(0x1c2)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x1f669[_0x5620ce(0x1c6)]();}catch(_0x38ab21){stopSpinner(_0x3f939e,'CSS\x20URL\x20check\x20failed',![]);throw _0x38ab21;}}}export async function selectPages(_0x4dd7bf,_0x233f4f,_0x90db09){const _0x58d7b1=a48_0xc280,_0x36da4f=_0x4dd7bf[_0x58d7b1(0x1c4)](_0x8309d6=>({'name':_0x8309d6[_0x58d7b1(0x1da)]+'\x20\x20'+(_0x233f4f[_0x58d7b1(0x1c7)](_0x8309d6[_0x58d7b1(0x1e1)])?a48_0x527298[_0x58d7b1(0x1ed)](_0x58d7b1(0x1e5)):a48_0x527298[_0x58d7b1(0x1d1)](_0x58d7b1(0x1e9))),'value':_0x8309d6[_0x58d7b1(0x1da)],'checked':_0x90db09?_0x90db09[_0x58d7b1(0x1df)](_0x8309d6[_0x58d7b1(0x1da)]):!_0x233f4f['has'](_0x8309d6[_0x58d7b1(0x1e1)])}));if(_0x36da4f[_0x58d7b1(0x1c9)]===0x0)throw new Error(_0x58d7b1(0x1ce));const _0x518513=await onCancel(checkbox({'message':_0x58d7b1(0x1d0),'choices':_0x36da4f,'loop':![],'theme':{'prefix':''}}));if(_0x518513[_0x58d7b1(0x1c9)]===0x0)throw new Error(_0x58d7b1(0x1ee));return _0x4dd7bf['filter'](_0x43d5cd=>_0x518513[_0x58d7b1(0x1df)](_0x43d5cd[_0x58d7b1(0x1da)]));}export function isInteractive(){const _0x138277=a48_0xc280;return process['stdin'][_0x138277(0x1e8)]===!![];}export function requireInteractive(){const _0x57dece=a48_0xc280;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x57dece(0x1e6));}
1
+ function a48_0x1591(){const _0x54864e=['map','JS\x20URL\x20check\x20failed','catch','fail','\x20\x20JS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','has','start','red','filter','test','isTTY','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','No\x20menus\x20selected.','path','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','CANCEL','green','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','succeed','error','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','ExitPromptError','stdin','1688218nwtfoB','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','[already\x20on\x20platform]','[new]','16RjZwna','5049ZCIhsy','length','trim','454220XVQrqu','157744lgifIr','CSS\x20URL\x20check\x20failed','label','cyan','196RiMLCi','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','CSS\x20URL\x20checked','JS\x20URL\x20checked','4921pFUErS','33XcfptP','10432220LNOwna','2733720qLRMRz','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'];a48_0x1591=function(){return _0x54864e;};return a48_0x1591();}function a48_0x1376(_0x116fa5,_0x5585bf){_0x116fa5=_0x116fa5-0x1c8;const _0x159116=a48_0x1591();let _0x1376ce=_0x159116[_0x116fa5];return _0x1376ce;}(function(_0x34b7be,_0x21c385){const _0x4cb6fc=a48_0x1376,_0x59ee09=_0x34b7be();while(!![]){try{const _0x24ea3c=parseInt(_0x4cb6fc(0x1d5))/0x1*(-parseInt(_0x4cb6fc(0x1d0))/0x2)+-parseInt(_0x4cb6fc(0x1d6))/0x3*(parseInt(_0x4cb6fc(0x1cc))/0x4)+parseInt(_0x4cb6fc(0x1cb))/0x5+-parseInt(_0x4cb6fc(0x1d8))/0x6+-parseInt(_0x4cb6fc(0x1f4))/0x7*(-parseInt(_0x4cb6fc(0x1f8))/0x8)+-parseInt(_0x4cb6fc(0x1c8))/0x9+parseInt(_0x4cb6fc(0x1d7))/0xa;if(_0x24ea3c===_0x21c385)break;else _0x59ee09['push'](_0x59ee09['shift']());}catch(_0x2c3724){_0x59ee09['push'](_0x59ee09['shift']());}}}(a48_0x1591,0x3b9d3));import a48_0xfe8f10 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a48_0x18aed8 from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0x4bc953){const _0x2b090e=a48_0x1376;return _0x4bc953[_0x2b090e(0x1dc)](_0x5e0741=>{const _0x3292b2=_0x2b090e;if(_0x5e0741?.['name']===_0x3292b2(0x1f2))throw new Error(_0x3292b2(0x1eb));throw _0x5e0741;});}export function startSpinner(_0x56f953){const _0x43f21a=a48_0x1376;return a48_0x18aed8({'text':_0x56f953,'color':_0x43f21a(0x1cf)})[_0x43f21a(0x1e1)]();}export function stopSpinner(_0x35800f,_0x4fa1f6,_0x565919){const _0x1b03ef=a48_0x1376;_0x565919?_0x35800f[_0x1b03ef(0x1ee)](_0x4fa1f6):_0x35800f[_0x1b03ef(0x1dd)](_0x4fa1f6);}export async function askConfirm(_0x435a15){return onCancel(confirm({'message':_0x435a15,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1b48af){const _0x3ff832=a48_0x1376;while(!![]){const _0x199551=await onCancel(input({'message':_0x3ff832(0x1de),'default':_0x1b48af,'theme':{'prefix':''}}));if(_0x199551['trim']()==='')throw new Error('CANCEL');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3ff832(0x1e4)](_0x199551[_0x3ff832(0x1ca)]())){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1f5)));continue;}const _0x213466=startSpinner(_0x3ff832(0x1e9));try{const _0x53e262=await isUrlReachable(_0x199551[_0x3ff832(0x1ca)]());stopSpinner(_0x213466,_0x3ff832(0x1d4),_0x53e262);if(!_0x53e262){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1d1)));continue;}return _0x199551[_0x3ff832(0x1ca)]();}catch(_0x355656){stopSpinner(_0x213466,_0x3ff832(0x1db),![]);throw _0x355656;}}}export async function askCssUrl(_0x101ff2){const _0x6ea514=a48_0x1376;while(!![]){const _0x45cfd3=await onCancel(input({'message':_0x6ea514(0x1d2),'default':_0x101ff2,'theme':{'prefix':''}}));if(_0x45cfd3['trim']()==='')throw new Error(_0x6ea514(0x1eb));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x45cfd3[_0x6ea514(0x1ca)]())){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1f0)));continue;}const _0x4dc2da=startSpinner(_0x6ea514(0x1f1));try{const _0x4fb5b2=await isUrlReachable(_0x45cfd3[_0x6ea514(0x1ca)]());stopSpinner(_0x4dc2da,_0x6ea514(0x1d3),_0x4fb5b2);if(!_0x4fb5b2){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1e6)));continue;}return _0x45cfd3[_0x6ea514(0x1ca)]();}catch(_0x53b5ca){stopSpinner(_0x4dc2da,_0x6ea514(0x1cd),![]);throw _0x53b5ca;}}}export async function selectPages(_0x919f7c,_0x311155,_0x2a2062){const _0x19ee30=a48_0x1376,_0x395ee5=_0x919f7c[_0x19ee30(0x1da)](_0x4b8056=>({'name':_0x4b8056['label']+'\x20\x20'+(_0x311155['has'](_0x4b8056[_0x19ee30(0x1e8)])?a48_0xfe8f10['gray'](_0x19ee30(0x1f6)):a48_0xfe8f10[_0x19ee30(0x1ec)](_0x19ee30(0x1f7))),'value':_0x4b8056[_0x19ee30(0x1ce)],'checked':_0x2a2062?_0x2a2062[_0x19ee30(0x1ea)](_0x4b8056[_0x19ee30(0x1ce)]):!_0x311155[_0x19ee30(0x1e0)](_0x4b8056[_0x19ee30(0x1e8)])}));if(_0x395ee5[_0x19ee30(0x1c9)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x4bc8cd=await onCancel(checkbox({'message':_0x19ee30(0x1df),'choices':_0x395ee5,'loop':![],'theme':{'prefix':''}}));if(_0x4bc8cd['length']===0x0)throw new Error(_0x19ee30(0x1e7));return _0x919f7c[_0x19ee30(0x1e3)](_0x5375bb=>_0x4bc8cd[_0x19ee30(0x1ea)](_0x5375bb['label']));}export function isInteractive(){const _0x1e23ea=a48_0x1376;return process[_0x1e23ea(0x1f3)][_0x1e23ea(0x1e5)]===!![];}export function requireInteractive(){const _0xb23713=a48_0x1376;if(!isInteractive())throw new Error(_0xb23713(0x1d9)+_0xb23713(0x1ed));}
@@ -1 +1 @@
1
- const a49_0x8933db=a49_0x32a3;function a49_0x589c(){const _0x4501aa=['src/pages','14020dImUMc','457304QoeAEH','replace','isDirectory','cwd','.tsx','405eHHnZM','trim','forEach','4aLQgQG','match','30304xirvMo','utf-8','5011380JYfdbc','83053ASLUaB','endsWith','push','6543tLyTwk','2431230bsncSl','index.tsx','3141426axSdkp','replaceAll','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','14WwfSZu'];a49_0x589c=function(){return _0x4501aa;};return a49_0x589c();}function a49_0x32a3(_0x57af73,_0x3f2ce0){_0x57af73=_0x57af73-0x76;const _0x589ccf=a49_0x589c();let _0x32a393=_0x589ccf[_0x57af73];return _0x32a393;}(function(_0x279e85,_0xde5324){const _0x4a9b1c=a49_0x32a3,_0x3483d9=_0x279e85();while(!![]){try{const _0x3e782e=parseInt(_0x4a9b1c(0x8b))/0x1*(parseInt(_0x4a9b1c(0x86))/0x2)+parseInt(_0x4a9b1c(0x76))/0x3+parseInt(_0x4a9b1c(0x88))/0x4*(parseInt(_0x4a9b1c(0x83))/0x5)+parseInt(_0x4a9b1c(0x78))/0x6+-parseInt(_0x4a9b1c(0x7b))/0x7*(parseInt(_0x4a9b1c(0x7e))/0x8)+-parseInt(_0x4a9b1c(0x8e))/0x9*(parseInt(_0x4a9b1c(0x7d))/0xa)+-parseInt(_0x4a9b1c(0x8a))/0xb;if(_0x3e782e===_0xde5324)break;else _0x3483d9['push'](_0x3483d9['shift']());}catch(_0x533927){_0x3483d9['push'](_0x3483d9['shift']());}}}(a49_0x589c,0x80127));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';const pagesDir=resolve(process[a49_0x8933db(0x81)](),a49_0x8933db(0x7c));export function extractTitleFromComment(_0x35be11){const _0xf56516=a49_0x8933db;try{const _0x13c43f=readFileSync(_0x35be11,_0xf56516(0x89)),_0x4ef915=_0x13c43f[_0xf56516(0x87)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x4ef915&&_0x4ef915[0x1]){const _0x3c3a5e=_0x4ef915[0x1],_0x752fbd=_0x3c3a5e['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x752fbd&&_0x752fbd[0x1])return _0x752fbd[0x1][_0xf56516(0x84)]();}let _0x290b12=null;const _0x37bb6b=_0x13c43f[_0xf56516(0x87)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x37bb6b&&_0x37bb6b[0x1]&&(_0x290b12=_0x37bb6b[0x1]);if(!_0x290b12){const _0x226a53=_0x13c43f[_0xf56516(0x87)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x226a53&&_0x226a53[0x1]&&(_0x290b12=_0x226a53[0x1]);}if(_0x290b12){const _0x408818=new RegExp('\x5cb'+_0x290b12+_0xf56516(0x7a)),_0xd48e49=_0x13c43f[_0xf56516(0x87)](_0x408818);if(_0xd48e49&&_0xd48e49[0x1])return _0xd48e49[0x1];return _0x290b12;}return null;}catch(_0x5bebb2){return null;}}export function getLocalPages(_0x128516=pagesDir,_0x4d865a=pagesDir){const _0x4a8fe9=a49_0x8933db;let _0x34b82e=[];const _0x1487b5=readdirSync(_0x128516);return _0x1487b5[_0x4a8fe9(0x85)](_0x48f07c=>{const _0x2629d6=_0x4a8fe9,_0x5211f6=join(_0x128516,_0x48f07c),_0x50ed1c=statSync(_0x5211f6);if(_0x50ed1c&&_0x50ed1c[_0x2629d6(0x80)]())_0x34b82e=_0x34b82e['concat'](getLocalPages(_0x5211f6,_0x4d865a));else{if(_0x48f07c[_0x2629d6(0x8c)](_0x2629d6(0x82))){let _0x313340=relative(_0x4d865a,_0x5211f6);_0x313340[_0x2629d6(0x8c)](_0x2629d6(0x77))?_0x313340=_0x313340['replace'](/index\.tsx$/,''):_0x313340=_0x313340[_0x2629d6(0x7f)](/\.tsx$/,'');_0x313340[_0x2629d6(0x8c)]('/')&&(_0x313340=_0x313340['slice'](0x0,-0x1));const _0x5c5b1f=extractTitleFromComment(_0x5211f6),_0x60f42b=_0x5c5b1f||_0x313340;_0x34b82e[_0x2629d6(0x8d)]({'path':_0x313340[_0x2629d6(0x79)]('$',':'),'label':_0x60f42b});}}}),_0x34b82e['filter'](_0x1b4173=>_0x1b4173['path']!=='');}
1
+ const a49_0xef5bf1=a49_0x32a0;(function(_0xaea216,_0x182b93){const _0x2bcc1a=a49_0x32a0,_0x4a2cfb=_0xaea216();while(!![]){try{const _0x51ae3c=-parseInt(_0x2bcc1a(0x1a7))/0x1*(-parseInt(_0x2bcc1a(0x1a4))/0x2)+parseInt(_0x2bcc1a(0x19d))/0x3+-parseInt(_0x2bcc1a(0x1a2))/0x4+-parseInt(_0x2bcc1a(0x1aa))/0x5*(-parseInt(_0x2bcc1a(0x1a3))/0x6)+-parseInt(_0x2bcc1a(0x19b))/0x7+parseInt(_0x2bcc1a(0x1b1))/0x8+parseInt(_0x2bcc1a(0x1ac))/0x9;if(_0x51ae3c===_0x182b93)break;else _0x4a2cfb['push'](_0x4a2cfb['shift']());}catch(_0x261bb1){_0x4a2cfb['push'](_0x4a2cfb['shift']());}}}(a49_0x2f72,0x32eb0));function a49_0x2f72(){const _0x3ff676=['cwd','filter','10coXXOR','path','1579653FJlsKt','match','endsWith','trim','isDirectory','517600PAyTjw','2276757EpGuJF','concat','110844fjnLEn','replace','push','index.tsx','slice','30716wmVtGW','742572EcnCkR','634cZIctx','.tsx','src/pages','53qmSOOg'];a49_0x2f72=function(){return _0x3ff676;};return a49_0x2f72();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';function a49_0x32a0(_0x2f58e4,_0x4ac353){_0x2f58e4=_0x2f58e4-0x19b;const _0x2f72dd=a49_0x2f72();let _0x32a03f=_0x2f72dd[_0x2f58e4];return _0x32a03f;}const pagesDir=resolve(process[a49_0xef5bf1(0x1a8)](),a49_0xef5bf1(0x1a6));export function extractTitleFromComment(_0x359202){const _0x5353dd=a49_0xef5bf1;try{const _0x54f74d=readFileSync(_0x359202,'utf-8'),_0x200e22=_0x54f74d[_0x5353dd(0x1ad)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x200e22&&_0x200e22[0x1]){const _0xccbec7=_0x200e22[0x1],_0x239d7c=_0xccbec7[_0x5353dd(0x1ad)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x239d7c&&_0x239d7c[0x1])return _0x239d7c[0x1][_0x5353dd(0x1af)]();}let _0x568ca2=null;const _0x3cc9fe=_0x54f74d[_0x5353dd(0x1ad)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3cc9fe&&_0x3cc9fe[0x1]&&(_0x568ca2=_0x3cc9fe[0x1]);if(!_0x568ca2){const _0x5aae78=_0x54f74d['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x5aae78&&_0x5aae78[0x1]&&(_0x568ca2=_0x5aae78[0x1]);}if(_0x568ca2){const _0x1b89e8=new RegExp('\x5cb'+_0x568ca2+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2f19fe=_0x54f74d[_0x5353dd(0x1ad)](_0x1b89e8);if(_0x2f19fe&&_0x2f19fe[0x1])return _0x2f19fe[0x1];return _0x568ca2;}return null;}catch(_0xdcae8f){return null;}}export function getLocalPages(_0x59591a=pagesDir,_0x56aba0=pagesDir){const _0x2945cd=a49_0xef5bf1;let _0xce1c83=[];const _0x5b4656=readdirSync(_0x59591a);return _0x5b4656['forEach'](_0x4c0e64=>{const _0x504325=a49_0x32a0,_0x5e75f5=join(_0x59591a,_0x4c0e64),_0x52c502=statSync(_0x5e75f5);if(_0x52c502&&_0x52c502[_0x504325(0x1b0)]())_0xce1c83=_0xce1c83[_0x504325(0x19c)](getLocalPages(_0x5e75f5,_0x56aba0));else{if(_0x4c0e64[_0x504325(0x1ae)](_0x504325(0x1a5))){let _0x1644a4=relative(_0x56aba0,_0x5e75f5);_0x1644a4[_0x504325(0x1ae)](_0x504325(0x1a0))?_0x1644a4=_0x1644a4[_0x504325(0x19e)](/index\.tsx$/,''):_0x1644a4=_0x1644a4[_0x504325(0x19e)](/\.tsx$/,'');_0x1644a4[_0x504325(0x1ae)]('/')&&(_0x1644a4=_0x1644a4[_0x504325(0x1a1)](0x0,-0x1));const _0xc62b6c=extractTitleFromComment(_0x5e75f5),_0x1fdb4b=_0xc62b6c||_0x1644a4;_0xce1c83[_0x504325(0x19f)]({'path':_0x1644a4['replaceAll']('$',':'),'label':_0x1fdb4b});}}}),_0xce1c83[_0x2945cd(0x1a9)](_0x5f3278=>_0x5f3278[_0x2945cd(0x1ab)]!=='');}