@lovrabet/rabetbase-cli 2.2.4-beta.2 → 2.2.4-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) 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 +2 -2
  206. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  207. package/templates/rules/lovrabet_rules.mdc.tpl +3 -1
@@ -1 +1 @@
1
- (function(_0x203bc9,_0x223f8f){const _0x44d592=a73_0x4484,_0x22b706=_0x203bc9();while(!![]){try{const _0x55372e=parseInt(_0x44d592(0xdf))/0x1*(parseInt(_0x44d592(0xde))/0x2)+-parseInt(_0x44d592(0xe6))/0x3+-parseInt(_0x44d592(0xe9))/0x4*(parseInt(_0x44d592(0xf3))/0x5)+parseInt(_0x44d592(0xe3))/0x6+-parseInt(_0x44d592(0xef))/0x7+parseInt(_0x44d592(0xed))/0x8*(-parseInt(_0x44d592(0xf4))/0x9)+parseInt(_0x44d592(0xf5))/0xa;if(_0x55372e===_0x223f8f)break;else _0x22b706['push'](_0x22b706['shift']());}catch(_0x455d37){_0x22b706['push'](_0x22b706['shift']());}}}(a73_0xd4fe,0x872e9));import{getAppBaseUrl}from'../../constant/domain.js';function a73_0xd4fe(){const _0x4158eb=['isFinite','1965594MWcOrh','/data/er?dbId=','map','271647yuhKyh','password','includes','2345108IpafBM','dbpassword','secret','connectionstring','24ZxtRWL','length','2065756hqyZfK','trim','token','number','5JJReUS','210807cRMWhs','7331290Nmarmy','keys','authorization','passwd','toLowerCase','8cIqDJr','133795JsXLrh','privatekey','accesskey'];a73_0xd4fe=function(){return _0x4158eb;};return a73_0xd4fe();}function shouldRedactKey(_0x5a14ce){const _0x5e81cc=a73_0x4484,_0x11c358=_0x5a14ce[_0x5e81cc(0xf9)]();if(_0x11c358===_0x5e81cc(0xe7)||_0x11c358===_0x5e81cc(0xf8)||_0x11c358===_0x5e81cc(0xea))return!![];if(_0x11c358[_0x5e81cc(0xe8)](_0x5e81cc(0xeb))||_0x11c358['includes'](_0x5e81cc(0xf1))||_0x11c358[_0x5e81cc(0xe8)]('credential'))return!![];if(_0x11c358['includes'](_0x5e81cc(0xe0))||_0x11c358[_0x5e81cc(0xe8)](_0x5e81cc(0xe1)))return!![];if(_0x11c358===_0x5e81cc(0xf7)||_0x11c358===_0x5e81cc(0xec)||_0x11c358==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x5e6f83){const _0xd6b458=a73_0x4484,_0x1e7564={..._0x5e6f83};for(const _0x25894e of Object[_0xd6b458(0xf6)](_0x1e7564)){if(!shouldRedactKey(_0x25894e))continue;const _0x243a3e=_0x1e7564[_0x25894e];_0x243a3e!=null&&String(_0x243a3e)[_0xd6b458(0xee)]>0x0&&(_0x1e7564[_0x25894e]='[redacted]');}return _0x1e7564;}function a73_0x4484(_0x374364,_0x843bde){_0x374364=_0x374364-0xde;const _0xd4fe25=a73_0xd4fe();let _0x4484ca=_0xd4fe25[_0x374364];return _0x4484ca;}export function sanitizeDbLinkList(_0x3c8f71){const _0x763008=a73_0x4484;return _0x3c8f71[_0x763008(0xe5)](_0x51267f=>sanitizeDbLinkForOutput(_0x51267f));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x25b02d){const _0x4cf77a=a73_0x4484,_0x21684d=_0x25b02d[_0x4cf77a(0xf0)]();if(!_0x21684d)return![];return DB_URL_PATTERN['test'](_0x21684d);}export function buildDbPageLinks(_0x40d46,_0x4c1dff){const _0x588752=a73_0x4484,_0x4d98a6=_0x40d46?.[_0x588752(0xf0)]();if(!_0x4d98a6)return undefined;const _0x25a6e3=typeof _0x4c1dff===_0x588752(0xf2)?String(_0x4c1dff):String(_0x4c1dff??'')[_0x588752(0xf0)]();if(!_0x25a6e3)return undefined;const _0x1ce899=Number(_0x25a6e3);if(!Number[_0x588752(0xe2)](_0x1ce899)||_0x1ce899<=0x0)return undefined;const _0x287e61=getAppBaseUrl(_0x4d98a6),_0x9bcbac=encodeURIComponent(String(_0x1ce899));return{'databasePage':_0x287e61+'/data/database','erPage':_0x287e61+_0x588752(0xe4)+_0x9bcbac};}
1
+ (function(_0x2b7761,_0x26bbe1){const _0x4e3e8a=a73_0x4c6c,_0x3d5ebe=_0x2b7761();while(!![]){try{const _0x4abeb3=parseInt(_0x4e3e8a(0xa9))/0x1*(-parseInt(_0x4e3e8a(0xa3))/0x2)+parseInt(_0x4e3e8a(0xa5))/0x3+parseInt(_0x4e3e8a(0xa4))/0x4*(parseInt(_0x4e3e8a(0xad))/0x5)+parseInt(_0x4e3e8a(0x9e))/0x6+parseInt(_0x4e3e8a(0xb3))/0x7*(-parseInt(_0x4e3e8a(0xb4))/0x8)+parseInt(_0x4e3e8a(0xb5))/0x9+-parseInt(_0x4e3e8a(0xab))/0xa*(-parseInt(_0x4e3e8a(0xa7))/0xb);if(_0x4abeb3===_0x26bbe1)break;else _0x3d5ebe['push'](_0x3d5ebe['shift']());}catch(_0x19ec4f){_0x3d5ebe['push'](_0x3d5ebe['shift']());}}}(a73_0x4110,0x87e64));function a73_0x4c6c(_0x7271ab,_0x38bb81){_0x7271ab=_0x7271ab-0x9c;const _0x411038=a73_0x4110();let _0x4c6cd6=_0x411038[_0x7271ab];return _0x4c6cd6;}function a73_0x4110(){const _0x854e0f=['toLowerCase','credential','21rCgApf','338016sphSvf','674730zKpzBY','/data/er?dbId=','secret','2338914Otpvdc','test','trim','privatekey','length','2163584QfVUZy','800568WQCiIu','1211964qSpFPM','includes','33Uixdcm','isFinite','1ClGgsG','keys','986630oXFCAX','/data/database','15XkewSU','map','accesskey','token'];a73_0x4110=function(){return _0x854e0f;};return a73_0x4110();}import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x341f25){const _0x33c20e=a73_0x4c6c,_0x4d2cb2=_0x341f25[_0x33c20e(0xb1)]();if(_0x4d2cb2==='password'||_0x4d2cb2==='passwd'||_0x4d2cb2==='dbpassword')return!![];if(_0x4d2cb2[_0x33c20e(0xa6)](_0x33c20e(0x9d))||_0x4d2cb2['includes'](_0x33c20e(0xb0))||_0x4d2cb2['includes'](_0x33c20e(0xb2)))return!![];if(_0x4d2cb2['includes'](_0x33c20e(0xa1))||_0x4d2cb2[_0x33c20e(0xa6)](_0x33c20e(0xaf)))return!![];if(_0x4d2cb2==='authorization'||_0x4d2cb2==='connectionstring'||_0x4d2cb2==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x339ef8){const _0x4c8732=a73_0x4c6c,_0x879946={..._0x339ef8};for(const _0x645d27 of Object[_0x4c8732(0xaa)](_0x879946)){if(!shouldRedactKey(_0x645d27))continue;const _0x3d48dd=_0x879946[_0x645d27];_0x3d48dd!=null&&String(_0x3d48dd)[_0x4c8732(0xa2)]>0x0&&(_0x879946[_0x645d27]='[redacted]');}return _0x879946;}export function sanitizeDbLinkList(_0x232c28){const _0x32926e=a73_0x4c6c;return _0x232c28[_0x32926e(0xae)](_0x3faa54=>sanitizeDbLinkForOutput(_0x3faa54));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x37c1a6){const _0x565e14=a73_0x4c6c,_0x3e4bf1=_0x37c1a6[_0x565e14(0xa0)]();if(!_0x3e4bf1)return![];return DB_URL_PATTERN[_0x565e14(0x9f)](_0x3e4bf1);}export function buildDbPageLinks(_0x2d5361,_0x42603a){const _0xed0f80=a73_0x4c6c,_0x2500c6=_0x2d5361?.[_0xed0f80(0xa0)]();if(!_0x2500c6)return undefined;const _0xdc7206=typeof _0x42603a==='number'?String(_0x42603a):String(_0x42603a??'')[_0xed0f80(0xa0)]();if(!_0xdc7206)return undefined;const _0x5a2e01=Number(_0xdc7206);if(!Number[_0xed0f80(0xa8)](_0x5a2e01)||_0x5a2e01<=0x0)return undefined;const _0x4a5474=getAppBaseUrl(_0x2500c6),_0xb11f8=encodeURIComponent(String(_0x5a2e01));return{'databasePage':_0x4a5474+_0xed0f80(0xac),'erPage':_0x4a5474+_0xed0f80(0x9c)+_0xb11f8};}
@@ -1 +1 @@
1
- const a74_0x1af6e6=a74_0x51e0;(function(_0xacf0ad,_0x227e24){const _0x2abbe4=a74_0x51e0,_0x312549=_0xacf0ad();while(!![]){try{const _0x32c959=parseInt(_0x2abbe4(0xf6))/0x1*(parseInt(_0x2abbe4(0xf4))/0x2)+parseInt(_0x2abbe4(0xf9))/0x3*(parseInt(_0x2abbe4(0xf2))/0x4)+-parseInt(_0x2abbe4(0xf3))/0x5*(parseInt(_0x2abbe4(0xeb))/0x6)+-parseInt(_0x2abbe4(0xf5))/0x7*(-parseInt(_0x2abbe4(0xed))/0x8)+parseInt(_0x2abbe4(0xf7))/0x9*(-parseInt(_0x2abbe4(0xf0))/0xa)+parseInt(_0x2abbe4(0xfa))/0xb+parseInt(_0x2abbe4(0xfb))/0xc;if(_0x32c959===_0x227e24)break;else _0x312549['push'](_0x312549['shift']());}catch(_0x3aaff4){_0x312549['push'](_0x312549['shift']());}}}(a74_0x245f,0x80150));function a74_0x245f(){const _0x29b5fc=['appCode','4ZzZPRD','5735vcvwon','40ljHiJO','14QQRaKk','8524cCZBBE','9bVgXxk','tables','1728822rwuPXX','6147625ysiSCQ','5261976FrqtBM','3756HxEhgg','num','67024zHbKZF','length','read','5182370LkYvHy'];a74_0x245f=function(){return _0x29b5fc;};return a74_0x245f();}function a74_0x51e0(_0x3a2986,_0x3d72cd){_0x3a2986=_0x3a2986-0xeb;const _0x245fa7=a74_0x245f();let _0x51e068=_0x245fa7[_0x3a2986];return _0x51e068;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a74_0x1af6e6(0xf8),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a74_0x1af6e6(0xef),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4eea03){const _0x5c7bbb=a74_0x1af6e6,_0x4c7c68=_0x4eea03[_0x5c7bbb(0xec)]('id'),_0x258d95=await getDbAllTableList(_0x4eea03[_0x5c7bbb(0xf1)],_0x4c7c68);return{'ok':!![],'data':{'dbLinkId':_0x4c7c68,'total':_0x258d95[_0x5c7bbb(0xee)],'tables':_0x258d95},'message':_0x258d95[_0x5c7bbb(0xee)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x4c7c68};}};
1
+ function a74_0x1480(_0x1dc2c8,_0x18f7ec){_0x1dc2c8=_0x1dc2c8-0xde;const _0x123a5b=a74_0x123a();let _0x1480af=_0x123a5b[_0x1dc2c8];return _0x1480af;}const a74_0x481f58=a74_0x1480;(function(_0x45bb53,_0x298144){const _0xfdd261=a74_0x1480,_0x499d57=_0x45bb53();while(!![]){try{const _0x2e16d9=parseInt(_0xfdd261(0xe5))/0x1*(parseInt(_0xfdd261(0xea))/0x2)+parseInt(_0xfdd261(0xec))/0x3*(-parseInt(_0xfdd261(0xee))/0x4)+-parseInt(_0xfdd261(0xeb))/0x5*(parseInt(_0xfdd261(0xe4))/0x6)+parseInt(_0xfdd261(0xde))/0x7*(parseInt(_0xfdd261(0xe6))/0x8)+parseInt(_0xfdd261(0xe7))/0x9+-parseInt(_0xfdd261(0xdf))/0xa+parseInt(_0xfdd261(0xe9))/0xb*(parseInt(_0xfdd261(0xed))/0xc);if(_0x2e16d9===_0x298144)break;else _0x499d57['push'](_0x499d57['shift']());}catch(_0x4cdbc9){_0x499d57['push'](_0x499d57['shift']());}}}(a74_0x123a,0x1bbe5));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x123a(){const _0x154e4b=['length','913kvdPdu','4DVByXF','5KtEPEK','3LeNwxb','47724GOntgE','269036FAcmkU','read','1407DAACBX','1243900btOMiM','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','appCode','num','\x20table(s)\x20on\x20db\x20link\x20','1238850MpZlYS','34098aeOufQ','2144GmMkqq','536454HmJMIa'];a74_0x123a=function(){return _0x154e4b;};return a74_0x123a();}export const dbTables={'service':'db','command':'tables','description':a74_0x481f58(0xe0),'risk':a74_0x481f58(0xef),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2fd80f){const _0x2cd91a=a74_0x481f58,_0x2aff04=_0x2fd80f[_0x2cd91a(0xe2)]('id'),_0x4bea6b=await getDbAllTableList(_0x2fd80f[_0x2cd91a(0xe1)],_0x2aff04);return{'ok':!![],'data':{'dbLinkId':_0x2aff04,'total':_0x4bea6b['length'],'tables':_0x4bea6b},'message':_0x4bea6b[_0x2cd91a(0xe8)]+_0x2cd91a(0xe3)+_0x2aff04};}};
@@ -1 +1 @@
1
- function a75_0x5a45(){const _0x4346cc=['read','744614MDeKkf','code','data','success','12pOgUKF','8CDCFUG','Connection\x20OK\x20for\x20db\x20link\x20','24818778OPFXSo','1886974etXQis','error','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','message','length','1033194KGEFaR','object','\x20(see\x20data.result)','num','test','slice','keys','660716txmCwZ','4699936ZVdbEC','2466055MSPDtt'];a75_0x5a45=function(){return _0x4346cc;};return a75_0x5a45();}const a75_0x487223=a75_0x6195;(function(_0x431c58,_0x157890){const _0x3e6803=a75_0x6195,_0x25b479=_0x431c58();while(!![]){try{const _0x2ea96e=parseInt(_0x3e6803(0x11a))/0x1+-parseInt(_0x3e6803(0x122))/0x2+parseInt(_0x3e6803(0x127))/0x3*(-parseInt(_0x3e6803(0x11f))/0x4)+-parseInt(_0x3e6803(0x118))/0x5+parseInt(_0x3e6803(0x11e))/0x6*(-parseInt(_0x3e6803(0x12e))/0x7)+-parseInt(_0x3e6803(0x117))/0x8+parseInt(_0x3e6803(0x121))/0x9;if(_0x2ea96e===_0x157890)break;else _0x25b479['push'](_0x25b479['shift']());}catch(_0xc3cd36){_0x25b479['push'](_0x25b479['shift']());}}}(a75_0x5a45,0x929ae));import{testDbLinkConnect}from'../../core/api-client.js';function a75_0x6195(_0x367e84,_0x7c0cd6){_0x367e84=_0x367e84-0x117;const _0x5a457f=a75_0x5a45();let _0x619524=_0x5a457f[_0x367e84];return _0x619524;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x24f298){const _0x4692f6=a75_0x6195;if(_0x24f298===!![]||_0x24f298===![])return{'success':_0x24f298};if(_0x24f298===null||_0x24f298===undefined)return{'type':typeof _0x24f298};if(typeof _0x24f298!==_0x4692f6(0x128))return{'type':typeof _0x24f298};const _0x36fb12=_0x24f298,_0x277751=[_0x4692f6(0x11d),_0x4692f6(0x125),_0x4692f6(0x11b),_0x4692f6(0x123),'msg',_0x4692f6(0x11c)],_0x59e207={};for(const _0x4001c2 of _0x277751){if(_0x4001c2 in _0x36fb12)_0x59e207[_0x4001c2]=_0x36fb12[_0x4001c2];}return Object[_0x4692f6(0x12d)](_0x59e207)[_0x4692f6(0x126)]===0x0&&(_0x59e207['keys']=Object[_0x4692f6(0x12d)](_0x36fb12)[_0x4692f6(0x12c)](0x0,0x14)),_0x59e207;}export const dbTest={'service':'db','command':a75_0x487223(0x12b),'description':a75_0x487223(0x124),'risk':a75_0x487223(0x119),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4cbfde){const _0x37311c=a75_0x487223,_0x23b319=_0x4cbfde[_0x37311c(0x12a)]('id'),_0x1b6c5e=await testDbLinkConnect(_0x23b319),_0x466470=_0x1b6c5e===!![]||typeof _0x1b6c5e===_0x37311c(0x128)&&_0x1b6c5e!==null&&_0x1b6c5e[_0x37311c(0x11d)]===!![],_0xed940d=summarizeTestConnectResult(_0x1b6c5e);return{'ok':!![],'data':{'id':_0x23b319,'connected':Boolean(_0x466470),'result':_0xed940d},'message':_0x466470?_0x37311c(0x120)+_0x23b319:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x23b319+_0x37311c(0x129)};}};
1
+ function a75_0x2d10(_0x4a476b,_0x9908){_0x4a476b=_0x4a476b-0xb3;const _0x440bae=a75_0x440b();let _0x2d1040=_0x440bae[_0x4a476b];return _0x2d1040;}function a75_0x440b(){const _0x34d354=['\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','read','num','error','data','930843nRuSej','76218wOrFmB','msg','code','3475160vishUn','keys','Connection\x20check\x20finished\x20for\x20db\x20link\x20','success','1589116ZCChJk','message','length','2288020oQtfto','951066pkZAto','test','object','3xaRtmP','100rLkfBI','459860NluQVw','581xzlGbm','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)'];a75_0x440b=function(){return _0x34d354;};return a75_0x440b();}const a75_0x91ee72=a75_0x2d10;(function(_0x55fee5,_0x3fdc9e){const _0x598bd3=a75_0x2d10,_0x455ce0=_0x55fee5();while(!![]){try{const _0x2c7867=parseInt(_0x598bd3(0xba))/0x1+-parseInt(_0x598bd3(0xb5))/0x2*(-parseInt(_0x598bd3(0xb8))/0x3)+-parseInt(_0x598bd3(0xcb))/0x4+parseInt(_0x598bd3(0xb4))/0x5+parseInt(_0x598bd3(0xc4))/0x6*(parseInt(_0x598bd3(0xbb))/0x7)+-parseInt(_0x598bd3(0xc7))/0x8+parseInt(_0x598bd3(0xc3))/0x9*(-parseInt(_0x598bd3(0xb9))/0xa);if(_0x2c7867===_0x3fdc9e)break;else _0x455ce0['push'](_0x455ce0['shift']());}catch(_0x447d6f){_0x455ce0['push'](_0x455ce0['shift']());}}}(a75_0x440b,0x8df1a));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1ba1d0){const _0x55c47c=a75_0x2d10;if(_0x1ba1d0===!![]||_0x1ba1d0===![])return{'success':_0x1ba1d0};if(_0x1ba1d0===null||_0x1ba1d0===undefined)return{'type':typeof _0x1ba1d0};if(typeof _0x1ba1d0!==_0x55c47c(0xb7))return{'type':typeof _0x1ba1d0};const _0x50f95e=_0x1ba1d0,_0x420d69=[_0x55c47c(0xca),_0x55c47c(0xcc),_0x55c47c(0xc6),_0x55c47c(0xc1),_0x55c47c(0xc5),_0x55c47c(0xc2)],_0x4c64fc={};for(const _0xbdd757 of _0x420d69){if(_0xbdd757 in _0x50f95e)_0x4c64fc[_0xbdd757]=_0x50f95e[_0xbdd757];}return Object['keys'](_0x4c64fc)[_0x55c47c(0xb3)]===0x0&&(_0x4c64fc['keys']=Object[_0x55c47c(0xc8)](_0x50f95e)['slice'](0x0,0x14)),_0x4c64fc;}export const dbTest={'service':'db','command':a75_0x91ee72(0xb6),'description':a75_0x91ee72(0xbc),'risk':a75_0x91ee72(0xbf),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2fee97){const _0x1fb0b6=a75_0x91ee72,_0x2c3513=_0x2fee97[_0x1fb0b6(0xc0)]('id'),_0xc1299b=await testDbLinkConnect(_0x2c3513),_0x234775=_0xc1299b===!![]||typeof _0xc1299b===_0x1fb0b6(0xb7)&&_0xc1299b!==null&&_0xc1299b[_0x1fb0b6(0xca)]===!![],_0xd088a8=summarizeTestConnectResult(_0xc1299b);return{'ok':!![],'data':{'id':_0x2c3513,'connected':Boolean(_0x234775),'result':_0xd088a8},'message':_0x234775?_0x1fb0b6(0xbe)+_0x2c3513:_0x1fb0b6(0xc9)+_0x2c3513+_0x1fb0b6(0xbd)};}};
@@ -1 +1 @@
1
- const a76_0x529b1b=a76_0xd66e;(function(_0x560eb1,_0x481933){const _0xea6c94=a76_0xd66e,_0x289451=_0x560eb1();while(!![]){try{const _0x135dc4=-parseInt(_0xea6c94(0x137))/0x1*(parseInt(_0xea6c94(0x131))/0x2)+parseInt(_0xea6c94(0x128))/0x3+parseInt(_0xea6c94(0x132))/0x4*(-parseInt(_0xea6c94(0x13f))/0x5)+parseInt(_0xea6c94(0x13a))/0x6*(-parseInt(_0xea6c94(0x14a))/0x7)+-parseInt(_0xea6c94(0x138))/0x8*(-parseInt(_0xea6c94(0x12a))/0x9)+-parseInt(_0xea6c94(0x143))/0xa+parseInt(_0xea6c94(0x144))/0xb;if(_0x135dc4===_0x481933)break;else _0x289451['push'](_0x289451['shift']());}catch(_0x1f255e){_0x289451['push'](_0x289451['shift']());}}}(a76_0x3760,0x263a1));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_0xd66e(_0x2d605b,_0xd2aefa){_0x2d605b=_0x2d605b-0x127;const _0x376096=a76_0x3760();let _0xd66efd=_0x376096[_0x2d605b];return _0xd66efd;}export const dbUpdate={'service':'db','command':a76_0x529b1b(0x13e),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a76_0x529b1b(0x12f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x529b1b(0x136),'type':a76_0x529b1b(0x13c),'description':a76_0x529b1b(0x12b)},{'name':'dburl','type':a76_0x529b1b(0x13c),'description':'New\x20host:port'},{'name':a76_0x529b1b(0x148),'type':'string','description':a76_0x529b1b(0x127)},{'name':'password','type':'string','description':a76_0x529b1b(0x147)},{'name':'dbparam','type':a76_0x529b1b(0x13c),'description':a76_0x529b1b(0x134)},{'name':a76_0x529b1b(0x141),'type':a76_0x529b1b(0x13c),'description':a76_0x529b1b(0x146)}],async 'validate'(_0x3d509c){const _0x363dec=a76_0x529b1b,_0x4f4976=_0x3d509c[_0x363dec(0x130)](_0x363dec(0x133));if(_0x4f4976&&!validateDbUrl(_0x4f4976[_0x363dec(0x12e)]()))throw CliErrors[_0x363dec(0x140)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x4f4976+'\x22');},async 'dryRun'(_0x18fb55){const _0x128623=a76_0x529b1b,_0x3f1db5=_0x18fb55[_0x128623(0x142)]('id'),_0x511d4e=await getDbLinkInfo(_0x3f1db5),_0x631aa={..._0x511d4e},_0x37d38b=_0x18fb55[_0x128623(0x130)](_0x128623(0x136));if(_0x37d38b)_0x631aa[_0x128623(0x149)]=_0x37d38b;const _0x1f13a4=_0x18fb55['str'](_0x128623(0x133));if(_0x1f13a4)_0x631aa[_0x128623(0x12c)]=_0x1f13a4[_0x128623(0x12e)]();const _0x49c024=_0x18fb55[_0x128623(0x130)](_0x128623(0x148));if(_0x49c024)_0x631aa['username']=_0x49c024;const _0x11330e=_0x18fb55['str']('password');if(_0x11330e)_0x631aa[_0x128623(0x13b)]=_0x11330e;const _0x59c3c4=_0x18fb55[_0x128623(0x130)](_0x128623(0x13d));if(_0x59c3c4)_0x631aa['dbParam']=_0x59c3c4;const _0x3b9908=_0x18fb55[_0x128623(0x130)](_0x128623(0x141));if(_0x3b9908)_0x631aa[_0x128623(0x135)]=_0x3b9908;const _0x43cdff=sanitizeDbLinkForOutput(_0x631aa);return{'method':'POST','url':_0x128623(0x12d),'body':_0x43cdff,'description':_0x128623(0x145)};},async 'execute'(_0x4b0799){const _0xee9353=a76_0x529b1b,_0x25b845=_0x4b0799['num']('id'),_0x592bf3=await getDbLinkInfo(_0x25b845),_0xb89eaa={..._0x592bf3},_0x2df2b1=_0x4b0799[_0xee9353(0x130)](_0xee9353(0x136));if(_0x2df2b1)_0xb89eaa[_0xee9353(0x149)]=_0x2df2b1;const _0x57ef0a=_0x4b0799[_0xee9353(0x130)](_0xee9353(0x133));if(_0x57ef0a)_0xb89eaa[_0xee9353(0x12c)]=_0x57ef0a['trim']();const _0x543019=_0x4b0799['str'](_0xee9353(0x148));if(_0x543019)_0xb89eaa[_0xee9353(0x148)]=_0x543019;const _0x284b02=_0x4b0799[_0xee9353(0x130)](_0xee9353(0x13b));if(_0x284b02)_0xb89eaa[_0xee9353(0x13b)]=_0x284b02;const _0x9409f5=_0x4b0799['str'](_0xee9353(0x13d));if(_0x9409f5)_0xb89eaa[_0xee9353(0x139)]=_0x9409f5;const _0x4bf2a6=_0x4b0799['str'](_0xee9353(0x141));if(_0x4bf2a6)_0xb89eaa[_0xee9353(0x135)]=_0x4bf2a6;const {id:_0x1d7b89,entity:_0x7829b8}=normalizeEntityWithIdResponse(await updateDbLink(_0xb89eaa));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x7829b8),'message':_0xee9353(0x129)+(_0x1d7b89??_0x25b845)};}};function a76_0x3760(){const _0x11a92d=['trim','write','str','2SluVIj','783508MtRbDl','dburl','New\x20connection\x20parameter\x20string','dbDesc','dbname','295567qhSWaz','920vKoWvE','dbParam','552654qAlUNL','password','string','dbparam','update','5VMFHlF','validation','dbdesc','num','1022770uHpclv','5648654nPSsST','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20description','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','username','dbName','7QeiFgr','New\x20username','907329CfMuWP','Updated\x20db\x20link\x20','2070ULzncE','New\x20database\x20name','dbUrl','/smartapi/dblink/update'];a76_0x3760=function(){return _0x11a92d;};return a76_0x3760();}
1
+ const a76_0x31195f=a76_0x1661;(function(_0xa776f,_0x50b28e){const _0x1547f5=a76_0x1661,_0x340078=_0xa776f();while(!![]){try{const _0x10358d=parseInt(_0x1547f5(0x9e))/0x1*(-parseInt(_0x1547f5(0x85))/0x2)+-parseInt(_0x1547f5(0x82))/0x3*(parseInt(_0x1547f5(0x8c))/0x4)+parseInt(_0x1547f5(0xa3))/0x5*(parseInt(_0x1547f5(0x93))/0x6)+-parseInt(_0x1547f5(0x8b))/0x7*(-parseInt(_0x1547f5(0x84))/0x8)+parseInt(_0x1547f5(0x87))/0x9*(parseInt(_0x1547f5(0xa7))/0xa)+-parseInt(_0x1547f5(0xa4))/0xb*(-parseInt(_0x1547f5(0x9f))/0xc)+parseInt(_0x1547f5(0x8f))/0xd*(-parseInt(_0x1547f5(0x83))/0xe);if(_0x10358d===_0x50b28e)break;else _0x340078['push'](_0x340078['shift']());}catch(_0x4957d4){_0x340078['push'](_0x340078['shift']());}}}(a76_0x2588,0x257be));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';export const dbUpdate={'service':'db','command':a76_0x31195f(0x95),'description':a76_0x31195f(0x9d),'risk':a76_0x31195f(0x98),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x31195f(0x90),'type':a76_0x31195f(0x8d),'description':'New\x20database\x20name'},{'name':a76_0x31195f(0xa2),'type':a76_0x31195f(0x8d),'description':a76_0x31195f(0x9c)},{'name':a76_0x31195f(0x91),'type':a76_0x31195f(0x8d),'description':a76_0x31195f(0x89)},{'name':a76_0x31195f(0x8e),'type':'string','description':a76_0x31195f(0xa1)},{'name':a76_0x31195f(0x86),'type':'string','description':a76_0x31195f(0x99)},{'name':a76_0x31195f(0x94),'type':a76_0x31195f(0x8d),'description':'New\x20description'}],async 'validate'(_0x544816){const _0x5c36df=a76_0x31195f,_0x1ae173=_0x544816[_0x5c36df(0x9b)]('dburl');if(_0x1ae173&&!validateDbUrl(_0x1ae173['trim']()))throw CliErrors[_0x5c36df(0xa0)](_0x5c36df(0xa5)+_0x1ae173+'\x22');},async 'dryRun'(_0x547c37){const _0x4339bd=a76_0x31195f,_0x476217=_0x547c37['num']('id'),_0x3eec86=await getDbLinkInfo(_0x476217),_0x27e70e={..._0x3eec86},_0x490ad9=_0x547c37[_0x4339bd(0x9b)](_0x4339bd(0x90));if(_0x490ad9)_0x27e70e[_0x4339bd(0xa8)]=_0x490ad9;const _0x498f06=_0x547c37[_0x4339bd(0x9b)]('dburl');if(_0x498f06)_0x27e70e[_0x4339bd(0x8a)]=_0x498f06['trim']();const _0x136fc3=_0x547c37[_0x4339bd(0x9b)](_0x4339bd(0x91));if(_0x136fc3)_0x27e70e['username']=_0x136fc3;const _0x122636=_0x547c37[_0x4339bd(0x9b)](_0x4339bd(0x8e));if(_0x122636)_0x27e70e[_0x4339bd(0x8e)]=_0x122636;const _0x167dea=_0x547c37[_0x4339bd(0x9b)]('dbparam');if(_0x167dea)_0x27e70e[_0x4339bd(0x9a)]=_0x167dea;const _0x305e9f=_0x547c37[_0x4339bd(0x9b)](_0x4339bd(0x94));if(_0x305e9f)_0x27e70e[_0x4339bd(0x97)]=_0x305e9f;const _0x152305=sanitizeDbLinkForOutput(_0x27e70e);return{'method':_0x4339bd(0x88),'url':_0x4339bd(0x92),'body':_0x152305,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x256677){const _0x445689=a76_0x31195f,_0x11eef7=_0x256677[_0x445689(0x96)]('id'),_0x353d9d=await getDbLinkInfo(_0x11eef7),_0x398be8={..._0x353d9d},_0x2b61d0=_0x256677[_0x445689(0x9b)](_0x445689(0x90));if(_0x2b61d0)_0x398be8[_0x445689(0xa8)]=_0x2b61d0;const _0x354ee1=_0x256677['str'](_0x445689(0xa2));if(_0x354ee1)_0x398be8['dbUrl']=_0x354ee1['trim']();const _0x3bafcc=_0x256677['str'](_0x445689(0x91));if(_0x3bafcc)_0x398be8['username']=_0x3bafcc;const _0x2d0409=_0x256677[_0x445689(0x9b)](_0x445689(0x8e));if(_0x2d0409)_0x398be8[_0x445689(0x8e)]=_0x2d0409;const _0x3ad10e=_0x256677[_0x445689(0x9b)](_0x445689(0x86));if(_0x3ad10e)_0x398be8[_0x445689(0x9a)]=_0x3ad10e;const _0x376fe4=_0x256677[_0x445689(0x9b)]('dbdesc');if(_0x376fe4)_0x398be8[_0x445689(0x97)]=_0x376fe4;const {id:_0x2a75da,entity:_0x102e1d}=normalizeEntityWithIdResponse(await updateDbLink(_0x398be8));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x102e1d),'message':_0x445689(0xa6)+(_0x2a75da??_0x11eef7)};}};function a76_0x1661(_0x25b345,_0x4c6996){_0x25b345=_0x25b345-0x82;const _0x2588af=a76_0x2588();let _0x1661f9=_0x2588af[_0x25b345];return _0x1661f9;}function a76_0x2588(){const _0x5dda8c=['8FCSwoi','string','password','8865038aDagAh','dbname','username','/smartapi/dblink/update','818886nrlkaN','dbdesc','update','num','dbDesc','write','New\x20connection\x20parameter\x20string','dbParam','str','New\x20host:port','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','73951ShOrJc','1512EvyNsV','validation','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dburl','5KtPVhR','26477QYENya','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Updated\x20db\x20link\x20','30FzxqwA','dbName','138783TyBEqN','14FJNhRt','8YricVy','2tshkdh','dbparam','890748xiJUiH','POST','New\x20username','dbUrl','1856778rTYzHI'];a76_0x2588=function(){return _0x5dda8c;};return a76_0x2588();}
@@ -1 +1 @@
1
- const a77_0x572941=a77_0x498c;(function(_0x42bdf5,_0x18f4f8){const _0x4f56e7=a77_0x498c,_0x2ce6a3=_0x42bdf5();while(!![]){try{const _0x4daff8=parseInt(_0x4f56e7(0xdd))/0x1+-parseInt(_0x4f56e7(0xf2))/0x2+parseInt(_0x4f56e7(0x103))/0x3+parseInt(_0x4f56e7(0xef))/0x4+-parseInt(_0x4f56e7(0x10a))/0x5*(-parseInt(_0x4f56e7(0xf8))/0x6)+-parseInt(_0x4f56e7(0xf7))/0x7+-parseInt(_0x4f56e7(0xdf))/0x8;if(_0x4daff8===_0x18f4f8)break;else _0x2ce6a3['push'](_0x2ce6a3['shift']());}catch(_0x337111){_0x2ce6a3['push'](_0x2ce6a3['shift']());}}}(a77_0x6d17,0xa9cca));import a77_0x2b05e4 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a77_0x498c(_0x47f091,_0x22956e){_0x47f091=_0x47f091-0xd5;const _0x6d1775=a77_0x6d17();let _0x498c62=_0x6d1775[_0x47f091];return _0x498c62;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a77_0x6d17(){const _0x2f2905=['riskLevel','slice','1597400fIZHbl','unknown','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','1678038wBRzBt','appCode','log','green','pageSize','890400kvFVfl','3037638cAyGQb','missing','arch','(set,\x20length=','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','raw','\x20\x20Config\x20JSON','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','3003504DYPSEe','env','read','platform','✗\x20Invalid\x20JSON','✓\x20Valid','padEnd','10RtPQZW','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','currentApp','\x20\x20─','(default:\x20','apiDir','appcode','status','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','defaultApp','empty','\x20\x20explicitAppName:\x20','bold','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','explicitAppName','(no\x20file)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✗\x20Expired','locale','cookie','accessKey','Project','gray','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','apps','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','repeat','(not\x20found)','\x20\x20API\x20Endpoints','(none)','doctor','1258166thdWqQ','\x20\x20Apps','16076104VmBRov','source','(missing)','\x20\x20runtimeDomain:\x20\x20\x20','red','(set\x20via\x20file,\x20length=','length','(default)','\x20doctor','✗\x20Not\x20logged\x20in','keys','(not\x20set)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a77_0x6d17=function(){return _0x2f2905;};return a77_0x6d17();}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3762e0){const _0x2aa0c6=a77_0x498c,_0x86d464=GIT_COMMIT!==_0x2aa0c6(0xf0)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2aa0c6(0xee)](0x0,0xa)+')':VERSION,_0x5d7919=buildConfigFromFlags({}),_0xeb9926=getCookie();console[_0x2aa0c6(0xf4)](),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x11a)](CLI_BIN_NAME+_0x2aa0c6(0xe7))),console['log'](a77_0x2b05e4['gray']('─'[_0x2aa0c6(0xd8)](0x32))),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0x11b)+_0x86d464),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xeb)+process['version']),console[_0x2aa0c6(0xf4)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2aa0c6(0x106)]+'\x20'+process[_0x2aa0c6(0xfa)]),console['log'](),console[_0x2aa0c6(0xf4)](a77_0x2b05e4['bold']('\x20\x20Config\x20Files')),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0x110)[_0x2aa0c6(0xd8)](0x1e)));const _0x280fd4=getGlobalConfigPath(),_0x167013=getProjectConfigPath();console[_0x2aa0c6(0xf4)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x280fd4||a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xd9)))),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0x129)+(_0x167013||a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xd9)))),console[_0x2aa0c6(0xf4)](),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x11a)](_0x2aa0c6(0x100))),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0x110)['repeat'](0x1e)));const _0x23f5b4=(_0x44acd6,_0x3240f5)=>{const _0x123f34=_0x2aa0c6;if(!_0x3240f5){console['log']('\x20\x20'+_0x44acd6[_0x123f34(0x109)](0x11)+'\x20'+a77_0x2b05e4[_0x123f34(0x125)](_0x123f34(0x11e)));return;}const _0x509a45=inspectCliConfigJsonFile(_0x3240f5);if(_0x509a45[_0x123f34(0x114)]==='ok')console['log']('\x20\x20'+_0x44acd6[_0x123f34(0x109)](0x11)+'\x20'+a77_0x2b05e4[_0x123f34(0xf5)]('✓\x20Valid\x20JSON'));else{if(_0x509a45[_0x123f34(0x114)]===_0x123f34(0x118))console[_0x123f34(0xf4)]('\x20\x20'+_0x44acd6[_0x123f34(0x109)](0x11)+'\x20'+a77_0x2b05e4['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x509a45[_0x123f34(0x114)]===_0x123f34(0xf9)?console[_0x123f34(0xf4)]('\x20\x20'+_0x44acd6[_0x123f34(0x109)](0x11)+'\x20'+a77_0x2b05e4[_0x123f34(0x125)](_0x123f34(0xe1))):(console[_0x123f34(0xf4)]('\x20\x20'+_0x44acd6[_0x123f34(0x109)](0x11)+'\x20'+a77_0x2b05e4['red'](_0x123f34(0x107))),console[_0x123f34(0xf4)]('\x20\x20'+''[_0x123f34(0x109)](0x11)+'\x20'+a77_0x2b05e4['red'](_0x509a45['message'])));}};_0x23f5b4('Global',_0x280fd4),_0x23f5b4(_0x2aa0c6(0x124),_0x167013),console[_0x2aa0c6(0xf4)](),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x11a)]('\x20\x20Merged\x20Config')),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0x110)['repeat'](0x1e))),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xfd)+(_0x5d7919[_0x2aa0c6(0xf3)]||a77_0x2b05e4[_0x2aa0c6(0xe3)](_0x2aa0c6(0xea)))),console['log'](_0x2aa0c6(0x101)+_0x5d7919['env']),console['log'](_0x2aa0c6(0x10d)+_0x5d7919[_0x2aa0c6(0x121)]),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0x128)+_0x5d7919[_0x2aa0c6(0x112)]),console['log'](_0x2aa0c6(0x11f)+(_0x5d7919[_0x2aa0c6(0x117)]||a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xdb)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5d7919['currentApp']||a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xdb)))),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0x119)+(_0x5d7919[_0x2aa0c6(0x11d)]||a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xdb)))),console[_0x2aa0c6(0xf4)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5d7919[_0x2aa0c6(0x102)]||a77_0x2b05e4['gray'](_0x2aa0c6(0x111)+DEFAULT_CONFIG_VALUES[_0x2aa0c6(0x102)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5d7919[_0x2aa0c6(0xf6)]??a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xe6)))),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xfc)+_0x5d7919[_0x2aa0c6(0xed)]),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0x115)+_0x5d7919['verbose']),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xec)+(_0x5d7919[_0x2aa0c6(0x122)]?a77_0x2b05e4[_0x2aa0c6(0xf5)](_0x2aa0c6(0xfb)+_0x5d7919[_0x2aa0c6(0x122)]['length']+')'):_0xeb9926?a77_0x2b05e4[_0x2aa0c6(0xf5)](_0x2aa0c6(0xe4)+_0xeb9926[_0x2aa0c6(0xe5)]+')'):a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xdb))));const _0x5c6428=Object[_0x2aa0c6(0xe9)](_0x5d7919[_0x2aa0c6(0x127)]);if(_0x5c6428['length']>0x0){console['log'](),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x11a)](_0x2aa0c6(0xde))),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0x110)[_0x2aa0c6(0xd8)](0x1e)));for(const _0x2a040b of _0x5c6428){const _0x6610f9=_0x5d7919['apps'][_0x2a040b],_0x4fc623=_0x2a040b===_0x5d7919[_0x2aa0c6(0x117)],_0x5ef80a=_0x2a040b===_0x5d7919[_0x2aa0c6(0x10f)],_0x3eed40=_0x5ef80a?a77_0x2b05e4[_0x2aa0c6(0xf5)]('\x20←\x20current'):'',_0x50b7d1=_0x4fc623?_0x2aa0c6(0x10c):'';console[_0x2aa0c6(0xf4)]('\x20\x20'+_0x2a040b+_0x50b7d1+_0x3eed40),console['log'](_0x2aa0c6(0xf1)+_0x6610f9[_0x2aa0c6(0x113)]);const _0x2f3f5a=buildAppDoctorFields(_0x6610f9,{'env':_0x5d7919[_0x2aa0c6(0x104)],'apiDir':_0x5d7919[_0x2aa0c6(0xff)][_0x2aa0c6(0x112)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5d7919[_0x2aa0c6(0x122)]||_0xeb9926||undefined,'accessKey':_0x5d7919[_0x2aa0c6(0x123)]});console[_0x2aa0c6(0xf4)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2f3f5a[_0x2aa0c6(0x104)]['value']+'\x20\x20'+a77_0x2b05e4[_0x2aa0c6(0x125)]('('+_0x2f3f5a[_0x2aa0c6(0x104)][_0x2aa0c6(0xe0)]+')')),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0x126)+_0x2f3f5a[_0x2aa0c6(0x112)]['value']+'\x20\x20'+a77_0x2b05e4[_0x2aa0c6(0x125)]('('+_0x2f3f5a[_0x2aa0c6(0x112)][_0x2aa0c6(0xe0)]+')'));const _0x11daae=_0x2f3f5a['cookie']['value']?a77_0x2b05e4[_0x2aa0c6(0xf5)](_0x2aa0c6(0xfb)+_0x2f3f5a[_0x2aa0c6(0x122)]['value'][_0x2aa0c6(0xe5)]+')'):a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xdb));console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xd7)+_0x11daae+'\x20\x20'+a77_0x2b05e4[_0x2aa0c6(0x125)]('('+_0x2f3f5a[_0x2aa0c6(0x122)][_0x2aa0c6(0xe0)]+')'));const _0x42a117=_0x2f3f5a['accessKey']['value']?a77_0x2b05e4[_0x2aa0c6(0xf5)](_0x2aa0c6(0xfb)+_0x2f3f5a['accessKey'][_0x2aa0c6(0xd5)][_0x2aa0c6(0xe5)]+')'):a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0xdb));console['log'](_0x2aa0c6(0x11c)+_0x42a117+'\x20\x20'+a77_0x2b05e4[_0x2aa0c6(0x125)]('('+_0x2f3f5a['accessKey']['source']+')'));}}console[_0x2aa0c6(0xf4)](),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x11a)](_0x2aa0c6(0xda))),console[_0x2aa0c6(0xf4)](a77_0x2b05e4['gray'](_0x2aa0c6(0x110)[_0x2aa0c6(0xd8)](0x1e))),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0x10b)+getApiDomain()),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xfe)+getUserDomain()),console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xe2)+getRuntimeDomain()),console['log'](),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x11a)](_0x2aa0c6(0x116))),console[_0x2aa0c6(0xf4)](a77_0x2b05e4[_0x2aa0c6(0x125)](_0x2aa0c6(0x110)[_0x2aa0c6(0xd8)](0x1e)));if(_0xeb9926){const _0x3347a7=await getIsSessionValid();console['log'](_0x2aa0c6(0xd6)+(_0x3347a7?a77_0x2b05e4[_0x2aa0c6(0xf5)](_0x2aa0c6(0x108)):a77_0x2b05e4['red'](_0x2aa0c6(0x120))));}else console[_0x2aa0c6(0xf4)](_0x2aa0c6(0xd6)+a77_0x2b05e4[_0x2aa0c6(0xe3)](_0x2aa0c6(0xe8)));return console[_0x2aa0c6(0xf4)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x572941(0xdc),'command':a77_0x572941(0x10e),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a77_0x572941(0x105),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a77_0x3546(_0x2cfe66,_0x2d528e){_0x2cfe66=_0x2cfe66-0x91;const _0x28c4a5=a77_0x28c4();let _0x3546d0=_0x28c4a5[_0x2cfe66];return _0x3546d0;}const a77_0x2bb3e3=a77_0x3546;function a77_0x28c4(){const _0x193490=['arch','locale','\x20(default)','(no\x20file)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','279316WYgQeP','format','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','riskLevel','defaultApp','(none)','raw','bold','✓\x20Valid','cookie','padEnd','apiDir','(missing)','accessKey','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','unknown','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','repeat','Global','2193895FMvaZa','(set,\x20length=','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','26806188oSvJDk','env','2JEfnMH','(not\x20found)','message','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','verbose','green','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','status','40AybumF','appcode','66MHgdsr','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','length','value','source','check','⚠\x20Empty\x20(treated\x20as\x20{})','slice','\x20\x20Apps','\x20\x20explicitAppName:\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','missing','(default:\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','225099qBJHHI','2442843OMOPey','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','3ZQlpQI','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apps','doctor','appCode','\x20\x20Merged\x20Config','2394106LlPzqG','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20Config\x20Files','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','32tUhsIm','723944nwVomN','red','version','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys'];a77_0x28c4=function(){return _0x193490;};return a77_0x28c4();}(function(_0x145088,_0x9120c4){const _0x481d45=a77_0x3546,_0x39b225=_0x145088();while(!![]){try{const _0x513cac=parseInt(_0x481d45(0xad))/0x1*(parseInt(_0x481d45(0xd5))/0x2)+parseInt(_0x481d45(0xa0))/0x3*(parseInt(_0x481d45(0xb7))/0x4)+parseInt(_0x481d45(0xcf))/0x5+-parseInt(_0x481d45(0xe1))/0x6*(parseInt(_0x481d45(0x9d))/0x7)+-parseInt(_0x481d45(0xac))/0x8*(-parseInt(_0x481d45(0x9e))/0x9)+-parseInt(_0x481d45(0xdf))/0xa*(-parseInt(_0x481d45(0xa8))/0xb)+-parseInt(_0x481d45(0xd3))/0xc;if(_0x513cac===_0x9120c4)break;else _0x39b225['push'](_0x39b225['shift']());}catch(_0x185678){_0x39b225['push'](_0x39b225['shift']());}}}(a77_0x28c4,0x92cb4));import a77_0x227cfb 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';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x46f60a){const _0x3b020e=a77_0x3546,_0x11a995=GIT_COMMIT!==_0x3b020e(0xc7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3b020e(0x94)](0x0,0xa)+')':VERSION,_0x4b0501=buildConfigFromFlags({}),_0x52a887=getCookie();console['log'](),console[_0x3b020e(0xdd)](a77_0x227cfb[_0x3b020e(0xbe)](CLI_BIN_NAME+'\x20doctor')),console[_0x3b020e(0xdd)](a77_0x227cfb[_0x3b020e(0xa2)]('─'['repeat'](0x32))),console[_0x3b020e(0xdd)](_0x3b020e(0xc6)+_0x11a995),console[_0x3b020e(0xdd)](_0x3b020e(0xab)+process[_0x3b020e(0xaf)]),console[_0x3b020e(0xdd)](_0x3b020e(0x9a)+process['platform']+'\x20'+process[_0x3b020e(0xb2)]),console[_0x3b020e(0xdd)](),console['log'](a77_0x227cfb[_0x3b020e(0xbe)](_0x3b020e(0xaa))),console['log'](a77_0x227cfb['gray'](_0x3b020e(0xc5)['repeat'](0x1e)));const _0x25d0c3=getGlobalConfigPath(),_0x217c67=getProjectConfigPath();console[_0x3b020e(0xdd)](_0x3b020e(0xa1)+(_0x25d0c3||a77_0x227cfb['gray']('(not\x20found)'))),console[_0x3b020e(0xdd)](_0x3b020e(0xdc)+(_0x217c67||a77_0x227cfb['gray'](_0x3b020e(0xd6)))),console[_0x3b020e(0xdd)](),console[_0x3b020e(0xdd)](a77_0x227cfb[_0x3b020e(0xbe)]('\x20\x20Config\x20JSON')),console[_0x3b020e(0xdd)](a77_0x227cfb[_0x3b020e(0xa2)](_0x3b020e(0xc5)[_0x3b020e(0xcd)](0x1e)));const _0x33901a=(_0x50ce05,_0x1f963c)=>{const _0x23b4ba=_0x3b020e;if(!_0x1f963c){console['log']('\x20\x20'+_0x50ce05[_0x23b4ba(0xc1)](0x11)+'\x20'+a77_0x227cfb['gray'](_0x23b4ba(0xb5)));return;}const _0x15f89a=inspectCliConfigJsonFile(_0x1f963c);if(_0x15f89a[_0x23b4ba(0xde)]==='ok')console[_0x23b4ba(0xdd)]('\x20\x20'+_0x50ce05[_0x23b4ba(0xc1)](0x11)+'\x20'+a77_0x227cfb[_0x23b4ba(0xdb)](_0x23b4ba(0xc9)));else{if(_0x15f89a['status']==='empty')console[_0x23b4ba(0xdd)]('\x20\x20'+_0x50ce05[_0x23b4ba(0xc1)](0x11)+'\x20'+a77_0x227cfb['yellow'](_0x23b4ba(0x93)));else _0x15f89a[_0x23b4ba(0xde)]===_0x23b4ba(0x98)?console[_0x23b4ba(0xdd)]('\x20\x20'+_0x50ce05[_0x23b4ba(0xc1)](0x11)+'\x20'+a77_0x227cfb[_0x23b4ba(0xa2)](_0x23b4ba(0xc3))):(console[_0x23b4ba(0xdd)]('\x20\x20'+_0x50ce05[_0x23b4ba(0xc1)](0x11)+'\x20'+a77_0x227cfb[_0x23b4ba(0xae)]('✗\x20Invalid\x20JSON')),console[_0x23b4ba(0xdd)]('\x20\x20'+''[_0x23b4ba(0xc1)](0x11)+'\x20'+a77_0x227cfb[_0x23b4ba(0xae)](_0x15f89a[_0x23b4ba(0xd7)])));}};_0x33901a(_0x3b020e(0xce),_0x25d0c3),_0x33901a('Project',_0x217c67),console[_0x3b020e(0xdd)](),console[_0x3b020e(0xdd)](a77_0x227cfb['bold'](_0x3b020e(0xa7))),console['log'](a77_0x227cfb[_0x3b020e(0xa2)]('\x20\x20─'[_0x3b020e(0xcd)](0x1e))),console['log'](_0x3b020e(0xd8)+(_0x4b0501[_0x3b020e(0xa6)]||a77_0x227cfb[_0x3b020e(0xae)]('(not\x20set)'))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b0501[_0x3b020e(0xd4)]),console[_0x3b020e(0xdd)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b0501[_0x3b020e(0xb3)]),console[_0x3b020e(0xdd)](_0x3b020e(0xc8)+_0x4b0501['apiDir']),console[_0x3b020e(0xdd)](_0x3b020e(0xb9)+(_0x4b0501[_0x3b020e(0xbb)]||a77_0x227cfb[_0x3b020e(0xa2)](_0x3b020e(0xbc)))),console[_0x3b020e(0xdd)](_0x3b020e(0xa3)+(_0x4b0501[_0x3b020e(0x9c)]||a77_0x227cfb['gray'](_0x3b020e(0xbc)))),console['log'](_0x3b020e(0x96)+(_0x4b0501['explicitAppName']||a77_0x227cfb['gray']('(none)'))),console[_0x3b020e(0xdd)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b0501['format']||a77_0x227cfb[_0x3b020e(0xa2)](_0x3b020e(0x99)+DEFAULT_CONFIG_VALUES[_0x3b020e(0xb8)]+')'))),console[_0x3b020e(0xdd)](_0x3b020e(0x97)+(_0x4b0501['pageSize']??a77_0x227cfb[_0x3b020e(0xa2)]('(default)'))),console['log'](_0x3b020e(0xcc)+_0x4b0501[_0x3b020e(0xba)]),console[_0x3b020e(0xdd)](_0x3b020e(0xb0)+_0x4b0501[_0x3b020e(0xda)]),console[_0x3b020e(0xdd)](_0x3b020e(0xca)+(_0x4b0501[_0x3b020e(0xc0)]?a77_0x227cfb[_0x3b020e(0xdb)](_0x3b020e(0xd0)+_0x4b0501['cookie']['length']+')'):_0x52a887?a77_0x227cfb[_0x3b020e(0xdb)]('(set\x20via\x20file,\x20length='+_0x52a887[_0x3b020e(0xe3)]+')'):a77_0x227cfb['gray']('(none)')));const _0x57e2bc=Object[_0x3b020e(0xb1)](_0x4b0501[_0x3b020e(0xa4)]);if(_0x57e2bc['length']>0x0){console[_0x3b020e(0xdd)](),console['log'](a77_0x227cfb[_0x3b020e(0xbe)](_0x3b020e(0x95))),console[_0x3b020e(0xdd)](a77_0x227cfb[_0x3b020e(0xa2)]('\x20\x20─'[_0x3b020e(0xcd)](0x1e)));for(const _0x3c861d of _0x57e2bc){const _0x2ab32b=_0x4b0501['apps'][_0x3c861d],_0x4a8d53=_0x3c861d===_0x4b0501[_0x3b020e(0xbb)],_0x104891=_0x3c861d===_0x4b0501[_0x3b020e(0x9c)],_0x36af33=_0x104891?a77_0x227cfb[_0x3b020e(0xdb)]('\x20←\x20current'):'',_0x45ae6d=_0x4a8d53?_0x3b020e(0xb4):'';console[_0x3b020e(0xdd)]('\x20\x20'+_0x3c861d+_0x45ae6d+_0x36af33),console[_0x3b020e(0xdd)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2ab32b[_0x3b020e(0xe0)]);const _0x19a026=buildAppDoctorFields(_0x2ab32b,{'env':_0x4b0501[_0x3b020e(0xd4)],'apiDir':_0x4b0501[_0x3b020e(0xbd)][_0x3b020e(0xc2)]||DEFAULT_CONFIG_VALUES[_0x3b020e(0xc2)],'cookie':_0x4b0501[_0x3b020e(0xc0)]||_0x52a887||undefined,'accessKey':_0x4b0501[_0x3b020e(0xc4)]});console[_0x3b020e(0xdd)](_0x3b020e(0x9f)+_0x19a026[_0x3b020e(0xd4)][_0x3b020e(0xe4)]+'\x20\x20'+a77_0x227cfb[_0x3b020e(0xa2)]('('+_0x19a026['env']['source']+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x19a026['apiDir'][_0x3b020e(0xe4)]+'\x20\x20'+a77_0x227cfb[_0x3b020e(0xa2)]('('+_0x19a026[_0x3b020e(0xc2)][_0x3b020e(0x91)]+')'));const _0x3463b7=_0x19a026[_0x3b020e(0xc0)]['value']?a77_0x227cfb['green'](_0x3b020e(0xd0)+_0x19a026[_0x3b020e(0xc0)][_0x3b020e(0xe4)][_0x3b020e(0xe3)]+')'):a77_0x227cfb['gray'](_0x3b020e(0xbc));console[_0x3b020e(0xdd)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x3463b7+'\x20\x20'+a77_0x227cfb[_0x3b020e(0xa2)]('('+_0x19a026[_0x3b020e(0xc0)][_0x3b020e(0x91)]+')'));const _0x53a0ae=_0x19a026['accessKey'][_0x3b020e(0xe4)]?a77_0x227cfb['green']('(set,\x20length='+_0x19a026[_0x3b020e(0xc4)][_0x3b020e(0xe4)][_0x3b020e(0xe3)]+')'):a77_0x227cfb[_0x3b020e(0xa2)](_0x3b020e(0xbc));console[_0x3b020e(0xdd)](_0x3b020e(0xa9)+_0x53a0ae+'\x20\x20'+a77_0x227cfb[_0x3b020e(0xa2)]('('+_0x19a026[_0x3b020e(0xc4)][_0x3b020e(0x91)]+')'));}}console[_0x3b020e(0xdd)](),console[_0x3b020e(0xdd)](a77_0x227cfb['bold'](_0x3b020e(0xcb))),console['log'](a77_0x227cfb[_0x3b020e(0xa2)](_0x3b020e(0xc5)['repeat'](0x1e))),console['log'](_0x3b020e(0xd1)+getApiDomain()),console['log'](_0x3b020e(0xe2)+getUserDomain()),console['log'](_0x3b020e(0xd2)+getRuntimeDomain()),console[_0x3b020e(0xdd)](),console[_0x3b020e(0xdd)](a77_0x227cfb[_0x3b020e(0xbe)](_0x3b020e(0xd9))),console[_0x3b020e(0xdd)](a77_0x227cfb[_0x3b020e(0xa2)](_0x3b020e(0xc5)['repeat'](0x1e)));if(_0x52a887){const _0x174ca5=await getIsSessionValid();console[_0x3b020e(0xdd)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x174ca5?a77_0x227cfb[_0x3b020e(0xdb)](_0x3b020e(0xbf)):a77_0x227cfb[_0x3b020e(0xae)]('✗\x20Expired')));}else console[_0x3b020e(0xdd)](_0x3b020e(0x9b)+a77_0x227cfb['red']('✗\x20Not\x20logged\x20in'));return console[_0x3b020e(0xdd)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x2bb3e3(0xa5),'command':a77_0x2bb3e3(0x92),'description':a77_0x2bb3e3(0xb6),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_0x144368=a78_0x3378;(function(_0x127a87,_0x4bb095){const _0x49add4=a78_0x3378,_0x6a554d=_0x127a87();while(!![]){try{const _0x2a3c6a=-parseInt(_0x49add4(0x1d6))/0x1+-parseInt(_0x49add4(0x1e3))/0x2+parseInt(_0x49add4(0x1e7))/0x3+parseInt(_0x49add4(0x1c7))/0x4*(-parseInt(_0x49add4(0x1d4))/0x5)+-parseInt(_0x49add4(0x1c1))/0x6+parseInt(_0x49add4(0x1d0))/0x7*(-parseInt(_0x49add4(0x1c9))/0x8)+parseInt(_0x49add4(0x1cf))/0x9;if(_0x2a3c6a===_0x4bb095)break;else _0x6a554d['push'](_0x6a554d['shift']());}catch(_0x4cdf84){_0x6a554d['push'](_0x6a554d['shift']());}}}(a78_0x2874,0x8b41e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a78_0x2874(){const _0x25e30a=['custom','appcode','15828606aCVzLN','91693yTDlZp','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','defaultApp','flagMissing','1615205mgMzAL','env','16021svKkRz','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','string','str','Target\x20environment','appCode','some','\x20config','write','App\x20code\x20to\x20initialize\x20with','\x20\x20Default:\x20','log','Auto-confirm\x20prompts','521898bdBnnk','run','检测到旧配置文件,正在自动升级...\x0a','yes','603918cBJQhB','validation','\x20\x20Config:\x20','map','\x0a✓\x20Successfully\x20initialized\x20','global','join','3087312vMQtlr','valid','boolean','../../commands/project/init.js','\x20\x20Apps:\x20','bool','4qBzKBP','production','168lgxNHU','cwd','project','\x20\x20Env:\x20'];a78_0x2874=function(){return _0x25e30a;};return a78_0x2874();}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 a78_0x3378(_0x4a9ed0,_0x44e703){_0x4a9ed0=_0x4a9ed0-0x1bb;const _0x2874c4=a78_0x2874();let _0x3378b6=_0x2874c4[_0x4a9ed0];return _0x3378b6;}function syntheticApp(_0x5a6b26){return{'appCode':_0x5a6b26,'appName':_0x5a6b26};}function writeInitConfig(_0x16c2bc,_0x344ee8,_0x5f1d66){const _0x2c6a81=a78_0x3378,_0x30aa27=resolveWriteConfigPath(_0x16c2bc),_0x564678=buildCanonicalProjectConfig({},{'appCodes':_0x344ee8[_0x2c6a81(0x1bd)](_0x54e141=>_0x54e141[_0x2c6a81(0x1db)]),'env':_0x5f1d66,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x30aa27,_0x564678);const _0x241bf9=_0x16c2bc===_0x2c6a81(0x1bf)?_0x2c6a81(0x1bf):'project';console[_0x2c6a81(0x1e1)](_0x2c6a81(0x1be)+_0x241bf9+_0x2c6a81(0x1dd)),console[_0x2c6a81(0x1e1)](_0x2c6a81(0x1c5)+_0x344ee8[_0x2c6a81(0x1bd)](_0x39eee6=>_0x39eee6['appCode'])[_0x2c6a81(0x1c0)](',\x20')),console[_0x2c6a81(0x1e1)](_0x2c6a81(0x1e0)+_0x564678[_0x2c6a81(0x1d2)]),console[_0x2c6a81(0x1e1)](_0x2c6a81(0x1cc)+_0x564678[_0x2c6a81(0x1d5)]),console['log'](_0x2c6a81(0x1bc)+_0x30aa27);}async function runSmartInit(_0xb2e245){const _0x1880c7=a78_0x3378,_0x4c3a16=process[_0x1880c7(0x1ca)](),_0x170d6c=_0xb2e245[_0x1880c7(0x1c6)](_0x1880c7(0x1bf))?_0x1880c7(0x1bf):_0x1880c7(0x1cb),_0x25d092=_0xb2e245[_0x1880c7(0x1d9)](_0x1880c7(0x1d5))||_0x1880c7(0x1c8),_0x4640cf=_0xb2e245[_0x1880c7(0x1d9)](_0x1880c7(0x1ce))||undefined,_0x163219=_0xb2e245['bool'](_0x1880c7(0x1cb));if(_0x163219){const {initConfig:_0x293bfd}=await import(_0x1880c7(0x1c4));return _0x293bfd({'appcode':_0x4640cf,'env':_0x25d092,'autoYes':_0xb2e245[_0x1880c7(0x1c6)](_0x1880c7(0x1e6))});}if(_0x170d6c===_0x1880c7(0x1cb)){const _0x210d1b=existsSync(resolve(_0x4c3a16,NEW_CONFIG_NAME)),_0x18e02e=LEGACY_CONFIG_NAMES[_0x1880c7(0x1dc)](_0x2b53b0=>existsSync(resolve(_0x4c3a16,_0x2b53b0)));if(_0x18e02e&&!_0x210d1b)return console[_0x1880c7(0x1e1)](_0x1880c7(0x1e5)),upgradeApp(_0xb2e245['nonInteractive'],{'yes':_0xb2e245[_0x1880c7(0x1c6)](_0x1880c7(0x1e6))});if(_0x210d1b)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x4640cf){const _0x3b4d01=validateAppcode(_0x4640cf);if(!_0x3b4d01[_0x1880c7(0x1c2)])throw CliErrors[_0x1880c7(0x1bb)](_0x3b4d01['message']);writeInitConfig(_0x170d6c,[syntheticApp(_0x4640cf)],_0x25d092);return;}if(_0xb2e245['nonInteractive'])throw CliErrors[_0x1880c7(0x1d3)](_0x1880c7(0x1ce),'Usage:\x20'+CLI_BIN_NAME+_0x1880c7(0x1d1));const _0x4e658a=getCookie(),_0x4ac3b4=await selectMultipleApps(_0x4e658a),_0x3cbbb9=_0x4ac3b4===_0x1880c7(0x1cd)?[syntheticApp(await promptCustomAppcode())]:_0x4ac3b4;writeInitConfig(_0x170d6c,_0x3cbbb9,_0x25d092);}const initFlags=[{'name':a78_0x144368(0x1bf),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':'env','type':'string','description':a78_0x144368(0x1da),'default':a78_0x144368(0x1c8),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x144368(0x1ce),'type':a78_0x144368(0x1d8),'description':a78_0x144368(0x1df)},{'name':a78_0x144368(0x1cb),'type':a78_0x144368(0x1c3),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a78_0x144368(0x1e6),'type':a78_0x144368(0x1c3),'description':a78_0x144368(0x1e2),'default':![]}];export const initDefinitions=[{'service':'init','command':a78_0x144368(0x1e4),'description':a78_0x144368(0x1d7),'risk':a78_0x144368(0x1de),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5056ea){return await runSmartInit(_0x5056ea),{'ok':!![]};}}];
1
+ const a78_0x582cf5=a78_0x55c2;(function(_0x324f19,_0x59ead5){const _0x3d376f=a78_0x55c2,_0x175f04=_0x324f19();while(!![]){try{const _0x2b6d95=-parseInt(_0x3d376f(0x188))/0x1*(-parseInt(_0x3d376f(0x1b1))/0x2)+-parseInt(_0x3d376f(0x18d))/0x3+parseInt(_0x3d376f(0x1b3))/0x4*(parseInt(_0x3d376f(0x195))/0x5)+parseInt(_0x3d376f(0x1b6))/0x6*(-parseInt(_0x3d376f(0x186))/0x7)+-parseInt(_0x3d376f(0x185))/0x8*(-parseInt(_0x3d376f(0x1a3))/0x9)+-parseInt(_0x3d376f(0x1ac))/0xa*(-parseInt(_0x3d376f(0x18e))/0xb)+-parseInt(_0x3d376f(0x187))/0xc*(parseInt(_0x3d376f(0x1b7))/0xd);if(_0x2b6d95===_0x59ead5)break;else _0x175f04['push'](_0x175f04['shift']());}catch(_0x22a1a3){_0x175f04['push'](_0x175f04['shift']());}}}(a78_0x4253,0xc6914));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';function a78_0x4253(){const _0x276eec=['2037592OOJHOW','message','appCode','2113728zbJATp','2114801YLBrQI','boolean','toLocaleString','init','32sWxFzg','7pBEdti','180YFTCAF','4lioSzU','production','cwd','defaultApp','\x20\x20Default:\x20','4502928frKbjq','11sErUCJ','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Usage:\x20','\x20\x20Env:\x20','appcode','App\x20code\x20to\x20initialize\x20with','yes','10zJntpf','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','valid','Auto-confirm\x20prompts','Use\x20`','\x0a✓\x20Successfully\x20initialized\x20','flagMissing','some','\x20\x20Apps:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','project','bool','join','validation','2263149QKemFf','map','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','log','global','\x20\x20Config:\x20','str','Write\x20to\x20global\x20config\x20instead\x20of\x20project','run','15081510LWVwmw','env','\x20config','string','write','786980qTFOtv','Target\x20environment'];a78_0x4253=function(){return _0x276eec;};return a78_0x4253();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';function a78_0x55c2(_0x49d79a,_0x22e7ed){_0x49d79a=_0x49d79a-0x184;const _0x42531a=a78_0x4253();let _0x55c28d=_0x42531a[_0x49d79a];return _0x55c28d;}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(_0x15ed7e){return{'appCode':_0x15ed7e,'appName':_0x15ed7e};}function writeInitConfig(_0x2e3479,_0x3d0d07,_0x4ccd32){const _0x219fd2=a78_0x55c2,_0x4f7e1f=resolveWriteConfigPath(_0x2e3479),_0x32d6da=buildCanonicalProjectConfig({},{'appCodes':_0x3d0d07[_0x219fd2(0x1a4)](_0x5d8a8c=>_0x5d8a8c[_0x219fd2(0x1b5)]),'env':_0x4ccd32,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x219fd2(0x1b9)]()}});writeConfigFile(_0x4f7e1f,_0x32d6da);const _0x51d9a0=_0x2e3479==='global'?_0x219fd2(0x1a7):_0x219fd2(0x19f);console[_0x219fd2(0x1a6)](_0x219fd2(0x19a)+_0x51d9a0+_0x219fd2(0x1ae)),console[_0x219fd2(0x1a6)](_0x219fd2(0x19d)+_0x3d0d07[_0x219fd2(0x1a4)](_0x4aa4c0=>_0x4aa4c0[_0x219fd2(0x1b5)])[_0x219fd2(0x1a1)](',\x20')),console[_0x219fd2(0x1a6)](_0x219fd2(0x18c)+_0x32d6da[_0x219fd2(0x18b)]),console[_0x219fd2(0x1a6)](_0x219fd2(0x191)+_0x32d6da[_0x219fd2(0x1ad)]),console[_0x219fd2(0x1a6)](_0x219fd2(0x1a8)+_0x4f7e1f);}async function runSmartInit(_0x46e0f7){const _0x12e0a1=a78_0x55c2,_0x28aebc=process[_0x12e0a1(0x18a)](),_0x561636=_0x46e0f7[_0x12e0a1(0x1a0)](_0x12e0a1(0x1a7))?_0x12e0a1(0x1a7):_0x12e0a1(0x19f),_0x38277d=_0x46e0f7['str'](_0x12e0a1(0x1ad))||_0x12e0a1(0x189),_0xd184b8=_0x46e0f7[_0x12e0a1(0x1a9)]('appcode')||undefined,_0x552782=_0x46e0f7['bool'](_0x12e0a1(0x19f));if(_0x552782){const {initConfig:_0x2f252a}=await import('../../commands/project/init.js');return _0x2f252a({'appcode':_0xd184b8,'env':_0x38277d,'autoYes':_0x46e0f7[_0x12e0a1(0x1a0)]('yes')});}if(_0x561636===_0x12e0a1(0x19f)){const _0xc9e48b=existsSync(resolve(_0x28aebc,NEW_CONFIG_NAME)),_0x3e7260=LEGACY_CONFIG_NAMES[_0x12e0a1(0x19c)](_0x22f96d=>existsSync(resolve(_0x28aebc,_0x22f96d)));if(_0x3e7260&&!_0xc9e48b)return console[_0x12e0a1(0x1a6)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x46e0f7['nonInteractive'],{'yes':_0x46e0f7[_0x12e0a1(0x1a0)](_0x12e0a1(0x194))});if(_0xc9e48b)throw CliErrors[_0x12e0a1(0x1a2)](_0x12e0a1(0x19e),_0x12e0a1(0x199)+CLI_BIN_NAME+_0x12e0a1(0x1a5));}if(_0xd184b8){const _0x274e25=validateAppcode(_0xd184b8);if(!_0x274e25[_0x12e0a1(0x197)])throw CliErrors['validation'](_0x274e25[_0x12e0a1(0x1b4)]);writeInitConfig(_0x561636,[syntheticApp(_0xd184b8)],_0x38277d);return;}if(_0x46e0f7['nonInteractive'])throw CliErrors[_0x12e0a1(0x19b)](_0x12e0a1(0x192),_0x12e0a1(0x190)+CLI_BIN_NAME+_0x12e0a1(0x196));const _0x34e210=getCookie(),_0x2ea122=await selectMultipleApps(_0x34e210),_0x58407f=_0x2ea122==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x2ea122;writeInitConfig(_0x561636,_0x58407f,_0x38277d);}const initFlags=[{'name':a78_0x582cf5(0x1a7),'type':'boolean','description':a78_0x582cf5(0x1aa),'default':![]},{'name':'env','type':a78_0x582cf5(0x1af),'description':a78_0x582cf5(0x1b2),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x582cf5(0x192),'type':a78_0x582cf5(0x1af),'description':a78_0x582cf5(0x193)},{'name':'project','type':a78_0x582cf5(0x1b8),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a78_0x582cf5(0x194),'type':a78_0x582cf5(0x1b8),'description':a78_0x582cf5(0x198),'default':![]}];export const initDefinitions=[{'service':a78_0x582cf5(0x184),'command':a78_0x582cf5(0x1ab),'description':a78_0x582cf5(0x18f),'risk':a78_0x582cf5(0x1b0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x395cae){return await runSmartInit(_0x395cae),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0xfafa2f,_0x1c82da){const _0x19796a=a79_0x501f,_0x119717=_0xfafa2f();while(!![]){try{const _0x4bc10f=parseInt(_0x19796a(0x19f))/0x1+-parseInt(_0x19796a(0x1a1))/0x2+-parseInt(_0x19796a(0x1a3))/0x3+-parseInt(_0x19796a(0x1a0))/0x4+-parseInt(_0x19796a(0x1a4))/0x5*(-parseInt(_0x19796a(0x1a2))/0x6)+-parseInt(_0x19796a(0x1a5))/0x7+-parseInt(_0x19796a(0x19e))/0x8*(-parseInt(_0x19796a(0x1a6))/0x9);if(_0x4bc10f===_0x1c82da)break;else _0x119717['push'](_0x119717['shift']());}catch(_0x9d839d){_0x119717['push'](_0x119717['shift']());}}}(a79_0xf444,0x2203a));import{issueReport}from'../../commands/issue/report.js';function a79_0xf444(){const _0x5098ca=['493836uyvflt','4539690KVQkFv','8stVFNT','108722LYykyQ','511088kPHwcN','544908TtxYAp','18pciJCf','572094HccNzi','312770BjGLxC'];a79_0xf444=function(){return _0x5098ca;};return a79_0xf444();}function a79_0x501f(_0x4b00fd,_0x4e87f0){_0x4b00fd=_0x4b00fd-0x19e;const _0xf4442a=a79_0xf444();let _0x501f53=_0xf4442a[_0x4b00fd];return _0x501f53;}export const issueDefinitions=[issueReport];
1
+ (function(_0xe17ec2,_0x485092){const _0x3c5305=a79_0x37e3,_0x31131b=_0xe17ec2();while(!![]){try{const _0x480740=-parseInt(_0x3c5305(0x1ed))/0x1+-parseInt(_0x3c5305(0x1e6))/0x2+-parseInt(_0x3c5305(0x1e9))/0x3+parseInt(_0x3c5305(0x1e7))/0x4+-parseInt(_0x3c5305(0x1ec))/0x5+parseInt(_0x3c5305(0x1e8))/0x6+parseInt(_0x3c5305(0x1eb))/0x7*(parseInt(_0x3c5305(0x1ea))/0x8);if(_0x480740===_0x485092)break;else _0x31131b['push'](_0x31131b['shift']());}catch(_0x436e18){_0x31131b['push'](_0x31131b['shift']());}}}(a79_0x5472,0x40370));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a79_0x37e3(_0xb79cf2,_0x5276a4){_0xb79cf2=_0xb79cf2-0x1e6;const _0x5472b9=a79_0x5472();let _0x37e3eb=_0x5472b9[_0xb79cf2];return _0x37e3eb;}function a79_0x5472(){const _0x1a8b78=['1199586rInYNJ','538611eSdZqE','268256wDbSTk','112ljdDHt','123770VySLUl','61440nDSods','986698BgcqmL','1142644hJttKd'];a79_0x5472=function(){return _0x1a8b78;};return a79_0x5472();}
@@ -1 +1 @@
1
- const a80_0x508571=a80_0x552f;(function(_0x4537ae,_0x276320){const _0x228ffb=a80_0x552f,_0x580d62=_0x4537ae();while(!![]){try{const _0x11fb59=-parseInt(_0x228ffb(0x1f0))/0x1*(parseInt(_0x228ffb(0x1f1))/0x2)+-parseInt(_0x228ffb(0x1ee))/0x3*(-parseInt(_0x228ffb(0x1fa))/0x4)+parseInt(_0x228ffb(0x1f8))/0x5*(-parseInt(_0x228ffb(0x1e2))/0x6)+-parseInt(_0x228ffb(0x1ef))/0x7*(-parseInt(_0x228ffb(0x1d8))/0x8)+-parseInt(_0x228ffb(0x1f7))/0x9*(parseInt(_0x228ffb(0x1e0))/0xa)+parseInt(_0x228ffb(0x1e6))/0xb*(-parseInt(_0x228ffb(0x1df))/0xc)+-parseInt(_0x228ffb(0x1ed))/0xd*(-parseInt(_0x228ffb(0x1f4))/0xe);if(_0x11fb59===_0x276320)break;else _0x580d62['push'](_0x580d62['shift']());}catch(_0x305105){_0x580d62['push'](_0x580d62['shift']());}}}(a80_0x5bb7,0x888cc));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0x5bb7(){const _0x1a3c08=['\x20issue\x20report\x20\x5c','\x20\x20Set\x20','cancelled','1184jhEhWF','config_missing','not_in_project','\x20\x20\x20\x20--title\x20\x22','message','trim','stderr','60FVkSuE','46630dYUStK','Hit\x20a\x20','6VmHifR','slice','command','\x20bug?\x20Help\x20us\x20fix\x20it:','2236861yuiuor','code','RABETBASE_DISABLE_ISSUE_NUDGE','\x22\x20\x5c','validation_error','unknown_command','flag_missing','637RgvOed','33ObzhXr','41027vCgabK','12689zozyMW','164FGhPfp','join','replace','557942lVkYkp','length','service','1251bNUayB','1513685GfWgHv','=1\x20to\x20silence\x20this\x20hint.','271720xlcmiT','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)'];a80_0x5bb7=function(){return _0x1a3c08;};return a80_0x5bb7();}export const NUDGE_OPT_OUT_ENV=a80_0x508571(0x1e8);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x508571(0x1d7),'auth_required',a80_0x508571(0x1d9),a80_0x508571(0x1da),a80_0x508571(0x1eb),a80_0x508571(0x1ec),a80_0x508571(0x1ea),'network_error']),defaultWriter=_0x51ea8c=>{const _0x3a550e=a80_0x508571;process[_0x3a550e(0x1de)]['write'](_0x51ea8c);};function a80_0x552f(_0x4bfbc6,_0xb309f6){_0x4bfbc6=_0x4bfbc6-0x1d4;const _0x5bb77d=a80_0x5bb7();let _0x552f8f=_0x5bb77d[_0x4bfbc6];return _0x552f8f;}export function shouldNudgeForError(_0x511e04,_0x345f8e){const _0x311ab2=a80_0x508571;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x345f8e[_0x311ab2(0x1f6)]==='issue'&&_0x345f8e[_0x311ab2(0x1e4)]==='report')return![];if(_0x511e04 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x511e04[_0x311ab2(0x1e7)]);return!![];}export function printIssueReportNudgeForError(_0x50eda4,_0x31fafd,_0x3e6604=defaultWriter){if(!shouldNudgeForError(_0x50eda4,_0x31fafd))return;const _0x4fa5a0=buildSuggestedTitle(_0x50eda4,_0x31fafd);_0x3e6604(formatNudge(_0x4fa5a0));}function buildSuggestedTitle(_0xcabfaa,_0x28877d){const _0x16d15a=a80_0x508571,_0x1ac88e=_0xcabfaa instanceof Error?_0xcabfaa[_0x16d15a(0x1dc)]:String(_0xcabfaa),_0x257043=_0x1ac88e['replace'](/[\r\n]+/g,'\x20')[_0x16d15a(0x1f3)](/\s+/g,'\x20')[_0x16d15a(0x1dd)]()[_0x16d15a(0x1e3)](0x0,0x78)[_0x16d15a(0x1f3)](/"/g,'\x5c\x22'),_0x204d76=CLI_BIN_NAME+'\x20'+_0x28877d['service']+'\x20'+_0x28877d[_0x16d15a(0x1e4)];return _0x257043[_0x16d15a(0x1f5)]>0x0?_0x204d76+':\x20'+_0x257043:_0x204d76;}function formatNudge(_0x33a892){const _0x12cfd2=a80_0x508571;return['',_0x12cfd2(0x1e1)+CLI_BIN_NAME+_0x12cfd2(0x1e5),'\x20\x20'+CLI_BIN_NAME+_0x12cfd2(0x1d5),_0x12cfd2(0x1db)+_0x33a892+_0x12cfd2(0x1e9),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x12cfd2(0x1d4),_0x12cfd2(0x1d6)+NUDGE_OPT_OUT_ENV+_0x12cfd2(0x1f9),''][_0x12cfd2(0x1f2)]('\x0a');}
1
+ const a80_0x240525=a80_0x70dd;function a80_0x5e60(){const _0xebed57=['505287fewKLX','\x22\x20\x5c','Hit\x20a\x20','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','issue','write','=1\x20to\x20silence\x20this\x20hint.','config_missing','\x20\x20Set\x20','not_in_project','slice','join','trim','validation_error','report','stderr','network_error','length','59913aXOPgK','cancelled','4IAgizf','\x20issue\x20report\x20\x5c','1849530voDutG','code','replace','command','has','20EPkpWn','flag_missing','RABETBASE_DISABLE_ISSUE_NUDGE','1042485ybqiZO','9360549MOZBRS','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','1428LFNpwG','2360313FhFbec','648DuVvnN','469PeEUWw','service','message','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:'];a80_0x5e60=function(){return _0xebed57;};return a80_0x5e60();}(function(_0x599eff,_0xd94708){const _0x30fa97=a80_0x70dd,_0x376ee2=_0x599eff();while(!![]){try{const _0xbe0f4c=parseInt(_0x30fa97(0x145))/0x1*(-parseInt(_0x30fa97(0x142))/0x2)+parseInt(_0x30fa97(0x143))/0x3+-parseInt(_0x30fa97(0x135))/0x4*(-parseInt(_0x30fa97(0x13f))/0x5)+-parseInt(_0x30fa97(0x137))/0x6+parseInt(_0x30fa97(0x133))/0x7*(-parseInt(_0x30fa97(0x144))/0x8)+parseInt(_0x30fa97(0x121))/0x9*(-parseInt(_0x30fa97(0x13c))/0xa)+parseInt(_0x30fa97(0x140))/0xb;if(_0xbe0f4c===_0xd94708)break;else _0x376ee2['push'](_0x376ee2['shift']());}catch(_0x3fd36a){_0x376ee2['push'](_0x376ee2['shift']());}}}(a80_0x5e60,0x610e5));function a80_0x70dd(_0x4192ec,_0x292f54){_0x4192ec=_0x4192ec-0x11f;const _0x5e6005=a80_0x5e60();let _0x70dd14=_0x5e6005[_0x4192ec];return _0x70dd14;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x240525(0x13e);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x240525(0x134),'auth_required',a80_0x240525(0x128),a80_0x240525(0x12a),a80_0x240525(0x11f),a80_0x240525(0x13d),a80_0x240525(0x12e),a80_0x240525(0x131)]),defaultWriter=_0x513137=>{const _0x37bb82=a80_0x240525;process[_0x37bb82(0x130)][_0x37bb82(0x126)](_0x513137);};export function shouldNudgeForError(_0x1e367b,_0x22b520){const _0x5a5377=a80_0x240525;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x22b520['service']===_0x5a5377(0x125)&&_0x22b520[_0x5a5377(0x13a)]===_0x5a5377(0x12f))return![];if(_0x1e367b instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5a5377(0x13b)](_0x1e367b[_0x5a5377(0x138)]);return!![];}export function printIssueReportNudgeForError(_0x27abad,_0x28bc81,_0x2400de=defaultWriter){if(!shouldNudgeForError(_0x27abad,_0x28bc81))return;const _0x3774a5=buildSuggestedTitle(_0x27abad,_0x28bc81);_0x2400de(formatNudge(_0x3774a5));}function buildSuggestedTitle(_0x40b58c,_0x5535a1){const _0x5eac3f=a80_0x240525,_0x3a7cd2=_0x40b58c instanceof Error?_0x40b58c[_0x5eac3f(0x147)]:String(_0x40b58c),_0x11abbd=_0x3a7cd2[_0x5eac3f(0x139)](/[\r\n]+/g,'\x20')[_0x5eac3f(0x139)](/\s+/g,'\x20')[_0x5eac3f(0x12d)]()[_0x5eac3f(0x12b)](0x0,0x78)[_0x5eac3f(0x139)](/"/g,'\x5c\x22'),_0x45848e=CLI_BIN_NAME+'\x20'+_0x5535a1[_0x5eac3f(0x146)]+'\x20'+_0x5535a1[_0x5eac3f(0x13a)];return _0x11abbd[_0x5eac3f(0x132)]>0x0?_0x45848e+':\x20'+_0x11abbd:_0x45848e;}function formatNudge(_0x11b36e){const _0x3b956b=a80_0x240525;return['',_0x3b956b(0x123)+CLI_BIN_NAME+_0x3b956b(0x120),'\x20\x20'+CLI_BIN_NAME+_0x3b956b(0x136),'\x20\x20\x20\x20--title\x20\x22'+_0x11b36e+_0x3b956b(0x122),_0x3b956b(0x141),_0x3b956b(0x124),_0x3b956b(0x129)+NUDGE_OPT_OUT_ENV+_0x3b956b(0x127),''][_0x3b956b(0x12c)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x8095c7=a81_0x4cd8;(function(_0x54c680,_0x1e42fe){const _0x2345b0=a81_0x4cd8,_0x177c26=_0x54c680();while(!![]){try{const _0x54e56a=-parseInt(_0x2345b0(0x1da))/0x1*(parseInt(_0x2345b0(0x1f9))/0x2)+-parseInt(_0x2345b0(0x207))/0x3+-parseInt(_0x2345b0(0x1ee))/0x4*(-parseInt(_0x2345b0(0x1d0))/0x5)+-parseInt(_0x2345b0(0x1dd))/0x6+-parseInt(_0x2345b0(0x1d1))/0x7+parseInt(_0x2345b0(0x1fb))/0x8*(parseInt(_0x2345b0(0x1ff))/0x9)+-parseInt(_0x2345b0(0x208))/0xa*(-parseInt(_0x2345b0(0x1e3))/0xb);if(_0x54e56a===_0x1e42fe)break;else _0x177c26['push'](_0x177c26['shift']());}catch(_0x1da4da){_0x177c26['push'](_0x177c26['shift']());}}}(a81_0x4772,0x4f958));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a81_0x4772(){const _0x445dcf=['descriptionSource','issue','3168828EkXqCJ','validation','description-file','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','report','descriptionFile:\x20','4598SyUrTm','redacted\x20','file','issue.description','One-line\x20issue\x20summary','redactionCount','string','title','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Platform\x20issue\x20reported\x20(','\x20secret(s):\x20','4LwDAdn','issue.title','issue.description_original_bytes','truncated\x20from\x20','cwd','descriptionSource:\x20','join','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','str','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','originalBytes','1032802OUNDdN','truncated','672TzJcOb','issue.description_redactions','descriptionFilePath','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','68814oyWebp','sanitize','Issue\x20description\x20file\x20is\x20empty:\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactionKinds','Platform\x20issue\x20reported','utf8','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','1129410bBNoYZ','17470MvXEOY','\x20bytes','flagMissing','message','filter','trim','inline','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','2943275aHExYb','1499260oJYpMr','length','description','Failed\x20to\x20report\x20platform\x20issue:\x20','otel://','apiError','File\x20not\x20found:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue.description_truncated','1qnVLBT'];a81_0x4772=function(){return _0x445dcf;};return a81_0x4772();}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_0x8095c7(0x1df);export const issueReport={'service':a81_0x8095c7(0x1dc),'command':a81_0x8095c7(0x1e1),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x8095c7(0x1ea),'type':a81_0x8095c7(0x1e9),'required':!![],'description':a81_0x8095c7(0x1e7)},{'name':a81_0x8095c7(0x1d3),'type':a81_0x8095c7(0x1e9),'description':a81_0x8095c7(0x1cf)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a81_0x8095c7(0x1e0)}],async 'validate'(_0x8e171a){const _0x5b5c72=a81_0x8095c7,_0x2b2eed=_0x8e171a[_0x5b5c72(0x1f6)]('title')['trim'](),_0x436228=_0x8e171a[_0x5b5c72(0x1f6)](_0x5b5c72(0x1d3))[_0x5b5c72(0x1cd)](),_0x2d7127=_0x8e171a['str'](DESCRIPTION_FILE_FLAG)[_0x5b5c72(0x1cd)]();if(!_0x2b2eed)throw CliErrors[_0x5b5c72(0x20a)](_0x5b5c72(0x1ea),_0x5b5c72(0x1fe));const _0x44a697=_0x436228[_0x5b5c72(0x1d2)]>0x0,_0x4dea1d=_0x2d7127['length']>0x0;if(_0x44a697===_0x4dea1d)throw CliErrors[_0x5b5c72(0x1de)](_0x5b5c72(0x1f5),_0x5b5c72(0x1d8));if(_0x4dea1d){const _0x599c34=resolve(process[_0x5b5c72(0x1f2)](),_0x2d7127);if(!existsSync(_0x599c34))throw CliErrors['validation'](_0x5b5c72(0x1d7)+_0x599c34);}},async 'dryRun'(_0x4f7e01){const _0xf0efe2=a81_0x8095c7,_0x348fa1=await prepareIssueReport(_0x4f7e01);return{'method':'POST','url':_0xf0efe2(0x1d5)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x348fa1['title'],'issue.description':_0x348fa1[_0xf0efe2(0x1d3)],'issue.description_original_bytes':_0x348fa1[_0xf0efe2(0x200)][_0xf0efe2(0x1f8)],'issue.description_truncated':_0x348fa1[_0xf0efe2(0x200)][_0xf0efe2(0x1fa)],'issue.description_redactions':_0x348fa1['sanitize'][_0xf0efe2(0x1e8)],'issue.description_redaction_kinds':_0x348fa1[_0xf0efe2(0x200)]['redactionKinds'][_0xf0efe2(0x1f4)](',')}},'description':[_0xf0efe2(0x206),_0xf0efe2(0x1f3)+_0x348fa1[_0xf0efe2(0x1db)],_0x348fa1[_0xf0efe2(0x1fd)]?_0xf0efe2(0x1e2)+_0x348fa1[_0xf0efe2(0x1fd)]:null,_0x348fa1[_0xf0efe2(0x200)][_0xf0efe2(0x1fa)]?'truncated:\x20original\x20'+_0x348fa1['sanitize']['originalBytes']+_0xf0efe2(0x209):null,_0x348fa1[_0xf0efe2(0x200)][_0xf0efe2(0x1e8)]>0x0?'redactions:\x20'+_0x348fa1[_0xf0efe2(0x200)][_0xf0efe2(0x1e8)]+'\x20('+_0x348fa1['sanitize'][_0xf0efe2(0x203)][_0xf0efe2(0x1f4)](',\x20')+')':null][_0xf0efe2(0x20c)](Boolean)[_0xf0efe2(0x1f4)]('\x0a')};},async 'execute'(_0x2b60d2){const _0x221ebc=a81_0x8095c7,_0x4f18c8=await prepareIssueReport(_0x2b60d2);try{await sendPlatformIssueCollectLog({'title':_0x4f18c8['title'],'description':_0x4f18c8[_0x221ebc(0x1d3)],'sanitize':{'originalBytes':_0x4f18c8[_0x221ebc(0x200)][_0x221ebc(0x1f8)],'truncated':_0x4f18c8[_0x221ebc(0x200)]['truncated'],'redactionCount':_0x4f18c8[_0x221ebc(0x200)][_0x221ebc(0x1e8)],'redactionKinds':_0x4f18c8[_0x221ebc(0x200)][_0x221ebc(0x203)]}});}catch(_0x535f6f){throw CliErrors[_0x221ebc(0x1d6)](_0x221ebc(0x1d4)+(_0x535f6f instanceof Error?_0x535f6f[_0x221ebc(0x20b)]:String(_0x535f6f)),_0x221ebc(0x1eb));}return{'ok':!![],'message':buildResultMessage(_0x4f18c8['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x221ebc(0x1ef),_0x221ebc(0x1e6),_0x221ebc(0x1f0),_0x221ebc(0x1d9),_0x221ebc(0x1fc),'issue.description_redaction_kinds'],'issue':{'title':_0x4f18c8['title'],'descriptionLength':_0x4f18c8[_0x221ebc(0x1d3)][_0x221ebc(0x1d2)],'descriptionSource':_0x4f18c8[_0x221ebc(0x1db)],..._0x4f18c8['descriptionFilePath']?{'descriptionFile':_0x4f18c8['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x4f18c8[_0x221ebc(0x200)]['originalBytes'],'truncated':_0x4f18c8['sanitize'][_0x221ebc(0x1fa)],'redactions':_0x4f18c8[_0x221ebc(0x200)][_0x221ebc(0x1e8)],'redactionKinds':_0x4f18c8[_0x221ebc(0x200)]['redactionKinds']}}}};}};function buildResultMessage(_0x1ab6db){const _0x266af9=a81_0x8095c7,_0x595e1a=[];return _0x1ab6db['truncated']&&_0x595e1a['push'](_0x266af9(0x1f1)+_0x1ab6db[_0x266af9(0x1f8)]+_0x266af9(0x209)),_0x1ab6db[_0x266af9(0x1e8)]>0x0&&_0x595e1a['push'](_0x266af9(0x1e4)+_0x1ab6db['redactionCount']+_0x266af9(0x1ed)+_0x1ab6db[_0x266af9(0x203)][_0x266af9(0x1f4)](',\x20')),_0x595e1a['length']===0x0?_0x266af9(0x204):_0x266af9(0x1ec)+_0x595e1a[_0x266af9(0x1f4)](';\x20')+')';}function a81_0x4cd8(_0x3ed592,_0x1ccbc1){_0x3ed592=_0x3ed592-0x1cd;const _0x4772b2=a81_0x4772();let _0x4cd8f1=_0x4772b2[_0x3ed592];return _0x4cd8f1;}async function prepareIssueReport(_0x1bb1a7){const _0x5257a2=a81_0x8095c7,_0x4e8fcc=_0x1bb1a7[_0x5257a2(0x1f6)](_0x5257a2(0x1ea))[_0x5257a2(0x1cd)](),_0x296bb8=_0x1bb1a7[_0x5257a2(0x1f6)](_0x5257a2(0x1d3)),_0x102662=_0x1bb1a7[_0x5257a2(0x1f6)](DESCRIPTION_FILE_FLAG)[_0x5257a2(0x1cd)]();if(!_0x102662){const _0x30985a=_0x296bb8;if(!_0x30985a[_0x5257a2(0x1cd)]())throw CliErrors[_0x5257a2(0x1de)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x5257a2(0x202));const _0x1986d7=sanitizeIssueDescription(_0x30985a);return{'title':_0x4e8fcc,'description':_0x1986d7[_0x5257a2(0x1d3)],'descriptionSource':_0x5257a2(0x1ce),'sanitize':_0x1986d7};}const _0x4e6e31=resolve(process[_0x5257a2(0x1f2)](),_0x102662),_0x45c951=await readFile(_0x4e6e31,_0x5257a2(0x205));if(!_0x45c951['trim']())throw CliErrors[_0x5257a2(0x1de)](_0x5257a2(0x201)+_0x4e6e31,_0x5257a2(0x1f7));const _0x174172=sanitizeIssueDescription(_0x45c951);return{'title':_0x4e8fcc,'description':_0x174172[_0x5257a2(0x1d3)],'descriptionSource':_0x5257a2(0x1e5),'descriptionFilePath':_0x4e6e31,'sanitize':_0x174172};}
1
+ const a81_0x1d751a=a81_0x3990;(function(_0x55c028,_0x1e786e){const _0x105de1=a81_0x3990,_0x597805=_0x55c028();while(!![]){try{const _0x2f9d67=-parseInt(_0x105de1(0x14e))/0x1*(parseInt(_0x105de1(0x149))/0x2)+parseInt(_0x105de1(0x159))/0x3+-parseInt(_0x105de1(0x144))/0x4*(-parseInt(_0x105de1(0x151))/0x5)+-parseInt(_0x105de1(0x160))/0x6*(parseInt(_0x105de1(0x152))/0x7)+-parseInt(_0x105de1(0x171))/0x8+parseInt(_0x105de1(0x137))/0x9*(parseInt(_0x105de1(0x161))/0xa)+-parseInt(_0x105de1(0x167))/0xb*(parseInt(_0x105de1(0x15d))/0xc);if(_0x2f9d67===_0x1e786e)break;else _0x597805['push'](_0x597805['shift']());}catch(_0x33c60b){_0x597805['push'](_0x597805['shift']());}}}(a81_0x1a5c,0x5452f));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a81_0x1a5c(){const _0x5f39eb=['sanitize','1348966QgZrCJ','One-line\x20issue\x20summary','File\x20not\x20found:\x20','redactionCount','filter','1mXdbUu','redactionKinds','issue.description_original_bytes','1379185CNVMjG','161ndKafQ','originalBytes','issue.description_truncated','compress','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','apiError','string','1546860TgisMC','redacted\x20','POST','descriptionFilePath','504rkJbzI','issue.title','validation','25638kHydqm','68990OUCvFh','\x20bytes','trim','issue.description','push','cwd','1925ajDHxf','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description','length','inline','join','truncated:\x20original\x20','truncated','message','issue.description_redactions','2349120RoaMwV','descriptionSource','descriptionFile:\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','description-file','459VweANA','flagMissing','Issue\x20description\x20file\x20is\x20empty:\x20','issue.description_redaction_kinds','otel://','str','write','title','issue','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Platform\x20issue\x20reported\x20(','report','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','8wxPebI','redactions:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','Issue\x20description\x20cannot\x20be\x20empty.'];a81_0x1a5c=function(){return _0x5f39eb;};return a81_0x1a5c();}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_0x1d751a(0x136);function a81_0x3990(_0xe90d4,_0x1bc28b){_0xe90d4=_0xe90d4-0x136;const _0x1a5cb0=a81_0x1a5c();let _0x399021=_0x1a5cb0[_0xe90d4];return _0x399021;}export const issueReport={'service':a81_0x1d751a(0x13f),'command':a81_0x1d751a(0x142),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a81_0x1d751a(0x13d),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x1d751a(0x155),'flags':[{'name':a81_0x1d751a(0x13e),'type':a81_0x1d751a(0x158),'required':!![],'description':a81_0x1d751a(0x14a)},{'name':'description','type':a81_0x1d751a(0x158),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x1d751a(0x158),'description':a81_0x1d751a(0x174)}],async 'validate'(_0x2e7077){const _0x5882df=a81_0x1d751a,_0x2ab793=_0x2e7077['str'](_0x5882df(0x13e))[_0x5882df(0x163)](),_0x17035a=_0x2e7077[_0x5882df(0x13c)](_0x5882df(0x169))[_0x5882df(0x163)](),_0x3cdef4=_0x2e7077[_0x5882df(0x13c)](DESCRIPTION_FILE_FLAG)[_0x5882df(0x163)]();if(!_0x2ab793)throw CliErrors[_0x5882df(0x138)](_0x5882df(0x13e),_0x5882df(0x175));const _0xd9834d=_0x17035a['length']>0x0,_0x1386c3=_0x3cdef4['length']>0x0;if(_0xd9834d===_0x1386c3)throw CliErrors[_0x5882df(0x15f)](_0x5882df(0x143),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x1386c3){const _0x22089f=resolve(process[_0x5882df(0x166)](),_0x3cdef4);if(!existsSync(_0x22089f))throw CliErrors['validation'](_0x5882df(0x14b)+_0x22089f);}},async 'dryRun'(_0x341597){const _0x4b917f=a81_0x1d751a,_0x3dfb5a=await prepareIssueReport(_0x341597);return{'method':_0x4b917f(0x15b),'url':_0x4b917f(0x13b)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3dfb5a[_0x4b917f(0x13e)],'issue.description':_0x3dfb5a[_0x4b917f(0x169)],'issue.description_original_bytes':_0x3dfb5a['sanitize'][_0x4b917f(0x153)],'issue.description_truncated':_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x16e)],'issue.description_redactions':_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x14c)],'issue.description_redaction_kinds':_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x14f)][_0x4b917f(0x16c)](',')}},'description':[_0x4b917f(0x156),'descriptionSource:\x20'+_0x3dfb5a[_0x4b917f(0x172)],_0x3dfb5a['descriptionFilePath']?_0x4b917f(0x173)+_0x3dfb5a[_0x4b917f(0x15c)]:null,_0x3dfb5a[_0x4b917f(0x148)]['truncated']?_0x4b917f(0x16d)+_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x153)]+_0x4b917f(0x162):null,_0x3dfb5a['sanitize'][_0x4b917f(0x14c)]>0x0?_0x4b917f(0x145)+_0x3dfb5a['sanitize'][_0x4b917f(0x14c)]+'\x20('+_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x14f)][_0x4b917f(0x16c)](',\x20')+')':null][_0x4b917f(0x14d)](Boolean)[_0x4b917f(0x16c)]('\x0a')};},async 'execute'(_0x159bba){const _0x1f83e4=a81_0x1d751a,_0x42d701=await prepareIssueReport(_0x159bba);try{await sendPlatformIssueCollectLog({'title':_0x42d701[_0x1f83e4(0x13e)],'description':_0x42d701[_0x1f83e4(0x169)],'sanitize':{'originalBytes':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x153)],'truncated':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x16e)],'redactionCount':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x14c)],'redactionKinds':_0x42d701[_0x1f83e4(0x148)]['redactionKinds']}});}catch(_0x5aaf55){throw CliErrors[_0x1f83e4(0x157)](_0x1f83e4(0x146)+(_0x5aaf55 instanceof Error?_0x5aaf55[_0x1f83e4(0x16f)]:String(_0x5aaf55)),_0x1f83e4(0x140));}return{'ok':!![],'message':buildResultMessage(_0x42d701['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1f83e4(0x15e),_0x1f83e4(0x164),_0x1f83e4(0x150),_0x1f83e4(0x154),_0x1f83e4(0x170),_0x1f83e4(0x13a)],'issue':{'title':_0x42d701['title'],'descriptionLength':_0x42d701[_0x1f83e4(0x169)][_0x1f83e4(0x16a)],'descriptionSource':_0x42d701[_0x1f83e4(0x172)],..._0x42d701['descriptionFilePath']?{'descriptionFile':_0x42d701[_0x1f83e4(0x15c)]}:{},'sanitize':{'originalBytes':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x153)],'truncated':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x16e)],'redactions':_0x42d701[_0x1f83e4(0x148)]['redactionCount'],'redactionKinds':_0x42d701['sanitize'][_0x1f83e4(0x14f)]}}}};}};function buildResultMessage(_0x33e3c5){const _0x20def1=a81_0x1d751a,_0x546b6e=[];return _0x33e3c5[_0x20def1(0x16e)]&&_0x546b6e[_0x20def1(0x165)]('truncated\x20from\x20'+_0x33e3c5[_0x20def1(0x153)]+_0x20def1(0x162)),_0x33e3c5[_0x20def1(0x14c)]>0x0&&_0x546b6e[_0x20def1(0x165)](_0x20def1(0x15a)+_0x33e3c5[_0x20def1(0x14c)]+'\x20secret(s):\x20'+_0x33e3c5[_0x20def1(0x14f)][_0x20def1(0x16c)](',\x20')),_0x546b6e[_0x20def1(0x16a)]===0x0?'Platform\x20issue\x20reported':_0x20def1(0x141)+_0x546b6e[_0x20def1(0x16c)](';\x20')+')';}async function prepareIssueReport(_0x24d5b7){const _0x23d2a1=a81_0x1d751a,_0x3ab4b1=_0x24d5b7['str'](_0x23d2a1(0x13e))[_0x23d2a1(0x163)](),_0x335406=_0x24d5b7['str'](_0x23d2a1(0x169)),_0x4e6fa9=_0x24d5b7['str'](DESCRIPTION_FILE_FLAG)[_0x23d2a1(0x163)]();if(!_0x4e6fa9){const _0x5d91d4=_0x335406;if(!_0x5d91d4[_0x23d2a1(0x163)]())throw CliErrors[_0x23d2a1(0x15f)](_0x23d2a1(0x147),_0x23d2a1(0x168));const _0xd851d2=sanitizeIssueDescription(_0x5d91d4);return{'title':_0x3ab4b1,'description':_0xd851d2[_0x23d2a1(0x169)],'descriptionSource':_0x23d2a1(0x16b),'sanitize':_0xd851d2};}const _0x49f034=resolve(process[_0x23d2a1(0x166)](),_0x4e6fa9),_0x5d55ff=await readFile(_0x49f034,'utf8');if(!_0x5d55ff[_0x23d2a1(0x163)]())throw CliErrors[_0x23d2a1(0x15f)](_0x23d2a1(0x139)+_0x49f034,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x3152b9=sanitizeIssueDescription(_0x5d55ff);return{'title':_0x3ab4b1,'description':_0x3152b9[_0x23d2a1(0x169)],'descriptionSource':'file','descriptionFilePath':_0x49f034,'sanitize':_0x3152b9};}
@@ -1 +1 @@
1
- function a82_0x33f7(_0x1ed3ca,_0x11f8ad){_0x1ed3ca=_0x1ed3ca-0x18f;const _0x382422=a82_0x3824();let _0x33f704=_0x382422[_0x1ed3ca];return _0x33f704;}const a82_0x2a3faf=a82_0x33f7;(function(_0x494cc9,_0x2809a4){const _0x4776cb=a82_0x33f7,_0x40d3e3=_0x494cc9();while(!![]){try{const _0x3a2de2=parseInt(_0x4776cb(0x192))/0x1*(parseInt(_0x4776cb(0x1a2))/0x2)+-parseInt(_0x4776cb(0x196))/0x3+parseInt(_0x4776cb(0x197))/0x4*(parseInt(_0x4776cb(0x1ac))/0x5)+-parseInt(_0x4776cb(0x194))/0x6*(-parseInt(_0x4776cb(0x1a5))/0x7)+-parseInt(_0x4776cb(0x19b))/0x8+parseInt(_0x4776cb(0x198))/0x9+-parseInt(_0x4776cb(0x1a9))/0xa;if(_0x3a2de2===_0x2809a4)break;else _0x40d3e3['push'](_0x40d3e3['shift']());}catch(_0x4d0270){_0x40d3e3['push'](_0x40d3e3['shift']());}}}(a82_0x3824,0x1aa0c));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a82_0x3824(){const _0x523d65=['byteLength','authorization','from','77923CmuRab','toString','6CUimcH','max','446193CrDuAa','25220vuXQaV','1015596MOTNVk','replace','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','540560SBKRzK','subarray','cookie','label','REDACTED:cookie','utf8','kind','4hNCwMx','REDACTED:access-key','password','1513946xGfpEQ','private-key','REDACTED:password','string','1659040YrRJxK','pattern','bearer-jwt','5bFEXEx'];a82_0x3824=function(){return _0x523d65;};return a82_0x3824();}const TRUNCATION_NOTICE=a82_0x2a3faf(0x19a),REDACTION_RULES=[{'kind':a82_0x2a3faf(0x19d),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x2a3faf(0x19f)},{'kind':a82_0x2a3faf(0x190),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a82_0x2a3faf(0x1a6),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x2a3faf(0x1a3)},{'kind':a82_0x2a3faf(0x1a4),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x2a3faf(0x1a7)},{'kind':a82_0x2a3faf(0x1ab),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x43be3d){const _0x3b4f4c=a82_0x2a3faf,_0xe42784=Buffer[_0x3b4f4c(0x18f)](_0x43be3d,_0x3b4f4c(0x1a0)),_0x36d71b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x37dcdb=_0x43be3d,_0x3c0183=0x0;const _0x4d51c1=[];if(!_0x36d71b)for(const _0x18cae6 of REDACTION_RULES){let _0x3a73d6=0x0;_0x37dcdb=_0x37dcdb[_0x3b4f4c(0x199)](_0x18cae6[_0x3b4f4c(0x1aa)],(_0x2d5b04,_0x36e7d9)=>{const _0x215c09=_0x3b4f4c;_0x3a73d6+=0x1;const _0x283a4e=typeof _0x36e7d9===_0x215c09(0x1a8)?_0x36e7d9:'';return _0x283a4e+'['+_0x18cae6[_0x215c09(0x19e)]+']';}),_0x3a73d6>0x0&&(_0x3c0183+=_0x3a73d6,!_0x4d51c1['includes'](_0x18cae6[_0x3b4f4c(0x1a1)])&&_0x4d51c1['push'](_0x18cae6[_0x3b4f4c(0x1a1)]));}let _0x8454f8=![];if(Buffer['byteLength'](_0x37dcdb,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x8454f8=!![];const _0x337e8a=Buffer[_0x3b4f4c(0x18f)](TRUNCATION_NOTICE,_0x3b4f4c(0x1a0)),_0x454fb4=Math[_0x3b4f4c(0x195)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x337e8a);_0x37dcdb=sliceUtf8Bytes(_0x37dcdb,_0x454fb4)+TRUNCATION_NOTICE;}return{'description':_0x37dcdb,'originalBytes':_0xe42784,'truncated':_0x8454f8,'redactionCount':_0x3c0183,'redactionKinds':_0x4d51c1};}function sliceUtf8Bytes(_0x404ed8,_0x4a477d){const _0x392560=a82_0x2a3faf;if(_0x4a477d<=0x0)return'';const _0x325aba=Buffer[_0x392560(0x191)](_0x404ed8,_0x392560(0x1a0));if(_0x325aba['byteLength']<=_0x4a477d)return _0x404ed8;let _0x27e4cc=_0x4a477d;while(_0x27e4cc>0x0){const _0x46c0d=_0x325aba[_0x27e4cc];if(_0x46c0d===undefined||(_0x46c0d&0xc0)!==0x80)break;_0x27e4cc-=0x1;}return _0x325aba[_0x392560(0x19c)](0x0,_0x27e4cc)[_0x392560(0x193)](_0x392560(0x1a0));}
1
+ const a82_0xa5b466=a82_0x1cd9;function a82_0x47ff(){const _0x3eeed5=['bearer-jwt','from','REDACTED:access-key','REDACTED:authorization','cookie','utf8','includes','87393zueUHM','14FLIBKx','replace','byteLength','password','push','authorization','private-key','pattern','154hsBSIK','10439hooiPw','209VBimeW','label','access-key','string','3850088IPazIC','toString','26590NwFKNT','kind','3543795sZKRsp','REDACTED:password','52TESnRG','234372QLCWJN','subarray','4994750Kjidyr'];a82_0x47ff=function(){return _0x3eeed5;};return a82_0x47ff();}function a82_0x1cd9(_0x18ce27,_0xcf3993){_0x18ce27=_0x18ce27-0x158;const _0x47ff19=a82_0x47ff();let _0x1cd9fd=_0x47ff19[_0x18ce27];return _0x1cd9fd;}(function(_0x4ed7b8,_0x592ee2){const _0xf5cc09=a82_0x1cd9,_0xfe7289=_0x4ed7b8();while(!![]){try{const _0xfeb868=parseInt(_0xf5cc09(0x15c))/0x1*(-parseInt(_0xf5cc09(0x172))/0x2)+-parseInt(_0xf5cc09(0x171))/0x3*(-parseInt(_0xf5cc09(0x166))/0x4)+parseInt(_0xf5cc09(0x169))/0x5+parseInt(_0xf5cc09(0x167))/0x6*(parseInt(_0xf5cc09(0x15a))/0x7)+parseInt(_0xf5cc09(0x160))/0x8+parseInt(_0xf5cc09(0x164))/0x9+-parseInt(_0xf5cc09(0x162))/0xa*(parseInt(_0xf5cc09(0x15b))/0xb);if(_0xfeb868===_0x592ee2)break;else _0xfe7289['push'](_0xfe7289['shift']());}catch(_0x4812aa){_0xfe7289['push'](_0xfe7289['shift']());}}}(a82_0x47ff,0x8f5ab));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a82_0xa5b466(0x16e),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a82_0xa5b466(0x177),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0xa5b466(0x16d)},{'kind':a82_0xa5b466(0x158),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0xa5b466(0x15e),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0xa5b466(0x16c)},{'kind':a82_0xa5b466(0x175),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0xa5b466(0x165)},{'kind':a82_0xa5b466(0x16a),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x1d0db7){const _0x3691b9=a82_0xa5b466,_0x4e731f=Buffer['byteLength'](_0x1d0db7,_0x3691b9(0x16f)),_0x5c1485=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x25121b=_0x1d0db7,_0x403a9f=0x0;const _0x5d9faa=[];if(!_0x5c1485)for(const _0x2755b4 of REDACTION_RULES){let _0x5ef31c=0x0;_0x25121b=_0x25121b[_0x3691b9(0x173)](_0x2755b4[_0x3691b9(0x159)],(_0x40060d,_0x284a66)=>{const _0x3e32eb=_0x3691b9;_0x5ef31c+=0x1;const _0x475d80=typeof _0x284a66===_0x3e32eb(0x15f)?_0x284a66:'';return _0x475d80+'['+_0x2755b4[_0x3e32eb(0x15d)]+']';}),_0x5ef31c>0x0&&(_0x403a9f+=_0x5ef31c,!_0x5d9faa[_0x3691b9(0x170)](_0x2755b4[_0x3691b9(0x163)])&&_0x5d9faa[_0x3691b9(0x176)](_0x2755b4[_0x3691b9(0x163)]));}let _0x55befb=![];if(Buffer['byteLength'](_0x25121b,_0x3691b9(0x16f))>ISSUE_DESCRIPTION_MAX_BYTES){_0x55befb=!![];const _0x20b85e=Buffer[_0x3691b9(0x174)](TRUNCATION_NOTICE,_0x3691b9(0x16f)),_0x1adb8b=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x20b85e);_0x25121b=sliceUtf8Bytes(_0x25121b,_0x1adb8b)+TRUNCATION_NOTICE;}return{'description':_0x25121b,'originalBytes':_0x4e731f,'truncated':_0x55befb,'redactionCount':_0x403a9f,'redactionKinds':_0x5d9faa};}function sliceUtf8Bytes(_0x3a8aef,_0x237146){const _0x1a415e=a82_0xa5b466;if(_0x237146<=0x0)return'';const _0x16d2d7=Buffer[_0x1a415e(0x16b)](_0x3a8aef,_0x1a415e(0x16f));if(_0x16d2d7[_0x1a415e(0x174)]<=_0x237146)return _0x3a8aef;let _0x241288=_0x237146;while(_0x241288>0x0){const _0x5911e8=_0x16d2d7[_0x241288];if(_0x5911e8===undefined||(_0x5911e8&0xc0)!==0x80)break;_0x241288-=0x1;}return _0x16d2d7[_0x1a415e(0x168)](0x0,_0x241288)[_0x1a415e(0x161)](_0x1a415e(0x16f));}
@@ -1 +1 @@
1
- const a83_0x169093=a83_0x1549;(function(_0x46374f,_0x31431e){const _0x1d9389=a83_0x1549,_0x1c6a40=_0x46374f();while(!![]){try{const _0x186503=-parseInt(_0x1d9389(0x114))/0x1+-parseInt(_0x1d9389(0x113))/0x2*(-parseInt(_0x1d9389(0x129))/0x3)+-parseInt(_0x1d9389(0x11c))/0x4*(-parseInt(_0x1d9389(0x112))/0x5)+-parseInt(_0x1d9389(0x11a))/0x6+parseInt(_0x1d9389(0x10f))/0x7+parseInt(_0x1d9389(0x111))/0x8+parseInt(_0x1d9389(0x122))/0x9*(-parseInt(_0x1d9389(0x120))/0xa);if(_0x186503===_0x31431e)break;else _0x1c6a40['push'](_0x1c6a40['shift']());}catch(_0x3b6bea){_0x1c6a40['push'](_0x1c6a40['shift']());}}}(a83_0x1945,0xda1f3));function a83_0x1549(_0x529204,_0x970212){_0x529204=_0x529204-0x10f;const _0x1945da=a83_0x1945();let _0x1549e7=_0x1945da[_0x529204];return _0x1549e7;}function a83_0x1945(){const _0xb64334=['292775ysqddf','\x20\x20\x20Time:\x20','View\x20command\x20history\x20logs','details','log','\x20\x20\x20Details:\x20','7386870TLcJny','logs','387896YTSRze','en-US','duration','write','3010oiXwwt','Clear\x20command\x20history\x20logs','22896ZCHGIV','success','level','*\x20Lovrabet\x20CLI\x20logs:\x0a','forEach','clear','clearLogs','4786041mMGrhc','keys','read','length','warn','error','message','show','7538769AjWWoe','command','983048NQiIcm','20aWHges','2PWRvKV'];a83_0x1945=function(){return _0xb64334;};return a83_0x1945();}import{logger}from'../../utils/logger.js';function printLogs(_0x1b31eb){const _0x557e59=a83_0x1549;if(_0x1b31eb['length']===0x0){console['log']('*\x20No\x20logs\x20found');return;}console['log'](_0x557e59(0x125)),_0x1b31eb[_0x557e59(0x126)]((_0x348a12,_0x105a51)=>{const _0x32983f=_0x557e59,_0x4f1cc5=new Date(_0x348a12['timestamp'])['toLocaleString'](_0x32983f(0x11d)),_0x497593=_0x348a12['level']===_0x32983f(0x123)?'√':_0x348a12[_0x32983f(0x124)]===_0x32983f(0x12e)?'×':_0x348a12[_0x32983f(0x124)]===_0x32983f(0x12d)?'!':'i';console[_0x32983f(0x118)](_0x105a51+0x1+'.\x20'+_0x497593+'\x20['+_0x348a12[_0x32983f(0x110)]+']\x20'+_0x348a12[_0x32983f(0x12f)]),console['log'](_0x32983f(0x115)+_0x4f1cc5),_0x348a12[_0x32983f(0x11e)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x348a12[_0x32983f(0x11e)]+'ms'),_0x348a12[_0x32983f(0x117)]&&Object[_0x32983f(0x12a)](_0x348a12[_0x32983f(0x117)])[_0x32983f(0x12c)]>0x0&&console[_0x32983f(0x118)](_0x32983f(0x119)+JSON['stringify'](_0x348a12[_0x32983f(0x117)],null,0x2)),console[_0x32983f(0x118)]('');});}export const logsDefinitions=[{'service':a83_0x169093(0x11b),'command':a83_0x169093(0x130),'description':a83_0x169093(0x116),'risk':a83_0x169093(0x12b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1aef31){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a83_0x169093(0x11b),'command':a83_0x169093(0x127),'description':a83_0x169093(0x121),'risk':a83_0x169093(0x11f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3ad9d8){const _0x2ac6b8=a83_0x169093;return logger[_0x2ac6b8(0x128)](),console[_0x2ac6b8(0x118)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
1
+ function a83_0x48d4(){const _0x4a2aee=['1074050YVMnex','message','logs','4642077kMzHdb','write','*\x20No\x20logs\x20found','5793060OZdddn','\x20\x20\x20Time:\x20','Clear\x20command\x20history\x20logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','View\x20command\x20history\x20logs','clear','details','level','29900906KJHWau','length','timestamp','*\x20Logs\x20cleared','log','en-US','duration','show','read','930314lBreKb','keys','5694650aTQTTV','\x20\x20\x20Details:\x20','5633160ycNXbS','toLocaleString'];a83_0x48d4=function(){return _0x4a2aee;};return a83_0x48d4();}const a83_0x379229=a83_0x4771;(function(_0x14063a,_0x3c99c4){const _0x380452=a83_0x4771,_0x47661f=_0x14063a();while(!![]){try{const _0x44a602=-parseInt(_0x380452(0xc6))/0x1+parseInt(_0x380452(0xc0))/0x2+-parseInt(_0x380452(0xc9))/0x3+-parseInt(_0x380452(0xaf))/0x4+parseInt(_0x380452(0xc2))/0x5+-parseInt(_0x380452(0xc4))/0x6+parseInt(_0x380452(0xb7))/0x7;if(_0x44a602===_0x3c99c4)break;else _0x47661f['push'](_0x47661f['shift']());}catch(_0x4741f8){_0x47661f['push'](_0x47661f['shift']());}}}(a83_0x48d4,0xd3b27));function a83_0x4771(_0x2f41a3,_0x12da59){_0x2f41a3=_0x2f41a3-0xad;const _0x48d481=a83_0x48d4();let _0x477115=_0x48d481[_0x2f41a3];return _0x477115;}import{logger}from'../../utils/logger.js';function printLogs(_0x2d9914){const _0x39d2d1=a83_0x4771;if(_0x2d9914[_0x39d2d1(0xb8)]===0x0){console[_0x39d2d1(0xbb)](_0x39d2d1(0xae));return;}console[_0x39d2d1(0xbb)](_0x39d2d1(0xb2)),_0x2d9914['forEach']((_0xf47a2d,_0x26d746)=>{const _0x33747e=_0x39d2d1,_0x25e947=new Date(_0xf47a2d[_0x33747e(0xb9)])[_0x33747e(0xc5)](_0x33747e(0xbc)),_0xf64e74=_0xf47a2d[_0x33747e(0xb6)]==='success'?'√':_0xf47a2d[_0x33747e(0xb6)]==='error'?'×':_0xf47a2d[_0x33747e(0xb6)]==='warn'?'!':'i';console['log'](_0x26d746+0x1+'.\x20'+_0xf64e74+'\x20['+_0xf47a2d['command']+']\x20'+_0xf47a2d[_0x33747e(0xc7)]),console[_0x33747e(0xbb)](_0x33747e(0xb0)+_0x25e947),_0xf47a2d[_0x33747e(0xbd)]&&console[_0x33747e(0xbb)]('\x20\x20\x20Duration:\x20'+_0xf47a2d[_0x33747e(0xbd)]+'ms'),_0xf47a2d[_0x33747e(0xb5)]&&Object[_0x33747e(0xc1)](_0xf47a2d[_0x33747e(0xb5)])[_0x33747e(0xb8)]>0x0&&console[_0x33747e(0xbb)](_0x33747e(0xc3)+JSON['stringify'](_0xf47a2d[_0x33747e(0xb5)],null,0x2)),console[_0x33747e(0xbb)]('');});}export const logsDefinitions=[{'service':a83_0x379229(0xc8),'command':a83_0x379229(0xbe),'description':a83_0x379229(0xb3),'risk':a83_0x379229(0xbf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1433ef){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a83_0x379229(0xc8),'command':a83_0x379229(0xb4),'description':a83_0x379229(0xb1),'risk':a83_0x379229(0xad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x20914){const _0x49ec29=a83_0x379229;return logger['clearLogs'](),console['log'](_0x49ec29(0xba)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x51eef2,_0x58a067){const _0x54f334=a84_0x2151,_0x33e371=_0x51eef2();while(!![]){try{const _0x4639a6=-parseInt(_0x54f334(0x90))/0x1+parseInt(_0x54f334(0x94))/0x2*(parseInt(_0x54f334(0x92))/0x3)+parseInt(_0x54f334(0x95))/0x4*(-parseInt(_0x54f334(0x99))/0x5)+-parseInt(_0x54f334(0x97))/0x6*(-parseInt(_0x54f334(0x96))/0x7)+-parseInt(_0x54f334(0x98))/0x8+parseInt(_0x54f334(0x93))/0x9+parseInt(_0x54f334(0x8f))/0xa*(-parseInt(_0x54f334(0x91))/0xb);if(_0x4639a6===_0x58a067)break;else _0x33e371['push'](_0x33e371['shift']());}catch(_0x467ffa){_0x33e371['push'](_0x33e371['shift']());}}}(a84_0x4c90,0x4c169));import{menuList}from'../../commands/menu/list.js';function a84_0x2151(_0x187efc,_0x1ed175){_0x187efc=_0x187efc-0x8f;const _0x4c90a2=a84_0x4c90();let _0x215161=_0x4c90a2[_0x187efc];return _0x215161;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a84_0x4c90(){const _0x1f553d=['2148712LGuQhG','30mGrMYM','1280UIwgNf','62912GTihfm','13574HbtMUL','6TnNQkN','2446443WkgSEH','604996bstsCW','82060XXmAyH','511HPtmQO','3894ZbzOiN'];a84_0x4c90=function(){return _0x1f553d;};return a84_0x4c90();}
1
+ (function(_0x3b34d9,_0x2394d5){const _0x2fd4f8=a84_0x421a,_0x468c87=_0x3b34d9();while(!![]){try{const _0x303c70=parseInt(_0x2fd4f8(0x74))/0x1*(parseInt(_0x2fd4f8(0x76))/0x2)+-parseInt(_0x2fd4f8(0x77))/0x3+-parseInt(_0x2fd4f8(0x79))/0x4*(parseInt(_0x2fd4f8(0x7a))/0x5)+-parseInt(_0x2fd4f8(0x78))/0x6*(parseInt(_0x2fd4f8(0x72))/0x7)+-parseInt(_0x2fd4f8(0x71))/0x8+-parseInt(_0x2fd4f8(0x73))/0x9*(-parseInt(_0x2fd4f8(0x75))/0xa)+parseInt(_0x2fd4f8(0x7b))/0xb*(parseInt(_0x2fd4f8(0x7c))/0xc);if(_0x303c70===_0x2394d5)break;else _0x468c87['push'](_0x468c87['shift']());}catch(_0xb68efe){_0x468c87['push'](_0x468c87['shift']());}}}(a84_0x2736,0x8f854));import{menuList}from'../../commands/menu/list.js';function a84_0x421a(_0x23edf6,_0x200317){_0x23edf6=_0x23edf6-0x71;const _0x2736b0=a84_0x2736();let _0x421ac6=_0x2736b0[_0x23edf6];return _0x421ac6;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a84_0x2736(){const _0x3080e5=['4922065nDQdaD','11gPUutM','20247360bbiUDu','6116432ZgasEd','7gbpiBy','9gYOWOw','1591mUuxBy','9071890aXdGdX','232GUXitP','859437aLeJma','934314ctMtxO','4IKPooc'];a84_0x2736=function(){return _0x3080e5;};return a84_0x2736();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a85_0x5306d6=a85_0x57e3;(function(_0x1372aa,_0x5bb17d){const _0x395f56=a85_0x57e3,_0x552037=_0x1372aa();while(!![]){try{const _0x30ad7a=-parseInt(_0x395f56(0x136))/0x1*(parseInt(_0x395f56(0x14a))/0x2)+-parseInt(_0x395f56(0x150))/0x3+-parseInt(_0x395f56(0x132))/0x4*(-parseInt(_0x395f56(0x14f))/0x5)+parseInt(_0x395f56(0x149))/0x6+-parseInt(_0x395f56(0x140))/0x7+parseInt(_0x395f56(0x144))/0x8*(-parseInt(_0x395f56(0x137))/0x9)+-parseInt(_0x395f56(0x152))/0xa*(-parseInt(_0x395f56(0x146))/0xb);if(_0x30ad7a===_0x5bb17d)break;else _0x552037['push'](_0x552037['shift']());}catch(_0x4c46c1){_0x552037['push'](_0x552037['shift']());}}}(a85_0x3589,0xeaec3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a85_0x57e3(_0x39654e,_0x49bebe){_0x39654e=_0x39654e-0x12e;const _0x358960=a85_0x3589();let _0x57e36f=_0x358960[_0x39654e];return _0x57e36f;}import{getApiDomain}from'../../constant/domain.js';function a85_0x3589(){const _0xcca6aa=['label','POSITIVE_INFINITY','list','14327KBXGDj','35181CbReym','parentId','length','type','sort','parse','string','isArray','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','11019141PfezBv','index','Found\x20','bool','272CmXuCk','extend','165IJgeqW','verbose','menu','3543582TbHrUA','2KbeCKH','read','Fetch\x20menu\x20list','\x20menu(s)','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','10oCSsWP','3408402ZmDiiE','item','1848360gmCysz','resources','/smartapi/menu/find?appCode=','visible','isFinite','path','number','depth','children','map','913272DZqUsw'];a85_0x3589=function(){return _0xcca6aa;};return a85_0x3589();}import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x5306d6(0x148),'command':a85_0x5306d6(0x135),'description':a85_0x5306d6(0x13f),'risk':a85_0x5306d6(0x14b),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x5306d6(0x147),'type':'boolean','description':a85_0x5306d6(0x14e)}],async 'execute'(_0x85185){const _0x39b15b=a85_0x5306d6,_0x2b98d9=_0x85185[_0x39b15b(0x143)]('verbose'),_0x6a0028=await platformFetch(getApiDomain()+_0x39b15b(0x154)+_0x85185['appCode'],{'cookie':_0x85185['cookie'],'label':_0x39b15b(0x14c)}),_0x5d584f=flattenMenuItems(Array['isArray'](_0x6a0028)?_0x6a0028:[],{'verbose':_0x2b98d9,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5d584f[_0x39b15b(0x139)],'menus':_0x5d584f},'message':_0x5d584f[_0x39b15b(0x139)]===0x0?'No\x20menus\x20found.':_0x39b15b(0x142)+_0x5d584f[_0x39b15b(0x139)]+_0x39b15b(0x14d)};}};function flattenMenuItems(_0x340d89,_0xbdd987){const _0x1bf50e=a85_0x5306d6,_0x16d4fd=sortMenuItems(_0x340d89),_0x56358c=[];for(const _0x24536b of _0x16d4fd){_0x56358c['push'](toMenuListItem(_0x24536b,_0xbdd987)),Array[_0x1bf50e(0x13e)](_0x24536b[_0x1bf50e(0x130)])&&_0x24536b[_0x1bf50e(0x130)][_0x1bf50e(0x139)]>0x0&&_0x56358c['push'](...flattenMenuItems(_0x24536b[_0x1bf50e(0x130)],{'verbose':_0xbdd987[_0x1bf50e(0x147)],'parentId':_0x24536b['id'],'depth':_0xbdd987[_0x1bf50e(0x12f)]+0x1}));}return _0x56358c;}function sortMenuItems(_0x27017a){return _0x27017a['map']((_0x246a5e,_0x2bd60d)=>({'item':_0x246a5e,'index':_0x2bd60d}))['sort']((_0x377a06,_0x44fd7d)=>{const _0x355c66=a85_0x57e3,_0x5acfd0=normalizeSort(_0x377a06[_0x355c66(0x151)][_0x355c66(0x13b)]),_0x23104c=normalizeSort(_0x44fd7d[_0x355c66(0x151)][_0x355c66(0x13b)]);if(_0x5acfd0!==_0x23104c)return _0x5acfd0-_0x23104c;return _0x377a06[_0x355c66(0x141)]-_0x44fd7d[_0x355c66(0x141)];})['map'](({item:_0x3e517a})=>_0x3e517a);}function toMenuListItem(_0x5681cf,_0x496462){const _0x2f95ff=a85_0x5306d6,_0x53540a={'id':_0x5681cf['id'],'parentId':_0x496462[_0x2f95ff(0x138)],'depth':_0x496462['depth'],'label':normalizeString(_0x5681cf[_0x2f95ff(0x133)]),'path':normalizeString(_0x5681cf[_0x2f95ff(0x157)]),'type':normalizeString(_0x5681cf[_0x2f95ff(0x13a)]),'visible':typeof _0x5681cf[_0x2f95ff(0x155)]==='boolean'?_0x5681cf[_0x2f95ff(0x155)]:null,'sort':typeof _0x5681cf[_0x2f95ff(0x13b)]===_0x2f95ff(0x12e)&&Number[_0x2f95ff(0x156)](_0x5681cf['sort'])?_0x5681cf[_0x2f95ff(0x13b)]:null,'resources':normalizeResources(_0x5681cf[_0x2f95ff(0x145)]?.[_0x2f95ff(0x153)])};return _0x496462[_0x2f95ff(0x147)]&&(_0x53540a[_0x2f95ff(0x145)]=_0x5681cf[_0x2f95ff(0x145)]??null),_0x53540a;}function normalizeSort(_0xda5724){const _0x259a7c=a85_0x5306d6;return typeof _0xda5724==='number'&&Number[_0x259a7c(0x156)](_0xda5724)?_0xda5724:Number[_0x259a7c(0x134)];}function normalizeString(_0xe1833a){const _0x536563=a85_0x5306d6;return typeof _0xe1833a===_0x536563(0x13d)?_0xe1833a:'';}function normalizeResources(_0x1d70d7){const _0x37ed51=a85_0x5306d6;if(Array[_0x37ed51(0x13e)](_0x1d70d7))return _0x1d70d7['map'](String);if(typeof _0x1d70d7!==_0x37ed51(0x13d))return[];try{const _0x4da527=JSON[_0x37ed51(0x13c)](_0x1d70d7);return Array[_0x37ed51(0x13e)](_0x4da527)?_0x4da527[_0x37ed51(0x131)](String):[];}catch{return[];}}
1
+ const a85_0x18e40f=a85_0x3504;(function(_0x2b94f1,_0x31d33d){const _0x45252f=a85_0x3504,_0x404e87=_0x2b94f1();while(!![]){try{const _0x592f9b=parseInt(_0x45252f(0x1d6))/0x1*(-parseInt(_0x45252f(0x1d1))/0x2)+parseInt(_0x45252f(0x1e1))/0x3*(-parseInt(_0x45252f(0x1e0))/0x4)+-parseInt(_0x45252f(0x1d7))/0x5*(parseInt(_0x45252f(0x1c3))/0x6)+-parseInt(_0x45252f(0x1dc))/0x7*(-parseInt(_0x45252f(0x1d0))/0x8)+parseInt(_0x45252f(0x1ca))/0x9+-parseInt(_0x45252f(0x1e4))/0xa+parseInt(_0x45252f(0x1c5))/0xb;if(_0x592f9b===_0x31d33d)break;else _0x404e87['push'](_0x404e87['shift']());}catch(_0x3d155b){_0x404e87['push'](_0x404e87['shift']());}}}(a85_0x4c09,0xb92c3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a85_0x3504(_0x37a3ba,_0x9523ad){_0x37a3ba=_0x37a3ba-0x1c2;const _0x4c0964=a85_0x4c09();let _0x3504cc=_0x4c0964[_0x37a3ba];return _0x3504cc;}import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':'menu','command':'list','description':a85_0x18e40f(0x1c7),'risk':a85_0x18e40f(0x1e5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x18e40f(0x1e8),'type':a85_0x18e40f(0x1d2),'description':a85_0x18e40f(0x1df)}],async 'execute'(_0x48afd6){const _0x1ab8f6=a85_0x18e40f,_0x15f4bc=_0x48afd6['bool'](_0x1ab8f6(0x1e8)),_0x280e43=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x48afd6[_0x1ab8f6(0x1da)],{'cookie':_0x48afd6[_0x1ab8f6(0x1d5)],'label':_0x1ab8f6(0x1c2)}),_0x545372=flattenMenuItems(Array[_0x1ab8f6(0x1c6)](_0x280e43)?_0x280e43:[],{'verbose':_0x15f4bc,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x545372['length'],'menus':_0x545372},'message':_0x545372['length']===0x0?_0x1ab8f6(0x1e6):_0x1ab8f6(0x1d4)+_0x545372[_0x1ab8f6(0x1e7)]+_0x1ab8f6(0x1cc)};}};function flattenMenuItems(_0xcb20da,_0x55ccbd){const _0x35e0ee=a85_0x18e40f,_0x4e4437=sortMenuItems(_0xcb20da),_0x2aebe3=[];for(const _0x525b42 of _0x4e4437){_0x2aebe3[_0x35e0ee(0x1c9)](toMenuListItem(_0x525b42,_0x55ccbd)),Array[_0x35e0ee(0x1c6)](_0x525b42['children'])&&_0x525b42[_0x35e0ee(0x1ce)]['length']>0x0&&_0x2aebe3[_0x35e0ee(0x1c9)](...flattenMenuItems(_0x525b42[_0x35e0ee(0x1ce)],{'verbose':_0x55ccbd['verbose'],'parentId':_0x525b42['id'],'depth':_0x55ccbd[_0x35e0ee(0x1e3)]+0x1}));}return _0x2aebe3;}function a85_0x4c09(){const _0x13d608=['cookie','1CHfYrR','30GywXoK','item','visible','appCode','extend','7vXWwrO','map','isFinite','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','3252CeYbiy','2862maUvQH','label','depth','6237100ukQehq','read','No\x20menus\x20found.','length','verbose','Fetch\x20menu\x20list','595824fQaOEP','path','41095989daXstv','isArray','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','parentId','push','2740725NZovBy','string','\x20menu(s)','number','children','sort','825952JFLaQW','2780330ejjoRC','boolean','index','Found\x20'];a85_0x4c09=function(){return _0x13d608;};return a85_0x4c09();}function sortMenuItems(_0x2594b1){const _0x4f5a14=a85_0x18e40f;return _0x2594b1['map']((_0xa137f2,_0x3ae091)=>({'item':_0xa137f2,'index':_0x3ae091}))[_0x4f5a14(0x1cf)]((_0x2ae312,_0x581275)=>{const _0x32ec94=_0x4f5a14,_0x3768c8=normalizeSort(_0x2ae312[_0x32ec94(0x1d8)][_0x32ec94(0x1cf)]),_0x17dbe9=normalizeSort(_0x581275[_0x32ec94(0x1d8)][_0x32ec94(0x1cf)]);if(_0x3768c8!==_0x17dbe9)return _0x3768c8-_0x17dbe9;return _0x2ae312['index']-_0x581275[_0x32ec94(0x1d3)];})[_0x4f5a14(0x1dd)](({item:_0x3e042f})=>_0x3e042f);}function toMenuListItem(_0x8432d7,_0x3a6cdc){const _0x285c7a=a85_0x18e40f,_0x137891={'id':_0x8432d7['id'],'parentId':_0x3a6cdc[_0x285c7a(0x1c8)],'depth':_0x3a6cdc['depth'],'label':normalizeString(_0x8432d7[_0x285c7a(0x1e2)]),'path':normalizeString(_0x8432d7[_0x285c7a(0x1c4)]),'type':normalizeString(_0x8432d7['type']),'visible':typeof _0x8432d7[_0x285c7a(0x1d9)]===_0x285c7a(0x1d2)?_0x8432d7['visible']:null,'sort':typeof _0x8432d7[_0x285c7a(0x1cf)]===_0x285c7a(0x1cd)&&Number[_0x285c7a(0x1de)](_0x8432d7[_0x285c7a(0x1cf)])?_0x8432d7['sort']:null,'resources':normalizeResources(_0x8432d7[_0x285c7a(0x1db)]?.['resources'])};return _0x3a6cdc['verbose']&&(_0x137891[_0x285c7a(0x1db)]=_0x8432d7['extend']??null),_0x137891;}function normalizeSort(_0x4f269d){const _0x456b88=a85_0x18e40f;return typeof _0x4f269d===_0x456b88(0x1cd)&&Number[_0x456b88(0x1de)](_0x4f269d)?_0x4f269d:Number['POSITIVE_INFINITY'];}function normalizeString(_0xe9f2a7){const _0x5620da=a85_0x18e40f;return typeof _0xe9f2a7===_0x5620da(0x1cb)?_0xe9f2a7:'';}function normalizeResources(_0x57fa53){const _0x43fed5=a85_0x18e40f;if(Array[_0x43fed5(0x1c6)](_0x57fa53))return _0x57fa53[_0x43fed5(0x1dd)](String);if(typeof _0x57fa53!==_0x43fed5(0x1cb))return[];try{const _0x13ca90=JSON['parse'](_0x57fa53);return Array[_0x43fed5(0x1c6)](_0x13ca90)?_0x13ca90[_0x43fed5(0x1dd)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a86_0x3409(){const _0x218f04=['\x20\x20No\x20pages\x20to\x20sync.','271632vIomGy','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','31328cFsbdH','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','2562040oNuMry','length','local','label','push','18BpnkIA','5940873xhyXgk','\x20\x20\x20\x20JS:\x20\x20','10fxqQCN','join','3550610VtNplf','repeat','Platform','\x20\x20\x20\x20•\x20','1293400GLUZCk','Menu\x20Name','map','test','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','35NArWmO','737718ulqZNs','showOnline','\x20\x20\x20\x20CSS:\x20','(unchanged)','online'];a86_0x3409=function(){return _0x218f04;};return a86_0x3409();}(function(_0x1033d9,_0x218173){const _0x1be515=a86_0x3342,_0x31fc7b=_0x1033d9();while(!![]){try{const _0x4b8e41=parseInt(_0x1be515(0x1b3))/0x1+parseInt(_0x1be515(0x1c3))/0x2+parseInt(_0x1be515(0x1aa))/0x3*(-parseInt(_0x1be515(0x1bf))/0x4)+-parseInt(_0x1be515(0x1af))/0x5+-parseInt(_0x1be515(0x1b9))/0x6+parseInt(_0x1be515(0x1b8))/0x7*(parseInt(_0x1be515(0x1c1))/0x8)+-parseInt(_0x1be515(0x1ab))/0x9*(parseInt(_0x1be515(0x1ad))/0xa);if(_0x4b8e41===_0x218173)break;else _0x31fc7b['push'](_0x31fc7b['shift']());}catch(_0x4287b0){_0x31fc7b['push'](_0x31fc7b['shift']());}}}(a86_0x3409,0xa9484));function strWidth(_0x45dbab){const _0x40e2da=a86_0x3342;let _0x8a83de=0x0;for(const _0x158837 of _0x45dbab){_0x8a83de+=/[\u4e00-\u9fa5]/[_0x40e2da(0x1b6)](_0x158837)?0x2:0x1;}return _0x8a83de;}function padRight(_0x28877d,_0x28fcea){const _0x7f8d92=a86_0x3342,_0x1dd8c2=strWidth(_0x28877d);return _0x28877d+'\x20'[_0x7f8d92(0x1b0)](Math['max'](0x0,_0x28fcea-_0x1dd8c2));}export function renderCompareTable(_0x248436,_0x1eb97b={}){const _0x3a9dd6=a86_0x3342;if(_0x248436[_0x3a9dd6(0x1c4)]===0x0)return'';const _0x130f99=_0x1eb97b[_0x3a9dd6(0x1ba)]??!![],_0x396459=Math['max'](0x1e,..._0x248436[_0x3a9dd6(0x1b5)](_0x35be87=>strWidth(_0x35be87[_0x3a9dd6(0x1c6)]))),_0x5cef0d=0x4,_0x57ab47=[],_0xaf62fe='\x20\x20'+padRight(_0x3a9dd6(0x1b4),_0x396459),_0x2c5302=padRight('Local',_0x5cef0d),_0x16145e=_0x130f99?'\x20\x20'+padRight(_0x3a9dd6(0x1b1),_0x5cef0d):'';_0x57ab47['push'](_0xaf62fe+'\x20\x20'+_0x2c5302+(_0x130f99?_0x16145e:'')),_0x57ab47[_0x3a9dd6(0x1a9)]('\x20\x20'+'─'['repeat'](_0x396459)+'\x20\x20'+'─'[_0x3a9dd6(0x1b0)](_0x5cef0d)+(_0x130f99?'\x20\x20'+'─'[_0x3a9dd6(0x1b0)](_0x5cef0d):''));for(const _0x2e2388 of _0x248436){const _0x4ea753=padRight(_0x2e2388[_0x3a9dd6(0x1c6)],_0x396459),_0x365d28=_0x2e2388[_0x3a9dd6(0x1c5)]?'✓':'✗',_0x356e88=padRight(_0x365d28,_0x5cef0d);let _0x46b637='\x20\x20'+_0x4ea753+'\x20\x20'+_0x356e88;if(_0x130f99){const _0x37ded1=_0x2e2388[_0x3a9dd6(0x1bd)]?'✓':'✗';_0x46b637+='\x20\x20'+padRight(_0x37ded1,_0x5cef0d);}_0x57ab47[_0x3a9dd6(0x1a9)](_0x46b637);}return _0x57ab47[_0x3a9dd6(0x1ae)]('\x0a');}export function renderSyncSummary(_0x24945b,_0x3412dc){const _0x28add8=a86_0x3342;if(_0x24945b[_0x28add8(0x1c4)]===0x0)return _0x3412dc?_0x28add8(0x1c0):_0x28add8(0x1be);const _0x15f7a0=['\x20\x20'+_0x24945b[_0x28add8(0x1c4)]+_0x28add8(0x1b7)];for(const _0x271411 of _0x24945b){_0x15f7a0[_0x28add8(0x1a9)](_0x28add8(0x1b2)+_0x271411['label']+'\x20('+_0x271411['path']+')');}return _0x15f7a0[_0x28add8(0x1ae)]('\x0a');}function a86_0x3342(_0x53c61a,_0x4882a0){_0x53c61a=_0x53c61a-0x1a9;const _0x34093d=a86_0x3409();let _0x334210=_0x34093d[_0x53c61a];return _0x334210;}export function renderUpdateSummary(_0x3f723d,_0x4b78aa){const _0x477f52=a86_0x3342;if(_0x3f723d[_0x477f52(0x1c4)]===0x0)return _0x477f52(0x1c2);const _0x269cf4=['\x20\x20'+_0x3f723d[_0x477f52(0x1c4)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x477f52(0x1ac)+(_0x4b78aa[0x0]??_0x477f52(0x1bc)),_0x477f52(0x1bb)+(_0x4b78aa[0x1]??_0x477f52(0x1bc)),'','\x20\x20Affected\x20menus:\x20'+_0x3f723d[_0x477f52(0x1ae)](',\x20')];return _0x269cf4[_0x477f52(0x1ae)]('\x0a');}
1
+ (function(_0x20a71c,_0x2df8f7){const _0x4a75c6=a86_0x1b61,_0x4fcec4=_0x20a71c();while(!![]){try{const _0x17da67=parseInt(_0x4a75c6(0x93))/0x1*(-parseInt(_0x4a75c6(0x89))/0x2)+parseInt(_0x4a75c6(0x87))/0x3+parseInt(_0x4a75c6(0x98))/0x4*(-parseInt(_0x4a75c6(0x80))/0x5)+parseInt(_0x4a75c6(0x88))/0x6*(-parseInt(_0x4a75c6(0x82))/0x7)+parseInt(_0x4a75c6(0x9e))/0x8*(-parseInt(_0x4a75c6(0x99))/0x9)+-parseInt(_0x4a75c6(0x8b))/0xa*(parseInt(_0x4a75c6(0x94))/0xb)+-parseInt(_0x4a75c6(0x85))/0xc*(-parseInt(_0x4a75c6(0x9b))/0xd);if(_0x17da67===_0x2df8f7)break;else _0x4fcec4['push'](_0x4fcec4['shift']());}catch(_0x9fabcc){_0x4fcec4['push'](_0x4fcec4['shift']());}}}(a86_0x1668,0xbdce4));function strWidth(_0x3ef2ad){let _0x2a0843=0x0;for(const _0x552ad4 of _0x3ef2ad){_0x2a0843+=/[\u4e00-\u9fa5]/['test'](_0x552ad4)?0x2:0x1;}return _0x2a0843;}function padRight(_0x289a2b,_0x1db1b8){const _0x54fac0=a86_0x1b61,_0x4d42fe=strWidth(_0x289a2b);return _0x289a2b+'\x20'[_0x54fac0(0x9a)](Math[_0x54fac0(0x95)](0x0,_0x1db1b8-_0x4d42fe));}export function renderCompareTable(_0x285ff4,_0x4adcd9={}){const _0xbe6a97=a86_0x1b61;if(_0x285ff4[_0xbe6a97(0x96)]===0x0)return'';const _0x7ae373=_0x4adcd9[_0xbe6a97(0x86)]??!![],_0x3460ab=Math[_0xbe6a97(0x95)](0x1e,..._0x285ff4[_0xbe6a97(0x8d)](_0x5d56c4=>strWidth(_0x5d56c4[_0xbe6a97(0x84)]))),_0x2733c2=0x4,_0x1461ea=[],_0xc72e51='\x20\x20'+padRight(_0xbe6a97(0x81),_0x3460ab),_0x474775=padRight(_0xbe6a97(0x90),_0x2733c2),_0x2da493=_0x7ae373?'\x20\x20'+padRight('Platform',_0x2733c2):'';_0x1461ea['push'](_0xc72e51+'\x20\x20'+_0x474775+(_0x7ae373?_0x2da493:'')),_0x1461ea[_0xbe6a97(0x8e)]('\x20\x20'+'─'[_0xbe6a97(0x9a)](_0x3460ab)+'\x20\x20'+'─'[_0xbe6a97(0x9a)](_0x2733c2)+(_0x7ae373?'\x20\x20'+'─'[_0xbe6a97(0x9a)](_0x2733c2):''));for(const _0x208a85 of _0x285ff4){const _0x4d8d8f=padRight(_0x208a85[_0xbe6a97(0x84)],_0x3460ab),_0x590f95=_0x208a85['local']?'✓':'✗',_0x49f2a8=padRight(_0x590f95,_0x2733c2);let _0x338e30='\x20\x20'+_0x4d8d8f+'\x20\x20'+_0x49f2a8;if(_0x7ae373){const _0x15c749=_0x208a85[_0xbe6a97(0x97)]?'✓':'✗';_0x338e30+='\x20\x20'+padRight(_0x15c749,_0x2733c2);}_0x1461ea[_0xbe6a97(0x8e)](_0x338e30);}return _0x1461ea[_0xbe6a97(0x9c)]('\x0a');}export function renderSyncSummary(_0x48d392,_0xaf99c6){const _0x41ff20=a86_0x1b61;if(_0x48d392[_0x41ff20(0x96)]===0x0)return _0xaf99c6?_0x41ff20(0x8f):_0x41ff20(0x9d);const _0x1a9fcf=['\x20\x20'+_0x48d392[_0x41ff20(0x96)]+_0x41ff20(0x8c)];for(const _0x33be33 of _0x48d392){_0x1a9fcf[_0x41ff20(0x8e)](_0x41ff20(0x83)+_0x33be33[_0x41ff20(0x84)]+'\x20('+_0x33be33['path']+')');}return _0x1a9fcf[_0x41ff20(0x9c)]('\x0a');}function a86_0x1b61(_0x1168e4,_0x17fd4d){_0x1168e4=_0x1168e4-0x80;const _0x16681c=a86_0x1668();let _0x1b6116=_0x16681c[_0x1168e4];return _0x1b6116;}export function renderUpdateSummary(_0x5efcc5,_0x5d172c){const _0x3a3637=a86_0x1b61;if(_0x5efcc5['length']===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x1e0801=['\x20\x20'+_0x5efcc5[_0x3a3637(0x96)]+_0x3a3637(0x92),_0x3a3637(0x91)+(_0x5d172c[0x0]??_0x3a3637(0x8a)),'\x20\x20\x20\x20CSS:\x20'+(_0x5d172c[0x1]??_0x3a3637(0x8a)),'','\x20\x20Affected\x20menus:\x20'+_0x5efcc5[_0x3a3637(0x9c)](',\x20')];return _0x1e0801['join']('\x0a');}function a86_0x1668(){const _0x4af8ed=['showOnline','3147285ySLYLw','5028JTOHfw','862EQhCgf','(unchanged)','659770LcONlK','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','map','push','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','\x20\x20\x20\x20JS:\x20\x20','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','1223cyNVNH','143nwduNG','max','length','online','500uPjJLy','4965075VCaLLa','repeat','39CfKdQI','join','\x20\x20No\x20pages\x20to\x20sync.','8hpUpBJ','31550tLyFRj','Menu\x20Name','9583cSrGgQ','\x20\x20\x20\x20•\x20','label','14403240fSpDqI'];a86_0x1668=function(){return _0x4af8ed;};return a86_0x1668();}
@@ -1 +1 @@
1
- (function(_0x61435a,_0x545b79){var _0x1bbb5e=a87_0x34f1,_0x5d0a20=_0x61435a();while(!![]){try{var _0x769f1f=parseInt(_0x1bbb5e(0x7e))/0x1+-parseInt(_0x1bbb5e(0x7f))/0x2*(-parseInt(_0x1bbb5e(0x82))/0x3)+-parseInt(_0x1bbb5e(0x83))/0x4*(-parseInt(_0x1bbb5e(0x84))/0x5)+parseInt(_0x1bbb5e(0x88))/0x6+-parseInt(_0x1bbb5e(0x86))/0x7*(parseInt(_0x1bbb5e(0x81))/0x8)+-parseInt(_0x1bbb5e(0x85))/0x9*(parseInt(_0x1bbb5e(0x87))/0xa)+parseInt(_0x1bbb5e(0x89))/0xb*(parseInt(_0x1bbb5e(0x80))/0xc);if(_0x769f1f===_0x545b79)break;else _0x5d0a20['push'](_0x5d0a20['shift']());}catch(_0x12ba01){_0x5d0a20['push'](_0x5d0a20['shift']());}}}(a87_0x3941,0x850e2));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';function a87_0x34f1(_0x3f082c,_0x278ad7){_0x3f082c=_0x3f082c-0x7e;var _0x3941ca=a87_0x3941();var _0x34f119=_0x3941ca[_0x3f082c];return _0x34f119;}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';function a87_0x3941(){var _0x5cece6=['2582770fnKkbh','3912630QxhiwD','11ZZSQdz','75394BgOovi','4zKWxMu','1822608RKilBY','91528FYSngQ','1060947nJKQSk','392TUiTEr','1810FGNcCj','18SznnzG','343tJCMhN'];a87_0x3941=function(){return _0x5cece6;};return a87_0x3941();}
1
+ (function(_0x571ab2,_0x40566c){var _0x520b19=a87_0x13fb,_0xccf9e0=_0x571ab2();while(!![]){try{var _0x4bb618=-parseInt(_0x520b19(0xe3))/0x1*(-parseInt(_0x520b19(0xdf))/0x2)+-parseInt(_0x520b19(0xe0))/0x3+parseInt(_0x520b19(0xdd))/0x4+parseInt(_0x520b19(0xe6))/0x5+parseInt(_0x520b19(0xde))/0x6*(parseInt(_0x520b19(0xe2))/0x7)+parseInt(_0x520b19(0xe4))/0x8+-parseInt(_0x520b19(0xe1))/0x9*(parseInt(_0x520b19(0xe5))/0xa);if(_0x4bb618===_0x40566c)break;else _0xccf9e0['push'](_0xccf9e0['shift']());}catch(_0x58b8f5){_0xccf9e0['push'](_0xccf9e0['shift']());}}}(a87_0x49fb,0x63946));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';function a87_0x49fb(){var _0x1bcd97=['2982696oAnhTI','198JXaJSM','25590gdTkge','501003mjxANO','7137XmnSZN','40383iokTuy','57VkGnhb','135432YgCYDG','20410qygvoH','2555485FFxuSi'];a87_0x49fb=function(){return _0x1bcd97;};return a87_0x49fb();}export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a87_0x13fb(_0xadd063,_0x2df029){_0xadd063=_0xadd063-0xdd;var _0x49fbb3=a87_0x49fb();var _0x13fbfb=_0x49fbb3[_0xadd063];return _0x13fbfb;}export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x3081d8,_0x77cc9e){const _0x24d32b=a88_0x1b79,_0x3b3435=_0x3081d8();while(!![]){try{const _0x592203=parseInt(_0x24d32b(0xe8))/0x1*(parseInt(_0x24d32b(0xd4))/0x2)+-parseInt(_0x24d32b(0xd2))/0x3+parseInt(_0x24d32b(0xe0))/0x4+parseInt(_0x24d32b(0xd1))/0x5+parseInt(_0x24d32b(0xdb))/0x6+parseInt(_0x24d32b(0xe3))/0x7+-parseInt(_0x24d32b(0xe6))/0x8;if(_0x592203===_0x77cc9e)break;else _0x3b3435['push'](_0x3b3435['shift']());}catch(_0x4df397){_0x3b3435['push'](_0x3b3435['shift']());}}}(a88_0x3f07,0xcd718));import a88_0x402a12 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a88_0x3f07(){const _0x350ef0=['No\x20menus\x20selected.','[already\x20on\x20platform]','name','red','green','\x20\x20JS\x20URL:','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','has','No\x20local\x20pages\x20found.','Cancelled.','test','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','includes','start','833425prQldP','2295630zYvZLJ','JS\x20URL\x20checked','2fizjoI','trim','path','CSS\x20URL\x20check\x20failed','[new]','\x20\x20Checking\x20CSS\x20URL\x20reachability...','stdin','6834078Eddfix','\x20\x20Checking\x20JS\x20URL\x20reachability...','isTTY','error','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','527552rcOyWj','length','label','2714747QpXBVO','cancelled','JS\x20URL\x20check\x20failed','7240384EiVxPx','\x20\x20CSS\x20URL:','686347YbfekF','catch'];a88_0x3f07=function(){return _0x350ef0;};return a88_0x3f07();}function a88_0x1b79(_0x191888,_0xe7bda2){_0x191888=_0x191888-0xd1;const _0x3f07f5=a88_0x3f07();let _0x1b793e=_0x3f07f5[_0x191888];return _0x1b793e;}import a88_0x133eaf from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x35e551){const _0x3a5dfa=a88_0x1b79;return _0x35e551[_0x3a5dfa(0xe9)](_0x5e221b=>{const _0xa5edf5=_0x3a5dfa;if(_0x5e221b?.[_0xa5edf5(0xec)]==='ExitPromptError')throw CliErrors[_0xa5edf5(0xe4)]('Cancelled.');throw _0x5e221b;});}export function startSpinner(_0x45d88d){const _0x517ea1=a88_0x1b79;return a88_0x133eaf({'text':_0x45d88d,'color':'cyan'})[_0x517ea1(0xf8)]();}export function stopSpinner(_0x29bb13,_0x89beec,_0x3d0a11){_0x3d0a11?_0x29bb13['succeed'](_0x89beec):_0x29bb13['fail'](_0x89beec);}export async function askConfirm(_0x5c7fbf){return onCancel(confirm({'message':_0x5c7fbf,'theme':{'prefix':''}}));}export async function askJsUrl(_0x2614bd){const _0x44f9d0=a88_0x1b79;while(!![]){const _0x130cef=await onCancel(input({'message':_0x44f9d0(0xef),'default':_0x2614bd,'theme':{'prefix':''}}));if(_0x130cef[_0x44f9d0(0xd5)]()==='')throw CliErrors[_0x44f9d0(0xe4)](_0x44f9d0(0xf3));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x44f9d0(0xf4)](_0x130cef[_0x44f9d0(0xd5)]())){console['error'](a88_0x402a12[_0x44f9d0(0xed)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x396e58=startSpinner(_0x44f9d0(0xdc));try{const _0x26af7d=await isUrlReachable(_0x130cef[_0x44f9d0(0xd5)]());stopSpinner(_0x396e58,_0x44f9d0(0xd3),_0x26af7d);if(!_0x26af7d){console[_0x44f9d0(0xde)](a88_0x402a12[_0x44f9d0(0xed)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x130cef[_0x44f9d0(0xd5)]();}catch(_0x28bbd8){stopSpinner(_0x396e58,_0x44f9d0(0xe5),![]);throw _0x28bbd8;}}}export async function askCssUrl(_0x37a367){const _0x506905=a88_0x1b79;while(!![]){const _0x2e3e27=await onCancel(input({'message':_0x506905(0xe7),'default':_0x37a367,'theme':{'prefix':''}}));if(_0x2e3e27['trim']()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x2e3e27['trim']())){console[_0x506905(0xde)](a88_0x402a12['red'](_0x506905(0xf6)));continue;}const _0x183f51=startSpinner(_0x506905(0xd9));try{const _0x5a0b20=await isUrlReachable(_0x2e3e27[_0x506905(0xd5)]());stopSpinner(_0x183f51,'CSS\x20URL\x20checked',_0x5a0b20);if(!_0x5a0b20){console[_0x506905(0xde)](a88_0x402a12['red'](_0x506905(0xdf)));continue;}return _0x2e3e27['trim']();}catch(_0x4792e1){stopSpinner(_0x183f51,_0x506905(0xd7),![]);throw _0x4792e1;}}}export async function selectPages(_0x50bd20,_0x172d61,_0x53ca82){const _0x479e8f=a88_0x1b79,_0x14746a=_0x50bd20['map'](_0x20a9d0=>({'name':_0x20a9d0['label']+'\x20\x20'+(_0x172d61[_0x479e8f(0xf1)](_0x20a9d0[_0x479e8f(0xd6)])?a88_0x402a12['gray'](_0x479e8f(0xeb)):a88_0x402a12[_0x479e8f(0xee)](_0x479e8f(0xd8))),'value':_0x20a9d0['label'],'checked':_0x53ca82?_0x53ca82[_0x479e8f(0xf7)](_0x20a9d0['label']):!_0x172d61['has'](_0x20a9d0[_0x479e8f(0xd6)])}));if(_0x14746a[_0x479e8f(0xe1)]===0x0)throw new Error(_0x479e8f(0xf2));const _0x36bd04=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x14746a,'loop':![],'theme':{'prefix':''}}));if(_0x36bd04[_0x479e8f(0xe1)]===0x0)throw new Error(_0x479e8f(0xea));return _0x50bd20['filter'](_0x1c8c32=>_0x36bd04[_0x479e8f(0xf7)](_0x1c8c32[_0x479e8f(0xe2)]));}export function isInteractive(){const _0x2d9eb7=a88_0x1b79;return process[_0x2d9eb7(0xda)][_0x2d9eb7(0xdd)]===!![];}export function requireInteractive(){const _0x3081f9=a88_0x1b79;if(!isInteractive())throw new Error(_0x3081f9(0xf0)+_0x3081f9(0xf5));}
1
+ (function(_0x2f96de,_0x31f57e){const _0x21e2eb=a88_0x38c6,_0x536127=_0x2f96de();while(!![]){try{const _0x79c83c=-parseInt(_0x21e2eb(0xb3))/0x1*(parseInt(_0x21e2eb(0xc9))/0x2)+-parseInt(_0x21e2eb(0xbd))/0x3+parseInt(_0x21e2eb(0xa5))/0x4+-parseInt(_0x21e2eb(0xc1))/0x5*(-parseInt(_0x21e2eb(0xa1))/0x6)+-parseInt(_0x21e2eb(0xae))/0x7*(-parseInt(_0x21e2eb(0xb6))/0x8)+parseInt(_0x21e2eb(0xc3))/0x9*(parseInt(_0x21e2eb(0xc0))/0xa)+parseInt(_0x21e2eb(0xa6))/0xb;if(_0x79c83c===_0x31f57e)break;else _0x536127['push'](_0x536127['shift']());}catch(_0x2318d6){_0x536127['push'](_0x536127['shift']());}}}(a88_0x3fac,0xaa7df));import a88_0x18a913 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a88_0x38c6(_0x58405f,_0x5c68cd){_0x58405f=_0x58405f-0x9c;const _0x3fac36=a88_0x3fac();let _0x38c67c=_0x3fac36[_0x58405f];return _0x38c67c;}import a88_0x1e0f45 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5e1915){return _0x5e1915['catch'](_0x59c896=>{const _0x177df3=a88_0x38c6;if(_0x59c896?.[_0x177df3(0xa8)]===_0x177df3(0xc7))throw CliErrors[_0x177df3(0xac)]('Cancelled.');throw _0x59c896;});}export function startSpinner(_0xf08c2b){const _0x398a2e=a88_0x38c6;return a88_0x1e0f45({'text':_0xf08c2b,'color':'cyan'})[_0x398a2e(0xb5)]();}export function stopSpinner(_0x19f2df,_0x2146cb,_0x4edff0){const _0x4a5263=a88_0x38c6;_0x4edff0?_0x19f2df['succeed'](_0x2146cb):_0x19f2df[_0x4a5263(0xbf)](_0x2146cb);}export async function askConfirm(_0x313a5a){return onCancel(confirm({'message':_0x313a5a,'theme':{'prefix':''}}));}export async function askJsUrl(_0x222ae4){const _0x2d9133=a88_0x38c6;while(!![]){const _0x397820=await onCancel(input({'message':_0x2d9133(0xb4),'default':_0x222ae4,'theme':{'prefix':''}}));if(_0x397820[_0x2d9133(0x9c)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x397820['trim']())){console['error'](a88_0x18a913[_0x2d9133(0xa3)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x3d7898=startSpinner(_0x2d9133(0xc6));try{const _0x324642=await isUrlReachable(_0x397820[_0x2d9133(0x9c)]());stopSpinner(_0x3d7898,_0x2d9133(0x9e),_0x324642);if(!_0x324642){console[_0x2d9133(0xbb)](a88_0x18a913[_0x2d9133(0xa3)](_0x2d9133(0xb0)));continue;}return _0x397820[_0x2d9133(0x9c)]();}catch(_0x3858bd){stopSpinner(_0x3d7898,_0x2d9133(0xbe),![]);throw _0x3858bd;}}}function a88_0x3fac(){const _0x3f5f4e=['label','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','cancelled','No\x20menus\x20selected.','7iulojx','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','isTTY','gray','4hDtFPv','\x20\x20JS\x20URL:','start','2873144YBRTAH','test','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','Cancelled.','\x20\x20CSS\x20URL:','error','length','1541028McFPYO','JS\x20URL\x20check\x20failed','fail','10QqZnlE','3766285vlRGLM','[already\x20on\x20platform]','3201894mUMwhs','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','has','\x20\x20Checking\x20JS\x20URL\x20reachability...','ExitPromptError','No\x20local\x20pages\x20found.','681286bjalsE','trim','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20checked','map','path','6ckTWTH','filter','red','includes','3036068okQkOM','3821400OjJkfQ','CSS\x20URL\x20check\x20failed','name'];a88_0x3fac=function(){return _0x3f5f4e;};return a88_0x3fac();}export async function askCssUrl(_0x22e398){const _0x27f007=a88_0x38c6;while(!![]){const _0x1fa4ee=await onCancel(input({'message':_0x27f007(0xba),'default':_0x22e398,'theme':{'prefix':''}}));if(_0x1fa4ee[_0x27f007(0x9c)]()==='')throw CliErrors[_0x27f007(0xac)](_0x27f007(0xb9));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x27f007(0xb7)](_0x1fa4ee['trim']())){console[_0x27f007(0xbb)](a88_0x18a913[_0x27f007(0xa3)](_0x27f007(0xb8)));continue;}const _0x4da9d6=startSpinner(_0x27f007(0xaf));try{const _0x27a208=await isUrlReachable(_0x1fa4ee['trim']());stopSpinner(_0x4da9d6,'CSS\x20URL\x20checked',_0x27a208);if(!_0x27a208){console['error'](a88_0x18a913[_0x27f007(0xa3)](_0x27f007(0x9d)));continue;}return _0x1fa4ee[_0x27f007(0x9c)]();}catch(_0x5487ea){stopSpinner(_0x4da9d6,_0x27f007(0xa7),![]);throw _0x5487ea;}}}export async function selectPages(_0x42f37d,_0x545321,_0x597472){const _0x2de274=a88_0x38c6,_0x16dc88=_0x42f37d[_0x2de274(0x9f)](_0x387bdb=>({'name':_0x387bdb['label']+'\x20\x20'+(_0x545321[_0x2de274(0xc5)](_0x387bdb[_0x2de274(0xa0)])?a88_0x18a913[_0x2de274(0xb2)](_0x2de274(0xc2)):a88_0x18a913['green']('[new]')),'value':_0x387bdb[_0x2de274(0xa9)],'checked':_0x597472?_0x597472[_0x2de274(0xa4)](_0x387bdb[_0x2de274(0xa9)]):!_0x545321[_0x2de274(0xc5)](_0x387bdb['path'])}));if(_0x16dc88['length']===0x0)throw new Error(_0x2de274(0xc8));const _0x4e12e5=await onCancel(checkbox({'message':_0x2de274(0xc4),'choices':_0x16dc88,'loop':![],'theme':{'prefix':''}}));if(_0x4e12e5[_0x2de274(0xbc)]===0x0)throw new Error(_0x2de274(0xad));return _0x42f37d[_0x2de274(0xa2)](_0x501936=>_0x4e12e5[_0x2de274(0xa4)](_0x501936[_0x2de274(0xa9)]));}export function isInteractive(){const _0x5383c6=a88_0x38c6;return process['stdin'][_0x5383c6(0xb1)]===!![];}export function requireInteractive(){const _0x1cf09e=a88_0x38c6;if(!isInteractive())throw new Error(_0x1cf09e(0xaa)+_0x1cf09e(0xab));}