@lovrabet/rabetbase-cli 2.3.4 → 2.3.5

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 (239) 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/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- const a88_0x12113e=a88_0x43de;function a88_0x43de(_0x31e341,_0x148c7d){_0x31e341=_0x31e341-0x173;const _0x48363d=a88_0x4836();let _0x43def8=_0x48363d[_0x31e341];return _0x43def8;}(function(_0x575802,_0x1b5f6c){const _0x262fac=a88_0x43de,_0x257b86=_0x575802();while(!![]){try{const _0x4963be=parseInt(_0x262fac(0x193))/0x1*(-parseInt(_0x262fac(0x17a))/0x2)+parseInt(_0x262fac(0x18f))/0x3*(parseInt(_0x262fac(0x178))/0x4)+-parseInt(_0x262fac(0x18c))/0x5+parseInt(_0x262fac(0x195))/0x6*(parseInt(_0x262fac(0x182))/0x7)+parseInt(_0x262fac(0x176))/0x8+-parseInt(_0x262fac(0x17c))/0x9*(-parseInt(_0x262fac(0x187))/0xa)+-parseInt(_0x262fac(0x190))/0xb*(parseInt(_0x262fac(0x181))/0xc);if(_0x4963be===_0x1b5f6c)break;else _0x257b86['push'](_0x257b86['shift']());}catch(_0x23ccfb){_0x257b86['push'](_0x257b86['shift']());}}}(a88_0x4836,0x60d5b));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a88_0x4836(){const _0x313425=['string','dbname','username','trim','Updated\x20db\x20link\x20','6234104JiWpjB','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','4zjDnEz','New\x20connection\x20parameter\x20string','52SioGYg','New\x20username','1104516LhIZDH','dbdesc','validation','str','dbName','324NvmUoi','14yUuFYn','write','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbDesc','dburl','40qQiABH','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20host:port','dbParam','New\x20description','709765sWnCJq','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbparam','2018049kmaTQM','808962MRfhwD','num','dbUrl','87Eqsusx','password','1750926DZzeDv'];a88_0x4836=function(){return _0x313425;};return a88_0x4836();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a88_0x12113e(0x184),'risk':a88_0x12113e(0x183),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x12113e(0x197),'type':a88_0x12113e(0x196),'description':'New\x20database\x20name'},{'name':a88_0x12113e(0x186),'type':a88_0x12113e(0x196),'description':a88_0x12113e(0x189)},{'name':a88_0x12113e(0x173),'type':a88_0x12113e(0x196),'description':a88_0x12113e(0x17b)},{'name':'password','type':'string','description':a88_0x12113e(0x177)},{'name':a88_0x12113e(0x18e),'type':a88_0x12113e(0x196),'description':a88_0x12113e(0x179)},{'name':a88_0x12113e(0x17d),'type':'string','description':a88_0x12113e(0x18b)}],async 'validate'(_0x28b273){const _0x127a47=a88_0x12113e,_0x2b3a4f=_0x28b273[_0x127a47(0x17f)](_0x127a47(0x186));if(_0x2b3a4f&&!validateDbUrl(_0x2b3a4f[_0x127a47(0x174)]()))throw CliErrors[_0x127a47(0x17e)](_0x127a47(0x188)+_0x2b3a4f+'\x22');},async 'dryRun'(_0x30a265){const _0x278f3f=a88_0x12113e,_0x3d4bcb=_0x30a265[_0x278f3f(0x191)]('id'),_0x2ccb76=await getDbLinkInfo(_0x3d4bcb),_0x32563d={..._0x2ccb76},_0x41dc1c=_0x30a265[_0x278f3f(0x17f)](_0x278f3f(0x197));if(_0x41dc1c)_0x32563d[_0x278f3f(0x180)]=_0x41dc1c;const _0x33a437=_0x30a265['str'](_0x278f3f(0x186));if(_0x33a437)_0x32563d[_0x278f3f(0x192)]=_0x33a437['trim']();const _0x8b5f93=_0x30a265['str'](_0x278f3f(0x173));if(_0x8b5f93)_0x32563d[_0x278f3f(0x173)]=_0x8b5f93;const _0x550c5d=_0x30a265[_0x278f3f(0x17f)](_0x278f3f(0x194));if(_0x550c5d)_0x32563d[_0x278f3f(0x194)]=_0x550c5d;const _0x38eed5=_0x30a265[_0x278f3f(0x17f)]('dbparam');if(_0x38eed5)_0x32563d[_0x278f3f(0x18a)]=_0x38eed5;const _0x529634=_0x30a265[_0x278f3f(0x17f)](_0x278f3f(0x17d));if(_0x529634)_0x32563d[_0x278f3f(0x185)]=_0x529634;const _0x139838=sanitizeDbLinkForOutput(_0x32563d);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x139838,'description':_0x278f3f(0x18d)};},async 'execute'(_0x21535f){const _0x2c5af0=a88_0x12113e,_0x4328f3=_0x21535f[_0x2c5af0(0x191)]('id'),_0x26c118=await getDbLinkInfo(_0x4328f3),_0x3cab5f={..._0x26c118},_0x4387a7=_0x21535f[_0x2c5af0(0x17f)](_0x2c5af0(0x197));if(_0x4387a7)_0x3cab5f[_0x2c5af0(0x180)]=_0x4387a7;const _0x20717c=_0x21535f[_0x2c5af0(0x17f)](_0x2c5af0(0x186));if(_0x20717c)_0x3cab5f[_0x2c5af0(0x192)]=_0x20717c['trim']();const _0x46c101=_0x21535f[_0x2c5af0(0x17f)](_0x2c5af0(0x173));if(_0x46c101)_0x3cab5f[_0x2c5af0(0x173)]=_0x46c101;const _0xe5c7da=_0x21535f[_0x2c5af0(0x17f)](_0x2c5af0(0x194));if(_0xe5c7da)_0x3cab5f[_0x2c5af0(0x194)]=_0xe5c7da;const _0xd91533=_0x21535f[_0x2c5af0(0x17f)](_0x2c5af0(0x18e));if(_0xd91533)_0x3cab5f[_0x2c5af0(0x18a)]=_0xd91533;const _0xffd019=_0x21535f[_0x2c5af0(0x17f)](_0x2c5af0(0x17d));if(_0xffd019)_0x3cab5f[_0x2c5af0(0x185)]=_0xffd019;const {id:_0xc7c560,entity:_0x63ff04}=normalizeEntityWithIdResponse(await updateDbLink(_0x3cab5f));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x63ff04),'message':_0x2c5af0(0x175)+(_0xc7c560??_0x4328f3)};}};
1
+ const a88_0x2f9c4f=a88_0x52b9;(function(_0x43c4f5,_0x42aa12){const _0x3a812f=a88_0x52b9,_0x1205c7=_0x43c4f5();while(!![]){try{const _0x41ef80=parseInt(_0x3a812f(0xd0))/0x1*(parseInt(_0x3a812f(0xb4))/0x2)+-parseInt(_0x3a812f(0xb5))/0x3*(parseInt(_0x3a812f(0xd4))/0x4)+-parseInt(_0x3a812f(0xd5))/0x5+-parseInt(_0x3a812f(0xb6))/0x6+-parseInt(_0x3a812f(0xc9))/0x7*(parseInt(_0x3a812f(0xc2))/0x8)+-parseInt(_0x3a812f(0xb3))/0x9+parseInt(_0x3a812f(0xb2))/0xa*(parseInt(_0x3a812f(0xbe))/0xb);if(_0x41ef80===_0x42aa12)break;else _0x1205c7['push'](_0x1205c7['shift']());}catch(_0x39e0d4){_0x1205c7['push'](_0x1205c7['shift']());}}}(a88_0x5190,0x83bf8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a88_0x52b9(_0x4cc464,_0x1daf62){_0x4cc464=_0x4cc464-0xb1;const _0x5190f9=a88_0x5190();let _0x52b91e=_0x5190f9[_0x4cc464];return _0x52b91e;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a88_0x2f9c4f(0xb1),'description':a88_0x2f9c4f(0xce),'risk':a88_0x2f9c4f(0xc0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x2f9c4f(0xd3),'type':'string','description':a88_0x2f9c4f(0xbd)},{'name':a88_0x2f9c4f(0xba),'type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xc4)},{'name':a88_0x2f9c4f(0xc5),'type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xc6)},{'name':'password','type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xd6)},{'name':a88_0x2f9c4f(0xbf),'type':'string','description':a88_0x2f9c4f(0xca)},{'name':a88_0x2f9c4f(0xcd),'type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xd1)}],async 'validate'(_0xf072c){const _0x595a19=a88_0x2f9c4f,_0x140dda=_0xf072c['str'](_0x595a19(0xba));if(_0x140dda&&!validateDbUrl(_0x140dda[_0x595a19(0xc8)]()))throw CliErrors[_0x595a19(0xd7)](_0x595a19(0xcb)+_0x140dda+'\x22');},async 'dryRun'(_0x38cd64){const _0x2b2aa6=a88_0x2f9c4f,_0x5e0ec4=_0x38cd64['num']('id'),_0x302fcd=await getDbLinkInfo(_0x5e0ec4),_0x4fac1b={..._0x302fcd},_0x304b65=_0x38cd64[_0x2b2aa6(0xbb)]('dbname');if(_0x304b65)_0x4fac1b[_0x2b2aa6(0xcf)]=_0x304b65;const _0x29a12d=_0x38cd64[_0x2b2aa6(0xbb)](_0x2b2aa6(0xba));if(_0x29a12d)_0x4fac1b[_0x2b2aa6(0xc7)]=_0x29a12d['trim']();const _0x14b787=_0x38cd64['str']('username');if(_0x14b787)_0x4fac1b[_0x2b2aa6(0xc5)]=_0x14b787;const _0x334b56=_0x38cd64['str'](_0x2b2aa6(0xc1));if(_0x334b56)_0x4fac1b[_0x2b2aa6(0xc1)]=_0x334b56;const _0x16b57c=_0x38cd64[_0x2b2aa6(0xbb)](_0x2b2aa6(0xbf));if(_0x16b57c)_0x4fac1b[_0x2b2aa6(0xb8)]=_0x16b57c;const _0x4651fb=_0x38cd64['str']('dbdesc');if(_0x4651fb)_0x4fac1b['dbDesc']=_0x4651fb;const _0x3c32bf=sanitizeDbLinkForOutput(_0x4fac1b);return{'method':_0x2b2aa6(0xd2),'url':'/smartapi/dblink/update','body':_0x3c32bf,'description':_0x2b2aa6(0xb7)};},async 'execute'(_0x2108a2){const _0x2da075=a88_0x2f9c4f,_0x1b1907=_0x2108a2[_0x2da075(0xbc)]('id'),_0x328b3b=await getDbLinkInfo(_0x1b1907),_0x33589e={..._0x328b3b},_0x549a1b=_0x2108a2['str']('dbname');if(_0x549a1b)_0x33589e['dbName']=_0x549a1b;const _0x30b39e=_0x2108a2[_0x2da075(0xbb)](_0x2da075(0xba));if(_0x30b39e)_0x33589e[_0x2da075(0xc7)]=_0x30b39e[_0x2da075(0xc8)]();const _0x4f2e5a=_0x2108a2['str'](_0x2da075(0xc5));if(_0x4f2e5a)_0x33589e[_0x2da075(0xc5)]=_0x4f2e5a;const _0x224e91=_0x2108a2[_0x2da075(0xbb)](_0x2da075(0xc1));if(_0x224e91)_0x33589e[_0x2da075(0xc1)]=_0x224e91;const _0x2e4a41=_0x2108a2[_0x2da075(0xbb)](_0x2da075(0xbf));if(_0x2e4a41)_0x33589e[_0x2da075(0xb8)]=_0x2e4a41;const _0xb38444=_0x2108a2[_0x2da075(0xbb)]('dbdesc');if(_0xb38444)_0x33589e[_0x2da075(0xb9)]=_0xb38444;const {id:_0x505d87,entity:_0x1a3790}=normalizeEntityWithIdResponse(await updateDbLink(_0x33589e));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1a3790),'message':_0x2da075(0xcc)+(_0x505d87??_0x1b1907)};}};function a88_0x5190(){const _0x238671=['928301tXROlJ','dbparam','write','password','368NnTAEK','string','New\x20host:port','username','New\x20username','dbUrl','trim','121681gqWLgs','New\x20connection\x20parameter\x20string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Updated\x20db\x20link\x20','dbdesc','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbName','367mdoXNB','New\x20description','POST','dbname','4cKktxT','1187995PzeJuo','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','validation','update','250qnYMCd','2246202xeQyjh','5374IuVERp','1493883OkogSQ','4629048hOtUXp','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbParam','dbDesc','dburl','str','num','New\x20database\x20name'];a88_0x5190=function(){return _0x238671;};return a88_0x5190();}
@@ -1 +1 @@
1
- const a89_0x507ae7=a89_0x55d4;(function(_0x220c55,_0xa3c5c4){const _0x5f6afc=a89_0x55d4,_0x86f6d=_0x220c55();while(!![]){try{const _0x36d73c=-parseInt(_0x5f6afc(0x19e))/0x1*(parseInt(_0x5f6afc(0x196))/0x2)+parseInt(_0x5f6afc(0x17e))/0x3+parseInt(_0x5f6afc(0x1a4))/0x4*(parseInt(_0x5f6afc(0x175))/0x5)+parseInt(_0x5f6afc(0x172))/0x6*(parseInt(_0x5f6afc(0x1a6))/0x7)+-parseInt(_0x5f6afc(0x181))/0x8+-parseInt(_0x5f6afc(0x187))/0x9+-parseInt(_0x5f6afc(0x195))/0xa*(-parseInt(_0x5f6afc(0x176))/0xb);if(_0x36d73c===_0xa3c5c4)break;else _0x86f6d['push'](_0x86f6d['shift']());}catch(_0x5d91ab){_0x86f6d['push'](_0x86f6d['shift']());}}}(a89_0x4a1e,0x67b6f));import a89_0x31aa18 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a89_0x4a1e(){const _0x32fad0=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1218AwAmXv','\x20\x20Config\x20JSON','accessKey','385iwuPKU','2846173bgBMov','\x20(default)','\x20doctor','(none)','riskLevel','env','log','Project','1811829wGYODC','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','2121248IyBZnY','platform','message','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','6949926OethpW','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','empty','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20─','check','50inlVYV','1415266cQavXd','missing','read','doctor','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','⚠\x20Empty\x20(treated\x20as\x20{})','1yYwlmi','\x20\x20\x20\x20accessKey:\x20\x20','locale','bold','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Apps','524gHJThd','slice','9037MmgOHY','apiDir','status','length','source','currentApp','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','arch','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','repeat','keys','✗\x20Not\x20logged\x20in','cookie','green','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','red','appCode','(set,\x20length=','raw','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','Global','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','apps','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','(not\x20set)','(default)','defaultApp','\x20\x20runtimeDomain:\x20\x20\x20','value'];a89_0x4a1e=function(){return _0x32fad0;};return a89_0x4a1e();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a89_0x55d4(_0x17f5f9,_0x2952c5){_0x17f5f9=_0x17f5f9-0x159;const _0x4a1ee2=a89_0x4a1e();let _0x55d4e4=_0x4a1ee2[_0x17f5f9];return _0x55d4e4;}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x128e74){const _0xdb4343=a89_0x55d4,_0x29db0b=GIT_COMMIT!==_0xdb4343(0x18b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xdb4343(0x1a5)](0x0,0xa)+')':VERSION,_0x50ffe3=buildConfigFromFlags({}),_0x40e346=getCookie();console[_0xdb4343(0x17c)](),console['log'](a89_0x31aa18[_0xdb4343(0x1a1)](CLI_BIN_NAME+_0xdb4343(0x178))),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)]('─'[_0xdb4343(0x1b0)](0x32))),console[_0xdb4343(0x17c)](_0xdb4343(0x18f)+_0x29db0b),console['log'](_0xdb4343(0x191)+process['version']),console[_0xdb4343(0x17c)](_0xdb4343(0x185)+process[_0xdb4343(0x182)]+'\x20'+process[_0xdb4343(0x1ae)]),console[_0xdb4343(0x17c)](),console['log'](a89_0x31aa18['bold']('\x20\x20Config\x20Files')),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)]('\x20\x20─'[_0xdb4343(0x1b0)](0x1e)));const _0x28f569=getGlobalConfigPath(),_0x589a29=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28f569||a89_0x31aa18[_0xdb4343(0x192)]('(not\x20found)'))),console['log'](_0xdb4343(0x16a)+(_0x589a29||a89_0x31aa18[_0xdb4343(0x192)]('(not\x20found)'))),console['log'](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x173))),console['log'](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)['repeat'](0x1e)));const _0x1d946c=(_0x522e93,_0x3a9187)=>{const _0x4d54d0=_0xdb4343;if(!_0x3a9187){console['log']('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x192)](_0x4d54d0(0x189)));return;}const _0x33027d=inspectCliConfigJsonFile(_0x3a9187);if(_0x33027d[_0x4d54d0(0x1a8)]==='ok')console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15b)]('✓\x20Valid\x20JSON'));else{if(_0x33027d[_0x4d54d0(0x1a8)]===_0x4d54d0(0x18c))console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93[_0x4d54d0(0x18e)](0x11)+'\x20'+a89_0x31aa18['yellow'](_0x4d54d0(0x19d)));else _0x33027d[_0x4d54d0(0x1a8)]===_0x4d54d0(0x197)?console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x192)]('(missing)')):(console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93[_0x4d54d0(0x18e)](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15d)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15d)](_0x33027d[_0x4d54d0(0x183)])));}};_0x1d946c(_0xdb4343(0x163),_0x28f569),_0x1d946c(_0xdb4343(0x17d),_0x589a29),console['log'](),console[_0xdb4343(0x17c)](a89_0x31aa18['bold']('\x20\x20Merged\x20Config')),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)[_0xdb4343(0x1b0)](0x1e))),console[_0xdb4343(0x17c)](_0xdb4343(0x1ac)+(_0x50ffe3[_0xdb4343(0x15e)]||a89_0x31aa18['red'](_0xdb4343(0x16c)))),console[_0xdb4343(0x17c)](_0xdb4343(0x19b)+_0x50ffe3['env']),console['log'](_0xdb4343(0x165)+_0x50ffe3[_0xdb4343(0x1a0)]),console[_0xdb4343(0x17c)](_0xdb4343(0x18d)+_0x50ffe3[_0xdb4343(0x1a7)]),console[_0xdb4343(0x17c)](_0xdb4343(0x1af)+(_0x50ffe3['defaultApp']||a89_0x31aa18['gray'](_0xdb4343(0x179)))),console[_0xdb4343(0x17c)](_0xdb4343(0x184)+(_0x50ffe3[_0xdb4343(0x1ab)]||a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179)))),console['log'](_0xdb4343(0x162)+(_0x50ffe3[_0xdb4343(0x186)]||a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179)))),console['log'](_0xdb4343(0x17f)+(_0x50ffe3[_0xdb4343(0x19c)]||a89_0x31aa18['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xdb4343(0x17c)](_0xdb4343(0x188)+(_0x50ffe3['pageSize']??a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x16d)))),console['log'](_0xdb4343(0x161)+_0x50ffe3[_0xdb4343(0x17a)]),console['log'](_0xdb4343(0x171)+_0x50ffe3[_0xdb4343(0x166)]),console[_0xdb4343(0x17c)](_0xdb4343(0x18a)+(_0x50ffe3['cookie']?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x50ffe3['cookie'][_0xdb4343(0x1a9)]+')'):_0x40e346?a89_0x31aa18[_0xdb4343(0x15b)]('(set\x20via\x20file,\x20length='+_0x40e346[_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179))));const _0x532c56=Object[_0xdb4343(0x1b1)](_0x50ffe3[_0xdb4343(0x167)]);if(_0x532c56[_0xdb4343(0x1a9)]>0x0){console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x1a3))),console[_0xdb4343(0x17c)](a89_0x31aa18['gray'](_0xdb4343(0x193)['repeat'](0x1e)));for(const _0x543c12 of _0x532c56){const _0x11d3c3=_0x50ffe3[_0xdb4343(0x167)][_0x543c12],_0xde355f=_0x543c12===_0x50ffe3[_0xdb4343(0x16e)],_0x37aeac=_0x543c12===_0x50ffe3[_0xdb4343(0x1ab)],_0x58ea98=_0x37aeac?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x1ad)):'',_0x1344a5=_0xde355f?_0xdb4343(0x177):'';console[_0xdb4343(0x17c)]('\x20\x20'+_0x543c12+_0x1344a5+_0x58ea98),console[_0xdb4343(0x17c)](_0xdb4343(0x19a)+_0x11d3c3['appcode']);const _0x115985=buildAppDoctorFields(_0x11d3c3,{'env':_0x50ffe3['env'],'apiDir':_0x50ffe3[_0xdb4343(0x160)][_0xdb4343(0x1a7)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x50ffe3[_0xdb4343(0x15a)]||_0x40e346||undefined,'accessKey':_0x50ffe3[_0xdb4343(0x174)]});console[_0xdb4343(0x17c)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x115985[_0xdb4343(0x17b)]['value']+'\x20\x20'+a89_0x31aa18['gray']('('+_0x115985[_0xdb4343(0x17b)][_0xdb4343(0x1aa)]+')')),console[_0xdb4343(0x17c)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x115985['apiDir'][_0xdb4343(0x170)]+'\x20\x20'+a89_0x31aa18[_0xdb4343(0x192)]('('+_0x115985[_0xdb4343(0x1a7)]['source']+')'));const _0x38cacb=_0x115985['cookie'][_0xdb4343(0x170)]?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x115985[_0xdb4343(0x15a)][_0xdb4343(0x170)][_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179));console[_0xdb4343(0x17c)](_0xdb4343(0x164)+_0x38cacb+'\x20\x20'+a89_0x31aa18[_0xdb4343(0x192)]('('+_0x115985[_0xdb4343(0x15a)]['source']+')'));const _0x483aae=_0x115985[_0xdb4343(0x174)]['value']?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x115985['accessKey'][_0xdb4343(0x170)][_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179));console['log'](_0xdb4343(0x19f)+_0x483aae+'\x20\x20'+a89_0x31aa18['gray']('('+_0x115985[_0xdb4343(0x174)][_0xdb4343(0x1aa)]+')'));}}console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)]('\x20\x20API\x20Endpoints')),console['log'](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)['repeat'](0x1e))),console[_0xdb4343(0x17c)](_0xdb4343(0x168)+getApiDomain()),console[_0xdb4343(0x17c)](_0xdb4343(0x1a2)+getUserDomain()),console['log'](_0xdb4343(0x16f)+getRuntimeDomain()),console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x169))),console[_0xdb4343(0x17c)](a89_0x31aa18['gray'](_0xdb4343(0x193)[_0xdb4343(0x1b0)](0x1e)));if(_0x40e346){const _0x114e7d=await getIsSessionValid();console['log'](_0xdb4343(0x190)+(_0x114e7d?a89_0x31aa18['green'](_0xdb4343(0x180)):a89_0x31aa18[_0xdb4343(0x15d)](_0xdb4343(0x16b))));}else console[_0xdb4343(0x17c)](_0xdb4343(0x190)+a89_0x31aa18[_0xdb4343(0x15d)](_0xdb4343(0x159)));return console[_0xdb4343(0x17c)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x507ae7(0x199),'command':a89_0x507ae7(0x194),'description':a89_0x507ae7(0x15c),'risk':a89_0x507ae7(0x198),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a89_0x3d26a6=a89_0x310f;(function(_0x1f3b21,_0x301ccc){const _0xe350b1=a89_0x310f,_0x481717=_0x1f3b21();while(!![]){try{const _0x52c562=parseInt(_0xe350b1(0x1f9))/0x1*(-parseInt(_0xe350b1(0x1c8))/0x2)+parseInt(_0xe350b1(0x1d7))/0x3*(-parseInt(_0xe350b1(0x1bb))/0x4)+-parseInt(_0xe350b1(0x1f4))/0x5+-parseInt(_0xe350b1(0x1a9))/0x6+parseInt(_0xe350b1(0x1c4))/0x7*(parseInt(_0xe350b1(0x1eb))/0x8)+parseInt(_0xe350b1(0x1bf))/0x9*(-parseInt(_0xe350b1(0x1e2))/0xa)+parseInt(_0xe350b1(0x1a6))/0xb;if(_0x52c562===_0x301ccc)break;else _0x481717['push'](_0x481717['shift']());}catch(_0x4990fd){_0x481717['push'](_0x481717['shift']());}}}(a89_0x5a89,0xecfbe));import a89_0x29f5ae 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 a89_0x310f(_0x4936fe,_0x25f42b){_0x4936fe=_0x4936fe-0x1a5;const _0x5a89e7=a89_0x5a89();let _0x310fac=_0x5a89e7[_0x4936fe];return _0x310fac;}function a89_0x5a89(){const _0x5f16b5=['\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','823905krXsHj','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','cookie','\x20\x20─','1967791aOxgHs','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Merged\x20Config','6110LbZImL','bold','value','verbose','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','riskLevel','✓\x20Valid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','format','pageSize','3wLOsua','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','apps','(not\x20found)','\x20\x20Config\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','appCode','90CLbblm','✗\x20Expired','(set,\x20length=','unknown','check','missing','(default)','padEnd','appcode','48XfpYHk','✗\x20Not\x20logged\x20in','read','green','red','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','doctor','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','2539500FYqUqI','\x20\x20Auth','(default:\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','485hVzrIS','raw','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20runtimeDomain:\x20\x20\x20','source','48116475hszTvX','slice','(missing)','6291666BUawNi','arch','(none)','(set\x20via\x20file,\x20length=','locale','\x20(default)','message','defaultApp','repeat','keys','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','empty','\x20\x20Apps','platform','gray','version','status','\x20doctor','4912504rUtaJO','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','length'];a89_0x5a89=function(){return _0x5f16b5;};return a89_0x5a89();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0xb5f885){const _0xa74fe3=a89_0x310f,_0x1ea6af=GIT_COMMIT!==_0xa74fe3(0x1e5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xa74fe3(0x1a7)](0x0,0xa)+')':VERSION,_0x2523fd=buildConfigFromFlags({}),_0x39c3eb=getCookie();console['log'](),console['log'](a89_0x29f5ae['bold'](CLI_BIN_NAME+_0xa74fe3(0x1ba))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)]('─'[_0xa74fe3(0x1b1)](0x32))),console['log'](_0xa74fe3(0x1ce)+_0x1ea6af),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1c0)+process[_0xa74fe3(0x1b8)]),console['log'](_0xa74fe3(0x1f7)+process[_0xa74fe3(0x1b6)]+'\x20'+process[_0xa74fe3(0x1aa)]),console['log'](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)]('\x20\x20Config\x20Files')),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));const _0x4dcd61=getGlobalConfigPath(),_0x1fa49b=getProjectConfigPath();console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1df)+(_0x4dcd61||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1dd)))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1da)+(_0x1fa49b||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1dd)))),console['log'](),console['log'](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1de))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)]('\x20\x20─'[_0xa74fe3(0x1b1)](0x1e)));const _0x434b6c=(_0x452b9b,_0x511548)=>{const _0x3b61df=_0xa74fe3;if(!_0x511548){console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1b7)]('(no\x20file)'));return;}const _0x4fdc5d=inspectCliConfigJsonFile(_0x511548);if(_0x4fdc5d[_0x3b61df(0x1b9)]==='ok')console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1ee)](_0x3b61df(0x1d2)));else{if(_0x4fdc5d['status']===_0x3b61df(0x1b4))console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae['yellow'](_0x3b61df(0x1db)));else _0x4fdc5d['status']===_0x3b61df(0x1e7)?console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b['padEnd'](0x11)+'\x20'+a89_0x29f5ae['gray'](_0x3b61df(0x1a8))):(console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae['red']('✗\x20Invalid\x20JSON')),console[_0x3b61df(0x1d9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1ef)](_0x4fdc5d[_0x3b61df(0x1af)])));}};_0x434b6c('Global',_0x4dcd61),_0x434b6c('Project',_0x1fa49b),console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1c7))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae['gray'](_0xa74fe3(0x1c3)['repeat'](0x1e))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cc)+(_0x2523fd[_0xa74fe3(0x1e1)]||a89_0x29f5ae[_0xa74fe3(0x1ef)]('(not\x20set)'))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1f2)+_0x2523fd[_0xa74fe3(0x1c6)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1c5)+_0x2523fd[_0xa74fe3(0x1ad)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1be)+_0x2523fd[_0xa74fe3(0x1c1)]),console[_0xa74fe3(0x1d9)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2523fd[_0xa74fe3(0x1b0)]||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab)))),console['log'](_0xa74fe3(0x1fb)+(_0x2523fd['currentApp']||a89_0x29f5ae['gray'](_0xa74fe3(0x1ab)))),console[_0xa74fe3(0x1d9)]('\x20\x20explicitAppName:\x20'+(_0x2523fd[_0xa74fe3(0x1fc)]||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab)))),console[_0xa74fe3(0x1d9)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2523fd[_0xa74fe3(0x1d5)]||a89_0x29f5ae['gray'](_0xa74fe3(0x1f6)+DEFAULT_CONFIG_VALUES[_0xa74fe3(0x1d5)]+')'))),console['log'](_0xa74fe3(0x1d4)+(_0x2523fd[_0xa74fe3(0x1d6)]??a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1e8)))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cf)+_0x2523fd[_0xa74fe3(0x1d1)]),console[_0xa74fe3(0x1d9)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2523fd[_0xa74fe3(0x1cb)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cd)+(_0x2523fd[_0xa74fe3(0x1c2)]?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x2523fd[_0xa74fe3(0x1c2)][_0xa74fe3(0x1bd)]+')'):_0x39c3eb?a89_0x29f5ae['green'](_0xa74fe3(0x1ac)+_0x39c3eb[_0xa74fe3(0x1bd)]+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab))));const _0x47324b=Object[_0xa74fe3(0x1b2)](_0x2523fd[_0xa74fe3(0x1dc)]);if(_0x47324b[_0xa74fe3(0x1bd)]>0x0){console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1b5))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));for(const _0xf934d4 of _0x47324b){const _0x28f80b=_0x2523fd[_0xa74fe3(0x1dc)][_0xf934d4],_0x24c044=_0xf934d4===_0x2523fd[_0xa74fe3(0x1b0)],_0x4ed27a=_0xf934d4===_0x2523fd['currentApp'],_0x59a084=_0x4ed27a?a89_0x29f5ae[_0xa74fe3(0x1ee)]('\x20←\x20current'):'',_0xbc2bc3=_0x24c044?_0xa74fe3(0x1ae):'';console['log']('\x20\x20'+_0xf934d4+_0xbc2bc3+_0x59a084),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1b3)+_0x28f80b[_0xa74fe3(0x1ea)]);const _0x458045=buildAppDoctorFields(_0x28f80b,{'env':_0x2523fd[_0xa74fe3(0x1c6)],'apiDir':_0x2523fd[_0xa74fe3(0x1fa)][_0xa74fe3(0x1c1)]||DEFAULT_CONFIG_VALUES[_0xa74fe3(0x1c1)],'cookie':_0x2523fd['cookie']||_0x39c3eb||undefined,'accessKey':_0x2523fd[_0xa74fe3(0x1e0)]});console[_0xa74fe3(0x1d9)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x458045[_0xa74fe3(0x1c6)][_0xa74fe3(0x1ca)]+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c6)][_0xa74fe3(0x1a5)]+')')),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1f8)+_0x458045[_0xa74fe3(0x1c1)][_0xa74fe3(0x1ca)]+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c1)]['source']+')'));const _0x37a282=_0x458045['cookie'][_0xa74fe3(0x1ca)]?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x458045[_0xa74fe3(0x1c2)][_0xa74fe3(0x1ca)][_0xa74fe3(0x1bd)]+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab));console['log'](_0xa74fe3(0x1f0)+_0x37a282+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c2)][_0xa74fe3(0x1a5)]+')'));const _0x5d9b31=_0x458045['accessKey']['value']?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x458045[_0xa74fe3(0x1e0)][_0xa74fe3(0x1ca)]['length']+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab));console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1d0)+_0x5d9b31+'\x20\x20'+a89_0x29f5ae['gray']('('+_0x458045[_0xa74fe3(0x1e0)][_0xa74fe3(0x1a5)]+')'));}}console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)]('\x20\x20API\x20Endpoints')),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e))),console['log'](_0xa74fe3(0x1d3)+getApiDomain()),console[_0xa74fe3(0x1d9)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1fd)+getRuntimeDomain()),console[_0xa74fe3(0x1d9)](),console['log'](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1f5))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));if(_0x39c3eb){const _0x4fb6f3=await getIsSessionValid();console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1d8)+(_0x4fb6f3?a89_0x29f5ae['green'](_0xa74fe3(0x1f3)):a89_0x29f5ae[_0xa74fe3(0x1ef)](_0xa74fe3(0x1e3))));}else console['log'](_0xa74fe3(0x1d8)+a89_0x29f5ae[_0xa74fe3(0x1ef)](_0xa74fe3(0x1ec)));return console[_0xa74fe3(0x1d9)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x3d26a6(0x1f1),'command':a89_0x3d26a6(0x1e6),'description':a89_0x3d26a6(0x1bc),'risk':a89_0x3d26a6(0x1ed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a90_0xaa739=a90_0x463b;(function(_0x480f29,_0x43eb88){const _0x559d91=a90_0x463b,_0x189a63=_0x480f29();while(!![]){try{const _0x383808=-parseInt(_0x559d91(0xd0))/0x1*(parseInt(_0x559d91(0xc7))/0x2)+parseInt(_0x559d91(0xc5))/0x3*(parseInt(_0x559d91(0xce))/0x4)+parseInt(_0x559d91(0xdb))/0x5+parseInt(_0x559d91(0xdc))/0x6*(parseInt(_0x559d91(0xc8))/0x7)+-parseInt(_0x559d91(0xe4))/0x8*(parseInt(_0x559d91(0xda))/0x9)+parseInt(_0x559d91(0xd4))/0xa+-parseInt(_0x559d91(0xd5))/0xb;if(_0x383808===_0x43eb88)break;else _0x189a63['push'](_0x189a63['shift']());}catch(_0xdfa350){_0x189a63['push'](_0x189a63['shift']());}}}(a90_0x3157,0x9f0fe));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x174675){return{'appCode':_0x174675,'appName':_0x174675};}function a90_0x3157(){const _0x3c40de=['\x20\x20Env:\x20','boolean','\x20\x20Apps:\x20','136ZJYOaE','\x0a✓\x20Successfully\x20initialized\x20','write','project','\x20config','env','检测到旧配置文件,正在自动升级...\x0a','str','map','\x20\x20Config:\x20','validation','init','appcode','../../commands/project/init.js','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','toLocaleString','log','3VYyHNX','nonInteractive','4ccIXne','1692145yqcxLd','custom','valid','Write\x20to\x20global\x20config\x20instead\x20of\x20project','string','bool','2007592ytxBvA','run','326567SqVmDh','yes','global','flagMissing','6709280mZVJUA','6323592JGeulu','production','some','\x20\x20Default:\x20','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','171009faSyRy','313875JPRzpF','24dvcMBt','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','appCode','Auto-confirm\x20prompts','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.'];a90_0x3157=function(){return _0x3c40de;};return a90_0x3157();}function a90_0x463b(_0x41ad4e,_0x449900){_0x41ad4e=_0x41ad4e-0xc5;const _0x315730=a90_0x3157();let _0x463b61=_0x315730[_0x41ad4e];return _0x463b61;}function writeInitConfig(_0x1e23ab,_0x6498ec,_0x1a146e){const _0x15758d=a90_0x463b,_0x18b84b=resolveWriteConfigPath(_0x1e23ab),_0x430cc8=buildCanonicalProjectConfig({},{'appCodes':_0x6498ec[_0x15758d(0xec)](_0x59136e=>_0x59136e[_0x15758d(0xde)]),'env':_0x1a146e,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x15758d(0xf3)]()}});writeConfigFile(_0x18b84b,_0x430cc8);const _0x2b7e8a=_0x1e23ab===_0x15758d(0xd2)?_0x15758d(0xd2):'project';console[_0x15758d(0xf4)](_0x15758d(0xe5)+_0x2b7e8a+_0x15758d(0xe8)),console['log'](_0x15758d(0xe3)+_0x6498ec['map'](_0x377714=>_0x377714['appCode'])['join'](',\x20')),console['log'](_0x15758d(0xd8)+_0x430cc8['defaultApp']),console[_0x15758d(0xf4)](_0x15758d(0xe1)+_0x430cc8['env']),console[_0x15758d(0xf4)](_0x15758d(0xed)+_0x18b84b);}async function runSmartInit(_0x2ca235){const _0x1fc026=a90_0x463b,_0x2c2c6f=process['cwd'](),_0x49b4f0=_0x2ca235[_0x1fc026(0xcd)](_0x1fc026(0xd2))?_0x1fc026(0xd2):_0x1fc026(0xe7),_0x3d230e=_0x2ca235[_0x1fc026(0xeb)](_0x1fc026(0xe9))||_0x1fc026(0xd6),_0x27c524=_0x2ca235['str']('appcode')||undefined,_0x2d36b5=_0x2ca235[_0x1fc026(0xcd)](_0x1fc026(0xe7));if(_0x2d36b5){const {initConfig:_0x1665ce}=await import(_0x1fc026(0xf1));return _0x1665ce({'appcode':_0x27c524,'env':_0x3d230e,'autoYes':_0x2ca235[_0x1fc026(0xcd)](_0x1fc026(0xd1))});}if(_0x49b4f0==='project'){const _0x46cc76=existsSync(resolve(_0x2c2c6f,NEW_CONFIG_NAME)),_0x1d06be=LEGACY_CONFIG_NAMES[_0x1fc026(0xd7)](_0x36d893=>existsSync(resolve(_0x2c2c6f,_0x36d893)));if(_0x1d06be&&!_0x46cc76)return console[_0x1fc026(0xf4)](_0x1fc026(0xea)),upgradeApp(_0x2ca235[_0x1fc026(0xc6)],{'yes':_0x2ca235['bool']('yes')});if(_0x46cc76)throw CliErrors[_0x1fc026(0xee)](_0x1fc026(0xf2),'Use\x20`'+CLI_BIN_NAME+_0x1fc026(0xe0));}if(_0x27c524){const _0x1d30d8=validateAppcode(_0x27c524);if(!_0x1d30d8[_0x1fc026(0xca)])throw CliErrors[_0x1fc026(0xee)](_0x1d30d8['message']);writeInitConfig(_0x49b4f0,[syntheticApp(_0x27c524)],_0x3d230e);return;}if(_0x2ca235[_0x1fc026(0xc6)])throw CliErrors[_0x1fc026(0xd3)](_0x1fc026(0xf0),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x551ed7=getCookie(),_0x494dd0=await selectMultipleApps(_0x551ed7),_0x48bff6=_0x494dd0===_0x1fc026(0xc9)?[syntheticApp(await promptCustomAppcode())]:_0x494dd0;writeInitConfig(_0x49b4f0,_0x48bff6,_0x3d230e);}const initFlags=[{'name':'global','type':'boolean','description':a90_0xaa739(0xcb),'default':![]},{'name':a90_0xaa739(0xe9),'type':'string','description':'Target\x20environment','default':a90_0xaa739(0xd6),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0xaa739(0xf0),'type':a90_0xaa739(0xcc),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a90_0xaa739(0xe7),'type':a90_0xaa739(0xe2),'description':a90_0xaa739(0xdd),'default':![]},{'name':a90_0xaa739(0xd1),'type':a90_0xaa739(0xe2),'description':a90_0xaa739(0xdf),'default':![]}];export const initDefinitions=[{'service':a90_0xaa739(0xef),'command':a90_0xaa739(0xcf),'description':a90_0xaa739(0xd9),'risk':a90_0xaa739(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x261d19){return await runSmartInit(_0x261d19),{'ok':!![]};}}];
1
+ const a90_0x37dfb3=a90_0x1531;(function(_0x25c550,_0x506559){const _0x4e0433=a90_0x1531,_0x3f3578=_0x25c550();while(!![]){try{const _0x46e1b7=-parseInt(_0x4e0433(0x1a2))/0x1*(-parseInt(_0x4e0433(0x1bf))/0x2)+parseInt(_0x4e0433(0x1c9))/0x3*(parseInt(_0x4e0433(0x1b8))/0x4)+parseInt(_0x4e0433(0x1a5))/0x5+-parseInt(_0x4e0433(0x1c1))/0x6*(-parseInt(_0x4e0433(0x1ad))/0x7)+-parseInt(_0x4e0433(0x1a7))/0x8+parseInt(_0x4e0433(0x1c0))/0x9*(-parseInt(_0x4e0433(0x1be))/0xa)+-parseInt(_0x4e0433(0x1d0))/0xb;if(_0x46e1b7===_0x506559)break;else _0x3f3578['push'](_0x3f3578['shift']());}catch(_0x59975e){_0x3f3578['push'](_0x3f3578['shift']());}}}(a90_0x28bb,0x410ef));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a90_0x1531(_0x5d908a,_0x5347a8){_0x5d908a=_0x5d908a-0x1a0;const _0x28bb6f=a90_0x28bb();let _0x15319b=_0x28bb6f[_0x5d908a];return _0x15319b;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2f5b85){return{'appCode':_0x2f5b85,'appName':_0x2f5b85};}function writeInitConfig(_0x4e39af,_0x56839c,_0x1fddf1){const _0x5210e7=a90_0x1531,_0x425bf5=resolveWriteConfigPath(_0x4e39af),_0x5aa008=buildCanonicalProjectConfig({},{'appCodes':_0x56839c['map'](_0x1da813=>_0x1da813['appCode']),'env':_0x1fddf1,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5210e7(0x1cc)]()}});writeConfigFile(_0x425bf5,_0x5aa008);const _0x23d1a3=_0x4e39af==='global'?_0x5210e7(0x1ce):_0x5210e7(0x1cf);console['log']('\x0a✓\x20Successfully\x20initialized\x20'+_0x23d1a3+_0x5210e7(0x1b7)),console[_0x5210e7(0x1b3)](_0x5210e7(0x1bc)+_0x56839c[_0x5210e7(0x1b6)](_0x2552b3=>_0x2552b3[_0x5210e7(0x1b2)])[_0x5210e7(0x1af)](',\x20')),console['log'](_0x5210e7(0x1b1)+_0x5aa008[_0x5210e7(0x1a6)]),console[_0x5210e7(0x1b3)](_0x5210e7(0x1a8)+_0x5aa008[_0x5210e7(0x1ca)]),console[_0x5210e7(0x1b3)](_0x5210e7(0x1ab)+_0x425bf5);}function a90_0x28bb(){const _0x32e8a0=['\x20\x20Config:\x20','boolean','37667oGCsdz','nonInteractive','join','validation','\x20\x20Default:\x20','appCode','log','Target\x20environment','Use\x20`','map','\x20config','16tIVtkp','App\x20code\x20to\x20initialize\x20with','../../commands/project/init.js','appcode','\x20\x20Apps:\x20','production','1294420ioQwEF','878BvByqv','36UtbaFF','48HWrwWd','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','run','some','write','init','flagMissing','Auto-confirm\x20prompts','250293KIWDpL','env','cwd','toLocaleString','yes','global','project','3738669UEnpnK','检测到旧配置文件,正在自动升级...\x0a','bool','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','1171YuOUSC','Write\x20to\x20global\x20config\x20instead\x20of\x20project','string','2459490lnBwdx','defaultApp','2068904bBazyw','\x20\x20Env:\x20','custom','message'];a90_0x28bb=function(){return _0x32e8a0;};return a90_0x28bb();}async function runSmartInit(_0x50d085){const _0xf9efbb=a90_0x1531,_0x22d51a=process[_0xf9efbb(0x1cb)](),_0x3581a0=_0x50d085['bool'](_0xf9efbb(0x1ce))?_0xf9efbb(0x1ce):'project',_0x2710f7=_0x50d085['str'](_0xf9efbb(0x1ca))||_0xf9efbb(0x1bd),_0x35adc2=_0x50d085['str'](_0xf9efbb(0x1bb))||undefined,_0x4f82c0=_0x50d085[_0xf9efbb(0x1a0)](_0xf9efbb(0x1cf));if(_0x4f82c0){const {initConfig:_0x4fdf6f}=await import(_0xf9efbb(0x1ba));return _0x4fdf6f({'appcode':_0x35adc2,'env':_0x2710f7,'autoYes':_0x50d085[_0xf9efbb(0x1a0)]('yes')});}if(_0x3581a0==='project'){const _0x132df2=existsSync(resolve(_0x22d51a,NEW_CONFIG_NAME)),_0x1217e0=LEGACY_CONFIG_NAMES[_0xf9efbb(0x1c4)](_0x4f2af3=>existsSync(resolve(_0x22d51a,_0x4f2af3)));if(_0x1217e0&&!_0x132df2)return console[_0xf9efbb(0x1b3)](_0xf9efbb(0x1d1)),upgradeApp(_0x50d085['nonInteractive'],{'yes':_0x50d085[_0xf9efbb(0x1a0)](_0xf9efbb(0x1cd))});if(_0x132df2)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0xf9efbb(0x1b5)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x35adc2){const _0x42f596=validateAppcode(_0x35adc2);if(!_0x42f596['valid'])throw CliErrors[_0xf9efbb(0x1b0)](_0x42f596[_0xf9efbb(0x1aa)]);writeInitConfig(_0x3581a0,[syntheticApp(_0x35adc2)],_0x2710f7);return;}if(_0x50d085[_0xf9efbb(0x1ae)])throw CliErrors[_0xf9efbb(0x1c7)](_0xf9efbb(0x1bb),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x799662=getCookie(),_0x20ec20=await selectMultipleApps(_0x799662),_0x167adc=_0x20ec20===_0xf9efbb(0x1a9)?[syntheticApp(await promptCustomAppcode())]:_0x20ec20;writeInitConfig(_0x3581a0,_0x167adc,_0x2710f7);}const initFlags=[{'name':a90_0x37dfb3(0x1ce),'type':a90_0x37dfb3(0x1ac),'description':a90_0x37dfb3(0x1a3),'default':![]},{'name':a90_0x37dfb3(0x1ca),'type':a90_0x37dfb3(0x1a4),'description':a90_0x37dfb3(0x1b4),'default':a90_0x37dfb3(0x1bd),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0x37dfb3(0x1bb),'type':'string','description':a90_0x37dfb3(0x1b9)},{'name':a90_0x37dfb3(0x1cf),'type':a90_0x37dfb3(0x1ac),'description':a90_0x37dfb3(0x1a1),'default':![]},{'name':a90_0x37dfb3(0x1cd),'type':'boolean','description':a90_0x37dfb3(0x1c8),'default':![]}];export const initDefinitions=[{'service':a90_0x37dfb3(0x1c6),'command':a90_0x37dfb3(0x1c3),'description':a90_0x37dfb3(0x1c2),'risk':a90_0x37dfb3(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x4168d9){return await runSmartInit(_0x4168d9),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a91_0x4e33(_0x56394e,_0x39f76a){_0x56394e=_0x56394e-0x110;const _0x99be32=a91_0x99be();let _0x4e3392=_0x99be32[_0x56394e];return _0x4e3392;}(function(_0x1c7f0c,_0x494fdd){const _0x100bd6=a91_0x4e33,_0x25d834=_0x1c7f0c();while(!![]){try{const _0x1f8dec=-parseInt(_0x100bd6(0x110))/0x1+-parseInt(_0x100bd6(0x119))/0x2*(parseInt(_0x100bd6(0x114))/0x3)+parseInt(_0x100bd6(0x111))/0x4*(-parseInt(_0x100bd6(0x116))/0x5)+parseInt(_0x100bd6(0x11a))/0x6+parseInt(_0x100bd6(0x117))/0x7*(-parseInt(_0x100bd6(0x113))/0x8)+parseInt(_0x100bd6(0x118))/0x9*(parseInt(_0x100bd6(0x112))/0xa)+parseInt(_0x100bd6(0x115))/0xb;if(_0x1f8dec===_0x494fdd)break;else _0x25d834['push'](_0x25d834['shift']());}catch(_0x25ea90){_0x25d834['push'](_0x25d834['shift']());}}}(a91_0x99be,0xb608f));import{issueReport}from'../../commands/issue/report.js';function a91_0x99be(){const _0x4132ce=['48542956uMiXCa','7005175khntup','5411jEbWZt','18fOvgNi','230Anazhc','48210FMuNkG','602446bHwgYV','4LMsTdf','5177270bsfDaP','13584xkfaqI','36387csQyuT'];a91_0x99be=function(){return _0x4132ce;};return a91_0x99be();}export const issueDefinitions=[issueReport];
1
+ (function(_0x16f11e,_0x1c93ee){const _0x1dbe07=a91_0x12d6,_0x552067=_0x16f11e();while(!![]){try{const _0x3679cf=parseInt(_0x1dbe07(0xea))/0x1+-parseInt(_0x1dbe07(0xec))/0x2*(-parseInt(_0x1dbe07(0xe6))/0x3)+parseInt(_0x1dbe07(0xe5))/0x4*(parseInt(_0x1dbe07(0xe2))/0x5)+parseInt(_0x1dbe07(0xeb))/0x6*(parseInt(_0x1dbe07(0xe3))/0x7)+parseInt(_0x1dbe07(0xe8))/0x8*(-parseInt(_0x1dbe07(0xe4))/0x9)+parseInt(_0x1dbe07(0xe9))/0xa*(-parseInt(_0x1dbe07(0xe1))/0xb)+-parseInt(_0x1dbe07(0xe7))/0xc;if(_0x3679cf===_0x1c93ee)break;else _0x552067['push'](_0x552067['shift']());}catch(_0x5c2a0c){_0x552067['push'](_0x552067['shift']());}}}(a91_0x437b,0xb241c));function a91_0x437b(){const _0x4da1d5=['55090lutCaz','199382KvTXIb','1650RbPoZZ','1027318VdCQdO','22HDNXAd','35CHspxW','31997sibCfG','626499PJhprv','133940zeMZWq','3ZtnyvT','4194324nIeHNn','128VcpGbN'];a91_0x437b=function(){return _0x4da1d5;};return a91_0x437b();}function a91_0x12d6(_0x505428,_0x411549){_0x505428=_0x505428-0xe1;const _0x437b47=a91_0x437b();let _0x12d667=_0x437b47[_0x505428];return _0x12d667;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a92_0x22e208=a92_0x1d06;function a92_0x1d06(_0x334dd2,_0x4cb0d0){_0x334dd2=_0x334dd2-0x100;const _0x312f5b=a92_0x312f();let _0x1d061f=_0x312f5b[_0x334dd2];return _0x1d061f;}function a92_0x312f(){const _0x5384ff=['335190xqIENi','Hit\x20a\x20','2285266upPNae','\x20\x20Set\x20','=1\x20to\x20silence\x20this\x20hint.','\x20bug?\x20Help\x20us\x20fix\x20it:','flag_missing','RABETBASE_DISABLE_ISSUE_NUDGE','validation_error','75ZwsKzq','slice','join','write','stderr','138dUGPfa','trim','length','8266888WwOdlm','\x20\x20\x20\x20--title\x20\x22','15807070RqilWt','has','auth_required','report','replace','not_in_project','command','77768hoqSnB','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','2459176nfvYUg','27bjpggD','service','\x20issue\x20report\x20\x5c','1579315EnQVMA','unknown_command','message','network_error'];a92_0x312f=function(){return _0x5384ff;};return a92_0x312f();}(function(_0x53a7fb,_0x49b164){const _0x2030be=a92_0x1d06,_0x4303b2=_0x53a7fb();while(!![]){try{const _0x5202f4=parseInt(_0x2030be(0x116))/0x1+-parseInt(_0x2030be(0x11c))/0x2+-parseInt(_0x2030be(0x123))/0x3*(parseInt(_0x2030be(0x110))/0x4)+-parseInt(_0x2030be(0x11a))/0x5*(-parseInt(_0x2030be(0x104))/0x6)+-parseInt(_0x2030be(0x107))/0x7+-parseInt(_0x2030be(0x112))/0x8*(parseInt(_0x2030be(0x113))/0x9)+parseInt(_0x2030be(0x109))/0xa;if(_0x5202f4===_0x49b164)break;else _0x4303b2['push'](_0x4303b2['shift']());}catch(_0xa3b27c){_0x4303b2['push'](_0x4303b2['shift']());}}}(a92_0x312f,0xecd36));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a92_0x22e208(0x121);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a92_0x22e208(0x10b),'config_missing',a92_0x22e208(0x10e),a92_0x22e208(0x117),a92_0x22e208(0x120),a92_0x22e208(0x122),a92_0x22e208(0x119)]),defaultWriter=_0x529f9a=>{const _0x351144=a92_0x22e208;process[_0x351144(0x103)][_0x351144(0x102)](_0x529f9a);};export function shouldNudgeForError(_0x2835ed,_0x67df29){const _0x54b360=a92_0x22e208;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x67df29[_0x54b360(0x114)]==='issue'&&_0x67df29[_0x54b360(0x10f)]===_0x54b360(0x10c))return![];if(_0x2835ed instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x54b360(0x10a)](_0x2835ed['code']);return!![];}export function printIssueReportNudgeForError(_0x49b765,_0x5de228,_0xf5b13a=defaultWriter){if(!shouldNudgeForError(_0x49b765,_0x5de228))return;const _0x820e6a=buildSuggestedTitle(_0x49b765,_0x5de228);_0xf5b13a(formatNudge(_0x820e6a));}function buildSuggestedTitle(_0x403915,_0x5c4b79){const _0x2a434c=a92_0x22e208,_0x595eca=_0x403915 instanceof Error?_0x403915[_0x2a434c(0x118)]:String(_0x403915),_0xadf2e5=_0x595eca[_0x2a434c(0x10d)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2a434c(0x105)]()[_0x2a434c(0x100)](0x0,0x78)[_0x2a434c(0x10d)](/"/g,'\x5c\x22'),_0x185365=CLI_BIN_NAME+'\x20'+_0x5c4b79['service']+'\x20'+_0x5c4b79[_0x2a434c(0x10f)];return _0xadf2e5[_0x2a434c(0x106)]>0x0?_0x185365+':\x20'+_0xadf2e5:_0x185365;}function formatNudge(_0x45da9f){const _0xefebd=a92_0x22e208;return['',_0xefebd(0x11b)+CLI_BIN_NAME+_0xefebd(0x11f),'\x20\x20'+CLI_BIN_NAME+_0xefebd(0x115),_0xefebd(0x108)+_0x45da9f+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0xefebd(0x111),_0xefebd(0x11d)+NUDGE_OPT_OUT_ENV+_0xefebd(0x11e),''][_0xefebd(0x101)]('\x0a');}
1
+ const a92_0x3dbb33=a92_0x522a;(function(_0x2fb5ab,_0x4cc5c7){const _0x5b96cc=a92_0x522a,_0x22d8d4=_0x2fb5ab();while(!![]){try{const _0x15b4b5=-parseInt(_0x5b96cc(0x146))/0x1+-parseInt(_0x5b96cc(0x134))/0x2*(-parseInt(_0x5b96cc(0x139))/0x3)+parseInt(_0x5b96cc(0x13f))/0x4*(-parseInt(_0x5b96cc(0x12f))/0x5)+parseInt(_0x5b96cc(0x14d))/0x6+parseInt(_0x5b96cc(0x14b))/0x7*(parseInt(_0x5b96cc(0x147))/0x8)+-parseInt(_0x5b96cc(0x13a))/0x9+-parseInt(_0x5b96cc(0x140))/0xa*(parseInt(_0x5b96cc(0x143))/0xb);if(_0x15b4b5===_0x4cc5c7)break;else _0x22d8d4['push'](_0x22d8d4['shift']());}catch(_0x4cb5ab){_0x22d8d4['push'](_0x22d8d4['shift']());}}}(a92_0x4cc4,0x5451c));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a92_0x3dbb33(0x131);const NUDGE_SUPPRESSED_CODES=new Set([a92_0x3dbb33(0x130),a92_0x3dbb33(0x148),a92_0x3dbb33(0x13b),'not_in_project',a92_0x3dbb33(0x138),a92_0x3dbb33(0x142),a92_0x3dbb33(0x135),'network_error']),defaultWriter=_0x5f5475=>{const _0x100e00=a92_0x3dbb33;process['stderr'][_0x100e00(0x13c)](_0x5f5475);};export function shouldNudgeForError(_0x530901,_0x24bdd5){const _0x23bf1d=a92_0x3dbb33;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x24bdd5['service']===_0x23bf1d(0x145)&&_0x24bdd5[_0x23bf1d(0x12e)]==='report')return![];if(_0x530901 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x530901[_0x23bf1d(0x14e)]);return!![];}function a92_0x4cc4(){const _0x54819e=['validation_error','\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','unknown_command','1074dZqPIg','4157703eEqiWe','config_missing','write','\x20\x20Set\x20','length','32CLMcaO','96860icsebs','\x20\x20\x20\x20--title\x20\x22','flag_missing','242ZSFbNr','replace','issue','150736LdvlLj','272dxZjfF','auth_required','=1\x20to\x20silence\x20this\x20hint.','slice','139342BxTKtf','\x22\x20\x5c','2199210TmUxbr','code','command','233805nTWzwc','cancelled','RABETBASE_DISABLE_ISSUE_NUDGE','join','\x20bug?\x20Help\x20us\x20fix\x20it:','2804kEKDmp'];a92_0x4cc4=function(){return _0x54819e;};return a92_0x4cc4();}export function printIssueReportNudgeForError(_0x2b3c81,_0x7d2d0d,_0x1badb1=defaultWriter){if(!shouldNudgeForError(_0x2b3c81,_0x7d2d0d))return;const _0x4e1d11=buildSuggestedTitle(_0x2b3c81,_0x7d2d0d);_0x1badb1(formatNudge(_0x4e1d11));}function a92_0x522a(_0x907b38,_0x118495){_0x907b38=_0x907b38-0x12e;const _0x4cc41d=a92_0x4cc4();let _0x522ae7=_0x4cc41d[_0x907b38];return _0x522ae7;}function buildSuggestedTitle(_0x526804,_0x2fe69b){const _0x322e6f=a92_0x3dbb33,_0x17412b=_0x526804 instanceof Error?_0x526804['message']:String(_0x526804),_0x35908c=_0x17412b[_0x322e6f(0x144)](/[\r\n]+/g,'\x20')[_0x322e6f(0x144)](/\s+/g,'\x20')['trim']()[_0x322e6f(0x14a)](0x0,0x78)[_0x322e6f(0x144)](/"/g,'\x5c\x22'),_0x1bc4fb=CLI_BIN_NAME+'\x20'+_0x2fe69b['service']+'\x20'+_0x2fe69b[_0x322e6f(0x12e)];return _0x35908c[_0x322e6f(0x13e)]>0x0?_0x1bc4fb+':\x20'+_0x35908c:_0x1bc4fb;}function formatNudge(_0x26974a){const _0x30efa7=a92_0x3dbb33;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x30efa7(0x133),'\x20\x20'+CLI_BIN_NAME+_0x30efa7(0x136),_0x30efa7(0x141)+_0x26974a+_0x30efa7(0x14c),_0x30efa7(0x137),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x30efa7(0x13d)+NUDGE_OPT_OUT_ENV+_0x30efa7(0x149),''][_0x30efa7(0x132)]('\x0a');}
@@ -1 +1 @@
1
- const a93_0x2fbfd1=a93_0x4b67;(function(_0x1da1db,_0x3b20a8){const _0x3cab11=a93_0x4b67,_0x33f288=_0x1da1db();while(!![]){try{const _0x3f4f8b=-parseInt(_0x3cab11(0x158))/0x1*(parseInt(_0x3cab11(0x155))/0x2)+parseInt(_0x3cab11(0x144))/0x3*(-parseInt(_0x3cab11(0x15f))/0x4)+parseInt(_0x3cab11(0x147))/0x5*(-parseInt(_0x3cab11(0x138))/0x6)+parseInt(_0x3cab11(0x156))/0x7*(-parseInt(_0x3cab11(0x135))/0x8)+parseInt(_0x3cab11(0x14c))/0x9+-parseInt(_0x3cab11(0x14a))/0xa+parseInt(_0x3cab11(0x14d))/0xb;if(_0x3f4f8b===_0x3b20a8)break;else _0x33f288['push'](_0x33f288['shift']());}catch(_0x454afa){_0x33f288['push'](_0x33f288['shift']());}}}(a93_0x86aa,0xb365e));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a93_0x86aa(){const _0x21759d=['23238479zNpDfH','sanitize','push','\x20bytes','issue.description_truncated','string','length','validation','1054268kHpsxy','28THzMQc','descriptionFile:\x20','1BTbspq','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','title','filter','issue.title','descriptionSource','join','300isZnBi','POST','truncated\x20from\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','inline','Failed\x20to\x20report\x20platform\x20issue:\x20','redactionCount','Issue\x20description\x20cannot\x20be\x20empty.','description-file','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','722680fVgLoC','truncated','descriptionFilePath','42wGNTby','message','compress','redactionKinds','issue.description','originalBytes','trim','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','otel://','cwd','flagMissing','One-line\x20issue\x20summary','3723KoWetj','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','str','201270tjAtrl','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description','13507210hopinv','issue.description_redaction_kinds','11126457laWYLM'];a93_0x86aa=function(){return _0x21759d;};return a93_0x86aa();}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=a93_0x2fbfd1(0x132);export const issueReport={'service':'issue','command':'report','description':a93_0x2fbfd1(0x162),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0x2fbfd1(0x13a),'flags':[{'name':'title','type':a93_0x2fbfd1(0x152),'required':!![],'description':a93_0x2fbfd1(0x143)},{'name':a93_0x2fbfd1(0x149),'type':a93_0x2fbfd1(0x152),'description':a93_0x2fbfd1(0x134)},{'name':DESCRIPTION_FILE_FLAG,'type':a93_0x2fbfd1(0x152),'description':a93_0x2fbfd1(0x13f)}],async 'validate'(_0x29009b){const _0x525745=a93_0x2fbfd1,_0x543e57=_0x29009b[_0x525745(0x146)](_0x525745(0x15a))[_0x525745(0x13e)](),_0x33e4d1=_0x29009b['str']('description')[_0x525745(0x13e)](),_0xbd77b=_0x29009b['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x543e57)throw CliErrors[_0x525745(0x142)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x152acb=_0x33e4d1[_0x525745(0x153)]>0x0,_0x4ff947=_0xbd77b[_0x525745(0x153)]>0x0;if(_0x152acb===_0x4ff947)throw CliErrors[_0x525745(0x154)](_0x525745(0x145),_0x525745(0x159));if(_0x4ff947){const _0x3f6094=resolve(process[_0x525745(0x141)](),_0xbd77b);if(!existsSync(_0x3f6094))throw CliErrors[_0x525745(0x154)]('File\x20not\x20found:\x20'+_0x3f6094);}},async 'dryRun'(_0x59dce8){const _0x3efd3d=a93_0x2fbfd1,_0x8eda6a=await prepareIssueReport(_0x59dce8);return{'method':_0x3efd3d(0x160),'url':_0x3efd3d(0x140)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x8eda6a[_0x3efd3d(0x15a)],'issue.description':_0x8eda6a['description'],'issue.description_original_bytes':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13d)],'issue.description_truncated':_0x8eda6a['sanitize'][_0x3efd3d(0x136)],'issue.description_redactions':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)],'issue.description_redaction_kinds':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13b)][_0x3efd3d(0x15e)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x8eda6a['descriptionSource'],_0x8eda6a[_0x3efd3d(0x137)]?_0x3efd3d(0x157)+_0x8eda6a[_0x3efd3d(0x137)]:null,_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x136)]?'truncated:\x20original\x20'+_0x8eda6a['sanitize'][_0x3efd3d(0x13d)]+_0x3efd3d(0x150):null,_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)]>0x0?'redactions:\x20'+_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)]+'\x20('+_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13b)]['join'](',\x20')+')':null][_0x3efd3d(0x15b)](Boolean)[_0x3efd3d(0x15e)]('\x0a')};},async 'execute'(_0x5cc3db){const _0x209e1c=a93_0x2fbfd1,_0x4cafe6=await prepareIssueReport(_0x5cc3db);try{await sendPlatformIssueCollectLog({'title':_0x4cafe6['title'],'description':_0x4cafe6[_0x209e1c(0x149)],'sanitize':{'originalBytes':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x13d)],'truncated':_0x4cafe6[_0x209e1c(0x14e)]['truncated'],'redactionCount':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x130)],'redactionKinds':_0x4cafe6['sanitize']['redactionKinds']}});}catch(_0x3b86f7){throw CliErrors['apiError'](_0x209e1c(0x164)+(_0x3b86f7 instanceof Error?_0x3b86f7[_0x209e1c(0x139)]:String(_0x3b86f7)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x4cafe6['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x209e1c(0x15c),_0x209e1c(0x13c),'issue.description_original_bytes',_0x209e1c(0x151),'issue.description_redactions',_0x209e1c(0x14b)],'issue':{'title':_0x4cafe6[_0x209e1c(0x15a)],'descriptionLength':_0x4cafe6[_0x209e1c(0x149)][_0x209e1c(0x153)],'descriptionSource':_0x4cafe6[_0x209e1c(0x15d)],..._0x4cafe6[_0x209e1c(0x137)]?{'descriptionFile':_0x4cafe6['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x13d)],'truncated':_0x4cafe6['sanitize'][_0x209e1c(0x136)],'redactions':_0x4cafe6[_0x209e1c(0x14e)]['redactionCount'],'redactionKinds':_0x4cafe6[_0x209e1c(0x14e)]['redactionKinds']}}}};}};function buildResultMessage(_0x454491){const _0x1df60b=a93_0x2fbfd1,_0x4c1501=[];return _0x454491['truncated']&&_0x4c1501['push'](_0x1df60b(0x161)+_0x454491['originalBytes']+_0x1df60b(0x150)),_0x454491[_0x1df60b(0x130)]>0x0&&_0x4c1501[_0x1df60b(0x14f)]('redacted\x20'+_0x454491[_0x1df60b(0x130)]+'\x20secret(s):\x20'+_0x454491['redactionKinds']['join'](',\x20')),_0x4c1501['length']===0x0?'Platform\x20issue\x20reported':'Platform\x20issue\x20reported\x20('+_0x4c1501[_0x1df60b(0x15e)](';\x20')+')';}function a93_0x4b67(_0x75a3a9,_0x3b94ea){_0x75a3a9=_0x75a3a9-0x130;const _0x86aa66=a93_0x86aa();let _0x4b6729=_0x86aa66[_0x75a3a9];return _0x4b6729;}async function prepareIssueReport(_0xc43bec){const _0x5585bb=a93_0x2fbfd1,_0x2aadac=_0xc43bec[_0x5585bb(0x146)]('title')[_0x5585bb(0x13e)](),_0x9facf2=_0xc43bec['str'](_0x5585bb(0x149)),_0x1775e8=_0xc43bec['str'](DESCRIPTION_FILE_FLAG)[_0x5585bb(0x13e)]();if(!_0x1775e8){const _0x439de6=_0x9facf2;if(!_0x439de6['trim']())throw CliErrors[_0x5585bb(0x154)](_0x5585bb(0x131),_0x5585bb(0x148));const _0x40eca0=sanitizeIssueDescription(_0x439de6);return{'title':_0x2aadac,'description':_0x40eca0[_0x5585bb(0x149)],'descriptionSource':_0x5585bb(0x163),'sanitize':_0x40eca0};}const _0xe3a970=resolve(process[_0x5585bb(0x141)](),_0x1775e8),_0xfd2d42=await readFile(_0xe3a970,'utf8');if(!_0xfd2d42[_0x5585bb(0x13e)]())throw CliErrors[_0x5585bb(0x154)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0xe3a970,_0x5585bb(0x133));const _0x32ac44=sanitizeIssueDescription(_0xfd2d42);return{'title':_0x2aadac,'description':_0x32ac44[_0x5585bb(0x149)],'descriptionSource':'file','descriptionFilePath':_0xe3a970,'sanitize':_0x32ac44};}
1
+ const a93_0xc52a0a=a93_0x536d;(function(_0x2d7abe,_0x27feb0){const _0x2b0f3f=a93_0x536d,_0x5c45cc=_0x2d7abe();while(!![]){try{const _0x4b73cb=parseInt(_0x2b0f3f(0x14b))/0x1*(-parseInt(_0x2b0f3f(0x14c))/0x2)+parseInt(_0x2b0f3f(0x156))/0x3+-parseInt(_0x2b0f3f(0x135))/0x4*(-parseInt(_0x2b0f3f(0x170))/0x5)+-parseInt(_0x2b0f3f(0x165))/0x6+-parseInt(_0x2b0f3f(0x145))/0x7*(-parseInt(_0x2b0f3f(0x162))/0x8)+-parseInt(_0x2b0f3f(0x13d))/0x9*(parseInt(_0x2b0f3f(0x137))/0xa)+parseInt(_0x2b0f3f(0x139))/0xb;if(_0x4b73cb===_0x27feb0)break;else _0x5c45cc['push'](_0x5c45cc['shift']());}catch(_0x3dc658){_0x5c45cc['push'](_0x5c45cc['shift']());}}}(a93_0x2084,0xb7e44));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a93_0x2084(){const _0x44a97f=['description-file','issue.title','inline','compress','issue.description','732340YrtYQw','otel://','descriptionSource:\x20','redactionKinds','descriptionFilePath','\x20secret(s):\x20','2IPgXxX','243626ddbByZ','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','POST','filter','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Platform\x20issue\x20reported','cwd','description','flagMissing','225642GfRKLg','utf8','length','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','join','Platform\x20issue\x20reported\x20(','push','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','trim','sanitize','str','32qSsyMa','Issue\x20description\x20cannot\x20be\x20empty.','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','3345822GXmPma','title','truncated','redactions:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','originalBytes','issue.description_redactions','truncated:\x20original\x20','report','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactionCount','4827865UGYcqg','One-line\x20issue\x20summary','4QKyyuP','validation','9409900gIrSiE','descriptionSource','11398266tIpVnJ','message','apiError','issue.description_redaction_kinds','9hnVIbD','file','File\x20not\x20found:\x20'];a93_0x2084=function(){return _0x44a97f;};return a93_0x2084();}function a93_0x536d(_0xddd43f,_0x24a1db){_0xddd43f=_0xddd43f-0x135;const _0x20842c=a93_0x2084();let _0x536d2f=_0x20842c[_0xddd43f];return _0x536d2f;}const DESCRIPTION_FILE_FLAG=a93_0xc52a0a(0x140);export const issueReport={'service':'issue','command':a93_0xc52a0a(0x16d),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0xc52a0a(0x143),'flags':[{'name':a93_0xc52a0a(0x166),'type':'string','required':!![],'description':a93_0xc52a0a(0x171)},{'name':a93_0xc52a0a(0x154),'type':'string','description':a93_0xc52a0a(0x159)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a93_0xc52a0a(0x14e)}],async 'validate'(_0x2e87b1){const _0x59a29b=a93_0xc52a0a,_0x4287b9=_0x2e87b1[_0x59a29b(0x161)](_0x59a29b(0x166))[_0x59a29b(0x15f)](),_0x583a7e=_0x2e87b1[_0x59a29b(0x161)]('description')[_0x59a29b(0x15f)](),_0x57d4a6=_0x2e87b1[_0x59a29b(0x161)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4287b9)throw CliErrors[_0x59a29b(0x155)]('title',_0x59a29b(0x15e));const _0x49ba91=_0x583a7e[_0x59a29b(0x158)]>0x0,_0x1f9215=_0x57d4a6[_0x59a29b(0x158)]>0x0;if(_0x49ba91===_0x1f9215)throw CliErrors[_0x59a29b(0x136)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x59a29b(0x15d));if(_0x1f9215){const _0x546d52=resolve(process[_0x59a29b(0x153)](),_0x57d4a6);if(!existsSync(_0x546d52))throw CliErrors[_0x59a29b(0x136)](_0x59a29b(0x13f)+_0x546d52);}},async 'dryRun'(_0x40d351){const _0x1312ef=a93_0xc52a0a,_0x1167b6=await prepareIssueReport(_0x40d351);return{'method':_0x1312ef(0x14f),'url':_0x1312ef(0x146)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1167b6[_0x1312ef(0x166)],'issue.description':_0x1167b6[_0x1312ef(0x154)],'issue.description_original_bytes':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16a)],'issue.description_truncated':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x167)],'issue.description_redactions':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)],'issue.description_redaction_kinds':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x148)][_0x1312ef(0x15a)](',')}},'description':[_0x1312ef(0x14d),_0x1312ef(0x147)+_0x1167b6[_0x1312ef(0x138)],_0x1167b6[_0x1312ef(0x149)]?'descriptionFile:\x20'+_0x1167b6[_0x1312ef(0x149)]:null,_0x1167b6['sanitize'][_0x1312ef(0x167)]?_0x1312ef(0x16c)+_0x1167b6[_0x1312ef(0x160)]['originalBytes']+'\x20bytes':null,_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)]>0x0?_0x1312ef(0x168)+_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)]+'\x20('+_0x1167b6[_0x1312ef(0x160)]['redactionKinds'][_0x1312ef(0x15a)](',\x20')+')':null][_0x1312ef(0x150)](Boolean)[_0x1312ef(0x15a)]('\x0a')};},async 'execute'(_0x256f4e){const _0x3c5042=a93_0xc52a0a,_0x210583=await prepareIssueReport(_0x256f4e);try{await sendPlatformIssueCollectLog({'title':_0x210583[_0x3c5042(0x166)],'description':_0x210583[_0x3c5042(0x154)],'sanitize':{'originalBytes':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16a)],'truncated':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x167)],'redactionCount':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16f)],'redactionKinds':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x148)]}});}catch(_0x12ecd1){throw CliErrors[_0x3c5042(0x13b)](_0x3c5042(0x169)+(_0x12ecd1 instanceof Error?_0x12ecd1[_0x3c5042(0x13a)]:String(_0x12ecd1)),_0x3c5042(0x151));}return{'ok':!![],'message':buildResultMessage(_0x210583['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3c5042(0x141),_0x3c5042(0x144),'issue.description_original_bytes','issue.description_truncated',_0x3c5042(0x16b),_0x3c5042(0x13c)],'issue':{'title':_0x210583['title'],'descriptionLength':_0x210583[_0x3c5042(0x154)][_0x3c5042(0x158)],'descriptionSource':_0x210583[_0x3c5042(0x138)],..._0x210583['descriptionFilePath']?{'descriptionFile':_0x210583[_0x3c5042(0x149)]}:{},'sanitize':{'originalBytes':_0x210583['sanitize'][_0x3c5042(0x16a)],'truncated':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x167)],'redactions':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16f)],'redactionKinds':_0x210583['sanitize'][_0x3c5042(0x148)]}}}};}};function buildResultMessage(_0x29334d){const _0x16bd0c=a93_0xc52a0a,_0x428273=[];return _0x29334d[_0x16bd0c(0x167)]&&_0x428273[_0x16bd0c(0x15c)]('truncated\x20from\x20'+_0x29334d[_0x16bd0c(0x16a)]+'\x20bytes'),_0x29334d[_0x16bd0c(0x16f)]>0x0&&_0x428273[_0x16bd0c(0x15c)]('redacted\x20'+_0x29334d[_0x16bd0c(0x16f)]+_0x16bd0c(0x14a)+_0x29334d[_0x16bd0c(0x148)][_0x16bd0c(0x15a)](',\x20')),_0x428273['length']===0x0?_0x16bd0c(0x152):_0x16bd0c(0x15b)+_0x428273[_0x16bd0c(0x15a)](';\x20')+')';}async function prepareIssueReport(_0x46ebde){const _0x35226d=a93_0xc52a0a,_0x574b65=_0x46ebde['str'](_0x35226d(0x166))[_0x35226d(0x15f)](),_0x21b8f1=_0x46ebde[_0x35226d(0x161)](_0x35226d(0x154)),_0xe93199=_0x46ebde[_0x35226d(0x161)](DESCRIPTION_FILE_FLAG)[_0x35226d(0x15f)]();if(!_0xe93199){const _0x149bbd=_0x21b8f1;if(!_0x149bbd['trim']())throw CliErrors[_0x35226d(0x136)](_0x35226d(0x163),_0x35226d(0x16e));const _0x599a6b=sanitizeIssueDescription(_0x149bbd);return{'title':_0x574b65,'description':_0x599a6b[_0x35226d(0x154)],'descriptionSource':_0x35226d(0x142),'sanitize':_0x599a6b};}const _0x5140fc=resolve(process[_0x35226d(0x153)](),_0xe93199),_0x1f4065=await readFile(_0x5140fc,_0x35226d(0x157));if(!_0x1f4065[_0x35226d(0x15f)]())throw CliErrors[_0x35226d(0x136)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x5140fc,_0x35226d(0x164));const _0x2c4bb8=sanitizeIssueDescription(_0x1f4065);return{'title':_0x574b65,'description':_0x2c4bb8['description'],'descriptionSource':_0x35226d(0x13e),'descriptionFilePath':_0x5140fc,'sanitize':_0x2c4bb8};}
@@ -1 +1 @@
1
- const a94_0x48daba=a94_0x59d2;(function(_0x387cfa,_0x2c7875){const _0x22ed66=a94_0x59d2,_0x35008d=_0x387cfa();while(!![]){try{const _0x21abbb=-parseInt(_0x22ed66(0x16b))/0x1*(-parseInt(_0x22ed66(0x15f))/0x2)+-parseInt(_0x22ed66(0x155))/0x3+-parseInt(_0x22ed66(0x169))/0x4+-parseInt(_0x22ed66(0x153))/0x5*(parseInt(_0x22ed66(0x15e))/0x6)+parseInt(_0x22ed66(0x152))/0x7+-parseInt(_0x22ed66(0x156))/0x8+parseInt(_0x22ed66(0x16a))/0x9;if(_0x21abbb===_0x2c7875)break;else _0x35008d['push'](_0x35008d['shift']());}catch(_0x304f6f){_0x35008d['push'](_0x35008d['shift']());}}}(a94_0x244d,0x3dd89));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a94_0x244d(){const _0x3cac38=['REDACTED:bearer-jwt','1031728nVdFjy','1188837fLhXtW','2TYfJTi','bearer-jwt','3349773RbQNPT','279535WYwesm','toString','71577mRoUea','3001088tbGXgE','utf8','REDACTED:private-key','REDACTED:cookie','replace','REDACTED:password','access-key','max','12XPOGyL','411430VqHBbV','REDACTED:access-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','kind','byteLength','includes','label','cookie','from'];a94_0x244d=function(){return _0x3cac38;};return a94_0x244d();}function a94_0x59d2(_0x59d141,_0xc827c7){_0x59d141=_0x59d141-0x152;const _0x244de9=a94_0x244d();let _0x59d276=_0x244de9[_0x59d141];return _0x59d276;}const TRUNCATION_NOTICE=a94_0x48daba(0x161),REDACTION_RULES=[{'kind':a94_0x48daba(0x166),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x48daba(0x159)},{'kind':'authorization','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':a94_0x48daba(0x158)},{'kind':a94_0x48daba(0x15c),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x48daba(0x160)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x48daba(0x15b)},{'kind':a94_0x48daba(0x16c),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x48daba(0x168)}];export function sanitizeIssueDescription(_0x59c2dc){const _0x50930d=a94_0x48daba,_0x468b64=Buffer['byteLength'](_0x59c2dc,'utf8'),_0x45154b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2f2dfc=_0x59c2dc,_0x1f1f60=0x0;const _0x19c3e3=[];if(!_0x45154b)for(const _0x516661 of REDACTION_RULES){let _0x1e61d1=0x0;_0x2f2dfc=_0x2f2dfc[_0x50930d(0x15a)](_0x516661['pattern'],(_0x453054,_0x3fb630)=>{const _0x33a831=_0x50930d;_0x1e61d1+=0x1;const _0x250278=typeof _0x3fb630==='string'?_0x3fb630:'';return _0x250278+'['+_0x516661[_0x33a831(0x165)]+']';}),_0x1e61d1>0x0&&(_0x1f1f60+=_0x1e61d1,!_0x19c3e3[_0x50930d(0x164)](_0x516661[_0x50930d(0x162)])&&_0x19c3e3['push'](_0x516661[_0x50930d(0x162)]));}let _0x2604ca=![];if(Buffer[_0x50930d(0x163)](_0x2f2dfc,_0x50930d(0x157))>ISSUE_DESCRIPTION_MAX_BYTES){_0x2604ca=!![];const _0x7bb68f=Buffer[_0x50930d(0x163)](TRUNCATION_NOTICE,_0x50930d(0x157)),_0x4d7b0c=Math[_0x50930d(0x15d)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x7bb68f);_0x2f2dfc=sliceUtf8Bytes(_0x2f2dfc,_0x4d7b0c)+TRUNCATION_NOTICE;}return{'description':_0x2f2dfc,'originalBytes':_0x468b64,'truncated':_0x2604ca,'redactionCount':_0x1f1f60,'redactionKinds':_0x19c3e3};}function sliceUtf8Bytes(_0xca3f58,_0x34355e){const _0x141951=a94_0x48daba;if(_0x34355e<=0x0)return'';const _0x5976d9=Buffer[_0x141951(0x167)](_0xca3f58,_0x141951(0x157));if(_0x5976d9[_0x141951(0x163)]<=_0x34355e)return _0xca3f58;let _0x4aa334=_0x34355e;while(_0x4aa334>0x0){const _0x4bc8ef=_0x5976d9[_0x4aa334];if(_0x4bc8ef===undefined||(_0x4bc8ef&0xc0)!==0x80)break;_0x4aa334-=0x1;}return _0x5976d9['subarray'](0x0,_0x4aa334)[_0x141951(0x154)](_0x141951(0x157));}
1
+ const a94_0x294ce9=a94_0x4918;(function(_0x34e9b6,_0x2f44eb){const _0x38d765=a94_0x4918,_0x53ecd4=_0x34e9b6();while(!![]){try{const _0x37db32=-parseInt(_0x38d765(0x111))/0x1+-parseInt(_0x38d765(0x10d))/0x2*(-parseInt(_0x38d765(0x11a))/0x3)+parseInt(_0x38d765(0x102))/0x4*(parseInt(_0x38d765(0x104))/0x5)+-parseInt(_0x38d765(0x110))/0x6+parseInt(_0x38d765(0x11b))/0x7*(parseInt(_0x38d765(0x10a))/0x8)+-parseInt(_0x38d765(0x107))/0x9+-parseInt(_0x38d765(0x11c))/0xa;if(_0x37db32===_0x2f44eb)break;else _0x53ecd4['push'](_0x53ecd4['shift']());}catch(_0x42e4a5){_0x53ecd4['push'](_0x53ecd4['shift']());}}}(a94_0x14a8,0xa2ed0));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a94_0x4918(_0x840cef,_0x26f699){_0x840cef=_0x840cef-0x102;const _0x14a84c=a94_0x14a8();let _0x4918c8=_0x14a84c[_0x840cef];return _0x4918c8;}function a94_0x14a8(){const _0x1f6ca8=['67410ftymqb','toString','kind','REDACTED:bearer-jwt','byteLength','REDACTED:access-key','REDACTED:private-key','cookie','includes','3qevcch','4716586msgrCC','8596990drdtkY','private-key','access-key','replace','push','authorization','48fWiIiO','REDACTED:password','149230ZyqslT','utf8','REDACTED:cookie','2809161DvJRUf','label','bearer-jwt','8ndTSnS','string','max','1983790EIVvNK','pattern','subarray','703578fAGmqs'];a94_0x14a8=function(){return _0x1f6ca8;};return a94_0x14a8();}const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a94_0x294ce9(0x118),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x294ce9(0x106)},{'kind':a94_0x294ce9(0x121),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a94_0x294ce9(0x11d),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x294ce9(0x117)},{'kind':a94_0x294ce9(0x11e),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x294ce9(0x116)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x294ce9(0x103)},{'kind':a94_0x294ce9(0x109),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x294ce9(0x114)}];export function sanitizeIssueDescription(_0x2d43cf){const _0xe4daf1=a94_0x294ce9,_0x2b67f5=Buffer['byteLength'](_0x2d43cf,'utf8'),_0x2244b3=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1dcb59=_0x2d43cf,_0x1c9623=0x0;const _0x155bb6=[];if(!_0x2244b3)for(const _0xc7a00d of REDACTION_RULES){let _0x22bcc8=0x0;_0x1dcb59=_0x1dcb59[_0xe4daf1(0x11f)](_0xc7a00d[_0xe4daf1(0x10e)],(_0x58c7c6,_0x3fac08)=>{const _0x38e824=_0xe4daf1;_0x22bcc8+=0x1;const _0x5f06f6=typeof _0x3fac08===_0x38e824(0x10b)?_0x3fac08:'';return _0x5f06f6+'['+_0xc7a00d[_0x38e824(0x108)]+']';}),_0x22bcc8>0x0&&(_0x1c9623+=_0x22bcc8,!_0x155bb6[_0xe4daf1(0x119)](_0xc7a00d[_0xe4daf1(0x113)])&&_0x155bb6[_0xe4daf1(0x120)](_0xc7a00d[_0xe4daf1(0x113)]));}let _0x176ed7=![];if(Buffer[_0xe4daf1(0x115)](_0x1dcb59,_0xe4daf1(0x105))>ISSUE_DESCRIPTION_MAX_BYTES){_0x176ed7=!![];const _0x3e096c=Buffer['byteLength'](TRUNCATION_NOTICE,_0xe4daf1(0x105)),_0x4dfc0e=Math[_0xe4daf1(0x10c)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3e096c);_0x1dcb59=sliceUtf8Bytes(_0x1dcb59,_0x4dfc0e)+TRUNCATION_NOTICE;}return{'description':_0x1dcb59,'originalBytes':_0x2b67f5,'truncated':_0x176ed7,'redactionCount':_0x1c9623,'redactionKinds':_0x155bb6};}function sliceUtf8Bytes(_0xbfb116,_0x29aba6){const _0x13f440=a94_0x294ce9;if(_0x29aba6<=0x0)return'';const _0x2b622f=Buffer['from'](_0xbfb116,_0x13f440(0x105));if(_0x2b622f[_0x13f440(0x115)]<=_0x29aba6)return _0xbfb116;let _0x22da46=_0x29aba6;while(_0x22da46>0x0){const _0x48619e=_0x2b622f[_0x22da46];if(_0x48619e===undefined||(_0x48619e&0xc0)!==0x80)break;_0x22da46-=0x1;}return _0x2b622f[_0x13f440(0x10f)](0x0,_0x22da46)[_0x13f440(0x112)]('utf8');}
@@ -1 +1 @@
1
- const a95_0x1d8fda=a95_0x3af4;function a95_0x3af4(_0x141ea1,_0x50aa41){_0x141ea1=_0x141ea1-0x10e;const _0x2995ed=a95_0x2995();let _0x3af441=_0x2995ed[_0x141ea1];return _0x3af441;}(function(_0x89be13,_0x2c7ce5){const _0x1ea87f=a95_0x3af4,_0x2fa556=_0x89be13();while(!![]){try{const _0x409dca=parseInt(_0x1ea87f(0x115))/0x1*(-parseInt(_0x1ea87f(0x129))/0x2)+parseInt(_0x1ea87f(0x114))/0x3+parseInt(_0x1ea87f(0x10f))/0x4+-parseInt(_0x1ea87f(0x127))/0x5*(parseInt(_0x1ea87f(0x132))/0x6)+-parseInt(_0x1ea87f(0x12d))/0x7+parseInt(_0x1ea87f(0x119))/0x8+parseInt(_0x1ea87f(0x12e))/0x9;if(_0x409dca===_0x2c7ce5)break;else _0x2fa556['push'](_0x2fa556['shift']());}catch(_0x164226){_0x2fa556['push'](_0x2fa556['shift']());}}}(a95_0x2995,0xb02e2));import{logger}from'../../utils/logger.js';function a95_0x2995(){const _0x390f7a=['41pLxAPL','duration','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','2505344ZlGcuA','clearLogs','\x20\x20\x20Time:\x20','length','error','log','keys','success','readLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','read','stringify','message','details','56995IBTwLr','toLocaleString','23042TCoHhP','en-US','warn','clear','5655328sCOKCY','10097928pxCNdu','write','logs','Clear\x20command\x20history\x20logs','354UYzwOO','level','forEach','2635020lhrMLt','*\x20Logs\x20cleared','show','*\x20No\x20logs\x20found','timestamp','1741575FpDGiY'];a95_0x2995=function(){return _0x390f7a;};return a95_0x2995();}function printLogs(_0x3d2cf8){const _0x334569=a95_0x3af4;if(_0x3d2cf8['length']===0x0){console[_0x334569(0x11e)](_0x334569(0x112));return;}console['log'](_0x334569(0x122)),_0x3d2cf8[_0x334569(0x10e)]((_0x26e02c,_0x2dc076)=>{const _0x1e9aff=_0x334569,_0x3d8086=new Date(_0x26e02c[_0x1e9aff(0x113)])[_0x1e9aff(0x128)](_0x1e9aff(0x12a)),_0x54655a=_0x26e02c['level']===_0x1e9aff(0x120)?'√':_0x26e02c['level']===_0x1e9aff(0x11d)?'×':_0x26e02c[_0x1e9aff(0x133)]===_0x1e9aff(0x12b)?'!':'i';console[_0x1e9aff(0x11e)](_0x2dc076+0x1+'.\x20'+_0x54655a+'\x20['+_0x26e02c['command']+']\x20'+_0x26e02c[_0x1e9aff(0x125)]),console[_0x1e9aff(0x11e)](_0x1e9aff(0x11b)+_0x3d8086),_0x26e02c[_0x1e9aff(0x116)]&&console[_0x1e9aff(0x11e)](_0x1e9aff(0x118)+_0x26e02c[_0x1e9aff(0x116)]+'ms'),_0x26e02c[_0x1e9aff(0x126)]&&Object[_0x1e9aff(0x11f)](_0x26e02c[_0x1e9aff(0x126)])[_0x1e9aff(0x11c)]>0x0&&console[_0x1e9aff(0x11e)](_0x1e9aff(0x117)+JSON[_0x1e9aff(0x124)](_0x26e02c[_0x1e9aff(0x126)],null,0x2)),console[_0x1e9aff(0x11e)]('');});}export const logsDefinitions=[{'service':a95_0x1d8fda(0x130),'command':a95_0x1d8fda(0x111),'description':'View\x20command\x20history\x20logs','risk':a95_0x1d8fda(0x123),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x37b680){const _0x4145e9=a95_0x1d8fda;return printLogs(logger[_0x4145e9(0x121)]()),{'ok':!![]};}},{'service':a95_0x1d8fda(0x130),'command':a95_0x1d8fda(0x12c),'description':a95_0x1d8fda(0x131),'risk':a95_0x1d8fda(0x12f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xb684cc){const _0xd4ddc9=a95_0x1d8fda;return logger[_0xd4ddc9(0x11a)](),console[_0xd4ddc9(0x11e)](_0xd4ddc9(0x110)),{'ok':!![]};}}];
1
+ const a95_0x1a88e2=a95_0x50cd;(function(_0x230008,_0x2d7406){const _0x56d7ad=a95_0x50cd,_0x572f05=_0x230008();while(!![]){try{const _0x537834=parseInt(_0x56d7ad(0xf8))/0x1+parseInt(_0x56d7ad(0x10e))/0x2+parseInt(_0x56d7ad(0x102))/0x3+-parseInt(_0x56d7ad(0x10b))/0x4*(parseInt(_0x56d7ad(0x10f))/0x5)+-parseInt(_0x56d7ad(0x103))/0x6*(parseInt(_0x56d7ad(0x10a))/0x7)+parseInt(_0x56d7ad(0xfc))/0x8*(parseInt(_0x56d7ad(0x108))/0x9)+-parseInt(_0x56d7ad(0x104))/0xa*(parseInt(_0x56d7ad(0xfe))/0xb);if(_0x537834===_0x2d7406)break;else _0x572f05['push'](_0x572f05['shift']());}catch(_0x3c9f94){_0x572f05['push'](_0x572f05['shift']());}}}(a95_0x3e88,0xab3ad));function a95_0x3e88(){const _0x557cf3=['695OWUVmj','\x20\x20\x20Duration:\x20','keys','show','toLocaleString','logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','read','duration','en-US','level','1128926QLBQFA','timestamp','stringify','readLogs','120wZlgtA','*\x20No\x20logs\x20found','30778vcyRhT','error','log','clear','1713288OJqKke','3271986qnADtu','6530DUMmmg','success','clearLogs','details','536859iumhnq','Clear\x20command\x20history\x20logs','7BuoAJN','15168oiwaeS','length','*\x20Logs\x20cleared','2012166ecASrn'];a95_0x3e88=function(){return _0x557cf3;};return a95_0x3e88();}import{logger}from'../../utils/logger.js';function printLogs(_0x5498af){const _0x17807e=a95_0x50cd;if(_0x5498af[_0x17807e(0x10c)]===0x0){console[_0x17807e(0x100)](_0x17807e(0xfd));return;}console[_0x17807e(0x100)](_0x17807e(0xf3)),_0x5498af['forEach']((_0x3ce613,_0x1cc7fa)=>{const _0x5dfc40=_0x17807e,_0x8511ce=new Date(_0x3ce613[_0x5dfc40(0xf9)])[_0x5dfc40(0xf1)](_0x5dfc40(0xf6)),_0x3336b8=_0x3ce613[_0x5dfc40(0xf7)]===_0x5dfc40(0x105)?'√':_0x3ce613[_0x5dfc40(0xf7)]===_0x5dfc40(0xff)?'×':_0x3ce613[_0x5dfc40(0xf7)]==='warn'?'!':'i';console['log'](_0x1cc7fa+0x1+'.\x20'+_0x3336b8+'\x20['+_0x3ce613['command']+']\x20'+_0x3ce613['message']),console[_0x5dfc40(0x100)]('\x20\x20\x20Time:\x20'+_0x8511ce),_0x3ce613[_0x5dfc40(0xf5)]&&console['log'](_0x5dfc40(0xee)+_0x3ce613[_0x5dfc40(0xf5)]+'ms'),_0x3ce613[_0x5dfc40(0x107)]&&Object[_0x5dfc40(0xef)](_0x3ce613[_0x5dfc40(0x107)])[_0x5dfc40(0x10c)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x5dfc40(0xfa)](_0x3ce613[_0x5dfc40(0x107)],null,0x2)),console[_0x5dfc40(0x100)]('');});}function a95_0x50cd(_0x2a3291,_0x4312f8){_0x2a3291=_0x2a3291-0xee;const _0x3e8825=a95_0x3e88();let _0x50cd55=_0x3e8825[_0x2a3291];return _0x50cd55;}export const logsDefinitions=[{'service':a95_0x1a88e2(0xf2),'command':a95_0x1a88e2(0xf0),'description':'View\x20command\x20history\x20logs','risk':a95_0x1a88e2(0xf4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x540444){const _0x31c1f1=a95_0x1a88e2;return printLogs(logger[_0x31c1f1(0xfb)]()),{'ok':!![]};}},{'service':a95_0x1a88e2(0xf2),'command':a95_0x1a88e2(0x101),'description':a95_0x1a88e2(0x109),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x109390){const _0x33db03=a95_0x1a88e2;return logger[_0x33db03(0x106)](),console[_0x33db03(0x100)](_0x33db03(0x10d)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x43db8d,_0x3232e1){const _0x50c67b=a96_0x3918,_0x2babbd=_0x43db8d();while(!![]){try{const _0x4fa67d=-parseInt(_0x50c67b(0x18c))/0x1*(parseInt(_0x50c67b(0x18d))/0x2)+-parseInt(_0x50c67b(0x191))/0x3*(-parseInt(_0x50c67b(0x193))/0x4)+-parseInt(_0x50c67b(0x18a))/0x5+parseInt(_0x50c67b(0x192))/0x6*(-parseInt(_0x50c67b(0x18b))/0x7)+parseInt(_0x50c67b(0x188))/0x8+parseInt(_0x50c67b(0x189))/0x9*(-parseInt(_0x50c67b(0x190))/0xa)+-parseInt(_0x50c67b(0x18e))/0xb*(-parseInt(_0x50c67b(0x18f))/0xc);if(_0x4fa67d===_0x3232e1)break;else _0x2babbd['push'](_0x2babbd['shift']());}catch(_0x149d4c){_0x2babbd['push'](_0x2babbd['shift']());}}}(a96_0x572f,0x88c76));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a96_0x3918(_0x25c47c,_0x3bb4ff){_0x25c47c=_0x25c47c-0x188;const _0x572f48=a96_0x572f();let _0x3918e5=_0x572f48[_0x25c47c];return _0x3918e5;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a96_0x572f(){const _0x547612=['18933648BxLsiB','6030nUNeKi','159iKbURc','997554Dxtkpn','61472LXpuNm','1656528ZLOQPh','9045bYWEcL','1337035dYxTOm','7SJkFTH','999447avrdhm','2AXvwax','11RMsDwa'];a96_0x572f=function(){return _0x547612;};return a96_0x572f();}
1
+ (function(_0xa88240,_0x59540d){const _0x55b1ec=a96_0x2fcf,_0x3c3660=_0xa88240();while(!![]){try{const _0x3a48a9=parseInt(_0x55b1ec(0x7a))/0x1*(-parseInt(_0x55b1ec(0x82))/0x2)+parseInt(_0x55b1ec(0x83))/0x3+-parseInt(_0x55b1ec(0x7d))/0x4*(parseInt(_0x55b1ec(0x84))/0x5)+-parseInt(_0x55b1ec(0x81))/0x6+parseInt(_0x55b1ec(0x7e))/0x7*(-parseInt(_0x55b1ec(0x80))/0x8)+-parseInt(_0x55b1ec(0x7f))/0x9*(-parseInt(_0x55b1ec(0x7c))/0xa)+-parseInt(_0x55b1ec(0x85))/0xb*(-parseInt(_0x55b1ec(0x7b))/0xc);if(_0x3a48a9===_0x59540d)break;else _0x3c3660['push'](_0x3c3660['shift']());}catch(_0x5b2578){_0x3c3660['push'](_0x3c3660['shift']());}}}(a96_0x3fa8,0x9585a));import{menuList}from'../../commands/menu/list.js';function a96_0x2fcf(_0xeeffbc,_0x55e9ab){_0xeeffbc=_0xeeffbc-0x7a;const _0x3fa804=a96_0x3fa8();let _0x2fcf20=_0x3fa804[_0xeeffbc];return _0x2fcf20;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a96_0x3fa8(){const _0x42af29=['189FnPWpW','563120ojvVlo','6475452UxVTvC','2207432sEPUqX','1215792ieGSHh','3398170MaAtAH','11oUThZE','1CNuFGe','38303028bLEvfa','75910SjlyjL','4FDurJg','28HaKagA'];a96_0x3fa8=function(){return _0x42af29;};return a96_0x3fa8();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a97_0x5813c4=a97_0x13c2;(function(_0x574a61,_0x5b949d){const _0x545c9f=a97_0x13c2,_0x4e82fb=_0x574a61();while(!![]){try{const _0x21483a=parseInt(_0x545c9f(0x158))/0x1*(-parseInt(_0x545c9f(0x166))/0x2)+parseInt(_0x545c9f(0x16a))/0x3+-parseInt(_0x545c9f(0x15a))/0x4*(parseInt(_0x545c9f(0x170))/0x5)+parseInt(_0x545c9f(0x17f))/0x6*(parseInt(_0x545c9f(0x180))/0x7)+parseInt(_0x545c9f(0x179))/0x8+parseInt(_0x545c9f(0x15f))/0x9*(parseInt(_0x545c9f(0x15c))/0xa)+parseInt(_0x545c9f(0x165))/0xb;if(_0x21483a===_0x5b949d)break;else _0x4e82fb['push'](_0x4e82fb['shift']());}catch(_0x17916f){_0x4e82fb['push'](_0x4e82fb['shift']());}}}(a97_0xa339,0x4f015));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a97_0x13c2(_0x1671aa,_0x477622){_0x1671aa=_0x1671aa-0x158;const _0xa3396a=a97_0xa339();let _0x13c2d7=_0xa3396a[_0x1671aa];return _0x13c2d7;}import{getMenuTree}from'../../core/api-client.js';function a97_0xa339(){const _0x758a7f=['117bJNLek','bool','index','depth','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','verbose','7366172SYulmm','8LqWxyA','item','string','resources','1357437pkuInD','number','children','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','map','\x20menu(s)','5btdZfX','appCode','label','No\x20menus\x20found.','menu','length','cookie','visible','type','1004312ncRJCj','Found\x20','sort','push','isArray','read','6diuQGt','402892AELqnV','POSITIVE_INFINITY','extend','156363DliiSq','parentId','2331608otzkBl','boolean','174410ACCeeh','parse','list'];a97_0xa339=function(){return _0x758a7f;};return a97_0xa339();}export const menuList={'service':a97_0x5813c4(0x174),'command':a97_0x5813c4(0x15e),'description':a97_0x5813c4(0x163),'risk':a97_0x5813c4(0x17e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a97_0x5813c4(0x164),'type':a97_0x5813c4(0x15b),'description':a97_0x5813c4(0x16d)}],async 'execute'(_0x241115){const _0x4307ee=a97_0x5813c4,_0x2f6eed=_0x241115[_0x4307ee(0x160)](_0x4307ee(0x164)),_0x7f2235=await getMenuTree(_0x241115[_0x4307ee(0x171)],_0x241115[_0x4307ee(0x176)]),_0x40e855=flattenMenuItems(Array[_0x4307ee(0x17d)](_0x7f2235)?_0x7f2235:[],{'verbose':_0x2f6eed,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x40e855[_0x4307ee(0x175)],'menus':_0x40e855},'message':_0x40e855['length']===0x0?_0x4307ee(0x173):_0x4307ee(0x17a)+_0x40e855[_0x4307ee(0x175)]+_0x4307ee(0x16f)};}};function flattenMenuItems(_0x40b760,_0x564319){const _0x22fdfa=a97_0x5813c4,_0x162f43=sortMenuItems(_0x40b760),_0x47790f=[];for(const _0x1eede4 of _0x162f43){_0x47790f[_0x22fdfa(0x17c)](toMenuListItem(_0x1eede4,_0x564319)),Array[_0x22fdfa(0x17d)](_0x1eede4[_0x22fdfa(0x16c)])&&_0x1eede4[_0x22fdfa(0x16c)]['length']>0x0&&_0x47790f['push'](...flattenMenuItems(_0x1eede4[_0x22fdfa(0x16c)],{'verbose':_0x564319[_0x22fdfa(0x164)],'parentId':_0x1eede4['id'],'depth':_0x564319[_0x22fdfa(0x162)]+0x1}));}return _0x47790f;}function sortMenuItems(_0x427478){const _0x53ccb9=a97_0x5813c4;return _0x427478[_0x53ccb9(0x16e)]((_0x57d48f,_0xb9ba66)=>({'item':_0x57d48f,'index':_0xb9ba66}))[_0x53ccb9(0x17b)]((_0x366c3e,_0x3a0082)=>{const _0x24c6b6=_0x53ccb9,_0x309636=normalizeSort(_0x366c3e[_0x24c6b6(0x167)]['sort']),_0x529661=normalizeSort(_0x3a0082['item'][_0x24c6b6(0x17b)]);if(_0x309636!==_0x529661)return _0x309636-_0x529661;return _0x366c3e[_0x24c6b6(0x161)]-_0x3a0082[_0x24c6b6(0x161)];})['map'](({item:_0x49b26e})=>_0x49b26e);}function toMenuListItem(_0x5dc463,_0x11815c){const _0x358935=a97_0x5813c4,_0x38452c={'id':_0x5dc463['id'],'parentId':_0x11815c[_0x358935(0x159)],'depth':_0x11815c[_0x358935(0x162)],'label':normalizeString(_0x5dc463[_0x358935(0x172)]),'path':normalizeString(_0x5dc463['path']),'type':normalizeString(_0x5dc463[_0x358935(0x178)]),'visible':typeof _0x5dc463[_0x358935(0x177)]===_0x358935(0x15b)?_0x5dc463[_0x358935(0x177)]:null,'sort':typeof _0x5dc463[_0x358935(0x17b)]===_0x358935(0x16b)&&Number['isFinite'](_0x5dc463[_0x358935(0x17b)])?_0x5dc463[_0x358935(0x17b)]:null,'resources':normalizeResources(_0x5dc463[_0x358935(0x182)]?.[_0x358935(0x169)])};return _0x11815c[_0x358935(0x164)]&&(_0x38452c['extend']=_0x5dc463['extend']??null),_0x38452c;}function normalizeSort(_0x348805){const _0x1df1e3=a97_0x5813c4;return typeof _0x348805==='number'&&Number['isFinite'](_0x348805)?_0x348805:Number[_0x1df1e3(0x181)];}function normalizeString(_0x1b3ad5){return typeof _0x1b3ad5==='string'?_0x1b3ad5:'';}function normalizeResources(_0x289ad8){const _0x646d44=a97_0x5813c4;if(Array[_0x646d44(0x17d)](_0x289ad8))return _0x289ad8[_0x646d44(0x16e)](String);if(typeof _0x289ad8!==_0x646d44(0x168))return[];try{const _0xfa1827=JSON[_0x646d44(0x15d)](_0x289ad8);return Array[_0x646d44(0x17d)](_0xfa1827)?_0xfa1827[_0x646d44(0x16e)](String):[];}catch{return[];}}
1
+ const a97_0x5720ac=a97_0x3c6f;(function(_0x57d67a,_0x24935c){const _0x3a9516=a97_0x3c6f,_0x4ddc27=_0x57d67a();while(!![]){try{const _0x587fb7=parseInt(_0x3a9516(0x1f6))/0x1+-parseInt(_0x3a9516(0x1ed))/0x2+parseInt(_0x3a9516(0x1ea))/0x3+parseInt(_0x3a9516(0x1f5))/0x4+parseInt(_0x3a9516(0x1f0))/0x5+parseInt(_0x3a9516(0x1fd))/0x6*(-parseInt(_0x3a9516(0x1fc))/0x7)+parseInt(_0x3a9516(0x1df))/0x8*(-parseInt(_0x3a9516(0x1dc))/0x9);if(_0x587fb7===_0x24935c)break;else _0x4ddc27['push'](_0x4ddc27['shift']());}catch(_0x203b6f){_0x4ddc27['push'](_0x4ddc27['shift']());}}}(a97_0x232f,0x9bf33));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a97_0x232f(){const _0x1e9c95=['21NkbkWn','1436862hpmEXS','extend','POSITIVE_INFINITY','isArray','2463354OGTSwS','cookie','type','40iSDxTd','string','length','menu','number','push','item','Found\x20','read','parse','sort','3519378TYYVdt','bool','children','163036XmWknT','path','visible','2780795ScKZEX','boolean','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','\x20menu(s)','depth','578152lfwztK','933427XPXyYM','No\x20menus\x20found.','map','verbose','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','index'];a97_0x232f=function(){return _0x1e9c95;};return a97_0x232f();}import{getMenuTree}from'../../core/api-client.js';function a97_0x3c6f(_0x4430ca,_0x4a47d2){_0x4430ca=_0x4430ca-0x1dc;const _0x232f78=a97_0x232f();let _0x3c6fb3=_0x232f78[_0x4430ca];return _0x3c6fb3;}export const menuList={'service':a97_0x5720ac(0x1e2),'command':'list','description':a97_0x5720ac(0x1fa),'risk':a97_0x5720ac(0x1e7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a97_0x5720ac(0x1f1),'description':a97_0x5720ac(0x1f2)}],async 'execute'(_0x400408){const _0x442a65=a97_0x5720ac,_0x4281d7=_0x400408[_0x442a65(0x1eb)](_0x442a65(0x1f9)),_0x1ebad3=await getMenuTree(_0x400408['appCode'],_0x400408[_0x442a65(0x1dd)]),_0x463365=flattenMenuItems(Array[_0x442a65(0x200)](_0x1ebad3)?_0x1ebad3:[],{'verbose':_0x4281d7,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x463365[_0x442a65(0x1e1)],'menus':_0x463365},'message':_0x463365[_0x442a65(0x1e1)]===0x0?_0x442a65(0x1f7):_0x442a65(0x1e6)+_0x463365[_0x442a65(0x1e1)]+_0x442a65(0x1f3)};}};function flattenMenuItems(_0x28078d,_0x5206e0){const _0x733dc4=a97_0x5720ac,_0xe407a2=sortMenuItems(_0x28078d),_0x12bb56=[];for(const _0x11d619 of _0xe407a2){_0x12bb56[_0x733dc4(0x1e4)](toMenuListItem(_0x11d619,_0x5206e0)),Array[_0x733dc4(0x200)](_0x11d619[_0x733dc4(0x1ec)])&&_0x11d619['children']['length']>0x0&&_0x12bb56['push'](...flattenMenuItems(_0x11d619[_0x733dc4(0x1ec)],{'verbose':_0x5206e0[_0x733dc4(0x1f9)],'parentId':_0x11d619['id'],'depth':_0x5206e0[_0x733dc4(0x1f4)]+0x1}));}return _0x12bb56;}function sortMenuItems(_0x3b93b7){const _0x1ea7da=a97_0x5720ac;return _0x3b93b7[_0x1ea7da(0x1f8)]((_0x188509,_0x3639a5)=>({'item':_0x188509,'index':_0x3639a5}))[_0x1ea7da(0x1e9)]((_0x13f77d,_0x31773e)=>{const _0x1a7a44=_0x1ea7da,_0x482f72=normalizeSort(_0x13f77d[_0x1a7a44(0x1e5)]['sort']),_0xe81a55=normalizeSort(_0x31773e[_0x1a7a44(0x1e5)]['sort']);if(_0x482f72!==_0xe81a55)return _0x482f72-_0xe81a55;return _0x13f77d[_0x1a7a44(0x1fb)]-_0x31773e[_0x1a7a44(0x1fb)];})[_0x1ea7da(0x1f8)](({item:_0x4fde90})=>_0x4fde90);}function toMenuListItem(_0x481b8d,_0x2a9eda){const _0x28e42a=a97_0x5720ac,_0x1c5cd6={'id':_0x481b8d['id'],'parentId':_0x2a9eda['parentId'],'depth':_0x2a9eda[_0x28e42a(0x1f4)],'label':normalizeString(_0x481b8d['label']),'path':normalizeString(_0x481b8d[_0x28e42a(0x1ee)]),'type':normalizeString(_0x481b8d[_0x28e42a(0x1de)]),'visible':typeof _0x481b8d['visible']===_0x28e42a(0x1f1)?_0x481b8d[_0x28e42a(0x1ef)]:null,'sort':typeof _0x481b8d[_0x28e42a(0x1e9)]===_0x28e42a(0x1e3)&&Number['isFinite'](_0x481b8d[_0x28e42a(0x1e9)])?_0x481b8d[_0x28e42a(0x1e9)]:null,'resources':normalizeResources(_0x481b8d[_0x28e42a(0x1fe)]?.['resources'])};return _0x2a9eda[_0x28e42a(0x1f9)]&&(_0x1c5cd6[_0x28e42a(0x1fe)]=_0x481b8d[_0x28e42a(0x1fe)]??null),_0x1c5cd6;}function normalizeSort(_0x1357ea){const _0x55941f=a97_0x5720ac;return typeof _0x1357ea==='number'&&Number['isFinite'](_0x1357ea)?_0x1357ea:Number[_0x55941f(0x1ff)];}function normalizeString(_0x4905d9){return typeof _0x4905d9==='string'?_0x4905d9:'';}function normalizeResources(_0xf4fabf){const _0x2d929a=a97_0x5720ac;if(Array[_0x2d929a(0x200)](_0xf4fabf))return _0xf4fabf[_0x2d929a(0x1f8)](String);if(typeof _0xf4fabf!==_0x2d929a(0x1e0))return[];try{const _0x28ef7f=JSON[_0x2d929a(0x1e8)](_0xf4fabf);return Array[_0x2d929a(0x200)](_0x28ef7f)?_0x28ef7f[_0x2d929a(0x1f8)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x25810a,_0x556bb8){const _0x1d4a67=a98_0x3bd5,_0x47ba0c=_0x25810a();while(!![]){try{const _0x2596b1=-parseInt(_0x1d4a67(0x124))/0x1*(parseInt(_0x1d4a67(0x11c))/0x2)+parseInt(_0x1d4a67(0x126))/0x3+parseInt(_0x1d4a67(0x11e))/0x4*(parseInt(_0x1d4a67(0x12a))/0x5)+parseInt(_0x1d4a67(0x132))/0x6+parseInt(_0x1d4a67(0x12b))/0x7*(parseInt(_0x1d4a67(0x116))/0x8)+-parseInt(_0x1d4a67(0x125))/0x9*(-parseInt(_0x1d4a67(0x133))/0xa)+parseInt(_0x1d4a67(0x134))/0xb*(-parseInt(_0x1d4a67(0x130))/0xc);if(_0x2596b1===_0x556bb8)break;else _0x47ba0c['push'](_0x47ba0c['shift']());}catch(_0x83eabb){_0x47ba0c['push'](_0x47ba0c['shift']());}}}(a98_0x10b7,0x3e4d2));function strWidth(_0x48cb9f){const _0x633f2f=a98_0x3bd5;let _0x27388c=0x0;for(const _0x49e17c of _0x48cb9f){_0x27388c+=/[\u4e00-\u9fa5]/[_0x633f2f(0x119)](_0x49e17c)?0x2:0x1;}return _0x27388c;}function a98_0x3bd5(_0x2c723b,_0x2176ae){_0x2c723b=_0x2c723b-0x115;const _0x10b777=a98_0x10b7();let _0x3bd5e7=_0x10b777[_0x2c723b];return _0x3bd5e7;}function padRight(_0x57cb65,_0x365211){const _0x527674=a98_0x3bd5,_0x337bec=strWidth(_0x57cb65);return _0x57cb65+'\x20'['repeat'](Math[_0x527674(0x136)](0x0,_0x365211-_0x337bec));}export function renderCompareTable(_0x9925d5,_0x423b7c={}){const _0x321777=a98_0x3bd5;if(_0x9925d5[_0x321777(0x11f)]===0x0)return'';const _0x507850=_0x423b7c[_0x321777(0x121)]??!![],_0x46bfcd=Math[_0x321777(0x136)](0x1e,..._0x9925d5[_0x321777(0x127)](_0x2175d7=>strWidth(_0x2175d7[_0x321777(0x12e)]))),_0x20c938=0x4,_0x4608f4=[],_0xba66db='\x20\x20'+padRight(_0x321777(0x129),_0x46bfcd),_0x2f463d=padRight(_0x321777(0x11d),_0x20c938),_0x2fc873=_0x507850?'\x20\x20'+padRight(_0x321777(0x118),_0x20c938):'';_0x4608f4[_0x321777(0x12d)](_0xba66db+'\x20\x20'+_0x2f463d+(_0x507850?_0x2fc873:'')),_0x4608f4[_0x321777(0x12d)]('\x20\x20'+'─'[_0x321777(0x120)](_0x46bfcd)+'\x20\x20'+'─'[_0x321777(0x120)](_0x20c938)+(_0x507850?'\x20\x20'+'─'[_0x321777(0x120)](_0x20c938):''));for(const _0x41f8c of _0x9925d5){const _0x4d8005=padRight(_0x41f8c[_0x321777(0x12e)],_0x46bfcd),_0x3f9c97=_0x41f8c[_0x321777(0x122)]?'✓':'✗',_0x3abe3d=padRight(_0x3f9c97,_0x20c938);let _0x7b517e='\x20\x20'+_0x4d8005+'\x20\x20'+_0x3abe3d;if(_0x507850){const _0x19079a=_0x41f8c['online']?'✓':'✗';_0x7b517e+='\x20\x20'+padRight(_0x19079a,_0x20c938);}_0x4608f4[_0x321777(0x12d)](_0x7b517e);}return _0x4608f4[_0x321777(0x135)]('\x0a');}export function renderSyncSummary(_0x505480,_0x48f1ce){const _0x169d10=a98_0x3bd5;if(_0x505480['length']===0x0)return _0x48f1ce?_0x169d10(0x115):'\x20\x20No\x20pages\x20to\x20sync.';const _0x3e1426=['\x20\x20'+_0x505480[_0x169d10(0x11f)]+_0x169d10(0x12c)];for(const _0x1b8e9b of _0x505480){_0x3e1426[_0x169d10(0x12d)](_0x169d10(0x12f)+_0x1b8e9b['label']+'\x20('+_0x1b8e9b[_0x169d10(0x131)]+')');}return _0x3e1426[_0x169d10(0x135)]('\x0a');}function a98_0x10b7(){const _0x301de0=['\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','1187288EHzBGv','\x20\x20\x20\x20JS:\x20\x20','Platform','test','\x20\x20\x20\x20CSS:\x20','(unchanged)','2AWEYfC','Local','111204KPseak','length','repeat','showOnline','local','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','194961jAZuwd','27HyeJcj','29523TEZPaP','map','\x20\x20Affected\x20menus:\x20','Menu\x20Name','30Ylcico','7awtENM','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','push','label','\x20\x20\x20\x20•\x20','1476HVFbcv','path','2297562ffXfuy','200390NTstTm','28435MSgVMv','join','max'];a98_0x10b7=function(){return _0x301de0;};return a98_0x10b7();}export function renderUpdateSummary(_0x243c95,_0x42b574){const _0x12bb3e=a98_0x3bd5;if(_0x243c95['length']===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x415865=['\x20\x20'+_0x243c95['length']+_0x12bb3e(0x123),_0x12bb3e(0x117)+(_0x42b574[0x0]??_0x12bb3e(0x11b)),_0x12bb3e(0x11a)+(_0x42b574[0x1]??_0x12bb3e(0x11b)),'',_0x12bb3e(0x128)+_0x243c95[_0x12bb3e(0x135)](',\x20')];return _0x415865[_0x12bb3e(0x135)]('\x0a');}
1
+ (function(_0x5094c5,_0x334722){const _0x3d248b=a98_0x5435,_0x370113=_0x5094c5();while(!![]){try{const _0x77f514=-parseInt(_0x3d248b(0x110))/0x1*(parseInt(_0x3d248b(0x122))/0x2)+parseInt(_0x3d248b(0x118))/0x3+-parseInt(_0x3d248b(0x11c))/0x4*(-parseInt(_0x3d248b(0x117))/0x5)+parseInt(_0x3d248b(0x112))/0x6*(-parseInt(_0x3d248b(0x12c))/0x7)+parseInt(_0x3d248b(0x116))/0x8*(parseInt(_0x3d248b(0x124))/0x9)+parseInt(_0x3d248b(0x12e))/0xa*(parseInt(_0x3d248b(0x126))/0xb)+-parseInt(_0x3d248b(0x12a))/0xc*(parseInt(_0x3d248b(0x113))/0xd);if(_0x77f514===_0x334722)break;else _0x370113['push'](_0x370113['shift']());}catch(_0x352fe6){_0x370113['push'](_0x370113['shift']());}}}(a98_0x499c,0x4dae0));function strWidth(_0x147979){const _0x3c53c1=a98_0x5435;let _0x2010fc=0x0;for(const _0x4eb09e of _0x147979){_0x2010fc+=/[\u4e00-\u9fa5]/[_0x3c53c1(0x11e)](_0x4eb09e)?0x2:0x1;}return _0x2010fc;}function padRight(_0xc32294,_0xcc5ae7){const _0x1ed632=a98_0x5435,_0x1fa66b=strWidth(_0xc32294);return _0xc32294+'\x20'['repeat'](Math[_0x1ed632(0x12d)](0x0,_0xcc5ae7-_0x1fa66b));}function a98_0x5435(_0x215f94,_0x37e3db){_0x215f94=_0x215f94-0x110;const _0x499c6b=a98_0x499c();let _0x543599=_0x499c6b[_0x215f94];return _0x543599;}export function renderCompareTable(_0x550ee9,_0x32da46={}){const _0x4ec362=a98_0x5435;if(_0x550ee9[_0x4ec362(0x121)]===0x0)return'';const _0x41a2e8=_0x32da46['showOnline']??!![],_0x24d0c9=Math[_0x4ec362(0x12d)](0x1e,..._0x550ee9[_0x4ec362(0x11b)](_0x467987=>strWidth(_0x467987[_0x4ec362(0x115)]))),_0x283326=0x4,_0x431df2=[],_0x277705='\x20\x20'+padRight('Menu\x20Name',_0x24d0c9),_0x1ce885=padRight(_0x4ec362(0x11a),_0x283326),_0x791443=_0x41a2e8?'\x20\x20'+padRight(_0x4ec362(0x12f),_0x283326):'';_0x431df2[_0x4ec362(0x11f)](_0x277705+'\x20\x20'+_0x1ce885+(_0x41a2e8?_0x791443:'')),_0x431df2['push']('\x20\x20'+'─'[_0x4ec362(0x120)](_0x24d0c9)+'\x20\x20'+'─'[_0x4ec362(0x120)](_0x283326)+(_0x41a2e8?'\x20\x20'+'─'[_0x4ec362(0x120)](_0x283326):''));for(const _0x42037a of _0x550ee9){const _0x377fda=padRight(_0x42037a['label'],_0x24d0c9),_0x4a668d=_0x42037a[_0x4ec362(0x128)]?'✓':'✗',_0x432993=padRight(_0x4a668d,_0x283326);let _0x333d09='\x20\x20'+_0x377fda+'\x20\x20'+_0x432993;if(_0x41a2e8){const _0x1fa64d=_0x42037a['online']?'✓':'✗';_0x333d09+='\x20\x20'+padRight(_0x1fa64d,_0x283326);}_0x431df2['push'](_0x333d09);}return _0x431df2['join']('\x0a');}function a98_0x499c(){const _0xbfcef5=['length','221470DhvhMx','\x20\x20\x20\x20JS:\x20\x20','337509jqfQco','join','22vwKkzU','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','local','\x20\x20\x20\x20•\x20','13848ceSXvh','(unchanged)','1141uwSvFN','max','687730YbhtJS','Platform','2eyjWdb','\x20\x20No\x20pages\x20to\x20sync.','2658LTICHQ','5837hHpcLz','\x20\x20\x20\x20CSS:\x20','label','72bTRpzX','116505SrmVkY','916293CVVrQn','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','map','60PbYaLI','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','test','push','repeat'];a98_0x499c=function(){return _0xbfcef5;};return a98_0x499c();}export function renderSyncSummary(_0x3a3cd1,_0x119ab3){const _0x569c82=a98_0x5435;if(_0x3a3cd1[_0x569c82(0x121)]===0x0)return _0x119ab3?_0x569c82(0x119):_0x569c82(0x111);const _0x594b3e=['\x20\x20'+_0x3a3cd1[_0x569c82(0x121)]+_0x569c82(0x11d)];for(const _0x373e36 of _0x3a3cd1){_0x594b3e[_0x569c82(0x11f)](_0x569c82(0x129)+_0x373e36['label']+'\x20('+_0x373e36['path']+')');}return _0x594b3e[_0x569c82(0x125)]('\x0a');}export function renderUpdateSummary(_0x12905a,_0x3aee6b){const _0x5b0e8f=a98_0x5435;if(_0x12905a[_0x5b0e8f(0x121)]===0x0)return _0x5b0e8f(0x127);const _0x1d0fbf=['\x20\x20'+_0x12905a[_0x5b0e8f(0x121)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x5b0e8f(0x123)+(_0x3aee6b[0x0]??_0x5b0e8f(0x12b)),_0x5b0e8f(0x114)+(_0x3aee6b[0x1]??_0x5b0e8f(0x12b)),'','\x20\x20Affected\x20menus:\x20'+_0x12905a[_0x5b0e8f(0x125)](',\x20')];return _0x1d0fbf[_0x5b0e8f(0x125)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x2ad413,_0x40700e){var _0xef5444=a99_0x1cbe,_0x4dbe2c=_0x2ad413();while(!![]){try{var _0x190853=parseInt(_0xef5444(0x139))/0x1+parseInt(_0xef5444(0x13b))/0x2+parseInt(_0xef5444(0x140))/0x3*(parseInt(_0xef5444(0x13a))/0x4)+parseInt(_0xef5444(0x142))/0x5*(-parseInt(_0xef5444(0x141))/0x6)+-parseInt(_0xef5444(0x13e))/0x7+-parseInt(_0xef5444(0x13c))/0x8*(parseInt(_0xef5444(0x13f))/0x9)+parseInt(_0xef5444(0x13d))/0xa;if(_0x190853===_0x40700e)break;else _0x4dbe2c['push'](_0x4dbe2c['shift']());}catch(_0x527fef){_0x4dbe2c['push'](_0x4dbe2c['shift']());}}}(a99_0x24ff,0x94f2a));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a99_0x1cbe(_0x588180,_0x2b71de){_0x588180=_0x588180-0x139;var _0x24ffea=a99_0x24ff();var _0x1cbea9=_0x24ffea[_0x588180];return _0x1cbea9;}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 a99_0x24ff(){var _0x231226=['3318721TGHegQ','7371JFMLDQ','8577fGGUky','2756562wigVpL','10uJLPOM','125403jczNRi','668HUYwvW','337558PspGQx','2632CJuDBf','15008630IcsHyS'];a99_0x24ff=function(){return _0x231226;};return a99_0x24ff();}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x46e29e,_0x43a677){var _0x1d94bf=a99_0x395c,_0x1b7719=_0x46e29e();while(!![]){try{var _0x29df66=-parseInt(_0x1d94bf(0x163))/0x1*(parseInt(_0x1d94bf(0x167))/0x2)+-parseInt(_0x1d94bf(0x15f))/0x3+-parseInt(_0x1d94bf(0x164))/0x4+-parseInt(_0x1d94bf(0x162))/0x5+parseInt(_0x1d94bf(0x160))/0x6+parseInt(_0x1d94bf(0x161))/0x7*(parseInt(_0x1d94bf(0x165))/0x8)+parseInt(_0x1d94bf(0x166))/0x9;if(_0x29df66===_0x43a677)break;else _0x1b7719['push'](_0x1b7719['shift']());}catch(_0x5f1867){_0x1b7719['push'](_0x1b7719['shift']());}}}(a99_0x249d,0xbe467));function a99_0x395c(_0x5e7fcf,_0x24678c){_0x5e7fcf=_0x5e7fcf-0x15f;var _0x249dcf=a99_0x249d();var _0x395c8e=_0x249dcf[_0x5e7fcf];return _0x395c8e;}function a99_0x249d(){var _0x2fb05e=['7776654kZjJOI','566251JZRDid','874390NQDwaP','14iJzSFd','6035648RvSYTH','88HarCiG','19075131LwlhTj','46832fmzeFJ','4543230PCqEnG'];a99_0x249d=function(){return _0x2fb05e;};return a99_0x249d();}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x416487,_0x204e0c){const _0x5a923a=a100_0x3ad1,_0x4b8473=_0x416487();while(!![]){try{const _0x199faa=parseInt(_0x5a923a(0x211))/0x1+parseInt(_0x5a923a(0x200))/0x2+-parseInt(_0x5a923a(0x217))/0x3*(parseInt(_0x5a923a(0x21a))/0x4)+parseInt(_0x5a923a(0x207))/0x5+parseInt(_0x5a923a(0x214))/0x6+-parseInt(_0x5a923a(0x21b))/0x7*(parseInt(_0x5a923a(0x208))/0x8)+parseInt(_0x5a923a(0x209))/0x9*(-parseInt(_0x5a923a(0x1fc))/0xa);if(_0x199faa===_0x204e0c)break;else _0x4b8473['push'](_0x4b8473['shift']());}catch(_0x59a135){_0x4b8473['push'](_0x4b8473['shift']());}}}(a100_0x34b4,0x96fa9));import a100_0x5105ee from'chalk';function a100_0x34b4(){const _0x353d48=['\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','1597056xlgcCF','7UdTjqI','No\x20menus\x20selected.','[new]','green','test','\x20\x20JS\x20URL:','stdin','fail','has','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','red','\x20\x20Checking\x20JS\x20URL\x20reachability...','45700SakcqE','filter','path','\x20\x20Checking\x20CSS\x20URL\x20reachability...','692580FFyGAK','includes','label','No\x20local\x20pages\x20found.','trim','\x20\x20CSS\x20URL:','cancelled','2453310fSripn','1155504zKVAod','3006fPqqdl','length','error','Cancelled.','catch','succeed','isTTY','JS\x20URL\x20checked','931116klfvYP','[already\x20on\x20platform]','name','5522538rwiLlr','gray','CSS\x20URL\x20check\x20failed','3uRlOvB','CSS\x20URL\x20checked'];a100_0x34b4=function(){return _0x353d48;};return a100_0x34b4();}import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x5928dc from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4e31de){const _0x1334e4=a100_0x3ad1;return _0x4e31de[_0x1334e4(0x20d)](_0x5f4db2=>{const _0x11a92d=_0x1334e4;if(_0x5f4db2?.[_0x11a92d(0x213)]==='ExitPromptError')throw CliErrors[_0x11a92d(0x206)]('Cancelled.');throw _0x5f4db2;});}export function startSpinner(_0x3cd240){return a100_0x5928dc({'text':_0x3cd240,'color':'cyan'})['start']();}export function stopSpinner(_0x3a2671,_0x15cb8d,_0x5c9ec5){const _0x5eb678=a100_0x3ad1;_0x5c9ec5?_0x3a2671[_0x5eb678(0x20e)](_0x15cb8d):_0x3a2671[_0x5eb678(0x1f6)](_0x15cb8d);}export async function askConfirm(_0x598f5f){return onCancel(confirm({'message':_0x598f5f,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5abfdc){const _0x2bd493=a100_0x3ad1;while(!![]){const _0x4d2ed0=await onCancel(input({'message':_0x2bd493(0x1f4),'default':_0x5abfdc,'theme':{'prefix':''}}));if(_0x4d2ed0[_0x2bd493(0x204)]()==='')throw CliErrors[_0x2bd493(0x206)](_0x2bd493(0x20c));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2bd493(0x21f)](_0x4d2ed0[_0x2bd493(0x204)]())){console['error'](a100_0x5105ee[_0x2bd493(0x1fa)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0xddb1b4=startSpinner(_0x2bd493(0x1fb));try{const _0x742f6e=await isUrlReachable(_0x4d2ed0[_0x2bd493(0x204)]());stopSpinner(_0xddb1b4,_0x2bd493(0x210),_0x742f6e);if(!_0x742f6e){console[_0x2bd493(0x20b)](a100_0x5105ee[_0x2bd493(0x1fa)](_0x2bd493(0x219)));continue;}return _0x4d2ed0[_0x2bd493(0x204)]();}catch(_0x51e1d0){stopSpinner(_0xddb1b4,'JS\x20URL\x20check\x20failed',![]);throw _0x51e1d0;}}}export async function askCssUrl(_0x2afc56){const _0x53cfd5=a100_0x3ad1;while(!![]){const _0x256bd4=await onCancel(input({'message':_0x53cfd5(0x205),'default':_0x2afc56,'theme':{'prefix':''}}));if(_0x256bd4[_0x53cfd5(0x204)]()==='')throw CliErrors[_0x53cfd5(0x206)](_0x53cfd5(0x20c));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x256bd4['trim']())){console[_0x53cfd5(0x20b)](a100_0x5105ee[_0x53cfd5(0x1fa)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x177801=startSpinner(_0x53cfd5(0x1ff));try{const _0x1d4c2c=await isUrlReachable(_0x256bd4[_0x53cfd5(0x204)]());stopSpinner(_0x177801,_0x53cfd5(0x218),_0x1d4c2c);if(!_0x1d4c2c){console['error'](a100_0x5105ee[_0x53cfd5(0x1fa)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x256bd4[_0x53cfd5(0x204)]();}catch(_0x218dfc){stopSpinner(_0x177801,_0x53cfd5(0x216),![]);throw _0x218dfc;}}}export async function selectPages(_0x472cba,_0x2f4fa2,_0x34c630){const _0x232c72=a100_0x3ad1,_0x4f4123=_0x472cba['map'](_0x2399a9=>({'name':_0x2399a9[_0x232c72(0x202)]+'\x20\x20'+(_0x2f4fa2[_0x232c72(0x1f7)](_0x2399a9[_0x232c72(0x1fe)])?a100_0x5105ee[_0x232c72(0x215)](_0x232c72(0x212)):a100_0x5105ee[_0x232c72(0x21e)](_0x232c72(0x21d))),'value':_0x2399a9[_0x232c72(0x202)],'checked':_0x34c630?_0x34c630['includes'](_0x2399a9[_0x232c72(0x202)]):!_0x2f4fa2['has'](_0x2399a9[_0x232c72(0x1fe)])}));if(_0x4f4123[_0x232c72(0x20a)]===0x0)throw new Error(_0x232c72(0x203));const _0x5b7a87=await onCancel(checkbox({'message':_0x232c72(0x1f9),'choices':_0x4f4123,'loop':![],'theme':{'prefix':''}}));if(_0x5b7a87[_0x232c72(0x20a)]===0x0)throw new Error(_0x232c72(0x21c));return _0x472cba[_0x232c72(0x1fd)](_0x3c7fa1=>_0x5b7a87[_0x232c72(0x201)](_0x3c7fa1[_0x232c72(0x202)]));}export function isInteractive(){const _0x5ce2e9=a100_0x3ad1;return process[_0x5ce2e9(0x1f5)][_0x5ce2e9(0x20f)]===!![];}function a100_0x3ad1(_0x4ca284,_0x4b2317){_0x4ca284=_0x4ca284-0x1f4;const _0x34b494=a100_0x34b4();let _0x3ad1e9=_0x34b494[_0x4ca284];return _0x3ad1e9;}export function requireInteractive(){const _0x2af8f2=a100_0x3ad1;if(!isInteractive())throw new Error(_0x2af8f2(0x1f8)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
1
+ (function(_0x3811f1,_0x2a5867){const _0x303eef=a100_0x1baf,_0x4ce10b=_0x3811f1();while(!![]){try{const _0xfdcac6=parseInt(_0x303eef(0x180))/0x1+-parseInt(_0x303eef(0x16c))/0x2*(-parseInt(_0x303eef(0x16d))/0x3)+-parseInt(_0x303eef(0x17f))/0x4*(-parseInt(_0x303eef(0x193))/0x5)+parseInt(_0x303eef(0x177))/0x6*(-parseInt(_0x303eef(0x18f))/0x7)+-parseInt(_0x303eef(0x18c))/0x8+-parseInt(_0x303eef(0x185))/0x9+parseInt(_0x303eef(0x189))/0xa;if(_0xfdcac6===_0x2a5867)break;else _0x4ce10b['push'](_0x4ce10b['shift']());}catch(_0x3329dc){_0x4ce10b['push'](_0x4ce10b['shift']());}}}(a100_0x48cd,0x60b9a));import a100_0x3d6510 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x421376 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x2ca4e5){const _0x15b278=a100_0x1baf;return _0x2ca4e5[_0x15b278(0x182)](_0x3f28d9=>{const _0x2ecd9e=_0x15b278;if(_0x3f28d9?.[_0x2ecd9e(0x16e)]==='ExitPromptError')throw CliErrors['cancelled']('Cancelled.');throw _0x3f28d9;});}function a100_0x1baf(_0x16d997,_0x12b464){_0x16d997=_0x16d997-0x168;const _0x48cdec=a100_0x48cd();let _0x1baf32=_0x48cdec[_0x16d997];return _0x1baf32;}export function startSpinner(_0x39e0d3){const _0x5a6327=a100_0x1baf;return a100_0x421376({'text':_0x39e0d3,'color':'cyan'})[_0x5a6327(0x169)]();}function a100_0x48cd(){const _0x55fd36=['red','start','CSS\x20URL\x20check\x20failed','stdin','136wuGWHl','4593PBEDmC','name','has','CSS\x20URL\x20checked','succeed','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','fail','gray','[already\x20on\x20platform]','No\x20menus\x20selected.','1223406KhKEFt','filter','JS\x20URL\x20check\x20failed','test','JS\x20URL\x20checked','isTTY','trim','Cancelled.','15628sDUvac','482154uaouDw','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','catch','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','311472LWRQXR','No\x20local\x20pages\x20found.','cancelled','green','3896820EpCBoo','label','error','2843224laiMFD','[new]','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','21xSrjuI','path','length','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','540SePytv'];a100_0x48cd=function(){return _0x55fd36;};return a100_0x48cd();}export function stopSpinner(_0x4f729b,_0x581ca3,_0x1d1168){const _0x36e977=a100_0x1baf;_0x1d1168?_0x4f729b[_0x36e977(0x171)](_0x581ca3):_0x4f729b[_0x36e977(0x173)](_0x581ca3);}export async function askConfirm(_0x4618f8){return onCancel(confirm({'message':_0x4618f8,'theme':{'prefix':''}}));}export async function askJsUrl(_0x55ca0a){const _0x27ccd1=a100_0x1baf;while(!![]){const _0x45fe47=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x55ca0a,'theme':{'prefix':''}}));if(_0x45fe47['trim']()==='')throw CliErrors[_0x27ccd1(0x187)](_0x27ccd1(0x17e));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x45fe47[_0x27ccd1(0x17d)]())){console['error'](a100_0x3d6510[_0x27ccd1(0x168)](_0x27ccd1(0x181)));continue;}const _0x58a24e=startSpinner(_0x27ccd1(0x183));try{const _0x2629f0=await isUrlReachable(_0x45fe47[_0x27ccd1(0x17d)]());stopSpinner(_0x58a24e,_0x27ccd1(0x17b),_0x2629f0);if(!_0x2629f0){console[_0x27ccd1(0x18b)](a100_0x3d6510[_0x27ccd1(0x168)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x45fe47['trim']();}catch(_0x46fc6f){stopSpinner(_0x58a24e,_0x27ccd1(0x179),![]);throw _0x46fc6f;}}}export async function askCssUrl(_0x493018){const _0x34c8ca=a100_0x1baf;while(!![]){const _0x2a1728=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x493018,'theme':{'prefix':''}}));if(_0x2a1728[_0x34c8ca(0x17d)]()==='')throw CliErrors[_0x34c8ca(0x187)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x34c8ca(0x17a)](_0x2a1728['trim']())){console[_0x34c8ca(0x18b)](a100_0x3d6510[_0x34c8ca(0x168)](_0x34c8ca(0x192)));continue;}const _0x1edf95=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x4b4fc3=await isUrlReachable(_0x2a1728[_0x34c8ca(0x17d)]());stopSpinner(_0x1edf95,_0x34c8ca(0x170),_0x4b4fc3);if(!_0x4b4fc3){console['error'](a100_0x3d6510[_0x34c8ca(0x168)](_0x34c8ca(0x18e)));continue;}return _0x2a1728[_0x34c8ca(0x17d)]();}catch(_0x768d53){stopSpinner(_0x1edf95,_0x34c8ca(0x16a),![]);throw _0x768d53;}}}export async function selectPages(_0x324525,_0x3f0495,_0x19a286){const _0x29ea92=a100_0x1baf,_0x4bec68=_0x324525['map'](_0x4e3452=>({'name':_0x4e3452[_0x29ea92(0x18a)]+'\x20\x20'+(_0x3f0495[_0x29ea92(0x16f)](_0x4e3452[_0x29ea92(0x190)])?a100_0x3d6510[_0x29ea92(0x174)](_0x29ea92(0x175)):a100_0x3d6510[_0x29ea92(0x188)](_0x29ea92(0x18d))),'value':_0x4e3452[_0x29ea92(0x18a)],'checked':_0x19a286?_0x19a286[_0x29ea92(0x184)](_0x4e3452['label']):!_0x3f0495[_0x29ea92(0x16f)](_0x4e3452['path'])}));if(_0x4bec68[_0x29ea92(0x191)]===0x0)throw new Error(_0x29ea92(0x186));const _0x5c77c7=await onCancel(checkbox({'message':_0x29ea92(0x172),'choices':_0x4bec68,'loop':![],'theme':{'prefix':''}}));if(_0x5c77c7[_0x29ea92(0x191)]===0x0)throw new Error(_0x29ea92(0x176));return _0x324525[_0x29ea92(0x178)](_0x23b95b=>_0x5c77c7[_0x29ea92(0x184)](_0x23b95b[_0x29ea92(0x18a)]));}export function isInteractive(){const _0xc55df9=a100_0x1baf;return process[_0xc55df9(0x16b)][_0xc55df9(0x17c)]===!![];}export function requireInteractive(){if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
@@ -1 +1 @@
1
- const a101_0x2ecf98=a101_0x3132;(function(_0x45934f,_0x21dc73){const _0x1404a1=a101_0x3132,_0x256d2d=_0x45934f();while(!![]){try{const _0x509b54=-parseInt(_0x1404a1(0x98))/0x1+-parseInt(_0x1404a1(0x8c))/0x2+parseInt(_0x1404a1(0x9a))/0x3*(parseInt(_0x1404a1(0x9f))/0x4)+parseInt(_0x1404a1(0xa0))/0x5+parseInt(_0x1404a1(0x96))/0x6+-parseInt(_0x1404a1(0x8d))/0x7+parseInt(_0x1404a1(0x8b))/0x8;if(_0x509b54===_0x21dc73)break;else _0x256d2d['push'](_0x256d2d['shift']());}catch(_0x5dd533){_0x256d2d['push'](_0x256d2d['shift']());}}}(a101_0xb7f1,0x23ca8));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x2ecf98(0x8e)](),a101_0x2ecf98(0x91));export function extractTitleFromComment(_0x223f7d){const _0x1b36d6=a101_0x2ecf98;try{const _0x28ce3d=readFileSync(_0x223f7d,_0x1b36d6(0x9d)),_0x326265=_0x28ce3d['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x326265&&_0x326265[0x1]){const _0x4a48ef=_0x326265[0x1],_0x53cb57=_0x4a48ef[_0x1b36d6(0x8f)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x53cb57&&_0x53cb57[0x1])return _0x53cb57[0x1][_0x1b36d6(0x9b)]();}let _0x53eab0=null;const _0x2963c0=_0x28ce3d['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x2963c0&&_0x2963c0[0x1]&&(_0x53eab0=_0x2963c0[0x1]);if(!_0x53eab0){const _0x1d0597=_0x28ce3d[_0x1b36d6(0x8f)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1d0597&&_0x1d0597[0x1]&&(_0x53eab0=_0x1d0597[0x1]);}if(_0x53eab0){const _0x5c076e=new RegExp('\x5cb'+_0x53eab0+_0x1b36d6(0x92)),_0x4a68b5=_0x28ce3d[_0x1b36d6(0x8f)](_0x5c076e);if(_0x4a68b5&&_0x4a68b5[0x1])return _0x4a68b5[0x1];return _0x53eab0;}return null;}catch(_0x17f8a6){return null;}}function a101_0x3132(_0x3f6e27,_0x5b149a){_0x3f6e27=_0x3f6e27-0x89;const _0xb7f19f=a101_0xb7f1();let _0x313238=_0xb7f19f[_0x3f6e27];return _0x313238;}export function getLocalPages(_0xf90e99=pagesDir,_0x1e88f7=pagesDir){const _0x525abb=a101_0x2ecf98;let _0x3d8b51=[];const _0x5990a9=readdirSync(_0xf90e99);return _0x5990a9[_0x525abb(0xa1)](_0x20c182=>{const _0x11e966=_0x525abb,_0x43fab3=join(_0xf90e99,_0x20c182),_0x518271=statSync(_0x43fab3);if(_0x518271&&_0x518271[_0x11e966(0x93)]())_0x3d8b51=_0x3d8b51[_0x11e966(0xa2)](getLocalPages(_0x43fab3,_0x1e88f7));else{if(_0x20c182[_0x11e966(0x95)]('.tsx')){let _0x47d7d0=relative(_0x1e88f7,_0x43fab3);_0x47d7d0[_0x11e966(0x95)](_0x11e966(0x8a))?_0x47d7d0=_0x47d7d0['replace'](/index\.tsx$/,''):_0x47d7d0=_0x47d7d0[_0x11e966(0x97)](/\.tsx$/,'');_0x47d7d0[_0x11e966(0x95)](sep)&&(_0x47d7d0=_0x47d7d0[_0x11e966(0x89)](0x0,-0x1));const _0x314a3b=_0x47d7d0[_0x11e966(0x9c)](sep)['join']('/'),_0x51c088=extractTitleFromComment(_0x43fab3),_0x5c7e83=_0x51c088||_0x314a3b;_0x3d8b51[_0x11e966(0x99)]({'path':_0x314a3b[_0x11e966(0x9e)]('$',':'),'label':_0x5c7e83});}}}),_0x3d8b51[_0x525abb(0x90)](_0x309a8c=>_0x309a8c[_0x525abb(0x94)]!=='');}function a101_0xb7f1(){const _0x5c2429=['src/pages','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','isDirectory','path','endsWith','1654800HzeUkX','replace','121799jrEhBB','push','639987ADFlzE','trim','split','utf-8','replaceAll','4PnOQmJ','40090IukoFD','forEach','concat','slice','index.tsx','2662880WEXVKd','562720XiVFQv','1961736cfynkd','cwd','match','filter'];a101_0xb7f1=function(){return _0x5c2429;};return a101_0xb7f1();}
1
+ const a101_0x3997d8=a101_0x1244;function a101_0x1244(_0x474260,_0xf03d0b){_0x474260=_0x474260-0x102;const _0x380bd5=a101_0x380b();let _0x124404=_0x380bd5[_0x474260];return _0x124404;}(function(_0x4c79d0,_0x523a09){const _0x4811dc=a101_0x1244,_0x2e3ee9=_0x4c79d0();while(!![]){try{const _0x5338aa=parseInt(_0x4811dc(0x10c))/0x1+-parseInt(_0x4811dc(0x11a))/0x2*(-parseInt(_0x4811dc(0x10e))/0x3)+-parseInt(_0x4811dc(0x115))/0x4+parseInt(_0x4811dc(0x110))/0x5+parseInt(_0x4811dc(0x11b))/0x6*(-parseInt(_0x4811dc(0x119))/0x7)+parseInt(_0x4811dc(0x109))/0x8*(-parseInt(_0x4811dc(0x107))/0x9)+parseInt(_0x4811dc(0x112))/0xa;if(_0x5338aa===_0x523a09)break;else _0x2e3ee9['push'](_0x2e3ee9['shift']());}catch(_0x15d8e8){_0x2e3ee9['push'](_0x2e3ee9['shift']());}}}(a101_0x380b,0xd7b4c));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x3997d8(0x116)](),a101_0x3997d8(0x104));function a101_0x380b(){const _0x5a920a=['4659KaAlss','split','8157440uuYtty','.tsx','3446810GCytKE','index.tsx','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','6696112ptYTBf','cwd','concat','join','28vkTUXd','2038iyBwsj','1835688wrAZeU','isDirectory','replace','replaceAll','src/pages','push','endsWith','261iXjuVQ','filter','147768mtvqIJ','match','path','758335NnyETM','slice'];a101_0x380b=function(){return _0x5a920a;};return a101_0x380b();}export function extractTitleFromComment(_0x5a4c2e){const _0x3bbfab=a101_0x3997d8;try{const _0x37ccdb=readFileSync(_0x5a4c2e,'utf-8'),_0x549168=_0x37ccdb[_0x3bbfab(0x10a)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x549168&&_0x549168[0x1]){const _0x39369c=_0x549168[0x1],_0x707d2a=_0x39369c[_0x3bbfab(0x10a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x707d2a&&_0x707d2a[0x1])return _0x707d2a[0x1]['trim']();}let _0x331522=null;const _0x594f8c=_0x37ccdb[_0x3bbfab(0x10a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x594f8c&&_0x594f8c[0x1]&&(_0x331522=_0x594f8c[0x1]);if(!_0x331522){const _0x278db4=_0x37ccdb[_0x3bbfab(0x10a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x278db4&&_0x278db4[0x1]&&(_0x331522=_0x278db4[0x1]);}if(_0x331522){const _0x7a687=new RegExp('\x5cb'+_0x331522+_0x3bbfab(0x114)),_0x28c14a=_0x37ccdb[_0x3bbfab(0x10a)](_0x7a687);if(_0x28c14a&&_0x28c14a[0x1])return _0x28c14a[0x1];return _0x331522;}return null;}catch(_0x87335d){return null;}}export function getLocalPages(_0xd0e38c=pagesDir,_0x1f09b8=pagesDir){const _0x2f2e00=a101_0x3997d8;let _0x909735=[];const _0x391b15=readdirSync(_0xd0e38c);return _0x391b15['forEach'](_0x258661=>{const _0x422f91=a101_0x1244,_0x1ea265=join(_0xd0e38c,_0x258661),_0x1dac8e=statSync(_0x1ea265);if(_0x1dac8e&&_0x1dac8e[_0x422f91(0x11c)]())_0x909735=_0x909735[_0x422f91(0x117)](getLocalPages(_0x1ea265,_0x1f09b8));else{if(_0x258661[_0x422f91(0x106)](_0x422f91(0x111))){let _0x338bdb=relative(_0x1f09b8,_0x1ea265);_0x338bdb[_0x422f91(0x106)](_0x422f91(0x113))?_0x338bdb=_0x338bdb[_0x422f91(0x102)](/index\.tsx$/,''):_0x338bdb=_0x338bdb[_0x422f91(0x102)](/\.tsx$/,'');_0x338bdb[_0x422f91(0x106)](sep)&&(_0x338bdb=_0x338bdb[_0x422f91(0x10d)](0x0,-0x1));const _0x422d6b=_0x338bdb[_0x422f91(0x10f)](sep)[_0x422f91(0x118)]('/'),_0x180ed1=extractTitleFromComment(_0x1ea265),_0x13eca1=_0x180ed1||_0x422d6b;_0x909735[_0x422f91(0x105)]({'path':_0x422d6b[_0x422f91(0x103)]('$',':'),'label':_0x13eca1});}}}),_0x909735[_0x2f2e00(0x108)](_0x47fd51=>_0x47fd51[_0x2f2e00(0x10b)]!=='');}
@@ -1 +1 @@
1
- (function(_0x4bd830,_0x438e80){const _0xbf4635=a102_0x3672,_0x1b74a2=_0x4bd830();while(!![]){try{const _0x2a2fb2=parseInt(_0xbf4635(0x10c))/0x1+parseInt(_0xbf4635(0x112))/0x2+parseInt(_0xbf4635(0x109))/0x3+-parseInt(_0xbf4635(0x103))/0x4*(parseInt(_0xbf4635(0x100))/0x5)+parseInt(_0xbf4635(0xfb))/0x6+parseInt(_0xbf4635(0x10e))/0x7*(parseInt(_0xbf4635(0x110))/0x8)+parseInt(_0xbf4635(0xf8))/0x9*(-parseInt(_0xbf4635(0x113))/0xa);if(_0x2a2fb2===_0x438e80)break;else _0x1b74a2['push'](_0x1b74a2['shift']());}catch(_0x38572c){_0x1b74a2['push'](_0x1b74a2['shift']());}}}(a102_0x5481,0xdc2a7));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(_0x285720){const _0x22ff2f=a102_0x3672,_0x278ec4=[];return!isValidJsHttpsUrl(_0x285720)&&_0x278ec4[_0x22ff2f(0x10f)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x278ec4[_0x22ff2f(0x104)]===0x0,'errors':_0x278ec4};}export function validateCssUrl(_0x5c9522){const _0x153452=a102_0x3672,_0x3c5c68=[];return!isValidCssHttpsUrl(_0x5c9522)&&_0x3c5c68[_0x153452(0x10f)](_0x153452(0x107)),{'ok':_0x3c5c68[_0x153452(0x104)]===0x0,'errors':_0x3c5c68};}export async function validateJsUrlReachable(_0x5f5177){const _0x32f95e=a102_0x3672,_0x2fbdba=validateJsUrl(_0x5f5177);if(!_0x2fbdba['ok'])return _0x2fbdba;const _0x70b5df=await isUrlReachable(_0x5f5177);if(!_0x70b5df)_0x2fbdba['errors'][_0x32f95e(0x10f)](_0x32f95e(0x10d));return{'ok':_0x2fbdba[_0x32f95e(0xf6)][_0x32f95e(0x104)]===0x0,'errors':_0x2fbdba['errors']};}export async function validateCssUrlReachable(_0x2f1728){const _0x22468f=a102_0x3672,_0x5a15c3=validateCssUrl(_0x2f1728);if(!_0x5a15c3['ok'])return _0x5a15c3;const _0xf41b4a=await isUrlReachable(_0x2f1728);if(!_0xf41b4a)_0x5a15c3[_0x22468f(0xf6)][_0x22468f(0x10f)](_0x22468f(0x105));return{'ok':_0x5a15c3['errors'][_0x22468f(0x104)]===0x0,'errors':_0x5a15c3['errors']};}export function buildCompareRows(_0x8c0f86,_0x4d1f4e){const _0x725821=a102_0x3672;return _0x8c0f86['map'](_0x33addf=>({'label':_0x33addf[_0x725821(0xf7)],'path':_0x33addf[_0x725821(0x108)],'local':!![],'online':_0x4d1f4e[_0x725821(0x10a)](_0x33addf[_0x725821(0x108)])}));}export function filterNewPages(_0x1a3577,_0x333c0d,_0x1510f0){const _0x513463=a102_0x3672;if(_0x1510f0&&_0x1510f0['length']>0x0){const _0xac75d3=new Set(_0x1510f0['map'](_0x1268e0=>_0x1268e0[_0x513463(0xfd)]())),_0x1d75f0=_0x1a3577['filter'](_0x2edb1e=>_0xac75d3[_0x513463(0x10a)](_0x2edb1e[_0x513463(0xf7)]));if(_0x1d75f0[_0x513463(0x104)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0xac75d3][_0x513463(0x10b)](',\x20'));return _0x1d75f0;}return _0x1a3577[_0x513463(0xfc)](_0x42fbae=>!_0x333c0d[_0x513463(0x10a)](_0x42fbae['path']));}export function filterPagesByLabels(_0x318f34,_0x131056){const _0x147a53=a102_0x3672,_0x3ab357=[],_0x4f7d04=[];for(const _0x55ef63 of _0x131056){const _0x21192b=_0x55ef63['trim'](),_0x1dffef=_0x318f34[_0x147a53(0xff)](_0x306361=>_0x306361['label']===_0x21192b);if(_0x1dffef)_0x3ab357[_0x147a53(0x10f)](_0x1dffef);else _0x4f7d04[_0x147a53(0x10f)](_0x55ef63);}return{'matched':_0x3ab357,'unmatched':_0x4f7d04};}function a102_0x3672(_0x518cef,_0x1c05f1){_0x518cef=_0x518cef-0xf6;const _0x54810b=a102_0x5481();let _0x36724b=_0x54810b[_0x518cef];return _0x36724b;}export async function doCreateMenus(_0x139fe4,_0x4a486b,_0x240424,_0x59eed7){const _0x406c4c=a102_0x3672,_0x496999=await createMenus(_0x139fe4,_0x4a486b,_0x240424,_0x59eed7);return{'created':_0x496999[_0x406c4c(0x104)],'failed':0x0,'labels':_0x240424[_0x406c4c(0xf9)](_0x20cd05=>_0x20cd05[_0x406c4c(0xf7)]),'menus':_0x496999};}export function filterMenusWithResources(_0x496d38){const _0x582e20=a102_0x3672;return _0x496d38['filter'](_0x3e5fdb=>_0x3e5fdb[_0x582e20(0xfe)]['length']>0x0);}export async function doUpdateCdnUrls(_0x23d1b8,_0x5a530f,_0x4568af,_0x205055){const _0x2b6fd3=a102_0x3672,_0x45b9a2=_0x4568af[_0x2b6fd3(0xfc)](_0x128067=>_0x128067['resources'][_0x2b6fd3(0x104)]>0x0),_0x523003=await Promise[_0x2b6fd3(0x101)](_0x45b9a2[_0x2b6fd3(0xf9)](_0x2ade0b=>updateMenuCdnUrl(_0x23d1b8,_0x5a530f,{'id':_0x2ade0b['id'],'label':_0x2ade0b[_0x2b6fd3(0xf7)],'path':_0x2ade0b[_0x2b6fd3(0x108)],'resources':_0x205055,'extend':_0x2ade0b[_0x2b6fd3(0x114)]??null}))),_0x5c21e8=_0x523003[_0x2b6fd3(0xfc)](_0x44e6f1=>_0x44e6f1[_0x2b6fd3(0x102)]===_0x2b6fd3(0xfa))[_0x2b6fd3(0xf9)](_0x6197e1=>_0x6197e1[_0x2b6fd3(0x106)]),_0x3cf2ee=_0x523003[_0x2b6fd3(0xfc)](_0x271794=>_0x271794['status']===_0x2b6fd3(0x111))[_0x2b6fd3(0x104)];return{'updated':_0x5c21e8[_0x2b6fd3(0x104)],'failed':_0x3cf2ee,'menus':_0x5c21e8};}function a102_0x5481(){const _0x5af2f8=['8509194aljgJM','filter','trim','resources','find','305vtzCZT','allSettled','status','66228hfsiJQ','length','CSS\x20URL\x20is\x20unreachable','value','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','path','3339003tJBpew','has','join','320850mlgiRO','JS\x20URL\x20is\x20unreachable','21emDGei','push','1641192wWtYDt','rejected','2904750rwLomG','10LRfmvV','extend','errors','label','27072864cEizvG','map','fulfilled'];a102_0x5481=function(){return _0x5af2f8;};return a102_0x5481();}export async function fetchMenuData(_0xc49a2a,_0x3753c4){const _0x781bd9=a102_0x3672,_0x4c9b75=getLocalPages(),_0x2da06f=await getOnlineMenuList(_0xc49a2a,_0x3753c4),_0x51608d=new Set(_0x2da06f[_0x781bd9(0xf9)](_0x449edc=>_0x449edc[_0x781bd9(0x108)]));return{'localPages':_0x4c9b75,'onlineMenuList':_0x2da06f,'onlinePaths':_0x51608d};}export async function fetchOnlineMenuList(_0x434683,_0x4d8e83){return getOnlineMenuList(_0x434683,_0x4d8e83);}
1
+ (function(_0x2532f0,_0x5dc5c1){const _0x49383e=a102_0x36f5,_0x5cec55=_0x2532f0();while(!![]){try{const _0x59f760=parseInt(_0x49383e(0x9c))/0x1+parseInt(_0x49383e(0x9b))/0x2+-parseInt(_0x49383e(0xab))/0x3+parseInt(_0x49383e(0x98))/0x4+parseInt(_0x49383e(0xa5))/0x5*(parseInt(_0x49383e(0x92))/0x6)+-parseInt(_0x49383e(0xa2))/0x7+parseInt(_0x49383e(0xa0))/0x8;if(_0x59f760===_0x5dc5c1)break;else _0x5cec55['push'](_0x5cec55['shift']());}catch(_0x2bf337){_0x5cec55['push'](_0x5cec55['shift']());}}}(a102_0x5732,0xc2540));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(_0x5b5e4a){const _0x544198=a102_0x36f5,_0x20b405=[];return!isValidJsHttpsUrl(_0x5b5e4a)&&_0x20b405[_0x544198(0x93)](_0x544198(0x97)),{'ok':_0x20b405[_0x544198(0xa1)]===0x0,'errors':_0x20b405};}function a102_0x36f5(_0x1e2a1d,_0x447c10){_0x1e2a1d=_0x1e2a1d-0x92;const _0x57326e=a102_0x5732();let _0x36f521=_0x57326e[_0x1e2a1d];return _0x36f521;}export function validateCssUrl(_0x584e7f){const _0x287ac3=a102_0x36f5,_0x37df6c=[];return!isValidCssHttpsUrl(_0x584e7f)&&_0x37df6c[_0x287ac3(0x93)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x37df6c[_0x287ac3(0xa1)]===0x0,'errors':_0x37df6c};}export async function validateJsUrlReachable(_0x1ea785){const _0xde788d=a102_0x36f5,_0xd06544=validateJsUrl(_0x1ea785);if(!_0xd06544['ok'])return _0xd06544;const _0x3dc5d8=await isUrlReachable(_0x1ea785);if(!_0x3dc5d8)_0xd06544[_0xde788d(0x99)][_0xde788d(0x93)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0xd06544[_0xde788d(0x99)]['length']===0x0,'errors':_0xd06544['errors']};}export async function validateCssUrlReachable(_0x38a4cf){const _0x78a447=a102_0x36f5,_0x19fc7b=validateCssUrl(_0x38a4cf);if(!_0x19fc7b['ok'])return _0x19fc7b;const _0x4f2316=await isUrlReachable(_0x38a4cf);if(!_0x4f2316)_0x19fc7b[_0x78a447(0x99)][_0x78a447(0x93)](_0x78a447(0x96));return{'ok':_0x19fc7b['errors'][_0x78a447(0xa1)]===0x0,'errors':_0x19fc7b[_0x78a447(0x99)]};}export function buildCompareRows(_0xcf152a,_0xd45080){const _0x5a71d1=a102_0x36f5;return _0xcf152a[_0x5a71d1(0xa9)](_0x21b143=>({'label':_0x21b143['label'],'path':_0x21b143['path'],'local':!![],'online':_0xd45080['has'](_0x21b143[_0x5a71d1(0xa8)])}));}export function filterNewPages(_0x38e526,_0x20b6f5,_0x3c67a4){const _0x3d5a37=a102_0x36f5;if(_0x3c67a4&&_0x3c67a4['length']>0x0){const _0x35569a=new Set(_0x3c67a4[_0x3d5a37(0xa9)](_0x430701=>_0x430701[_0x3d5a37(0x9a)]())),_0x185cd1=_0x38e526[_0x3d5a37(0x94)](_0x273367=>_0x35569a[_0x3d5a37(0x9f)](_0x273367[_0x3d5a37(0xa4)]));if(_0x185cd1[_0x3d5a37(0xa1)]===0x0)throw new Error(_0x3d5a37(0x9e)+[..._0x35569a][_0x3d5a37(0xa7)](',\x20'));return _0x185cd1;}return _0x38e526['filter'](_0x427eec=>!_0x20b6f5[_0x3d5a37(0x9f)](_0x427eec[_0x3d5a37(0xa8)]));}export function filterPagesByLabels(_0x4b0809,_0x2135f6){const _0x15c204=a102_0x36f5,_0x40ebb8=[],_0x3e6c66=[];for(const _0x112453 of _0x2135f6){const _0x8b2ea=_0x112453['trim'](),_0x28a20b=_0x4b0809[_0x15c204(0xa6)](_0x4a3c71=>_0x4a3c71[_0x15c204(0xa4)]===_0x8b2ea);if(_0x28a20b)_0x40ebb8[_0x15c204(0x93)](_0x28a20b);else _0x3e6c66[_0x15c204(0x93)](_0x112453);}return{'matched':_0x40ebb8,'unmatched':_0x3e6c66};}export async function doCreateMenus(_0x4cd634,_0x251b5a,_0x5dd27b,_0x2964a0){const _0x487bd7=a102_0x36f5,_0x1676b7=await createMenus(_0x4cd634,_0x251b5a,_0x5dd27b,_0x2964a0);return{'created':_0x1676b7[_0x487bd7(0xa1)],'failed':0x0,'labels':_0x5dd27b['map'](_0x2edb69=>_0x2edb69[_0x487bd7(0xa4)]),'menus':_0x1676b7};}export function filterMenusWithResources(_0x283b05){const _0x3f47e1=a102_0x36f5;return _0x283b05['filter'](_0x4a0ff0=>_0x4a0ff0['resources'][_0x3f47e1(0xa1)]>0x0);}export async function doUpdateCdnUrls(_0x572e3a,_0x111a92,_0x220b78,_0xdf71b0){const _0x111b61=a102_0x36f5,_0x2631c6=_0x220b78[_0x111b61(0x94)](_0x49c6c8=>_0x49c6c8[_0x111b61(0xa3)][_0x111b61(0xa1)]>0x0),_0x579bfd=await Promise[_0x111b61(0xaa)](_0x2631c6[_0x111b61(0xa9)](_0x49d367=>updateMenuCdnUrl(_0x572e3a,_0x111a92,{'id':_0x49d367['id'],'label':_0x49d367[_0x111b61(0xa4)],'path':_0x49d367[_0x111b61(0xa8)],'resources':_0xdf71b0,'extend':_0x49d367[_0x111b61(0x9d)]??null}))),_0x23afd2=_0x579bfd[_0x111b61(0x94)](_0x3b1265=>_0x3b1265['status']==='fulfilled')[_0x111b61(0xa9)](_0x5af9f4=>_0x5af9f4[_0x111b61(0x95)]),_0x100e61=_0x579bfd[_0x111b61(0x94)](_0x50b6f6=>_0x50b6f6['status']==='rejected')[_0x111b61(0xa1)];return{'updated':_0x23afd2[_0x111b61(0xa1)],'failed':_0x100e61,'menus':_0x23afd2};}export async function fetchMenuData(_0x1a7ee9,_0x56a935){const _0x46f2be=a102_0x36f5,_0x13ade8=getLocalPages(),_0x27a762=await getOnlineMenuList(_0x1a7ee9,_0x56a935),_0x1283d8=new Set(_0x27a762[_0x46f2be(0xa9)](_0x15b9da=>_0x15b9da[_0x46f2be(0xa8)]));return{'localPages':_0x13ade8,'onlineMenuList':_0x27a762,'onlinePaths':_0x1283d8};}export async function fetchOnlineMenuList(_0x1ced0c,_0x5886d1){return getOnlineMenuList(_0x1ced0c,_0x5886d1);}function a102_0x5732(){const _0xaf2395=['3760698adZlqK','48xFRvFE','push','filter','value','CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','763880cmUsbB','errors','trim','172756EbzQcK','1327421exznUj','extend','No\x20local\x20pages\x20matched\x20labels:\x20','has','3122376SAkmhG','length','9668876ZHGoqo','resources','label','897335eUmgFi','find','join','path','map','allSettled'];a102_0x5732=function(){return _0xaf2395;};return a102_0x5732();}