@lovrabet/rabetbase-cli 2.1.4 → 2.1.5

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 (184) 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 -1
  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 -1
  81. package/lib/commands/page/generate-status.js +1 -1
  82. package/lib/commands/page/index.js +1 -1
  83. package/lib/commands/page/pull.js +1 -1
  84. package/lib/commands/page/push.js +1 -1
  85. package/lib/commands/page/shared.js +1 -1
  86. package/lib/commands/page/standard-page-status.js +1 -1
  87. package/lib/commands/page/sync.js +1 -1
  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 -1
  104. package/lib/commands/sql/delete.js +1 -1
  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 -1
  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 -1
  114. package/lib/commands/sql/validate.js +1 -1
  115. package/lib/config/schema.js +1 -1
  116. package/lib/constant/cdn.js +1 -1
  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 -1
  134. package/lib/core/page/hash.js +1 -1
  135. package/lib/core/page/lock.js +1 -1
  136. package/lib/core/sql-sync/config.js +1 -1
  137. package/lib/core/sql-sync/file-system.js +1 -1
  138. package/lib/core/sql-sync/hash.js +1 -1
  139. package/lib/core/sql-sync/lock.js +1 -1
  140. package/lib/core/sql-sync/utils.js +1 -1
  141. package/lib/core/sql-validator.js +1 -1
  142. package/lib/errors.js +1 -1
  143. package/lib/framework/build-all-flags.js +1 -1
  144. package/lib/framework/flags.js +1 -1
  145. package/lib/framework/help.js +1 -1
  146. package/lib/framework/index.js +1 -1
  147. package/lib/framework/output.js +1 -1
  148. package/lib/framework/response.js +1 -1
  149. package/lib/framework/runner-alias.js +1 -1
  150. package/lib/framework/runner.js +1 -1
  151. package/lib/framework/schema-export.js +1 -1
  152. package/lib/framework/types.js +1 -1
  153. package/lib/generated/build-info.js +1 -1
  154. package/lib/help.js +1 -1
  155. package/lib/skills/main.js +1 -1
  156. package/lib/skills/npx-skills-add.js +1 -1
  157. package/lib/telemetry/cli-command-trace.js +1 -1
  158. package/lib/telemetry/cli-help-trace.js +1 -1
  159. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  160. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  161. package/lib/telemetry/send-cli-trace-log.js +1 -1
  162. package/lib/utils/ai_config.js +1 -1
  163. package/lib/utils/apply-jq-filter.js +1 -1
  164. package/lib/utils/cdn-config.js +1 -1
  165. package/lib/utils/check-sdk-version.js +1 -1
  166. package/lib/utils/cli-version-check.js +1 -1
  167. package/lib/utils/cli-version-policy.js +1 -1
  168. package/lib/utils/config.js +1 -1
  169. package/lib/utils/copy-directory.js +1 -1
  170. package/lib/utils/entity-with-id.js +1 -1
  171. package/lib/utils/file-utils.js +1 -1
  172. package/lib/utils/guides-cdn.js +1 -1
  173. package/lib/utils/http-client.js +1 -1
  174. package/lib/utils/is-non-interactive.js +1 -1
  175. package/lib/utils/logger.js +1 -1
  176. package/lib/utils/platform.js +1 -1
  177. package/lib/utils/rules-cdn.js +1 -1
  178. package/lib/utils/sleep.js +1 -1
  179. package/lib/utils/template-replacer.js +1 -1
  180. package/lib/utils/version.js +1 -1
  181. package/lib/utils/with-active-cookie.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/templates/skill/SKILL.md.tpl +1 -1
@@ -1 +1 @@
1
- const a52_0x46406a=a52_0x56cb;(function(_0x39ca8a,_0x30de27){const _0xfb4cee=a52_0x56cb,_0x1b5615=_0x39ca8a();while(!![]){try{const _0x21f5d9=-parseInt(_0xfb4cee(0x151))/0x1+parseInt(_0xfb4cee(0x150))/0x2+-parseInt(_0xfb4cee(0x14e))/0x3*(parseInt(_0xfb4cee(0x14f))/0x4)+-parseInt(_0xfb4cee(0x143))/0x5+-parseInt(_0xfb4cee(0x148))/0x6*(-parseInt(_0xfb4cee(0x14c))/0x7)+-parseInt(_0xfb4cee(0x149))/0x8*(-parseInt(_0xfb4cee(0x145))/0x9)+-parseInt(_0xfb4cee(0x140))/0xa*(-parseInt(_0xfb4cee(0x144))/0xb);if(_0x21f5d9===_0x30de27)break;else _0x1b5615['push'](_0x1b5615['shift']());}catch(_0x554860){_0x1b5615['push'](_0x1b5615['shift']());}}}(a52_0x4ba6,0x4f951));import{startDbAnalysis}from'../../core/api-client.js';function a52_0x56cb(_0x4a1e26,_0x5c8c8d){_0x4a1e26=_0x4a1e26-0x13e;const _0x4ba6c0=a52_0x4ba6();let _0x56cb45=_0x4ba6c0[_0x4a1e26];return _0x56cb45;}function a52_0x4ba6(){const _0x3d59dc=['Started\x20analysis\x20for\x20db\x20link\x20','414ZQvWOv','40QfKaZE','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','2527dNNJdd','filter','20289bsbMKU','224oqjaXS','1103222PQmuPX','413465achbKd','analyze-start','str','1027410UXcFPN','write','tables','2646755Fahpuk','88oxtqbI','448317DSZter','string'];a52_0x4ba6=function(){return _0x3d59dc;};return a52_0x4ba6();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a52_0x46406a(0x13e),'description':a52_0x46406a(0x14b),'risk':a52_0x46406a(0x141),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a52_0x46406a(0x142),'type':a52_0x46406a(0x146),'description':a52_0x46406a(0x14a)}],async 'execute'(_0x46d7cd){const _0x5a9b1c=a52_0x46406a,_0x2e73d8=_0x46d7cd['num']('id'),_0x56bd5e=_0x46d7cd[_0x5a9b1c(0x13f)](_0x5a9b1c(0x142)),_0x5c0aba=_0x56bd5e?_0x56bd5e['split'](',')['map'](_0x41697e=>_0x41697e['trim']())[_0x5a9b1c(0x14d)](Boolean):undefined,_0x4e0a8c=await startDbAnalysis(_0x2e73d8,_0x5c0aba);return{'ok':!![],'data':{'dbLinkId':_0x2e73d8,'planId':_0x4e0a8c,'tableNames':_0x5c0aba??[]},'message':_0x5a9b1c(0x147)+_0x2e73d8};}};
1
+ const a52_0x251b2a=a52_0x838d;(function(_0x55d665,_0xdc735e){const _0x4fe7eb=a52_0x838d,_0xb88a2a=_0x55d665();while(!![]){try{const _0x1356f0=-parseInt(_0x4fe7eb(0x1c2))/0x1*(parseInt(_0x4fe7eb(0x1cc))/0x2)+-parseInt(_0x4fe7eb(0x1c9))/0x3+-parseInt(_0x4fe7eb(0x1d1))/0x4*(parseInt(_0x4fe7eb(0x1bf))/0x5)+parseInt(_0x4fe7eb(0x1d0))/0x6*(-parseInt(_0x4fe7eb(0x1cd))/0x7)+parseInt(_0x4fe7eb(0x1bb))/0x8+parseInt(_0x4fe7eb(0x1bd))/0x9*(parseInt(_0x4fe7eb(0x1c6))/0xa)+parseInt(_0x4fe7eb(0x1bc))/0xb*(parseInt(_0x4fe7eb(0x1c3))/0xc);if(_0x1356f0===_0xdc735e)break;else _0xb88a2a['push'](_0xb88a2a['shift']());}catch(_0x49bfb4){_0xb88a2a['push'](_0xb88a2a['shift']());}}}(a52_0x1a47,0xbece2));import{startDbAnalysis}from'../../core/api-client.js';function a52_0x838d(_0x4b64cb,_0x5e42ac){_0x4b64cb=_0x4b64cb-0x1bb;const _0x1a47e6=a52_0x1a47();let _0x838d72=_0x1a47e6[_0x4b64cb];return _0x838d72;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a52_0x251b2a(0x1c1),'risk':a52_0x251b2a(0x1c5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a52_0x251b2a(0x1c7),'type':'string','description':a52_0x251b2a(0x1be)}],async 'execute'(_0x15ae98){const _0x2b3621=a52_0x251b2a,_0x4f94be=_0x15ae98[_0x2b3621(0x1ca)]('id'),_0x1c4d89=_0x15ae98[_0x2b3621(0x1cf)]('tables'),_0x1977b1=_0x1c4d89?_0x1c4d89[_0x2b3621(0x1c8)](',')[_0x2b3621(0x1ce)](_0x49545d=>_0x49545d[_0x2b3621(0x1c0)]())[_0x2b3621(0x1c4)](Boolean):undefined,_0x53a029=await startDbAnalysis(_0x4f94be,_0x1977b1);return{'ok':!![],'data':{'dbLinkId':_0x4f94be,'planId':_0x53a029,'tableNames':_0x1977b1??[]},'message':_0x2b3621(0x1cb)+_0x4f94be};}};function a52_0x1a47(){const _0x22f1fe=['6RTTuit','4249748TdrgBy','3083168purBbZ','15598YXnsJK','27ZwQlkM','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','5IayCoA','trim','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','1741hUUwzG','20484Vfextu','filter','write','21790JyMiYO','tables','split','1252182ZKxaTm','num','Started\x20analysis\x20for\x20db\x20link\x20','346VjCYhF','1749279UuDwyr','map','str'];a52_0x1a47=function(){return _0x22f1fe;};return a52_0x1a47();}
@@ -1 +1 @@
1
- const a53_0x4597f2=a53_0x59ff;(function(_0x4efdf3,_0x1cac04){const _0x51758a=a53_0x59ff,_0x13b8a5=_0x4efdf3();while(!![]){try{const _0x5dba3f=-parseInt(_0x51758a(0x192))/0x1+parseInt(_0x51758a(0x190))/0x2*(-parseInt(_0x51758a(0x196))/0x3)+-parseInt(_0x51758a(0x18e))/0x4+-parseInt(_0x51758a(0x193))/0x5+-parseInt(_0x51758a(0x195))/0x6+-parseInt(_0x51758a(0x18c))/0x7+parseInt(_0x51758a(0x197))/0x8;if(_0x5dba3f===_0x1cac04)break;else _0x13b8a5['push'](_0x13b8a5['shift']());}catch(_0x1d74ae){_0x13b8a5['push'](_0x13b8a5['shift']());}}}(a53_0x1381,0x63f17));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a53_0x59ff(_0x2f226a,_0x48f5e6){_0x2f226a=_0x2f226a-0x18b;const _0x1381bb=a53_0x1381();let _0x59ffd0=_0x1381bb[_0x2f226a];return _0x59ffd0;}function a53_0x1381(){const _0x2e32ec=['2635905oZamAc','Analysis\x20status\x20for\x20','2643420YuUUWQ','12RWiwnj','26390920NOEIfB','analyze-status','string','num','plan','3977904jQamCW','read','2236284qoHbEI','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','23090CAfohC','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','748224YscZnd'];a53_0x1381=function(){return _0x2e32ec;};return a53_0x1381();}export const dbAnalyzeStatus={'service':'db','command':a53_0x4597f2(0x198),'description':a53_0x4597f2(0x18f),'risk':a53_0x4597f2(0x18d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a53_0x4597f2(0x18b),'type':a53_0x4597f2(0x199),'required':!![],'description':a53_0x4597f2(0x191)}],async 'execute'(_0x2757ed){const _0x577d61=a53_0x4597f2,_0x38eae5=_0x2757ed[_0x577d61(0x19a)]('id'),_0x341f4b=_0x2757ed['str']('plan'),_0x57d356=await getDbAnalysisStatus(_0x341f4b);return{'ok':!![],'data':{'dbLinkId':_0x38eae5,'planId':_0x341f4b,'status':_0x57d356},'message':_0x577d61(0x194)+_0x341f4b};}};
1
+ const a53_0x3eaed2=a53_0x12df;function a53_0x12df(_0x4699cc,_0x540da3){_0x4699cc=_0x4699cc-0x170;const _0x52bf7c=a53_0x52bf();let _0x12df07=_0x52bf7c[_0x4699cc];return _0x12df07;}(function(_0x129da6,_0x302177){const _0x3ddef8=a53_0x12df,_0x493cd6=_0x129da6();while(!![]){try{const _0x3282bf=-parseInt(_0x3ddef8(0x174))/0x1*(parseInt(_0x3ddef8(0x182))/0x2)+-parseInt(_0x3ddef8(0x172))/0x3+-parseInt(_0x3ddef8(0x180))/0x4*(-parseInt(_0x3ddef8(0x181))/0x5)+parseInt(_0x3ddef8(0x176))/0x6+parseInt(_0x3ddef8(0x173))/0x7+-parseInt(_0x3ddef8(0x171))/0x8*(-parseInt(_0x3ddef8(0x17c))/0x9)+parseInt(_0x3ddef8(0x17f))/0xa*(-parseInt(_0x3ddef8(0x17e))/0xb);if(_0x3282bf===_0x302177)break;else _0x493cd6['push'](_0x493cd6['shift']());}catch(_0x20a68c){_0x493cd6['push'](_0x493cd6['shift']());}}}(a53_0x52bf,0xc1596));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':a53_0x3eaed2(0x17d),'description':a53_0x3eaed2(0x177),'risk':a53_0x3eaed2(0x179),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a53_0x3eaed2(0x17a),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x255b8b){const _0x333cec=a53_0x3eaed2,_0x2104a9=_0x255b8b[_0x333cec(0x178)]('id'),_0x4a2d44=_0x255b8b[_0x333cec(0x170)](_0x333cec(0x175)),_0x140a2f=await getDbAnalysisStatus(_0x4a2d44);return{'ok':!![],'data':{'dbLinkId':_0x2104a9,'planId':_0x4a2d44,'status':_0x140a2f},'message':_0x333cec(0x17b)+_0x4a2d44};}};function a53_0x52bf(){const _0xaaf493=['read','string','Analysis\x20status\x20for\x20','10602fjLnsY','analyze-status','55yGVXbM','3676090cbAKzA','4467356ZAbXWB','5bgEDxo','30678IBhJAw','str','6152QceTTW','1574718ZFqrxH','10166471VaslSv','31jFVpfQ','plan','932064cbUWJO','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','num'];a53_0x52bf=function(){return _0xaaf493;};return a53_0x52bf();}
@@ -1 +1 @@
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
+ function a54_0x209b(){const _0x50dd53=['2192740BaVzLk','dbname',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','Database\x20password','write','2jeOdBH','3TztvEx','join','str','[redacted]','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','password','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','1403544bMOHNk','11902uAPtcY','dbparam','590239vIzCxj','/smartapi/dblink/create','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Extra\x20JDBC-style\x20connection\x20parameters\x20string','trim','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','1120tJvcXk','Database\x20username','string','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','bool','boolean','Created\x20db\x20link\x20','8.0','dburl','autostart','appCode','dbdesc','34250XBIWWB','validation','dbtype','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','1017RnFTxY','16824LZwcJq','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','25200DHLYfK','username','dbversion','997435lZJCXa','POST'];a54_0x209b=function(){return _0x50dd53;};return a54_0x209b();}const a54_0x43938d=a54_0x4536;(function(_0x5b384d,_0x359b3a){const _0x116e7f=a54_0x4536,_0x14e96e=_0x5b384d();while(!![]){try{const _0x34094f=-parseInt(_0x116e7f(0x13d))/0x1*(-parseInt(_0x116e7f(0x132))/0x2)+parseInt(_0x116e7f(0x133))/0x3*(parseInt(_0x116e7f(0x12d))/0x4)+parseInt(_0x116e7f(0x12b))/0x5+-parseInt(_0x116e7f(0x13a))/0x6+-parseInt(_0x116e7f(0x143))/0x7*(-parseInt(_0x116e7f(0x156))/0x8)+-parseInt(_0x116e7f(0x153))/0x9*(-parseInt(_0x116e7f(0x14f))/0xa)+parseInt(_0x116e7f(0x13b))/0xb*(-parseInt(_0x116e7f(0x154))/0xc);if(_0x34094f===_0x359b3a)break;else _0x14e96e['push'](_0x14e96e['shift']());}catch(_0x3cade5){_0x14e96e['push'](_0x14e96e['shift']());}}}(a54_0x209b,0x74b60));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_0x4536(_0x269015,_0x57bfc0){_0x269015=_0x269015-0x12b;const _0x209b8f=a54_0x209b();let _0x45367a=_0x209b8f[_0x269015];return _0x45367a;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':a54_0x43938d(0x142),'risk':a54_0x43938d(0x131),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a54_0x43938d(0x12e),'type':a54_0x43938d(0x145),'required':!![],'description':a54_0x43938d(0x146)},DB_TYPE_FLAG,{'name':a54_0x43938d(0x158),'type':'string','description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a54_0x43938d(0x14a)},{'name':a54_0x43938d(0x14b),'type':a54_0x43938d(0x145),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':'username','type':'string','required':!![],'description':a54_0x43938d(0x144)},{'name':a54_0x43938d(0x138),'type':a54_0x43938d(0x145),'required':!![],'description':a54_0x43938d(0x130)},{'name':a54_0x43938d(0x13c),'type':'string','description':a54_0x43938d(0x140)},{'name':a54_0x43938d(0x14e),'type':a54_0x43938d(0x145),'description':'Human-readable\x20description'},{'name':a54_0x43938d(0x14c),'type':a54_0x43938d(0x148),'description':a54_0x43938d(0x139),'default':![]}],async 'validate'(_0x20c0f2){const _0x506d94=a54_0x43938d,_0x318158=_0x20c0f2['str'](_0x506d94(0x14b))[_0x506d94(0x141)]();if(!validateDbUrl(_0x318158))throw CliErrors[_0x506d94(0x150)](_0x506d94(0x137)+_0x318158+'\x22',_0x506d94(0x155));},async 'dryRun'(_0x3fbd47){const _0x129cde=a54_0x43938d,_0x961355={'appCode':_0x3fbd47['appCode'],'dbName':_0x3fbd47[_0x129cde(0x135)]('dbname'),'dbType':_0x3fbd47[_0x129cde(0x135)](_0x129cde(0x151)),'dbVersion':_0x3fbd47[_0x129cde(0x135)](_0x129cde(0x158))||_0x129cde(0x14a),'dbUrl':_0x3fbd47[_0x129cde(0x135)](_0x129cde(0x14b))['trim'](),'username':_0x3fbd47[_0x129cde(0x135)](_0x129cde(0x157)),'password':_0x129cde(0x136),..._0x3fbd47[_0x129cde(0x135)](_0x129cde(0x13c))?{'dbParam':_0x3fbd47['str'](_0x129cde(0x13c))}:{},..._0x3fbd47[_0x129cde(0x135)]('dbdesc')?{'dbDesc':_0x3fbd47[_0x129cde(0x135)]('dbdesc')}:{}};return{'method':_0x129cde(0x12c),'url':_0x129cde(0x13e),'body':_0x961355,'description':['Create\x20dblink',_0x3fbd47[_0x129cde(0x147)](_0x129cde(0x14c))?_0x129cde(0x13f):'No\x20follow-up\x20analysis'][_0x129cde(0x134)]('\x0a')};},async 'execute'(_0x5e61f7){const _0x27f042=a54_0x43938d,_0x3d2cce={'appCode':_0x5e61f7[_0x27f042(0x14d)],'dbName':_0x5e61f7[_0x27f042(0x135)](_0x27f042(0x12e)),'dbType':_0x5e61f7[_0x27f042(0x135)](_0x27f042(0x151)),'dbVersion':_0x5e61f7['str'](_0x27f042(0x158))||'8.0','dbUrl':_0x5e61f7[_0x27f042(0x135)](_0x27f042(0x14b))[_0x27f042(0x141)](),'username':_0x5e61f7[_0x27f042(0x135)](_0x27f042(0x157)),'password':_0x5e61f7[_0x27f042(0x135)](_0x27f042(0x138)),..._0x5e61f7[_0x27f042(0x135)]('dbparam')?{'dbParam':_0x5e61f7[_0x27f042(0x135)](_0x27f042(0x13c))}:{},..._0x5e61f7['str'](_0x27f042(0x14e))?{'dbDesc':_0x5e61f7['str'](_0x27f042(0x14e))}:{}},{id:_0x5a9690,entity:_0x1c69c5}=normalizeEntityWithIdResponse(await createDbLink(_0x3d2cce));if(!_0x5a9690)return{'ok':![],'message':_0x27f042(0x152),'data':sanitizeDbLinkForOutput(_0x1c69c5)};let _0x6e6693,_0x48d7e4;if(_0x5e61f7['bool'](_0x27f042(0x14c)))try{_0x6e6693=await startDbAnalysis(_0x5a9690);}catch(_0x4712c6){_0x48d7e4=_0x4712c6 instanceof Error?_0x4712c6['message']:String(_0x4712c6);}const _0x1222ea={'connection':sanitizeDbLinkForOutput(_0x1c69c5),..._0x6e6693?{'analysisPlanId':_0x6e6693}:{},..._0x48d7e4?{'analysisStartWarning':_0x48d7e4}:{}};let _0x44aac4;return _0x5e61f7['bool'](_0x27f042(0x14c))?_0x48d7e4?_0x44aac4=_0x27f042(0x149)+_0x5a9690+_0x27f042(0x12f):_0x44aac4=_0x27f042(0x149)+_0x5a9690+'\x20and\x20started\x20analysis':_0x44aac4='Created\x20db\x20link\x20'+_0x5a9690,{'ok':!![],'data':_0x1222ea,'message':_0x44aac4};}};
@@ -1 +1 @@
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
+ const a55_0x93f848=a55_0x4cfb;(function(_0x589a76,_0x11d180){const _0x453d1e=a55_0x4cfb,_0x25faf0=_0x589a76();while(!![]){try{const _0xee4898=-parseInt(_0x453d1e(0x1b4))/0x1+-parseInt(_0x453d1e(0x1b6))/0x2+parseInt(_0x453d1e(0x1b5))/0x3+-parseInt(_0x453d1e(0x1ba))/0x4*(-parseInt(_0x453d1e(0x1b2))/0x5)+parseInt(_0x453d1e(0x1bc))/0x6+parseInt(_0x453d1e(0x1b7))/0x7+parseInt(_0x453d1e(0x1b9))/0x8;if(_0xee4898===_0x11d180)break;else _0x25faf0['push'](_0x25faf0['shift']());}catch(_0x3a1b5e){_0x25faf0['push'](_0x25faf0['shift']());}}}(a55_0x4ceb,0x6f64a));import{deleteDbLink}from'../../core/api-client.js';function a55_0x4cfb(_0x5735db,_0x56aff3){_0x5735db=_0x5735db-0x1b2;const _0x4cebae=a55_0x4ceb();let _0x4cfbcc=_0x4cebae[_0x5735db];return _0x4cfbcc;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a55_0x93f848(0x1b3),'description':a55_0x93f848(0x1bd),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x6911cb){const _0x339d70=a55_0x93f848,_0x1a5a0c=_0x6911cb[_0x339d70(0x1bb)]('id');return await deleteDbLink(_0x1a5a0c),{'ok':!![],'data':{'id':_0x1a5a0c,'deleted':!![]},'message':_0x339d70(0x1b8)+_0x1a5a0c};}};function a55_0x4ceb(){const _0x4b9ab7=['30TnCnEF','delete','5462ttEeCA','594375hrYuXM','1174382hbutWL','439425LjWGUD','Deleted\x20db\x20link\x20','1232640kVSXEM','316264ezPGCn','num','957258cLQWoQ','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently'];a55_0x4ceb=function(){return _0x4b9ab7;};return a55_0x4ceb();}
@@ -1 +1 @@
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
+ function a56_0x3f47(_0x585b66,_0xc6240d){_0x585b66=_0x585b66-0xfa;const _0x231cef=a56_0x231c();let _0x3f47e6=_0x231cef[_0x585b66];return _0x3f47e6;}const a56_0x4c7ef6=a56_0x3f47;(function(_0x2902ce,_0x39f063){const _0x286de6=a56_0x3f47,_0x13a14e=_0x2902ce();while(!![]){try{const _0x313357=parseInt(_0x286de6(0xfa))/0x1+-parseInt(_0x286de6(0xfe))/0x2*(-parseInt(_0x286de6(0x108))/0x3)+parseInt(_0x286de6(0x107))/0x4+-parseInt(_0x286de6(0xff))/0x5*(-parseInt(_0x286de6(0x106))/0x6)+-parseInt(_0x286de6(0xfc))/0x7*(parseInt(_0x286de6(0x105))/0x8)+-parseInt(_0x286de6(0x103))/0x9+parseInt(_0x286de6(0x101))/0xa*(-parseInt(_0x286de6(0xfd))/0xb);if(_0x313357===_0x39f063)break;else _0x13a14e['push'](_0x13a14e['shift']());}catch(_0x10879a){_0x13a14e['push'](_0x13a14e['shift']());}}}(a56_0x231c,0xde80f));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a56_0x4c7ef6(0x104),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a56_0x4c7ef6(0x100),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3afe1e){const _0x381243=a56_0x4c7ef6,_0x18581b=_0x3afe1e['num']('id'),_0x14dcd5=await getDbLinkInfo(_0x18581b);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x14dcd5),'message':_0x381243(0xfb)+_0x18581b+':\x20'+_0x14dcd5[_0x381243(0x102)]};}};function a56_0x231c(){const _0x579b02=['19594chYkGW','4105PYySdH','read','10YIsyWf','dbName','1146150HEEoJI','detail','56ZswJGf','4182vRlGmW','5221804SoOaYU','66ZlDuvU','1654892xrxiwk','db\x20link\x20','85960jzXvjH','28857719wphsmV'];a56_0x231c=function(){return _0x579b02;};return a56_0x231c();}
@@ -1 +1 @@
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
+ const a57_0x263229=a57_0x58b7;(function(_0x256d93,_0x1aaa59){const _0x1be410=a57_0x58b7,_0x5938b3=_0x256d93();while(!![]){try{const _0xb5fb0c=parseInt(_0x1be410(0x1dd))/0x1*(-parseInt(_0x1be410(0x1df))/0x2)+parseInt(_0x1be410(0x1e0))/0x3+parseInt(_0x1be410(0x1e1))/0x4+parseInt(_0x1be410(0x1e4))/0x5+-parseInt(_0x1be410(0x1e3))/0x6+parseInt(_0x1be410(0x1d8))/0x7+parseInt(_0x1be410(0x1d7))/0x8;if(_0xb5fb0c===_0x1aaa59)break;else _0x5938b3['push'](_0x5938b3['shift']());}catch(_0x91d43e){_0x5938b3['push'](_0x5938b3['shift']());}}}(a57_0xafaa,0x5aa8d));import{getDbTableDiff}from'../../core/api-client.js';function a57_0xafaa(){const _0x426e26=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20(db\x20link\x20','length','217688pQOdzu','1431885ZqQzrw','number','page','table','pagesize','2157PRuSfS','read','618bKTFrl','1109862dwHOaB','2541760pzhRSo','\x20row(s),\x20total\x20','1906068VLQduU','591860DMFTIb','num','Page\x20size','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','string','diff'];a57_0xafaa=function(){return _0x426e26;};return a57_0xafaa();}function a57_0x58b7(_0x11a3ff,_0x56ec18){_0x11a3ff=_0x11a3ff-0x1d4;const _0xafaabd=a57_0xafaa();let _0x58b73f=_0xafaabd[_0x11a3ff];return _0x58b73f;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a57_0x263229(0x1e9),'description':a57_0x263229(0x1e7),'risk':a57_0x263229(0x1de),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a57_0x263229(0x1e8),'description':a57_0x263229(0x1d4)},{'name':a57_0x263229(0x1da),'type':a57_0x263229(0x1d9),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a57_0x263229(0x1dc),'type':a57_0x263229(0x1d9),'description':a57_0x263229(0x1e6),'default':0x14}],async 'execute'(_0x5997c6){const _0x2d5858=a57_0x263229,_0x137c51=_0x5997c6[_0x2d5858(0x1e5)]('id'),_0x38a193=_0x5997c6[_0x2d5858(0x1e5)](_0x2d5858(0x1da),0x1)||0x1,_0x54a5a8=_0x5997c6[_0x2d5858(0x1e5)](_0x2d5858(0x1dc),0x14)||0x14,_0x2ebca6=_0x5997c6['str'](_0x2d5858(0x1db))||undefined,{totalCount:_0xf73397,tableList:_0x21a8ab}=await getDbTableDiff(_0x5997c6['appCode'],_0x137c51,{'pageIndex':_0x38a193,'pageSize':_0x54a5a8,'tableName':_0x2ebca6});return{'ok':!![],'data':{'dbLinkId':_0x137c51,'page':_0x38a193,'pageSize':_0x54a5a8,'totalCount':_0xf73397,'tableList':_0x21a8ab},'message':_0x21a8ab[_0x2d5858(0x1d6)]+_0x2d5858(0x1e2)+_0xf73397+_0x2d5858(0x1d5)+_0x137c51+')'};}};
@@ -1 +1 @@
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
+ (function(_0x7311eb,_0x249254){const _0x3232c2=a58_0x5504,_0x50b951=_0x7311eb();while(!![]){try{const _0x1b684a=-parseInt(_0x3232c2(0x1a8))/0x1*(-parseInt(_0x3232c2(0x1a6))/0x2)+-parseInt(_0x3232c2(0x1a3))/0x3+-parseInt(_0x3232c2(0x1a4))/0x4*(-parseInt(_0x3232c2(0x1a9))/0x5)+parseInt(_0x3232c2(0x1ac))/0x6+-parseInt(_0x3232c2(0x1ab))/0x7*(parseInt(_0x3232c2(0x1a5))/0x8)+parseInt(_0x3232c2(0x1a7))/0x9+-parseInt(_0x3232c2(0x1aa))/0xa;if(_0x1b684a===_0x249254)break;else _0x50b951['push'](_0x50b951['shift']());}catch(_0x4bacf5){_0x50b951['push'](_0x50b951['shift']());}}}(a58_0x1dee,0x525e9));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';function a58_0x5504(_0x16dd41,_0x30e39b){_0x16dd41=_0x16dd41-0x1a3;const _0x1dee5e=a58_0x1dee();let _0x5504bf=_0x1dee5e[_0x16dd41];return _0x5504bf;}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';function a58_0x1dee(){const _0x2a53c4=['138431ssRfis','111890YQBYAL','7561750AFbMZI','7AtMwgO','1828500FIcYAR','167340KDQsqO','24ZFjwrY','171632PYphSl','6KHOFRo','2848347CDsACN'];a58_0x1dee=function(){return _0x2a53c4;};return a58_0x1dee();}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
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
+ const a59_0x17d9e4=a59_0x6c68;(function(_0x5c17c4,_0x38cd4d){const _0x510c69=a59_0x6c68,_0x291dfa=_0x5c17c4();while(!![]){try{const _0x321f6d=parseInt(_0x510c69(0xd8))/0x1*(parseInt(_0x510c69(0xd6))/0x2)+parseInt(_0x510c69(0xdf))/0x3+parseInt(_0x510c69(0xda))/0x4*(parseInt(_0x510c69(0xd7))/0x5)+parseInt(_0x510c69(0xe1))/0x6+-parseInt(_0x510c69(0xdd))/0x7+-parseInt(_0x510c69(0xe4))/0x8*(-parseInt(_0x510c69(0xe8))/0x9)+-parseInt(_0x510c69(0xe6))/0xa;if(_0x321f6d===_0x38cd4d)break;else _0x291dfa['push'](_0x291dfa['shift']());}catch(_0x27a574){_0x291dfa['push'](_0x291dfa['shift']());}}}(a59_0x33d2,0x29aac));import{listDbLinks}from'../../core/api-client.js';function a59_0x33d2(){const _0x4385d1=['8BVyPss','length','4590680JSotHb','pagesize','2187666mTwvBN','number','num','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','507938pWMJWr','65tHNXpv','1tYUuCp','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','36724iYQPGG','list','page','1503194kUzRli','\x20database\x20connection(s)','492183GxgPAn','Page\x20size','384126QWWats','Found\x20','appCode'];a59_0x33d2=function(){return _0x4385d1;};return a59_0x33d2();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a59_0x6c68(_0x2be95b,_0x3d4162){_0x2be95b=_0x2be95b-0xd6;const _0x33d2ad=a59_0x33d2();let _0x6c682f=_0x33d2ad[_0x2be95b];return _0x6c682f;}export const dbList={'service':'db','command':a59_0x17d9e4(0xdb),'description':a59_0x17d9e4(0xeb),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a59_0x17d9e4(0xe9),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a59_0x17d9e4(0xe9),'description':a59_0x17d9e4(0xe0),'default':0x64}],async 'execute'(_0x196889){const _0x352127=a59_0x17d9e4,_0x10720f=_0x196889[_0x352127(0xea)](_0x352127(0xdc),0x1)||0x1,_0x3be22d=_0x196889[_0x352127(0xea)](_0x352127(0xe7),0x64)||0x64,{items:_0x48d487,paging:_0x240254}=await listDbLinks(_0x196889[_0x352127(0xe3)],{'currentPage':_0x10720f,'pageSize':_0x3be22d}),_0x5d3b46=sanitizeDbLinkList(_0x48d487),_0x20b0e6=_0x240254?_0x240254:{'currentPage':_0x10720f,'pageSize':_0x3be22d,'rowsOnPage':_0x5d3b46[_0x352127(0xe5)],'totalCount':null,'note':_0x352127(0xd9)};return{'ok':!![],'data':{'connections':_0x5d3b46,'paging':_0x20b0e6},'message':_0x352127(0xe2)+_0x5d3b46[_0x352127(0xe5)]+_0x352127(0xde)};}};
@@ -1 +1 @@
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
+ (function(_0x1b5c03,_0x2f0035){const _0x552aeb=a60_0x623c,_0x297a36=_0x1b5c03();while(!![]){try{const _0x44162c=-parseInt(_0x552aeb(0xe3))/0x1*(-parseInt(_0x552aeb(0xed))/0x2)+-parseInt(_0x552aeb(0xf3))/0x3*(-parseInt(_0x552aeb(0xeb))/0x4)+-parseInt(_0x552aeb(0xe1))/0x5*(parseInt(_0x552aeb(0xe2))/0x6)+-parseInt(_0x552aeb(0xe6))/0x7+-parseInt(_0x552aeb(0xf1))/0x8+parseInt(_0x552aeb(0xee))/0x9+parseInt(_0x552aeb(0xe5))/0xa*(parseInt(_0x552aeb(0xec))/0xb);if(_0x44162c===_0x2f0035)break;else _0x297a36['push'](_0x297a36['shift']());}catch(_0x528dc9){_0x297a36['push'](_0x297a36['shift']());}}}(a60_0x67e5,0x4ffec));function a60_0x67e5(){const _0x97a835=['632464VfhKNV','password','toLowerCase','jdbcurl','test','4WngViE','79772LnvLZb','30230mpodFF','3225951PCvFWd','[redacted]','token','1769848EInEIw','length','1462143tUejDz','map','keys','connectionstring','accesskey','privatekey','32240WQdktV','438KpKYBP','5fgrrxr','includes','260VbKhdW'];a60_0x67e5=function(){return _0x97a835;};return a60_0x67e5();}function shouldRedactKey(_0x4269c6){const _0x1114d7=a60_0x623c,_0x4e75a5=_0x4269c6[_0x1114d7(0xe8)]();if(_0x4e75a5===_0x1114d7(0xe7)||_0x4e75a5==='passwd'||_0x4e75a5==='dbpassword')return!![];if(_0x4e75a5['includes']('secret')||_0x4e75a5['includes'](_0x1114d7(0xf0))||_0x4e75a5[_0x1114d7(0xe4)]('credential'))return!![];if(_0x4e75a5[_0x1114d7(0xe4)](_0x1114d7(0xe0))||_0x4e75a5['includes'](_0x1114d7(0xdf)))return!![];if(_0x4e75a5==='authorization'||_0x4e75a5===_0x1114d7(0xde)||_0x4e75a5===_0x1114d7(0xe9))return!![];return![];}function a60_0x623c(_0x1b0088,_0x2a82fc){_0x1b0088=_0x1b0088-0xdd;const _0x67e52b=a60_0x67e5();let _0x623c76=_0x67e52b[_0x1b0088];return _0x623c76;}export function sanitizeDbLinkForOutput(_0x16694f){const _0x54c8fc=a60_0x623c,_0x1a1c33={..._0x16694f};for(const _0x265316 of Object[_0x54c8fc(0xdd)](_0x1a1c33)){if(!shouldRedactKey(_0x265316))continue;const _0x2919a6=_0x1a1c33[_0x265316];_0x2919a6!=null&&String(_0x2919a6)[_0x54c8fc(0xf2)]>0x0&&(_0x1a1c33[_0x265316]=_0x54c8fc(0xef));}return _0x1a1c33;}export function sanitizeDbLinkList(_0x43d4e1){const _0x424d9f=a60_0x623c;return _0x43d4e1[_0x424d9f(0xf4)](_0x39637f=>sanitizeDbLinkForOutput(_0x39637f));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x20d9fe){const _0x5198f8=a60_0x623c,_0x40a4e8=_0x20d9fe['trim']();if(!_0x40a4e8)return![];return DB_URL_PATTERN[_0x5198f8(0xea)](_0x40a4e8);}
@@ -1 +1 @@
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
+ const a61_0x3e2820=a61_0x187b;function a61_0x1331(){const _0x52bbe1=['3053464EpklEe','2hrJpKc','3139356SDeHAt','num','read','9593190laJBGr','appCode','tables','\x20table(s)\x20on\x20db\x20link\x20','3027805IYovau','4197789mSYTcK','1392752APBIhz','12sTfTIp','18tOqRsj','5856858QNWzty'];a61_0x1331=function(){return _0x52bbe1;};return a61_0x1331();}(function(_0x5881d9,_0x346933){const _0x19523a=a61_0x187b,_0x34151e=_0x5881d9();while(!![]){try{const _0x21a573=-parseInt(_0x19523a(0x137))/0x1+parseInt(_0x19523a(0x13c))/0x2*(-parseInt(_0x19523a(0x136))/0x3)+-parseInt(_0x19523a(0x13d))/0x4+parseInt(_0x19523a(0x144))/0x5*(parseInt(_0x19523a(0x138))/0x6)+parseInt(_0x19523a(0x13a))/0x7+parseInt(_0x19523a(0x13b))/0x8+-parseInt(_0x19523a(0x139))/0x9*(-parseInt(_0x19523a(0x140))/0xa);if(_0x21a573===_0x346933)break;else _0x34151e['push'](_0x34151e['shift']());}catch(_0xd913c3){_0x34151e['push'](_0x34151e['shift']());}}}(a61_0x1331,0xbc4d3));function a61_0x187b(_0x59d77e,_0x52d0ab){_0x59d77e=_0x59d77e-0x136;const _0x13318f=a61_0x1331();let _0x187b95=_0x13318f[_0x59d77e];return _0x187b95;}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':a61_0x3e2820(0x142),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a61_0x3e2820(0x13f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x249bd9){const _0x1a69df=a61_0x3e2820,_0x1ca9b8=_0x249bd9[_0x1a69df(0x13e)]('id'),_0x751a63=await getDbAllTableList(_0x249bd9[_0x1a69df(0x141)],_0x1ca9b8);return{'ok':!![],'data':{'dbLinkId':_0x1ca9b8,'total':_0x751a63['length'],'tables':_0x751a63},'message':_0x751a63['length']+_0x1a69df(0x143)+_0x1ca9b8};}};
@@ -1 +1 @@
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
+ const a62_0x404155=a62_0x34f3;function a62_0x14ae(){const _0x2a2ea0=['55Jdjmty','read','msg','keys','1061721Zhpefs','Connection\x20check\x20finished\x20for\x20db\x20link\x20','object','4274589HcOyQJ','test','281934oKepaf','9609896IzLgnU','data','340LqlDwO','2unkZcg','\x20(see\x20data.result)','46985037EnjQBr','success','slice','error','7dGPLpr','1280372GSBCsF','385308ozuxkE','Connection\x20OK\x20for\x20db\x20link\x20','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)'];a62_0x14ae=function(){return _0x2a2ea0;};return a62_0x14ae();}(function(_0xe26a75,_0x34cc21){const _0x3ee7eb=a62_0x34f3,_0x10d0a1=_0xe26a75();while(!![]){try{const _0xe76665=parseInt(_0x3ee7eb(0x185))/0x1*(-parseInt(_0x3ee7eb(0x18e))/0x2)+-parseInt(_0x3ee7eb(0x188))/0x3+-parseInt(_0x3ee7eb(0x195))/0x4+parseInt(_0x3ee7eb(0x181))/0x5*(-parseInt(_0x3ee7eb(0x196))/0x6)+-parseInt(_0x3ee7eb(0x194))/0x7*(-parseInt(_0x3ee7eb(0x18b))/0x8)+parseInt(_0x3ee7eb(0x18a))/0x9*(-parseInt(_0x3ee7eb(0x18d))/0xa)+parseInt(_0x3ee7eb(0x190))/0xb;if(_0xe76665===_0x34cc21)break;else _0x10d0a1['push'](_0x10d0a1['shift']());}catch(_0x550fd5){_0x10d0a1['push'](_0x10d0a1['shift']());}}}(a62_0x14ae,0xda5ed));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x112a0c){const _0x2551c0=a62_0x34f3;if(_0x112a0c===!![]||_0x112a0c===![])return{'success':_0x112a0c};if(_0x112a0c===null||_0x112a0c===undefined)return{'type':typeof _0x112a0c};if(typeof _0x112a0c!==_0x2551c0(0x187))return{'type':typeof _0x112a0c};const _0x120794=_0x112a0c,_0x37a137=[_0x2551c0(0x191),'message','code',_0x2551c0(0x193),_0x2551c0(0x183),_0x2551c0(0x18c)],_0x2f0db4={};for(const _0x493d87 of _0x37a137){if(_0x493d87 in _0x120794)_0x2f0db4[_0x493d87]=_0x120794[_0x493d87];}return Object['keys'](_0x2f0db4)['length']===0x0&&(_0x2f0db4['keys']=Object[_0x2551c0(0x184)](_0x120794)[_0x2551c0(0x192)](0x0,0x14)),_0x2f0db4;}function a62_0x34f3(_0x231319,_0x49ae58){_0x231319=_0x231319-0x180;const _0x14aeae=a62_0x14ae();let _0x34f39f=_0x14aeae[_0x231319];return _0x34f39f;}export const dbTest={'service':'db','command':a62_0x404155(0x189),'description':a62_0x404155(0x180),'risk':a62_0x404155(0x182),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2ec8c8){const _0x26caf9=a62_0x404155,_0xadbe74=_0x2ec8c8['num']('id'),_0x2995e3=await testDbLinkConnect(_0xadbe74),_0x3a5aea=_0x2995e3===!![]||typeof _0x2995e3===_0x26caf9(0x187)&&_0x2995e3!==null&&_0x2995e3[_0x26caf9(0x191)]===!![],_0x4abe63=summarizeTestConnectResult(_0x2995e3);return{'ok':!![],'data':{'id':_0xadbe74,'connected':Boolean(_0x3a5aea),'result':_0x4abe63},'message':_0x3a5aea?_0x26caf9(0x197)+_0xadbe74:_0x26caf9(0x186)+_0xadbe74+_0x26caf9(0x18f)};}};
@@ -1 +1 @@
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
+ const a63_0x444a87=a63_0x447b;(function(_0x482d7d,_0x3e0673){const _0x27ae04=a63_0x447b,_0x169f5a=_0x482d7d();while(!![]){try{const _0x18963d=parseInt(_0x27ae04(0xf8))/0x1*(parseInt(_0x27ae04(0xe9))/0x2)+-parseInt(_0x27ae04(0xfc))/0x3+parseInt(_0x27ae04(0xf3))/0x4+parseInt(_0x27ae04(0x104))/0x5+parseInt(_0x27ae04(0xef))/0x6+-parseInt(_0x27ae04(0xf1))/0x7+-parseInt(_0x27ae04(0xfb))/0x8;if(_0x18963d===_0x3e0673)break;else _0x169f5a['push'](_0x169f5a['shift']());}catch(_0x33ac95){_0x169f5a['push'](_0x169f5a['shift']());}}}(a63_0x2e14,0x991b2));function a63_0x2e14(){const _0x4547e8=['dbname','POST','dburl','str','10dbIEkO','num','dbParam','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','string','write','2717196ICAgxW','username','4261327maAQZd','dbDesc','2168216JWUJoe','/smartapi/dblink/update','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbUrl','New\x20host:port','109306RVGWyp','New\x20username','Updated\x20db\x20link\x20','4295856PhqfWk','57597UCIGiL','dbdesc','New\x20database\x20name','New\x20description','New\x20connection\x20parameter\x20string','dbName','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','trim','1253070fnnqbV','password','dbparam','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values'];a63_0x2e14=function(){return _0x4547e8;};return a63_0x2e14();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a63_0x447b(_0x22beff,_0x23a301){_0x22beff=_0x22beff-0xe5;const _0x2e1467=a63_0x2e14();let _0x447bd8=_0x2e1467[_0x22beff];return _0x447bd8;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a63_0x444a87(0x107),'risk':a63_0x444a87(0xee),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x444a87(0xe5),'type':a63_0x444a87(0xed),'description':a63_0x444a87(0xfe)},{'name':a63_0x444a87(0xe7),'type':a63_0x444a87(0xed),'description':a63_0x444a87(0xf7)},{'name':'username','type':a63_0x444a87(0xed),'description':a63_0x444a87(0xf9)},{'name':'password','type':a63_0x444a87(0xed),'description':a63_0x444a87(0xec)},{'name':'dbparam','type':a63_0x444a87(0xed),'description':a63_0x444a87(0x100)},{'name':'dbdesc','type':a63_0x444a87(0xed),'description':a63_0x444a87(0xff)}],async 'validate'(_0x58511c){const _0x17e0f9=a63_0x444a87,_0x36aab5=_0x58511c[_0x17e0f9(0xe8)]('dburl');if(_0x36aab5&&!validateDbUrl(_0x36aab5[_0x17e0f9(0x103)]()))throw CliErrors['validation'](_0x17e0f9(0xf5)+_0x36aab5+'\x22');},async 'dryRun'(_0x2576fc){const _0xcb0da5=a63_0x444a87,_0x350aac=_0x2576fc[_0xcb0da5(0xea)]('id'),_0x2cc9e9=await getDbLinkInfo(_0x350aac),_0x2b1954={..._0x2cc9e9},_0x563fef=_0x2576fc['str'](_0xcb0da5(0xe5));if(_0x563fef)_0x2b1954[_0xcb0da5(0x101)]=_0x563fef;const _0x3763ba=_0x2576fc[_0xcb0da5(0xe8)](_0xcb0da5(0xe7));if(_0x3763ba)_0x2b1954[_0xcb0da5(0xf6)]=_0x3763ba[_0xcb0da5(0x103)]();const _0x40535d=_0x2576fc[_0xcb0da5(0xe8)](_0xcb0da5(0xf0));if(_0x40535d)_0x2b1954['username']=_0x40535d;const _0x3f9c6a=_0x2576fc[_0xcb0da5(0xe8)]('password');if(_0x3f9c6a)_0x2b1954[_0xcb0da5(0x105)]=_0x3f9c6a;const _0x399f86=_0x2576fc['str'](_0xcb0da5(0x106));if(_0x399f86)_0x2b1954[_0xcb0da5(0xeb)]=_0x399f86;const _0x58307c=_0x2576fc['str'](_0xcb0da5(0xfd));if(_0x58307c)_0x2b1954[_0xcb0da5(0xf2)]=_0x58307c;const _0x48a7a9=sanitizeDbLinkForOutput(_0x2b1954);return{'method':_0xcb0da5(0xe6),'url':_0xcb0da5(0xf4),'body':_0x48a7a9,'description':_0xcb0da5(0x102)};},async 'execute'(_0x1303e4){const _0x359f38=a63_0x444a87,_0x18f808=_0x1303e4['num']('id'),_0x395024=await getDbLinkInfo(_0x18f808),_0x5ea620={..._0x395024},_0x3be36f=_0x1303e4[_0x359f38(0xe8)](_0x359f38(0xe5));if(_0x3be36f)_0x5ea620['dbName']=_0x3be36f;const _0x2cc89d=_0x1303e4[_0x359f38(0xe8)](_0x359f38(0xe7));if(_0x2cc89d)_0x5ea620[_0x359f38(0xf6)]=_0x2cc89d[_0x359f38(0x103)]();const _0x50fdd0=_0x1303e4[_0x359f38(0xe8)](_0x359f38(0xf0));if(_0x50fdd0)_0x5ea620[_0x359f38(0xf0)]=_0x50fdd0;const _0xf5cca7=_0x1303e4[_0x359f38(0xe8)](_0x359f38(0x105));if(_0xf5cca7)_0x5ea620[_0x359f38(0x105)]=_0xf5cca7;const _0x5e2acc=_0x1303e4[_0x359f38(0xe8)](_0x359f38(0x106));if(_0x5e2acc)_0x5ea620[_0x359f38(0xeb)]=_0x5e2acc;const _0x2d14ec=_0x1303e4[_0x359f38(0xe8)](_0x359f38(0xfd));if(_0x2d14ec)_0x5ea620[_0x359f38(0xf2)]=_0x2d14ec;const {id:_0x5abe1c,entity:_0x5a9acf}=normalizeEntityWithIdResponse(await updateDbLink(_0x5ea620));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5a9acf),'message':_0x359f38(0xfa)+(_0x5abe1c??_0x18f808)};}};
@@ -1 +1 @@
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
+ const a64_0x52dc65=a64_0x58c8;(function(_0x279795,_0x3f034d){const _0x1a12de=a64_0x58c8,_0xe4e5c4=_0x279795();while(!![]){try{const _0x3cc736=parseInt(_0x1a12de(0xbd))/0x1*(parseInt(_0x1a12de(0xc7))/0x2)+parseInt(_0x1a12de(0x95))/0x3*(-parseInt(_0x1a12de(0xcd))/0x4)+-parseInt(_0x1a12de(0xd2))/0x5+parseInt(_0x1a12de(0x9d))/0x6+-parseInt(_0x1a12de(0xa3))/0x7+parseInt(_0x1a12de(0x93))/0x8*(-parseInt(_0x1a12de(0xbc))/0x9)+parseInt(_0x1a12de(0xca))/0xa*(parseInt(_0x1a12de(0x96))/0xb);if(_0x3cc736===_0x3f034d)break;else _0xe4e5c4['push'](_0xe4e5c4['shift']());}catch(_0x5f4e0a){_0xe4e5c4['push'](_0xe4e5c4['shift']());}}}(a64_0x2714,0x23d1c));import a64_0x2fd7a9 from'chalk';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';function a64_0x2714(){const _0x5b278e=['empty','(set,\x20length=','336966NRbBCx','accessKey','repeat','log','verbose','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','673603YVuBOu','platform','(missing)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','gray','currentApp','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','bold','✗\x20Expired','cookie','(default)','padEnd','\x20\x20Apps','✓\x20Valid\x20JSON','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','Global','value','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','missing','read','676359jzanqZ','1Mxaxjq','locale','riskLevel','version','Project','explicitAppName','red','\x20\x20explicitAppName:\x20','raw','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','531044NLkahd','source','apps','40NwPwbc','⚠\x20Empty\x20(treated\x20as\x20{})','apiDir','4ZHsEPF','\x20\x20Merged\x20Config','✓\x20Valid','appcode','\x20\x20API\x20Endpoints','688725QoAqDc','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20Config\x20Files','keys','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','defaultApp','green','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20─','slice','(not\x20set)','env','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','appCode','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','(not\x20found)','status','length','8mvHgGt','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','2874wtyBty','371569wTYdWt','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)'];a64_0x2714=function(){return _0x5b278e;};return a64_0x2714();}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(_0x12a39f){const _0x52177d=a64_0x58c8,_0x4923e8=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x52177d(0x89)](0x0,0xa)+')':VERSION,_0x403f87=buildConfigFromFlags({}),_0x504c14=getCookie();console[_0x52177d(0xa0)](),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xab)](CLI_BIN_NAME+'\x20doctor')),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xa7)]('─'[_0x52177d(0x9f)](0x32))),console[_0x52177d(0xa0)](_0x52177d(0x94)+_0x4923e8),console[_0x52177d(0xa0)](_0x52177d(0xb5)+process[_0x52177d(0xc0)]),console[_0x52177d(0xa0)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x52177d(0xa4)]+'\x20'+process['arch']),console[_0x52177d(0xa0)](),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xab)](_0x52177d(0xd8))),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x88)[_0x52177d(0x9f)](0x1e)));const _0x2bc342=getGlobalConfigPath(),_0x52b9a0=getProjectConfigPath();console['log'](_0x52177d(0x99)+(_0x2bc342||a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x90)))),console['log'](_0x52177d(0xa2)+(_0x52b9a0||a64_0x2fd7a9[_0x52177d(0xa7)]('(not\x20found)'))),console[_0x52177d(0xa0)](),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xab)]('\x20\x20Config\x20JSON')),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x88)[_0x52177d(0x9f)](0x1e)));const _0x2903d6=(_0x22e25f,_0x53f6ee)=>{const _0x2afd34=_0x52177d;if(!_0x53f6ee){console['log']('\x20\x20'+_0x22e25f['padEnd'](0x11)+'\x20'+a64_0x2fd7a9[_0x2afd34(0xa7)]('(no\x20file)'));return;}const _0x58e3fe=inspectCliConfigJsonFile(_0x53f6ee);if(_0x58e3fe[_0x2afd34(0x91)]==='ok')console[_0x2afd34(0xa0)]('\x20\x20'+_0x22e25f[_0x2afd34(0xaf)](0x11)+'\x20'+a64_0x2fd7a9[_0x2afd34(0x86)](_0x2afd34(0xb1)));else{if(_0x58e3fe[_0x2afd34(0x91)]===_0x2afd34(0x9b))console['log']('\x20\x20'+_0x22e25f['padEnd'](0x11)+'\x20'+a64_0x2fd7a9['yellow'](_0x2afd34(0xcb)));else _0x58e3fe[_0x2afd34(0x91)]===_0x2afd34(0xba)?console[_0x2afd34(0xa0)]('\x20\x20'+_0x22e25f[_0x2afd34(0xaf)](0x11)+'\x20'+a64_0x2fd7a9[_0x2afd34(0xa7)](_0x2afd34(0xa5))):(console['log']('\x20\x20'+_0x22e25f[_0x2afd34(0xaf)](0x11)+'\x20'+a64_0x2fd7a9[_0x2afd34(0xc3)](_0x2afd34(0xd7))),console[_0x2afd34(0xa0)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a64_0x2fd7a9['red'](_0x58e3fe['message'])));}};_0x2903d6(_0x52177d(0xb7),_0x2bc342),_0x2903d6(_0x52177d(0xc1),_0x52b9a0),console[_0x52177d(0xa0)](),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xab)](_0x52177d(0xce))),console['log'](a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x88)['repeat'](0x1e))),console[_0x52177d(0xa0)](_0x52177d(0xd5)+(_0x403f87[_0x52177d(0x8d)]||a64_0x2fd7a9['red'](_0x52177d(0x8a)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x403f87[_0x52177d(0x8b)]),console[_0x52177d(0xa0)](_0x52177d(0xc6)+_0x403f87[_0x52177d(0xbe)]),console[_0x52177d(0xa0)](_0x52177d(0xa9)+_0x403f87[_0x52177d(0xcc)]),console[_0x52177d(0xa0)](_0x52177d(0xda)+(_0x403f87[_0x52177d(0x85)]||a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x9a)))),console[_0x52177d(0xa0)](_0x52177d(0x8e)+(_0x403f87[_0x52177d(0xa8)]||a64_0x2fd7a9[_0x52177d(0xa7)]('(none)'))),console[_0x52177d(0xa0)](_0x52177d(0xc4)+(_0x403f87[_0x52177d(0xc2)]||a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x9a)))),console[_0x52177d(0xa0)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x403f87[_0x52177d(0xb6)]||a64_0x2fd7a9[_0x52177d(0xa7)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x52177d(0xb6)]+')'))),console['log'](_0x52177d(0xb9)+(_0x403f87['pageSize']??a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0xae)))),console['log'](_0x52177d(0xd6)+_0x403f87[_0x52177d(0xbf)]),console[_0x52177d(0xa0)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x403f87[_0x52177d(0xa1)]),console['log'](_0x52177d(0xb2)+(_0x403f87[_0x52177d(0xad)]?a64_0x2fd7a9[_0x52177d(0x86)](_0x52177d(0x9c)+_0x403f87[_0x52177d(0xad)][_0x52177d(0x92)]+')'):_0x504c14?a64_0x2fd7a9[_0x52177d(0x86)]('(set\x20via\x20file,\x20length='+_0x504c14[_0x52177d(0x92)]+')'):a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x9a))));const _0x41db51=Object[_0x52177d(0xd9)](_0x403f87[_0x52177d(0xc9)]);if(_0x41db51['length']>0x0){console[_0x52177d(0xa0)](),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xab)](_0x52177d(0xb0))),console['log'](a64_0x2fd7a9[_0x52177d(0xa7)]('\x20\x20─'[_0x52177d(0x9f)](0x1e)));for(const _0x1cc8da of _0x41db51){const _0x4aab6d=_0x403f87[_0x52177d(0xc9)][_0x1cc8da],_0x4b6fde=_0x1cc8da===_0x403f87[_0x52177d(0x85)],_0x3921b7=_0x1cc8da===_0x403f87['currentApp'],_0xab730d=_0x3921b7?a64_0x2fd7a9[_0x52177d(0x86)]('\x20←\x20current'):'',_0x5eedf1=_0x4b6fde?'\x20(default)':'';console[_0x52177d(0xa0)]('\x20\x20'+_0x1cc8da+_0x5eedf1+_0xab730d),console[_0x52177d(0xa0)](_0x52177d(0xa6)+_0x4aab6d[_0x52177d(0xd0)]);const _0x12d89a=buildAppDoctorFields(_0x4aab6d,{'env':_0x403f87[_0x52177d(0x8b)],'apiDir':_0x403f87[_0x52177d(0xc5)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x403f87[_0x52177d(0xad)]||_0x504c14||undefined,'accessKey':_0x403f87[_0x52177d(0x9e)]});console[_0x52177d(0xa0)](_0x52177d(0x8c)+_0x12d89a[_0x52177d(0x8b)][_0x52177d(0xb8)]+'\x20\x20'+a64_0x2fd7a9[_0x52177d(0xa7)]('('+_0x12d89a[_0x52177d(0x8b)][_0x52177d(0xc8)]+')')),console[_0x52177d(0xa0)](_0x52177d(0x97)+_0x12d89a['apiDir']['value']+'\x20\x20'+a64_0x2fd7a9['gray']('('+_0x12d89a[_0x52177d(0xcc)]['source']+')'));const _0x53bee6=_0x12d89a[_0x52177d(0xad)][_0x52177d(0xb8)]?a64_0x2fd7a9[_0x52177d(0x86)](_0x52177d(0x9c)+_0x12d89a[_0x52177d(0xad)]['value'][_0x52177d(0x92)]+')'):a64_0x2fd7a9[_0x52177d(0xa7)]('(none)');console[_0x52177d(0xa0)](_0x52177d(0xb3)+_0x53bee6+'\x20\x20'+a64_0x2fd7a9[_0x52177d(0xa7)]('('+_0x12d89a['cookie']['source']+')'));const _0x431fda=_0x12d89a[_0x52177d(0x9e)]['value']?a64_0x2fd7a9['green'](_0x52177d(0x9c)+_0x12d89a[_0x52177d(0x9e)][_0x52177d(0xb8)]['length']+')'):a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x9a));console[_0x52177d(0xa0)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x431fda+'\x20\x20'+a64_0x2fd7a9[_0x52177d(0xa7)]('('+_0x12d89a['accessKey'][_0x52177d(0xc8)]+')'));}}console[_0x52177d(0xa0)](),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xab)](_0x52177d(0xd1))),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xa7)](_0x52177d(0x88)['repeat'](0x1e))),console[_0x52177d(0xa0)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x52177d(0xa0)](_0x52177d(0x87)+getUserDomain()),console[_0x52177d(0xa0)](_0x52177d(0x98)+getRuntimeDomain()),console[_0x52177d(0xa0)](),console[_0x52177d(0xa0)](a64_0x2fd7a9[_0x52177d(0xab)](_0x52177d(0xb4))),console['log'](a64_0x2fd7a9['gray']('\x20\x20─'['repeat'](0x1e)));if(_0x504c14){const _0x215d3d=await getIsSessionValid();console[_0x52177d(0xa0)](_0x52177d(0xd3)+(_0x215d3d?a64_0x2fd7a9[_0x52177d(0x86)](_0x52177d(0xcf)):a64_0x2fd7a9[_0x52177d(0xc3)](_0x52177d(0xac))));}else console[_0x52177d(0xa0)](_0x52177d(0xd3)+a64_0x2fd7a9[_0x52177d(0xc3)](_0x52177d(0x8f)));return console[_0x52177d(0xa0)](),{'ok':!![]};}function a64_0x58c8(_0x349678,_0x5f2d73){_0x349678=_0x349678-0x85;const _0x27143f=a64_0x2714();let _0x58c81d=_0x27143f[_0x349678];return _0x58c81d;}export const doctorDefinition={'service':'doctor','command':a64_0x52dc65(0xd4),'description':a64_0x52dc65(0xaa),'risk':a64_0x52dc65(0xbb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
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
+ const a65_0x885ba8=a65_0x20d6;(function(_0x3cd65a,_0x4a47e0){const _0x4e62ff=a65_0x20d6,_0x1375ab=_0x3cd65a();while(!![]){try{const _0x5c5e6b=-parseInt(_0x4e62ff(0xfe))/0x1*(-parseInt(_0x4e62ff(0x11c))/0x2)+parseInt(_0x4e62ff(0xf8))/0x3+parseInt(_0x4e62ff(0xf7))/0x4+parseInt(_0x4e62ff(0xfd))/0x5*(parseInt(_0x4e62ff(0x10c))/0x6)+-parseInt(_0x4e62ff(0x101))/0x7+parseInt(_0x4e62ff(0x106))/0x8+-parseInt(_0x4e62ff(0x10f))/0x9;if(_0x5c5e6b===_0x4a47e0)break;else _0x1375ab['push'](_0x1375ab['shift']());}catch(_0x221709){_0x1375ab['push'](_0x1375ab['shift']());}}}(a65_0x5f42,0x1a7f5));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';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(_0x244588){return{'appCode':_0x244588,'appName':_0x244588};}function writeInitConfig(_0x174c25,_0x315a80,_0x51fece){const _0x5955fc=a65_0x20d6,_0x1146ac=resolveWriteConfigPath(_0x174c25),_0x4e5b89=buildCanonicalProjectConfig({},{'appCodes':_0x315a80['map'](_0x2eff42=>_0x2eff42['appCode']),'env':_0x51fece,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5955fc(0x108)]()}});writeConfigFile(_0x1146ac,_0x4e5b89);const _0x1ebf78=_0x174c25==='global'?_0x5955fc(0xf4):_0x5955fc(0x100);console[_0x5955fc(0x104)](_0x5955fc(0xf3)+_0x1ebf78+_0x5955fc(0xf5)),console[_0x5955fc(0x104)](_0x5955fc(0xfa)+_0x315a80['map'](_0x2c1139=>_0x2c1139[_0x5955fc(0x10b)])[_0x5955fc(0x116)](',\x20')),console[_0x5955fc(0x104)](_0x5955fc(0x115)+_0x4e5b89['defaultApp']),console['log'](_0x5955fc(0xfb)+_0x4e5b89['env']),console[_0x5955fc(0x104)](_0x5955fc(0x105)+_0x1146ac);}async function runSmartInit(_0x313bcb){const _0x97435=a65_0x20d6,_0x224dbf=process[_0x97435(0x107)](),_0x1daf6e=_0x313bcb[_0x97435(0x113)]('global')?_0x97435(0xf4):_0x97435(0x100),_0x214b6c=_0x313bcb[_0x97435(0xef)]('env')||_0x97435(0x118),_0x394f03=_0x313bcb[_0x97435(0xef)](_0x97435(0xf2))||undefined,_0x5df684=_0x313bcb['bool'](_0x97435(0x100));if(_0x5df684){const {initConfig:_0x5c089b}=await import(_0x97435(0x11e));return _0x5c089b({'appcode':_0x394f03,'env':_0x214b6c,'autoYes':_0x313bcb[_0x97435(0x113)]('yes')});}if(_0x1daf6e===_0x97435(0x100)){const _0x384c3c=existsSync(resolve(_0x224dbf,NEW_CONFIG_NAME)),_0x3aada0=LEGACY_CONFIG_NAMES[_0x97435(0x102)](_0x2dab2c=>existsSync(resolve(_0x224dbf,_0x2dab2c)));if(_0x3aada0&&!_0x384c3c)return console['log'](_0x97435(0xf1)),upgradeApp(_0x313bcb[_0x97435(0x117)],{'yes':_0x313bcb[_0x97435(0x113)](_0x97435(0x110))});if(_0x384c3c)throw CliErrors[_0x97435(0x11b)](_0x97435(0xfc),_0x97435(0x119)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x394f03){const _0x375681=validateAppcode(_0x394f03);if(!_0x375681[_0x97435(0x10a)])throw CliErrors[_0x97435(0x11b)](_0x375681[_0x97435(0x114)]);writeInitConfig(_0x1daf6e,[syntheticApp(_0x394f03)],_0x214b6c);return;}if(_0x313bcb[_0x97435(0x117)])throw CliErrors[_0x97435(0x10e)]('appcode',_0x97435(0xf9)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x436c97=getCookie(),_0x450e2e=await selectMultipleApps(_0x436c97),_0x5678de=_0x450e2e===_0x97435(0x109)?[syntheticApp(await promptCustomAppcode())]:_0x450e2e;writeInitConfig(_0x1daf6e,_0x5678de,_0x214b6c);}function a65_0x5f42(){const _0x1dd34b=['string','flagMissing','2088225mNZuPW','yes','App\x20code\x20to\x20initialize\x20with','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','bool','message','\x20\x20Default:\x20','join','nonInteractive','production','Use\x20`','boolean','validation','6qWOLdM','init','../../commands/project/init.js','Write\x20to\x20global\x20config\x20instead\x20of\x20project','Auto-confirm\x20prompts','str','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','检测到旧配置文件,正在自动升级...\x0a','appcode','\x0a✓\x20Successfully\x20initialized\x20','global','\x20config','env','708880iICQtn','36747hFQBMj','Usage:\x20','\x20\x20Apps:\x20','\x20\x20Env:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','120025ijwXhE','7693SXqwiJ','run','project','376614YFRcQt','some','Target\x20environment','log','\x20\x20Config:\x20','1262456hkiCPY','cwd','toLocaleString','custom','valid','appCode','6HbvbNY'];a65_0x5f42=function(){return _0x1dd34b;};return a65_0x5f42();}const initFlags=[{'name':a65_0x885ba8(0xf4),'type':a65_0x885ba8(0x11a),'description':a65_0x885ba8(0x11f),'default':![]},{'name':a65_0x885ba8(0xf6),'type':a65_0x885ba8(0x10d),'description':a65_0x885ba8(0x103),'default':a65_0x885ba8(0x118),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a65_0x885ba8(0x10d),'description':a65_0x885ba8(0x111)},{'name':a65_0x885ba8(0x100),'type':a65_0x885ba8(0x11a),'description':a65_0x885ba8(0xf0),'default':![]},{'name':a65_0x885ba8(0x110),'type':a65_0x885ba8(0x11a),'description':a65_0x885ba8(0x120),'default':![]}];function a65_0x20d6(_0xaa1cca,_0x60cafe){_0xaa1cca=_0xaa1cca-0xef;const _0x5f42bb=a65_0x5f42();let _0x20d67b=_0x5f42bb[_0xaa1cca];return _0x20d67b;}export const initDefinitions=[{'service':a65_0x885ba8(0x11d),'command':a65_0x885ba8(0xff),'description':a65_0x885ba8(0x112),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x4e65db){return await runSmartInit(_0x4e65db),{'ok':!![]};}}];
@@ -1 +1 @@
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
+ const a66_0x8f0430=a66_0x40f6;(function(_0xd18de2,_0x1af2bf){const _0x5f3a39=a66_0x40f6,_0x1d11bc=_0xd18de2();while(!![]){try{const _0x3e49d8=-parseInt(_0x5f3a39(0x15c))/0x1+-parseInt(_0x5f3a39(0x147))/0x2+-parseInt(_0x5f3a39(0x148))/0x3*(-parseInt(_0x5f3a39(0x141))/0x4)+parseInt(_0x5f3a39(0x157))/0x5*(-parseInt(_0x5f3a39(0x14d))/0x6)+-parseInt(_0x5f3a39(0x138))/0x7+parseInt(_0x5f3a39(0x146))/0x8*(-parseInt(_0x5f3a39(0x155))/0x9)+parseInt(_0x5f3a39(0x139))/0xa*(parseInt(_0x5f3a39(0x152))/0xb);if(_0x3e49d8===_0x1af2bf)break;else _0x1d11bc['push'](_0x1d11bc['shift']());}catch(_0x5c3fd7){_0x1d11bc['push'](_0x1d11bc['shift']());}}}(a66_0x3957,0xe36cc));import{logger}from'../../utils/logger.js';function a66_0x40f6(_0x449e9b,_0x41c9bc){_0x449e9b=_0x449e9b-0x135;const _0x395773=a66_0x3957();let _0x40f656=_0x395773[_0x449e9b];return _0x40f656;}function printLogs(_0x3afdbc){const _0x2f1d16=a66_0x40f6;if(_0x3afdbc[_0x2f1d16(0x13e)]===0x0){console[_0x2f1d16(0x140)]('*\x20No\x20logs\x20found');return;}console[_0x2f1d16(0x140)](_0x2f1d16(0x13c)),_0x3afdbc[_0x2f1d16(0x15a)]((_0x5b1f07,_0x15d673)=>{const _0x38a3b5=_0x2f1d16,_0x11baf4=new Date(_0x5b1f07[_0x38a3b5(0x154)])[_0x38a3b5(0x14a)](_0x38a3b5(0x145)),_0x18e32a=_0x5b1f07[_0x38a3b5(0x150)]===_0x38a3b5(0x151)?'√':_0x5b1f07[_0x38a3b5(0x150)]===_0x38a3b5(0x156)?'×':_0x5b1f07[_0x38a3b5(0x150)]==='warn'?'!':'i';console[_0x38a3b5(0x140)](_0x15d673+0x1+'.\x20'+_0x18e32a+'\x20['+_0x5b1f07[_0x38a3b5(0x142)]+']\x20'+_0x5b1f07[_0x38a3b5(0x13a)]),console[_0x38a3b5(0x140)](_0x38a3b5(0x135)+_0x11baf4),_0x5b1f07[_0x38a3b5(0x14c)]&&console[_0x38a3b5(0x140)](_0x38a3b5(0x143)+_0x5b1f07[_0x38a3b5(0x14c)]+'ms'),_0x5b1f07[_0x38a3b5(0x14e)]&&Object[_0x38a3b5(0x137)](_0x5b1f07[_0x38a3b5(0x14e)])[_0x38a3b5(0x13e)]>0x0&&console[_0x38a3b5(0x140)](_0x38a3b5(0x158)+JSON[_0x38a3b5(0x153)](_0x5b1f07[_0x38a3b5(0x14e)],null,0x2)),console[_0x38a3b5(0x140)]('');});}function a66_0x3957(){const _0x172fa9=['show','log','8NDvGgM','command','\x20\x20\x20Duration:\x20','*\x20Logs\x20cleared','en-US','8SFsFEp','592366QMVEKH','1667949MsvgTF','View\x20command\x20history\x20logs','toLocaleString','write','duration','18jSDcxN','details','read','level','success','407nEcike','stringify','timestamp','5104593ehlqGh','error','1070915IrYMvu','\x20\x20\x20Details:\x20','Clear\x20command\x20history\x20logs','forEach','clear','813643SiBwlV','\x20\x20\x20Time:\x20','logs','keys','3639727ATlpRd','718670wJcKOF','message','clearLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','readLogs','length'];a66_0x3957=function(){return _0x172fa9;};return a66_0x3957();}export const logsDefinitions=[{'service':a66_0x8f0430(0x136),'command':a66_0x8f0430(0x13f),'description':a66_0x8f0430(0x149),'risk':a66_0x8f0430(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2ec28f){const _0x42e6d9=a66_0x8f0430;return printLogs(logger[_0x42e6d9(0x13d)]()),{'ok':!![]};}},{'service':'logs','command':a66_0x8f0430(0x15b),'description':a66_0x8f0430(0x159),'risk':a66_0x8f0430(0x14b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x57b5f7){const _0x187e32=a66_0x8f0430;return logger[_0x187e32(0x13b)](),console['log'](_0x187e32(0x144)),{'ok':!![]};}}];
@@ -1 +1 @@
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
+ (function(_0x2d7cdb,_0x2d7125){const _0x326571=a67_0x284e,_0x1aa8ad=_0x2d7cdb();while(!![]){try{const _0xe14172=-parseInt(_0x326571(0x16e))/0x1*(-parseInt(_0x326571(0x176))/0x2)+parseInt(_0x326571(0x178))/0x3+-parseInt(_0x326571(0x175))/0x4+parseInt(_0x326571(0x16f))/0x5*(-parseInt(_0x326571(0x170))/0x6)+parseInt(_0x326571(0x172))/0x7*(parseInt(_0x326571(0x173))/0x8)+parseInt(_0x326571(0x177))/0x9+parseInt(_0x326571(0x174))/0xa*(parseInt(_0x326571(0x171))/0xb);if(_0xe14172===_0x2d7125)break;else _0x1aa8ad['push'](_0x1aa8ad['shift']());}catch(_0x154418){_0x1aa8ad['push'](_0x1aa8ad['shift']());}}}(a67_0x4b8a,0x3c8e6));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a67_0x4b8a(){const _0x247ea7=['74878jIdnEx','1427112nOXcsK','1058421uMlsDF','1etpPDm','5ZXXtsj','2243922kybcNW','473MvlXqv','21EoNfWM','75016duEEbz','27220NMITBn','287864LoWuDz'];a67_0x4b8a=function(){return _0x247ea7;};return a67_0x4b8a();}function a67_0x284e(_0x3371cb,_0x36c8c8){_0x3371cb=_0x3371cb-0x16e;const _0x4b8a39=a67_0x4b8a();let _0x284e68=_0x4b8a39[_0x3371cb];return _0x284e68;}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
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
+ (function(_0x4c3fd8,_0x20548e){const _0x5441da=a68_0x4ce3,_0x370084=_0x4c3fd8();while(!![]){try{const _0x354f13=-parseInt(_0x5441da(0xf3))/0x1*(parseInt(_0x5441da(0xf7))/0x2)+-parseInt(_0x5441da(0xee))/0x3+parseInt(_0x5441da(0xe9))/0x4+-parseInt(_0x5441da(0xe3))/0x5*(-parseInt(_0x5441da(0xf5))/0x6)+-parseInt(_0x5441da(0xe1))/0x7*(parseInt(_0x5441da(0xfa))/0x8)+parseInt(_0x5441da(0xfb))/0x9+parseInt(_0x5441da(0xec))/0xa;if(_0x354f13===_0x20548e)break;else _0x370084['push'](_0x370084['shift']());}catch(_0x4207e0){_0x370084['push'](_0x370084['shift']());}}}(a68_0x3e99,0xce694));function a68_0x4ce3(_0x19a707,_0x276f92){_0x19a707=_0x19a707-0xde;const _0x3e9917=a68_0x3e99();let _0x4ce3d4=_0x3e9917[_0x19a707];return _0x4ce3d4;}function strWidth(_0x1acf1f){const _0x4db534=a68_0x4ce3;let _0x355003=0x0;for(const _0x36d540 of _0x1acf1f){_0x355003+=/[\u4e00-\u9fa5]/[_0x4db534(0xed)](_0x36d540)?0x2:0x1;}return _0x355003;}function a68_0x3e99(){const _0x548f98=['8451927wTYHHV','repeat','length','showOnline','local','144984cyCzwA','Menu\x20Name','455toxeEi','push','max','label','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','(unchanged)','3031080qclLkB','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','map','8675030FenZoY','test','649695TEgHHe','\x20\x20\x20\x20•\x20','Local','join','Platform','4SdtXrt','path','96378QctayO','online','808902dcccRi','\x20\x20\x20\x20CSS:\x20','\x20\x20\x20\x20JS:\x20\x20','520XUhvuQ'];a68_0x3e99=function(){return _0x548f98;};return a68_0x3e99();}function padRight(_0x450c2c,_0x491a5f){const _0x4a0e0f=a68_0x4ce3,_0x530d86=strWidth(_0x450c2c);return _0x450c2c+'\x20'[_0x4a0e0f(0xfc)](Math['max'](0x0,_0x491a5f-_0x530d86));}export function renderCompareTable(_0xd53f99,_0x47c88e={}){const _0x3732dc=a68_0x4ce3;if(_0xd53f99[_0x3732dc(0xde)]===0x0)return'';const _0x24c695=_0x47c88e[_0x3732dc(0xdf)]??!![],_0x298cc5=Math[_0x3732dc(0xe5)](0x1e,..._0xd53f99[_0x3732dc(0xeb)](_0x343a45=>strWidth(_0x343a45[_0x3732dc(0xe6)]))),_0x334614=0x4,_0x7e40cc=[],_0x2a42ff='\x20\x20'+padRight(_0x3732dc(0xe2),_0x298cc5),_0x55cb23=padRight(_0x3732dc(0xf0),_0x334614),_0xe2278e=_0x24c695?'\x20\x20'+padRight(_0x3732dc(0xf2),_0x334614):'';_0x7e40cc['push'](_0x2a42ff+'\x20\x20'+_0x55cb23+(_0x24c695?_0xe2278e:'')),_0x7e40cc[_0x3732dc(0xe4)]('\x20\x20'+'─'[_0x3732dc(0xfc)](_0x298cc5)+'\x20\x20'+'─'[_0x3732dc(0xfc)](_0x334614)+(_0x24c695?'\x20\x20'+'─'[_0x3732dc(0xfc)](_0x334614):''));for(const _0x4eac3f of _0xd53f99){const _0x3475c5=padRight(_0x4eac3f['label'],_0x298cc5),_0xff0066=_0x4eac3f[_0x3732dc(0xe0)]?'✓':'✗',_0x5355d1=padRight(_0xff0066,_0x334614);let _0x36d225='\x20\x20'+_0x3475c5+'\x20\x20'+_0x5355d1;if(_0x24c695){const _0x54585b=_0x4eac3f[_0x3732dc(0xf6)]?'✓':'✗';_0x36d225+='\x20\x20'+padRight(_0x54585b,_0x334614);}_0x7e40cc[_0x3732dc(0xe4)](_0x36d225);}return _0x7e40cc[_0x3732dc(0xf1)]('\x0a');}export function renderSyncSummary(_0x593f8f,_0x1210a2){const _0x5ece48=a68_0x4ce3;if(_0x593f8f[_0x5ece48(0xde)]===0x0)return _0x1210a2?_0x5ece48(0xea):'\x20\x20No\x20pages\x20to\x20sync.';const _0x36751e=['\x20\x20'+_0x593f8f[_0x5ece48(0xde)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x109e9a of _0x593f8f){_0x36751e[_0x5ece48(0xe4)](_0x5ece48(0xef)+_0x109e9a[_0x5ece48(0xe6)]+'\x20('+_0x109e9a[_0x5ece48(0xf4)]+')');}return _0x36751e[_0x5ece48(0xf1)]('\x0a');}export function renderUpdateSummary(_0x4fd2be,_0x4980cd){const _0xfe913d=a68_0x4ce3;if(_0x4fd2be[_0xfe913d(0xde)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x59390e=['\x20\x20'+_0x4fd2be['length']+_0xfe913d(0xe7),_0xfe913d(0xf9)+(_0x4980cd[0x0]??_0xfe913d(0xe8)),_0xfe913d(0xf8)+(_0x4980cd[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x4fd2be[_0xfe913d(0xf1)](',\x20')];return _0x59390e[_0xfe913d(0xf1)]('\x0a');}
@@ -1 +1 @@
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
+ (function(_0x57feb7,_0x582421){var _0x57a655=a69_0x2ee6,_0x46ea71=_0x57feb7();while(!![]){try{var _0x14abea=parseInt(_0x57a655(0xa3))/0x1*(-parseInt(_0x57a655(0xa2))/0x2)+parseInt(_0x57a655(0xa8))/0x3+-parseInt(_0x57a655(0xa6))/0x4+-parseInt(_0x57a655(0xa4))/0x5+parseInt(_0x57a655(0xa9))/0x6+-parseInt(_0x57a655(0xa5))/0x7+parseInt(_0x57a655(0xa7))/0x8;if(_0x14abea===_0x582421)break;else _0x46ea71['push'](_0x46ea71['shift']());}catch(_0x42f1fd){_0x46ea71['push'](_0x46ea71['shift']());}}}(a69_0x5817,0x7f960));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 a69_0x2ee6(_0x26cf51,_0xdc054b){_0x26cf51=_0x26cf51-0xa2;var _0x5817f3=a69_0x5817();var _0x2ee604=_0x5817f3[_0x26cf51];return _0x2ee604;}export*from'../../../commands/menu/shared/valid-url.js';function a69_0x5817(){var _0x36054c=['14nlUsYU','69411tDYSlF','757450SkSrxO','5820647ytaVbX','2533864vMkxSW','12289272CHJxNE','619062IxgkJR','5294598WyCcyG'];a69_0x5817=function(){return _0x36054c;};return a69_0x5817();}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(_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
+ (function(_0x279598,_0x339b3d){const _0x59d01f=a70_0x50ac,_0xb0f16a=_0x279598();while(!![]){try{const _0x1f0a7b=-parseInt(_0x59d01f(0x15c))/0x1*(parseInt(_0x59d01f(0x169))/0x2)+-parseInt(_0x59d01f(0x174))/0x3+parseInt(_0x59d01f(0x177))/0x4*(-parseInt(_0x59d01f(0x14e))/0x5)+-parseInt(_0x59d01f(0x176))/0x6+parseInt(_0x59d01f(0x14d))/0x7+parseInt(_0x59d01f(0x155))/0x8*(parseInt(_0x59d01f(0x166))/0x9)+parseInt(_0x59d01f(0x171))/0xa;if(_0x1f0a7b===_0x339b3d)break;else _0xb0f16a['push'](_0xb0f16a['shift']());}catch(_0xa32fcc){_0xb0f16a['push'](_0xb0f16a['shift']());}}}(a70_0x1a35,0x2f722));import a70_0x1e99b8 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a70_0x12416b from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x53c34e){const _0x12acca=a70_0x50ac;return _0x53c34e[_0x12acca(0x159)](_0x370b73=>{const _0x1fff0f=_0x12acca;if(_0x370b73?.[_0x1fff0f(0x175)]==='ExitPromptError')throw CliErrors[_0x1fff0f(0x16e)](_0x1fff0f(0x152));throw _0x370b73;});}export function startSpinner(_0x3b1527){const _0x2e41fc=a70_0x50ac;return a70_0x12416b({'text':_0x3b1527,'color':_0x2e41fc(0x15e)})[_0x2e41fc(0x151)]();}export function stopSpinner(_0x9673a,_0x47c35d,_0x44bd81){const _0x55bfdb=a70_0x50ac;_0x44bd81?_0x9673a[_0x55bfdb(0x164)](_0x47c35d):_0x9673a[_0x55bfdb(0x15a)](_0x47c35d);}export async function askConfirm(_0x29f330){return onCancel(confirm({'message':_0x29f330,'theme':{'prefix':''}}));}function a70_0x1a35(){const _0x5d2fa9=['\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','label','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','map','928592MfaDug','1925OsDudN','[already\x20on\x20platform]','green','start','Cancelled.','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','isTTY','12856TFIpac','\x20\x20CSS\x20URL:','JS\x20URL\x20checked','CSS\x20URL\x20checked','catch','fail','stdin','116381pAGamB','test','cyan','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','red','No\x20menus\x20selected.','\x20\x20Checking\x20JS\x20URL\x20reachability...','path','succeed','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','558KPZTmp','trim','No\x20local\x20pages\x20found.','4qTZKGh','gray','filter','error','has','cancelled','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','length','10646260iWoXDY','JS\x20URL\x20check\x20failed','includes','1069239ALmSoh','name','1405668arsNhf','2900YjLObI','\x20\x20JS\x20URL:'];a70_0x1a35=function(){return _0x5d2fa9;};return a70_0x1a35();}export async function askJsUrl(_0x317b5b){const _0x230752=a70_0x50ac;while(!![]){const _0x184b39=await onCancel(input({'message':_0x230752(0x178),'default':_0x317b5b,'theme':{'prefix':''}}));if(_0x184b39['trim']()==='')throw CliErrors[_0x230752(0x16e)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x230752(0x15d)](_0x184b39['trim']())){console['error'](a70_0x1e99b8[_0x230752(0x160)](_0x230752(0x17c)));continue;}const _0x5159dc=startSpinner(_0x230752(0x162));try{const _0x2f70ad=await isUrlReachable(_0x184b39['trim']());stopSpinner(_0x5159dc,_0x230752(0x157),_0x2f70ad);if(!_0x2f70ad){console[_0x230752(0x16c)](a70_0x1e99b8[_0x230752(0x160)](_0x230752(0x15f)));continue;}return _0x184b39[_0x230752(0x167)]();}catch(_0x294810){stopSpinner(_0x5159dc,_0x230752(0x172),![]);throw _0x294810;}}}export async function askCssUrl(_0xf265ac){const _0x4f07be=a70_0x50ac;while(!![]){const _0x4b34bb=await onCancel(input({'message':_0x4f07be(0x156),'default':_0xf265ac,'theme':{'prefix':''}}));if(_0x4b34bb[_0x4f07be(0x167)]()==='')throw CliErrors[_0x4f07be(0x16e)](_0x4f07be(0x152));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4f07be(0x15d)](_0x4b34bb[_0x4f07be(0x167)]())){console[_0x4f07be(0x16c)](a70_0x1e99b8[_0x4f07be(0x160)](_0x4f07be(0x153)));continue;}const _0x3f98b9=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x433904=await isUrlReachable(_0x4b34bb[_0x4f07be(0x167)]());stopSpinner(_0x3f98b9,_0x4f07be(0x158),_0x433904);if(!_0x433904){console[_0x4f07be(0x16c)](a70_0x1e99b8[_0x4f07be(0x160)](_0x4f07be(0x165)));continue;}return _0x4b34bb['trim']();}catch(_0x20e08c){stopSpinner(_0x3f98b9,'CSS\x20URL\x20check\x20failed',![]);throw _0x20e08c;}}}export async function selectPages(_0x103be7,_0x23d06d,_0xde388c){const _0x576044=a70_0x50ac,_0x2010ca=_0x103be7[_0x576044(0x17d)](_0x213415=>({'name':_0x213415['label']+'\x20\x20'+(_0x23d06d[_0x576044(0x16d)](_0x213415[_0x576044(0x163)])?a70_0x1e99b8[_0x576044(0x16a)](_0x576044(0x14f)):a70_0x1e99b8[_0x576044(0x150)]('[new]')),'value':_0x213415[_0x576044(0x17b)],'checked':_0xde388c?_0xde388c['includes'](_0x213415[_0x576044(0x17b)]):!_0x23d06d[_0x576044(0x16d)](_0x213415['path'])}));if(_0x2010ca['length']===0x0)throw new Error(_0x576044(0x168));const _0x5e311d=await onCancel(checkbox({'message':_0x576044(0x179),'choices':_0x2010ca,'loop':![],'theme':{'prefix':''}}));if(_0x5e311d[_0x576044(0x170)]===0x0)throw new Error(_0x576044(0x161));return _0x103be7[_0x576044(0x16b)](_0x548e3a=>_0x5e311d[_0x576044(0x173)](_0x548e3a[_0x576044(0x17b)]));}export function isInteractive(){const _0x308504=a70_0x50ac;return process[_0x308504(0x15b)][_0x308504(0x154)]===!![];}function a70_0x50ac(_0x4c2bb0,_0x30df2f){_0x4c2bb0=_0x4c2bb0-0x14d;const _0x1a351e=a70_0x1a35();let _0x50ace2=_0x1a351e[_0x4c2bb0];return _0x50ace2;}export function requireInteractive(){const _0x1aaf52=a70_0x50ac;if(!isInteractive())throw new Error(_0x1aaf52(0x17a)+_0x1aaf52(0x16f));}