@lovrabet/rabetbase-cli 2.3.7-beta.4 → 2.3.7

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_0x48c6a0=a92_0x20c3;(function(_0x5782a2,_0x29a302){const _0x11f907=a92_0x20c3,_0x58ba2c=_0x5782a2();while(!![]){try{const _0x1c0052=parseInt(_0x11f907(0xe8))/0x1+parseInt(_0x11f907(0x126))/0x2+-parseInt(_0x11f907(0xf4))/0x3*(-parseInt(_0x11f907(0xe5))/0x4)+-parseInt(_0x11f907(0xf1))/0x5*(-parseInt(_0x11f907(0x105))/0x6)+parseInt(_0x11f907(0x119))/0x7+-parseInt(_0x11f907(0x106))/0x8+-parseInt(_0x11f907(0xf5))/0x9;if(_0x1c0052===_0x29a302)break;else _0x58ba2c['push'](_0x58ba2c['shift']());}catch(_0x58a981){_0x58ba2c['push'](_0x58ba2c['shift']());}}}(a92_0x3b67,0x1b10d));import a92_0x164122 from'chalk';function a92_0x3b67(){const _0x561149=['1239105LiIpRS','\x20\x20\x20\x20accessKey:\x20\x20','gray','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','cookie','\x20doctor','missing','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','399686lsNmfo','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','check','\x20\x20Apps','env','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20─','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','bold','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','arch','4nkEYdE','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','131406zSJrXU','\x20\x20API\x20Endpoints','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','repeat','\x20\x20Merged\x20Config','keys','(none)','845230iBsmrV','✓\x20Valid','riskLevel','219873lpcmQh','5559318fcSKEM','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','empty','message','\x20\x20Config\x20JSON','log','verbose','value','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','status','appCode','format','6yEuSVK','176304EifGMT','Project','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','accessKey','✗\x20Not\x20logged\x20in','locale','defaultApp','red','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','currentApp','\x20\x20runtimeDomain:\x20\x20\x20','(not\x20found)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','length','(default:\x20','\x20\x20Config\x20Files'];a92_0x3b67=function(){return _0x561149;};return a92_0x3b67();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';function a92_0x20c3(_0x2ed2b8,_0x9c2dd7){_0x2ed2b8=_0x2ed2b8-0xda;const _0x3b6706=a92_0x3b67();let _0x20c335=_0x3b6706[_0x2ed2b8];return _0x20c335;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x670a95){const _0xad71df=a92_0x20c3,_0x1c0fdf=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x4c56c5=buildConfigFromFlags({}),_0xccbc41=getCookie();console[_0xad71df(0xfb)](),console[_0xad71df(0xfb)](a92_0x164122[_0xad71df(0xe2)](CLI_BIN_NAME+_0xad71df(0x120))),console['log'](a92_0x164122[_0xad71df(0x11b)]('─'[_0xad71df(0xed)](0x32))),console['log'](_0xad71df(0x11e)+_0x1c0fdf),console[_0xad71df(0xfb)](_0xad71df(0x11c)+process['version']),console[_0xad71df(0xfb)](_0xad71df(0x122)+process['platform']+'\x20'+process[_0xad71df(0xe4)]),console[_0xad71df(0xfb)](),console[_0xad71df(0xfb)](a92_0x164122[_0xad71df(0xe2)](_0xad71df(0x118))),console[_0xad71df(0xfb)](a92_0x164122[_0xad71df(0x11b)](_0xad71df(0xe0)[_0xad71df(0xed)](0x1e)));const _0x318cf3=getGlobalConfigPath(),_0x16cb0f=getProjectConfigPath();console[_0xad71df(0xfb)](_0xad71df(0x124)+(_0x318cf3||a92_0x164122[_0xad71df(0x11b)]('(not\x20found)'))),console['log'](_0xad71df(0x10f)+(_0x16cb0f||a92_0x164122[_0xad71df(0x11b)](_0xad71df(0x113)))),console[_0xad71df(0xfb)](),console[_0xad71df(0xfb)](a92_0x164122[_0xad71df(0xe2)](_0xad71df(0xfa))),console[_0xad71df(0xfb)](a92_0x164122[_0xad71df(0x11b)]('\x20\x20─'[_0xad71df(0xed)](0x1e)));const _0x237d7c=(_0x5aeb39,_0xe346bc)=>{const _0x4a812d=_0xad71df;if(!_0xe346bc){console[_0x4a812d(0xfb)]('\x20\x20'+_0x5aeb39[_0x4a812d(0x100)](0x11)+'\x20'+a92_0x164122[_0x4a812d(0x11b)]('(no\x20file)'));return;}const _0x4784e2=inspectCliConfigJsonFile(_0xe346bc);if(_0x4784e2['status']==='ok')console[_0x4a812d(0xfb)]('\x20\x20'+_0x5aeb39['padEnd'](0x11)+'\x20'+a92_0x164122[_0x4a812d(0x109)]('✓\x20Valid\x20JSON'));else{if(_0x4784e2[_0x4a812d(0x102)]===_0x4a812d(0xf8))console[_0x4a812d(0xfb)]('\x20\x20'+_0x5aeb39['padEnd'](0x11)+'\x20'+a92_0x164122[_0x4a812d(0x125)](_0x4a812d(0xea)));else _0x4784e2['status']===_0x4a812d(0x121)?console['log']('\x20\x20'+_0x5aeb39[_0x4a812d(0x100)](0x11)+'\x20'+a92_0x164122[_0x4a812d(0x11b)](_0x4a812d(0x11d))):(console[_0x4a812d(0xfb)]('\x20\x20'+_0x5aeb39[_0x4a812d(0x100)](0x11)+'\x20'+a92_0x164122[_0x4a812d(0x10e)]('✗\x20Invalid\x20JSON')),console[_0x4a812d(0xfb)]('\x20\x20'+''[_0x4a812d(0x100)](0x11)+'\x20'+a92_0x164122[_0x4a812d(0x10e)](_0x4784e2[_0x4a812d(0xf9)])));}};_0x237d7c(_0xad71df(0x115),_0x318cf3),_0x237d7c(_0xad71df(0x107),_0x16cb0f),console['log'](),console['log'](a92_0x164122[_0xad71df(0xe2)](_0xad71df(0xee))),console[_0xad71df(0xfb)](a92_0x164122[_0xad71df(0x11b)](_0xad71df(0xe0)[_0xad71df(0xed)](0x1e))),console[_0xad71df(0xfb)](_0xad71df(0xff)+(_0x4c56c5[_0xad71df(0x103)]||a92_0x164122['red']('(not\x20set)'))),console[_0xad71df(0xfb)](_0xad71df(0xf6)+_0x4c56c5[_0xad71df(0xdd)]),console[_0xad71df(0xfb)](_0xad71df(0xeb)+_0x4c56c5[_0xad71df(0x10c)]),console[_0xad71df(0xfb)](_0xad71df(0x128)+_0x4c56c5[_0xad71df(0x110)]),console[_0xad71df(0xfb)](_0xad71df(0x101)+(_0x4c56c5[_0xad71df(0x10d)]||a92_0x164122[_0xad71df(0x11b)]('(none)'))),console[_0xad71df(0xfb)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4c56c5[_0xad71df(0x111)]||a92_0x164122['gray'](_0xad71df(0xf0)))),console[_0xad71df(0xfb)]('\x20\x20explicitAppName:\x20'+(_0x4c56c5['explicitAppName']||a92_0x164122['gray']('(none)'))),console[_0xad71df(0xfb)](_0xad71df(0x108)+(_0x4c56c5[_0xad71df(0x104)]||a92_0x164122[_0xad71df(0x11b)](_0xad71df(0x117)+DEFAULT_CONFIG_VALUES[_0xad71df(0x104)]+')'))),console[_0xad71df(0xfb)](_0xad71df(0xde)+(_0x4c56c5['pageSize']??a92_0x164122[_0xad71df(0x11b)](_0xad71df(0xdf)))),console[_0xad71df(0xfb)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x4c56c5[_0xad71df(0xf3)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4c56c5[_0xad71df(0xfc)]),console[_0xad71df(0xfb)](_0xad71df(0x114)+(_0x4c56c5[_0xad71df(0x11f)]?a92_0x164122[_0xad71df(0x109)](_0xad71df(0xec)+_0x4c56c5[_0xad71df(0x11f)][_0xad71df(0x116)]+')'):_0xccbc41?a92_0x164122[_0xad71df(0x109)](_0xad71df(0xe7)+_0xccbc41['length']+')'):a92_0x164122[_0xad71df(0x11b)](_0xad71df(0xf0))));const _0x2e096c=Object[_0xad71df(0xef)](_0x4c56c5['apps']);if(_0x2e096c['length']>0x0){console[_0xad71df(0xfb)](),console[_0xad71df(0xfb)](a92_0x164122['bold'](_0xad71df(0xdc))),console[_0xad71df(0xfb)](a92_0x164122['gray'](_0xad71df(0xe0)[_0xad71df(0xed)](0x1e)));for(const _0x58eebd of _0x2e096c){const _0x27cfe0=_0x4c56c5['apps'][_0x58eebd],_0x1bcbb0=_0x58eebd===_0x4c56c5[_0xad71df(0x10d)],_0x225c05=_0x58eebd===_0x4c56c5[_0xad71df(0x111)],_0x5e730e=_0x225c05?a92_0x164122['green']('\x20←\x20current'):'',_0x171456=_0x1bcbb0?_0xad71df(0x123):'';console[_0xad71df(0xfb)]('\x20\x20'+_0x58eebd+_0x171456+_0x5e730e),console[_0xad71df(0xfb)](_0xad71df(0xe1)+_0x27cfe0['appcode']);const _0x5a483d=buildAppDoctorFields(_0x27cfe0,{'env':_0x4c56c5[_0xad71df(0xdd)],'apiDir':_0x4c56c5['raw'][_0xad71df(0x110)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x4c56c5[_0xad71df(0x11f)]||_0xccbc41||undefined,'accessKey':_0x4c56c5[_0xad71df(0x10a)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5a483d['env'][_0xad71df(0xfd)]+'\x20\x20'+a92_0x164122[_0xad71df(0x11b)]('('+_0x5a483d['env']['source']+')')),console[_0xad71df(0xfb)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x5a483d[_0xad71df(0x110)][_0xad71df(0xfd)]+'\x20\x20'+a92_0x164122[_0xad71df(0x11b)]('('+_0x5a483d[_0xad71df(0x110)]['source']+')'));const _0x407118=_0x5a483d[_0xad71df(0x11f)]['value']?a92_0x164122[_0xad71df(0x109)](_0xad71df(0xec)+_0x5a483d[_0xad71df(0x11f)][_0xad71df(0xfd)][_0xad71df(0x116)]+')'):a92_0x164122['gray'](_0xad71df(0xf0));console[_0xad71df(0xfb)](_0xad71df(0x127)+_0x407118+'\x20\x20'+a92_0x164122[_0xad71df(0x11b)]('('+_0x5a483d['cookie']['source']+')'));const _0x1a9a37=_0x5a483d[_0xad71df(0x10a)][_0xad71df(0xfd)]?a92_0x164122[_0xad71df(0x109)]('(set,\x20length='+_0x5a483d[_0xad71df(0x10a)][_0xad71df(0xfd)][_0xad71df(0x116)]+')'):a92_0x164122[_0xad71df(0x11b)]('(none)');console[_0xad71df(0xfb)](_0xad71df(0x11a)+_0x1a9a37+'\x20\x20'+a92_0x164122['gray']('('+_0x5a483d[_0xad71df(0x10a)]['source']+')'));}}console[_0xad71df(0xfb)](),console[_0xad71df(0xfb)](a92_0x164122['bold'](_0xad71df(0xe9))),console[_0xad71df(0xfb)](a92_0x164122['gray']('\x20\x20─'[_0xad71df(0xed)](0x1e))),console[_0xad71df(0xfb)](_0xad71df(0xe3)+getApiDomain()),console['log'](_0xad71df(0xfe)+getUserDomain()),console[_0xad71df(0xfb)](_0xad71df(0x112)+getRuntimeDomain()),console[_0xad71df(0xfb)](),console[_0xad71df(0xfb)](a92_0x164122['bold'](_0xad71df(0xf7))),console[_0xad71df(0xfb)](a92_0x164122['gray'](_0xad71df(0xe0)[_0xad71df(0xed)](0x1e)));if(_0xccbc41){const _0x188bb3=await getIsSessionValid();console[_0xad71df(0xfb)](_0xad71df(0xe6)+(_0x188bb3?a92_0x164122['green'](_0xad71df(0xf2)):a92_0x164122[_0xad71df(0x10e)]('✗\x20Expired')));}else console['log'](_0xad71df(0xe6)+a92_0x164122[_0xad71df(0x10e)](_0xad71df(0x10b)));return console[_0xad71df(0xfb)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a92_0x48c6a0(0xdb),'description':a92_0x48c6a0(0xda),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a92_0x368278=a92_0x48d9;(function(_0x2f8423,_0x469bee){const _0x266459=a92_0x48d9,_0x280bd9=_0x2f8423();while(!![]){try{const _0x372474=-parseInt(_0x266459(0x15e))/0x1+parseInt(_0x266459(0x190))/0x2*(parseInt(_0x266459(0x15f))/0x3)+parseInt(_0x266459(0x177))/0x4+-parseInt(_0x266459(0x16e))/0x5+parseInt(_0x266459(0x15d))/0x6+-parseInt(_0x266459(0x193))/0x7+-parseInt(_0x266459(0x19d))/0x8*(-parseInt(_0x266459(0x167))/0x9);if(_0x372474===_0x469bee)break;else _0x280bd9['push'](_0x280bd9['shift']());}catch(_0x511b7e){_0x280bd9['push'](_0x280bd9['shift']());}}}(a92_0xa134,0xa7cfc));import a92_0x237fe from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a92_0x48d9(_0x1f6d54,_0x3cb363){_0x1f6d54=_0x1f6d54-0x14d;const _0xa13496=a92_0xa134();let _0x48d9af=_0xa13496[_0x1f6d54];return _0x48d9af;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a92_0xa134(){const _0x32c40e=['Project','status','147620vBRZHZ','(set,\x20length=','raw','appcode','padEnd','\x20\x20explicitAppName:\x20','(missing)','gray','repeat','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','defaultApp','⚠\x20Empty\x20(treated\x20as\x20{})','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','(default)','✓\x20Valid','(not\x20set)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','yellow','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Apps','2yuFlxh','keys','green','3487351eaOYIu','riskLevel','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','apps','✗\x20Expired','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','392UDgraH','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','format','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20─','arch','\x20\x20Config\x20Files','source','platform','value','\x20\x20Merged\x20Config','(not\x20found)','slice','doctor','\x20\x20Auth','appCode','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','✓\x20Valid\x20JSON','(none)','(no\x20file)','currentApp','4657530WglMID','788239GUUWKC','603IRdswq','cookie','check','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','unknown','bold','missing','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','424935iAMyPC','apiDir','log','red','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','length','5765540xxXpdH','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','\x20doctor','\x20\x20\x20\x20accessKey:\x20\x20','verbose','locale'];a92_0xa134=function(){return _0x32c40e;};return a92_0xa134();}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(_0x3382b0){const _0x523e42=a92_0x48d9,_0x42c2af=GIT_COMMIT!==_0x523e42(0x163)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x523e42(0x153)](0x0,0xa)+')':VERSION,_0x428c9f=buildConfigFromFlags({}),_0x459a37=getCookie();console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe['bold'](CLI_BIN_NAME+_0x523e42(0x171))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)]('─'[_0x523e42(0x17f)](0x32))),console[_0x523e42(0x169)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x42c2af),console['log'](_0x523e42(0x19b)+process['version']),console['log'](_0x523e42(0x16b)+process[_0x523e42(0x14f)]+'\x20'+process[_0x523e42(0x1a3)]),console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x14d))),console['log'](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e)));const _0x1a43b4=getGlobalConfigPath(),_0x91c617=getProjectConfigPath();console[_0x523e42(0x169)](_0x523e42(0x166)+(_0x1a43b4||a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x152)))),console[_0x523e42(0x169)](_0x523e42(0x186)+(_0x91c617||a92_0x237fe['gray']('(not\x20found)'))),console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x19f))),console['log'](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e)));const _0x5a1cc7=(_0x2703e3,_0x16624c)=>{const _0x365398=_0x523e42;if(!_0x16624c){console[_0x365398(0x169)]('\x20\x20'+_0x2703e3['padEnd'](0x11)+'\x20'+a92_0x237fe['gray'](_0x365398(0x15b)));return;}const _0x2dcd62=inspectCliConfigJsonFile(_0x16624c);if(_0x2dcd62[_0x365398(0x176)]==='ok')console[_0x365398(0x169)]('\x20\x20'+_0x2703e3[_0x365398(0x17b)](0x11)+'\x20'+a92_0x237fe['green'](_0x365398(0x159)));else{if(_0x2dcd62[_0x365398(0x176)]==='empty')console['log']('\x20\x20'+_0x2703e3[_0x365398(0x17b)](0x11)+'\x20'+a92_0x237fe[_0x365398(0x18c)](_0x365398(0x184)));else _0x2dcd62['status']===_0x365398(0x165)?console['log']('\x20\x20'+_0x2703e3[_0x365398(0x17b)](0x11)+'\x20'+a92_0x237fe[_0x365398(0x17e)](_0x365398(0x17d))):(console[_0x365398(0x169)]('\x20\x20'+_0x2703e3['padEnd'](0x11)+'\x20'+a92_0x237fe[_0x365398(0x16a)]('✗\x20Invalid\x20JSON')),console[_0x365398(0x169)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a92_0x237fe[_0x365398(0x16a)](_0x2dcd62['message'])));}};_0x5a1cc7('Global',_0x1a43b4),_0x5a1cc7(_0x523e42(0x175),_0x91c617),console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe['bold'](_0x523e42(0x151))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e))),console[_0x523e42(0x169)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x428c9f[_0x523e42(0x156)]||a92_0x237fe['red'](_0x523e42(0x18a)))),console[_0x523e42(0x169)](_0x523e42(0x181)+_0x428c9f[_0x523e42(0x19c)]),console[_0x523e42(0x169)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x428c9f[_0x523e42(0x174)]),console[_0x523e42(0x169)](_0x523e42(0x180)+_0x428c9f['apiDir']),console[_0x523e42(0x169)](_0x523e42(0x18e)+(_0x428c9f[_0x523e42(0x183)]||a92_0x237fe[_0x523e42(0x17e)]('(none)'))),console[_0x523e42(0x169)](_0x523e42(0x182)+(_0x428c9f['currentApp']||a92_0x237fe[_0x523e42(0x17e)]('(none)'))),console[_0x523e42(0x169)](_0x523e42(0x17c)+(_0x428c9f['explicitAppName']||a92_0x237fe[_0x523e42(0x17e)]('(none)'))),console[_0x523e42(0x169)](_0x523e42(0x19e)+(_0x428c9f[_0x523e42(0x1a0)]||a92_0x237fe['gray'](_0x523e42(0x16c)+DEFAULT_CONFIG_VALUES[_0x523e42(0x1a0)]+')'))),console[_0x523e42(0x169)](_0x523e42(0x162)+(_0x428c9f['pageSize']??a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x188)))),console[_0x523e42(0x169)](_0x523e42(0x199)+_0x428c9f[_0x523e42(0x194)]),console['log'](_0x523e42(0x195)+_0x428c9f[_0x523e42(0x173)]),console['log'](_0x523e42(0x16f)+(_0x428c9f[_0x523e42(0x160)]?a92_0x237fe[_0x523e42(0x192)]('(set,\x20length='+_0x428c9f['cookie'][_0x523e42(0x16d)]+')'):_0x459a37?a92_0x237fe[_0x523e42(0x192)](_0x523e42(0x187)+_0x459a37['length']+')'):a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x15a))));const _0x3a3ebc=Object[_0x523e42(0x191)](_0x428c9f[_0x523e42(0x197)]);if(_0x3a3ebc[_0x523e42(0x16d)]>0x0){console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x18f))),console['log'](a92_0x237fe['gray'](_0x523e42(0x1a2)['repeat'](0x1e)));for(const _0x2d6b9e of _0x3a3ebc){const _0x17f4b6=_0x428c9f['apps'][_0x2d6b9e],_0x1d4c41=_0x2d6b9e===_0x428c9f[_0x523e42(0x183)],_0xb8888=_0x2d6b9e===_0x428c9f[_0x523e42(0x15c)],_0x1dba06=_0xb8888?a92_0x237fe[_0x523e42(0x192)]('\x20←\x20current'):'',_0x442d92=_0x1d4c41?'\x20(default)':'';console['log']('\x20\x20'+_0x2d6b9e+_0x442d92+_0x1dba06),console['log'](_0x523e42(0x18b)+_0x17f4b6[_0x523e42(0x17a)]);const _0x547031=buildAppDoctorFields(_0x17f4b6,{'env':_0x428c9f[_0x523e42(0x19c)],'apiDir':_0x428c9f[_0x523e42(0x179)][_0x523e42(0x168)]||DEFAULT_CONFIG_VALUES[_0x523e42(0x168)],'cookie':_0x428c9f['cookie']||_0x459a37||undefined,'accessKey':_0x428c9f[_0x523e42(0x196)]});console[_0x523e42(0x169)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x547031[_0x523e42(0x19c)][_0x523e42(0x150)]+'\x20\x20'+a92_0x237fe[_0x523e42(0x17e)]('('+_0x547031['env'][_0x523e42(0x14e)]+')')),console['log'](_0x523e42(0x19a)+_0x547031['apiDir'][_0x523e42(0x150)]+'\x20\x20'+a92_0x237fe['gray']('('+_0x547031[_0x523e42(0x168)][_0x523e42(0x14e)]+')'));const _0x14bd13=_0x547031[_0x523e42(0x160)][_0x523e42(0x150)]?a92_0x237fe['green'](_0x523e42(0x178)+_0x547031[_0x523e42(0x160)][_0x523e42(0x150)][_0x523e42(0x16d)]+')'):a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x15a));console[_0x523e42(0x169)](_0x523e42(0x18d)+_0x14bd13+'\x20\x20'+a92_0x237fe[_0x523e42(0x17e)]('('+_0x547031['cookie'][_0x523e42(0x14e)]+')'));const _0x1e31a7=_0x547031[_0x523e42(0x196)][_0x523e42(0x150)]?a92_0x237fe['green']('(set,\x20length='+_0x547031[_0x523e42(0x196)][_0x523e42(0x150)]['length']+')'):a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x15a));console[_0x523e42(0x169)](_0x523e42(0x172)+_0x1e31a7+'\x20\x20'+a92_0x237fe[_0x523e42(0x17e)]('('+_0x547031[_0x523e42(0x196)][_0x523e42(0x14e)]+')'));}}console['log'](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x158))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)]('\x20\x20─'[_0x523e42(0x17f)](0x1e))),console[_0x523e42(0x169)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x523e42(0x169)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x523e42(0x169)](_0x523e42(0x1a1)+getRuntimeDomain()),console[_0x523e42(0x169)](),console['log'](a92_0x237fe['bold'](_0x523e42(0x155))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e)));if(_0x459a37){const _0x13f618=await getIsSessionValid();console[_0x523e42(0x169)](_0x523e42(0x157)+(_0x13f618?a92_0x237fe['green'](_0x523e42(0x189)):a92_0x237fe['red'](_0x523e42(0x198))));}else console[_0x523e42(0x169)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x237fe[_0x523e42(0x16a)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x368278(0x154),'command':a92_0x368278(0x161),'description':a92_0x368278(0x185),'risk':a92_0x368278(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a93_0x3934c6=a93_0x25e9;function a93_0xe42d(){const _0x293a49=['POST','read','1778538WDdPnO','2484305URizzP','boolean','Preview:\x20upload\x20','file','download','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','upload','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','458939szNVYI','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','50eSGmce','229024PhihuJ','validation','str','736623yCeuNw','154RcGpuk','string','bool','appCode','\x20to\x20development\x20app\x20','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','/smartapi/common/uploadFile','write','38190qzpPHW','filePath\x20is\x20required.','path','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','filepath','long-term','trim','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','1089548KcUqEx','14tVQzWr'];a93_0xe42d=function(){return _0x293a49;};return a93_0xe42d();}(function(_0xf2da7c,_0x1586e5){const _0x12c26d=a93_0x25e9,_0x16cfb9=_0xf2da7c();while(!![]){try{const _0x4f5dcd=-parseInt(_0x12c26d(0x18f))/0x1+-parseInt(_0x12c26d(0x196))/0x2*(-parseInt(_0x12c26d(0x19e))/0x3)+-parseInt(_0x12c26d(0x1a7))/0x4+-parseInt(_0x12c26d(0x187))/0x5+parseInt(_0x12c26d(0x186))/0x6*(parseInt(_0x12c26d(0x1a8))/0x7)+-parseInt(_0x12c26d(0x192))/0x8+-parseInt(_0x12c26d(0x195))/0x9*(-parseInt(_0x12c26d(0x191))/0xa);if(_0x4f5dcd===_0x1586e5)break;else _0x16cfb9['push'](_0x16cfb9['shift']());}catch(_0x5cb1d9){_0x16cfb9['push'](_0x16cfb9['shift']());}}}(a93_0xe42d,0xb11e4));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x3934c6(0x18a),'type':a93_0x3934c6(0x197),'required':!![],'description':a93_0x3934c6(0x1a5)},FILEPATH_FLAG={'name':a93_0x3934c6(0x1a2),'type':a93_0x3934c6(0x197),'required':!![],'description':a93_0x3934c6(0x190)},DOWNLOAD_FLAG={'name':'download','type':a93_0x3934c6(0x188),'description':a93_0x3934c6(0x1a6)},LONG_TERM_FLAG={'name':a93_0x3934c6(0x1a3),'type':a93_0x3934c6(0x188),'description':a93_0x3934c6(0x18e)};function requireFilePath(_0x2a30c9){const _0x229951=a93_0x3934c6,_0x256115=_0x2a30c9[_0x229951(0x1a4)]();if(!_0x256115)throw CliErrors[_0x229951(0x193)](_0x229951(0x19f));return _0x256115;}function a93_0x25e9(_0x5101da,_0x5a11ee){_0x5101da=_0x5101da-0x184;const _0xe42d70=a93_0xe42d();let _0x25e923=_0xe42d70[_0x5101da];return _0x25e923;}const fileUpload={'service':a93_0x3934c6(0x18a),'command':a93_0x3934c6(0x18d),'description':a93_0x3934c6(0x1a1),'risk':a93_0x3934c6(0x19d),'flags':[FILE_FLAG],async 'dryRun'(_0x30a34e){const _0x2261e5=a93_0x3934c6,_0x41082e=requireDevelopmentUploadFile(_0x30a34e[_0x2261e5(0x194)]('file'),'File');return{'method':_0x2261e5(0x184),'url':_0x2261e5(0x19c),'body':{'appCode':_0x30a34e[_0x2261e5(0x199)],'multipart':{'file':_0x41082e}},'description':_0x2261e5(0x189)+_0x41082e[_0x2261e5(0x1a0)]+_0x2261e5(0x19a)+_0x30a34e['appCode']};},async 'execute'(_0x47b34b){const _0x3ea9b2=a93_0x3934c6,_0x3f5cef=requireDevelopmentUploadFile(_0x47b34b['str']('file'),'File'),_0x5b9e04=await uploadDevelopmentFile(_0x47b34b[_0x3ea9b2(0x199)],_0x3f5cef[_0x3ea9b2(0x1a0)]);return{'ok':!![],'data':_0x5b9e04,'message':_0x5b9e04['filePath']?'Uploaded\x20file:\x20'+_0x5b9e04['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x3ea9b2(0x19b)};}},fileQueryUrl={'service':'file','command':'query-url','description':a93_0x3934c6(0x18c),'risk':a93_0x3934c6(0x185),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x24c4d7){const _0x5c2c91=a93_0x3934c6,_0x1e676f=requireFilePath(_0x24c4d7[_0x5c2c91(0x194)](_0x5c2c91(0x1a2))),_0x5e3e00=await queryDevelopmentFileUrl(_0x1e676f,{'download':_0x24c4d7[_0x5c2c91(0x198)](_0x5c2c91(0x18b)),'longTerm':_0x24c4d7['bool']('long-term')});return{'ok':!![],'data':_0x5e3e00};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a93_0xaa3807=a93_0x193f;function a93_0x193f(_0x23af56,_0x389a02){_0x23af56=_0x23af56-0x87;const _0x4b5038=a93_0x4b50();let _0x193f7f=_0x4b5038[_0x23af56];return _0x193f7f;}function a93_0x4b50(){const _0x30143c=['8dpGYBQ','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','1QgYMcg','path','appCode','POST','211555eRlCDG','boolean','str','\x20to\x20development\x20app\x20','7074326FuzjPQ','string','10687664eucStA','download','Path\x20to\x20the\x20local\x20file\x20to\x20upload','long-term','upload','Uploaded\x20file:\x20','File','174666VHshgL','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','/smartapi/common/uploadFile','read','bool','22681760kXkTfd','filepath','filePath\x20is\x20required.','276bsUPdY','17517186xpCzTG','validation','filePath','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','trim','file','Preview:\x20upload\x20','263157axebWN','write','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'];a93_0x4b50=function(){return _0x30143c;};return a93_0x4b50();}(function(_0x56515a,_0x3de8a4){const _0x52f01e=a93_0x193f,_0x292b34=_0x56515a();while(!![]){try{const _0x4b22aa=parseInt(_0x52f01e(0x9b))/0x1*(parseInt(_0x52f01e(0xac))/0x2)+parseInt(_0x52f01e(0x96))/0x3*(parseInt(_0x52f01e(0x99))/0x4)+parseInt(_0x52f01e(0x9f))/0x5*(-parseInt(_0x52f01e(0x8e))/0x6)+parseInt(_0x52f01e(0xa3))/0x7+parseInt(_0x52f01e(0xa5))/0x8+-parseInt(_0x52f01e(0x8f))/0x9+parseInt(_0x52f01e(0x8b))/0xa;if(_0x4b22aa===_0x3de8a4)break;else _0x292b34['push'](_0x292b34['shift']());}catch(_0x2a6aa9){_0x292b34['push'](_0x292b34['shift']());}}}(a93_0x4b50,0xf071f));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0xaa3807(0x94),'type':a93_0xaa3807(0xa4),'required':!![],'description':a93_0xaa3807(0xa7)},FILEPATH_FLAG={'name':a93_0xaa3807(0x8c),'type':a93_0xaa3807(0xa4),'required':!![],'description':a93_0xaa3807(0x9a)},DOWNLOAD_FLAG={'name':a93_0xaa3807(0xa6),'type':a93_0xaa3807(0xa0),'description':a93_0xaa3807(0x98)},LONG_TERM_FLAG={'name':'long-term','type':a93_0xaa3807(0xa0),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x50382c){const _0x377e31=a93_0xaa3807,_0x5bf520=_0x50382c[_0x377e31(0x93)]();if(!_0x5bf520)throw CliErrors[_0x377e31(0x90)](_0x377e31(0x8d));return _0x5bf520;}const fileUpload={'service':'file','command':a93_0xaa3807(0xa9),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a93_0xaa3807(0x97),'flags':[FILE_FLAG],async 'dryRun'(_0x42e763){const _0x1d0cf8=a93_0xaa3807,_0x100ced=requireDevelopmentUploadFile(_0x42e763[_0x1d0cf8(0xa1)](_0x1d0cf8(0x94)),'File');return{'method':_0x1d0cf8(0x9e),'url':_0x1d0cf8(0x88),'body':{'appCode':_0x42e763['appCode'],'multipart':{'file':_0x100ced}},'description':_0x1d0cf8(0x95)+_0x100ced[_0x1d0cf8(0x9c)]+_0x1d0cf8(0xa2)+_0x42e763[_0x1d0cf8(0x9d)]};},async 'execute'(_0x374c80){const _0x47965d=a93_0xaa3807,_0x475800=requireDevelopmentUploadFile(_0x374c80[_0x47965d(0xa1)](_0x47965d(0x94)),_0x47965d(0xab)),_0xa4a7b9=await uploadDevelopmentFile(_0x374c80['appCode'],_0x475800['path']);return{'ok':!![],'data':_0xa4a7b9,'message':_0xa4a7b9[_0x47965d(0x91)]?_0x47965d(0xaa)+_0xa4a7b9[_0x47965d(0x91)]+_0x47965d(0x87):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a93_0xaa3807(0x94),'command':'query-url','description':a93_0xaa3807(0x92),'risk':a93_0xaa3807(0x89),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x26a664){const _0x29cb68=a93_0xaa3807,_0x445e83=requireFilePath(_0x26a664['str'](_0x29cb68(0x8c))),_0x2e8a59=await queryDevelopmentFileUrl(_0x445e83,{'download':_0x26a664[_0x29cb68(0x8a)](_0x29cb68(0xa6)),'longTerm':_0x26a664[_0x29cb68(0x8a)](_0x29cb68(0xa8))});return{'ok':!![],'data':_0x2e8a59};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a94_0x5543c3=a94_0x3e0a;(function(_0x3fcc8e,_0x6c7ed2){const _0x56e845=a94_0x3e0a,_0x191861=_0x3fcc8e();while(!![]){try{const _0x3e4903=-parseInt(_0x56e845(0x213))/0x1*(-parseInt(_0x56e845(0x212))/0x2)+parseInt(_0x56e845(0x1e7))/0x3+parseInt(_0x56e845(0x1eb))/0x4*(parseInt(_0x56e845(0x1ff))/0x5)+-parseInt(_0x56e845(0x1e2))/0x6*(parseInt(_0x56e845(0x20e))/0x7)+-parseInt(_0x56e845(0x208))/0x8+-parseInt(_0x56e845(0x1e6))/0x9*(-parseInt(_0x56e845(0x1fb))/0xa)+parseInt(_0x56e845(0x1ef))/0xb*(parseInt(_0x56e845(0x1fd))/0xc);if(_0x3e4903===_0x6c7ed2)break;else _0x191861['push'](_0x191861['shift']());}catch(_0x51a92d){_0x191861['push'](_0x191861['shift']());}}}(a94_0x389a,0x88273));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a94_0x389a(){const _0x5eaadb=['.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','appcode','env','str','\x0a✓\x20Successfully\x20initialized\x20','boolean','Target\x20environment','5874528hmDhCM','write','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20\x20Default:\x20','valid','production','23499CsbFaA','检测到旧配置文件,正在自动升级...\x0a','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','toLocaleString','44UWGuKL','11124rMSKCx','string','../../commands/project/init.js','map','Write\x20to\x20global\x20config\x20instead\x20of\x20project','18cZgoPx','flagMissing','init','custom','3262131Stlwwz','119634UNInWP','Use\x20`','appCode','log','36jSjRsY','join','some','yes','2053469RhAtUj','\x20\x20Config:\x20','App\x20code\x20to\x20initialize\x20with','nonInteractive','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','global','run','\x20\x20Apps:\x20','project','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','defaultApp','bool','20ybVKHm','\x20\x20Env:\x20','12ONSljW','validation','58815YxZnYd','\x20config'];a94_0x389a=function(){return _0x5eaadb;};return a94_0x389a();}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_0x3e0a(_0xc5a99b,_0xf9270b){_0xc5a99b=_0xc5a99b-0x1de;const _0x389a9c=a94_0x389a();let _0x3e0a84=_0x389a9c[_0xc5a99b];return _0x3e0a84;}import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0xe7b99f){return{'appCode':_0xe7b99f,'appName':_0xe7b99f};}function writeInitConfig(_0x3a43c3,_0x50f9b2,_0x11d7fa){const _0x3060ac=a94_0x3e0a,_0x1f5478=resolveWriteConfigPath(_0x3a43c3),_0x440886=buildCanonicalProjectConfig({},{'appCodes':_0x50f9b2['map'](_0x121d36=>_0x121d36[_0x3060ac(0x1e9)]),'env':_0x11d7fa,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3060ac(0x211)]()}});writeConfigFile(_0x1f5478,_0x440886);const _0x5eb527=_0x3a43c3===_0x3060ac(0x1f4)?_0x3060ac(0x1f4):_0x3060ac(0x1f7);console[_0x3060ac(0x1ea)](_0x3060ac(0x205)+_0x5eb527+_0x3060ac(0x200)),console[_0x3060ac(0x1ea)](_0x3060ac(0x1f6)+_0x50f9b2[_0x3060ac(0x1e0)](_0x8737a3=>_0x8737a3[_0x3060ac(0x1e9)])[_0x3060ac(0x1ec)](',\x20')),console[_0x3060ac(0x1ea)](_0x3060ac(0x20b)+_0x440886[_0x3060ac(0x1f9)]),console[_0x3060ac(0x1ea)](_0x3060ac(0x1fc)+_0x440886[_0x3060ac(0x203)]),console[_0x3060ac(0x1ea)](_0x3060ac(0x1f0)+_0x1f5478);}async function runSmartInit(_0xc516f0){const _0x18f4d9=a94_0x3e0a,_0x53ba5e=process['cwd'](),_0x411f0f=_0xc516f0[_0x18f4d9(0x1fa)](_0x18f4d9(0x1f4))?_0x18f4d9(0x1f4):_0x18f4d9(0x1f7),_0x4f849c=_0xc516f0['str']('env')||'production',_0x300246=_0xc516f0[_0x18f4d9(0x204)]('appcode')||undefined,_0x37ae95=_0xc516f0['bool'](_0x18f4d9(0x1f7));if(_0x37ae95){const {initConfig:_0x1b8555}=await import(_0x18f4d9(0x1df));return _0x1b8555({'appcode':_0x300246,'env':_0x4f849c,'autoYes':_0xc516f0[_0x18f4d9(0x1fa)](_0x18f4d9(0x1ee))});}if(_0x411f0f===_0x18f4d9(0x1f7)){const _0x33d5e6=existsSync(resolve(_0x53ba5e,NEW_CONFIG_NAME)),_0x3981bc=LEGACY_CONFIG_NAMES[_0x18f4d9(0x1ed)](_0x3dd85e=>existsSync(resolve(_0x53ba5e,_0x3dd85e)));if(_0x3981bc&&!_0x33d5e6)return console[_0x18f4d9(0x1ea)](_0x18f4d9(0x20f)),upgradeApp(_0xc516f0['nonInteractive'],{'yes':_0xc516f0[_0x18f4d9(0x1fa)](_0x18f4d9(0x1ee))});if(_0x33d5e6)throw CliErrors[_0x18f4d9(0x1fe)](_0x18f4d9(0x201),_0x18f4d9(0x1e8)+CLI_BIN_NAME+_0x18f4d9(0x1f3));}if(_0x300246){const _0x47b6cb=validateAppcode(_0x300246);if(!_0x47b6cb[_0x18f4d9(0x20c)])throw CliErrors[_0x18f4d9(0x1fe)](_0x47b6cb['message']);writeInitConfig(_0x411f0f,[syntheticApp(_0x300246)],_0x4f849c);return;}if(_0xc516f0[_0x18f4d9(0x1f2)])throw CliErrors[_0x18f4d9(0x1e3)](_0x18f4d9(0x202),'Usage:\x20'+CLI_BIN_NAME+_0x18f4d9(0x210));const _0x76267=getCookie(),_0x377429=await selectMultipleApps(_0x76267),_0x197ace=_0x377429===_0x18f4d9(0x1e5)?[syntheticApp(await promptCustomAppcode())]:_0x377429;writeInitConfig(_0x411f0f,_0x197ace,_0x4f849c);}const initFlags=[{'name':a94_0x5543c3(0x1f4),'type':a94_0x5543c3(0x206),'description':a94_0x5543c3(0x1e1),'default':![]},{'name':'env','type':'string','description':a94_0x5543c3(0x207),'default':a94_0x5543c3(0x20d),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x5543c3(0x202),'type':a94_0x5543c3(0x1de),'description':a94_0x5543c3(0x1f1)},{'name':a94_0x5543c3(0x1f7),'type':'boolean','description':a94_0x5543c3(0x1f8),'default':![]},{'name':a94_0x5543c3(0x1ee),'type':a94_0x5543c3(0x206),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a94_0x5543c3(0x1e4),'command':a94_0x5543c3(0x1f5),'description':a94_0x5543c3(0x20a),'risk':a94_0x5543c3(0x209),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x42c73d){return await runSmartInit(_0x42c73d),{'ok':!![]};}}];
1
+ const a94_0x8d8aef=a94_0x4d6d;function a94_0x4d6d(_0x569d9b,_0x157e5f){_0x569d9b=_0x569d9b-0x1d8;const _0x46f76f=a94_0x46f7();let _0x4d6d30=_0x46f76f[_0x569d9b];return _0x4d6d30;}(function(_0x41a720,_0x4417d0){const _0x57f6d9=a94_0x4d6d,_0x211416=_0x41a720();while(!![]){try{const _0x583ae6=-parseInt(_0x57f6d9(0x205))/0x1*(parseInt(_0x57f6d9(0x1f9))/0x2)+parseInt(_0x57f6d9(0x1fb))/0x3*(-parseInt(_0x57f6d9(0x1e0))/0x4)+-parseInt(_0x57f6d9(0x1db))/0x5*(parseInt(_0x57f6d9(0x1ff))/0x6)+parseInt(_0x57f6d9(0x1f4))/0x7+-parseInt(_0x57f6d9(0x1de))/0x8+-parseInt(_0x57f6d9(0x1e2))/0x9*(-parseInt(_0x57f6d9(0x206))/0xa)+parseInt(_0x57f6d9(0x1f1))/0xb;if(_0x583ae6===_0x4417d0)break;else _0x211416['push'](_0x211416['shift']());}catch(_0xedd029){_0x211416['push'](_0x211416['shift']());}}}(a94_0x46f7,0xeaf3a));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function a94_0x46f7(){const _0x44e294=['init','Usage:\x20','appcode','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','\x20config','49973132atqnwC','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','validation','11243344hVzZfY','Use\x20`','boolean','valid','map','1202ffxmlG','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','740139RZgMqC','\x20\x20Default:\x20','str','production','2246682KUcSHc','bool','检测到旧配置文件,正在自动升级...\x0a','Write\x20to\x20global\x20config\x20instead\x20of\x20project','cwd','\x0a✓\x20Successfully\x20initialized\x20','2846XyxVwa','2850FzTDPk','write','appCode','\x20\x20Apps:\x20','yes','25XXIrvM','App\x20code\x20to\x20initialize\x20with','some','12563520GENwBX','toLocaleString','8TrdvQA','nonInteractive','14517kDAXhC','env','defaultApp','global','string','log','join','../../commands/project/init.js','project','message'];a94_0x46f7=function(){return _0x44e294;};return a94_0x46f7();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x50e912){return{'appCode':_0x50e912,'appName':_0x50e912};}function writeInitConfig(_0x1ec267,_0x3881da,_0x10a1d5){const _0x927fcd=a94_0x4d6d,_0x2c33c=resolveWriteConfigPath(_0x1ec267),_0x3b82c2=buildCanonicalProjectConfig({},{'appCodes':_0x3881da['map'](_0x4e3dce=>_0x4e3dce[_0x927fcd(0x1d8)]),'env':_0x10a1d5,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x927fcd(0x1df)]()}});writeConfigFile(_0x2c33c,_0x3b82c2);const _0x3c1976=_0x1ec267==='global'?_0x927fcd(0x1e5):_0x927fcd(0x1ea);console[_0x927fcd(0x1e7)](_0x927fcd(0x204)+_0x3c1976+_0x927fcd(0x1f0)),console[_0x927fcd(0x1e7)](_0x927fcd(0x1d9)+_0x3881da[_0x927fcd(0x1f8)](_0x144c23=>_0x144c23[_0x927fcd(0x1d8)])[_0x927fcd(0x1e8)](',\x20')),console[_0x927fcd(0x1e7)](_0x927fcd(0x1fc)+_0x3b82c2[_0x927fcd(0x1e4)]),console[_0x927fcd(0x1e7)]('\x20\x20Env:\x20'+_0x3b82c2['env']),console['log']('\x20\x20Config:\x20'+_0x2c33c);}async function runSmartInit(_0x573252){const _0x1b1d44=a94_0x4d6d,_0x83bb4f=process[_0x1b1d44(0x203)](),_0x216b29=_0x573252['bool'](_0x1b1d44(0x1e5))?_0x1b1d44(0x1e5):_0x1b1d44(0x1ea),_0x28f8be=_0x573252[_0x1b1d44(0x1fd)](_0x1b1d44(0x1e3))||_0x1b1d44(0x1fe),_0x257b40=_0x573252[_0x1b1d44(0x1fd)](_0x1b1d44(0x1ee))||undefined,_0x154c2c=_0x573252[_0x1b1d44(0x200)](_0x1b1d44(0x1ea));if(_0x154c2c){const {initConfig:_0x222895}=await import(_0x1b1d44(0x1e9));return _0x222895({'appcode':_0x257b40,'env':_0x28f8be,'autoYes':_0x573252['bool'](_0x1b1d44(0x1da))});}if(_0x216b29===_0x1b1d44(0x1ea)){const _0x4e92c8=existsSync(resolve(_0x83bb4f,NEW_CONFIG_NAME)),_0x5587a1=LEGACY_CONFIG_NAMES[_0x1b1d44(0x1dd)](_0x14e449=>existsSync(resolve(_0x83bb4f,_0x14e449)));if(_0x5587a1&&!_0x4e92c8)return console[_0x1b1d44(0x1e7)](_0x1b1d44(0x201)),upgradeApp(_0x573252['nonInteractive'],{'yes':_0x573252[_0x1b1d44(0x200)](_0x1b1d44(0x1da))});if(_0x4e92c8)throw CliErrors[_0x1b1d44(0x1f3)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x1b1d44(0x1f5)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x257b40){const _0x3cf5b2=validateAppcode(_0x257b40);if(!_0x3cf5b2[_0x1b1d44(0x1f7)])throw CliErrors[_0x1b1d44(0x1f3)](_0x3cf5b2[_0x1b1d44(0x1eb)]);writeInitConfig(_0x216b29,[syntheticApp(_0x257b40)],_0x28f8be);return;}if(_0x573252[_0x1b1d44(0x1e1)])throw CliErrors['flagMissing'](_0x1b1d44(0x1ee),_0x1b1d44(0x1ed)+CLI_BIN_NAME+_0x1b1d44(0x1ef));const _0x203202=getCookie(),_0xb0af8f=await selectMultipleApps(_0x203202),_0x7d73d6=_0xb0af8f==='custom'?[syntheticApp(await promptCustomAppcode())]:_0xb0af8f;writeInitConfig(_0x216b29,_0x7d73d6,_0x28f8be);}const initFlags=[{'name':'global','type':'boolean','description':a94_0x8d8aef(0x202),'default':![]},{'name':a94_0x8d8aef(0x1e3),'type':a94_0x8d8aef(0x1e6),'description':'Target\x20environment','default':a94_0x8d8aef(0x1fe),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x8d8aef(0x1ee),'type':'string','description':a94_0x8d8aef(0x1dc)},{'name':'project','type':a94_0x8d8aef(0x1f6),'description':a94_0x8d8aef(0x1f2),'default':![]},{'name':a94_0x8d8aef(0x1da),'type':a94_0x8d8aef(0x1f6),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a94_0x8d8aef(0x1ec),'command':'run','description':a94_0x8d8aef(0x1fa),'risk':a94_0x8d8aef(0x207),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x96e9d9){return await runSmartInit(_0x96e9d9),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a95_0x37dc(_0x36f2af,_0x168e30){_0x36f2af=_0x36f2af-0x114;const _0x1b842b=a95_0x1b84();let _0x37dc74=_0x1b842b[_0x36f2af];return _0x37dc74;}(function(_0x54240c,_0x5a6d91){const _0x1f429b=a95_0x37dc,_0x356ccd=_0x54240c();while(!![]){try{const _0x10f09e=parseInt(_0x1f429b(0x114))/0x1+parseInt(_0x1f429b(0x115))/0x2+-parseInt(_0x1f429b(0x119))/0x3+-parseInt(_0x1f429b(0x117))/0x4+parseInt(_0x1f429b(0x11c))/0x5+-parseInt(_0x1f429b(0x11b))/0x6*(parseInt(_0x1f429b(0x116))/0x7)+-parseInt(_0x1f429b(0x11a))/0x8*(parseInt(_0x1f429b(0x118))/0x9);if(_0x10f09e===_0x5a6d91)break;else _0x356ccd['push'](_0x356ccd['shift']());}catch(_0xa51f13){_0x356ccd['push'](_0x356ccd['shift']());}}}(a95_0x1b84,0x985ac));function a95_0x1b84(){const _0x495ea1=['18508kogPhL','650583zWDWJg','1598049aKbZQS','64MzYxMG','6gipxfi','3688620tNcPuv','298219NWkKOL','1772878LcgCCu','1279124LgANvk'];a95_0x1b84=function(){return _0x495ea1;};return a95_0x1b84();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x4020a4,_0x127963){const _0x1e6ab7=a95_0xdd12,_0x2024f4=_0x4020a4();while(!![]){try{const _0x9c4f33=parseInt(_0x1e6ab7(0x80))/0x1*(-parseInt(_0x1e6ab7(0x83))/0x2)+parseInt(_0x1e6ab7(0x81))/0x3+parseInt(_0x1e6ab7(0x85))/0x4*(parseInt(_0x1e6ab7(0x84))/0x5)+-parseInt(_0x1e6ab7(0x7f))/0x6+-parseInt(_0x1e6ab7(0x86))/0x7+parseInt(_0x1e6ab7(0x88))/0x8*(parseInt(_0x1e6ab7(0x82))/0x9)+-parseInt(_0x1e6ab7(0x87))/0xa*(parseInt(_0x1e6ab7(0x89))/0xb);if(_0x9c4f33===_0x127963)break;else _0x2024f4['push'](_0x2024f4['shift']());}catch(_0x5136aa){_0x2024f4['push'](_0x2024f4['shift']());}}}(a95_0x5175,0xa24c0));function a95_0x5175(){const _0x524ee9=['56133kznDwI','7457580TUdjwY','109913RMlJHP','3284295Pwjjte','18jvNhjG','2nBelOM','1417405UWpErL','12RzNCrh','1817270qDzIvb','230wHQDfd','1797528PMeFnu'];a95_0x5175=function(){return _0x524ee9;};return a95_0x5175();}function a95_0xdd12(_0x225fad,_0x49aa41){_0x225fad=_0x225fad-0x7f;const _0x5175ab=a95_0x5175();let _0xdd12f2=_0x5175ab[_0x225fad];return _0xdd12f2;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- function a96_0x3e9b(_0x88e340,_0xb74485){_0x88e340=_0x88e340-0xf1;const _0xfd1332=a96_0xfd13();let _0x3e9ba7=_0xfd1332[_0x88e340];return _0x3e9ba7;}const a96_0x4f8153=a96_0x3e9b;(function(_0x4951ad,_0xfbdcd5){const _0x1e81a6=a96_0x3e9b,_0x563591=_0x4951ad();while(!![]){try{const _0x87d6a4=parseInt(_0x1e81a6(0xf1))/0x1+parseInt(_0x1e81a6(0xf7))/0x2+parseInt(_0x1e81a6(0x114))/0x3*(-parseInt(_0x1e81a6(0x110))/0x4)+-parseInt(_0x1e81a6(0xf6))/0x5*(-parseInt(_0x1e81a6(0xfd))/0x6)+-parseInt(_0x1e81a6(0x109))/0x7*(-parseInt(_0x1e81a6(0xf5))/0x8)+parseInt(_0x1e81a6(0x113))/0x9*(parseInt(_0x1e81a6(0xf9))/0xa)+-parseInt(_0x1e81a6(0xfa))/0xb*(parseInt(_0x1e81a6(0x10e))/0xc);if(_0x87d6a4===_0xfbdcd5)break;else _0x563591['push'](_0x563591['shift']());}catch(_0x140570){_0x563591['push'](_0x563591['shift']());}}}(a96_0xfd13,0x3e463));import{CliError}from'../../errors.js';function a96_0xfd13(){const _0x5725c7=['write','7ocRTFY','unknown_command','code','validation_error','message','10440XnzIWB','network_error','977996SMkUOd','replace','length','9vfvJhr','6XzFruS','has','75425OcLoHB','\x20\x20Set\x20','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','issue','3823712ZtNZBI','5UScvaD','800362HwouxI','cancelled','4124460DRLMDt','10483QrjMvB','service','auth_required','1243002sFtcHV','report','\x22\x20\x5c','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20issue\x20report\x20\x5c','join','command','\x20\x20\x20\x20--title\x20\x22','trim','config_missing','Hit\x20a\x20'];a96_0xfd13=function(){return _0x5725c7;};return a96_0xfd13();}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_0x4f8153(0xf8),a96_0x4f8153(0xfc),a96_0x4f8153(0x106),'not_in_project',a96_0x4f8153(0x10a),'flag_missing',a96_0x4f8153(0x10c),a96_0x4f8153(0x10f)]),defaultWriter=_0x4b0dd8=>{const _0x4658e4=a96_0x4f8153;process['stderr'][_0x4658e4(0x108)](_0x4b0dd8);};export function shouldNudgeForError(_0x5101f7,_0x13e411){const _0x5c3d0d=a96_0x4f8153;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x13e411[_0x5c3d0d(0xfb)]===_0x5c3d0d(0xf4)&&_0x13e411[_0x5c3d0d(0x103)]===_0x5c3d0d(0xfe))return![];if(_0x5101f7 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5c3d0d(0x115)](_0x5101f7[_0x5c3d0d(0x10b)]);return!![];}export function printIssueReportNudgeForError(_0xe3ae7f,_0x2ee0aa,_0x30a7ee=defaultWriter){if(!shouldNudgeForError(_0xe3ae7f,_0x2ee0aa))return;const _0x2e94c0=buildSuggestedTitle(_0xe3ae7f,_0x2ee0aa);_0x30a7ee(formatNudge(_0x2e94c0));}function buildSuggestedTitle(_0x55ce7f,_0x4cd6b0){const _0x2c2f5d=a96_0x4f8153,_0x2bba67=_0x55ce7f instanceof Error?_0x55ce7f[_0x2c2f5d(0x10d)]:String(_0x55ce7f),_0x38c905=_0x2bba67[_0x2c2f5d(0x111)](/[\r\n]+/g,'\x20')[_0x2c2f5d(0x111)](/\s+/g,'\x20')[_0x2c2f5d(0x105)]()['slice'](0x0,0x78)[_0x2c2f5d(0x111)](/"/g,'\x5c\x22'),_0x5c3e6f=CLI_BIN_NAME+'\x20'+_0x4cd6b0['service']+'\x20'+_0x4cd6b0['command'];return _0x38c905[_0x2c2f5d(0x112)]>0x0?_0x5c3e6f+':\x20'+_0x38c905:_0x5c3e6f;}function formatNudge(_0x38859a){const _0x2a761c=a96_0x4f8153;return['',_0x2a761c(0x107)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x2a761c(0x101),_0x2a761c(0x104)+_0x38859a+_0x2a761c(0xff),_0x2a761c(0xf3),_0x2a761c(0x100),_0x2a761c(0xf2)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x2a761c(0x102)]('\x0a');}
1
+ function a96_0x42fe(_0x5e4816,_0x40e015){_0x5e4816=_0x5e4816-0x8c;const _0xacb581=a96_0xacb5();let _0x42febe=_0xacb581[_0x5e4816];return _0x42febe;}const a96_0x473c10=a96_0x42fe;(function(_0x4bd080,_0x1d0c86){const _0x30bcb8=a96_0x42fe,_0x9e834f=_0x4bd080();while(!![]){try{const _0x5015f2=-parseInt(_0x30bcb8(0x9d))/0x1+parseInt(_0x30bcb8(0xaa))/0x2+parseInt(_0x30bcb8(0xa5))/0x3+-parseInt(_0x30bcb8(0x99))/0x4*(parseInt(_0x30bcb8(0xa0))/0x5)+parseInt(_0x30bcb8(0x97))/0x6*(-parseInt(_0x30bcb8(0x9f))/0x7)+parseInt(_0x30bcb8(0x93))/0x8+-parseInt(_0x30bcb8(0x9e))/0x9*(-parseInt(_0x30bcb8(0x95))/0xa);if(_0x5015f2===_0x1d0c86)break;else _0x9e834f['push'](_0x9e834f['shift']());}catch(_0x145784){_0x9e834f['push'](_0x9e834f['shift']());}}}(a96_0xacb5,0x57c7b));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x473c10(0xa7);function a96_0xacb5(){const _0x1685e7=['command','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','config_missing','trim','cancelled','not_in_project','write','stderr','1749808AxFGQg','service','2670nNidDE','flag_missing','177462YQkDKz','length','66396fDLryU','network_error','code','message','181065jBXfHi','23346IAfbDm','126oefeqR','35DVkpSC','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20bug?\x20Help\x20us\x20fix\x20it:','=1\x20to\x20silence\x20this\x20hint.','replace','573084SHaJKj','auth_required','RABETBASE_DISABLE_ISSUE_NUDGE','slice','validation_error','173678KqFwIG','join'];a96_0xacb5=function(){return _0x1685e7;};return a96_0xacb5();}const NUDGE_SUPPRESSED_CODES=new Set([a96_0x473c10(0x8f),a96_0x473c10(0xa6),a96_0x473c10(0x8d),a96_0x473c10(0x90),'unknown_command',a96_0x473c10(0x96),a96_0x473c10(0xa9),a96_0x473c10(0x9a)]),defaultWriter=_0x522015=>{const _0x4eaeeb=a96_0x473c10;process[_0x4eaeeb(0x92)][_0x4eaeeb(0x91)](_0x522015);};export function shouldNudgeForError(_0x4b987b,_0x2dbad4){const _0x4165f2=a96_0x473c10;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2dbad4['service']==='issue'&&_0x2dbad4[_0x4165f2(0xac)]==='report')return![];if(_0x4b987b instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x4b987b[_0x4165f2(0x9b)]);return!![];}export function printIssueReportNudgeForError(_0x11761d,_0x3f884e,_0x40ae13=defaultWriter){if(!shouldNudgeForError(_0x11761d,_0x3f884e))return;const _0x4763ac=buildSuggestedTitle(_0x11761d,_0x3f884e);_0x40ae13(formatNudge(_0x4763ac));}function buildSuggestedTitle(_0x4925d9,_0x7c6cf){const _0x4ecdfe=a96_0x473c10,_0x59be22=_0x4925d9 instanceof Error?_0x4925d9[_0x4ecdfe(0x9c)]:String(_0x4925d9),_0x740864=_0x59be22[_0x4ecdfe(0xa4)](/[\r\n]+/g,'\x20')[_0x4ecdfe(0xa4)](/\s+/g,'\x20')[_0x4ecdfe(0x8e)]()[_0x4ecdfe(0xa8)](0x0,0x78)[_0x4ecdfe(0xa4)](/"/g,'\x5c\x22'),_0x39e97b=CLI_BIN_NAME+'\x20'+_0x7c6cf[_0x4ecdfe(0x94)]+'\x20'+_0x7c6cf[_0x4ecdfe(0xac)];return _0x740864[_0x4ecdfe(0x98)]>0x0?_0x39e97b+':\x20'+_0x740864:_0x39e97b;}function formatNudge(_0x13d841){const _0x109c96=a96_0x473c10;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x109c96(0xa2),'\x20\x20'+CLI_BIN_NAME+_0x109c96(0x8c),'\x20\x20\x20\x20--title\x20\x22'+_0x13d841+'\x22\x20\x5c',_0x109c96(0xa1),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x109c96(0xad)+NUDGE_OPT_OUT_ENV+_0x109c96(0xa3),''][_0x109c96(0xab)]('\x0a');}
@@ -1 +1 @@
1
- const a97_0x461f4b=a97_0x21a7;(function(_0x4472e3,_0x27706d){const _0x31f993=a97_0x21a7,_0x28f7b9=_0x4472e3();while(!![]){try{const _0x43d4ce=parseInt(_0x31f993(0x134))/0x1+-parseInt(_0x31f993(0x122))/0x2+parseInt(_0x31f993(0x138))/0x3+-parseInt(_0x31f993(0x128))/0x4+-parseInt(_0x31f993(0x11e))/0x5*(parseInt(_0x31f993(0x120))/0x6)+parseInt(_0x31f993(0x12d))/0x7+-parseInt(_0x31f993(0x116))/0x8;if(_0x43d4ce===_0x27706d)break;else _0x28f7b9['push'](_0x28f7b9['shift']());}catch(_0xea8c03){_0x28f7b9['push'](_0x28f7b9['shift']());}}}(a97_0x37e8,0xd19b9));function a97_0x21a7(_0x4433be,_0x4c04b2){_0x4433be=_0x4433be-0x106;const _0x37e8ce=a97_0x37e8();let _0x21a7aa=_0x37e8ce[_0x4433be];return _0x21a7aa;}import{existsSync}from'node:fs';function a97_0x37e8(){const _0x1def2d=['message','issue.description_redaction_kinds','push','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','2448620uPDKGM','title','Failed\x20to\x20report\x20platform\x20issue:\x20','originalBytes','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','6414478bpjXwV','\x20bytes','truncated\x20from\x20','issue.description','filter','Issue\x20description\x20cannot\x20be\x20empty.','description-file','581366HOqrUC','utf8','descriptionSource:\x20','str','5142189XfJWdZ','apiError','issue.description_truncated','issue.description_redactions','One-line\x20issue\x20summary','trim','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','descriptionFilePath','sanitize','descriptionSource','length','join','validation','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','issue.description_original_bytes','POST','truncated:\x20original\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue','redacted\x20','File\x20not\x20found:\x20','truncated','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','5016600eNLoQU','redactionKinds','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','flagMissing','Issue\x20description\x20file\x20is\x20empty:\x20','write','redactionCount','string','1823075anJOtd','inline','12vezLOT','description','769540JooLvo','issue.title'];a97_0x37e8=function(){return _0x1def2d;};return a97_0x37e8();}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_0x461f4b(0x133);export const issueReport={'service':a97_0x461f4b(0x111),'command':'report','description':a97_0x461f4b(0x127),'risk':a97_0x461f4b(0x11b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a97_0x461f4b(0x129),'type':'string','required':!![],'description':a97_0x461f4b(0x13c)},{'name':a97_0x461f4b(0x121),'type':a97_0x461f4b(0x11d),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x461f4b(0x11d),'description':a97_0x461f4b(0x13e)}],async 'validate'(_0x5e1e32){const _0x2cfbfa=a97_0x461f4b,_0x37b2a2=_0x5e1e32[_0x2cfbfa(0x137)](_0x2cfbfa(0x129))[_0x2cfbfa(0x13d)](),_0x454c6a=_0x5e1e32[_0x2cfbfa(0x137)]('description')[_0x2cfbfa(0x13d)](),_0x44f6f2=_0x5e1e32[_0x2cfbfa(0x137)](DESCRIPTION_FILE_FLAG)[_0x2cfbfa(0x13d)]();if(!_0x37b2a2)throw CliErrors[_0x2cfbfa(0x119)](_0x2cfbfa(0x129),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x29bc00=_0x454c6a['length']>0x0,_0x3714fe=_0x44f6f2[_0x2cfbfa(0x109)]>0x0;if(_0x29bc00===_0x3714fe)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x2cfbfa(0x110));if(_0x3714fe){const _0x245505=resolve(process['cwd'](),_0x44f6f2);if(!existsSync(_0x245505))throw CliErrors[_0x2cfbfa(0x10b)](_0x2cfbfa(0x113)+_0x245505);}},async 'dryRun'(_0x5af8cd){const _0x3707e2=a97_0x461f4b,_0x35cb9d=await prepareIssueReport(_0x5af8cd);return{'method':_0x3707e2(0x10e),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x35cb9d['title'],'issue.description':_0x35cb9d['description'],'issue.description_original_bytes':_0x35cb9d[_0x3707e2(0x107)][_0x3707e2(0x12b)],'issue.description_truncated':_0x35cb9d[_0x3707e2(0x107)]['truncated'],'issue.description_redactions':_0x35cb9d['sanitize'][_0x3707e2(0x11c)],'issue.description_redaction_kinds':_0x35cb9d[_0x3707e2(0x107)][_0x3707e2(0x117)][_0x3707e2(0x10a)](',')}},'description':[_0x3707e2(0x12c),_0x3707e2(0x136)+_0x35cb9d[_0x3707e2(0x108)],_0x35cb9d[_0x3707e2(0x106)]?'descriptionFile:\x20'+_0x35cb9d[_0x3707e2(0x106)]:null,_0x35cb9d[_0x3707e2(0x107)][_0x3707e2(0x114)]?_0x3707e2(0x10f)+_0x35cb9d[_0x3707e2(0x107)][_0x3707e2(0x12b)]+_0x3707e2(0x12e):null,_0x35cb9d['sanitize'][_0x3707e2(0x11c)]>0x0?'redactions:\x20'+_0x35cb9d['sanitize']['redactionCount']+'\x20('+_0x35cb9d[_0x3707e2(0x107)][_0x3707e2(0x117)][_0x3707e2(0x10a)](',\x20')+')':null][_0x3707e2(0x131)](Boolean)['join']('\x0a')};},async 'execute'(_0x50be37){const _0x1ec3ac=a97_0x461f4b,_0x26f504=await prepareIssueReport(_0x50be37);try{await sendPlatformIssueCollectLog({'title':_0x26f504[_0x1ec3ac(0x129)],'description':_0x26f504[_0x1ec3ac(0x121)],'sanitize':{'originalBytes':_0x26f504['sanitize'][_0x1ec3ac(0x12b)],'truncated':_0x26f504[_0x1ec3ac(0x107)][_0x1ec3ac(0x114)],'redactionCount':_0x26f504[_0x1ec3ac(0x107)][_0x1ec3ac(0x11c)],'redactionKinds':_0x26f504['sanitize'][_0x1ec3ac(0x117)]}});}catch(_0x28fabc){throw CliErrors[_0x1ec3ac(0x139)](_0x1ec3ac(0x12a)+(_0x28fabc instanceof Error?_0x28fabc[_0x1ec3ac(0x124)]:String(_0x28fabc)),_0x1ec3ac(0x10c));}return{'ok':!![],'message':buildResultMessage(_0x26f504[_0x1ec3ac(0x107)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1ec3ac(0x123),_0x1ec3ac(0x130),_0x1ec3ac(0x10d),_0x1ec3ac(0x13a),_0x1ec3ac(0x13b),_0x1ec3ac(0x125)],'issue':{'title':_0x26f504[_0x1ec3ac(0x129)],'descriptionLength':_0x26f504[_0x1ec3ac(0x121)][_0x1ec3ac(0x109)],'descriptionSource':_0x26f504['descriptionSource'],..._0x26f504[_0x1ec3ac(0x106)]?{'descriptionFile':_0x26f504[_0x1ec3ac(0x106)]}:{},'sanitize':{'originalBytes':_0x26f504['sanitize'][_0x1ec3ac(0x12b)],'truncated':_0x26f504['sanitize'][_0x1ec3ac(0x114)],'redactions':_0x26f504['sanitize'][_0x1ec3ac(0x11c)],'redactionKinds':_0x26f504[_0x1ec3ac(0x107)][_0x1ec3ac(0x117)]}}}};}};function buildResultMessage(_0x36e93f){const _0x44c17a=a97_0x461f4b,_0x1c3c74=[];return _0x36e93f['truncated']&&_0x1c3c74[_0x44c17a(0x126)](_0x44c17a(0x12f)+_0x36e93f['originalBytes']+_0x44c17a(0x12e)),_0x36e93f[_0x44c17a(0x11c)]>0x0&&_0x1c3c74['push'](_0x44c17a(0x112)+_0x36e93f[_0x44c17a(0x11c)]+'\x20secret(s):\x20'+_0x36e93f[_0x44c17a(0x117)][_0x44c17a(0x10a)](',\x20')),_0x1c3c74[_0x44c17a(0x109)]===0x0?'Platform\x20issue\x20reported':'Platform\x20issue\x20reported\x20('+_0x1c3c74[_0x44c17a(0x10a)](';\x20')+')';}async function prepareIssueReport(_0x9d1d20){const _0x51a0ed=a97_0x461f4b,_0x11c9c5=_0x9d1d20[_0x51a0ed(0x137)](_0x51a0ed(0x129))[_0x51a0ed(0x13d)](),_0x777948=_0x9d1d20['str'](_0x51a0ed(0x121)),_0xa3d8ee=_0x9d1d20[_0x51a0ed(0x137)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xa3d8ee){const _0x14cee9=_0x777948;if(!_0x14cee9[_0x51a0ed(0x13d)]())throw CliErrors[_0x51a0ed(0x10b)](_0x51a0ed(0x132),_0x51a0ed(0x115));const _0x34f61b=sanitizeIssueDescription(_0x14cee9);return{'title':_0x11c9c5,'description':_0x34f61b[_0x51a0ed(0x121)],'descriptionSource':_0x51a0ed(0x11f),'sanitize':_0x34f61b};}const _0x40dec6=resolve(process['cwd'](),_0xa3d8ee),_0x214b92=await readFile(_0x40dec6,_0x51a0ed(0x135));if(!_0x214b92[_0x51a0ed(0x13d)]())throw CliErrors[_0x51a0ed(0x10b)](_0x51a0ed(0x11a)+_0x40dec6,_0x51a0ed(0x118));const _0x32276a=sanitizeIssueDescription(_0x214b92);return{'title':_0x11c9c5,'description':_0x32276a[_0x51a0ed(0x121)],'descriptionSource':'file','descriptionFilePath':_0x40dec6,'sanitize':_0x32276a};}
1
+ const a97_0x4700ad=a97_0x37ed;(function(_0x331f10,_0x3ee4b9){const _0x5236f7=a97_0x37ed,_0x5409a2=_0x331f10();while(!![]){try{const _0x580f7b=parseInt(_0x5236f7(0x1da))/0x1+parseInt(_0x5236f7(0x1d4))/0x2*(-parseInt(_0x5236f7(0x1ba))/0x3)+-parseInt(_0x5236f7(0x1c2))/0x4*(-parseInt(_0x5236f7(0x1c5))/0x5)+-parseInt(_0x5236f7(0x1c1))/0x6+parseInt(_0x5236f7(0x1bf))/0x7+-parseInt(_0x5236f7(0x1dd))/0x8*(parseInt(_0x5236f7(0x1df))/0x9)+-parseInt(_0x5236f7(0x1b9))/0xa;if(_0x580f7b===_0x3ee4b9)break;else _0x5409a2['push'](_0x5409a2['shift']());}catch(_0x36d067){_0x5409a2['push'](_0x5409a2['shift']());}}}(a97_0xc2f0,0xb9748));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a97_0x37ed(_0x48e8ce,_0x53de8a){_0x48e8ce=_0x48e8ce-0x1aa;const _0xc2f0e6=a97_0xc2f0();let _0x37ed87=_0xc2f0e6[_0x48e8ce];return _0x37ed87;}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_0x4700ad(0x1d5);export const issueReport={'service':a97_0x4700ad(0x1e6),'command':a97_0x4700ad(0x1b7),'description':a97_0x4700ad(0x1ca),'risk':a97_0x4700ad(0x1af),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a97_0x4700ad(0x1d0),'flags':[{'name':'title','type':a97_0x4700ad(0x1b5),'required':!![],'description':a97_0x4700ad(0x1e3)},{'name':a97_0x4700ad(0x1b2),'type':a97_0x4700ad(0x1b5),'description':a97_0x4700ad(0x1d2)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x4700ad(0x1b5),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x1e40e6){const _0x2e7c69=a97_0x4700ad,_0x47ab22=_0x1e40e6[_0x2e7c69(0x1ac)](_0x2e7c69(0x1d8))[_0x2e7c69(0x1b3)](),_0x173abe=_0x1e40e6['str']('description')[_0x2e7c69(0x1b3)](),_0x47eb10=_0x1e40e6[_0x2e7c69(0x1ac)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x47ab22)throw CliErrors[_0x2e7c69(0x1d1)](_0x2e7c69(0x1d8),_0x2e7c69(0x1be));const _0x37fff1=_0x173abe[_0x2e7c69(0x1b6)]>0x0,_0x4bbd18=_0x47eb10[_0x2e7c69(0x1b6)]>0x0;if(_0x37fff1===_0x4bbd18)throw CliErrors[_0x2e7c69(0x1e1)](_0x2e7c69(0x1bb),_0x2e7c69(0x1c8));if(_0x4bbd18){const _0x56d18f=resolve(process[_0x2e7c69(0x1d9)](),_0x47eb10);if(!existsSync(_0x56d18f))throw CliErrors[_0x2e7c69(0x1e1)](_0x2e7c69(0x1de)+_0x56d18f);}},async 'dryRun'(_0x177adb){const _0x209b78=a97_0x4700ad,_0x139e71=await prepareIssueReport(_0x177adb);return{'method':_0x209b78(0x1bc),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x139e71[_0x209b78(0x1d8)],'issue.description':_0x139e71[_0x209b78(0x1b2)],'issue.description_original_bytes':_0x139e71[_0x209b78(0x1c0)]['originalBytes'],'issue.description_truncated':_0x139e71['sanitize'][_0x209b78(0x1ad)],'issue.description_redactions':_0x139e71[_0x209b78(0x1c0)][_0x209b78(0x1cb)],'issue.description_redaction_kinds':_0x139e71[_0x209b78(0x1c0)][_0x209b78(0x1bd)][_0x209b78(0x1e4)](',')}},'description':[_0x209b78(0x1b1),_0x209b78(0x1e5)+_0x139e71[_0x209b78(0x1dc)],_0x139e71['descriptionFilePath']?_0x209b78(0x1db)+_0x139e71[_0x209b78(0x1d6)]:null,_0x139e71[_0x209b78(0x1c0)][_0x209b78(0x1ad)]?_0x209b78(0x1cd)+_0x139e71['sanitize']['originalBytes']+_0x209b78(0x1b8):null,_0x139e71[_0x209b78(0x1c0)]['redactionCount']>0x0?'redactions:\x20'+_0x139e71['sanitize']['redactionCount']+'\x20('+_0x139e71['sanitize'][_0x209b78(0x1bd)][_0x209b78(0x1e4)](',\x20')+')':null]['filter'](Boolean)[_0x209b78(0x1e4)]('\x0a')};},async 'execute'(_0x3fd9ad){const _0x3d06bb=a97_0x4700ad,_0x4ded92=await prepareIssueReport(_0x3fd9ad);try{await sendPlatformIssueCollectLog({'title':_0x4ded92['title'],'description':_0x4ded92[_0x3d06bb(0x1b2)],'sanitize':{'originalBytes':_0x4ded92[_0x3d06bb(0x1c0)][_0x3d06bb(0x1c7)],'truncated':_0x4ded92[_0x3d06bb(0x1c0)][_0x3d06bb(0x1ad)],'redactionCount':_0x4ded92[_0x3d06bb(0x1c0)][_0x3d06bb(0x1cb)],'redactionKinds':_0x4ded92[_0x3d06bb(0x1c0)][_0x3d06bb(0x1bd)]}});}catch(_0x4af322){throw CliErrors[_0x3d06bb(0x1d7)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x4af322 instanceof Error?_0x4af322[_0x3d06bb(0x1ae)]:String(_0x4af322)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x4ded92[_0x3d06bb(0x1c0)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3d06bb(0x1c3),'issue.description',_0x3d06bb(0x1c9),'issue.description_truncated','issue.description_redactions','issue.description_redaction_kinds'],'issue':{'title':_0x4ded92[_0x3d06bb(0x1d8)],'descriptionLength':_0x4ded92['description']['length'],'descriptionSource':_0x4ded92[_0x3d06bb(0x1dc)],..._0x4ded92[_0x3d06bb(0x1d6)]?{'descriptionFile':_0x4ded92[_0x3d06bb(0x1d6)]}:{},'sanitize':{'originalBytes':_0x4ded92[_0x3d06bb(0x1c0)]['originalBytes'],'truncated':_0x4ded92['sanitize'][_0x3d06bb(0x1ad)],'redactions':_0x4ded92[_0x3d06bb(0x1c0)][_0x3d06bb(0x1cb)],'redactionKinds':_0x4ded92[_0x3d06bb(0x1c0)]['redactionKinds']}}}};}};function buildResultMessage(_0x463869){const _0x277aee=a97_0x4700ad,_0x5edec4=[];return _0x463869[_0x277aee(0x1ad)]&&_0x5edec4['push'](_0x277aee(0x1e2)+_0x463869[_0x277aee(0x1c7)]+_0x277aee(0x1b8)),_0x463869[_0x277aee(0x1cb)]>0x0&&_0x5edec4[_0x277aee(0x1aa)](_0x277aee(0x1cc)+_0x463869[_0x277aee(0x1cb)]+'\x20secret(s):\x20'+_0x463869[_0x277aee(0x1bd)]['join'](',\x20')),_0x5edec4[_0x277aee(0x1b6)]===0x0?_0x277aee(0x1c4):_0x277aee(0x1e0)+_0x5edec4[_0x277aee(0x1e4)](';\x20')+')';}function a97_0xc2f0(){const _0x53ab37=['compress','flagMissing','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','143770CHFfWZ','description-file','descriptionFilePath','apiError','title','cwd','1366900cVgCzf','descriptionFile:\x20','descriptionSource','8TIZPmX','File\x20not\x20found:\x20','12948651pmyTRs','Platform\x20issue\x20reported\x20(','validation','truncated\x20from\x20','One-line\x20issue\x20summary','join','descriptionSource:\x20','issue','push','utf8','str','truncated','message','write','Issue\x20description\x20cannot\x20be\x20empty.','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','description','trim','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','string','length','report','\x20bytes','100520fWSKYG','15zXReQH','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','POST','redactionKinds','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','5878110xlHPuC','sanitize','6249942FvjoNv','5611468TxKXuf','issue.title','Platform\x20issue\x20reported','5EmMHVD','inline','originalBytes','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue.description_original_bytes','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','redactionCount','redacted\x20','truncated:\x20original\x20','file','Issue\x20description\x20file\x20is\x20empty:\x20'];a97_0xc2f0=function(){return _0x53ab37;};return a97_0xc2f0();}async function prepareIssueReport(_0x264884){const _0xf2918a=a97_0x4700ad,_0x4b96ac=_0x264884[_0xf2918a(0x1ac)](_0xf2918a(0x1d8))['trim'](),_0x20caec=_0x264884[_0xf2918a(0x1ac)](_0xf2918a(0x1b2)),_0x17bb16=_0x264884[_0xf2918a(0x1ac)](DESCRIPTION_FILE_FLAG)[_0xf2918a(0x1b3)]();if(!_0x17bb16){const _0x307680=_0x20caec;if(!_0x307680[_0xf2918a(0x1b3)]())throw CliErrors['validation'](_0xf2918a(0x1b0),_0xf2918a(0x1d3));const _0x2df56e=sanitizeIssueDescription(_0x307680);return{'title':_0x4b96ac,'description':_0x2df56e[_0xf2918a(0x1b2)],'descriptionSource':_0xf2918a(0x1c6),'sanitize':_0x2df56e};}const _0x5bcfc4=resolve(process['cwd'](),_0x17bb16),_0x3897ab=await readFile(_0x5bcfc4,_0xf2918a(0x1ab));if(!_0x3897ab[_0xf2918a(0x1b3)]())throw CliErrors[_0xf2918a(0x1e1)](_0xf2918a(0x1cf)+_0x5bcfc4,_0xf2918a(0x1b4));const _0x364ffd=sanitizeIssueDescription(_0x3897ab);return{'title':_0x4b96ac,'description':_0x364ffd[_0xf2918a(0x1b2)],'descriptionSource':_0xf2918a(0x1ce),'descriptionFilePath':_0x5bcfc4,'sanitize':_0x364ffd};}
@@ -1 +1 @@
1
- const a98_0x53cba3=a98_0x5a7a;(function(_0x3efd11,_0x404f2d){const _0x2bd4e6=a98_0x5a7a,_0x5b6d28=_0x3efd11();while(!![]){try{const _0x56cf87=-parseInt(_0x2bd4e6(0x146))/0x1+parseInt(_0x2bd4e6(0x13f))/0x2*(parseInt(_0x2bd4e6(0x152))/0x3)+-parseInt(_0x2bd4e6(0x13a))/0x4*(parseInt(_0x2bd4e6(0x14b))/0x5)+parseInt(_0x2bd4e6(0x147))/0x6*(parseInt(_0x2bd4e6(0x135))/0x7)+parseInt(_0x2bd4e6(0x148))/0x8*(parseInt(_0x2bd4e6(0x144))/0x9)+-parseInt(_0x2bd4e6(0x154))/0xa*(-parseInt(_0x2bd4e6(0x138))/0xb)+-parseInt(_0x2bd4e6(0x145))/0xc;if(_0x56cf87===_0x404f2d)break;else _0x5b6d28['push'](_0x5b6d28['shift']());}catch(_0xdffc7f){_0x5b6d28['push'](_0x5b6d28['shift']());}}}(a98_0x5a9f,0x2451d));function a98_0x5a7a(_0x303e7a,_0x2d708){_0x303e7a=_0x303e7a-0x132;const _0x5a9ff5=a98_0x5a9f();let _0x5a7a77=_0x5a9ff5[_0x303e7a];return _0x5a7a77;}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x53cba3(0x136),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a98_0x53cba3(0x14a)},{'kind':a98_0x53cba3(0x153),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x53cba3(0x143)},{'kind':a98_0x53cba3(0x13d),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a98_0x53cba3(0x139),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x53cba3(0x149)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x53cba3(0x140)},{'kind':a98_0x53cba3(0x14e),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x580a4a){const _0x154961=a98_0x53cba3,_0x2d7d03=Buffer[_0x154961(0x13e)](_0x580a4a,_0x154961(0x132)),_0x203952=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x5092af=_0x580a4a,_0x4e34b2=0x0;const _0x527f42=[];if(!_0x203952){const _0x4aa43c=protectOssAccessKeyIds(_0x5092af);_0x5092af=_0x4aa43c[_0x154961(0x151)];for(const _0xc930ca of REDACTION_RULES){let _0x4f3093=0x0;_0x5092af=_0x5092af[_0x154961(0x150)](_0xc930ca[_0x154961(0x13c)],(_0x27d3f8,_0x28ae2b)=>{const _0x1e0eca=_0x154961;_0x4f3093+=0x1;const _0x14491f=typeof _0x28ae2b===_0x1e0eca(0x14f)?_0x28ae2b:'';return _0x14491f+'['+_0xc930ca[_0x1e0eca(0x155)]+']';}),_0x4f3093>0x0&&(_0x4e34b2+=_0x4f3093,!_0x527f42[_0x154961(0x133)](_0xc930ca[_0x154961(0x13b)])&&_0x527f42[_0x154961(0x14c)](_0xc930ca[_0x154961(0x13b)]));}_0x5092af=_0x4aa43c[_0x154961(0x14d)](_0x5092af);}let _0x411745=![];if(Buffer['byteLength'](_0x5092af,_0x154961(0x132))>ISSUE_DESCRIPTION_MAX_BYTES){_0x411745=!![];const _0x624a59=Buffer[_0x154961(0x13e)](TRUNCATION_NOTICE,_0x154961(0x132)),_0x16b96b=Math[_0x154961(0x134)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x624a59);_0x5092af=sliceUtf8Bytes(_0x5092af,_0x16b96b)+TRUNCATION_NOTICE;}return{'description':_0x5092af,'originalBytes':_0x2d7d03,'truncated':_0x411745,'redactionCount':_0x4e34b2,'redactionKinds':_0x527f42};}function a98_0x5a9f(){const _0x4010c6=['12552wfHQmd','12OdNdOO','1300296Tsratk','REDACTED:access-key','REDACTED:cookie','95dpwsTn','push','restore','bearer-jwt','string','replace','description','9gqlEdA','authorization','20vOKbdK','label','from','utf8','includes','max','829654FzjuUd','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','length','931876tsnQNk','access-key','34696xDIIHT','kind','pattern','private-key','byteLength','3646YvHrLv','REDACTED:password','slice','__RB_OSS_ID_','REDACTED:authorization','9jpwpJp','2980308qJpFJF'];a98_0x5a9f=function(){return _0x4010c6;};return a98_0x5a9f();}function protectOssAccessKeyIds(_0x19dd95){const _0x40c1eb=a98_0x53cba3,_0x42ac01=[],_0x3cc951=_0x19dd95[_0x40c1eb(0x150)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x3873a1,_0x3ee4eb)=>{const _0x55de5a=_0x40c1eb,_0x3a2743=_0x42ac01['push'](_0x3873a1[_0x55de5a(0x141)](_0x3ee4eb[_0x55de5a(0x137)]))-0x1;return _0x3ee4eb+_0x55de5a(0x142)+_0x3a2743+'__';});return{'description':_0x3cc951,'restore':_0x158853=>_0x158853[_0x40c1eb(0x150)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x21c75d,_0x22e769,_0x591d0b)=>{const _0x340889=_0x42ac01[Number(_0x591d0b)];return _0x340889===undefined?_0x21c75d:''+_0x22e769+_0x340889;})};}function sliceUtf8Bytes(_0x50fa03,_0x27a851){const _0x2f2830=a98_0x53cba3;if(_0x27a851<=0x0)return'';const _0x20e028=Buffer[_0x2f2830(0x156)](_0x50fa03,_0x2f2830(0x132));if(_0x20e028[_0x2f2830(0x13e)]<=_0x27a851)return _0x50fa03;let _0x45b99d=_0x27a851;while(_0x45b99d>0x0){const _0x3c6202=_0x20e028[_0x45b99d];if(_0x3c6202===undefined||(_0x3c6202&0xc0)!==0x80)break;_0x45b99d-=0x1;}return _0x20e028['subarray'](0x0,_0x45b99d)['toString'](_0x2f2830(0x132));}
1
+ function a98_0x139e(){const _0x3922cc=['includes','802384GdWDEu','kind','max','REDACTED:password','toString','password','from','cookie','24TwoDVd','label','access-key','utf8','subarray','6iZsIiN','authorization','196066QYwtxh','1535261SRVRdL','354709XiHMiL','4447377aFfGzH','3868740hefUmk','string','byteLength','1636010ewDMjl','restore','description','REDACTED:private-key'];a98_0x139e=function(){return _0x3922cc;};return a98_0x139e();}const a98_0x5242b4=a98_0x3608;(function(_0x28c3e2,_0x1a9ef3){const _0x559dd0=a98_0x3608,_0xf5d1bf=_0x28c3e2();while(!![]){try{const _0x220fed=-parseInt(_0x559dd0(0x18b))/0x1+parseInt(_0x559dd0(0x189))/0x2*(parseInt(_0x559dd0(0x182))/0x3)+-parseInt(_0x559dd0(0x18d))/0x4+parseInt(_0x559dd0(0x190))/0x5+-parseInt(_0x559dd0(0x187))/0x6*(-parseInt(_0x559dd0(0x18a))/0x7)+parseInt(_0x559dd0(0x17a))/0x8+parseInt(_0x559dd0(0x18c))/0x9;if(_0x220fed===_0x1a9ef3)break;else _0xf5d1bf['push'](_0xf5d1bf['shift']());}catch(_0x11f42d){_0xf5d1bf['push'](_0xf5d1bf['shift']());}}}(a98_0x139e,0x934d2));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a98_0x5242b4(0x181),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a98_0x5242b4(0x188),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x5242b4(0x178)},{'kind':a98_0x5242b4(0x184),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a98_0x5242b4(0x17f),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x5242b4(0x17d)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x3b64bb){const _0x2d5a1c=a98_0x5242b4,_0x20e546=Buffer[_0x2d5a1c(0x18f)](_0x3b64bb,_0x2d5a1c(0x185)),_0x11d25f=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x10c664=_0x3b64bb,_0x241030=0x0;const _0x4cc426=[];if(!_0x11d25f){const _0x590a91=protectOssAccessKeyIds(_0x10c664);_0x10c664=_0x590a91[_0x2d5a1c(0x177)];for(const _0x26a930 of REDACTION_RULES){let _0x32368a=0x0;_0x10c664=_0x10c664['replace'](_0x26a930['pattern'],(_0x5f4c29,_0x3b4099)=>{const _0x42c460=_0x2d5a1c;_0x32368a+=0x1;const _0x1d5603=typeof _0x3b4099===_0x42c460(0x18e)?_0x3b4099:'';return _0x1d5603+'['+_0x26a930[_0x42c460(0x183)]+']';}),_0x32368a>0x0&&(_0x241030+=_0x32368a,!_0x4cc426[_0x2d5a1c(0x179)](_0x26a930[_0x2d5a1c(0x17b)])&&_0x4cc426['push'](_0x26a930[_0x2d5a1c(0x17b)]));}_0x10c664=_0x590a91[_0x2d5a1c(0x176)](_0x10c664);}let _0x36e26c=![];if(Buffer[_0x2d5a1c(0x18f)](_0x10c664,_0x2d5a1c(0x185))>ISSUE_DESCRIPTION_MAX_BYTES){_0x36e26c=!![];const _0x3d3275=Buffer[_0x2d5a1c(0x18f)](TRUNCATION_NOTICE,_0x2d5a1c(0x185)),_0x284fc5=Math[_0x2d5a1c(0x17c)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3d3275);_0x10c664=sliceUtf8Bytes(_0x10c664,_0x284fc5)+TRUNCATION_NOTICE;}return{'description':_0x10c664,'originalBytes':_0x20e546,'truncated':_0x36e26c,'redactionCount':_0x241030,'redactionKinds':_0x4cc426};}function protectOssAccessKeyIds(_0x11f1d1){const _0x388330=[],_0x2e4499=_0x11f1d1['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x507886,_0x14c2e5)=>{const _0x298406=_0x388330['push'](_0x507886['slice'](_0x14c2e5['length']))-0x1;return _0x14c2e5+'__RB_OSS_ID_'+_0x298406+'__';});return{'description':_0x2e4499,'restore':_0x2c644f=>_0x2c644f['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x4b5ade,_0x3c5e35,_0x183d41)=>{const _0x2ce4db=_0x388330[Number(_0x183d41)];return _0x2ce4db===undefined?_0x4b5ade:''+_0x3c5e35+_0x2ce4db;})};}function a98_0x3608(_0x103c2b,_0x2881e6){_0x103c2b=_0x103c2b-0x176;const _0x139e40=a98_0x139e();let _0x360886=_0x139e40[_0x103c2b];return _0x360886;}function sliceUtf8Bytes(_0x30f46c,_0xff7767){const _0x2a1492=a98_0x5242b4;if(_0xff7767<=0x0)return'';const _0x13cda2=Buffer[_0x2a1492(0x180)](_0x30f46c,_0x2a1492(0x185));if(_0x13cda2[_0x2a1492(0x18f)]<=_0xff7767)return _0x30f46c;let _0x2ddeb8=_0xff7767;while(_0x2ddeb8>0x0){const _0x5ad8d8=_0x13cda2[_0x2ddeb8];if(_0x5ad8d8===undefined||(_0x5ad8d8&0xc0)!==0x80)break;_0x2ddeb8-=0x1;}return _0x13cda2[_0x2a1492(0x186)](0x0,_0x2ddeb8)[_0x2a1492(0x17e)](_0x2a1492(0x185));}
@@ -1 +1 @@
1
- function a99_0x8538(_0x68c6e8,_0x1dfa64){_0x68c6e8=_0x68c6e8-0x1d9;const _0x39eeed=a99_0x39ee();let _0x853827=_0x39eeed[_0x68c6e8];return _0x853827;}const a99_0x1378e5=a99_0x8538;(function(_0x476d31,_0x1f056d){const _0x5d5927=a99_0x8538,_0xea8693=_0x476d31();while(!![]){try{const _0x2279cd=-parseInt(_0x5d5927(0x1de))/0x1+parseInt(_0x5d5927(0x1e1))/0x2+parseInt(_0x5d5927(0x1eb))/0x3*(-parseInt(_0x5d5927(0x1f1))/0x4)+parseInt(_0x5d5927(0x1f5))/0x5*(-parseInt(_0x5d5927(0x1e4))/0x6)+-parseInt(_0x5d5927(0x1ec))/0x7*(-parseInt(_0x5d5927(0x1e6))/0x8)+parseInt(_0x5d5927(0x1ed))/0x9+parseInt(_0x5d5927(0x1d9))/0xa;if(_0x2279cd===_0x1f056d)break;else _0xea8693['push'](_0xea8693['shift']());}catch(_0x3fdc36){_0xea8693['push'](_0xea8693['shift']());}}}(a99_0x39ee,0x47357));import{logger}from'../../utils/logger.js';function a99_0x39ee(){const _0xa5b5a0=['*\x20Lovrabet\x20CLI\x20logs:\x0a','error','\x20\x20\x20Time:\x20','log','2336470TSqAZH','\x20\x20\x20Duration:\x20','keys','clear','*\x20No\x20logs\x20found','458427PgZLNP','details','logs','901618nbBEyg','duration','show','835482jGqbHs','*\x20Logs\x20cleared','4507472ipRRcf','command','View\x20command\x20history\x20logs','write','toLocaleString','6opIHWj','7plaVqz','853623kJxnJx','forEach','message','level','349796PyRylM','readLogs','warn','success','15tuINtn','timestamp','stringify','en-US'];a99_0x39ee=function(){return _0xa5b5a0;};return a99_0x39ee();}function printLogs(_0x101030){const _0x590a6a=a99_0x8538;if(_0x101030['length']===0x0){console[_0x590a6a(0x1fc)](_0x590a6a(0x1dd));return;}console[_0x590a6a(0x1fc)](_0x590a6a(0x1f9)),_0x101030[_0x590a6a(0x1ee)]((_0x1d1b2e,_0x19b535)=>{const _0x302809=_0x590a6a,_0x21500c=new Date(_0x1d1b2e[_0x302809(0x1f6)])[_0x302809(0x1ea)](_0x302809(0x1f8)),_0x34f458=_0x1d1b2e[_0x302809(0x1f0)]===_0x302809(0x1f4)?'√':_0x1d1b2e[_0x302809(0x1f0)]===_0x302809(0x1fa)?'×':_0x1d1b2e[_0x302809(0x1f0)]===_0x302809(0x1f3)?'!':'i';console[_0x302809(0x1fc)](_0x19b535+0x1+'.\x20'+_0x34f458+'\x20['+_0x1d1b2e[_0x302809(0x1e7)]+']\x20'+_0x1d1b2e[_0x302809(0x1ef)]),console[_0x302809(0x1fc)](_0x302809(0x1fb)+_0x21500c),_0x1d1b2e['duration']&&console['log'](_0x302809(0x1da)+_0x1d1b2e[_0x302809(0x1e2)]+'ms'),_0x1d1b2e[_0x302809(0x1df)]&&Object[_0x302809(0x1db)](_0x1d1b2e[_0x302809(0x1df)])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x302809(0x1f7)](_0x1d1b2e[_0x302809(0x1df)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a99_0x1378e5(0x1e0),'command':a99_0x1378e5(0x1e3),'description':a99_0x1378e5(0x1e8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x28d352){const _0x268729=a99_0x1378e5;return printLogs(logger[_0x268729(0x1f2)]()),{'ok':!![]};}},{'service':'logs','command':a99_0x1378e5(0x1dc),'description':'Clear\x20command\x20history\x20logs','risk':a99_0x1378e5(0x1e9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x14042a){const _0x33909a=a99_0x1378e5;return logger['clearLogs'](),console['log'](_0x33909a(0x1e5)),{'ok':!![]};}}];
1
+ const a99_0x4c6ce3=a99_0x54e8;(function(_0x3972a2,_0x9b6901){const _0x532ccd=a99_0x54e8,_0x163f67=_0x3972a2();while(!![]){try{const _0x236b13=parseInt(_0x532ccd(0x1a4))/0x1*(-parseInt(_0x532ccd(0x1b4))/0x2)+-parseInt(_0x532ccd(0x1af))/0x3+parseInt(_0x532ccd(0x1aa))/0x4+-parseInt(_0x532ccd(0x1b3))/0x5+parseInt(_0x532ccd(0x1a5))/0x6*(-parseInt(_0x532ccd(0x1ac))/0x7)+-parseInt(_0x532ccd(0x1b7))/0x8*(parseInt(_0x532ccd(0x19e))/0x9)+parseInt(_0x532ccd(0x1bc))/0xa;if(_0x236b13===_0x9b6901)break;else _0x163f67['push'](_0x163f67['shift']());}catch(_0x593cfd){_0x163f67['push'](_0x163f67['shift']());}}}(a99_0x1b94,0x68ac3));function a99_0x1b94(){const _0x35946e=['2024OcnHmb','timestamp','\x20\x20\x20Time:\x20','message','success','9405110OKqNBZ','\x20\x20\x20Details:\x20','warn','stringify','2583wwhtWV','*\x20Lovrabet\x20CLI\x20logs:\x0a','clear','toLocaleString','View\x20command\x20history\x20logs','read','224715HyDQsX','792VCCGLQ','logs','forEach','\x20\x20\x20Duration:\x20','details','3426840HgPAxw','length','847UzbNWj','level','clearLogs','1868520INXNaS','write','duration','log','1038145gbgsWV','4lzWzZz','*\x20Logs\x20cleared','readLogs'];a99_0x1b94=function(){return _0x35946e;};return a99_0x1b94();}import{logger}from'../../utils/logger.js';function printLogs(_0x3859b9){const _0x97a24c=a99_0x54e8;if(_0x3859b9[_0x97a24c(0x1ab)]===0x0){console[_0x97a24c(0x1b2)]('*\x20No\x20logs\x20found');return;}console[_0x97a24c(0x1b2)](_0x97a24c(0x19f)),_0x3859b9[_0x97a24c(0x1a7)]((_0x4799ae,_0x2fdb0a)=>{const _0x2519b6=_0x97a24c,_0x31e65c=new Date(_0x4799ae[_0x2519b6(0x1b8)])[_0x2519b6(0x1a1)]('en-US'),_0x2625f5=_0x4799ae[_0x2519b6(0x1ad)]===_0x2519b6(0x1bb)?'√':_0x4799ae[_0x2519b6(0x1ad)]==='error'?'×':_0x4799ae[_0x2519b6(0x1ad)]===_0x2519b6(0x19c)?'!':'i';console[_0x2519b6(0x1b2)](_0x2fdb0a+0x1+'.\x20'+_0x2625f5+'\x20['+_0x4799ae['command']+']\x20'+_0x4799ae[_0x2519b6(0x1ba)]),console['log'](_0x2519b6(0x1b9)+_0x31e65c),_0x4799ae['duration']&&console['log'](_0x2519b6(0x1a8)+_0x4799ae[_0x2519b6(0x1b1)]+'ms'),_0x4799ae[_0x2519b6(0x1a9)]&&Object['keys'](_0x4799ae[_0x2519b6(0x1a9)])['length']>0x0&&console[_0x2519b6(0x1b2)](_0x2519b6(0x19b)+JSON[_0x2519b6(0x19d)](_0x4799ae[_0x2519b6(0x1a9)],null,0x2)),console[_0x2519b6(0x1b2)]('');});}function a99_0x54e8(_0xe750ac,_0xfd78fa){_0xe750ac=_0xe750ac-0x19b;const _0x1b9498=a99_0x1b94();let _0x54e8bd=_0x1b9498[_0xe750ac];return _0x54e8bd;}export const logsDefinitions=[{'service':a99_0x4c6ce3(0x1a6),'command':'show','description':a99_0x4c6ce3(0x1a2),'risk':a99_0x4c6ce3(0x1a3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x17a206){const _0x2d569a=a99_0x4c6ce3;return printLogs(logger[_0x2d569a(0x1b6)]()),{'ok':!![]};}},{'service':a99_0x4c6ce3(0x1a6),'command':a99_0x4c6ce3(0x1a0),'description':'Clear\x20command\x20history\x20logs','risk':a99_0x4c6ce3(0x1b0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1780cc){const _0x53ca06=a99_0x4c6ce3;return logger[_0x53ca06(0x1ae)](),console[_0x53ca06(0x1b2)](_0x53ca06(0x1b5)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x48c8f0,_0x522ff7){const _0x37b1f8=a100_0x1323,_0x3a5f81=_0x48c8f0();while(!![]){try{const _0x25f357=-parseInt(_0x37b1f8(0x99))/0x1+-parseInt(_0x37b1f8(0x94))/0x2+parseInt(_0x37b1f8(0x9b))/0x3*(parseInt(_0x37b1f8(0x98))/0x4)+parseInt(_0x37b1f8(0x95))/0x5+parseInt(_0x37b1f8(0x92))/0x6*(parseInt(_0x37b1f8(0x97))/0x7)+-parseInt(_0x37b1f8(0x93))/0x8*(-parseInt(_0x37b1f8(0x9a))/0x9)+-parseInt(_0x37b1f8(0x96))/0xa;if(_0x25f357===_0x522ff7)break;else _0x3a5f81['push'](_0x3a5f81['shift']());}catch(_0x3e7818){_0x3a5f81['push'](_0x3a5f81['shift']());}}}(a100_0x2894,0x803f7));function a100_0x2894(){const _0x3cf2f9=['12wTUpRA','1832aWWbxQ','623572ttELEJ','1671470mcJmqD','109140dfYieZ','45227taOmDO','1095364sLxehZ','437841XGXbKF','26127ZEZDjW','3uNUnkS'];a100_0x2894=function(){return _0x3cf2f9;};return a100_0x2894();}import{menuList}from'../../commands/menu/list.js';function a100_0x1323(_0x41741a,_0x336790){_0x41741a=_0x41741a-0x92;const _0x289471=a100_0x2894();let _0x1323e7=_0x289471[_0x41741a];return _0x1323e7;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ function a100_0x4269(){const _0x412837=['21163956qdSwUm','63nCxzwY','2258116sKucDI','18EhAAhN','3sQrmOL','114rQitVn','1626044Ifexgp','5161790pEsfCD','25475ocwbxR','1197952duJMzU','1131836wJPHlU'];a100_0x4269=function(){return _0x412837;};return a100_0x4269();}(function(_0x241a4a,_0xdb6c26){const _0x257732=a100_0x5321,_0x1ff3cd=_0x241a4a();while(!![]){try{const _0x2b970a=-parseInt(_0x257732(0x16e))/0x1+parseInt(_0x257732(0x16a))/0x2+parseInt(_0x257732(0x16c))/0x3*(-parseInt(_0x257732(0x167))/0x4)+parseInt(_0x257732(0x170))/0x5*(parseInt(_0x257732(0x16d))/0x6)+parseInt(_0x257732(0x169))/0x7*(-parseInt(_0x257732(0x171))/0x8)+parseInt(_0x257732(0x16b))/0x9*(parseInt(_0x257732(0x16f))/0xa)+parseInt(_0x257732(0x168))/0xb;if(_0x2b970a===_0xdb6c26)break;else _0x1ff3cd['push'](_0x1ff3cd['shift']());}catch(_0x1a231b){_0x1ff3cd['push'](_0x1ff3cd['shift']());}}}(a100_0x4269,0xe1f4e));function a100_0x5321(_0x5dc324,_0x4d99f3){_0x5dc324=_0x5dc324-0x167;const _0x4269cc=a100_0x4269();let _0x5321e0=_0x4269cc[_0x5dc324];return _0x5321e0;}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];
@@ -1 +1 @@
1
- function a101_0x38a9(_0x4e055f,_0x31cb35){_0x4e055f=_0x4e055f-0x1e5;const _0x31a773=a101_0x31a7();let _0x38a9af=_0x31a773[_0x4e055f];return _0x38a9af;}const a101_0x1806fd=a101_0x38a9;(function(_0x5e6cf5,_0x172eb6){const _0x790b39=a101_0x38a9,_0x5391ce=_0x5e6cf5();while(!![]){try{const _0x21e939=parseInt(_0x790b39(0x202))/0x1+-parseInt(_0x790b39(0x207))/0x2*(parseInt(_0x790b39(0x1e8))/0x3)+-parseInt(_0x790b39(0x1ee))/0x4*(-parseInt(_0x790b39(0x1e6))/0x5)+parseInt(_0x790b39(0x1fe))/0x6+parseInt(_0x790b39(0x1fa))/0x7+parseInt(_0x790b39(0x1f8))/0x8+-parseInt(_0x790b39(0x1fb))/0x9;if(_0x21e939===_0x172eb6)break;else _0x5391ce['push'](_0x5391ce['shift']());}catch(_0x2633bf){_0x5391ce['push'](_0x5391ce['shift']());}}}(a101_0x31a7,0x6f9cd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';function a101_0x31a7(){const _0x29d22d=['extend','parse','No\x20menus\x20found.','isFinite','label','isArray','7290504XNWejF','item','5457207rGzyat','21101193DOarGw','read','Found\x20','2666928LpqgIh','cookie','push','resources','859476rdZgvC','children','path','\x20menu(s)','length','46iGlyEK','type','visible','sort','5KlFMZg','appCode','97155BwheoP','verbose','number','map','bool','list','2206876FjqKmx','boolean','index','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app'];a101_0x31a7=function(){return _0x29d22d;};return a101_0x31a7();}export const menuList={'service':'menu','command':a101_0x1806fd(0x1ed),'description':a101_0x1806fd(0x1f1),'risk':a101_0x1806fd(0x1fc),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':'boolean','description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x3af10a){const _0x453b45=a101_0x1806fd,_0x9fc9b5=_0x3af10a[_0x453b45(0x1ec)](_0x453b45(0x1e9)),_0x2fe738=await getMenuTree(_0x3af10a[_0x453b45(0x1e7)],_0x3af10a[_0x453b45(0x1ff)]),_0x1f7255=flattenMenuItems(Array[_0x453b45(0x1f7)](_0x2fe738)?_0x2fe738:[],{'verbose':_0x9fc9b5,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x1f7255[_0x453b45(0x206)],'menus':_0x1f7255},'message':_0x1f7255[_0x453b45(0x206)]===0x0?_0x453b45(0x1f4):_0x453b45(0x1fd)+_0x1f7255[_0x453b45(0x206)]+_0x453b45(0x205)};}};function flattenMenuItems(_0x1fa529,_0x23402a){const _0x2f82f8=a101_0x1806fd,_0x2462c3=sortMenuItems(_0x1fa529),_0x3f1ba5=[];for(const _0x300bc9 of _0x2462c3){_0x3f1ba5[_0x2f82f8(0x200)](toMenuListItem(_0x300bc9,_0x23402a)),Array[_0x2f82f8(0x1f7)](_0x300bc9[_0x2f82f8(0x203)])&&_0x300bc9[_0x2f82f8(0x203)][_0x2f82f8(0x206)]>0x0&&_0x3f1ba5[_0x2f82f8(0x200)](...flattenMenuItems(_0x300bc9['children'],{'verbose':_0x23402a[_0x2f82f8(0x1e9)],'parentId':_0x300bc9['id'],'depth':_0x23402a['depth']+0x1}));}return _0x3f1ba5;}function sortMenuItems(_0xc2d97e){const _0x5fe8b9=a101_0x1806fd;return _0xc2d97e[_0x5fe8b9(0x1eb)]((_0x5626ec,_0x6b8679)=>({'item':_0x5626ec,'index':_0x6b8679}))[_0x5fe8b9(0x1e5)]((_0x2b78be,_0x4ea6c4)=>{const _0x28a526=_0x5fe8b9,_0x195f5b=normalizeSort(_0x2b78be['item'][_0x28a526(0x1e5)]),_0x20c5f5=normalizeSort(_0x4ea6c4[_0x28a526(0x1f9)][_0x28a526(0x1e5)]);if(_0x195f5b!==_0x20c5f5)return _0x195f5b-_0x20c5f5;return _0x2b78be[_0x28a526(0x1f0)]-_0x4ea6c4[_0x28a526(0x1f0)];})[_0x5fe8b9(0x1eb)](({item:_0x337c3c})=>_0x337c3c);}function toMenuListItem(_0x4391dc,_0x5c6ce8){const _0xe787f9=a101_0x1806fd,_0xf87cc3={'id':_0x4391dc['id'],'parentId':_0x5c6ce8['parentId'],'depth':_0x5c6ce8['depth'],'label':normalizeString(_0x4391dc[_0xe787f9(0x1f6)]),'path':normalizeString(_0x4391dc[_0xe787f9(0x204)]),'type':normalizeString(_0x4391dc[_0xe787f9(0x208)]),'visible':typeof _0x4391dc[_0xe787f9(0x209)]===_0xe787f9(0x1ef)?_0x4391dc['visible']:null,'sort':typeof _0x4391dc[_0xe787f9(0x1e5)]===_0xe787f9(0x1ea)&&Number[_0xe787f9(0x1f5)](_0x4391dc[_0xe787f9(0x1e5)])?_0x4391dc[_0xe787f9(0x1e5)]:null,'resources':normalizeResources(_0x4391dc[_0xe787f9(0x1f2)]?.[_0xe787f9(0x201)])};return _0x5c6ce8['verbose']&&(_0xf87cc3[_0xe787f9(0x1f2)]=_0x4391dc[_0xe787f9(0x1f2)]??null),_0xf87cc3;}function normalizeSort(_0x54497a){const _0x4b6252=a101_0x1806fd;return typeof _0x54497a===_0x4b6252(0x1ea)&&Number['isFinite'](_0x54497a)?_0x54497a:Number['POSITIVE_INFINITY'];}function normalizeString(_0x2dad03){return typeof _0x2dad03==='string'?_0x2dad03:'';}function normalizeResources(_0x246c7d){const _0x3d6af3=a101_0x1806fd;if(Array[_0x3d6af3(0x1f7)](_0x246c7d))return _0x246c7d['map'](String);if(typeof _0x246c7d!=='string')return[];try{const _0x45e38c=JSON[_0x3d6af3(0x1f3)](_0x246c7d);return Array[_0x3d6af3(0x1f7)](_0x45e38c)?_0x45e38c[_0x3d6af3(0x1eb)](String):[];}catch{return[];}}
1
+ function a101_0x4eaa(_0x28e2c6,_0x3ea2cc){_0x28e2c6=_0x28e2c6-0xa0;const _0x2c3215=a101_0x2c32();let _0x4eaa42=_0x2c3215[_0x28e2c6];return _0x4eaa42;}const a101_0x2801e8=a101_0x4eaa;(function(_0x1aa576,_0x5d82d0){const _0x5605e5=a101_0x4eaa,_0x5ae998=_0x1aa576();while(!![]){try{const _0x5a0134=-parseInt(_0x5605e5(0xb9))/0x1*(parseInt(_0x5605e5(0xa9))/0x2)+-parseInt(_0x5605e5(0xba))/0x3+-parseInt(_0x5605e5(0xbc))/0x4+parseInt(_0x5605e5(0xc0))/0x5+-parseInt(_0x5605e5(0xc3))/0x6+-parseInt(_0x5605e5(0xb4))/0x7*(parseInt(_0x5605e5(0xb8))/0x8)+parseInt(_0x5605e5(0xaa))/0x9*(parseInt(_0x5605e5(0xb0))/0xa);if(_0x5a0134===_0x5d82d0)break;else _0x5ae998['push'](_0x5ae998['shift']());}catch(_0x244320){_0x5ae998['push'](_0x5ae998['shift']());}}}(a101_0x2c32,0x801ee));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':'menu','command':a101_0x2801e8(0xae),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':a101_0x2801e8(0xaf),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a101_0x2801e8(0xb2),'description':a101_0x2801e8(0xab)}],async 'execute'(_0xc79fe1){const _0x9ebac2=a101_0x2801e8,_0x51510b=_0xc79fe1[_0x9ebac2(0xa6)](_0x9ebac2(0xad)),_0x994c37=await getMenuTree(_0xc79fe1[_0x9ebac2(0xb6)],_0xc79fe1['cookie']),_0x5e2696=flattenMenuItems(Array['isArray'](_0x994c37)?_0x994c37:[],{'verbose':_0x51510b,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5e2696[_0x9ebac2(0xa1)],'menus':_0x5e2696},'message':_0x5e2696[_0x9ebac2(0xa1)]===0x0?_0x9ebac2(0xb3):'Found\x20'+_0x5e2696[_0x9ebac2(0xa1)]+_0x9ebac2(0xbb)};}};function flattenMenuItems(_0x15703b,_0xe6650){const _0xa3d1fc=a101_0x2801e8,_0x34fbb7=sortMenuItems(_0x15703b),_0x107c8f=[];for(const _0x53d5b2 of _0x34fbb7){_0x107c8f[_0xa3d1fc(0xc2)](toMenuListItem(_0x53d5b2,_0xe6650)),Array[_0xa3d1fc(0xa2)](_0x53d5b2['children'])&&_0x53d5b2[_0xa3d1fc(0xa3)]['length']>0x0&&_0x107c8f['push'](...flattenMenuItems(_0x53d5b2[_0xa3d1fc(0xa3)],{'verbose':_0xe6650[_0xa3d1fc(0xad)],'parentId':_0x53d5b2['id'],'depth':_0xe6650[_0xa3d1fc(0xc1)]+0x1}));}return _0x107c8f;}function sortMenuItems(_0x532231){const _0x1e1eeb=a101_0x2801e8;return _0x532231[_0x1e1eeb(0xc4)]((_0x41e363,_0x2ddd57)=>({'item':_0x41e363,'index':_0x2ddd57}))[_0x1e1eeb(0xa5)]((_0x3b9a96,_0x5d1e5a)=>{const _0x31d4a9=_0x1e1eeb,_0x89a593=normalizeSort(_0x3b9a96[_0x31d4a9(0xb7)][_0x31d4a9(0xa5)]),_0x3f6865=normalizeSort(_0x5d1e5a[_0x31d4a9(0xb7)]['sort']);if(_0x89a593!==_0x3f6865)return _0x89a593-_0x3f6865;return _0x3b9a96[_0x31d4a9(0xa0)]-_0x5d1e5a['index'];})[_0x1e1eeb(0xc4)](({item:_0xb7c57d})=>_0xb7c57d);}function toMenuListItem(_0x1c99f5,_0x40ec82){const _0x5da1c1=a101_0x2801e8,_0x2efc39={'id':_0x1c99f5['id'],'parentId':_0x40ec82['parentId'],'depth':_0x40ec82[_0x5da1c1(0xc1)],'label':normalizeString(_0x1c99f5[_0x5da1c1(0xac)]),'path':normalizeString(_0x1c99f5[_0x5da1c1(0xbf)]),'type':normalizeString(_0x1c99f5[_0x5da1c1(0xa4)]),'visible':typeof _0x1c99f5[_0x5da1c1(0xb1)]===_0x5da1c1(0xb2)?_0x1c99f5['visible']:null,'sort':typeof _0x1c99f5['sort']===_0x5da1c1(0xc5)&&Number['isFinite'](_0x1c99f5[_0x5da1c1(0xa5)])?_0x1c99f5[_0x5da1c1(0xa5)]:null,'resources':normalizeResources(_0x1c99f5[_0x5da1c1(0xbe)]?.[_0x5da1c1(0xa8)])};return _0x40ec82[_0x5da1c1(0xad)]&&(_0x2efc39[_0x5da1c1(0xbe)]=_0x1c99f5['extend']??null),_0x2efc39;}function a101_0x2c32(){const _0x3ca360=['Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','label','verbose','list','read','3730EpUskc','visible','boolean','No\x20menus\x20found.','1596rhWAOI','parse','appCode','item','352rUOcPP','207881RDjgJo','3022083QNzqHD','\x20menu(s)','2992688rKuPeP','isFinite','extend','path','1358705JTIBPF','depth','push','4410798AfNGDu','map','number','index','length','isArray','children','type','sort','bool','string','resources','2fWNwpP','71460rimqxq'];a101_0x2c32=function(){return _0x3ca360;};return a101_0x2c32();}function normalizeSort(_0x3cf990){const _0x21ee81=a101_0x2801e8;return typeof _0x3cf990==='number'&&Number[_0x21ee81(0xbd)](_0x3cf990)?_0x3cf990:Number['POSITIVE_INFINITY'];}function normalizeString(_0x4074af){const _0xc79520=a101_0x2801e8;return typeof _0x4074af===_0xc79520(0xa7)?_0x4074af:'';}function normalizeResources(_0x39dc14){const _0xd98677=a101_0x2801e8;if(Array['isArray'](_0x39dc14))return _0x39dc14[_0xd98677(0xc4)](String);if(typeof _0x39dc14!=='string')return[];try{const _0x26f128=JSON[_0xd98677(0xb5)](_0x39dc14);return Array['isArray'](_0x26f128)?_0x26f128[_0xd98677(0xc4)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a102_0x2368(_0x52f6ce,_0x5e7fdc){_0x52f6ce=_0x52f6ce-0xf3;const _0x446b23=a102_0x446b();let _0x236878=_0x446b23[_0x52f6ce];return _0x236878;}(function(_0x516283,_0x205b5b){const _0x2afb96=a102_0x2368,_0x3625e5=_0x516283();while(!![]){try{const _0x515b8e=parseInt(_0x2afb96(0x104))/0x1+-parseInt(_0x2afb96(0xf7))/0x2*(parseInt(_0x2afb96(0x109))/0x3)+parseInt(_0x2afb96(0x10b))/0x4+-parseInt(_0x2afb96(0x100))/0x5*(parseInt(_0x2afb96(0xfb))/0x6)+-parseInt(_0x2afb96(0x101))/0x7*(-parseInt(_0x2afb96(0xfc))/0x8)+-parseInt(_0x2afb96(0xf4))/0x9+-parseInt(_0x2afb96(0x107))/0xa*(parseInt(_0x2afb96(0x10a))/0xb);if(_0x515b8e===_0x205b5b)break;else _0x3625e5['push'](_0x3625e5['shift']());}catch(_0x1fb5c3){_0x3625e5['push'](_0x3625e5['shift']());}}}(a102_0x446b,0x53fe1));function strWidth(_0x4e71e3){const _0x3f1d22=a102_0x2368;let _0x38c5a0=0x0;for(const _0x3e27e4 of _0x4e71e3){_0x38c5a0+=/[\u4e00-\u9fa5]/[_0x3f1d22(0x103)](_0x3e27e4)?0x2:0x1;}return _0x38c5a0;}function a102_0x446b(){const _0x5c83b9=['test','677904hNpshy','length','max','10QYrTeL','path','4197okYBLJ','2546863hTdwUd','908128ZlQtHE','repeat','\x20\x20Affected\x20menus:\x20','(unchanged)','push','2787390jqGQGR','\x20\x20\x20\x20CSS:\x20','\x20\x20\x20\x20JS:\x20\x20','254zjvonh','join','Platform','showOnline','18024KkIpQK','1094264KgxWXS','online','local','\x20\x20No\x20pages\x20to\x20sync.','420xVllox','21kuTeWo','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.'];a102_0x446b=function(){return _0x5c83b9;};return a102_0x446b();}function padRight(_0x4175f4,_0x31cc6b){const _0xe0dbc5=a102_0x2368,_0x168d6b=strWidth(_0x4175f4);return _0x4175f4+'\x20'['repeat'](Math[_0xe0dbc5(0x106)](0x0,_0x31cc6b-_0x168d6b));}export function renderCompareTable(_0x30e237,_0xdc5351={}){const _0x46406b=a102_0x2368;if(_0x30e237['length']===0x0)return'';const _0x3c5d7b=_0xdc5351[_0x46406b(0xfa)]??!![],_0x2da147=Math[_0x46406b(0x106)](0x1e,..._0x30e237['map'](_0x164140=>strWidth(_0x164140['label']))),_0x58ff75=0x4,_0xd127f4=[],_0x5e2c99='\x20\x20'+padRight('Menu\x20Name',_0x2da147),_0x2063cb=padRight('Local',_0x58ff75),_0x2cde91=_0x3c5d7b?'\x20\x20'+padRight(_0x46406b(0xf9),_0x58ff75):'';_0xd127f4[_0x46406b(0xf3)](_0x5e2c99+'\x20\x20'+_0x2063cb+(_0x3c5d7b?_0x2cde91:'')),_0xd127f4['push']('\x20\x20'+'─'[_0x46406b(0x10c)](_0x2da147)+'\x20\x20'+'─'[_0x46406b(0x10c)](_0x58ff75)+(_0x3c5d7b?'\x20\x20'+'─'[_0x46406b(0x10c)](_0x58ff75):''));for(const _0x47aa6b of _0x30e237){const _0x2c6644=padRight(_0x47aa6b['label'],_0x2da147),_0xa0ddf7=_0x47aa6b[_0x46406b(0xfe)]?'✓':'✗',_0x4b8528=padRight(_0xa0ddf7,_0x58ff75);let _0x304fba='\x20\x20'+_0x2c6644+'\x20\x20'+_0x4b8528;if(_0x3c5d7b){const _0x1b109a=_0x47aa6b[_0x46406b(0xfd)]?'✓':'✗';_0x304fba+='\x20\x20'+padRight(_0x1b109a,_0x58ff75);}_0xd127f4['push'](_0x304fba);}return _0xd127f4[_0x46406b(0xf8)]('\x0a');}export function renderSyncSummary(_0x646548,_0x27886b){const _0x2ce3ca=a102_0x2368;if(_0x646548[_0x2ce3ca(0x105)]===0x0)return _0x27886b?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x2ce3ca(0xff);const _0x5f433f=['\x20\x20'+_0x646548[_0x2ce3ca(0x105)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x57d1bd of _0x646548){_0x5f433f[_0x2ce3ca(0xf3)]('\x20\x20\x20\x20•\x20'+_0x57d1bd['label']+'\x20('+_0x57d1bd[_0x2ce3ca(0x108)]+')');}return _0x5f433f[_0x2ce3ca(0xf8)]('\x0a');}export function renderUpdateSummary(_0x1f0bb6,_0x1bca5e){const _0x48393c=a102_0x2368;if(_0x1f0bb6[_0x48393c(0x105)]===0x0)return _0x48393c(0x102);const _0x1b97f2=['\x20\x20'+_0x1f0bb6[_0x48393c(0x105)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x48393c(0xf6)+(_0x1bca5e[0x0]??'(unchanged)'),_0x48393c(0xf5)+(_0x1bca5e[0x1]??_0x48393c(0x10e)),'',_0x48393c(0x10d)+_0x1f0bb6['join'](',\x20')];return _0x1b97f2[_0x48393c(0xf8)]('\x0a');}
1
+ (function(_0x1eff7c,_0x2a32eb){const _0x1943e4=a102_0xbfa5,_0x3127dd=_0x1eff7c();while(!![]){try{const _0x3b1d9c=-parseInt(_0x1943e4(0x191))/0x1*(parseInt(_0x1943e4(0x194))/0x2)+-parseInt(_0x1943e4(0x183))/0x3*(parseInt(_0x1943e4(0x18a))/0x4)+-parseInt(_0x1943e4(0x186))/0x5+-parseInt(_0x1943e4(0x187))/0x6*(-parseInt(_0x1943e4(0x185))/0x7)+parseInt(_0x1943e4(0x181))/0x8*(parseInt(_0x1943e4(0x18d))/0x9)+parseInt(_0x1943e4(0x188))/0xa+parseInt(_0x1943e4(0x18b))/0xb*(parseInt(_0x1943e4(0x193))/0xc);if(_0x3b1d9c===_0x2a32eb)break;else _0x3127dd['push'](_0x3127dd['shift']());}catch(_0x43ae40){_0x3127dd['push'](_0x3127dd['shift']());}}}(a102_0x3b75,0xca2da));function a102_0x3b75(){const _0x4ee9eb=['(unchanged)','14964396GHPypk','48778UCsMWU','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','local','\x20\x20Affected\x20menus:\x20','Platform','join','test','map','repeat','\x20\x20\x20\x20CSS:\x20','push','path','5431544UQqQAJ','max','3CbVwGe','showOnline','22925GynlTN','7600045GErYzs','510LRMHvH','7476350ataHMX','\x20\x20No\x20pages\x20to\x20sync.','3989092IHuraN','22Qlkepe','label','9DSKofA','\x20\x20\x20\x20JS:\x20\x20','\x20\x20\x20\x20•\x20','length','35YnFeUP'];a102_0x3b75=function(){return _0x4ee9eb;};return a102_0x3b75();}function a102_0xbfa5(_0x28c96e,_0x382026){_0x28c96e=_0x28c96e-0x17a;const _0x3b7529=a102_0x3b75();let _0xbfa576=_0x3b7529[_0x28c96e];return _0xbfa576;}function strWidth(_0xf2d5){const _0x4a35eb=a102_0xbfa5;let _0x15d9aa=0x0;for(const _0x44a648 of _0xf2d5){_0x15d9aa+=/[\u4e00-\u9fa5]/[_0x4a35eb(0x17b)](_0x44a648)?0x2:0x1;}return _0x15d9aa;}function padRight(_0x5176e9,_0x308a52){const _0x3d9f47=a102_0xbfa5,_0x3bb505=strWidth(_0x5176e9);return _0x5176e9+'\x20'['repeat'](Math[_0x3d9f47(0x182)](0x0,_0x308a52-_0x3bb505));}export function renderCompareTable(_0x4fcac6,_0x180232={}){const _0x26b072=a102_0xbfa5;if(_0x4fcac6[_0x26b072(0x190)]===0x0)return'';const _0x465b8f=_0x180232[_0x26b072(0x184)]??!![],_0x137f27=Math[_0x26b072(0x182)](0x1e,..._0x4fcac6[_0x26b072(0x17c)](_0x4507c5=>strWidth(_0x4507c5['label']))),_0x8166e0=0x4,_0x5233ce=[],_0x39f628='\x20\x20'+padRight('Menu\x20Name',_0x137f27),_0x2115e1=padRight('Local',_0x8166e0),_0x23b99b=_0x465b8f?'\x20\x20'+padRight(_0x26b072(0x199),_0x8166e0):'';_0x5233ce[_0x26b072(0x17f)](_0x39f628+'\x20\x20'+_0x2115e1+(_0x465b8f?_0x23b99b:'')),_0x5233ce[_0x26b072(0x17f)]('\x20\x20'+'─'[_0x26b072(0x17d)](_0x137f27)+'\x20\x20'+'─'[_0x26b072(0x17d)](_0x8166e0)+(_0x465b8f?'\x20\x20'+'─'[_0x26b072(0x17d)](_0x8166e0):''));for(const _0x27527d of _0x4fcac6){const _0x5e6519=padRight(_0x27527d[_0x26b072(0x18c)],_0x137f27),_0x31529c=_0x27527d[_0x26b072(0x197)]?'✓':'✗',_0xee16b0=padRight(_0x31529c,_0x8166e0);let _0x1b5004='\x20\x20'+_0x5e6519+'\x20\x20'+_0xee16b0;if(_0x465b8f){const _0x3fa7c5=_0x27527d['online']?'✓':'✗';_0x1b5004+='\x20\x20'+padRight(_0x3fa7c5,_0x8166e0);}_0x5233ce['push'](_0x1b5004);}return _0x5233ce[_0x26b072(0x17a)]('\x0a');}export function renderSyncSummary(_0x4c4a09,_0x1e0055){const _0x19ee38=a102_0xbfa5;if(_0x4c4a09[_0x19ee38(0x190)]===0x0)return _0x1e0055?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x19ee38(0x189);const _0x430340=['\x20\x20'+_0x4c4a09[_0x19ee38(0x190)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x1a8cd2 of _0x4c4a09){_0x430340[_0x19ee38(0x17f)](_0x19ee38(0x18f)+_0x1a8cd2[_0x19ee38(0x18c)]+'\x20('+_0x1a8cd2[_0x19ee38(0x180)]+')');}return _0x430340[_0x19ee38(0x17a)]('\x0a');}export function renderUpdateSummary(_0x37248d,_0x5ff61c){const _0x57ac6d=a102_0xbfa5;if(_0x37248d[_0x57ac6d(0x190)]===0x0)return _0x57ac6d(0x196);const _0x22afa6=['\x20\x20'+_0x37248d[_0x57ac6d(0x190)]+_0x57ac6d(0x195),_0x57ac6d(0x18e)+(_0x5ff61c[0x0]??_0x57ac6d(0x192)),_0x57ac6d(0x17e)+(_0x5ff61c[0x1]??_0x57ac6d(0x192)),'',_0x57ac6d(0x198)+_0x37248d[_0x57ac6d(0x17a)](',\x20')];return _0x22afa6[_0x57ac6d(0x17a)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x4520f8,_0x76dcf){var _0x5d13aa=a103_0x32af,_0x388f43=_0x4520f8();while(!![]){try{var _0x55f906=-parseInt(_0x5d13aa(0x1d1))/0x1+-parseInt(_0x5d13aa(0x1d6))/0x2+-parseInt(_0x5d13aa(0x1d7))/0x3+-parseInt(_0x5d13aa(0x1d2))/0x4*(-parseInt(_0x5d13aa(0x1d4))/0x5)+parseInt(_0x5d13aa(0x1d0))/0x6+parseInt(_0x5d13aa(0x1d5))/0x7*(parseInt(_0x5d13aa(0x1cf))/0x8)+parseInt(_0x5d13aa(0x1d3))/0x9;if(_0x55f906===_0x76dcf)break;else _0x388f43['push'](_0x388f43['shift']());}catch(_0x451fa9){_0x388f43['push'](_0x388f43['shift']());}}}(a103_0xe170,0x6d6f5));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a103_0x32af(_0x174e8e,_0x51705a){_0x174e8e=_0x174e8e-0x1cf;var _0xe17023=a103_0xe170();var _0x32affc=_0xe17023[_0x174e8e];return _0x32affc;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a103_0xe170(){var _0x5dee88=['1387413SsfBqF','8gYoGAa','1797552DJQsPU','792983xBLZHy','1318468hPgqZM','8131860suZFhS','5fdFIpE','2683247iINgmx','424742AJDIiq'];a103_0xe170=function(){return _0x5dee88;};return a103_0xe170();}export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x521802,_0x550b08){var _0x62a838=a103_0x10a2,_0x3e3c0d=_0x521802();while(!![]){try{var _0x232e74=-parseInt(_0x62a838(0xd8))/0x1*(parseInt(_0x62a838(0xce))/0x2)+parseInt(_0x62a838(0xd9))/0x3*(parseInt(_0x62a838(0xd7))/0x4)+parseInt(_0x62a838(0xd0))/0x5+parseInt(_0x62a838(0xd1))/0x6*(parseInt(_0x62a838(0xd3))/0x7)+-parseInt(_0x62a838(0xd5))/0x8*(parseInt(_0x62a838(0xd2))/0x9)+parseInt(_0x62a838(0xd6))/0xa*(-parseInt(_0x62a838(0xd4))/0xb)+parseInt(_0x62a838(0xcf))/0xc*(parseInt(_0x62a838(0xcd))/0xd);if(_0x232e74===_0x550b08)break;else _0x3e3c0d['push'](_0x3e3c0d['shift']());}catch(_0xbaa1c2){_0x3e3c0d['push'](_0x3e3c0d['shift']());}}}(a103_0x5217,0x4f238));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';function a103_0x10a2(_0x5acd72,_0x1373d2){_0x5acd72=_0x5acd72-0xcd;var _0x5217f9=a103_0x5217();var _0x10a270=_0x5217f9[_0x5acd72];return _0x10a270;}export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';function a103_0x5217(){var _0x2b1230=['3042070PNSmaL','164FHkKRM','36089TqTykh','24168LDWTNj','1446458wBzlsG','2hVJzmt','84ETHDuo','532230xDsEaQ','97206KqQamd','312057MAHEjw','133mxXhaW','22dmytcC','128WPJfcq'];a103_0x5217=function(){return _0x2b1230;};return a103_0x5217();}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x528c14,_0x36a74e){const _0x43ee04=a104_0x5d68,_0x548b7e=_0x528c14();while(!![]){try{const _0x3e864b=-parseInt(_0x43ee04(0xfa))/0x1+-parseInt(_0x43ee04(0x114))/0x2*(parseInt(_0x43ee04(0x11f))/0x3)+parseInt(_0x43ee04(0x104))/0x4+-parseInt(_0x43ee04(0x10f))/0x5+parseInt(_0x43ee04(0x123))/0x6*(-parseInt(_0x43ee04(0x110))/0x7)+parseInt(_0x43ee04(0x105))/0x8*(parseInt(_0x43ee04(0x11d))/0x9)+parseInt(_0x43ee04(0x115))/0xa;if(_0x3e864b===_0x36a74e)break;else _0x548b7e['push'](_0x548b7e['shift']());}catch(_0x5cb6bd){_0x548b7e['push'](_0x548b7e['shift']());}}}(a104_0x43b6,0x2ee55));import a104_0x122e9c from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a104_0x43b6(){const _0x4864e7=['[already\x20on\x20platform]','has','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','filter','No\x20local\x20pages\x20found.','376156dGkFGK','72OJvroc','isTTY','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','JS\x20URL\x20check\x20failed','map','Cancelled.','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','length','path','red','931850eQBLMN','154qteqrs','ExitPromptError','succeed','catch','58SlvWmW','3711350uivDFN','\x20\x20Checking\x20JS\x20URL\x20reachability...','stdin','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','error','cyan','gray','includes','349038DCiLKr','name','6423KcESDA','test','start','\x20\x20JS\x20URL:','33390nHYhGO','cancelled','green','label','No\x20menus\x20selected.','[new]','251238YEwBQe','trim','CSS\x20URL\x20check\x20failed','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20CSS\x20URL:'];a104_0x43b6=function(){return _0x4864e7;};return a104_0x43b6();}import a104_0x1f606d from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x426939){const _0x40a895=a104_0x5d68;return _0x426939[_0x40a895(0x113)](_0x395519=>{const _0xd87620=_0x40a895;if(_0x395519?.[_0xd87620(0x11e)]===_0xd87620(0x111))throw CliErrors[_0xd87620(0x124)](_0xd87620(0x10a));throw _0x395519;});}export function startSpinner(_0x344cba){const _0x1f27dd=a104_0x5d68;return a104_0x1f606d({'text':_0x344cba,'color':_0x1f27dd(0x11a)})[_0x1f27dd(0x121)]();}export function stopSpinner(_0x140d84,_0x404fe2,_0x2cf5d4){const _0x1b3e30=a104_0x5d68;_0x2cf5d4?_0x140d84[_0x1b3e30(0x112)](_0x404fe2):_0x140d84['fail'](_0x404fe2);}export async function askConfirm(_0x23e721){return onCancel(confirm({'message':_0x23e721,'theme':{'prefix':''}}));}export async function askJsUrl(_0x443f18){const _0x2ea5df=a104_0x5d68;while(!![]){const _0x337fe2=await onCancel(input({'message':_0x2ea5df(0x122),'default':_0x443f18,'theme':{'prefix':''}}));if(_0x337fe2[_0x2ea5df(0xfb)]()==='')throw CliErrors['cancelled'](_0x2ea5df(0x10a));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x337fe2[_0x2ea5df(0xfb)]())){console[_0x2ea5df(0x119)](a104_0x122e9c['red']('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x535a21=startSpinner(_0x2ea5df(0x116));try{const _0x1aca1c=await isUrlReachable(_0x337fe2[_0x2ea5df(0xfb)]());stopSpinner(_0x535a21,'JS\x20URL\x20checked',_0x1aca1c);if(!_0x1aca1c){console[_0x2ea5df(0x119)](a104_0x122e9c[_0x2ea5df(0x10e)](_0x2ea5df(0x107)));continue;}return _0x337fe2[_0x2ea5df(0xfb)]();}catch(_0x469460){stopSpinner(_0x535a21,_0x2ea5df(0x108),![]);throw _0x469460;}}}function a104_0x5d68(_0x45f0ee,_0x3a0421){_0x45f0ee=_0x45f0ee-0xf7;const _0x43b688=a104_0x43b6();let _0x5d6832=_0x43b688[_0x45f0ee];return _0x5d6832;}export async function askCssUrl(_0x23c958){const _0x35b798=a104_0x5d68;while(!![]){const _0x3134d6=await onCancel(input({'message':_0x35b798(0xfe),'default':_0x23c958,'theme':{'prefix':''}}));if(_0x3134d6[_0x35b798(0xfb)]()==='')throw CliErrors['cancelled'](_0x35b798(0x10a));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x35b798(0x120)](_0x3134d6[_0x35b798(0xfb)]())){console['error'](a104_0x122e9c[_0x35b798(0x10e)](_0x35b798(0x10b)));continue;}const _0x11c367=startSpinner(_0x35b798(0xfd));try{const _0x2fb2cf=await isUrlReachable(_0x3134d6[_0x35b798(0xfb)]());stopSpinner(_0x11c367,'CSS\x20URL\x20checked',_0x2fb2cf);if(!_0x2fb2cf){console['error'](a104_0x122e9c[_0x35b798(0x10e)](_0x35b798(0x118)));continue;}return _0x3134d6[_0x35b798(0xfb)]();}catch(_0x28784a){stopSpinner(_0x11c367,_0x35b798(0xfc),![]);throw _0x28784a;}}}export async function selectPages(_0x565b55,_0x3fd84c,_0x32f002){const _0x536613=a104_0x5d68,_0x3b5526=_0x565b55[_0x536613(0x109)](_0x20f580=>({'name':_0x20f580['label']+'\x20\x20'+(_0x3fd84c[_0x536613(0x100)](_0x20f580[_0x536613(0x10d)])?a104_0x122e9c[_0x536613(0x11b)](_0x536613(0xff)):a104_0x122e9c[_0x536613(0x125)](_0x536613(0xf9))),'value':_0x20f580[_0x536613(0xf7)],'checked':_0x32f002?_0x32f002[_0x536613(0x11c)](_0x20f580[_0x536613(0xf7)]):!_0x3fd84c[_0x536613(0x100)](_0x20f580[_0x536613(0x10d)])}));if(_0x3b5526[_0x536613(0x10c)]===0x0)throw new Error(_0x536613(0x103));const _0x1661f4=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x3b5526,'loop':![],'theme':{'prefix':''}}));if(_0x1661f4[_0x536613(0x10c)]===0x0)throw new Error(_0x536613(0xf8));return _0x565b55[_0x536613(0x102)](_0x5948f0=>_0x1661f4['includes'](_0x5948f0[_0x536613(0xf7)]));}export function isInteractive(){const _0xebc831=a104_0x5d68;return process[_0xebc831(0x117)][_0xebc831(0x106)]===!![];}export function requireInteractive(){const _0x38f13f=a104_0x5d68;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x38f13f(0x101));}
1
+ function a104_0x4f1a(){const _0x567801=['has','734315AwMUrX','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','Cancelled.','CSS\x20URL\x20checked','catch','start','[already\x20on\x20platform]','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','name','117607cnrMUB','filter','cyan','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','label','[new]','trim','\x20\x20CSS\x20URL:','\x20\x20Checking\x20JS\x20URL\x20reachability...','gray','fail','\x20\x20Checking\x20CSS\x20URL\x20reachability...','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','220632NgfBER','red','No\x20local\x20pages\x20found.','2214450IIkUPq','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','isTTY','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','error','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','cancelled','includes','16CgMHKK','CSS\x20URL\x20check\x20failed','\x20\x20JS\x20URL:','60939XHmvqf','path','119260SaPBni','JS\x20URL\x20checked','test','6gqcpKd','574047ycUukK'];a104_0x4f1a=function(){return _0x567801;};return a104_0x4f1a();}(function(_0x2001ac,_0x574ac8){const _0x55fb84=a104_0x14ef,_0x59dca9=_0x2001ac();while(!![]){try{const _0x162f40=-parseInt(_0x55fb84(0x185))/0x1+parseInt(_0x55fb84(0x187))/0x2+-parseInt(_0x55fb84(0x18b))/0x3+-parseInt(_0x55fb84(0x177))/0x4+parseInt(_0x55fb84(0x18d))/0x5*(parseInt(_0x55fb84(0x18a))/0x6)+parseInt(_0x55fb84(0x196))/0x7*(-parseInt(_0x55fb84(0x182))/0x8)+parseInt(_0x55fb84(0x17a))/0x9;if(_0x162f40===_0x574ac8)break;else _0x59dca9['push'](_0x59dca9['shift']());}catch(_0x17bdcf){_0x59dca9['push'](_0x59dca9['shift']());}}}(a104_0x4f1a,0x1b387));import a104_0x5de3e2 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a104_0x1977f0 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x19085b){const _0x43424f=a104_0x14ef;return _0x19085b[_0x43424f(0x191)](_0x174acf=>{const _0x2cdeb5=_0x43424f;if(_0x174acf?.[_0x2cdeb5(0x195)]==='ExitPromptError')throw CliErrors[_0x2cdeb5(0x180)](_0x2cdeb5(0x18f));throw _0x174acf;});}export function startSpinner(_0xc378a0){const _0x85e4f2=a104_0x14ef;return a104_0x1977f0({'text':_0xc378a0,'color':_0x85e4f2(0x198)})[_0x85e4f2(0x192)]();}export function stopSpinner(_0xa9b7f7,_0x5c6669,_0x2b1400){const _0x1145c4=a104_0x14ef;_0x2b1400?_0xa9b7f7['succeed'](_0x5c6669):_0xa9b7f7[_0x1145c4(0x1a0)](_0x5c6669);}export async function askConfirm(_0x2791ac){return onCancel(confirm({'message':_0x2791ac,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4e00ed){const _0x39f728=a104_0x14ef;while(!![]){const _0x18642d=await onCancel(input({'message':_0x39f728(0x184),'default':_0x4e00ed,'theme':{'prefix':''}}));if(_0x18642d['trim']()==='')throw CliErrors[_0x39f728(0x180)](_0x39f728(0x18f));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x39f728(0x189)](_0x18642d[_0x39f728(0x19c)]())){console[_0x39f728(0x17e)](a104_0x5de3e2[_0x39f728(0x178)](_0x39f728(0x17f)));continue;}const _0x4b8525=startSpinner(_0x39f728(0x19e));try{const _0x1952a5=await isUrlReachable(_0x18642d[_0x39f728(0x19c)]());stopSpinner(_0x4b8525,_0x39f728(0x188),_0x1952a5);if(!_0x1952a5){console[_0x39f728(0x17e)](a104_0x5de3e2[_0x39f728(0x178)](_0x39f728(0x17b)));continue;}return _0x18642d[_0x39f728(0x19c)]();}catch(_0x3c99a2){stopSpinner(_0x4b8525,'JS\x20URL\x20check\x20failed',![]);throw _0x3c99a2;}}}export async function askCssUrl(_0x56fc23){const _0x254855=a104_0x14ef;while(!![]){const _0x260175=await onCancel(input({'message':_0x254855(0x19d),'default':_0x56fc23,'theme':{'prefix':''}}));if(_0x260175[_0x254855(0x19c)]()==='')throw CliErrors[_0x254855(0x180)](_0x254855(0x18f));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x254855(0x189)](_0x260175[_0x254855(0x19c)]())){console[_0x254855(0x17e)](a104_0x5de3e2[_0x254855(0x178)](_0x254855(0x18e)));continue;}const _0x413b38=startSpinner(_0x254855(0x175));try{const _0x3fcec0=await isUrlReachable(_0x260175[_0x254855(0x19c)]());stopSpinner(_0x413b38,_0x254855(0x190),_0x3fcec0);if(!_0x3fcec0){console[_0x254855(0x17e)](a104_0x5de3e2[_0x254855(0x178)](_0x254855(0x17d)));continue;}return _0x260175['trim']();}catch(_0x525ecb){stopSpinner(_0x413b38,_0x254855(0x183),![]);throw _0x525ecb;}}}export async function selectPages(_0x13b9c6,_0x7b4814,_0x9edd75){const _0x20659d=a104_0x14ef,_0x4f9fd8=_0x13b9c6['map'](_0x33b495=>({'name':_0x33b495[_0x20659d(0x19a)]+'\x20\x20'+(_0x7b4814[_0x20659d(0x18c)](_0x33b495[_0x20659d(0x186)])?a104_0x5de3e2[_0x20659d(0x19f)](_0x20659d(0x193)):a104_0x5de3e2['green'](_0x20659d(0x19b))),'value':_0x33b495[_0x20659d(0x19a)],'checked':_0x9edd75?_0x9edd75['includes'](_0x33b495[_0x20659d(0x19a)]):!_0x7b4814[_0x20659d(0x18c)](_0x33b495[_0x20659d(0x186)])}));if(_0x4f9fd8['length']===0x0)throw new Error(_0x20659d(0x179));const _0x3d535e=await onCancel(checkbox({'message':_0x20659d(0x194),'choices':_0x4f9fd8,'loop':![],'theme':{'prefix':''}}));if(_0x3d535e['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x13b9c6[_0x20659d(0x197)](_0x527486=>_0x3d535e[_0x20659d(0x181)](_0x527486[_0x20659d(0x19a)]));}function a104_0x14ef(_0x19a983,_0x31cc17){_0x19a983=_0x19a983-0x175;const _0x4f1add=a104_0x4f1a();let _0x14efca=_0x4f1add[_0x19a983];return _0x14efca;}export function isInteractive(){const _0xe1fc27=a104_0x14ef;return process['stdin'][_0xe1fc27(0x17c)]===!![];}export function requireInteractive(){const _0x366b49=a104_0x14ef;if(!isInteractive())throw new Error(_0x366b49(0x176)+_0x366b49(0x199));}
@@ -1 +1 @@
1
- const a105_0x3a2952=a105_0x54d5;(function(_0x5a1bc0,_0x88d570){const _0x174d12=a105_0x54d5,_0xaba6bb=_0x5a1bc0();while(!![]){try{const _0x10709e=parseInt(_0x174d12(0x104))/0x1*(-parseInt(_0x174d12(0x113))/0x2)+parseInt(_0x174d12(0x102))/0x3*(parseInt(_0x174d12(0x107))/0x4)+parseInt(_0x174d12(0x112))/0x5+-parseInt(_0x174d12(0xfd))/0x6*(parseInt(_0x174d12(0xfc))/0x7)+-parseInt(_0x174d12(0x101))/0x8*(-parseInt(_0x174d12(0x111))/0x9)+-parseInt(_0x174d12(0x110))/0xa+parseInt(_0x174d12(0x117))/0xb;if(_0x10709e===_0x88d570)break;else _0xaba6bb['push'](_0xaba6bb['shift']());}catch(_0x544f6e){_0xaba6bb['push'](_0xaba6bb['shift']());}}}(a105_0x2fdc,0x2a82d));import{readdirSync,statSync,readFileSync}from'fs';function a105_0x2fdc(){const _0x23968d=['248247ELSPvC','383160LjlOFD','8wlZHiz','slice','match','forEach','6102613xARjZE','join','82250aJycIF','156hNBBlc','endsWith','src/pages','concat','8WERhHe','87681uRloFD','isDirectory','17584hvofXo','replace','split','4amaYSa','trim','filter','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','replaceAll','path','.tsx','index.tsx','utf-8','1382640RooflY'];a105_0x2fdc=function(){return _0x23968d;};return a105_0x2fdc();}import{join,relative,resolve,sep}from'path';function a105_0x54d5(_0x2e9a08,_0xfa5193){_0x2e9a08=_0x2e9a08-0xfc;const _0x2fdc09=a105_0x2fdc();let _0x54d5c4=_0x2fdc09[_0x2e9a08];return _0x54d5c4;}const pagesDir=resolve(process['cwd'](),a105_0x3a2952(0xff));export function extractTitleFromComment(_0x20aca2){const _0x672877=a105_0x3a2952;try{const _0x43ae6f=readFileSync(_0x20aca2,_0x672877(0x10f)),_0x276f4e=_0x43ae6f[_0x672877(0x115)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x276f4e&&_0x276f4e[0x1]){const _0x137355=_0x276f4e[0x1],_0x6e3b5f=_0x137355['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x6e3b5f&&_0x6e3b5f[0x1])return _0x6e3b5f[0x1][_0x672877(0x108)]();}let _0x17a19d=null;const _0x293b01=_0x43ae6f['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x293b01&&_0x293b01[0x1]&&(_0x17a19d=_0x293b01[0x1]);if(!_0x17a19d){const _0x4c3e0c=_0x43ae6f[_0x672877(0x115)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x4c3e0c&&_0x4c3e0c[0x1]&&(_0x17a19d=_0x4c3e0c[0x1]);}if(_0x17a19d){const _0x2611af=new RegExp('\x5cb'+_0x17a19d+_0x672877(0x10a)),_0x1118a1=_0x43ae6f[_0x672877(0x115)](_0x2611af);if(_0x1118a1&&_0x1118a1[0x1])return _0x1118a1[0x1];return _0x17a19d;}return null;}catch(_0x310077){return null;}}export function getLocalPages(_0x22c294=pagesDir,_0x333d8f=pagesDir){const _0x1c491e=a105_0x3a2952;let _0x57063a=[];const _0x1076f6=readdirSync(_0x22c294);return _0x1076f6[_0x1c491e(0x116)](_0x326dc2=>{const _0x1ff417=_0x1c491e,_0x5c197f=join(_0x22c294,_0x326dc2),_0x223bab=statSync(_0x5c197f);if(_0x223bab&&_0x223bab[_0x1ff417(0x103)]())_0x57063a=_0x57063a[_0x1ff417(0x100)](getLocalPages(_0x5c197f,_0x333d8f));else{if(_0x326dc2[_0x1ff417(0xfe)](_0x1ff417(0x10d))){let _0xe1d04=relative(_0x333d8f,_0x5c197f);_0xe1d04[_0x1ff417(0xfe)](_0x1ff417(0x10e))?_0xe1d04=_0xe1d04['replace'](/index\.tsx$/,''):_0xe1d04=_0xe1d04[_0x1ff417(0x105)](/\.tsx$/,'');_0xe1d04[_0x1ff417(0xfe)](sep)&&(_0xe1d04=_0xe1d04[_0x1ff417(0x114)](0x0,-0x1));const _0x347f4e=_0xe1d04[_0x1ff417(0x106)](sep)[_0x1ff417(0x118)]('/'),_0x1d5914=extractTitleFromComment(_0x5c197f),_0x2e481c=_0x1d5914||_0x347f4e;_0x57063a['push']({'path':_0x347f4e[_0x1ff417(0x10b)]('$',':'),'label':_0x2e481c});}}}),_0x57063a[_0x1c491e(0x109)](_0x34a578=>_0x34a578[_0x1c491e(0x10c)]!=='');}
1
+ const a105_0x3ca849=a105_0xfee0;(function(_0x4c9e4f,_0x1d8f01){const _0x3d7072=a105_0xfee0,_0x3f4f25=_0x4c9e4f();while(!![]){try{const _0xa79bda=-parseInt(_0x3d7072(0x133))/0x1*(parseInt(_0x3d7072(0x120))/0x2)+-parseInt(_0x3d7072(0x12f))/0x3+-parseInt(_0x3d7072(0x138))/0x4+-parseInt(_0x3d7072(0x139))/0x5*(parseInt(_0x3d7072(0x132))/0x6)+parseInt(_0x3d7072(0x127))/0x7*(parseInt(_0x3d7072(0x12d))/0x8)+-parseInt(_0x3d7072(0x12a))/0x9+parseInt(_0x3d7072(0x12e))/0xa*(parseInt(_0x3d7072(0x131))/0xb);if(_0xa79bda===_0x1d8f01)break;else _0x3f4f25['push'](_0x3f4f25['shift']());}catch(_0x123149){_0x3f4f25['push'](_0x3f4f25['shift']());}}}(a105_0x3213,0x91538));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a105_0x3213(){const _0x1bbcf0=['join','path','split','endsWith','3952316ZQdzqW','267175hdmBky','trim','replaceAll','.tsx','22RLbzTq','match','isDirectory','push','cwd','replace','utf-8','203OEpTst','filter','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','10299411KCENVK','forEach','slice','256888ocndOh','250SClvAF','2069733zcSxxs','index.tsx','1469512wtuGeE','60hTskmm','29004VowyOz'];a105_0x3213=function(){return _0x1bbcf0;};return a105_0x3213();}const pagesDir=resolve(process[a105_0x3ca849(0x124)](),'src/pages');function a105_0xfee0(_0x36cac6,_0x1430b4){_0x36cac6=_0x36cac6-0x120;const _0x32133d=a105_0x3213();let _0xfee01b=_0x32133d[_0x36cac6];return _0xfee01b;}export function extractTitleFromComment(_0x3a3c3b){const _0x13b5f2=a105_0x3ca849;try{const _0x5112fc=readFileSync(_0x3a3c3b,_0x13b5f2(0x126)),_0x431442=_0x5112fc[_0x13b5f2(0x121)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x431442&&_0x431442[0x1]){const _0x365628=_0x431442[0x1],_0x4dc80f=_0x365628[_0x13b5f2(0x121)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x4dc80f&&_0x4dc80f[0x1])return _0x4dc80f[0x1][_0x13b5f2(0x13a)]();}let _0x44fc31=null;const _0x5531a9=_0x5112fc['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x5531a9&&_0x5531a9[0x1]&&(_0x44fc31=_0x5531a9[0x1]);if(!_0x44fc31){const _0x27b72f=_0x5112fc[_0x13b5f2(0x121)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x27b72f&&_0x27b72f[0x1]&&(_0x44fc31=_0x27b72f[0x1]);}if(_0x44fc31){const _0x532939=new RegExp('\x5cb'+_0x44fc31+_0x13b5f2(0x129)),_0x2831c5=_0x5112fc[_0x13b5f2(0x121)](_0x532939);if(_0x2831c5&&_0x2831c5[0x1])return _0x2831c5[0x1];return _0x44fc31;}return null;}catch(_0xf49bcb){return null;}}export function getLocalPages(_0x5dce9c=pagesDir,_0x593fcc=pagesDir){const _0x4c67c1=a105_0x3ca849;let _0xd7d254=[];const _0x5c54b4=readdirSync(_0x5dce9c);return _0x5c54b4[_0x4c67c1(0x12b)](_0x4f44db=>{const _0x46effc=_0x4c67c1,_0x2ea0b3=join(_0x5dce9c,_0x4f44db),_0x1bb8a1=statSync(_0x2ea0b3);if(_0x1bb8a1&&_0x1bb8a1[_0x46effc(0x122)]())_0xd7d254=_0xd7d254['concat'](getLocalPages(_0x2ea0b3,_0x593fcc));else{if(_0x4f44db[_0x46effc(0x137)](_0x46effc(0x13c))){let _0x3f3e0b=relative(_0x593fcc,_0x2ea0b3);_0x3f3e0b[_0x46effc(0x137)](_0x46effc(0x130))?_0x3f3e0b=_0x3f3e0b[_0x46effc(0x125)](/index\.tsx$/,''):_0x3f3e0b=_0x3f3e0b[_0x46effc(0x125)](/\.tsx$/,'');_0x3f3e0b[_0x46effc(0x137)](sep)&&(_0x3f3e0b=_0x3f3e0b[_0x46effc(0x12c)](0x0,-0x1));const _0x216f18=_0x3f3e0b[_0x46effc(0x136)](sep)[_0x46effc(0x134)]('/'),_0x16f8e5=extractTitleFromComment(_0x2ea0b3),_0x24f630=_0x16f8e5||_0x216f18;_0xd7d254[_0x46effc(0x123)]({'path':_0x216f18[_0x46effc(0x13b)]('$',':'),'label':_0x24f630});}}}),_0xd7d254[_0x4c67c1(0x128)](_0x468bec=>_0x468bec[_0x4c67c1(0x135)]!=='');}
@@ -1 +1 @@
1
- (function(_0x3cf40a,_0x10ca83){const _0x5b77b6=a106_0x3739,_0x2eb2c5=_0x3cf40a();while(!![]){try{const _0xfca958=parseInt(_0x5b77b6(0x1af))/0x1*(-parseInt(_0x5b77b6(0x199))/0x2)+-parseInt(_0x5b77b6(0x19d))/0x3*(parseInt(_0x5b77b6(0x1a4))/0x4)+parseInt(_0x5b77b6(0x1ac))/0x5+-parseInt(_0x5b77b6(0x1a6))/0x6*(-parseInt(_0x5b77b6(0x1aa))/0x7)+-parseInt(_0x5b77b6(0x193))/0x8*(-parseInt(_0x5b77b6(0x190))/0x9)+-parseInt(_0x5b77b6(0x198))/0xa+-parseInt(_0x5b77b6(0x19b))/0xb*(-parseInt(_0x5b77b6(0x191))/0xc);if(_0xfca958===_0x10ca83)break;else _0x2eb2c5['push'](_0x2eb2c5['shift']());}catch(_0x51338f){_0x2eb2c5['push'](_0x2eb2c5['shift']());}}}(a106_0x28bf,0xa5aec));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(_0x387d9f){const _0x31f4f6=a106_0x3739,_0x50d0ba=[];return!isValidJsHttpsUrl(_0x387d9f)&&_0x50d0ba['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x50d0ba[_0x31f4f6(0x19e)]===0x0,'errors':_0x50d0ba};}export function validateCssUrl(_0x57aec8){const _0x4bed75=a106_0x3739,_0x4dc782=[];return!isValidCssHttpsUrl(_0x57aec8)&&_0x4dc782['push'](_0x4bed75(0x197)),{'ok':_0x4dc782[_0x4bed75(0x19e)]===0x0,'errors':_0x4dc782};}export async function validateJsUrlReachable(_0x204094){const _0x10a565=a106_0x3739,_0x288897=validateJsUrl(_0x204094);if(!_0x288897['ok'])return _0x288897;const _0x1a2a0b=await isUrlReachable(_0x204094);if(!_0x1a2a0b)_0x288897[_0x10a565(0x194)]['push'](_0x10a565(0x1ae));return{'ok':_0x288897[_0x10a565(0x194)][_0x10a565(0x19e)]===0x0,'errors':_0x288897[_0x10a565(0x194)]};}export async function validateCssUrlReachable(_0x4ecc31){const _0x5cdc74=a106_0x3739,_0x40a42c=validateCssUrl(_0x4ecc31);if(!_0x40a42c['ok'])return _0x40a42c;const _0x5c7487=await isUrlReachable(_0x4ecc31);if(!_0x5c7487)_0x40a42c['errors'][_0x5cdc74(0x1a5)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x40a42c[_0x5cdc74(0x194)][_0x5cdc74(0x19e)]===0x0,'errors':_0x40a42c[_0x5cdc74(0x194)]};}export function buildCompareRows(_0x1db620,_0x1e33eb){const _0x5ab71e=a106_0x3739;return _0x1db620[_0x5ab71e(0x1ab)](_0xd4f8b=>({'label':_0xd4f8b[_0x5ab71e(0x19c)],'path':_0xd4f8b[_0x5ab71e(0x1ad)],'local':!![],'online':_0x1e33eb[_0x5ab71e(0x1a7)](_0xd4f8b['path'])}));}export function filterNewPages(_0x3ab486,_0x31b13d,_0x566691){const _0x3c1b81=a106_0x3739;if(_0x566691&&_0x566691[_0x3c1b81(0x19e)]>0x0){const _0x265189=new Set(_0x566691[_0x3c1b81(0x1ab)](_0x1e16d5=>_0x1e16d5[_0x3c1b81(0x1a8)]())),_0x2efd20=_0x3ab486[_0x3c1b81(0x192)](_0x4f5660=>_0x265189[_0x3c1b81(0x1a7)](_0x4f5660[_0x3c1b81(0x19c)]));if(_0x2efd20[_0x3c1b81(0x19e)]===0x0)throw new Error(_0x3c1b81(0x1a2)+[..._0x265189][_0x3c1b81(0x1a9)](',\x20'));return _0x2efd20;}return _0x3ab486[_0x3c1b81(0x192)](_0x4ae839=>!_0x31b13d[_0x3c1b81(0x1a7)](_0x4ae839[_0x3c1b81(0x1ad)]));}export function filterPagesByLabels(_0x59b0af,_0x45853b){const _0x3bf20a=a106_0x3739,_0x4b4e37=[],_0x2b7503=[];for(const _0x1b6a1f of _0x45853b){const _0x341d5=_0x1b6a1f[_0x3bf20a(0x1a8)](),_0x49f641=_0x59b0af[_0x3bf20a(0x19f)](_0x11b499=>_0x11b499[_0x3bf20a(0x19c)]===_0x341d5);if(_0x49f641)_0x4b4e37[_0x3bf20a(0x1a5)](_0x49f641);else _0x2b7503['push'](_0x1b6a1f);}return{'matched':_0x4b4e37,'unmatched':_0x2b7503};}function a106_0x3739(_0x58ad35,_0x5d8519){_0x58ad35=_0x58ad35-0x18f;const _0x28bfe4=a106_0x28bf();let _0x373917=_0x28bfe4[_0x58ad35];return _0x373917;}export async function doCreateMenus(_0xcd9830,_0x3e5573,_0xc519a2,_0x3ed011){const _0x33cd3d=a106_0x3739,_0x2da895=await createMenus(_0xcd9830,_0x3e5573,_0xc519a2,_0x3ed011);return{'created':_0x2da895['length'],'failed':0x0,'labels':_0xc519a2[_0x33cd3d(0x1ab)](_0x2a4a84=>_0x2a4a84[_0x33cd3d(0x19c)]),'menus':_0x2da895};}export function filterMenusWithResources(_0x2af675){const _0x33e048=a106_0x3739;return _0x2af675[_0x33e048(0x192)](_0x2aea4f=>_0x2aea4f['resources'][_0x33e048(0x19e)]>0x0);}function a106_0x28bf(){const _0xc19b9f=['fulfilled','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','1870880xhUPKe','890sbxiwZ','extend','11YmzKWo','label','9keCNrP','length','find','status','resources','No\x20local\x20pages\x20matched\x20labels:\x20','allSettled','1365236sgwTze','push','597648JrmyGI','has','trim','join','28xjXJpU','map','472300fyOMuT','path','JS\x20URL\x20is\x20unreachable','2798UShWnX','value','18XpupfW','17560236wzKeLi','filter','4714064FvuhOv','errors','rejected'];a106_0x28bf=function(){return _0xc19b9f;};return a106_0x28bf();}export async function doUpdateCdnUrls(_0x4538a6,_0x11b896,_0x3412df,_0x3aebeb){const _0x22b0d3=a106_0x3739,_0x131cd7=_0x3412df[_0x22b0d3(0x192)](_0x2f5788=>_0x2f5788[_0x22b0d3(0x1a1)][_0x22b0d3(0x19e)]>0x0),_0x7d161d=await Promise[_0x22b0d3(0x1a3)](_0x131cd7[_0x22b0d3(0x1ab)](_0x1c6e89=>updateMenuCdnUrl(_0x4538a6,_0x11b896,{'id':_0x1c6e89['id'],'label':_0x1c6e89[_0x22b0d3(0x19c)],'path':_0x1c6e89[_0x22b0d3(0x1ad)],'resources':_0x3aebeb,'extend':_0x1c6e89[_0x22b0d3(0x19a)]??null}))),_0x1a13b2=_0x7d161d[_0x22b0d3(0x192)](_0x5973af=>_0x5973af[_0x22b0d3(0x1a0)]===_0x22b0d3(0x196))[_0x22b0d3(0x1ab)](_0x117600=>_0x117600[_0x22b0d3(0x18f)]),_0x383792=_0x7d161d[_0x22b0d3(0x192)](_0x532853=>_0x532853['status']===_0x22b0d3(0x195))[_0x22b0d3(0x19e)];return{'updated':_0x1a13b2['length'],'failed':_0x383792,'menus':_0x1a13b2};}export async function fetchMenuData(_0x45c0a1,_0x167fd7){const _0x367303=a106_0x3739,_0x3344c9=getLocalPages(),_0x12097c=await getOnlineMenuList(_0x45c0a1,_0x167fd7),_0x497095=new Set(_0x12097c[_0x367303(0x1ab)](_0x420cc4=>_0x420cc4[_0x367303(0x1ad)]));return{'localPages':_0x3344c9,'onlineMenuList':_0x12097c,'onlinePaths':_0x497095};}export async function fetchOnlineMenuList(_0x5563dd,_0x2cae9c){return getOnlineMenuList(_0x5563dd,_0x2cae9c);}
1
+ (function(_0x4bf600,_0x46e39a){const _0x46c25e=a106_0x10fe,_0xda15e6=_0x4bf600();while(!![]){try{const _0x30b352=-parseInt(_0x46c25e(0x156))/0x1*(parseInt(_0x46c25e(0x14f))/0x2)+-parseInt(_0x46c25e(0x157))/0x3*(parseInt(_0x46c25e(0x15f))/0x4)+-parseInt(_0x46c25e(0x14c))/0x5*(parseInt(_0x46c25e(0x147))/0x6)+-parseInt(_0x46c25e(0x154))/0x7+-parseInt(_0x46c25e(0x15b))/0x8*(parseInt(_0x46c25e(0x15e))/0x9)+parseInt(_0x46c25e(0x158))/0xa+parseInt(_0x46c25e(0x144))/0xb*(parseInt(_0x46c25e(0x15a))/0xc);if(_0x30b352===_0x46e39a)break;else _0xda15e6['push'](_0xda15e6['shift']());}catch(_0x5f5dc3){_0xda15e6['push'](_0xda15e6['shift']());}}}(a106_0x4edf,0x5c6ac));function a106_0x4edf(){const _0x29cf5e=['2973138KARjGG','JS\x20URL\x20is\x20unreachable','1XYuLDr','3tPlCQW','2911980MZBGTG','No\x20local\x20pages\x20matched\x20labels:\x20','28313208TFuuWx','1358480cTkTfS','resources','value','9CwtxhL','2417768rZwUTO','push','allSettled','trim','11sfgnnO','has','length','2628294AbVnpq','status','filter','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','label','5zStOLs','extend','CSS\x20URL\x20is\x20unreachable','1270114FOQorF','map','rejected','path','errors'];a106_0x4edf=function(){return _0x29cf5e;};return a106_0x4edf();}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(_0x2a8e3a){const _0x506eb5=a106_0x10fe,_0x33a767=[];return!isValidJsHttpsUrl(_0x2a8e3a)&&_0x33a767[_0x506eb5(0x160)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x33a767[_0x506eb5(0x146)]===0x0,'errors':_0x33a767};}export function validateCssUrl(_0x3c27c1){const _0xce2aea=a106_0x10fe,_0x210be4=[];return!isValidCssHttpsUrl(_0x3c27c1)&&_0x210be4[_0xce2aea(0x160)](_0xce2aea(0x14a)),{'ok':_0x210be4[_0xce2aea(0x146)]===0x0,'errors':_0x210be4};}function a106_0x10fe(_0x3a28c8,_0x397e9){_0x3a28c8=_0x3a28c8-0x143;const _0x4edf6c=a106_0x4edf();let _0x10fece=_0x4edf6c[_0x3a28c8];return _0x10fece;}export async function validateJsUrlReachable(_0x179738){const _0x175cd4=a106_0x10fe,_0x460f77=validateJsUrl(_0x179738);if(!_0x460f77['ok'])return _0x460f77;const _0x1fd54f=await isUrlReachable(_0x179738);if(!_0x1fd54f)_0x460f77[_0x175cd4(0x153)]['push'](_0x175cd4(0x155));return{'ok':_0x460f77[_0x175cd4(0x153)][_0x175cd4(0x146)]===0x0,'errors':_0x460f77[_0x175cd4(0x153)]};}export async function validateCssUrlReachable(_0x421c07){const _0x52d2fa=a106_0x10fe,_0x8789af=validateCssUrl(_0x421c07);if(!_0x8789af['ok'])return _0x8789af;const _0x5e7874=await isUrlReachable(_0x421c07);if(!_0x5e7874)_0x8789af[_0x52d2fa(0x153)][_0x52d2fa(0x160)](_0x52d2fa(0x14e));return{'ok':_0x8789af[_0x52d2fa(0x153)][_0x52d2fa(0x146)]===0x0,'errors':_0x8789af['errors']};}export function buildCompareRows(_0x4dc54f,_0x46fd73){const _0xf7ecb2=a106_0x10fe;return _0x4dc54f[_0xf7ecb2(0x150)](_0x5d5bdd=>({'label':_0x5d5bdd[_0xf7ecb2(0x14b)],'path':_0x5d5bdd['path'],'local':!![],'online':_0x46fd73[_0xf7ecb2(0x145)](_0x5d5bdd[_0xf7ecb2(0x152)])}));}export function filterNewPages(_0x4bce1c,_0x59c1a3,_0x44bd64){const _0x3d7455=a106_0x10fe;if(_0x44bd64&&_0x44bd64[_0x3d7455(0x146)]>0x0){const _0x5bdc66=new Set(_0x44bd64[_0x3d7455(0x150)](_0x463285=>_0x463285['trim']())),_0x1d827e=_0x4bce1c['filter'](_0x2204ed=>_0x5bdc66['has'](_0x2204ed[_0x3d7455(0x14b)]));if(_0x1d827e[_0x3d7455(0x146)]===0x0)throw new Error(_0x3d7455(0x159)+[..._0x5bdc66]['join'](',\x20'));return _0x1d827e;}return _0x4bce1c[_0x3d7455(0x149)](_0x6f15ba=>!_0x59c1a3[_0x3d7455(0x145)](_0x6f15ba[_0x3d7455(0x152)]));}export function filterPagesByLabels(_0x45ce1e,_0x2473f1){const _0x595c83=a106_0x10fe,_0x5b3449=[],_0x3b7ba0=[];for(const _0x5e3ecb of _0x2473f1){const _0x5b37c3=_0x5e3ecb[_0x595c83(0x143)](),_0x200bde=_0x45ce1e['find'](_0x127afc=>_0x127afc[_0x595c83(0x14b)]===_0x5b37c3);if(_0x200bde)_0x5b3449[_0x595c83(0x160)](_0x200bde);else _0x3b7ba0[_0x595c83(0x160)](_0x5e3ecb);}return{'matched':_0x5b3449,'unmatched':_0x3b7ba0};}export async function doCreateMenus(_0x5e2a5b,_0x5d208e,_0x5b83a0,_0x514d4d){const _0x58000d=a106_0x10fe,_0x2add11=await createMenus(_0x5e2a5b,_0x5d208e,_0x5b83a0,_0x514d4d);return{'created':_0x2add11[_0x58000d(0x146)],'failed':0x0,'labels':_0x5b83a0['map'](_0x482e24=>_0x482e24[_0x58000d(0x14b)]),'menus':_0x2add11};}export function filterMenusWithResources(_0x1e422a){const _0x41051f=a106_0x10fe;return _0x1e422a[_0x41051f(0x149)](_0x578c4f=>_0x578c4f[_0x41051f(0x15c)][_0x41051f(0x146)]>0x0);}export async function doUpdateCdnUrls(_0x2540b1,_0x367a52,_0x33f7c1,_0x431883){const _0x18ce71=a106_0x10fe,_0x390a89=_0x33f7c1[_0x18ce71(0x149)](_0x1a77b7=>_0x1a77b7[_0x18ce71(0x15c)][_0x18ce71(0x146)]>0x0),_0x106797=await Promise[_0x18ce71(0x161)](_0x390a89['map'](_0x18f21a=>updateMenuCdnUrl(_0x2540b1,_0x367a52,{'id':_0x18f21a['id'],'label':_0x18f21a[_0x18ce71(0x14b)],'path':_0x18f21a['path'],'resources':_0x431883,'extend':_0x18f21a[_0x18ce71(0x14d)]??null}))),_0x12d36f=_0x106797[_0x18ce71(0x149)](_0x5841c9=>_0x5841c9[_0x18ce71(0x148)]==='fulfilled')['map'](_0xb5015d=>_0xb5015d[_0x18ce71(0x15d)]),_0x4f157f=_0x106797['filter'](_0x529f0f=>_0x529f0f[_0x18ce71(0x148)]===_0x18ce71(0x151))['length'];return{'updated':_0x12d36f['length'],'failed':_0x4f157f,'menus':_0x12d36f};}export async function fetchMenuData(_0x1fbce6,_0x12a944){const _0x404168=a106_0x10fe,_0x46c912=getLocalPages(),_0x5ae54f=await getOnlineMenuList(_0x1fbce6,_0x12a944),_0x1ec39d=new Set(_0x5ae54f[_0x404168(0x150)](_0x4377e7=>_0x4377e7[_0x404168(0x152)]));return{'localPages':_0x46c912,'onlineMenuList':_0x5ae54f,'onlinePaths':_0x1ec39d};}export async function fetchOnlineMenuList(_0x58d5c0,_0x45b7c2){return getOnlineMenuList(_0x58d5c0,_0x45b7c2);}