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

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_0x310231=a77_0x3bcc;function a77_0x3bcc(_0x413596,_0x1cf1f7){_0x413596=_0x413596-0x1e3;const _0x279041=a77_0x2790();let _0x3bccbc=_0x279041[_0x413596];return _0x3bccbc;}(function(_0x2825d0,_0xd87ef7){const _0x36230=a77_0x3bcc,_0x18b692=_0x2825d0();while(!![]){try{const _0x3c7be4=-parseInt(_0x36230(0x1f1))/0x1+-parseInt(_0x36230(0x205))/0x2*(-parseInt(_0x36230(0x218))/0x3)+parseInt(_0x36230(0x20c))/0x4+-parseInt(_0x36230(0x1e9))/0x5*(-parseInt(_0x36230(0x1fd))/0x6)+parseInt(_0x36230(0x1e6))/0x7+parseInt(_0x36230(0x216))/0x8*(parseInt(_0x36230(0x221))/0x9)+-parseInt(_0x36230(0x211))/0xa;if(_0x3c7be4===_0xd87ef7)break;else _0x18b692['push'](_0x18b692['shift']());}catch(_0x1a1803){_0x18b692['push'](_0x18b692['shift']());}}}(a77_0x2790,0xd29b2));import a77_0x52a1cf from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3a8b94){const _0x90d621=a77_0x3bcc,_0x5299ae=GIT_COMMIT!==_0x90d621(0x22e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x90d621(0x20b)](0x0,0xa)+')':VERSION,_0x2c79b8=buildConfigFromFlags({}),_0xc79f55=getCookie();console[_0x90d621(0x1fb)](),console['log'](a77_0x52a1cf[_0x90d621(0x209)](CLI_BIN_NAME+_0x90d621(0x1fe))),console[_0x90d621(0x1fb)](a77_0x52a1cf['gray']('─'[_0x90d621(0x228)](0x32))),console[_0x90d621(0x1fb)](_0x90d621(0x21d)+_0x5299ae),console[_0x90d621(0x1fb)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x90d621(0x1e3)]),console[_0x90d621(0x1fb)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x90d621(0x1f6)]+'\x20'+process['arch']),console[_0x90d621(0x1fb)](),console[_0x90d621(0x1fb)](a77_0x52a1cf[_0x90d621(0x209)](_0x90d621(0x213))),console[_0x90d621(0x1fb)](a77_0x52a1cf['gray'](_0x90d621(0x210)[_0x90d621(0x228)](0x1e)));const _0x367d98=getGlobalConfigPath(),_0x574061=getProjectConfigPath();console[_0x90d621(0x1fb)](_0x90d621(0x220)+(_0x367d98||a77_0x52a1cf['gray']('(not\x20found)'))),console[_0x90d621(0x1fb)](_0x90d621(0x230)+(_0x574061||a77_0x52a1cf['gray'](_0x90d621(0x1f8)))),console[_0x90d621(0x1fb)](),console[_0x90d621(0x1fb)](a77_0x52a1cf['bold'](_0x90d621(0x20f))),console[_0x90d621(0x1fb)](a77_0x52a1cf[_0x90d621(0x1f3)]('\x20\x20─'[_0x90d621(0x228)](0x1e)));const _0x485229=(_0x3386b9,_0x272ae6)=>{const _0x2ea55b=_0x90d621;if(!_0x272ae6){console[_0x2ea55b(0x1fb)]('\x20\x20'+_0x3386b9[_0x2ea55b(0x1ec)](0x11)+'\x20'+a77_0x52a1cf[_0x2ea55b(0x1f3)](_0x2ea55b(0x1ed)));return;}const _0x4eb3fe=inspectCliConfigJsonFile(_0x272ae6);if(_0x4eb3fe[_0x2ea55b(0x20d)]==='ok')console[_0x2ea55b(0x1fb)]('\x20\x20'+_0x3386b9[_0x2ea55b(0x1ec)](0x11)+'\x20'+a77_0x52a1cf[_0x2ea55b(0x21e)]('✓\x20Valid\x20JSON'));else{if(_0x4eb3fe[_0x2ea55b(0x20d)]==='empty')console[_0x2ea55b(0x1fb)]('\x20\x20'+_0x3386b9['padEnd'](0x11)+'\x20'+a77_0x52a1cf['yellow'](_0x2ea55b(0x223)));else _0x4eb3fe['status']===_0x2ea55b(0x219)?console[_0x2ea55b(0x1fb)]('\x20\x20'+_0x3386b9[_0x2ea55b(0x1ec)](0x11)+'\x20'+a77_0x52a1cf[_0x2ea55b(0x1f3)]('(missing)')):(console[_0x2ea55b(0x1fb)]('\x20\x20'+_0x3386b9[_0x2ea55b(0x1ec)](0x11)+'\x20'+a77_0x52a1cf[_0x2ea55b(0x1ff)]('✗\x20Invalid\x20JSON')),console[_0x2ea55b(0x1fb)]('\x20\x20'+''[_0x2ea55b(0x1ec)](0x11)+'\x20'+a77_0x52a1cf[_0x2ea55b(0x1ff)](_0x4eb3fe[_0x2ea55b(0x215)])));}};_0x485229('Global',_0x367d98),_0x485229('Project',_0x574061),console['log'](),console[_0x90d621(0x1fb)](a77_0x52a1cf['bold'](_0x90d621(0x1f9))),console[_0x90d621(0x1fb)](a77_0x52a1cf[_0x90d621(0x1f3)](_0x90d621(0x210)[_0x90d621(0x228)](0x1e))),console[_0x90d621(0x1fb)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c79b8['appCode']||a77_0x52a1cf[_0x90d621(0x1ff)](_0x90d621(0x208)))),console[_0x90d621(0x1fb)](_0x90d621(0x201)+_0x2c79b8['env']),console[_0x90d621(0x1fb)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c79b8['locale']),console[_0x90d621(0x1fb)](_0x90d621(0x1e5)+_0x2c79b8[_0x90d621(0x1ea)]),console[_0x90d621(0x1fb)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2c79b8[_0x90d621(0x1e7)]||a77_0x52a1cf['gray'](_0x90d621(0x1e4)))),console[_0x90d621(0x1fb)](_0x90d621(0x207)+(_0x2c79b8[_0x90d621(0x1ee)]||a77_0x52a1cf['gray'](_0x90d621(0x1e4)))),console[_0x90d621(0x1fb)](_0x90d621(0x225)+(_0x2c79b8[_0x90d621(0x1f7)]||a77_0x52a1cf[_0x90d621(0x1f3)](_0x90d621(0x1e4)))),console[_0x90d621(0x1fb)](_0x90d621(0x22d)+(_0x2c79b8[_0x90d621(0x232)]||a77_0x52a1cf['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x90d621(0x232)]+')'))),console[_0x90d621(0x1fb)](_0x90d621(0x1fa)+(_0x2c79b8[_0x90d621(0x229)]??a77_0x52a1cf[_0x90d621(0x1f3)](_0x90d621(0x1fc)))),console[_0x90d621(0x1fb)](_0x90d621(0x224)+_0x2c79b8[_0x90d621(0x1e8)]),console['log'](_0x90d621(0x20e)+_0x2c79b8[_0x90d621(0x214)]),console[_0x90d621(0x1fb)](_0x90d621(0x21b)+(_0x2c79b8[_0x90d621(0x204)]?a77_0x52a1cf['green']('(set,\x20length='+_0x2c79b8[_0x90d621(0x204)]['length']+')'):_0xc79f55?a77_0x52a1cf[_0x90d621(0x21e)](_0x90d621(0x22c)+_0xc79f55[_0x90d621(0x21c)]+')'):a77_0x52a1cf[_0x90d621(0x1f3)](_0x90d621(0x1e4))));const _0x649e84=Object['keys'](_0x2c79b8[_0x90d621(0x1f2)]);if(_0x649e84[_0x90d621(0x21c)]>0x0){console[_0x90d621(0x1fb)](),console['log'](a77_0x52a1cf['bold'](_0x90d621(0x203))),console[_0x90d621(0x1fb)](a77_0x52a1cf['gray'](_0x90d621(0x210)[_0x90d621(0x228)](0x1e)));for(const _0x3ea451 of _0x649e84){const _0x55d0cc=_0x2c79b8[_0x90d621(0x1f2)][_0x3ea451],_0x25b1e5=_0x3ea451===_0x2c79b8[_0x90d621(0x1e7)],_0x35c3b3=_0x3ea451===_0x2c79b8[_0x90d621(0x1ee)],_0x6d6e67=_0x35c3b3?a77_0x52a1cf['green']('\x20←\x20current'):'',_0x3487e7=_0x25b1e5?_0x90d621(0x22b):'';console[_0x90d621(0x1fb)]('\x20\x20'+_0x3ea451+_0x3487e7+_0x6d6e67),console[_0x90d621(0x1fb)](_0x90d621(0x1eb)+_0x55d0cc[_0x90d621(0x222)]);const _0x4ddb7a=buildAppDoctorFields(_0x55d0cc,{'env':_0x2c79b8['env'],'apiDir':_0x2c79b8[_0x90d621(0x231)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x2c79b8[_0x90d621(0x204)]||_0xc79f55||undefined,'accessKey':_0x2c79b8[_0x90d621(0x233)]});console[_0x90d621(0x1fb)](_0x90d621(0x200)+_0x4ddb7a[_0x90d621(0x212)][_0x90d621(0x206)]+'\x20\x20'+a77_0x52a1cf[_0x90d621(0x1f3)]('('+_0x4ddb7a[_0x90d621(0x212)][_0x90d621(0x21f)]+')')),console[_0x90d621(0x1fb)](_0x90d621(0x1ef)+_0x4ddb7a[_0x90d621(0x1ea)][_0x90d621(0x206)]+'\x20\x20'+a77_0x52a1cf['gray']('('+_0x4ddb7a[_0x90d621(0x1ea)][_0x90d621(0x21f)]+')'));const _0x11d3e4=_0x4ddb7a[_0x90d621(0x204)][_0x90d621(0x206)]?a77_0x52a1cf[_0x90d621(0x21e)]('(set,\x20length='+_0x4ddb7a['cookie'][_0x90d621(0x206)][_0x90d621(0x21c)]+')'):a77_0x52a1cf[_0x90d621(0x1f3)](_0x90d621(0x1e4));console['log'](_0x90d621(0x21a)+_0x11d3e4+'\x20\x20'+a77_0x52a1cf[_0x90d621(0x1f3)]('('+_0x4ddb7a[_0x90d621(0x204)]['source']+')'));const _0x274bdb=_0x4ddb7a['accessKey'][_0x90d621(0x206)]?a77_0x52a1cf[_0x90d621(0x21e)](_0x90d621(0x226)+_0x4ddb7a['accessKey'][_0x90d621(0x206)][_0x90d621(0x21c)]+')'):a77_0x52a1cf[_0x90d621(0x1f3)]('(none)');console[_0x90d621(0x1fb)](_0x90d621(0x227)+_0x274bdb+'\x20\x20'+a77_0x52a1cf[_0x90d621(0x1f3)]('('+_0x4ddb7a[_0x90d621(0x233)][_0x90d621(0x21f)]+')'));}}console[_0x90d621(0x1fb)](),console[_0x90d621(0x1fb)](a77_0x52a1cf[_0x90d621(0x209)](_0x90d621(0x22a))),console[_0x90d621(0x1fb)](a77_0x52a1cf[_0x90d621(0x1f3)](_0x90d621(0x210)['repeat'](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x90d621(0x1fb)](_0x90d621(0x22f)+getUserDomain()),console['log'](_0x90d621(0x20a)+getRuntimeDomain()),console[_0x90d621(0x1fb)](),console['log'](a77_0x52a1cf[_0x90d621(0x209)](_0x90d621(0x1f0))),console[_0x90d621(0x1fb)](a77_0x52a1cf[_0x90d621(0x1f3)]('\x20\x20─'[_0x90d621(0x228)](0x1e)));if(_0xc79f55){const _0x404c4b=await getIsSessionValid();console['log'](_0x90d621(0x217)+(_0x404c4b?a77_0x52a1cf[_0x90d621(0x21e)]('✓\x20Valid'):a77_0x52a1cf[_0x90d621(0x1ff)](_0x90d621(0x1f5))));}else console['log'](_0x90d621(0x217)+a77_0x52a1cf[_0x90d621(0x1ff)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x310231(0x1f4),'command':a77_0x310231(0x202),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a77_0x2790(){const _0x4d6f7e=['5271664npdLGf','status','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20─','51879580rtHxzH','env','\x20\x20Config\x20Files','verbose','message','6304vYIyxo','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4732473IZNObf','missing','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','green','source','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','12204BniqJg','appcode','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','(set,\x20length=','\x20\x20\x20\x20accessKey:\x20\x20','repeat','pageSize','\x20\x20API\x20Endpoints','\x20(default)','(set\x20via\x20file,\x20length=','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','format','accessKey','version','(none)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','7870415ZsBlHw','defaultApp','riskLevel','6815tpXnnC','apiDir','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','padEnd','(no\x20file)','currentApp','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Auth','737341bhguPS','apps','gray','doctor','✗\x20Expired','platform','explicitAppName','(not\x20found)','\x20\x20Merged\x20Config','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','log','(default)','7482vQpAwy','\x20doctor','red','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20Apps','cookie','2SfdZpH','value','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(not\x20set)','bold','\x20\x20runtimeDomain:\x20\x20\x20','slice'];a77_0x2790=function(){return _0x4d6f7e;};return a77_0x2790();}
1
+ const a77_0x39a18a=a77_0x117f;(function(_0x6197b1,_0x20e6f9){const _0x4a87f1=a77_0x117f,_0xa551fa=_0x6197b1();while(!![]){try{const _0x15ae9f=-parseInt(_0x4a87f1(0x214))/0x1*(-parseInt(_0x4a87f1(0x235))/0x2)+parseInt(_0x4a87f1(0x226))/0x3*(parseInt(_0x4a87f1(0x232))/0x4)+-parseInt(_0x4a87f1(0x236))/0x5+-parseInt(_0x4a87f1(0x221))/0x6*(-parseInt(_0x4a87f1(0x21e))/0x7)+parseInt(_0x4a87f1(0x1f3))/0x8+-parseInt(_0x4a87f1(0x1e8))/0x9*(parseInt(_0x4a87f1(0x230))/0xa)+-parseInt(_0x4a87f1(0x203))/0xb;if(_0x15ae9f===_0x20e6f9)break;else _0xa551fa['push'](_0xa551fa['shift']());}catch(_0x248dd4){_0xa551fa['push'](_0xa551fa['shift']());}}}(a77_0x264f,0x7513b));import a77_0x11f023 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a77_0x117f(_0x12466e,_0x35d3f8){_0x12466e=_0x12466e-0x1e6;const _0x264f4f=a77_0x264f();let _0x117fab=_0x264f4f[_0x12466e];return _0x117fab;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3217f9){const _0x3033d8=a77_0x117f,_0x4e1021=GIT_COMMIT!==_0x3033d8(0x202)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3033d8(0x1fb)](0x0,0xa)+')':VERSION,_0x218c7e=buildConfigFromFlags({}),_0x1e9085=getCookie();console[_0x3033d8(0x23f)](),console['log'](a77_0x11f023[_0x3033d8(0x239)](CLI_BIN_NAME+_0x3033d8(0x234))),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x20d)]('─'[_0x3033d8(0x1f8)](0x32))),console[_0x3033d8(0x23f)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4e1021),console[_0x3033d8(0x23f)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x3033d8(0x23f)](_0x3033d8(0x1f6)+process[_0x3033d8(0x237)]+'\x20'+process['arch']),console['log'](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x1f9))),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e)));const _0xc7e0c2=getGlobalConfigPath(),_0x57724f=getProjectConfigPath();console[_0x3033d8(0x23f)](_0x3033d8(0x1eb)+(_0xc7e0c2||a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x1f4)))),console[_0x3033d8(0x23f)](_0x3033d8(0x206)+(_0x57724f||a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x1f4)))),console[_0x3033d8(0x23f)](),console['log'](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x238))),console['log'](a77_0x11f023['gray'](_0x3033d8(0x233)['repeat'](0x1e)));const _0x491963=(_0x45a64a,_0x24cc55)=>{const _0xc996da=_0x3033d8;if(!_0x24cc55){console[_0xc996da(0x23f)]('\x20\x20'+_0x45a64a['padEnd'](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x20d)]('(no\x20file)'));return;}const _0x3a3515=inspectCliConfigJsonFile(_0x24cc55);if(_0x3a3515[_0xc996da(0x1ec)]==='ok')console[_0xc996da(0x23f)]('\x20\x20'+_0x45a64a[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x201)](_0xc996da(0x1f0)));else{if(_0x3a3515[_0xc996da(0x1ec)]===_0xc996da(0x218))console['log']('\x20\x20'+_0x45a64a[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x213)](_0xc996da(0x21f)));else _0x3a3515[_0xc996da(0x1ec)]===_0xc996da(0x1f5)?console['log']('\x20\x20'+_0x45a64a[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x20d)](_0xc996da(0x211))):(console[_0xc996da(0x23f)]('\x20\x20'+_0x45a64a['padEnd'](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x204)](_0xc996da(0x215))),console['log']('\x20\x20'+''[_0xc996da(0x23b)](0x11)+'\x20'+a77_0x11f023[_0xc996da(0x204)](_0x3a3515['message'])));}};_0x491963('Global',_0xc7e0c2),_0x491963(_0x3033d8(0x227),_0x57724f),console['log'](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)]('\x20\x20Merged\x20Config')),console[_0x3033d8(0x23f)](a77_0x11f023['gray'](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e))),console[_0x3033d8(0x23f)](_0x3033d8(0x209)+(_0x218c7e[_0x3033d8(0x23a)]||a77_0x11f023[_0x3033d8(0x204)](_0x3033d8(0x231)))),console['log'](_0x3033d8(0x1e6)+_0x218c7e[_0x3033d8(0x212)]),console['log'](_0x3033d8(0x20a)+_0x218c7e[_0x3033d8(0x217)]),console[_0x3033d8(0x23f)](_0x3033d8(0x1ed)+_0x218c7e[_0x3033d8(0x205)]),console[_0x3033d8(0x23f)](_0x3033d8(0x1fd)+(_0x218c7e[_0x3033d8(0x228)]||a77_0x11f023[_0x3033d8(0x20d)]('(none)'))),console[_0x3033d8(0x23f)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x218c7e[_0x3033d8(0x23c)]||a77_0x11f023[_0x3033d8(0x20d)]('(none)'))),console[_0x3033d8(0x23f)](_0x3033d8(0x224)+(_0x218c7e[_0x3033d8(0x21c)]||a77_0x11f023[_0x3033d8(0x20d)]('(none)'))),console[_0x3033d8(0x23f)](_0x3033d8(0x1ea)+(_0x218c7e[_0x3033d8(0x222)]||a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x1ee)+DEFAULT_CONFIG_VALUES[_0x3033d8(0x222)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x218c7e[_0x3033d8(0x20c)]??a77_0x11f023[_0x3033d8(0x20d)]('(default)'))),console[_0x3033d8(0x23f)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x218c7e[_0x3033d8(0x22a)]),console[_0x3033d8(0x23f)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x218c7e['verbose']),console[_0x3033d8(0x23f)](_0x3033d8(0x22b)+(_0x218c7e['cookie']?a77_0x11f023['green'](_0x3033d8(0x208)+_0x218c7e[_0x3033d8(0x1e9)][_0x3033d8(0x20f)]+')'):_0x1e9085?a77_0x11f023[_0x3033d8(0x201)](_0x3033d8(0x229)+_0x1e9085['length']+')'):a77_0x11f023[_0x3033d8(0x20d)]('(none)')));const _0x3bc748=Object[_0x3033d8(0x1e7)](_0x218c7e[_0x3033d8(0x20b)]);if(_0x3bc748[_0x3033d8(0x20f)]>0x0){console[_0x3033d8(0x23f)](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x1f2))),console['log'](a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x233)['repeat'](0x1e)));for(const _0x46f850 of _0x3bc748){const _0x39e502=_0x218c7e['apps'][_0x46f850],_0x893670=_0x46f850===_0x218c7e[_0x3033d8(0x228)],_0xbba866=_0x46f850===_0x218c7e[_0x3033d8(0x23c)],_0x1293d0=_0xbba866?a77_0x11f023[_0x3033d8(0x201)](_0x3033d8(0x1fa)):'',_0x53bd3e=_0x893670?_0x3033d8(0x1fe):'';console[_0x3033d8(0x23f)]('\x20\x20'+_0x46f850+_0x53bd3e+_0x1293d0),console['log'](_0x3033d8(0x1ff)+_0x39e502[_0x3033d8(0x200)]);const _0x42a352=buildAppDoctorFields(_0x39e502,{'env':_0x218c7e[_0x3033d8(0x212)],'apiDir':_0x218c7e[_0x3033d8(0x21b)][_0x3033d8(0x205)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x218c7e[_0x3033d8(0x1e9)]||_0x1e9085||undefined,'accessKey':_0x218c7e[_0x3033d8(0x220)]});console[_0x3033d8(0x23f)](_0x3033d8(0x223)+_0x42a352[_0x3033d8(0x212)][_0x3033d8(0x22c)]+'\x20\x20'+a77_0x11f023[_0x3033d8(0x20d)]('('+_0x42a352['env'][_0x3033d8(0x22d)]+')')),console[_0x3033d8(0x23f)](_0x3033d8(0x22e)+_0x42a352[_0x3033d8(0x205)][_0x3033d8(0x22c)]+'\x20\x20'+a77_0x11f023['gray']('('+_0x42a352[_0x3033d8(0x205)][_0x3033d8(0x22d)]+')'));const _0x1635ca=_0x42a352[_0x3033d8(0x1e9)]['value']?a77_0x11f023[_0x3033d8(0x201)](_0x3033d8(0x208)+_0x42a352[_0x3033d8(0x1e9)][_0x3033d8(0x22c)][_0x3033d8(0x20f)]+')'):a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x23e));console[_0x3033d8(0x23f)](_0x3033d8(0x207)+_0x1635ca+'\x20\x20'+a77_0x11f023['gray']('('+_0x42a352[_0x3033d8(0x1e9)]['source']+')'));const _0x1785bb=_0x42a352['accessKey'][_0x3033d8(0x22c)]?a77_0x11f023[_0x3033d8(0x201)]('(set,\x20length='+_0x42a352[_0x3033d8(0x220)][_0x3033d8(0x22c)]['length']+')'):a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x23e));console[_0x3033d8(0x23f)](_0x3033d8(0x23d)+_0x1785bb+'\x20\x20'+a77_0x11f023[_0x3033d8(0x20d)]('('+_0x42a352[_0x3033d8(0x220)]['source']+')'));}}console['log'](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x225))),console[_0x3033d8(0x23f)](a77_0x11f023['gray'](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e))),console[_0x3033d8(0x23f)](_0x3033d8(0x240)+getApiDomain()),console[_0x3033d8(0x23f)](_0x3033d8(0x22f)+getUserDomain()),console['log'](_0x3033d8(0x20e)+getRuntimeDomain()),console[_0x3033d8(0x23f)](),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x239)](_0x3033d8(0x210))),console[_0x3033d8(0x23f)](a77_0x11f023[_0x3033d8(0x20d)](_0x3033d8(0x233)[_0x3033d8(0x1f8)](0x1e)));if(_0x1e9085){const _0x6c3b40=await getIsSessionValid();console[_0x3033d8(0x23f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x6c3b40?a77_0x11f023['green'](_0x3033d8(0x216)):a77_0x11f023[_0x3033d8(0x204)](_0x3033d8(0x1f7))));}else console[_0x3033d8(0x23f)](_0x3033d8(0x21a)+a77_0x11f023[_0x3033d8(0x204)](_0x3033d8(0x1fc)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x39a18a(0x1f1),'command':a77_0x39a18a(0x21d),'description':a77_0x39a18a(0x219),'risk':a77_0x39a18a(0x1ef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a77_0x264f(){const _0x1721a3=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','appcode','green','unknown','1721830DHErLT','red','apiDir','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','pageSize','gray','\x20\x20runtimeDomain:\x20\x20\x20','length','\x20\x20Auth','(missing)','env','yellow','2413zkNKvC','✗\x20Invalid\x20JSON','✓\x20Valid','locale','empty','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','explicitAppName','check','7ijdHwf','⚠\x20Empty\x20(treated\x20as\x20{})','accessKey','4657518akQyWm','format','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20API\x20Endpoints','15Cemlij','Project','defaultApp','(set\x20via\x20file,\x20length=','riskLevel','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','source','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','3590sohxkf','(not\x20set)','670856yPtURz','\x20\x20─','\x20doctor','2muGVXZ','4633535OJEPIq','platform','\x20\x20Config\x20JSON','bold','appCode','padEnd','currentApp','\x20\x20\x20\x20accessKey:\x20\x20','(none)','log','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','7947jkboSE','cookie','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','read','✓\x20Valid\x20JSON','doctor','\x20\x20Apps','2100360gpfEBb','(not\x20found)','missing','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','repeat','\x20\x20Config\x20Files','\x20←\x20current','slice','✗\x20Not\x20logged\x20in'];a77_0x264f=function(){return _0x1721a3;};return a77_0x264f();}
@@ -1 +1 @@
1
- function a78_0x2f49(){const _0x5589a5=['\x0a✓\x20Successfully\x20initialized\x20','str','\x20config','Auto-confirm\x20prompts','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','defaultApp','nonInteractive','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','run','20JWnuQb','env','Target\x20environment','toLocaleString','project','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','init','appCode','\x20\x20Apps:\x20','appcode','global','\x20\x20Config:\x20','129906gzCNhP','检测到旧配置文件,正在自动升级...\x0a','14tQycCP','flagMissing','log','Use\x20`','Write\x20to\x20global\x20config\x20instead\x20of\x20project','3vfFOuA','valid','message','yes','2947554JXTRDs','bool','550932yRpOue','1498860vybexa','some','boolean','string','production','cwd','join','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','validation','../../commands/project/init.js','383848qrEeWq','33DuviYg','App\x20code\x20to\x20initialize\x20with','1153150QTYbId','write','323047qobpSh'];a78_0x2f49=function(){return _0x5589a5;};return a78_0x2f49();}const a78_0x14f9a2=a78_0x31ac;(function(_0x177f46,_0xab3204){const _0x49818c=a78_0x31ac,_0x33426b=_0x177f46();while(!![]){try{const _0x14e363=parseInt(_0x49818c(0x1fd))/0x1+-parseInt(_0x49818c(0x214))/0x2*(parseInt(_0x49818c(0x21b))/0x3)+parseInt(_0x49818c(0x222))/0x4+-parseInt(_0x49818c(0x208))/0x5*(parseInt(_0x49818c(0x221))/0x6)+-parseInt(_0x49818c(0x216))/0x7*(parseInt(_0x49818c(0x1f8))/0x8)+-parseInt(_0x49818c(0x21f))/0x9+parseInt(_0x49818c(0x1fb))/0xa*(parseInt(_0x49818c(0x1f9))/0xb);if(_0x14e363===_0xab3204)break;else _0x33426b['push'](_0x33426b['shift']());}catch(_0x537df5){_0x33426b['push'](_0x33426b['shift']());}}}(a78_0x2f49,0x2de5e));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';function a78_0x31ac(_0x2365a7,_0x4dedc8){_0x2365a7=_0x2365a7-0x1f4;const _0x2f49b1=a78_0x2f49();let _0x31ace9=_0x2f49b1[_0x2365a7];return _0x31ace9;}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(_0x2f6bf8){return{'appCode':_0x2f6bf8,'appName':_0x2f6bf8};}function writeInitConfig(_0x5e174b,_0x4cd29f,_0x17a7e2){const _0x3dfcb1=a78_0x31ac,_0x236f99=resolveWriteConfigPath(_0x5e174b),_0x4f9f81=buildCanonicalProjectConfig({},{'appCodes':_0x4cd29f['map'](_0x359fed=>_0x359fed[_0x3dfcb1(0x20f)]),'env':_0x17a7e2,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3dfcb1(0x20b)]()}});writeConfigFile(_0x236f99,_0x4f9f81);const _0x3d0e15=_0x5e174b==='global'?_0x3dfcb1(0x212):'project';console[_0x3dfcb1(0x218)](_0x3dfcb1(0x1fe)+_0x3d0e15+_0x3dfcb1(0x200)),console[_0x3dfcb1(0x218)](_0x3dfcb1(0x210)+_0x4cd29f['map'](_0x81545c=>_0x81545c[_0x3dfcb1(0x20f)])[_0x3dfcb1(0x1f4)](',\x20')),console[_0x3dfcb1(0x218)]('\x20\x20Default:\x20'+_0x4f9f81[_0x3dfcb1(0x204)]),console[_0x3dfcb1(0x218)]('\x20\x20Env:\x20'+_0x4f9f81[_0x3dfcb1(0x209)]),console[_0x3dfcb1(0x218)](_0x3dfcb1(0x213)+_0x236f99);}async function runSmartInit(_0x15dd59){const _0xd230e8=a78_0x31ac,_0x109328=process[_0xd230e8(0x227)](),_0x36473e=_0x15dd59[_0xd230e8(0x220)](_0xd230e8(0x212))?_0xd230e8(0x212):_0xd230e8(0x20c),_0x4a1d39=_0x15dd59[_0xd230e8(0x1ff)]('env')||_0xd230e8(0x226),_0x4c04c4=_0x15dd59[_0xd230e8(0x1ff)]('appcode')||undefined,_0x3aebd4=_0x15dd59[_0xd230e8(0x220)](_0xd230e8(0x20c));if(_0x3aebd4){const {initConfig:_0x18edc8}=await import(_0xd230e8(0x1f7));return _0x18edc8({'appcode':_0x4c04c4,'env':_0x4a1d39,'autoYes':_0x15dd59[_0xd230e8(0x220)]('yes')});}if(_0x36473e===_0xd230e8(0x20c)){const _0x49a16b=existsSync(resolve(_0x109328,NEW_CONFIG_NAME)),_0x1074f7=LEGACY_CONFIG_NAMES[_0xd230e8(0x223)](_0x4a95da=>existsSync(resolve(_0x109328,_0x4a95da)));if(_0x1074f7&&!_0x49a16b)return console[_0xd230e8(0x218)](_0xd230e8(0x215)),upgradeApp(_0x15dd59['nonInteractive'],{'yes':_0x15dd59['bool'](_0xd230e8(0x21e))});if(_0x49a16b)throw CliErrors['validation'](_0xd230e8(0x202),_0xd230e8(0x219)+CLI_BIN_NAME+_0xd230e8(0x206));}if(_0x4c04c4){const _0x4caef3=validateAppcode(_0x4c04c4);if(!_0x4caef3[_0xd230e8(0x21c)])throw CliErrors[_0xd230e8(0x1f6)](_0x4caef3[_0xd230e8(0x21d)]);writeInitConfig(_0x36473e,[syntheticApp(_0x4c04c4)],_0x4a1d39);return;}if(_0x15dd59[_0xd230e8(0x205)])throw CliErrors[_0xd230e8(0x217)](_0xd230e8(0x211),'Usage:\x20'+CLI_BIN_NAME+_0xd230e8(0x20d));const _0x2a9397=getCookie(),_0x569437=await selectMultipleApps(_0x2a9397),_0x3b7fe0=_0x569437==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x569437;writeInitConfig(_0x36473e,_0x3b7fe0,_0x4a1d39);}const initFlags=[{'name':a78_0x14f9a2(0x212),'type':a78_0x14f9a2(0x224),'description':a78_0x14f9a2(0x21a),'default':![]},{'name':a78_0x14f9a2(0x209),'type':a78_0x14f9a2(0x225),'description':a78_0x14f9a2(0x20a),'default':a78_0x14f9a2(0x226),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x14f9a2(0x211),'type':a78_0x14f9a2(0x225),'description':a78_0x14f9a2(0x1fa)},{'name':a78_0x14f9a2(0x20c),'type':'boolean','description':a78_0x14f9a2(0x203),'default':![]},{'name':a78_0x14f9a2(0x21e),'type':a78_0x14f9a2(0x224),'description':a78_0x14f9a2(0x201),'default':![]}];export const initDefinitions=[{'service':a78_0x14f9a2(0x20e),'command':a78_0x14f9a2(0x207),'description':a78_0x14f9a2(0x1f5),'risk':a78_0x14f9a2(0x1fc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5b1265){return await runSmartInit(_0x5b1265),{'ok':!![]};}}];
1
+ const a78_0x576563=a78_0x5535;(function(_0x1f5957,_0x36ab61){const _0x426172=a78_0x5535,_0x571767=_0x1f5957();while(!![]){try{const _0x4021fd=-parseInt(_0x426172(0x1a5))/0x1*(-parseInt(_0x426172(0x1b9))/0x2)+parseInt(_0x426172(0x186))/0x3+parseInt(_0x426172(0x187))/0x4*(parseInt(_0x426172(0x18c))/0x5)+-parseInt(_0x426172(0x19a))/0x6*(-parseInt(_0x426172(0x189))/0x7)+-parseInt(_0x426172(0x1aa))/0x8+parseInt(_0x426172(0x18d))/0x9*(-parseInt(_0x426172(0x1a9))/0xa)+parseInt(_0x426172(0x1a7))/0xb;if(_0x4021fd===_0x36ab61)break;else _0x571767['push'](_0x571767['shift']());}catch(_0x3d5986){_0x571767['push'](_0x571767['shift']());}}}(a78_0x5c42,0xcf8ee));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';function a78_0x5535(_0x9379bc,_0x11b09d){_0x9379bc=_0x9379bc-0x185;const _0x5c4227=a78_0x5c42();let _0x5535a5=_0x5c4227[_0x9379bc];return _0x5535a5;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a78_0x5c42(){const _0x56b5e7=['defaultApp','36eWaUqZ','yes','\x20\x20Config:\x20','1711200ewUOxY','26024sjVINk','App\x20code\x20to\x20initialize\x20with','51261QeIBot','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','nonInteractive','5TaxSyZ','4448853iTSjdI','some','Target\x20environment','\x20\x20Default:\x20','检测到旧配置文件,正在自动升级...\x0a','str','join','valid','log','init','string','project','message','294fNDVKJ','appcode','bool','map','\x20\x20Env:\x20','cwd','\x20config','write','env','global','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','33757sRNvKO','\x20\x20Apps:\x20','16887827tCpUwn','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','30DEAFUz','5964056nnNfgQ','Write\x20to\x20global\x20config\x20instead\x20of\x20project','appCode','Use\x20`','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','production','../../commands/project/init.js','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x0a✓\x20Successfully\x20initialized\x20','toLocaleString','Auto-confirm\x20prompts','run','boolean','custom'];a78_0x5c42=function(){return _0x56b5e7;};return a78_0x5c42();}import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x49b02b){return{'appCode':_0x49b02b,'appName':_0x49b02b};}function writeInitConfig(_0x3be399,_0x396de5,_0x36856a){const _0x51c070=a78_0x5535,_0xe170ec=resolveWriteConfigPath(_0x3be399),_0x1f9f64=buildCanonicalProjectConfig({},{'appCodes':_0x396de5['map'](_0x22de5b=>_0x22de5b[_0x51c070(0x1ac)]),'env':_0x36856a,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x51c070(0x1b3)]()}});writeConfigFile(_0xe170ec,_0x1f9f64);const _0x1d99ad=_0x3be399===_0x51c070(0x1a3)?_0x51c070(0x1a3):'project';console[_0x51c070(0x195)](_0x51c070(0x1b2)+_0x1d99ad+_0x51c070(0x1a0)),console[_0x51c070(0x195)](_0x51c070(0x1a6)+_0x396de5[_0x51c070(0x19d)](_0xcae6cb=>_0xcae6cb[_0x51c070(0x1ac)])[_0x51c070(0x193)](',\x20')),console[_0x51c070(0x195)](_0x51c070(0x190)+_0x1f9f64[_0x51c070(0x1b8)]),console[_0x51c070(0x195)](_0x51c070(0x19e)+_0x1f9f64[_0x51c070(0x1a2)]),console[_0x51c070(0x195)](_0x51c070(0x185)+_0xe170ec);}async function runSmartInit(_0x5ceadc){const _0x20207b=a78_0x5535,_0x148881=process[_0x20207b(0x19f)](),_0x2cee97=_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x1a3))?'global':_0x20207b(0x198),_0x431ecb=_0x5ceadc[_0x20207b(0x192)](_0x20207b(0x1a2))||_0x20207b(0x1af),_0x4d4464=_0x5ceadc[_0x20207b(0x192)](_0x20207b(0x19b))||undefined,_0x2d57f9=_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x198));if(_0x2d57f9){const {initConfig:_0x19cbe6}=await import(_0x20207b(0x1b0));return _0x19cbe6({'appcode':_0x4d4464,'env':_0x431ecb,'autoYes':_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x1ba))});}if(_0x2cee97===_0x20207b(0x198)){const _0x4d782a=existsSync(resolve(_0x148881,NEW_CONFIG_NAME)),_0x52ea6f=LEGACY_CONFIG_NAMES[_0x20207b(0x18e)](_0x51908c=>existsSync(resolve(_0x148881,_0x51908c)));if(_0x52ea6f&&!_0x4d782a)return console[_0x20207b(0x195)](_0x20207b(0x191)),upgradeApp(_0x5ceadc[_0x20207b(0x18b)],{'yes':_0x5ceadc[_0x20207b(0x19c)](_0x20207b(0x1ba))});if(_0x4d782a)throw CliErrors['validation'](_0x20207b(0x18a),_0x20207b(0x1ad)+CLI_BIN_NAME+_0x20207b(0x1a4));}if(_0x4d4464){const _0x631ec1=validateAppcode(_0x4d4464);if(!_0x631ec1[_0x20207b(0x194)])throw CliErrors['validation'](_0x631ec1[_0x20207b(0x199)]);writeInitConfig(_0x2cee97,[syntheticApp(_0x4d4464)],_0x431ecb);return;}if(_0x5ceadc[_0x20207b(0x18b)])throw CliErrors['flagMissing'](_0x20207b(0x19b),'Usage:\x20'+CLI_BIN_NAME+_0x20207b(0x1ae));const _0x3288f3=getCookie(),_0x578870=await selectMultipleApps(_0x3288f3),_0x535e82=_0x578870===_0x20207b(0x1b7)?[syntheticApp(await promptCustomAppcode())]:_0x578870;writeInitConfig(_0x2cee97,_0x535e82,_0x431ecb);}const initFlags=[{'name':a78_0x576563(0x1a3),'type':'boolean','description':a78_0x576563(0x1ab),'default':![]},{'name':a78_0x576563(0x1a2),'type':a78_0x576563(0x197),'description':a78_0x576563(0x18f),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x576563(0x19b),'type':'string','description':a78_0x576563(0x188)},{'name':a78_0x576563(0x198),'type':'boolean','description':a78_0x576563(0x1a8),'default':![]},{'name':'yes','type':a78_0x576563(0x1b6),'description':a78_0x576563(0x1b4),'default':![]}];export const initDefinitions=[{'service':a78_0x576563(0x196),'command':a78_0x576563(0x1b5),'description':a78_0x576563(0x1b1),'risk':a78_0x576563(0x1a1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x459aec){return await runSmartInit(_0x459aec),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a79_0x1a5d(_0x268c2a,_0xc2f91){_0x268c2a=_0x268c2a-0x1af;const _0x54da25=a79_0x54da();let _0x1a5d93=_0x54da25[_0x268c2a];return _0x1a5d93;}(function(_0x19963e,_0x469515){const _0x147f3f=a79_0x1a5d,_0x33ae7e=_0x19963e();while(!![]){try{const _0x3b4be1=-parseInt(_0x147f3f(0x1b1))/0x1+-parseInt(_0x147f3f(0x1b0))/0x2+-parseInt(_0x147f3f(0x1b4))/0x3*(-parseInt(_0x147f3f(0x1b2))/0x4)+parseInt(_0x147f3f(0x1b5))/0x5*(-parseInt(_0x147f3f(0x1b6))/0x6)+parseInt(_0x147f3f(0x1b3))/0x7*(-parseInt(_0x147f3f(0x1b7))/0x8)+-parseInt(_0x147f3f(0x1b8))/0x9+parseInt(_0x147f3f(0x1af))/0xa;if(_0x3b4be1===_0x469515)break;else _0x33ae7e['push'](_0x33ae7e['shift']());}catch(_0x1ef39a){_0x33ae7e['push'](_0x33ae7e['shift']());}}}(a79_0x54da,0xae1bb));import{issueReport}from'../../commands/issue/report.js';function a79_0x54da(){const _0x3b8d21=['30461860ynYTAY','1825068kmzhEw','727615OmKkNx','20PLIcHV','875xvPvUQ','121701JAgMOX','275pJlZcq','63522ZifSqc','13712XCYvTD','892710lXyGrd'];a79_0x54da=function(){return _0x3b8d21;};return a79_0x54da();}export const issueDefinitions=[issueReport];
1
+ (function(_0x246916,_0x1dcab3){const _0x164fc6=a79_0x21ce,_0x1198c8=_0x246916();while(!![]){try{const _0x1a010d=-parseInt(_0x164fc6(0xa9))/0x1*(parseInt(_0x164fc6(0xae))/0x2)+parseInt(_0x164fc6(0xa5))/0x3+parseInt(_0x164fc6(0xaa))/0x4*(parseInt(_0x164fc6(0xa8))/0x5)+-parseInt(_0x164fc6(0xa4))/0x6+-parseInt(_0x164fc6(0xad))/0x7*(-parseInt(_0x164fc6(0xab))/0x8)+-parseInt(_0x164fc6(0xa6))/0x9+-parseInt(_0x164fc6(0xac))/0xa*(-parseInt(_0x164fc6(0xa7))/0xb);if(_0x1a010d===_0x1dcab3)break;else _0x1198c8['push'](_0x1198c8['shift']());}catch(_0x47249c){_0x1198c8['push'](_0x1198c8['shift']());}}}(a79_0x3a56,0x36f79));import{issueReport}from'../../commands/issue/report.js';function a79_0x21ce(_0x3491f0,_0x3ce8c6){_0x3491f0=_0x3491f0-0xa4;const _0x3a56b8=a79_0x3a56();let _0x21ce31=_0x3a56b8[_0x3491f0];return _0x21ce31;}export const issueDefinitions=[issueReport];function a79_0x3a56(){const _0x150ea0=['127784eFTOpj','430QAyPHh','133sCgRGU','6lIXUbW','2072022crWpGc','624420hWlKNQ','1064619QbtGaM','119174LSTLtV','193480KSHGro','122036LgWsHp','8MDMrRC'];a79_0x3a56=function(){return _0x150ea0;};return a79_0x3a56();}
@@ -1 +1 @@
1
- const a80_0x5d7b2f=a80_0x309c;(function(_0x13e0e2,_0xb9a76f){const _0xe15213=a80_0x309c,_0x251b6=_0x13e0e2();while(!![]){try{const _0x30fecc=-parseInt(_0xe15213(0x10c))/0x1*(-parseInt(_0xe15213(0x10d))/0x2)+-parseInt(_0xe15213(0x113))/0x3+-parseInt(_0xe15213(0x10f))/0x4+-parseInt(_0xe15213(0x12d))/0x5*(-parseInt(_0xe15213(0x116))/0x6)+-parseInt(_0xe15213(0x11a))/0x7+-parseInt(_0xe15213(0x128))/0x8+parseInt(_0xe15213(0x11c))/0x9*(parseInt(_0xe15213(0x121))/0xa);if(_0x30fecc===_0xb9a76f)break;else _0x251b6['push'](_0x251b6['shift']());}catch(_0x3b9403){_0x251b6['push'](_0x251b6['shift']());}}}(a80_0x36d6,0xe04be));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x5d7b2f(0x120);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x5d7b2f(0x12b),a80_0x5d7b2f(0x11e),a80_0x5d7b2f(0x127),'unknown_command','flag_missing',a80_0x5d7b2f(0x129),'network_error']),defaultWriter=_0x49bda7=>{const _0x2a4c8a=a80_0x5d7b2f;process[_0x2a4c8a(0x110)][_0x2a4c8a(0x12c)](_0x49bda7);};export function shouldNudgeForError(_0x2b77e2,_0x58f66e){const _0x2d0e91=a80_0x5d7b2f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x58f66e[_0x2d0e91(0x115)]===_0x2d0e91(0x123)&&_0x58f66e[_0x2d0e91(0x10e)]===_0x2d0e91(0x111))return![];if(_0x2b77e2 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2d0e91(0x119)](_0x2b77e2[_0x2d0e91(0x117)]);return!![];}function a80_0x309c(_0x20c1db,_0x301a6c){_0x20c1db=_0x20c1db-0x10c;const _0x36d686=a80_0x36d6();let _0x309c85=_0x36d686[_0x20c1db];return _0x309c85;}export function printIssueReportNudgeForError(_0x38970f,_0x20ed51,_0x36665a=defaultWriter){if(!shouldNudgeForError(_0x38970f,_0x20ed51))return;const _0x5914fb=buildSuggestedTitle(_0x38970f,_0x20ed51);_0x36665a(formatNudge(_0x5914fb));}function a80_0x36d6(){const _0x2da520=['service','6JIEkYF','code','join','has','5720379hnHGZk','length','9AwKiOE','\x22\x20\x5c','config_missing','\x20bug?\x20Help\x20us\x20fix\x20it:','RABETBASE_DISABLE_ISSUE_NUDGE','34450730AptYuT','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','issue','replace','\x20\x20Set\x20','Hit\x20a\x20','not_in_project','10844208gIfiOi','validation_error','\x20issue\x20report\x20\x5c','auth_required','write','803210tbbwjD','1029NrXxYz','562rvtMAM','command','2350200WXfLlt','stderr','report','\x20\x20\x20\x20--title\x20\x22','647619znIHiy','=1\x20to\x20silence\x20this\x20hint.'];a80_0x36d6=function(){return _0x2da520;};return a80_0x36d6();}function buildSuggestedTitle(_0x45cbc2,_0x5344ba){const _0x3a3a1f=a80_0x5d7b2f,_0x1e130e=_0x45cbc2 instanceof Error?_0x45cbc2['message']:String(_0x45cbc2),_0x172262=_0x1e130e['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()['slice'](0x0,0x78)[_0x3a3a1f(0x124)](/"/g,'\x5c\x22'),_0x503ccc=CLI_BIN_NAME+'\x20'+_0x5344ba[_0x3a3a1f(0x115)]+'\x20'+_0x5344ba[_0x3a3a1f(0x10e)];return _0x172262[_0x3a3a1f(0x11b)]>0x0?_0x503ccc+':\x20'+_0x172262:_0x503ccc;}function formatNudge(_0x3f69fb){const _0x100ed0=a80_0x5d7b2f;return['',_0x100ed0(0x126)+CLI_BIN_NAME+_0x100ed0(0x11f),'\x20\x20'+CLI_BIN_NAME+_0x100ed0(0x12a),_0x100ed0(0x112)+_0x3f69fb+_0x100ed0(0x11d),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x100ed0(0x122),_0x100ed0(0x125)+NUDGE_OPT_OUT_ENV+_0x100ed0(0x114),''][_0x100ed0(0x118)]('\x0a');}
1
+ const a80_0x3a4b8d=a80_0x5884;(function(_0x31d882,_0x40abb7){const _0x2acd84=a80_0x5884,_0x546c0a=_0x31d882();while(!![]){try{const _0x1754ab=parseInt(_0x2acd84(0xbd))/0x1*(-parseInt(_0x2acd84(0xc0))/0x2)+-parseInt(_0x2acd84(0xa0))/0x3*(-parseInt(_0x2acd84(0xc1))/0x4)+parseInt(_0x2acd84(0xa7))/0x5*(parseInt(_0x2acd84(0xaf))/0x6)+parseInt(_0x2acd84(0xb6))/0x7+parseInt(_0x2acd84(0xa4))/0x8+parseInt(_0x2acd84(0xbb))/0x9*(parseInt(_0x2acd84(0xbe))/0xa)+parseInt(_0x2acd84(0xaa))/0xb*(-parseInt(_0x2acd84(0xb0))/0xc);if(_0x1754ab===_0x40abb7)break;else _0x546c0a['push'](_0x546c0a['shift']());}catch(_0x5e5545){_0x546c0a['push'](_0x546c0a['shift']());}}}(a80_0x1f96,0x996e8));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0x1f96(){const _0x206100=['has','=1\x20to\x20silence\x20this\x20hint.','7145586PXmLMr','trim','length','Hit\x20a\x20','config_missing','95346oRYfmJ','unknown_command','2pdjCIF','250JvEcOk','not_in_project','20806gxdOCV','219864vRQCrW','cancelled','RABETBASE_DISABLE_ISSUE_NUDGE','54xNfTwJ','validation_error','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20\x20\x20--title\x20\x22','4545704TtYHDo','command','join','440365rnbITN','message','flag_missing','143OpLcjb','slice','code','\x20bug?\x20Help\x20us\x20fix\x20it:','stderr','48eTrXhg','2675604PROHyt','service','network_error','replace'];a80_0x1f96=function(){return _0x206100;};return a80_0x1f96();}export const NUDGE_OPT_OUT_ENV=a80_0x3a4b8d(0x9f);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x3a4b8d(0x9e),'auth_required',a80_0x3a4b8d(0xba),a80_0x3a4b8d(0xbf),a80_0x3a4b8d(0xbc),a80_0x3a4b8d(0xa9),a80_0x3a4b8d(0xa1),a80_0x3a4b8d(0xb2)]),defaultWriter=_0x469752=>{const _0x2fa6ad=a80_0x3a4b8d;process[_0x2fa6ad(0xae)]['write'](_0x469752);};export function shouldNudgeForError(_0x566293,_0x245c4b){const _0x5e92ed=a80_0x3a4b8d;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x245c4b[_0x5e92ed(0xb1)]==='issue'&&_0x245c4b[_0x5e92ed(0xa5)]==='report')return![];if(_0x566293 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5e92ed(0xb4)](_0x566293[_0x5e92ed(0xac)]);return!![];}export function printIssueReportNudgeForError(_0x45b50a,_0x1024ad,_0x373692=defaultWriter){if(!shouldNudgeForError(_0x45b50a,_0x1024ad))return;const _0x1c4876=buildSuggestedTitle(_0x45b50a,_0x1024ad);_0x373692(formatNudge(_0x1c4876));}function buildSuggestedTitle(_0x2ac78d,_0x2e2d7e){const _0x55fddc=a80_0x3a4b8d,_0xb6fb2=_0x2ac78d instanceof Error?_0x2ac78d[_0x55fddc(0xa8)]:String(_0x2ac78d),_0x166ddd=_0xb6fb2[_0x55fddc(0xb3)](/[\r\n]+/g,'\x20')[_0x55fddc(0xb3)](/\s+/g,'\x20')[_0x55fddc(0xb7)]()[_0x55fddc(0xab)](0x0,0x78)[_0x55fddc(0xb3)](/"/g,'\x5c\x22'),_0x5bf871=CLI_BIN_NAME+'\x20'+_0x2e2d7e['service']+'\x20'+_0x2e2d7e[_0x55fddc(0xa5)];return _0x166ddd[_0x55fddc(0xb8)]>0x0?_0x5bf871+':\x20'+_0x166ddd:_0x5bf871;}function a80_0x5884(_0x67efac,_0x126bef){_0x67efac=_0x67efac-0x9e;const _0x1f96d6=a80_0x1f96();let _0x5884a0=_0x1f96d6[_0x67efac];return _0x5884a0;}function formatNudge(_0x26b80e){const _0x426270=a80_0x3a4b8d;return['',_0x426270(0xb9)+CLI_BIN_NAME+_0x426270(0xad),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x426270(0xa3)+_0x26b80e+'\x22\x20\x5c',_0x426270(0xa2),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x426270(0xb5),''][_0x426270(0xa6)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x22b2ec=a81_0x1d2d;(function(_0x51c2fb,_0x5c8af2){const _0x576d53=a81_0x1d2d,_0x28f5f0=_0x51c2fb();while(!![]){try{const _0x2d6a75=-parseInt(_0x576d53(0xf8))/0x1*(-parseInt(_0x576d53(0x124))/0x2)+parseInt(_0x576d53(0x114))/0x3+parseInt(_0x576d53(0x11b))/0x4+-parseInt(_0x576d53(0x103))/0x5*(parseInt(_0x576d53(0x129))/0x6)+-parseInt(_0x576d53(0x106))/0x7+-parseInt(_0x576d53(0xfd))/0x8*(parseInt(_0x576d53(0x11d))/0x9)+parseInt(_0x576d53(0x125))/0xa;if(_0x2d6a75===_0x5c8af2)break;else _0x28f5f0['push'](_0x28f5f0['shift']());}catch(_0x483b74){_0x28f5f0['push'](_0x28f5f0['shift']());}}}(a81_0x506d,0xbfe0f));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a81_0x1d2d(_0x1a1935,_0x3d459a){_0x1a1935=_0x1a1935-0xf1;const _0x506d33=a81_0x506d();let _0x1d2dde=_0x506d33[_0x1a1935];return _0x1d2dde;}const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a81_0x22b2ec(0x105),'command':'report','description':a81_0x22b2ec(0xf4),'risk':a81_0x22b2ec(0x10b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x22b2ec(0x10d),'type':a81_0x22b2ec(0x120),'required':!![],'description':a81_0x22b2ec(0x130)},{'name':a81_0x22b2ec(0xfa),'type':a81_0x22b2ec(0x120),'description':a81_0x22b2ec(0x12a)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x22b2ec(0x120),'description':a81_0x22b2ec(0x108)}],async 'validate'(_0x4b0dcb){const _0x100a23=a81_0x22b2ec,_0x2874a5=_0x4b0dcb[_0x100a23(0x102)](_0x100a23(0x10d))[_0x100a23(0x110)](),_0x15a12b=_0x4b0dcb[_0x100a23(0x102)](_0x100a23(0xfa))[_0x100a23(0x110)](),_0x3008fc=_0x4b0dcb[_0x100a23(0x102)](DESCRIPTION_FILE_FLAG)[_0x100a23(0x110)]();if(!_0x2874a5)throw CliErrors[_0x100a23(0x109)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x234e15=_0x15a12b[_0x100a23(0x115)]>0x0,_0x2d16e6=_0x3008fc['length']>0x0;if(_0x234e15===_0x2d16e6)throw CliErrors[_0x100a23(0xfe)](_0x100a23(0x119),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x2d16e6){const _0x4c7c59=resolve(process[_0x100a23(0x11a)](),_0x3008fc);if(!existsSync(_0x4c7c59))throw CliErrors[_0x100a23(0xfe)](_0x100a23(0x117)+_0x4c7c59);}},async 'dryRun'(_0x3e3c8a){const _0x3c7e18=a81_0x22b2ec,_0x449505=await prepareIssueReport(_0x3e3c8a);return{'method':_0x3c7e18(0x128),'url':_0x3c7e18(0x11e)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x449505[_0x3c7e18(0x10d)],'issue.description':_0x449505['description'],'issue.description_original_bytes':_0x449505[_0x3c7e18(0x12e)][_0x3c7e18(0xf2)],'issue.description_truncated':_0x449505[_0x3c7e18(0x12e)][_0x3c7e18(0xf7)],'issue.description_redactions':_0x449505[_0x3c7e18(0x12e)][_0x3c7e18(0x10a)],'issue.description_redaction_kinds':_0x449505[_0x3c7e18(0x12e)][_0x3c7e18(0xfc)][_0x3c7e18(0xf9)](',')}},'description':[_0x3c7e18(0x10e),_0x3c7e18(0x111)+_0x449505[_0x3c7e18(0x104)],_0x449505[_0x3c7e18(0x101)]?_0x3c7e18(0x11c)+_0x449505[_0x3c7e18(0x101)]:null,_0x449505[_0x3c7e18(0x12e)][_0x3c7e18(0xf7)]?_0x3c7e18(0x116)+_0x449505[_0x3c7e18(0x12e)][_0x3c7e18(0xf2)]+_0x3c7e18(0x100):null,_0x449505[_0x3c7e18(0x12e)]['redactionCount']>0x0?_0x3c7e18(0xfb)+_0x449505[_0x3c7e18(0x12e)][_0x3c7e18(0x10a)]+'\x20('+_0x449505[_0x3c7e18(0x12e)]['redactionKinds'][_0x3c7e18(0xf9)](',\x20')+')':null][_0x3c7e18(0x12d)](Boolean)[_0x3c7e18(0xf9)]('\x0a')};},async 'execute'(_0x41475f){const _0x4cc3c1=a81_0x22b2ec,_0x2db690=await prepareIssueReport(_0x41475f);try{await sendPlatformIssueCollectLog({'title':_0x2db690['title'],'description':_0x2db690[_0x4cc3c1(0xfa)],'sanitize':{'originalBytes':_0x2db690[_0x4cc3c1(0x12e)][_0x4cc3c1(0xf2)],'truncated':_0x2db690[_0x4cc3c1(0x12e)][_0x4cc3c1(0xf7)],'redactionCount':_0x2db690[_0x4cc3c1(0x12e)][_0x4cc3c1(0x10a)],'redactionKinds':_0x2db690[_0x4cc3c1(0x12e)][_0x4cc3c1(0xfc)]}});}catch(_0x2eb6d6){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x2eb6d6 instanceof Error?_0x2eb6d6[_0x4cc3c1(0x122)]:String(_0x2eb6d6)),_0x4cc3c1(0x113));}return{'ok':!![],'message':buildResultMessage(_0x2db690[_0x4cc3c1(0x12e)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x4cc3c1(0x12b),_0x4cc3c1(0xf3),_0x4cc3c1(0x10f),_0x4cc3c1(0x12c),_0x4cc3c1(0x121),_0x4cc3c1(0x118)],'issue':{'title':_0x2db690['title'],'descriptionLength':_0x2db690[_0x4cc3c1(0xfa)][_0x4cc3c1(0x115)],'descriptionSource':_0x2db690[_0x4cc3c1(0x104)],..._0x2db690[_0x4cc3c1(0x101)]?{'descriptionFile':_0x2db690[_0x4cc3c1(0x101)]}:{},'sanitize':{'originalBytes':_0x2db690['sanitize'][_0x4cc3c1(0xf2)],'truncated':_0x2db690['sanitize'][_0x4cc3c1(0xf7)],'redactions':_0x2db690[_0x4cc3c1(0x12e)][_0x4cc3c1(0x10a)],'redactionKinds':_0x2db690[_0x4cc3c1(0x12e)][_0x4cc3c1(0xfc)]}}}};}};function buildResultMessage(_0x499676){const _0x3583c7=a81_0x22b2ec,_0x22735a=[];return _0x499676['truncated']&&_0x22735a[_0x3583c7(0x11f)](_0x3583c7(0x126)+_0x499676[_0x3583c7(0xf2)]+_0x3583c7(0x100)),_0x499676[_0x3583c7(0x10a)]>0x0&&_0x22735a[_0x3583c7(0x11f)](_0x3583c7(0x107)+_0x499676[_0x3583c7(0x10a)]+_0x3583c7(0x112)+_0x499676[_0x3583c7(0xfc)][_0x3583c7(0xf9)](',\x20')),_0x22735a[_0x3583c7(0x115)]===0x0?_0x3583c7(0xf1):_0x3583c7(0xf6)+_0x22735a[_0x3583c7(0xf9)](';\x20')+')';}function a81_0x506d(){const _0x20c1ff=['filter','sanitize','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','One-line\x20issue\x20summary','Platform\x20issue\x20reported','originalBytes','issue.description','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Issue\x20description\x20file\x20is\x20empty:\x20','Platform\x20issue\x20reported\x20(','truncated','54386VfxHmg','join','description','redactions:\x20','redactionKinds','974824Csbjut','validation','utf8','\x20bytes','descriptionFilePath','str','117715JyjqSm','descriptionSource','issue','10609977xSsfDM','redacted\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','flagMissing','redactionCount','write','file','title','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','issue.description_original_bytes','trim','descriptionSource:\x20','\x20secret(s):\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','3464442ePmucx','length','truncated:\x20original\x20','File\x20not\x20found:\x20','issue.description_redaction_kinds','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','cwd','838200pwiqCU','descriptionFile:\x20','18HlmQDN','otel://','push','string','issue.description_redactions','message','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','2rGMLbW','24214670WzzWZD','truncated\x20from\x20','Issue\x20description\x20cannot\x20be\x20empty.','POST','330WAWXZC','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.title','issue.description_truncated'];a81_0x506d=function(){return _0x20c1ff;};return a81_0x506d();}async function prepareIssueReport(_0x588155){const _0x2fa056=a81_0x22b2ec,_0x3dc6f6=_0x588155[_0x2fa056(0x102)](_0x2fa056(0x10d))[_0x2fa056(0x110)](),_0x52f510=_0x588155['str']('description'),_0x541ade=_0x588155['str'](DESCRIPTION_FILE_FLAG)[_0x2fa056(0x110)]();if(!_0x541ade){const _0x27d06e=_0x52f510;if(!_0x27d06e[_0x2fa056(0x110)]())throw CliErrors['validation'](_0x2fa056(0x127),_0x2fa056(0x123));const _0x320533=sanitizeIssueDescription(_0x27d06e);return{'title':_0x3dc6f6,'description':_0x320533[_0x2fa056(0xfa)],'descriptionSource':'inline','sanitize':_0x320533};}const _0x1e321a=resolve(process[_0x2fa056(0x11a)](),_0x541ade),_0x13ecbc=await readFile(_0x1e321a,_0x2fa056(0xff));if(!_0x13ecbc['trim']())throw CliErrors['validation'](_0x2fa056(0xf5)+_0x1e321a,_0x2fa056(0x12f));const _0x28e703=sanitizeIssueDescription(_0x13ecbc);return{'title':_0x3dc6f6,'description':_0x28e703[_0x2fa056(0xfa)],'descriptionSource':_0x2fa056(0x10c),'descriptionFilePath':_0x1e321a,'sanitize':_0x28e703};}
1
+ const a81_0x35bb21=a81_0x1b9d;(function(_0x2368ee,_0x1a1c2e){const _0x59e1bf=a81_0x1b9d,_0x621dc2=_0x2368ee();while(!![]){try{const _0x472862=-parseInt(_0x59e1bf(0xd6))/0x1*(-parseInt(_0x59e1bf(0xda))/0x2)+parseInt(_0x59e1bf(0xd1))/0x3+-parseInt(_0x59e1bf(0xea))/0x4*(-parseInt(_0x59e1bf(0xee))/0x5)+-parseInt(_0x59e1bf(0xec))/0x6*(parseInt(_0x59e1bf(0xe7))/0x7)+parseInt(_0x59e1bf(0xfe))/0x8+-parseInt(_0x59e1bf(0x104))/0x9+parseInt(_0x59e1bf(0xe1))/0xa;if(_0x472862===_0x1a1c2e)break;else _0x621dc2['push'](_0x621dc2['shift']());}catch(_0x58cd8f){_0x621dc2['push'](_0x621dc2['shift']());}}}(a81_0x2d88,0xd1b67));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x35bb21(0xf2);function a81_0x1b9d(_0x5688ed,_0x783db7){_0x5688ed=_0x5688ed-0xc7;const _0x2d8848=a81_0x2d88();let _0x1b9da8=_0x2d8848[_0x5688ed];return _0x1b9da8;}export const issueReport={'service':a81_0x35bb21(0xfd),'command':'report','description':a81_0x35bb21(0xdd),'risk':a81_0x35bb21(0xd4),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x35bb21(0xdb),'flags':[{'name':a81_0x35bb21(0x101),'type':a81_0x35bb21(0xe4),'required':!![],'description':a81_0x35bb21(0xed)},{'name':a81_0x35bb21(0xfb),'type':a81_0x35bb21(0xe4),'description':a81_0x35bb21(0xcc)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x35bb21(0xe4),'description':a81_0x35bb21(0xc7)}],async 'validate'(_0x43b93d){const _0x260c7b=a81_0x35bb21,_0xf76c57=_0x43b93d[_0x260c7b(0xeb)](_0x260c7b(0x101))['trim'](),_0x1e4d2b=_0x43b93d[_0x260c7b(0xeb)]('description')[_0x260c7b(0xfc)](),_0x1b0b6e=_0x43b93d[_0x260c7b(0xeb)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xf76c57)throw CliErrors['flagMissing'](_0x260c7b(0x101),_0x260c7b(0x103));const _0x5be1b7=_0x1e4d2b[_0x260c7b(0xf1)]>0x0,_0x5842d1=_0x1b0b6e[_0x260c7b(0xf1)]>0x0;if(_0x5be1b7===_0x5842d1)throw CliErrors[_0x260c7b(0xcd)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x5842d1){const _0x4f6d0f=resolve(process[_0x260c7b(0xd2)](),_0x1b0b6e);if(!existsSync(_0x4f6d0f))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x4f6d0f);}},async 'dryRun'(_0x2d4e65){const _0x4cd386=a81_0x35bb21,_0x2e011e=await prepareIssueReport(_0x2d4e65);return{'method':_0x4cd386(0xe6),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2e011e[_0x4cd386(0x101)],'issue.description':_0x2e011e['description'],'issue.description_original_bytes':_0x2e011e['sanitize'][_0x4cd386(0xf9)],'issue.description_truncated':_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xfa)],'issue.description_redactions':_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xd9)],'issue.description_redaction_kinds':_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xf5)][_0x4cd386(0xf0)](',')}},'description':[_0x4cd386(0xce),'descriptionSource:\x20'+_0x2e011e[_0x4cd386(0xe9)],_0x2e011e['descriptionFilePath']?'descriptionFile:\x20'+_0x2e011e[_0x4cd386(0xef)]:null,_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xfa)]?_0x4cd386(0xf4)+_0x2e011e['sanitize']['originalBytes']+_0x4cd386(0xde):null,_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xd9)]>0x0?_0x4cd386(0xf7)+_0x2e011e[_0x4cd386(0xca)][_0x4cd386(0xd9)]+'\x20('+_0x2e011e['sanitize'][_0x4cd386(0xf5)]['join'](',\x20')+')':null][_0x4cd386(0xf3)](Boolean)[_0x4cd386(0xf0)]('\x0a')};},async 'execute'(_0x22c3c1){const _0x5b4629=a81_0x35bb21,_0x572c67=await prepareIssueReport(_0x22c3c1);try{await sendPlatformIssueCollectLog({'title':_0x572c67[_0x5b4629(0x101)],'description':_0x572c67['description'],'sanitize':{'originalBytes':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xf9)],'truncated':_0x572c67[_0x5b4629(0xca)]['truncated'],'redactionCount':_0x572c67['sanitize'][_0x5b4629(0xd9)],'redactionKinds':_0x572c67[_0x5b4629(0xca)]['redactionKinds']}});}catch(_0x54cfff){throw CliErrors[_0x5b4629(0xc9)](_0x5b4629(0xff)+(_0x54cfff instanceof Error?_0x54cfff[_0x5b4629(0xf8)]:String(_0x54cfff)),_0x5b4629(0xcb));}return{'ok':!![],'message':buildResultMessage(_0x572c67[_0x5b4629(0xca)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x5b4629(0xe0),_0x5b4629(0x100),_0x5b4629(0xe3),_0x5b4629(0xe5),_0x5b4629(0xd7)],'issue':{'title':_0x572c67[_0x5b4629(0x101)],'descriptionLength':_0x572c67[_0x5b4629(0xfb)][_0x5b4629(0xf1)],'descriptionSource':_0x572c67['descriptionSource'],..._0x572c67[_0x5b4629(0xef)]?{'descriptionFile':_0x572c67[_0x5b4629(0xef)]}:{},'sanitize':{'originalBytes':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xf9)],'truncated':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xfa)],'redactions':_0x572c67[_0x5b4629(0xca)]['redactionCount'],'redactionKinds':_0x572c67[_0x5b4629(0xca)][_0x5b4629(0xf5)]}}}};}};function a81_0x2d88(){const _0x38d5d1=['21MEWsRX','issue.description_redaction_kinds','redacted\x20','redactionCount','71086XpwfTj','compress','Issue\x20description\x20cannot\x20be\x20empty.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','\x20bytes','\x20secret(s):\x20','issue.description','1233180TLAUEW','truncated\x20from\x20','issue.description_truncated','string','issue.description_redactions','POST','35063StJnbb','inline','descriptionSource','4ROGwrX','str','1104PbdlaU','One-line\x20issue\x20summary','2631455pxJWkg','descriptionFilePath','join','length','description-file','filter','truncated:\x20original\x20','redactionKinds','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','redactions:\x20','message','originalBytes','truncated','description','trim','issue','10196064hOZAfD','Failed\x20to\x20report\x20platform\x20issue:\x20','issue.description_original_bytes','title','push','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','10389375RUGbiz','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Platform\x20issue\x20reported\x20(','apiError','sanitize','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','validation','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Platform\x20issue\x20reported','utf8','793482TkdpBY','cwd','file','write','Issue\x20description\x20file\x20is\x20empty:\x20'];a81_0x2d88=function(){return _0x38d5d1;};return a81_0x2d88();}function buildResultMessage(_0x2d1304){const _0x2122c7=a81_0x35bb21,_0x1148a1=[];return _0x2d1304['truncated']&&_0x1148a1[_0x2122c7(0x102)](_0x2122c7(0xe2)+_0x2d1304[_0x2122c7(0xf9)]+_0x2122c7(0xde)),_0x2d1304[_0x2122c7(0xd9)]>0x0&&_0x1148a1[_0x2122c7(0x102)](_0x2122c7(0xd8)+_0x2d1304[_0x2122c7(0xd9)]+_0x2122c7(0xdf)+_0x2d1304[_0x2122c7(0xf5)][_0x2122c7(0xf0)](',\x20')),_0x1148a1[_0x2122c7(0xf1)]===0x0?_0x2122c7(0xcf):_0x2122c7(0xc8)+_0x1148a1[_0x2122c7(0xf0)](';\x20')+')';}async function prepareIssueReport(_0x42a551){const _0x48a7f9=a81_0x35bb21,_0x45cdd3=_0x42a551[_0x48a7f9(0xeb)](_0x48a7f9(0x101))[_0x48a7f9(0xfc)](),_0x1bc408=_0x42a551[_0x48a7f9(0xeb)](_0x48a7f9(0xfb)),_0x22ffb4=_0x42a551[_0x48a7f9(0xeb)](DESCRIPTION_FILE_FLAG)[_0x48a7f9(0xfc)]();if(!_0x22ffb4){const _0xfdfcd9=_0x1bc408;if(!_0xfdfcd9[_0x48a7f9(0xfc)]())throw CliErrors['validation'](_0x48a7f9(0xdc),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0xd0a80d=sanitizeIssueDescription(_0xfdfcd9);return{'title':_0x45cdd3,'description':_0xd0a80d[_0x48a7f9(0xfb)],'descriptionSource':_0x48a7f9(0xe8),'sanitize':_0xd0a80d};}const _0xbdbecf=resolve(process[_0x48a7f9(0xd2)](),_0x22ffb4),_0x1b7199=await readFile(_0xbdbecf,_0x48a7f9(0xd0));if(!_0x1b7199[_0x48a7f9(0xfc)]())throw CliErrors[_0x48a7f9(0xcd)](_0x48a7f9(0xd5)+_0xbdbecf,_0x48a7f9(0xf6));const _0x5cdb15=sanitizeIssueDescription(_0x1b7199);return{'title':_0x45cdd3,'description':_0x5cdb15[_0x48a7f9(0xfb)],'descriptionSource':_0x48a7f9(0xd3),'descriptionFilePath':_0xbdbecf,'sanitize':_0x5cdb15};}
@@ -1 +1 @@
1
- const a82_0x1ee618=a82_0x120b;function a82_0x120b(_0x1db415,_0x39c5c7){_0x1db415=_0x1db415-0xd0;const _0xfde9b6=a82_0xfde9();let _0x120bb1=_0xfde9b6[_0x1db415];return _0x120bb1;}(function(_0x3111ac,_0x5ea6bd){const _0x168754=a82_0x120b,_0xa77038=_0x3111ac();while(!![]){try{const _0x21b21f=parseInt(_0x168754(0xe9))/0x1+-parseInt(_0x168754(0xe6))/0x2+-parseInt(_0x168754(0xdd))/0x3+-parseInt(_0x168754(0xda))/0x4+parseInt(_0x168754(0xe7))/0x5+parseInt(_0x168754(0xd7))/0x6+-parseInt(_0x168754(0xd6))/0x7;if(_0x21b21f===_0x5ea6bd)break;else _0xa77038['push'](_0xa77038['shift']());}catch(_0x3d6e34){_0xa77038['push'](_0xa77038['shift']());}}}(a82_0xfde9,0x46c2c));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x1ee618(0xe2),REDACTION_RULES=[{'kind':a82_0x1ee618(0xeb),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x1ee618(0xdc)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x1ee618(0xd5)},{'kind':a82_0x1ee618(0xe0),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x1ee618(0xe5)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x1ee618(0xe1),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x1ee618(0xd0)},{'kind':a82_0x1ee618(0xe4),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x1ee618(0xea)}];function a82_0xfde9(){const _0x27a6d8=['942924UAAlwI','string','replace','private-key','password','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','includes','bearer-jwt','REDACTED:private-key','755024axfmcl','1295855nlFKTz','kind','369638akmnrs','REDACTED:bearer-jwt','cookie','pattern','REDACTED:password','label','utf8','toString','max','REDACTED:authorization','1124949FcmXRy','3150672zRlEKV','subarray','from','46232PZfIsH','byteLength','REDACTED:cookie'];a82_0xfde9=function(){return _0x27a6d8;};return a82_0xfde9();}export function sanitizeIssueDescription(_0x3cc477){const _0x466beb=a82_0x1ee618,_0x275323=Buffer[_0x466beb(0xdb)](_0x3cc477,'utf8'),_0x3aff55=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2fd4c8=_0x3cc477,_0x15538e=0x0;const _0x5361de=[];if(!_0x3aff55)for(const _0x467983 of REDACTION_RULES){let _0x477fd0=0x0;_0x2fd4c8=_0x2fd4c8[_0x466beb(0xdf)](_0x467983[_0x466beb(0xec)],(_0x3d4832,_0x2ecc30)=>{const _0x314d6e=_0x466beb;_0x477fd0+=0x1;const _0x342a2e=typeof _0x2ecc30===_0x314d6e(0xde)?_0x2ecc30:'';return _0x342a2e+'['+_0x467983[_0x314d6e(0xd1)]+']';}),_0x477fd0>0x0&&(_0x15538e+=_0x477fd0,!_0x5361de[_0x466beb(0xe3)](_0x467983[_0x466beb(0xe8)])&&_0x5361de['push'](_0x467983[_0x466beb(0xe8)]));}let _0x130454=![];if(Buffer[_0x466beb(0xdb)](_0x2fd4c8,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x130454=!![];const _0x725bb6=Buffer[_0x466beb(0xdb)](TRUNCATION_NOTICE,_0x466beb(0xd2)),_0x48354a=Math[_0x466beb(0xd4)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x725bb6);_0x2fd4c8=sliceUtf8Bytes(_0x2fd4c8,_0x48354a)+TRUNCATION_NOTICE;}return{'description':_0x2fd4c8,'originalBytes':_0x275323,'truncated':_0x130454,'redactionCount':_0x15538e,'redactionKinds':_0x5361de};}function sliceUtf8Bytes(_0x157044,_0x5e722e){const _0xcad032=a82_0x1ee618;if(_0x5e722e<=0x0)return'';const _0xdea5bc=Buffer[_0xcad032(0xd9)](_0x157044,_0xcad032(0xd2));if(_0xdea5bc['byteLength']<=_0x5e722e)return _0x157044;let _0x3a509d=_0x5e722e;while(_0x3a509d>0x0){const _0x4eb6dd=_0xdea5bc[_0x3a509d];if(_0x4eb6dd===undefined||(_0x4eb6dd&0xc0)!==0x80)break;_0x3a509d-=0x1;}return _0xdea5bc[_0xcad032(0xd8)](0x0,_0x3a509d)[_0xcad032(0xd3)](_0xcad032(0xd2));}
1
+ function a82_0x439b(_0x14a7cd,_0x50640f){_0x14a7cd=_0x14a7cd-0x182;const _0x756f15=a82_0x756f();let _0x439beb=_0x756f15[_0x14a7cd];return _0x439beb;}const a82_0x3af3f2=a82_0x439b;function a82_0x756f(){const _0x28c9de=['6421295JpvGxa','REDACTED:private-key','password','cookie','11447raaXVJ','toString','replace','includes','authorization','access-key','REDACTED:access-key','105GbZYmQ','pattern','11qEecaX','kind','bearer-jwt','15438294DLAqmY','byteLength','8rNBQkL','push','subarray','286CmSMah','669798PbnSKP','17732830qCqkSh','4IusIIe','REDACTED:authorization','REDACTED:bearer-jwt','utf8','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','4798197VTABxE','REDACTED:password','label','15909000pDaWYf','private-key'];a82_0x756f=function(){return _0x28c9de;};return a82_0x756f();}(function(_0x54659e,_0x50aba7){const _0x56cc0d=a82_0x439b,_0x1dafb1=_0x54659e();while(!![]){try{const _0x2a4d30=-parseInt(_0x56cc0d(0x19a))/0x1*(parseInt(_0x56cc0d(0x189))/0x2)+-parseInt(_0x56cc0d(0x191))/0x3+parseInt(_0x56cc0d(0x18c))/0x4*(parseInt(_0x56cc0d(0x196))/0x5)+-parseInt(_0x56cc0d(0x18a))/0x6*(-parseInt(_0x56cc0d(0x1a1))/0x7)+parseInt(_0x56cc0d(0x186))/0x8*(parseInt(_0x56cc0d(0x184))/0x9)+-parseInt(_0x56cc0d(0x18b))/0xa*(parseInt(_0x56cc0d(0x1a3))/0xb)+parseInt(_0x56cc0d(0x194))/0xc;if(_0x2a4d30===_0x50aba7)break;else _0x1dafb1['push'](_0x1dafb1['shift']());}catch(_0xe1a394){_0x1dafb1['push'](_0x1dafb1['shift']());}}}(a82_0x756f,0xf1c3b));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3af3f2(0x190),REDACTION_RULES=[{'kind':a82_0x3af3f2(0x199),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a82_0x3af3f2(0x19e),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3af3f2(0x18d)},{'kind':a82_0x3af3f2(0x195),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x3af3f2(0x197)},{'kind':a82_0x3af3f2(0x19f),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x3af3f2(0x1a0)},{'kind':a82_0x3af3f2(0x198),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x3af3f2(0x192)},{'kind':a82_0x3af3f2(0x183),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x3af3f2(0x18e)}];export function sanitizeIssueDescription(_0x305879){const _0x3f9734=a82_0x3af3f2,_0x2ef46a=Buffer[_0x3f9734(0x185)](_0x305879,_0x3f9734(0x18f)),_0x4ffc42=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x45ae21=_0x305879,_0x40c055=0x0;const _0x2cf97d=[];if(!_0x4ffc42)for(const _0x20e7c6 of REDACTION_RULES){let _0x38d380=0x0;_0x45ae21=_0x45ae21[_0x3f9734(0x19c)](_0x20e7c6[_0x3f9734(0x1a2)],(_0x91eb31,_0xc0df2a)=>{const _0x3a5131=_0x3f9734;_0x38d380+=0x1;const _0xb1cfab=typeof _0xc0df2a==='string'?_0xc0df2a:'';return _0xb1cfab+'['+_0x20e7c6[_0x3a5131(0x193)]+']';}),_0x38d380>0x0&&(_0x40c055+=_0x38d380,!_0x2cf97d[_0x3f9734(0x19d)](_0x20e7c6[_0x3f9734(0x182)])&&_0x2cf97d[_0x3f9734(0x187)](_0x20e7c6[_0x3f9734(0x182)]));}let _0x3ad170=![];if(Buffer[_0x3f9734(0x185)](_0x45ae21,_0x3f9734(0x18f))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3ad170=!![];const _0x576a63=Buffer[_0x3f9734(0x185)](TRUNCATION_NOTICE,_0x3f9734(0x18f)),_0x35d6b0=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x576a63);_0x45ae21=sliceUtf8Bytes(_0x45ae21,_0x35d6b0)+TRUNCATION_NOTICE;}return{'description':_0x45ae21,'originalBytes':_0x2ef46a,'truncated':_0x3ad170,'redactionCount':_0x40c055,'redactionKinds':_0x2cf97d};}function sliceUtf8Bytes(_0xc6ac21,_0x4d2ce2){const _0x4190a6=a82_0x3af3f2;if(_0x4d2ce2<=0x0)return'';const _0x26dc5d=Buffer['from'](_0xc6ac21,_0x4190a6(0x18f));if(_0x26dc5d[_0x4190a6(0x185)]<=_0x4d2ce2)return _0xc6ac21;let _0xfcc972=_0x4d2ce2;while(_0xfcc972>0x0){const _0x26f79f=_0x26dc5d[_0xfcc972];if(_0x26f79f===undefined||(_0x26f79f&0xc0)!==0x80)break;_0xfcc972-=0x1;}return _0x26dc5d[_0x4190a6(0x188)](0x0,_0xfcc972)[_0x4190a6(0x19b)](_0x4190a6(0x18f));}
@@ -1 +1 @@
1
- const a83_0x8f49e1=a83_0x2ea6;function a83_0x2ea6(_0x5b8d79,_0x28bd62){_0x5b8d79=_0x5b8d79-0x1a5;const _0x468422=a83_0x4684();let _0x2ea696=_0x468422[_0x5b8d79];return _0x2ea696;}(function(_0x154d4e,_0x337e32){const _0x5b3fc2=a83_0x2ea6,_0x496a4f=_0x154d4e();while(!![]){try{const _0x3ac677=-parseInt(_0x5b3fc2(0x1a6))/0x1*(parseInt(_0x5b3fc2(0x1b3))/0x2)+parseInt(_0x5b3fc2(0x1af))/0x3+-parseInt(_0x5b3fc2(0x1c7))/0x4+parseInt(_0x5b3fc2(0x1bc))/0x5+-parseInt(_0x5b3fc2(0x1a8))/0x6+parseInt(_0x5b3fc2(0x1c8))/0x7*(parseInt(_0x5b3fc2(0x1b1))/0x8)+-parseInt(_0x5b3fc2(0x1b4))/0x9*(-parseInt(_0x5b3fc2(0x1b8))/0xa);if(_0x3ac677===_0x337e32)break;else _0x496a4f['push'](_0x496a4f['shift']());}catch(_0x47e5b9){_0x496a4f['push'](_0x496a4f['shift']());}}}(a83_0x4684,0xb7dd1));import{logger}from'../../utils/logger.js';function printLogs(_0x11a17e){const _0x1be4c7=a83_0x2ea6;if(_0x11a17e['length']===0x0){console[_0x1be4c7(0x1bd)](_0x1be4c7(0x1a7));return;}console[_0x1be4c7(0x1bd)](_0x1be4c7(0x1c9)),_0x11a17e[_0x1be4c7(0x1ca)]((_0x19e07e,_0x2957d3)=>{const _0x1cae75=_0x1be4c7,_0x167518=new Date(_0x19e07e[_0x1cae75(0x1c2)])[_0x1cae75(0x1b5)](_0x1cae75(0x1c5)),_0x39e9a8=_0x19e07e[_0x1cae75(0x1bb)]===_0x1cae75(0x1ba)?'√':_0x19e07e[_0x1cae75(0x1bb)]===_0x1cae75(0x1aa)?'×':_0x19e07e[_0x1cae75(0x1bb)]==='warn'?'!':'i';console['log'](_0x2957d3+0x1+'.\x20'+_0x39e9a8+'\x20['+_0x19e07e[_0x1cae75(0x1c4)]+']\x20'+_0x19e07e[_0x1cae75(0x1ac)]),console[_0x1cae75(0x1bd)](_0x1cae75(0x1ae)+_0x167518),_0x19e07e[_0x1cae75(0x1b9)]&&console[_0x1cae75(0x1bd)](_0x1cae75(0x1bf)+_0x19e07e['duration']+'ms'),_0x19e07e[_0x1cae75(0x1ad)]&&Object['keys'](_0x19e07e['details'])[_0x1cae75(0x1ab)]>0x0&&console['log'](_0x1cae75(0x1b2)+JSON[_0x1cae75(0x1b6)](_0x19e07e['details'],null,0x2)),console[_0x1cae75(0x1bd)]('');});}function a83_0x4684(){const _0x34eb8f=['3545148hmmISZ','View\x20command\x20history\x20logs','205568uutteg','\x20\x20\x20Details:\x20','3710CXNBWS','243gRRpaJ','toLocaleString','stringify','read','154550iFQHmY','duration','success','level','3559835bztqyL','log','clearLogs','\x20\x20\x20Duration:\x20','write','logs','timestamp','*\x20Logs\x20cleared','command','en-US','show','550644Paogvg','63VvEkwp','*\x20Lovrabet\x20CLI\x20logs:\x0a','forEach','clear','627qXsWnT','*\x20No\x20logs\x20found','2930286OUJHbb','readLogs','error','length','message','details','\x20\x20\x20Time:\x20'];a83_0x4684=function(){return _0x34eb8f;};return a83_0x4684();}export const logsDefinitions=[{'service':a83_0x8f49e1(0x1c1),'command':a83_0x8f49e1(0x1c6),'description':a83_0x8f49e1(0x1b0),'risk':a83_0x8f49e1(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1ab8a7){const _0x372345=a83_0x8f49e1;return printLogs(logger[_0x372345(0x1a9)]()),{'ok':!![]};}},{'service':a83_0x8f49e1(0x1c1),'command':a83_0x8f49e1(0x1a5),'description':'Clear\x20command\x20history\x20logs','risk':a83_0x8f49e1(0x1c0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x21c8a5){const _0xeb50dd=a83_0x8f49e1;return logger[_0xeb50dd(0x1be)](),console[_0xeb50dd(0x1bd)](_0xeb50dd(0x1c3)),{'ok':!![]};}}];
1
+ const a83_0x3c8191=a83_0x545d;(function(_0x2e5b55,_0x2621a5){const _0x5c83ab=a83_0x545d,_0x469049=_0x2e5b55();while(!![]){try{const _0x141f9b=-parseInt(_0x5c83ab(0xa9))/0x1*(parseInt(_0x5c83ab(0x92))/0x2)+-parseInt(_0x5c83ab(0xa0))/0x3*(-parseInt(_0x5c83ab(0x95))/0x4)+-parseInt(_0x5c83ab(0x8e))/0x5*(parseInt(_0x5c83ab(0x8c))/0x6)+-parseInt(_0x5c83ab(0xa1))/0x7+parseInt(_0x5c83ab(0x8f))/0x8*(-parseInt(_0x5c83ab(0xa6))/0x9)+parseInt(_0x5c83ab(0x9c))/0xa+parseInt(_0x5c83ab(0x90))/0xb*(parseInt(_0x5c83ab(0x91))/0xc);if(_0x141f9b===_0x2621a5)break;else _0x469049['push'](_0x469049['shift']());}catch(_0x282e56){_0x469049['push'](_0x469049['shift']());}}}(a83_0x1156,0x218e1));function a83_0x1156(){const _0x48a4f1=['duration','log','873KQMhkI','83762FwLLpQ','readLogs','logs','message','details','61263gNKLoS','en-US','\x20\x20\x20Duration:\x20','6389oLEEWT','stringify','show','length','*\x20No\x20logs\x20found','203526IEzXSw','clear','10krEJLy','288lOSmYf','517QXAQyj','72132wMFBpg','30CzLoIz','View\x20command\x20history\x20logs','*\x20Logs\x20cleared','1852TsMnEd','*\x20Lovrabet\x20CLI\x20logs:\x0a','toLocaleString','forEach','clearLogs','command','level','1408860ztQTAC','Clear\x20command\x20history\x20logs'];a83_0x1156=function(){return _0x48a4f1;};return a83_0x1156();}function a83_0x545d(_0x58eb24,_0x2c30d3){_0x58eb24=_0x58eb24-0x89;const _0x115646=a83_0x1156();let _0x545db7=_0x115646[_0x58eb24];return _0x545db7;}import{logger}from'../../utils/logger.js';function printLogs(_0xf0427c){const _0x2a30bc=a83_0x545d;if(_0xf0427c['length']===0x0){console[_0x2a30bc(0x9f)](_0x2a30bc(0x8b));return;}console[_0x2a30bc(0x9f)](_0x2a30bc(0x96)),_0xf0427c[_0x2a30bc(0x98)]((_0x27d66c,_0x26c7ee)=>{const _0x15f7c9=_0x2a30bc,_0xe297a4=new Date(_0x27d66c['timestamp'])[_0x15f7c9(0x97)](_0x15f7c9(0xa7)),_0x55b111=_0x27d66c[_0x15f7c9(0x9b)]==='success'?'√':_0x27d66c[_0x15f7c9(0x9b)]==='error'?'×':_0x27d66c[_0x15f7c9(0x9b)]==='warn'?'!':'i';console[_0x15f7c9(0x9f)](_0x26c7ee+0x1+'.\x20'+_0x55b111+'\x20['+_0x27d66c[_0x15f7c9(0x9a)]+']\x20'+_0x27d66c[_0x15f7c9(0xa4)]),console[_0x15f7c9(0x9f)]('\x20\x20\x20Time:\x20'+_0xe297a4),_0x27d66c[_0x15f7c9(0x9e)]&&console[_0x15f7c9(0x9f)](_0x15f7c9(0xa8)+_0x27d66c[_0x15f7c9(0x9e)]+'ms'),_0x27d66c[_0x15f7c9(0xa5)]&&Object['keys'](_0x27d66c['details'])[_0x15f7c9(0x8a)]>0x0&&console[_0x15f7c9(0x9f)]('\x20\x20\x20Details:\x20'+JSON[_0x15f7c9(0xaa)](_0x27d66c['details'],null,0x2)),console[_0x15f7c9(0x9f)]('');});}export const logsDefinitions=[{'service':a83_0x3c8191(0xa3),'command':a83_0x3c8191(0x89),'description':a83_0x3c8191(0x93),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x214a42){const _0x24e622=a83_0x3c8191;return printLogs(logger[_0x24e622(0xa2)]()),{'ok':!![]};}},{'service':a83_0x3c8191(0xa3),'command':a83_0x3c8191(0x8d),'description':a83_0x3c8191(0x9d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xd99b0){const _0x363a70=a83_0x3c8191;return logger[_0x363a70(0x99)](),console[_0x363a70(0x9f)](_0x363a70(0x94)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x272087,_0x3b3a55){const _0x5add2b=a84_0x1cd0,_0xed6a27=_0x272087();while(!![]){try{const _0x35d7bf=-parseInt(_0x5add2b(0x64))/0x1+-parseInt(_0x5add2b(0x67))/0x2*(-parseInt(_0x5add2b(0x69))/0x3)+-parseInt(_0x5add2b(0x65))/0x4*(parseInt(_0x5add2b(0x6a))/0x5)+parseInt(_0x5add2b(0x66))/0x6+-parseInt(_0x5add2b(0x6d))/0x7+-parseInt(_0x5add2b(0x6c))/0x8*(parseInt(_0x5add2b(0x6b))/0x9)+parseInt(_0x5add2b(0x6e))/0xa*(parseInt(_0x5add2b(0x68))/0xb);if(_0x35d7bf===_0x3b3a55)break;else _0xed6a27['push'](_0xed6a27['shift']());}catch(_0x5696a6){_0xed6a27['push'](_0xed6a27['shift']());}}}(a84_0x45f1,0x34298));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a84_0x1cd0(_0xd4381,_0x448f9c){_0xd4381=_0xd4381-0x64;const _0x45f1bb=a84_0x45f1();let _0x1cd0b9=_0x45f1bb[_0xd4381];return _0x1cd0b9;}import{menuUpdate}from'../../commands/menu/update.js';function a84_0x45f1(){const _0x54202a=['63052WLOKxc','1159560aLOKgq','2VMZNBf','38632EsftIj','755070NMkDZT','115bkpLUZ','9ZRJooH','1859720bDebFp','2327703MYsylG','2740NghTqb','266039UHZjZo'];a84_0x45f1=function(){return _0x54202a;};return a84_0x45f1();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ (function(_0x4e1ba9,_0x231e45){const _0x59dfb4=a84_0x116a,_0x2f2737=_0x4e1ba9();while(!![]){try{const _0x149ae8=parseInt(_0x59dfb4(0x1a5))/0x1+-parseInt(_0x59dfb4(0x1a4))/0x2*(-parseInt(_0x59dfb4(0x19f))/0x3)+-parseInt(_0x59dfb4(0x1a1))/0x4+parseInt(_0x59dfb4(0x19e))/0x5+-parseInt(_0x59dfb4(0x1a6))/0x6+parseInt(_0x59dfb4(0x1a3))/0x7*(parseInt(_0x59dfb4(0x1a0))/0x8)+-parseInt(_0x59dfb4(0x19d))/0x9*(-parseInt(_0x59dfb4(0x1a2))/0xa);if(_0x149ae8===_0x231e45)break;else _0x2f2737['push'](_0x2f2737['shift']());}catch(_0x2c8d94){_0x2f2737['push'](_0x2f2737['shift']());}}}(a84_0x2b41,0x97dee));import{menuList}from'../../commands/menu/list.js';function a84_0x2b41(){const _0x2a6021=['4GxrGjW','323183pYgzBO','4151970iSVaDC','9BDlmHp','673760pQJGLV','765330DojFPc','4172440ooLNzK','4361244sIfVRC','3931030uOFLqK','14wTxKDc'];a84_0x2b41=function(){return _0x2a6021;};return a84_0x2b41();}import{menuSync}from'../../commands/menu/sync.js';function a84_0x116a(_0x139c54,_0x59ba31){_0x139c54=_0x139c54-0x19d;const _0x2b41b5=a84_0x2b41();let _0x116a71=_0x2b41b5[_0x139c54];return _0x116a71;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a85_0x193a84=a85_0x32eb;(function(_0x37f5da,_0x28bf08){const _0x1c3052=a85_0x32eb,_0x1be984=_0x37f5da();while(!![]){try{const _0x4b9398=-parseInt(_0x1c3052(0x10d))/0x1+parseInt(_0x1c3052(0xfe))/0x2+parseInt(_0x1c3052(0xf6))/0x3*(parseInt(_0x1c3052(0xf7))/0x4)+parseInt(_0x1c3052(0xf8))/0x5+-parseInt(_0x1c3052(0xfd))/0x6*(parseInt(_0x1c3052(0xee))/0x7)+-parseInt(_0x1c3052(0x105))/0x8*(parseInt(_0x1c3052(0x110))/0x9)+parseInt(_0x1c3052(0xec))/0xa*(-parseInt(_0x1c3052(0xf1))/0xb);if(_0x4b9398===_0x28bf08)break;else _0x1be984['push'](_0x1be984['shift']());}catch(_0x107ed6){_0x1be984['push'](_0x1be984['shift']());}}}(a85_0x5161,0x70139));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';function a85_0x32eb(_0x37ae2d,_0x59249f){_0x37ae2d=_0x37ae2d-0xec;const _0x5161a8=a85_0x5161();let _0x32eb6d=_0x5161a8[_0x37ae2d];return _0x32eb6d;}import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x193a84(0xfa),'command':a85_0x193a84(0xfb),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':a85_0x193a84(0x107),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':'boolean','description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x2dbfe5){const _0x3fce1f=a85_0x193a84,_0x5693cc=_0x2dbfe5['bool']('verbose'),_0x2c35df=await platformFetch(getApiDomain()+_0x3fce1f(0xfc)+_0x2dbfe5[_0x3fce1f(0x102)],{'cookie':_0x2dbfe5[_0x3fce1f(0xf3)],'label':_0x3fce1f(0x10b)}),_0x53467f=flattenMenuItems(Array['isArray'](_0x2c35df)?_0x2c35df:[],{'verbose':_0x5693cc,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x53467f[_0x3fce1f(0x10e)],'menus':_0x53467f},'message':_0x53467f[_0x3fce1f(0x10e)]===0x0?_0x3fce1f(0x106):'Found\x20'+_0x53467f[_0x3fce1f(0x10e)]+'\x20menu(s)'};}};function flattenMenuItems(_0x1df36b,_0x2f407c){const _0x132890=a85_0x193a84,_0x7212f1=sortMenuItems(_0x1df36b),_0x212d1=[];for(const _0xc015b9 of _0x7212f1){_0x212d1['push'](toMenuListItem(_0xc015b9,_0x2f407c)),Array['isArray'](_0xc015b9['children'])&&_0xc015b9[_0x132890(0xf4)][_0x132890(0x10e)]>0x0&&_0x212d1['push'](...flattenMenuItems(_0xc015b9[_0x132890(0xf4)],{'verbose':_0x2f407c['verbose'],'parentId':_0xc015b9['id'],'depth':_0x2f407c[_0x132890(0x108)]+0x1}));}return _0x212d1;}function sortMenuItems(_0x28ab37){const _0x507ba0=a85_0x193a84;return _0x28ab37[_0x507ba0(0x101)]((_0x182142,_0x40d115)=>({'item':_0x182142,'index':_0x40d115}))[_0x507ba0(0xf2)]((_0x5573cf,_0x538363)=>{const _0x58fad4=_0x507ba0,_0x115cc4=normalizeSort(_0x5573cf[_0x58fad4(0xed)]['sort']),_0x531847=normalizeSort(_0x538363[_0x58fad4(0xed)][_0x58fad4(0xf2)]);if(_0x115cc4!==_0x531847)return _0x115cc4-_0x531847;return _0x5573cf[_0x58fad4(0x103)]-_0x538363[_0x58fad4(0x103)];})[_0x507ba0(0x101)](({item:_0x3cb939})=>_0x3cb939);}function a85_0x5161(){const _0x4c6fd8=['cookie','children','isArray','1564227RcGhkt','4pQpzwU','3865335CLWArn','resources','menu','list','/smartapi/menu/find?appCode=','714DviMDB','378160vjncra','label','path','map','appCode','index','extend','29664HMlOmd','No\x20menus\x20found.','read','depth','POSITIVE_INFINITY','number','Fetch\x20menu\x20list','string','443364VArUyZ','length','visible','63hnlUQd','190DJSlTd','item','19432UwOQxg','type','parse','130163RBwYGp','sort'];a85_0x5161=function(){return _0x4c6fd8;};return a85_0x5161();}function toMenuListItem(_0x2fe850,_0x54c9f5){const _0xe81797=a85_0x193a84,_0x2d5678={'id':_0x2fe850['id'],'parentId':_0x54c9f5['parentId'],'depth':_0x54c9f5['depth'],'label':normalizeString(_0x2fe850[_0xe81797(0xff)]),'path':normalizeString(_0x2fe850[_0xe81797(0x100)]),'type':normalizeString(_0x2fe850[_0xe81797(0xef)]),'visible':typeof _0x2fe850[_0xe81797(0x10f)]==='boolean'?_0x2fe850[_0xe81797(0x10f)]:null,'sort':typeof _0x2fe850[_0xe81797(0xf2)]===_0xe81797(0x10a)&&Number['isFinite'](_0x2fe850[_0xe81797(0xf2)])?_0x2fe850[_0xe81797(0xf2)]:null,'resources':normalizeResources(_0x2fe850[_0xe81797(0x104)]?.[_0xe81797(0xf9)])};return _0x54c9f5['verbose']&&(_0x2d5678[_0xe81797(0x104)]=_0x2fe850['extend']??null),_0x2d5678;}function normalizeSort(_0x4a029d){const _0xdca549=a85_0x193a84;return typeof _0x4a029d==='number'&&Number['isFinite'](_0x4a029d)?_0x4a029d:Number[_0xdca549(0x109)];}function normalizeString(_0x1a2f90){const _0x4ba40f=a85_0x193a84;return typeof _0x1a2f90===_0x4ba40f(0x10c)?_0x1a2f90:'';}function normalizeResources(_0x207da2){const _0x3711c3=a85_0x193a84;if(Array[_0x3711c3(0xf5)](_0x207da2))return _0x207da2[_0x3711c3(0x101)](String);if(typeof _0x207da2!=='string')return[];try{const _0xbd0d22=JSON[_0x3711c3(0xf0)](_0x207da2);return Array[_0x3711c3(0xf5)](_0xbd0d22)?_0xbd0d22['map'](String):[];}catch{return[];}}
1
+ const a85_0x4a3bc1=a85_0x146f;function a85_0x4bd0(){const _0x3827c4=['1kGyJkr','extend','252alWxSf','push','parse','isArray','15sEgTsN','1058995yasLVf','path','cookie','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','length','string','16cRZYHR','308891bjsBPU','menu','appCode','list','1140170xTnRCr','147944ZnbCYD','Fetch\x20menu\x20list','6OMQyBm','label','Found\x20','depth','map','type','verbose','\x20menu(s)','boolean','842166IVPAFc','number','isFinite','sort','children','/smartapi/menu/find?appCode=','bool','No\x20menus\x20found.','245958XGKUjY','visible','index','532060tdIovv'];a85_0x4bd0=function(){return _0x3827c4;};return a85_0x4bd0();}(function(_0x2eabff,_0x55921d){const _0x362ec9=a85_0x146f,_0x7d632e=_0x2eabff();while(!![]){try{const _0x139627=parseInt(_0x362ec9(0x1ff))/0x1*(-parseInt(_0x362ec9(0x1fb))/0x2)+-parseInt(_0x362ec9(0x205))/0x3*(-parseInt(_0x362ec9(0x1e8))/0x4)+parseInt(_0x362ec9(0x1e7))/0x5*(-parseInt(_0x362ec9(0x1ea))/0x6)+-parseInt(_0x362ec9(0x206))/0x7+parseInt(_0x362ec9(0x20c))/0x8*(-parseInt(_0x362ec9(0x1f3))/0x9)+parseInt(_0x362ec9(0x1fe))/0xa+-parseInt(_0x362ec9(0x20d))/0xb*(-parseInt(_0x362ec9(0x201))/0xc);if(_0x139627===_0x55921d)break;else _0x7d632e['push'](_0x7d632e['shift']());}catch(_0x5dca69){_0x7d632e['push'](_0x7d632e['shift']());}}}(a85_0x4bd0,0x21c97));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x4a3bc1(0x20e),'command':a85_0x4a3bc1(0x1e6),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x4a3bc1(0x1f0),'type':'boolean','description':a85_0x4a3bc1(0x209)}],async 'execute'(_0xf8ce51){const _0x188d7d=a85_0x4a3bc1,_0x25bf37=_0xf8ce51[_0x188d7d(0x1f9)](_0x188d7d(0x1f0)),_0x1d2a3e=await platformFetch(getApiDomain()+_0x188d7d(0x1f8)+_0xf8ce51[_0x188d7d(0x20f)],{'cookie':_0xf8ce51[_0x188d7d(0x208)],'label':_0x188d7d(0x1e9)}),_0x31b911=flattenMenuItems(Array['isArray'](_0x1d2a3e)?_0x1d2a3e:[],{'verbose':_0x25bf37,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x31b911[_0x188d7d(0x20a)],'menus':_0x31b911},'message':_0x31b911['length']===0x0?_0x188d7d(0x1fa):_0x188d7d(0x1ec)+_0x31b911['length']+_0x188d7d(0x1f1)};}};function a85_0x146f(_0x312ba4,_0xd65812){_0x312ba4=_0x312ba4-0x1e6;const _0x4bd0fd=a85_0x4bd0();let _0x146fb6=_0x4bd0fd[_0x312ba4];return _0x146fb6;}function flattenMenuItems(_0x5bcfc5,_0x5eebc2){const _0x39039e=a85_0x4a3bc1,_0x571ac5=sortMenuItems(_0x5bcfc5),_0x20b5d9=[];for(const _0x5c080e of _0x571ac5){_0x20b5d9[_0x39039e(0x202)](toMenuListItem(_0x5c080e,_0x5eebc2)),Array[_0x39039e(0x204)](_0x5c080e[_0x39039e(0x1f7)])&&_0x5c080e[_0x39039e(0x1f7)][_0x39039e(0x20a)]>0x0&&_0x20b5d9[_0x39039e(0x202)](...flattenMenuItems(_0x5c080e[_0x39039e(0x1f7)],{'verbose':_0x5eebc2[_0x39039e(0x1f0)],'parentId':_0x5c080e['id'],'depth':_0x5eebc2[_0x39039e(0x1ed)]+0x1}));}return _0x20b5d9;}function sortMenuItems(_0x2b5044){const _0x1edf34=a85_0x4a3bc1;return _0x2b5044[_0x1edf34(0x1ee)]((_0x5de966,_0x51eeed)=>({'item':_0x5de966,'index':_0x51eeed}))[_0x1edf34(0x1f6)]((_0x2b1b8b,_0xa1dfb5)=>{const _0x335469=_0x1edf34,_0x462a11=normalizeSort(_0x2b1b8b['item']['sort']),_0x250789=normalizeSort(_0xa1dfb5['item']['sort']);if(_0x462a11!==_0x250789)return _0x462a11-_0x250789;return _0x2b1b8b['index']-_0xa1dfb5[_0x335469(0x1fd)];})['map'](({item:_0x356ad3})=>_0x356ad3);}function toMenuListItem(_0x24f6a6,_0x40a109){const _0x4023b6=a85_0x4a3bc1,_0x1a8fad={'id':_0x24f6a6['id'],'parentId':_0x40a109['parentId'],'depth':_0x40a109[_0x4023b6(0x1ed)],'label':normalizeString(_0x24f6a6[_0x4023b6(0x1eb)]),'path':normalizeString(_0x24f6a6[_0x4023b6(0x207)]),'type':normalizeString(_0x24f6a6[_0x4023b6(0x1ef)]),'visible':typeof _0x24f6a6['visible']===_0x4023b6(0x1f2)?_0x24f6a6[_0x4023b6(0x1fc)]:null,'sort':typeof _0x24f6a6[_0x4023b6(0x1f6)]===_0x4023b6(0x1f4)&&Number[_0x4023b6(0x1f5)](_0x24f6a6['sort'])?_0x24f6a6[_0x4023b6(0x1f6)]:null,'resources':normalizeResources(_0x24f6a6[_0x4023b6(0x200)]?.['resources'])};return _0x40a109[_0x4023b6(0x1f0)]&&(_0x1a8fad[_0x4023b6(0x200)]=_0x24f6a6[_0x4023b6(0x200)]??null),_0x1a8fad;}function normalizeSort(_0x3f0985){const _0x3393a8=a85_0x4a3bc1;return typeof _0x3f0985==='number'&&Number[_0x3393a8(0x1f5)](_0x3f0985)?_0x3f0985:Number['POSITIVE_INFINITY'];}function normalizeString(_0x290eae){const _0x1d900f=a85_0x4a3bc1;return typeof _0x290eae===_0x1d900f(0x20b)?_0x290eae:'';}function normalizeResources(_0x56e0b2){const _0x2b3e3f=a85_0x4a3bc1;if(Array[_0x2b3e3f(0x204)](_0x56e0b2))return _0x56e0b2[_0x2b3e3f(0x1ee)](String);if(typeof _0x56e0b2!=='string')return[];try{const _0x5c126c=JSON[_0x2b3e3f(0x203)](_0x56e0b2);return Array[_0x2b3e3f(0x204)](_0x5c126c)?_0x5c126c[_0x2b3e3f(0x1ee)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x1e554c,_0x2270e2){const _0x2fd18f=a86_0x55f7,_0x2b2ba6=_0x1e554c();while(!![]){try{const _0x1a2b2c=parseInt(_0x2fd18f(0x1b5))/0x1*(parseInt(_0x2fd18f(0x1b9))/0x2)+-parseInt(_0x2fd18f(0x1ae))/0x3*(-parseInt(_0x2fd18f(0x1aa))/0x4)+-parseInt(_0x2fd18f(0x1b4))/0x5*(parseInt(_0x2fd18f(0x1b6))/0x6)+parseInt(_0x2fd18f(0x1c5))/0x7+-parseInt(_0x2fd18f(0x1ad))/0x8*(parseInt(_0x2fd18f(0x1ac))/0x9)+parseInt(_0x2fd18f(0x1a7))/0xa+-parseInt(_0x2fd18f(0x1b1))/0xb*(-parseInt(_0x2fd18f(0x1bb))/0xc);if(_0x1a2b2c===_0x2270e2)break;else _0x2b2ba6['push'](_0x2b2ba6['shift']());}catch(_0x2635a1){_0x2b2ba6['push'](_0x2b2ba6['shift']());}}}(a86_0x1fe4,0x52252));function strWidth(_0x1dcb11){let _0x3119ce=0x0;for(const _0x174bba of _0x1dcb11){_0x3119ce+=/[\u4e00-\u9fa5]/['test'](_0x174bba)?0x2:0x1;}return _0x3119ce;}function padRight(_0x124d60,_0x117511){const _0x2c1ee1=a86_0x55f7,_0x46938a=strWidth(_0x124d60);return _0x124d60+'\x20'[_0x2c1ee1(0x1c2)](Math[_0x2c1ee1(0x1c0)](0x0,_0x117511-_0x46938a));}function a86_0x55f7(_0x138934,_0x40e2ec){_0x138934=_0x138934-0x1a7;const _0x1fe4a7=a86_0x1fe4();let _0x55f78c=_0x1fe4a7[_0x138934];return _0x55f78c;}export function renderCompareTable(_0x8028b4,_0x49e632={}){const _0x1ac00e=a86_0x55f7;if(_0x8028b4['length']===0x0)return'';const _0x241ae2=_0x49e632[_0x1ac00e(0x1c7)]??!![],_0x125730=Math[_0x1ac00e(0x1c0)](0x1e,..._0x8028b4[_0x1ac00e(0x1c4)](_0x10fcea=>strWidth(_0x10fcea[_0x1ac00e(0x1bc)]))),_0x53ce74=0x4,_0x3db4fb=[],_0x4ddfd4='\x20\x20'+padRight(_0x1ac00e(0x1ba),_0x125730),_0xd159e5=padRight(_0x1ac00e(0x1b3),_0x53ce74),_0x3928c6=_0x241ae2?'\x20\x20'+padRight(_0x1ac00e(0x1ab),_0x53ce74):'';_0x3db4fb[_0x1ac00e(0x1c6)](_0x4ddfd4+'\x20\x20'+_0xd159e5+(_0x241ae2?_0x3928c6:'')),_0x3db4fb[_0x1ac00e(0x1c6)]('\x20\x20'+'─'[_0x1ac00e(0x1c2)](_0x125730)+'\x20\x20'+'─'[_0x1ac00e(0x1c2)](_0x53ce74)+(_0x241ae2?'\x20\x20'+'─'[_0x1ac00e(0x1c2)](_0x53ce74):''));for(const _0x164c5d of _0x8028b4){const _0x3cdfe3=padRight(_0x164c5d[_0x1ac00e(0x1bc)],_0x125730),_0x1844b5=_0x164c5d[_0x1ac00e(0x1b7)]?'✓':'✗',_0x209d9e=padRight(_0x1844b5,_0x53ce74);let _0x3bfc07='\x20\x20'+_0x3cdfe3+'\x20\x20'+_0x209d9e;if(_0x241ae2){const _0x93dc16=_0x164c5d[_0x1ac00e(0x1b0)]?'✓':'✗';_0x3bfc07+='\x20\x20'+padRight(_0x93dc16,_0x53ce74);}_0x3db4fb[_0x1ac00e(0x1c6)](_0x3bfc07);}return _0x3db4fb['join']('\x0a');}export function renderSyncSummary(_0x15940a,_0x30758a){const _0x28831d=a86_0x55f7;if(_0x15940a[_0x28831d(0x1c3)]===0x0)return _0x30758a?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x28831d(0x1be);const _0x58588b=['\x20\x20'+_0x15940a['length']+_0x28831d(0x1af)];for(const _0x53156e of _0x15940a){_0x58588b['push'](_0x28831d(0x1a9)+_0x53156e[_0x28831d(0x1bc)]+'\x20('+_0x53156e['path']+')');}return _0x58588b[_0x28831d(0x1c1)]('\x0a');}export function renderUpdateSummary(_0x5e221d,_0x170781){const _0x17afae=a86_0x55f7;if(_0x5e221d['length']===0x0)return _0x17afae(0x1b8);const _0x589cfa=['\x20\x20'+_0x5e221d['length']+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x17afae(0x1bd)+(_0x170781[0x0]??_0x17afae(0x1b2)),_0x17afae(0x1bf)+(_0x170781[0x1]??_0x17afae(0x1b2)),'',_0x17afae(0x1a8)+_0x5e221d[_0x17afae(0x1c1)](',\x20')];return _0x589cfa[_0x17afae(0x1c1)]('\x0a');}function a86_0x1fe4(){const _0x3bf9dd=['305320XpVSoU','10416HNohyb','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','online','143JLlybZ','(unchanged)','Local','5odrmAJ','1cIYPqP','3757020QUKfeO','local','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','808642ucgmCj','Menu\x20Name','452712YxeLww','label','\x20\x20\x20\x20JS:\x20\x20','\x20\x20No\x20pages\x20to\x20sync.','\x20\x20\x20\x20CSS:\x20','max','join','repeat','length','map','619850THPUaz','push','showOnline','1700170sFyLeR','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20•\x20','220EmOpET','Platform','90adjRYK'];a86_0x1fe4=function(){return _0x3bf9dd;};return a86_0x1fe4();}
1
+ function a86_0x55ca(_0x1eb75e,_0x3052df){_0x1eb75e=_0x1eb75e-0x7f;const _0x21556b=a86_0x2155();let _0x55caaf=_0x21556b[_0x1eb75e];return _0x55caaf;}(function(_0x4a6a37,_0x4f9253){const _0x10f188=a86_0x55ca,_0x4e20e2=_0x4a6a37();while(!![]){try{const _0x126103=-parseInt(_0x10f188(0x91))/0x1*(-parseInt(_0x10f188(0x92))/0x2)+parseInt(_0x10f188(0x82))/0x3+-parseInt(_0x10f188(0x95))/0x4+-parseInt(_0x10f188(0x8c))/0x5+parseInt(_0x10f188(0x88))/0x6*(parseInt(_0x10f188(0x7f))/0x7)+parseInt(_0x10f188(0x85))/0x8*(-parseInt(_0x10f188(0x8f))/0x9)+-parseInt(_0x10f188(0x9d))/0xa*(-parseInt(_0x10f188(0x87))/0xb);if(_0x126103===_0x4f9253)break;else _0x4e20e2['push'](_0x4e20e2['shift']());}catch(_0x3b3563){_0x4e20e2['push'](_0x4e20e2['shift']());}}}(a86_0x2155,0xcd34a));function strWidth(_0x287aa6){const _0x41904d=a86_0x55ca;let _0x3f776c=0x0;for(const _0x2e517e of _0x287aa6){_0x3f776c+=/[\u4e00-\u9fa5]/[_0x41904d(0x89)](_0x2e517e)?0x2:0x1;}return _0x3f776c;}function padRight(_0x5138bc,_0x5f157f){const _0x4d56c4=a86_0x55ca,_0x52c06a=strWidth(_0x5138bc);return _0x5138bc+'\x20'[_0x4d56c4(0x80)](Math[_0x4d56c4(0x96)](0x0,_0x5f157f-_0x52c06a));}export function renderCompareTable(_0x22acf8,_0x56d64b={}){const _0x57522d=a86_0x55ca;if(_0x22acf8['length']===0x0)return'';const _0x40b6ad=_0x56d64b[_0x57522d(0x9e)]??!![],_0x309d50=Math[_0x57522d(0x96)](0x1e,..._0x22acf8[_0x57522d(0x83)](_0x475a4f=>strWidth(_0x475a4f['label']))),_0x324c62=0x4,_0x1e668b=[],_0x4f4404='\x20\x20'+padRight(_0x57522d(0x81),_0x309d50),_0xa76cbd=padRight(_0x57522d(0x90),_0x324c62),_0x4f55b5=_0x40b6ad?'\x20\x20'+padRight(_0x57522d(0x9c),_0x324c62):'';_0x1e668b[_0x57522d(0x93)](_0x4f4404+'\x20\x20'+_0xa76cbd+(_0x40b6ad?_0x4f55b5:'')),_0x1e668b[_0x57522d(0x93)]('\x20\x20'+'─'[_0x57522d(0x80)](_0x309d50)+'\x20\x20'+'─'[_0x57522d(0x80)](_0x324c62)+(_0x40b6ad?'\x20\x20'+'─'[_0x57522d(0x80)](_0x324c62):''));for(const _0x59cb06 of _0x22acf8){const _0x56e848=padRight(_0x59cb06[_0x57522d(0x9a)],_0x309d50),_0x320a10=_0x59cb06['local']?'✓':'✗',_0x19ee16=padRight(_0x320a10,_0x324c62);let _0x4b3720='\x20\x20'+_0x56e848+'\x20\x20'+_0x19ee16;if(_0x40b6ad){const _0x537409=_0x59cb06[_0x57522d(0x8e)]?'✓':'✗';_0x4b3720+='\x20\x20'+padRight(_0x537409,_0x324c62);}_0x1e668b[_0x57522d(0x93)](_0x4b3720);}return _0x1e668b[_0x57522d(0x84)]('\x0a');}export function renderSyncSummary(_0x52730a,_0x48e949){const _0x19ddac=a86_0x55ca;if(_0x52730a[_0x19ddac(0x94)]===0x0)return _0x48e949?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x19ddac(0x97);const _0x1d53c5=['\x20\x20'+_0x52730a[_0x19ddac(0x94)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0xab2ffb of _0x52730a){_0x1d53c5[_0x19ddac(0x93)](_0x19ddac(0x99)+_0xab2ffb['label']+'\x20('+_0xab2ffb[_0x19ddac(0x8a)]+')');}return _0x1d53c5['join']('\x0a');}export function renderUpdateSummary(_0x39c414,_0x2f79f0){const _0x4669f5=a86_0x55ca;if(_0x39c414[_0x4669f5(0x94)]===0x0)return _0x4669f5(0x8b);const _0x59cc63=['\x20\x20'+_0x39c414[_0x4669f5(0x94)]+_0x4669f5(0x8d),'\x20\x20\x20\x20JS:\x20\x20'+(_0x2f79f0[0x0]??_0x4669f5(0x98)),_0x4669f5(0x86)+(_0x2f79f0[0x1]??_0x4669f5(0x98)),'',_0x4669f5(0x9b)+_0x39c414[_0x4669f5(0x84)](',\x20')];return _0x59cc63['join']('\x0a');}function a86_0x2155(){const _0x203ee4=['10683PPkiSE','Local','8911FqZWFW','122iyTUJW','push','length','2886200TIqcVh','max','\x20\x20No\x20pages\x20to\x20sync.','(unchanged)','\x20\x20\x20\x20•\x20','label','\x20\x20Affected\x20menus:\x20','Platform','4135250gqWZcJ','showOnline','469CmzBmL','repeat','Menu\x20Name','757572TYDxkC','map','join','11256RihYrP','\x20\x20\x20\x20CSS:\x20','44VRmZzQ','75234jAFAuP','test','path','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','290635BjpmsL','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','online'];a86_0x2155=function(){return _0x203ee4;};return a86_0x2155();}
@@ -1 +1 @@
1
- function a87_0x3017(){var _0x481c4f=['199358zJdwfh','7300EhLnqE','24qiDyvX','462720NLqZYI','875484eCJlxM','8sWqZeH','2268889CIEZqG','47091ajkckd','154430anGnOY','1512IpxZBp'];a87_0x3017=function(){return _0x481c4f;};return a87_0x3017();}(function(_0x1a1f5d,_0x4593dc){var _0x353877=a87_0x45fb,_0x34a441=_0x1a1f5d();while(!![]){try{var _0x3bbf24=parseInt(_0x353877(0x195))/0x1+parseInt(_0x353877(0x198))/0x2+-parseInt(_0x353877(0x192))/0x3*(parseInt(_0x353877(0x197))/0x4)+parseInt(_0x353877(0x196))/0x5*(-parseInt(_0x353877(0x194))/0x6)+-parseInt(_0x353877(0x191))/0x7*(-parseInt(_0x353877(0x19a))/0x8)+-parseInt(_0x353877(0x199))/0x9+parseInt(_0x353877(0x193))/0xa;if(_0x3bbf24===_0x4593dc)break;else _0x34a441['push'](_0x34a441['shift']());}catch(_0x40621c){_0x34a441['push'](_0x34a441['shift']());}}}(a87_0x3017,0x337de));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';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a87_0x45fb(_0x217ac5,_0x2f40b5){_0x217ac5=_0x217ac5-0x191;var _0x3017df=a87_0x3017();var _0x45fb93=_0x3017df[_0x217ac5];return _0x45fb93;}export*from'../../../commands/menu/shared/update-core.js';
1
+ function a87_0x1950(){var _0xafa7d6=['291982qBNrNy','1MtIyYB','861132xiBCMq','173964KVEoOI','20997FFghTo','12040STfMUv','4nPZHtd','3619exQZcW','309288rguNFA','785035zSLDtI','176SPMylK'];a87_0x1950=function(){return _0xafa7d6;};return a87_0x1950();}(function(_0x3c4b2b,_0x518148){var _0x4fe022=a87_0x29fe,_0x524c2c=_0x3c4b2b();while(!![]){try{var _0x542462=parseInt(_0x4fe022(0x155))/0x1*(parseInt(_0x4fe022(0x154))/0x2)+parseInt(_0x4fe022(0x157))/0x3+-parseInt(_0x4fe022(0x15a))/0x4*(-parseInt(_0x4fe022(0x15d))/0x5)+parseInt(_0x4fe022(0x156))/0x6+parseInt(_0x4fe022(0x15c))/0x7+parseInt(_0x4fe022(0x153))/0x8*(-parseInt(_0x4fe022(0x158))/0x9)+-parseInt(_0x4fe022(0x159))/0xa*(parseInt(_0x4fe022(0x15b))/0xb);if(_0x542462===_0x518148)break;else _0x524c2c['push'](_0x524c2c['shift']());}catch(_0x4fd106){_0x524c2c['push'](_0x524c2c['shift']());}}}(a87_0x1950,0x18b82));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a87_0x29fe(_0x358574,_0x266149){_0x358574=_0x358574-0x153;var _0x195087=a87_0x1950();var _0x29fefa=_0x195087[_0x358574];return _0x29fefa;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0xf7515d,_0x5cf636){const _0x25d642=a88_0x4e89,_0x5a96e1=_0xf7515d();while(!![]){try{const _0x5890d7=parseInt(_0x25d642(0x127))/0x1+parseInt(_0x25d642(0x13d))/0x2*(parseInt(_0x25d642(0x134))/0x3)+-parseInt(_0x25d642(0x12d))/0x4*(-parseInt(_0x25d642(0x146))/0x5)+parseInt(_0x25d642(0x131))/0x6*(-parseInt(_0x25d642(0x137))/0x7)+-parseInt(_0x25d642(0x147))/0x8+parseInt(_0x25d642(0x126))/0x9+-parseInt(_0x25d642(0x142))/0xa;if(_0x5890d7===_0x5cf636)break;else _0x5a96e1['push'](_0x5a96e1['shift']());}catch(_0x38e3c2){_0x5a96e1['push'](_0x5a96e1['shift']());}}}(a88_0x2d96,0x8ba58));function a88_0x4e89(_0x4e5316,_0x1839c8){_0x4e5316=_0x4e5316-0x126;const _0x2d96f7=a88_0x2d96();let _0x4e898f=_0x2d96f7[_0x4e5316];return _0x4e898f;}import a88_0x3bed27 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a88_0x43da9f from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';function a88_0x2d96(){const _0x3f08e2=['This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','error','start','4472420YTyWMB','JS\x20URL\x20check\x20failed','has','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','1510EMMKaS','6861544DXpLOg','green','label','cancelled','test','Cancelled.','length','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','2442699KbpGgS','931530zPfYnn','fail','gray','trim','\x20\x20Checking\x20JS\x20URL\x20reachability...','ExitPromptError','11272weFexj','isTTY','catch','No\x20menus\x20selected.','1517178SQFwhY','[already\x20on\x20platform]','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','9YFpuEK','CSS\x20URL\x20checked','\x20\x20Checking\x20CSS\x20URL\x20reachability...','28Qqamsh','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','includes','CSS\x20URL\x20check\x20failed','path','succeed','556268duRVFw','red'];a88_0x2d96=function(){return _0x3f08e2;};return a88_0x2d96();}import{CliErrors}from'../../../errors.js';function onCancel(_0x57f299){const _0x157ca2=a88_0x4e89;return _0x57f299[_0x157ca2(0x12f)](_0x3899ea=>{const _0x13676b=_0x157ca2;if(_0x3899ea?.['name']===_0x13676b(0x12c))throw CliErrors[_0x13676b(0x14a)]('Cancelled.');throw _0x3899ea;});}export function startSpinner(_0x4feede){const _0x50e63c=a88_0x4e89;return a88_0x43da9f({'text':_0x4feede,'color':'cyan'})[_0x50e63c(0x141)]();}export function stopSpinner(_0x52ba74,_0x244741,_0x21a421){const _0x28440c=a88_0x4e89;_0x21a421?_0x52ba74[_0x28440c(0x13c)](_0x244741):_0x52ba74[_0x28440c(0x128)](_0x244741);}export async function askConfirm(_0x58eb97){return onCancel(confirm({'message':_0x58eb97,'theme':{'prefix':''}}));}export async function askJsUrl(_0x13c003){const _0x51f70a=a88_0x4e89;while(!![]){const _0x401635=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x13c003,'theme':{'prefix':''}}));if(_0x401635[_0x51f70a(0x12a)]()==='')throw CliErrors['cancelled'](_0x51f70a(0x14c));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x51f70a(0x14b)](_0x401635[_0x51f70a(0x12a)]())){console[_0x51f70a(0x140)](a88_0x3bed27[_0x51f70a(0x13e)](_0x51f70a(0x14e)));continue;}const _0x32feb3=startSpinner(_0x51f70a(0x12b));try{const _0x3f4010=await isUrlReachable(_0x401635[_0x51f70a(0x12a)]());stopSpinner(_0x32feb3,'JS\x20URL\x20checked',_0x3f4010);if(!_0x3f4010){console['error'](a88_0x3bed27[_0x51f70a(0x13e)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x401635[_0x51f70a(0x12a)]();}catch(_0x4cb24c){stopSpinner(_0x32feb3,_0x51f70a(0x143),![]);throw _0x4cb24c;}}}export async function askCssUrl(_0x46d18f){const _0x5ee10f=a88_0x4e89;while(!![]){const _0x4327de=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x46d18f,'theme':{'prefix':''}}));if(_0x4327de[_0x5ee10f(0x12a)]()==='')throw CliErrors[_0x5ee10f(0x14a)](_0x5ee10f(0x14c));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x4327de['trim']())){console['error'](a88_0x3bed27['red'](_0x5ee10f(0x138)));continue;}const _0x2d2420=startSpinner(_0x5ee10f(0x136));try{const _0x1f62fa=await isUrlReachable(_0x4327de[_0x5ee10f(0x12a)]());stopSpinner(_0x2d2420,_0x5ee10f(0x135),_0x1f62fa);if(!_0x1f62fa){console[_0x5ee10f(0x140)](a88_0x3bed27['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x4327de[_0x5ee10f(0x12a)]();}catch(_0x403f3d){stopSpinner(_0x2d2420,_0x5ee10f(0x13a),![]);throw _0x403f3d;}}}export async function selectPages(_0x3443bc,_0x2c56c1,_0x20d3ab){const _0x25d159=a88_0x4e89,_0x52f13a=_0x3443bc['map'](_0x11bc13=>({'name':_0x11bc13[_0x25d159(0x149)]+'\x20\x20'+(_0x2c56c1[_0x25d159(0x144)](_0x11bc13[_0x25d159(0x13b)])?a88_0x3bed27[_0x25d159(0x129)](_0x25d159(0x132)):a88_0x3bed27[_0x25d159(0x148)]('[new]')),'value':_0x11bc13[_0x25d159(0x149)],'checked':_0x20d3ab?_0x20d3ab[_0x25d159(0x139)](_0x11bc13[_0x25d159(0x149)]):!_0x2c56c1['has'](_0x11bc13[_0x25d159(0x13b)])}));if(_0x52f13a[_0x25d159(0x14d)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x1e33f4=await onCancel(checkbox({'message':_0x25d159(0x145),'choices':_0x52f13a,'loop':![],'theme':{'prefix':''}}));if(_0x1e33f4[_0x25d159(0x14d)]===0x0)throw new Error(_0x25d159(0x130));return _0x3443bc['filter'](_0xb6660e=>_0x1e33f4['includes'](_0xb6660e[_0x25d159(0x149)]));}export function isInteractive(){const _0x312af0=a88_0x4e89;return process['stdin'][_0x312af0(0x12e)]===!![];}export function requireInteractive(){const _0x29e213=a88_0x4e89;if(!isInteractive())throw new Error(_0x29e213(0x13f)+_0x29e213(0x133));}
1
+ (function(_0x40962c,_0x27bc71){const _0xa3cb5c=a88_0x23bf,_0x25f203=_0x40962c();while(!![]){try{const _0x1f8af8=-parseInt(_0xa3cb5c(0x19f))/0x1*(-parseInt(_0xa3cb5c(0x18a))/0x2)+parseInt(_0xa3cb5c(0x194))/0x3+-parseInt(_0xa3cb5c(0x196))/0x4*(parseInt(_0xa3cb5c(0x1a1))/0x5)+parseInt(_0xa3cb5c(0x190))/0x6+-parseInt(_0xa3cb5c(0x1ac))/0x7+-parseInt(_0xa3cb5c(0x1b0))/0x8*(parseInt(_0xa3cb5c(0x1ae))/0x9)+parseInt(_0xa3cb5c(0x1a0))/0xa;if(_0x1f8af8===_0x27bc71)break;else _0x25f203['push'](_0x25f203['shift']());}catch(_0x29f7ba){_0x25f203['push'](_0x25f203['shift']());}}}(a88_0x2eb8,0x35090));import a88_0x5e25de from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a88_0x23bf(_0x37d824,_0x292968){_0x37d824=_0x37d824-0x188;const _0x2eb8cc=a88_0x2eb8();let _0x23bf07=_0x2eb8cc[_0x37d824];return _0x23bf07;}import a88_0x13064d from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x28dd1e){const _0x552f75=a88_0x23bf;return _0x28dd1e[_0x552f75(0x19c)](_0x4c76e1=>{const _0x388021=_0x552f75;if(_0x4c76e1?.[_0x388021(0x19a)]==='ExitPromptError')throw CliErrors['cancelled']('Cancelled.');throw _0x4c76e1;});}export function startSpinner(_0x4cee10){const _0x204c68=a88_0x23bf;return a88_0x13064d({'text':_0x4cee10,'color':_0x204c68(0x1af)})[_0x204c68(0x1ad)]();}export function stopSpinner(_0x2b188f,_0x321146,_0x18524d){const _0x2670e2=a88_0x23bf;_0x18524d?_0x2b188f[_0x2670e2(0x193)](_0x321146):_0x2b188f['fail'](_0x321146);}function a88_0x2eb8(){const _0x1427a0=['227412UeRNZv','cyan','8CTPALX','stdin','green','226168cHxADY','includes','[already\x20on\x20platform]','trim','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','red','1037574TUgyzP','label','CSS\x20URL\x20check\x20failed','succeed','232560NnpsYl','CSS\x20URL\x20checked','3524AruABC','\x20\x20Checking\x20CSS\x20URL\x20reachability...','filter','error','name','\x20\x20Checking\x20JS\x20URL\x20reachability...','catch','JS\x20URL\x20check\x20failed','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','3OUItXQ','3105580uNkhOE','2175CLqETQ','map','cancelled','test','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','Cancelled.','has','JS\x20URL\x20checked','length','path','\x20\x20JS\x20URL:','1921668SQWPIu','start'];a88_0x2eb8=function(){return _0x1427a0;};return a88_0x2eb8();}export async function askConfirm(_0x113736){return onCancel(confirm({'message':_0x113736,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3df707){const _0x14912c=a88_0x23bf;while(!![]){const _0x14b15b=await onCancel(input({'message':_0x14912c(0x1ab),'default':_0x3df707,'theme':{'prefix':''}}));if(_0x14b15b[_0x14912c(0x18d)]()==='')throw CliErrors['cancelled'](_0x14912c(0x1a6));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x14b15b[_0x14912c(0x18d)]())){console[_0x14912c(0x199)](a88_0x5e25de['red'](_0x14912c(0x18e)));continue;}const _0x7daf4a=startSpinner(_0x14912c(0x19b));try{const _0x1edecf=await isUrlReachable(_0x14b15b['trim']());stopSpinner(_0x7daf4a,_0x14912c(0x1a8),_0x1edecf);if(!_0x1edecf){console[_0x14912c(0x199)](a88_0x5e25de[_0x14912c(0x18f)](_0x14912c(0x19e)));continue;}return _0x14b15b['trim']();}catch(_0x3ebc7d){stopSpinner(_0x7daf4a,_0x14912c(0x19d),![]);throw _0x3ebc7d;}}}export async function askCssUrl(_0x2895bf){const _0x28c587=a88_0x23bf;while(!![]){const _0x479d6b=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x2895bf,'theme':{'prefix':''}}));if(_0x479d6b['trim']()==='')throw CliErrors[_0x28c587(0x1a3)](_0x28c587(0x1a6));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x28c587(0x1a4)](_0x479d6b[_0x28c587(0x18d)]())){console[_0x28c587(0x199)](a88_0x5e25de[_0x28c587(0x18f)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x111a0b=startSpinner(_0x28c587(0x197));try{const _0x158633=await isUrlReachable(_0x479d6b[_0x28c587(0x18d)]());stopSpinner(_0x111a0b,_0x28c587(0x195),_0x158633);if(!_0x158633){console[_0x28c587(0x199)](a88_0x5e25de[_0x28c587(0x18f)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x479d6b['trim']();}catch(_0x47ff7e){stopSpinner(_0x111a0b,_0x28c587(0x192),![]);throw _0x47ff7e;}}}export async function selectPages(_0x61724c,_0x2f6a09,_0x39b290){const _0xbc61ce=a88_0x23bf,_0x45d8f7=_0x61724c[_0xbc61ce(0x1a2)](_0x2edede=>({'name':_0x2edede[_0xbc61ce(0x191)]+'\x20\x20'+(_0x2f6a09[_0xbc61ce(0x1a7)](_0x2edede['path'])?a88_0x5e25de['gray'](_0xbc61ce(0x18c)):a88_0x5e25de[_0xbc61ce(0x189)]('[new]')),'value':_0x2edede[_0xbc61ce(0x191)],'checked':_0x39b290?_0x39b290[_0xbc61ce(0x18b)](_0x2edede[_0xbc61ce(0x191)]):!_0x2f6a09['has'](_0x2edede[_0xbc61ce(0x1aa)])}));if(_0x45d8f7[_0xbc61ce(0x1a9)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x164335=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x45d8f7,'loop':![],'theme':{'prefix':''}}));if(_0x164335['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x61724c[_0xbc61ce(0x198)](_0x1c2c4b=>_0x164335[_0xbc61ce(0x18b)](_0x1c2c4b[_0xbc61ce(0x191)]));}export function isInteractive(){const _0x592890=a88_0x23bf;return process[_0x592890(0x188)]['isTTY']===!![];}export function requireInteractive(){const _0x4212b3=a88_0x23bf;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x4212b3(0x1a5));}
@@ -1 +1 @@
1
- const a89_0x3aef2b=a89_0x4446;function a89_0x7546(){const _0x2749a4=['split','slice','endsWith','63740gumgvo','path','forEach','120256QJCvEU','replaceAll','join','trim','24lUCyaF','match','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','833080KxmikU','concat','utf-8','6311ZTlWJU','replace','.tsx','147308sZldUu','32Azixsw','src/pages','index.tsx','108432KYDsHk','350545ETuVDG','6uFDHvV'];a89_0x7546=function(){return _0x2749a4;};return a89_0x7546();}(function(_0x375c42,_0x1ca078){const _0x542971=a89_0x4446,_0x1b6af8=_0x375c42();while(!![]){try{const _0x20730b=-parseInt(_0x542971(0x1ea))/0x1+parseInt(_0x542971(0x1e0))/0x2*(parseInt(_0x542971(0x1f3))/0x3)+-parseInt(_0x542971(0x1e7))/0x4+parseInt(_0x542971(0x1f2))/0x5+-parseInt(_0x542971(0x1e4))/0x6*(-parseInt(_0x542971(0x1ed))/0x7)+-parseInt(_0x542971(0x1ee))/0x8*(-parseInt(_0x542971(0x1f1))/0x9)+parseInt(_0x542971(0x1f7))/0xa;if(_0x20730b===_0x1ca078)break;else _0x1b6af8['push'](_0x1b6af8['shift']());}catch(_0x5902e5){_0x1b6af8['push'](_0x1b6af8['shift']());}}}(a89_0x7546,0x1bf5e));import{readdirSync,statSync,readFileSync}from'fs';function a89_0x4446(_0x57a97a,_0x41a122){_0x57a97a=_0x57a97a-0x1df;const _0x754607=a89_0x7546();let _0x444699=_0x754607[_0x57a97a];return _0x444699;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a89_0x3aef2b(0x1ef));export function extractTitleFromComment(_0x7f9842){const _0x5bca4c=a89_0x3aef2b;try{const _0x1e72c6=readFileSync(_0x7f9842,_0x5bca4c(0x1e9)),_0x36c894=_0x1e72c6[_0x5bca4c(0x1e5)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x36c894&&_0x36c894[0x1]){const _0x44db25=_0x36c894[0x1],_0xd19809=_0x44db25[_0x5bca4c(0x1e5)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0xd19809&&_0xd19809[0x1])return _0xd19809[0x1][_0x5bca4c(0x1e3)]();}let _0x5c30ae=null;const _0x2387bf=_0x1e72c6[_0x5bca4c(0x1e5)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x2387bf&&_0x2387bf[0x1]&&(_0x5c30ae=_0x2387bf[0x1]);if(!_0x5c30ae){const _0x3d1c0a=_0x1e72c6['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x3d1c0a&&_0x3d1c0a[0x1]&&(_0x5c30ae=_0x3d1c0a[0x1]);}if(_0x5c30ae){const _0x4ea1b3=new RegExp('\x5cb'+_0x5c30ae+_0x5bca4c(0x1e6)),_0x4c7ebc=_0x1e72c6[_0x5bca4c(0x1e5)](_0x4ea1b3);if(_0x4c7ebc&&_0x4c7ebc[0x1])return _0x4c7ebc[0x1];return _0x5c30ae;}return null;}catch(_0x1b65d0){return null;}}export function getLocalPages(_0x4f0d9d=pagesDir,_0x187bef=pagesDir){const _0x1fa96e=a89_0x3aef2b;let _0x335a81=[];const _0x2b243a=readdirSync(_0x4f0d9d);return _0x2b243a[_0x1fa96e(0x1df)](_0x58331b=>{const _0x576d6c=_0x1fa96e,_0x5b8dd8=join(_0x4f0d9d,_0x58331b),_0x36a848=statSync(_0x5b8dd8);if(_0x36a848&&_0x36a848['isDirectory']())_0x335a81=_0x335a81[_0x576d6c(0x1e8)](getLocalPages(_0x5b8dd8,_0x187bef));else{if(_0x58331b[_0x576d6c(0x1f6)](_0x576d6c(0x1ec))){let _0x4f9c2e=relative(_0x187bef,_0x5b8dd8);_0x4f9c2e[_0x576d6c(0x1f6)](_0x576d6c(0x1f0))?_0x4f9c2e=_0x4f9c2e['replace'](/index\.tsx$/,''):_0x4f9c2e=_0x4f9c2e[_0x576d6c(0x1eb)](/\.tsx$/,'');_0x4f9c2e[_0x576d6c(0x1f6)](sep)&&(_0x4f9c2e=_0x4f9c2e[_0x576d6c(0x1f5)](0x0,-0x1));const _0x3f3313=_0x4f9c2e[_0x576d6c(0x1f4)](sep)[_0x576d6c(0x1e2)]('/'),_0x198f0=extractTitleFromComment(_0x5b8dd8),_0x4d93e8=_0x198f0||_0x3f3313;_0x335a81['push']({'path':_0x3f3313[_0x576d6c(0x1e1)]('$',':'),'label':_0x4d93e8});}}}),_0x335a81['filter'](_0x460c1b=>_0x460c1b[_0x1fa96e(0x1f8)]!=='');}
1
+ function a89_0x5200(_0x384014,_0x27bba7){_0x384014=_0x384014-0x192;const _0x18a966=a89_0x18a9();let _0x5200b9=_0x18a966[_0x384014];return _0x5200b9;}const a89_0x2e2b1a=a89_0x5200;(function(_0x3ec35e,_0x4ee653){const _0x3a04ba=a89_0x5200,_0x41ba17=_0x3ec35e();while(!![]){try{const _0x434ff8=parseInt(_0x3a04ba(0x1a9))/0x1+parseInt(_0x3a04ba(0x1af))/0x2*(-parseInt(_0x3a04ba(0x1a5))/0x3)+parseInt(_0x3a04ba(0x1b0))/0x4*(parseInt(_0x3a04ba(0x192))/0x5)+-parseInt(_0x3a04ba(0x193))/0x6+-parseInt(_0x3a04ba(0x1a8))/0x7*(parseInt(_0x3a04ba(0x196))/0x8)+-parseInt(_0x3a04ba(0x198))/0x9*(parseInt(_0x3a04ba(0x1ad))/0xa)+-parseInt(_0x3a04ba(0x194))/0xb*(-parseInt(_0x3a04ba(0x1ae))/0xc);if(_0x434ff8===_0x4ee653)break;else _0x41ba17['push'](_0x41ba17['shift']());}catch(_0x4aead9){_0x41ba17['push'](_0x41ba17['shift']());}}}(a89_0x18a9,0xe9c82));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a89_0x2e2b1a(0x1a0)](),a89_0x2e2b1a(0x1ac));export function extractTitleFromComment(_0x2349e0){const _0x1e103d=a89_0x2e2b1a;try{const _0xc5faf8=readFileSync(_0x2349e0,_0x1e103d(0x197)),_0x379695=_0xc5faf8['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x379695&&_0x379695[0x1]){const _0x549366=_0x379695[0x1],_0x308869=_0x549366['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x308869&&_0x308869[0x1])return _0x308869[0x1][_0x1e103d(0x19c)]();}let _0x2e2b26=null;const _0x22b7d6=_0xc5faf8[_0x1e103d(0x19b)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x22b7d6&&_0x22b7d6[0x1]&&(_0x2e2b26=_0x22b7d6[0x1]);if(!_0x2e2b26){const _0x21ee84=_0xc5faf8[_0x1e103d(0x19b)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x21ee84&&_0x21ee84[0x1]&&(_0x2e2b26=_0x21ee84[0x1]);}if(_0x2e2b26){const _0x59ef24=new RegExp('\x5cb'+_0x2e2b26+_0x1e103d(0x19e)),_0x117251=_0xc5faf8[_0x1e103d(0x19b)](_0x59ef24);if(_0x117251&&_0x117251[0x1])return _0x117251[0x1];return _0x2e2b26;}return null;}catch(_0x34088c){return null;}}export function getLocalPages(_0x33dffb=pagesDir,_0x11f9f8=pagesDir){const _0x581195=a89_0x2e2b1a;let _0x11a2dd=[];const _0x30d216=readdirSync(_0x33dffb);return _0x30d216[_0x581195(0x1a1)](_0xaf6e9f=>{const _0x385932=_0x581195,_0x1d726d=join(_0x33dffb,_0xaf6e9f),_0x2fd40a=statSync(_0x1d726d);if(_0x2fd40a&&_0x2fd40a[_0x385932(0x1ab)]())_0x11a2dd=_0x11a2dd[_0x385932(0x1a4)](getLocalPages(_0x1d726d,_0x11f9f8));else{if(_0xaf6e9f[_0x385932(0x19d)](_0x385932(0x1a6))){let _0x2bb44b=relative(_0x11f9f8,_0x1d726d);_0x2bb44b[_0x385932(0x19d)](_0x385932(0x199))?_0x2bb44b=_0x2bb44b['replace'](/index\.tsx$/,''):_0x2bb44b=_0x2bb44b[_0x385932(0x19f)](/\.tsx$/,'');_0x2bb44b[_0x385932(0x19d)](sep)&&(_0x2bb44b=_0x2bb44b[_0x385932(0x1aa)](0x0,-0x1));const _0xce39b9=_0x2bb44b[_0x385932(0x19a)](sep)['join']('/'),_0x105aed=extractTitleFromComment(_0x1d726d),_0x4e4160=_0x105aed||_0xce39b9;_0x11a2dd[_0x385932(0x1a7)]({'path':_0xce39b9[_0x385932(0x1a2)]('$',':'),'label':_0x4e4160});}}}),_0x11a2dd[_0x581195(0x195)](_0x2a4dcc=>_0x2a4dcc[_0x581195(0x1a3)]!=='');}function a89_0x18a9(){const _0x579646=['replaceAll','path','concat','84xYrQWF','.tsx','push','1336531VWYbOZ','1373601soBnpw','slice','isDirectory','src/pages','70ABwBBs','22968OlcpYO','19358utDSRw','4uJdJVM','290225yXOkqT','4742868FwkXmQ','17468HzwsVM','filter','72ipaqGO','utf-8','943227TKZilC','index.tsx','split','match','trim','endsWith','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','replace','cwd','forEach'];a89_0x18a9=function(){return _0x579646;};return a89_0x18a9();}
@@ -1 +1 @@
1
- (function(_0x1f250b,_0x317829){const _0x590b75=a90_0x34d3,_0x281253=_0x1f250b();while(!![]){try{const _0x10ac28=-parseInt(_0x590b75(0x10e))/0x1*(parseInt(_0x590b75(0x113))/0x2)+-parseInt(_0x590b75(0x126))/0x3*(-parseInt(_0x590b75(0x118))/0x4)+-parseInt(_0x590b75(0x10d))/0x5*(-parseInt(_0x590b75(0x120))/0x6)+parseInt(_0x590b75(0x11f))/0x7+-parseInt(_0x590b75(0x115))/0x8+parseInt(_0x590b75(0x116))/0x9+-parseInt(_0x590b75(0x121))/0xa;if(_0x10ac28===_0x317829)break;else _0x281253['push'](_0x281253['shift']());}catch(_0x3b1c89){_0x281253['push'](_0x281253['shift']());}}}(a90_0x3178,0x2d20c));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a90_0x34d3(_0x31215a,_0x10751b){_0x31215a=_0x31215a-0x10c;const _0x317807=a90_0x3178();let _0x34d3e4=_0x317807[_0x31215a];return _0x34d3e4;}import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x26997c){const _0x38d1f9=a90_0x34d3,_0x3e3079=[];return!isValidJsHttpsUrl(_0x26997c)&&_0x3e3079[_0x38d1f9(0x119)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x3e3079[_0x38d1f9(0x111)]===0x0,'errors':_0x3e3079};}export function validateCssUrl(_0x4a4829){const _0x1ad31f=a90_0x34d3,_0x59d7e9=[];return!isValidCssHttpsUrl(_0x4a4829)&&_0x59d7e9[_0x1ad31f(0x119)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x59d7e9[_0x1ad31f(0x111)]===0x0,'errors':_0x59d7e9};}export async function validateJsUrlReachable(_0x155c15){const _0x4965ad=a90_0x34d3,_0x3b28b3=validateJsUrl(_0x155c15);if(!_0x3b28b3['ok'])return _0x3b28b3;const _0x35fd25=await isUrlReachable(_0x155c15);if(!_0x35fd25)_0x3b28b3[_0x4965ad(0x10f)]['push'](_0x4965ad(0x128));return{'ok':_0x3b28b3[_0x4965ad(0x10f)][_0x4965ad(0x111)]===0x0,'errors':_0x3b28b3[_0x4965ad(0x10f)]};}export async function validateCssUrlReachable(_0x19f692){const _0xacb5c7=a90_0x34d3,_0x16aac0=validateCssUrl(_0x19f692);if(!_0x16aac0['ok'])return _0x16aac0;const _0x147409=await isUrlReachable(_0x19f692);if(!_0x147409)_0x16aac0[_0xacb5c7(0x10f)]['push'](_0xacb5c7(0x124));return{'ok':_0x16aac0[_0xacb5c7(0x10f)][_0xacb5c7(0x111)]===0x0,'errors':_0x16aac0[_0xacb5c7(0x10f)]};}export function buildCompareRows(_0x580dba,_0x215c4e){const _0x272cc1=a90_0x34d3;return _0x580dba[_0x272cc1(0x117)](_0x587c32=>({'label':_0x587c32[_0x272cc1(0x10c)],'path':_0x587c32[_0x272cc1(0x11c)],'local':!![],'online':_0x215c4e[_0x272cc1(0x127)](_0x587c32['path'])}));}export function filterNewPages(_0x566f14,_0x5ee4d2,_0x55fdd6){const _0x660b=a90_0x34d3;if(_0x55fdd6&&_0x55fdd6[_0x660b(0x111)]>0x0){const _0x302cf8=new Set(_0x55fdd6['map'](_0x5381e6=>_0x5381e6[_0x660b(0x125)]())),_0x137151=_0x566f14[_0x660b(0x114)](_0x4fa638=>_0x302cf8[_0x660b(0x127)](_0x4fa638[_0x660b(0x10c)]));if(_0x137151[_0x660b(0x111)]===0x0)throw new Error(_0x660b(0x11e)+[..._0x302cf8]['join'](',\x20'));return _0x137151;}return _0x566f14[_0x660b(0x114)](_0x198d55=>!_0x5ee4d2[_0x660b(0x127)](_0x198d55[_0x660b(0x11c)]));}export function filterPagesByLabels(_0x36572d,_0x2e3df1){const _0x286135=a90_0x34d3,_0x14ae2b=[],_0x157f7f=[];for(const _0x475d20 of _0x2e3df1){const _0x4e6050=_0x475d20['trim'](),_0x6534ab=_0x36572d['find'](_0x3af8fa=>_0x3af8fa[_0x286135(0x10c)]===_0x4e6050);if(_0x6534ab)_0x14ae2b[_0x286135(0x119)](_0x6534ab);else _0x157f7f[_0x286135(0x119)](_0x475d20);}return{'matched':_0x14ae2b,'unmatched':_0x157f7f};}export async function doCreateMenus(_0x301ef3,_0x19bfd0,_0x4e4220,_0x41ef2b){const _0x2c2350=a90_0x34d3,_0x501d57=await createMenus(_0x301ef3,_0x19bfd0,_0x4e4220,_0x41ef2b);return{'created':_0x501d57[_0x2c2350(0x111)],'failed':0x0,'labels':_0x4e4220[_0x2c2350(0x117)](_0x240c58=>_0x240c58[_0x2c2350(0x10c)]),'menus':_0x501d57};}export function filterMenusWithResources(_0x578a85){const _0x1c0869=a90_0x34d3;return _0x578a85[_0x1c0869(0x114)](_0x3b5f7e=>_0x3b5f7e[_0x1c0869(0x123)]['length']>0x0);}export async function doUpdateCdnUrls(_0x1f9e2c,_0x552786,_0x1f459b,_0x2d2c0a){const _0x2f81ba=a90_0x34d3,_0x115a9b=_0x1f459b[_0x2f81ba(0x114)](_0xd4338e=>_0xd4338e[_0x2f81ba(0x123)][_0x2f81ba(0x111)]>0x0),_0x51d6f9=await Promise[_0x2f81ba(0x122)](_0x115a9b[_0x2f81ba(0x117)](_0xe43c26=>updateMenuCdnUrl(_0x1f9e2c,_0x552786,{'id':_0xe43c26['id'],'label':_0xe43c26[_0x2f81ba(0x10c)],'path':_0xe43c26[_0x2f81ba(0x11c)],'resources':_0x2d2c0a,'extend':_0xe43c26[_0x2f81ba(0x11d)]??null}))),_0x3b871f=_0x51d6f9[_0x2f81ba(0x114)](_0x14f71d=>_0x14f71d[_0x2f81ba(0x110)]===_0x2f81ba(0x11a))['map'](_0x15ec97=>_0x15ec97[_0x2f81ba(0x112)]),_0x49ea56=_0x51d6f9[_0x2f81ba(0x114)](_0x175048=>_0x175048['status']===_0x2f81ba(0x11b))['length'];return{'updated':_0x3b871f[_0x2f81ba(0x111)],'failed':_0x49ea56,'menus':_0x3b871f};}function a90_0x3178(){const _0x5357cc=['status','length','value','662338anBMpm','filter','438728omZRpE','698013hpYjKZ','map','5192MGwDQI','push','fulfilled','rejected','path','extend','No\x20local\x20pages\x20matched\x20labels:\x20','2552641cjLgFo','210qmBEwZ','943850HTIdkl','allSettled','resources','CSS\x20URL\x20is\x20unreachable','trim','69zquLxV','has','JS\x20URL\x20is\x20unreachable','label','27595XPKUpg','1VsvQYd','errors'];a90_0x3178=function(){return _0x5357cc;};return a90_0x3178();}export async function fetchMenuData(_0x2e0d79,_0x2d524c){const _0x287075=a90_0x34d3,_0x14b8e4=getLocalPages(),_0x1d80c6=await getOnlineMenuList(_0x2e0d79,_0x2d524c),_0x321dc3=new Set(_0x1d80c6[_0x287075(0x117)](_0x1fdd56=>_0x1fdd56[_0x287075(0x11c)]));return{'localPages':_0x14b8e4,'onlineMenuList':_0x1d80c6,'onlinePaths':_0x321dc3};}export async function fetchOnlineMenuList(_0x11265c,_0x10dfec){return getOnlineMenuList(_0x11265c,_0x10dfec);}
1
+ (function(_0x18b15c,_0x42dc85){const _0x5ae839=a90_0x4c86,_0xb8ce04=_0x18b15c();while(!![]){try{const _0x246bdc=-parseInt(_0x5ae839(0x1dc))/0x1*(parseInt(_0x5ae839(0x1e3))/0x2)+parseInt(_0x5ae839(0x1de))/0x3+-parseInt(_0x5ae839(0x1d4))/0x4+-parseInt(_0x5ae839(0x1e4))/0x5+-parseInt(_0x5ae839(0x1dd))/0x6+-parseInt(_0x5ae839(0x1e5))/0x7*(-parseInt(_0x5ae839(0x1cc))/0x8)+parseInt(_0x5ae839(0x1d3))/0x9;if(_0x246bdc===_0x42dc85)break;else _0xb8ce04['push'](_0xb8ce04['shift']());}catch(_0x38758f){_0xb8ce04['push'](_0xb8ce04['shift']());}}}(a90_0x521a,0xf2c7e));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';function a90_0x4c86(_0x4cdd58,_0x531c03){_0x4cdd58=_0x4cdd58-0x1ca;const _0x521aa6=a90_0x521a();let _0x4c865f=_0x521aa6[_0x4cdd58];return _0x4c865f;}export function validateJsUrl(_0x844726){const _0x47a3d5=a90_0x4c86,_0xc20b6d=[];return!isValidJsHttpsUrl(_0x844726)&&_0xc20b6d[_0x47a3d5(0x1cf)](_0x47a3d5(0x1d5)),{'ok':_0xc20b6d[_0x47a3d5(0x1ce)]===0x0,'errors':_0xc20b6d};}export function validateCssUrl(_0x4d991e){const _0x5734c9=a90_0x4c86,_0x12ea71=[];return!isValidCssHttpsUrl(_0x4d991e)&&_0x12ea71[_0x5734c9(0x1cf)](_0x5734c9(0x1d9)),{'ok':_0x12ea71['length']===0x0,'errors':_0x12ea71};}export async function validateJsUrlReachable(_0x31abf4){const _0x4defbd=a90_0x4c86,_0x36a287=validateJsUrl(_0x31abf4);if(!_0x36a287['ok'])return _0x36a287;const _0x681ade=await isUrlReachable(_0x31abf4);if(!_0x681ade)_0x36a287[_0x4defbd(0x1e1)][_0x4defbd(0x1cf)](_0x4defbd(0x1e2));return{'ok':_0x36a287['errors'][_0x4defbd(0x1ce)]===0x0,'errors':_0x36a287[_0x4defbd(0x1e1)]};}function a90_0x521a(){const _0x4f3d6a=['length','push','path','status','fulfilled','43465932VCZliK','4010656xASovy','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','join','rejected','resources','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','map','trim','1177481VaRdab','8669730XMqZXN','2504553PgvVvS','label','filter','errors','JS\x20URL\x20is\x20unreachable','2heCSNf','9577205bxOyys','1523501APaKUI','has','CSS\x20URL\x20is\x20unreachable','allSettled','32ecxxCF','find'];a90_0x521a=function(){return _0x4f3d6a;};return a90_0x521a();}export async function validateCssUrlReachable(_0x3e899b){const _0x310b67=a90_0x4c86,_0x41fa0d=validateCssUrl(_0x3e899b);if(!_0x41fa0d['ok'])return _0x41fa0d;const _0x1f4b3b=await isUrlReachable(_0x3e899b);if(!_0x1f4b3b)_0x41fa0d[_0x310b67(0x1e1)]['push'](_0x310b67(0x1ca));return{'ok':_0x41fa0d['errors'][_0x310b67(0x1ce)]===0x0,'errors':_0x41fa0d['errors']};}export function buildCompareRows(_0x57b28c,_0x500910){const _0x4c8487=a90_0x4c86;return _0x57b28c[_0x4c8487(0x1da)](_0x5994c2=>({'label':_0x5994c2['label'],'path':_0x5994c2['path'],'local':!![],'online':_0x500910[_0x4c8487(0x1e6)](_0x5994c2[_0x4c8487(0x1d0)])}));}export function filterNewPages(_0x35ebbe,_0xb9f99d,_0x59758b){const _0x1108f3=a90_0x4c86;if(_0x59758b&&_0x59758b[_0x1108f3(0x1ce)]>0x0){const _0x434c6d=new Set(_0x59758b['map'](_0x4b99c9=>_0x4b99c9[_0x1108f3(0x1db)]())),_0x44d0ed=_0x35ebbe['filter'](_0x3fe2b8=>_0x434c6d[_0x1108f3(0x1e6)](_0x3fe2b8[_0x1108f3(0x1df)]));if(_0x44d0ed[_0x1108f3(0x1ce)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x434c6d][_0x1108f3(0x1d6)](',\x20'));return _0x44d0ed;}return _0x35ebbe[_0x1108f3(0x1e0)](_0x2ef480=>!_0xb9f99d[_0x1108f3(0x1e6)](_0x2ef480[_0x1108f3(0x1d0)]));}export function filterPagesByLabels(_0xc4af5d,_0x5757d5){const _0x4ce5b6=a90_0x4c86,_0x738a6c=[],_0x5aab58=[];for(const _0x163936 of _0x5757d5){const _0x15a099=_0x163936[_0x4ce5b6(0x1db)](),_0x1f4068=_0xc4af5d[_0x4ce5b6(0x1cd)](_0x3195cb=>_0x3195cb[_0x4ce5b6(0x1df)]===_0x15a099);if(_0x1f4068)_0x738a6c[_0x4ce5b6(0x1cf)](_0x1f4068);else _0x5aab58[_0x4ce5b6(0x1cf)](_0x163936);}return{'matched':_0x738a6c,'unmatched':_0x5aab58};}export async function doCreateMenus(_0x1af8df,_0x48c10f,_0x489156,_0x26a700){const _0x30a5cc=a90_0x4c86,_0x2a9c7b=await createMenus(_0x1af8df,_0x48c10f,_0x489156,_0x26a700);return{'created':_0x2a9c7b[_0x30a5cc(0x1ce)],'failed':0x0,'labels':_0x489156[_0x30a5cc(0x1da)](_0x4adad3=>_0x4adad3[_0x30a5cc(0x1df)]),'menus':_0x2a9c7b};}export function filterMenusWithResources(_0x2ad4c1){const _0x4cf6f0=a90_0x4c86;return _0x2ad4c1[_0x4cf6f0(0x1e0)](_0x390d8e=>_0x390d8e[_0x4cf6f0(0x1d8)][_0x4cf6f0(0x1ce)]>0x0);}export async function doUpdateCdnUrls(_0x41a9bc,_0x395f00,_0xab1272,_0x348797){const _0x3cc8c6=a90_0x4c86,_0x49fca8=_0xab1272[_0x3cc8c6(0x1e0)](_0x52aaf4=>_0x52aaf4[_0x3cc8c6(0x1d8)][_0x3cc8c6(0x1ce)]>0x0),_0x45ac7c=await Promise[_0x3cc8c6(0x1cb)](_0x49fca8[_0x3cc8c6(0x1da)](_0xe3758=>updateMenuCdnUrl(_0x41a9bc,_0x395f00,{'id':_0xe3758['id'],'label':_0xe3758[_0x3cc8c6(0x1df)],'path':_0xe3758[_0x3cc8c6(0x1d0)],'resources':_0x348797,'extend':_0xe3758['extend']??null}))),_0x15a24=_0x45ac7c['filter'](_0x571846=>_0x571846[_0x3cc8c6(0x1d1)]===_0x3cc8c6(0x1d2))[_0x3cc8c6(0x1da)](_0x9d78bf=>_0x9d78bf['value']),_0x3ec2f1=_0x45ac7c[_0x3cc8c6(0x1e0)](_0x444ebb=>_0x444ebb[_0x3cc8c6(0x1d1)]===_0x3cc8c6(0x1d7))[_0x3cc8c6(0x1ce)];return{'updated':_0x15a24[_0x3cc8c6(0x1ce)],'failed':_0x3ec2f1,'menus':_0x15a24};}export async function fetchMenuData(_0x10b606,_0x5d6de3){const _0xa88356=a90_0x4c86,_0x1321b4=getLocalPages(),_0x49754b=await getOnlineMenuList(_0x10b606,_0x5d6de3),_0x42f25b=new Set(_0x49754b['map'](_0x36da55=>_0x36da55[_0xa88356(0x1d0)]));return{'localPages':_0x1321b4,'onlineMenuList':_0x49754b,'onlinePaths':_0x42f25b};}export async function fetchOnlineMenuList(_0x20a898,_0x1ba640){return getOnlineMenuList(_0x20a898,_0x1ba640);}
@@ -1 +1 @@
1
- (function(_0x153e53,_0x190591){const _0x16ba8e=a91_0x6076,_0x314405=_0x153e53();while(!![]){try{const _0x3dd298=parseInt(_0x16ba8e(0xfc))/0x1+-parseInt(_0x16ba8e(0xff))/0x2*(-parseInt(_0x16ba8e(0x101))/0x3)+parseInt(_0x16ba8e(0x100))/0x4+parseInt(_0x16ba8e(0xfd))/0x5*(parseInt(_0x16ba8e(0xfb))/0x6)+-parseInt(_0x16ba8e(0x106))/0x7*(-parseInt(_0x16ba8e(0x10f))/0x8)+-parseInt(_0x16ba8e(0x107))/0x9*(parseInt(_0x16ba8e(0x105))/0xa)+-parseInt(_0x16ba8e(0xf6))/0xb;if(_0x3dd298===_0x190591)break;else _0x314405['push'](_0x314405['shift']());}catch(_0x4f03d9){_0x314405['push'](_0x314405['shift']());}}}(a91_0x457b,0x46a23));import{getApiDomain}from'../../../constant/domain.js';function a91_0x6076(_0x5c6961,_0x181d2b){_0x5c6961=_0x5c6961-0xe7;const _0x457b90=a91_0x457b();let _0x607695=_0x457b90[_0x5c6961];return _0x607695;}import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';function a91_0x457b(){const _0x1c8783=['1888844cSldsn','63NDJKgI','get-online-menu-list','parse','Batch\x20menu\x20creation\x20completed,\x20total\x20','22460TGRSVT','973tDnIaU','846MIVNkc','Menu\x20created\x20successfully:\x20','info','Menu\x20assets\x20synced:\x20','create-menu','procode','Server\x20returned\x20empty\x20menu\x20list','map','19456CndrDo','Fetch\x20menu\x20list','resources','/smartapi/menu/find?appCode=','/smartapi/menu/update','/smartapi/menu/create','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','\x20online\x20menus\x20successfully','POST','push','path','extend','import','all','flat','length','label','update-menu-cdn-url','8162550bgvnGh','create-menus','stringify','Creating\x20menu:\x20','Create\x20menu\x20\x22','6apTnZK','241399rXvxAg','864905MtAibn','children','1700PcaFbK'];a91_0x457b=function(){return _0x1c8783;};return a91_0x457b();}export async function getOnlineMenuList(_0x1321e1,_0x214b9c){const _0x2aaee6=a91_0x6076,_0x50d88e=getEnv();logger[_0x2aaee6(0x109)](_0x2aaee6(0x102),isProduction(_0x50d88e)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x1321e1+')':_0x2aaee6(0xea)+_0x1321e1+')');const _0x5aeb86=await platformFetch(getApiDomain()+_0x2aaee6(0xe7)+_0x1321e1,{'cookie':_0x214b9c,'label':_0x2aaee6(0x110)});if(!_0x5aeb86)return logger[_0x2aaee6(0x109)](_0x2aaee6(0x102),_0x2aaee6(0x10d)),[];return logger['info'](_0x2aaee6(0x102),'Fetched\x20'+_0x5aeb86[_0x2aaee6(0xf3)]+_0x2aaee6(0xeb)),_0x5aeb86[_0x2aaee6(0x10e)](flattenMenuItem)[_0x2aaee6(0xf2)]();}function flattenMenuItem(_0x185846){const _0x5f1d9e=a91_0x6076;let _0x37d003=[];try{const _0x45bff5=_0x185846['extend']?.[_0x5f1d9e(0x111)];if(typeof _0x45bff5==='string'){const _0x320286=JSON[_0x5f1d9e(0x103)](_0x45bff5);if(Array['isArray'](_0x320286))_0x37d003=_0x320286[_0x5f1d9e(0x10e)](String);}else Array['isArray'](_0x45bff5)&&(_0x37d003=_0x45bff5[_0x5f1d9e(0x10e)](String));}catch{}const _0x36dbee=[{'id':_0x185846['id'],'path':_0x185846[_0x5f1d9e(0xee)],'label':_0x185846[_0x5f1d9e(0xf4)],'resources':_0x37d003,'extend':_0x185846[_0x5f1d9e(0xef)]??null}];if(_0x185846[_0x5f1d9e(0xfe)]&&_0x185846[_0x5f1d9e(0xfe)][_0x5f1d9e(0xf3)]>0x0)for(const _0x313355 of _0x185846[_0x5f1d9e(0xfe)]){_0x36dbee[_0x5f1d9e(0xed)](...flattenMenuItem(_0x313355));}return _0x36dbee;}export async function createMenu(_0x3bce2b,_0x367da8,_0x35cb65){const _0x19c16a=a91_0x6076;logger[_0x19c16a(0x109)](_0x19c16a(0x10b),_0x19c16a(0xf9)+_0x35cb65[_0x19c16a(0xf4)]+'\x20('+_0x35cb65['path']+')');const _0x3c6e61={'appCode':_0x3bce2b,'type':_0x19c16a(0x10c),'sort':0x0,'extend':{'loadScriptMode':_0x19c16a(0xf0),'resources':_0x35cb65[_0x19c16a(0x111)]?JSON['stringify'](_0x35cb65['resources']):undefined},..._0x35cb65},_0x396c8e=await platformFetch(getApiDomain()+_0x19c16a(0xe9),{'method':_0x19c16a(0xec),'body':_0x3c6e61,'cookie':_0x367da8,'label':_0x19c16a(0xfa)+_0x35cb65[_0x19c16a(0xf4)]+'\x22'});return logger[_0x19c16a(0x109)](_0x19c16a(0x10b),_0x19c16a(0x108)+_0x35cb65[_0x19c16a(0xf4)]),_0x396c8e;}async function createSingleMenu(_0x7f9a46,_0x36b72b,_0x467033,_0x73c655){const _0x34cf1f=a91_0x6076,_0x420998={'appCode':_0x7f9a46,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x34cf1f(0xf0),'resources':_0x73c655?JSON[_0x34cf1f(0xf8)](_0x73c655):undefined},'label':_0x467033['label'],'path':_0x467033['path']},_0x283e4e=await platformFetch(getApiDomain()+_0x34cf1f(0xe9),{'method':_0x34cf1f(0xec),'body':_0x420998,'cookie':_0x36b72b,'label':_0x34cf1f(0xfa)+_0x467033[_0x34cf1f(0xf4)]+'\x22'});return logger[_0x34cf1f(0x109)](_0x34cf1f(0x10b),_0x34cf1f(0x108)+_0x467033[_0x34cf1f(0xf4)]),_0x283e4e;}export async function createMenus(_0x22cb49,_0x1e405f,_0x564096,_0x41ffa1){const _0x415958=a91_0x6076;logger[_0x415958(0x109)](_0x415958(0xf7),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x564096[_0x415958(0xf3)]);const _0x171740=await Promise[_0x415958(0xf1)](_0x564096['map'](_0x38845c=>createSingleMenu(_0x22cb49,_0x1e405f,_0x38845c,_0x41ffa1)));return logger[_0x415958(0x109)](_0x415958(0xf7),_0x415958(0x104)+_0x564096[_0x415958(0xf3)]),_0x171740;}export async function updateMenuCdnUrl(_0x3df9d5,_0x439f90,_0x4ac4e4){const _0x3e4f18=a91_0x6076;logger[_0x3e4f18(0x109)](_0x3e4f18(0xf5),'Updating\x20menu\x20asset\x20links:\x20'+_0x4ac4e4['label']+'\x20('+_0x4ac4e4['path']+')');const _0x564455={'id':_0x4ac4e4['id'],'appCode':_0x3df9d5,'extend':{..._0x4ac4e4['extend']??{},'loadScriptMode':_0x3e4f18(0xf0),'resources':_0x4ac4e4[_0x3e4f18(0x111)]?JSON[_0x3e4f18(0xf8)](_0x4ac4e4[_0x3e4f18(0x111)]):undefined}},_0x26b7f1=await platformFetch(getApiDomain()+_0x3e4f18(0xe8),{'method':_0x3e4f18(0xec),'body':_0x564455,'cookie':_0x439f90,'label':'Update\x20menu\x20assets\x20\x22'+_0x4ac4e4['label']+'\x22'});return logger['info'](_0x3e4f18(0xf5),_0x3e4f18(0x10a)+_0x4ac4e4[_0x3e4f18(0xf4)],undefined),_0x26b7f1;}
1
+ function a91_0x1143(){const _0x57da6c=['Batch\x20menu\x20creation\x20completed,\x20total\x20','590124Osexnz','extend','1798699tCGpoV','string','Fetched\x20','1268nPPvNj','27532560hSlxIw','stringify','Server\x20returned\x20empty\x20menu\x20list','parse','isArray','label','push','1064409hXWEwQ','Menu\x20assets\x20synced:\x20','POST','create-menus','update-menu-cdn-url','resources','Creating\x20menu:\x20','info','procode','8UoVhWR','2885514vgBlbv','children','Fetch\x20menu\x20list','12565bEIgGv','length','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','Update\x20menu\x20assets\x20\x22','path','32733yJIcJn','Create\x20menu\x20\x22','Start\x20batch\x20menu\x20creation,\x20total\x20','/smartapi/menu/create','2FZNDuS','all','Menu\x20created\x20successfully:\x20','1910RkYrOb','/smartapi/menu/update','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','create-menu','import','map','/smartapi/menu/find?appCode=','get-online-menu-list'];a91_0x1143=function(){return _0x57da6c;};return a91_0x1143();}(function(_0x19c6f0,_0x1bf515){const _0x39e635=a91_0x17ef,_0x1207df=_0x19c6f0();while(!![]){try{const _0x3fb20a=-parseInt(_0x39e635(0x97))/0x1+parseInt(_0x39e635(0xad))/0x2*(-parseInt(_0x39e635(0xa1))/0x3)+-parseInt(_0x39e635(0x8f))/0x4*(-parseInt(_0x39e635(0xa4))/0x5)+-parseInt(_0x39e635(0x8a))/0x6+parseInt(_0x39e635(0x8c))/0x7*(parseInt(_0x39e635(0xa0))/0x8)+parseInt(_0x39e635(0xa9))/0x9*(-parseInt(_0x39e635(0x81))/0xa)+parseInt(_0x39e635(0x90))/0xb;if(_0x3fb20a===_0x1bf515)break;else _0x1207df['push'](_0x1207df['shift']());}catch(_0x57ff33){_0x1207df['push'](_0x1207df['shift']());}}}(a91_0x1143,0xb3ff6));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(_0x1edd42,_0x1ea275){const _0x4f0c7d=a91_0x17ef,_0x694f8f=getEnv();logger[_0x4f0c7d(0x9e)](_0x4f0c7d(0x88),isProduction(_0x694f8f)?_0x4f0c7d(0x83)+_0x1edd42+')':_0x4f0c7d(0xa6)+_0x1edd42+')');const _0x375b3e=await platformFetch(getApiDomain()+_0x4f0c7d(0x87)+_0x1edd42,{'cookie':_0x1ea275,'label':_0x4f0c7d(0xa3)});if(!_0x375b3e)return logger['info'](_0x4f0c7d(0x88),_0x4f0c7d(0x92)),[];return logger[_0x4f0c7d(0x9e)](_0x4f0c7d(0x88),_0x4f0c7d(0x8e)+_0x375b3e[_0x4f0c7d(0xa5)]+'\x20online\x20menus\x20successfully'),_0x375b3e['map'](flattenMenuItem)['flat']();}function flattenMenuItem(_0x3036a8){const _0x4bf042=a91_0x17ef;let _0x55273c=[];try{const _0x32ee42=_0x3036a8[_0x4bf042(0x8b)]?.[_0x4bf042(0x9c)];if(typeof _0x32ee42===_0x4bf042(0x8d)){const _0x1a9662=JSON[_0x4bf042(0x93)](_0x32ee42);if(Array[_0x4bf042(0x94)](_0x1a9662))_0x55273c=_0x1a9662[_0x4bf042(0x86)](String);}else Array['isArray'](_0x32ee42)&&(_0x55273c=_0x32ee42[_0x4bf042(0x86)](String));}catch{}const _0x554e53=[{'id':_0x3036a8['id'],'path':_0x3036a8['path'],'label':_0x3036a8[_0x4bf042(0x95)],'resources':_0x55273c,'extend':_0x3036a8[_0x4bf042(0x8b)]??null}];if(_0x3036a8[_0x4bf042(0xa2)]&&_0x3036a8[_0x4bf042(0xa2)][_0x4bf042(0xa5)]>0x0)for(const _0x19797a of _0x3036a8[_0x4bf042(0xa2)]){_0x554e53[_0x4bf042(0x96)](...flattenMenuItem(_0x19797a));}return _0x554e53;}export async function createMenu(_0x2dd0cd,_0x1796bb,_0x82cb9b){const _0x43da49=a91_0x17ef;logger[_0x43da49(0x9e)]('create-menu',_0x43da49(0x9d)+_0x82cb9b[_0x43da49(0x95)]+'\x20('+_0x82cb9b[_0x43da49(0xa8)]+')');const _0x1cae55={'appCode':_0x2dd0cd,'type':_0x43da49(0x9f),'sort':0x0,'extend':{'loadScriptMode':_0x43da49(0x85),'resources':_0x82cb9b[_0x43da49(0x9c)]?JSON[_0x43da49(0x91)](_0x82cb9b[_0x43da49(0x9c)]):undefined},..._0x82cb9b},_0x26356d=await platformFetch(getApiDomain()+_0x43da49(0xac),{'method':_0x43da49(0x99),'body':_0x1cae55,'cookie':_0x1796bb,'label':_0x43da49(0xaa)+_0x82cb9b['label']+'\x22'});return logger[_0x43da49(0x9e)](_0x43da49(0x84),_0x43da49(0x80)+_0x82cb9b['label']),_0x26356d;}async function createSingleMenu(_0x425340,_0x1182bf,_0x26403d,_0x17fdb8){const _0x270572=a91_0x17ef,_0x58711d={'appCode':_0x425340,'type':_0x270572(0x9f),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x17fdb8?JSON[_0x270572(0x91)](_0x17fdb8):undefined},'label':_0x26403d[_0x270572(0x95)],'path':_0x26403d[_0x270572(0xa8)]},_0x124465=await platformFetch(getApiDomain()+_0x270572(0xac),{'method':_0x270572(0x99),'body':_0x58711d,'cookie':_0x1182bf,'label':_0x270572(0xaa)+_0x26403d[_0x270572(0x95)]+'\x22'});return logger[_0x270572(0x9e)]('create-menu',_0x270572(0x80)+_0x26403d[_0x270572(0x95)]),_0x124465;}export async function createMenus(_0x51d833,_0x4d06a3,_0x4525f2,_0x44a5e4){const _0x95a886=a91_0x17ef;logger[_0x95a886(0x9e)](_0x95a886(0x9a),_0x95a886(0xab)+_0x4525f2[_0x95a886(0xa5)]);const _0x30cbb9=await Promise[_0x95a886(0xae)](_0x4525f2[_0x95a886(0x86)](_0xe87194=>createSingleMenu(_0x51d833,_0x4d06a3,_0xe87194,_0x44a5e4)));return logger[_0x95a886(0x9e)](_0x95a886(0x9a),_0x95a886(0x89)+_0x4525f2[_0x95a886(0xa5)]),_0x30cbb9;}function a91_0x17ef(_0x51d6c4,_0x28ef9a){_0x51d6c4=_0x51d6c4-0x80;const _0x1143b4=a91_0x1143();let _0x17ef46=_0x1143b4[_0x51d6c4];return _0x17ef46;}export async function updateMenuCdnUrl(_0x7d434c,_0x4b95c8,_0x531a75){const _0x31d99a=a91_0x17ef;logger['info'](_0x31d99a(0x9b),'Updating\x20menu\x20asset\x20links:\x20'+_0x531a75[_0x31d99a(0x95)]+'\x20('+_0x531a75[_0x31d99a(0xa8)]+')');const _0x472baa={'id':_0x531a75['id'],'appCode':_0x7d434c,'extend':{..._0x531a75[_0x31d99a(0x8b)]??{},'loadScriptMode':_0x31d99a(0x85),'resources':_0x531a75[_0x31d99a(0x9c)]?JSON['stringify'](_0x531a75[_0x31d99a(0x9c)]):undefined}},_0xf3c0ee=await platformFetch(getApiDomain()+_0x31d99a(0x82),{'method':_0x31d99a(0x99),'body':_0x472baa,'cookie':_0x4b95c8,'label':_0x31d99a(0xa7)+_0x531a75[_0x31d99a(0x95)]+'\x22'});return logger[_0x31d99a(0x9e)](_0x31d99a(0x9b),_0x31d99a(0x98)+_0x531a75[_0x31d99a(0x95)],undefined),_0xf3c0ee;}