@lovrabet/rabetbase-cli 2.1.2 → 2.1.4

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 (187) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -0
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.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/page/generate-start.js +1 -0
  81. package/lib/commands/page/generate-status.js +1 -0
  82. package/lib/commands/page/index.js +1 -0
  83. package/lib/commands/page/pull.js +1 -0
  84. package/lib/commands/page/push.js +1 -0
  85. package/lib/commands/page/shared.js +1 -0
  86. package/lib/commands/page/standard-page-status.js +1 -0
  87. package/lib/commands/page/sync.js +1 -0
  88. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  89. package/lib/commands/project/create/format-elapsed.js +1 -1
  90. package/lib/commands/project/create/main.js +1 -1
  91. package/lib/commands/project/create/non-interactive.js +1 -1
  92. package/lib/commands/project/create/project-template-path.js +1 -1
  93. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  94. package/lib/commands/project/create/use-format-code.js +1 -1
  95. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  96. package/lib/commands/project/index.js +1 -1
  97. package/lib/commands/project/init.js +1 -1
  98. package/lib/commands/project/upgrade.js +1 -1
  99. package/lib/commands/registry.js +1 -1
  100. package/lib/commands/run/index.js +1 -1
  101. package/lib/commands/schema.js +1 -1
  102. package/lib/commands/skill/index.js +1 -1
  103. package/lib/commands/sql/create.js +1 -0
  104. package/lib/commands/sql/delete.js +1 -0
  105. package/lib/commands/sql/detail.js +1 -1
  106. package/lib/commands/sql/exec.js +1 -1
  107. package/lib/commands/sql/index.js +1 -1
  108. package/lib/commands/sql/list.js +1 -1
  109. package/lib/commands/sql/pull.js +1 -1
  110. package/lib/commands/sql/push.js +1 -0
  111. package/lib/commands/sql/save.js +1 -1
  112. package/lib/commands/sql/shared.js +1 -1
  113. package/lib/commands/sql/status.js +1 -0
  114. package/lib/commands/sql/validate.js +1 -1
  115. package/lib/config/schema.js +1 -1
  116. package/lib/constant/cdn.js +1 -0
  117. package/lib/constant/cli.js +1 -1
  118. package/lib/constant/defaults.js +1 -1
  119. package/lib/constant/domain.js +1 -1
  120. package/lib/constant/env.js +1 -1
  121. package/lib/constant/output.js +1 -1
  122. package/lib/constant/paths.js +1 -1
  123. package/lib/constant/risk.js +1 -1
  124. package/lib/context.js +1 -1
  125. package/lib/core/alias-resolver.js +1 -1
  126. package/lib/core/api-client.js +1 -1
  127. package/lib/core/bff/config.js +1 -1
  128. package/lib/core/bff/file-system.js +1 -1
  129. package/lib/core/bff/hash.js +1 -1
  130. package/lib/core/bff/lock.js +1 -1
  131. package/lib/core/bff/utils.js +1 -1
  132. package/lib/core/db-resolver.js +1 -1
  133. package/lib/core/page/file-system.js +1 -0
  134. package/lib/core/page/hash.js +1 -0
  135. package/lib/core/page/lock.js +1 -0
  136. package/lib/core/page/types.js +1 -0
  137. package/lib/core/sql-sync/config.js +1 -0
  138. package/lib/core/sql-sync/file-system.js +1 -0
  139. package/lib/core/sql-sync/hash.js +1 -0
  140. package/lib/core/sql-sync/lock.js +1 -0
  141. package/lib/core/sql-sync/types.js +1 -0
  142. package/lib/core/sql-sync/utils.js +1 -0
  143. package/lib/core/sql-validator.js +1 -1
  144. package/lib/errors.js +1 -1
  145. package/lib/framework/build-all-flags.js +1 -1
  146. package/lib/framework/flags.js +1 -1
  147. package/lib/framework/help.js +1 -1
  148. package/lib/framework/index.js +1 -1
  149. package/lib/framework/output.js +1 -1
  150. package/lib/framework/response.js +1 -1
  151. package/lib/framework/runner-alias.js +1 -1
  152. package/lib/framework/runner.js +1 -1
  153. package/lib/framework/schema-export.js +1 -1
  154. package/lib/framework/types.js +1 -1
  155. package/lib/generated/build-info.js +1 -1
  156. package/lib/help.js +1 -1
  157. package/lib/skills/main.js +1 -1
  158. package/lib/skills/npx-skills-add.js +1 -1
  159. package/lib/telemetry/cli-command-trace.js +1 -1
  160. package/lib/telemetry/cli-help-trace.js +1 -1
  161. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  162. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  163. package/lib/telemetry/send-cli-trace-log.js +1 -1
  164. package/lib/utils/ai_config.js +1 -1
  165. package/lib/utils/apply-jq-filter.js +1 -1
  166. package/lib/utils/cdn-config.js +1 -1
  167. package/lib/utils/check-sdk-version.js +1 -1
  168. package/lib/utils/cli-version-check.js +1 -1
  169. package/lib/utils/cli-version-policy.js +1 -0
  170. package/lib/utils/config.js +1 -1
  171. package/lib/utils/copy-directory.js +1 -1
  172. package/lib/utils/entity-with-id.js +1 -1
  173. package/lib/utils/file-utils.js +1 -1
  174. package/lib/utils/guides-cdn.js +1 -1
  175. package/lib/utils/http-client.js +1 -1
  176. package/lib/utils/is-non-interactive.js +1 -1
  177. package/lib/utils/logger.js +1 -1
  178. package/lib/utils/platform.js +1 -1
  179. package/lib/utils/rules-cdn.js +1 -1
  180. package/lib/utils/sleep.js +1 -1
  181. package/lib/utils/template-replacer.js +1 -1
  182. package/lib/utils/version.js +1 -1
  183. package/lib/utils/with-active-cookie.js +1 -1
  184. package/lib/utils/write-cli-side-channel.js +1 -1
  185. package/package.json +3 -2
  186. package/templates/skill/SKILL.md.tpl +1 -1
  187. package/lib/commands/bff/new.js +0 -1
@@ -1 +1 @@
1
- function a145_0x43e2(_0x40794b,_0x4018f0){_0x40794b=_0x40794b-0x1a1;const _0x5823ca=a145_0x5823();let _0x43e2e6=_0x5823ca[_0x40794b];return _0x43e2e6;}const a145_0x100431=a145_0x43e2;(function(_0x565bbd,_0x1a1256){const _0x10bd76=a145_0x43e2,_0x293033=_0x565bbd();while(!![]){try{const _0x424b8d=-parseInt(_0x10bd76(0x1a8))/0x1*(parseInt(_0x10bd76(0x1c9))/0x2)+parseInt(_0x10bd76(0x1ae))/0x3*(parseInt(_0x10bd76(0x1c4))/0x4)+parseInt(_0x10bd76(0x1ab))/0x5*(-parseInt(_0x10bd76(0x1b3))/0x6)+parseInt(_0x10bd76(0x1be))/0x7+-parseInt(_0x10bd76(0x1b1))/0x8+parseInt(_0x10bd76(0x1c7))/0x9*(parseInt(_0x10bd76(0x1bb))/0xa)+-parseInt(_0x10bd76(0x1cc))/0xb*(-parseInt(_0x10bd76(0x1a4))/0xc);if(_0x424b8d===_0x1a1256)break;else _0x293033['push'](_0x293033['shift']());}catch(_0x570b39){_0x293033['push'](_0x293033['shift']());}}}(a145_0x5823,0x92be7));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a145_0x5823(){const _0x5f10dc=['2XpQcql','validation','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','1738bJHeDn','appCode','str','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','dbdesc','\x20and\x20started\x20analysis','create','91296sTPrzh','Created\x20db\x20link\x20','write','autostart','932699hLFBiN','boolean','dbparam','4902085NdKXSu','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','message','1293AlJecx','dbtype','bool','3799944DEHZto','Human-readable\x20description','6AfyKlR','Host\x20and\x20port:\x20host:port','dbversion','join','dburl','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Extra\x20JDBC-style\x20connection\x20parameters\x20string','POST','2464960uVFzoy','8.0','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','1163575KBgibW','username','trim','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','[redacted]','dbname','8180gaQDYg','Database\x20username','password','27sTSGlT','string'];a145_0x5823=function(){return _0x5f10dc;};return a145_0x5823();}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a145_0x100431(0x1a3),'description':a145_0x100431(0x1ac),'risk':a145_0x100431(0x1a6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a145_0x100431(0x1c8),'required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a145_0x100431(0x1b5),'type':'string','description':a145_0x100431(0x1cf),'default':'8.0'},{'name':a145_0x100431(0x1b7),'type':a145_0x100431(0x1c8),'required':!![],'description':a145_0x100431(0x1b4)},{'name':'username','type':a145_0x100431(0x1c8),'required':!![],'description':a145_0x100431(0x1c5)},{'name':a145_0x100431(0x1c6),'type':a145_0x100431(0x1c8),'required':!![],'description':'Database\x20password'},{'name':a145_0x100431(0x1aa),'type':a145_0x100431(0x1c8),'description':a145_0x100431(0x1b9)},{'name':a145_0x100431(0x1a1),'type':'string','description':a145_0x100431(0x1b2)},{'name':a145_0x100431(0x1a7),'type':a145_0x100431(0x1a9),'description':a145_0x100431(0x1c1),'default':![]}],async 'validate'(_0x3d1c1d){const _0x311c2c=a145_0x100431,_0x3f10b7=_0x3d1c1d['str'](_0x311c2c(0x1b7))[_0x311c2c(0x1c0)]();if(!validateDbUrl(_0x3f10b7))throw CliErrors[_0x311c2c(0x1ca)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3f10b7+'\x22',_0x311c2c(0x1b8));},async 'dryRun'(_0x4ab487){const _0x4698f3=a145_0x100431,_0x43ca16={'appCode':_0x4ab487['appCode'],'dbName':_0x4ab487['str'](_0x4698f3(0x1c3)),'dbType':_0x4ab487['str'](_0x4698f3(0x1af)),'dbVersion':_0x4ab487[_0x4698f3(0x1ce)](_0x4698f3(0x1b5))||_0x4698f3(0x1bc),'dbUrl':_0x4ab487[_0x4698f3(0x1ce)]('dburl')[_0x4698f3(0x1c0)](),'username':_0x4ab487[_0x4698f3(0x1ce)](_0x4698f3(0x1bf)),'password':_0x4698f3(0x1c2),..._0x4ab487['str'](_0x4698f3(0x1aa))?{'dbParam':_0x4ab487[_0x4698f3(0x1ce)](_0x4698f3(0x1aa))}:{},..._0x4ab487['str'](_0x4698f3(0x1a1))?{'dbDesc':_0x4ab487['str'](_0x4698f3(0x1a1))}:{}};return{'method':_0x4698f3(0x1ba),'url':'/smartapi/dblink/create','body':_0x43ca16,'description':['Create\x20dblink',_0x4ab487['bool'](_0x4698f3(0x1a7))?_0x4698f3(0x1bd):'No\x20follow-up\x20analysis'][_0x4698f3(0x1b6)]('\x0a')};},async 'execute'(_0x562cb3){const _0x15b9be=a145_0x100431,_0x6fda37={'appCode':_0x562cb3[_0x15b9be(0x1cd)],'dbName':_0x562cb3[_0x15b9be(0x1ce)]('dbname'),'dbType':_0x562cb3['str'](_0x15b9be(0x1af)),'dbVersion':_0x562cb3[_0x15b9be(0x1ce)]('dbversion')||'8.0','dbUrl':_0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1b7))['trim'](),'username':_0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1bf)),'password':_0x562cb3[_0x15b9be(0x1ce)]('password'),..._0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1aa))?{'dbParam':_0x562cb3['str']('dbparam')}:{},..._0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1a1))?{'dbDesc':_0x562cb3['str'](_0x15b9be(0x1a1))}:{}},{id:_0x140848,entity:_0x780ebe}=normalizeEntityWithIdResponse(await createDbLink(_0x6fda37));if(!_0x140848)return{'ok':![],'message':_0x15b9be(0x1cb),'data':sanitizeDbLinkForOutput(_0x780ebe)};let _0x303243,_0x4a9e62;if(_0x562cb3[_0x15b9be(0x1b0)](_0x15b9be(0x1a7)))try{_0x303243=await startDbAnalysis(_0x140848);}catch(_0x14f3bb){_0x4a9e62=_0x14f3bb instanceof Error?_0x14f3bb[_0x15b9be(0x1ad)]:String(_0x14f3bb);}const _0x5bc25a={'connection':sanitizeDbLinkForOutput(_0x780ebe),..._0x303243?{'analysisPlanId':_0x303243}:{},..._0x4a9e62?{'analysisStartWarning':_0x4a9e62}:{}};let _0x235c07;return _0x562cb3['bool'](_0x15b9be(0x1a7))?_0x4a9e62?_0x235c07='Created\x20db\x20link\x20'+_0x140848+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x235c07=_0x15b9be(0x1a5)+_0x140848+_0x15b9be(0x1a2):_0x235c07=_0x15b9be(0x1a5)+_0x140848,{'ok':!![],'data':_0x5bc25a,'message':_0x235c07};}};
1
+ const a54_0x2ded72=a54_0x50b2;function a54_0xd950(){const _0x186997=['dbparam','appCode','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','message','848325FJwuuB','dbtype','[redacted]','password','Database\x20password','386uRDdQy','2131vhMXWa','8.0','bool','Created\x20db\x20link\x20','8TzIFhC','username','612LPTAes','Database\x20username','/smartapi/dblink/create','autostart','POST','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','21632KLJPcx',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','5583985rXShrI','write','boolean','str','trim','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Human-readable\x20description','dbname','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','132970cKNnBV','validation','dbdesc','string','dbversion','903GsdnRT','1716189yBifOL','6503670GpBKkD','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','join','Create\x20dblink','No\x20follow-up\x20analysis','dburl','Extra\x20JDBC-style\x20connection\x20parameters\x20string'];a54_0xd950=function(){return _0x186997;};return a54_0xd950();}(function(_0x26336b,_0x120198){const _0xaad3ae=a54_0x50b2,_0x40f018=_0x26336b();while(!![]){try{const _0x38ecbe=-parseInt(_0xaad3ae(0xc7))/0x1*(parseInt(_0xaad3ae(0xc6))/0x2)+parseInt(_0xaad3ae(0xe5))/0x3*(parseInt(_0xaad3ae(0xcb))/0x4)+-parseInt(_0xaad3ae(0xc1))/0x5+parseInt(_0xaad3ae(0xe6))/0x6+parseInt(_0xaad3ae(0xe4))/0x7*(parseInt(_0xaad3ae(0xd4))/0x8)+parseInt(_0xaad3ae(0xcd))/0x9*(-parseInt(_0xaad3ae(0xdf))/0xa)+-parseInt(_0xaad3ae(0xd6))/0xb;if(_0x38ecbe===_0x120198)break;else _0x40f018['push'](_0x40f018['shift']());}catch(_0x29d6a8){_0x40f018['push'](_0x40f018['shift']());}}}(a54_0xd950,0x8e9ac));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a54_0x50b2(_0x56d7e7,_0xbf9ed0){_0x56d7e7=_0x56d7e7-0xbe;const _0xd950a9=a54_0xd950();let _0x50b234=_0xd950a9[_0x56d7e7];return _0x50b234;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a54_0x2ded72(0xd7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a54_0x2ded72(0xdd),'type':a54_0x2ded72(0xe2),'required':!![],'description':a54_0x2ded72(0xdb)},DB_TYPE_FLAG,{'name':a54_0x2ded72(0xe3),'type':'string','description':a54_0x2ded72(0xde),'default':'8.0'},{'name':a54_0x2ded72(0xeb),'type':'string','required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':a54_0x2ded72(0xcc),'type':a54_0x2ded72(0xe2),'required':!![],'description':a54_0x2ded72(0xce)},{'name':a54_0x2ded72(0xc4),'type':a54_0x2ded72(0xe2),'required':!![],'description':a54_0x2ded72(0xc5)},{'name':'dbparam','type':a54_0x2ded72(0xe2),'description':a54_0x2ded72(0xec)},{'name':'dbdesc','type':a54_0x2ded72(0xe2),'description':a54_0x2ded72(0xdc)},{'name':'autostart','type':a54_0x2ded72(0xd8),'description':a54_0x2ded72(0xbf),'default':![]}],async 'validate'(_0x4cfd89){const _0x49efc3=a54_0x2ded72,_0x2c9339=_0x4cfd89[_0x49efc3(0xd9)](_0x49efc3(0xeb))[_0x49efc3(0xda)]();if(!validateDbUrl(_0x2c9339))throw CliErrors[_0x49efc3(0xe0)](_0x49efc3(0xd2)+_0x2c9339+'\x22',_0x49efc3(0xd3));},async 'dryRun'(_0x1ed776){const _0x172729=a54_0x2ded72,_0x46cd0b={'appCode':_0x1ed776['appCode'],'dbName':_0x1ed776['str']('dbname'),'dbType':_0x1ed776['str']('dbtype'),'dbVersion':_0x1ed776['str'](_0x172729(0xe3))||'8.0','dbUrl':_0x1ed776[_0x172729(0xd9)]('dburl')[_0x172729(0xda)](),'username':_0x1ed776[_0x172729(0xd9)]('username'),'password':_0x172729(0xc3),..._0x1ed776[_0x172729(0xd9)]('dbparam')?{'dbParam':_0x1ed776[_0x172729(0xd9)](_0x172729(0xed))}:{},..._0x1ed776[_0x172729(0xd9)]('dbdesc')?{'dbDesc':_0x1ed776['str'](_0x172729(0xe1))}:{}};return{'method':_0x172729(0xd1),'url':_0x172729(0xcf),'body':_0x46cd0b,'description':[_0x172729(0xe9),_0x1ed776[_0x172729(0xc9)]('autostart')?_0x172729(0xe7):_0x172729(0xea)][_0x172729(0xe8)]('\x0a')};},async 'execute'(_0x41e989){const _0x33d7e8=a54_0x2ded72,_0x327dbc={'appCode':_0x41e989[_0x33d7e8(0xee)],'dbName':_0x41e989[_0x33d7e8(0xd9)](_0x33d7e8(0xdd)),'dbType':_0x41e989['str'](_0x33d7e8(0xc2)),'dbVersion':_0x41e989[_0x33d7e8(0xd9)](_0x33d7e8(0xe3))||_0x33d7e8(0xc8),'dbUrl':_0x41e989[_0x33d7e8(0xd9)](_0x33d7e8(0xeb))[_0x33d7e8(0xda)](),'username':_0x41e989['str']('username'),'password':_0x41e989[_0x33d7e8(0xd9)](_0x33d7e8(0xc4)),..._0x41e989[_0x33d7e8(0xd9)]('dbparam')?{'dbParam':_0x41e989[_0x33d7e8(0xd9)](_0x33d7e8(0xed))}:{},..._0x41e989[_0x33d7e8(0xd9)]('dbdesc')?{'dbDesc':_0x41e989['str'](_0x33d7e8(0xe1))}:{}},{id:_0x532ab6,entity:_0x119f0e}=normalizeEntityWithIdResponse(await createDbLink(_0x327dbc));if(!_0x532ab6)return{'ok':![],'message':_0x33d7e8(0xbe),'data':sanitizeDbLinkForOutput(_0x119f0e)};let _0x4db0c5,_0x5dc74e;if(_0x41e989[_0x33d7e8(0xc9)](_0x33d7e8(0xd0)))try{_0x4db0c5=await startDbAnalysis(_0x532ab6);}catch(_0x5b7077){_0x5dc74e=_0x5b7077 instanceof Error?_0x5b7077[_0x33d7e8(0xc0)]:String(_0x5b7077);}const _0x10b3b2={'connection':sanitizeDbLinkForOutput(_0x119f0e),..._0x4db0c5?{'analysisPlanId':_0x4db0c5}:{},..._0x5dc74e?{'analysisStartWarning':_0x5dc74e}:{}};let _0x2f85c9;return _0x41e989[_0x33d7e8(0xc9)](_0x33d7e8(0xd0))?_0x5dc74e?_0x2f85c9=_0x33d7e8(0xca)+_0x532ab6+_0x33d7e8(0xd5):_0x2f85c9=_0x33d7e8(0xca)+_0x532ab6+'\x20and\x20started\x20analysis':_0x2f85c9='Created\x20db\x20link\x20'+_0x532ab6,{'ok':!![],'data':_0x10b3b2,'message':_0x2f85c9};}};
@@ -1 +1 @@
1
- const a134_0x52d0f2=a134_0x1163;(function(_0x1e2a69,_0x3d92a6){const _0x1a149c=a134_0x1163,_0x413ddd=_0x1e2a69();while(!![]){try{const _0x231788=parseInt(_0x1a149c(0xd7))/0x1+-parseInt(_0x1a149c(0xe1))/0x2+-parseInt(_0x1a149c(0xd8))/0x3*(-parseInt(_0x1a149c(0xd4))/0x4)+-parseInt(_0x1a149c(0xe0))/0x5*(parseInt(_0x1a149c(0xe2))/0x6)+-parseInt(_0x1a149c(0xdd))/0x7*(-parseInt(_0x1a149c(0xdf))/0x8)+parseInt(_0x1a149c(0xd5))/0x9*(parseInt(_0x1a149c(0xde))/0xa)+parseInt(_0x1a149c(0xd6))/0xb;if(_0x231788===_0x3d92a6)break;else _0x413ddd['push'](_0x413ddd['shift']());}catch(_0x22fd5f){_0x413ddd['push'](_0x413ddd['shift']());}}}(a134_0x3458,0x848e6));function a134_0x1163(_0x5f3b50,_0xcef678){_0x5f3b50=_0x5f3b50-0xd4;const _0x3458d7=a134_0x3458();let _0x1163bf=_0x3458d7[_0x5f3b50];return _0x1163bf;}import{deleteDbLink}from'../../core/api-client.js';function a134_0x3458(){const _0x447610=['delete','num','49fhFQwV','814620dhtqJL','123496vznndH','725hpdMLv','1696722WQjnTp','34218AfVIbK','695360PSaVdT','45TXXSbf','10584310aSCTpf','566827VlZraM','3uXEkYd','Deleted\x20db\x20link\x20','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently'];a134_0x3458=function(){return _0x447610;};return a134_0x3458();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a134_0x52d0f2(0xdb),'description':a134_0x52d0f2(0xda),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3aa79c){const _0x2da956=a134_0x52d0f2,_0x2534e3=_0x3aa79c[_0x2da956(0xdc)]('id');return await deleteDbLink(_0x2534e3),{'ok':!![],'data':{'id':_0x2534e3,'deleted':!![]},'message':_0x2da956(0xd9)+_0x2534e3};}};
1
+ function a55_0x42ae(){const _0x3d7c7c=['11903sXJpNH','240njlMKP','1007120Cmrmsc','962465VOXlzt','155GMabuy','4629AeaAbg','delete','1232826BNiRyj','high-risk-write','159138cdKMsG','27116CVmohx','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','190hccMOz','num'];a55_0x42ae=function(){return _0x3d7c7c;};return a55_0x42ae();}function a55_0x148e(_0x547ef1,_0x3e16f4){_0x547ef1=_0x547ef1-0x1f2;const _0x42aed3=a55_0x42ae();let _0x148e58=_0x42aed3[_0x547ef1];return _0x148e58;}const a55_0x4d4dea=a55_0x148e;(function(_0x350cf1,_0x41acd5){const _0x6fcea=a55_0x148e,_0x4fa4b9=_0x350cf1();while(!![]){try{const _0x2dcdf3=parseInt(_0x6fcea(0x1f6))/0x1+-parseInt(_0x6fcea(0x1f4))/0x2*(parseInt(_0x6fcea(0x1fb))/0x3)+parseInt(_0x6fcea(0x1f2))/0x4*(-parseInt(_0x6fcea(0x1fa))/0x5)+-parseInt(_0x6fcea(0x1fd))/0x6+parseInt(_0x6fcea(0x1f9))/0x7+parseInt(_0x6fcea(0x1f8))/0x8+parseInt(_0x6fcea(0x1ff))/0x9*(parseInt(_0x6fcea(0x1f7))/0xa);if(_0x2dcdf3===_0x41acd5)break;else _0x4fa4b9['push'](_0x4fa4b9['shift']());}catch(_0x10075a){_0x4fa4b9['push'](_0x4fa4b9['shift']());}}}(a55_0x42ae,0x218eb));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_0x4d4dea(0x1fc),'description':a55_0x4d4dea(0x1f3),'risk':a55_0x4d4dea(0x1fe),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x559c1){const _0x188671=a55_0x4d4dea,_0x45beca=_0x559c1[_0x188671(0x1f5)]('id');return await deleteDbLink(_0x45beca),{'ok':!![],'data':{'id':_0x45beca,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x45beca};}};
@@ -1 +1 @@
1
- const a141_0x2c48f6=a141_0x28eb;function a141_0x1436(){const _0x5a0de0=['2827768OqrZET','dbName','num','50856gMKbNr','detail','7608145fDXBBy','2211540aCJUTv','2621880NRBhrR','5464298OKNHWs','1rLlKur','db\x20link\x20','20386800EYfLlm','read'];a141_0x1436=function(){return _0x5a0de0;};return a141_0x1436();}(function(_0x87ac52,_0x9ad431){const _0x338a68=a141_0x28eb,_0xa0247=_0x87ac52();while(!![]){try{const _0x5611f7=parseInt(_0x338a68(0xef))/0x1*(parseInt(_0x338a68(0xf3))/0x2)+-parseInt(_0x338a68(0xfa))/0x3+parseInt(_0x338a68(0xf9))/0x4+parseInt(_0x338a68(0xf8))/0x5+-parseInt(_0x338a68(0xf6))/0x6+parseInt(_0x338a68(0xfb))/0x7+-parseInt(_0x338a68(0xf1))/0x8;if(_0x5611f7===_0x9ad431)break;else _0xa0247['push'](_0xa0247['shift']());}catch(_0x2c1179){_0xa0247['push'](_0xa0247['shift']());}}}(a141_0x1436,0xcca52));import{getDbLinkInfo}from'../../core/api-client.js';function a141_0x28eb(_0x10ad4e,_0x42860a){_0x10ad4e=_0x10ad4e-0xef;const _0x1436f7=a141_0x1436();let _0x28eb01=_0x1436f7[_0x10ad4e];return _0x28eb01;}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':a141_0x2c48f6(0xf7),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a141_0x2c48f6(0xf2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5e7713){const _0x45503b=a141_0x2c48f6,_0x2be1d0=_0x5e7713[_0x45503b(0xf5)]('id'),_0x3c9776=await getDbLinkInfo(_0x2be1d0);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3c9776),'message':_0x45503b(0xf0)+_0x2be1d0+':\x20'+_0x3c9776[_0x45503b(0xf4)]};}};
1
+ const a56_0x1b7096=a56_0x45d1;function a56_0x54b5(){const _0x1c6ad5=['678176kjNmPo','597536SnIOpR','read','1379880heFFEM','18RGsThG','49kvivXg','314210xOipcY','84327mrsLgx','43506BuqNeu','96612Suhdlk','num','9oAZnrU','dbName'];a56_0x54b5=function(){return _0x1c6ad5;};return a56_0x54b5();}function a56_0x45d1(_0x1abd3e,_0x8efdab){_0x1abd3e=_0x1abd3e-0x13d;const _0x54b5f3=a56_0x54b5();let _0x45d172=_0x54b5f3[_0x1abd3e];return _0x45d172;}(function(_0x3d1178,_0x210c6a){const _0x1cbb79=a56_0x45d1,_0x778fb1=_0x3d1178();while(!![]){try{const _0x11e631=-parseInt(_0x1cbb79(0x145))/0x1+-parseInt(_0x1cbb79(0x141))/0x2*(parseInt(_0x1cbb79(0x144))/0x3)+parseInt(_0x1cbb79(0x13d))/0x4+-parseInt(_0x1cbb79(0x143))/0x5+-parseInt(_0x1cbb79(0x146))/0x6*(-parseInt(_0x1cbb79(0x142))/0x7)+parseInt(_0x1cbb79(0x13e))/0x8+-parseInt(_0x1cbb79(0x148))/0x9*(-parseInt(_0x1cbb79(0x140))/0xa);if(_0x11e631===_0x210c6a)break;else _0x778fb1['push'](_0x778fb1['shift']());}catch(_0x3d4208){_0x778fb1['push'](_0x778fb1['shift']());}}}(a56_0x54b5,0x211b9));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':'detail','description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a56_0x1b7096(0x13f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x18bd91){const _0x158ad5=a56_0x1b7096,_0x410701=_0x18bd91[_0x158ad5(0x147)]('id'),_0x33575e=await getDbLinkInfo(_0x410701);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x33575e),'message':'db\x20link\x20'+_0x410701+':\x20'+_0x33575e[_0x158ad5(0x149)]};}};
@@ -1 +1 @@
1
- const a136_0x11f624=a136_0x78b0;(function(_0x3f534a,_0x408b1a){const _0x29474d=a136_0x78b0,_0xb9ed68=_0x3f534a();while(!![]){try{const _0x278792=parseInt(_0x29474d(0x102))/0x1*(parseInt(_0x29474d(0xfd))/0x2)+parseInt(_0x29474d(0xef))/0x3+parseInt(_0x29474d(0xfa))/0x4*(parseInt(_0x29474d(0x103))/0x5)+-parseInt(_0x29474d(0xf2))/0x6+parseInt(_0x29474d(0xff))/0x7*(-parseInt(_0x29474d(0xf4))/0x8)+parseInt(_0x29474d(0xed))/0x9*(parseInt(_0x29474d(0xf7))/0xa)+-parseInt(_0x29474d(0x100))/0xb*(parseInt(_0x29474d(0xfb))/0xc);if(_0x278792===_0x408b1a)break;else _0xb9ed68['push'](_0xb9ed68['shift']());}catch(_0x260f90){_0xb9ed68['push'](_0xb9ed68['shift']());}}}(a136_0x33fe,0xabd92));function a136_0x33fe(){const _0x108022=['103aPNEXw','5YxRBiR','\x20row(s),\x20total\x20','\x20(db\x20link\x20','page','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','appCode','10017819NrqPGm','length','3653814cVsKuA','table','string','3024576UVpxwc','num','432IOcXPk','number','Page\x20size','10LTUVah','Page\x20index\x20(1-based)','pagesize','198804eZhhNB','36UaxqQC','diff','19598BqFwlD','read','84231NIealU','5618283PSeODA','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)'];a136_0x33fe=function(){return _0x108022;};return a136_0x33fe();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a136_0x78b0(_0x5f4942,_0x2aca31){_0x5f4942=_0x5f4942-0xeb;const _0x33fea0=a136_0x33fe();let _0x78b054=_0x33fea0[_0x5f4942];return _0x78b054;}export const dbDiff={'service':'db','command':a136_0x11f624(0xfc),'description':a136_0x11f624(0x101),'risk':a136_0x11f624(0xfe),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a136_0x11f624(0xf0),'type':a136_0x11f624(0xf1),'description':a136_0x11f624(0xeb)},{'name':a136_0x11f624(0x106),'type':a136_0x11f624(0xf5),'description':a136_0x11f624(0xf8),'default':0x1},{'name':a136_0x11f624(0xf9),'type':a136_0x11f624(0xf5),'description':a136_0x11f624(0xf6),'default':0x14}],async 'execute'(_0x587bfc){const _0x2aebd2=a136_0x11f624,_0x2a3197=_0x587bfc[_0x2aebd2(0xf3)]('id'),_0x4dbcdc=_0x587bfc['num'](_0x2aebd2(0x106),0x1)||0x1,_0x586f68=_0x587bfc['num'](_0x2aebd2(0xf9),0x14)||0x14,_0x2bf773=_0x587bfc['str'](_0x2aebd2(0xf0))||undefined,{totalCount:_0x86065d,tableList:_0x5b6eac}=await getDbTableDiff(_0x587bfc[_0x2aebd2(0xec)],_0x2a3197,{'pageIndex':_0x4dbcdc,'pageSize':_0x586f68,'tableName':_0x2bf773});return{'ok':!![],'data':{'dbLinkId':_0x2a3197,'page':_0x4dbcdc,'pageSize':_0x586f68,'totalCount':_0x86065d,'tableList':_0x5b6eac},'message':_0x5b6eac[_0x2aebd2(0xee)]+_0x2aebd2(0x104)+_0x86065d+_0x2aebd2(0x105)+_0x2a3197+')'};}};
1
+ const a57_0x54d854=a57_0xff04;function a57_0xff04(_0x3fd676,_0xf539e6){_0x3fd676=_0x3fd676-0x7c;const _0x1f3e99=a57_0x1f3e();let _0xff04af=_0x1f3e99[_0x3fd676];return _0xff04af;}(function(_0xb3e455,_0x38ae1c){const _0x412ac8=a57_0xff04,_0x26d158=_0xb3e455();while(!![]){try{const _0x1c3ab4=parseInt(_0x412ac8(0x7e))/0x1*(-parseInt(_0x412ac8(0x88))/0x2)+parseInt(_0x412ac8(0x8f))/0x3+-parseInt(_0x412ac8(0x8e))/0x4*(-parseInt(_0x412ac8(0x85))/0x5)+-parseInt(_0x412ac8(0x8c))/0x6+-parseInt(_0x412ac8(0x7d))/0x7*(-parseInt(_0x412ac8(0x83))/0x8)+parseInt(_0x412ac8(0x92))/0x9*(parseInt(_0x412ac8(0x84))/0xa)+parseInt(_0x412ac8(0x90))/0xb;if(_0x1c3ab4===_0x38ae1c)break;else _0x26d158['push'](_0x26d158['shift']());}catch(_0x46b7d7){_0x26d158['push'](_0x26d158['shift']());}}}(a57_0x1f3e,0x6c83f));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':a57_0x54d854(0x81),'risk':a57_0x54d854(0x7c),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a57_0x54d854(0x86),'type':'string','description':a57_0x54d854(0x87)},{'name':a57_0x54d854(0x91),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a57_0x54d854(0x7f),'type':a57_0x54d854(0x8d),'description':'Page\x20size','default':0x14}],async 'execute'(_0x121514){const _0x3c7094=a57_0x54d854,_0x29806f=_0x121514[_0x3c7094(0x8a)]('id'),_0x237ce9=_0x121514['num'](_0x3c7094(0x91),0x1)||0x1,_0x390815=_0x121514['num'](_0x3c7094(0x7f),0x14)||0x14,_0x102dde=_0x121514[_0x3c7094(0x80)]('table')||undefined,{totalCount:_0xa83ed1,tableList:_0x2a8a2f}=await getDbTableDiff(_0x121514[_0x3c7094(0x82)],_0x29806f,{'pageIndex':_0x237ce9,'pageSize':_0x390815,'tableName':_0x102dde});return{'ok':!![],'data':{'dbLinkId':_0x29806f,'page':_0x237ce9,'pageSize':_0x390815,'totalCount':_0xa83ed1,'tableList':_0x2a8a2f},'message':_0x2a8a2f[_0x3c7094(0x89)]+'\x20row(s),\x20total\x20'+_0xa83ed1+_0x3c7094(0x8b)+_0x29806f+')'};}};function a57_0x1f3e(){const _0x2bc13a=['10RqBecF','642780WvOGUo','table','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','730nelaMN','length','num','\x20(db\x20link\x20','2880402Ezzdla','number','16LFblHy','459951FuGdZn','3072212adOdSh','page','1007289XyqYKL','read','528997ARegrt','1817hkOSCb','pagesize','str','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','appCode','56xuwdVh'];a57_0x1f3e=function(){return _0x2bc13a;};return a57_0x1f3e();}
@@ -1 +1 @@
1
- (function(_0x161560,_0x320e24){const _0x502946=a140_0x143e,_0x5d488f=_0x161560();while(!![]){try{const _0xbd04f0=parseInt(_0x502946(0x1fa))/0x1+-parseInt(_0x502946(0x1fc))/0x2*(-parseInt(_0x502946(0x1f4))/0x3)+-parseInt(_0x502946(0x1f6))/0x4+parseInt(_0x502946(0x1f8))/0x5+parseInt(_0x502946(0x1fb))/0x6*(-parseInt(_0x502946(0x1f7))/0x7)+parseInt(_0x502946(0x1f5))/0x8*(parseInt(_0x502946(0x1fd))/0x9)+-parseInt(_0x502946(0x1f9))/0xa;if(_0xbd04f0===_0x320e24)break;else _0x5d488f['push'](_0x5d488f['shift']());}catch(_0x1a9ce4){_0x5d488f['push'](_0x5d488f['shift']());}}}(a140_0x31a2,0x68cda));function a140_0x31a2(){const _0x1890be=['5427LlIYUE','6821032NdPvAi','3369024eQjZMq','96747DyPRwA','2378125UdaJag','5330130lXqNml','180201ixykHQ','228DiVTdr','908USuvSy','9CIllOu'];a140_0x31a2=function(){return _0x1890be;};return a140_0x31a2();}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a140_0x143e(_0x5b70cb,_0x4ddb8f){_0x5b70cb=_0x5b70cb-0x1f4;const _0x31a21b=a140_0x31a2();let _0x143ecd=_0x31a21b[_0x5b70cb];return _0x143ecd;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x3426ab,_0xed4757){const _0xef8dcd=a58_0x23af,_0x32379e=_0x3426ab();while(!![]){try{const _0x17dc01=parseInt(_0xef8dcd(0x194))/0x1+parseInt(_0xef8dcd(0x199))/0x2*(parseInt(_0xef8dcd(0x190))/0x3)+-parseInt(_0xef8dcd(0x191))/0x4*(parseInt(_0xef8dcd(0x18f))/0x5)+parseInt(_0xef8dcd(0x196))/0x6*(parseInt(_0xef8dcd(0x192))/0x7)+parseInt(_0xef8dcd(0x195))/0x8*(-parseInt(_0xef8dcd(0x193))/0x9)+-parseInt(_0xef8dcd(0x19a))/0xa*(parseInt(_0xef8dcd(0x198))/0xb)+parseInt(_0xef8dcd(0x197))/0xc;if(_0x17dc01===_0xed4757)break;else _0x32379e['push'](_0x32379e['shift']());}catch(_0x4bcc2e){_0x32379e['push'](_0x32379e['shift']());}}}(a58_0x5069,0x93934));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';function a58_0x5069(){const _0x5d35e2=['30NWMbEU','22630500NmbSDl','3113KYrEhg','207034Emxbjy','41860urBLwB','5itYNmO','6OLssEk','2258276gXestK','122927ExbmVn','177651rIdHIZ','508524PXWNcn','136THxDJr'];a58_0x5069=function(){return _0x5d35e2;};return a58_0x5069();}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';function a58_0x23af(_0x5d1c58,_0x5eb102){_0x5d1c58=_0x5d1c58-0x18f;const _0x5069d1=a58_0x5069();let _0x23af1d=_0x5069d1[_0x5d1c58];return _0x23af1d;}import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- function a138_0x5842(){const _0xaa32e3=['read','list','24LkKFwL','188yFaced','234113YJpKRw','appCode','68768qfUVyq','page','592710Abcsmb','Found\x20','number','5283nDUMMT','16990sHEfnE','num','Page\x20size','length','35735UyHGFC','pagesize','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','842632WADICR','1675284ULNHWR'];a138_0x5842=function(){return _0xaa32e3;};return a138_0x5842();}const a138_0x55684c=a138_0x884e;(function(_0x293e06,_0x11430f){const _0x4b02b0=a138_0x884e,_0x25d390=_0x293e06();while(!![]){try{const _0x2e3204=parseInt(_0x4b02b0(0x1c1))/0x1+parseInt(_0x4b02b0(0x1c5))/0x2+parseInt(_0x4b02b0(0x1bc))/0x3+parseInt(_0x4b02b0(0x1c0))/0x4*(parseInt(_0x4b02b0(0x1b8))/0x5)+-parseInt(_0x4b02b0(0x1bf))/0x6*(parseInt(_0x4b02b0(0x1c3))/0x7)+-parseInt(_0x4b02b0(0x1bb))/0x8+-parseInt(_0x4b02b0(0x1c8))/0x9*(parseInt(_0x4b02b0(0x1b4))/0xa);if(_0x2e3204===_0x11430f)break;else _0x25d390['push'](_0x25d390['shift']());}catch(_0x550854){_0x25d390['push'](_0x25d390['shift']());}}}(a138_0x5842,0x450f3));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a138_0x884e(_0x6dbf1b,_0x434140){_0x6dbf1b=_0x6dbf1b-0x1b4;const _0x5842c7=a138_0x5842();let _0x884e25=_0x5842c7[_0x6dbf1b];return _0x884e25;}export const dbList={'service':'db','command':a138_0x55684c(0x1be),'description':a138_0x55684c(0x1ba),'risk':a138_0x55684c(0x1bd),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a138_0x55684c(0x1c4),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a138_0x55684c(0x1b9),'type':a138_0x55684c(0x1c7),'description':a138_0x55684c(0x1b6),'default':0x64}],async 'execute'(_0x5188ac){const _0xb04ddc=a138_0x55684c,_0x586a77=_0x5188ac[_0xb04ddc(0x1b5)](_0xb04ddc(0x1c4),0x1)||0x1,_0x565012=_0x5188ac[_0xb04ddc(0x1b5)](_0xb04ddc(0x1b9),0x64)||0x64,{items:_0x3a9e03,paging:_0x45e39e}=await listDbLinks(_0x5188ac[_0xb04ddc(0x1c2)],{'currentPage':_0x586a77,'pageSize':_0x565012}),_0x2155a9=sanitizeDbLinkList(_0x3a9e03),_0x4450ab=_0x45e39e?_0x45e39e:{'currentPage':_0x586a77,'pageSize':_0x565012,'rowsOnPage':_0x2155a9['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x2155a9,'paging':_0x4450ab},'message':_0xb04ddc(0x1c6)+_0x2155a9[_0xb04ddc(0x1b7)]+'\x20database\x20connection(s)'};}};
1
+ const a59_0x383838=a59_0x2b76;(function(_0x7ba7bf,_0x50210e){const _0x4cca34=a59_0x2b76,_0x311e85=_0x7ba7bf();while(!![]){try{const _0x386957=parseInt(_0x4cca34(0x10d))/0x1*(-parseInt(_0x4cca34(0xfb))/0x2)+-parseInt(_0x4cca34(0x10a))/0x3+parseInt(_0x4cca34(0xfc))/0x4+-parseInt(_0x4cca34(0x105))/0x5+-parseInt(_0x4cca34(0x108))/0x6+parseInt(_0x4cca34(0x102))/0x7+parseInt(_0x4cca34(0x109))/0x8*(parseInt(_0x4cca34(0x106))/0x9);if(_0x386957===_0x50210e)break;else _0x311e85['push'](_0x311e85['shift']());}catch(_0x5b47e8){_0x311e85['push'](_0x311e85['shift']());}}}(a59_0x5f24,0xb6b58));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a59_0x2b76(_0x493f3c,_0x5b53c8){_0x493f3c=_0x493f3c-0xfa;const _0x5f2464=a59_0x5f24();let _0x2b766f=_0x5f2464[_0x493f3c];return _0x2b766f;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a59_0x5f24(){const _0x11ecc8=['260441HySKWw','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','10kyWuZg','3979464twCsZl','length','num','Page\x20size','pagesize','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','3313751avBPLO','list','number','1966040yJTZQx','5231970SOumus','appCode','7273470DylTjZ','32DhRYTJ','412635YPQTkC','page','Found\x20'];a59_0x5f24=function(){return _0x11ecc8;};return a59_0x5f24();}export const dbList={'service':'db','command':a59_0x383838(0x103),'description':a59_0x383838(0xfa),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a59_0x383838(0x10b),'type':a59_0x383838(0x104),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a59_0x383838(0x104),'description':a59_0x383838(0xff),'default':0x64}],async 'execute'(_0x2a8f90){const _0x446536=a59_0x383838,_0x2a7c45=_0x2a8f90[_0x446536(0xfe)](_0x446536(0x10b),0x1)||0x1,_0x98afd7=_0x2a8f90['num'](_0x446536(0x100),0x64)||0x64,{items:_0x53576b,paging:_0x4e2c86}=await listDbLinks(_0x2a8f90[_0x446536(0x107)],{'currentPage':_0x2a7c45,'pageSize':_0x98afd7}),_0x5c00f8=sanitizeDbLinkList(_0x53576b),_0x3c0444=_0x4e2c86?_0x4e2c86:{'currentPage':_0x2a7c45,'pageSize':_0x98afd7,'rowsOnPage':_0x5c00f8[_0x446536(0xfd)],'totalCount':null,'note':_0x446536(0x101)};return{'ok':!![],'data':{'connections':_0x5c00f8,'paging':_0x3c0444},'message':_0x446536(0x10c)+_0x5c00f8[_0x446536(0xfd)]+'\x20database\x20connection(s)'};}};
@@ -1 +1 @@
1
- (function(_0x3ef47f,_0x4666b0){const _0x3e7534=a143_0x1010,_0x488374=_0x3ef47f();while(!![]){try{const _0x177c7f=parseInt(_0x3e7534(0x13f))/0x1*(parseInt(_0x3e7534(0x14f))/0x2)+-parseInt(_0x3e7534(0x14d))/0x3*(parseInt(_0x3e7534(0x14a))/0x4)+parseInt(_0x3e7534(0x13b))/0x5+-parseInt(_0x3e7534(0x151))/0x6*(parseInt(_0x3e7534(0x144))/0x7)+-parseInt(_0x3e7534(0x145))/0x8*(parseInt(_0x3e7534(0x143))/0x9)+-parseInt(_0x3e7534(0x152))/0xa+parseInt(_0x3e7534(0x140))/0xb;if(_0x177c7f===_0x4666b0)break;else _0x488374['push'](_0x488374['shift']());}catch(_0x1a0cf7){_0x488374['push'](_0x488374['shift']());}}}(a143_0x3c74,0x6a0cd));function shouldRedactKey(_0x43f322){const _0x34e430=a143_0x1010,_0x5253d7=_0x43f322[_0x34e430(0x141)]();if(_0x5253d7==='password'||_0x5253d7==='passwd'||_0x5253d7==='dbpassword')return!![];if(_0x5253d7[_0x34e430(0x148)](_0x34e430(0x142))||_0x5253d7['includes'](_0x34e430(0x13e))||_0x5253d7[_0x34e430(0x148)](_0x34e430(0x13d)))return!![];if(_0x5253d7['includes'](_0x34e430(0x14e))||_0x5253d7['includes'](_0x34e430(0x14b)))return!![];if(_0x5253d7===_0x34e430(0x14c)||_0x5253d7==='connectionstring'||_0x5253d7===_0x34e430(0x150))return!![];return![];}function a143_0x1010(_0x36cb91,_0xb9f9fb){_0x36cb91=_0x36cb91-0x13a;const _0x3c7410=a143_0x3c74();let _0x101018=_0x3c7410[_0x36cb91];return _0x101018;}export function sanitizeDbLinkForOutput(_0x2319c7){const _0x572017=a143_0x1010,_0x51fa78={..._0x2319c7};for(const _0x5a7992 of Object[_0x572017(0x147)](_0x51fa78)){if(!shouldRedactKey(_0x5a7992))continue;const _0x489dd0=_0x51fa78[_0x5a7992];_0x489dd0!=null&&String(_0x489dd0)[_0x572017(0x146)]>0x0&&(_0x51fa78[_0x5a7992]='[redacted]');}return _0x51fa78;}function a143_0x3c74(){const _0x47a8e4=['11411268Ippfro','toLowerCase','secret','531wFnjbo','7bcmIDG','59864KnpuRO','length','keys','includes','test','16lsCsNX','accesskey','authorization','595455fSGtAg','privatekey','1141004wpyOnF','jdbcurl','1071516vSNOfQ','1082280JLHlVc','map','1743710myUhXx','trim','credential','token','1qfbOBF'];a143_0x3c74=function(){return _0x47a8e4;};return a143_0x3c74();}export function sanitizeDbLinkList(_0x3a7b00){const _0x45e0cf=a143_0x1010;return _0x3a7b00[_0x45e0cf(0x13a)](_0x3ce3f4=>sanitizeDbLinkForOutput(_0x3ce3f4));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x575c40){const _0x53bdf8=a143_0x1010,_0x1fc4a2=_0x575c40[_0x53bdf8(0x13c)]();if(!_0x1fc4a2)return![];return DB_URL_PATTERN[_0x53bdf8(0x149)](_0x1fc4a2);}
1
+ function a60_0x1302(){const _0x223f42=['447929mmTWgv','791985IbBuhs','test','4xPHTyX','1756296JMaUYW','763VywDvU','includes','toLowerCase','224292uWkAvU','[redacted]','map','jdbcurl','5760UXpfjq','secret','token','37490jaIQKB','1854hrAaER','credential','accesskey','length','636224ebVTcq','password'];a60_0x1302=function(){return _0x223f42;};return a60_0x1302();}(function(_0x5b0859,_0xe0166d){const _0x4c474d=a60_0x3c19,_0xc8dbfc=_0x5b0859();while(!![]){try{const _0x2b8cf6=parseInt(_0x4c474d(0xc0))/0x1+parseInt(_0x4c474d(0xbe))/0x2+parseInt(_0x4c474d(0xc8))/0x3*(parseInt(_0x4c474d(0xc3))/0x4)+-parseInt(_0x4c474d(0xc1))/0x5+-parseInt(_0x4c474d(0xcc))/0x6*(-parseInt(_0x4c474d(0xc5))/0x7)+parseInt(_0x4c474d(0xc4))/0x8+-parseInt(_0x4c474d(0xd0))/0x9*(parseInt(_0x4c474d(0xcf))/0xa);if(_0x2b8cf6===_0xe0166d)break;else _0xc8dbfc['push'](_0xc8dbfc['shift']());}catch(_0x603ee){_0xc8dbfc['push'](_0xc8dbfc['shift']());}}}(a60_0x1302,0x39333));function shouldRedactKey(_0x58390e){const _0x3e3514=a60_0x3c19,_0x1b254d=_0x58390e[_0x3e3514(0xc7)]();if(_0x1b254d===_0x3e3514(0xbf)||_0x1b254d==='passwd'||_0x1b254d==='dbpassword')return!![];if(_0x1b254d[_0x3e3514(0xc6)](_0x3e3514(0xcd))||_0x1b254d[_0x3e3514(0xc6)](_0x3e3514(0xce))||_0x1b254d[_0x3e3514(0xc6)](_0x3e3514(0xbb)))return!![];if(_0x1b254d[_0x3e3514(0xc6)]('privatekey')||_0x1b254d['includes'](_0x3e3514(0xbc)))return!![];if(_0x1b254d==='authorization'||_0x1b254d==='connectionstring'||_0x1b254d===_0x3e3514(0xcb))return!![];return![];}function a60_0x3c19(_0x1c13c8,_0x1651f2){_0x1c13c8=_0x1c13c8-0xbb;const _0x1302d9=a60_0x1302();let _0x3c1901=_0x1302d9[_0x1c13c8];return _0x3c1901;}export function sanitizeDbLinkForOutput(_0x394d06){const _0x40275f=a60_0x3c19,_0x524c36={..._0x394d06};for(const _0x38265c of Object['keys'](_0x524c36)){if(!shouldRedactKey(_0x38265c))continue;const _0x302695=_0x524c36[_0x38265c];_0x302695!=null&&String(_0x302695)[_0x40275f(0xbd)]>0x0&&(_0x524c36[_0x38265c]=_0x40275f(0xc9));}return _0x524c36;}export function sanitizeDbLinkList(_0x3c8e57){const _0x2c4365=a60_0x3c19;return _0x3c8e57[_0x2c4365(0xca)](_0x1d1f2e=>sanitizeDbLinkForOutput(_0x1d1f2e));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x318c74){const _0x49512c=a60_0x3c19,_0x926ddb=_0x318c74['trim']();if(!_0x926ddb)return![];return DB_URL_PATTERN[_0x49512c(0xc2)](_0x926ddb);}
@@ -1 +1 @@
1
- function a137_0x8e10(_0x5d4d32,_0x297190){_0x5d4d32=_0x5d4d32-0x13d;const _0x702a8c=a137_0x702a();let _0x8e10a5=_0x702a8c[_0x5d4d32];return _0x8e10a5;}const a137_0x33838a=a137_0x8e10;(function(_0x3e72a7,_0x519b89){const _0x48b14e=a137_0x8e10,_0x5ea38a=_0x3e72a7();while(!![]){try{const _0x309cf0=-parseInt(_0x48b14e(0x13f))/0x1+parseInt(_0x48b14e(0x141))/0x2*(-parseInt(_0x48b14e(0x149))/0x3)+-parseInt(_0x48b14e(0x14e))/0x4+-parseInt(_0x48b14e(0x14c))/0x5*(parseInt(_0x48b14e(0x140))/0x6)+parseInt(_0x48b14e(0x145))/0x7+parseInt(_0x48b14e(0x13e))/0x8*(-parseInt(_0x48b14e(0x14d))/0x9)+-parseInt(_0x48b14e(0x144))/0xa*(-parseInt(_0x48b14e(0x143))/0xb);if(_0x309cf0===_0x519b89)break;else _0x5ea38a['push'](_0x5ea38a['shift']());}catch(_0x4ebc74){_0x5ea38a['push'](_0x5ea38a['shift']());}}}(a137_0x702a,0x5fe3a));import{getDbAllTableList}from'../../core/api-client.js';function a137_0x702a(){const _0x383570=['appCode','\x20table(s)\x20on\x20db\x20link\x20','940KHFZnK','9VZcavg','616636TcrHdD','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','6047696hMHUFd','107212jFIfsk','19500JcJOFo','2xeGvhu','length','17939691NIocIx','10yoBxvl','3407369KXYbrS','tables','read','num','289659lpYHWt'];a137_0x702a=function(){return _0x383570;};return a137_0x702a();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a137_0x33838a(0x146),'description':a137_0x33838a(0x13d),'risk':a137_0x33838a(0x147),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x29091b){const _0x22e91a=a137_0x33838a,_0x14527e=_0x29091b[_0x22e91a(0x148)]('id'),_0x437c96=await getDbAllTableList(_0x29091b[_0x22e91a(0x14a)],_0x14527e);return{'ok':!![],'data':{'dbLinkId':_0x14527e,'total':_0x437c96[_0x22e91a(0x142)],'tables':_0x437c96},'message':_0x437c96['length']+_0x22e91a(0x14b)+_0x14527e};}};
1
+ (function(_0x5603c8,_0x1248ef){const _0x43f6f0=a61_0x5c48,_0x5cbc27=_0x5603c8();while(!![]){try{const _0x5bce43=parseInt(_0x43f6f0(0x1b8))/0x1+-parseInt(_0x43f6f0(0x1bd))/0x2*(-parseInt(_0x43f6f0(0x1b3))/0x3)+parseInt(_0x43f6f0(0x1b2))/0x4+-parseInt(_0x43f6f0(0x1b7))/0x5+-parseInt(_0x43f6f0(0x1b5))/0x6*(parseInt(_0x43f6f0(0x1ba))/0x7)+-parseInt(_0x43f6f0(0x1b1))/0x8*(-parseInt(_0x43f6f0(0x1bc))/0x9)+parseInt(_0x43f6f0(0x1b6))/0xa*(parseInt(_0x43f6f0(0x1b9))/0xb);if(_0x5bce43===_0x1248ef)break;else _0x5cbc27['push'](_0x5cbc27['shift']());}catch(_0x3390eb){_0x5cbc27['push'](_0x5cbc27['shift']());}}}(a61_0x542c,0x3524d));function a61_0x5c48(_0x496af6,_0x72e1c5){_0x496af6=_0x496af6-0x1b1;const _0x542c58=a61_0x542c();let _0x5c48f2=_0x542c58[_0x496af6];return _0x5c48f2;}function a61_0x542c(){const _0x5d2497=['123340qISshs','60720KLtuId','7einIKn','length','168111FQZBZw','20738OljMSE','96fgydRL','464900srOpgI','111ikmlgv','appCode','1495266wxxwKR','30dypfGK','1985190URcZbW'];a61_0x542c=function(){return _0x5d2497;};return a61_0x542c();}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':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x541c59){const _0x1bbef5=a61_0x5c48,_0xa6b5a6=_0x541c59['num']('id'),_0x1d2c04=await getDbAllTableList(_0x541c59[_0x1bbef5(0x1b4)],_0xa6b5a6);return{'ok':!![],'data':{'dbLinkId':_0xa6b5a6,'total':_0x1d2c04[_0x1bbef5(0x1bb)],'tables':_0x1d2c04},'message':_0x1d2c04[_0x1bbef5(0x1bb)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0xa6b5a6};}};
@@ -1 +1 @@
1
- const a135_0x470214=a135_0x1648;(function(_0x25f938,_0x18021f){const _0x9f045e=a135_0x1648,_0x31275d=_0x25f938();while(!![]){try{const _0x3765a0=-parseInt(_0x9f045e(0x177))/0x1+parseInt(_0x9f045e(0x17b))/0x2*(parseInt(_0x9f045e(0x179))/0x3)+-parseInt(_0x9f045e(0x182))/0x4*(-parseInt(_0x9f045e(0x186))/0x5)+-parseInt(_0x9f045e(0x184))/0x6+-parseInt(_0x9f045e(0x183))/0x7+parseInt(_0x9f045e(0x189))/0x8+parseInt(_0x9f045e(0x180))/0x9;if(_0x3765a0===_0x18021f)break;else _0x31275d['push'](_0x31275d['shift']());}catch(_0x28a01e){_0x31275d['push'](_0x31275d['shift']());}}}(a135_0x546d,0x986e0));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a135_0x1648(_0x141560,_0x5ccacb){_0x141560=_0x141560-0x177;const _0x546d09=a135_0x546d();let _0x164856=_0x546d09[_0x141560];return _0x164856;}function summarizeTestConnectResult(_0x7d53c2){const _0x5b5395=a135_0x1648;if(_0x7d53c2===!![]||_0x7d53c2===![])return{'success':_0x7d53c2};if(_0x7d53c2===null||_0x7d53c2===undefined)return{'type':typeof _0x7d53c2};if(typeof _0x7d53c2!==_0x5b5395(0x18d))return{'type':typeof _0x7d53c2};const _0x35eff0=_0x7d53c2,_0x3afefc=[_0x5b5395(0x17c),_0x5b5395(0x185),_0x5b5395(0x18c),_0x5b5395(0x17f),_0x5b5395(0x17e),_0x5b5395(0x178)],_0x3d352c={};for(const _0x31a902 of _0x3afefc){if(_0x31a902 in _0x35eff0)_0x3d352c[_0x31a902]=_0x35eff0[_0x31a902];}return Object[_0x5b5395(0x18b)](_0x3d352c)[_0x5b5395(0x17d)]===0x0&&(_0x3d352c[_0x5b5395(0x18b)]=Object[_0x5b5395(0x18b)](_0x35eff0)[_0x5b5395(0x188)](0x0,0x14)),_0x3d352c;}export const dbTest={'service':'db','command':a135_0x470214(0x18a),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x93302a){const _0x5d4fb2=a135_0x470214,_0x29c6c1=_0x93302a[_0x5d4fb2(0x187)]('id'),_0x488835=await testDbLinkConnect(_0x29c6c1),_0x27920=_0x488835===!![]||typeof _0x488835===_0x5d4fb2(0x18d)&&_0x488835!==null&&_0x488835['success']===!![],_0x6a1178=summarizeTestConnectResult(_0x488835);return{'ok':!![],'data':{'id':_0x29c6c1,'connected':Boolean(_0x27920),'result':_0x6a1178},'message':_0x27920?_0x5d4fb2(0x17a)+_0x29c6c1:_0x5d4fb2(0x181)+_0x29c6c1+'\x20(see\x20data.result)'};}};function a135_0x546d(){const _0x272479=['test','keys','code','object','151475BqGQMq','data','3LDTkdr','Connection\x20OK\x20for\x20db\x20link\x20','1049938SCfKwf','success','length','msg','error','1858383IlNvla','Connection\x20check\x20finished\x20for\x20db\x20link\x20','20156oMyQzb','508508aVNwPv','6320832HQgxll','message','625qcNtIw','num','slice','4324896MRQNrl'];a135_0x546d=function(){return _0x272479;};return a135_0x546d();}
1
+ const a62_0x45fb2c=a62_0x1c03;(function(_0x44a515,_0x120e6b){const _0x30a207=a62_0x1c03,_0x8c8c6a=_0x44a515();while(!![]){try{const _0x338e3a=-parseInt(_0x30a207(0x139))/0x1+-parseInt(_0x30a207(0x135))/0x2*(-parseInt(_0x30a207(0x13c))/0x3)+parseInt(_0x30a207(0x134))/0x4*(-parseInt(_0x30a207(0x131))/0x5)+parseInt(_0x30a207(0x142))/0x6+-parseInt(_0x30a207(0x13e))/0x7*(parseInt(_0x30a207(0x132))/0x8)+-parseInt(_0x30a207(0x13d))/0x9*(-parseInt(_0x30a207(0x143))/0xa)+parseInt(_0x30a207(0x147))/0xb;if(_0x338e3a===_0x120e6b)break;else _0x8c8c6a['push'](_0x8c8c6a['shift']());}catch(_0x22fec1){_0x8c8c6a['push'](_0x8c8c6a['shift']());}}}(a62_0x14df,0x9badc));function a62_0x1c03(_0x3a6f30,_0x4514ea){_0x3a6f30=_0x3a6f30-0x131;const _0x14df61=a62_0x14df();let _0x1c038f=_0x14df61[_0x3a6f30];return _0x1c038f;}import{testDbLinkConnect}from'../../core/api-client.js';function a62_0x14df(){const _0x10bc3e=['6604591vSlXoT','code','object','keys','410574CpkYsD','91790qvhZoF','read','data','slice','38795108nQbusG','635jGhBex','8LoqIDF','error','29196mSgSwi','24768lZTOAX','message','success','test','1139416tncoSZ','Connection\x20OK\x20for\x20db\x20link\x20','length','6vLcBOn','27EuhrEP'];a62_0x14df=function(){return _0x10bc3e;};return a62_0x14df();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x4f4347){const _0xa8d73c=a62_0x1c03;if(_0x4f4347===!![]||_0x4f4347===![])return{'success':_0x4f4347};if(_0x4f4347===null||_0x4f4347===undefined)return{'type':typeof _0x4f4347};if(typeof _0x4f4347!=='object')return{'type':typeof _0x4f4347};const _0x394fc0=_0x4f4347,_0x2f5a71=[_0xa8d73c(0x137),_0xa8d73c(0x136),_0xa8d73c(0x13f),_0xa8d73c(0x133),'msg',_0xa8d73c(0x145)],_0x441db8={};for(const _0x259d8b of _0x2f5a71){if(_0x259d8b in _0x394fc0)_0x441db8[_0x259d8b]=_0x394fc0[_0x259d8b];}return Object[_0xa8d73c(0x141)](_0x441db8)[_0xa8d73c(0x13b)]===0x0&&(_0x441db8[_0xa8d73c(0x141)]=Object['keys'](_0x394fc0)[_0xa8d73c(0x146)](0x0,0x14)),_0x441db8;}export const dbTest={'service':'db','command':a62_0x45fb2c(0x138),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a62_0x45fb2c(0x144),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2093d5){const _0x39d6df=a62_0x45fb2c,_0x310791=_0x2093d5['num']('id'),_0x46830d=await testDbLinkConnect(_0x310791),_0x27f3bb=_0x46830d===!![]||typeof _0x46830d===_0x39d6df(0x140)&&_0x46830d!==null&&_0x46830d[_0x39d6df(0x137)]===!![],_0xce8de5=summarizeTestConnectResult(_0x46830d);return{'ok':!![],'data':{'id':_0x310791,'connected':Boolean(_0x27f3bb),'result':_0xce8de5},'message':_0x27f3bb?_0x39d6df(0x13a)+_0x310791:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x310791+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- const a144_0x186d64=a144_0x1c6f;(function(_0x320d3d,_0x19ec91){const _0x1615f4=a144_0x1c6f,_0x4bb919=_0x320d3d();while(!![]){try{const _0x5a15c1=-parseInt(_0x1615f4(0xd4))/0x1*(parseInt(_0x1615f4(0xc9))/0x2)+parseInt(_0x1615f4(0xdc))/0x3*(-parseInt(_0x1615f4(0xc6))/0x4)+-parseInt(_0x1615f4(0xe0))/0x5*(parseInt(_0x1615f4(0xc7))/0x6)+parseInt(_0x1615f4(0xcd))/0x7*(parseInt(_0x1615f4(0xe5))/0x8)+-parseInt(_0x1615f4(0xe1))/0x9+-parseInt(_0x1615f4(0xcb))/0xa+parseInt(_0x1615f4(0xd3))/0xb;if(_0x5a15c1===_0x19ec91)break;else _0x4bb919['push'](_0x4bb919['shift']());}catch(_0x302f78){_0x4bb919['push'](_0x4bb919['shift']());}}}(a144_0x1da1,0xec21f));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';export const dbUpdate={'service':'db','command':a144_0x186d64(0xd9),'description':a144_0x186d64(0xdd),'risk':a144_0x186d64(0xce),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a144_0x186d64(0xc8),'type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xe8)},{'name':a144_0x186d64(0xe6),'type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xd8)},{'name':'username','type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xe4)},{'name':a144_0x186d64(0xd0),'type':a144_0x186d64(0xe2),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a144_0x186d64(0xda),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a144_0x186d64(0xdb),'type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xea)}],async 'validate'(_0x4de76e){const _0x101001=a144_0x186d64,_0xc60fdb=_0x4de76e[_0x101001(0xcc)](_0x101001(0xe6));if(_0xc60fdb&&!validateDbUrl(_0xc60fdb[_0x101001(0xcf)]()))throw CliErrors[_0x101001(0xe7)](_0x101001(0xd1)+_0xc60fdb+'\x22');},async 'dryRun'(_0x2d9a0c){const _0x5f1e19=a144_0x186d64,_0x393d76=_0x2d9a0c[_0x5f1e19(0xd7)]('id'),_0x593505=await getDbLinkInfo(_0x393d76),_0x3d979d={..._0x593505},_0x5bc492=_0x2d9a0c[_0x5f1e19(0xcc)]('dbname');if(_0x5bc492)_0x3d979d['dbName']=_0x5bc492;const _0x463eca=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xe6));if(_0x463eca)_0x3d979d['dbUrl']=_0x463eca[_0x5f1e19(0xcf)]();const _0x580e7f=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xd6));if(_0x580e7f)_0x3d979d[_0x5f1e19(0xd6)]=_0x580e7f;const _0x5ac142=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xd0));if(_0x5ac142)_0x3d979d[_0x5f1e19(0xd0)]=_0x5ac142;const _0x47697f=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xda));if(_0x47697f)_0x3d979d['dbParam']=_0x47697f;const _0x3411cc=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xdb));if(_0x3411cc)_0x3d979d[_0x5f1e19(0xdf)]=_0x3411cc;const _0x83b3b1=sanitizeDbLinkForOutput(_0x3d979d);return{'method':_0x5f1e19(0xe3),'url':_0x5f1e19(0xde),'body':_0x83b3b1,'description':_0x5f1e19(0xca)};},async 'execute'(_0x47d7e4){const _0x5b1f18=a144_0x186d64,_0x4702fd=_0x47d7e4[_0x5b1f18(0xd7)]('id'),_0x23070e=await getDbLinkInfo(_0x4702fd),_0x5ed7a4={..._0x23070e},_0x217153=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xc8));if(_0x217153)_0x5ed7a4[_0x5b1f18(0xd2)]=_0x217153;const _0x3f0240=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xe6));if(_0x3f0240)_0x5ed7a4[_0x5b1f18(0xd5)]=_0x3f0240[_0x5b1f18(0xcf)]();const _0x53e4e9=_0x47d7e4['str'](_0x5b1f18(0xd6));if(_0x53e4e9)_0x5ed7a4['username']=_0x53e4e9;const _0x17db95=_0x47d7e4['str'](_0x5b1f18(0xd0));if(_0x17db95)_0x5ed7a4[_0x5b1f18(0xd0)]=_0x17db95;const _0x44b6a4=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xda));if(_0x44b6a4)_0x5ed7a4[_0x5b1f18(0xe9)]=_0x44b6a4;const _0x760f47=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xdb));if(_0x760f47)_0x5ed7a4[_0x5b1f18(0xdf)]=_0x760f47;const _0x3b25b7=await updateDbLink(_0x5ed7a4);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3b25b7),'message':'Updated\x20db\x20link\x20'+_0x4702fd};}};function a144_0x1c6f(_0x4b8616,_0x5ec484){_0x4b8616=_0x4b8616-0xc6;const _0x1da1e0=a144_0x1da1();let _0x1c6fa7=_0x1da1e0[_0x4b8616];return _0x1c6fa7;}function a144_0x1da1(){const _0x1d71ef=['dbparam','dbdesc','1514553rLsZaH','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','/smartapi/dblink/update','dbDesc','2085TtymWm','10219860poZKrs','string','POST','New\x20username','872Caxkmx','dburl','validation','New\x20database\x20name','dbParam','New\x20description','4gyobqg','25764zQtKbm','dbname','124rcWjjd','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','6767890TPLVue','str','25879rPZGSD','write','trim','password','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbName','68276318JonuWT','24757BaGLPN','dbUrl','username','num','New\x20host:port','update'];a144_0x1da1=function(){return _0x1d71ef;};return a144_0x1da1();}
1
+ const a63_0x59d08c=a63_0xc911;(function(_0x166957,_0x4a34ac){const _0x2cf644=a63_0xc911,_0x32842a=_0x166957();while(!![]){try{const _0x1c733d=parseInt(_0x2cf644(0x78))/0x1*(-parseInt(_0x2cf644(0x6d))/0x2)+-parseInt(_0x2cf644(0x65))/0x3+parseInt(_0x2cf644(0x72))/0x4*(-parseInt(_0x2cf644(0x83))/0x5)+parseInt(_0x2cf644(0x6e))/0x6*(-parseInt(_0x2cf644(0x7d))/0x7)+parseInt(_0x2cf644(0x74))/0x8+parseInt(_0x2cf644(0x85))/0x9+-parseInt(_0x2cf644(0x7b))/0xa*(-parseInt(_0x2cf644(0x77))/0xb);if(_0x1c733d===_0x4a34ac)break;else _0x32842a['push'](_0x32842a['shift']());}catch(_0x4dea3a){_0x32842a['push'](_0x32842a['shift']());}}}(a63_0x325b,0xeb2c9));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a63_0x325b(){const _0x2b7725=['1839194yaTzSA','dbName','dbUrl','dbdesc','dbParam','dbparam','4033930LxwHzc','/smartapi/dblink/update','8197308EFgOmp','update','Updated\x20db\x20link\x20','New\x20host:port','4961697OjrxVY','dbDesc','trim','New\x20username','dbname','num','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','string','76vtTYWX','12gJbjZL','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20database\x20name','password','4rVQsAo','write','7904416MdIboP','dburl','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','252362MoIVRV','34183saBXCA','str','username','1460qkrCDV','POST'];a63_0x325b=function(){return _0x2b7725;};return a63_0x325b();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a63_0xc911(_0x2d2195,_0x585f94){_0x2d2195=_0x2d2195-0x64;const _0x325bdd=a63_0x325b();let _0xc91167=_0x325bdd[_0x2d2195];return _0xc91167;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a63_0x59d08c(0x86),'description':a63_0x59d08c(0x6b),'risk':a63_0x59d08c(0x73),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':a63_0x59d08c(0x70)},{'name':a63_0x59d08c(0x75),'type':'string','description':a63_0x59d08c(0x64)},{'name':a63_0x59d08c(0x7a),'type':a63_0x59d08c(0x6c),'description':a63_0x59d08c(0x68)},{'name':'password','type':a63_0x59d08c(0x6c),'description':a63_0x59d08c(0x76)},{'name':a63_0x59d08c(0x82),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a63_0x59d08c(0x80),'type':a63_0x59d08c(0x6c),'description':'New\x20description'}],async 'validate'(_0x44d7df){const _0x4a8619=a63_0x59d08c,_0x29d547=_0x44d7df['str']('dburl');if(_0x29d547&&!validateDbUrl(_0x29d547[_0x4a8619(0x67)]()))throw CliErrors['validation'](_0x4a8619(0x6f)+_0x29d547+'\x22');},async 'dryRun'(_0x220430){const _0x10a279=a63_0x59d08c,_0x39e76c=_0x220430[_0x10a279(0x6a)]('id'),_0x2582f5=await getDbLinkInfo(_0x39e76c),_0x2e2f68={..._0x2582f5},_0x1e62e4=_0x220430[_0x10a279(0x79)](_0x10a279(0x69));if(_0x1e62e4)_0x2e2f68[_0x10a279(0x7e)]=_0x1e62e4;const _0xe1c668=_0x220430['str']('dburl');if(_0xe1c668)_0x2e2f68[_0x10a279(0x7f)]=_0xe1c668[_0x10a279(0x67)]();const _0x42125d=_0x220430['str'](_0x10a279(0x7a));if(_0x42125d)_0x2e2f68[_0x10a279(0x7a)]=_0x42125d;const _0x2ced97=_0x220430[_0x10a279(0x79)]('password');if(_0x2ced97)_0x2e2f68[_0x10a279(0x71)]=_0x2ced97;const _0x5cc45b=_0x220430[_0x10a279(0x79)](_0x10a279(0x82));if(_0x5cc45b)_0x2e2f68[_0x10a279(0x81)]=_0x5cc45b;const _0x3c2cef=_0x220430['str'](_0x10a279(0x80));if(_0x3c2cef)_0x2e2f68[_0x10a279(0x66)]=_0x3c2cef;const _0x180ae4=sanitizeDbLinkForOutput(_0x2e2f68);return{'method':_0x10a279(0x7c),'url':_0x10a279(0x84),'body':_0x180ae4,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x46bec4){const _0x100359=a63_0x59d08c,_0x59538d=_0x46bec4[_0x100359(0x6a)]('id'),_0xe41234=await getDbLinkInfo(_0x59538d),_0x41c6d1={..._0xe41234},_0x35dcf2=_0x46bec4[_0x100359(0x79)](_0x100359(0x69));if(_0x35dcf2)_0x41c6d1[_0x100359(0x7e)]=_0x35dcf2;const _0x469ff0=_0x46bec4['str']('dburl');if(_0x469ff0)_0x41c6d1[_0x100359(0x7f)]=_0x469ff0['trim']();const _0x5dfe6d=_0x46bec4[_0x100359(0x79)](_0x100359(0x7a));if(_0x5dfe6d)_0x41c6d1[_0x100359(0x7a)]=_0x5dfe6d;const _0x2d97a6=_0x46bec4['str'](_0x100359(0x71));if(_0x2d97a6)_0x41c6d1[_0x100359(0x71)]=_0x2d97a6;const _0x2bf82a=_0x46bec4[_0x100359(0x79)](_0x100359(0x82));if(_0x2bf82a)_0x41c6d1[_0x100359(0x81)]=_0x2bf82a;const _0x18c920=_0x46bec4[_0x100359(0x79)](_0x100359(0x80));if(_0x18c920)_0x41c6d1[_0x100359(0x66)]=_0x18c920;const {id:_0x45a48f,entity:_0x2bc2e7}=normalizeEntityWithIdResponse(await updateDbLink(_0x41c6d1));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2bc2e7),'message':_0x100359(0x87)+(_0x45a48f??_0x59538d)};}};
@@ -1 +1 @@
1
- const a76_0x79228b=a76_0x5a35;function a76_0x5a35(_0x1a6084,_0x2ee673){_0x1a6084=_0x1a6084-0x67;const _0x3adbaf=a76_0x3adb();let _0x5a3540=_0x3adbaf[_0x1a6084];return _0x5a3540;}(function(_0x23c858,_0x4592e9){const _0x72b743=a76_0x5a35,_0x5d033b=_0x23c858();while(!![]){try{const _0x45ca53=-parseInt(_0x72b743(0xb3))/0x1+-parseInt(_0x72b743(0xb5))/0x2*(parseInt(_0x72b743(0xa1))/0x3)+parseInt(_0x72b743(0x9f))/0x4+parseInt(_0x72b743(0x7f))/0x5*(parseInt(_0x72b743(0xa2))/0x6)+-parseInt(_0x72b743(0x67))/0x7+-parseInt(_0x72b743(0x69))/0x8*(parseInt(_0x72b743(0xa8))/0x9)+-parseInt(_0x72b743(0x90))/0xa*(-parseInt(_0x72b743(0x9e))/0xb);if(_0x45ca53===_0x4592e9)break;else _0x5d033b['push'](_0x5d033b['shift']());}catch(_0x49371d){_0x5d033b['push'](_0x5d033b['shift']());}}}(a76_0x3adb,0x9524c));import a76_0x4230c2 from'chalk';function a76_0x3adb(){const _0x2ddf0d=['(none)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','132147nAttGl','(set\x20via\x20file,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','padEnd','cookie','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','keys','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','✓\x20Valid\x20JSON','750045MwcFJi','gray','25734foCuTN','accessKey','status','empty','missing','check','\x20\x20─','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','1395177HzyRWr','\x20(default)','264JbepKD','\x20\x20explicitAppName:\x20','✗\x20Not\x20logged\x20in','explicitAppName','\x20doctor','✗\x20Invalid\x20JSON','(default:\x20','riskLevel','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','slice','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','appCode','red','apps','source','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','length','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','✓\x20Valid','bold','2325KkjpBf','arch','apiDir','platform','locale','pageSize','unknown','(set,\x20length=','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','(no\x20file)','doctor','appcode','✗\x20Expired','\x20\x20Config\x20Files','40740vFeXNd','(not\x20set)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','log','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20found)','\x20\x20API\x20Endpoints','\x20←\x20current','repeat','Global','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','7128wYqGIf','353012syCorI','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','267OpaXNX','5958jbsxVM','\x20\x20Config\x20JSON','currentApp','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a76_0x3adb=function(){return _0x2ddf0d;};return a76_0x3adb();}import{CLI_BIN_NAME}from'../constant/cli.js';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(_0x35e0d4){const _0x457c20=a76_0x5a35,_0x178f53=GIT_COMMIT!==_0x457c20(0x85)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x457c20(0x73)](0x0,0xa)+')':VERSION,_0x5a9232=buildConfigFromFlags({}),_0x2fd4a5=getCookie();console['log'](),console['log'](a76_0x4230c2[_0x457c20(0x7e)](CLI_BIN_NAME+_0x457c20(0x6d))),console[_0x457c20(0x94)](a76_0x4230c2['gray']('─'[_0x457c20(0x99)](0x32))),console[_0x457c20(0x94)](_0x457c20(0x7a)+_0x178f53),console[_0x457c20(0x94)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x457c20(0x94)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x457c20(0x82)]+'\x20'+process[_0x457c20(0x80)]),console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)](_0x457c20(0x8f))),console['log'](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e)));const _0x5ab36a=getGlobalConfigPath(),_0x17cadb=getProjectConfigPath();console[_0x457c20(0x94)](_0x457c20(0x71)+(_0x5ab36a||a76_0x4230c2[_0x457c20(0xb4)]('(not\x20found)'))),console[_0x457c20(0x94)](_0x457c20(0x92)+(_0x17cadb||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0x96)))),console[_0x457c20(0x94)](),console['log'](a76_0x4230c2[_0x457c20(0x7e)](_0x457c20(0xa3))),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)[_0x457c20(0x99)](0x1e)));const _0x404ced=(_0x535520,_0x331f47)=>{const _0x2fcfe5=_0x457c20;if(!_0x331f47){console[_0x2fcfe5(0x94)]('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0xb4)](_0x2fcfe5(0x8b)));return;}const _0x2ea37c=inspectCliConfigJsonFile(_0x331f47);if(_0x2ea37c[_0x2fcfe5(0xb7)]==='ok')console[_0x2fcfe5(0x94)]('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0xab)](_0x2fcfe5(0xb2)));else{if(_0x2ea37c[_0x2fcfe5(0xb7)]===_0x2fcfe5(0xb8))console['log']('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2['yellow'](_0x2fcfe5(0x95)));else _0x2ea37c[_0x2fcfe5(0xb7)]===_0x2fcfe5(0xb9)?console[_0x2fcfe5(0x94)]('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0xb4)](_0x2fcfe5(0x8a))):(console['log']('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0x76)](_0x2fcfe5(0x6e))),console[_0x2fcfe5(0x94)]('\x20\x20'+''[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0x76)](_0x2ea37c['message'])));}};_0x404ced(_0x457c20(0x9a),_0x5ab36a),_0x404ced('Project',_0x17cadb),console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2['bold']('\x20\x20Merged\x20Config')),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e))),console[_0x457c20(0x94)](_0x457c20(0x89)+(_0x5a9232[_0x457c20(0x75)]||a76_0x4230c2[_0x457c20(0x76)](_0x457c20(0x91)))),console[_0x457c20(0x94)](_0x457c20(0xa0)+_0x5a9232[_0x457c20(0xb1)]),console[_0x457c20(0x94)](_0x457c20(0xa5)+_0x5a9232[_0x457c20(0x83)]),console[_0x457c20(0x94)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5a9232[_0x457c20(0x81)]),console[_0x457c20(0x94)](_0x457c20(0x87)+(_0x5a9232[_0x457c20(0x72)]||a76_0x4230c2['gray'](_0x457c20(0xa6)))),console[_0x457c20(0x94)](_0x457c20(0xa7)+(_0x5a9232[_0x457c20(0xa4)]||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6)))),console[_0x457c20(0x94)](_0x457c20(0x6a)+(_0x5a9232[_0x457c20(0x6c)]||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6)))),console[_0x457c20(0x94)](_0x457c20(0x9c)+(_0x5a9232[_0x457c20(0x93)]||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0x6f)+DEFAULT_CONFIG_VALUES[_0x457c20(0x93)]+')'))),console[_0x457c20(0x94)](_0x457c20(0x79)+(_0x5a9232[_0x457c20(0x84)]??a76_0x4230c2['gray']('(default)'))),console[_0x457c20(0x94)](_0x457c20(0xae)+_0x5a9232[_0x457c20(0x70)]),console['log'](_0x457c20(0xb0)+_0x5a9232['verbose']),console[_0x457c20(0x94)](_0x457c20(0xaa)+(_0x5a9232['cookie']?a76_0x4230c2[_0x457c20(0xab)]('(set,\x20length='+_0x5a9232[_0x457c20(0xad)]['length']+')'):_0x2fd4a5?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0xa9)+_0x2fd4a5[_0x457c20(0x7b)]+')'):a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6))));const _0x5e0fa9=Object[_0x457c20(0xaf)](_0x5a9232['apps']);if(_0x5e0fa9[_0x457c20(0x7b)]>0x0){console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)]('\x20\x20Apps')),console['log'](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e)));for(const _0x26791b of _0x5e0fa9){const _0x1f73a1=_0x5a9232[_0x457c20(0x77)][_0x26791b],_0x222b82=_0x26791b===_0x5a9232[_0x457c20(0x72)],_0x41c23d=_0x26791b===_0x5a9232[_0x457c20(0xa4)],_0x482972=_0x41c23d?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x98)):'',_0x188f3b=_0x222b82?_0x457c20(0x68):'';console[_0x457c20(0x94)]('\x20\x20'+_0x26791b+_0x188f3b+_0x482972),console['log'](_0x457c20(0xbd)+_0x1f73a1[_0x457c20(0x8d)]);const _0x34d5ce=buildAppDoctorFields(_0x1f73a1,{'env':_0x5a9232[_0x457c20(0xb1)],'apiDir':_0x5a9232['raw'][_0x457c20(0x81)]||DEFAULT_CONFIG_VALUES[_0x457c20(0x81)],'cookie':_0x5a9232['cookie']||_0x2fd4a5||undefined,'accessKey':_0x5a9232[_0x457c20(0xb6)]});console[_0x457c20(0x94)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34d5ce[_0x457c20(0xb1)][_0x457c20(0x9d)]+'\x20\x20'+a76_0x4230c2[_0x457c20(0xb4)]('('+_0x34d5ce[_0x457c20(0xb1)]['source']+')')),console[_0x457c20(0x94)](_0x457c20(0x9b)+_0x34d5ce[_0x457c20(0x81)][_0x457c20(0x9d)]+'\x20\x20'+a76_0x4230c2[_0x457c20(0xb4)]('('+_0x34d5ce[_0x457c20(0x81)]['source']+')'));const _0x1dd604=_0x34d5ce[_0x457c20(0xad)][_0x457c20(0x9d)]?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x86)+_0x34d5ce[_0x457c20(0xad)][_0x457c20(0x9d)][_0x457c20(0x7b)]+')'):a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6));console['log'](_0x457c20(0x74)+_0x1dd604+'\x20\x20'+a76_0x4230c2['gray']('('+_0x34d5ce[_0x457c20(0xad)][_0x457c20(0x78)]+')'));const _0x31ccce=_0x34d5ce[_0x457c20(0xb6)][_0x457c20(0x9d)]?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x86)+_0x34d5ce[_0x457c20(0xb6)][_0x457c20(0x9d)][_0x457c20(0x7b)]+')'):a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6));console['log'](_0x457c20(0xbc)+_0x31ccce+'\x20\x20'+a76_0x4230c2['gray']('('+_0x34d5ce[_0x457c20(0xb6)][_0x457c20(0x78)]+')'));}}console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)](_0x457c20(0x97))),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)]('\x20\x20─'['repeat'](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x457c20(0x94)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x457c20(0x94)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)]('\x20\x20Auth')),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e)));if(_0x2fd4a5){const _0x2b8d5a=await getIsSessionValid();console['log'](_0x457c20(0x88)+(_0x2b8d5a?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x7d)):a76_0x4230c2[_0x457c20(0x76)](_0x457c20(0x8e))));}else console[_0x457c20(0x94)](_0x457c20(0x88)+a76_0x4230c2[_0x457c20(0x76)](_0x457c20(0x6b)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a76_0x79228b(0x8c),'command':a76_0x79228b(0xba),'description':a76_0x79228b(0x7c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a64_0x470f70=a64_0x2c84;(function(_0x50d6d3,_0x486045){const _0x3f148e=a64_0x2c84,_0x196371=_0x50d6d3();while(!![]){try{const _0x32964d=parseInt(_0x3f148e(0xdd))/0x1*(parseInt(_0x3f148e(0xe6))/0x2)+parseInt(_0x3f148e(0xf5))/0x3*(parseInt(_0x3f148e(0x112))/0x4)+-parseInt(_0x3f148e(0xdc))/0x5*(-parseInt(_0x3f148e(0x10f))/0x6)+-parseInt(_0x3f148e(0x123))/0x7*(-parseInt(_0x3f148e(0xee))/0x8)+-parseInt(_0x3f148e(0xf9))/0x9+parseInt(_0x3f148e(0xf8))/0xa+-parseInt(_0x3f148e(0x12b))/0xb*(parseInt(_0x3f148e(0x12c))/0xc);if(_0x32964d===_0x486045)break;else _0x196371['push'](_0x196371['shift']());}catch(_0x1b6cb3){_0x196371['push'](_0x196371['shift']());}}}(a64_0x275a,0x68de2));import a64_0x1f22b2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a64_0x275a(){const _0x3fbc3b=['12dJXFcs','missing','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','raw','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','702355OdhHHq','10306ErMCvr','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(set,\x20length=','✗\x20Expired','env','padEnd','bold','166QrpeVp','(no\x20file)','explicitAppName','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','arch','48ojAteZ','(none)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','appCode','\x20\x20Config\x20Files','log','816990kUrbEi','appcode','value','4896880OGrgYy','5853456UKZtqY','(default:\x20','empty','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20Config\x20JSON','(missing)','✗\x20Invalid\x20JSON','red','format','\x20\x20Merged\x20Config','\x20\x20Apps','\x20(default)','yellow','platform','(not\x20found)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20─','Project','gray','apps','24MXGzjB','doctor','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','12GirRFA','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20Auth','verbose','currentApp','check','repeat','(not\x20set)','\x20\x20\x20\x20accessKey:\x20\x20','accessKey','(default)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','261170hgUJqG','\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','green','source','status','message','Global','20546878NXvJiK'];a64_0x275a=function(){return _0x3fbc3b;};return a64_0x275a();}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';function a64_0x2c84(_0x2f77c9,_0x1c93fb){_0x2f77c9=_0x2f77c9-0xdb;const _0x275ab4=a64_0x275a();let _0x2c845e=_0x275ab4[_0x2f77c9];return _0x2c845e;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x1014cf){const _0x382cee=a64_0x2c84,_0x1d2223=GIT_COMMIT!==_0x382cee(0x122)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x20cd2c=buildConfigFromFlags({}),_0x25fe42=getCookie();console[_0x382cee(0xf4)](),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0xe5)](CLI_BIN_NAME+'\x20doctor')),console['log'](a64_0x1f22b2[_0x382cee(0x10d)]('─'['repeat'](0x32))),console[_0x382cee(0xf4)](_0x382cee(0xeb)+_0x1d2223),console[_0x382cee(0xf4)](_0x382cee(0x125)+process['version']),console[_0x382cee(0xf4)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x382cee(0x107)]+'\x20'+process[_0x382cee(0xed)]),console['log'](),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0xe5)](_0x382cee(0xf3))),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0x10d)]('\x20\x20─'[_0x382cee(0x11a)](0x1e)));const _0x5181de=getGlobalConfigPath(),_0x324b30=getProjectConfigPath();console[_0x382cee(0xf4)](_0x382cee(0x121)+(_0x5181de||a64_0x1f22b2['gray'](_0x382cee(0x108)))),console[_0x382cee(0xf4)](_0x382cee(0xf0)+(_0x324b30||a64_0x1f22b2['gray'](_0x382cee(0x108)))),console['log'](),console['log'](a64_0x1f22b2['bold'](_0x382cee(0xfe))),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0x10b)['repeat'](0x1e)));const _0x2186d1=(_0xe363f5,_0x10b02b)=>{const _0x5a55a4=_0x382cee;if(!_0x10b02b){console[_0x5a55a4(0xf4)]('\x20\x20'+_0xe363f5[_0x5a55a4(0xe4)](0x11)+'\x20'+a64_0x1f22b2['gray'](_0x5a55a4(0xe7)));return;}const _0x563bf7=inspectCliConfigJsonFile(_0x10b02b);if(_0x563bf7['status']==='ok')console[_0x5a55a4(0xf4)]('\x20\x20'+_0xe363f5[_0x5a55a4(0xe4)](0x11)+'\x20'+a64_0x1f22b2['green']('✓\x20Valid\x20JSON'));else{if(_0x563bf7[_0x5a55a4(0x128)]===_0x5a55a4(0xfb))console[_0x5a55a4(0xf4)]('\x20\x20'+_0xe363f5[_0x5a55a4(0xe4)](0x11)+'\x20'+a64_0x1f22b2[_0x5a55a4(0x106)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x563bf7[_0x5a55a4(0x128)]===_0x5a55a4(0x12d)?console[_0x5a55a4(0xf4)]('\x20\x20'+_0xe363f5['padEnd'](0x11)+'\x20'+a64_0x1f22b2[_0x5a55a4(0x10d)](_0x5a55a4(0xff))):(console[_0x5a55a4(0xf4)]('\x20\x20'+_0xe363f5[_0x5a55a4(0xe4)](0x11)+'\x20'+a64_0x1f22b2['red'](_0x5a55a4(0x100))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a64_0x1f22b2[_0x5a55a4(0x101)](_0x563bf7[_0x5a55a4(0x129)])));}};_0x2186d1(_0x382cee(0x12a),_0x5181de),_0x2186d1(_0x382cee(0x10c),_0x324b30),console[_0x382cee(0xf4)](),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0xe5)](_0x382cee(0x103))),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0x10b)[_0x382cee(0x11a)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x20cd2c[_0x382cee(0xf2)]||a64_0x1f22b2[_0x382cee(0x101)](_0x382cee(0x11b)))),console[_0x382cee(0xf4)](_0x382cee(0xfc)+_0x20cd2c[_0x382cee(0xe3)]),console[_0x382cee(0xf4)](_0x382cee(0x114)+_0x20cd2c[_0x382cee(0x131)]),console[_0x382cee(0xf4)](_0x382cee(0x109)+_0x20cd2c['apiDir']),console[_0x382cee(0xf4)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x20cd2c['defaultApp']||a64_0x1f22b2['gray']('(none)'))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x20cd2c['currentApp']||a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0xef)))),console['log'](_0x382cee(0xea)+(_0x20cd2c[_0x382cee(0xe8)]||a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0xef)))),console[_0x382cee(0xf4)](_0x382cee(0xdb)+(_0x20cd2c[_0x382cee(0x102)]||a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0xfa)+DEFAULT_CONFIG_VALUES[_0x382cee(0x102)]+')'))),console[_0x382cee(0xf4)](_0x382cee(0xec)+(_0x20cd2c[_0x382cee(0xfd)]??a64_0x1f22b2['gray'](_0x382cee(0x11e)))),console[_0x382cee(0xf4)](_0x382cee(0x130)+_0x20cd2c[_0x382cee(0x115)]),console[_0x382cee(0xf4)](_0x382cee(0xde)+_0x20cd2c[_0x382cee(0x117)]),console[_0x382cee(0xf4)](_0x382cee(0x124)+(_0x20cd2c['cookie']?a64_0x1f22b2[_0x382cee(0x126)](_0x382cee(0xe1)+_0x20cd2c[_0x382cee(0xdf)][_0x382cee(0x120)]+')'):_0x25fe42?a64_0x1f22b2[_0x382cee(0x126)]('(set\x20via\x20file,\x20length='+_0x25fe42[_0x382cee(0x120)]+')'):a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0xef))));const _0x5d1d5e=Object['keys'](_0x20cd2c['apps']);if(_0x5d1d5e[_0x382cee(0x120)]>0x0){console[_0x382cee(0xf4)](),console['log'](a64_0x1f22b2[_0x382cee(0xe5)](_0x382cee(0x104))),console[_0x382cee(0xf4)](a64_0x1f22b2['gray']('\x20\x20─'[_0x382cee(0x11a)](0x1e)));for(const _0x44b59b of _0x5d1d5e){const _0x542cb5=_0x20cd2c[_0x382cee(0x10e)][_0x44b59b],_0x6f3afe=_0x44b59b===_0x20cd2c['defaultApp'],_0xca72e9=_0x44b59b===_0x20cd2c[_0x382cee(0x118)],_0x312207=_0xca72e9?a64_0x1f22b2['green']('\x20←\x20current'):'',_0x43164c=_0x6f3afe?_0x382cee(0x105):'';console[_0x382cee(0xf4)]('\x20\x20'+_0x44b59b+_0x43164c+_0x312207),console[_0x382cee(0xf4)](_0x382cee(0x12e)+_0x542cb5[_0x382cee(0xf6)]);const _0x41d714=buildAppDoctorFields(_0x542cb5,{'env':_0x20cd2c[_0x382cee(0xe3)],'apiDir':_0x20cd2c[_0x382cee(0x12f)][_0x382cee(0xf1)]||DEFAULT_CONFIG_VALUES[_0x382cee(0xf1)],'cookie':_0x20cd2c[_0x382cee(0xdf)]||_0x25fe42||undefined,'accessKey':_0x20cd2c['accessKey']});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x41d714['env'][_0x382cee(0xf7)]+'\x20\x20'+a64_0x1f22b2[_0x382cee(0x10d)]('('+_0x41d714[_0x382cee(0xe3)][_0x382cee(0x127)]+')')),console[_0x382cee(0xf4)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x41d714[_0x382cee(0xf1)][_0x382cee(0xf7)]+'\x20\x20'+a64_0x1f22b2['gray']('('+_0x41d714[_0x382cee(0xf1)][_0x382cee(0x127)]+')'));const _0x16e582=_0x41d714[_0x382cee(0xdf)][_0x382cee(0xf7)]?a64_0x1f22b2[_0x382cee(0x126)](_0x382cee(0xe1)+_0x41d714[_0x382cee(0xdf)]['value']['length']+')'):a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0xef));console['log'](_0x382cee(0xe9)+_0x16e582+'\x20\x20'+a64_0x1f22b2['gray']('('+_0x41d714['cookie'][_0x382cee(0x127)]+')'));const _0x336518=_0x41d714['accessKey'][_0x382cee(0xf7)]?a64_0x1f22b2[_0x382cee(0x126)](_0x382cee(0xe1)+_0x41d714[_0x382cee(0x11d)][_0x382cee(0xf7)][_0x382cee(0x120)]+')'):a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0xef));console[_0x382cee(0xf4)](_0x382cee(0x11c)+_0x336518+'\x20\x20'+a64_0x1f22b2[_0x382cee(0x10d)]('('+_0x41d714[_0x382cee(0x11d)][_0x382cee(0x127)]+')'));}}console['log'](),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0xe5)](_0x382cee(0x10a))),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0x10d)]('\x20\x20─'[_0x382cee(0x11a)](0x1e))),console['log'](_0x382cee(0x11f)+getApiDomain()),console[_0x382cee(0xf4)](_0x382cee(0xe0)+getUserDomain()),console[_0x382cee(0xf4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x382cee(0xf4)](),console[_0x382cee(0xf4)](a64_0x1f22b2['bold'](_0x382cee(0x116))),console[_0x382cee(0xf4)](a64_0x1f22b2[_0x382cee(0x10d)](_0x382cee(0x10b)[_0x382cee(0x11a)](0x1e)));if(_0x25fe42){const _0x2b66cc=await getIsSessionValid();console['log'](_0x382cee(0x113)+(_0x2b66cc?a64_0x1f22b2[_0x382cee(0x126)]('✓\x20Valid'):a64_0x1f22b2[_0x382cee(0x101)](_0x382cee(0xe2))));}else console[_0x382cee(0xf4)](_0x382cee(0x113)+a64_0x1f22b2['red']('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a64_0x470f70(0x110),'command':a64_0x470f70(0x119),'description':a64_0x470f70(0x111),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a89_0xe28590=a89_0x3002;(function(_0x3eebc7,_0x48e0ba){const _0x26f4ff=a89_0x3002,_0xad3192=_0x3eebc7();while(!![]){try{const _0x41e169=-parseInt(_0x26f4ff(0x111))/0x1*(-parseInt(_0x26f4ff(0xef))/0x2)+-parseInt(_0x26f4ff(0xf4))/0x3*(parseInt(_0x26f4ff(0x110))/0x4)+-parseInt(_0x26f4ff(0x11c))/0x5+-parseInt(_0x26f4ff(0x104))/0x6+parseInt(_0x26f4ff(0x103))/0x7*(parseInt(_0x26f4ff(0xf1))/0x8)+-parseInt(_0x26f4ff(0xf7))/0x9+parseInt(_0x26f4ff(0x10c))/0xa*(parseInt(_0x26f4ff(0xec))/0xb);if(_0x41e169===_0x48e0ba)break;else _0xad3192['push'](_0xad3192['shift']());}catch(_0x5f390f){_0xad3192['push'](_0xad3192['shift']());}}}(a89_0x4207,0xd1663));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';function a89_0x4207(){const _0x304116=['appCode','init','检测到旧配置文件,正在自动升级...\x0a','flagMissing','\x0a✓\x20Successfully\x20initialized\x20','Usage:\x20','global','run','899215LeOjCE','8327ilgzFA','cwd','defaultApp','6998xWUFXe','\x20config','1768tbmZAP','message','project','1355313VbDEgm','appcode','production','317340zPnwqy','validation','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','custom','\x20\x20Config:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','map','\x20\x20Env:\x20','some','write','log','yes','31647jBYrOi','3448770GmgviI','boolean','Use\x20`','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','str','App\x20code\x20to\x20initialize\x20with','join','env','13430LAPRYn','\x20\x20Apps:\x20','bool','toLocaleString','8TdLvGo','153DGsPeF','\x20\x20Default:\x20','nonInteractive'];a89_0x4207=function(){return _0x304116;};return a89_0x4207();}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';function a89_0x3002(_0x5995d7,_0x57bda8){_0x5995d7=_0x5995d7-0xec;const _0x4207cb=a89_0x4207();let _0x300229=_0x4207cb[_0x5995d7];return _0x300229;}import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x54d4f9){return{'appCode':_0x54d4f9,'appName':_0x54d4f9};}function writeInitConfig(_0x344175,_0x332ea5,_0x3b4b90){const _0x49ba0b=a89_0x3002,_0x2996ae=resolveWriteConfigPath(_0x344175),_0x174b60=buildCanonicalProjectConfig({},{'appCodes':_0x332ea5['map'](_0x7e2cef=>_0x7e2cef[_0x49ba0b(0x114)]),'env':_0x3b4b90,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x49ba0b(0x10f)]()}});writeConfigFile(_0x2996ae,_0x174b60);const _0x33cb49=_0x344175===_0x49ba0b(0x11a)?'global':_0x49ba0b(0xf3);console[_0x49ba0b(0x101)](_0x49ba0b(0x118)+_0x33cb49+_0x49ba0b(0xf0)),console[_0x49ba0b(0x101)](_0x49ba0b(0x10d)+_0x332ea5[_0x49ba0b(0xfd)](_0x5c9e86=>_0x5c9e86[_0x49ba0b(0x114)])[_0x49ba0b(0x10a)](',\x20')),console[_0x49ba0b(0x101)](_0x49ba0b(0x112)+_0x174b60[_0x49ba0b(0xee)]),console[_0x49ba0b(0x101)](_0x49ba0b(0xfe)+_0x174b60[_0x49ba0b(0x10b)]),console[_0x49ba0b(0x101)](_0x49ba0b(0xfb)+_0x2996ae);}async function runSmartInit(_0x128cff){const _0x3deffd=a89_0x3002,_0x2c6a9c=process[_0x3deffd(0xed)](),_0x153721=_0x128cff[_0x3deffd(0x10e)]('global')?_0x3deffd(0x11a):_0x3deffd(0xf3),_0x39b15e=_0x128cff['str']('env')||_0x3deffd(0xf6),_0x238bbc=_0x128cff[_0x3deffd(0x108)](_0x3deffd(0xf5))||undefined,_0x119a03=_0x128cff[_0x3deffd(0x10e)](_0x3deffd(0xf3));if(_0x119a03){const {initConfig:_0x28d040}=await import('../../commands/project/init.js');return _0x28d040({'appcode':_0x238bbc,'env':_0x39b15e,'autoYes':_0x128cff[_0x3deffd(0x10e)](_0x3deffd(0x102))});}if(_0x153721==='project'){const _0x58421a=existsSync(resolve(_0x2c6a9c,NEW_CONFIG_NAME)),_0x18fc36=LEGACY_CONFIG_NAMES[_0x3deffd(0xff)](_0x12350b=>existsSync(resolve(_0x2c6a9c,_0x12350b)));if(_0x18fc36&&!_0x58421a)return console[_0x3deffd(0x101)](_0x3deffd(0x116)),upgradeApp(_0x128cff[_0x3deffd(0x113)],{'yes':_0x128cff['bool'](_0x3deffd(0x102))});if(_0x58421a)throw CliErrors[_0x3deffd(0xf8)](_0x3deffd(0x107),_0x3deffd(0x106)+CLI_BIN_NAME+_0x3deffd(0xfc));}if(_0x238bbc){const _0x50d5fb=validateAppcode(_0x238bbc);if(!_0x50d5fb['valid'])throw CliErrors[_0x3deffd(0xf8)](_0x50d5fb[_0x3deffd(0xf2)]);writeInitConfig(_0x153721,[syntheticApp(_0x238bbc)],_0x39b15e);return;}if(_0x128cff[_0x3deffd(0x113)])throw CliErrors[_0x3deffd(0x117)](_0x3deffd(0xf5),_0x3deffd(0x119)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x23a2d8=getCookie(),_0x542137=await selectMultipleApps(_0x23a2d8),_0xde281c=_0x542137===_0x3deffd(0xfa)?[syntheticApp(await promptCustomAppcode())]:_0x542137;writeInitConfig(_0x153721,_0xde281c,_0x39b15e);}const initFlags=[{'name':a89_0xe28590(0x11a),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a89_0xe28590(0x10b),'type':'string','description':'Target\x20environment','default':a89_0xe28590(0xf6),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':'string','description':a89_0xe28590(0x109)},{'name':a89_0xe28590(0xf3),'type':a89_0xe28590(0x105),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a89_0xe28590(0x102),'type':a89_0xe28590(0x105),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a89_0xe28590(0x115),'command':a89_0xe28590(0x11b),'description':a89_0xe28590(0xf9),'risk':a89_0xe28590(0x100),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3a4e3c){return await runSmartInit(_0x3a4e3c),{'ok':!![]};}}];
1
+ const a65_0x6e5d64=a65_0x7082;function a65_0xd59c(){const _0x5ab85e=['custom','\x20\x20Config:\x20','valid','init','\x20\x20Default:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','validation','boolean','Use\x20`','\x20config','appcode','Target\x20environment','join','log','yes','322TRIYYD','defaultApp','21aOcPet','string','检测到旧配置文件,正在自动升级...\x0a','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','2288658ZuwNhD','env','2711061CPFyXu','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','1453527SiHkRE','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','str','run','168824JKZxtf','\x20\x20Apps:\x20','appCode','bool','\x0a✓\x20Successfully\x20initialized\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','cwd','11803390TAdiUM','message','write','project','global','production','nonInteractive','Auto-confirm\x20prompts','87554nZwjDK','map','\x20\x20Env:\x20','172MZQtBn','136660wmTwaJ','App\x20code\x20to\x20initialize\x20with'];a65_0xd59c=function(){return _0x5ab85e;};return a65_0xd59c();}(function(_0x19ed65,_0x2c4890){const _0x4b4208=a65_0x7082,_0x4224d7=_0x19ed65();while(!![]){try{const _0x10670a=parseInt(_0x4b4208(0x1a5))/0x1*(parseInt(_0x4b4208(0x18e))/0x2)+-parseInt(_0x4b4208(0x17b))/0x3+-parseInt(_0x4b4208(0x191))/0x4*(-parseInt(_0x4b4208(0x192))/0x5)+-parseInt(_0x4b4208(0x1a9))/0x6+-parseInt(_0x4b4208(0x1a3))/0x7*(-parseInt(_0x4b4208(0x17f))/0x8)+-parseInt(_0x4b4208(0x179))/0x9+-parseInt(_0x4b4208(0x186))/0xa;if(_0x10670a===_0x2c4890)break;else _0x4224d7['push'](_0x4224d7['shift']());}catch(_0x580f17){_0x4224d7['push'](_0x4224d7['shift']());}}}(a65_0xd59c,0xaf3f3));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';function a65_0x7082(_0xb030da,_0x3cc303){_0xb030da=_0xb030da-0x179;const _0xd59cba=a65_0xd59c();let _0x7082ea=_0xd59cba[_0xb030da];return _0x7082ea;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x41807f){return{'appCode':_0x41807f,'appName':_0x41807f};}function writeInitConfig(_0x4ed241,_0x391dd9,_0x1ade82){const _0x4e954b=a65_0x7082,_0x240e1e=resolveWriteConfigPath(_0x4ed241),_0x596260=buildCanonicalProjectConfig({},{'appCodes':_0x391dd9[_0x4e954b(0x18f)](_0x1a7cef=>_0x1a7cef['appCode']),'env':_0x1ade82,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x240e1e,_0x596260);const _0xff98a6=_0x4ed241===_0x4e954b(0x18a)?_0x4e954b(0x18a):_0x4e954b(0x189);console['log'](_0x4e954b(0x183)+_0xff98a6+_0x4e954b(0x19d)),console[_0x4e954b(0x1a1)](_0x4e954b(0x180)+_0x391dd9[_0x4e954b(0x18f)](_0x35e7dd=>_0x35e7dd[_0x4e954b(0x181)])[_0x4e954b(0x1a0)](',\x20')),console[_0x4e954b(0x1a1)](_0x4e954b(0x198)+_0x596260[_0x4e954b(0x1a4)]),console[_0x4e954b(0x1a1)](_0x4e954b(0x190)+_0x596260['env']),console[_0x4e954b(0x1a1)](_0x4e954b(0x195)+_0x240e1e);}async function runSmartInit(_0x1b0525){const _0x5d6bde=a65_0x7082,_0x4c59b0=process[_0x5d6bde(0x185)](),_0x264177=_0x1b0525['bool'](_0x5d6bde(0x18a))?_0x5d6bde(0x18a):_0x5d6bde(0x189),_0x2b132a=_0x1b0525[_0x5d6bde(0x17d)](_0x5d6bde(0x1aa))||_0x5d6bde(0x18b),_0x4580f2=_0x1b0525[_0x5d6bde(0x17d)](_0x5d6bde(0x19e))||undefined,_0x300181=_0x1b0525[_0x5d6bde(0x182)](_0x5d6bde(0x189));if(_0x300181){const {initConfig:_0x4199cc}=await import('../../commands/project/init.js');return _0x4199cc({'appcode':_0x4580f2,'env':_0x2b132a,'autoYes':_0x1b0525[_0x5d6bde(0x182)](_0x5d6bde(0x1a2))});}if(_0x264177===_0x5d6bde(0x189)){const _0xb45fcd=existsSync(resolve(_0x4c59b0,NEW_CONFIG_NAME)),_0x12aa2e=LEGACY_CONFIG_NAMES['some'](_0x467e4d=>existsSync(resolve(_0x4c59b0,_0x467e4d)));if(_0x12aa2e&&!_0xb45fcd)return console[_0x5d6bde(0x1a1)](_0x5d6bde(0x1a7)),upgradeApp(_0x1b0525[_0x5d6bde(0x18c)],{'yes':_0x1b0525[_0x5d6bde(0x182)](_0x5d6bde(0x1a2))});if(_0xb45fcd)throw CliErrors['validation'](_0x5d6bde(0x17c),_0x5d6bde(0x19c)+CLI_BIN_NAME+_0x5d6bde(0x17a));}if(_0x4580f2){const _0xbacf56=validateAppcode(_0x4580f2);if(!_0xbacf56[_0x5d6bde(0x196)])throw CliErrors[_0x5d6bde(0x19a)](_0xbacf56[_0x5d6bde(0x187)]);writeInitConfig(_0x264177,[syntheticApp(_0x4580f2)],_0x2b132a);return;}if(_0x1b0525[_0x5d6bde(0x18c)])throw CliErrors['flagMissing'](_0x5d6bde(0x19e),'Usage:\x20'+CLI_BIN_NAME+_0x5d6bde(0x1a8));const _0x109684=getCookie(),_0x501db5=await selectMultipleApps(_0x109684),_0x180b68=_0x501db5===_0x5d6bde(0x194)?[syntheticApp(await promptCustomAppcode())]:_0x501db5;writeInitConfig(_0x264177,_0x180b68,_0x2b132a);}const initFlags=[{'name':'global','type':a65_0x6e5d64(0x19b),'description':a65_0x6e5d64(0x184),'default':![]},{'name':'env','type':'string','description':a65_0x6e5d64(0x19f),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a65_0x6e5d64(0x19e),'type':a65_0x6e5d64(0x1a6),'description':a65_0x6e5d64(0x193)},{'name':a65_0x6e5d64(0x189),'type':a65_0x6e5d64(0x19b),'description':a65_0x6e5d64(0x199),'default':![]},{'name':a65_0x6e5d64(0x1a2),'type':'boolean','description':a65_0x6e5d64(0x18d),'default':![]}];export const initDefinitions=[{'service':a65_0x6e5d64(0x197),'command':a65_0x6e5d64(0x17e),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a65_0x6e5d64(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x276716){return await runSmartInit(_0x276716),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a114_0x49fd5f=a114_0x2b5b;function a114_0x3017(){const _0x13e4f9=['6514123ZDwLSD','Clear\x20command\x20history\x20logs','success','toLocaleString','447984RoAXcs','stringify','level','warn','2292471FQRXIV','log','timestamp','forEach','View\x20command\x20history\x20logs','880duhMZh','length','*\x20Lovrabet\x20CLI\x20logs:\x0a','2133135oRQfvU','show','details','command','\x20\x20\x20Duration:\x20','1077656WdCuou','readLogs','error','40mIhsbt','read','\x20\x20\x20Time:\x20','*\x20Logs\x20cleared','write','2329QMnjhH','914IXwzpt','duration','en-US','logs','clearLogs','20495TzXPZS','*\x20No\x20logs\x20found'];a114_0x3017=function(){return _0x13e4f9;};return a114_0x3017();}function a114_0x2b5b(_0x5b1889,_0x2dd5fe){_0x5b1889=_0x5b1889-0x7a;const _0x3017a3=a114_0x3017();let _0x2b5bf8=_0x3017a3[_0x5b1889];return _0x2b5bf8;}(function(_0x3aaae9,_0x296210){const _0x4c3e3b=a114_0x2b5b,_0x51322e=_0x3aaae9();while(!![]){try{const _0x5c0105=-parseInt(_0x4c3e3b(0x97))/0x1*(parseInt(_0x4c3e3b(0x98))/0x2)+parseInt(_0x4c3e3b(0x8a))/0x3+parseInt(_0x4c3e3b(0x87))/0x4*(parseInt(_0x4c3e3b(0x9d))/0x5)+parseInt(_0x4c3e3b(0x7e))/0x6+parseInt(_0x4c3e3b(0x7a))/0x7+parseInt(_0x4c3e3b(0x8f))/0x8+parseInt(_0x4c3e3b(0x82))/0x9*(-parseInt(_0x4c3e3b(0x92))/0xa);if(_0x5c0105===_0x296210)break;else _0x51322e['push'](_0x51322e['shift']());}catch(_0x209345){_0x51322e['push'](_0x51322e['shift']());}}}(a114_0x3017,0xa3774));import{logger}from'../../utils/logger.js';function printLogs(_0x42224c){const _0x409839=a114_0x2b5b;if(_0x42224c['length']===0x0){console['log'](_0x409839(0x9e));return;}console[_0x409839(0x83)](_0x409839(0x89)),_0x42224c[_0x409839(0x85)]((_0x168735,_0x1a0315)=>{const _0xe56847=_0x409839,_0x29889c=new Date(_0x168735[_0xe56847(0x84)])[_0xe56847(0x7d)](_0xe56847(0x9a)),_0xbe6421=_0x168735['level']===_0xe56847(0x7c)?'√':_0x168735[_0xe56847(0x80)]===_0xe56847(0x91)?'×':_0x168735['level']===_0xe56847(0x81)?'!':'i';console[_0xe56847(0x83)](_0x1a0315+0x1+'.\x20'+_0xbe6421+'\x20['+_0x168735[_0xe56847(0x8d)]+']\x20'+_0x168735['message']),console[_0xe56847(0x83)](_0xe56847(0x94)+_0x29889c),_0x168735[_0xe56847(0x99)]&&console[_0xe56847(0x83)](_0xe56847(0x8e)+_0x168735[_0xe56847(0x99)]+'ms'),_0x168735[_0xe56847(0x8c)]&&Object['keys'](_0x168735[_0xe56847(0x8c)])[_0xe56847(0x88)]>0x0&&console[_0xe56847(0x83)]('\x20\x20\x20Details:\x20'+JSON[_0xe56847(0x7f)](_0x168735['details'],null,0x2)),console[_0xe56847(0x83)]('');});}export const logsDefinitions=[{'service':a114_0x49fd5f(0x9b),'command':a114_0x49fd5f(0x8b),'description':a114_0x49fd5f(0x86),'risk':a114_0x49fd5f(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4503b8){const _0x296f1d=a114_0x49fd5f;return printLogs(logger[_0x296f1d(0x90)]()),{'ok':!![]};}},{'service':a114_0x49fd5f(0x9b),'command':'clear','description':a114_0x49fd5f(0x7b),'risk':a114_0x49fd5f(0x96),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2c9e00){const _0x2c6120=a114_0x49fd5f;return logger[_0x2c6120(0x9c)](),console[_0x2c6120(0x83)](_0x2c6120(0x95)),{'ok':!![]};}}];
1
+ const a66_0x13b70b=a66_0x44a7;(function(_0x192389,_0x649fb9){const _0x2a8214=a66_0x44a7,_0x392471=_0x192389();while(!![]){try{const _0x1ade2d=parseInt(_0x2a8214(0x1f0))/0x1+parseInt(_0x2a8214(0x1e6))/0x2*(-parseInt(_0x2a8214(0x1e9))/0x3)+-parseInt(_0x2a8214(0x1ed))/0x4+-parseInt(_0x2a8214(0x1de))/0x5*(parseInt(_0x2a8214(0x1f1))/0x6)+parseInt(_0x2a8214(0x1e8))/0x7+parseInt(_0x2a8214(0x1d6))/0x8*(-parseInt(_0x2a8214(0x1e3))/0x9)+-parseInt(_0x2a8214(0x1e5))/0xa*(-parseInt(_0x2a8214(0x1e4))/0xb);if(_0x1ade2d===_0x649fb9)break;else _0x392471['push'](_0x392471['shift']());}catch(_0x14f96c){_0x392471['push'](_0x392471['shift']());}}}(a66_0x7a2c,0x761a6));import{logger}from'../../utils/logger.js';function a66_0x44a7(_0x2d9b9c,_0x6a4532){_0x2d9b9c=_0x2d9b9c-0x1d3;const _0x7a2cf3=a66_0x7a2c();let _0x44a7af=_0x7a2cf3[_0x2d9b9c];return _0x44a7af;}function a66_0x7a2c(){const _0x566556=['clearLogs','\x20\x20\x20Time:\x20','1180932MCrgWB','forEach','en-US','872306ALkEcR','406554vqiPvn','*\x20Logs\x20cleared','Clear\x20command\x20history\x20logs','message','level','warn','\x20\x20\x20Duration:\x20','1200Jydjuo','stringify','toLocaleString','details','log','logs','View\x20command\x20history\x20logs','success','65INepOZ','keys','timestamp','*\x20No\x20logs\x20found','error','3348aCjuTT','121xudPTy','587920vMauHL','280oqQbGK','command','5232724kuPMuB','11805kwHuQZ','write'];a66_0x7a2c=function(){return _0x566556;};return a66_0x7a2c();}function printLogs(_0x438587){const _0x5af60d=a66_0x44a7;if(_0x438587['length']===0x0){console[_0x5af60d(0x1da)](_0x5af60d(0x1e1));return;}console[_0x5af60d(0x1da)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x438587[_0x5af60d(0x1ee)]((_0x9a49d4,_0x18dba2)=>{const _0x1f3d0e=_0x5af60d,_0x48c04e=new Date(_0x9a49d4[_0x1f3d0e(0x1e0)])[_0x1f3d0e(0x1d8)](_0x1f3d0e(0x1ef)),_0x3ee45e=_0x9a49d4[_0x1f3d0e(0x1d3)]===_0x1f3d0e(0x1dd)?'√':_0x9a49d4[_0x1f3d0e(0x1d3)]===_0x1f3d0e(0x1e2)?'×':_0x9a49d4[_0x1f3d0e(0x1d3)]===_0x1f3d0e(0x1d4)?'!':'i';console[_0x1f3d0e(0x1da)](_0x18dba2+0x1+'.\x20'+_0x3ee45e+'\x20['+_0x9a49d4[_0x1f3d0e(0x1e7)]+']\x20'+_0x9a49d4[_0x1f3d0e(0x1f4)]),console[_0x1f3d0e(0x1da)](_0x1f3d0e(0x1ec)+_0x48c04e),_0x9a49d4['duration']&&console[_0x1f3d0e(0x1da)](_0x1f3d0e(0x1d5)+_0x9a49d4['duration']+'ms'),_0x9a49d4[_0x1f3d0e(0x1d9)]&&Object[_0x1f3d0e(0x1df)](_0x9a49d4[_0x1f3d0e(0x1d9)])['length']>0x0&&console[_0x1f3d0e(0x1da)]('\x20\x20\x20Details:\x20'+JSON[_0x1f3d0e(0x1d7)](_0x9a49d4[_0x1f3d0e(0x1d9)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a66_0x13b70b(0x1db),'command':'show','description':a66_0x13b70b(0x1dc),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x177cf4){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a66_0x13b70b(0x1db),'command':'clear','description':a66_0x13b70b(0x1f3),'risk':a66_0x13b70b(0x1ea),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xf49a57){const _0x8b4e28=a66_0x13b70b;return logger[_0x8b4e28(0x1eb)](),console[_0x8b4e28(0x1da)](_0x8b4e28(0x1f2)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x5ad380,_0x46d4ad){const _0x5dd205=a132_0x50f8,_0x51f33c=_0x5ad380();while(!![]){try{const _0x260a63=-parseInt(_0x5dd205(0x176))/0x1+-parseInt(_0x5dd205(0x170))/0x2*(parseInt(_0x5dd205(0x16f))/0x3)+parseInt(_0x5dd205(0x174))/0x4*(-parseInt(_0x5dd205(0x175))/0x5)+-parseInt(_0x5dd205(0x173))/0x6+parseInt(_0x5dd205(0x172))/0x7+parseInt(_0x5dd205(0x171))/0x8+parseInt(_0x5dd205(0x177))/0x9;if(_0x260a63===_0x46d4ad)break;else _0x51f33c['push'](_0x51f33c['shift']());}catch(_0x36c2ef){_0x51f33c['push'](_0x51f33c['shift']());}}}(a132_0xf6e8,0x2f6b9));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];function a132_0x50f8(_0x33adf4,_0x2ca6b4){_0x33adf4=_0x33adf4-0x16f;const _0xf6e86c=a132_0xf6e8();let _0x50f8ac=_0xf6e86c[_0x33adf4];return _0x50f8ac;}function a132_0xf6e8(){const _0xce554d=['365105tiReZx','64851qlVhvM','4764087tAzawc','593772pFviNn','2gANEmL','263560AFjRWM','2181816VyOnDq','749304fvmteW','16fLsymv'];a132_0xf6e8=function(){return _0xce554d;};return a132_0xf6e8();}
1
+ function a67_0x53a2(){const _0x3ade04=['718324EWdWHx','353889LadREP','6504hUxvek','798078BpcWYu','152910BZrras','312vkpfjm','7SjCltF','400725wvCdLi','2694696HTpjlP'];a67_0x53a2=function(){return _0x3ade04;};return a67_0x53a2();}(function(_0x100113,_0x2dc9c3){const _0x115a49=a67_0x4ccc,_0x2a81f2=_0x100113();while(!![]){try{const _0x59a7b7=parseInt(_0x115a49(0xdc))/0x1+-parseInt(_0x115a49(0xe4))/0x2+parseInt(_0x115a49(0xe0))/0x3*(parseInt(_0x115a49(0xdd))/0x4)+-parseInt(_0x115a49(0xe2))/0x5+parseInt(_0x115a49(0xde))/0x6*(-parseInt(_0x115a49(0xe1))/0x7)+parseInt(_0x115a49(0xe3))/0x8+parseInt(_0x115a49(0xdf))/0x9;if(_0x59a7b7===_0x2dc9c3)break;else _0x2a81f2['push'](_0x2a81f2['shift']());}catch(_0x27030d){_0x2a81f2['push'](_0x2a81f2['shift']());}}}(a67_0x53a2,0x4a574));import{menuSync}from'../../commands/menu/sync.js';function a67_0x4ccc(_0x28bdba,_0x1ae1b0){_0x28bdba=_0x28bdba-0xdc;const _0x53a2ed=a67_0x53a2();let _0x4ccc73=_0x53a2ed[_0x28bdba];return _0x4ccc73;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a123_0x4d6a(_0x5803fa,_0x53addc){_0x5803fa=_0x5803fa-0x176;const _0x385b42=a123_0x385b();let _0x4d6aaa=_0x385b42[_0x5803fa];return _0x4d6aaa;}(function(_0x9268ec,_0x2a3a3e){const _0x1c6733=a123_0x4d6a,_0xfb025d=_0x9268ec();while(!![]){try{const _0x1fdc30=-parseInt(_0x1c6733(0x176))/0x1+parseInt(_0x1c6733(0x18a))/0x2+parseInt(_0x1c6733(0x18c))/0x3+-parseInt(_0x1c6733(0x177))/0x4+-parseInt(_0x1c6733(0x18d))/0x5*(-parseInt(_0x1c6733(0x18e))/0x6)+parseInt(_0x1c6733(0x18b))/0x7*(parseInt(_0x1c6733(0x191))/0x8)+-parseInt(_0x1c6733(0x17d))/0x9;if(_0x1fdc30===_0x2a3a3e)break;else _0xfb025d['push'](_0xfb025d['shift']());}catch(_0x10cc76){_0xfb025d['push'](_0xfb025d['shift']());}}}(a123_0x385b,0x7f5dd));function strWidth(_0x1ad213){const _0x4d9c7f=a123_0x4d6a;let _0x4c010f=0x0;for(const _0x13fd62 of _0x1ad213){_0x4c010f+=/[\u4e00-\u9fa5]/[_0x4d9c7f(0x17b)](_0x13fd62)?0x2:0x1;}return _0x4c010f;}function padRight(_0x33cac0,_0xa18c7c){const _0x50229a=strWidth(_0x33cac0);return _0x33cac0+'\x20'['repeat'](Math['max'](0x0,_0xa18c7c-_0x50229a));}export function renderCompareTable(_0x40f7b8,_0x21b8d9={}){const _0x375b57=a123_0x4d6a;if(_0x40f7b8['length']===0x0)return'';const _0x246e0a=_0x21b8d9[_0x375b57(0x190)]??!![],_0x5e5d6e=Math[_0x375b57(0x192)](0x1e,..._0x40f7b8[_0x375b57(0x18f)](_0x49af7a=>strWidth(_0x49af7a[_0x375b57(0x184)]))),_0x356c3a=0x4,_0x30d9c8=[],_0x1e1e3a='\x20\x20'+padRight(_0x375b57(0x188),_0x5e5d6e),_0x1b1919=padRight('Local',_0x356c3a),_0x472167=_0x246e0a?'\x20\x20'+padRight(_0x375b57(0x17f),_0x356c3a):'';_0x30d9c8[_0x375b57(0x17c)](_0x1e1e3a+'\x20\x20'+_0x1b1919+(_0x246e0a?_0x472167:'')),_0x30d9c8[_0x375b57(0x17c)]('\x20\x20'+'─'[_0x375b57(0x181)](_0x5e5d6e)+'\x20\x20'+'─'['repeat'](_0x356c3a)+(_0x246e0a?'\x20\x20'+'─'[_0x375b57(0x181)](_0x356c3a):''));for(const _0x421c3e of _0x40f7b8){const _0x4672e6=padRight(_0x421c3e[_0x375b57(0x184)],_0x5e5d6e),_0x47044d=_0x421c3e[_0x375b57(0x178)]?'✓':'✗',_0x138dff=padRight(_0x47044d,_0x356c3a);let _0x7b07d1='\x20\x20'+_0x4672e6+'\x20\x20'+_0x138dff;if(_0x246e0a){const _0x460184=_0x421c3e['online']?'✓':'✗';_0x7b07d1+='\x20\x20'+padRight(_0x460184,_0x356c3a);}_0x30d9c8['push'](_0x7b07d1);}return _0x30d9c8['join']('\x0a');}function a123_0x385b(){const _0x12b392=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','repeat','(unchanged)','join','label','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','path','\x20\x20No\x20pages\x20to\x20sync.','Menu\x20Name','\x20\x20\x20\x20JS:\x20\x20','819178tpmpJy','19103uKfQjz','1710315QmuYgO','4248055UlUybp','6NYdRgu','map','showOnline','16MvRjfG','max','656430KqCneh','2259656lmQHsx','local','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20\x20\x20•\x20','test','push','825534QEjLuG','\x20\x20Affected\x20menus:\x20','Platform'];a123_0x385b=function(){return _0x12b392;};return a123_0x385b();}export function renderSyncSummary(_0x396ae8,_0xcc5a84){const _0x5f48a5=a123_0x4d6a;if(_0x396ae8['length']===0x0)return _0xcc5a84?_0x5f48a5(0x179):_0x5f48a5(0x187);const _0x1a9632=['\x20\x20'+_0x396ae8['length']+_0x5f48a5(0x180)];for(const _0x3e6b47 of _0x396ae8){_0x1a9632['push'](_0x5f48a5(0x17a)+_0x3e6b47['label']+'\x20('+_0x3e6b47[_0x5f48a5(0x186)]+')');}return _0x1a9632[_0x5f48a5(0x183)]('\x0a');}export function renderUpdateSummary(_0x3cbbb6,_0x2f9b53){const _0x29503e=a123_0x4d6a;if(_0x3cbbb6['length']===0x0)return _0x29503e(0x185);const _0xa5ce7e=['\x20\x20'+_0x3cbbb6['length']+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x29503e(0x189)+(_0x2f9b53[0x0]??_0x29503e(0x182)),'\x20\x20\x20\x20CSS:\x20'+(_0x2f9b53[0x1]??_0x29503e(0x182)),'',_0x29503e(0x17e)+_0x3cbbb6[_0x29503e(0x183)](',\x20')];return _0xa5ce7e[_0x29503e(0x183)]('\x0a');}
1
+ (function(_0x1992ef,_0x10fbf4){const _0x58b002=a68_0x25ed,_0x4a274c=_0x1992ef();while(!![]){try{const _0x31fd18=parseInt(_0x58b002(0xc1))/0x1+-parseInt(_0x58b002(0xbe))/0x2*(parseInt(_0x58b002(0xc5))/0x3)+-parseInt(_0x58b002(0xb9))/0x4*(parseInt(_0x58b002(0xc8))/0x5)+-parseInt(_0x58b002(0xb5))/0x6*(parseInt(_0x58b002(0xb8))/0x7)+-parseInt(_0x58b002(0xb3))/0x8*(-parseInt(_0x58b002(0xa9))/0x9)+parseInt(_0x58b002(0xae))/0xa+-parseInt(_0x58b002(0xb1))/0xb;if(_0x31fd18===_0x10fbf4)break;else _0x4a274c['push'](_0x4a274c['shift']());}catch(_0x1c5cc6){_0x4a274c['push'](_0x4a274c['shift']());}}}(a68_0x4bb8,0x44e75));function strWidth(_0x1be5d6){const _0x2db763=a68_0x25ed;let _0xcd960d=0x0;for(const _0x15ac0c of _0x1be5d6){_0xcd960d+=/[\u4e00-\u9fa5]/[_0x2db763(0xb6)](_0x15ac0c)?0x2:0x1;}return _0xcd960d;}function padRight(_0x3d4d04,_0x16b3dc){const _0x37f035=a68_0x25ed,_0x87564c=strWidth(_0x3d4d04);return _0x3d4d04+'\x20'[_0x37f035(0xb4)](Math[_0x37f035(0xc7)](0x0,_0x16b3dc-_0x87564c));}export function renderCompareTable(_0x4b4082,_0x54502f={}){const _0x32236a=a68_0x25ed;if(_0x4b4082['length']===0x0)return'';const _0x528deb=_0x54502f[_0x32236a(0xab)]??!![],_0x47f877=Math[_0x32236a(0xc7)](0x1e,..._0x4b4082['map'](_0x5b929a=>strWidth(_0x5b929a[_0x32236a(0xbb)]))),_0x111ded=0x4,_0x161e1e=[],_0x59f12f='\x20\x20'+padRight(_0x32236a(0xba),_0x47f877),_0x1eef97=padRight(_0x32236a(0xaf),_0x111ded),_0x9bf499=_0x528deb?'\x20\x20'+padRight(_0x32236a(0xbc),_0x111ded):'';_0x161e1e[_0x32236a(0xc4)](_0x59f12f+'\x20\x20'+_0x1eef97+(_0x528deb?_0x9bf499:'')),_0x161e1e[_0x32236a(0xc4)]('\x20\x20'+'─'[_0x32236a(0xb4)](_0x47f877)+'\x20\x20'+'─'['repeat'](_0x111ded)+(_0x528deb?'\x20\x20'+'─'[_0x32236a(0xb4)](_0x111ded):''));for(const _0x409b1b of _0x4b4082){const _0x5cb531=padRight(_0x409b1b['label'],_0x47f877),_0x1dac7b=_0x409b1b['local']?'✓':'✗',_0x2fbcf2=padRight(_0x1dac7b,_0x111ded);let _0x5d59b5='\x20\x20'+_0x5cb531+'\x20\x20'+_0x2fbcf2;if(_0x528deb){const _0x2fbfad=_0x409b1b[_0x32236a(0xc3)]?'✓':'✗';_0x5d59b5+='\x20\x20'+padRight(_0x2fbfad,_0x111ded);}_0x161e1e[_0x32236a(0xc4)](_0x5d59b5);}return _0x161e1e[_0x32236a(0xaa)]('\x0a');}export function renderSyncSummary(_0x10b188,_0x4a3ab7){const _0x5b0f07=a68_0x25ed;if(_0x10b188['length']===0x0)return _0x4a3ab7?_0x5b0f07(0xb0):_0x5b0f07(0xbf);const _0x27139c=['\x20\x20'+_0x10b188[_0x5b0f07(0xad)]+_0x5b0f07(0xac)];for(const _0x5487d5 of _0x10b188){_0x27139c['push'](_0x5b0f07(0xb7)+_0x5487d5[_0x5b0f07(0xbb)]+'\x20('+_0x5487d5['path']+')');}return _0x27139c['join']('\x0a');}function a68_0x25ed(_0x56da29,_0x2de8e3){_0x56da29=_0x56da29-0xa9;const _0x4bb89a=a68_0x4bb8();let _0x25edad=_0x4bb89a[_0x56da29];return _0x25edad;}export function renderUpdateSummary(_0x45e723,_0x409e0c){const _0x36905f=a68_0x25ed;if(_0x45e723[_0x36905f(0xad)]===0x0)return _0x36905f(0xb2);const _0x317892=['\x20\x20'+_0x45e723[_0x36905f(0xad)]+_0x36905f(0xc0),'\x20\x20\x20\x20JS:\x20\x20'+(_0x409e0c[0x0]??_0x36905f(0xc6)),_0x36905f(0xc2)+(_0x409e0c[0x1]??_0x36905f(0xc6)),'',_0x36905f(0xbd)+_0x45e723[_0x36905f(0xaa)](',\x20')];return _0x317892[_0x36905f(0xaa)]('\x0a');}function a68_0x4bb8(){const _0x29ccb1=['length','5054800LLYtAt','Local','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','2515755rzMcSo','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','248vsroSF','repeat','2094uabLqL','test','\x20\x20\x20\x20•\x20','539eKHrNe','8080JBiGoN','Menu\x20Name','label','Platform','\x20\x20Affected\x20menus:\x20','22930cEYBVu','\x20\x20No\x20pages\x20to\x20sync.','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','194408JObZCs','\x20\x20\x20\x20CSS:\x20','online','push','18sOzFjJ','(unchanged)','max','1345lhLNhz','130671LpPgXw','join','showOnline','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];a68_0x4bb8=function(){return _0x29ccb1;};return a68_0x4bb8();}
@@ -1 +1 @@
1
- (function(_0x52f945,_0x2db6e2){var _0x2d5f2f=a126_0x275e,_0x4bbaec=_0x52f945();while(!![]){try{var _0x393ae4=-parseInt(_0x2d5f2f(0x18b))/0x1+-parseInt(_0x2d5f2f(0x18a))/0x2*(parseInt(_0x2d5f2f(0x18c))/0x3)+parseInt(_0x2d5f2f(0x18f))/0x4+parseInt(_0x2d5f2f(0x18e))/0x5+-parseInt(_0x2d5f2f(0x187))/0x6+parseInt(_0x2d5f2f(0x18d))/0x7*(parseInt(_0x2d5f2f(0x189))/0x8)+parseInt(_0x2d5f2f(0x188))/0x9;if(_0x393ae4===_0x2db6e2)break;else _0x4bbaec['push'](_0x4bbaec['shift']());}catch(_0x5bdec4){_0x4bbaec['push'](_0x4bbaec['shift']());}}}(a126_0x48ea,0x5ffbf));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';function a126_0x275e(_0x30b501,_0x5e246a){_0x30b501=_0x30b501-0x187;var _0x48ea26=a126_0x48ea();var _0x275ee6=_0x48ea26[_0x30b501];return _0x275ee6;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';function a126_0x48ea(){var _0x285a5f=['2599608xFKvti','2027958IOVkdm','5813316RhpxYA','8KfLgIP','2IZHTEr','82503kVtHSy','1912557wSPTXJ','108227bsToSU','699395sbUFKr'];a126_0x48ea=function(){return _0x285a5f;};return a126_0x48ea();}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x3d96f3,_0x131de8){var _0x43b387=a69_0x1d78,_0x279b97=_0x3d96f3();while(!![]){try{var _0x4016bd=parseInt(_0x43b387(0x8b))/0x1*(-parseInt(_0x43b387(0x87))/0x2)+parseInt(_0x43b387(0x85))/0x3+parseInt(_0x43b387(0x89))/0x4+parseInt(_0x43b387(0x84))/0x5*(-parseInt(_0x43b387(0x88))/0x6)+-parseInt(_0x43b387(0x8c))/0x7+parseInt(_0x43b387(0x86))/0x8+-parseInt(_0x43b387(0x8a))/0x9;if(_0x4016bd===_0x131de8)break;else _0x279b97['push'](_0x279b97['shift']());}catch(_0x2ee6f5){_0x279b97['push'](_0x279b97['shift']());}}}(a69_0x1ba7,0x42a10));function a69_0x1ba7(){var _0x58d86d=['2164808cxtJCE','775606oCDAOx','1009992XnQPqE','1976388wsuEXD','3424140ePPQNO','1XviQoh','299712XdIPFo','5LfFNDp','1462875wDISdA'];a69_0x1ba7=function(){return _0x58d86d;};return a69_0x1ba7();}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';function a69_0x1d78(_0x362937,_0x48887f){_0x362937=_0x362937-0x84;var _0x1ba7bf=a69_0x1ba7();var _0x1d7857=_0x1ba7bf[_0x362937];return _0x1d7857;}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 +1 @@
1
- (function(_0x18e57e,_0x55edcd){const _0xe0cf4f=a127_0x2494,_0x378890=_0x18e57e();while(!![]){try{const _0x244b65=parseInt(_0xe0cf4f(0x14d))/0x1+-parseInt(_0xe0cf4f(0x166))/0x2*(-parseInt(_0xe0cf4f(0x155))/0x3)+-parseInt(_0xe0cf4f(0x15c))/0x4*(parseInt(_0xe0cf4f(0x164))/0x5)+parseInt(_0xe0cf4f(0x151))/0x6+-parseInt(_0xe0cf4f(0x15d))/0x7+parseInt(_0xe0cf4f(0x16b))/0x8*(-parseInt(_0xe0cf4f(0x14b))/0x9)+parseInt(_0xe0cf4f(0x14c))/0xa;if(_0x244b65===_0x55edcd)break;else _0x378890['push'](_0x378890['shift']());}catch(_0x567847){_0x378890['push'](_0x378890['shift']());}}}(a127_0x1862,0x8c609));import a127_0xed40de from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a127_0x3659aa from'ora';function a127_0x2494(_0x106d7f,_0xbb8f32){_0x106d7f=_0x106d7f-0x145;const _0x186247=a127_0x1862();let _0x24945a=_0x186247[_0x106d7f];return _0x24945a;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x7e222e){const _0x20d29e=a127_0x2494;return _0x7e222e[_0x20d29e(0x153)](_0x511fc0=>{const _0x26565a=_0x20d29e;if(_0x511fc0?.[_0x26565a(0x162)]===_0x26565a(0x16e))throw CliErrors[_0x26565a(0x16a)]('Cancelled.');throw _0x511fc0;});}export function startSpinner(_0x4a583d){const _0x568fb0=a127_0x2494;return a127_0x3659aa({'text':_0x4a583d,'color':_0x568fb0(0x15a)})[_0x568fb0(0x168)]();}export function stopSpinner(_0x5133d6,_0xc7fb27,_0x1519f0){const _0x2644ba=a127_0x2494;_0x1519f0?_0x5133d6[_0x2644ba(0x147)](_0xc7fb27):_0x5133d6[_0x2644ba(0x156)](_0xc7fb27);}export async function askConfirm(_0x4365bc){return onCancel(confirm({'message':_0x4365bc,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3be489){const _0x3f1e0e=a127_0x2494;while(!![]){const _0x6a522b=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x3be489,'theme':{'prefix':''}}));if(_0x6a522b['trim']()==='')throw CliErrors[_0x3f1e0e(0x16a)](_0x3f1e0e(0x157));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3f1e0e(0x16f)](_0x6a522b[_0x3f1e0e(0x160)]())){console[_0x3f1e0e(0x158)](a127_0xed40de[_0x3f1e0e(0x149)](_0x3f1e0e(0x15f)));continue;}const _0x191106=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x1ae37e=await isUrlReachable(_0x6a522b[_0x3f1e0e(0x160)]());stopSpinner(_0x191106,_0x3f1e0e(0x148),_0x1ae37e);if(!_0x1ae37e){console['error'](a127_0xed40de['red'](_0x3f1e0e(0x154)));continue;}return _0x6a522b['trim']();}catch(_0x3659a9){stopSpinner(_0x191106,_0x3f1e0e(0x15b),![]);throw _0x3659a9;}}}export async function askCssUrl(_0x2ae325){const _0x2d28ea=a127_0x2494;while(!![]){const _0xe647f6=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x2ae325,'theme':{'prefix':''}}));if(_0xe647f6[_0x2d28ea(0x160)]()==='')throw CliErrors['cancelled'](_0x2d28ea(0x157));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x2d28ea(0x16f)](_0xe647f6[_0x2d28ea(0x160)]())){console[_0x2d28ea(0x158)](a127_0xed40de[_0x2d28ea(0x149)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x331918=startSpinner(_0x2d28ea(0x165));try{const _0x6d8c2a=await isUrlReachable(_0xe647f6[_0x2d28ea(0x160)]());stopSpinner(_0x331918,_0x2d28ea(0x161),_0x6d8c2a);if(!_0x6d8c2a){console['error'](a127_0xed40de['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0xe647f6[_0x2d28ea(0x160)]();}catch(_0x5d4281){stopSpinner(_0x331918,_0x2d28ea(0x152),![]);throw _0x5d4281;}}}function a127_0x1862(){const _0x2f92e3=['\x20\x20Checking\x20CSS\x20URL\x20reachability...','137330WAehFo','has','start','No\x20local\x20pages\x20found.','cancelled','2240776CWURXe','map','includes','ExitPromptError','test','[new]','isTTY','succeed','JS\x20URL\x20checked','red','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','9SDjdCK','15918170GmBPcn','505313QlLoKy','green','path','length','2091252rgRjhy','CSS\x20URL\x20check\x20failed','catch','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','3oZtUqt','fail','Cancelled.','error','gray','cyan','JS\x20URL\x20check\x20failed','4477468BzLjOn','3779216eQIblh','label','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','trim','CSS\x20URL\x20checked','name','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','5jLvdmn'];a127_0x1862=function(){return _0x2f92e3;};return a127_0x1862();}export async function selectPages(_0x390399,_0x3b0ada,_0x519f6f){const _0x1bb246=a127_0x2494,_0xf5236c=_0x390399[_0x1bb246(0x16c)](_0x5cf147=>({'name':_0x5cf147[_0x1bb246(0x15e)]+'\x20\x20'+(_0x3b0ada[_0x1bb246(0x167)](_0x5cf147[_0x1bb246(0x14f)])?a127_0xed40de[_0x1bb246(0x159)]('[already\x20on\x20platform]'):a127_0xed40de[_0x1bb246(0x14e)](_0x1bb246(0x145))),'value':_0x5cf147['label'],'checked':_0x519f6f?_0x519f6f[_0x1bb246(0x16d)](_0x5cf147[_0x1bb246(0x15e)]):!_0x3b0ada['has'](_0x5cf147[_0x1bb246(0x14f)])}));if(_0xf5236c['length']===0x0)throw new Error(_0x1bb246(0x169));const _0x273431=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0xf5236c,'loop':![],'theme':{'prefix':''}}));if(_0x273431[_0x1bb246(0x150)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x390399['filter'](_0x4bd835=>_0x273431[_0x1bb246(0x16d)](_0x4bd835[_0x1bb246(0x15e)]));}export function isInteractive(){const _0x51f55f=a127_0x2494;return process['stdin'][_0x51f55f(0x146)]===!![];}export function requireInteractive(){const _0x189754=a127_0x2494;if(!isInteractive())throw new Error(_0x189754(0x14a)+_0x189754(0x163));}
1
+ (function(_0x13a279,_0x35c149){const _0xa21706=a70_0xa692,_0x5c0d63=_0x13a279();while(!![]){try{const _0x3f8ba2=-parseInt(_0xa21706(0xc7))/0x1+parseInt(_0xa21706(0xc2))/0x2+-parseInt(_0xa21706(0xeb))/0x3*(-parseInt(_0xa21706(0xd9))/0x4)+parseInt(_0xa21706(0xe8))/0x5*(-parseInt(_0xa21706(0xcf))/0x6)+parseInt(_0xa21706(0xc9))/0x7*(parseInt(_0xa21706(0xc8))/0x8)+-parseInt(_0xa21706(0xc6))/0x9+parseInt(_0xa21706(0xe6))/0xa*(parseInt(_0xa21706(0xe7))/0xb);if(_0x3f8ba2===_0x35c149)break;else _0x5c0d63['push'](_0x5c0d63['shift']());}catch(_0x14c210){_0x5c0d63['push'](_0x5c0d63['shift']());}}}(a70_0x1a75,0x97302));import a70_0x1c173f from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a70_0x5db3ae from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a70_0x1a75(){const _0x4c436b=['1492460WSrVyn','JS\x20URL\x20check\x20failed','map','label','6148179ardQIL','276787qVznrS','355016UptUHB','7oWjxUi','includes','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','name','catch','red','1038138kaEtMP','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','ExitPromptError','has','\x20\x20Checking\x20CSS\x20URL\x20reachability...','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','Cancelled.','\x20\x20CSS\x20URL:','error','cyan','4VwTTdM','\x20\x20Checking\x20JS\x20URL\x20reachability...','length','CSS\x20URL\x20checked','path','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','No\x20local\x20pages\x20found.','[already\x20on\x20platform]','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','gray','test','cancelled','start','30vcuAqB','856889rkWNtu','5erWoQp','fail','CSS\x20URL\x20check\x20failed','2183709boaVEX','succeed','trim','isTTY','[new]','JS\x20URL\x20checked','filter'];a70_0x1a75=function(){return _0x4c436b;};return a70_0x1a75();}function onCancel(_0x4cd1f9){const _0x4600e6=a70_0xa692;return _0x4cd1f9[_0x4600e6(0xcd)](_0x524074=>{const _0x49c25f=_0x4600e6;if(_0x524074?.[_0x49c25f(0xcc)]===_0x49c25f(0xd1))throw CliErrors[_0x49c25f(0xe4)](_0x49c25f(0xd5));throw _0x524074;});}export function startSpinner(_0x16213b){const _0x3f3785=a70_0xa692;return a70_0x5db3ae({'text':_0x16213b,'color':_0x3f3785(0xd8)})[_0x3f3785(0xe5)]();}export function stopSpinner(_0x371cc2,_0x1b11e2,_0x1c240a){const _0xbdad5f=a70_0xa692;_0x1c240a?_0x371cc2[_0xbdad5f(0xec)](_0x1b11e2):_0x371cc2[_0xbdad5f(0xe9)](_0x1b11e2);}export async function askConfirm(_0x5956d1){return onCancel(confirm({'message':_0x5956d1,'theme':{'prefix':''}}));}function a70_0xa692(_0x5925ff,_0x524811){_0x5925ff=_0x5925ff-0xbe;const _0x1a75b9=a70_0x1a75();let _0xa69225=_0x1a75b9[_0x5925ff];return _0xa69225;}export async function askJsUrl(_0x2a1102){const _0xa5f912=a70_0xa692;while(!![]){const _0x57f524=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x2a1102,'theme':{'prefix':''}}));if(_0x57f524[_0xa5f912(0xed)]()==='')throw CliErrors[_0xa5f912(0xe4)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0xa5f912(0xe3)](_0x57f524[_0xa5f912(0xed)]())){console[_0xa5f912(0xd7)](a70_0x1c173f[_0xa5f912(0xce)](_0xa5f912(0xe1)));continue;}const _0x3d9644=startSpinner(_0xa5f912(0xda));try{const _0x3943a9=await isUrlReachable(_0x57f524[_0xa5f912(0xed)]());stopSpinner(_0x3d9644,_0xa5f912(0xc0),_0x3943a9);if(!_0x3943a9){console['error'](a70_0x1c173f[_0xa5f912(0xce)](_0xa5f912(0xcb)));continue;}return _0x57f524[_0xa5f912(0xed)]();}catch(_0x5baa1f){stopSpinner(_0x3d9644,_0xa5f912(0xc3),![]);throw _0x5baa1f;}}}export async function askCssUrl(_0x45df7b){const _0x533cfb=a70_0xa692;while(!![]){const _0x3f7009=await onCancel(input({'message':_0x533cfb(0xd6),'default':_0x45df7b,'theme':{'prefix':''}}));if(_0x3f7009[_0x533cfb(0xed)]()==='')throw CliErrors[_0x533cfb(0xe4)](_0x533cfb(0xd5));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x533cfb(0xe3)](_0x3f7009[_0x533cfb(0xed)]())){console[_0x533cfb(0xd7)](a70_0x1c173f['red'](_0x533cfb(0xde)));continue;}const _0x4a98ae=startSpinner(_0x533cfb(0xd3));try{const _0x256ecc=await isUrlReachable(_0x3f7009[_0x533cfb(0xed)]());stopSpinner(_0x4a98ae,_0x533cfb(0xdc),_0x256ecc);if(!_0x256ecc){console['error'](a70_0x1c173f[_0x533cfb(0xce)](_0x533cfb(0xd0)));continue;}return _0x3f7009['trim']();}catch(_0x3c7bab){stopSpinner(_0x4a98ae,_0x533cfb(0xea),![]);throw _0x3c7bab;}}}export async function selectPages(_0x53990e,_0x1b2389,_0x2bc73e){const _0x363cd4=a70_0xa692,_0x5a788d=_0x53990e[_0x363cd4(0xc4)](_0x4919c5=>({'name':_0x4919c5['label']+'\x20\x20'+(_0x1b2389[_0x363cd4(0xd2)](_0x4919c5['path'])?a70_0x1c173f[_0x363cd4(0xe2)](_0x363cd4(0xe0)):a70_0x1c173f['green'](_0x363cd4(0xbf))),'value':_0x4919c5[_0x363cd4(0xc5)],'checked':_0x2bc73e?_0x2bc73e[_0x363cd4(0xca)](_0x4919c5[_0x363cd4(0xc5)]):!_0x1b2389[_0x363cd4(0xd2)](_0x4919c5[_0x363cd4(0xdd)])}));if(_0x5a788d[_0x363cd4(0xdb)]===0x0)throw new Error(_0x363cd4(0xdf));const _0x4a78a=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x5a788d,'loop':![],'theme':{'prefix':''}}));if(_0x4a78a['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x53990e[_0x363cd4(0xc1)](_0x3d2d40=>_0x4a78a['includes'](_0x3d2d40['label']));}export function isInteractive(){const _0x121631=a70_0xa692;return process['stdin'][_0x121631(0xbe)]===!![];}export function requireInteractive(){const _0x137c9a=a70_0xa692;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x137c9a(0xd4));}
@@ -1 +1 @@
1
- const a128_0x2cd43d=a128_0x4013;(function(_0x544711,_0x183723){const _0x22a409=a128_0x4013,_0x1737e5=_0x544711();while(!![]){try{const _0x25ebc7=parseInt(_0x22a409(0xa7))/0x1+parseInt(_0x22a409(0xa3))/0x2*(-parseInt(_0x22a409(0x9f))/0x3)+parseInt(_0x22a409(0xa8))/0x4*(-parseInt(_0x22a409(0x9d))/0x5)+parseInt(_0x22a409(0xae))/0x6+-parseInt(_0x22a409(0x9c))/0x7*(-parseInt(_0x22a409(0xa2))/0x8)+-parseInt(_0x22a409(0xaa))/0x9+-parseInt(_0x22a409(0xac))/0xa;if(_0x25ebc7===_0x183723)break;else _0x1737e5['push'](_0x1737e5['shift']());}catch(_0x3bfda2){_0x1737e5['push'](_0x1737e5['shift']());}}}(a128_0x2249,0x8b03f));function a128_0x4013(_0x3510bb,_0x469ded){_0x3510bb=_0x3510bb-0x97;const _0x224907=a128_0x2249();let _0x401388=_0x224907[_0x3510bb];return _0x401388;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a128_0x2249(){const _0x411887=['split','endsWith','11656wCUXfa','82nfmzqa','replace','filter','path','923982xxShFQ','104SpEPmV','concat','4881204FFXoUU','utf-8','1282920DwtaHp','match','2617548yOzHnk','replaceAll','cwd','index.tsx','.tsx','isDirectory','448RwpbWm','2150HHyhwD','slice','14799wpVNjl'];a128_0x2249=function(){return _0x411887;};return a128_0x2249();}const pagesDir=resolve(process[a128_0x2cd43d(0x98)](),'src/pages');export function extractTitleFromComment(_0x32868c){const _0xcceb8f=a128_0x2cd43d;try{const _0x207ba1=readFileSync(_0x32868c,_0xcceb8f(0xab)),_0x48b47c=_0x207ba1[_0xcceb8f(0xad)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x48b47c&&_0x48b47c[0x1]){const _0x527410=_0x48b47c[0x1],_0x477e23=_0x527410[_0xcceb8f(0xad)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x477e23&&_0x477e23[0x1])return _0x477e23[0x1]['trim']();}let _0x3d40ef=null;const _0x204e14=_0x207ba1['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x204e14&&_0x204e14[0x1]&&(_0x3d40ef=_0x204e14[0x1]);if(!_0x3d40ef){const _0x586b88=_0x207ba1['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x586b88&&_0x586b88[0x1]&&(_0x3d40ef=_0x586b88[0x1]);}if(_0x3d40ef){const _0x5cd6e4=new RegExp('\x5cb'+_0x3d40ef+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x27e20f=_0x207ba1[_0xcceb8f(0xad)](_0x5cd6e4);if(_0x27e20f&&_0x27e20f[0x1])return _0x27e20f[0x1];return _0x3d40ef;}return null;}catch(_0x47b289){return null;}}export function getLocalPages(_0x47e2f8=pagesDir,_0x42f36e=pagesDir){const _0x55bdfe=a128_0x2cd43d;let _0x4383c8=[];const _0x48bea1=readdirSync(_0x47e2f8);return _0x48bea1['forEach'](_0x362cb5=>{const _0x4ce5c7=a128_0x4013,_0x3e3b18=join(_0x47e2f8,_0x362cb5),_0x381816=statSync(_0x3e3b18);if(_0x381816&&_0x381816[_0x4ce5c7(0x9b)]())_0x4383c8=_0x4383c8[_0x4ce5c7(0xa9)](getLocalPages(_0x3e3b18,_0x42f36e));else{if(_0x362cb5['endsWith'](_0x4ce5c7(0x9a))){let _0x5c7b0c=relative(_0x42f36e,_0x3e3b18);_0x5c7b0c[_0x4ce5c7(0xa1)](_0x4ce5c7(0x99))?_0x5c7b0c=_0x5c7b0c['replace'](/index\.tsx$/,''):_0x5c7b0c=_0x5c7b0c[_0x4ce5c7(0xa4)](/\.tsx$/,'');_0x5c7b0c[_0x4ce5c7(0xa1)](sep)&&(_0x5c7b0c=_0x5c7b0c[_0x4ce5c7(0x9e)](0x0,-0x1));const _0x136fc1=_0x5c7b0c[_0x4ce5c7(0xa0)](sep)['join']('/'),_0xc87a9c=extractTitleFromComment(_0x3e3b18),_0x542769=_0xc87a9c||_0x136fc1;_0x4383c8['push']({'path':_0x136fc1[_0x4ce5c7(0x97)]('$',':'),'label':_0x542769});}}}),_0x4383c8[_0x55bdfe(0xa5)](_0x3e5255=>_0x3e5255[_0x55bdfe(0xa6)]!=='');}
1
+ function a71_0x51b5(){const _0x1ae877=['160810zjpCix','match','concat','index.tsx','1697776lgNYzI','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','80940PsKNdO','utf-8','replace','src/pages','slice','trim','1991275NDvYyB','27fwmEaD','path','30gpvpKS','308740eKrroL','endsWith','isDirectory','.tsx','6242CrdHeB','forEach','filter','join','push','749287hXUYTK','5zeouTo','51hclZdj'];a71_0x51b5=function(){return _0x1ae877;};return a71_0x51b5();}const a71_0x5d07ae=a71_0x5dea;(function(_0x5ab2de,_0x415b65){const _0x16de93=a71_0x5dea,_0x16adcc=_0x5ab2de();while(!![]){try{const _0x46ed3e=parseInt(_0x16de93(0x1df))/0x1*(-parseInt(_0x16de93(0x1d9))/0x2)+-parseInt(_0x16de93(0x1e0))/0x3*(-parseInt(_0x16de93(0x1cb))/0x4)+parseInt(_0x16de93(0x1e1))/0x5*(-parseInt(_0x16de93(0x1d4))/0x6)+-parseInt(_0x16de93(0x1de))/0x7+parseInt(_0x16de93(0x1c9))/0x8+parseInt(_0x16de93(0x1d2))/0x9*(parseInt(_0x16de93(0x1d5))/0xa)+-parseInt(_0x16de93(0x1d1))/0xb;if(_0x46ed3e===_0x415b65)break;else _0x16adcc['push'](_0x16adcc['shift']());}catch(_0x103e2b){_0x16adcc['push'](_0x16adcc['shift']());}}}(a71_0x51b5,0x2d026));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a71_0x5d07ae(0x1ce));export function extractTitleFromComment(_0x122a29){const _0x471704=a71_0x5d07ae;try{const _0x1d3fb7=readFileSync(_0x122a29,_0x471704(0x1cc)),_0x3645d4=_0x1d3fb7[_0x471704(0x1e2)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x3645d4&&_0x3645d4[0x1]){const _0x58c5b0=_0x3645d4[0x1],_0x83440=_0x58c5b0[_0x471704(0x1e2)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x83440&&_0x83440[0x1])return _0x83440[0x1][_0x471704(0x1d0)]();}let _0x31d722=null;const _0x290bee=_0x1d3fb7[_0x471704(0x1e2)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x290bee&&_0x290bee[0x1]&&(_0x31d722=_0x290bee[0x1]);if(!_0x31d722){const _0x19ffa5=_0x1d3fb7[_0x471704(0x1e2)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x19ffa5&&_0x19ffa5[0x1]&&(_0x31d722=_0x19ffa5[0x1]);}if(_0x31d722){const _0x14b591=new RegExp('\x5cb'+_0x31d722+_0x471704(0x1ca)),_0xe73d55=_0x1d3fb7[_0x471704(0x1e2)](_0x14b591);if(_0xe73d55&&_0xe73d55[0x1])return _0xe73d55[0x1];return _0x31d722;}return null;}catch(_0x4d7720){return null;}}function a71_0x5dea(_0x19b8f2,_0xcdb1ab){_0x19b8f2=_0x19b8f2-0x1c8;const _0x51b595=a71_0x51b5();let _0x5dea97=_0x51b595[_0x19b8f2];return _0x5dea97;}export function getLocalPages(_0x5090e2=pagesDir,_0x2aac16=pagesDir){const _0x54721d=a71_0x5d07ae;let _0x940b60=[];const _0x2ee1d5=readdirSync(_0x5090e2);return _0x2ee1d5[_0x54721d(0x1da)](_0x2ac3ad=>{const _0x285b20=_0x54721d,_0x396f46=join(_0x5090e2,_0x2ac3ad),_0x25c792=statSync(_0x396f46);if(_0x25c792&&_0x25c792[_0x285b20(0x1d7)]())_0x940b60=_0x940b60[_0x285b20(0x1e3)](getLocalPages(_0x396f46,_0x2aac16));else{if(_0x2ac3ad['endsWith'](_0x285b20(0x1d8))){let _0x3db4d9=relative(_0x2aac16,_0x396f46);_0x3db4d9[_0x285b20(0x1d6)](_0x285b20(0x1c8))?_0x3db4d9=_0x3db4d9[_0x285b20(0x1cd)](/index\.tsx$/,''):_0x3db4d9=_0x3db4d9['replace'](/\.tsx$/,'');_0x3db4d9[_0x285b20(0x1d6)](sep)&&(_0x3db4d9=_0x3db4d9[_0x285b20(0x1cf)](0x0,-0x1));const _0x482923=_0x3db4d9['split'](sep)[_0x285b20(0x1dc)]('/'),_0x468bc2=extractTitleFromComment(_0x396f46),_0x2f6fb0=_0x468bc2||_0x482923;_0x940b60[_0x285b20(0x1dd)]({'path':_0x482923['replaceAll']('$',':'),'label':_0x2f6fb0});}}}),_0x940b60[_0x54721d(0x1db)](_0x6f5820=>_0x6f5820[_0x54721d(0x1d3)]!=='');}