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

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 (162) 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 -0
  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 -0
  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 -0
  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 -0
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -0
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -0
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -0
  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 -0
  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/file-utils.js +1 -1
  149. package/lib/utils/guides-cdn.js +1 -1
  150. package/lib/utils/http-client.js +1 -1
  151. package/lib/utils/is-non-interactive.js +1 -1
  152. package/lib/utils/logger.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/rules-cdn.js +1 -1
  155. package/lib/utils/sleep.js +1 -1
  156. package/lib/utils/template-replacer.js +1 -1
  157. package/lib/utils/version.js +1 -1
  158. package/lib/utils/with-active-cookie.js +1 -1
  159. package/lib/utils/write-cli-side-channel.js +1 -1
  160. package/package.json +3 -2
  161. package/lib/commands/api/doc.js +0 -1
  162. package/lib/commands/app/remote.js +0 -1
@@ -1 +1 @@
1
- const a53_0x30f599=a53_0x25ac;function a53_0x1d32(){const _0x4aac37=['dburl','str','1121088hypkYx','792INgMBl','trim','create','dbdesc','join','8.0','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','168JhxCph','\x20and\x20started\x20analysis','compress','No\x20follow-up\x20analysis','Created\x20db\x20link\x20','Human-readable\x20description','message','dbversion','password','string','2817717EMkMUO','appCode','dbparam','1162958JxSJXA','Host\x20and\x20port:\x20host:port','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','dbname','Database\x20password','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','[redacted]','Extra\x20JDBC-style\x20connection\x20parameters\x20string','POST','autostart','bool','5146748CSbNPv','username','boolean','5255HgpRWA','789255ZhdsTN','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','1111442TUzUey','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','validation','dbtype'];a53_0x1d32=function(){return _0x4aac37;};return a53_0x1d32();}(function(_0x38d8bb,_0x560023){const _0x4938f6=a53_0x25ac,_0x33d5da=_0x38d8bb();while(!![]){try{const _0x13468f=parseInt(_0x4938f6(0x1cd))/0x1+-parseInt(_0x4938f6(0x1de))/0x2+parseInt(_0x4938f6(0x1e4))/0x3+parseInt(_0x4938f6(0x1d8))/0x4+parseInt(_0x4938f6(0x1db))/0x5*(-parseInt(_0x4938f6(0x1e5))/0x6)+parseInt(_0x4938f6(0x1ca))/0x7+-parseInt(_0x4938f6(0x1ec))/0x8*(parseInt(_0x4938f6(0x1dc))/0x9);if(_0x13468f===_0x560023)break;else _0x33d5da['push'](_0x33d5da['shift']());}catch(_0xae8fd1){_0x33d5da['push'](_0x33d5da['shift']());}}}(a53_0x1d32,0xa86a0));function a53_0x25ac(_0x4c60b3,_0x41e266){_0x4c60b3=_0x4c60b3-0x1c9;const _0x1d3238=a53_0x1d32();let _0x25ac14=_0x1d3238[_0x4c60b3];return _0x25ac14;}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';export const dbCreate={'service':'db','command':a53_0x30f599(0x1e7),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':'write','defaultOutputFormat':a53_0x30f599(0x1ee),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a53_0x30f599(0x1d0),'type':a53_0x30f599(0x1c9),'required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a53_0x30f599(0x1f3),'type':a53_0x30f599(0x1c9),'description':a53_0x30f599(0x1cf),'default':'8.0'},{'name':a53_0x30f599(0x1e2),'type':a53_0x30f599(0x1c9),'required':!![],'description':a53_0x30f599(0x1ce)},{'name':a53_0x30f599(0x1d9),'type':'string','required':!![],'description':'Database\x20username'},{'name':a53_0x30f599(0x1f4),'type':a53_0x30f599(0x1c9),'required':!![],'description':a53_0x30f599(0x1d1)},{'name':a53_0x30f599(0x1cc),'type':'string','description':a53_0x30f599(0x1d4)},{'name':a53_0x30f599(0x1e8),'type':a53_0x30f599(0x1c9),'description':a53_0x30f599(0x1f1)},{'name':a53_0x30f599(0x1d6),'type':a53_0x30f599(0x1da),'description':a53_0x30f599(0x1eb),'default':![]}],async 'validate'(_0x37d69a){const _0x1b26a9=a53_0x30f599,_0x1aecc6=_0x37d69a[_0x1b26a9(0x1e3)](_0x1b26a9(0x1e2))[_0x1b26a9(0x1e6)]();if(!validateDbUrl(_0x1aecc6))throw CliErrors[_0x1b26a9(0x1e0)](_0x1b26a9(0x1d2)+_0x1aecc6+'\x22',_0x1b26a9(0x1df));},async 'dryRun'(_0xc0825a){const _0x14c438=a53_0x30f599,_0x1af91d={'appCode':_0xc0825a[_0x14c438(0x1cb)],'dbName':_0xc0825a['str'](_0x14c438(0x1d0)),'dbType':_0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1e1)),'dbVersion':_0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1f3))||'8.0','dbUrl':_0xc0825a[_0x14c438(0x1e3)]('dburl')[_0x14c438(0x1e6)](),'username':_0xc0825a[_0x14c438(0x1e3)]('username'),'password':_0x14c438(0x1d3),..._0xc0825a[_0x14c438(0x1e3)]('dbparam')?{'dbParam':_0xc0825a['str'](_0x14c438(0x1cc))}:{},..._0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1e8))?{'dbDesc':_0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1e8))}:{}};return{'method':_0x14c438(0x1d5),'url':'/smartapi/dblink/create','body':_0x1af91d,'description':['Create\x20dblink',_0xc0825a[_0x14c438(0x1d7)](_0x14c438(0x1d6))?_0x14c438(0x1dd):_0x14c438(0x1ef)][_0x14c438(0x1e9)]('\x0a')};},async 'execute'(_0x1873dc){const _0xd44478=a53_0x30f599,_0x635773={'appCode':_0x1873dc['appCode'],'dbName':_0x1873dc['str'](_0xd44478(0x1d0)),'dbType':_0x1873dc['str'](_0xd44478(0x1e1)),'dbVersion':_0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1f3))||_0xd44478(0x1ea),'dbUrl':_0x1873dc['str'](_0xd44478(0x1e2))[_0xd44478(0x1e6)](),'username':_0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1d9)),'password':_0x1873dc['str']('password'),..._0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1cc))?{'dbParam':_0x1873dc['str']('dbparam')}:{},..._0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1e8))?{'dbDesc':_0x1873dc['str']('dbdesc')}:{}},_0x435d7d=await createDbLink(_0x635773),_0xba062b=_0x435d7d['id'];if(!_0xba062b)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x435d7d)};let _0x8048cf,_0x4397e6;if(_0x1873dc[_0xd44478(0x1d7)](_0xd44478(0x1d6)))try{_0x8048cf=await startDbAnalysis(_0xba062b);}catch(_0x17fb7f){_0x4397e6=_0x17fb7f instanceof Error?_0x17fb7f[_0xd44478(0x1f2)]:String(_0x17fb7f);}const _0x234815={'connection':sanitizeDbLinkForOutput(_0x435d7d),..._0x8048cf?{'analysisPlanId':_0x8048cf}:{},..._0x4397e6?{'analysisStartWarning':_0x4397e6}:{}};let _0x4f6b78;return _0x1873dc[_0xd44478(0x1d7)](_0xd44478(0x1d6))?_0x4397e6?_0x4f6b78='Created\x20db\x20link\x20'+_0xba062b+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x4f6b78=_0xd44478(0x1f0)+_0xba062b+_0xd44478(0x1ed):_0x4f6b78=_0xd44478(0x1f0)+_0xba062b,{'ok':!![],'data':_0x234815,'message':_0x4f6b78};}};
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 +1 @@
1
- const a54_0x19b74c=a54_0xe9e7;(function(_0x1a28b9,_0x3c3dbc){const _0x136658=a54_0xe9e7,_0x2f5632=_0x1a28b9();while(!![]){try{const _0x1314be=-parseInt(_0x136658(0x169))/0x1*(-parseInt(_0x136658(0x174))/0x2)+parseInt(_0x136658(0x170))/0x3+parseInt(_0x136658(0x168))/0x4*(-parseInt(_0x136658(0x173))/0x5)+-parseInt(_0x136658(0x16f))/0x6+-parseInt(_0x136658(0x16e))/0x7+-parseInt(_0x136658(0x16a))/0x8*(parseInt(_0x136658(0x16d))/0x9)+parseInt(_0x136658(0x167))/0xa*(parseInt(_0x136658(0x171))/0xb);if(_0x1314be===_0x3c3dbc)break;else _0x2f5632['push'](_0x2f5632['shift']());}catch(_0x51f1f7){_0x2f5632['push'](_0x2f5632['shift']());}}}(a54_0x3e9f,0x586db));function a54_0x3e9f(){const _0x4b72e3=['high-risk-write','63mgBRLQ','3056704zkiEGl','3103044fXCApW','142614MFqXfM','20985613QUHcOF','delete','555LMGiQl','277958LJXUyB','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','num','10zFnPUX','6756peJAOt','1oDtwid','675168vHRIOY','Deleted\x20db\x20link\x20'];a54_0x3e9f=function(){return _0x4b72e3;};return a54_0x3e9f();}function a54_0xe9e7(_0x1b1d94,_0x352a9d){_0x1b1d94=_0x1b1d94-0x166;const _0x3e9f97=a54_0x3e9f();let _0xe9e701=_0x3e9f97[_0x1b1d94];return _0xe9e701;}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':a54_0x19b74c(0x172),'description':a54_0x19b74c(0x175),'risk':a54_0x19b74c(0x16c),'defaultOutputFormat':'compress','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x42d10f){const _0x73ea33=a54_0x19b74c,_0x1161d6=_0x42d10f[_0x73ea33(0x166)]('id');return await deleteDbLink(_0x1161d6),{'ok':!![],'data':{'id':_0x1161d6,'deleted':!![]},'message':_0x73ea33(0x16b)+_0x1161d6};}};
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 +1 @@
1
- const a55_0x5a24f9=a55_0x4c65;(function(_0x33e1d8,_0x40a59b){const _0x11ecab=a55_0x4c65,_0x77f62f=_0x33e1d8();while(!![]){try{const _0x1b08cd=parseInt(_0x11ecab(0x13c))/0x1*(parseInt(_0x11ecab(0x130))/0x2)+parseInt(_0x11ecab(0x131))/0x3+parseInt(_0x11ecab(0x13d))/0x4+-parseInt(_0x11ecab(0x13b))/0x5+parseInt(_0x11ecab(0x12e))/0x6*(-parseInt(_0x11ecab(0x137))/0x7)+parseInt(_0x11ecab(0x139))/0x8+-parseInt(_0x11ecab(0x134))/0x9*(parseInt(_0x11ecab(0x135))/0xa);if(_0x1b08cd===_0x40a59b)break;else _0x77f62f['push'](_0x77f62f['shift']());}catch(_0x3faabf){_0x77f62f['push'](_0x77f62f['shift']());}}}(a55_0x7638,0x23fb5));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a55_0x7638(){const _0x5a5abd=['374696sORQrQ','detail','1659504xHmkhD','compress','1001505MzGyAS','150493HbZyGa','804608CdLSTP','6gYltFu','read','2BZgXOL','720513kKnuIk','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','dbName','1791198EhTcmT','20kOaRZo','db\x20link\x20'];a55_0x7638=function(){return _0x5a5abd;};return a55_0x7638();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a55_0x4c65(_0x42efaf,_0x4a694b){_0x42efaf=_0x42efaf-0x12e;const _0x763853=a55_0x7638();let _0x4c650e=_0x763853[_0x42efaf];return _0x4c650e;}export const dbDetail={'service':'db','command':a55_0x5a24f9(0x138),'description':a55_0x5a24f9(0x132),'risk':a55_0x5a24f9(0x12f),'defaultOutputFormat':a55_0x5a24f9(0x13a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2212a2){const _0x5c6e3b=a55_0x5a24f9,_0x1b8819=_0x2212a2['num']('id'),_0x558d10=await getDbLinkInfo(_0x1b8819);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x558d10),'message':_0x5c6e3b(0x136)+_0x1b8819+':\x20'+_0x558d10[_0x5c6e3b(0x133)]};}};
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 +1 @@
1
- const a56_0x37ef85=a56_0x6c6a;(function(_0xbd86f8,_0x170f81){const _0x5dd150=a56_0x6c6a,_0x188de3=_0xbd86f8();while(!![]){try{const _0x2076e0=parseInt(_0x5dd150(0x77))/0x1+-parseInt(_0x5dd150(0x76))/0x2+parseInt(_0x5dd150(0x71))/0x3+parseInt(_0x5dd150(0x6f))/0x4+-parseInt(_0x5dd150(0x6d))/0x5*(-parseInt(_0x5dd150(0x75))/0x6)+parseInt(_0x5dd150(0x83))/0x7*(parseInt(_0x5dd150(0x7a))/0x8)+-parseInt(_0x5dd150(0x84))/0x9;if(_0x2076e0===_0x170f81)break;else _0x188de3['push'](_0x188de3['shift']());}catch(_0x141760){_0x188de3['push'](_0x188de3['shift']());}}}(a56_0x4861,0x342c1));function a56_0x6c6a(_0x23bb4d,_0x3116aa){_0x23bb4d=_0x23bb4d-0x6d;const _0x4861df=a56_0x4861();let _0x6c6ad1=_0x4861df[_0x23bb4d];return _0x6c6ad1;}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':a56_0x37ef85(0x7e),'description':a56_0x37ef85(0x74),'risk':a56_0x37ef85(0x7c),'defaultOutputFormat':'compress','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a56_0x37ef85(0x7f),'type':a56_0x37ef85(0x81),'description':a56_0x37ef85(0x82)},{'name':a56_0x37ef85(0x80),'type':a56_0x37ef85(0x70),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a56_0x37ef85(0x7b),'type':'number','description':'Page\x20size','default':0x14}],async 'execute'(_0x494e8f){const _0x2a5526=a56_0x37ef85,_0xf58b7c=_0x494e8f['num']('id'),_0x4a9bf0=_0x494e8f[_0x2a5526(0x6e)](_0x2a5526(0x80),0x1)||0x1,_0x18124a=_0x494e8f['num'](_0x2a5526(0x7b),0x14)||0x14,_0x1f0d28=_0x494e8f[_0x2a5526(0x7d)]('table')||undefined,{totalCount:_0x25e66d,tableList:_0x4ee4a9}=await getDbTableDiff(_0x494e8f[_0x2a5526(0x73)],_0xf58b7c,{'pageIndex':_0x4a9bf0,'pageSize':_0x18124a,'tableName':_0x1f0d28});return{'ok':!![],'data':{'dbLinkId':_0xf58b7c,'page':_0x4a9bf0,'pageSize':_0x18124a,'totalCount':_0x25e66d,'tableList':_0x4ee4a9},'message':_0x4ee4a9[_0x2a5526(0x72)]+_0x2a5526(0x78)+_0x25e66d+_0x2a5526(0x79)+_0xf58b7c+')'};}};function a56_0x4861(){const _0x4624df=['Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','373278AlOWmc','333760XgKOcN','395023DkHDJc','\x20row(s),\x20total\x20','\x20(db\x20link\x20','1072AXYNeS','pagesize','read','str','diff','table','page','string','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','17059gWSikd','9745731qOApNX','10YDASUp','num','913760KuXBFB','number','1166967gvlnvR','length','appCode'];a56_0x4861=function(){return _0x4624df;};return a56_0x4861();}
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 +1 @@
1
- (function(_0xf41ccc,_0x4f213b){const _0x13e99c=a57_0x542a,_0x2a9bd5=_0xf41ccc();while(!![]){try{const _0x301815=parseInt(_0x13e99c(0xb6))/0x1+-parseInt(_0x13e99c(0xb3))/0x2*(parseInt(_0x13e99c(0xb2))/0x3)+-parseInt(_0x13e99c(0xb8))/0x4+parseInt(_0x13e99c(0xb4))/0x5*(parseInt(_0x13e99c(0xb0))/0x6)+-parseInt(_0x13e99c(0xb1))/0x7*(parseInt(_0x13e99c(0xb7))/0x8)+-parseInt(_0x13e99c(0xb5))/0x9+parseInt(_0x13e99c(0xb9))/0xa*(parseInt(_0x13e99c(0xba))/0xb);if(_0x301815===_0x4f213b)break;else _0x2a9bd5['push'](_0x2a9bd5['shift']());}catch(_0x31e9c5){_0x2a9bd5['push'](_0x2a9bd5['shift']());}}}(a57_0x5091,0xabd5e));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';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a57_0x542a(_0x5bb251,_0x590814){_0x5bb251=_0x5bb251-0xb0;const _0x50914b=a57_0x5091();let _0x542a78=_0x50914b[_0x5bb251];return _0x542a78;}function a57_0x5091(){const _0xdbb3ed=['36XgbUrR','878801FUQlYw','3UfICfD','242286EFPAkd','24765tsmcwX','11764125MHOduM','998305roCUxA','72QHAkfv','2719832eTcPZY','40AQRjuw','8013302NfPmaO'];a57_0x5091=function(){return _0xdbb3ed;};return a57_0x5091();}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(_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 +1 @@
1
- const a58_0x4e09d4=a58_0x216f;(function(_0x34abbe,_0x2962a9){const _0x570692=a58_0x216f,_0x1fe526=_0x34abbe();while(!![]){try{const _0x431974=-parseInt(_0x570692(0xa0))/0x1+parseInt(_0x570692(0xb2))/0x2+-parseInt(_0x570692(0xa8))/0x3*(parseInt(_0x570692(0xaf))/0x4)+-parseInt(_0x570692(0xa2))/0x5*(-parseInt(_0x570692(0xae))/0x6)+-parseInt(_0x570692(0xa6))/0x7+-parseInt(_0x570692(0xb4))/0x8+parseInt(_0x570692(0xb0))/0x9*(parseInt(_0x570692(0xad))/0xa);if(_0x431974===_0x2962a9)break;else _0x1fe526['push'](_0x1fe526['shift']());}catch(_0x4efb38){_0x1fe526['push'](_0x1fe526['shift']());}}}(a58_0x1bcd,0xdcf1b));function a58_0x1bcd(){const _0x4c4e0c=['read','pagesize','460CtfdRj','24gMidAO','133948WXDMsQ','740943qDWdJT','page','1458596hRoYOL','\x20database\x20connection(s)','14280960xfWmpf','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','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','number','Page\x20index\x20(1-based)','538318vEeyDw','appCode','1071025tEQUZe','compress','Page\x20size','num','9621738yltcdk','Found\x20','69NzWrTH','list','length'];a58_0x1bcd=function(){return _0x4c4e0c;};return a58_0x1bcd();}function a58_0x216f(_0x45c2a8,_0x273762){_0x45c2a8=_0x45c2a8-0x9c;const _0x1bcded=a58_0x1bcd();let _0x216f54=_0x1bcded[_0x45c2a8];return _0x216f54;}import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a58_0x4e09d4(0xa9),'description':a58_0x4e09d4(0x9d),'risk':a58_0x4e09d4(0xab),'defaultOutputFormat':a58_0x4e09d4(0xa3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a58_0x4e09d4(0xb1),'type':'number','description':a58_0x4e09d4(0x9f),'default':0x1},{'name':a58_0x4e09d4(0xac),'type':a58_0x4e09d4(0x9e),'description':a58_0x4e09d4(0xa4),'default':0x64}],async 'execute'(_0x182a97){const _0x17a75e=a58_0x4e09d4,_0xd2c53b=_0x182a97[_0x17a75e(0xa5)](_0x17a75e(0xb1),0x1)||0x1,_0x18e25a=_0x182a97[_0x17a75e(0xa5)](_0x17a75e(0xac),0x64)||0x64,{items:_0x14f2be,paging:_0x547b29}=await listDbLinks(_0x182a97[_0x17a75e(0xa1)],{'currentPage':_0xd2c53b,'pageSize':_0x18e25a}),_0x171715=sanitizeDbLinkList(_0x14f2be),_0x430f3c=_0x547b29?_0x547b29:{'currentPage':_0xd2c53b,'pageSize':_0x18e25a,'rowsOnPage':_0x171715['length'],'totalCount':null,'note':_0x17a75e(0x9c)};return{'ok':!![],'data':{'connections':_0x171715,'paging':_0x430f3c},'message':_0x17a75e(0xa7)+_0x171715[_0x17a75e(0xaa)]+_0x17a75e(0xb3)};}};
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 +1 @@
1
- (function(_0x57137c,_0x5ae020){const _0x14c697=a59_0x5e30,_0x3dd89f=_0x57137c();while(!![]){try{const _0x40060e=-parseInt(_0x14c697(0x15c))/0x1*(-parseInt(_0x14c697(0x15d))/0x2)+-parseInt(_0x14c697(0x156))/0x3+parseInt(_0x14c697(0x15e))/0x4+parseInt(_0x14c697(0x168))/0x5*(parseInt(_0x14c697(0x163))/0x6)+parseInt(_0x14c697(0x15f))/0x7*(parseInt(_0x14c697(0x169))/0x8)+-parseInt(_0x14c697(0x165))/0x9*(parseInt(_0x14c697(0x158))/0xa)+-parseInt(_0x14c697(0x15b))/0xb;if(_0x40060e===_0x5ae020)break;else _0x3dd89f['push'](_0x3dd89f['shift']());}catch(_0x3d72a6){_0x3dd89f['push'](_0x3dd89f['shift']());}}}(a59_0x4959,0x5f05e));function shouldRedactKey(_0x430b52){const _0x500027=a59_0x5e30,_0x3db553=_0x430b52[_0x500027(0x159)]();if(_0x3db553==='password'||_0x3db553===_0x500027(0x166)||_0x3db553===_0x500027(0x167))return!![];if(_0x3db553['includes']('secret')||_0x3db553['includes']('token')||_0x3db553[_0x500027(0x16c)]('credential'))return!![];if(_0x3db553['includes'](_0x500027(0x162))||_0x3db553['includes'](_0x500027(0x160)))return!![];if(_0x3db553===_0x500027(0x157)||_0x3db553===_0x500027(0x15a)||_0x3db553===_0x500027(0x16d))return!![];return![];}function a59_0x5e30(_0x397d37,_0x4690eb){_0x397d37=_0x397d37-0x156;const _0x4959c9=a59_0x4959();let _0x5e303c=_0x4959c9[_0x397d37];return _0x5e303c;}export function sanitizeDbLinkForOutput(_0x51e3ca){const _0x547f6f=a59_0x5e30,_0x3e8c24={..._0x51e3ca};for(const _0x16d2b9 of Object[_0x547f6f(0x16a)](_0x3e8c24)){if(!shouldRedactKey(_0x16d2b9))continue;const _0x1b68d2=_0x3e8c24[_0x16d2b9];_0x1b68d2!=null&&String(_0x1b68d2)[_0x547f6f(0x161)]>0x0&&(_0x3e8c24[_0x16d2b9]='[redacted]');}return _0x3e8c24;}export function sanitizeDbLinkList(_0x17f396){const _0x5b63bb=a59_0x5e30;return _0x17f396[_0x5b63bb(0x16b)](_0x55a859=>sanitizeDbLinkForOutput(_0x55a859));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2e51cc){const _0x4c6fbd=a59_0x5e30,_0x536d1b=_0x2e51cc[_0x4c6fbd(0x164)]();if(!_0x536d1b)return![];return DB_URL_PATTERN['test'](_0x536d1b);}function a59_0x4959(){const _0x613d2a=['9571023IKzsjF','279856TJcjSn','2cYhvdS','2812600LUlkng','14mYeEbO','accesskey','length','privatekey','20388CEyknG','trim','29601ckCznp','passwd','dbpassword','660pxbZlZ','908816JdrbZU','keys','map','includes','jdbcurl','300420gnfVLU','authorization','910gwQcuH','toLowerCase','connectionstring'];a59_0x4959=function(){return _0x613d2a;};return a59_0x4959();}
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 +1 @@
1
- const a60_0x58c840=a60_0x1568;function a60_0x3b15(){const _0x5764f9=['tables','num','86464mTvRYi','read','18znhJyo','193624IdOzym','7455112ZBufZd','36138WCySVa','\x20table(s)\x20on\x20db\x20link\x20','8750460OvMFdd','length','42vVyljQ','3901338XJfuSC','110TfEwUA','472538qhBnjQ','appCode','670xodPvz','8GolkLK'];a60_0x3b15=function(){return _0x5764f9;};return a60_0x3b15();}(function(_0x1c7cbd,_0x1f087e){const _0x33456e=a60_0x1568,_0x483098=_0x1c7cbd();while(!![]){try{const _0x75de19=-parseInt(_0x33456e(0x150))/0x1*(-parseInt(_0x33456e(0x14e))/0x2)+parseInt(_0x33456e(0x145))/0x3*(-parseInt(_0x33456e(0x151))/0x4)+parseInt(_0x33456e(0x14a))/0x5*(parseInt(_0x33456e(0x153))/0x6)+-parseInt(_0x33456e(0x152))/0x7+parseInt(_0x33456e(0x14b))/0x8*(parseInt(_0x33456e(0x146))/0x9)+-parseInt(_0x33456e(0x147))/0xa*(parseInt(_0x33456e(0x148))/0xb)+parseInt(_0x33456e(0x155))/0xc;if(_0x75de19===_0x1f087e)break;else _0x483098['push'](_0x483098['shift']());}catch(_0x35a66a){_0x483098['push'](_0x483098['shift']());}}}(a60_0x3b15,0x820e3));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a60_0x1568(_0x14b44c,_0x40f9ce){_0x14b44c=_0x14b44c-0x144;const _0x3b1503=a60_0x3b15();let _0x15686c=_0x3b1503[_0x14b44c];return _0x15686c;}export const dbTables={'service':'db','command':a60_0x58c840(0x14c),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a60_0x58c840(0x14f),'defaultOutputFormat':'compress','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2a7130){const _0xafb7c3=a60_0x58c840,_0x3a1497=_0x2a7130[_0xafb7c3(0x14d)]('id'),_0x3f96fd=await getDbAllTableList(_0x2a7130[_0xafb7c3(0x149)],_0x3a1497);return{'ok':!![],'data':{'dbLinkId':_0x3a1497,'total':_0x3f96fd[_0xafb7c3(0x144)],'tables':_0x3f96fd},'message':_0x3f96fd[_0xafb7c3(0x144)]+_0xafb7c3(0x154)+_0x3a1497};}};
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 +1 @@
1
- function a61_0x2393(){const _0x490872=['2184NVNkJe','540ChVgWw','num','keys','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','25736utVLgS','7487082tzKBXH','257814BdjYqy','message','error','object','data','read','code','test','Connection\x20OK\x20for\x20db\x20link\x20','4335328fMOuMu','234716UNMSsZ','27ebUjPY','3881635yiGNil','716672XcApkS'];a61_0x2393=function(){return _0x490872;};return a61_0x2393();}const a61_0x4b659b=a61_0x2ba2;(function(_0x52cadf,_0x17b77d){const _0x203f1a=a61_0x2ba2,_0x2305e2=_0x52cadf();while(!![]){try{const _0x88c8e8=parseInt(_0x203f1a(0x123))/0x1+parseInt(_0x203f1a(0x120))/0x2*(-parseInt(_0x203f1a(0x121))/0x3)+parseInt(_0x203f1a(0x135))/0x4+parseInt(_0x203f1a(0x122))/0x5+-parseInt(_0x203f1a(0x12b))/0x6+parseInt(_0x203f1a(0x124))/0x7*(-parseInt(_0x203f1a(0x12a))/0x8)+-parseInt(_0x203f1a(0x12c))/0x9*(-parseInt(_0x203f1a(0x125))/0xa);if(_0x88c8e8===_0x17b77d)break;else _0x2305e2['push'](_0x2305e2['shift']());}catch(_0x3a6e4){_0x2305e2['push'](_0x2305e2['shift']());}}}(a61_0x2393,0xc7346));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0xa3fd60){const _0x50328f=a61_0x2ba2;if(_0xa3fd60===!![]||_0xa3fd60===![])return{'success':_0xa3fd60};if(_0xa3fd60===null||_0xa3fd60===undefined)return{'type':typeof _0xa3fd60};if(typeof _0xa3fd60!==_0x50328f(0x12f))return{'type':typeof _0xa3fd60};const _0x447775=_0xa3fd60,_0x5e8f39=['success',_0x50328f(0x12d),_0x50328f(0x132),_0x50328f(0x12e),'msg',_0x50328f(0x130)],_0x42cdfc={};for(const _0x52d2dd of _0x5e8f39){if(_0x52d2dd in _0x447775)_0x42cdfc[_0x52d2dd]=_0x447775[_0x52d2dd];}return Object[_0x50328f(0x127)](_0x42cdfc)['length']===0x0&&(_0x42cdfc[_0x50328f(0x127)]=Object[_0x50328f(0x127)](_0x447775)[_0x50328f(0x128)](0x0,0x14)),_0x42cdfc;}function a61_0x2ba2(_0x388376,_0x2bf76f){_0x388376=_0x388376-0x120;const _0x2393a1=a61_0x2393();let _0x2ba208=_0x2393a1[_0x388376];return _0x2ba208;}export const dbTest={'service':'db','command':a61_0x4b659b(0x133),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a61_0x4b659b(0x131),'defaultOutputFormat':'compress','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2b7970){const _0x1824a0=a61_0x4b659b,_0x3ddc92=_0x2b7970[_0x1824a0(0x126)]('id'),_0x8842a1=await testDbLinkConnect(_0x3ddc92),_0x2f7c97=_0x8842a1===!![]||typeof _0x8842a1===_0x1824a0(0x12f)&&_0x8842a1!==null&&_0x8842a1['success']===!![],_0x3daaa1=summarizeTestConnectResult(_0x8842a1);return{'ok':!![],'data':{'id':_0x3ddc92,'connected':Boolean(_0x2f7c97),'result':_0x3daaa1},'message':_0x2f7c97?_0x1824a0(0x134)+_0x3ddc92:_0x1824a0(0x129)+_0x3ddc92+'\x20(see\x20data.result)'};}};
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 +1 @@
1
- const a62_0xe8be2a=a62_0x321a;(function(_0x1e221e,_0x1d3005){const _0x247960=a62_0x321a,_0x69e8ab=_0x1e221e();while(!![]){try{const _0x3aa6d7=-parseInt(_0x247960(0x1d8))/0x1*(parseInt(_0x247960(0x1de))/0x2)+-parseInt(_0x247960(0x1d2))/0x3*(parseInt(_0x247960(0x1c9))/0x4)+-parseInt(_0x247960(0x1db))/0x5*(-parseInt(_0x247960(0x1d7))/0x6)+-parseInt(_0x247960(0x1cd))/0x7+-parseInt(_0x247960(0x1c7))/0x8*(parseInt(_0x247960(0x1cb))/0x9)+parseInt(_0x247960(0x1ca))/0xa+parseInt(_0x247960(0x1d0))/0xb;if(_0x3aa6d7===_0x1d3005)break;else _0x69e8ab['push'](_0x69e8ab['shift']());}catch(_0x474390){_0x69e8ab['push'](_0x69e8ab['shift']());}}}(a62_0x5338,0x74f8c));function a62_0x321a(_0x470f8f,_0x34e2cf){_0x470f8f=_0x470f8f-0x1bb;const _0x53380c=a62_0x5338();let _0x321adc=_0x53380c[_0x470f8f];return _0x321adc;}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';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';export const dbUpdate={'service':'db','command':'update','description':a62_0xe8be2a(0x1bb),'risk':a62_0xe8be2a(0x1c3),'defaultOutputFormat':a62_0xe8be2a(0x1bc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1ce)},{'name':a62_0xe8be2a(0x1c4),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1d4)},{'name':a62_0xe8be2a(0x1d3),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1be)},{'name':a62_0xe8be2a(0x1dd),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1d5)},{'name':a62_0xe8be2a(0x1dc),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1c8)},{'name':'dbdesc','type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1bf)}],async 'validate'(_0x3a4e22){const _0x56384a=a62_0xe8be2a,_0x1f3b99=_0x3a4e22['str'](_0x56384a(0x1c4));if(_0x1f3b99&&!validateDbUrl(_0x1f3b99[_0x56384a(0x1c0)]()))throw CliErrors['validation'](_0x56384a(0x1da)+_0x1f3b99+'\x22');},async 'dryRun'(_0x2b1da3){const _0x610d3a=a62_0xe8be2a,_0xf66bf0=_0x2b1da3[_0x610d3a(0x1c6)]('id'),_0x277c56=await getDbLinkInfo(_0xf66bf0),_0x2115a4={..._0x277c56},_0x39d38f=_0x2b1da3['str']('dbname');if(_0x39d38f)_0x2115a4['dbName']=_0x39d38f;const _0x3b7700=_0x2b1da3[_0x610d3a(0x1d6)]('dburl');if(_0x3b7700)_0x2115a4['dbUrl']=_0x3b7700[_0x610d3a(0x1c0)]();const _0xc9b2ac=_0x2b1da3[_0x610d3a(0x1d6)](_0x610d3a(0x1d3));if(_0xc9b2ac)_0x2115a4[_0x610d3a(0x1d3)]=_0xc9b2ac;const _0x5ea0a8=_0x2b1da3[_0x610d3a(0x1d6)]('password');if(_0x5ea0a8)_0x2115a4[_0x610d3a(0x1dd)]=_0x5ea0a8;const _0x1b80d0=_0x2b1da3['str'](_0x610d3a(0x1dc));if(_0x1b80d0)_0x2115a4[_0x610d3a(0x1df)]=_0x1b80d0;const _0x16c7be=_0x2b1da3[_0x610d3a(0x1d6)]('dbdesc');if(_0x16c7be)_0x2115a4[_0x610d3a(0x1c2)]=_0x16c7be;const _0x5211d0=sanitizeDbLinkForOutput(_0x2115a4);return{'method':_0x610d3a(0x1c5),'url':_0x610d3a(0x1c1),'body':_0x5211d0,'description':_0x610d3a(0x1d9)};},async 'execute'(_0x56cdfc){const _0x5748b9=a62_0xe8be2a,_0x2894a1=_0x56cdfc[_0x5748b9(0x1c6)]('id'),_0x3c3715=await getDbLinkInfo(_0x2894a1),_0x39c65a={..._0x3c3715},_0x5c16ab=_0x56cdfc['str'](_0x5748b9(0x1cf));if(_0x5c16ab)_0x39c65a['dbName']=_0x5c16ab;const _0x3ceb9c=_0x56cdfc[_0x5748b9(0x1d6)]('dburl');if(_0x3ceb9c)_0x39c65a[_0x5748b9(0x1d1)]=_0x3ceb9c[_0x5748b9(0x1c0)]();const _0x2267cd=_0x56cdfc['str'](_0x5748b9(0x1d3));if(_0x2267cd)_0x39c65a['username']=_0x2267cd;const _0x4a0215=_0x56cdfc['str'](_0x5748b9(0x1dd));if(_0x4a0215)_0x39c65a[_0x5748b9(0x1dd)]=_0x4a0215;const _0xd7aa71=_0x56cdfc[_0x5748b9(0x1d6)]('dbparam');if(_0xd7aa71)_0x39c65a[_0x5748b9(0x1df)]=_0xd7aa71;const _0x258a35=_0x56cdfc['str'](_0x5748b9(0x1bd));if(_0x258a35)_0x39c65a['dbDesc']=_0x258a35;const _0x2da33d=await updateDbLink(_0x39c65a);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2da33d),'message':'Updated\x20db\x20link\x20'+_0x2894a1};}};function a62_0x5338(){const _0x4276e4=['dburl','POST','num','2496KorUDT','New\x20connection\x20parameter\x20string','8QhKjNq','2037940lNUGtU','12519Blvsce','string','6379037Mzsset','New\x20database\x20name','dbname','24904561GijWcF','dbUrl','515667rtPAGe','username','New\x20host:port','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','str','6342qYENLe','338777wEPDEU','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','185UpoIGB','dbparam','password','2bqsMKS','dbParam','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','compress','dbdesc','New\x20username','New\x20description','trim','/smartapi/dblink/update','dbDesc','write'];a62_0x5338=function(){return _0x4276e4;};return a62_0x5338();}
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 +1 @@
1
- const a63_0x17de10=a63_0x4fff;(function(_0x4df593,_0x392c99){const _0x3479df=a63_0x4fff,_0x25cffa=_0x4df593();while(!![]){try{const _0x548da0=-parseInt(_0x3479df(0x10c))/0x1*(parseInt(_0x3479df(0xe2))/0x2)+parseInt(_0x3479df(0x116))/0x3+-parseInt(_0x3479df(0x118))/0x4+parseInt(_0x3479df(0x110))/0x5+-parseInt(_0x3479df(0x106))/0x6+parseInt(_0x3479df(0xe8))/0x7+-parseInt(_0x3479df(0x117))/0x8;if(_0x548da0===_0x392c99)break;else _0x25cffa['push'](_0x25cffa['shift']());}catch(_0x5c5dab){_0x25cffa['push'](_0x25cffa['shift']());}}}(a63_0x1e48,0xf409c));function a63_0x4fff(_0x28ecd9,_0x5a548c){_0x28ecd9=_0x28ecd9-0xd3;const _0x1e483e=a63_0x1e48();let _0x4fffee=_0x1e483e[_0x28ecd9];return _0x4fffee;}import a63_0x3a15dd from'chalk';function a63_0x1e48(){const _0x3fe7d5=['arch','status','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(not\x20found)','(default)','(set)','\x20\x20Merged\x20Config','✓\x20Valid','read','✓\x20Valid\x20JSON','✗\x20Expired','(default:\x20pretty)','env','verbose','\x20\x20Apps','length','platform','appCode','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','2340732tbLwaz','version','doctor','pageSize','defaultApp','repeat','151YVxjcI','(set\x20via\x20file,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','9593875KlKcwU','\x20\x20─','cookie','red','empty','slice','2773200bRyZqR','13183824tremuI','1827544dJKxSN','check','explicitAppName','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','green','apiDir','\x20\x20API\x20Endpoints','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20runtimeDomain:\x20\x20\x20','keys','bold','apps','\x20(default)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','appcode','(none)','log','gray','currentApp','✗\x20Not\x20logged\x20in','11794ejqdvO','yellow','format','(missing)','✗\x20Invalid\x20JSON','Project','10792866jQfrSj','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','padEnd','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor'];a63_0x1e48=function(){return _0x3fe7d5;};return a63_0x1e48();}import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';async function execute(_0x5b48a7){const _0x3252ee=a63_0x4fff,_0x53fdfc=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3252ee(0x115)](0x0,0xa)+')':VERSION,_0x4ab28c=buildConfigFromFlags({}),_0x1c312b=getCookie();console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](CLI_BIN_NAME+_0x3252ee(0xf1))),console[_0x3252ee(0xde)](a63_0x3a15dd['gray']('─'[_0x3252ee(0x10b)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x53fdfc),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x3252ee(0x107)]),console[_0x3252ee(0xde)](_0x3252ee(0xf0)+process[_0x3252ee(0x103)]+'\x20'+process[_0x3252ee(0xf2)]),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)]('\x20\x20Config\x20Files')),console['log'](a63_0x3a15dd['gray'](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e)));const _0x52c19f=getGlobalConfigPath(),_0x1b473b=getProjectConfigPath();console[_0x3252ee(0xde)](_0x3252ee(0x10e)+(_0x52c19f||a63_0x3a15dd[_0x3252ee(0xdf)]('(not\x20found)'))),console[_0x3252ee(0xde)](_0x3252ee(0x105)+(_0x1b473b||a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xf6)))),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0x122))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)]('\x20\x20─'['repeat'](0x1e)));const _0xf532d7=(_0x22ed63,_0x48b54a)=>{const _0x334a60=_0x3252ee;if(!_0x48b54a){console[_0x334a60(0xde)]('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd['gray'](_0x334a60(0x11d)));return;}const _0x23a467=inspectCliConfigJsonFile(_0x48b54a);if(_0x23a467['status']==='ok')console['log']('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0x11e)](_0x334a60(0xfc)));else{if(_0x23a467[_0x334a60(0xf3)]===_0x334a60(0x114))console['log']('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0xe3)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x23a467[_0x334a60(0xf3)]==='missing'?console[_0x334a60(0xde)]('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0xdf)](_0x334a60(0xe5))):(console[_0x334a60(0xde)]('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0x113)](_0x334a60(0xe6))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a63_0x3a15dd['red'](_0x23a467['message'])));}};_0xf532d7('Global',_0x52c19f),_0xf532d7(_0x3252ee(0xe7),_0x1b473b),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd['bold'](_0x3252ee(0xf9))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e))),console[_0x3252ee(0xde)](_0x3252ee(0xda)+(_0x4ab28c[_0x3252ee(0x104)]||a63_0x3a15dd[_0x3252ee(0x113)]('(not\x20set)'))),console[_0x3252ee(0xde)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c[_0x3252ee(0xdb)]),console[_0x3252ee(0xde)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c['apiDir']),console[_0x3252ee(0xde)](_0x3252ee(0xf5)+(_0x4ab28c[_0x3252ee(0x10a)]||a63_0x3a15dd['gray'](_0x3252ee(0xdd)))),console[_0x3252ee(0xde)](_0x3252ee(0xeb)+(_0x4ab28c[_0x3252ee(0xe0)]||a63_0x3a15dd[_0x3252ee(0xdf)]('(none)'))),console[_0x3252ee(0xde)](_0x3252ee(0x10f)+(_0x4ab28c[_0x3252ee(0x11a)]||a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xdd)))),console[_0x3252ee(0xde)](_0x3252ee(0x121)+(_0x4ab28c[_0x3252ee(0xe4)]||a63_0x3a15dd['gray'](_0x3252ee(0xfe)))),console['log'](_0x3252ee(0xed)+(_0x4ab28c[_0x3252ee(0x109)]??a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xf7)))),console['log'](_0x3252ee(0xe9)+_0x4ab28c[_0x3252ee(0xea)]),console[_0x3252ee(0xde)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c[_0x3252ee(0x100)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ab28c[_0x3252ee(0x112)]?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0xd9)+_0x4ab28c[_0x3252ee(0x112)][_0x3252ee(0x102)]+')'):_0x1c312b?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0x10d)+_0x1c312b['length']+')'):a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xdd))));const _0x4b4aa6=Object[_0x3252ee(0xd4)](_0x4ab28c['apps']);if(_0x4b4aa6[_0x3252ee(0x102)]>0x0){console[_0x3252ee(0xde)](),console['log'](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0x101))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e)));for(const _0x2ba580 of _0x4b4aa6){const _0x57d3d7=_0x4ab28c[_0x3252ee(0xd6)][_0x2ba580],_0x31f22a=_0x2ba580===_0x4ab28c[_0x3252ee(0x10a)],_0x44b441=_0x2ba580===_0x4ab28c[_0x3252ee(0xe0)],_0x41af48=_0x44b441?a63_0x3a15dd[_0x3252ee(0x11e)]('\x20←\x20current'):'',_0x4f2909=_0x31f22a?_0x3252ee(0xd7):'';console[_0x3252ee(0xde)]('\x20\x20'+_0x2ba580+_0x4f2909+_0x41af48),console[_0x3252ee(0xde)](_0x3252ee(0x11b)+_0x57d3d7[_0x3252ee(0xdc)]),console[_0x3252ee(0xde)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x57d3d7[_0x3252ee(0xff)]||a63_0x3a15dd[_0x3252ee(0xdf)]('(inherit)'))),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x57d3d7[_0x3252ee(0x11f)]||a63_0x3a15dd['gray']('(inherit)'))),console[_0x3252ee(0xde)]('\x20\x20\x20\x20cookie:\x20\x20\x20'+(_0x57d3d7['cookie']?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0xf8)):a63_0x3a15dd[_0x3252ee(0xdf)]('(inherit)')));}}console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0x120))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0x111)['repeat'](0x1e))),console[_0x3252ee(0xde)](_0x3252ee(0xd8)+getApiDomain()),console[_0x3252ee(0xde)](_0x3252ee(0xf4)+getUserDomain()),console[_0x3252ee(0xde)](_0x3252ee(0xd3)+getRuntimeDomain()),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0xee))),console[_0x3252ee(0xde)](a63_0x3a15dd['gray'](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e)));if(_0x1c312b){const _0x240723=await getIsSessionValid();console[_0x3252ee(0xde)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x240723?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0xfa)):a63_0x3a15dd[_0x3252ee(0x113)](_0x3252ee(0xfd))));}else console['log'](_0x3252ee(0x11c)+a63_0x3a15dd[_0x3252ee(0x113)](_0x3252ee(0xe1)));return console[_0x3252ee(0xde)](),{'ok':!![]};}export const doctorDefinition={'service':a63_0x17de10(0x108),'command':a63_0x17de10(0x119),'description':a63_0x17de10(0xec),'risk':a63_0x17de10(0xfb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
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 +1 @@
1
- const a64_0x43ffa4=a64_0x55df;(function(_0xa0ee3a,_0x38d898){const _0x102132=a64_0x55df,_0x822895=_0xa0ee3a();while(!![]){try{const _0x8df40e=-parseInt(_0x102132(0x14c))/0x1*(-parseInt(_0x102132(0x14d))/0x2)+-parseInt(_0x102132(0x147))/0x3+parseInt(_0x102132(0x14f))/0x4*(parseInt(_0x102132(0x167))/0x5)+-parseInt(_0x102132(0x15c))/0x6+-parseInt(_0x102132(0x154))/0x7*(parseInt(_0x102132(0x15b))/0x8)+parseInt(_0x102132(0x179))/0x9+parseInt(_0x102132(0x175))/0xa;if(_0x8df40e===_0x38d898)break;else _0x822895['push'](_0x822895['shift']());}catch(_0x6a8e51){_0x822895['push'](_0x822895['shift']());}}}(a64_0x35b8,0xa85b0));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';function a64_0x55df(_0x4a75b4,_0x1b1a85){_0x4a75b4=_0x4a75b4-0x147;const _0x35b896=a64_0x35b8();let _0x55df01=_0x35b896[_0x4a75b4];return _0x55df01;}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';function a64_0x35b8(){const _0x5e3b6f=['boolean','1996010hxoIBa','appcode','init','Usage:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','production','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','\x20\x20AppCode:\x20','project','toLocaleString','custom','flagMissing','../../commands/project/init.js','8157690eAxfaB','map','global','\x20\x20Apps:\x20','3230307TMqhnk','1405317BAzPzo','some','validation','defaultApp','nonInteractive','795064qglVmW','2bRxfmp','\x20\x20Env:\x20','4STVUcZ','appCode','run','yes','bool','4074AsqwqE','valid','log','apps','join','\x20\x20Default:\x20','env','6792fSLHam','4300902VCPWBY','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','cwd','string','write','Use\x20`','检测到旧配置文件,正在自动升级...\x0a','App\x20code\x20to\x20initialize\x20with','Target\x20environment','\x20\x20Config:\x20'];a64_0x35b8=function(){return _0x5e3b6f;};return a64_0x35b8();}function syntheticApp(_0x23ac8b){return{'appCode':_0x23ac8b,'appName':_0x23ac8b};}function writeInitConfig(_0x48ec0d,_0x241f62,_0x337b90){const _0x577074=a64_0x55df,_0x4e70e3=resolveWriteConfigPath(_0x48ec0d),_0xbce604={'version':getCliVersion(),'createdAt':new Date()[_0x577074(0x171)](),'env':_0x337b90};if(_0x241f62['length']===0x1)_0xbce604['appcode']=_0x241f62[0x0][_0x577074(0x150)];else{_0xbce604['apps']={};for(const _0x4c4fb6 of _0x241f62){_0xbce604[_0x577074(0x157)][_0x4c4fb6[_0x577074(0x150)]]={'appcode':_0x4c4fb6[_0x577074(0x150)],'env':_0x337b90};}_0xbce604[_0x577074(0x14a)]=_0x241f62[0x0]['appCode'];}writeConfigFile(_0x4e70e3,_0xbce604);const _0x56a4da=_0x48ec0d===_0x577074(0x177)?_0x577074(0x177):_0x577074(0x170);console[_0x577074(0x156)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x56a4da+'\x20config'),_0x241f62['length']===0x1?console[_0x577074(0x156)](_0x577074(0x16f)+_0x241f62[0x0][_0x577074(0x150)]):(console[_0x577074(0x156)](_0x577074(0x178)+_0x241f62[_0x577074(0x176)](_0x248fe1=>_0x248fe1[_0x577074(0x150)])[_0x577074(0x158)](',\x20')),console[_0x577074(0x156)](_0x577074(0x159)+_0xbce604[_0x577074(0x14a)])),console[_0x577074(0x156)](_0x577074(0x14e)+_0xbce604[_0x577074(0x15a)]),console['log'](_0x577074(0x165)+_0x4e70e3);}async function runSmartInit(_0x334657){const _0x19e773=a64_0x55df,_0x28ed3b=process[_0x19e773(0x15e)](),_0x3377c0=_0x334657[_0x19e773(0x153)]('global')?_0x19e773(0x177):_0x19e773(0x170),_0x174915=_0x334657['str'](_0x19e773(0x15a))||_0x19e773(0x16d),_0x120dad=_0x334657['str'](_0x19e773(0x168))||undefined,_0x37afd3=_0x334657[_0x19e773(0x153)](_0x19e773(0x170));if(_0x37afd3){const {initConfig:_0x4d6c5d}=await import(_0x19e773(0x174));return _0x4d6c5d({'appcode':_0x120dad,'env':_0x174915,'autoYes':_0x334657[_0x19e773(0x153)](_0x19e773(0x152))});}if(_0x3377c0===_0x19e773(0x170)){const _0xc73faa=existsSync(resolve(_0x28ed3b,NEW_CONFIG_NAME)),_0x19f77c=LEGACY_CONFIG_NAMES[_0x19e773(0x148)](_0x2432e3=>existsSync(resolve(_0x28ed3b,_0x2432e3)));if(_0x19f77c&&!_0xc73faa)return console[_0x19e773(0x156)](_0x19e773(0x162)),upgradeApp(_0x334657[_0x19e773(0x14b)],{'yes':_0x334657['bool']('yes')});if(_0xc73faa)throw CliErrors[_0x19e773(0x149)](_0x19e773(0x16b),_0x19e773(0x161)+CLI_BIN_NAME+_0x19e773(0x16c));}if(_0x120dad){const _0x55010b=validateAppcode(_0x120dad);if(!_0x55010b[_0x19e773(0x155)])throw CliErrors[_0x19e773(0x149)](_0x55010b['message']);writeInitConfig(_0x3377c0,[syntheticApp(_0x120dad)],_0x174915);return;}if(_0x334657['nonInteractive'])throw CliErrors[_0x19e773(0x173)](_0x19e773(0x168),_0x19e773(0x16a)+CLI_BIN_NAME+_0x19e773(0x16e));const _0x2cc4bd=getCookie(),_0x4622d7=await selectMultipleApps(_0x2cc4bd),_0x35828b=_0x4622d7===_0x19e773(0x172)?[syntheticApp(await promptCustomAppcode())]:_0x4622d7;writeInitConfig(_0x3377c0,_0x35828b,_0x174915);}const initFlags=[{'name':a64_0x43ffa4(0x177),'type':a64_0x43ffa4(0x166),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a64_0x43ffa4(0x15a),'type':a64_0x43ffa4(0x15f),'description':a64_0x43ffa4(0x164),'default':a64_0x43ffa4(0x16d),'enum':[a64_0x43ffa4(0x16d),'daily']},{'name':a64_0x43ffa4(0x168),'type':a64_0x43ffa4(0x15f),'description':a64_0x43ffa4(0x163)},{'name':'project','type':a64_0x43ffa4(0x166),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a64_0x43ffa4(0x152),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a64_0x43ffa4(0x169),'command':a64_0x43ffa4(0x151),'description':a64_0x43ffa4(0x15d),'risk':a64_0x43ffa4(0x160),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x457c9a){return await runSmartInit(_0x457c9a),{'ok':!![]};}}];
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 +1 @@
1
- function a65_0x2d52(_0x444387,_0x2f84ac){_0x444387=_0x444387-0x13d;const _0x5a62d8=a65_0x5a62();let _0x2d5217=_0x5a62d8[_0x444387];return _0x2d5217;}const a65_0x385728=a65_0x2d52;(function(_0x5f11de,_0x3aa8a6){const _0x278f68=a65_0x2d52,_0x447e1e=_0x5f11de();while(!![]){try{const _0xa20684=parseInt(_0x278f68(0x13d))/0x1+-parseInt(_0x278f68(0x14f))/0x2+parseInt(_0x278f68(0x156))/0x3+-parseInt(_0x278f68(0x147))/0x4+-parseInt(_0x278f68(0x158))/0x5*(-parseInt(_0x278f68(0x159))/0x6)+-parseInt(_0x278f68(0x13e))/0x7+parseInt(_0x278f68(0x15a))/0x8;if(_0xa20684===_0x3aa8a6)break;else _0x447e1e['push'](_0x447e1e['shift']());}catch(_0x375794){_0x447e1e['push'](_0x447e1e['shift']());}}}(a65_0x5a62,0x4f255));import{logger}from'../../utils/logger.js';function printLogs(_0x3e12e4){const _0x31721a=a65_0x2d52;if(_0x3e12e4[_0x31721a(0x149)]===0x0){console['log'](_0x31721a(0x142));return;}console[_0x31721a(0x14b)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x3e12e4[_0x31721a(0x151)]((_0x261f7c,_0x651ac2)=>{const _0x226d4c=_0x31721a,_0x332495=new Date(_0x261f7c[_0x226d4c(0x15c)])[_0x226d4c(0x148)](_0x226d4c(0x14e)),_0x5d3a5f=_0x261f7c[_0x226d4c(0x150)]===_0x226d4c(0x15b)?'√':_0x261f7c[_0x226d4c(0x150)]==='error'?'×':_0x261f7c['level']===_0x226d4c(0x140)?'!':'i';console[_0x226d4c(0x14b)](_0x651ac2+0x1+'.\x20'+_0x5d3a5f+'\x20['+_0x261f7c['command']+']\x20'+_0x261f7c[_0x226d4c(0x13f)]),console['log'](_0x226d4c(0x146)+_0x332495),_0x261f7c['duration']&&console['log'](_0x226d4c(0x152)+_0x261f7c['duration']+'ms'),_0x261f7c['details']&&Object[_0x226d4c(0x153)](_0x261f7c[_0x226d4c(0x145)])[_0x226d4c(0x149)]>0x0&&console['log'](_0x226d4c(0x154)+JSON['stringify'](_0x261f7c['details'],null,0x2)),console[_0x226d4c(0x14b)]('');});}function a65_0x5a62(){const _0x1a9660=['forEach','\x20\x20\x20Duration:\x20','keys','\x20\x20\x20Details:\x20','logs','1078104hBYwmZ','readLogs','5bHuRgZ','436434WTipDY','7623656lGtvzN','success','timestamp','422898jbMbXg','2614108yZzhDk','message','warn','show','*\x20No\x20logs\x20found','Clear\x20command\x20history\x20logs','clear','details','\x20\x20\x20Time:\x20','2116068eUdfhf','toLocaleString','length','View\x20command\x20history\x20logs','log','read','clearLogs','en-US','1162640JSZbfN','level'];a65_0x5a62=function(){return _0x1a9660;};return a65_0x5a62();}export const logsDefinitions=[{'service':a65_0x385728(0x155),'command':a65_0x385728(0x141),'description':a65_0x385728(0x14a),'risk':a65_0x385728(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x110176){const _0x5a85dd=a65_0x385728;return printLogs(logger[_0x5a85dd(0x157)]()),{'ok':!![]};}},{'service':a65_0x385728(0x155),'command':a65_0x385728(0x144),'description':a65_0x385728(0x143),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x27e228){const _0x3dbada=a65_0x385728;return logger[_0x3dbada(0x14d)](),console['log']('*\x20Logs\x20cleared'),{'ok':!![]};}}];
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 +1 @@
1
- (function(_0x58c96b,_0x43b895){const _0x3271a6=a66_0x4246,_0x4d39a8=_0x58c96b();while(!![]){try{const _0x15ac67=-parseInt(_0x3271a6(0x1e9))/0x1+parseInt(_0x3271a6(0x1e8))/0x2*(parseInt(_0x3271a6(0x1e3))/0x3)+parseInt(_0x3271a6(0x1ea))/0x4*(parseInt(_0x3271a6(0x1e4))/0x5)+-parseInt(_0x3271a6(0x1eb))/0x6*(parseInt(_0x3271a6(0x1e5))/0x7)+-parseInt(_0x3271a6(0x1e7))/0x8+parseInt(_0x3271a6(0x1e6))/0x9+parseInt(_0x3271a6(0x1ed))/0xa*(-parseInt(_0x3271a6(0x1ec))/0xb);if(_0x15ac67===_0x43b895)break;else _0x4d39a8['push'](_0x4d39a8['shift']());}catch(_0x16d4cc){_0x4d39a8['push'](_0x4d39a8['shift']());}}}(a66_0xc53c,0x4b39b));function a66_0xc53c(){const _0x24e33c=['294310PBtJzt','1170883nEDaRW','4426200kWfVtI','1552128qeylCG','658714bggRkv','162214upFWrB','8AAfSrt','6qBQglK','11OlSVKe','1072590kMzkDl','3AHUgGa'];a66_0xc53c=function(){return _0x24e33c;};return a66_0xc53c();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a66_0x4246(_0x479c44,_0x792c7c){_0x479c44=_0x479c44-0x1e3;const _0xc53ce2=a66_0xc53c();let _0x4246f2=_0xc53ce2[_0x479c44];return _0x4246f2;}export const menuDefinitions=[menuSync,menuUpdate];
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 +1 @@
1
- (function(_0x36c28b,_0x32659d){const _0x5c917a=a67_0x1b92,_0xe1f0ee=_0x36c28b();while(!![]){try{const _0x5d0d47=parseInt(_0x5c917a(0x7b))/0x1*(parseInt(_0x5c917a(0x78))/0x2)+parseInt(_0x5c917a(0x76))/0x3+-parseInt(_0x5c917a(0x93))/0x4*(-parseInt(_0x5c917a(0x8b))/0x5)+parseInt(_0x5c917a(0x8a))/0x6*(parseInt(_0x5c917a(0x89))/0x7)+-parseInt(_0x5c917a(0x84))/0x8*(-parseInt(_0x5c917a(0x77))/0x9)+parseInt(_0x5c917a(0x85))/0xa*(parseInt(_0x5c917a(0x87))/0xb)+-parseInt(_0x5c917a(0x90))/0xc;if(_0x5d0d47===_0x32659d)break;else _0xe1f0ee['push'](_0xe1f0ee['shift']());}catch(_0xb81f53){_0xe1f0ee['push'](_0xe1f0ee['shift']());}}}(a67_0x1c40,0xefaa9));function strWidth(_0x2f6029){const _0x49b74d=a67_0x1b92;let _0x44600a=0x0;for(const _0x3d4da4 of _0x2f6029){_0x44600a+=/[\u4e00-\u9fa5]/[_0x49b74d(0x81)](_0x3d4da4)?0x2:0x1;}return _0x44600a;}function padRight(_0x21eba2,_0x55efbf){const _0x374c79=a67_0x1b92,_0x53ffcd=strWidth(_0x21eba2);return _0x21eba2+'\x20'[_0x374c79(0x86)](Math['max'](0x0,_0x55efbf-_0x53ffcd));}function a67_0x1b92(_0x53a979,_0x4cc99a){_0x53a979=_0x53a979-0x75;const _0x1c4032=a67_0x1c40();let _0x1b92cf=_0x1c4032[_0x53a979];return _0x1b92cf;}function a67_0x1c40(){const _0x275805=['8EldMZn','10ACiogQ','repeat','3008203EPbkfS','label','2069081dEDDkq','6LLDkjr','4871145nUNCdw','(unchanged)','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','max','Menu\x20Name','51622800DMfkeC','\x20\x20\x20\x20JS:\x20\x20','\x20\x20\x20\x20CSS:\x20','4TVBORb','Local','3069459NLKqKw','7888554Hcmphy','14uFVkhd','path','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','262947vMoIko','length','push','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20\x20\x20•\x20','join','test','\x20\x20Affected\x20menus:\x20','Platform'];a67_0x1c40=function(){return _0x275805;};return a67_0x1c40();}export function renderCompareTable(_0x5d67f4,_0x238efb={}){const _0x1548d2=a67_0x1b92;if(_0x5d67f4['length']===0x0)return'';const _0x2a2a4d=_0x238efb['showOnline']??!![],_0x5a2cc5=Math[_0x1548d2(0x8e)](0x1e,..._0x5d67f4['map'](_0x3f6834=>strWidth(_0x3f6834[_0x1548d2(0x88)]))),_0x6f3791=0x4,_0x7bc4fe=[],_0xe738e9='\x20\x20'+padRight(_0x1548d2(0x8f),_0x5a2cc5),_0x5c7c6=padRight(_0x1548d2(0x75),_0x6f3791),_0x48dcbb=_0x2a2a4d?'\x20\x20'+padRight(_0x1548d2(0x83),_0x6f3791):'';_0x7bc4fe[_0x1548d2(0x7d)](_0xe738e9+'\x20\x20'+_0x5c7c6+(_0x2a2a4d?_0x48dcbb:'')),_0x7bc4fe[_0x1548d2(0x7d)]('\x20\x20'+'─'[_0x1548d2(0x86)](_0x5a2cc5)+'\x20\x20'+'─'[_0x1548d2(0x86)](_0x6f3791)+(_0x2a2a4d?'\x20\x20'+'─'['repeat'](_0x6f3791):''));for(const _0x57ea3f of _0x5d67f4){const _0x545d09=padRight(_0x57ea3f[_0x1548d2(0x88)],_0x5a2cc5),_0x55cb74=_0x57ea3f['local']?'✓':'✗',_0xce2e27=padRight(_0x55cb74,_0x6f3791);let _0x2885ac='\x20\x20'+_0x545d09+'\x20\x20'+_0xce2e27;if(_0x2a2a4d){const _0x63ecd7=_0x57ea3f['online']?'✓':'✗';_0x2885ac+='\x20\x20'+padRight(_0x63ecd7,_0x6f3791);}_0x7bc4fe['push'](_0x2885ac);}return _0x7bc4fe[_0x1548d2(0x80)]('\x0a');}export function renderSyncSummary(_0x563bb4,_0x36ab9b){const _0x315542=a67_0x1b92;if(_0x563bb4[_0x315542(0x7c)]===0x0)return _0x36ab9b?_0x315542(0x7e):'\x20\x20No\x20pages\x20to\x20sync.';const _0x2a97e8=['\x20\x20'+_0x563bb4[_0x315542(0x7c)]+_0x315542(0x7a)];for(const _0x2360a7 of _0x563bb4){_0x2a97e8[_0x315542(0x7d)](_0x315542(0x7f)+_0x2360a7[_0x315542(0x88)]+'\x20('+_0x2360a7[_0x315542(0x79)]+')');}return _0x2a97e8[_0x315542(0x80)]('\x0a');}export function renderUpdateSummary(_0x5acc72,_0x578a00){const _0x49e72b=a67_0x1b92;if(_0x5acc72[_0x49e72b(0x7c)]===0x0)return _0x49e72b(0x8d);const _0x56f8d3=['\x20\x20'+_0x5acc72[_0x49e72b(0x7c)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x49e72b(0x91)+(_0x578a00[0x0]??_0x49e72b(0x8c)),_0x49e72b(0x92)+(_0x578a00[0x1]??'(unchanged)'),'',_0x49e72b(0x82)+_0x5acc72[_0x49e72b(0x80)](',\x20')];return _0x56f8d3[_0x49e72b(0x80)]('\x0a');}
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 +1 @@
1
- (function(_0xb46018,_0x5840bd){var _0x3f7018=a68_0xe124,_0x4a69a6=_0xb46018();while(!![]){try{var _0xfe340f=-parseInt(_0x3f7018(0x152))/0x1*(-parseInt(_0x3f7018(0x14f))/0x2)+-parseInt(_0x3f7018(0x14e))/0x3+-parseInt(_0x3f7018(0x14c))/0x4+-parseInt(_0x3f7018(0x14a))/0x5+-parseInt(_0x3f7018(0x14d))/0x6+-parseInt(_0x3f7018(0x150))/0x7*(parseInt(_0x3f7018(0x14b))/0x8)+parseInt(_0x3f7018(0x151))/0x9;if(_0xfe340f===_0x5840bd)break;else _0x4a69a6['push'](_0x4a69a6['shift']());}catch(_0x4a7b92){_0x4a69a6['push'](_0x4a69a6['shift']());}}}(a68_0x1de3,0x70a9f));export*from'../../../commands/menu/shared/types.js';function a68_0x1de3(){var _0x1328b0=['4771524prGJPM','1164237mKljch','620668cEyrWL','26740fIjPDj','19294389rpOrEG','2djIJwT','1400610NFLIVv','408stCMSw','2578972vuTHgB'];a68_0x1de3=function(){return _0x1328b0;};return a68_0x1de3();}export*from'../../../commands/menu/shared/logic.js';function a68_0xe124(_0x5bd29d,_0x1aebf6){_0x5bd29d=_0x5bd29d-0x14a;var _0x1de33f=a68_0x1de3();var _0xe1247e=_0x1de33f[_0x5bd29d];return _0xe1247e;}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';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
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 +1 @@
1
- (function(_0x4af754,_0x337a22){const _0x49a00f=a69_0x25ed,_0x2a7a58=_0x4af754();while(!![]){try{const _0x5f5932=-parseInt(_0x49a00f(0x1d7))/0x1+-parseInt(_0x49a00f(0x1cb))/0x2+-parseInt(_0x49a00f(0x1c1))/0x3*(parseInt(_0x49a00f(0x1c6))/0x4)+-parseInt(_0x49a00f(0x1e6))/0x5+-parseInt(_0x49a00f(0x1c3))/0x6+parseInt(_0x49a00f(0x1d5))/0x7+-parseInt(_0x49a00f(0x1bf))/0x8*(-parseInt(_0x49a00f(0x1c5))/0x9);if(_0x5f5932===_0x337a22)break;else _0x2a7a58['push'](_0x2a7a58['shift']());}catch(_0x334145){_0x2a7a58['push'](_0x2a7a58['shift']());}}}(a69_0x3d97,0xe728c));import a69_0x336730 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a69_0x21a94d from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0xaae84b){const _0x1a82d7=a69_0x25ed;return _0xaae84b[_0x1a82d7(0x1c0)](_0x594ef2=>{const _0x211fab=_0x1a82d7;if(_0x594ef2?.[_0x211fab(0x1dd)]===_0x211fab(0x1e5))throw CliErrors['cancelled'](_0x211fab(0x1c7));throw _0x594ef2;});}function a69_0x25ed(_0x5e3115,_0x68be32){_0x5e3115=_0x5e3115-0x1bd;const _0x3d972c=a69_0x3d97();let _0x25edbb=_0x3d972c[_0x5e3115];return _0x25edbb;}export function startSpinner(_0x13741b){const _0x2ee0fa=a69_0x25ed;return a69_0x21a94d({'text':_0x13741b,'color':_0x2ee0fa(0x1ce)})[_0x2ee0fa(0x1be)]();}export function stopSpinner(_0x25302a,_0x13a836,_0x4966e8){const _0x5cc9aa=a69_0x25ed;_0x4966e8?_0x25302a[_0x5cc9aa(0x1da)](_0x13a836):_0x25302a[_0x5cc9aa(0x1d1)](_0x13a836);}export async function askConfirm(_0x15f36e){return onCancel(confirm({'message':_0x15f36e,'theme':{'prefix':''}}));}export async function askJsUrl(_0x377a96){const _0x4460e3=a69_0x25ed;while(!![]){const _0x3fa865=await onCancel(input({'message':_0x4460e3(0x1e2),'default':_0x377a96,'theme':{'prefix':''}}));if(_0x3fa865[_0x4460e3(0x1d2)]()==='')throw CliErrors[_0x4460e3(0x1d4)](_0x4460e3(0x1c7));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x4460e3(0x1cd)](_0x3fa865[_0x4460e3(0x1d2)]())){console[_0x4460e3(0x1e7)](a69_0x336730[_0x4460e3(0x1e3)](_0x4460e3(0x1c4)));continue;}const _0x5e3454=startSpinner(_0x4460e3(0x1c8));try{const _0x41d72e=await isUrlReachable(_0x3fa865[_0x4460e3(0x1d2)]());stopSpinner(_0x5e3454,'JS\x20URL\x20checked',_0x41d72e);if(!_0x41d72e){console[_0x4460e3(0x1e7)](a69_0x336730['red'](_0x4460e3(0x1d3)));continue;}return _0x3fa865['trim']();}catch(_0x51453f){stopSpinner(_0x5e3454,_0x4460e3(0x1e8),![]);throw _0x51453f;}}}export async function askCssUrl(_0x4c818f){const _0x4c8fde=a69_0x25ed;while(!![]){const _0x4ce72c=await onCancel(input({'message':_0x4c8fde(0x1d9),'default':_0x4c818f,'theme':{'prefix':''}}));if(_0x4ce72c[_0x4c8fde(0x1d2)]()==='')throw CliErrors[_0x4c8fde(0x1d4)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4c8fde(0x1cd)](_0x4ce72c[_0x4c8fde(0x1d2)]())){console[_0x4c8fde(0x1e7)](a69_0x336730[_0x4c8fde(0x1e3)](_0x4c8fde(0x1ea)));continue;}const _0x478054=startSpinner(_0x4c8fde(0x1d6));try{const _0x11abf0=await isUrlReachable(_0x4ce72c['trim']());stopSpinner(_0x478054,_0x4c8fde(0x1eb),_0x11abf0);if(!_0x11abf0){console['error'](a69_0x336730[_0x4c8fde(0x1e3)](_0x4c8fde(0x1e1)));continue;}return _0x4ce72c[_0x4c8fde(0x1d2)]();}catch(_0x365071){stopSpinner(_0x478054,_0x4c8fde(0x1e4),![]);throw _0x365071;}}}export async function selectPages(_0x59ac5e,_0x1fbd89,_0x6389d4){const _0x1c0b5=a69_0x25ed,_0x4342e9=_0x59ac5e['map'](_0x5819c4=>({'name':_0x5819c4[_0x1c0b5(0x1e0)]+'\x20\x20'+(_0x1fbd89[_0x1c0b5(0x1bd)](_0x5819c4['path'])?a69_0x336730[_0x1c0b5(0x1d8)](_0x1c0b5(0x1c9)):a69_0x336730[_0x1c0b5(0x1db)](_0x1c0b5(0x1de))),'value':_0x5819c4[_0x1c0b5(0x1e0)],'checked':_0x6389d4?_0x6389d4[_0x1c0b5(0x1df)](_0x5819c4[_0x1c0b5(0x1e0)]):!_0x1fbd89['has'](_0x5819c4[_0x1c0b5(0x1cf)])}));if(_0x4342e9[_0x1c0b5(0x1d0)]===0x0)throw new Error(_0x1c0b5(0x1cc));const _0x36c4db=await onCancel(checkbox({'message':_0x1c0b5(0x1ca),'choices':_0x4342e9,'loop':![],'theme':{'prefix':''}}));if(_0x36c4db['length']===0x0)throw new Error(_0x1c0b5(0x1dc));return _0x59ac5e[_0x1c0b5(0x1c2)](_0x7518d6=>_0x36c4db[_0x1c0b5(0x1df)](_0x7518d6[_0x1c0b5(0x1e0)]));}function a69_0x3d97(){const _0x3c6dd6=['catch','120CnmANH','filter','2242506ZuhDWW','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','41735637VpljOo','3028XXXLMu','Cancelled.','\x20\x20Checking\x20JS\x20URL\x20reachability...','[already\x20on\x20platform]','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','3528674WuHVOi','No\x20local\x20pages\x20found.','test','cyan','path','length','fail','trim','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','cancelled','2502451RfwRcG','\x20\x20Checking\x20CSS\x20URL\x20reachability...','717190dVSJEV','gray','\x20\x20CSS\x20URL:','succeed','green','No\x20menus\x20selected.','name','[new]','includes','label','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','red','CSS\x20URL\x20check\x20failed','ExitPromptError','5812000nuVitE','error','JS\x20URL\x20check\x20failed','stdin','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','CSS\x20URL\x20checked','has','start','8FWYJJh'];a69_0x3d97=function(){return _0x3c6dd6;};return a69_0x3d97();}export function isInteractive(){const _0x137c10=a69_0x25ed;return process[_0x137c10(0x1e9)]['isTTY']===!![];}export function requireInteractive(){if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
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 +1 @@
1
- const a70_0x4f63eb=a70_0x5aca;(function(_0xdb6e04,_0x599bcf){const _0xf0859c=a70_0x5aca,_0x49ba3b=_0xdb6e04();while(!![]){try{const _0x30a054=-parseInt(_0xf0859c(0x7c))/0x1*(parseInt(_0xf0859c(0x7b))/0x2)+-parseInt(_0xf0859c(0x6e))/0x3*(parseInt(_0xf0859c(0x70))/0x4)+parseInt(_0xf0859c(0x72))/0x5*(-parseInt(_0xf0859c(0x7f))/0x6)+parseInt(_0xf0859c(0x71))/0x7+parseInt(_0xf0859c(0x77))/0x8*(-parseInt(_0xf0859c(0x75))/0x9)+parseInt(_0xf0859c(0x6f))/0xa+parseInt(_0xf0859c(0x85))/0xb;if(_0x30a054===_0x599bcf)break;else _0x49ba3b['push'](_0x49ba3b['shift']());}catch(_0x25ae94){_0x49ba3b['push'](_0x49ba3b['shift']());}}}(a70_0x3418,0xebbd7));import{readdirSync,statSync,readFileSync}from'fs';function a70_0x5aca(_0x2d6f06,_0x2fc2bc){_0x2d6f06=_0x2d6f06-0x6a;const _0x34181b=a70_0x3418();let _0x5aca8d=_0x34181b[_0x2d6f06];return _0x5aca8d;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a70_0x4f63eb(0x81)](),a70_0x4f63eb(0x7d));function a70_0x3418(){const _0x5a8f7a=['9021880brFAcK','609572OwXkcw','4205054CmTFdS','586205NqqMmg','path','forEach','144iwFRfo','join','867304XSmjCA','replaceAll','concat','split','687298gqzoBG','4DTpaiU','src/pages','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','66YwPNPx','trim','cwd','.tsx','filter','endsWith','44153219FOnLpx','match','utf-8','index.tsx','replace','3lsTXvx'];a70_0x3418=function(){return _0x5a8f7a;};return a70_0x3418();}export function extractTitleFromComment(_0x50e3de){const _0x164985=a70_0x4f63eb;try{const _0x2ab7f7=readFileSync(_0x50e3de,_0x164985(0x6b)),_0x489e1f=_0x2ab7f7[_0x164985(0x6a)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x489e1f&&_0x489e1f[0x1]){const _0x267dca=_0x489e1f[0x1],_0x74a036=_0x267dca[_0x164985(0x6a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x74a036&&_0x74a036[0x1])return _0x74a036[0x1][_0x164985(0x80)]();}let _0x3612ba=null;const _0x17f53c=_0x2ab7f7[_0x164985(0x6a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x17f53c&&_0x17f53c[0x1]&&(_0x3612ba=_0x17f53c[0x1]);if(!_0x3612ba){const _0x1f6ea5=_0x2ab7f7[_0x164985(0x6a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1f6ea5&&_0x1f6ea5[0x1]&&(_0x3612ba=_0x1f6ea5[0x1]);}if(_0x3612ba){const _0x384a19=new RegExp('\x5cb'+_0x3612ba+_0x164985(0x7e)),_0x11979f=_0x2ab7f7[_0x164985(0x6a)](_0x384a19);if(_0x11979f&&_0x11979f[0x1])return _0x11979f[0x1];return _0x3612ba;}return null;}catch(_0x54e33f){return null;}}export function getLocalPages(_0x49f2da=pagesDir,_0x9b3ac3=pagesDir){const _0x15a2c1=a70_0x4f63eb;let _0x7dd58c=[];const _0x32efbe=readdirSync(_0x49f2da);return _0x32efbe[_0x15a2c1(0x74)](_0x402387=>{const _0x11964b=_0x15a2c1,_0x4ac86d=join(_0x49f2da,_0x402387),_0x20df3b=statSync(_0x4ac86d);if(_0x20df3b&&_0x20df3b['isDirectory']())_0x7dd58c=_0x7dd58c[_0x11964b(0x79)](getLocalPages(_0x4ac86d,_0x9b3ac3));else{if(_0x402387[_0x11964b(0x84)](_0x11964b(0x82))){let _0x45bc56=relative(_0x9b3ac3,_0x4ac86d);_0x45bc56[_0x11964b(0x84)](_0x11964b(0x6c))?_0x45bc56=_0x45bc56['replace'](/index\.tsx$/,''):_0x45bc56=_0x45bc56[_0x11964b(0x6d)](/\.tsx$/,'');_0x45bc56['endsWith'](sep)&&(_0x45bc56=_0x45bc56['slice'](0x0,-0x1));const _0x3db1b9=_0x45bc56[_0x11964b(0x7a)](sep)[_0x11964b(0x76)]('/'),_0x2c1ee0=extractTitleFromComment(_0x4ac86d),_0x2c033b=_0x2c1ee0||_0x3db1b9;_0x7dd58c['push']({'path':_0x3db1b9[_0x11964b(0x78)]('$',':'),'label':_0x2c033b});}}}),_0x7dd58c[_0x15a2c1(0x83)](_0x2264b9=>_0x2264b9[_0x15a2c1(0x73)]!=='');}
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']!=='');}