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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- 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
+ const a77_0x5a3960=a77_0xebee;function a77_0x3a1e(){const _0x587c7d=['\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','3875964npvJDG','5951piMJcm','\x20\x20─','✓\x20Valid\x20JSON','54432zYBjFM','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','yellow','3cuPqHn','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','read','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','version','arch','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','green','Project','\x20\x20Config\x20JSON','status','explicitAppName','7995799LsVKOh','\x20\x20Auth','apiDir','2190728AxDXhZ','5cLXUjw','\x20\x20runtimeDomain:\x20\x20\x20','verbose','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(none)','✗\x20Not\x20logged\x20in','missing','159860NXKpce','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','log','6XvXxVB','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','495ApdwYw','message','cookie','padEnd','format','length','(not\x20found)','✓\x20Valid','env','bold','raw','⚠\x20Empty\x20(treated\x20as\x20{})','\x20doctor','\x20\x20Merged\x20Config','currentApp','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20Config\x20Files','(not\x20set)','riskLevel','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','source','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20explicitAppName:\x20','apps','(set,\x20length=','1679016ZRKIvt','locale','red','accessKey','check','\x20\x20Apps','gray','doctor','unknown','defaultApp','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','920590zvJqcK','appCode','Diagnose\x20CLI\x20configuration\x20and\x20connectivity'];a77_0x3a1e=function(){return _0x587c7d;};return a77_0x3a1e();}(function(_0x102baa,_0x20a1a3){const _0x4e35c3=a77_0xebee,_0x239d83=_0x102baa();while(!![]){try{const _0x1d5e43=parseInt(_0x4e35c3(0x11e))/0x1+-parseInt(_0x4e35c3(0x140))/0x2*(parseInt(_0x4e35c3(0x12e))/0x3)+parseInt(_0x4e35c3(0x125))/0x4*(-parseInt(_0x4e35c3(0x141))/0x5)+-parseInt(_0x4e35c3(0x14c))/0x6*(parseInt(_0x4e35c3(0x13d))/0x7)+-parseInt(_0x4e35c3(0x113))/0x8+-parseInt(_0x4e35c3(0x151))/0x9*(-parseInt(_0x4e35c3(0x149))/0xa)+-parseInt(_0x4e35c3(0x126))/0xb*(-parseInt(_0x4e35c3(0x129))/0xc);if(_0x1d5e43===_0x20a1a3)break;else _0x239d83['push'](_0x239d83['shift']());}catch(_0x31efd0){_0x239d83['push'](_0x239d83['shift']());}}}(a77_0x3a1e,0xcc6bb));import a77_0x47ece5 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';function a77_0xebee(_0x528f1d,_0x6e2f78){_0x528f1d=_0x528f1d-0x103;const _0x3a1ef2=a77_0x3a1e();let _0xebee39=_0x3a1ef2[_0x528f1d];return _0xebee39;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0xc6c95b){const _0x1ad377=a77_0xebee,_0x5a46a4=GIT_COMMIT!==_0x1ad377(0x11b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xf1e834=buildConfigFromFlags({}),_0x363e70=getCookie();console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](CLI_BIN_NAME+_0x1ad377(0x15d))),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)]('─'[_0x1ad377(0x10f)](0x32))),console['log'](_0x1ad377(0x12b)+_0x5a46a4),console[_0x1ad377(0x14b)](_0x1ad377(0x14e)+process[_0x1ad377(0x134)]),console[_0x1ad377(0x14b)](_0x1ad377(0x136)+process['platform']+'\x20'+process[_0x1ad377(0x135)]),console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x108))),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)]('\x20\x20─'[_0x1ad377(0x10f)](0x1e)));const _0x5bbf11=getGlobalConfigPath(),_0x426c43=getProjectConfigPath();console[_0x1ad377(0x14b)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5bbf11||a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x157)))),console['log'](_0x1ad377(0x10b)+(_0x426c43||a77_0x47ece5[_0x1ad377(0x119)]('(not\x20found)'))),console['log'](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x13a))),console[_0x1ad377(0x14b)](a77_0x47ece5['gray'](_0x1ad377(0x127)['repeat'](0x1e)));const _0x2d5253=(_0x2ad753,_0x5036f5)=>{const _0x450a97=_0x1ad377;if(!_0x5036f5){console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753[_0x450a97(0x154)](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x119)]('(no\x20file)'));return;}const _0x27ba47=inspectCliConfigJsonFile(_0x5036f5);if(_0x27ba47[_0x450a97(0x13b)]==='ok')console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753[_0x450a97(0x154)](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x138)](_0x450a97(0x128)));else{if(_0x27ba47[_0x450a97(0x13b)]==='empty')console['log']('\x20\x20'+_0x2ad753[_0x450a97(0x154)](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x12d)](_0x450a97(0x15c)));else _0x27ba47[_0x450a97(0x13b)]===_0x450a97(0x148)?console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753['padEnd'](0x11)+'\x20'+a77_0x47ece5['gray']('(missing)')):(console[_0x450a97(0x14b)]('\x20\x20'+_0x2ad753['padEnd'](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x115)](_0x450a97(0x130))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a77_0x47ece5[_0x450a97(0x115)](_0x27ba47[_0x450a97(0x152)])));}};_0x2d5253('Global',_0x5bbf11),_0x2d5253(_0x1ad377(0x139),_0x426c43),console[_0x1ad377(0x14b)](),console['log'](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x15e))),console['log'](a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x127)[_0x1ad377(0x10f)](0x1e))),console[_0x1ad377(0x14b)](_0x1ad377(0x106)+(_0xf1e834[_0x1ad377(0x11f)]||a77_0x47ece5[_0x1ad377(0x115)](_0x1ad377(0x109)))),console[_0x1ad377(0x14b)](_0x1ad377(0x121)+_0xf1e834['env']),console[_0x1ad377(0x14b)](_0x1ad377(0x122)+_0xf1e834[_0x1ad377(0x114)]),console[_0x1ad377(0x14b)](_0x1ad377(0x14f)+_0xf1e834[_0x1ad377(0x13f)]),console[_0x1ad377(0x14b)](_0x1ad377(0x150)+(_0xf1e834[_0x1ad377(0x11c)]||a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146)))),console['log'](_0x1ad377(0x10c)+(_0xf1e834[_0x1ad377(0x103)]||a77_0x47ece5[_0x1ad377(0x119)]('(none)'))),console['log'](_0x1ad377(0x110)+(_0xf1e834[_0x1ad377(0x13c)]||a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146)))),console[_0x1ad377(0x14b)](_0x1ad377(0x12a)+(_0xf1e834[_0x1ad377(0x155)]||a77_0x47ece5[_0x1ad377(0x119)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1ad377(0x155)]+')'))),console['log'](_0x1ad377(0x10e)+(_0xf1e834[_0x1ad377(0x137)]??a77_0x47ece5['gray']('(default)'))),console[_0x1ad377(0x14b)](_0x1ad377(0x104)+_0xf1e834[_0x1ad377(0x10a)]),console[_0x1ad377(0x14b)](_0x1ad377(0x144)+_0xf1e834[_0x1ad377(0x143)]),console[_0x1ad377(0x14b)](_0x1ad377(0x132)+(_0xf1e834[_0x1ad377(0x153)]?a77_0x47ece5['green'](_0x1ad377(0x112)+_0xf1e834[_0x1ad377(0x153)][_0x1ad377(0x156)]+')'):_0x363e70?a77_0x47ece5['green'](_0x1ad377(0x124)+_0x363e70[_0x1ad377(0x156)]+')'):a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146))));const _0x49e5cd=Object['keys'](_0xf1e834[_0x1ad377(0x111)]);if(_0x49e5cd[_0x1ad377(0x156)]>0x0){console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x118))),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)]('\x20\x20─'[_0x1ad377(0x10f)](0x1e)));for(const _0x598da9 of _0x49e5cd){const _0x1a0377=_0xf1e834[_0x1ad377(0x111)][_0x598da9],_0x3f43f6=_0x598da9===_0xf1e834[_0x1ad377(0x11c)],_0x4fe776=_0x598da9===_0xf1e834[_0x1ad377(0x103)],_0x1ddd97=_0x4fe776?a77_0x47ece5[_0x1ad377(0x138)](_0x1ad377(0x107)):'',_0x17b6b0=_0x3f43f6?'\x20(default)':'';console['log']('\x20\x20'+_0x598da9+_0x17b6b0+_0x1ddd97),console['log'](_0x1ad377(0x14d)+_0x1a0377['appcode']);const _0x3515df=buildAppDoctorFields(_0x1a0377,{'env':_0xf1e834[_0x1ad377(0x159)],'apiDir':_0xf1e834[_0x1ad377(0x15b)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x1ad377(0x13f)],'cookie':_0xf1e834[_0x1ad377(0x153)]||_0x363e70||undefined,'accessKey':_0xf1e834[_0x1ad377(0x116)]});console[_0x1ad377(0x14b)](_0x1ad377(0x14a)+_0x3515df['env'][_0x1ad377(0x105)]+'\x20\x20'+a77_0x47ece5[_0x1ad377(0x119)]('('+_0x3515df[_0x1ad377(0x159)][_0x1ad377(0x10d)]+')')),console[_0x1ad377(0x14b)](_0x1ad377(0x145)+_0x3515df[_0x1ad377(0x13f)]['value']+'\x20\x20'+a77_0x47ece5['gray']('('+_0x3515df[_0x1ad377(0x13f)][_0x1ad377(0x10d)]+')'));const _0x2a4ed1=_0x3515df[_0x1ad377(0x153)]['value']?a77_0x47ece5['green'](_0x1ad377(0x112)+_0x3515df[_0x1ad377(0x153)][_0x1ad377(0x105)][_0x1ad377(0x156)]+')'):a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146));console['log'](_0x1ad377(0x12f)+_0x2a4ed1+'\x20\x20'+a77_0x47ece5[_0x1ad377(0x119)]('('+_0x3515df['cookie'][_0x1ad377(0x10d)]+')'));const _0x16e4b7=_0x3515df[_0x1ad377(0x116)][_0x1ad377(0x105)]?a77_0x47ece5[_0x1ad377(0x138)](_0x1ad377(0x112)+_0x3515df[_0x1ad377(0x116)][_0x1ad377(0x105)]['length']+')'):a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x146));console[_0x1ad377(0x14b)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x16e4b7+'\x20\x20'+a77_0x47ece5['gray']('('+_0x3515df[_0x1ad377(0x116)][_0x1ad377(0x10d)]+')'));}}console[_0x1ad377(0x14b)](),console['log'](a77_0x47ece5['bold']('\x20\x20API\x20Endpoints')),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x119)](_0x1ad377(0x127)['repeat'](0x1e))),console[_0x1ad377(0x14b)](_0x1ad377(0x123)+getApiDomain()),console[_0x1ad377(0x14b)](_0x1ad377(0x12c)+getUserDomain()),console[_0x1ad377(0x14b)](_0x1ad377(0x142)+getRuntimeDomain()),console[_0x1ad377(0x14b)](),console[_0x1ad377(0x14b)](a77_0x47ece5[_0x1ad377(0x15a)](_0x1ad377(0x13e))),console['log'](a77_0x47ece5['gray'](_0x1ad377(0x127)[_0x1ad377(0x10f)](0x1e)));if(_0x363e70){const _0x3bf9f7=await getIsSessionValid();console[_0x1ad377(0x14b)](_0x1ad377(0x11d)+(_0x3bf9f7?a77_0x47ece5['green'](_0x1ad377(0x158)):a77_0x47ece5[_0x1ad377(0x115)](_0x1ad377(0x133))));}else console['log'](_0x1ad377(0x11d)+a77_0x47ece5[_0x1ad377(0x115)](_0x1ad377(0x147)));return console[_0x1ad377(0x14b)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x5a3960(0x11a),'command':a77_0x5a3960(0x117),'description':a77_0x5a3960(0x120),'risk':a77_0x5a3960(0x131),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_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_0x8dc85a=a78_0x1f7b;(function(_0x1a58a8,_0x359fcf){const _0xb9222f=a78_0x1f7b,_0x2e8fff=_0x1a58a8();while(!![]){try{const _0x5e8fc2=-parseInt(_0xb9222f(0x19e))/0x1*(-parseInt(_0xb9222f(0x17a))/0x2)+-parseInt(_0xb9222f(0x198))/0x3+-parseInt(_0xb9222f(0x18f))/0x4+parseInt(_0xb9222f(0x188))/0x5*(-parseInt(_0xb9222f(0x186))/0x6)+-parseInt(_0xb9222f(0x1a6))/0x7*(parseInt(_0xb9222f(0x19b))/0x8)+parseInt(_0xb9222f(0x1a0))/0x9+parseInt(_0xb9222f(0x17f))/0xa;if(_0x5e8fc2===_0x359fcf)break;else _0x2e8fff['push'](_0x2e8fff['shift']());}catch(_0x365a31){_0x2e8fff['push'](_0x2e8fff['shift']());}}}(a78_0x4943,0x45af9));function a78_0x4943(){const _0x2add=['1610334vAHfmt','yes','\x20\x20Apps:\x20','Usage:\x20','global','boolean','3861242fUQhDJ','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','some','run','2rKTPOy','cwd','\x20\x20Env:\x20','project','init','12872360wlkMig','toLocaleString','Target\x20environment','defaultApp','\x0a✓\x20Successfully\x20initialized\x20','appCode','map','6fIZDvV','bool','2813380JcbqqC','env','join','validation','\x20\x20Default:\x20','log','custom','2038896GNwWyE','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','appcode','\x20\x20Config:\x20','\x20config','Auto-confirm\x20prompts','message','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','write','37098DRhJxq','str','App\x20code\x20to\x20initialize\x20with','8ZNAChO','nonInteractive','flagMissing','455643lKxkNd','production'];a78_0x4943=function(){return _0x2add;};return a78_0x4943();}import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x55d225){return{'appCode':_0x55d225,'appName':_0x55d225};}function writeInitConfig(_0x2186ad,_0x4213a9,_0xffde12){const _0x4676c1=a78_0x1f7b,_0x1651f3=resolveWriteConfigPath(_0x2186ad),_0x3fd727=buildCanonicalProjectConfig({},{'appCodes':_0x4213a9[_0x4676c1(0x185)](_0x2987b6=>_0x2987b6[_0x4676c1(0x184)]),'env':_0xffde12,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x4676c1(0x180)]()}});writeConfigFile(_0x1651f3,_0x3fd727);const _0x3561d1=_0x2186ad===_0x4676c1(0x1a4)?'global':'project';console[_0x4676c1(0x18d)](_0x4676c1(0x183)+_0x3561d1+_0x4676c1(0x193)),console[_0x4676c1(0x18d)](_0x4676c1(0x1a2)+_0x4213a9[_0x4676c1(0x185)](_0x5d42af=>_0x5d42af['appCode'])[_0x4676c1(0x18a)](',\x20')),console[_0x4676c1(0x18d)](_0x4676c1(0x18c)+_0x3fd727[_0x4676c1(0x182)]),console[_0x4676c1(0x18d)](_0x4676c1(0x17c)+_0x3fd727[_0x4676c1(0x189)]),console[_0x4676c1(0x18d)](_0x4676c1(0x192)+_0x1651f3);}async function runSmartInit(_0x25b52b){const _0x475248=a78_0x1f7b,_0x14e8b2=process[_0x475248(0x17b)](),_0x3f5548=_0x25b52b[_0x475248(0x187)](_0x475248(0x1a4))?_0x475248(0x1a4):_0x475248(0x17d),_0x13e6e7=_0x25b52b[_0x475248(0x199)](_0x475248(0x189))||_0x475248(0x19f),_0x567c60=_0x25b52b['str'](_0x475248(0x191))||undefined,_0x339f71=_0x25b52b[_0x475248(0x187)](_0x475248(0x17d));if(_0x339f71){const {initConfig:_0x26d5b9}=await import('../../commands/project/init.js');return _0x26d5b9({'appcode':_0x567c60,'env':_0x13e6e7,'autoYes':_0x25b52b['bool']('yes')});}if(_0x3f5548===_0x475248(0x17d)){const _0x1033c4=existsSync(resolve(_0x14e8b2,NEW_CONFIG_NAME)),_0x109566=LEGACY_CONFIG_NAMES[_0x475248(0x1a8)](_0xb19ba0=>existsSync(resolve(_0x14e8b2,_0xb19ba0)));if(_0x109566&&!_0x1033c4)return console[_0x475248(0x18d)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x25b52b[_0x475248(0x19c)],{'yes':_0x25b52b[_0x475248(0x187)](_0x475248(0x1a1))});if(_0x1033c4)throw CliErrors[_0x475248(0x18b)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`'+CLI_BIN_NAME+_0x475248(0x196));}if(_0x567c60){const _0x298a93=validateAppcode(_0x567c60);if(!_0x298a93['valid'])throw CliErrors[_0x475248(0x18b)](_0x298a93[_0x475248(0x195)]);writeInitConfig(_0x3f5548,[syntheticApp(_0x567c60)],_0x13e6e7);return;}if(_0x25b52b[_0x475248(0x19c)])throw CliErrors[_0x475248(0x19d)]('appcode',_0x475248(0x1a3)+CLI_BIN_NAME+_0x475248(0x190));const _0x2f96bc=getCookie(),_0xa08ba7=await selectMultipleApps(_0x2f96bc),_0x33a26c=_0xa08ba7===_0x475248(0x18e)?[syntheticApp(await promptCustomAppcode())]:_0xa08ba7;writeInitConfig(_0x3f5548,_0x33a26c,_0x13e6e7);}const initFlags=[{'name':a78_0x8dc85a(0x1a4),'type':a78_0x8dc85a(0x1a5),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':'env','type':'string','description':a78_0x8dc85a(0x181),'default':a78_0x8dc85a(0x19f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x8dc85a(0x191),'type':'string','description':a78_0x8dc85a(0x19a)},{'name':a78_0x8dc85a(0x17d),'type':'boolean','description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':'yes','type':a78_0x8dc85a(0x1a5),'description':a78_0x8dc85a(0x194),'default':![]}];function a78_0x1f7b(_0x2ac0c5,_0x3834c2){_0x2ac0c5=_0x2ac0c5-0x179;const _0x49435d=a78_0x4943();let _0x1f7b92=_0x49435d[_0x2ac0c5];return _0x1f7b92;}export const initDefinitions=[{'service':a78_0x8dc85a(0x17e),'command':a78_0x8dc85a(0x179),'description':a78_0x8dc85a(0x1a7),'risk':a78_0x8dc85a(0x197),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x6eeda3){return await runSmartInit(_0x6eeda3),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_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 a79_0x50eb(_0x4eb248,_0x430206){_0x4eb248=_0x4eb248-0xef;const _0x518b30=a79_0x518b();let _0x50eb35=_0x518b30[_0x4eb248];return _0x50eb35;}function a79_0x518b(){const _0x15f443=['777832oqoFFL','12uTNcbc','6654930ibBnoA','10876149RvEbjH','1764890tinSlV','3ANhsLi','12yFQOAa','3481819RfxHxK','2496662vTGsyT','10WYLjpm','224720kmFPwV','343wBvhcb'];a79_0x518b=function(){return _0x15f443;};return a79_0x518b();}(function(_0xd619a2,_0x5e8f04){const _0x2aeaf9=a79_0x50eb,_0x19af9f=_0xd619a2();while(!![]){try{const _0x2b8e7c=-parseInt(_0x2aeaf9(0xf5))/0x1+-parseInt(_0x2aeaf9(0xf1))/0x2*(parseInt(_0x2aeaf9(0xfa))/0x3)+-parseInt(_0x2aeaf9(0xf6))/0x4*(parseInt(_0x2aeaf9(0xf9))/0x5)+parseInt(_0x2aeaf9(0xf7))/0x6+parseInt(_0x2aeaf9(0xf4))/0x7*(parseInt(_0x2aeaf9(0xf3))/0x8)+parseInt(_0x2aeaf9(0xf8))/0x9*(parseInt(_0x2aeaf9(0xf2))/0xa)+parseInt(_0x2aeaf9(0xf0))/0xb*(parseInt(_0x2aeaf9(0xef))/0xc);if(_0x2b8e7c===_0x5e8f04)break;else _0x19af9f['push'](_0x19af9f['shift']());}catch(_0x38bdd){_0x19af9f['push'](_0x19af9f['shift']());}}}(a79_0x518b,0xe1f12));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_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_0x590a47=a80_0x525d;function a80_0x1ae6(){const _0x47966e=['auth_required','824516XHKPNH','RABETBASE_DISABLE_ISSUE_NUDGE','2983505WbnhNA','replace','\x20issue\x20report\x20\x5c','issue','6XdmgMc','service','2294594EHhMHt','write','command','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','validation_error','\x20\x20\x20\x20--title\x20\x22','1511828qhGEsD','334728SKdVCJ','join','unknown_command','config_missing','has','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x22\x20\x5c','flag_missing','3432645GoyECi','slice','218808CEiBMV','Hit\x20a\x20','stderr','not_in_project','=1\x20to\x20silence\x20this\x20hint.'];a80_0x1ae6=function(){return _0x47966e;};return a80_0x1ae6();}(function(_0x5310b0,_0x24316a){const _0x4dfdd1=a80_0x525d,_0x1fd0c0=_0x5310b0();while(!![]){try{const _0x3f8cf8=parseInt(_0x4dfdd1(0xe6))/0x1+parseInt(_0x4dfdd1(0xe0))/0x2+-parseInt(_0x4dfdd1(0xef))/0x3+parseInt(_0x4dfdd1(0xf1))/0x4+parseInt(_0x4dfdd1(0xda))/0x5*(-parseInt(_0x4dfdd1(0xde))/0x6)+-parseInt(_0x4dfdd1(0xd8))/0x7+-parseInt(_0x4dfdd1(0xe7))/0x8;if(_0x3f8cf8===_0x24316a)break;else _0x1fd0c0['push'](_0x1fd0c0['shift']());}catch(_0x104491){_0x1fd0c0['push'](_0x1fd0c0['shift']());}}}(a80_0x1ae6,0xc68e2));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x590a47(0xd9);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x590a47(0xd7),a80_0x590a47(0xea),a80_0x590a47(0xd5),a80_0x590a47(0xe9),a80_0x590a47(0xee),a80_0x590a47(0xe4),'network_error']),defaultWriter=_0x42577a=>{const _0xb89141=a80_0x590a47;process[_0xb89141(0xf3)][_0xb89141(0xe1)](_0x42577a);};function a80_0x525d(_0x2bbed3,_0x33026f){_0x2bbed3=_0x2bbed3-0xd5;const _0x1ae6e4=a80_0x1ae6();let _0x525dfe=_0x1ae6e4[_0x2bbed3];return _0x525dfe;}export function shouldNudgeForError(_0x4fab7e,_0x544c86){const _0x3ba525=a80_0x590a47;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x544c86[_0x3ba525(0xdf)]===_0x3ba525(0xdd)&&_0x544c86['command']==='report')return![];if(_0x4fab7e instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x3ba525(0xeb)](_0x4fab7e['code']);return!![];}export function printIssueReportNudgeForError(_0x3e1bbd,_0xae02dd,_0x3cb389=defaultWriter){if(!shouldNudgeForError(_0x3e1bbd,_0xae02dd))return;const _0x28ba89=buildSuggestedTitle(_0x3e1bbd,_0xae02dd);_0x3cb389(formatNudge(_0x28ba89));}function buildSuggestedTitle(_0x9f5bd8,_0x277f36){const _0x22447a=a80_0x590a47,_0x553618=_0x9f5bd8 instanceof Error?_0x9f5bd8['message']:String(_0x9f5bd8),_0x7f9b4f=_0x553618[_0x22447a(0xdb)](/[\r\n]+/g,'\x20')[_0x22447a(0xdb)](/\s+/g,'\x20')['trim']()[_0x22447a(0xf0)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x4990bc=CLI_BIN_NAME+'\x20'+_0x277f36[_0x22447a(0xdf)]+'\x20'+_0x277f36[_0x22447a(0xe2)];return _0x7f9b4f['length']>0x0?_0x4990bc+':\x20'+_0x7f9b4f:_0x4990bc;}function formatNudge(_0x208a25){const _0x407df6=a80_0x590a47;return['',_0x407df6(0xf2)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x407df6(0xdc),_0x407df6(0xe5)+_0x208a25+_0x407df6(0xed),_0x407df6(0xe3),_0x407df6(0xec),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x407df6(0xd6),''][_0x407df6(0xe8)]('\x0a');}
@@ -1 +1 @@
1
- const a81_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_0x1bdb76=a81_0x2c41;function a81_0x2c41(_0x5055d9,_0x2d9a3c){_0x5055d9=_0x5055d9-0x165;const _0x29a859=a81_0x29a8();let _0x2c4191=_0x29a859[_0x5055d9];return _0x2c4191;}(function(_0x3e9802,_0x40b9d7){const _0x2bd0d4=a81_0x2c41,_0x75af5d=_0x3e9802();while(!![]){try{const _0x340b5d=parseInt(_0x2bd0d4(0x19c))/0x1*(-parseInt(_0x2bd0d4(0x179))/0x2)+-parseInt(_0x2bd0d4(0x16b))/0x3+parseInt(_0x2bd0d4(0x19b))/0x4+-parseInt(_0x2bd0d4(0x197))/0x5+-parseInt(_0x2bd0d4(0x186))/0x6+-parseInt(_0x2bd0d4(0x172))/0x7*(-parseInt(_0x2bd0d4(0x168))/0x8)+parseInt(_0x2bd0d4(0x191))/0x9;if(_0x340b5d===_0x40b9d7)break;else _0x75af5d['push'](_0x75af5d['shift']());}catch(_0x563a51){_0x75af5d['push'](_0x75af5d['shift']());}}}(a81_0x29a8,0xa610b));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a81_0x29a8(){const _0x56fca0=['1306893HCBpmo','descriptionFilePath','compress','truncated:\x20original\x20','Platform\x20issue\x20reported\x20(','issue.description_truncated','validation','14MIKkNy','message','One-line\x20issue\x20summary','File\x20not\x20found:\x20','trim','descriptionSource:\x20','issue.description_redactions','5344Kgqehq','issue.description_redaction_kinds','redacted\x20','truncated\x20from\x20','redactions:\x20','Platform\x20issue\x20reported','otel://','issue.title','redactionKinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','inline','apiError','filter','7717314DUmTit','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','file','\x20bytes','join','push','descriptionSource','issue.description_original_bytes','POST','originalBytes','Issue\x20description\x20cannot\x20be\x20empty.','9115947aDkBuR','utf8','string','description','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','sanitize','2750420PEGxwg','truncated','issue.description','title','3708832FRMnkK','94niwkFz','length','redactionCount','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','str','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','5052856oiZkKB','cwd','descriptionFile:\x20'];a81_0x29a8=function(){return _0x56fca0;};return a81_0x29a8();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':'issue','command':'report','description':a81_0x1bdb76(0x165),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x1bdb76(0x16d),'flags':[{'name':a81_0x1bdb76(0x19a),'type':a81_0x1bdb76(0x193),'required':!![],'description':a81_0x1bdb76(0x174)},{'name':a81_0x1bdb76(0x194),'type':a81_0x1bdb76(0x193),'description':a81_0x1bdb76(0x19f)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x1bdb76(0x193),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0xe99534){const _0x54652a=a81_0x1bdb76,_0x525e87=_0xe99534[_0x54652a(0x166)](_0x54652a(0x19a))[_0x54652a(0x176)](),_0x232abc=_0xe99534['str']('description')[_0x54652a(0x176)](),_0x2d1aee=_0xe99534[_0x54652a(0x166)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x525e87)throw CliErrors['flagMissing']('title',_0x54652a(0x167));const _0x31779a=_0x232abc['length']>0x0,_0x150e54=_0x2d1aee[_0x54652a(0x19d)]>0x0;if(_0x31779a===_0x150e54)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x150e54){const _0x39d67d=resolve(process[_0x54652a(0x169)](),_0x2d1aee);if(!existsSync(_0x39d67d))throw CliErrors[_0x54652a(0x171)](_0x54652a(0x175)+_0x39d67d);}},async 'dryRun'(_0x49552a){const _0x7a73a5=a81_0x1bdb76,_0x1462ad=await prepareIssueReport(_0x49552a);return{'method':_0x7a73a5(0x18e),'url':_0x7a73a5(0x17f)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1462ad[_0x7a73a5(0x19a)],'issue.description':_0x1462ad['description'],'issue.description_original_bytes':_0x1462ad['sanitize'][_0x7a73a5(0x18f)],'issue.description_truncated':_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x198)],'issue.description_redactions':_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x19e)],'issue.description_redaction_kinds':_0x1462ad[_0x7a73a5(0x196)]['redactionKinds'][_0x7a73a5(0x18a)](',')}},'description':[_0x7a73a5(0x182),_0x7a73a5(0x177)+_0x1462ad[_0x7a73a5(0x18c)],_0x1462ad[_0x7a73a5(0x16c)]?_0x7a73a5(0x16a)+_0x1462ad[_0x7a73a5(0x16c)]:null,_0x1462ad['sanitize'][_0x7a73a5(0x198)]?_0x7a73a5(0x16e)+_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x18f)]+_0x7a73a5(0x189):null,_0x1462ad['sanitize'][_0x7a73a5(0x19e)]>0x0?_0x7a73a5(0x17d)+_0x1462ad['sanitize'][_0x7a73a5(0x19e)]+'\x20('+_0x1462ad[_0x7a73a5(0x196)][_0x7a73a5(0x181)][_0x7a73a5(0x18a)](',\x20')+')':null][_0x7a73a5(0x185)](Boolean)[_0x7a73a5(0x18a)]('\x0a')};},async 'execute'(_0x2a99fd){const _0x14c95=a81_0x1bdb76,_0x5a72ab=await prepareIssueReport(_0x2a99fd);try{await sendPlatformIssueCollectLog({'title':_0x5a72ab[_0x14c95(0x19a)],'description':_0x5a72ab[_0x14c95(0x194)],'sanitize':{'originalBytes':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x18f)],'truncated':_0x5a72ab['sanitize'][_0x14c95(0x198)],'redactionCount':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x19e)],'redactionKinds':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x181)]}});}catch(_0x1b7498){throw CliErrors[_0x14c95(0x184)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x1b7498 instanceof Error?_0x1b7498[_0x14c95(0x173)]:String(_0x1b7498)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x5a72ab['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x14c95(0x180),_0x14c95(0x199),_0x14c95(0x18d),_0x14c95(0x170),_0x14c95(0x178),_0x14c95(0x17a)],'issue':{'title':_0x5a72ab['title'],'descriptionLength':_0x5a72ab[_0x14c95(0x194)]['length'],'descriptionSource':_0x5a72ab[_0x14c95(0x18c)],..._0x5a72ab['descriptionFilePath']?{'descriptionFile':_0x5a72ab[_0x14c95(0x16c)]}:{},'sanitize':{'originalBytes':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x18f)],'truncated':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x198)],'redactions':_0x5a72ab[_0x14c95(0x196)]['redactionCount'],'redactionKinds':_0x5a72ab[_0x14c95(0x196)][_0x14c95(0x181)]}}}};}};function buildResultMessage(_0x27cb75){const _0x12bbd6=a81_0x1bdb76,_0xda6916=[];return _0x27cb75[_0x12bbd6(0x198)]&&_0xda6916[_0x12bbd6(0x18b)](_0x12bbd6(0x17c)+_0x27cb75[_0x12bbd6(0x18f)]+_0x12bbd6(0x189)),_0x27cb75[_0x12bbd6(0x19e)]>0x0&&_0xda6916[_0x12bbd6(0x18b)](_0x12bbd6(0x17b)+_0x27cb75['redactionCount']+'\x20secret(s):\x20'+_0x27cb75[_0x12bbd6(0x181)][_0x12bbd6(0x18a)](',\x20')),_0xda6916[_0x12bbd6(0x19d)]===0x0?_0x12bbd6(0x17e):_0x12bbd6(0x16f)+_0xda6916[_0x12bbd6(0x18a)](';\x20')+')';}async function prepareIssueReport(_0x5ebc0a){const _0x864169=a81_0x1bdb76,_0x2856c6=_0x5ebc0a[_0x864169(0x166)](_0x864169(0x19a))['trim'](),_0x36041c=_0x5ebc0a[_0x864169(0x166)]('description'),_0x2820fe=_0x5ebc0a['str'](DESCRIPTION_FILE_FLAG)[_0x864169(0x176)]();if(!_0x2820fe){const _0x1f81be=_0x36041c;if(!_0x1f81be[_0x864169(0x176)]())throw CliErrors[_0x864169(0x171)](_0x864169(0x190),_0x864169(0x187));const _0x2c0443=sanitizeIssueDescription(_0x1f81be);return{'title':_0x2856c6,'description':_0x2c0443[_0x864169(0x194)],'descriptionSource':_0x864169(0x183),'sanitize':_0x2c0443};}const _0x3f0cc1=resolve(process[_0x864169(0x169)](),_0x2820fe),_0x905ded=await readFile(_0x3f0cc1,_0x864169(0x192));if(!_0x905ded[_0x864169(0x176)]())throw CliErrors[_0x864169(0x171)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x3f0cc1,_0x864169(0x195));const _0x48b562=sanitizeIssueDescription(_0x905ded);return{'title':_0x2856c6,'description':_0x48b562[_0x864169(0x194)],'descriptionSource':_0x864169(0x188),'descriptionFilePath':_0x3f0cc1,'sanitize':_0x48b562};}
@@ -1 +1 @@
1
- function a82_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_0x1f06c7=a82_0x1eb7;function a82_0x1eb7(_0x571992,_0x79c711){_0x571992=_0x571992-0xbd;const _0x1d8974=a82_0x1d89();let _0x1eb743=_0x1d8974[_0x571992];return _0x1eb743;}function a82_0x1d89(){const _0xad80b4=['2000185tlkkfe','push','1359yGQmWm','bearer-jwt','pattern','kind','663058kTdjFr','1047872CRUbKE','636ucgYJl','12mfvfuG','subarray','cookie','7062240OlOafi','authorization','from','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','26842XtjGvq','REDACTED:cookie','24gvzcbd','label','91670RQgAvK','includes','password','max','replace','utf8','18aSUADY','REDACTED:bearer-jwt','byteLength','1688348CMghOu','REDACTED:private-key'];a82_0x1d89=function(){return _0xad80b4;};return a82_0x1d89();}(function(_0x52a3f4,_0x4d3619){const _0x55c911=a82_0x1eb7,_0x2a55f3=_0x52a3f4();while(!![]){try{const _0x4ccb6a=-parseInt(_0x55c911(0xd5))/0x1*(-parseInt(_0x55c911(0xd7))/0x2)+-parseInt(_0x55c911(0xce))/0x3*(parseInt(_0x55c911(0xc3))/0x4)+parseInt(_0x55c911(0xc5))/0x5*(-parseInt(_0x55c911(0xc0))/0x6)+-parseInt(_0x55c911(0xcc))/0x7+-parseInt(_0x55c911(0xd1))/0x8+-parseInt(_0x55c911(0xc7))/0x9*(-parseInt(_0x55c911(0xd9))/0xa)+-parseInt(_0x55c911(0xcb))/0xb*(-parseInt(_0x55c911(0xcd))/0xc);if(_0x4ccb6a===_0x4d3619)break;else _0x2a55f3['push'](_0x2a55f3['shift']());}catch(_0x13e2bd){_0x2a55f3['push'](_0x2a55f3['shift']());}}}(a82_0x1d89,0xef498));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x1f06c7(0xd4),REDACTION_RULES=[{'kind':a82_0x1f06c7(0xd0),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x1f06c7(0xd6)},{'kind':a82_0x1f06c7(0xd2),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x1f06c7(0xc4)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x1f06c7(0xdb),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a82_0x1f06c7(0xc8),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x1f06c7(0xc1)}];export function sanitizeIssueDescription(_0x113087){const _0x3ea1ed=a82_0x1f06c7,_0x57aaba=Buffer['byteLength'](_0x113087,_0x3ea1ed(0xbf)),_0x57c1a0=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2da65b=_0x113087,_0x5574a5=0x0;const _0x683d55=[];if(!_0x57c1a0)for(const _0x3012bb of REDACTION_RULES){let _0x680fe0=0x0;_0x2da65b=_0x2da65b[_0x3ea1ed(0xbe)](_0x3012bb[_0x3ea1ed(0xc9)],(_0x2a805a,_0x38c09d)=>{const _0x546f50=_0x3ea1ed;_0x680fe0+=0x1;const _0x13d5b8=typeof _0x38c09d==='string'?_0x38c09d:'';return _0x13d5b8+'['+_0x3012bb[_0x546f50(0xd8)]+']';}),_0x680fe0>0x0&&(_0x5574a5+=_0x680fe0,!_0x683d55[_0x3ea1ed(0xda)](_0x3012bb[_0x3ea1ed(0xca)])&&_0x683d55[_0x3ea1ed(0xc6)](_0x3012bb[_0x3ea1ed(0xca)]));}let _0x1d3c3a=![];if(Buffer[_0x3ea1ed(0xc2)](_0x2da65b,_0x3ea1ed(0xbf))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1d3c3a=!![];const _0x44b375=Buffer[_0x3ea1ed(0xc2)](TRUNCATION_NOTICE,_0x3ea1ed(0xbf)),_0x296230=Math[_0x3ea1ed(0xbd)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x44b375);_0x2da65b=sliceUtf8Bytes(_0x2da65b,_0x296230)+TRUNCATION_NOTICE;}return{'description':_0x2da65b,'originalBytes':_0x57aaba,'truncated':_0x1d3c3a,'redactionCount':_0x5574a5,'redactionKinds':_0x683d55};}function sliceUtf8Bytes(_0x45c776,_0x399b28){const _0x2d3d4f=a82_0x1f06c7;if(_0x399b28<=0x0)return'';const _0x32a84a=Buffer[_0x2d3d4f(0xd3)](_0x45c776,_0x2d3d4f(0xbf));if(_0x32a84a[_0x2d3d4f(0xc2)]<=_0x399b28)return _0x45c776;let _0x5c37bf=_0x399b28;while(_0x5c37bf>0x0){const _0x36f463=_0x32a84a[_0x5c37bf];if(_0x36f463===undefined||(_0x36f463&0xc0)!==0x80)break;_0x5c37bf-=0x1;}return _0x32a84a[_0x2d3d4f(0xcf)](0x0,_0x5c37bf)['toString'](_0x2d3d4f(0xbf));}
@@ -1 +1 @@
1
- const a83_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_0x2207(_0x2b9e13,_0xe9ef7d){_0x2b9e13=_0x2b9e13-0x7e;const _0x3ee97f=a83_0x3ee9();let _0x220738=_0x3ee97f[_0x2b9e13];return _0x220738;}const a83_0xb5ff6d=a83_0x2207;(function(_0x15ecc6,_0x283806){const _0x52df83=a83_0x2207,_0x17c374=_0x15ecc6();while(!![]){try{const _0x460fef=parseInt(_0x52df83(0x82))/0x1*(-parseInt(_0x52df83(0x7e))/0x2)+parseInt(_0x52df83(0x80))/0x3*(parseInt(_0x52df83(0x8c))/0x4)+parseInt(_0x52df83(0x92))/0x5*(-parseInt(_0x52df83(0x89))/0x6)+parseInt(_0x52df83(0x9c))/0x7+parseInt(_0x52df83(0x81))/0x8+-parseInt(_0x52df83(0x9e))/0x9+-parseInt(_0x52df83(0x88))/0xa*(-parseInt(_0x52df83(0x94))/0xb);if(_0x460fef===_0x283806)break;else _0x17c374['push'](_0x17c374['shift']());}catch(_0x5a5f53){_0x17c374['push'](_0x17c374['shift']());}}}(a83_0x3ee9,0x97dda));import{logger}from'../../utils/logger.js';function printLogs(_0x1208d5){const _0x5a45af=a83_0x2207;if(_0x1208d5[_0x5a45af(0x84)]===0x0){console[_0x5a45af(0x8f)](_0x5a45af(0x9a));return;}console[_0x5a45af(0x8f)](_0x5a45af(0x8d)),_0x1208d5[_0x5a45af(0x9f)]((_0x5e69ef,_0x4eeb7d)=>{const _0x26d6bc=_0x5a45af,_0x54af76=new Date(_0x5e69ef['timestamp'])['toLocaleString']('en-US'),_0x47c3d5=_0x5e69ef[_0x26d6bc(0x9d)]===_0x26d6bc(0x91)?'√':_0x5e69ef['level']===_0x26d6bc(0x97)?'×':_0x5e69ef[_0x26d6bc(0x9d)]==='warn'?'!':'i';console[_0x26d6bc(0x8f)](_0x4eeb7d+0x1+'.\x20'+_0x47c3d5+'\x20['+_0x5e69ef[_0x26d6bc(0x90)]+']\x20'+_0x5e69ef[_0x26d6bc(0x99)]),console[_0x26d6bc(0x8f)](_0x26d6bc(0x8e)+_0x54af76),_0x5e69ef[_0x26d6bc(0x96)]&&console[_0x26d6bc(0x8f)](_0x26d6bc(0x85)+_0x5e69ef[_0x26d6bc(0x96)]+'ms'),_0x5e69ef[_0x26d6bc(0x86)]&&Object[_0x26d6bc(0x95)](_0x5e69ef[_0x26d6bc(0x86)])['length']>0x0&&console[_0x26d6bc(0x8f)]('\x20\x20\x20Details:\x20'+JSON[_0x26d6bc(0x98)](_0x5e69ef[_0x26d6bc(0x86)],null,0x2)),console[_0x26d6bc(0x8f)]('');});}export const logsDefinitions=[{'service':a83_0xb5ff6d(0x8b),'command':a83_0xb5ff6d(0x83),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x137bf1){const _0x4c2432=a83_0xb5ff6d;return printLogs(logger[_0x4c2432(0x93)]()),{'ok':!![]};}},{'service':'logs','command':'clear','description':a83_0xb5ff6d(0x8a),'risk':a83_0xb5ff6d(0x87),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x325c78){const _0x42880e=a83_0xb5ff6d;return logger[_0x42880e(0x9b)](),console[_0x42880e(0x8f)](_0x42880e(0x7f)),{'ok':!![]};}}];function a83_0x3ee9(){const _0x276f82=['\x20\x20\x20Duration:\x20','details','write','1230mTzqXS','54276YQovFY','Clear\x20command\x20history\x20logs','logs','12eUKsFr','*\x20Lovrabet\x20CLI\x20logs:\x0a','\x20\x20\x20Time:\x20','log','command','success','585pEgzFb','readLogs','191587StBtFu','keys','duration','error','stringify','message','*\x20No\x20logs\x20found','clearLogs','456533MdCkPp','level','7108290HTIFOe','forEach','39626bRgsqQ','*\x20Logs\x20cleared','1180713RlFnxu','1056800EZmrrw','53YyjSBx','show','length'];a83_0x3ee9=function(){return _0x276f82;};return a83_0x3ee9();}
@@ -1 +1 @@
1
- (function(_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(_0x46da8a,_0x338774){const _0x1341f6=a84_0x4dcd,_0xe4ed7a=_0x46da8a();while(!![]){try{const _0x3eb220=-parseInt(_0x1341f6(0x10a))/0x1*(parseInt(_0x1341f6(0x102))/0x2)+-parseInt(_0x1341f6(0x104))/0x3+-parseInt(_0x1341f6(0x103))/0x4+-parseInt(_0x1341f6(0x107))/0x5+-parseInt(_0x1341f6(0x106))/0x6*(-parseInt(_0x1341f6(0x101))/0x7)+-parseInt(_0x1341f6(0x108))/0x8+-parseInt(_0x1341f6(0x109))/0x9*(-parseInt(_0x1341f6(0x105))/0xa);if(_0x3eb220===_0x338774)break;else _0xe4ed7a['push'](_0xe4ed7a['shift']());}catch(_0x50f69f){_0xe4ed7a['push'](_0xe4ed7a['shift']());}}}(a84_0x5846,0x2e722));import{menuList}from'../../commands/menu/list.js';function a84_0x4dcd(_0x49b820,_0x15a035){_0x49b820=_0x49b820-0x101;const _0x58468b=a84_0x5846();let _0x4dcd83=_0x58468b[_0x49b820];return _0x4dcd83;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a84_0x5846(){const _0x52c845=['4347846srVvMZ','1zPsKwg','14pNgMHz','500274YhZkuN','95644RskIVt','176553zCzXEr','20tGlvdl','339942eqkGYy','1823885QzPSIE','1532672pEhOqU'];a84_0x5846=function(){return _0x52c845;};return a84_0x5846();}
@@ -1 +1 @@
1
- const a85_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_0x28da0f=a85_0x5c76;(function(_0x1fa8d9,_0x4468eb){const _0x1c165b=a85_0x5c76,_0x1b3ee3=_0x1fa8d9();while(!![]){try{const _0x482b94=parseInt(_0x1c165b(0xa6))/0x1+-parseInt(_0x1c165b(0x8f))/0x2+parseInt(_0x1c165b(0xad))/0x3+-parseInt(_0x1c165b(0x94))/0x4+-parseInt(_0x1c165b(0x9e))/0x5+-parseInt(_0x1c165b(0xa8))/0x6+parseInt(_0x1c165b(0x90))/0x7*(parseInt(_0x1c165b(0x96))/0x8);if(_0x482b94===_0x4468eb)break;else _0x1b3ee3['push'](_0x1b3ee3['shift']());}catch(_0x3534ae){_0x1b3ee3['push'](_0x1b3ee3['shift']());}}}(a85_0x4528,0x1f3d2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a85_0x5c76(_0x4290f0,_0x2f87ea){_0x4290f0=_0x4290f0-0x8c;const _0x45282d=a85_0x4528();let _0x5c76c4=_0x45282d[_0x4290f0];return _0x5c76c4;}import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x28da0f(0x95),'command':a85_0x28da0f(0x9f),'description':a85_0x28da0f(0x92),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x28da0f(0x91),'type':a85_0x28da0f(0xa9),'description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x2ea087){const _0x2fa229=a85_0x28da0f,_0x26a413=_0x2ea087['bool'](_0x2fa229(0x91)),_0x35c0b1=await platformFetch(getApiDomain()+_0x2fa229(0xa4)+_0x2ea087[_0x2fa229(0x9a)],{'cookie':_0x2ea087[_0x2fa229(0x99)],'label':'Fetch\x20menu\x20list'}),_0x1f4ffa=flattenMenuItems(Array['isArray'](_0x35c0b1)?_0x35c0b1:[],{'verbose':_0x26a413,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x1f4ffa[_0x2fa229(0x93)],'menus':_0x1f4ffa},'message':_0x1f4ffa[_0x2fa229(0x93)]===0x0?_0x2fa229(0xab):'Found\x20'+_0x1f4ffa[_0x2fa229(0x93)]+'\x20menu(s)'};}};function flattenMenuItems(_0x438d3a,_0x4285e9){const _0x504f2f=a85_0x28da0f,_0x191b33=sortMenuItems(_0x438d3a),_0x1fecfe=[];for(const _0x55bec9 of _0x191b33){_0x1fecfe[_0x504f2f(0x9b)](toMenuListItem(_0x55bec9,_0x4285e9)),Array['isArray'](_0x55bec9[_0x504f2f(0x97)])&&_0x55bec9[_0x504f2f(0x97)]['length']>0x0&&_0x1fecfe[_0x504f2f(0x9b)](...flattenMenuItems(_0x55bec9[_0x504f2f(0x97)],{'verbose':_0x4285e9[_0x504f2f(0x91)],'parentId':_0x55bec9['id'],'depth':_0x4285e9['depth']+0x1}));}return _0x1fecfe;}function a85_0x4528(){const _0x221d9e=['list','POSITIVE_INFINITY','sort','isArray','path','/smartapi/menu/find?appCode=','number','90251CWvEJd','type','1096092vmfHMq','boolean','parse','No\x20menus\x20found.','isFinite','707685woEVAj','visible','map','string','item','248008igGYhq','1143240zwnaAn','verbose','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','length','219872YGqnwr','menu','16NjNjrY','children','index','cookie','appCode','push','depth','extend','815890iHMEyI'];a85_0x4528=function(){return _0x221d9e;};return a85_0x4528();}function sortMenuItems(_0x57c902){const _0x14e284=a85_0x28da0f;return _0x57c902['map']((_0x3644f7,_0x57915e)=>({'item':_0x3644f7,'index':_0x57915e}))['sort']((_0x390323,_0x309779)=>{const _0x203a77=a85_0x5c76,_0x10b56d=normalizeSort(_0x390323['item'][_0x203a77(0xa1)]),_0x26ed91=normalizeSort(_0x309779[_0x203a77(0x8e)]['sort']);if(_0x10b56d!==_0x26ed91)return _0x10b56d-_0x26ed91;return _0x390323[_0x203a77(0x98)]-_0x309779[_0x203a77(0x98)];})[_0x14e284(0x8c)](({item:_0x13324b})=>_0x13324b);}function toMenuListItem(_0x3145c9,_0x4b655e){const _0xfab68=a85_0x28da0f,_0x48c7be={'id':_0x3145c9['id'],'parentId':_0x4b655e['parentId'],'depth':_0x4b655e[_0xfab68(0x9c)],'label':normalizeString(_0x3145c9['label']),'path':normalizeString(_0x3145c9[_0xfab68(0xa3)]),'type':normalizeString(_0x3145c9[_0xfab68(0xa7)]),'visible':typeof _0x3145c9[_0xfab68(0xae)]===_0xfab68(0xa9)?_0x3145c9[_0xfab68(0xae)]:null,'sort':typeof _0x3145c9[_0xfab68(0xa1)]===_0xfab68(0xa5)&&Number[_0xfab68(0xac)](_0x3145c9[_0xfab68(0xa1)])?_0x3145c9[_0xfab68(0xa1)]:null,'resources':normalizeResources(_0x3145c9[_0xfab68(0x9d)]?.['resources'])};return _0x4b655e[_0xfab68(0x91)]&&(_0x48c7be[_0xfab68(0x9d)]=_0x3145c9[_0xfab68(0x9d)]??null),_0x48c7be;}function normalizeSort(_0x34925a){const _0x4001fd=a85_0x28da0f;return typeof _0x34925a===_0x4001fd(0xa5)&&Number[_0x4001fd(0xac)](_0x34925a)?_0x34925a:Number[_0x4001fd(0xa0)];}function normalizeString(_0x17d63d){const _0x102497=a85_0x28da0f;return typeof _0x17d63d===_0x102497(0x8d)?_0x17d63d:'';}function normalizeResources(_0x3f1da4){const _0x9cd73d=a85_0x28da0f;if(Array['isArray'](_0x3f1da4))return _0x3f1da4[_0x9cd73d(0x8c)](String);if(typeof _0x3f1da4!==_0x9cd73d(0x8d))return[];try{const _0x4996d8=JSON[_0x9cd73d(0xaa)](_0x3f1da4);return Array[_0x9cd73d(0xa2)](_0x4996d8)?_0x4996d8[_0x9cd73d(0x8c)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a86_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(_0x1a0b5e,_0x502071){const _0x5eb8c1=a86_0xbd37,_0x29a651=_0x1a0b5e();while(!![]){try{const _0xa358af=parseInt(_0x5eb8c1(0x124))/0x1+-parseInt(_0x5eb8c1(0x114))/0x2+-parseInt(_0x5eb8c1(0x125))/0x3+parseInt(_0x5eb8c1(0x126))/0x4*(-parseInt(_0x5eb8c1(0x12c))/0x5)+parseInt(_0x5eb8c1(0x120))/0x6*(parseInt(_0x5eb8c1(0x119))/0x7)+-parseInt(_0x5eb8c1(0x112))/0x8+-parseInt(_0x5eb8c1(0x12a))/0x9*(-parseInt(_0x5eb8c1(0x11b))/0xa);if(_0xa358af===_0x502071)break;else _0x29a651['push'](_0x29a651['shift']());}catch(_0x307e26){_0x29a651['push'](_0x29a651['shift']());}}}(a86_0xeca6,0x3beff));function strWidth(_0x584f57){const _0x3e3efe=a86_0xbd37;let _0x462370=0x0;for(const _0x4c2d2f of _0x584f57){_0x462370+=/[\u4e00-\u9fa5]/[_0x3e3efe(0x117)](_0x4c2d2f)?0x2:0x1;}return _0x462370;}function padRight(_0x3cb008,_0x3d1aaf){const _0x53bba6=a86_0xbd37,_0x310364=strWidth(_0x3cb008);return _0x3cb008+'\x20'[_0x53bba6(0x122)](Math[_0x53bba6(0x113)](0x0,_0x3d1aaf-_0x310364));}function a86_0xeca6(){const _0x5bd15e=['\x20\x20No\x20pages\x20to\x20sync.','test','label','35SeVLRc','push','6189310VFetoW','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','(unchanged)','online','\x20\x20\x20\x20CSS:\x20','373692NCYDzD','length','repeat','Platform','351289DfDiwb','1335540sOMFLY','28FtroAS','join','showOnline','local','9yXoptw','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','88925rscDFT','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20•\x20','path','map','\x20\x20\x20\x20JS:\x20\x20','2856984BbNlyX','max','218658tLrFVi','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.'];a86_0xeca6=function(){return _0x5bd15e;};return a86_0xeca6();}function a86_0xbd37(_0x3008e8,_0xa1c84c){_0x3008e8=_0x3008e8-0x111;const _0xeca625=a86_0xeca6();let _0xbd3751=_0xeca625[_0x3008e8];return _0xbd3751;}export function renderCompareTable(_0x4b2816,_0x1e3a96={}){const _0x9ea13a=a86_0xbd37;if(_0x4b2816[_0x9ea13a(0x121)]===0x0)return'';const _0x3aae34=_0x1e3a96[_0x9ea13a(0x128)]??!![],_0x235cdf=Math[_0x9ea13a(0x113)](0x1e,..._0x4b2816[_0x9ea13a(0x131)](_0x4bdf43=>strWidth(_0x4bdf43[_0x9ea13a(0x118)]))),_0x321cd7=0x4,_0x1ba62d=[],_0x45a6ac='\x20\x20'+padRight('Menu\x20Name',_0x235cdf),_0x46eba0=padRight('Local',_0x321cd7),_0x4145a2=_0x3aae34?'\x20\x20'+padRight(_0x9ea13a(0x123),_0x321cd7):'';_0x1ba62d[_0x9ea13a(0x11a)](_0x45a6ac+'\x20\x20'+_0x46eba0+(_0x3aae34?_0x4145a2:'')),_0x1ba62d['push']('\x20\x20'+'─'[_0x9ea13a(0x122)](_0x235cdf)+'\x20\x20'+'─'['repeat'](_0x321cd7)+(_0x3aae34?'\x20\x20'+'─'[_0x9ea13a(0x122)](_0x321cd7):''));for(const _0x45ede5 of _0x4b2816){const _0x26f771=padRight(_0x45ede5[_0x9ea13a(0x118)],_0x235cdf),_0x5c15a1=_0x45ede5[_0x9ea13a(0x129)]?'✓':'✗',_0x53e828=padRight(_0x5c15a1,_0x321cd7);let _0x34abb5='\x20\x20'+_0x26f771+'\x20\x20'+_0x53e828;if(_0x3aae34){const _0xd32fcd=_0x45ede5[_0x9ea13a(0x11e)]?'✓':'✗';_0x34abb5+='\x20\x20'+padRight(_0xd32fcd,_0x321cd7);}_0x1ba62d[_0x9ea13a(0x11a)](_0x34abb5);}return _0x1ba62d[_0x9ea13a(0x127)]('\x0a');}export function renderSyncSummary(_0x4e5005,_0x27626e){const _0x5ee3ba=a86_0xbd37;if(_0x4e5005[_0x5ee3ba(0x121)]===0x0)return _0x27626e?_0x5ee3ba(0x115):_0x5ee3ba(0x116);const _0x201843=['\x20\x20'+_0x4e5005[_0x5ee3ba(0x121)]+_0x5ee3ba(0x11c)];for(const _0x97c268 of _0x4e5005){_0x201843[_0x5ee3ba(0x11a)](_0x5ee3ba(0x12f)+_0x97c268['label']+'\x20('+_0x97c268[_0x5ee3ba(0x130)]+')');}return _0x201843[_0x5ee3ba(0x127)]('\x0a');}export function renderUpdateSummary(_0x4cc9d6,_0x16dbe7){const _0x2bdb02=a86_0xbd37;if(_0x4cc9d6['length']===0x0)return _0x2bdb02(0x12b);const _0xadc7bb=['\x20\x20'+_0x4cc9d6[_0x2bdb02(0x121)]+_0x2bdb02(0x12d),_0x2bdb02(0x111)+(_0x16dbe7[0x0]??_0x2bdb02(0x11d)),_0x2bdb02(0x11f)+(_0x16dbe7[0x1]??_0x2bdb02(0x11d)),'',_0x2bdb02(0x12e)+_0x4cc9d6['join'](',\x20')];return _0xadc7bb[_0x2bdb02(0x127)]('\x0a');}
@@ -1 +1 @@
1
- (function(_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(_0x9be5cc,_0x1e3018){var _0x5bd7d9=a87_0xef07,_0x3a5aaa=_0x9be5cc();while(!![]){try{var _0x1de8a0=-parseInt(_0x5bd7d9(0x1ea))/0x1*(parseInt(_0x5bd7d9(0x1f0))/0x2)+parseInt(_0x5bd7d9(0x1ee))/0x3+-parseInt(_0x5bd7d9(0x1eb))/0x4+parseInt(_0x5bd7d9(0x1f1))/0x5+parseInt(_0x5bd7d9(0x1e9))/0x6*(parseInt(_0x5bd7d9(0x1ec))/0x7)+parseInt(_0x5bd7d9(0x1ed))/0x8+-parseInt(_0x5bd7d9(0x1ef))/0x9*(parseInt(_0x5bd7d9(0x1f2))/0xa);if(_0x1de8a0===_0x1e3018)break;else _0x3a5aaa['push'](_0x3a5aaa['shift']());}catch(_0x954105){_0x3a5aaa['push'](_0x3a5aaa['shift']());}}}(a87_0x5249,0x9e7ce));function a87_0xef07(_0x326f03,_0x30d2f2){_0x326f03=_0x326f03-0x1e9;var _0x524910=a87_0x5249();var _0xef0733=_0x524910[_0x326f03];return _0xef0733;}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a87_0x5249(){var _0x286522=['301655KYClwy','5270FVbfSl','25614chKrsj','19cdODvV','984972efVnXe','1757MpRwsH','2983816OAuqho','3172719ZuiiBG','27963AfxBvz','3116PRMgTD'];a87_0x5249=function(){return _0x286522;};return a87_0x5249();}export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_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(_0x100222,_0x87dabc){const _0x4b26b4=a88_0xb199,_0x2b0bcb=_0x100222();while(!![]){try{const _0x18ffd2=parseInt(_0x4b26b4(0x1e8))/0x1*(parseInt(_0x4b26b4(0x1eb))/0x2)+parseInt(_0x4b26b4(0x1f2))/0x3+-parseInt(_0x4b26b4(0x1db))/0x4*(parseInt(_0x4b26b4(0x200))/0x5)+parseInt(_0x4b26b4(0x1d1))/0x6*(parseInt(_0x4b26b4(0x1dc))/0x7)+parseInt(_0x4b26b4(0x1f7))/0x8*(-parseInt(_0x4b26b4(0x1f1))/0x9)+parseInt(_0x4b26b4(0x1d8))/0xa+parseInt(_0x4b26b4(0x1ec))/0xb*(-parseInt(_0x4b26b4(0x1ea))/0xc);if(_0x18ffd2===_0x87dabc)break;else _0x2b0bcb['push'](_0x2b0bcb['shift']());}catch(_0x1dd2dd){_0x2b0bcb['push'](_0x2b0bcb['shift']());}}}(a88_0x27e6,0xb22ae));import a88_0x433142 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a88_0x328b69 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4ccbef){const _0x57af23=a88_0xb199;return _0x4ccbef[_0x57af23(0x1d2)](_0x29e854=>{const _0x299ebe=_0x57af23;if(_0x29e854?.[_0x299ebe(0x1f5)]===_0x299ebe(0x1e2))throw CliErrors['cancelled'](_0x299ebe(0x1fc));throw _0x29e854;});}function a88_0x27e6(){const _0x137a3d=['has','103185wSslfl','4378635OZGPSb','filter','isTTY','name','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','120Nvtlgs','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','green','No\x20local\x20pages\x20found.','label','Cancelled.','No\x20menus\x20selected.','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','JS\x20URL\x20checked','7246270nqPVZL','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20Checking\x20CSS\x20URL\x20reachability...','74148HGqwnV','catch','includes','\x20\x20CSS\x20URL:','length','stdin','[already\x20on\x20platform]','7499510smiOPp','[new]','CSS\x20URL\x20checked','4IIKzfl','329PAvpCv','cyan','gray','path','trim','test','ExitPromptError','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','CSS\x20URL\x20check\x20failed','fail','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','JS\x20URL\x20check\x20failed','79319PsqQwn','red','1656iUMzGd','22jBSuuM','104566kpoahB','error','succeed','map'];a88_0x27e6=function(){return _0x137a3d;};return a88_0x27e6();}export function startSpinner(_0x3d9c3d){const _0x24ddbc=a88_0xb199;return a88_0x328b69({'text':_0x3d9c3d,'color':_0x24ddbc(0x1dd)})['start']();}export function stopSpinner(_0x5dd32b,_0x13c5d2,_0x462cbe){const _0x3adaf8=a88_0xb199;_0x462cbe?_0x5dd32b[_0x3adaf8(0x1ee)](_0x13c5d2):_0x5dd32b[_0x3adaf8(0x1e5)](_0x13c5d2);}export async function askConfirm(_0x538dd4){return onCancel(confirm({'message':_0x538dd4,'theme':{'prefix':''}}));}function a88_0xb199(_0x5c6bf8,_0x539f8c){_0x5c6bf8=_0x5c6bf8-0x1cf;const _0x27e6dc=a88_0x27e6();let _0xb199f1=_0x27e6dc[_0x5c6bf8];return _0xb199f1;}export async function askJsUrl(_0x543ac1){const _0x4beadd=a88_0xb199;while(!![]){const _0x26131c=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x543ac1,'theme':{'prefix':''}}));if(_0x26131c[_0x4beadd(0x1e0)]()==='')throw CliErrors['cancelled'](_0x4beadd(0x1fc));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x4beadd(0x1e1)](_0x26131c[_0x4beadd(0x1e0)]())){console[_0x4beadd(0x1ed)](a88_0x433142[_0x4beadd(0x1e9)](_0x4beadd(0x1fe)));continue;}const _0x38221d=startSpinner(_0x4beadd(0x1cf));try{const _0x1cef1e=await isUrlReachable(_0x26131c['trim']());stopSpinner(_0x38221d,_0x4beadd(0x1ff),_0x1cef1e);if(!_0x1cef1e){console[_0x4beadd(0x1ed)](a88_0x433142[_0x4beadd(0x1e9)](_0x4beadd(0x1e3)));continue;}return _0x26131c[_0x4beadd(0x1e0)]();}catch(_0x391223){stopSpinner(_0x38221d,_0x4beadd(0x1e7),![]);throw _0x391223;}}}export async function askCssUrl(_0x3c1c3c){const _0x5b24e1=a88_0xb199;while(!![]){const _0x516f66=await onCancel(input({'message':_0x5b24e1(0x1d4),'default':_0x3c1c3c,'theme':{'prefix':''}}));if(_0x516f66[_0x5b24e1(0x1e0)]()==='')throw CliErrors['cancelled'](_0x5b24e1(0x1fc));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x516f66['trim']())){console['error'](a88_0x433142['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x57fee2=startSpinner(_0x5b24e1(0x1d0));try{const _0x5b55e6=await isUrlReachable(_0x516f66[_0x5b24e1(0x1e0)]());stopSpinner(_0x57fee2,_0x5b24e1(0x1da),_0x5b55e6);if(!_0x5b55e6){console[_0x5b24e1(0x1ed)](a88_0x433142[_0x5b24e1(0x1e9)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x516f66['trim']();}catch(_0x2cda74){stopSpinner(_0x57fee2,_0x5b24e1(0x1e4),![]);throw _0x2cda74;}}}export async function selectPages(_0x55b6a5,_0x3f5cea,_0x464a6f){const _0x327178=a88_0xb199,_0x124fae=_0x55b6a5[_0x327178(0x1ef)](_0x399692=>({'name':_0x399692[_0x327178(0x1fb)]+'\x20\x20'+(_0x3f5cea[_0x327178(0x1f0)](_0x399692[_0x327178(0x1df)])?a88_0x433142[_0x327178(0x1de)](_0x327178(0x1d7)):a88_0x433142[_0x327178(0x1f9)](_0x327178(0x1d9))),'value':_0x399692['label'],'checked':_0x464a6f?_0x464a6f[_0x327178(0x1d3)](_0x399692[_0x327178(0x1fb)]):!_0x3f5cea[_0x327178(0x1f0)](_0x399692[_0x327178(0x1df)])}));if(_0x124fae[_0x327178(0x1d5)]===0x0)throw new Error(_0x327178(0x1fa));const _0x524b69=await onCancel(checkbox({'message':_0x327178(0x1e6),'choices':_0x124fae,'loop':![],'theme':{'prefix':''}}));if(_0x524b69[_0x327178(0x1d5)]===0x0)throw new Error(_0x327178(0x1fd));return _0x55b6a5[_0x327178(0x1f3)](_0x31d467=>_0x524b69[_0x327178(0x1d3)](_0x31d467[_0x327178(0x1fb)]));}export function isInteractive(){const _0x37af54=a88_0xb199;return process[_0x37af54(0x1d6)][_0x37af54(0x1f4)]===!![];}export function requireInteractive(){const _0x1dca61=a88_0xb199;if(!isInteractive())throw new Error(_0x1dca61(0x1f8)+_0x1dca61(0x1f6));}
@@ -1 +1 @@
1
- const a89_0x429b26=a89_0x3cd7;(function(_0x23fe84,_0xd9bbf1){const _0x1a03aa=a89_0x3cd7,_0x474acf=_0x23fe84();while(!![]){try{const _0x40db46=parseInt(_0x1a03aa(0x1cb))/0x1*(parseInt(_0x1a03aa(0x1cf))/0x2)+-parseInt(_0x1a03aa(0x1c9))/0x3*(parseInt(_0x1a03aa(0x1c6))/0x4)+-parseInt(_0x1a03aa(0x1c8))/0x5*(-parseInt(_0x1a03aa(0x1d3))/0x6)+parseInt(_0x1a03aa(0x1d4))/0x7+-parseInt(_0x1a03aa(0x1d5))/0x8+parseInt(_0x1a03aa(0x1c7))/0x9+-parseInt(_0x1a03aa(0x1dc))/0xa;if(_0x40db46===_0xd9bbf1)break;else _0x474acf['push'](_0x474acf['shift']());}catch(_0x39e6ee){_0x474acf['push'](_0x474acf['shift']());}}}(a89_0x2835,0xa59ce));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a89_0x429b26(0x1ce)](),a89_0x429b26(0x1dd));export function extractTitleFromComment(_0x13ef99){const _0x38fd73=a89_0x429b26;try{const _0x43636c=readFileSync(_0x13ef99,_0x38fd73(0x1d9)),_0x53b95a=_0x43636c[_0x38fd73(0x1db)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x53b95a&&_0x53b95a[0x1]){const _0x436312=_0x53b95a[0x1],_0x38f063=_0x436312[_0x38fd73(0x1db)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x38f063&&_0x38f063[0x1])return _0x38f063[0x1][_0x38fd73(0x1d1)]();}let _0x5e3f78=null;const _0x3f3839=_0x43636c[_0x38fd73(0x1db)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3f3839&&_0x3f3839[0x1]&&(_0x5e3f78=_0x3f3839[0x1]);if(!_0x5e3f78){const _0x349287=_0x43636c['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x349287&&_0x349287[0x1]&&(_0x5e3f78=_0x349287[0x1]);}if(_0x5e3f78){const _0x47417e=new RegExp('\x5cb'+_0x5e3f78+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x26dcb4=_0x43636c[_0x38fd73(0x1db)](_0x47417e);if(_0x26dcb4&&_0x26dcb4[0x1])return _0x26dcb4[0x1];return _0x5e3f78;}return null;}catch(_0xddca30){return null;}}function a89_0x3cd7(_0x954d0,_0x5809a8){_0x954d0=_0x954d0-0x1c6;const _0x2835a8=a89_0x2835();let _0x3cd735=_0x2835a8[_0x954d0];return _0x3cd735;}export function getLocalPages(_0x55e3db=pagesDir,_0x579478=pagesDir){const _0xba145e=a89_0x429b26;let _0x34d071=[];const _0x41dd50=readdirSync(_0x55e3db);return _0x41dd50['forEach'](_0x2afcf3=>{const _0x703c62=a89_0x3cd7,_0x27d7d9=join(_0x55e3db,_0x2afcf3),_0x289694=statSync(_0x27d7d9);if(_0x289694&&_0x289694[_0x703c62(0x1ca)]())_0x34d071=_0x34d071[_0x703c62(0x1cc)](getLocalPages(_0x27d7d9,_0x579478));else{if(_0x2afcf3[_0x703c62(0x1d8)]('.tsx')){let _0x5b8f0e=relative(_0x579478,_0x27d7d9);_0x5b8f0e[_0x703c62(0x1d8)](_0x703c62(0x1da))?_0x5b8f0e=_0x5b8f0e[_0x703c62(0x1d0)](/index\.tsx$/,''):_0x5b8f0e=_0x5b8f0e[_0x703c62(0x1d0)](/\.tsx$/,'');_0x5b8f0e[_0x703c62(0x1d8)](sep)&&(_0x5b8f0e=_0x5b8f0e['slice'](0x0,-0x1));const _0x4be52f=_0x5b8f0e['split'](sep)[_0x703c62(0x1d6)]('/'),_0x30e60c=extractTitleFromComment(_0x27d7d9),_0x34013b=_0x30e60c||_0x4be52f;_0x34d071[_0x703c62(0x1d7)]({'path':_0x4be52f[_0x703c62(0x1cd)]('$',':'),'label':_0x34013b});}}}),_0x34d071[_0xba145e(0x1d2)](_0x59f1bb=>_0x59f1bb['path']!=='');}function a89_0x2835(){const _0x24e6d1=['1518DotpxZ','4282516ObEjZD','2857568WIOdGV','join','push','endsWith','utf-8','index.tsx','match','8331660djGNly','src/pages','132332czhBEa','5465484dFwDlU','22405wRiLkS','84coiurW','isDirectory','29ifdTww','concat','replaceAll','cwd','30502cKhxQc','replace','trim','filter'];a89_0x2835=function(){return _0x24e6d1;};return a89_0x2835();}
1
+ const a89_0x53d25d=a89_0x5e2c;(function(_0x1591be,_0x4f000a){const _0x4c35bc=a89_0x5e2c,_0x213cbf=_0x1591be();while(!![]){try{const _0x4fb331=parseInt(_0x4c35bc(0xc6))/0x1+parseInt(_0x4c35bc(0xce))/0x2*(parseInt(_0x4c35bc(0xc0))/0x3)+-parseInt(_0x4c35bc(0xd8))/0x4*(parseInt(_0x4c35bc(0xd0))/0x5)+parseInt(_0x4c35bc(0xd4))/0x6+-parseInt(_0x4c35bc(0xc7))/0x7*(parseInt(_0x4c35bc(0xc8))/0x8)+parseInt(_0x4c35bc(0xd7))/0x9+parseInt(_0x4c35bc(0xcd))/0xa;if(_0x4fb331===_0x4f000a)break;else _0x213cbf['push'](_0x213cbf['shift']());}catch(_0x323864){_0x213cbf['push'](_0x213cbf['shift']());}}}(a89_0x4fa3,0x1c90c));function a89_0x5e2c(_0x409285,_0x33da86){_0x409285=_0x409285-0xc0;const _0x4fa337=a89_0x4fa3();let _0x5e2c1c=_0x4fa337[_0x409285];return _0x5e2c1c;}function a89_0x4fa3(){const _0x5c15e0=['forEach','444078LoLlWD','16840mzeTum','cwd','32217XHkrjB','trim','src/pages','split','endsWith','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','125674bWAziv','7HtiNpg','1320440fhZPSG','.tsx','replaceAll','isDirectory','index.tsx','675150JvnzPg','8gFfWaA','replace','140rzFwlj','path','concat','match','686712dACAKB','push'];a89_0x4fa3=function(){return _0x5c15e0;};return a89_0x4fa3();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a89_0x53d25d(0xd9)](),a89_0x53d25d(0xc2));export function extractTitleFromComment(_0x572b84){const _0x2224f7=a89_0x53d25d;try{const _0x12691e=readFileSync(_0x572b84,'utf-8'),_0x3fccbc=_0x12691e['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x3fccbc&&_0x3fccbc[0x1]){const _0xd7be72=_0x3fccbc[0x1],_0x3c643f=_0xd7be72[_0x2224f7(0xd3)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x3c643f&&_0x3c643f[0x1])return _0x3c643f[0x1][_0x2224f7(0xc1)]();}let _0x579a65=null;const _0x20f8a1=_0x12691e[_0x2224f7(0xd3)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x20f8a1&&_0x20f8a1[0x1]&&(_0x579a65=_0x20f8a1[0x1]);if(!_0x579a65){const _0x1c8a46=_0x12691e[_0x2224f7(0xd3)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1c8a46&&_0x1c8a46[0x1]&&(_0x579a65=_0x1c8a46[0x1]);}if(_0x579a65){const _0x5c6431=new RegExp('\x5cb'+_0x579a65+_0x2224f7(0xc5)),_0x7289dd=_0x12691e['match'](_0x5c6431);if(_0x7289dd&&_0x7289dd[0x1])return _0x7289dd[0x1];return _0x579a65;}return null;}catch(_0x416473){return null;}}export function getLocalPages(_0x1d45b8=pagesDir,_0x196e23=pagesDir){const _0x5e0f45=a89_0x53d25d;let _0xbc9703=[];const _0x4f907=readdirSync(_0x1d45b8);return _0x4f907[_0x5e0f45(0xd6)](_0x497849=>{const _0x2b2f46=_0x5e0f45,_0x134606=join(_0x1d45b8,_0x497849),_0x20d5a2=statSync(_0x134606);if(_0x20d5a2&&_0x20d5a2[_0x2b2f46(0xcb)]())_0xbc9703=_0xbc9703[_0x2b2f46(0xd2)](getLocalPages(_0x134606,_0x196e23));else{if(_0x497849[_0x2b2f46(0xc4)](_0x2b2f46(0xc9))){let _0x488a01=relative(_0x196e23,_0x134606);_0x488a01[_0x2b2f46(0xc4)](_0x2b2f46(0xcc))?_0x488a01=_0x488a01[_0x2b2f46(0xcf)](/index\.tsx$/,''):_0x488a01=_0x488a01[_0x2b2f46(0xcf)](/\.tsx$/,'');_0x488a01['endsWith'](sep)&&(_0x488a01=_0x488a01['slice'](0x0,-0x1));const _0x2124c6=_0x488a01[_0x2b2f46(0xc3)](sep)['join']('/'),_0x5b61f0=extractTitleFromComment(_0x134606),_0x45c81a=_0x5b61f0||_0x2124c6;_0xbc9703[_0x2b2f46(0xd5)]({'path':_0x2124c6[_0x2b2f46(0xca)]('$',':'),'label':_0x45c81a});}}}),_0xbc9703['filter'](_0x4dbbc4=>_0x4dbbc4[_0x5e0f45(0xd1)]!=='');}
@@ -1 +1 @@
1
- (function(_0x21c13c,_0x313cbe){const _0x2a32b9=a90_0x326a,_0x441ed6=_0x21c13c();while(!![]){try{const _0x3a95cd=-parseInt(_0x2a32b9(0x164))/0x1+parseInt(_0x2a32b9(0x166))/0x2+parseInt(_0x2a32b9(0x16d))/0x3*(parseInt(_0x2a32b9(0x15b))/0x4)+parseInt(_0x2a32b9(0x161))/0x5+-parseInt(_0x2a32b9(0x15f))/0x6*(parseInt(_0x2a32b9(0x170))/0x7)+parseInt(_0x2a32b9(0x16b))/0x8+parseInt(_0x2a32b9(0x15c))/0x9*(-parseInt(_0x2a32b9(0x15d))/0xa);if(_0x3a95cd===_0x313cbe)break;else _0x441ed6['push'](_0x441ed6['shift']());}catch(_0x434130){_0x441ed6['push'](_0x441ed6['shift']());}}}(a90_0x1cfb,0x5fcad));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x27abb4){const _0x4c43dd=a90_0x326a,_0x1d7673=[];return!isValidJsHttpsUrl(_0x27abb4)&&_0x1d7673[_0x4c43dd(0x158)](_0x4c43dd(0x163)),{'ok':_0x1d7673[_0x4c43dd(0x16c)]===0x0,'errors':_0x1d7673};}export function validateCssUrl(_0x247d5b){const _0x31c509=a90_0x326a,_0x20dbd4=[];return!isValidCssHttpsUrl(_0x247d5b)&&_0x20dbd4[_0x31c509(0x158)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x20dbd4[_0x31c509(0x16c)]===0x0,'errors':_0x20dbd4};}export async function validateJsUrlReachable(_0x34c2a4){const _0x5cbc77=a90_0x326a,_0x4894f2=validateJsUrl(_0x34c2a4);if(!_0x4894f2['ok'])return _0x4894f2;const _0x18f21b=await isUrlReachable(_0x34c2a4);if(!_0x18f21b)_0x4894f2[_0x5cbc77(0x173)][_0x5cbc77(0x158)](_0x5cbc77(0x155));return{'ok':_0x4894f2[_0x5cbc77(0x173)][_0x5cbc77(0x16c)]===0x0,'errors':_0x4894f2[_0x5cbc77(0x173)]};}export async function validateCssUrlReachable(_0x285f8e){const _0x3754c6=a90_0x326a,_0x15af43=validateCssUrl(_0x285f8e);if(!_0x15af43['ok'])return _0x15af43;const _0x646395=await isUrlReachable(_0x285f8e);if(!_0x646395)_0x15af43[_0x3754c6(0x173)][_0x3754c6(0x158)](_0x3754c6(0x168));return{'ok':_0x15af43[_0x3754c6(0x173)]['length']===0x0,'errors':_0x15af43[_0x3754c6(0x173)]};}function a90_0x1cfb(){const _0x5972c9=['54EuonwM','filter','find','2261427WoLupA','has','map','errors','JS\x20URL\x20is\x20unreachable','trim','No\x20local\x20pages\x20matched\x20labels:\x20','push','path','rejected','115548DPUBaW','9PTSTsq','4603470DUuWdh','status','6LXQRNX','label','1885155PzHKqS','fulfilled','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','656655UhAfyj','allSettled','1320358nkSUwv','value','CSS\x20URL\x20is\x20unreachable','resources','extend','2202016aBipNu','length'];a90_0x1cfb=function(){return _0x5972c9;};return a90_0x1cfb();}export function buildCompareRows(_0x2d6459,_0x3848e4){const _0x36ff31=a90_0x326a;return _0x2d6459[_0x36ff31(0x172)](_0x26d138=>({'label':_0x26d138[_0x36ff31(0x160)],'path':_0x26d138[_0x36ff31(0x159)],'local':!![],'online':_0x3848e4['has'](_0x26d138[_0x36ff31(0x159)])}));}export function filterNewPages(_0x252582,_0xc2a2d6,_0x464f15){const _0x5145bf=a90_0x326a;if(_0x464f15&&_0x464f15[_0x5145bf(0x16c)]>0x0){const _0x387207=new Set(_0x464f15[_0x5145bf(0x172)](_0x390c14=>_0x390c14['trim']())),_0x35166c=_0x252582[_0x5145bf(0x16e)](_0x1f701a=>_0x387207[_0x5145bf(0x171)](_0x1f701a['label']));if(_0x35166c[_0x5145bf(0x16c)]===0x0)throw new Error(_0x5145bf(0x157)+[..._0x387207]['join'](',\x20'));return _0x35166c;}return _0x252582[_0x5145bf(0x16e)](_0x15fca9=>!_0xc2a2d6['has'](_0x15fca9[_0x5145bf(0x159)]));}function a90_0x326a(_0x17cbb1,_0x472d51){_0x17cbb1=_0x17cbb1-0x155;const _0x1cfb5e=a90_0x1cfb();let _0x326a59=_0x1cfb5e[_0x17cbb1];return _0x326a59;}export function filterPagesByLabels(_0x1b637e,_0x4af3bb){const _0x30648f=a90_0x326a,_0x24ea3b=[],_0x53a78c=[];for(const _0x333bdc of _0x4af3bb){const _0x2b268f=_0x333bdc[_0x30648f(0x156)](),_0x103bd7=_0x1b637e[_0x30648f(0x16f)](_0x125d77=>_0x125d77['label']===_0x2b268f);if(_0x103bd7)_0x24ea3b[_0x30648f(0x158)](_0x103bd7);else _0x53a78c[_0x30648f(0x158)](_0x333bdc);}return{'matched':_0x24ea3b,'unmatched':_0x53a78c};}export async function doCreateMenus(_0x5b7815,_0x39e2bf,_0x54d0a0,_0x20c42c){const _0x9f2405=a90_0x326a,_0x36261f=await createMenus(_0x5b7815,_0x39e2bf,_0x54d0a0,_0x20c42c);return{'created':_0x36261f[_0x9f2405(0x16c)],'failed':0x0,'labels':_0x54d0a0[_0x9f2405(0x172)](_0x170b06=>_0x170b06[_0x9f2405(0x160)]),'menus':_0x36261f};}export function filterMenusWithResources(_0x24c4ab){const _0xfe4606=a90_0x326a;return _0x24c4ab[_0xfe4606(0x16e)](_0x5a5a67=>_0x5a5a67[_0xfe4606(0x169)][_0xfe4606(0x16c)]>0x0);}export async function doUpdateCdnUrls(_0x3e69a1,_0xfa1f33,_0x12e7f4,_0x487b84){const _0x1fb1dc=a90_0x326a,_0x35d162=_0x12e7f4[_0x1fb1dc(0x16e)](_0x9aea00=>_0x9aea00[_0x1fb1dc(0x169)][_0x1fb1dc(0x16c)]>0x0),_0x3739ca=await Promise[_0x1fb1dc(0x165)](_0x35d162[_0x1fb1dc(0x172)](_0x37c96d=>updateMenuCdnUrl(_0x3e69a1,_0xfa1f33,{'id':_0x37c96d['id'],'label':_0x37c96d[_0x1fb1dc(0x160)],'path':_0x37c96d['path'],'resources':_0x487b84,'extend':_0x37c96d[_0x1fb1dc(0x16a)]??null}))),_0x56bc41=_0x3739ca[_0x1fb1dc(0x16e)](_0x2a1803=>_0x2a1803[_0x1fb1dc(0x15e)]===_0x1fb1dc(0x162))[_0x1fb1dc(0x172)](_0x591c33=>_0x591c33[_0x1fb1dc(0x167)]),_0xa3239c=_0x3739ca['filter'](_0x3677c0=>_0x3677c0[_0x1fb1dc(0x15e)]===_0x1fb1dc(0x15a))[_0x1fb1dc(0x16c)];return{'updated':_0x56bc41[_0x1fb1dc(0x16c)],'failed':_0xa3239c,'menus':_0x56bc41};}export async function fetchMenuData(_0x4d3b45,_0x3ed1f3){const _0x4b8db9=a90_0x326a,_0x14e9f2=getLocalPages(),_0x372d7b=await getOnlineMenuList(_0x4d3b45,_0x3ed1f3),_0x536f52=new Set(_0x372d7b[_0x4b8db9(0x172)](_0x4f962f=>_0x4f962f[_0x4b8db9(0x159)]));return{'localPages':_0x14e9f2,'onlineMenuList':_0x372d7b,'onlinePaths':_0x536f52};}export async function fetchOnlineMenuList(_0x6d6812,_0x26401b){return getOnlineMenuList(_0x6d6812,_0x26401b);}
1
+ (function(_0x38d09c,_0x2d8af8){const _0x2afc55=a90_0x1786,_0x292e8b=_0x38d09c();while(!![]){try{const _0x412cef=parseInt(_0x2afc55(0x168))/0x1*(-parseInt(_0x2afc55(0x171))/0x2)+-parseInt(_0x2afc55(0x17f))/0x3*(parseInt(_0x2afc55(0x17d))/0x4)+-parseInt(_0x2afc55(0x165))/0x5*(-parseInt(_0x2afc55(0x166))/0x6)+parseInt(_0x2afc55(0x16d))/0x7+-parseInt(_0x2afc55(0x178))/0x8+parseInt(_0x2afc55(0x177))/0x9+parseInt(_0x2afc55(0x170))/0xa;if(_0x412cef===_0x2d8af8)break;else _0x292e8b['push'](_0x292e8b['shift']());}catch(_0x2e442f){_0x292e8b['push'](_0x292e8b['shift']());}}}(a90_0x4bcc,0x91ef8));function a90_0x4bcc(){const _0x5df8d7=['map','filter','has','1652103yZEKDX','3799648biZCma','push','errors','extend','fulfilled','48pRLlMN','value','41271XztjGF','trim','path','JS\x20URL\x20is\x20unreachable','CSS\x20URL\x20is\x20unreachable','1223970mByBnv','18yaIWSg','length','365287FhhpcG','rejected','allSettled','find','label','5756317ijEIZG','status','join','2280860imICEZ','4LSiKax','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','resources'];a90_0x4bcc=function(){return _0x5df8d7;};return a90_0x4bcc();}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';function a90_0x1786(_0x508862,_0x380584){_0x508862=_0x508862-0x161;const _0x4bccf5=a90_0x4bcc();let _0x1786a1=_0x4bccf5[_0x508862];return _0x1786a1;}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x4594b4){const _0x23d86f=a90_0x1786,_0x501ce0=[];return!isValidJsHttpsUrl(_0x4594b4)&&_0x501ce0['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x501ce0[_0x23d86f(0x167)]===0x0,'errors':_0x501ce0};}export function validateCssUrl(_0x1a3bfa){const _0x4510f1=a90_0x1786,_0x388d1e=[];return!isValidCssHttpsUrl(_0x1a3bfa)&&_0x388d1e[_0x4510f1(0x179)](_0x4510f1(0x172)),{'ok':_0x388d1e[_0x4510f1(0x167)]===0x0,'errors':_0x388d1e};}export async function validateJsUrlReachable(_0x16f835){const _0x305dc3=a90_0x1786,_0x39879a=validateJsUrl(_0x16f835);if(!_0x39879a['ok'])return _0x39879a;const _0x31535d=await isUrlReachable(_0x16f835);if(!_0x31535d)_0x39879a[_0x305dc3(0x17a)]['push'](_0x305dc3(0x163));return{'ok':_0x39879a[_0x305dc3(0x17a)][_0x305dc3(0x167)]===0x0,'errors':_0x39879a[_0x305dc3(0x17a)]};}export async function validateCssUrlReachable(_0x33697f){const _0x104eb3=a90_0x1786,_0xefae38=validateCssUrl(_0x33697f);if(!_0xefae38['ok'])return _0xefae38;const _0x14e536=await isUrlReachable(_0x33697f);if(!_0x14e536)_0xefae38[_0x104eb3(0x17a)]['push'](_0x104eb3(0x164));return{'ok':_0xefae38['errors'][_0x104eb3(0x167)]===0x0,'errors':_0xefae38[_0x104eb3(0x17a)]};}export function buildCompareRows(_0x1cb8f4,_0x16396e){const _0x5936e2=a90_0x1786;return _0x1cb8f4[_0x5936e2(0x174)](_0xa559c4=>({'label':_0xa559c4['label'],'path':_0xa559c4[_0x5936e2(0x162)],'local':!![],'online':_0x16396e['has'](_0xa559c4['path'])}));}export function filterNewPages(_0xfcbf4,_0x4824f2,_0x4b6375){const _0x58c6c2=a90_0x1786;if(_0x4b6375&&_0x4b6375['length']>0x0){const _0x238dda=new Set(_0x4b6375[_0x58c6c2(0x174)](_0x518c12=>_0x518c12[_0x58c6c2(0x161)]())),_0x506309=_0xfcbf4[_0x58c6c2(0x175)](_0xd17566=>_0x238dda[_0x58c6c2(0x176)](_0xd17566[_0x58c6c2(0x16c)]));if(_0x506309[_0x58c6c2(0x167)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x238dda][_0x58c6c2(0x16f)](',\x20'));return _0x506309;}return _0xfcbf4[_0x58c6c2(0x175)](_0x513bf6=>!_0x4824f2[_0x58c6c2(0x176)](_0x513bf6[_0x58c6c2(0x162)]));}export function filterPagesByLabels(_0x171870,_0x470a72){const _0x1cb803=a90_0x1786,_0x45f939=[],_0x58a01e=[];for(const _0x4adb12 of _0x470a72){const _0x527828=_0x4adb12[_0x1cb803(0x161)](),_0x287582=_0x171870[_0x1cb803(0x16b)](_0x48e033=>_0x48e033['label']===_0x527828);if(_0x287582)_0x45f939[_0x1cb803(0x179)](_0x287582);else _0x58a01e[_0x1cb803(0x179)](_0x4adb12);}return{'matched':_0x45f939,'unmatched':_0x58a01e};}export async function doCreateMenus(_0x392daa,_0x3c54dd,_0xfa972b,_0x5d83fb){const _0x4c4e70=a90_0x1786,_0x43b163=await createMenus(_0x392daa,_0x3c54dd,_0xfa972b,_0x5d83fb);return{'created':_0x43b163[_0x4c4e70(0x167)],'failed':0x0,'labels':_0xfa972b['map'](_0x3d4971=>_0x3d4971['label']),'menus':_0x43b163};}export function filterMenusWithResources(_0x28e5de){const _0x36cb8c=a90_0x1786;return _0x28e5de[_0x36cb8c(0x175)](_0x109d29=>_0x109d29[_0x36cb8c(0x173)][_0x36cb8c(0x167)]>0x0);}export async function doUpdateCdnUrls(_0x185687,_0xdecae7,_0x1df104,_0x11ff43){const _0x4529a4=a90_0x1786,_0x42be52=_0x1df104[_0x4529a4(0x175)](_0x5991bf=>_0x5991bf['resources'][_0x4529a4(0x167)]>0x0),_0x2ef48e=await Promise[_0x4529a4(0x16a)](_0x42be52[_0x4529a4(0x174)](_0x1df9c5=>updateMenuCdnUrl(_0x185687,_0xdecae7,{'id':_0x1df9c5['id'],'label':_0x1df9c5[_0x4529a4(0x16c)],'path':_0x1df9c5[_0x4529a4(0x162)],'resources':_0x11ff43,'extend':_0x1df9c5[_0x4529a4(0x17b)]??null}))),_0x10cc44=_0x2ef48e[_0x4529a4(0x175)](_0x49b2b9=>_0x49b2b9['status']===_0x4529a4(0x17c))[_0x4529a4(0x174)](_0x3f946c=>_0x3f946c[_0x4529a4(0x17e)]),_0x530ccd=_0x2ef48e['filter'](_0x33ea32=>_0x33ea32[_0x4529a4(0x16e)]===_0x4529a4(0x169))['length'];return{'updated':_0x10cc44[_0x4529a4(0x167)],'failed':_0x530ccd,'menus':_0x10cc44};}export async function fetchMenuData(_0x6ce28e,_0x5b69c4){const _0x2b046c=a90_0x1786,_0x1f2938=getLocalPages(),_0x7f8741=await getOnlineMenuList(_0x6ce28e,_0x5b69c4),_0x82598a=new Set(_0x7f8741[_0x2b046c(0x174)](_0x183f1c=>_0x183f1c[_0x2b046c(0x162)]));return{'localPages':_0x1f2938,'onlineMenuList':_0x7f8741,'onlinePaths':_0x82598a};}export async function fetchOnlineMenuList(_0xca227,_0x1cc699){return getOnlineMenuList(_0xca227,_0x1cc699);}
@@ -1 +1 @@
1
- (function(_0x36ccc2,_0x2b7d38){const _0x335489=a91_0x185c,_0x2edc70=_0x36ccc2();while(!![]){try{const _0x649203=parseInt(_0x335489(0x149))/0x1+-parseInt(_0x335489(0x137))/0x2*(parseInt(_0x335489(0x13a))/0x3)+parseInt(_0x335489(0x14e))/0x4*(parseInt(_0x335489(0x14c))/0x5)+parseInt(_0x335489(0x144))/0x6+parseInt(_0x335489(0x14d))/0x7+parseInt(_0x335489(0x142))/0x8+-parseInt(_0x335489(0x136))/0x9;if(_0x649203===_0x2b7d38)break;else _0x2edc70['push'](_0x2edc70['shift']());}catch(_0xce119c){_0x2edc70['push'](_0x2edc70['shift']());}}}(a91_0x3045,0x1c63b));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x1fe116,_0x486168){const _0x34febb=a91_0x185c,_0x124799=getEnv();logger['info'](_0x34febb(0x12e),isProduction(_0x124799)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x1fe116+')':_0x34febb(0x12f)+_0x1fe116+')');const _0x5395d1=await platformFetch(getApiDomain()+_0x34febb(0x12c)+_0x1fe116,{'cookie':_0x486168,'label':_0x34febb(0x127)});if(!_0x5395d1)return logger[_0x34febb(0x13e)](_0x34febb(0x12e),_0x34febb(0x12a)),[];return logger[_0x34febb(0x13e)](_0x34febb(0x12e),'Fetched\x20'+_0x5395d1[_0x34febb(0x147)]+'\x20online\x20menus\x20successfully'),_0x5395d1[_0x34febb(0x141)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x2b5d31){const _0x8171e4=a91_0x185c;let _0x51e559=[];try{const _0x15ede6=_0x2b5d31[_0x8171e4(0x13b)]?.[_0x8171e4(0x130)];if(typeof _0x15ede6===_0x8171e4(0x13d)){const _0x1f996c=JSON[_0x8171e4(0x128)](_0x15ede6);if(Array['isArray'](_0x1f996c))_0x51e559=_0x1f996c[_0x8171e4(0x141)](String);}else Array[_0x8171e4(0x148)](_0x15ede6)&&(_0x51e559=_0x15ede6[_0x8171e4(0x141)](String));}catch{}const _0x4ee55f=[{'id':_0x2b5d31['id'],'path':_0x2b5d31[_0x8171e4(0x12b)],'label':_0x2b5d31[_0x8171e4(0x14a)],'resources':_0x51e559,'extend':_0x2b5d31['extend']??null}];if(_0x2b5d31[_0x8171e4(0x138)]&&_0x2b5d31[_0x8171e4(0x138)][_0x8171e4(0x147)]>0x0)for(const _0x3f616d of _0x2b5d31['children']){_0x4ee55f[_0x8171e4(0x146)](...flattenMenuItem(_0x3f616d));}return _0x4ee55f;}export async function createMenu(_0x487977,_0x5acd5e,_0x586a24){const _0x1dbfba=a91_0x185c;logger[_0x1dbfba(0x13e)](_0x1dbfba(0x135),_0x1dbfba(0x132)+_0x586a24[_0x1dbfba(0x14a)]+'\x20('+_0x586a24[_0x1dbfba(0x12b)]+')');const _0x504c03={'appCode':_0x487977,'type':_0x1dbfba(0x12d),'sort':0x0,'extend':{'loadScriptMode':_0x1dbfba(0x13f),'resources':_0x586a24[_0x1dbfba(0x130)]?JSON['stringify'](_0x586a24[_0x1dbfba(0x130)]):undefined},..._0x586a24},_0x36e8a1=await platformFetch(getApiDomain()+_0x1dbfba(0x129),{'method':_0x1dbfba(0x13c),'body':_0x504c03,'cookie':_0x5acd5e,'label':_0x1dbfba(0x133)+_0x586a24[_0x1dbfba(0x14a)]+'\x22'});return logger[_0x1dbfba(0x13e)](_0x1dbfba(0x135),_0x1dbfba(0x134)+_0x586a24[_0x1dbfba(0x14a)]),_0x36e8a1;}async function createSingleMenu(_0x46100e,_0x853c05,_0x2588e4,_0x364191){const _0x5c8b00=a91_0x185c,_0x2edbc4={'appCode':_0x46100e,'type':_0x5c8b00(0x12d),'sort':0x0,'extend':{'loadScriptMode':_0x5c8b00(0x13f),'resources':_0x364191?JSON['stringify'](_0x364191):undefined},'label':_0x2588e4[_0x5c8b00(0x14a)],'path':_0x2588e4[_0x5c8b00(0x12b)]},_0x26217a=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':'POST','body':_0x2edbc4,'cookie':_0x853c05,'label':_0x5c8b00(0x133)+_0x2588e4[_0x5c8b00(0x14a)]+'\x22'});return logger[_0x5c8b00(0x13e)](_0x5c8b00(0x135),'Menu\x20created\x20successfully:\x20'+_0x2588e4['label']),_0x26217a;}function a91_0x3045(){const _0x229503=['create-menu','1716030HrRAVC','231058zVvrdM','children','Batch\x20menu\x20creation\x20completed,\x20total\x20','3AJECVQ','extend','POST','string','info','import','all','map','1469680PHeXKH','Menu\x20assets\x20synced:\x20','42792LwfxDf','/smartapi/menu/update','push','length','isArray','102945xeaLrq','label','stringify','255mdUulp','890869GyeDsa','112mgigQc','Update\x20menu\x20assets\x20\x22','update-menu-cdn-url','Fetch\x20menu\x20list','parse','/smartapi/menu/create','Server\x20returned\x20empty\x20menu\x20list','path','/smartapi/menu/find?appCode=','procode','get-online-menu-list','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','resources','create-menus','Creating\x20menu:\x20','Create\x20menu\x20\x22','Menu\x20created\x20successfully:\x20'];a91_0x3045=function(){return _0x229503;};return a91_0x3045();}export async function createMenus(_0x112cc3,_0x3035ec,_0x859b4e,_0x53cd2b){const _0x26802f=a91_0x185c;logger[_0x26802f(0x13e)]('create-menus','Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x859b4e[_0x26802f(0x147)]);const _0x30d3b6=await Promise[_0x26802f(0x140)](_0x859b4e['map'](_0x4a43cf=>createSingleMenu(_0x112cc3,_0x3035ec,_0x4a43cf,_0x53cd2b)));return logger['info'](_0x26802f(0x131),_0x26802f(0x139)+_0x859b4e[_0x26802f(0x147)]),_0x30d3b6;}function a91_0x185c(_0x31fc68,_0x4dd163){_0x31fc68=_0x31fc68-0x125;const _0x304587=a91_0x3045();let _0x185c54=_0x304587[_0x31fc68];return _0x185c54;}export async function updateMenuCdnUrl(_0x38608,_0x5c6c7f,_0x4b27fa){const _0x16cbca=a91_0x185c;logger[_0x16cbca(0x13e)](_0x16cbca(0x126),'Updating\x20menu\x20asset\x20links:\x20'+_0x4b27fa[_0x16cbca(0x14a)]+'\x20('+_0x4b27fa[_0x16cbca(0x12b)]+')');const _0x565107={'id':_0x4b27fa['id'],'appCode':_0x38608,'extend':{..._0x4b27fa[_0x16cbca(0x13b)]??{},'loadScriptMode':_0x16cbca(0x13f),'resources':_0x4b27fa[_0x16cbca(0x130)]?JSON[_0x16cbca(0x14b)](_0x4b27fa['resources']):undefined}},_0x1479e0=await platformFetch(getApiDomain()+_0x16cbca(0x145),{'method':'POST','body':_0x565107,'cookie':_0x5c6c7f,'label':_0x16cbca(0x125)+_0x4b27fa[_0x16cbca(0x14a)]+'\x22'});return logger['info'](_0x16cbca(0x126),_0x16cbca(0x143)+_0x4b27fa[_0x16cbca(0x14a)],undefined),_0x1479e0;}
1
+ function a91_0x3c75(){const _0x404688=['label','Update\x20menu\x20assets\x20\x22','\x20online\x20menus\x20successfully','flat','parse','get-online-menu-list','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20','661523RtrROn','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','7929392hMsPVo','/smartapi/menu/find?appCode=','extend','5843562MiemAI','Create\x20menu\x20\x22','Menu\x20assets\x20synced:\x20','1035JGWUqr','stringify','Batch\x20menu\x20creation\x20completed,\x20total\x20','path','/smartapi/menu/create','Fetched\x20','children','map','965240NcMAsr','length','140390HKsaqh','all','isArray','string','procode','192285JmkdHN','create-menus','resources','info','7krRaOX','POST','260040ssQSKF','import','Fetch\x20menu\x20list','create-menu','4Cssewj','/smartapi/menu/update'];a91_0x3c75=function(){return _0x404688;};return a91_0x3c75();}(function(_0x34182e,_0x5d93f6){const _0x343c0d=a91_0x3326,_0x1543a5=_0x34182e();while(!![]){try{const _0x4c4710=parseInt(_0x343c0d(0x211))/0x1+-parseInt(_0x343c0d(0x1f5))/0x2+parseInt(_0x343c0d(0x202))/0x3+-parseInt(_0x343c0d(0x206))/0x4*(-parseInt(_0x343c0d(0x1fc))/0x5)+-parseInt(_0x343c0d(0x216))/0x6*(-parseInt(_0x343c0d(0x200))/0x7)+parseInt(_0x343c0d(0x213))/0x8+-parseInt(_0x343c0d(0x219))/0x9*(parseInt(_0x343c0d(0x1f7))/0xa);if(_0x4c4710===_0x5d93f6)break;else _0x1543a5['push'](_0x1543a5['shift']());}catch(_0x24ea14){_0x1543a5['push'](_0x1543a5['shift']());}}}(a91_0x3c75,0x9fd40));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x59752c,_0x595d5e){const _0x62180d=a91_0x3326,_0x5ea57f=getEnv();logger[_0x62180d(0x1ff)](_0x62180d(0x20d),isProduction(_0x5ea57f)?_0x62180d(0x212)+_0x59752c+')':_0x62180d(0x20e)+_0x59752c+')');const _0x5dc32a=await platformFetch(getApiDomain()+_0x62180d(0x214)+_0x59752c,{'cookie':_0x595d5e,'label':_0x62180d(0x204)});if(!_0x5dc32a)return logger[_0x62180d(0x1ff)]('get-online-menu-list','Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x62180d(0x1ff)](_0x62180d(0x20d),_0x62180d(0x21e)+_0x5dc32a[_0x62180d(0x1f6)]+_0x62180d(0x20a)),_0x5dc32a[_0x62180d(0x1f4)](flattenMenuItem)[_0x62180d(0x20b)]();}function flattenMenuItem(_0x43437e){const _0x2ff3cd=a91_0x3326;let _0xe7b58d=[];try{const _0x1b0103=_0x43437e['extend']?.[_0x2ff3cd(0x1fe)];if(typeof _0x1b0103===_0x2ff3cd(0x1fa)){const _0x5ae13a=JSON[_0x2ff3cd(0x20c)](_0x1b0103);if(Array[_0x2ff3cd(0x1f9)](_0x5ae13a))_0xe7b58d=_0x5ae13a['map'](String);}else Array['isArray'](_0x1b0103)&&(_0xe7b58d=_0x1b0103[_0x2ff3cd(0x1f4)](String));}catch{}const _0x2cdd07=[{'id':_0x43437e['id'],'path':_0x43437e[_0x2ff3cd(0x21c)],'label':_0x43437e['label'],'resources':_0xe7b58d,'extend':_0x43437e[_0x2ff3cd(0x215)]??null}];if(_0x43437e['children']&&_0x43437e[_0x2ff3cd(0x21f)]['length']>0x0)for(const _0x57c98a of _0x43437e['children']){_0x2cdd07['push'](...flattenMenuItem(_0x57c98a));}return _0x2cdd07;}function a91_0x3326(_0x453e5b,_0xd4e8f0){_0x453e5b=_0x453e5b-0x1f4;const _0x3c7519=a91_0x3c75();let _0x33262f=_0x3c7519[_0x453e5b];return _0x33262f;}export async function createMenu(_0x4fa3b2,_0x538bb7,_0x1c92f9){const _0x241231=a91_0x3326;logger['info'](_0x241231(0x205),'Creating\x20menu:\x20'+_0x1c92f9[_0x241231(0x208)]+'\x20('+_0x1c92f9['path']+')');const _0x4f0e8d={'appCode':_0x4fa3b2,'type':_0x241231(0x1fb),'sort':0x0,'extend':{'loadScriptMode':_0x241231(0x203),'resources':_0x1c92f9[_0x241231(0x1fe)]?JSON['stringify'](_0x1c92f9[_0x241231(0x1fe)]):undefined},..._0x1c92f9},_0x11a815=await platformFetch(getApiDomain()+_0x241231(0x21d),{'method':'POST','body':_0x4f0e8d,'cookie':_0x538bb7,'label':_0x241231(0x217)+_0x1c92f9[_0x241231(0x208)]+'\x22'});return logger[_0x241231(0x1ff)](_0x241231(0x205),'Menu\x20created\x20successfully:\x20'+_0x1c92f9['label']),_0x11a815;}async function createSingleMenu(_0x156f68,_0x7f9222,_0x591ac5,_0x275687){const _0x373f82=a91_0x3326,_0x2d189b={'appCode':_0x156f68,'type':_0x373f82(0x1fb),'sort':0x0,'extend':{'loadScriptMode':_0x373f82(0x203),'resources':_0x275687?JSON[_0x373f82(0x21a)](_0x275687):undefined},'label':_0x591ac5[_0x373f82(0x208)],'path':_0x591ac5[_0x373f82(0x21c)]},_0x2ff5d0=await platformFetch(getApiDomain()+_0x373f82(0x21d),{'method':_0x373f82(0x201),'body':_0x2d189b,'cookie':_0x7f9222,'label':_0x373f82(0x217)+_0x591ac5[_0x373f82(0x208)]+'\x22'});return logger[_0x373f82(0x1ff)](_0x373f82(0x205),'Menu\x20created\x20successfully:\x20'+_0x591ac5[_0x373f82(0x208)]),_0x2ff5d0;}export async function createMenus(_0x2d4251,_0x4a3922,_0x38a8d7,_0x531ccb){const _0x1da415=a91_0x3326;logger[_0x1da415(0x1ff)](_0x1da415(0x1fd),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x38a8d7[_0x1da415(0x1f6)]);const _0x1514cd=await Promise[_0x1da415(0x1f8)](_0x38a8d7[_0x1da415(0x1f4)](_0x3e5a87=>createSingleMenu(_0x2d4251,_0x4a3922,_0x3e5a87,_0x531ccb)));return logger[_0x1da415(0x1ff)](_0x1da415(0x1fd),_0x1da415(0x21b)+_0x38a8d7['length']),_0x1514cd;}export async function updateMenuCdnUrl(_0x2176ff,_0x760f08,_0x27a51f){const _0x157ef7=a91_0x3326;logger[_0x157ef7(0x1ff)](_0x157ef7(0x20f),_0x157ef7(0x210)+_0x27a51f['label']+'\x20('+_0x27a51f[_0x157ef7(0x21c)]+')');const _0x473a3f={'id':_0x27a51f['id'],'appCode':_0x2176ff,'extend':{..._0x27a51f[_0x157ef7(0x215)]??{},'loadScriptMode':_0x157ef7(0x203),'resources':_0x27a51f['resources']?JSON[_0x157ef7(0x21a)](_0x27a51f[_0x157ef7(0x1fe)]):undefined}},_0x576626=await platformFetch(getApiDomain()+_0x157ef7(0x207),{'method':_0x157ef7(0x201),'body':_0x473a3f,'cookie':_0x760f08,'label':_0x157ef7(0x209)+_0x27a51f[_0x157ef7(0x208)]+'\x22'});return logger[_0x157ef7(0x1ff)](_0x157ef7(0x20f),_0x157ef7(0x218)+_0x27a51f['label'],undefined),_0x576626;}