@lovrabet/rabetbase-cli 2.2.4-beta.1 → 2.2.4-beta.3

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 (205) 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/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5ad3d2,_0x48f975){const _0x5e77a8=a73_0x5b15,_0x574070=_0x5ad3d2();while(!![]){try{const _0x4e94f7=parseInt(_0x5e77a8(0xb3))/0x1+parseInt(_0x5e77a8(0xbe))/0x2+parseInt(_0x5e77a8(0xb8))/0x3*(parseInt(_0x5e77a8(0xa1))/0x4)+parseInt(_0x5e77a8(0xa2))/0x5+parseInt(_0x5e77a8(0xa4))/0x6+parseInt(_0x5e77a8(0xa8))/0x7*(parseInt(_0x5e77a8(0xa7))/0x8)+-parseInt(_0x5e77a8(0xa5))/0x9;if(_0x4e94f7===_0x48f975)break;else _0x574070['push'](_0x574070['shift']());}catch(_0x5724d3){_0x574070['push'](_0x574070['shift']());}}}(a73_0x4340,0xc5fb4));function a73_0x5b15(_0x787b95,_0x171508){_0x787b95=_0x787b95-0xa0;const _0x4340b9=a73_0x4340();let _0x5b15ad=_0x4340b9[_0x787b95];return _0x5b15ad;}import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x5bce3a){const _0x4df8a3=a73_0x5b15,_0x245bea=_0x5bce3a[_0x4df8a3(0xaa)]();if(_0x245bea===_0x4df8a3(0xae)||_0x245bea===_0x4df8a3(0xb6)||_0x245bea===_0x4df8a3(0xb5))return!![];if(_0x245bea[_0x4df8a3(0xb4)](_0x4df8a3(0xb7))||_0x245bea[_0x4df8a3(0xb4)](_0x4df8a3(0xac))||_0x245bea[_0x4df8a3(0xb4)](_0x4df8a3(0xbd)))return!![];if(_0x245bea[_0x4df8a3(0xb4)](_0x4df8a3(0xab))||_0x245bea[_0x4df8a3(0xb4)](_0x4df8a3(0xb1)))return!![];if(_0x245bea===_0x4df8a3(0xba)||_0x245bea===_0x4df8a3(0xb2)||_0x245bea===_0x4df8a3(0xad))return!![];return![];}export function sanitizeDbLinkForOutput(_0x336b0c){const _0x35e8f0=a73_0x5b15,_0x51fdf6={..._0x336b0c};for(const _0x204094 of Object[_0x35e8f0(0xbb)](_0x51fdf6)){if(!shouldRedactKey(_0x204094))continue;const _0x1b14c1=_0x51fdf6[_0x204094];_0x1b14c1!=null&&String(_0x1b14c1)[_0x35e8f0(0xaf)]>0x0&&(_0x51fdf6[_0x204094]=_0x35e8f0(0xa9));}return _0x51fdf6;}export function sanitizeDbLinkList(_0xc15a9a){const _0xe46ab3=a73_0x5b15;return _0xc15a9a[_0xe46ab3(0xa6)](_0x32aaf4=>sanitizeDbLinkForOutput(_0x32aaf4));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x23d36d){const _0x31fbb9=a73_0x5b15,_0xb18cd8=_0x23d36d[_0x31fbb9(0xb0)]();if(!_0xb18cd8)return![];return DB_URL_PATTERN[_0x31fbb9(0xb9)](_0xb18cd8);}function a73_0x4340(){const _0x444453=['secret','2457222LsvNmr','test','authorization','keys','number','credential','1915732UfCkmz','/data/database','4HULUZU','879100NmxhCA','/data/er?dbId=','7808778Tgsqty','31680756meLUeA','map','157304aMrOVp','147ETAVDh','[redacted]','toLowerCase','privatekey','token','jdbcurl','password','length','trim','accesskey','connectionstring','663870YwtrhX','includes','dbpassword','passwd'];a73_0x4340=function(){return _0x444453;};return a73_0x4340();}export function buildDbPageLinks(_0x354e20,_0x1c069a){const _0x18f67d=a73_0x5b15,_0x4d2360=_0x354e20?.[_0x18f67d(0xb0)]();if(!_0x4d2360)return undefined;const _0x275a1f=typeof _0x1c069a===_0x18f67d(0xbc)?String(_0x1c069a):String(_0x1c069a??'')['trim']();if(!_0x275a1f)return undefined;const _0x575c16=Number(_0x275a1f);if(!Number['isFinite'](_0x575c16)||_0x575c16<=0x0)return undefined;const _0x4abffc=getAppBaseUrl(_0x4d2360),_0x44980c=encodeURIComponent(String(_0x575c16));return{'databasePage':_0x4abffc+_0x18f67d(0xa0),'erPage':_0x4abffc+_0x18f67d(0xa3)+_0x44980c};}
1
+ (function(_0x1db38e,_0x505066){const _0x2d64cc=a73_0x3e42,_0x1f047d=_0x1db38e();while(!![]){try{const _0x48c630=-parseInt(_0x2d64cc(0x77))/0x1*(-parseInt(_0x2d64cc(0x7b))/0x2)+-parseInt(_0x2d64cc(0x72))/0x3+parseInt(_0x2d64cc(0x82))/0x4+parseInt(_0x2d64cc(0x80))/0x5+parseInt(_0x2d64cc(0x7f))/0x6*(-parseInt(_0x2d64cc(0x7d))/0x7)+parseInt(_0x2d64cc(0x70))/0x8+-parseInt(_0x2d64cc(0x6d))/0x9;if(_0x48c630===_0x505066)break;else _0x1f047d['push'](_0x1f047d['shift']());}catch(_0x40852d){_0x1f047d['push'](_0x1f047d['shift']());}}}(a73_0x415e,0x40050));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x443053){const _0x2cc863=a73_0x3e42,_0x19beb7=_0x443053[_0x2cc863(0x76)]();if(_0x19beb7===_0x2cc863(0x7e)||_0x19beb7==='passwd'||_0x19beb7===_0x2cc863(0x79))return!![];if(_0x19beb7['includes']('secret')||_0x19beb7[_0x2cc863(0x85)]('token')||_0x19beb7[_0x2cc863(0x85)](_0x2cc863(0x78)))return!![];if(_0x19beb7['includes'](_0x2cc863(0x74))||_0x19beb7[_0x2cc863(0x85)](_0x2cc863(0x73)))return!![];if(_0x19beb7===_0x2cc863(0x71)||_0x19beb7===_0x2cc863(0x84)||_0x19beb7===_0x2cc863(0x6f))return!![];return![];}export function sanitizeDbLinkForOutput(_0x3e61be){const _0x5385ee=a73_0x3e42,_0x5c384f={..._0x3e61be};for(const _0x2536f0 of Object[_0x5385ee(0x83)](_0x5c384f)){if(!shouldRedactKey(_0x2536f0))continue;const _0x17c030=_0x5c384f[_0x2536f0];_0x17c030!=null&&String(_0x17c030)[_0x5385ee(0x81)]>0x0&&(_0x5c384f[_0x2536f0]='[redacted]');}return _0x5c384f;}export function sanitizeDbLinkList(_0xfe3b7a){const _0x2bf3ed=a73_0x3e42;return _0xfe3b7a[_0x2bf3ed(0x6c)](_0x468e29=>sanitizeDbLinkForOutput(_0x468e29));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x185daf){const _0x493097=a73_0x3e42,_0x233430=_0x185daf[_0x493097(0x6b)]();if(!_0x233430)return![];return DB_URL_PATTERN[_0x493097(0x75)](_0x233430);}export function buildDbPageLinks(_0x1e45f2,_0x12519){const _0x12cb84=a73_0x3e42,_0x2ceaff=_0x1e45f2?.[_0x12cb84(0x6b)]();if(!_0x2ceaff)return undefined;const _0x51b003=typeof _0x12519===_0x12cb84(0x7a)?String(_0x12519):String(_0x12519??'')[_0x12cb84(0x6b)]();if(!_0x51b003)return undefined;const _0x424361=Number(_0x51b003);if(!Number[_0x12cb84(0x7c)](_0x424361)||_0x424361<=0x0)return undefined;const _0x2713b2=getAppBaseUrl(_0x2ceaff),_0x322021=encodeURIComponent(String(_0x424361));return{'databasePage':_0x2713b2+'/data/database','erPage':_0x2713b2+_0x12cb84(0x6e)+_0x322021};}function a73_0x3e42(_0x29b911,_0x1356ae){_0x29b911=_0x29b911-0x6b;const _0x415e88=a73_0x415e();let _0x3e42cf=_0x415e88[_0x29b911];return _0x3e42cf;}function a73_0x415e(){const _0x360ad1=['number','9818tUIdXZ','isFinite','63903wMMzqV','password','282zVOuce','814870ZPSfoC','length','1875040ysuMJr','keys','connectionstring','includes','trim','map','1300212gPausy','/data/er?dbId=','jdbcurl','651656VhFpsl','authorization','1046100rfZZIb','accesskey','privatekey','test','toLowerCase','96WtGyiX','credential','dbpassword'];a73_0x415e=function(){return _0x360ad1;};return a73_0x415e();}
@@ -1 +1 @@
1
- const a74_0x59debc=a74_0x5c1f;(function(_0x21dd35,_0x5565f8){const _0x200f52=a74_0x5c1f,_0x42a504=_0x21dd35();while(!![]){try{const _0x45f213=parseInt(_0x200f52(0x1c0))/0x1+parseInt(_0x200f52(0x1b9))/0x2*(-parseInt(_0x200f52(0x1ba))/0x3)+parseInt(_0x200f52(0x1b8))/0x4+-parseInt(_0x200f52(0x1b5))/0x5+parseInt(_0x200f52(0x1bf))/0x6*(-parseInt(_0x200f52(0x1bd))/0x7)+-parseInt(_0x200f52(0x1b2))/0x8*(-parseInt(_0x200f52(0x1b4))/0x9)+parseInt(_0x200f52(0x1be))/0xa*(parseInt(_0x200f52(0x1b7))/0xb);if(_0x45f213===_0x5565f8)break;else _0x42a504['push'](_0x42a504['shift']());}catch(_0x4eac92){_0x42a504['push'](_0x42a504['shift']());}}}(a74_0x5d5d,0x6760d));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x5c1f(_0x581706,_0x537134){_0x581706=_0x581706-0x1b2;const _0x5d5d86=a74_0x5d5d();let _0x5c1f8a=_0x5d5d86[_0x581706];return _0x5c1f8a;}export const dbTables={'service':'db','command':a74_0x59debc(0x1b3),'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'(_0x5c58c5){const _0x509398=a74_0x59debc,_0x44a743=_0x5c58c5[_0x509398(0x1b6)]('id'),_0x189d5f=await getDbAllTableList(_0x5c58c5['appCode'],_0x44a743);return{'ok':!![],'data':{'dbLinkId':_0x44a743,'total':_0x189d5f['length'],'tables':_0x189d5f},'message':_0x189d5f[_0x509398(0x1bc)]+_0x509398(0x1bb)+_0x44a743};}};function a74_0x5d5d(){const _0x43dc7c=['22581dczUGT','\x20table(s)\x20on\x20db\x20link\x20','length','308Zlogvz','10FXHlqs','54054eYgFbg','330292nxldLI','8HAbobu','tables','5128659AxZkSK','4038205uMdPLW','num','9145389uogKOm','788048EqyAJf','80CsABfX'];a74_0x5d5d=function(){return _0x43dc7c;};return a74_0x5d5d();}
1
+ function a74_0x581e(_0xf3b4f8,_0x2daf64){_0xf3b4f8=_0xf3b4f8-0x84;const _0x1b04bd=a74_0x1b04();let _0x581e31=_0x1b04bd[_0xf3b4f8];return _0x581e31;}const a74_0x146f5b=a74_0x581e;(function(_0x123694,_0x1278ee){const _0x4a2d28=a74_0x581e,_0xd98756=_0x123694();while(!![]){try{const _0x334507=-parseInt(_0x4a2d28(0x8e))/0x1*(-parseInt(_0x4a2d28(0x8d))/0x2)+-parseInt(_0x4a2d28(0x94))/0x3*(-parseInt(_0x4a2d28(0x89))/0x4)+parseInt(_0x4a2d28(0x87))/0x5+-parseInt(_0x4a2d28(0x93))/0x6*(-parseInt(_0x4a2d28(0x8a))/0x7)+parseInt(_0x4a2d28(0x85))/0x8+-parseInt(_0x4a2d28(0x84))/0x9+-parseInt(_0x4a2d28(0x90))/0xa*(parseInt(_0x4a2d28(0x88))/0xb);if(_0x334507===_0x1278ee)break;else _0xd98756['push'](_0xd98756['shift']());}catch(_0x252d5d){_0xd98756['push'](_0xd98756['shift']());}}}(a74_0x1b04,0xb5e25));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x1b04(){const _0x368ed3=['161321ouSNKB','tables','17630440lRjClq','appCode','read','7026aQdcJp','4758fypqFn','10009800uXBhus','2267656YlJnyq','num','6060460Omccxt','11TJAxXE','532sZdiuI','8547CuHTPT','length','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','6aJTBDv'];a74_0x1b04=function(){return _0x368ed3;};return a74_0x1b04();}export const dbTables={'service':'db','command':a74_0x146f5b(0x8f),'description':a74_0x146f5b(0x8c),'risk':a74_0x146f5b(0x92),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x38a5b6){const _0x4d7977=a74_0x146f5b,_0x55da64=_0x38a5b6[_0x4d7977(0x86)]('id'),_0x24dd5c=await getDbAllTableList(_0x38a5b6[_0x4d7977(0x91)],_0x55da64);return{'ok':!![],'data':{'dbLinkId':_0x55da64,'total':_0x24dd5c['length'],'tables':_0x24dd5c},'message':_0x24dd5c[_0x4d7977(0x8b)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x55da64};}};
@@ -1 +1 @@
1
- const a75_0x59c353=a75_0x4c4f;(function(_0x2e50fa,_0x22fb1c){const _0x3a3876=a75_0x4c4f,_0x2c017a=_0x2e50fa();while(!![]){try{const _0x1ff4a4=parseInt(_0x3a3876(0x108))/0x1*(parseInt(_0x3a3876(0x119))/0x2)+parseInt(_0x3a3876(0x107))/0x3+-parseInt(_0x3a3876(0x11f))/0x4*(-parseInt(_0x3a3876(0x111))/0x5)+parseInt(_0x3a3876(0x106))/0x6+parseInt(_0x3a3876(0x10f))/0x7+parseInt(_0x3a3876(0x109))/0x8*(-parseInt(_0x3a3876(0x10a))/0x9)+parseInt(_0x3a3876(0x117))/0xa*(-parseInt(_0x3a3876(0x11e))/0xb);if(_0x1ff4a4===_0x22fb1c)break;else _0x2c017a['push'](_0x2c017a['shift']());}catch(_0x3dec51){_0x2c017a['push'](_0x2c017a['shift']());}}}(a75_0x286c,0xbc099));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x4c4f(_0x1f0627,_0x3c2828){_0x1f0627=_0x1f0627-0x106;const _0x286c75=a75_0x286c();let _0x4c4f5a=_0x286c75[_0x1f0627];return _0x4c4f5a;}function summarizeTestConnectResult(_0x102c04){const _0x14e681=a75_0x4c4f;if(_0x102c04===!![]||_0x102c04===![])return{'success':_0x102c04};if(_0x102c04===null||_0x102c04===undefined)return{'type':typeof _0x102c04};if(typeof _0x102c04!==_0x14e681(0x113))return{'type':typeof _0x102c04};const _0x2850c2=_0x102c04,_0x32b1ad=[_0x14e681(0x10d),_0x14e681(0x10b),_0x14e681(0x11c),_0x14e681(0x11a),'msg','data'],_0x3aafcb={};for(const _0x374115 of _0x32b1ad){if(_0x374115 in _0x2850c2)_0x3aafcb[_0x374115]=_0x2850c2[_0x374115];}return Object[_0x14e681(0x116)](_0x3aafcb)[_0x14e681(0x11d)]===0x0&&(_0x3aafcb[_0x14e681(0x116)]=Object[_0x14e681(0x116)](_0x2850c2)[_0x14e681(0x114)](0x0,0x14)),_0x3aafcb;}export const dbTest={'service':'db','command':a75_0x59c353(0x118),'description':a75_0x59c353(0x10c),'risk':a75_0x59c353(0x112),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3be35e){const _0x1f52b5=a75_0x59c353,_0x89e173=_0x3be35e[_0x1f52b5(0x10e)]('id'),_0x5c43a4=await testDbLinkConnect(_0x89e173),_0x515f96=_0x5c43a4===!![]||typeof _0x5c43a4===_0x1f52b5(0x113)&&_0x5c43a4!==null&&_0x5c43a4['success']===!![],_0x3daab6=summarizeTestConnectResult(_0x5c43a4);return{'ok':!![],'data':{'id':_0x89e173,'connected':Boolean(_0x515f96),'result':_0x3daab6},'message':_0x515f96?_0x1f52b5(0x110)+_0x89e173:_0x1f52b5(0x115)+_0x89e173+_0x1f52b5(0x11b)};}};function a75_0x286c(){const _0x49f014=['5070821ecjCoR','Connection\x20OK\x20for\x20db\x20link\x20','10055JXOolA','read','object','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','keys','119660VfDAKN','test','24xZpuAR','error','\x20(see\x20data.result)','code','length','1243wJcrqT','1268oGgiQW','6850368BZULdp','1161633tANgyU','58929iIVuol','11804944EjLGQB','9VQezFg','message','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','success','num'];a75_0x286c=function(){return _0x49f014;};return a75_0x286c();}
1
+ const a75_0x2a555f=a75_0xa1c4;(function(_0x4086bc,_0x543ff7){const _0x2102ed=a75_0xa1c4,_0x4a62b0=_0x4086bc();while(!![]){try{const _0x4a8cec=-parseInt(_0x2102ed(0x1fc))/0x1*(-parseInt(_0x2102ed(0x1e8))/0x2)+parseInt(_0x2102ed(0x1f3))/0x3*(parseInt(_0x2102ed(0x1f6))/0x4)+-parseInt(_0x2102ed(0x1e7))/0x5+parseInt(_0x2102ed(0x1fb))/0x6*(-parseInt(_0x2102ed(0x1ff))/0x7)+-parseInt(_0x2102ed(0x1ec))/0x8*(-parseInt(_0x2102ed(0x1f1))/0x9)+-parseInt(_0x2102ed(0x1ef))/0xa+parseInt(_0x2102ed(0x1ea))/0xb*(parseInt(_0x2102ed(0x1e9))/0xc);if(_0x4a8cec===_0x543ff7)break;else _0x4a62b0['push'](_0x4a62b0['shift']());}catch(_0x1b6bbd){_0x4a62b0['push'](_0x4a62b0['shift']());}}}(a75_0x2f5d,0xa6454));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x2f5d(){const _0x56f62c=['keys','24579mYsgtL','slice','2442SGXNbt','\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','116HiaoFf','message','success','object','num','7326PYIvzo','99557EIZiIL','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','2849Swztwl','read','5076650EzNOUZ','24OBVByc','3855756LmUYnl','22HMbNgF','Connection\x20check\x20finished\x20for\x20db\x20link\x20','1688fXpVpg','error','code','2438360ffFkCR'];a75_0x2f5d=function(){return _0x56f62c;};return a75_0x2f5d();}function a75_0xa1c4(_0x1e0cfd,_0x44ea3e){_0x1e0cfd=_0x1e0cfd-0x1e7;const _0x2f5d3b=a75_0x2f5d();let _0xa1c4be=_0x2f5d3b[_0x1e0cfd];return _0xa1c4be;}function summarizeTestConnectResult(_0x4ab74b){const _0x3076f2=a75_0xa1c4;if(_0x4ab74b===!![]||_0x4ab74b===![])return{'success':_0x4ab74b};if(_0x4ab74b===null||_0x4ab74b===undefined)return{'type':typeof _0x4ab74b};if(typeof _0x4ab74b!==_0x3076f2(0x1f9))return{'type':typeof _0x4ab74b};const _0x2d7a62=_0x4ab74b,_0x407d76=[_0x3076f2(0x1f8),_0x3076f2(0x1f7),_0x3076f2(0x1ee),_0x3076f2(0x1ed),'msg','data'],_0x4dd27c={};for(const _0x12597a of _0x407d76){if(_0x12597a in _0x2d7a62)_0x4dd27c[_0x12597a]=_0x2d7a62[_0x12597a];}return Object[_0x3076f2(0x1f0)](_0x4dd27c)[_0x3076f2(0x1fe)]===0x0&&(_0x4dd27c[_0x3076f2(0x1f0)]=Object[_0x3076f2(0x1f0)](_0x2d7a62)[_0x3076f2(0x1f2)](0x0,0x14)),_0x4dd27c;}export const dbTest={'service':'db','command':'test','description':a75_0x2a555f(0x1fd),'risk':a75_0x2a555f(0x200),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x242372){const _0x5a9d97=a75_0x2a555f,_0x15763a=_0x242372[_0x5a9d97(0x1fa)]('id'),_0x21eb80=await testDbLinkConnect(_0x15763a),_0x36c294=_0x21eb80===!![]||typeof _0x21eb80==='object'&&_0x21eb80!==null&&_0x21eb80['success']===!![],_0x4557ba=summarizeTestConnectResult(_0x21eb80);return{'ok':!![],'data':{'id':_0x15763a,'connected':Boolean(_0x36c294),'result':_0x4557ba},'message':_0x36c294?_0x5a9d97(0x1f5)+_0x15763a:_0x5a9d97(0x1eb)+_0x15763a+_0x5a9d97(0x1f4)};}};
@@ -1 +1 @@
1
- function a76_0x5db1(_0xc281c9,_0x33c58c){_0xc281c9=_0xc281c9-0x116;const _0x5a9c5a=a76_0x5a9c();let _0x5db126=_0x5a9c5a[_0xc281c9];return _0x5db126;}const a76_0x4565a3=a76_0x5db1;(function(_0x46d674,_0x2d5050){const _0x5905e1=a76_0x5db1,_0x3121bd=_0x46d674();while(!![]){try{const _0x164056=-parseInt(_0x5905e1(0x129))/0x1*(-parseInt(_0x5905e1(0x122))/0x2)+-parseInt(_0x5905e1(0x12a))/0x3+-parseInt(_0x5905e1(0x119))/0x4+-parseInt(_0x5905e1(0x130))/0x5*(-parseInt(_0x5905e1(0x116))/0x6)+-parseInt(_0x5905e1(0x132))/0x7*(-parseInt(_0x5905e1(0x11a))/0x8)+-parseInt(_0x5905e1(0x117))/0x9+parseInt(_0x5905e1(0x11f))/0xa*(parseInt(_0x5905e1(0x118))/0xb);if(_0x164056===_0x2d5050)break;else _0x3121bd['push'](_0x3121bd['shift']());}catch(_0x14e723){_0x3121bd['push'](_0x3121bd['shift']());}}}(a76_0x5a9c,0x4f536));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a76_0x5a9c(){const _0x59c615=['New\x20database\x20name','dbParam','New\x20description','validation','trim','1210152Ndyvup','5655483PGbVlf','191719MWyDdY','630432FOHcax','35848uINCRs','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','str','POST','string','130bRPQzk','dbName','dburl','2HYjzDt','Updated\x20db\x20link\x20','dbname','dbdesc','username','dbparam','password','215000hrRwRN','1057419fbMyJl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','num','dbDesc','New\x20username','write','15FzUCic','/smartapi/dblink/update','651BYpkMV'];a76_0x5a9c=function(){return _0x59c615;};return a76_0x5a9c();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a76_0x4565a3(0x11b),'risk':a76_0x4565a3(0x12f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x4565a3(0x124),'type':a76_0x4565a3(0x11e),'description':a76_0x4565a3(0x133)},{'name':a76_0x4565a3(0x121),'type':a76_0x4565a3(0x11e),'description':'New\x20host:port'},{'name':a76_0x4565a3(0x126),'type':a76_0x4565a3(0x11e),'description':a76_0x4565a3(0x12e)},{'name':'password','type':a76_0x4565a3(0x11e),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a76_0x4565a3(0x127),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a76_0x4565a3(0x125),'type':a76_0x4565a3(0x11e),'description':a76_0x4565a3(0x135)}],async 'validate'(_0x1f3e92){const _0xed079d=a76_0x4565a3,_0x230290=_0x1f3e92['str'](_0xed079d(0x121));if(_0x230290&&!validateDbUrl(_0x230290[_0xed079d(0x137)]()))throw CliErrors[_0xed079d(0x136)](_0xed079d(0x12b)+_0x230290+'\x22');},async 'dryRun'(_0x5ec9fe){const _0x36dbbf=a76_0x4565a3,_0x237ece=_0x5ec9fe[_0x36dbbf(0x12c)]('id'),_0x38e596=await getDbLinkInfo(_0x237ece),_0x33ce58={..._0x38e596},_0x285142=_0x5ec9fe[_0x36dbbf(0x11c)](_0x36dbbf(0x124));if(_0x285142)_0x33ce58[_0x36dbbf(0x120)]=_0x285142;const _0xc54785=_0x5ec9fe['str'](_0x36dbbf(0x121));if(_0xc54785)_0x33ce58['dbUrl']=_0xc54785[_0x36dbbf(0x137)]();const _0x407036=_0x5ec9fe[_0x36dbbf(0x11c)]('username');if(_0x407036)_0x33ce58[_0x36dbbf(0x126)]=_0x407036;const _0x5494d6=_0x5ec9fe[_0x36dbbf(0x11c)](_0x36dbbf(0x128));if(_0x5494d6)_0x33ce58[_0x36dbbf(0x128)]=_0x5494d6;const _0x4489f5=_0x5ec9fe[_0x36dbbf(0x11c)]('dbparam');if(_0x4489f5)_0x33ce58[_0x36dbbf(0x134)]=_0x4489f5;const _0x221f1f=_0x5ec9fe[_0x36dbbf(0x11c)]('dbdesc');if(_0x221f1f)_0x33ce58[_0x36dbbf(0x12d)]=_0x221f1f;const _0x543116=sanitizeDbLinkForOutput(_0x33ce58);return{'method':_0x36dbbf(0x11d),'url':_0x36dbbf(0x131),'body':_0x543116,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x1ed70e){const _0x78fb36=a76_0x4565a3,_0x2ea296=_0x1ed70e[_0x78fb36(0x12c)]('id'),_0x59f285=await getDbLinkInfo(_0x2ea296),_0x29c068={..._0x59f285},_0x181e38=_0x1ed70e[_0x78fb36(0x11c)](_0x78fb36(0x124));if(_0x181e38)_0x29c068[_0x78fb36(0x120)]=_0x181e38;const _0x2a59f6=_0x1ed70e[_0x78fb36(0x11c)](_0x78fb36(0x121));if(_0x2a59f6)_0x29c068['dbUrl']=_0x2a59f6[_0x78fb36(0x137)]();const _0x7eb8e5=_0x1ed70e[_0x78fb36(0x11c)](_0x78fb36(0x126));if(_0x7eb8e5)_0x29c068['username']=_0x7eb8e5;const _0x171d29=_0x1ed70e[_0x78fb36(0x11c)](_0x78fb36(0x128));if(_0x171d29)_0x29c068['password']=_0x171d29;const _0x557b31=_0x1ed70e[_0x78fb36(0x11c)](_0x78fb36(0x127));if(_0x557b31)_0x29c068[_0x78fb36(0x134)]=_0x557b31;const _0x1b11f8=_0x1ed70e['str'](_0x78fb36(0x125));if(_0x1b11f8)_0x29c068['dbDesc']=_0x1b11f8;const {id:_0x5764f5,entity:_0x980b85}=normalizeEntityWithIdResponse(await updateDbLink(_0x29c068));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x980b85),'message':_0x78fb36(0x123)+(_0x5764f5??_0x2ea296)};}};
1
+ const a76_0x26ab8f=a76_0x2726;(function(_0x29a409,_0x3b81b1){const _0x27302e=a76_0x2726,_0x316fc7=_0x29a409();while(!![]){try{const _0x5ee94f=-parseInt(_0x27302e(0xf0))/0x1*(parseInt(_0x27302e(0xea))/0x2)+parseInt(_0x27302e(0xf3))/0x3*(parseInt(_0x27302e(0xf9))/0x4)+-parseInt(_0x27302e(0xfe))/0x5*(parseInt(_0x27302e(0x102))/0x6)+parseInt(_0x27302e(0xe8))/0x7+parseInt(_0x27302e(0xf1))/0x8+-parseInt(_0x27302e(0xf7))/0x9+-parseInt(_0x27302e(0xe9))/0xa;if(_0x5ee94f===_0x3b81b1)break;else _0x316fc7['push'](_0x316fc7['shift']());}catch(_0x33de9c){_0x316fc7['push'](_0x316fc7['shift']());}}}(a76_0x3947,0xc3147));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a76_0x2726(_0x3f2ffd,_0xd765a5){_0x3f2ffd=_0x3f2ffd-0xe5;const _0x394749=a76_0x3947();let _0x272633=_0x394749[_0x3f2ffd];return _0x272633;}function a76_0x3947(){const _0x42f80e=['dbdesc','dbDesc','New\x20username','3744945CeAUAw','New\x20connection\x20parameter\x20string','4kWnVXk','/smartapi/dblink/update','dbname','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','205435qmQckJ','trim','New\x20host:port','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','186kxOpzj','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','password','dburl','username','Updated\x20db\x20link\x20','dbParam','update','write','3613582PMopmi','205070oqgQKr','6FqgbNr','dbUrl','num','string','str','POST','134190hfsGny','6716128DCeAbJ','dbparam','4668552bTZxNg'];a76_0x3947=function(){return _0x42f80e;};return a76_0x3947();}export const dbUpdate={'service':'db','command':a76_0x26ab8f(0xe6),'description':a76_0x26ab8f(0xfc),'risk':a76_0x26ab8f(0xe7),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x26ab8f(0xfb),'type':a76_0x26ab8f(0xed),'description':'New\x20database\x20name'},{'name':a76_0x26ab8f(0x105),'type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0x100)},{'name':'username','type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0xf6)},{'name':a76_0x26ab8f(0x104),'type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0xfd)},{'name':a76_0x26ab8f(0xf2),'type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0xf8)},{'name':a76_0x26ab8f(0xf4),'type':a76_0x26ab8f(0xed),'description':'New\x20description'}],async 'validate'(_0x55738c){const _0x59e678=a76_0x26ab8f,_0xff1c2e=_0x55738c[_0x59e678(0xee)](_0x59e678(0x105));if(_0xff1c2e&&!validateDbUrl(_0xff1c2e[_0x59e678(0xff)]()))throw CliErrors['validation'](_0x59e678(0x101)+_0xff1c2e+'\x22');},async 'dryRun'(_0x2ed955){const _0x2ec766=a76_0x26ab8f,_0x574931=_0x2ed955[_0x2ec766(0xec)]('id'),_0x2feb85=await getDbLinkInfo(_0x574931),_0x24fff3={..._0x2feb85},_0x52a347=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0xfb));if(_0x52a347)_0x24fff3['dbName']=_0x52a347;const _0x245fe9=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0x105));if(_0x245fe9)_0x24fff3[_0x2ec766(0xeb)]=_0x245fe9['trim']();const _0x1bb72a=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0x106));if(_0x1bb72a)_0x24fff3[_0x2ec766(0x106)]=_0x1bb72a;const _0x1ad5d8=_0x2ed955[_0x2ec766(0xee)]('password');if(_0x1ad5d8)_0x24fff3[_0x2ec766(0x104)]=_0x1ad5d8;const _0x10b9e9=_0x2ed955['str'](_0x2ec766(0xf2));if(_0x10b9e9)_0x24fff3[_0x2ec766(0xe5)]=_0x10b9e9;const _0x15332d=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0xf4));if(_0x15332d)_0x24fff3[_0x2ec766(0xf5)]=_0x15332d;const _0x557945=sanitizeDbLinkForOutput(_0x24fff3);return{'method':_0x2ec766(0xef),'url':_0x2ec766(0xfa),'body':_0x557945,'description':_0x2ec766(0x103)};},async 'execute'(_0x2ba641){const _0x1d58da=a76_0x26ab8f,_0x135490=_0x2ba641[_0x1d58da(0xec)]('id'),_0x171a6e=await getDbLinkInfo(_0x135490),_0x19e7fb={..._0x171a6e},_0x5e08ba=_0x2ba641[_0x1d58da(0xee)](_0x1d58da(0xfb));if(_0x5e08ba)_0x19e7fb['dbName']=_0x5e08ba;const _0x37e4e=_0x2ba641['str'](_0x1d58da(0x105));if(_0x37e4e)_0x19e7fb['dbUrl']=_0x37e4e[_0x1d58da(0xff)]();const _0x592091=_0x2ba641[_0x1d58da(0xee)]('username');if(_0x592091)_0x19e7fb['username']=_0x592091;const _0x54e13a=_0x2ba641[_0x1d58da(0xee)](_0x1d58da(0x104));if(_0x54e13a)_0x19e7fb['password']=_0x54e13a;const _0x59e66d=_0x2ba641[_0x1d58da(0xee)]('dbparam');if(_0x59e66d)_0x19e7fb[_0x1d58da(0xe5)]=_0x59e66d;const _0x58203a=_0x2ba641['str'](_0x1d58da(0xf4));if(_0x58203a)_0x19e7fb[_0x1d58da(0xf5)]=_0x58203a;const {id:_0x1fdf22,entity:_0x5249c1}=normalizeEntityWithIdResponse(await updateDbLink(_0x19e7fb));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5249c1),'message':_0x1d58da(0x107)+(_0x1fdf22??_0x135490)};}};
@@ -1 +1 @@
1
- const a77_0x39a18a=a77_0x117f;(function(_0x6197b1,_0x20e6f9){const _0x4a87f1=a77_0x117f,_0xa551fa=_0x6197b1();while(!![]){try{const _0x15ae9f=-parseInt(_0x4a87f1(0x214))/0x1*(-parseInt(_0x4a87f1(0x235))/0x2)+parseInt(_0x4a87f1(0x226))/0x3*(parseInt(_0x4a87f1(0x232))/0x4)+-parseInt(_0x4a87f1(0x236))/0x5+-parseInt(_0x4a87f1(0x221))/0x6*(-parseInt(_0x4a87f1(0x21e))/0x7)+parseInt(_0x4a87f1(0x1f3))/0x8+-parseInt(_0x4a87f1(0x1e8))/0x9*(parseInt(_0x4a87f1(0x230))/0xa)+-parseInt(_0x4a87f1(0x203))/0xb;if(_0x15ae9f===_0x20e6f9)break;else _0xa551fa['push'](_0xa551fa['shift']());}catch(_0x248dd4){_0xa551fa['push'](_0xa551fa['shift']());}}}(a77_0x264f,0x7513b));import a77_0x11f023 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';function a77_0x117f(_0x12466e,_0x35d3f8){_0x12466e=_0x12466e-0x1e6;const _0x264f4f=a77_0x264f();let _0x117fab=_0x264f4f[_0x12466e];return _0x117fab;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3217f9){const _0x3033d8=a77_0x117f,_0x4e1021=GIT_COMMIT!==_0x3033d8(0x202)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3033d8(0x1fb)](0x0,0xa)+')':VERSION,_0x218c7e=buildConfigFromFlags({}),_0x1e9085=getCookie();console[_0x3033d8(0x23f)](),console['log'](a77_0x11f023[_0x3033d8(0x239)](CLI_BIN_NAME+_0x3033d8(0x234))),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x20d)]('─'[_0x3033d8(0x1f8)](0x32))),console[_0x3033d8(0x23f)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4e1021),console[_0x3033d8(0x23f)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x3033d8(0x23f)](_0x3033d8(0x1f6)+process[_0x3033d8(0x237)]+'\x20'+process['arch']),console['log'](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x1f9))),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e)));const _0xc7e0c2=getGlobalConfigPath(),_0x57724f=getProjectConfigPath();console[_0x3033d8(0x23f)](_0x3033d8(0x1eb)+(_0xc7e0c2||a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x1f4)))),console[_0x3033d8(0x23f)](_0x3033d8(0x206)+(_0x57724f||a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x1f4)))),console[_0x3033d8(0x23f)](),console['log'](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x238))),console['log'](a77_0x11f023['gray'](_0x3033d8(0x233)['repeat'](0x1e)));const _0x491963=(_0x45a64a,_0x24cc55)=>{const _0xc996da=_0x3033d8;if(!_0x24cc55){console[_0xc996da(0x23f)]('\x20\x20'+_0x45a64a['padEnd'](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x20d)]('(no\x20file)'));return;}const _0x3a3515=inspectCliConfigJsonFile(_0x24cc55);if(_0x3a3515[_0xc996da(0x1ec)]==='ok')console[_0xc996da(0x23f)]('\x20\x20'+_0x45a64a[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x201)](_0xc996da(0x1f0)));else{if(_0x3a3515[_0xc996da(0x1ec)]===_0xc996da(0x218))console['log']('\x20\x20'+_0x45a64a[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x213)](_0xc996da(0x21f)));else _0x3a3515[_0xc996da(0x1ec)]===_0xc996da(0x1f5)?console['log']('\x20\x20'+_0x45a64a[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x20d)](_0xc996da(0x211))):(console[_0xc996da(0x23f)]('\x20\x20'+_0x45a64a['padEnd'](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x204)](_0xc996da(0x215))),console['log']('\x20\x20'+''[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x204)](_0x3a3515['message'])));}};_0x491963('Global',_0xc7e0c2),_0x491963(_0x3033d8(0x227),_0x57724f),console['log'](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)]('\x20\x20Merged\x20Config')),console[_0x3033d8(0x23f)](a77_0x11f023['gray'](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e))),console[_0x3033d8(0x23f)](_0x3033d8(0x209)+(_0x218c7e[_0x3033d8(0x23a)]||a77_0x11f023[_0x3033d8(0x204)](_0x3033d8(0x231)))),console['log'](_0x3033d8(0x1e6)+_0x218c7e[_0x3033d8(0x212)]),console['log'](_0x3033d8(0x20a)+_0x218c7e[_0x3033d8(0x217)]),console[_0x3033d8(0x23f)](_0x3033d8(0x1ed)+_0x218c7e[_0x3033d8(0x205)]),console[_0x3033d8(0x23f)](_0x3033d8(0x1fd)+(_0x218c7e[_0x3033d8(0x228)]||a77_0x11f023[_0x3033d8(0x20d)]('(none)'))),console[_0x3033d8(0x23f)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x218c7e[_0x3033d8(0x23c)]||a77_0x11f023[_0x3033d8(0x20d)]('(none)'))),console[_0x3033d8(0x23f)](_0x3033d8(0x224)+(_0x218c7e[_0x3033d8(0x21c)]||a77_0x11f023[_0x3033d8(0x20d)]('(none)'))),console[_0x3033d8(0x23f)](_0x3033d8(0x1ea)+(_0x218c7e[_0x3033d8(0x222)]||a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x1ee)+DEFAULT_CONFIG_VALUES[_0x3033d8(0x222)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x218c7e[_0x3033d8(0x20c)]??a77_0x11f023[_0x3033d8(0x20d)]('(default)'))),console[_0x3033d8(0x23f)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x218c7e[_0x3033d8(0x22a)]),console[_0x3033d8(0x23f)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x218c7e['verbose']),console[_0x3033d8(0x23f)](_0x3033d8(0x22b)+(_0x218c7e['cookie']?a77_0x11f023['green'](_0x3033d8(0x208)+_0x218c7e[_0x3033d8(0x1e9)][_0x3033d8(0x20f)]+')'):_0x1e9085?a77_0x11f023[_0x3033d8(0x201)](_0x3033d8(0x229)+_0x1e9085['length']+')'):a77_0x11f023[_0x3033d8(0x20d)]('(none)')));const _0x3bc748=Object[_0x3033d8(0x1e7)](_0x218c7e[_0x3033d8(0x20b)]);if(_0x3bc748[_0x3033d8(0x20f)]>0x0){console[_0x3033d8(0x23f)](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x1f2))),console['log'](a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x233)['repeat'](0x1e)));for(const _0x46f850 of _0x3bc748){const _0x39e502=_0x218c7e['apps'][_0x46f850],_0x893670=_0x46f850===_0x218c7e[_0x3033d8(0x228)],_0xbba866=_0x46f850===_0x218c7e[_0x3033d8(0x23c)],_0x1293d0=_0xbba866?a77_0x11f023[_0x3033d8(0x201)](_0x3033d8(0x1fa)):'',_0x53bd3e=_0x893670?_0x3033d8(0x1fe):'';console[_0x3033d8(0x23f)]('\x20\x20'+_0x46f850+_0x53bd3e+_0x1293d0),console['log'](_0x3033d8(0x1ff)+_0x39e502[_0x3033d8(0x200)]);const _0x42a352=buildAppDoctorFields(_0x39e502,{'env':_0x218c7e[_0x3033d8(0x212)],'apiDir':_0x218c7e[_0x3033d8(0x21b)][_0x3033d8(0x205)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x218c7e[_0x3033d8(0x1e9)]||_0x1e9085||undefined,'accessKey':_0x218c7e[_0x3033d8(0x220)]});console[_0x3033d8(0x23f)](_0x3033d8(0x223)+_0x42a352[_0x3033d8(0x212)][_0x3033d8(0x22c)]+'\x20\x20'+a77_0x11f023[_0x3033d8(0x20d)]('('+_0x42a352['env'][_0x3033d8(0x22d)]+')')),console[_0x3033d8(0x23f)](_0x3033d8(0x22e)+_0x42a352[_0x3033d8(0x205)][_0x3033d8(0x22c)]+'\x20\x20'+a77_0x11f023['gray']('('+_0x42a352[_0x3033d8(0x205)][_0x3033d8(0x22d)]+')'));const _0x1635ca=_0x42a352[_0x3033d8(0x1e9)]['value']?a77_0x11f023[_0x3033d8(0x201)](_0x3033d8(0x208)+_0x42a352[_0x3033d8(0x1e9)][_0x3033d8(0x22c)][_0x3033d8(0x20f)]+')'):a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x23e));console[_0x3033d8(0x23f)](_0x3033d8(0x207)+_0x1635ca+'\x20\x20'+a77_0x11f023['gray']('('+_0x42a352[_0x3033d8(0x1e9)]['source']+')'));const _0x1785bb=_0x42a352['accessKey'][_0x3033d8(0x22c)]?a77_0x11f023[_0x3033d8(0x201)]('(set,\x20length='+_0x42a352[_0x3033d8(0x220)][_0x3033d8(0x22c)]['length']+')'):a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x23e));console[_0x3033d8(0x23f)](_0x3033d8(0x23d)+_0x1785bb+'\x20\x20'+a77_0x11f023[_0x3033d8(0x20d)]('('+_0x42a352[_0x3033d8(0x220)]['source']+')'));}}console['log'](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x225))),console[_0x3033d8(0x23f)](a77_0x11f023['gray'](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e))),console[_0x3033d8(0x23f)](_0x3033d8(0x240)+getApiDomain()),console[_0x3033d8(0x23f)](_0x3033d8(0x22f)+getUserDomain()),console['log'](_0x3033d8(0x20e)+getRuntimeDomain()),console[_0x3033d8(0x23f)](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x210))),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e)));if(_0x1e9085){const _0x6c3b40=await getIsSessionValid();console[_0x3033d8(0x23f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x6c3b40?a77_0x11f023['green'](_0x3033d8(0x216)):a77_0x11f023[_0x3033d8(0x204)](_0x3033d8(0x1f7))));}else console[_0x3033d8(0x23f)](_0x3033d8(0x21a)+a77_0x11f023[_0x3033d8(0x204)](_0x3033d8(0x1fc)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x39a18a(0x1f1),'command':a77_0x39a18a(0x21d),'description':a77_0x39a18a(0x219),'risk':a77_0x39a18a(0x1ef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a77_0x264f(){const _0x1721a3=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','appcode','green','unknown','1721830DHErLT','red','apiDir','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','pageSize','gray','\x20\x20runtimeDomain:\x20\x20\x20','length','\x20\x20Auth','(missing)','env','yellow','2413zkNKvC','✗\x20Invalid\x20JSON','✓\x20Valid','locale','empty','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','explicitAppName','check','7ijdHwf','⚠\x20Empty\x20(treated\x20as\x20{})','accessKey','4657518akQyWm','format','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20API\x20Endpoints','15Cemlij','Project','defaultApp','(set\x20via\x20file,\x20length=','riskLevel','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','source','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','3590sohxkf','(not\x20set)','670856yPtURz','\x20\x20─','\x20doctor','2muGVXZ','4633535OJEPIq','platform','\x20\x20Config\x20JSON','bold','appCode','padEnd','currentApp','\x20\x20\x20\x20accessKey:\x20\x20','(none)','log','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','7947jkboSE','cookie','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','read','✓\x20Valid\x20JSON','doctor','\x20\x20Apps','2100360gpfEBb','(not\x20found)','missing','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','repeat','\x20\x20Config\x20Files','\x20←\x20current','slice','✗\x20Not\x20logged\x20in'];a77_0x264f=function(){return _0x1721a3;};return a77_0x264f();}
1
+ const a77_0x5a3960=a77_0xebee;function a77_0x3a1e(){const _0x587c7d=['\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','3875964npvJDG','5951piMJcm','\x20\x20─','✓\x20Valid\x20JSON','54432zYBjFM','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','yellow','3cuPqHn','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','read','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','version','arch','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','green','Project','\x20\x20Config\x20JSON','status','explicitAppName','7995799LsVKOh','\x20\x20Auth','apiDir','2190728AxDXhZ','5cLXUjw','\x20\x20runtimeDomain:\x20\x20\x20','verbose','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(none)','✗\x20Not\x20logged\x20in','missing','159860NXKpce','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','log','6XvXxVB','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','495ApdwYw','message','cookie','padEnd','format','length','(not\x20found)','✓\x20Valid','env','bold','raw','⚠\x20Empty\x20(treated\x20as\x20{})','\x20doctor','\x20\x20Merged\x20Config','currentApp','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20Config\x20Files','(not\x20set)','riskLevel','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','source','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20explicitAppName:\x20','apps','(set,\x20length=','1679016ZRKIvt','locale','red','accessKey','check','\x20\x20Apps','gray','doctor','unknown','defaultApp','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','920590zvJqcK','appCode','Diagnose\x20CLI\x20configuration\x20and\x20connectivity'];a77_0x3a1e=function(){return _0x587c7d;};return a77_0x3a1e();}(function(_0x102baa,_0x20a1a3){const _0x4e35c3=a77_0xebee,_0x239d83=_0x102baa();while(!![]){try{const _0x1d5e43=parseInt(_0x4e35c3(0x11e))/0x1+-parseInt(_0x4e35c3(0x140))/0x2*(parseInt(_0x4e35c3(0x12e))/0x3)+parseInt(_0x4e35c3(0x125))/0x4*(-parseInt(_0x4e35c3(0x141))/0x5)+-parseInt(_0x4e35c3(0x14c))/0x6*(parseInt(_0x4e35c3(0x13d))/0x7)+-parseInt(_0x4e35c3(0x113))/0x8+-parseInt(_0x4e35c3(0x151))/0x9*(-parseInt(_0x4e35c3(0x149))/0xa)+-parseInt(_0x4e35c3(0x126))/0xb*(-parseInt(_0x4e35c3(0x129))/0xc);if(_0x1d5e43===_0x20a1a3)break;else _0x239d83['push'](_0x239d83['shift']());}catch(_0x31efd0){_0x239d83['push'](_0x239d83['shift']());}}}(a77_0x3a1e,0xcc6bb));import a77_0x47ece5 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';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';function a77_0xebee(_0x528f1d,_0x6e2f78){_0x528f1d=_0x528f1d-0x103;const _0x3a1ef2=a77_0x3a1e();let _0xebee39=_0x3a1ef2[_0x528f1d];return _0xebee39;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0xc6c95b){const _0x1ad377=a77_0xebee,_0x5a46a4=GIT_COMMIT!==_0x1ad377(0x11b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xf1e834=buildConfigFromFlags({}),_0x363e70=getCookie();console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](CLI_BIN_NAME+_0x1ad377(0x15d))),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)]('─'[_0x1ad377(0x10f)](0x32))),console['log'](_0x1ad377(0x12b)+_0x5a46a4),console[_0x1ad377(0x14b)](_0x1ad377(0x14e)+process[_0x1ad377(0x134)]),console[_0x1ad377(0x14b)](_0x1ad377(0x136)+process['platform']+'\x20'+process[_0x1ad377(0x135)]),console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x108))),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)]('\x20\x20─'[_0x1ad377(0x10f)](0x1e)));const _0x5bbf11=getGlobalConfigPath(),_0x426c43=getProjectConfigPath();console[_0x1ad377(0x14b)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5bbf11||a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x157)))),console['log'](_0x1ad377(0x10b)+(_0x426c43||a77_0x47ece5[_0x1ad377(0x119)]('(not\x20found)'))),console['log'](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x13a))),console[_0x1ad377(0x14b)](a77_0x47ece5['gray'](_0x1ad377(0x127)['repeat'](0x1e)));const _0x2d5253=(_0x2ad753,_0x5036f5)=>{const _0x450a97=_0x1ad377;if(!_0x5036f5){console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753[_0x450a97(0x154)](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x119)]('(no\x20file)'));return;}const _0x27ba47=inspectCliConfigJsonFile(_0x5036f5);if(_0x27ba47[_0x450a97(0x13b)]==='ok')console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753[_0x450a97(0x154)](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x138)](_0x450a97(0x128)));else{if(_0x27ba47[_0x450a97(0x13b)]==='empty')console['log']('\x20\x20'+_0x2ad753[_0x450a97(0x154)](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x12d)](_0x450a97(0x15c)));else _0x27ba47[_0x450a97(0x13b)]===_0x450a97(0x148)?console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753['padEnd'](0x11)+'\x20'+a77_0x47ece5['gray']('(missing)')):(console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753['padEnd'](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x115)](_0x450a97(0x130))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x115)](_0x27ba47[_0x450a97(0x152)])));}};_0x2d5253('Global',_0x5bbf11),_0x2d5253(_0x1ad377(0x139),_0x426c43),console[_0x1ad377(0x14b)](),console['log'](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x15e))),console['log'](a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x127)[_0x1ad377(0x10f)](0x1e))),console[_0x1ad377(0x14b)](_0x1ad377(0x106)+(_0xf1e834[_0x1ad377(0x11f)]||a77_0x47ece5[_0x1ad377(0x115)](_0x1ad377(0x109)))),console[_0x1ad377(0x14b)](_0x1ad377(0x121)+_0xf1e834['env']),console[_0x1ad377(0x14b)](_0x1ad377(0x122)+_0xf1e834[_0x1ad377(0x114)]),console[_0x1ad377(0x14b)](_0x1ad377(0x14f)+_0xf1e834[_0x1ad377(0x13f)]),console[_0x1ad377(0x14b)](_0x1ad377(0x150)+(_0xf1e834[_0x1ad377(0x11c)]||a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146)))),console['log'](_0x1ad377(0x10c)+(_0xf1e834[_0x1ad377(0x103)]||a77_0x47ece5[_0x1ad377(0x119)]('(none)'))),console['log'](_0x1ad377(0x110)+(_0xf1e834[_0x1ad377(0x13c)]||a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146)))),console[_0x1ad377(0x14b)](_0x1ad377(0x12a)+(_0xf1e834[_0x1ad377(0x155)]||a77_0x47ece5[_0x1ad377(0x119)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1ad377(0x155)]+')'))),console['log'](_0x1ad377(0x10e)+(_0xf1e834[_0x1ad377(0x137)]??a77_0x47ece5['gray']('(default)'))),console[_0x1ad377(0x14b)](_0x1ad377(0x104)+_0xf1e834[_0x1ad377(0x10a)]),console[_0x1ad377(0x14b)](_0x1ad377(0x144)+_0xf1e834[_0x1ad377(0x143)]),console[_0x1ad377(0x14b)](_0x1ad377(0x132)+(_0xf1e834[_0x1ad377(0x153)]?a77_0x47ece5['green'](_0x1ad377(0x112)+_0xf1e834[_0x1ad377(0x153)][_0x1ad377(0x156)]+')'):_0x363e70?a77_0x47ece5['green'](_0x1ad377(0x124)+_0x363e70[_0x1ad377(0x156)]+')'):a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146))));const _0x49e5cd=Object['keys'](_0xf1e834[_0x1ad377(0x111)]);if(_0x49e5cd[_0x1ad377(0x156)]>0x0){console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x118))),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)]('\x20\x20─'[_0x1ad377(0x10f)](0x1e)));for(const _0x598da9 of _0x49e5cd){const _0x1a0377=_0xf1e834[_0x1ad377(0x111)][_0x598da9],_0x3f43f6=_0x598da9===_0xf1e834[_0x1ad377(0x11c)],_0x4fe776=_0x598da9===_0xf1e834[_0x1ad377(0x103)],_0x1ddd97=_0x4fe776?a77_0x47ece5[_0x1ad377(0x138)](_0x1ad377(0x107)):'',_0x17b6b0=_0x3f43f6?'\x20(default)':'';console['log']('\x20\x20'+_0x598da9+_0x17b6b0+_0x1ddd97),console['log'](_0x1ad377(0x14d)+_0x1a0377['appcode']);const _0x3515df=buildAppDoctorFields(_0x1a0377,{'env':_0xf1e834[_0x1ad377(0x159)],'apiDir':_0xf1e834[_0x1ad377(0x15b)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x1ad377(0x13f)],'cookie':_0xf1e834[_0x1ad377(0x153)]||_0x363e70||undefined,'accessKey':_0xf1e834[_0x1ad377(0x116)]});console[_0x1ad377(0x14b)](_0x1ad377(0x14a)+_0x3515df['env'][_0x1ad377(0x105)]+'\x20\x20'+a77_0x47ece5[_0x1ad377(0x119)]('('+_0x3515df[_0x1ad377(0x159)][_0x1ad377(0x10d)]+')')),console[_0x1ad377(0x14b)](_0x1ad377(0x145)+_0x3515df[_0x1ad377(0x13f)]['value']+'\x20\x20'+a77_0x47ece5['gray']('('+_0x3515df[_0x1ad377(0x13f)][_0x1ad377(0x10d)]+')'));const _0x2a4ed1=_0x3515df[_0x1ad377(0x153)]['value']?a77_0x47ece5['green'](_0x1ad377(0x112)+_0x3515df[_0x1ad377(0x153)][_0x1ad377(0x105)][_0x1ad377(0x156)]+')'):a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146));console['log'](_0x1ad377(0x12f)+_0x2a4ed1+'\x20\x20'+a77_0x47ece5[_0x1ad377(0x119)]('('+_0x3515df['cookie'][_0x1ad377(0x10d)]+')'));const _0x16e4b7=_0x3515df[_0x1ad377(0x116)][_0x1ad377(0x105)]?a77_0x47ece5[_0x1ad377(0x138)](_0x1ad377(0x112)+_0x3515df[_0x1ad377(0x116)][_0x1ad377(0x105)]['length']+')'):a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146));console[_0x1ad377(0x14b)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x16e4b7+'\x20\x20'+a77_0x47ece5['gray']('('+_0x3515df[_0x1ad377(0x116)][_0x1ad377(0x10d)]+')'));}}console[_0x1ad377(0x14b)](),console['log'](a77_0x47ece5['bold']('\x20\x20API\x20Endpoints')),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x127)['repeat'](0x1e))),console[_0x1ad377(0x14b)](_0x1ad377(0x123)+getApiDomain()),console[_0x1ad377(0x14b)](_0x1ad377(0x12c)+getUserDomain()),console[_0x1ad377(0x14b)](_0x1ad377(0x142)+getRuntimeDomain()),console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x13e))),console['log'](a77_0x47ece5['gray'](_0x1ad377(0x127)[_0x1ad377(0x10f)](0x1e)));if(_0x363e70){const _0x3bf9f7=await getIsSessionValid();console[_0x1ad377(0x14b)](_0x1ad377(0x11d)+(_0x3bf9f7?a77_0x47ece5['green'](_0x1ad377(0x158)):a77_0x47ece5[_0x1ad377(0x115)](_0x1ad377(0x133))));}else console['log'](_0x1ad377(0x11d)+a77_0x47ece5[_0x1ad377(0x115)](_0x1ad377(0x147)));return console[_0x1ad377(0x14b)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x5a3960(0x11a),'command':a77_0x5a3960(0x117),'description':a77_0x5a3960(0x120),'risk':a77_0x5a3960(0x131),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_0x576563=a78_0x5535;(function(_0x1f5957,_0x36ab61){const _0x426172=a78_0x5535,_0x571767=_0x1f5957();while(!![]){try{const _0x4021fd=-parseInt(_0x426172(0x1a5))/0x1*(-parseInt(_0x426172(0x1b9))/0x2)+parseInt(_0x426172(0x186))/0x3+parseInt(_0x426172(0x187))/0x4*(parseInt(_0x426172(0x18c))/0x5)+-parseInt(_0x426172(0x19a))/0x6*(-parseInt(_0x426172(0x189))/0x7)+-parseInt(_0x426172(0x1aa))/0x8+parseInt(_0x426172(0x18d))/0x9*(-parseInt(_0x426172(0x1a9))/0xa)+parseInt(_0x426172(0x1a7))/0xb;if(_0x4021fd===_0x36ab61)break;else _0x571767['push'](_0x571767['shift']());}catch(_0x3d5986){_0x571767['push'](_0x571767['shift']());}}}(a78_0x5c42,0xcf8ee));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 a78_0x5535(_0x9379bc,_0x11b09d){_0x9379bc=_0x9379bc-0x185;const _0x5c4227=a78_0x5c42();let _0x5535a5=_0x5c4227[_0x9379bc];return _0x5535a5;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a78_0x5c42(){const _0x56b5e7=['defaultApp','36eWaUqZ','yes','\x20\x20Config:\x20','1711200ewUOxY','26024sjVINk','App\x20code\x20to\x20initialize\x20with','51261QeIBot','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','nonInteractive','5TaxSyZ','4448853iTSjdI','some','Target\x20environment','\x20\x20Default:\x20','检测到旧配置文件,正在自动升级...\x0a','str','join','valid','log','init','string','project','message','294fNDVKJ','appcode','bool','map','\x20\x20Env:\x20','cwd','\x20config','write','env','global','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','33757sRNvKO','\x20\x20Apps:\x20','16887827tCpUwn','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','30DEAFUz','5964056nnNfgQ','Write\x20to\x20global\x20config\x20instead\x20of\x20project','appCode','Use\x20`','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','production','../../commands/project/init.js','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x0a✓\x20Successfully\x20initialized\x20','toLocaleString','Auto-confirm\x20prompts','run','boolean','custom'];a78_0x5c42=function(){return _0x56b5e7;};return a78_0x5c42();}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(_0x49b02b){return{'appCode':_0x49b02b,'appName':_0x49b02b};}function writeInitConfig(_0x3be399,_0x396de5,_0x36856a){const _0x51c070=a78_0x5535,_0xe170ec=resolveWriteConfigPath(_0x3be399),_0x1f9f64=buildCanonicalProjectConfig({},{'appCodes':_0x396de5['map'](_0x22de5b=>_0x22de5b[_0x51c070(0x1ac)]),'env':_0x36856a,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x51c070(0x1b3)]()}});writeConfigFile(_0xe170ec,_0x1f9f64);const _0x1d99ad=_0x3be399===_0x51c070(0x1a3)?_0x51c070(0x1a3):'project';console[_0x51c070(0x195)](_0x51c070(0x1b2)+_0x1d99ad+_0x51c070(0x1a0)),console[_0x51c070(0x195)](_0x51c070(0x1a6)+_0x396de5[_0x51c070(0x19d)](_0xcae6cb=>_0xcae6cb[_0x51c070(0x1ac)])[_0x51c070(0x193)](',\x20')),console[_0x51c070(0x195)](_0x51c070(0x190)+_0x1f9f64[_0x51c070(0x1b8)]),console[_0x51c070(0x195)](_0x51c070(0x19e)+_0x1f9f64[_0x51c070(0x1a2)]),console[_0x51c070(0x195)](_0x51c070(0x185)+_0xe170ec);}async function runSmartInit(_0x5ceadc){const _0x20207b=a78_0x5535,_0x148881=process[_0x20207b(0x19f)](),_0x2cee97=_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x1a3))?'global':_0x20207b(0x198),_0x431ecb=_0x5ceadc[_0x20207b(0x192)](_0x20207b(0x1a2))||_0x20207b(0x1af),_0x4d4464=_0x5ceadc[_0x20207b(0x192)](_0x20207b(0x19b))||undefined,_0x2d57f9=_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x198));if(_0x2d57f9){const {initConfig:_0x19cbe6}=await import(_0x20207b(0x1b0));return _0x19cbe6({'appcode':_0x4d4464,'env':_0x431ecb,'autoYes':_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x1ba))});}if(_0x2cee97===_0x20207b(0x198)){const _0x4d782a=existsSync(resolve(_0x148881,NEW_CONFIG_NAME)),_0x52ea6f=LEGACY_CONFIG_NAMES[_0x20207b(0x18e)](_0x51908c=>existsSync(resolve(_0x148881,_0x51908c)));if(_0x52ea6f&&!_0x4d782a)return console[_0x20207b(0x195)](_0x20207b(0x191)),upgradeApp(_0x5ceadc[_0x20207b(0x18b)],{'yes':_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x1ba))});if(_0x4d782a)throw CliErrors['validation'](_0x20207b(0x18a),_0x20207b(0x1ad)+CLI_BIN_NAME+_0x20207b(0x1a4));}if(_0x4d4464){const _0x631ec1=validateAppcode(_0x4d4464);if(!_0x631ec1[_0x20207b(0x194)])throw CliErrors['validation'](_0x631ec1[_0x20207b(0x199)]);writeInitConfig(_0x2cee97,[syntheticApp(_0x4d4464)],_0x431ecb);return;}if(_0x5ceadc[_0x20207b(0x18b)])throw CliErrors['flagMissing'](_0x20207b(0x19b),'Usage:\x20'+CLI_BIN_NAME+_0x20207b(0x1ae));const _0x3288f3=getCookie(),_0x578870=await selectMultipleApps(_0x3288f3),_0x535e82=_0x578870===_0x20207b(0x1b7)?[syntheticApp(await promptCustomAppcode())]:_0x578870;writeInitConfig(_0x2cee97,_0x535e82,_0x431ecb);}const initFlags=[{'name':a78_0x576563(0x1a3),'type':'boolean','description':a78_0x576563(0x1ab),'default':![]},{'name':a78_0x576563(0x1a2),'type':a78_0x576563(0x197),'description':a78_0x576563(0x18f),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x576563(0x19b),'type':'string','description':a78_0x576563(0x188)},{'name':a78_0x576563(0x198),'type':'boolean','description':a78_0x576563(0x1a8),'default':![]},{'name':'yes','type':a78_0x576563(0x1b6),'description':a78_0x576563(0x1b4),'default':![]}];export const initDefinitions=[{'service':a78_0x576563(0x196),'command':a78_0x576563(0x1b5),'description':a78_0x576563(0x1b1),'risk':a78_0x576563(0x1a1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x459aec){return await runSmartInit(_0x459aec),{'ok':!![]};}}];
1
+ const a78_0x8dc85a=a78_0x1f7b;(function(_0x1a58a8,_0x359fcf){const _0xb9222f=a78_0x1f7b,_0x2e8fff=_0x1a58a8();while(!![]){try{const _0x5e8fc2=-parseInt(_0xb9222f(0x19e))/0x1*(-parseInt(_0xb9222f(0x17a))/0x2)+-parseInt(_0xb9222f(0x198))/0x3+-parseInt(_0xb9222f(0x18f))/0x4+parseInt(_0xb9222f(0x188))/0x5*(-parseInt(_0xb9222f(0x186))/0x6)+-parseInt(_0xb9222f(0x1a6))/0x7*(parseInt(_0xb9222f(0x19b))/0x8)+parseInt(_0xb9222f(0x1a0))/0x9+parseInt(_0xb9222f(0x17f))/0xa;if(_0x5e8fc2===_0x359fcf)break;else _0x2e8fff['push'](_0x2e8fff['shift']());}catch(_0x365a31){_0x2e8fff['push'](_0x2e8fff['shift']());}}}(a78_0x4943,0x45af9));function a78_0x4943(){const _0x2add=['1610334vAHfmt','yes','\x20\x20Apps:\x20','Usage:\x20','global','boolean','3861242fUQhDJ','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','some','run','2rKTPOy','cwd','\x20\x20Env:\x20','project','init','12872360wlkMig','toLocaleString','Target\x20environment','defaultApp','\x0a✓\x20Successfully\x20initialized\x20','appCode','map','6fIZDvV','bool','2813380JcbqqC','env','join','validation','\x20\x20Default:\x20','log','custom','2038896GNwWyE','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','appcode','\x20\x20Config:\x20','\x20config','Auto-confirm\x20prompts','message','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','write','37098DRhJxq','str','App\x20code\x20to\x20initialize\x20with','8ZNAChO','nonInteractive','flagMissing','455643lKxkNd','production'];a78_0x4943=function(){return _0x2add;};return a78_0x4943();}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(_0x55d225){return{'appCode':_0x55d225,'appName':_0x55d225};}function writeInitConfig(_0x2186ad,_0x4213a9,_0xffde12){const _0x4676c1=a78_0x1f7b,_0x1651f3=resolveWriteConfigPath(_0x2186ad),_0x3fd727=buildCanonicalProjectConfig({},{'appCodes':_0x4213a9[_0x4676c1(0x185)](_0x2987b6=>_0x2987b6[_0x4676c1(0x184)]),'env':_0xffde12,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x4676c1(0x180)]()}});writeConfigFile(_0x1651f3,_0x3fd727);const _0x3561d1=_0x2186ad===_0x4676c1(0x1a4)?'global':'project';console[_0x4676c1(0x18d)](_0x4676c1(0x183)+_0x3561d1+_0x4676c1(0x193)),console[_0x4676c1(0x18d)](_0x4676c1(0x1a2)+_0x4213a9[_0x4676c1(0x185)](_0x5d42af=>_0x5d42af['appCode'])[_0x4676c1(0x18a)](',\x20')),console[_0x4676c1(0x18d)](_0x4676c1(0x18c)+_0x3fd727[_0x4676c1(0x182)]),console[_0x4676c1(0x18d)](_0x4676c1(0x17c)+_0x3fd727[_0x4676c1(0x189)]),console[_0x4676c1(0x18d)](_0x4676c1(0x192)+_0x1651f3);}async function runSmartInit(_0x25b52b){const _0x475248=a78_0x1f7b,_0x14e8b2=process[_0x475248(0x17b)](),_0x3f5548=_0x25b52b[_0x475248(0x187)](_0x475248(0x1a4))?_0x475248(0x1a4):_0x475248(0x17d),_0x13e6e7=_0x25b52b[_0x475248(0x199)](_0x475248(0x189))||_0x475248(0x19f),_0x567c60=_0x25b52b['str'](_0x475248(0x191))||undefined,_0x339f71=_0x25b52b[_0x475248(0x187)](_0x475248(0x17d));if(_0x339f71){const {initConfig:_0x26d5b9}=await import('../../commands/project/init.js');return _0x26d5b9({'appcode':_0x567c60,'env':_0x13e6e7,'autoYes':_0x25b52b['bool']('yes')});}if(_0x3f5548===_0x475248(0x17d)){const _0x1033c4=existsSync(resolve(_0x14e8b2,NEW_CONFIG_NAME)),_0x109566=LEGACY_CONFIG_NAMES[_0x475248(0x1a8)](_0xb19ba0=>existsSync(resolve(_0x14e8b2,_0xb19ba0)));if(_0x109566&&!_0x1033c4)return console[_0x475248(0x18d)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x25b52b[_0x475248(0x19c)],{'yes':_0x25b52b[_0x475248(0x187)](_0x475248(0x1a1))});if(_0x1033c4)throw CliErrors[_0x475248(0x18b)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`'+CLI_BIN_NAME+_0x475248(0x196));}if(_0x567c60){const _0x298a93=validateAppcode(_0x567c60);if(!_0x298a93['valid'])throw CliErrors[_0x475248(0x18b)](_0x298a93[_0x475248(0x195)]);writeInitConfig(_0x3f5548,[syntheticApp(_0x567c60)],_0x13e6e7);return;}if(_0x25b52b[_0x475248(0x19c)])throw CliErrors[_0x475248(0x19d)]('appcode',_0x475248(0x1a3)+CLI_BIN_NAME+_0x475248(0x190));const _0x2f96bc=getCookie(),_0xa08ba7=await selectMultipleApps(_0x2f96bc),_0x33a26c=_0xa08ba7===_0x475248(0x18e)?[syntheticApp(await promptCustomAppcode())]:_0xa08ba7;writeInitConfig(_0x3f5548,_0x33a26c,_0x13e6e7);}const initFlags=[{'name':a78_0x8dc85a(0x1a4),'type':a78_0x8dc85a(0x1a5),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':'env','type':'string','description':a78_0x8dc85a(0x181),'default':a78_0x8dc85a(0x19f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x8dc85a(0x191),'type':'string','description':a78_0x8dc85a(0x19a)},{'name':a78_0x8dc85a(0x17d),'type':'boolean','description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':'yes','type':a78_0x8dc85a(0x1a5),'description':a78_0x8dc85a(0x194),'default':![]}];function a78_0x1f7b(_0x2ac0c5,_0x3834c2){_0x2ac0c5=_0x2ac0c5-0x179;const _0x49435d=a78_0x4943();let _0x1f7b92=_0x49435d[_0x2ac0c5];return _0x1f7b92;}export const initDefinitions=[{'service':a78_0x8dc85a(0x17e),'command':a78_0x8dc85a(0x179),'description':a78_0x8dc85a(0x1a7),'risk':a78_0x8dc85a(0x197),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x6eeda3){return await runSmartInit(_0x6eeda3),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x246916,_0x1dcab3){const _0x164fc6=a79_0x21ce,_0x1198c8=_0x246916();while(!![]){try{const _0x1a010d=-parseInt(_0x164fc6(0xa9))/0x1*(parseInt(_0x164fc6(0xae))/0x2)+parseInt(_0x164fc6(0xa5))/0x3+parseInt(_0x164fc6(0xaa))/0x4*(parseInt(_0x164fc6(0xa8))/0x5)+-parseInt(_0x164fc6(0xa4))/0x6+-parseInt(_0x164fc6(0xad))/0x7*(-parseInt(_0x164fc6(0xab))/0x8)+-parseInt(_0x164fc6(0xa6))/0x9+-parseInt(_0x164fc6(0xac))/0xa*(-parseInt(_0x164fc6(0xa7))/0xb);if(_0x1a010d===_0x1dcab3)break;else _0x1198c8['push'](_0x1198c8['shift']());}catch(_0x47249c){_0x1198c8['push'](_0x1198c8['shift']());}}}(a79_0x3a56,0x36f79));import{issueReport}from'../../commands/issue/report.js';function a79_0x21ce(_0x3491f0,_0x3ce8c6){_0x3491f0=_0x3491f0-0xa4;const _0x3a56b8=a79_0x3a56();let _0x21ce31=_0x3a56b8[_0x3491f0];return _0x21ce31;}export const issueDefinitions=[issueReport];function a79_0x3a56(){const _0x150ea0=['127784eFTOpj','430QAyPHh','133sCgRGU','6lIXUbW','2072022crWpGc','624420hWlKNQ','1064619QbtGaM','119174LSTLtV','193480KSHGro','122036LgWsHp','8MDMrRC'];a79_0x3a56=function(){return _0x150ea0;};return a79_0x3a56();}
1
+ function a79_0x50eb(_0x4eb248,_0x430206){_0x4eb248=_0x4eb248-0xef;const _0x518b30=a79_0x518b();let _0x50eb35=_0x518b30[_0x4eb248];return _0x50eb35;}function a79_0x518b(){const _0x15f443=['777832oqoFFL','12uTNcbc','6654930ibBnoA','10876149RvEbjH','1764890tinSlV','3ANhsLi','12yFQOAa','3481819RfxHxK','2496662vTGsyT','10WYLjpm','224720kmFPwV','343wBvhcb'];a79_0x518b=function(){return _0x15f443;};return a79_0x518b();}(function(_0xd619a2,_0x5e8f04){const _0x2aeaf9=a79_0x50eb,_0x19af9f=_0xd619a2();while(!![]){try{const _0x2b8e7c=-parseInt(_0x2aeaf9(0xf5))/0x1+-parseInt(_0x2aeaf9(0xf1))/0x2*(parseInt(_0x2aeaf9(0xfa))/0x3)+-parseInt(_0x2aeaf9(0xf6))/0x4*(parseInt(_0x2aeaf9(0xf9))/0x5)+parseInt(_0x2aeaf9(0xf7))/0x6+parseInt(_0x2aeaf9(0xf4))/0x7*(parseInt(_0x2aeaf9(0xf3))/0x8)+parseInt(_0x2aeaf9(0xf8))/0x9*(parseInt(_0x2aeaf9(0xf2))/0xa)+parseInt(_0x2aeaf9(0xf0))/0xb*(parseInt(_0x2aeaf9(0xef))/0xc);if(_0x2b8e7c===_0x5e8f04)break;else _0x19af9f['push'](_0x19af9f['shift']());}catch(_0x38bdd){_0x19af9f['push'](_0x19af9f['shift']());}}}(a79_0x518b,0xe1f12));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_0x3a4b8d=a80_0x5884;(function(_0x31d882,_0x40abb7){const _0x2acd84=a80_0x5884,_0x546c0a=_0x31d882();while(!![]){try{const _0x1754ab=parseInt(_0x2acd84(0xbd))/0x1*(-parseInt(_0x2acd84(0xc0))/0x2)+-parseInt(_0x2acd84(0xa0))/0x3*(-parseInt(_0x2acd84(0xc1))/0x4)+parseInt(_0x2acd84(0xa7))/0x5*(parseInt(_0x2acd84(0xaf))/0x6)+parseInt(_0x2acd84(0xb6))/0x7+parseInt(_0x2acd84(0xa4))/0x8+parseInt(_0x2acd84(0xbb))/0x9*(parseInt(_0x2acd84(0xbe))/0xa)+parseInt(_0x2acd84(0xaa))/0xb*(-parseInt(_0x2acd84(0xb0))/0xc);if(_0x1754ab===_0x40abb7)break;else _0x546c0a['push'](_0x546c0a['shift']());}catch(_0x5e5545){_0x546c0a['push'](_0x546c0a['shift']());}}}(a80_0x1f96,0x996e8));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0x1f96(){const _0x206100=['has','=1\x20to\x20silence\x20this\x20hint.','7145586PXmLMr','trim','length','Hit\x20a\x20','config_missing','95346oRYfmJ','unknown_command','2pdjCIF','250JvEcOk','not_in_project','20806gxdOCV','219864vRQCrW','cancelled','RABETBASE_DISABLE_ISSUE_NUDGE','54xNfTwJ','validation_error','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20\x20\x20--title\x20\x22','4545704TtYHDo','command','join','440365rnbITN','message','flag_missing','143OpLcjb','slice','code','\x20bug?\x20Help\x20us\x20fix\x20it:','stderr','48eTrXhg','2675604PROHyt','service','network_error','replace'];a80_0x1f96=function(){return _0x206100;};return a80_0x1f96();}export const NUDGE_OPT_OUT_ENV=a80_0x3a4b8d(0x9f);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x3a4b8d(0x9e),'auth_required',a80_0x3a4b8d(0xba),a80_0x3a4b8d(0xbf),a80_0x3a4b8d(0xbc),a80_0x3a4b8d(0xa9),a80_0x3a4b8d(0xa1),a80_0x3a4b8d(0xb2)]),defaultWriter=_0x469752=>{const _0x2fa6ad=a80_0x3a4b8d;process[_0x2fa6ad(0xae)]['write'](_0x469752);};export function shouldNudgeForError(_0x566293,_0x245c4b){const _0x5e92ed=a80_0x3a4b8d;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x245c4b[_0x5e92ed(0xb1)]==='issue'&&_0x245c4b[_0x5e92ed(0xa5)]==='report')return![];if(_0x566293 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5e92ed(0xb4)](_0x566293[_0x5e92ed(0xac)]);return!![];}export function printIssueReportNudgeForError(_0x45b50a,_0x1024ad,_0x373692=defaultWriter){if(!shouldNudgeForError(_0x45b50a,_0x1024ad))return;const _0x1c4876=buildSuggestedTitle(_0x45b50a,_0x1024ad);_0x373692(formatNudge(_0x1c4876));}function buildSuggestedTitle(_0x2ac78d,_0x2e2d7e){const _0x55fddc=a80_0x3a4b8d,_0xb6fb2=_0x2ac78d instanceof Error?_0x2ac78d[_0x55fddc(0xa8)]:String(_0x2ac78d),_0x166ddd=_0xb6fb2[_0x55fddc(0xb3)](/[\r\n]+/g,'\x20')[_0x55fddc(0xb3)](/\s+/g,'\x20')[_0x55fddc(0xb7)]()[_0x55fddc(0xab)](0x0,0x78)[_0x55fddc(0xb3)](/"/g,'\x5c\x22'),_0x5bf871=CLI_BIN_NAME+'\x20'+_0x2e2d7e['service']+'\x20'+_0x2e2d7e[_0x55fddc(0xa5)];return _0x166ddd[_0x55fddc(0xb8)]>0x0?_0x5bf871+':\x20'+_0x166ddd:_0x5bf871;}function a80_0x5884(_0x67efac,_0x126bef){_0x67efac=_0x67efac-0x9e;const _0x1f96d6=a80_0x1f96();let _0x5884a0=_0x1f96d6[_0x67efac];return _0x5884a0;}function formatNudge(_0x26b80e){const _0x426270=a80_0x3a4b8d;return['',_0x426270(0xb9)+CLI_BIN_NAME+_0x426270(0xad),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x426270(0xa3)+_0x26b80e+'\x22\x20\x5c',_0x426270(0xa2),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x426270(0xb5),''][_0x426270(0xa6)]('\x0a');}
1
+ const a80_0x590a47=a80_0x525d;function a80_0x1ae6(){const _0x47966e=['auth_required','824516XHKPNH','RABETBASE_DISABLE_ISSUE_NUDGE','2983505WbnhNA','replace','\x20issue\x20report\x20\x5c','issue','6XdmgMc','service','2294594EHhMHt','write','command','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','validation_error','\x20\x20\x20\x20--title\x20\x22','1511828qhGEsD','334728SKdVCJ','join','unknown_command','config_missing','has','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x22\x20\x5c','flag_missing','3432645GoyECi','slice','218808CEiBMV','Hit\x20a\x20','stderr','not_in_project','=1\x20to\x20silence\x20this\x20hint.'];a80_0x1ae6=function(){return _0x47966e;};return a80_0x1ae6();}(function(_0x5310b0,_0x24316a){const _0x4dfdd1=a80_0x525d,_0x1fd0c0=_0x5310b0();while(!![]){try{const _0x3f8cf8=parseInt(_0x4dfdd1(0xe6))/0x1+parseInt(_0x4dfdd1(0xe0))/0x2+-parseInt(_0x4dfdd1(0xef))/0x3+parseInt(_0x4dfdd1(0xf1))/0x4+parseInt(_0x4dfdd1(0xda))/0x5*(-parseInt(_0x4dfdd1(0xde))/0x6)+-parseInt(_0x4dfdd1(0xd8))/0x7+-parseInt(_0x4dfdd1(0xe7))/0x8;if(_0x3f8cf8===_0x24316a)break;else _0x1fd0c0['push'](_0x1fd0c0['shift']());}catch(_0x104491){_0x1fd0c0['push'](_0x1fd0c0['shift']());}}}(a80_0x1ae6,0xc68e2));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x590a47(0xd9);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x590a47(0xd7),a80_0x590a47(0xea),a80_0x590a47(0xd5),a80_0x590a47(0xe9),a80_0x590a47(0xee),a80_0x590a47(0xe4),'network_error']),defaultWriter=_0x42577a=>{const _0xb89141=a80_0x590a47;process[_0xb89141(0xf3)][_0xb89141(0xe1)](_0x42577a);};function a80_0x525d(_0x2bbed3,_0x33026f){_0x2bbed3=_0x2bbed3-0xd5;const _0x1ae6e4=a80_0x1ae6();let _0x525dfe=_0x1ae6e4[_0x2bbed3];return _0x525dfe;}export function shouldNudgeForError(_0x4fab7e,_0x544c86){const _0x3ba525=a80_0x590a47;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x544c86[_0x3ba525(0xdf)]===_0x3ba525(0xdd)&&_0x544c86['command']==='report')return![];if(_0x4fab7e instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x3ba525(0xeb)](_0x4fab7e['code']);return!![];}export function printIssueReportNudgeForError(_0x3e1bbd,_0xae02dd,_0x3cb389=defaultWriter){if(!shouldNudgeForError(_0x3e1bbd,_0xae02dd))return;const _0x28ba89=buildSuggestedTitle(_0x3e1bbd,_0xae02dd);_0x3cb389(formatNudge(_0x28ba89));}function buildSuggestedTitle(_0x9f5bd8,_0x277f36){const _0x22447a=a80_0x590a47,_0x553618=_0x9f5bd8 instanceof Error?_0x9f5bd8['message']:String(_0x9f5bd8),_0x7f9b4f=_0x553618[_0x22447a(0xdb)](/[\r\n]+/g,'\x20')[_0x22447a(0xdb)](/\s+/g,'\x20')['trim']()[_0x22447a(0xf0)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x4990bc=CLI_BIN_NAME+'\x20'+_0x277f36[_0x22447a(0xdf)]+'\x20'+_0x277f36[_0x22447a(0xe2)];return _0x7f9b4f['length']>0x0?_0x4990bc+':\x20'+_0x7f9b4f:_0x4990bc;}function formatNudge(_0x208a25){const _0x407df6=a80_0x590a47;return['',_0x407df6(0xf2)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x407df6(0xdc),_0x407df6(0xe5)+_0x208a25+_0x407df6(0xed),_0x407df6(0xe3),_0x407df6(0xec),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x407df6(0xd6),''][_0x407df6(0xe8)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x35bb21=a81_0x1b9d;(function(_0x2368ee,_0x1a1c2e){const _0x59e1bf=a81_0x1b9d,_0x621dc2=_0x2368ee();while(!![]){try{const _0x472862=-parseInt(_0x59e1bf(0xd6))/0x1*(-parseInt(_0x59e1bf(0xda))/0x2)+parseInt(_0x59e1bf(0xd1))/0x3+-parseInt(_0x59e1bf(0xea))/0x4*(-parseInt(_0x59e1bf(0xee))/0x5)+-parseInt(_0x59e1bf(0xec))/0x6*(parseInt(_0x59e1bf(0xe7))/0x7)+parseInt(_0x59e1bf(0xfe))/0x8+-parseInt(_0x59e1bf(0x104))/0x9+parseInt(_0x59e1bf(0xe1))/0xa;if(_0x472862===_0x1a1c2e)break;else _0x621dc2['push'](_0x621dc2['shift']());}catch(_0x58cd8f){_0x621dc2['push'](_0x621dc2['shift']());}}}(a81_0x2d88,0xd1b67));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x35bb21(0xf2);function a81_0x1b9d(_0x5688ed,_0x783db7){_0x5688ed=_0x5688ed-0xc7;const _0x2d8848=a81_0x2d88();let _0x1b9da8=_0x2d8848[_0x5688ed];return _0x1b9da8;}export const issueReport={'service':a81_0x35bb21(0xfd),'command':'report','description':a81_0x35bb21(0xdd),'risk':a81_0x35bb21(0xd4),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x35bb21(0xdb),'flags':[{'name':a81_0x35bb21(0x101),'type':a81_0x35bb21(0xe4),'required':!![],'description':a81_0x35bb21(0xed)},{'name':a81_0x35bb21(0xfb),'type':a81_0x35bb21(0xe4),'description':a81_0x35bb21(0xcc)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x35bb21(0xe4),'description':a81_0x35bb21(0xc7)}],async 'validate'(_0x43b93d){const _0x260c7b=a81_0x35bb21,_0xf76c57=_0x43b93d[_0x260c7b(0xeb)](_0x260c7b(0x101))['trim'](),_0x1e4d2b=_0x43b93d[_0x260c7b(0xeb)]('description')[_0x260c7b(0xfc)](),_0x1b0b6e=_0x43b93d[_0x260c7b(0xeb)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xf76c57)throw CliErrors['flagMissing'](_0x260c7b(0x101),_0x260c7b(0x103));const _0x5be1b7=_0x1e4d2b[_0x260c7b(0xf1)]>0x0,_0x5842d1=_0x1b0b6e[_0x260c7b(0xf1)]>0x0;if(_0x5be1b7===_0x5842d1)throw CliErrors[_0x260c7b(0xcd)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x5842d1){const _0x4f6d0f=resolve(process[_0x260c7b(0xd2)](),_0x1b0b6e);if(!existsSync(_0x4f6d0f))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x4f6d0f);}},async 'dryRun'(_0x2d4e65){const _0x4cd386=a81_0x35bb21,_0x2e011e=await prepareIssueReport(_0x2d4e65);return{'method':_0x4cd386(0xe6),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2e011e[_0x4cd386(0x101)],'issue.description':_0x2e011e['description'],'issue.description_original_bytes':_0x2e011e['sanitize'][_0x4cd386(0xf9)],'issue.description_truncated':_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xfa)],'issue.description_redactions':_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xd9)],'issue.description_redaction_kinds':_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xf5)][_0x4cd386(0xf0)](',')}},'description':[_0x4cd386(0xce),'descriptionSource:\x20'+_0x2e011e[_0x4cd386(0xe9)],_0x2e011e['descriptionFilePath']?'descriptionFile:\x20'+_0x2e011e[_0x4cd386(0xef)]:null,_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xfa)]?_0x4cd386(0xf4)+_0x2e011e['sanitize']['originalBytes']+_0x4cd386(0xde):null,_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xd9)]>0x0?_0x4cd386(0xf7)+_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xd9)]+'\x20('+_0x2e011e['sanitize'][_0x4cd386(0xf5)]['join'](',\x20')+')':null][_0x4cd386(0xf3)](Boolean)[_0x4cd386(0xf0)]('\x0a')};},async 'execute'(_0x22c3c1){const _0x5b4629=a81_0x35bb21,_0x572c67=await prepareIssueReport(_0x22c3c1);try{await sendPlatformIssueCollectLog({'title':_0x572c67[_0x5b4629(0x101)],'description':_0x572c67['description'],'sanitize':{'originalBytes':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xf9)],'truncated':_0x572c67[_0x5b4629(0xca)]['truncated'],'redactionCount':_0x572c67['sanitize'][_0x5b4629(0xd9)],'redactionKinds':_0x572c67[_0x5b4629(0xca)]['redactionKinds']}});}catch(_0x54cfff){throw CliErrors[_0x5b4629(0xc9)](_0x5b4629(0xff)+(_0x54cfff instanceof Error?_0x54cfff[_0x5b4629(0xf8)]:String(_0x54cfff)),_0x5b4629(0xcb));}return{'ok':!![],'message':buildResultMessage(_0x572c67[_0x5b4629(0xca)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x5b4629(0xe0),_0x5b4629(0x100),_0x5b4629(0xe3),_0x5b4629(0xe5),_0x5b4629(0xd7)],'issue':{'title':_0x572c67[_0x5b4629(0x101)],'descriptionLength':_0x572c67[_0x5b4629(0xfb)][_0x5b4629(0xf1)],'descriptionSource':_0x572c67['descriptionSource'],..._0x572c67[_0x5b4629(0xef)]?{'descriptionFile':_0x572c67[_0x5b4629(0xef)]}:{},'sanitize':{'originalBytes':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xf9)],'truncated':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xfa)],'redactions':_0x572c67[_0x5b4629(0xca)]['redactionCount'],'redactionKinds':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xf5)]}}}};}};function a81_0x2d88(){const _0x38d5d1=['21MEWsRX','issue.description_redaction_kinds','redacted\x20','redactionCount','71086XpwfTj','compress','Issue\x20description\x20cannot\x20be\x20empty.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','\x20bytes','\x20secret(s):\x20','issue.description','1233180TLAUEW','truncated\x20from\x20','issue.description_truncated','string','issue.description_redactions','POST','35063StJnbb','inline','descriptionSource','4ROGwrX','str','1104PbdlaU','One-line\x20issue\x20summary','2631455pxJWkg','descriptionFilePath','join','length','description-file','filter','truncated:\x20original\x20','redactionKinds','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','redactions:\x20','message','originalBytes','truncated','description','trim','issue','10196064hOZAfD','Failed\x20to\x20report\x20platform\x20issue:\x20','issue.description_original_bytes','title','push','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','10389375RUGbiz','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Platform\x20issue\x20reported\x20(','apiError','sanitize','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','validation','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Platform\x20issue\x20reported','utf8','793482TkdpBY','cwd','file','write','Issue\x20description\x20file\x20is\x20empty:\x20'];a81_0x2d88=function(){return _0x38d5d1;};return a81_0x2d88();}function buildResultMessage(_0x2d1304){const _0x2122c7=a81_0x35bb21,_0x1148a1=[];return _0x2d1304['truncated']&&_0x1148a1[_0x2122c7(0x102)](_0x2122c7(0xe2)+_0x2d1304[_0x2122c7(0xf9)]+_0x2122c7(0xde)),_0x2d1304[_0x2122c7(0xd9)]>0x0&&_0x1148a1[_0x2122c7(0x102)](_0x2122c7(0xd8)+_0x2d1304[_0x2122c7(0xd9)]+_0x2122c7(0xdf)+_0x2d1304[_0x2122c7(0xf5)][_0x2122c7(0xf0)](',\x20')),_0x1148a1[_0x2122c7(0xf1)]===0x0?_0x2122c7(0xcf):_0x2122c7(0xc8)+_0x1148a1[_0x2122c7(0xf0)](';\x20')+')';}async function prepareIssueReport(_0x42a551){const _0x48a7f9=a81_0x35bb21,_0x45cdd3=_0x42a551[_0x48a7f9(0xeb)](_0x48a7f9(0x101))[_0x48a7f9(0xfc)](),_0x1bc408=_0x42a551[_0x48a7f9(0xeb)](_0x48a7f9(0xfb)),_0x22ffb4=_0x42a551[_0x48a7f9(0xeb)](DESCRIPTION_FILE_FLAG)[_0x48a7f9(0xfc)]();if(!_0x22ffb4){const _0xfdfcd9=_0x1bc408;if(!_0xfdfcd9[_0x48a7f9(0xfc)]())throw CliErrors['validation'](_0x48a7f9(0xdc),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0xd0a80d=sanitizeIssueDescription(_0xfdfcd9);return{'title':_0x45cdd3,'description':_0xd0a80d[_0x48a7f9(0xfb)],'descriptionSource':_0x48a7f9(0xe8),'sanitize':_0xd0a80d};}const _0xbdbecf=resolve(process[_0x48a7f9(0xd2)](),_0x22ffb4),_0x1b7199=await readFile(_0xbdbecf,_0x48a7f9(0xd0));if(!_0x1b7199[_0x48a7f9(0xfc)]())throw CliErrors[_0x48a7f9(0xcd)](_0x48a7f9(0xd5)+_0xbdbecf,_0x48a7f9(0xf6));const _0x5cdb15=sanitizeIssueDescription(_0x1b7199);return{'title':_0x45cdd3,'description':_0x5cdb15[_0x48a7f9(0xfb)],'descriptionSource':_0x48a7f9(0xd3),'descriptionFilePath':_0xbdbecf,'sanitize':_0x5cdb15};}
1
+ const a81_0x1bdb76=a81_0x2c41;function a81_0x2c41(_0x5055d9,_0x2d9a3c){_0x5055d9=_0x5055d9-0x165;const _0x29a859=a81_0x29a8();let _0x2c4191=_0x29a859[_0x5055d9];return _0x2c4191;}(function(_0x3e9802,_0x40b9d7){const _0x2bd0d4=a81_0x2c41,_0x75af5d=_0x3e9802();while(!![]){try{const _0x340b5d=parseInt(_0x2bd0d4(0x19c))/0x1*(-parseInt(_0x2bd0d4(0x179))/0x2)+-parseInt(_0x2bd0d4(0x16b))/0x3+parseInt(_0x2bd0d4(0x19b))/0x4+-parseInt(_0x2bd0d4(0x197))/0x5+-parseInt(_0x2bd0d4(0x186))/0x6+-parseInt(_0x2bd0d4(0x172))/0x7*(-parseInt(_0x2bd0d4(0x168))/0x8)+parseInt(_0x2bd0d4(0x191))/0x9;if(_0x340b5d===_0x40b9d7)break;else _0x75af5d['push'](_0x75af5d['shift']());}catch(_0x563a51){_0x75af5d['push'](_0x75af5d['shift']());}}}(a81_0x29a8,0xa610b));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a81_0x29a8(){const _0x56fca0=['1306893HCBpmo','descriptionFilePath','compress','truncated:\x20original\x20','Platform\x20issue\x20reported\x20(','issue.description_truncated','validation','14MIKkNy','message','One-line\x20issue\x20summary','File\x20not\x20found:\x20','trim','descriptionSource:\x20','issue.description_redactions','5344Kgqehq','issue.description_redaction_kinds','redacted\x20','truncated\x20from\x20','redactions:\x20','Platform\x20issue\x20reported','otel://','issue.title','redactionKinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','inline','apiError','filter','7717314DUmTit','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','file','\x20bytes','join','push','descriptionSource','issue.description_original_bytes','POST','originalBytes','Issue\x20description\x20cannot\x20be\x20empty.','9115947aDkBuR','utf8','string','description','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','sanitize','2750420PEGxwg','truncated','issue.description','title','3708832FRMnkK','94niwkFz','length','redactionCount','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','str','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','5052856oiZkKB','cwd','descriptionFile:\x20'];a81_0x29a8=function(){return _0x56fca0;};return a81_0x29a8();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':'issue','command':'report','description':a81_0x1bdb76(0x165),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x1bdb76(0x16d),'flags':[{'name':a81_0x1bdb76(0x19a),'type':a81_0x1bdb76(0x193),'required':!![],'description':a81_0x1bdb76(0x174)},{'name':a81_0x1bdb76(0x194),'type':a81_0x1bdb76(0x193),'description':a81_0x1bdb76(0x19f)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x1bdb76(0x193),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0xe99534){const _0x54652a=a81_0x1bdb76,_0x525e87=_0xe99534[_0x54652a(0x166)](_0x54652a(0x19a))[_0x54652a(0x176)](),_0x232abc=_0xe99534['str']('description')[_0x54652a(0x176)](),_0x2d1aee=_0xe99534[_0x54652a(0x166)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x525e87)throw CliErrors['flagMissing']('title',_0x54652a(0x167));const _0x31779a=_0x232abc['length']>0x0,_0x150e54=_0x2d1aee[_0x54652a(0x19d)]>0x0;if(_0x31779a===_0x150e54)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x150e54){const _0x39d67d=resolve(process[_0x54652a(0x169)](),_0x2d1aee);if(!existsSync(_0x39d67d))throw CliErrors[_0x54652a(0x171)](_0x54652a(0x175)+_0x39d67d);}},async 'dryRun'(_0x49552a){const _0x7a73a5=a81_0x1bdb76,_0x1462ad=await prepareIssueReport(_0x49552a);return{'method':_0x7a73a5(0x18e),'url':_0x7a73a5(0x17f)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1462ad[_0x7a73a5(0x19a)],'issue.description':_0x1462ad['description'],'issue.description_original_bytes':_0x1462ad['sanitize'][_0x7a73a5(0x18f)],'issue.description_truncated':_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x198)],'issue.description_redactions':_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x19e)],'issue.description_redaction_kinds':_0x1462ad[_0x7a73a5(0x196)]['redactionKinds'][_0x7a73a5(0x18a)](',')}},'description':[_0x7a73a5(0x182),_0x7a73a5(0x177)+_0x1462ad[_0x7a73a5(0x18c)],_0x1462ad[_0x7a73a5(0x16c)]?_0x7a73a5(0x16a)+_0x1462ad[_0x7a73a5(0x16c)]:null,_0x1462ad['sanitize'][_0x7a73a5(0x198)]?_0x7a73a5(0x16e)+_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x18f)]+_0x7a73a5(0x189):null,_0x1462ad['sanitize'][_0x7a73a5(0x19e)]>0x0?_0x7a73a5(0x17d)+_0x1462ad['sanitize'][_0x7a73a5(0x19e)]+'\x20('+_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x181)][_0x7a73a5(0x18a)](',\x20')+')':null][_0x7a73a5(0x185)](Boolean)[_0x7a73a5(0x18a)]('\x0a')};},async 'execute'(_0x2a99fd){const _0x14c95=a81_0x1bdb76,_0x5a72ab=await prepareIssueReport(_0x2a99fd);try{await sendPlatformIssueCollectLog({'title':_0x5a72ab[_0x14c95(0x19a)],'description':_0x5a72ab[_0x14c95(0x194)],'sanitize':{'originalBytes':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x18f)],'truncated':_0x5a72ab['sanitize'][_0x14c95(0x198)],'redactionCount':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x19e)],'redactionKinds':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x181)]}});}catch(_0x1b7498){throw CliErrors[_0x14c95(0x184)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x1b7498 instanceof Error?_0x1b7498[_0x14c95(0x173)]:String(_0x1b7498)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x5a72ab['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x14c95(0x180),_0x14c95(0x199),_0x14c95(0x18d),_0x14c95(0x170),_0x14c95(0x178),_0x14c95(0x17a)],'issue':{'title':_0x5a72ab['title'],'descriptionLength':_0x5a72ab[_0x14c95(0x194)]['length'],'descriptionSource':_0x5a72ab[_0x14c95(0x18c)],..._0x5a72ab['descriptionFilePath']?{'descriptionFile':_0x5a72ab[_0x14c95(0x16c)]}:{},'sanitize':{'originalBytes':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x18f)],'truncated':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x198)],'redactions':_0x5a72ab[_0x14c95(0x196)]['redactionCount'],'redactionKinds':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x181)]}}}};}};function buildResultMessage(_0x27cb75){const _0x12bbd6=a81_0x1bdb76,_0xda6916=[];return _0x27cb75[_0x12bbd6(0x198)]&&_0xda6916[_0x12bbd6(0x18b)](_0x12bbd6(0x17c)+_0x27cb75[_0x12bbd6(0x18f)]+_0x12bbd6(0x189)),_0x27cb75[_0x12bbd6(0x19e)]>0x0&&_0xda6916[_0x12bbd6(0x18b)](_0x12bbd6(0x17b)+_0x27cb75['redactionCount']+'\x20secret(s):\x20'+_0x27cb75[_0x12bbd6(0x181)][_0x12bbd6(0x18a)](',\x20')),_0xda6916[_0x12bbd6(0x19d)]===0x0?_0x12bbd6(0x17e):_0x12bbd6(0x16f)+_0xda6916[_0x12bbd6(0x18a)](';\x20')+')';}async function prepareIssueReport(_0x5ebc0a){const _0x864169=a81_0x1bdb76,_0x2856c6=_0x5ebc0a[_0x864169(0x166)](_0x864169(0x19a))['trim'](),_0x36041c=_0x5ebc0a[_0x864169(0x166)]('description'),_0x2820fe=_0x5ebc0a['str'](DESCRIPTION_FILE_FLAG)[_0x864169(0x176)]();if(!_0x2820fe){const _0x1f81be=_0x36041c;if(!_0x1f81be[_0x864169(0x176)]())throw CliErrors[_0x864169(0x171)](_0x864169(0x190),_0x864169(0x187));const _0x2c0443=sanitizeIssueDescription(_0x1f81be);return{'title':_0x2856c6,'description':_0x2c0443[_0x864169(0x194)],'descriptionSource':_0x864169(0x183),'sanitize':_0x2c0443};}const _0x3f0cc1=resolve(process[_0x864169(0x169)](),_0x2820fe),_0x905ded=await readFile(_0x3f0cc1,_0x864169(0x192));if(!_0x905ded[_0x864169(0x176)]())throw CliErrors[_0x864169(0x171)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x3f0cc1,_0x864169(0x195));const _0x48b562=sanitizeIssueDescription(_0x905ded);return{'title':_0x2856c6,'description':_0x48b562[_0x864169(0x194)],'descriptionSource':_0x864169(0x188),'descriptionFilePath':_0x3f0cc1,'sanitize':_0x48b562};}
@@ -1 +1 @@
1
- function a82_0x439b(_0x14a7cd,_0x50640f){_0x14a7cd=_0x14a7cd-0x182;const _0x756f15=a82_0x756f();let _0x439beb=_0x756f15[_0x14a7cd];return _0x439beb;}const a82_0x3af3f2=a82_0x439b;function a82_0x756f(){const _0x28c9de=['6421295JpvGxa','REDACTED:private-key','password','cookie','11447raaXVJ','toString','replace','includes','authorization','access-key','REDACTED:access-key','105GbZYmQ','pattern','11qEecaX','kind','bearer-jwt','15438294DLAqmY','byteLength','8rNBQkL','push','subarray','286CmSMah','669798PbnSKP','17732830qCqkSh','4IusIIe','REDACTED:authorization','REDACTED:bearer-jwt','utf8','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','4798197VTABxE','REDACTED:password','label','15909000pDaWYf','private-key'];a82_0x756f=function(){return _0x28c9de;};return a82_0x756f();}(function(_0x54659e,_0x50aba7){const _0x56cc0d=a82_0x439b,_0x1dafb1=_0x54659e();while(!![]){try{const _0x2a4d30=-parseInt(_0x56cc0d(0x19a))/0x1*(parseInt(_0x56cc0d(0x189))/0x2)+-parseInt(_0x56cc0d(0x191))/0x3+parseInt(_0x56cc0d(0x18c))/0x4*(parseInt(_0x56cc0d(0x196))/0x5)+-parseInt(_0x56cc0d(0x18a))/0x6*(-parseInt(_0x56cc0d(0x1a1))/0x7)+parseInt(_0x56cc0d(0x186))/0x8*(parseInt(_0x56cc0d(0x184))/0x9)+-parseInt(_0x56cc0d(0x18b))/0xa*(parseInt(_0x56cc0d(0x1a3))/0xb)+parseInt(_0x56cc0d(0x194))/0xc;if(_0x2a4d30===_0x50aba7)break;else _0x1dafb1['push'](_0x1dafb1['shift']());}catch(_0xe1a394){_0x1dafb1['push'](_0x1dafb1['shift']());}}}(a82_0x756f,0xf1c3b));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3af3f2(0x190),REDACTION_RULES=[{'kind':a82_0x3af3f2(0x199),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a82_0x3af3f2(0x19e),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3af3f2(0x18d)},{'kind':a82_0x3af3f2(0x195),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x3af3f2(0x197)},{'kind':a82_0x3af3f2(0x19f),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x3af3f2(0x1a0)},{'kind':a82_0x3af3f2(0x198),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x3af3f2(0x192)},{'kind':a82_0x3af3f2(0x183),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x3af3f2(0x18e)}];export function sanitizeIssueDescription(_0x305879){const _0x3f9734=a82_0x3af3f2,_0x2ef46a=Buffer[_0x3f9734(0x185)](_0x305879,_0x3f9734(0x18f)),_0x4ffc42=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x45ae21=_0x305879,_0x40c055=0x0;const _0x2cf97d=[];if(!_0x4ffc42)for(const _0x20e7c6 of REDACTION_RULES){let _0x38d380=0x0;_0x45ae21=_0x45ae21[_0x3f9734(0x19c)](_0x20e7c6[_0x3f9734(0x1a2)],(_0x91eb31,_0xc0df2a)=>{const _0x3a5131=_0x3f9734;_0x38d380+=0x1;const _0xb1cfab=typeof _0xc0df2a==='string'?_0xc0df2a:'';return _0xb1cfab+'['+_0x20e7c6[_0x3a5131(0x193)]+']';}),_0x38d380>0x0&&(_0x40c055+=_0x38d380,!_0x2cf97d[_0x3f9734(0x19d)](_0x20e7c6[_0x3f9734(0x182)])&&_0x2cf97d[_0x3f9734(0x187)](_0x20e7c6[_0x3f9734(0x182)]));}let _0x3ad170=![];if(Buffer[_0x3f9734(0x185)](_0x45ae21,_0x3f9734(0x18f))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3ad170=!![];const _0x576a63=Buffer[_0x3f9734(0x185)](TRUNCATION_NOTICE,_0x3f9734(0x18f)),_0x35d6b0=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x576a63);_0x45ae21=sliceUtf8Bytes(_0x45ae21,_0x35d6b0)+TRUNCATION_NOTICE;}return{'description':_0x45ae21,'originalBytes':_0x2ef46a,'truncated':_0x3ad170,'redactionCount':_0x40c055,'redactionKinds':_0x2cf97d};}function sliceUtf8Bytes(_0xc6ac21,_0x4d2ce2){const _0x4190a6=a82_0x3af3f2;if(_0x4d2ce2<=0x0)return'';const _0x26dc5d=Buffer['from'](_0xc6ac21,_0x4190a6(0x18f));if(_0x26dc5d[_0x4190a6(0x185)]<=_0x4d2ce2)return _0xc6ac21;let _0xfcc972=_0x4d2ce2;while(_0xfcc972>0x0){const _0x26f79f=_0x26dc5d[_0xfcc972];if(_0x26f79f===undefined||(_0x26f79f&0xc0)!==0x80)break;_0xfcc972-=0x1;}return _0x26dc5d[_0x4190a6(0x188)](0x0,_0xfcc972)[_0x4190a6(0x19b)](_0x4190a6(0x18f));}
1
+ const a82_0x1f06c7=a82_0x1eb7;function a82_0x1eb7(_0x571992,_0x79c711){_0x571992=_0x571992-0xbd;const _0x1d8974=a82_0x1d89();let _0x1eb743=_0x1d8974[_0x571992];return _0x1eb743;}function a82_0x1d89(){const _0xad80b4=['2000185tlkkfe','push','1359yGQmWm','bearer-jwt','pattern','kind','663058kTdjFr','1047872CRUbKE','636ucgYJl','12mfvfuG','subarray','cookie','7062240OlOafi','authorization','from','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','26842XtjGvq','REDACTED:cookie','24gvzcbd','label','91670RQgAvK','includes','password','max','replace','utf8','18aSUADY','REDACTED:bearer-jwt','byteLength','1688348CMghOu','REDACTED:private-key'];a82_0x1d89=function(){return _0xad80b4;};return a82_0x1d89();}(function(_0x52a3f4,_0x4d3619){const _0x55c911=a82_0x1eb7,_0x2a55f3=_0x52a3f4();while(!![]){try{const _0x4ccb6a=-parseInt(_0x55c911(0xd5))/0x1*(-parseInt(_0x55c911(0xd7))/0x2)+-parseInt(_0x55c911(0xce))/0x3*(parseInt(_0x55c911(0xc3))/0x4)+parseInt(_0x55c911(0xc5))/0x5*(-parseInt(_0x55c911(0xc0))/0x6)+-parseInt(_0x55c911(0xcc))/0x7+-parseInt(_0x55c911(0xd1))/0x8+-parseInt(_0x55c911(0xc7))/0x9*(-parseInt(_0x55c911(0xd9))/0xa)+-parseInt(_0x55c911(0xcb))/0xb*(-parseInt(_0x55c911(0xcd))/0xc);if(_0x4ccb6a===_0x4d3619)break;else _0x2a55f3['push'](_0x2a55f3['shift']());}catch(_0x13e2bd){_0x2a55f3['push'](_0x2a55f3['shift']());}}}(a82_0x1d89,0xef498));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x1f06c7(0xd4),REDACTION_RULES=[{'kind':a82_0x1f06c7(0xd0),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x1f06c7(0xd6)},{'kind':a82_0x1f06c7(0xd2),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x1f06c7(0xc4)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x1f06c7(0xdb),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a82_0x1f06c7(0xc8),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x1f06c7(0xc1)}];export function sanitizeIssueDescription(_0x113087){const _0x3ea1ed=a82_0x1f06c7,_0x57aaba=Buffer['byteLength'](_0x113087,_0x3ea1ed(0xbf)),_0x57c1a0=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2da65b=_0x113087,_0x5574a5=0x0;const _0x683d55=[];if(!_0x57c1a0)for(const _0x3012bb of REDACTION_RULES){let _0x680fe0=0x0;_0x2da65b=_0x2da65b[_0x3ea1ed(0xbe)](_0x3012bb[_0x3ea1ed(0xc9)],(_0x2a805a,_0x38c09d)=>{const _0x546f50=_0x3ea1ed;_0x680fe0+=0x1;const _0x13d5b8=typeof _0x38c09d==='string'?_0x38c09d:'';return _0x13d5b8+'['+_0x3012bb[_0x546f50(0xd8)]+']';}),_0x680fe0>0x0&&(_0x5574a5+=_0x680fe0,!_0x683d55[_0x3ea1ed(0xda)](_0x3012bb[_0x3ea1ed(0xca)])&&_0x683d55[_0x3ea1ed(0xc6)](_0x3012bb[_0x3ea1ed(0xca)]));}let _0x1d3c3a=![];if(Buffer[_0x3ea1ed(0xc2)](_0x2da65b,_0x3ea1ed(0xbf))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1d3c3a=!![];const _0x44b375=Buffer[_0x3ea1ed(0xc2)](TRUNCATION_NOTICE,_0x3ea1ed(0xbf)),_0x296230=Math[_0x3ea1ed(0xbd)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x44b375);_0x2da65b=sliceUtf8Bytes(_0x2da65b,_0x296230)+TRUNCATION_NOTICE;}return{'description':_0x2da65b,'originalBytes':_0x57aaba,'truncated':_0x1d3c3a,'redactionCount':_0x5574a5,'redactionKinds':_0x683d55};}function sliceUtf8Bytes(_0x45c776,_0x399b28){const _0x2d3d4f=a82_0x1f06c7;if(_0x399b28<=0x0)return'';const _0x32a84a=Buffer[_0x2d3d4f(0xd3)](_0x45c776,_0x2d3d4f(0xbf));if(_0x32a84a[_0x2d3d4f(0xc2)]<=_0x399b28)return _0x45c776;let _0x5c37bf=_0x399b28;while(_0x5c37bf>0x0){const _0x36f463=_0x32a84a[_0x5c37bf];if(_0x36f463===undefined||(_0x36f463&0xc0)!==0x80)break;_0x5c37bf-=0x1;}return _0x32a84a[_0x2d3d4f(0xcf)](0x0,_0x5c37bf)['toString'](_0x2d3d4f(0xbf));}
@@ -1 +1 @@
1
- const a83_0x3c8191=a83_0x545d;(function(_0x2e5b55,_0x2621a5){const _0x5c83ab=a83_0x545d,_0x469049=_0x2e5b55();while(!![]){try{const _0x141f9b=-parseInt(_0x5c83ab(0xa9))/0x1*(parseInt(_0x5c83ab(0x92))/0x2)+-parseInt(_0x5c83ab(0xa0))/0x3*(-parseInt(_0x5c83ab(0x95))/0x4)+-parseInt(_0x5c83ab(0x8e))/0x5*(parseInt(_0x5c83ab(0x8c))/0x6)+-parseInt(_0x5c83ab(0xa1))/0x7+parseInt(_0x5c83ab(0x8f))/0x8*(-parseInt(_0x5c83ab(0xa6))/0x9)+parseInt(_0x5c83ab(0x9c))/0xa+parseInt(_0x5c83ab(0x90))/0xb*(parseInt(_0x5c83ab(0x91))/0xc);if(_0x141f9b===_0x2621a5)break;else _0x469049['push'](_0x469049['shift']());}catch(_0x282e56){_0x469049['push'](_0x469049['shift']());}}}(a83_0x1156,0x218e1));function a83_0x1156(){const _0x48a4f1=['duration','log','873KQMhkI','83762FwLLpQ','readLogs','logs','message','details','61263gNKLoS','en-US','\x20\x20\x20Duration:\x20','6389oLEEWT','stringify','show','length','*\x20No\x20logs\x20found','203526IEzXSw','clear','10krEJLy','288lOSmYf','517QXAQyj','72132wMFBpg','30CzLoIz','View\x20command\x20history\x20logs','*\x20Logs\x20cleared','1852TsMnEd','*\x20Lovrabet\x20CLI\x20logs:\x0a','toLocaleString','forEach','clearLogs','command','level','1408860ztQTAC','Clear\x20command\x20history\x20logs'];a83_0x1156=function(){return _0x48a4f1;};return a83_0x1156();}function a83_0x545d(_0x58eb24,_0x2c30d3){_0x58eb24=_0x58eb24-0x89;const _0x115646=a83_0x1156();let _0x545db7=_0x115646[_0x58eb24];return _0x545db7;}import{logger}from'../../utils/logger.js';function printLogs(_0xf0427c){const _0x2a30bc=a83_0x545d;if(_0xf0427c['length']===0x0){console[_0x2a30bc(0x9f)](_0x2a30bc(0x8b));return;}console[_0x2a30bc(0x9f)](_0x2a30bc(0x96)),_0xf0427c[_0x2a30bc(0x98)]((_0x27d66c,_0x26c7ee)=>{const _0x15f7c9=_0x2a30bc,_0xe297a4=new Date(_0x27d66c['timestamp'])[_0x15f7c9(0x97)](_0x15f7c9(0xa7)),_0x55b111=_0x27d66c[_0x15f7c9(0x9b)]==='success'?'√':_0x27d66c[_0x15f7c9(0x9b)]==='error'?'×':_0x27d66c[_0x15f7c9(0x9b)]==='warn'?'!':'i';console[_0x15f7c9(0x9f)](_0x26c7ee+0x1+'.\x20'+_0x55b111+'\x20['+_0x27d66c[_0x15f7c9(0x9a)]+']\x20'+_0x27d66c[_0x15f7c9(0xa4)]),console[_0x15f7c9(0x9f)]('\x20\x20\x20Time:\x20'+_0xe297a4),_0x27d66c[_0x15f7c9(0x9e)]&&console[_0x15f7c9(0x9f)](_0x15f7c9(0xa8)+_0x27d66c[_0x15f7c9(0x9e)]+'ms'),_0x27d66c[_0x15f7c9(0xa5)]&&Object['keys'](_0x27d66c['details'])[_0x15f7c9(0x8a)]>0x0&&console[_0x15f7c9(0x9f)]('\x20\x20\x20Details:\x20'+JSON[_0x15f7c9(0xaa)](_0x27d66c['details'],null,0x2)),console[_0x15f7c9(0x9f)]('');});}export const logsDefinitions=[{'service':a83_0x3c8191(0xa3),'command':a83_0x3c8191(0x89),'description':a83_0x3c8191(0x93),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x214a42){const _0x24e622=a83_0x3c8191;return printLogs(logger[_0x24e622(0xa2)]()),{'ok':!![]};}},{'service':a83_0x3c8191(0xa3),'command':a83_0x3c8191(0x8d),'description':a83_0x3c8191(0x9d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xd99b0){const _0x363a70=a83_0x3c8191;return logger[_0x363a70(0x99)](),console[_0x363a70(0x9f)](_0x363a70(0x94)),{'ok':!![]};}}];
1
+ function a83_0x2207(_0x2b9e13,_0xe9ef7d){_0x2b9e13=_0x2b9e13-0x7e;const _0x3ee97f=a83_0x3ee9();let _0x220738=_0x3ee97f[_0x2b9e13];return _0x220738;}const a83_0xb5ff6d=a83_0x2207;(function(_0x15ecc6,_0x283806){const _0x52df83=a83_0x2207,_0x17c374=_0x15ecc6();while(!![]){try{const _0x460fef=parseInt(_0x52df83(0x82))/0x1*(-parseInt(_0x52df83(0x7e))/0x2)+parseInt(_0x52df83(0x80))/0x3*(parseInt(_0x52df83(0x8c))/0x4)+parseInt(_0x52df83(0x92))/0x5*(-parseInt(_0x52df83(0x89))/0x6)+parseInt(_0x52df83(0x9c))/0x7+parseInt(_0x52df83(0x81))/0x8+-parseInt(_0x52df83(0x9e))/0x9+-parseInt(_0x52df83(0x88))/0xa*(-parseInt(_0x52df83(0x94))/0xb);if(_0x460fef===_0x283806)break;else _0x17c374['push'](_0x17c374['shift']());}catch(_0x5a5f53){_0x17c374['push'](_0x17c374['shift']());}}}(a83_0x3ee9,0x97dda));import{logger}from'../../utils/logger.js';function printLogs(_0x1208d5){const _0x5a45af=a83_0x2207;if(_0x1208d5[_0x5a45af(0x84)]===0x0){console[_0x5a45af(0x8f)](_0x5a45af(0x9a));return;}console[_0x5a45af(0x8f)](_0x5a45af(0x8d)),_0x1208d5[_0x5a45af(0x9f)]((_0x5e69ef,_0x4eeb7d)=>{const _0x26d6bc=_0x5a45af,_0x54af76=new Date(_0x5e69ef['timestamp'])['toLocaleString']('en-US'),_0x47c3d5=_0x5e69ef[_0x26d6bc(0x9d)]===_0x26d6bc(0x91)?'√':_0x5e69ef['level']===_0x26d6bc(0x97)?'×':_0x5e69ef[_0x26d6bc(0x9d)]==='warn'?'!':'i';console[_0x26d6bc(0x8f)](_0x4eeb7d+0x1+'.\x20'+_0x47c3d5+'\x20['+_0x5e69ef[_0x26d6bc(0x90)]+']\x20'+_0x5e69ef[_0x26d6bc(0x99)]),console[_0x26d6bc(0x8f)](_0x26d6bc(0x8e)+_0x54af76),_0x5e69ef[_0x26d6bc(0x96)]&&console[_0x26d6bc(0x8f)](_0x26d6bc(0x85)+_0x5e69ef[_0x26d6bc(0x96)]+'ms'),_0x5e69ef[_0x26d6bc(0x86)]&&Object[_0x26d6bc(0x95)](_0x5e69ef[_0x26d6bc(0x86)])['length']>0x0&&console[_0x26d6bc(0x8f)]('\x20\x20\x20Details:\x20'+JSON[_0x26d6bc(0x98)](_0x5e69ef[_0x26d6bc(0x86)],null,0x2)),console[_0x26d6bc(0x8f)]('');});}export const logsDefinitions=[{'service':a83_0xb5ff6d(0x8b),'command':a83_0xb5ff6d(0x83),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x137bf1){const _0x4c2432=a83_0xb5ff6d;return printLogs(logger[_0x4c2432(0x93)]()),{'ok':!![]};}},{'service':'logs','command':'clear','description':a83_0xb5ff6d(0x8a),'risk':a83_0xb5ff6d(0x87),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x325c78){const _0x42880e=a83_0xb5ff6d;return logger[_0x42880e(0x9b)](),console[_0x42880e(0x8f)](_0x42880e(0x7f)),{'ok':!![]};}}];function a83_0x3ee9(){const _0x276f82=['\x20\x20\x20Duration:\x20','details','write','1230mTzqXS','54276YQovFY','Clear\x20command\x20history\x20logs','logs','12eUKsFr','*\x20Lovrabet\x20CLI\x20logs:\x0a','\x20\x20\x20Time:\x20','log','command','success','585pEgzFb','readLogs','191587StBtFu','keys','duration','error','stringify','message','*\x20No\x20logs\x20found','clearLogs','456533MdCkPp','level','7108290HTIFOe','forEach','39626bRgsqQ','*\x20Logs\x20cleared','1180713RlFnxu','1056800EZmrrw','53YyjSBx','show','length'];a83_0x3ee9=function(){return _0x276f82;};return a83_0x3ee9();}
@@ -1 +1 @@
1
- (function(_0x4e1ba9,_0x231e45){const _0x59dfb4=a84_0x116a,_0x2f2737=_0x4e1ba9();while(!![]){try{const _0x149ae8=parseInt(_0x59dfb4(0x1a5))/0x1+-parseInt(_0x59dfb4(0x1a4))/0x2*(-parseInt(_0x59dfb4(0x19f))/0x3)+-parseInt(_0x59dfb4(0x1a1))/0x4+parseInt(_0x59dfb4(0x19e))/0x5+-parseInt(_0x59dfb4(0x1a6))/0x6+parseInt(_0x59dfb4(0x1a3))/0x7*(parseInt(_0x59dfb4(0x1a0))/0x8)+-parseInt(_0x59dfb4(0x19d))/0x9*(-parseInt(_0x59dfb4(0x1a2))/0xa);if(_0x149ae8===_0x231e45)break;else _0x2f2737['push'](_0x2f2737['shift']());}catch(_0x2c8d94){_0x2f2737['push'](_0x2f2737['shift']());}}}(a84_0x2b41,0x97dee));import{menuList}from'../../commands/menu/list.js';function a84_0x2b41(){const _0x2a6021=['4GxrGjW','323183pYgzBO','4151970iSVaDC','9BDlmHp','673760pQJGLV','765330DojFPc','4172440ooLNzK','4361244sIfVRC','3931030uOFLqK','14wTxKDc'];a84_0x2b41=function(){return _0x2a6021;};return a84_0x2b41();}import{menuSync}from'../../commands/menu/sync.js';function a84_0x116a(_0x139c54,_0x59ba31){_0x139c54=_0x139c54-0x19d;const _0x2b41b5=a84_0x2b41();let _0x116a71=_0x2b41b5[_0x139c54];return _0x116a71;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ (function(_0x46da8a,_0x338774){const _0x1341f6=a84_0x4dcd,_0xe4ed7a=_0x46da8a();while(!![]){try{const _0x3eb220=-parseInt(_0x1341f6(0x10a))/0x1*(parseInt(_0x1341f6(0x102))/0x2)+-parseInt(_0x1341f6(0x104))/0x3+-parseInt(_0x1341f6(0x103))/0x4+-parseInt(_0x1341f6(0x107))/0x5+-parseInt(_0x1341f6(0x106))/0x6*(-parseInt(_0x1341f6(0x101))/0x7)+-parseInt(_0x1341f6(0x108))/0x8+-parseInt(_0x1341f6(0x109))/0x9*(-parseInt(_0x1341f6(0x105))/0xa);if(_0x3eb220===_0x338774)break;else _0xe4ed7a['push'](_0xe4ed7a['shift']());}catch(_0x50f69f){_0xe4ed7a['push'](_0xe4ed7a['shift']());}}}(a84_0x5846,0x2e722));import{menuList}from'../../commands/menu/list.js';function a84_0x4dcd(_0x49b820,_0x15a035){_0x49b820=_0x49b820-0x101;const _0x58468b=a84_0x5846();let _0x4dcd83=_0x58468b[_0x49b820];return _0x4dcd83;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a84_0x5846(){const _0x52c845=['4347846srVvMZ','1zPsKwg','14pNgMHz','500274YhZkuN','95644RskIVt','176553zCzXEr','20tGlvdl','339942eqkGYy','1823885QzPSIE','1532672pEhOqU'];a84_0x5846=function(){return _0x52c845;};return a84_0x5846();}
@@ -1 +1 @@
1
- const a85_0x4a3bc1=a85_0x146f;function a85_0x4bd0(){const _0x3827c4=['1kGyJkr','extend','252alWxSf','push','parse','isArray','15sEgTsN','1058995yasLVf','path','cookie','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','length','string','16cRZYHR','308891bjsBPU','menu','appCode','list','1140170xTnRCr','147944ZnbCYD','Fetch\x20menu\x20list','6OMQyBm','label','Found\x20','depth','map','type','verbose','\x20menu(s)','boolean','842166IVPAFc','number','isFinite','sort','children','/smartapi/menu/find?appCode=','bool','No\x20menus\x20found.','245958XGKUjY','visible','index','532060tdIovv'];a85_0x4bd0=function(){return _0x3827c4;};return a85_0x4bd0();}(function(_0x2eabff,_0x55921d){const _0x362ec9=a85_0x146f,_0x7d632e=_0x2eabff();while(!![]){try{const _0x139627=parseInt(_0x362ec9(0x1ff))/0x1*(-parseInt(_0x362ec9(0x1fb))/0x2)+-parseInt(_0x362ec9(0x205))/0x3*(-parseInt(_0x362ec9(0x1e8))/0x4)+parseInt(_0x362ec9(0x1e7))/0x5*(-parseInt(_0x362ec9(0x1ea))/0x6)+-parseInt(_0x362ec9(0x206))/0x7+parseInt(_0x362ec9(0x20c))/0x8*(-parseInt(_0x362ec9(0x1f3))/0x9)+parseInt(_0x362ec9(0x1fe))/0xa+-parseInt(_0x362ec9(0x20d))/0xb*(-parseInt(_0x362ec9(0x201))/0xc);if(_0x139627===_0x55921d)break;else _0x7d632e['push'](_0x7d632e['shift']());}catch(_0x5dca69){_0x7d632e['push'](_0x7d632e['shift']());}}}(a85_0x4bd0,0x21c97));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x4a3bc1(0x20e),'command':a85_0x4a3bc1(0x1e6),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x4a3bc1(0x1f0),'type':'boolean','description':a85_0x4a3bc1(0x209)}],async 'execute'(_0xf8ce51){const _0x188d7d=a85_0x4a3bc1,_0x25bf37=_0xf8ce51[_0x188d7d(0x1f9)](_0x188d7d(0x1f0)),_0x1d2a3e=await platformFetch(getApiDomain()+_0x188d7d(0x1f8)+_0xf8ce51[_0x188d7d(0x20f)],{'cookie':_0xf8ce51[_0x188d7d(0x208)],'label':_0x188d7d(0x1e9)}),_0x31b911=flattenMenuItems(Array['isArray'](_0x1d2a3e)?_0x1d2a3e:[],{'verbose':_0x25bf37,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x31b911[_0x188d7d(0x20a)],'menus':_0x31b911},'message':_0x31b911['length']===0x0?_0x188d7d(0x1fa):_0x188d7d(0x1ec)+_0x31b911['length']+_0x188d7d(0x1f1)};}};function a85_0x146f(_0x312ba4,_0xd65812){_0x312ba4=_0x312ba4-0x1e6;const _0x4bd0fd=a85_0x4bd0();let _0x146fb6=_0x4bd0fd[_0x312ba4];return _0x146fb6;}function flattenMenuItems(_0x5bcfc5,_0x5eebc2){const _0x39039e=a85_0x4a3bc1,_0x571ac5=sortMenuItems(_0x5bcfc5),_0x20b5d9=[];for(const _0x5c080e of _0x571ac5){_0x20b5d9[_0x39039e(0x202)](toMenuListItem(_0x5c080e,_0x5eebc2)),Array[_0x39039e(0x204)](_0x5c080e[_0x39039e(0x1f7)])&&_0x5c080e[_0x39039e(0x1f7)][_0x39039e(0x20a)]>0x0&&_0x20b5d9[_0x39039e(0x202)](...flattenMenuItems(_0x5c080e[_0x39039e(0x1f7)],{'verbose':_0x5eebc2[_0x39039e(0x1f0)],'parentId':_0x5c080e['id'],'depth':_0x5eebc2[_0x39039e(0x1ed)]+0x1}));}return _0x20b5d9;}function sortMenuItems(_0x2b5044){const _0x1edf34=a85_0x4a3bc1;return _0x2b5044[_0x1edf34(0x1ee)]((_0x5de966,_0x51eeed)=>({'item':_0x5de966,'index':_0x51eeed}))[_0x1edf34(0x1f6)]((_0x2b1b8b,_0xa1dfb5)=>{const _0x335469=_0x1edf34,_0x462a11=normalizeSort(_0x2b1b8b['item']['sort']),_0x250789=normalizeSort(_0xa1dfb5['item']['sort']);if(_0x462a11!==_0x250789)return _0x462a11-_0x250789;return _0x2b1b8b['index']-_0xa1dfb5[_0x335469(0x1fd)];})['map'](({item:_0x356ad3})=>_0x356ad3);}function toMenuListItem(_0x24f6a6,_0x40a109){const _0x4023b6=a85_0x4a3bc1,_0x1a8fad={'id':_0x24f6a6['id'],'parentId':_0x40a109['parentId'],'depth':_0x40a109[_0x4023b6(0x1ed)],'label':normalizeString(_0x24f6a6[_0x4023b6(0x1eb)]),'path':normalizeString(_0x24f6a6[_0x4023b6(0x207)]),'type':normalizeString(_0x24f6a6[_0x4023b6(0x1ef)]),'visible':typeof _0x24f6a6['visible']===_0x4023b6(0x1f2)?_0x24f6a6[_0x4023b6(0x1fc)]:null,'sort':typeof _0x24f6a6[_0x4023b6(0x1f6)]===_0x4023b6(0x1f4)&&Number[_0x4023b6(0x1f5)](_0x24f6a6['sort'])?_0x24f6a6[_0x4023b6(0x1f6)]:null,'resources':normalizeResources(_0x24f6a6[_0x4023b6(0x200)]?.['resources'])};return _0x40a109[_0x4023b6(0x1f0)]&&(_0x1a8fad[_0x4023b6(0x200)]=_0x24f6a6[_0x4023b6(0x200)]??null),_0x1a8fad;}function normalizeSort(_0x3f0985){const _0x3393a8=a85_0x4a3bc1;return typeof _0x3f0985==='number'&&Number[_0x3393a8(0x1f5)](_0x3f0985)?_0x3f0985:Number['POSITIVE_INFINITY'];}function normalizeString(_0x290eae){const _0x1d900f=a85_0x4a3bc1;return typeof _0x290eae===_0x1d900f(0x20b)?_0x290eae:'';}function normalizeResources(_0x56e0b2){const _0x2b3e3f=a85_0x4a3bc1;if(Array[_0x2b3e3f(0x204)](_0x56e0b2))return _0x56e0b2[_0x2b3e3f(0x1ee)](String);if(typeof _0x56e0b2!=='string')return[];try{const _0x5c126c=JSON[_0x2b3e3f(0x203)](_0x56e0b2);return Array[_0x2b3e3f(0x204)](_0x5c126c)?_0x5c126c[_0x2b3e3f(0x1ee)](String):[];}catch{return[];}}
1
+ const a85_0x28da0f=a85_0x5c76;(function(_0x1fa8d9,_0x4468eb){const _0x1c165b=a85_0x5c76,_0x1b3ee3=_0x1fa8d9();while(!![]){try{const _0x482b94=parseInt(_0x1c165b(0xa6))/0x1+-parseInt(_0x1c165b(0x8f))/0x2+parseInt(_0x1c165b(0xad))/0x3+-parseInt(_0x1c165b(0x94))/0x4+-parseInt(_0x1c165b(0x9e))/0x5+-parseInt(_0x1c165b(0xa8))/0x6+parseInt(_0x1c165b(0x90))/0x7*(parseInt(_0x1c165b(0x96))/0x8);if(_0x482b94===_0x4468eb)break;else _0x1b3ee3['push'](_0x1b3ee3['shift']());}catch(_0x3534ae){_0x1b3ee3['push'](_0x1b3ee3['shift']());}}}(a85_0x4528,0x1f3d2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a85_0x5c76(_0x4290f0,_0x2f87ea){_0x4290f0=_0x4290f0-0x8c;const _0x45282d=a85_0x4528();let _0x5c76c4=_0x45282d[_0x4290f0];return _0x5c76c4;}import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x28da0f(0x95),'command':a85_0x28da0f(0x9f),'description':a85_0x28da0f(0x92),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x28da0f(0x91),'type':a85_0x28da0f(0xa9),'description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x2ea087){const _0x2fa229=a85_0x28da0f,_0x26a413=_0x2ea087['bool'](_0x2fa229(0x91)),_0x35c0b1=await platformFetch(getApiDomain()+_0x2fa229(0xa4)+_0x2ea087[_0x2fa229(0x9a)],{'cookie':_0x2ea087[_0x2fa229(0x99)],'label':'Fetch\x20menu\x20list'}),_0x1f4ffa=flattenMenuItems(Array['isArray'](_0x35c0b1)?_0x35c0b1:[],{'verbose':_0x26a413,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x1f4ffa[_0x2fa229(0x93)],'menus':_0x1f4ffa},'message':_0x1f4ffa[_0x2fa229(0x93)]===0x0?_0x2fa229(0xab):'Found\x20'+_0x1f4ffa[_0x2fa229(0x93)]+'\x20menu(s)'};}};function flattenMenuItems(_0x438d3a,_0x4285e9){const _0x504f2f=a85_0x28da0f,_0x191b33=sortMenuItems(_0x438d3a),_0x1fecfe=[];for(const _0x55bec9 of _0x191b33){_0x1fecfe[_0x504f2f(0x9b)](toMenuListItem(_0x55bec9,_0x4285e9)),Array['isArray'](_0x55bec9[_0x504f2f(0x97)])&&_0x55bec9[_0x504f2f(0x97)]['length']>0x0&&_0x1fecfe[_0x504f2f(0x9b)](...flattenMenuItems(_0x55bec9[_0x504f2f(0x97)],{'verbose':_0x4285e9[_0x504f2f(0x91)],'parentId':_0x55bec9['id'],'depth':_0x4285e9['depth']+0x1}));}return _0x1fecfe;}function a85_0x4528(){const _0x221d9e=['list','POSITIVE_INFINITY','sort','isArray','path','/smartapi/menu/find?appCode=','number','90251CWvEJd','type','1096092vmfHMq','boolean','parse','No\x20menus\x20found.','isFinite','707685woEVAj','visible','map','string','item','248008igGYhq','1143240zwnaAn','verbose','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','length','219872YGqnwr','menu','16NjNjrY','children','index','cookie','appCode','push','depth','extend','815890iHMEyI'];a85_0x4528=function(){return _0x221d9e;};return a85_0x4528();}function sortMenuItems(_0x57c902){const _0x14e284=a85_0x28da0f;return _0x57c902['map']((_0x3644f7,_0x57915e)=>({'item':_0x3644f7,'index':_0x57915e}))['sort']((_0x390323,_0x309779)=>{const _0x203a77=a85_0x5c76,_0x10b56d=normalizeSort(_0x390323['item'][_0x203a77(0xa1)]),_0x26ed91=normalizeSort(_0x309779[_0x203a77(0x8e)]['sort']);if(_0x10b56d!==_0x26ed91)return _0x10b56d-_0x26ed91;return _0x390323[_0x203a77(0x98)]-_0x309779[_0x203a77(0x98)];})[_0x14e284(0x8c)](({item:_0x13324b})=>_0x13324b);}function toMenuListItem(_0x3145c9,_0x4b655e){const _0xfab68=a85_0x28da0f,_0x48c7be={'id':_0x3145c9['id'],'parentId':_0x4b655e['parentId'],'depth':_0x4b655e[_0xfab68(0x9c)],'label':normalizeString(_0x3145c9['label']),'path':normalizeString(_0x3145c9[_0xfab68(0xa3)]),'type':normalizeString(_0x3145c9[_0xfab68(0xa7)]),'visible':typeof _0x3145c9[_0xfab68(0xae)]===_0xfab68(0xa9)?_0x3145c9[_0xfab68(0xae)]:null,'sort':typeof _0x3145c9[_0xfab68(0xa1)]===_0xfab68(0xa5)&&Number[_0xfab68(0xac)](_0x3145c9[_0xfab68(0xa1)])?_0x3145c9[_0xfab68(0xa1)]:null,'resources':normalizeResources(_0x3145c9[_0xfab68(0x9d)]?.['resources'])};return _0x4b655e[_0xfab68(0x91)]&&(_0x48c7be[_0xfab68(0x9d)]=_0x3145c9[_0xfab68(0x9d)]??null),_0x48c7be;}function normalizeSort(_0x34925a){const _0x4001fd=a85_0x28da0f;return typeof _0x34925a===_0x4001fd(0xa5)&&Number[_0x4001fd(0xac)](_0x34925a)?_0x34925a:Number[_0x4001fd(0xa0)];}function normalizeString(_0x17d63d){const _0x102497=a85_0x28da0f;return typeof _0x17d63d===_0x102497(0x8d)?_0x17d63d:'';}function normalizeResources(_0x3f1da4){const _0x9cd73d=a85_0x28da0f;if(Array['isArray'](_0x3f1da4))return _0x3f1da4[_0x9cd73d(0x8c)](String);if(typeof _0x3f1da4!==_0x9cd73d(0x8d))return[];try{const _0x4996d8=JSON[_0x9cd73d(0xaa)](_0x3f1da4);return Array[_0x9cd73d(0xa2)](_0x4996d8)?_0x4996d8[_0x9cd73d(0x8c)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a86_0x55ca(_0x1eb75e,_0x3052df){_0x1eb75e=_0x1eb75e-0x7f;const _0x21556b=a86_0x2155();let _0x55caaf=_0x21556b[_0x1eb75e];return _0x55caaf;}(function(_0x4a6a37,_0x4f9253){const _0x10f188=a86_0x55ca,_0x4e20e2=_0x4a6a37();while(!![]){try{const _0x126103=-parseInt(_0x10f188(0x91))/0x1*(-parseInt(_0x10f188(0x92))/0x2)+parseInt(_0x10f188(0x82))/0x3+-parseInt(_0x10f188(0x95))/0x4+-parseInt(_0x10f188(0x8c))/0x5+parseInt(_0x10f188(0x88))/0x6*(parseInt(_0x10f188(0x7f))/0x7)+parseInt(_0x10f188(0x85))/0x8*(-parseInt(_0x10f188(0x8f))/0x9)+-parseInt(_0x10f188(0x9d))/0xa*(-parseInt(_0x10f188(0x87))/0xb);if(_0x126103===_0x4f9253)break;else _0x4e20e2['push'](_0x4e20e2['shift']());}catch(_0x3b3563){_0x4e20e2['push'](_0x4e20e2['shift']());}}}(a86_0x2155,0xcd34a));function strWidth(_0x287aa6){const _0x41904d=a86_0x55ca;let _0x3f776c=0x0;for(const _0x2e517e of _0x287aa6){_0x3f776c+=/[\u4e00-\u9fa5]/[_0x41904d(0x89)](_0x2e517e)?0x2:0x1;}return _0x3f776c;}function padRight(_0x5138bc,_0x5f157f){const _0x4d56c4=a86_0x55ca,_0x52c06a=strWidth(_0x5138bc);return _0x5138bc+'\x20'[_0x4d56c4(0x80)](Math[_0x4d56c4(0x96)](0x0,_0x5f157f-_0x52c06a));}export function renderCompareTable(_0x22acf8,_0x56d64b={}){const _0x57522d=a86_0x55ca;if(_0x22acf8['length']===0x0)return'';const _0x40b6ad=_0x56d64b[_0x57522d(0x9e)]??!![],_0x309d50=Math[_0x57522d(0x96)](0x1e,..._0x22acf8[_0x57522d(0x83)](_0x475a4f=>strWidth(_0x475a4f['label']))),_0x324c62=0x4,_0x1e668b=[],_0x4f4404='\x20\x20'+padRight(_0x57522d(0x81),_0x309d50),_0xa76cbd=padRight(_0x57522d(0x90),_0x324c62),_0x4f55b5=_0x40b6ad?'\x20\x20'+padRight(_0x57522d(0x9c),_0x324c62):'';_0x1e668b[_0x57522d(0x93)](_0x4f4404+'\x20\x20'+_0xa76cbd+(_0x40b6ad?_0x4f55b5:'')),_0x1e668b[_0x57522d(0x93)]('\x20\x20'+'─'[_0x57522d(0x80)](_0x309d50)+'\x20\x20'+'─'[_0x57522d(0x80)](_0x324c62)+(_0x40b6ad?'\x20\x20'+'─'[_0x57522d(0x80)](_0x324c62):''));for(const _0x59cb06 of _0x22acf8){const _0x56e848=padRight(_0x59cb06[_0x57522d(0x9a)],_0x309d50),_0x320a10=_0x59cb06['local']?'✓':'✗',_0x19ee16=padRight(_0x320a10,_0x324c62);let _0x4b3720='\x20\x20'+_0x56e848+'\x20\x20'+_0x19ee16;if(_0x40b6ad){const _0x537409=_0x59cb06[_0x57522d(0x8e)]?'✓':'✗';_0x4b3720+='\x20\x20'+padRight(_0x537409,_0x324c62);}_0x1e668b[_0x57522d(0x93)](_0x4b3720);}return _0x1e668b[_0x57522d(0x84)]('\x0a');}export function renderSyncSummary(_0x52730a,_0x48e949){const _0x19ddac=a86_0x55ca;if(_0x52730a[_0x19ddac(0x94)]===0x0)return _0x48e949?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x19ddac(0x97);const _0x1d53c5=['\x20\x20'+_0x52730a[_0x19ddac(0x94)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0xab2ffb of _0x52730a){_0x1d53c5[_0x19ddac(0x93)](_0x19ddac(0x99)+_0xab2ffb['label']+'\x20('+_0xab2ffb[_0x19ddac(0x8a)]+')');}return _0x1d53c5['join']('\x0a');}export function renderUpdateSummary(_0x39c414,_0x2f79f0){const _0x4669f5=a86_0x55ca;if(_0x39c414[_0x4669f5(0x94)]===0x0)return _0x4669f5(0x8b);const _0x59cc63=['\x20\x20'+_0x39c414[_0x4669f5(0x94)]+_0x4669f5(0x8d),'\x20\x20\x20\x20JS:\x20\x20'+(_0x2f79f0[0x0]??_0x4669f5(0x98)),_0x4669f5(0x86)+(_0x2f79f0[0x1]??_0x4669f5(0x98)),'',_0x4669f5(0x9b)+_0x39c414[_0x4669f5(0x84)](',\x20')];return _0x59cc63['join']('\x0a');}function a86_0x2155(){const _0x203ee4=['10683PPkiSE','Local','8911FqZWFW','122iyTUJW','push','length','2886200TIqcVh','max','\x20\x20No\x20pages\x20to\x20sync.','(unchanged)','\x20\x20\x20\x20•\x20','label','\x20\x20Affected\x20menus:\x20','Platform','4135250gqWZcJ','showOnline','469CmzBmL','repeat','Menu\x20Name','757572TYDxkC','map','join','11256RihYrP','\x20\x20\x20\x20CSS:\x20','44VRmZzQ','75234jAFAuP','test','path','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','290635BjpmsL','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','online'];a86_0x2155=function(){return _0x203ee4;};return a86_0x2155();}
1
+ (function(_0x1a0b5e,_0x502071){const _0x5eb8c1=a86_0xbd37,_0x29a651=_0x1a0b5e();while(!![]){try{const _0xa358af=parseInt(_0x5eb8c1(0x124))/0x1+-parseInt(_0x5eb8c1(0x114))/0x2+-parseInt(_0x5eb8c1(0x125))/0x3+parseInt(_0x5eb8c1(0x126))/0x4*(-parseInt(_0x5eb8c1(0x12c))/0x5)+parseInt(_0x5eb8c1(0x120))/0x6*(parseInt(_0x5eb8c1(0x119))/0x7)+-parseInt(_0x5eb8c1(0x112))/0x8+-parseInt(_0x5eb8c1(0x12a))/0x9*(-parseInt(_0x5eb8c1(0x11b))/0xa);if(_0xa358af===_0x502071)break;else _0x29a651['push'](_0x29a651['shift']());}catch(_0x307e26){_0x29a651['push'](_0x29a651['shift']());}}}(a86_0xeca6,0x3beff));function strWidth(_0x584f57){const _0x3e3efe=a86_0xbd37;let _0x462370=0x0;for(const _0x4c2d2f of _0x584f57){_0x462370+=/[\u4e00-\u9fa5]/[_0x3e3efe(0x117)](_0x4c2d2f)?0x2:0x1;}return _0x462370;}function padRight(_0x3cb008,_0x3d1aaf){const _0x53bba6=a86_0xbd37,_0x310364=strWidth(_0x3cb008);return _0x3cb008+'\x20'[_0x53bba6(0x122)](Math[_0x53bba6(0x113)](0x0,_0x3d1aaf-_0x310364));}function a86_0xeca6(){const _0x5bd15e=['\x20\x20No\x20pages\x20to\x20sync.','test','label','35SeVLRc','push','6189310VFetoW','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','(unchanged)','online','\x20\x20\x20\x20CSS:\x20','373692NCYDzD','length','repeat','Platform','351289DfDiwb','1335540sOMFLY','28FtroAS','join','showOnline','local','9yXoptw','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','88925rscDFT','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20•\x20','path','map','\x20\x20\x20\x20JS:\x20\x20','2856984BbNlyX','max','218658tLrFVi','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.'];a86_0xeca6=function(){return _0x5bd15e;};return a86_0xeca6();}function a86_0xbd37(_0x3008e8,_0xa1c84c){_0x3008e8=_0x3008e8-0x111;const _0xeca625=a86_0xeca6();let _0xbd3751=_0xeca625[_0x3008e8];return _0xbd3751;}export function renderCompareTable(_0x4b2816,_0x1e3a96={}){const _0x9ea13a=a86_0xbd37;if(_0x4b2816[_0x9ea13a(0x121)]===0x0)return'';const _0x3aae34=_0x1e3a96[_0x9ea13a(0x128)]??!![],_0x235cdf=Math[_0x9ea13a(0x113)](0x1e,..._0x4b2816[_0x9ea13a(0x131)](_0x4bdf43=>strWidth(_0x4bdf43[_0x9ea13a(0x118)]))),_0x321cd7=0x4,_0x1ba62d=[],_0x45a6ac='\x20\x20'+padRight('Menu\x20Name',_0x235cdf),_0x46eba0=padRight('Local',_0x321cd7),_0x4145a2=_0x3aae34?'\x20\x20'+padRight(_0x9ea13a(0x123),_0x321cd7):'';_0x1ba62d[_0x9ea13a(0x11a)](_0x45a6ac+'\x20\x20'+_0x46eba0+(_0x3aae34?_0x4145a2:'')),_0x1ba62d['push']('\x20\x20'+'─'[_0x9ea13a(0x122)](_0x235cdf)+'\x20\x20'+'─'['repeat'](_0x321cd7)+(_0x3aae34?'\x20\x20'+'─'[_0x9ea13a(0x122)](_0x321cd7):''));for(const _0x45ede5 of _0x4b2816){const _0x26f771=padRight(_0x45ede5[_0x9ea13a(0x118)],_0x235cdf),_0x5c15a1=_0x45ede5[_0x9ea13a(0x129)]?'✓':'✗',_0x53e828=padRight(_0x5c15a1,_0x321cd7);let _0x34abb5='\x20\x20'+_0x26f771+'\x20\x20'+_0x53e828;if(_0x3aae34){const _0xd32fcd=_0x45ede5[_0x9ea13a(0x11e)]?'✓':'✗';_0x34abb5+='\x20\x20'+padRight(_0xd32fcd,_0x321cd7);}_0x1ba62d[_0x9ea13a(0x11a)](_0x34abb5);}return _0x1ba62d[_0x9ea13a(0x127)]('\x0a');}export function renderSyncSummary(_0x4e5005,_0x27626e){const _0x5ee3ba=a86_0xbd37;if(_0x4e5005[_0x5ee3ba(0x121)]===0x0)return _0x27626e?_0x5ee3ba(0x115):_0x5ee3ba(0x116);const _0x201843=['\x20\x20'+_0x4e5005[_0x5ee3ba(0x121)]+_0x5ee3ba(0x11c)];for(const _0x97c268 of _0x4e5005){_0x201843[_0x5ee3ba(0x11a)](_0x5ee3ba(0x12f)+_0x97c268['label']+'\x20('+_0x97c268[_0x5ee3ba(0x130)]+')');}return _0x201843[_0x5ee3ba(0x127)]('\x0a');}export function renderUpdateSummary(_0x4cc9d6,_0x16dbe7){const _0x2bdb02=a86_0xbd37;if(_0x4cc9d6['length']===0x0)return _0x2bdb02(0x12b);const _0xadc7bb=['\x20\x20'+_0x4cc9d6[_0x2bdb02(0x121)]+_0x2bdb02(0x12d),_0x2bdb02(0x111)+(_0x16dbe7[0x0]??_0x2bdb02(0x11d)),_0x2bdb02(0x11f)+(_0x16dbe7[0x1]??_0x2bdb02(0x11d)),'',_0x2bdb02(0x12e)+_0x4cc9d6['join'](',\x20')];return _0xadc7bb[_0x2bdb02(0x127)]('\x0a');}
@@ -1 +1 @@
1
- function a87_0x1950(){var _0xafa7d6=['291982qBNrNy','1MtIyYB','861132xiBCMq','173964KVEoOI','20997FFghTo','12040STfMUv','4nPZHtd','3619exQZcW','309288rguNFA','785035zSLDtI','176SPMylK'];a87_0x1950=function(){return _0xafa7d6;};return a87_0x1950();}(function(_0x3c4b2b,_0x518148){var _0x4fe022=a87_0x29fe,_0x524c2c=_0x3c4b2b();while(!![]){try{var _0x542462=parseInt(_0x4fe022(0x155))/0x1*(parseInt(_0x4fe022(0x154))/0x2)+parseInt(_0x4fe022(0x157))/0x3+-parseInt(_0x4fe022(0x15a))/0x4*(-parseInt(_0x4fe022(0x15d))/0x5)+parseInt(_0x4fe022(0x156))/0x6+parseInt(_0x4fe022(0x15c))/0x7+parseInt(_0x4fe022(0x153))/0x8*(-parseInt(_0x4fe022(0x158))/0x9)+-parseInt(_0x4fe022(0x159))/0xa*(parseInt(_0x4fe022(0x15b))/0xb);if(_0x542462===_0x518148)break;else _0x524c2c['push'](_0x524c2c['shift']());}catch(_0x4fd106){_0x524c2c['push'](_0x524c2c['shift']());}}}(a87_0x1950,0x18b82));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 a87_0x29fe(_0x358574,_0x266149){_0x358574=_0x358574-0x153;var _0x195087=a87_0x1950();var _0x29fefa=_0x195087[_0x358574];return _0x29fefa;}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(_0x9be5cc,_0x1e3018){var _0x5bd7d9=a87_0xef07,_0x3a5aaa=_0x9be5cc();while(!![]){try{var _0x1de8a0=-parseInt(_0x5bd7d9(0x1ea))/0x1*(parseInt(_0x5bd7d9(0x1f0))/0x2)+parseInt(_0x5bd7d9(0x1ee))/0x3+-parseInt(_0x5bd7d9(0x1eb))/0x4+parseInt(_0x5bd7d9(0x1f1))/0x5+parseInt(_0x5bd7d9(0x1e9))/0x6*(parseInt(_0x5bd7d9(0x1ec))/0x7)+parseInt(_0x5bd7d9(0x1ed))/0x8+-parseInt(_0x5bd7d9(0x1ef))/0x9*(parseInt(_0x5bd7d9(0x1f2))/0xa);if(_0x1de8a0===_0x1e3018)break;else _0x3a5aaa['push'](_0x3a5aaa['shift']());}catch(_0x954105){_0x3a5aaa['push'](_0x3a5aaa['shift']());}}}(a87_0x5249,0x9e7ce));function a87_0xef07(_0x326f03,_0x30d2f2){_0x326f03=_0x326f03-0x1e9;var _0x524910=a87_0x5249();var _0xef0733=_0x524910[_0x326f03];return _0xef0733;}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a87_0x5249(){var _0x286522=['301655KYClwy','5270FVbfSl','25614chKrsj','19cdODvV','984972efVnXe','1757MpRwsH','2983816OAuqho','3172719ZuiiBG','27963AfxBvz','3116PRMgTD'];a87_0x5249=function(){return _0x286522;};return a87_0x5249();}export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x40962c,_0x27bc71){const _0xa3cb5c=a88_0x23bf,_0x25f203=_0x40962c();while(!![]){try{const _0x1f8af8=-parseInt(_0xa3cb5c(0x19f))/0x1*(-parseInt(_0xa3cb5c(0x18a))/0x2)+parseInt(_0xa3cb5c(0x194))/0x3+-parseInt(_0xa3cb5c(0x196))/0x4*(parseInt(_0xa3cb5c(0x1a1))/0x5)+parseInt(_0xa3cb5c(0x190))/0x6+-parseInt(_0xa3cb5c(0x1ac))/0x7+-parseInt(_0xa3cb5c(0x1b0))/0x8*(parseInt(_0xa3cb5c(0x1ae))/0x9)+parseInt(_0xa3cb5c(0x1a0))/0xa;if(_0x1f8af8===_0x27bc71)break;else _0x25f203['push'](_0x25f203['shift']());}catch(_0x29f7ba){_0x25f203['push'](_0x25f203['shift']());}}}(a88_0x2eb8,0x35090));import a88_0x5e25de from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a88_0x23bf(_0x37d824,_0x292968){_0x37d824=_0x37d824-0x188;const _0x2eb8cc=a88_0x2eb8();let _0x23bf07=_0x2eb8cc[_0x37d824];return _0x23bf07;}import a88_0x13064d from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x28dd1e){const _0x552f75=a88_0x23bf;return _0x28dd1e[_0x552f75(0x19c)](_0x4c76e1=>{const _0x388021=_0x552f75;if(_0x4c76e1?.[_0x388021(0x19a)]==='ExitPromptError')throw CliErrors['cancelled']('Cancelled.');throw _0x4c76e1;});}export function startSpinner(_0x4cee10){const _0x204c68=a88_0x23bf;return a88_0x13064d({'text':_0x4cee10,'color':_0x204c68(0x1af)})[_0x204c68(0x1ad)]();}export function stopSpinner(_0x2b188f,_0x321146,_0x18524d){const _0x2670e2=a88_0x23bf;_0x18524d?_0x2b188f[_0x2670e2(0x193)](_0x321146):_0x2b188f['fail'](_0x321146);}function a88_0x2eb8(){const _0x1427a0=['227412UeRNZv','cyan','8CTPALX','stdin','green','226168cHxADY','includes','[already\x20on\x20platform]','trim','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','red','1037574TUgyzP','label','CSS\x20URL\x20check\x20failed','succeed','232560NnpsYl','CSS\x20URL\x20checked','3524AruABC','\x20\x20Checking\x20CSS\x20URL\x20reachability...','filter','error','name','\x20\x20Checking\x20JS\x20URL\x20reachability...','catch','JS\x20URL\x20check\x20failed','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','3OUItXQ','3105580uNkhOE','2175CLqETQ','map','cancelled','test','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','Cancelled.','has','JS\x20URL\x20checked','length','path','\x20\x20JS\x20URL:','1921668SQWPIu','start'];a88_0x2eb8=function(){return _0x1427a0;};return a88_0x2eb8();}export async function askConfirm(_0x113736){return onCancel(confirm({'message':_0x113736,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3df707){const _0x14912c=a88_0x23bf;while(!![]){const _0x14b15b=await onCancel(input({'message':_0x14912c(0x1ab),'default':_0x3df707,'theme':{'prefix':''}}));if(_0x14b15b[_0x14912c(0x18d)]()==='')throw CliErrors['cancelled'](_0x14912c(0x1a6));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x14b15b[_0x14912c(0x18d)]())){console[_0x14912c(0x199)](a88_0x5e25de['red'](_0x14912c(0x18e)));continue;}const _0x7daf4a=startSpinner(_0x14912c(0x19b));try{const _0x1edecf=await isUrlReachable(_0x14b15b['trim']());stopSpinner(_0x7daf4a,_0x14912c(0x1a8),_0x1edecf);if(!_0x1edecf){console[_0x14912c(0x199)](a88_0x5e25de[_0x14912c(0x18f)](_0x14912c(0x19e)));continue;}return _0x14b15b['trim']();}catch(_0x3ebc7d){stopSpinner(_0x7daf4a,_0x14912c(0x19d),![]);throw _0x3ebc7d;}}}export async function askCssUrl(_0x2895bf){const _0x28c587=a88_0x23bf;while(!![]){const _0x479d6b=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x2895bf,'theme':{'prefix':''}}));if(_0x479d6b['trim']()==='')throw CliErrors[_0x28c587(0x1a3)](_0x28c587(0x1a6));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x28c587(0x1a4)](_0x479d6b[_0x28c587(0x18d)]())){console[_0x28c587(0x199)](a88_0x5e25de[_0x28c587(0x18f)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x111a0b=startSpinner(_0x28c587(0x197));try{const _0x158633=await isUrlReachable(_0x479d6b[_0x28c587(0x18d)]());stopSpinner(_0x111a0b,_0x28c587(0x195),_0x158633);if(!_0x158633){console[_0x28c587(0x199)](a88_0x5e25de[_0x28c587(0x18f)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x479d6b['trim']();}catch(_0x47ff7e){stopSpinner(_0x111a0b,_0x28c587(0x192),![]);throw _0x47ff7e;}}}export async function selectPages(_0x61724c,_0x2f6a09,_0x39b290){const _0xbc61ce=a88_0x23bf,_0x45d8f7=_0x61724c[_0xbc61ce(0x1a2)](_0x2edede=>({'name':_0x2edede[_0xbc61ce(0x191)]+'\x20\x20'+(_0x2f6a09[_0xbc61ce(0x1a7)](_0x2edede['path'])?a88_0x5e25de['gray'](_0xbc61ce(0x18c)):a88_0x5e25de[_0xbc61ce(0x189)]('[new]')),'value':_0x2edede[_0xbc61ce(0x191)],'checked':_0x39b290?_0x39b290[_0xbc61ce(0x18b)](_0x2edede[_0xbc61ce(0x191)]):!_0x2f6a09['has'](_0x2edede[_0xbc61ce(0x1aa)])}));if(_0x45d8f7[_0xbc61ce(0x1a9)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x164335=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x45d8f7,'loop':![],'theme':{'prefix':''}}));if(_0x164335['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x61724c[_0xbc61ce(0x198)](_0x1c2c4b=>_0x164335[_0xbc61ce(0x18b)](_0x1c2c4b[_0xbc61ce(0x191)]));}export function isInteractive(){const _0x592890=a88_0x23bf;return process[_0x592890(0x188)]['isTTY']===!![];}export function requireInteractive(){const _0x4212b3=a88_0x23bf;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x4212b3(0x1a5));}
1
+ (function(_0x100222,_0x87dabc){const _0x4b26b4=a88_0xb199,_0x2b0bcb=_0x100222();while(!![]){try{const _0x18ffd2=parseInt(_0x4b26b4(0x1e8))/0x1*(parseInt(_0x4b26b4(0x1eb))/0x2)+parseInt(_0x4b26b4(0x1f2))/0x3+-parseInt(_0x4b26b4(0x1db))/0x4*(parseInt(_0x4b26b4(0x200))/0x5)+parseInt(_0x4b26b4(0x1d1))/0x6*(parseInt(_0x4b26b4(0x1dc))/0x7)+parseInt(_0x4b26b4(0x1f7))/0x8*(-parseInt(_0x4b26b4(0x1f1))/0x9)+parseInt(_0x4b26b4(0x1d8))/0xa+parseInt(_0x4b26b4(0x1ec))/0xb*(-parseInt(_0x4b26b4(0x1ea))/0xc);if(_0x18ffd2===_0x87dabc)break;else _0x2b0bcb['push'](_0x2b0bcb['shift']());}catch(_0x1dd2dd){_0x2b0bcb['push'](_0x2b0bcb['shift']());}}}(a88_0x27e6,0xb22ae));import a88_0x433142 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a88_0x328b69 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4ccbef){const _0x57af23=a88_0xb199;return _0x4ccbef[_0x57af23(0x1d2)](_0x29e854=>{const _0x299ebe=_0x57af23;if(_0x29e854?.[_0x299ebe(0x1f5)]===_0x299ebe(0x1e2))throw CliErrors['cancelled'](_0x299ebe(0x1fc));throw _0x29e854;});}function a88_0x27e6(){const _0x137a3d=['has','103185wSslfl','4378635OZGPSb','filter','isTTY','name','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','120Nvtlgs','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','green','No\x20local\x20pages\x20found.','label','Cancelled.','No\x20menus\x20selected.','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','JS\x20URL\x20checked','7246270nqPVZL','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20Checking\x20CSS\x20URL\x20reachability...','74148HGqwnV','catch','includes','\x20\x20CSS\x20URL:','length','stdin','[already\x20on\x20platform]','7499510smiOPp','[new]','CSS\x20URL\x20checked','4IIKzfl','329PAvpCv','cyan','gray','path','trim','test','ExitPromptError','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','CSS\x20URL\x20check\x20failed','fail','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','JS\x20URL\x20check\x20failed','79319PsqQwn','red','1656iUMzGd','22jBSuuM','104566kpoahB','error','succeed','map'];a88_0x27e6=function(){return _0x137a3d;};return a88_0x27e6();}export function startSpinner(_0x3d9c3d){const _0x24ddbc=a88_0xb199;return a88_0x328b69({'text':_0x3d9c3d,'color':_0x24ddbc(0x1dd)})['start']();}export function stopSpinner(_0x5dd32b,_0x13c5d2,_0x462cbe){const _0x3adaf8=a88_0xb199;_0x462cbe?_0x5dd32b[_0x3adaf8(0x1ee)](_0x13c5d2):_0x5dd32b[_0x3adaf8(0x1e5)](_0x13c5d2);}export async function askConfirm(_0x538dd4){return onCancel(confirm({'message':_0x538dd4,'theme':{'prefix':''}}));}function a88_0xb199(_0x5c6bf8,_0x539f8c){_0x5c6bf8=_0x5c6bf8-0x1cf;const _0x27e6dc=a88_0x27e6();let _0xb199f1=_0x27e6dc[_0x5c6bf8];return _0xb199f1;}export async function askJsUrl(_0x543ac1){const _0x4beadd=a88_0xb199;while(!![]){const _0x26131c=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x543ac1,'theme':{'prefix':''}}));if(_0x26131c[_0x4beadd(0x1e0)]()==='')throw CliErrors['cancelled'](_0x4beadd(0x1fc));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x4beadd(0x1e1)](_0x26131c[_0x4beadd(0x1e0)]())){console[_0x4beadd(0x1ed)](a88_0x433142[_0x4beadd(0x1e9)](_0x4beadd(0x1fe)));continue;}const _0x38221d=startSpinner(_0x4beadd(0x1cf));try{const _0x1cef1e=await isUrlReachable(_0x26131c['trim']());stopSpinner(_0x38221d,_0x4beadd(0x1ff),_0x1cef1e);if(!_0x1cef1e){console[_0x4beadd(0x1ed)](a88_0x433142[_0x4beadd(0x1e9)](_0x4beadd(0x1e3)));continue;}return _0x26131c[_0x4beadd(0x1e0)]();}catch(_0x391223){stopSpinner(_0x38221d,_0x4beadd(0x1e7),![]);throw _0x391223;}}}export async function askCssUrl(_0x3c1c3c){const _0x5b24e1=a88_0xb199;while(!![]){const _0x516f66=await onCancel(input({'message':_0x5b24e1(0x1d4),'default':_0x3c1c3c,'theme':{'prefix':''}}));if(_0x516f66[_0x5b24e1(0x1e0)]()==='')throw CliErrors['cancelled'](_0x5b24e1(0x1fc));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x516f66['trim']())){console['error'](a88_0x433142['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x57fee2=startSpinner(_0x5b24e1(0x1d0));try{const _0x5b55e6=await isUrlReachable(_0x516f66[_0x5b24e1(0x1e0)]());stopSpinner(_0x57fee2,_0x5b24e1(0x1da),_0x5b55e6);if(!_0x5b55e6){console[_0x5b24e1(0x1ed)](a88_0x433142[_0x5b24e1(0x1e9)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x516f66['trim']();}catch(_0x2cda74){stopSpinner(_0x57fee2,_0x5b24e1(0x1e4),![]);throw _0x2cda74;}}}export async function selectPages(_0x55b6a5,_0x3f5cea,_0x464a6f){const _0x327178=a88_0xb199,_0x124fae=_0x55b6a5[_0x327178(0x1ef)](_0x399692=>({'name':_0x399692[_0x327178(0x1fb)]+'\x20\x20'+(_0x3f5cea[_0x327178(0x1f0)](_0x399692[_0x327178(0x1df)])?a88_0x433142[_0x327178(0x1de)](_0x327178(0x1d7)):a88_0x433142[_0x327178(0x1f9)](_0x327178(0x1d9))),'value':_0x399692['label'],'checked':_0x464a6f?_0x464a6f[_0x327178(0x1d3)](_0x399692[_0x327178(0x1fb)]):!_0x3f5cea[_0x327178(0x1f0)](_0x399692[_0x327178(0x1df)])}));if(_0x124fae[_0x327178(0x1d5)]===0x0)throw new Error(_0x327178(0x1fa));const _0x524b69=await onCancel(checkbox({'message':_0x327178(0x1e6),'choices':_0x124fae,'loop':![],'theme':{'prefix':''}}));if(_0x524b69[_0x327178(0x1d5)]===0x0)throw new Error(_0x327178(0x1fd));return _0x55b6a5[_0x327178(0x1f3)](_0x31d467=>_0x524b69[_0x327178(0x1d3)](_0x31d467[_0x327178(0x1fb)]));}export function isInteractive(){const _0x37af54=a88_0xb199;return process[_0x37af54(0x1d6)][_0x37af54(0x1f4)]===!![];}export function requireInteractive(){const _0x1dca61=a88_0xb199;if(!isInteractive())throw new Error(_0x1dca61(0x1f8)+_0x1dca61(0x1f6));}