@lovrabet/rabetbase-cli 2.1.2-beta.0 → 2.1.2-beta.2

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 (161) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.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/generate.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/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -0
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +2 -2
@@ -1 +1 @@
1
- const a54_0x5930e4=a54_0x3c3f;(function(_0x5d9d68,_0x273da3){const _0x2104cd=a54_0x3c3f,_0x5b796e=_0x5d9d68();while(!![]){try{const _0x5c1dfe=parseInt(_0x2104cd(0xdf))/0x1*(-parseInt(_0x2104cd(0xf4))/0x2)+-parseInt(_0x2104cd(0xe8))/0x3+-parseInt(_0x2104cd(0xdb))/0x4+parseInt(_0x2104cd(0xe0))/0x5+parseInt(_0x2104cd(0xe1))/0x6*(-parseInt(_0x2104cd(0xca))/0x7)+-parseInt(_0x2104cd(0xe5))/0x8*(parseInt(_0x2104cd(0xe3))/0x9)+parseInt(_0x2104cd(0xea))/0xa;if(_0x5c1dfe===_0x273da3)break;else _0x5b796e['push'](_0x5b796e['shift']());}catch(_0x5dd325){_0x5b796e['push'](_0x5b796e['shift']());}}}(a54_0x2d5e,0x946a3));function a54_0x3c3f(_0x58e3bd,_0x5a2fd4){_0x58e3bd=_0x58e3bd-0xc8;const _0x2d5e78=a54_0x2d5e();let _0x3c3f8b=_0x2d5e78[_0x58e3bd];return _0x3c3f8b;}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a54_0x2d5e(){const _0x46e8a2=['Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Created\x20db\x20link\x20','Create\x20dblink','boolean','password','create','autostart','write','bool','[redacted]','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','Host\x20and\x20port:\x20host:port','dbdesc','Database\x20password','2539124qCYWlX','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','string','No\x20follow-up\x20analysis','1117PpSlrO','3142555JRcHiL','818178tjbsvN','dbparam','9OfurgU','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','729072tgzjnq','dbversion','8.0','3220176TxPfGW','dbname','24570780HtxjwW','/smartapi/dblink/create','join','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','appCode','trim','dbtype','username','238rNFwnS','str','dburl','28fDALrV','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','message'];a54_0x2d5e=function(){return _0x46e8a2;};return a54_0x2d5e();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';export const dbCreate={'service':'db','command':a54_0x5930e4(0xd2),'description':a54_0x5930e4(0xdc),'risk':a54_0x5930e4(0xd4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a54_0x5930e4(0xe9),'type':a54_0x5930e4(0xdd),'required':!![],'description':a54_0x5930e4(0xee)},DB_TYPE_FLAG,{'name':a54_0x5930e4(0xe6),'type':'string','description':a54_0x5930e4(0xe4),'default':'8.0'},{'name':'dburl','type':a54_0x5930e4(0xdd),'required':!![],'description':a54_0x5930e4(0xd8)},{'name':a54_0x5930e4(0xf3),'type':a54_0x5930e4(0xdd),'required':!![],'description':'Database\x20username'},{'name':a54_0x5930e4(0xd1),'type':a54_0x5930e4(0xdd),'required':!![],'description':a54_0x5930e4(0xda)},{'name':a54_0x5930e4(0xe2),'type':'string','description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':'dbdesc','type':a54_0x5930e4(0xdd),'description':'Human-readable\x20description'},{'name':a54_0x5930e4(0xd3),'type':a54_0x5930e4(0xd0),'description':'After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','default':![]}],async 'validate'(_0x45b357){const _0x3549f0=a54_0x5930e4,_0x566f8f=_0x45b357['str'](_0x3549f0(0xc9))[_0x3549f0(0xf1)]();if(!validateDbUrl(_0x566f8f))throw CliErrors['validation'](_0x3549f0(0xcb)+_0x566f8f+'\x22',_0x3549f0(0xcd));},async 'dryRun'(_0xfa764e){const _0x49b49c=a54_0x5930e4,_0xd3bf93={'appCode':_0xfa764e[_0x49b49c(0xf0)],'dbName':_0xfa764e[_0x49b49c(0xc8)](_0x49b49c(0xe9)),'dbType':_0xfa764e['str']('dbtype'),'dbVersion':_0xfa764e['str'](_0x49b49c(0xe6))||_0x49b49c(0xe7),'dbUrl':_0xfa764e[_0x49b49c(0xc8)](_0x49b49c(0xc9))['trim'](),'username':_0xfa764e['str'](_0x49b49c(0xf3)),'password':_0x49b49c(0xd6),..._0xfa764e['str'](_0x49b49c(0xe2))?{'dbParam':_0xfa764e[_0x49b49c(0xc8)](_0x49b49c(0xe2))}:{},..._0xfa764e['str'](_0x49b49c(0xd9))?{'dbDesc':_0xfa764e['str']('dbdesc')}:{}};return{'method':'POST','url':_0x49b49c(0xeb),'body':_0xd3bf93,'description':[_0x49b49c(0xcf),_0xfa764e[_0x49b49c(0xd5)](_0x49b49c(0xd3))?_0x49b49c(0xed):_0x49b49c(0xde)][_0x49b49c(0xec)]('\x0a')};},async 'execute'(_0x2c39e8){const _0x305be9=a54_0x5930e4,_0x1898c2={'appCode':_0x2c39e8[_0x305be9(0xf0)],'dbName':_0x2c39e8['str'](_0x305be9(0xe9)),'dbType':_0x2c39e8[_0x305be9(0xc8)](_0x305be9(0xf2)),'dbVersion':_0x2c39e8[_0x305be9(0xc8)](_0x305be9(0xe6))||'8.0','dbUrl':_0x2c39e8[_0x305be9(0xc8)](_0x305be9(0xc9))[_0x305be9(0xf1)](),'username':_0x2c39e8[_0x305be9(0xc8)]('username'),'password':_0x2c39e8[_0x305be9(0xc8)]('password'),..._0x2c39e8[_0x305be9(0xc8)](_0x305be9(0xe2))?{'dbParam':_0x2c39e8[_0x305be9(0xc8)](_0x305be9(0xe2))}:{},..._0x2c39e8['str'](_0x305be9(0xd9))?{'dbDesc':_0x2c39e8[_0x305be9(0xc8)](_0x305be9(0xd9))}:{}},_0x4618bc=await createDbLink(_0x1898c2),_0x1fed6b=_0x4618bc['id'];if(!_0x1fed6b)return{'ok':![],'message':_0x305be9(0xd7),'data':sanitizeDbLinkForOutput(_0x4618bc)};let _0x4d37c2,_0xe5709f;if(_0x2c39e8[_0x305be9(0xd5)]('autostart'))try{_0x4d37c2=await startDbAnalysis(_0x1fed6b);}catch(_0x2cc0be){_0xe5709f=_0x2cc0be instanceof Error?_0x2cc0be[_0x305be9(0xcc)]:String(_0x2cc0be);}const _0x5ace3d={'connection':sanitizeDbLinkForOutput(_0x4618bc),..._0x4d37c2?{'analysisPlanId':_0x4d37c2}:{},..._0xe5709f?{'analysisStartWarning':_0xe5709f}:{}};let _0x55ce8c;return _0x2c39e8[_0x305be9(0xd5)](_0x305be9(0xd3))?_0xe5709f?_0x55ce8c=_0x305be9(0xce)+_0x1fed6b+_0x305be9(0xef):_0x55ce8c=_0x305be9(0xce)+_0x1fed6b+'\x20and\x20started\x20analysis':_0x55ce8c=_0x305be9(0xce)+_0x1fed6b,{'ok':!![],'data':_0x5ace3d,'message':_0x55ce8c};}};
1
+ const a54_0x39173f=a54_0x5b0e;(function(_0x584825,_0x58b311){const _0x47a40f=a54_0x5b0e,_0x226deb=_0x584825();while(!![]){try{const _0x172239=parseInt(_0x47a40f(0x1b6))/0x1+-parseInt(_0x47a40f(0x1b2))/0x2+-parseInt(_0x47a40f(0x19d))/0x3+-parseInt(_0x47a40f(0x1a0))/0x4*(parseInt(_0x47a40f(0x1b3))/0x5)+parseInt(_0x47a40f(0x199))/0x6*(-parseInt(_0x47a40f(0x1b5))/0x7)+parseInt(_0x47a40f(0x1a7))/0x8+parseInt(_0x47a40f(0x1aa))/0x9;if(_0x172239===_0x58b311)break;else _0x226deb['push'](_0x226deb['shift']());}catch(_0x3b4a47){_0x226deb['push'](_0x226deb['shift']());}}}(a54_0x5639,0xbebed));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a54_0x5639(){const _0x251b0f=['autostart','dbversion','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','POST','boolean','8.0','appCode','Human-readable\x20description','Created\x20db\x20link\x20','string','password','message','validation','[redacted]','96TJfKvP','bool','Create\x20dblink','/smartapi/dblink/create','3859191FDzKpe','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','dbtype','4xpzbDW','create','dbparam','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','str','write','username','849032cgLmxY','dbname','join','33348438oxoCir','Database\x20password','dburl','dbdesc','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','trim','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Database\x20username','1126634wRUBcu','7783120BRrcHi','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','511847TFtrOZ','1546056qizJQR'];a54_0x5639=function(){return _0x251b0f;};return a54_0x5639();}function a54_0x5b0e(_0x201f1e,_0x35da4b){_0x201f1e=_0x201f1e-0x194;const _0x5639e2=a54_0x5639();let _0x5b0e7a=_0x5639e2[_0x201f1e];return _0x5b0e7a;}export const dbCreate={'service':'db','command':a54_0x39173f(0x1a1),'description':a54_0x39173f(0x1b9),'risk':a54_0x39173f(0x1a5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a54_0x39173f(0x1a8),'type':a54_0x39173f(0x194),'required':!![],'description':a54_0x39173f(0x1b4)},DB_TYPE_FLAG,{'name':a54_0x39173f(0x1b8),'type':a54_0x39173f(0x194),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':'8.0'},{'name':a54_0x39173f(0x1ac),'type':a54_0x39173f(0x194),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':a54_0x39173f(0x1a6),'type':'string','required':!![],'description':a54_0x39173f(0x1b1)},{'name':a54_0x39173f(0x195),'type':a54_0x39173f(0x194),'required':!![],'description':a54_0x39173f(0x1ab)},{'name':a54_0x39173f(0x1a2),'type':a54_0x39173f(0x194),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':'dbdesc','type':a54_0x39173f(0x194),'description':a54_0x39173f(0x1bf)},{'name':a54_0x39173f(0x1b7),'type':a54_0x39173f(0x1bc),'description':a54_0x39173f(0x1ae),'default':![]}],async 'validate'(_0x56960e){const _0x8b7e0b=a54_0x39173f,_0x2457ef=_0x56960e[_0x8b7e0b(0x1a4)](_0x8b7e0b(0x1ac))['trim']();if(!validateDbUrl(_0x2457ef))throw CliErrors[_0x8b7e0b(0x197)](_0x8b7e0b(0x19e)+_0x2457ef+'\x22',_0x8b7e0b(0x1b0));},async 'dryRun'(_0x4edfa2){const _0x3872be=a54_0x39173f,_0x4c8b16={'appCode':_0x4edfa2[_0x3872be(0x1be)],'dbName':_0x4edfa2['str'](_0x3872be(0x1a8)),'dbType':_0x4edfa2[_0x3872be(0x1a4)]('dbtype'),'dbVersion':_0x4edfa2[_0x3872be(0x1a4)](_0x3872be(0x1b8))||_0x3872be(0x1bd),'dbUrl':_0x4edfa2[_0x3872be(0x1a4)](_0x3872be(0x1ac))[_0x3872be(0x1af)](),'username':_0x4edfa2[_0x3872be(0x1a4)](_0x3872be(0x1a6)),'password':_0x3872be(0x198),..._0x4edfa2['str'](_0x3872be(0x1a2))?{'dbParam':_0x4edfa2['str'](_0x3872be(0x1a2))}:{},..._0x4edfa2['str'](_0x3872be(0x1ad))?{'dbDesc':_0x4edfa2['str'](_0x3872be(0x1ad))}:{}};return{'method':_0x3872be(0x1bb),'url':_0x3872be(0x19c),'body':_0x4c8b16,'description':[_0x3872be(0x19b),_0x4edfa2['bool'](_0x3872be(0x1b7))?_0x3872be(0x1a3):'No\x20follow-up\x20analysis'][_0x3872be(0x1a9)]('\x0a')};},async 'execute'(_0x5bc116){const _0x3d6d7f=a54_0x39173f,_0x442c2d={'appCode':_0x5bc116[_0x3d6d7f(0x1be)],'dbName':_0x5bc116['str'](_0x3d6d7f(0x1a8)),'dbType':_0x5bc116['str'](_0x3d6d7f(0x19f)),'dbVersion':_0x5bc116['str']('dbversion')||_0x3d6d7f(0x1bd),'dbUrl':_0x5bc116[_0x3d6d7f(0x1a4)](_0x3d6d7f(0x1ac))[_0x3d6d7f(0x1af)](),'username':_0x5bc116[_0x3d6d7f(0x1a4)]('username'),'password':_0x5bc116[_0x3d6d7f(0x1a4)](_0x3d6d7f(0x195)),..._0x5bc116['str']('dbparam')?{'dbParam':_0x5bc116[_0x3d6d7f(0x1a4)]('dbparam')}:{},..._0x5bc116[_0x3d6d7f(0x1a4)](_0x3d6d7f(0x1ad))?{'dbDesc':_0x5bc116[_0x3d6d7f(0x1a4)]('dbdesc')}:{}},{id:_0x542f9d,entity:_0x302d07}=normalizeEntityWithIdResponse(await createDbLink(_0x442c2d));if(!_0x542f9d)return{'ok':![],'message':_0x3d6d7f(0x1ba),'data':sanitizeDbLinkForOutput(_0x302d07)};let _0x3ef98b,_0x47401d;if(_0x5bc116['bool']('autostart'))try{_0x3ef98b=await startDbAnalysis(_0x542f9d);}catch(_0x7786de){_0x47401d=_0x7786de instanceof Error?_0x7786de[_0x3d6d7f(0x196)]:String(_0x7786de);}const _0x5d1ab1={'connection':sanitizeDbLinkForOutput(_0x302d07),..._0x3ef98b?{'analysisPlanId':_0x3ef98b}:{},..._0x47401d?{'analysisStartWarning':_0x47401d}:{}};let _0x59d390;return _0x5bc116[_0x3d6d7f(0x19a)](_0x3d6d7f(0x1b7))?_0x47401d?_0x59d390=_0x3d6d7f(0x1c0)+_0x542f9d+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x59d390=_0x3d6d7f(0x1c0)+_0x542f9d+'\x20and\x20started\x20analysis':_0x59d390='Created\x20db\x20link\x20'+_0x542f9d,{'ok':!![],'data':_0x5d1ab1,'message':_0x59d390};}};
@@ -1 +1 @@
1
- function a55_0x400f(_0x276232,_0x253afa){_0x276232=_0x276232-0x1ac;const _0x474010=a55_0x4740();let _0x400f2f=_0x474010[_0x276232];return _0x400f2f;}function a55_0x4740(){const _0x29b8fe=['delete','512024QXJvfg','Deleted\x20db\x20link\x20','10fBrqxW','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','312FGoNIc','high-risk-write','345459Fpvnii','97404zDiGze','61IpycaA','4414CTwTrg','1519110fbABgc','4eFAdzT','458307nrzNFu','56JMPuaF','6402UBxnlU'];a55_0x4740=function(){return _0x29b8fe;};return a55_0x4740();}const a55_0x36c89b=a55_0x400f;(function(_0x178eef,_0x160592){const _0x8e2adc=a55_0x400f,_0x2f210f=_0x178eef();while(!![]){try{const _0x372d93=parseInt(_0x8e2adc(0x1b1))/0x1*(-parseInt(_0x8e2adc(0x1b2))/0x2)+-parseInt(_0x8e2adc(0x1af))/0x3+parseInt(_0x8e2adc(0x1b4))/0x4*(parseInt(_0x8e2adc(0x1b3))/0x5)+parseInt(_0x8e2adc(0x1b0))/0x6*(parseInt(_0x8e2adc(0x1b6))/0x7)+-parseInt(_0x8e2adc(0x1b9))/0x8+parseInt(_0x8e2adc(0x1b5))/0x9*(parseInt(_0x8e2adc(0x1bb))/0xa)+parseInt(_0x8e2adc(0x1b7))/0xb*(-parseInt(_0x8e2adc(0x1ad))/0xc);if(_0x372d93===_0x160592)break;else _0x2f210f['push'](_0x2f210f['shift']());}catch(_0x53c465){_0x2f210f['push'](_0x2f210f['shift']());}}}(a55_0x4740,0x26036));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a55_0x36c89b(0x1b8),'description':a55_0x36c89b(0x1ac),'risk':a55_0x36c89b(0x1ae),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1d0633){const _0x2bc235=a55_0x36c89b,_0x18aec9=_0x1d0633['num']('id');return await deleteDbLink(_0x18aec9),{'ok':!![],'data':{'id':_0x18aec9,'deleted':!![]},'message':_0x2bc235(0x1ba)+_0x18aec9};}};
1
+ const a55_0x54722c=a55_0xb669;(function(_0x5a150c,_0x3939ca){const _0x42b7f1=a55_0xb669,_0x28b557=_0x5a150c();while(!![]){try{const _0x5e24fa=parseInt(_0x42b7f1(0xa2))/0x1+-parseInt(_0x42b7f1(0x9e))/0x2*(-parseInt(_0x42b7f1(0xa6))/0x3)+-parseInt(_0x42b7f1(0xa7))/0x4+parseInt(_0x42b7f1(0x9d))/0x5*(-parseInt(_0x42b7f1(0xa0))/0x6)+parseInt(_0x42b7f1(0xa8))/0x7*(parseInt(_0x42b7f1(0xa3))/0x8)+-parseInt(_0x42b7f1(0xa4))/0x9*(-parseInt(_0x42b7f1(0x9f))/0xa)+-parseInt(_0x42b7f1(0xaa))/0xb;if(_0x5e24fa===_0x3939ca)break;else _0x28b557['push'](_0x28b557['shift']());}catch(_0x1ab39f){_0x28b557['push'](_0x28b557['shift']());}}}(a55_0x38f0,0x7a88d));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a55_0xb669(_0x39d956,_0x516d5c){_0x39d956=_0x39d956-0x9c;const _0x38f0b6=a55_0x38f0();let _0xb669d=_0x38f0b6[_0x39d956];return _0xb669d;}export const dbDelete={'service':'db','command':a55_0x54722c(0x9c),'description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a55_0x54722c(0xa1),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x455d62){const _0x4a24d0=a55_0x54722c,_0x1f382d=_0x455d62[_0x4a24d0(0xa5)]('id');return await deleteDbLink(_0x1f382d),{'ok':!![],'data':{'id':_0x1f382d,'deleted':!![]},'message':_0x4a24d0(0xa9)+_0x1f382d};}};function a55_0x38f0(){const _0x37e8ab=['delete','5ePVirX','269142JdRHZn','10EmysRQ','3111996BisxxL','high-risk-write','462649DXseyI','1810456tinJLV','2559528GkJHgj','num','6XsJfIE','240508eVAuBU','7XGPpaC','Deleted\x20db\x20link\x20','1779756ePhLAz'];a55_0x38f0=function(){return _0x37e8ab;};return a55_0x38f0();}
@@ -1 +1 @@
1
- function a56_0x2bc6(_0x2fc366,_0x473d9c){_0x2fc366=_0x2fc366-0x160;const _0x4fdefa=a56_0x4fde();let _0x2bc69d=_0x4fdefa[_0x2fc366];return _0x2bc69d;}const a56_0x1c7bdb=a56_0x2bc6;(function(_0x4d7653,_0x87973e){const _0x24cce5=a56_0x2bc6,_0x5849a4=_0x4d7653();while(!![]){try{const _0x628066=-parseInt(_0x24cce5(0x164))/0x1*(-parseInt(_0x24cce5(0x16b))/0x2)+parseInt(_0x24cce5(0x16a))/0x3*(parseInt(_0x24cce5(0x16e))/0x4)+-parseInt(_0x24cce5(0x162))/0x5+parseInt(_0x24cce5(0x163))/0x6*(-parseInt(_0x24cce5(0x165))/0x7)+-parseInt(_0x24cce5(0x16c))/0x8+parseInt(_0x24cce5(0x167))/0x9*(-parseInt(_0x24cce5(0x160))/0xa)+parseInt(_0x24cce5(0x168))/0xb*(parseInt(_0x24cce5(0x161))/0xc);if(_0x628066===_0x87973e)break;else _0x5849a4['push'](_0x5849a4['shift']());}catch(_0x15b75e){_0x5849a4['push'](_0x5849a4['shift']());}}}(a56_0x4fde,0x4f004));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a56_0x1c7bdb(0x16d),'description':a56_0x1c7bdb(0x16f),'risk':a56_0x1c7bdb(0x166),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x330ed1){const _0x36f73b=a56_0x1c7bdb,_0x4d7f2f=_0x330ed1[_0x36f73b(0x169)]('id'),_0x556637=await getDbLinkInfo(_0x4d7f2f);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x556637),'message':_0x36f73b(0x170)+_0x4d7f2f+':\x20'+_0x556637['dbName']};}};function a56_0x4fde(){const _0x535692=['331536PniFwK','19628NOpYYC','3804464TqGfTo','detail','4ewKQdS','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','db\x20link\x20','160yQzGHL','19448988YKRgHY','1373150sTVKkF','2224506EWPTkR','11DeQiIG','7bVihVG','read','222012syFHyL','11qLbLiz','num'];a56_0x4fde=function(){return _0x535692;};return a56_0x4fde();}
1
+ function a56_0x1830(){const _0x2ddf56=['read','462ywyuhC','1599WCshYf','1465640psJCAc','7260633HThZcD','159128IfQBMP','2752888gHgsXv','10sqiCBa','11684QVDbnG','266782rczRrn','detail','dbName','7666638YJANBJ'];a56_0x1830=function(){return _0x2ddf56;};return a56_0x1830();}const a56_0x380ece=a56_0x49ba;(function(_0x146f04,_0x5bae5d){const _0x528006=a56_0x49ba,_0x122602=_0x146f04();while(!![]){try{const _0x2915f3=parseInt(_0x528006(0x1c9))/0x1+-parseInt(_0x528006(0x1d3))/0x2+parseInt(_0x528006(0x1cf))/0x3*(parseInt(_0x528006(0x1c8))/0x4)+-parseInt(_0x528006(0x1d0))/0x5+-parseInt(_0x528006(0x1cc))/0x6+parseInt(_0x528006(0x1ce))/0x7*(parseInt(_0x528006(0x1d2))/0x8)+parseInt(_0x528006(0x1d1))/0x9*(parseInt(_0x528006(0x1d4))/0xa);if(_0x2915f3===_0x5bae5d)break;else _0x122602['push'](_0x122602['shift']());}catch(_0x433847){_0x122602['push'](_0x122602['shift']());}}}(a56_0x1830,0xf3221));function a56_0x49ba(_0xba7896,_0x1a2848){_0xba7896=_0xba7896-0x1c8;const _0x18307f=a56_0x1830();let _0x49ba22=_0x18307f[_0xba7896];return _0x49ba22;}import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a56_0x380ece(0x1ca),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a56_0x380ece(0x1cd),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x265ca4){const _0x210bc4=a56_0x380ece,_0x3e8cf7=_0x265ca4['num']('id'),_0x435de3=await getDbLinkInfo(_0x3e8cf7);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x435de3),'message':'db\x20link\x20'+_0x3e8cf7+':\x20'+_0x435de3[_0x210bc4(0x1cb)]};}};
@@ -1 +1 @@
1
- const a57_0x3856ed=a57_0x12b6;(function(_0x4f577b,_0x2260b8){const _0x3b32a9=a57_0x12b6,_0x3a25c6=_0x4f577b();while(!![]){try{const _0xe1b483=parseInt(_0x3b32a9(0x1db))/0x1+-parseInt(_0x3b32a9(0x1ca))/0x2*(parseInt(_0x3b32a9(0x1d8))/0x3)+-parseInt(_0x3b32a9(0x1d3))/0x4*(-parseInt(_0x3b32a9(0x1d6))/0x5)+parseInt(_0x3b32a9(0x1cc))/0x6*(-parseInt(_0x3b32a9(0x1d9))/0x7)+parseInt(_0x3b32a9(0x1cb))/0x8+-parseInt(_0x3b32a9(0x1ce))/0x9+parseInt(_0x3b32a9(0x1da))/0xa*(-parseInt(_0x3b32a9(0x1d4))/0xb);if(_0xe1b483===_0x2260b8)break;else _0x3a25c6['push'](_0x3a25c6['shift']());}catch(_0x19c237){_0x3a25c6['push'](_0x3a25c6['shift']());}}}(a57_0x46f7,0xa8bba));function a57_0x12b6(_0x2e0394,_0x1fd107){_0x2e0394=_0x2e0394-0x1c4;const _0x46f7b1=a57_0x46f7();let _0x12b642=_0x46f7b1[_0x2e0394];return _0x12b642;}function a57_0x46f7(){const _0x59e2d6=['number','table','\x20(db\x20link\x20','string','2aDUOqg','9041568eQrVYi','14862zLJanv','page','3400686KACypp','num','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','pagesize','str','4aJOLnb','9218BFrrPZ','length','5756580glRmWy','Page\x20index\x20(1-based)','635676gIGQVx','7ZfqOeC','17110rkYslX','435659LDHyRW','diff','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'];a57_0x46f7=function(){return _0x59e2d6;};return a57_0x46f7();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a57_0x3856ed(0x1c4),'description':a57_0x3856ed(0x1d0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a57_0x3856ed(0x1c9),'description':a57_0x3856ed(0x1c5)},{'name':a57_0x3856ed(0x1cd),'type':a57_0x3856ed(0x1c6),'description':a57_0x3856ed(0x1d7),'default':0x1},{'name':'pagesize','type':a57_0x3856ed(0x1c6),'description':'Page\x20size','default':0x14}],async 'execute'(_0x40195c){const _0x57bcb9=a57_0x3856ed,_0x429893=_0x40195c[_0x57bcb9(0x1cf)]('id'),_0x218c29=_0x40195c[_0x57bcb9(0x1cf)](_0x57bcb9(0x1cd),0x1)||0x1,_0x43bd64=_0x40195c[_0x57bcb9(0x1cf)](_0x57bcb9(0x1d1),0x14)||0x14,_0x4fa455=_0x40195c[_0x57bcb9(0x1d2)](_0x57bcb9(0x1c7))||undefined,{totalCount:_0x376934,tableList:_0x5161b5}=await getDbTableDiff(_0x40195c['appCode'],_0x429893,{'pageIndex':_0x218c29,'pageSize':_0x43bd64,'tableName':_0x4fa455});return{'ok':!![],'data':{'dbLinkId':_0x429893,'page':_0x218c29,'pageSize':_0x43bd64,'totalCount':_0x376934,'tableList':_0x5161b5},'message':_0x5161b5[_0x57bcb9(0x1d5)]+'\x20row(s),\x20total\x20'+_0x376934+_0x57bcb9(0x1c8)+_0x429893+')'};}};
1
+ function a57_0x1683(){const _0x3d4139=['number','pagesize','202pBZyoL','19625KsKMTa','diff','698278Ijnuji','138126QNmPoB','269742MUBbTs','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','str','num','page','\x20row(s),\x20total\x20','appCode','table','30ATatim','172ajAvaN','1853126LfkgYf','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','122696oKkTbn','length','Page\x20size','\x20(db\x20link\x20','1524impavj','9MMpvlD'];a57_0x1683=function(){return _0x3d4139;};return a57_0x1683();}const a57_0x4577ac=a57_0x18f9;(function(_0x2247d4,_0x4839f2){const _0x19caf9=a57_0x18f9,_0x1b5523=_0x2247d4();while(!![]){try{const _0x19f6ce=-parseInt(_0x19caf9(0xdd))/0x1+-parseInt(_0x19caf9(0xd9))/0x2*(parseInt(_0x19caf9(0xd5))/0x3)+parseInt(_0x19caf9(0xe7))/0x4*(-parseInt(_0x19caf9(0xda))/0x5)+parseInt(_0x19caf9(0xde))/0x6+-parseInt(_0x19caf9(0xdc))/0x7+parseInt(_0x19caf9(0xd1))/0x8*(parseInt(_0x19caf9(0xd6))/0x9)+-parseInt(_0x19caf9(0xe6))/0xa*(-parseInt(_0x19caf9(0xcf))/0xb);if(_0x19f6ce===_0x4839f2)break;else _0x1b5523['push'](_0x1b5523['shift']());}catch(_0x54752f){_0x1b5523['push'](_0x1b5523['shift']());}}}(a57_0x1683,0x1a4d1));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a57_0x18f9(_0x518805,_0x12abf2){_0x518805=_0x518805-0xcf;const _0x168344=a57_0x1683();let _0x18f910=_0x168344[_0x518805];return _0x18f910;}export const dbDiff={'service':'db','command':a57_0x4577ac(0xdb),'description':a57_0x4577ac(0xd0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a57_0x4577ac(0xe5),'type':'string','description':a57_0x4577ac(0xdf)},{'name':'page','type':a57_0x4577ac(0xd7),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a57_0x4577ac(0xd7),'description':a57_0x4577ac(0xd3),'default':0x14}],async 'execute'(_0x23c437){const _0xed9751=a57_0x4577ac,_0x2f13c6=_0x23c437[_0xed9751(0xe1)]('id'),_0x59c029=_0x23c437['num'](_0xed9751(0xe2),0x1)||0x1,_0x5bd209=_0x23c437[_0xed9751(0xe1)](_0xed9751(0xd8),0x14)||0x14,_0x10aa59=_0x23c437[_0xed9751(0xe0)](_0xed9751(0xe5))||undefined,{totalCount:_0x1711fb,tableList:_0x177b2a}=await getDbTableDiff(_0x23c437[_0xed9751(0xe4)],_0x2f13c6,{'pageIndex':_0x59c029,'pageSize':_0x5bd209,'tableName':_0x10aa59});return{'ok':!![],'data':{'dbLinkId':_0x2f13c6,'page':_0x59c029,'pageSize':_0x5bd209,'totalCount':_0x1711fb,'tableList':_0x177b2a},'message':_0x177b2a[_0xed9751(0xd2)]+_0xed9751(0xe3)+_0x1711fb+_0xed9751(0xd4)+_0x2f13c6+')'};}};
@@ -1 +1 @@
1
- (function(_0x265554,_0x3e1577){const _0x5c5487=a58_0x5671,_0x2e6a15=_0x265554();while(!![]){try{const _0x6e38e3=parseInt(_0x5c5487(0x1c2))/0x1*(-parseInt(_0x5c5487(0x1c6))/0x2)+-parseInt(_0x5c5487(0x1c3))/0x3*(-parseInt(_0x5c5487(0x1bd))/0x4)+parseInt(_0x5c5487(0x1bc))/0x5*(-parseInt(_0x5c5487(0x1c7))/0x6)+parseInt(_0x5c5487(0x1bf))/0x7+-parseInt(_0x5c5487(0x1c5))/0x8*(parseInt(_0x5c5487(0x1c4))/0x9)+parseInt(_0x5c5487(0x1be))/0xa*(parseInt(_0x5c5487(0x1c1))/0xb)+-parseInt(_0x5c5487(0x1c8))/0xc*(-parseInt(_0x5c5487(0x1c0))/0xd);if(_0x6e38e3===_0x3e1577)break;else _0x2e6a15['push'](_0x2e6a15['shift']());}catch(_0x3fa0e1){_0x2e6a15['push'](_0x2e6a15['shift']());}}}(a58_0x2609,0x73b7f));import{dbList}from'../../commands/db/list.js';function a58_0x5671(_0x5e7eef,_0x931960){_0x5e7eef=_0x5e7eef-0x1bc;const _0x260904=a58_0x2609();let _0x56718f=_0x260904[_0x5e7eef];return _0x56718f;}import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a58_0x2609(){const _0x60bc17=['313210ncUrUT','6075300fynLCp','65YYXFsz','209IjumaR','30GrWMQY','3ejvuCh','338796FKEqfd','104LGVVhq','34786BjzSGu','1639788POzhtr','623412sETXVF','5VKQesz','142756AvphFg'];a58_0x2609=function(){return _0x60bc17;};return a58_0x2609();}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x913ec0,_0x3a5856){const _0x5987d8=a58_0x16c5,_0x3fc46d=_0x913ec0();while(!![]){try{const _0x47ca80=parseInt(_0x5987d8(0x18e))/0x1+parseInt(_0x5987d8(0x194))/0x2*(parseInt(_0x5987d8(0x192))/0x3)+-parseInt(_0x5987d8(0x18c))/0x4+-parseInt(_0x5987d8(0x191))/0x5*(-parseInt(_0x5987d8(0x18d))/0x6)+-parseInt(_0x5987d8(0x193))/0x7+-parseInt(_0x5987d8(0x18f))/0x8*(-parseInt(_0x5987d8(0x195))/0x9)+-parseInt(_0x5987d8(0x190))/0xa;if(_0x47ca80===_0x3a5856)break;else _0x3fc46d['push'](_0x3fc46d['shift']());}catch(_0x4f291a){_0x3fc46d['push'](_0x3fc46d['shift']());}}}(a58_0x3e09,0x435e8));function a58_0x16c5(_0x16af0a,_0x27a48e){_0x16af0a=_0x16af0a-0x18c;const _0x3e09db=a58_0x3e09();let _0x16c580=_0x3e09db[_0x16af0a];return _0x16c580;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';function a58_0x3e09(){const _0x137b42=['1655008hPbFRY','648xlmNWc','315174FOBFsi','4061416DBRcAB','8029890qNsnyD','18630MDkKZJ','3iqzwUh','1450211ZjReqg','949198yvDHuB','9rmzeNE'];a58_0x3e09=function(){return _0x137b42;};return a58_0x3e09();}import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- const a59_0x1316c9=a59_0x16c5;(function(_0x4f18a2,_0x375df6){const _0x5c0d77=a59_0x16c5,_0x1c80cd=_0x4f18a2();while(!![]){try{const _0x387954=-parseInt(_0x5c0d77(0x142))/0x1+parseInt(_0x5c0d77(0x14d))/0x2+parseInt(_0x5c0d77(0x14f))/0x3*(-parseInt(_0x5c0d77(0x14e))/0x4)+-parseInt(_0x5c0d77(0x14b))/0x5*(parseInt(_0x5c0d77(0x148))/0x6)+-parseInt(_0x5c0d77(0x14c))/0x7+-parseInt(_0x5c0d77(0x147))/0x8+parseInt(_0x5c0d77(0x14a))/0x9;if(_0x387954===_0x375df6)break;else _0x1c80cd['push'](_0x1c80cd['shift']());}catch(_0x13d236){_0x1c80cd['push'](_0x1c80cd['shift']());}}}(a59_0x447b,0xb690b));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a59_0x16c5(_0x138a88,_0x321fb6){_0x138a88=_0x138a88-0x13e;const _0x447b9e=a59_0x447b();let _0x16c5f8=_0x447b9e[_0x138a88];return _0x16c5f8;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a59_0x1316c9(0x146),'description':a59_0x1316c9(0x141),'risk':a59_0x1316c9(0x13f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a59_0x1316c9(0x150),'type':a59_0x1316c9(0x143),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a59_0x1316c9(0x144),'type':a59_0x1316c9(0x143),'description':a59_0x1316c9(0x149),'default':0x64}],async 'execute'(_0x1a3453){const _0x682c30=a59_0x1316c9,_0x59b813=_0x1a3453[_0x682c30(0x13e)]('page',0x1)||0x1,_0x19f70c=_0x1a3453[_0x682c30(0x13e)](_0x682c30(0x144),0x64)||0x64,{items:_0x19ccba,paging:_0x596acd}=await listDbLinks(_0x1a3453['appCode'],{'currentPage':_0x59b813,'pageSize':_0x19f70c}),_0x2e9aae=sanitizeDbLinkList(_0x19ccba),_0x32d662=_0x596acd?_0x596acd:{'currentPage':_0x59b813,'pageSize':_0x19f70c,'rowsOnPage':_0x2e9aae['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x2e9aae,'paging':_0x32d662},'message':_0x682c30(0x145)+_0x2e9aae['length']+_0x682c30(0x140)};}};function a59_0x447b(){const _0x2d5d42=['Found\x20','list','7125640HJZXjx','54KSAREw','Page\x20size','32076234jseNcJ','239620mcHSMH','757337FWhNfZ','540210wMxjKx','1332QirCjB','5001tfDyUk','page','num','read','\x20database\x20connection(s)','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','1101021SBWoTf','number','pagesize'];a59_0x447b=function(){return _0x2d5d42;};return a59_0x447b();}
1
+ const a59_0x2ae575=a59_0x2eae;(function(_0x58c743,_0x513be4){const _0x50181e=a59_0x2eae,_0x24d96e=_0x58c743();while(!![]){try{const _0xf5a422=parseInt(_0x50181e(0x14d))/0x1+-parseInt(_0x50181e(0x142))/0x2*(-parseInt(_0x50181e(0x146))/0x3)+-parseInt(_0x50181e(0x144))/0x4*(-parseInt(_0x50181e(0x145))/0x5)+parseInt(_0x50181e(0x155))/0x6+parseInt(_0x50181e(0x14a))/0x7+parseInt(_0x50181e(0x153))/0x8*(-parseInt(_0x50181e(0x147))/0x9)+-parseInt(_0x50181e(0x151))/0xa*(parseInt(_0x50181e(0x14c))/0xb);if(_0xf5a422===_0x513be4)break;else _0x24d96e['push'](_0x24d96e['shift']());}catch(_0x4ced74){_0x24d96e['push'](_0x24d96e['shift']());}}}(a59_0x50f8,0x613f9));import{listDbLinks}from'../../core/api-client.js';function a59_0x2eae(_0x3c6309,_0x576625){_0x3c6309=_0x3c6309-0x142;const _0x50f842=a59_0x50f8();let _0x2eaedd=_0x50f842[_0x3c6309];return _0x2eaedd;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a59_0x50f8(){const _0x331f74=['234HqlpRB','\x20database\x20connection(s)','length','4334722zvyEdH','list','16507370CgRjAX','78686WrDATR','Page\x20index\x20(1-based)','pagesize','page','10FJpZud','Page\x20size','24AqAlwl','number','3196500GNKYru','98138uhNdpT','num','180wvFFeE','19745dSNyRq','30GLrriZ'];a59_0x50f8=function(){return _0x331f74;};return a59_0x50f8();}export const dbList={'service':'db','command':a59_0x2ae575(0x14b),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a59_0x2ae575(0x154),'description':a59_0x2ae575(0x14e),'default':0x1},{'name':a59_0x2ae575(0x14f),'type':a59_0x2ae575(0x154),'description':a59_0x2ae575(0x152),'default':0x64}],async 'execute'(_0x5ba425){const _0x2528e7=a59_0x2ae575,_0x447a1e=_0x5ba425[_0x2528e7(0x143)](_0x2528e7(0x150),0x1)||0x1,_0x22ca8a=_0x5ba425[_0x2528e7(0x143)](_0x2528e7(0x14f),0x64)||0x64,{items:_0x4b7689,paging:_0x2580b1}=await listDbLinks(_0x5ba425['appCode'],{'currentPage':_0x447a1e,'pageSize':_0x22ca8a}),_0x5af79a=sanitizeDbLinkList(_0x4b7689),_0x1053b7=_0x2580b1?_0x2580b1:{'currentPage':_0x447a1e,'pageSize':_0x22ca8a,'rowsOnPage':_0x5af79a['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x5af79a,'paging':_0x1053b7},'message':'Found\x20'+_0x5af79a[_0x2528e7(0x149)]+_0x2528e7(0x148)};}};
@@ -1 +1 @@
1
- (function(_0x702c34,_0x312b53){const _0x4b0109=a60_0x5e80,_0x1849b7=_0x702c34();while(!![]){try{const _0x516de8=parseInt(_0x4b0109(0x115))/0x1*(-parseInt(_0x4b0109(0x10e))/0x2)+parseInt(_0x4b0109(0x111))/0x3*(-parseInt(_0x4b0109(0x116))/0x4)+-parseInt(_0x4b0109(0x10b))/0x5+parseInt(_0x4b0109(0x112))/0x6*(parseInt(_0x4b0109(0x119))/0x7)+parseInt(_0x4b0109(0x113))/0x8*(parseInt(_0x4b0109(0x108))/0x9)+-parseInt(_0x4b0109(0x10a))/0xa+parseInt(_0x4b0109(0x109))/0xb*(parseInt(_0x4b0109(0x10c))/0xc);if(_0x516de8===_0x312b53)break;else _0x1849b7['push'](_0x1849b7['shift']());}catch(_0x3e3ca5){_0x1849b7['push'](_0x1849b7['shift']());}}}(a60_0x16df,0xa353b));function shouldRedactKey(_0x690b5c){const _0x16fbf6=a60_0x5e80,_0x54a178=_0x690b5c[_0x16fbf6(0x118)]();if(_0x54a178==='password'||_0x54a178===_0x16fbf6(0x107)||_0x54a178===_0x16fbf6(0x110))return!![];if(_0x54a178[_0x16fbf6(0x10f)]('secret')||_0x54a178[_0x16fbf6(0x10f)](_0x16fbf6(0x106))||_0x54a178[_0x16fbf6(0x10f)](_0x16fbf6(0x10d)))return!![];if(_0x54a178['includes'](_0x16fbf6(0x117))||_0x54a178[_0x16fbf6(0x10f)]('accesskey'))return!![];if(_0x54a178===_0x16fbf6(0x105)||_0x54a178==='connectionstring'||_0x54a178===_0x16fbf6(0x11a))return!![];return![];}function a60_0x5e80(_0x2889c8,_0x29d5f1){_0x2889c8=_0x2889c8-0x101;const _0x16dfb5=a60_0x16df();let _0x5e8002=_0x16dfb5[_0x2889c8];return _0x5e8002;}export function sanitizeDbLinkForOutput(_0x23a25c){const _0xc53b83=a60_0x5e80,_0x5855d8={..._0x23a25c};for(const _0x284826 of Object[_0xc53b83(0x103)](_0x5855d8)){if(!shouldRedactKey(_0x284826))continue;const _0x213dfa=_0x5855d8[_0x284826];_0x213dfa!=null&&String(_0x213dfa)[_0xc53b83(0x101)]>0x0&&(_0x5855d8[_0x284826]=_0xc53b83(0x102));}return _0x5855d8;}export function sanitizeDbLinkList(_0x5bfba1){const _0x27ba26=a60_0x5e80;return _0x5bfba1[_0x27ba26(0x104)](_0x1543a0=>sanitizeDbLinkForOutput(_0x1543a0));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a60_0x16df(){const _0x2f253d=['passwd','13086baaMws','11957TeRjcU','7238410vWwByF','244600jrQmcA','27228MULQLK','credential','34awgyfg','includes','dbpassword','3ArRXDb','534tqnRHt','5896irSItN','trim','67227RloojS','5165308BuYHWa','privatekey','toLowerCase','26579zsJbuw','jdbcurl','length','[redacted]','keys','map','authorization','token'];a60_0x16df=function(){return _0x2f253d;};return a60_0x16df();}export function validateDbUrl(_0xc565dc){const _0x3a0032=a60_0x5e80,_0x25a223=_0xc565dc[_0x3a0032(0x114)]();if(!_0x25a223)return![];return DB_URL_PATTERN['test'](_0x25a223);}
1
+ (function(_0x2df921,_0x3fe39b){const _0x4758bc=a60_0x22f3,_0x4317a4=_0x2df921();while(!![]){try{const _0x4c88ef=parseInt(_0x4758bc(0x1d9))/0x1*(parseInt(_0x4758bc(0x1c9))/0x2)+parseInt(_0x4758bc(0x1da))/0x3*(parseInt(_0x4758bc(0x1d2))/0x4)+parseInt(_0x4758bc(0x1cd))/0x5*(-parseInt(_0x4758bc(0x1cf))/0x6)+-parseInt(_0x4758bc(0x1c6))/0x7*(parseInt(_0x4758bc(0x1ca))/0x8)+parseInt(_0x4758bc(0x1de))/0x9*(-parseInt(_0x4758bc(0x1c7))/0xa)+parseInt(_0x4758bc(0x1d0))/0xb*(-parseInt(_0x4758bc(0x1d7))/0xc)+parseInt(_0x4758bc(0x1c8))/0xd;if(_0x4c88ef===_0x3fe39b)break;else _0x4317a4['push'](_0x4317a4['shift']());}catch(_0x480af5){_0x4317a4['push'](_0x4317a4['shift']());}}}(a60_0x18ca,0x664dc));function shouldRedactKey(_0x238ac0){const _0x5f3656=a60_0x22f3,_0x33ac0c=_0x238ac0[_0x5f3656(0x1c5)]();if(_0x33ac0c==='password'||_0x33ac0c==='passwd'||_0x33ac0c===_0x5f3656(0x1db))return!![];if(_0x33ac0c['includes'](_0x5f3656(0x1cb))||_0x33ac0c['includes'](_0x5f3656(0x1d3))||_0x33ac0c['includes'](_0x5f3656(0x1ce)))return!![];if(_0x33ac0c[_0x5f3656(0x1dd)](_0x5f3656(0x1cc))||_0x33ac0c[_0x5f3656(0x1dd)](_0x5f3656(0x1d6)))return!![];if(_0x33ac0c===_0x5f3656(0x1d4)||_0x33ac0c===_0x5f3656(0x1d8)||_0x33ac0c==='jdbcurl')return!![];return![];}function a60_0x22f3(_0x24a63c,_0x34632e){_0x24a63c=_0x24a63c-0x1c5;const _0x18ca9b=a60_0x18ca();let _0x22f352=_0x18ca9b[_0x24a63c];return _0x22f352;}export function sanitizeDbLinkForOutput(_0x253398){const _0x5eea84=a60_0x22f3,_0xc70e82={..._0x253398};for(const _0x6cdf78 of Object[_0x5eea84(0x1d1)](_0xc70e82)){if(!shouldRedactKey(_0x6cdf78))continue;const _0x238d8a=_0xc70e82[_0x6cdf78];_0x238d8a!=null&&String(_0x238d8a)[_0x5eea84(0x1dc)]>0x0&&(_0xc70e82[_0x6cdf78]=_0x5eea84(0x1df));}return _0xc70e82;}export function sanitizeDbLinkList(_0x3b6ad2){return _0x3b6ad2['map'](_0x249fae=>sanitizeDbLinkForOutput(_0x249fae));}function a60_0x18ca(){const _0x8970ca=['3piZjAv','dbpassword','length','includes','9NQHGhC','[redacted]','toLowerCase','7lgCsSY','3328390ALZbzM','18696119bLDgEn','36238WvhPpX','6265112YNKnLZ','secret','privatekey','378310VnPNSN','credential','6ppBtud','176wACrSB','keys','904140FqBXLJ','token','authorization','test','accesskey','502176fMYcyb','connectionstring','34DugMDn'];a60_0x18ca=function(){return _0x8970ca;};return a60_0x18ca();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x268cdc){const _0x86adac=a60_0x22f3,_0x2bed03=_0x268cdc['trim']();if(!_0x2bed03)return![];return DB_URL_PATTERN[_0x86adac(0x1d5)](_0x2bed03);}
@@ -1 +1 @@
1
- const a61_0x58afd8=a61_0x50fb;function a61_0x50fb(_0x3e4a65,_0x3c2cfb){_0x3e4a65=_0x3e4a65-0xbe;const _0x53de2a=a61_0x53de();let _0x50fbdb=_0x53de2a[_0x3e4a65];return _0x50fbdb;}(function(_0x20f447,_0x8a799d){const _0x3338bd=a61_0x50fb,_0x2daf5b=_0x20f447();while(!![]){try{const _0x445268=parseInt(_0x3338bd(0xc6))/0x1*(parseInt(_0x3338bd(0xcc))/0x2)+-parseInt(_0x3338bd(0xc7))/0x3+parseInt(_0x3338bd(0xca))/0x4+parseInt(_0x3338bd(0xbf))/0x5+-parseInt(_0x3338bd(0xc2))/0x6*(parseInt(_0x3338bd(0xc8))/0x7)+parseInt(_0x3338bd(0xc4))/0x8+parseInt(_0x3338bd(0xcb))/0x9*(parseInt(_0x3338bd(0xc1))/0xa);if(_0x445268===_0x8a799d)break;else _0x2daf5b['push'](_0x2daf5b['shift']());}catch(_0x90bad4){_0x2daf5b['push'](_0x2daf5b['shift']());}}}(a61_0x53de,0xa5a00));function a61_0x53de(){const _0x5c93f6=['9598842HfRrRM','4jNtocg','length','1425545dFjGnM','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','10OFSIPE','6XXENjd','num','104240QaOkOM','\x20table(s)\x20on\x20db\x20link\x20','54907qMoqMV','3237303FVgdIk','6386093tyejDr','read','4781236TqeYGw'];a61_0x53de=function(){return _0x5c93f6;};return a61_0x53de();}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':a61_0x58afd8(0xc0),'risk':a61_0x58afd8(0xc9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x53d000){const _0x235649=a61_0x58afd8,_0x220222=_0x53d000[_0x235649(0xc3)]('id'),_0x1a6758=await getDbAllTableList(_0x53d000['appCode'],_0x220222);return{'ok':!![],'data':{'dbLinkId':_0x220222,'total':_0x1a6758['length'],'tables':_0x1a6758},'message':_0x1a6758[_0x235649(0xbe)]+_0x235649(0xc5)+_0x220222};}};
1
+ const a61_0x4ff9f2=a61_0x2e29;(function(_0x57434f,_0x356b98){const _0x13bf35=a61_0x2e29,_0x55a6db=_0x57434f();while(!![]){try{const _0x5e7004=parseInt(_0x13bf35(0x12d))/0x1*(parseInt(_0x13bf35(0x124))/0x2)+parseInt(_0x13bf35(0x12b))/0x3+parseInt(_0x13bf35(0x12a))/0x4*(parseInt(_0x13bf35(0x12e))/0x5)+-parseInt(_0x13bf35(0x129))/0x6*(parseInt(_0x13bf35(0x123))/0x7)+-parseInt(_0x13bf35(0x126))/0x8+parseInt(_0x13bf35(0x11f))/0x9*(-parseInt(_0x13bf35(0x120))/0xa)+parseInt(_0x13bf35(0x12c))/0xb;if(_0x5e7004===_0x356b98)break;else _0x55a6db['push'](_0x55a6db['shift']());}catch(_0x3edbb0){_0x55a6db['push'](_0x55a6db['shift']());}}}(a61_0x3d5c,0xdf90b));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a61_0x2e29(_0x22f22c,_0x34720b){_0x22f22c=_0x22f22c-0x11e;const _0x3d5ccb=a61_0x3d5c();let _0x2e29d6=_0x3d5ccb[_0x22f22c];return _0x2e29d6;}export const dbTables={'service':'db','command':a61_0x4ff9f2(0x122),'description':a61_0x4ff9f2(0x11e),'risk':a61_0x4ff9f2(0x121),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x22002f){const _0x310bf6=a61_0x4ff9f2,_0x3283c2=_0x22002f['num']('id'),_0xa8b81b=await getDbAllTableList(_0x22002f[_0x310bf6(0x127)],_0x3283c2);return{'ok':!![],'data':{'dbLinkId':_0x3283c2,'total':_0xa8b81b[_0x310bf6(0x128)],'tables':_0xa8b81b},'message':_0xa8b81b[_0x310bf6(0x128)]+_0x310bf6(0x125)+_0x3283c2};}};function a61_0x3d5c(){const _0x4ed21b=['List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','24300opgFbH','5670ZueiXk','read','tables','7nNSKeX','140BbLQsP','\x20table(s)\x20on\x20db\x20link\x20','2269552spVmgJ','appCode','length','850548ZbmWOT','4908pSyEig','692454PJKSkb','9582661oWJcJk','15331vMHnsP','2840DRlbyt'];a61_0x3d5c=function(){return _0x4ed21b;};return a61_0x3d5c();}
@@ -1 +1 @@
1
- const a62_0x220f2f=a62_0x4c18;function a62_0x36d4(){const _0x2ff1c3=['object','659359mqWUfK','code','16239IHZRvr','keys','7VIMgZq','success','data','Connection\x20OK\x20for\x20db\x20link\x20','message','num','slice','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','32142IVhUCr','48371080CKOpEN','length','7300240wuWpYG','test','\x20(see\x20data.result)','2oizROl','748ksJtLE','error','5341695loTYly','3573045DTrFVP'];a62_0x36d4=function(){return _0x2ff1c3;};return a62_0x36d4();}(function(_0x568bfd,_0x33cb9c){const _0x5495e7=a62_0x4c18,_0x18b338=_0x568bfd();while(!![]){try{const _0x58a557=-parseInt(_0x5495e7(0x1cd))/0x1*(parseInt(_0x5495e7(0x1c7))/0x2)+-parseInt(_0x5495e7(0x1cf))/0x3*(parseInt(_0x5495e7(0x1c8))/0x4)+-parseInt(_0x5495e7(0x1ca))/0x5+parseInt(_0x5495e7(0x1d9))/0x6+-parseInt(_0x5495e7(0x1d1))/0x7*(parseInt(_0x5495e7(0x1dc))/0x8)+-parseInt(_0x5495e7(0x1cb))/0x9+parseInt(_0x5495e7(0x1da))/0xa;if(_0x58a557===_0x33cb9c)break;else _0x18b338['push'](_0x18b338['shift']());}catch(_0x953a07){_0x18b338['push'](_0x18b338['shift']());}}}(a62_0x36d4,0xc19a9));import{testDbLinkConnect}from'../../core/api-client.js';function a62_0x4c18(_0x68d9c3,_0xaab89b){_0x68d9c3=_0x68d9c3-0x1c5;const _0x36d479=a62_0x36d4();let _0x4c18c3=_0x36d479[_0x68d9c3];return _0x4c18c3;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x4b7b45){const _0x5dd2d5=a62_0x4c18;if(_0x4b7b45===!![]||_0x4b7b45===![])return{'success':_0x4b7b45};if(_0x4b7b45===null||_0x4b7b45===undefined)return{'type':typeof _0x4b7b45};if(typeof _0x4b7b45!==_0x5dd2d5(0x1cc))return{'type':typeof _0x4b7b45};const _0x23f722=_0x4b7b45,_0x24e378=[_0x5dd2d5(0x1d2),_0x5dd2d5(0x1d5),_0x5dd2d5(0x1ce),_0x5dd2d5(0x1c9),'msg',_0x5dd2d5(0x1d3)],_0x420e85={};for(const _0x393284 of _0x24e378){if(_0x393284 in _0x23f722)_0x420e85[_0x393284]=_0x23f722[_0x393284];}return Object[_0x5dd2d5(0x1d0)](_0x420e85)[_0x5dd2d5(0x1db)]===0x0&&(_0x420e85[_0x5dd2d5(0x1d0)]=Object['keys'](_0x23f722)[_0x5dd2d5(0x1d7)](0x0,0x14)),_0x420e85;}export const dbTest={'service':'db','command':a62_0x220f2f(0x1c5),'description':a62_0x220f2f(0x1d8),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x359be0){const _0x3de457=a62_0x220f2f,_0x3a2a49=_0x359be0[_0x3de457(0x1d6)]('id'),_0x4871e3=await testDbLinkConnect(_0x3a2a49),_0x56c5f6=_0x4871e3===!![]||typeof _0x4871e3===_0x3de457(0x1cc)&&_0x4871e3!==null&&_0x4871e3['success']===!![],_0x343a67=summarizeTestConnectResult(_0x4871e3);return{'ok':!![],'data':{'id':_0x3a2a49,'connected':Boolean(_0x56c5f6),'result':_0x343a67},'message':_0x56c5f6?_0x3de457(0x1d4)+_0x3a2a49:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x3a2a49+_0x3de457(0x1c6)};}};
1
+ const a62_0x17d9f9=a62_0x5455;(function(_0x596b77,_0x1a18fa){const _0x5c8137=a62_0x5455,_0x392436=_0x596b77();while(!![]){try{const _0xd4609b=parseInt(_0x5c8137(0xb8))/0x1*(-parseInt(_0x5c8137(0xbd))/0x2)+parseInt(_0x5c8137(0xbf))/0x3+parseInt(_0x5c8137(0xbc))/0x4+-parseInt(_0x5c8137(0xb7))/0x5*(parseInt(_0x5c8137(0xbe))/0x6)+parseInt(_0x5c8137(0xb4))/0x7*(parseInt(_0x5c8137(0xba))/0x8)+-parseInt(_0x5c8137(0xb9))/0x9*(-parseInt(_0x5c8137(0xc3))/0xa)+-parseInt(_0x5c8137(0xc1))/0xb*(-parseInt(_0x5c8137(0xc9))/0xc);if(_0xd4609b===_0x1a18fa)break;else _0x392436['push'](_0x392436['shift']());}catch(_0xa7140c){_0x392436['push'](_0x392436['shift']());}}}(a62_0x9fad,0x35ae8));import{testDbLinkConnect}from'../../core/api-client.js';function a62_0x9fad(){const _0x267c88=['\x20(see\x20data.result)','Connection\x20check\x20finished\x20for\x20db\x20link\x20','message','769476NKkesb','length','slice','error','test','msg','7yelxbB','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20OK\x20for\x20db\x20link\x20','144385MTENcx','11BTsIbE','924435BYLfoe','308680cMHekO','success','923924eieYWa','28802eVsexU','90yEYVZd','1125126CfLtXH','object','11KzYOtq','keys','10btcpLB','num','code'];a62_0x9fad=function(){return _0x267c88;};return a62_0x9fad();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5eb632){const _0x1c1fc9=a62_0x5455;if(_0x5eb632===!![]||_0x5eb632===![])return{'success':_0x5eb632};if(_0x5eb632===null||_0x5eb632===undefined)return{'type':typeof _0x5eb632};if(typeof _0x5eb632!=='object')return{'type':typeof _0x5eb632};const _0x140b2d=_0x5eb632,_0x393621=[_0x1c1fc9(0xbb),_0x1c1fc9(0xc8),_0x1c1fc9(0xc5),_0x1c1fc9(0xb1),_0x1c1fc9(0xb3),'data'],_0x2692a0={};for(const _0x541390 of _0x393621){if(_0x541390 in _0x140b2d)_0x2692a0[_0x541390]=_0x140b2d[_0x541390];}return Object[_0x1c1fc9(0xc2)](_0x2692a0)[_0x1c1fc9(0xca)]===0x0&&(_0x2692a0[_0x1c1fc9(0xc2)]=Object['keys'](_0x140b2d)[_0x1c1fc9(0xcb)](0x0,0x14)),_0x2692a0;}function a62_0x5455(_0x579008,_0xcfada0){_0x579008=_0x579008-0xb1;const _0x9fadbc=a62_0x9fad();let _0x54556a=_0x9fadbc[_0x579008];return _0x54556a;}export const dbTest={'service':'db','command':a62_0x17d9f9(0xb2),'description':a62_0x17d9f9(0xb5),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x44ef62){const _0x73e8b5=a62_0x17d9f9,_0x3af2e9=_0x44ef62[_0x73e8b5(0xc4)]('id'),_0x41c8d5=await testDbLinkConnect(_0x3af2e9),_0x1e0e30=_0x41c8d5===!![]||typeof _0x41c8d5===_0x73e8b5(0xc0)&&_0x41c8d5!==null&&_0x41c8d5['success']===!![],_0x219fbe=summarizeTestConnectResult(_0x41c8d5);return{'ok':!![],'data':{'id':_0x3af2e9,'connected':Boolean(_0x1e0e30),'result':_0x219fbe},'message':_0x1e0e30?_0x73e8b5(0xb6)+_0x3af2e9:_0x73e8b5(0xc7)+_0x3af2e9+_0x73e8b5(0xc6)};}};
@@ -1 +1 @@
1
- const a63_0x4827ca=a63_0x39d9;(function(_0x4ae473,_0x4f190d){const _0x4921ae=a63_0x39d9,_0x3de7e6=_0x4ae473();while(!![]){try{const _0x51d67c=-parseInt(_0x4921ae(0x17e))/0x1*(-parseInt(_0x4921ae(0x17b))/0x2)+-parseInt(_0x4921ae(0x17a))/0x3*(parseInt(_0x4921ae(0x190))/0x4)+parseInt(_0x4921ae(0x181))/0x5+parseInt(_0x4921ae(0x18f))/0x6+-parseInt(_0x4921ae(0x191))/0x7+-parseInt(_0x4921ae(0x186))/0x8+parseInt(_0x4921ae(0x18b))/0x9;if(_0x51d67c===_0x4f190d)break;else _0x3de7e6['push'](_0x3de7e6['shift']());}catch(_0xc445b8){_0x3de7e6['push'](_0x3de7e6['shift']());}}}(a63_0x55ed,0x6b07d));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a63_0x55ed(){const _0x17a9d8=['dbdesc','3794740vYYrGo','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dburl','dbUrl','2837216rxbaTE','dbParam','num','write','New\x20description','7660116HOjLif','dbName','dbparam','New\x20database\x20name','211776VLBajn','1096GoYFJZ','1761718wIjtqA','New\x20connection\x20parameter\x20string','username','dbDesc','New\x20host:port','str','dbname','New\x20username','trim','POST','7071QtwRPm','398scXhQa','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','string','227iLyehE','password'];a63_0x55ed=function(){return _0x17a9d8;};return a63_0x55ed();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a63_0x39d9(_0x409c8b,_0x16183){_0x409c8b=_0x409c8b-0x17a;const _0x55ed6d=a63_0x55ed();let _0x39d9d5=_0x55ed6d[_0x409c8b];return _0x39d9d5;}export const dbUpdate={'service':'db','command':'update','description':a63_0x4827ca(0x183),'risk':a63_0x4827ca(0x189),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x4827ca(0x197),'type':a63_0x4827ca(0x17d),'description':a63_0x4827ca(0x18e)},{'name':'dburl','type':a63_0x4827ca(0x17d),'description':a63_0x4827ca(0x195)},{'name':a63_0x4827ca(0x193),'type':a63_0x4827ca(0x17d),'description':a63_0x4827ca(0x198)},{'name':a63_0x4827ca(0x17f),'type':a63_0x4827ca(0x17d),'description':a63_0x4827ca(0x17c)},{'name':a63_0x4827ca(0x18d),'type':'string','description':a63_0x4827ca(0x192)},{'name':a63_0x4827ca(0x180),'type':a63_0x4827ca(0x17d),'description':a63_0x4827ca(0x18a)}],async 'validate'(_0x429f35){const _0x420ea8=a63_0x4827ca,_0x4d2364=_0x429f35[_0x420ea8(0x196)](_0x420ea8(0x184));if(_0x4d2364&&!validateDbUrl(_0x4d2364[_0x420ea8(0x199)]()))throw CliErrors['validation'](_0x420ea8(0x182)+_0x4d2364+'\x22');},async 'dryRun'(_0x3b70f1){const _0x2e02b8=a63_0x4827ca,_0x20bdd1=_0x3b70f1[_0x2e02b8(0x188)]('id'),_0x58c732=await getDbLinkInfo(_0x20bdd1),_0x39a1e1={..._0x58c732},_0x44ea0e=_0x3b70f1['str']('dbname');if(_0x44ea0e)_0x39a1e1[_0x2e02b8(0x18c)]=_0x44ea0e;const _0x4f6167=_0x3b70f1[_0x2e02b8(0x196)]('dburl');if(_0x4f6167)_0x39a1e1[_0x2e02b8(0x185)]=_0x4f6167['trim']();const _0x3fe8ac=_0x3b70f1[_0x2e02b8(0x196)](_0x2e02b8(0x193));if(_0x3fe8ac)_0x39a1e1[_0x2e02b8(0x193)]=_0x3fe8ac;const _0x360959=_0x3b70f1[_0x2e02b8(0x196)](_0x2e02b8(0x17f));if(_0x360959)_0x39a1e1[_0x2e02b8(0x17f)]=_0x360959;const _0x50937f=_0x3b70f1[_0x2e02b8(0x196)](_0x2e02b8(0x18d));if(_0x50937f)_0x39a1e1[_0x2e02b8(0x187)]=_0x50937f;const _0x1a57b3=_0x3b70f1[_0x2e02b8(0x196)](_0x2e02b8(0x180));if(_0x1a57b3)_0x39a1e1[_0x2e02b8(0x194)]=_0x1a57b3;const _0x3a9570=sanitizeDbLinkForOutput(_0x39a1e1);return{'method':_0x2e02b8(0x19a),'url':'/smartapi/dblink/update','body':_0x3a9570,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x3fd4af){const _0x270449=a63_0x4827ca,_0x55ddf0=_0x3fd4af[_0x270449(0x188)]('id'),_0xc02c38=await getDbLinkInfo(_0x55ddf0),_0x1429d2={..._0xc02c38},_0x51d715=_0x3fd4af[_0x270449(0x196)]('dbname');if(_0x51d715)_0x1429d2[_0x270449(0x18c)]=_0x51d715;const _0x52014b=_0x3fd4af[_0x270449(0x196)]('dburl');if(_0x52014b)_0x1429d2['dbUrl']=_0x52014b[_0x270449(0x199)]();const _0x4f1602=_0x3fd4af[_0x270449(0x196)](_0x270449(0x193));if(_0x4f1602)_0x1429d2['username']=_0x4f1602;const _0x1516c7=_0x3fd4af['str'](_0x270449(0x17f));if(_0x1516c7)_0x1429d2[_0x270449(0x17f)]=_0x1516c7;const _0x519b7e=_0x3fd4af[_0x270449(0x196)](_0x270449(0x18d));if(_0x519b7e)_0x1429d2[_0x270449(0x187)]=_0x519b7e;const _0x4918ee=_0x3fd4af[_0x270449(0x196)]('dbdesc');if(_0x4918ee)_0x1429d2[_0x270449(0x194)]=_0x4918ee;const _0x23b3dd=await updateDbLink(_0x1429d2);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x23b3dd),'message':'Updated\x20db\x20link\x20'+_0x55ddf0};}};
1
+ const a63_0x328ba7=a63_0x1338;(function(_0x2626a2,_0x784547){const _0x3a8d35=a63_0x1338,_0x20d0b8=_0x2626a2();while(!![]){try{const _0xbe2d53=-parseInt(_0x3a8d35(0x107))/0x1+-parseInt(_0x3a8d35(0x102))/0x2+-parseInt(_0x3a8d35(0x10c))/0x3*(-parseInt(_0x3a8d35(0xf9))/0x4)+parseInt(_0x3a8d35(0xff))/0x5+-parseInt(_0x3a8d35(0x108))/0x6*(parseInt(_0x3a8d35(0x104))/0x7)+parseInt(_0x3a8d35(0x109))/0x8*(-parseInt(_0x3a8d35(0xf6))/0x9)+parseInt(_0x3a8d35(0x101))/0xa;if(_0xbe2d53===_0x784547)break;else _0x20d0b8['push'](_0x20d0b8['shift']());}catch(_0x1c92cc){_0x20d0b8['push'](_0x20d0b8['shift']());}}}(a63_0x2966,0x4f5e8));function a63_0x2966(){const _0x87a5b2=['Updated\x20db\x20link\x20','dbparam','dburl','New\x20description','2388925DfZrhf','username','7707370BsSHCh','1236248DZiexO','trim','2328403MYZqTz','dbname','string','131872cnmHud','6VDfemm','6640iZqBOF','dbName','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','3haNJnj','POST','New\x20host:port','New\x20connection\x20parameter\x20string','dbParam','validation','num','dbdesc','password','write','dbDesc','3618cPuehq','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','/smartapi/dblink/update','1971436PzCiSa','str'];a63_0x2966=function(){return _0x87a5b2;};return a63_0x2966();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a63_0x1338(_0x37da32,_0x45fdf7){_0x37da32=_0x37da32-0xf4;const _0x296630=a63_0x2966();let _0x133868=_0x296630[_0x37da32];return _0x133868;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';export const dbUpdate={'service':'db','command':'update','description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a63_0x328ba7(0xf4),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x328ba7(0x105),'type':a63_0x328ba7(0x106),'description':'New\x20database\x20name'},{'name':'dburl','type':'string','description':a63_0x328ba7(0x10e)},{'name':a63_0x328ba7(0x100),'type':a63_0x328ba7(0x106),'description':'New\x20username'},{'name':a63_0x328ba7(0x114),'type':a63_0x328ba7(0x106),'description':a63_0x328ba7(0xf7)},{'name':a63_0x328ba7(0xfc),'type':'string','description':a63_0x328ba7(0x10f)},{'name':a63_0x328ba7(0x113),'type':'string','description':a63_0x328ba7(0xfe)}],async 'validate'(_0x51587d){const _0xf5ea60=a63_0x328ba7,_0x1dcd9a=_0x51587d['str']('dburl');if(_0x1dcd9a&&!validateDbUrl(_0x1dcd9a[_0xf5ea60(0x103)]()))throw CliErrors[_0xf5ea60(0x111)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x1dcd9a+'\x22');},async 'dryRun'(_0x2c77d2){const _0x1eb16a=a63_0x328ba7,_0x2bf938=_0x2c77d2['num']('id'),_0x1b6023=await getDbLinkInfo(_0x2bf938),_0x50caf2={..._0x1b6023},_0x1815db=_0x2c77d2[_0x1eb16a(0xfa)](_0x1eb16a(0x105));if(_0x1815db)_0x50caf2['dbName']=_0x1815db;const _0x1388d6=_0x2c77d2[_0x1eb16a(0xfa)](_0x1eb16a(0xfd));if(_0x1388d6)_0x50caf2['dbUrl']=_0x1388d6[_0x1eb16a(0x103)]();const _0x45270b=_0x2c77d2[_0x1eb16a(0xfa)](_0x1eb16a(0x100));if(_0x45270b)_0x50caf2[_0x1eb16a(0x100)]=_0x45270b;const _0x2bc5c0=_0x2c77d2[_0x1eb16a(0xfa)](_0x1eb16a(0x114));if(_0x2bc5c0)_0x50caf2[_0x1eb16a(0x114)]=_0x2bc5c0;const _0x2c39e3=_0x2c77d2[_0x1eb16a(0xfa)](_0x1eb16a(0xfc));if(_0x2c39e3)_0x50caf2[_0x1eb16a(0x110)]=_0x2c39e3;const _0x41f694=_0x2c77d2['str'](_0x1eb16a(0x113));if(_0x41f694)_0x50caf2['dbDesc']=_0x41f694;const _0x54e5da=sanitizeDbLinkForOutput(_0x50caf2);return{'method':_0x1eb16a(0x10d),'url':_0x1eb16a(0xf8),'body':_0x54e5da,'description':_0x1eb16a(0x10b)};},async 'execute'(_0x48eed1){const _0x119a0a=a63_0x328ba7,_0x5da555=_0x48eed1[_0x119a0a(0x112)]('id'),_0x2c9d86=await getDbLinkInfo(_0x5da555),_0x2c1ede={..._0x2c9d86},_0x43ddd4=_0x48eed1[_0x119a0a(0xfa)](_0x119a0a(0x105));if(_0x43ddd4)_0x2c1ede[_0x119a0a(0x10a)]=_0x43ddd4;const _0x47627d=_0x48eed1[_0x119a0a(0xfa)](_0x119a0a(0xfd));if(_0x47627d)_0x2c1ede['dbUrl']=_0x47627d['trim']();const _0x10e097=_0x48eed1[_0x119a0a(0xfa)](_0x119a0a(0x100));if(_0x10e097)_0x2c1ede[_0x119a0a(0x100)]=_0x10e097;const _0x546c6f=_0x48eed1['str'](_0x119a0a(0x114));if(_0x546c6f)_0x2c1ede['password']=_0x546c6f;const _0x16baf3=_0x48eed1[_0x119a0a(0xfa)](_0x119a0a(0xfc));if(_0x16baf3)_0x2c1ede['dbParam']=_0x16baf3;const _0x36a3fa=_0x48eed1[_0x119a0a(0xfa)](_0x119a0a(0x113));if(_0x36a3fa)_0x2c1ede[_0x119a0a(0xf5)]=_0x36a3fa;const _0x43405b=await updateDbLink(_0x2c1ede);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x43405b),'message':_0x119a0a(0xfb)+_0x5da555};}};
@@ -1 +1 @@
1
- const a64_0x2f7396=a64_0x5a0a;(function(_0x2d9fa4,_0xae185f){const _0x1994e5=a64_0x5a0a,_0x573f25=_0x2d9fa4();while(!![]){try{const _0x360817=-parseInt(_0x1994e5(0x19e))/0x1+-parseInt(_0x1994e5(0x1e1))/0x2+-parseInt(_0x1994e5(0x1c0))/0x3+-parseInt(_0x1994e5(0x1a3))/0x4+parseInt(_0x1994e5(0x1d4))/0x5+parseInt(_0x1994e5(0x1e5))/0x6*(-parseInt(_0x1994e5(0x1b0))/0x7)+parseInt(_0x1994e5(0x1d7))/0x8*(parseInt(_0x1994e5(0x1a1))/0x9);if(_0x360817===_0xae185f)break;else _0x573f25['push'](_0x573f25['shift']());}catch(_0x4ee693){_0x573f25['push'](_0x573f25['shift']());}}}(a64_0x3def,0xbd85e));function a64_0x3def(){const _0x89cef6=['version','accessKey','unknown','verbose','appcode','status','✓\x20Valid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','apiDir','explicitAppName','1070358DYbCVv','repeat','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','(default)','\x20(default)','\x20\x20Merged\x20Config','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','value','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✗\x20Expired','missing','\x20←\x20current','⚠\x20Empty\x20(treated\x20as\x20{})','(set,\x20length=','1168525MESpyf','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','7336IPgXio','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','gray','(set\x20via\x20file,\x20length=','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20Auth','keys','Global','391356eNBkOD','env','source','padEnd','552ILWiIa','(missing)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','platform','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','arch','\x20\x20Config\x20Files','format','\x20\x20─','cookie','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','(default:\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1416747eOTCMI','\x20\x20Apps','red','29628AZqWao','(not\x20set)','1645536AvCnEL','raw','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','bold','locale','✗\x20Invalid\x20JSON','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','length','defaultApp','\x20doctor','7273CktvJZ','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','log','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','green'];a64_0x3def=function(){return _0x89cef6;};return a64_0x3def();}import a64_0x192582 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a64_0x5a0a(_0x34ea03,_0x532a8c){_0x34ea03=_0x34ea03-0x192;const _0x3defc3=a64_0x3def();let _0x5a0a6=_0x3defc3[_0x34ea03];return _0x5a0a6;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x424d5b){const _0x5e0f64=a64_0x5a0a,_0x17dd7a=GIT_COMMIT!==_0x5e0f64(0x1b8)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5e0f64(0x1e8)](0x0,0xa)+')':VERSION,_0x5d201d=buildConfigFromFlags({}),_0x1552ce=getCookie();console['log'](),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1a8)](CLI_BIN_NAME+_0x5e0f64(0x1af))),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1da)]('─'[_0x5e0f64(0x1c1)](0x32))),console[_0x5e0f64(0x1b2)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x17dd7a),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1c8)+process[_0x5e0f64(0x1b6)]),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1a6)+process[_0x5e0f64(0x1e9)]+'\x20'+process[_0x5e0f64(0x193)]),console[_0x5e0f64(0x1b2)](),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1a8)](_0x5e0f64(0x194))),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x196)[_0x5e0f64(0x1c1)](0x1e)));const _0x228a03=getGlobalConfigPath(),_0x29b45a=getProjectConfigPath();console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1e7)+(_0x228a03||a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1cc)))),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1c2)+(_0x29b45a||a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1cc)))),console[_0x5e0f64(0x1b2)](),console['log'](a64_0x192582['bold']('\x20\x20Config\x20JSON')),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x196)[_0x5e0f64(0x1c1)](0x1e)));const _0x1240d7=(_0x29f9d7,_0x129c79)=>{const _0x57930e=_0x5e0f64;if(!_0x129c79){console[_0x57930e(0x1b2)]('\x20\x20'+_0x29f9d7[_0x57930e(0x1e4)](0x11)+'\x20'+a64_0x192582['gray'](_0x57930e(0x1c3)));return;}const _0xd42950=inspectCliConfigJsonFile(_0x129c79);if(_0xd42950['status']==='ok')console[_0x57930e(0x1b2)]('\x20\x20'+_0x29f9d7[_0x57930e(0x1e4)](0x11)+'\x20'+a64_0x192582[_0x57930e(0x1b5)](_0x57930e(0x1bc)));else{if(_0xd42950[_0x57930e(0x1bb)]==='empty')console['log']('\x20\x20'+_0x29f9d7[_0x57930e(0x1e4)](0x11)+'\x20'+a64_0x192582['yellow'](_0x57930e(0x1d2)));else _0xd42950[_0x57930e(0x1bb)]===_0x57930e(0x1d0)?console['log']('\x20\x20'+_0x29f9d7[_0x57930e(0x1e4)](0x11)+'\x20'+a64_0x192582[_0x57930e(0x1da)](_0x57930e(0x1e6))):(console[_0x57930e(0x1b2)]('\x20\x20'+_0x29f9d7[_0x57930e(0x1e4)](0x11)+'\x20'+a64_0x192582['red'](_0x57930e(0x1aa))),console[_0x57930e(0x1b2)]('\x20\x20'+''[_0x57930e(0x1e4)](0x11)+'\x20'+a64_0x192582['red'](_0xd42950['message'])));}};_0x1240d7(_0x5e0f64(0x1e0),_0x228a03),_0x1240d7('Project',_0x29b45a),console[_0x5e0f64(0x1b2)](),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1a8)](_0x5e0f64(0x1c6))),console['log'](a64_0x192582[_0x5e0f64(0x1da)]('\x20\x20─'[_0x5e0f64(0x1c1)](0x1e))),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1d5)+(_0x5d201d['appCode']||a64_0x192582[_0x5e0f64(0x1a0)](_0x5e0f64(0x1a2)))),console['log'](_0x5e0f64(0x1cd)+_0x5d201d['env']),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1dc)+_0x5d201d[_0x5e0f64(0x1a9)]),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x19d)+_0x5d201d['apiDir']),console['log'](_0x5e0f64(0x1ce)+(_0x5d201d[_0x5e0f64(0x1ae)]||a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1b4)))),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x192)+(_0x5d201d[_0x5e0f64(0x199)]||a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1b4)))),console[_0x5e0f64(0x1b2)]('\x20\x20explicitAppName:\x20'+(_0x5d201d[_0x5e0f64(0x1bf)]||a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1b4)))),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1ab)+(_0x5d201d[_0x5e0f64(0x195)]||a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x19a)+DEFAULT_CONFIG_VALUES[_0x5e0f64(0x195)]+')'))),console['log'](_0x5e0f64(0x1a7)+(_0x5d201d[_0x5e0f64(0x1ac)]??a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1c4)))),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1d6)+_0x5d201d['riskLevel']),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x198)+_0x5d201d[_0x5e0f64(0x1b9)]),console['log'](_0x5e0f64(0x1c7)+(_0x5d201d['cookie']?a64_0x192582[_0x5e0f64(0x1b5)](_0x5e0f64(0x1d3)+_0x5d201d[_0x5e0f64(0x197)]['length']+')'):_0x1552ce?a64_0x192582['green'](_0x5e0f64(0x1db)+_0x1552ce[_0x5e0f64(0x1ad)]+')'):a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1b4))));const _0x11ec96=Object[_0x5e0f64(0x1df)](_0x5d201d['apps']);if(_0x11ec96[_0x5e0f64(0x1ad)]>0x0){console[_0x5e0f64(0x1b2)](),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1a8)](_0x5e0f64(0x19f))),console['log'](a64_0x192582[_0x5e0f64(0x1da)]('\x20\x20─'[_0x5e0f64(0x1c1)](0x1e)));for(const _0x51ca98 of _0x11ec96){const _0x2064e6=_0x5d201d['apps'][_0x51ca98],_0x30aa78=_0x51ca98===_0x5d201d['defaultApp'],_0x323f08=_0x51ca98===_0x5d201d['currentApp'],_0xcf72d5=_0x323f08?a64_0x192582[_0x5e0f64(0x1b5)](_0x5e0f64(0x1d1)):'',_0x5805a9=_0x30aa78?_0x5e0f64(0x1c5):'';console['log']('\x20\x20'+_0x51ca98+_0x5805a9+_0xcf72d5),console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1d9)+_0x2064e6[_0x5e0f64(0x1ba)]);const _0x7f423e=buildAppDoctorFields(_0x2064e6,{'env':_0x5d201d['env'],'apiDir':_0x5d201d[_0x5e0f64(0x1a4)][_0x5e0f64(0x1be)]||DEFAULT_CONFIG_VALUES[_0x5e0f64(0x1be)],'cookie':_0x5d201d['cookie']||_0x1552ce||undefined,'accessKey':_0x5d201d['accessKey']});console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1b3)+_0x7f423e[_0x5e0f64(0x1e2)][_0x5e0f64(0x1ca)]+'\x20\x20'+a64_0x192582[_0x5e0f64(0x1da)]('('+_0x7f423e['env'][_0x5e0f64(0x1e3)]+')')),console['log'](_0x5e0f64(0x19c)+_0x7f423e[_0x5e0f64(0x1be)][_0x5e0f64(0x1ca)]+'\x20\x20'+a64_0x192582[_0x5e0f64(0x1da)]('('+_0x7f423e[_0x5e0f64(0x1be)][_0x5e0f64(0x1e3)]+')'));const _0x2f39ae=_0x7f423e['cookie'][_0x5e0f64(0x1ca)]?a64_0x192582[_0x5e0f64(0x1b5)](_0x5e0f64(0x1d3)+_0x7f423e[_0x5e0f64(0x197)][_0x5e0f64(0x1ca)][_0x5e0f64(0x1ad)]+')'):a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1b4));console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1b1)+_0x2f39ae+'\x20\x20'+a64_0x192582[_0x5e0f64(0x1da)]('('+_0x7f423e['cookie'][_0x5e0f64(0x1e3)]+')'));const _0x28dc13=_0x7f423e[_0x5e0f64(0x1b7)][_0x5e0f64(0x1ca)]?a64_0x192582[_0x5e0f64(0x1b5)](_0x5e0f64(0x1d3)+_0x7f423e[_0x5e0f64(0x1b7)][_0x5e0f64(0x1ca)][_0x5e0f64(0x1ad)]+')'):a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x1b4));console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1d8)+_0x28dc13+'\x20\x20'+a64_0x192582[_0x5e0f64(0x1da)]('('+_0x7f423e[_0x5e0f64(0x1b7)][_0x5e0f64(0x1e3)]+')'));}}console[_0x5e0f64(0x1b2)](),console['log'](a64_0x192582[_0x5e0f64(0x1a8)]('\x20\x20API\x20Endpoints')),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x196)[_0x5e0f64(0x1c1)](0x1e))),console['log'](_0x5e0f64(0x1bd)+getApiDomain()),console['log'](_0x5e0f64(0x1cb)+getUserDomain()),console[_0x5e0f64(0x1b2)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x5e0f64(0x1b2)](),console['log'](a64_0x192582[_0x5e0f64(0x1a8)](_0x5e0f64(0x1de))),console[_0x5e0f64(0x1b2)](a64_0x192582[_0x5e0f64(0x1da)](_0x5e0f64(0x196)['repeat'](0x1e)));if(_0x1552ce){const _0x164a23=await getIsSessionValid();console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1a5)+(_0x164a23?a64_0x192582[_0x5e0f64(0x1b5)]('✓\x20Valid'):a64_0x192582[_0x5e0f64(0x1a0)](_0x5e0f64(0x1cf))));}else console[_0x5e0f64(0x1b2)](_0x5e0f64(0x1a5)+a64_0x192582['red'](_0x5e0f64(0x19b)));return console[_0x5e0f64(0x1b2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a64_0x2f7396(0x1dd),'description':a64_0x2f7396(0x1c9),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a64_0x20b17c=a64_0x1aa6;(function(_0x3843fe,_0x25849d){const _0x25dbcf=a64_0x1aa6,_0x4c5ec6=_0x3843fe();while(!![]){try{const _0x28e37c=-parseInt(_0x25dbcf(0x165))/0x1+parseInt(_0x25dbcf(0x16a))/0x2*(-parseInt(_0x25dbcf(0x147))/0x3)+-parseInt(_0x25dbcf(0x12b))/0x4+-parseInt(_0x25dbcf(0x131))/0x5*(-parseInt(_0x25dbcf(0x175))/0x6)+parseInt(_0x25dbcf(0x139))/0x7*(-parseInt(_0x25dbcf(0x173))/0x8)+-parseInt(_0x25dbcf(0x176))/0x9+-parseInt(_0x25dbcf(0x129))/0xa*(-parseInt(_0x25dbcf(0x158))/0xb);if(_0x28e37c===_0x25849d)break;else _0x4c5ec6['push'](_0x4c5ec6['shift']());}catch(_0x5eba30){_0x4c5ec6['push'](_0x4c5ec6['shift']());}}}(a64_0x1f35,0x67c5f));import a64_0x10b3e7 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a64_0x1f35(){const _0x381cf2=['✓\x20Valid','appcode','log','bold','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20(default)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20Apps','\x20\x20Config\x20Files','6ylItTt','\x20\x20─','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','apiDir','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','apps','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','slice','version','(set\x20via\x20file,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','yellow','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','24134RCLGZd','pageSize','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20←\x20current','✓\x20Valid\x20JSON','Global','defaultApp','length','status','(default:\x20','✗\x20Not\x20logged\x20in','appCode','34371ZEnusU','(none)','value','\x20\x20API\x20Endpoints','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','230502lDgSdf','locale','source','accessKey','✗\x20Invalid\x20JSON','format','read','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','325088MIUMnl','repeat','2358bzrfgB','3205089FJYrqn','verbose','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','(set,\x20length=','\x20\x20Auth','6010VKSzUU','(default)','772952Hgmjhd','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(no\x20file)','platform','env','(not\x20found)','25vjEJxW','riskLevel','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','cookie','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','gray','raw','14ysgzAy','red'];a64_0x1f35=function(){return _0x381cf2;};return a64_0x1f35();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a64_0x1aa6(_0x42fb25,_0x3420c7){_0x42fb25=_0x42fb25-0x124;const _0x1f35a3=a64_0x1f35();let _0x1aa6b6=_0x1f35a3[_0x42fb25];return _0x1aa6b6;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x4a5dfa){const _0x58ea5c=a64_0x1aa6,_0x1a249c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x58ea5c(0x150)](0x0,0xa)+')':VERSION,_0x235a08=buildConfigFromFlags({}),_0x2e19ca=getCookie();console[_0x58ea5c(0x13d)](),console['log'](a64_0x10b3e7[_0x58ea5c(0x13e)](CLI_BIN_NAME+'\x20doctor')),console[_0x58ea5c(0x13d)](a64_0x10b3e7['gray']('─'['repeat'](0x32))),console[_0x58ea5c(0x13d)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x1a249c),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x58ea5c(0x151)]),console[_0x58ea5c(0x13d)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x58ea5c(0x12e)]+'\x20'+process['arch']),console[_0x58ea5c(0x13d)](),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x13e)](_0x58ea5c(0x146))),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x148)[_0x58ea5c(0x174)](0x1e)));const _0x1b0825=getGlobalConfigPath(),_0x98887=getProjectConfigPath();console[_0x58ea5c(0x13d)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1b0825||a64_0x10b3e7['gray'](_0x58ea5c(0x130)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x98887||a64_0x10b3e7['gray'](_0x58ea5c(0x130)))),console[_0x58ea5c(0x13d)](),console[_0x58ea5c(0x13d)](a64_0x10b3e7['bold']('\x20\x20Config\x20JSON')),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x148)[_0x58ea5c(0x174)](0x1e)));const _0x454664=(_0x34877e,_0x5effe2)=>{const _0x929dd3=_0x58ea5c;if(!_0x5effe2){console[_0x929dd3(0x13d)]('\x20\x20'+_0x34877e[_0x929dd3(0x126)](0x11)+'\x20'+a64_0x10b3e7[_0x929dd3(0x137)](_0x929dd3(0x12d)));return;}const _0x45e692=inspectCliConfigJsonFile(_0x5effe2);if(_0x45e692[_0x929dd3(0x161)]==='ok')console[_0x929dd3(0x13d)]('\x20\x20'+_0x34877e[_0x929dd3(0x126)](0x11)+'\x20'+a64_0x10b3e7['green'](_0x929dd3(0x15d)));else{if(_0x45e692[_0x929dd3(0x161)]==='empty')console[_0x929dd3(0x13d)]('\x20\x20'+_0x34877e[_0x929dd3(0x126)](0x11)+'\x20'+a64_0x10b3e7[_0x929dd3(0x155)](_0x929dd3(0x13f)));else _0x45e692['status']==='missing'?console[_0x929dd3(0x13d)]('\x20\x20'+_0x34877e['padEnd'](0x11)+'\x20'+a64_0x10b3e7[_0x929dd3(0x137)](_0x929dd3(0x144))):(console[_0x929dd3(0x13d)]('\x20\x20'+_0x34877e[_0x929dd3(0x126)](0x11)+'\x20'+a64_0x10b3e7[_0x929dd3(0x13a)](_0x929dd3(0x16e))),console[_0x929dd3(0x13d)]('\x20\x20'+''[_0x929dd3(0x126)](0x11)+'\x20'+a64_0x10b3e7['red'](_0x45e692['message'])));}};_0x454664(_0x58ea5c(0x15e),_0x1b0825),_0x454664('Project',_0x98887),console[_0x58ea5c(0x13d)](),console[_0x58ea5c(0x13d)](a64_0x10b3e7['bold']('\x20\x20Merged\x20Config')),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x137)]('\x20\x20─'[_0x58ea5c(0x174)](0x1e))),console[_0x58ea5c(0x13d)](_0x58ea5c(0x153)+(_0x235a08[_0x58ea5c(0x164)]||a64_0x10b3e7[_0x58ea5c(0x13a)]('(not\x20set)'))),console[_0x58ea5c(0x13d)](_0x58ea5c(0x171)+_0x235a08[_0x58ea5c(0x12f)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x235a08[_0x58ea5c(0x16b)]),console['log'](_0x58ea5c(0x14c)+_0x235a08[_0x58ea5c(0x14b)]),console[_0x58ea5c(0x13d)](_0x58ea5c(0x14f)+(_0x235a08[_0x58ea5c(0x15f)]||a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x166)))),console['log'](_0x58ea5c(0x143)+(_0x235a08['currentApp']||a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x166)))),console[_0x58ea5c(0x13d)]('\x20\x20explicitAppName:\x20'+(_0x235a08[_0x58ea5c(0x14a)]||a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x166)))),console['log'](_0x58ea5c(0x149)+(_0x235a08[_0x58ea5c(0x16f)]||a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x162)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x58ea5c(0x13d)](_0x58ea5c(0x140)+(_0x235a08[_0x58ea5c(0x159)]??a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x12a)))),console[_0x58ea5c(0x13d)](_0x58ea5c(0x169)+_0x235a08[_0x58ea5c(0x132)]),console[_0x58ea5c(0x13d)](_0x58ea5c(0x156)+_0x235a08[_0x58ea5c(0x177)]),console[_0x58ea5c(0x13d)](_0x58ea5c(0x15a)+(_0x235a08[_0x58ea5c(0x134)]?a64_0x10b3e7['green'](_0x58ea5c(0x127)+_0x235a08['cookie'][_0x58ea5c(0x160)]+')'):_0x2e19ca?a64_0x10b3e7[_0x58ea5c(0x154)](_0x58ea5c(0x152)+_0x2e19ca[_0x58ea5c(0x160)]+')'):a64_0x10b3e7[_0x58ea5c(0x137)]('(none)')));const _0x57a31e=Object['keys'](_0x235a08[_0x58ea5c(0x14e)]);if(_0x57a31e[_0x58ea5c(0x160)]>0x0){console[_0x58ea5c(0x13d)](),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x13e)](_0x58ea5c(0x145))),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x148)[_0x58ea5c(0x174)](0x1e)));for(const _0x24b186 of _0x57a31e){const _0x2aa4b6=_0x235a08['apps'][_0x24b186],_0x171f45=_0x24b186===_0x235a08['defaultApp'],_0x3390f1=_0x24b186===_0x235a08[_0x58ea5c(0x136)],_0x2ef3f2=_0x3390f1?a64_0x10b3e7[_0x58ea5c(0x154)](_0x58ea5c(0x15c)):'',_0x388dd5=_0x171f45?_0x58ea5c(0x142):'';console[_0x58ea5c(0x13d)]('\x20\x20'+_0x24b186+_0x388dd5+_0x2ef3f2),console[_0x58ea5c(0x13d)](_0x58ea5c(0x133)+_0x2aa4b6[_0x58ea5c(0x13c)]);const _0x56d09b=buildAppDoctorFields(_0x2aa4b6,{'env':_0x235a08[_0x58ea5c(0x12f)],'apiDir':_0x235a08[_0x58ea5c(0x138)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x58ea5c(0x14b)],'cookie':_0x235a08[_0x58ea5c(0x134)]||_0x2e19ca||undefined,'accessKey':_0x235a08['accessKey']});console[_0x58ea5c(0x13d)](_0x58ea5c(0x135)+_0x56d09b[_0x58ea5c(0x12f)]['value']+'\x20\x20'+a64_0x10b3e7[_0x58ea5c(0x137)]('('+_0x56d09b[_0x58ea5c(0x12f)][_0x58ea5c(0x16c)]+')')),console[_0x58ea5c(0x13d)](_0x58ea5c(0x12c)+_0x56d09b[_0x58ea5c(0x14b)][_0x58ea5c(0x167)]+'\x20\x20'+a64_0x10b3e7[_0x58ea5c(0x137)]('('+_0x56d09b[_0x58ea5c(0x14b)][_0x58ea5c(0x16c)]+')'));const _0x467c46=_0x56d09b[_0x58ea5c(0x134)][_0x58ea5c(0x167)]?a64_0x10b3e7[_0x58ea5c(0x154)](_0x58ea5c(0x127)+_0x56d09b['cookie'][_0x58ea5c(0x167)][_0x58ea5c(0x160)]+')'):a64_0x10b3e7['gray'](_0x58ea5c(0x166));console[_0x58ea5c(0x13d)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x467c46+'\x20\x20'+a64_0x10b3e7[_0x58ea5c(0x137)]('('+_0x56d09b['cookie'][_0x58ea5c(0x16c)]+')'));const _0x10e371=_0x56d09b['accessKey']['value']?a64_0x10b3e7[_0x58ea5c(0x154)](_0x58ea5c(0x127)+_0x56d09b[_0x58ea5c(0x16d)][_0x58ea5c(0x167)][_0x58ea5c(0x160)]+')'):a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x166));console[_0x58ea5c(0x13d)](_0x58ea5c(0x14d)+_0x10e371+'\x20\x20'+a64_0x10b3e7['gray']('('+_0x56d09b[_0x58ea5c(0x16d)][_0x58ea5c(0x16c)]+')'));}}console[_0x58ea5c(0x13d)](),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x13e)](_0x58ea5c(0x168))),console[_0x58ea5c(0x13d)](a64_0x10b3e7[_0x58ea5c(0x137)](_0x58ea5c(0x148)[_0x58ea5c(0x174)](0x1e))),console[_0x58ea5c(0x13d)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x58ea5c(0x13d)](_0x58ea5c(0x157)+getUserDomain()),console['log'](_0x58ea5c(0x124)+getRuntimeDomain()),console['log'](),console[_0x58ea5c(0x13d)](a64_0x10b3e7['bold'](_0x58ea5c(0x128))),console[_0x58ea5c(0x13d)](a64_0x10b3e7['gray'](_0x58ea5c(0x148)[_0x58ea5c(0x174)](0x1e)));if(_0x2e19ca){const _0x2180ac=await getIsSessionValid();console[_0x58ea5c(0x13d)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2180ac?a64_0x10b3e7[_0x58ea5c(0x154)](_0x58ea5c(0x13b)):a64_0x10b3e7[_0x58ea5c(0x13a)](_0x58ea5c(0x141))));}else console[_0x58ea5c(0x13d)](_0x58ea5c(0x125)+a64_0x10b3e7[_0x58ea5c(0x13a)](_0x58ea5c(0x163)));return console[_0x58ea5c(0x13d)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a64_0x20b17c(0x172),'description':a64_0x20b17c(0x15b),'risk':a64_0x20b17c(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a65_0x19dbf6=a65_0x1a25;(function(_0x3bf3ad,_0x34d39b){const _0x33b57=a65_0x1a25,_0x1bb8bc=_0x3bf3ad();while(!![]){try{const _0x1dbbf1=parseInt(_0x33b57(0x1d4))/0x1+-parseInt(_0x33b57(0x1e8))/0x2*(parseInt(_0x33b57(0x1c7))/0x3)+parseInt(_0x33b57(0x1d8))/0x4*(-parseInt(_0x33b57(0x1d7))/0x5)+-parseInt(_0x33b57(0x1f0))/0x6+-parseInt(_0x33b57(0x1df))/0x7+parseInt(_0x33b57(0x1db))/0x8+parseInt(_0x33b57(0x1eb))/0x9;if(_0x1dbbf1===_0x34d39b)break;else _0x1bb8bc['push'](_0x1bb8bc['shift']());}catch(_0x5e147b){_0x1bb8bc['push'](_0x1bb8bc['shift']());}}}(a65_0x4000,0x63eff));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';function a65_0x1a25(_0x1a8bfe,_0x89182e){_0x1a8bfe=_0x1a8bfe-0x1c3;const _0x4000a4=a65_0x4000();let _0x1a258b=_0x4000a4[_0x1a8bfe];return _0x1a258b;}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';function a65_0x4000(){const _0x389fe0=['\x20\x20Env:\x20','Auto-confirm\x20prompts','flagMissing','3351378zySbkL','global','init','\x20config','../../commands/project/init.js','cwd','yes','10839AtAtOC','validation','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Use\x20`','\x20\x20Apps:\x20','bool','appcode','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Target\x20environment','map','nonInteractive','run','\x20\x20Default:\x20','689890JWAHRj','appCode','log','5epsmpJ','1837228pkwufs','env','string','4210960dgvmlh','检测到旧配置文件,正在自动升级...\x0a','toLocaleString','boolean','4167170DTTNzc','join','some','write','production','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Usage:\x20','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','App\x20code\x20to\x20initialize\x20with','426XmMjNb','str','project','14182488tNBaRY','valid'];a65_0x4000=function(){return _0x389fe0;};return a65_0x4000();}import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x3c4ab6){return{'appCode':_0x3c4ab6,'appName':_0x3c4ab6};}function writeInitConfig(_0x4e2593,_0x2232bd,_0x443c03){const _0x57e1c9=a65_0x1a25,_0x59536a=resolveWriteConfigPath(_0x4e2593),_0x5a747b=buildCanonicalProjectConfig({},{'appCodes':_0x2232bd[_0x57e1c9(0x1d0)](_0x1b8ebb=>_0x1b8ebb[_0x57e1c9(0x1d5)]),'env':_0x443c03,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x57e1c9(0x1dd)]()}});writeConfigFile(_0x59536a,_0x5a747b);const _0x1f6109=_0x4e2593==='global'?_0x57e1c9(0x1f1):_0x57e1c9(0x1ea);console['log']('\x0a✓\x20Successfully\x20initialized\x20'+_0x1f6109+_0x57e1c9(0x1c3)),console[_0x57e1c9(0x1d6)](_0x57e1c9(0x1cb)+_0x2232bd[_0x57e1c9(0x1d0)](_0x174fb8=>_0x174fb8[_0x57e1c9(0x1d5)])[_0x57e1c9(0x1e0)](',\x20')),console['log'](_0x57e1c9(0x1d3)+_0x5a747b['defaultApp']),console['log'](_0x57e1c9(0x1ed)+_0x5a747b[_0x57e1c9(0x1d9)]),console[_0x57e1c9(0x1d6)]('\x20\x20Config:\x20'+_0x59536a);}async function runSmartInit(_0x3ff7c6){const _0x464278=a65_0x1a25,_0x189595=process[_0x464278(0x1c5)](),_0xfb2921=_0x3ff7c6[_0x464278(0x1cc)]('global')?_0x464278(0x1f1):_0x464278(0x1ea),_0x27fcb3=_0x3ff7c6[_0x464278(0x1e9)](_0x464278(0x1d9))||_0x464278(0x1e3),_0x2a3b5c=_0x3ff7c6['str']('appcode')||undefined,_0x1a8687=_0x3ff7c6[_0x464278(0x1cc)]('project');if(_0x1a8687){const {initConfig:_0x4f270d}=await import(_0x464278(0x1c4));return _0x4f270d({'appcode':_0x2a3b5c,'env':_0x27fcb3,'autoYes':_0x3ff7c6[_0x464278(0x1cc)](_0x464278(0x1c6))});}if(_0xfb2921===_0x464278(0x1ea)){const _0x4d1d73=existsSync(resolve(_0x189595,NEW_CONFIG_NAME)),_0x3773ee=LEGACY_CONFIG_NAMES[_0x464278(0x1e1)](_0x2bbfac=>existsSync(resolve(_0x189595,_0x2bbfac)));if(_0x3773ee&&!_0x4d1d73)return console[_0x464278(0x1d6)](_0x464278(0x1dc)),upgradeApp(_0x3ff7c6[_0x464278(0x1d1)],{'yes':_0x3ff7c6['bool'](_0x464278(0x1c6))});if(_0x4d1d73)throw CliErrors[_0x464278(0x1c8)](_0x464278(0x1ce),_0x464278(0x1ca)+CLI_BIN_NAME+_0x464278(0x1e4));}if(_0x2a3b5c){const _0x5de39b=validateAppcode(_0x2a3b5c);if(!_0x5de39b[_0x464278(0x1ec)])throw CliErrors[_0x464278(0x1c8)](_0x5de39b['message']);writeInitConfig(_0xfb2921,[syntheticApp(_0x2a3b5c)],_0x27fcb3);return;}if(_0x3ff7c6[_0x464278(0x1d1)])throw CliErrors[_0x464278(0x1ef)]('appcode',_0x464278(0x1e5)+CLI_BIN_NAME+_0x464278(0x1e6));const _0x36f843=getCookie(),_0x51ca62=await selectMultipleApps(_0x36f843),_0x260b0a=_0x51ca62==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x51ca62;writeInitConfig(_0xfb2921,_0x260b0a,_0x27fcb3);}const initFlags=[{'name':'global','type':a65_0x19dbf6(0x1de),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a65_0x19dbf6(0x1d9),'type':a65_0x19dbf6(0x1da),'description':a65_0x19dbf6(0x1cf),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a65_0x19dbf6(0x1cd),'type':'string','description':a65_0x19dbf6(0x1e7)},{'name':a65_0x19dbf6(0x1ea),'type':a65_0x19dbf6(0x1de),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a65_0x19dbf6(0x1c6),'type':a65_0x19dbf6(0x1de),'description':a65_0x19dbf6(0x1ee),'default':![]}];export const initDefinitions=[{'service':a65_0x19dbf6(0x1f2),'command':a65_0x19dbf6(0x1d2),'description':a65_0x19dbf6(0x1c9),'risk':a65_0x19dbf6(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x354a03){return await runSmartInit(_0x354a03),{'ok':!![]};}}];
1
+ function a65_0x5a40(){const _0x41d432=['message','string','检测到旧配置文件,正在自动升级...\x0a','App\x20code\x20to\x20initialize\x20with','bool','appcode','nonInteractive','some','2298aQSXHz','flagMissing','6518584vOcQkd','init','run','9ULQsMK','write','Usage:\x20','toLocaleString','production','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','valid','\x20config','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','1160687AazeTV','validation','custom','264WRhGBz','str','4838810WybjEy','\x20\x20Default:\x20','log','yes','152DPZdGh','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','381954LgJiaO','\x20\x20Apps:\x20','9009Gbmmcd','2508bNEtsx','Use\x20`','defaultApp','boolean','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','project','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','6163250sUWLGv','global','appCode','cwd','../../commands/project/init.js','6ycHtID','env'];a65_0x5a40=function(){return _0x41d432;};return a65_0x5a40();}const a65_0x54a223=a65_0x1920;(function(_0x24bb9e,_0x2c04b6){const _0x456dea=a65_0x1920,_0x164fb8=_0x24bb9e();while(!![]){try{const _0x164513=parseInt(_0x456dea(0x1d1))/0x1*(parseInt(_0x456dea(0x1e0))/0x2)+-parseInt(_0x456dea(0x1d4))/0x3*(-parseInt(_0x456dea(0x1cf))/0x4)+parseInt(_0x456dea(0x1db))/0x5+parseInt(_0x456dea(0x1ea))/0x6*(-parseInt(_0x456dea(0x1d3))/0x7)+parseInt(_0x456dea(0x1ec))/0x8*(parseInt(_0x456dea(0x1ef))/0x9)+parseInt(_0x456dea(0x1cb))/0xa+-parseInt(_0x456dea(0x1f8))/0xb*(parseInt(_0x456dea(0x1c9))/0xc);if(_0x164513===_0x2c04b6)break;else _0x164fb8['push'](_0x164fb8['shift']());}catch(_0x5c3d6c){_0x164fb8['push'](_0x164fb8['shift']());}}}(a65_0x5a40,0xda6e1));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a65_0x1920(_0x1e2974,_0x2565e0){_0x1e2974=_0x1e2974-0x1c8;const _0x5a406f=a65_0x5a40();let _0x1920fc=_0x5a406f[_0x1e2974];return _0x1920fc;}import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2854a9){return{'appCode':_0x2854a9,'appName':_0x2854a9};}function writeInitConfig(_0x491f11,_0x264f32,_0x4f070a){const _0xeb1bd3=a65_0x1920,_0x4c01bc=resolveWriteConfigPath(_0x491f11),_0x191e26=buildCanonicalProjectConfig({},{'appCodes':_0x264f32['map'](_0x2dfa1b=>_0x2dfa1b[_0xeb1bd3(0x1dd)]),'env':_0x4f070a,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0xeb1bd3(0x1f2)]()}});writeConfigFile(_0x4c01bc,_0x191e26);const _0x39e6ce=_0x491f11===_0xeb1bd3(0x1dc)?_0xeb1bd3(0x1dc):_0xeb1bd3(0x1d9);console[_0xeb1bd3(0x1cd)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x39e6ce+_0xeb1bd3(0x1f6)),console[_0xeb1bd3(0x1cd)](_0xeb1bd3(0x1d2)+_0x264f32['map'](_0x2e9099=>_0x2e9099[_0xeb1bd3(0x1dd)])['join'](',\x20')),console[_0xeb1bd3(0x1cd)](_0xeb1bd3(0x1cc)+_0x191e26[_0xeb1bd3(0x1d6)]),console[_0xeb1bd3(0x1cd)]('\x20\x20Env:\x20'+_0x191e26[_0xeb1bd3(0x1e1)]),console[_0xeb1bd3(0x1cd)]('\x20\x20Config:\x20'+_0x4c01bc);}async function runSmartInit(_0x401a30){const _0x634694=a65_0x1920,_0x8b7698=process[_0x634694(0x1de)](),_0x28f575=_0x401a30['bool'](_0x634694(0x1dc))?_0x634694(0x1dc):_0x634694(0x1d9),_0x288c69=_0x401a30['str']('env')||'production',_0x236ceb=_0x401a30[_0x634694(0x1ca)](_0x634694(0x1e7))||undefined,_0x4c0157=_0x401a30[_0x634694(0x1e6)](_0x634694(0x1d9));if(_0x4c0157){const {initConfig:_0x47121f}=await import(_0x634694(0x1df));return _0x47121f({'appcode':_0x236ceb,'env':_0x288c69,'autoYes':_0x401a30['bool'](_0x634694(0x1ce))});}if(_0x28f575===_0x634694(0x1d9)){const _0x4ec845=existsSync(resolve(_0x8b7698,NEW_CONFIG_NAME)),_0x7ef608=LEGACY_CONFIG_NAMES[_0x634694(0x1e9)](_0x431d11=>existsSync(resolve(_0x8b7698,_0x431d11)));if(_0x7ef608&&!_0x4ec845)return console[_0x634694(0x1cd)](_0x634694(0x1e4)),upgradeApp(_0x401a30['nonInteractive'],{'yes':_0x401a30[_0x634694(0x1e6)](_0x634694(0x1ce))});if(_0x4ec845)throw CliErrors[_0x634694(0x1f9)](_0x634694(0x1d8),_0x634694(0x1d5)+CLI_BIN_NAME+_0x634694(0x1f7));}if(_0x236ceb){const _0x97d262=validateAppcode(_0x236ceb);if(!_0x97d262[_0x634694(0x1f5)])throw CliErrors[_0x634694(0x1f9)](_0x97d262[_0x634694(0x1e2)]);writeInitConfig(_0x28f575,[syntheticApp(_0x236ceb)],_0x288c69);return;}if(_0x401a30[_0x634694(0x1e8)])throw CliErrors[_0x634694(0x1eb)]('appcode',_0x634694(0x1f1)+CLI_BIN_NAME+_0x634694(0x1d0));const _0x2916b0=getCookie(),_0x45090d=await selectMultipleApps(_0x2916b0),_0x37f8cb=_0x45090d===_0x634694(0x1c8)?[syntheticApp(await promptCustomAppcode())]:_0x45090d;writeInitConfig(_0x28f575,_0x37f8cb,_0x288c69);}const initFlags=[{'name':a65_0x54a223(0x1dc),'type':a65_0x54a223(0x1d7),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a65_0x54a223(0x1e1),'type':a65_0x54a223(0x1e3),'description':'Target\x20environment','default':a65_0x54a223(0x1f3),'enum':[...RABETBASE_ENV_VALUES]},{'name':a65_0x54a223(0x1e7),'type':a65_0x54a223(0x1e3),'description':a65_0x54a223(0x1e5)},{'name':a65_0x54a223(0x1d9),'type':a65_0x54a223(0x1d7),'description':a65_0x54a223(0x1da),'default':![]},{'name':'yes','type':a65_0x54a223(0x1d7),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a65_0x54a223(0x1ed),'command':a65_0x54a223(0x1ee),'description':a65_0x54a223(0x1f4),'risk':a65_0x54a223(0x1f0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2d009b){return await runSmartInit(_0x2d009b),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a66_0x3f78(){const _0xeed491=['1072134UyqxTv','level','duration','*\x20No\x20logs\x20found','View\x20command\x20history\x20logs','command','clearLogs','72dJowhs','toLocaleString','read','568431WooTxO','3669476eRWovo','clear','38058CjjTWw','Clear\x20command\x20history\x20logs','details','*\x20Logs\x20cleared','readLogs','length','14583114tQZqTU','\x20\x20\x20Time:\x20','170SSqLcx','keys','timestamp','10fWqYgN','\x20\x20\x20Details:\x20','log','error','244677DOfDmj','369278QFAUuT','forEach'];a66_0x3f78=function(){return _0xeed491;};return a66_0x3f78();}const a66_0x559f72=a66_0x4328;function a66_0x4328(_0xbb3601,_0x46e94e){_0xbb3601=_0xbb3601-0x155;const _0x3f7867=a66_0x3f78();let _0x43284a=_0x3f7867[_0xbb3601];return _0x43284a;}(function(_0x3d527f,_0x552428){const _0x246fd3=a66_0x4328,_0xa0ee32=_0x3d527f();while(!![]){try{const _0x33c11a=-parseInt(_0x246fd3(0x15c))/0x1+parseInt(_0x246fd3(0x15f))/0x2+-parseInt(_0x246fd3(0x169))/0x3+-parseInt(_0x246fd3(0x16a))/0x4+parseInt(_0x246fd3(0x155))/0x5*(parseInt(_0x246fd3(0x16c))/0x6)+parseInt(_0x246fd3(0x15d))/0x7*(-parseInt(_0x246fd3(0x166))/0x8)+parseInt(_0x246fd3(0x172))/0x9*(parseInt(_0x246fd3(0x158))/0xa);if(_0x33c11a===_0x552428)break;else _0xa0ee32['push'](_0xa0ee32['shift']());}catch(_0x4f60b4){_0xa0ee32['push'](_0xa0ee32['shift']());}}}(a66_0x3f78,0x853e6));import{logger}from'../../utils/logger.js';function printLogs(_0x225681){const _0x5c6906=a66_0x4328;if(_0x225681[_0x5c6906(0x171)]===0x0){console['log'](_0x5c6906(0x162));return;}console[_0x5c6906(0x15a)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x225681[_0x5c6906(0x15e)]((_0x5ac034,_0x17d820)=>{const _0x1252f6=_0x5c6906,_0x3336ba=new Date(_0x5ac034[_0x1252f6(0x157)])[_0x1252f6(0x167)]('en-US'),_0x5ae08b=_0x5ac034[_0x1252f6(0x160)]==='success'?'√':_0x5ac034[_0x1252f6(0x160)]===_0x1252f6(0x15b)?'×':_0x5ac034[_0x1252f6(0x160)]==='warn'?'!':'i';console[_0x1252f6(0x15a)](_0x17d820+0x1+'.\x20'+_0x5ae08b+'\x20['+_0x5ac034[_0x1252f6(0x164)]+']\x20'+_0x5ac034['message']),console['log'](_0x1252f6(0x173)+_0x3336ba),_0x5ac034[_0x1252f6(0x161)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x5ac034[_0x1252f6(0x161)]+'ms'),_0x5ac034[_0x1252f6(0x16e)]&&Object[_0x1252f6(0x156)](_0x5ac034['details'])['length']>0x0&&console['log'](_0x1252f6(0x159)+JSON['stringify'](_0x5ac034[_0x1252f6(0x16e)],null,0x2)),console[_0x1252f6(0x15a)]('');});}export const logsDefinitions=[{'service':'logs','command':'show','description':a66_0x559f72(0x163),'risk':a66_0x559f72(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x20ad39){const _0x39d156=a66_0x559f72;return printLogs(logger[_0x39d156(0x170)]()),{'ok':!![]};}},{'service':'logs','command':a66_0x559f72(0x16b),'description':a66_0x559f72(0x16d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3e2933){const _0x208874=a66_0x559f72;return logger[_0x208874(0x165)](),console['log'](_0x208874(0x16f)),{'ok':!![]};}}];
1
+ const a66_0x54eaf7=a66_0x40e8;(function(_0x426bbd,_0x40eed5){const _0x24be79=a66_0x40e8,_0x34e590=_0x426bbd();while(!![]){try{const _0x394cf4=parseInt(_0x24be79(0xec))/0x1+parseInt(_0x24be79(0xd7))/0x2+-parseInt(_0x24be79(0xe3))/0x3+-parseInt(_0x24be79(0xe4))/0x4*(parseInt(_0x24be79(0xdd))/0x5)+-parseInt(_0x24be79(0xce))/0x6+-parseInt(_0x24be79(0xd6))/0x7+parseInt(_0x24be79(0xe2))/0x8*(parseInt(_0x24be79(0xe8))/0x9);if(_0x394cf4===_0x40eed5)break;else _0x34e590['push'](_0x34e590['shift']());}catch(_0x38b256){_0x34e590['push'](_0x34e590['shift']());}}}(a66_0x1be6,0xd5254));import{logger}from'../../utils/logger.js';function a66_0x40e8(_0x5ba96f,_0x57ac91){_0x5ba96f=_0x5ba96f-0xce;const _0x1be61a=a66_0x1be6();let _0x40e83e=_0x1be61a[_0x5ba96f];return _0x40e83e;}function a66_0x1be6(){const _0x4e877b=['forEach','duration','9078307ziHZHt','1093532jhGCnt','\x20\x20\x20Time:\x20','*\x20Lovrabet\x20CLI\x20logs:\x0a','stringify','success','*\x20No\x20logs\x20found','5QakNOu','en-US','level','write','log','24EKxntT','108027PhTRqf','1710440UMvSXT','*\x20Logs\x20cleared','length','readLogs','8202051TGnNiH','keys','show','message','30320suncpj','command','read','details','toLocaleString','4065234drEYbN','clearLogs','logs','\x20\x20\x20Duration:\x20','warn','error'];a66_0x1be6=function(){return _0x4e877b;};return a66_0x1be6();}function printLogs(_0x1d3264){const _0x2e1998=a66_0x40e8;if(_0x1d3264['length']===0x0){console[_0x2e1998(0xe1)](_0x2e1998(0xdc));return;}console['log'](_0x2e1998(0xd9)),_0x1d3264[_0x2e1998(0xd4)]((_0xa21873,_0x142aa1)=>{const _0x43529e=_0x2e1998,_0x5c357a=new Date(_0xa21873['timestamp'])[_0x43529e(0xf0)](_0x43529e(0xde)),_0x10cb29=_0xa21873['level']===_0x43529e(0xdb)?'√':_0xa21873[_0x43529e(0xdf)]===_0x43529e(0xd3)?'×':_0xa21873[_0x43529e(0xdf)]===_0x43529e(0xd2)?'!':'i';console['log'](_0x142aa1+0x1+'.\x20'+_0x10cb29+'\x20['+_0xa21873[_0x43529e(0xed)]+']\x20'+_0xa21873[_0x43529e(0xeb)]),console['log'](_0x43529e(0xd8)+_0x5c357a),_0xa21873[_0x43529e(0xd5)]&&console['log'](_0x43529e(0xd1)+_0xa21873[_0x43529e(0xd5)]+'ms'),_0xa21873[_0x43529e(0xef)]&&Object[_0x43529e(0xe9)](_0xa21873['details'])[_0x43529e(0xe6)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x43529e(0xda)](_0xa21873[_0x43529e(0xef)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a66_0x54eaf7(0xd0),'command':a66_0x54eaf7(0xea),'description':'View\x20command\x20history\x20logs','risk':a66_0x54eaf7(0xee),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4fd5e5){const _0x247535=a66_0x54eaf7;return printLogs(logger[_0x247535(0xe7)]()),{'ok':!![]};}},{'service':'logs','command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a66_0x54eaf7(0xe0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x27b13f){const _0x397917=a66_0x54eaf7;return logger[_0x397917(0xcf)](),console[_0x397917(0xe1)](_0x397917(0xe5)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x568332,_0x55b7e0){const _0x1ea359=a67_0x34e3,_0x5ea821=_0x568332();while(!![]){try{const _0x4ab79b=-parseInt(_0x1ea359(0x74))/0x1*(-parseInt(_0x1ea359(0x6f))/0x2)+parseInt(_0x1ea359(0x6b))/0x3*(parseInt(_0x1ea359(0x72))/0x4)+parseInt(_0x1ea359(0x73))/0x5+-parseInt(_0x1ea359(0x70))/0x6*(parseInt(_0x1ea359(0x71))/0x7)+-parseInt(_0x1ea359(0x6e))/0x8*(parseInt(_0x1ea359(0x6c))/0x9)+-parseInt(_0x1ea359(0x6d))/0xa+parseInt(_0x1ea359(0x75))/0xb;if(_0x4ab79b===_0x55b7e0)break;else _0x5ea821['push'](_0x5ea821['shift']());}catch(_0xae22ef){_0x5ea821['push'](_0x5ea821['shift']());}}}(a67_0x2f3f,0xc188e));function a67_0x34e3(_0x256b93,_0x27c799){_0x256b93=_0x256b93-0x6b;const _0x2f3f3c=a67_0x2f3f();let _0x34e3ed=_0x2f3f3c[_0x256b93];return _0x34e3ed;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a67_0x2f3f(){const _0xf18218=['4314211iNhZTZ','51717abDiZd','2936187NQMtBe','6515410LacQxJ','32lwuEIv','1464470eeVLjj','66ajDgBv','780465wnxqNq','148QGqWxi','7405810eqTIhs','2LagMUm'];a67_0x2f3f=function(){return _0xf18218;};return a67_0x2f3f();}export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x4b11ed,_0xec8c1){const _0xf7f532=a67_0x2500,_0x1ca1bd=_0x4b11ed();while(!![]){try{const _0x248a21=-parseInt(_0xf7f532(0x167))/0x1*(parseInt(_0xf7f532(0x169))/0x2)+parseInt(_0xf7f532(0x16a))/0x3*(parseInt(_0xf7f532(0x164))/0x4)+-parseInt(_0xf7f532(0x162))/0x5+parseInt(_0xf7f532(0x166))/0x6+-parseInt(_0xf7f532(0x16b))/0x7*(-parseInt(_0xf7f532(0x161))/0x8)+-parseInt(_0xf7f532(0x168))/0x9*(parseInt(_0xf7f532(0x163))/0xa)+parseInt(_0xf7f532(0x160))/0xb*(parseInt(_0xf7f532(0x165))/0xc);if(_0x248a21===_0xec8c1)break;else _0x1ca1bd['push'](_0x1ca1bd['shift']());}catch(_0x4a1e6b){_0x1ca1bd['push'](_0x1ca1bd['shift']());}}}(a67_0x2218,0x7257e));import{menuSync}from'../../commands/menu/sync.js';function a67_0x2218(){const _0x4d9e92=['9syTGIy','4YOzzgA','155415jkWzOH','7GXGcXa','11XVNZds','5184160xqjhXH','1880250yCMRzz','2689670deMJRl','4lJIrHa','7571244tMYIFg','3611706JUvNFQ','409673HITJpP'];a67_0x2218=function(){return _0x4d9e92;};return a67_0x2218();}import{menuUpdate}from'../../commands/menu/update.js';function a67_0x2500(_0x1573f8,_0x5d2fda){_0x1573f8=_0x1573f8-0x160;const _0x2218cd=a67_0x2218();let _0x250080=_0x2218cd[_0x1573f8];return _0x250080;}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a68_0x8029(_0xe3d5fd,_0x3366e3){_0xe3d5fd=_0xe3d5fd-0xcf;const _0x54dd25=a68_0x54dd();let _0x8029c3=_0x54dd25[_0xe3d5fd];return _0x8029c3;}(function(_0x51fb09,_0x5ca664){const _0x1c4c98=a68_0x8029,_0x4a70d5=_0x51fb09();while(!![]){try{const _0x32a5d9=-parseInt(_0x1c4c98(0xd3))/0x1+parseInt(_0x1c4c98(0xd5))/0x2*(-parseInt(_0x1c4c98(0xd9))/0x3)+-parseInt(_0x1c4c98(0xe1))/0x4*(parseInt(_0x1c4c98(0xda))/0x5)+parseInt(_0x1c4c98(0xee))/0x6*(parseInt(_0x1c4c98(0xd2))/0x7)+parseInt(_0x1c4c98(0xde))/0x8*(-parseInt(_0x1c4c98(0xe4))/0x9)+-parseInt(_0x1c4c98(0xd0))/0xa+parseInt(_0x1c4c98(0xe6))/0xb;if(_0x32a5d9===_0x5ca664)break;else _0x4a70d5['push'](_0x4a70d5['shift']());}catch(_0x532416){_0x4a70d5['push'](_0x4a70d5['shift']());}}}(a68_0x54dd,0x5a36c));function strWidth(_0x61f7b3){const _0x5490d8=a68_0x8029;let _0x22da9f=0x0;for(const _0x283302 of _0x61f7b3){_0x22da9f+=/[\u4e00-\u9fa5]/[_0x5490d8(0xd6)](_0x283302)?0x2:0x1;}return _0x22da9f;}function padRight(_0x39e83c,_0x313b89){const _0x403025=a68_0x8029,_0x2e69b0=strWidth(_0x39e83c);return _0x39e83c+'\x20'[_0x403025(0xeb)](Math[_0x403025(0xe2)](0x0,_0x313b89-_0x2e69b0));}function a68_0x54dd(){const _0x2b9333=['215YULRaa','label','join','length','1256VVgNtD','showOnline','Local','1124yjQSJB','max','Menu\x20Name','10386szjiwD','\x20\x20Affected\x20menus:\x20','21875425OEbnLq','push','Platform','local','(unchanged)','repeat','\x20\x20\x20\x20JS:\x20\x20','\x20\x20\x20\x20•\x20','12CNWNyj','\x20\x20No\x20pages\x20to\x20sync.','6099160lPTbpL','map','1309175NYQCJM','471107gqlpzC','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','9650BiVYVL','test','path','online','447iSldtQ'];a68_0x54dd=function(){return _0x2b9333;};return a68_0x54dd();}export function renderCompareTable(_0x5ad92a,_0x384c95={}){const _0x1815ba=a68_0x8029;if(_0x5ad92a[_0x1815ba(0xdd)]===0x0)return'';const _0x6f45f6=_0x384c95[_0x1815ba(0xdf)]??!![],_0x10c282=Math[_0x1815ba(0xe2)](0x1e,..._0x5ad92a[_0x1815ba(0xd1)](_0x566b97=>strWidth(_0x566b97[_0x1815ba(0xdb)]))),_0x40ea90=0x4,_0x32a6fe=[],_0x1a9bd3='\x20\x20'+padRight(_0x1815ba(0xe3),_0x10c282),_0x6a6ebe=padRight(_0x1815ba(0xe0),_0x40ea90),_0x522296=_0x6f45f6?'\x20\x20'+padRight(_0x1815ba(0xe8),_0x40ea90):'';_0x32a6fe[_0x1815ba(0xe7)](_0x1a9bd3+'\x20\x20'+_0x6a6ebe+(_0x6f45f6?_0x522296:'')),_0x32a6fe[_0x1815ba(0xe7)]('\x20\x20'+'─'[_0x1815ba(0xeb)](_0x10c282)+'\x20\x20'+'─'[_0x1815ba(0xeb)](_0x40ea90)+(_0x6f45f6?'\x20\x20'+'─'[_0x1815ba(0xeb)](_0x40ea90):''));for(const _0x38f706 of _0x5ad92a){const _0x1a840a=padRight(_0x38f706[_0x1815ba(0xdb)],_0x10c282),_0x5b0dea=_0x38f706[_0x1815ba(0xe9)]?'✓':'✗',_0x2019df=padRight(_0x5b0dea,_0x40ea90);let _0x172523='\x20\x20'+_0x1a840a+'\x20\x20'+_0x2019df;if(_0x6f45f6){const _0xe41deb=_0x38f706[_0x1815ba(0xd8)]?'✓':'✗';_0x172523+='\x20\x20'+padRight(_0xe41deb,_0x40ea90);}_0x32a6fe['push'](_0x172523);}return _0x32a6fe[_0x1815ba(0xdc)]('\x0a');}export function renderSyncSummary(_0x491183,_0x3bebca){const _0xcb4dc9=a68_0x8029;if(_0x491183['length']===0x0)return _0x3bebca?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0xcb4dc9(0xcf);const _0x51ac44=['\x20\x20'+_0x491183[_0xcb4dc9(0xdd)]+_0xcb4dc9(0xd4)];for(const _0x305fdb of _0x491183){_0x51ac44[_0xcb4dc9(0xe7)](_0xcb4dc9(0xed)+_0x305fdb[_0xcb4dc9(0xdb)]+'\x20('+_0x305fdb[_0xcb4dc9(0xd7)]+')');}return _0x51ac44['join']('\x0a');}export function renderUpdateSummary(_0x2e63c3,_0x2a4757){const _0x464c30=a68_0x8029;if(_0x2e63c3[_0x464c30(0xdd)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x2f957b=['\x20\x20'+_0x2e63c3[_0x464c30(0xdd)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x464c30(0xec)+(_0x2a4757[0x0]??_0x464c30(0xea)),'\x20\x20\x20\x20CSS:\x20'+(_0x2a4757[0x1]??_0x464c30(0xea)),'',_0x464c30(0xe5)+_0x2e63c3[_0x464c30(0xdc)](',\x20')];return _0x2f957b[_0x464c30(0xdc)]('\x0a');}
1
+ (function(_0x32c600,_0x113f6c){const _0x226be9=a68_0x2ab1,_0x20755a=_0x32c600();while(!![]){try{const _0x44a7ea=-parseInt(_0x226be9(0x1bb))/0x1*(parseInt(_0x226be9(0x1a0))/0x2)+-parseInt(_0x226be9(0x1bf))/0x3*(-parseInt(_0x226be9(0x1a4))/0x4)+parseInt(_0x226be9(0x1b2))/0x5+-parseInt(_0x226be9(0x1b8))/0x6*(-parseInt(_0x226be9(0x1a3))/0x7)+parseInt(_0x226be9(0x1bd))/0x8+parseInt(_0x226be9(0x1b4))/0x9*(-parseInt(_0x226be9(0x1a8))/0xa)+parseInt(_0x226be9(0x1b5))/0xb;if(_0x44a7ea===_0x113f6c)break;else _0x20755a['push'](_0x20755a['shift']());}catch(_0x4c6406){_0x20755a['push'](_0x20755a['shift']());}}}(a68_0x2656,0x90954));function a68_0x2ab1(_0x26b4ae,_0x580308){_0x26b4ae=_0x26b4ae-0x1a0;const _0x2656bb=a68_0x2656();let _0x2ab1d6=_0x2656bb[_0x26b4ae];return _0x2ab1d6;}function strWidth(_0x215181){const _0x46a003=a68_0x2ab1;let _0x3b9cf6=0x0;for(const _0x19c417 of _0x215181){_0x3b9cf6+=/[\u4e00-\u9fa5]/[_0x46a003(0x1ab)](_0x19c417)?0x2:0x1;}return _0x3b9cf6;}function padRight(_0x1b01e3,_0x439d34){const _0x2efacf=a68_0x2ab1,_0x406dde=strWidth(_0x1b01e3);return _0x1b01e3+'\x20'['repeat'](Math[_0x2efacf(0x1b1)](0x0,_0x439d34-_0x406dde));}export function renderCompareTable(_0x5176e0,_0x356bce={}){const _0x2b6642=a68_0x2ab1;if(_0x5176e0[_0x2b6642(0x1b0)]===0x0)return'';const _0x5d6e0b=_0x356bce[_0x2b6642(0x1a5)]??!![],_0x4564a7=Math[_0x2b6642(0x1b1)](0x1e,..._0x5176e0[_0x2b6642(0x1b3)](_0x3acd6b=>strWidth(_0x3acd6b[_0x2b6642(0x1a1)]))),_0x45ddef=0x4,_0x1bc753=[],_0x58ba1c='\x20\x20'+padRight('Menu\x20Name',_0x4564a7),_0x239e10=padRight(_0x2b6642(0x1b6),_0x45ddef),_0x183b0f=_0x5d6e0b?'\x20\x20'+padRight(_0x2b6642(0x1b7),_0x45ddef):'';_0x1bc753[_0x2b6642(0x1a9)](_0x58ba1c+'\x20\x20'+_0x239e10+(_0x5d6e0b?_0x183b0f:'')),_0x1bc753[_0x2b6642(0x1a9)]('\x20\x20'+'─'['repeat'](_0x4564a7)+'\x20\x20'+'─'[_0x2b6642(0x1ac)](_0x45ddef)+(_0x5d6e0b?'\x20\x20'+'─'['repeat'](_0x45ddef):''));for(const _0x30c886 of _0x5176e0){const _0x380943=padRight(_0x30c886[_0x2b6642(0x1a1)],_0x4564a7),_0x5c205a=_0x30c886[_0x2b6642(0x1a6)]?'✓':'✗',_0x2de132=padRight(_0x5c205a,_0x45ddef);let _0x49202f='\x20\x20'+_0x380943+'\x20\x20'+_0x2de132;if(_0x5d6e0b){const _0x352288=_0x30c886['online']?'✓':'✗';_0x49202f+='\x20\x20'+padRight(_0x352288,_0x45ddef);}_0x1bc753[_0x2b6642(0x1a9)](_0x49202f);}return _0x1bc753[_0x2b6642(0x1bc)]('\x0a');}export function renderSyncSummary(_0x461b56,_0x145675){const _0x1a09aa=a68_0x2ab1;if(_0x461b56[_0x1a09aa(0x1b0)]===0x0)return _0x145675?_0x1a09aa(0x1af):_0x1a09aa(0x1b9);const _0x24974f=['\x20\x20'+_0x461b56[_0x1a09aa(0x1b0)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x668db7 of _0x461b56){_0x24974f[_0x1a09aa(0x1a9)](_0x1a09aa(0x1ad)+_0x668db7[_0x1a09aa(0x1a1)]+'\x20('+_0x668db7[_0x1a09aa(0x1a7)]+')');}return _0x24974f[_0x1a09aa(0x1bc)]('\x0a');}export function renderUpdateSummary(_0x5c813e,_0x49b715){const _0x4e4d9f=a68_0x2ab1;if(_0x5c813e[_0x4e4d9f(0x1b0)]===0x0)return _0x4e4d9f(0x1be);const _0x4b37d9=['\x20\x20'+_0x5c813e[_0x4e4d9f(0x1b0)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x4e4d9f(0x1aa)+(_0x49b715[0x0]??_0x4e4d9f(0x1ae)),_0x4e4d9f(0x1ba)+(_0x49b715[0x1]??_0x4e4d9f(0x1ae)),'',_0x4e4d9f(0x1a2)+_0x5c813e[_0x4e4d9f(0x1bc)](',\x20')];return _0x4b37d9[_0x4e4d9f(0x1bc)]('\x0a');}function a68_0x2656(){const _0x44dad8=['5462829uNujtD','2890943hzvEDn','Local','Platform','42UePKbu','\x20\x20No\x20pages\x20to\x20sync.','\x20\x20\x20\x20CSS:\x20','2CofDQo','join','4143856PfEUJd','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','45qSeuvI','1067236zkayKX','label','\x20\x20Affected\x20menus:\x20','1018444SCNuDS','87224MXZpLy','showOnline','local','path','10RoknQo','push','\x20\x20\x20\x20JS:\x20\x20','test','repeat','\x20\x20\x20\x20•\x20','(unchanged)','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','length','max','700500YoynVT','map'];a68_0x2656=function(){return _0x44dad8;};return a68_0x2656();}
@@ -1 +1 @@
1
- (function(_0x42e732,_0x49dca9){var _0x5ac2b4=a69_0x5a62,_0x446bab=_0x42e732();while(!![]){try{var _0x171fcf=parseInt(_0x5ac2b4(0x92))/0x1+-parseInt(_0x5ac2b4(0x91))/0x2*(parseInt(_0x5ac2b4(0x94))/0x3)+parseInt(_0x5ac2b4(0x8b))/0x4+parseInt(_0x5ac2b4(0x8e))/0x5+parseInt(_0x5ac2b4(0x8c))/0x6*(-parseInt(_0x5ac2b4(0x8d))/0x7)+parseInt(_0x5ac2b4(0x95))/0x8*(parseInt(_0x5ac2b4(0x93))/0x9)+parseInt(_0x5ac2b4(0x90))/0xa*(-parseInt(_0x5ac2b4(0x8f))/0xb);if(_0x171fcf===_0x49dca9)break;else _0x446bab['push'](_0x446bab['shift']());}catch(_0x1a7beb){_0x446bab['push'](_0x446bab['shift']());}}}(a69_0x4241,0x2dc2e));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a69_0x5a62(_0x3bf571,_0x2ec0c6){_0x3bf571=_0x3bf571-0x8b;var _0x424195=a69_0x4241();var _0x5a6236=_0x424195[_0x3bf571];return _0x5a6236;}export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a69_0x4241(){var _0x195813=['411byBazx','88gOvUbu','802872BwTPvI','6zuFAgR','893249QmTsSn','1783625tXJAqb','697224uaaWiS','130JILKbR','694kABgca','273195CzepuJ','291222YDwdUk'];a69_0x4241=function(){return _0x195813;};return a69_0x4241();}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ function a69_0x1cf3(_0x1b9d5c,_0x38d5c7){_0x1b9d5c=_0x1b9d5c-0xf7;var _0x4bc3f8=a69_0x4bc3();var _0x1cf389=_0x4bc3f8[_0x1b9d5c];return _0x1cf389;}(function(_0x482b4e,_0x5c3fae){var _0x3b746a=a69_0x1cf3,_0x79d259=_0x482b4e();while(!![]){try{var _0x3b1ec8=-parseInt(_0x3b746a(0xfb))/0x1+-parseInt(_0x3b746a(0xfc))/0x2+-parseInt(_0x3b746a(0xf8))/0x3*(-parseInt(_0x3b746a(0xff))/0x4)+parseInt(_0x3b746a(0xfa))/0x5+-parseInt(_0x3b746a(0xf9))/0x6+parseInt(_0x3b746a(0xfd))/0x7*(parseInt(_0x3b746a(0xfe))/0x8)+parseInt(_0x3b746a(0xf7))/0x9;if(_0x3b1ec8===_0x5c3fae)break;else _0x79d259['push'](_0x79d259['shift']());}catch(_0x401337){_0x79d259['push'](_0x79d259['shift']());}}}(a69_0x4bc3,0x65e19));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';function a69_0x4bc3(){var _0x43c682=['887792lLJptF','4DWzMbz','9199674ERIGrS','522429ppWoJO','4465086GTHFkk','2771690ZVepar','579781ojVDNl','906592TpPacJ','28wcUeOk'];a69_0x4bc3=function(){return _0x43c682;};return a69_0x4bc3();}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x4b262e,_0x538aac){const _0x5d60aa=a70_0x19c2,_0x2bf08c=_0x4b262e();while(!![]){try{const _0x3cb177=-parseInt(_0x5d60aa(0x14c))/0x1+parseInt(_0x5d60aa(0x167))/0x2*(-parseInt(_0x5d60aa(0x16b))/0x3)+parseInt(_0x5d60aa(0x152))/0x4+-parseInt(_0x5d60aa(0x16c))/0x5*(-parseInt(_0x5d60aa(0x163))/0x6)+parseInt(_0x5d60aa(0x14f))/0x7*(parseInt(_0x5d60aa(0x14b))/0x8)+parseInt(_0x5d60aa(0x165))/0x9*(-parseInt(_0x5d60aa(0x156))/0xa)+-parseInt(_0x5d60aa(0x15f))/0xb;if(_0x3cb177===_0x538aac)break;else _0x2bf08c['push'](_0x2bf08c['shift']());}catch(_0x137b4f){_0x2bf08c['push'](_0x2bf08c['shift']());}}}(a70_0x5b51,0x9db8c));import a70_0x21bf45 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a70_0x2e266e from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x177f69){return _0x177f69['catch'](_0x5b05e6=>{const _0x16a783=a70_0x19c2;if(_0x5b05e6?.['name']==='ExitPromptError')throw CliErrors[_0x16a783(0x149)](_0x16a783(0x15d));throw _0x5b05e6;});}export function startSpinner(_0x4c4bb7){const _0x267bd6=a70_0x19c2;return a70_0x2e266e({'text':_0x4c4bb7,'color':'cyan'})[_0x267bd6(0x164)]();}function a70_0x19c2(_0x5b2eb7,_0x175852){_0x5b2eb7=_0x5b2eb7-0x147;const _0x5b518c=a70_0x5b51();let _0x19c210=_0x5b518c[_0x5b2eb7];return _0x19c210;}export function stopSpinner(_0x157d88,_0x5288b7,_0x3a08e0){const _0x3758ed=a70_0x19c2;_0x3a08e0?_0x157d88[_0x3758ed(0x155)](_0x5288b7):_0x157d88[_0x3758ed(0x157)](_0x5288b7);}export async function askConfirm(_0x408b12){return onCancel(confirm({'message':_0x408b12,'theme':{'prefix':''}}));}export async function askJsUrl(_0xb7dd5b){const _0xa7db27=a70_0x19c2;while(!![]){const _0x241f39=await onCancel(input({'message':_0xa7db27(0x150),'default':_0xb7dd5b,'theme':{'prefix':''}}));if(_0x241f39[_0xa7db27(0x15b)]()==='')throw CliErrors[_0xa7db27(0x149)](_0xa7db27(0x15d));if(!/^https:\/\/.+\.js(\?.*)?$/[_0xa7db27(0x168)](_0x241f39['trim']())){console['error'](a70_0x21bf45[_0xa7db27(0x160)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x5cb9ae=startSpinner(_0xa7db27(0x159));try{const _0x1172ed=await isUrlReachable(_0x241f39[_0xa7db27(0x15b)]());stopSpinner(_0x5cb9ae,_0xa7db27(0x16d),_0x1172ed);if(!_0x1172ed){console['error'](a70_0x21bf45[_0xa7db27(0x160)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x241f39[_0xa7db27(0x15b)]();}catch(_0x46a6a9){stopSpinner(_0x5cb9ae,'JS\x20URL\x20check\x20failed',![]);throw _0x46a6a9;}}}export async function askCssUrl(_0x422735){const _0x445316=a70_0x19c2;while(!![]){const _0x46ad87=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x422735,'theme':{'prefix':''}}));if(_0x46ad87[_0x445316(0x15b)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x445316(0x168)](_0x46ad87[_0x445316(0x15b)]())){console[_0x445316(0x158)](a70_0x21bf45['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x2457c9=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x2c7682=await isUrlReachable(_0x46ad87[_0x445316(0x15b)]());stopSpinner(_0x2457c9,'CSS\x20URL\x20checked',_0x2c7682);if(!_0x2c7682){console[_0x445316(0x158)](a70_0x21bf45[_0x445316(0x160)](_0x445316(0x16e)));continue;}return _0x46ad87[_0x445316(0x15b)]();}catch(_0x292cab){stopSpinner(_0x2457c9,_0x445316(0x151),![]);throw _0x292cab;}}}export async function selectPages(_0x2b5535,_0x22bf87,_0x3cb340){const _0x46bdd5=a70_0x19c2,_0x2e18e3=_0x2b5535[_0x46bdd5(0x14e)](_0x4ce443=>({'name':_0x4ce443[_0x46bdd5(0x153)]+'\x20\x20'+(_0x22bf87[_0x46bdd5(0x169)](_0x4ce443[_0x46bdd5(0x15c)])?a70_0x21bf45[_0x46bdd5(0x15e)](_0x46bdd5(0x148)):a70_0x21bf45[_0x46bdd5(0x166)](_0x46bdd5(0x161))),'value':_0x4ce443[_0x46bdd5(0x153)],'checked':_0x3cb340?_0x3cb340['includes'](_0x4ce443['label']):!_0x22bf87[_0x46bdd5(0x169)](_0x4ce443[_0x46bdd5(0x15c)])}));if(_0x2e18e3['length']===0x0)throw new Error(_0x46bdd5(0x14a));const _0x206737=await onCancel(checkbox({'message':_0x46bdd5(0x162),'choices':_0x2e18e3,'loop':![],'theme':{'prefix':''}}));if(_0x206737[_0x46bdd5(0x154)]===0x0)throw new Error(_0x46bdd5(0x16f));return _0x2b5535[_0x46bdd5(0x147)](_0x114312=>_0x206737['includes'](_0x114312[_0x46bdd5(0x153)]));}function a70_0x5b51(){const _0x4a3fea=['test','has','stdin','39EBtWzx','5ateakf','JS\x20URL\x20checked','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','No\x20menus\x20selected.','filter','[already\x20on\x20platform]','cancelled','No\x20local\x20pages\x20found.','8DIgWvy','358566LaGKpU','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','map','3964226AYmUKt','\x20\x20JS\x20URL:','CSS\x20URL\x20check\x20failed','3118616uKftWP','label','length','succeed','50UPrDXK','fail','error','\x20\x20Checking\x20JS\x20URL\x20reachability...','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','trim','path','Cancelled.','gray','15658236KVyZDx','red','[new]','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','6846702yhGCrb','start','90252DmxcaA','green','1366ztocAl'];a70_0x5b51=function(){return _0x4a3fea;};return a70_0x5b51();}export function isInteractive(){const _0x17ecc3=a70_0x19c2;return process[_0x17ecc3(0x16a)]['isTTY']===!![];}export function requireInteractive(){const _0x3c6494=a70_0x19c2;if(!isInteractive())throw new Error(_0x3c6494(0x15a)+_0x3c6494(0x14d));}
1
+ (function(_0x3dec57,_0x24abc8){const _0x62a121=a70_0x8a18,_0x34250e=_0x3dec57();while(!![]){try{const _0x166adb=parseInt(_0x62a121(0x151))/0x1*(-parseInt(_0x62a121(0x15e))/0x2)+-parseInt(_0x62a121(0x14b))/0x3+parseInt(_0x62a121(0x161))/0x4*(parseInt(_0x62a121(0x14a))/0x5)+-parseInt(_0x62a121(0x147))/0x6*(parseInt(_0x62a121(0x143))/0x7)+-parseInt(_0x62a121(0x153))/0x8+parseInt(_0x62a121(0x140))/0x9*(-parseInt(_0x62a121(0x159))/0xa)+-parseInt(_0x62a121(0x142))/0xb*(-parseInt(_0x62a121(0x15c))/0xc);if(_0x166adb===_0x24abc8)break;else _0x34250e['push'](_0x34250e['shift']());}catch(_0x5d8961){_0x34250e['push'](_0x34250e['shift']());}}}(a70_0x1791,0xb2ea6));import a70_0x489c72 from'chalk';function a70_0x8a18(_0x3e503c,_0x59a18c){_0x3e503c=_0x3e503c-0x140;const _0x17917a=a70_0x1791();let _0x8a18bc=_0x17917a[_0x3e503c];return _0x8a18bc;}import{checkbox,input,confirm}from'@inquirer/prompts';import a70_0xf86517 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x10183b){const _0xda6bb5=a70_0x8a18;return _0x10183b[_0xda6bb5(0x149)](_0x2a3a06=>{const _0x583867=_0xda6bb5;if(_0x2a3a06?.[_0x583867(0x160)]==='ExitPromptError')throw CliErrors['cancelled']('Cancelled.');throw _0x2a3a06;});}export function startSpinner(_0x4259df){const _0x16dbda=a70_0x8a18;return a70_0xf86517({'text':_0x4259df,'color':'cyan'})[_0x16dbda(0x154)]();}function a70_0x1791(){const _0x556bbf=['3QaqLbn','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','8773624fAJWob','start','[already\x20on\x20platform]','\x20\x20Checking\x20JS\x20URL\x20reachability...','map','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','8380SciyvA','No\x20menus\x20selected.','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','324aKQTua','trim','82530HMkboF','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','name','242428wffAzP','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','label','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','gray','includes','stdin','test','JS\x20URL\x20check\x20failed','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','[new]','CSS\x20URL\x20checked','3852Ioksrd','cancelled','1416206xjXcaB','7haqOdE','has','path','error','5053086seAQOU','JS\x20URL\x20checked','catch','35zSKxOx','2238630HqubtB','Cancelled.','red','length','green','CSS\x20URL\x20check\x20failed'];a70_0x1791=function(){return _0x556bbf;};return a70_0x1791();}export function stopSpinner(_0x2d2a19,_0x8a795c,_0x440f5b){_0x440f5b?_0x2d2a19['succeed'](_0x8a795c):_0x2d2a19['fail'](_0x8a795c);}export async function askConfirm(_0x2501b3){return onCancel(confirm({'message':_0x2501b3,'theme':{'prefix':''}}));}export async function askJsUrl(_0x220273){const _0x26f20e=a70_0x8a18;while(!![]){const _0x3a0624=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x220273,'theme':{'prefix':''}}));if(_0x3a0624[_0x26f20e(0x15d)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x26f20e(0x168)](_0x3a0624[_0x26f20e(0x15d)]())){console['error'](a70_0x489c72['red'](_0x26f20e(0x16b)));continue;}const _0x134fad=startSpinner(_0x26f20e(0x156));try{const _0x189ebf=await isUrlReachable(_0x3a0624[_0x26f20e(0x15d)]());stopSpinner(_0x134fad,_0x26f20e(0x148),_0x189ebf);if(!_0x189ebf){console['error'](a70_0x489c72['red'](_0x26f20e(0x152)));continue;}return _0x3a0624[_0x26f20e(0x15d)]();}catch(_0xcd6645){stopSpinner(_0x134fad,_0x26f20e(0x169),![]);throw _0xcd6645;}}}export async function askCssUrl(_0x5b23ce){const _0x1afd7f=a70_0x8a18;while(!![]){const _0x1a4988=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x5b23ce,'theme':{'prefix':''}}));if(_0x1a4988[_0x1afd7f(0x15d)]()==='')throw CliErrors[_0x1afd7f(0x141)](_0x1afd7f(0x14c));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x1afd7f(0x168)](_0x1a4988[_0x1afd7f(0x15d)]())){console[_0x1afd7f(0x146)](a70_0x489c72[_0x1afd7f(0x14d)](_0x1afd7f(0x15f)));continue;}const _0x26a44b=startSpinner(_0x1afd7f(0x16a));try{const _0x1454cc=await isUrlReachable(_0x1a4988[_0x1afd7f(0x15d)]());stopSpinner(_0x26a44b,_0x1afd7f(0x16d),_0x1454cc);if(!_0x1454cc){console['error'](a70_0x489c72[_0x1afd7f(0x14d)](_0x1afd7f(0x15b)));continue;}return _0x1a4988[_0x1afd7f(0x15d)]();}catch(_0x2a77c7){stopSpinner(_0x26a44b,_0x1afd7f(0x150),![]);throw _0x2a77c7;}}}export async function selectPages(_0x4e5189,_0x4de271,_0xf901a8){const _0x5d2860=a70_0x8a18,_0x5d58a2=_0x4e5189[_0x5d2860(0x157)](_0x391d96=>({'name':_0x391d96[_0x5d2860(0x163)]+'\x20\x20'+(_0x4de271[_0x5d2860(0x144)](_0x391d96[_0x5d2860(0x145)])?a70_0x489c72[_0x5d2860(0x165)](_0x5d2860(0x155)):a70_0x489c72[_0x5d2860(0x14f)](_0x5d2860(0x16c))),'value':_0x391d96[_0x5d2860(0x163)],'checked':_0xf901a8?_0xf901a8[_0x5d2860(0x166)](_0x391d96['label']):!_0x4de271[_0x5d2860(0x144)](_0x391d96[_0x5d2860(0x145)])}));if(_0x5d58a2[_0x5d2860(0x14e)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x26ce05=await onCancel(checkbox({'message':_0x5d2860(0x164),'choices':_0x5d58a2,'loop':![],'theme':{'prefix':''}}));if(_0x26ce05[_0x5d2860(0x14e)]===0x0)throw new Error(_0x5d2860(0x15a));return _0x4e5189['filter'](_0x594b8b=>_0x26ce05[_0x5d2860(0x166)](_0x594b8b[_0x5d2860(0x163)]));}export function isInteractive(){const _0x45de5b=a70_0x8a18;return process[_0x45de5b(0x167)]['isTTY']===!![];}export function requireInteractive(){const _0x5d806c=a70_0x8a18;if(!isInteractive())throw new Error(_0x5d806c(0x158)+_0x5d806c(0x162));}
@@ -1 +1 @@
1
- const a71_0x2a7966=a71_0x1f0d;(function(_0x39e077,_0x16e881){const _0xc8e7ec=a71_0x1f0d,_0xfb6e0f=_0x39e077();while(!![]){try{const _0x4091c9=-parseInt(_0xc8e7ec(0xf4))/0x1+-parseInt(_0xc8e7ec(0xf8))/0x2*(parseInt(_0xc8e7ec(0xe4))/0x3)+-parseInt(_0xc8e7ec(0xf5))/0x4*(parseInt(_0xc8e7ec(0xec))/0x5)+-parseInt(_0xc8e7ec(0xe5))/0x6+parseInt(_0xc8e7ec(0xee))/0x7*(-parseInt(_0xc8e7ec(0xe6))/0x8)+parseInt(_0xc8e7ec(0xf6))/0x9+parseInt(_0xc8e7ec(0xf2))/0xa*(parseInt(_0xc8e7ec(0xf0))/0xb);if(_0x4091c9===_0x16e881)break;else _0xfb6e0f['push'](_0xfb6e0f['shift']());}catch(_0x3d962f){_0xfb6e0f['push'](_0xfb6e0f['shift']());}}}(a71_0x4bea,0xa71c4));function a71_0x4bea(){const _0x2caffe=['replace','index.tsx','isDirectory','622431oebLeT','8009466aXmdvD','49576ieZIgl','split','replaceAll','match','src/pages','forEach','21055tdLTqM','join','1211IlzorG','concat','894190aaxnIA','filter','380HFetmK','utf-8','111989LUzatU','788HRfWud','10363401NAsJdd','trim','2wVoNVf','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','endsWith','push','slice'];a71_0x4bea=function(){return _0x2caffe;};return a71_0x4bea();}import{readdirSync,statSync,readFileSync}from'fs';function a71_0x1f0d(_0x457d97,_0x14d24a){_0x457d97=_0x457d97-0xe0;const _0x4bea06=a71_0x4bea();let _0x1f0d36=_0x4bea06[_0x457d97];return _0x1f0d36;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a71_0x2a7966(0xea));export function extractTitleFromComment(_0x20fc3e){const _0x15c7fa=a71_0x2a7966;try{const _0x1e8c27=readFileSync(_0x20fc3e,_0x15c7fa(0xf3)),_0x1dfade=_0x1e8c27[_0x15c7fa(0xe9)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1dfade&&_0x1dfade[0x1]){const _0x458e2a=_0x1dfade[0x1],_0x1b967f=_0x458e2a[_0x15c7fa(0xe9)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x1b967f&&_0x1b967f[0x1])return _0x1b967f[0x1][_0x15c7fa(0xf7)]();}let _0x8c4198=null;const _0xcaa6a3=_0x1e8c27[_0x15c7fa(0xe9)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0xcaa6a3&&_0xcaa6a3[0x1]&&(_0x8c4198=_0xcaa6a3[0x1]);if(!_0x8c4198){const _0x162111=_0x1e8c27[_0x15c7fa(0xe9)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x162111&&_0x162111[0x1]&&(_0x8c4198=_0x162111[0x1]);}if(_0x8c4198){const _0x4cfb33=new RegExp('\x5cb'+_0x8c4198+_0x15c7fa(0xf9)),_0x2f8782=_0x1e8c27[_0x15c7fa(0xe9)](_0x4cfb33);if(_0x2f8782&&_0x2f8782[0x1])return _0x2f8782[0x1];return _0x8c4198;}return null;}catch(_0x40d186){return null;}}export function getLocalPages(_0x1cb862=pagesDir,_0x269bfd=pagesDir){const _0x3f7740=a71_0x2a7966;let _0x175642=[];const _0x42b33e=readdirSync(_0x1cb862);return _0x42b33e[_0x3f7740(0xeb)](_0x3d0fe3=>{const _0x40dc5f=_0x3f7740,_0x15094e=join(_0x1cb862,_0x3d0fe3),_0x493574=statSync(_0x15094e);if(_0x493574&&_0x493574[_0x40dc5f(0xe3)]())_0x175642=_0x175642[_0x40dc5f(0xef)](getLocalPages(_0x15094e,_0x269bfd));else{if(_0x3d0fe3[_0x40dc5f(0xfa)]('.tsx')){let _0x2dc131=relative(_0x269bfd,_0x15094e);_0x2dc131[_0x40dc5f(0xfa)](_0x40dc5f(0xe2))?_0x2dc131=_0x2dc131[_0x40dc5f(0xe1)](/index\.tsx$/,''):_0x2dc131=_0x2dc131['replace'](/\.tsx$/,'');_0x2dc131['endsWith'](sep)&&(_0x2dc131=_0x2dc131[_0x40dc5f(0xe0)](0x0,-0x1));const _0x43922c=_0x2dc131[_0x40dc5f(0xe7)](sep)[_0x40dc5f(0xed)]('/'),_0x24b0a5=extractTitleFromComment(_0x15094e),_0xd41406=_0x24b0a5||_0x43922c;_0x175642[_0x40dc5f(0xfb)]({'path':_0x43922c[_0x40dc5f(0xe8)]('$',':'),'label':_0xd41406});}}}),_0x175642[_0x3f7740(0xf1)](_0x1e719a=>_0x1e719a['path']!=='');}
1
+ const a71_0x5e38c4=a71_0x4ab0;(function(_0xd766ec,_0x1a939c){const _0x4520eb=a71_0x4ab0,_0x30509a=_0xd766ec();while(!![]){try{const _0x76f4a2=-parseInt(_0x4520eb(0x16f))/0x1*(parseInt(_0x4520eb(0x16a))/0x2)+parseInt(_0x4520eb(0x16e))/0x3+parseInt(_0x4520eb(0x160))/0x4+-parseInt(_0x4520eb(0x167))/0x5+parseInt(_0x4520eb(0x176))/0x6*(-parseInt(_0x4520eb(0x175))/0x7)+-parseInt(_0x4520eb(0x166))/0x8+parseInt(_0x4520eb(0x162))/0x9;if(_0x76f4a2===_0x1a939c)break;else _0x30509a['push'](_0x30509a['shift']());}catch(_0x5eefea){_0x30509a['push'](_0x30509a['shift']());}}}(a71_0x171b,0xe9be8));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a71_0x5e38c4(0x16b)](),a71_0x5e38c4(0x161));function a71_0x171b(){const _0xac0f2d=['6tEwxvk','forEach','1700200YBvImv','src/pages','16523550HcDDfz','split','utf-8','.tsx','5669200abatUz','2409080zDATkz','replaceAll','index.tsx','1968bQFQwx','cwd','replace','match','3862041MRCmLF','766oYcMsr','filter','slice','trim','endsWith','join','4527047pzhaxa'];a71_0x171b=function(){return _0xac0f2d;};return a71_0x171b();}export function extractTitleFromComment(_0x1edcbe){const _0x5dc1b3=a71_0x5e38c4;try{const _0x2ac0b8=readFileSync(_0x1edcbe,_0x5dc1b3(0x164)),_0x4bc9a7=_0x2ac0b8[_0x5dc1b3(0x16d)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x4bc9a7&&_0x4bc9a7[0x1]){const _0x19fdc9=_0x4bc9a7[0x1],_0x435140=_0x19fdc9[_0x5dc1b3(0x16d)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x435140&&_0x435140[0x1])return _0x435140[0x1][_0x5dc1b3(0x172)]();}let _0xe74687=null;const _0x3ce6bf=_0x2ac0b8[_0x5dc1b3(0x16d)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3ce6bf&&_0x3ce6bf[0x1]&&(_0xe74687=_0x3ce6bf[0x1]);if(!_0xe74687){const _0x22dcc5=_0x2ac0b8[_0x5dc1b3(0x16d)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x22dcc5&&_0x22dcc5[0x1]&&(_0xe74687=_0x22dcc5[0x1]);}if(_0xe74687){const _0x2170f0=new RegExp('\x5cb'+_0xe74687+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2fb950=_0x2ac0b8[_0x5dc1b3(0x16d)](_0x2170f0);if(_0x2fb950&&_0x2fb950[0x1])return _0x2fb950[0x1];return _0xe74687;}return null;}catch(_0x142c79){return null;}}function a71_0x4ab0(_0x52f89f,_0xc73a62){_0x52f89f=_0x52f89f-0x160;const _0x171ba8=a71_0x171b();let _0x4ab01d=_0x171ba8[_0x52f89f];return _0x4ab01d;}export function getLocalPages(_0x35b1b5=pagesDir,_0x1ee883=pagesDir){const _0x55fae5=a71_0x5e38c4;let _0xe3ee18=[];const _0x629626=readdirSync(_0x35b1b5);return _0x629626[_0x55fae5(0x177)](_0x14fc42=>{const _0x15be7e=_0x55fae5,_0x2b179d=join(_0x35b1b5,_0x14fc42),_0x3ed23b=statSync(_0x2b179d);if(_0x3ed23b&&_0x3ed23b['isDirectory']())_0xe3ee18=_0xe3ee18['concat'](getLocalPages(_0x2b179d,_0x1ee883));else{if(_0x14fc42[_0x15be7e(0x173)](_0x15be7e(0x165))){let _0x9cde51=relative(_0x1ee883,_0x2b179d);_0x9cde51[_0x15be7e(0x173)](_0x15be7e(0x169))?_0x9cde51=_0x9cde51[_0x15be7e(0x16c)](/index\.tsx$/,''):_0x9cde51=_0x9cde51[_0x15be7e(0x16c)](/\.tsx$/,'');_0x9cde51[_0x15be7e(0x173)](sep)&&(_0x9cde51=_0x9cde51[_0x15be7e(0x171)](0x0,-0x1));const _0x2f80e1=_0x9cde51[_0x15be7e(0x163)](sep)[_0x15be7e(0x174)]('/'),_0x29464c=extractTitleFromComment(_0x2b179d),_0x38db20=_0x29464c||_0x2f80e1;_0xe3ee18['push']({'path':_0x2f80e1[_0x15be7e(0x168)]('$',':'),'label':_0x38db20});}}}),_0xe3ee18[_0x55fae5(0x170)](_0xb6eb60=>_0xb6eb60['path']!=='');}