@lovrabet/rabetbase-cli 2.1.1-beta.0 → 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_0x33ea26=a53_0x36bc;(function(_0x966e4b,_0x21bb50){const _0x3871ba=a53_0x36bc,_0x5887e2=_0x966e4b();while(!![]){try{const _0x3db9c2=-parseInt(_0x3871ba(0x14e))/0x1+parseInt(_0x3871ba(0x159))/0x2*(parseInt(_0x3871ba(0x168))/0x3)+parseInt(_0x3871ba(0x151))/0x4+parseInt(_0x3871ba(0x15f))/0x5+-parseInt(_0x3871ba(0x176))/0x6+-parseInt(_0x3871ba(0x14b))/0x7+parseInt(_0x3871ba(0x15b))/0x8;if(_0x3db9c2===_0x21bb50)break;else _0x5887e2['push'](_0x5887e2['shift']());}catch(_0x50a768){_0x5887e2['push'](_0x5887e2['shift']());}}}(a53_0x17b3,0x302e2));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a53_0x36bc(_0x3d7ce7,_0x43fe9b){_0x3d7ce7=_0x3d7ce7-0x149;const _0x17b3b1=a53_0x17b3();let _0x36bc10=_0x17b3b1[_0x3d7ce7];return _0x36bc10;}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a53_0x17b3(){const _0x340538=['username','boolean','password','2398ZrTDIa','message','3197520gcbSJw',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','appCode','No\x20follow-up\x20analysis','454430mkxoWy','autostart','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbname','join','[redacted]','dburl','compress','write','687gfFSmh','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','8.0','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbtype','create','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','/smartapi/dblink/create','Database\x20username','bool','\x20and\x20started\x20analysis','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','POST','2011134XzVZKc','dbdesc','dbversion','Human-readable\x20description','2262834zitmLq','string','Create\x20dblink','216400qwqoKB','dbparam','str','1228200bxwFto','trim','Host\x20and\x20port:\x20host:port','Created\x20db\x20link\x20','validation'];a53_0x17b3=function(){return _0x340538;};return a53_0x17b3();}export const dbCreate={'service':'db','command':a53_0x33ea26(0x16d),'description':a53_0x33ea26(0x174),'risk':a53_0x33ea26(0x167),'defaultOutputFormat':a53_0x33ea26(0x166),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a53_0x33ea26(0x162),'type':a53_0x33ea26(0x14c),'required':!![],'description':a53_0x33ea26(0x16b)},DB_TYPE_FLAG,{'name':a53_0x33ea26(0x149),'type':a53_0x33ea26(0x14c),'description':a53_0x33ea26(0x16e),'default':a53_0x33ea26(0x16a)},{'name':'dburl','type':'string','required':!![],'description':a53_0x33ea26(0x153)},{'name':a53_0x33ea26(0x156),'type':a53_0x33ea26(0x14c),'required':!![],'description':a53_0x33ea26(0x170)},{'name':a53_0x33ea26(0x158),'type':'string','required':!![],'description':'Database\x20password'},{'name':a53_0x33ea26(0x14f),'type':a53_0x33ea26(0x14c),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a53_0x33ea26(0x177),'type':'string','description':a53_0x33ea26(0x14a)},{'name':a53_0x33ea26(0x160),'type':a53_0x33ea26(0x157),'description':'After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','default':![]}],async 'validate'(_0x172743){const _0x401802=a53_0x33ea26,_0x3e656f=_0x172743[_0x401802(0x150)]('dburl')['trim']();if(!validateDbUrl(_0x3e656f))throw CliErrors[_0x401802(0x155)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3e656f+'\x22',_0x401802(0x173));},async 'dryRun'(_0x455de5){const _0x2c3469=a53_0x33ea26,_0x334aec={'appCode':_0x455de5['appCode'],'dbName':_0x455de5[_0x2c3469(0x150)](_0x2c3469(0x162)),'dbType':_0x455de5[_0x2c3469(0x150)](_0x2c3469(0x16c)),'dbVersion':_0x455de5[_0x2c3469(0x150)]('dbversion')||'8.0','dbUrl':_0x455de5['str']('dburl')[_0x2c3469(0x152)](),'username':_0x455de5[_0x2c3469(0x150)]('username'),'password':_0x2c3469(0x164),..._0x455de5['str'](_0x2c3469(0x14f))?{'dbParam':_0x455de5[_0x2c3469(0x150)]('dbparam')}:{},..._0x455de5[_0x2c3469(0x150)](_0x2c3469(0x177))?{'dbDesc':_0x455de5[_0x2c3469(0x150)](_0x2c3469(0x177))}:{}};return{'method':_0x2c3469(0x175),'url':_0x2c3469(0x16f),'body':_0x334aec,'description':[_0x2c3469(0x14d),_0x455de5[_0x2c3469(0x171)](_0x2c3469(0x160))?_0x2c3469(0x161):_0x2c3469(0x15e)][_0x2c3469(0x163)]('\x0a')};},async 'execute'(_0x1e5e50){const _0x22da56=a53_0x33ea26,_0x248540={'appCode':_0x1e5e50[_0x22da56(0x15d)],'dbName':_0x1e5e50[_0x22da56(0x150)]('dbname'),'dbType':_0x1e5e50['str'](_0x22da56(0x16c)),'dbVersion':_0x1e5e50[_0x22da56(0x150)](_0x22da56(0x149))||_0x22da56(0x16a),'dbUrl':_0x1e5e50[_0x22da56(0x150)](_0x22da56(0x165))['trim'](),'username':_0x1e5e50['str'](_0x22da56(0x156)),'password':_0x1e5e50[_0x22da56(0x150)](_0x22da56(0x158)),..._0x1e5e50[_0x22da56(0x150)](_0x22da56(0x14f))?{'dbParam':_0x1e5e50[_0x22da56(0x150)](_0x22da56(0x14f))}:{},..._0x1e5e50[_0x22da56(0x150)](_0x22da56(0x177))?{'dbDesc':_0x1e5e50[_0x22da56(0x150)](_0x22da56(0x177))}:{}},_0x2101c1=await createDbLink(_0x248540),_0x4b6fc6=_0x2101c1['id'];if(!_0x4b6fc6)return{'ok':![],'message':_0x22da56(0x169),'data':sanitizeDbLinkForOutput(_0x2101c1)};let _0xb861c1,_0x5b5cc6;if(_0x1e5e50[_0x22da56(0x171)](_0x22da56(0x160)))try{_0xb861c1=await startDbAnalysis(_0x4b6fc6);}catch(_0x1dfce4){_0x5b5cc6=_0x1dfce4 instanceof Error?_0x1dfce4[_0x22da56(0x15a)]:String(_0x1dfce4);}const _0x1ff963={'connection':sanitizeDbLinkForOutput(_0x2101c1),..._0xb861c1?{'analysisPlanId':_0xb861c1}:{},..._0x5b5cc6?{'analysisStartWarning':_0x5b5cc6}:{}};let _0x3bf9df;return _0x1e5e50[_0x22da56(0x171)](_0x22da56(0x160))?_0x5b5cc6?_0x3bf9df='Created\x20db\x20link\x20'+_0x4b6fc6+_0x22da56(0x15c):_0x3bf9df='Created\x20db\x20link\x20'+_0x4b6fc6+_0x22da56(0x172):_0x3bf9df=_0x22da56(0x154)+_0x4b6fc6,{'ok':!![],'data':_0x1ff963,'message':_0x3bf9df};}};
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
- function a54_0x5ecf(_0x543dfc,_0x49362b){_0x543dfc=_0x543dfc-0xff;const _0x2481e7=a54_0x2481();let _0x5ecf12=_0x2481e7[_0x543dfc];return _0x5ecf12;}const a54_0x4405c6=a54_0x5ecf;function a54_0x2481(){const _0x2629cd=['high-risk-write','598848ystYlP','279676vSqvxj','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','Deleted\x20db\x20link\x20','9732928CbIjam','441NDdLhr','3289220CaxKvE','25oeIpZJ','214810qJngnZ','369394WrGNFZ','14psiasY','790466FYmWaR','6LVUcBi','compress','delete'];a54_0x2481=function(){return _0x2629cd;};return a54_0x2481();}(function(_0x390a46,_0x58ba0b){const _0x92aa5b=a54_0x5ecf,_0x5fbcc=_0x390a46();while(!![]){try{const _0x4d65a8=parseInt(_0x92aa5b(0x104))/0x1+-parseInt(_0x92aa5b(0x102))/0x2*(parseInt(_0x92aa5b(0x105))/0x3)+parseInt(_0x92aa5b(0x10a))/0x4*(-parseInt(_0x92aa5b(0x100))/0x5)+parseInt(_0x92aa5b(0x109))/0x6*(parseInt(_0x92aa5b(0x103))/0x7)+parseInt(_0x92aa5b(0x10d))/0x8+-parseInt(_0x92aa5b(0x10e))/0x9*(parseInt(_0x92aa5b(0x101))/0xa)+parseInt(_0x92aa5b(0xff))/0xb;if(_0x4d65a8===_0x58ba0b)break;else _0x5fbcc['push'](_0x5fbcc['shift']());}catch(_0x46c419){_0x5fbcc['push'](_0x5fbcc['shift']());}}}(a54_0x2481,0xb33d0));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_0x4405c6(0x107),'description':a54_0x4405c6(0x10b),'risk':a54_0x4405c6(0x108),'defaultOutputFormat':a54_0x4405c6(0x106),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x295358){const _0x4d02ff=a54_0x4405c6,_0x89b44d=_0x295358['num']('id');return await deleteDbLink(_0x89b44d),{'ok':!![],'data':{'id':_0x89b44d,'deleted':!![]},'message':_0x4d02ff(0x10c)+_0x89b44d};}};
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_0x3db425=a55_0x3b38;function a55_0x1e24(){const _0x1aac1b=['10WyNMSf','2074138VrgqcP','detail','num','65kSbaMH','4TCpORi','2189070TwGoBZ','db\x20link\x20','8qWIIAv','4546759VrnhTG','3062052lYLFUI','1382184gHWNYX','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','388996nqndFL','compress','dbName','100428cIqzlS'];a55_0x1e24=function(){return _0x1aac1b;};return a55_0x1e24();}(function(_0x2e9dc9,_0x2c310e){const _0x39b181=a55_0x3b38,_0x35f0a6=_0x2e9dc9();while(!![]){try{const _0x24343b=parseInt(_0x39b181(0x18e))/0x1*(-parseInt(_0x39b181(0x186))/0x2)+-parseInt(_0x39b181(0x18c))/0x3+parseInt(_0x39b181(0x18b))/0x4+-parseInt(_0x39b181(0x185))/0x5*(parseInt(_0x39b181(0x180))/0x6)+parseInt(_0x39b181(0x18a))/0x7+parseInt(_0x39b181(0x189))/0x8*(parseInt(_0x39b181(0x187))/0x9)+-parseInt(_0x39b181(0x181))/0xa*(-parseInt(_0x39b181(0x182))/0xb);if(_0x24343b===_0x2c310e)break;else _0x35f0a6['push'](_0x35f0a6['shift']());}catch(_0x223ba1){_0x35f0a6['push'](_0x35f0a6['shift']());}}}(a55_0x1e24,0x5f57c));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';function a55_0x3b38(_0x161932,_0x1f116e){_0x161932=_0x161932-0x17e;const _0x1e2497=a55_0x1e24();let _0x3b3896=_0x1e2497[_0x161932];return _0x3b3896;}export const dbDetail={'service':'db','command':a55_0x3db425(0x183),'description':a55_0x3db425(0x18d),'risk':'read','defaultOutputFormat':a55_0x3db425(0x17e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x25157f){const _0xc6599b=a55_0x3db425,_0x4a788d=_0x25157f[_0xc6599b(0x184)]('id'),_0x155f7a=await getDbLinkInfo(_0x4a788d);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x155f7a),'message':_0xc6599b(0x188)+_0x4a788d+':\x20'+_0x155f7a[_0xc6599b(0x17f)]};}};
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_0x5334cc=a56_0x4dee;(function(_0x1855e9,_0x1de0a6){const _0x2997f4=a56_0x4dee,_0x2e5ec5=_0x1855e9();while(!![]){try{const _0xf064b5=parseInt(_0x2997f4(0x170))/0x1+-parseInt(_0x2997f4(0x177))/0x2+parseInt(_0x2997f4(0x16f))/0x3+parseInt(_0x2997f4(0x166))/0x4+-parseInt(_0x2997f4(0x167))/0x5*(parseInt(_0x2997f4(0x16c))/0x6)+-parseInt(_0x2997f4(0x16e))/0x7+-parseInt(_0x2997f4(0x175))/0x8;if(_0xf064b5===_0x1de0a6)break;else _0x2e5ec5['push'](_0x2e5ec5['shift']());}catch(_0x20141b){_0x2e5ec5['push'](_0x2e5ec5['shift']());}}}(a56_0x5242,0x61103));function a56_0x5242(){const _0x4e4f90=['Page\x20size','Page\x20index\x20(1-based)','2888556nFgQjy','29990VJRNae','num','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','\x20(db\x20link\x20','page','186xWCRzU','length','3906700KwERKa','2287728vCbaCI','469293pMrejc','number','table','appCode','pagesize','6002640xHqRWD','read','124138DttxnB','compress','string'];a56_0x5242=function(){return _0x4e4f90;};return a56_0x5242();}function a56_0x4dee(_0x124027,_0x268ce8){_0x124027=_0x124027-0x166;const _0x5242f2=a56_0x5242();let _0x4dee66=_0x5242f2[_0x124027];return _0x4dee66;}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':'diff','description':a56_0x5334cc(0x169),'risk':a56_0x5334cc(0x176),'defaultOutputFormat':a56_0x5334cc(0x178),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a56_0x5334cc(0x172),'type':a56_0x5334cc(0x179),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a56_0x5334cc(0x16b),'type':a56_0x5334cc(0x171),'description':a56_0x5334cc(0x17b),'default':0x1},{'name':a56_0x5334cc(0x174),'type':a56_0x5334cc(0x171),'description':a56_0x5334cc(0x17a),'default':0x14}],async 'execute'(_0x5d4c46){const _0x52ed10=a56_0x5334cc,_0x56a221=_0x5d4c46[_0x52ed10(0x168)]('id'),_0x4f8058=_0x5d4c46[_0x52ed10(0x168)](_0x52ed10(0x16b),0x1)||0x1,_0x1d5e18=_0x5d4c46[_0x52ed10(0x168)](_0x52ed10(0x174),0x14)||0x14,_0xdd4e37=_0x5d4c46['str'](_0x52ed10(0x172))||undefined,{totalCount:_0x2de75c,tableList:_0x454bf3}=await getDbTableDiff(_0x5d4c46[_0x52ed10(0x173)],_0x56a221,{'pageIndex':_0x4f8058,'pageSize':_0x1d5e18,'tableName':_0xdd4e37});return{'ok':!![],'data':{'dbLinkId':_0x56a221,'page':_0x4f8058,'pageSize':_0x1d5e18,'totalCount':_0x2de75c,'tableList':_0x454bf3},'message':_0x454bf3[_0x52ed10(0x16d)]+'\x20row(s),\x20total\x20'+_0x2de75c+_0x52ed10(0x16a)+_0x56a221+')'};}};
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(_0x3bb7e1,_0x4b8055){const _0x3d73f2=a57_0x1fe7,_0x1dec7f=_0x3bb7e1();while(!![]){try{const _0x2db616=-parseInt(_0x3d73f2(0x1d0))/0x1*(-parseInt(_0x3d73f2(0x1d6))/0x2)+-parseInt(_0x3d73f2(0x1d7))/0x3*(parseInt(_0x3d73f2(0x1d4))/0x4)+-parseInt(_0x3d73f2(0x1d1))/0x5*(parseInt(_0x3d73f2(0x1cf))/0x6)+-parseInt(_0x3d73f2(0x1ce))/0x7*(-parseInt(_0x3d73f2(0x1cd))/0x8)+parseInt(_0x3d73f2(0x1d2))/0x9*(-parseInt(_0x3d73f2(0x1cc))/0xa)+-parseInt(_0x3d73f2(0x1cb))/0xb+parseInt(_0x3d73f2(0x1d3))/0xc*(parseInt(_0x3d73f2(0x1d5))/0xd);if(_0x2db616===_0x4b8055)break;else _0x1dec7f['push'](_0x1dec7f['shift']());}catch(_0x32f042){_0x1dec7f['push'](_0x1dec7f['shift']());}}}(a57_0x457d,0xdc151));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';function a57_0x1fe7(_0x377f04,_0x5d39b3){_0x377f04=_0x377f04-0x1cb;const _0x457d5f=a57_0x457d();let _0x1fe732=_0x457d5f[_0x377f04];return _0x1fe732;}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];function a57_0x457d(){const _0x5e0974=['16933hLnLjJ','10VtETew','45nxKxCe','269316QlqglB','104836hOYzUQ','2015jAMSln','116jUNqgJ','66EibcBN','11804430MUPuzY','3120050lTDpiQ','10952lxXxPx','2387DdQWJn','2449194Puuzff'];a57_0x457d=function(){return _0x5e0974;};return a57_0x457d();}
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_0x940d16=a58_0x1e71;(function(_0x2f2e9b,_0x416435){const _0x193e30=a58_0x1e71,_0x365bf5=_0x2f2e9b();while(!![]){try{const _0x418ad8=parseInt(_0x193e30(0x1cb))/0x1*(-parseInt(_0x193e30(0x1cf))/0x2)+-parseInt(_0x193e30(0x1cc))/0x3+-parseInt(_0x193e30(0x1cd))/0x4+parseInt(_0x193e30(0x1ce))/0x5*(-parseInt(_0x193e30(0x1df))/0x6)+-parseInt(_0x193e30(0x1dc))/0x7*(parseInt(_0x193e30(0x1c7))/0x8)+parseInt(_0x193e30(0x1d3))/0x9*(parseInt(_0x193e30(0x1ca))/0xa)+-parseInt(_0x193e30(0x1d4))/0xb*(-parseInt(_0x193e30(0x1db))/0xc);if(_0x418ad8===_0x416435)break;else _0x365bf5['push'](_0x365bf5['shift']());}catch(_0x99bfaf){_0x365bf5['push'](_0x365bf5['shift']());}}}(a58_0x3246,0x93ae2));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a58_0x3246(){const _0x408d04=['4700972ouGypW','5YZLTfw','46rxxRne','length','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','appCode','272583tSklLE','124795DdJntS','number','list','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','num','read','Page\x20index\x20(1-based)','3972cmwmNa','252rljMSo','Found\x20','\x20database\x20connection(s)','2549982dbLWes','Page\x20size','pagesize','229016tnPPbY','compress','page','350fsjTLM','39662TRkuRI','2001912QNkDvb'];a58_0x3246=function(){return _0x408d04;};return a58_0x3246();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a58_0x1e71(_0x4f745f,_0x3ddaf2){_0x4f745f=_0x4f745f-0x1c7;const _0x3246cc=a58_0x3246();let _0x1e711f=_0x3246cc[_0x4f745f];return _0x1e711f;}export const dbList={'service':'db','command':a58_0x940d16(0x1d6),'description':a58_0x940d16(0x1d7),'risk':a58_0x940d16(0x1d9),'defaultOutputFormat':a58_0x940d16(0x1c8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a58_0x940d16(0x1c9),'type':a58_0x940d16(0x1d5),'description':a58_0x940d16(0x1da),'default':0x1},{'name':a58_0x940d16(0x1e1),'type':a58_0x940d16(0x1d5),'description':a58_0x940d16(0x1e0),'default':0x64}],async 'execute'(_0x3fd8ed){const _0xebc30=a58_0x940d16,_0x2c60f4=_0x3fd8ed[_0xebc30(0x1d8)](_0xebc30(0x1c9),0x1)||0x1,_0xdd9679=_0x3fd8ed[_0xebc30(0x1d8)](_0xebc30(0x1e1),0x64)||0x64,{items:_0x61196f,paging:_0x1bab7e}=await listDbLinks(_0x3fd8ed[_0xebc30(0x1d2)],{'currentPage':_0x2c60f4,'pageSize':_0xdd9679}),_0x52f447=sanitizeDbLinkList(_0x61196f),_0x475001=_0x1bab7e?_0x1bab7e:{'currentPage':_0x2c60f4,'pageSize':_0xdd9679,'rowsOnPage':_0x52f447[_0xebc30(0x1d0)],'totalCount':null,'note':_0xebc30(0x1d1)};return{'ok':!![],'data':{'connections':_0x52f447,'paging':_0x475001},'message':_0xebc30(0x1dd)+_0x52f447[_0xebc30(0x1d0)]+_0xebc30(0x1de)};}};
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(_0x35c812,_0x305e00){const _0x5c0ad0=a59_0x358f,_0x1f6f10=_0x35c812();while(!![]){try{const _0xd6b31d=-parseInt(_0x5c0ad0(0x138))/0x1+-parseInt(_0x5c0ad0(0x12c))/0x2*(parseInt(_0x5c0ad0(0x13b))/0x3)+-parseInt(_0x5c0ad0(0x132))/0x4*(parseInt(_0x5c0ad0(0x140))/0x5)+-parseInt(_0x5c0ad0(0x12e))/0x6+parseInt(_0x5c0ad0(0x12f))/0x7*(-parseInt(_0x5c0ad0(0x13c))/0x8)+-parseInt(_0x5c0ad0(0x133))/0x9*(-parseInt(_0x5c0ad0(0x134))/0xa)+parseInt(_0x5c0ad0(0x136))/0xb;if(_0xd6b31d===_0x305e00)break;else _0x1f6f10['push'](_0x1f6f10['shift']());}catch(_0x4dde36){_0x1f6f10['push'](_0x1f6f10['shift']());}}}(a59_0x284a,0xca3f8));function shouldRedactKey(_0x1f99ce){const _0x5cb664=a59_0x358f,_0x2e58a6=_0x1f99ce[_0x5cb664(0x13d)]();if(_0x2e58a6===_0x5cb664(0x12b)||_0x2e58a6==='passwd'||_0x2e58a6==='dbpassword')return!![];if(_0x2e58a6[_0x5cb664(0x137)]('secret')||_0x2e58a6[_0x5cb664(0x137)](_0x5cb664(0x12d))||_0x2e58a6['includes']('credential'))return!![];if(_0x2e58a6[_0x5cb664(0x137)](_0x5cb664(0x13f))||_0x2e58a6['includes'](_0x5cb664(0x13e)))return!![];if(_0x2e58a6===_0x5cb664(0x13a)||_0x2e58a6===_0x5cb664(0x12a)||_0x2e58a6===_0x5cb664(0x139))return!![];return![];}function a59_0x358f(_0xa53595,_0x3eba3f){_0xa53595=_0xa53595-0x129;const _0x284a91=a59_0x284a();let _0x358f46=_0x284a91[_0xa53595];return _0x358f46;}export function sanitizeDbLinkForOutput(_0x4b82ad){const _0x5c0f83=a59_0x358f,_0x4c4a9f={..._0x4b82ad};for(const _0x22a318 of Object[_0x5c0f83(0x129)](_0x4c4a9f)){if(!shouldRedactKey(_0x22a318))continue;const _0x1f3944=_0x4c4a9f[_0x22a318];_0x1f3944!=null&&String(_0x1f3944)[_0x5c0f83(0x135)]>0x0&&(_0x4c4a9f[_0x22a318]=_0x5c0f83(0x131));}return _0x4c4a9f;}function a59_0x284a(){const _0x72d019=['trim','[redacted]','127652alGSon','11222973CCmknO','10LKSQWC','length','50187951OoearO','includes','1572702FdTGls','jdbcurl','authorization','89949EEmgMG','135384HYqkHL','toLowerCase','accesskey','privatekey','130Vaorle','keys','connectionstring','password','86zWcbyl','token','1542708VsGZwW','427uSmKkw'];a59_0x284a=function(){return _0x72d019;};return a59_0x284a();}export function sanitizeDbLinkList(_0xc3d40f){return _0xc3d40f['map'](_0x5e70e1=>sanitizeDbLinkForOutput(_0x5e70e1));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2ee69b){const _0x3b8205=a59_0x358f,_0x283da4=_0x2ee69b[_0x3b8205(0x130)]();if(!_0x283da4)return![];return DB_URL_PATTERN['test'](_0x283da4);}
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
- function a60_0x51c5(_0x440cbd,_0x487b76){_0x440cbd=_0x440cbd-0x184;const _0x32102a=a60_0x3210();let _0x51c536=_0x32102a[_0x440cbd];return _0x51c536;}const a60_0x74e9b7=a60_0x51c5;(function(_0x421b05,_0x226194){const _0x3f46f3=a60_0x51c5,_0x5b625b=_0x421b05();while(!![]){try{const _0xee8ef5=parseInt(_0x3f46f3(0x194))/0x1+parseInt(_0x3f46f3(0x18d))/0x2*(parseInt(_0x3f46f3(0x184))/0x3)+-parseInt(_0x3f46f3(0x188))/0x4*(-parseInt(_0x3f46f3(0x192))/0x5)+-parseInt(_0x3f46f3(0x185))/0x6+parseInt(_0x3f46f3(0x191))/0x7*(parseInt(_0x3f46f3(0x18b))/0x8)+-parseInt(_0x3f46f3(0x18e))/0x9*(-parseInt(_0x3f46f3(0x190))/0xa)+-parseInt(_0x3f46f3(0x18f))/0xb;if(_0xee8ef5===_0x226194)break;else _0x5b625b['push'](_0x5b625b['shift']());}catch(_0x2aa513){_0x5b625b['push'](_0x5b625b['shift']());}}}(a60_0x3210,0x44739));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a60_0x3210(){const _0x453ac4=['1528974hSfjLR','12533114GoLdjK','10hpUynH','147JtboGZ','103985zeGQwe','compress','363248FYvFmQ','length','522cbvsCF','677784xxlTLq','\x20table(s)\x20on\x20db\x20link\x20','num','8FBYzaR','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','read','211032oEhKGR','appCode','4644TzToLA'];a60_0x3210=function(){return _0x453ac4;};return a60_0x3210();}export const dbTables={'service':'db','command':'tables','description':a60_0x74e9b7(0x189),'risk':a60_0x74e9b7(0x18a),'defaultOutputFormat':a60_0x74e9b7(0x193),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3a703a){const _0x223d4e=a60_0x74e9b7,_0x345b8c=_0x3a703a[_0x223d4e(0x187)]('id'),_0x55ce8b=await getDbAllTableList(_0x3a703a[_0x223d4e(0x18c)],_0x345b8c);return{'ok':!![],'data':{'dbLinkId':_0x345b8c,'total':_0x55ce8b[_0x223d4e(0x195)],'tables':_0x55ce8b},'message':_0x55ce8b[_0x223d4e(0x195)]+_0x223d4e(0x186)+_0x345b8c};}};
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
- const a61_0x88012d=a61_0x1105;function a61_0x1105(_0x355766,_0x2cb7da){_0x355766=_0x355766-0x12b;const _0x3a77bb=a61_0x3a77();let _0x1105bf=_0x3a77bb[_0x355766];return _0x1105bf;}(function(_0x12a785,_0x1874bf){const _0x4ec333=a61_0x1105,_0x34f36d=_0x12a785();while(!![]){try{const _0x129178=parseInt(_0x4ec333(0x13c))/0x1*(-parseInt(_0x4ec333(0x12d))/0x2)+-parseInt(_0x4ec333(0x136))/0x3+parseInt(_0x4ec333(0x134))/0x4+parseInt(_0x4ec333(0x132))/0x5+-parseInt(_0x4ec333(0x133))/0x6+-parseInt(_0x4ec333(0x12e))/0x7+parseInt(_0x4ec333(0x140))/0x8;if(_0x129178===_0x1874bf)break;else _0x34f36d['push'](_0x34f36d['shift']());}catch(_0x12bb4f){_0x34f36d['push'](_0x34f36d['shift']());}}}(a61_0x3a77,0x41182));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1aee00){const _0x183145=a61_0x1105;if(_0x1aee00===!![]||_0x1aee00===![])return{'success':_0x1aee00};if(_0x1aee00===null||_0x1aee00===undefined)return{'type':typeof _0x1aee00};if(typeof _0x1aee00!==_0x183145(0x137))return{'type':typeof _0x1aee00};const _0x14128e=_0x1aee00,_0x415bb0=[_0x183145(0x13e),_0x183145(0x143),_0x183145(0x13a),_0x183145(0x12f),_0x183145(0x131),_0x183145(0x142)],_0x578568={};for(const _0x55fc41 of _0x415bb0){if(_0x55fc41 in _0x14128e)_0x578568[_0x55fc41]=_0x14128e[_0x55fc41];}return Object['keys'](_0x578568)[_0x183145(0x138)]===0x0&&(_0x578568[_0x183145(0x141)]=Object['keys'](_0x14128e)[_0x183145(0x139)](0x0,0x14)),_0x578568;}export const dbTest={'service':'db','command':a61_0x88012d(0x12b),'description':a61_0x88012d(0x13d),'risk':a61_0x88012d(0x12c),'defaultOutputFormat':a61_0x88012d(0x13f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x520d46){const _0x2ca368=a61_0x88012d,_0x8ec15f=_0x520d46[_0x2ca368(0x135)]('id'),_0x555c2f=await testDbLinkConnect(_0x8ec15f),_0x157176=_0x555c2f===!![]||typeof _0x555c2f===_0x2ca368(0x137)&&_0x555c2f!==null&&_0x555c2f[_0x2ca368(0x13e)]===!![],_0x198bce=summarizeTestConnectResult(_0x555c2f);return{'ok':!![],'data':{'id':_0x8ec15f,'connected':Boolean(_0x157176),'result':_0x198bce},'message':_0x157176?_0x2ca368(0x130)+_0x8ec15f:_0x2ca368(0x13b)+_0x8ec15f+'\x20(see\x20data.result)'};}};function a61_0x3a77(){const _0x5a3f02=['Connection\x20check\x20finished\x20for\x20db\x20link\x20','1051ScJkMI','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','success','compress','8559464yYcRAz','keys','data','message','test','read','192LQEtjc','2717001mtUVBh','error','Connection\x20OK\x20for\x20db\x20link\x20','msg','1005880GmkwQj','198828bRofTH','139272eqHamK','num','1551372dNshuM','object','length','slice','code'];a61_0x3a77=function(){return _0x5a3f02;};return a61_0x3a77();}
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_0x145147=a62_0x5bb1;(function(_0x5271d1,_0x11474b){const _0x71b170=a62_0x5bb1,_0x397c5a=_0x5271d1();while(!![]){try{const _0x3bb21e=parseInt(_0x71b170(0x136))/0x1+parseInt(_0x71b170(0x135))/0x2*(parseInt(_0x71b170(0x151))/0x3)+-parseInt(_0x71b170(0x14c))/0x4*(-parseInt(_0x71b170(0x152))/0x5)+-parseInt(_0x71b170(0x145))/0x6+-parseInt(_0x71b170(0x14a))/0x7+-parseInt(_0x71b170(0x131))/0x8+-parseInt(_0x71b170(0x134))/0x9*(-parseInt(_0x71b170(0x132))/0xa);if(_0x3bb21e===_0x11474b)break;else _0x397c5a['push'](_0x397c5a['shift']());}catch(_0x6aaad5){_0x397c5a['push'](_0x397c5a['shift']());}}}(a62_0x3fe9,0xae9d3));function a62_0x3fe9(){const _0x24013f=['string','trim','Updated\x20db\x20link\x20','dbDesc','1947870oVeQNH','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbdesc','/smartapi/dblink/update','POST','3550939XJvibS','dbparam','5586088AWhIcP','dbParam','New\x20database\x20name','New\x20connection\x20parameter\x20string','validation','3PyNbGM','5wNeMMl','dburl','5518672sIxEgs','946570NhpHBN','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','9BPuPYL','762022HDnZLk','364785KxnwyG','dbName','dbUrl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbname','password','update','write','username','num','str'];a62_0x3fe9=function(){return _0x24013f;};return a62_0x3fe9();}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';function a62_0x5bb1(_0x705a13,_0x399fbf){_0x705a13=_0x705a13-0x130;const _0x3fe997=a62_0x3fe9();let _0x5bb1be=_0x3fe997[_0x705a13];return _0x5bb1be;}export const dbUpdate={'service':'db','command':a62_0x145147(0x13c),'description':a62_0x145147(0x133),'risk':a62_0x145147(0x13d),'defaultOutputFormat':'compress','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x145147(0x13a),'type':'string','description':a62_0x145147(0x14e)},{'name':a62_0x145147(0x130),'type':a62_0x145147(0x141),'description':'New\x20host:port'},{'name':a62_0x145147(0x13e),'type':a62_0x145147(0x141),'description':'New\x20username'},{'name':a62_0x145147(0x13b),'type':a62_0x145147(0x141),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a62_0x145147(0x14b),'type':a62_0x145147(0x141),'description':a62_0x145147(0x14f)},{'name':'dbdesc','type':a62_0x145147(0x141),'description':'New\x20description'}],async 'validate'(_0x3293aa){const _0x4d0b01=a62_0x145147,_0x3faa4d=_0x3293aa[_0x4d0b01(0x140)]('dburl');if(_0x3faa4d&&!validateDbUrl(_0x3faa4d[_0x4d0b01(0x142)]()))throw CliErrors[_0x4d0b01(0x150)](_0x4d0b01(0x139)+_0x3faa4d+'\x22');},async 'dryRun'(_0x148c9d){const _0x2d4bd9=a62_0x145147,_0x1caeac=_0x148c9d[_0x2d4bd9(0x13f)]('id'),_0x10367c=await getDbLinkInfo(_0x1caeac),_0x19f32a={..._0x10367c},_0x48a77d=_0x148c9d['str'](_0x2d4bd9(0x13a));if(_0x48a77d)_0x19f32a['dbName']=_0x48a77d;const _0x40c9dc=_0x148c9d['str']('dburl');if(_0x40c9dc)_0x19f32a[_0x2d4bd9(0x138)]=_0x40c9dc[_0x2d4bd9(0x142)]();const _0x241427=_0x148c9d[_0x2d4bd9(0x140)](_0x2d4bd9(0x13e));if(_0x241427)_0x19f32a[_0x2d4bd9(0x13e)]=_0x241427;const _0x56b48f=_0x148c9d['str'](_0x2d4bd9(0x13b));if(_0x56b48f)_0x19f32a['password']=_0x56b48f;const _0x1e4f10=_0x148c9d['str']('dbparam');if(_0x1e4f10)_0x19f32a[_0x2d4bd9(0x14d)]=_0x1e4f10;const _0x1c7f67=_0x148c9d[_0x2d4bd9(0x140)](_0x2d4bd9(0x147));if(_0x1c7f67)_0x19f32a[_0x2d4bd9(0x144)]=_0x1c7f67;const _0x42ef2c=sanitizeDbLinkForOutput(_0x19f32a);return{'method':_0x2d4bd9(0x149),'url':_0x2d4bd9(0x148),'body':_0x42ef2c,'description':_0x2d4bd9(0x146)};},async 'execute'(_0x13ce3d){const _0x1450cd=a62_0x145147,_0xac1c33=_0x13ce3d[_0x1450cd(0x13f)]('id'),_0x32994a=await getDbLinkInfo(_0xac1c33),_0x14c534={..._0x32994a},_0x3b4aa7=_0x13ce3d['str'](_0x1450cd(0x13a));if(_0x3b4aa7)_0x14c534[_0x1450cd(0x137)]=_0x3b4aa7;const _0x8a0935=_0x13ce3d[_0x1450cd(0x140)](_0x1450cd(0x130));if(_0x8a0935)_0x14c534[_0x1450cd(0x138)]=_0x8a0935['trim']();const _0x9f6ea7=_0x13ce3d[_0x1450cd(0x140)](_0x1450cd(0x13e));if(_0x9f6ea7)_0x14c534[_0x1450cd(0x13e)]=_0x9f6ea7;const _0x5dada4=_0x13ce3d['str']('password');if(_0x5dada4)_0x14c534[_0x1450cd(0x13b)]=_0x5dada4;const _0x3b27f2=_0x13ce3d[_0x1450cd(0x140)](_0x1450cd(0x14b));if(_0x3b27f2)_0x14c534[_0x1450cd(0x14d)]=_0x3b27f2;const _0x503788=_0x13ce3d[_0x1450cd(0x140)](_0x1450cd(0x147));if(_0x503788)_0x14c534[_0x1450cd(0x144)]=_0x503788;const _0xdf0dd3=await updateDbLink(_0x14c534);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xdf0dd3),'message':_0x1450cd(0x143)+_0xac1c33};}};
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_0x1df38f=a63_0x24f1;(function(_0x25bdc2,_0x1bc09d){const _0x349b22=a63_0x24f1,_0x34f44c=_0x25bdc2();while(!![]){try{const _0x2b6025=-parseInt(_0x349b22(0x15f))/0x1*(parseInt(_0x349b22(0x13c))/0x2)+parseInt(_0x349b22(0x13b))/0x3+parseInt(_0x349b22(0x14e))/0x4+-parseInt(_0x349b22(0x15b))/0x5*(-parseInt(_0x349b22(0x15d))/0x6)+-parseInt(_0x349b22(0x144))/0x7+-parseInt(_0x349b22(0x13f))/0x8*(parseInt(_0x349b22(0x11b))/0x9)+-parseInt(_0x349b22(0x14d))/0xa*(-parseInt(_0x349b22(0x151))/0xb);if(_0x2b6025===_0x1bc09d)break;else _0x34f44c['push'](_0x34f44c['shift']());}catch(_0x16a8fd){_0x34f44c['push'](_0x34f44c['shift']());}}}(a63_0x3677,0xba6dc));import a63_0x183ff3 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a63_0x3677(){const _0x51c96e=['yellow','\x20doctor','platform','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','slice','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','format','appCode','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','⚠\x20Empty\x20(treated\x20as\x20{})','(set\x20via\x20file,\x20length=','✗\x20Not\x20logged\x20in','(no\x20file)','bold','\x20\x20\x20\x20cookie:\x20\x20\x20','status','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','log','(missing)','version','3174885alpuOR','759928gvqLXq','env','(not\x20set)','12027944nBRlnS','\x20\x20explicitAppName:\x20','padEnd','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','8396696ybflUw','\x20\x20Merged\x20Config','\x20(default)','\x20\x20─','(default)','arch','read','explicitAppName','Project','3310VQdsXN','892960IdOCgS','repeat','apps','115819vXiazy','\x20←\x20current','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','red','defaultApp','appcode','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','gray','75ccXAhJ','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','87942NiSyIX','\x20\x20Config\x20JSON','4SfqMBy','length','message','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','(not\x20found)','\x20\x20API\x20Endpoints','doctor','cookie','9ggahxj','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','Global','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(inherit)'];a63_0x3677=function(){return _0x51c96e;};return a63_0x3677();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a63_0x24f1(_0x466dd0,_0x23c221){_0x466dd0=_0x466dd0-0x115;const _0x3677b5=a63_0x3677();let _0x24f15e=_0x3677b5[_0x466dd0];return _0x24f15e;}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(_0x33f819){const _0x587ed5=a63_0x24f1,_0x709403=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x587ed5(0x129)](0x0,0xa)+')':VERSION,_0x421250=buildConfigFromFlags({}),_0x1481c9=getCookie();console['log'](),console[_0x587ed5(0x138)](a63_0x183ff3['bold'](CLI_BIN_NAME+_0x587ed5(0x126))),console[_0x587ed5(0x138)](a63_0x183ff3['gray']('─'[_0x587ed5(0x14f)](0x32))),console[_0x587ed5(0x138)](_0x587ed5(0x137)+_0x709403),console[_0x587ed5(0x138)](_0x587ed5(0x158)+process[_0x587ed5(0x13a)]),console[_0x587ed5(0x138)](_0x587ed5(0x12d)+process[_0x587ed5(0x127)]+'\x20'+process[_0x587ed5(0x149)]),console['log'](),console[_0x587ed5(0x138)](a63_0x183ff3[_0x587ed5(0x134)](_0x587ed5(0x116))),console['log'](a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x147)['repeat'](0x1e)));const _0x569c68=getGlobalConfigPath(),_0x5dd606=getProjectConfigPath();console[_0x587ed5(0x138)](_0x587ed5(0x15c)+(_0x569c68||a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x117)))),console[_0x587ed5(0x138)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5dd606||a63_0x183ff3[_0x587ed5(0x15a)]('(not\x20found)'))),console['log'](),console[_0x587ed5(0x138)](a63_0x183ff3[_0x587ed5(0x134)](_0x587ed5(0x15e))),console['log'](a63_0x183ff3['gray'](_0x587ed5(0x147)[_0x587ed5(0x14f)](0x1e)));const _0x37b65f=(_0x5a5386,_0x26935e)=>{const _0x26fa5a=_0x587ed5;if(!_0x26935e){console[_0x26fa5a(0x138)]('\x20\x20'+_0x5a5386['padEnd'](0x11)+'\x20'+a63_0x183ff3[_0x26fa5a(0x15a)](_0x26fa5a(0x133)));return;}const _0x2c4134=inspectCliConfigJsonFile(_0x26935e);if(_0x2c4134[_0x26fa5a(0x136)]==='ok')console[_0x26fa5a(0x138)]('\x20\x20'+_0x5a5386['padEnd'](0x11)+'\x20'+a63_0x183ff3['green'](_0x26fa5a(0x11f)));else{if(_0x2c4134[_0x26fa5a(0x136)]==='empty')console[_0x26fa5a(0x138)]('\x20\x20'+_0x5a5386[_0x26fa5a(0x141)](0x11)+'\x20'+a63_0x183ff3[_0x26fa5a(0x125)](_0x26fa5a(0x130)));else _0x2c4134['status']===_0x26fa5a(0x122)?console[_0x26fa5a(0x138)]('\x20\x20'+_0x5a5386[_0x26fa5a(0x141)](0x11)+'\x20'+a63_0x183ff3[_0x26fa5a(0x15a)](_0x26fa5a(0x139))):(console[_0x26fa5a(0x138)]('\x20\x20'+_0x5a5386[_0x26fa5a(0x141)](0x11)+'\x20'+a63_0x183ff3['red']('✗\x20Invalid\x20JSON')),console[_0x26fa5a(0x138)]('\x20\x20'+''[_0x26fa5a(0x141)](0x11)+'\x20'+a63_0x183ff3[_0x26fa5a(0x155)](_0x2c4134[_0x26fa5a(0x161)])));}};_0x37b65f(_0x587ed5(0x120),_0x569c68),_0x37b65f(_0x587ed5(0x14c),_0x5dd606),console[_0x587ed5(0x138)](),console['log'](a63_0x183ff3[_0x587ed5(0x134)](_0x587ed5(0x145))),console[_0x587ed5(0x138)](a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x147)[_0x587ed5(0x14f)](0x1e))),console[_0x587ed5(0x138)](_0x587ed5(0x123)+(_0x421250[_0x587ed5(0x12c)]||a63_0x183ff3['red'](_0x587ed5(0x13e)))),console[_0x587ed5(0x138)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x421250[_0x587ed5(0x13d)]),console[_0x587ed5(0x138)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x421250['locale']),console[_0x587ed5(0x138)](_0x587ed5(0x153)+_0x421250['apiDir']),console['log'](_0x587ed5(0x12a)+(_0x421250[_0x587ed5(0x156)]||a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x12f)))),console[_0x587ed5(0x138)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x421250['currentApp']||a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x12f)))),console[_0x587ed5(0x138)](_0x587ed5(0x140)+(_0x421250[_0x587ed5(0x14b)]||a63_0x183ff3[_0x587ed5(0x15a)]('(none)'))),console[_0x587ed5(0x138)](_0x587ed5(0x11c)+(_0x421250[_0x587ed5(0x12b)]||a63_0x183ff3[_0x587ed5(0x15a)]('(default:\x20pretty)'))),console[_0x587ed5(0x138)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x421250['pageSize']??a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x148)))),console[_0x587ed5(0x138)](_0x587ed5(0x162)+_0x421250['riskLevel']),console[_0x587ed5(0x138)](_0x587ed5(0x143)+_0x421250['verbose']),console['log'](_0x587ed5(0x121)+(_0x421250['cookie']?a63_0x183ff3[_0x587ed5(0x11d)]('(set,\x20length='+_0x421250[_0x587ed5(0x11a)][_0x587ed5(0x160)]+')'):_0x1481c9?a63_0x183ff3[_0x587ed5(0x11d)](_0x587ed5(0x131)+_0x1481c9[_0x587ed5(0x160)]+')'):a63_0x183ff3['gray'](_0x587ed5(0x12f))));const _0x6a62d9=Object['keys'](_0x421250['apps']);if(_0x6a62d9[_0x587ed5(0x160)]>0x0){console['log'](),console[_0x587ed5(0x138)](a63_0x183ff3['bold']('\x20\x20Apps')),console[_0x587ed5(0x138)](a63_0x183ff3[_0x587ed5(0x15a)]('\x20\x20─'[_0x587ed5(0x14f)](0x1e)));for(const _0x304c19 of _0x6a62d9){const _0x5baeac=_0x421250[_0x587ed5(0x150)][_0x304c19],_0x58cd63=_0x304c19===_0x421250['defaultApp'],_0x50f58a=_0x304c19===_0x421250['currentApp'],_0x2e03e7=_0x50f58a?a63_0x183ff3['green'](_0x587ed5(0x152)):'',_0xa9d2ce=_0x58cd63?_0x587ed5(0x146):'';console[_0x587ed5(0x138)]('\x20\x20'+_0x304c19+_0xa9d2ce+_0x2e03e7),console[_0x587ed5(0x138)](_0x587ed5(0x154)+_0x5baeac[_0x587ed5(0x157)]),console['log'](_0x587ed5(0x115)+(_0x5baeac[_0x587ed5(0x13d)]||a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x124)))),console[_0x587ed5(0x138)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x5baeac['apiDir']||a63_0x183ff3['gray']('(inherit)'))),console[_0x587ed5(0x138)](_0x587ed5(0x135)+(_0x5baeac[_0x587ed5(0x11a)]?a63_0x183ff3['green']('(set)'):a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x124))));}}console[_0x587ed5(0x138)](),console[_0x587ed5(0x138)](a63_0x183ff3['bold'](_0x587ed5(0x118))),console[_0x587ed5(0x138)](a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x147)[_0x587ed5(0x14f)](0x1e))),console[_0x587ed5(0x138)](_0x587ed5(0x11e)+getApiDomain()),console[_0x587ed5(0x138)](_0x587ed5(0x128)+getUserDomain()),console[_0x587ed5(0x138)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x587ed5(0x138)](),console['log'](a63_0x183ff3[_0x587ed5(0x134)](_0x587ed5(0x159))),console[_0x587ed5(0x138)](a63_0x183ff3[_0x587ed5(0x15a)](_0x587ed5(0x147)[_0x587ed5(0x14f)](0x1e)));if(_0x1481c9){const _0x468846=await getIsSessionValid();console[_0x587ed5(0x138)](_0x587ed5(0x12e)+(_0x468846?a63_0x183ff3[_0x587ed5(0x11d)]('✓\x20Valid'):a63_0x183ff3[_0x587ed5(0x155)]('✗\x20Expired')));}else console[_0x587ed5(0x138)](_0x587ed5(0x12e)+a63_0x183ff3[_0x587ed5(0x155)](_0x587ed5(0x132)));return console[_0x587ed5(0x138)](),{'ok':!![]};}export const doctorDefinition={'service':a63_0x1df38f(0x119),'command':'check','description':a63_0x1df38f(0x142),'risk':a63_0x1df38f(0x14a),'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_0x2a3ae4=a64_0x3298;function a64_0x3298(_0x4ca944,_0x21ab3f){_0x4ca944=_0x4ca944-0x13e;const _0x310410=a64_0x3104();let _0x32983e=_0x310410[_0x4ca944];return _0x32983e;}(function(_0x17f036,_0x132fda){const _0x2ac127=a64_0x3298,_0xd467cd=_0x17f036();while(!![]){try{const _0x4089df=-parseInt(_0x2ac127(0x148))/0x1+parseInt(_0x2ac127(0x16a))/0x2*(parseInt(_0x2ac127(0x157))/0x3)+parseInt(_0x2ac127(0x15e))/0x4+parseInt(_0x2ac127(0x163))/0x5*(parseInt(_0x2ac127(0x153))/0x6)+-parseInt(_0x2ac127(0x15f))/0x7+-parseInt(_0x2ac127(0x169))/0x8*(-parseInt(_0x2ac127(0x14f))/0x9)+parseInt(_0x2ac127(0x151))/0xa*(parseInt(_0x2ac127(0x154))/0xb);if(_0x4089df===_0x132fda)break;else _0xd467cd['push'](_0xd467cd['shift']());}catch(_0x1e6b3b){_0xd467cd['push'](_0xd467cd['shift']());}}}(a64_0x3104,0xa7a45));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a64_0x3104(){const _0x5e36ea=['run','cwd','apps','\x20\x20Default:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','message','774821BJvOfz','nonInteractive','appcode','\x20\x20Config:\x20','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','production','\x20\x20Apps:\x20','3483siICIL','project','138040EihQog','\x20\x20AppCode:\x20','6nNJSEY','110ItDVWj','map','global','339aloyAy','appCode','validation','log','Use\x20`','Target\x20environment','daily','3392724ZQhAMV','255626htKdxz','Usage:\x20','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','valid','373295NbpvqI','defaultApp','env','boolean','Auto-confirm\x20prompts','\x20\x20Env:\x20','5656dPquGR','2894irGjaM','检测到旧配置文件,正在自动升级...\x0a','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','length','str','../../commands/project/init.js','Write\x20to\x20global\x20config\x20instead\x20of\x20project','toLocaleString','bool','App\x20code\x20to\x20initialize\x20with','join','yes'];a64_0x3104=function(){return _0x5e36ea;};return a64_0x3104();}import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function syntheticApp(_0x52b3ab){return{'appCode':_0x52b3ab,'appName':_0x52b3ab};}function writeInitConfig(_0x2662bd,_0x2163e4,_0xb8e1fe){const _0x83f979=a64_0x3298,_0x3639f4=resolveWriteConfigPath(_0x2662bd),_0x2d773c={'version':getCliVersion(),'createdAt':new Date()[_0x83f979(0x171)](),'env':_0xb8e1fe};if(_0x2163e4[_0x83f979(0x16d)]===0x1)_0x2d773c['appcode']=_0x2163e4[0x0][_0x83f979(0x158)];else{_0x2d773c[_0x83f979(0x143)]={};for(const _0x36e4b1 of _0x2163e4){_0x2d773c[_0x83f979(0x143)][_0x36e4b1[_0x83f979(0x158)]]={'appcode':_0x36e4b1[_0x83f979(0x158)],'env':_0xb8e1fe};}_0x2d773c[_0x83f979(0x164)]=_0x2163e4[0x0][_0x83f979(0x158)];}writeConfigFile(_0x3639f4,_0x2d773c);const _0x2c40c7=_0x2662bd==='global'?_0x83f979(0x156):_0x83f979(0x150);console[_0x83f979(0x15a)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x2c40c7+'\x20config'),_0x2163e4[_0x83f979(0x16d)]===0x1?console[_0x83f979(0x15a)](_0x83f979(0x152)+_0x2163e4[0x0][_0x83f979(0x158)]):(console[_0x83f979(0x15a)](_0x83f979(0x14e)+_0x2163e4[_0x83f979(0x155)](_0x1e6e5e=>_0x1e6e5e[_0x83f979(0x158)])[_0x83f979(0x13f)](',\x20')),console['log'](_0x83f979(0x144)+_0x2d773c[_0x83f979(0x164)])),console[_0x83f979(0x15a)](_0x83f979(0x168)+_0x2d773c['env']),console[_0x83f979(0x15a)](_0x83f979(0x14b)+_0x3639f4);}async function runSmartInit(_0x2d7992){const _0x1600bd=a64_0x3298,_0x4c0333=process[_0x1600bd(0x142)](),_0x562861=_0x2d7992[_0x1600bd(0x172)](_0x1600bd(0x156))?_0x1600bd(0x156):_0x1600bd(0x150),_0x4c7769=_0x2d7992['str'](_0x1600bd(0x165))||_0x1600bd(0x14d),_0x3709b4=_0x2d7992[_0x1600bd(0x16e)](_0x1600bd(0x14a))||undefined,_0x137d11=_0x2d7992[_0x1600bd(0x172)](_0x1600bd(0x150));if(_0x137d11){const {initConfig:_0x44d504}=await import(_0x1600bd(0x16f));return _0x44d504({'appcode':_0x3709b4,'env':_0x4c7769,'autoYes':_0x2d7992['bool'](_0x1600bd(0x140))});}if(_0x562861==='project'){const _0x27152a=existsSync(resolve(_0x4c0333,NEW_CONFIG_NAME)),_0x981013=LEGACY_CONFIG_NAMES['some'](_0x4a3cb0=>existsSync(resolve(_0x4c0333,_0x4a3cb0)));if(_0x981013&&!_0x27152a)return console['log'](_0x1600bd(0x16b)),upgradeApp(_0x2d7992['nonInteractive'],{'yes':_0x2d7992[_0x1600bd(0x172)](_0x1600bd(0x140))});if(_0x27152a)throw CliErrors[_0x1600bd(0x159)](_0x1600bd(0x16c),_0x1600bd(0x15b)+CLI_BIN_NAME+_0x1600bd(0x146));}if(_0x3709b4){const _0x58fdfe=validateAppcode(_0x3709b4);if(!_0x58fdfe[_0x1600bd(0x162)])throw CliErrors[_0x1600bd(0x159)](_0x58fdfe[_0x1600bd(0x147)]);writeInitConfig(_0x562861,[syntheticApp(_0x3709b4)],_0x4c7769);return;}if(_0x2d7992[_0x1600bd(0x149)])throw CliErrors['flagMissing']('appcode',_0x1600bd(0x160)+CLI_BIN_NAME+_0x1600bd(0x161));const _0x20d0fc=getCookie(),_0x59c4ea=await selectMultipleApps(_0x20d0fc),_0x3c3c82=_0x59c4ea==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x59c4ea;writeInitConfig(_0x562861,_0x3c3c82,_0x4c7769);}const initFlags=[{'name':a64_0x2a3ae4(0x156),'type':a64_0x2a3ae4(0x166),'description':a64_0x2a3ae4(0x170),'default':![]},{'name':a64_0x2a3ae4(0x165),'type':'string','description':a64_0x2a3ae4(0x15c),'default':a64_0x2a3ae4(0x14d),'enum':[a64_0x2a3ae4(0x14d),a64_0x2a3ae4(0x15d)]},{'name':a64_0x2a3ae4(0x14a),'type':'string','description':a64_0x2a3ae4(0x13e)},{'name':a64_0x2a3ae4(0x150),'type':a64_0x2a3ae4(0x166),'description':a64_0x2a3ae4(0x145),'default':![]},{'name':'yes','type':a64_0x2a3ae4(0x166),'description':a64_0x2a3ae4(0x167),'default':![]}];export const initDefinitions=[{'service':'init','command':a64_0x2a3ae4(0x141),'description':a64_0x2a3ae4(0x14c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3df4eb){return await runSmartInit(_0x3df4eb),{'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
- const a65_0x2587cc=a65_0x5f35;function a65_0x5f35(_0x4274f1,_0x333877){_0x4274f1=_0x4274f1-0x84;const _0x46b7fe=a65_0x46b7();let _0x5f358a=_0x46b7fe[_0x4274f1];return _0x5f358a;}(function(_0x497371,_0x129e7b){const _0x64eed9=a65_0x5f35,_0x4eadb3=_0x497371();while(!![]){try{const _0xb46b2f=-parseInt(_0x64eed9(0x96))/0x1+parseInt(_0x64eed9(0x94))/0x2*(-parseInt(_0x64eed9(0x9c))/0x3)+-parseInt(_0x64eed9(0x8e))/0x4+parseInt(_0x64eed9(0xa1))/0x5+parseInt(_0x64eed9(0x89))/0x6+-parseInt(_0x64eed9(0x95))/0x7+parseInt(_0x64eed9(0xa2))/0x8;if(_0xb46b2f===_0x129e7b)break;else _0x4eadb3['push'](_0x4eadb3['shift']());}catch(_0x35d35d){_0x4eadb3['push'](_0x4eadb3['shift']());}}}(a65_0x46b7,0x2dcde));import{logger}from'../../utils/logger.js';function printLogs(_0x255fc9){const _0x1f6191=a65_0x5f35;if(_0x255fc9[_0x1f6191(0xa0)]===0x0){console[_0x1f6191(0x92)](_0x1f6191(0x8a));return;}console['log'](_0x1f6191(0x90)),_0x255fc9[_0x1f6191(0x93)]((_0x338cf2,_0x215525)=>{const _0x522eed=_0x1f6191,_0x55d745=new Date(_0x338cf2[_0x522eed(0x9b)])[_0x522eed(0x88)](_0x522eed(0x8c)),_0x2751c0=_0x338cf2[_0x522eed(0x9e)]==='success'?'√':_0x338cf2[_0x522eed(0x9e)]===_0x522eed(0x8d)?'×':_0x338cf2[_0x522eed(0x9e)]===_0x522eed(0x86)?'!':'i';console[_0x522eed(0x92)](_0x215525+0x1+'.\x20'+_0x2751c0+'\x20['+_0x338cf2[_0x522eed(0x87)]+']\x20'+_0x338cf2[_0x522eed(0xa3)]),console[_0x522eed(0x92)]('\x20\x20\x20Time:\x20'+_0x55d745),_0x338cf2['duration']&&console['log'](_0x522eed(0x99)+_0x338cf2[_0x522eed(0x9f)]+'ms'),_0x338cf2[_0x522eed(0x85)]&&Object['keys'](_0x338cf2[_0x522eed(0x85)])['length']>0x0&&console[_0x522eed(0x92)](_0x522eed(0x8b)+JSON[_0x522eed(0x9a)](_0x338cf2[_0x522eed(0x85)],null,0x2)),console[_0x522eed(0x92)]('');});}export const logsDefinitions=[{'service':a65_0x2587cc(0x97),'command':'show','description':'View\x20command\x20history\x20logs','risk':a65_0x2587cc(0x84),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4a0303){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a65_0x2587cc(0x97),'command':a65_0x2587cc(0x9d),'description':a65_0x2587cc(0x98),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x24b2ee){const _0x33ab4e=a65_0x2587cc;return logger[_0x33ab4e(0x91)](),console['log'](_0x33ab4e(0x8f)),{'ok':!![]};}}];function a65_0x46b7(){const _0x341261=['3XIvFrL','clear','level','duration','length','1638085atmzBr','6995024YlBpCC','message','read','details','warn','command','toLocaleString','1260408BLnjTi','*\x20No\x20logs\x20found','\x20\x20\x20Details:\x20','en-US','error','1024128JxAdhA','*\x20Logs\x20cleared','*\x20Lovrabet\x20CLI\x20logs:\x0a','clearLogs','log','forEach','749176PJqvTA','2056719uVQZJL','300012VSpcQv','logs','Clear\x20command\x20history\x20logs','\x20\x20\x20Duration:\x20','stringify','timestamp'];a65_0x46b7=function(){return _0x341261;};return a65_0x46b7();}
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 a66_0x5d10(_0x1e47c6,_0x17762b){_0x1e47c6=_0x1e47c6-0xff;const _0x52f1fd=a66_0x52f1();let _0x5d102f=_0x52f1fd[_0x1e47c6];return _0x5d102f;}(function(_0x387f81,_0x2cb313){const _0x523dfa=a66_0x5d10,_0x4abc60=_0x387f81();while(!![]){try{const _0x9a96bc=parseInt(_0x523dfa(0xff))/0x1+parseInt(_0x523dfa(0x102))/0x2+-parseInt(_0x523dfa(0x100))/0x3+parseInt(_0x523dfa(0x107))/0x4+parseInt(_0x523dfa(0x103))/0x5+parseInt(_0x523dfa(0x104))/0x6*(parseInt(_0x523dfa(0x101))/0x7)+-parseInt(_0x523dfa(0x106))/0x8*(parseInt(_0x523dfa(0x105))/0x9);if(_0x9a96bc===_0x2cb313)break;else _0x4abc60['push'](_0x4abc60['shift']());}catch(_0x1f39b1){_0x4abc60['push'](_0x4abc60['shift']());}}}(a66_0x52f1,0x2b98c));import{menuSync}from'../../commands/menu/sync.js';function a66_0x52f1(){const _0x3e1512=['1340269NfLOIG','705196pGQMDb','282095kWyDxc','6ApxhyS','452340pGyUgn','56wOSxsY','322240PTYwEi','102789uQtGCQ','760323HCxPBN'];a66_0x52f1=function(){return _0x3e1512;};return a66_0x52f1();}import{menuUpdate}from'../../commands/menu/update.js';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(_0x322ddd,_0x483a68){const _0x15acb5=a67_0x1427,_0x15b6c7=_0x322ddd();while(!![]){try{const _0x3ccd0f=parseInt(_0x15acb5(0x1d1))/0x1*(parseInt(_0x15acb5(0x1c7))/0x2)+parseInt(_0x15acb5(0x1c8))/0x3*(-parseInt(_0x15acb5(0x1cb))/0x4)+parseInt(_0x15acb5(0x1db))/0x5+-parseInt(_0x15acb5(0x1dd))/0x6+-parseInt(_0x15acb5(0x1c5))/0x7+-parseInt(_0x15acb5(0x1cd))/0x8*(-parseInt(_0x15acb5(0x1da))/0x9)+-parseInt(_0x15acb5(0x1d5))/0xa*(-parseInt(_0x15acb5(0x1dc))/0xb);if(_0x3ccd0f===_0x483a68)break;else _0x15b6c7['push'](_0x15b6c7['shift']());}catch(_0x1951a9){_0x15b6c7['push'](_0x15b6c7['shift']());}}}(a67_0x57ad,0x46eba));function a67_0x57ad(){const _0x578b9a=['\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','Menu\x20Name','1584244LcVMRq','path','74848KwnkbQ','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','online','length','2OQOPbl','max','\x20\x20\x20\x20•\x20','(unchanged)','10pjpwcX','\x20\x20\x20\x20CSS:\x20','repeat','push','test','252aXjWYF','1254035xoVVMn','12034088Ztebpr','2577978nbvako','showOnline','Local','local','\x20\x20No\x20pages\x20to\x20sync.','3450545qtFIFs','join','2366yZVKsi','3NqcWfj'];a67_0x57ad=function(){return _0x578b9a;};return a67_0x57ad();}function strWidth(_0x366b42){const _0x1801ff=a67_0x1427;let _0x1dd21d=0x0;for(const _0x18de79 of _0x366b42){_0x1dd21d+=/[\u4e00-\u9fa5]/[_0x1801ff(0x1d9)](_0x18de79)?0x2:0x1;}return _0x1dd21d;}function padRight(_0x1bb39e,_0x3bc3d4){const _0x53da6c=a67_0x1427,_0xb0ae3d=strWidth(_0x1bb39e);return _0x1bb39e+'\x20'[_0x53da6c(0x1d7)](Math[_0x53da6c(0x1d2)](0x0,_0x3bc3d4-_0xb0ae3d));}export function renderCompareTable(_0x34b8f4,_0x4d7eaf={}){const _0x60f8a9=a67_0x1427;if(_0x34b8f4[_0x60f8a9(0x1d0)]===0x0)return'';const _0x39240b=_0x4d7eaf[_0x60f8a9(0x1de)]??!![],_0x202d3c=Math[_0x60f8a9(0x1d2)](0x1e,..._0x34b8f4['map'](_0x2993df=>strWidth(_0x2993df['label']))),_0x1f6d3f=0x4,_0x33f2e0=[],_0x2ff6d8='\x20\x20'+padRight(_0x60f8a9(0x1ca),_0x202d3c),_0x10fbc1=padRight(_0x60f8a9(0x1c2),_0x1f6d3f),_0x1b7aa6=_0x39240b?'\x20\x20'+padRight('Platform',_0x1f6d3f):'';_0x33f2e0[_0x60f8a9(0x1d8)](_0x2ff6d8+'\x20\x20'+_0x10fbc1+(_0x39240b?_0x1b7aa6:'')),_0x33f2e0[_0x60f8a9(0x1d8)]('\x20\x20'+'─'[_0x60f8a9(0x1d7)](_0x202d3c)+'\x20\x20'+'─'[_0x60f8a9(0x1d7)](_0x1f6d3f)+(_0x39240b?'\x20\x20'+'─'['repeat'](_0x1f6d3f):''));for(const _0x15e531 of _0x34b8f4){const _0xad87ba=padRight(_0x15e531['label'],_0x202d3c),_0x500816=_0x15e531[_0x60f8a9(0x1c3)]?'✓':'✗',_0x2fb4be=padRight(_0x500816,_0x1f6d3f);let _0x91cf9e='\x20\x20'+_0xad87ba+'\x20\x20'+_0x2fb4be;if(_0x39240b){const _0x2c9ba0=_0x15e531[_0x60f8a9(0x1cf)]?'✓':'✗';_0x91cf9e+='\x20\x20'+padRight(_0x2c9ba0,_0x1f6d3f);}_0x33f2e0[_0x60f8a9(0x1d8)](_0x91cf9e);}return _0x33f2e0[_0x60f8a9(0x1c6)]('\x0a');}function a67_0x1427(_0x1c824e,_0x3e2243){_0x1c824e=_0x1c824e-0x1c2;const _0x57ad78=a67_0x57ad();let _0x1427fa=_0x57ad78[_0x1c824e];return _0x1427fa;}export function renderSyncSummary(_0x53abe7,_0x40611a){const _0x3dac30=a67_0x1427;if(_0x53abe7['length']===0x0)return _0x40611a?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x3dac30(0x1c4);const _0x53b282=['\x20\x20'+_0x53abe7[_0x3dac30(0x1d0)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x13196c of _0x53abe7){_0x53b282[_0x3dac30(0x1d8)](_0x3dac30(0x1d3)+_0x13196c['label']+'\x20('+_0x13196c[_0x3dac30(0x1cc)]+')');}return _0x53b282[_0x3dac30(0x1c6)]('\x0a');}export function renderUpdateSummary(_0x17e9f3,_0x4bda17){const _0xf8a80f=a67_0x1427;if(_0x17e9f3[_0xf8a80f(0x1d0)]===0x0)return _0xf8a80f(0x1c9);const _0x19e9da=['\x20\x20'+_0x17e9f3[_0xf8a80f(0x1d0)]+_0xf8a80f(0x1ce),'\x20\x20\x20\x20JS:\x20\x20'+(_0x4bda17[0x0]??_0xf8a80f(0x1d4)),_0xf8a80f(0x1d6)+(_0x4bda17[0x1]??_0xf8a80f(0x1d4)),'','\x20\x20Affected\x20menus:\x20'+_0x17e9f3[_0xf8a80f(0x1c6)](',\x20')];return _0x19e9da['join']('\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(_0x388b89,_0x1dfeb6){var _0x34de5a=a68_0x4566,_0x24355b=_0x388b89();while(!![]){try{var _0x235b46=-parseInt(_0x34de5a(0x1e2))/0x1*(-parseInt(_0x34de5a(0x1e9))/0x2)+parseInt(_0x34de5a(0x1e5))/0x3+-parseInt(_0x34de5a(0x1eb))/0x4*(parseInt(_0x34de5a(0x1e6))/0x5)+parseInt(_0x34de5a(0x1ea))/0x6*(-parseInt(_0x34de5a(0x1e8))/0x7)+-parseInt(_0x34de5a(0x1e7))/0x8+-parseInt(_0x34de5a(0x1ec))/0x9*(-parseInt(_0x34de5a(0x1e3))/0xa)+-parseInt(_0x34de5a(0x1e4))/0xb*(-parseInt(_0x34de5a(0x1ed))/0xc);if(_0x235b46===_0x1dfeb6)break;else _0x24355b['push'](_0x24355b['shift']());}catch(_0x188446){_0x24355b['push'](_0x24355b['shift']());}}}(a68_0x3d58,0x83f92));function a68_0x3d58(){var _0x4a98c4=['4EUcnDV','63iByDlD','12mCpYVd','4OMAIsx','827490fgqMzG','13870747sgNhzN','975351PtxRGc','4903505ERjcBZ','4254608qpBDES','5096SdZxzH','229252CHfJLD','4704ZTPUSg'];a68_0x3d58=function(){return _0x4a98c4;};return a68_0x3d58();}function a68_0x4566(_0x341a5f,_0x160385){_0x341a5f=_0x341a5f-0x1e2;var _0x3d584c=a68_0x3d58();var _0x4566e7=_0x3d584c[_0x341a5f];return _0x4566e7;}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';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(_0x1b8537,_0x55a60f){const _0x505c8b=a69_0x21b4,_0x2ffa8b=_0x1b8537();while(!![]){try{const _0x29570e=-parseInt(_0x505c8b(0x188))/0x1*(-parseInt(_0x505c8b(0x180))/0x2)+-parseInt(_0x505c8b(0x17b))/0x3+parseInt(_0x505c8b(0x177))/0x4*(parseInt(_0x505c8b(0x178))/0x5)+-parseInt(_0x505c8b(0x175))/0x6+parseInt(_0x505c8b(0x167))/0x7+-parseInt(_0x505c8b(0x169))/0x8*(-parseInt(_0x505c8b(0x185))/0x9)+parseInt(_0x505c8b(0x17f))/0xa;if(_0x29570e===_0x55a60f)break;else _0x2ffa8b['push'](_0x2ffa8b['shift']());}catch(_0x2bbe3e){_0x2ffa8b['push'](_0x2ffa8b['shift']());}}}(a69_0x1582,0xa57a9));import a69_0x2b799b from'chalk';function a69_0x1582(){const _0x3d36fd=['ExitPromptError','2116056ZqbYdL','has','includes','fail','7272320EhibDi','10NJfCGt','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','test','path','green','282213ePiJmg','\x20\x20Checking\x20JS\x20URL\x20reachability...','stdin','134149axqYsJ','error','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','cancelled','isTTY','\x20\x20Checking\x20CSS\x20URL\x20reachability...','filter','5871656vazIgw','[already\x20on\x20platform]','40UjbbMO','start','CSS\x20URL\x20checked','label','length','CSS\x20URL\x20check\x20failed','succeed','trim','\x20\x20CSS\x20URL:','map','red','Cancelled.','6935028BVbaDt','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','581684MYDylS','5tzhSBR','name'];a69_0x1582=function(){return _0x3d36fd;};return a69_0x1582();}import{checkbox,input,confirm}from'@inquirer/prompts';import a69_0x47f76a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x530bc9){return _0x530bc9['catch'](_0x267dad=>{const _0x349587=a69_0x21b4;if(_0x267dad?.[_0x349587(0x179)]===_0x349587(0x17a))throw CliErrors[_0x349587(0x163)](_0x349587(0x174));throw _0x267dad;});}export function startSpinner(_0x5debd8){const _0x403d9f=a69_0x21b4;return a69_0x47f76a({'text':_0x5debd8,'color':'cyan'})[_0x403d9f(0x16a)]();}export function stopSpinner(_0x5a750a,_0x300751,_0x526a50){const _0x554b45=a69_0x21b4;_0x526a50?_0x5a750a[_0x554b45(0x16f)](_0x300751):_0x5a750a[_0x554b45(0x17e)](_0x300751);}export async function askConfirm(_0x5ae6f3){return onCancel(confirm({'message':_0x5ae6f3,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4565f0){const _0x4a2ff3=a69_0x21b4;while(!![]){const _0x3ade48=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x4565f0,'theme':{'prefix':''}}));if(_0x3ade48[_0x4a2ff3(0x170)]()==='')throw CliErrors[_0x4a2ff3(0x163)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x4a2ff3(0x182)](_0x3ade48['trim']())){console[_0x4a2ff3(0x189)](a69_0x2b799b[_0x4a2ff3(0x173)](_0x4a2ff3(0x181)));continue;}const _0x25566b=startSpinner(_0x4a2ff3(0x186));try{const _0x57253f=await isUrlReachable(_0x3ade48['trim']());stopSpinner(_0x25566b,'JS\x20URL\x20checked',_0x57253f);if(!_0x57253f){console[_0x4a2ff3(0x189)](a69_0x2b799b[_0x4a2ff3(0x173)](_0x4a2ff3(0x162)));continue;}return _0x3ade48[_0x4a2ff3(0x170)]();}catch(_0x37b091){stopSpinner(_0x25566b,'JS\x20URL\x20check\x20failed',![]);throw _0x37b091;}}}export async function askCssUrl(_0x35d393){const _0x103e09=a69_0x21b4;while(!![]){const _0x54b9cf=await onCancel(input({'message':_0x103e09(0x171),'default':_0x35d393,'theme':{'prefix':''}}));if(_0x54b9cf[_0x103e09(0x170)]()==='')throw CliErrors[_0x103e09(0x163)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x103e09(0x182)](_0x54b9cf[_0x103e09(0x170)]())){console[_0x103e09(0x189)](a69_0x2b799b['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x1c31c1=startSpinner(_0x103e09(0x165));try{const _0x11bde3=await isUrlReachable(_0x54b9cf[_0x103e09(0x170)]());stopSpinner(_0x1c31c1,_0x103e09(0x16b),_0x11bde3);if(!_0x11bde3){console[_0x103e09(0x189)](a69_0x2b799b[_0x103e09(0x173)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x54b9cf[_0x103e09(0x170)]();}catch(_0x5b5a7f){stopSpinner(_0x1c31c1,_0x103e09(0x16e),![]);throw _0x5b5a7f;}}}export async function selectPages(_0x472bf4,_0x4ffd3c,_0x2042a6){const _0x4ff10a=a69_0x21b4,_0x5601e8=_0x472bf4[_0x4ff10a(0x172)](_0x212e61=>({'name':_0x212e61['label']+'\x20\x20'+(_0x4ffd3c[_0x4ff10a(0x17c)](_0x212e61[_0x4ff10a(0x183)])?a69_0x2b799b['gray'](_0x4ff10a(0x168)):a69_0x2b799b[_0x4ff10a(0x184)]('[new]')),'value':_0x212e61[_0x4ff10a(0x16c)],'checked':_0x2042a6?_0x2042a6[_0x4ff10a(0x17d)](_0x212e61['label']):!_0x4ffd3c[_0x4ff10a(0x17c)](_0x212e61['path'])}));if(_0x5601e8['length']===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x22edc6=await onCancel(checkbox({'message':_0x4ff10a(0x176),'choices':_0x5601e8,'loop':![],'theme':{'prefix':''}}));if(_0x22edc6[_0x4ff10a(0x16d)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x472bf4[_0x4ff10a(0x166)](_0x165469=>_0x22edc6['includes'](_0x165469[_0x4ff10a(0x16c)]));}export function isInteractive(){const _0x4859ad=a69_0x21b4;return process[_0x4859ad(0x187)][_0x4859ad(0x164)]===!![];}function a69_0x21b4(_0x3018e5,_0x1664b7){_0x3018e5=_0x3018e5-0x162;const _0x1582eb=a69_0x1582();let _0x21b481=_0x1582eb[_0x3018e5];return _0x21b481;}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_0x40700b=a70_0x71d8;(function(_0x445914,_0x23de08){const _0x30e3c6=a70_0x71d8,_0x786b3a=_0x445914();while(!![]){try{const _0x140e64=parseInt(_0x30e3c6(0x102))/0x1*(parseInt(_0x30e3c6(0xf6))/0x2)+-parseInt(_0x30e3c6(0x105))/0x3*(parseInt(_0x30e3c6(0x108))/0x4)+-parseInt(_0x30e3c6(0x104))/0x5+parseInt(_0x30e3c6(0x103))/0x6+-parseInt(_0x30e3c6(0x107))/0x7+parseInt(_0x30e3c6(0xf4))/0x8*(-parseInt(_0x30e3c6(0x106))/0x9)+parseInt(_0x30e3c6(0x100))/0xa*(parseInt(_0x30e3c6(0xf8))/0xb);if(_0x140e64===_0x23de08)break;else _0x786b3a['push'](_0x786b3a['shift']());}catch(_0x39dafd){_0x786b3a['push'](_0x786b3a['shift']());}}}(a70_0x1576,0xd9204));import{readdirSync,statSync,readFileSync}from'fs';function a70_0x71d8(_0x113402,_0x28d91a){_0x113402=_0x113402-0xef;const _0x157680=a70_0x1576();let _0x71d82a=_0x157680[_0x113402];return _0x71d82a;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a70_0x40700b(0xf3)](),'src/pages');function a70_0x1576(){const _0x224a1a=['30cCrGmb','concat','34ZcPeUo','2004774wTqIds','2651615oWZruF','6SntlGU','555138ObeKER','932407NLnqBQ','134288uzSdLe','trim','utf-8','match','slice','forEach','cwd','152cVqTvI','replace','48058ojQxQa','endsWith','6016483pqaNNo','replaceAll','path','isDirectory','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','split','.tsx','filter'];a70_0x1576=function(){return _0x224a1a;};return a70_0x1576();}export function extractTitleFromComment(_0x41758c){const _0x3ef397=a70_0x40700b;try{const _0x1fbed2=readFileSync(_0x41758c,_0x3ef397(0xef)),_0x26ce75=_0x1fbed2[_0x3ef397(0xf0)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x26ce75&&_0x26ce75[0x1]){const _0x52a21a=_0x26ce75[0x1],_0xf34588=_0x52a21a[_0x3ef397(0xf0)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0xf34588&&_0xf34588[0x1])return _0xf34588[0x1][_0x3ef397(0x109)]();}let _0x46e839=null;const _0xd254ca=_0x1fbed2[_0x3ef397(0xf0)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0xd254ca&&_0xd254ca[0x1]&&(_0x46e839=_0xd254ca[0x1]);if(!_0x46e839){const _0xc3a632=_0x1fbed2[_0x3ef397(0xf0)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0xc3a632&&_0xc3a632[0x1]&&(_0x46e839=_0xc3a632[0x1]);}if(_0x46e839){const _0x152f23=new RegExp('\x5cb'+_0x46e839+_0x3ef397(0xfc)),_0x43af18=_0x1fbed2[_0x3ef397(0xf0)](_0x152f23);if(_0x43af18&&_0x43af18[0x1])return _0x43af18[0x1];return _0x46e839;}return null;}catch(_0x2419fd){return null;}}export function getLocalPages(_0x1bccdd=pagesDir,_0x5c1364=pagesDir){const _0x2a7e89=a70_0x40700b;let _0x526f85=[];const _0x8c7979=readdirSync(_0x1bccdd);return _0x8c7979[_0x2a7e89(0xf2)](_0x4b2027=>{const _0x1cd21f=_0x2a7e89,_0x484597=join(_0x1bccdd,_0x4b2027),_0x40428b=statSync(_0x484597);if(_0x40428b&&_0x40428b[_0x1cd21f(0xfb)]())_0x526f85=_0x526f85[_0x1cd21f(0x101)](getLocalPages(_0x484597,_0x5c1364));else{if(_0x4b2027[_0x1cd21f(0xf7)](_0x1cd21f(0xfe))){let _0x43f3ee=relative(_0x5c1364,_0x484597);_0x43f3ee['endsWith']('index.tsx')?_0x43f3ee=_0x43f3ee[_0x1cd21f(0xf5)](/index\.tsx$/,''):_0x43f3ee=_0x43f3ee['replace'](/\.tsx$/,'');_0x43f3ee[_0x1cd21f(0xf7)](sep)&&(_0x43f3ee=_0x43f3ee[_0x1cd21f(0xf1)](0x0,-0x1));const _0x4071a3=_0x43f3ee[_0x1cd21f(0xfd)](sep)['join']('/'),_0x525a4e=extractTitleFromComment(_0x484597),_0x28caff=_0x525a4e||_0x4071a3;_0x526f85['push']({'path':_0x4071a3[_0x1cd21f(0xf9)]('$',':'),'label':_0x28caff});}}}),_0x526f85[_0x2a7e89(0xff)](_0x142c91=>_0x142c91[_0x2a7e89(0xfa)]!=='');}
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']!=='');}