@lovrabet/rabetbase-cli 2.1.9 → 2.1.10-beta.0

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 (197) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/field-update.js +1 -0
  54. package/lib/commands/dataset/index.js +1 -1
  55. package/lib/commands/dataset/link-create.js +1 -1
  56. package/lib/commands/dataset/link-delete.js +1 -1
  57. package/lib/commands/dataset/link-shared.js +1 -1
  58. package/lib/commands/dataset/link-update.js +1 -1
  59. package/lib/commands/dataset/links.js +1 -1
  60. package/lib/commands/dataset/list.js +1 -1
  61. package/lib/commands/dataset/operations.js +1 -1
  62. package/lib/commands/db/analyze-cancel.js +1 -1
  63. package/lib/commands/db/analyze-start.js +1 -1
  64. package/lib/commands/db/analyze-status.js +1 -1
  65. package/lib/commands/db/create.js +1 -1
  66. package/lib/commands/db/delete.js +1 -1
  67. package/lib/commands/db/detail.js +1 -1
  68. package/lib/commands/db/diff.js +1 -1
  69. package/lib/commands/db/index.js +1 -1
  70. package/lib/commands/db/list.js +1 -1
  71. package/lib/commands/db/shared.js +1 -1
  72. package/lib/commands/db/tables.js +1 -1
  73. package/lib/commands/db/test.js +1 -1
  74. package/lib/commands/db/update.js +1 -1
  75. package/lib/commands/doctor.js +1 -1
  76. package/lib/commands/init/index.js +1 -1
  77. package/lib/commands/issue/index.js +1 -1
  78. package/lib/commands/issue/report.js +1 -1
  79. package/lib/commands/logs/index.js +1 -1
  80. package/lib/commands/menu/index.js +1 -1
  81. package/lib/commands/menu/shared/compare-table.js +1 -1
  82. package/lib/commands/menu/shared/index.js +1 -1
  83. package/lib/commands/menu/shared/inquirer.js +1 -1
  84. package/lib/commands/menu/shared/local-pages.js +1 -1
  85. package/lib/commands/menu/shared/logic.js +1 -1
  86. package/lib/commands/menu/shared/service.js +1 -1
  87. package/lib/commands/menu/shared/sync-core.js +1 -1
  88. package/lib/commands/menu/shared/update-core.js +1 -1
  89. package/lib/commands/menu/shared/valid-url.js +1 -1
  90. package/lib/commands/menu/sync.js +1 -1
  91. package/lib/commands/menu/update.js +1 -1
  92. package/lib/commands/page/generate-start.js +1 -1
  93. package/lib/commands/page/generate-status.js +1 -1
  94. package/lib/commands/page/index.js +1 -1
  95. package/lib/commands/page/pull.js +1 -1
  96. package/lib/commands/page/push.js +1 -1
  97. package/lib/commands/page/shared.js +1 -1
  98. package/lib/commands/page/standard-page-status.js +1 -1
  99. package/lib/commands/page/sync.js +1 -1
  100. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  101. package/lib/commands/project/create/format-elapsed.js +1 -1
  102. package/lib/commands/project/create/main.js +1 -1
  103. package/lib/commands/project/create/non-interactive.js +1 -1
  104. package/lib/commands/project/create/project-template-path.js +1 -1
  105. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  106. package/lib/commands/project/create/use-format-code.js +1 -1
  107. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  108. package/lib/commands/project/index.js +1 -1
  109. package/lib/commands/project/init.js +1 -1
  110. package/lib/commands/project/upgrade.js +1 -1
  111. package/lib/commands/registry.js +1 -1
  112. package/lib/commands/run/index.js +1 -1
  113. package/lib/commands/schema.js +1 -1
  114. package/lib/commands/skill/index.js +1 -1
  115. package/lib/commands/sql/create.js +1 -1
  116. package/lib/commands/sql/delete.js +1 -1
  117. package/lib/commands/sql/detail.js +1 -1
  118. package/lib/commands/sql/exec.js +1 -1
  119. package/lib/commands/sql/index.js +1 -1
  120. package/lib/commands/sql/list.js +1 -1
  121. package/lib/commands/sql/pull.js +1 -1
  122. package/lib/commands/sql/push.js +1 -1
  123. package/lib/commands/sql/save.js +1 -1
  124. package/lib/commands/sql/shared.js +1 -1
  125. package/lib/commands/sql/status.js +1 -1
  126. package/lib/commands/sql/validate.js +1 -1
  127. package/lib/config/schema.js +1 -1
  128. package/lib/constant/cdn.js +1 -1
  129. package/lib/constant/cli.js +1 -1
  130. package/lib/constant/defaults.js +1 -1
  131. package/lib/constant/domain.js +1 -1
  132. package/lib/constant/env.js +1 -1
  133. package/lib/constant/output.js +1 -1
  134. package/lib/constant/paths.js +1 -1
  135. package/lib/constant/risk.js +1 -1
  136. package/lib/context.js +1 -1
  137. package/lib/core/alias-resolver.js +1 -1
  138. package/lib/core/api-client.js +1 -1
  139. package/lib/core/bff/config.js +1 -1
  140. package/lib/core/bff/file-system.js +1 -1
  141. package/lib/core/bff/hash.js +1 -1
  142. package/lib/core/bff/lock.js +1 -1
  143. package/lib/core/bff/utils.js +1 -1
  144. package/lib/core/db-resolver.js +1 -1
  145. package/lib/core/page/file-system.js +1 -1
  146. package/lib/core/page/hash.js +1 -1
  147. package/lib/core/page/lock.js +1 -1
  148. package/lib/core/sql-sync/config.js +1 -1
  149. package/lib/core/sql-sync/file-system.js +1 -1
  150. package/lib/core/sql-sync/hash.js +1 -1
  151. package/lib/core/sql-sync/lock.js +1 -1
  152. package/lib/core/sql-sync/utils.js +1 -1
  153. package/lib/core/sql-validator.js +1 -1
  154. package/lib/errors.js +1 -1
  155. package/lib/framework/build-all-flags.js +1 -1
  156. package/lib/framework/flags.js +1 -1
  157. package/lib/framework/help.js +1 -1
  158. package/lib/framework/index.js +1 -1
  159. package/lib/framework/output.js +1 -1
  160. package/lib/framework/response.js +1 -1
  161. package/lib/framework/runner-alias.js +1 -1
  162. package/lib/framework/runner.js +1 -1
  163. package/lib/framework/schema-export.js +1 -1
  164. package/lib/framework/types.js +1 -1
  165. package/lib/generated/build-info.js +1 -1
  166. package/lib/help.js +1 -1
  167. package/lib/skills/main.js +1 -1
  168. package/lib/skills/npx-skills-add.js +1 -1
  169. package/lib/telemetry/cli-command-trace.js +1 -1
  170. package/lib/telemetry/cli-help-trace.js +1 -1
  171. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  172. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  173. package/lib/telemetry/send-cli-trace-log.js +1 -1
  174. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  175. package/lib/utils/ai_config.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cdn-config.js +1 -1
  178. package/lib/utils/check-sdk-version.js +1 -1
  179. package/lib/utils/cli-version-check.js +1 -1
  180. package/lib/utils/cli-version-policy.js +1 -1
  181. package/lib/utils/config.js +1 -1
  182. package/lib/utils/copy-directory.js +1 -1
  183. package/lib/utils/entity-with-id.js +1 -1
  184. package/lib/utils/file-utils.js +1 -1
  185. package/lib/utils/guides-cdn.js +1 -1
  186. package/lib/utils/http-client.js +1 -1
  187. package/lib/utils/is-non-interactive.js +1 -1
  188. package/lib/utils/logger.js +1 -1
  189. package/lib/utils/params.js +1 -1
  190. package/lib/utils/platform.js +1 -1
  191. package/lib/utils/rules-cdn.js +1 -1
  192. package/lib/utils/sleep.js +1 -1
  193. package/lib/utils/template-replacer.js +1 -1
  194. package/lib/utils/version.js +1 -1
  195. package/lib/utils/with-active-cookie.js +1 -1
  196. package/lib/utils/write-cli-side-channel.js +1 -1
  197. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4301aa,_0x517781){const _0x436d0b=a69_0x43ca,_0x34d7a2=_0x4301aa();while(!![]){try{const _0x244be0=-parseInt(_0x436d0b(0x6b))/0x1+parseInt(_0x436d0b(0x69))/0x2*(-parseInt(_0x436d0b(0x73))/0x3)+-parseInt(_0x436d0b(0x74))/0x4*(parseInt(_0x436d0b(0x6e))/0x5)+-parseInt(_0x436d0b(0x7a))/0x6*(parseInt(_0x436d0b(0x7f))/0x7)+-parseInt(_0x436d0b(0x80))/0x8*(parseInt(_0x436d0b(0x82))/0x9)+-parseInt(_0x436d0b(0x76))/0xa*(parseInt(_0x436d0b(0x78))/0xb)+-parseInt(_0x436d0b(0x7e))/0xc*(-parseInt(_0x436d0b(0x84))/0xd);if(_0x244be0===_0x517781)break;else _0x34d7a2['push'](_0x34d7a2['shift']());}catch(_0xe496d3){_0x34d7a2['push'](_0x34d7a2['shift']());}}}(a69_0x2fc0,0x974ab));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function a69_0x43ca(_0x1fa44e,_0x472f45){_0x1fa44e=_0x1fa44e-0x67;const _0x2fc09f=a69_0x2fc0();let _0x43ca47=_0x2fc09f[_0x1fa44e];return _0x43ca47;}function shouldRedactKey(_0x6f55f5){const _0x23d57e=a69_0x43ca,_0x2fb83d=_0x6f55f5[_0x23d57e(0x6d)]();if(_0x2fb83d==='password'||_0x2fb83d==='passwd'||_0x2fb83d==='dbpassword')return!![];if(_0x2fb83d['includes']('secret')||_0x2fb83d[_0x23d57e(0x81)](_0x23d57e(0x79))||_0x2fb83d[_0x23d57e(0x81)](_0x23d57e(0x6c)))return!![];if(_0x2fb83d['includes'](_0x23d57e(0x7d))||_0x2fb83d['includes']('accesskey'))return!![];if(_0x2fb83d===_0x23d57e(0x83)||_0x2fb83d===_0x23d57e(0x72)||_0x2fb83d===_0x23d57e(0x67))return!![];return![];}export function sanitizeDbLinkForOutput(_0x3ac4f2){const _0x1a4940=a69_0x43ca,_0x1ad575={..._0x3ac4f2};for(const _0x3a199b of Object['keys'](_0x1ad575)){if(!shouldRedactKey(_0x3a199b))continue;const _0x89c7f7=_0x1ad575[_0x3a199b];_0x89c7f7!=null&&String(_0x89c7f7)['length']>0x0&&(_0x1ad575[_0x3a199b]=_0x1a4940(0x6f));}return _0x1ad575;}export function sanitizeDbLinkList(_0x563c1a){return _0x563c1a['map'](_0x46f67d=>sanitizeDbLinkForOutput(_0x46f67d));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x36adf5){const _0x1813e9=a69_0x43ca,_0x2e9724=_0x36adf5[_0x1813e9(0x68)]();if(!_0x2e9724)return![];return DB_URL_PATTERN[_0x1813e9(0x71)](_0x2e9724);}export function buildDbPageLinks(_0x72c45c,_0x168664){const _0x19c20f=a69_0x43ca,_0x8749b6=_0x72c45c?.[_0x19c20f(0x68)]();if(!_0x8749b6)return undefined;const _0x3dcf59=typeof _0x168664===_0x19c20f(0x75)?String(_0x168664):String(_0x168664??'')['trim']();if(!_0x3dcf59)return undefined;const _0xa4e68f=Number(_0x3dcf59);if(!Number[_0x19c20f(0x7c)](_0xa4e68f)||_0xa4e68f<=0x0)return undefined;const _0x47a5e8=isDaily(normalizeEnv(getEnv()))?_0x19c20f(0x77)+encodeURIComponent(_0x8749b6):_0x19c20f(0x70)+encodeURIComponent(_0x8749b6),_0x339f33=encodeURIComponent(String(_0xa4e68f));return{'databasePage':_0x47a5e8+_0x19c20f(0x6a),'erPage':_0x47a5e8+_0x19c20f(0x7b)+_0x339f33};}function a69_0x2fc0(){const _0x3e70d4=['trim','4894WwmqsG','/data/database','513634DEHPQa','credential','toLowerCase','1270KNwUym','[redacted]','https://app.lovrabet.com/app/','test','connectionstring','39YxnsJR','18472RgalJs','number','2147170REqwJO','https://daily.lovrabet.com/web-app/app/','11UWFTBF','token','18vZGppT','/data/er?dbId=','isFinite','privatekey','2796TSglOt','2058833WdeOAz','1112lLZqDx','includes','38979EArlMj','authorization','225251rpmxSi','jdbcurl'];a69_0x2fc0=function(){return _0x3e70d4;};return a69_0x2fc0();}
1
+ function a70_0x3828(_0x292e4c,_0x2a64e6){_0x292e4c=_0x292e4c-0x165;const _0xfc7d29=a70_0xfc7d();let _0x382823=_0xfc7d29[_0x292e4c];return _0x382823;}(function(_0x19b0bf,_0x7dd53a){const _0x3851ce=a70_0x3828,_0x44c768=_0x19b0bf();while(!![]){try{const _0x5de324=parseInt(_0x3851ce(0x174))/0x1+-parseInt(_0x3851ce(0x176))/0x2+parseInt(_0x3851ce(0x17d))/0x3*(-parseInt(_0x3851ce(0x173))/0x4)+parseInt(_0x3851ce(0x17a))/0x5+-parseInt(_0x3851ce(0x16e))/0x6+parseInt(_0x3851ce(0x178))/0x7+parseInt(_0x3851ce(0x167))/0x8;if(_0x5de324===_0x7dd53a)break;else _0x44c768['push'](_0x44c768['shift']());}catch(_0x116a60){_0x44c768['push'](_0x44c768['shift']());}}}(a70_0xfc7d,0x1e879));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x2cd487){const _0x1bd922=a70_0x3828,_0x3c2a0c=_0x2cd487[_0x1bd922(0x17b)]();if(_0x3c2a0c===_0x1bd922(0x177)||_0x3c2a0c===_0x1bd922(0x166)||_0x3c2a0c===_0x1bd922(0x16f))return!![];if(_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x179))||_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x172))||_0x3c2a0c[_0x1bd922(0x165)]('credential'))return!![];if(_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x16a))||_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x171)))return!![];if(_0x3c2a0c==='authorization'||_0x3c2a0c==='connectionstring'||_0x3c2a0c===_0x1bd922(0x175))return!![];return![];}export function sanitizeDbLinkForOutput(_0x20bbf0){const _0x536ad6=a70_0x3828,_0x2ec1d1={..._0x20bbf0};for(const _0x20e06d of Object[_0x536ad6(0x168)](_0x2ec1d1)){if(!shouldRedactKey(_0x20e06d))continue;const _0x29231d=_0x2ec1d1[_0x20e06d];_0x29231d!=null&&String(_0x29231d)['length']>0x0&&(_0x2ec1d1[_0x20e06d]='[redacted]');}return _0x2ec1d1;}export function sanitizeDbLinkList(_0x315bd6){const _0x3b4d30=a70_0x3828;return _0x315bd6[_0x3b4d30(0x16c)](_0x429440=>sanitizeDbLinkForOutput(_0x429440));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5e9565){const _0x39be13=a70_0x3828,_0x475792=_0x5e9565['trim']();if(!_0x475792)return![];return DB_URL_PATTERN[_0x39be13(0x17c)](_0x475792);}function a70_0xfc7d(){const _0x5b59ea=['1648689mohjff','secret','141220JYxrHO','toLowerCase','test','272571OeKFvF','includes','passwd','1669640rOtABc','keys','isFinite','privatekey','https://daily.lovrabet.com/web-app/app/','map','trim','788448QHbkDA','dbpassword','number','accesskey','token','8XrBgvl','188314pCvEeU','jdbcurl','445238tgFtNe','password'];a70_0xfc7d=function(){return _0x5b59ea;};return a70_0xfc7d();}export function buildDbPageLinks(_0x361340,_0x3fdb67){const _0x17fac6=a70_0x3828,_0x31c1e1=_0x361340?.[_0x17fac6(0x16d)]();if(!_0x31c1e1)return undefined;const _0x29b02e=typeof _0x3fdb67===_0x17fac6(0x170)?String(_0x3fdb67):String(_0x3fdb67??'')[_0x17fac6(0x16d)]();if(!_0x29b02e)return undefined;const _0x56fdb5=Number(_0x29b02e);if(!Number[_0x17fac6(0x169)](_0x56fdb5)||_0x56fdb5<=0x0)return undefined;const _0x57822f=isDaily(normalizeEnv(getEnv()))?_0x17fac6(0x16b)+encodeURIComponent(_0x31c1e1):'https://app.lovrabet.com/app/'+encodeURIComponent(_0x31c1e1),_0x3c8335=encodeURIComponent(String(_0x56fdb5));return{'databasePage':_0x57822f+'/data/database','erPage':_0x57822f+'/data/er?dbId='+_0x3c8335};}
@@ -1 +1 @@
1
- const a70_0x4c2113=a70_0x5cb8;(function(_0x457868,_0x19c6f0){const _0x5f23a9=a70_0x5cb8,_0x268ce9=_0x457868();while(!![]){try{const _0x559300=parseInt(_0x5f23a9(0xca))/0x1*(-parseInt(_0x5f23a9(0xcf))/0x2)+parseInt(_0x5f23a9(0xd1))/0x3+-parseInt(_0x5f23a9(0xd2))/0x4*(parseInt(_0x5f23a9(0xcd))/0x5)+parseInt(_0x5f23a9(0xd3))/0x6+-parseInt(_0x5f23a9(0xcb))/0x7+-parseInt(_0x5f23a9(0xd6))/0x8*(parseInt(_0x5f23a9(0xce))/0x9)+parseInt(_0x5f23a9(0xd0))/0xa;if(_0x559300===_0x19c6f0)break;else _0x268ce9['push'](_0x268ce9['shift']());}catch(_0x21824e){_0x268ce9['push'](_0x268ce9['shift']());}}}(a70_0x36a0,0x3a684));import{getDbAllTableList}from'../../core/api-client.js';function a70_0x36a0(){const _0x5d0c33=['List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','227135zetSsh','998523CAFcNn','2ryPCZw','9367000mlBswS','23127JXoRri','20pObPeu','2060028aUuPWN','num','read','8vMzaAW','tables','415641cgVuNt','2063516KVCPFy'];a70_0x36a0=function(){return _0x5d0c33;};return a70_0x36a0();}function a70_0x5cb8(_0x186910,_0x481f43){_0x186910=_0x186910-0xca;const _0x36a0f9=a70_0x36a0();let _0x5cb8d1=_0x36a0f9[_0x186910];return _0x5cb8d1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a70_0x4c2113(0xd7),'description':a70_0x4c2113(0xcc),'risk':a70_0x4c2113(0xd5),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1e31f7){const _0x395064=a70_0x4c2113,_0x4fa1ac=_0x1e31f7[_0x395064(0xd4)]('id'),_0x4ea21d=await getDbAllTableList(_0x1e31f7['appCode'],_0x4fa1ac);return{'ok':!![],'data':{'dbLinkId':_0x4fa1ac,'total':_0x4ea21d['length'],'tables':_0x4ea21d},'message':_0x4ea21d['length']+'\x20table(s)\x20on\x20db\x20link\x20'+_0x4fa1ac};}};
1
+ function a71_0x5eb3(_0x48803f,_0xb9fd51){_0x48803f=_0x48803f-0x1bc;const _0x1eb22a=a71_0x1eb2();let _0x5eb3b0=_0x1eb22a[_0x48803f];return _0x5eb3b0;}const a71_0x5c2f7c=a71_0x5eb3;(function(_0x95853b,_0x3d0ead){const _0x2a3ea6=a71_0x5eb3,_0x44f30d=_0x95853b();while(!![]){try{const _0x402386=-parseInt(_0x2a3ea6(0x1c0))/0x1*(-parseInt(_0x2a3ea6(0x1c5))/0x2)+parseInt(_0x2a3ea6(0x1c6))/0x3+parseInt(_0x2a3ea6(0x1bc))/0x4*(-parseInt(_0x2a3ea6(0x1bd))/0x5)+-parseInt(_0x2a3ea6(0x1ca))/0x6+-parseInt(_0x2a3ea6(0x1bf))/0x7+-parseInt(_0x2a3ea6(0x1c8))/0x8+-parseInt(_0x2a3ea6(0x1c7))/0x9*(-parseInt(_0x2a3ea6(0x1c1))/0xa);if(_0x402386===_0x3d0ead)break;else _0x44f30d['push'](_0x44f30d['shift']());}catch(_0x1416da){_0x44f30d['push'](_0x44f30d['shift']());}}}(a71_0x1eb2,0x62671));function a71_0x1eb2(){const _0x2a664f=['4VrKlmq','1603150eLEcAP','appCode','4773216KXgQFB','25NhgnzU','530SlkFBH','read','tables','num','46918iEdxmi','1726092kdsyJd','81594Fwnpyj','1445200EFqEIR','length','336672evitwZ'];a71_0x1eb2=function(){return _0x2a664f;};return a71_0x1eb2();}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a71_0x5c2f7c(0x1c3),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a71_0x5c2f7c(0x1c2),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1c225d){const _0x14c783=a71_0x5c2f7c,_0x1d7ed6=_0x1c225d[_0x14c783(0x1c4)]('id'),_0x12e842=await getDbAllTableList(_0x1c225d[_0x14c783(0x1be)],_0x1d7ed6);return{'ok':!![],'data':{'dbLinkId':_0x1d7ed6,'total':_0x12e842['length'],'tables':_0x12e842},'message':_0x12e842[_0x14c783(0x1c9)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x1d7ed6};}};
@@ -1 +1 @@
1
- const a71_0x476d49=a71_0x40fb;(function(_0x3006a5,_0x45717d){const _0x27b63c=a71_0x40fb,_0x1dd5a3=_0x3006a5();while(!![]){try{const _0x29562a=parseInt(_0x27b63c(0xf9))/0x1*(parseInt(_0x27b63c(0xf0))/0x2)+parseInt(_0x27b63c(0xec))/0x3*(-parseInt(_0x27b63c(0xeb))/0x4)+-parseInt(_0x27b63c(0xfe))/0x5*(-parseInt(_0x27b63c(0xf3))/0x6)+-parseInt(_0x27b63c(0xf6))/0x7+-parseInt(_0x27b63c(0xf7))/0x8*(parseInt(_0x27b63c(0xf2))/0x9)+parseInt(_0x27b63c(0xed))/0xa+-parseInt(_0x27b63c(0xef))/0xb*(parseInt(_0x27b63c(0xfb))/0xc);if(_0x29562a===_0x45717d)break;else _0x1dd5a3['push'](_0x1dd5a3['shift']());}catch(_0x17ee91){_0x1dd5a3['push'](_0x1dd5a3['shift']());}}}(a71_0x552b,0x29e9c));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5b2222){const _0x4bf6e5=a71_0x40fb;if(_0x5b2222===!![]||_0x5b2222===![])return{'success':_0x5b2222};if(_0x5b2222===null||_0x5b2222===undefined)return{'type':typeof _0x5b2222};if(typeof _0x5b2222!==_0x4bf6e5(0xf4))return{'type':typeof _0x5b2222};const _0x46f0d6=_0x5b2222,_0x16c44e=[_0x4bf6e5(0xfd),_0x4bf6e5(0xe8),_0x4bf6e5(0xea),'error',_0x4bf6e5(0xf5),_0x4bf6e5(0xfa)],_0x5574a4={};for(const _0x53e57d of _0x16c44e){if(_0x53e57d in _0x46f0d6)_0x5574a4[_0x53e57d]=_0x46f0d6[_0x53e57d];}return Object['keys'](_0x5574a4)['length']===0x0&&(_0x5574a4[_0x4bf6e5(0xf8)]=Object[_0x4bf6e5(0xf8)](_0x46f0d6)[_0x4bf6e5(0xe9)](0x0,0x14)),_0x5574a4;}function a71_0x40fb(_0x15e330,_0x3febde){_0x15e330=_0x15e330-0xe8;const _0x552bb9=a71_0x552b();let _0x40fbc3=_0x552bb9[_0x15e330];return _0x40fbc3;}export const dbTest={'service':'db','command':a71_0x476d49(0xf1),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2c5010){const _0x431a5b=a71_0x476d49,_0x4a5015=_0x2c5010['num']('id'),_0x4b6667=await testDbLinkConnect(_0x4a5015),_0x3aad9f=_0x4b6667===!![]||typeof _0x4b6667===_0x431a5b(0xf4)&&_0x4b6667!==null&&_0x4b6667[_0x431a5b(0xfd)]===!![],_0x5911d0=summarizeTestConnectResult(_0x4b6667);return{'ok':!![],'data':{'id':_0x4a5015,'connected':Boolean(_0x3aad9f),'result':_0x5911d0},'message':_0x3aad9f?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x4a5015:_0x431a5b(0xee)+_0x4a5015+_0x431a5b(0xfc)};}};function a71_0x552b(){const _0x510dc1=['9KBQCqh','114QqSgBT','object','msg','1920625tNvnmE','1152104tzZLuW','keys','1fqISpS','data','336uCLXhd','\x20(see\x20data.result)','success','28870PGxNNF','message','slice','code','7624XaoWkL','84VNtEFn','3182570neNgzm','Connection\x20check\x20finished\x20for\x20db\x20link\x20','14751ksNIow','506034ClShpa','test'];a71_0x552b=function(){return _0x510dc1;};return a71_0x552b();}
1
+ const a72_0x3d9b86=a72_0x1a91;(function(_0x205258,_0x1772f7){const _0x36b564=a72_0x1a91,_0x2e1ce3=_0x205258();while(!![]){try{const _0x49683a=-parseInt(_0x36b564(0x134))/0x1+-parseInt(_0x36b564(0x136))/0x2*(parseInt(_0x36b564(0x13e))/0x3)+-parseInt(_0x36b564(0x13d))/0x4*(parseInt(_0x36b564(0x13c))/0x5)+parseInt(_0x36b564(0x139))/0x6*(parseInt(_0x36b564(0x137))/0x7)+-parseInt(_0x36b564(0x130))/0x8+parseInt(_0x36b564(0x141))/0x9+parseInt(_0x36b564(0x12f))/0xa;if(_0x49683a===_0x1772f7)break;else _0x2e1ce3['push'](_0x2e1ce3['shift']());}catch(_0x1debd2){_0x2e1ce3['push'](_0x2e1ce3['shift']());}}}(a72_0x4397,0x80490));function a72_0x4397(){const _0x1bc930=['msg','18cqJoRj','error','code','5GJAwYi','3637768RWnxVa','436623cQSMNV','test','slice','588789bKqlPX','\x20(see\x20data.result)','keys','26530820FXJtBC','5975880qZCHlG','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','message','success','453838xGSISN','data','6iBbkjP','825629FqmEIx'];a72_0x4397=function(){return _0x1bc930;};return a72_0x4397();}import{testDbLinkConnect}from'../../core/api-client.js';function a72_0x1a91(_0x53cd86,_0x484345){_0x53cd86=_0x53cd86-0x12e;const _0x4397ad=a72_0x4397();let _0x1a9166=_0x4397ad[_0x53cd86];return _0x1a9166;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2d796c){const _0x45be63=a72_0x1a91;if(_0x2d796c===!![]||_0x2d796c===![])return{'success':_0x2d796c};if(_0x2d796c===null||_0x2d796c===undefined)return{'type':typeof _0x2d796c};if(typeof _0x2d796c!=='object')return{'type':typeof _0x2d796c};const _0x83f873=_0x2d796c,_0xe9ff90=['success',_0x45be63(0x132),_0x45be63(0x13b),_0x45be63(0x13a),_0x45be63(0x138),_0x45be63(0x135)],_0x4ddbd1={};for(const _0x1cddfd of _0xe9ff90){if(_0x1cddfd in _0x83f873)_0x4ddbd1[_0x1cddfd]=_0x83f873[_0x1cddfd];}return Object[_0x45be63(0x12e)](_0x4ddbd1)['length']===0x0&&(_0x4ddbd1[_0x45be63(0x12e)]=Object[_0x45be63(0x12e)](_0x83f873)[_0x45be63(0x140)](0x0,0x14)),_0x4ddbd1;}export const dbTest={'service':'db','command':a72_0x3d9b86(0x13f),'description':a72_0x3d9b86(0x131),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4dcff8){const _0x394bb9=a72_0x3d9b86,_0x3a683a=_0x4dcff8['num']('id'),_0x1b546c=await testDbLinkConnect(_0x3a683a),_0x2f4f47=_0x1b546c===!![]||typeof _0x1b546c==='object'&&_0x1b546c!==null&&_0x1b546c[_0x394bb9(0x133)]===!![],_0x4c774d=summarizeTestConnectResult(_0x1b546c);return{'ok':!![],'data':{'id':_0x3a683a,'connected':Boolean(_0x2f4f47),'result':_0x4c774d},'message':_0x2f4f47?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x3a683a:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x3a683a+_0x394bb9(0x142)};}};
@@ -1 +1 @@
1
- function a72_0x582e(){const _0xa1be01=['Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','12kNXlhe','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dburl','9280oHxgVt','username','25358281UGPUxW','dbdesc','dbParam','dbDesc','2KWwIYs','dbName','177177UsiSzJ','10mhWfFo','trim','password','132NraxpR','dbUrl','update','207JvXbmx','182712ygfYCk','validation','New\x20connection\x20parameter\x20string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','num','896codRlV','POST','dbparam','dbname','645641IJHahm','string','New\x20username','str','New\x20description','write','1923246miheXI','New\x20host:port','8062890hKXqTa'];a72_0x582e=function(){return _0xa1be01;};return a72_0x582e();}function a72_0x3ed2(_0x202668,_0x50fc64){_0x202668=_0x202668-0xc1;const _0x582ed2=a72_0x582e();let _0x3ed218=_0x582ed2[_0x202668];return _0x3ed218;}const a72_0x1c9ca2=a72_0x3ed2;(function(_0xfeae86,_0x186893){const _0x5c96e9=a72_0x3ed2,_0x5a7c7c=_0xfeae86();while(!![]){try{const _0x1660d9=-parseInt(_0x5c96e9(0xc5))/0x1*(-parseInt(_0x5c96e9(0xd9))/0x2)+parseInt(_0x5c96e9(0xcb))/0x3+-parseInt(_0x5c96e9(0xc1))/0x4*(-parseInt(_0x5c96e9(0xd3))/0x5)+-parseInt(_0x5c96e9(0xdf))/0x6*(parseInt(_0x5c96e9(0xdb))/0x7)+-parseInt(_0x5c96e9(0xe3))/0x8*(-parseInt(_0x5c96e9(0xe2))/0x9)+parseInt(_0x5c96e9(0xdc))/0xa*(parseInt(_0x5c96e9(0xcd))/0xb)+-parseInt(_0x5c96e9(0xd0))/0xc*(parseInt(_0x5c96e9(0xd5))/0xd);if(_0x1660d9===_0x186893)break;else _0x5a7c7c['push'](_0x5a7c7c['shift']());}catch(_0x1df1cc){_0x5a7c7c['push'](_0x5a7c7c['shift']());}}}(a72_0x582e,0x6ea9b));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';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a72_0x1c9ca2(0xe1),'description':a72_0x1c9ca2(0xcf),'risk':a72_0x1c9ca2(0xca),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a72_0x1c9ca2(0xc6),'description':'New\x20database\x20name'},{'name':'dburl','type':'string','description':a72_0x1c9ca2(0xcc)},{'name':a72_0x1c9ca2(0xd4),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xc7)},{'name':a72_0x1c9ca2(0xde),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xd1)},{'name':a72_0x1c9ca2(0xc3),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xe5)},{'name':a72_0x1c9ca2(0xd6),'type':'string','description':a72_0x1c9ca2(0xc9)}],async 'validate'(_0x2935a6){const _0x3d44a2=a72_0x1c9ca2,_0x2f7f4d=_0x2935a6[_0x3d44a2(0xc8)](_0x3d44a2(0xd2));if(_0x2f7f4d&&!validateDbUrl(_0x2f7f4d[_0x3d44a2(0xdd)]()))throw CliErrors[_0x3d44a2(0xe4)](_0x3d44a2(0xe6)+_0x2f7f4d+'\x22');},async 'dryRun'(_0x5ea22d){const _0x352022=a72_0x1c9ca2,_0x48158e=_0x5ea22d[_0x352022(0xe7)]('id'),_0x3e9d04=await getDbLinkInfo(_0x48158e),_0x2f044e={..._0x3e9d04},_0x52c6dd=_0x5ea22d['str']('dbname');if(_0x52c6dd)_0x2f044e['dbName']=_0x52c6dd;const _0x1496c5=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xd2));if(_0x1496c5)_0x2f044e[_0x352022(0xe0)]=_0x1496c5[_0x352022(0xdd)]();const _0x537ac7=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xd4));if(_0x537ac7)_0x2f044e['username']=_0x537ac7;const _0x285e61=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xde));if(_0x285e61)_0x2f044e['password']=_0x285e61;const _0x1e42bf=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xc3));if(_0x1e42bf)_0x2f044e[_0x352022(0xd7)]=_0x1e42bf;const _0x4971a5=_0x5ea22d[_0x352022(0xc8)]('dbdesc');if(_0x4971a5)_0x2f044e[_0x352022(0xd8)]=_0x4971a5;const _0x2b46e2=sanitizeDbLinkForOutput(_0x2f044e);return{'method':_0x352022(0xc2),'url':'/smartapi/dblink/update','body':_0x2b46e2,'description':_0x352022(0xce)};},async 'execute'(_0x2ea281){const _0x2d4476=a72_0x1c9ca2,_0x3acbae=_0x2ea281['num']('id'),_0x258ea8=await getDbLinkInfo(_0x3acbae),_0xd80fc8={..._0x258ea8},_0x28de0a=_0x2ea281['str'](_0x2d4476(0xc4));if(_0x28de0a)_0xd80fc8[_0x2d4476(0xda)]=_0x28de0a;const _0x53b147=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xd2));if(_0x53b147)_0xd80fc8[_0x2d4476(0xe0)]=_0x53b147[_0x2d4476(0xdd)]();const _0x245383=_0x2ea281['str'](_0x2d4476(0xd4));if(_0x245383)_0xd80fc8[_0x2d4476(0xd4)]=_0x245383;const _0x1592b1=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xde));if(_0x1592b1)_0xd80fc8['password']=_0x1592b1;const _0x1dec38=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xc3));if(_0x1dec38)_0xd80fc8[_0x2d4476(0xd7)]=_0x1dec38;const _0x40a402=_0x2ea281['str'](_0x2d4476(0xd6));if(_0x40a402)_0xd80fc8[_0x2d4476(0xd8)]=_0x40a402;const {id:_0x44e4d0,entity:_0x54a87d}=normalizeEntityWithIdResponse(await updateDbLink(_0xd80fc8));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x54a87d),'message':'Updated\x20db\x20link\x20'+(_0x44e4d0??_0x3acbae)};}};
1
+ function a73_0x13e4(_0x31582b,_0x127be2){_0x31582b=_0x31582b-0xd4;const _0x47a2b1=a73_0x47a2();let _0x13e4a5=_0x47a2b1[_0x31582b];return _0x13e4a5;}const a73_0x3c6041=a73_0x13e4;(function(_0x3cc574,_0x1c5880){const _0x1fd053=a73_0x13e4,_0x2d6412=_0x3cc574();while(!![]){try{const _0x2a0cd8=-parseInt(_0x1fd053(0xd6))/0x1*(-parseInt(_0x1fd053(0xf6))/0x2)+parseInt(_0x1fd053(0xdc))/0x3+parseInt(_0x1fd053(0xf3))/0x4+parseInt(_0x1fd053(0xe7))/0x5*(parseInt(_0x1fd053(0xe2))/0x6)+-parseInt(_0x1fd053(0xef))/0x7*(-parseInt(_0x1fd053(0xd9))/0x8)+-parseInt(_0x1fd053(0xd8))/0x9*(-parseInt(_0x1fd053(0xd7))/0xa)+-parseInt(_0x1fd053(0xde))/0xb;if(_0x2a0cd8===_0x1c5880)break;else _0x2d6412['push'](_0x2d6412['shift']());}catch(_0x581a60){_0x2d6412['push'](_0x2d6412['shift']());}}}(a73_0x47a2,0x1c588));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a73_0x47a2(){const _0x522d3b=['dbUrl','string','7WHYYsC','dbname','num','dbdesc','719776BTjAAg','New\x20database\x20name','Updated\x20db\x20link\x20','194uiSVhj','dbParam','New\x20host:port','926HDgRNk','710AnLCNX','24147FcZrXj','376408KtXmXc','dbName','str','665796APfALo','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','7428806KcZTjR','dburl','write','dbDesc','6YepQza','dbparam','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','password','username','311040LYBzTq','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','update','POST','New\x20description','trim'];a73_0x47a2=function(){return _0x522d3b;};return a73_0x47a2();}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':a73_0x3c6041(0xe9),'description':a73_0x3c6041(0xdd),'risk':a73_0x3c6041(0xe0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a73_0x3c6041(0xf0),'type':a73_0x3c6041(0xee),'description':a73_0x3c6041(0xf4)},{'name':a73_0x3c6041(0xdf),'type':a73_0x3c6041(0xee),'description':a73_0x3c6041(0xd5)},{'name':a73_0x3c6041(0xe6),'type':'string','description':'New\x20username'},{'name':a73_0x3c6041(0xe5),'type':'string','description':a73_0x3c6041(0xe4)},{'name':a73_0x3c6041(0xe3),'type':a73_0x3c6041(0xee),'description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':a73_0x3c6041(0xee),'description':a73_0x3c6041(0xeb)}],async 'validate'(_0x2644bb){const _0x50ff3e=a73_0x3c6041,_0x2d9872=_0x2644bb[_0x50ff3e(0xdb)]('dburl');if(_0x2d9872&&!validateDbUrl(_0x2d9872[_0x50ff3e(0xec)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2d9872+'\x22');},async 'dryRun'(_0x201811){const _0x2ea61e=a73_0x3c6041,_0x1e26df=_0x201811[_0x2ea61e(0xf1)]('id'),_0x819343=await getDbLinkInfo(_0x1e26df),_0x4dce55={..._0x819343},_0x5820ea=_0x201811['str'](_0x2ea61e(0xf0));if(_0x5820ea)_0x4dce55[_0x2ea61e(0xda)]=_0x5820ea;const _0x142d92=_0x201811[_0x2ea61e(0xdb)]('dburl');if(_0x142d92)_0x4dce55[_0x2ea61e(0xed)]=_0x142d92[_0x2ea61e(0xec)]();const _0x5c4baf=_0x201811[_0x2ea61e(0xdb)](_0x2ea61e(0xe6));if(_0x5c4baf)_0x4dce55[_0x2ea61e(0xe6)]=_0x5c4baf;const _0x652a40=_0x201811['str'](_0x2ea61e(0xe5));if(_0x652a40)_0x4dce55['password']=_0x652a40;const _0x567e01=_0x201811[_0x2ea61e(0xdb)]('dbparam');if(_0x567e01)_0x4dce55[_0x2ea61e(0xd4)]=_0x567e01;const _0x4f3723=_0x201811[_0x2ea61e(0xdb)](_0x2ea61e(0xf2));if(_0x4f3723)_0x4dce55[_0x2ea61e(0xe1)]=_0x4f3723;const _0x5b1b1d=sanitizeDbLinkForOutput(_0x4dce55);return{'method':_0x2ea61e(0xea),'url':'/smartapi/dblink/update','body':_0x5b1b1d,'description':_0x2ea61e(0xe8)};},async 'execute'(_0x54350f){const _0x38864d=a73_0x3c6041,_0x1c6f47=_0x54350f[_0x38864d(0xf1)]('id'),_0x40b017=await getDbLinkInfo(_0x1c6f47),_0x583fe4={..._0x40b017},_0x544340=_0x54350f['str'](_0x38864d(0xf0));if(_0x544340)_0x583fe4[_0x38864d(0xda)]=_0x544340;const _0x3b1c6b=_0x54350f[_0x38864d(0xdb)](_0x38864d(0xdf));if(_0x3b1c6b)_0x583fe4[_0x38864d(0xed)]=_0x3b1c6b[_0x38864d(0xec)]();const _0x654a09=_0x54350f[_0x38864d(0xdb)](_0x38864d(0xe6));if(_0x654a09)_0x583fe4[_0x38864d(0xe6)]=_0x654a09;const _0x518a6f=_0x54350f['str'](_0x38864d(0xe5));if(_0x518a6f)_0x583fe4[_0x38864d(0xe5)]=_0x518a6f;const _0xec9fd5=_0x54350f[_0x38864d(0xdb)]('dbparam');if(_0xec9fd5)_0x583fe4[_0x38864d(0xd4)]=_0xec9fd5;const _0x4fd6ef=_0x54350f[_0x38864d(0xdb)](_0x38864d(0xf2));if(_0x4fd6ef)_0x583fe4[_0x38864d(0xe1)]=_0x4fd6ef;const {id:_0x4ba894,entity:_0x6f468}=normalizeEntityWithIdResponse(await updateDbLink(_0x583fe4));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x6f468),'message':_0x38864d(0xf5)+(_0x4ba894??_0x1c6f47)};}};
@@ -1 +1 @@
1
- (function(_0x34275d,_0x49f4d3){const _0x5c0f3e=a73_0x3032,_0x5371ae=_0x34275d();while(!![]){try{const _0x4208a5=parseInt(_0x5c0f3e(0x1a5))/0x1*(parseInt(_0x5c0f3e(0x1bd))/0x2)+parseInt(_0x5c0f3e(0x1e5))/0x3+parseInt(_0x5c0f3e(0x1c7))/0x4*(parseInt(_0x5c0f3e(0x1eb))/0x5)+parseInt(_0x5c0f3e(0x1db))/0x6+-parseInt(_0x5c0f3e(0x1a3))/0x7*(-parseInt(_0x5c0f3e(0x1d8))/0x8)+-parseInt(_0x5c0f3e(0x1e8))/0x9*(parseInt(_0x5c0f3e(0x1e2))/0xa)+-parseInt(_0x5c0f3e(0x19a))/0xb;if(_0x4208a5===_0x49f4d3)break;else _0x5371ae['push'](_0x5371ae['shift']());}catch(_0x39123b){_0x5371ae['push'](_0x5371ae['shift']());}}}(a73_0x1cc1,0x5cae7));import a73_0x4de10b from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a73_0x3032(_0x32ec6a,_0x276d41){_0x32ec6a=_0x32ec6a-0x19a;const _0x1cc118=a73_0x1cc1();let _0x303227=_0x1cc118[_0x32ec6a];return _0x303227;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a73_0x1cc1(){const _0x4b1078=['(not\x20found)','(none)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','4231310lXKSKT','\x20(default)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','325971FcMZzd','appCode','pageSize','9JrxyUb','✗\x20Not\x20logged\x20in','apiDir','258005JHxeOR','green','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','12679458rJWmRl','missing','red','\x20\x20API\x20Endpoints','\x20\x20\x20\x20accessKey:\x20\x20','Project','\x20\x20Apps','accessKey','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','987PpjXvb','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','14euCYun','source','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(no\x20file)','platform','value','apps','currentApp','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','empty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(missing)','log','cookie','\x20\x20─','format','keys','\x20\x20Auth','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Config\x20Files','101466iTxSIy','✓\x20Valid','raw','✗\x20Invalid\x20JSON','repeat','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','slice','yellow','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','56uyPyBz','defaultApp','bold','Global','message','env','verbose','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','status','locale','length','(set,\x20length=','2864drSRnS','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','2181726OkQfOP','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray'];a73_0x1cc1=function(){return _0x4b1078;};return a73_0x1cc1();}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3b65c5){const _0xd38bcd=a73_0x3032,_0x2b652c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xd38bcd(0x1c3)](0x0,0xa)+')':VERSION,_0x5d4589=buildConfigFromFlags({}),_0x39bc47=getCookie();console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](CLI_BIN_NAME+'\x20doctor')),console['log'](a73_0x4de10b[_0xd38bcd(0x1de)]('─'[_0xd38bcd(0x1c1)](0x32))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1e1)+_0x2b652c),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a2)+process['version']),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xd38bcd(0x1a9)]+'\x20'+process[_0xd38bcd(0x1da)]),console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold'](_0xd38bcd(0x1bc))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));const _0x1e7c68=getGlobalConfigPath(),_0x3813b=getProjectConfigPath();console['log'](_0xd38bcd(0x1dd)+(_0x1e7c68||a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1df)))),console['log'](_0xd38bcd(0x1e4)+(_0x3813b||a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1df)))),console[_0xd38bcd(0x1b2)](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold']('\x20\x20Config\x20JSON')),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));const _0x5c2262=(_0x4889f5,_0x118089)=>{const _0x2e7e52=_0xd38bcd;if(!_0x118089){console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b['gray'](_0x2e7e52(0x1a8)));return;}const _0x385b02=inspectCliConfigJsonFile(_0x118089);if(_0x385b02['status']==='ok')console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1ec)](_0x2e7e52(0x1bb)));else{if(_0x385b02[_0x2e7e52(0x1d4)]===_0x2e7e52(0x1af))console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1c4)](_0x2e7e52(0x1b9)));else _0x385b02['status']===_0x2e7e52(0x19b)?console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5['padEnd'](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1de)](_0x2e7e52(0x1b1))):(console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b['red'](_0x2e7e52(0x1c0))),console[_0x2e7e52(0x1b2)]('\x20\x20'+''[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x19c)](_0x385b02[_0x2e7e52(0x1cb)])));}};_0x5c2262(_0xd38bcd(0x1ca),_0x1e7c68),_0x5c2262(_0xd38bcd(0x19f),_0x3813b),console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1ae))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d9)+(_0x5d4589[_0xd38bcd(0x1e6)]||a73_0x4de10b['red']('(not\x20set)'))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d4589[_0xd38bcd(0x1cc)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1cf)+_0x5d4589[_0xd38bcd(0x1d5)]),console['log'](_0xd38bcd(0x1ed)+_0x5d4589[_0xd38bcd(0x1ea)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ba)+(_0x5d4589[_0xd38bcd(0x1c8)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(none)'))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a4)+(_0x5d4589[_0xd38bcd(0x1ac)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(none)'))),console[_0xd38bcd(0x1b2)]('\x20\x20explicitAppName:\x20'+(_0x5d4589['explicitAppName']||a73_0x4de10b['gray'](_0xd38bcd(0x1e0)))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1dc)+(_0x5d4589[_0xd38bcd(0x1b5)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0xd38bcd(0x1c2)+(_0x5d4589[_0xd38bcd(0x1e7)]??a73_0x4de10b['gray']('(default)'))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ce)+_0x5d4589[_0xd38bcd(0x1c6)]),console[_0xd38bcd(0x1b2)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d4589[_0xd38bcd(0x1cd)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1c5)+(_0x5d4589[_0xd38bcd(0x1b3)]?a73_0x4de10b[_0xd38bcd(0x1ec)]('(set,\x20length='+_0x5d4589[_0xd38bcd(0x1b3)][_0xd38bcd(0x1d6)]+')'):_0x39bc47?a73_0x4de10b[_0xd38bcd(0x1ec)]('(set\x20via\x20file,\x20length='+_0x39bc47[_0xd38bcd(0x1d6)]+')'):a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1e0))));const _0x2f065b=Object[_0xd38bcd(0x1b6)](_0x5d4589['apps']);if(_0x2f065b[_0xd38bcd(0x1d6)]>0x0){console[_0xd38bcd(0x1b2)](),console['log'](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1a0))),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)]('\x20\x20─'[_0xd38bcd(0x1c1)](0x1e)));for(const _0x8e4b62 of _0x2f065b){const _0x1a912b=_0x5d4589[_0xd38bcd(0x1ab)][_0x8e4b62],_0x35efae=_0x8e4b62===_0x5d4589[_0xd38bcd(0x1c8)],_0x2aee84=_0x8e4b62===_0x5d4589[_0xd38bcd(0x1ac)],_0x5ea6ce=_0x2aee84?a73_0x4de10b[_0xd38bcd(0x1ec)]('\x20←\x20current'):'',_0x269ed1=_0x35efae?_0xd38bcd(0x1e3):'';console[_0xd38bcd(0x1b2)]('\x20\x20'+_0x8e4b62+_0x269ed1+_0x5ea6ce),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1b0)+_0x1a912b['appcode']);const _0x11be0b=buildAppDoctorFields(_0x1a912b,{'env':_0x5d4589[_0xd38bcd(0x1cc)],'apiDir':_0x5d4589[_0xd38bcd(0x1bf)]['apiDir']||DEFAULT_CONFIG_VALUES[_0xd38bcd(0x1ea)],'cookie':_0x5d4589[_0xd38bcd(0x1b3)]||_0x39bc47||undefined,'accessKey':_0x5d4589[_0xd38bcd(0x1a1)]});console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d2)+_0x11be0b[_0xd38bcd(0x1cc)]['value']+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1cc)][_0xd38bcd(0x1a6)]+')')),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ad)+_0x11be0b[_0xd38bcd(0x1ea)][_0xd38bcd(0x1aa)]+'\x20\x20'+a73_0x4de10b['gray']('('+_0x11be0b[_0xd38bcd(0x1ea)][_0xd38bcd(0x1a6)]+')'));const _0x4a5938=_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1aa)]?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1d7)+_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1aa)][_0xd38bcd(0x1d6)]+')'):a73_0x4de10b['gray']('(none)');console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a7)+_0x4a5938+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1a6)]+')'));const _0x5a3932=_0x11be0b['accessKey']['value']?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1d7)+_0x11be0b[_0xd38bcd(0x1a1)][_0xd38bcd(0x1aa)][_0xd38bcd(0x1d6)]+')'):a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1e0));console[_0xd38bcd(0x1b2)](_0xd38bcd(0x19e)+_0x5a3932+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1a1)]['source']+')'));}}console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold'](_0xd38bcd(0x19d))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d0)+getApiDomain()),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1b8)+getUserDomain()),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d1)+getRuntimeDomain()),console[_0xd38bcd(0x1b2)](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1b7))),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));if(_0x39bc47){const _0x589cd6=await getIsSessionValid();console[_0xd38bcd(0x1b2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x589cd6?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1be)):a73_0x4de10b[_0xd38bcd(0x19c)]('✗\x20Expired')));}else console[_0xd38bcd(0x1b2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a73_0x4de10b['red'](_0xd38bcd(0x1e9)));return console[_0xd38bcd(0x1b2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a74_0x39d661=a74_0x188a;function a74_0xb4ac(){const _0x4e2ed4=['\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','appCode','source','pageSize','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20Config\x20JSON','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','852606ZmfLnq','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','1604584YoyzTG','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','slice','(not\x20set)','repeat','(not\x20found)','cookie','format','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','6574woWcaj','\x20\x20\x20\x20accessKey:\x20\x20','(none)','platform','verbose','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','✗\x20Invalid\x20JSON','doctor','16QNUuep','length','env','✓\x20Valid\x20JSON','unknown','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1701300PpiPUc','log','\x20(default)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','(default)','\x20\x20API\x20Endpoints','(set,\x20length=','read','appcode','⚠\x20Empty\x20(treated\x20as\x20{})','empty','18RaLKFi','\x20\x20Merged\x20Config','\x20\x20Apps','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','gray','riskLevel','\x20←\x20current','explicitAppName','1660lOJxPN','(set\x20via\x20file,\x20length=','\x20\x20─','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','currentApp','red','status','Project','yellow','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','missing','message','apiDir','Global','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','accessKey','keys','defaultApp','bold','\x20\x20Config\x20Files','7691230lAiqEy','3251724xhPvsn','(no\x20file)','check','4386eswBoV'];a74_0xb4ac=function(){return _0x4e2ed4;};return a74_0xb4ac();}(function(_0x14518b,_0x3612ed){const _0x5d2ce3=a74_0x188a,_0x1c1858=_0x14518b();while(!![]){try{const _0x52f77b=parseInt(_0x5d2ce3(0xc3))/0x1*(parseInt(_0x5d2ce3(0xba))/0x2)+-parseInt(_0x5d2ce3(0xad))/0x3+-parseInt(_0x5d2ce3(0xca))/0x4+parseInt(_0x5d2ce3(0xdd))/0x5*(parseInt(_0x5d2ce3(0xa0))/0x6)+-parseInt(_0x5d2ce3(0x9d))/0x7+parseInt(_0x5d2ce3(0xb0))/0x8*(parseInt(_0x5d2ce3(0xd5))/0x9)+parseInt(_0x5d2ce3(0x9c))/0xa;if(_0x52f77b===_0x3612ed)break;else _0x1c1858['push'](_0x1c1858['shift']());}catch(_0x14eba2){_0x1c1858['push'](_0x1c1858['shift']());}}}(a74_0xb4ac,0x472a6));import a74_0x200d79 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x56e7e5){const _0x4553fc=a74_0x188a,_0x3eebf3=GIT_COMMIT!==_0x4553fc(0xc7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4553fc(0xb3)](0x0,0xa)+')':VERSION,_0x2c8abf=buildConfigFromFlags({}),_0x3be4a6=getCookie();console[_0x4553fc(0xcb)](),console['log'](a74_0x200d79[_0x4553fc(0x9a)](CLI_BIN_NAME+_0x4553fc(0xc0))),console['log'](a74_0x200d79[_0x4553fc(0xd9)]('─'[_0x4553fc(0xb5)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3eebf3),console[_0x4553fc(0xcb)](_0x4553fc(0x95)+process['version']),console[_0x4553fc(0xcb)](_0x4553fc(0xaf)+process[_0x4553fc(0xbd)]+'\x20'+process['arch']),console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79[_0x4553fc(0x9a)](_0x4553fc(0x9b))),console[_0x4553fc(0xcb)](a74_0x200d79[_0x4553fc(0xd9)]('\x20\x20─'['repeat'](0x1e)));const _0x1d933c=getGlobalConfigPath(),_0x459c08=getProjectConfigPath();console[_0x4553fc(0xcb)](_0x4553fc(0xb1)+(_0x1d933c||a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xb6)))),console[_0x4553fc(0xcb)](_0x4553fc(0xbf)+(_0x459c08||a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xb6)))),console[_0x4553fc(0xcb)](),console['log'](a74_0x200d79['bold'](_0x4553fc(0xa9))),console[_0x4553fc(0xcb)](a74_0x200d79['gray'](_0x4553fc(0xdf)[_0x4553fc(0xb5)](0x1e)));const _0x2bc803=(_0x10f305,_0x5df776)=>{const _0x14781d=_0x4553fc;if(!_0x5df776){console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xd9)](_0x14781d(0x9e)));return;}const _0x504195=inspectCliConfigJsonFile(_0x5df776);if(_0x504195[_0x14781d(0xe3)]==='ok')console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305['padEnd'](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xab)](_0x14781d(0xc6)));else{if(_0x504195['status']===_0x14781d(0xd4))console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xe5)](_0x14781d(0xd3)));else _0x504195[_0x14781d(0xe3)]===_0x14781d(0xe8)?console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305['padEnd'](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xd9)]('(missing)')):(console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xe2)](_0x14781d(0xc1))),console['log']('\x20\x20'+''[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79['red'](_0x504195[_0x14781d(0xe9)])));}};_0x2bc803(_0x4553fc(0x94),_0x1d933c),_0x2bc803(_0x4553fc(0xe4),_0x459c08),console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79['bold'](_0x4553fc(0xd6))),console[_0x4553fc(0xcb)](a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xdf)[_0x4553fc(0xb5)](0x1e))),console[_0x4553fc(0xcb)](_0x4553fc(0xb9)+(_0x2c8abf[_0x4553fc(0xa3)]||a74_0x200d79['red'](_0x4553fc(0xb4)))),console[_0x4553fc(0xcb)](_0x4553fc(0xc9)+_0x2c8abf[_0x4553fc(0xc5)]),console['log'](_0x4553fc(0xa6)+_0x2c8abf['locale']),console['log'](_0x4553fc(0xa1)+_0x2c8abf[_0x4553fc(0xea)]),console[_0x4553fc(0xcb)](_0x4553fc(0xae)+(_0x2c8abf[_0x4553fc(0x99)]||a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xbc)))),console[_0x4553fc(0xcb)](_0x4553fc(0xe0)+(_0x2c8abf[_0x4553fc(0xe1)]||a74_0x200d79[_0x4553fc(0xd9)]('(none)'))),console['log']('\x20\x20explicitAppName:\x20'+(_0x2c8abf[_0x4553fc(0xdc)]||a74_0x200d79[_0x4553fc(0xd9)]('(none)'))),console[_0x4553fc(0xcb)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c8abf[_0x4553fc(0xb8)]||a74_0x200d79[_0x4553fc(0xd9)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x4553fc(0xb8)]+')'))),console['log'](_0x4553fc(0xd8)+(_0x2c8abf[_0x4553fc(0xa5)]??a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xce)))),console[_0x4553fc(0xcb)](_0x4553fc(0xac)+_0x2c8abf[_0x4553fc(0xda)]),console[_0x4553fc(0xcb)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c8abf[_0x4553fc(0xbe)]),console[_0x4553fc(0xcb)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c8abf[_0x4553fc(0xb7)]?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xd0)+_0x2c8abf[_0x4553fc(0xb7)][_0x4553fc(0xc4)]+')'):_0x3be4a6?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xde)+_0x3be4a6['length']+')'):a74_0x200d79['gray']('(none)')));const _0xac3bf4=Object[_0x4553fc(0x98)](_0x2c8abf['apps']);if(_0xac3bf4['length']>0x0){console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79['bold'](_0x4553fc(0xd7))),console[_0x4553fc(0xcb)](a74_0x200d79['gray']('\x20\x20─'['repeat'](0x1e)));for(const _0x413826 of _0xac3bf4){const _0x2ba7a0=_0x2c8abf['apps'][_0x413826],_0x47c7cb=_0x413826===_0x2c8abf[_0x4553fc(0x99)],_0x377ac6=_0x413826===_0x2c8abf[_0x4553fc(0xe1)],_0x27a9aa=_0x377ac6?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xdb)):'',_0x4bbdff=_0x47c7cb?_0x4553fc(0xcc):'';console['log']('\x20\x20'+_0x413826+_0x4bbdff+_0x27a9aa),console[_0x4553fc(0xcb)](_0x4553fc(0xe7)+_0x2ba7a0[_0x4553fc(0xd2)]);const _0x84b768=buildAppDoctorFields(_0x2ba7a0,{'env':_0x2c8abf[_0x4553fc(0xc5)],'apiDir':_0x2c8abf['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x4553fc(0xea)],'cookie':_0x2c8abf[_0x4553fc(0xb7)]||_0x3be4a6||undefined,'accessKey':_0x2c8abf['accessKey']});console[_0x4553fc(0xcb)](_0x4553fc(0xaa)+_0x84b768[_0x4553fc(0xc5)][_0x4553fc(0xc8)]+'\x20\x20'+a74_0x200d79[_0x4553fc(0xd9)]('('+_0x84b768[_0x4553fc(0xc5)][_0x4553fc(0xa4)]+')')),console[_0x4553fc(0xcb)](_0x4553fc(0xa7)+_0x84b768[_0x4553fc(0xea)][_0x4553fc(0xc8)]+'\x20\x20'+a74_0x200d79[_0x4553fc(0xd9)]('('+_0x84b768[_0x4553fc(0xea)][_0x4553fc(0xa4)]+')'));const _0x35be81=_0x84b768[_0x4553fc(0xb7)][_0x4553fc(0xc8)]?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xd0)+_0x84b768[_0x4553fc(0xb7)][_0x4553fc(0xc8)][_0x4553fc(0xc4)]+')'):a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xbc));console[_0x4553fc(0xcb)](_0x4553fc(0xe6)+_0x35be81+'\x20\x20'+a74_0x200d79[_0x4553fc(0xd9)]('('+_0x84b768[_0x4553fc(0xb7)][_0x4553fc(0xa4)]+')'));const _0x3748e2=_0x84b768[_0x4553fc(0x97)][_0x4553fc(0xc8)]?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xd0)+_0x84b768[_0x4553fc(0x97)][_0x4553fc(0xc8)][_0x4553fc(0xc4)]+')'):a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xbc));console['log'](_0x4553fc(0xbb)+_0x3748e2+'\x20\x20'+a74_0x200d79['gray']('('+_0x84b768['accessKey'][_0x4553fc(0xa4)]+')'));}}console[_0x4553fc(0xcb)](),console['log'](a74_0x200d79[_0x4553fc(0x9a)](_0x4553fc(0xcf))),console[_0x4553fc(0xcb)](a74_0x200d79['gray']('\x20\x20─'[_0x4553fc(0xb5)](0x1e))),console[_0x4553fc(0xcb)](_0x4553fc(0x96)+getApiDomain()),console[_0x4553fc(0xcb)](_0x4553fc(0xb2)+getUserDomain()),console[_0x4553fc(0xcb)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79['bold']('\x20\x20Auth')),console['log'](a74_0x200d79['gray'](_0x4553fc(0xdf)[_0x4553fc(0xb5)](0x1e)));if(_0x3be4a6){const _0x1631ef=await getIsSessionValid();console[_0x4553fc(0xcb)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1631ef?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xa8)):a74_0x200d79['red']('✗\x20Expired')));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a74_0x200d79[_0x4553fc(0xe2)]('✗\x20Not\x20logged\x20in'));return console[_0x4553fc(0xcb)](),{'ok':!![]};}function a74_0x188a(_0x5dd38c,_0x3386d7){_0x5dd38c=_0x5dd38c-0x94;const _0xb4aca1=a74_0xb4ac();let _0x188a6d=_0xb4aca1[_0x5dd38c];return _0x188a6d;}export const doctorDefinition={'service':a74_0x39d661(0xc2),'command':a74_0x39d661(0x9f),'description':a74_0x39d661(0xcd),'risk':a74_0x39d661(0xd1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a74_0xedeeb=a74_0x58db;(function(_0x317f49,_0x3d4ae3){const _0x3dee8c=a74_0x58db,_0x17659d=_0x317f49();while(!![]){try{const _0x566360=-parseInt(_0x3dee8c(0xf8))/0x1*(-parseInt(_0x3dee8c(0xe9))/0x2)+parseInt(_0x3dee8c(0xf5))/0x3+parseInt(_0x3dee8c(0x103))/0x4+-parseInt(_0x3dee8c(0xe5))/0x5+parseInt(_0x3dee8c(0xf7))/0x6*(parseInt(_0x3dee8c(0xe8))/0x7)+-parseInt(_0x3dee8c(0xed))/0x8+-parseInt(_0x3dee8c(0xea))/0x9;if(_0x566360===_0x3d4ae3)break;else _0x17659d['push'](_0x17659d['shift']());}catch(_0x316ecc){_0x17659d['push'](_0x17659d['shift']());}}}(a74_0x2d4d,0xe6afd));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';function a74_0x58db(_0x54e571,_0x4c5465){_0x54e571=_0x54e571-0xe0;const _0x2d4d2d=a74_0x2d4d();let _0x58dbba=_0x2d4d2d[_0x54e571];return _0x58dbba;}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(_0x3c4a39){return{'appCode':_0x3c4a39,'appName':_0x3c4a39};}function writeInitConfig(_0x312d28,_0x85ed7a,_0xb71394){const _0x29ca2f=a74_0x58db,_0x39b1db=resolveWriteConfigPath(_0x312d28),_0x45740f=buildCanonicalProjectConfig({},{'appCodes':_0x85ed7a[_0x29ca2f(0x108)](_0x54238d=>_0x54238d['appCode']),'env':_0xb71394,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x29ca2f(0x10c)]()}});writeConfigFile(_0x39b1db,_0x45740f);const _0x92a8a9=_0x312d28===_0x29ca2f(0x109)?_0x29ca2f(0x109):_0x29ca2f(0xf3);console[_0x29ca2f(0x102)](_0x29ca2f(0x101)+_0x92a8a9+_0x29ca2f(0x10a)),console['log'](_0x29ca2f(0x107)+_0x85ed7a['map'](_0x503186=>_0x503186[_0x29ca2f(0x10b)])[_0x29ca2f(0xf1)](',\x20')),console[_0x29ca2f(0x102)](_0x29ca2f(0xf2)+_0x45740f[_0x29ca2f(0xf4)]),console[_0x29ca2f(0x102)](_0x29ca2f(0xeb)+_0x45740f[_0x29ca2f(0xe2)]),console[_0x29ca2f(0x102)]('\x20\x20Config:\x20'+_0x39b1db);}function a74_0x2d4d(){const _0x35254a=['2062tpPlRz','message','run','boolean','yes','write','production','some','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x0a✓\x20Successfully\x20initialized\x20','log','7506484krNTuX','cwd','appcode','str','\x20\x20Apps:\x20','map','global','\x20config','appCode','toLocaleString','nonInteractive','validation','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Write\x20to\x20global\x20config\x20instead\x20of\x20project','env','bool','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','4651470MUABSd','../../commands/project/init.js','Use\x20`','555443dAeyup','950lFlwfi','8342982qtJZkJ','\x20\x20Env:\x20','Target\x20environment','14364984XuuveY','App\x20code\x20to\x20initialize\x20with','custom','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','join','\x20\x20Default:\x20','project','defaultApp','2606694ZxVowG','检测到旧配置文件,正在自动升级...\x0a','66Ryvhsx'];a74_0x2d4d=function(){return _0x35254a;};return a74_0x2d4d();}async function runSmartInit(_0x21325d){const _0x34181e=a74_0x58db,_0x328af4=process[_0x34181e(0x104)](),_0xc7149=_0x21325d[_0x34181e(0xe3)]('global')?_0x34181e(0x109):'project',_0x2fbb02=_0x21325d['str'](_0x34181e(0xe2))||_0x34181e(0xfe),_0xeb3e26=_0x21325d[_0x34181e(0x106)](_0x34181e(0x105))||undefined,_0x12dcf7=_0x21325d['bool'](_0x34181e(0xf3));if(_0x12dcf7){const {initConfig:_0x4895f3}=await import(_0x34181e(0xe6));return _0x4895f3({'appcode':_0xeb3e26,'env':_0x2fbb02,'autoYes':_0x21325d['bool'](_0x34181e(0xfc))});}if(_0xc7149==='project'){const _0x3cae41=existsSync(resolve(_0x328af4,NEW_CONFIG_NAME)),_0x3acfbd=LEGACY_CONFIG_NAMES[_0x34181e(0xff)](_0x294fb4=>existsSync(resolve(_0x328af4,_0x294fb4)));if(_0x3acfbd&&!_0x3cae41)return console[_0x34181e(0x102)](_0x34181e(0xf6)),upgradeApp(_0x21325d[_0x34181e(0x10d)],{'yes':_0x21325d['bool'](_0x34181e(0xfc))});if(_0x3cae41)throw CliErrors[_0x34181e(0x10e)](_0x34181e(0xf0),_0x34181e(0xe7)+CLI_BIN_NAME+_0x34181e(0xe4));}if(_0xeb3e26){const _0x3472a3=validateAppcode(_0xeb3e26);if(!_0x3472a3['valid'])throw CliErrors['validation'](_0x3472a3[_0x34181e(0xf9)]);writeInitConfig(_0xc7149,[syntheticApp(_0xeb3e26)],_0x2fbb02);return;}if(_0x21325d[_0x34181e(0x10d)])throw CliErrors['flagMissing']('appcode','Usage:\x20'+CLI_BIN_NAME+_0x34181e(0xe0));const _0x12c2c7=getCookie(),_0x50b2e=await selectMultipleApps(_0x12c2c7),_0x4eb4b6=_0x50b2e===_0x34181e(0xef)?[syntheticApp(await promptCustomAppcode())]:_0x50b2e;writeInitConfig(_0xc7149,_0x4eb4b6,_0x2fbb02);}const initFlags=[{'name':a74_0xedeeb(0x109),'type':'boolean','description':a74_0xedeeb(0xe1),'default':![]},{'name':a74_0xedeeb(0xe2),'type':'string','description':a74_0xedeeb(0xec),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0xedeeb(0x105),'type':'string','description':a74_0xedeeb(0xee)},{'name':'project','type':a74_0xedeeb(0xfb),'description':a74_0xedeeb(0x10f),'default':![]},{'name':a74_0xedeeb(0xfc),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a74_0xedeeb(0xfa),'description':a74_0xedeeb(0x100),'risk':a74_0xedeeb(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x127090){return await runSmartInit(_0x127090),{'ok':!![]};}}];
1
+ const a75_0x327edc=a75_0xf89e;(function(_0x1bf73e,_0x10656d){const _0x275cba=a75_0xf89e,_0x1bb291=_0x1bf73e();while(!![]){try{const _0x1cead1=parseInt(_0x275cba(0x1dc))/0x1*(parseInt(_0x275cba(0x1ef))/0x2)+-parseInt(_0x275cba(0x1d4))/0x3+-parseInt(_0x275cba(0x1f9))/0x4+-parseInt(_0x275cba(0x1dd))/0x5+-parseInt(_0x275cba(0x1fb))/0x6+parseInt(_0x275cba(0x1d6))/0x7*(-parseInt(_0x275cba(0x1eb))/0x8)+parseInt(_0x275cba(0x1f8))/0x9*(parseInt(_0x275cba(0x1ed))/0xa);if(_0x1cead1===_0x10656d)break;else _0x1bb291['push'](_0x1bb291['shift']());}catch(_0x24645e){_0x1bb291['push'](_0x1bb291['shift']());}}}(a75_0x5f36,0x4f16f));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a75_0x5f36(){const _0x5665b3=['boolean','149174ruLyDL','log','appCode','yes','write','run','valid','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','20139183AKPJca','2258904zPcdbt','bool','814590YHIpLD','\x0a✓\x20Successfully\x20initialized\x20','production','1497144HCNPEK','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','261177oHtUPg','env','map','defaultApp','appcode','global','1HvSstp','3011145bZmHFk','Target\x20environment','\x20\x20Config:\x20','\x20\x20Apps:\x20','nonInteractive','custom','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','join','App\x20code\x20to\x20initialize\x20with','string','检测到旧配置文件,正在自动升级...\x0a','init','project','str','40LhmaFH','\x20\x20Default:\x20','10zittzI'];a75_0x5f36=function(){return _0x5665b3;};return a75_0x5f36();}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 a75_0xf89e(_0x2a053a,_0x46c7a9){_0x2a053a=_0x2a053a-0x1d2;const _0x5f3664=a75_0x5f36();let _0xf89eb1=_0x5f3664[_0x2a053a];return _0xf89eb1;}function syntheticApp(_0x3255f8){return{'appCode':_0x3255f8,'appName':_0x3255f8};}function writeInitConfig(_0x4f2ff2,_0x4451df,_0x32b755){const _0x13ffd2=a75_0xf89e,_0x42d4b7=resolveWriteConfigPath(_0x4f2ff2),_0x2bfdc3=buildCanonicalProjectConfig({},{'appCodes':_0x4451df[_0x13ffd2(0x1d8)](_0x5e515e=>_0x5e515e[_0x13ffd2(0x1f1)]),'env':_0x32b755,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x42d4b7,_0x2bfdc3);const _0xf42dfe=_0x4f2ff2===_0x13ffd2(0x1db)?_0x13ffd2(0x1db):_0x13ffd2(0x1e9);console['log'](_0x13ffd2(0x1d2)+_0xf42dfe+'\x20config'),console[_0x13ffd2(0x1f0)](_0x13ffd2(0x1e0)+_0x4451df[_0x13ffd2(0x1d8)](_0x450126=>_0x450126[_0x13ffd2(0x1f1)])[_0x13ffd2(0x1e4)](',\x20')),console[_0x13ffd2(0x1f0)](_0x13ffd2(0x1ec)+_0x2bfdc3[_0x13ffd2(0x1d9)]),console[_0x13ffd2(0x1f0)]('\x20\x20Env:\x20'+_0x2bfdc3[_0x13ffd2(0x1d7)]),console[_0x13ffd2(0x1f0)](_0x13ffd2(0x1df)+_0x42d4b7);}async function runSmartInit(_0x3931e4){const _0x2b12ef=a75_0xf89e,_0x21be50=process['cwd'](),_0x5534eb=_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1db))?'global':'project',_0x9d1956=_0x3931e4[_0x2b12ef(0x1ea)](_0x2b12ef(0x1d7))||_0x2b12ef(0x1d3),_0x551d09=_0x3931e4[_0x2b12ef(0x1ea)](_0x2b12ef(0x1da))||undefined,_0x488c98=_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1e9));if(_0x488c98){const {initConfig:_0x352ce1}=await import('../../commands/project/init.js');return _0x352ce1({'appcode':_0x551d09,'env':_0x9d1956,'autoYes':_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1f2))});}if(_0x5534eb===_0x2b12ef(0x1e9)){const _0x302270=existsSync(resolve(_0x21be50,NEW_CONFIG_NAME)),_0x299fff=LEGACY_CONFIG_NAMES['some'](_0xe83621=>existsSync(resolve(_0x21be50,_0xe83621)));if(_0x299fff&&!_0x302270)return console['log'](_0x2b12ef(0x1e7)),upgradeApp(_0x3931e4['nonInteractive'],{'yes':_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1f2))});if(_0x302270)throw CliErrors['validation'](_0x2b12ef(0x1f6),'Use\x20`'+CLI_BIN_NAME+_0x2b12ef(0x1f7));}if(_0x551d09){const _0xd6f61=validateAppcode(_0x551d09);if(!_0xd6f61[_0x2b12ef(0x1f5)])throw CliErrors['validation'](_0xd6f61['message']);writeInitConfig(_0x5534eb,[syntheticApp(_0x551d09)],_0x9d1956);return;}if(_0x3931e4[_0x2b12ef(0x1e1)])throw CliErrors['flagMissing']('appcode','Usage:\x20'+CLI_BIN_NAME+_0x2b12ef(0x1e3));const _0x6a354d=getCookie(),_0x8da4ce=await selectMultipleApps(_0x6a354d),_0x36d56b=_0x8da4ce===_0x2b12ef(0x1e2)?[syntheticApp(await promptCustomAppcode())]:_0x8da4ce;writeInitConfig(_0x5534eb,_0x36d56b,_0x9d1956);}const initFlags=[{'name':a75_0x327edc(0x1db),'type':a75_0x327edc(0x1ee),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a75_0x327edc(0x1d7),'type':'string','description':a75_0x327edc(0x1de),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a75_0x327edc(0x1da),'type':a75_0x327edc(0x1e6),'description':a75_0x327edc(0x1e5)},{'name':a75_0x327edc(0x1e9),'type':a75_0x327edc(0x1ee),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a75_0x327edc(0x1f2),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a75_0x327edc(0x1e8),'command':a75_0x327edc(0x1f4),'description':a75_0x327edc(0x1d5),'risk':a75_0x327edc(0x1f3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x345c9b){return await runSmartInit(_0x345c9b),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x538f63,_0x3fc84a){const _0x26eab1=a75_0x1339,_0x398721=_0x538f63();while(!![]){try{const _0x1f062e=-parseInt(_0x26eab1(0x178))/0x1*(parseInt(_0x26eab1(0x173))/0x2)+-parseInt(_0x26eab1(0x172))/0x3+parseInt(_0x26eab1(0x175))/0x4+parseInt(_0x26eab1(0x177))/0x5*(parseInt(_0x26eab1(0x179))/0x6)+-parseInt(_0x26eab1(0x17a))/0x7*(parseInt(_0x26eab1(0x17b))/0x8)+parseInt(_0x26eab1(0x174))/0x9*(parseInt(_0x26eab1(0x171))/0xa)+parseInt(_0x26eab1(0x176))/0xb;if(_0x1f062e===_0x3fc84a)break;else _0x398721['push'](_0x398721['shift']());}catch(_0xbbff92){_0x398721['push'](_0x398721['shift']());}}}(a75_0x4fea,0xe83b5));function a75_0x4fea(){const _0x3dee9f=['7415682dYsXir','42LtrnZp','609032RGRlZY','2330eCqyyw','3949959lSBucF','2pfKBmo','42111rpNHgl','6788256CSIOqt','2231284TnGRcQ','5NjaVVK','1501414lLvYSY'];a75_0x4fea=function(){return _0x3dee9f;};return a75_0x4fea();}import{issueReport}from'../../commands/issue/report.js';function a75_0x1339(_0x3ea4ff,_0x4845ea){_0x3ea4ff=_0x3ea4ff-0x171;const _0x4fea04=a75_0x4fea();let _0x133978=_0x4fea04[_0x3ea4ff];return _0x133978;}export const issueDefinitions=[issueReport];
1
+ function a76_0x5d2d(){const _0x13e97b=['1055380hIFFCM','353239MwImcU','952505SDpLaA','90wTTHPK','937824KawjXP','367012UfFbgg','1350vfURsA','570552bdlCjB','5838DdXgsW'];a76_0x5d2d=function(){return _0x13e97b;};return a76_0x5d2d();}function a76_0xbb1c(_0x51401d,_0x4980ef){_0x51401d=_0x51401d-0x11d;const _0x5d2de3=a76_0x5d2d();let _0xbb1c4b=_0x5d2de3[_0x51401d];return _0xbb1c4b;}(function(_0x5a350e,_0x739eaa){const _0x1fedc0=a76_0xbb1c,_0x3f7384=_0x5a350e();while(!![]){try{const _0x2a2f2b=-parseInt(_0x1fedc0(0x125))/0x1+-parseInt(_0x1fedc0(0x120))/0x2+-parseInt(_0x1fedc0(0x122))/0x3+-parseInt(_0x1fedc0(0x124))/0x4+-parseInt(_0x1fedc0(0x11d))/0x5+-parseInt(_0x1fedc0(0x121))/0x6*(-parseInt(_0x1fedc0(0x123))/0x7)+-parseInt(_0x1fedc0(0x11f))/0x8*(-parseInt(_0x1fedc0(0x11e))/0x9);if(_0x2a2f2b===_0x739eaa)break;else _0x3f7384['push'](_0x3f7384['shift']());}catch(_0x425bff){_0x3f7384['push'](_0x3f7384['shift']());}}}(a76_0x5d2d,0x2b9df));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a76_0x114c0f=a76_0x191f;(function(_0x17c4fb,_0x35bf6d){const _0x1afa33=a76_0x191f,_0xc3a50=_0x17c4fb();while(!![]){try{const _0x80b9ee=parseInt(_0x1afa33(0x133))/0x1+-parseInt(_0x1afa33(0x13e))/0x2+-parseInt(_0x1afa33(0x12f))/0x3*(-parseInt(_0x1afa33(0x13d))/0x4)+parseInt(_0x1afa33(0x13c))/0x5+-parseInt(_0x1afa33(0x12a))/0x6+-parseInt(_0x1afa33(0x141))/0x7*(-parseInt(_0x1afa33(0x127))/0x8)+-parseInt(_0x1afa33(0x148))/0x9*(-parseInt(_0x1afa33(0x131))/0xa);if(_0x80b9ee===_0x35bf6d)break;else _0xc3a50['push'](_0xc3a50['shift']());}catch(_0x3a848e){_0xc3a50['push'](_0xc3a50['shift']());}}}(a76_0x26ea,0xc3d8d));function a76_0x26ea(){const _0x558703=['write','filter','descriptionSource:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','411930JbqqnS','1684kjustR','880208soNVDO','One-line\x20issue\x20summary','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','2224327IHeSFz','Failed\x20to\x20report\x20platform\x20issue:\x20','Issue\x20description\x20cannot\x20be\x20empty.','descriptionSource','inline','POST','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','18YSPHzO','Issue\x20description\x20file\x20is\x20empty:\x20','cwd','report','trim','description-file','title','message','descriptionFilePath','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','join','flagMissing','issue.description','8tPzLCm','Platform\x20issue\x20reported','descriptionFile:\x20','7562448daIUpS','validation','issue.title','string','length','2841wkergN','str','5637850cdKsON','file','576297gOAWmc','File\x20not\x20found:\x20','description'];a76_0x26ea=function(){return _0x558703;};return a76_0x26ea();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a76_0x191f(_0x3a009a,_0x275dba){_0x3a009a=_0x3a009a-0x122;const _0x26ea36=a76_0x26ea();let _0x191fc8=_0x26ea36[_0x3a009a];return _0x191fc8;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a76_0x114c0f(0x14d);export const issueReport={'service':'issue','command':a76_0x114c0f(0x14b),'description':a76_0x114c0f(0x139),'risk':a76_0x114c0f(0x136),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a76_0x114c0f(0x14e),'type':a76_0x114c0f(0x12d),'required':!![],'description':a76_0x114c0f(0x13f)},{'name':'description','type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0x114c0f(0x12d),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x28286a){const _0x12087a=a76_0x114c0f,_0x5234d9=_0x28286a['str']('title')['trim'](),_0xf112ad=_0x28286a[_0x12087a(0x130)](_0x12087a(0x135))['trim'](),_0x5a3b87=_0x28286a[_0x12087a(0x130)](DESCRIPTION_FILE_FLAG)[_0x12087a(0x14c)]();if(!_0x5234d9)throw CliErrors[_0x12087a(0x125)](_0x12087a(0x14e),_0x12087a(0x123));const _0x39c10e=_0xf112ad[_0x12087a(0x12e)]>0x0,_0x25b693=_0x5a3b87[_0x12087a(0x12e)]>0x0;if(_0x39c10e===_0x25b693)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x12087a(0x13b));if(_0x25b693){const _0x1a0a59=resolve(process[_0x12087a(0x14a)](),_0x5a3b87);if(!existsSync(_0x1a0a59))throw CliErrors[_0x12087a(0x12b)](_0x12087a(0x134)+_0x1a0a59);}},async 'dryRun'(_0x562acd){const _0x2ee734=a76_0x114c0f,_0x4bb46f=await prepareIssueReport(_0x562acd);return{'method':_0x2ee734(0x146),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4bb46f[_0x2ee734(0x14e)],'issue.description':_0x4bb46f[_0x2ee734(0x135)]}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x2ee734(0x138)+_0x4bb46f['descriptionSource'],_0x4bb46f[_0x2ee734(0x122)]?_0x2ee734(0x129)+_0x4bb46f[_0x2ee734(0x122)]:null][_0x2ee734(0x137)](Boolean)[_0x2ee734(0x124)]('\x0a')};},async 'execute'(_0x23d73b){const _0xcdf951=a76_0x114c0f,_0x55bdc1=await prepareIssueReport(_0x23d73b);try{await sendPlatformIssueCollectLog({'title':_0x55bdc1['title'],'description':_0x55bdc1[_0xcdf951(0x135)]});}catch(_0x239256){throw CliErrors['apiError'](_0xcdf951(0x142)+(_0x239256 instanceof Error?_0x239256[_0xcdf951(0x14f)]:String(_0x239256)),_0xcdf951(0x140));}return{'ok':!![],'message':_0xcdf951(0x128),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0xcdf951(0x12c),_0xcdf951(0x126)],'issue':{'title':_0x55bdc1[_0xcdf951(0x14e)],'descriptionLength':_0x55bdc1[_0xcdf951(0x135)][_0xcdf951(0x12e)],'descriptionSource':_0x55bdc1[_0xcdf951(0x144)],..._0x55bdc1[_0xcdf951(0x122)]?{'descriptionFile':_0x55bdc1[_0xcdf951(0x122)]}:{}}}};}};async function prepareIssueReport(_0x58fd42){const _0x4f122a=a76_0x114c0f,_0x74f66c=_0x58fd42['str'](_0x4f122a(0x14e))[_0x4f122a(0x14c)](),_0x35f5a6=_0x58fd42[_0x4f122a(0x130)](_0x4f122a(0x135)),_0x5eb528=_0x58fd42[_0x4f122a(0x130)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5eb528){const _0x5475a6=_0x35f5a6;if(!_0x5475a6[_0x4f122a(0x14c)]())throw CliErrors[_0x4f122a(0x12b)](_0x4f122a(0x143),_0x4f122a(0x147));return{'title':_0x74f66c,'description':_0x5475a6,'descriptionSource':_0x4f122a(0x145)};}const _0x68f549=resolve(process['cwd'](),_0x5eb528),_0x503453=await readFile(_0x68f549,_0x4f122a(0x13a));if(!_0x503453[_0x4f122a(0x14c)]())throw CliErrors[_0x4f122a(0x12b)](_0x4f122a(0x149)+_0x68f549,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');return{'title':_0x74f66c,'description':_0x503453,'descriptionSource':_0x4f122a(0x132),'descriptionFilePath':_0x68f549};}
1
+ function a77_0x51ed(){const _0xb8a3f=['utf8','9259446UWQBNH','otel://','13011jtLcTV','str','filter','description-file','inline','2EmhsaE','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','file','title','message','3936210KyKWPC','520bfRLOC','3107480JIrygx','report','Issue\x20description\x20file\x20is\x20empty:\x20','cwd','Platform\x20issue\x20reported','204337KfRyKI','apiError','88FtaRYT','descriptionSource','File\x20not\x20found:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','713311VEJkLT','issue.title','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Failed\x20to\x20report\x20platform\x20issue:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','POST','description','One-line\x20issue\x20summary','280uLFARx','compress','1592406mMdCcd','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Issue\x20description\x20cannot\x20be\x20empty.','flagMissing','write','length','descriptionFile:\x20','validation','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','string','descriptionFilePath','join','trim'];a77_0x51ed=function(){return _0xb8a3f;};return a77_0x51ed();}const a77_0x528748=a77_0x3616;(function(_0x4afae2,_0x3f1bad){const _0x2e4bab=a77_0x3616,_0x2a2f99=_0x4afae2();while(!![]){try{const _0x45e775=-parseInt(_0x2e4bab(0x1ae))/0x1*(-parseInt(_0x2e4bab(0x19c))/0x2)+parseInt(_0x2e4bab(0x197))/0x3*(-parseInt(_0x2e4bab(0x1a2))/0x4)+parseInt(_0x2e4bab(0x1a1))/0x5+parseInt(_0x2e4bab(0x195))/0x6+parseInt(_0x2e4bab(0x1a8))/0x7*(parseInt(_0x2e4bab(0x1b6))/0x8)+-parseInt(_0x2e4bab(0x1b8))/0x9+parseInt(_0x2e4bab(0x1a3))/0xa*(-parseInt(_0x2e4bab(0x1aa))/0xb);if(_0x45e775===_0x3f1bad)break;else _0x2a2f99['push'](_0x2a2f99['shift']());}catch(_0x55dea3){_0x2a2f99['push'](_0x2a2f99['shift']());}}}(a77_0x51ed,0xccc5f));function a77_0x3616(_0x303348,_0x1fbaa9){_0x303348=_0x303348-0x18e;const _0x51ed74=a77_0x51ed();let _0x361674=_0x51ed74[_0x303348];return _0x361674;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a77_0x528748(0x19a);export const issueReport={'service':'issue','command':a77_0x528748(0x1a4),'description':a77_0x528748(0x1b9),'risk':a77_0x528748(0x1bc),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a77_0x528748(0x1b7),'flags':[{'name':a77_0x528748(0x19f),'type':a77_0x528748(0x190),'required':!![],'description':a77_0x528748(0x1b5)},{'name':a77_0x528748(0x1b4),'type':a77_0x528748(0x190),'description':a77_0x528748(0x18f)},{'name':DESCRIPTION_FILE_FLAG,'type':a77_0x528748(0x190),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x381c19){const _0x4515ca=a77_0x528748,_0x2b615d=_0x381c19[_0x4515ca(0x198)]('title')[_0x4515ca(0x193)](),_0x5422c6=_0x381c19[_0x4515ca(0x198)]('description')[_0x4515ca(0x193)](),_0x109749=_0x381c19[_0x4515ca(0x198)](DESCRIPTION_FILE_FLAG)[_0x4515ca(0x193)]();if(!_0x2b615d)throw CliErrors[_0x4515ca(0x1bb)](_0x4515ca(0x19f),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x3270ee=_0x5422c6[_0x4515ca(0x1bd)]>0x0,_0xa78857=_0x109749[_0x4515ca(0x1bd)]>0x0;if(_0x3270ee===_0xa78857)throw CliErrors[_0x4515ca(0x18e)](_0x4515ca(0x19d),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0xa78857){const _0x1145fd=resolve(process[_0x4515ca(0x1a6)](),_0x109749);if(!existsSync(_0x1145fd))throw CliErrors[_0x4515ca(0x18e)](_0x4515ca(0x1ac)+_0x1145fd);}},async 'dryRun'(_0x193772){const _0x36ce7c=a77_0x528748,_0x4d02d9=await prepareIssueReport(_0x193772);return{'method':_0x36ce7c(0x1b3),'url':_0x36ce7c(0x196)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4d02d9['title'],'issue.description':_0x4d02d9['description']}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x4d02d9[_0x36ce7c(0x1ab)],_0x4d02d9['descriptionFilePath']?_0x36ce7c(0x1be)+_0x4d02d9[_0x36ce7c(0x191)]:null][_0x36ce7c(0x199)](Boolean)[_0x36ce7c(0x192)]('\x0a')};},async 'execute'(_0x2accb4){const _0x5d1673=a77_0x528748,_0xc0ee2a=await prepareIssueReport(_0x2accb4);try{await sendPlatformIssueCollectLog({'title':_0xc0ee2a[_0x5d1673(0x19f)],'description':_0xc0ee2a[_0x5d1673(0x1b4)]});}catch(_0x577b0f){throw CliErrors[_0x5d1673(0x1a9)](_0x5d1673(0x1b1)+(_0x577b0f instanceof Error?_0x577b0f[_0x5d1673(0x1a0)]:String(_0x577b0f)),_0x5d1673(0x1ad));}return{'ok':!![],'message':_0x5d1673(0x1a7),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x5d1673(0x1af),'issue.description'],'issue':{'title':_0xc0ee2a[_0x5d1673(0x19f)],'descriptionLength':_0xc0ee2a[_0x5d1673(0x1b4)][_0x5d1673(0x1bd)],'descriptionSource':_0xc0ee2a[_0x5d1673(0x1ab)],..._0xc0ee2a['descriptionFilePath']?{'descriptionFile':_0xc0ee2a[_0x5d1673(0x191)]}:{}}}};}};async function prepareIssueReport(_0x18ceba){const _0x51404e=a77_0x528748,_0x456729=_0x18ceba[_0x51404e(0x198)](_0x51404e(0x19f))['trim'](),_0x2af09b=_0x18ceba['str'](_0x51404e(0x1b4)),_0x46889e=_0x18ceba[_0x51404e(0x198)](DESCRIPTION_FILE_FLAG)[_0x51404e(0x193)]();if(!_0x46889e){const _0xc47dbe=_0x2af09b;if(!_0xc47dbe[_0x51404e(0x193)]())throw CliErrors['validation'](_0x51404e(0x1ba),_0x51404e(0x1b0));return{'title':_0x456729,'description':_0xc47dbe,'descriptionSource':_0x51404e(0x19b)};}const _0x3712f1=resolve(process[_0x51404e(0x1a6)](),_0x46889e),_0xdd1016=await readFile(_0x3712f1,_0x51404e(0x194));if(!_0xdd1016[_0x51404e(0x193)]())throw CliErrors['validation'](_0x51404e(0x1a5)+_0x3712f1,_0x51404e(0x1b2));return{'title':_0x456729,'description':_0xdd1016,'descriptionSource':_0x51404e(0x19e),'descriptionFilePath':_0x3712f1};}
@@ -1 +1 @@
1
- function a77_0x76e5(_0x42c6f5,_0x554b7e){_0x42c6f5=_0x42c6f5-0x103;const _0x4c4c57=a77_0x4c4c();let _0x76e550=_0x4c4c57[_0x42c6f5];return _0x76e550;}function a77_0x4c4c(){const _0x562244=['196329yxeNzB','en-US','stringify','command','1247982YOCrmY','*\x20Logs\x20cleared','*\x20Lovrabet\x20CLI\x20logs:\x0a','436571rkgPtq','\x20\x20\x20Time:\x20','read','*\x20No\x20logs\x20found','level','warn','View\x20command\x20history\x20logs','logs','keys','20MVmzYl','log','timestamp','clearLogs','duration','details','447092GqifoW','90rAZuFe','3588080ZWtSYR','forEach','write','\x20\x20\x20Duration:\x20','2KNDwRw','toLocaleString','4483128FuEwvN','success','error','18CtgLFm','26179890ApXpXc','show'];a77_0x4c4c=function(){return _0x562244;};return a77_0x4c4c();}const a77_0x27e125=a77_0x76e5;(function(_0x227ef9,_0x519cf6){const _0x50a5d2=a77_0x76e5,_0xadb05a=_0x227ef9();while(!![]){try{const _0x362e6d=-parseInt(_0x50a5d2(0x111))/0x1*(parseInt(_0x50a5d2(0x126))/0x2)+-parseInt(_0x50a5d2(0x10e))/0x3+-parseInt(_0x50a5d2(0x120))/0x4*(parseInt(_0x50a5d2(0x11a))/0x5)+-parseInt(_0x50a5d2(0x121))/0x6*(parseInt(_0x50a5d2(0x10a))/0x7)+parseInt(_0x50a5d2(0x104))/0x8+parseInt(_0x50a5d2(0x107))/0x9*(-parseInt(_0x50a5d2(0x122))/0xa)+parseInt(_0x50a5d2(0x108))/0xb;if(_0x362e6d===_0x519cf6)break;else _0xadb05a['push'](_0xadb05a['shift']());}catch(_0x27e0f1){_0xadb05a['push'](_0xadb05a['shift']());}}}(a77_0x4c4c,0x7aa83));import{logger}from'../../utils/logger.js';function printLogs(_0x571ba1){const _0x5e0ce8=a77_0x76e5;if(_0x571ba1['length']===0x0){console[_0x5e0ce8(0x11b)](_0x5e0ce8(0x114));return;}console[_0x5e0ce8(0x11b)](_0x5e0ce8(0x110)),_0x571ba1[_0x5e0ce8(0x123)]((_0x59fe5c,_0x3402db)=>{const _0x2b2ac9=_0x5e0ce8,_0x4cda52=new Date(_0x59fe5c[_0x2b2ac9(0x11c)])[_0x2b2ac9(0x103)](_0x2b2ac9(0x10b)),_0x3509bd=_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x105)?'√':_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x106)?'×':_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x116)?'!':'i';console['log'](_0x3402db+0x1+'.\x20'+_0x3509bd+'\x20['+_0x59fe5c[_0x2b2ac9(0x10d)]+']\x20'+_0x59fe5c['message']),console[_0x2b2ac9(0x11b)](_0x2b2ac9(0x112)+_0x4cda52),_0x59fe5c['duration']&&console['log'](_0x2b2ac9(0x125)+_0x59fe5c[_0x2b2ac9(0x11e)]+'ms'),_0x59fe5c[_0x2b2ac9(0x11f)]&&Object[_0x2b2ac9(0x119)](_0x59fe5c['details'])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x2b2ac9(0x10c)](_0x59fe5c[_0x2b2ac9(0x11f)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a77_0x27e125(0x118),'command':a77_0x27e125(0x109),'description':a77_0x27e125(0x117),'risk':a77_0x27e125(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x285709){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a77_0x27e125(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1afa58){const _0x570de7=a77_0x27e125;return logger[_0x570de7(0x11d)](),console['log'](_0x570de7(0x10f)),{'ok':!![]};}}];
1
+ const a78_0x46e160=a78_0x40e6;(function(_0x4de53c,_0x367b42){const _0x5d5f94=a78_0x40e6,_0x550348=_0x4de53c();while(!![]){try{const _0x281535=-parseInt(_0x5d5f94(0x9f))/0x1+parseInt(_0x5d5f94(0xb1))/0x2*(-parseInt(_0x5d5f94(0xb8))/0x3)+-parseInt(_0x5d5f94(0x9e))/0x4*(-parseInt(_0x5d5f94(0xb4))/0x5)+parseInt(_0x5d5f94(0xab))/0x6+-parseInt(_0x5d5f94(0xa6))/0x7+-parseInt(_0x5d5f94(0xb6))/0x8+parseInt(_0x5d5f94(0xa0))/0x9;if(_0x281535===_0x367b42)break;else _0x550348['push'](_0x550348['shift']());}catch(_0x17d05e){_0x550348['push'](_0x550348['shift']());}}}(a78_0x14e2,0x4e0b2));function a78_0x40e6(_0xeea17c,_0x268e78){_0xeea17c=_0xeea17c-0x9a;const _0x14e27a=a78_0x14e2();let _0x40e6a0=_0x14e27a[_0xeea17c];return _0x40e6a0;}import{logger}from'../../utils/logger.js';function printLogs(_0x5e97c3){const _0x491a87=a78_0x40e6;if(_0x5e97c3[_0x491a87(0xad)]===0x0){console[_0x491a87(0xa5)](_0x491a87(0xae));return;}console[_0x491a87(0xa5)](_0x491a87(0xaa)),_0x5e97c3[_0x491a87(0xb5)]((_0x27866b,_0x16e1a9)=>{const _0x527961=_0x491a87,_0x38bb6d=new Date(_0x27866b[_0x527961(0xa2)])[_0x527961(0xa7)](_0x527961(0xb3)),_0x2ceb70=_0x27866b[_0x527961(0xa8)]==='success'?'√':_0x27866b[_0x527961(0xa8)]==='error'?'×':_0x27866b[_0x527961(0xa8)]==='warn'?'!':'i';console['log'](_0x16e1a9+0x1+'.\x20'+_0x2ceb70+'\x20['+_0x27866b[_0x527961(0xb7)]+']\x20'+_0x27866b['message']),console['log'](_0x527961(0x9b)+_0x38bb6d),_0x27866b[_0x527961(0x9d)]&&console[_0x527961(0xa5)]('\x20\x20\x20Duration:\x20'+_0x27866b[_0x527961(0x9d)]+'ms'),_0x27866b[_0x527961(0xb0)]&&Object['keys'](_0x27866b['details'])[_0x527961(0xad)]>0x0&&console['log'](_0x527961(0xac)+JSON[_0x527961(0xa1)](_0x27866b[_0x527961(0xb0)],null,0x2)),console[_0x527961(0xa5)]('');});}export const logsDefinitions=[{'service':a78_0x46e160(0x9a),'command':a78_0x46e160(0xaf),'description':a78_0x46e160(0x9c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1eb39b){const _0x3020cc=a78_0x46e160;return printLogs(logger[_0x3020cc(0xb2)]()),{'ok':!![]};}},{'service':a78_0x46e160(0x9a),'command':'clear','description':a78_0x46e160(0xa9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x756fb1){const _0x3ee4f5=a78_0x46e160;return logger[_0x3ee4f5(0xa3)](),console[_0x3ee4f5(0xa5)](_0x3ee4f5(0xa4)),{'ok':!![]};}}];function a78_0x14e2(){const _0x332ab9=['en-US','985PdtHzy','forEach','5003768yftKTA','command','102fejvyq','logs','\x20\x20\x20Time:\x20','View\x20command\x20history\x20logs','duration','292KgylCZ','231256sEOaTU','13302243lxbHWL','stringify','timestamp','clearLogs','*\x20Logs\x20cleared','log','3610173ZmkvGI','toLocaleString','level','Clear\x20command\x20history\x20logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','1801572lcDaon','\x20\x20\x20Details:\x20','length','*\x20No\x20logs\x20found','show','details','5914JAmHtS','readLogs'];a78_0x14e2=function(){return _0x332ab9;};return a78_0x14e2();}
@@ -1 +1 @@
1
- (function(_0x2c8eac,_0x1418a1){const _0x1c89a5=a78_0x333d,_0x573316=_0x2c8eac();while(!![]){try{const _0x9ceb30=-parseInt(_0x1c89a5(0xe9))/0x1*(-parseInt(_0x1c89a5(0xe0))/0x2)+-parseInt(_0x1c89a5(0xe3))/0x3*(-parseInt(_0x1c89a5(0xe1))/0x4)+parseInt(_0x1c89a5(0xe8))/0x5*(parseInt(_0x1c89a5(0xe5))/0x6)+parseInt(_0x1c89a5(0xe6))/0x7*(parseInt(_0x1c89a5(0xec))/0x8)+parseInt(_0x1c89a5(0xea))/0x9*(-parseInt(_0x1c89a5(0xe4))/0xa)+-parseInt(_0x1c89a5(0xe7))/0xb*(parseInt(_0x1c89a5(0xe2))/0xc)+parseInt(_0x1c89a5(0xeb))/0xd;if(_0x9ceb30===_0x1418a1)break;else _0x573316['push'](_0x573316['shift']());}catch(_0x4f80e6){_0x573316['push'](_0x573316['shift']());}}}(a78_0x349e,0x3e111));function a78_0x333d(_0x32063e,_0x2477dd){_0x32063e=_0x32063e-0xe0;const _0x349e68=a78_0x349e();let _0x333de0=_0x349e68[_0x32063e];return _0x333de0;}function a78_0x349e(){const _0x2b413a=['13049zpmlAI','6354EdeAws','2811744cmUlMg','349656cOhEwR','4hDshUR','328JSkhLk','216cSZkEA','15459JATgPM','4670OhDmFW','1134582GYUonL','14haHWfA','218482erVgsq','5lNxBnl'];a78_0x349e=function(){return _0x2b413a;};return a78_0x349e();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x348f31,_0x213352){const _0x50c543=a79_0x2785,_0x250994=_0x348f31();while(!![]){try{const _0x2696ba=parseInt(_0x50c543(0x144))/0x1*(parseInt(_0x50c543(0x140))/0x2)+parseInt(_0x50c543(0x146))/0x3*(-parseInt(_0x50c543(0x13e))/0x4)+-parseInt(_0x50c543(0x148))/0x5+parseInt(_0x50c543(0x145))/0x6+parseInt(_0x50c543(0x142))/0x7*(-parseInt(_0x50c543(0x141))/0x8)+-parseInt(_0x50c543(0x13f))/0x9*(parseInt(_0x50c543(0x143))/0xa)+parseInt(_0x50c543(0x147))/0xb;if(_0x2696ba===_0x213352)break;else _0x250994['push'](_0x250994['shift']());}catch(_0x42888a){_0x250994['push'](_0x250994['shift']());}}}(a79_0x4b22,0xdd5d2));function a79_0x4b22(){const _0x533092=['11347pFQWQt','610730WOSEAr','1606dpJFMR','9130464vLeWCI','30gKyZFB','19736728GnxOFy','7994080IRGeso','200308wJYRCA','45MiaGJz','578KFDndE','2312SSFHpT'];a79_0x4b22=function(){return _0x533092;};return a79_0x4b22();}function a79_0x2785(_0x25ddee,_0x428a27){_0x25ddee=_0x25ddee-0x13e;const _0x4b2298=a79_0x4b22();let _0x27853f=_0x4b2298[_0x25ddee];return _0x27853f;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a79_0x648a(_0x4fd1b8,_0x4e3d96){_0x4fd1b8=_0x4fd1b8-0x1cf;const _0x2b4d1f=a79_0x2b4d();let _0x648a56=_0x2b4d1f[_0x4fd1b8];return _0x648a56;}(function(_0x261d9f,_0x3f151a){const _0xa57847=a79_0x648a,_0x2f76af=_0x261d9f();while(!![]){try{const _0x2cde78=-parseInt(_0xa57847(0x1e4))/0x1*(parseInt(_0xa57847(0x1e3))/0x2)+-parseInt(_0xa57847(0x1d8))/0x3+parseInt(_0xa57847(0x1dc))/0x4*(parseInt(_0xa57847(0x1e2))/0x5)+parseInt(_0xa57847(0x1ee))/0x6*(-parseInt(_0xa57847(0x1d9))/0x7)+-parseInt(_0xa57847(0x1df))/0x8+-parseInt(_0xa57847(0x1e1))/0x9+parseInt(_0xa57847(0x1cf))/0xa*(parseInt(_0xa57847(0x1d0))/0xb);if(_0x2cde78===_0x3f151a)break;else _0x2f76af['push'](_0x2f76af['shift']());}catch(_0xb9c4bd){_0x2f76af['push'](_0x2f76af['shift']());}}}(a79_0x2b4d,0xdf1ab));function strWidth(_0x391a57){const _0xfa1086=a79_0x648a;let _0x329146=0x0;for(const _0xb611ca of _0x391a57){_0x329146+=/[\u4e00-\u9fa5]/[_0xfa1086(0x1ea)](_0xb611ca)?0x2:0x1;}return _0x329146;}function a79_0x2b4d(){const _0x4ef6d3=['\x20\x20\x20\x20CSS:\x20','Local','1847992ZdbVMo','Platform','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','4843520lAjeyi','repeat','11088117UoyRSI','5Qizjni','4xBOKfM','736732YUceXt','path','Menu\x20Name','label','length','showOnline','test','map','local','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','6GpYMRc','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','284360QsqryU','2574nOcAbO','online','(unchanged)','\x20\x20No\x20pages\x20to\x20sync.','max','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','join','push','5133783FFWDgK','8260063HpodsS'];a79_0x2b4d=function(){return _0x4ef6d3;};return a79_0x2b4d();}function padRight(_0x2e1078,_0xdaa96a){const _0x41bec4=a79_0x648a,_0x44f601=strWidth(_0x2e1078);return _0x2e1078+'\x20'[_0x41bec4(0x1e0)](Math['max'](0x0,_0xdaa96a-_0x44f601));}export function renderCompareTable(_0xe3527b,_0x3abe4c={}){const _0x5da151=a79_0x648a;if(_0xe3527b[_0x5da151(0x1e8)]===0x0)return'';const _0x42089c=_0x3abe4c[_0x5da151(0x1e9)]??!![],_0x28d13c=Math[_0x5da151(0x1d4)](0x1e,..._0xe3527b[_0x5da151(0x1eb)](_0x2c6d3d=>strWidth(_0x2c6d3d['label']))),_0x4870d4=0x4,_0xf649e0=[],_0x2e6c39='\x20\x20'+padRight(_0x5da151(0x1e6),_0x28d13c),_0x1f9f35=padRight(_0x5da151(0x1db),_0x4870d4),_0x43f6d2=_0x42089c?'\x20\x20'+padRight(_0x5da151(0x1dd),_0x4870d4):'';_0xf649e0[_0x5da151(0x1d7)](_0x2e6c39+'\x20\x20'+_0x1f9f35+(_0x42089c?_0x43f6d2:'')),_0xf649e0[_0x5da151(0x1d7)]('\x20\x20'+'─'['repeat'](_0x28d13c)+'\x20\x20'+'─'[_0x5da151(0x1e0)](_0x4870d4)+(_0x42089c?'\x20\x20'+'─'[_0x5da151(0x1e0)](_0x4870d4):''));for(const _0x36772b of _0xe3527b){const _0x23177d=padRight(_0x36772b[_0x5da151(0x1e7)],_0x28d13c),_0x1baf12=_0x36772b[_0x5da151(0x1ec)]?'✓':'✗',_0xf98a2=padRight(_0x1baf12,_0x4870d4);let _0x4c29f0='\x20\x20'+_0x23177d+'\x20\x20'+_0xf98a2;if(_0x42089c){const _0x3afe62=_0x36772b[_0x5da151(0x1d1)]?'✓':'✗';_0x4c29f0+='\x20\x20'+padRight(_0x3afe62,_0x4870d4);}_0xf649e0[_0x5da151(0x1d7)](_0x4c29f0);}return _0xf649e0['join']('\x0a');}export function renderSyncSummary(_0x3dbe35,_0x4186d9){const _0x335d84=a79_0x648a;if(_0x3dbe35[_0x335d84(0x1e8)]===0x0)return _0x4186d9?_0x335d84(0x1ef):_0x335d84(0x1d3);const _0x703b56=['\x20\x20'+_0x3dbe35[_0x335d84(0x1e8)]+_0x335d84(0x1d5)];for(const _0x4101c2 of _0x3dbe35){_0x703b56[_0x335d84(0x1d7)]('\x20\x20\x20\x20•\x20'+_0x4101c2['label']+'\x20('+_0x4101c2[_0x335d84(0x1e5)]+')');}return _0x703b56[_0x335d84(0x1d6)]('\x0a');}export function renderUpdateSummary(_0x133aac,_0x5d964f){const _0x2386d0=a79_0x648a;if(_0x133aac[_0x2386d0(0x1e8)]===0x0)return _0x2386d0(0x1de);const _0x348592=['\x20\x20'+_0x133aac[_0x2386d0(0x1e8)]+_0x2386d0(0x1ed),'\x20\x20\x20\x20JS:\x20\x20'+(_0x5d964f[0x0]??_0x2386d0(0x1d2)),_0x2386d0(0x1da)+(_0x5d964f[0x1]??_0x2386d0(0x1d2)),'','\x20\x20Affected\x20menus:\x20'+_0x133aac[_0x2386d0(0x1d6)](',\x20')];return _0x348592[_0x2386d0(0x1d6)]('\x0a');}
1
+ (function(_0x46e829,_0x189ef0){const _0x4e5afd=a80_0x4b87,_0x2da76b=_0x46e829();while(!![]){try{const _0x53b9a8=-parseInt(_0x4e5afd(0x1c0))/0x1*(-parseInt(_0x4e5afd(0x1c9))/0x2)+-parseInt(_0x4e5afd(0x1b4))/0x3*(parseInt(_0x4e5afd(0x1ba))/0x4)+parseInt(_0x4e5afd(0x1c7))/0x5+-parseInt(_0x4e5afd(0x1b8))/0x6*(-parseInt(_0x4e5afd(0x1c3))/0x7)+parseInt(_0x4e5afd(0x1bc))/0x8*(-parseInt(_0x4e5afd(0x1cd))/0x9)+-parseInt(_0x4e5afd(0x1b2))/0xa+parseInt(_0x4e5afd(0x1bb))/0xb*(parseInt(_0x4e5afd(0x1c1))/0xc);if(_0x53b9a8===_0x189ef0)break;else _0x2da76b['push'](_0x2da76b['shift']());}catch(_0x2bd571){_0x2da76b['push'](_0x2da76b['shift']());}}}(a80_0x14ad,0x2638d));function strWidth(_0x5b540d){let _0x464954=0x0;for(const _0xd553cb of _0x5b540d){_0x464954+=/[\u4e00-\u9fa5]/['test'](_0xd553cb)?0x2:0x1;}return _0x464954;}function padRight(_0x408c17,_0x5847c7){const _0x39d840=strWidth(_0x408c17);return _0x408c17+'\x20'['repeat'](Math['max'](0x0,_0x5847c7-_0x39d840));}function a80_0x14ad(){const _0x3c9246=['\x20\x20\x20\x20•\x20','join','1388178zyuVks','Local','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','940440PQrKmO','label','18057ExKZaW','(unchanged)','\x20\x20\x20\x20JS:\x20\x20','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','18IOgxGt','max','4bMwNEy','6974UDbUtH','16mulxbI','Platform','push','length','14887EGGMoE','5964hlgtXi','Menu\x20Name','364847PDbbFp','\x20\x20\x20\x20CSS:\x20','map','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','96040rlulUG','repeat','10PumjEd','local'];a80_0x14ad=function(){return _0x3c9246;};return a80_0x14ad();}export function renderCompareTable(_0x4ab871,_0x329f23={}){const _0x2e19d1=a80_0x4b87;if(_0x4ab871[_0x2e19d1(0x1bf)]===0x0)return'';const _0x29d6fc=_0x329f23['showOnline']??!![],_0x31bb42=Math[_0x2e19d1(0x1b9)](0x1e,..._0x4ab871[_0x2e19d1(0x1c5)](_0x125702=>strWidth(_0x125702[_0x2e19d1(0x1b3)]))),_0x1728d7=0x4,_0x56d4a4=[],_0x691460='\x20\x20'+padRight(_0x2e19d1(0x1c2),_0x31bb42),_0x582c43=padRight(_0x2e19d1(0x1ce),_0x1728d7),_0x20e7c0=_0x29d6fc?'\x20\x20'+padRight(_0x2e19d1(0x1bd),_0x1728d7):'';_0x56d4a4['push'](_0x691460+'\x20\x20'+_0x582c43+(_0x29d6fc?_0x20e7c0:'')),_0x56d4a4[_0x2e19d1(0x1be)]('\x20\x20'+'─'[_0x2e19d1(0x1c8)](_0x31bb42)+'\x20\x20'+'─'[_0x2e19d1(0x1c8)](_0x1728d7)+(_0x29d6fc?'\x20\x20'+'─'[_0x2e19d1(0x1c8)](_0x1728d7):''));for(const _0x169730 of _0x4ab871){const _0x3ffec8=padRight(_0x169730[_0x2e19d1(0x1b3)],_0x31bb42),_0x59bd2f=_0x169730[_0x2e19d1(0x1ca)]?'✓':'✗',_0x23d48f=padRight(_0x59bd2f,_0x1728d7);let _0x40f08b='\x20\x20'+_0x3ffec8+'\x20\x20'+_0x23d48f;if(_0x29d6fc){const _0x44aa54=_0x169730['online']?'✓':'✗';_0x40f08b+='\x20\x20'+padRight(_0x44aa54,_0x1728d7);}_0x56d4a4[_0x2e19d1(0x1be)](_0x40f08b);}return _0x56d4a4['join']('\x0a');}function a80_0x4b87(_0x4bf116,_0xade653){_0x4bf116=_0x4bf116-0x1b1;const _0x14adea=a80_0x14ad();let _0x4b8790=_0x14adea[_0x4bf116];return _0x4b8790;}export function renderSyncSummary(_0x3241fa,_0x485b0e){const _0x107866=a80_0x4b87;if(_0x3241fa['length']===0x0)return _0x485b0e?_0x107866(0x1b1):'\x20\x20No\x20pages\x20to\x20sync.';const _0x5bf4c8=['\x20\x20'+_0x3241fa['length']+_0x107866(0x1b7)];for(const _0x3685b8 of _0x3241fa){_0x5bf4c8[_0x107866(0x1be)](_0x107866(0x1cb)+_0x3685b8[_0x107866(0x1b3)]+'\x20('+_0x3685b8['path']+')');}return _0x5bf4c8[_0x107866(0x1cc)]('\x0a');}export function renderUpdateSummary(_0x20ca55,_0xb16a71){const _0x2aa04d=a80_0x4b87;if(_0x20ca55[_0x2aa04d(0x1bf)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x133f3d=['\x20\x20'+_0x20ca55['length']+_0x2aa04d(0x1c6),_0x2aa04d(0x1b6)+(_0xb16a71[0x0]??_0x2aa04d(0x1b5)),_0x2aa04d(0x1c4)+(_0xb16a71[0x1]??_0x2aa04d(0x1b5)),'','\x20\x20Affected\x20menus:\x20'+_0x20ca55[_0x2aa04d(0x1cc)](',\x20')];return _0x133f3d[_0x2aa04d(0x1cc)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1feb02,_0x28dbe3){var _0x57f502=a80_0x1895,_0x107d5c=_0x1feb02();while(!![]){try{var _0x5d5bad=-parseInt(_0x57f502(0x1c9))/0x1+-parseInt(_0x57f502(0x1c6))/0x2*(-parseInt(_0x57f502(0x1c3))/0x3)+-parseInt(_0x57f502(0x1cc))/0x4*(-parseInt(_0x57f502(0x1c8))/0x5)+parseInt(_0x57f502(0x1c4))/0x6*(parseInt(_0x57f502(0x1cb))/0x7)+parseInt(_0x57f502(0x1c5))/0x8*(-parseInt(_0x57f502(0x1c7))/0x9)+-parseInt(_0x57f502(0x1cd))/0xa+parseInt(_0x57f502(0x1ca))/0xb*(parseInt(_0x57f502(0x1c2))/0xc);if(_0x5d5bad===_0x28dbe3)break;else _0x107d5c['push'](_0x107d5c['shift']());}catch(_0x28e74f){_0x107d5c['push'](_0x107d5c['shift']());}}}(a80_0x48d0,0x553f5));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a80_0x48d0(){var _0x26096e=['8968iUlbRm','5803590AqvJJz','456mZCyZQ','19353JqRoUT','6RewYYu','48eFFTPM','214lOAakr','627048Avwttf','235XKiqnj','371785mWtpOq','196702dvMsIJ','1709414OGAyGG'];a80_0x48d0=function(){return _0x26096e;};return a80_0x48d0();}export*from'../../../commands/menu/shared/service.js';function a80_0x1895(_0x20a03c,_0x26e147){_0x20a03c=_0x20a03c-0x1c2;var _0x48d057=a80_0x48d0();var _0x189594=_0x48d057[_0x20a03c];return _0x189594;}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ function a81_0x26aa(_0x20e194,_0x3cf3f8){_0x20e194=_0x20e194-0x86;var _0x111807=a81_0x1118();var _0x26aa54=_0x111807[_0x20e194];return _0x26aa54;}(function(_0x3be86b,_0x5186d0){var _0x46f5ef=a81_0x26aa,_0x4bb62e=_0x3be86b();while(!![]){try{var _0x13af4d=parseInt(_0x46f5ef(0x8f))/0x1*(-parseInt(_0x46f5ef(0x8b))/0x2)+parseInt(_0x46f5ef(0x87))/0x3*(-parseInt(_0x46f5ef(0x86))/0x4)+-parseInt(_0x46f5ef(0x8c))/0x5*(parseInt(_0x46f5ef(0x8e))/0x6)+-parseInt(_0x46f5ef(0x91))/0x7*(parseInt(_0x46f5ef(0x8d))/0x8)+parseInt(_0x46f5ef(0x89))/0x9*(parseInt(_0x46f5ef(0x90))/0xa)+-parseInt(_0x46f5ef(0x88))/0xb+parseInt(_0x46f5ef(0x8a))/0xc;if(_0x13af4d===_0x5186d0)break;else _0x4bb62e['push'](_0x4bb62e['shift']());}catch(_0x2036a9){_0x4bb62e['push'](_0x4bb62e['shift']());}}}(a81_0x1118,0xa5238));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a81_0x1118(){var _0x19da77=['12651518FxGoxS','9wEvncV','42039588JCpiWk','2AQiECg','10UnAOpX','2717824xcLrUj','2064810nfrSEP','606579yTbwMT','130430poVAaQ','7bKrhAl','220876KPKBVc','3ijHKis'];a81_0x1118=function(){return _0x19da77;};return a81_0x1118();}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(_0xcccb96,_0x70a6d6){const _0x5f43c1=a81_0x20e0,_0x25f9cc=_0xcccb96();while(!![]){try{const _0x2b73ac=-parseInt(_0x5f43c1(0x15e))/0x1+parseInt(_0x5f43c1(0x14f))/0x2+-parseInt(_0x5f43c1(0x138))/0x3*(-parseInt(_0x5f43c1(0x15f))/0x4)+-parseInt(_0x5f43c1(0x15b))/0x5+parseInt(_0x5f43c1(0x149))/0x6*(parseInt(_0x5f43c1(0x150))/0x7)+-parseInt(_0x5f43c1(0x14e))/0x8+-parseInt(_0x5f43c1(0x13a))/0x9;if(_0x2b73ac===_0x70a6d6)break;else _0x25f9cc['push'](_0x25f9cc['shift']());}catch(_0x32301b){_0x25f9cc['push'](_0x25f9cc['shift']());}}}(a81_0x521d,0x7afbb));import a81_0x4f3355 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x3a2df9 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0xf4682e){const _0x2b2622=a81_0x20e0;return _0xf4682e[_0x2b2622(0x140)](_0x5b8127=>{const _0x1d7e95=_0x2b2622;if(_0x5b8127?.['name']===_0x1d7e95(0x13f))throw CliErrors[_0x1d7e95(0x159)]('Cancelled.');throw _0x5b8127;});}export function startSpinner(_0x3d24e3){const _0x18721b=a81_0x20e0;return a81_0x3a2df9({'text':_0x3d24e3,'color':_0x18721b(0x152)})[_0x18721b(0x157)]();}export function stopSpinner(_0x19110d,_0x4f3b5a,_0x5cbb01){const _0x8fd88f=a81_0x20e0;_0x5cbb01?_0x19110d[_0x8fd88f(0x133)](_0x4f3b5a):_0x19110d[_0x8fd88f(0x13d)](_0x4f3b5a);}export async function askConfirm(_0x38cd2b){return onCancel(confirm({'message':_0x38cd2b,'theme':{'prefix':''}}));}function a81_0x521d(){const _0x50a8ab=['includes','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','CSS\x20URL\x20checked','start','No\x20local\x20pages\x20found.','cancelled','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2377225CsBijZ','Cancelled.','isTTY','249264jdYZbq','8ZmUJqQ','\x20\x20JS\x20URL:','succeed','[already\x20on\x20platform]','has','\x20\x20Checking\x20JS\x20URL\x20reachability...','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','446103pqACbr','gray','938871IvZGRt','map','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','fail','[new]','ExitPromptError','catch','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','green','test','CSS\x20URL\x20check\x20failed','label','\x20\x20Checking\x20CSS\x20URL\x20reachability...','trim','red','24qbouhM','No\x20menus\x20selected.','stdin','filter','error','1161832NfCHtk','1108396icYQXV','1096193LVZAkX','path','cyan'];a81_0x521d=function(){return _0x50a8ab;};return a81_0x521d();}export async function askJsUrl(_0x53eca6){const _0x2ce8d9=a81_0x20e0;while(!![]){const _0x333496=await onCancel(input({'message':_0x2ce8d9(0x132),'default':_0x53eca6,'theme':{'prefix':''}}));if(_0x333496['trim']()==='')throw CliErrors[_0x2ce8d9(0x159)](_0x2ce8d9(0x15c));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2ce8d9(0x143)](_0x333496['trim']())){console[_0x2ce8d9(0x14d)](a81_0x4f3355[_0x2ce8d9(0x148)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x4e55a8=startSpinner(_0x2ce8d9(0x136));try{const _0x272a0d=await isUrlReachable(_0x333496['trim']());stopSpinner(_0x4e55a8,'JS\x20URL\x20checked',_0x272a0d);if(!_0x272a0d){console[_0x2ce8d9(0x14d)](a81_0x4f3355[_0x2ce8d9(0x148)](_0x2ce8d9(0x154)));continue;}return _0x333496[_0x2ce8d9(0x147)]();}catch(_0x5c1751){stopSpinner(_0x4e55a8,'JS\x20URL\x20check\x20failed',![]);throw _0x5c1751;}}}function a81_0x20e0(_0x5c3e89,_0x2051e3){_0x5c3e89=_0x5c3e89-0x132;const _0x521dd8=a81_0x521d();let _0x20e09c=_0x521dd8[_0x5c3e89];return _0x20e09c;}export async function askCssUrl(_0x2fdbf9){const _0x36c870=a81_0x20e0;while(!![]){const _0x3ce3ec=await onCancel(input({'message':_0x36c870(0x155),'default':_0x2fdbf9,'theme':{'prefix':''}}));if(_0x3ce3ec[_0x36c870(0x147)]()==='')throw CliErrors['cancelled'](_0x36c870(0x15c));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x36c870(0x143)](_0x3ce3ec[_0x36c870(0x147)]())){console[_0x36c870(0x14d)](a81_0x4f3355[_0x36c870(0x148)](_0x36c870(0x15a)));continue;}const _0x215798=startSpinner(_0x36c870(0x146));try{const _0x3d4953=await isUrlReachable(_0x3ce3ec[_0x36c870(0x147)]());stopSpinner(_0x215798,_0x36c870(0x156),_0x3d4953);if(!_0x3d4953){console[_0x36c870(0x14d)](a81_0x4f3355['red'](_0x36c870(0x13c)));continue;}return _0x3ce3ec['trim']();}catch(_0x1a9a37){stopSpinner(_0x215798,_0x36c870(0x144),![]);throw _0x1a9a37;}}}export async function selectPages(_0x3b6b84,_0x18a92d,_0x595247){const _0x114ee6=a81_0x20e0,_0x9a729b=_0x3b6b84[_0x114ee6(0x13b)](_0x5b9531=>({'name':_0x5b9531[_0x114ee6(0x145)]+'\x20\x20'+(_0x18a92d['has'](_0x5b9531[_0x114ee6(0x151)])?a81_0x4f3355[_0x114ee6(0x139)](_0x114ee6(0x134)):a81_0x4f3355[_0x114ee6(0x142)](_0x114ee6(0x13e))),'value':_0x5b9531[_0x114ee6(0x145)],'checked':_0x595247?_0x595247['includes'](_0x5b9531[_0x114ee6(0x145)]):!_0x18a92d[_0x114ee6(0x135)](_0x5b9531['path'])}));if(_0x9a729b['length']===0x0)throw new Error(_0x114ee6(0x158));const _0x447366=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x9a729b,'loop':![],'theme':{'prefix':''}}));if(_0x447366['length']===0x0)throw new Error(_0x114ee6(0x14a));return _0x3b6b84[_0x114ee6(0x14c)](_0x25105d=>_0x447366[_0x114ee6(0x153)](_0x25105d[_0x114ee6(0x145)]));}export function isInteractive(){const _0xe0d398=a81_0x20e0;return process[_0xe0d398(0x14b)][_0xe0d398(0x15d)]===!![];}export function requireInteractive(){const _0x202273=a81_0x20e0;if(!isInteractive())throw new Error(_0x202273(0x137)+_0x202273(0x141));}
1
+ (function(_0x322ee2,_0x5d8271){const _0x58a0b2=a82_0x1d2e,_0x376ba6=_0x322ee2();while(!![]){try{const _0x207ee3=-parseInt(_0x58a0b2(0x1a9))/0x1+-parseInt(_0x58a0b2(0x1ac))/0x2*(-parseInt(_0x58a0b2(0x1a3))/0x3)+parseInt(_0x58a0b2(0x1b2))/0x4+parseInt(_0x58a0b2(0x1c5))/0x5*(-parseInt(_0x58a0b2(0x1a4))/0x6)+-parseInt(_0x58a0b2(0x19c))/0x7+-parseInt(_0x58a0b2(0x1bb))/0x8+parseInt(_0x58a0b2(0x1c0))/0x9;if(_0x207ee3===_0x5d8271)break;else _0x376ba6['push'](_0x376ba6['shift']());}catch(_0x571546){_0x376ba6['push'](_0x376ba6['shift']());}}}(a82_0x4bc4,0x4fbd5));import a82_0x23c8e4 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a82_0x3693e9 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a82_0x1d2e(_0x4cd643,_0x324881){_0x4cd643=_0x4cd643-0x19b;const _0x4bc425=a82_0x4bc4();let _0x1d2e28=_0x4bc425[_0x4cd643];return _0x1d2e28;}function onCancel(_0x7e9287){return _0x7e9287['catch'](_0x268128=>{const _0x53de1b=a82_0x1d2e;if(_0x268128?.[_0x53de1b(0x1ba)]==='ExitPromptError')throw CliErrors[_0x53de1b(0x1b6)]('Cancelled.');throw _0x268128;});}export function startSpinner(_0x5f1451){const _0x52b287=a82_0x1d2e;return a82_0x3693e9({'text':_0x5f1451,'color':_0x52b287(0x1b3)})[_0x52b287(0x1bc)]();}function a82_0x4bc4(){const _0x45cbff=['trim','5AdXOcX','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','4164776GPvqGa','path','JS\x20URL\x20check\x20failed','includes','has','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','filter','36705GapSXM','629910eaeQkY','test','\x20\x20JS\x20URL:','map','error','483260qqbqUl','green','No\x20menus\x20selected.','28DgDDPI','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','length','\x20\x20Checking\x20CSS\x20URL\x20reachability...','red','succeed','663040yDheAG','cyan','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','No\x20local\x20pages\x20found.','cancelled','fail','JS\x20URL\x20checked','CSS\x20URL\x20check\x20failed','name','1732816meUpSL','start','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20Checking\x20JS\x20URL\x20reachability...','label','12504402usFvxC','isTTY','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','Cancelled.'];a82_0x4bc4=function(){return _0x45cbff;};return a82_0x4bc4();}export function stopSpinner(_0x19af71,_0x3c1127,_0x1e5df9){const _0x4e04e2=a82_0x1d2e;_0x1e5df9?_0x19af71[_0x4e04e2(0x1b1)](_0x3c1127):_0x19af71[_0x4e04e2(0x1b7)](_0x3c1127);}export async function askConfirm(_0x5b6bde){return onCancel(confirm({'message':_0x5b6bde,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4c94a2){const _0x33aae8=a82_0x1d2e;while(!![]){const _0x505a10=await onCancel(input({'message':_0x33aae8(0x1a6),'default':_0x4c94a2,'theme':{'prefix':''}}));if(_0x505a10[_0x33aae8(0x1c4)]()==='')throw CliErrors[_0x33aae8(0x1b6)](_0x33aae8(0x1c3));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x505a10[_0x33aae8(0x1c4)]())){console[_0x33aae8(0x1a8)](a82_0x23c8e4['red'](_0x33aae8(0x1bd)));continue;}const _0xaa5dbb=startSpinner(_0x33aae8(0x1be));try{const _0x493afe=await isUrlReachable(_0x505a10[_0x33aae8(0x1c4)]());stopSpinner(_0xaa5dbb,_0x33aae8(0x1b8),_0x493afe);if(!_0x493afe){console[_0x33aae8(0x1a8)](a82_0x23c8e4[_0x33aae8(0x1b0)](_0x33aae8(0x1ad)));continue;}return _0x505a10['trim']();}catch(_0x2873f6){stopSpinner(_0xaa5dbb,_0x33aae8(0x19e),![]);throw _0x2873f6;}}}export async function askCssUrl(_0x55d9ff){const _0x306231=a82_0x1d2e;while(!![]){const _0x80bcd2=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x55d9ff,'theme':{'prefix':''}}));if(_0x80bcd2[_0x306231(0x1c4)]()==='')throw CliErrors[_0x306231(0x1b6)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x306231(0x1a5)](_0x80bcd2['trim']())){console[_0x306231(0x1a8)](a82_0x23c8e4[_0x306231(0x1b0)](_0x306231(0x1b4)));continue;}const _0x1b30a4=startSpinner(_0x306231(0x1af));try{const _0x3df717=await isUrlReachable(_0x80bcd2[_0x306231(0x1c4)]());stopSpinner(_0x1b30a4,'CSS\x20URL\x20checked',_0x3df717);if(!_0x3df717){console[_0x306231(0x1a8)](a82_0x23c8e4[_0x306231(0x1b0)](_0x306231(0x19b)));continue;}return _0x80bcd2[_0x306231(0x1c4)]();}catch(_0x400b5b){stopSpinner(_0x1b30a4,_0x306231(0x1b9),![]);throw _0x400b5b;}}}export async function selectPages(_0x391111,_0x15a6b4,_0x56c391){const _0xedca17=a82_0x1d2e,_0x55ceaa=_0x391111[_0xedca17(0x1a7)](_0x9aa401=>({'name':_0x9aa401['label']+'\x20\x20'+(_0x15a6b4[_0xedca17(0x1a0)](_0x9aa401[_0xedca17(0x19d)])?a82_0x23c8e4['gray']('[already\x20on\x20platform]'):a82_0x23c8e4[_0xedca17(0x1aa)]('[new]')),'value':_0x9aa401[_0xedca17(0x1bf)],'checked':_0x56c391?_0x56c391[_0xedca17(0x19f)](_0x9aa401[_0xedca17(0x1bf)]):!_0x15a6b4[_0xedca17(0x1a0)](_0x9aa401['path'])}));if(_0x55ceaa[_0xedca17(0x1ae)]===0x0)throw new Error(_0xedca17(0x1b5));const _0x25b543=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x55ceaa,'loop':![],'theme':{'prefix':''}}));if(_0x25b543[_0xedca17(0x1ae)]===0x0)throw new Error(_0xedca17(0x1ab));return _0x391111[_0xedca17(0x1a2)](_0x1a246e=>_0x25b543[_0xedca17(0x19f)](_0x1a246e['label']));}export function isInteractive(){const _0x2f3109=a82_0x1d2e;return process['stdin'][_0x2f3109(0x1c1)]===!![];}export function requireInteractive(){const _0x3b824c=a82_0x1d2e;if(!isInteractive())throw new Error(_0x3b824c(0x1a1)+_0x3b824c(0x1c2));}
@@ -1 +1 @@
1
- const a82_0x476366=a82_0x42b8;function a82_0x8dad(){const _0x46f277=['2444109zWBANr','.tsx','split','slice','356876TUtWRx','437607iGVcst','cwd','index.tsx','2638344pZGjcF','5gCjTlz','2870128CWawjJ','push','join','endsWith','src/pages','match','filter','440uSYCXe','path','utf-8','isDirectory','1708668eCQPNz','replaceAll','9779YrxExq','concat','2958YSVBlK'];a82_0x8dad=function(){return _0x46f277;};return a82_0x8dad();}(function(_0x12c839,_0x3c29ec){const _0x57950a=a82_0x42b8,_0x893228=_0x12c839();while(!![]){try{const _0x5ce250=parseInt(_0x57950a(0x115))/0x1+-parseInt(_0x57950a(0x10c))/0x2+-parseInt(_0x57950a(0x111))/0x3+parseInt(_0x57950a(0x101))/0x4*(parseInt(_0x57950a(0x100))/0x5)+-parseInt(_0x57950a(0x110))/0x6*(parseInt(_0x57950a(0x10e))/0x7)+-parseInt(_0x57950a(0xff))/0x8+parseInt(_0x57950a(0xfc))/0x9*(parseInt(_0x57950a(0x108))/0xa);if(_0x5ce250===_0x3c29ec)break;else _0x893228['push'](_0x893228['shift']());}catch(_0x59c0e3){_0x893228['push'](_0x893228['shift']());}}}(a82_0x8dad,0x807bd));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x476366(0xfd)](),a82_0x476366(0x105));function a82_0x42b8(_0x5bd5af,_0x126029){_0x5bd5af=_0x5bd5af-0xfc;const _0x8dadf9=a82_0x8dad();let _0x42b883=_0x8dadf9[_0x5bd5af];return _0x42b883;}export function extractTitleFromComment(_0x125372){const _0x554af7=a82_0x476366;try{const _0x134cc5=readFileSync(_0x125372,_0x554af7(0x10a)),_0xfb1ef5=_0x134cc5['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0xfb1ef5&&_0xfb1ef5[0x1]){const _0x179303=_0xfb1ef5[0x1],_0x2c5fa1=_0x179303[_0x554af7(0x106)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2c5fa1&&_0x2c5fa1[0x1])return _0x2c5fa1[0x1]['trim']();}let _0x3a6057=null;const _0x46c82d=_0x134cc5['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x46c82d&&_0x46c82d[0x1]&&(_0x3a6057=_0x46c82d[0x1]);if(!_0x3a6057){const _0x46c94a=_0x134cc5[_0x554af7(0x106)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x46c94a&&_0x46c94a[0x1]&&(_0x3a6057=_0x46c94a[0x1]);}if(_0x3a6057){const _0x3e2f73=new RegExp('\x5cb'+_0x3a6057+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x5ea18c=_0x134cc5[_0x554af7(0x106)](_0x3e2f73);if(_0x5ea18c&&_0x5ea18c[0x1])return _0x5ea18c[0x1];return _0x3a6057;}return null;}catch(_0x1a1696){return null;}}export function getLocalPages(_0x167c1f=pagesDir,_0x2c1397=pagesDir){const _0x21060c=a82_0x476366;let _0x5d1e2c=[];const _0x207c3d=readdirSync(_0x167c1f);return _0x207c3d['forEach'](_0x323651=>{const _0x1a07e6=a82_0x42b8,_0x1b0aed=join(_0x167c1f,_0x323651),_0x1faa31=statSync(_0x1b0aed);if(_0x1faa31&&_0x1faa31[_0x1a07e6(0x10b)]())_0x5d1e2c=_0x5d1e2c[_0x1a07e6(0x10f)](getLocalPages(_0x1b0aed,_0x2c1397));else{if(_0x323651[_0x1a07e6(0x104)](_0x1a07e6(0x112))){let _0xdb35d6=relative(_0x2c1397,_0x1b0aed);_0xdb35d6['endsWith'](_0x1a07e6(0xfe))?_0xdb35d6=_0xdb35d6['replace'](/index\.tsx$/,''):_0xdb35d6=_0xdb35d6['replace'](/\.tsx$/,'');_0xdb35d6['endsWith'](sep)&&(_0xdb35d6=_0xdb35d6[_0x1a07e6(0x114)](0x0,-0x1));const _0x6f70f2=_0xdb35d6[_0x1a07e6(0x113)](sep)[_0x1a07e6(0x103)]('/'),_0x3d252f=extractTitleFromComment(_0x1b0aed),_0x3b0572=_0x3d252f||_0x6f70f2;_0x5d1e2c[_0x1a07e6(0x102)]({'path':_0x6f70f2[_0x1a07e6(0x10d)]('$',':'),'label':_0x3b0572});}}}),_0x5d1e2c[_0x21060c(0x107)](_0x554887=>_0x554887[_0x21060c(0x109)]!=='');}
1
+ function a83_0x5ed3(){const _0x509604=['2701032oSvRfS','1051368UuBxkw','path','split','2032266wmDZRV','filter','push','match','trim','replaceAll','1195500FrDRjL','concat','18IjpUoy','utf-8','1321871kpQLmw','isDirectory','replace','4968555AVvwuY','endsWith','14415976ydclBD','.tsx','src/pages','slice','forEach','7OkrPnX'];a83_0x5ed3=function(){return _0x509604;};return a83_0x5ed3();}const a83_0x206af8=a83_0x39e6;(function(_0x482934,_0x54d7d0){const _0x2e8371=a83_0x39e6,_0x5385da=_0x482934();while(!![]){try{const _0x5be053=parseInt(_0x2e8371(0xd7))/0x1+parseInt(_0x2e8371(0xe3))/0x2+parseInt(_0x2e8371(0xe6))/0x3+parseInt(_0x2e8371(0xe2))/0x4+parseInt(_0x2e8371(0xda))/0x5+parseInt(_0x2e8371(0xd3))/0x6*(parseInt(_0x2e8371(0xe1))/0x7)+-parseInt(_0x2e8371(0xdc))/0x8*(parseInt(_0x2e8371(0xd5))/0x9);if(_0x5be053===_0x54d7d0)break;else _0x5385da['push'](_0x5385da['shift']());}catch(_0x4805b2){_0x5385da['push'](_0x5385da['shift']());}}}(a83_0x5ed3,0xc0ad2));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a83_0x206af8(0xde));export function extractTitleFromComment(_0x559a5e){const _0x5b7585=a83_0x206af8;try{const _0x3ce66c=readFileSync(_0x559a5e,_0x5b7585(0xd6)),_0x1c888f=_0x3ce66c[_0x5b7585(0xe9)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1c888f&&_0x1c888f[0x1]){const _0x532fc8=_0x1c888f[0x1],_0x194e91=_0x532fc8[_0x5b7585(0xe9)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x194e91&&_0x194e91[0x1])return _0x194e91[0x1][_0x5b7585(0xd1)]();}let _0x50650e=null;const _0x280aad=_0x3ce66c['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x280aad&&_0x280aad[0x1]&&(_0x50650e=_0x280aad[0x1]);if(!_0x50650e){const _0x478fb6=_0x3ce66c[_0x5b7585(0xe9)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x478fb6&&_0x478fb6[0x1]&&(_0x50650e=_0x478fb6[0x1]);}if(_0x50650e){const _0x3738f2=new RegExp('\x5cb'+_0x50650e+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0xd3c84b=_0x3ce66c[_0x5b7585(0xe9)](_0x3738f2);if(_0xd3c84b&&_0xd3c84b[0x1])return _0xd3c84b[0x1];return _0x50650e;}return null;}catch(_0x17f4c3){return null;}}function a83_0x39e6(_0x224fd4,_0x1b4283){_0x224fd4=_0x224fd4-0xd1;const _0x5ed347=a83_0x5ed3();let _0x39e65d=_0x5ed347[_0x224fd4];return _0x39e65d;}export function getLocalPages(_0x53e89c=pagesDir,_0x13afc2=pagesDir){const _0x5e9012=a83_0x206af8;let _0x1dfc44=[];const _0x3e0e6f=readdirSync(_0x53e89c);return _0x3e0e6f[_0x5e9012(0xe0)](_0x1a2852=>{const _0x373cf0=_0x5e9012,_0x5d46c1=join(_0x53e89c,_0x1a2852),_0x543ecd=statSync(_0x5d46c1);if(_0x543ecd&&_0x543ecd[_0x373cf0(0xd8)]())_0x1dfc44=_0x1dfc44[_0x373cf0(0xd4)](getLocalPages(_0x5d46c1,_0x13afc2));else{if(_0x1a2852['endsWith'](_0x373cf0(0xdd))){let _0x397487=relative(_0x13afc2,_0x5d46c1);_0x397487[_0x373cf0(0xdb)]('index.tsx')?_0x397487=_0x397487['replace'](/index\.tsx$/,''):_0x397487=_0x397487[_0x373cf0(0xd9)](/\.tsx$/,'');_0x397487[_0x373cf0(0xdb)](sep)&&(_0x397487=_0x397487[_0x373cf0(0xdf)](0x0,-0x1));const _0x1bf335=_0x397487[_0x373cf0(0xe5)](sep)['join']('/'),_0x56c477=extractTitleFromComment(_0x5d46c1),_0x3ed4eb=_0x56c477||_0x1bf335;_0x1dfc44[_0x373cf0(0xe8)]({'path':_0x1bf335[_0x373cf0(0xd2)]('$',':'),'label':_0x3ed4eb});}}}),_0x1dfc44[_0x5e9012(0xe7)](_0x673ddd=>_0x673ddd[_0x5e9012(0xe4)]!=='');}
@@ -1 +1 @@
1
- (function(_0x2664c0,_0x5b35a4){const _0x1d1fdf=a83_0x286b,_0x24e94f=_0x2664c0();while(!![]){try{const _0x5855bc=-parseInt(_0x1d1fdf(0x11a))/0x1+-parseInt(_0x1d1fdf(0x10f))/0x2*(parseInt(_0x1d1fdf(0x105))/0x3)+parseInt(_0x1d1fdf(0x10b))/0x4*(-parseInt(_0x1d1fdf(0x10d))/0x5)+parseInt(_0x1d1fdf(0x113))/0x6+parseInt(_0x1d1fdf(0x103))/0x7*(parseInt(_0x1d1fdf(0x112))/0x8)+parseInt(_0x1d1fdf(0x107))/0x9+-parseInt(_0x1d1fdf(0x104))/0xa;if(_0x5855bc===_0x5b35a4)break;else _0x24e94f['push'](_0x24e94f['shift']());}catch(_0x4428a0){_0x24e94f['push'](_0x24e94f['shift']());}}}(a83_0x3db4,0xc076d));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(_0x443942){const _0x910ba5=a83_0x286b,_0x42f3c7=[];return!isValidJsHttpsUrl(_0x443942)&&_0x42f3c7[_0x910ba5(0x109)](_0x910ba5(0x10c)),{'ok':_0x42f3c7[_0x910ba5(0x100)]===0x0,'errors':_0x42f3c7};}export function validateCssUrl(_0xea285d){const _0x131999=a83_0x286b,_0x294a4b=[];return!isValidCssHttpsUrl(_0xea285d)&&_0x294a4b['push'](_0x131999(0x116)),{'ok':_0x294a4b[_0x131999(0x100)]===0x0,'errors':_0x294a4b};}export async function validateJsUrlReachable(_0x5b6262){const _0x49e1ad=a83_0x286b,_0x4ddfc5=validateJsUrl(_0x5b6262);if(!_0x4ddfc5['ok'])return _0x4ddfc5;const _0x1d8b81=await isUrlReachable(_0x5b6262);if(!_0x1d8b81)_0x4ddfc5[_0x49e1ad(0x10a)][_0x49e1ad(0x109)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x4ddfc5[_0x49e1ad(0x10a)]['length']===0x0,'errors':_0x4ddfc5[_0x49e1ad(0x10a)]};}export async function validateCssUrlReachable(_0x1d5231){const _0x8075aa=a83_0x286b,_0x5356d5=validateCssUrl(_0x1d5231);if(!_0x5356d5['ok'])return _0x5356d5;const _0x2e685d=await isUrlReachable(_0x1d5231);if(!_0x2e685d)_0x5356d5[_0x8075aa(0x10a)][_0x8075aa(0x109)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x5356d5[_0x8075aa(0x10a)]['length']===0x0,'errors':_0x5356d5[_0x8075aa(0x10a)]};}export function buildCompareRows(_0x58d8bf,_0x4dc840){const _0x572130=a83_0x286b;return _0x58d8bf[_0x572130(0x10e)](_0x3cf2b0=>({'label':_0x3cf2b0[_0x572130(0x118)],'path':_0x3cf2b0[_0x572130(0x114)],'local':!![],'online':_0x4dc840[_0x572130(0x110)](_0x3cf2b0['path'])}));}function a83_0x3db4(){const _0x161ff9=['find','push','errors','352732iuQqKW','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','25HCrGlu','map','875314IDqYtS','has','filter','11753712ffJpEf','4989690lnkCBK','path','fulfilled','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','value','label','status','552725BqsOGd','trim','No\x20local\x20pages\x20matched\x20labels:\x20','length','rejected','resources','7tHYvHL','5742790ysDTCm','9ffhMIZ','allSettled','12315546iYHZBG'];a83_0x3db4=function(){return _0x161ff9;};return a83_0x3db4();}export function filterNewPages(_0x240078,_0x3ea7cd,_0x56fc5f){const _0x3843a6=a83_0x286b;if(_0x56fc5f&&_0x56fc5f[_0x3843a6(0x100)]>0x0){const _0x36182d=new Set(_0x56fc5f[_0x3843a6(0x10e)](_0x121f7e=>_0x121f7e['trim']())),_0x730c76=_0x240078['filter'](_0x2a2bab=>_0x36182d[_0x3843a6(0x110)](_0x2a2bab['label']));if(_0x730c76['length']===0x0)throw new Error(_0x3843a6(0xff)+[..._0x36182d]['join'](',\x20'));return _0x730c76;}return _0x240078[_0x3843a6(0x111)](_0x45059=>!_0x3ea7cd[_0x3843a6(0x110)](_0x45059[_0x3843a6(0x114)]));}export function filterPagesByLabels(_0x581c5b,_0x49936a){const _0x4c0788=a83_0x286b,_0xcc3d48=[],_0x142141=[];for(const _0x5c5008 of _0x49936a){const _0x4bb599=_0x5c5008[_0x4c0788(0xfe)](),_0x4de3ea=_0x581c5b[_0x4c0788(0x108)](_0x3494f2=>_0x3494f2[_0x4c0788(0x118)]===_0x4bb599);if(_0x4de3ea)_0xcc3d48['push'](_0x4de3ea);else _0x142141[_0x4c0788(0x109)](_0x5c5008);}return{'matched':_0xcc3d48,'unmatched':_0x142141};}export async function doCreateMenus(_0xec68c0,_0x35e319,_0x87a724,_0x241d31){const _0x3c39e7=a83_0x286b,_0x57af5f=await createMenus(_0xec68c0,_0x35e319,_0x87a724,_0x241d31);return{'created':_0x57af5f[_0x3c39e7(0x100)],'failed':0x0,'labels':_0x87a724['map'](_0x52b38b=>_0x52b38b['label']),'menus':_0x57af5f};}export function filterMenusWithResources(_0x1a9c25){const _0x3754ba=a83_0x286b;return _0x1a9c25[_0x3754ba(0x111)](_0x440550=>_0x440550[_0x3754ba(0x102)][_0x3754ba(0x100)]>0x0);}export async function doUpdateCdnUrls(_0x9f61f4,_0x2026bf,_0x510c2b,_0x22c3db){const _0x2f3438=a83_0x286b,_0x510269=_0x510c2b[_0x2f3438(0x111)](_0x9dae31=>_0x9dae31['resources'][_0x2f3438(0x100)]>0x0),_0x14a1ee=await Promise[_0x2f3438(0x106)](_0x510269[_0x2f3438(0x10e)](_0x2bae41=>updateMenuCdnUrl(_0x9f61f4,_0x2026bf,{'id':_0x2bae41['id'],'label':_0x2bae41[_0x2f3438(0x118)],'path':_0x2bae41['path'],'resources':_0x22c3db}))),_0xb50b29=_0x14a1ee[_0x2f3438(0x111)](_0x4403a3=>_0x4403a3[_0x2f3438(0x119)]===_0x2f3438(0x115))[_0x2f3438(0x10e)](_0x31f5c1=>_0x31f5c1[_0x2f3438(0x117)]),_0x415789=_0x14a1ee[_0x2f3438(0x111)](_0x19550a=>_0x19550a[_0x2f3438(0x119)]===_0x2f3438(0x101))[_0x2f3438(0x100)];return{'updated':_0xb50b29[_0x2f3438(0x100)],'failed':_0x415789,'menus':_0xb50b29};}export async function fetchMenuData(_0x220a30,_0x1a8f11){const _0x4538ff=a83_0x286b,_0x380155=getLocalPages(),_0x123e43=await getOnlineMenuList(_0x220a30,_0x1a8f11),_0x50c050=new Set(_0x123e43[_0x4538ff(0x10e)](_0x5622a4=>_0x5622a4[_0x4538ff(0x114)]));return{'localPages':_0x380155,'onlineMenuList':_0x123e43,'onlinePaths':_0x50c050};}function a83_0x286b(_0x4c90ce,_0x1ad90f){_0x4c90ce=_0x4c90ce-0xfe;const _0x3db4d7=a83_0x3db4();let _0x286b8c=_0x3db4d7[_0x4c90ce];return _0x286b8c;}export async function fetchOnlineMenuList(_0x443dc1,_0x3dc9c5){return getOnlineMenuList(_0x443dc1,_0x3dc9c5);}
1
+ function a84_0x5405(_0x508bc0,_0x26299f){_0x508bc0=_0x508bc0-0xa7;const _0x540841=a84_0x5408();let _0x5405c4=_0x540841[_0x508bc0];return _0x5405c4;}function a84_0x5408(){const _0x35c471=['resources','669PobkzD','errors','filter','11DMcUZx','9360mISbQG','1718892rPFRFe','486225HwDXGN','map','fulfilled','rejected','8114nGRebg','No\x20local\x20pages\x20matched\x20labels:\x20','44zRqPJN','allSettled','path','push','join','6583540slnqNc','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','find','1260030lUGEOu','JS\x20URL\x20is\x20unreachable','trim','label','status','length','5nAShwL','CSS\x20URL\x20is\x20unreachable','has','2408koSuFA'];a84_0x5408=function(){return _0x35c471;};return a84_0x5408();}(function(_0x10e675,_0x337b66){const _0x59900d=a84_0x5405,_0x503181=_0x10e675();while(!![]){try{const _0x584405=parseInt(_0x59900d(0xba))/0x1*(-parseInt(_0x59900d(0xb8))/0x2)+parseInt(_0x59900d(0xae))/0x3*(parseInt(_0x59900d(0xac))/0x4)+parseInt(_0x59900d(0xa9))/0x5*(-parseInt(_0x59900d(0xc2))/0x6)+-parseInt(_0x59900d(0xb3))/0x7+-parseInt(_0x59900d(0xb2))/0x8+parseInt(_0x59900d(0xb4))/0x9+parseInt(_0x59900d(0xbf))/0xa*(parseInt(_0x59900d(0xb1))/0xb);if(_0x584405===_0x337b66)break;else _0x503181['push'](_0x503181['shift']());}catch(_0x5d9f97){_0x503181['push'](_0x503181['shift']());}}}(a84_0x5408,0x339ba));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(_0x109876){const _0x11275f=a84_0x5405,_0x3e6424=[];return!isValidJsHttpsUrl(_0x109876)&&_0x3e6424['push'](_0x11275f(0xc0)),{'ok':_0x3e6424['length']===0x0,'errors':_0x3e6424};}export function validateCssUrl(_0x1b1d11){const _0x5cf302=a84_0x5405,_0x33788e=[];return!isValidCssHttpsUrl(_0x1b1d11)&&_0x33788e[_0x5cf302(0xbd)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x33788e['length']===0x0,'errors':_0x33788e};}export async function validateJsUrlReachable(_0x52930a){const _0x249428=a84_0x5405,_0x25fb97=validateJsUrl(_0x52930a);if(!_0x25fb97['ok'])return _0x25fb97;const _0x44dfdc=await isUrlReachable(_0x52930a);if(!_0x44dfdc)_0x25fb97[_0x249428(0xaf)][_0x249428(0xbd)](_0x249428(0xc3));return{'ok':_0x25fb97['errors'][_0x249428(0xa8)]===0x0,'errors':_0x25fb97[_0x249428(0xaf)]};}export async function validateCssUrlReachable(_0x3d6cff){const _0x517c96=a84_0x5405,_0x3e40c3=validateCssUrl(_0x3d6cff);if(!_0x3e40c3['ok'])return _0x3e40c3;const _0x531e2f=await isUrlReachable(_0x3d6cff);if(!_0x531e2f)_0x3e40c3[_0x517c96(0xaf)][_0x517c96(0xbd)](_0x517c96(0xaa));return{'ok':_0x3e40c3[_0x517c96(0xaf)][_0x517c96(0xa8)]===0x0,'errors':_0x3e40c3[_0x517c96(0xaf)]};}export function buildCompareRows(_0x397cf6,_0x539a90){const _0x4b3df2=a84_0x5405;return _0x397cf6['map'](_0x53926d=>({'label':_0x53926d[_0x4b3df2(0xc5)],'path':_0x53926d['path'],'local':!![],'online':_0x539a90[_0x4b3df2(0xab)](_0x53926d['path'])}));}export function filterNewPages(_0x304994,_0x45afb6,_0x1b5e52){const _0x4db443=a84_0x5405;if(_0x1b5e52&&_0x1b5e52[_0x4db443(0xa8)]>0x0){const _0xe40433=new Set(_0x1b5e52[_0x4db443(0xb5)](_0x29d01a=>_0x29d01a[_0x4db443(0xc4)]())),_0x465686=_0x304994[_0x4db443(0xb0)](_0x38ad00=>_0xe40433['has'](_0x38ad00[_0x4db443(0xc5)]));if(_0x465686[_0x4db443(0xa8)]===0x0)throw new Error(_0x4db443(0xb9)+[..._0xe40433][_0x4db443(0xbe)](',\x20'));return _0x465686;}return _0x304994[_0x4db443(0xb0)](_0x322e36=>!_0x45afb6[_0x4db443(0xab)](_0x322e36[_0x4db443(0xbc)]));}export function filterPagesByLabels(_0x17c677,_0x3f25c6){const _0x3b88dc=a84_0x5405,_0x4fc153=[],_0x1e2ec4=[];for(const _0x24b035 of _0x3f25c6){const _0x34ee00=_0x24b035['trim'](),_0x8bb12b=_0x17c677[_0x3b88dc(0xc1)](_0x540e6c=>_0x540e6c[_0x3b88dc(0xc5)]===_0x34ee00);if(_0x8bb12b)_0x4fc153['push'](_0x8bb12b);else _0x1e2ec4[_0x3b88dc(0xbd)](_0x24b035);}return{'matched':_0x4fc153,'unmatched':_0x1e2ec4};}export async function doCreateMenus(_0x55eb35,_0x307cf3,_0x3e4963,_0xb38c62){const _0x1aa56b=a84_0x5405,_0xeb31e8=await createMenus(_0x55eb35,_0x307cf3,_0x3e4963,_0xb38c62);return{'created':_0xeb31e8['length'],'failed':0x0,'labels':_0x3e4963['map'](_0x44da81=>_0x44da81[_0x1aa56b(0xc5)]),'menus':_0xeb31e8};}export function filterMenusWithResources(_0x51ac89){const _0x453e15=a84_0x5405;return _0x51ac89[_0x453e15(0xb0)](_0x551136=>_0x551136['resources'][_0x453e15(0xa8)]>0x0);}export async function doUpdateCdnUrls(_0x2fb106,_0x388824,_0x16153c,_0x46c7a0){const _0xba625b=a84_0x5405,_0x2ab64a=_0x16153c[_0xba625b(0xb0)](_0x31698b=>_0x31698b[_0xba625b(0xad)][_0xba625b(0xa8)]>0x0),_0x49171a=await Promise[_0xba625b(0xbb)](_0x2ab64a['map'](_0x3318c5=>updateMenuCdnUrl(_0x2fb106,_0x388824,{'id':_0x3318c5['id'],'label':_0x3318c5['label'],'path':_0x3318c5['path'],'resources':_0x46c7a0}))),_0x4b4b0d=_0x49171a[_0xba625b(0xb0)](_0x1076b0=>_0x1076b0[_0xba625b(0xa7)]===_0xba625b(0xb6))[_0xba625b(0xb5)](_0x37ce48=>_0x37ce48['value']),_0x3b2677=_0x49171a[_0xba625b(0xb0)](_0xa6f2e9=>_0xa6f2e9[_0xba625b(0xa7)]===_0xba625b(0xb7))[_0xba625b(0xa8)];return{'updated':_0x4b4b0d[_0xba625b(0xa8)],'failed':_0x3b2677,'menus':_0x4b4b0d};}export async function fetchMenuData(_0x4cbcda,_0x6b18e9){const _0x11aae8=a84_0x5405,_0x4a694b=getLocalPages(),_0x3b5115=await getOnlineMenuList(_0x4cbcda,_0x6b18e9),_0x314e41=new Set(_0x3b5115[_0x11aae8(0xb5)](_0x504d68=>_0x504d68[_0x11aae8(0xbc)]));return{'localPages':_0x4a694b,'onlineMenuList':_0x3b5115,'onlinePaths':_0x314e41};}export async function fetchOnlineMenuList(_0x419e66,_0xafa476){return getOnlineMenuList(_0x419e66,_0xafa476);}
@@ -1 +1 @@
1
- (function(_0x1b882e,_0x284a67){const _0x2fd365=a84_0x1457,_0x14fd9b=_0x1b882e();while(!![]){try{const _0x507a8d=-parseInt(_0x2fd365(0x11c))/0x1+-parseInt(_0x2fd365(0x123))/0x2*(parseInt(_0x2fd365(0x126))/0x3)+-parseInt(_0x2fd365(0x11b))/0x4+parseInt(_0x2fd365(0x112))/0x5*(-parseInt(_0x2fd365(0x122))/0x6)+parseInt(_0x2fd365(0x138))/0x7*(parseInt(_0x2fd365(0x118))/0x8)+-parseInt(_0x2fd365(0x12d))/0x9+-parseInt(_0x2fd365(0x135))/0xa*(-parseInt(_0x2fd365(0x130))/0xb);if(_0x507a8d===_0x284a67)break;else _0x14fd9b['push'](_0x14fd9b['shift']());}catch(_0x1c5e95){_0x14fd9b['push'](_0x14fd9b['shift']());}}}(a84_0x4ce9,0xd37d8));import{getApiDomain}from'../../../constant/domain.js';function a84_0x4ce9(){const _0xdafdf4=['9730oqSmGJ','/smartapi/menu/find?appCode=','parse','update-menu-cdn-url','stringify','create-menus','label','Fetch\x20menu\x20list','13235liWBaE','extend','path','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','\x20online\x20menus\x20successfully','push','1592FpcEZo','Creating\x20menu:\x20','Create\x20menu\x20\x22','3453160wxoFuA','342552tCvUTI','Menu\x20created\x20successfully:\x20','get-online-menu-list','/smartapi/menu/create','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','Fetched\x20','2022DGfmsZ','8KNTqPU','isArray','flat','1113597dLCfMw','info','Batch\x20menu\x20creation\x20completed,\x20total\x20','children','map','length','resources','8636814hudLjQ','all','/smartapi/menu/update','3320691qxDUdl','Server\x20returned\x20empty\x20menu\x20list','Update\x20menu\x20assets\x20\x22','procode','import','170xxBYVs','create-menu','POST'];a84_0x4ce9=function(){return _0xdafdf4;};return a84_0x4ce9();}function a84_0x1457(_0x4cd40f,_0x393b4a){_0x4cd40f=_0x4cd40f-0x110;const _0x4ce946=a84_0x4ce9();let _0x145775=_0x4ce946[_0x4cd40f];return _0x145775;}import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x44139f,_0x27d691){const _0x2d7a17=a84_0x1457,_0x3cb029=getEnv();logger[_0x2d7a17(0x127)](_0x2d7a17(0x11e),isProduction(_0x3cb029)?_0x2d7a17(0x115)+_0x44139f+')':_0x2d7a17(0x120)+_0x44139f+')');const _0x667f40=await platformFetch(getApiDomain()+_0x2d7a17(0x139)+_0x44139f,{'cookie':_0x27d691,'label':_0x2d7a17(0x111)});if(!_0x667f40)return logger[_0x2d7a17(0x127)](_0x2d7a17(0x11e),_0x2d7a17(0x131)),[];return logger[_0x2d7a17(0x127)]('get-online-menu-list',_0x2d7a17(0x121)+_0x667f40[_0x2d7a17(0x12b)]+_0x2d7a17(0x116)),_0x667f40[_0x2d7a17(0x12a)](flattenMenuItem)[_0x2d7a17(0x125)]();}function flattenMenuItem(_0x413b29){const _0x3db26f=a84_0x1457;let _0x12f2c9=[];try{if(_0x413b29[_0x3db26f(0x113)]?.[_0x3db26f(0x12c)]){const _0x5edcb3=JSON[_0x3db26f(0x13a)](_0x413b29[_0x3db26f(0x113)][_0x3db26f(0x12c)]);if(Array[_0x3db26f(0x124)](_0x5edcb3))_0x12f2c9=_0x5edcb3;}}catch{}const _0x31b7db=[{'id':_0x413b29['id'],'path':_0x413b29[_0x3db26f(0x114)],'label':_0x413b29[_0x3db26f(0x110)],'resources':_0x12f2c9}];if(_0x413b29[_0x3db26f(0x129)]&&_0x413b29[_0x3db26f(0x129)]['length']>0x0)for(const _0x44f080 of _0x413b29[_0x3db26f(0x129)]){_0x31b7db[_0x3db26f(0x117)](...flattenMenuItem(_0x44f080));}return _0x31b7db;}export async function createMenu(_0x445b86,_0xb25181,_0x540d60){const _0x4943ae=a84_0x1457;logger[_0x4943ae(0x127)](_0x4943ae(0x136),_0x4943ae(0x119)+_0x540d60[_0x4943ae(0x110)]+'\x20('+_0x540d60[_0x4943ae(0x114)]+')');const _0x59177b={'appCode':_0x445b86,'type':_0x4943ae(0x133),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x540d60[_0x4943ae(0x12c)]?JSON[_0x4943ae(0x13c)](_0x540d60[_0x4943ae(0x12c)]):undefined},..._0x540d60},_0x4e6d5a=await platformFetch(getApiDomain()+_0x4943ae(0x11f),{'method':_0x4943ae(0x137),'body':_0x59177b,'cookie':_0xb25181,'label':_0x4943ae(0x11a)+_0x540d60[_0x4943ae(0x110)]+'\x22'});return logger[_0x4943ae(0x127)](_0x4943ae(0x136),_0x4943ae(0x11d)+_0x540d60[_0x4943ae(0x110)]),_0x4e6d5a;}async function createSingleMenu(_0x22e757,_0x3c2139,_0x3b4753,_0x30f3c3){const _0x146f1e=a84_0x1457,_0x9d7757={'appCode':_0x22e757,'type':_0x146f1e(0x133),'sort':0x0,'extend':{'loadScriptMode':_0x146f1e(0x134),'resources':_0x30f3c3?JSON['stringify'](_0x30f3c3):undefined},'label':_0x3b4753[_0x146f1e(0x110)],'path':_0x3b4753[_0x146f1e(0x114)]},_0x1370d2=await platformFetch(getApiDomain()+_0x146f1e(0x11f),{'method':_0x146f1e(0x137),'body':_0x9d7757,'cookie':_0x3c2139,'label':_0x146f1e(0x11a)+_0x3b4753[_0x146f1e(0x110)]+'\x22'});return logger['info'](_0x146f1e(0x136),_0x146f1e(0x11d)+_0x3b4753['label']),_0x1370d2;}export async function createMenus(_0xb4b7ee,_0x2c7056,_0x3c3de5,_0x36cd18){const _0x42b578=a84_0x1457;logger[_0x42b578(0x127)](_0x42b578(0x13d),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x3c3de5[_0x42b578(0x12b)]);const _0x4f5b1e=await Promise[_0x42b578(0x12e)](_0x3c3de5[_0x42b578(0x12a)](_0xbf9eda=>createSingleMenu(_0xb4b7ee,_0x2c7056,_0xbf9eda,_0x36cd18)));return logger[_0x42b578(0x127)]('create-menus',_0x42b578(0x128)+_0x3c3de5['length']),_0x4f5b1e;}export async function updateMenuCdnUrl(_0x465dc6,_0x5d42ce,_0xc19f0f){const _0x36142b=a84_0x1457;logger[_0x36142b(0x127)]('update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20'+_0xc19f0f[_0x36142b(0x110)]+'\x20('+_0xc19f0f[_0x36142b(0x114)]+')');const _0x5c3229={'id':_0xc19f0f['id'],'appCode':_0x465dc6,'extend':{'loadScriptMode':_0x36142b(0x134),'resources':_0xc19f0f[_0x36142b(0x12c)]?JSON[_0x36142b(0x13c)](_0xc19f0f[_0x36142b(0x12c)]):undefined}},_0x18d44f=await platformFetch(getApiDomain()+_0x36142b(0x12f),{'method':'POST','body':_0x5c3229,'cookie':_0x5d42ce,'label':_0x36142b(0x132)+_0xc19f0f[_0x36142b(0x110)]+'\x22'});return logger[_0x36142b(0x127)](_0x36142b(0x13b),'Menu\x20assets\x20synced:\x20'+_0xc19f0f[_0x36142b(0x110)],undefined),_0x18d44f;}
1
+ (function(_0x2642f4,_0x65038a){const _0x555d90=a85_0x3a12,_0x2db745=_0x2642f4();while(!![]){try{const _0x14d902=parseInt(_0x555d90(0x208))/0x1*(parseInt(_0x555d90(0x1e6))/0x2)+-parseInt(_0x555d90(0x1f9))/0x3+parseInt(_0x555d90(0x1f1))/0x4*(-parseInt(_0x555d90(0x1ff))/0x5)+parseInt(_0x555d90(0x1ec))/0x6+parseInt(_0x555d90(0x20c))/0x7+parseInt(_0x555d90(0x206))/0x8*(-parseInt(_0x555d90(0x1e8))/0x9)+-parseInt(_0x555d90(0x1fb))/0xa*(-parseInt(_0x555d90(0x20a))/0xb);if(_0x14d902===_0x65038a)break;else _0x2db745['push'](_0x2db745['shift']());}catch(_0xbe0a71){_0x2db745['push'](_0x2db745['shift']());}}}(a85_0x135f,0xcf998));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';function a85_0x3a12(_0x363b11,_0x4d1784){_0x363b11=_0x363b11-0x1e3;const _0x135fa0=a85_0x135f();let _0x3a12d9=_0x135fa0[_0x363b11];return _0x3a12d9;}import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x3719cb,_0x2311de){const _0x2abb02=a85_0x3a12,_0x1febea=getEnv();logger[_0x2abb02(0x203)](_0x2abb02(0x1f4),isProduction(_0x1febea)?_0x2abb02(0x1f3)+_0x3719cb+')':_0x2abb02(0x200)+_0x3719cb+')');const _0x16b8d0=await platformFetch(getApiDomain()+_0x2abb02(0x1f5)+_0x3719cb,{'cookie':_0x2311de,'label':_0x2abb02(0x1ef)});if(!_0x16b8d0)return logger['info']('get-online-menu-list',_0x2abb02(0x1fe)),[];return logger['info'](_0x2abb02(0x1f4),_0x2abb02(0x204)+_0x16b8d0[_0x2abb02(0x211)]+_0x2abb02(0x202)),_0x16b8d0[_0x2abb02(0x1e7)](flattenMenuItem)[_0x2abb02(0x1fd)]();}function flattenMenuItem(_0x11801c){const _0x44b231=a85_0x3a12;let _0x52eca8=[];try{if(_0x11801c[_0x44b231(0x201)]?.['resources']){const _0xabe5d2=JSON['parse'](_0x11801c[_0x44b231(0x201)][_0x44b231(0x1ea)]);if(Array[_0x44b231(0x1ee)](_0xabe5d2))_0x52eca8=_0xabe5d2;}}catch{}const _0x9afa40=[{'id':_0x11801c['id'],'path':_0x11801c[_0x44b231(0x205)],'label':_0x11801c[_0x44b231(0x1eb)],'resources':_0x52eca8}];if(_0x11801c[_0x44b231(0x1f2)]&&_0x11801c['children'][_0x44b231(0x211)]>0x0)for(const _0x3336e7 of _0x11801c['children']){_0x9afa40[_0x44b231(0x207)](...flattenMenuItem(_0x3336e7));}return _0x9afa40;}export async function createMenu(_0xc12981,_0x5d1bd5,_0x467cac){const _0x4fcf00=a85_0x3a12;logger[_0x4fcf00(0x203)](_0x4fcf00(0x209),_0x4fcf00(0x1e3)+_0x467cac[_0x4fcf00(0x1eb)]+'\x20('+_0x467cac['path']+')');const _0x803fd7={'appCode':_0xc12981,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x4fcf00(0x20b),'resources':_0x467cac['resources']?JSON[_0x4fcf00(0x20e)](_0x467cac[_0x4fcf00(0x1ea)]):undefined},..._0x467cac},_0x27d17a=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x4fcf00(0x1e4),'body':_0x803fd7,'cookie':_0x5d1bd5,'label':_0x4fcf00(0x1f8)+_0x467cac[_0x4fcf00(0x1eb)]+'\x22'});return logger[_0x4fcf00(0x203)](_0x4fcf00(0x209),_0x4fcf00(0x20f)+_0x467cac[_0x4fcf00(0x1eb)]),_0x27d17a;}async function createSingleMenu(_0x41b80a,_0x194d2e,_0x4ace01,_0x201463){const _0x116fcb=a85_0x3a12,_0x3297ec={'appCode':_0x41b80a,'type':_0x116fcb(0x1e9),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x201463?JSON['stringify'](_0x201463):undefined},'label':_0x4ace01[_0x116fcb(0x1eb)],'path':_0x4ace01['path']},_0x1828cf=await platformFetch(getApiDomain()+_0x116fcb(0x1e5),{'method':_0x116fcb(0x1e4),'body':_0x3297ec,'cookie':_0x194d2e,'label':_0x116fcb(0x1f8)+_0x4ace01[_0x116fcb(0x1eb)]+'\x22'});return logger['info'](_0x116fcb(0x209),'Menu\x20created\x20successfully:\x20'+_0x4ace01['label']),_0x1828cf;}export async function createMenus(_0x54c566,_0x29c235,_0x411bf3,_0x21e5ac){const _0x44e7a6=a85_0x3a12;logger[_0x44e7a6(0x203)](_0x44e7a6(0x1fc),_0x44e7a6(0x1f7)+_0x411bf3[_0x44e7a6(0x211)]);const _0x412e1c=await Promise[_0x44e7a6(0x210)](_0x411bf3['map'](_0x3d4b0f=>createSingleMenu(_0x54c566,_0x29c235,_0x3d4b0f,_0x21e5ac)));return logger[_0x44e7a6(0x203)](_0x44e7a6(0x1fc),_0x44e7a6(0x20d)+_0x411bf3[_0x44e7a6(0x211)]),_0x412e1c;}export async function updateMenuCdnUrl(_0x2887aa,_0x1a458d,_0x1a7a26){const _0x70727=a85_0x3a12;logger[_0x70727(0x203)](_0x70727(0x1fa),'Updating\x20menu\x20asset\x20links:\x20'+_0x1a7a26[_0x70727(0x1eb)]+'\x20('+_0x1a7a26['path']+')');const _0x520923={'id':_0x1a7a26['id'],'appCode':_0x2887aa,'extend':{'loadScriptMode':_0x70727(0x20b),'resources':_0x1a7a26[_0x70727(0x1ea)]?JSON[_0x70727(0x20e)](_0x1a7a26[_0x70727(0x1ea)]):undefined}},_0x406ed6=await platformFetch(getApiDomain()+_0x70727(0x1f6),{'method':_0x70727(0x1e4),'body':_0x520923,'cookie':_0x1a458d,'label':_0x70727(0x1f0)+_0x1a7a26['label']+'\x22'});return logger[_0x70727(0x203)](_0x70727(0x1fa),_0x70727(0x1ed)+_0x1a7a26['label'],undefined),_0x406ed6;}function a85_0x135f(){const _0x38e047=['290EoDDsz','create-menus','flat','Server\x20returned\x20empty\x20menu\x20list','628545BJLmKY','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','extend','\x20online\x20menus\x20successfully','info','Fetched\x20','path','3617864eiDJtN','push','106KsaiFP','create-menu','1010746OyEDTU','import','1624980gwGHnI','Batch\x20menu\x20creation\x20completed,\x20total\x20','stringify','Menu\x20created\x20successfully:\x20','all','length','Creating\x20menu:\x20','POST','/smartapi/menu/create','3884POWfZG','map','18RxDDIU','procode','resources','label','8309556vnvwVl','Menu\x20assets\x20synced:\x20','isArray','Fetch\x20menu\x20list','Update\x20menu\x20assets\x20\x22','48OubrfI','children','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','get-online-menu-list','/smartapi/menu/find?appCode=','/smartapi/menu/update','Start\x20batch\x20menu\x20creation,\x20total\x20','Create\x20menu\x20\x22','3672930uxYvVp','update-menu-cdn-url'];a85_0x135f=function(){return _0x38e047;};return a85_0x135f();}