@lovrabet/rabetbase-cli 2.3.9-beta.2 → 2.3.9

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 (258) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -0
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -0
  103. package/lib/commands/menu/group-create.js +1 -0
  104. package/lib/commands/menu/group-update.js +1 -0
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -0
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -0
  110. package/lib/commands/menu/shared/facts.js +1 -0
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -0
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -0
  177. package/lib/commands/task/status.js +1 -0
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -0
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -0
  215. package/lib/framework/explicit-yes.js +1 -0
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- const a92_0x55e795=a92_0x5a97;function a92_0x15f9(){const _0x49e05f=['\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','missing','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','env','status','✗\x20Expired','value','defaultApp','message','(default)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','1BBgWIf','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','40WKQVcK','accessKey','unknown','259664cVfAOp','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','appcode','351120TtMxcT','20MrXBSk','\x20\x20Merged\x20Config','log','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','gray','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20─','Global','\x20←\x20current','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','red','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','format','apps','read','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Project','✓\x20Valid\x20JSON','riskLevel','cookie','54kQVDqo','pageSize','source','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','length','4952apTvbs','check','8755230zMJMvC','padEnd','verbose','\x20\x20Auth','363060vCYDtB','green','805617YSDEhe','\x20\x20Config\x20JSON','(set\x20via\x20file,\x20length=','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✓\x20Valid','repeat','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','328475gHvraP','(not\x20found)','\x20(default)','(set,\x20length=','(default:\x20','currentApp','bold','slice','doctor','(none)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','raw','appCode','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)'];a92_0x15f9=function(){return _0x49e05f;};return a92_0x15f9();}(function(_0x3e58ca,_0x395037){const _0x16af9b=a92_0x5a97,_0x167c7f=_0x3e58ca();while(!![]){try{const _0x5ac9e2=-parseInt(_0x16af9b(0xcb))/0x1*(-parseInt(_0x16af9b(0xd2))/0x2)+-parseInt(_0x16af9b(0xa4))/0x3+-parseInt(_0x16af9b(0xf2))/0x4*(-parseInt(_0x16af9b(0xd6))/0x5)+-parseInt(_0x16af9b(0xd5))/0x6+parseInt(_0x16af9b(0xac))/0x7*(-parseInt(_0x16af9b(0xcf))/0x8)+parseInt(_0x16af9b(0xed))/0x9*(-parseInt(_0x16af9b(0xa2))/0xa)+parseInt(_0x16af9b(0xf4))/0xb;if(_0x5ac9e2===_0x395037)break;else _0x167c7f['push'](_0x167c7f['shift']());}catch(_0x2dacd9){_0x167c7f['push'](_0x167c7f['shift']());}}}(a92_0x15f9,0x24e9a));import a92_0x469078 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a92_0x5a97(_0x395591,_0xfcff99){_0x395591=_0x395591-0xa1;const _0x15f959=a92_0x15f9();let _0x5a9709=_0x15f959[_0x395591];return _0x5a9709;}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(_0x2483ab){const _0x2dbbe4=a92_0x5a97,_0x16b5dd=GIT_COMMIT!==_0x2dbbe4(0xd1)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2dbbe4(0xb3)](0x0,0xa)+')':VERSION,_0x109dd8=buildConfigFromFlags({}),_0x565405=getCookie();console[_0x2dbbe4(0xd8)](),console['log'](a92_0x469078[_0x2dbbe4(0xb2)](CLI_BIN_NAME+'\x20doctor')),console['log'](a92_0x469078['gray']('─'['repeat'](0x32))),console[_0x2dbbe4(0xd8)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x16b5dd),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xe3)+process['version']),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xe8)+process[_0x2dbbe4(0xbf)]+'\x20'+process['arch']),console[_0x2dbbe4(0xd8)](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xe4))),console['log'](a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xdd)[_0x2dbbe4(0xaa)](0x1e)));const _0x48de88=getGlobalConfigPath(),_0x4e22d6=getProjectConfigPath();console[_0x2dbbe4(0xd8)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x48de88||a92_0x469078['gray']('(not\x20found)'))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xbc)+(_0x4e22d6||a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xad)))),console['log'](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xa5))),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xdd)[_0x2dbbe4(0xaa)](0x1e)));const _0x534f69=(_0x1caf74,_0x1b6cc2)=>{const _0x33f753=_0x2dbbe4;if(!_0x1b6cc2){console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078['gray']('(no\x20file)'));return;}const _0xb0fdeb=inspectCliConfigJsonFile(_0x1b6cc2);if(_0xb0fdeb[_0x33f753(0xc4)]==='ok')console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xa3)](_0x33f753(0xea)));else{if(_0xb0fdeb['status']===_0x33f753(0xb7))console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74['padEnd'](0x11)+'\x20'+a92_0x469078['yellow'](_0x33f753(0xce)));else _0xb0fdeb['status']===_0x33f753(0xc0)?console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xda)]('(missing)')):(console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xe1)]('✗\x20Invalid\x20JSON')),console[_0x33f753(0xd8)]('\x20\x20'+''[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xe1)](_0xb0fdeb[_0x33f753(0xc8)])));}};_0x534f69(_0x2dbbe4(0xde),_0x48de88),_0x534f69(_0x2dbbe4(0xe9),_0x4e22d6),console[_0x2dbbe4(0xd8)](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xd7))),console['log'](a92_0x469078['gray']('\x20\x20─'[_0x2dbbe4(0xaa)](0x1e))),console['log'](_0x2dbbe4(0xbe)+(_0x109dd8[_0x2dbbe4(0xb9)]||a92_0x469078['red'](_0x2dbbe4(0xbb)))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xba)+_0x109dd8[_0x2dbbe4(0xc3)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x109dd8['locale']),console[_0x2dbbe4(0xd8)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x109dd8['apiDir']),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xd9)+(_0x109dd8['defaultApp']||a92_0x469078['gray']('(none)'))),console['log'](_0x2dbbe4(0xe0)+(_0x109dd8[_0x2dbbe4(0xb1)]||a92_0x469078[_0x2dbbe4(0xda)]('(none)'))),console['log']('\x20\x20explicitAppName:\x20'+(_0x109dd8['explicitAppName']||a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xb5)))),console['log'](_0x2dbbe4(0xc1)+(_0x109dd8[_0x2dbbe4(0xe5)]||a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xb0)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xd3)+(_0x109dd8[_0x2dbbe4(0xee)]??a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xc9)))),console['log'](_0x2dbbe4(0xf0)+_0x109dd8[_0x2dbbe4(0xeb)]),console['log'](_0x2dbbe4(0xcd)+_0x109dd8[_0x2dbbe4(0xf6)]),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xb6)+(_0x109dd8[_0x2dbbe4(0xec)]?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xaf)+_0x109dd8[_0x2dbbe4(0xec)][_0x2dbbe4(0xf1)]+')'):_0x565405?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xa6)+_0x565405[_0x2dbbe4(0xf1)]+')'):a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xb5))));const _0x4e398b=Object['keys'](_0x109dd8[_0x2dbbe4(0xe6)]);if(_0x4e398b[_0x2dbbe4(0xf1)]>0x0){console[_0x2dbbe4(0xd8)](),console['log'](a92_0x469078[_0x2dbbe4(0xb2)]('\x20\x20Apps')),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xdd)['repeat'](0x1e)));for(const _0x481833 of _0x4e398b){const _0x27414b=_0x109dd8[_0x2dbbe4(0xe6)][_0x481833],_0xeda647=_0x481833===_0x109dd8[_0x2dbbe4(0xc7)],_0x468e53=_0x481833===_0x109dd8['currentApp'],_0x36a81a=_0x468e53?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xdf)):'',_0x250c27=_0xeda647?_0x2dbbe4(0xae):'';console[_0x2dbbe4(0xd8)]('\x20\x20'+_0x481833+_0x250c27+_0x36a81a),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xca)+_0x27414b[_0x2dbbe4(0xd4)]);const _0x39acca=buildAppDoctorFields(_0x27414b,{'env':_0x109dd8[_0x2dbbe4(0xc3)],'apiDir':_0x109dd8[_0x2dbbe4(0xb8)][_0x2dbbe4(0xc2)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x109dd8[_0x2dbbe4(0xec)]||_0x565405||undefined,'accessKey':_0x109dd8['accessKey']});console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xab)+_0x39acca[_0x2dbbe4(0xc3)][_0x2dbbe4(0xc6)]+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca[_0x2dbbe4(0xc3)][_0x2dbbe4(0xef)]+')')),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xcc)+_0x39acca[_0x2dbbe4(0xc2)]['value']+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca['apiDir']['source']+')'));const _0x697f22=_0x39acca[_0x2dbbe4(0xec)][_0x2dbbe4(0xc6)]?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xaf)+_0x39acca[_0x2dbbe4(0xec)][_0x2dbbe4(0xc6)][_0x2dbbe4(0xf1)]+')'):a92_0x469078[_0x2dbbe4(0xda)]('(none)');console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xbd)+_0x697f22+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca[_0x2dbbe4(0xec)][_0x2dbbe4(0xef)]+')'));const _0x484c9f=_0x39acca[_0x2dbbe4(0xd0)][_0x2dbbe4(0xc6)]?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xaf)+_0x39acca[_0x2dbbe4(0xd0)]['value']['length']+')'):a92_0x469078[_0x2dbbe4(0xda)]('(none)');console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xdc)+_0x484c9f+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca[_0x2dbbe4(0xd0)]['source']+')'));}}console['log'](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)]('\x20\x20API\x20Endpoints')),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xda)]('\x20\x20─'['repeat'](0x1e))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xe2)+getApiDomain()),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xa8)+getUserDomain()),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xa7)+getRuntimeDomain()),console[_0x2dbbe4(0xd8)](),console['log'](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xa1))),console[_0x2dbbe4(0xd8)](a92_0x469078['gray']('\x20\x20─'[_0x2dbbe4(0xaa)](0x1e)));if(_0x565405){const _0x53802c=await getIsSessionValid();console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xdb)+(_0x53802c?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xa9)):a92_0x469078[_0x2dbbe4(0xe1)](_0x2dbbe4(0xc5))));}else console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xdb)+a92_0x469078[_0x2dbbe4(0xe1)]('✗\x20Not\x20logged\x20in'));return console[_0x2dbbe4(0xd8)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x55e795(0xb4),'command':a92_0x55e795(0xf3),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x55e795(0xe7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a93_0x3e6022=a93_0x1239;(function(_0xcb8a6a,_0x4b80c3){const _0x2d87e0=a93_0x1239,_0x32ff19=_0xcb8a6a();while(!![]){try{const _0x1c4c30=-parseInt(_0x2d87e0(0x17b))/0x1*(-parseInt(_0x2d87e0(0x1a1))/0x2)+-parseInt(_0x2d87e0(0x194))/0x3*(parseInt(_0x2d87e0(0x19b))/0x4)+-parseInt(_0x2d87e0(0x193))/0x5+parseInt(_0x2d87e0(0x18f))/0x6*(parseInt(_0x2d87e0(0x19c))/0x7)+parseInt(_0x2d87e0(0x1b6))/0x8+-parseInt(_0x2d87e0(0x199))/0x9+-parseInt(_0x2d87e0(0x1b8))/0xa*(parseInt(_0x2d87e0(0x19f))/0xb);if(_0x1c4c30===_0x4b80c3)break;else _0x32ff19['push'](_0x32ff19['shift']());}catch(_0x1a61bc){_0x32ff19['push'](_0x32ff19['shift']());}}}(a93_0x1716,0x38cc5));import a93_0xd00115 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 a93_0x1239(_0x1e817f,_0x530036){_0x1e817f=_0x1e817f-0x170;const _0x1716b9=a93_0x1716();let _0x123934=_0x1716b9[_0x1e817f];return _0x123934;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a93_0x1716(){const _0x9dc898=['format','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','2267136flomLH','version','10XcSNAD','✓\x20Valid','Project','explicitAppName','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','locale','(default)','bold','message','arch','appcode','empty','⚠\x20Empty\x20(treated\x20as\x20{})','platform','(default:\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','pageSize','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','check','yellow','defaultApp','unknown','\x20\x20─','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','log','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','283TMZnQo','cookie','\x20\x20Config\x20Files','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','read','(missing)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20Merged\x20Config','\x20(default)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','green','(not\x20found)','status','\x20\x20explicitAppName:\x20','✗\x20Expired','6LcILSP','repeat','length','(no\x20file)','1261850eOcEqn','6bnnvss','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','value','(none)','2400372mEvWfC','apps','292616lySUYQ','1891533vvlBHk','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20doctor','625614ZvZhHu','keys','2836fDsPpg','env','(not\x20set)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','slice','raw','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','currentApp','apiDir','(set\x20via\x20file,\x20length=','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20accessKey:\x20\x20','gray','source','verbose'];a93_0x1716=function(){return _0x9dc898;};return a93_0x1716();}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(_0x29c712){const _0x1e3406=a93_0x1239,_0x1a65d9=GIT_COMMIT!==_0x1e3406(0x174)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1e3406(0x1a5)](0x0,0xa)+')':VERSION,_0x3b487e=buildConfigFromFlags({}),_0x16da65=getCookie();console[_0x1e3406(0x178)](),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1c0)](CLI_BIN_NAME+_0x1e3406(0x19e))),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1b1)]('─'['repeat'](0x32))),console[_0x1e3406(0x178)](_0x1e3406(0x1a4)+_0x1a65d9),console[_0x1e3406(0x178)](_0x1e3406(0x195)+process[_0x1e3406(0x1b7)]),console[_0x1e3406(0x178)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1e3406(0x1c6)]+'\x20'+process[_0x1e3406(0x1c2)]),console[_0x1e3406(0x178)](),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1c0)](_0x1e3406(0x17d))),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x175)[_0x1e3406(0x190)](0x1e)));const _0x268b25=getGlobalConfigPath(),_0x436f0c=getProjectConfigPath();console[_0x1e3406(0x178)](_0x1e3406(0x1a7)+(_0x268b25||a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x18b)))),console[_0x1e3406(0x178)](_0x1e3406(0x179)+(_0x436f0c||a93_0xd00115['gray'](_0x1e3406(0x18b)))),console[_0x1e3406(0x178)](),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1c0)]('\x20\x20Config\x20JSON')),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x175)[_0x1e3406(0x190)](0x1e)));const _0x2ac640=(_0x8483cc,_0xf43152)=>{const _0x1fa75e=_0x1e3406;if(!_0xf43152){console[_0x1fa75e(0x178)]('\x20\x20'+_0x8483cc['padEnd'](0x11)+'\x20'+a93_0xd00115[_0x1fa75e(0x1b1)](_0x1fa75e(0x192)));return;}const _0x1a886c=inspectCliConfigJsonFile(_0xf43152);if(_0x1a886c[_0x1fa75e(0x18c)]==='ok')console[_0x1fa75e(0x178)]('\x20\x20'+_0x8483cc[_0x1fa75e(0x180)](0x11)+'\x20'+a93_0xd00115[_0x1fa75e(0x18a)]('✓\x20Valid\x20JSON'));else{if(_0x1a886c['status']===_0x1fa75e(0x1c4))console[_0x1fa75e(0x178)]('\x20\x20'+_0x8483cc[_0x1fa75e(0x180)](0x11)+'\x20'+a93_0xd00115[_0x1fa75e(0x172)](_0x1fa75e(0x1c5)));else _0x1a886c[_0x1fa75e(0x18c)]==='missing'?console['log']('\x20\x20'+_0x8483cc['padEnd'](0x11)+'\x20'+a93_0xd00115['gray'](_0x1fa75e(0x182))):(console[_0x1fa75e(0x178)]('\x20\x20'+_0x8483cc[_0x1fa75e(0x180)](0x11)+'\x20'+a93_0xd00115[_0x1fa75e(0x185)](_0x1fa75e(0x1ae))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a93_0xd00115[_0x1fa75e(0x185)](_0x1a886c[_0x1fa75e(0x1c1)])));}};_0x2ac640(_0x1e3406(0x1bd),_0x268b25),_0x2ac640(_0x1e3406(0x1ba),_0x436f0c),console[_0x1e3406(0x178)](),console[_0x1e3406(0x178)](a93_0xd00115['bold'](_0x1e3406(0x186))),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x175)['repeat'](0x1e))),console[_0x1e3406(0x178)](_0x1e3406(0x17f)+(_0x3b487e['appCode']||a93_0xd00115[_0x1e3406(0x185)](_0x1e3406(0x1a3)))),console[_0x1e3406(0x178)](_0x1e3406(0x184)+_0x3b487e['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b487e[_0x1e3406(0x1be)]),console[_0x1e3406(0x178)](_0x1e3406(0x1ad)+_0x3b487e[_0x1e3406(0x1ab)]),console[_0x1e3406(0x178)](_0x1e3406(0x189)+(_0x3b487e[_0x1e3406(0x173)]||a93_0xd00115[_0x1e3406(0x1b1)]('(none)'))),console[_0x1e3406(0x178)](_0x1e3406(0x19d)+(_0x3b487e[_0x1e3406(0x1aa)]||a93_0xd00115['gray'](_0x1e3406(0x198)))),console['log'](_0x1e3406(0x18d)+(_0x3b487e[_0x1e3406(0x1bb)]||a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x198)))),console[_0x1e3406(0x178)](_0x1e3406(0x1bc)+(_0x3b487e['format']||a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x1c7)+DEFAULT_CONFIG_VALUES[_0x1e3406(0x1b4)]+')'))),console[_0x1e3406(0x178)](_0x1e3406(0x1b5)+(_0x3b487e[_0x1e3406(0x1ca)]??a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x1bf)))),console[_0x1e3406(0x178)](_0x1e3406(0x1cd)+_0x3b487e[_0x1e3406(0x1c9)]),console[_0x1e3406(0x178)](_0x1e3406(0x188)+_0x3b487e[_0x1e3406(0x1b3)]),console[_0x1e3406(0x178)](_0x1e3406(0x17e)+(_0x3b487e['cookie']?a93_0xd00115[_0x1e3406(0x18a)](_0x1e3406(0x196)+_0x3b487e['cookie']['length']+')'):_0x16da65?a93_0xd00115[_0x1e3406(0x18a)](_0x1e3406(0x1ac)+_0x16da65[_0x1e3406(0x191)]+')'):a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x198))));const _0x5622c8=Object[_0x1e3406(0x1a0)](_0x3b487e[_0x1e3406(0x19a)]);if(_0x5622c8[_0x1e3406(0x191)]>0x0){console['log'](),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1c0)]('\x20\x20Apps')),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x175)['repeat'](0x1e)));for(const _0x5b144d of _0x5622c8){const _0x5132f6=_0x3b487e['apps'][_0x5b144d],_0x560503=_0x5b144d===_0x3b487e[_0x1e3406(0x173)],_0x15e3b0=_0x5b144d===_0x3b487e[_0x1e3406(0x1aa)],_0x4f8af4=_0x15e3b0?a93_0xd00115[_0x1e3406(0x18a)]('\x20←\x20current'):'',_0x4048c4=_0x560503?_0x1e3406(0x187):'';console[_0x1e3406(0x178)]('\x20\x20'+_0x5b144d+_0x4048c4+_0x4f8af4),console[_0x1e3406(0x178)](_0x1e3406(0x176)+_0x5132f6[_0x1e3406(0x1c3)]);const _0x2d4a14=buildAppDoctorFields(_0x5132f6,{'env':_0x3b487e['env'],'apiDir':_0x3b487e[_0x1e3406(0x1a6)][_0x1e3406(0x1ab)]||DEFAULT_CONFIG_VALUES[_0x1e3406(0x1ab)],'cookie':_0x3b487e[_0x1e3406(0x17c)]||_0x16da65||undefined,'accessKey':_0x3b487e[_0x1e3406(0x17a)]});console[_0x1e3406(0x178)](_0x1e3406(0x1c8)+_0x2d4a14[_0x1e3406(0x1a2)][_0x1e3406(0x197)]+'\x20\x20'+a93_0xd00115[_0x1e3406(0x1b1)]('('+_0x2d4a14[_0x1e3406(0x1a2)][_0x1e3406(0x1b2)]+')')),console[_0x1e3406(0x178)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x2d4a14[_0x1e3406(0x1ab)][_0x1e3406(0x197)]+'\x20\x20'+a93_0xd00115['gray']('('+_0x2d4a14['apiDir'][_0x1e3406(0x1b2)]+')'));const _0x1e7586=_0x2d4a14['cookie']['value']?a93_0xd00115[_0x1e3406(0x18a)](_0x1e3406(0x196)+_0x2d4a14[_0x1e3406(0x17c)][_0x1e3406(0x197)]['length']+')'):a93_0xd00115[_0x1e3406(0x1b1)]('(none)');console[_0x1e3406(0x178)](_0x1e3406(0x1cb)+_0x1e7586+'\x20\x20'+a93_0xd00115[_0x1e3406(0x1b1)]('('+_0x2d4a14['cookie'][_0x1e3406(0x1b2)]+')'));const _0x21a30a=_0x2d4a14['accessKey'][_0x1e3406(0x197)]?a93_0xd00115[_0x1e3406(0x18a)](_0x1e3406(0x196)+_0x2d4a14[_0x1e3406(0x17a)][_0x1e3406(0x197)][_0x1e3406(0x191)]+')'):a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x198));console[_0x1e3406(0x178)](_0x1e3406(0x1b0)+_0x21a30a+'\x20\x20'+a93_0xd00115[_0x1e3406(0x1b1)]('('+_0x2d4a14['accessKey'][_0x1e3406(0x1b2)]+')'));}}console[_0x1e3406(0x178)](),console['log'](a93_0xd00115['bold'](_0x1e3406(0x1a9))),console['log'](a93_0xd00115[_0x1e3406(0x1b1)](_0x1e3406(0x175)[_0x1e3406(0x190)](0x1e))),console[_0x1e3406(0x178)](_0x1e3406(0x183)+getApiDomain()),console[_0x1e3406(0x178)](_0x1e3406(0x1a8)+getUserDomain()),console[_0x1e3406(0x178)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x1e3406(0x178)](),console[_0x1e3406(0x178)](a93_0xd00115[_0x1e3406(0x1c0)](_0x1e3406(0x170))),console['log'](a93_0xd00115['gray']('\x20\x20─'[_0x1e3406(0x190)](0x1e)));if(_0x16da65){const _0x2467a1=await getIsSessionValid();console['log'](_0x1e3406(0x1cc)+(_0x2467a1?a93_0xd00115[_0x1e3406(0x18a)](_0x1e3406(0x1b9)):a93_0xd00115[_0x1e3406(0x185)](_0x1e3406(0x18e))));}else console[_0x1e3406(0x178)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a93_0xd00115[_0x1e3406(0x185)](_0x1e3406(0x177)));return console[_0x1e3406(0x178)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a93_0x3e6022(0x171),'description':a93_0x3e6022(0x1af),'risk':a93_0x3e6022(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a93_0x1ab15c=a93_0xa16d;(function(_0x1a1083,_0x6d2a56){const _0x252530=a93_0xa16d,_0x88368f=_0x1a1083();while(!![]){try{const _0x568297=-parseInt(_0x252530(0x10b))/0x1*(-parseInt(_0x252530(0xff))/0x2)+-parseInt(_0x252530(0x101))/0x3+parseInt(_0x252530(0x113))/0x4+parseInt(_0x252530(0x104))/0x5*(parseInt(_0x252530(0xfe))/0x6)+-parseInt(_0x252530(0x105))/0x7*(parseInt(_0x252530(0x11d))/0x8)+-parseInt(_0x252530(0x10c))/0x9+parseInt(_0x252530(0x108))/0xa;if(_0x568297===_0x6d2a56)break;else _0x88368f['push'](_0x88368f['shift']());}catch(_0x34f11e){_0x88368f['push'](_0x88368f['shift']());}}}(a93_0x6934,0xa698d));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a93_0xa16d(_0xfe0e27,_0x9e6ef6){_0xfe0e27=_0xfe0e27-0xfc;const _0x6934fa=a93_0x6934();let _0xa16d86=_0x6934fa[_0xfe0e27];return _0xa16d86;}const FILE_FLAG={'name':a93_0x1ab15c(0x109),'type':a93_0x1ab15c(0x10a),'required':!![],'description':a93_0x1ab15c(0x100)},FILEPATH_FLAG={'name':a93_0x1ab15c(0x11b),'type':a93_0x1ab15c(0x10a),'required':!![],'description':a93_0x1ab15c(0x102)},DOWNLOAD_FLAG={'name':'download','type':a93_0x1ab15c(0x11f),'description':a93_0x1ab15c(0x107)},LONG_TERM_FLAG={'name':a93_0x1ab15c(0x10e),'type':a93_0x1ab15c(0x11f),'description':a93_0x1ab15c(0x118)};function a93_0x6934(){const _0xae0e5a=['str','boolean','/smartapi/common/uploadFile','trim','write','6iPWhpJ','132116EmPWYt','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1222278gWRzvD','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','1543445jpDbVc','721189yVccQU','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','9090200eLAiHZ','file','string','17zcsQzE','8811099SmvojM','appCode','long-term','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filePath','validation','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','1797248AgszmJ','read','bool','POST','Uploaded\x20file:\x20','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','File','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filepath','path','56ZhUVXB'];a93_0x6934=function(){return _0xae0e5a;};return a93_0x6934();}function requireFilePath(_0x4a0e22){const _0x5f3cc7=a93_0x1ab15c,_0xf0640a=_0x4a0e22[_0x5f3cc7(0xfc)]();if(!_0xf0640a)throw CliErrors[_0x5f3cc7(0x111)]('filePath\x20is\x20required.');return _0xf0640a;}const fileUpload={'service':a93_0x1ab15c(0x109),'command':'upload','description':a93_0x1ab15c(0x112),'risk':a93_0x1ab15c(0xfd),'flags':[FILE_FLAG],async 'dryRun'(_0x1430c1){const _0x1e9019=a93_0x1ab15c,_0x2d79e0=requireDevelopmentUploadFile(_0x1430c1[_0x1e9019(0x11e)](_0x1e9019(0x109)),_0x1e9019(0x119));return{'method':_0x1e9019(0x116),'url':_0x1e9019(0x120),'body':{'appCode':_0x1430c1[_0x1e9019(0x10d)],'multipart':{'file':_0x2d79e0}},'description':'Preview:\x20upload\x20'+_0x2d79e0[_0x1e9019(0x11c)]+'\x20to\x20development\x20app\x20'+_0x1430c1['appCode']};},async 'execute'(_0x532718){const _0x313976=a93_0x1ab15c,_0x165e9d=requireDevelopmentUploadFile(_0x532718[_0x313976(0x11e)]('file'),_0x313976(0x119)),_0x31378c=await uploadDevelopmentFile(_0x532718[_0x313976(0x10d)],_0x165e9d['path']);return{'ok':!![],'data':_0x31378c,'message':_0x31378c[_0x313976(0x110)]?_0x313976(0x117)+_0x31378c[_0x313976(0x110)]+_0x313976(0x11a):_0x313976(0x10f)};}},fileQueryUrl={'service':'file','command':'query-url','description':a93_0x1ab15c(0x106),'risk':a93_0x1ab15c(0x114),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xae597a){const _0x55df95=a93_0x1ab15c,_0x541c1f=requireFilePath(_0xae597a[_0x55df95(0x11e)]('filepath')),_0x23809d=await queryDevelopmentFileUrl(_0x541c1f,{'download':_0xae597a[_0x55df95(0x115)](_0x55df95(0x103)),'longTerm':_0xae597a['bool'](_0x55df95(0x10e))});return{'ok':!![],'data':_0x23809d};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a94_0x4423(_0x364d6e,_0x4758df){_0x364d6e=_0x364d6e-0xdc;const _0x392725=a94_0x3927();let _0x442387=_0x392725[_0x364d6e];return _0x442387;}const a94_0x148ee1=a94_0x4423;(function(_0x7fa9b0,_0x12944c){const _0x2193c4=a94_0x4423,_0x53e0f8=_0x7fa9b0();while(!![]){try{const _0x25b8e5=-parseInt(_0x2193c4(0xed))/0x1+parseInt(_0x2193c4(0xf6))/0x2+parseInt(_0x2193c4(0xf3))/0x3*(parseInt(_0x2193c4(0xf0))/0x4)+-parseInt(_0x2193c4(0xe4))/0x5+-parseInt(_0x2193c4(0xe3))/0x6*(-parseInt(_0x2193c4(0xf7))/0x7)+-parseInt(_0x2193c4(0xe9))/0x8*(-parseInt(_0x2193c4(0xdc))/0x9)+parseInt(_0x2193c4(0xdf))/0xa*(parseInt(_0x2193c4(0xde))/0xb);if(_0x25b8e5===_0x12944c)break;else _0x53e0f8['push'](_0x53e0f8['shift']());}catch(_0x5ed82b){_0x53e0f8['push'](_0x53e0f8['shift']());}}}(a94_0x3927,0x353d9));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a94_0x148ee1(0xf4),'type':a94_0x148ee1(0xf2),'required':!![],'description':a94_0x148ee1(0xf8)},FILEPATH_FLAG={'name':a94_0x148ee1(0xe7),'type':'string','required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a94_0x148ee1(0xe5),'type':'boolean','description':a94_0x148ee1(0xf5)},LONG_TERM_FLAG={'name':a94_0x148ee1(0xf1),'type':a94_0x148ee1(0xec),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x28d391){const _0x351e0e=a94_0x148ee1,_0xbd6308=_0x28d391['trim']();if(!_0xbd6308)throw CliErrors[_0x351e0e(0xfb)]('filePath\x20is\x20required.');return _0xbd6308;}const fileUpload={'service':'file','command':a94_0x148ee1(0xe2),'description':a94_0x148ee1(0xee),'risk':a94_0x148ee1(0xe1),'flags':[FILE_FLAG],async 'dryRun'(_0x255796){const _0x124559=a94_0x148ee1,_0x4ea2af=requireDevelopmentUploadFile(_0x255796['str'](_0x124559(0xf4)),_0x124559(0xfc));return{'method':_0x124559(0xdd),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x255796[_0x124559(0xe0)],'multipart':{'file':_0x4ea2af}},'description':_0x124559(0xe6)+_0x4ea2af[_0x124559(0xe8)]+_0x124559(0xea)+_0x255796[_0x124559(0xe0)]};},async 'execute'(_0x1d0127){const _0x2ed83e=a94_0x148ee1,_0x28cd69=requireDevelopmentUploadFile(_0x1d0127['str'](_0x2ed83e(0xf4)),'File'),_0x4e744f=await uploadDevelopmentFile(_0x1d0127[_0x2ed83e(0xe0)],_0x28cd69[_0x2ed83e(0xe8)]);return{'ok':!![],'data':_0x4e744f,'message':_0x4e744f[_0x2ed83e(0xf9)]?'Uploaded\x20file:\x20'+_0x4e744f[_0x2ed83e(0xf9)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x2ed83e(0xef)};}},fileQueryUrl={'service':a94_0x148ee1(0xf4),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a94_0x148ee1(0xfa),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x481319){const _0x46e724=a94_0x148ee1,_0x20b30f=requireFilePath(_0x481319['str'](_0x46e724(0xe7))),_0x314f5a=await queryDevelopmentFileUrl(_0x20b30f,{'download':_0x481319['bool'](_0x46e724(0xe5)),'longTerm':_0x481319[_0x46e724(0xeb)](_0x46e724(0xf1))});return{'ok':!![],'data':_0x314f5a};}};function a94_0x3927(){const _0x55db55=['Preview:\x20upload\x20','filepath','path','266456kOWJpo','\x20to\x20development\x20app\x20','bool','boolean','292922nOzhwE','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','72EMPzzf','long-term','string','24942ZWmZjE','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','495866SKhQMH','7CwutzW','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath','read','validation','File','18awpRio','POST','176BOvffp','41110QXWBHb','appCode','write','upload','2329662pokfaI','2036285tgqJnq','download'];a94_0x3927=function(){return _0x55db55;};return a94_0x3927();}export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a94_0x373c8c=a94_0x52e6;(function(_0x57710a,_0xe9bf11){const _0x10622c=a94_0x52e6,_0x221547=_0x57710a();while(!![]){try{const _0x38a514=-parseInt(_0x10622c(0x1bd))/0x1+parseInt(_0x10622c(0x1ac))/0x2+-parseInt(_0x10622c(0x1a3))/0x3+-parseInt(_0x10622c(0x1a6))/0x4*(-parseInt(_0x10622c(0x1b3))/0x5)+-parseInt(_0x10622c(0x1be))/0x6*(-parseInt(_0x10622c(0x1b2))/0x7)+-parseInt(_0x10622c(0x1ab))/0x8+-parseInt(_0x10622c(0x1c8))/0x9*(-parseInt(_0x10622c(0x1aa))/0xa);if(_0x38a514===_0xe9bf11)break;else _0x221547['push'](_0x221547['shift']());}catch(_0x473140){_0x221547['push'](_0x221547['shift']());}}}(a94_0x1b56,0x21645));function a94_0x1b56(){const _0x2145df=['log','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','some','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','str','validation','production','string','boolean','272446KCWoRS','12GGDrEP','write','custom','toLocaleString','appCode','yes','\x20\x20Config:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','检测到旧配置文件,正在自动升级...\x0a','project','27qXjRkk','\x20\x20Default:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','env','global','appcode','map','653364qTuqJv','message','flagMissing','25348mcqhvG','\x0a✓\x20Successfully\x20initialized\x20','nonInteractive','valid','1367570AEUmZg','945552XcAroy','350052xFlAmu','bool','join','Use\x20`','\x20\x20Env:\x20','Usage:\x20','515305xmdyyA','10SLUpUo'];a94_0x1b56=function(){return _0x2145df;};return a94_0x1b56();}import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a94_0x52e6(_0x1edee5,_0xd9e8ed){_0x1edee5=_0x1edee5-0x1a2;const _0x1b5693=a94_0x1b56();let _0x52e669=_0x1b5693[_0x1edee5];return _0x52e669;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x9b1cf7){return{'appCode':_0x9b1cf7,'appName':_0x9b1cf7};}function writeInitConfig(_0x2b8d2c,_0x4e1830,_0x5cc497){const _0x3488ee=a94_0x52e6,_0x3e4825=resolveWriteConfigPath(_0x2b8d2c),_0x10f280=buildCanonicalProjectConfig({},{'appCodes':_0x4e1830[_0x3488ee(0x1a2)](_0x1cd41c=>_0x1cd41c[_0x3488ee(0x1c2)]),'env':_0x5cc497,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3488ee(0x1c1)]()}});writeConfigFile(_0x3e4825,_0x10f280);const _0x277252=_0x2b8d2c===_0x3488ee(0x1cc)?'global':'project';console[_0x3488ee(0x1b4)](_0x3488ee(0x1a7)+_0x277252+'\x20config'),console[_0x3488ee(0x1b4)]('\x20\x20Apps:\x20'+_0x4e1830['map'](_0x1d3ce5=>_0x1d3ce5[_0x3488ee(0x1c2)])[_0x3488ee(0x1ae)](',\x20')),console[_0x3488ee(0x1b4)](_0x3488ee(0x1c9)+_0x10f280['defaultApp']),console[_0x3488ee(0x1b4)](_0x3488ee(0x1b0)+_0x10f280['env']),console['log'](_0x3488ee(0x1c4)+_0x3e4825);}async function runSmartInit(_0x63d6e4){const _0x530e41=a94_0x52e6,_0x28a6e6=process['cwd'](),_0x34cb88=_0x63d6e4['bool'](_0x530e41(0x1cc))?_0x530e41(0x1cc):_0x530e41(0x1c7),_0x405fcd=_0x63d6e4[_0x530e41(0x1b8)]('env')||_0x530e41(0x1ba),_0x13de46=_0x63d6e4[_0x530e41(0x1b8)](_0x530e41(0x1cd))||undefined,_0x3ccab2=_0x63d6e4[_0x530e41(0x1ad)](_0x530e41(0x1c7));if(_0x3ccab2){const {initConfig:_0x430119}=await import('../../commands/project/init.js');return _0x430119({'appcode':_0x13de46,'env':_0x405fcd,'autoYes':_0x63d6e4[_0x530e41(0x1ad)](_0x530e41(0x1c3))});}if(_0x34cb88===_0x530e41(0x1c7)){const _0x3ecab6=existsSync(resolve(_0x28a6e6,NEW_CONFIG_NAME)),_0x2837a1=LEGACY_CONFIG_NAMES[_0x530e41(0x1b6)](_0x4ca196=>existsSync(resolve(_0x28a6e6,_0x4ca196)));if(_0x2837a1&&!_0x3ecab6)return console[_0x530e41(0x1b4)](_0x530e41(0x1c6)),upgradeApp(_0x63d6e4[_0x530e41(0x1a8)],{'yes':_0x63d6e4[_0x530e41(0x1ad)](_0x530e41(0x1c3))});if(_0x3ecab6)throw CliErrors[_0x530e41(0x1b9)](_0x530e41(0x1b5),_0x530e41(0x1af)+CLI_BIN_NAME+_0x530e41(0x1c5));}if(_0x13de46){const _0x40a44c=validateAppcode(_0x13de46);if(!_0x40a44c[_0x530e41(0x1a9)])throw CliErrors[_0x530e41(0x1b9)](_0x40a44c[_0x530e41(0x1a4)]);writeInitConfig(_0x34cb88,[syntheticApp(_0x13de46)],_0x405fcd);return;}if(_0x63d6e4['nonInteractive'])throw CliErrors[_0x530e41(0x1a5)](_0x530e41(0x1cd),_0x530e41(0x1b1)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x51a9b2=getCookie(),_0x4ca332=await selectMultipleApps(_0x51a9b2),_0x3f67a5=_0x4ca332===_0x530e41(0x1c0)?[syntheticApp(await promptCustomAppcode())]:_0x4ca332;writeInitConfig(_0x34cb88,_0x3f67a5,_0x405fcd);}const initFlags=[{'name':a94_0x373c8c(0x1cc),'type':a94_0x373c8c(0x1bc),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a94_0x373c8c(0x1cb),'type':'string','description':'Target\x20environment','default':a94_0x373c8c(0x1ba),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x373c8c(0x1cd),'type':a94_0x373c8c(0x1bb),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a94_0x373c8c(0x1c7),'type':a94_0x373c8c(0x1bc),'description':a94_0x373c8c(0x1ca),'default':![]},{'name':a94_0x373c8c(0x1c3),'type':a94_0x373c8c(0x1bc),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':'run','description':a94_0x373c8c(0x1b7),'risk':a94_0x373c8c(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2343c6){return await runSmartInit(_0x2343c6),{'ok':!![]};}}];
1
+ const a95_0x4903f9=a95_0x3dca;(function(_0x43a7dd,_0x2f39f0){const _0x59efea=a95_0x3dca,_0x2b3b50=_0x43a7dd();while(!![]){try{const _0x1ae62d=parseInt(_0x59efea(0x1e6))/0x1*(parseInt(_0x59efea(0x1e7))/0x2)+-parseInt(_0x59efea(0x213))/0x3+parseInt(_0x59efea(0x1f8))/0x4*(parseInt(_0x59efea(0x1ec))/0x5)+-parseInt(_0x59efea(0x203))/0x6+parseInt(_0x59efea(0x1f3))/0x7*(-parseInt(_0x59efea(0x206))/0x8)+-parseInt(_0x59efea(0x207))/0x9+-parseInt(_0x59efea(0x202))/0xa*(-parseInt(_0x59efea(0x20e))/0xb);if(_0x1ae62d===_0x2f39f0)break;else _0x2b3b50['push'](_0x2b3b50['shift']());}catch(_0xeee5e1){_0x2b3b50['push'](_0x2b3b50['shift']());}}}(a95_0x5773,0x2c5c4));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a95_0x3dca(_0x328613,_0x5b25e6){_0x328613=_0x328613-0x1e1;const _0x577398=a95_0x5773();let _0x3dca23=_0x577398[_0x328613];return _0x3dca23;}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';function a95_0x5773(){const _0x52ddae=['1039073iwiOlT','\x20\x20Config:\x20','nonInteractive','custom','map','146340TcuKtU','App\x20code\x20to\x20initialize\x20with','defaultApp','\x20config','Usage:\x20','\x20\x20Default:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','production','../../commands/project/init.js','boolean','112190ASVIVm','122112ceHLHz','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','global','8rbZjHE','2594241AsjJcq','log','\x20\x20Apps:\x20','init','Target\x20environment','Use\x20`','cwd','429BVMlHe','appCode','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','message','997743DAcHLj','flagMissing','Auto-confirm\x20prompts','join','some','valid','env','appcode','314270RwLkzw','2jZMKFQ','validation','Write\x20to\x20global\x20config\x20instead\x20of\x20project','run','yes','30lCWKAN','toLocaleString','project','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','string','str','\x20\x20Env:\x20'];a95_0x5773=function(){return _0x52ddae;};return a95_0x5773();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x57776c){return{'appCode':_0x57776c,'appName':_0x57776c};}function writeInitConfig(_0x131fa4,_0x589dbf,_0x3869dc){const _0x248cfc=a95_0x3dca,_0x3c06c2=resolveWriteConfigPath(_0x131fa4),_0x33d736=buildCanonicalProjectConfig({},{'appCodes':_0x589dbf[_0x248cfc(0x1f7)](_0x5f15fe=>_0x5f15fe[_0x248cfc(0x20f)]),'env':_0x3869dc,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x248cfc(0x1ed)]()}});writeConfigFile(_0x3c06c2,_0x33d736);const _0x2933f0=_0x131fa4===_0x248cfc(0x205)?'global':'project';console[_0x248cfc(0x208)](_0x248cfc(0x210)+_0x2933f0+_0x248cfc(0x1fb)),console[_0x248cfc(0x208)](_0x248cfc(0x209)+_0x589dbf[_0x248cfc(0x1f7)](_0x203f3c=>_0x203f3c[_0x248cfc(0x20f)])[_0x248cfc(0x1e1)](',\x20')),console[_0x248cfc(0x208)](_0x248cfc(0x1fd)+_0x33d736[_0x248cfc(0x1fa)]),console[_0x248cfc(0x208)](_0x248cfc(0x1f2)+_0x33d736[_0x248cfc(0x1e4)]),console['log'](_0x248cfc(0x1f4)+_0x3c06c2);}async function runSmartInit(_0xfbdbfc){const _0x4b83c9=a95_0x3dca,_0x52f586=process[_0x4b83c9(0x20d)](),_0x25a090=_0xfbdbfc['bool'](_0x4b83c9(0x205))?_0x4b83c9(0x205):_0x4b83c9(0x1ee),_0x3fb6d5=_0xfbdbfc[_0x4b83c9(0x1f1)](_0x4b83c9(0x1e4))||_0x4b83c9(0x1ff),_0x52be4e=_0xfbdbfc[_0x4b83c9(0x1f1)](_0x4b83c9(0x1e5))||undefined,_0x5d403f=_0xfbdbfc['bool']('project');if(_0x5d403f){const {initConfig:_0x4bd182}=await import(_0x4b83c9(0x200));return _0x4bd182({'appcode':_0x52be4e,'env':_0x3fb6d5,'autoYes':_0xfbdbfc['bool'](_0x4b83c9(0x1eb))});}if(_0x25a090===_0x4b83c9(0x1ee)){const _0x447b57=existsSync(resolve(_0x52f586,NEW_CONFIG_NAME)),_0x55fda2=LEGACY_CONFIG_NAMES[_0x4b83c9(0x1e2)](_0x4e9ca9=>existsSync(resolve(_0x52f586,_0x4e9ca9)));if(_0x55fda2&&!_0x447b57)return console[_0x4b83c9(0x208)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0xfbdbfc['nonInteractive'],{'yes':_0xfbdbfc['bool']('yes')});if(_0x447b57)throw CliErrors['validation'](_0x4b83c9(0x211),_0x4b83c9(0x20c)+CLI_BIN_NAME+_0x4b83c9(0x1fe));}if(_0x52be4e){const _0x5ad40c=validateAppcode(_0x52be4e);if(!_0x5ad40c[_0x4b83c9(0x1e3)])throw CliErrors[_0x4b83c9(0x1e8)](_0x5ad40c[_0x4b83c9(0x212)]);writeInitConfig(_0x25a090,[syntheticApp(_0x52be4e)],_0x3fb6d5);return;}if(_0xfbdbfc[_0x4b83c9(0x1f5)])throw CliErrors[_0x4b83c9(0x214)]('appcode',_0x4b83c9(0x1fc)+CLI_BIN_NAME+_0x4b83c9(0x1ef));const _0x183a8d=getCookie(),_0x274cd6=await selectMultipleApps(_0x183a8d),_0x2be8a6=_0x274cd6===_0x4b83c9(0x1f6)?[syntheticApp(await promptCustomAppcode())]:_0x274cd6;writeInitConfig(_0x25a090,_0x2be8a6,_0x3fb6d5);}const initFlags=[{'name':a95_0x4903f9(0x205),'type':'boolean','description':a95_0x4903f9(0x1e9),'default':![]},{'name':a95_0x4903f9(0x1e4),'type':a95_0x4903f9(0x1f0),'description':a95_0x4903f9(0x20b),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a95_0x4903f9(0x1e5),'type':a95_0x4903f9(0x1f0),'description':a95_0x4903f9(0x1f9)},{'name':a95_0x4903f9(0x1ee),'type':a95_0x4903f9(0x201),'description':a95_0x4903f9(0x204),'default':![]},{'name':'yes','type':a95_0x4903f9(0x201),'description':a95_0x4903f9(0x215),'default':![]}];export const initDefinitions=[{'service':a95_0x4903f9(0x20a),'command':a95_0x4903f9(0x1ea),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x57d375){return await runSmartInit(_0x57d375),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a95_0x14c7(_0x579d9b,_0xf21719){_0x579d9b=_0x579d9b-0xd4;const _0x52095a=a95_0x5209();let _0x14c7e2=_0x52095a[_0x579d9b];return _0x14c7e2;}(function(_0x187ed1,_0x137ee7){const _0x5aa448=a95_0x14c7,_0x487fdb=_0x187ed1();while(!![]){try{const _0x41129c=parseInt(_0x5aa448(0xdc))/0x1*(parseInt(_0x5aa448(0xde))/0x2)+parseInt(_0x5aa448(0xd8))/0x3*(parseInt(_0x5aa448(0xd7))/0x4)+-parseInt(_0x5aa448(0xdd))/0x5+parseInt(_0x5aa448(0xda))/0x6+parseInt(_0x5aa448(0xd4))/0x7*(-parseInt(_0x5aa448(0xdb))/0x8)+parseInt(_0x5aa448(0xd9))/0x9*(parseInt(_0x5aa448(0xd6))/0xa)+-parseInt(_0x5aa448(0xd5))/0xb;if(_0x41129c===_0x137ee7)break;else _0x487fdb['push'](_0x487fdb['shift']());}catch(_0x514561){_0x487fdb['push'](_0x487fdb['shift']());}}}(a95_0x5209,0xdc8ee));function a95_0x5209(){const _0x25ecef=['6533045qqgtdz','1959124PHAGPt','4858Vcorhu','4276943yQdClP','10739180xhlLXC','628504UssFbg','27MyiatW','9FBiRWP','3310992zVBxxn','16376VfEeVa','1hYDTFL'];a95_0x5209=function(){return _0x25ecef;};return a95_0x5209();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x200f10,_0x4a9d8a){const _0x2324cb=a96_0x13c4,_0x5f340f=_0x200f10();while(!![]){try{const _0xb54698=parseInt(_0x2324cb(0x88))/0x1*(-parseInt(_0x2324cb(0x87))/0x2)+parseInt(_0x2324cb(0x84))/0x3*(-parseInt(_0x2324cb(0x8c))/0x4)+parseInt(_0x2324cb(0x8f))/0x5*(-parseInt(_0x2324cb(0x89))/0x6)+-parseInt(_0x2324cb(0x8d))/0x7*(parseInt(_0x2324cb(0x85))/0x8)+-parseInt(_0x2324cb(0x8a))/0x9*(parseInt(_0x2324cb(0x8b))/0xa)+-parseInt(_0x2324cb(0x8e))/0xb+parseInt(_0x2324cb(0x86))/0xc;if(_0xb54698===_0x4a9d8a)break;else _0x5f340f['push'](_0x5f340f['shift']());}catch(_0x1f6a15){_0x5f340f['push'](_0x5f340f['shift']());}}}(a96_0x408e,0x608c4));function a96_0x13c4(_0x4d233c,_0xd82763){_0x4d233c=_0x4d233c-0x84;const _0x408ed1=a96_0x408e();let _0x13c4eb=_0x408ed1[_0x4d233c];return _0x13c4eb;}function a96_0x408e(){const _0x2d52cb=['48904DNOVkP','35001876uWdddY','66778OZDROS','16TKpKbZ','30nwqopT','857529AyPRPu','70sMuxqG','4KqboiN','868pyhAjW','2670690gutRYp','269005foGQQU','151095KJAyNM'];a96_0x408e=function(){return _0x2d52cb;};return a96_0x408e();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a96_0x368f84=a96_0x14a1;(function(_0x1eeaf5,_0xf780ed){const _0x5ab36c=a96_0x14a1,_0x5d1c31=_0x1eeaf5();while(!![]){try{const _0x1aaa0d=-parseInt(_0x5ab36c(0x199))/0x1+-parseInt(_0x5ab36c(0x1b2))/0x2*(-parseInt(_0x5ab36c(0x1ac))/0x3)+-parseInt(_0x5ab36c(0x19b))/0x4+parseInt(_0x5ab36c(0x195))/0x5*(parseInt(_0x5ab36c(0x1b1))/0x6)+-parseInt(_0x5ab36c(0x1a9))/0x7*(parseInt(_0x5ab36c(0x19a))/0x8)+parseInt(_0x5ab36c(0x197))/0x9+parseInt(_0x5ab36c(0x193))/0xa;if(_0x1aaa0d===_0xf780ed)break;else _0x5d1c31['push'](_0x5d1c31['shift']());}catch(_0x409282){_0x5d1c31['push'](_0x5d1c31['shift']());}}}(a96_0x306f,0x6d484));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x368f84(0x1a1);const NUDGE_SUPPRESSED_CODES=new Set([a96_0x368f84(0x1a6),a96_0x368f84(0x1ae),'config_missing','not_in_project',a96_0x368f84(0x1af),a96_0x368f84(0x19e),'validation_error',a96_0x368f84(0x1aa)]),defaultWriter=_0x5c8967=>{const _0x977ee6=a96_0x368f84;process[_0x977ee6(0x196)]['write'](_0x5c8967);};export function shouldNudgeForError(_0x1e9557,_0x2bf697){const _0x5d5a43=a96_0x368f84;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2bf697['service']===_0x5d5a43(0x192)&&_0x2bf697[_0x5d5a43(0x19f)]==='report')return![];if(_0x1e9557 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5d5a43(0x1a3)](_0x1e9557[_0x5d5a43(0x19d)]);return!![];}function a96_0x14a1(_0x3c21c1,_0x194ff4){_0x3c21c1=_0x3c21c1-0x192;const _0x306fa5=a96_0x306f();let _0x14a1b7=_0x306fa5[_0x3c21c1];return _0x14a1b7;}export function printIssueReportNudgeForError(_0x2eb405,_0x362098,_0x46fa34=defaultWriter){if(!shouldNudgeForError(_0x2eb405,_0x362098))return;const _0x4117ad=buildSuggestedTitle(_0x2eb405,_0x362098);_0x46fa34(formatNudge(_0x4117ad));}function a96_0x306f(){const _0x4132cf=['stderr','6311889XDCLJW','\x20\x20Set\x20','749296KSifTQ','20920pwyUtX','1754000mDPBjD','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','code','flag_missing','command','trim','RABETBASE_DISABLE_ISSUE_NUDGE','replace','has','length','join','cancelled','=1\x20to\x20silence\x20this\x20hint.','Hit\x20a\x20','1792FPwDYU','network_error','\x20issue\x20report\x20\x5c','177759qDSEzU','\x20\x20\x20\x20--title\x20\x22','auth_required','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:','2352666jIJAtC','16kGdLor','issue','7374000lGLAjj','message','5BxGxNa'];a96_0x306f=function(){return _0x4132cf;};return a96_0x306f();}function buildSuggestedTitle(_0x3e6916,_0x222017){const _0x1eab59=a96_0x368f84,_0x5f2060=_0x3e6916 instanceof Error?_0x3e6916[_0x1eab59(0x194)]:String(_0x3e6916),_0x568108=_0x5f2060['replace'](/[\r\n]+/g,'\x20')[_0x1eab59(0x1a2)](/\s+/g,'\x20')[_0x1eab59(0x1a0)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0xf888b9=CLI_BIN_NAME+'\x20'+_0x222017['service']+'\x20'+_0x222017[_0x1eab59(0x19f)];return _0x568108[_0x1eab59(0x1a4)]>0x0?_0xf888b9+':\x20'+_0x568108:_0xf888b9;}function formatNudge(_0x178c6b){const _0x4a8f17=a96_0x368f84;return['',_0x4a8f17(0x1a8)+CLI_BIN_NAME+_0x4a8f17(0x1b0),'\x20\x20'+CLI_BIN_NAME+_0x4a8f17(0x1ab),_0x4a8f17(0x1ad)+_0x178c6b+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x4a8f17(0x19c),_0x4a8f17(0x198)+NUDGE_OPT_OUT_ENV+_0x4a8f17(0x1a7),''][_0x4a8f17(0x1a5)]('\x0a');}
1
+ function a97_0x5c5a(){const _0x56916c=['config_missing','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','length','2055520mfcJNE','\x20\x20Set\x20','validation_error','write','cancelled','\x22\x20\x5c','slice','trim','unknown_command','flag_missing','RABETBASE_DISABLE_ISSUE_NUDGE','command','replace','10206744wHEeAI','issue','not_in_project','\x20\x20\x20\x20--title\x20\x22','network_error','33HNAWWM','1046290SgYPvg','code','9SjWwQh','522993ovGKbC','4NWUwNN','=1\x20to\x20silence\x20this\x20hint.','stderr','\x20bug?\x20Help\x20us\x20fix\x20it:','44922fnRwnd','7MVrxfk','message','341470lurMzp','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','join','2078878Qtfxke','auth_required','service'];a97_0x5c5a=function(){return _0x56916c;};return a97_0x5c5a();}function a97_0x1d8f(_0x51bd36,_0x340694){_0x51bd36=_0x51bd36-0x11b;const _0x5c5ac4=a97_0x5c5a();let _0x1d8f8d=_0x5c5ac4[_0x51bd36];return _0x1d8f8d;}const a97_0x5da50e=a97_0x1d8f;(function(_0x54358a,_0x5643ff){const _0x2f75d1=a97_0x1d8f,_0x1f9bad=_0x54358a();while(!![]){try{const _0x599514=parseInt(_0x2f75d1(0x12c))/0x1+parseInt(_0x2f75d1(0x13a))/0x2+-parseInt(_0x2f75d1(0x12f))/0x3*(-parseInt(_0x2f75d1(0x130))/0x4)+-parseInt(_0x2f75d1(0x140))/0x5+-parseInt(_0x2f75d1(0x134))/0x6*(parseInt(_0x2f75d1(0x135))/0x7)+parseInt(_0x2f75d1(0x126))/0x8*(-parseInt(_0x2f75d1(0x12e))/0x9)+-parseInt(_0x2f75d1(0x137))/0xa*(-parseInt(_0x2f75d1(0x12b))/0xb);if(_0x599514===_0x5643ff)break;else _0x1f9bad['push'](_0x1f9bad['shift']());}catch(_0x105e72){_0x1f9bad['push'](_0x1f9bad['shift']());}}}(a97_0x5c5a,0xa31a3));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a97_0x5da50e(0x123);const NUDGE_SUPPRESSED_CODES=new Set([a97_0x5da50e(0x11d),a97_0x5da50e(0x13b),a97_0x5da50e(0x13d),a97_0x5da50e(0x128),a97_0x5da50e(0x121),a97_0x5da50e(0x122),a97_0x5da50e(0x11b),a97_0x5da50e(0x12a)]),defaultWriter=_0x884b6a=>{const _0x503502=a97_0x5da50e;process[_0x503502(0x132)][_0x503502(0x11c)](_0x884b6a);};export function shouldNudgeForError(_0x5a6dcf,_0x7c35ed){const _0x49b554=a97_0x5da50e;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x7c35ed[_0x49b554(0x13c)]===_0x49b554(0x127)&&_0x7c35ed[_0x49b554(0x124)]==='report')return![];if(_0x5a6dcf instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x5a6dcf[_0x49b554(0x12d)]);return!![];}export function printIssueReportNudgeForError(_0x426abf,_0x917e0c,_0x4f0f4d=defaultWriter){if(!shouldNudgeForError(_0x426abf,_0x917e0c))return;const _0x30c55f=buildSuggestedTitle(_0x426abf,_0x917e0c);_0x4f0f4d(formatNudge(_0x30c55f));}function buildSuggestedTitle(_0x1395ab,_0x551eeb){const _0x2e9f99=a97_0x5da50e,_0x45a5ed=_0x1395ab instanceof Error?_0x1395ab[_0x2e9f99(0x136)]:String(_0x1395ab),_0x1fe849=_0x45a5ed[_0x2e9f99(0x125)](/[\r\n]+/g,'\x20')[_0x2e9f99(0x125)](/\s+/g,'\x20')[_0x2e9f99(0x120)]()[_0x2e9f99(0x11f)](0x0,0x78)[_0x2e9f99(0x125)](/"/g,'\x5c\x22'),_0x1d329a=CLI_BIN_NAME+'\x20'+_0x551eeb[_0x2e9f99(0x13c)]+'\x20'+_0x551eeb[_0x2e9f99(0x124)];return _0x1fe849[_0x2e9f99(0x13f)]>0x0?_0x1d329a+':\x20'+_0x1fe849:_0x1d329a;}function formatNudge(_0x510318){const _0x5517cd=a97_0x5da50e;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x5517cd(0x133),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x5517cd(0x129)+_0x510318+_0x5517cd(0x11e),_0x5517cd(0x138),_0x5517cd(0x13e),_0x5517cd(0x141)+NUDGE_OPT_OUT_ENV+_0x5517cd(0x131),''][_0x5517cd(0x139)]('\x0a');}
@@ -1 +1 @@
1
- const a97_0x1012e2=a97_0x23bc;(function(_0x4280da,_0x4aef41){const _0x12771e=a97_0x23bc,_0x5df56d=_0x4280da();while(!![]){try{const _0x38c338=-parseInt(_0x12771e(0x20a))/0x1*(-parseInt(_0x12771e(0x221))/0x2)+parseInt(_0x12771e(0x21f))/0x3*(parseInt(_0x12771e(0x1f9))/0x4)+parseInt(_0x12771e(0x1f1))/0x5*(-parseInt(_0x12771e(0x225))/0x6)+-parseInt(_0x12771e(0x216))/0x7*(parseInt(_0x12771e(0x1f8))/0x8)+parseInt(_0x12771e(0x209))/0x9*(-parseInt(_0x12771e(0x201))/0xa)+-parseInt(_0x12771e(0x224))/0xb*(-parseInt(_0x12771e(0x206))/0xc)+parseInt(_0x12771e(0x228))/0xd*(parseInt(_0x12771e(0x21d))/0xe);if(_0x38c338===_0x4aef41)break;else _0x5df56d['push'](_0x5df56d['shift']());}catch(_0x6f5d9e){_0x5df56d['push'](_0x5df56d['shift']());}}}(a97_0x138a,0x82b25));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a97_0x23bc(_0x388dbf,_0x3db291){_0x388dbf=_0x388dbf-0x1ed;const _0x138afc=a97_0x138a();let _0x23bc49=_0x138afc[_0x388dbf];return _0x23bc49;}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='description-file';export const issueReport={'service':a97_0x1012e2(0x20c),'command':a97_0x1012e2(0x226),'description':a97_0x1012e2(0x222),'risk':a97_0x1012e2(0x1fd),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a97_0x1012e2(0x215),'type':a97_0x1012e2(0x207),'required':!![],'description':a97_0x1012e2(0x22a)},{'name':'description','type':a97_0x1012e2(0x207),'description':a97_0x1012e2(0x204)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x1012e2(0x207),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x31488c){const _0x440a9a=a97_0x1012e2,_0x4154b9=_0x31488c['str']('title')['trim'](),_0xd9dabe=_0x31488c[_0x440a9a(0x214)](_0x440a9a(0x229))[_0x440a9a(0x21c)](),_0x4f0883=_0x31488c[_0x440a9a(0x214)](DESCRIPTION_FILE_FLAG)[_0x440a9a(0x21c)]();if(!_0x4154b9)throw CliErrors[_0x440a9a(0x1f4)](_0x440a9a(0x215),_0x440a9a(0x20f));const _0x54047f=_0xd9dabe[_0x440a9a(0x210)]>0x0,_0x3f0c31=_0x4f0883[_0x440a9a(0x210)]>0x0;if(_0x54047f===_0x3f0c31)throw CliErrors[_0x440a9a(0x1fb)](_0x440a9a(0x1ff),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x3f0c31){const _0x1951fc=resolve(process['cwd'](),_0x4f0883);if(!existsSync(_0x1951fc))throw CliErrors[_0x440a9a(0x1fb)](_0x440a9a(0x1fc)+_0x1951fc);}},async 'dryRun'(_0xd9e812){const _0x35fdf1=a97_0x1012e2,_0x2f9a0d=await prepareIssueReport(_0xd9e812);return{'method':'POST','url':_0x35fdf1(0x21b)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2f9a0d['title'],'issue.description':_0x2f9a0d[_0x35fdf1(0x229)],'issue.description_original_bytes':_0x2f9a0d[_0x35fdf1(0x208)]['originalBytes'],'issue.description_truncated':_0x2f9a0d['sanitize'][_0x35fdf1(0x1f0)],'issue.description_redactions':_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1ed)],'issue.description_redaction_kinds':_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1f3)][_0x35fdf1(0x21e)](',')}},'description':[_0x35fdf1(0x217),'descriptionSource:\x20'+_0x2f9a0d[_0x35fdf1(0x213)],_0x2f9a0d[_0x35fdf1(0x203)]?_0x35fdf1(0x1f2)+_0x2f9a0d[_0x35fdf1(0x203)]:null,_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1f0)]?_0x35fdf1(0x1f5)+_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x20b)]+_0x35fdf1(0x212):null,_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1ed)]>0x0?_0x35fdf1(0x218)+_0x2f9a0d['sanitize']['redactionCount']+'\x20('+_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1f3)]['join'](',\x20')+')':null][_0x35fdf1(0x202)](Boolean)[_0x35fdf1(0x21e)]('\x0a')};},async 'execute'(_0x3ecca4){const _0x5ec970=a97_0x1012e2,_0xadb53d=await prepareIssueReport(_0x3ecca4);try{await sendPlatformIssueCollectLog({'title':_0xadb53d[_0x5ec970(0x215)],'description':_0xadb53d['description'],'sanitize':{'originalBytes':_0xadb53d[_0x5ec970(0x208)]['originalBytes'],'truncated':_0xadb53d[_0x5ec970(0x208)][_0x5ec970(0x1f0)],'redactionCount':_0xadb53d[_0x5ec970(0x208)]['redactionCount'],'redactionKinds':_0xadb53d[_0x5ec970(0x208)][_0x5ec970(0x1f3)]}});}catch(_0x3a6937){throw CliErrors[_0x5ec970(0x1f6)](_0x5ec970(0x20e)+(_0x3a6937 instanceof Error?_0x3a6937[_0x5ec970(0x223)]:String(_0x3a6937)),_0x5ec970(0x1ef));}return{'ok':!![],'message':buildResultMessage(_0xadb53d[_0x5ec970(0x208)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title','issue.description','issue.description_original_bytes',_0x5ec970(0x1ee),'issue.description_redactions',_0x5ec970(0x227)],'issue':{'title':_0xadb53d[_0x5ec970(0x215)],'descriptionLength':_0xadb53d[_0x5ec970(0x229)][_0x5ec970(0x210)],'descriptionSource':_0xadb53d[_0x5ec970(0x213)],..._0xadb53d[_0x5ec970(0x203)]?{'descriptionFile':_0xadb53d[_0x5ec970(0x203)]}:{},'sanitize':{'originalBytes':_0xadb53d['sanitize']['originalBytes'],'truncated':_0xadb53d['sanitize']['truncated'],'redactions':_0xadb53d[_0x5ec970(0x208)][_0x5ec970(0x1ed)],'redactionKinds':_0xadb53d[_0x5ec970(0x208)]['redactionKinds']}}}};}};function a97_0x138a(){const _0x3b4f3c=['length','Platform\x20issue\x20reported\x20(','\x20bytes','descriptionSource','str','title','49980RKWjdl','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','redactions:\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','utf8','otel://','trim','1020292Qaezqc','join','1159593YfZpee','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','90SKtbEG','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','message','3036uKQTLq','6ZpKZfD','report','issue.description_redaction_kinds','52FvYPEZ','description','One-line\x20issue\x20summary','Issue\x20description\x20file\x20is\x20empty:\x20','redactionCount','issue.description_truncated','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','truncated','4717570yZoicw','descriptionFile:\x20','redactionKinds','flagMissing','truncated:\x20original\x20','apiError','push','16ujnTRs','4jBZwkF','redacted\x20','validation','File\x20not\x20found:\x20','write','Issue\x20description\x20cannot\x20be\x20empty.','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','inline','3430RtqBcl','filter','descriptionFilePath','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','file','12264ckrxDd','string','sanitize','14049ZWGboj','23743lUkrIn','originalBytes','issue','\x20secret(s):\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.'];a97_0x138a=function(){return _0x3b4f3c;};return a97_0x138a();}function buildResultMessage(_0x3ea37c){const _0x118987=a97_0x1012e2,_0x175396=[];return _0x3ea37c[_0x118987(0x1f0)]&&_0x175396[_0x118987(0x1f7)]('truncated\x20from\x20'+_0x3ea37c[_0x118987(0x20b)]+_0x118987(0x212)),_0x3ea37c[_0x118987(0x1ed)]>0x0&&_0x175396['push'](_0x118987(0x1fa)+_0x3ea37c['redactionCount']+_0x118987(0x20d)+_0x3ea37c['redactionKinds'][_0x118987(0x21e)](',\x20')),_0x175396[_0x118987(0x210)]===0x0?'Platform\x20issue\x20reported':_0x118987(0x211)+_0x175396[_0x118987(0x21e)](';\x20')+')';}async function prepareIssueReport(_0x2bfd52){const _0x36f044=a97_0x1012e2,_0xfc846=_0x2bfd52[_0x36f044(0x214)](_0x36f044(0x215))['trim'](),_0x5d424a=_0x2bfd52[_0x36f044(0x214)](_0x36f044(0x229)),_0x276884=_0x2bfd52[_0x36f044(0x214)](DESCRIPTION_FILE_FLAG)[_0x36f044(0x21c)]();if(!_0x276884){const _0x28bc06=_0x5d424a;if(!_0x28bc06['trim']())throw CliErrors[_0x36f044(0x1fb)](_0x36f044(0x1fe),_0x36f044(0x219));const _0x49926f=sanitizeIssueDescription(_0x28bc06);return{'title':_0xfc846,'description':_0x49926f[_0x36f044(0x229)],'descriptionSource':_0x36f044(0x200),'sanitize':_0x49926f};}const _0x3fb553=resolve(process['cwd'](),_0x276884),_0x5a741b=await readFile(_0x3fb553,_0x36f044(0x21a));if(!_0x5a741b[_0x36f044(0x21c)]())throw CliErrors[_0x36f044(0x1fb)](_0x36f044(0x22b)+_0x3fb553,_0x36f044(0x220));const _0x4bd7d3=sanitizeIssueDescription(_0x5a741b);return{'title':_0xfc846,'description':_0x4bd7d3[_0x36f044(0x229)],'descriptionSource':_0x36f044(0x205),'descriptionFilePath':_0x3fb553,'sanitize':_0x4bd7d3};}
1
+ const a98_0x139d3e=a98_0x57d1;(function(_0x13b220,_0x308a67){const _0x4500a7=a98_0x57d1,_0x2286e0=_0x13b220();while(!![]){try{const _0x47e40c=-parseInt(_0x4500a7(0x16e))/0x1+-parseInt(_0x4500a7(0x15d))/0x2+parseInt(_0x4500a7(0x17e))/0x3+parseInt(_0x4500a7(0x14d))/0x4+-parseInt(_0x4500a7(0x158))/0x5+parseInt(_0x4500a7(0x16f))/0x6+parseInt(_0x4500a7(0x16d))/0x7;if(_0x47e40c===_0x308a67)break;else _0x2286e0['push'](_0x2286e0['shift']());}catch(_0x1b8780){_0x2286e0['push'](_0x2286e0['shift']());}}}(a98_0xf8bd,0x41f09));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a98_0x57d1(_0xd96b71,_0x28f899){_0xd96b71=_0xd96b71-0x147;const _0xf8bd3d=a98_0xf8bd();let _0x57d139=_0xf8bd3d[_0xd96b71];return _0x57d139;}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=a98_0x139d3e(0x159);export const issueReport={'service':a98_0x139d3e(0x14c),'command':a98_0x139d3e(0x149),'description':a98_0x139d3e(0x157),'risk':a98_0x139d3e(0x17f),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a98_0x139d3e(0x162),'flags':[{'name':a98_0x139d3e(0x15e),'type':a98_0x139d3e(0x181),'required':!![],'description':a98_0x139d3e(0x173)},{'name':'description','type':a98_0x139d3e(0x181),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a98_0x139d3e(0x181),'description':a98_0x139d3e(0x180)}],async 'validate'(_0x1c3ffa){const _0x222d25=a98_0x139d3e,_0x523f8a=_0x1c3ffa[_0x222d25(0x161)]('title')['trim'](),_0x129a2b=_0x1c3ffa[_0x222d25(0x161)](_0x222d25(0x165))['trim'](),_0x46542d=_0x1c3ffa[_0x222d25(0x161)](DESCRIPTION_FILE_FLAG)[_0x222d25(0x179)]();if(!_0x523f8a)throw CliErrors[_0x222d25(0x174)](_0x222d25(0x15e),_0x222d25(0x16c));const _0x42b243=_0x129a2b[_0x222d25(0x152)]>0x0,_0x4a8600=_0x46542d[_0x222d25(0x152)]>0x0;if(_0x42b243===_0x4a8600)throw CliErrors[_0x222d25(0x17c)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x222d25(0x183));if(_0x4a8600){const _0x2cdfd0=resolve(process[_0x222d25(0x154)](),_0x46542d);if(!existsSync(_0x2cdfd0))throw CliErrors['validation'](_0x222d25(0x184)+_0x2cdfd0);}},async 'dryRun'(_0x5f29bf){const _0x493761=a98_0x139d3e,_0x2768e1=await prepareIssueReport(_0x5f29bf);return{'method':'POST','url':_0x493761(0x148)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2768e1[_0x493761(0x15e)],'issue.description':_0x2768e1[_0x493761(0x165)],'issue.description_original_bytes':_0x2768e1[_0x493761(0x170)][_0x493761(0x177)],'issue.description_truncated':_0x2768e1[_0x493761(0x170)]['truncated'],'issue.description_redactions':_0x2768e1['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x2768e1['sanitize']['redactionKinds'][_0x493761(0x147)](',')}},'description':[_0x493761(0x15b),_0x493761(0x14b)+_0x2768e1[_0x493761(0x155)],_0x2768e1['descriptionFilePath']?'descriptionFile:\x20'+_0x2768e1[_0x493761(0x14f)]:null,_0x2768e1['sanitize'][_0x493761(0x14e)]?_0x493761(0x172)+_0x2768e1['sanitize']['originalBytes']+'\x20bytes':null,_0x2768e1['sanitize'][_0x493761(0x168)]>0x0?_0x493761(0x169)+_0x2768e1[_0x493761(0x170)][_0x493761(0x168)]+'\x20('+_0x2768e1[_0x493761(0x170)][_0x493761(0x14a)]['join'](',\x20')+')':null]['filter'](Boolean)[_0x493761(0x147)]('\x0a')};},async 'execute'(_0x4972aa){const _0x3c715f=a98_0x139d3e,_0x1b70de=await prepareIssueReport(_0x4972aa);try{await sendPlatformIssueCollectLog({'title':_0x1b70de[_0x3c715f(0x15e)],'description':_0x1b70de[_0x3c715f(0x165)],'sanitize':{'originalBytes':_0x1b70de[_0x3c715f(0x170)][_0x3c715f(0x177)],'truncated':_0x1b70de[_0x3c715f(0x170)][_0x3c715f(0x14e)],'redactionCount':_0x1b70de[_0x3c715f(0x170)][_0x3c715f(0x168)],'redactionKinds':_0x1b70de[_0x3c715f(0x170)]['redactionKinds']}});}catch(_0x41ea8b){throw CliErrors['apiError'](_0x3c715f(0x153)+(_0x41ea8b instanceof Error?_0x41ea8b['message']:String(_0x41ea8b)),_0x3c715f(0x166));}return{'ok':!![],'message':buildResultMessage(_0x1b70de['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3c715f(0x15c),_0x3c715f(0x176),_0x3c715f(0x160),_0x3c715f(0x151),_0x3c715f(0x17a),_0x3c715f(0x15a)],'issue':{'title':_0x1b70de[_0x3c715f(0x15e)],'descriptionLength':_0x1b70de[_0x3c715f(0x165)][_0x3c715f(0x152)],'descriptionSource':_0x1b70de[_0x3c715f(0x155)],..._0x1b70de[_0x3c715f(0x14f)]?{'descriptionFile':_0x1b70de[_0x3c715f(0x14f)]}:{},'sanitize':{'originalBytes':_0x1b70de['sanitize']['originalBytes'],'truncated':_0x1b70de[_0x3c715f(0x170)][_0x3c715f(0x14e)],'redactions':_0x1b70de['sanitize'][_0x3c715f(0x168)],'redactionKinds':_0x1b70de['sanitize']['redactionKinds']}}}};}};function a98_0xf8bd(){const _0x628789=['compress','Issue\x20description\x20file\x20is\x20empty:\x20','truncated\x20from\x20','description','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','push','redactionCount','redactions:\x20','\x20secret(s):\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','2510739LYzxlA','245818JDxUBh','1306974CeDHMH','sanitize','Issue\x20description\x20cannot\x20be\x20empty.','truncated:\x20original\x20','One-line\x20issue\x20summary','flagMissing','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','issue.description','originalBytes','Platform\x20issue\x20reported\x20(','trim','issue.description_redactions','file','validation','redacted\x20','874722pZLJkd','write','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','string','inline','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','File\x20not\x20found:\x20','join','otel://','report','redactionKinds','descriptionSource:\x20','issue','1005372XehLpC','truncated','descriptionFilePath','utf8','issue.description_truncated','length','Failed\x20to\x20report\x20platform\x20issue:\x20','cwd','descriptionSource','Platform\x20issue\x20reported','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','1185460nTRdRU','description-file','issue.description_redaction_kinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','issue.title','732848Jchcae','title','\x20bytes','issue.description_original_bytes','str'];a98_0xf8bd=function(){return _0x628789;};return a98_0xf8bd();}function buildResultMessage(_0x565e2a){const _0x17f949=a98_0x139d3e,_0x3ff0c8=[];return _0x565e2a[_0x17f949(0x14e)]&&_0x3ff0c8['push'](_0x17f949(0x164)+_0x565e2a[_0x17f949(0x177)]+_0x17f949(0x15f)),_0x565e2a[_0x17f949(0x168)]>0x0&&_0x3ff0c8[_0x17f949(0x167)](_0x17f949(0x17d)+_0x565e2a['redactionCount']+_0x17f949(0x16a)+_0x565e2a[_0x17f949(0x14a)]['join'](',\x20')),_0x3ff0c8[_0x17f949(0x152)]===0x0?_0x17f949(0x156):_0x17f949(0x178)+_0x3ff0c8['join'](';\x20')+')';}async function prepareIssueReport(_0xa51213){const _0x2cf2d4=a98_0x139d3e,_0x1c2dad=_0xa51213['str'](_0x2cf2d4(0x15e))['trim'](),_0x316109=_0xa51213[_0x2cf2d4(0x161)](_0x2cf2d4(0x165)),_0x431af5=_0xa51213[_0x2cf2d4(0x161)](DESCRIPTION_FILE_FLAG)[_0x2cf2d4(0x179)]();if(!_0x431af5){const _0x33a1f2=_0x316109;if(!_0x33a1f2['trim']())throw CliErrors[_0x2cf2d4(0x17c)](_0x2cf2d4(0x171),_0x2cf2d4(0x16b));const _0x15c9c5=sanitizeIssueDescription(_0x33a1f2);return{'title':_0x1c2dad,'description':_0x15c9c5[_0x2cf2d4(0x165)],'descriptionSource':_0x2cf2d4(0x182),'sanitize':_0x15c9c5};}const _0xbb73a9=resolve(process['cwd'](),_0x431af5),_0x542d47=await readFile(_0xbb73a9,_0x2cf2d4(0x150));if(!_0x542d47['trim']())throw CliErrors[_0x2cf2d4(0x17c)](_0x2cf2d4(0x163)+_0xbb73a9,_0x2cf2d4(0x175));const _0x540223=sanitizeIssueDescription(_0x542d47);return{'title':_0x1c2dad,'description':_0x540223[_0x2cf2d4(0x165)],'descriptionSource':_0x2cf2d4(0x17b),'descriptionFilePath':_0xbb73a9,'sanitize':_0x540223};}
@@ -1 +1 @@
1
- const a98_0x490513=a98_0x5441;(function(_0x3a4269,_0x522b77){const _0x2c3f1a=a98_0x5441,_0x4e9d75=_0x3a4269();while(!![]){try{const _0x4592f6=-parseInt(_0x2c3f1a(0x199))/0x1*(-parseInt(_0x2c3f1a(0x1ad))/0x2)+-parseInt(_0x2c3f1a(0x1a4))/0x3*(parseInt(_0x2c3f1a(0x1a6))/0x4)+-parseInt(_0x2c3f1a(0x1b5))/0x5*(parseInt(_0x2c3f1a(0x1b6))/0x6)+-parseInt(_0x2c3f1a(0x1a1))/0x7+-parseInt(_0x2c3f1a(0x19d))/0x8*(parseInt(_0x2c3f1a(0x19f))/0x9)+parseInt(_0x2c3f1a(0x1b3))/0xa+parseInt(_0x2c3f1a(0x19e))/0xb;if(_0x4592f6===_0x522b77)break;else _0x4e9d75['push'](_0x4e9d75['shift']());}catch(_0x37a2d4){_0x4e9d75['push'](_0x4e9d75['shift']());}}}(a98_0x48af,0xa07b4));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x490513(0x19b),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a98_0x490513(0x1b7)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x490513(0x198)},{'kind':a98_0x490513(0x1a8),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x490513(0x1a0)},{'kind':a98_0x490513(0x1b1),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a98_0x490513(0x1aa),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x490513(0x1b8)},{'kind':a98_0x490513(0x197),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x490513(0x1af)}];export function sanitizeIssueDescription(_0x1253f2){const _0x375bb4=a98_0x490513,_0x2b9ad5=Buffer['byteLength'](_0x1253f2,_0x375bb4(0x1a3)),_0x510cef=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xce6b5a=_0x1253f2,_0xe4930e=0x0;const _0x35ba31=[];if(!_0x510cef){const _0x19ef6c=protectOssAccessKeyIds(_0xce6b5a);_0xce6b5a=_0x19ef6c[_0x375bb4(0x1a7)];for(const _0x579723 of REDACTION_RULES){let _0x4cd2ae=0x0;_0xce6b5a=_0xce6b5a[_0x375bb4(0x1b2)](_0x579723[_0x375bb4(0x1bb)],(_0x16f981,_0x18adb3)=>{const _0x5c3f3f=_0x375bb4;_0x4cd2ae+=0x1;const _0xee300b=typeof _0x18adb3===_0x5c3f3f(0x1ab)?_0x18adb3:'';return _0xee300b+'['+_0x579723[_0x5c3f3f(0x1ac)]+']';}),_0x4cd2ae>0x0&&(_0xe4930e+=_0x4cd2ae,!_0x35ba31[_0x375bb4(0x19c)](_0x579723['kind'])&&_0x35ba31[_0x375bb4(0x1a9)](_0x579723[_0x375bb4(0x1a2)]));}_0xce6b5a=_0x19ef6c['restore'](_0xce6b5a);}let _0x158012=![];if(Buffer[_0x375bb4(0x1b0)](_0xce6b5a,_0x375bb4(0x1a3))>ISSUE_DESCRIPTION_MAX_BYTES){_0x158012=!![];const _0x135902=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x4bea47=Math[_0x375bb4(0x1ae)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x135902);_0xce6b5a=sliceUtf8Bytes(_0xce6b5a,_0x4bea47)+TRUNCATION_NOTICE;}return{'description':_0xce6b5a,'originalBytes':_0x2b9ad5,'truncated':_0x158012,'redactionCount':_0xe4930e,'redactionKinds':_0x35ba31};}function a98_0x48af(){const _0x56cb2f=['private-key','push','password','string','label','86FFJJNu','max','REDACTED:bearer-jwt','byteLength','access-key','replace','1458840UNipgl','__RB_OSS_ID_','10aarQzE','2407488YEMIDG','REDACTED:cookie','REDACTED:password','from','slice','pattern','bearer-jwt','REDACTED:authorization','25198AENXRO','toString','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','includes','32vNlTZB','14870526ssUTgM','1325493aQqkeq','REDACTED:private-key','2383472FSgtaV','kind','utf8','12tCyCvY','subarray','191832GKGeqy','description'];a98_0x48af=function(){return _0x56cb2f;};return a98_0x48af();}function a98_0x5441(_0x20ee2f,_0x384da8){_0x20ee2f=_0x20ee2f-0x197;const _0x48af49=a98_0x48af();let _0x544137=_0x48af49[_0x20ee2f];return _0x544137;}function protectOssAccessKeyIds(_0x211104){const _0x35889a=a98_0x490513,_0x211e9a=[],_0x27bfb1=_0x211104[_0x35889a(0x1b2)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x2215db,_0x4c1f5e)=>{const _0x95d27c=_0x35889a,_0x3d7aab=_0x211e9a[_0x95d27c(0x1a9)](_0x2215db[_0x95d27c(0x1ba)](_0x4c1f5e['length']))-0x1;return _0x4c1f5e+_0x95d27c(0x1b4)+_0x3d7aab+'__';});return{'description':_0x27bfb1,'restore':_0x445c18=>_0x445c18[_0x35889a(0x1b2)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x48a313,_0x3878f2,_0x33a36e)=>{const _0x12dfae=_0x211e9a[Number(_0x33a36e)];return _0x12dfae===undefined?_0x48a313:''+_0x3878f2+_0x12dfae;})};}function sliceUtf8Bytes(_0x21c2d1,_0x1ed81d){const _0x2f285b=a98_0x490513;if(_0x1ed81d<=0x0)return'';const _0x22f0bf=Buffer[_0x2f285b(0x1b9)](_0x21c2d1,_0x2f285b(0x1a3));if(_0x22f0bf['byteLength']<=_0x1ed81d)return _0x21c2d1;let _0x4fca67=_0x1ed81d;while(_0x4fca67>0x0){const _0x399688=_0x22f0bf[_0x4fca67];if(_0x399688===undefined||(_0x399688&0xc0)!==0x80)break;_0x4fca67-=0x1;}return _0x22f0bf[_0x2f285b(0x1a5)](0x0,_0x4fca67)[_0x2f285b(0x19a)](_0x2f285b(0x1a3));}
1
+ const a99_0x52a26b=a99_0x41ea;(function(_0x101949,_0x407b1b){const _0x287248=a99_0x41ea,_0x273551=_0x101949();while(!![]){try{const _0x3c226a=parseInt(_0x287248(0x144))/0x1*(-parseInt(_0x287248(0x13d))/0x2)+-parseInt(_0x287248(0x145))/0x3+parseInt(_0x287248(0x152))/0x4*(-parseInt(_0x287248(0x155))/0x5)+parseInt(_0x287248(0x146))/0x6*(parseInt(_0x287248(0x14c))/0x7)+-parseInt(_0x287248(0x149))/0x8*(-parseInt(_0x287248(0x15a))/0x9)+parseInt(_0x287248(0x13c))/0xa*(parseInt(_0x287248(0x148))/0xb)+parseInt(_0x287248(0x142))/0xc*(parseInt(_0x287248(0x154))/0xd);if(_0x3c226a===_0x407b1b)break;else _0x273551['push'](_0x273551['shift']());}catch(_0x4d163c){_0x273551['push'](_0x273551['shift']());}}}(a99_0x3914,0x6444a));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a99_0x3914(){const _0x3efdd2=['push','length','toString','label','replace','4COXuer','string','1703zHpkVX','3584095oCEJYh','byteLength','REDACTED:private-key','bearer-jwt','__RB_OSS_ID_','144DqwteU','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','cookie','utf8','kind','private-key','max','270CTLcni','76390QFGdDb','description','authorization','REDACTED:bearer-jwt','REDACTED:password','30252rvapqi','REDACTED:access-key','9BArPHM','20766DEEYCj','1008CvAERa','slice','162943DbpKfz','93184pFktMr','includes','password','23401yZdEXz'];a99_0x3914=function(){return _0x3efdd2;};return a99_0x3914();}const TRUNCATION_NOTICE=a99_0x52a26b(0x15b),REDACTION_RULES=[{'kind':a99_0x52a26b(0x15c),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a99_0x52a26b(0x13f),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a99_0x52a26b(0x13a),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a99_0x52a26b(0x157)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a99_0x52a26b(0x143)},{'kind':a99_0x52a26b(0x14b),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a99_0x52a26b(0x141)},{'kind':a99_0x52a26b(0x158),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a99_0x52a26b(0x140)}];function a99_0x41ea(_0x36d5cd,_0x4d247b){_0x36d5cd=_0x36d5cd-0x13a;const _0x391439=a99_0x3914();let _0x41ea62=_0x391439[_0x36d5cd];return _0x41ea62;}export function sanitizeIssueDescription(_0xeb614d){const _0x4eaa02=a99_0x52a26b,_0x5bc4a7=Buffer[_0x4eaa02(0x156)](_0xeb614d,_0x4eaa02(0x15d)),_0x266ca0=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4d322a=_0xeb614d,_0x2b50a4=0x0;const _0x4165c3=[];if(!_0x266ca0){const _0x1dd2b7=protectOssAccessKeyIds(_0x4d322a);_0x4d322a=_0x1dd2b7[_0x4eaa02(0x13e)];for(const _0x19ce0a of REDACTION_RULES){let _0x42f96a=0x0;_0x4d322a=_0x4d322a[_0x4eaa02(0x151)](_0x19ce0a['pattern'],(_0x37bf21,_0xce43df)=>{const _0x1785d0=_0x4eaa02;_0x42f96a+=0x1;const _0x509991=typeof _0xce43df===_0x1785d0(0x153)?_0xce43df:'';return _0x509991+'['+_0x19ce0a[_0x1785d0(0x150)]+']';}),_0x42f96a>0x0&&(_0x2b50a4+=_0x42f96a,!_0x4165c3[_0x4eaa02(0x14a)](_0x19ce0a[_0x4eaa02(0x15e)])&&_0x4165c3[_0x4eaa02(0x14d)](_0x19ce0a['kind']));}_0x4d322a=_0x1dd2b7['restore'](_0x4d322a);}let _0x29a4a9=![];if(Buffer[_0x4eaa02(0x156)](_0x4d322a,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x29a4a9=!![];const _0x375a7f=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x58c631=Math[_0x4eaa02(0x13b)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x375a7f);_0x4d322a=sliceUtf8Bytes(_0x4d322a,_0x58c631)+TRUNCATION_NOTICE;}return{'description':_0x4d322a,'originalBytes':_0x5bc4a7,'truncated':_0x29a4a9,'redactionCount':_0x2b50a4,'redactionKinds':_0x4165c3};}function protectOssAccessKeyIds(_0x42a52f){const _0x957738=a99_0x52a26b,_0x4edc81=[],_0x486229=_0x42a52f[_0x957738(0x151)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x124a1b,_0x1015f8)=>{const _0x3c1184=_0x957738,_0x4bcd85=_0x4edc81[_0x3c1184(0x14d)](_0x124a1b[_0x3c1184(0x147)](_0x1015f8[_0x3c1184(0x14e)]))-0x1;return _0x1015f8+_0x3c1184(0x159)+_0x4bcd85+'__';});return{'description':_0x486229,'restore':_0x300895=>_0x300895[_0x957738(0x151)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x2b7155,_0x1f09d0,_0x47afd6)=>{const _0x383176=_0x4edc81[Number(_0x47afd6)];return _0x383176===undefined?_0x2b7155:''+_0x1f09d0+_0x383176;})};}function sliceUtf8Bytes(_0x47ff3c,_0x21bb34){const _0x1bd109=a99_0x52a26b;if(_0x21bb34<=0x0)return'';const _0x4227d5=Buffer['from'](_0x47ff3c,'utf8');if(_0x4227d5[_0x1bd109(0x156)]<=_0x21bb34)return _0x47ff3c;let _0xd14a8b=_0x21bb34;while(_0xd14a8b>0x0){const _0xa291b6=_0x4227d5[_0xd14a8b];if(_0xa291b6===undefined||(_0xa291b6&0xc0)!==0x80)break;_0xd14a8b-=0x1;}return _0x4227d5['subarray'](0x0,_0xd14a8b)[_0x1bd109(0x14f)](_0x1bd109(0x15d));}
@@ -1 +1 @@
1
- const a99_0x35e1d2=a99_0x1186;(function(_0x2d183a,_0x5ed239){const _0x2668e1=a99_0x1186,_0x1476de=_0x2d183a();while(!![]){try{const _0xbcb814=parseInt(_0x2668e1(0x119))/0x1+-parseInt(_0x2668e1(0x120))/0x2+parseInt(_0x2668e1(0x110))/0x3+-parseInt(_0x2668e1(0x105))/0x4+parseInt(_0x2668e1(0x107))/0x5*(parseInt(_0x2668e1(0x10d))/0x6)+parseInt(_0x2668e1(0x10a))/0x7*(parseInt(_0x2668e1(0x10e))/0x8)+-parseInt(_0x2668e1(0x10c))/0x9;if(_0xbcb814===_0x5ed239)break;else _0x1476de['push'](_0x1476de['shift']());}catch(_0x2bdd75){_0x1476de['push'](_0x1476de['shift']());}}}(a99_0x40f7,0x64c63));function a99_0x1186(_0xf56925,_0x1cda98){_0xf56925=_0xf56925-0x102;const _0x40f7fe=a99_0x40f7();let _0x11861a=_0x40f7fe[_0xf56925];return _0x11861a;}import{logger}from'../../utils/logger.js';function printLogs(_0x4ba87){const _0x1c6b24=a99_0x1186;if(_0x4ba87[_0x1c6b24(0x111)]===0x0){console[_0x1c6b24(0x102)](_0x1c6b24(0x10b));return;}console[_0x1c6b24(0x102)](_0x1c6b24(0x104)),_0x4ba87['forEach']((_0x562203,_0x30f56a)=>{const _0x5a3099=_0x1c6b24,_0x341557=new Date(_0x562203[_0x5a3099(0x10f)])[_0x5a3099(0x106)]('en-US'),_0xbbef53=_0x562203['level']===_0x5a3099(0x116)?'√':_0x562203[_0x5a3099(0x11a)]===_0x5a3099(0x118)?'×':_0x562203['level']===_0x5a3099(0x121)?'!':'i';console[_0x5a3099(0x102)](_0x30f56a+0x1+'.\x20'+_0xbbef53+'\x20['+_0x562203[_0x5a3099(0x108)]+']\x20'+_0x562203[_0x5a3099(0x11c)]),console[_0x5a3099(0x102)]('\x20\x20\x20Time:\x20'+_0x341557),_0x562203[_0x5a3099(0x11d)]&&console['log'](_0x5a3099(0x124)+_0x562203[_0x5a3099(0x11d)]+'ms'),_0x562203[_0x5a3099(0x109)]&&Object[_0x5a3099(0x113)](_0x562203[_0x5a3099(0x109)])[_0x5a3099(0x111)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x5a3099(0x112)](_0x562203['details'],null,0x2)),console[_0x5a3099(0x102)]('');});}export const logsDefinitions=[{'service':a99_0x35e1d2(0x123),'command':a99_0x35e1d2(0x103),'description':a99_0x35e1d2(0x117),'risk':a99_0x35e1d2(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2cdd24){const _0x4687b1=a99_0x35e1d2;return printLogs(logger[_0x4687b1(0x114)]()),{'ok':!![]};}},{'service':a99_0x35e1d2(0x123),'command':'clear','description':a99_0x35e1d2(0x115),'risk':a99_0x35e1d2(0x122),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4f20f3){const _0x40659e=a99_0x35e1d2;return logger[_0x40659e(0x11b)](),console['log'](_0x40659e(0x11f)),{'ok':!![]};}}];function a99_0x40f7(){const _0x106f71=['*\x20Logs\x20cleared','174114jIUSUz','warn','write','logs','\x20\x20\x20Duration:\x20','log','show','*\x20Lovrabet\x20CLI\x20logs:\x0a','3168372xBbRbq','toLocaleString','395eifYHd','command','details','28qPxxXJ','*\x20No\x20logs\x20found','1313433mZOtzu','6642mxgWjo','1498216crxJlG','timestamp','1341594BpZssH','length','stringify','keys','readLogs','Clear\x20command\x20history\x20logs','success','View\x20command\x20history\x20logs','error','154099fZvLmb','level','clearLogs','message','duration','read'];a99_0x40f7=function(){return _0x106f71;};return a99_0x40f7();}
1
+ function a100_0x4875(){const _0x48e902=['readLogs','success','toLocaleString','log','6vQGCnx','level','7666096SUfVZV','length','2732788zsIvcZ','938303kvUYUv','550277LJPuno','read','clearLogs','stringify','11iAUQyK','logs','2kOcwKb','*\x20Logs\x20cleared','en-US','2363733flttpt','7048530LEVVsV','\x20\x20\x20Time:\x20','warn','write','details','show','View\x20command\x20history\x20logs','keys','\x20\x20\x20Duration:\x20','command','5781835dluUxq','*\x20No\x20logs\x20found','duration','forEach','3typMAc','\x20\x20\x20Details:\x20'];a100_0x4875=function(){return _0x48e902;};return a100_0x4875();}const a100_0x3d1620=a100_0x5eed;(function(_0x17b1bc,_0x1acf40){const _0x1cbbc8=a100_0x5eed,_0xb1ccad=_0x17b1bc();while(!![]){try{const _0x505d98=parseInt(_0x1cbbc8(0xa7))/0x1*(-parseInt(_0x1cbbc8(0xae))/0x2)+parseInt(_0x1cbbc8(0x9c))/0x3*(parseInt(_0x1cbbc8(0xa6))/0x4)+-parseInt(_0x1cbbc8(0x98))/0x5+parseInt(_0x1cbbc8(0xa2))/0x6*(parseInt(_0x1cbbc8(0xa8))/0x7)+parseInt(_0x1cbbc8(0xa4))/0x8+parseInt(_0x1cbbc8(0xb1))/0x9+parseInt(_0x1cbbc8(0xb2))/0xa*(parseInt(_0x1cbbc8(0xac))/0xb);if(_0x505d98===_0x1acf40)break;else _0xb1ccad['push'](_0xb1ccad['shift']());}catch(_0x55b935){_0xb1ccad['push'](_0xb1ccad['shift']());}}}(a100_0x4875,0x90bfa));import{logger}from'../../utils/logger.js';function printLogs(_0x53b887){const _0xe5b74d=a100_0x5eed;if(_0x53b887[_0xe5b74d(0xa5)]===0x0){console['log'](_0xe5b74d(0x99));return;}console[_0xe5b74d(0xa1)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x53b887[_0xe5b74d(0x9b)]((_0x10be07,_0x26c463)=>{const _0x343c93=_0xe5b74d,_0x168c88=new Date(_0x10be07['timestamp'])[_0x343c93(0xa0)](_0x343c93(0xb0)),_0x14b12b=_0x10be07[_0x343c93(0xa3)]===_0x343c93(0x9f)?'√':_0x10be07['level']==='error'?'×':_0x10be07['level']===_0x343c93(0xb4)?'!':'i';console[_0x343c93(0xa1)](_0x26c463+0x1+'.\x20'+_0x14b12b+'\x20['+_0x10be07[_0x343c93(0xbb)]+']\x20'+_0x10be07['message']),console[_0x343c93(0xa1)](_0x343c93(0xb3)+_0x168c88),_0x10be07[_0x343c93(0x9a)]&&console[_0x343c93(0xa1)](_0x343c93(0xba)+_0x10be07['duration']+'ms'),_0x10be07[_0x343c93(0xb6)]&&Object[_0x343c93(0xb9)](_0x10be07[_0x343c93(0xb6)])[_0x343c93(0xa5)]>0x0&&console['log'](_0x343c93(0x9d)+JSON[_0x343c93(0xab)](_0x10be07[_0x343c93(0xb6)],null,0x2)),console[_0x343c93(0xa1)]('');});}function a100_0x5eed(_0x6a9d3b,_0x353e6f){_0x6a9d3b=_0x6a9d3b-0x98;const _0x487523=a100_0x4875();let _0x5eedc7=_0x487523[_0x6a9d3b];return _0x5eedc7;}export const logsDefinitions=[{'service':'logs','command':a100_0x3d1620(0xb7),'description':a100_0x3d1620(0xb8),'risk':a100_0x3d1620(0xa9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3f2c89){const _0x381248=a100_0x3d1620;return printLogs(logger[_0x381248(0x9e)]()),{'ok':!![]};}},{'service':a100_0x3d1620(0xad),'command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a100_0x3d1620(0xb5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2b66c0){const _0x595edf=a100_0x3d1620;return logger[_0x595edf(0xaa)](),console['log'](_0x595edf(0xaf)),{'ok':!![]};}}];
@@ -0,0 +1 @@
1
+ const a101_0x59a30d=a101_0x502f;(function(_0x112bcc,_0x3c7afb){const _0x4f5c5b=a101_0x502f,_0x361ce6=_0x112bcc();while(!![]){try{const _0x40c80b=-parseInt(_0x4f5c5b(0xbe))/0x1+-parseInt(_0x4f5c5b(0xdf))/0x2*(-parseInt(_0x4f5c5b(0xe8))/0x3)+parseInt(_0x4f5c5b(0xb9))/0x4+-parseInt(_0x4f5c5b(0xf3))/0x5+parseInt(_0x4f5c5b(0xee))/0x6*(parseInt(_0x4f5c5b(0xfa))/0x7)+parseInt(_0x4f5c5b(0xf0))/0x8*(parseInt(_0x4f5c5b(0xc6))/0x9)+-parseInt(_0x4f5c5b(0xe1))/0xa*(parseInt(_0x4f5c5b(0xf2))/0xb);if(_0x40c80b===_0x3c7afb)break;else _0x361ce6['push'](_0x361ce6['shift']());}catch(_0xd6469){_0x361ce6['push'](_0x361ce6['shift']());}}}(a101_0x548b,0xc913a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertMenuDeletePlanCurrent,assertMenuDeletePlanExecutable,createMenuDeletePlanFile,mutationPlanFromDeleteFile,readMenuDeletePlan,writeMenuDeletePlan}from'../../commands/menu/shared/delete-plan.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{MENU_EXPECT_FLAGS,MENU_ID_FLAG,asVerificationError,assertExpectedState,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,requireExplicitYes,requireMenu,validateExactId}from'../../commands/menu/shared/mutations.js';import{deleteMenuEntity}from'../../commands/menu/shared/service.js';function a101_0x548b(){const _0x186146=['stringify','Use\x20the\x20platform\x20UI\x20for\x20non-folder\x20menu\x20deletion.','menu\x20list','4428297BMDQYH',';\x20execution\x20must\x20consume\x20','--plan-out\x20is\x20required\x20for\x20menu\x20delete\x20dry-run\x20so\x20execution\x20can\x20consume\x20the\x20reviewed\x20plan.','/smartapi/menu/delete','menu_delete_unsupported_type','plan-out','8257332PJqxQl','unconfirmed','828512AfWcVo','plan\x20delete','1397IfcuSR','6777390MuhueI','hash','\x20direct\x20child\x20menu(s)\x20and\x20cannot\x20be\x20deleted.','\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20absence','\x20has\x20','has','selector','7QLtWHI','Required\x20for\x20execution;\x20consume\x20an\x20unexpired\x20plan\x20created\x20by\x20--plan-out','\x20has\x20an\x20unreadable\x20extend.resources\x20value\x20and\x20cannot\x20be\x20proven\x20empty.','flagMissing','Deleted\x20menu\x20','byId','plan-validation','createdAt','target','pageId','menu_plan_invalid','expect-path','Menu\x20delete\x20plan\x20cascade\x20does\x20not\x20match\x20the\x20reviewed\x20target\x20page\x20facts.','\x20resource\x20URL(s).','Folder\x20','string','menu_delete_page_bound','\x20is\x20still\x20present\x20after\x20the\x20delete\x20request.','4094928ZTbiKA','execute\x20reviewed\x20delete\x20plan','trim','Would\x20delete\x20menu\x20','str','1057026ZBrUln','high-risk-write','verify\x20delete','Use\x20the\x20platform\x20UI,\x20which\x20owns\x20the\x20page\x20and\x20PageSchema\x20cascade.','pre-write-plan-validation','bool','length','Menu\x20delete\x20execution\x20consumes\x20only\x20--plan;\x20remove\x20','99NaiTRF','expiresAt','childrenIds','Required\x20with\x20--dry-run;\x20write\x20the\x20reviewed\x20plan\x20to\x20a\x20new\x20local\x20JSON\x20file','\x20still\x20references\x20','toLowerCase','filter','plan','resourcesValid','path','snapshotHash','Exact\x20empty\x20folder\x20id\x20(required\x20with\x20--dry-run)','--plan\x20is\x20required\x20for\x20menu\x20delete\x20execution.','childrenCount','menu_folder_has_resources','delete','expected-children-count','Backend\x20did\x20not\x20confirm\x20deletion\x20of\x20menu\x20','join','Menu\x20','Delete\x20request\x20for\x20menu\x20','type','cookie','map','appCode','2FVkhcX','rabetbase\x20menu\x20list\x20--format\x20json','140090SHZfmK','validation','Run\x20menu\x20list\x20to\x20check\x20whether\x20the\x20menu\x20still\x20exists\x20before\x20retrying.','cascade'];a101_0x548b=function(){return _0x186146;};return a101_0x548b();}import{CliError,CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':'/smartapi/menu/delete'}],MENU_DELETE_ID_FLAG={...MENU_ID_FLAG,'required':![],'description':a101_0x59a30d(0xd1)},MENU_DELETE_PLAN_OUT_FLAG={'name':a101_0x59a30d(0xed),'type':a101_0x59a30d(0xb6),'description':a101_0x59a30d(0xc9)},MENU_DELETE_PLAN_FLAG={'name':'plan','type':'string','description':a101_0x59a30d(0xfb)};export const menuDelete={'service':'menu','command':'delete','description':'Delete\x20one\x20empty\x20folder\x20from\x20a\x20reviewed\x20plan','risk':a101_0x59a30d(0xbf),'structuredErrors':!![],'flags':[MENU_DELETE_ID_FLAG,MENU_DELETE_PLAN_OUT_FLAG,MENU_DELETE_PLAN_FLAG,...MENU_EXPECT_FLAGS,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x449234){const _0x558a16=a101_0x59a30d;_0x449234[_0x558a16(0xc3)]('dry-run')?validateDeleteDryRunInput(_0x449234):validateDeleteExecuteInput(_0x449234),requireExplicitYes(_0x449234);},async 'dryRun'(_0xcd3112){const _0x36e1de=a101_0x59a30d;validateDeleteDryRunInput(_0xcd3112);const _0x35704a=await buildDeletePlan(_0xcd3112),_0x5521e6=createMenuDeletePlanFile(_0xcd3112[_0x36e1de(0xde)],_0x35704a),_0x485148=await writeMenuDeletePlan(_0xcd3112[_0x36e1de(0xbd)](_0x36e1de(0xed)),_0x5521e6),_0x142ee9=mutationResult({..._0x35704a,'planFile':{'path':_0x485148,'createdAt':_0x5521e6[_0x36e1de(0x101)],'expiresAt':_0x5521e6[_0x36e1de(0xc7)]}});return menuDryRunResult(_0x142ee9,{'method':'POST','url':_0x36e1de(0xeb),'body':{'id':_0x142ee9[_0x36e1de(0xf9)]['id'],'plan':_0x485148,'snapshotHash':_0x142ee9[_0x36e1de(0xd0)]},'description':_0x36e1de(0xbc)+_0x142ee9[_0x36e1de(0xf9)]['id']+_0x36e1de(0xe9)+_0x485148+'.'});},async 'execute'(_0x1db708){const _0xe3ed73=a101_0x59a30d;requireExplicitYes(_0x1db708),validateDeleteExecuteInput(_0x1db708);const _0x2ef3a9=await readMenuDeletePlan(_0x1db708[_0xe3ed73(0xbd)](_0xe3ed73(0xcd))),_0x46d060=mutationPlanFromDeleteFile(_0x2ef3a9[_0xe3ed73(0xcd)],_0x2ef3a9[_0xe3ed73(0xcf)]),_0x3c6956=_0x2ef3a9[_0xe3ed73(0xcd)][_0xe3ed73(0x102)]['id'];try{assertMenuDeletePlanExecutable(_0x2ef3a9['plan'],_0x1db708[_0xe3ed73(0xde)]);}catch(_0x156817){throw menuFailure(asMenuError(_0x156817),_0x46d060,{'stage':_0xe3ed73(0x100),'failed':{'id':_0x3c6956}});}let _0x27c579,_0x471bba;try{_0x27c579=await fetchMutationSnapshot(_0x1db708,_0xe3ed73(0xba),_0x3c6956),_0x471bba=assertMenuDeletePlanCurrent(_0x2ef3a9['plan'],_0x1db708['appCode'],_0x27c579),assertDeleteSafety(_0x471bba),assertCascadeMatchesPlan(_0x46d060,_0x471bba);}catch(_0x3b1822){throw menuFailure(asMenuError(_0x3b1822),_0x46d060,{'stage':_0xe3ed73(0xc2),'failed':{'id':_0x3c6956}});}try{const _0x447c30=await deleteMenuEntity(_0x1db708[_0xe3ed73(0xdc)],_0x3c6956);if(!_0x447c30)throw menuError('menu_delete_failed',_0xe3ed73(0xd7)+_0x3c6956+'.',_0xe3ed73(0xe3));}catch(_0x27ca27){const _0x5c132a=mapMenuApiError(_0x27ca27,_0xe3ed73(0xd5),_0x3c6956);throw menuFailure(_0x5c132a,_0x46d060,{'stage':_0xe3ed73(0xd5),'failed':{'id':_0x3c6956}});}let _0x446116;try{_0x446116=await fetchMenuSnapshot(_0x1db708[_0xe3ed73(0xde)],_0x1db708['cookie']),assertVerified(!_0x446116[_0xe3ed73(0xff)][_0xe3ed73(0xf8)](_0x3c6956),_0xe3ed73(0xd9)+_0x3c6956+_0xe3ed73(0xb8));}catch(_0x3439be){const _0x1f7029=describeMenuErrorCause(_0x3439be,_0xe3ed73(0xc0),_0x3c6956),_0x29247d=asVerificationError(_0x3439be,_0xe3ed73(0xda)+_0x3c6956+_0xe3ed73(0xf6));throw menuFailure(_0x29247d,_0x46d060,{'stage':'verification','succeeded':[{'id':_0x3c6956,'deleteRequested':!![]}],'failed':{'id':_0x3c6956,'targetAbsent':_0xe3ed73(0xef),..._0x1f7029},'warnings':['The\x20delete\x20request\x20was\x20accepted,\x20but\x20its\x20final\x20online\x20state\x20is\x20unconfirmed.'],'verification':{'status':'failed','lookupCommand':_0xe3ed73(0xe0),'targetId':_0x3c6956}});}const _0x4b2d69=mutationResult({..._0x46d060,'dryRun':![],'succeeded':[{'id':_0x3c6956,'deleted':!![]}],'verification':{'checkedBy':_0xe3ed73(0xe7),'plannedSnapshotHash':_0x46d060[_0xe3ed73(0xd0)],'finalSnapshotHash':_0x446116[_0xe3ed73(0xf4)],'targetAbsent':!![]}});return{'ok':!![],'data':_0x4b2d69,'message':_0xe3ed73(0xfe)+_0x3c6956+'.'};}};function validateDeleteDryRunInput(_0x25adf0){const _0x21c66a=a101_0x59a30d;validateExactId(_0x25adf0);if(!hasFlag(_0x25adf0,_0x21c66a(0xed))||!_0x25adf0['str'](_0x21c66a(0xed))[_0x21c66a(0xbb)]())throw CliErrors[_0x21c66a(0xfd)](_0x21c66a(0xed),_0x21c66a(0xea));if(hasFlag(_0x25adf0,_0x21c66a(0xcd)))throw CliErrors[_0x21c66a(0xe2)]('--plan\x20cannot\x20be\x20combined\x20with\x20--dry-run;\x20use\x20--plan-out.');}function a101_0x502f(_0xb5e1f3,_0xcf957c){_0xb5e1f3=_0xb5e1f3-0xb0;const _0x548b55=a101_0x548b();let _0x502f91=_0x548b55[_0xb5e1f3];return _0x502f91;}function validateDeleteExecuteInput(_0x5fc1e0){const _0x1d68ca=a101_0x59a30d;if(!hasFlag(_0x5fc1e0,_0x1d68ca(0xcd))||!_0x5fc1e0[_0x1d68ca(0xbd)](_0x1d68ca(0xcd))['trim']())throw CliErrors[_0x1d68ca(0xfd)]('plan',_0x1d68ca(0xd2));const _0xaf99f9=['id',_0x1d68ca(0xed),'expect-parent-id',_0x1d68ca(0xb2),_0x1d68ca(0xd6)][_0x1d68ca(0xcc)](_0x17f97c=>hasFlag(_0x5fc1e0,_0x17f97c));if(_0xaf99f9[_0x1d68ca(0xc4)]>0x0)throw CliErrors['validation'](_0x1d68ca(0xc5)+_0xaf99f9[_0x1d68ca(0xdd)](_0x523656=>'--'+_0x523656)[_0x1d68ca(0xd8)](',\x20')+'.');}async function buildDeletePlan(_0x2a6b33){const _0x3317a2=a101_0x59a30d,_0x2e5373=validateExactId(_0x2a6b33),_0x20bdd6=await fetchMutationSnapshot(_0x2a6b33,_0x3317a2(0xf1),_0x2e5373),_0x3fa3df=requireMenu(_0x20bdd6,_0x2e5373);return assertExpectedState(_0x2a6b33,_0x3fa3df),assertDeleteSafety(_0x3fa3df),mutationResult({'operation':_0x3317a2(0xd5),'selector':{'id':_0x2e5373},'before':_0x3fa3df,'after':null,'dryRun':!![],'backend':[...BACKEND],'snapshotHash':_0x20bdd6[_0x3317a2(0xf4)],'cascade':cascadeFor(_0x3fa3df),'warnings':[]});}function assertDeleteSafety(_0x20b280){const _0x5af9f8=a101_0x59a30d;if(_0x20b280[_0x5af9f8(0xd3)]>0x0)throw menuError('menu_non_empty',_0x5af9f8(0xd9)+_0x20b280['id']+_0x5af9f8(0xf7)+_0x20b280[_0x5af9f8(0xd3)]+_0x5af9f8(0xf5),'Handle\x20child\x20ids\x20in\x20the\x20platform\x20first:\x20'+_0x20b280[_0x5af9f8(0xc8)][_0x5af9f8(0xd8)](',\x20'));if(_0x20b280[_0x5af9f8(0xb0)]!=null)throw menuError(_0x5af9f8(0xb7),_0x5af9f8(0xd9)+_0x20b280['id']+'\x20is\x20bound\x20to\x20page\x20'+_0x20b280['pageId']+'\x20and\x20cannot\x20be\x20deleted\x20by\x20the\x20CLI.',_0x5af9f8(0xc1));if(_0x20b280[_0x5af9f8(0xdb)][_0x5af9f8(0xbb)]()[_0x5af9f8(0xcb)]()!=='folder')throw menuError(_0x5af9f8(0xec),_0x5af9f8(0xd9)+_0x20b280['id']+'\x20is\x20type\x20\x22'+(_0x20b280[_0x5af9f8(0xdb)]||'unknown')+'\x22;\x20CLI\x20deletion\x20is\x20limited\x20to\x20empty\x20folders.',_0x5af9f8(0xe6));if(!_0x20b280[_0x5af9f8(0xce)])throw menuError('menu_folder_resources_invalid',_0x5af9f8(0xb5)+_0x20b280['id']+_0x5af9f8(0xfc),'Inspect\x20and\x20repair\x20the\x20folder\x20resource\x20binding\x20in\x20the\x20platform\x20before\x20deleting\x20it.');if(_0x20b280['resources']['length']>0x0)throw menuError(_0x5af9f8(0xd4),_0x5af9f8(0xb5)+_0x20b280['id']+_0x5af9f8(0xca)+_0x20b280['resources']['length']+_0x5af9f8(0xb4),'Remove\x20or\x20verify\x20the\x20resource\x20bindings\x20in\x20the\x20platform\x20before\x20deleting\x20the\x20folder.');}function assertCascadeMatchesPlan(_0x44961c,_0x2db544){const _0x38d40e=a101_0x59a30d,_0x4949ba=cascadeFor(_0x2db544);if(JSON[_0x38d40e(0xe5)](_0x44961c[_0x38d40e(0xe4)])!==JSON[_0x38d40e(0xe5)](_0x4949ba))throw menuError(_0x38d40e(0xb1),_0x38d40e(0xb3));}function cascadeFor(_0x4ccbf9){return{'pages':_0x4ccbf9['pageId']==null?[]:[_0x4ccbf9['pageId']],'pageSchemaAffected':_0x4ccbf9['pageId']!=null};}function asMenuError(_0x1c86dc){const _0x4f22fd=a101_0x59a30d;return _0x1c86dc instanceof CliError?_0x1c86dc:menuError(_0x4f22fd(0xb1),_0x1c86dc instanceof Error?_0x1c86dc['message']:String(_0x1c86dc));}
@@ -0,0 +1 @@
1
+ function a102_0x5c2b(){const _0x56405d=['\x20has\x20an\x20unexpected\x20sort.','label','Folder\x20','create\x20folder','depth','folder','max','Created\x20menu\x20folder\x20','4NxullO','1431424QYahxn','visible','after','create-response-validation','Created\x20folder\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20json`\x20before\x20retrying;\x20the\x20folder\x20may\x20already\x20exist.','\x20was\x20created\x20but\x20its\x20final\x20facts\x20violate\x20the\x20folder\x20contract','Inspect\x20the\x20created\x20id\x20with\x20`rabetbase\x20menu\x20list\x20--format\x20json`;\x20do\x20not\x20retry\x20creation\x20until\x20its\x20state\x20is\x20known.','byId','Create\x20an\x20empty\x20folder\x20menu\x20at\x20root\x20or\x20under\x20another\x20folder','8xFkYnz','length','parent-id','\x20is\x20not\x20empty.','str','\x20is\x20not\x20type\x20folder.','\x20is\x20not\x20visible.','menu_create_response_invalid','path','Reorder\x20sibling\x20menus\x20below\x20','297tKkORO','POST','\x22\x20with\x20a\x20platform-generated\x20path.','get','Cannot\x20append\x20a\x20folder\x20because\x20the\x20current\x20maximum\x20sibling\x20sort\x20is\x20','204PBywuq','\x20has\x20resources.','\x20is\x20missing\x20from\x20menu\x20list.','304030beRhmr','sort','number','Would\x20create\x20empty\x20folder\x20\x22','\x20has\x20an\x20unexpected\x20label.','\x20may\x20exist\x20online;\x20verify\x20it\x20by\x20id\x20before\x20retrying.','\x20depth\x20does\x20not\x20match\x20its\x20final\x20parent\x20hierarchy.','parentId','pageId','The\x20platform\x20assigns\x20the\x20folder\x20a\x20non-empty\x20path\x20used\x20by\x20menu\x20routing\x20and\x20keys.','Menu\x20create\x20response\x20did\x20not\x20contain\x20a\x20valid\x20menu\x20id.','27071IIMTvt','root','The\x20create\x20request\x20may\x20have\x20succeeded;\x20verify\x20the\x20online\x20menu\x20list\x20before\x20retrying.','/smartapi/menu/create','string','map','893739oudtNI','rabetbase\x20menu\x20list\x20--format\x20json',';\x20verify\x20it\x20before\x20retrying.','\x20was\x20created\x20but\x20readback\x20could\x20not\x20load\x20its\x20final\x20facts','cookie','stringify','3012XMIcvS','\x20may\x20exist\x20online\x20at\x20path\x20','720835YDqUDz','29105Eipddx','create','<platform-generated>','hash','menu\x20list','filter','appCode','group-create','menu','menu_sort_overflow','Folder\x20label','\x20unexpectedly\x20owns\x20a\x20page.',',\x20or\x20pass\x20an\x20explicit\x20--sort\x20value.','4190347gPyRFC','trim','\x20path\x20does\x20not\x20match\x20the\x20platform-generated\x20path.','\x20did\x20not\x20contain\x20a\x20non-empty\x20generated\x20path.','type','create-folder','Menu\x20create\x20response\x20for\x20folder\x20','failed','\x20remains\x20online;\x20inspect\x20its\x20final\x20facts\x20before\x20any\x20retry.','high-risk-write','verify\x20folder\x20creation'];a102_0x5c2b=function(){return _0x56405d;};return a102_0x5c2b();}const a102_0x26b243=a102_0x3ac9;function a102_0x3ac9(_0x3c158a,_0x33e19d){_0x3c158a=_0x3c158a-0x93;const _0x5c2b31=a102_0x5c2b();let _0x3ac973=_0x5c2b31[_0x3c158a];return _0x3ac973;}(function(_0x20c788,_0x175409){const _0x120167=a102_0x3ac9,_0x313031=_0x20c788();while(!![]){try{const _0x5adf19=parseInt(_0x120167(0xa5))/0x1*(parseInt(_0x120167(0xc6))/0x2)+parseInt(_0x120167(0x9d))/0x3+parseInt(_0x120167(0xc7))/0x4+-parseInt(_0x120167(0xa6))/0x5*(parseInt(_0x120167(0xe0))/0x6)+parseInt(_0x120167(0xb3))/0x7*(parseInt(_0x120167(0xd1))/0x8)+parseInt(_0x120167(0xdb))/0x9*(-parseInt(_0x120167(0xe3))/0xa)+parseInt(_0x120167(0x97))/0xb*(-parseInt(_0x120167(0xa3))/0xc);if(_0x5adf19===_0x175409)break;else _0x313031['push'](_0x313031['shift']());}catch(_0x2b0548){_0x313031['push'](_0x313031['shift']());}}}(a102_0x5c2b,0xd6250));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot,getChildren}from'../../commands/menu/shared/facts.js';import{MAX_MENU_SORT,MENU_PARENT_ID_FLAG,MENU_SORT_FLAG,asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,parseParentId,recheckMutationSnapshot,requireExplicitYes,requireFolder,toApiParentId,validateSort}from'../../commands/menu/shared/mutations.js';import{createMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a102_0x26b243(0xdc),'path':a102_0x26b243(0x9a)}];export const menuGroupCreate={'service':a102_0x26b243(0xae),'command':a102_0x26b243(0xad),'description':a102_0x26b243(0xd0),'risk':a102_0x26b243(0xbc),'structuredErrors':!![],'flags':[{'name':a102_0x26b243(0xbf),'type':a102_0x26b243(0x9b),'required':!![],'description':a102_0x26b243(0xb0)},MENU_PARENT_ID_FLAG,MENU_SORT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x18cd3d){validateCreateInput(_0x18cd3d),requireExplicitYes(_0x18cd3d);},async 'dryRun'(_0x55916f){const _0x2f94a6=a102_0x26b243,_0x5d8925=await buildCreatePlan(_0x55916f,!![]),_0x2249e4=_0x5d8925[_0x2f94a6(0xc9)];return menuDryRunResult(_0x5d8925,{'method':_0x2f94a6(0xdc),'url':'/smartapi/menu/create','body':{'parentId':toApiParentId(_0x2249e4[_0x2f94a6(0x93)]),'label':_0x2249e4[_0x2f94a6(0xbf)],'type':'folder','visible':!![],'sort':_0x2249e4[_0x2f94a6(0xe4)],'extend':{}},'description':_0x2f94a6(0xe6)+String(_0x2249e4['label'])+_0x2f94a6(0xdd)});},async 'execute'(_0x2c052f){const _0x106d2c=a102_0x26b243;validateCreateInput(_0x2c052f),requireExplicitYes(_0x2c052f);const _0x3a769a=await buildCreatePlan(_0x2c052f,![]),_0x57898d=_0x3a769a[_0x106d2c(0xc9)];await recheckMutationSnapshot(_0x2c052f,_0x3a769a,_0x106d2c(0xc1));let _0x5035b8;try{_0x5035b8=await createMenuEntity(_0x2c052f[_0x106d2c(0xac)],_0x2c052f[_0x106d2c(0xa1)],{'parentId':toApiParentId(_0x57898d[_0x106d2c(0x93)]),'label':String(_0x57898d[_0x106d2c(0xbf)]),'type':'folder','visible':!![],'sort':Number(_0x57898d[_0x106d2c(0xe4)]),'extend':{}});}catch(_0x4721de){const _0x228d21=mapMenuApiError(_0x4721de,_0x106d2c(0xc1));throw menuFailure(_0x228d21,_0x3a769a,{'stage':_0x106d2c(0xa7),'failed':{}});}const _0x16209c=Number(_0x5035b8['id']);if(!Number['isSafeInteger'](_0x16209c)||_0x16209c<=0x0){const _0x47cec5=menuError(_0x106d2c(0xd8),_0x106d2c(0x96),_0x106d2c(0xcc));throw menuFailure(_0x47cec5,_0x3a769a,{'stage':_0x106d2c(0xca),'failed':{'createdId':_0x5035b8['id']??null},'warnings':[_0x106d2c(0x99)],'verification':{'status':_0x106d2c(0xba),'lookupCommand':_0x106d2c(0x9e)}});}const _0x3a888c=typeof _0x5035b8['path']==='string'?_0x5035b8['path']:'';if(!_0x3a888c[_0x106d2c(0xb4)]()){const _0x1acde9=menuError(_0x106d2c(0xd8),_0x106d2c(0xb9)+_0x16209c+_0x106d2c(0xb6),_0x106d2c(0xce));throw menuFailure(_0x1acde9,_0x3a769a,{'stage':'create-response-validation','succeeded':[{'id':_0x16209c,'created':!![]}],'failed':{'id':_0x16209c,'generatedPathConfirmed':![]},'warnings':[_0x106d2c(0xc0)+_0x16209c+_0x106d2c(0xe8)],'after':{..._0x57898d,'id':_0x16209c,'path':_0x3a888c},'verification':{'status':_0x106d2c(0xba),'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20json','targetId':_0x16209c}});}let _0x586f6f;try{_0x586f6f=await fetchMenuSnapshot(_0x2c052f[_0x106d2c(0xac)],_0x2c052f[_0x106d2c(0xa1)]);}catch(_0x14cb00){const _0x3392a9=describeMenuErrorCause(_0x14cb00,'verify\x20folder\x20creation',_0x16209c),_0x9a0416=asVerificationError(_0x14cb00,'Folder\x20'+_0x16209c+_0x106d2c(0xa0));throw menuFailure(_0x9a0416,_0x3a769a,{'stage':'verification','succeeded':[{'id':_0x16209c,'created':!![],'path':_0x3a888c}],'failed':{'id':_0x16209c,'finalFactsConfirmed':![],..._0x3392a9},'warnings':['Folder\x20'+_0x16209c+_0x106d2c(0xa4)+JSON[_0x106d2c(0xa2)](_0x3a888c)+_0x106d2c(0x9f)],'after':{..._0x57898d,'id':_0x16209c,'path':_0x3a888c},'verification':{'status':_0x106d2c(0xba),'lookupCommand':_0x106d2c(0x9e),'targetId':_0x16209c}});}const _0x2099e1=_0x586f6f[_0x106d2c(0xcf)][_0x106d2c(0xde)](_0x16209c);let _0x172d5f;try{assertVerified(Boolean(_0x2099e1),_0x106d2c(0xcb)+_0x16209c+_0x106d2c(0xe2)),_0x172d5f=_0x2099e1,assertVerified(_0x172d5f[_0x106d2c(0xb7)]==='folder','Created\x20menu\x20'+_0x16209c+_0x106d2c(0xd6)),assertVerified(_0x172d5f[_0x106d2c(0xbf)]===_0x57898d[_0x106d2c(0xbf)],_0x106d2c(0xcb)+_0x16209c+_0x106d2c(0xe7)),assertVerified(_0x172d5f[_0x106d2c(0xd9)]===_0x3a888c&&Boolean(_0x172d5f[_0x106d2c(0xd9)]['trim']()),_0x106d2c(0xcb)+_0x16209c+_0x106d2c(0xb5)),assertVerified(_0x172d5f[_0x106d2c(0xc8)]===!![],_0x106d2c(0xcb)+_0x16209c+_0x106d2c(0xd7)),assertVerified(_0x172d5f['resources'][_0x106d2c(0xd2)]===0x0,_0x106d2c(0xcb)+_0x16209c+_0x106d2c(0xe1)),assertVerified(_0x172d5f['childrenCount']===0x0,'Created\x20folder\x20'+_0x16209c+_0x106d2c(0xd4)),assertVerified(_0x172d5f['sort']===_0x57898d[_0x106d2c(0xe4)],'Created\x20folder\x20'+_0x16209c+_0x106d2c(0xbe)),assertVerified(_0x172d5f['parentId']===_0x57898d[_0x106d2c(0x93)],'Created\x20folder\x20'+_0x16209c+'\x20has\x20unexpected\x20parent\x20'+(_0x172d5f[_0x106d2c(0x93)]??_0x106d2c(0x98))+'.'),assertVerified(_0x172d5f[_0x106d2c(0x94)]==null,_0x106d2c(0xcb)+_0x16209c+_0x106d2c(0xb1));const _0x42cc0c=_0x172d5f[_0x106d2c(0x93)]==null?undefined:requireFolder(_0x586f6f,_0x172d5f['parentId']);assertVerified(_0x172d5f[_0x106d2c(0xc2)]===(_0x42cc0c?_0x42cc0c[_0x106d2c(0xc2)]+0x1:0x0),_0x106d2c(0xcb)+_0x16209c+_0x106d2c(0xe9));}catch(_0x1055ab){const _0x2f8307=describeMenuErrorCause(_0x1055ab,_0x106d2c(0xbd),_0x16209c),_0x2c6a7c=asVerificationError(_0x1055ab,'Folder\x20'+_0x16209c+_0x106d2c(0xcd));throw menuFailure(_0x2c6a7c,_0x3a769a,{'stage':'verification','succeeded':[{'id':_0x16209c,'created':!![],'path':_0x3a888c}],'failed':{'id':_0x16209c,'finalFactsConfirmed':![],..._0x2f8307},'warnings':[_0x106d2c(0xc0)+_0x16209c+_0x106d2c(0xbb)],'after':_0x2099e1??{..._0x57898d,'id':_0x16209c,'path':_0x3a888c},'verification':{'status':'failed','lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20json','targetId':_0x16209c}});}const _0x56aa2b=mutationResult({..._0x3a769a,'after':_0x172d5f,'dryRun':![],'succeeded':[{'id':_0x16209c,'type':_0x106d2c(0xc3),'path':_0x3a888c}],'verification':{'checkedBy':_0x106d2c(0xaa),'snapshotHash':_0x586f6f[_0x106d2c(0xa9)],'folder':!![],'path':_0x3a888c,'emptyResources':!![]}});return{'ok':!![],'data':_0x56aa2b,'message':_0x106d2c(0xc5)+_0x16209c+'.'};}};function validateCreateInput(_0x285fd4){const _0x178727=a102_0x26b243,_0x42593e=_0x285fd4[_0x178727(0xd5)](_0x178727(0xbf))['trim']();if(!_0x42593e)throw CliErrors['flagMissing'](_0x178727(0xbf));parseParentId(_0x285fd4,_0x178727(0xd3)),validateSort(_0x285fd4);}async function buildCreatePlan(_0x1d256c,_0x43852c){const _0xf7fe9=a102_0x26b243,_0x779f01=await fetchMutationSnapshot(_0x1d256c,'create\x20folder'),_0x23566b=parseParentId(_0x1d256c,_0xf7fe9(0xd3))??null;if(_0x23566b!=null)requireFolder(_0x779f01,_0x23566b);const _0x1a6d1f=validateSort(_0x1d256c),_0x270263=_0x1a6d1f??nextSiblingSort(_0x779f01,_0x23566b),_0x1c1b25=_0x1d256c[_0xf7fe9(0xd5)](_0xf7fe9(0xbf))[_0xf7fe9(0xb4)]();return mutationResult({'operation':'group-create','selector':{'label':_0x1c1b25,'parentId':_0x23566b},'before':null,'after':{'id':null,'parentId':_0x23566b,'label':_0x1c1b25,'path':_0xf7fe9(0xa8),'type':_0xf7fe9(0xc3),'visible':!![],'sort':_0x270263,'resources':[],'childrenIds':[],'childrenCount':0x0},'dryRun':_0x43852c,'backend':[...BACKEND],'plannedActions':[{'stage':_0xf7fe9(0xb8),'method':_0xf7fe9(0xdc),'path':_0xf7fe9(0x9a),'body':{'parentId':toApiParentId(_0x23566b),'label':_0x1c1b25,'type':'folder','visible':!![],'sort':_0x270263,'extend':{}}}],'snapshotHash':_0x779f01['hash'],'warnings':[_0xf7fe9(0x95)]});}function nextSiblingSort(_0x1561c1,_0xab42d2){const _0x14f30f=a102_0x26b243,_0x252440=getChildren(_0x1561c1,_0xab42d2)[_0x14f30f(0x9c)](_0x11c1b6=>_0x11c1b6[_0x14f30f(0xe4)])[_0x14f30f(0xab)](_0x47ea45=>typeof _0x47ea45===_0x14f30f(0xe5));if(_0x252440[_0x14f30f(0xd2)]===0x0)return 0x0;const _0x3b9dfd=Math[_0x14f30f(0xc4)](..._0x252440);if(_0x3b9dfd>=MAX_MENU_SORT)throw menuError(_0x14f30f(0xaf),_0x14f30f(0xdf)+_0x3b9dfd+'.',_0x14f30f(0xda)+MAX_MENU_SORT+_0x14f30f(0xb2));return _0x3b9dfd+0x1;}
@@ -0,0 +1 @@
1
+ const a103_0x5d76a5=a103_0xff43;(function(_0x44e8a8,_0x39ac29){const _0x3aa528=a103_0xff43,_0x52e2c1=_0x44e8a8();while(!![]){try{const _0x50f837=parseInt(_0x3aa528(0x15c))/0x1+-parseInt(_0x3aa528(0x156))/0x2+-parseInt(_0x3aa528(0x158))/0x3*(-parseInt(_0x3aa528(0x16c))/0x4)+-parseInt(_0x3aa528(0x167))/0x5+-parseInt(_0x3aa528(0x161))/0x6*(parseInt(_0x3aa528(0x152))/0x7)+parseInt(_0x3aa528(0x16a))/0x8*(-parseInt(_0x3aa528(0x16e))/0x9)+parseInt(_0x3aa528(0x140))/0xa;if(_0x50f837===_0x39ac29)break;else _0x52e2c1['push'](_0x52e2c1['shift']());}catch(_0x53d8fc){_0x52e2c1['push'](_0x52e2c1['shift']());}}}(a103_0x2380,0xee1bd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a103_0x2380(){const _0xb1483=['901316xoPhaG','Updated\x20folder\x20','3OAaCwF','selector','verification','group-update','88856NuBJGc','Menu\x20group-update\x20does\x20not\x20support\x20reparenting;\x20remove\x20--parent-id.','trim','appCode','hash','3532254MLjouO','validation','Use\x20the\x20platform\x20UI\x20for\x20hierarchy\x20changes.','label','\x20is\x20type\x20\x22','Run\x20`rabetbase\x20menu\x20list\x20--format\x20json`\x20and\x20choose\x20an\x20id\x20whose\x20type\x20is\x20folder.','2754105UvYwyC','cookie','string','8QtVTSM','type','2963716oKUizz','The\x20update\x20request\x20may\x20have\x20taken\x20effect,\x20but\x20its\x20final\x20online\x20state\x20is\x20unconfirmed.','3072645lXFUoj','Folder\x20','high-risk-write','20771010ejgSjO','\x20sort\x20update\x20did\x20not\x20take\x20effect.','POST','\x20label\x20update\x20did\x20not\x20take\x20effect.','\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Rename\x20or\x20reorder\x20one\x20existing\x20folder\x20menu','failed','menu\x20list','parentId','update\x20folder','folder','verify\x20folder\x20update','Menu\x20','Would\x20update\x20folder\x20','Update\x20request\x20for\x20folder\x20','menu_not_folder','rabetbase\x20menu\x20list\x20--format\x20json','sort','7TamRwn','str','parent-id','/smartapi/menu/update'];a103_0x2380=function(){return _0xb1483;};return a103_0x2380();}import{MENU_EXPECT_FLAGS,MENU_ID_FLAG,MENU_SORT_FLAG,asVerificationError,assertExpectedState,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes,requireFolder,requireMenu,validateExactId,validateSort}from'../../commands/menu/shared/mutations.js';function a103_0xff43(_0x1ee7d8,_0x519cf6){_0x1ee7d8=_0x1ee7d8-0x13f;const _0x2380d6=a103_0x2380();let _0xff43ee=_0x2380d6[_0x1ee7d8];return _0xff43ee;}import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a103_0x5d76a5(0x142),'path':a103_0x5d76a5(0x155)}];export const menuGroupUpdate={'service':'menu','command':a103_0x5d76a5(0x15b),'description':a103_0x5d76a5(0x145),'risk':a103_0x5d76a5(0x13f),'structuredErrors':!![],'rejectedFlags':[{'name':a103_0x5d76a5(0x154),'message':a103_0x5d76a5(0x15d),'hint':'Use\x20the\x20platform\x20UI\x20for\x20hierarchy\x20changes.'}],'flags':[MENU_ID_FLAG,{'name':a103_0x5d76a5(0x164),'type':a103_0x5d76a5(0x169),'description':'New\x20folder\x20label'},MENU_SORT_FLAG,...MENU_EXPECT_FLAGS,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x376bac){validateUpdateInput(_0x376bac),requireExplicitYes(_0x376bac);},async 'dryRun'(_0x3feb4c){const _0x2b087d=a103_0x5d76a5;validateUpdateInput(_0x3feb4c);const {plan:_0x15a740,patch:_0x180ecf}=await buildUpdatePlan(_0x3feb4c,!![]);return menuDryRunResult(_0x15a740,{'method':_0x2b087d(0x142),'url':_0x2b087d(0x155),'body':_0x180ecf,'description':_0x2b087d(0x14d)+_0x15a740[_0x2b087d(0x159)]['id']+'.'});},async 'execute'(_0x300944){const _0x1eb074=a103_0x5d76a5;validateUpdateInput(_0x300944),requireExplicitYes(_0x300944);const {plan:_0x557fc9,patch:_0x58517c,noChanges:_0x470550}=await buildUpdatePlan(_0x300944,![]),_0x32f792=Number(_0x557fc9['selector']['id']),_0x5626c5=await recheckMutationSnapshot(_0x300944,_0x557fc9,_0x1eb074(0x149),_0x32f792);if(!_0x470550)try{await updateMenuEntity(_0x300944[_0x1eb074(0x15f)],_0x300944[_0x1eb074(0x168)],_0x58517c);}catch(_0x1e176c){const _0x1e3f1c=mapMenuApiError(_0x1e176c,'update\x20folder',_0x32f792);throw menuFailure(_0x1e3f1c,_0x557fc9,{'stage':'update','failed':{'id':_0x32f792}});}let _0xc00d0b=_0x5626c5,_0x125b5a;try{!_0x470550&&(_0xc00d0b=await fetchMenuSnapshot(_0x300944['appCode'],_0x300944['cookie'])),_0x125b5a=requireMenu(_0xc00d0b,_0x32f792),verifyPatch(_0x125b5a,_0x58517c),_0x125b5a[_0x1eb074(0x148)]!=null&&requireFolder(_0xc00d0b,_0x125b5a[_0x1eb074(0x148)]);}catch(_0x33f1bc){const _0xc8c715=describeMenuErrorCause(_0x33f1bc,_0x1eb074(0x14b),_0x32f792),_0x4ca0e8=asVerificationError(_0x33f1bc,_0x1eb074(0x14e)+_0x32f792+_0x1eb074(0x144));throw menuFailure(_0x4ca0e8,_0x557fc9,{'stage':_0x1eb074(0x15a),'succeeded':[{'id':_0x32f792,'updateRequested':!_0x470550,'skipped':_0x470550}],'failed':{'id':_0x32f792,'requestedStateConfirmed':![],..._0xc8c715},'warnings':[_0x1eb074(0x16d)],'verification':{'status':_0x1eb074(0x146),'lookupCommand':_0x1eb074(0x150),'targetId':_0x32f792}});}const _0x16a314=mutationResult({..._0x557fc9,'after':_0x125b5a,'dryRun':![],'succeeded':[{'id':_0x32f792,'updated':!_0x470550,'skipped':_0x470550}],'verification':{'checkedBy':_0x1eb074(0x147),'snapshotHash':_0xc00d0b[_0x1eb074(0x160)],'matchesRequestedState':!![]}});return{'ok':!![],'data':_0x16a314,'message':_0x470550?_0x1eb074(0x16f)+_0x32f792+'\x20already\x20matches\x20the\x20requested\x20state.':_0x1eb074(0x157)+_0x32f792+'.'};}};function validateUpdateInput(_0x19dd74){const _0x113fb0=a103_0x5d76a5;validateExactId(_0x19dd74);if(hasFlag(_0x19dd74,_0x113fb0(0x154)))throw CliErrors['validation'](_0x113fb0(0x15d),_0x113fb0(0x163));if(!hasFlag(_0x19dd74,_0x113fb0(0x164))&&!hasFlag(_0x19dd74,_0x113fb0(0x151)))throw CliErrors[_0x113fb0(0x162)]('At\x20least\x20one\x20of\x20--label\x20or\x20--sort\x20is\x20required.');if(hasFlag(_0x19dd74,_0x113fb0(0x164))&&!_0x19dd74[_0x113fb0(0x153)]('label')[_0x113fb0(0x15e)]())throw CliErrors[_0x113fb0(0x162)]('--label\x20cannot\x20be\x20empty.');validateSort(_0x19dd74);}async function buildUpdatePlan(_0x306788,_0x3a931f){const _0x5c4efb=a103_0x5d76a5,_0xe9bd69=validateExactId(_0x306788),_0x44e60e=await fetchMutationSnapshot(_0x306788,'update\x20folder',_0xe9bd69),_0x3f04da=requireMenu(_0x44e60e,_0xe9bd69);if(_0x3f04da[_0x5c4efb(0x16b)]!==_0x5c4efb(0x14a))throw menuError(_0x5c4efb(0x14f),_0x5c4efb(0x14c)+_0xe9bd69+_0x5c4efb(0x165)+(_0x3f04da['type']||'unknown')+'\x22,\x20not\x20folder.',_0x5c4efb(0x166));assertExpectedState(_0x306788,_0x3f04da);const _0x206f48={'id':_0xe9bd69},_0x56599d={..._0x3f04da};if(hasFlag(_0x306788,'label')){const _0xa2ccb6=_0x306788[_0x5c4efb(0x153)](_0x5c4efb(0x164))[_0x5c4efb(0x15e)]();_0x206f48[_0x5c4efb(0x164)]=_0xa2ccb6,_0x56599d[_0x5c4efb(0x164)]=_0xa2ccb6;}if(hasFlag(_0x306788,_0x5c4efb(0x151))){const _0x159231=validateSort(_0x306788);_0x206f48['sort']=_0x159231,_0x56599d[_0x5c4efb(0x151)]=_0x159231;}const _0x3c14e0=sameRequestedState(_0x3f04da,_0x56599d),_0x32116b=_0x3c14e0?['No\x20online\x20fields\x20would\x20change.']:[];return{'patch':_0x206f48,'noChanges':_0x3c14e0,'plan':mutationResult({'operation':_0x5c4efb(0x15b),'selector':{'id':_0xe9bd69},'before':_0x3f04da,'after':_0x56599d,'dryRun':_0x3a931f,'backend':[...BACKEND],'snapshotHash':_0x44e60e[_0x5c4efb(0x160)],'warnings':_0x32116b})};}function sameRequestedState(_0x3faeb0,_0x288530){const _0x1c16fd=a103_0x5d76a5;return _0x3faeb0['label']===_0x288530[_0x1c16fd(0x164)]&&_0x3faeb0[_0x1c16fd(0x151)]===_0x288530[_0x1c16fd(0x151)];}function verifyPatch(_0x1fdfb0,_0x1ad0e3){const _0x30a95b=a103_0x5d76a5;assertVerified(_0x1fdfb0[_0x30a95b(0x16b)]==='folder',_0x30a95b(0x14c)+_0x1fdfb0['id']+'\x20is\x20no\x20longer\x20type\x20folder.'),_0x1ad0e3[_0x30a95b(0x164)]!==undefined&&assertVerified(_0x1fdfb0[_0x30a95b(0x164)]===_0x1ad0e3['label'],_0x30a95b(0x16f)+_0x1fdfb0['id']+_0x30a95b(0x143)),_0x1ad0e3[_0x30a95b(0x151)]!==undefined&&assertVerified(_0x1fdfb0[_0x30a95b(0x151)]===_0x1ad0e3[_0x30a95b(0x151)],'Folder\x20'+_0x1fdfb0['id']+_0x30a95b(0x141));}
@@ -1 +1 @@
1
- (function(_0x1e3a47,_0x31d54a){const _0x2efcb1=a100_0x7c21,_0x5a0f1b=_0x1e3a47();while(!![]){try{const _0x317ef2=parseInt(_0x2efcb1(0x115))/0x1+parseInt(_0x2efcb1(0x116))/0x2+parseInt(_0x2efcb1(0x10e))/0x3*(parseInt(_0x2efcb1(0x110))/0x4)+parseInt(_0x2efcb1(0x114))/0x5+-parseInt(_0x2efcb1(0x10f))/0x6*(-parseInt(_0x2efcb1(0x113))/0x7)+parseInt(_0x2efcb1(0x111))/0x8+-parseInt(_0x2efcb1(0x112))/0x9;if(_0x317ef2===_0x31d54a)break;else _0x5a0f1b['push'](_0x5a0f1b['shift']());}catch(_0x15a0a3){_0x5a0f1b['push'](_0x5a0f1b['shift']());}}}(a100_0xda2a,0x2e0fd));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a100_0x7c21(_0x51c84d,_0x16a69d){_0x51c84d=_0x51c84d-0x10e;const _0xda2ab2=a100_0xda2a();let _0x7c2100=_0xda2ab2[_0x51c84d];return _0x7c2100;}export const menuDefinitions=[menuList,menuSync,menuUpdate];function a100_0xda2a(){const _0x1dfa29=['343616qsxCYM','60946mqvLKD','9EADkNX','1014QtfyhV','485896qDGBCN','1784736bFGcSU','11206611cDCvUw','5173JcTDrw','1736770LYHTaL'];a100_0xda2a=function(){return _0x1dfa29;};return a100_0xda2a();}
1
+ (function(_0x16b702,_0x593bbc){const _0x5a783f=a104_0x5d27,_0x213119=_0x16b702();while(!![]){try{const _0x32716b=-parseInt(_0x5a783f(0x19b))/0x1*(-parseInt(_0x5a783f(0x19d))/0x2)+parseInt(_0x5a783f(0x1a0))/0x3+-parseInt(_0x5a783f(0x1a4))/0x4*(parseInt(_0x5a783f(0x19c))/0x5)+-parseInt(_0x5a783f(0x1a2))/0x6+-parseInt(_0x5a783f(0x1a3))/0x7*(parseInt(_0x5a783f(0x19e))/0x8)+parseInt(_0x5a783f(0x1a1))/0x9+-parseInt(_0x5a783f(0x19f))/0xa*(-parseInt(_0x5a783f(0x1a5))/0xb);if(_0x32716b===_0x593bbc)break;else _0x213119['push'](_0x213119['shift']());}catch(_0x6a3000){_0x213119['push'](_0x213119['shift']());}}}(a104_0x52ca,0xb6939));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a104_0x5d27(_0x4dea63,_0x3027a1){_0x4dea63=_0x4dea63-0x19b;const _0x52ca49=a104_0x52ca();let _0x5d2709=_0x52ca49[_0x4dea63];return _0x5d2709;}import{menuUpdate}from'../../commands/menu/update.js';import{menuDelete}from'../../commands/menu/delete.js';import{menuGroupCreate}from'../../commands/menu/group-create.js';import{menuGroupUpdate}from'../../commands/menu/group-update.js';function a104_0x52ca(){const _0xf64c61=['580EsLrLr','3699810BEYitY','7676973iaDoyV','3494532BqmYUC','5925829GwNOQi','3351972vMigjE','148500tLMovz','2ggBUNN','5vqwncp','145528ZqSNEa','8zzzApH'];a104_0x52ca=function(){return _0xf64c61;};return a104_0x52ca();}import{menuRegroupStart}from'../../commands/menu/regroup-start.js';export const menuDefinitions=[menuList,menuSync,menuUpdate,menuDelete,menuGroupCreate,menuGroupUpdate,menuRegroupStart];
@@ -1 +1 @@
1
- const a101_0x55b803=a101_0x13ad;(function(_0x40f78b,_0x4b30c3){const _0x4b481d=a101_0x13ad,_0x4cc296=_0x40f78b();while(!![]){try{const _0x1b539c=parseInt(_0x4b481d(0x1f4))/0x1+parseInt(_0x4b481d(0x1f9))/0x2+parseInt(_0x4b481d(0x211))/0x3+-parseInt(_0x4b481d(0x212))/0x4+-parseInt(_0x4b481d(0x1fd))/0x5+parseInt(_0x4b481d(0x1ff))/0x6+-parseInt(_0x4b481d(0x215))/0x7;if(_0x1b539c===_0x4b30c3)break;else _0x4cc296['push'](_0x4cc296['shift']());}catch(_0x1f2ab5){_0x4cc296['push'](_0x4cc296['shift']());}}}(a101_0x5f1e,0xbf301));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a101_0x55b803(0x209),'command':a101_0x55b803(0x1f6),'description':a101_0x55b803(0x1fa),'risk':a101_0x55b803(0x20c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a101_0x55b803(0x20f),'description':a101_0x55b803(0x219)}],async 'execute'(_0x584a7d){const _0x1aa070=a101_0x55b803,_0x4eea3f=_0x584a7d[_0x1aa070(0x210)](_0x1aa070(0x208)),_0x4ae2a9=await getMenuTree(_0x584a7d[_0x1aa070(0x20d)],_0x584a7d[_0x1aa070(0x207)]),_0x181996=flattenMenuItems(Array[_0x1aa070(0x1f5)](_0x4ae2a9)?_0x4ae2a9:[],{'verbose':_0x4eea3f,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x181996[_0x1aa070(0x1fe)],'menus':_0x181996},'message':_0x181996[_0x1aa070(0x1fe)]===0x0?_0x1aa070(0x213):_0x1aa070(0x205)+_0x181996[_0x1aa070(0x1fe)]+_0x1aa070(0x1fc)};}};function flattenMenuItems(_0x3cde43,_0x3b71cf){const _0x150684=a101_0x55b803,_0x2d2b05=sortMenuItems(_0x3cde43),_0x2897eb=[];for(const _0x20a452 of _0x2d2b05){_0x2897eb['push'](toMenuListItem(_0x20a452,_0x3b71cf)),Array['isArray'](_0x20a452[_0x150684(0x1f7)])&&_0x20a452['children']['length']>0x0&&_0x2897eb['push'](...flattenMenuItems(_0x20a452[_0x150684(0x1f7)],{'verbose':_0x3b71cf[_0x150684(0x208)],'parentId':_0x20a452['id'],'depth':_0x3b71cf['depth']+0x1}));}return _0x2897eb;}function a101_0x13ad(_0x4d75e9,_0x4e8e51){_0x4d75e9=_0x4d75e9-0x1f4;const _0x5f1e15=a101_0x5f1e();let _0x13ade8=_0x5f1e15[_0x4d75e9];return _0x13ade8;}function sortMenuItems(_0x21cadd){const _0x18da88=a101_0x55b803;return _0x21cadd['map']((_0x226cb1,_0x21db49)=>({'item':_0x226cb1,'index':_0x21db49}))[_0x18da88(0x206)]((_0x2f5700,_0x1441a7)=>{const _0x35310c=_0x18da88,_0x3d3002=normalizeSort(_0x2f5700['item'][_0x35310c(0x206)]),_0x784daf=normalizeSort(_0x1441a7[_0x35310c(0x217)]['sort']);if(_0x3d3002!==_0x784daf)return _0x3d3002-_0x784daf;return _0x2f5700[_0x35310c(0x20e)]-_0x1441a7['index'];})['map'](({item:_0xb69876})=>_0xb69876);}function toMenuListItem(_0x8e85c2,_0x4ca140){const _0x559427=a101_0x55b803,_0x1d54a4={'id':_0x8e85c2['id'],'parentId':_0x4ca140[_0x559427(0x1f8)],'depth':_0x4ca140[_0x559427(0x203)],'label':normalizeString(_0x8e85c2[_0x559427(0x218)]),'path':normalizeString(_0x8e85c2[_0x559427(0x20b)]),'type':normalizeString(_0x8e85c2[_0x559427(0x214)]),'visible':typeof _0x8e85c2[_0x559427(0x216)]===_0x559427(0x20f)?_0x8e85c2[_0x559427(0x216)]:null,'sort':typeof _0x8e85c2[_0x559427(0x206)]===_0x559427(0x202)&&Number[_0x559427(0x1fb)](_0x8e85c2[_0x559427(0x206)])?_0x8e85c2['sort']:null,'resources':normalizeResources(_0x8e85c2['extend']?.[_0x559427(0x21a)])};return _0x4ca140[_0x559427(0x208)]&&(_0x1d54a4['extend']=_0x8e85c2[_0x559427(0x20a)]??null),_0x1d54a4;}function a101_0x5f1e(){const _0x35d8b5=['Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','resources','POSITIVE_INFINITY','1370676csCuPd','isArray','list','children','parentId','1646478MyYoQn','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','isFinite','\x20menu(s)','5969300xiqAkX','length','7024482ZpLhZl','map','parse','number','depth','string','Found\x20','sort','cookie','verbose','menu','extend','path','read','appCode','index','boolean','bool','218595OOeQmU','2931300aGGcnp','No\x20menus\x20found.','type','5094159PuxuaG','visible','item','label'];a101_0x5f1e=function(){return _0x35d8b5;};return a101_0x5f1e();}function normalizeSort(_0x6f832){const _0x4f10ff=a101_0x55b803;return typeof _0x6f832===_0x4f10ff(0x202)&&Number[_0x4f10ff(0x1fb)](_0x6f832)?_0x6f832:Number[_0x4f10ff(0x21b)];}function normalizeString(_0x591790){return typeof _0x591790==='string'?_0x591790:'';}function normalizeResources(_0x4fae38){const _0x4ad189=a101_0x55b803;if(Array[_0x4ad189(0x1f5)](_0x4fae38))return _0x4fae38['map'](String);if(typeof _0x4fae38!==_0x4ad189(0x204))return[];try{const _0x434868=JSON[_0x4ad189(0x201)](_0x4fae38);return Array['isArray'](_0x434868)?_0x434868[_0x4ad189(0x200)](String):[];}catch{return[];}}
1
+ const a105_0x5f3f3a=a105_0xcf77;function a105_0xcf77(_0x5b52bd,_0x1bf463){_0x5b52bd=_0x5b52bd-0x15d;const _0x43774f=a105_0x4377();let _0xcf772e=_0x43774f[_0x5b52bd];return _0xcf772e;}function a105_0x4377(){const _0x230374=['Found\x20','bool','hash','list','No\x20menus\x20found.','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','8KVsEYd','boolean','2378148Mazesm','appCode','menus','verbose','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','380tXZQtf','2431264gDYkDn','650468YyREey','77664TIcLUp','total','2293785VJlMbo','31486572uCIZZj','map','read','137221DNplCs','cookie'];a105_0x4377=function(){return _0x230374;};return a105_0x4377();}(function(_0x14744a,_0x3c7fc8){const _0x334edb=a105_0xcf77,_0x2ced4b=_0x14744a();while(!![]){try{const _0x474c2d=parseInt(_0x334edb(0x161))/0x1+-parseInt(_0x334edb(0x160))/0x2+-parseInt(_0x334edb(0x164))/0x3+-parseInt(_0x334edb(0x172))/0x4+parseInt(_0x334edb(0x15f))/0x5*(-parseInt(_0x334edb(0x162))/0x6)+parseInt(_0x334edb(0x168))/0x7+parseInt(_0x334edb(0x170))/0x8*(parseInt(_0x334edb(0x165))/0x9);if(_0x474c2d===_0x3c7fc8)break;else _0x2ced4b['push'](_0x2ced4b['shift']());}catch(_0x58b13a){_0x2ced4b['push'](_0x2ced4b['shift']());}}}(a105_0x4377,0x94f17));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot,toMenuListItem}from'../../commands/menu/shared/facts.js';export const menuList={'service':'menu','command':a105_0x5f3f3a(0x16d),'description':a105_0x5f3f3a(0x15e),'risk':a105_0x5f3f3a(0x167),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a105_0x5f3f3a(0x15d),'type':a105_0x5f3f3a(0x171),'description':a105_0x5f3f3a(0x16f)}],async 'execute'(_0x1c06f0){const _0xb6d370=a105_0x5f3f3a,_0x76f8c2=_0x1c06f0[_0xb6d370(0x16b)](_0xb6d370(0x15d)),_0x3dfc37=await fetchMenuSnapshot(_0x1c06f0[_0xb6d370(0x173)],_0x1c06f0[_0xb6d370(0x169)],{'verbose':_0x76f8c2});return{'ok':!![],'data':{'total':_0x3dfc37['total'],'snapshotHash':_0x3dfc37[_0xb6d370(0x16c)],'menus':_0x3dfc37[_0xb6d370(0x174)][_0xb6d370(0x166)](toMenuListItem)},'message':_0x3dfc37['total']===0x0?_0xb6d370(0x16e):_0xb6d370(0x16a)+_0x3dfc37[_0xb6d370(0x163)]+'\x20menu(s)'};}};
@@ -0,0 +1 @@
1
+ const a106_0x2258c9=a106_0x2706;(function(_0x4c093e,_0x125f8b){const _0x2ae356=a106_0x2706,_0x51af3e=_0x4c093e();while(!![]){try{const _0x5013a9=-parseInt(_0x2ae356(0x1bc))/0x1+-parseInt(_0x2ae356(0x195))/0x2*(parseInt(_0x2ae356(0x1ad))/0x3)+-parseInt(_0x2ae356(0x174))/0x4*(parseInt(_0x2ae356(0x187))/0x5)+-parseInt(_0x2ae356(0x1c0))/0x6*(-parseInt(_0x2ae356(0x1ab))/0x7)+-parseInt(_0x2ae356(0x1a0))/0x8+parseInt(_0x2ae356(0x16b))/0x9*(-parseInt(_0x2ae356(0x1b8))/0xa)+parseInt(_0x2ae356(0x172))/0xb*(parseInt(_0x2ae356(0x176))/0xc);if(_0x5013a9===_0x125f8b)break;else _0x51af3e['push'](_0x51af3e['shift']());}catch(_0x539557){_0x51af3e['push'](_0x51af3e['shift']());}}}(a106_0x282f,0xb85be));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{fetchMutationSnapshot,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes,requireMenu}from'../../commands/menu/shared/mutations.js';import{startMenuRegroup}from'../../commands/menu/shared/service.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a106_0x282f(){const _0x3ae04f=['string','warnings','SUCCESS','trim','join','Use\x20exact\x20non-folder\x20leaf\x20menu\x20ids.\x20Existing\x20folder\x20hierarchy\x20changes\x20remain\x20platform-owned.','22TCDAYi','\x20succeeded,\x20but\x20final\x20menu\x20grouping\x20is\x20unconfirmed.','2384520hxtdsR','appCode','16023876ykGgBU','cookie','flagMissing','applied','Label\x20of\x20the\x20new\x20root\x20folder','folder','type','plan\x20regroup','unconfirmed','taskId','hash','FAILED','Menus\x20','\x20is\x20not\x20a\x20leaf\x20menu\x20and\x20cannot\x20be\x20regrouped\x20by\x20this\x20command.','The\x20regroup\x20endpoint\x20is\x20non-idempotent:\x20every\x20accepted\x20request\x20creates\x20a\x20new\x20root\x20folder.','\x20--format\x20compress','--menu-ids\x20cannot\x20contain\x20duplicate\x20menu\x20ids.','5ylQzTG','isTerminal','\x20has\x20no\x20non-empty\x20label\x20required\x20by\x20the\x20regroup\x20contract.','stringify','Menu\x20','Regroup\x20readback\x20failed:\x20','/smartapi/menu/regroup','menuIds','plan','sort','--menu-ids\x20must\x20contain\x20comma-separated\x20positive\x20integer\x20menu\x20ids.',';\x20the\x20response\x20will\x20contain\x20a\x20regroup\x20taskId.','length','high-risk-write','5452ImVyPP','regroup-start','regroup-submit','split','--menu-ids\x20supports\x20at\x20most\x20','POST','readbackError','\x27\x5c\x27\x27','filter','Regroup\x20task\x20','input','705840TFJAjz','The\x20regroup\x20task\x20returned\x20an\x20unknown\x20status\x20and\x20final\x20menu\x20grouping\x20is\x20unconfirmed.\x20Review\x20the\x20task\x20manually\x20and\x20do\x20not\x20resubmit\x20this\x20non-idempotent\x20request.','menu\x20list','size','menu_regroup_already_applied','The\x20returned\x20task\x20performs\x20the\x20regroup\x20asynchronously.\x20Keep\x20taskId\x20and\x20never\x20auto-retry\x20this\x20request.','toLowerCase','message','Choose\x20a\x20unique\x20root\x20folder\x20label\x20or\x20inspect\x20the\x20existing\x20folder\x20before\x20regrouping.','isSafeInteger','byId','13349skKsBR','str','489GQfCmW','menu_regroup_target_label_missing','\x20are\x20already\x20the\x20exact\x20children\x20of\x20root\x20folder\x20','some','group','test','start\x20regroup','menus','menu-ids','label','Comma-separated\x20exact\x20leaf\x20menu\x20ids\x20to\x20place\x20in\x20the\x20new\x20folder','1694910TnooqT','submit-regroup-task','<new-group-id>','Do\x20not\x20resubmit\x20the\x20non-idempotent\x20regroup\x20request.\x20Query\x20the\x20original\x20taskId\x20if\x20it\x20is\x20available.','1508124qUgzEM','The\x20regroup\x20task\x20was\x20accepted,\x20but\x20the\x20grouping\x20is\x20not\x20visible\x20yet.\x20Query\x20the\x20returned\x20taskId\x20and\x20do\x20not\x20resubmit\x20this\x20non-idempotent\x20request.','menu_regroup_target_not_leaf','map','3336XEEsMh','get','\x20menu\x20list\x20--appcode\x20','failed','validation','The\x20regroup\x20transaction\x20may\x20commit\x20before\x20task\x20scheduling\x20returns.\x20Do\x20not\x20submit\x20the\x20same\x20regroup\x20again\x20until\x20menu\x20list\x20confirms\x20the\x20current\x20grouping.','parentId','Regroup\x20readback\x20also\x20failed:\x20','menu','status','18DomhQA'];a106_0x282f=function(){return _0x3ae04f;};return a106_0x282f();}import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a106_0x2258c9(0x19a),'path':a106_0x2258c9(0x18d)}],MAX_REGROUP_MENU_COUNT=0x64;export const menuRegroupStart={'service':a106_0x2258c9(0x1c8),'command':a106_0x2258c9(0x196),'description':'Start\x20an\x20asynchronous\x20menu\x20regroup;\x20query\x20the\x20returned\x20taskId\x20until\x20SUCCESS\x20or\x20FAILED','risk':a106_0x2258c9(0x194),'structuredErrors':!![],'flags':[{'name':a106_0x2258c9(0x1b6),'type':'string','required':!![],'description':a106_0x2258c9(0x17a)},{'name':a106_0x2258c9(0x1b5),'type':a106_0x2258c9(0x16c),'required':!![],'description':a106_0x2258c9(0x1b7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x12b7b5){validateRegroupInput(_0x12b7b5),requireExplicitYes(_0x12b7b5);},async 'dryRun'(_0x25bff8){const _0x24a5f8=a106_0x2258c9;validateRegroupInput(_0x25bff8);const _0x16fcb7=await buildRegroupPlan(_0x25bff8,!![]);return menuDryRunResult(_0x16fcb7[_0x24a5f8(0x18f)],{'method':'POST','url':'/smartapi/menu/regroup','body':_0x16fcb7['input'],'description':'Would\x20submit\x20an\x20asynchronous\x20task\x20to\x20create\x20root\x20folder\x20'+JSON[_0x24a5f8(0x18a)](_0x16fcb7[_0x24a5f8(0x1b6)])+'\x20and\x20regroup\x20menu\x20ids\x20'+_0x16fcb7[_0x24a5f8(0x18e)][_0x24a5f8(0x170)](',\x20')+_0x24a5f8(0x192)});},async 'execute'(_0x3f1653){const _0x43c43a=a106_0x2258c9;validateRegroupInput(_0x3f1653),requireExplicitYes(_0x3f1653);const _0x3f197b=await buildRegroupPlan(_0x3f1653,![]);await recheckMutationSnapshot(_0x3f1653,_0x3f197b['plan'],_0x43c43a(0x1b3));const _0xf3133b=buildMenuLookupCommand(_0x3f1653['appCode']);let _0x22a3a2,_0x164176;try{_0x22a3a2=await startMenuRegroup(_0x3f1653[_0x43c43a(0x177)],_0x3f197b[_0x43c43a(0x19f)]),_0x164176=normalizeAsyncTask(_0x22a3a2);}catch(_0x1c1982){const _0x1371c7=await inspectRegroupAfterFailure(_0x3f1653[_0x43c43a(0x175)],_0x3f1653[_0x43c43a(0x177)],_0x3f197b[_0x43c43a(0x1b6)],_0x3f197b[_0x43c43a(0x18e)]),_0x37566c=typeof _0x22a3a2?.[_0x43c43a(0x17f)]===_0x43c43a(0x16c)&&_0x22a3a2[_0x43c43a(0x17f)][_0x43c43a(0x16f)]()?_0x22a3a2[_0x43c43a(0x17f)][_0x43c43a(0x16f)]():null,_0x5c1f8a=_0x37566c?{'command':buildAsyncTaskStatusCommand(_0x37566c,_0x3f1653['appCode'])}:null,_0x53e193=mapMenuApiError(_0x1c1982,'start\x20menu\x20regroup');throw menuFailure(_0x53e193,_0x3f197b[_0x43c43a(0x18f)],{'stage':_0x43c43a(0x197),'failed':{'menuIds':_0x3f197b[_0x43c43a(0x18e)],'taskId':_0x37566c,'groupingApplied':_0x1371c7[_0x43c43a(0x179)]?!![]:_0x43c43a(0x17e)},'after':_0x1371c7[_0x43c43a(0x179)]??null,'warnings':[_0x43c43a(0x1c5),..._0x1371c7[_0x43c43a(0x19b)]?[_0x43c43a(0x1c7)+_0x1371c7[_0x43c43a(0x19b)]]:[],..._0x37566c?['The\x20response\x20included\x20a\x20taskId.\x20Query\x20that\x20taskId\x20instead\x20of\x20resubmitting\x20regroup.']:[]],'verification':{'status':_0x43c43a(0x1c3),'groupingApplied':_0x1371c7['applied']?!![]:_0x43c43a(0x17e),'taskId':_0x37566c,'query':_0x5c1f8a,'lookupCommand':_0xf3133b}});}const _0x321fa2=buildAsyncTaskStatusCommand(_0x164176['taskId'],_0x3f1653[_0x43c43a(0x175)]);let _0x24186b=null,_0x578a3b=null,_0x2204dc=null;try{_0x24186b=await fetchMenuSnapshot(_0x3f1653[_0x43c43a(0x175)],_0x3f1653[_0x43c43a(0x177)]),_0x578a3b=findAppliedRegroup(_0x24186b,_0x3f197b['label'],_0x3f197b['menuIds']);}catch(_0x40d515){_0x2204dc=_0x40d515 instanceof Error?_0x40d515[_0x43c43a(0x1a7)]:String(_0x40d515);}const _0x42a3dc=mutationResult({..._0x3f197b[_0x43c43a(0x18f)],'after':_0x578a3b??null,'dryRun':![],'succeeded':[{'groupId':_0x578a3b?.[_0x43c43a(0x1b1)]['id']??null,'menuIds':_0x3f197b[_0x43c43a(0x18e)],'taskId':_0x164176[_0x43c43a(0x17f)],'status':_0x164176[_0x43c43a(0x1c9)],'groupingApplied':_0x578a3b?!![]:_0x43c43a(0x17e)}],'verification':{'checkedBy':_0x43c43a(0x1a2),'snapshotHash':_0x24186b?.[_0x43c43a(0x180)]??null,'groupId':_0x578a3b?.['group']['id']??null,'groupingApplied':_0x578a3b?!![]:'unconfirmed','readbackError':_0x2204dc,'lookupCommand':_0xf3133b},'warnings':[..._0x3f197b[_0x43c43a(0x18f)][_0x43c43a(0x16d)],...!_0x578a3b?[unconfirmedRegroupWarning(_0x164176)]:[],..._0x2204dc?[_0x43c43a(0x18c)+_0x2204dc]:[]]}),_0x2977b9=_0x164176[_0x43c43a(0x1c9)]===_0x43c43a(0x16e)&&!_0x578a3b?_0x43c43a(0x19e)+_0x164176[_0x43c43a(0x17f)]+_0x43c43a(0x173):'Regroup\x20task\x20accepted.\x20'+asyncTaskMessage(_0x164176);return{'ok':!![],'message':_0x2977b9,'data':{..._0x42a3dc,'task':_0x164176,'query':_0x164176[_0x43c43a(0x188)]?null:{'command':_0x321fa2}}};}};function a106_0x2706(_0x49c55d,_0x3426a0){_0x49c55d=_0x49c55d-0x16b;const _0x282fc6=a106_0x282f();let _0x2706e0=_0x282fc6[_0x49c55d];return _0x2706e0;}function validateRegroupInput(_0x183300){const _0x133b1a=a106_0x2258c9;if(!_0x183300[_0x133b1a(0x1ac)]('label')[_0x133b1a(0x16f)]())throw CliErrors[_0x133b1a(0x178)](_0x133b1a(0x1b6));parseMenuIds(_0x183300[_0x133b1a(0x1ac)](_0x133b1a(0x1b5)));}function parseMenuIds(_0x58e9bd){const _0x307b15=a106_0x2258c9,_0x474d28=_0x58e9bd[_0x307b15(0x198)](',')[_0x307b15(0x1bf)](_0x5ab434=>_0x5ab434[_0x307b15(0x16f)]());if(_0x474d28[_0x307b15(0x193)]===0x0||_0x474d28[_0x307b15(0x1b0)](_0x362004=>!_0x362004))throw CliErrors[_0x307b15(0x1c4)](_0x307b15(0x191));const _0x5abfae=_0x474d28['map'](_0x2e92df=>{const _0x49a101=_0x307b15;if(!/^\d+$/[_0x49a101(0x1b2)](_0x2e92df))throw CliErrors[_0x49a101(0x1c4)](_0x49a101(0x191));const _0x48f103=Number(_0x2e92df);if(!Number[_0x49a101(0x1a9)](_0x48f103)||_0x48f103<=0x0)throw CliErrors[_0x49a101(0x1c4)](_0x49a101(0x191));return _0x48f103;});if(new Set(_0x5abfae)[_0x307b15(0x1a3)]!==_0x5abfae['length'])throw CliErrors[_0x307b15(0x1c4)](_0x307b15(0x186));if(_0x5abfae['length']>MAX_REGROUP_MENU_COUNT)throw CliErrors[_0x307b15(0x1c4)](_0x307b15(0x199)+MAX_REGROUP_MENU_COUNT+'\x20menus\x20per\x20regroup\x20request.');return _0x5abfae;}function buildMenuLookupCommand(_0x3178e1){const _0x1da097=a106_0x2258c9,_0x143aaf='\x27'+_0x3178e1['replace'](/'/g,_0x1da097(0x19c))+'\x27';return CLI_BIN_NAME+_0x1da097(0x1c2)+_0x143aaf+_0x1da097(0x185);}function unconfirmedRegroupWarning(_0x45c430){const _0x59c993=a106_0x2258c9;if(_0x45c430[_0x59c993(0x1c9)]===_0x59c993(0x16e))return'The\x20regroup\x20task\x20succeeded,\x20but\x20final\x20menu\x20grouping\x20is\x20unconfirmed.\x20Run\x20data.verification.lookupCommand\x20and\x20do\x20not\x20resubmit\x20this\x20non-idempotent\x20request.';if(_0x45c430[_0x59c993(0x1c9)]===_0x59c993(0x181))return'The\x20regroup\x20task\x20failed,\x20and\x20final\x20menu\x20grouping\x20is\x20unconfirmed.\x20Inspect\x20task.errorMessage\x20and\x20do\x20not\x20automatically\x20resubmit\x20this\x20non-idempotent\x20request.';if(_0x45c430['knownStatus'])return _0x59c993(0x1bd);return _0x59c993(0x1a1);}async function buildRegroupPlan(_0x53085f,_0x1d98b9){const _0x222504=a106_0x2258c9,_0x2c8595=_0x53085f[_0x222504(0x1ac)](_0x222504(0x1b6))[_0x222504(0x16f)](),_0x10a827=parseMenuIds(_0x53085f[_0x222504(0x1ac)](_0x222504(0x1b5))),_0x51f2c4=await fetchMutationSnapshot(_0x53085f,_0x222504(0x17d)),_0x28c2d1=_0x10a827[_0x222504(0x1bf)](_0x553ee7=>requireMenu(_0x51f2c4,_0x553ee7));for(const _0x164ac9 of _0x28c2d1){if(_0x164ac9[_0x222504(0x17c)]['trim']()[_0x222504(0x1a6)]()==='folder'||_0x164ac9['childrenCount']>0x0)throw menuError(_0x222504(0x1be),_0x222504(0x18b)+_0x164ac9['id']+_0x222504(0x183),_0x222504(0x171));if(!_0x164ac9[_0x222504(0x1b6)][_0x222504(0x16f)]())throw menuError(_0x222504(0x1ae),_0x222504(0x18b)+_0x164ac9['id']+_0x222504(0x189),'Repair\x20the\x20menu\x20label\x20in\x20the\x20platform\x20before\x20regrouping\x20it.');}const _0x4258a9=findAppliedRegroup(_0x51f2c4,_0x2c8595,_0x10a827);if(_0x4258a9)throw menuError(_0x222504(0x1a4),_0x222504(0x182)+_0x10a827[_0x222504(0x170)](',\x20')+_0x222504(0x1af)+_0x4258a9[_0x222504(0x1b1)]['id']+'\x20('+JSON[_0x222504(0x18a)](_0x2c8595)+').',_0x222504(0x1bb));const _0x43b7bd=_0x51f2c4[_0x222504(0x1b4)]['filter'](_0x23093d=>_0x23093d[_0x222504(0x1c6)]==null&&_0x23093d[_0x222504(0x17c)][_0x222504(0x16f)]()['toLowerCase']()===_0x222504(0x17b)&&_0x23093d[_0x222504(0x1b6)]===_0x2c8595);if(_0x43b7bd['length']>0x0)throw menuError('menu_regroup_label_conflict','Root\x20folder\x20label\x20'+JSON[_0x222504(0x18a)](_0x2c8595)+'\x20already\x20belongs\x20to\x20menu\x20id(s)\x20'+_0x43b7bd[_0x222504(0x1bf)](_0x275fc6=>_0x275fc6['id'])[_0x222504(0x170)](',\x20')+'.',_0x222504(0x1a8));const _0x32c9a1={'appCode':_0x53085f[_0x222504(0x175)],'menuGroups':[{'label':_0x2c8595,'type':_0x222504(0x17b),'children':_0x28c2d1['map'](_0x24be84=>({'id':_0x24be84['id'],'label':_0x24be84[_0x222504(0x1b6)]}))}]},_0x4eec1c=mutationResult({'operation':_0x222504(0x196),'selector':{'label':_0x2c8595,'menuIds':_0x10a827},'before':{'menus':_0x28c2d1},'after':{'group':{'id':null,'parentId':null,'label':_0x2c8595,'path':'<platform-generated>','type':'folder','childrenIds':_0x10a827},'children':_0x28c2d1[_0x222504(0x1bf)](_0x56be11=>({'id':_0x56be11['id'],'label':_0x56be11['label'],'beforeParentId':_0x56be11[_0x222504(0x1c6)],'afterParentId':_0x222504(0x1ba)}))},'dryRun':_0x1d98b9,'backend':[...BACKEND],'plannedActions':[{'stage':_0x222504(0x1b9),'method':_0x222504(0x19a),'path':_0x222504(0x18d),'body':_0x32c9a1}],'snapshotHash':_0x51f2c4[_0x222504(0x180)],'warnings':[_0x222504(0x184),_0x222504(0x1a5)]});return{'label':_0x2c8595,'menuIds':_0x10a827,'input':_0x32c9a1,'plan':_0x4eec1c};}function findAppliedRegroup(_0x39cf59,_0x5ddf91,_0x5b457b){const _0x2648a3=a106_0x2258c9,_0x5515f0=_0x5b457b[_0x2648a3(0x1bf)](_0x58fe4f=>_0x39cf59['byId'][_0x2648a3(0x1c1)](_0x58fe4f))[_0x2648a3(0x19d)](_0x33e314=>Boolean(_0x33e314));if(_0x5515f0[_0x2648a3(0x193)]!==_0x5b457b[_0x2648a3(0x193)])return null;const _0x2571a1=_0x5515f0[0x0]?.['parentId'];if(_0x2571a1==null||_0x5515f0[_0x2648a3(0x1b0)](_0x4b0bc0=>_0x4b0bc0[_0x2648a3(0x1c6)]!==_0x2571a1))return null;const _0x29fb94=_0x39cf59[_0x2648a3(0x1aa)][_0x2648a3(0x1c1)](_0x2571a1);if(!_0x29fb94||_0x29fb94[_0x2648a3(0x1c6)]!=null||_0x29fb94['type']['trim']()[_0x2648a3(0x1a6)]()!==_0x2648a3(0x17b)||_0x29fb94[_0x2648a3(0x1b6)]!==_0x5ddf91)return null;const _0x2a0788=[..._0x5b457b][_0x2648a3(0x190)]((_0x32b102,_0x4a1e69)=>_0x32b102-_0x4a1e69),_0x51a9ab=[..._0x29fb94['childrenIds']]['sort']((_0x538287,_0x3c7376)=>_0x538287-_0x3c7376);if(JSON['stringify'](_0x51a9ab)!==JSON['stringify'](_0x2a0788))return null;return{'group':_0x29fb94,'children':_0x5515f0};}async function inspectRegroupAfterFailure(_0xb2078c,_0x1f34cd,_0x697890,_0x36f893){const _0x35a37b=a106_0x2258c9;try{const _0x37003f=await fetchMenuSnapshot(_0xb2078c,_0x1f34cd);return{'applied':findAppliedRegroup(_0x37003f,_0x697890,_0x36f893),'readbackError':null};}catch(_0x50ed48){return{'applied':null,'readbackError':_0x50ed48 instanceof Error?_0x50ed48[_0x35a37b(0x1a7)]:String(_0x50ed48)};}}
@@ -1 +1 @@
1
- (function(_0xc47a12,_0x52b1ee){const _0x2a1dcb=a102_0x4782,_0x48423c=_0xc47a12();while(!![]){try{const _0x535dba=parseInt(_0x2a1dcb(0x208))/0x1*(-parseInt(_0x2a1dcb(0x1fb))/0x2)+parseInt(_0x2a1dcb(0x1f7))/0x3*(-parseInt(_0x2a1dcb(0x20b))/0x4)+parseInt(_0x2a1dcb(0x1f0))/0x5*(-parseInt(_0x2a1dcb(0x1f1))/0x6)+parseInt(_0x2a1dcb(0x1fc))/0x7+parseInt(_0x2a1dcb(0x1f9))/0x8+-parseInt(_0x2a1dcb(0x209))/0x9+-parseInt(_0x2a1dcb(0x1fe))/0xa*(-parseInt(_0x2a1dcb(0x20a))/0xb);if(_0x535dba===_0x52b1ee)break;else _0x48423c['push'](_0x48423c['shift']());}catch(_0x237b87){_0x48423c['push'](_0x48423c['shift']());}}}(a102_0xe068,0x8a417));function a102_0x4782(_0x4a3d75,_0x3c2fd4){_0x4a3d75=_0x4a3d75-0x1ef;const _0xe068be=a102_0xe068();let _0x47826c=_0xe068be[_0x4a3d75];return _0x47826c;}function strWidth(_0x54c608){let _0x155fe4=0x0;for(const _0x4504fc of _0x54c608){_0x155fe4+=/[\u4e00-\u9fa5]/['test'](_0x4504fc)?0x2:0x1;}return _0x155fe4;}function padRight(_0x2ecc40,_0x2ba26f){const _0xc7738=a102_0x4782,_0x5af5eb=strWidth(_0x2ecc40);return _0x2ecc40+'\x20'[_0xc7738(0x1ff)](Math[_0xc7738(0x207)](0x0,_0x2ba26f-_0x5af5eb));}function a102_0xe068(){const _0x49b778=['2vQjXOn','224679oTeXSY','path','20JcKCZw','repeat','(unchanged)','local','length','online','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','Platform','showOnline','max','618031anZbzE','2000106MNPdhB','11558503tccmes','100012DpBSVp','push','\x20\x20No\x20pages\x20to\x20sync.','5QnVDRu','6309858yjFqRu','Local','\x20\x20\x20\x20•\x20','map','join','\x20\x20\x20\x20JS:\x20\x20','21LgOLtc','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','3996648KYhQod','label'];a102_0xe068=function(){return _0x49b778;};return a102_0xe068();}export function renderCompareTable(_0x1a4ea5,_0x5ede43={}){const _0x2f2790=a102_0x4782;if(_0x1a4ea5[_0x2f2790(0x202)]===0x0)return'';const _0x2f9078=_0x5ede43[_0x2f2790(0x206)]??!![],_0x414f9e=Math[_0x2f2790(0x207)](0x1e,..._0x1a4ea5[_0x2f2790(0x1f4)](_0x2fac98=>strWidth(_0x2fac98[_0x2f2790(0x1fa)]))),_0x183e7a=0x4,_0x58ab2f=[],_0x5c1c0d='\x20\x20'+padRight('Menu\x20Name',_0x414f9e),_0x22d35e=padRight(_0x2f2790(0x1f2),_0x183e7a),_0x5e96bd=_0x2f9078?'\x20\x20'+padRight(_0x2f2790(0x205),_0x183e7a):'';_0x58ab2f['push'](_0x5c1c0d+'\x20\x20'+_0x22d35e+(_0x2f9078?_0x5e96bd:'')),_0x58ab2f[_0x2f2790(0x20c)]('\x20\x20'+'─'[_0x2f2790(0x1ff)](_0x414f9e)+'\x20\x20'+'─'[_0x2f2790(0x1ff)](_0x183e7a)+(_0x2f9078?'\x20\x20'+'─'['repeat'](_0x183e7a):''));for(const _0x4f85cc of _0x1a4ea5){const _0x4eeba3=padRight(_0x4f85cc[_0x2f2790(0x1fa)],_0x414f9e),_0x369879=_0x4f85cc[_0x2f2790(0x201)]?'✓':'✗',_0x234cfa=padRight(_0x369879,_0x183e7a);let _0x16675d='\x20\x20'+_0x4eeba3+'\x20\x20'+_0x234cfa;if(_0x2f9078){const _0x2affb6=_0x4f85cc[_0x2f2790(0x203)]?'✓':'✗';_0x16675d+='\x20\x20'+padRight(_0x2affb6,_0x183e7a);}_0x58ab2f['push'](_0x16675d);}return _0x58ab2f[_0x2f2790(0x1f5)]('\x0a');}export function renderSyncSummary(_0x172d00,_0x495b76){const _0x535d9b=a102_0x4782;if(_0x172d00[_0x535d9b(0x202)]===0x0)return _0x495b76?_0x535d9b(0x1f8):_0x535d9b(0x1ef);const _0x1180c0=['\x20\x20'+_0x172d00[_0x535d9b(0x202)]+_0x535d9b(0x204)];for(const _0x5402b8 of _0x172d00){_0x1180c0[_0x535d9b(0x20c)](_0x535d9b(0x1f3)+_0x5402b8[_0x535d9b(0x1fa)]+'\x20('+_0x5402b8[_0x535d9b(0x1fd)]+')');}return _0x1180c0[_0x535d9b(0x1f5)]('\x0a');}export function renderUpdateSummary(_0x2fb1b0,_0x12d8ba){const _0x44d4bd=a102_0x4782;if(_0x2fb1b0[_0x44d4bd(0x202)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x29cf7b=['\x20\x20'+_0x2fb1b0['length']+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x44d4bd(0x1f6)+(_0x12d8ba[0x0]??_0x44d4bd(0x200)),'\x20\x20\x20\x20CSS:\x20'+(_0x12d8ba[0x1]??_0x44d4bd(0x200)),'','\x20\x20Affected\x20menus:\x20'+_0x2fb1b0['join'](',\x20')];return _0x29cf7b['join']('\x0a');}
1
+ function a107_0x25ae(){const _0x40be41=['max','showOnline','label','\x20\x20\x20\x20•\x20','Platform','\x20\x20Affected\x20menus:\x20','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','2505590EpZaSa','129svtxKv','3474SqJbKT','5687814PfmSZV','Menu\x20Name','path','map','join','push','6365608suYvQR','repeat','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','2571052rbEvok','Local','123933XImSnI','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','12uEBOBc','online','(unchanged)','34992lyPmJU','15364yEVGnb','7fOaEvu','length','test','5BYuUvE'];a107_0x25ae=function(){return _0x40be41;};return a107_0x25ae();}(function(_0x4ad859,_0xa2b764){const _0x4121e8=a107_0x4b43,_0x3a50d9=_0x4ad859();while(!![]){try{const _0xf61950=-parseInt(_0x4121e8(0xa6))/0x1+parseInt(_0x4121e8(0xac))/0x2*(-parseInt(_0x4121e8(0xb9))/0x3)+parseInt(_0x4121e8(0xa1))/0x4*(parseInt(_0x4121e8(0xb0))/0x5)+-parseInt(_0x4121e8(0xbb))/0x6*(-parseInt(_0x4121e8(0xad))/0x7)+-parseInt(_0x4121e8(0xab))/0x8*(parseInt(_0x4121e8(0xba))/0x9)+parseInt(_0x4121e8(0xb8))/0xa+-parseInt(_0x4121e8(0xa4))/0xb*(-parseInt(_0x4121e8(0xa8))/0xc);if(_0xf61950===_0xa2b764)break;else _0x3a50d9['push'](_0x3a50d9['shift']());}catch(_0x5b3534){_0x3a50d9['push'](_0x3a50d9['shift']());}}}(a107_0x25ae,0xd718f));function strWidth(_0x48c3c7){const _0x438ed8=a107_0x4b43;let _0x3c0c15=0x0;for(const _0x206d63 of _0x48c3c7){_0x3c0c15+=/[\u4e00-\u9fa5]/[_0x438ed8(0xaf)](_0x206d63)?0x2:0x1;}return _0x3c0c15;}function a107_0x4b43(_0x563714,_0x57369a){_0x563714=_0x563714-0x9f;const _0x25ae62=a107_0x25ae();let _0x4b4320=_0x25ae62[_0x563714];return _0x4b4320;}function padRight(_0xdfa2be,_0x130aed){const _0x13eca8=a107_0x4b43,_0x28ab16=strWidth(_0xdfa2be);return _0xdfa2be+'\x20'['repeat'](Math[_0x13eca8(0xb1)](0x0,_0x130aed-_0x28ab16));}export function renderCompareTable(_0x162393,_0x31384d={}){const _0xe2808b=a107_0x4b43;if(_0x162393[_0xe2808b(0xae)]===0x0)return'';const _0x1f7326=_0x31384d[_0xe2808b(0xb2)]??!![],_0x1992e9=Math[_0xe2808b(0xb1)](0x1e,..._0x162393[_0xe2808b(0xbe)](_0x59ac2a=>strWidth(_0x59ac2a[_0xe2808b(0xb3)]))),_0x9e0ace=0x4,_0x126e22=[],_0x517cd7='\x20\x20'+padRight(_0xe2808b(0xbc),_0x1992e9),_0x2c8325=padRight(_0xe2808b(0xa5),_0x9e0ace),_0x790e73=_0x1f7326?'\x20\x20'+padRight(_0xe2808b(0xb5),_0x9e0ace):'';_0x126e22[_0xe2808b(0xa0)](_0x517cd7+'\x20\x20'+_0x2c8325+(_0x1f7326?_0x790e73:'')),_0x126e22[_0xe2808b(0xa0)]('\x20\x20'+'─'[_0xe2808b(0xa2)](_0x1992e9)+'\x20\x20'+'─'[_0xe2808b(0xa2)](_0x9e0ace)+(_0x1f7326?'\x20\x20'+'─'[_0xe2808b(0xa2)](_0x9e0ace):''));for(const _0xe5e0fc of _0x162393){const _0x5259a6=padRight(_0xe5e0fc[_0xe2808b(0xb3)],_0x1992e9),_0x138c58=_0xe5e0fc['local']?'✓':'✗',_0x142300=padRight(_0x138c58,_0x9e0ace);let _0x32b3b1='\x20\x20'+_0x5259a6+'\x20\x20'+_0x142300;if(_0x1f7326){const _0xe1c054=_0xe5e0fc[_0xe2808b(0xa9)]?'✓':'✗';_0x32b3b1+='\x20\x20'+padRight(_0xe1c054,_0x9e0ace);}_0x126e22[_0xe2808b(0xa0)](_0x32b3b1);}return _0x126e22[_0xe2808b(0x9f)]('\x0a');}export function renderSyncSummary(_0x477c30,_0x37351e){const _0x2d14f2=a107_0x4b43;if(_0x477c30['length']===0x0)return _0x37351e?_0x2d14f2(0xa7):'\x20\x20No\x20pages\x20to\x20sync.';const _0x786e38=['\x20\x20'+_0x477c30[_0x2d14f2(0xae)]+_0x2d14f2(0xb7)];for(const _0xd3a782 of _0x477c30){_0x786e38['push'](_0x2d14f2(0xb4)+_0xd3a782[_0x2d14f2(0xb3)]+'\x20('+_0xd3a782[_0x2d14f2(0xbd)]+')');}return _0x786e38[_0x2d14f2(0x9f)]('\x0a');}export function renderUpdateSummary(_0x5028b5,_0xdc5a2d){const _0x25ec38=a107_0x4b43;if(_0x5028b5[_0x25ec38(0xae)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x2f588c=['\x20\x20'+_0x5028b5[_0x25ec38(0xae)]+_0x25ec38(0xa3),'\x20\x20\x20\x20JS:\x20\x20'+(_0xdc5a2d[0x0]??_0x25ec38(0xaa)),'\x20\x20\x20\x20CSS:\x20'+(_0xdc5a2d[0x1]??_0x25ec38(0xaa)),'',_0x25ec38(0xb6)+_0x5028b5[_0x25ec38(0x9f)](',\x20')];return _0x2f588c['join']('\x0a');}