@lovrabet/rabetbase-cli 2.3.8-beta.1 → 2.3.9-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) 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/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/notification/config-list.js +1 -1
  115. package/lib/commands/notification/index.js +1 -1
  116. package/lib/commands/page/generate-start.js +1 -1
  117. package/lib/commands/page/generate-status.js +1 -1
  118. package/lib/commands/page/index.js +1 -1
  119. package/lib/commands/page/pull.js +1 -1
  120. package/lib/commands/page/push.js +1 -1
  121. package/lib/commands/page/relation-audit.js +1 -1
  122. package/lib/commands/page/shared.js +1 -1
  123. package/lib/commands/page/standard-page-status.js +1 -1
  124. package/lib/commands/page/sync.js +1 -1
  125. package/lib/commands/permit/index.js +1 -1
  126. package/lib/commands/permit/page-get.js +1 -1
  127. package/lib/commands/permit/page-set.js +1 -1
  128. package/lib/commands/permit/role-apis-set.js +1 -1
  129. package/lib/commands/permit/role-menus-set.js +1 -1
  130. package/lib/commands/permit/role-menus.js +1 -1
  131. package/lib/commands/permit/shared.js +1 -1
  132. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  133. package/lib/commands/project/create/format-elapsed.js +1 -1
  134. package/lib/commands/project/create/main.js +1 -1
  135. package/lib/commands/project/create/non-interactive.js +1 -1
  136. package/lib/commands/project/create/project-template-path.js +1 -1
  137. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  138. package/lib/commands/project/create/use-format-code.js +1 -1
  139. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  140. package/lib/commands/project/index.js +1 -1
  141. package/lib/commands/project/init.js +1 -1
  142. package/lib/commands/project/upgrade.js +1 -1
  143. package/lib/commands/registry.js +1 -1
  144. package/lib/commands/role/create.js +1 -1
  145. package/lib/commands/role/delete.js +1 -1
  146. package/lib/commands/role/detail.js +1 -1
  147. package/lib/commands/role/index.js +1 -1
  148. package/lib/commands/role/list.js +1 -1
  149. package/lib/commands/role/shared.js +1 -1
  150. package/lib/commands/role/update.js +1 -1
  151. package/lib/commands/role/user-add.js +1 -1
  152. package/lib/commands/role/user-remove.js +1 -1
  153. package/lib/commands/role/user-resolve.js +1 -1
  154. package/lib/commands/run/index.js +1 -1
  155. package/lib/commands/schema.js +1 -1
  156. package/lib/commands/sql/create.js +1 -1
  157. package/lib/commands/sql/delete.js +1 -1
  158. package/lib/commands/sql/detail.js +1 -1
  159. package/lib/commands/sql/exec.js +1 -1
  160. package/lib/commands/sql/index.js +1 -1
  161. package/lib/commands/sql/list.js +1 -1
  162. package/lib/commands/sql/pull.js +1 -1
  163. package/lib/commands/sql/push.js +1 -1
  164. package/lib/commands/sql/save.js +1 -1
  165. package/lib/commands/sql/shared.js +1 -1
  166. package/lib/commands/sql/status.js +1 -1
  167. package/lib/commands/sql/validate.js +1 -1
  168. package/lib/commands/workspace/add.js +1 -1
  169. package/lib/commands/workspace/index.js +1 -1
  170. package/lib/commands/workspace/remove.js +1 -1
  171. package/lib/config/schema.js +1 -1
  172. package/lib/constant/cdn.js +1 -1
  173. package/lib/constant/cli.js +1 -1
  174. package/lib/constant/defaults.js +1 -1
  175. package/lib/constant/domain.js +1 -1
  176. package/lib/constant/env.js +1 -1
  177. package/lib/constant/output.js +1 -1
  178. package/lib/constant/paths.js +1 -1
  179. package/lib/constant/risk.js +1 -1
  180. package/lib/context/app-resolver.js +1 -1
  181. package/lib/context/auth-resolver.js +1 -1
  182. package/lib/context/config-loader.js +1 -1
  183. package/lib/context.js +1 -1
  184. package/lib/core/alias-resolver.js +1 -1
  185. package/lib/core/api-client.js +1 -1
  186. package/lib/core/bff/config.js +1 -1
  187. package/lib/core/bff/file-system.js +1 -1
  188. package/lib/core/bff/hash.js +1 -1
  189. package/lib/core/bff/lock.js +1 -1
  190. package/lib/core/bff/utils.js +1 -1
  191. package/lib/core/db-resolver.js +1 -1
  192. package/lib/core/page/file-system.js +1 -1
  193. package/lib/core/page/hash.js +1 -1
  194. package/lib/core/page/lock.js +1 -1
  195. package/lib/core/sql-sync/config.js +1 -1
  196. package/lib/core/sql-sync/file-system.js +1 -1
  197. package/lib/core/sql-sync/hash.js +1 -1
  198. package/lib/core/sql-sync/lock.js +1 -1
  199. package/lib/core/sql-sync/utils.js +1 -1
  200. package/lib/core/sql-validator.js +1 -1
  201. package/lib/errors.js +1 -1
  202. package/lib/framework/build-all-flags.js +1 -1
  203. package/lib/framework/flags.js +1 -1
  204. package/lib/framework/help.js +1 -1
  205. package/lib/framework/index.js +1 -1
  206. package/lib/framework/output.js +1 -1
  207. package/lib/framework/response.js +1 -1
  208. package/lib/framework/runner-alias.js +1 -1
  209. package/lib/framework/runner.js +1 -1
  210. package/lib/framework/schema-export.js +1 -1
  211. package/lib/framework/types.js +1 -1
  212. package/lib/generated/build-info.js +1 -1
  213. package/lib/help.js +1 -1
  214. package/lib/skills/main.js +1 -1
  215. package/lib/skills/npx-skills-add.js +1 -1
  216. package/lib/telemetry/cli-command-trace.js +1 -1
  217. package/lib/telemetry/cli-help-trace.js +1 -1
  218. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  219. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  220. package/lib/telemetry/send-cli-trace-log.js +1 -1
  221. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  222. package/lib/utils/ai_config.js +1 -1
  223. package/lib/utils/apply-jq-filter.js +1 -1
  224. package/lib/utils/cdn-config.js +1 -1
  225. package/lib/utils/check-sdk-version.js +1 -1
  226. package/lib/utils/cli-version-check.js +1 -1
  227. package/lib/utils/cli-version-policy.js +1 -1
  228. package/lib/utils/config.js +1 -1
  229. package/lib/utils/copy-directory.js +1 -1
  230. package/lib/utils/entity-with-id.js +1 -1
  231. package/lib/utils/file-utils.js +1 -1
  232. package/lib/utils/guides-cdn.js +1 -1
  233. package/lib/utils/http-client.js +1 -1
  234. package/lib/utils/is-non-interactive.js +1 -1
  235. package/lib/utils/logger.js +1 -1
  236. package/lib/utils/params.js +1 -1
  237. package/lib/utils/platform.js +1 -1
  238. package/lib/utils/rules-cdn.js +1 -1
  239. package/lib/utils/sleep.js +1 -1
  240. package/lib/utils/template-replacer.js +1 -1
  241. package/lib/utils/update-notice.js +1 -1
  242. package/lib/utils/version.js +1 -1
  243. package/lib/utils/with-active-cookie.js +1 -1
  244. package/lib/utils/write-cli-side-channel.js +1 -1
  245. package/package.json +1 -1
@@ -1 +1 @@
1
- const a92_0x220658=a92_0x1289;(function(_0x247f07,_0x77fbd6){const _0x3a8d8a=a92_0x1289,_0x35384a=_0x247f07();while(!![]){try{const _0x28280e=-parseInt(_0x3a8d8a(0xc4))/0x1+parseInt(_0x3a8d8a(0x88))/0x2*(parseInt(_0x3a8d8a(0xa5))/0x3)+-parseInt(_0x3a8d8a(0xc3))/0x4*(-parseInt(_0x3a8d8a(0xc2))/0x5)+-parseInt(_0x3a8d8a(0x97))/0x6*(parseInt(_0x3a8d8a(0xd1))/0x7)+parseInt(_0x3a8d8a(0x8f))/0x8*(parseInt(_0x3a8d8a(0xc9))/0x9)+parseInt(_0x3a8d8a(0x9b))/0xa*(-parseInt(_0x3a8d8a(0xd9))/0xb)+-parseInt(_0x3a8d8a(0xd3))/0xc*(-parseInt(_0x3a8d8a(0x89))/0xd);if(_0x28280e===_0x77fbd6)break;else _0x35384a['push'](_0x35384a['shift']());}catch(_0x1bd284){_0x35384a['push'](_0x35384a['shift']());}}}(a92_0x2bfb,0x21dcc));import a92_0xd025b4 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a92_0x2bfb(){const _0x449dc6=['\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','log','429306VSUqEj','yellow','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','10990wRNFzl','platform','apiDir','(none)','source','empty','read','status','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','8097BgHWBR','locale','✓\x20Valid','verbose','\x20\x20explicitAppName:\x20','padEnd','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20\x20─','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','gray','riskLevel','(no\x20file)','defaultApp','\x20\x20Apps','(not\x20found)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','(set,\x20length=','length','\x20\x20runtimeDomain:\x20\x20\x20','missing','format','bold','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','5eIbwuC','459896zpKNdq','226581KxuatB','unknown','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','explicitAppName','132453kefoTt','\x20doctor','repeat','version','value','appcode','\x20\x20Config\x20Files','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','21xVZyQP','cookie','12YxYAYu','raw','✗\x20Expired','currentApp','(missing)','\x20\x20API\x20Endpoints','781xSHaxf','Project','green','✗\x20Invalid\x20JSON','check','env','appCode','182oEgqDq','2144051pFVfwL','\x20\x20\x20\x20accessKey:\x20\x20','accessKey','slice','✗\x20Not\x20logged\x20in','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','72VmakJq','(default)','red','keys','message','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a92_0x2bfb=function(){return _0x449dc6;};return a92_0x2bfb();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a92_0x1289(_0x4ff52a,_0x52913b){_0x4ff52a=_0x4ff52a-0x86;const _0x2bfbae=a92_0x2bfb();let _0x12891c=_0x2bfbae[_0x4ff52a];return _0x12891c;}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(_0x52b82c){const _0x372700=a92_0x1289,_0x382f7b=GIT_COMMIT!==_0x372700(0xc5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x372700(0x8c)](0x0,0xa)+')':VERSION,_0x389291=buildConfigFromFlags({}),_0x1f4700=getCookie();console[_0x372700(0x96)](),console[_0x372700(0x96)](a92_0xd025b4[_0x372700(0xc0)](CLI_BIN_NAME+_0x372700(0xca))),console[_0x372700(0x96)](a92_0xd025b4[_0x372700(0xb3)]('─'[_0x372700(0xcb)](0x32))),console['log'](_0x372700(0xc1)+_0x382f7b),console[_0x372700(0x96)](_0x372700(0xab)+process[_0x372700(0xcc)]),console[_0x372700(0x96)](_0x372700(0x9a)+process[_0x372700(0x9c)]+'\x20'+process['arch']),console[_0x372700(0x96)](),console[_0x372700(0x96)](a92_0xd025b4['bold'](_0x372700(0xcf))),console['log'](a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xad)[_0x372700(0xcb)](0x1e)));const _0x34549a=getGlobalConfigPath(),_0x2a2c5d=getProjectConfigPath();console[_0x372700(0x96)](_0x372700(0xb9)+(_0x34549a||a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xb8)))),console['log'](_0x372700(0xd0)+(_0x2a2c5d||a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xb8)))),console[_0x372700(0x96)](),console['log'](a92_0xd025b4[_0x372700(0xc0)](_0x372700(0xb0))),console[_0x372700(0x96)](a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xad)['repeat'](0x1e)));const _0x2ae2f9=(_0x42b4b7,_0x5bd5cb)=>{const _0x4bca54=_0x372700;if(!_0x5bd5cb){console[_0x4bca54(0x96)]('\x20\x20'+_0x42b4b7[_0x4bca54(0xaa)](0x11)+'\x20'+a92_0xd025b4[_0x4bca54(0xb3)](_0x4bca54(0xb5)));return;}const _0x4e89a4=inspectCliConfigJsonFile(_0x5bd5cb);if(_0x4e89a4[_0x4bca54(0xa2)]==='ok')console[_0x4bca54(0x96)]('\x20\x20'+_0x42b4b7[_0x4bca54(0xaa)](0x11)+'\x20'+a92_0xd025b4[_0x4bca54(0xdb)](_0x4bca54(0xc7)));else{if(_0x4e89a4[_0x4bca54(0xa2)]===_0x4bca54(0xa0))console[_0x4bca54(0x96)]('\x20\x20'+_0x42b4b7[_0x4bca54(0xaa)](0x11)+'\x20'+a92_0xd025b4[_0x4bca54(0x98)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4e89a4[_0x4bca54(0xa2)]===_0x4bca54(0xbe)?console['log']('\x20\x20'+_0x42b4b7[_0x4bca54(0xaa)](0x11)+'\x20'+a92_0xd025b4['gray'](_0x4bca54(0xd7))):(console['log']('\x20\x20'+_0x42b4b7[_0x4bca54(0xaa)](0x11)+'\x20'+a92_0xd025b4[_0x4bca54(0x91)](_0x4bca54(0xdc))),console['log']('\x20\x20'+''[_0x4bca54(0xaa)](0x11)+'\x20'+a92_0xd025b4[_0x4bca54(0x91)](_0x4e89a4[_0x4bca54(0x93)])));}};_0x2ae2f9(_0x372700(0xba),_0x34549a),_0x2ae2f9(_0x372700(0xda),_0x2a2c5d),console[_0x372700(0x96)](),console[_0x372700(0x96)](a92_0xd025b4[_0x372700(0xc0)]('\x20\x20Merged\x20Config')),console['log'](a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xad)[_0x372700(0xcb)](0x1e))),console[_0x372700(0x96)](_0x372700(0x94)+(_0x389291[_0x372700(0x87)]||a92_0xd025b4[_0x372700(0x91)]('(not\x20set)'))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x389291['env']),console[_0x372700(0x96)](_0x372700(0xc6)+_0x389291[_0x372700(0xa6)]),console[_0x372700(0x96)](_0x372700(0xa3)+_0x389291[_0x372700(0x9d)]),console[_0x372700(0x96)](_0x372700(0x99)+(_0x389291['defaultApp']||a92_0xd025b4['gray'](_0x372700(0x9e)))),console[_0x372700(0x96)](_0x372700(0x8e)+(_0x389291['currentApp']||a92_0xd025b4[_0x372700(0xb3)](_0x372700(0x9e)))),console[_0x372700(0x96)](_0x372700(0xa9)+(_0x389291[_0x372700(0xc8)]||a92_0xd025b4[_0x372700(0xb3)](_0x372700(0x9e)))),console[_0x372700(0x96)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x389291['format']||a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xac)+DEFAULT_CONFIG_VALUES[_0x372700(0xbf)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x389291['pageSize']??a92_0xd025b4[_0x372700(0xb3)](_0x372700(0x90)))),console[_0x372700(0x96)](_0x372700(0x95)+_0x389291[_0x372700(0xb4)]),console[_0x372700(0x96)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x389291[_0x372700(0xa8)]),console['log'](_0x372700(0xaf)+(_0x389291['cookie']?a92_0xd025b4[_0x372700(0xdb)](_0x372700(0xbb)+_0x389291[_0x372700(0xd2)][_0x372700(0xbc)]+')'):_0x1f4700?a92_0xd025b4[_0x372700(0xdb)]('(set\x20via\x20file,\x20length='+_0x1f4700[_0x372700(0xbc)]+')'):a92_0xd025b4[_0x372700(0xb3)]('(none)')));const _0x2fb30c=Object[_0x372700(0x92)](_0x389291['apps']);if(_0x2fb30c[_0x372700(0xbc)]>0x0){console[_0x372700(0x96)](),console['log'](a92_0xd025b4['bold'](_0x372700(0xb7))),console[_0x372700(0x96)](a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xad)[_0x372700(0xcb)](0x1e)));for(const _0x47623d of _0x2fb30c){const _0x39883d=_0x389291['apps'][_0x47623d],_0x737989=_0x47623d===_0x389291[_0x372700(0xb6)],_0x229405=_0x47623d===_0x389291[_0x372700(0xd6)],_0x372173=_0x229405?a92_0xd025b4['green']('\x20←\x20current'):'',_0xc6099a=_0x737989?'\x20(default)':'';console[_0x372700(0x96)]('\x20\x20'+_0x47623d+_0xc6099a+_0x372173),console[_0x372700(0x96)](_0x372700(0xa4)+_0x39883d[_0x372700(0xce)]);const _0xcd790e=buildAppDoctorFields(_0x39883d,{'env':_0x389291['env'],'apiDir':_0x389291[_0x372700(0xd4)][_0x372700(0x9d)]||DEFAULT_CONFIG_VALUES[_0x372700(0x9d)],'cookie':_0x389291['cookie']||_0x1f4700||undefined,'accessKey':_0x389291['accessKey']});console[_0x372700(0x96)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xcd790e[_0x372700(0x86)][_0x372700(0xcd)]+'\x20\x20'+a92_0xd025b4['gray']('('+_0xcd790e[_0x372700(0x86)][_0x372700(0x9f)]+')')),console[_0x372700(0x96)](_0x372700(0xb1)+_0xcd790e[_0x372700(0x9d)][_0x372700(0xcd)]+'\x20\x20'+a92_0xd025b4[_0x372700(0xb3)]('('+_0xcd790e[_0x372700(0x9d)]['source']+')'));const _0x1045be=_0xcd790e[_0x372700(0xd2)][_0x372700(0xcd)]?a92_0xd025b4['green'](_0x372700(0xbb)+_0xcd790e[_0x372700(0xd2)]['value'][_0x372700(0xbc)]+')'):a92_0xd025b4[_0x372700(0xb3)](_0x372700(0x9e));console['log']('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1045be+'\x20\x20'+a92_0xd025b4[_0x372700(0xb3)]('('+_0xcd790e[_0x372700(0xd2)][_0x372700(0x9f)]+')'));const _0x416d8f=_0xcd790e[_0x372700(0x8b)][_0x372700(0xcd)]?a92_0xd025b4[_0x372700(0xdb)]('(set,\x20length='+_0xcd790e[_0x372700(0x8b)][_0x372700(0xcd)]['length']+')'):a92_0xd025b4['gray']('(none)');console[_0x372700(0x96)](_0x372700(0x8a)+_0x416d8f+'\x20\x20'+a92_0xd025b4['gray']('('+_0xcd790e[_0x372700(0x8b)][_0x372700(0x9f)]+')'));}}console[_0x372700(0x96)](),console['log'](a92_0xd025b4[_0x372700(0xc0)](_0x372700(0xd8))),console[_0x372700(0x96)](a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xad)[_0x372700(0xcb)](0x1e))),console['log'](_0x372700(0xae)+getApiDomain()),console[_0x372700(0x96)](_0x372700(0xb2)+getUserDomain()),console[_0x372700(0x96)](_0x372700(0xbd)+getRuntimeDomain()),console['log'](),console['log'](a92_0xd025b4['bold']('\x20\x20Auth')),console[_0x372700(0x96)](a92_0xd025b4[_0x372700(0xb3)](_0x372700(0xad)[_0x372700(0xcb)](0x1e)));if(_0x1f4700){const _0x2c8ca0=await getIsSessionValid();console[_0x372700(0x96)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c8ca0?a92_0xd025b4[_0x372700(0xdb)](_0x372700(0xa7)):a92_0xd025b4[_0x372700(0x91)](_0x372700(0xd5))));}else console[_0x372700(0x96)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0xd025b4[_0x372700(0x91)](_0x372700(0x8d)));return console[_0x372700(0x96)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a92_0x220658(0xdd),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x220658(0xa1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a92_0x2a3582=a92_0x471d;function a92_0x471d(_0x6bcee6,_0x13f976){_0x6bcee6=_0x6bcee6-0x100;const _0x57e011=a92_0x57e0();let _0x471d4d=_0x57e011[_0x6bcee6];return _0x471d4d;}function a92_0x57e0(){const _0x52614a=['\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','status','defaultApp','missing','1786365ZNQkMm','doctor','gray','78704HAOxjy','version','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','read','source','Project','\x20\x20Config\x20Files','\x20\x20─','(not\x20found)','\x20\x20runtimeDomain:\x20\x20\x20','bold','Global','318cNWsNF','cookie','accessKey','\x20\x20API\x20Endpoints','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','✓\x20Valid','log','3978128fABIig','✗\x20Not\x20logged\x20in','verbose','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','\x20\x20Config\x20JSON','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','3241063lHgWwr','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','keys','appcode','length','message','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','(default)','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','(set,\x20length=','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','env','6369080YegSKq','\x20(default)','36544KzlTMq','6cmyZqi','18OepYUQ','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','value','red','pageSize','format','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','empty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Apps','currentApp','1NEbDVW','(missing)','925146CAQkSa','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(not\x20set)'];a92_0x57e0=function(){return _0x52614a;};return a92_0x57e0();}(function(_0x319db6,_0x3f3a12){const _0x16b098=a92_0x471d,_0x186789=_0x319db6();while(!![]){try{const _0x3b119e=parseInt(_0x16b098(0x10a))/0x1*(-parseInt(_0x16b098(0x10c))/0x2)+parseInt(_0x16b098(0x123))/0x3*(parseInt(_0x16b098(0x14a))/0x4)+-parseInt(_0x16b098(0x113))/0x5+-parseInt(_0x16b098(0x14b))/0x6*(-parseInt(_0x16b098(0x136))/0x7)+parseInt(_0x16b098(0x116))/0x8*(-parseInt(_0x16b098(0x14c))/0x9)+parseInt(_0x16b098(0x148))/0xa+-parseInt(_0x16b098(0x12b))/0xb;if(_0x3b119e===_0x3f3a12)break;else _0x186789['push'](_0x186789['shift']());}catch(_0x5b0784){_0x186789['push'](_0x186789['shift']());}}}(a92_0x57e0,0xd3b5b));import a92_0x44e7d2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x85d7f2){const _0x1f1a4=a92_0x471d,_0x348a98=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x29c3ce=buildConfigFromFlags({}),_0x2dd39f=getCookie();console['log'](),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x121)](CLI_BIN_NAME+_0x1f1a4(0x144))),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x115)]('─'[_0x1f1a4(0x151)](0x32))),console[_0x1f1a4(0x12a)](_0x1f1a4(0x142)+_0x348a98),console['log'](_0x1f1a4(0x12e)+process[_0x1f1a4(0x117)]),console['log'](_0x1f1a4(0x10f)+process['platform']+'\x20'+process['arch']),console['log'](),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x121)](_0x1f1a4(0x11d))),console[_0x1f1a4(0x12a)](a92_0x44e7d2['gray'](_0x1f1a4(0x11e)[_0x1f1a4(0x151)](0x1e)));const _0x2d869d=getGlobalConfigPath(),_0x2c9d18=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2d869d||a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x11f)))),console[_0x1f1a4(0x12a)](_0x1f1a4(0x105)+(_0x2c9d18||a92_0x44e7d2[_0x1f1a4(0x115)]('(not\x20found)'))),console[_0x1f1a4(0x12a)](),console['log'](a92_0x44e7d2[_0x1f1a4(0x121)](_0x1f1a4(0x132))),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x11e)[_0x1f1a4(0x151)](0x1e)));const _0x3fe39d=(_0x2a677e,_0x28b916)=>{const _0x420dea=_0x1f1a4;if(!_0x28b916){console[_0x420dea(0x12a)]('\x20\x20'+_0x2a677e[_0x420dea(0x141)](0x11)+'\x20'+a92_0x44e7d2['gray']('(no\x20file)'));return;}const _0xba3bcd=inspectCliConfigJsonFile(_0x28b916);if(_0xba3bcd[_0x420dea(0x110)]==='ok')console[_0x420dea(0x12a)]('\x20\x20'+_0x2a677e[_0x420dea(0x141)](0x11)+'\x20'+a92_0x44e7d2[_0x420dea(0x14e)]('✓\x20Valid\x20JSON'));else{if(_0xba3bcd[_0x420dea(0x110)]===_0x420dea(0x103))console[_0x420dea(0x12a)]('\x20\x20'+_0x2a677e[_0x420dea(0x141)](0x11)+'\x20'+a92_0x44e7d2['yellow'](_0x420dea(0x14f)));else _0xba3bcd[_0x420dea(0x110)]===_0x420dea(0x112)?console[_0x420dea(0x12a)]('\x20\x20'+_0x2a677e[_0x420dea(0x141)](0x11)+'\x20'+a92_0x44e7d2[_0x420dea(0x115)](_0x420dea(0x10b))):(console[_0x420dea(0x12a)]('\x20\x20'+_0x2a677e[_0x420dea(0x141)](0x11)+'\x20'+a92_0x44e7d2['red']('✗\x20Invalid\x20JSON')),console[_0x420dea(0x12a)]('\x20\x20'+''[_0x420dea(0x141)](0x11)+'\x20'+a92_0x44e7d2[_0x420dea(0x153)](_0xba3bcd[_0x420dea(0x13c)])));}};_0x3fe39d(_0x1f1a4(0x122),_0x2d869d),_0x3fe39d(_0x1f1a4(0x11c),_0x2c9d18),console[_0x1f1a4(0x12a)](),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x121)]('\x20\x20Merged\x20Config')),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x115)]('\x20\x20─'[_0x1f1a4(0x151)](0x1e))),console[_0x1f1a4(0x12a)](_0x1f1a4(0x130)+(_0x29c3ce['appCode']||a92_0x44e7d2[_0x1f1a4(0x153)](_0x1f1a4(0x10e)))),console['log'](_0x1f1a4(0x134)+_0x29c3ce[_0x1f1a4(0x147)]),console[_0x1f1a4(0x12a)](_0x1f1a4(0x140)+_0x29c3ce[_0x1f1a4(0x106)]),console[_0x1f1a4(0x12a)](_0x1f1a4(0x127)+_0x29c3ce[_0x1f1a4(0x128)]),console[_0x1f1a4(0x12a)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x29c3ce[_0x1f1a4(0x111)]||a92_0x44e7d2[_0x1f1a4(0x115)]('(none)'))),console[_0x1f1a4(0x12a)](_0x1f1a4(0x102)+(_0x29c3ce[_0x1f1a4(0x109)]||a92_0x44e7d2[_0x1f1a4(0x115)]('(none)'))),console[_0x1f1a4(0x12a)]('\x20\x20explicitAppName:\x20'+(_0x29c3ce[_0x1f1a4(0x138)]||a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x135)))),console['log'](_0x1f1a4(0x137)+(_0x29c3ce[_0x1f1a4(0x101)]||a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x12f)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x1f1a4(0x12a)](_0x1f1a4(0x118)+(_0x29c3ce[_0x1f1a4(0x100)]??a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x13e)))),console['log'](_0x1f1a4(0x10d)+_0x29c3ce['riskLevel']),console['log'](_0x1f1a4(0x150)+_0x29c3ce[_0x1f1a4(0x12d)]),console[_0x1f1a4(0x12a)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x29c3ce[_0x1f1a4(0x124)]?a92_0x44e7d2[_0x1f1a4(0x14e)](_0x1f1a4(0x145)+_0x29c3ce[_0x1f1a4(0x124)][_0x1f1a4(0x13b)]+')'):_0x2dd39f?a92_0x44e7d2['green']('(set\x20via\x20file,\x20length='+_0x2dd39f[_0x1f1a4(0x13b)]+')'):a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x135))));const _0x26d018=Object[_0x1f1a4(0x139)](_0x29c3ce[_0x1f1a4(0x131)]);if(_0x26d018[_0x1f1a4(0x13b)]>0x0){console[_0x1f1a4(0x12a)](),console['log'](a92_0x44e7d2[_0x1f1a4(0x121)](_0x1f1a4(0x108))),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x11e)[_0x1f1a4(0x151)](0x1e)));for(const _0x18c4fa of _0x26d018){const _0x5d0e13=_0x29c3ce[_0x1f1a4(0x131)][_0x18c4fa],_0x55df94=_0x18c4fa===_0x29c3ce['defaultApp'],_0x12582b=_0x18c4fa===_0x29c3ce[_0x1f1a4(0x109)],_0x492b67=_0x12582b?a92_0x44e7d2['green']('\x20←\x20current'):'',_0x1306e6=_0x55df94?_0x1f1a4(0x149):'';console[_0x1f1a4(0x12a)]('\x20\x20'+_0x18c4fa+_0x1306e6+_0x492b67),console[_0x1f1a4(0x12a)](_0x1f1a4(0x104)+_0x5d0e13[_0x1f1a4(0x13a)]);const _0x5ecb5c=buildAppDoctorFields(_0x5d0e13,{'env':_0x29c3ce[_0x1f1a4(0x147)],'apiDir':_0x29c3ce['raw'][_0x1f1a4(0x128)]||DEFAULT_CONFIG_VALUES[_0x1f1a4(0x128)],'cookie':_0x29c3ce['cookie']||_0x2dd39f||undefined,'accessKey':_0x29c3ce[_0x1f1a4(0x125)]});console[_0x1f1a4(0x12a)](_0x1f1a4(0x143)+_0x5ecb5c[_0x1f1a4(0x147)][_0x1f1a4(0x152)]+'\x20\x20'+a92_0x44e7d2[_0x1f1a4(0x115)]('('+_0x5ecb5c[_0x1f1a4(0x147)][_0x1f1a4(0x11b)]+')')),console[_0x1f1a4(0x12a)](_0x1f1a4(0x133)+_0x5ecb5c['apiDir'][_0x1f1a4(0x152)]+'\x20\x20'+a92_0x44e7d2['gray']('('+_0x5ecb5c[_0x1f1a4(0x128)][_0x1f1a4(0x11b)]+')'));const _0x8ecd90=_0x5ecb5c[_0x1f1a4(0x124)][_0x1f1a4(0x152)]?a92_0x44e7d2[_0x1f1a4(0x14e)](_0x1f1a4(0x145)+_0x5ecb5c[_0x1f1a4(0x124)]['value'][_0x1f1a4(0x13b)]+')'):a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x135));console['log'](_0x1f1a4(0x107)+_0x8ecd90+'\x20\x20'+a92_0x44e7d2[_0x1f1a4(0x115)]('('+_0x5ecb5c['cookie'][_0x1f1a4(0x11b)]+')'));const _0xf4c185=_0x5ecb5c[_0x1f1a4(0x125)][_0x1f1a4(0x152)]?a92_0x44e7d2['green'](_0x1f1a4(0x145)+_0x5ecb5c['accessKey'][_0x1f1a4(0x152)][_0x1f1a4(0x13b)]+')'):a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x135));console[_0x1f1a4(0x12a)](_0x1f1a4(0x13f)+_0xf4c185+'\x20\x20'+a92_0x44e7d2[_0x1f1a4(0x115)]('('+_0x5ecb5c[_0x1f1a4(0x125)][_0x1f1a4(0x11b)]+')'));}}console[_0x1f1a4(0x12a)](),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x121)](_0x1f1a4(0x126))),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x115)]('\x20\x20─'[_0x1f1a4(0x151)](0x1e))),console[_0x1f1a4(0x12a)](_0x1f1a4(0x119)+getApiDomain()),console[_0x1f1a4(0x12a)](_0x1f1a4(0x146)+getUserDomain()),console[_0x1f1a4(0x12a)](_0x1f1a4(0x120)+getRuntimeDomain()),console[_0x1f1a4(0x12a)](),console[_0x1f1a4(0x12a)](a92_0x44e7d2['bold']('\x20\x20Auth')),console[_0x1f1a4(0x12a)](a92_0x44e7d2[_0x1f1a4(0x115)](_0x1f1a4(0x11e)['repeat'](0x1e)));if(_0x2dd39f){const _0x2c811f=await getIsSessionValid();console[_0x1f1a4(0x12a)](_0x1f1a4(0x14d)+(_0x2c811f?a92_0x44e7d2[_0x1f1a4(0x14e)](_0x1f1a4(0x129)):a92_0x44e7d2[_0x1f1a4(0x153)]('✗\x20Expired')));}else console[_0x1f1a4(0x12a)](_0x1f1a4(0x14d)+a92_0x44e7d2[_0x1f1a4(0x153)](_0x1f1a4(0x12c)));return console[_0x1f1a4(0x12a)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x2a3582(0x114),'command':'check','description':a92_0x2a3582(0x13d),'risk':a92_0x2a3582(0x11a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a93_0x7860ea=a93_0x4ede;(function(_0x5b1729,_0xfe5f73){const _0x2e5c1c=a93_0x4ede,_0x525e18=_0x5b1729();while(!![]){try{const _0x509648=parseInt(_0x2e5c1c(0x96))/0x1+parseInt(_0x2e5c1c(0x87))/0x2*(parseInt(_0x2e5c1c(0x80))/0x3)+-parseInt(_0x2e5c1c(0x8a))/0x4+-parseInt(_0x2e5c1c(0x7e))/0x5+-parseInt(_0x2e5c1c(0x97))/0x6+parseInt(_0x2e5c1c(0x95))/0x7+parseInt(_0x2e5c1c(0x94))/0x8;if(_0x509648===_0xfe5f73)break;else _0x525e18['push'](_0x525e18['shift']());}catch(_0x496d3d){_0x525e18['push'](_0x525e18['shift']());}}}(a93_0x8ae1,0x2b31b));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a93_0x8ae1(){const _0x23cc70=['801816jUNSgO','Path\x20to\x20the\x20local\x20file\x20to\x20upload','POST','/smartapi/common/uploadFile','upload','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','write','bool','filePath\x20is\x20required.','str','2693144YaAkAx','1177778FPqOZw','144803IctPWO','1584774wCVJSN','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filepath','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','download','filePath','file','query-url','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','1318445IXRxRV','Preview:\x20upload\x20','9mxkkLz','read','long-term','File','boolean','path','appCode','170330JnWlkD','validation','Uploaded\x20file:\x20'];a93_0x8ae1=function(){return _0x23cc70;};return a93_0x8ae1();}const FILE_FLAG={'name':a93_0x7860ea(0x7b),'type':'string','required':!![],'description':a93_0x7860ea(0x8b)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a93_0x7860ea(0x9a)},DOWNLOAD_FLAG={'name':a93_0x7860ea(0x79),'type':a93_0x7860ea(0x84),'description':a93_0x7860ea(0x98)},LONG_TERM_FLAG={'name':a93_0x7860ea(0x82),'type':a93_0x7860ea(0x84),'description':a93_0x7860ea(0x7d)};function requireFilePath(_0x41d5f4){const _0x313583=a93_0x7860ea,_0x2331bd=_0x41d5f4['trim']();if(!_0x2331bd)throw CliErrors[_0x313583(0x88)](_0x313583(0x92));return _0x2331bd;}function a93_0x4ede(_0x4cef21,_0x25860f){_0x4cef21=_0x4cef21-0x79;const _0x8ae137=a93_0x8ae1();let _0x4edef2=_0x8ae137[_0x4cef21];return _0x4edef2;}const fileUpload={'service':'file','command':a93_0x7860ea(0x8e),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a93_0x7860ea(0x90),'flags':[FILE_FLAG],async 'dryRun'(_0x4d6367){const _0x5d8ddf=a93_0x7860ea,_0x3810f4=requireDevelopmentUploadFile(_0x4d6367[_0x5d8ddf(0x93)](_0x5d8ddf(0x7b)),_0x5d8ddf(0x83));return{'method':_0x5d8ddf(0x8c),'url':_0x5d8ddf(0x8d),'body':{'appCode':_0x4d6367[_0x5d8ddf(0x86)],'multipart':{'file':_0x3810f4}},'description':_0x5d8ddf(0x7f)+_0x3810f4[_0x5d8ddf(0x85)]+'\x20to\x20development\x20app\x20'+_0x4d6367['appCode']};},async 'execute'(_0x21272a){const _0x294eb3=a93_0x7860ea,_0x38f3bd=requireDevelopmentUploadFile(_0x21272a[_0x294eb3(0x93)](_0x294eb3(0x7b)),'File'),_0x604eb1=await uploadDevelopmentFile(_0x21272a['appCode'],_0x38f3bd[_0x294eb3(0x85)]);return{'ok':!![],'data':_0x604eb1,'message':_0x604eb1[_0x294eb3(0x7a)]?_0x294eb3(0x89)+_0x604eb1[_0x294eb3(0x7a)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x294eb3(0x8f)};}},fileQueryUrl={'service':a93_0x7860ea(0x7b),'command':a93_0x7860ea(0x7c),'description':a93_0x7860ea(0x9b),'risk':a93_0x7860ea(0x81),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5b3b0c){const _0x36f323=a93_0x7860ea,_0x29c350=requireFilePath(_0x5b3b0c['str'](_0x36f323(0x99))),_0xb544f1=await queryDevelopmentFileUrl(_0x29c350,{'download':_0x5b3b0c[_0x36f323(0x91)]('download'),'longTerm':_0x5b3b0c[_0x36f323(0x91)]('long-term')});return{'ok':!![],'data':_0xb544f1};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a93_0xcbb176=a93_0x3762;(function(_0x53c6d3,_0x1f26cb){const _0x3006f1=a93_0x3762,_0x41a949=_0x53c6d3();while(!![]){try{const _0x17b092=parseInt(_0x3006f1(0x201))/0x1*(-parseInt(_0x3006f1(0x202))/0x2)+parseInt(_0x3006f1(0x214))/0x3+-parseInt(_0x3006f1(0x1f3))/0x4+-parseInt(_0x3006f1(0x213))/0x5+parseInt(_0x3006f1(0x1f5))/0x6*(-parseInt(_0x3006f1(0x20d))/0x7)+parseInt(_0x3006f1(0x210))/0x8+parseInt(_0x3006f1(0x203))/0x9;if(_0x17b092===_0x1f26cb)break;else _0x41a949['push'](_0x41a949['shift']());}catch(_0xc6a550){_0x41a949['push'](_0x41a949['shift']());}}}(a93_0x10d3,0xc91a0));function a93_0x3762(_0xdd7bcd,_0x542365){_0xdd7bcd=_0xdd7bcd-0x1f2;const _0x10d321=a93_0x10d3();let _0x37629f=_0x10d321[_0xdd7bcd];return _0x37629f;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a93_0x10d3(){const _0x39ba5e=['POST','boolean','14VQSnpZ','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','11012704qsOdMY','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','download','4366805zWDsJM','4511847Eklzfs','\x20to\x20development\x20app\x20','Preview:\x20upload\x20','file','2060988ZfIsDQ','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','3039954iVCAdl','write','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','string','File','trim','bool','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','read','upload','path','str','1dUtFQn','2108030auQFTg','12592044NUOJui','appCode','query-url','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filepath','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'];a93_0x10d3=function(){return _0x39ba5e;};return a93_0x10d3();}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0xcbb176(0x1f2),'type':a93_0xcbb176(0x1f8),'required':!![],'description':a93_0xcbb176(0x208)},FILEPATH_FLAG={'name':a93_0xcbb176(0x207),'type':a93_0xcbb176(0x1f8),'required':!![],'description':a93_0xcbb176(0x20e)},DOWNLOAD_FLAG={'name':'download','type':a93_0xcbb176(0x20c),'description':a93_0xcbb176(0x206)},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':a93_0xcbb176(0x20a)};function requireFilePath(_0x14feb9){const _0x5a909e=a93_0xcbb176,_0x4c75cc=_0x14feb9[_0x5a909e(0x1fa)]();if(!_0x4c75cc)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x4c75cc;}const fileUpload={'service':a93_0xcbb176(0x1f2),'command':a93_0xcbb176(0x1fe),'description':a93_0xcbb176(0x1fc),'risk':a93_0xcbb176(0x1f6),'flags':[FILE_FLAG],async 'dryRun'(_0x48753b){const _0x159f7a=a93_0xcbb176,_0x10a91b=requireDevelopmentUploadFile(_0x48753b[_0x159f7a(0x200)](_0x159f7a(0x1f2)),_0x159f7a(0x1f9));return{'method':_0x159f7a(0x20b),'url':_0x159f7a(0x20f),'body':{'appCode':_0x48753b[_0x159f7a(0x204)],'multipart':{'file':_0x10a91b}},'description':_0x159f7a(0x216)+_0x10a91b[_0x159f7a(0x1ff)]+_0x159f7a(0x215)+_0x48753b[_0x159f7a(0x204)]};},async 'execute'(_0xdefaa8){const _0x4c536c=a93_0xcbb176,_0x1dc1c8=requireDevelopmentUploadFile(_0xdefaa8[_0x4c536c(0x200)](_0x4c536c(0x1f2)),_0x4c536c(0x1f9)),_0x2095b5=await uploadDevelopmentFile(_0xdefaa8['appCode'],_0x1dc1c8[_0x4c536c(0x1ff)]);return{'ok':!![],'data':_0x2095b5,'message':_0x2095b5['filePath']?'Uploaded\x20file:\x20'+_0x2095b5[_0x4c536c(0x209)]+_0x4c536c(0x1f4):_0x4c536c(0x1f7)};}},fileQueryUrl={'service':a93_0xcbb176(0x1f2),'command':a93_0xcbb176(0x205),'description':a93_0xcbb176(0x211),'risk':a93_0xcbb176(0x1fd),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x56d961){const _0x145fc1=a93_0xcbb176,_0x1cef17=requireFilePath(_0x56d961[_0x145fc1(0x200)](_0x145fc1(0x207))),_0x47de94=await queryDevelopmentFileUrl(_0x1cef17,{'download':_0x56d961['bool'](_0x145fc1(0x212)),'longTerm':_0x56d961[_0x145fc1(0x1fb)]('long-term')});return{'ok':!![],'data':_0x47de94};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a94_0x1e205e=a94_0x143d;function a94_0x2a6d(){const _0x40465c=['Use\x20`','project','App\x20code\x20to\x20initialize\x20with','10146556gPCyFC','map','join','write','global','env','1339672kTItMB','toLocaleString','appCode','检测到旧配置文件,正在自动升级...\x0a','6851796rcILfs','string','yes','init','10RGxtYa','defaultApp','cwd','20vBxhis','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','40321BPyHHW','valid','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','str','11626450LBzPiZ','production','bool','Target\x20environment','../../commands/project/init.js','Usage:\x20','nonInteractive','\x20config','\x20\x20Config:\x20','36NCTqsD','Auto-confirm\x20prompts','appcode','run','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','validation','1071200wtTqwm','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','log','custom','4257960gCmSMR'];a94_0x2a6d=function(){return _0x40465c;};return a94_0x2a6d();}(function(_0x57057c,_0x36f349){const _0x218f23=a94_0x143d,_0x27352b=_0x57057c();while(!![]){try{const _0x229a71=-parseInt(_0x218f23(0xfe))/0x1*(-parseInt(_0x218f23(0xf9))/0x2)+parseInt(_0x218f23(0x115))/0x3+parseInt(_0x218f23(0x111))/0x4*(-parseInt(_0x218f23(0xfc))/0x5)+parseInt(_0x218f23(0xf5))/0x6+-parseInt(_0x218f23(0xeb))/0x7+-parseInt(_0x218f23(0xf1))/0x8*(parseInt(_0x218f23(0x10b))/0x9)+parseInt(_0x218f23(0x102))/0xa;if(_0x229a71===_0x36f349)break;else _0x27352b['push'](_0x27352b['shift']());}catch(_0x486e04){_0x27352b['push'](_0x27352b['shift']());}}}(a94_0x2a6d,0xb3710));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a94_0x143d(_0xa1a207,_0x747926){_0xa1a207=_0xa1a207-0xe8;const _0x2a6d5f=a94_0x2a6d();let _0x143dc2=_0x2a6d5f[_0xa1a207];return _0x143dc2;}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x1eee9e){return{'appCode':_0x1eee9e,'appName':_0x1eee9e};}function writeInitConfig(_0x270fe3,_0x10d9c9,_0x561ed3){const _0x5e01b7=a94_0x143d,_0x2da615=resolveWriteConfigPath(_0x270fe3),_0x3d8e0b=buildCanonicalProjectConfig({},{'appCodes':_0x10d9c9[_0x5e01b7(0xec)](_0x18be87=>_0x18be87['appCode']),'env':_0x561ed3,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5e01b7(0xf2)]()}});writeConfigFile(_0x2da615,_0x3d8e0b);const _0x11dd10=_0x270fe3===_0x5e01b7(0xef)?'global':'project';console[_0x5e01b7(0x113)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x11dd10+_0x5e01b7(0x109)),console[_0x5e01b7(0x113)]('\x20\x20Apps:\x20'+_0x10d9c9[_0x5e01b7(0xec)](_0x5d4c8a=>_0x5d4c8a[_0x5e01b7(0xf3)])[_0x5e01b7(0xed)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x3d8e0b[_0x5e01b7(0xfa)]),console['log']('\x20\x20Env:\x20'+_0x3d8e0b[_0x5e01b7(0xf0)]),console[_0x5e01b7(0x113)](_0x5e01b7(0x10a)+_0x2da615);}async function runSmartInit(_0x5681b6){const _0x18dc03=a94_0x143d,_0x1961ec=process[_0x18dc03(0xfb)](),_0x4cd8a2=_0x5681b6[_0x18dc03(0x104)](_0x18dc03(0xef))?_0x18dc03(0xef):'project',_0x1e0dd2=_0x5681b6[_0x18dc03(0x101)](_0x18dc03(0xf0))||_0x18dc03(0x103),_0x1fb044=_0x5681b6['str'](_0x18dc03(0x10d))||undefined,_0x11f021=_0x5681b6[_0x18dc03(0x104)]('project');if(_0x11f021){const {initConfig:_0x2e5bf7}=await import(_0x18dc03(0x106));return _0x2e5bf7({'appcode':_0x1fb044,'env':_0x1e0dd2,'autoYes':_0x5681b6[_0x18dc03(0x104)](_0x18dc03(0xf7))});}if(_0x4cd8a2===_0x18dc03(0xe9)){const _0x46340f=existsSync(resolve(_0x1961ec,NEW_CONFIG_NAME)),_0x3c15c2=LEGACY_CONFIG_NAMES['some'](_0x353ffd=>existsSync(resolve(_0x1961ec,_0x353ffd)));if(_0x3c15c2&&!_0x46340f)return console[_0x18dc03(0x113)](_0x18dc03(0xf4)),upgradeApp(_0x5681b6[_0x18dc03(0x108)],{'yes':_0x5681b6[_0x18dc03(0x104)](_0x18dc03(0xf7))});if(_0x46340f)throw CliErrors[_0x18dc03(0x110)](_0x18dc03(0x10f),_0x18dc03(0xe8)+CLI_BIN_NAME+_0x18dc03(0xfd));}if(_0x1fb044){const _0x237ee8=validateAppcode(_0x1fb044);if(!_0x237ee8[_0x18dc03(0xff)])throw CliErrors[_0x18dc03(0x110)](_0x237ee8['message']);writeInitConfig(_0x4cd8a2,[syntheticApp(_0x1fb044)],_0x1e0dd2);return;}if(_0x5681b6[_0x18dc03(0x108)])throw CliErrors['flagMissing'](_0x18dc03(0x10d),_0x18dc03(0x107)+CLI_BIN_NAME+_0x18dc03(0x100));const _0x2500d3=getCookie(),_0x42303a=await selectMultipleApps(_0x2500d3),_0x6a7378=_0x42303a===_0x18dc03(0x114)?[syntheticApp(await promptCustomAppcode())]:_0x42303a;writeInitConfig(_0x4cd8a2,_0x6a7378,_0x1e0dd2);}const initFlags=[{'name':a94_0x1e205e(0xef),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a94_0x1e205e(0xf0),'type':a94_0x1e205e(0xf6),'description':a94_0x1e205e(0x105),'default':a94_0x1e205e(0x103),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a94_0x1e205e(0xf6),'description':a94_0x1e205e(0xea)},{'name':a94_0x1e205e(0xe9),'type':'boolean','description':a94_0x1e205e(0x112),'default':![]},{'name':a94_0x1e205e(0xf7),'type':'boolean','description':a94_0x1e205e(0x10c),'default':![]}];export const initDefinitions=[{'service':a94_0x1e205e(0xf8),'command':a94_0x1e205e(0x10e),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a94_0x1e205e(0xee),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3d78fa){return await runSmartInit(_0x3d78fa),{'ok':!![]};}}];
1
+ const a94_0x4a6ef7=a94_0x13a7;(function(_0x1b2d4a,_0x2589f8){const _0x9061e1=a94_0x13a7,_0x8f06e5=_0x1b2d4a();while(!![]){try{const _0x4658b9=parseInt(_0x9061e1(0x1e3))/0x1*(parseInt(_0x9061e1(0x202))/0x2)+-parseInt(_0x9061e1(0x1e1))/0x3*(parseInt(_0x9061e1(0x1f7))/0x4)+-parseInt(_0x9061e1(0x206))/0x5*(-parseInt(_0x9061e1(0x204))/0x6)+-parseInt(_0x9061e1(0x1fb))/0x7*(parseInt(_0x9061e1(0x1ee))/0x8)+-parseInt(_0x9061e1(0x1e6))/0x9+parseInt(_0x9061e1(0x1da))/0xa*(-parseInt(_0x9061e1(0x1ed))/0xb)+-parseInt(_0x9061e1(0x1e0))/0xc*(-parseInt(_0x9061e1(0x1d9))/0xd);if(_0x4658b9===_0x2589f8)break;else _0x8f06e5['push'](_0x8f06e5['shift']());}catch(_0x3e8071){_0x8f06e5['push'](_0x8f06e5['shift']());}}}(a94_0x3baa,0x3128a));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 a94_0x3baa(){const _0x35b29b=['write','cwd','458926vugBcg','16610xRkWIj','bool','appcode','\x20config','boolean','yes','144OFvABU','115971wRRIAb','Usage:\x20','1dmxDSJ','\x0a✓\x20Successfully\x20initialized\x20','Use\x20`','729639CtcNCX','检测到旧配置文件,正在自动升级...\x0a','nonInteractive','production','some','Auto-confirm\x20prompts','env','2299LvOoLP','1038752lZwiRn','../../commands/project/init.js','validation','\x20\x20Default:\x20','global','toLocaleString','join','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','project','20dyTKFv','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','defaultApp','message','14bwTfoe','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','string','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Target\x20environment','appCode','Write\x20to\x20global\x20config\x20instead\x20of\x20project','764778wYRKOh','custom','829602EYuMFb','App\x20code\x20to\x20initialize\x20with','10oTiApW','log'];a94_0x3baa=function(){return _0x35b29b;};return a94_0x3baa();}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 a94_0x13a7(_0x222168,_0x3df024){_0x222168=_0x222168-0x1d7;const _0x3baa24=a94_0x3baa();let _0x13a751=_0x3baa24[_0x222168];return _0x13a751;}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x13c098){return{'appCode':_0x13c098,'appName':_0x13c098};}function writeInitConfig(_0x4fdcdb,_0x103464,_0x3d48ee){const _0x45d914=a94_0x13a7,_0xcd7193=resolveWriteConfigPath(_0x4fdcdb),_0x5b7af4=buildCanonicalProjectConfig({},{'appCodes':_0x103464['map'](_0x51a1ff=>_0x51a1ff[_0x45d914(0x200)]),'env':_0x3d48ee,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x45d914(0x1f3)]()}});writeConfigFile(_0xcd7193,_0x5b7af4);const _0x3a8262=_0x4fdcdb===_0x45d914(0x1f2)?_0x45d914(0x1f2):'project';console[_0x45d914(0x207)](_0x45d914(0x1e4)+_0x3a8262+_0x45d914(0x1dd)),console[_0x45d914(0x207)]('\x20\x20Apps:\x20'+_0x103464['map'](_0x5b5fc4=>_0x5b5fc4[_0x45d914(0x200)])[_0x45d914(0x1f4)](',\x20')),console[_0x45d914(0x207)](_0x45d914(0x1f1)+_0x5b7af4[_0x45d914(0x1f9)]),console[_0x45d914(0x207)]('\x20\x20Env:\x20'+_0x5b7af4[_0x45d914(0x1ec)]),console[_0x45d914(0x207)]('\x20\x20Config:\x20'+_0xcd7193);}async function runSmartInit(_0x1ae9d6){const _0x7a376b=a94_0x13a7,_0x383c99=process[_0x7a376b(0x1d8)](),_0x53697b=_0x1ae9d6[_0x7a376b(0x1db)](_0x7a376b(0x1f2))?_0x7a376b(0x1f2):_0x7a376b(0x1f6),_0x5a65e1=_0x1ae9d6['str']('env')||_0x7a376b(0x1e9),_0x455452=_0x1ae9d6['str'](_0x7a376b(0x1dc))||undefined,_0x1fe71c=_0x1ae9d6[_0x7a376b(0x1db)](_0x7a376b(0x1f6));if(_0x1fe71c){const {initConfig:_0x3773e8}=await import(_0x7a376b(0x1ef));return _0x3773e8({'appcode':_0x455452,'env':_0x5a65e1,'autoYes':_0x1ae9d6['bool'](_0x7a376b(0x1df))});}if(_0x53697b===_0x7a376b(0x1f6)){const _0x2cda8a=existsSync(resolve(_0x383c99,NEW_CONFIG_NAME)),_0x12fd46=LEGACY_CONFIG_NAMES[_0x7a376b(0x1ea)](_0x1d1699=>existsSync(resolve(_0x383c99,_0x1d1699)));if(_0x12fd46&&!_0x2cda8a)return console[_0x7a376b(0x207)](_0x7a376b(0x1e7)),upgradeApp(_0x1ae9d6[_0x7a376b(0x1e8)],{'yes':_0x1ae9d6[_0x7a376b(0x1db)]('yes')});if(_0x2cda8a)throw CliErrors[_0x7a376b(0x1f0)](_0x7a376b(0x1fc),_0x7a376b(0x1e5)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x455452){const _0x3e81b1=validateAppcode(_0x455452);if(!_0x3e81b1['valid'])throw CliErrors['validation'](_0x3e81b1[_0x7a376b(0x1fa)]);writeInitConfig(_0x53697b,[syntheticApp(_0x455452)],_0x5a65e1);return;}if(_0x1ae9d6[_0x7a376b(0x1e8)])throw CliErrors['flagMissing'](_0x7a376b(0x1dc),_0x7a376b(0x1e2)+CLI_BIN_NAME+_0x7a376b(0x1f5));const _0x2d3abd=getCookie(),_0xfbe90f=await selectMultipleApps(_0x2d3abd),_0x258c9f=_0xfbe90f===_0x7a376b(0x203)?[syntheticApp(await promptCustomAppcode())]:_0xfbe90f;writeInitConfig(_0x53697b,_0x258c9f,_0x5a65e1);}const initFlags=[{'name':a94_0x4a6ef7(0x1f2),'type':a94_0x4a6ef7(0x1de),'description':a94_0x4a6ef7(0x201),'default':![]},{'name':a94_0x4a6ef7(0x1ec),'type':'string','description':a94_0x4a6ef7(0x1ff),'default':a94_0x4a6ef7(0x1e9),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x4a6ef7(0x1dc),'type':a94_0x4a6ef7(0x1fd),'description':a94_0x4a6ef7(0x205)},{'name':a94_0x4a6ef7(0x1f6),'type':'boolean','description':a94_0x4a6ef7(0x1f8),'default':![]},{'name':a94_0x4a6ef7(0x1df),'type':'boolean','description':a94_0x4a6ef7(0x1eb),'default':![]}];export const initDefinitions=[{'service':'init','command':'run','description':a94_0x4a6ef7(0x1fe),'risk':a94_0x4a6ef7(0x1d7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3610f7){return await runSmartInit(_0x3610f7),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0xe3585d,_0x5718ca){const _0x212e3a=a95_0x3232,_0x497316=_0xe3585d();while(!![]){try{const _0x37abb4=-parseInt(_0x212e3a(0x174))/0x1+-parseInt(_0x212e3a(0x177))/0x2*(parseInt(_0x212e3a(0x176))/0x3)+parseInt(_0x212e3a(0x173))/0x4+parseInt(_0x212e3a(0x171))/0x5*(parseInt(_0x212e3a(0x179))/0x6)+parseInt(_0x212e3a(0x170))/0x7+parseInt(_0x212e3a(0x178))/0x8+-parseInt(_0x212e3a(0x175))/0x9*(parseInt(_0x212e3a(0x172))/0xa);if(_0x37abb4===_0x5718ca)break;else _0x497316['push'](_0x497316['shift']());}catch(_0x560348){_0x497316['push'](_0x497316['shift']());}}}(a95_0x5f29,0x820e6));function a95_0x5f29(){const _0x2ba13c=['289024PlGDCS','9mjfptt','255RPCgMG','12380DxDjTM','7453600vhQRRy','30126hNKBpT','6068090ItIwRZ','225DEDzNg','10805260WROsLY','1615580AoQGoM'];a95_0x5f29=function(){return _0x2ba13c;};return a95_0x5f29();}import{issueReport}from'../../commands/issue/report.js';function a95_0x3232(_0x12ed03,_0x263a20){_0x12ed03=_0x12ed03-0x170;const _0x5f299e=a95_0x5f29();let _0x3232c9=_0x5f299e[_0x12ed03];return _0x3232c9;}export const issueDefinitions=[issueReport];
1
+ (function(_0x1d180f,_0x56b8fd){const _0x50f05a=a95_0x513e,_0x6f1aad=_0x1d180f();while(!![]){try{const _0x57c793=-parseInt(_0x50f05a(0x131))/0x1+parseInt(_0x50f05a(0x12e))/0x2+parseInt(_0x50f05a(0x134))/0x3*(-parseInt(_0x50f05a(0x12d))/0x4)+parseInt(_0x50f05a(0x12f))/0x5+parseInt(_0x50f05a(0x130))/0x6*(parseInt(_0x50f05a(0x133))/0x7)+-parseInt(_0x50f05a(0x132))/0x8+parseInt(_0x50f05a(0x135))/0x9;if(_0x57c793===_0x56b8fd)break;else _0x6f1aad['push'](_0x6f1aad['shift']());}catch(_0x141067){_0x6f1aad['push'](_0x6f1aad['shift']());}}}(a95_0x1373,0x1a7d7));import{issueReport}from'../../commands/issue/report.js';function a95_0x513e(_0x1eece5,_0x571214){_0x1eece5=_0x1eece5-0x12d;const _0x1373f0=a95_0x1373();let _0x513e1d=_0x1373f0[_0x1eece5];return _0x513e1d;}function a95_0x1373(){const _0x3d3d1e=['2027205uWxzBI','308kScZlI','29308FmoeLg','902975TxSlXx','78FIHave','142518EHmAuC','1006840CRTWFY','77721JCXHVI','7323xbmFfW'];a95_0x1373=function(){return _0x3d3d1e;};return a95_0x1373();}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a96_0x66fa40=a96_0x10b4;function a96_0x10b4(_0x4dc190,_0x3b4dad){_0x4dc190=_0x4dc190-0x71;const _0x331303=a96_0x3313();let _0x10b41a=_0x331303[_0x4dc190];return _0x10b41a;}(function(_0x1ae273,_0x521e91){const _0x5621b0=a96_0x10b4,_0x1bb5c2=_0x1ae273();while(!![]){try{const _0x2e951f=parseInt(_0x5621b0(0x8c))/0x1+-parseInt(_0x5621b0(0x87))/0x2*(parseInt(_0x5621b0(0x77))/0x3)+-parseInt(_0x5621b0(0x82))/0x4+parseInt(_0x5621b0(0x72))/0x5+-parseInt(_0x5621b0(0x8d))/0x6+parseInt(_0x5621b0(0x78))/0x7*(parseInt(_0x5621b0(0x79))/0x8)+parseInt(_0x5621b0(0x73))/0x9;if(_0x2e951f===_0x521e91)break;else _0x1bb5c2['push'](_0x1bb5c2['shift']());}catch(_0x4da3e6){_0x1bb5c2['push'](_0x1bb5c2['shift']());}}}(a96_0x3313,0x629fc));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x66fa40(0x71);function a96_0x3313(){const _0x1eb5b1=['2976708FBbccq','stderr','\x20bug?\x20Help\x20us\x20fix\x20it:','write','trim','6NXplqh','slice','auth_required','cancelled','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','125511zhZWSV','3578184pNZinh','has','length','validation_error','command','unknown_command','code','config_missing','service','RABETBASE_DISABLE_ISSUE_NUDGE','3138625IADoNc','9457623RrSnan','\x20\x20Set\x20','report','join','665544fDZOuy','14bQNhDj','2423864ryQRQY','\x20\x20\x20\x20--title\x20\x22','replace','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','flag_missing','\x22\x20\x5c','issue','\x20issue\x20report\x20\x5c','not_in_project'];a96_0x3313=function(){return _0x1eb5b1;};return a96_0x3313();}const NUDGE_SUPPRESSED_CODES=new Set([a96_0x66fa40(0x8a),a96_0x66fa40(0x89),a96_0x66fa40(0x94),a96_0x66fa40(0x81),a96_0x66fa40(0x92),a96_0x66fa40(0x7d),a96_0x66fa40(0x90),'network_error']),defaultWriter=_0x507773=>{const _0x3163b2=a96_0x66fa40;process[_0x3163b2(0x83)][_0x3163b2(0x85)](_0x507773);};export function shouldNudgeForError(_0x494d00,_0x54b13c){const _0xdda64b=a96_0x66fa40;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x54b13c[_0xdda64b(0x95)]===_0xdda64b(0x7f)&&_0x54b13c[_0xdda64b(0x91)]===_0xdda64b(0x75))return![];if(_0x494d00 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0xdda64b(0x8e)](_0x494d00[_0xdda64b(0x93)]);return!![];}export function printIssueReportNudgeForError(_0x3a98f,_0x26fce9,_0x4c80d3=defaultWriter){if(!shouldNudgeForError(_0x3a98f,_0x26fce9))return;const _0x43222e=buildSuggestedTitle(_0x3a98f,_0x26fce9);_0x4c80d3(formatNudge(_0x43222e));}function buildSuggestedTitle(_0x109d18,_0x2ff6b1){const _0x2e2582=a96_0x66fa40,_0x193ddb=_0x109d18 instanceof Error?_0x109d18['message']:String(_0x109d18),_0x590f36=_0x193ddb['replace'](/[\r\n]+/g,'\x20')[_0x2e2582(0x7b)](/\s+/g,'\x20')[_0x2e2582(0x86)]()[_0x2e2582(0x88)](0x0,0x78)[_0x2e2582(0x7b)](/"/g,'\x5c\x22'),_0x59b8da=CLI_BIN_NAME+'\x20'+_0x2ff6b1[_0x2e2582(0x95)]+'\x20'+_0x2ff6b1['command'];return _0x590f36[_0x2e2582(0x8f)]>0x0?_0x59b8da+':\x20'+_0x590f36:_0x59b8da;}function formatNudge(_0x190f67){const _0x17d118=a96_0x66fa40;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x17d118(0x84),'\x20\x20'+CLI_BIN_NAME+_0x17d118(0x80),_0x17d118(0x7a)+_0x190f67+_0x17d118(0x7e),_0x17d118(0x8b),_0x17d118(0x7c),_0x17d118(0x74)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x17d118(0x76)]('\x0a');}
1
+ const a96_0x5ebed2=a96_0x3ec2;function a96_0x3ec2(_0x1747b8,_0x54818e){_0x1747b8=_0x1747b8-0x13f;const _0x4778ef=a96_0x4778();let _0x3ec2b1=_0x4778ef[_0x1747b8];return _0x3ec2b1;}(function(_0x3f7763,_0x572576){const _0x1250cb=a96_0x3ec2,_0x400a5c=_0x3f7763();while(!![]){try{const _0x32d474=parseInt(_0x1250cb(0x145))/0x1*(-parseInt(_0x1250cb(0x154))/0x2)+-parseInt(_0x1250cb(0x14f))/0x3+parseInt(_0x1250cb(0x15d))/0x4*(parseInt(_0x1250cb(0x158))/0x5)+parseInt(_0x1250cb(0x14b))/0x6+parseInt(_0x1250cb(0x149))/0x7*(-parseInt(_0x1250cb(0x156))/0x8)+-parseInt(_0x1250cb(0x15a))/0x9*(parseInt(_0x1250cb(0x142))/0xa)+parseInt(_0x1250cb(0x153))/0xb;if(_0x32d474===_0x572576)break;else _0x400a5c['push'](_0x400a5c['shift']());}catch(_0xb69be1){_0x400a5c['push'](_0x400a5c['shift']());}}}(a96_0x4778,0x84d1b));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a96_0x5ebed2(0x15f),a96_0x5ebed2(0x162),'config_missing',a96_0x5ebed2(0x146),a96_0x5ebed2(0x151),a96_0x5ebed2(0x152),'validation_error',a96_0x5ebed2(0x161)]),defaultWriter=_0x7b8ab9=>{const _0x257c2c=a96_0x5ebed2;process[_0x257c2c(0x160)][_0x257c2c(0x14e)](_0x7b8ab9);};export function shouldNudgeForError(_0x20cb98,_0x541973){const _0x33f0a6=a96_0x5ebed2;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x541973[_0x33f0a6(0x157)]===_0x33f0a6(0x147)&&_0x541973['command']==='report')return![];if(_0x20cb98 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x33f0a6(0x15e)](_0x20cb98[_0x33f0a6(0x155)]);return!![];}export function printIssueReportNudgeForError(_0x5a760f,_0x3aa591,_0x531ddc=defaultWriter){if(!shouldNudgeForError(_0x5a760f,_0x3aa591))return;const _0xbd6245=buildSuggestedTitle(_0x5a760f,_0x3aa591);_0x531ddc(formatNudge(_0xbd6245));}function buildSuggestedTitle(_0x41f119,_0x122962){const _0x503b87=a96_0x5ebed2,_0x275a6a=_0x41f119 instanceof Error?_0x41f119[_0x503b87(0x14c)]:String(_0x41f119),_0x3df2be=_0x275a6a[_0x503b87(0x144)](/[\r\n]+/g,'\x20')[_0x503b87(0x144)](/\s+/g,'\x20')[_0x503b87(0x15b)]()[_0x503b87(0x14d)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x40a605=CLI_BIN_NAME+'\x20'+_0x122962[_0x503b87(0x157)]+'\x20'+_0x122962[_0x503b87(0x143)];return _0x3df2be[_0x503b87(0x140)]>0x0?_0x40a605+':\x20'+_0x3df2be:_0x40a605;}function a96_0x4778(){const _0x3fd1d0=['write','400602ZmvmBJ','Hit\x20a\x20','unknown_command','flag_missing','2547600fGtKQS','52086iFPCkM','code','16dYtcfE','service','35KWnXQv','\x22\x20\x5c','360648XYaPmg','trim','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','100068fBmJBk','has','cancelled','stderr','network_error','auth_required','\x20\x20Set\x20','=1\x20to\x20silence\x20this\x20hint.','length','\x20issue\x20report\x20\x5c','10VWzfwR','command','replace','1tjaZTU','not_in_project','issue','\x20bug?\x20Help\x20us\x20fix\x20it:','2340709MLsiAH','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','6034386UXnAwx','message','slice'];a96_0x4778=function(){return _0x3fd1d0;};return a96_0x4778();}function formatNudge(_0x6d33d4){const _0x5d04b4=a96_0x5ebed2;return['',_0x5d04b4(0x150)+CLI_BIN_NAME+_0x5d04b4(0x148),'\x20\x20'+CLI_BIN_NAME+_0x5d04b4(0x141),'\x20\x20\x20\x20--title\x20\x22'+_0x6d33d4+_0x5d04b4(0x159),_0x5d04b4(0x14a),_0x5d04b4(0x15c),_0x5d04b4(0x163)+NUDGE_OPT_OUT_ENV+_0x5d04b4(0x13f),'']['join']('\x0a');}
@@ -1 +1 @@
1
- function a97_0x5901(){const _0x57d91d=['string','flagMissing','Failed\x20to\x20report\x20platform\x20issue:\x20','7395840PqzRZW','\x20bytes','sanitize','description-file','1746590VUKtNg','redactionCount','POST','str','descriptionFilePath','trim','119913pISwKN','compress','join','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','truncated','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','cwd','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','length','issue.title','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','validation','redactions:\x20','Platform\x20issue\x20reported','issue.description_original_bytes','4898448YjagdJ','descriptionFile:\x20','push','originalBytes','issue.description_redactions','description','truncated\x20from\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','filter','issue','issue.description','One-line\x20issue\x20summary','file','12289xMXabW','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','title','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_truncated','2302200pNNZcF','descriptionSource','truncated:\x20original\x20','inline','File\x20not\x20found:\x20','descriptionSource:\x20','report','20renfHH','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','158NTbSYT','24uvuvyT','redactionKinds','\x20secret(s):\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','redacted\x20','Issue\x20description\x20file\x20is\x20empty:\x20','Platform\x20issue\x20reported\x20(','1488459ymihYM'];a97_0x5901=function(){return _0x57d91d;};return a97_0x5901();}const a97_0xdbb0c=a97_0x2d57;(function(_0x2ca670,_0x474a98){const _0x27a71b=a97_0x2d57,_0x488af9=_0x2ca670();while(!![]){try{const _0x55ecc8=parseInt(_0x27a71b(0x1a0))/0x1*(-parseInt(_0x27a71b(0x1ae))/0x2)+parseInt(_0x27a71b(0x1c4))/0x3*(parseInt(_0x27a71b(0x1ac))/0x4)+parseInt(_0x27a71b(0x1a5))/0x5+parseInt(_0x27a71b(0x1d4))/0x6+-parseInt(_0x27a71b(0x1b6))/0x7*(-parseInt(_0x27a71b(0x1af))/0x8)+-parseInt(_0x27a71b(0x1ba))/0x9+parseInt(_0x27a71b(0x1be))/0xa;if(_0x55ecc8===_0x474a98)break;else _0x488af9['push'](_0x488af9['shift']());}catch(_0x518383){_0x488af9['push'](_0x488af9['shift']());}}}(a97_0x5901,0x7942a));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a97_0xdbb0c(0x1bd);function a97_0x2d57(_0x3bf0f5,_0x604c1b){_0x3bf0f5=_0x3bf0f5-0x19f;const _0x590186=a97_0x5901();let _0x2d5778=_0x590186[_0x3bf0f5];return _0x2d5778;}export const issueReport={'service':a97_0xdbb0c(0x1dd),'command':a97_0xdbb0c(0x1ab),'description':a97_0xdbb0c(0x1cf),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0xdbb0c(0x1c5),'flags':[{'name':a97_0xdbb0c(0x1a2),'type':a97_0xdbb0c(0x1b7),'required':!![],'description':a97_0xdbb0c(0x1df)},{'name':a97_0xdbb0c(0x1d9),'type':a97_0xdbb0c(0x1b7),'description':a97_0xdbb0c(0x1db)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0xdbb0c(0x1b7),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x127edb){const _0x3ff580=a97_0xdbb0c,_0x30eaac=_0x127edb['str'](_0x3ff580(0x1a2))[_0x3ff580(0x1c3)](),_0x3a9c06=_0x127edb['str'](_0x3ff580(0x1d9))[_0x3ff580(0x1c3)](),_0x4dc871=_0x127edb[_0x3ff580(0x1c1)](DESCRIPTION_FILE_FLAG)[_0x3ff580(0x1c3)]();if(!_0x30eaac)throw CliErrors[_0x3ff580(0x1b8)]('title',_0x3ff580(0x1cb));const _0x490f1d=_0x3a9c06[_0x3ff580(0x1cd)]>0x0,_0x22f484=_0x4dc871[_0x3ff580(0x1cd)]>0x0;if(_0x490f1d===_0x22f484)throw CliErrors[_0x3ff580(0x1d0)](_0x3ff580(0x1a1),_0x3ff580(0x1b2));if(_0x22f484){const _0x2bdaa5=resolve(process['cwd'](),_0x4dc871);if(!existsSync(_0x2bdaa5))throw CliErrors[_0x3ff580(0x1d0)](_0x3ff580(0x1a9)+_0x2bdaa5);}},async 'dryRun'(_0x125df0){const _0x380c8e=a97_0xdbb0c,_0x501ef9=await prepareIssueReport(_0x125df0);return{'method':_0x380c8e(0x1c0),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x501ef9['title'],'issue.description':_0x501ef9[_0x380c8e(0x1d9)],'issue.description_original_bytes':_0x501ef9[_0x380c8e(0x1bc)][_0x380c8e(0x1d7)],'issue.description_truncated':_0x501ef9[_0x380c8e(0x1bc)][_0x380c8e(0x1c8)],'issue.description_redactions':_0x501ef9[_0x380c8e(0x1bc)][_0x380c8e(0x1bf)],'issue.description_redaction_kinds':_0x501ef9['sanitize'][_0x380c8e(0x1b0)]['join'](',')}},'description':[_0x380c8e(0x1c7),_0x380c8e(0x1aa)+_0x501ef9[_0x380c8e(0x1a6)],_0x501ef9[_0x380c8e(0x1c2)]?_0x380c8e(0x1d5)+_0x501ef9[_0x380c8e(0x1c2)]:null,_0x501ef9[_0x380c8e(0x1bc)][_0x380c8e(0x1c8)]?_0x380c8e(0x1a7)+_0x501ef9['sanitize'][_0x380c8e(0x1d7)]+_0x380c8e(0x1bb):null,_0x501ef9['sanitize'][_0x380c8e(0x1bf)]>0x0?_0x380c8e(0x1d1)+_0x501ef9[_0x380c8e(0x1bc)][_0x380c8e(0x1bf)]+'\x20('+_0x501ef9[_0x380c8e(0x1bc)][_0x380c8e(0x1b0)][_0x380c8e(0x1c6)](',\x20')+')':null][_0x380c8e(0x1dc)](Boolean)['join']('\x0a')};},async 'execute'(_0x73275c){const _0x2fb303=a97_0xdbb0c,_0x948b1e=await prepareIssueReport(_0x73275c);try{await sendPlatformIssueCollectLog({'title':_0x948b1e[_0x2fb303(0x1a2)],'description':_0x948b1e[_0x2fb303(0x1d9)],'sanitize':{'originalBytes':_0x948b1e[_0x2fb303(0x1bc)]['originalBytes'],'truncated':_0x948b1e['sanitize'][_0x2fb303(0x1c8)],'redactionCount':_0x948b1e[_0x2fb303(0x1bc)][_0x2fb303(0x1bf)],'redactionKinds':_0x948b1e[_0x2fb303(0x1bc)][_0x2fb303(0x1b0)]}});}catch(_0x3abf7c){throw CliErrors['apiError'](_0x2fb303(0x1b9)+(_0x3abf7c instanceof Error?_0x3abf7c['message']:String(_0x3abf7c)),_0x2fb303(0x1ad));}return{'ok':!![],'message':buildResultMessage(_0x948b1e[_0x2fb303(0x1bc)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2fb303(0x1ce),_0x2fb303(0x1de),_0x2fb303(0x1d3),_0x2fb303(0x1a4),_0x2fb303(0x1d8),'issue.description_redaction_kinds'],'issue':{'title':_0x948b1e[_0x2fb303(0x1a2)],'descriptionLength':_0x948b1e['description'][_0x2fb303(0x1cd)],'descriptionSource':_0x948b1e['descriptionSource'],..._0x948b1e[_0x2fb303(0x1c2)]?{'descriptionFile':_0x948b1e[_0x2fb303(0x1c2)]}:{},'sanitize':{'originalBytes':_0x948b1e[_0x2fb303(0x1bc)][_0x2fb303(0x1d7)],'truncated':_0x948b1e[_0x2fb303(0x1bc)]['truncated'],'redactions':_0x948b1e[_0x2fb303(0x1bc)]['redactionCount'],'redactionKinds':_0x948b1e[_0x2fb303(0x1bc)][_0x2fb303(0x1b0)]}}}};}};function buildResultMessage(_0x1f0f3d){const _0x1f1c01=a97_0xdbb0c,_0x52ba28=[];return _0x1f0f3d[_0x1f1c01(0x1c8)]&&_0x52ba28[_0x1f1c01(0x1d6)](_0x1f1c01(0x1da)+_0x1f0f3d[_0x1f1c01(0x1d7)]+_0x1f1c01(0x1bb)),_0x1f0f3d[_0x1f1c01(0x1bf)]>0x0&&_0x52ba28[_0x1f1c01(0x1d6)](_0x1f1c01(0x1b3)+_0x1f0f3d[_0x1f1c01(0x1bf)]+_0x1f1c01(0x1b1)+_0x1f0f3d[_0x1f1c01(0x1b0)][_0x1f1c01(0x1c6)](',\x20')),_0x52ba28['length']===0x0?_0x1f1c01(0x1d2):_0x1f1c01(0x1b5)+_0x52ba28[_0x1f1c01(0x1c6)](';\x20')+')';}async function prepareIssueReport(_0x412d30){const _0x2b30a3=a97_0xdbb0c,_0x4b3482=_0x412d30['str']('title')['trim'](),_0x3da6c9=_0x412d30[_0x2b30a3(0x1c1)]('description'),_0x506520=_0x412d30[_0x2b30a3(0x1c1)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x506520){const _0x342249=_0x3da6c9;if(!_0x342249[_0x2b30a3(0x1c3)]())throw CliErrors[_0x2b30a3(0x1d0)](_0x2b30a3(0x1a3),_0x2b30a3(0x1cc));const _0x344a7a=sanitizeIssueDescription(_0x342249);return{'title':_0x4b3482,'description':_0x344a7a['description'],'descriptionSource':_0x2b30a3(0x1a8),'sanitize':_0x344a7a};}const _0x40dcd2=resolve(process[_0x2b30a3(0x1ca)](),_0x506520),_0x2ad38f=await readFile(_0x40dcd2,'utf8');if(!_0x2ad38f[_0x2b30a3(0x1c3)]())throw CliErrors[_0x2b30a3(0x1d0)](_0x2b30a3(0x1b4)+_0x40dcd2,_0x2b30a3(0x1c9));const _0x339148=sanitizeIssueDescription(_0x2ad38f);return{'title':_0x4b3482,'description':_0x339148[_0x2b30a3(0x1d9)],'descriptionSource':_0x2b30a3(0x19f),'descriptionFilePath':_0x40dcd2,'sanitize':_0x339148};}
1
+ const a97_0x13b3db=a97_0x37cd;function a97_0x2de0(){const _0x56b2cc=['description-file','5144CDoWpj','20313qgLzPW','redacted\x20','truncated:\x20original\x20','push','descriptionFile:\x20','1841623NYeIpd','validation','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Failed\x20to\x20report\x20platform\x20issue:\x20','issue.description_redaction_kinds','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','44WtxUyL','618986wuXYZd','issue.description_original_bytes','descriptionSource','3301910tzqhca','Issue\x20description\x20cannot\x20be\x20empty.','782212YkDLGG','redactionKinds','trim','issue','Platform\x20issue\x20reported','redactionCount','originalBytes','file','join','350796DhnVxa','\x20secret(s):\x20','truncated','issue.description','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','20ToPqfB','\x20bytes','Platform\x20issue\x20reported\x20(','truncated\x20from\x20','descriptionSource:\x20','One-line\x20issue\x20summary','str','6SDbwGK','295460bHpvhU','otel://','length','sanitize','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','description','compress','utf8','report','inline','apiError','cwd','Issue\x20description\x20file\x20is\x20empty:\x20','string','flagMissing','issue.title','title','redactions:\x20','descriptionFilePath','File\x20not\x20found:\x20'];a97_0x2de0=function(){return _0x56b2cc;};return a97_0x2de0();}function a97_0x37cd(_0x7d09ef,_0x1beeec){_0x7d09ef=_0x7d09ef-0x9d;const _0x2de038=a97_0x2de0();let _0x37cd8e=_0x2de038[_0x7d09ef];return _0x37cd8e;}(function(_0x214f61,_0x16a463){const _0x4e95dc=a97_0x37cd,_0x4908ff=_0x214f61();while(!![]){try{const _0x4438cc=-parseInt(_0x4e95dc(0xad))/0x1+parseInt(_0x4e95dc(0xc0))/0x2*(-parseInt(_0x4e95dc(0xbb))/0x3)+parseInt(_0x4e95dc(0xb2))/0x4+-parseInt(_0x4e95dc(0xc8))/0x5+-parseInt(_0x4e95dc(0xc7))/0x6*(parseInt(_0x4e95dc(0xa5))/0x7)+parseInt(_0x4e95dc(0x9f))/0x8*(parseInt(_0x4e95dc(0xa0))/0x9)+-parseInt(_0x4e95dc(0xb0))/0xa*(-parseInt(_0x4e95dc(0xac))/0xb);if(_0x4438cc===_0x16a463)break;else _0x4908ff['push'](_0x4908ff['shift']());}catch(_0x5da286){_0x4908ff['push'](_0x4908ff['shift']());}}}(a97_0x2de0,0xd13f9));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a97_0x13b3db(0x9e);export const issueReport={'service':a97_0x13b3db(0xb5),'command':a97_0x13b3db(0xd0),'description':a97_0x13b3db(0xab),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x13b3db(0xce),'flags':[{'name':a97_0x13b3db(0xd8),'type':a97_0x13b3db(0xd5),'required':!![],'description':a97_0x13b3db(0xc5)},{'name':a97_0x13b3db(0xcd),'type':a97_0x13b3db(0xd5),'description':a97_0x13b3db(0xbf)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a97_0x13b3db(0xcc)}],async 'validate'(_0x4f1407){const _0x27e098=a97_0x13b3db,_0x2dbec6=_0x4f1407[_0x27e098(0xc6)](_0x27e098(0xd8))[_0x27e098(0xb4)](),_0x4a1b54=_0x4f1407[_0x27e098(0xc6)]('description')[_0x27e098(0xb4)](),_0x50de80=_0x4f1407['str'](DESCRIPTION_FILE_FLAG)[_0x27e098(0xb4)]();if(!_0x2dbec6)throw CliErrors[_0x27e098(0xd6)](_0x27e098(0xd8),_0x27e098(0xa7));const _0x209037=_0x4a1b54[_0x27e098(0xca)]>0x0,_0x402982=_0x50de80[_0x27e098(0xca)]>0x0;if(_0x209037===_0x402982)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x402982){const _0x1d4d09=resolve(process[_0x27e098(0xd3)](),_0x50de80);if(!existsSync(_0x1d4d09))throw CliErrors[_0x27e098(0xa6)](_0x27e098(0x9d)+_0x1d4d09);}},async 'dryRun'(_0x5390cc){const _0x49bfa0=a97_0x13b3db,_0x3c8400=await prepareIssueReport(_0x5390cc);return{'method':'POST','url':_0x49bfa0(0xc9)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3c8400[_0x49bfa0(0xd8)],'issue.description':_0x3c8400[_0x49bfa0(0xcd)],'issue.description_original_bytes':_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xb8)],'issue.description_truncated':_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xbd)],'issue.description_redactions':_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xb7)],'issue.description_redaction_kinds':_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xb3)][_0x49bfa0(0xba)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x49bfa0(0xc4)+_0x3c8400[_0x49bfa0(0xaf)],_0x3c8400[_0x49bfa0(0xda)]?_0x49bfa0(0xa4)+_0x3c8400[_0x49bfa0(0xda)]:null,_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xbd)]?_0x49bfa0(0xa2)+_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xb8)]+_0x49bfa0(0xc1):null,_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xb7)]>0x0?_0x49bfa0(0xd9)+_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xb7)]+'\x20('+_0x3c8400[_0x49bfa0(0xcb)][_0x49bfa0(0xb3)][_0x49bfa0(0xba)](',\x20')+')':null]['filter'](Boolean)['join']('\x0a')};},async 'execute'(_0x24501d){const _0x361bb1=a97_0x13b3db,_0x35a348=await prepareIssueReport(_0x24501d);try{await sendPlatformIssueCollectLog({'title':_0x35a348[_0x361bb1(0xd8)],'description':_0x35a348[_0x361bb1(0xcd)],'sanitize':{'originalBytes':_0x35a348[_0x361bb1(0xcb)][_0x361bb1(0xb8)],'truncated':_0x35a348[_0x361bb1(0xcb)][_0x361bb1(0xbd)],'redactionCount':_0x35a348['sanitize'][_0x361bb1(0xb7)],'redactionKinds':_0x35a348[_0x361bb1(0xcb)][_0x361bb1(0xb3)]}});}catch(_0x3c37e1){throw CliErrors[_0x361bb1(0xd2)](_0x361bb1(0xa8)+(_0x3c37e1 instanceof Error?_0x3c37e1['message']:String(_0x3c37e1)),_0x361bb1(0xaa));}return{'ok':!![],'message':buildResultMessage(_0x35a348[_0x361bb1(0xcb)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x361bb1(0xd7),_0x361bb1(0xbe),_0x361bb1(0xae),'issue.description_truncated','issue.description_redactions',_0x361bb1(0xa9)],'issue':{'title':_0x35a348[_0x361bb1(0xd8)],'descriptionLength':_0x35a348[_0x361bb1(0xcd)][_0x361bb1(0xca)],'descriptionSource':_0x35a348[_0x361bb1(0xaf)],..._0x35a348[_0x361bb1(0xda)]?{'descriptionFile':_0x35a348[_0x361bb1(0xda)]}:{},'sanitize':{'originalBytes':_0x35a348[_0x361bb1(0xcb)][_0x361bb1(0xb8)],'truncated':_0x35a348[_0x361bb1(0xcb)][_0x361bb1(0xbd)],'redactions':_0x35a348[_0x361bb1(0xcb)][_0x361bb1(0xb7)],'redactionKinds':_0x35a348[_0x361bb1(0xcb)][_0x361bb1(0xb3)]}}}};}};function buildResultMessage(_0x5bdc44){const _0x2ceab1=a97_0x13b3db,_0x43a075=[];return _0x5bdc44[_0x2ceab1(0xbd)]&&_0x43a075[_0x2ceab1(0xa3)](_0x2ceab1(0xc3)+_0x5bdc44[_0x2ceab1(0xb8)]+_0x2ceab1(0xc1)),_0x5bdc44[_0x2ceab1(0xb7)]>0x0&&_0x43a075[_0x2ceab1(0xa3)](_0x2ceab1(0xa1)+_0x5bdc44['redactionCount']+_0x2ceab1(0xbc)+_0x5bdc44[_0x2ceab1(0xb3)][_0x2ceab1(0xba)](',\x20')),_0x43a075['length']===0x0?_0x2ceab1(0xb6):_0x2ceab1(0xc2)+_0x43a075[_0x2ceab1(0xba)](';\x20')+')';}async function prepareIssueReport(_0x347f98){const _0x666a1d=a97_0x13b3db,_0x4ba7e2=_0x347f98['str'](_0x666a1d(0xd8))[_0x666a1d(0xb4)](),_0x1e3822=_0x347f98[_0x666a1d(0xc6)](_0x666a1d(0xcd)),_0x276b99=_0x347f98['str'](DESCRIPTION_FILE_FLAG)[_0x666a1d(0xb4)]();if(!_0x276b99){const _0x2a0434=_0x1e3822;if(!_0x2a0434['trim']())throw CliErrors[_0x666a1d(0xa6)](_0x666a1d(0xb1),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x2025e6=sanitizeIssueDescription(_0x2a0434);return{'title':_0x4ba7e2,'description':_0x2025e6[_0x666a1d(0xcd)],'descriptionSource':_0x666a1d(0xd1),'sanitize':_0x2025e6};}const _0x42b4c9=resolve(process['cwd'](),_0x276b99),_0x1077d7=await readFile(_0x42b4c9,_0x666a1d(0xcf));if(!_0x1077d7['trim']())throw CliErrors[_0x666a1d(0xa6)](_0x666a1d(0xd4)+_0x42b4c9,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x473d5f=sanitizeIssueDescription(_0x1077d7);return{'title':_0x4ba7e2,'description':_0x473d5f[_0x666a1d(0xcd)],'descriptionSource':_0x666a1d(0xb9),'descriptionFilePath':_0x42b4c9,'sanitize':_0x473d5f};}
@@ -1 +1 @@
1
- const a98_0x56152b=a98_0x4fd9;function a98_0x4fd9(_0x172962,_0x38a767){_0x172962=_0x172962-0xaf;const _0x3036a1=a98_0x3036();let _0x4fd902=_0x3036a1[_0x172962];return _0x4fd902;}(function(_0x1821bc,_0x301fd3){const _0x78ad60=a98_0x4fd9,_0x5df698=_0x1821bc();while(!![]){try{const _0x192af9=parseInt(_0x78ad60(0xbf))/0x1+-parseInt(_0x78ad60(0xc5))/0x2+parseInt(_0x78ad60(0xc7))/0x3+-parseInt(_0x78ad60(0xb0))/0x4+-parseInt(_0x78ad60(0xb4))/0x5*(-parseInt(_0x78ad60(0xc0))/0x6)+parseInt(_0x78ad60(0xb2))/0x7*(parseInt(_0x78ad60(0xbb))/0x8)+parseInt(_0x78ad60(0xce))/0x9*(-parseInt(_0x78ad60(0xbd))/0xa);if(_0x192af9===_0x301fd3)break;else _0x5df698['push'](_0x5df698['shift']());}catch(_0x59c2d9){_0x5df698['push'](_0x5df698['shift']());}}}(a98_0x3036,0x7975b));function a98_0x3036(){const _0x376420=['from','restore','2103260tEupRa','pattern','161yBqNPp','replace','105AcrkIC','REDACTED:private-key','length','slice','kind','max','private-key','313520glVrzT','byteLength','125370sehMsI','utf8','469243TEYcTK','63540Wahbvp','REDACTED:bearer-jwt','push','password','cookie','1598088jycWaQ','REDACTED:password','1402674hMJFpS','access-key','toString','includes','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','REDACTED:access-key','string','171twrINn'];a98_0x3036=function(){return _0x376420;};return a98_0x3036();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x56152b(0xcb),REDACTION_RULES=[{'kind':a98_0x56152b(0xc4),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a98_0x56152b(0xba),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x56152b(0xb5)},{'kind':a98_0x56152b(0xc8),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x56152b(0xcc)},{'kind':a98_0x56152b(0xc3),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x56152b(0xc6)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x56152b(0xc1)}];export function sanitizeIssueDescription(_0x3ea125){const _0x3e043c=a98_0x56152b,_0x42ae74=Buffer[_0x3e043c(0xbc)](_0x3ea125,'utf8'),_0x32956b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x126423=_0x3ea125,_0x28e291=0x0;const _0x5af685=[];if(!_0x32956b){const _0x409e48=protectOssAccessKeyIds(_0x126423);_0x126423=_0x409e48['description'];for(const _0x4c51d4 of REDACTION_RULES){let _0x386ac8=0x0;_0x126423=_0x126423[_0x3e043c(0xb3)](_0x4c51d4[_0x3e043c(0xb1)],(_0x1e5739,_0x58ae8d)=>{const _0x364f67=_0x3e043c;_0x386ac8+=0x1;const _0x1b80ef=typeof _0x58ae8d===_0x364f67(0xcd)?_0x58ae8d:'';return _0x1b80ef+'['+_0x4c51d4['label']+']';}),_0x386ac8>0x0&&(_0x28e291+=_0x386ac8,!_0x5af685[_0x3e043c(0xca)](_0x4c51d4['kind'])&&_0x5af685['push'](_0x4c51d4[_0x3e043c(0xb8)]));}_0x126423=_0x409e48[_0x3e043c(0xaf)](_0x126423);}let _0x3bfc9a=![];if(Buffer[_0x3e043c(0xbc)](_0x126423,_0x3e043c(0xbe))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3bfc9a=!![];const _0x3fa7b2=Buffer[_0x3e043c(0xbc)](TRUNCATION_NOTICE,_0x3e043c(0xbe)),_0x5458ed=Math[_0x3e043c(0xb9)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3fa7b2);_0x126423=sliceUtf8Bytes(_0x126423,_0x5458ed)+TRUNCATION_NOTICE;}return{'description':_0x126423,'originalBytes':_0x42ae74,'truncated':_0x3bfc9a,'redactionCount':_0x28e291,'redactionKinds':_0x5af685};}function protectOssAccessKeyIds(_0x3959c7){const _0x60ee53=a98_0x56152b,_0xd2c997=[],_0x571225=_0x3959c7[_0x60ee53(0xb3)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x1d6beb,_0x45d45a)=>{const _0x13ac93=_0x60ee53,_0x523160=_0xd2c997[_0x13ac93(0xc2)](_0x1d6beb[_0x13ac93(0xb7)](_0x45d45a[_0x13ac93(0xb6)]))-0x1;return _0x45d45a+'__RB_OSS_ID_'+_0x523160+'__';});return{'description':_0x571225,'restore':_0x1692e1=>_0x1692e1[_0x60ee53(0xb3)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x31391a,_0x2c660a,_0x3667f2)=>{const _0xa46c1d=_0xd2c997[Number(_0x3667f2)];return _0xa46c1d===undefined?_0x31391a:''+_0x2c660a+_0xa46c1d;})};}function sliceUtf8Bytes(_0x3a0e89,_0x146f1a){const _0x36e67e=a98_0x56152b;if(_0x146f1a<=0x0)return'';const _0x2c83ff=Buffer[_0x36e67e(0xcf)](_0x3a0e89,'utf8');if(_0x2c83ff[_0x36e67e(0xbc)]<=_0x146f1a)return _0x3a0e89;let _0x2e7d52=_0x146f1a;while(_0x2e7d52>0x0){const _0x4f248d=_0x2c83ff[_0x2e7d52];if(_0x4f248d===undefined||(_0x4f248d&0xc0)!==0x80)break;_0x2e7d52-=0x1;}return _0x2c83ff['subarray'](0x0,_0x2e7d52)[_0x36e67e(0xc9)](_0x36e67e(0xbe));}
1
+ function a98_0x2ea8(_0x1082a1,_0x7a42df){_0x1082a1=_0x1082a1-0x1ed;const _0x1d892d=a98_0x1d89();let _0x2ea8ff=_0x1d892d[_0x1082a1];return _0x2ea8ff;}const a98_0x54dfdc=a98_0x2ea8;(function(_0x258221,_0x27e527){const _0x216494=a98_0x2ea8,_0x282254=_0x258221();while(!![]){try{const _0x182e6e=-parseInt(_0x216494(0x205))/0x1*(-parseInt(_0x216494(0x1f5))/0x2)+parseInt(_0x216494(0x1f4))/0x3+-parseInt(_0x216494(0x1ee))/0x4+parseInt(_0x216494(0x20b))/0x5*(parseInt(_0x216494(0x1f1))/0x6)+-parseInt(_0x216494(0x1f0))/0x7*(-parseInt(_0x216494(0x209))/0x8)+parseInt(_0x216494(0x206))/0x9+-parseInt(_0x216494(0x208))/0xa;if(_0x182e6e===_0x27e527)break;else _0x282254['push'](_0x282254['shift']());}catch(_0x1d4f3a){_0x282254['push'](_0x282254['shift']());}}}(a98_0x1d89,0x90cd9));function a98_0x1d89(){const _0xadf551=['\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','password','REDACTED:access-key','__RB_OSS_ID_','REDACTED:bearer-jwt','string','description','label','bearer-jwt','toString','275497jQjKnT','2777643OxBzdn','byteLength','20038120SmNevi','7572616lCylep','slice','1387105QGZGbk','private-key','utf8','kind','3471992BTuXTj','from','7lQzFCk','18eXHygc','REDACTED:authorization','max','826404QAQrDW','8YGAqsH','REDACTED:password','includes','authorization','restore','replace'];a98_0x1d89=function(){return _0xadf551;};return a98_0x1d89();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x54dfdc(0x1fb),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a98_0x54dfdc(0x1f8),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x54dfdc(0x1f2)},{'kind':a98_0x54dfdc(0x20c),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x54dfdc(0x1fd)},{'kind':a98_0x54dfdc(0x1fc),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x54dfdc(0x1f6)},{'kind':a98_0x54dfdc(0x203),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x54dfdc(0x1ff)}];export function sanitizeIssueDescription(_0x4dc2a6){const _0x31cb0f=a98_0x54dfdc,_0x393aa8=Buffer[_0x31cb0f(0x207)](_0x4dc2a6,_0x31cb0f(0x20d)),_0x3c261e=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x52fcd0=_0x4dc2a6,_0x50954e=0x0;const _0x217079=[];if(!_0x3c261e){const _0x12ad16=protectOssAccessKeyIds(_0x52fcd0);_0x52fcd0=_0x12ad16[_0x31cb0f(0x201)];for(const _0x59a106 of REDACTION_RULES){let _0x31699a=0x0;_0x52fcd0=_0x52fcd0['replace'](_0x59a106['pattern'],(_0x50c9aa,_0x96305c)=>{const _0x36b093=_0x31cb0f;_0x31699a+=0x1;const _0x466192=typeof _0x96305c===_0x36b093(0x200)?_0x96305c:'';return _0x466192+'['+_0x59a106[_0x36b093(0x202)]+']';}),_0x31699a>0x0&&(_0x50954e+=_0x31699a,!_0x217079[_0x31cb0f(0x1f7)](_0x59a106[_0x31cb0f(0x1ed)])&&_0x217079['push'](_0x59a106['kind']));}_0x52fcd0=_0x12ad16[_0x31cb0f(0x1f9)](_0x52fcd0);}let _0xa21c1c=![];if(Buffer[_0x31cb0f(0x207)](_0x52fcd0,_0x31cb0f(0x20d))>ISSUE_DESCRIPTION_MAX_BYTES){_0xa21c1c=!![];const _0x2931a8=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0xe30331=Math[_0x31cb0f(0x1f3)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x2931a8);_0x52fcd0=sliceUtf8Bytes(_0x52fcd0,_0xe30331)+TRUNCATION_NOTICE;}return{'description':_0x52fcd0,'originalBytes':_0x393aa8,'truncated':_0xa21c1c,'redactionCount':_0x50954e,'redactionKinds':_0x217079};}function protectOssAccessKeyIds(_0x1b874a){const _0xf83787=a98_0x54dfdc,_0x5570d2=[],_0x445d50=_0x1b874a[_0xf83787(0x1fa)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x46ec81,_0x553946)=>{const _0x56d1d6=_0xf83787,_0x3ab516=_0x5570d2['push'](_0x46ec81[_0x56d1d6(0x20a)](_0x553946['length']))-0x1;return _0x553946+_0x56d1d6(0x1fe)+_0x3ab516+'__';});return{'description':_0x445d50,'restore':_0x2d0af8=>_0x2d0af8[_0xf83787(0x1fa)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x4d2ce6,_0x3b18c3,_0x2b9ab3)=>{const _0x29368c=_0x5570d2[Number(_0x2b9ab3)];return _0x29368c===undefined?_0x4d2ce6:''+_0x3b18c3+_0x29368c;})};}function sliceUtf8Bytes(_0x54843f,_0x306c66){const _0x16d51b=a98_0x54dfdc;if(_0x306c66<=0x0)return'';const _0x222983=Buffer[_0x16d51b(0x1ef)](_0x54843f,_0x16d51b(0x20d));if(_0x222983[_0x16d51b(0x207)]<=_0x306c66)return _0x54843f;let _0x7184d3=_0x306c66;while(_0x7184d3>0x0){const _0x51ac4f=_0x222983[_0x7184d3];if(_0x51ac4f===undefined||(_0x51ac4f&0xc0)!==0x80)break;_0x7184d3-=0x1;}return _0x222983['subarray'](0x0,_0x7184d3)[_0x16d51b(0x204)](_0x16d51b(0x20d));}
@@ -1 +1 @@
1
- function a99_0xde18(_0x58ef98,_0x30bbd3){_0x58ef98=_0x58ef98-0x1e9;const _0x38153b=a99_0x3815();let _0xde185b=_0x38153b[_0x58ef98];return _0xde185b;}const a99_0x571efd=a99_0xde18;(function(_0x3c2588,_0x336c62){const _0x1d993b=a99_0xde18,_0x1528e2=_0x3c2588();while(!![]){try{const _0x5cbb17=parseInt(_0x1d993b(0x1fa))/0x1+parseInt(_0x1d993b(0x1f6))/0x2*(parseInt(_0x1d993b(0x1fd))/0x3)+-parseInt(_0x1d993b(0x206))/0x4+parseInt(_0x1d993b(0x20a))/0x5*(parseInt(_0x1d993b(0x205))/0x6)+-parseInt(_0x1d993b(0x1fb))/0x7*(parseInt(_0x1d993b(0x1ef))/0x8)+-parseInt(_0x1d993b(0x208))/0x9+parseInt(_0x1d993b(0x200))/0xa;if(_0x5cbb17===_0x336c62)break;else _0x1528e2['push'](_0x1528e2['shift']());}catch(_0x467d1e){_0x1528e2['push'](_0x1528e2['shift']());}}}(a99_0x3815,0x82436));import{logger}from'../../utils/logger.js';function printLogs(_0x5ea891){const _0x162a16=a99_0xde18;if(_0x5ea891[_0x162a16(0x203)]===0x0){console[_0x162a16(0x1f7)](_0x162a16(0x1ed));return;}console['log']('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x5ea891[_0x162a16(0x1f3)]((_0x2e9af3,_0x434c47)=>{const _0x56d981=_0x162a16,_0x48fec8=new Date(_0x2e9af3[_0x56d981(0x1f8)])[_0x56d981(0x1f2)](_0x56d981(0x202)),_0x23a4b3=_0x2e9af3[_0x56d981(0x1ee)]==='success'?'√':_0x2e9af3['level']==='error'?'×':_0x2e9af3[_0x56d981(0x1ee)]==='warn'?'!':'i';console['log'](_0x434c47+0x1+'.\x20'+_0x23a4b3+'\x20['+_0x2e9af3[_0x56d981(0x1fe)]+']\x20'+_0x2e9af3['message']),console[_0x56d981(0x1f7)](_0x56d981(0x1f4)+_0x48fec8),_0x2e9af3[_0x56d981(0x1e9)]&&console['log'](_0x56d981(0x204)+_0x2e9af3[_0x56d981(0x1e9)]+'ms'),_0x2e9af3[_0x56d981(0x1f0)]&&Object[_0x56d981(0x209)](_0x2e9af3[_0x56d981(0x1f0)])['length']>0x0&&console[_0x56d981(0x1f7)](_0x56d981(0x201)+JSON[_0x56d981(0x1ec)](_0x2e9af3[_0x56d981(0x1f0)],null,0x2)),console[_0x56d981(0x1f7)]('');});}export const logsDefinitions=[{'service':a99_0x571efd(0x1f1),'command':a99_0x571efd(0x1f9),'description':a99_0x571efd(0x207),'risk':a99_0x571efd(0x1fc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1d9526){const _0xab2d96=a99_0x571efd;return printLogs(logger[_0xab2d96(0x1eb)]()),{'ok':!![]};}},{'service':a99_0x571efd(0x1f1),'command':a99_0x571efd(0x1ea),'description':a99_0x571efd(0x1ff),'risk':a99_0x571efd(0x1f5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x378941){const _0x1c6004=a99_0x571efd;return logger['clearLogs'](),console[_0x1c6004(0x1f7)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];function a99_0x3815(){const _0xf2f888=['keys','15230WvYJML','duration','clear','readLogs','stringify','*\x20No\x20logs\x20found','level','80OqwDnj','details','logs','toLocaleString','forEach','\x20\x20\x20Time:\x20','write','697204RaFbwQ','log','timestamp','show','602597nDiBBS','108857DLzsbq','read','6nkwwsF','command','Clear\x20command\x20history\x20logs','247990Timulj','\x20\x20\x20Details:\x20','en-US','length','\x20\x20\x20Duration:\x20','708YEzGnO','3812824yxerzY','View\x20command\x20history\x20logs','375786vjCAlx'];a99_0x3815=function(){return _0xf2f888;};return a99_0x3815();}
1
+ const a99_0x4fa1c6=a99_0x1b44;(function(_0x2e39e5,_0x5399b4){const _0x578f96=a99_0x1b44,_0xfffd56=_0x2e39e5();while(!![]){try{const _0x1af08a=parseInt(_0x578f96(0x1bd))/0x1*(-parseInt(_0x578f96(0x1c9))/0x2)+parseInt(_0x578f96(0x1d4))/0x3*(-parseInt(_0x578f96(0x1b7))/0x4)+-parseInt(_0x578f96(0x1d0))/0x5+-parseInt(_0x578f96(0x1d7))/0x6+parseInt(_0x578f96(0x1d3))/0x7+-parseInt(_0x578f96(0x1be))/0x8*(parseInt(_0x578f96(0x1b9))/0x9)+parseInt(_0x578f96(0x1c5))/0xa;if(_0x1af08a===_0x5399b4)break;else _0xfffd56['push'](_0xfffd56['shift']());}catch(_0x29710e){_0xfffd56['push'](_0xfffd56['shift']());}}}(a99_0x5d0e,0x3481f));function a99_0x1b44(_0x36323e,_0x123c37){_0x36323e=_0x36323e-0x1b6;const _0x5d0e28=a99_0x5d0e();let _0x1b4442=_0x5d0e28[_0x36323e];return _0x1b4442;}import{logger}from'../../utils/logger.js';function printLogs(_0x5ca8d3){const _0x535bf9=a99_0x1b44;if(_0x5ca8d3['length']===0x0){console[_0x535bf9(0x1c0)](_0x535bf9(0x1cf));return;}console[_0x535bf9(0x1c0)](_0x535bf9(0x1ca)),_0x5ca8d3['forEach']((_0x559260,_0x2530b7)=>{const _0x118dd6=_0x535bf9,_0x5c2992=new Date(_0x559260[_0x118dd6(0x1c3)])['toLocaleString'](_0x118dd6(0x1bb)),_0x2a2831=_0x559260['level']===_0x118dd6(0x1c7)?'√':_0x559260['level']==='error'?'×':_0x559260[_0x118dd6(0x1b8)]===_0x118dd6(0x1d5)?'!':'i';console[_0x118dd6(0x1c0)](_0x2530b7+0x1+'.\x20'+_0x2a2831+'\x20['+_0x559260[_0x118dd6(0x1b6)]+']\x20'+_0x559260[_0x118dd6(0x1bc)]),console[_0x118dd6(0x1c0)](_0x118dd6(0x1d6)+_0x5c2992),_0x559260[_0x118dd6(0x1d2)]&&console[_0x118dd6(0x1c0)](_0x118dd6(0x1d8)+_0x559260[_0x118dd6(0x1d2)]+'ms'),_0x559260[_0x118dd6(0x1d1)]&&Object[_0x118dd6(0x1bf)](_0x559260[_0x118dd6(0x1d1)])['length']>0x0&&console[_0x118dd6(0x1c0)](_0x118dd6(0x1c8)+JSON[_0x118dd6(0x1cd)](_0x559260[_0x118dd6(0x1d1)],null,0x2)),console[_0x118dd6(0x1c0)]('');});}export const logsDefinitions=[{'service':a99_0x4fa1c6(0x1c1),'command':a99_0x4fa1c6(0x1ce),'description':a99_0x4fa1c6(0x1ba),'risk':a99_0x4fa1c6(0x1cb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x54c8cd){const _0x11d65d=a99_0x4fa1c6;return printLogs(logger[_0x11d65d(0x1c4)]()),{'ok':!![]};}},{'service':a99_0x4fa1c6(0x1c1),'command':'clear','description':a99_0x4fa1c6(0x1cc),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x44a815){const _0xa8c800=a99_0x4fa1c6;return logger[_0xa8c800(0x1c6)](),console[_0xa8c800(0x1c0)](_0xa8c800(0x1c2)),{'ok':!![]};}}];function a99_0x5d0e(){const _0x4203b2=['clearLogs','success','\x20\x20\x20Details:\x20','2XiqLeo','*\x20Lovrabet\x20CLI\x20logs:\x0a','read','Clear\x20command\x20history\x20logs','stringify','show','*\x20No\x20logs\x20found','604910iLEGbP','details','duration','1400385pguDoX','3SwSDXK','warn','\x20\x20\x20Time:\x20','1687728CqjaoI','\x20\x20\x20Duration:\x20','command','720436dNAymM','level','182754UpESKl','View\x20command\x20history\x20logs','en-US','message','263558wVlStj','24uAGXOm','keys','log','logs','*\x20Logs\x20cleared','timestamp','readLogs','9218710Ihddth'];a99_0x5d0e=function(){return _0x4203b2;};return a99_0x5d0e();}
@@ -1 +1 @@
1
- (function(_0x13cf28,_0x263ff7){const _0x97595c=a100_0x3b24,_0x1fd0d8=_0x13cf28();while(!![]){try{const _0x1a91d5=parseInt(_0x97595c(0x181))/0x1+parseInt(_0x97595c(0x180))/0x2+parseInt(_0x97595c(0x179))/0x3*(parseInt(_0x97595c(0x17e))/0x4)+parseInt(_0x97595c(0x17a))/0x5*(-parseInt(_0x97595c(0x17d))/0x6)+parseInt(_0x97595c(0x17f))/0x7*(-parseInt(_0x97595c(0x182))/0x8)+parseInt(_0x97595c(0x17b))/0x9+parseInt(_0x97595c(0x17c))/0xa;if(_0x1a91d5===_0x263ff7)break;else _0x1fd0d8['push'](_0x1fd0d8['shift']());}catch(_0x2c14c2){_0x1fd0d8['push'](_0x1fd0d8['shift']());}}}(a100_0x13cd,0xe6184));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a100_0x3b24(_0x3aa9d0,_0x3772aa){_0x3aa9d0=_0x3aa9d0-0x179;const _0x13cd6c=a100_0x13cd();let _0x3b24ad=_0x13cd6c[_0x3aa9d0];return _0x3b24ad;}function a100_0x13cd(){const _0x38dce0=['216503epEVar','227486IndVJC','244448WpFbVq','200QPHnUo','6XtZCDi','137380JovnOx','9704556lnJcJa','11992320QZCsbK','330fwZhUZ','1182332OWfggU'];a100_0x13cd=function(){return _0x38dce0;};return a100_0x13cd();}
1
+ (function(_0x135ae0,_0x25b918){const _0x230e3b=a100_0x37fc,_0xa41c69=_0x135ae0();while(!![]){try{const _0x2ced38=parseInt(_0x230e3b(0x146))/0x1*(-parseInt(_0x230e3b(0x13f))/0x2)+-parseInt(_0x230e3b(0x144))/0x3+parseInt(_0x230e3b(0x145))/0x4+parseInt(_0x230e3b(0x147))/0x5*(parseInt(_0x230e3b(0x142))/0x6)+parseInt(_0x230e3b(0x143))/0x7+-parseInt(_0x230e3b(0x141))/0x8+parseInt(_0x230e3b(0x140))/0x9*(parseInt(_0x230e3b(0x13e))/0xa);if(_0x2ced38===_0x25b918)break;else _0xa41c69['push'](_0xa41c69['shift']());}catch(_0x487fea){_0xa41c69['push'](_0xa41c69['shift']());}}}(a100_0xa65b,0x83ce6));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a100_0x37fc(_0x4f1f7c,_0x575e4b){_0x4f1f7c=_0x4f1f7c-0x13e;const _0xa65bd6=a100_0xa65b();let _0x37fca6=_0xa65bd6[_0x4f1f7c];return _0x37fca6;}import{menuUpdate}from'../../commands/menu/update.js';function a100_0xa65b(){const _0x32ce63=['106550oBeHkv','535066OYQsIg','1305mOuIKR','1944040yVIfZB','6COXXJR','128261ZMxWyC','2186205PQEjCB','1042424xRNArn','3rqWDul','2451565fFETva'];a100_0xa65b=function(){return _0x32ce63;};return a100_0xa65b();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a101_0x5e0a0b=a101_0x5886;(function(_0x4ae0d9,_0x202861){const _0x516491=a101_0x5886,_0x3cfd22=_0x4ae0d9();while(!![]){try{const _0x171be7=parseInt(_0x516491(0x16e))/0x1+-parseInt(_0x516491(0x18d))/0x2*(parseInt(_0x516491(0x170))/0x3)+-parseInt(_0x516491(0x16b))/0x4+-parseInt(_0x516491(0x18a))/0x5+-parseInt(_0x516491(0x179))/0x6+-parseInt(_0x516491(0x16f))/0x7*(parseInt(_0x516491(0x17c))/0x8)+-parseInt(_0x516491(0x175))/0x9*(-parseInt(_0x516491(0x176))/0xa);if(_0x171be7===_0x202861)break;else _0x3cfd22['push'](_0x3cfd22['shift']());}catch(_0x4edd1b){_0x3cfd22['push'](_0x3cfd22['shift']());}}}(a101_0x4541,0xe5add));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a101_0x5e0a0b(0x177),'command':a101_0x5e0a0b(0x183),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a101_0x5e0a0b(0x186),'type':'boolean','description':a101_0x5e0a0b(0x16a)}],async 'execute'(_0x28d51b){const _0x2a8b27=a101_0x5e0a0b,_0x4aea26=_0x28d51b[_0x2a8b27(0x169)](_0x2a8b27(0x186)),_0x36bf91=await getMenuTree(_0x28d51b[_0x2a8b27(0x18c)],_0x28d51b[_0x2a8b27(0x182)]),_0x336784=flattenMenuItems(Array[_0x2a8b27(0x187)](_0x36bf91)?_0x36bf91:[],{'verbose':_0x4aea26,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x336784['length'],'menus':_0x336784},'message':_0x336784['length']===0x0?'No\x20menus\x20found.':_0x2a8b27(0x173)+_0x336784[_0x2a8b27(0x17b)]+_0x2a8b27(0x167)};}};function a101_0x4541(){const _0x264920=['8951795iBAHtc','visible','appCode','492428WMgbex','POSITIVE_INFINITY','push','\x20menu(s)','sort','bool','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','4494704GaNaQR','extend','label','602816HFvfTm','2438191faQKJU','12ySJSRU','item','depth','Found\x20','parse','14583690RkkROR','40WyPRwC','menu','resources','5109288hiNGhf','path','length','32wdYBfE','number','isFinite','children','type','map','cookie','list','boolean','parentId','verbose','isArray','index','string'];a101_0x4541=function(){return _0x264920;};return a101_0x4541();}function a101_0x5886(_0xa7387a,_0x80712f){_0xa7387a=_0xa7387a-0x166;const _0x454174=a101_0x4541();let _0x588671=_0x454174[_0xa7387a];return _0x588671;}function flattenMenuItems(_0x3dd29d,_0x4f2203){const _0x54ba2d=a101_0x5e0a0b,_0x5782c7=sortMenuItems(_0x3dd29d),_0x130bb0=[];for(const _0x3e5073 of _0x5782c7){_0x130bb0[_0x54ba2d(0x166)](toMenuListItem(_0x3e5073,_0x4f2203)),Array[_0x54ba2d(0x187)](_0x3e5073[_0x54ba2d(0x17f)])&&_0x3e5073[_0x54ba2d(0x17f)]['length']>0x0&&_0x130bb0['push'](...flattenMenuItems(_0x3e5073[_0x54ba2d(0x17f)],{'verbose':_0x4f2203['verbose'],'parentId':_0x3e5073['id'],'depth':_0x4f2203['depth']+0x1}));}return _0x130bb0;}function sortMenuItems(_0x5a2f19){const _0x1b5230=a101_0x5e0a0b;return _0x5a2f19[_0x1b5230(0x181)]((_0x31f57c,_0x297f5d)=>({'item':_0x31f57c,'index':_0x297f5d}))[_0x1b5230(0x168)]((_0x161ddc,_0x5426cf)=>{const _0x49bf62=_0x1b5230,_0x505689=normalizeSort(_0x161ddc[_0x49bf62(0x171)]['sort']),_0x408d74=normalizeSort(_0x5426cf['item'][_0x49bf62(0x168)]);if(_0x505689!==_0x408d74)return _0x505689-_0x408d74;return _0x161ddc['index']-_0x5426cf[_0x49bf62(0x188)];})[_0x1b5230(0x181)](({item:_0x2dc2d1})=>_0x2dc2d1);}function toMenuListItem(_0x596c82,_0x11c698){const _0x2705ca=a101_0x5e0a0b,_0x36fb2e={'id':_0x596c82['id'],'parentId':_0x11c698[_0x2705ca(0x185)],'depth':_0x11c698[_0x2705ca(0x172)],'label':normalizeString(_0x596c82[_0x2705ca(0x16d)]),'path':normalizeString(_0x596c82[_0x2705ca(0x17a)]),'type':normalizeString(_0x596c82[_0x2705ca(0x180)]),'visible':typeof _0x596c82[_0x2705ca(0x18b)]===_0x2705ca(0x184)?_0x596c82[_0x2705ca(0x18b)]:null,'sort':typeof _0x596c82[_0x2705ca(0x168)]===_0x2705ca(0x17d)&&Number['isFinite'](_0x596c82[_0x2705ca(0x168)])?_0x596c82[_0x2705ca(0x168)]:null,'resources':normalizeResources(_0x596c82[_0x2705ca(0x16c)]?.[_0x2705ca(0x178)])};return _0x11c698[_0x2705ca(0x186)]&&(_0x36fb2e['extend']=_0x596c82[_0x2705ca(0x16c)]??null),_0x36fb2e;}function normalizeSort(_0x430251){const _0x3c6070=a101_0x5e0a0b;return typeof _0x430251==='number'&&Number[_0x3c6070(0x17e)](_0x430251)?_0x430251:Number[_0x3c6070(0x18e)];}function normalizeString(_0x152c8b){const _0x38f4d4=a101_0x5e0a0b;return typeof _0x152c8b===_0x38f4d4(0x189)?_0x152c8b:'';}function normalizeResources(_0x1bfcf2){const _0x36dd68=a101_0x5e0a0b;if(Array[_0x36dd68(0x187)](_0x1bfcf2))return _0x1bfcf2['map'](String);if(typeof _0x1bfcf2!==_0x36dd68(0x189))return[];try{const _0x20e91b=JSON[_0x36dd68(0x174)](_0x1bfcf2);return Array[_0x36dd68(0x187)](_0x20e91b)?_0x20e91b[_0x36dd68(0x181)](String):[];}catch{return[];}}
1
+ const a101_0xcee671=a101_0x1674;(function(_0x38d486,_0x41b40e){const _0x38077a=a101_0x1674,_0x3366d4=_0x38d486();while(!![]){try{const _0x17b64=-parseInt(_0x38077a(0xdb))/0x1+-parseInt(_0x38077a(0xdc))/0x2*(parseInt(_0x38077a(0xd0))/0x3)+parseInt(_0x38077a(0xc0))/0x4+-parseInt(_0x38077a(0xd5))/0x5*(-parseInt(_0x38077a(0xc5))/0x6)+parseInt(_0x38077a(0xba))/0x7+-parseInt(_0x38077a(0xd4))/0x8+parseInt(_0x38077a(0xd7))/0x9;if(_0x17b64===_0x41b40e)break;else _0x3366d4['push'](_0x3366d4['shift']());}catch(_0x416d5b){_0x3366d4['push'](_0x3366d4['shift']());}}}(a101_0x1a7d,0xa26e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a101_0xcee671(0xc4),'command':a101_0xcee671(0xbe),'description':a101_0xcee671(0xd1),'risk':a101_0xcee671(0xd6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a101_0xcee671(0xca),'type':a101_0xcee671(0xc8),'description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x996f2e){const _0x548cad=a101_0xcee671,_0xc6e65a=_0x996f2e[_0x548cad(0xc9)](_0x548cad(0xca)),_0x5a7455=await getMenuTree(_0x996f2e['appCode'],_0x996f2e[_0x548cad(0xce)]),_0x5ece32=flattenMenuItems(Array[_0x548cad(0xc7)](_0x5a7455)?_0x5a7455:[],{'verbose':_0xc6e65a,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5ece32[_0x548cad(0xcb)],'menus':_0x5ece32},'message':_0x5ece32[_0x548cad(0xcb)]===0x0?_0x548cad(0xb8):_0x548cad(0xcc)+_0x5ece32[_0x548cad(0xcb)]+'\x20menu(s)'};}};function flattenMenuItems(_0xb6aea4,_0x403985){const _0x59d1cd=a101_0xcee671,_0x21255a=sortMenuItems(_0xb6aea4),_0x2ef87e=[];for(const _0x2e96d8 of _0x21255a){_0x2ef87e['push'](toMenuListItem(_0x2e96d8,_0x403985)),Array[_0x59d1cd(0xc7)](_0x2e96d8[_0x59d1cd(0xd8)])&&_0x2e96d8[_0x59d1cd(0xd8)][_0x59d1cd(0xcb)]>0x0&&_0x2ef87e[_0x59d1cd(0xc6)](...flattenMenuItems(_0x2e96d8['children'],{'verbose':_0x403985['verbose'],'parentId':_0x2e96d8['id'],'depth':_0x403985[_0x59d1cd(0xc2)]+0x1}));}return _0x2ef87e;}function sortMenuItems(_0x5e3800){const _0x41d261=a101_0xcee671;return _0x5e3800['map']((_0x14011b,_0x366961)=>({'item':_0x14011b,'index':_0x366961}))['sort']((_0x5e7909,_0x417e08)=>{const _0x2e8049=a101_0x1674,_0xf594bc=normalizeSort(_0x5e7909[_0x2e8049(0xbc)]['sort']),_0x4f86be=normalizeSort(_0x417e08['item']['sort']);if(_0xf594bc!==_0x4f86be)return _0xf594bc-_0x4f86be;return _0x5e7909[_0x2e8049(0xd3)]-_0x417e08['index'];})[_0x41d261(0xc1)](({item:_0x5db1c6})=>_0x5db1c6);}function a101_0x1a7d(){const _0x18c57e=['label','sort','147032VZNpjF','1378quiDZs','No\x20menus\x20found.','isFinite','904225zhclHu','path','item','parse','list','string','743608GuZODL','map','depth','extend','menu','6DeVftd','push','isArray','boolean','bool','verbose','length','Found\x20','number','cookie','POSITIVE_INFINITY','132zbqtjK','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','parentId','index','6474024VQAwCl','5924715rEbtdZ','read','1367118XyYUkI','children'];a101_0x1a7d=function(){return _0x18c57e;};return a101_0x1a7d();}function a101_0x1674(_0x3f1778,_0x2ffd32){_0x3f1778=_0x3f1778-0xb8;const _0x1a7d6b=a101_0x1a7d();let _0x1674a5=_0x1a7d6b[_0x3f1778];return _0x1674a5;}function toMenuListItem(_0x4a1ffd,_0x45bdf4){const _0x4ecc2a=a101_0xcee671,_0x3edec0={'id':_0x4a1ffd['id'],'parentId':_0x45bdf4[_0x4ecc2a(0xd2)],'depth':_0x45bdf4[_0x4ecc2a(0xc2)],'label':normalizeString(_0x4a1ffd[_0x4ecc2a(0xd9)]),'path':normalizeString(_0x4a1ffd[_0x4ecc2a(0xbb)]),'type':normalizeString(_0x4a1ffd['type']),'visible':typeof _0x4a1ffd['visible']==='boolean'?_0x4a1ffd['visible']:null,'sort':typeof _0x4a1ffd['sort']===_0x4ecc2a(0xcd)&&Number[_0x4ecc2a(0xb9)](_0x4a1ffd[_0x4ecc2a(0xda)])?_0x4a1ffd[_0x4ecc2a(0xda)]:null,'resources':normalizeResources(_0x4a1ffd['extend']?.['resources'])};return _0x45bdf4[_0x4ecc2a(0xca)]&&(_0x3edec0[_0x4ecc2a(0xc3)]=_0x4a1ffd[_0x4ecc2a(0xc3)]??null),_0x3edec0;}function normalizeSort(_0x25d07d){const _0x5d64af=a101_0xcee671;return typeof _0x25d07d===_0x5d64af(0xcd)&&Number['isFinite'](_0x25d07d)?_0x25d07d:Number[_0x5d64af(0xcf)];}function normalizeString(_0x3dd718){const _0xa2c2c8=a101_0xcee671;return typeof _0x3dd718===_0xa2c2c8(0xbf)?_0x3dd718:'';}function normalizeResources(_0x153120){const _0x1bb31a=a101_0xcee671;if(Array['isArray'](_0x153120))return _0x153120[_0x1bb31a(0xc1)](String);if(typeof _0x153120!==_0x1bb31a(0xbf))return[];try{const _0x52a4e8=JSON[_0x1bb31a(0xbd)](_0x153120);return Array[_0x1bb31a(0xc7)](_0x52a4e8)?_0x52a4e8[_0x1bb31a(0xc1)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a102_0xed0b(_0xf5f096,_0x2f08a1){_0xf5f096=_0xf5f096-0x91;const _0xd98c75=a102_0xd98c();let _0xed0b27=_0xd98c75[_0xf5f096];return _0xed0b27;}(function(_0x2d7f64,_0x3a4cae){const _0x65b8b0=a102_0xed0b,_0x539441=_0x2d7f64();while(!![]){try{const _0x161a07=parseInt(_0x65b8b0(0x91))/0x1*(-parseInt(_0x65b8b0(0xa3))/0x2)+-parseInt(_0x65b8b0(0x9e))/0x3+parseInt(_0x65b8b0(0xa2))/0x4*(parseInt(_0x65b8b0(0x9f))/0x5)+parseInt(_0x65b8b0(0xaf))/0x6+parseInt(_0x65b8b0(0xa0))/0x7+parseInt(_0x65b8b0(0x95))/0x8*(-parseInt(_0x65b8b0(0xa4))/0x9)+parseInt(_0x65b8b0(0xa6))/0xa;if(_0x161a07===_0x3a4cae)break;else _0x539441['push'](_0x539441['shift']());}catch(_0x504d45){_0x539441['push'](_0x539441['shift']());}}}(a102_0xd98c,0x6e28f));function strWidth(_0x590809){const _0x4527b8=a102_0xed0b;let _0x4f4eb6=0x0;for(const _0x26b369 of _0x590809){_0x4f4eb6+=/[\u4e00-\u9fa5]/[_0x4527b8(0xa9)](_0x26b369)?0x2:0x1;}return _0x4f4eb6;}function padRight(_0x55c179,_0x125e5d){const _0x54c7c6=a102_0xed0b,_0x2c2496=strWidth(_0x55c179);return _0x55c179+'\x20'[_0x54c7c6(0x9b)](Math[_0x54c7c6(0x9a)](0x0,_0x125e5d-_0x2c2496));}export function renderCompareTable(_0x2d9a40,_0x48f74d={}){const _0x561530=a102_0xed0b;if(_0x2d9a40['length']===0x0)return'';const _0x5c797e=_0x48f74d['showOnline']??!![],_0x4b62ba=Math[_0x561530(0x9a)](0x1e,..._0x2d9a40['map'](_0x498a3d=>strWidth(_0x498a3d[_0x561530(0x9d)]))),_0x4ed183=0x4,_0x186ec6=[],_0x2a3c5b='\x20\x20'+padRight(_0x561530(0x97),_0x4b62ba),_0x133e84=padRight(_0x561530(0x96),_0x4ed183),_0x2fe1c6=_0x5c797e?'\x20\x20'+padRight(_0x561530(0xab),_0x4ed183):'';_0x186ec6[_0x561530(0xa7)](_0x2a3c5b+'\x20\x20'+_0x133e84+(_0x5c797e?_0x2fe1c6:'')),_0x186ec6[_0x561530(0xa7)]('\x20\x20'+'─'[_0x561530(0x9b)](_0x4b62ba)+'\x20\x20'+'─'[_0x561530(0x9b)](_0x4ed183)+(_0x5c797e?'\x20\x20'+'─'[_0x561530(0x9b)](_0x4ed183):''));for(const _0x508b4b of _0x2d9a40){const _0xdcd0e4=padRight(_0x508b4b[_0x561530(0x9d)],_0x4b62ba),_0xefe5b4=_0x508b4b[_0x561530(0xac)]?'✓':'✗',_0x51b6fe=padRight(_0xefe5b4,_0x4ed183);let _0x4bc16f='\x20\x20'+_0xdcd0e4+'\x20\x20'+_0x51b6fe;if(_0x5c797e){const _0x3ddb9b=_0x508b4b[_0x561530(0x92)]?'✓':'✗';_0x4bc16f+='\x20\x20'+padRight(_0x3ddb9b,_0x4ed183);}_0x186ec6[_0x561530(0xa7)](_0x4bc16f);}return _0x186ec6['join']('\x0a');}function a102_0xd98c(){const _0x3fa279=['join','label','823056UmhXze','610FhmTRE','5118582cMCRtp','\x20\x20\x20\x20JS:\x20\x20','16472qhVvhW','62Qsmqwo','9wfTvWM','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','5010140aPDwoO','push','(unchanged)','test','length','Platform','local','\x20\x20\x20\x20•\x20','\x20\x20\x20\x20CSS:\x20','2295060oYGHuS','23496wxmtcG','online','\x20\x20No\x20pages\x20to\x20sync.','path','5305624YzGfWl','Local','Menu\x20Name','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','max','repeat'];a102_0xd98c=function(){return _0x3fa279;};return a102_0xd98c();}export function renderSyncSummary(_0x5c724a,_0x10a367){const _0x26636c=a102_0xed0b;if(_0x5c724a[_0x26636c(0xaa)]===0x0)return _0x10a367?_0x26636c(0x98):_0x26636c(0x93);const _0x501467=['\x20\x20'+_0x5c724a['length']+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x1ecaac of _0x5c724a){_0x501467[_0x26636c(0xa7)](_0x26636c(0xad)+_0x1ecaac[_0x26636c(0x9d)]+'\x20('+_0x1ecaac[_0x26636c(0x94)]+')');}return _0x501467['join']('\x0a');}export function renderUpdateSummary(_0x2afc51,_0x2d799b){const _0x33f6c8=a102_0xed0b;if(_0x2afc51['length']===0x0)return _0x33f6c8(0x99);const _0x328086=['\x20\x20'+_0x2afc51[_0x33f6c8(0xaa)]+_0x33f6c8(0xa5),_0x33f6c8(0xa1)+(_0x2d799b[0x0]??_0x33f6c8(0xa8)),_0x33f6c8(0xae)+(_0x2d799b[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x2afc51['join'](',\x20')];return _0x328086[_0x33f6c8(0x9c)]('\x0a');}
1
+ (function(_0x21eed0,_0x481ee5){const _0x11d315=a102_0x32cf,_0x30f0b6=_0x21eed0();while(!![]){try{const _0x401298=-parseInt(_0x11d315(0x1bf))/0x1+parseInt(_0x11d315(0x1b2))/0x2+-parseInt(_0x11d315(0x1b3))/0x3+parseInt(_0x11d315(0x1bd))/0x4+parseInt(_0x11d315(0x1c1))/0x5+parseInt(_0x11d315(0x1be))/0x6*(parseInt(_0x11d315(0x1b4))/0x7)+-parseInt(_0x11d315(0x1b0))/0x8;if(_0x401298===_0x481ee5)break;else _0x30f0b6['push'](_0x30f0b6['shift']());}catch(_0x1987c5){_0x30f0b6['push'](_0x30f0b6['shift']());}}}(a102_0x2bdf,0x72eb8));function a102_0x2bdf(){const _0xb2d1d=['2479410sliNpv','28AbtVvk','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','Menu\x20Name','\x20\x20\x20\x20•\x20','online','map','path','showOnline','test','3506328yvXCAb','933534sZOJqb','344873gyfeSr','local','4706045rtVgtG','\x20\x20\x20\x20CSS:\x20','\x20\x20No\x20pages\x20to\x20sync.','label','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','max','(unchanged)','repeat','length','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Platform','join','\x20\x20\x20\x20JS:\x20\x20','10202256mgpNFw','push','954380pTidwG'];a102_0x2bdf=function(){return _0xb2d1d;};return a102_0x2bdf();}function strWidth(_0x176cf6){const _0x47715c=a102_0x32cf;let _0x52af9e=0x0;for(const _0xdef65b of _0x176cf6){_0x52af9e+=/[\u4e00-\u9fa5]/[_0x47715c(0x1bc)](_0xdef65b)?0x2:0x1;}return _0x52af9e;}function padRight(_0x499a02,_0x399014){const _0x3ce744=a102_0x32cf,_0x3a3ed6=strWidth(_0x499a02);return _0x499a02+'\x20'[_0x3ce744(0x1a9)](Math['max'](0x0,_0x399014-_0x3a3ed6));}export function renderCompareTable(_0x54d454,_0x1efa2f={}){const _0x469b8a=a102_0x32cf;if(_0x54d454['length']===0x0)return'';const _0x3db537=_0x1efa2f[_0x469b8a(0x1bb)]??!![],_0x514867=Math[_0x469b8a(0x1a7)](0x1e,..._0x54d454[_0x469b8a(0x1b9)](_0x493271=>strWidth(_0x493271[_0x469b8a(0x1a5)]))),_0x597636=0x4,_0x2c311b=[],_0x345960='\x20\x20'+padRight(_0x469b8a(0x1b6),_0x514867),_0x1771a6=padRight('Local',_0x597636),_0x3858da=_0x3db537?'\x20\x20'+padRight(_0x469b8a(0x1ad),_0x597636):'';_0x2c311b[_0x469b8a(0x1b1)](_0x345960+'\x20\x20'+_0x1771a6+(_0x3db537?_0x3858da:'')),_0x2c311b[_0x469b8a(0x1b1)]('\x20\x20'+'─'[_0x469b8a(0x1a9)](_0x514867)+'\x20\x20'+'─'[_0x469b8a(0x1a9)](_0x597636)+(_0x3db537?'\x20\x20'+'─'['repeat'](_0x597636):''));for(const _0x3d9677 of _0x54d454){const _0x3626c3=padRight(_0x3d9677[_0x469b8a(0x1a5)],_0x514867),_0x5ef204=_0x3d9677[_0x469b8a(0x1c0)]?'✓':'✗',_0x260eb2=padRight(_0x5ef204,_0x597636);let _0x444f1e='\x20\x20'+_0x3626c3+'\x20\x20'+_0x260eb2;if(_0x3db537){const _0x3484a5=_0x3d9677[_0x469b8a(0x1b8)]?'✓':'✗';_0x444f1e+='\x20\x20'+padRight(_0x3484a5,_0x597636);}_0x2c311b[_0x469b8a(0x1b1)](_0x444f1e);}return _0x2c311b['join']('\x0a');}function a102_0x32cf(_0x2873cc,_0x4a154e){_0x2873cc=_0x2873cc-0x1a3;const _0x2bdf7e=a102_0x2bdf();let _0x32cf6a=_0x2bdf7e[_0x2873cc];return _0x32cf6a;}export function renderSyncSummary(_0x113a4b,_0x3dacc0){const _0x20a485=a102_0x32cf;if(_0x113a4b[_0x20a485(0x1aa)]===0x0)return _0x3dacc0?_0x20a485(0x1ac):_0x20a485(0x1a4);const _0x455fe3=['\x20\x20'+_0x113a4b[_0x20a485(0x1aa)]+_0x20a485(0x1b5)];for(const _0x465b4b of _0x113a4b){_0x455fe3['push'](_0x20a485(0x1b7)+_0x465b4b[_0x20a485(0x1a5)]+'\x20('+_0x465b4b[_0x20a485(0x1ba)]+')');}return _0x455fe3[_0x20a485(0x1ae)]('\x0a');}export function renderUpdateSummary(_0x234040,_0xf45a34){const _0x3d4507=a102_0x32cf;if(_0x234040[_0x3d4507(0x1aa)]===0x0)return _0x3d4507(0x1ab);const _0x155548=['\x20\x20'+_0x234040[_0x3d4507(0x1aa)]+_0x3d4507(0x1a6),_0x3d4507(0x1af)+(_0xf45a34[0x0]??'(unchanged)'),_0x3d4507(0x1a3)+(_0xf45a34[0x1]??_0x3d4507(0x1a8)),'','\x20\x20Affected\x20menus:\x20'+_0x234040[_0x3d4507(0x1ae)](',\x20')];return _0x155548[_0x3d4507(0x1ae)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x134282,_0x352bfb){var _0x44be13=a103_0x3ca7,_0x132100=_0x134282();while(!![]){try{var _0x5ed1c8=-parseInt(_0x44be13(0x118))/0x1*(-parseInt(_0x44be13(0x11a))/0x2)+-parseInt(_0x44be13(0x113))/0x3*(-parseInt(_0x44be13(0x119))/0x4)+-parseInt(_0x44be13(0x116))/0x5*(-parseInt(_0x44be13(0x11c))/0x6)+parseInt(_0x44be13(0x111))/0x7+-parseInt(_0x44be13(0x11b))/0x8*(-parseInt(_0x44be13(0x114))/0x9)+-parseInt(_0x44be13(0x115))/0xa*(-parseInt(_0x44be13(0x112))/0xb)+-parseInt(_0x44be13(0x117))/0xc;if(_0x5ed1c8===_0x352bfb)break;else _0x132100['push'](_0x132100['shift']());}catch(_0x2d863a){_0x132100['push'](_0x132100['shift']());}}}(a103_0x42a2,0xda728));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a103_0x42a2(){var _0x49bca5=['16iXFLsN','6FRjlga','8684466HeKohw','15701697fQlrBJ','409557CkUeeb','4940937EHFsfA','10wqzTRB','7705330xWKjbC','66235524GfFIcO','151637UMHIaV','28uuNroA','2WGMwvx'];a103_0x42a2=function(){return _0x49bca5;};return a103_0x42a2();}export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a103_0x3ca7(_0x18d7db,_0x49d8f4){_0x18d7db=_0x18d7db-0x111;var _0x42a28c=a103_0x42a2();var _0x3ca76=_0x42a28c[_0x18d7db];return _0x3ca76;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x5364a2,_0x1edd36){var _0x48f4fd=a103_0x2455,_0x26a3c3=_0x5364a2();while(!![]){try{var _0x4eb802=-parseInt(_0x48f4fd(0x154))/0x1+-parseInt(_0x48f4fd(0x156))/0x2+parseInt(_0x48f4fd(0x158))/0x3*(parseInt(_0x48f4fd(0x15b))/0x4)+parseInt(_0x48f4fd(0x155))/0x5+-parseInt(_0x48f4fd(0x159))/0x6+parseInt(_0x48f4fd(0x157))/0x7*(-parseInt(_0x48f4fd(0x153))/0x8)+parseInt(_0x48f4fd(0x15a))/0x9;if(_0x4eb802===_0x1edd36)break;else _0x26a3c3['push'](_0x26a3c3['shift']());}catch(_0x303be5){_0x26a3c3['push'](_0x26a3c3['shift']());}}}(a103_0x42f9,0x7c6a8));export*from'../../../commands/menu/shared/types.js';function a103_0x42f9(){var _0x4187a0=['1391750GHpsXO','435954inYfWf','14izNnXs','24708PJbsNf','1938468nLemjo','12082023ihbhsM','152fAPIPq','1788056TEuBDE','436088VrGGbt'];a103_0x42f9=function(){return _0x4187a0;};return a103_0x42f9();}export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a103_0x2455(_0x335012,_0x1db7ab){_0x335012=_0x335012-0x153;var _0x42f970=a103_0x42f9();var _0x2455ab=_0x42f970[_0x335012];return _0x2455ab;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x216571,_0x28afb5){const _0x3b4034=a104_0x4aaa,_0x1c1a16=_0x216571();while(!![]){try{const _0x4c15cb=-parseInt(_0x3b4034(0xab))/0x1*(parseInt(_0x3b4034(0xb3))/0x2)+parseInt(_0x3b4034(0xa0))/0x3*(-parseInt(_0x3b4034(0xa3))/0x4)+-parseInt(_0x3b4034(0xb5))/0x5*(parseInt(_0x3b4034(0xa4))/0x6)+parseInt(_0x3b4034(0xaa))/0x7*(parseInt(_0x3b4034(0xb9))/0x8)+parseInt(_0x3b4034(0x9e))/0x9+parseInt(_0x3b4034(0xc5))/0xa+-parseInt(_0x3b4034(0xb8))/0xb*(parseInt(_0x3b4034(0xa5))/0xc);if(_0x4c15cb===_0x28afb5)break;else _0x1c1a16['push'](_0x1c1a16['shift']());}catch(_0x44c533){_0x1c1a16['push'](_0x1c1a16['shift']());}}}(a104_0x57b9,0x9fb4e));import a104_0x5c2e5b from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a104_0x28db3d from'ora';function a104_0x4aaa(_0x4e60a1,_0x5961e6){_0x4e60a1=_0x4e60a1-0x9b;const _0x57b9e1=a104_0x57b9();let _0x4aaa0b=_0x57b9e1[_0x4e60a1];return _0x4aaa0b;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a104_0x57b9(){const _0x720e22=['\x20\x20CSS\x20URL:','\x20\x20Checking\x20JS\x20URL\x20reachability...','8796760xmopFw','[new]','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','JS\x20URL\x20check\x20failed','start','\x20\x20JS\x20URL:','4449879pMEtbU','label','1131909AXCdho','includes','red','4ByiPOH','14802FMYeLV','180KDbily','map','path','[already\x20on\x20platform]','error','112FaevjI','16087ajrhhu','isTTY','test','cyan','cancelled','name','stdin','CSS\x20URL\x20check\x20failed','54rYLgCi','CSS\x20URL\x20checked','60QnttaE','trim','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','188089qPrrpN','188896ZnTOIT','JS\x20URL\x20checked','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Cancelled.','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','filter','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','has','gray'];a104_0x57b9=function(){return _0x720e22;};return a104_0x57b9();}function onCancel(_0x653345){return _0x653345['catch'](_0x5470cb=>{const _0x401e05=a104_0x4aaa;if(_0x5470cb?.[_0x401e05(0xb0)]==='ExitPromptError')throw CliErrors[_0x401e05(0xaf)]('Cancelled.');throw _0x5470cb;});}export function startSpinner(_0x40e9e4){const _0x46ad77=a104_0x4aaa;return a104_0x28db3d({'text':_0x40e9e4,'color':_0x46ad77(0xae)})[_0x46ad77(0x9c)]();}export function stopSpinner(_0x31db1b,_0x5219d3,_0x488d37){_0x488d37?_0x31db1b['succeed'](_0x5219d3):_0x31db1b['fail'](_0x5219d3);}export async function askConfirm(_0x87e247){return onCancel(confirm({'message':_0x87e247,'theme':{'prefix':''}}));}export async function askJsUrl(_0x211dac){const _0xeec34b=a104_0x4aaa;while(!![]){const _0x291272=await onCancel(input({'message':_0xeec34b(0x9d),'default':_0x211dac,'theme':{'prefix':''}}));if(_0x291272[_0xeec34b(0xb6)]()==='')throw CliErrors[_0xeec34b(0xaf)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0xeec34b(0xad)](_0x291272[_0xeec34b(0xb6)]())){console[_0xeec34b(0xa9)](a104_0x5c2e5b['red'](_0xeec34b(0xbc)));continue;}const _0x22d756=startSpinner(_0xeec34b(0xc4));try{const _0x5b2076=await isUrlReachable(_0x291272['trim']());stopSpinner(_0x22d756,_0xeec34b(0xba),_0x5b2076);if(!_0x5b2076){console[_0xeec34b(0xa9)](a104_0x5c2e5b[_0xeec34b(0xa2)](_0xeec34b(0xbe)));continue;}return _0x291272[_0xeec34b(0xb6)]();}catch(_0x3fc8e8){stopSpinner(_0x22d756,_0xeec34b(0x9b),![]);throw _0x3fc8e8;}}}export async function askCssUrl(_0x42a7e8){const _0x389c8b=a104_0x4aaa;while(!![]){const _0x5cc1bb=await onCancel(input({'message':_0x389c8b(0xc3),'default':_0x42a7e8,'theme':{'prefix':''}}));if(_0x5cc1bb[_0x389c8b(0xb6)]()==='')throw CliErrors['cancelled'](_0x389c8b(0xbd));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x389c8b(0xad)](_0x5cc1bb[_0x389c8b(0xb6)]())){console[_0x389c8b(0xa9)](a104_0x5c2e5b['red'](_0x389c8b(0xc7)));continue;}const _0x1446dc=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x3a8f6e=await isUrlReachable(_0x5cc1bb[_0x389c8b(0xb6)]());stopSpinner(_0x1446dc,_0x389c8b(0xb4),_0x3a8f6e);if(!_0x3a8f6e){console[_0x389c8b(0xa9)](a104_0x5c2e5b['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x5cc1bb['trim']();}catch(_0x1dfbf0){stopSpinner(_0x1446dc,_0x389c8b(0xb2),![]);throw _0x1dfbf0;}}}export async function selectPages(_0x3f9188,_0x220faf,_0x8f7632){const _0x231c2c=a104_0x4aaa,_0x1112ae=_0x3f9188[_0x231c2c(0xa6)](_0xbd67f9=>({'name':_0xbd67f9[_0x231c2c(0x9f)]+'\x20\x20'+(_0x220faf[_0x231c2c(0xc1)](_0xbd67f9['path'])?a104_0x5c2e5b[_0x231c2c(0xc2)](_0x231c2c(0xa8)):a104_0x5c2e5b['green'](_0x231c2c(0xc6))),'value':_0xbd67f9[_0x231c2c(0x9f)],'checked':_0x8f7632?_0x8f7632[_0x231c2c(0xa1)](_0xbd67f9['label']):!_0x220faf[_0x231c2c(0xc1)](_0xbd67f9[_0x231c2c(0xa7)])}));if(_0x1112ae['length']===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x15a6e7=await onCancel(checkbox({'message':_0x231c2c(0xb7),'choices':_0x1112ae,'loop':![],'theme':{'prefix':''}}));if(_0x15a6e7['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x3f9188[_0x231c2c(0xbf)](_0x4c9f07=>_0x15a6e7['includes'](_0x4c9f07[_0x231c2c(0x9f)]));}export function isInteractive(){const _0x743c79=a104_0x4aaa;return process[_0x743c79(0xb1)][_0x743c79(0xac)]===!![];}export function requireInteractive(){const _0x5e2006=a104_0x4aaa;if(!isInteractive())throw new Error(_0x5e2006(0xbb)+_0x5e2006(0xc0));}
1
+ (function(_0x38fb5c,_0x544d3c){const _0xce0070=a104_0x2e61,_0x536869=_0x38fb5c();while(!![]){try{const _0x500055=parseInt(_0xce0070(0x18a))/0x1+parseInt(_0xce0070(0x1a2))/0x2*(-parseInt(_0xce0070(0x18b))/0x3)+-parseInt(_0xce0070(0x17c))/0x4+parseInt(_0xce0070(0x189))/0x5+parseInt(_0xce0070(0x1a4))/0x6*(parseInt(_0xce0070(0x17f))/0x7)+-parseInt(_0xce0070(0x181))/0x8*(-parseInt(_0xce0070(0x18c))/0x9)+-parseInt(_0xce0070(0x199))/0xa;if(_0x500055===_0x544d3c)break;else _0x536869['push'](_0x536869['shift']());}catch(_0x5e35f3){_0x536869['push'](_0x536869['shift']());}}}(a104_0x2478,0x2e052));import a104_0x974896 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a104_0x2ef4f5 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a104_0x2e61(_0x584beb,_0x46570d){_0x584beb=_0x584beb-0x17c;const _0x24783e=a104_0x2478();let _0x2e61fc=_0x24783e[_0x584beb];return _0x2e61fc;}function onCancel(_0x2fd213){return _0x2fd213['catch'](_0xab8602=>{const _0x40d913=a104_0x2e61;if(_0xab8602?.[_0x40d913(0x186)]===_0x40d913(0x1a3))throw CliErrors['cancelled'](_0x40d913(0x18e));throw _0xab8602;});}export function startSpinner(_0x592078){const _0x328a79=a104_0x2e61;return a104_0x2ef4f5({'text':_0x592078,'color':_0x328a79(0x19f)})[_0x328a79(0x1a0)]();}export function stopSpinner(_0x45b3fa,_0x52250b,_0x3cca63){const _0x165440=a104_0x2e61;_0x3cca63?_0x45b3fa[_0x165440(0x192)](_0x52250b):_0x45b3fa[_0x165440(0x190)](_0x52250b);}export async function askConfirm(_0x47406e){return onCancel(confirm({'message':_0x47406e,'theme':{'prefix':''}}));}export async function askJsUrl(_0x469fe6){const _0x57fb1b=a104_0x2e61;while(!![]){const _0x22cdae=await onCancel(input({'message':_0x57fb1b(0x19b),'default':_0x469fe6,'theme':{'prefix':''}}));if(_0x22cdae[_0x57fb1b(0x19e)]()==='')throw CliErrors['cancelled'](_0x57fb1b(0x18e));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x57fb1b(0x1a7)](_0x22cdae[_0x57fb1b(0x19e)]())){console[_0x57fb1b(0x18f)](a104_0x974896['red'](_0x57fb1b(0x1a5)));continue;}const _0x3eef59=startSpinner(_0x57fb1b(0x195));try{const _0x4b1c09=await isUrlReachable(_0x22cdae[_0x57fb1b(0x19e)]());stopSpinner(_0x3eef59,'JS\x20URL\x20checked',_0x4b1c09);if(!_0x4b1c09){console[_0x57fb1b(0x18f)](a104_0x974896['red']('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x22cdae[_0x57fb1b(0x19e)]();}catch(_0x58d94f){stopSpinner(_0x3eef59,_0x57fb1b(0x185),![]);throw _0x58d94f;}}}export async function askCssUrl(_0x8026bf){const _0x459c8d=a104_0x2e61;while(!![]){const _0xc1904e=await onCancel(input({'message':_0x459c8d(0x180),'default':_0x8026bf,'theme':{'prefix':''}}));if(_0xc1904e[_0x459c8d(0x19e)]()==='')throw CliErrors[_0x459c8d(0x1a1)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0xc1904e[_0x459c8d(0x19e)]())){console[_0x459c8d(0x18f)](a104_0x974896['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x1f2fad=startSpinner(_0x459c8d(0x19c));try{const _0x495407=await isUrlReachable(_0xc1904e[_0x459c8d(0x19e)]());stopSpinner(_0x1f2fad,_0x459c8d(0x18d),_0x495407);if(!_0x495407){console[_0x459c8d(0x18f)](a104_0x974896[_0x459c8d(0x198)](_0x459c8d(0x19a)));continue;}return _0xc1904e['trim']();}catch(_0x13824e){stopSpinner(_0x1f2fad,'CSS\x20URL\x20check\x20failed',![]);throw _0x13824e;}}}export async function selectPages(_0x471394,_0x4814b3,_0x41797b){const _0xaf67d8=a104_0x2e61,_0x1362ce=_0x471394[_0xaf67d8(0x193)](_0x47c5fe=>({'name':_0x47c5fe[_0xaf67d8(0x188)]+'\x20\x20'+(_0x4814b3[_0xaf67d8(0x194)](_0x47c5fe['path'])?a104_0x974896[_0xaf67d8(0x1a9)](_0xaf67d8(0x187)):a104_0x974896[_0xaf67d8(0x182)]('[new]')),'value':_0x47c5fe['label'],'checked':_0x41797b?_0x41797b[_0xaf67d8(0x17e)](_0x47c5fe['label']):!_0x4814b3[_0xaf67d8(0x194)](_0x47c5fe[_0xaf67d8(0x1a6)])}));if(_0x1362ce[_0xaf67d8(0x1a8)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x59aeff=await onCancel(checkbox({'message':_0xaf67d8(0x196),'choices':_0x1362ce,'loop':![],'theme':{'prefix':''}}));if(_0x59aeff['length']===0x0)throw new Error(_0xaf67d8(0x183));return _0x471394[_0xaf67d8(0x17d)](_0x5a4fa3=>_0x59aeff[_0xaf67d8(0x17e)](_0x5a4fa3[_0xaf67d8(0x188)]));}function a104_0x2478(){const _0x2c563b=['test','length','gray','63532qGWHgE','filter','includes','1851808IKGVWv','\x20\x20CSS\x20URL:','32vcBoOr','green','No\x20menus\x20selected.','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','JS\x20URL\x20check\x20failed','name','[already\x20on\x20platform]','label','1253150fnbvEt','75358zlnrod','217002VoQbnE','525699gakbKn','CSS\x20URL\x20checked','Cancelled.','error','fail','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','succeed','map','has','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','isTTY','red','5474610TljFwu','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','\x20\x20Checking\x20CSS\x20URL\x20reachability...','stdin','trim','cyan','start','cancelled','2EOyIvE','ExitPromptError','6ommwKy','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path'];a104_0x2478=function(){return _0x2c563b;};return a104_0x2478();}export function isInteractive(){const _0x26e170=a104_0x2e61;return process[_0x26e170(0x19d)][_0x26e170(0x197)]===!![];}export function requireInteractive(){const _0x102b8a=a104_0x2e61;if(!isInteractive())throw new Error(_0x102b8a(0x191)+_0x102b8a(0x184));}
@@ -1 +1 @@
1
- const a105_0x5da1a3=a105_0x5c4a;function a105_0x5c4a(_0x1ef240,_0x52e869){_0x1ef240=_0x1ef240-0x158;const _0x17e245=a105_0x17e2();let _0x5c4a15=_0x17e245[_0x1ef240];return _0x5c4a15;}(function(_0x57699f,_0x197d04){const _0x4a5124=a105_0x5c4a,_0x34da62=_0x57699f();while(!![]){try{const _0x3ae6d4=-parseInt(_0x4a5124(0x159))/0x1+parseInt(_0x4a5124(0x161))/0x2+parseInt(_0x4a5124(0x163))/0x3*(-parseInt(_0x4a5124(0x167))/0x4)+-parseInt(_0x4a5124(0x15c))/0x5*(parseInt(_0x4a5124(0x166))/0x6)+-parseInt(_0x4a5124(0x158))/0x7+-parseInt(_0x4a5124(0x15e))/0x8*(parseInt(_0x4a5124(0x168))/0x9)+parseInt(_0x4a5124(0x160))/0xa*(parseInt(_0x4a5124(0x16b))/0xb);if(_0x3ae6d4===_0x197d04)break;else _0x34da62['push'](_0x34da62['shift']());}catch(_0x3a5bb9){_0x34da62['push'](_0x34da62['shift']());}}}(a105_0x17e2,0xe8153));import{readdirSync,statSync,readFileSync}from'fs';function a105_0x17e2(){const _0x4580d1=['660296vuzPHS','1205860wWCEoL','push','utf-8','10uOvJWc','index.tsx','280LvvPhw','match','1856310hNoEeC','1174172QZmZQZ','endsWith','69PiHYaG','path','.tsx','1708446TOxgib','170572CDDKzh','80487CtfITG','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','slice','209daIyMF','concat','trim','replace','cwd','split','join'];a105_0x17e2=function(){return _0x4580d1;};return a105_0x17e2();}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a105_0x5da1a3(0x16f)](),'src/pages');export function extractTitleFromComment(_0x12a2d6){const _0x51b679=a105_0x5da1a3;try{const _0x3d5cac=readFileSync(_0x12a2d6,_0x51b679(0x15b)),_0x1c757c=_0x3d5cac[_0x51b679(0x15f)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1c757c&&_0x1c757c[0x1]){const _0x485ac5=_0x1c757c[0x1],_0x459840=_0x485ac5[_0x51b679(0x15f)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x459840&&_0x459840[0x1])return _0x459840[0x1][_0x51b679(0x16d)]();}let _0x4ce3d7=null;const _0xc9dd93=_0x3d5cac['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0xc9dd93&&_0xc9dd93[0x1]&&(_0x4ce3d7=_0xc9dd93[0x1]);if(!_0x4ce3d7){const _0x380162=_0x3d5cac[_0x51b679(0x15f)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x380162&&_0x380162[0x1]&&(_0x4ce3d7=_0x380162[0x1]);}if(_0x4ce3d7){const _0x38b718=new RegExp('\x5cb'+_0x4ce3d7+_0x51b679(0x169)),_0x199c9e=_0x3d5cac['match'](_0x38b718);if(_0x199c9e&&_0x199c9e[0x1])return _0x199c9e[0x1];return _0x4ce3d7;}return null;}catch(_0x2baf0c){return null;}}export function getLocalPages(_0x587c8b=pagesDir,_0x722f2b=pagesDir){const _0x52fe7b=a105_0x5da1a3;let _0x4ab973=[];const _0x31ed06=readdirSync(_0x587c8b);return _0x31ed06['forEach'](_0x33101c=>{const _0x5c1a30=a105_0x5c4a,_0x18c4b9=join(_0x587c8b,_0x33101c),_0x6a9ba7=statSync(_0x18c4b9);if(_0x6a9ba7&&_0x6a9ba7['isDirectory']())_0x4ab973=_0x4ab973[_0x5c1a30(0x16c)](getLocalPages(_0x18c4b9,_0x722f2b));else{if(_0x33101c[_0x5c1a30(0x162)](_0x5c1a30(0x165))){let _0x2c9316=relative(_0x722f2b,_0x18c4b9);_0x2c9316['endsWith'](_0x5c1a30(0x15d))?_0x2c9316=_0x2c9316[_0x5c1a30(0x16e)](/index\.tsx$/,''):_0x2c9316=_0x2c9316[_0x5c1a30(0x16e)](/\.tsx$/,'');_0x2c9316[_0x5c1a30(0x162)](sep)&&(_0x2c9316=_0x2c9316[_0x5c1a30(0x16a)](0x0,-0x1));const _0x25a072=_0x2c9316[_0x5c1a30(0x170)](sep)[_0x5c1a30(0x171)]('/'),_0xc8b9f4=extractTitleFromComment(_0x18c4b9),_0x456103=_0xc8b9f4||_0x25a072;_0x4ab973[_0x5c1a30(0x15a)]({'path':_0x25a072['replaceAll']('$',':'),'label':_0x456103});}}}),_0x4ab973['filter'](_0x40ec4c=>_0x40ec4c[_0x52fe7b(0x164)]!=='');}
1
+ const a105_0x243c42=a105_0x1c25;(function(_0x39bec7,_0x137277){const _0x1e8ad7=a105_0x1c25,_0x14b23f=_0x39bec7();while(!![]){try{const _0xcba953=-parseInt(_0x1e8ad7(0x19e))/0x1*(-parseInt(_0x1e8ad7(0x1ae))/0x2)+-parseInt(_0x1e8ad7(0x1ad))/0x3+-parseInt(_0x1e8ad7(0x1b3))/0x4+parseInt(_0x1e8ad7(0x1a8))/0x5*(parseInt(_0x1e8ad7(0x1b1))/0x6)+-parseInt(_0x1e8ad7(0x1a6))/0x7*(-parseInt(_0x1e8ad7(0x1a1))/0x8)+parseInt(_0x1e8ad7(0x1b0))/0x9+-parseInt(_0x1e8ad7(0x1ac))/0xa;if(_0xcba953===_0x137277)break;else _0x14b23f['push'](_0x14b23f['shift']());}catch(_0xe1b79a){_0x14b23f['push'](_0x14b23f['shift']());}}}(a105_0x5283,0x3e8c7));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a105_0x1c25(_0x111fb8,_0x56bc6f){_0x111fb8=_0x111fb8-0x19d;const _0x528398=a105_0x5283();let _0x1c259a=_0x528398[_0x111fb8];return _0x1c259a;}const pagesDir=resolve(process[a105_0x243c42(0x1a7)](),a105_0x243c42(0x1a4));export function extractTitleFromComment(_0x1cac04){const _0x1a648b=a105_0x243c42;try{const _0x411d95=readFileSync(_0x1cac04,_0x1a648b(0x1a3)),_0x11938e=_0x411d95[_0x1a648b(0x1b4)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x11938e&&_0x11938e[0x1]){const _0x632215=_0x11938e[0x1],_0x45d573=_0x632215[_0x1a648b(0x1b4)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x45d573&&_0x45d573[0x1])return _0x45d573[0x1][_0x1a648b(0x1b2)]();}let _0x35acfb=null;const _0x7b5f8b=_0x411d95['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x7b5f8b&&_0x7b5f8b[0x1]&&(_0x35acfb=_0x7b5f8b[0x1]);if(!_0x35acfb){const _0x371401=_0x411d95[_0x1a648b(0x1b4)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x371401&&_0x371401[0x1]&&(_0x35acfb=_0x371401[0x1]);}if(_0x35acfb){const _0x254688=new RegExp('\x5cb'+_0x35acfb+_0x1a648b(0x1a9)),_0x65932a=_0x411d95[_0x1a648b(0x1b4)](_0x254688);if(_0x65932a&&_0x65932a[0x1])return _0x65932a[0x1];return _0x35acfb;}return null;}catch(_0x1b37f1){return null;}}export function getLocalPages(_0x352c03=pagesDir,_0x249a01=pagesDir){const _0x185781=a105_0x243c42;let _0x642443=[];const _0x50955d=readdirSync(_0x352c03);return _0x50955d[_0x185781(0x1a5)](_0xd58ed6=>{const _0x1a1b2a=_0x185781,_0x551d55=join(_0x352c03,_0xd58ed6),_0x5f0f4d=statSync(_0x551d55);if(_0x5f0f4d&&_0x5f0f4d[_0x1a1b2a(0x1aa)]())_0x642443=_0x642443['concat'](getLocalPages(_0x551d55,_0x249a01));else{if(_0xd58ed6[_0x1a1b2a(0x19f)](_0x1a1b2a(0x1a2))){let _0x4a009b=relative(_0x249a01,_0x551d55);_0x4a009b[_0x1a1b2a(0x19f)]('index.tsx')?_0x4a009b=_0x4a009b[_0x1a1b2a(0x1af)](/index\.tsx$/,''):_0x4a009b=_0x4a009b[_0x1a1b2a(0x1af)](/\.tsx$/,'');_0x4a009b[_0x1a1b2a(0x19f)](sep)&&(_0x4a009b=_0x4a009b['slice'](0x0,-0x1));const _0x4d79e9=_0x4a009b['split'](sep)['join']('/'),_0x3fb8e9=extractTitleFromComment(_0x551d55),_0x28c9b6=_0x3fb8e9||_0x4d79e9;_0x642443[_0x1a1b2a(0x1a0)]({'path':_0x4d79e9[_0x1a1b2a(0x19d)]('$',':'),'label':_0x28c9b6});}}}),_0x642443[_0x185781(0x1ab)](_0xabd139=>_0xabd139['path']!=='');}function a105_0x5283(){const _0x593051=['10150750cXkWTb','375744FjSWsO','2886nbIMgY','replace','3981168SdBIVn','24GUMDJb','trim','160724XUlCbn','match','replaceAll','269jpzHRt','endsWith','push','14512NXobEH','.tsx','utf-8','src/pages','forEach','364vmAfZB','cwd','639820afxkUL','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','isDirectory','filter'];a105_0x5283=function(){return _0x593051;};return a105_0x5283();}
@@ -1 +1 @@
1
- function a106_0x4692(){const _0x21c965=['length','47799uNNxrW','3lJKtml','2016954ejmLCp','130UODkSd','trim','filter','1789080JDvbPN','CSS\x20URL\x20is\x20unreachable','2WtXBaZ','value','join','399612IpMHfj','label','allSettled','341Jtgwhi','2238470CDyGwL','No\x20local\x20pages\x20matched\x20labels:\x20','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','has','7njHhqm','2290756PDiROt','rejected','errors','JS\x20URL\x20is\x20unreachable','path','map','fulfilled','find','98628GBGAFE','status','push','resources'];a106_0x4692=function(){return _0x21c965;};return a106_0x4692();}(function(_0x34befd,_0x1fead3){const _0x27c981=a106_0x5987,_0x3f9968=_0x34befd();while(!![]){try{const _0x4f9669=-parseInt(_0x27c981(0x190))/0x1*(-parseInt(_0x27c981(0x19d))/0x2)+parseInt(_0x27c981(0x196))/0x3*(-parseInt(_0x27c981(0x188))/0x4)+parseInt(_0x27c981(0x183))/0x5+-parseInt(_0x27c981(0x197))/0x6*(parseInt(_0x27c981(0x187))/0x7)+-parseInt(_0x27c981(0x19b))/0x8+-parseInt(_0x27c981(0x195))/0x9*(parseInt(_0x27c981(0x198))/0xa)+parseInt(_0x27c981(0x182))/0xb*(parseInt(_0x27c981(0x1a0))/0xc);if(_0x4f9669===_0x1fead3)break;else _0x3f9968['push'](_0x3f9968['shift']());}catch(_0xdcfecd){_0x3f9968['push'](_0x3f9968['shift']());}}}(a106_0x4692,0x5c127));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x6bb21c){const _0xcbf0c8=a106_0x5987,_0x57563c=[];return!isValidJsHttpsUrl(_0x6bb21c)&&_0x57563c['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x57563c[_0xcbf0c8(0x194)]===0x0,'errors':_0x57563c};}export function validateCssUrl(_0x2c74c2){const _0x158c21=a106_0x5987,_0x4f62ba=[];return!isValidCssHttpsUrl(_0x2c74c2)&&_0x4f62ba[_0x158c21(0x192)](_0x158c21(0x185)),{'ok':_0x4f62ba[_0x158c21(0x194)]===0x0,'errors':_0x4f62ba};}export async function validateJsUrlReachable(_0x17a547){const _0x3a9008=a106_0x5987,_0x478156=validateJsUrl(_0x17a547);if(!_0x478156['ok'])return _0x478156;const _0x25a6d4=await isUrlReachable(_0x17a547);if(!_0x25a6d4)_0x478156['errors'][_0x3a9008(0x192)](_0x3a9008(0x18b));return{'ok':_0x478156[_0x3a9008(0x18a)]['length']===0x0,'errors':_0x478156[_0x3a9008(0x18a)]};}export async function validateCssUrlReachable(_0x4e9905){const _0x423d20=a106_0x5987,_0x476827=validateCssUrl(_0x4e9905);if(!_0x476827['ok'])return _0x476827;const _0x397a0d=await isUrlReachable(_0x4e9905);if(!_0x397a0d)_0x476827[_0x423d20(0x18a)]['push'](_0x423d20(0x19c));return{'ok':_0x476827['errors'][_0x423d20(0x194)]===0x0,'errors':_0x476827['errors']};}export function buildCompareRows(_0x29a13c,_0x1c4052){const _0x392392=a106_0x5987;return _0x29a13c[_0x392392(0x18d)](_0x4a2c4d=>({'label':_0x4a2c4d['label'],'path':_0x4a2c4d[_0x392392(0x18c)],'local':!![],'online':_0x1c4052[_0x392392(0x186)](_0x4a2c4d[_0x392392(0x18c)])}));}export function filterNewPages(_0x435882,_0xdd0b91,_0x2deb52){const _0x1fe1ed=a106_0x5987;if(_0x2deb52&&_0x2deb52[_0x1fe1ed(0x194)]>0x0){const _0x1595b1=new Set(_0x2deb52[_0x1fe1ed(0x18d)](_0x3a1c01=>_0x3a1c01[_0x1fe1ed(0x199)]())),_0x3d89f2=_0x435882[_0x1fe1ed(0x19a)](_0x5f0a1d=>_0x1595b1[_0x1fe1ed(0x186)](_0x5f0a1d[_0x1fe1ed(0x1a1)]));if(_0x3d89f2['length']===0x0)throw new Error(_0x1fe1ed(0x184)+[..._0x1595b1][_0x1fe1ed(0x19f)](',\x20'));return _0x3d89f2;}return _0x435882['filter'](_0x180525=>!_0xdd0b91['has'](_0x180525[_0x1fe1ed(0x18c)]));}export function filterPagesByLabels(_0x5d846f,_0xae926e){const _0x364e9d=a106_0x5987,_0x566795=[],_0x3bdddd=[];for(const _0x3d8da5 of _0xae926e){const _0x5d2559=_0x3d8da5[_0x364e9d(0x199)](),_0x201c11=_0x5d846f[_0x364e9d(0x18f)](_0x416811=>_0x416811[_0x364e9d(0x1a1)]===_0x5d2559);if(_0x201c11)_0x566795[_0x364e9d(0x192)](_0x201c11);else _0x3bdddd['push'](_0x3d8da5);}return{'matched':_0x566795,'unmatched':_0x3bdddd};}export async function doCreateMenus(_0x105381,_0x5bedbe,_0x4bdc82,_0x4af78e){const _0x4ecd8d=a106_0x5987,_0x1e01b9=await createMenus(_0x105381,_0x5bedbe,_0x4bdc82,_0x4af78e);return{'created':_0x1e01b9[_0x4ecd8d(0x194)],'failed':0x0,'labels':_0x4bdc82[_0x4ecd8d(0x18d)](_0x2f0e40=>_0x2f0e40[_0x4ecd8d(0x1a1)]),'menus':_0x1e01b9};}export function filterMenusWithResources(_0x148cc1){const _0x31bce9=a106_0x5987;return _0x148cc1[_0x31bce9(0x19a)](_0x453cba=>_0x453cba[_0x31bce9(0x193)][_0x31bce9(0x194)]>0x0);}function a106_0x5987(_0x13a07e,_0x4d95f2){_0x13a07e=_0x13a07e-0x181;const _0x469222=a106_0x4692();let _0x598730=_0x469222[_0x13a07e];return _0x598730;}export async function doUpdateCdnUrls(_0x300388,_0x51e75c,_0x1dcef6,_0x329590){const _0x12a0e1=a106_0x5987,_0x3e1645=_0x1dcef6['filter'](_0x46606e=>_0x46606e[_0x12a0e1(0x193)][_0x12a0e1(0x194)]>0x0),_0x147e3b=await Promise[_0x12a0e1(0x181)](_0x3e1645[_0x12a0e1(0x18d)](_0x277664=>updateMenuCdnUrl(_0x300388,_0x51e75c,{'id':_0x277664['id'],'label':_0x277664[_0x12a0e1(0x1a1)],'path':_0x277664[_0x12a0e1(0x18c)],'resources':_0x329590,'extend':_0x277664['extend']??null}))),_0x50ea36=_0x147e3b[_0x12a0e1(0x19a)](_0x757b75=>_0x757b75[_0x12a0e1(0x191)]===_0x12a0e1(0x18e))[_0x12a0e1(0x18d)](_0x12aa8b=>_0x12aa8b[_0x12a0e1(0x19e)]),_0x17ed37=_0x147e3b[_0x12a0e1(0x19a)](_0x3e11ed=>_0x3e11ed[_0x12a0e1(0x191)]===_0x12a0e1(0x189))[_0x12a0e1(0x194)];return{'updated':_0x50ea36['length'],'failed':_0x17ed37,'menus':_0x50ea36};}export async function fetchMenuData(_0x2e5724,_0x5c2657){const _0x59e23b=a106_0x5987,_0x54f4eb=getLocalPages(),_0x471e63=await getOnlineMenuList(_0x2e5724,_0x5c2657),_0x1a969a=new Set(_0x471e63['map'](_0x55aae2=>_0x55aae2[_0x59e23b(0x18c)]));return{'localPages':_0x54f4eb,'onlineMenuList':_0x471e63,'onlinePaths':_0x1a969a};}export async function fetchOnlineMenuList(_0x11558c,_0x47154c){return getOnlineMenuList(_0x11558c,_0x47154c);}
1
+ (function(_0x3f3765,_0x4848a9){const _0x39c417=a106_0x4cbb,_0x3f52ea=_0x3f3765();while(!![]){try{const _0x5146b5=parseInt(_0x39c417(0x1ca))/0x1*(-parseInt(_0x39c417(0x1b9))/0x2)+parseInt(_0x39c417(0x1bb))/0x3+-parseInt(_0x39c417(0x1b5))/0x4*(parseInt(_0x39c417(0x1bf))/0x5)+parseInt(_0x39c417(0x1c7))/0x6*(parseInt(_0x39c417(0x1b2))/0x7)+parseInt(_0x39c417(0x1c8))/0x8*(-parseInt(_0x39c417(0x1c0))/0x9)+-parseInt(_0x39c417(0x1be))/0xa+parseInt(_0x39c417(0x1b4))/0xb;if(_0x5146b5===_0x4848a9)break;else _0x3f52ea['push'](_0x3f52ea['shift']());}catch(_0x431d01){_0x3f52ea['push'](_0x3f52ea['shift']());}}}(a106_0x5eca,0xaa98b));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';function a106_0x5eca(){const _0x161735=['2876uYWuZT','map','rejected','path','1342514PaDELd','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','675525hEVvta','find','CSS\x20URL\x20is\x20unreachable','7419120ZhuOew','8095pQkInd','7911bQdxXX','length','resources','join','push','status','label','306786waUHKd','24hHMknr','trim','1JixDQy','has','filter','133SkgIRG','errors','22901626JntPgd'];a106_0x5eca=function(){return _0x161735;};return a106_0x5eca();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x2abf8a){const _0x307323=a106_0x4cbb,_0x3cd4be=[];return!isValidJsHttpsUrl(_0x2abf8a)&&_0x3cd4be['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x3cd4be[_0x307323(0x1c1)]===0x0,'errors':_0x3cd4be};}export function validateCssUrl(_0x250ccd){const _0x3b2d1e=a106_0x4cbb,_0x473d5a=[];return!isValidCssHttpsUrl(_0x250ccd)&&_0x473d5a['push'](_0x3b2d1e(0x1ba)),{'ok':_0x473d5a['length']===0x0,'errors':_0x473d5a};}export async function validateJsUrlReachable(_0x11d4e4){const _0x3e6f5a=a106_0x4cbb,_0x283750=validateJsUrl(_0x11d4e4);if(!_0x283750['ok'])return _0x283750;const _0x254d99=await isUrlReachable(_0x11d4e4);if(!_0x254d99)_0x283750[_0x3e6f5a(0x1b3)][_0x3e6f5a(0x1c4)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x283750['errors'][_0x3e6f5a(0x1c1)]===0x0,'errors':_0x283750[_0x3e6f5a(0x1b3)]};}export async function validateCssUrlReachable(_0x1daf96){const _0x4a5f5f=a106_0x4cbb,_0x3d7bfa=validateCssUrl(_0x1daf96);if(!_0x3d7bfa['ok'])return _0x3d7bfa;const _0x313671=await isUrlReachable(_0x1daf96);if(!_0x313671)_0x3d7bfa[_0x4a5f5f(0x1b3)]['push'](_0x4a5f5f(0x1bd));return{'ok':_0x3d7bfa[_0x4a5f5f(0x1b3)][_0x4a5f5f(0x1c1)]===0x0,'errors':_0x3d7bfa[_0x4a5f5f(0x1b3)]};}export function buildCompareRows(_0x8f0cc,_0x57ea3b){const _0x40f7e2=a106_0x4cbb;return _0x8f0cc[_0x40f7e2(0x1b6)](_0x391bf8=>({'label':_0x391bf8[_0x40f7e2(0x1c6)],'path':_0x391bf8[_0x40f7e2(0x1b8)],'local':!![],'online':_0x57ea3b[_0x40f7e2(0x1cb)](_0x391bf8[_0x40f7e2(0x1b8)])}));}export function filterNewPages(_0x2785fa,_0x43439d,_0x46e58d){const _0x1fe1a7=a106_0x4cbb;if(_0x46e58d&&_0x46e58d[_0x1fe1a7(0x1c1)]>0x0){const _0x23831b=new Set(_0x46e58d[_0x1fe1a7(0x1b6)](_0x48b882=>_0x48b882[_0x1fe1a7(0x1c9)]())),_0x4f9de8=_0x2785fa[_0x1fe1a7(0x1cc)](_0x21964d=>_0x23831b[_0x1fe1a7(0x1cb)](_0x21964d[_0x1fe1a7(0x1c6)]));if(_0x4f9de8[_0x1fe1a7(0x1c1)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x23831b][_0x1fe1a7(0x1c3)](',\x20'));return _0x4f9de8;}return _0x2785fa[_0x1fe1a7(0x1cc)](_0x534bec=>!_0x43439d[_0x1fe1a7(0x1cb)](_0x534bec[_0x1fe1a7(0x1b8)]));}export function filterPagesByLabels(_0x5e5107,_0x420ad4){const _0xe8e958=a106_0x4cbb,_0x2b9a90=[],_0x35f9a9=[];for(const _0x2c2d9d of _0x420ad4){const _0x4be0a1=_0x2c2d9d[_0xe8e958(0x1c9)](),_0x253360=_0x5e5107[_0xe8e958(0x1bc)](_0x265c41=>_0x265c41[_0xe8e958(0x1c6)]===_0x4be0a1);if(_0x253360)_0x2b9a90[_0xe8e958(0x1c4)](_0x253360);else _0x35f9a9[_0xe8e958(0x1c4)](_0x2c2d9d);}return{'matched':_0x2b9a90,'unmatched':_0x35f9a9};}export async function doCreateMenus(_0x3a658c,_0x11cc6a,_0x1d7ee0,_0x19d9f8){const _0x3c8d94=a106_0x4cbb,_0x47af3e=await createMenus(_0x3a658c,_0x11cc6a,_0x1d7ee0,_0x19d9f8);return{'created':_0x47af3e[_0x3c8d94(0x1c1)],'failed':0x0,'labels':_0x1d7ee0[_0x3c8d94(0x1b6)](_0x46cd49=>_0x46cd49[_0x3c8d94(0x1c6)]),'menus':_0x47af3e};}export function filterMenusWithResources(_0x20e274){const _0x14882f=a106_0x4cbb;return _0x20e274['filter'](_0x47db49=>_0x47db49[_0x14882f(0x1c2)]['length']>0x0);}export async function doUpdateCdnUrls(_0x21ce84,_0x4ddac0,_0x3fcfbb,_0x38e5f0){const _0x113bfa=a106_0x4cbb,_0x132980=_0x3fcfbb[_0x113bfa(0x1cc)](_0x529050=>_0x529050[_0x113bfa(0x1c2)]['length']>0x0),_0xc4fab9=await Promise['allSettled'](_0x132980[_0x113bfa(0x1b6)](_0x333918=>updateMenuCdnUrl(_0x21ce84,_0x4ddac0,{'id':_0x333918['id'],'label':_0x333918['label'],'path':_0x333918[_0x113bfa(0x1b8)],'resources':_0x38e5f0,'extend':_0x333918['extend']??null}))),_0x21127f=_0xc4fab9[_0x113bfa(0x1cc)](_0x4b357e=>_0x4b357e[_0x113bfa(0x1c5)]==='fulfilled')[_0x113bfa(0x1b6)](_0x1fdd17=>_0x1fdd17['value']),_0x139a0d=_0xc4fab9['filter'](_0x2e02aa=>_0x2e02aa['status']===_0x113bfa(0x1b7))[_0x113bfa(0x1c1)];return{'updated':_0x21127f['length'],'failed':_0x139a0d,'menus':_0x21127f};}function a106_0x4cbb(_0x41cedb,_0x373243){_0x41cedb=_0x41cedb-0x1b2;const _0x5eca3b=a106_0x5eca();let _0x4cbbcd=_0x5eca3b[_0x41cedb];return _0x4cbbcd;}export async function fetchMenuData(_0x566e53,_0x3caf3a){const _0x51099f=a106_0x4cbb,_0x574dd8=getLocalPages(),_0x155e09=await getOnlineMenuList(_0x566e53,_0x3caf3a),_0x32491b=new Set(_0x155e09[_0x51099f(0x1b6)](_0x3961aa=>_0x3961aa[_0x51099f(0x1b8)]));return{'localPages':_0x574dd8,'onlineMenuList':_0x155e09,'onlinePaths':_0x32491b};}export async function fetchOnlineMenuList(_0x29cb62,_0x1ba04d){return getOnlineMenuList(_0x29cb62,_0x1ba04d);}